@cling-se/widget 0.19.7 → 0.19.9

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 (128) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/{AddClientCallout-BdGevuQo.js → AddClientCallout-C400wpa7.js} +19 -19
  3. package/dist/{AnswerModal-DfjF-RVP.js → AnswerModal-C_vekdpA.js} +80 -80
  4. package/dist/{AttachmentItem-BEd3qVAo.js → AttachmentItem-CYeH1VVw.js} +14 -14
  5. package/dist/{BaseUpload-Zm4EX8ir.js → BaseUpload-DGLogqK4.js} +256 -256
  6. package/dist/{BlockMedia-ZHaA4OMV.js → BlockMedia-Hbm0GWNw.js} +33 -32
  7. package/dist/{CCallout-BlglVZrm.js → CCallout-BPCwr3uM.js} +15 -15
  8. package/dist/{CCurrencyDropdown-BzvKsm1N.js → CCurrencyDropdown-CZXWH0mA.js} +13 -13
  9. package/dist/{CDropdownItem-B5rgSee7.js → CDropdownItem-B9dja0RC.js} +11 -11
  10. package/dist/{CFormField.vue_vue_type_script_setup_true_lang-CVy64zGe.js → CFormField.vue_vue_type_script_setup_true_lang-HLxgkrxm.js} +17 -17
  11. package/dist/{CPhoneFormat-DaDNMlmK.js → CPhoneFormat-C1cjsMVZ.js} +1 -1
  12. package/dist/{CPhoneInput-BUogm59J.js → CPhoneInput-DwcIFaqz.js} +23 -23
  13. package/dist/{CPriceInput-Cd5OHMJS.js → CPriceInput-C_PfAhRb.js} +12 -12
  14. package/dist/{CSelect-CmoAbVkP.js → CSelect-D4A_clvT.js} +15 -15
  15. package/dist/{CSkeleton-BF6EYj8H.js → CSkeleton-h81Vudx0.js} +16 -16
  16. package/dist/{ClientAutocomplete-CHfp4YiV.js → ClientAutocomplete-B_R7zgvM.js} +24 -24
  17. package/dist/{ClientModal-Com23Qgc.js → ClientModal-CBJgrb_y.js} +44 -44
  18. package/dist/{ColorPicker-BzdHtZep.js → ColorPicker-a5yTVc0q.js} +66 -66
  19. package/dist/{CompanyModal-CGjSgTEJ.js → CompanyModal-sRTrUPOY.js} +18 -18
  20. package/dist/{ContentWrapper-CS-Bh4Bk.js → ContentWrapper-Cwd6t51-.js} +16 -16
  21. package/dist/{CoverBlockSettings-DDHQzLdc.js → CoverBlockSettings-8tjji9f1.js} +39 -39
  22. package/dist/{DocAnswer-Cmdsw_CW.js → DocAnswer-D1ZIH1Hn.js} +4 -4
  23. package/dist/{DocDetails-C5Vzh550.js → DocDetails-B5_hBzC-.js} +56 -56
  24. package/dist/{DocForm-DEUVV11n.js → DocForm-BKQvY0Ie.js} +821 -829
  25. package/dist/{DocFormSend-Dt7N3wCz.js → DocFormSend-z0W-xRJP.js} +11 -11
  26. package/dist/{DocLinks-C6-Er0rk.js → DocLinks-BgbDU24h.js} +6 -6
  27. package/dist/{DocModalBase-DbuJwHXi.js → DocModalBase-CNo1u8TK.js} +1 -1
  28. package/dist/{DocPrint-D_uxg7qD.js → DocPrint--UV846r0.js} +15 -15
  29. package/dist/{DocReceipt-D6LP9UAa.js → DocReceipt-BAkWIKbC.js} +23 -23
  30. package/dist/{DocSendReminder-DopLhyjz.js → DocSendReminder-Bk6IVg0R.js} +10 -10
  31. package/dist/{DocTextEditor-DeZtzbgm.js → DocTextEditor-D5zDbbXV.js} +4499 -4438
  32. package/dist/{DocTimeline-DAWZu_KT.js → DocTimeline-KG4zJJOW.js} +16 -16
  33. package/dist/{DocumentClient-kxnT6k9s.js → DocumentClient-CXSxwjOt.js} +12 -12
  34. package/dist/DocumentLayout-C-V_5p3r.js +595 -0
  35. package/dist/{DocumentLogotype-G-a7gBIC.js → DocumentLogotype-H0f7bO0E.js} +18 -18
  36. package/dist/{DocumentVoided-SG_ShMmc.js → DocumentVoided-3F7DChD4.js} +4 -4
  37. package/dist/{EmbedInput-CJL5y3Zj.js → EmbedInput-iG-cDNzZ.js} +8 -8
  38. package/dist/{EmbedSettings-B0X6A9Uy.js → EmbedSettings-DhwFGdKH.js} +12 -12
  39. package/dist/{ErrorCallout-xCSfpQWV.js → ErrorCallout-CyqQ9iRV.js} +10 -10
  40. package/dist/{FilePreviewModal-Da_pMUoO.js → FilePreviewModal-CEUhUuh4.js} +7 -7
  41. package/dist/{Flag-wXawyyMO.js → Flag-Bza5Ltob.js} +4 -4
  42. package/dist/{HeaderSettings-CD3y6-uY.js → HeaderSettings-kEbuiv0n.js} +36 -36
  43. package/dist/{ImageSelectModal-DatnXHH1.js → ImageSelectModal-MDduQIdS.js} +16 -16
  44. package/dist/{ImageUploadWrapper-CwKe3Iq7.js → ImageUploadWrapper-CKJXUAkn.js} +72 -72
  45. package/dist/{Index-BbVHxVFJ.js → Index--_tbiloB.js} +33 -33
  46. package/dist/{Index-y_AJP61r.js → Index-437smvNJ.js} +11 -11
  47. package/dist/{Index-ezY0DbcB.js → Index-8CyLDQv2.js} +5 -5
  48. package/dist/{Index-Cjg3X74T.js → Index-B1tFrOfN.js} +7 -7
  49. package/dist/{Index-Ct735UtM.js → Index-BFwz1G_7.js} +2 -2
  50. package/dist/{Index-BlownK7_.js → Index-BXqNV8F_.js} +7 -7
  51. package/dist/{Index-B53eUt7Y.js → Index-Bege0Vce.js} +15 -15
  52. package/dist/{Index-BTDQax0X.js → Index-Bg1kzWCp.js} +60 -59
  53. package/dist/{Index-9ZFW8Ka7.js → Index-C46cWm4W.js} +7 -7
  54. package/dist/{Index-C2-s62x7.js → Index-CGhWvSf9.js} +11 -11
  55. package/dist/{Index-D-gJQEAD.js → Index-CHIQWumi.js} +6 -6
  56. package/dist/{Index-CQboLS2e.js → Index-CNQhKXtr.js} +8 -8
  57. package/dist/{Index-COF0evH4.js → Index-CUDi4SEx.js} +6 -6
  58. package/dist/{Index-Bb6JZC8l.js → Index-ClA923dR.js} +11 -11
  59. package/dist/{Index-1WPEpaVr.js → Index-D2A8evjo.js} +7 -7
  60. package/dist/{Index-BvAqglwa.js → Index-D4XDugcf.js} +27 -27
  61. package/dist/{Index-GPliVrhC.js → Index-DB3keB-X.js} +7 -7
  62. package/dist/{Index-BJf4YdYB.js → Index-DQLLCnjH.js} +29 -29
  63. package/dist/{Index-Dfy0PsiW.js → Index-DUM-3B1l.js} +29 -29
  64. package/dist/{Index-Ck-_9woY.js → Index-DdZo8evS.js} +456 -461
  65. package/dist/{Index-CTrX3VRa.js → Index-Doc7K3kL.js} +5 -5
  66. package/dist/{Index-DfuzxXzD.js → Index-Dqfwe7SG.js} +2 -2
  67. package/dist/{Index-NnBwJv9v.js → Index-DtCuzght.js} +9 -9
  68. package/dist/{Index-DOeHci16.js → Index-DtDRffCY.js} +7 -7
  69. package/dist/{Index-C-EUJjuk.js → Index-DzKdZg0G.js} +2 -2
  70. package/dist/{Index-yS5OPrJJ.js → Index-DzugmOmj.js} +2 -2
  71. package/dist/{Index-DjfbgA_7.js → Index-E7OzmtR_.js} +30 -27
  72. package/dist/{Index-DkQ8_VkX.js → Index-MmvJQvLm.js} +194 -218
  73. package/dist/{Index-Dxg4gEKd.js → Index-Rb5n5XoO.js} +18 -18
  74. package/dist/{Index-DAkq_7Ws.js → Index-dTgmxz_A.js} +18 -18
  75. package/dist/{Index-Ciy9lnhS.js → Index-eJiQmHhr.js} +2 -2
  76. package/dist/Index-jQsYOOC3.js +4 -0
  77. package/dist/{Index-DzdEqsZB.js → Index-rINXTjpt.js} +16 -16
  78. package/dist/Index-zRXdiRpy.js +49 -0
  79. package/dist/{Index.vue_vue_type_script_lang-B3RoDZmC.js → Index.vue_vue_type_script_lang-B9979oeS.js} +2 -2
  80. package/dist/{InputToggleRow-D5rvQpAw.js → InputToggleRow-CO4fZnAC.js} +15 -15
  81. package/dist/{ManualPopover-Bd-GsLGT.js → ManualPopover-DT4iXoSI.js} +6 -6
  82. package/dist/{MediaWrapper-Ci0XPCcb.js → MediaWrapper-CP_1JzGI.js} +4 -4
  83. package/dist/{NotBindingText-DhndGZE3.js → NotBindingText-D9Um3Agp.js} +2 -2
  84. package/dist/{PackageGroup-4Jt9ClVO.js → PackageGroup-BtH12jVM.js} +103 -103
  85. package/dist/{PdfTerms-CGeJDJpQ.js → PdfTerms-sQh93Xit.js} +9 -9
  86. package/dist/{PdfViewer-o2vb6Fya.js → PdfViewer-DMAcTVND.js} +71 -71
  87. package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-BtnMqKcE.js → PlainHtml.vue_vue_type_script_setup_true_lang-tY-SurWr.js} +2 -2
  88. package/dist/{PriceHeader-BsObxLHK.js → PriceHeader-CG6el7O_.js} +31 -31
  89. package/dist/{SearchApi-ZczKsBb7.js → SearchApi-B39mMGKy.js} +6 -6
  90. package/dist/{SendForm-D5jqkofo.js → SendForm-F5aQPz8w.js} +780 -778
  91. package/dist/{Setup-CdZzn0qW.js → Setup-DuHU2eHC.js} +4 -4
  92. package/dist/{SmartList-B36ffGAZ.js → SmartList-myMj6QGe.js} +1 -1
  93. package/dist/{Sortable.vue_vue_type_script_setup_true_lang-Di1urzqu.js → Sortable.vue_vue_type_script_setup_true_lang-Bb2Nqdsz.js} +118 -118
  94. package/dist/{TermsSettings-CmAHVOuX.js → TermsSettings-Cb6Xms3f.js} +16 -16
  95. package/dist/{ThemeColorRow-CScTIcPB.js → ThemeColorRow-oW3xS1pa.js} +13 -13
  96. package/dist/{ToggleBinding-CVZZlpBR.js → ToggleBinding-B-F9_nAf.js} +7 -7
  97. package/dist/{UploadModal-2tXsmGMM.js → UploadModal-eBx4Vqyo.js} +19 -19
  98. package/dist/{VideoPlayerInput-BDzjZ2St.js → VideoPlayerInput-CtTe4JW4.js} +10 -10
  99. package/dist/{VideoPlayerSettings-BLAEZw4C.js → VideoPlayerSettings-Cvz5B4JX.js} +9 -9
  100. package/dist/{VideoSelectModal-iqgmg85K.js → VideoSelectModal-CXI0aN4g.js} +19 -19
  101. package/dist/{focusDrawerMixin-BmyahQiE.js → focusDrawerMixin-DlcYhFw8.js} +1 -1
  102. package/dist/{formDrawerState-B7ASfNsk.js → formDrawerState-Cf6Q5cuR.js} +1 -1
  103. package/dist/{helpers-BVP2Pul1.js → helpers-Cf9wqfZh.js} +4 -4
  104. package/dist/{index-D0Qee2OX.js → index-BSCAjn53.js} +31 -31
  105. package/dist/{index-Cd4S4J-L.js → index-BStFMzD9.js} +56 -56
  106. package/dist/{index-BDb4bM0D.js → index-BytsFarx.js} +24 -24
  107. package/dist/{index-DXNrJnEc.js → index-Co_PpOtI.js} +10 -10
  108. package/dist/{index-BH5vwOzR.js → index-DPlBYqKB.js} +9 -9
  109. package/dist/{index-B86TZXOh.js → index-DsvlNA3Q.js} +94 -94
  110. package/dist/{index-CsbYpQqP.js → index-r5v1Gv17.js} +57 -57
  111. package/dist/index.es.js +2 -2
  112. package/dist/index.umd.js +153 -158
  113. package/dist/{main-C2Q8_T2Y.js → main-BkjAGG46.js} +14298 -14373
  114. package/dist/{mapFormMixin-CjfqZnmd.js → mapFormMixin-DLFNPgNO.js} +34 -40
  115. package/dist/omit-CvOSNZN7.js +56 -0
  116. package/dist/{publicSenderState-C3ELW8Cw.js → publicSenderState-DeC1m0ps.js} +4 -4
  117. package/dist/{splitpanes-CuxtOZyV.js → splitpanes-CsJipBiG.js} +6 -6
  118. package/dist/{template-DzrGrOEa.js → template-Cvzvayl5.js} +6 -6
  119. package/dist/{tippy.esm-Bf86qEue.js → tippy.esm-JEjGtE5F.js} +273 -275
  120. package/dist/{useTermsModal-Be4HLDDm.js → useTermsModal-D2gYy-TP.js} +7 -7
  121. package/dist/{utils-a_Odlqb5.js → utils-DarTPA8c.js} +1 -1
  122. package/dist/{validation-38muBV6x.js → validation-K11g55ZB.js} +4 -4
  123. package/dist/widget.css +1 -1
  124. package/package.json +2 -2
  125. package/dist/DocumentLayout-DaVz9SGF.js +0 -1434
  126. package/dist/Index-CXjLkK_n.js +0 -49
  127. package/dist/Index-qFx0G3fC.js +0 -4
  128. package/dist/omit-DzlbtNCX.js +0 -56
