@cling-se/widget 0.15.2 → 0.15.5

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 (137) hide show
  1. package/README.md +43 -43
  2. package/dist/{AddClientCallout-CSxN7XFh.js → AddClientCallout-CrZF5j7A.js} +15 -13
  3. package/dist/{AnswerModal-DEwMlsT8.js → AnswerModal-C3r9vyki.js} +71 -71
  4. package/dist/{AttachmentItem-R7YMKqQ2.js → AttachmentItem-BVXrxCnv.js} +20 -13
  5. package/dist/{BaseDatePicker-Bd1maWgF.js → BaseDatePicker-DxL2l3QC.js} +561 -557
  6. package/dist/{BaseUpload-C9Jd1JBo.js → BaseUpload-B7259IaQ.js} +3 -3
  7. package/dist/{BlockMedia-CUCZYVdZ.js → BlockMedia-BSKtZMwa.js} +2 -2
  8. package/dist/{CCallout-_k7FPbsE.js → CCallout-BNvM6gNJ.js} +4 -5
  9. package/dist/{CCurrencyDropdown-DejfeYVY.js → CCurrencyDropdown-xmqmb8gW.js} +24 -20
  10. package/dist/{CDropdownItem-b6ZzOnv-.js → CDropdownItem-DiLisSei.js} +139 -37
  11. package/dist/{CFormField-BjGICSv5.js → CFormField-DcZVdj3a.js} +3 -4
  12. package/dist/{CPhoneFormat-Bf2fgYtr.js → CPhoneFormat-BeYxRN0i.js} +1 -1
  13. package/dist/CPhoneInput-UzZkxbC6.js +138 -0
  14. package/dist/{CPriceInput-myrETXfz.js → CPriceInput-C2y_3PM7.js} +20 -16
  15. package/dist/CSelect-BmP1UsQA.js +91 -0
  16. package/dist/CSkeleton-BNbft-NE.js +55 -0
  17. package/dist/ClientAutocomplete-BnredOme.js +438 -0
  18. package/dist/{ClientModal-DSmFJ9bu.js → ClientModal-DNcf4APF.js} +92 -51
  19. package/dist/{ColorPicker-B1MJicqo.js → ColorPicker-BupC4jvI.js} +2 -2
  20. package/dist/{CompanyModal-BXs3aAYm.js → CompanyModal-Bh8mEHE1.js} +25 -19
  21. package/dist/{ContentWrapper-BKWZy4Bp.js → ContentWrapper-Bs3nrJda.js} +63 -55
  22. package/dist/CoverBlockSettings-WYZsCdky.js +659 -0
  23. package/dist/{DocAnswer-CaoTYUNh.js → DocAnswer--FfsnnTB.js} +2 -2
  24. package/dist/{DocDetails-C9EEpNg2.js → DocDetails-Ce7bj-qO.js} +43 -39
  25. package/dist/{DocForm-Dww8Ust9.js → DocForm-FR_Vlq_C.js} +801 -755
  26. package/dist/{DocFormSend-DKAqaT50.js → DocFormSend-DcSv3JNg.js} +18 -15
  27. package/dist/{DocLinks-DFUO03dk.js → DocLinks-Bvhc62aJ.js} +2 -2
  28. package/dist/{DocModalBase-QZosNhiK.js → DocModalBase-DkfUBRi3.js} +2 -2
  29. package/dist/{DocPrint--T278pDE.js → DocPrint-BrKY6rOy.js} +3 -3
  30. package/dist/{DocReceipt-CPg45_I7.js → DocReceipt-oGrM6t_k.js} +29 -22
  31. package/dist/{DocSendReminder-DQAaiUrs.js → DocSendReminder-veEC_yHK.js} +19 -16
  32. package/dist/{DocTextEditor-CM1f8eMD.js → DocTextEditor-CNRwxPEx.js} +72 -70
  33. package/dist/{DocTimeline-Ce0OZgGP.js → DocTimeline-e2Xf_QZ7.js} +38 -34
  34. package/dist/{DocumentClient-DHU-Rg3r.js → DocumentClient-Dx4Uyxkh.js} +5 -5
  35. package/dist/{DocumentLayout-GYCBw2F_.js → DocumentLayout-DmjmsTcx.js} +1506 -1538
  36. package/dist/{DocumentLogotype-Cilc0ElE.js → DocumentLogotype-ddYHM9wn.js} +25 -20
  37. package/dist/{DocumentVoided-BH8pkv85.js → DocumentVoided-WCk7XuxH.js} +1 -1
  38. package/dist/{EmbedInput-lMSVQSey.js → EmbedInput-CMueXdFs.js} +25 -21
  39. package/dist/{EmbedSettings-D65Y2AZL.js → EmbedSettings-BRuLCWr0.js} +13 -11
  40. package/dist/{ErrorCallout-BBNHzuhf.js → ErrorCallout-CDtZceLU.js} +6 -6
  41. package/dist/{FilePreviewModal-iPIuaIor.js → FilePreviewModal-BzAUuY58.js} +3 -3
  42. package/dist/Flag-DkJgyDQK.js +46 -0
  43. package/dist/{HeaderSettings-WKUIBCfF.js → HeaderSettings-CoKK5Mbt.js} +159 -110
  44. package/dist/{ImageSelectModal-BTMFM3o9.js → ImageSelectModal-De64vGSr.js} +15 -13
  45. package/dist/{ImageUploadWrapper-BaLjUZF5.js → ImageUploadWrapper-CE6KTze0.js} +3 -3
  46. package/dist/{Index-DS1PwlDq.js → Index-50KxppUS.js} +4 -4
  47. package/dist/{Index-DJeZiYxr.js → Index-B7vVIRFn.js} +7 -7
  48. package/dist/{Index-ivhPuQy5.js → Index-BUQ75xOU.js} +6 -6
  49. package/dist/{Index-BUEXgHEE.js → Index-BVKCCkQY.js} +57 -50
  50. package/dist/{Index-BBTn35Kj.js → Index-BiGT3iEX.js} +21 -17
  51. package/dist/{Index-B-UWz1IM.js → Index-BoDKKVvL.js} +4 -4
  52. package/dist/{Index-DrSgVUyo.js → Index-BotY9nbP.js} +2 -2
  53. package/dist/{Index-B-YqdbQX.js → Index-BwaJW9CY.js} +3 -3
  54. package/dist/{Index-BepvyGqo.js → Index-ByqCyUgx.js} +9 -9
  55. package/dist/{Index-Bsv15ctO.js → Index-C7pge7E9.js} +23 -21
  56. package/dist/{Index-CEaZgZqg.js → Index-CBRJ-AZi.js} +2 -2
  57. package/dist/{Index-GrrsUUz1.js → Index-CFQMtx5w.js} +5 -5
  58. package/dist/{Index-CtQo0b8t.js → Index-CJKyHWiO.js} +15 -15
  59. package/dist/{Index-Dv1fkHWQ.js → Index-CK_5l1kP.js} +2 -2
  60. package/dist/{Index-BVt3pj58.js → Index-CLc_11Bc.js} +276 -232
  61. package/dist/{Index-cPIqnY80.js → Index-CTokKHJA.js} +5 -5
  62. package/dist/Index-Cf45UGbc.js +28 -0
  63. package/dist/{Index-B51tj7qY.js → Index-CfLPq-yA.js} +5 -5
  64. package/dist/{Index-B_ta4yT_.js → Index-Ci7y3O0G.js} +7 -7
  65. package/dist/{Index-ZKkQzVOj.js → Index-CmV8oF4Q.js} +4 -4
  66. package/dist/{Index-C6tGNKAk.js → Index-CoRuYEYW.js} +5 -5
  67. package/dist/Index-CtKNyVUB.js +56 -0
  68. package/dist/{Index-rL3fz1Ew.js → Index-DCf6_Zd2.js} +2 -2
  69. package/dist/{Index-CEHhYmLe.js → Index-DGdlZzVO.js} +7 -7
  70. package/dist/{Index-B5XaBVyJ.js → Index-DbKB8sTh.js} +18 -12
  71. package/dist/{Index-9PMrT3eB.js → Index-DgBOq2MJ.js} +3 -3
  72. package/dist/{Index-BBOJRRgx.js → Index-DvNxOHHu.js} +6 -6
  73. package/dist/{Index-DS7xellB.js → Index-M2Mce2_m.js} +124 -123
  74. package/dist/{Index-2PGn8Pnv.js → Index-QMkjG7hk.js} +4 -4
  75. package/dist/{Index-oKRUWCcJ.js → Index-QmX5pv-V.js} +17 -15
  76. package/dist/{Index-0aZtDWyk.js → Index-h5xDFYM9.js} +4 -4
  77. package/dist/{Index-CtZMlBfK.js → Index-hkGYloih.js} +5 -5
  78. package/dist/{Index-DK3b6Cv-.js → Index-q3gLm4b1.js} +6 -6
  79. package/dist/{Index-BQ3kapHk.js → Index-sqI1TF7Z.js} +2 -2
  80. package/dist/{InputToggleRow-CJF0vwk3.js → InputToggleRow-DLFIMIdx.js} +2 -2
  81. package/dist/{ManualPopover-CEF7LMpn.js → ManualPopover-Cf8DotlW.js} +13 -11
  82. package/dist/{MediaWrapper-CM6vWCoZ.js → MediaWrapper-BgWmA3kS.js} +3 -3
  83. package/dist/{NotBindingText-Cee9yA0M.js → NotBindingText-DhsHxvkX.js} +2 -2
  84. package/dist/{PackageGroup-CFXogKPM.js → PackageGroup-EbOSxv69.js} +26 -20
  85. package/dist/PdfTerms-im6uTd5E.js +31 -0
  86. package/dist/{PdfViewer-Cd0Jm2VB.js → PdfViewer-DY0rcZjo.js} +22 -22
  87. package/dist/{PlainHtml-CucWAcOU.js → PlainHtml-o031pfp-.js} +1 -1
  88. package/dist/{PriceHeader-DdMZUaq5.js → PriceHeader-NdFa0Sqs.js} +15 -15
  89. package/dist/{SearchApi-knNqVduO.js → SearchApi-Bw5E9IPj.js} +2 -2
  90. package/dist/SendForm-BDY5VDkS.js +1023 -0
  91. package/dist/{Setup-7HIAWuiK.js → Setup-BsYqPmOm.js} +1 -1
  92. package/dist/{SmartList-cSmGbybV.js → SmartList-CP2wHig-.js} +1 -1
  93. package/dist/{TermsSettings-CAB-08E3.js → TermsSettings-CUlSayCJ.js} +20 -13
  94. package/dist/{ThemeColorRow-DxcMvBGq.js → ThemeColorRow-D3fav4Sl.js} +14 -12
  95. package/dist/ToggleBinding-B715OVl2.js +42 -0
  96. package/dist/{UploadModal-CvoSMExA.js → UploadModal-THDJ-UNp.js} +6 -6
  97. package/dist/{VideoPlayerInput-X5baUH3q.js → VideoPlayerInput-Cm3KoRnR.js} +15 -11
  98. package/dist/{VideoPlayerSettings-DsIvpufB.js → VideoPlayerSettings-BFAjczuw.js} +3 -3
  99. package/dist/VideoSelectModal-CzO8EMg9.js +104 -0
  100. package/dist/{answerDocumentMixin-B8HB1WAX.js → answerDocumentMixin-D12xJRhx.js} +3 -3
  101. package/dist/{debounce-B2lqFJg2.js → debounce-DLiv1sQX.js} +16 -16
  102. package/dist/{focusDrawerMixin-B2djM7ql.js → focusDrawerMixin-khaScuSu.js} +1 -1
  103. package/dist/{formDrawerState-CchCpZRc.js → formDrawerState-CJ6kjaD_.js} +1 -1
  104. package/dist/{formValidationMixin-Dz9Mabvi.js → formValidationMixin-Bri1WflH.js} +1 -1
  105. package/dist/{index-Dk6sZCYv.js → index-B0Zu30kF.js} +2 -2
  106. package/dist/{index-twnaU4rC.js → index-C1Ngv-v3.js} +1 -1
  107. package/dist/{index-BCrDgR_4.js → index-CMT3coT-.js} +785 -2001
  108. package/dist/{index-H1Kx9sJM.js → index-DJOUQneq.js} +42 -38
  109. package/dist/{index-BaGtbWcA.js → index-DLa3QER7.js} +18 -17
  110. package/dist/{index-kV9OZ5y0.js → index-Dygy9XlG.js} +1 -1
  111. package/dist/index.es.js +10 -10
  112. package/dist/index.umd.js +179 -175
  113. package/dist/{main-CerYX9PA.js → main-U22_wtg0.js} +13008 -11358
  114. package/dist/{mapFormMixin-Hj1Y7rVt.js → mapFormMixin-BZf4RJIE.js} +1 -1
  115. package/dist/omit-RBXmF_Fo.js +31 -0
  116. package/dist/{publicSenderState-t7Gu53cA.js → publicSenderState-DKuvxj4_.js} +1 -1
  117. package/dist/regions-BdZt9Srn.js +1250 -0
  118. package/dist/simplebar.min-Bnrne5ZK.js +71 -0
  119. package/dist/style.css +2 -2
  120. package/dist/{throttle-B8hI9bkk.js → throttle-Fkuqk26x.js} +2 -2
  121. package/dist/{tinycolor-BaK26Ky-.js → tinycolor-BZ8wGctU.js} +1 -1
  122. package/dist/{tippy.esm-BuWRbveV.js → tippy.esm-BJe845c1.js} +246 -240
  123. package/dist/{utils-Pmm0DT8o.js → utils-BOWVR87A.js} +1 -1
  124. package/dist/{vuedraggable.umd-Besz6Tlv.js → vuedraggable.umd-CJL8TWxZ.js} +1 -1
  125. package/package.json +2 -11
  126. package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
  127. package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
  128. package/dist/ClientAutocomplete-DyXQEfcS.js +0 -78
  129. package/dist/CoverBlockSettings-7Ivt9zN0.js +0 -275
  130. package/dist/Flag-CwnrA4SV.js +0 -114
  131. package/dist/Index-B0pgh8nR.js +0 -21
  132. package/dist/Index-Ccx9wHcb.js +0 -52
  133. package/dist/PdfTerms-ChtDfzne.js +0 -36
  134. package/dist/ToggleBinding-CTTYdrkp.js +0 -38
  135. package/dist/VideoSelectModal-VMcSU3bM.js +0 -100
  136. package/dist/formComponentsInstall-CdjgjI6y.js +0 -2495
  137. package/dist/omit-DGBewD2h.js +0 -31
