@cling-se/widget 0.13.0 → 0.13.2

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 (136) hide show
  1. package/README.md +27 -22
  2. package/dist/{AddClientCallout-92b43564.js → AddClientCallout-7LpWNu29.js} +11 -16
  3. package/dist/{AnswerModal-b22aab96.js → AnswerModal-DnTU4eo8.js} +1931 -1948
  4. package/dist/{AttachmentItem-39196508.js → AttachmentItem-DcwbrFUh.js} +15 -18
  5. package/dist/{BaseDatePicker-8be0c5ee.js → BaseDatePicker-BpyeJH3N.js} +139 -142
  6. package/dist/{BaseInput-779cb5b2.js → BaseInput-DJreiE5M.js} +77 -56
  7. package/dist/{BaseUpload-941ca869.js → BaseUpload-iosxX2-N.js} +208 -212
  8. package/dist/{BlockMedia-bf89f8a9.js → BlockMedia-DnbdVEZz.js} +6 -8
  9. package/dist/{CCallout-4239825f.js → CCallout-CgviPbdr.js} +26 -16
  10. package/dist/{CDropdownItem-d0cd42d6.js → CDropdownItem-CTJ55d4m.js} +51 -50
  11. package/dist/{CField-9b72b886.js → CField-FGP7ehRq.js} +75 -58
  12. package/dist/{CPhoneFormat-34b4c650.js → CPhoneFormat-8u5dmTPd.js} +5 -7
  13. package/dist/{CSlider.vue_vue_type_style_index_0_lang-c1638d8a.js → CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-Dc_pbPEA.js} +6 -8
  14. package/dist/{ClientAutocomplete-0d21002e.js → ClientAutocomplete-hcl0bJxO.js} +11 -13
  15. package/dist/{ClientModal-9b8173e2.js → ClientModal-B8PkUqY2.js} +25 -32
  16. package/dist/{ColorPicker-3d06f308.js → ColorPicker-6AIHrfJ5.js} +5 -7
  17. package/dist/{CompanyModal-2e203a3a.js → CompanyModal-H4hHfy7Y.js} +28 -30
  18. package/dist/{ContentWrapper-71bc374a.js → ContentWrapper-CHZtfhFI.js} +25 -43
  19. package/dist/{CoverBlockSettings-b6c200ee.js → CoverBlockSettings-etwL5N5l.js} +20 -31
  20. package/dist/{DocAnswer-d4ea9b74.js → DocAnswer-Udn1ItYd.js} +5 -12
  21. package/dist/{DocDetails-ea2635ac.js → DocDetails-BQz-is7P.js} +47 -59
  22. package/dist/{DocForm-cff1c78e.js → DocForm-Cvuxr89v.js} +4869 -4944
  23. package/dist/{DocFormSend-d0979323.js → DocFormSend-Bo6YPSMr.js} +15 -33
  24. package/dist/DocLinks-DlWyanFQ.js +38 -0
  25. package/dist/{DocModalBase-77df9b3d.js → DocModalBase-BnuOPozg.js} +8 -10
  26. package/dist/{DocPrint-d39100c7.js → DocPrint-Uw8zz2tr.js} +6 -10
  27. package/dist/{DocReceipt-cf0e772b.js → DocReceipt-DsRzRjD8.js} +11 -15
  28. package/dist/{DocSendReminder-dca2775e.js → DocSendReminder-BEEEh-L9.js} +2 -6
  29. package/dist/{DocTextEditor-5676c56f.js → DocTextEditor-C-qeLSQa.js} +2509 -2529
  30. package/dist/{DocTimeline-5911b608.js → DocTimeline-Bz29bHJu.js} +26 -37
  31. package/dist/{DocumentClient-eca72dd7.js → DocumentClient-1O7wxh-X.js} +15 -22
  32. package/dist/{DocumentLayout-8104d93d.js → DocumentLayout-BrN5peVY.js} +4510 -4527
  33. package/dist/{DocumentLogotype-c43c4bbb.js → DocumentLogotype-Bbas4MsY.js} +20 -22
  34. package/dist/DocumentVoided-Dy-pp_ng.js +25 -0
  35. package/dist/{EmbedInput-02971bf6.js → EmbedInput-bXXwMP4u.js} +9 -12
  36. package/dist/{EmbedSettings-575fae0e.js → EmbedSettings-BA2THNrd.js} +6 -9
  37. package/dist/ErrorCallout-Dvy9895L.js +28 -0
  38. package/dist/{FilePreviewModal-c1d2d5e7.js → FilePreviewModal-r84Ah3lE.js} +8 -14
  39. package/dist/{Flag-1aceeff5.js → Flag-CDN9A_59.js} +18 -20
  40. package/dist/{HeaderSettings-993f8c98.js → HeaderSettings-DoDFhLcR.js} +34 -49
  41. package/dist/{ImageSelectModal-5dfe4a29.js → ImageSelectModal-D6ifkvIw.js} +12 -20
  42. package/dist/{ImageUploadWrapper-1e38bbe2.js → ImageUploadWrapper-K0-MmL-L.js} +356 -384
  43. package/dist/{Index-a7779d2a.js → Index-3p6X7Ln-.js} +24 -26
  44. package/dist/{Index-57800d9c.js → Index-B26J4tXQ.js} +7 -9
  45. package/dist/{Index-7cbe4a17.js → Index-B6gB5CD3.js} +6 -8
  46. package/dist/{Index-ec8820ee.js → Index-B6u3OUGH.js} +20 -23
  47. package/dist/{Index-bc0d3abe.js → Index-BN64idjX.js} +18 -31
  48. package/dist/{Index-50b0a9b8.js → Index-BNGaREiU.js} +14 -21
  49. package/dist/{Index-fa4f462a.js → Index-BNeg0lcx.js} +13 -15
  50. package/dist/{Index-4350bb0f.js → Index-BQVjSt_5.js} +29 -29
  51. package/dist/Index-BVNgUe07.js +21 -0
  52. package/dist/{Index-be8b14a8.js → Index-Be-J2RvQ.js} +8 -11
  53. package/dist/{Index-33635702.js → Index-Btlub0dK.js} +11 -13
  54. package/dist/{Index-46b2296e.js → Index-BtzGGZEN.js} +459 -510
  55. package/dist/{Index-c6a8a298.js → Index-ByCpvqCC.js} +16 -21
  56. package/dist/{Index-8a956c1b.js → Index-CSg7HLqX.js} +8 -10
  57. package/dist/{Index-08737451.js → Index-CUZJomAi.js} +10 -12
  58. package/dist/{Index-9a0233b0.js → Index-Cj_3udAp.js} +12 -21
  59. package/dist/{Index-13e229bb.js → Index-CnOdi4ux.js} +4 -6
  60. package/dist/{Index-c1c7db19.js → Index-DT9AWIQ2.js} +12 -15
  61. package/dist/Index-DWHl_jys.js +24 -0
  62. package/dist/{Index-cfc393ae.js → Index-Di3ibm8r.js} +51 -58
  63. package/dist/Index-Dk-kPbWy.js +52 -0
  64. package/dist/Index-Dl87oWQa.js +49 -0
  65. package/dist/{Index-c4296623.js → Index-DnDY3FUU.js} +9 -11
  66. package/dist/{Index-45c7841a.js → Index-DoKh3I_O.js} +19 -26
  67. package/dist/{Index-2c960d57.js → Index-DvA5sZ1U.js} +7 -9
  68. package/dist/{Index-670097a7.js → Index-DwlzPadK.js} +233 -273
  69. package/dist/{Index-e9f705f3.js → Index-ID37TIgR.js} +2 -4
  70. package/dist/Index-TPRXPN4a.js +26 -0
  71. package/dist/{Index-9b7b4516.js → Index-YdyeCcFX.js} +80 -90
  72. package/dist/{Index-a1097b66.js → Index-b0dDsObZ.js} +5 -9
  73. package/dist/{Index-677b2c85.js → Index-bIYFzizT.js} +4 -6
  74. package/dist/{Index-04f332ec.js → Index-d5iMi4y5.js} +116 -118
  75. package/dist/{Index-2504f599.js → Index-oYQ9EfP9.js} +16 -18
  76. package/dist/{Index-cfa81e3f.js → Index-phsroK51.js} +6 -8
  77. package/dist/{InputToggleRow-a0dc7e03.js → InputToggleRow-ClHkgn7s.js} +3 -5
  78. package/dist/{ManualPopover-6cf3f592.js → ManualPopover-DrhgZvGC.js} +1 -3
  79. package/dist/{MediaWrapper-2c2e3d44.js → MediaWrapper-BxNEJOT7.js} +3 -6
  80. package/dist/{NotBindingText-12f78064.js → NotBindingText-BhKMdYBN.js} +5 -7
  81. package/dist/{PackageGroup-75a1ad26.js → PackageGroup--pDNkIMj.js} +35 -59
  82. package/dist/{PdfTerms-5686a37b.js → PdfTerms-BL34ex7f.js} +11 -18
  83. package/dist/{PdfViewer-d1d05125.js → PdfViewer-CPSINxc8.js} +25 -29
  84. package/dist/{PlainHtml-6cc2bace.js → PlainHtml-Dc76U4EV.js} +5 -7
  85. package/dist/{PriceHeader-e45b65bc.js → PriceHeader-CEGF-DO3.js} +113 -130
  86. package/dist/SearchApi-D4yY2KZj.js +161 -0
  87. package/dist/{Setup-bf823254.js → Setup-BJIY_mWN.js} +9 -11
  88. package/dist/{TermsSettings-7a077b22.js → TermsSettings-DM4pvL-n.js} +6 -12
  89. package/dist/{ThemeColorRow-aad0248e.js → ThemeColorRow-D7TCU3ap.js} +8 -10
  90. package/dist/{ToggleBinding-abd0832e.js → ToggleBinding-CSgFUF6o.js} +7 -9
  91. package/dist/{UploadModal-42302f2b.js → UploadModal-Cz7o7DeT.js} +16 -19
  92. package/dist/{VideoPlayerInput-1c6cbf06.js → VideoPlayerInput-Db0RRtb5.js} +6 -8
  93. package/dist/{VideoPlayerSettings-5ec723e1.js → VideoPlayerSettings-BgbNuWbP.js} +7 -11
  94. package/dist/{VideoSelectModal-16acfd43.js → VideoSelectModal-BIKeCzUZ.js} +20 -28
  95. package/dist/{answerDocumentMixin-97b33f14.js → answerDocumentMixin-Bqg9Of1S.js} +5 -5
  96. package/dist/{debounce-b0ffdee0.js → debounce-DceKdgy2.js} +3 -3
  97. package/dist/{dom-962579a6.js → dom-CPYqHOIw.js} +2 -2
  98. package/dist/{focusDrawerMixin-1d99a268.js → focusDrawerMixin-Cx41U1xU.js} +1 -1
  99. package/dist/{formComponentsInstall-6ccace37.js → formComponentsInstall-CWgaR4yB.js} +1198 -1171
  100. package/dist/{formDrawerState-a7b5832a.js → formDrawerState-DLCSwrgc.js} +1 -1
  101. package/dist/{formValidationMixin-7216cb94.js → formValidationMixin-CsLym0iM.js} +2 -2
  102. package/dist/{index-7690fb79.js → index-0kj8-T7-.js} +39 -44
  103. package/dist/{index-6caf947c.js → index-4MqvoLi4.js} +3 -5
  104. package/dist/{index-93d3e2cb.js → index-By9c7IPL.js} +41 -59
  105. package/dist/{index-d73fd8ca.js → index-C16hoSRM.js} +5 -3
  106. package/dist/{index-ef3da59c.js → index-C6C4uskP.js} +14 -16
  107. package/dist/{IsPremiumPreStep-42eeebac.js → index-Cp7dG8Zm.js} +531 -566
  108. package/dist/index.es.js +3 -3
  109. package/dist/index.umd.js +1019 -1028
  110. package/dist/{main-2c8b76b7.js → main-DBw231uy.js} +21733 -21943
  111. package/dist/{mapFormMixin-c2bc089c.js → mapFormMixin-BrtcYsT9.js} +1 -2
  112. package/dist/{vuedraggable.umd-e89c3d5e.js → omit-DQqb9hkZ.js} +143 -133
  113. package/dist/{publicSenderState-e6458640.js → publicSenderState-BysO0Mzz.js} +1 -1
  114. package/dist/{splitpanes-ba7897bf.js → splitpanes-BHUVsCZF.js} +38 -42
  115. package/dist/style.css +2 -2
  116. package/dist/{throttle-4f3f879a.js → throttle-DKrISvLg.js} +2 -2
  117. package/dist/{tinycolor-f780e5ca.js → tinycolor-Be3bF6zy.js} +6 -6
  118. package/dist/{tippy.esm-a855665a.js → tippy.esm-yjYH8SnL.js} +226 -232
  119. package/dist/{utils-4d39389a.js → utils-DP30AdJH.js} +1 -1
  120. package/package.json +3 -4
  121. package/dist/DocLinks-48aa6dd6.js +0 -41
  122. package/dist/DocumentVoided-2d93ef71.js +0 -27
  123. package/dist/ErrorCallout-05a4796b.js +0 -30
  124. package/dist/Index-1cb59290.js +0 -23
  125. package/dist/Index-2a88c858.js +0 -54
  126. package/dist/Index-5fb421de.js +0 -26
  127. package/dist/Index-6f6fc018.js +0 -28
  128. package/dist/Index-98c7217d.js +0 -61
  129. package/dist/SearchApi-410c081e.js +0 -167
  130. package/dist/index-805c56e4.js +0 -4
  131. package/dist/index-a1d51619.js +0 -14
  132. /package/dist/{CField.vue_vue_type_style_index_0_lang-4ed993c7.js → CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js} +0 -0
  133. /package/dist/{anime.es-e284c852.js → anime.es-BrPTThYb.js} +0 -0
  134. /package/dist/{color-c1606adc.js → color-TdtKxwVa.js} +0 -0
  135. /package/dist/{i18nMessages-6b279c15.js → i18nMessages-Chz_lxGG.js} +0 -0
  136. /package/dist/{vuex.esm-4a0fff7c.js → vuex.esm-DKGl8mcw.js} +0 -0
