@cling-se/widget 0.19.8 → 0.19.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/{AddClientCallout-sPxYX5tQ.js → AddClientCallout-BsRvkT-W.js} +4 -4
  3. package/dist/{AnswerModal-o8OHHulg.js → AnswerModal-DEZ_YBHk.js} +3 -3
  4. package/dist/{AttachmentItem-CzzOlHB-.js → AttachmentItem-7BXCpSN5.js} +4 -4
  5. package/dist/{BaseUpload-oZQfFwOj.js → BaseUpload-BoI75J6e.js} +2 -2
  6. package/dist/{BlockMedia-BGPxfM2X.js → BlockMedia-mDZEGad9.js} +30 -29
  7. package/dist/{CCallout-CrbMGTIj.js → CCallout--fWgvr0x.js} +1 -1
  8. package/dist/{CCurrencyDropdown-BnNDP51j.js → CCurrencyDropdown-C0Fn_4IX.js} +3 -3
  9. package/dist/{CDropdownItem-E-kRDIiy.js → CDropdownItem-D3_tCkkr.js} +2 -2
  10. package/dist/{CFormField.vue_vue_type_script_setup_true_lang-Bi0MjQdW.js → CFormField.vue_vue_type_script_setup_true_lang-CLNJpSL4.js} +4 -4
  11. package/dist/{CPhoneFormat-CIQAVdsB.js → CPhoneFormat-CcCMbWmZ.js} +1 -1
  12. package/dist/{CPhoneInput-9AwTJm-0.js → CPhoneInput-BLbPiE9M.js} +5 -5
  13. package/dist/{CPriceInput-agFahtr1.js → CPriceInput-D03-LElV.js} +2 -2
  14. package/dist/{CSelect-BpautzPq.js → CSelect-D9paYPUW.js} +1 -1
  15. package/dist/{CSkeleton-GIqd-JU4.js → CSkeleton-CJ7CFudo.js} +5 -5
  16. package/dist/{ClientAutocomplete-DOHX9Igy.js → ClientAutocomplete-CAQHG8Tz.js} +11 -11
  17. package/dist/{ClientModal-DAXKN_b3.js → ClientModal-pu3oIp0w.js} +14 -14
  18. package/dist/{ColorPicker-B9F8znY_.js → ColorPicker-CzVbcUB-.js} +1 -1
  19. package/dist/{CompanyModal-BvIMVys6.js → CompanyModal-Dy72AiPw.js} +7 -7
  20. package/dist/{ContentWrapper-DB22RaUr.js → ContentWrapper-DfeVimeu.js} +12 -12
  21. package/dist/{CoverBlockSettings--l4fH9mr.js → CoverBlockSettings-A3-vTq36.js} +7 -7
  22. package/dist/{DocAnswer-Bq-4uVbe.js → DocAnswer-Dr6gyQOP.js} +2 -2
  23. package/dist/{DocDetails-yxmchgO5.js → DocDetails-Bj29y4bu.js} +4 -4
  24. package/dist/{DocForm-CzrR8o22.js → DocForm-DHL6Dvhw.js} +27 -29
  25. package/dist/{DocFormSend-Bjc1QDcK.js → DocFormSend-Djnm9KoO.js} +2 -2
  26. package/dist/{DocLinks-BXbC-6v3.js → DocLinks-UB3xT-cg.js} +2 -2
  27. package/dist/{DocModalBase-axX_Rlp3.js → DocModalBase-B04bul06.js} +1 -1
  28. package/dist/{DocPrint-D0IdWsUM.js → DocPrint-CGGGhXZ1.js} +1 -1
  29. package/dist/{DocReceipt-4e-RmgeQ.js → DocReceipt-DL3HQLkv.js} +2 -2
  30. package/dist/{DocSendReminder-L35eZxgk.js → DocSendReminder-CxP97wDu.js} +1 -1
  31. package/dist/{DocTextEditor-KrfylSV6.js → DocTextEditor-BQhfVRlV.js} +16 -13
  32. package/dist/{DocTimeline-Be5CvtcQ.js → DocTimeline-BPR65V2I.js} +2 -2
  33. package/dist/{DocumentClient-Bc4kf2q9.js → DocumentClient-CuTntNdl.js} +5 -5
  34. package/dist/{DocumentLayout-Oe-ZsHML.js → DocumentLayout-D6PvFdQg.js} +32 -32
  35. package/dist/{DocumentLogotype-BFo5UEWS.js → DocumentLogotype-CLJ7RsVz.js} +4 -4
  36. package/dist/{DocumentVoided-DlQtlO7G.js → DocumentVoided-DB5xhLfP.js} +1 -1
  37. package/dist/{EmbedInput-B29usQZZ.js → EmbedInput-CUl_MX4S.js} +3 -3
  38. package/dist/{EmbedSettings-D-9rcSn0.js → EmbedSettings-Cq8n5rI2.js} +3 -3
  39. package/dist/{ErrorCallout--EnH1Ezu.js → ErrorCallout-BUTqhYbf.js} +3 -3
  40. package/dist/{FilePreviewModal-H5Ilg9xN.js → FilePreviewModal-D8fjLRUG.js} +2 -2
  41. package/dist/{Flag-DgZVh3Lf.js → Flag-CXb8yU4n.js} +1 -1
  42. package/dist/{HeaderSettings-HuM_JwJw.js → HeaderSettings-BT4TlFdj.js} +9 -9
  43. package/dist/{ImageSelectModal-CJ-DstAf.js → ImageSelectModal-DmlTZjg0.js} +3 -3
  44. package/dist/{ImageUploadWrapper-TYs37LIQ.js → ImageUploadWrapper-Bt0uozSl.js} +2 -2
  45. package/dist/{Index-CtJfMiZW.js → Index-1aEI7_56.js} +2 -2
  46. package/dist/Index-2vRzH0zx.js +4 -0
  47. package/dist/{Index-DJ11Zra_.js → Index-39gM2cY7.js} +8 -8
  48. package/dist/{Index-D5_GLLQH.js → Index-55e7lOqG.js} +476 -455
  49. package/dist/{Index-DXT_IMjq.js → Index-AZN4wthQ.js} +5 -5
  50. package/dist/{Index-B942Auag.js → Index-BCYnuRFa.js} +2 -2
  51. package/dist/{Index-yJRtT77X.js → Index-BEsOBJdX.js} +2 -2
  52. package/dist/{Index-CY2sRfaY.js → Index-BFa6BgHI.js} +3 -3
  53. package/dist/{Index-BdnFLjgV.js → Index-BG30GlWz.js} +7 -7
  54. package/dist/{Index-CTlB43yV.js → Index-BVOpa2cR.js} +4 -4
  55. package/dist/{Index-CC4E2CmH.js → Index-BkwtFP0b.js} +5 -5
  56. package/dist/{Index-DMIjuWSa.js → Index-C0wIaLu-.js} +4 -4
  57. package/dist/{Index-D9sceHk5.js → Index-CDTYkmkj.js} +4 -4
  58. package/dist/{Index-DYUvtCff.js → Index-CG92HjZU.js} +4 -4
  59. package/dist/{Index-CAMAtPVL.js → Index-CKUiWN7e.js} +3 -3
  60. package/dist/{Index-nTp9wEni.js → Index-CO6KkcjQ.js} +4 -4
  61. package/dist/{Index-CLgN5Jzf.js → Index-CQ6z4JCV.js} +1 -1
  62. package/dist/{Index-nRqNPZ3B.js → Index-CVZ5OiyQ.js} +6 -6
  63. package/dist/{Index-W-Q19E3a.js → Index-CY_zs2z7.js} +4 -4
  64. package/dist/{Index-CrdSdXWN.js → Index-Cb8dJ-iH.js} +23 -20
  65. package/dist/{Index-B-PDcQKh.js → Index-CcEhh58c.js} +5 -5
  66. package/dist/{Index-N88Abomf.js → Index-ChBaT3FD.js} +1 -1
  67. package/dist/{Index-Dg4dwlh_.js → Index-ChpIICjV.js} +9 -9
  68. package/dist/{Index-BMpHXgR4.js → Index-ClYwg_Tc.js} +8 -8
  69. package/dist/{Index-6N_iRlrQ.js → Index-Cmg4QHZZ.js} +5 -5
  70. package/dist/{Index-edWEg_rF.js → Index-Cw8wthZj.js} +10 -10
  71. package/dist/{Index-BZ6ZDf9T.js → Index-DF5-4D3i.js} +4 -4
  72. package/dist/{Index-CGus-YwW.js → Index-DQdLSrV-.js} +7 -7
  73. package/dist/{Index-DTm59e-A.js → Index-Dlo49fYy.js} +4 -4
  74. package/dist/{Index-BLdFyt-s.js → Index-DvwD4u45.js} +3 -3
  75. package/dist/{Index-CnrSvy6E.js → Index-PmOYHy6x.js} +2 -2
  76. package/dist/{Index-BsRxY7vc.js → Index-bX6uKwvE.js} +3 -3
  77. package/dist/{Index-DYW8T0Hl.js → Index-dJwXStk7.js} +8 -8
  78. package/dist/{Index-BeOtRIzZ.js → Index-u6w_64Ql.js} +6 -6
  79. package/dist/{Index.vue_vue_type_script_lang-PJPQMT2c.js → Index.vue_vue_type_script_lang-BXjvuVbS.js} +2 -2
  80. package/dist/{InputToggleRow-DCr_DEm4.js → InputToggleRow-B0yjG-bh.js} +1 -1
  81. package/dist/{ManualPopover-CpVsmQvn.js → ManualPopover-ChYyDxj8.js} +1 -1
  82. package/dist/{MediaWrapper-Cj3LBhdR.js → MediaWrapper-KCTPL9oF.js} +3 -3
  83. package/dist/{NotBindingText-1J0p_k4u.js → NotBindingText-D4nJwAyD.js} +5 -5
  84. package/dist/{PackageGroup-CqrWEfCT.js → PackageGroup-Be1gVj7w.js} +106 -106
  85. package/dist/{PdfTerms-DmrPDtae.js → PdfTerms-1iI1qktG.js} +2 -2
  86. package/dist/{PdfViewer-C2EEwUBa.js → PdfViewer-bN0KukaH.js} +5 -5
  87. package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-B6pRo08V.js → PlainHtml.vue_vue_type_script_setup_true_lang-BrCKpyEU.js} +1 -1
  88. package/dist/{PriceHeader-BaREzUxI.js → PriceHeader-DWH-VRAW.js} +7 -7
  89. package/dist/{SearchApi-Bf4jeQVr.js → SearchApi-Bp95LCyA.js} +1 -1
  90. package/dist/{SendForm-D5qpHxNU.js → SendForm-DLUa5otf.js} +125 -125
  91. package/dist/{Setup-Bw8ViFxw.js → Setup-DDaFShaB.js} +1 -1
  92. package/dist/{SmartList-CzylvV8N.js → SmartList-BRShdlA0.js} +1 -1
  93. package/dist/{Sortable.vue_vue_type_script_setup_true_lang-DleoAiSK.js → Sortable.vue_vue_type_script_setup_true_lang-tLursG5q.js} +1 -1
  94. package/dist/{TermsSettings-EoJvsPqK.js → TermsSettings-C0cX4ZBC.js} +5 -5
  95. package/dist/{ThemeColorRow-D3blQMiD.js → ThemeColorRow-DoH8zauR.js} +3 -3
  96. package/dist/{ToggleBinding-BteBsRYr.js → ToggleBinding-C_e-eDZT.js} +4 -4
  97. package/dist/{UploadModal-Cr5sF3M-.js → UploadModal-F1bW2Egp.js} +2 -2
  98. package/dist/{VideoPlayerInput-BBycKv9w.js → VideoPlayerInput-BrrB9oVk.js} +4 -4
  99. package/dist/{VideoPlayerSettings-BXXpTWBf.js → VideoPlayerSettings-C8cR5e9r.js} +2 -2
  100. package/dist/{VideoSelectModal-B2VPO6q4.js → VideoSelectModal-CC_-Irlx.js} +3 -3
  101. package/dist/{focusDrawerMixin-CCAEZjWO.js → focusDrawerMixin-Byq1xBU3.js} +1 -1
  102. package/dist/{formDrawerState-CJyP4ce1.js → formDrawerState-DHUJo100.js} +1 -1
  103. package/dist/{helpers-Cf9s0P7o.js → helpers-ONO_cfDb.js} +1 -1
  104. package/dist/{index-DuXECcGq.js → index-B3GlU12d.js} +8 -8
  105. package/dist/{index-C3pnyYI4.js → index-BDJXRtvs.js} +1 -1
  106. package/dist/{index-DAJmNac8.js → index-BtbGDfGz.js} +1 -1
  107. package/dist/{index-CBn1mHmK.js → index-C9jrUexY.js} +7 -7
  108. package/dist/{index-DYJN9yoF.js → index-ClF7kp8h.js} +8 -8
  109. package/dist/{index-XzoHqJIR.js → index-CoQoszZX.js} +1 -1
  110. package/dist/{index-_MfZEYgE.js → index-D1ejEjwe.js} +6 -6
  111. package/dist/index.es.js +2 -2
  112. package/dist/index.umd.js +136 -136
  113. package/dist/{main-BayUZ9OO.js → main-ByMVnwS5.js} +3512 -3532
  114. package/dist/{mapFormMixin-Bx5_nE7g.js → mapFormMixin-zL_x65Dt.js} +8 -8
  115. package/dist/{omit-BKJdPM2H.js → omit-BqIpwnLe.js} +9 -9
  116. package/dist/{publicSenderState-CblTasKp.js → publicSenderState-D2O1iAac.js} +1 -1
  117. package/dist/{splitpanes-DFkgBT3z.js → splitpanes-BNIUBGFa.js} +1 -1
  118. package/dist/{template-CvGgzazD.js → template-gCGJogwx.js} +2 -2
  119. package/dist/{tippy.esm-CYKcJaqz.js → tippy.esm-D9T0otvu.js} +5 -5
  120. package/dist/{useTermsModal-DFmdeFRm.js → useTermsModal-5bV0m_Ha.js} +4 -4
  121. package/dist/{utils-DTwXcY8_.js → utils-DiG2v7vg.js} +1 -1
  122. package/dist/{validation-d_jonAPy.js → validation-BQR3TvR7.js} +2 -2
  123. package/dist/widget.css +1 -1
  124. package/package.json +1 -1
  125. package/dist/Index-D4HNTocO.js +0 -4