@@ -1,17 +1,17 @@
1
- import { m as q } from "./mapFormMixin-CjfqZnmd.js";
2
- import { C as _e } from "./CCallout-BlglVZrm.js";
3
- import { C as K, a as Y, w as $e } from "./CDropdownItem-B5rgSee7.js";
4
- import { E as pe } from "./ErrorCallout-xCSfpQWV.js";
5
- import { bZ as Te, b_ as me, b$ as Ae, c0 as Ce, c1 as Pe, c2 as xe, c3 as Ve, aM as Se, _ as D, e as g, o as a, b as c, j as l, t as m, y as V, F as A, G as S, Y as J, f as b, d as p, m as E, a as z, g as L, E as N, w as h, D as B, A as F, B as ie, ab as H, c4 as De, c5 as ne, aG as Me, ak as se, b6 as W, aE as Re, c6 as Le, b7 as Oe, aa as U, I as R, c as T, x as $, c7 as Ee, c8 as Ue, c9 as he, a6 as Be, ca as ge, J as We, n as x, Z as ze, L as Fe, a5 as je, aB as j, q as qe, u as Ne, cb as He, ax as Ge, bY as Ke, aF as Ye, cc as oe } from "./main-C2Q8_T2Y.js";
6
- import { u as Ze, a as Je } from "./DocumentLayout-DaVz9SGF.js";
7
- import { T as Qe } from "./DocTextEditor-DeZtzbgm.js";
8
- import { _ as Xe, m as et } from "./Sortable.vue_vue_type_script_setup_true_lang-Di1urzqu.js";
9
- import { o as ve } from "./omit-DzlbtNCX.js";
10
- import { C as Z } from "./CPriceInput-Cd5OHMJS.js";
11
- import { u as fe } from "./index-B86TZXOh.js";
12
- import { S as tt } from "./SearchApi-ZczKsBb7.js";
13
- import { b as it } from "./index-BH5vwOzR.js";
14
- import { _ as ye } from "./CFormField.vue_vue_type_script_setup_true_lang-CVy64zGe.js";
1
+ import { m as q } from "./mapFormMixin-DLFNPgNO.js";
2
+ import { C as $e } from "./CCallout-BPCwr3uM.js";
3
+ import { C as K, a as Y, w as Te } from "./CDropdownItem-B9dja0RC.js";
4
+ import { E as me } from "./ErrorCallout-CyqQ9iRV.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 g, d as c, o as a, j as l, t as u, x as V, F as C, n as S, W as J, e as b, f as p, s as N, m as z, a as E, g as L, w as h, R as B, ai as j, T as ie, an as H, cc as Me, cd as ne, aF as Re, a8 as se, bi as W, aD as Le, ce as Oe, bl as Ee, a4 as U, c as A, u as R, q as _, 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-BkjAGG46.js";
6
+ import { u as Je } from "./DocumentLayout-C-V_5p3r.js";
7
+ import { T as Qe } from "./DocTextEditor-D5zDbbXV.js";
8
+ import { _ as Xe, m as et } from "./Sortable.vue_vue_type_script_setup_true_lang-Bb2Nqdsz.js";
9
+ import { o as fe } from "./omit-CvOSNZN7.js";
10
+ import { C as Z } from "./CPriceInput-C_PfAhRb.js";
11
+ import { u as ye } from "./index-DsvlNA3Q.js";
12
+ import { S as tt } from "./SearchApi-B39mMGKy.js";
13
+ import { m as it } from "./index-DPlBYqKB.js";
14
+ import { _ as ke } from "./CFormField.vue_vue_type_script_setup_true_lang-HLxgkrxm.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, re;
32
+ var Q, le;
33
33
  function st() {
34
- if (re) return Q;
35
- re = 1;
34
+ if (le) return Q;
35
+ le = 1;
36
36
  function e() {
37
37
  }
38
38
  return Q = e, Q;
39
39
  }