@@ -1,16 +1,18 @@
1
- import { m as y } from "./mapFormMixin-Hj1Y7rVt.js";
2
- import { E as P } from "./ErrorCallout-BBNHzuhf.js";
3
- import { aJ as L, aK as S, aL as E, aM as z, aN as B, aO as W, k as j, aP as F, n as u, g as p, w as k, aG as N, aQ as w, aR as H, r as C, ar as f, ai as q, aS as U, as as G, aT as K, aU as Y, aV as T, p as Z, b as o, Y as g, z as J, B as Q, aW as X, t as ee, aa as te } from "./main-CerYX9PA.js";
1
+ import { m as y } from "./mapFormMixin-BZf4RJIE.js";
2
+ import { C as W } from "./CCallout-BNvM6gNJ.js";
3
+ import { C as x, a as b, w as B } from "./CDropdownItem-DiLisSei.js";
4
+ import { E as V } from "./ErrorCallout-CDtZceLU.js";
5
+ import { aL as F, aM as R, aN as j, aO as N, aP as H, aQ as q, l as U, aR as G, n as u, g as p, D as k, aE as K, aS as T, aT as Y, r as I, av as f, $ as Z, aU as J, aw as Q, aV as X, aW as ee, aX as A, p as te, b as o, v as ie, Z as g, H as se, K as ae, aY as ne, z as re, ae as oe } from "./main-U22_wtg0.js";
4
6
  import { m as h, a as v } from "./vuex.esm-DKGl8mcw.js";
5
- import { T as ie } from "./DocTextEditor-CM1f8eMD.js";
6
- import { W as se } from "./DocumentLayout-GYCBw2F_.js";
7
- import { o as V } from "./omit-DGBewD2h.js";
8
- import { d as ae } from "./vuedraggable.umd-Besz6Tlv.js";
9
- import { C as x } from "./CPriceInput-myrETXfz.js";
10
- import { S as ne } from "./SearchApi-knNqVduO.js";
11
- import { v as re } from "./index-twnaU4rC.js";
12
- import { w as oe } from "./CDropdownItem-b6ZzOnv-.js";
13
- const ce = [
7
+ import { T as ce } from "./DocTextEditor-CNRwxPEx.js";
8
+ import { W as le } from "./DocumentLayout-DmjmsTcx.js";
9
+ import { o as D } from "./omit-RBXmF_Fo.js";
10
+ import { d as ue } from "./vuedraggable.umd-CJL8TWxZ.js";
11
+ import { C as w } from "./CPriceInput-C2y_3PM7.js";
12
+ import { S as de } from "./SearchApi-Bw5E9IPj.js";
13
+ import { v as pe } from "./index-C1Ngv-v3.js";
14
+ import { C as O } from "./CFormField-DcZVdj3a.js";
15
+ const he = [
14
16
  "unit",
15
17
  "m2",
16
18
  "hour",
@@ -27,28 +29,28 @@ const ce = [
27
29
  "year",
28
30
  "kWh"
29
31
  ];
30
- function le() {
32
+ function me() {
31
33
  }
32
- var ue = le, b = L, de = ue, pe = S, he = 1 / 0, me = b && 1 / pe(new b([, -0]))[1] == he ? function(s) {
33
- return new b(s);
34
- } : de, fe = me, ve = E, ge = z, ye = B, _e = W, ke = fe, $e = S, xe = 200;
35
- function be(s, e, t) {
36
- var i = -1, n = ge, a = s.length, r = !0, c = [], l = c;
34
+ var fe = me, C = F, ve = fe, ge = R, ye = 1 / 0, _e = C && 1 / ge(new C([, -0]))[1] == ye ? function(s) {
35
+ return new C(s);
36
+ } : ve, ke = _e, $e = j, xe = N, be = H, we = q, Ce = ke, Te = R, Ie = 200;
37
+ function Ae(s, e, t) {
38
+ var i = -1, n = xe, a = s.length, r = !0, c = [], l = c;
37
39
  if (t)
38
- r = !1, n = ye;
39
- else if (a >= xe) {
40
- var _ = e ? null : ke(s);
40
+ r = !1, n = be;
41
+ else if (a >= Ie) {
42
+ var _ = e ? null : Ce(s);
41
43
  if (_)
42
- return $e(_);
43
- r = !1, n = _e, l = new ve();
44
+ return Te(_);
45
+ r = !1, n = we, l = new $e();
44
46
  } else
45
47
  l = e ? [] : c;
46
48
  e:
47
49
  for (; ++i < a; ) {
48
50
  var d = s[i], m = e ? e(d) : d;
49
51
  if (d = t || d !== 0 ? d : 0, r && m === m) {
50
- for (var I = l.length; I--; )
51
- if (l[I] === m)
52
+ for (var S = l.length; S--; )
53
+ if (l[S] === m)
52
54
  continue e;
53
55
  e && l.push(m), c.push(d);
54
56
  } else
@@ -56,12 +58,12 @@ function be(s, e, t) {
56
58
  }
57
59
  return c;
58
60
  }
59
- var we = be, Ce = F, Te = we;
60
- function Ie(s, e) {
61
- return s && s.length ? Te(s, Ce(e)) : [];
61
+ var Se = Ae, Pe = G, Ve = Se;
62
+ function Re(s, e) {
63
+ return s && s.length ? Ve(s, Pe(e)) : [];
62
64
  }
63
- var Ae = Ie;
64
- const Pe = /* @__PURE__ */ j(Ae), Se = {
65
+ var De = Re;
66
+ const Oe = /* @__PURE__ */ U(De), Me = {
65
67
  name: "PackageGroupSelect",
66
68
  i18nOptions: {
67
69
  namespaces: "PackageGroupSelect",
@@ -128,7 +130,7 @@ const Pe = /* @__PURE__ */ j(Ae), Se = {
128
130
  };
129
131
  }
130
132
  };
131
- var Ve = function() {
133
+ var Le = function() {
132
134
  var e = this, t = e._self._c;
133
135
  return t("div", { staticClass: "font-inter", staticStyle: { padding: "calc(2 * var(--rem)) 0 calc(1 * var(--rem)) 0", color: "#111" } }, [t("div", { staticStyle: { "font-size": "18px", "font-weight": "600", "text-align": "center", "margin-bottom": "calc(1.5 * var(--rem))" } }, [e._v(" " + e._s(e.$t("title")) + " ")]), t("div", [t("div", { staticClass: "options", class: { "is-700-or-less": e.parentSize.width <= 700 } }, e._l(e.options, function(i, n) {
134
136
  return t("div", { key: n, staticClass: "package-group-option", style: { backgroundColor: i.background }, on: { click: function(a) {
@@ -142,7 +144,7 @@ var Ve = function() {
142
144
  return t("div", { key: a, staticClass: "package-group-option__illustration-card", class: { animate: a !== 3 } }, [t("div", { staticStyle: { 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" }, style: a !== 3 && { backgroundColor: i.background } }, [t("CIcon", { attrs: { type: a !== 3 ? "check" : "empty", "stroke-width": "5", size: "8" } })], 1), e._m(2, !0)]);
143
145
  }) : e._e()], 2), t("div", [t("div", { staticClass: "package-group-option__title" }, [e._v(" " + e._s(i.title) + " ")]), t("div", { staticClass: "package-group-option__subtitle", domProps: { innerHTML: e._s(i.subTitle) } })])]);
144
146
  }), 0)])]);
145
- }, Re = [function() {
147
+ }, Ee = [function() {
146
148
  var s = this, e = s._self._c;
147
149
  return e("div", { staticStyle: { flex: "1 1 auto" } }, [e("div", { staticClass: "bg-gray-100", staticStyle: { width: "40%", height: "10px", "margin-bottom": "8px" } }), e("div", { staticClass: "bg-gray-100", staticStyle: { width: "80%", height: "10px" } })]);
148
150
  }, function() {
@@ -151,18 +153,18 @@ var Ve = function() {
151
153
  }, function() {
152
154
  var s = this, e = s._self._c;
153
155
  return e("div", { staticStyle: { flex: "1 1 auto" } }, [e("div", { staticClass: "bg-gray-100", staticStyle: { width: "40%", height: "10px", "margin-bottom": "8px" } }), e("div", { staticClass: "bg-gray-100", staticStyle: { width: "80%", height: "10px" } })]);
154
- }], De = /* @__PURE__ */ u(
155
- Se,
156
- Ve,
157
- Re,
156
+ }], ze = /* @__PURE__ */ u(
157
+ Me,
158
+ Le,
159
+ Ee,
158
160
  !1,
159
161
  null,
160
- "b67c5afd"
162
+ "38a3147b"
161
163
  );
162
- const Oe = De.exports, Me = {
164
+ const We = ze.exports, Be = {
163
165
  name: "ArticleAutocomplete",
164
166
  components: {
165
- SearchApi: ne
167
+ SearchApi: de
166
168
  },
167
169
  mixins: [y([])],
168
170
  props: {
@@ -281,7 +283,7 @@ const Oe = De.exports, Me = {
281
283
  }
282
284
  }
283
285
  };
284
- var Le = function() {
286
+ var Fe = function() {
285
287
  var e = this, t = e._self._c;
286
288
  return t("div", { class: { "is-open": e.isOpen }, staticStyle: { position: "relative" }, on: { "&keydown": function(i) {
287
289
  return e.onKeydown.apply(null, arguments);
@@ -297,24 +299,28 @@ var Le = function() {
297
299
  return !n.type.indexOf("key") && e._k(n.keyCode, "tab", 9, n.key, "Tab") ? null : e.hideResults.apply(null, arguments);
298
300
  }, function(n) {
299
301
  return !n.type.indexOf("key") && e._k(n.keyCode, "escape", void 0, n.key, void 0) ? null : e.hideResults.apply(null, arguments);
300
- }] } }, "CInput", {
302
+ }] }, scopedSlots: e._u([{ key: "prefix", fn: function() {
303
+ return [e._t("prefix")];
304
+ }, proxy: !0 }, { key: "suffix", fn: function() {
305
+ return [e._t("suffix")];
306
+ }, proxy: !0 }], null, !0) }, "CInput", {
301
307
  ...e.$attrs,
302
308
  ...e.$props
303
- }, !1), [e._t("prefix", null, { slot: "prefix" }), e._t("suffix", null, { slot: "suffix" })], 2)];
304
- } }], null, !0) }), e.isOpen ? t("div", { ref: "dropdown", staticClass: "r-container" }, e._l(e.searchResults, function(i, n) {
309
+ }, !1))];
310
+ } }]) }), e.isOpen ? t("div", { ref: "dropdown", staticClass: "r-container" }, e._l(e.searchResults, function(i, n) {
305
311
  return t("div", { key: n, staticClass: "r-item", class: { active: e.selectedIndex === n }, on: { "!click": function(a) {
306
312
  return a.stopPropagation(), e.onSelect(i);
307
313
  } } }, [t("div", { staticClass: "r-item-title truncate-text" }, [e._v(e._s(i.name))]), t("div", { staticClass: "r-item-details" }, [i.externalReference && i.externalReference.service ? t("div", { staticStyle: { width: "18px", height: "18px", "border-radius": "2px", "background-color": "hsl(0, 0%, 60%)", display: "inline-flex", "justify-content": "center", "align-items": "center" } }, [t("CIcon", { staticStyle: { color: "white" }, attrs: { type: i.externalReference.service, size: "14" } })], 1) : e._e(), i.article_no ? t("div", [e._v(e._s(i.article_no))]) : e._e(), i.price ? t("div", [e._v(" " + e._s(e.priceFormat(i.price, { currency: i.currency })) + " ")]) : e._e(), i.vat ? t("div", [e._v(" " + e._s(e.$t("vat.sharedTitle").capitalize()) + " " + e._s(i.vat) + "% ")]) : e._e()]), e.selectedIndex === n ? t("div", { staticClass: "r-item-icon" }, [t("CIcon", { attrs: { type: "corner-down-left", size: "16" } })], 1) : e._e()]);
308
314
  }), 0) : e._e()], 1);
