@cling-se/widget 0.19.9 → 0.19.11
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.
- package/CHANGELOG.md +17 -0
- package/dist/{AddClientCallout-C400wpa7.js → AddClientCallout-CKHwq8Iu.js} +4 -4
- package/dist/{AnswerModal-C_vekdpA.js → AnswerModal-UScGRb2q.js} +3 -3
- package/dist/{AttachmentItem-CYeH1VVw.js → AttachmentItem-xS69Skyw.js} +4 -4
- package/dist/{BaseUpload-DGLogqK4.js → BaseUpload-Py3haZt6.js} +2 -2
- package/dist/{BlockMedia-Hbm0GWNw.js → BlockMedia-CCDn5B7D.js} +1 -1
- package/dist/{CCallout-BPCwr3uM.js → CCallout-CE7D3DsB.js} +1 -1
- package/dist/{CCurrencyDropdown-CZXWH0mA.js → CCurrencyDropdown-5kM8TPrm.js} +3 -3
- package/dist/{CDropdownItem-B9dja0RC.js → CDropdownItem-B4zcZcfz.js} +2 -2
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-HLxgkrxm.js → CFormField.vue_vue_type_script_setup_true_lang-BVW0KHv4.js} +2 -2
- package/dist/{CPhoneFormat-C1cjsMVZ.js → CPhoneFormat-BAuwHSBY.js} +1 -1
- package/dist/{CPhoneInput-DwcIFaqz.js → CPhoneInput-ePQsc2uK.js} +5 -5
- package/dist/{CPriceInput-C_PfAhRb.js → CPriceInput-Dy3LGjuS.js} +2 -2
- package/dist/{CSelect-D4A_clvT.js → CSelect-DwvTYW00.js} +1 -1
- package/dist/{CSkeleton-h81Vudx0.js → CSkeleton-Bjauuvv8.js} +1 -1
- package/dist/{ClientAutocomplete-B_R7zgvM.js → ClientAutocomplete-BvFTkFH_.js} +3 -3
- package/dist/{ClientModal-CBJgrb_y.js → ClientModal-Di6C8Aiw.js} +8 -8
- package/dist/{ColorPicker-a5yTVc0q.js → ColorPicker-CeSHH9Vf.js} +1 -1
- package/dist/{CompanyModal-sRTrUPOY.js → CompanyModal-CqsYsoHR.js} +7 -7
- package/dist/{ContentWrapper-Cwd6t51-.js → ContentWrapper-DrZ8iTLe.js} +6 -6
- package/dist/{CoverBlockSettings-8tjji9f1.js → CoverBlockSettings-CydujWOk.js} +7 -7
- package/dist/{DocAnswer-D1ZIH1Hn.js → DocAnswer-oum2ebB7.js} +2 -2
- package/dist/{DocDetails-B5_hBzC-.js → DocDetails-BIqp6i5p.js} +4 -4
- package/dist/{DocForm-BKQvY0Ie.js → DocForm-qgtnxIbM.js} +24 -24
- package/dist/{DocFormSend-z0W-xRJP.js → DocFormSend-gUP3oNeu.js} +2 -2
- package/dist/{DocLinks-BgbDU24h.js → DocLinks-BMRihAoi.js} +2 -2
- package/dist/{DocModalBase-CNo1u8TK.js → DocModalBase-Byhr0bKE.js} +1 -1
- package/dist/{DocPrint--UV846r0.js → DocPrint-Dfya0Cjx.js} +1 -1
- package/dist/{DocReceipt-BAkWIKbC.js → DocReceipt-DzueYc7A.js} +2 -2
- package/dist/{DocSendReminder-Bk6IVg0R.js → DocSendReminder-jbDbr3VZ.js} +1 -1
- package/dist/{DocTextEditor-D5zDbbXV.js → DocTextEditor-CwwEkRFq.js} +8 -8
- package/dist/{DocTimeline-KG4zJJOW.js → DocTimeline-iyb4S9j1.js} +2 -2
- package/dist/{DocumentClient-CXSxwjOt.js → DocumentClient-3XePSPGE.js} +5 -5
- package/dist/{DocumentLayout-C-V_5p3r.js → DocumentLayout-CpRX8ZRH.js} +5 -5
- package/dist/{DocumentLogotype-H0f7bO0E.js → DocumentLogotype-YepQtsq5.js} +4 -4
- package/dist/{DocumentVoided-3F7DChD4.js → DocumentVoided-Baipvjx-.js} +1 -1
- package/dist/{EmbedInput-iG-cDNzZ.js → EmbedInput-DQB79FBj.js} +3 -3
- package/dist/{EmbedSettings-DhwFGdKH.js → EmbedSettings-o3HUPHUL.js} +3 -3
- package/dist/{ErrorCallout-CyqQ9iRV.js → ErrorCallout-j0efwRf-.js} +1 -1
- package/dist/{FilePreviewModal-CEUhUuh4.js → FilePreviewModal-CrYf10Ph.js} +2 -2
- package/dist/{Flag-Bza5Ltob.js → Flag-C9t9kUP7.js} +1 -1
- package/dist/{HeaderSettings-kEbuiv0n.js → HeaderSettings-DemdIiEB.js} +9 -9
- package/dist/{ImageSelectModal-MDduQIdS.js → ImageSelectModal-BqjysMij.js} +3 -3
- package/dist/{ImageUploadWrapper-CKJXUAkn.js → ImageUploadWrapper-B-Ulkt_b.js} +2 -2
- package/dist/{Index-BFwz1G_7.js → Index-1BTtSkUW.js} +2 -2
- package/dist/{Index-BXqNV8F_.js → Index-8aFe7Fn8.js} +1 -1
- package/dist/{Index-Bege0Vce.js → Index-B2AIqEQc.js} +6 -6
- package/dist/{Index-DtCuzght.js → Index-B345PtMG.js} +3 -3
- package/dist/{Index-Dqfwe7SG.js → Index-BNzypv7d.js} +2 -2
- package/dist/{Index-DzKdZg0G.js → Index-BYAA_kFy.js} +2 -2
- package/dist/{Index-D4XDugcf.js → Index-BeKIkZw9.js} +8 -8
- package/dist/{Index-DB3keB-X.js → Index-BeiUm3jr.js} +4 -4
- package/dist/{Index-rINXTjpt.js → Index-BgSplzXs.js} +2 -2
- package/dist/{Index-8CyLDQv2.js → Index-BjOx25ue.js} +5 -5
- package/dist/{Index-eJiQmHhr.js → Index-BnhI3MQN.js} +1 -1
- package/dist/{Index-Doc7K3kL.js → Index-Buu-upak.js} +3 -3
- package/dist/{Index-DzugmOmj.js → Index-C1Crethk.js} +2 -2
- package/dist/{Index-dTgmxz_A.js → Index-CDnVJo8h.js} +6 -6
- package/dist/{Index-CNQhKXtr.js → Index-CZTGosBz.js} +5 -5
- package/dist/{Index-437smvNJ.js → Index-C_mYIiaH.js} +3 -3
- package/dist/{Index-zRXdiRpy.js → Index-Ch7Vq5Qm.js} +1 -1
- package/dist/Index-CuslzuEz.js +4 -0
- package/dist/{Index--_tbiloB.js → Index-D7X3b6a0.js} +10 -10
- package/dist/{Index-Bg1kzWCp.js → Index-D7c_zTbq.js} +9 -9
- package/dist/{Index-ClA923dR.js → Index-DMNlO3w6.js} +4 -4
- package/dist/{Index-E7OzmtR_.js → Index-DN1QcYYy.js} +5 -5
- package/dist/{Index-B1tFrOfN.js → Index-DTrL4994.js} +4 -4
- package/dist/{Index-DtDRffCY.js → Index-DVLzlvPr.js} +4 -4
- package/dist/{Index-Rb5n5XoO.js → Index-DXnfSIAI.js} +7 -7
- package/dist/{Index-C46cWm4W.js → Index-DripJuiD.js} +4 -4
- package/dist/{Index-MmvJQvLm.js → Index-DrxIo2da.js} +3 -3
- package/dist/{Index-CHIQWumi.js → Index-DryrFYUb.js} +3 -3
- package/dist/{Index-DQLLCnjH.js → Index-Dx2TEfS9.js} +5 -5
- package/dist/{Index-CGhWvSf9.js → Index-DxoNVHHo.js} +5 -5
- package/dist/{Index-DUM-3B1l.js → Index-_YuGGSUD.js} +8 -8
- package/dist/{Index-CUDi4SEx.js → Index-_b6k81e_.js} +4 -4
- package/dist/{Index-D2A8evjo.js → Index-aehDK94P.js} +4 -4
- package/dist/{Index-DdZo8evS.js → Index-x65RQkcr.js} +457 -422
- package/dist/{Index.vue_vue_type_script_lang-B9979oeS.js → Index.vue_vue_type_script_lang-DIyU4Q6-.js} +2 -2
- package/dist/{InputToggleRow-CO4fZnAC.js → InputToggleRow-GvKd0A5B.js} +1 -1
- package/dist/{ManualPopover-DT4iXoSI.js → ManualPopover-Bm82yXzr.js} +1 -1
- package/dist/{MediaWrapper-CP_1JzGI.js → MediaWrapper-rIcHpRnO.js} +3 -3
- package/dist/{NotBindingText-D9Um3Agp.js → NotBindingText-D6UVvpyn.js} +2 -2
- package/dist/{PackageGroup-BtH12jVM.js → PackageGroup-BkSlTPwU.js} +5 -5
- package/dist/{PdfTerms-sQh93Xit.js → PdfTerms-DFF7qKEk.js} +2 -2
- package/dist/{PdfViewer-DMAcTVND.js → PdfViewer-CmclV0M7.js} +2 -2
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-tY-SurWr.js → PlainHtml.vue_vue_type_script_setup_true_lang-D78UcLmS.js} +1 -1
- package/dist/{PriceHeader-CG6el7O_.js → PriceHeader-CXMHfmpW.js} +7 -7
- package/dist/{SearchApi-B39mMGKy.js → SearchApi-D_OOJLcM.js} +1 -1
- package/dist/{SendForm-F5aQPz8w.js → SendForm-ftEDuhfn.js} +8 -8
- package/dist/{Setup-DuHU2eHC.js → Setup-8-8a3zoh.js} +1 -1
- package/dist/{SmartList-myMj6QGe.js → SmartList-2oAmo6a8.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-Bb2Nqdsz.js → Sortable.vue_vue_type_script_setup_true_lang-sGGmCVtk.js} +1 -1
- package/dist/{TermsSettings-Cb6Xms3f.js → TermsSettings-0INcW3bg.js} +5 -5
- package/dist/{ThemeColorRow-oW3xS1pa.js → ThemeColorRow-DuSdO67W.js} +3 -3
- package/dist/{ToggleBinding-B-F9_nAf.js → ToggleBinding-Db9uIhf-.js} +4 -4
- package/dist/{UploadModal-eBx4Vqyo.js → UploadModal-DJMWrMsy.js} +2 -2
- package/dist/{VideoPlayerInput-CtTe4JW4.js → VideoPlayerInput-B0Myfrw8.js} +4 -4
- package/dist/{VideoPlayerSettings-Cvz5B4JX.js → VideoPlayerSettings-Dt81xwAD.js} +2 -2
- package/dist/{VideoSelectModal-CXI0aN4g.js → VideoSelectModal-NFyePPSf.js} +3 -3
- package/dist/{focusDrawerMixin-DlcYhFw8.js → focusDrawerMixin-BLe8Rj8E.js} +1 -1
- package/dist/{formDrawerState-Cf6Q5cuR.js → formDrawerState-ZdbgwOqD.js} +1 -1
- package/dist/{helpers-Cf9wqfZh.js → helpers-CuDV_1UZ.js} +1 -1
- package/dist/{index-DPlBYqKB.js → index-B5gWKBJf.js} +1 -1
- package/dist/{index-DsvlNA3Q.js → index-B69h-wUl.js} +1 -1
- package/dist/{index-BSCAjn53.js → index-D3TdSXf3.js} +3 -3
- package/dist/{index-Co_PpOtI.js → index-DH6GPqAx.js} +1 -1
- package/dist/{index-BytsFarx.js → index-DVtKtXBe.js} +1 -1
- package/dist/{index-BStFMzD9.js → index-DvEX7etV.js} +8 -8
- package/dist/{index-r5v1Gv17.js → index-q_oCzGqR.js} +6 -6
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +37 -37
- package/dist/{main-BkjAGG46.js → main-CNW7VwKW.js} +215 -207
- package/dist/{mapFormMixin-DLFNPgNO.js → mapFormMixin-BwoTM1UR.js} +2 -2
- package/dist/{omit-CvOSNZN7.js → omit-DNjM7b-D.js} +1 -1
- package/dist/{publicSenderState-DeC1m0ps.js → publicSenderState-WRqhCaVK.js} +1 -1
- package/dist/{splitpanes-CsJipBiG.js → splitpanes-1eHE_Z5P.js} +1 -1
- package/dist/{template-Cvzvayl5.js → template-B0NNp0B9.js} +1 -1
- package/dist/{tippy.esm-JEjGtE5F.js → tippy.esm-sII3vzGZ.js} +5 -5
- package/dist/{useTermsModal-D2gYy-TP.js → useTermsModal-Bfx5QhHZ.js} +4 -4
- package/dist/{utils-DarTPA8c.js → utils-B4O8LxH5.js} +1 -1
- package/dist/{validation-K11g55ZB.js → validation-DSWFkl-3.js} +2 -2
- package/dist/widget.css +1 -1
- package/package.json +1 -1
- package/dist/Index-jQsYOOC3.js +0 -4
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { m as q } from "./mapFormMixin-
|
|
2
|
-
import { C as $e } from "./CCallout-
|
|
3
|
-
import { C as
|
|
4
|
-
import { E as me } from "./ErrorCallout-
|
|
5
|
-
import { c5 as Ae, c6 as he, c7 as Ce, c8 as Pe, c9 as xe, ca as Ve, cb as Se, aK as De, _ as
|
|
6
|
-
import { u as Je } from "./DocumentLayout-
|
|
7
|
-
import { T as Qe } from "./DocTextEditor-
|
|
8
|
-
import { _ as Xe, m as et } from "./Sortable.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { o as fe } from "./omit-
|
|
10
|
-
import { C as
|
|
11
|
-
import { u as ye } from "./index-
|
|
12
|
-
import { S as tt } from "./SearchApi-
|
|
13
|
-
import { m as it } from "./index-
|
|
14
|
-
import { _ as ke } from "./CFormField.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { m as q } from "./mapFormMixin-BwoTM1UR.js";
|
|
2
|
+
import { C as $e } from "./CCallout-CE7D3DsB.js";
|
|
3
|
+
import { C as Y, a as Z, w as Te } from "./CDropdownItem-B4zcZcfz.js";
|
|
4
|
+
import { E as me } from "./ErrorCallout-j0efwRf-.js";
|
|
5
|
+
import { c5 as Ae, c6 as he, c7 as Ce, c8 as Pe, c9 as xe, ca as Ve, cb as Se, aK as De, _ as R, b as v, d, o as a, j as l, t as u, x as V, F as C, n as S, W as Q, e as b, f as p, s as H, m as z, a as E, g as O, w as g, R as B, ai as j, T as ne, an as G, cc as Re, cd as se, aF as Me, a8 as ae, bi as W, aD as Le, ce as Oe, bl as Ee, a4 as U, c as A, u as D, q as I, cf as Ue, cg as Be, c1 as ge, v as We, ch as ve, $ as ze, af as x, al as je, aH as F, V as Fe, a2 as oe, b_ as qe, ab as Ne, ci as He, ae as Ge, ag as Ke, c4 as Ye, cj as re, aE as Ze } from "./main-CNW7VwKW.js";
|
|
6
|
+
import { u as Je } from "./DocumentLayout-CpRX8ZRH.js";
|
|
7
|
+
import { T as Qe } from "./DocTextEditor-CwwEkRFq.js";
|
|
8
|
+
import { _ as Xe, m as et } from "./Sortable.vue_vue_type_script_setup_true_lang-sGGmCVtk.js";
|
|
9
|
+
import { o as fe } from "./omit-DNjM7b-D.js";
|
|
10
|
+
import { C as J } from "./CPriceInput-Dy3LGjuS.js";
|
|
11
|
+
import { u as ye } from "./index-B69h-wUl.js";
|
|
12
|
+
import { S as tt } from "./SearchApi-D_OOJLcM.js";
|
|
13
|
+
import { m as it } from "./index-B5gWKBJf.js";
|
|
14
|
+
import { _ as ke } from "./CFormField.vue_vue_type_script_setup_true_lang-BVW0KHv4.js";
|
|
15
15
|
const nt = [
|
|
16
16
|
"unit",
|
|
17
17
|
"m2",
|
|
@@ -29,62 +29,62 @@ const nt = [
|
|
|
29
29
|
"year",
|
|
30
30
|
"kWh"
|
|
31
31
|
];
|
|
32
|
-
var
|
|
32
|
+
var X, le;
|
|
33
33
|
function st() {
|
|
34
|
-
if (le) return
|
|
34
|
+
if (le) return X;
|
|
35
35
|
le = 1;
|
|
36
36
|
function e() {
|
|
37
37
|
}
|
|
38
|
-
return
|
|
38
|
+
return X = e, X;
|
|
39
39
|
}
|
|
40
|
-
var
|
|
40
|
+
var ee, ce;
|
|
41
41
|
function at() {
|
|
42
|
-
if (ce) return
|
|
42
|
+
if (ce) return ee;
|
|
43
43
|
ce = 1;
|
|
44
44
|
var e = Ae(), t = st(), n = he(), o = 1 / 0, s = e && 1 / n(new e([, -0]))[1] == o ? function(i) {
|
|
45
45
|
return new e(i);
|
|
46
46
|
} : t;
|
|
47
|
-
return
|
|
47
|
+
return ee = s, ee;
|
|
48
48
|
}
|
|
49
|
-
var
|
|
49
|
+
var te, de;
|
|
50
50
|
function ot() {
|
|
51
|
-
if (de) return
|
|
51
|
+
if (de) return te;
|
|
52
52
|
de = 1;
|
|
53
53
|
var e = Ce(), t = Pe(), n = Ve(), o = xe(), s = at(), i = he(), f = 200;
|
|
54
|
-
function
|
|
55
|
-
var w = -1, $ = t, m =
|
|
56
|
-
if (
|
|
54
|
+
function h(k, c, y) {
|
|
55
|
+
var w = -1, $ = t, m = k.length, T = !0, r = [], P = r;
|
|
56
|
+
if (y)
|
|
57
57
|
T = !1, $ = n;
|
|
58
58
|
else if (m >= f) {
|
|
59
|
-
var
|
|
60
|
-
if (
|
|
61
|
-
return i(
|
|
59
|
+
var _ = c ? null : s(k);
|
|
60
|
+
if (_)
|
|
61
|
+
return i(_);
|
|
62
62
|
T = !1, $ = o, P = new e();
|
|
63
63
|
} else
|
|
64
|
-
P =
|
|
64
|
+
P = c ? [] : r;
|
|
65
65
|
e:
|
|
66
66
|
for (; ++w < m; ) {
|
|
67
|
-
var M =
|
|
68
|
-
if (M =
|
|
69
|
-
for (var
|
|
70
|
-
if (P[
|
|
67
|
+
var M = k[w], L = c ? c(M) : M;
|
|
68
|
+
if (M = y || M !== 0 ? M : 0, T && L === L) {
|
|
69
|
+
for (var N = P.length; N--; )
|
|
70
|
+
if (P[N] === L)
|
|
71
71
|
continue e;
|
|
72
|
-
|
|
73
|
-
} else $(P,
|
|
72
|
+
c && P.push(L), r.push(M);
|
|
73
|
+
} else $(P, L, y) || (P !== r && P.push(L), r.push(M));
|
|
74
74
|
}
|
|
75
75
|
return r;
|
|
76
76
|
}
|
|
77
|
-
return
|
|
77
|
+
return te = h, te;
|
|
78
78
|
}
|
|
79
|
-
var
|
|
79
|
+
var ie, ue;
|
|
80
80
|
function rt() {
|
|
81
|
-
if (ue) return
|
|
81
|
+
if (ue) return ie;
|
|
82
82
|
ue = 1;
|
|
83
83
|
var e = Se(), t = ot();
|
|
84
84
|
function n(o, s) {
|
|
85
85
|
return o && o.length ? t(o, e(s, 2)) : [];
|
|
86
86
|
}
|
|
87
|
-
return
|
|
87
|
+
return ie = n, ie;
|
|
88
88
|
}
|
|
89
89
|
var lt = rt();
|
|
90
90
|
const ct = /* @__PURE__ */ De(lt), dt = {
|
|
@@ -164,21 +164,21 @@ const ct = /* @__PURE__ */ De(lt), dt = {
|
|
|
164
164
|
class: "package-group-option__illustration-card animate"
|
|
165
165
|
}, vt = { class: "package-group-option__title" }, ft = ["innerHTML"];
|
|
166
166
|
function yt(e, t, n, o, s, i) {
|
|
167
|
-
const f =
|
|
168
|
-
return a(),
|
|
167
|
+
const f = v("CIcon");
|
|
168
|
+
return a(), d("div", ut, [
|
|
169
169
|
l("div", pt, u(e.$t("title")), 1),
|
|
170
170
|
l("div", null, [
|
|
171
171
|
l("div", {
|
|
172
172
|
class: V([{ "is-700-or-less": o.docWidth <= 700 }, "options"])
|
|
173
173
|
}, [
|
|
174
|
-
(a(!0),
|
|
175
|
-
key:
|
|
176
|
-
style:
|
|
174
|
+
(a(!0), d(C, null, S(s.options, (h, k) => (a(), d("div", {
|
|
175
|
+
key: k,
|
|
176
|
+
style: Q({ backgroundColor: h.background }),
|
|
177
177
|
class: "package-group-option",
|
|
178
|
-
onClick: (
|
|
178
|
+
onClick: (c) => e.$emit("input", h.value)
|
|
179
179
|
}, [
|
|
180
180
|
l("div", ht, [
|
|
181
|
-
|
|
181
|
+
h.value === "single" ? (a(), d("div", gt, t[0] || (t[0] = [
|
|
182
182
|
l("div", { style: { flex: "1 1 auto" } }, [
|
|
183
183
|
l("div", {
|
|
184
184
|
style: { width: "40%", height: "10px", "margin-bottom": "8px" },
|
|
@@ -190,17 +190,17 @@ function yt(e, t, n, o, s, i) {
|
|
|
190
190
|
})
|
|
191
191
|
], -1)
|
|
192
192
|
]))) : b("", !0),
|
|
193
|
-
|
|
194
|
-
key:
|
|
195
|
-
class: V([{ animate:
|
|
193
|
+
h.value === "radio" ? (a(), d(C, { key: 1 }, S(3, (c) => l("div", {
|
|
194
|
+
key: c,
|
|
195
|
+
class: V([{ animate: c === 2 }, "package-group-option__illustration-card"])
|
|
196
196
|
}, [
|
|
197
197
|
l("div", {
|
|
198
|
-
style:
|
|
198
|
+
style: Q([
|
|
199
199
|
{ width: "8px", height: "8px", "border-radius": "50%", "box-shadow": `0 0 0 1px white,
|
|
200
200
|
0 0 0 2px hsl(0, 0%, 76%)`, "margin-right": "10px" },
|
|
201
|
-
|
|
202
|
-
boxShadow: `0 0 0 1px white, 0 0 0 2px ${
|
|
203
|
-
backgroundColor:
|
|
201
|
+
c === 2 && {
|
|
202
|
+
boxShadow: `0 0 0 1px white, 0 0 0 2px ${h.background}`,
|
|
203
|
+
backgroundColor: h.background
|
|
204
204
|
}
|
|
205
205
|
])
|
|
206
206
|
}, null, 4),
|
|
@@ -215,15 +215,15 @@ function yt(e, t, n, o, s, i) {
|
|
|
215
215
|
})
|
|
216
216
|
], -1))
|
|
217
217
|
], 2)), 64)) : b("", !0),
|
|
218
|
-
|
|
219
|
-
key:
|
|
220
|
-
class: V([{ animate:
|
|
218
|
+
h.value === "checkbox" ? (a(), d(C, { key: 2 }, S(3, (c) => l("div", {
|
|
219
|
+
key: c,
|
|
220
|
+
class: V([{ animate: c !== 3 }, "package-group-option__illustration-card"])
|
|
221
221
|
}, [
|
|
222
222
|
l("div", {
|
|
223
|
-
style:
|
|
223
|
+
style: Q([{ height: "12px", width: "12px", "border-radius": "2px", "background-color": "hsl(0, 0%, 76%)", "margin-right": "10px", color: "white", padding: "1px", display: "inline-flex", "align-items": "center", "justify-content": "center" }, c !== 3 && { backgroundColor: h.background }])
|
|
224
224
|
}, [
|
|
225
225
|
p(f, {
|
|
226
|
-
type:
|
|
226
|
+
type: c !== 3 ? "check" : "empty",
|
|
227
227
|
"stroke-width": "5",
|
|
228
228
|
size: "8"
|
|
229
229
|
}, null, 8, ["type"])
|
|
@@ -241,10 +241,10 @@ function yt(e, t, n, o, s, i) {
|
|
|
241
241
|
], 2)), 64)) : b("", !0)
|
|
242
242
|
]),
|
|
243
243
|
l("div", null, [
|
|
244
|
-
l("div", vt, u(
|
|
244
|
+
l("div", vt, u(h.title), 1),
|
|
245
245
|
l("div", {
|
|
246
246
|
class: "package-group-option__subtitle",
|
|
247
|
-
innerHTML:
|
|
247
|
+
innerHTML: h.subTitle
|
|
248
248
|
}, null, 8, ft)
|
|
249
249
|
])
|
|
250
250
|
], 12, mt))), 128))
|
|
@@ -252,7 +252,7 @@ function yt(e, t, n, o, s, i) {
|
|
|
252
252
|
])
|
|
253
253
|
]);
|
|
254
254
|
}
|
|
255
|
-
const kt = /* @__PURE__ */
|
|
255
|
+
const kt = /* @__PURE__ */ R(dt, [["render", yt], ["__scopeId", "data-v-9558e77f"]]), bt = {
|
|
256
256
|
name: "ArticleAutocomplete",
|
|
257
257
|
components: {
|
|
258
258
|
SearchApi: tt
|
|
@@ -316,9 +316,9 @@ const kt = /* @__PURE__ */ D(dt, [["render", yt], ["__scopeId", "data-v-9558e77f
|
|
|
316
316
|
},
|
|
317
317
|
methods: {
|
|
318
318
|
...z({
|
|
319
|
-
loadArticles:
|
|
319
|
+
loadArticles: O.LOAD_ARTICLES
|
|
320
320
|
}),
|
|
321
|
-
priceFormat:
|
|
321
|
+
priceFormat: H,
|
|
322
322
|
search(e, t) {
|
|
323
323
|
this.$emit("update:modelValue", t), !this.viewSettings.isPublicForm && e({
|
|
324
324
|
q: t,
|
|
@@ -386,19 +386,19 @@ const kt = /* @__PURE__ */ D(dt, [["render", yt], ["__scopeId", "data-v-9558e77f
|
|
|
386
386
|
class: "r-item-icon"
|
|
387
387
|
};
|
|
388
388
|
function Vt(e, t, n, o, s, i) {
|
|
389
|
-
const f =
|
|
390
|
-
return a(),
|
|
389
|
+
const f = v("CInput"), h = v("SearchApi"), k = v("CIcon");
|
|
390
|
+
return a(), d("div", B({
|
|
391
391
|
class: { "is-open": s.isOpen }
|
|
392
392
|
}, e.$attrs, {
|
|
393
393
|
style: { position: "relative" },
|
|
394
|
-
onKeydownPassive: t[0] || (t[0] = (...
|
|
394
|
+
onKeydownPassive: t[0] || (t[0] = (...c) => i.onKeydown && i.onKeydown(...c))
|
|
395
395
|
}), [
|
|
396
|
-
p(
|
|
396
|
+
p(h, { "custom-search": {
|
|
397
397
|
article: !0,
|
|
398
398
|
extensionArticle: !0,
|
|
399
399
|
project: !1
|
|
400
400
|
} }, {
|
|
401
|
-
default:
|
|
401
|
+
default: g(({ fetch: c }) => [
|
|
402
402
|
p(f, B({
|
|
403
403
|
...e.$attrs,
|
|
404
404
|
...e.$props
|
|
@@ -408,7 +408,7 @@ function Vt(e, t, n, o, s, i) {
|
|
|
408
408
|
type: n.tag,
|
|
409
409
|
"auto-resize": !0,
|
|
410
410
|
class: "r-input",
|
|
411
|
-
"onUpdate:modelValue": (
|
|
411
|
+
"onUpdate:modelValue": (y) => i.search(c, y),
|
|
412
412
|
onFocus: i.onFocus,
|
|
413
413
|
onKeydown: [
|
|
414
414
|
j(i.hideResults, ["tab"]),
|
|
@@ -416,38 +416,38 @@ function Vt(e, t, n, o, s, i) {
|
|
|
416
416
|
],
|
|
417
417
|
onBlur: i.onBlur
|
|
418
418
|
}), {
|
|
419
|
-
prefix:
|
|
420
|
-
|
|
419
|
+
prefix: g(() => [
|
|
420
|
+
ne(e.$slots, "prefix", {}, void 0, !0)
|
|
421
421
|
]),
|
|
422
|
-
suffix:
|
|
423
|
-
|
|
422
|
+
suffix: g(() => [
|
|
423
|
+
ne(e.$slots, "suffix", {}, void 0, !0)
|
|
424
424
|
]),
|
|
425
425
|
_: 2
|
|
426
426
|
}, 1040, ["model-value", "type", "onUpdate:modelValue", "onFocus", "onKeydown", "onBlur"])
|
|
427
427
|
]),
|
|
428
428
|
_: 3
|
|
429
429
|
}),
|
|
430
|
-
s.isOpen ? (a(),
|
|
431
|
-
(a(!0),
|
|
432
|
-
key:
|
|
433
|
-
class: V([{ active: s.selectedIndex ===
|
|
434
|
-
onClickCapture:
|
|
430
|
+
s.isOpen ? (a(), d("div", wt, [
|
|
431
|
+
(a(!0), d(C, null, S(s.searchResults, (c, y) => (a(), d("div", {
|
|
432
|
+
key: y,
|
|
433
|
+
class: V([{ active: s.selectedIndex === y }, "r-item"]),
|
|
434
|
+
onClickCapture: G((w) => i.onSelect(c), ["stop"])
|
|
435
435
|
}, [
|
|
436
|
-
l("div", _t, u(
|
|
436
|
+
l("div", _t, u(c.name), 1),
|
|
437
437
|
l("div", $t, [
|
|
438
|
-
|
|
439
|
-
p(
|
|
440
|
-
type:
|
|
438
|
+
c.externalReference && c.externalReference.service ? (a(), d("div", Tt, [
|
|
439
|
+
p(k, {
|
|
440
|
+
type: c.externalReference.service,
|
|
441
441
|
style: { color: "white" },
|
|
442
442
|
size: "14"
|
|
443
443
|
}, null, 8, ["type"])
|
|
444
444
|
])) : b("", !0),
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
445
|
+
c.article_no ? (a(), d("div", At, u(c.article_no), 1)) : b("", !0),
|
|
446
|
+
c.price ? (a(), d("div", Ct, u(i.priceFormat(c.price, { currency: c.currency })), 1)) : b("", !0),
|
|
447
|
+
c.vat ? (a(), d("div", Pt, u(e.$t("vat.sharedTitle").capitalize()) + " " + u(c.vat) + "% ", 1)) : b("", !0)
|
|
448
448
|
]),
|
|
449
|
-
s.selectedIndex ===
|
|
450
|
-
p(
|
|
449
|
+
s.selectedIndex === y ? (a(), d("div", xt, [
|
|
450
|
+
p(k, {
|
|
451
451
|
type: "corner-down-left",
|
|
452
452
|
size: "16"
|
|
453
453
|
})
|
|
@@ -456,13 +456,13 @@ function Vt(e, t, n, o, s, i) {
|
|
|
456
456
|
], 512)) : b("", !0)
|
|
457
457
|
], 16);
|
|
458
458
|
}
|
|
459
|
-
const be = /* @__PURE__ */
|
|
459
|
+
const be = /* @__PURE__ */ R(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c"]]), pe = {
|
|
460
460
|
isDeductable: !1,
|
|
461
461
|
isRut: !1,
|
|
462
462
|
greenRot15: !1,
|
|
463
463
|
greenRot20: !1,
|
|
464
464
|
greenRot50: !1
|
|
465
|
-
},
|
|
465
|
+
}, K = (e, t = "", n) => {
|
|
466
466
|
let o = {
|
|
467
467
|
...e,
|
|
468
468
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -472,14 +472,14 @@ const be = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
472
472
|
...o,
|
|
473
473
|
...pe,
|
|
474
474
|
[n]: !0
|
|
475
|
-
}),
|
|
475
|
+
}), Re(o.quantity) !== "number" && (o.quantity = 0), se(o);
|
|
476
476
|
}, we = ({
|
|
477
477
|
stored: e,
|
|
478
478
|
current: t,
|
|
479
479
|
hidePrice: n = !1,
|
|
480
480
|
activeHouseWorkType: o
|
|
481
481
|
}) => {
|
|
482
|
-
let s =
|
|
482
|
+
let s = Me({
|
|
483
483
|
...e,
|
|
484
484
|
quantity: 1,
|
|
485
485
|
showPrice: !n,
|
|
@@ -488,7 +488,7 @@ const be = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
488
488
|
packageId: t.packageId
|
|
489
489
|
});
|
|
490
490
|
if (o) {
|
|
491
|
-
const i = (
|
|
491
|
+
const i = (k = []) => k.reduce((c, y) => ({ ...c, [y]: !1 }), {}), h = Object.values(
|
|
492
492
|
fe({
|
|
493
493
|
rot: "isDeductable",
|
|
494
494
|
rut: "isRut",
|
|
@@ -497,11 +497,11 @@ const be = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
497
497
|
greenRot50: "greenRot50"
|
|
498
498
|
}, [o])
|
|
499
499
|
);
|
|
500
|
-
|
|
500
|
+
h.some((k) => !!s[k]) && (s = { ...s, ...i(h) });
|
|
501
501
|
}
|
|
502
502
|
return s;
|
|
503
503
|
}, St = (e, t = null) => {
|
|
504
|
-
const n =
|
|
504
|
+
const n = ae(e.currency, t);
|
|
505
505
|
switch (e.priceType) {
|
|
506
506
|
case "approx":
|
|
507
507
|
return `${Le.t("_common:approx")} ${n}`;
|
|
@@ -572,7 +572,7 @@ const be = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
572
572
|
components: {
|
|
573
573
|
ErrorCallout: me,
|
|
574
574
|
ArticleAutocomplete: be,
|
|
575
|
-
CPriceInput:
|
|
575
|
+
CPriceInput: J
|
|
576
576
|
},
|
|
577
577
|
expose: ["focusName"],
|
|
578
578
|
props: {
|
|
@@ -624,12 +624,14 @@ const be = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
624
624
|
},
|
|
625
625
|
validations: _e,
|
|
626
626
|
data() {
|
|
627
|
+
const e = /* @__PURE__ */ new Date() >= /* @__PURE__ */ new Date("2025-07-01");
|
|
627
628
|
return {
|
|
628
|
-
updateData:
|
|
629
|
+
updateData: K,
|
|
629
630
|
addSavedArticle: we,
|
|
630
631
|
articleUnitLabel: W,
|
|
631
632
|
widthCompact: 580,
|
|
632
|
-
visualDisable: !1
|
|
633
|
+
visualDisable: !1,
|
|
634
|
+
isAfterDeadline: e
|
|
633
635
|
};
|
|
634
636
|
},
|
|
635
637
|
computed: {
|
|
@@ -649,12 +651,17 @@ const be = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
649
651
|
price: s,
|
|
650
652
|
vat: i,
|
|
651
653
|
discount: f,
|
|
652
|
-
discountType:
|
|
654
|
+
discountType: h
|
|
653
655
|
} = this.article;
|
|
654
656
|
if (t !== "fixed" && e.push({ title: this.$t(`priceTypeShort.${t}`) }), Oe(this.article)) {
|
|
655
|
-
const
|
|
657
|
+
const k = Ee(this.article);
|
|
656
658
|
e.push({
|
|
657
|
-
title: this.$t(`_common:deduction.${
|
|
659
|
+
title: this.$t(`_common:deduction.${k}_percentage`),
|
|
660
|
+
detailClass: k === "greenRot20" && this.isAfterDeadline && "!decoration-2 !decoration-red-500 !line-through hover:!bg-red-200 hover:!decoration-red-500 hover:!text-red-600 hover:!border-red-100",
|
|
661
|
+
tooltip: k === "greenRot20" && this.isAfterDeadline && {
|
|
662
|
+
content: this.$t(`${k}_deprecated_tooltip`),
|
|
663
|
+
delay: { show: 300, hide: 0 }
|
|
664
|
+
}
|
|
658
665
|
});
|
|
659
666
|
}
|
|
660
667
|
return n && ["fixed", "approx"].includes(t) && (o !== "unit" || n > 1) && e.push({
|
|
@@ -664,7 +671,7 @@ const be = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
664
671
|
}),
|
|
665
672
|
...!this.hidePriceInput && {
|
|
666
673
|
icon: '<svg style="margin: 0 4px;" width="6" height="6" viewBox="0 0 148 141" xmlns="http://www.w3.org/2000/svg"><path d="M73.742787 92.65535l-34.444359 47.40859-18.607391-13.51906 34.060775-46.88064L0 61.8743 7.107391 40 62 57.83569V0h23v57.99346L140.378182 40l7.107391 21.8743-54.751812 17.78994 34.060775 46.88064-18.607391 13.51906-34.444358-47.40859z" fill="currentColor" fill-rule="evenodd"/></svg>',
|
|
667
|
-
subTitle:
|
|
674
|
+
subTitle: H(s, {
|
|
668
675
|
showZero: !0,
|
|
669
676
|
withVat: this.isIncVat ? i : !1,
|
|
670
677
|
currency: this.article.currency,
|
|
@@ -673,7 +680,7 @@ const be = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
673
680
|
})
|
|
674
681
|
}
|
|
675
682
|
}), f && e.push({
|
|
676
|
-
title: "-" + (
|
|
683
|
+
title: "-" + (h === "fixed" ? H(f, {
|
|
677
684
|
withVat: this.isIncVat ? i : !1,
|
|
678
685
|
currency: this.article.currency
|
|
679
686
|
}) : `${f / 100} %`),
|
|
@@ -683,7 +690,7 @@ const be = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
683
690
|
},
|
|
684
691
|
methods: {
|
|
685
692
|
updateArticle(e, t) {
|
|
686
|
-
this.article =
|
|
693
|
+
this.article = K(this.article, e, t);
|
|
687
694
|
},
|
|
688
695
|
onTotalPriceInputFocus() {
|
|
689
696
|
(this.article.discount || this.article.quantity !== 1) && this.$emit("open-modal", { focusEl: "priceInput" });
|
|
@@ -696,10 +703,10 @@ const be = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
696
703
|
return e.$error && e.article.name.$error && ((t = e.article.name.maxLength) != null && t.$invalid) ? this.$t("validations.name.maxLength") : null;
|
|
697
704
|
}
|
|
698
705
|
}
|
|
699
|
-
},
|
|
706
|
+
}, Rt = { class: "top-row flex w-full" }, Mt = ["innerHTML"];
|
|
700
707
|
function Lt(e, t, n, o, s, i) {
|
|
701
|
-
const f =
|
|
702
|
-
return a(),
|
|
708
|
+
const f = v("CIcon"), h = v("ArticleAutocomplete"), k = v("CPriceInput"), c = v("ErrorCallout"), y = U("tooltip");
|
|
709
|
+
return a(), d("div", {
|
|
703
710
|
class: V([{
|
|
704
711
|
"has-details": i.details.length,
|
|
705
712
|
compact: n.width <= s.widthCompact,
|
|
@@ -707,8 +714,8 @@ function Lt(e, t, n, o, s, i) {
|
|
|
707
714
|
}, "article-wrapper"]),
|
|
708
715
|
onKeydown: t[10] || (t[10] = j((w) => e.$emit("esc"), ["esc"]))
|
|
709
716
|
}, [
|
|
710
|
-
l("div",
|
|
711
|
-
p(
|
|
717
|
+
l("div", Rt, [
|
|
718
|
+
p(h, B({
|
|
712
719
|
ref: "name",
|
|
713
720
|
"model-value": i.article.name,
|
|
714
721
|
placeholder: e.$t("namePlaceholder"),
|
|
@@ -729,8 +736,8 @@ function Lt(e, t, n, o, s, i) {
|
|
|
729
736
|
), e.$emit("select");
|
|
730
737
|
})
|
|
731
738
|
}), {
|
|
732
|
-
suffix:
|
|
733
|
-
n.hideControls ? b("", !0) :
|
|
739
|
+
suffix: g(() => [
|
|
740
|
+
n.hideControls ? b("", !0) : D((a(), d("div", {
|
|
734
741
|
key: 0,
|
|
735
742
|
class: "article-button fade-in",
|
|
736
743
|
onClick: t[0] || (t[0] = (w) => e.$emit("open-modal"))
|
|
@@ -740,7 +747,7 @@ function Lt(e, t, n, o, s, i) {
|
|
|
740
747
|
size: "18"
|
|
741
748
|
})
|
|
742
749
|
])), [
|
|
743
|
-
[
|
|
750
|
+
[y, {
|
|
744
751
|
content: e.$t("openModalTooltip"),
|
|
745
752
|
delay: { show: 300, hide: 0 }
|
|
746
753
|
}]
|
|
@@ -748,7 +755,7 @@ function Lt(e, t, n, o, s, i) {
|
|
|
748
755
|
]),
|
|
749
756
|
_: 1
|
|
750
757
|
}, 16, ["model-value", "placeholder"]),
|
|
751
|
-
n.hidePriceInput ? b("", !0) : (a(), A(
|
|
758
|
+
n.hidePriceInput ? b("", !0) : (a(), A(k, B({
|
|
752
759
|
key: n.rootPriceType + i.article.priceType + i.article.unitType,
|
|
753
760
|
"model-value": i.article.totalAmount,
|
|
754
761
|
currency: i.article.currency,
|
|
@@ -767,7 +774,7 @@ function Lt(e, t, n, o, s, i) {
|
|
|
767
774
|
}),
|
|
768
775
|
onKeydown: t[7] || (t[7] = j((w) => e.$emit("add"), ["enter"]))
|
|
769
776
|
}), null, 16, ["model-value", "currency", "is-inc-vat", "vat", "placeholder", "price-type", "unit-label"])),
|
|
770
|
-
n.hideControls ? b("", !0) : (a(),
|
|
777
|
+
n.hideControls ? b("", !0) : (a(), d(C, { key: 1 }, [
|
|
771
778
|
p(f, {
|
|
772
779
|
class: "a-control-button close-button fade-in",
|
|
773
780
|
circle: "",
|
|
@@ -783,31 +790,33 @@ function Lt(e, t, n, o, s, i) {
|
|
|
783
790
|
}, null, 8, ["class"])
|
|
784
791
|
], 64))
|
|
785
792
|
]),
|
|
786
|
-
i.details.length ? (a(),
|
|
793
|
+
i.details.length ? (a(), d("div", {
|
|
787
794
|
key: 0,
|
|
788
795
|
class: "article-details-wrapper",
|
|
789
796
|
style: { cursor: "pointer" },
|
|
790
797
|
onClick: t[9] || (t[9] = (w) => e.$emit("open-modal"))
|
|
791
798
|
}, [
|
|
792
|
-
(a(!0),
|
|
793
|
-
key:
|
|
799
|
+
(a(!0), d(C, null, S(i.details, ({ title: w, icon: $, subTitle: m = "", detailClass: T = "", tooltip: r }, P) => D((a(), d("div", {
|
|
800
|
+
key: P,
|
|
794
801
|
class: V([[T], "article-details-item"])
|
|
795
802
|
}, [
|
|
796
|
-
|
|
797
|
-
$ ? (a(),
|
|
803
|
+
I(u(w) + " ", 1),
|
|
804
|
+
$ ? (a(), d("div", {
|
|
798
805
|
key: 0,
|
|
799
806
|
innerHTML: $
|
|
800
|
-
}, null, 8,
|
|
801
|
-
|
|
802
|
-
], 2))
|
|
807
|
+
}, null, 8, Mt)) : b("", !0),
|
|
808
|
+
I(" " + u(m), 1)
|
|
809
|
+
], 2)), [
|
|
810
|
+
[y, r]
|
|
811
|
+
])), 128))
|
|
803
812
|
])) : b("", !0),
|
|
804
|
-
o.v$.$invalid && o.v$.$dirty ? (a(), A(
|
|
813
|
+
o.v$.$invalid && o.v$.$dirty ? (a(), A(c, {
|
|
805
814
|
key: 1,
|
|
806
815
|
message: i.errorMessage(o.v$)
|
|
807
816
|
}, null, 8, ["message"])) : b("", !0)
|
|
808
817
|
], 34);
|
|
809
818
|
}
|
|
810
|
-
const Ot = /* @__PURE__ */
|
|
819
|
+
const Ot = /* @__PURE__ */ R(Dt, [["render", Lt], ["__scopeId", "data-v-495457b4"]]), Et = {
|
|
811
820
|
emits: ["go", "close"],
|
|
812
821
|
props: {
|
|
813
822
|
canForward: {
|
|
@@ -873,11 +882,11 @@ const Ot = /* @__PURE__ */ D(Dt, [["render", Lt], ["__scopeId", "data-v-1a5f5b54
|
|
|
873
882
|
}, Ut = { class: "l-root" };
|
|
874
883
|
function Bt(e, t, n, o, s, i) {
|
|
875
884
|
const f = U("tooltip");
|
|
876
|
-
return a(),
|
|
877
|
-
|
|
885
|
+
return a(), d("div", Ut, [
|
|
886
|
+
D((a(), d("div", {
|
|
878
887
|
class: V([{ disabled: !n.canBackward }, "l-button"]),
|
|
879
888
|
style: { left: "calc(-4 * var(--rem))" },
|
|
880
|
-
onClick: t[0] || (t[0] = (
|
|
889
|
+
onClick: t[0] || (t[0] = (h) => e.$emit("go", -1))
|
|
881
890
|
}, t[2] || (t[2] = [
|
|
882
891
|
l("svg", {
|
|
883
892
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -895,10 +904,10 @@ function Bt(e, t, n, o, s, i) {
|
|
|
895
904
|
]), 2)), [
|
|
896
905
|
[f, i.getNavTooltip(-1)]
|
|
897
906
|
]),
|
|
898
|
-
|
|
907
|
+
D((a(), d("div", {
|
|
899
908
|
class: V([{ disabled: !n.canForward }, "l-button"]),
|
|
900
909
|
style: { right: "calc(-4 * var(--rem))" },
|
|
901
|
-
onClick: t[1] || (t[1] = (
|
|
910
|
+
onClick: t[1] || (t[1] = (h) => e.$emit("go", 1))
|
|
902
911
|
}, t[3] || (t[3] = [
|
|
903
912
|
l("svg", {
|
|
904
913
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -918,7 +927,7 @@ function Bt(e, t, n, o, s, i) {
|
|
|
918
927
|
])
|
|
919
928
|
]);
|
|
920
929
|
}
|
|
921
|
-
const Wt = /* @__PURE__ */
|
|
930
|
+
const Wt = /* @__PURE__ */ R(Et, [["render", Bt], ["__scopeId", "data-v-f685b502"]]), zt = {
|
|
922
931
|
name: "ArticleUnitEditModal",
|
|
923
932
|
i18nOptions: {
|
|
924
933
|
namespaces: "ArticleUnitEditModal",
|
|
@@ -991,10 +1000,10 @@ const Wt = /* @__PURE__ */ D(Et, [["render", Bt], ["__scopeId", "data-v-f685b502
|
|
|
991
1000
|
},
|
|
992
1001
|
methods: {
|
|
993
1002
|
...z({
|
|
994
|
-
loadUnits:
|
|
995
|
-
createUnit:
|
|
996
|
-
updateUnit:
|
|
997
|
-
deleteUnit:
|
|
1003
|
+
loadUnits: O.LOAD_UNIT_TYPES,
|
|
1004
|
+
createUnit: O.CREATE_UNIT_TYPE,
|
|
1005
|
+
updateUnit: O.UPDATE_UNIT_TYPE,
|
|
1006
|
+
deleteUnit: O.DELETE_UNIT_TYPE
|
|
998
1007
|
}),
|
|
999
1008
|
onEdit(e) {
|
|
1000
1009
|
this.selectedValue = { ...e }, this.$refs.unitInput && this.$refs.unitInput.focus();
|
|
@@ -1037,16 +1046,16 @@ const Wt = /* @__PURE__ */ D(Et, [["render", Bt], ["__scopeId", "data-v-f685b502
|
|
|
1037
1046
|
class: "unit-modal-list-empty"
|
|
1038
1047
|
}, Zt = ["onMouseoverPassive", "onClick"], Jt = { class: "drag-handle" }, Qt = { style: { "padding-left": "0.5em" } }, Xt = { class: "unittype-buttons" };
|
|
1039
1048
|
function ei(e, t, n, o, s, i) {
|
|
1040
|
-
const f =
|
|
1041
|
-
return a(),
|
|
1049
|
+
const f = v("CIcon"), h = v("CButton"), k = v("CInput"), c = v("CField"), y = v("DragItem"), w = v("DragList"), $ = U("tooltip");
|
|
1050
|
+
return a(), d("div", {
|
|
1042
1051
|
class: "modal-overlay font-inter",
|
|
1043
|
-
onClickPassive: t[3] || (t[3] =
|
|
1052
|
+
onClickPassive: t[3] || (t[3] = G((...m) => i.close && i.close(...m), ["self"]))
|
|
1044
1053
|
}, [
|
|
1045
1054
|
l("div", jt, [
|
|
1046
1055
|
l("div", Ft, [
|
|
1047
1056
|
l("div", qt, [
|
|
1048
1057
|
l("span", null, u(e.$t("_common:add", { thing: e.$t("_common:unitType.unitType_other") })), 1),
|
|
1049
|
-
|
|
1058
|
+
D(p(f, {
|
|
1050
1059
|
type: "info",
|
|
1051
1060
|
size: "15",
|
|
1052
1061
|
class: "text-gray-400",
|
|
@@ -1055,12 +1064,12 @@ function ei(e, t, n, o, s, i) {
|
|
|
1055
1064
|
[$, { content: e.$t("tooltip"), html: !0 }]
|
|
1056
1065
|
])
|
|
1057
1066
|
]),
|
|
1058
|
-
p(
|
|
1067
|
+
p(c, {
|
|
1059
1068
|
grouped: "",
|
|
1060
1069
|
style: { margin: "0" }
|
|
1061
1070
|
}, {
|
|
1062
|
-
default:
|
|
1063
|
-
p(
|
|
1071
|
+
default: g(() => [
|
|
1072
|
+
p(k, {
|
|
1064
1073
|
ref: "unitInput",
|
|
1065
1074
|
modelValue: s.selectedValue.value,
|
|
1066
1075
|
"onUpdate:modelValue": t[0] || (t[0] = (m) => s.selectedValue.value = m),
|
|
@@ -1072,8 +1081,8 @@ function ei(e, t, n, o, s, i) {
|
|
|
1072
1081
|
}, ge({ _: 2 }, [
|
|
1073
1082
|
s.selectedValue.id ? {
|
|
1074
1083
|
name: "suffix",
|
|
1075
|
-
fn:
|
|
1076
|
-
p(
|
|
1084
|
+
fn: g(() => [
|
|
1085
|
+
p(h, {
|
|
1077
1086
|
icon: "x",
|
|
1078
1087
|
type: "none",
|
|
1079
1088
|
pattern: "tertiary",
|
|
@@ -1086,14 +1095,14 @@ function ei(e, t, n, o, s, i) {
|
|
|
1086
1095
|
} : void 0
|
|
1087
1096
|
]), 1032, ["modelValue", "placeholder"]),
|
|
1088
1097
|
l("div", Nt, [
|
|
1089
|
-
p(
|
|
1098
|
+
p(h, {
|
|
1090
1099
|
loading: e.isPosting,
|
|
1091
1100
|
disabled: !s.selectedValue.value,
|
|
1092
1101
|
type: "secondary",
|
|
1093
1102
|
onClick: i.submit
|
|
1094
1103
|
}, {
|
|
1095
|
-
default:
|
|
1096
|
-
|
|
1104
|
+
default: g(() => [
|
|
1105
|
+
I(u(s.selectedValue.id ? e.$t("_common:save") : e.$t("_common:add")), 1)
|
|
1097
1106
|
]),
|
|
1098
1107
|
_: 1
|
|
1099
1108
|
}, 8, ["loading", "disabled", "onClick"])
|
|
@@ -1105,7 +1114,7 @@ function ei(e, t, n, o, s, i) {
|
|
|
1105
1114
|
l("div", Ht, [
|
|
1106
1115
|
l("div", Gt, u(e.$t("_common:unit_other").capitalize()), 1),
|
|
1107
1116
|
l("div", Kt, [
|
|
1108
|
-
i.unitItems.length ? b("", !0) : (a(),
|
|
1117
|
+
i.unitItems.length ? b("", !0) : (a(), d("div", Yt, u(e.$t("_common:add", { thing: e.$t("_common:unit_other") })), 1)),
|
|
1109
1118
|
p(w, {
|
|
1110
1119
|
"drop-placeholder": { className: "drag-drop-placeholder" },
|
|
1111
1120
|
"drag-class": "is-dragged",
|
|
@@ -1113,11 +1122,11 @@ function ei(e, t, n, o, s, i) {
|
|
|
1113
1122
|
"drag-handle-selector": ".drag-handle",
|
|
1114
1123
|
onDrop: i.onDrop
|
|
1115
1124
|
}, {
|
|
1116
|
-
default:
|
|
1117
|
-
(a(!0),
|
|
1125
|
+
default: g(() => [
|
|
1126
|
+
(a(!0), d(C, null, S(i.unitItems, (m, T) => (a(), A(y, {
|
|
1118
1127
|
key: m.id
|
|
1119
1128
|
}, {
|
|
1120
|
-
default:
|
|
1129
|
+
default: g(() => [
|
|
1121
1130
|
l("div", {
|
|
1122
1131
|
class: V([{ "is-editing": s.selectedValue.id === m.id }, "unit-modal-list-item"]),
|
|
1123
1132
|
onMouseoverPassive: (r) => s.hoverIndex = T,
|
|
@@ -1132,21 +1141,21 @@ function ei(e, t, n, o, s, i) {
|
|
|
1132
1141
|
})
|
|
1133
1142
|
]),
|
|
1134
1143
|
l("div", Qt, u(m.label), 1),
|
|
1135
|
-
|
|
1144
|
+
D(l("span", { class: "delete-confirm" }, u(e.$t("_common:remove")) + "? ", 513), [
|
|
1136
1145
|
[We, s.removeConfirmIndex === T]
|
|
1137
1146
|
]),
|
|
1138
1147
|
l("div", Xt, [
|
|
1139
|
-
s.hoverIndex === T || s.removeConfirmIndex === T ? (a(), A(
|
|
1148
|
+
s.hoverIndex === T || s.removeConfirmIndex === T ? (a(), A(h, {
|
|
1140
1149
|
key: 0,
|
|
1141
1150
|
type: s.removeConfirmIndex === T ? "danger" : "none",
|
|
1142
1151
|
pattern: s.removeConfirmIndex === T ? "primary" : "tertiary",
|
|
1143
1152
|
circle: "",
|
|
1144
1153
|
icon: "x",
|
|
1145
1154
|
size: "small",
|
|
1146
|
-
onClick:
|
|
1155
|
+
onClick: G((r) => i.remove(m.id, T), ["stop", "prevent"]),
|
|
1147
1156
|
onBlur: t[1] || (t[1] = (r) => s.removeConfirmIndex = null)
|
|
1148
1157
|
}, null, 8, ["type", "pattern", "onClick"])) : b("", !0),
|
|
1149
|
-
p(
|
|
1158
|
+
p(h, {
|
|
1150
1159
|
icon: "edit",
|
|
1151
1160
|
size: "small",
|
|
1152
1161
|
type: "none",
|
|
@@ -1166,11 +1175,11 @@ function ei(e, t, n, o, s, i) {
|
|
|
1166
1175
|
])
|
|
1167
1176
|
], 32);
|
|
1168
1177
|
}
|
|
1169
|
-
const ti = /* @__PURE__ */
|
|
1178
|
+
const ti = /* @__PURE__ */ R(zt, [["render", ei], ["__scopeId", "data-v-439571ca"]]), ii = {
|
|
1170
1179
|
name: "ArticleUnitSelect",
|
|
1171
1180
|
components: {
|
|
1172
|
-
CDropdown:
|
|
1173
|
-
CDropdownItem:
|
|
1181
|
+
CDropdown: Z,
|
|
1182
|
+
CDropdownItem: Y
|
|
1174
1183
|
},
|
|
1175
1184
|
props: {
|
|
1176
1185
|
modelValue: {
|
|
@@ -1203,7 +1212,7 @@ const ti = /* @__PURE__ */ D(zt, [["render", ei], ["__scopeId", "data-v-439571ca
|
|
|
1203
1212
|
methods: {
|
|
1204
1213
|
articleUnitLabel: W,
|
|
1205
1214
|
...z({
|
|
1206
|
-
loadUnits:
|
|
1215
|
+
loadUnits: O.LOAD_UNIT_TYPES
|
|
1207
1216
|
}),
|
|
1208
1217
|
openEditModal() {
|
|
1209
1218
|
this.$modal.show(
|
|
@@ -1218,30 +1227,30 @@ const ti = /* @__PURE__ */ D(zt, [["render", ei], ["__scopeId", "data-v-439571ca
|
|
|
1218
1227
|
}
|
|
1219
1228
|
};
|
|
1220
1229
|
function ni(e, t, n, o, s, i) {
|
|
1221
|
-
const f =
|
|
1222
|
-
return a(), A(
|
|
1230
|
+
const f = v("CButton"), h = v("CDropdownItem"), k = v("CDropdown");
|
|
1231
|
+
return a(), A(k, B({
|
|
1223
1232
|
position: "is-bottom-left",
|
|
1224
1233
|
maxHeight: "240px",
|
|
1225
1234
|
...e.$attrs
|
|
1226
1235
|
}, {
|
|
1227
1236
|
"model-value": n.modelValue,
|
|
1228
1237
|
scrollable: "",
|
|
1229
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1238
|
+
"onUpdate:modelValue": t[0] || (t[0] = (c) => e.$emit("update:modelValue", c))
|
|
1230
1239
|
}), {
|
|
1231
|
-
trigger:
|
|
1232
|
-
|
|
1240
|
+
trigger: g(() => [
|
|
1241
|
+
ne(e.$slots, "default", {}, () => [
|
|
1233
1242
|
p(f, {
|
|
1234
1243
|
type: "none",
|
|
1235
1244
|
pattern: "tertiary"
|
|
1236
1245
|
}, {
|
|
1237
|
-
default:
|
|
1238
|
-
|
|
1246
|
+
default: g(() => [
|
|
1247
|
+
I(u(i.articleUnitLabel(n.modelValue)), 1)
|
|
1239
1248
|
]),
|
|
1240
1249
|
_: 1
|
|
1241
1250
|
})
|
|
1242
1251
|
], !0)
|
|
1243
1252
|
]),
|
|
1244
|
-
footer:
|
|
1253
|
+
footer: g(() => [
|
|
1245
1254
|
n.isPublicForm ? b("", !0) : (a(), A(f, {
|
|
1246
1255
|
key: 0,
|
|
1247
1256
|
type: "none",
|
|
@@ -1250,19 +1259,19 @@ function ni(e, t, n, o, s, i) {
|
|
|
1250
1259
|
class: "edit-button",
|
|
1251
1260
|
onClick: i.openEditModal
|
|
1252
1261
|
}, {
|
|
1253
|
-
default:
|
|
1254
|
-
|
|
1262
|
+
default: g(() => [
|
|
1263
|
+
I(u(e.$t("_common:edit", { thing: e.$t("_common:unit_other") })), 1)
|
|
1255
1264
|
]),
|
|
1256
1265
|
_: 1
|
|
1257
1266
|
}, 8, ["onClick"]))
|
|
1258
1267
|
]),
|
|
1259
|
-
default:
|
|
1260
|
-
(a(!0),
|
|
1261
|
-
key: `${
|
|
1262
|
-
value:
|
|
1268
|
+
default: g(() => [
|
|
1269
|
+
(a(!0), d(C, null, S(i.unitItems, (c, y) => (a(), A(h, {
|
|
1270
|
+
key: `${c}-${y}`,
|
|
1271
|
+
value: c
|
|
1263
1272
|
}, {
|
|
1264
|
-
default:
|
|
1265
|
-
|
|
1273
|
+
default: g(() => [
|
|
1274
|
+
I(u(i.articleUnitLabel(c)), 1)
|
|
1266
1275
|
]),
|
|
1267
1276
|
_: 2
|
|
1268
1277
|
}, 1032, ["value"]))), 128))
|
|
@@ -1270,7 +1279,7 @@ function ni(e, t, n, o, s, i) {
|
|
|
1270
1279
|
_: 3
|
|
1271
1280
|
}, 16, ["model-value"]);
|
|
1272
1281
|
}
|
|
1273
|
-
const si = /* @__PURE__ */
|
|
1282
|
+
const si = /* @__PURE__ */ R(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe"]]), ai = {
|
|
1274
1283
|
name: "ArticleModal",
|
|
1275
1284
|
i18nOptions: {
|
|
1276
1285
|
namespaces: "ArticleModal",
|
|
@@ -1280,7 +1289,7 @@ const si = /* @__PURE__ */ D(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe
|
|
|
1280
1289
|
ArticleAutocomplete: be,
|
|
1281
1290
|
ArticleUnitSelect: si,
|
|
1282
1291
|
ListModalButtons: Wt,
|
|
1283
|
-
CPriceInput:
|
|
1292
|
+
CPriceInput: J,
|
|
1284
1293
|
CField: ke
|
|
1285
1294
|
},
|
|
1286
1295
|
emits: ["add", "input", "focus", "close", "open-modal", "update:currency"],
|
|
@@ -1348,7 +1357,7 @@ const si = /* @__PURE__ */ D(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe
|
|
|
1348
1357
|
data() {
|
|
1349
1358
|
return {
|
|
1350
1359
|
priceSuffix: St,
|
|
1351
|
-
updateData:
|
|
1360
|
+
updateData: K,
|
|
1352
1361
|
addSavedArticle: we,
|
|
1353
1362
|
vatOptions: [
|
|
1354
1363
|
{ value: 25, translation: "25%" },
|
|
@@ -1358,7 +1367,7 @@ const si = /* @__PURE__ */ D(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe
|
|
|
1358
1367
|
],
|
|
1359
1368
|
showDiscountInput: !1,
|
|
1360
1369
|
setPricesIncVat: !1,
|
|
1361
|
-
getCurrencySymbol:
|
|
1370
|
+
getCurrencySymbol: ae,
|
|
1362
1371
|
articleUnitLabel: W
|
|
1363
1372
|
};
|
|
1364
1373
|
},
|
|
@@ -1383,59 +1392,64 @@ const si = /* @__PURE__ */ D(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe
|
|
|
1383
1392
|
return x(this, "_document.vatType") || "";
|
|
1384
1393
|
},
|
|
1385
1394
|
checkboxItems() {
|
|
1386
|
-
const { article:
|
|
1387
|
-
...
|
|
1395
|
+
const e = /* @__PURE__ */ new Date(), t = /* @__PURE__ */ new Date("2025-07-01"), n = e < t, o = e >= t, { article: s } = this || {}, { priceType: i } = this.article || {}, f = [
|
|
1396
|
+
...i !== "markup" ? [
|
|
1388
1397
|
{
|
|
1389
1398
|
label: this.$t("discount").capitalize(),
|
|
1390
|
-
value:
|
|
1399
|
+
value: s.discount || this.showDiscountInput,
|
|
1391
1400
|
onClick: () => {
|
|
1392
1401
|
this.showDiscountInput || this.focusEl("discountInput"), this.showDiscountInput = !this.showDiscountInput;
|
|
1393
1402
|
}
|
|
1394
1403
|
}
|
|
1395
1404
|
] : [],
|
|
1396
|
-
...this.getCompanySetting("showRot") ||
|
|
1405
|
+
...this.getCompanySetting("showRot") || s.isDeductable ? [
|
|
1397
1406
|
{
|
|
1398
1407
|
label: this.$t("_common:deduction.rot"),
|
|
1399
1408
|
value: this.article.isDeductable,
|
|
1400
|
-
onClick: () => this.updateArticle(!
|
|
1409
|
+
onClick: () => this.updateArticle(!s.isDeductable, "isDeductable")
|
|
1401
1410
|
}
|
|
1402
1411
|
] : [],
|
|
1403
|
-
...this.getCompanySetting("showRut") ||
|
|
1412
|
+
...this.getCompanySetting("showRut") || s.isRut ? [
|
|
1404
1413
|
{
|
|
1405
1414
|
label: this.$t("_common:deduction.rut"),
|
|
1406
|
-
value:
|
|
1407
|
-
onClick: () => this.updateArticle(!
|
|
1415
|
+
value: s.isRut,
|
|
1416
|
+
onClick: () => this.updateArticle(!s.isRut, "isRut")
|
|
1408
1417
|
}
|
|
1409
1418
|
] : [],
|
|
1410
|
-
...
|
|
1419
|
+
...this.getCompanySetting("showGreenRot") || s.greenRot15 ? [
|
|
1411
1420
|
{
|
|
1412
1421
|
label: this.$t("_common:deduction.greenRot15_percentage"),
|
|
1413
|
-
value:
|
|
1414
|
-
onClick: () => this.updateArticle(!
|
|
1422
|
+
value: s.greenRot15,
|
|
1423
|
+
onClick: () => this.updateArticle(!s.greenRot15, "greenRot15"),
|
|
1424
|
+
tooltip: n && this.$t("_common:greenRot15_tooltip")
|
|
1415
1425
|
}
|
|
1416
1426
|
] : [],
|
|
1417
|
-
...this.getCompanySetting("showGreenRot")
|
|
1427
|
+
...this.getCompanySetting("showGreenRot") && n || s.greenRot20 ? [
|
|
1418
1428
|
{
|
|
1419
1429
|
label: this.$t("_common:deduction.greenRot20_percentage"),
|
|
1420
|
-
value:
|
|
1421
|
-
onClick: () => this.updateArticle(!
|
|
1422
|
-
|
|
1430
|
+
value: s.greenRot20,
|
|
1431
|
+
onClick: () => this.updateArticle(!s.greenRot20, "greenRot20"),
|
|
1432
|
+
tooltip: n ? this.$t("_common:greenRot20_tooltip") : this.$t("_common:greenRot20_deprecated_tooltip"),
|
|
1433
|
+
style: o ? "deprecated-rot" : ""
|
|
1434
|
+
}
|
|
1435
|
+
] : [],
|
|
1436
|
+
...this.getCompanySetting("showGreenRot") || s.greenRot50 ? [
|
|
1423
1437
|
{
|
|
1424
1438
|
label: this.$t("_common:deduction.greenRot50_percentage"),
|
|
1425
|
-
value:
|
|
1426
|
-
onClick: () => this.updateArticle(!
|
|
1439
|
+
value: s.greenRot50,
|
|
1440
|
+
onClick: () => this.updateArticle(!s.greenRot50, "greenRot50")
|
|
1427
1441
|
}
|
|
1428
1442
|
] : []
|
|
1429
1443
|
];
|
|
1430
1444
|
if (this.allowHidePrice) {
|
|
1431
|
-
const { showPrice:
|
|
1432
|
-
|
|
1445
|
+
const { showPrice: h } = s || {};
|
|
1446
|
+
f.push({
|
|
1433
1447
|
label: this.$t("hidePriceLabel"),
|
|
1434
|
-
value: !
|
|
1435
|
-
onClick: () => this.updateArticle(!
|
|
1448
|
+
value: !h,
|
|
1449
|
+
onClick: () => this.updateArticle(!h, "showPrice")
|
|
1436
1450
|
});
|
|
1437
1451
|
}
|
|
1438
|
-
return
|
|
1452
|
+
return f;
|
|
1439
1453
|
},
|
|
1440
1454
|
priceTypeOptions() {
|
|
1441
1455
|
if (!this.enablePriceTypes || this.rootPriceType === "fixed") return [];
|
|
@@ -1501,7 +1515,7 @@ const si = /* @__PURE__ */ D(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe
|
|
|
1501
1515
|
},
|
|
1502
1516
|
methods: {
|
|
1503
1517
|
...z({
|
|
1504
|
-
createArticle:
|
|
1518
|
+
createArticle: O.DO_CREATE_ARTICLE
|
|
1505
1519
|
}),
|
|
1506
1520
|
onCustomVatBlur(e) {
|
|
1507
1521
|
x(e, "target.value") || "" || this.updateArticle(0, "vat");
|
|
@@ -1513,7 +1527,7 @@ const si = /* @__PURE__ */ D(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe
|
|
|
1513
1527
|
n < 0 && (n = 0), this.updateArticle(Number.parseFloat(n), "vat");
|
|
1514
1528
|
},
|
|
1515
1529
|
updateArticle(e, t) {
|
|
1516
|
-
this.article =
|
|
1530
|
+
this.article = K(this.article, e, t);
|
|
1517
1531
|
},
|
|
1518
1532
|
close() {
|
|
1519
1533
|
this.$emit("close");
|
|
@@ -1580,13 +1594,13 @@ const si = /* @__PURE__ */ D(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe
|
|
|
1580
1594
|
style: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "margin-top": "1em" }
|
|
1581
1595
|
}, vi = ["onClick"], fi = { style: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "margin-top": "1em" } }, yi = ["onClick"], ki = { class: "flex space-x-4 overflow-hidden p-4 md:p-9" };
|
|
1582
1596
|
function bi(e, t, n, o, s, i) {
|
|
1583
|
-
const f =
|
|
1584
|
-
return a(),
|
|
1597
|
+
const f = v("ListModalButtons"), h = v("CIcon"), k = v("ArticleAutocomplete"), c = v("CField"), y = v("CInput"), w = v("CButton"), $ = v("ArticleUnitSelect"), m = v("CPriceInput"), T = U("tooltip");
|
|
1598
|
+
return a(), d("div", {
|
|
1585
1599
|
class: V([{
|
|
1586
1600
|
"full-screen": e.mq === "sm",
|
|
1587
1601
|
"modal-overlay": !0
|
|
1588
1602
|
}, "font-inter"]),
|
|
1589
|
-
onClickPassive: t[15] || (t[15] =
|
|
1603
|
+
onClickPassive: t[15] || (t[15] = G((...r) => i.close && i.close(...r), ["self"]))
|
|
1590
1604
|
}, [
|
|
1591
1605
|
l("div", oi, [
|
|
1592
1606
|
e.mq !== "sm" ? (a(), A(f, {
|
|
@@ -1595,20 +1609,20 @@ function bi(e, t, n, o, s, i) {
|
|
|
1595
1609
|
"can-backward": !!n.articleList[n.index - 1],
|
|
1596
1610
|
onClose: i.close,
|
|
1597
1611
|
onGo: t[0] || (t[0] = (r) => i.onGo(r))
|
|
1598
|
-
}, null, 8, ["can-forward", "can-backward", "onClose"])) : (a(),
|
|
1612
|
+
}, null, 8, ["can-forward", "can-backward", "onClose"])) : (a(), d("div", {
|
|
1599
1613
|
key: 1,
|
|
1600
1614
|
class: "modal-close",
|
|
1601
1615
|
onClick: t[1] || (t[1] = (...r) => i.close && i.close(...r))
|
|
1602
1616
|
}, [
|
|
1603
|
-
p(
|
|
1617
|
+
p(h, { type: "x" })
|
|
1604
1618
|
])),
|
|
1605
1619
|
p(je, { name: "slide" }, {
|
|
1606
|
-
default:
|
|
1607
|
-
(a(),
|
|
1620
|
+
default: g(() => [
|
|
1621
|
+
(a(), d("div", {
|
|
1608
1622
|
key: i.article._uniqueId,
|
|
1609
1623
|
class: "modal-main"
|
|
1610
1624
|
}, [
|
|
1611
|
-
p(
|
|
1625
|
+
p(c, {
|
|
1612
1626
|
validator: o.v$.article.name,
|
|
1613
1627
|
messages: { maxLength: e.$t("validations.name.maxLength") },
|
|
1614
1628
|
label: e.$t("name").capitalize(),
|
|
@@ -1616,8 +1630,8 @@ function bi(e, t, n, o, s, i) {
|
|
|
1616
1630
|
style: { "margin-bottom": "1.5em" },
|
|
1617
1631
|
class: "label-selector"
|
|
1618
1632
|
}, {
|
|
1619
|
-
default:
|
|
1620
|
-
p(
|
|
1633
|
+
default: g(() => [
|
|
1634
|
+
p(k, {
|
|
1621
1635
|
ref: "nameInput",
|
|
1622
1636
|
"model-value": i.article.name,
|
|
1623
1637
|
autosize: !0,
|
|
@@ -1640,14 +1654,14 @@ function bi(e, t, n, o, s, i) {
|
|
|
1640
1654
|
_: 1
|
|
1641
1655
|
}, 8, ["validator", "messages", "label"]),
|
|
1642
1656
|
l("div", ri, [
|
|
1643
|
-
p(
|
|
1657
|
+
p(c, {
|
|
1644
1658
|
label: e.$t("quantity").capitalize(),
|
|
1645
1659
|
"label-position": "inside",
|
|
1646
1660
|
class: "label-selector form-control form-control-left flex-grow",
|
|
1647
1661
|
style: { "margin-bottom": "0" }
|
|
1648
1662
|
}, {
|
|
1649
|
-
default:
|
|
1650
|
-
p(
|
|
1663
|
+
default: g(() => [
|
|
1664
|
+
p(y, {
|
|
1651
1665
|
"model-value": i.article.quantity,
|
|
1652
1666
|
disabled: ["openAcc", "markup"].includes(i.article.priceType),
|
|
1653
1667
|
placeholder: "",
|
|
@@ -1664,13 +1678,13 @@ function bi(e, t, n, o, s, i) {
|
|
|
1664
1678
|
"is-public-form": n.viewSettings.isPublicForm,
|
|
1665
1679
|
"onUpdate:modelValue": t[5] || (t[5] = (r) => i.updateArticle(r, "unitType"))
|
|
1666
1680
|
}, {
|
|
1667
|
-
default:
|
|
1681
|
+
default: g(() => [
|
|
1668
1682
|
p(w, {
|
|
1669
1683
|
class: "select-css form-control form-control-right",
|
|
1670
1684
|
style: { width: "8em", "box-shadow": "none" }
|
|
1671
1685
|
}, {
|
|
1672
|
-
default:
|
|
1673
|
-
|
|
1686
|
+
default: g(() => [
|
|
1687
|
+
I(u(s.articleUnitLabel(i.article.unitType, {
|
|
1674
1688
|
count: i.article.quantity
|
|
1675
1689
|
})), 1)
|
|
1676
1690
|
]),
|
|
@@ -1680,15 +1694,15 @@ function bi(e, t, n, o, s, i) {
|
|
|
1680
1694
|
_: 1
|
|
1681
1695
|
}, 8, ["model-value", "is-public-form"])
|
|
1682
1696
|
]),
|
|
1683
|
-
n.hidePriceInput ? b("", !0) : (a(),
|
|
1697
|
+
n.hidePriceInput ? b("", !0) : (a(), d(C, { key: 0 }, [
|
|
1684
1698
|
l("div", li, [
|
|
1685
|
-
p(
|
|
1699
|
+
p(c, {
|
|
1686
1700
|
label: e.$t("price.price").capitalize(),
|
|
1687
1701
|
"label-position": "inside",
|
|
1688
1702
|
class: "label-selector form-control form-control-left flex-1",
|
|
1689
1703
|
style: { "margin-bottom": "0" }
|
|
1690
1704
|
}, {
|
|
1691
|
-
default:
|
|
1705
|
+
default: g(() => [
|
|
1692
1706
|
(a(), A(m, {
|
|
1693
1707
|
ref: "priceInput",
|
|
1694
1708
|
key: s.priceSuffix(i.article),
|
|
@@ -1706,21 +1720,21 @@ function bi(e, t, n, o, s, i) {
|
|
|
1706
1720
|
]),
|
|
1707
1721
|
_: 1
|
|
1708
1722
|
}, 8, ["label"]),
|
|
1709
|
-
i.useVat ? (a(),
|
|
1723
|
+
i.useVat ? (a(), d("div", {
|
|
1710
1724
|
key: 0,
|
|
1711
1725
|
class: "select-css form-control form-control-right",
|
|
1712
1726
|
style: { width: "8em" },
|
|
1713
1727
|
onClick: t[9] || (t[9] = (r) => s.setPricesIncVat = !s.setPricesIncVat)
|
|
1714
1728
|
}, u(n._document.$t(`vat.${s.setPricesIncVat ? "incVat" : "exVat"}`)), 1)) : b("", !0)
|
|
1715
1729
|
]),
|
|
1716
|
-
s.showDiscountInput ? (a(),
|
|
1717
|
-
p(
|
|
1730
|
+
s.showDiscountInput ? (a(), d("div", ci, [
|
|
1731
|
+
p(c, {
|
|
1718
1732
|
label: e.$t("discount").capitalize(),
|
|
1719
1733
|
"label-position": "inside",
|
|
1720
1734
|
class: "label-selector form-control form-control-left flex-grow",
|
|
1721
1735
|
style: { "margin-bottom": "0" }
|
|
1722
1736
|
}, {
|
|
1723
|
-
default:
|
|
1737
|
+
default: g(() => [
|
|
1724
1738
|
p(m, {
|
|
1725
1739
|
ref: "discountInput",
|
|
1726
1740
|
"model-value": i.article.discount,
|
|
@@ -1733,16 +1747,16 @@ function bi(e, t, n, o, s, i) {
|
|
|
1733
1747
|
}, ge({ _: 2 }, [
|
|
1734
1748
|
i.article.discountType === "fixed" ? {
|
|
1735
1749
|
name: "suffix",
|
|
1736
|
-
fn:
|
|
1737
|
-
|
|
1750
|
+
fn: g(() => [
|
|
1751
|
+
I(u(n._document.$t(
|
|
1738
1752
|
`vat.${s.setPricesIncVat ? "incVat" : "exVat"}`
|
|
1739
1753
|
)), 1)
|
|
1740
1754
|
]),
|
|
1741
1755
|
key: "0"
|
|
1742
1756
|
} : {
|
|
1743
1757
|
name: "suffix",
|
|
1744
|
-
fn:
|
|
1745
|
-
|
|
1758
|
+
fn: g(() => [
|
|
1759
|
+
I(u(s.getCurrencySymbol(i.article.currency)), 1)
|
|
1746
1760
|
]),
|
|
1747
1761
|
key: "1"
|
|
1748
1762
|
}
|
|
@@ -1761,20 +1775,20 @@ function bi(e, t, n, o, s, i) {
|
|
|
1761
1775
|
])) : b("", !0)
|
|
1762
1776
|
], 64)),
|
|
1763
1777
|
l("div", di, [
|
|
1764
|
-
i.useVat ? (a(),
|
|
1765
|
-
e.feature("regionSE") && Number.isInteger(i.article.vat) ? (a(),
|
|
1778
|
+
i.useVat ? (a(), d(C, { key: 0 }, [
|
|
1779
|
+
e.feature("regionSE") && Number.isInteger(i.article.vat) ? (a(), d("select", {
|
|
1766
1780
|
key: 0,
|
|
1767
1781
|
value: i.article.vat,
|
|
1768
1782
|
class: "select-css tag-item no-chevron",
|
|
1769
1783
|
style: { display: "inline", "min-height": "initial", background: "hsl(0, 0%, 94%)", "border-color": "hsl(0, 0%, 94%)", color: "hsl(0, 0%, 30%)" },
|
|
1770
1784
|
onInput: t[12] || (t[12] = (r) => i.updateArticle(Number.parseFloat(r.target.value), "vat"))
|
|
1771
1785
|
}, [
|
|
1772
|
-
(a(!0),
|
|
1773
|
-
key:
|
|
1786
|
+
(a(!0), d(C, null, S(s.vatOptions, ({ translation: r, value: P }, _) => (a(), d("option", {
|
|
1787
|
+
key: _,
|
|
1774
1788
|
value: P
|
|
1775
1789
|
}, u(e.$t(`vat.${i.vatType}`)) + " " + u(r), 9, pi))), 128))
|
|
1776
|
-
], 40, ui)) : (a(),
|
|
1777
|
-
|
|
1790
|
+
], 40, ui)) : (a(), d("span", mi, [
|
|
1791
|
+
I(u(n._document.$t("vat").capitalize()) + " ", 1),
|
|
1778
1792
|
l("input", {
|
|
1779
1793
|
value: i.article.vat || 0,
|
|
1780
1794
|
type: "number",
|
|
@@ -1782,16 +1796,16 @@ function bi(e, t, n, o, s, i) {
|
|
|
1782
1796
|
onBlur: t[13] || (t[13] = (...r) => i.onCustomVatBlur && i.onCustomVatBlur(...r)),
|
|
1783
1797
|
onInput: t[14] || (t[14] = (...r) => i.onCustomVatInput && i.onCustomVatInput(...r))
|
|
1784
1798
|
}, null, 40, hi),
|
|
1785
|
-
t[16] || (t[16] =
|
|
1799
|
+
t[16] || (t[16] = I(" % "))
|
|
1786
1800
|
]))
|
|
1787
1801
|
], 64)) : b("", !0),
|
|
1788
|
-
i.priceTypeOptions.length ? (a(),
|
|
1789
|
-
(a(!0),
|
|
1790
|
-
key: r +
|
|
1802
|
+
i.priceTypeOptions.length ? (a(), d("div", gi, [
|
|
1803
|
+
(a(!0), d(C, null, S(i.priceTypeOptions, ({ label: r, value: P, onClick: _, tooltip: M }, L) => D((a(), d("div", {
|
|
1804
|
+
key: r + L,
|
|
1791
1805
|
class: V([{ active: P }, "tag-item"]),
|
|
1792
|
-
onClick:
|
|
1806
|
+
onClick: _
|
|
1793
1807
|
}, [
|
|
1794
|
-
|
|
1808
|
+
I(u(r), 1)
|
|
1795
1809
|
], 10, vi)), [
|
|
1796
1810
|
[T, {
|
|
1797
1811
|
content: M,
|
|
@@ -1800,11 +1814,18 @@ function bi(e, t, n, o, s, i) {
|
|
|
1800
1814
|
])), 128))
|
|
1801
1815
|
])) : b("", !0),
|
|
1802
1816
|
l("div", fi, [
|
|
1803
|
-
(a(!0),
|
|
1804
|
-
key: r +
|
|
1805
|
-
class: V([{ active: P }, "tag-item"]),
|
|
1806
|
-
onClick:
|
|
1807
|
-
},
|
|
1817
|
+
(a(!0), d(C, null, S(i.checkboxItems, ({ label: r, value: P, onClick: _, tooltip: M, style: L }, N) => D((a(), d("div", {
|
|
1818
|
+
key: r + N,
|
|
1819
|
+
class: V([[{ active: P }, L], "tag-item"]),
|
|
1820
|
+
onClick: _
|
|
1821
|
+
}, [
|
|
1822
|
+
I(u(r), 1)
|
|
1823
|
+
], 10, yi)), [
|
|
1824
|
+
[T, {
|
|
1825
|
+
content: M,
|
|
1826
|
+
delay: { show: 300, hide: 0 }
|
|
1827
|
+
}]
|
|
1828
|
+
])), 128))
|
|
1808
1829
|
])
|
|
1809
1830
|
])
|
|
1810
1831
|
]))
|
|
@@ -1812,15 +1833,15 @@ function bi(e, t, n, o, s, i) {
|
|
|
1812
1833
|
_: 1
|
|
1813
1834
|
}),
|
|
1814
1835
|
l("div", ki, [
|
|
1815
|
-
|
|
1836
|
+
D((a(), A(w, {
|
|
1816
1837
|
type: "primary",
|
|
1817
1838
|
tabindex: "0",
|
|
1818
1839
|
size: "large",
|
|
1819
1840
|
style: { padding: "1.75em", height: "4em", "font-size": "16px", "background-color": "hsl(231, 4%, 20%)", "border-color": "hsl(231, 4%, 20%)" },
|
|
1820
1841
|
onClick: i.addNewArticle
|
|
1821
1842
|
}, {
|
|
1822
|
-
default:
|
|
1823
|
-
p(
|
|
1843
|
+
default: g(() => [
|
|
1844
|
+
p(h, {
|
|
1824
1845
|
type: "zap",
|
|
1825
1846
|
size: "21",
|
|
1826
1847
|
style: { margin: "-3px" }
|
|
@@ -1855,8 +1876,8 @@ function bi(e, t, n, o, s, i) {
|
|
|
1855
1876
|
tabindex: "0",
|
|
1856
1877
|
onClick: i.onSaveArticle
|
|
1857
1878
|
}, {
|
|
1858
|
-
default:
|
|
1859
|
-
|
|
1879
|
+
default: g(() => [
|
|
1880
|
+
I(u(e.$t("save")), 1)
|
|
1860
1881
|
]),
|
|
1861
1882
|
_: 1
|
|
1862
1883
|
}, 8, ["onClick"])
|
|
@@ -1864,7 +1885,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
1864
1885
|
])
|
|
1865
1886
|
], 34);
|
|
1866
1887
|
}
|
|
1867
|
-
const wi = /* @__PURE__ */
|
|
1888
|
+
const wi = /* @__PURE__ */ R(ai, [["render", bi], ["__scopeId", "data-v-e5bbc8bd"]]), Ii = {
|
|
1868
1889
|
i18nOptions: {
|
|
1869
1890
|
name: "ArticleListEdit",
|
|
1870
1891
|
namespaces: "ArticleListEdit",
|
|
@@ -1938,7 +1959,7 @@ const wi = /* @__PURE__ */ D(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
|
|
|
1938
1959
|
hidePriceOnNew: "settings/hidePriceOnNewlyAddedArticles"
|
|
1939
1960
|
}),
|
|
1940
1961
|
articlesWithTotal() {
|
|
1941
|
-
return
|
|
1962
|
+
return se(this.articles);
|
|
1942
1963
|
},
|
|
1943
1964
|
isIndivid() {
|
|
1944
1965
|
return x(this._document, "prices.helpers.isIndivid", !0);
|
|
@@ -1982,7 +2003,7 @@ const wi = /* @__PURE__ */ D(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
|
|
|
1982
2003
|
},
|
|
1983
2004
|
methods: {
|
|
1984
2005
|
...z({
|
|
1985
|
-
showMessage:
|
|
2006
|
+
showMessage: O.SHOW_MESSAGE
|
|
1986
2007
|
}),
|
|
1987
2008
|
openModal(e, { focusEl: t = "" } = {}) {
|
|
1988
2009
|
this.selectedIndex = e, this.showModal = !0, t && this.$nextTick(() => {
|
|
@@ -2014,7 +2035,7 @@ const wi = /* @__PURE__ */ D(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
|
|
|
2014
2035
|
(100 + e.vat) * 0.01
|
|
2015
2036
|
)), this.updateArticleObject(
|
|
2016
2037
|
t,
|
|
2017
|
-
|
|
2038
|
+
se({ ...e, price: n.getAmount() })
|
|
2018
2039
|
);
|
|
2019
2040
|
});
|
|
2020
2041
|
},
|
|
@@ -2071,15 +2092,15 @@ const wi = /* @__PURE__ */ D(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
|
|
|
2071
2092
|
class: "label-text"
|
|
2072
2093
|
};
|
|
2073
2094
|
function Ti(e, t, n, o, s, i) {
|
|
2074
|
-
const f =
|
|
2075
|
-
return a(),
|
|
2076
|
-
i.showVatToggle ? (a(),
|
|
2077
|
-
|
|
2095
|
+
const f = v("Article"), h = v("Sortable"), k = v("ArticleModal"), c = v("Portal");
|
|
2096
|
+
return a(), d("div", _i, [
|
|
2097
|
+
i.showVatToggle ? (a(), d("div", $i, [
|
|
2098
|
+
I(u(e.$t("vatOption.label")) + " ", 1),
|
|
2078
2099
|
l("span", {
|
|
2079
|
-
onClick: t[0] || (t[0] = (
|
|
2100
|
+
onClick: t[0] || (t[0] = (y) => i.changeVat())
|
|
2080
2101
|
}, u(n._document.$t(`vat.${i.setPricesIncVat ? "incVat" : "exVat"}`)), 1)
|
|
2081
2102
|
])) : b("", !0),
|
|
2082
|
-
p(
|
|
2103
|
+
p(h, {
|
|
2083
2104
|
"item-key": "_uniqueId",
|
|
2084
2105
|
options: {
|
|
2085
2106
|
group: "articles",
|
|
@@ -2094,10 +2115,10 @@ function Ti(e, t, n, o, s, i) {
|
|
|
2094
2115
|
list: n.articles,
|
|
2095
2116
|
style: { "min-height": "calc(3 * var(--rem))" }
|
|
2096
2117
|
}, {
|
|
2097
|
-
item:
|
|
2118
|
+
item: g(({ item: y, index: w }) => [
|
|
2098
2119
|
p(f, {
|
|
2099
2120
|
ref: "articleItem",
|
|
2100
|
-
value:
|
|
2121
|
+
value: y,
|
|
2101
2122
|
width: o.articlesWidth,
|
|
2102
2123
|
"hide-price-input": e.hidePriceInput,
|
|
2103
2124
|
"hide-price-on-new": e.hidePriceOnNew,
|
|
@@ -2113,14 +2134,14 @@ function Ti(e, t, n, o, s, i) {
|
|
|
2113
2134
|
onOpenModal: ($) => i.openModal(w, $),
|
|
2114
2135
|
onAdd: ($) => w === i.articlesWithTotal.length - 1 ? e.$emit("add") : null,
|
|
2115
2136
|
onSelect: ($) => w === i.articlesWithTotal.length - 1 ? e.$emit("add") : null,
|
|
2116
|
-
onEsc: ($) => i.onEsc(w,
|
|
2137
|
+
onEsc: ($) => i.onEsc(w, y)
|
|
2117
2138
|
}, null, 8, ["value", "width", "hide-price-input", "hide-price-on-new", "is-inc-vat", "hide-controls", "root-price-type", "active-house-work-type", "onInput", "onRemove", "onOpenModal", "onAdd", "onSelect", "onEsc"])
|
|
2118
2139
|
]),
|
|
2119
2140
|
_: 1
|
|
2120
2141
|
}, 8, ["options", "list"]),
|
|
2121
|
-
p(
|
|
2122
|
-
default:
|
|
2123
|
-
s.showModal && i.articlesWithTotal[s.selectedIndex] ? (a(), A(
|
|
2142
|
+
p(c, { to: "modal" }, {
|
|
2143
|
+
default: g(() => [
|
|
2144
|
+
s.showModal && i.articlesWithTotal[s.selectedIndex] ? (a(), A(k, {
|
|
2124
2145
|
key: 0,
|
|
2125
2146
|
ref: "articleModal",
|
|
2126
2147
|
_document: n._document,
|
|
@@ -2133,18 +2154,18 @@ function Ti(e, t, n, o, s, i) {
|
|
|
2133
2154
|
currency: i.currency,
|
|
2134
2155
|
"active-house-work-type": n.activeHouseWorkType,
|
|
2135
2156
|
"view-settings": e.viewSettings,
|
|
2136
|
-
"onUpdate:currency": t[3] || (t[3] = (
|
|
2137
|
-
onInput: t[4] || (t[4] = (
|
|
2138
|
-
onAdd: t[5] || (t[5] = (
|
|
2157
|
+
"onUpdate:currency": t[3] || (t[3] = (y) => e.$emit("update:currency", y)),
|
|
2158
|
+
onInput: t[4] || (t[4] = (y) => i.updateArticleObject(s.selectedIndex, y)),
|
|
2159
|
+
onAdd: t[5] || (t[5] = (y) => e.$emit("add", y)),
|
|
2139
2160
|
onOpenModal: i.openModal,
|
|
2140
|
-
onClose: t[6] || (t[6] = (
|
|
2161
|
+
onClose: t[6] || (t[6] = (y) => s.showModal = !1)
|
|
2141
2162
|
}, null, 8, ["_document", "index", "article-list", "hide-price-input", "hide-price-on-new", "is-inc-vat", "root-price-type", "currency", "active-house-work-type", "view-settings", "onOpenModal"])) : b("", !0)
|
|
2142
2163
|
]),
|
|
2143
2164
|
_: 1
|
|
2144
2165
|
})
|
|
2145
2166
|
], 512);
|
|
2146
2167
|
}
|
|
2147
|
-
const Ai = /* @__PURE__ */
|
|
2168
|
+
const Ai = /* @__PURE__ */ R(Ii, [["render", Ti], ["__scopeId", "data-v-8ab60481"]]), Ci = {
|
|
2148
2169
|
name: "MaxTotalInput",
|
|
2149
2170
|
i18nOptions: {
|
|
2150
2171
|
namespaces: "MaxTotalInput",
|
|
@@ -2158,7 +2179,7 @@ const Ai = /* @__PURE__ */ D(Ii, [["render", Ti], ["__scopeId", "data-v-8ab60481
|
|
|
2158
2179
|
}
|
|
2159
2180
|
},
|
|
2160
2181
|
components: {
|
|
2161
|
-
CPriceInput:
|
|
2182
|
+
CPriceInput: J
|
|
2162
2183
|
},
|
|
2163
2184
|
props: {
|
|
2164
2185
|
modelValue: {
|
|
@@ -2177,7 +2198,7 @@ const Ai = /* @__PURE__ */ D(Ii, [["render", Ti], ["__scopeId", "data-v-8ab60481
|
|
|
2177
2198
|
emits: ["update:modelValue"],
|
|
2178
2199
|
data() {
|
|
2179
2200
|
return {
|
|
2180
|
-
getCurrencySymbol:
|
|
2201
|
+
getCurrencySymbol: ae
|
|
2181
2202
|
};
|
|
2182
2203
|
},
|
|
2183
2204
|
computed: {
|
|
@@ -2197,8 +2218,8 @@ const Ai = /* @__PURE__ */ D(Ii, [["render", Ti], ["__scopeId", "data-v-8ab60481
|
|
|
2197
2218
|
}
|
|
2198
2219
|
}, Pi = { class: "flex w-full justify-end" };
|
|
2199
2220
|
function xi(e, t, n, o, s, i) {
|
|
2200
|
-
const f =
|
|
2201
|
-
return a(),
|
|
2221
|
+
const f = v("CPriceInput");
|
|
2222
|
+
return a(), d("div", Pi, [
|
|
2202
2223
|
p(f, {
|
|
2203
2224
|
"model-value": n.modelValue,
|
|
2204
2225
|
currency: n.currency,
|
|
@@ -2209,12 +2230,12 @@ function xi(e, t, n, o, s, i) {
|
|
|
2209
2230
|
class: "mt-4 max-w-[275px] text-sm",
|
|
2210
2231
|
"prefix-class": "text-gray-400",
|
|
2211
2232
|
"suffix-class": "text-gray-400",
|
|
2212
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2233
|
+
"onUpdate:modelValue": t[0] || (t[0] = (h) => e.$emit("update:modelValue", h))
|
|
2213
2234
|
}, {
|
|
2214
|
-
prefix:
|
|
2215
|
-
|
|
2235
|
+
prefix: g(() => [
|
|
2236
|
+
I(u(e.$t("price.maxPrice").capitalize()), 1)
|
|
2216
2237
|
]),
|
|
2217
|
-
suffix:
|
|
2238
|
+
suffix: g(() => [
|
|
2218
2239
|
l("span", null, u(s.getCurrencySymbol(n.currency)) + " " + u(e.$t(`vat.${e.isIncVat ? "incVat" : "exVat"}`, {
|
|
2219
2240
|
thing: e.$t(`vat.${n.vatType}`)
|
|
2220
2241
|
})), 1)
|
|
@@ -2223,10 +2244,10 @@ function xi(e, t, n, o, s, i) {
|
|
|
2223
2244
|
}, 8, ["model-value", "currency", "is-inc-vat", "placeholder"])
|
|
2224
2245
|
]);
|
|
2225
2246
|
}
|
|
2226
|
-
const Vi = /* @__PURE__ */
|
|
2247
|
+
const Vi = /* @__PURE__ */ R(Ci, [["render", xi]]), Si = {
|
|
2227
2248
|
components: {
|
|
2228
|
-
CDropdown:
|
|
2229
|
-
CDropdownItem:
|
|
2249
|
+
CDropdown: Z,
|
|
2250
|
+
CDropdownItem: Y
|
|
2230
2251
|
},
|
|
2231
2252
|
props: {
|
|
2232
2253
|
modelValue: {
|
|
@@ -2241,28 +2262,28 @@ const Vi = /* @__PURE__ */ D(Ci, [["render", xi]]), Si = {
|
|
|
2241
2262
|
};
|
|
2242
2263
|
}
|
|
2243
2264
|
}, Di = { class: "flex justify-end" };
|
|
2244
|
-
function
|
|
2245
|
-
const f =
|
|
2246
|
-
return a(),
|
|
2247
|
-
p(
|
|
2248
|
-
trigger:
|
|
2265
|
+
function Ri(e, t, n, o, s, i) {
|
|
2266
|
+
const f = v("CButton"), h = v("CDropdownItem"), k = v("CDropdown");
|
|
2267
|
+
return a(), d("div", Di, [
|
|
2268
|
+
p(k, { "model-value": n.modelValue }, {
|
|
2269
|
+
trigger: g(() => [
|
|
2249
2270
|
p(f, { class: "price-type-button" }, {
|
|
2250
|
-
default:
|
|
2251
|
-
|
|
2271
|
+
default: g(() => [
|
|
2272
|
+
I(u(e.$t("price.pricing").capitalize()) + ": ", 1),
|
|
2252
2273
|
l("span", null, u(e.$t(`price.${n.modelValue}`)), 1)
|
|
2253
2274
|
]),
|
|
2254
2275
|
_: 1
|
|
2255
2276
|
})
|
|
2256
2277
|
]),
|
|
2257
|
-
default:
|
|
2258
|
-
(a(!0),
|
|
2259
|
-
key:
|
|
2260
|
-
value:
|
|
2278
|
+
default: g(() => [
|
|
2279
|
+
(a(!0), d(C, null, S(s.priceTypeOptions, (c) => (a(), A(h, {
|
|
2280
|
+
key: c,
|
|
2281
|
+
value: c,
|
|
2261
2282
|
class: "text-right",
|
|
2262
|
-
onClick: (
|
|
2283
|
+
onClick: (y) => e.$emit("update:modelValue", c)
|
|
2263
2284
|
}, {
|
|
2264
|
-
default:
|
|
2265
|
-
|
|
2285
|
+
default: g(() => [
|
|
2286
|
+
I(u(e.$t(`price.${c}`)), 1)
|
|
2266
2287
|
]),
|
|
2267
2288
|
_: 2
|
|
2268
2289
|
}, 1032, ["value", "onClick"]))), 128))
|
|
@@ -2271,10 +2292,10 @@ function Mi(e, t, n, o, s, i) {
|
|
|
2271
2292
|
}, 8, ["model-value"])
|
|
2272
2293
|
]);
|
|
2273
2294
|
}
|
|
2274
|
-
const
|
|
2295
|
+
const Mi = /* @__PURE__ */ R(Si, [["render", Ri], ["__scopeId", "data-v-26c5da6c"]]), Li = {
|
|
2275
2296
|
name: "EditDeduction",
|
|
2276
2297
|
components: {
|
|
2277
|
-
CPriceInput:
|
|
2298
|
+
CPriceInput: J
|
|
2278
2299
|
},
|
|
2279
2300
|
mixins: [q(["houseWorkManualAmount"])],
|
|
2280
2301
|
props: {
|
|
@@ -2328,22 +2349,22 @@ const Ri = /* @__PURE__ */ D(Si, [["render", Mi], ["__scopeId", "data-v-26c5da6c
|
|
|
2328
2349
|
class: "css-i6dzq1"
|
|
2329
2350
|
};
|
|
2330
2351
|
function qi(e, t, n, o, s, i) {
|
|
2331
|
-
const f =
|
|
2332
|
-
return a(),
|
|
2333
|
-
p(
|
|
2352
|
+
const f = v("CPriceInput"), h = v("CButton"), k = v("modal"), c = v("portal");
|
|
2353
|
+
return a(), d("div", null, [
|
|
2354
|
+
p(k, B({
|
|
2334
2355
|
adaptive: !0,
|
|
2335
2356
|
height: "auto",
|
|
2336
2357
|
width: "90%",
|
|
2337
2358
|
maxWidth: 420,
|
|
2338
2359
|
classes: "primary"
|
|
2339
2360
|
}, { name: s.modalName }), {
|
|
2340
|
-
default:
|
|
2361
|
+
default: g(() => [
|
|
2341
2362
|
l("div", Oi, [
|
|
2342
2363
|
l("div", Ei, u(e.$t("manualDeduction")), 1),
|
|
2343
2364
|
l("div", Ui, [
|
|
2344
2365
|
p(f, {
|
|
2345
2366
|
modelValue: s.internalValue,
|
|
2346
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2367
|
+
"onUpdate:modelValue": t[0] || (t[0] = (y) => s.internalValue = y),
|
|
2347
2368
|
modelModifiers: { number: !0 },
|
|
2348
2369
|
currency: "SEK",
|
|
2349
2370
|
placeholder: e.$t("enterThing", { thing: e.$t("deduction.deduction") }),
|
|
@@ -2351,8 +2372,8 @@ function qi(e, t, n, o, s, i) {
|
|
|
2351
2372
|
size: "medium",
|
|
2352
2373
|
"suffix-class": "text-gray-400"
|
|
2353
2374
|
}, {
|
|
2354
|
-
suffix:
|
|
2355
|
-
|
|
2375
|
+
suffix: g(() => [
|
|
2376
|
+
I(u(e.$t("currency.SEK")), 1)
|
|
2356
2377
|
]),
|
|
2357
2378
|
_: 1
|
|
2358
2379
|
}, 8, ["modelValue", "placeholder"])
|
|
@@ -2360,7 +2381,7 @@ function qi(e, t, n, o, s, i) {
|
|
|
2360
2381
|
l("div", Bi, u(e.$t("standardDeduction")), 1),
|
|
2361
2382
|
l("div", Wi, u(e.$t("standardDeductionMessage")), 1),
|
|
2362
2383
|
l("div", zi, [
|
|
2363
|
-
(a(),
|
|
2384
|
+
(a(), d(C, null, S([
|
|
2364
2385
|
{ v: 0.1455, l: "14.55%" },
|
|
2365
2386
|
{ v: 0.15, l: "15%" },
|
|
2366
2387
|
{ v: 0.175, l: "17.5%" },
|
|
@@ -2368,15 +2389,15 @@ function qi(e, t, n, o, s, i) {
|
|
|
2368
2389
|
{ v: 0.21, l: "21%" },
|
|
2369
2390
|
{ v: 0.485, l: "48.5%" },
|
|
2370
2391
|
{ v: 0.5, l: "50%" }
|
|
2371
|
-
], (
|
|
2372
|
-
key:
|
|
2392
|
+
], (y) => l("div", {
|
|
2393
|
+
key: y.l,
|
|
2373
2394
|
class: V([{
|
|
2374
|
-
active: Math.round(n.total *
|
|
2395
|
+
active: Math.round(n.total * y.v * 0.01) * 100 === s.internalValue
|
|
2375
2396
|
}, "deduction-button"]),
|
|
2376
|
-
onClick: (w) => i.setDeduction(
|
|
2377
|
-
}, u(
|
|
2397
|
+
onClick: (w) => i.setDeduction(y.v)
|
|
2398
|
+
}, u(y.l), 11, ji)), 64))
|
|
2378
2399
|
]),
|
|
2379
|
-
p(
|
|
2400
|
+
p(h, {
|
|
2380
2401
|
type: "secondary",
|
|
2381
2402
|
wide: "",
|
|
2382
2403
|
class: "mt-8",
|
|
@@ -2384,12 +2405,12 @@ function qi(e, t, n, o, s, i) {
|
|
|
2384
2405
|
e.houseWorkManualAmount = s.internalValue, e.$modal.hide(s.modalName);
|
|
2385
2406
|
})
|
|
2386
2407
|
}, {
|
|
2387
|
-
default:
|
|
2388
|
-
|
|
2408
|
+
default: g(() => [
|
|
2409
|
+
I(u(e.$t("save")), 1)
|
|
2389
2410
|
]),
|
|
2390
2411
|
_: 1
|
|
2391
2412
|
}),
|
|
2392
|
-
p(
|
|
2413
|
+
p(h, {
|
|
2393
2414
|
type: "secondary",
|
|
2394
2415
|
pattern: "tertiary",
|
|
2395
2416
|
wide: "",
|
|
@@ -2398,8 +2419,8 @@ function qi(e, t, n, o, s, i) {
|
|
|
2398
2419
|
e.houseWorkManualAmount = null, e.$modal.hide(s.modalName);
|
|
2399
2420
|
})
|
|
2400
2421
|
}, {
|
|
2401
|
-
default:
|
|
2402
|
-
|
|
2422
|
+
default: g(() => [
|
|
2423
|
+
I(u(e.$t("reset")), 1)
|
|
2403
2424
|
]),
|
|
2404
2425
|
_: 1
|
|
2405
2426
|
})
|
|
@@ -2407,17 +2428,17 @@ function qi(e, t, n, o, s, i) {
|
|
|
2407
2428
|
]),
|
|
2408
2429
|
_: 1
|
|
2409
2430
|
}, 16, ["name"]),
|
|
2410
|
-
e.houseWorkManualAmount ? (a(), A(
|
|
2431
|
+
e.houseWorkManualAmount ? (a(), A(c, {
|
|
2411
2432
|
key: 0,
|
|
2412
2433
|
order: 2,
|
|
2413
2434
|
to: "document-nav-bottom"
|
|
2414
2435
|
}, {
|
|
2415
|
-
default:
|
|
2436
|
+
default: g(() => [
|
|
2416
2437
|
l("div", {
|
|
2417
2438
|
class: "housework-manual-nav",
|
|
2418
|
-
onClick: t[3] || (t[3] = (
|
|
2439
|
+
onClick: t[3] || (t[3] = (y) => e.$modal.show(s.modalName))
|
|
2419
2440
|
}, [
|
|
2420
|
-
(a(),
|
|
2441
|
+
(a(), d("svg", Fi, t[4] || (t[4] = [
|
|
2421
2442
|
l("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }, null, -1),
|
|
2422
2443
|
l("line", {
|
|
2423
2444
|
x1: "12",
|
|
@@ -2432,14 +2453,14 @@ function qi(e, t, n, o, s, i) {
|
|
|
2432
2453
|
y2: "17"
|
|
2433
2454
|
}, null, -1)
|
|
2434
2455
|
]))),
|
|
2435
|
-
|
|
2456
|
+
I(" " + u(e.$t("deduction.manualType", { type: e.$t(`deduction.${n.houseWorkType}`) })) + " " + u(e.$t("using")), 1)
|
|
2436
2457
|
])
|
|
2437
2458
|
]),
|
|
2438
2459
|
_: 1
|
|
2439
2460
|
})) : b("", !0)
|
|
2440
2461
|
]);
|
|
2441
2462
|
}
|
|
2442
|
-
const Ni = /* @__PURE__ */
|
|
2463
|
+
const Ni = /* @__PURE__ */ R(Li, [["render", qi], ["__scopeId", "data-v-b12680ea"]]), Hi = {
|
|
2443
2464
|
name: "Pricing",
|
|
2444
2465
|
components: {
|
|
2445
2466
|
EditDeduction: Ni
|
|
@@ -2488,7 +2509,13 @@ const Ni = /* @__PURE__ */ D(Li, [["render", qi], ["__scopeId", "data-v-b12680ea
|
|
|
2488
2509
|
)
|
|
2489
2510
|
}),
|
|
2490
2511
|
value: -this.prices.region.houseWorkAmount,
|
|
2491
|
-
action: () => this.$refs.deduction.showModal()
|
|
2512
|
+
action: () => this.$refs.deduction.showModal(),
|
|
2513
|
+
showIcon: !!x(
|
|
2514
|
+
this.prices,
|
|
2515
|
+
"region.houseWorkManualAmount",
|
|
2516
|
+
!1
|
|
2517
|
+
),
|
|
2518
|
+
tooltip: this.$t("_common:manualDeductionTooltip")
|
|
2492
2519
|
}
|
|
2493
2520
|
] : [],
|
|
2494
2521
|
...this.prices.rounding.enabled && this.prices.rounding.show ? [
|
|
@@ -2523,7 +2550,7 @@ const Ni = /* @__PURE__ */ D(Li, [["render", qi], ["__scopeId", "data-v-b12680ea
|
|
|
2523
2550
|
] : []
|
|
2524
2551
|
].map((t) => ({
|
|
2525
2552
|
...t,
|
|
2526
|
-
value:
|
|
2553
|
+
value: H(t.value, {
|
|
2527
2554
|
showZero: !0,
|
|
2528
2555
|
decimals: 2,
|
|
2529
2556
|
currency: this.prices.currency
|
|
@@ -2545,8 +2572,8 @@ const Ni = /* @__PURE__ */ D(Li, [["render", qi], ["__scopeId", "data-v-b12680ea
|
|
|
2545
2572
|
class: "pricing-sub-label"
|
|
2546
2573
|
}, Ji = ["onClick"], Qi = { class: "price-value" };
|
|
2547
2574
|
function Xi(e, t, n, o, s, i) {
|
|
2548
|
-
const f =
|
|
2549
|
-
return a(),
|
|
2575
|
+
const f = v("EditDeduction"), h = v("CIcon"), k = U("tooltip");
|
|
2576
|
+
return a(), d("div", Gi, [
|
|
2550
2577
|
l("div", Ki, [
|
|
2551
2578
|
i.showHouseWork ? (a(), A(f, {
|
|
2552
2579
|
key: 0,
|
|
@@ -2559,21 +2586,21 @@ function Xi(e, t, n, o, s, i) {
|
|
|
2559
2586
|
"house-work-type": i.prices.region.houseWorkType,
|
|
2560
2587
|
"house-work-amount": i.prices.region.houseWorkAmount,
|
|
2561
2588
|
total: i.prices.subTotal + i.prices.taxAmount,
|
|
2562
|
-
onInput: t[0] || (t[0] = (
|
|
2589
|
+
onInput: t[0] || (t[0] = (c) => e.$emit("input", c))
|
|
2563
2590
|
}, null, 8, ["disabled", "_document", "_value", "house-work-type", "house-work-amount", "total"])) : b("", !0)
|
|
2564
2591
|
]),
|
|
2565
2592
|
l("div", null, [
|
|
2566
|
-
(a(!0),
|
|
2567
|
-
key:
|
|
2568
|
-
class: V([[
|
|
2593
|
+
(a(!0), d(C, null, S(i.priceArray, (c, y) => (a(), d("div", {
|
|
2594
|
+
key: y,
|
|
2595
|
+
class: V([[c.classList || ""], "price-row flex w-full justify-between"])
|
|
2569
2596
|
}, [
|
|
2570
2597
|
l("div", Yi, [
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2598
|
+
I(u(c.label.capitalize()) + " ", 1),
|
|
2599
|
+
c.subLabel ? (a(), d("span", Zi, u(c.subLabel), 1)) : b("", !0),
|
|
2600
|
+
c.action ? D((a(), d("span", {
|
|
2574
2601
|
key: 1,
|
|
2575
2602
|
class: "pricing-action",
|
|
2576
|
-
onClick: (
|
|
2603
|
+
onClick: (w) => c.action ? c.action() : null
|
|
2577
2604
|
}, t[1] || (t[1] = [
|
|
2578
2605
|
l("svg", {
|
|
2579
2606
|
viewBox: "0 0 24 24",
|
|
@@ -2589,15 +2616,23 @@ function Xi(e, t, n, o, s, i) {
|
|
|
2589
2616
|
l("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })
|
|
2590
2617
|
], -1)
|
|
2591
2618
|
]), 8, Ji)), [
|
|
2592
|
-
[
|
|
2619
|
+
[k, e.$t("edit", { thing: e.$t("deduction.deduction") })]
|
|
2620
|
+
]) : b("", !0),
|
|
2621
|
+
c.showIcon ? D((a(), A(h, {
|
|
2622
|
+
key: 2,
|
|
2623
|
+
type: "info",
|
|
2624
|
+
size: "20",
|
|
2625
|
+
class: "border-primary-100 bg-primary-100 text-primary-500 mx-1 rounded-full border-2"
|
|
2626
|
+
}, null, 512)), [
|
|
2627
|
+
[k, c.tooltip]
|
|
2593
2628
|
]) : b("", !0)
|
|
2594
2629
|
]),
|
|
2595
|
-
l("div", Qi, u(
|
|
2630
|
+
l("div", Qi, u(c.prefix) + " " + u(c.value), 1)
|
|
2596
2631
|
], 2))), 128))
|
|
2597
2632
|
])
|
|
2598
2633
|
]);
|
|
2599
2634
|
}
|
|
2600
|
-
const en = /* @__PURE__ */
|
|
2635
|
+
const en = /* @__PURE__ */ R(Hi, [["render", Xi], ["__scopeId", "data-v-b6c617f4"]]), tn = {
|
|
2601
2636
|
name: "PackageItemEdit",
|
|
2602
2637
|
i18nOptions: {
|
|
2603
2638
|
namespaces: "PackageItemEdit",
|
|
@@ -2626,12 +2661,12 @@ const en = /* @__PURE__ */ D(Hi, [["render", Xi], ["__scopeId", "data-v-90384cd6
|
|
|
2626
2661
|
},
|
|
2627
2662
|
components: {
|
|
2628
2663
|
ArticleList: Ai,
|
|
2629
|
-
PriceFormAlternatives:
|
|
2664
|
+
PriceFormAlternatives: Mi,
|
|
2630
2665
|
MaxTotalInput: Vi,
|
|
2631
2666
|
Pricing: en,
|
|
2632
2667
|
TextEditor: Qe,
|
|
2633
|
-
CDropdown:
|
|
2634
|
-
CDropdownItem:
|
|
2668
|
+
CDropdown: Z,
|
|
2669
|
+
CDropdownItem: Y
|
|
2635
2670
|
},
|
|
2636
2671
|
emits: [
|
|
2637
2672
|
"move",
|
|
@@ -2788,71 +2823,71 @@ const en = /* @__PURE__ */ D(Hi, [["render", Xi], ["__scopeId", "data-v-90384cd6
|
|
|
2788
2823
|
}
|
|
2789
2824
|
}, nn = { class: "min-h-0 rounded-md border border-gray-200 bg-white text-black" }, sn = { class: "flex w-full items-center justify-between bg-gray-100 py-1 pl-4 pr-1 text-sm font-medium text-gray-600" }, an = { class: "p-4" }, on = { class: "mb-0.5 flex items-center" }, rn = ["id", "placeholder"], ln = { class: "mt-2 flex gap-2" };
|
|
2790
2825
|
function cn(e, t, n, o, s, i) {
|
|
2791
|
-
const f =
|
|
2792
|
-
return a(),
|
|
2826
|
+
const f = v("CButton"), h = v("CDropdownItem"), k = v("CDropdown"), c = v("TextEditor"), y = v("MaxTotalInput"), w = v("PriceFormAlternatives"), $ = v("ArticleList"), m = v("CIcon"), T = v("Pricing"), r = U("tooltip"), P = U("click-outside");
|
|
2827
|
+
return a(), d("div", nn, [
|
|
2793
2828
|
l("div", sn, [
|
|
2794
2829
|
l("div", null, u(n.type === "single" ? e.$t("single") : n.type === "radio" || n.toggable ? e.$t("option") : e.$t("base")), 1),
|
|
2795
|
-
n.type !== "single" ? (a(), A(
|
|
2830
|
+
n.type !== "single" ? (a(), A(k, {
|
|
2796
2831
|
key: 0,
|
|
2797
2832
|
class: "ml-4"
|
|
2798
2833
|
}, {
|
|
2799
|
-
trigger:
|
|
2834
|
+
trigger: g(() => [
|
|
2800
2835
|
p(f, {
|
|
2801
2836
|
size: "small",
|
|
2802
2837
|
type: "text",
|
|
2803
2838
|
pattern: "secondary",
|
|
2804
2839
|
class: "is-thinner opacity-70"
|
|
2805
2840
|
}, {
|
|
2806
|
-
default:
|
|
2807
|
-
|
|
2841
|
+
default: g(() => [
|
|
2842
|
+
I(u(e.$t("_common:change")), 1)
|
|
2808
2843
|
]),
|
|
2809
2844
|
_: 1
|
|
2810
2845
|
})
|
|
2811
2846
|
]),
|
|
2812
|
-
default:
|
|
2813
|
-
n.toggable ? (a(),
|
|
2814
|
-
p(
|
|
2847
|
+
default: g(() => [
|
|
2848
|
+
n.toggable ? (a(), d(C, { key: 0 }, [
|
|
2849
|
+
p(h, {
|
|
2815
2850
|
value: e.isSelectedDefault,
|
|
2816
2851
|
toggle: !0,
|
|
2817
2852
|
"close-on-click": !1,
|
|
2818
|
-
onClick: t[0] || (t[0] = (
|
|
2853
|
+
onClick: t[0] || (t[0] = (_) => e.$emit("update:isSelectedDefault", !e.isSelectedDefault))
|
|
2819
2854
|
}, {
|
|
2820
|
-
default:
|
|
2821
|
-
|
|
2855
|
+
default: g(() => [
|
|
2856
|
+
I(u(e.$t("selected")), 1)
|
|
2822
2857
|
]),
|
|
2823
2858
|
_: 1
|
|
2824
2859
|
}, 8, ["value"]),
|
|
2825
|
-
p(
|
|
2860
|
+
p(h, { separator: "" })
|
|
2826
2861
|
], 64)) : b("", !0),
|
|
2827
|
-
p(
|
|
2862
|
+
p(h, {
|
|
2828
2863
|
"icon-left": "arrow-up",
|
|
2829
2864
|
disabled: !n.moveOptions.up,
|
|
2830
|
-
onClick: t[1] || (t[1] = (
|
|
2865
|
+
onClick: t[1] || (t[1] = (_) => e.$emit("move", -1))
|
|
2831
2866
|
}, {
|
|
2832
|
-
default:
|
|
2833
|
-
|
|
2867
|
+
default: g(() => [
|
|
2868
|
+
I(u(e.$t("_common:move", { thing: e.$t("_common:up") })), 1)
|
|
2834
2869
|
]),
|
|
2835
2870
|
_: 1
|
|
2836
2871
|
}, 8, ["disabled"]),
|
|
2837
|
-
p(
|
|
2872
|
+
p(h, {
|
|
2838
2873
|
"icon-left": "arrow-down",
|
|
2839
2874
|
disabled: !n.moveOptions.down,
|
|
2840
|
-
onClick: t[2] || (t[2] = (
|
|
2875
|
+
onClick: t[2] || (t[2] = (_) => e.$emit("move", 1))
|
|
2841
2876
|
}, {
|
|
2842
|
-
default:
|
|
2843
|
-
|
|
2877
|
+
default: g(() => [
|
|
2878
|
+
I(u(e.$t("_common:move", { thing: e.$t("_common:down") })), 1)
|
|
2844
2879
|
]),
|
|
2845
2880
|
_: 1
|
|
2846
2881
|
}, 8, ["disabled"]),
|
|
2847
|
-
p(
|
|
2882
|
+
p(h, {
|
|
2848
2883
|
"icon-props": {
|
|
2849
2884
|
stroke: "red"
|
|
2850
2885
|
},
|
|
2851
2886
|
"icon-left": "trash",
|
|
2852
2887
|
onClick: i.onRemove
|
|
2853
2888
|
}, {
|
|
2854
|
-
default:
|
|
2855
|
-
|
|
2889
|
+
default: g(() => [
|
|
2890
|
+
I(u(e.$t("_common:remove")), 1)
|
|
2856
2891
|
]),
|
|
2857
2892
|
_: 1
|
|
2858
2893
|
}, 8, ["onClick"])
|
|
@@ -2862,32 +2897,32 @@ function cn(e, t, n, o, s, i) {
|
|
|
2862
2897
|
]),
|
|
2863
2898
|
l("div", an, [
|
|
2864
2899
|
l("div", on, [
|
|
2865
|
-
|
|
2900
|
+
D(l("input", {
|
|
2866
2901
|
id: `package-name-${n.packageId}`,
|
|
2867
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
2902
|
+
"onUpdate:modelValue": t[3] || (t[3] = (_) => e.name = _),
|
|
2868
2903
|
placeholder: e.$t("namePlaceholder"),
|
|
2869
2904
|
class: "block w-full rounded-lg p-0 text-xl font-bold leading-loose placeholder:text-gray-400",
|
|
2870
|
-
onKeyup: t[4] || (t[4] = j((
|
|
2905
|
+
onKeyup: t[4] || (t[4] = j((_) => e.$refs.editor.focus(), ["enter"]))
|
|
2871
2906
|
}, null, 40, rn), [
|
|
2872
2907
|
[Ye, e.name]
|
|
2873
2908
|
])
|
|
2874
2909
|
]),
|
|
2875
|
-
p(
|
|
2910
|
+
p(c, {
|
|
2876
2911
|
ref: "editor",
|
|
2877
2912
|
modelValue: i.internalDescription,
|
|
2878
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
2913
|
+
"onUpdate:modelValue": t[5] || (t[5] = (_) => i.internalDescription = _),
|
|
2879
2914
|
placeholder: e.$t("textPlaceholder"),
|
|
2880
2915
|
mentions: () => e._document.textTemplateItems,
|
|
2881
2916
|
class: "text-editor mb-4"
|
|
2882
2917
|
}, null, 8, ["modelValue", "placeholder", "mentions"]),
|
|
2883
|
-
|
|
2884
|
-
onMouseoverPassive: t[15] || (t[15] = (
|
|
2885
|
-
onMouseleavePassive: t[16] || (t[16] = (
|
|
2918
|
+
D((a(), d("div", {
|
|
2919
|
+
onMouseoverPassive: t[15] || (t[15] = (_) => s.isHover = !0),
|
|
2920
|
+
onMouseleavePassive: t[16] || (t[16] = (_) => s.isHover = !1)
|
|
2886
2921
|
}, [
|
|
2887
|
-
e.priceType === "openAccMaxPrice" ? (a(), A(
|
|
2922
|
+
e.priceType === "openAccMaxPrice" ? (a(), A(y, {
|
|
2888
2923
|
key: 0,
|
|
2889
2924
|
modelValue: e.maxTotal,
|
|
2890
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
2925
|
+
"onUpdate:modelValue": t[6] || (t[6] = (_) => e.maxTotal = _),
|
|
2891
2926
|
currency: e.currency,
|
|
2892
2927
|
"vat-type": e._document.vatType,
|
|
2893
2928
|
class: "mb-4"
|
|
@@ -2895,8 +2930,8 @@ function cn(e, t, n, o, s, i) {
|
|
|
2895
2930
|
p(w, {
|
|
2896
2931
|
modelValue: e.priceType,
|
|
2897
2932
|
"onUpdate:modelValue": [
|
|
2898
|
-
t[7] || (t[7] = (
|
|
2899
|
-
t[8] || (t[8] = (
|
|
2933
|
+
t[7] || (t[7] = (_) => e.priceType = _),
|
|
2934
|
+
t[8] || (t[8] = (_) => e.$emit("update:priceType", _))
|
|
2900
2935
|
]
|
|
2901
2936
|
}, null, 8, ["modelValue"]),
|
|
2902
2937
|
p($, {
|
|
@@ -2907,18 +2942,18 @@ function cn(e, t, n, o, s, i) {
|
|
|
2907
2942
|
"active-house-work-type": n.activeHouseWorkType,
|
|
2908
2943
|
"hide-controls": !s.isFocus && !s.isHover,
|
|
2909
2944
|
onInput: i.onArticleInput,
|
|
2910
|
-
"onUpdate:setPricesIncVat": t[9] || (t[9] = (
|
|
2911
|
-
"onUpdate:currency": t[10] || (t[10] = (
|
|
2945
|
+
"onUpdate:setPricesIncVat": t[9] || (t[9] = (_) => e.$emit("update:setPricesIncVat", _)),
|
|
2946
|
+
"onUpdate:currency": t[10] || (t[10] = (_) => e.$emit("update:currency", _)),
|
|
2912
2947
|
onMove: i.onArticleMove,
|
|
2913
2948
|
onRemove: i.onArticleRemove,
|
|
2914
2949
|
onAdd: i.onArticleAdd,
|
|
2915
|
-
onFocus: t[11] || (t[11] = (
|
|
2950
|
+
onFocus: t[11] || (t[11] = (_) => s.isFocus = !0),
|
|
2916
2951
|
onInsert: i.onInsert
|
|
2917
2952
|
}, null, 8, ["_document", "articles", "root-price-type", "active-house-work-type", "hide-controls", "onInput", "onMove", "onRemove", "onAdd", "onInsert"]),
|
|
2918
2953
|
l("div", ln, [
|
|
2919
2954
|
l("div", {
|
|
2920
2955
|
class: "cursor-pointer rounded-md border border-gray-200 bg-gray-100 p-2.5 text-center text-sm font-medium leading-none text-gray-500 transition-colors hover:border-gray-400 hover:bg-gray-500 hover:text-white",
|
|
2921
|
-
onClick: t[12] || (t[12] = (
|
|
2956
|
+
onClick: t[12] || (t[12] = (_) => i.onArticleAdd())
|
|
2922
2957
|
}, [
|
|
2923
2958
|
p(m, {
|
|
2924
2959
|
type: "plus",
|
|
@@ -2926,11 +2961,11 @@ function cn(e, t, n, o, s, i) {
|
|
|
2926
2961
|
"stroke-width": "3",
|
|
2927
2962
|
class: "mr-1"
|
|
2928
2963
|
}),
|
|
2929
|
-
|
|
2964
|
+
I(" " + u(e.$t("addButton")), 1)
|
|
2930
2965
|
]),
|
|
2931
|
-
|
|
2966
|
+
D((a(), d("div", {
|
|
2932
2967
|
class: "cursor-pointer rounded-md border border-gray-200 bg-gray-100 p-2.5 text-center text-sm font-medium leading-none text-gray-500 transition-colors hover:border-gray-400 hover:bg-gray-500 hover:text-white",
|
|
2933
|
-
onClick: t[13] || (t[13] = (
|
|
2968
|
+
onClick: t[13] || (t[13] = (_) => i.onArticleAdd({ openModal: !0 }))
|
|
2934
2969
|
}, [
|
|
2935
2970
|
p(m, {
|
|
2936
2971
|
type: "zap",
|
|
@@ -2948,7 +2983,7 @@ function cn(e, t, n, o, s, i) {
|
|
|
2948
2983
|
_document: e._document,
|
|
2949
2984
|
"base-path": `${e._value.basePath}`,
|
|
2950
2985
|
"package-id": n.packageId,
|
|
2951
|
-
onInput: t[14] || (t[14] = (
|
|
2986
|
+
onInput: t[14] || (t[14] = (_) => e.$emit("input", _))
|
|
2952
2987
|
}, null, 8, ["_document", "base-path", "package-id"])
|
|
2953
2988
|
], 32)), [
|
|
2954
2989
|
[
|
|
@@ -2961,7 +2996,7 @@ function cn(e, t, n, o, s, i) {
|
|
|
2961
2996
|
])
|
|
2962
2997
|
]);
|
|
2963
2998
|
}
|
|
2964
|
-
const dn = /* @__PURE__ */
|
|
2999
|
+
const dn = /* @__PURE__ */ R(tn, [["render", cn], ["__scopeId", "data-v-64642fe7"]]), un = (e) => (e || []).slice(0, 1).map((t) => ({
|
|
2965
3000
|
...t,
|
|
2966
3001
|
isSelected: !0,
|
|
2967
3002
|
isSelectedDefault: !0,
|
|
@@ -3047,8 +3082,8 @@ const gn = {
|
|
|
3047
3082
|
PackageItem: dn,
|
|
3048
3083
|
PackageGroupSelect: kt,
|
|
3049
3084
|
CCallout: $e,
|
|
3050
|
-
CDropdown:
|
|
3051
|
-
CDropdownItem:
|
|
3085
|
+
CDropdown: Z,
|
|
3086
|
+
CDropdownItem: Y
|
|
3052
3087
|
},
|
|
3053
3088
|
mixins: [
|
|
3054
3089
|
q([
|
|
@@ -3121,7 +3156,7 @@ const gn = {
|
|
|
3121
3156
|
},
|
|
3122
3157
|
methods: {
|
|
3123
3158
|
...z({
|
|
3124
|
-
showMessage:
|
|
3159
|
+
showMessage: O.SHOW_MESSAGE
|
|
3125
3160
|
}),
|
|
3126
3161
|
setPricesIncVatAsDefault(e = {}) {
|
|
3127
3162
|
this.$emit("input", {
|
|
@@ -3262,13 +3297,13 @@ const gn = {
|
|
|
3262
3297
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3263
3298
|
}, Tn = { class: "flex w-full" };
|
|
3264
3299
|
function An(e, t, n, o, s, i) {
|
|
3265
|
-
const f =
|
|
3266
|
-
return a(),
|
|
3267
|
-
e.type ? (a(),
|
|
3300
|
+
const f = v("PackageGroupSelect"), h = v("ErrorCallout"), k = v("CButton"), c = v("CDropdownItem"), y = v("CDropdown"), w = v("CCallout"), $ = v("PackageItem");
|
|
3301
|
+
return a(), d("div", vn, [
|
|
3302
|
+
e.type ? (a(), d(C, { key: 1 }, [
|
|
3268
3303
|
l("div", yn, [
|
|
3269
|
-
p(
|
|
3270
|
-
trigger:
|
|
3271
|
-
p(
|
|
3304
|
+
p(y, null, {
|
|
3305
|
+
trigger: g(() => [
|
|
3306
|
+
p(k, {
|
|
3272
3307
|
type: "none",
|
|
3273
3308
|
size: "normal",
|
|
3274
3309
|
pattern: "secondary",
|
|
@@ -3276,23 +3311,23 @@ function An(e, t, n, o, s, i) {
|
|
|
3276
3311
|
circle: ""
|
|
3277
3312
|
})
|
|
3278
3313
|
]),
|
|
3279
|
-
default:
|
|
3280
|
-
p(
|
|
3281
|
-
default:
|
|
3282
|
-
|
|
3314
|
+
default: g(() => [
|
|
3315
|
+
p(c, { onClick: i.onResetType }, {
|
|
3316
|
+
default: g(() => [
|
|
3317
|
+
I(u(e.$t("_common:change", {
|
|
3283
3318
|
thing: e.$t("_common:price.proposal").toLowerCase()
|
|
3284
3319
|
})), 1)
|
|
3285
3320
|
]),
|
|
3286
3321
|
_: 1
|
|
3287
3322
|
}, 8, ["onClick"]),
|
|
3288
|
-
p(
|
|
3323
|
+
p(c, {
|
|
3289
3324
|
value: !!e.hideGroupPrice,
|
|
3290
3325
|
"close-on-click": !1,
|
|
3291
3326
|
toggle: "",
|
|
3292
3327
|
onInput: t[1] || (t[1] = (m) => e.hideGroupPrice = m)
|
|
3293
3328
|
}, {
|
|
3294
|
-
default:
|
|
3295
|
-
|
|
3329
|
+
default: g(() => [
|
|
3330
|
+
I(u(e.$t("hideGroupPrice")), 1)
|
|
3296
3331
|
]),
|
|
3297
3332
|
_: 1
|
|
3298
3333
|
}, 8, ["value"])
|
|
@@ -3305,9 +3340,9 @@ function An(e, t, n, o, s, i) {
|
|
|
3305
3340
|
title: e.$t("base"),
|
|
3306
3341
|
class: "w-full"
|
|
3307
3342
|
}, {
|
|
3308
|
-
default:
|
|
3343
|
+
default: g(() => [
|
|
3309
3344
|
l("div", kn, u(e.$t("basePlaceholder")), 1),
|
|
3310
|
-
p(
|
|
3345
|
+
p(k, {
|
|
3311
3346
|
type: "secondary",
|
|
3312
3347
|
size: "small",
|
|
3313
3348
|
style: { "font-weight": "600" },
|
|
@@ -3317,8 +3352,8 @@ function An(e, t, n, o, s, i) {
|
|
|
3317
3352
|
toggable: !1
|
|
3318
3353
|
}))
|
|
3319
3354
|
}, {
|
|
3320
|
-
default:
|
|
3321
|
-
|
|
3355
|
+
default: g(() => [
|
|
3356
|
+
I(u(e.$t("_common:add", { thing: e.$t("base").toLowerCase() })), 1)
|
|
3322
3357
|
]),
|
|
3323
3358
|
_: 1
|
|
3324
3359
|
})
|
|
@@ -3329,8 +3364,8 @@ function An(e, t, n, o, s, i) {
|
|
|
3329
3364
|
name: "section-list",
|
|
3330
3365
|
tag: "div"
|
|
3331
3366
|
}, {
|
|
3332
|
-
default:
|
|
3333
|
-
(a(!0),
|
|
3367
|
+
default: g(() => [
|
|
3368
|
+
(a(!0), d(C, null, S(i.topRowPackages, (m, T) => (a(), d("div", {
|
|
3334
3369
|
key: m.packageId,
|
|
3335
3370
|
class: "section-item pb-4"
|
|
3336
3371
|
}, [
|
|
@@ -3370,15 +3405,15 @@ function An(e, t, n, o, s, i) {
|
|
|
3370
3405
|
]),
|
|
3371
3406
|
_: 1
|
|
3372
3407
|
})),
|
|
3373
|
-
e.type === "checkbox" && i.topRowPackages.length && i.bottomRowPackages.length ? (a(),
|
|
3408
|
+
e.type === "checkbox" && i.topRowPackages.length && i.bottomRowPackages.length ? (a(), d("div", bn)) : b("", !0),
|
|
3374
3409
|
e.type === "checkbox" ? (a(), A(re, {
|
|
3375
3410
|
key: 3,
|
|
3376
3411
|
name: "section-list",
|
|
3377
3412
|
tag: "div",
|
|
3378
3413
|
style: { "margin-bottom": "calc(1 * var(--rem))" }
|
|
3379
3414
|
}, {
|
|
3380
|
-
default:
|
|
3381
|
-
(a(!0),
|
|
3415
|
+
default: g(() => [
|
|
3416
|
+
(a(!0), d(C, null, S(i.bottomRowPackages, (m, T) => (a(), d("div", {
|
|
3382
3417
|
key: m.packageId,
|
|
3383
3418
|
class: "section-item",
|
|
3384
3419
|
style: { padding: "calc(1 * var(--rem)) 0" }
|
|
@@ -3418,44 +3453,44 @@ function An(e, t, n, o, s, i) {
|
|
|
3418
3453
|
]),
|
|
3419
3454
|
_: 1
|
|
3420
3455
|
})) : b("", !0),
|
|
3421
|
-
e.type !== "single" || !e.packages.length ? (a(),
|
|
3456
|
+
e.type !== "single" || !e.packages.length ? (a(), d("div", wn, [
|
|
3422
3457
|
l("div", In, [
|
|
3423
|
-
e.type === "radio" && !e.packages.length ? (a(),
|
|
3424
|
-
(a(),
|
|
3458
|
+
e.type === "radio" && !e.packages.length ? (a(), d("div", _n, [
|
|
3459
|
+
(a(), d("svg", $n, t[13] || (t[13] = [
|
|
3425
3460
|
l("path", {
|
|
3426
3461
|
d: "M8.03.22c.3.3.3.77 0 1.06L5.56 3.75h6.88L9.97 1.28A.75.75 0 1111.03.21l3.53 3.54h2.69a.75.75 0 010 1.5h-.12l-1.17 6.4a2.25 2.25 0 01-2.21 1.85h-9.5a2.25 2.25 0 01-2.21-1.84L.87 5.26H.75a.75.75 0 010-1.5h2.69L6.97.21c.3-.3.77-.3 1.06 0zM2.4 5.25L3.5 11.4c.07.35.38.61.74.61h9.5c.36 0 .67-.26.74-.61l1.11-6.14H2.4zm3.1 1.5c.41-.06.8.22.86.63l.38 2.25a.75.75 0 11-1.48.24l-.37-2.25c-.07-.4.2-.8.61-.86zm7 0c.4.08.68.47.61.87l-.37 2.25a.75.75 0 11-1.48-.24l.38-2.25a.75.75 0 01.86-.62zm-3.5 0c.41 0 .75.34.75.75v2.25a.75.75 0 01-1.5 0V7.5c0-.41.34-.75.75-.75z",
|
|
3427
3462
|
fill: "#000",
|
|
3428
3463
|
"fill-rule": "evenodd"
|
|
3429
3464
|
}, null, -1)
|
|
3430
3465
|
]))),
|
|
3431
|
-
|
|
3466
|
+
I(" " + u(e.$t("selectablePlaceholder")), 1)
|
|
3432
3467
|
])) : b("", !0)
|
|
3433
3468
|
]),
|
|
3434
|
-
n.validator.$invalid && n.validator.$dirty ? (a(), A(
|
|
3469
|
+
n.validator.$invalid && n.validator.$dirty ? (a(), A(h, {
|
|
3435
3470
|
key: 0,
|
|
3436
3471
|
message: e.$t("error.minOnePackage"),
|
|
3437
3472
|
style: { margin: "calc(1 * var(--rem)) 0 calc(1 * var(--rem)) 0" }
|
|
3438
3473
|
}, null, 8, ["message"])) : b("", !0),
|
|
3439
3474
|
l("div", Tn, [
|
|
3440
|
-
p(
|
|
3475
|
+
p(k, {
|
|
3441
3476
|
type: "secondary",
|
|
3442
3477
|
outlined: "",
|
|
3443
3478
|
"icon-left": "plus",
|
|
3444
3479
|
style: { "border-color": "hsl(0, 0%, 82%)" },
|
|
3445
3480
|
onClick: t[12] || (t[12] = (m) => i.addPackage())
|
|
3446
3481
|
}, {
|
|
3447
|
-
default:
|
|
3448
|
-
|
|
3482
|
+
default: g(() => [
|
|
3483
|
+
I(u(e.$t("add")), 1)
|
|
3449
3484
|
]),
|
|
3450
3485
|
_: 1
|
|
3451
3486
|
})
|
|
3452
3487
|
])
|
|
3453
3488
|
])) : b("", !0)
|
|
3454
|
-
], 64)) : (a(),
|
|
3489
|
+
], 64)) : (a(), d("div", fn, [
|
|
3455
3490
|
p(f, {
|
|
3456
3491
|
onInput: t[0] || (t[0] = (m) => i.onSelectType(m))
|
|
3457
3492
|
}),
|
|
3458
|
-
n.validator.$invalid && n.validator.$dirty ? (a(), A(
|
|
3493
|
+
n.validator.$invalid && n.validator.$dirty ? (a(), A(h, {
|
|
3459
3494
|
key: 0,
|
|
3460
3495
|
message: e.$t("error.selectType"),
|
|
3461
3496
|
style: { "padding-bottom": "calc(1.5 * var(--rem))" }
|
|
@@ -3463,7 +3498,7 @@ function An(e, t, n, o, s, i) {
|
|
|
3463
3498
|
]))
|
|
3464
3499
|
]);
|
|
3465
3500
|
}
|
|
3466
|
-
const zn = /* @__PURE__ */
|
|
3501
|
+
const zn = /* @__PURE__ */ R(gn, [["render", An], ["__scopeId", "data-v-03549668"]]);
|
|
3467
3502
|
export {
|
|
3468
3503
|
zn as default
|
|
3469
3504
|
};
|