@@ -1,17 +1,17 @@
1
- import { m as F } from "./mapFormMixin-Bx5_nE7g.js";
2
- import { C as _e } from "./CCallout-CrbMGTIj.js";
3
- import { C as K, a as Y, w as Te } from "./CDropdownItem-E-kRDIiy.js";
4
- import { E as me } from "./ErrorCallout--EnH1Ezu.js";
5
- import { c3 as Ae, c4 as he, c5 as Ce, c6 as Pe, c7 as xe, c8 as Ve, c9 as Se, aJ as Me, _ as M, b as g, d as c, o as a, j as l, t as p, x as V, F as C, n as S, W as J, e as b, f as u, s as N, m as z, a as E, g as L, w as h, R as B, ah as j, T as ie, am as H, ca as De, cb as ne, aE as Re, a8 as se, bh as W, aC as Le, cc as Oe, bj as Ee, a4 as U, c as A, u as R, q as $, cd as Ue, ce as Be, b$ as ge, v as We, cf as ve, $ as ze, ae as x, ak as je, aG as q, V as qe, a2 as oe, bY as Fe, ab as Ne, cg as He, ad as Ge, af as Ke, c2 as Ye, ch as re, aD as Ze } from "./main-BayUZ9OO.js";
6
- import { u as Je } from "./DocumentLayout-Oe-ZsHML.js";
7
- import { T as Qe } from "./DocTextEditor-KrfylSV6.js";
8
- import { _ as Xe, m as et } from "./Sortable.vue_vue_type_script_setup_true_lang-DleoAiSK.js";
9
- import { o as fe } from "./omit-BKJdPM2H.js";
10
- import { C as Z } from "./CPriceInput-agFahtr1.js";
11
- import { u as ye } from "./index-C3pnyYI4.js";
12
- import { S as tt } from "./SearchApi-Bf4jeQVr.js";
13
- import { m as it } from "./index-XzoHqJIR.js";
14
- import { _ as ke } from "./CFormField.vue_vue_type_script_setup_true_lang-Bi0MjQdW.js";
1
+ import { m as q } from "./mapFormMixin-zL_x65Dt.js";
2
+ import { C as $e } from "./CCallout--fWgvr0x.js";
3
+ import { C as Y, a as Z, w as Te } from "./CDropdownItem-D3_tCkkr.js";
4
+ import { E as me } from "./ErrorCallout-BUTqhYbf.js";
5
+ import { c5 as Ae, c6 as he, c7 as Ce, c8 as Pe, c9 as xe, ca as Ve, cb as Se, aK as De, _ as D, b as v, d as c, o as a, j as l, t as u, x as V, F as C, n as S, W as Q, e as b, f as p, s as H, m as z, a as E, g as O, w as g, R as B, ai as j, T as ne, an as G, cc as Re, cd as se, aF as Me, a8 as ae, bi as W, aD as Le, ce as Oe, bl as Ee, a4 as U, c as A, u as R, q as I, cf as Ue, cg as Be, c1 as ge, v as We, ch as ve, $ as ze, af as x, al as je, aH as F, V as Fe, a2 as oe, b_ as qe, ab as Ne, ci as He, ae as Ge, ag as Ke, c4 as Ye, cj as re, aE as Ze } from "./main-ByMVnwS5.js";
6
+ import { u as Je } from "./DocumentLayout-D6PvFdQg.js";
7
+ import { T as Qe } from "./DocTextEditor-BQhfVRlV.js";
8
+ import { _ as Xe, m as et } from "./Sortable.vue_vue_type_script_setup_true_lang-tLursG5q.js";
9
+ import { o as fe } from "./omit-BqIpwnLe.js";
10
+ import { C as J } from "./CPriceInput-D03-LElV.js";
11
+ import { u as ye } from "./index-BDJXRtvs.js";
12
+ import { S as tt } from "./SearchApi-Bp95LCyA.js";
13
+ import { m as it } from "./index-CoQoszZX.js";
14
+ import { _ as ke } from "./CFormField.vue_vue_type_script_setup_true_lang-CLNJpSL4.js";
15
15
  const nt = [
16
16
  "unit",
17
17
  "m2",
@@ -29,65 +29,65 @@ const nt = [
29
29
  "year",
30
30
  "kWh"
31
31
  ];
32
- var Q, le;
32
+ var X, le;
33
33
  function st() {
34
- if (le) return Q;
34
+ if (le) return X;
35
35
  le = 1;
36
36
  function e() {
37
37
  }
38
- return Q = e, Q;
38
+ return X = e, X;
39
39
  }
40
- var X, ce;
40
+ var ee, ce;
41
41
  function at() {
42
- if (ce) return X;
42
+ if (ce) return ee;
43
43
  ce = 1;
44
44
  var e = Ae(), t = st(), n = he(), o = 1 / 0, s = e && 1 / n(new e([, -0]))[1] == o ? function(i) {
45
45
  return new e(i);
46
46
  } : t;
47
- return X = s, X;
47
+ return ee = s, ee;
48
48
  }
49
- var ee, de;
49
+ var te, de;
50
50
  function ot() {
51
- if (de) return ee;
51
+ if (de) return te;
52
52
  de = 1;
53
53
  var e = Ce(), t = Pe(), n = Ve(), o = xe(), s = at(), i = he(), f = 200;
54
- function v(y, d, k) {
55
- var w = -1, _ = t, m = y.length, T = !0, r = [], P = r;
54
+ function h(y, d, k) {
55
+ var w = -1, $ = t, m = y.length, T = !0, r = [], P = r;
56
56
  if (k)
57
- T = !1, _ = n;
57
+ T = !1, $ = n;
58
58
  else if (m >= f) {
59
- var I = d ? null : s(y);
60
- if (I)
61
- return i(I);
62
- T = !1, _ = o, P = new e();
59
+ var _ = d ? null : s(y);
60
+ if (_)
61
+ return i(_);
62
+ T = !1, $ = o, P = new e();
63
63
  } else
64
64
  P = d ? [] : r;
65
65
  e:
66
66
  for (; ++w < m; ) {
67
- var D = y[w], O = d ? d(D) : D;
68
- if (D = k || D !== 0 ? D : 0, T && O === O) {
69
- for (var ae = P.length; ae--; )
70
- if (P[ae] === O)
67
+ var M = y[w], L = d ? d(M) : M;
68
+ if (M = k || M !== 0 ? M : 0, T && L === L) {
69
+ for (var N = P.length; N--; )
70
+ if (P[N] === L)
71
71
  continue e;
72
- d && P.push(O), r.push(D);
73
- } else _(P, O, k) || (P !== r && P.push(O), r.push(D));
72
+ d && P.push(L), r.push(M);
73
+ } else $(P, L, k) || (P !== r && P.push(L), r.push(M));
74
74
  }
75
75
  return r;
76
76
  }
77
- return ee = v, ee;
77
+ return te = h, te;
78
78
  }
79
- var te, ue;
79
+ var ie, ue;
80
80
  function rt() {
81
- if (ue) return te;
81
+ if (ue) return ie;
82
82
  ue = 1;
83
83
  var e = Se(), t = ot();
84
84
  function n(o, s) {
85
85
  return o && o.length ? t(o, e(s, 2)) : [];
86
86
  }
87
- return te = n, te;
87
+ return ie = n, ie;
88
88
  }
89
89
  var lt = rt();
90
- const ct = /* @__PURE__ */ Me(lt), dt = {
90
+ const ct = /* @__PURE__ */ De(lt), dt = {
91
91
  name: "PackageGroupSelect",
92
92
  i18nOptions: {
93
93
  namespaces: "PackageGroupSelect",
@@ -164,21 +164,21 @@ const ct = /* @__PURE__ */ Me(lt), dt = {
164
164
  class: "package-group-option__illustration-card animate"
165
165
  }, vt = { class: "package-group-option__title" }, ft = ["innerHTML"];
166
166
  function yt(e, t, n, o, s, i) {
167
- const f = g("CIcon");
167
+ const f = v("CIcon");
168
168
  return a(), c("div", ut, [
169
- l("div", pt, p(e.$t("title")), 1),
169
+ l("div", pt, u(e.$t("title")), 1),
170
170
  l("div", null, [
171
171
  l("div", {
172
172
  class: V([{ "is-700-or-less": o.docWidth <= 700 }, "options"])
173
173
  }, [
174
- (a(!0), c(C, null, S(s.options, (v, y) => (a(), c("div", {
174
+ (a(!0), c(C, null, S(s.options, (h, y) => (a(), c("div", {
175
175
  key: y,
176
- style: J({ backgroundColor: v.background }),
176
+ style: Q({ backgroundColor: h.background }),
177
177
  class: "package-group-option",
178
- onClick: (d) => e.$emit("input", v.value)
178
+ onClick: (d) => e.$emit("input", h.value)
179
179
  }, [
180
180
  l("div", ht, [
181
- v.value === "single" ? (a(), c("div", gt, t[0] || (t[0] = [
181
+ h.value === "single" ? (a(), c("div", gt, t[0] || (t[0] = [
182
182
  l("div", { style: { flex: "1 1 auto" } }, [
183
183
  l("div", {
184
184
  style: { width: "40%", height: "10px", "margin-bottom": "8px" },
@@ -190,17 +190,17 @@ function yt(e, t, n, o, s, i) {
190
190
  })
191
191
  ], -1)
192
192
  ]))) : b("", !0),
193
- v.value === "radio" ? (a(), c(C, { key: 1 }, S(3, (d) => l("div", {
193
+ h.value === "radio" ? (a(), c(C, { key: 1 }, S(3, (d) => l("div", {
194
194
  key: d,
195
195
  class: V([{ animate: d === 2 }, "package-group-option__illustration-card"])
196
196
  }, [
197
197
  l("div", {
198
- style: J([
198
+ style: Q([
199
199
  { width: "8px", height: "8px", "border-radius": "50%", "box-shadow": `0 0 0 1px white,
200
200
  0 0 0 2px hsl(0, 0%, 76%)`, "margin-right": "10px" },
201
201
  d === 2 && {
202
- boxShadow: `0 0 0 1px white, 0 0 0 2px ${v.background}`,
203
- backgroundColor: v.background
202
+ boxShadow: `0 0 0 1px white, 0 0 0 2px ${h.background}`,
203
+ backgroundColor: h.background
204
204
  }
205
205
  ])
206
206
  }, null, 4),
@@ -215,14 +215,14 @@ function yt(e, t, n, o, s, i) {
215
215
  })
216
216
  ], -1))
217
217
  ], 2)), 64)) : b("", !0),
218
- v.value === "checkbox" ? (a(), c(C, { key: 2 }, S(3, (d) => l("div", {
218
+ h.value === "checkbox" ? (a(), c(C, { key: 2 }, S(3, (d) => l("div", {
219
219
  key: d,
220
220
  class: V([{ animate: d !== 3 }, "package-group-option__illustration-card"])
221
221
  }, [
222
222
  l("div", {
223
- style: J([{ height: "12px", width: "12px", "border-radius": "2px", "background-color": "hsl(0, 0%, 76%)", "margin-right": "10px", color: "white", padding: "1px", display: "inline-flex", "align-items": "center", "justify-content": "center" }, d !== 3 && { backgroundColor: v.background }])
223
+ style: Q([{ height: "12px", width: "12px", "border-radius": "2px", "background-color": "hsl(0, 0%, 76%)", "margin-right": "10px", color: "white", padding: "1px", display: "inline-flex", "align-items": "center", "justify-content": "center" }, d !== 3 && { backgroundColor: h.background }])
224
224
  }, [
225
- u(f, {
225
+ p(f, {
226
226
  type: d !== 3 ? "check" : "empty",
227
227
  "stroke-width": "5",
228
228
  size: "8"
@@ -241,10 +241,10 @@ function yt(e, t, n, o, s, i) {
241
241
  ], 2)), 64)) : b("", !0)
242
242
  ]),
243
243
  l("div", null, [
244
- l("div", vt, p(v.title), 1),
244
+ l("div", vt, u(h.title), 1),
245
245
  l("div", {
246
246
  class: "package-group-option__subtitle",
247
- innerHTML: v.subTitle
247
+ innerHTML: h.subTitle
248
248
  }, null, 8, ft)
249
249
  ])
250
250
  ], 12, mt))), 128))
@@ -252,12 +252,12 @@ function yt(e, t, n, o, s, i) {
252
252
  ])
253
253
  ]);
254
254
  }
255
- const kt = /* @__PURE__ */ M(dt, [["render", yt], ["__scopeId", "data-v-9558e77f"]]), bt = {
255
+ const kt = /* @__PURE__ */ D(dt, [["render", yt], ["__scopeId", "data-v-9558e77f"]]), bt = {
256
256
  name: "ArticleAutocomplete",
257
257
  components: {
258
258
  SearchApi: tt
259
259
  },
260
- mixins: [F([])],
260
+ mixins: [q([])],
261
261
  props: {
262
262
  tag: {
263
263
  type: String,
@@ -316,9 +316,9 @@ const kt = /* @__PURE__ */ M(dt, [["render", yt], ["__scopeId", "data-v-9558e77f
316
316
  },
317
317
  methods: {
318
318
  ...z({
319
- loadArticles: L.LOAD_ARTICLES
319
+ loadArticles: O.LOAD_ARTICLES
320
320
  }),
321
- priceFormat: N,
321
+ priceFormat: H,
322
322
  search(e, t) {
323
323
  this.$emit("update:modelValue", t), !this.viewSettings.isPublicForm && e({
324
324
  q: t,
@@ -378,7 +378,7 @@ const kt = /* @__PURE__ */ M(dt, [["render", yt], ["__scopeId", "data-v-9558e77f
378
378
  key: 0,
379
379
  ref: "dropdown",
380
380
  class: "r-container"
381
- }, It = ["onClickCapture"], $t = { class: "r-item-title w-full truncate" }, _t = { class: "r-item-details" }, Tt = {
381
+ }, It = ["onClickCapture"], _t = { class: "r-item-title w-full truncate" }, $t = { class: "r-item-details" }, Tt = {
382
382
  key: 0,
383
383
  style: { width: "18px", height: "18px", "border-radius": "2px", "background-color": "hsl(0, 0%, 60%)", display: "inline-flex", "justify-content": "center", "align-items": "center" }
384
384
  }, At = { key: 1 }, Ct = { key: 2 }, Pt = { key: 3 }, xt = {
@@ -386,20 +386,20 @@ const kt = /* @__PURE__ */ M(dt, [["render", yt], ["__scopeId", "data-v-9558e77f
386
386
  class: "r-item-icon"
387
387
  };
388
388
  function Vt(e, t, n, o, s, i) {
389
- const f = g("CInput"), v = g("SearchApi"), y = g("CIcon");
389
+ const f = v("CInput"), h = v("SearchApi"), y = v("CIcon");
390
390
  return a(), c("div", B({
391
391
  class: { "is-open": s.isOpen }
392
392
  }, e.$attrs, {
393
393
  style: { position: "relative" },
394
394
  onKeydownPassive: t[0] || (t[0] = (...d) => i.onKeydown && i.onKeydown(...d))
395
395
  }), [
396
- u(v, { "custom-search": {
396
+ p(h, { "custom-search": {
397
397
  article: !0,
398
398
  extensionArticle: !0,
399
399
  project: !1
400
400
  } }, {
401
- default: h(({ fetch: d }) => [
402
- u(f, B({
401
+ default: g(({ fetch: d }) => [
402
+ p(f, B({
403
403
  ...e.$attrs,
404
404
  ...e.$props
405
405
  }, {
@@ -416,11 +416,11 @@ function Vt(e, t, n, o, s, i) {
416
416
  ],
417
417
  onBlur: i.onBlur
418
418
  }), {
419
- prefix: h(() => [
420
- ie(e.$slots, "prefix", {}, void 0, !0)
419
+ prefix: g(() => [
420
+ ne(e.$slots, "prefix", {}, void 0, !0)
421
421
  ]),
422
- suffix: h(() => [
423
- ie(e.$slots, "suffix", {}, void 0, !0)
422
+ suffix: g(() => [
423
+ ne(e.$slots, "suffix", {}, void 0, !0)
424
424
  ]),
425
425
  _: 2
426
426
  }, 1040, ["model-value", "type", "onUpdate:modelValue", "onFocus", "onKeydown", "onBlur"])
@@ -431,23 +431,23 @@ function Vt(e, t, n, o, s, i) {
431
431
  (a(!0), c(C, null, S(s.searchResults, (d, k) => (a(), c("div", {
432
432
  key: k,
433
433
  class: V([{ active: s.selectedIndex === k }, "r-item"]),
434
- onClickCapture: H((w) => i.onSelect(d), ["stop"])
434
+ onClickCapture: G((w) => i.onSelect(d), ["stop"])
435
435
  }, [
436
- l("div", $t, p(d.name), 1),
437
- l("div", _t, [
436
+ l("div", _t, u(d.name), 1),
437
+ l("div", $t, [
438
438
  d.externalReference && d.externalReference.service ? (a(), c("div", Tt, [
439
- u(y, {
439
+ p(y, {
440
440
  type: d.externalReference.service,
441
441
  style: { color: "white" },
442
442
  size: "14"
443
443
  }, null, 8, ["type"])
444
444
  ])) : b("", !0),
445
- d.article_no ? (a(), c("div", At, p(d.article_no), 1)) : b("", !0),
446
- d.price ? (a(), c("div", Ct, p(i.priceFormat(d.price, { currency: d.currency })), 1)) : b("", !0),
447
- d.vat ? (a(), c("div", Pt, p(e.$t("vat.sharedTitle").capitalize()) + " " + p(d.vat) + "% ", 1)) : b("", !0)
445
+ d.article_no ? (a(), c("div", At, u(d.article_no), 1)) : b("", !0),
446
+ d.price ? (a(), c("div", Ct, u(i.priceFormat(d.price, { currency: d.currency })), 1)) : b("", !0),
447
+ d.vat ? (a(), c("div", Pt, u(e.$t("vat.sharedTitle").capitalize()) + " " + u(d.vat) + "% ", 1)) : b("", !0)
448
448
  ]),
449
449
  s.selectedIndex === k ? (a(), c("div", xt, [
450
- u(y, {
450
+ p(y, {
451
451
  type: "corner-down-left",
452
452
  size: "16"
453
453
  })
@@ -456,13 +456,13 @@ function Vt(e, t, n, o, s, i) {
456
456
  ], 512)) : b("", !0)
457
457
  ], 16);
458
458
  }
459
- const be = /* @__PURE__ */ M(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c"]]), pe = {
459
+ const be = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c"]]), pe = {
460
460
  isDeductable: !1,
461
461
  isRut: !1,
462
462
  greenRot15: !1,
463
463
  greenRot20: !1,
464
464
  greenRot50: !1
465
- }, G = (e, t = "", n) => {
465
+ }, K = (e, t = "", n) => {
466
466
  let o = {
467
467
  ...e,
468
468
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
@@ -472,14 +472,14 @@ const be = /* @__PURE__ */ M(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
472
472
  ...o,
473
473
  ...pe,
474
474
  [n]: !0
475
- }), De(o.quantity) !== "number" && (o.quantity = 0), ne(o);
475
+ }), Re(o.quantity) !== "number" && (o.quantity = 0), se(o);
476
476
  }, we = ({
477
477
  stored: e,
478
478
  current: t,
479
479
  hidePrice: n = !1,
480
480
  activeHouseWorkType: o
481
481
  }) => {
482
- let s = Re({
482
+ let s = Me({
483
483
  ...e,
484
484
  quantity: 1,
485
485
  showPrice: !n,
@@ -488,7 +488,7 @@ const be = /* @__PURE__ */ M(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
488
488
  packageId: t.packageId
489
489
  });
490
490
  if (o) {
491
- const i = (y = []) => y.reduce((d, k) => ({ ...d, [k]: !1 }), {}), v = Object.values(
491
+ const i = (y = []) => y.reduce((d, k) => ({ ...d, [k]: !1 }), {}), h = Object.values(
492
492
  fe({
493
493
  rot: "isDeductable",
494
494
  rut: "isRut",
@@ -497,11 +497,11 @@ const be = /* @__PURE__ */ M(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
497
497
  greenRot50: "greenRot50"
498
498
  }, [o])
499
499
  );
500
- v.some((y) => !!s[y]) && (s = { ...s, ...i(v) });
500
+ h.some((y) => !!s[y]) && (s = { ...s, ...i(h) });
501
501
  }
502
502
  return s;
503
503
  }, St = (e, t = null) => {
504
- const n = se(e.currency, t);
504
+ const n = ae(e.currency, t);
505
505
  switch (e.priceType) {
506
506
  case "approx":
507
507
  return `${Le.t("_common:approx")} ${n}`;
@@ -557,13 +557,13 @@ const be = /* @__PURE__ */ M(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
557
557
  }
558
558
  }
559
559
  }
560
- }, $e = {
560
+ }, _e = {
561
561
  article: {
562
562
  name: {
563
563
  maxLength: it(255)
564
564
  }
565
565
  }
566
- }, Mt = {
566
+ }, Dt = {
567
567
  name: "Article",
568
568
  i18nOptions: {
569
569
  namespaces: "Article",
@@ -572,7 +572,7 @@ const be = /* @__PURE__ */ M(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
572
572
  components: {
573
573
  ErrorCallout: me,
574
574
  ArticleAutocomplete: be,
575
- CPriceInput: Z
575
+ CPriceInput: J
576
576
  },
577
577
  expose: ["focusName"],
578
578
  props: {
@@ -622,14 +622,16 @@ const be = /* @__PURE__ */ M(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
622
622
  v$: ye()
623
623
  };
624
624
  },
625
- validations: $e,
625
+ validations: _e,
626
626
  data() {
627
+ const e = /* @__PURE__ */ new Date() >= /* @__PURE__ */ new Date("2025-07-01");
627
628
  return {
628
- updateData: G,
629
+ updateData: K,
629
630
  addSavedArticle: we,
630
631
  articleUnitLabel: W,
631
632
  widthCompact: 580,
632
- visualDisable: !1
633
+ visualDisable: !1,
634
+ isAfterDeadline: e
633
635
  };
634
636
  },
635
637
  computed: {
@@ -649,12 +651,17 @@ const be = /* @__PURE__ */ M(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
649
651
  price: s,
650
652
  vat: i,
651
653
  discount: f,
652
- discountType: v
654
+ discountType: h
653
655
  } = this.article;
654
656
  if (t !== "fixed" && e.push({ title: this.$t(`priceTypeShort.${t}`) }), Oe(this.article)) {
655
657
  const y = Ee(this.article);
656
658
  e.push({
657
- title: this.$t(`_common:deduction.${y}_percentage`)
659
+ title: this.$t(`_common:deduction.${y}_percentage`),
660
+ detailClass: y === "greenRot20" && this.isAfterDeadline && "!decoration-2 !decoration-red-500 !line-through hover:!bg-red-200 hover:!decoration-red-500 hover:!text-red-600 hover:!border-red-100",
661
+ tooltip: y === "greenRot20" && this.isAfterDeadline && {
662
+ content: this.$t(`${y}_deprecated_tooltip`),
663
+ delay: { show: 300, hide: 0 }
664
+ }
658
665
  });
659
666
  }
660
667
  return n && ["fixed", "approx"].includes(t) && (o !== "unit" || n > 1) && e.push({
@@ -664,7 +671,7 @@ const be = /* @__PURE__ */ M(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
664
671
  }),
665
672
  ...!this.hidePriceInput && {
666
673
  icon: '<svg style="margin: 0 4px;" width="6" height="6" viewBox="0 0 148 141" xmlns="http://www.w3.org/2000/svg"><path d="M73.742787 92.65535l-34.444359 47.40859-18.607391-13.51906 34.060775-46.88064L0 61.8743 7.107391 40 62 57.83569V0h23v57.99346L140.378182 40l7.107391 21.8743-54.751812 17.78994 34.060775 46.88064-18.607391 13.51906-34.444358-47.40859z" fill="currentColor" fill-rule="evenodd"/></svg>',
667
- subTitle: N(s, {
674
+ subTitle: H(s, {
668
675
  showZero: !0,
669
676
  withVat: this.isIncVat ? i : !1,
670
677
  currency: this.article.currency,
@@ -673,7 +680,7 @@ const be = /* @__PURE__ */ M(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
673
680
  })
674
681
  }
675
682
  }), f && e.push({
676
- title: "-" + (v === "fixed" ? N(f, {
683
+ title: "-" + (h === "fixed" ? H(f, {
677
684
  withVat: this.isIncVat ? i : !1,
678
685
  currency: this.article.currency
679
686
  }) : `${f / 100} %`),
@@ -683,7 +690,7 @@ const be = /* @__PURE__ */ M(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
683
690
  },
684
691
  methods: {
685
692
  updateArticle(e, t) {
686
- this.article = G(this.article, e, t);
693
+ this.article = K(this.article, e, t);
687
694
  },
688
695
  onTotalPriceInputFocus() {
689
696
  (this.article.discount || this.article.quantity !== 1) && this.$emit("open-modal", { focusEl: "priceInput" });
@@ -696,9 +703,9 @@ const be = /* @__PURE__ */ M(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
696
703
  return e.$error && e.article.name.$error && ((t = e.article.name.maxLength) != null && t.$invalid) ? this.$t("validations.name.maxLength") : null;
697
704
  }
698
705
  }
699
- }, Dt = { class: "top-row flex w-full" }, Rt = ["innerHTML"];
706
+ }, Rt = { class: "top-row flex w-full" }, Mt = ["innerHTML"];
700
707
  function Lt(e, t, n, o, s, i) {
701
- const f = g("CIcon"), v = g("ArticleAutocomplete"), y = g("CPriceInput"), d = g("ErrorCallout"), k = U("tooltip");
708
+ const f = v("CIcon"), h = v("ArticleAutocomplete"), y = v("CPriceInput"), d = v("ErrorCallout"), k = U("tooltip");
702
709
  return a(), c("div", {
703
710
  class: V([{
704
711
  "has-details": i.details.length,
@@ -707,8 +714,8 @@ function Lt(e, t, n, o, s, i) {
707
714
  }, "article-wrapper"]),
708
715
  onKeydown: t[10] || (t[10] = j((w) => e.$emit("esc"), ["esc"]))
709
716
  }, [
710
- l("div", Dt, [
711
- u(v, B({
717
+ l("div", Rt, [
718
+ p(h, B({
712
719
  ref: "name",
713
720
  "model-value": i.article.name,
714
721
  placeholder: e.$t("namePlaceholder"),
@@ -729,13 +736,13 @@ function Lt(e, t, n, o, s, i) {
729
736
  ), e.$emit("select");
730
737
  })
731
738
  }), {
732
- suffix: h(() => [
739
+ suffix: g(() => [
733
740
  n.hideControls ? b("", !0) : R((a(), c("div", {
734
741
  key: 0,
735
742
  class: "article-button fade-in",
736
743
  onClick: t[0] || (t[0] = (w) => e.$emit("open-modal"))
737
744
  }, [
738
- u(f, {
745
+ p(f, {
739
746
  type: "cog",
740
747
  size: "18"
741
748
  })
@@ -768,14 +775,14 @@ function Lt(e, t, n, o, s, i) {
768
775
  onKeydown: t[7] || (t[7] = j((w) => e.$emit("add"), ["enter"]))
769
776
  }), null, 16, ["model-value", "currency", "is-inc-vat", "vat", "placeholder", "price-type", "unit-label"])),
770
777
  n.hideControls ? b("", !0) : (a(), c(C, { key: 1 }, [
771
- u(f, {
778
+ p(f, {
772
779
  class: "a-control-button close-button fade-in",
773
780
  circle: "",
774
781
  type: "x",
775
782
  size: "18",
776
783
  onClick: t[8] || (t[8] = (w) => n.enableRemove ? e.$emit("remove") : null)
777
784
  }),
778
- u(f, {
785
+ p(f, {
779
786
  class: V([{ "c-hidden": !n.enableRemove }, "a-control-button fade-in move-button article-draggable-handle"]),
780
787
  circle: "",
781
788
  type: "handle",
@@ -789,17 +796,19 @@ function Lt(e, t, n, o, s, i) {
789
796
  style: { cursor: "pointer" },
790
797
  onClick: t[9] || (t[9] = (w) => e.$emit("open-modal"))
791
798
  }, [
792
- (a(!0), c(C, null, S(i.details, ({ title: w, icon: _, subTitle: m = "", detailClass: T = "" }, r) => (a(), c("div", {
793
- key: r,
799
+ (a(!0), c(C, null, S(i.details, ({ title: w, icon: $, subTitle: m = "", detailClass: T = "", tooltip: r }, P) => R((a(), c("div", {
800
+ key: P,
794
801
  class: V([[T], "article-details-item"])
795
802
  }, [
796
- $(p(w) + " ", 1),
797
- _ ? (a(), c("div", {
803
+ I(u(w) + " ", 1),
804
+ $ ? (a(), c("div", {
798
805
  key: 0,
799
- innerHTML: _
800
- }, null, 8, Rt)) : b("", !0),
801
- $(" " + p(m), 1)
802
- ], 2))), 128))
806
+ innerHTML: $
807
+ }, null, 8, Mt)) : b("", !0),
808
+ I(" " + u(m), 1)
809
+ ], 2)), [
810
+ [k, r]
811
+ ])), 128))
803
812
  ])) : b("", !0),
804
813
  o.v$.$invalid && o.v$.$dirty ? (a(), A(d, {
805
814
  key: 1,
@@ -807,7 +816,7 @@ function Lt(e, t, n, o, s, i) {
807
816
  }, null, 8, ["message"])) : b("", !0)
808
817
  ], 34);
809
818
  }
810
- const Ot = /* @__PURE__ */ M(Mt, [["render", Lt], ["__scopeId", "data-v-1a5f5b54"]]), Et = {
819
+ const Ot = /* @__PURE__ */ D(Dt, [["render", Lt], ["__scopeId", "data-v-495457b4"]]), Et = {
811
820
  emits: ["go", "close"],
812
821
  props: {
813
822
  canForward: {
@@ -877,7 +886,7 @@ function Bt(e, t, n, o, s, i) {
877
886
  R((a(), c("div", {
878
887
  class: V([{ disabled: !n.canBackward }, "l-button"]),
879
888
  style: { left: "calc(-4 * var(--rem))" },
880
- onClick: t[0] || (t[0] = (v) => e.$emit("go", -1))
889
+ onClick: t[0] || (t[0] = (h) => e.$emit("go", -1))
881
890
  }, t[2] || (t[2] = [
882
891
  l("svg", {
883
892
  xmlns: "http://www.w3.org/2000/svg",
@@ -898,7 +907,7 @@ function Bt(e, t, n, o, s, i) {
898
907
  R((a(), c("div", {
899
908
  class: V([{ disabled: !n.canForward }, "l-button"]),
900
909
  style: { right: "calc(-4 * var(--rem))" },
901
- onClick: t[1] || (t[1] = (v) => e.$emit("go", 1))
910
+ onClick: t[1] || (t[1] = (h) => e.$emit("go", 1))
902
911
  }, t[3] || (t[3] = [
903
912
  l("svg", {
904
913
  xmlns: "http://www.w3.org/2000/svg",
@@ -918,7 +927,7 @@ function Bt(e, t, n, o, s, i) {
918
927
  ])
919
928
  ]);
920
929
  }
921
- const Wt = /* @__PURE__ */ M(Et, [["render", Bt], ["__scopeId", "data-v-f685b502"]]), zt = {
930
+ const Wt = /* @__PURE__ */ D(Et, [["render", Bt], ["__scopeId", "data-v-f685b502"]]), zt = {
922
931
  name: "ArticleUnitEditModal",
923
932
  i18nOptions: {
924
933
  namespaces: "ArticleUnitEditModal",
@@ -991,10 +1000,10 @@ const Wt = /* @__PURE__ */ M(Et, [["render", Bt], ["__scopeId", "data-v-f685b502
991
1000
  },
992
1001
  methods: {
993
1002
  ...z({
994
- loadUnits: L.LOAD_UNIT_TYPES,
995
- createUnit: L.CREATE_UNIT_TYPE,
996
- updateUnit: L.UPDATE_UNIT_TYPE,
997
- deleteUnit: L.DELETE_UNIT_TYPE
1003
+ loadUnits: O.LOAD_UNIT_TYPES,
1004
+ createUnit: O.CREATE_UNIT_TYPE,
1005
+ updateUnit: O.UPDATE_UNIT_TYPE,
1006
+ deleteUnit: O.DELETE_UNIT_TYPE
998
1007
  }),
999
1008
  onEdit(e) {
1000
1009
  this.selectedValue = { ...e }, this.$refs.unitInput && this.$refs.unitInput.focus();
@@ -1029,7 +1038,7 @@ const Wt = /* @__PURE__ */ M(Et, [["render", Bt], ["__scopeId", "data-v-f685b502
1029
1038
  }, jt = {
1030
1039
  class: "unit-modal-root font-inter",
1031
1040
  style: { position: "relative" }
1032
- }, qt = { style: { padding: "calc(1.5 * var(--rem))" } }, Ft = { style: { "font-weight": "600", "font-size": "18px", "margin-bottom": "calc(1.5 * var(--rem))" } }, Nt = { class: "control" }, Ht = { style: { "border-top": "1px solid hsl(0, 0%, 88%)", overflow: "auto", "max-height": "360px" } }, Gt = {
1041
+ }, Ft = { style: { padding: "calc(1.5 * var(--rem))" } }, qt = { style: { "font-weight": "600", "font-size": "18px", "margin-bottom": "calc(1.5 * var(--rem))" } }, Nt = { class: "control" }, Ht = { style: { "border-top": "1px solid hsl(0, 0%, 88%)", overflow: "auto", "max-height": "360px" } }, Gt = {
1033
1042
  class: "text-gray-400",
1034
1043
  style: { "font-size": "14px", padding: "calc(1 * var(--rem)) calc(1.5 * var(--rem)) 0", "font-weight": "500" }
1035
1044
  }, Kt = { class: "unit-modal-list" }, Yt = {
@@ -1037,30 +1046,30 @@ const Wt = /* @__PURE__ */ M(Et, [["render", Bt], ["__scopeId", "data-v-f685b502
1037
1046
  class: "unit-modal-list-empty"
1038
1047
  }, Zt = ["onMouseoverPassive", "onClick"], Jt = { class: "drag-handle" }, Qt = { style: { "padding-left": "0.5em" } }, Xt = { class: "unittype-buttons" };
1039
1048
  function ei(e, t, n, o, s, i) {
1040
- const f = g("CIcon"), v = g("CButton"), y = g("CInput"), d = g("CField"), k = g("DragItem"), w = g("DragList"), _ = U("tooltip");
1049
+ const f = v("CIcon"), h = v("CButton"), y = v("CInput"), d = v("CField"), k = v("DragItem"), w = v("DragList"), $ = U("tooltip");
1041
1050
  return a(), c("div", {
1042
1051
  class: "modal-overlay font-inter",
1043
- onClickPassive: t[3] || (t[3] = H((...m) => i.close && i.close(...m), ["self"]))
1052
+ onClickPassive: t[3] || (t[3] = G((...m) => i.close && i.close(...m), ["self"]))
1044
1053
  }, [
1045
1054
  l("div", jt, [
1046
- l("div", qt, [
1047
- l("div", Ft, [
1048
- l("span", null, p(e.$t("_common:add", { thing: e.$t("_common:unitType.unitType_other") })), 1),
1049
- R(u(f, {
1055
+ l("div", Ft, [
1056
+ l("div", qt, [
1057
+ l("span", null, u(e.$t("_common:add", { thing: e.$t("_common:unitType.unitType_other") })), 1),
1058
+ R(p(f, {
1050
1059
  type: "info",
1051
1060
  size: "15",
1052
1061
  class: "text-gray-400",
1053
1062
  style: { "margin-left": "0.5em" }
1054
1063
  }, null, 512), [
1055
- [_, { content: e.$t("tooltip"), html: !0 }]
1064
+ [$, { content: e.$t("tooltip"), html: !0 }]
1056
1065
  ])
1057
1066
  ]),
1058
- u(d, {
1067
+ p(d, {
1059
1068
  grouped: "",
1060
1069
  style: { margin: "0" }
1061
1070
  }, {
1062
- default: h(() => [
1063
- u(y, {
1071
+ default: g(() => [
1072
+ p(y, {
1064
1073
  ref: "unitInput",
1065
1074
  modelValue: s.selectedValue.value,
1066
1075
  "onUpdate:modelValue": t[0] || (t[0] = (m) => s.selectedValue.value = m),
@@ -1072,8 +1081,8 @@ function ei(e, t, n, o, s, i) {
1072
1081
  }, ge({ _: 2 }, [
1073
1082
  s.selectedValue.id ? {
1074
1083
  name: "suffix",
1075
- fn: h(() => [
1076
- u(v, {
1084
+ fn: g(() => [
1085
+ p(h, {
1077
1086
  icon: "x",
1078
1087
  type: "none",
1079
1088
  pattern: "tertiary",
@@ -1086,14 +1095,14 @@ function ei(e, t, n, o, s, i) {
1086
1095
  } : void 0
1087
1096
  ]), 1032, ["modelValue", "placeholder"]),
1088
1097
  l("div", Nt, [
1089
- u(v, {
1098
+ p(h, {
1090
1099
  loading: e.isPosting,
1091
1100
  disabled: !s.selectedValue.value,
1092
1101
  type: "secondary",
1093
1102
  onClick: i.submit
1094
1103
  }, {
1095
- default: h(() => [
1096
- $(p(s.selectedValue.id ? e.$t("_common:save") : e.$t("_common:add")), 1)
1104
+ default: g(() => [
1105
+ I(u(s.selectedValue.id ? e.$t("_common:save") : e.$t("_common:add")), 1)
1097
1106
  ]),
1098
1107
  _: 1
1099
1108
  }, 8, ["loading", "disabled", "onClick"])
@@ -1103,21 +1112,21 @@ function ei(e, t, n, o, s, i) {
1103
1112
  })
1104
1113
  ]),
1105
1114
  l("div", Ht, [
1106
- l("div", Gt, p(e.$t("_common:unit_other").capitalize()), 1),
1115
+ l("div", Gt, u(e.$t("_common:unit_other").capitalize()), 1),
1107
1116
  l("div", Kt, [
1108
- i.unitItems.length ? b("", !0) : (a(), c("div", Yt, p(e.$t("_common:add", { thing: e.$t("_common:unit_other") })), 1)),
1109
- u(w, {
1117
+ i.unitItems.length ? b("", !0) : (a(), c("div", Yt, u(e.$t("_common:add", { thing: e.$t("_common:unit_other") })), 1)),
1118
+ p(w, {
1110
1119
  "drop-placeholder": { className: "drag-drop-placeholder" },
1111
1120
  "drag-class": "is-dragged",
1112
1121
  "lock-axis": "y",
1113
1122
  "drag-handle-selector": ".drag-handle",
1114
1123
  onDrop: i.onDrop
1115
1124
  }, {
1116
- default: h(() => [
1125
+ default: g(() => [
1117
1126
  (a(!0), c(C, null, S(i.unitItems, (m, T) => (a(), A(k, {
1118
1127
  key: m.id
1119
1128
  }, {
1120
- default: h(() => [
1129
+ default: g(() => [
1121
1130
  l("div", {
1122
1131
  class: V([{ "is-editing": s.selectedValue.id === m.id }, "unit-modal-list-item"]),
1123
1132
  onMouseoverPassive: (r) => s.hoverIndex = T,
@@ -1125,28 +1134,28 @@ function ei(e, t, n, o, s, i) {
1125
1134
  onClick: (r) => i.onEdit(m)
1126
1135
  }, [
1127
1136
  l("div", Jt, [
1128
- u(f, {
1137
+ p(f, {
1129
1138
  type: "handle",
1130
1139
  size: "16",
1131
1140
  class: "text-gray-300"
1132
1141
  })
1133
1142
  ]),
1134
- l("div", Qt, p(m.label), 1),
1135
- R(l("span", { class: "delete-confirm" }, p(e.$t("_common:remove")) + "? ", 513), [
1143
+ l("div", Qt, u(m.label), 1),
1144
+ R(l("span", { class: "delete-confirm" }, u(e.$t("_common:remove")) + "? ", 513), [
1136
1145
  [We, s.removeConfirmIndex === T]
1137
1146
  ]),
1138
1147
  l("div", Xt, [
1139
- s.hoverIndex === T || s.removeConfirmIndex === T ? (a(), A(v, {
1148
+ s.hoverIndex === T || s.removeConfirmIndex === T ? (a(), A(h, {
1140
1149
  key: 0,
1141
1150
  type: s.removeConfirmIndex === T ? "danger" : "none",
1142
1151
  pattern: s.removeConfirmIndex === T ? "primary" : "tertiary",
1143
1152
  circle: "",
1144
1153
  icon: "x",
1145
1154
  size: "small",
1146
- onClick: H((r) => i.remove(m.id, T), ["stop", "prevent"]),
1155
+ onClick: G((r) => i.remove(m.id, T), ["stop", "prevent"]),
1147
1156
  onBlur: t[1] || (t[1] = (r) => s.removeConfirmIndex = null)
1148
1157
  }, null, 8, ["type", "pattern", "onClick"])) : b("", !0),
1149
- u(v, {
1158
+ p(h, {
1150
1159
  icon: "edit",
1151
1160
  size: "small",
1152
1161
  type: "none",
@@ -1166,11 +1175,11 @@ function ei(e, t, n, o, s, i) {
1166
1175
  ])
1167
1176
  ], 32);
1168
1177
  }
1169
- const ti = /* @__PURE__ */ M(zt, [["render", ei], ["__scopeId", "data-v-439571ca"]]), ii = {
1178
+ const ti = /* @__PURE__ */ D(zt, [["render", ei], ["__scopeId", "data-v-439571ca"]]), ii = {
1170
1179
  name: "ArticleUnitSelect",
1171
1180
  components: {
1172
- CDropdown: Y,
1173
- CDropdownItem: K
1181
+ CDropdown: Z,
1182
+ CDropdownItem: Y
1174
1183
  },
1175
1184
  props: {
1176
1185
  modelValue: {
@@ -1203,7 +1212,7 @@ const ti = /* @__PURE__ */ M(zt, [["render", ei], ["__scopeId", "data-v-439571ca
1203
1212
  methods: {
1204
1213
  articleUnitLabel: W,
1205
1214
  ...z({
1206
- loadUnits: L.LOAD_UNIT_TYPES
1215
+ loadUnits: O.LOAD_UNIT_TYPES
1207
1216
  }),
1208
1217
  openEditModal() {
1209
1218
  this.$modal.show(
@@ -1218,7 +1227,7 @@ const ti = /* @__PURE__ */ M(zt, [["render", ei], ["__scopeId", "data-v-439571ca
1218
1227
  }
1219
1228
  };
1220
1229
  function ni(e, t, n, o, s, i) {
1221
- const f = g("CButton"), v = g("CDropdownItem"), y = g("CDropdown");
1230
+ const f = v("CButton"), h = v("CDropdownItem"), y = v("CDropdown");
1222
1231
  return a(), A(y, B({
1223
1232
  position: "is-bottom-left",
1224
1233
  maxHeight: "240px",
@@ -1228,20 +1237,20 @@ function ni(e, t, n, o, s, i) {
1228
1237
  scrollable: "",
1229
1238
  "onUpdate:modelValue": t[0] || (t[0] = (d) => e.$emit("update:modelValue", d))
1230
1239
  }), {
1231
- trigger: h(() => [
1232
- ie(e.$slots, "default", {}, () => [
1233
- u(f, {
1240
+ trigger: g(() => [
1241
+ ne(e.$slots, "default", {}, () => [
1242
+ p(f, {
1234
1243
  type: "none",
1235
1244
  pattern: "tertiary"
1236
1245
  }, {
1237
- default: h(() => [
1238
- $(p(i.articleUnitLabel(n.modelValue)), 1)
1246
+ default: g(() => [
1247
+ I(u(i.articleUnitLabel(n.modelValue)), 1)
1239
1248
  ]),
1240
1249
  _: 1
1241
1250
  })
1242
1251
  ], !0)
1243
1252
  ]),
1244
- footer: h(() => [
1253
+ footer: g(() => [
1245
1254
  n.isPublicForm ? b("", !0) : (a(), A(f, {
1246
1255
  key: 0,
1247
1256
  type: "none",
@@ -1250,19 +1259,19 @@ function ni(e, t, n, o, s, i) {
1250
1259
  class: "edit-button",
1251
1260
  onClick: i.openEditModal
1252
1261
  }, {
1253
- default: h(() => [
1254
- $(p(e.$t("_common:edit", { thing: e.$t("_common:unit_other") })), 1)
1262
+ default: g(() => [
1263
+ I(u(e.$t("_common:edit", { thing: e.$t("_common:unit_other") })), 1)
1255
1264
  ]),
1256
1265
  _: 1
1257
1266
  }, 8, ["onClick"]))
1258
1267
  ]),
1259
- default: h(() => [
1260
- (a(!0), c(C, null, S(i.unitItems, (d, k) => (a(), A(v, {
1268
+ default: g(() => [
1269
+ (a(!0), c(C, null, S(i.unitItems, (d, k) => (a(), A(h, {
1261
1270
  key: `${d}-${k}`,
1262
1271
  value: d
1263
1272
  }, {
1264
- default: h(() => [
1265
- $(p(i.articleUnitLabel(d)), 1)
1273
+ default: g(() => [
1274
+ I(u(i.articleUnitLabel(d)), 1)
1266
1275
  ]),
1267
1276
  _: 2
1268
1277
  }, 1032, ["value"]))), 128))
@@ -1270,7 +1279,7 @@ function ni(e, t, n, o, s, i) {
1270
1279
  _: 3
1271
1280
  }, 16, ["model-value"]);
1272
1281
  }
1273
- const si = /* @__PURE__ */ M(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe"]]), ai = {
1282
+ const si = /* @__PURE__ */ D(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe"]]), ai = {
1274
1283
  name: "ArticleModal",
1275
1284
  i18nOptions: {
1276
1285
  namespaces: "ArticleModal",
@@ -1280,7 +1289,7 @@ const si = /* @__PURE__ */ M(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe
1280
1289
  ArticleAutocomplete: be,
1281
1290
  ArticleUnitSelect: si,
1282
1291
  ListModalButtons: Wt,
1283
- CPriceInput: Z,
1292
+ CPriceInput: J,
1284
1293
  CField: ke
1285
1294
  },
1286
1295
  emits: ["add", "input", "focus", "close", "open-modal", "update:currency"],
@@ -1344,11 +1353,11 @@ const si = /* @__PURE__ */ M(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe
1344
1353
  v$: ye()
1345
1354
  };
1346
1355
  },
1347
- validations: $e,
1356
+ validations: _e,
1348
1357
  data() {
1349
1358
  return {
1350
1359
  priceSuffix: St,
1351
- updateData: G,
1360
+ updateData: K,
1352
1361
  addSavedArticle: we,
1353
1362
  vatOptions: [
1354
1363
  { value: 25, translation: "25%" },
@@ -1358,7 +1367,7 @@ const si = /* @__PURE__ */ M(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe
1358
1367
  ],
1359
1368
  showDiscountInput: !1,
1360
1369
  setPricesIncVat: !1,
1361
- getCurrencySymbol: se,
1370
+ getCurrencySymbol: ae,
1362
1371
  articleUnitLabel: W
1363
1372
  };
1364
1373
  },
@@ -1383,59 +1392,64 @@ const si = /* @__PURE__ */ M(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe
1383
1392
  return x(this, "_document.vatType") || "";
1384
1393
  },
1385
1394
  checkboxItems() {
1386
- const { article: e } = this || {}, { priceType: t } = this.article || {}, n = [
1387
- ...t !== "markup" ? [
1395
+ const e = /* @__PURE__ */ new Date(), t = /* @__PURE__ */ new Date("2025-07-01"), n = e < t, o = e >= t, { article: s } = this || {}, { priceType: i } = this.article || {}, f = [
1396
+ ...i !== "markup" ? [
1388
1397
  {
1389
1398
  label: this.$t("discount").capitalize(),
1390
- value: e.discount || this.showDiscountInput,
1399
+ value: s.discount || this.showDiscountInput,
1391
1400
  onClick: () => {
1392
1401
  this.showDiscountInput || this.focusEl("discountInput"), this.showDiscountInput = !this.showDiscountInput;
1393
1402
  }
1394
1403
  }
1395
1404
  ] : [],
1396
- ...this.getCompanySetting("showRot") || e.isDeductable ? [
1405
+ ...this.getCompanySetting("showRot") || s.isDeductable ? [
1397
1406
  {
1398
1407
  label: this.$t("_common:deduction.rot"),
1399
1408
  value: this.article.isDeductable,
1400
- onClick: () => this.updateArticle(!e.isDeductable, "isDeductable")
1409
+ onClick: () => this.updateArticle(!s.isDeductable, "isDeductable")
1401
1410
  }
1402
1411
  ] : [],
1403
- ...this.getCompanySetting("showRut") || e.isRut ? [
1412
+ ...this.getCompanySetting("showRut") || s.isRut ? [
1404
1413
  {
1405
1414
  label: this.$t("_common:deduction.rut"),
1406
- value: e.isRut,
1407
- onClick: () => this.updateArticle(!e.isRut, "isRut")
1415
+ value: s.isRut,
1416
+ onClick: () => this.updateArticle(!s.isRut, "isRut")
1408
1417
  }
1409
1418
  ] : [],
1410
- ...e.greenRot15 ? [
1419
+ ...this.getCompanySetting("showGreenRot") || s.greenRot15 ? [
1411
1420
  {
1412
1421
  label: this.$t("_common:deduction.greenRot15_percentage"),
1413
- value: e.greenRot15,
1414
- onClick: () => this.updateArticle(!e.greenRot15, "greenRot15")
1422
+ value: s.greenRot15,
1423
+ onClick: () => this.updateArticle(!s.greenRot15, "greenRot15"),
1424
+ tooltip: n && this.$t("_common:greenRot15_tooltip")
1415
1425
  }
1416
1426
  ] : [],
1417
- ...this.getCompanySetting("showGreenRot") || e.greenRot20 || e.greenRot50 ? [
1427
+ ...this.getCompanySetting("showGreenRot") && n || s.greenRot20 ? [
1418
1428
  {
1419
1429
  label: this.$t("_common:deduction.greenRot20_percentage"),
1420
- value: e.greenRot20,
1421
- onClick: () => this.updateArticle(!e.greenRot20, "greenRot20")
1422
- },
1430
+ value: s.greenRot20,
1431
+ onClick: () => this.updateArticle(!s.greenRot20, "greenRot20"),
1432
+ tooltip: n ? this.$t("_common:greenRot20_tooltip") : this.$t("_common:greenRot20_deprecated_tooltip"),
1433
+ style: o ? "deprecated-rot" : ""
1434
+ }
1435
+ ] : [],
1436
+ ...this.getCompanySetting("showGreenRot") || s.greenRot50 ? [
1423
1437
  {
1424
1438
  label: this.$t("_common:deduction.greenRot50_percentage"),
1425
- value: e.greenRot50,
1426
- onClick: () => this.updateArticle(!e.greenRot50, "greenRot50")
1439
+ value: s.greenRot50,
1440
+ onClick: () => this.updateArticle(!s.greenRot50, "greenRot50")
1427
1441
  }
1428
1442
  ] : []
1429
1443
  ];
1430
1444
  if (this.allowHidePrice) {
1431
- const { showPrice: o } = e || {};
1432
- n.push({
1445
+ const { showPrice: h } = s || {};
1446
+ f.push({
1433
1447
  label: this.$t("hidePriceLabel"),
1434
- value: !o,
1435
- onClick: () => this.updateArticle(!o, "showPrice")
1448
+ value: !h,
1449
+ onClick: () => this.updateArticle(!h, "showPrice")
1436
1450
  });
1437
1451
  }
1438
- return n;
1452
+ return f;
1439
1453
  },
1440
1454
  priceTypeOptions() {
1441
1455
  if (!this.enablePriceTypes || this.rootPriceType === "fixed") return [];
@@ -1501,7 +1515,7 @@ const si = /* @__PURE__ */ M(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe
1501
1515
  },
1502
1516
  methods: {
1503
1517
  ...z({
1504
- createArticle: L.DO_CREATE_ARTICLE
1518
+ createArticle: O.DO_CREATE_ARTICLE
1505
1519
  }),
1506
1520
  onCustomVatBlur(e) {
1507
1521
  x(e, "target.value") || "" || this.updateArticle(0, "vat");
@@ -1513,7 +1527,7 @@ const si = /* @__PURE__ */ M(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe
1513
1527
  n < 0 && (n = 0), this.updateArticle(Number.parseFloat(n), "vat");
1514
1528
  },
1515
1529
  updateArticle(e, t) {
1516
- this.article = G(this.article, e, t);
1530
+ this.article = K(this.article, e, t);
1517
1531
  },
1518
1532
  close() {
1519
1533
  this.$emit("close");
@@ -1580,13 +1594,13 @@ const si = /* @__PURE__ */ M(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe
1580
1594
  style: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "margin-top": "1em" }
1581
1595
  }, vi = ["onClick"], fi = { style: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "margin-top": "1em" } }, yi = ["onClick"], ki = { class: "flex space-x-4 overflow-hidden p-4 md:p-9" };
1582
1596
  function bi(e, t, n, o, s, i) {
1583
- const f = g("ListModalButtons"), v = g("CIcon"), y = g("ArticleAutocomplete"), d = g("CField"), k = g("CInput"), w = g("CButton"), _ = g("ArticleUnitSelect"), m = g("CPriceInput"), T = U("tooltip");
1597
+ const f = v("ListModalButtons"), h = v("CIcon"), y = v("ArticleAutocomplete"), d = v("CField"), k = v("CInput"), w = v("CButton"), $ = v("ArticleUnitSelect"), m = v("CPriceInput"), T = U("tooltip");
1584
1598
  return a(), c("div", {
1585
1599
  class: V([{
1586
1600
  "full-screen": e.mq === "sm",
1587
1601
  "modal-overlay": !0
1588
1602
  }, "font-inter"]),
1589
- onClickPassive: t[15] || (t[15] = H((...r) => i.close && i.close(...r), ["self"]))
1603
+ onClickPassive: t[15] || (t[15] = G((...r) => i.close && i.close(...r), ["self"]))
1590
1604
  }, [
1591
1605
  l("div", oi, [
1592
1606
  e.mq !== "sm" ? (a(), A(f, {
@@ -1600,15 +1614,15 @@ function bi(e, t, n, o, s, i) {
1600
1614
  class: "modal-close",
1601
1615
  onClick: t[1] || (t[1] = (...r) => i.close && i.close(...r))
1602
1616
  }, [
1603
- u(v, { type: "x" })
1617
+ p(h, { type: "x" })
1604
1618
  ])),
1605
- u(je, { name: "slide" }, {
1606
- default: h(() => [
1619
+ p(je, { name: "slide" }, {
1620
+ default: g(() => [
1607
1621
  (a(), c("div", {
1608
1622
  key: i.article._uniqueId,
1609
1623
  class: "modal-main"
1610
1624
  }, [
1611
- u(d, {
1625
+ p(d, {
1612
1626
  validator: o.v$.article.name,
1613
1627
  messages: { maxLength: e.$t("validations.name.maxLength") },
1614
1628
  label: e.$t("name").capitalize(),
@@ -1616,8 +1630,8 @@ function bi(e, t, n, o, s, i) {
1616
1630
  style: { "margin-bottom": "1.5em" },
1617
1631
  class: "label-selector"
1618
1632
  }, {
1619
- default: h(() => [
1620
- u(y, {
1633
+ default: g(() => [
1634
+ p(y, {
1621
1635
  ref: "nameInput",
1622
1636
  "model-value": i.article.name,
1623
1637
  autosize: !0,
@@ -1640,14 +1654,14 @@ function bi(e, t, n, o, s, i) {
1640
1654
  _: 1
1641
1655
  }, 8, ["validator", "messages", "label"]),
1642
1656
  l("div", ri, [
1643
- u(d, {
1657
+ p(d, {
1644
1658
  label: e.$t("quantity").capitalize(),
1645
1659
  "label-position": "inside",
1646
1660
  class: "label-selector form-control form-control-left flex-grow",
1647
1661
  style: { "margin-bottom": "0" }
1648
1662
  }, {
1649
- default: h(() => [
1650
- u(k, {
1663
+ default: g(() => [
1664
+ p(k, {
1651
1665
  "model-value": i.article.quantity,
1652
1666
  disabled: ["openAcc", "markup"].includes(i.article.priceType),
1653
1667
  placeholder: "",
@@ -1659,18 +1673,18 @@ function bi(e, t, n, o, s, i) {
1659
1673
  ]),
1660
1674
  _: 1
1661
1675
  }, 8, ["label"]),
1662
- u(_, {
1676
+ p($, {
1663
1677
  "model-value": i.article.unitType,
1664
1678
  "is-public-form": n.viewSettings.isPublicForm,
1665
1679
  "onUpdate:modelValue": t[5] || (t[5] = (r) => i.updateArticle(r, "unitType"))
1666
1680
  }, {
1667
- default: h(() => [
1668
- u(w, {
1681
+ default: g(() => [
1682
+ p(w, {
1669
1683
  class: "select-css form-control form-control-right",
1670
1684
  style: { width: "8em", "box-shadow": "none" }
1671
1685
  }, {
1672
- default: h(() => [
1673
- $(p(s.articleUnitLabel(i.article.unitType, {
1686
+ default: g(() => [
1687
+ I(u(s.articleUnitLabel(i.article.unitType, {
1674
1688
  count: i.article.quantity
1675
1689
  })), 1)
1676
1690
  ]),
@@ -1682,13 +1696,13 @@ function bi(e, t, n, o, s, i) {
1682
1696
  ]),
1683
1697
  n.hidePriceInput ? b("", !0) : (a(), c(C, { key: 0 }, [
1684
1698
  l("div", li, [
1685
- u(d, {
1699
+ p(d, {
1686
1700
  label: e.$t("price.price").capitalize(),
1687
1701
  "label-position": "inside",
1688
1702
  class: "label-selector form-control form-control-left flex-1",
1689
1703
  style: { "margin-bottom": "0" }
1690
1704
  }, {
1691
- default: h(() => [
1705
+ default: g(() => [
1692
1706
  (a(), A(m, {
1693
1707
  ref: "priceInput",
1694
1708
  key: s.priceSuffix(i.article),
@@ -1711,17 +1725,17 @@ function bi(e, t, n, o, s, i) {
1711
1725
  class: "select-css form-control form-control-right",
1712
1726
  style: { width: "8em" },
1713
1727
  onClick: t[9] || (t[9] = (r) => s.setPricesIncVat = !s.setPricesIncVat)
1714
- }, p(n._document.$t(`vat.${s.setPricesIncVat ? "incVat" : "exVat"}`)), 1)) : b("", !0)
1728
+ }, u(n._document.$t(`vat.${s.setPricesIncVat ? "incVat" : "exVat"}`)), 1)) : b("", !0)
1715
1729
  ]),
1716
1730
  s.showDiscountInput ? (a(), c("div", ci, [
1717
- u(d, {
1731
+ p(d, {
1718
1732
  label: e.$t("discount").capitalize(),
1719
1733
  "label-position": "inside",
1720
1734
  class: "label-selector form-control form-control-left flex-grow",
1721
1735
  style: { "margin-bottom": "0" }
1722
1736
  }, {
1723
- default: h(() => [
1724
- u(m, {
1737
+ default: g(() => [
1738
+ p(m, {
1725
1739
  ref: "discountInput",
1726
1740
  "model-value": i.article.discount,
1727
1741
  currency: i.article.currency,
@@ -1733,16 +1747,16 @@ function bi(e, t, n, o, s, i) {
1733
1747
  }, ge({ _: 2 }, [
1734
1748
  i.article.discountType === "fixed" ? {
1735
1749
  name: "suffix",
1736
- fn: h(() => [
1737
- $(p(n._document.$t(
1750
+ fn: g(() => [
1751
+ I(u(n._document.$t(
1738
1752
  `vat.${s.setPricesIncVat ? "incVat" : "exVat"}`
1739
1753
  )), 1)
1740
1754
  ]),
1741
1755
  key: "0"
1742
1756
  } : {
1743
1757
  name: "suffix",
1744
- fn: h(() => [
1745
- $(p(s.getCurrencySymbol(i.article.currency)), 1)
1758
+ fn: g(() => [
1759
+ I(u(s.getCurrencySymbol(i.article.currency)), 1)
1746
1760
  ]),
1747
1761
  key: "1"
1748
1762
  }
@@ -1757,7 +1771,7 @@ function bi(e, t, n, o, s, i) {
1757
1771
  i.article.discountType === "percentage" ? "fixed" : "percentage",
1758
1772
  "discountType"
1759
1773
  ))
1760
- }, p(i.article.discountType === "percentage" ? "%" : s.getCurrencySymbol(i.article.currency)), 1)
1774
+ }, u(i.article.discountType === "percentage" ? "%" : s.getCurrencySymbol(i.article.currency)), 1)
1761
1775
  ])) : b("", !0)
1762
1776
  ], 64)),
1763
1777
  l("div", di, [
@@ -1769,12 +1783,12 @@ function bi(e, t, n, o, s, i) {
1769
1783
  style: { display: "inline", "min-height": "initial", background: "hsl(0, 0%, 94%)", "border-color": "hsl(0, 0%, 94%)", color: "hsl(0, 0%, 30%)" },
1770
1784
  onInput: t[12] || (t[12] = (r) => i.updateArticle(Number.parseFloat(r.target.value), "vat"))
1771
1785
  }, [
1772
- (a(!0), c(C, null, S(s.vatOptions, ({ translation: r, value: P }, I) => (a(), c("option", {
1773
- key: I,
1786
+ (a(!0), c(C, null, S(s.vatOptions, ({ translation: r, value: P }, _) => (a(), c("option", {
1787
+ key: _,
1774
1788
  value: P
1775
- }, p(e.$t(`vat.${i.vatType}`)) + " " + p(r), 9, pi))), 128))
1789
+ }, u(e.$t(`vat.${i.vatType}`)) + " " + u(r), 9, pi))), 128))
1776
1790
  ], 40, ui)) : (a(), c("span", mi, [
1777
- $(p(n._document.$t("vat").capitalize()) + " ", 1),
1791
+ I(u(n._document.$t("vat").capitalize()) + " ", 1),
1778
1792
  l("input", {
1779
1793
  value: i.article.vat || 0,
1780
1794
  type: "number",
@@ -1782,29 +1796,36 @@ function bi(e, t, n, o, s, i) {
1782
1796
  onBlur: t[13] || (t[13] = (...r) => i.onCustomVatBlur && i.onCustomVatBlur(...r)),
1783
1797
  onInput: t[14] || (t[14] = (...r) => i.onCustomVatInput && i.onCustomVatInput(...r))
1784
1798
  }, null, 40, hi),
1785
- t[16] || (t[16] = $(" % "))
1799
+ t[16] || (t[16] = I(" % "))
1786
1800
  ]))
1787
1801
  ], 64)) : b("", !0),
1788
1802
  i.priceTypeOptions.length ? (a(), c("div", gi, [
1789
- (a(!0), c(C, null, S(i.priceTypeOptions, ({ label: r, value: P, onClick: I, tooltip: D }, O) => R((a(), c("div", {
1790
- key: r + O,
1803
+ (a(!0), c(C, null, S(i.priceTypeOptions, ({ label: r, value: P, onClick: _, tooltip: M }, L) => R((a(), c("div", {
1804
+ key: r + L,
1791
1805
  class: V([{ active: P }, "tag-item"]),
1792
- onClick: I
1806
+ onClick: _
1793
1807
  }, [
1794
- $(p(r), 1)
1808
+ I(u(r), 1)
1795
1809
  ], 10, vi)), [
1796
1810
  [T, {
1797
- content: D,
1811
+ content: M,
1798
1812
  delay: { show: 300, hide: 0 }
1799
1813
  }]
1800
1814
  ])), 128))
1801
1815
  ])) : b("", !0),
1802
1816
  l("div", fi, [
1803
- (a(!0), c(C, null, S(i.checkboxItems, ({ label: r, value: P, onClick: I }, D) => (a(), c("div", {
1804
- key: r + D,
1805
- class: V([{ active: P }, "tag-item"]),
1806
- onClick: I
1807
- }, p(r), 11, yi))), 128))
1817
+ (a(!0), c(C, null, S(i.checkboxItems, ({ label: r, value: P, onClick: _, tooltip: M, style: L }, N) => R((a(), c("div", {
1818
+ key: r + N,
1819
+ class: V([[{ active: P }, L], "tag-item"]),
1820
+ onClick: _
1821
+ }, [
1822
+ I(u(r), 1)
1823
+ ], 10, yi)), [
1824
+ [T, {
1825
+ content: M,
1826
+ delay: { show: 300, hide: 0 }
1827
+ }]
1828
+ ])), 128))
1808
1829
  ])
1809
1830
  ])
1810
1831
  ]))
@@ -1819,8 +1840,8 @@ function bi(e, t, n, o, s, i) {
1819
1840
  style: { padding: "1.75em", height: "4em", "font-size": "16px", "background-color": "hsl(231, 4%, 20%)", "border-color": "hsl(231, 4%, 20%)" },
1820
1841
  onClick: i.addNewArticle
1821
1842
  }, {
1822
- default: h(() => [
1823
- u(v, {
1843
+ default: g(() => [
1844
+ p(h, {
1824
1845
  type: "zap",
1825
1846
  size: "21",
1826
1847
  style: { margin: "-3px" }
@@ -1846,7 +1867,7 @@ function bi(e, t, n, o, s, i) {
1846
1867
  `
1847
1868
  }]
1848
1869
  ]),
1849
- u(w, {
1870
+ p(w, {
1850
1871
  size: "large",
1851
1872
  class: "flex-grow",
1852
1873
  type: "secondary",
@@ -1855,8 +1876,8 @@ function bi(e, t, n, o, s, i) {
1855
1876
  tabindex: "0",
1856
1877
  onClick: i.onSaveArticle
1857
1878
  }, {
1858
- default: h(() => [
1859
- $(p(e.$t("save")), 1)
1879
+ default: g(() => [
1880
+ I(u(e.$t("save")), 1)
1860
1881
  ]),
1861
1882
  _: 1
1862
1883
  }, 8, ["onClick"])
@@ -1864,7 +1885,7 @@ function bi(e, t, n, o, s, i) {
1864
1885
  ])
1865
1886
  ], 34);
1866
1887
  }
1867
- const wi = /* @__PURE__ */ M(ai, [["render", bi], ["__scopeId", "data-v-eacf482e"]]), Ii = {
1888
+ const wi = /* @__PURE__ */ D(ai, [["render", bi], ["__scopeId", "data-v-e5bbc8bd"]]), Ii = {
1868
1889
  i18nOptions: {
1869
1890
  name: "ArticleListEdit",
1870
1891
  namespaces: "ArticleListEdit",
@@ -1889,7 +1910,7 @@ const wi = /* @__PURE__ */ M(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
1889
1910
  Sortable: Xe
1890
1911
  },
1891
1912
  expose: ["focusLastArticle", "openLastArticle"],
1892
- mixins: [F([])],
1913
+ mixins: [q([])],
1893
1914
  props: {
1894
1915
  _document: {
1895
1916
  type: Object,
@@ -1913,7 +1934,7 @@ const wi = /* @__PURE__ */ M(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
1913
1934
  }
1914
1935
  },
1915
1936
  setup() {
1916
- const e = oe("articleItem"), t = oe("container"), { width: n } = Fe(t);
1937
+ const e = oe("articleItem"), t = oe("container"), { width: n } = qe(t);
1917
1938
  return { articleItem: e, articlesWidth: n };
1918
1939
  },
1919
1940
  emits: [
@@ -1938,7 +1959,7 @@ const wi = /* @__PURE__ */ M(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
1938
1959
  hidePriceOnNew: "settings/hidePriceOnNewlyAddedArticles"
1939
1960
  }),
1940
1961
  articlesWithTotal() {
1941
- return ne(this.articles);
1962
+ return se(this.articles);
1942
1963
  },
1943
1964
  isIndivid() {
1944
1965
  return x(this._document, "prices.helpers.isIndivid", !0);
@@ -1970,7 +1991,7 @@ const wi = /* @__PURE__ */ M(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
1970
1991
  e || this.toggleDeductions(!1);
1971
1992
  },
1972
1993
  setPricesIncVat(e) {
1973
- this.updateArticlesVatOption(), ["extension", "widget"].includes(qe.value) || this.showMessage({
1994
+ this.updateArticlesVatOption(), ["extension", "widget"].includes(Fe.value) || this.showMessage({
1974
1995
  type: "info",
1975
1996
  message: this.$t("vatOption.message", {
1976
1997
  vatOption: this.$t(`_common:vat.${e ? "incVat" : "exVat"}`, {
@@ -1982,7 +2003,7 @@ const wi = /* @__PURE__ */ M(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
1982
2003
  },
1983
2004
  methods: {
1984
2005
  ...z({
1985
- showMessage: L.SHOW_MESSAGE
2006
+ showMessage: O.SHOW_MESSAGE
1986
2007
  }),
1987
2008
  openModal(e, { focusEl: t = "" } = {}) {
1988
2009
  this.selectedIndex = e, this.showModal = !0, t && this.$nextTick(() => {
@@ -2007,14 +2028,14 @@ const wi = /* @__PURE__ */ M(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
2007
2028
  updateArticlesVatOption() {
2008
2029
  this.articles.forEach((e, t) => {
2009
2030
  if (e.priceType === "markup") return;
2010
- let n = q({ amount: e.price }).divide(
2031
+ let n = F({ amount: e.price }).divide(
2011
2032
  (100 + e.vat) * 0.01
2012
2033
  );
2013
- this.setPricesIncVat || (n = q({ amount: e.price }).multiply(
2034
+ this.setPricesIncVat || (n = F({ amount: e.price }).multiply(
2014
2035
  (100 + e.vat) * 0.01
2015
2036
  )), this.updateArticleObject(
2016
2037
  t,
2017
- ne({ ...e, price: n.getAmount() })
2038
+ se({ ...e, price: n.getAmount() })
2018
2039
  );
2019
2040
  });
2020
2041
  },
@@ -2066,20 +2087,20 @@ const wi = /* @__PURE__ */ M(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
2066
2087
  this.$emit("move", t);
2067
2088
  }
2068
2089
  }
2069
- }, $i = { ref: "container" }, _i = {
2090
+ }, _i = { ref: "container" }, $i = {
2070
2091
  key: 0,
2071
2092
  class: "label-text"
2072
2093
  };
2073
2094
  function Ti(e, t, n, o, s, i) {
2074
- const f = g("Article"), v = g("Sortable"), y = g("ArticleModal"), d = g("Portal");
2075
- return a(), c("div", $i, [
2076
- i.showVatToggle ? (a(), c("div", _i, [
2077
- $(p(e.$t("vatOption.label")) + " ", 1),
2095
+ const f = v("Article"), h = v("Sortable"), y = v("ArticleModal"), d = v("Portal");
2096
+ return a(), c("div", _i, [
2097
+ i.showVatToggle ? (a(), c("div", $i, [
2098
+ I(u(e.$t("vatOption.label")) + " ", 1),
2078
2099
  l("span", {
2079
2100
  onClick: t[0] || (t[0] = (k) => i.changeVat())
2080
- }, p(n._document.$t(`vat.${i.setPricesIncVat ? "incVat" : "exVat"}`)), 1)
2101
+ }, u(n._document.$t(`vat.${i.setPricesIncVat ? "incVat" : "exVat"}`)), 1)
2081
2102
  ])) : b("", !0),
2082
- u(v, {
2103
+ p(h, {
2083
2104
  "item-key": "_uniqueId",
2084
2105
  options: {
2085
2106
  group: "articles",
@@ -2094,8 +2115,8 @@ function Ti(e, t, n, o, s, i) {
2094
2115
  list: n.articles,
2095
2116
  style: { "min-height": "calc(3 * var(--rem))" }
2096
2117
  }, {
2097
- item: h(({ item: k, index: w }) => [
2098
- u(f, {
2118
+ item: g(({ item: k, index: w }) => [
2119
+ p(f, {
2099
2120
  ref: "articleItem",
2100
2121
  value: k,
2101
2122
  width: o.articlesWidth,
@@ -2106,20 +2127,20 @@ function Ti(e, t, n, o, s, i) {
2106
2127
  "root-price-type": n.rootPriceType,
2107
2128
  "active-house-work-type": n.activeHouseWorkType,
2108
2129
  class: "article-item",
2109
- "onUpdate:currency": t[1] || (t[1] = (_) => e.$emit("update:currency", _)),
2110
- onInput: (_) => i.updateArticleObject(w, _),
2111
- onFocus: t[2] || (t[2] = (_) => e.$emit("focus")),
2112
- onRemove: (_) => i.onRemoveArticle(w),
2113
- onOpenModal: (_) => i.openModal(w, _),
2114
- onAdd: (_) => w === i.articlesWithTotal.length - 1 ? e.$emit("add") : null,
2115
- onSelect: (_) => w === i.articlesWithTotal.length - 1 ? e.$emit("add") : null,
2116
- onEsc: (_) => i.onEsc(w, k)
2130
+ "onUpdate:currency": t[1] || (t[1] = ($) => e.$emit("update:currency", $)),
2131
+ onInput: ($) => i.updateArticleObject(w, $),
2132
+ onFocus: t[2] || (t[2] = ($) => e.$emit("focus")),
2133
+ onRemove: ($) => i.onRemoveArticle(w),
2134
+ onOpenModal: ($) => i.openModal(w, $),
2135
+ onAdd: ($) => w === i.articlesWithTotal.length - 1 ? e.$emit("add") : null,
2136
+ onSelect: ($) => w === i.articlesWithTotal.length - 1 ? e.$emit("add") : null,
2137
+ onEsc: ($) => i.onEsc(w, k)
2117
2138
  }, null, 8, ["value", "width", "hide-price-input", "hide-price-on-new", "is-inc-vat", "hide-controls", "root-price-type", "active-house-work-type", "onInput", "onRemove", "onOpenModal", "onAdd", "onSelect", "onEsc"])
2118
2139
  ]),
2119
2140
  _: 1
2120
2141
  }, 8, ["options", "list"]),
2121
- u(d, { to: "modal" }, {
2122
- default: h(() => [
2142
+ p(d, { to: "modal" }, {
2143
+ default: g(() => [
2123
2144
  s.showModal && i.articlesWithTotal[s.selectedIndex] ? (a(), A(y, {
2124
2145
  key: 0,
2125
2146
  ref: "articleModal",
@@ -2144,7 +2165,7 @@ function Ti(e, t, n, o, s, i) {
2144
2165
  })
2145
2166
  ], 512);
2146
2167
  }
2147
- const Ai = /* @__PURE__ */ M(Ii, [["render", Ti], ["__scopeId", "data-v-8ab60481"]]), Ci = {
2168
+ const Ai = /* @__PURE__ */ D(Ii, [["render", Ti], ["__scopeId", "data-v-8ab60481"]]), Ci = {
2148
2169
  name: "MaxTotalInput",
2149
2170
  i18nOptions: {
2150
2171
  namespaces: "MaxTotalInput",
@@ -2158,7 +2179,7 @@ const Ai = /* @__PURE__ */ M(Ii, [["render", Ti], ["__scopeId", "data-v-8ab60481
2158
2179
  }
2159
2180
  },
2160
2181
  components: {
2161
- CPriceInput: Z
2182
+ CPriceInput: J
2162
2183
  },
2163
2184
  props: {
2164
2185
  modelValue: {
@@ -2177,7 +2198,7 @@ const Ai = /* @__PURE__ */ M(Ii, [["render", Ti], ["__scopeId", "data-v-8ab60481
2177
2198
  emits: ["update:modelValue"],
2178
2199
  data() {
2179
2200
  return {
2180
- getCurrencySymbol: se
2201
+ getCurrencySymbol: ae
2181
2202
  };
2182
2203
  },
2183
2204
  computed: {
@@ -2187,19 +2208,19 @@ const Ai = /* @__PURE__ */ M(Ii, [["render", Ti], ["__scopeId", "data-v-8ab60481
2187
2208
  },
2188
2209
  watch: {
2189
2210
  isIncVat(e) {
2190
- let t = q({ amount: this.modelValue }).divide(
2211
+ let t = F({ amount: this.modelValue }).divide(
2191
2212
  1.25
2192
2213
  );
2193
- e || (t = q({ amount: this.modelValue }).multiply(
2214
+ e || (t = F({ amount: this.modelValue }).multiply(
2194
2215
  125 * 0.01
2195
2216
  )), this.$emit("update:modelValue", t.getAmount());
2196
2217
  }
2197
2218
  }
2198
2219
  }, Pi = { class: "flex w-full justify-end" };
2199
2220
  function xi(e, t, n, o, s, i) {
2200
- const f = g("CPriceInput");
2221
+ const f = v("CPriceInput");
2201
2222
  return a(), c("div", Pi, [
2202
- u(f, {
2223
+ p(f, {
2203
2224
  "model-value": n.modelValue,
2204
2225
  currency: n.currency,
2205
2226
  "is-inc-vat": e.isIncVat,
@@ -2209,13 +2230,13 @@ function xi(e, t, n, o, s, i) {
2209
2230
  class: "mt-4 max-w-[275px] text-sm",
2210
2231
  "prefix-class": "text-gray-400",
2211
2232
  "suffix-class": "text-gray-400",
2212
- "onUpdate:modelValue": t[0] || (t[0] = (v) => e.$emit("update:modelValue", v))
2233
+ "onUpdate:modelValue": t[0] || (t[0] = (h) => e.$emit("update:modelValue", h))
2213
2234
  }, {
2214
- prefix: h(() => [
2215
- $(p(e.$t("price.maxPrice").capitalize()), 1)
2235
+ prefix: g(() => [
2236
+ I(u(e.$t("price.maxPrice").capitalize()), 1)
2216
2237
  ]),
2217
- suffix: h(() => [
2218
- l("span", null, p(s.getCurrencySymbol(n.currency)) + " " + p(e.$t(`vat.${e.isIncVat ? "incVat" : "exVat"}`, {
2238
+ suffix: g(() => [
2239
+ l("span", null, u(s.getCurrencySymbol(n.currency)) + " " + u(e.$t(`vat.${e.isIncVat ? "incVat" : "exVat"}`, {
2219
2240
  thing: e.$t(`vat.${n.vatType}`)
2220
2241
  })), 1)
2221
2242
  ]),
@@ -2223,10 +2244,10 @@ function xi(e, t, n, o, s, i) {
2223
2244
  }, 8, ["model-value", "currency", "is-inc-vat", "placeholder"])
2224
2245
  ]);
2225
2246
  }
2226
- const Vi = /* @__PURE__ */ M(Ci, [["render", xi]]), Si = {
2247
+ const Vi = /* @__PURE__ */ D(Ci, [["render", xi]]), Si = {
2227
2248
  components: {
2228
- CDropdown: Y,
2229
- CDropdownItem: K
2249
+ CDropdown: Z,
2250
+ CDropdownItem: Y
2230
2251
  },
2231
2252
  props: {
2232
2253
  modelValue: {
@@ -2240,29 +2261,29 @@ const Vi = /* @__PURE__ */ M(Ci, [["render", xi]]), Si = {
2240
2261
  priceTypeOptions: ["fixed", "approx", "openAcc", "openAccMaxPrice"]
2241
2262
  };
2242
2263
  }
2243
- }, Mi = { class: "flex justify-end" };
2244
- function Di(e, t, n, o, s, i) {
2245
- const f = g("CButton"), v = g("CDropdownItem"), y = g("CDropdown");
2246
- return a(), c("div", Mi, [
2247
- u(y, { "model-value": n.modelValue }, {
2248
- trigger: h(() => [
2249
- u(f, { class: "price-type-button" }, {
2250
- default: h(() => [
2251
- $(p(e.$t("price.pricing").capitalize()) + ": ", 1),
2252
- l("span", null, p(e.$t(`price.${n.modelValue}`)), 1)
2264
+ }, Di = { class: "flex justify-end" };
2265
+ function Ri(e, t, n, o, s, i) {
2266
+ const f = v("CButton"), h = v("CDropdownItem"), y = v("CDropdown");
2267
+ return a(), c("div", Di, [
2268
+ p(y, { "model-value": n.modelValue }, {
2269
+ trigger: g(() => [
2270
+ p(f, { class: "price-type-button" }, {
2271
+ default: g(() => [
2272
+ I(u(e.$t("price.pricing").capitalize()) + ": ", 1),
2273
+ l("span", null, u(e.$t(`price.${n.modelValue}`)), 1)
2253
2274
  ]),
2254
2275
  _: 1
2255
2276
  })
2256
2277
  ]),
2257
- default: h(() => [
2258
- (a(!0), c(C, null, S(s.priceTypeOptions, (d) => (a(), A(v, {
2278
+ default: g(() => [
2279
+ (a(!0), c(C, null, S(s.priceTypeOptions, (d) => (a(), A(h, {
2259
2280
  key: d,
2260
2281
  value: d,
2261
2282
  class: "text-right",
2262
2283
  onClick: (k) => e.$emit("update:modelValue", d)
2263
2284
  }, {
2264
- default: h(() => [
2265
- $(p(e.$t(`price.${d}`)), 1)
2285
+ default: g(() => [
2286
+ I(u(e.$t(`price.${d}`)), 1)
2266
2287
  ]),
2267
2288
  _: 2
2268
2289
  }, 1032, ["value", "onClick"]))), 128))
@@ -2271,12 +2292,12 @@ function Di(e, t, n, o, s, i) {
2271
2292
  }, 8, ["model-value"])
2272
2293
  ]);
2273
2294
  }
2274
- const Ri = /* @__PURE__ */ M(Si, [["render", Di], ["__scopeId", "data-v-26c5da6c"]]), Li = {
2295
+ const Mi = /* @__PURE__ */ D(Si, [["render", Ri], ["__scopeId", "data-v-26c5da6c"]]), Li = {
2275
2296
  name: "EditDeduction",
2276
2297
  components: {
2277
- CPriceInput: Z
2298
+ CPriceInput: J
2278
2299
  },
2279
- mixins: [F(["houseWorkManualAmount"])],
2300
+ mixins: [q(["houseWorkManualAmount"])],
2280
2301
  props: {
2281
2302
  disabled: {
2282
2303
  type: Boolean,
@@ -2309,13 +2330,13 @@ const Ri = /* @__PURE__ */ M(Si, [["render", Di], ["__scopeId", "data-v-26c5da6c
2309
2330
  },
2310
2331
  methods: {
2311
2332
  setDeduction(e) {
2312
- this.internalValue = q({ amount: this.total }).multiply(e).getAmount();
2333
+ this.internalValue = F({ amount: this.total }).multiply(e).getAmount();
2313
2334
  },
2314
2335
  showModal() {
2315
2336
  this.internalValue = this.houseWorkAmount, this.$modal.show(this.modalName);
2316
2337
  }
2317
2338
  }
2318
- }, Oi = { class: "deduction-modal flex w-full flex-col items-center justify-between rounded-lg" }, Ei = { style: { "font-size": "calc(calc(1 * var(--rem)) + 2px)", "font-weight": "800", "text-align": "center", "margin-bottom": "calc(1.5 * var(--rem))" } }, Ui = { style: { "margin-bottom": "calc(1 * var(--rem))", width: "100%" } }, Bi = { class: "flex w-full flex-wrap justify-center gap-2" }, Wi = ["onClick"], zi = {
2339
+ }, Oi = { class: "deduction-modal flex w-full flex-col items-center justify-between rounded-lg" }, Ei = { class: "mb-5 text-center text-base font-extrabold" }, Ui = { class: "mb-5 w-full" }, Bi = { class: "my-5 text-center text-base font-extrabold" }, Wi = { class: "mb-5 w-full rounded-md bg-gray-100 p-2 text-center text-sm font-medium italic text-gray-500" }, zi = { class: "flex w-full flex-wrap justify-center gap-2" }, ji = ["onClick"], Fi = {
2319
2340
  style: { "margin-right": "0.5em" },
2320
2341
  viewBox: "0 0 24 24",
2321
2342
  width: "12",
@@ -2327,23 +2348,21 @@ const Ri = /* @__PURE__ */ M(Si, [["render", Di], ["__scopeId", "data-v-26c5da6c
2327
2348
  "stroke-linejoin": "round",
2328
2349
  class: "css-i6dzq1"
2329
2350
  };
2330
- function ji(e, t, n, o, s, i) {
2331
- const f = g("CPriceInput"), v = g("CButton"), y = g("modal"), d = g("portal");
2351
+ function qi(e, t, n, o, s, i) {
2352
+ const f = v("CPriceInput"), h = v("CButton"), y = v("modal"), d = v("portal");
2332
2353
  return a(), c("div", null, [
2333
- u(y, B({
2354
+ p(y, B({
2334
2355
  adaptive: !0,
2335
2356
  height: "auto",
2336
2357
  width: "90%",
2337
2358
  maxWidth: 420,
2338
2359
  classes: "primary"
2339
2360
  }, { name: s.modalName }), {
2340
- default: h(() => [
2361
+ default: g(() => [
2341
2362
  l("div", Oi, [
2342
- l("div", Ei, p(e.$t("deduction.manualType", {
2343
- type: e.$t(`deduction.${n.houseWorkType}`)
2344
- })), 1),
2363
+ l("div", Ei, u(e.$t("manualDeduction")), 1),
2345
2364
  l("div", Ui, [
2346
- u(f, {
2365
+ p(f, {
2347
2366
  modelValue: s.internalValue,
2348
2367
  "onUpdate:modelValue": t[0] || (t[0] = (k) => s.internalValue = k),
2349
2368
  modelModifiers: { number: !0 },
@@ -2353,17 +2372,19 @@ function ji(e, t, n, o, s, i) {
2353
2372
  size: "medium",
2354
2373
  "suffix-class": "text-gray-400"
2355
2374
  }, {
2356
- suffix: h(() => [
2357
- $(p(e.$t("currency.SEK")), 1)
2375
+ suffix: g(() => [
2376
+ I(u(e.$t("currency.SEK")), 1)
2358
2377
  ]),
2359
2378
  _: 1
2360
2379
  }, 8, ["modelValue", "placeholder"])
2361
2380
  ]),
2362
- l("div", Bi, [
2381
+ l("div", Bi, u(e.$t("standardDeduction")), 1),
2382
+ l("div", Wi, u(e.$t("standardDeductionMessage")), 1),
2383
+ l("div", zi, [
2363
2384
  (a(), c(C, null, S([
2364
- { v: 0.09, l: "9%" },
2365
- { v: 0.105, l: "10.5%" },
2366
2385
  { v: 0.1455, l: "14.55%" },
2386
+ { v: 0.15, l: "15%" },
2387
+ { v: 0.175, l: "17.5%" },
2367
2388
  { v: 0.194, l: "19.4%" },
2368
2389
  { v: 0.21, l: "21%" },
2369
2390
  { v: 0.485, l: "48.5%" },
@@ -2374,9 +2395,9 @@ function ji(e, t, n, o, s, i) {
2374
2395
  active: Math.round(n.total * k.v * 0.01) * 100 === s.internalValue
2375
2396
  }, "deduction-button"]),
2376
2397
  onClick: (w) => i.setDeduction(k.v)
2377
- }, p(k.l), 11, Wi)), 64))
2398
+ }, u(k.l), 11, ji)), 64))
2378
2399
  ]),
2379
- u(v, {
2400
+ p(h, {
2380
2401
  type: "secondary",
2381
2402
  wide: "",
2382
2403
  class: "mt-8",
@@ -2384,12 +2405,12 @@ function ji(e, t, n, o, s, i) {
2384
2405
  e.houseWorkManualAmount = s.internalValue, e.$modal.hide(s.modalName);
2385
2406
  })
2386
2407
  }, {
2387
- default: h(() => [
2388
- $(p(e.$t("save")), 1)
2408
+ default: g(() => [
2409
+ I(u(e.$t("save")), 1)
2389
2410
  ]),
2390
2411
  _: 1
2391
2412
  }),
2392
- u(v, {
2413
+ p(h, {
2393
2414
  type: "secondary",
2394
2415
  pattern: "tertiary",
2395
2416
  wide: "",
@@ -2398,8 +2419,8 @@ function ji(e, t, n, o, s, i) {
2398
2419
  e.houseWorkManualAmount = null, e.$modal.hide(s.modalName);
2399
2420
  })
2400
2421
  }, {
2401
- default: h(() => [
2402
- $(p(e.$t("reset")), 1)
2422
+ default: g(() => [
2423
+ I(u(e.$t("reset")), 1)
2403
2424
  ]),
2404
2425
  _: 1
2405
2426
  })
@@ -2412,12 +2433,12 @@ function ji(e, t, n, o, s, i) {
2412
2433
  order: 2,
2413
2434
  to: "document-nav-bottom"
2414
2435
  }, {
2415
- default: h(() => [
2436
+ default: g(() => [
2416
2437
  l("div", {
2417
2438
  class: "housework-manual-nav",
2418
2439
  onClick: t[3] || (t[3] = (k) => e.$modal.show(s.modalName))
2419
2440
  }, [
2420
- (a(), c("svg", zi, t[4] || (t[4] = [
2441
+ (a(), c("svg", Fi, t[4] || (t[4] = [
2421
2442
  l("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }, null, -1),
2422
2443
  l("line", {
2423
2444
  x1: "12",
@@ -2432,17 +2453,17 @@ function ji(e, t, n, o, s, i) {
2432
2453
  y2: "17"
2433
2454
  }, null, -1)
2434
2455
  ]))),
2435
- $(" " + p(e.$t("deduction.manualType", { type: e.$t(`deduction.${n.houseWorkType}`) })) + " " + p(e.$t("using")), 1)
2456
+ I(" " + u(e.$t("deduction.manualType", { type: e.$t(`deduction.${n.houseWorkType}`) })) + " " + u(e.$t("using")), 1)
2436
2457
  ])
2437
2458
  ]),
2438
2459
  _: 1
2439
2460
  })) : b("", !0)
2440
2461
  ]);
2441
2462
  }
2442
- const qi = /* @__PURE__ */ M(Li, [["render", ji], ["__scopeId", "data-v-5de18d7b"]]), Fi = {
2463
+ const Ni = /* @__PURE__ */ D(Li, [["render", qi], ["__scopeId", "data-v-b12680ea"]]), Hi = {
2443
2464
  name: "Pricing",
2444
2465
  components: {
2445
- EditDeduction: qi
2466
+ EditDeduction: Ni
2446
2467
  },
2447
2468
  props: {
2448
2469
  _document: {
@@ -2523,7 +2544,7 @@ const qi = /* @__PURE__ */ M(Li, [["render", ji], ["__scopeId", "data-v-5de18d7b
2523
2544
  ] : []
2524
2545
  ].map((t) => ({
2525
2546
  ...t,
2526
- value: N(t.value, {
2547
+ value: H(t.value, {
2527
2548
  showZero: !0,
2528
2549
  decimals: 2,
2529
2550
  currency: this.prices.currency
@@ -2540,14 +2561,14 @@ const qi = /* @__PURE__ */ M(Li, [["render", ji], ["__scopeId", "data-v-5de18d7b
2540
2561
  return !!x(this.prices, "region.houseWorkType", !1) || !!x(this.prices, "region.houseWorkManualAmount", !1);
2541
2562
  }
2542
2563
  }
2543
- }, Ni = { class: "price-bubble" }, Hi = { class: "flex w-full items-center justify-between" }, Gi = { class: "price-label" }, Ki = {
2564
+ }, Gi = { class: "price-bubble" }, Ki = { class: "flex w-full items-center justify-between" }, Yi = { class: "price-label" }, Zi = {
2544
2565
  key: 0,
2545
2566
  class: "pricing-sub-label"
2546
- }, Yi = ["onClick"], Zi = { class: "price-value" };
2547
- function Ji(e, t, n, o, s, i) {
2548
- const f = g("EditDeduction"), v = U("tooltip");
2549
- return a(), c("div", Ni, [
2550
- l("div", Hi, [
2567
+ }, Ji = ["onClick"], Qi = { class: "price-value" };
2568
+ function Xi(e, t, n, o, s, i) {
2569
+ const f = v("EditDeduction"), h = U("tooltip");
2570
+ return a(), c("div", Gi, [
2571
+ l("div", Ki, [
2551
2572
  i.showHouseWork ? (a(), A(f, {
2552
2573
  key: 0,
2553
2574
  ref: "deduction",
@@ -2567,9 +2588,9 @@ function Ji(e, t, n, o, s, i) {
2567
2588
  key: d,
2568
2589
  class: V([[y.classList || ""], "price-row flex w-full justify-between"])
2569
2590
  }, [
2570
- l("div", Gi, [
2571
- $(p(y.label.capitalize()) + " ", 1),
2572
- y.subLabel ? (a(), c("span", Ki, p(y.subLabel), 1)) : b("", !0),
2591
+ l("div", Yi, [
2592
+ I(u(y.label.capitalize()) + " ", 1),
2593
+ y.subLabel ? (a(), c("span", Zi, u(y.subLabel), 1)) : b("", !0),
2573
2594
  y.action ? R((a(), c("span", {
2574
2595
  key: 1,
2575
2596
  class: "pricing-action",
@@ -2588,16 +2609,16 @@ function Ji(e, t, n, o, s, i) {
2588
2609
  l("path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
2589
2610
  l("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })
2590
2611
  ], -1)
2591
- ]), 8, Yi)), [
2592
- [v, e.$t("edit", { thing: e.$t("deduction.deduction") })]
2612
+ ]), 8, Ji)), [
2613
+ [h, e.$t("edit", { thing: e.$t("deduction.deduction") })]
2593
2614
  ]) : b("", !0)
2594
2615
  ]),
2595
- l("div", Zi, p(y.prefix) + " " + p(y.value), 1)
2616
+ l("div", Qi, u(y.prefix) + " " + u(y.value), 1)
2596
2617
  ], 2))), 128))
2597
2618
  ])
2598
2619
  ]);
2599
2620
  }
2600
- const Qi = /* @__PURE__ */ M(Fi, [["render", Ji], ["__scopeId", "data-v-90384cd6"]]), Xi = {
2621
+ const en = /* @__PURE__ */ D(Hi, [["render", Xi], ["__scopeId", "data-v-90384cd6"]]), tn = {
2601
2622
  name: "PackageItemEdit",
2602
2623
  i18nOptions: {
2603
2624
  namespaces: "PackageItemEdit",
@@ -2626,12 +2647,12 @@ const Qi = /* @__PURE__ */ M(Fi, [["render", Ji], ["__scopeId", "data-v-90384cd6
2626
2647
  },
2627
2648
  components: {
2628
2649
  ArticleList: Ai,
2629
- PriceFormAlternatives: Ri,
2650
+ PriceFormAlternatives: Mi,
2630
2651
  MaxTotalInput: Vi,
2631
- Pricing: Qi,
2652
+ Pricing: en,
2632
2653
  TextEditor: Qe,
2633
- CDropdown: Y,
2634
- CDropdownItem: K
2654
+ CDropdown: Z,
2655
+ CDropdownItem: Y
2635
2656
  },
2636
2657
  emits: [
2637
2658
  "move",
@@ -2644,7 +2665,7 @@ const Qi = /* @__PURE__ */ M(Fi, [["render", Ji], ["__scopeId", "data-v-90384cd6
2644
2665
  "remove-package"
2645
2666
  ],
2646
2667
  mixins: [
2647
- F([
2668
+ q([
2648
2669
  "isSelectedDefault",
2649
2670
  "isSelected",
2650
2671
  "name",
@@ -2786,73 +2807,73 @@ const Qi = /* @__PURE__ */ M(Fi, [["render", Ji], ["__scopeId", "data-v-90384cd6
2786
2807
  });
2787
2808
  }
2788
2809
  }
2789
- }, en = { class: "min-h-0 rounded-md border border-gray-200 bg-white text-black" }, tn = { class: "flex w-full items-center justify-between bg-gray-100 py-1 pl-4 pr-1 text-sm font-medium text-gray-600" }, nn = { class: "p-4" }, sn = { class: "mb-0.5 flex items-center" }, an = ["id", "placeholder"], on = { class: "mt-2 flex gap-2" };
2790
- function rn(e, t, n, o, s, i) {
2791
- const f = g("CButton"), v = g("CDropdownItem"), y = g("CDropdown"), d = g("TextEditor"), k = g("MaxTotalInput"), w = g("PriceFormAlternatives"), _ = g("ArticleList"), m = g("CIcon"), T = g("Pricing"), r = U("tooltip"), P = U("click-outside");
2792
- return a(), c("div", en, [
2793
- l("div", tn, [
2794
- l("div", null, p(n.type === "single" ? e.$t("single") : n.type === "radio" || n.toggable ? e.$t("option") : e.$t("base")), 1),
2810
+ }, nn = { class: "min-h-0 rounded-md border border-gray-200 bg-white text-black" }, sn = { class: "flex w-full items-center justify-between bg-gray-100 py-1 pl-4 pr-1 text-sm font-medium text-gray-600" }, an = { class: "p-4" }, on = { class: "mb-0.5 flex items-center" }, rn = ["id", "placeholder"], ln = { class: "mt-2 flex gap-2" };
2811
+ function cn(e, t, n, o, s, i) {
2812
+ const f = v("CButton"), h = v("CDropdownItem"), y = v("CDropdown"), d = v("TextEditor"), k = v("MaxTotalInput"), w = v("PriceFormAlternatives"), $ = v("ArticleList"), m = v("CIcon"), T = v("Pricing"), r = U("tooltip"), P = U("click-outside");
2813
+ return a(), c("div", nn, [
2814
+ l("div", sn, [
2815
+ l("div", null, u(n.type === "single" ? e.$t("single") : n.type === "radio" || n.toggable ? e.$t("option") : e.$t("base")), 1),
2795
2816
  n.type !== "single" ? (a(), A(y, {
2796
2817
  key: 0,
2797
2818
  class: "ml-4"
2798
2819
  }, {
2799
- trigger: h(() => [
2800
- u(f, {
2820
+ trigger: g(() => [
2821
+ p(f, {
2801
2822
  size: "small",
2802
2823
  type: "text",
2803
2824
  pattern: "secondary",
2804
2825
  class: "is-thinner opacity-70"
2805
2826
  }, {
2806
- default: h(() => [
2807
- $(p(e.$t("_common:change")), 1)
2827
+ default: g(() => [
2828
+ I(u(e.$t("_common:change")), 1)
2808
2829
  ]),
2809
2830
  _: 1
2810
2831
  })
2811
2832
  ]),
2812
- default: h(() => [
2833
+ default: g(() => [
2813
2834
  n.toggable ? (a(), c(C, { key: 0 }, [
2814
- u(v, {
2835
+ p(h, {
2815
2836
  value: e.isSelectedDefault,
2816
2837
  toggle: !0,
2817
2838
  "close-on-click": !1,
2818
- onClick: t[0] || (t[0] = (I) => e.$emit("update:isSelectedDefault", !e.isSelectedDefault))
2839
+ onClick: t[0] || (t[0] = (_) => e.$emit("update:isSelectedDefault", !e.isSelectedDefault))
2819
2840
  }, {
2820
- default: h(() => [
2821
- $(p(e.$t("selected")), 1)
2841
+ default: g(() => [
2842
+ I(u(e.$t("selected")), 1)
2822
2843
  ]),
2823
2844
  _: 1
2824
2845
  }, 8, ["value"]),
2825
- u(v, { separator: "" })
2846
+ p(h, { separator: "" })
2826
2847
  ], 64)) : b("", !0),
2827
- u(v, {
2848
+ p(h, {
2828
2849
  "icon-left": "arrow-up",
2829
2850
  disabled: !n.moveOptions.up,
2830
- onClick: t[1] || (t[1] = (I) => e.$emit("move", -1))
2851
+ onClick: t[1] || (t[1] = (_) => e.$emit("move", -1))
2831
2852
  }, {
2832
- default: h(() => [
2833
- $(p(e.$t("_common:move", { thing: e.$t("_common:up") })), 1)
2853
+ default: g(() => [
2854
+ I(u(e.$t("_common:move", { thing: e.$t("_common:up") })), 1)
2834
2855
  ]),
2835
2856
  _: 1
2836
2857
  }, 8, ["disabled"]),
2837
- u(v, {
2858
+ p(h, {
2838
2859
  "icon-left": "arrow-down",
2839
2860
  disabled: !n.moveOptions.down,
2840
- onClick: t[2] || (t[2] = (I) => e.$emit("move", 1))
2861
+ onClick: t[2] || (t[2] = (_) => e.$emit("move", 1))
2841
2862
  }, {
2842
- default: h(() => [
2843
- $(p(e.$t("_common:move", { thing: e.$t("_common:down") })), 1)
2863
+ default: g(() => [
2864
+ I(u(e.$t("_common:move", { thing: e.$t("_common:down") })), 1)
2844
2865
  ]),
2845
2866
  _: 1
2846
2867
  }, 8, ["disabled"]),
2847
- u(v, {
2868
+ p(h, {
2848
2869
  "icon-props": {
2849
2870
  stroke: "red"
2850
2871
  },
2851
2872
  "icon-left": "trash",
2852
2873
  onClick: i.onRemove
2853
2874
  }, {
2854
- default: h(() => [
2855
- $(p(e.$t("_common:remove")), 1)
2875
+ default: g(() => [
2876
+ I(u(e.$t("_common:remove")), 1)
2856
2877
  ]),
2857
2878
  _: 1
2858
2879
  }, 8, ["onClick"])
@@ -2860,46 +2881,46 @@ function rn(e, t, n, o, s, i) {
2860
2881
  _: 1
2861
2882
  })) : b("", !0)
2862
2883
  ]),
2863
- l("div", nn, [
2864
- l("div", sn, [
2884
+ l("div", an, [
2885
+ l("div", on, [
2865
2886
  R(l("input", {
2866
2887
  id: `package-name-${n.packageId}`,
2867
- "onUpdate:modelValue": t[3] || (t[3] = (I) => e.name = I),
2888
+ "onUpdate:modelValue": t[3] || (t[3] = (_) => e.name = _),
2868
2889
  placeholder: e.$t("namePlaceholder"),
2869
2890
  class: "block w-full rounded-lg p-0 text-xl font-bold leading-loose placeholder:text-gray-400",
2870
- onKeyup: t[4] || (t[4] = j((I) => e.$refs.editor.focus(), ["enter"]))
2871
- }, null, 40, an), [
2891
+ onKeyup: t[4] || (t[4] = j((_) => e.$refs.editor.focus(), ["enter"]))
2892
+ }, null, 40, rn), [
2872
2893
  [Ye, e.name]
2873
2894
  ])
2874
2895
  ]),
2875
- u(d, {
2896
+ p(d, {
2876
2897
  ref: "editor",
2877
2898
  modelValue: i.internalDescription,
2878
- "onUpdate:modelValue": t[5] || (t[5] = (I) => i.internalDescription = I),
2899
+ "onUpdate:modelValue": t[5] || (t[5] = (_) => i.internalDescription = _),
2879
2900
  placeholder: e.$t("textPlaceholder"),
2880
2901
  mentions: () => e._document.textTemplateItems,
2881
2902
  class: "text-editor mb-4"
2882
2903
  }, null, 8, ["modelValue", "placeholder", "mentions"]),
2883
2904
  R((a(), c("div", {
2884
- onMouseoverPassive: t[15] || (t[15] = (I) => s.isHover = !0),
2885
- onMouseleavePassive: t[16] || (t[16] = (I) => s.isHover = !1)
2905
+ onMouseoverPassive: t[15] || (t[15] = (_) => s.isHover = !0),
2906
+ onMouseleavePassive: t[16] || (t[16] = (_) => s.isHover = !1)
2886
2907
  }, [
2887
2908
  e.priceType === "openAccMaxPrice" ? (a(), A(k, {
2888
2909
  key: 0,
2889
2910
  modelValue: e.maxTotal,
2890
- "onUpdate:modelValue": t[6] || (t[6] = (I) => e.maxTotal = I),
2911
+ "onUpdate:modelValue": t[6] || (t[6] = (_) => e.maxTotal = _),
2891
2912
  currency: e.currency,
2892
2913
  "vat-type": e._document.vatType,
2893
2914
  class: "mb-4"
2894
2915
  }, null, 8, ["modelValue", "currency", "vat-type"])) : b("", !0),
2895
- u(w, {
2916
+ p(w, {
2896
2917
  modelValue: e.priceType,
2897
2918
  "onUpdate:modelValue": [
2898
- t[7] || (t[7] = (I) => e.priceType = I),
2899
- t[8] || (t[8] = (I) => e.$emit("update:priceType", I))
2919
+ t[7] || (t[7] = (_) => e.priceType = _),
2920
+ t[8] || (t[8] = (_) => e.$emit("update:priceType", _))
2900
2921
  ]
2901
2922
  }, null, 8, ["modelValue"]),
2902
- u(_, {
2923
+ p($, {
2903
2924
  ref: "articleList",
2904
2925
  _document: e._document,
2905
2926
  articles: i.mappedPackageArticles,
@@ -2907,32 +2928,32 @@ function rn(e, t, n, o, s, i) {
2907
2928
  "active-house-work-type": n.activeHouseWorkType,
2908
2929
  "hide-controls": !s.isFocus && !s.isHover,
2909
2930
  onInput: i.onArticleInput,
2910
- "onUpdate:setPricesIncVat": t[9] || (t[9] = (I) => e.$emit("update:setPricesIncVat", I)),
2911
- "onUpdate:currency": t[10] || (t[10] = (I) => e.$emit("update:currency", I)),
2931
+ "onUpdate:setPricesIncVat": t[9] || (t[9] = (_) => e.$emit("update:setPricesIncVat", _)),
2932
+ "onUpdate:currency": t[10] || (t[10] = (_) => e.$emit("update:currency", _)),
2912
2933
  onMove: i.onArticleMove,
2913
2934
  onRemove: i.onArticleRemove,
2914
2935
  onAdd: i.onArticleAdd,
2915
- onFocus: t[11] || (t[11] = (I) => s.isFocus = !0),
2936
+ onFocus: t[11] || (t[11] = (_) => s.isFocus = !0),
2916
2937
  onInsert: i.onInsert
2917
2938
  }, null, 8, ["_document", "articles", "root-price-type", "active-house-work-type", "hide-controls", "onInput", "onMove", "onRemove", "onAdd", "onInsert"]),
2918
- l("div", on, [
2939
+ l("div", ln, [
2919
2940
  l("div", {
2920
2941
  class: "cursor-pointer rounded-md border border-gray-200 bg-gray-100 p-2.5 text-center text-sm font-medium leading-none text-gray-500 transition-colors hover:border-gray-400 hover:bg-gray-500 hover:text-white",
2921
- onClick: t[12] || (t[12] = (I) => i.onArticleAdd())
2942
+ onClick: t[12] || (t[12] = (_) => i.onArticleAdd())
2922
2943
  }, [
2923
- u(m, {
2944
+ p(m, {
2924
2945
  type: "plus",
2925
2946
  size: "16",
2926
2947
  "stroke-width": "3",
2927
2948
  class: "mr-1"
2928
2949
  }),
2929
- $(" " + p(e.$t("addButton")), 1)
2950
+ I(" " + u(e.$t("addButton")), 1)
2930
2951
  ]),
2931
2952
  R((a(), c("div", {
2932
2953
  class: "cursor-pointer rounded-md border border-gray-200 bg-gray-100 p-2.5 text-center text-sm font-medium leading-none text-gray-500 transition-colors hover:border-gray-400 hover:bg-gray-500 hover:text-white",
2933
- onClick: t[13] || (t[13] = (I) => i.onArticleAdd({ openModal: !0 }))
2954
+ onClick: t[13] || (t[13] = (_) => i.onArticleAdd({ openModal: !0 }))
2934
2955
  }, [
2935
- u(m, {
2956
+ p(m, {
2936
2957
  type: "zap",
2937
2958
  size: "16",
2938
2959
  "stroke-width": "2.5"
@@ -2944,11 +2965,11 @@ function rn(e, t, n, o, s, i) {
2944
2965
  }]
2945
2966
  ])
2946
2967
  ]),
2947
- u(T, {
2968
+ p(T, {
2948
2969
  _document: e._document,
2949
2970
  "base-path": `${e._value.basePath}`,
2950
2971
  "package-id": n.packageId,
2951
- onInput: t[14] || (t[14] = (I) => e.$emit("input", I))
2972
+ onInput: t[14] || (t[14] = (_) => e.$emit("input", _))
2952
2973
  }, null, 8, ["_document", "base-path", "package-id"])
2953
2974
  ], 32)), [
2954
2975
  [
@@ -2961,12 +2982,12 @@ function rn(e, t, n, o, s, i) {
2961
2982
  ])
2962
2983
  ]);
2963
2984
  }
2964
- const ln = /* @__PURE__ */ M(Xi, [["render", rn], ["__scopeId", "data-v-64642fe7"]]), cn = (e) => (e || []).slice(0, 1).map((t) => ({
2985
+ const dn = /* @__PURE__ */ D(tn, [["render", cn], ["__scopeId", "data-v-64642fe7"]]), un = (e) => (e || []).slice(0, 1).map((t) => ({
2965
2986
  ...t,
2966
2987
  isSelected: !0,
2967
2988
  isSelectedDefault: !0,
2968
2989
  toggable: !1
2969
- })), dn = (e) => {
2990
+ })), pn = (e) => {
2970
2991
  const t = x(e, "0.data.prices.type") || "fixed";
2971
2992
  return (e || []).map((n, o) => ({
2972
2993
  ...n,
@@ -2984,7 +3005,7 @@ const ln = /* @__PURE__ */ M(Xi, [["render", rn], ["__scopeId", "data-v-64642fe7
2984
3005
  }
2985
3006
  }
2986
3007
  }));
2987
- }, un = (e = []) => {
3008
+ }, mn = (e = []) => {
2988
3009
  let t = !1;
2989
3010
  return e.map((n) => {
2990
3011
  const o = {
@@ -2999,13 +3020,13 @@ const ln = /* @__PURE__ */ M(Xi, [["render", rn], ["__scopeId", "data-v-64642fe7
2999
3020
  return (o.isSelected || o.isSelectedDefault) && (t = !0), o;
3000
3021
  }, []);
3001
3022
  };
3002
- function pn(e, ...t) {
3003
- if (e === "single") return cn(...t);
3004
- if (e === "checkbox") return dn(...t);
3005
- if (e === "radio") return un(...t);
3023
+ function hn(e, ...t) {
3024
+ if (e === "single") return un(...t);
3025
+ if (e === "checkbox") return pn(...t);
3026
+ if (e === "radio") return mn(...t);
3006
3027
  throw new Error(`Package filter type '${e}' is not implemented`);
3007
3028
  }
3008
- const mn = {
3029
+ const gn = {
3009
3030
  name: "PackageGroupEdit",
3010
3031
  i18nOptions: {
3011
3032
  namespaces: "PackageGroupEdit",
@@ -3044,14 +3065,14 @@ const mn = {
3044
3065
  },
3045
3066
  components: {
3046
3067
  ErrorCallout: me,
3047
- PackageItem: ln,
3068
+ PackageItem: dn,
3048
3069
  PackageGroupSelect: kt,
3049
- CCallout: _e,
3050
- CDropdown: Y,
3051
- CDropdownItem: K
3070
+ CCallout: $e,
3071
+ CDropdown: Z,
3072
+ CDropdownItem: Y
3052
3073
  },
3053
3074
  mixins: [
3054
- F([
3075
+ q([
3055
3076
  "type",
3056
3077
  // 'title',
3057
3078
  "packages",
@@ -3121,7 +3142,7 @@ const mn = {
3121
3142
  },
3122
3143
  methods: {
3123
3144
  ...z({
3124
- showMessage: L.SHOW_MESSAGE
3145
+ showMessage: O.SHOW_MESSAGE
3125
3146
  }),
3126
3147
  setPricesIncVatAsDefault(e = {}) {
3127
3148
  this.$emit("input", {
@@ -3155,7 +3176,7 @@ const mn = {
3155
3176
  if (!this.persistedGroup || !this.persistedGroup.type) return;
3156
3177
  let { packages: t, articles: n } = this.persistedGroup;
3157
3178
  if (!t.length) return;
3158
- if (e !== this.persistedGroup.type && (t = pn(e, t)), e === "single" && n.length) {
3179
+ if (e !== this.persistedGroup.type && (t = hn(e, t)), e === "single" && n.length) {
3159
3180
  const [{ packageId: s }] = t;
3160
3181
  n = n.filter((i) => i.packageId === s);
3161
3182
  }
@@ -3244,31 +3265,31 @@ const mn = {
3244
3265
  this.$emit("input", { key: this._value.packages, value: n });
3245
3266
  }
3246
3267
  }
3247
- }, hn = { class: "package-group-root font-inter" }, gn = { key: 0 }, vn = { style: { position: "absolute", right: "0", top: "-10px", transform: "translateY(-100%)", "z-index": "2" } }, fn = { class: "pb-4" }, yn = {
3268
+ }, vn = { class: "package-group-root font-inter" }, fn = { key: 0 }, yn = { style: { position: "absolute", right: "0", top: "-10px", transform: "translateY(-100%)", "z-index": "2" } }, kn = { class: "pb-4" }, bn = {
3248
3269
  key: 2,
3249
3270
  style: { width: "calc(5 * var(--rem))", height: "1px", "margin-left": "calc(50% - calc(2.5 * var(--rem)))", "border-top": "2px dashed hsl(0, 0%, 85%)" }
3250
- }, kn = {
3271
+ }, wn = {
3251
3272
  key: 4,
3252
3273
  class: "flex w-full flex-col items-center justify-center"
3253
- }, bn = { style: { width: "100%" } }, wn = {
3274
+ }, In = { style: { width: "100%" } }, _n = {
3254
3275
  key: 0,
3255
3276
  class: "package-placeholder bg-gray-100",
3256
3277
  style: { color: "hsl(0, 0%, 24%)", "font-weight": "500" }
3257
- }, In = {
3278
+ }, $n = {
3258
3279
  style: { "vertical-align": "text-bottom", "margin-right": "3px" },
3259
3280
  width: "16",
3260
3281
  height: "16",
3261
3282
  viewBox: "0 0 18 14",
3262
3283
  xmlns: "http://www.w3.org/2000/svg"
3263
- }, $n = { class: "flex w-full" };
3264
- function _n(e, t, n, o, s, i) {
3265
- const f = g("PackageGroupSelect"), v = g("ErrorCallout"), y = g("CButton"), d = g("CDropdownItem"), k = g("CDropdown"), w = g("CCallout"), _ = g("PackageItem");
3266
- return a(), c("div", hn, [
3284
+ }, Tn = { class: "flex w-full" };
3285
+ function An(e, t, n, o, s, i) {
3286
+ const f = v("PackageGroupSelect"), h = v("ErrorCallout"), y = v("CButton"), d = v("CDropdownItem"), k = v("CDropdown"), w = v("CCallout"), $ = v("PackageItem");
3287
+ return a(), c("div", vn, [
3267
3288
  e.type ? (a(), c(C, { key: 1 }, [
3268
- l("div", vn, [
3269
- u(k, null, {
3270
- trigger: h(() => [
3271
- u(y, {
3289
+ l("div", yn, [
3290
+ p(k, null, {
3291
+ trigger: g(() => [
3292
+ p(y, {
3272
3293
  type: "none",
3273
3294
  size: "normal",
3274
3295
  pattern: "secondary",
@@ -3276,23 +3297,23 @@ function _n(e, t, n, o, s, i) {
3276
3297
  circle: ""
3277
3298
  })
3278
3299
  ]),
3279
- default: h(() => [
3280
- u(d, { onClick: i.onResetType }, {
3281
- default: h(() => [
3282
- $(p(e.$t("_common:change", {
3300
+ default: g(() => [
3301
+ p(d, { onClick: i.onResetType }, {
3302
+ default: g(() => [
3303
+ I(u(e.$t("_common:change", {
3283
3304
  thing: e.$t("_common:price.proposal").toLowerCase()
3284
3305
  })), 1)
3285
3306
  ]),
3286
3307
  _: 1
3287
3308
  }, 8, ["onClick"]),
3288
- u(d, {
3309
+ p(d, {
3289
3310
  value: !!e.hideGroupPrice,
3290
3311
  "close-on-click": !1,
3291
3312
  toggle: "",
3292
3313
  onInput: t[1] || (t[1] = (m) => e.hideGroupPrice = m)
3293
3314
  }, {
3294
- default: h(() => [
3295
- $(p(e.$t("hideGroupPrice")), 1)
3315
+ default: g(() => [
3316
+ I(u(e.$t("hideGroupPrice")), 1)
3296
3317
  ]),
3297
3318
  _: 1
3298
3319
  }, 8, ["value"])
@@ -3305,9 +3326,9 @@ function _n(e, t, n, o, s, i) {
3305
3326
  title: e.$t("base"),
3306
3327
  class: "w-full"
3307
3328
  }, {
3308
- default: h(() => [
3309
- l("div", fn, p(e.$t("basePlaceholder")), 1),
3310
- u(y, {
3329
+ default: g(() => [
3330
+ l("div", kn, u(e.$t("basePlaceholder")), 1),
3331
+ p(y, {
3311
3332
  type: "secondary",
3312
3333
  size: "small",
3313
3334
  style: { "font-weight": "600" },
@@ -3317,8 +3338,8 @@ function _n(e, t, n, o, s, i) {
3317
3338
  toggable: !1
3318
3339
  }))
3319
3340
  }, {
3320
- default: h(() => [
3321
- $(p(e.$t("_common:add", { thing: e.$t("base").toLowerCase() })), 1)
3341
+ default: g(() => [
3342
+ I(u(e.$t("_common:add", { thing: e.$t("base").toLowerCase() })), 1)
3322
3343
  ]),
3323
3344
  _: 1
3324
3345
  })
@@ -3329,12 +3350,12 @@ function _n(e, t, n, o, s, i) {
3329
3350
  name: "section-list",
3330
3351
  tag: "div"
3331
3352
  }, {
3332
- default: h(() => [
3353
+ default: g(() => [
3333
3354
  (a(!0), c(C, null, S(i.topRowPackages, (m, T) => (a(), c("div", {
3334
3355
  key: m.packageId,
3335
3356
  class: "section-item pb-4"
3336
3357
  }, [
3337
- u(_, {
3358
+ p($, {
3338
3359
  _document: e._document,
3339
3360
  _value: {
3340
3361
  isSelectedDefault: `${e._value.packages}[${m.index}].isSelectedDefault`,
@@ -3370,20 +3391,20 @@ function _n(e, t, n, o, s, i) {
3370
3391
  ]),
3371
3392
  _: 1
3372
3393
  })),
3373
- e.type === "checkbox" && i.topRowPackages.length && i.bottomRowPackages.length ? (a(), c("div", yn)) : b("", !0),
3394
+ e.type === "checkbox" && i.topRowPackages.length && i.bottomRowPackages.length ? (a(), c("div", bn)) : b("", !0),
3374
3395
  e.type === "checkbox" ? (a(), A(re, {
3375
3396
  key: 3,
3376
3397
  name: "section-list",
3377
3398
  tag: "div",
3378
3399
  style: { "margin-bottom": "calc(1 * var(--rem))" }
3379
3400
  }, {
3380
- default: h(() => [
3401
+ default: g(() => [
3381
3402
  (a(!0), c(C, null, S(i.bottomRowPackages, (m, T) => (a(), c("div", {
3382
3403
  key: m.packageId,
3383
3404
  class: "section-item",
3384
3405
  style: { padding: "calc(1 * var(--rem)) 0" }
3385
3406
  }, [
3386
- u(_, {
3407
+ p($, {
3387
3408
  _document: e._document,
3388
3409
  _value: {
3389
3410
  isSelectedDefault: `${e._value.packages}[${m.index}].isSelectedDefault`,
@@ -3418,44 +3439,44 @@ function _n(e, t, n, o, s, i) {
3418
3439
  ]),
3419
3440
  _: 1
3420
3441
  })) : b("", !0),
3421
- e.type !== "single" || !e.packages.length ? (a(), c("div", kn, [
3422
- l("div", bn, [
3423
- e.type === "radio" && !e.packages.length ? (a(), c("div", wn, [
3424
- (a(), c("svg", In, t[13] || (t[13] = [
3442
+ e.type !== "single" || !e.packages.length ? (a(), c("div", wn, [
3443
+ l("div", In, [
3444
+ e.type === "radio" && !e.packages.length ? (a(), c("div", _n, [
3445
+ (a(), c("svg", $n, t[13] || (t[13] = [
3425
3446
  l("path", {
3426
3447
  d: "M8.03.22c.3.3.3.77 0 1.06L5.56 3.75h6.88L9.97 1.28A.75.75 0 1111.03.21l3.53 3.54h2.69a.75.75 0 010 1.5h-.12l-1.17 6.4a2.25 2.25 0 01-2.21 1.85h-9.5a2.25 2.25 0 01-2.21-1.84L.87 5.26H.75a.75.75 0 010-1.5h2.69L6.97.21c.3-.3.77-.3 1.06 0zM2.4 5.25L3.5 11.4c.07.35.38.61.74.61h9.5c.36 0 .67-.26.74-.61l1.11-6.14H2.4zm3.1 1.5c.41-.06.8.22.86.63l.38 2.25a.75.75 0 11-1.48.24l-.37-2.25c-.07-.4.2-.8.61-.86zm7 0c.4.08.68.47.61.87l-.37 2.25a.75.75 0 11-1.48-.24l.38-2.25a.75.75 0 01.86-.62zm-3.5 0c.41 0 .75.34.75.75v2.25a.75.75 0 01-1.5 0V7.5c0-.41.34-.75.75-.75z",
3427
3448
  fill: "#000",
3428
3449
  "fill-rule": "evenodd"
3429
3450
  }, null, -1)
3430
3451
  ]))),
3431
- $(" " + p(e.$t("selectablePlaceholder")), 1)
3452
+ I(" " + u(e.$t("selectablePlaceholder")), 1)
3432
3453
  ])) : b("", !0)
3433
3454
  ]),
3434
- n.validator.$invalid && n.validator.$dirty ? (a(), A(v, {
3455
+ n.validator.$invalid && n.validator.$dirty ? (a(), A(h, {
3435
3456
  key: 0,
3436
3457
  message: e.$t("error.minOnePackage"),
3437
3458
  style: { margin: "calc(1 * var(--rem)) 0 calc(1 * var(--rem)) 0" }
3438
3459
  }, null, 8, ["message"])) : b("", !0),
3439
- l("div", $n, [
3440
- u(y, {
3460
+ l("div", Tn, [
3461
+ p(y, {
3441
3462
  type: "secondary",
3442
3463
  outlined: "",
3443
3464
  "icon-left": "plus",
3444
3465
  style: { "border-color": "hsl(0, 0%, 82%)" },
3445
3466
  onClick: t[12] || (t[12] = (m) => i.addPackage())
3446
3467
  }, {
3447
- default: h(() => [
3448
- $(p(e.$t("add")), 1)
3468
+ default: g(() => [
3469
+ I(u(e.$t("add")), 1)
3449
3470
  ]),
3450
3471
  _: 1
3451
3472
  })
3452
3473
  ])
3453
3474
  ])) : b("", !0)
3454
- ], 64)) : (a(), c("div", gn, [
3455
- u(f, {
3475
+ ], 64)) : (a(), c("div", fn, [
3476
+ p(f, {
3456
3477
  onInput: t[0] || (t[0] = (m) => i.onSelectType(m))
3457
3478
  }),
3458
- n.validator.$invalid && n.validator.$dirty ? (a(), A(v, {
3479
+ n.validator.$invalid && n.validator.$dirty ? (a(), A(h, {
3459
3480
  key: 0,
3460
3481
  message: e.$t("error.selectType"),
3461
3482
  style: { "padding-bottom": "calc(1.5 * var(--rem))" }
@@ -3463,7 +3484,7 @@ function _n(e, t, n, o, s, i) {
3463
3484
  ]))
3464
3485
  ]);
3465
3486
  }
3466
- const Bn = /* @__PURE__ */ M(mn, [["render", _n], ["__scopeId", "data-v-03549668"]]);
3487
+ const zn = /* @__PURE__ */ D(gn, [["render", An], ["__scopeId", "data-v-03549668"]]);
3467
3488
  export {
3468
- Bn as default
3489
+ zn as default
3469
3490
  };