309
- }, Ee = [], ze = /* @__PURE__ */ u(
310
- Me,
311
- Le,
312
- Ee,
315
+ }, je = [], Ne = /* @__PURE__ */ u(
316
+ Be,
317
+ Fe,
318
+ je,
313
319
  !1,
314
320
  null,
315
- "d068ad40"
321
+ "ac5122d0"
316
322
  );
317
- const R = ze.exports, A = {
323
+ const M = Ne.exports, P = {
318
324
  isDeductable: !1,
319
325
  isRut: !1,
320
326
  greenRot15: !1,
@@ -326,18 +332,18 @@ const R = ze.exports, A = {
326
332
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
327
333
  // Trigger updatedAt as it us used to decide which houseWork to prioritize
328
334
  };
329
- return typeof t < "u" && (i[t] = e), Object.keys(A).includes(t) && e && (i = {
335
+ return typeof t < "u" && (i[t] = e), Object.keys(P).includes(t) && e && (i = {
330
336
  ...i,
331
- ...A,
337
+ ...P,
332
338
  [t]: !0
333
- }), N(i.quantity) !== "number" && (i.quantity = 0), w(i);
334
- }, D = ({
339
+ }), K(i.quantity) !== "number" && (i.quantity = 0), T(i);
340
+ }, L = ({
335
341
  stored: s,
336
342
  current: e,
337
343
  hidePrice: t = !1,
338
344
  activeHouseWorkType: i
339
345
  }) => {
340
- let n = H({
346
+ let n = Y({
341
347
  ...s,
342
348
  quantity: 1,
343
349
  showPrice: !t,
@@ -347,7 +353,7 @@ const R = ze.exports, A = {
347
353
  });
348
354
  if (i) {
349
355
  const a = (l = []) => l.reduce((_, d) => ({ ..._, [d]: !1 }), {}), c = Object.values(
350
- V({
356
+ D({
351
357
  rot: "isDeductable",
352
358
  rut: "isRut",
353
359
  greenRot15: "greenRot15",
@@ -358,11 +364,11 @@ const R = ze.exports, A = {
358
364
  c.some((l) => !!n[l]) && (n = { ...n, ...a(c) });
359
365
  }
360
366
  return n;
361
- }, Be = (s, e = null) => {
362
- const t = C(s.currency, e);
367
+ }, He = (s, e = null) => {
368
+ const t = I(s.currency, e);
363
369
  switch (s.priceType) {
364
370
  case "approx":
365
- return `${q.t("_common:approx")} ${t}`;
371
+ return `${Z.t("_common:approx")} ${t}`;
366
372
  case "openAcc":
367
373
  return `${t}/${f(s.unitType)}`;
368
374
  case "markup":
@@ -370,7 +376,7 @@ const R = ze.exports, A = {
370
376
  default:
371
377
  return t;
372
378
  }
373
- }, O = {
379
+ }, E = {
374
380
  en: {
375
381
  namePlaceholder: "Service or product name",
376
382
  openModalTooltip: "Edit amount and unit",
@@ -415,23 +421,23 @@ const R = ze.exports, A = {
415
421
  }
416
422
  }
417
423
  }
418
- }, M = {
424
+ }, z = {
419
425
  article: {
420
426
  name: {
421
- maxLength: re.maxLength(255)
427
+ maxLength: pe.maxLength(255)
422
428
  }
423
429
  }
424
- }, We = {
430
+ }, qe = {
425
431
  // eslint-disable-next-line vue/no-reserved-component-names
426
432
  name: "Article",
427
433
  i18nOptions: {
428
434
  namespaces: "Article",
429
- messages: O
435
+ messages: E
430
436
  },
431
437
  components: {
432
- ErrorCallout: P,
433
- ArticleAutocomplete: R,
434
- CPriceInput: x
438
+ ErrorCallout: V,
439
+ ArticleAutocomplete: M,
440
+ CPriceInput: w
435
441
  },
436
442
  props: {
437
443
  // Article object
@@ -474,11 +480,11 @@ const R = ze.exports, A = {
474
480
  default: null
475
481
  }
476
482
  },
477
- validations: M,
483
+ validations: z,
478
484
  data() {
479
485
  return {
480
486
  updateData: $,
481
- addSavedArticle: D,
487
+ addSavedArticle: L,
482
488
  articleUnitLabel: f,
483
489
  widthCompact: 580,
484
490
  visualDisable: !1
@@ -503,8 +509,8 @@ const R = ze.exports, A = {
503
509
  discount: r,
504
510
  discountType: c
505
511
  } = this.article;
506
- if (e !== "fixed" && s.push({ title: this.$t(`priceTypeShort.${e}`) }), U(this.article)) {
507
- const l = G(this.article);
512
+ if (e !== "fixed" && s.push({ title: this.$t(`priceTypeShort.${e}`) }), J(this.article)) {
513
+ const l = Q(this.article);
508
514
  s.push({
509
515
  title: this.$t(`_common:deduction.${l}_percentage`)
510
516
  });
@@ -548,7 +554,7 @@ const R = ze.exports, A = {
548
554
  }
549
555
  }
550
556
  };
551
- var je = function() {
557
+ var Ue = function() {
552
558
  var e = this, t = e._self._c;
553
559
  return t("div", { staticClass: "article-wrapper", class: {
554
560
  "has-details": e.details.length,
@@ -570,15 +576,17 @@ var je = function() {
570
576
  activeHouseWorkType: e.activeHouseWorkType
571
577
  })
572
578
  ), e.$emit("select");
573
- } } }, [e.hideControls ? e._e() : t("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
574
- content: e.$t("openModalTooltip"),
575
- delay: { show: 300, hide: 0 }
576
- }, expression: `{
577
- content: $t('openModalTooltip'),
578
- delay: { show: 300, hide: 0 }
579
- }` }], staticClass: "article-button fade-in", attrs: { slot: "suffix" }, on: { click: function(i) {
580
- return e.$emit("open-modal");
581
- } }, slot: "suffix" }, [t("CIcon", { attrs: { type: "cog", size: "18" } })], 1)]), e.hidePriceInput ? e._e() : t("CPriceInput", { key: e.rootPriceType + e.article.priceType + e.article.unitType, staticClass: "form-control form-control-right", staticStyle: { flex: "1 1", "min-width": "200px" }, attrs: { value: e.article.totalAmount, currency: e.article.currency, "is-inc-vat": e.article.priceType !== "markup" && e.isIncVat, vat: e.article.vat, placeholder: e.$t("_common:price.price").capitalize(), "price-type": e.article.priceType, "unit-label": e.articleUnitLabel(e.article.unitType) }, on: { input: function(i) {
579
+ } }, scopedSlots: e._u([{ key: "suffix", fn: function() {
580
+ return [e.hideControls ? e._e() : t("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
581
+ content: e.$t("openModalTooltip"),
582
+ delay: { show: 300, hide: 0 }
583
+ }, expression: `{
584
+ content: $t('openModalTooltip'),
585
+ delay: { show: 300, hide: 0 }
586
+ }` }], staticClass: "article-button fade-in", on: { click: function(i) {
587
+ return e.$emit("open-modal");
588
+ } } }, [t("CIcon", { attrs: { type: "cog", size: "18" } })], 1)];
589
+ }, proxy: !0 }]) }), e.hidePriceInput ? e._e() : t("CPriceInput", { key: e.rootPriceType + e.article.priceType + e.article.unitType, staticClass: "form-control form-control-right", staticStyle: { flex: "1 1", "min-width": "200px" }, attrs: { value: e.article.totalAmount, currency: e.article.currency, "is-inc-vat": e.article.priceType !== "markup" && e.isIncVat, vat: e.article.vat, placeholder: e.$t("_common:price.price").capitalize(), "price-type": e.article.priceType, "unit-label": e.articleUnitLabel(e.article.unitType) }, on: { input: function(i) {
582
590
  return e.updateArticle(i, "price");
583
591
  }, "update:currency": function(i) {
584
592
  return e.$emit("update:currency", i);
@@ -593,15 +601,15 @@ var je = function() {
593
601
  } } }, e._l(e.details, function({ title: i, icon: n, subTitle: a = "", detailClass: r = "" }, c) {
594
602
  return t("div", { key: c, staticClass: "article-details-item", class: [r] }, [e._v(" " + e._s(i) + " "), n ? t("div", { domProps: { innerHTML: e._s(n) } }) : e._e(), e._v(" " + e._s(a) + " ")]);
595
603
  }), 0) : e._e(), e.$v.$invalid && e.$v.$dirty ? t("ErrorCallout", { attrs: { message: e.errorMessage(e.$v) } }) : e._e()], 1);
596
- }, Fe = [], Ne = /* @__PURE__ */ u(
597
- We,
598
- je,
599
- Fe,
604
+ }, Ge = [], Ke = /* @__PURE__ */ u(
605
+ qe,
606
+ Ue,
607
+ Ge,
600
608
  !1,
601
609
  null,
602
- "44d89db4"
610
+ "1da5cd26"
603
611
  );
604
- const He = Ne.exports, qe = {
612
+ const Ye = Ke.exports, Ze = {
605
613
  props: {
606
614
  canForward: {
607
615
  type: Boolean,
@@ -672,22 +680,22 @@ const He = Ne.exports, qe = {
672
680
  });
673
681
  }
674
682
  };
675
- var Ue = function() {
683
+ var Je = function() {
676
684
  var e = this, t = e._self._c;
677
685
  return t("div", { staticClass: "l-root" }, [t("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.getNavTooltip(-1), expression: "getNavTooltip(-1)" }], staticClass: "l-button", class: { disabled: !e.canBackward }, staticStyle: { left: "calc(-4 * var(--rem))" }, on: { click: function(i) {
678
686
  return e.$emit("go", -1);
679
687
  } } }, [t("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "35", height: "35", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [t("path", { attrs: { d: "M15 18l-6-6 6-6" } })])]), t("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.getNavTooltip(1), expression: "getNavTooltip(1)" }], staticClass: "l-button", class: { disabled: !e.canForward }, staticStyle: { right: "calc(-4 * var(--rem))" }, on: { click: function(i) {
680
688
  return e.$emit("go", 1);
681
689
  } } }, [t("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "35", height: "35", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [t("path", { attrs: { d: "M9 18l6-6-6-6" } })])])]);
682
- }, Ge = [], Ke = /* @__PURE__ */ u(
683
- qe,
684
- Ue,
685
- Ge,
690
+ }, Qe = [], Xe = /* @__PURE__ */ u(
691
+ Ze,
692
+ Je,
693
+ Qe,
686
694
  !1,
687
695
  null,
688
- "226f5608"
696
+ "5985de8a"
689
697
  );
690
- const Ye = Ke.exports, Ze = {
698
+ const et = Xe.exports, tt = {
691
699
  name: "ArticleUnitEditModal",
692
700
  i18nOptions: {
693
701
  namespaces: "ArticleUnitEditModal",
@@ -715,8 +723,9 @@ const Ye = Ke.exports, Ze = {
715
723
  }
716
724
  },
717
725
  components: {
718
- DragList: K,
719
- DragItem: Y
726
+ DragList: X,
727
+ DragItem: ee,
728
+ CField: O
720
729
  },
721
730
  data() {
722
731
  return {
@@ -787,7 +796,7 @@ const Ye = Ke.exports, Ze = {
787
796
  this.$emit("close");
788
797
  },
789
798
  async onDrop({ removedIndex: s, addedIndex: e }) {
790
- s === null && e === null || s !== e && (this.idList = T(this.idList, s, e), await Z(
799
+ s === null && e === null || s !== e && (this.idList = A(this.idList, s, e), await te(
791
800
  "/unitType/setPositions",
792
801
  { ids: this.idList },
793
802
  { invalidateCache: { type: "unitType" } }
@@ -795,13 +804,15 @@ const Ye = Ke.exports, Ze = {
795
804
  }
796
805
  }
797
806
  };
798
- var Je = function() {
807
+ var it = function() {
799
808
  var e = this, t = e._self._c;
800
809
  return t("div", { staticClass: "modal-overlay font-inter", on: { "&click": function(i) {
801
810
  return i.target !== i.currentTarget ? null : e.close.apply(null, arguments);
802
- } } }, [t("div", { staticClass: "unit-modal-root font-inter", staticStyle: { position: "relative" } }, [t("div", { staticStyle: { padding: "calc(1.5 * var(--rem))" } }, [t("div", { staticStyle: { "font-weight": "600", "font-size": "18px", "margin-bottom": "calc(1.5 * var(--rem))" } }, [t("span", [e._v(e._s(e.$t("_common:add", { thing: e.$t("_common:unitType.unitType_plural") })))]), t("CIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: { content: e.$t("tooltip"), html: !0 }, expression: "{ content: $t('tooltip'), html: true }" }], staticClass: "text-gray-400", staticStyle: { "margin-left": "0.5em" }, attrs: { type: "info", size: "15" } })], 1), t("CField", { staticStyle: { margin: "0" }, attrs: { grouped: "" } }, [t("CInput", { ref: "unitInput", staticClass: "unit-input", attrs: { placeholder: e.$t("_common:name").capitalize(), expanded: "", filled: "" }, model: { value: e.selectedValue.value, callback: function(i) {
811
+ } } }, [t("div", { staticClass: "unit-modal-root font-inter", staticStyle: { position: "relative" } }, [t("div", { staticStyle: { padding: "calc(1.5 * var(--rem))" } }, [t("div", { staticStyle: { "font-weight": "600", "font-size": "18px", "margin-bottom": "calc(1.5 * var(--rem))" } }, [t("span", [e._v(e._s(e.$t("_common:add", { thing: e.$t("_common:unitType.unitType_plural") })))]), t("CIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: { content: e.$t("tooltip"), html: !0 }, expression: "{ content: $t('tooltip'), html: true }" }], staticClass: "text-gray-400", staticStyle: { "margin-left": "0.5em" }, attrs: { type: "info", size: "15" } })], 1), t("CField", { staticStyle: { margin: "0" }, attrs: { grouped: "" } }, [t("CInput", { ref: "unitInput", staticClass: "unit-input", attrs: { placeholder: e.$t("_common:name").capitalize(), expanded: "", filled: "" }, scopedSlots: e._u([e.selectedValue.id ? { key: "suffix", fn: function() {
812
+ return [t("CButton", { staticStyle: { "border-radius": "4px" }, attrs: { icon: "x", type: "none", pattern: "tertiary", size: "small" }, on: { click: e.reset } })];
813
+ }, proxy: !0 } : null], null, !0), model: { value: e.selectedValue.value, callback: function(i) {
803
814
  e.$set(e.selectedValue, "value", typeof i == "string" ? i.trim() : i);
804
- }, expression: "selectedValue.value" } }, [e.selectedValue.id ? t("template", { slot: "suffix" }, [t("CButton", { staticStyle: { "border-radius": "4px" }, attrs: { icon: "x", type: "none", pattern: "tertiary", size: "small" }, on: { click: e.reset } })], 1) : e._e()], 2), t("div", { staticClass: "control" }, [t("CButton", { attrs: { loading: e.isPosting, disabled: !e.selectedValue.value, type: "secondary" }, on: { click: e.submit } }, [e._v(" " + e._s(e.selectedValue.id ? e.$t("_common:save") : e.$t("_common:add")) + " ")])], 1)], 1)], 1), t("div", { staticStyle: { "border-top": "1px solid hsl(0, 0%, 88%)", overflow: "auto", "max-height": "360px" } }, [t("div", { staticClass: "text-gray-400", staticStyle: { "font-size": "14px", padding: "calc(1 * var(--rem)) calc(1.5 * var(--rem)) 0", "font-weight": "500" } }, [e._v(" " + e._s(e.$t("_common:unit_plural").capitalize()) + " ")]), t("div", { staticClass: "unit-modal-list" }, [e.unitItems.length ? e._e() : t("div", { staticClass: "unit-modal-list-empty" }, [e._v(" " + e._s(e.$t("_common:add", { thing: e.$t("_common:unit_plural") })) + " ")]), t("DragList", { attrs: { "drop-placeholder": { className: "drag-drop-placeholder" }, "drag-class": "is-dragged", "lock-axis": "y", "drag-handle-selector": ".drag-handle" }, on: { drop: e.onDrop } }, e._l(e.unitItems, function(i, n) {
815
+ }, expression: "selectedValue.value" } }), t("div", { staticClass: "control" }, [t("CButton", { attrs: { loading: e.isPosting, disabled: !e.selectedValue.value, type: "secondary" }, on: { click: e.submit } }, [e._v(" " + e._s(e.selectedValue.id ? e.$t("_common:save") : e.$t("_common:add")) + " ")])], 1)], 1)], 1), t("div", { staticStyle: { "border-top": "1px solid hsl(0, 0%, 88%)", overflow: "auto", "max-height": "360px" } }, [t("div", { staticClass: "text-gray-400", staticStyle: { "font-size": "14px", padding: "calc(1 * var(--rem)) calc(1.5 * var(--rem)) 0", "font-weight": "500" } }, [e._v(" " + e._s(e.$t("_common:unit_plural").capitalize()) + " ")]), t("div", { staticClass: "unit-modal-list" }, [e.unitItems.length ? e._e() : t("div", { staticClass: "unit-modal-list-empty" }, [e._v(" " + e._s(e.$t("_common:add", { thing: e.$t("_common:unit_plural") })) + " ")]), t("DragList", { attrs: { "drop-placeholder": { className: "drag-drop-placeholder" }, "drag-class": "is-dragged", "lock-axis": "y", "drag-handle-selector": ".drag-handle" }, on: { drop: e.onDrop } }, e._l(e.unitItems, function(i, n) {
805
816
  return t("DragItem", { key: i.id }, [t("div", { staticClass: "unit-modal-list-item", class: { "is-editing": e.selectedValue.id === i.id }, on: { "&mouseover": function(a) {
806
817
  e.hoverIndex = n;
807
818
  }, "&mouseleave": function(a) {
@@ -814,16 +825,20 @@ var Je = function() {
814
825
  e.removeConfirmIndex = null;
815
826
  } } }) : e._e(), t("CButton", { attrs: { icon: "edit", size: "small", type: "none", pattern: "tertiary", circle: "" } })], 1)])]);
816
827
  }), 1)], 1)])])]);
817
- }, Qe = [], Xe = /* @__PURE__ */ u(
818
- Ze,
819
- Je,
820
- Qe,
828
+ }, st = [], at = /* @__PURE__ */ u(
829
+ tt,
830
+ it,
831
+ st,
821
832
  !1,
822
833
  null,
823
- "136d8414"
834
+ "7a4d1468"
824
835
  );
825
- const et = Xe.exports, tt = {
836
+ const nt = at.exports, rt = {
826
837
  name: "ArticleUnitSelect",
838
+ components: {
839
+ CDropdown: x,
840
+ CDropdownItem: b
841
+ },
827
842
  props: {
828
843
  value: {
829
844
  type: String,
@@ -845,7 +860,7 @@ const et = Xe.exports, tt = {
845
860
  unitById: "unitTypes/byId"
846
861
  }),
847
862
  unitItems() {
848
- return this.isPublicForm ? ce : (this.unitIds || []).map((s) => this.unitById(s)).map(({ value: s }) => s);
863
+ return this.isPublicForm ? he : (this.unitIds || []).map((s) => this.unitById(s)).map(({ value: s }) => s);
849
864
  }
850
865
  },
851
866
  created() {
@@ -858,7 +873,7 @@ const et = Xe.exports, tt = {
858
873
  }),
859
874
  openEditModal() {
860
875
  this.$modal.show(
861
- et,
876
+ nt,
862
877
  {},
863
878
  {},
864
879
  {
@@ -868,40 +883,45 @@ const et = Xe.exports, tt = {
868
883
  }
869
884
  }
870
885
  };
871
- var it = function() {
886
+ var ot = function() {
872
887
  var e = this, t = e._self._c;
873
888
  return t("CDropdown", e._b({ attrs: { value: e.value, scrollable: "" }, on: { input: function(i) {
874
889
  return e.$emit("input", i);
875
- } } }, "CDropdown", {
890
+ } }, scopedSlots: e._u([{ key: "trigger", fn: function() {
891
+ return [e._t("default", function() {
892
+ return [t("CButton", { attrs: { type: "none", pattern: "tertiary" } }, [e._v(" " + e._s(e.articleUnitLabel(e.value)) + " ")])];
893
+ })];
894
+ }, proxy: !0 }, { key: "footer", fn: function() {
895
+ return [e.isPublicForm ? e._e() : t("CButton", { staticClass: "edit-button", attrs: { type: "none", pattern: "secondary", size: "small" }, on: { click: e.openEditModal } }, [e._v(" " + e._s(e.$t("_common:edit", { thing: e.$t("_common:unit_plural") })) + " ")])];
896
+ }, proxy: !0 }], null, !0) }, "CDropdown", {
876
897
  position: "is-bottom-left",
877
898
  maxHeight: "240px",
878
899
  ...e.$attrs
879
- }, !1), [e._t("default", function() {
880
- return [t("CButton", { attrs: { slot: "trigger", type: "none", pattern: "tertiary" }, slot: "trigger" }, [e._v(" " + e._s(e.articleUnitLabel(e.value)) + " ")])];
881
- }, { slot: "trigger" }), e._l(e.unitItems, function(i, n) {
900
+ }, !1), e._l(e.unitItems, function(i, n) {
882
901
  return t("CDropdownItem", { key: `${i}-${n}`, attrs: { value: i } }, [e._v(" " + e._s(e.articleUnitLabel(i)) + " ")]);
883
- }), e.isPublicForm ? e._e() : t("CButton", { staticClass: "edit-button", attrs: { slot: "footer", type: "none", pattern: "secondary", size: "small" }, on: { click: e.openEditModal }, slot: "footer" }, [e._v(" " + e._s(e.$t("_common:edit", { thing: e.$t("_common:unit_plural") })) + " ")])], 2);
884
- }, st = [], at = /* @__PURE__ */ u(
885
- tt,
886
- it,
887
- st,
902
+ }), 1);
903
+ }, ct = [], lt = /* @__PURE__ */ u(
904
+ rt,
905
+ ot,
906
+ ct,
888
907
  !1,
889
908
  null,
890
- "ff74de30"
909
+ "ab757fc1"
891
910
  );
892
- const nt = at.exports, rt = {
911
+ const ut = lt.exports, dt = {
893
912
  name: "ArticleModal",
894
913
  i18nOptions: {
895
914
  namespaces: "ArticleModal",
896
- messages: O
915
+ messages: E
897
916
  },
898
917
  components: {
899
- ArticleAutocomplete: R,
900
- ArticleUnitSelect: nt,
901
- ListModalButtons: Ye,
902
- CPriceInput: x
918
+ ArticleAutocomplete: M,
919
+ ArticleUnitSelect: ut,
920
+ ListModalButtons: et,
921
+ CPriceInput: w,
922
+ CField: O
903
923
  },
904
- mixins: [oe],
924
+ mixins: [B],
905
925
  props: {
906
926
  _document: {
907
927
  type: Object,
@@ -956,12 +976,12 @@ const nt = at.exports, rt = {
956
976
  })
957
977
  }
958
978
  },
959
- validations: M,
979
+ validations: z,
960
980
  data() {
961
981
  return {
962
- priceSuffix: Be,
982
+ priceSuffix: He,
963
983
  updateData: $,
964
- addSavedArticle: D,
984
+ addSavedArticle: L,
965
985
  vatOptions: [
966
986
  { value: 25, translation: "25%" },
967
987
  { value: 12, translation: "12%" },
@@ -970,7 +990,7 @@ const nt = at.exports, rt = {
970
990
  ],
971
991
  showDiscountInput: !1,
972
992
  setPricesIncVat: !1,
973
- getCurrencySymbol: C,
993
+ getCurrencySymbol: I,
974
994
  articleUnitLabel: f
975
995
  };
976
996
  },
@@ -1176,7 +1196,7 @@ const nt = at.exports, rt = {
1176
1196
  }
1177
1197
  }
1178
1198
  };
1179
- var ot = function() {
1199
+ var pt = function() {
1180
1200
  var e = this, t = e._self._c;
1181
1201
  return t("div", { staticClass: "font-inter", class: {
1182
1202
  "full-screen": e.mq === "sm",
@@ -1211,7 +1231,11 @@ var ot = function() {
1211
1231
  e.setPricesIncVat = !e.setPricesIncVat;
1212
1232
  } } }, [e._v(" " + e._s(e._document.$t(`vat.${e.setPricesIncVat ? "incVat" : "exVat"}`)) + " ")]) : e._e()], 1), e.showDiscountInput ? t("div", { staticClass: "flex", staticStyle: { "margin-bottom": "1.5em" } }, [t("CField", { staticClass: "label-selector form-control form-control-left flex-grow", staticStyle: { "margin-bottom": "0" }, attrs: { label: e.$t("discount").capitalize(), "label-position": "inside" } }, [t("CPriceInput", { ref: "discountInput", staticClass: "input-selector", attrs: { value: e.article.discount, currency: e.article.currency, "is-inc-vat": e.article.discountType !== "percentage" && e.setPricesIncVat, vat: e.article.vat, "suffix-class": "text-gray-400" }, on: { input: function(i) {
1213
1233
  e.updateArticle(Math.abs(i), "discount");
1214
- } } }, [e.article.discountType === "fixed" ? t("template", { slot: "suffix" }, [e._v(" " + e._s(e._document.$t(`vat.${e.setPricesIncVat ? "incVat" : "exVat"}`)) + " ")]) : t("template", { slot: "suffix" }, [e._v(" " + e._s(e.getCurrencySymbol(e.article.currency)) + " ")])], 2)], 1), t("div", { staticClass: "select-css form-control form-control-right", staticStyle: { width: "5em" }, on: { click: function(i) {
1234
+ } }, scopedSlots: e._u([e.article.discountType === "fixed" ? { key: "suffix", fn: function() {
1235
+ return [e._v(" " + e._s(e._document.$t(`vat.${e.setPricesIncVat ? "incVat" : "exVat"}`)) + " ")];
1236
+ }, proxy: !0 } : { key: "suffix", fn: function() {
1237
+ return [e._v(" " + e._s(e.getCurrencySymbol(e.article.currency)) + " ")];
1238
+ }, proxy: !0 }], null, !0) })], 1), t("div", { staticClass: "select-css form-control form-control-right", staticStyle: { width: "5em" }, on: { click: function(i) {
1215
1239
  return e.updateArticle(
1216
1240
  e.article.discountType === "percentage" ? "fixed" : "percentage",
1217
1241
  "discountType"
@@ -1263,15 +1287,15 @@ var ot = function() {
1263
1287
  </div>
1264
1288
  \`
1265
1289
  }` }], staticStyle: { padding: "1.75em", height: "4em", "font-size": "16px", "background-color": "hsl(231, 4%, 20%)", "border-color": "hsl(231, 4%, 20%)" }, attrs: { type: "primary", tabindex: "0", size: "large" }, on: { click: e.addNewArticle } }, [t("CIcon", { staticStyle: { margin: "-3px" }, attrs: { type: "zap", size: "21" } })], 1), t("CButton", { staticClass: "flex-grow", staticStyle: { padding: "1.75em", height: "4em", "font-size": "16px" }, attrs: { size: "large", type: "secondary", "full-width": "", tabindex: "0" }, on: { click: e.onSaveArticle } }, [e._v(" " + e._s(e.$t("save")) + " ")])], 1)], 1)]);
1266
- }, ct = [], lt = /* @__PURE__ */ u(
1267
- rt,
1268
- ot,
1269
- ct,
1290
+ }, ht = [], mt = /* @__PURE__ */ u(
1291
+ dt,
1292
+ pt,
1293
+ ht,
1270
1294
  !1,
1271
1295
  null,
1272
- "06018d45"
1296
+ "5d132488"
1273
1297
  );
1274
- const ut = lt.exports, dt = {
1298
+ const ft = mt.exports, vt = {
1275
1299
  i18nOptions: {
1276
1300
  name: "ArticleListEdit",
1277
1301
  namespaces: "ArticleListEdit",
@@ -1292,10 +1316,10 @@ const ut = lt.exports, dt = {
1292
1316
  },
1293
1317
  components: {
1294
1318
  // eslint-disable-next-line vue/no-reserved-component-names
1295
- Article: He,
1296
- ArticleModal: ut,
1297
- WithDimensions: se,
1298
- draggable: ae
1319
+ Article: Ye,
1320
+ ArticleModal: ft,
1321
+ WithDimensions: le,
1322
+ draggable: ue
1299
1323
  },
1300
1324
  mixins: [y([])],
1301
1325
  props: {
@@ -1332,7 +1356,7 @@ const ut = lt.exports, dt = {
1332
1356
  hidePriceOnNew: "settings/hidePriceOnNewlyAddedArticles"
1333
1357
  }),
1334
1358
  articlesWithTotal() {
1335
- return w(this.articles);
1359
+ return T(this.articles);
1336
1360
  },
1337
1361
  isIndivid() {
1338
1362
  return o(this._document, "prices.helpers.isIndivid", !0);
@@ -1364,14 +1388,13 @@ const ut = lt.exports, dt = {
1364
1388
  s || this.toggleDeductions(!1);
1365
1389
  },
1366
1390
  setPricesIncVat(s) {
1367
- this.updateArticlesVatOption(), this.showMessage({
1391
+ this.updateArticlesVatOption(), ["extension", "widget"].includes(ie.value) || this.showMessage({
1368
1392
  type: "info",
1369
1393
  message: this.$t("vatOption.message", {
1370
1394
  vatOption: this.$t(`_common:vat.${s ? "incVat" : "exVat"}`, {
1371
1395
  thing: this.$t("_common:vat.sharedTitle")
1372
1396
  })
1373
- }),
1374
- omit: "$view:extension,$view:widget"
1397
+ })
1375
1398
  });
1376
1399
  }
1377
1400
  },
@@ -1410,7 +1433,7 @@ const ut = lt.exports, dt = {
1410
1433
  (100 + s.vat) * 0.01
1411
1434
  )), this.updateArticleObject(
1412
1435
  e,
1413
- w({ ...s, price: t.getAmount() })
1436
+ T({ ...s, price: t.getAmount() })
1414
1437
  );
1415
1438
  });
1416
1439
  },
@@ -1432,7 +1455,7 @@ const ut = lt.exports, dt = {
1432
1455
  greenRot50: "greenRot50"
1433
1456
  }, t = (i = []) => i.reduce((n, a) => ({ ...n, [a]: !1 }), {});
1434
1457
  e[s] ? this.articles.forEach((i, n) => {
1435
- const a = Object.values(V(e, [s]));
1458
+ const a = Object.values(D(e, [s]));
1436
1459
  if (a.some((r) => !!i[r])) {
1437
1460
  const r = { ...i, ...t(a) };
1438
1461
  this.$emit("input", { index: n, value: r });
@@ -1451,7 +1474,7 @@ const ut = lt.exports, dt = {
1451
1474
  const { newIndex: n, element: a } = e;
1452
1475
  this.$emit("insert", { index: n, value: a });
1453
1476
  } else if (t) {
1454
- const n = T(
1477
+ const n = A(
1455
1478
  this.articles,
1456
1479
  t.oldIndex,
1457
1480
  t.newIndex
@@ -1464,7 +1487,7 @@ const ut = lt.exports, dt = {
1464
1487
  }
1465
1488
  }
1466
1489
  };
1467
- var pt = function() {
1490
+ var gt = function() {
1468
1491
  var e = this, t = e._self._c;
1469
1492
  return t("div", [e.showVatToggle ? t("div", { staticClass: "label-text" }, [e._v(" " + e._s(e.$t("vatOption.label")) + " "), t("span", { on: { click: function(i) {
1470
1493
  return e.changeVat();
@@ -1502,15 +1525,15 @@ var pt = function() {
1502
1525
  }, "open-modal": e.openModal, close: function(i) {
1503
1526
  e.showModal = !1;
1504
1527
  } } }) : e._e()], 1)], 1);
1505
- }, ht = [], mt = /* @__PURE__ */ u(
1506
- dt,
1507
- pt,
1508
- ht,
1528
+ }, yt = [], _t = /* @__PURE__ */ u(
1529
+ vt,
1530
+ gt,
1531
+ yt,
1509
1532
  !1,
1510
1533
  null,
1511
- "3e63aac7"
1534
+ "6cdba96e"
1512
1535
  );
1513
- const ft = mt.exports, vt = {
1536
+ const kt = _t.exports, $t = {
1514
1537
  name: "MaxTotalInput",
1515
1538
  i18nOptions: {
1516
1539
  namespaces: "MaxTotalInput",
@@ -1524,7 +1547,7 @@ const ft = mt.exports, vt = {
1524
1547
  }
1525
1548
  },
1526
1549
  components: {
1527
- CPriceInput: x
1550
+ CPriceInput: w
1528
1551
  },
1529
1552
  props: {
1530
1553
  value: {
@@ -1542,7 +1565,7 @@ const ft = mt.exports, vt = {
1542
1565
  },
1543
1566
  data() {
1544
1567
  return {
1545
- getCurrencySymbol: C
1568
+ getCurrencySymbol: I
1546
1569
  };
1547
1570
  },
1548
1571
  computed: {
@@ -1557,20 +1580,28 @@ const ft = mt.exports, vt = {
1557
1580
  }
1558
1581
  }
1559
1582
  };
1560
- var gt = function() {
1583
+ var xt = function() {
1561
1584
  var e = this, t = e._self._c;
1562
1585
  return t("div", { staticClass: "flex w-full justify-end" }, [t("CPriceInput", { staticClass: "mt-4 max-w-[275px] text-sm", attrs: { value: e.value, currency: e.currency, "is-inc-vat": e.isIncVat, vat: 25, placeholder: e.$t("maxTotalLabel"), min: "0", "prefix-class": "text-gray-400", "suffix-class": "text-gray-400" }, on: { input: function(i) {
1563
1586
  return e.$emit("input", i);
1564
- } } }, [t("template", { slot: "prefix" }, [e._v(e._s(e.$t("price.maxPrice").capitalize()))]), t("template", { slot: "suffix" }, [t("span", [e._v(" " + e._s(e.getCurrencySymbol(e.currency)) + " " + e._s(e.$t(`vat.${e.isIncVat ? "incVat" : "exVat"}`, { thing: e.$t(`vat.${e.vatType}`) })) + " ")])])], 2)], 1);
1565
- }, yt = [], _t = /* @__PURE__ */ u(
1566
- vt,
1567
- gt,
1568
- yt,
1587
+ } }, scopedSlots: e._u([{ key: "prefix", fn: function() {
1588
+ return [e._v(e._s(e.$t("price.maxPrice").capitalize()))];
1589
+ }, proxy: !0 }, { key: "suffix", fn: function() {
1590
+ return [t("span", [e._v(" " + e._s(e.getCurrencySymbol(e.currency)) + " " + e._s(e.$t(`vat.${e.isIncVat ? "incVat" : "exVat"}`, { thing: e.$t(`vat.${e.vatType}`) })) + " ")])];
1591
+ }, proxy: !0 }]) })], 1);
1592
+ }, bt = [], wt = /* @__PURE__ */ u(
1593
+ $t,
1594
+ xt,
1595
+ bt,
1569
1596
  !1,
1570
1597
  null,
1571
1598
  null
1572
1599
  );
1573
- const kt = _t.exports, $t = {
1600
+ const Ct = wt.exports, Tt = {
1601
+ components: {
1602
+ CDropdown: x,
1603
+ CDropdownItem: b
1604
+ },
1574
1605
  props: {
1575
1606
  value: {
1576
1607
  type: String,
@@ -1583,25 +1614,27 @@ const kt = _t.exports, $t = {
1583
1614
  };
1584
1615
  }
1585
1616
  };
1586
- var xt = function() {
1617
+ var It = function() {
1587
1618
  var e = this, t = e._self._c;
1588
- return t("div", { staticClass: "flex justify-end" }, [t("CDropdown", { attrs: { value: e.value } }, [t("CButton", { staticClass: "price-type-button", attrs: { slot: "trigger" }, slot: "trigger" }, [e._v(" " + e._s(e.$t("price.pricing").capitalize()) + ": "), t("span", [e._v(e._s(e.$t(`price.${e.value}`)))])]), e._l(e.priceTypeOptions, function(i) {
1619
+ return t("div", { staticClass: "flex justify-end" }, [t("CDropdown", { attrs: { value: e.value }, scopedSlots: e._u([{ key: "trigger", fn: function() {
1620
+ return [t("CButton", { staticClass: "price-type-button" }, [e._v(" " + e._s(e.$t("price.pricing").capitalize()) + ": "), t("span", [e._v(e._s(e.$t(`price.${e.value}`)))])])];
1621
+ }, proxy: !0 }]) }, e._l(e.priceTypeOptions, function(i) {
1589
1622
  return t("CDropdownItem", { key: i, staticClass: "text-right", attrs: { value: i }, on: { click: function(n) {
1590
1623
  return e.$emit("input", i);
1591
1624
  } } }, [e._v(" " + e._s(e.$t(`price.${i}`)) + " ")]);
1592
- })], 2)], 1);
1593
- }, bt = [], wt = /* @__PURE__ */ u(
1594
- $t,
1595
- xt,
1596
- bt,
1625
+ }), 1)], 1);
1626
+ }, At = [], St = /* @__PURE__ */ u(
1627
+ Tt,
1628
+ It,
1629
+ At,
1597
1630
  !1,
1598
1631
  null,
1599
- "13ef0942"
1632
+ "5e314414"
1600
1633
  );
1601
- const Ct = wt.exports, Tt = {
1634
+ const Pt = St.exports, Vt = {
1602
1635
  name: "EditDeduction",
1603
1636
  components: {
1604
- CPriceInput: x
1637
+ CPriceInput: w
1605
1638
  },
1606
1639
  mixins: [y(["houseWorkManualAmount"])],
1607
1640
  props: {
@@ -1642,7 +1675,7 @@ const Ct = wt.exports, Tt = {
1642
1675
  }
1643
1676
  }
1644
1677
  };
1645
- var It = function() {
1678
+ var Rt = function() {
1646
1679
  var e = this, t = e._self._c;
1647
1680
  return t("div", [t("modal", e._b({ attrs: { name: `deduction-modal-${e._uid}` } }, "modal", {
1648
1681
  adaptive: !0,
@@ -1650,7 +1683,7 @@ var It = function() {
1650
1683
  width: "90%",
1651
1684
  maxWidth: 420,
1652
1685
  classes: "primary"
1653
- }, !1), [t("div", { staticClass: "deduction-modal flex w-full flex-col items-center justify-between rounded-lg" }, [t("div", { staticStyle: { "font-size": "calc(calc(1 * var(--rem)) + 2px)", "font-weight": "800", "text-align": "center", "margin-bottom": "calc(1.5 * var(--rem))" } }, [e._v(" " + e._s(e.$t("deduction.manualType", { type: e.houseWorkType })) + " ")]), t("div", { staticStyle: { "margin-bottom": "calc(1 * var(--rem))", width: "100%" } }, [t("CPriceInput", { attrs: { currency: "SEK", placeholder: e.$t("enterThing", { thing: e.$t("deduction.deduction") }), min: "0", size: "medium", "suffix-class": "text-gray-400" }, scopedSlots: e._u([{ key: "suffix", fn: function() {
1686
+ }, !1), [t("div", { staticClass: "deduction-modal flex w-full flex-col items-center justify-between rounded-lg" }, [t("div", { staticStyle: { "font-size": "calc(calc(1 * var(--rem)) + 2px)", "font-weight": "800", "text-align": "center", "margin-bottom": "calc(1.5 * var(--rem))" } }, [e._v(" " + e._s(e.$t("deduction.manualType", { type: e.$t(`deduction.${e.houseWorkType}`) })) + " ")]), t("div", { staticStyle: { "margin-bottom": "calc(1 * var(--rem))", width: "100%" } }, [t("CPriceInput", { attrs: { currency: "SEK", placeholder: e.$t("enterThing", { thing: e.$t("deduction.deduction") }), min: "0", size: "medium", "suffix-class": "text-gray-400" }, scopedSlots: e._u([{ key: "suffix", fn: function() {
1654
1687
  return [e._v(e._s(e.$t("currency.SEK")))];
1655
1688
  }, proxy: !0 }]), model: { value: e.internalValue, callback: function(i) {
1656
1689
  e.internalValue = e._n(i);
@@ -1674,19 +1707,19 @@ var It = function() {
1674
1707
  e.houseWorkManualAmount = null, e.$modal.hide(`deduction-modal-${e._uid}`);
1675
1708
  } } }, [e._v(" " + e._s(e.$t("reset")) + " ")])], 1)]), e.houseWorkManualAmount ? t("portal", { attrs: { order: 2, to: "document-nav-bottom" } }, [t("div", { staticClass: "housework-manual-nav", on: { click: function(i) {
1676
1709
  return e.$modal.show(`deduction-modal-${e._uid}`);
1677
- } } }, [t("svg", { staticClass: "css-i6dzq1", staticStyle: { "margin-right": "0.5em" }, attrs: { viewBox: "0 0 24 24", width: "12", height: "12", stroke: "currentColor", "stroke-width": "2", fill: "none", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [t("path", { attrs: { 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" } }), t("line", { attrs: { x1: "12", y1: "9", x2: "12", y2: "13" } }), t("line", { attrs: { x1: "12", y1: "17", x2: "12.01", y2: "17" } })]), e._v(" " + e._s(e.$t("deduction.manualType", { type: e.houseWorkType })) + " " + e._s(e.$t("using")) + " ")])]) : e._e()], 1);
1678
- }, At = [], Pt = /* @__PURE__ */ u(
1679
- Tt,
1680
- It,
1681
- At,
1710
+ } } }, [t("svg", { staticClass: "css-i6dzq1", staticStyle: { "margin-right": "0.5em" }, attrs: { viewBox: "0 0 24 24", width: "12", height: "12", stroke: "currentColor", "stroke-width": "2", fill: "none", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [t("path", { attrs: { 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" } }), t("line", { attrs: { x1: "12", y1: "9", x2: "12", y2: "13" } }), t("line", { attrs: { x1: "12", y1: "17", x2: "12.01", y2: "17" } })]), e._v(" " + e._s(e.$t("deduction.manualType", { type: e.$t(`deduction.${e.houseWorkType}`) })) + " " + e._s(e.$t("using")) + " ")])]) : e._e()], 1);
1711
+ }, Dt = [], Ot = /* @__PURE__ */ u(
1712
+ Vt,
1713
+ Rt,
1714
+ Dt,
1682
1715
  !1,
1683
1716
  null,
1684
- "f3ba2092"
1717
+ "1e846fc7"
1685
1718
  );
1686
- const St = Pt.exports, Vt = {
1719
+ const Mt = Ot.exports, Lt = {
1687
1720
  name: "Pricing",
1688
1721
  components: {
1689
- EditDeduction: St
1722
+ EditDeduction: Mt
1690
1723
  },
1691
1724
  props: {
1692
1725
  _document: {
@@ -1726,7 +1759,9 @@ const St = Pt.exports, Vt = {
1726
1759
  ...this.showHouseWork ? [
1727
1760
  {
1728
1761
  label: this._document.$t("deduction.type", {
1729
- type: `${this.prices.region.houseWorkType}${this.prices.region.houseWorkManualAmount === null ? "_percentage" : ""}`
1762
+ type: this._document.$t(
1763
+ `deduction.${this.prices.region.houseWorkType}${this.prices.region.houseWorkManualAmount === null ? "_percentage" : ""}`
1764
+ )
1730
1765
  }),
1731
1766
  value: -this.prices.region.houseWorkAmount,
1732
1767
  action: () => this.$refs.deduction.showModal()
@@ -1782,7 +1817,7 @@ const St = Pt.exports, Vt = {
1782
1817
  }
1783
1818
  }
1784
1819
  };
1785
- var Rt = function() {
1820
+ var Et = function() {
1786
1821
  var e = this, t = e._self._c;
1787
1822
  return t("div", { staticClass: "price-bubble" }, [t("div", { staticClass: "flex w-full items-center justify-between" }, [e.showHouseWork ? t("EditDeduction", e._g({ ref: "deduction", attrs: { disabled: !e.get(e.prices, "region.houseWorkType", !1), _document: e._document, _value: {
1788
1823
  houseWorkManualAmount: `${e.basePath}.data.prices.region.houseWorkManualAmount`
@@ -1791,15 +1826,15 @@ var Rt = function() {
1791
1826
  i.action && i.action();
1792
1827
  } } }, [t("svg", { attrs: { viewBox: "0 0 24 24", width: "15", height: "15", stroke: "currentColor", "stroke-width": "2.5", fill: "none", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [t("path", { attrs: { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" } }), t("path", { attrs: { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" } })])]) : e._e()]), t("div", { staticClass: "price-value" }, [e._v(" " + e._s(i.prefix) + " " + e._s(i.value) + " ")])]);
1793
1828
  }), 0)]);
1794
- }, Dt = [], Ot = /* @__PURE__ */ u(
1795
- Vt,
1796
- Rt,
1797
- Dt,
1829
+ }, zt = [], Wt = /* @__PURE__ */ u(
1830
+ Lt,
1831
+ Et,
1832
+ zt,
1798
1833
  !1,
1799
1834
  null,
1800
- "d22ef0b4"
1835
+ "8a96a1f0"
1801
1836
  );
1802
- const Mt = Ot.exports, Lt = {
1837
+ const Bt = Wt.exports, Ft = {
1803
1838
  name: "PackageItemEdit",
1804
1839
  i18nOptions: {
1805
1840
  namespaces: "PackageItemEdit",
@@ -1827,11 +1862,13 @@ const Mt = Ot.exports, Lt = {
1827
1862
  }
1828
1863
  },
1829
1864
  components: {
1830
- ArticleList: ft,
1831
- PriceFormAlternatives: Ct,
1832
- MaxTotalInput: kt,
1833
- Pricing: Mt,
1834
- TextEditor: ie
1865
+ ArticleList: kt,
1866
+ PriceFormAlternatives: Pt,
1867
+ MaxTotalInput: Ct,
1868
+ Pricing: Bt,
1869
+ TextEditor: ce,
1870
+ CDropdown: x,
1871
+ CDropdownItem: b
1835
1872
  },
1836
1873
  mixins: [
1837
1874
  y([
@@ -1885,14 +1922,14 @@ const Mt = Ot.exports, Lt = {
1885
1922
  },
1886
1923
  internalDescription: {
1887
1924
  get() {
1888
- return J(
1925
+ return se(
1889
1926
  this.description,
1890
1927
  this._document.textTemplateMap,
1891
1928
  this._document._doc
1892
1929
  );
1893
1930
  },
1894
1931
  set(s) {
1895
- this.description = Q(s);
1932
+ this.description = ae(s);
1896
1933
  }
1897
1934
  }
1898
1935
  },
@@ -1933,7 +1970,7 @@ const Mt = Ot.exports, Lt = {
1933
1970
  });
1934
1971
  },
1935
1972
  onArticleInput({ index: s, value: e }) {
1936
- const { i: t } = this.mappedPackageArticles[s], i = X(e, [
1973
+ const { i: t } = this.mappedPackageArticles[s], i = ne(e, [
1937
1974
  "allowRot",
1938
1975
  "allowRut",
1939
1976
  "isIncVat",
@@ -1946,7 +1983,7 @@ const Mt = Ot.exports, Lt = {
1946
1983
  this.createEmptyArticle(), s ? this.$refs.articleList.openLastArticle() : this.$refs.articleList.focusLastArticle();
1947
1984
  },
1948
1985
  onInsert({ index: s, value: e }) {
1949
- const t = ee(this.mappedPackageArticles).add(
1986
+ const t = re(this.mappedPackageArticles).add(
1950
1987
  { ...e, packageId: this.packageId },
1951
1988
  s
1952
1989
  );
@@ -1977,9 +2014,11 @@ const Mt = Ot.exports, Lt = {
1977
2014
  }
1978
2015
  }
1979
2016
  };
1980
- var Et = function() {
2017
+ var jt = function() {
1981
2018
  var e = this, t = e._self._c;
1982
- return t("div", { staticClass: "min-h-0 rounded-md border border-gray-200 bg-white text-black" }, [t("div", { staticClass: "flex w-full items-center justify-between bg-gray-100 py-1 pl-4 pr-1 text-sm font-medium text-gray-600" }, [t("div", [e._v(" " + e._s(e.type === "single" ? e.$t("single") : e.type === "radio" || e.toggable ? e.$t("option") : e.$t("base")) + " ")]), e.type !== "single" ? t("CDropdown", { staticClass: "ml-4" }, [t("CButton", { staticClass: "is-thinner opacity-70", attrs: { slot: "trigger", size: "small", type: "text", pattern: "secondary" }, slot: "trigger" }, [e._v(" " + e._s(e.$t("_common:change")) + " ")]), e.toggable ? [t("CDropdownItem", { attrs: { value: e.isSelectedDefault, toggle: !0, "close-on-click": !1 }, on: { click: function(i) {
2019
+ return t("div", { staticClass: "min-h-0 rounded-md border border-gray-200 bg-white text-black" }, [t("div", { staticClass: "flex w-full items-center justify-between bg-gray-100 py-1 pl-4 pr-1 text-sm font-medium text-gray-600" }, [t("div", [e._v(" " + e._s(e.type === "single" ? e.$t("single") : e.type === "radio" || e.toggable ? e.$t("option") : e.$t("base")) + " ")]), e.type !== "single" ? t("CDropdown", { staticClass: "ml-4", scopedSlots: e._u([{ key: "trigger", fn: function() {
2020
+ return [t("CButton", { staticClass: "is-thinner opacity-70", attrs: { size: "small", type: "text", pattern: "secondary" } }, [e._v(" " + e._s(e.$t("_common:change")) + " ")])];
2021
+ }, proxy: !0 }], null, !1, 3891513618) }, [e.toggable ? [t("CDropdownItem", { attrs: { value: e.isSelectedDefault, toggle: !0, "close-on-click": !1 }, on: { click: function(i) {
1983
2022
  return e.$emit("update:isSelectedDefault", !e.isSelectedDefault);
1984
2023
  } } }, [e._v(" " + e._s(e.$t("selected")) + " ")]), t("CDropdownItem", { attrs: { separator: "" } })] : e._e(), t("CDropdownItem", { attrs: { "icon-left": "arrow-up", disabled: !e.moveOptions.up }, on: { click: function(i) {
1985
2024
  return e.$emit("move", -1);
@@ -2027,20 +2066,20 @@ var Et = function() {
2027
2066
  }` }], staticClass: "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", on: { click: function(i) {
2028
2067
  return e.onArticleAdd({ openModal: !0 });
2029
2068
  } } }, [t("CIcon", { attrs: { type: "zap", size: "16", "stroke-width": "2.5" } })], 1)]), t("Pricing", e._g({ attrs: { _document: e._document, "base-path": `${e._value.basePath}`, "package-id": e.packageId } }, e.$listeners))], 1)], 1)]);
2030
- }, zt = [], Bt = /* @__PURE__ */ u(
2031
- Lt,
2032
- Et,
2033
- zt,
2069
+ }, Nt = [], Ht = /* @__PURE__ */ u(
2070
+ Ft,
2071
+ jt,
2072
+ Nt,
2034
2073
  !1,
2035
2074
  null,
2036
- "667ca0c1"
2075
+ "51ec9229"
2037
2076
  );
2038
- const Wt = Bt.exports, jt = (s) => (s || []).slice(0, 1).map((e) => ({
2077
+ const qt = Ht.exports, Ut = (s) => (s || []).slice(0, 1).map((e) => ({
2039
2078
  ...e,
2040
2079
  isSelected: !0,
2041
2080
  isSelectedDefault: !0,
2042
2081
  toggable: !1
2043
- })), Ft = (s) => {
2082
+ })), Gt = (s) => {
2044
2083
  const e = o(s, "0.data.prices.type") || "fixed";
2045
2084
  return (s || []).map((t, i) => ({
2046
2085
  ...t,
@@ -2058,7 +2097,7 @@ const Wt = Bt.exports, jt = (s) => (s || []).slice(0, 1).map((e) => ({
2058
2097
  }
2059
2098
  }
2060
2099
  }));
2061
- }, Nt = (s = []) => {
2100
+ }, Kt = (s = []) => {
2062
2101
  let e = !1;
2063
2102
  return s.map((t) => {
2064
2103
  const i = {
@@ -2073,16 +2112,16 @@ const Wt = Bt.exports, jt = (s) => (s || []).slice(0, 1).map((e) => ({
2073
2112
  return (i.isSelected || i.isSelectedDefault) && (e = !0), i;
2074
2113
  }, []);
2075
2114
  };
2076
- function Ht(s, ...e) {
2115
+ function Yt(s, ...e) {
2077
2116
  if (s === "single")
2078
- return jt(...e);
2117
+ return Ut(...e);
2079
2118
  if (s === "checkbox")
2080
- return Ft(...e);
2119
+ return Gt(...e);
2081
2120
  if (s === "radio")
2082
- return Nt(...e);
2121
+ return Kt(...e);
2083
2122
  throw new Error(`Package filter type '${s}' is not implemented`);
2084
2123
  }
2085
- const qt = {
2124
+ const Zt = {
2086
2125
  name: "PackageGroupEdit",
2087
2126
  i18nOptions: {
2088
2127
  namespaces: "PackageGroupEdit",
@@ -2120,9 +2159,12 @@ const qt = {
2120
2159
  }
2121
2160
  },
2122
2161
  components: {
2123
- ErrorCallout: P,
2124
- PackageItem: Wt,
2125
- PackageGroupSelect: Oe
2162
+ ErrorCallout: V,
2163
+ PackageItem: qt,
2164
+ PackageGroupSelect: We,
2165
+ CCallout: W,
2166
+ CDropdown: x,
2167
+ CDropdownItem: b
2126
2168
  },
2127
2169
  mixins: [
2128
2170
  y([
@@ -2231,18 +2273,18 @@ const qt = {
2231
2273
  let { packages: e, articles: t } = this.persistedGroup;
2232
2274
  if (!e.length)
2233
2275
  return;
2234
- if (s !== this.persistedGroup.type && (e = Ht(s, e)), s === "single" && t.length) {
2276
+ if (s !== this.persistedGroup.type && (e = Yt(s, e)), s === "single" && t.length) {
2235
2277
  const [{ packageId: n }] = e;
2236
2278
  t = t.filter((a) => a.packageId === n);
2237
2279
  }
2238
- const i = Pe(
2280
+ const i = Oe(
2239
2281
  [...this._document.allArticles || [], ...t || []],
2240
2282
  (n) => n._uniqueId
2241
2283
  );
2242
2284
  this.$emit("input", { key: "articles", value: i }), this.$emit("input", { key: `${[this._value.packages]}`, value: e });
2243
2285
  },
2244
2286
  addPackage(s = {}) {
2245
- const e = te(), t = this.type === "checkbox" && this.packages.length ? this.packages[0].data.prices.type : "fixed", i = this.currency || this.defaultCurrency, n = {
2287
+ const e = oe(), t = this.type === "checkbox" && this.packages.length ? this.packages[0].data.prices.type : "fixed", i = this.currency || this.defaultCurrency, n = {
2246
2288
  isSelected: this.type === "single",
2247
2289
  isSelectedDefault: this.type === "single",
2248
2290
  toggable: !0,
@@ -2316,14 +2358,16 @@ const qt = {
2316
2358
  return s > 0 && (t.up = !0), s < e - 1 && (t.down = !0), t;
2317
2359
  },
2318
2360
  moveItem(s, e) {
2319
- const t = T(this.packages, s, e);
2361
+ const t = A(this.packages, s, e);
2320
2362
  this.$emit("input", { key: this._value.packages, value: t });
2321
2363
  }
2322
2364
  }
2323
2365
  };
2324
- var Ut = function() {
2366
+ var Jt = function() {
2325
2367
  var e = this, t = e._self._c;
2326
- return t("div", { staticClass: "package-group-root font-inter" }, [e.type ? [t("div", { staticStyle: { position: "absolute", right: "0", top: "-10px", transform: "translateY(-100%)", "z-index": "2" } }, [t("CDropdown", [t("CButton", { attrs: { slot: "trigger", type: "none", size: "normal", pattern: "secondary", icon: "more-horizontal", circle: "" }, slot: "trigger" }), t("CDropdownItem", { on: { click: e.onResetType } }, [e._v(e._s(e.$t("_common:change", { thing: e.$t("_common:price.proposal").toLowerCase() })))]), t("CDropdownItem", { attrs: { value: !!e.hideGroupPrice, "close-on-click": !1, toggle: "" }, on: { input: function(i) {
2368
+ return t("div", { staticClass: "package-group-root font-inter" }, [e.type ? [t("div", { staticStyle: { position: "absolute", right: "0", top: "-10px", transform: "translateY(-100%)", "z-index": "2" } }, [t("CDropdown", { scopedSlots: e._u([{ key: "trigger", fn: function() {
2369
+ return [t("CButton", { attrs: { type: "none", size: "normal", pattern: "secondary", icon: "more-horizontal", circle: "" } })];
2370
+ }, proxy: !0 }]) }, [t("CDropdownItem", { on: { click: e.onResetType } }, [e._v(e._s(e.$t("_common:change", { thing: e.$t("_common:price.proposal").toLowerCase() })))]), t("CDropdownItem", { attrs: { value: !!e.hideGroupPrice, "close-on-click": !1, toggle: "" }, on: { input: function(i) {
2327
2371
  e.hideGroupPrice = i;
2328
2372
  } } }, [e._v(" " + e._s(e.$t("hideGroupPrice")) + " ")])], 1)], 1), e.type === "checkbox" && !e.internalPackages.find((i) => i.toggable === !1) ? t("CCallout", { staticClass: "w-full", attrs: { title: e.$t("base") } }, [t("div", { staticClass: "pb-4" }, [e._v(" " + e._s(e.$t("basePlaceholder")) + " ")]), t("CButton", { staticStyle: { "font-weight": "600" }, attrs: { type: "secondary", size: "small" }, on: { click: function(i) {
2329
2373
  return e.addPackage({
@@ -2388,15 +2432,15 @@ var Ut = function() {
2388
2432
  } } }, [e._v(" " + e._s(e.$t("add")) + " ")])], 1)], 1) : e._e()] : t("div", [t("PackageGroupSelect", { on: { input: function(i) {
2389
2433
  return e.onSelectType(i);
2390
2434
  } } }), e.validator.$invalid && e.validator.$dirty ? t("ErrorCallout", { staticStyle: { "padding-bottom": "calc(1.5 * var(--rem))" }, attrs: { message: e.$t("error.selectType") } }) : e._e()], 1)], 2);
2391
- }, Gt = [], Kt = /* @__PURE__ */ u(
2392
- qt,
2393
- Ut,
2394
- Gt,
2435
+ }, Qt = [], Xt = /* @__PURE__ */ u(
2436
+ Zt,
2437
+ Jt,
2438
+ Qt,
2395
2439
  !1,
2396
2440
  null,
2397
- "c6ce4c7e"
2441
+ "c254d910"
2398
2442
  );
2399
- const oi = Kt.exports;
2443
+ const mi = Xt.exports;
2400
2444
  export {
2401
- oi as default
2445
+ mi as default
2402
2446
  };