@@ -1,22 +1,15 @@
1
- import { aT as B, aU as A, aV as E, aW as z, aX as W, aY as F, j, aZ as N, b as o, n as c, s as H, a_ as x, az as U, a$ as w, b0 as q, ak as f, aa as G, g as p, v as k, b1 as K, al as Y, b2 as Z, b3 as J, b4 as C, p as X, O as g, x as Q, z as ee, b5 as te, r as ie, R as se } from "./main-2c8b76b7.js";
2
- import { m as h, a as v } from "./vuex.esm-4a0fff7c.js";
3
- import { m as y } from "./mapFormMixin-c2bc089c.js";
4
- import { E as P } from "./ErrorCallout-05a4796b.js";
5
- import { T as ae } from "./DocTextEditor-5676c56f.js";
6
- import { o as S, d as ne } from "./vuedraggable.umd-e89c3d5e.js";
7
- import { W as re } from "./DocumentLayout-8104d93d.js";
8
- import { C as oe } from "./tippy.esm-a855665a.js";
9
- import { v as le } from "./index-805c56e4.js";
10
- import { S as ce } from "./SearchApi-410c081e.js";
11
- import { w as ue } from "./CDropdownItem-d0cd42d6.js";
12
- import { B as V } from "./BaseInput-779cb5b2.js";
13
- import "./dom-962579a6.js";
14
- import "./CSlider.vue_vue_type_style_index_0_lang-c1638d8a.js";
15
- import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
16
- import "./ManualPopover-6cf3f592.js";
17
- import "./ColorPicker-3d06f308.js";
18
- import "./color-c1606adc.js";
19
- import "./debounce-b0ffdee0.js";
1
+ import { m as y } from "./mapFormMixin-BrtcYsT9.js";
2
+ import { E as A } from "./ErrorCallout-Dvy9895L.js";
3
+ import { aF as E, aG as S, aH as z, aI as B, aJ as W, aK as F, k as j, aL as N, n as l, r as H, aM as b, g as p, u as k, aC as q, aN as w, aO as U, am as f, a1 as G, aP as K, an as Y, aQ as Z, aR as J, aS as C, p as Q, b as o, O as g, w as X, y as ee, aT as te, q as ie, R as se } from "./main-DBw231uy.js";
4
+ import { m as h, a as v } from "./vuex.esm-DKGl8mcw.js";
5
+ import { T as ae } from "./DocTextEditor-C-qeLSQa.js";
6
+ import { W as ne } from "./DocumentLayout-BrN5peVY.js";
7
+ import { o as P, d as re } from "./omit-DQqb9hkZ.js";
8
+ import { C as oe } from "./tippy.esm-yjYH8SnL.js";
9
+ import { S as ce } from "./SearchApi-D4yY2KZj.js";
10
+ import { v as le } from "./index-C16hoSRM.js";
11
+ import { w as ue } from "./CDropdownItem-CTJ55d4m.js";
12
+ import { B as V } from "./BaseInput-DJreiE5M.js";
20
13
  const de = [
21
14
  "unit",
22
15
  "m2",
@@ -36,20 +29,20 @@ const de = [
36
29
  ];
37
30
  function pe() {
38
31
  }
39
- var he = pe, b = B, me = he, fe = A, ve = 1 / 0, ge = b && 1 / fe(new b([, -0]))[1] == ve ? function(i) {
40
- return new b(i);
41
- } : me, ye = ge, _e = E, ke = z, $e = W, xe = F, be = ye, we = A, Ce = 200;
32
+ var he = pe, x = E, me = he, fe = S, ve = 1 / 0, ge = x && 1 / fe(new x([, -0]))[1] == ve ? function(i) {
33
+ return new x(i);
34
+ } : me, ye = ge, _e = z, ke = B, $e = W, be = F, xe = ye, we = S, Ce = 200;
42
35
  function Ie(i, e, t) {
43
- var s = -1, n = ke, a = i.length, r = !0, l = [], u = l;
36
+ var s = -1, n = ke, a = i.length, r = !0, c = [], u = c;
44
37
  if (t)
45
38
  r = !1, n = $e;
46
39
  else if (a >= Ce) {
47
- var _ = e ? null : be(i);
40
+ var _ = e ? null : xe(i);
48
41
  if (_)
49
42
  return we(_);
50
- r = !1, n = xe, u = new _e();
43
+ r = !1, n = be, u = new _e();
51
44
  } else
52
- u = e ? [] : l;
45
+ u = e ? [] : c;
53
46
  e:
54
47
  for (; ++s < a; ) {
55
48
  var d = i[s], m = e ? e(d) : d;
@@ -57,65 +50,116 @@ function Ie(i, e, t) {
57
50
  for (var I = u.length; I--; )
58
51
  if (u[I] === m)
59
52
  continue e;
60
- e && u.push(m), l.push(d);
53
+ e && u.push(m), c.push(d);
61
54
  } else
62
- n(u, m, t) || (u !== l && u.push(m), l.push(d));
55
+ n(u, m, t) || (u !== c && u.push(m), c.push(d));
63
56
  }
64
- return l;
57
+ return c;
65
58
  }
66
- var Te = Ie, Ae = N, Pe = Te;
67
- function Se(i, e) {
68
- return i && i.length ? Pe(i, Ae(e)) : [];
59
+ var Te = Ie, Ae = N, Se = Te;
60
+ function Pe(i, e) {
61
+ return i && i.length ? Se(i, Ae(e)) : [];
69
62
  }
70
- var Ve = Se;
71
- const De = /* @__PURE__ */ j(Ve), Re = (i) => (i || []).slice(0, 1).map((e) => ({
72
- ...e,
73
- isSelected: !0,
74
- isSelectedDefault: !0,
75
- toggable: !1
76
- })), Oe = (i) => {
77
- const e = o(i, "0.data.prices.type") || "fixed";
78
- return (i || []).map((t, s) => ({
79
- ...t,
80
- toggable: !0,
81
- ...s === 0 ? {
82
- isSelected: !0,
83
- isSelectedDefault: !0,
84
- toggable: !1
85
- } : null,
86
- data: {
87
- ...t.data,
88
- prices: {
89
- ...t.data ? t.data.prices : null,
90
- type: e
63
+ var Ve = Pe;
64
+ const De = /* @__PURE__ */ j(Ve), Re = {
65
+ name: "PackageGroupSelect",
66
+ i18nOptions: {
67
+ namespaces: "PackageGroupSelect",
68
+ messages: {
69
+ en: {
70
+ title: "What do you want to offer?",
71
+ typeOptions: {
72
+ single: {
73
+ title: "Single Option",
74
+ subTitle: "Offer one package."
75
+ },
76
+ radio: {
77
+ title: "Packages",
78
+ subTitle: "Offer several packages and let your client choose <strong>one<strong>."
79
+ },
80
+ checkbox: {
81
+ title: "Multi Options",
82
+ subTitle: "Offer many packages and let your client select <strong>multiple</strong> ones."
83
+ }
84
+ }
85
+ },
86
+ sv: {
87
+ title: "Vad vill du erbjuda för prisförslag?",
88
+ typeOptions: {
89
+ single: {
90
+ title: "Ett alternativ",
91
+ subTitle: "Erbjud ett paket."
92
+ },
93
+ radio: {
94
+ title: "Paket",
95
+ subTitle: "Erbjud flera paket och låt din kund välja <strong>ett</strong> av paketen."
96
+ },
97
+ checkbox: {
98
+ title: "Flera val",
99
+ subTitle: "Erbjud många paket som din kund välja <strong>flera</strong> utav."
100
+ }
101
+ }
91
102
  }
92
103
  }
93
- }));
94
- }, Me = (i = []) => {
95
- let e = !1;
96
- return i.map((t) => {
97
- const s = {
98
- ...t,
99
- // if any earlier pkg is selected, deselect pkg, otherwise keep as is
100
- ...e ? {
101
- isSelected: !1,
102
- isSelectedDefault: !1
103
- } : null,
104
- toggable: !0
104
+ },
105
+ inject: ["parentSize"],
106
+ data() {
107
+ return {
108
+ options: [
109
+ {
110
+ value: "single",
111
+ background: "hsl(209, 94%, 73%)",
112
+ title: this.$t("typeOptions.single.title"),
113
+ subTitle: this.$t("typeOptions.single.subTitle")
114
+ },
115
+ {
116
+ value: "radio",
117
+ background: "hsl(222, 96%, 73%)",
118
+ title: this.$t("typeOptions.radio.title"),
119
+ subTitle: this.$t("typeOptions.radio.subTitle")
120
+ },
121
+ {
122
+ value: "checkbox",
123
+ background: "hsl(241, 95%, 73%)",
124
+ title: this.$t("typeOptions.checkbox.title"),
125
+ subTitle: this.$t("typeOptions.checkbox.subTitle")
126
+ }
127
+ ]
105
128
  };
106
- return (s.isSelected || s.isSelectedDefault) && (e = !0), s;
107
- }, []);
129
+ }
108
130
  };
109
- function Le(i, ...e) {
110
- if (i === "single")
111
- return Re(...e);
112
- if (i === "checkbox")
113
- return Oe(...e);
114
- if (i === "radio")
115
- return Me(...e);
116
- throw new Error(`Package filter type '${i}' is not implemented`);
117
- }
118
- const Be = {
131
+ var Oe = function() {
132
+ var e = this, t = e._self._c;
133
+ 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(s, n) {
134
+ return t("div", { key: n, staticClass: "package-group-option", style: { backgroundColor: s.background }, on: { click: function(a) {
135
+ return e.$emit("input", s.value);
136
+ } } }, [t("div", { staticClass: "package-group-option__illustration" }, [s.value === "single" ? t("div", { staticClass: "package-group-option__illustration-card animate" }, [e._m(0, !0)]) : e._e(), s.value === "radio" ? e._l(3, function(a) {
137
+ return t("div", { key: a, staticClass: "package-group-option__illustration-card", class: { animate: a === 2 } }, [t("div", { staticStyle: { width: "8px", height: "8px", "border-radius": "50%", "margin-right": "10px" }, style: a === 2 && {
138
+ boxShadow: `0 0 0 1px white, 0 0 0 2px ${s.background}`,
139
+ backgroundColor: s.background
140
+ } }), e._m(1, !0)]);
141
+ }) : e._e(), s.value === "checkbox" ? e._l(3, function(a) {
142
+ 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: s.background } }, [t("CIcon", { attrs: { type: a !== 3 ? "check" : "empty", "stroke-width": "5", size: "8" } })], 1), e._m(2, !0)]);
143
+ }) : e._e()], 2), t("div", [t("div", { staticClass: "package-group-option__title" }, [e._v(" " + e._s(s.title) + " ")]), t("div", { staticClass: "package-group-option__subtitle", domProps: { innerHTML: e._s(s.subTitle) } })])]);
144
+ }), 0)])]);
145
+ }, Le = [function() {
146
+ var i = this, e = i._self._c;
147
+ 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
+ }, function() {
149
+ var i = this, e = i._self._c;
150
+ 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" } })]);
151
+ }, function() {
152
+ var i = this, e = i._self._c;
153
+ 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
+ }], Me = /* @__PURE__ */ l(
155
+ Re,
156
+ Oe,
157
+ Le,
158
+ !1,
159
+ null,
160
+ "b67c5afd"
161
+ );
162
+ const Ee = Me.exports, ze = {
119
163
  name: "CPriceInput",
120
164
  components: {
121
165
  CInput: H,
@@ -179,7 +223,7 @@ const Be = {
179
223
  }
180
224
  },
181
225
  suffixValue() {
182
- const i = x(this.internalCurrency);
226
+ const i = b(this.internalCurrency);
183
227
  switch (this.priceType) {
184
228
  case "openAcc":
185
229
  return `${i}/${this.unitLabel || this.$t("_common:unitType.unit")}`;
@@ -202,7 +246,7 @@ const Be = {
202
246
  }
203
247
  }
204
248
  };
205
- var Ee = function() {
249
+ var Be = function() {
206
250
  var e = this, t = e._self._c;
207
251
  return t("CInput", e._g(e._b({ key: e.internalCurrency + e.priceType, ref: "priceInput", style: e.isCurrencyDropdownOpen && { zIndex: 99 }, attrs: { size: e.$attrs.size, placeholder: e.$attrs.placeholder, type: "number" }, model: { value: e.internalValue, callback: function(s) {
208
252
  e.internalValue = s;
@@ -213,125 +257,15 @@ var Ee = function() {
213
257
  } }], null, !1, 1723986040), model: { value: e.internalCurrency, callback: function(s) {
214
258
  e.internalCurrency = s;
215
259
  }, expression: "internalCurrency" } }) : t("div", [e._v(e._s(e.suffixValue))])], 1)], 2);