40
- var X, le;
40
+ var X, ce;
41
41
  function at() {
42
- if (le) return X;
43
- le = 1;
44
- var e = Te(), t = st(), n = me(), o = 1 / 0, s = e && 1 / n(new e([, -0]))[1] == o ? function(i) {
42
+ if (ce) return X;
43
+ ce = 1;
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
47
  return X = s, X;
48
48
  }
49
- var ee, ce;
49
+ var ee, de;
50
50
  function ot() {
51
- if (ce) return ee;
52
- ce = 1;
53
- var e = Ae(), t = Ce(), n = Pe(), o = xe(), s = at(), i = me(), f = 200;
54
- function v(y, u, w) {
55
- var k = -1, C = t, d = y.length, I = !0, r = [], P = r;
56
- if (w)
57
- I = !1, C = n;
58
- else if (d >= f) {
59
- var _ = u ? null : s(y);
60
- if (_)
61
- return i(_);
62
- I = !1, C = o, P = new e();
51
+ if (de) return ee;
52
+ de = 1;
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;
56
+ if (k)
57
+ T = !1, $ = n;
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();
63
63
  } else
64
- P = u ? [] : r;
64
+ P = d ? [] : r;
65
65
  e:
66
- for (; ++k < d; ) {
67
- var M = y[k], O = u ? u(M) : M;
68
- if (M = w || M !== 0 ? M : 0, I && O === O) {
66
+ for (; ++w < m; ) {
67
+ var M = y[w], O = d ? d(M) : M;
68
+ if (M = k || M !== 0 ? M : 0, T && O === O) {
69
69
  for (var ae = P.length; ae--; )
70
70
  if (P[ae] === O)
71
71
  continue e;
72
- u && P.push(O), r.push(M);
73
- } else C(P, O, w) || (P !== r && P.push(O), r.push(M));
72
+ d && P.push(O), r.push(M);
73
+ } else $(P, O, k) || (P !== r && P.push(O), r.push(M));
74
74
  }
75
75
  return r;
76
76
  }
77
77
  return ee = v, ee;
78
78
  }
79
- var te, de;
79
+ var te, ue;
80
80
  function rt() {
81
- if (de) return te;
82
- de = 1;
83
- var e = Ve(), t = ot();
81
+ if (ue) return te;
82
+ ue = 1;
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
87
  return te = n, te;
88
88
  }
89
89
  var lt = rt();
90
- const ct = /* @__PURE__ */ Se(lt), dt = {
90
+ const ct = /* @__PURE__ */ De(lt), dt = {
91
91
  name: "PackageGroupSelect",
92
92
  i18nOptions: {
93
93
  namespaces: "PackageGroupSelect",
@@ -130,7 +130,7 @@ const ct = /* @__PURE__ */ Se(lt), dt = {
130
130
  },
131
131
  emits: ["input"],
132
132
  setup() {
133
- return { docWidth: Ze() };
133
+ return { docWidth: Je() };
134
134
  },
135
135
  data() {
136
136
  return {
@@ -166,16 +166,16 @@ const ct = /* @__PURE__ */ Se(lt), dt = {
166
166
  function yt(e, t, n, o, s, i) {
167
167
  const f = g("CIcon");
168
168
  return a(), c("div", ut, [
169
- l("div", pt, m(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(A, null, S(s.options, (v, y) => (a(), c("div", {
174
+ (a(!0), c(C, null, S(s.options, (v, y) => (a(), c("div", {
175
175
  key: y,
176
176
  style: J({ backgroundColor: v.background }),
177
177
  class: "package-group-option",
178
- onClick: (u) => e.$emit("input", v.value)
178
+ onClick: (d) => e.$emit("input", v.value)
179
179
  }, [
180
180
  l("div", ht, [
181
181
  v.value === "single" ? (a(), c("div", gt, t[0] || (t[0] = [
@@ -190,15 +190,15 @@ function yt(e, t, n, o, s, i) {
190
190
  })
191
191
  ], -1)
192
192
  ]))) : b("", !0),
193
- v.value === "radio" ? (a(), c(A, { key: 1 }, S(3, (u) => l("div", {
194
- key: u,
195
- class: V([{ animate: u === 2 }, "package-group-option__illustration-card"])
193
+ v.value === "radio" ? (a(), c(C, { key: 1 }, S(3, (d) => l("div", {
194
+ key: d,
195
+ class: V([{ animate: d === 2 }, "package-group-option__illustration-card"])
196
196
  }, [
197
197
  l("div", {
198
198
  style: J([
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
- u === 2 && {
201
+ d === 2 && {
202
202
  boxShadow: `0 0 0 1px white, 0 0 0 2px ${v.background}`,
203
203
  backgroundColor: v.background
204
204
  }
@@ -215,15 +215,15 @@ 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(A, { key: 2 }, S(3, (u) => l("div", {
219
- key: u,
220
- class: V([{ animate: u !== 3 }, "package-group-option__illustration-card"])
218
+ v.value === "checkbox" ? (a(), c(C, { key: 2 }, S(3, (d) => l("div", {
219
+ key: d,
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" }, u !== 3 && { backgroundColor: v.background }])
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 }])
224
224
  }, [
225
225
  p(f, {
226
- type: u !== 3 ? "check" : "empty",
226
+ type: d !== 3 ? "check" : "empty",
227
227
  "stroke-width": "5",
228
228
  size: "8"
229
229
  }, null, 8, ["type"])
@@ -241,7 +241,7 @@ 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, m(v.title), 1),
244
+ l("div", vt, u(v.title), 1),
245
245
  l("div", {
246
246
  class: "package-group-option__subtitle",
247
247
  innerHTML: v.subTitle
@@ -391,14 +391,14 @@ function Vt(e, t, n, o, s, i) {
391
391
  class: { "is-open": s.isOpen }
392
392
  }, e.$attrs, {
393
393
  style: { position: "relative" },
394
- onKeydownPassive: t[0] || (t[0] = (...u) => i.onKeydown && i.onKeydown(...u))
394
+ onKeydownPassive: t[0] || (t[0] = (...d) => i.onKeydown && i.onKeydown(...d))
395
395
  }), [
396
396
  p(v, { "custom-search": {
397
397
  article: !0,
398
398
  extensionArticle: !0,
399
399
  project: !1
400
400
  } }, {
401
- default: h(({ fetch: u }) => [
401
+ default: h(({ fetch: d }) => [
402
402
  p(f, B({
403
403
  ...e.$attrs,
404
404
  ...e.$props
@@ -408,11 +408,11 @@ function Vt(e, t, n, o, s, i) {
408
408
  type: n.tag,
409
409
  "auto-resize": !0,
410
410
  class: "r-input",
411
- "onUpdate:modelValue": (w) => i.search(u, w),
411
+ "onUpdate:modelValue": (k) => i.search(d, k),
412
412
  onFocus: i.onFocus,
413
413
  onKeydown: [
414
- F(i.hideResults, ["tab"]),
415
- F(i.hideResults, ["escape"])
414
+ j(i.hideResults, ["tab"]),
415
+ j(i.hideResults, ["escape"])
416
416
  ],
417
417
  onBlur: i.onBlur
418
418
  }), {
@@ -428,25 +428,25 @@ function Vt(e, t, n, o, s, i) {
428
428
  _: 3
429
429
  }),
430
430
  s.isOpen ? (a(), c("div", wt, [
431
- (a(!0), c(A, null, S(s.searchResults, (u, w) => (a(), c("div", {
432
- key: w,
433
- class: V([{ active: s.selectedIndex === w }, "r-item"]),
434
- onClickCapture: H((k) => i.onSelect(u), ["stop"])
431
+ (a(!0), c(C, null, S(s.searchResults, (d, k) => (a(), c("div", {
432
+ key: k,
433
+ class: V([{ active: s.selectedIndex === k }, "r-item"]),
434
+ onClickCapture: H((w) => i.onSelect(d), ["stop"])
435
435
  }, [
436
- l("div", _t, m(u.name), 1),
436
+ l("div", _t, u(d.name), 1),
437
437
  l("div", $t, [
438
- u.externalReference && u.externalReference.service ? (a(), c("div", Tt, [
438
+ d.externalReference && d.externalReference.service ? (a(), c("div", Tt, [
439
439
  p(y, {
440
- type: u.externalReference.service,
440
+ type: d.externalReference.service,
441
441
  style: { color: "white" },
442
442
  size: "14"
443
443
  }, null, 8, ["type"])
444
444
  ])) : b("", !0),
445
- u.article_no ? (a(), c("div", At, m(u.article_no), 1)) : b("", !0),
446
- u.price ? (a(), c("div", Ct, m(i.priceFormat(u.price, { currency: u.currency })), 1)) : b("", !0),
447
- u.vat ? (a(), c("div", Pt, m(e.$t("vat.sharedTitle").capitalize()) + " " + m(u.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
- s.selectedIndex === w ? (a(), c("div", xt, [
449
+ s.selectedIndex === k ? (a(), c("div", xt, [
450
450
  p(y, {
451
451
  type: "corner-down-left",
452
452
  size: "16"
@@ -456,7 +456,7 @@ function Vt(e, t, n, o, s, i) {
456
456
  ], 512)) : b("", !0)
457
457
  ], 16);
458
458
  }
459
- const ke = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c"]]), ue = {
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,
@@ -468,18 +468,18 @@ const ke = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
468
468
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
469
469
  // Trigger updatedAt as it us used to decide which houseWork to prioritize
470
470
  };
471
- return typeof n < "u" && (o[n] = t), Object.keys(ue).includes(n) && t && (o = {
471
+ return typeof n < "u" && (o[n] = t), Object.keys(pe).includes(n) && t && (o = {
472
472
  ...o,
473
- ...ue,
473
+ ...pe,
474
474
  [n]: !0
475
- }), De(o.quantity) !== "number" && (o.quantity = 0), ne(o);
476
- }, be = ({
475
+ }), Me(o.quantity) !== "number" && (o.quantity = 0), ne(o);
476
+ }, we = ({
477
477
  stored: e,
478
478
  current: t,
479
479
  hidePrice: n = !1,
480
480
  activeHouseWorkType: o
481
481
  }) => {
482
- let s = Me({
482
+ let s = Re({
483
483
  ...e,
484
484
  quantity: 1,
485
485
  showPrice: !n,
@@ -488,8 +488,8 @@ const ke = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
488
488
  packageId: t.packageId
489
489
  });
490
490
  if (o) {
491
- const i = (y = []) => y.reduce((u, w) => ({ ...u, [w]: !1 }), {}), v = Object.values(
492
- ve({
491
+ const i = (y = []) => y.reduce((d, k) => ({ ...d, [k]: !1 }), {}), v = Object.values(
492
+ fe({
493
493
  rot: "isDeductable",
494
494
  rut: "isRut",
495
495
  greenRot15: "greenRot15",
@@ -504,7 +504,7 @@ const ke = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
504
504
  const n = se(e.currency, t);
505
505
  switch (e.priceType) {
506
506
  case "approx":
507
- return `${Re.t("_common:approx")} ${n}`;
507
+ return `${Le.t("_common:approx")} ${n}`;
508
508
  case "openAcc":
509
509
  return `${n}/${W(e.unitType)}`;
510
510
  case "markup":
@@ -512,7 +512,7 @@ const ke = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
512
512
  default:
513
513
  return n;
514
514
  }
515
- }, we = {
515
+ }, Ie = {
516
516
  en: {
517
517
  namePlaceholder: "Service or product name",
518
518
  openModalTooltip: "Edit amount and unit",
@@ -557,7 +557,7 @@ const ke = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
557
557
  }
558
558
  }
559
559
  }
560
- }, Ie = {
560
+ }, _e = {
561
561
  article: {
562
562
  name: {
563
563
  maxLength: it(255)
@@ -567,11 +567,11 @@ const ke = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
567
567
  name: "Article",
568
568
  i18nOptions: {
569
569
  namespaces: "Article",
570
- messages: we
570
+ messages: Ie
571
571
  },
572
572
  components: {
573
- ErrorCallout: pe,
574
- ArticleAutocomplete: ke,
573
+ ErrorCallout: me,
574
+ ArticleAutocomplete: be,
575
575
  CPriceInput: Z
576
576
  },
577
577
  expose: ["focusName"],
@@ -619,14 +619,14 @@ const ke = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
619
619
  emits: ["input", "open-modal", "remove", "focus", "select", "add", "esc"],
620
620
  setup() {
621
621
  return {
622
- v$: fe()
622
+ v$: ye()
623
623
  };
624
624
  },
625
- validations: Ie,
625
+ validations: _e,
626
626
  data() {
627
627
  return {
628
628
  updateData: G,
629
- addSavedArticle: be,
629
+ addSavedArticle: we,
630
630
  articleUnitLabel: W,
631
631
  widthCompact: 580,
632
632
  visualDisable: !1
@@ -651,8 +651,8 @@ const ke = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
651
651
  discount: f,
652
652
  discountType: v
653
653
  } = this.article;
654
- if (t !== "fixed" && e.push({ title: this.$t(`priceTypeShort.${t}`) }), Le(this.article)) {
655
- const y = Oe(this.article);
654
+ if (t !== "fixed" && e.push({ title: this.$t(`priceTypeShort.${t}`) }), Oe(this.article)) {
655
+ const y = Ee(this.article);
656
656
  e.push({
657
657
  title: this.$t(`_common:deduction.${y}_percentage`)
658
658
  });
@@ -698,14 +698,14 @@ const ke = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
698
698
  }
699
699
  }, Mt = { class: "top-row flex w-full" }, Rt = ["innerHTML"];
700
700
  function Lt(e, t, n, o, s, i) {
701
- const f = g("CIcon"), v = g("ArticleAutocomplete"), y = g("CPriceInput"), u = g("ErrorCallout"), w = U("tooltip");
701
+ const f = g("CIcon"), v = g("ArticleAutocomplete"), y = g("CPriceInput"), d = g("ErrorCallout"), k = U("tooltip");
702
702
  return a(), c("div", {
703
703
  class: V([{
704
704
  "has-details": i.details.length,
705
705
  compact: n.width <= s.widthCompact,
706
706
  "show-controls": !n.hideControls
707
707
  }, "article-wrapper"]),
708
- onKeydown: t[10] || (t[10] = F((k) => e.$emit("esc"), ["esc"]))
708
+ onKeydown: t[10] || (t[10] = j((w) => e.$emit("esc"), ["esc"]))
709
709
  }, [
710
710
  l("div", Mt, [
711
711
  p(v, B({
@@ -715,13 +715,13 @@ function Lt(e, t, n, o, s, i) {
715
715
  size: "large",
716
716
  class: "article-name-wrapper article-input-wrapper form-control form-control-left"
717
717
  }, e.$attrs, {
718
- "onUpdate:modelValue": t[1] || (t[1] = (k) => i.updateArticle(k, "name")),
719
- onFocus: t[2] || (t[2] = (k) => e.$emit("focus")),
720
- onSelect: t[3] || (t[3] = (k) => {
718
+ "onUpdate:modelValue": t[1] || (t[1] = (w) => i.updateArticle(w, "name")),
719
+ onFocus: t[2] || (t[2] = (w) => e.$emit("focus")),
720
+ onSelect: t[3] || (t[3] = (w) => {
721
721
  e.$emit(
722
722
  "input",
723
723
  s.addSavedArticle({
724
- stored: k,
724
+ stored: w,
725
725
  current: i.article,
726
726
  hidePrice: n.hidePriceOnNew,
727
727
  activeHouseWorkType: n.activeHouseWorkType
@@ -733,14 +733,14 @@ function Lt(e, t, n, o, s, i) {
733
733
  n.hideControls ? b("", !0) : R((a(), c("div", {
734
734
  key: 0,
735
735
  class: "article-button fade-in",
736
- onClick: t[0] || (t[0] = (k) => e.$emit("open-modal"))
736
+ onClick: t[0] || (t[0] = (w) => e.$emit("open-modal"))
737
737
  }, [
738
738
  p(f, {
739
739
  type: "cog",
740
740
  size: "18"
741
741
  })
742
742
  ])), [
743
- [w, {
743
+ [k, {
744
744
  content: e.$t("openModalTooltip"),
745
745
  delay: { show: 300, hide: 0 }
746
746
  }]
@@ -748,7 +748,7 @@ function Lt(e, t, n, o, s, i) {
748
748
  ]),
749
749
  _: 1
750
750
  }, 16, ["model-value", "placeholder"]),
751
- n.hidePriceInput ? b("", !0) : (a(), T(y, B({
751
+ n.hidePriceInput ? b("", !0) : (a(), A(y, B({
752
752
  key: n.rootPriceType + i.article.priceType + i.article.unitType,
753
753
  "model-value": i.article.totalAmount,
754
754
  currency: i.article.currency,
@@ -760,20 +760,20 @@ function Lt(e, t, n, o, s, i) {
760
760
  class: "form-control form-control-right",
761
761
  style: { flex: "1 1", "min-width": "200px" }
762
762
  }, e.$attrs, {
763
- "onUpdate:modelValue": t[4] || (t[4] = (k) => i.updateArticle(k, "price")),
764
- "onUpdate:currency": t[5] || (t[5] = (k) => e.$emit("update:currency", k)),
763
+ "onUpdate:modelValue": t[4] || (t[4] = (w) => i.updateArticle(w, "price")),
764
+ "onUpdate:currency": t[5] || (t[5] = (w) => e.$emit("update:currency", w)),
765
765
  onFocus: t[6] || (t[6] = () => {
766
766
  i.onTotalPriceInputFocus(), e.$emit("focus");
767
767
  }),
768
- onKeydown: t[7] || (t[7] = F((k) => e.$emit("add"), ["enter"]))
768
+ onKeydown: t[7] || (t[7] = j((w) => e.$emit("add"), ["enter"]))
769
769
  }), null, 16, ["model-value", "currency", "is-inc-vat", "vat", "placeholder", "price-type", "unit-label"])),
770
- n.hideControls ? b("", !0) : (a(), c(A, { key: 1 }, [
770
+ n.hideControls ? b("", !0) : (a(), c(C, { key: 1 }, [
771
771
  p(f, {
772
772
  class: "a-control-button close-button fade-in",
773
773
  circle: "",
774
774
  type: "x",
775
775
  size: "18",
776
- onClick: t[8] || (t[8] = (k) => n.enableRemove ? e.$emit("remove") : null)
776
+ onClick: t[8] || (t[8] = (w) => n.enableRemove ? e.$emit("remove") : null)
777
777
  }),
778
778
  p(f, {
779
779
  class: V([{ "c-hidden": !n.enableRemove }, "a-control-button fade-in move-button article-draggable-handle"]),
@@ -787,21 +787,21 @@ function Lt(e, t, n, o, s, i) {
787
787
  key: 0,
788
788
  class: "article-details-wrapper",
789
789
  style: { cursor: "pointer" },
790
- onClick: t[9] || (t[9] = (k) => e.$emit("open-modal"))
790
+ onClick: t[9] || (t[9] = (w) => e.$emit("open-modal"))
791
791
  }, [
792
- (a(!0), c(A, null, S(i.details, ({ title: k, icon: C, subTitle: d = "", detailClass: I = "" }, r) => (a(), c("div", {
792
+ (a(!0), c(C, null, S(i.details, ({ title: w, icon: $, subTitle: m = "", detailClass: T = "" }, r) => (a(), c("div", {
793
793
  key: r,
794
- class: V([[I], "article-details-item"])
794
+ class: V([[T], "article-details-item"])
795
795
  }, [
796
- $(m(k) + " ", 1),
797
- C ? (a(), c("div", {
796
+ _(u(w) + " ", 1),
797
+ $ ? (a(), c("div", {
798
798
  key: 0,
799
- innerHTML: C
799
+ innerHTML: $
800
800
  }, null, 8, Rt)) : b("", !0),
801
- $(" " + m(d), 1)
801
+ _(" " + u(m), 1)
802
802
  ], 2))), 128))
803
803
  ])) : b("", !0),
804
- o.v$.$invalid && o.v$.$dirty ? (a(), T(u, {
804
+ o.v$.$invalid && o.v$.$dirty ? (a(), A(d, {
805
805
  key: 1,
806
806
  message: i.errorMessage(o.v$)
807
807
  }, null, 8, ["message"])) : b("", !0)
@@ -946,9 +946,9 @@ const Wt = /* @__PURE__ */ D(Et, [["render", Bt], ["__scopeId", "data-v-f685b502
946
946
  }
947
947
  },
948
948
  components: {
949
- DragList: Ee,
949
+ DragList: Be,
950
950
  DragItem: Ue,
951
- CField: ye
951
+ CField: ke
952
952
  },
953
953
  emits: ["select", "close"],
954
954
  data() {
@@ -1019,17 +1019,17 @@ const Wt = /* @__PURE__ */ D(Et, [["render", Bt], ["__scopeId", "data-v-f685b502
1019
1019
  this.$emit("close");
1020
1020
  },
1021
1021
  async onDrop({ removedIndex: e, addedIndex: t }) {
1022
- e === null && t === null || e !== t && (this.idList = he(this.idList, e, t), await Be(
1022
+ e === null && t === null || e !== t && (this.idList = ve(this.idList, e, t), await ze(
1023
1023
  "/unitType/setPositions",
1024
1024
  { ids: this.idList },
1025
1025
  { invalidateCache: { type: "unitType" } }
1026
1026
  ), this.reset(), await this.loadUnits());
1027
1027
  }
1028
1028
  }
1029
- }, Ft = {
1029
+ }, jt = {
1030
1030
  class: "unit-modal-root font-inter",
1031
1031
  style: { position: "relative" }
1032
- }, jt = { 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 = {
1032
+ }, 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
1033
  class: "text-gray-400",
1034
1034
  style: { "font-size": "14px", padding: "calc(1 * var(--rem)) calc(1.5 * var(--rem)) 0", "font-weight": "500" }
1035
1035
  }, Kt = { class: "unit-modal-list" }, Yt = {
@@ -1037,25 +1037,25 @@ const Wt = /* @__PURE__ */ D(Et, [["render", Bt], ["__scopeId", "data-v-f685b502
1037
1037
  class: "unit-modal-list-empty"
1038
1038
  }, Zt = ["onMouseoverPassive", "onClick"], Jt = { class: "drag-handle" }, Qt = { style: { "padding-left": "0.5em" } }, Xt = { class: "unittype-buttons" };
1039
1039
  function ei(e, t, n, o, s, i) {
1040
- const f = g("CIcon"), v = g("CButton"), y = g("CInput"), u = g("CField"), w = g("DragItem"), k = g("DragList"), C = U("tooltip");
1040
+ const f = g("CIcon"), v = g("CButton"), y = g("CInput"), d = g("CField"), k = g("DragItem"), w = g("DragList"), $ = U("tooltip");
1041
1041
  return a(), c("div", {
1042
1042
  class: "modal-overlay font-inter",
1043
- onClickPassive: t[3] || (t[3] = H((...d) => i.close && i.close(...d), ["self"]))
1043
+ onClickPassive: t[3] || (t[3] = H((...m) => i.close && i.close(...m), ["self"]))
1044
1044
  }, [
1045
- l("div", Ft, [
1046
- l("div", jt, [
1045
+ l("div", jt, [
1046
+ l("div", Ft, [
1047
1047
  l("div", qt, [
1048
- l("span", null, m(e.$t("_common:add", { thing: e.$t("_common:unitType.unitType_other") })), 1),
1048
+ l("span", null, u(e.$t("_common:add", { thing: e.$t("_common:unitType.unitType_other") })), 1),
1049
1049
  R(p(f, {
1050
1050
  type: "info",
1051
1051
  size: "15",
1052
1052
  class: "text-gray-400",
1053
1053
  style: { "margin-left": "0.5em" }
1054
1054
  }, null, 512), [
1055
- [C, { content: e.$t("tooltip"), html: !0 }]
1055
+ [$, { content: e.$t("tooltip"), html: !0 }]
1056
1056
  ])
1057
1057
  ]),
1058
- p(u, {
1058
+ p(d, {
1059
1059
  grouped: "",
1060
1060
  style: { margin: "0" }
1061
1061
  }, {
@@ -1063,7 +1063,7 @@ function ei(e, t, n, o, s, i) {
1063
1063
  p(y, {
1064
1064
  ref: "unitInput",
1065
1065
  modelValue: s.selectedValue.value,
1066
- "onUpdate:modelValue": t[0] || (t[0] = (d) => s.selectedValue.value = d),
1066
+ "onUpdate:modelValue": t[0] || (t[0] = (m) => s.selectedValue.value = m),
1067
1067
  modelModifiers: { trim: !0 },
1068
1068
  placeholder: e.$t("_common:name").capitalize(),
1069
1069
  expanded: "",
@@ -1093,7 +1093,7 @@ function ei(e, t, n, o, s, i) {
1093
1093
  onClick: i.submit
1094
1094
  }, {
1095
1095
  default: h(() => [
1096
- $(m(s.selectedValue.id ? e.$t("_common:save") : e.$t("_common:add")), 1)
1096
+ _(u(s.selectedValue.id ? e.$t("_common:save") : e.$t("_common:add")), 1)
1097
1097
  ]),
1098
1098
  _: 1
1099
1099
  }, 8, ["loading", "disabled", "onClick"])
@@ -1103,10 +1103,10 @@ function ei(e, t, n, o, s, i) {
1103
1103
  })
1104
1104
  ]),
1105
1105
  l("div", Ht, [
1106
- l("div", Gt, m(e.$t("_common:unit_other").capitalize()), 1),
1106
+ l("div", Gt, u(e.$t("_common:unit_other").capitalize()), 1),
1107
1107
  l("div", Kt, [
1108
- i.unitItems.length ? b("", !0) : (a(), c("div", Yt, m(e.$t("_common:add", { thing: e.$t("_common:unit_other") })), 1)),
1109
- p(k, {
1108
+ i.unitItems.length ? b("", !0) : (a(), c("div", Yt, u(e.$t("_common:add", { thing: e.$t("_common:unit_other") })), 1)),
1109
+ p(w, {
1110
1110
  "drop-placeholder": { className: "drag-drop-placeholder" },
1111
1111
  "drag-class": "is-dragged",
1112
1112
  "lock-axis": "y",
@@ -1114,15 +1114,15 @@ function ei(e, t, n, o, s, i) {
1114
1114
  onDrop: i.onDrop
1115
1115
  }, {
1116
1116
  default: h(() => [
1117
- (a(!0), c(A, null, S(i.unitItems, (d, I) => (a(), T(w, {
1118
- key: d.id
1117
+ (a(!0), c(C, null, S(i.unitItems, (m, T) => (a(), A(k, {
1118
+ key: m.id
1119
1119
  }, {
1120
1120
  default: h(() => [
1121
1121
  l("div", {
1122
- class: V([{ "is-editing": s.selectedValue.id === d.id }, "unit-modal-list-item"]),
1123
- onMouseoverPassive: (r) => s.hoverIndex = I,
1122
+ class: V([{ "is-editing": s.selectedValue.id === m.id }, "unit-modal-list-item"]),
1123
+ onMouseoverPassive: (r) => s.hoverIndex = T,
1124
1124
  onMouseleavePassive: t[2] || (t[2] = (r) => s.hoverIndex = null),
1125
- onClick: (r) => i.onEdit(d)
1125
+ onClick: (r) => i.onEdit(m)
1126
1126
  }, [
1127
1127
  l("div", Jt, [
1128
1128
  p(f, {
@@ -1131,19 +1131,19 @@ function ei(e, t, n, o, s, i) {
1131
1131
  class: "text-gray-300"
1132
1132
  })
1133
1133
  ]),
1134
- l("div", Qt, m(d.label), 1),
1135
- R(l("span", { class: "delete-confirm" }, m(e.$t("_common:remove")) + "? ", 513), [
1136
- [We, s.removeConfirmIndex === I]
1134
+ l("div", Qt, u(m.label), 1),
1135
+ R(l("span", { class: "delete-confirm" }, u(e.$t("_common:remove")) + "? ", 513), [
1136
+ [We, s.removeConfirmIndex === T]
1137
1137
  ]),
1138
1138
  l("div", Xt, [
1139
- s.hoverIndex === I || s.removeConfirmIndex === I ? (a(), T(v, {
1139
+ s.hoverIndex === T || s.removeConfirmIndex === T ? (a(), A(v, {
1140
1140
  key: 0,
1141
- type: s.removeConfirmIndex === I ? "danger" : "none",
1142
- pattern: s.removeConfirmIndex === I ? "primary" : "tertiary",
1141
+ type: s.removeConfirmIndex === T ? "danger" : "none",
1142
+ pattern: s.removeConfirmIndex === T ? "primary" : "tertiary",
1143
1143
  circle: "",
1144
1144
  icon: "x",
1145
1145
  size: "small",
1146
- onClick: H((r) => i.remove(d.id, I), ["stop", "prevent"]),
1146
+ onClick: H((r) => i.remove(m.id, T), ["stop", "prevent"]),
1147
1147
  onBlur: t[1] || (t[1] = (r) => s.removeConfirmIndex = null)
1148
1148
  }, null, 8, ["type", "pattern", "onClick"])) : b("", !0),
1149
1149
  p(v, {
@@ -1169,8 +1169,8 @@ function ei(e, t, n, o, s, i) {
1169
1169
  const ti = /* @__PURE__ */ D(zt, [["render", ei], ["__scopeId", "data-v-439571ca"]]), ii = {
1170
1170
  name: "ArticleUnitSelect",
1171
1171
  components: {
1172
- CDropdown: K,
1173
- CDropdownItem: Y
1172
+ CDropdown: Y,
1173
+ CDropdownItem: K
1174
1174
  },
1175
1175
  props: {
1176
1176
  modelValue: {
@@ -1219,14 +1219,14 @@ const ti = /* @__PURE__ */ D(zt, [["render", ei], ["__scopeId", "data-v-439571ca
1219
1219
  };
1220
1220
  function ni(e, t, n, o, s, i) {
1221
1221
  const f = g("CButton"), v = g("CDropdownItem"), y = g("CDropdown");
1222
- return a(), T(y, B({
1222
+ return a(), A(y, B({
1223
1223
  position: "is-bottom-left",
1224
1224
  maxHeight: "240px",
1225
1225
  ...e.$attrs
1226
1226
  }, {
1227
1227
  "model-value": n.modelValue,
1228
1228
  scrollable: "",
1229
- "onUpdate:modelValue": t[0] || (t[0] = (u) => e.$emit("update:modelValue", u))
1229
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => e.$emit("update:modelValue", d))
1230
1230
  }), {
1231
1231
  trigger: h(() => [
1232
1232
  ie(e.$slots, "default", {}, () => [
@@ -1235,14 +1235,14 @@ function ni(e, t, n, o, s, i) {
1235
1235
  pattern: "tertiary"
1236
1236
  }, {
1237
1237
  default: h(() => [
1238
- $(m(i.articleUnitLabel(n.modelValue)), 1)
1238
+ _(u(i.articleUnitLabel(n.modelValue)), 1)
1239
1239
  ]),
1240
1240
  _: 1
1241
1241
  })
1242
1242
  ], !0)
1243
1243
  ]),
1244
1244
  footer: h(() => [
1245
- n.isPublicForm ? b("", !0) : (a(), T(f, {
1245
+ n.isPublicForm ? b("", !0) : (a(), A(f, {
1246
1246
  key: 0,
1247
1247
  type: "none",
1248
1248
  pattern: "secondary",
@@ -1251,18 +1251,18 @@ function ni(e, t, n, o, s, i) {
1251
1251
  onClick: i.openEditModal
1252
1252
  }, {
1253
1253
  default: h(() => [
1254
- $(m(e.$t("_common:edit", { thing: e.$t("_common:unit_other") })), 1)
1254
+ _(u(e.$t("_common:edit", { thing: e.$t("_common:unit_other") })), 1)
1255
1255
  ]),
1256
1256
  _: 1
1257
1257
  }, 8, ["onClick"]))
1258
1258
  ]),
1259
1259
  default: h(() => [
1260
- (a(!0), c(A, null, S(i.unitItems, (u, w) => (a(), T(v, {
1261
- key: `${u}-${w}`,
1262
- value: u
1260
+ (a(!0), c(C, null, S(i.unitItems, (d, k) => (a(), A(v, {
1261
+ key: `${d}-${k}`,
1262
+ value: d
1263
1263
  }, {
1264
1264
  default: h(() => [
1265
- $(m(i.articleUnitLabel(u)), 1)
1265
+ _(u(i.articleUnitLabel(d)), 1)
1266
1266
  ]),
1267
1267
  _: 2
1268
1268
  }, 1032, ["value"]))), 128))
@@ -1274,17 +1274,17 @@ const si = /* @__PURE__ */ D(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe
1274
1274
  name: "ArticleModal",
1275
1275
  i18nOptions: {
1276
1276
  namespaces: "ArticleModal",
1277
- messages: we
1277
+ messages: Ie
1278
1278
  },
1279
1279
  components: {
1280
- ArticleAutocomplete: ke,
1280
+ ArticleAutocomplete: be,
1281
1281
  ArticleUnitSelect: si,
1282
1282
  ListModalButtons: Wt,
1283
1283
  CPriceInput: Z,
1284
- CField: ye
1284
+ CField: ke
1285
1285
  },
1286
1286
  emits: ["add", "input", "focus", "close", "open-modal", "update:currency"],
1287
- mixins: [$e],
1287
+ mixins: [Te],
1288
1288
  props: {
1289
1289
  _document: {
1290
1290
  type: Object,
@@ -1341,15 +1341,15 @@ const si = /* @__PURE__ */ D(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe
1341
1341
  },
1342
1342
  setup() {
1343
1343
  return {
1344
- v$: fe()
1344
+ v$: ye()
1345
1345
  };
1346
1346
  },
1347
- validations: Ie,
1347
+ validations: _e,
1348
1348
  data() {
1349
1349
  return {
1350
1350
  priceSuffix: St,
1351
1351
  updateData: G,
1352
- addSavedArticle: be,
1352
+ addSavedArticle: we,
1353
1353
  vatOptions: [
1354
1354
  { value: 25, translation: "25%" },
1355
1355
  { value: 12, translation: "12%" },
@@ -1580,7 +1580,7 @@ const si = /* @__PURE__ */ D(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe
1580
1580
  style: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "margin-top": "1em" }
1581
1581
  }, 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
1582
  function bi(e, t, n, o, s, i) {
1583
- const f = g("ListModalButtons"), v = g("CIcon"), y = g("ArticleAutocomplete"), u = g("CField"), w = g("CInput"), k = g("CButton"), C = g("ArticleUnitSelect"), d = g("CPriceInput"), I = U("tooltip");
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");
1584
1584
  return a(), c("div", {
1585
1585
  class: V([{
1586
1586
  "full-screen": e.mq === "sm",
@@ -1589,7 +1589,7 @@ function bi(e, t, n, o, s, i) {
1589
1589
  onClickPassive: t[15] || (t[15] = H((...r) => i.close && i.close(...r), ["self"]))
1590
1590
  }, [
1591
1591
  l("div", oi, [
1592
- e.mq !== "sm" ? (a(), T(f, {
1592
+ e.mq !== "sm" ? (a(), A(f, {
1593
1593
  key: 0,
1594
1594
  "can-forward": !!n.articleList[n.index + 1],
1595
1595
  "can-backward": !!n.articleList[n.index - 1],
@@ -1602,13 +1602,13 @@ function bi(e, t, n, o, s, i) {
1602
1602
  }, [
1603
1603
  p(v, { type: "x" })
1604
1604
  ])),
1605
- p(ze, { name: "slide" }, {
1605
+ p(je, { name: "slide" }, {
1606
1606
  default: h(() => [
1607
1607
  (a(), c("div", {
1608
1608
  key: i.article._uniqueId,
1609
1609
  class: "modal-main"
1610
1610
  }, [
1611
- p(u, {
1611
+ p(d, {
1612
1612
  validator: o.v$.article.name,
1613
1613
  messages: { maxLength: e.$t("validations.name.maxLength") },
1614
1614
  label: e.$t("name").capitalize(),
@@ -1640,14 +1640,14 @@ function bi(e, t, n, o, s, i) {
1640
1640
  _: 1
1641
1641
  }, 8, ["validator", "messages", "label"]),
1642
1642
  l("div", ri, [
1643
- p(u, {
1643
+ p(d, {
1644
1644
  label: e.$t("quantity").capitalize(),
1645
1645
  "label-position": "inside",
1646
1646
  class: "label-selector form-control form-control-left flex-grow",
1647
1647
  style: { "margin-bottom": "0" }
1648
1648
  }, {
1649
1649
  default: h(() => [
1650
- p(w, {
1650
+ p(k, {
1651
1651
  "model-value": i.article.quantity,
1652
1652
  disabled: ["openAcc", "markup"].includes(i.article.priceType),
1653
1653
  placeholder: "",
@@ -1659,18 +1659,18 @@ function bi(e, t, n, o, s, i) {
1659
1659
  ]),
1660
1660
  _: 1
1661
1661
  }, 8, ["label"]),
1662
- p(C, {
1662
+ p($, {
1663
1663
  "model-value": i.article.unitType,
1664
1664
  "is-public-form": n.viewSettings.isPublicForm,
1665
1665
  "onUpdate:modelValue": t[5] || (t[5] = (r) => i.updateArticle(r, "unitType"))
1666
1666
  }, {
1667
1667
  default: h(() => [
1668
- p(k, {
1668
+ p(w, {
1669
1669
  class: "select-css form-control form-control-right",
1670
1670
  style: { width: "8em", "box-shadow": "none" }
1671
1671
  }, {
1672
1672
  default: h(() => [
1673
- $(m(s.articleUnitLabel(i.article.unitType, {
1673
+ _(u(s.articleUnitLabel(i.article.unitType, {
1674
1674
  count: i.article.quantity
1675
1675
  })), 1)
1676
1676
  ]),
@@ -1680,16 +1680,16 @@ function bi(e, t, n, o, s, i) {
1680
1680
  _: 1
1681
1681
  }, 8, ["model-value", "is-public-form"])
1682
1682
  ]),
1683
- n.hidePriceInput ? b("", !0) : (a(), c(A, { key: 0 }, [
1683
+ n.hidePriceInput ? b("", !0) : (a(), c(C, { key: 0 }, [
1684
1684
  l("div", li, [
1685
- p(u, {
1685
+ p(d, {
1686
1686
  label: e.$t("price.price").capitalize(),
1687
1687
  "label-position": "inside",
1688
1688
  class: "label-selector form-control form-control-left flex-1",
1689
1689
  style: { "margin-bottom": "0" }
1690
1690
  }, {
1691
1691
  default: h(() => [
1692
- (a(), T(d, {
1692
+ (a(), A(m, {
1693
1693
  ref: "priceInput",
1694
1694
  key: s.priceSuffix(i.article),
1695
1695
  "model-value": i.article.price,
@@ -1711,17 +1711,17 @@ function bi(e, t, n, o, s, i) {
1711
1711
  class: "select-css form-control form-control-right",
1712
1712
  style: { width: "8em" },
1713
1713
  onClick: t[9] || (t[9] = (r) => s.setPricesIncVat = !s.setPricesIncVat)
1714
- }, m(n._document.$t(`vat.${s.setPricesIncVat ? "incVat" : "exVat"}`)), 1)) : b("", !0)
1714
+ }, u(n._document.$t(`vat.${s.setPricesIncVat ? "incVat" : "exVat"}`)), 1)) : b("", !0)
1715
1715
  ]),
1716
1716
  s.showDiscountInput ? (a(), c("div", ci, [
1717
- p(u, {
1717
+ p(d, {
1718
1718
  label: e.$t("discount").capitalize(),
1719
1719
  "label-position": "inside",
1720
1720
  class: "label-selector form-control form-control-left flex-grow",
1721
1721
  style: { "margin-bottom": "0" }
1722
1722
  }, {
1723
1723
  default: h(() => [
1724
- p(d, {
1724
+ p(m, {
1725
1725
  ref: "discountInput",
1726
1726
  "model-value": i.article.discount,
1727
1727
  currency: i.article.currency,
@@ -1734,7 +1734,7 @@ function bi(e, t, n, o, s, i) {
1734
1734
  i.article.discountType === "fixed" ? {
1735
1735
  name: "suffix",
1736
1736
  fn: h(() => [
1737
- $(m(n._document.$t(
1737
+ _(u(n._document.$t(
1738
1738
  `vat.${s.setPricesIncVat ? "incVat" : "exVat"}`
1739
1739
  )), 1)
1740
1740
  ]),
@@ -1742,7 +1742,7 @@ function bi(e, t, n, o, s, i) {
1742
1742
  } : {
1743
1743
  name: "suffix",
1744
1744
  fn: h(() => [
1745
- $(m(s.getCurrencySymbol(i.article.currency)), 1)
1745
+ _(u(s.getCurrencySymbol(i.article.currency)), 1)
1746
1746
  ]),
1747
1747
  key: "1"
1748
1748
  }
@@ -1757,11 +1757,11 @@ function bi(e, t, n, o, s, i) {
1757
1757
  i.article.discountType === "percentage" ? "fixed" : "percentage",
1758
1758
  "discountType"
1759
1759
  ))
1760
- }, m(i.article.discountType === "percentage" ? "%" : s.getCurrencySymbol(i.article.currency)), 1)
1760
+ }, u(i.article.discountType === "percentage" ? "%" : s.getCurrencySymbol(i.article.currency)), 1)
1761
1761
  ])) : b("", !0)
1762
1762
  ], 64)),
1763
1763
  l("div", di, [
1764
- i.useVat ? (a(), c(A, { key: 0 }, [
1764
+ i.useVat ? (a(), c(C, { key: 0 }, [
1765
1765
  e.feature("regionSE") && Number.isInteger(i.article.vat) ? (a(), c("select", {
1766
1766
  key: 0,
1767
1767
  value: i.article.vat,
@@ -1769,12 +1769,12 @@ function bi(e, t, n, o, s, i) {
1769
1769
  style: { display: "inline", "min-height": "initial", background: "hsl(0, 0%, 94%)", "border-color": "hsl(0, 0%, 94%)", color: "hsl(0, 0%, 30%)" },
1770
1770
  onInput: t[12] || (t[12] = (r) => i.updateArticle(Number.parseFloat(r.target.value), "vat"))
1771
1771
  }, [
1772
- (a(!0), c(A, null, S(s.vatOptions, ({ translation: r, value: P }, _) => (a(), c("option", {
1773
- key: _,
1772
+ (a(!0), c(C, null, S(s.vatOptions, ({ translation: r, value: P }, I) => (a(), c("option", {
1773
+ key: I,
1774
1774
  value: P
1775
- }, m(e.$t(`vat.${i.vatType}`)) + " " + m(r), 9, pi))), 128))
1775
+ }, u(e.$t(`vat.${i.vatType}`)) + " " + u(r), 9, pi))), 128))
1776
1776
  ], 40, ui)) : (a(), c("span", mi, [
1777
- $(m(n._document.$t("vat").capitalize()) + " ", 1),
1777
+ _(u(n._document.$t("vat").capitalize()) + " ", 1),
1778
1778
  l("input", {
1779
1779
  value: i.article.vat || 0,
1780
1780
  type: "number",
@@ -1782,29 +1782,29 @@ function bi(e, t, n, o, s, i) {
1782
1782
  onBlur: t[13] || (t[13] = (...r) => i.onCustomVatBlur && i.onCustomVatBlur(...r)),
1783
1783
  onInput: t[14] || (t[14] = (...r) => i.onCustomVatInput && i.onCustomVatInput(...r))
1784
1784
  }, null, 40, hi),
1785
- t[16] || (t[16] = $(" % "))
1785
+ t[16] || (t[16] = _(" % "))
1786
1786
  ]))
1787
1787
  ], 64)) : b("", !0),
1788
1788
  i.priceTypeOptions.length ? (a(), c("div", gi, [
1789
- (a(!0), c(A, null, S(i.priceTypeOptions, ({ label: r, value: P, onClick: _, tooltip: M }, O) => R((a(), c("div", {
1789
+ (a(!0), c(C, null, S(i.priceTypeOptions, ({ label: r, value: P, onClick: I, tooltip: M }, O) => R((a(), c("div", {
1790
1790
  key: r + O,
1791
1791
  class: V([{ active: P }, "tag-item"]),
1792
- onClick: _
1792
+ onClick: I
1793
1793
  }, [
1794
- $(m(r), 1)
1794
+ _(u(r), 1)
1795
1795
  ], 10, vi)), [
1796
- [I, {
1796
+ [T, {
1797
1797
  content: M,
1798
1798
  delay: { show: 300, hide: 0 }
1799
1799
  }]
1800
1800
  ])), 128))
1801
1801
  ])) : b("", !0),
1802
1802
  l("div", fi, [
1803
- (a(!0), c(A, null, S(i.checkboxItems, ({ label: r, value: P, onClick: _ }, M) => (a(), c("div", {
1803
+ (a(!0), c(C, null, S(i.checkboxItems, ({ label: r, value: P, onClick: I }, M) => (a(), c("div", {
1804
1804
  key: r + M,
1805
1805
  class: V([{ active: P }, "tag-item"]),
1806
- onClick: _
1807
- }, m(r), 11, yi))), 128))
1806
+ onClick: I
1807
+ }, u(r), 11, yi))), 128))
1808
1808
  ])
1809
1809
  ])
1810
1810
  ]))
@@ -1812,7 +1812,7 @@ function bi(e, t, n, o, s, i) {
1812
1812
  _: 1
1813
1813
  }),
1814
1814
  l("div", ki, [
1815
- R((a(), T(k, {
1815
+ R((a(), A(w, {
1816
1816
  type: "primary",
1817
1817
  tabindex: "0",
1818
1818
  size: "large",
@@ -1828,7 +1828,7 @@ function bi(e, t, n, o, s, i) {
1828
1828
  ]),
1829
1829
  _: 1
1830
1830
  }, 8, ["onClick"])), [
1831
- [I, {
1831
+ [T, {
1832
1832
  distance: 7,
1833
1833
  html: !0,
1834
1834
  content: `
@@ -1846,7 +1846,7 @@ function bi(e, t, n, o, s, i) {
1846
1846
  `
1847
1847
  }]
1848
1848
  ]),
1849
- p(k, {
1849
+ p(w, {
1850
1850
  size: "large",
1851
1851
  class: "flex-grow",
1852
1852
  type: "secondary",
@@ -1856,7 +1856,7 @@ function bi(e, t, n, o, s, i) {
1856
1856
  onClick: i.onSaveArticle
1857
1857
  }, {
1858
1858
  default: h(() => [
1859
- $(m(e.$t("save")), 1)
1859
+ _(u(e.$t("save")), 1)
1860
1860
  ]),
1861
1861
  _: 1
1862
1862
  }, 8, ["onClick"])
@@ -1886,7 +1886,6 @@ const wi = /* @__PURE__ */ D(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
1886
1886
  components: {
1887
1887
  Article: Ot,
1888
1888
  ArticleModal: wi,
1889
- WithDimensions: Je,
1890
1889
  Sortable: Xe
1891
1890
  },
1892
1891
  expose: ["focusLastArticle", "openLastArticle"],
@@ -1914,7 +1913,8 @@ const wi = /* @__PURE__ */ D(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
1914
1913
  }
1915
1914
  },
1916
1915
  setup() {
1917
- return { articleItem: Fe(null) };
1916
+ const e = oe("articleItem"), t = oe("container"), { width: n } = qe(t);
1917
+ return { articleItem: e, articlesWidth: n };
1918
1918
  },
1919
1919
  emits: [
1920
1920
  "input",
@@ -1970,7 +1970,7 @@ const wi = /* @__PURE__ */ D(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
1970
1970
  e || this.toggleDeductions(!1);
1971
1971
  },
1972
1972
  setPricesIncVat(e) {
1973
- this.updateArticlesVatOption(), ["extension", "widget"].includes(je.value) || this.showMessage({
1973
+ this.updateArticlesVatOption(), ["extension", "widget"].includes(Fe.value) || this.showMessage({
1974
1974
  type: "info",
1975
1975
  message: this.$t("vatOption.message", {
1976
1976
  vatOption: this.$t(`_common:vat.${e ? "incVat" : "exVat"}`, {
@@ -2007,10 +2007,10 @@ const wi = /* @__PURE__ */ D(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
2007
2007
  updateArticlesVatOption() {
2008
2008
  this.articles.forEach((e, t) => {
2009
2009
  if (e.priceType === "markup") return;
2010
- let n = j({ amount: e.price }).divide(
2010
+ let n = F({ amount: e.price }).divide(
2011
2011
  (100 + e.vat) * 0.01
2012
2012
  );
2013
- this.setPricesIncVat || (n = j({ amount: e.price }).multiply(
2013
+ this.setPricesIncVat || (n = F({ amount: e.price }).multiply(
2014
2014
  (100 + e.vat) * 0.01
2015
2015
  )), this.updateArticleObject(
2016
2016
  t,
@@ -2037,7 +2037,7 @@ const wi = /* @__PURE__ */ D(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
2037
2037
  greenRot50: "greenRot50"
2038
2038
  }, n = (o = []) => o.reduce((s, i) => ({ ...s, [i]: !1 }), {});
2039
2039
  t[e] ? this.articles.forEach((o, s) => {
2040
- const i = Object.values(ve(t, [e]));
2040
+ const i = Object.values(fe(t, [e]));
2041
2041
  if (i.some((f) => !!o[f])) {
2042
2042
  const f = { ...o, ...n(i) };
2043
2043
  this.$emit("input", { index: s, value: f });
@@ -2066,66 +2066,61 @@ const wi = /* @__PURE__ */ D(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
2066
2066
  this.$emit("move", t);
2067
2067
  }
2068
2068
  }
2069
- }, _i = {
2069
+ }, _i = { ref: "container" }, $i = {
2070
2070
  key: 0,
2071
2071
  class: "label-text"
2072
2072
  };
2073
- function $i(e, t, n, o, s, i) {
2074
- const f = g("Article"), v = g("Sortable"), y = g("WithDimensions"), u = g("ArticleModal"), w = g("Portal");
2075
- return a(), c("div", null, [
2076
- i.showVatToggle ? (a(), c("div", _i, [
2077
- $(m(e.$t("vatOption.label")) + " ", 1),
2073
+ 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
+ _(u(e.$t("vatOption.label")) + " ", 1),
2078
2078
  l("span", {
2079
2079
  onClick: t[0] || (t[0] = (k) => i.changeVat())
2080
- }, m(n._document.$t(`vat.${i.setPricesIncVat ? "incVat" : "exVat"}`)), 1)
2080
+ }, u(n._document.$t(`vat.${i.setPricesIncVat ? "incVat" : "exVat"}`)), 1)
2081
2081
  ])) : b("", !0),
2082
- p(y, null, {
2083
- default: h(({ width: k }) => [
2084
- p(v, {
2085
- "item-key": "_uniqueId",
2086
- options: {
2087
- group: "articles",
2088
- sort: !0,
2089
- animation: 150,
2090
- ghostClass: "article-ghost",
2091
- handle: ".article-draggable-handle",
2092
- onAdd: i.onAdd,
2093
- onRemove: i.onRemove,
2094
- onUpdate: i.onUpdate
2095
- },
2096
- list: n.articles,
2097
- style: { "min-height": "calc(3 * var(--rem))" }
2098
- }, {
2099
- item: h(({ item: C, index: d }) => [
2100
- p(f, {
2101
- ref: "articleItem",
2102
- value: C,
2103
- width: k,
2104
- "hide-price-input": e.hidePriceInput,
2105
- "hide-price-on-new": e.hidePriceOnNew,
2106
- "is-inc-vat": i.setPricesIncVat,
2107
- "hide-controls": n.hideControls,
2108
- "root-price-type": n.rootPriceType,
2109
- "active-house-work-type": n.activeHouseWorkType,
2110
- class: "article-item",
2111
- "onUpdate:currency": t[1] || (t[1] = (I) => e.$emit("update:currency", I)),
2112
- onInput: (I) => i.updateArticleObject(d, I),
2113
- onFocus: t[2] || (t[2] = (I) => e.$emit("focus")),
2114
- onRemove: (I) => i.onRemoveArticle(d),
2115
- onOpenModal: (I) => i.openModal(d, I),
2116
- onAdd: (I) => d === i.articlesWithTotal.length - 1 ? e.$emit("add") : null,
2117
- onSelect: (I) => d === i.articlesWithTotal.length - 1 ? e.$emit("add") : null,
2118
- onEsc: (I) => i.onEsc(d, C)
2119
- }, 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"])
2120
- ]),
2121
- _: 2
2122
- }, 1032, ["options", "list"])
2082
+ p(v, {
2083
+ "item-key": "_uniqueId",
2084
+ options: {
2085
+ group: "articles",
2086
+ sort: !0,
2087
+ animation: 150,
2088
+ ghostClass: "article-ghost",
2089
+ handle: ".article-draggable-handle",
2090
+ onAdd: i.onAdd,
2091
+ onRemove: i.onRemove,
2092
+ onUpdate: i.onUpdate
2093
+ },
2094
+ list: n.articles,
2095
+ style: { "min-height": "calc(3 * var(--rem))" }
2096
+ }, {
2097
+ item: h(({ item: k, index: w }) => [
2098
+ p(f, {
2099
+ ref: "articleItem",
2100
+ value: k,
2101
+ width: o.articlesWidth,
2102
+ "hide-price-input": e.hidePriceInput,
2103
+ "hide-price-on-new": e.hidePriceOnNew,
2104
+ "is-inc-vat": i.setPricesIncVat,
2105
+ "hide-controls": n.hideControls,
2106
+ "root-price-type": n.rootPriceType,
2107
+ "active-house-work-type": n.activeHouseWorkType,
2108
+ 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)
2117
+ }, 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"])
2123
2118
  ]),
2124
2119
  _: 1
2125
- }),
2126
- p(w, { to: "modal" }, {
2120
+ }, 8, ["options", "list"]),
2121
+ p(d, { to: "modal" }, {
2127
2122
  default: h(() => [
2128
- s.showModal && i.articlesWithTotal[s.selectedIndex] ? (a(), T(u, {
2123
+ s.showModal && i.articlesWithTotal[s.selectedIndex] ? (a(), A(y, {
2129
2124
  key: 0,
2130
2125
  ref: "articleModal",
2131
2126
  _document: n._document,
@@ -2147,9 +2142,9 @@ function $i(e, t, n, o, s, i) {
2147
2142
  ]),
2148
2143
  _: 1
2149
2144
  })
2150
- ]);
2145
+ ], 512);
2151
2146
  }
2152
- const Ti = /* @__PURE__ */ D(Ii, [["render", $i], ["__scopeId", "data-v-76a7d87c"]]), Ai = {
2147
+ const Ai = /* @__PURE__ */ D(Ii, [["render", Ti], ["__scopeId", "data-v-8ab60481"]]), Ci = {
2153
2148
  name: "MaxTotalInput",
2154
2149
  i18nOptions: {
2155
2150
  namespaces: "MaxTotalInput",
@@ -2192,18 +2187,18 @@ const Ti = /* @__PURE__ */ D(Ii, [["render", $i], ["__scopeId", "data-v-76a7d87c
2192
2187
  },
2193
2188
  watch: {
2194
2189
  isIncVat(e) {
2195
- let t = j({ amount: this.modelValue }).divide(
2190
+ let t = F({ amount: this.modelValue }).divide(
2196
2191
  1.25
2197
2192
  );
2198
- e || (t = j({ amount: this.modelValue }).multiply(
2193
+ e || (t = F({ amount: this.modelValue }).multiply(
2199
2194
  125 * 0.01
2200
2195
  )), this.$emit("update:modelValue", t.getAmount());
2201
2196
  }
2202
2197
  }
2203
- }, Ci = { class: "flex w-full justify-end" };
2204
- function Pi(e, t, n, o, s, i) {
2198
+ }, Pi = { class: "flex w-full justify-end" };
2199
+ function xi(e, t, n, o, s, i) {
2205
2200
  const f = g("CPriceInput");
2206
- return a(), c("div", Ci, [
2201
+ return a(), c("div", Pi, [
2207
2202
  p(f, {
2208
2203
  "model-value": n.modelValue,
2209
2204
  currency: n.currency,
@@ -2217,10 +2212,10 @@ function Pi(e, t, n, o, s, i) {
2217
2212
  "onUpdate:modelValue": t[0] || (t[0] = (v) => e.$emit("update:modelValue", v))
2218
2213
  }, {
2219
2214
  prefix: h(() => [
2220
- $(m(e.$t("price.maxPrice").capitalize()), 1)
2215
+ _(u(e.$t("price.maxPrice").capitalize()), 1)
2221
2216
  ]),
2222
2217
  suffix: h(() => [
2223
- l("span", null, m(s.getCurrencySymbol(n.currency)) + " " + m(e.$t(`vat.${e.isIncVat ? "incVat" : "exVat"}`, {
2218
+ l("span", null, u(s.getCurrencySymbol(n.currency)) + " " + u(e.$t(`vat.${e.isIncVat ? "incVat" : "exVat"}`, {
2224
2219
  thing: e.$t(`vat.${n.vatType}`)
2225
2220
  })), 1)
2226
2221
  ]),
@@ -2228,10 +2223,10 @@ function Pi(e, t, n, o, s, i) {
2228
2223
  }, 8, ["model-value", "currency", "is-inc-vat", "placeholder"])
2229
2224
  ]);
2230
2225
  }
2231
- const xi = /* @__PURE__ */ D(Ai, [["render", Pi]]), Vi = {
2226
+ const Vi = /* @__PURE__ */ D(Ci, [["render", xi]]), Si = {
2232
2227
  components: {
2233
- CDropdown: K,
2234
- CDropdownItem: Y
2228
+ CDropdown: Y,
2229
+ CDropdownItem: K
2235
2230
  },
2236
2231
  props: {
2237
2232
  modelValue: {
@@ -2245,29 +2240,29 @@ const xi = /* @__PURE__ */ D(Ai, [["render", Pi]]), Vi = {
2245
2240
  priceTypeOptions: ["fixed", "approx", "openAcc", "openAccMaxPrice"]
2246
2241
  };
2247
2242
  }
2248
- }, Si = { class: "flex justify-end" };
2249
- function Di(e, t, n, o, s, i) {
2243
+ }, Di = { class: "flex justify-end" };
2244
+ function Mi(e, t, n, o, s, i) {
2250
2245
  const f = g("CButton"), v = g("CDropdownItem"), y = g("CDropdown");
2251
- return a(), c("div", Si, [
2246
+ return a(), c("div", Di, [
2252
2247
  p(y, { "model-value": n.modelValue }, {
2253
2248
  trigger: h(() => [
2254
2249
  p(f, { class: "price-type-button" }, {
2255
2250
  default: h(() => [
2256
- $(m(e.$t("price.pricing").capitalize()) + ": ", 1),
2257
- l("span", null, m(e.$t(`price.${n.modelValue}`)), 1)
2251
+ _(u(e.$t("price.pricing").capitalize()) + ": ", 1),
2252
+ l("span", null, u(e.$t(`price.${n.modelValue}`)), 1)
2258
2253
  ]),
2259
2254
  _: 1
2260
2255
  })
2261
2256
  ]),
2262
2257
  default: h(() => [
2263
- (a(!0), c(A, null, S(s.priceTypeOptions, (u) => (a(), T(v, {
2264
- key: u,
2265
- value: u,
2258
+ (a(!0), c(C, null, S(s.priceTypeOptions, (d) => (a(), A(v, {
2259
+ key: d,
2260
+ value: d,
2266
2261
  class: "text-right",
2267
- onClick: (w) => e.$emit("update:modelValue", u)
2262
+ onClick: (k) => e.$emit("update:modelValue", d)
2268
2263
  }, {
2269
2264
  default: h(() => [
2270
- $(m(e.$t(`price.${u}`)), 1)
2265
+ _(u(e.$t(`price.${d}`)), 1)
2271
2266
  ]),
2272
2267
  _: 2
2273
2268
  }, 1032, ["value", "onClick"]))), 128))
@@ -2276,7 +2271,7 @@ function Di(e, t, n, o, s, i) {
2276
2271
  }, 8, ["model-value"])
2277
2272
  ]);
2278
2273
  }
2279
- const Mi = /* @__PURE__ */ D(Vi, [["render", Di], ["__scopeId", "data-v-26c5da6c"]]), Ri = {
2274
+ const Ri = /* @__PURE__ */ D(Si, [["render", Mi], ["__scopeId", "data-v-26c5da6c"]]), Li = {
2280
2275
  name: "EditDeduction",
2281
2276
  components: {
2282
2277
  CPriceInput: Z
@@ -2314,13 +2309,13 @@ const Mi = /* @__PURE__ */ D(Vi, [["render", Di], ["__scopeId", "data-v-26c5da6c
2314
2309
  },
2315
2310
  methods: {
2316
2311
  setDeduction(e) {
2317
- this.internalValue = j({ amount: this.total }).multiply(e).getAmount();
2312
+ this.internalValue = F({ amount: this.total }).multiply(e).getAmount();
2318
2313
  },
2319
2314
  showModal() {
2320
2315
  this.internalValue = this.houseWorkAmount, this.$modal.show(this.modalName);
2321
2316
  }
2322
2317
  }
2323
- }, Li = { class: "deduction-modal flex w-full flex-col items-center justify-between rounded-lg" }, Oi = { style: { "font-size": "calc(calc(1 * var(--rem)) + 2px)", "font-weight": "800", "text-align": "center", "margin-bottom": "calc(1.5 * var(--rem))" } }, Ei = { style: { "margin-bottom": "calc(1 * var(--rem))", width: "100%" } }, Ui = { class: "flex w-full flex-wrap justify-center gap-2" }, Bi = ["onClick"], Wi = {
2318
+ }, 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 = {
2324
2319
  style: { "margin-right": "0.5em" },
2325
2320
  viewBox: "0 0 24 24",
2326
2321
  width: "12",
@@ -2332,8 +2327,8 @@ const Mi = /* @__PURE__ */ D(Vi, [["render", Di], ["__scopeId", "data-v-26c5da6c
2332
2327
  "stroke-linejoin": "round",
2333
2328
  class: "css-i6dzq1"
2334
2329
  };
2335
- function zi(e, t, n, o, s, i) {
2336
- const f = g("CPriceInput"), v = g("CButton"), y = g("modal"), u = g("portal");
2330
+ function qi(e, t, n, o, s, i) {
2331
+ const f = g("CPriceInput"), v = g("CButton"), y = g("modal"), d = g("portal");
2337
2332
  return a(), c("div", null, [
2338
2333
  p(y, B({
2339
2334
  adaptive: !0,
@@ -2343,14 +2338,12 @@ function zi(e, t, n, o, s, i) {
2343
2338
  classes: "primary"
2344
2339
  }, { name: s.modalName }), {
2345
2340
  default: h(() => [
2346
- l("div", Li, [
2347
- l("div", Oi, m(e.$t("deduction.manualType", {
2348
- type: e.$t(`deduction.${n.houseWorkType}`)
2349
- })), 1),
2350
- l("div", Ei, [
2341
+ l("div", Oi, [
2342
+ l("div", Ei, u(e.$t("manualDeduction")), 1),
2343
+ l("div", Ui, [
2351
2344
  p(f, {
2352
2345
  modelValue: s.internalValue,
2353
- "onUpdate:modelValue": t[0] || (t[0] = (w) => s.internalValue = w),
2346
+ "onUpdate:modelValue": t[0] || (t[0] = (k) => s.internalValue = k),
2354
2347
  modelModifiers: { number: !0 },
2355
2348
  currency: "SEK",
2356
2349
  placeholder: e.$t("enterThing", { thing: e.$t("deduction.deduction") }),
@@ -2359,27 +2352,29 @@ function zi(e, t, n, o, s, i) {
2359
2352
  "suffix-class": "text-gray-400"
2360
2353
  }, {
2361
2354
  suffix: h(() => [
2362
- $(m(e.$t("currency.SEK")), 1)
2355
+ _(u(e.$t("currency.SEK")), 1)
2363
2356
  ]),
2364
2357
  _: 1
2365
2358
  }, 8, ["modelValue", "placeholder"])
2366
2359
  ]),
2367
- l("div", Ui, [
2368
- (a(), c(A, null, S([
2369
- { v: 0.09, l: "9%" },
2370
- { v: 0.105, l: "10.5%" },
2360
+ l("div", Bi, u(e.$t("standardDeduction")), 1),
2361
+ l("div", Wi, u(e.$t("standardDeductionMessage")), 1),
2362
+ l("div", zi, [
2363
+ (a(), c(C, null, S([
2371
2364
  { v: 0.1455, l: "14.55%" },
2365
+ { v: 0.15, l: "15%" },
2366
+ { v: 0.175, l: "17.5%" },
2372
2367
  { v: 0.194, l: "19.4%" },
2373
2368
  { v: 0.21, l: "21%" },
2374
2369
  { v: 0.485, l: "48.5%" },
2375
2370
  { v: 0.5, l: "50%" }
2376
- ], (w) => l("div", {
2377
- key: w.l,
2371
+ ], (k) => l("div", {
2372
+ key: k.l,
2378
2373
  class: V([{
2379
- active: Math.round(n.total * w.v * 0.01) * 100 === s.internalValue
2374
+ active: Math.round(n.total * k.v * 0.01) * 100 === s.internalValue
2380
2375
  }, "deduction-button"]),
2381
- onClick: (k) => i.setDeduction(w.v)
2382
- }, m(w.l), 11, Bi)), 64))
2376
+ onClick: (w) => i.setDeduction(k.v)
2377
+ }, u(k.l), 11, ji)), 64))
2383
2378
  ]),
2384
2379
  p(v, {
2385
2380
  type: "secondary",
@@ -2390,7 +2385,7 @@ function zi(e, t, n, o, s, i) {
2390
2385
  })
2391
2386
  }, {
2392
2387
  default: h(() => [
2393
- $(m(e.$t("save")), 1)
2388
+ _(u(e.$t("save")), 1)
2394
2389
  ]),
2395
2390
  _: 1
2396
2391
  }),
@@ -2404,7 +2399,7 @@ function zi(e, t, n, o, s, i) {
2404
2399
  })
2405
2400
  }, {
2406
2401
  default: h(() => [
2407
- $(m(e.$t("reset")), 1)
2402
+ _(u(e.$t("reset")), 1)
2408
2403
  ]),
2409
2404
  _: 1
2410
2405
  })
@@ -2412,7 +2407,7 @@ function zi(e, t, n, o, s, i) {
2412
2407
  ]),
2413
2408
  _: 1
2414
2409
  }, 16, ["name"]),
2415
- e.houseWorkManualAmount ? (a(), T(u, {
2410
+ e.houseWorkManualAmount ? (a(), A(d, {
2416
2411
  key: 0,
2417
2412
  order: 2,
2418
2413
  to: "document-nav-bottom"
@@ -2420,9 +2415,9 @@ function zi(e, t, n, o, s, i) {
2420
2415
  default: h(() => [
2421
2416
  l("div", {
2422
2417
  class: "housework-manual-nav",
2423
- onClick: t[3] || (t[3] = (w) => e.$modal.show(s.modalName))
2418
+ onClick: t[3] || (t[3] = (k) => e.$modal.show(s.modalName))
2424
2419
  }, [
2425
- (a(), c("svg", Wi, t[4] || (t[4] = [
2420
+ (a(), c("svg", Fi, t[4] || (t[4] = [
2426
2421
  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),
2427
2422
  l("line", {
2428
2423
  x1: "12",
@@ -2437,17 +2432,17 @@ function zi(e, t, n, o, s, i) {
2437
2432
  y2: "17"
2438
2433
  }, null, -1)
2439
2434
  ]))),
2440
- $(" " + m(e.$t("deduction.manualType", { type: e.$t(`deduction.${n.houseWorkType}`) })) + " " + m(e.$t("using")), 1)
2435
+ _(" " + u(e.$t("deduction.manualType", { type: e.$t(`deduction.${n.houseWorkType}`) })) + " " + u(e.$t("using")), 1)
2441
2436
  ])
2442
2437
  ]),
2443
2438
  _: 1
2444
2439
  })) : b("", !0)
2445
2440
  ]);
2446
2441
  }
2447
- const Fi = /* @__PURE__ */ D(Ri, [["render", zi], ["__scopeId", "data-v-5de18d7b"]]), ji = {
2442
+ const Ni = /* @__PURE__ */ D(Li, [["render", qi], ["__scopeId", "data-v-b12680ea"]]), Hi = {
2448
2443
  name: "Pricing",
2449
2444
  components: {
2450
- EditDeduction: Fi
2445
+ EditDeduction: Ni
2451
2446
  },
2452
2447
  props: {
2453
2448
  _document: {
@@ -2545,15 +2540,15 @@ const Fi = /* @__PURE__ */ D(Ri, [["render", zi], ["__scopeId", "data-v-5de18d7b
2545
2540
  return !!x(this.prices, "region.houseWorkType", !1) || !!x(this.prices, "region.houseWorkManualAmount", !1);
2546
2541
  }
2547
2542
  }
2548
- }, qi = { class: "price-bubble" }, Ni = { class: "flex w-full items-center justify-between" }, Hi = { class: "price-label" }, Gi = {
2543
+ }, Gi = { class: "price-bubble" }, Ki = { class: "flex w-full items-center justify-between" }, Yi = { class: "price-label" }, Zi = {
2549
2544
  key: 0,
2550
2545
  class: "pricing-sub-label"
2551
- }, Ki = ["onClick"], Yi = { class: "price-value" };
2552
- function Zi(e, t, n, o, s, i) {
2546
+ }, Ji = ["onClick"], Qi = { class: "price-value" };
2547
+ function Xi(e, t, n, o, s, i) {
2553
2548
  const f = g("EditDeduction"), v = U("tooltip");
2554
- return a(), c("div", qi, [
2555
- l("div", Ni, [
2556
- i.showHouseWork ? (a(), T(f, {
2549
+ return a(), c("div", Gi, [
2550
+ l("div", Ki, [
2551
+ i.showHouseWork ? (a(), A(f, {
2557
2552
  key: 0,
2558
2553
  ref: "deduction",
2559
2554
  disabled: !s.get(i.prices, "region.houseWorkType", !1),
@@ -2568,17 +2563,17 @@ function Zi(e, t, n, o, s, i) {
2568
2563
  }, null, 8, ["disabled", "_document", "_value", "house-work-type", "house-work-amount", "total"])) : b("", !0)
2569
2564
  ]),
2570
2565
  l("div", null, [
2571
- (a(!0), c(A, null, S(i.priceArray, (y, u) => (a(), c("div", {
2572
- key: u,
2566
+ (a(!0), c(C, null, S(i.priceArray, (y, d) => (a(), c("div", {
2567
+ key: d,
2573
2568
  class: V([[y.classList || ""], "price-row flex w-full justify-between"])
2574
2569
  }, [
2575
- l("div", Hi, [
2576
- $(m(y.label.capitalize()) + " ", 1),
2577
- y.subLabel ? (a(), c("span", Gi, m(y.subLabel), 1)) : b("", !0),
2570
+ l("div", Yi, [
2571
+ _(u(y.label.capitalize()) + " ", 1),
2572
+ y.subLabel ? (a(), c("span", Zi, u(y.subLabel), 1)) : b("", !0),
2578
2573
  y.action ? R((a(), c("span", {
2579
2574
  key: 1,
2580
2575
  class: "pricing-action",
2581
- onClick: (w) => y.action ? y.action() : null
2576
+ onClick: (k) => y.action ? y.action() : null
2582
2577
  }, t[1] || (t[1] = [
2583
2578
  l("svg", {
2584
2579
  viewBox: "0 0 24 24",
@@ -2593,16 +2588,16 @@ function Zi(e, t, n, o, s, i) {
2593
2588
  l("path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
2594
2589
  l("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })
2595
2590
  ], -1)
2596
- ]), 8, Ki)), [
2591
+ ]), 8, Ji)), [
2597
2592
  [v, e.$t("edit", { thing: e.$t("deduction.deduction") })]
2598
2593
  ]) : b("", !0)
2599
2594
  ]),
2600
- l("div", Yi, m(y.prefix) + " " + m(y.value), 1)
2595
+ l("div", Qi, u(y.prefix) + " " + u(y.value), 1)
2601
2596
  ], 2))), 128))
2602
2597
  ])
2603
2598
  ]);
2604
2599
  }
2605
- const Ji = /* @__PURE__ */ D(ji, [["render", Zi], ["__scopeId", "data-v-90384cd6"]]), Qi = {
2600
+ const en = /* @__PURE__ */ D(Hi, [["render", Xi], ["__scopeId", "data-v-90384cd6"]]), tn = {
2606
2601
  name: "PackageItemEdit",
2607
2602
  i18nOptions: {
2608
2603
  namespaces: "PackageItemEdit",
@@ -2630,13 +2625,13 @@ const Ji = /* @__PURE__ */ D(ji, [["render", Zi], ["__scopeId", "data-v-90384cd6
2630
2625
  }
2631
2626
  },
2632
2627
  components: {
2633
- ArticleList: Ti,
2634
- PriceFormAlternatives: Mi,
2635
- MaxTotalInput: xi,
2636
- Pricing: Ji,
2628
+ ArticleList: Ai,
2629
+ PriceFormAlternatives: Ri,
2630
+ MaxTotalInput: Vi,
2631
+ Pricing: en,
2637
2632
  TextEditor: Qe,
2638
- CDropdown: K,
2639
- CDropdownItem: Y
2633
+ CDropdown: Y,
2634
+ CDropdownItem: K
2640
2635
  },
2641
2636
  emits: [
2642
2637
  "move",
@@ -2700,14 +2695,14 @@ const Ji = /* @__PURE__ */ D(ji, [["render", Zi], ["__scopeId", "data-v-90384cd6
2700
2695
  },
2701
2696
  internalDescription: {
2702
2697
  get() {
2703
- return qe(
2698
+ return Ke(
2704
2699
  this.description,
2705
2700
  this._document.textTemplateMap,
2706
2701
  this._document._doc
2707
2702
  );
2708
2703
  },
2709
2704
  set(e) {
2710
- this.description = Ne(e);
2705
+ this.description = Ge(e);
2711
2706
  }
2712
2707
  }
2713
2708
  },
@@ -2761,7 +2756,7 @@ const Ji = /* @__PURE__ */ D(ji, [["render", Zi], ["__scopeId", "data-v-90384cd6
2761
2756
  this.createEmptyArticle(), e ? this.$refs.articleList.openLastArticle() : this.$refs.articleList.focusLastArticle();
2762
2757
  },
2763
2758
  onInsert({ index: e, value: t }) {
2764
- const n = Ge(this.mappedPackageArticles).add(
2759
+ const n = Ne(this.mappedPackageArticles).add(
2765
2760
  { ...t, packageId: this.packageId },
2766
2761
  e
2767
2762
  );
@@ -2791,13 +2786,13 @@ const Ji = /* @__PURE__ */ D(ji, [["render", Zi], ["__scopeId", "data-v-90384cd6
2791
2786
  });
2792
2787
  }
2793
2788
  }
2794
- }, Xi = { class: "min-h-0 rounded-md border border-gray-200 bg-white text-black" }, en = { class: "flex w-full items-center justify-between bg-gray-100 py-1 pl-4 pr-1 text-sm font-medium text-gray-600" }, tn = { class: "p-4" }, nn = { class: "mb-0.5 flex items-center" }, sn = ["id", "placeholder"], an = { class: "mt-2 flex gap-2" };
2795
- function on(e, t, n, o, s, i) {
2796
- const f = g("CButton"), v = g("CDropdownItem"), y = g("CDropdown"), u = g("TextEditor"), w = g("MaxTotalInput"), k = g("PriceFormAlternatives"), C = g("ArticleList"), d = g("CIcon"), I = g("Pricing"), r = U("tooltip"), P = U("click-outside");
2797
- return a(), c("div", Xi, [
2798
- l("div", en, [
2799
- l("div", null, m(n.type === "single" ? e.$t("single") : n.type === "radio" || n.toggable ? e.$t("option") : e.$t("base")), 1),
2800
- n.type !== "single" ? (a(), T(y, {
2789
+ }, 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" };
2790
+ function cn(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", nn, [
2793
+ l("div", sn, [
2794
+ l("div", null, u(n.type === "single" ? e.$t("single") : n.type === "radio" || n.toggable ? e.$t("option") : e.$t("base")), 1),
2795
+ n.type !== "single" ? (a(), A(y, {
2801
2796
  key: 0,
2802
2797
  class: "ml-4"
2803
2798
  }, {
@@ -2809,21 +2804,21 @@ function on(e, t, n, o, s, i) {
2809
2804
  class: "is-thinner opacity-70"
2810
2805
  }, {
2811
2806
  default: h(() => [
2812
- $(m(e.$t("_common:change")), 1)
2807
+ _(u(e.$t("_common:change")), 1)
2813
2808
  ]),
2814
2809
  _: 1
2815
2810
  })
2816
2811
  ]),
2817
2812
  default: h(() => [
2818
- n.toggable ? (a(), c(A, { key: 0 }, [
2813
+ n.toggable ? (a(), c(C, { key: 0 }, [
2819
2814
  p(v, {
2820
2815
  value: e.isSelectedDefault,
2821
2816
  toggle: !0,
2822
2817
  "close-on-click": !1,
2823
- onClick: t[0] || (t[0] = (_) => e.$emit("update:isSelectedDefault", !e.isSelectedDefault))
2818
+ onClick: t[0] || (t[0] = (I) => e.$emit("update:isSelectedDefault", !e.isSelectedDefault))
2824
2819
  }, {
2825
2820
  default: h(() => [
2826
- $(m(e.$t("selected")), 1)
2821
+ _(u(e.$t("selected")), 1)
2827
2822
  ]),
2828
2823
  _: 1
2829
2824
  }, 8, ["value"]),
@@ -2832,20 +2827,20 @@ function on(e, t, n, o, s, i) {
2832
2827
  p(v, {
2833
2828
  "icon-left": "arrow-up",
2834
2829
  disabled: !n.moveOptions.up,
2835
- onClick: t[1] || (t[1] = (_) => e.$emit("move", -1))
2830
+ onClick: t[1] || (t[1] = (I) => e.$emit("move", -1))
2836
2831
  }, {
2837
2832
  default: h(() => [
2838
- $(m(e.$t("_common:move", { thing: e.$t("_common:up") })), 1)
2833
+ _(u(e.$t("_common:move", { thing: e.$t("_common:up") })), 1)
2839
2834
  ]),
2840
2835
  _: 1
2841
2836
  }, 8, ["disabled"]),
2842
2837
  p(v, {
2843
2838
  "icon-left": "arrow-down",
2844
2839
  disabled: !n.moveOptions.down,
2845
- onClick: t[2] || (t[2] = (_) => e.$emit("move", 1))
2840
+ onClick: t[2] || (t[2] = (I) => e.$emit("move", 1))
2846
2841
  }, {
2847
2842
  default: h(() => [
2848
- $(m(e.$t("_common:move", { thing: e.$t("_common:down") })), 1)
2843
+ _(u(e.$t("_common:move", { thing: e.$t("_common:down") })), 1)
2849
2844
  ]),
2850
2845
  _: 1
2851
2846
  }, 8, ["disabled"]),
@@ -2857,7 +2852,7 @@ function on(e, t, n, o, s, i) {
2857
2852
  onClick: i.onRemove
2858
2853
  }, {
2859
2854
  default: h(() => [
2860
- $(m(e.$t("_common:remove")), 1)
2855
+ _(u(e.$t("_common:remove")), 1)
2861
2856
  ]),
2862
2857
  _: 1
2863
2858
  }, 8, ["onClick"])
@@ -2865,46 +2860,46 @@ function on(e, t, n, o, s, i) {
2865
2860
  _: 1
2866
2861
  })) : b("", !0)
2867
2862
  ]),
2868
- l("div", tn, [
2869
- l("div", nn, [
2863
+ l("div", an, [
2864
+ l("div", on, [
2870
2865
  R(l("input", {
2871
2866
  id: `package-name-${n.packageId}`,
2872
- "onUpdate:modelValue": t[3] || (t[3] = (_) => e.name = _),
2867
+ "onUpdate:modelValue": t[3] || (t[3] = (I) => e.name = I),
2873
2868
  placeholder: e.$t("namePlaceholder"),
2874
2869
  class: "block w-full rounded-lg p-0 text-xl font-bold leading-loose placeholder:text-gray-400",
2875
- onKeyup: t[4] || (t[4] = F((_) => e.$refs.editor.focus(), ["enter"]))
2876
- }, null, 40, sn), [
2877
- [Ke, e.name]
2870
+ onKeyup: t[4] || (t[4] = j((I) => e.$refs.editor.focus(), ["enter"]))
2871
+ }, null, 40, rn), [
2872
+ [Ye, e.name]
2878
2873
  ])
2879
2874
  ]),
2880
- p(u, {
2875
+ p(d, {
2881
2876
  ref: "editor",
2882
2877
  modelValue: i.internalDescription,
2883
- "onUpdate:modelValue": t[5] || (t[5] = (_) => i.internalDescription = _),
2878
+ "onUpdate:modelValue": t[5] || (t[5] = (I) => i.internalDescription = I),
2884
2879
  placeholder: e.$t("textPlaceholder"),
2885
2880
  mentions: () => e._document.textTemplateItems,
2886
2881
  class: "text-editor mb-4"
2887
2882
  }, null, 8, ["modelValue", "placeholder", "mentions"]),
2888
2883
  R((a(), c("div", {
2889
- onMouseoverPassive: t[15] || (t[15] = (_) => s.isHover = !0),
2890
- onMouseleavePassive: t[16] || (t[16] = (_) => s.isHover = !1)
2884
+ onMouseoverPassive: t[15] || (t[15] = (I) => s.isHover = !0),
2885
+ onMouseleavePassive: t[16] || (t[16] = (I) => s.isHover = !1)
2891
2886
  }, [
2892
- e.priceType === "openAccMaxPrice" ? (a(), T(w, {
2887
+ e.priceType === "openAccMaxPrice" ? (a(), A(k, {
2893
2888
  key: 0,
2894
2889
  modelValue: e.maxTotal,
2895
- "onUpdate:modelValue": t[6] || (t[6] = (_) => e.maxTotal = _),
2890
+ "onUpdate:modelValue": t[6] || (t[6] = (I) => e.maxTotal = I),
2896
2891
  currency: e.currency,
2897
2892
  "vat-type": e._document.vatType,
2898
2893
  class: "mb-4"
2899
2894
  }, null, 8, ["modelValue", "currency", "vat-type"])) : b("", !0),
2900
- p(k, {
2895
+ p(w, {
2901
2896
  modelValue: e.priceType,
2902
2897
  "onUpdate:modelValue": [
2903
- t[7] || (t[7] = (_) => e.priceType = _),
2904
- t[8] || (t[8] = (_) => e.$emit("update:priceType", _))
2898
+ t[7] || (t[7] = (I) => e.priceType = I),
2899
+ t[8] || (t[8] = (I) => e.$emit("update:priceType", I))
2905
2900
  ]
2906
2901
  }, null, 8, ["modelValue"]),
2907
- p(C, {
2902
+ p($, {
2908
2903
  ref: "articleList",
2909
2904
  _document: e._document,
2910
2905
  articles: i.mappedPackageArticles,
@@ -2912,32 +2907,32 @@ function on(e, t, n, o, s, i) {
2912
2907
  "active-house-work-type": n.activeHouseWorkType,
2913
2908
  "hide-controls": !s.isFocus && !s.isHover,
2914
2909
  onInput: i.onArticleInput,
2915
- "onUpdate:setPricesIncVat": t[9] || (t[9] = (_) => e.$emit("update:setPricesIncVat", _)),
2916
- "onUpdate:currency": t[10] || (t[10] = (_) => e.$emit("update:currency", _)),
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)),
2917
2912
  onMove: i.onArticleMove,
2918
2913
  onRemove: i.onArticleRemove,
2919
2914
  onAdd: i.onArticleAdd,
2920
- onFocus: t[11] || (t[11] = (_) => s.isFocus = !0),
2915
+ onFocus: t[11] || (t[11] = (I) => s.isFocus = !0),
2921
2916
  onInsert: i.onInsert
2922
2917
  }, null, 8, ["_document", "articles", "root-price-type", "active-house-work-type", "hide-controls", "onInput", "onMove", "onRemove", "onAdd", "onInsert"]),
2923
- l("div", an, [
2918
+ l("div", ln, [
2924
2919
  l("div", {
2925
2920
  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",
2926
- onClick: t[12] || (t[12] = (_) => i.onArticleAdd())
2921
+ onClick: t[12] || (t[12] = (I) => i.onArticleAdd())
2927
2922
  }, [
2928
- p(d, {
2923
+ p(m, {
2929
2924
  type: "plus",
2930
2925
  size: "16",
2931
2926
  "stroke-width": "3",
2932
2927
  class: "mr-1"
2933
2928
  }),
2934
- $(" " + m(e.$t("addButton")), 1)
2929
+ _(" " + u(e.$t("addButton")), 1)
2935
2930
  ]),
2936
2931
  R((a(), c("div", {
2937
2932
  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",
2938
- onClick: t[13] || (t[13] = (_) => i.onArticleAdd({ openModal: !0 }))
2933
+ onClick: t[13] || (t[13] = (I) => i.onArticleAdd({ openModal: !0 }))
2939
2934
  }, [
2940
- p(d, {
2935
+ p(m, {
2941
2936
  type: "zap",
2942
2937
  size: "16",
2943
2938
  "stroke-width": "2.5"
@@ -2949,11 +2944,11 @@ function on(e, t, n, o, s, i) {
2949
2944
  }]
2950
2945
  ])
2951
2946
  ]),
2952
- p(I, {
2947
+ p(T, {
2953
2948
  _document: e._document,
2954
2949
  "base-path": `${e._value.basePath}`,
2955
2950
  "package-id": n.packageId,
2956
- onInput: t[14] || (t[14] = (_) => e.$emit("input", _))
2951
+ onInput: t[14] || (t[14] = (I) => e.$emit("input", I))
2957
2952
  }, null, 8, ["_document", "base-path", "package-id"])
2958
2953
  ], 32)), [
2959
2954
  [
@@ -2966,12 +2961,12 @@ function on(e, t, n, o, s, i) {
2966
2961
  ])
2967
2962
  ]);
2968
2963
  }
2969
- const rn = /* @__PURE__ */ D(Qi, [["render", on], ["__scopeId", "data-v-64642fe7"]]), ln = (e) => (e || []).slice(0, 1).map((t) => ({
2964
+ const dn = /* @__PURE__ */ D(tn, [["render", cn], ["__scopeId", "data-v-64642fe7"]]), un = (e) => (e || []).slice(0, 1).map((t) => ({
2970
2965
  ...t,
2971
2966
  isSelected: !0,
2972
2967
  isSelectedDefault: !0,
2973
2968
  toggable: !1
2974
- })), cn = (e) => {
2969
+ })), pn = (e) => {
2975
2970
  const t = x(e, "0.data.prices.type") || "fixed";
2976
2971
  return (e || []).map((n, o) => ({
2977
2972
  ...n,
@@ -2989,7 +2984,7 @@ const rn = /* @__PURE__ */ D(Qi, [["render", on], ["__scopeId", "data-v-64642fe7
2989
2984
  }
2990
2985
  }
2991
2986
  }));
2992
- }, dn = (e = []) => {
2987
+ }, mn = (e = []) => {
2993
2988
  let t = !1;
2994
2989
  return e.map((n) => {
2995
2990
  const o = {
@@ -3004,13 +2999,13 @@ const rn = /* @__PURE__ */ D(Qi, [["render", on], ["__scopeId", "data-v-64642fe7
3004
2999
  return (o.isSelected || o.isSelectedDefault) && (t = !0), o;
3005
3000
  }, []);
3006
3001
  };
3007
- function un(e, ...t) {
3008
- if (e === "single") return ln(...t);
3009
- if (e === "checkbox") return cn(...t);
3010
- if (e === "radio") return dn(...t);
3002
+ function hn(e, ...t) {
3003
+ if (e === "single") return un(...t);
3004
+ if (e === "checkbox") return pn(...t);
3005
+ if (e === "radio") return mn(...t);
3011
3006
  throw new Error(`Package filter type '${e}' is not implemented`);
3012
3007
  }
3013
- const pn = {
3008
+ const gn = {
3014
3009
  name: "PackageGroupEdit",
3015
3010
  i18nOptions: {
3016
3011
  namespaces: "PackageGroupEdit",
@@ -3048,12 +3043,12 @@ const pn = {
3048
3043
  }
3049
3044
  },
3050
3045
  components: {
3051
- ErrorCallout: pe,
3052
- PackageItem: rn,
3046
+ ErrorCallout: me,
3047
+ PackageItem: dn,
3053
3048
  PackageGroupSelect: kt,
3054
- CCallout: _e,
3055
- CDropdown: K,
3056
- CDropdownItem: Y
3049
+ CCallout: $e,
3050
+ CDropdown: Y,
3051
+ CDropdownItem: K
3057
3052
  },
3058
3053
  mixins: [
3059
3054
  q([
@@ -3160,7 +3155,7 @@ const pn = {
3160
3155
  if (!this.persistedGroup || !this.persistedGroup.type) return;
3161
3156
  let { packages: t, articles: n } = this.persistedGroup;
3162
3157
  if (!t.length) return;
3163
- if (e !== this.persistedGroup.type && (t = un(e, t)), e === "single" && n.length) {
3158
+ if (e !== this.persistedGroup.type && (t = hn(e, t)), e === "single" && n.length) {
3164
3159
  const [{ packageId: s }] = t;
3165
3160
  n = n.filter((i) => i.packageId === s);
3166
3161
  }
@@ -3171,7 +3166,7 @@ const pn = {
3171
3166
  this.$emit("input", { key: "articles", value: o }), this.$emit("input", { key: `${[this._value.packages]}`, value: t });
3172
3167
  },
3173
3168
  addPackage(e = {}) {
3174
- const t = Ye(), n = this.type === "checkbox" && this.packages.length ? this.packages[0].data.prices.type : "fixed", o = this.currency || this.defaultCurrency, s = {
3169
+ const t = Ze(), n = this.type === "checkbox" && this.packages.length ? this.packages[0].data.prices.type : "fixed", o = this.currency || this.defaultCurrency, s = {
3175
3170
  isSelected: this.type === "single",
3176
3171
  isSelectedDefault: this.type === "single",
3177
3172
  toggable: !0,
@@ -3245,33 +3240,33 @@ const pn = {
3245
3240
  return e > 0 && (n.up = !0), e < t - 1 && (n.down = !0), n;
3246
3241
  },
3247
3242
  moveItem(e, t) {
3248
- const n = he(this.packages, e, t);
3243
+ const n = ve(this.packages, e, t);
3249
3244
  this.$emit("input", { key: this._value.packages, value: n });
3250
3245
  }
3251
3246
  }
3252
- }, mn = { class: "package-group-root font-inter" }, hn = { key: 0 }, gn = { style: { position: "absolute", right: "0", top: "-10px", transform: "translateY(-100%)", "z-index": "2" } }, vn = { class: "pb-4" }, fn = {
3247
+ }, 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 = {
3253
3248
  key: 2,
3254
3249
  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%)" }
3255
- }, yn = {
3250
+ }, wn = {
3256
3251
  key: 4,
3257
3252
  class: "flex w-full flex-col items-center justify-center"
3258
- }, kn = { style: { width: "100%" } }, bn = {
3253
+ }, In = { style: { width: "100%" } }, _n = {
3259
3254
  key: 0,
3260
3255
  class: "package-placeholder bg-gray-100",
3261
3256
  style: { color: "hsl(0, 0%, 24%)", "font-weight": "500" }
3262
- }, wn = {
3257
+ }, $n = {
3263
3258
  style: { "vertical-align": "text-bottom", "margin-right": "3px" },
3264
3259
  width: "16",
3265
3260
  height: "16",
3266
3261
  viewBox: "0 0 18 14",
3267
3262
  xmlns: "http://www.w3.org/2000/svg"
3268
- }, In = { class: "flex w-full" };
3269
- function _n(e, t, n, o, s, i) {
3270
- const f = g("PackageGroupSelect"), v = g("ErrorCallout"), y = g("CButton"), u = g("CDropdownItem"), w = g("CDropdown"), k = g("CCallout"), C = g("PackageItem");
3271
- return a(), c("div", mn, [
3272
- e.type ? (a(), c(A, { key: 1 }, [
3273
- l("div", gn, [
3274
- p(w, null, {
3263
+ }, Tn = { class: "flex w-full" };
3264
+ function An(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", vn, [
3267
+ e.type ? (a(), c(C, { key: 1 }, [
3268
+ l("div", yn, [
3269
+ p(k, null, {
3275
3270
  trigger: h(() => [
3276
3271
  p(y, {
3277
3272
  type: "none",
@@ -3282,22 +3277,22 @@ function _n(e, t, n, o, s, i) {
3282
3277
  })
3283
3278
  ]),
3284
3279
  default: h(() => [
3285
- p(u, { onClick: i.onResetType }, {
3280
+ p(d, { onClick: i.onResetType }, {
3286
3281
  default: h(() => [
3287
- $(m(e.$t("_common:change", {
3282
+ _(u(e.$t("_common:change", {
3288
3283
  thing: e.$t("_common:price.proposal").toLowerCase()
3289
3284
  })), 1)
3290
3285
  ]),
3291
3286
  _: 1
3292
3287
  }, 8, ["onClick"]),
3293
- p(u, {
3288
+ p(d, {
3294
3289
  value: !!e.hideGroupPrice,
3295
3290
  "close-on-click": !1,
3296
3291
  toggle: "",
3297
- onInput: t[1] || (t[1] = (d) => e.hideGroupPrice = d)
3292
+ onInput: t[1] || (t[1] = (m) => e.hideGroupPrice = m)
3298
3293
  }, {
3299
3294
  default: h(() => [
3300
- $(m(e.$t("hideGroupPrice")), 1)
3295
+ _(u(e.$t("hideGroupPrice")), 1)
3301
3296
  ]),
3302
3297
  _: 1
3303
3298
  }, 8, ["value"])
@@ -3305,61 +3300,61 @@ function _n(e, t, n, o, s, i) {
3305
3300
  _: 1
3306
3301
  })
3307
3302
  ]),
3308
- e.type === "checkbox" && !i.internalPackages.find((d) => d.toggable === !1) ? (a(), T(k, {
3303
+ e.type === "checkbox" && !i.internalPackages.find((m) => m.toggable === !1) ? (a(), A(w, {
3309
3304
  key: 0,
3310
3305
  title: e.$t("base"),
3311
3306
  class: "w-full"
3312
3307
  }, {
3313
3308
  default: h(() => [
3314
- l("div", vn, m(e.$t("basePlaceholder")), 1),
3309
+ l("div", kn, u(e.$t("basePlaceholder")), 1),
3315
3310
  p(y, {
3316
3311
  type: "secondary",
3317
3312
  size: "small",
3318
3313
  style: { "font-weight": "600" },
3319
- onClick: t[2] || (t[2] = (d) => i.addPackage({
3314
+ onClick: t[2] || (t[2] = (m) => i.addPackage({
3320
3315
  isSelected: !0,
3321
3316
  isSelectedDefault: !0,
3322
3317
  toggable: !1
3323
3318
  }))
3324
3319
  }, {
3325
3320
  default: h(() => [
3326
- $(m(e.$t("_common:add", { thing: e.$t("base").toLowerCase() })), 1)
3321
+ _(u(e.$t("_common:add", { thing: e.$t("base").toLowerCase() })), 1)
3327
3322
  ]),
3328
3323
  _: 1
3329
3324
  })
3330
3325
  ]),
3331
3326
  _: 1
3332
- }, 8, ["title"])) : (a(), T(oe, {
3327
+ }, 8, ["title"])) : (a(), A(re, {
3333
3328
  key: 1,
3334
3329
  name: "section-list",
3335
3330
  tag: "div"
3336
3331
  }, {
3337
3332
  default: h(() => [
3338
- (a(!0), c(A, null, S(i.topRowPackages, (d, I) => (a(), c("div", {
3339
- key: d.packageId,
3333
+ (a(!0), c(C, null, S(i.topRowPackages, (m, T) => (a(), c("div", {
3334
+ key: m.packageId,
3340
3335
  class: "section-item pb-4"
3341
3336
  }, [
3342
- p(C, {
3337
+ p($, {
3343
3338
  _document: e._document,
3344
3339
  _value: {
3345
- isSelectedDefault: `${e._value.packages}[${d.index}].isSelectedDefault`,
3346
- isSelected: `${e._value.packages}[${d.index}].isSelected`,
3347
- name: `${e._value.packages}[${d.index}].data.name`,
3348
- description: `${e._value.packages}[${d.index}].data.description`,
3349
- priceType: `${e._value.packages}[${d.index}].data.prices.type`,
3350
- maxTotal: `${e._value.packages}[${d.index}].data.prices.maxTotal`,
3351
- basePath: `${e._value.packages}[${d.index}]`,
3352
- currency: `${e._value.packages}[${d.index}].data.prices.currency`
3340
+ isSelectedDefault: `${e._value.packages}[${m.index}].isSelectedDefault`,
3341
+ isSelected: `${e._value.packages}[${m.index}].isSelected`,
3342
+ name: `${e._value.packages}[${m.index}].data.name`,
3343
+ description: `${e._value.packages}[${m.index}].data.description`,
3344
+ priceType: `${e._value.packages}[${m.index}].data.prices.type`,
3345
+ maxTotal: `${e._value.packages}[${m.index}].data.prices.maxTotal`,
3346
+ basePath: `${e._value.packages}[${m.index}]`,
3347
+ currency: `${e._value.packages}[${m.index}].data.prices.currency`
3353
3348
  },
3354
3349
  type: e.type,
3355
3350
  "active-house-work-type": i.houseWorkType,
3356
- toggable: d.toggable,
3357
- "package-id": d.packageId,
3358
- "move-options": i.moveOptions(I, i.topRowPackages.length),
3351
+ toggable: m.toggable,
3352
+ "package-id": m.packageId,
3353
+ "move-options": i.moveOptions(T, i.topRowPackages.length),
3359
3354
  onInput: t[3] || (t[3] = (r) => e.$emit("input", r)),
3360
3355
  onAdd: t[4] || (t[4] = (r) => e.$emit("add", r)),
3361
- "onUpdate:isSelectedDefault": (r) => i.onInputSelectedDefault(d.index, r),
3362
- "onUpdate:priceType": (r) => i.onInputPriceType(d.index, r),
3356
+ "onUpdate:isSelectedDefault": (r) => i.onInputSelectedDefault(m.index, r),
3357
+ "onUpdate:priceType": (r) => i.onInputPriceType(m.index, r),
3363
3358
  "onUpdate:setPricesIncVat": t[5] || (t[5] = (r) => {
3364
3359
  e.$emit("input", {
3365
3360
  key: "data.formSettings.setPricesIncVat",
@@ -3368,47 +3363,47 @@ function _n(e, t, n, o, s, i) {
3368
3363
  }),
3369
3364
  "onUpdate:currency": t[6] || (t[6] = (r) => e.$emit("input", { key: "currency", value: r })),
3370
3365
  onRemove: t[7] || (t[7] = (r) => e.$emit("remove", r)),
3371
- onRemovePackage: (r) => i.removeByIndex(d.index),
3372
- onMove: (r) => i.moveItem(d.index, i.topRowPackages[I + r].index)
3366
+ onRemovePackage: (r) => i.removeByIndex(m.index),
3367
+ onMove: (r) => i.moveItem(m.index, i.topRowPackages[T + r].index)
3373
3368
  }, null, 8, ["_document", "_value", "type", "active-house-work-type", "toggable", "package-id", "move-options", "onUpdate:isSelectedDefault", "onUpdate:priceType", "onRemovePackage", "onMove"])
3374
3369
  ]))), 128))
3375
3370
  ]),
3376
3371
  _: 1
3377
3372
  })),
3378
- e.type === "checkbox" && i.topRowPackages.length && i.bottomRowPackages.length ? (a(), c("div", fn)) : b("", !0),
3379
- e.type === "checkbox" ? (a(), T(oe, {
3373
+ e.type === "checkbox" && i.topRowPackages.length && i.bottomRowPackages.length ? (a(), c("div", bn)) : b("", !0),
3374
+ e.type === "checkbox" ? (a(), A(re, {
3380
3375
  key: 3,
3381
3376
  name: "section-list",
3382
3377
  tag: "div",
3383
3378
  style: { "margin-bottom": "calc(1 * var(--rem))" }
3384
3379
  }, {
3385
3380
  default: h(() => [
3386
- (a(!0), c(A, null, S(i.bottomRowPackages, (d, I) => (a(), c("div", {
3387
- key: d.packageId,
3381
+ (a(!0), c(C, null, S(i.bottomRowPackages, (m, T) => (a(), c("div", {
3382
+ key: m.packageId,
3388
3383
  class: "section-item",
3389
3384
  style: { padding: "calc(1 * var(--rem)) 0" }
3390
3385
  }, [
3391
- p(C, {
3386
+ p($, {
3392
3387
  _document: e._document,
3393
3388
  _value: {
3394
- isSelectedDefault: `${e._value.packages}[${d.index}].isSelectedDefault`,
3395
- isSelected: `${e._value.packages}[${d.index}].isSelected`,
3396
- name: `${e._value.packages}[${d.index}].data.name`,
3397
- description: `${e._value.packages}[${d.index}].data.description`,
3398
- priceType: `${e._value.packages}[${d.index}].data.prices.type`,
3399
- maxTotal: `${e._value.packages}[${d.index}].data.prices.maxTotal`,
3400
- basePath: `${e._value.packages}[${d.index}]`,
3401
- currency: `${e._value.packages}[${d.index}].data.prices.currency`
3389
+ isSelectedDefault: `${e._value.packages}[${m.index}].isSelectedDefault`,
3390
+ isSelected: `${e._value.packages}[${m.index}].isSelected`,
3391
+ name: `${e._value.packages}[${m.index}].data.name`,
3392
+ description: `${e._value.packages}[${m.index}].data.description`,
3393
+ priceType: `${e._value.packages}[${m.index}].data.prices.type`,
3394
+ maxTotal: `${e._value.packages}[${m.index}].data.prices.maxTotal`,
3395
+ basePath: `${e._value.packages}[${m.index}]`,
3396
+ currency: `${e._value.packages}[${m.index}].data.prices.currency`
3402
3397
  },
3403
3398
  type: e.type,
3404
3399
  "active-house-work-type": i.houseWorkType,
3405
- "package-id": d.packageId,
3406
- "move-options": i.moveOptions(I, i.bottomRowPackages.length),
3400
+ "package-id": m.packageId,
3401
+ "move-options": i.moveOptions(T, i.bottomRowPackages.length),
3407
3402
  class: "package-item",
3408
3403
  onInput: t[8] || (t[8] = (r) => e.$emit("input", r)),
3409
3404
  onAdd: t[9] || (t[9] = (r) => e.$emit("add", r)),
3410
- "onUpdate:isSelectedDefault": (r) => i.onInputSelectedDefault(d.index, r),
3411
- "onUpdate:priceType": (r) => i.onInputPriceType(d.index, r),
3405
+ "onUpdate:isSelectedDefault": (r) => i.onInputSelectedDefault(m.index, r),
3406
+ "onUpdate:priceType": (r) => i.onInputPriceType(m.index, r),
3412
3407
  "onUpdate:setPricesIncVat": t[10] || (t[10] = (r) => {
3413
3408
  e.$emit("input", {
3414
3409
  key: "data.formSettings.setPricesIncVat",
@@ -3416,51 +3411,51 @@ function _n(e, t, n, o, s, i) {
3416
3411
  }), s.setPricesDirty = !0;
3417
3412
  }),
3418
3413
  onRemove: t[11] || (t[11] = (r) => e.$emit("remove", r)),
3419
- onRemovePackage: (r) => i.removeByIndex(d.index),
3420
- onMove: (r) => i.moveItem(d.index, i.bottomRowPackages[I + r].index)
3414
+ onRemovePackage: (r) => i.removeByIndex(m.index),
3415
+ onMove: (r) => i.moveItem(m.index, i.bottomRowPackages[T + r].index)
3421
3416
  }, null, 8, ["_document", "_value", "type", "active-house-work-type", "package-id", "move-options", "onUpdate:isSelectedDefault", "onUpdate:priceType", "onRemovePackage", "onMove"])
3422
3417
  ]))), 128))
3423
3418
  ]),
3424
3419
  _: 1
3425
3420
  })) : b("", !0),
3426
- e.type !== "single" || !e.packages.length ? (a(), c("div", yn, [
3427
- l("div", kn, [
3428
- e.type === "radio" && !e.packages.length ? (a(), c("div", bn, [
3429
- (a(), c("svg", wn, t[13] || (t[13] = [
3421
+ e.type !== "single" || !e.packages.length ? (a(), c("div", wn, [
3422
+ l("div", In, [
3423
+ e.type === "radio" && !e.packages.length ? (a(), c("div", _n, [
3424
+ (a(), c("svg", $n, t[13] || (t[13] = [
3430
3425
  l("path", {
3431
3426
  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",
3432
3427
  fill: "#000",
3433
3428
  "fill-rule": "evenodd"
3434
3429
  }, null, -1)
3435
3430
  ]))),
3436
- $(" " + m(e.$t("selectablePlaceholder")), 1)
3431
+ _(" " + u(e.$t("selectablePlaceholder")), 1)
3437
3432
  ])) : b("", !0)
3438
3433
  ]),
3439
- n.validator.$invalid && n.validator.$dirty ? (a(), T(v, {
3434
+ n.validator.$invalid && n.validator.$dirty ? (a(), A(v, {
3440
3435
  key: 0,
3441
3436
  message: e.$t("error.minOnePackage"),
3442
3437
  style: { margin: "calc(1 * var(--rem)) 0 calc(1 * var(--rem)) 0" }
3443
3438
  }, null, 8, ["message"])) : b("", !0),
3444
- l("div", In, [
3439
+ l("div", Tn, [
3445
3440
  p(y, {
3446
3441
  type: "secondary",
3447
3442
  outlined: "",
3448
3443
  "icon-left": "plus",
3449
3444
  style: { "border-color": "hsl(0, 0%, 82%)" },
3450
- onClick: t[12] || (t[12] = (d) => i.addPackage())
3445
+ onClick: t[12] || (t[12] = (m) => i.addPackage())
3451
3446
  }, {
3452
3447
  default: h(() => [
3453
- $(m(e.$t("add")), 1)
3448
+ _(u(e.$t("add")), 1)
3454
3449
  ]),
3455
3450
  _: 1
3456
3451
  })
3457
3452
  ])
3458
3453
  ])) : b("", !0)
3459
- ], 64)) : (a(), c("div", hn, [
3454
+ ], 64)) : (a(), c("div", fn, [
3460
3455
  p(f, {
3461
- onInput: t[0] || (t[0] = (d) => i.onSelectType(d))
3456
+ onInput: t[0] || (t[0] = (m) => i.onSelectType(m))
3462
3457
  }),
3463
- n.validator.$invalid && n.validator.$dirty ? (a(), T(v, {
3458
+ n.validator.$invalid && n.validator.$dirty ? (a(), A(v, {
3464
3459
  key: 0,
3465
3460
  message: e.$t("error.selectType"),
3466
3461
  style: { "padding-bottom": "calc(1.5 * var(--rem))" }
@@ -3468,7 +3463,7 @@ function _n(e, t, n, o, s, i) {
3468
3463
  ]))
3469
3464
  ]);
3470
3465
  }
3471
- const Un = /* @__PURE__ */ D(pn, [["render", _n], ["__scopeId", "data-v-03549668"]]);
3466
+ const zn = /* @__PURE__ */ D(gn, [["render", An], ["__scopeId", "data-v-03549668"]]);
3472
3467
  export {
3473
- Un as default
3468
+ zn as default
3474
3469
  };