216
- }, ze = [], We = /* @__PURE__ */ c(
217
- Be,
218
- Ee,
260
+ }, We = [], Fe = /* @__PURE__ */ l(
219
261
  ze,
262
+ Be,
263
+ We,
220
264
  !1,
221
265
  null,
222
- null,
223
- null,
224
266
  null
225
267
  );
226
- const D = We.exports, T = {
227
- isDeductable: !1,
228
- isRut: !1,
229
- greenRot15: !1,
230
- greenRot20: !1,
231
- greenRot50: !1
232
- }, $ = (i, e = "", t) => {
233
- let s = {
234
- ...i,
235
- updatedAt: (/* @__PURE__ */ new Date()).toISOString()
236
- // Trigger updatedAt as it us used to decide which houseWork to prioritize
237
- };
238
- return typeof t < "u" && (s[t] = e), Object.keys(T).includes(t) && e && (s = {
239
- ...s,
240
- ...T,
241
- [t]: !0
242
- }), U(s.quantity) !== "number" && (s.quantity = 0), w(s);
243
- }, R = ({
244
- stored: i,
245
- current: e,
246
- hidePrice: t = !1,
247
- activeHouseWorkType: s
248
- }) => {
249
- let n = q({
250
- ...i,
251
- quantity: 1,
252
- showPrice: !t,
253
- id: null,
254
- ArticleId: i.id,
255
- packageId: e.packageId
256
- });
257
- if (s) {
258
- const a = (u = []) => u.reduce((_, d) => ({ ..._, [d]: !1 }), {}), l = Object.values(
259
- S({
260
- rot: "isDeductable",
261
- rut: "isRut",
262
- greenRot15: "greenRot15",
263
- greenRot20: "greenRot20",
264
- greenRot50: "greenRot50"
265
- }, [s])
266
- );
267
- l.some((u) => !!n[u]) && (n = { ...n, ...a(l) });
268
- }
269
- return n;
270
- }, Fe = (i, e = null) => {
271
- const t = x(i.currency, e);
272
- switch (i.priceType) {
273
- case "approx":
274
- return `${G.t("_common:approx")} ${t}`;
275
- case "openAcc":
276
- return `${t}/${f(i.unitType)}`;
277
- case "markup":
278
- return "%";
279
- default:
280
- return t;
281
- }
282
- }, O = {
283
- en: {
284
- namePlaceholder: "Service or product name",
285
- openModalTooltip: "Edit amount and unit",
286
- hidePriceLabel: "Hide price for client",
287
- saveAndAddTooltip: "Save and quick-add",
288
- priceTypeTooltips: {
289
- fixed: "The service / product is offered at a fixed price",
290
- approx: "Show that the price is approximate",
291
- openAcc: "Pricing on demand. E.g. charging per hour",
292
- markup: "Show that you take a percentage markup"
293
- },
294
- priceTypeShort: {
295
- approx: "Approximate price",
296
- markup: "Markup",
297
- openAcc: "Open Account"
298
- },
299
- validations: {
300
- name: {
301
- maxLength: "Max length of name is 255 characters"
302
- }
303
- }
304
- },
305
- sv: {
306
- namePlaceholder: "T.ex. arbete & material",
307
- openModalTooltip: "Justera antal / enhet",
308
- hidePriceLabel: "Dölj pris för kund",
309
- saveAndAddTooltip: "Spara och lägg till ny",
310
- priceTypeTooltips: {
311
- fixed: "Tjänsten/varan erbjuds till fast pris",
312
- approx: "Markera att priset är ungefärligt",
313
- openAcc: "Tjänsten / varan erbjuds löpandes",
314
- markup: "Markera att du tar ett procentuellt påslag"
315
- },
316
- priceTypeShort: {
317
- approx: "Ca. pris",
318
- markup: "Påslag",
319
- openAcc: "Löp. pris"
320
- },
321
- validations: {
322
- name: {
323
- maxLength: "Namnet får vara max 255 tecken långt"
324
- }
325
- }
326
- }
327
- }, M = {
328
- article: {
329
- name: {
330
- maxLength: le.maxLength(255)
331
- }
332
- }
333
- };
334
- const je = {
268
+ const D = Fe.exports, je = {
335
269
  name: "ArticleAutocomplete",
336
270
  components: {
337
271
  SearchApi: ce
@@ -445,59 +379,164 @@ const je = {
445
379
  }
446
380
  this.scrollToHighlighted();
447
381
  }
448
- },
449
- scrollToHighlighted() {
450
- !this.$refs.dropdown || !this.$refs.dropdown.children || !this.$refs.dropdown.children[this.selectedIndex] || this.$refs.dropdown.children[this.selectedIndex].scrollIntoView({
451
- block: "nearest"
452
- });
382
+ },
383
+ scrollToHighlighted() {
384
+ !this.$refs.dropdown || !this.$refs.dropdown.children || !this.$refs.dropdown.children[this.selectedIndex] || this.$refs.dropdown.children[this.selectedIndex].scrollIntoView({
385
+ block: "nearest"
386
+ });
387
+ }
388
+ }
389
+ };
390
+ var Ne = function() {
391
+ var e = this, t = e._self._c;
392
+ return t("div", { class: { "is-open": e.isOpen }, staticStyle: { position: "relative" }, on: { "&keydown": function(s) {
393
+ return e.onKeydown.apply(null, arguments);
394
+ } } }, [t("SearchApi", { attrs: { "custom-search": {
395
+ article: !0,
396
+ extensionArticle: !0,
397
+ project: !1,
398
+ user: !1
399
+ } }, scopedSlots: e._u([{ key: "default", fn: function({ fetch: s }) {
400
+ return [t("CInput", e._b({ ref: "input", staticClass: "r-input", attrs: { value: e.value, type: e.tag, "auto-resize": !0 }, on: { input: function(n) {
401
+ return e.search(s, n);
402
+ }, focus: e.onFocus, blur: e.onBlur }, nativeOn: { keydown: [function(n) {
403
+ return !n.type.indexOf("key") && e._k(n.keyCode, "tab", 9, n.key, "Tab") ? null : e.hideResults.apply(null, arguments);
404
+ }, function(n) {
405
+ return !n.type.indexOf("key") && e._k(n.keyCode, "escape", void 0, n.key, void 0) ? null : e.hideResults.apply(null, arguments);
406
+ }] } }, "CInput", {
407
+ ...e.$attrs,
408
+ ...e.$props
409
+ }, !1), [e._t("prefix", null, { slot: "prefix" }), e._t("suffix", null, { slot: "suffix" })], 2)];
410
+ } }], null, !0) }), e.isOpen ? t("div", { ref: "dropdown", staticClass: "r-container" }, e._l(e.searchResults, function(s, n) {
411
+ return t("div", { key: n, staticClass: "r-item", class: { active: e.selectedIndex === n }, on: { "!click": function(a) {
412
+ return a.stopPropagation(), e.onSelect(s);
413
+ } } }, [t("div", { staticClass: "r-item-title truncate-text" }, [e._v(e._s(s.name))]), t("div", { staticClass: "r-item-details" }, [s.externalReference && s.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: s.externalReference.service, size: "14" } })], 1) : e._e(), s.article_no ? t("div", [e._v(e._s(s.article_no))]) : e._e(), s.price ? t("div", [e._v(" " + e._s(e.priceFormat(s.price, { currency: s.currency })) + " ")]) : e._e(), s.vat ? t("div", [e._v(" " + e._s(e.$t("vat.sharedTitle").capitalize()) + " " + e._s(s.vat) + "% ")]) : e._e()]), e.selectedIndex === n ? t("div", { staticClass: "r-item-icon" }, [t("CIcon", { attrs: { type: "corner-down-left", size: "16" } })], 1) : e._e()]);
414
+ }), 0) : e._e()], 1);
415
+ }, He = [], qe = /* @__PURE__ */ l(
416
+ je,
417
+ Ne,
418
+ He,
419
+ !1,
420
+ null,
421
+ "d068ad40"
422
+ );
423
+ const R = qe.exports, T = {
424
+ isDeductable: !1,
425
+ isRut: !1,
426
+ greenRot15: !1,
427
+ greenRot20: !1,
428
+ greenRot50: !1
429
+ }, $ = (i, e = "", t) => {
430
+ let s = {
431
+ ...i,
432
+ updatedAt: (/* @__PURE__ */ new Date()).toISOString()
433
+ // Trigger updatedAt as it us used to decide which houseWork to prioritize
434
+ };
435
+ return typeof t < "u" && (s[t] = e), Object.keys(T).includes(t) && e && (s = {
436
+ ...s,
437
+ ...T,
438
+ [t]: !0
439
+ }), q(s.quantity) !== "number" && (s.quantity = 0), w(s);
440
+ }, O = ({
441
+ stored: i,
442
+ current: e,
443
+ hidePrice: t = !1,
444
+ activeHouseWorkType: s
445
+ }) => {
446
+ let n = U({
447
+ ...i,
448
+ quantity: 1,
449
+ showPrice: !t,
450
+ id: null,
451
+ ArticleId: i.id,
452
+ packageId: e.packageId
453
+ });
454
+ if (s) {
455
+ const a = (u = []) => u.reduce((_, d) => ({ ..._, [d]: !1 }), {}), c = Object.values(
456
+ P({
457
+ rot: "isDeductable",
458
+ rut: "isRut",
459
+ greenRot15: "greenRot15",
460
+ greenRot20: "greenRot20",
461
+ greenRot50: "greenRot50"
462
+ }, [s])
463
+ );
464
+ c.some((u) => !!n[u]) && (n = { ...n, ...a(c) });
465
+ }
466
+ return n;
467
+ }, Ue = (i, e = null) => {
468
+ const t = b(i.currency, e);
469
+ switch (i.priceType) {
470
+ case "approx":
471
+ return `${G.t("_common:approx")} ${t}`;
472
+ case "openAcc":
473
+ return `${t}/${f(i.unitType)}`;
474
+ case "markup":
475
+ return "%";
476
+ default:
477
+ return t;
478
+ }
479
+ }, L = {
480
+ en: {
481
+ namePlaceholder: "Service or product name",
482
+ openModalTooltip: "Edit amount and unit",
483
+ hidePriceLabel: "Hide price for client",
484
+ saveAndAddTooltip: "Save and quick-add",
485
+ priceTypeTooltips: {
486
+ fixed: "The service / product is offered at a fixed price",
487
+ approx: "Show that the price is approximate",
488
+ openAcc: "Pricing on demand. E.g. charging per hour",
489
+ markup: "Show that you take a percentage markup"
490
+ },
491
+ priceTypeShort: {
492
+ approx: "Approximate price",
493
+ markup: "Markup",
494
+ openAcc: "Open Account"
495
+ },
496
+ validations: {
497
+ name: {
498
+ maxLength: "Max length of name is 255 characters"
499
+ }
500
+ }
501
+ },
502
+ sv: {
503
+ namePlaceholder: "T.ex. arbete & material",
504
+ openModalTooltip: "Justera antal / enhet",
505
+ hidePriceLabel: "Dölj pris för kund",
506
+ saveAndAddTooltip: "Spara och lägg till ny",
507
+ priceTypeTooltips: {
508
+ fixed: "Tjänsten/varan erbjuds till fast pris",
509
+ approx: "Markera att priset är ungefärligt",
510
+ openAcc: "Tjänsten / varan erbjuds löpandes",
511
+ markup: "Markera att du tar ett procentuellt påslag"
512
+ },
513
+ priceTypeShort: {
514
+ approx: "Ca. pris",
515
+ markup: "Påslag",
516
+ openAcc: "Löp. pris"
517
+ },
518
+ validations: {
519
+ name: {
520
+ maxLength: "Namnet får vara max 255 tecken långt"
521
+ }
453
522
  }
454
523
  }
455
- };
456
- var Ne = function() {
457
- var e = this, t = e._self._c;
458
- return t("div", { class: { "is-open": e.isOpen }, staticStyle: { position: "relative" }, on: { "&keydown": function(s) {
459
- return e.onKeydown.apply(null, arguments);
460
- } } }, [t("SearchApi", { attrs: { "custom-search": {
461
- article: !0,
462
- extensionArticle: !0,
463
- project: !1,
464
- user: !1
465
- } }, scopedSlots: e._u([{ key: "default", fn: function({ fetch: s }) {
466
- return [t("CInput", e._b({ ref: "input", staticClass: "r-input", attrs: { value: e.value, type: e.tag, "auto-resize": !0 }, on: { input: function(n) {
467
- return e.search(s, n);
468
- }, focus: e.onFocus, blur: e.onBlur }, nativeOn: { keydown: [function(n) {
469
- return !n.type.indexOf("key") && e._k(n.keyCode, "tab", 9, n.key, "Tab") ? null : e.hideResults.apply(null, arguments);
470
- }, function(n) {
471
- return !n.type.indexOf("key") && e._k(n.keyCode, "escape", void 0, n.key, void 0) ? null : e.hideResults.apply(null, arguments);
472
- }] } }, "CInput", {
473
- ...e.$attrs,
474
- ...e.$props
475
- }, !1), [e._t("prefix", null, { slot: "prefix" }), e._t("suffix", null, { slot: "suffix" })], 2)];
476
- } }], null, !0) }), e.isOpen ? t("div", { ref: "dropdown", staticClass: "r-container" }, e._l(e.searchResults, function(s, n) {
477
- return t("div", { key: n, staticClass: "r-item", class: { active: e.selectedIndex === n }, on: { "!click": function(a) {
478
- return a.stopPropagation(), e.onSelect(s);
479
- } } }, [t("div", { staticClass: "r-item-title truncate-text" }, [e._v(e._s(s.name))]), t("div", { staticClass: "r-item-details" }, [s.externalReference && s.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("BaseIcon", { staticStyle: { color: "white" }, attrs: { type: s.externalReference.service, size: "14" } })], 1) : e._e(), s.article_no ? t("div", [e._v(e._s(s.article_no))]) : e._e(), s.price ? t("div", [e._v(" " + e._s(e.priceFormat(s.price, { currency: s.currency })) + " ")]) : e._e(), s.vat ? t("div", [e._v(" " + e._s(e.$t("vat.sharedTitle").capitalize()) + " " + e._s(s.vat) + "% ")]) : e._e()]), e.selectedIndex === n ? t("div", { staticClass: "r-item-icon" }, [t("BaseIcon", { attrs: { type: "corner-down-left", size: "16" } })], 1) : e._e()]);
480
- }), 0) : e._e()], 1);
481
- }, He = [], Ue = /* @__PURE__ */ c(
482
- je,
483
- Ne,
484
- He,
485
- !1,
486
- null,
487
- "dc6e13ee",
488
- null,
489
- null
490
- );
491
- const L = Ue.exports;
492
- const qe = {
524
+ }, M = {
525
+ article: {
526
+ name: {
527
+ maxLength: le.maxLength(255)
528
+ }
529
+ }
530
+ }, Ge = {
531
+ // eslint-disable-next-line vue/no-reserved-component-names
493
532
  name: "Article",
494
533
  i18nOptions: {
495
534
  namespaces: "Article",
496
- messages: O
535
+ messages: L
497
536
  },
498
537
  components: {
499
- ErrorCallout: P,
500
- ArticleAutocomplete: L,
538
+ ErrorCallout: A,
539
+ ArticleAutocomplete: R,
501
540
  CPriceInput: D
502
541
  },
503
542
  props: {
@@ -545,7 +584,7 @@ const qe = {
545
584
  data() {
546
585
  return {
547
586
  updateData: $,
548
- addSavedArticle: R,
587
+ addSavedArticle: O,
549
588
  articleUnitLabel: f,
550
589
  widthCompact: 580,
551
590
  visualDisable: !1
@@ -568,7 +607,7 @@ const qe = {
568
607
  price: n,
569
608
  vat: a,
570
609
  discount: r,
571
- discountType: l
610
+ discountType: c
572
611
  } = this.article;
573
612
  if (e !== "fixed" && i.push({ title: this.$t(`priceTypeShort.${e}`) }), K(this.article)) {
574
613
  const u = Y(this.article);
@@ -577,7 +616,6 @@ const qe = {
577
616
  });
578
617
  }
579
618
  return t && ["fixed", "approx"].includes(e) && (s !== "unit" || t > 1) && i.push({
580
- // eslint-disable-next-line prefer-template
581
619
  title: f(this.article.unitType, {
582
620
  count: t,
583
621
  includeCount: !0
@@ -593,8 +631,7 @@ const qe = {
593
631
  })
594
632
  }
595
633
  }), r && i.push({
596
- // eslint-disable-next-line prefer-template
597
- title: "-" + (l === "fixed" ? k(r, {
634
+ title: "-" + (c === "fixed" ? k(r, {
598
635
  withVat: this.isIncVat ? a : !1,
599
636
  currency: this.article.currency
600
637
  }) : `${r / 100} %`),
@@ -617,7 +654,7 @@ const qe = {
617
654
  }
618
655
  }
619
656
  };
620
- var Ge = function() {
657
+ var Ke = function() {
621
658
  var e = this, t = e._self._c;
622
659
  return t("div", { staticClass: "article-wrapper", class: {
623
660
  "has-details": e.details.length,
@@ -647,7 +684,7 @@ var Ge = function() {
647
684
  delay: { show: 300, hide: 0 }
648
685
  }` }], staticClass: "article-button fade-in", attrs: { slot: "suffix" }, on: { click: function(s) {
649
686
  return e.$emit("open-modal");
650
- } }, slot: "suffix" }, [t("BaseIcon", { 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(s) {
687
+ } }, 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(s) {
651
688
  return e.updateArticle(s, "price");
652
689
  }, "update:currency": function(s) {
653
690
  return e.$emit("update:currency", s);
@@ -655,25 +692,22 @@ var Ge = function() {
655
692
  e.onTotalPriceInputFocus(), e.$emit("focus");
656
693
  } }, nativeOn: { keydown: function(s) {
657
694
  return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.$emit("add");
658
- } } }), e.hideControls ? e._e() : [t("BaseIcon", { staticClass: "a-control-button close-button fade-in", attrs: { circle: "", type: "x", size: "18" }, nativeOn: { click: function(s) {
695
+ } } }), e.hideControls ? e._e() : [t("CIcon", { staticClass: "a-control-button close-button fade-in", attrs: { circle: "", type: "x", size: "18" }, nativeOn: { click: function(s) {
659
696
  e.enableRemove && e.$emit("remove");
660
- } } }), t("BaseIcon", { staticClass: "a-control-button fade-in move-button article-draggable-handle", class: { "c-hidden": !e.enableRemove }, attrs: { circle: "", type: "handle", size: "18" } })]], 2), e.details.length ? t("div", { staticClass: "article-details-wrapper", staticStyle: { cursor: "pointer" }, on: { click: function(s) {
697
+ } } }), t("CIcon", { staticClass: "a-control-button fade-in move-button article-draggable-handle", class: { "c-hidden": !e.enableRemove }, attrs: { circle: "", type: "handle", size: "18" } })]], 2), e.details.length ? t("div", { staticClass: "article-details-wrapper", staticStyle: { cursor: "pointer" }, on: { click: function(s) {
661
698
  return e.$emit("open-modal");
662
- } } }, e._l(e.details, function({ title: s, icon: n, subTitle: a = "", detailClass: r = "" }, l) {
663
- return t("div", { key: l, staticClass: "article-details-item", class: [r] }, [e._v(" " + e._s(s) + " "), n ? t("div", { domProps: { innerHTML: e._s(n) } }) : e._e(), e._v(" " + e._s(a) + " ")]);
699
+ } } }, e._l(e.details, function({ title: s, icon: n, subTitle: a = "", detailClass: r = "" }, c) {
700
+ return t("div", { key: c, staticClass: "article-details-item", class: [r] }, [e._v(" " + e._s(s) + " "), n ? t("div", { domProps: { innerHTML: e._s(n) } }) : e._e(), e._v(" " + e._s(a) + " ")]);
664
701
  }), 0) : e._e(), e.$v.$invalid && e.$v.$dirty ? t("ErrorCallout", { attrs: { message: e.errorMessage(e.$v) } }) : e._e()], 1);
665
- }, Ke = [], Ye = /* @__PURE__ */ c(
666
- qe,
702
+ }, Ye = [], Ze = /* @__PURE__ */ l(
667
703
  Ge,
668
704
  Ke,
705
+ Ye,
669
706
  !1,
670
707
  null,
671
- "9720807d",
672
- null,
673
- null
708
+ "44d89db4"
674
709
  );
675
- const Ze = Ye.exports;
676
- const Je = {
710
+ const Je = Ze.exports, Qe = {
677
711
  props: {
678
712
  canForward: {
679
713
  type: Boolean,
@@ -751,18 +785,15 @@ var Xe = function() {
751
785
  } } }, [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(s) {
752
786
  return e.$emit("go", 1);
753
787
  } } }, [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" } })])])]);
754
- }, Qe = [], et = /* @__PURE__ */ c(
755
- Je,
756
- Xe,
788
+ }, et = [], tt = /* @__PURE__ */ l(
757
789
  Qe,
790
+ Xe,
791
+ et,
758
792
  !1,
759
793
  null,
760
- "7d125e97",
761
- null,
762
- null
794
+ "226f5608"
763
795
  );
764
- const tt = et.exports;
765
- const it = {
796
+ const it = tt.exports, st = {
766
797
  name: "ArticleUnitEditModal",
767
798
  i18nOptions: {
768
799
  namespaces: "ArticleUnitEditModal",
@@ -862,7 +893,7 @@ const it = {
862
893
  this.$emit("close");
863
894
  },
864
895
  async onDrop({ removedIndex: i, addedIndex: e }) {
865
- i === null && e === null || i !== e && (this.idList = C(this.idList, i, e), await X(
896
+ i === null && e === null || i !== e && (this.idList = C(this.idList, i, e), await Q(
866
897
  "/unitType/setPositions",
867
898
  { ids: this.idList },
868
899
  { invalidateCache: { type: "unitType" } }
@@ -870,11 +901,11 @@ const it = {
870
901
  }
871
902
  }
872
903
  };
873
- var st = function() {
904
+ var at = function() {
874
905
  var e = this, t = e._self._c;
875
906
  return t("div", { staticClass: "modal-overlay font-inter", on: { "&click": function(s) {
876
907
  return s.target !== s.currentTarget ? null : e.close.apply(null, arguments);
877
- } } }, [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("BaseIcon", { 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(s) {
908
+ } } }, [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(s) {
878
909
  e.$set(e.selectedValue, "value", typeof s == "string" ? s.trim() : s);
879
910
  }, 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(s, n) {
880
911
  return t("DragItem", { key: s.id }, [t("div", { staticClass: "unit-modal-list-item", class: { "is-editing": e.selectedValue.id === s.id }, on: { "&mouseover": function(a) {
@@ -883,24 +914,21 @@ var st = function() {
883
914
  e.hoverIndex = null;
884
915
  }, click: function(a) {
885
916
  return e.onEdit(s);
886
- } } }, [t("div", { staticClass: "drag-handle" }, [t("BaseIcon", { staticClass: "text-gray-300", attrs: { type: "handle", size: "16" } })], 1), t("div", { staticStyle: { "padding-left": "0.5em" } }, [e._v(" " + e._s(s.label) + " ")]), t("span", { directives: [{ name: "show", rawName: "v-show", value: e.removeConfirmIndex === n, expression: "removeConfirmIndex === i" }], staticClass: "delete-confirm" }, [e._v(" " + e._s(e.$t("_common:remove")) + "? ")]), t("div", { staticClass: "unittype-buttons" }, [e.hoverIndex === n || e.removeConfirmIndex === n ? t("CButton", { attrs: { type: e.removeConfirmIndex === n ? "danger" : "none", pattern: e.removeConfirmIndex === n ? "primary" : "tertiary", circle: "", icon: "x", size: "small" }, on: { click: function(a) {
917
+ } } }, [t("div", { staticClass: "drag-handle" }, [t("CIcon", { staticClass: "text-gray-300", attrs: { type: "handle", size: "16" } })], 1), t("div", { staticStyle: { "padding-left": "0.5em" } }, [e._v(" " + e._s(s.label) + " ")]), t("span", { directives: [{ name: "show", rawName: "v-show", value: e.removeConfirmIndex === n, expression: "removeConfirmIndex === i" }], staticClass: "delete-confirm" }, [e._v(" " + e._s(e.$t("_common:remove")) + "? ")]), t("div", { staticClass: "unittype-buttons" }, [e.hoverIndex === n || e.removeConfirmIndex === n ? t("CButton", { attrs: { type: e.removeConfirmIndex === n ? "danger" : "none", pattern: e.removeConfirmIndex === n ? "primary" : "tertiary", circle: "", icon: "x", size: "small" }, on: { click: function(a) {
887
918
  return a.stopPropagation(), a.preventDefault(), e.remove(s.id, n);
888
919
  }, blur: function(a) {
889
920
  e.removeConfirmIndex = null;
890
921
  } } }) : e._e(), t("CButton", { attrs: { icon: "edit", size: "small", type: "none", pattern: "tertiary", circle: "" } })], 1)])]);
891
922
  }), 1)], 1)])])]);
892
- }, at = [], nt = /* @__PURE__ */ c(
893
- it,
923
+ }, nt = [], rt = /* @__PURE__ */ l(
894
924
  st,
895
925
  at,
926
+ nt,
896
927
  !1,
897
928
  null,
898
- "cd39480b",
899
- null,
900
- null
929
+ "136d8414"
901
930
  );
902
- const rt = nt.exports;
903
- const ot = {
931
+ const ot = rt.exports, ct = {
904
932
  name: "ArticleUnitSelect",
905
933
  props: {
906
934
  value: {
@@ -936,7 +964,7 @@ const ot = {
936
964
  }),
937
965
  openEditModal() {
938
966
  this.$modal.show(
939
- rt,
967
+ ot,
940
968
  {},
941
969
  {},
942
970
  {
@@ -959,29 +987,27 @@ var lt = function() {
959
987
  }, { slot: "trigger" }), e._l(e.unitItems, function(s, n) {
960
988
  return t("CDropdownItem", { key: `${s}-${n}`, attrs: { value: s } }, [e._v(" " + e._s(e.articleUnitLabel(s)) + " ")]);
961
989
  }), 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);
962
- }, ct = [], ut = /* @__PURE__ */ c(
963
- ot,
964
- lt,
990
+ }, ut = [], dt = /* @__PURE__ */ l(
965
991
  ct,
992
+ lt,
993
+ ut,
966
994
  !1,
967
995
  null,
968
- "e7364b17",
969
- null,
970
- null
996
+ "ff74de30"
971
997
  );
972
- const dt = ut.exports;
973
- const pt = {
998
+ const pt = dt.exports, ht = {
974
999
  name: "ArticleModal",
975
1000
  i18nOptions: {
976
1001
  namespaces: "ArticleModal",
977
- messages: O
1002
+ messages: L
978
1003
  },
979
1004
  components: {
980
- ArticleAutocomplete: L,
981
- ArticleUnitSelect: dt,
982
- ListModalButtons: tt,
1005
+ ArticleAutocomplete: R,
1006
+ ArticleUnitSelect: pt,
1007
+ ListModalButtons: it,
983
1008
  CPriceInput: D
984
1009
  },
1010
+ mixins: [ue],
985
1011
  props: {
986
1012
  _document: {
987
1013
  type: Object,
@@ -1036,13 +1062,12 @@ const pt = {
1036
1062
  })
1037
1063
  }
1038
1064
  },
1039
- mixins: [ue],
1040
1065
  validations: M,
1041
1066
  data() {
1042
1067
  return {
1043
- priceSuffix: Fe,
1068
+ priceSuffix: Ue,
1044
1069
  updateData: $,
1045
- addSavedArticle: R,
1070
+ addSavedArticle: O,
1046
1071
  vatOptions: [
1047
1072
  { value: 25, translation: "25%" },
1048
1073
  { value: 12, translation: "12%" },
@@ -1051,7 +1076,7 @@ const pt = {
1051
1076
  ],
1052
1077
  showDiscountInput: !1,
1053
1078
  setPricesIncVat: !1,
1054
- getCurrencySymbol: x,
1079
+ getCurrencySymbol: b,
1055
1080
  articleUnitLabel: f
1056
1081
  };
1057
1082
  },
@@ -1224,11 +1249,11 @@ const pt = {
1224
1249
  this.$v.$invalid || await this.saveArticle(), this.$emit("add", { openModal: !0 }), this.close();
1225
1250
  },
1226
1251
  focusEl(i) {
1227
- this.$nextTick(
1228
- () => this.$nextTick(() => {
1252
+ this.$nextTick(() => {
1253
+ this.$nextTick(() => {
1229
1254
  this.$refs[i] && this.$refs[i].focus && this.$refs[i].focus();
1230
- })
1231
- );
1255
+ });
1256
+ });
1232
1257
  },
1233
1258
  onTotalPriceInputFocus() {
1234
1259
  this.article.quantity > 1 && this.$nextTick(() => {
@@ -1257,7 +1282,7 @@ const pt = {
1257
1282
  }
1258
1283
  }
1259
1284
  };
1260
- var ht = function() {
1285
+ var mt = function() {
1261
1286
  var e = this, t = e._self._c;
1262
1287
  return t("div", { staticClass: "font-inter", class: {
1263
1288
  "full-screen": e.mq === "sm",
@@ -1266,7 +1291,7 @@ var ht = function() {
1266
1291
  return s.target !== s.currentTarget ? null : e.close.apply(null, arguments);
1267
1292
  } } }, [t("div", { staticClass: "modal-container" }, [e.mq !== "sm" ? t("ListModalButtons", { attrs: { "can-forward": !!e.articleList[e.index + 1], "can-backward": !!e.articleList[e.index - 1] }, on: { close: e.close, go: function(s) {
1268
1293
  return e.onGo(s);
1269
- } } }) : t("div", { staticClass: "modal-close", on: { click: e.close } }, [t("BaseIcon", { attrs: { type: "x" } })], 1), t("transition", { attrs: { name: "slide" } }, [t("div", { key: e.article._uniqueId, staticClass: "modal-main" }, [t("CField", { staticClass: "label-selector", staticStyle: { "margin-bottom": "1.5em" }, attrs: { validator: e.$v.article.name, messages: { maxLength: e.$t("validations.name.maxLength") }, label: e.$t("name").capitalize(), "label-position": "inside" } }, [t("ArticleAutocomplete", { ref: "nameInput", staticClass: "input-selector", attrs: { value: e.article.name, autosize: !0, tag: "textarea", placeholder: "", size: "large" }, on: { input: function(s) {
1294
+ } } }) : t("div", { staticClass: "modal-close", on: { click: e.close } }, [t("CIcon", { attrs: { type: "x" } })], 1), t("transition", { attrs: { name: "slide" } }, [t("div", { key: e.article._uniqueId, staticClass: "modal-main" }, [t("CField", { staticClass: "label-selector", staticStyle: { "margin-bottom": "1.5em" }, attrs: { validator: e.$v.article.name, messages: { maxLength: e.$t("validations.name.maxLength") }, label: e.$t("name").capitalize(), "label-position": "inside" } }, [t("ArticleAutocomplete", { ref: "nameInput", staticClass: "input-selector", attrs: { value: e.article.name, autosize: !0, tag: "textarea", placeholder: "", size: "large" }, on: { input: function(s) {
1270
1295
  return e.updateArticle(s, "name");
1271
1296
  }, select: function(s) {
1272
1297
  e.$emit(
@@ -1301,17 +1326,17 @@ var ht = function() {
1301
1326
  e.updateArticle(Number.parseFloat(s.target.value), "vat");
1302
1327
  } } }, e._l(e.vatOptions, function({ translation: s, value: n }, a) {
1303
1328
  return t("option", { key: a, domProps: { value: n } }, [e._v(" " + e._s(e.$t(`vat.${e.vatType}`)) + " " + e._s(s) + " ")]);
1304
- }), 0) : t("span", { staticClass: "select-css tag-item no-chevron", staticStyle: { display: "inline", "min-height": "initial", background: "hsl(0, 0%, 94%)", "border-color": "hsl(0, 0%, 94%)", color: "hsl(0, 0%, 30%)" } }, [e._v(" " + e._s(e._document.$t("vat").capitalize()) + " "), t("input", { staticStyle: { width: "calc(2.5 * var(--rem))", display: "inline", background: "hsl(0, 0%, 94%)", "border-color": "hsl(0, 0%, 94%)", color: "hsl(0, 0%, 30%)" }, attrs: { type: "number" }, domProps: { value: e.article.vat || 0 }, on: { blur: e.onCustomVatBlur, input: e.onCustomVatInput } }), e._v(" % ")])] : e._e(), e.priceTypeOptions.length ? t("div", { staticClass: "tag-group", staticStyle: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "margin-top": "1em" } }, e._l(e.priceTypeOptions, function({ label: s, value: n, onClick: a, tooltip: r }, l) {
1329
+ }), 0) : t("span", { staticClass: "select-css tag-item no-chevron", staticStyle: { display: "inline", "min-height": "initial", background: "hsl(0, 0%, 94%)", "border-color": "hsl(0, 0%, 94%)", color: "hsl(0, 0%, 30%)" } }, [e._v(" " + e._s(e._document.$t("vat").capitalize()) + " "), t("input", { staticStyle: { width: "calc(2.5 * var(--rem))", display: "inline", background: "hsl(0, 0%, 94%)", "border-color": "hsl(0, 0%, 94%)", color: "hsl(0, 0%, 30%)" }, attrs: { type: "number" }, domProps: { value: e.article.vat || 0 }, on: { blur: e.onCustomVatBlur, input: e.onCustomVatInput } }), e._v(" % ")])] : e._e(), e.priceTypeOptions.length ? t("div", { staticClass: "tag-group", staticStyle: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "margin-top": "1em" } }, e._l(e.priceTypeOptions, function({ label: s, value: n, onClick: a, tooltip: r }, c) {
1305
1330
  return t("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
1306
1331
  content: r,
1307
1332
  delay: { show: 300, hide: 0 }
1308
1333
  }, expression: `{
1309
1334
  content: tooltip,
1310
1335
  delay: { show: 300, hide: 0 }
1311
- }` }], key: s + l, staticClass: "tag-item", class: { active: n }, on: { click: a } }, [e._v(" " + e._s(s) + " ")]);
1336
+ }` }], key: s + c, staticClass: "tag-item", class: { active: n }, on: { click: a } }, [e._v(" " + e._s(s) + " ")]);
1312
1337
  }), 0) : e._e(), t("div", { staticStyle: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "margin-top": "1em" } }, e._l(e.checkboxItems, function({ label: s, value: n, onClick: a }, r) {
1313
1338
  return t("div", { key: s + r, staticClass: "tag-item", class: { active: n }, on: { click: a } }, [e._v(" " + e._s(s) + " ")]);
1314
- }), 0)], 2)], 2)]), t("div", { staticClass: "modal-footer flex" }, [t("CButton", { staticClass: "flex-grow", staticStyle: { padding: "1.75em", height: "4em", "border-radius": "0", "font-size": "16px" }, attrs: { size: "large", type: "secondary", "full-width": "", tabindex: "0" }, on: { click: e.onSaveArticle } }, [e._v(" " + e._s(e.$t("save")) + " ")]), t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
1339
+ }), 0)], 2)], 2)]), t("div", { staticClass: "flex space-x-4 overflow-hidden p-4 md:p-9" }, [t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
1315
1340
  offset: 7,
1316
1341
  html: !0,
1317
1342
  content: `
@@ -1343,19 +1368,16 @@ var ht = function() {
1343
1368
  </div>
1344
1369
  </div>
1345
1370
  \`
1346
- }` }], staticStyle: { padding: "1.75em", height: "4em", "border-radius": "0", "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("BaseIcon", { staticStyle: { margin: "-3px" }, attrs: { type: "zap", size: "21" } })], 1)], 1)], 1)]);
1347
- }, mt = [], ft = /* @__PURE__ */ c(
1348
- pt,
1371
+ }` }], 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)]);
1372
+ }, ft = [], vt = /* @__PURE__ */ l(
1349
1373
  ht,
1350
1374
  mt,
1375
+ ft,
1351
1376
  !1,
1352
1377
  null,
1353
- "b191c9e6",
1354
- null,
1355
- null
1378
+ "ddb87b3c"
1356
1379
  );
1357
- const vt = ft.exports;
1358
- const gt = {
1380
+ const gt = vt.exports, yt = {
1359
1381
  i18nOptions: {
1360
1382
  name: "ArticleListEdit",
1361
1383
  namespaces: "ArticleListEdit",
@@ -1375,10 +1397,11 @@ const gt = {
1375
1397
  }
1376
1398
  },
1377
1399
  components: {
1378
- Article: Ze,
1379
- ArticleModal: vt,
1380
- WithDimensions: re,
1381
- draggable: ne
1400
+ // eslint-disable-next-line vue/no-reserved-component-names
1401
+ Article: Je,
1402
+ ArticleModal: gt,
1403
+ WithDimensions: ne,
1404
+ draggable: re
1382
1405
  },
1383
1406
  mixins: [y([])],
1384
1407
  props: {
@@ -1463,11 +1486,11 @@ const gt = {
1463
1486
  showMessage: p.SHOW_MESSAGE
1464
1487
  }),
1465
1488
  openModal(i, { focusEl: e = "" } = {}) {
1466
- this.selectedIndex = i, this.showModal = !0, e && this.$nextTick(
1467
- () => this.$nextTick(() => {
1489
+ this.selectedIndex = i, this.showModal = !0, e && this.$nextTick(() => {
1490
+ this.$nextTick(() => {
1468
1491
  this.$refs.articleModal && this.$refs.articleModal.focusEl(e);
1469
- })
1470
- );
1492
+ });
1493
+ });
1471
1494
  },
1472
1495
  updateArticleObject(i, e) {
1473
1496
  const t = e;
@@ -1515,7 +1538,7 @@ const gt = {
1515
1538
  greenRot50: "greenRot50"
1516
1539
  }, t = (s = []) => s.reduce((n, a) => ({ ...n, [a]: !1 }), {});
1517
1540
  e[i] ? this.articles.forEach((s, n) => {
1518
- const a = Object.values(S(e, [i]));
1541
+ const a = Object.values(P(e, [i]));
1519
1542
  if (a.some((r) => !!s[r])) {
1520
1543
  const r = { ...s, ...t(a) };
1521
1544
  this.$emit("input", { index: n, value: r });
@@ -1547,7 +1570,7 @@ const gt = {
1547
1570
  }
1548
1571
  }
1549
1572
  };
1550
- var yt = function() {
1573
+ var _t = function() {
1551
1574
  var e = this, t = e._self._c;
1552
1575
  return t("div", [e.showVatToggle ? t("div", { staticClass: "label-text" }, [e._v(" " + e._s(e.$t("vatOption.label")) + " "), t("span", { on: { click: function(s) {
1553
1576
  return e.changeVat();
@@ -1585,49 +1608,15 @@ var yt = function() {
1585
1608
  }, "open-modal": e.openModal, close: function(s) {
1586
1609
  e.showModal = !1;
1587
1610
  } } }) : e._e()], 1)], 1);
1588
- }, _t = [], kt = /* @__PURE__ */ c(
1589
- gt,
1611
+ }, kt = [], $t = /* @__PURE__ */ l(
1590
1612
  yt,
1591
1613
  _t,
1614
+ kt,
1592
1615
  !1,
1593
1616
  null,
1594
- "f46c3f31",
1595
- null,
1596
- null
1597
- );
1598
- const $t = kt.exports;
1599
- const xt = {
1600
- props: {
1601
- value: {
1602
- type: String,
1603
- default: "fixed"
1604
- }
1605
- },
1606
- data() {
1607
- return {
1608
- priceTypeOptions: ["fixed", "approx", "openAcc", "openAccMaxPrice"]
1609
- };
1610
- }
1611
- };
1612
- var bt = function() {
1613
- var e = this, t = e._self._c;
1614
- 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(s) {
1615
- return t("CDropdownItem", { key: s, staticClass: "text-right", attrs: { value: s }, on: { click: function(n) {
1616
- return e.$emit("input", s);
1617
- } } }, [e._v(" " + e._s(e.$t(`price.${s}`)) + " ")]);
1618
- })], 2)], 1);
1619
- }, wt = [], Ct = /* @__PURE__ */ c(
1620
- xt,
1621
- bt,
1622
- wt,
1623
- !1,
1624
- null,
1625
- "13ef0942",
1626
- null,
1627
- null
1617
+ "3e63aac7"
1628
1618
  );
1629
- const It = Ct.exports;
1630
- const Tt = {
1619
+ const bt = $t.exports, xt = {
1631
1620
  name: "MaxTotalInput",
1632
1621
  i18nOptions: {
1633
1622
  namespaces: "MaxTotalInput",
@@ -1659,7 +1648,7 @@ const Tt = {
1659
1648
  },
1660
1649
  data() {
1661
1650
  return {
1662
- getCurrencySymbol: x
1651
+ getCurrencySymbol: b
1663
1652
  };
1664
1653
  },
1665
1654
  computed: {
@@ -1670,27 +1659,52 @@ const Tt = {
1670
1659
  watch: {
1671
1660
  isIncVat(i) {
1672
1661
  let e = g({ amount: this.value }).divide(1.25);
1673
- i || (e = g({ amount: this.value }).multiply((100 + 25) * 0.01)), this.$emit("input", e.getAmount());
1662
+ i || (e = g({ amount: this.value }).multiply(125 * 0.01)), this.$emit("input", e.getAmount());
1674
1663
  }
1675
1664
  }
1676
1665
  };
1677
- var At = function() {
1666
+ var wt = function() {
1678
1667
  var e = this, t = e._self._c;
1679
1668
  return t("div", { staticClass: "flex w-full justify-end" }, [t("BaseInput", { staticStyle: { "max-width": "275px", "margin-top": "calc(1 * var(--rem))" }, attrs: { value: e.value, "is-price": !0, "is-inc-vat": e.isIncVat, vat: 25, placeholder: e.$t("maxTotalLabel") }, on: { input: function(s) {
1680
1669
  return e.$emit("input", s);
1681
1670
  } } }, [t("template", { slot: "prefix" }, [e._v(e._s(e.$t("price.maxPrice").capitalize()))]), t("template", { slot: "suffix" }, [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);
1682
- }, Pt = [], St = /* @__PURE__ */ c(
1683
- Tt,
1671
+ }, Ct = [], It = /* @__PURE__ */ l(
1672
+ xt,
1673
+ wt,
1674
+ Ct,
1675
+ !1,
1676
+ null,
1677
+ "912bdf70"
1678
+ );
1679
+ const Tt = It.exports, At = {
1680
+ props: {
1681
+ value: {
1682
+ type: String,
1683
+ default: "fixed"
1684
+ }
1685
+ },
1686
+ data() {
1687
+ return {
1688
+ priceTypeOptions: ["fixed", "approx", "openAcc", "openAccMaxPrice"]
1689
+ };
1690
+ }
1691
+ };
1692
+ var St = function() {
1693
+ var e = this, t = e._self._c;
1694
+ 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(s) {
1695
+ return t("CDropdownItem", { key: s, staticClass: "text-right", attrs: { value: s }, on: { click: function(n) {
1696
+ return e.$emit("input", s);
1697
+ } } }, [e._v(" " + e._s(e.$t(`price.${s}`)) + " ")]);
1698
+ })], 2)], 1);
1699
+ }, Pt = [], Vt = /* @__PURE__ */ l(
1684
1700
  At,
1701
+ St,
1685
1702
  Pt,
1686
1703
  !1,
1687
1704
  null,
1688
- "b28762b5",
1689
- null,
1690
- null
1705
+ "13ef0942"
1691
1706
  );
1692
- const Vt = St.exports;
1693
- const Dt = {
1707
+ const Dt = Vt.exports, Rt = {
1694
1708
  name: "EditDeduction",
1695
1709
  components: {
1696
1710
  BaseInput: V
@@ -1734,7 +1748,7 @@ const Dt = {
1734
1748
  }
1735
1749
  }
1736
1750
  };
1737
- var Rt = function() {
1751
+ var Ot = function() {
1738
1752
  var e = this, t = e._self._c;
1739
1753
  return t("div", [t("modal", e._b({ attrs: { name: `deduction-modal-${e._uid}` } }, "modal", {
1740
1754
  adaptive: !0,
@@ -1765,21 +1779,18 @@ var Rt = function() {
1765
1779
  } } }, [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(s) {
1766
1780
  return e.$modal.show(`deduction-modal-${e._uid}`);
1767
1781
  } } }, [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);
1768
- }, Ot = [], Mt = /* @__PURE__ */ c(
1769
- Dt,
1782
+ }, Lt = [], Mt = /* @__PURE__ */ l(
1770
1783
  Rt,
1771
1784
  Ot,
1785
+ Lt,
1772
1786
  !1,
1773
1787
  null,
1774
- "e4cd2a8f",
1775
- null,
1776
- null
1788
+ "701dfb4d"
1777
1789
  );
1778
- const Lt = Mt.exports;
1779
- const Bt = {
1790
+ const Et = Mt.exports, zt = {
1780
1791
  name: "Pricing",
1781
1792
  components: {
1782
- EditDeduction: Lt
1793
+ EditDeduction: Et
1783
1794
  },
1784
1795
  props: {
1785
1796
  _document: {
@@ -1875,7 +1886,7 @@ const Bt = {
1875
1886
  }
1876
1887
  }
1877
1888
  };
1878
- var Et = function() {
1889
+ var Bt = function() {
1879
1890
  var e = this, t = e._self._c;
1880
1891
  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: {
1881
1892
  houseWorkManualAmount: `${e.basePath}.data.prices.region.houseWorkManualAmount`
@@ -1884,18 +1895,15 @@ var Et = function() {
1884
1895
  s.action && s.action();
1885
1896
  } } }, [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(s.prefix) + " " + e._s(s.value) + " ")])]);
1886
1897
  }), 0)]);
1887
- }, zt = [], Wt = /* @__PURE__ */ c(
1888
- Bt,
1889
- Et,
1898
+ }, Wt = [], Ft = /* @__PURE__ */ l(
1890
1899
  zt,
1900
+ Bt,
1901
+ Wt,
1891
1902
  !1,
1892
1903
  null,
1893
- "cd252d17",
1894
- null,
1895
- null
1904
+ "d22ef0b4"
1896
1905
  );
1897
- const Ft = Wt.exports;
1898
- const jt = {
1906
+ const jt = Ft.exports, Nt = {
1899
1907
  name: "PackageItemEdit",
1900
1908
  i18nOptions: {
1901
1909
  namespaces: "PackageItemEdit",
@@ -1923,10 +1931,10 @@ const jt = {
1923
1931
  }
1924
1932
  },
1925
1933
  components: {
1926
- ArticleList: $t,
1927
- PriceFormAlternatives: It,
1928
- MaxTotalInput: Vt,
1929
- Pricing: Ft,
1934
+ ArticleList: bt,
1935
+ PriceFormAlternatives: Dt,
1936
+ MaxTotalInput: Tt,
1937
+ Pricing: jt,
1930
1938
  TextEditor: ae
1931
1939
  },
1932
1940
  mixins: [
@@ -1981,7 +1989,7 @@ const jt = {
1981
1989
  },
1982
1990
  internalDescription: {
1983
1991
  get() {
1984
- return Q(
1992
+ return X(
1985
1993
  this.description,
1986
1994
  this._document.textTemplateMap,
1987
1995
  this._document._doc
@@ -2073,7 +2081,7 @@ const jt = {
2073
2081
  }
2074
2082
  }
2075
2083
  };
2076
- var Nt = function() {
2084
+ var Ht = function() {
2077
2085
  var e = this, t = e._self._c;
2078
2086
  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(s) {
2079
2087
  return e.$emit("update:isSelectedDefault", !e.isSelectedDefault);
@@ -2114,7 +2122,7 @@ var Nt = function() {
2114
2122
  e.isFocus = !0;
2115
2123
  }, insert: e.onInsert } }), t("div", { staticClass: "mt-2 flex gap-2" }, [t("div", { 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(s) {
2116
2124
  return e.onArticleAdd();
2117
- } } }, [t("BaseIcon", { staticClass: "mr-1", attrs: { type: "plus", size: "16", "stroke-width": "3" } }), e._v(" " + e._s(e.$t("addButton")) + " ")], 1), t("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
2125
+ } } }, [t("CIcon", { staticClass: "mr-1", attrs: { type: "plus", size: "16", "stroke-width": "3" } }), e._v(" " + e._s(e.$t("addButton")) + " ")], 1), t("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
2118
2126
  content: e.$t("advancedButtonTooltip"),
2119
2127
  offset: 6
2120
2128
  }, expression: `{
@@ -2122,120 +2130,63 @@ var Nt = function() {
2122
2130
  offset: 6
2123
2131
  }` }], 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(s) {
2124
2132
  return e.onArticleAdd({ openModal: !0 });
2125
- } } }, [t("BaseIcon", { 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)]);
2126
- }, Ht = [], Ut = /* @__PURE__ */ c(
2127
- jt,
2133
+ } } }, [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)]);
2134
+ }, qt = [], Ut = /* @__PURE__ */ l(
2128
2135
  Nt,
2129
2136
  Ht,
2137
+ qt,
2130
2138
  !1,
2131
2139
  null,
2132
- "f76b23cd",
2133
- null,
2134
- null
2140
+ "667ca0c1"
2135
2141
  );
2136
- const qt = Ut.exports;
2137
- const Gt = {
2138
- name: "PackageGroupSelect",
2139
- i18nOptions: {
2140
- namespaces: "PackageGroupSelect",
2141
- messages: {
2142
- en: {
2143
- title: "What do you want to offer?",
2144
- typeOptions: {
2145
- single: {
2146
- title: "Single Option",
2147
- subTitle: "Offer one package."
2148
- },
2149
- radio: {
2150
- title: "Packages",
2151
- subTitle: "Offer several packages and let your client choose <strong>one<strong>."
2152
- },
2153
- checkbox: {
2154
- title: "Multi Options",
2155
- subTitle: "Offer many packages and let your client select <strong>multiple</strong> ones."
2156
- }
2157
- }
2158
- },
2159
- sv: {
2160
- title: "Vad vill du erbjuda för prisförslag?",
2161
- typeOptions: {
2162
- single: {
2163
- title: "Ett alternativ",
2164
- subTitle: "Erbjud ett paket."
2165
- },
2166
- radio: {
2167
- title: "Paket",
2168
- subTitle: "Erbjud flera paket och låt din kund välja <strong>ett</strong> av paketen."
2169
- },
2170
- checkbox: {
2171
- title: "Flera val",
2172
- subTitle: "Erbjud många paket som din kund välja <strong>flera</strong> utav."
2173
- }
2174
- }
2142
+ const Gt = Ut.exports, Kt = (i) => (i || []).slice(0, 1).map((e) => ({
2143
+ ...e,
2144
+ isSelected: !0,
2145
+ isSelectedDefault: !0,
2146
+ toggable: !1
2147
+ })), Yt = (i) => {
2148
+ const e = o(i, "0.data.prices.type") || "fixed";
2149
+ return (i || []).map((t, s) => ({
2150
+ ...t,
2151
+ toggable: !0,
2152
+ ...s === 0 ? {
2153
+ isSelected: !0,
2154
+ isSelectedDefault: !0,
2155
+ toggable: !1
2156
+ } : null,
2157
+ data: {
2158
+ ...t.data,
2159
+ prices: {
2160
+ ...t.data ? t.data.prices : null,
2161
+ type: e
2175
2162
  }
2176
2163
  }
2177
- },
2178
- inject: ["parentSize"],
2179
- data() {
2180
- return {
2181
- options: [
2182
- {
2183
- value: "single",
2184
- background: "hsl(209, 94%, 73%)",
2185
- title: this.$t("typeOptions.single.title"),
2186
- subTitle: this.$t("typeOptions.single.subTitle")
2187
- },
2188
- {
2189
- value: "radio",
2190
- background: "hsl(222, 96%, 73%)",
2191
- title: this.$t("typeOptions.radio.title"),
2192
- subTitle: this.$t("typeOptions.radio.subTitle")
2193
- },
2194
- {
2195
- value: "checkbox",
2196
- background: "hsl(241, 95%, 73%)",
2197
- title: this.$t("typeOptions.checkbox.title"),
2198
- subTitle: this.$t("typeOptions.checkbox.subTitle")
2199
- }
2200
- ]
2164
+ }));
2165
+ }, Zt = (i = []) => {
2166
+ let e = !1;
2167
+ return i.map((t) => {
2168
+ const s = {
2169
+ ...t,
2170
+ // if any earlier pkg is selected, deselect pkg, otherwise keep as is
2171
+ ...e ? {
2172
+ isSelected: !1,
2173
+ isSelectedDefault: !1
2174
+ } : null,
2175
+ toggable: !0
2201
2176
  };
2202
- }
2177
+ return (s.isSelected || s.isSelectedDefault) && (e = !0), s;
2178
+ }, []);
2203
2179
  };
2204
- var Kt = function() {
2205
- var e = this, t = e._self._c;
2206
- 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(s, n) {
2207
- return t("div", { key: n, staticClass: "package-group-option", style: { backgroundColor: s.background }, on: { click: function(a) {
2208
- return e.$emit("input", s.value);
2209
- } } }, [t("div", { staticClass: "package-group-option__illustration" }, [s.value === "single" ? t("div", { staticClass: "package-group-option__illustration-card animate" }, [e._m(0, !0)]) : e._e(), s.value === "radio" ? e._l(3, function(a) {
2210
- return t("div", { key: a, staticClass: "package-group-option__illustration-card", class: { animate: a === 2 } }, [t("div", { staticStyle: { width: "8px", height: "8px", "border-radius": "50%", "margin-right": "10px" }, style: a === 2 && {
2211
- boxShadow: `0 0 0 1px white, 0 0 0 2px ${s.background}`,
2212
- backgroundColor: s.background
2213
- } }), e._m(1, !0)]);
2214
- }) : e._e(), s.value === "checkbox" ? e._l(3, function(a) {
2215
- 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: s.background } }, [t("BaseIcon", { attrs: { type: a !== 3 ? "check" : "empty", "stroke-width": "5", size: "8" } })], 1), e._m(2, !0)]);
2216
- }) : e._e()], 2), t("div", [t("div", { staticClass: "package-group-option__title" }, [e._v(" " + e._s(s.title) + " ")]), t("div", { staticClass: "package-group-option__subtitle", domProps: { innerHTML: e._s(s.subTitle) } })])]);
2217
- }), 0)])]);
2218
- }, Yt = [function() {
2219
- var i = this, e = i._self._c;
2220
- 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" } })]);
2221
- }, function() {
2222
- var i = this, e = i._self._c;
2223
- 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" } })]);
2224
- }, function() {
2225
- var i = this, e = i._self._c;
2226
- 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" } })]);
2227
- }], Zt = /* @__PURE__ */ c(
2228
- Gt,
2229
- Kt,
2230
- Yt,
2231
- !1,
2232
- null,
2233
- "7c03c837",
2234
- null,
2235
- null
2236
- );
2237
- const Jt = Zt.exports;
2238
- const Xt = {
2180
+ function Jt(i, ...e) {
2181
+ if (i === "single")
2182
+ return Kt(...e);
2183
+ if (i === "checkbox")
2184
+ return Yt(...e);
2185
+ if (i === "radio")
2186
+ return Zt(...e);
2187
+ throw new Error(`Package filter type '${i}' is not implemented`);
2188
+ }
2189
+ const Qt = {
2239
2190
  name: "PackageGroupEdit",
2240
2191
  i18nOptions: {
2241
2192
  namespaces: "PackageGroupEdit",
@@ -2273,9 +2224,9 @@ const Xt = {
2273
2224
  }
2274
2225
  },
2275
2226
  components: {
2276
- ErrorCallout: P,
2277
- PackageItem: qt,
2278
- PackageGroupSelect: Jt
2227
+ ErrorCallout: A,
2228
+ PackageItem: Gt,
2229
+ PackageGroupSelect: Ee
2279
2230
  },
2280
2231
  mixins: [
2281
2232
  y([
@@ -2384,7 +2335,7 @@ const Xt = {
2384
2335
  let { packages: e, articles: t } = this.persistedGroup;
2385
2336
  if (!e.length)
2386
2337
  return;
2387
- if (i !== this.persistedGroup.type && (e = Le(i, e)), i === "single" && t.length) {
2338
+ if (i !== this.persistedGroup.type && (e = Jt(i, e)), i === "single" && t.length) {
2388
2339
  const [{ packageId: n }] = e;
2389
2340
  t = t.filter((a) => a.packageId === n);
2390
2341
  }
@@ -2474,7 +2425,7 @@ const Xt = {
2474
2425
  }
2475
2426
  }
2476
2427
  };
2477
- var Qt = function() {
2428
+ var Xt = function() {
2478
2429
  var e = this, t = e._self._c;
2479
2430
  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(s) {
2480
2431
  e.hideGroupPrice = s;
@@ -2541,17 +2492,15 @@ var Qt = function() {
2541
2492
  } } }, [e._v(" " + e._s(e.$t("add")) + " ")])], 1)], 1) : e._e()] : t("div", [t("PackageGroupSelect", { on: { input: function(s) {
2542
2493
  return e.onSelectType(s);
2543
2494
  } } }), 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);
2544
- }, ei = [], ti = /* @__PURE__ */ c(
2545
- Xt,
2495
+ }, ei = [], ti = /* @__PURE__ */ l(
2546
2496
  Qt,
2497
+ Xt,
2547
2498
  ei,
2548
2499
  !1,
2549
2500
  null,
2550
- "07f9af2d",
2551
- null,
2552
- null
2501
+ "c6ce4c7e"
2553
2502
  );
2554
- const $i = ti.exports;
2503
+ const mi = ti.exports;
2555
2504
  export {
2556
- $i as default
2505
+ mi as default
2557
2506
  };