@cling-se/widget 0.19.9 → 0.19.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/{AddClientCallout-C400wpa7.js → AddClientCallout-BsRvkT-W.js} +4 -4
- package/dist/{AnswerModal-C_vekdpA.js → AnswerModal-DEZ_YBHk.js} +3 -3
- package/dist/{AttachmentItem-CYeH1VVw.js → AttachmentItem-7BXCpSN5.js} +4 -4
- package/dist/{BaseUpload-DGLogqK4.js → BaseUpload-BoI75J6e.js} +2 -2
- package/dist/{BlockMedia-Hbm0GWNw.js → BlockMedia-mDZEGad9.js} +1 -1
- package/dist/{CCallout-BPCwr3uM.js → CCallout--fWgvr0x.js} +1 -1
- package/dist/{CCurrencyDropdown-CZXWH0mA.js → CCurrencyDropdown-C0Fn_4IX.js} +3 -3
- package/dist/{CDropdownItem-B9dja0RC.js → CDropdownItem-D3_tCkkr.js} +2 -2
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-HLxgkrxm.js → CFormField.vue_vue_type_script_setup_true_lang-CLNJpSL4.js} +2 -2
- package/dist/{CPhoneFormat-C1cjsMVZ.js → CPhoneFormat-CcCMbWmZ.js} +1 -1
- package/dist/{CPhoneInput-DwcIFaqz.js → CPhoneInput-BLbPiE9M.js} +5 -5
- package/dist/{CPriceInput-C_PfAhRb.js → CPriceInput-D03-LElV.js} +2 -2
- package/dist/{CSelect-D4A_clvT.js → CSelect-D9paYPUW.js} +1 -1
- package/dist/{CSkeleton-h81Vudx0.js → CSkeleton-CJ7CFudo.js} +1 -1
- package/dist/{ClientAutocomplete-B_R7zgvM.js → ClientAutocomplete-CAQHG8Tz.js} +3 -3
- package/dist/{ClientModal-CBJgrb_y.js → ClientModal-pu3oIp0w.js} +8 -8
- package/dist/{ColorPicker-a5yTVc0q.js → ColorPicker-CzVbcUB-.js} +1 -1
- package/dist/{CompanyModal-sRTrUPOY.js → CompanyModal-Dy72AiPw.js} +7 -7
- package/dist/{ContentWrapper-Cwd6t51-.js → ContentWrapper-DfeVimeu.js} +6 -6
- package/dist/{CoverBlockSettings-8tjji9f1.js → CoverBlockSettings-A3-vTq36.js} +7 -7
- package/dist/{DocAnswer-D1ZIH1Hn.js → DocAnswer-Dr6gyQOP.js} +2 -2
- package/dist/{DocDetails-B5_hBzC-.js → DocDetails-Bj29y4bu.js} +4 -4
- package/dist/{DocForm-BKQvY0Ie.js → DocForm-DHL6Dvhw.js} +24 -24
- package/dist/{DocFormSend-z0W-xRJP.js → DocFormSend-Djnm9KoO.js} +2 -2
- package/dist/{DocLinks-BgbDU24h.js → DocLinks-UB3xT-cg.js} +2 -2
- package/dist/{DocModalBase-CNo1u8TK.js → DocModalBase-B04bul06.js} +1 -1
- package/dist/{DocPrint--UV846r0.js → DocPrint-CGGGhXZ1.js} +1 -1
- package/dist/{DocReceipt-BAkWIKbC.js → DocReceipt-DL3HQLkv.js} +2 -2
- package/dist/{DocSendReminder-Bk6IVg0R.js → DocSendReminder-CxP97wDu.js} +1 -1
- package/dist/{DocTextEditor-D5zDbbXV.js → DocTextEditor-BQhfVRlV.js} +8 -8
- package/dist/{DocTimeline-KG4zJJOW.js → DocTimeline-BPR65V2I.js} +2 -2
- package/dist/{DocumentClient-CXSxwjOt.js → DocumentClient-CuTntNdl.js} +5 -5
- package/dist/{DocumentLayout-C-V_5p3r.js → DocumentLayout-D6PvFdQg.js} +5 -5
- package/dist/{DocumentLogotype-H0f7bO0E.js → DocumentLogotype-CLJ7RsVz.js} +4 -4
- package/dist/{DocumentVoided-3F7DChD4.js → DocumentVoided-DB5xhLfP.js} +1 -1
- package/dist/{EmbedInput-iG-cDNzZ.js → EmbedInput-CUl_MX4S.js} +3 -3
- package/dist/{EmbedSettings-DhwFGdKH.js → EmbedSettings-Cq8n5rI2.js} +3 -3
- package/dist/{ErrorCallout-CyqQ9iRV.js → ErrorCallout-BUTqhYbf.js} +1 -1
- package/dist/{FilePreviewModal-CEUhUuh4.js → FilePreviewModal-D8fjLRUG.js} +2 -2
- package/dist/{Flag-Bza5Ltob.js → Flag-CXb8yU4n.js} +1 -1
- package/dist/{HeaderSettings-kEbuiv0n.js → HeaderSettings-BT4TlFdj.js} +9 -9
- package/dist/{ImageSelectModal-MDduQIdS.js → ImageSelectModal-DmlTZjg0.js} +3 -3
- package/dist/{ImageUploadWrapper-CKJXUAkn.js → ImageUploadWrapper-Bt0uozSl.js} +2 -2
- package/dist/{Index-BFwz1G_7.js → Index-1aEI7_56.js} +2 -2
- package/dist/Index-2vRzH0zx.js +4 -0
- package/dist/{Index-DUM-3B1l.js → Index-39gM2cY7.js} +8 -8
- package/dist/{Index-DdZo8evS.js → Index-55e7lOqG.js} +303 -282
- package/dist/{Index-CNQhKXtr.js → Index-AZN4wthQ.js} +5 -5
- package/dist/{Index-DzKdZg0G.js → Index-BCYnuRFa.js} +2 -2
- package/dist/{Index-DzugmOmj.js → Index-BEsOBJdX.js} +2 -2
- package/dist/{Index-MmvJQvLm.js → Index-BFa6BgHI.js} +3 -3
- package/dist/{Index-437smvNJ.js → Index-BG30GlWz.js} +3 -3
- package/dist/{Index-B1tFrOfN.js → Index-BVOpa2cR.js} +4 -4
- package/dist/{Index-CGhWvSf9.js → Index-BkwtFP0b.js} +5 -5
- package/dist/{Index-DtDRffCY.js → Index-C0wIaLu-.js} +4 -4
- package/dist/{Index-rINXTjpt.js → Index-CDTYkmkj.js} +2 -2
- package/dist/{Index-DB3keB-X.js → Index-CG92HjZU.js} +4 -4
- package/dist/{Index-CHIQWumi.js → Index-CKUiWN7e.js} +3 -3
- package/dist/{Index-D2A8evjo.js → Index-CO6KkcjQ.js} +4 -4
- package/dist/{Index-eJiQmHhr.js → Index-CQ6z4JCV.js} +1 -1
- package/dist/{Index-Bege0Vce.js → Index-CVZ5OiyQ.js} +6 -6
- package/dist/{Index-C46cWm4W.js → Index-CY_zs2z7.js} +4 -4
- package/dist/{Index-E7OzmtR_.js → Index-Cb8dJ-iH.js} +5 -5
- package/dist/{Index-DQLLCnjH.js → Index-CcEhh58c.js} +5 -5
- package/dist/{Index-BXqNV8F_.js → Index-ChBaT3FD.js} +1 -1
- package/dist/{Index-Bg1kzWCp.js → Index-ChpIICjV.js} +9 -9
- package/dist/{Index-zRXdiRpy.js → Index-ClYwg_Tc.js} +1 -1
- package/dist/{Index-8CyLDQv2.js → Index-Cmg4QHZZ.js} +5 -5
- package/dist/{Index--_tbiloB.js → Index-Cw8wthZj.js} +10 -10
- package/dist/{Index-CUDi4SEx.js → Index-DF5-4D3i.js} +4 -4
- package/dist/{Index-Rb5n5XoO.js → Index-DQdLSrV-.js} +7 -7
- package/dist/{Index-ClA923dR.js → Index-Dlo49fYy.js} +4 -4
- package/dist/{Index-DtCuzght.js → Index-DvwD4u45.js} +3 -3
- package/dist/{Index-Dqfwe7SG.js → Index-PmOYHy6x.js} +2 -2
- package/dist/{Index-Doc7K3kL.js → Index-bX6uKwvE.js} +3 -3
- package/dist/{Index-D4XDugcf.js → Index-dJwXStk7.js} +8 -8
- package/dist/{Index-dTgmxz_A.js → Index-u6w_64Ql.js} +6 -6
- package/dist/{Index.vue_vue_type_script_lang-B9979oeS.js → Index.vue_vue_type_script_lang-BXjvuVbS.js} +2 -2
- package/dist/{InputToggleRow-CO4fZnAC.js → InputToggleRow-B0yjG-bh.js} +1 -1
- package/dist/{ManualPopover-DT4iXoSI.js → ManualPopover-ChYyDxj8.js} +1 -1
- package/dist/{MediaWrapper-CP_1JzGI.js → MediaWrapper-KCTPL9oF.js} +3 -3
- package/dist/{NotBindingText-D9Um3Agp.js → NotBindingText-D4nJwAyD.js} +2 -2
- package/dist/{PackageGroup-BtH12jVM.js → PackageGroup-Be1gVj7w.js} +5 -5
- package/dist/{PdfTerms-sQh93Xit.js → PdfTerms-1iI1qktG.js} +2 -2
- package/dist/{PdfViewer-DMAcTVND.js → PdfViewer-bN0KukaH.js} +2 -2
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-tY-SurWr.js → PlainHtml.vue_vue_type_script_setup_true_lang-BrCKpyEU.js} +1 -1
- package/dist/{PriceHeader-CG6el7O_.js → PriceHeader-DWH-VRAW.js} +7 -7
- package/dist/{SearchApi-B39mMGKy.js → SearchApi-Bp95LCyA.js} +1 -1
- package/dist/{SendForm-F5aQPz8w.js → SendForm-DLUa5otf.js} +8 -8
- package/dist/{Setup-DuHU2eHC.js → Setup-DDaFShaB.js} +1 -1
- package/dist/{SmartList-myMj6QGe.js → SmartList-BRShdlA0.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-Bb2Nqdsz.js → Sortable.vue_vue_type_script_setup_true_lang-tLursG5q.js} +1 -1
- package/dist/{TermsSettings-Cb6Xms3f.js → TermsSettings-C0cX4ZBC.js} +5 -5
- package/dist/{ThemeColorRow-oW3xS1pa.js → ThemeColorRow-DoH8zauR.js} +3 -3
- package/dist/{ToggleBinding-B-F9_nAf.js → ToggleBinding-C_e-eDZT.js} +4 -4
- package/dist/{UploadModal-eBx4Vqyo.js → UploadModal-F1bW2Egp.js} +2 -2
- package/dist/{VideoPlayerInput-CtTe4JW4.js → VideoPlayerInput-BrrB9oVk.js} +4 -4
- package/dist/{VideoPlayerSettings-Cvz5B4JX.js → VideoPlayerSettings-C8cR5e9r.js} +2 -2
- package/dist/{VideoSelectModal-CXI0aN4g.js → VideoSelectModal-CC_-Irlx.js} +3 -3
- package/dist/{focusDrawerMixin-DlcYhFw8.js → focusDrawerMixin-Byq1xBU3.js} +1 -1
- package/dist/{formDrawerState-Cf6Q5cuR.js → formDrawerState-DHUJo100.js} +1 -1
- package/dist/{helpers-Cf9wqfZh.js → helpers-ONO_cfDb.js} +1 -1
- package/dist/{index-BytsFarx.js → index-B3GlU12d.js} +1 -1
- package/dist/{index-DsvlNA3Q.js → index-BDJXRtvs.js} +1 -1
- package/dist/{index-Co_PpOtI.js → index-BtbGDfGz.js} +1 -1
- package/dist/{index-BSCAjn53.js → index-C9jrUexY.js} +3 -3
- package/dist/{index-BStFMzD9.js → index-ClF7kp8h.js} +8 -8
- package/dist/{index-DPlBYqKB.js → index-CoQoszZX.js} +1 -1
- package/dist/{index-r5v1Gv17.js → index-D1ejEjwe.js} +6 -6
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +37 -37
- package/dist/{main-BkjAGG46.js → main-ByMVnwS5.js} +213 -207
- package/dist/{mapFormMixin-DLFNPgNO.js → mapFormMixin-zL_x65Dt.js} +2 -2
- package/dist/{omit-CvOSNZN7.js → omit-BqIpwnLe.js} +1 -1
- package/dist/{publicSenderState-DeC1m0ps.js → publicSenderState-D2O1iAac.js} +1 -1
- package/dist/{splitpanes-CsJipBiG.js → splitpanes-BNIUBGFa.js} +1 -1
- package/dist/{template-Cvzvayl5.js → template-gCGJogwx.js} +1 -1
- package/dist/{tippy.esm-JEjGtE5F.js → tippy.esm-D9T0otvu.js} +5 -5
- package/dist/{useTermsModal-D2gYy-TP.js → useTermsModal-5bV0m_Ha.js} +4 -4
- package/dist/{utils-DarTPA8c.js → utils-DiG2v7vg.js} +1 -1
- package/dist/{validation-K11g55ZB.js → validation-BQR3TvR7.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 D, b 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-zL_x65Dt.js";
|
|
2
|
+
import { C as $e } from "./CCallout--fWgvr0x.js";
|
|
3
|
+
import { C as Y, a as Z, w as Te } from "./CDropdownItem-D3_tCkkr.js";
|
|
4
|
+
import { E as me } from "./ErrorCallout-BUTqhYbf.js";
|
|
5
|
+
import { c5 as Ae, c6 as he, c7 as Ce, c8 as Pe, c9 as xe, ca as Ve, cb as Se, aK as De, _ as D, b as v, d as c, o as a, j as l, t as u, x as V, F as C, n as S, W as Q, e as b, f as p, s as H, m as z, a as E, g as O, w as g, R as B, ai as j, T as ne, an as G, cc as Re, cd as se, aF as Me, a8 as ae, bi as W, aD as Le, ce as Oe, bl as Ee, a4 as U, c as A, u as R, q as I, cf as Ue, cg as Be, c1 as ge, v as We, ch as ve, $ as ze, af as x, al as je, aH as F, V as Fe, a2 as oe, b_ as qe, ab as Ne, ci as He, ae as Ge, ag as Ke, c4 as Ye, cj as re, aE as Ze } from "./main-ByMVnwS5.js";
|
|
6
|
+
import { u as Je } from "./DocumentLayout-D6PvFdQg.js";
|
|
7
|
+
import { T as Qe } from "./DocTextEditor-BQhfVRlV.js";
|
|
8
|
+
import { _ as Xe, m as et } from "./Sortable.vue_vue_type_script_setup_true_lang-tLursG5q.js";
|
|
9
|
+
import { o as fe } from "./omit-BqIpwnLe.js";
|
|
10
|
+
import { C as J } from "./CPriceInput-D03-LElV.js";
|
|
11
|
+
import { u as ye } from "./index-BDJXRtvs.js";
|
|
12
|
+
import { S as tt } from "./SearchApi-Bp95LCyA.js";
|
|
13
|
+
import { m as it } from "./index-CoQoszZX.js";
|
|
14
|
+
import { _ as ke } from "./CFormField.vue_vue_type_script_setup_true_lang-CLNJpSL4.js";
|
|
15
15
|
const nt = [
|
|
16
16
|
"unit",
|
|
17
17
|
"m2",
|
|
@@ -29,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
|
|
54
|
+
function h(y, d, k) {
|
|
55
55
|
var w = -1, $ = t, m = y.length, T = !0, r = [], P = r;
|
|
56
56
|
if (k)
|
|
57
57
|
T = !1, $ = n;
|
|
58
58
|
else if (m >= f) {
|
|
59
|
-
var
|
|
60
|
-
if (
|
|
61
|
-
return i(
|
|
59
|
+
var _ = d ? null : s(y);
|
|
60
|
+
if (_)
|
|
61
|
+
return i(_);
|
|
62
62
|
T = !1, $ = o, P = new e();
|
|
63
63
|
} else
|
|
64
64
|
P = d ? [] : r;
|
|
65
65
|
e:
|
|
66
66
|
for (; ++w < m; ) {
|
|
67
|
-
var M = y[w],
|
|
68
|
-
if (M = k || M !== 0 ? M : 0, T &&
|
|
69
|
-
for (var
|
|
70
|
-
if (P[
|
|
67
|
+
var M = y[w], L = d ? d(M) : M;
|
|
68
|
+
if (M = k || M !== 0 ? M : 0, T && L === L) {
|
|
69
|
+
for (var N = P.length; N--; )
|
|
70
|
+
if (P[N] === L)
|
|
71
71
|
continue e;
|
|
72
|
-
d && P.push(
|
|
73
|
-
} else $(P,
|
|
72
|
+
d && P.push(L), r.push(M);
|
|
73
|
+
} else $(P, L, k) || (P !== r && P.push(L), r.push(M));
|
|
74
74
|
}
|
|
75
75
|
return r;
|
|
76
76
|
}
|
|
77
|
-
return
|
|
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 =
|
|
167
|
+
const f = v("CIcon");
|
|
168
168
|
return a(), c("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), c(C, null, S(s.options, (
|
|
174
|
+
(a(!0), c(C, null, S(s.options, (h, y) => (a(), c("div", {
|
|
175
175
|
key: y,
|
|
176
|
-
style:
|
|
176
|
+
style: Q({ backgroundColor: h.background }),
|
|
177
177
|
class: "package-group-option",
|
|
178
|
-
onClick: (d) => e.$emit("input",
|
|
178
|
+
onClick: (d) => e.$emit("input", h.value)
|
|
179
179
|
}, [
|
|
180
180
|
l("div", ht, [
|
|
181
|
-
|
|
181
|
+
h.value === "single" ? (a(), c("div", gt, t[0] || (t[0] = [
|
|
182
182
|
l("div", { style: { flex: "1 1 auto" } }, [
|
|
183
183
|
l("div", {
|
|
184
184
|
style: { width: "40%", height: "10px", "margin-bottom": "8px" },
|
|
@@ -190,17 +190,17 @@ function yt(e, t, n, o, s, i) {
|
|
|
190
190
|
})
|
|
191
191
|
], -1)
|
|
192
192
|
]))) : b("", !0),
|
|
193
|
-
|
|
193
|
+
h.value === "radio" ? (a(), c(C, { key: 1 }, S(3, (d) => l("div", {
|
|
194
194
|
key: d,
|
|
195
195
|
class: V([{ animate: d === 2 }, "package-group-option__illustration-card"])
|
|
196
196
|
}, [
|
|
197
197
|
l("div", {
|
|
198
|
-
style:
|
|
198
|
+
style: Q([
|
|
199
199
|
{ width: "8px", height: "8px", "border-radius": "50%", "box-shadow": `0 0 0 1px white,
|
|
200
200
|
0 0 0 2px hsl(0, 0%, 76%)`, "margin-right": "10px" },
|
|
201
201
|
d === 2 && {
|
|
202
|
-
boxShadow: `0 0 0 1px white, 0 0 0 2px ${
|
|
203
|
-
backgroundColor:
|
|
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,12 +215,12 @@ function yt(e, t, n, o, s, i) {
|
|
|
215
215
|
})
|
|
216
216
|
], -1))
|
|
217
217
|
], 2)), 64)) : b("", !0),
|
|
218
|
-
|
|
218
|
+
h.value === "checkbox" ? (a(), c(C, { key: 2 }, S(3, (d) => l("div", {
|
|
219
219
|
key: d,
|
|
220
220
|
class: V([{ animate: d !== 3 }, "package-group-option__illustration-card"])
|
|
221
221
|
}, [
|
|
222
222
|
l("div", {
|
|
223
|
-
style:
|
|
223
|
+
style: Q([{ height: "12px", width: "12px", "border-radius": "2px", "background-color": "hsl(0, 0%, 76%)", "margin-right": "10px", color: "white", padding: "1px", display: "inline-flex", "align-items": "center", "justify-content": "center" }, d !== 3 && { backgroundColor: h.background }])
|
|
224
224
|
}, [
|
|
225
225
|
p(f, {
|
|
226
226
|
type: d !== 3 ? "check" : "empty",
|
|
@@ -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))
|
|
@@ -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 =
|
|
389
|
+
const f = v("CInput"), h = v("SearchApi"), y = v("CIcon");
|
|
390
390
|
return a(), c("div", B({
|
|
391
391
|
class: { "is-open": s.isOpen }
|
|
392
392
|
}, e.$attrs, {
|
|
393
393
|
style: { position: "relative" },
|
|
394
394
|
onKeydownPassive: t[0] || (t[0] = (...d) => i.onKeydown && i.onKeydown(...d))
|
|
395
395
|
}), [
|
|
396
|
-
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: d }) => [
|
|
402
402
|
p(f, B({
|
|
403
403
|
...e.$attrs,
|
|
404
404
|
...e.$props
|
|
@@ -416,11 +416,11 @@ 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"])
|
|
@@ -431,7 +431,7 @@ function Vt(e, t, n, o, s, i) {
|
|
|
431
431
|
(a(!0), c(C, null, S(s.searchResults, (d, k) => (a(), c("div", {
|
|
432
432
|
key: k,
|
|
433
433
|
class: V([{ active: s.selectedIndex === k }, "r-item"]),
|
|
434
|
-
onClickCapture:
|
|
434
|
+
onClickCapture: G((w) => i.onSelect(d), ["stop"])
|
|
435
435
|
}, [
|
|
436
436
|
l("div", _t, u(d.name), 1),
|
|
437
437
|
l("div", $t, [
|
|
@@ -462,7 +462,7 @@ const be = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
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 = (y = []) => y.reduce((d, k) => ({ ...d, [k]: !1 }), {}),
|
|
491
|
+
const i = (y = []) => y.reduce((d, k) => ({ ...d, [k]: !1 }), {}), h = Object.values(
|
|
492
492
|
fe({
|
|
493
493
|
rot: "isDeductable",
|
|
494
494
|
rut: "isRut",
|
|
@@ -497,11 +497,11 @@ const be = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
497
497
|
greenRot50: "greenRot50"
|
|
498
498
|
}, [o])
|
|
499
499
|
);
|
|
500
|
-
|
|
500
|
+
h.some((y) => !!s[y]) && (s = { ...s, ...i(h) });
|
|
501
501
|
}
|
|
502
502
|
return s;
|
|
503
503
|
}, St = (e, t = null) => {
|
|
504
|
-
const n =
|
|
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
657
|
const y = Ee(this.article);
|
|
656
658
|
e.push({
|
|
657
|
-
title: this.$t(`_common:deduction.${y}_percentage`)
|
|
659
|
+
title: this.$t(`_common:deduction.${y}_percentage`),
|
|
660
|
+
detailClass: y === "greenRot20" && this.isAfterDeadline && "!decoration-2 !decoration-red-500 !line-through hover:!bg-red-200 hover:!decoration-red-500 hover:!text-red-600 hover:!border-red-100",
|
|
661
|
+
tooltip: y === "greenRot20" && this.isAfterDeadline && {
|
|
662
|
+
content: this.$t(`${y}_deprecated_tooltip`),
|
|
663
|
+
delay: { show: 300, hide: 0 }
|
|
664
|
+
}
|
|
658
665
|
});
|
|
659
666
|
}
|
|
660
667
|
return n && ["fixed", "approx"].includes(t) && (o !== "unit" || n > 1) && e.push({
|
|
@@ -664,7 +671,7 @@ const be = /* @__PURE__ */ 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,9 +703,9 @@ 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 =
|
|
708
|
+
const f = v("CIcon"), h = v("ArticleAutocomplete"), y = v("CPriceInput"), d = v("ErrorCallout"), k = U("tooltip");
|
|
702
709
|
return a(), c("div", {
|
|
703
710
|
class: V([{
|
|
704
711
|
"has-details": i.details.length,
|
|
@@ -707,8 +714,8 @@ function Lt(e, t, n, o, s, i) {
|
|
|
707
714
|
}, "article-wrapper"]),
|
|
708
715
|
onKeydown: t[10] || (t[10] = j((w) => e.$emit("esc"), ["esc"]))
|
|
709
716
|
}, [
|
|
710
|
-
l("div",
|
|
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,7 +736,7 @@ function Lt(e, t, n, o, s, i) {
|
|
|
729
736
|
), e.$emit("select");
|
|
730
737
|
})
|
|
731
738
|
}), {
|
|
732
|
-
suffix:
|
|
739
|
+
suffix: g(() => [
|
|
733
740
|
n.hideControls ? b("", !0) : R((a(), c("div", {
|
|
734
741
|
key: 0,
|
|
735
742
|
class: "article-button fade-in",
|
|
@@ -789,17 +796,19 @@ function Lt(e, t, n, o, s, i) {
|
|
|
789
796
|
style: { cursor: "pointer" },
|
|
790
797
|
onClick: t[9] || (t[9] = (w) => e.$emit("open-modal"))
|
|
791
798
|
}, [
|
|
792
|
-
(a(!0), c(C, null, S(i.details, ({ title: w, icon: $, subTitle: m = "", detailClass: T = "" },
|
|
793
|
-
key:
|
|
799
|
+
(a(!0), c(C, null, S(i.details, ({ title: w, icon: $, subTitle: m = "", detailClass: T = "", tooltip: r }, P) => R((a(), c("div", {
|
|
800
|
+
key: P,
|
|
794
801
|
class: V([[T], "article-details-item"])
|
|
795
802
|
}, [
|
|
796
|
-
|
|
803
|
+
I(u(w) + " ", 1),
|
|
797
804
|
$ ? (a(), c("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
|
+
[k, r]
|
|
811
|
+
])), 128))
|
|
803
812
|
])) : b("", !0),
|
|
804
813
|
o.v$.$invalid && o.v$.$dirty ? (a(), A(d, {
|
|
805
814
|
key: 1,
|
|
@@ -807,7 +816,7 @@ function Lt(e, t, n, o, s, i) {
|
|
|
807
816
|
}, null, 8, ["message"])) : b("", !0)
|
|
808
817
|
], 34);
|
|
809
818
|
}
|
|
810
|
-
const Ot = /* @__PURE__ */ D(Dt, [["render", Lt], ["__scopeId", "data-v-
|
|
819
|
+
const Ot = /* @__PURE__ */ D(Dt, [["render", Lt], ["__scopeId", "data-v-495457b4"]]), Et = {
|
|
811
820
|
emits: ["go", "close"],
|
|
812
821
|
props: {
|
|
813
822
|
canForward: {
|
|
@@ -877,7 +886,7 @@ function Bt(e, t, n, o, s, i) {
|
|
|
877
886
|
R((a(), c("div", {
|
|
878
887
|
class: V([{ disabled: !n.canBackward }, "l-button"]),
|
|
879
888
|
style: { left: "calc(-4 * var(--rem))" },
|
|
880
|
-
onClick: t[0] || (t[0] = (
|
|
889
|
+
onClick: t[0] || (t[0] = (h) => e.$emit("go", -1))
|
|
881
890
|
}, t[2] || (t[2] = [
|
|
882
891
|
l("svg", {
|
|
883
892
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -898,7 +907,7 @@ function Bt(e, t, n, o, s, i) {
|
|
|
898
907
|
R((a(), c("div", {
|
|
899
908
|
class: V([{ disabled: !n.canForward }, "l-button"]),
|
|
900
909
|
style: { right: "calc(-4 * var(--rem))" },
|
|
901
|
-
onClick: t[1] || (t[1] = (
|
|
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",
|
|
@@ -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,10 +1046,10 @@ 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 =
|
|
1049
|
+
const f = v("CIcon"), h = v("CButton"), y = v("CInput"), d = v("CField"), k = v("DragItem"), w = v("DragList"), $ = U("tooltip");
|
|
1041
1050
|
return a(), c("div", {
|
|
1042
1051
|
class: "modal-overlay font-inter",
|
|
1043
|
-
onClickPassive: t[3] || (t[3] =
|
|
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, [
|
|
@@ -1059,7 +1068,7 @@ function ei(e, t, n, o, s, i) {
|
|
|
1059
1068
|
grouped: "",
|
|
1060
1069
|
style: { margin: "0" }
|
|
1061
1070
|
}, {
|
|
1062
|
-
default:
|
|
1071
|
+
default: g(() => [
|
|
1063
1072
|
p(y, {
|
|
1064
1073
|
ref: "unitInput",
|
|
1065
1074
|
modelValue: s.selectedValue.value,
|
|
@@ -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"])
|
|
@@ -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:
|
|
1125
|
+
default: g(() => [
|
|
1117
1126
|
(a(!0), c(C, null, S(i.unitItems, (m, T) => (a(), A(k, {
|
|
1118
1127
|
key: m.id
|
|
1119
1128
|
}, {
|
|
1120
|
-
default:
|
|
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,
|
|
@@ -1136,17 +1145,17 @@ function ei(e, t, n, o, s, i) {
|
|
|
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",
|
|
@@ -1169,8 +1178,8 @@ function ei(e, t, n, o, s, i) {
|
|
|
1169
1178
|
const ti = /* @__PURE__ */ D(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,7 +1227,7 @@ 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 =
|
|
1230
|
+
const f = v("CButton"), h = v("CDropdownItem"), y = v("CDropdown");
|
|
1222
1231
|
return a(), A(y, B({
|
|
1223
1232
|
position: "is-bottom-left",
|
|
1224
1233
|
maxHeight: "240px",
|
|
@@ -1228,20 +1237,20 @@ function ni(e, t, n, o, s, i) {
|
|
|
1228
1237
|
scrollable: "",
|
|
1229
1238
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => e.$emit("update:modelValue", d))
|
|
1230
1239
|
}), {
|
|
1231
|
-
trigger:
|
|
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), c(C, null, S(i.unitItems, (d, k) => (a(), A(
|
|
1268
|
+
default: g(() => [
|
|
1269
|
+
(a(!0), c(C, null, S(i.unitItems, (d, k) => (a(), A(h, {
|
|
1261
1270
|
key: `${d}-${k}`,
|
|
1262
1271
|
value: d
|
|
1263
1272
|
}, {
|
|
1264
|
-
default:
|
|
1265
|
-
|
|
1273
|
+
default: g(() => [
|
|
1274
|
+
I(u(i.articleUnitLabel(d)), 1)
|
|
1266
1275
|
]),
|
|
1267
1276
|
_: 2
|
|
1268
1277
|
}, 1032, ["value"]))), 128))
|
|
@@ -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 =
|
|
1597
|
+
const f = v("ListModalButtons"), h = v("CIcon"), y = v("ArticleAutocomplete"), d = v("CField"), k = v("CInput"), w = v("CButton"), $ = v("ArticleUnitSelect"), m = v("CPriceInput"), T = U("tooltip");
|
|
1584
1598
|
return a(), c("div", {
|
|
1585
1599
|
class: V([{
|
|
1586
1600
|
"full-screen": e.mq === "sm",
|
|
1587
1601
|
"modal-overlay": !0
|
|
1588
1602
|
}, "font-inter"]),
|
|
1589
|
-
onClickPassive: t[15] || (t[15] =
|
|
1603
|
+
onClickPassive: t[15] || (t[15] = G((...r) => i.close && i.close(...r), ["self"]))
|
|
1590
1604
|
}, [
|
|
1591
1605
|
l("div", oi, [
|
|
1592
1606
|
e.mq !== "sm" ? (a(), A(f, {
|
|
@@ -1600,10 +1614,10 @@ function bi(e, t, n, o, s, i) {
|
|
|
1600
1614
|
class: "modal-close",
|
|
1601
1615
|
onClick: t[1] || (t[1] = (...r) => i.close && i.close(...r))
|
|
1602
1616
|
}, [
|
|
1603
|
-
p(
|
|
1617
|
+
p(h, { type: "x" })
|
|
1604
1618
|
])),
|
|
1605
1619
|
p(je, { name: "slide" }, {
|
|
1606
|
-
default:
|
|
1620
|
+
default: g(() => [
|
|
1607
1621
|
(a(), c("div", {
|
|
1608
1622
|
key: i.article._uniqueId,
|
|
1609
1623
|
class: "modal-main"
|
|
@@ -1616,7 +1630,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
1616
1630
|
style: { "margin-bottom": "1.5em" },
|
|
1617
1631
|
class: "label-selector"
|
|
1618
1632
|
}, {
|
|
1619
|
-
default:
|
|
1633
|
+
default: g(() => [
|
|
1620
1634
|
p(y, {
|
|
1621
1635
|
ref: "nameInput",
|
|
1622
1636
|
"model-value": i.article.name,
|
|
@@ -1646,7 +1660,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
1646
1660
|
class: "label-selector form-control form-control-left flex-grow",
|
|
1647
1661
|
style: { "margin-bottom": "0" }
|
|
1648
1662
|
}, {
|
|
1649
|
-
default:
|
|
1663
|
+
default: g(() => [
|
|
1650
1664
|
p(k, {
|
|
1651
1665
|
"model-value": i.article.quantity,
|
|
1652
1666
|
disabled: ["openAcc", "markup"].includes(i.article.priceType),
|
|
@@ -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
|
]),
|
|
@@ -1688,7 +1702,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
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),
|
|
@@ -1720,7 +1734,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
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
|
}
|
|
@@ -1769,12 +1783,12 @@ function bi(e, t, n, o, s, i) {
|
|
|
1769
1783
|
style: { display: "inline", "min-height": "initial", background: "hsl(0, 0%, 94%)", "border-color": "hsl(0, 0%, 94%)", color: "hsl(0, 0%, 30%)" },
|
|
1770
1784
|
onInput: t[12] || (t[12] = (r) => i.updateArticle(Number.parseFloat(r.target.value), "vat"))
|
|
1771
1785
|
}, [
|
|
1772
|
-
(a(!0), c(C, null, S(s.vatOptions, ({ translation: r, value: P },
|
|
1773
|
-
key:
|
|
1786
|
+
(a(!0), c(C, null, S(s.vatOptions, ({ translation: r, value: P }, _) => (a(), c("option", {
|
|
1787
|
+
key: _,
|
|
1774
1788
|
value: P
|
|
1775
1789
|
}, u(e.$t(`vat.${i.vatType}`)) + " " + u(r), 9, pi))), 128))
|
|
1776
1790
|
], 40, ui)) : (a(), c("span", mi, [
|
|
1777
|
-
|
|
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
1802
|
i.priceTypeOptions.length ? (a(), c("div", gi, [
|
|
1789
|
-
(a(!0), c(C, null, S(i.priceTypeOptions, ({ label: r, value: P, onClick:
|
|
1790
|
-
key: r +
|
|
1803
|
+
(a(!0), c(C, null, S(i.priceTypeOptions, ({ label: r, value: P, onClick: _, tooltip: M }, L) => R((a(), c("div", {
|
|
1804
|
+
key: r + L,
|
|
1791
1805
|
class: V([{ active: P }, "tag-item"]),
|
|
1792
|
-
onClick:
|
|
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), c(C, null, S(i.checkboxItems, ({ label: r, value: P, onClick:
|
|
1804
|
-
key: r +
|
|
1805
|
-
class: V([{ active: P }, "tag-item"]),
|
|
1806
|
-
onClick:
|
|
1807
|
-
},
|
|
1817
|
+
(a(!0), c(C, null, S(i.checkboxItems, ({ label: r, value: P, onClick: _, tooltip: M, style: L }, N) => R((a(), c("div", {
|
|
1818
|
+
key: r + N,
|
|
1819
|
+
class: V([[{ active: P }, L], "tag-item"]),
|
|
1820
|
+
onClick: _
|
|
1821
|
+
}, [
|
|
1822
|
+
I(u(r), 1)
|
|
1823
|
+
], 10, yi)), [
|
|
1824
|
+
[T, {
|
|
1825
|
+
content: M,
|
|
1826
|
+
delay: { show: 300, hide: 0 }
|
|
1827
|
+
}]
|
|
1828
|
+
])), 128))
|
|
1808
1829
|
])
|
|
1809
1830
|
])
|
|
1810
1831
|
]))
|
|
@@ -1819,8 +1840,8 @@ function bi(e, t, n, o, s, i) {
|
|
|
1819
1840
|
style: { padding: "1.75em", height: "4em", "font-size": "16px", "background-color": "hsl(231, 4%, 20%)", "border-color": "hsl(231, 4%, 20%)" },
|
|
1820
1841
|
onClick: i.addNewArticle
|
|
1821
1842
|
}, {
|
|
1822
|
-
default:
|
|
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__ */ D(ai, [["render", bi], ["__scopeId", "data-v-
|
|
1888
|
+
const wi = /* @__PURE__ */ D(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 =
|
|
2095
|
+
const f = v("Article"), h = v("Sortable"), y = v("ArticleModal"), d = v("Portal");
|
|
2075
2096
|
return a(), c("div", _i, [
|
|
2076
2097
|
i.showVatToggle ? (a(), c("div", $i, [
|
|
2077
|
-
|
|
2098
|
+
I(u(e.$t("vatOption.label")) + " ", 1),
|
|
2078
2099
|
l("span", {
|
|
2079
2100
|
onClick: t[0] || (t[0] = (k) => 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,7 +2115,7 @@ 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: k, index: w }) => [
|
|
2098
2119
|
p(f, {
|
|
2099
2120
|
ref: "articleItem",
|
|
2100
2121
|
value: k,
|
|
@@ -2119,7 +2140,7 @@ function Ti(e, t, n, o, s, i) {
|
|
|
2119
2140
|
_: 1
|
|
2120
2141
|
}, 8, ["options", "list"]),
|
|
2121
2142
|
p(d, { to: "modal" }, {
|
|
2122
|
-
default:
|
|
2143
|
+
default: g(() => [
|
|
2123
2144
|
s.showModal && i.articlesWithTotal[s.selectedIndex] ? (a(), A(y, {
|
|
2124
2145
|
key: 0,
|
|
2125
2146
|
ref: "articleModal",
|
|
@@ -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,7 +2218,7 @@ 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 =
|
|
2221
|
+
const f = v("CPriceInput");
|
|
2201
2222
|
return a(), c("div", Pi, [
|
|
2202
2223
|
p(f, {
|
|
2203
2224
|
"model-value": n.modelValue,
|
|
@@ -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)
|
|
@@ -2225,8 +2246,8 @@ function xi(e, t, n, o, s, i) {
|
|
|
2225
2246
|
}
|
|
2226
2247
|
const Vi = /* @__PURE__ */ D(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 =
|
|
2265
|
+
function Ri(e, t, n, o, s, i) {
|
|
2266
|
+
const f = v("CButton"), h = v("CDropdownItem"), y = v("CDropdown");
|
|
2246
2267
|
return a(), c("div", Di, [
|
|
2247
2268
|
p(y, { "model-value": n.modelValue }, {
|
|
2248
|
-
trigger:
|
|
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), c(C, null, S(s.priceTypeOptions, (d) => (a(), A(
|
|
2278
|
+
default: g(() => [
|
|
2279
|
+
(a(!0), c(C, null, S(s.priceTypeOptions, (d) => (a(), A(h, {
|
|
2259
2280
|
key: d,
|
|
2260
2281
|
value: d,
|
|
2261
2282
|
class: "text-right",
|
|
2262
2283
|
onClick: (k) => e.$emit("update:modelValue", d)
|
|
2263
2284
|
}, {
|
|
2264
|
-
default:
|
|
2265
|
-
|
|
2285
|
+
default: g(() => [
|
|
2286
|
+
I(u(e.$t(`price.${d}`)), 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__ */ D(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,7 +2349,7 @@ 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 =
|
|
2352
|
+
const f = v("CPriceInput"), h = v("CButton"), y = v("modal"), d = v("portal");
|
|
2332
2353
|
return a(), c("div", null, [
|
|
2333
2354
|
p(y, B({
|
|
2334
2355
|
adaptive: !0,
|
|
@@ -2337,7 +2358,7 @@ function qi(e, t, n, o, s, i) {
|
|
|
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, [
|
|
@@ -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"])
|
|
@@ -2376,7 +2397,7 @@ function qi(e, t, n, o, s, i) {
|
|
|
2376
2397
|
onClick: (w) => i.setDeduction(k.v)
|
|
2377
2398
|
}, u(k.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
|
})
|
|
@@ -2412,7 +2433,7 @@ function qi(e, t, n, o, s, i) {
|
|
|
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
2439
|
onClick: t[3] || (t[3] = (k) => e.$modal.show(s.modalName))
|
|
@@ -2432,7 +2453,7 @@ 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
|
|
@@ -2523,7 +2544,7 @@ const Ni = /* @__PURE__ */ D(Li, [["render", qi], ["__scopeId", "data-v-b12680ea
|
|
|
2523
2544
|
] : []
|
|
2524
2545
|
].map((t) => ({
|
|
2525
2546
|
...t,
|
|
2526
|
-
value:
|
|
2547
|
+
value: H(t.value, {
|
|
2527
2548
|
showZero: !0,
|
|
2528
2549
|
decimals: 2,
|
|
2529
2550
|
currency: this.prices.currency
|
|
@@ -2545,7 +2566,7 @@ const Ni = /* @__PURE__ */ D(Li, [["render", qi], ["__scopeId", "data-v-b12680ea
|
|
|
2545
2566
|
class: "pricing-sub-label"
|
|
2546
2567
|
}, Ji = ["onClick"], Qi = { class: "price-value" };
|
|
2547
2568
|
function Xi(e, t, n, o, s, i) {
|
|
2548
|
-
const f =
|
|
2569
|
+
const f = v("EditDeduction"), h = U("tooltip");
|
|
2549
2570
|
return a(), c("div", Gi, [
|
|
2550
2571
|
l("div", Ki, [
|
|
2551
2572
|
i.showHouseWork ? (a(), A(f, {
|
|
@@ -2568,7 +2589,7 @@ function Xi(e, t, n, o, s, i) {
|
|
|
2568
2589
|
class: V([[y.classList || ""], "price-row flex w-full justify-between"])
|
|
2569
2590
|
}, [
|
|
2570
2591
|
l("div", Yi, [
|
|
2571
|
-
|
|
2592
|
+
I(u(y.label.capitalize()) + " ", 1),
|
|
2572
2593
|
y.subLabel ? (a(), c("span", Zi, u(y.subLabel), 1)) : b("", !0),
|
|
2573
2594
|
y.action ? R((a(), c("span", {
|
|
2574
2595
|
key: 1,
|
|
@@ -2589,7 +2610,7 @@ function Xi(e, t, n, o, s, i) {
|
|
|
2589
2610
|
l("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })
|
|
2590
2611
|
], -1)
|
|
2591
2612
|
]), 8, Ji)), [
|
|
2592
|
-
[
|
|
2613
|
+
[h, e.$t("edit", { thing: e.$t("deduction.deduction") })]
|
|
2593
2614
|
]) : b("", !0)
|
|
2594
2615
|
]),
|
|
2595
2616
|
l("div", Qi, u(y.prefix) + " " + u(y.value), 1)
|
|
@@ -2626,12 +2647,12 @@ const en = /* @__PURE__ */ D(Hi, [["render", Xi], ["__scopeId", "data-v-90384cd6
|
|
|
2626
2647
|
},
|
|
2627
2648
|
components: {
|
|
2628
2649
|
ArticleList: Ai,
|
|
2629
|
-
PriceFormAlternatives:
|
|
2650
|
+
PriceFormAlternatives: Mi,
|
|
2630
2651
|
MaxTotalInput: Vi,
|
|
2631
2652
|
Pricing: en,
|
|
2632
2653
|
TextEditor: Qe,
|
|
2633
|
-
CDropdown:
|
|
2634
|
-
CDropdownItem:
|
|
2654
|
+
CDropdown: Z,
|
|
2655
|
+
CDropdownItem: Y
|
|
2635
2656
|
},
|
|
2636
2657
|
emits: [
|
|
2637
2658
|
"move",
|
|
@@ -2788,7 +2809,7 @@ const en = /* @__PURE__ */ D(Hi, [["render", Xi], ["__scopeId", "data-v-90384cd6
|
|
|
2788
2809
|
}
|
|
2789
2810
|
}, nn = { class: "min-h-0 rounded-md border border-gray-200 bg-white text-black" }, sn = { class: "flex w-full items-center justify-between bg-gray-100 py-1 pl-4 pr-1 text-sm font-medium text-gray-600" }, an = { class: "p-4" }, on = { class: "mb-0.5 flex items-center" }, rn = ["id", "placeholder"], ln = { class: "mt-2 flex gap-2" };
|
|
2790
2811
|
function cn(e, t, n, o, s, i) {
|
|
2791
|
-
const f =
|
|
2812
|
+
const f = v("CButton"), h = v("CDropdownItem"), y = v("CDropdown"), d = v("TextEditor"), k = v("MaxTotalInput"), w = v("PriceFormAlternatives"), $ = v("ArticleList"), m = v("CIcon"), T = v("Pricing"), r = U("tooltip"), P = U("click-outside");
|
|
2792
2813
|
return a(), c("div", nn, [
|
|
2793
2814
|
l("div", sn, [
|
|
2794
2815
|
l("div", null, u(n.type === "single" ? e.$t("single") : n.type === "radio" || n.toggable ? e.$t("option") : e.$t("base")), 1),
|
|
@@ -2796,63 +2817,63 @@ function cn(e, t, n, o, s, i) {
|
|
|
2796
2817
|
key: 0,
|
|
2797
2818
|
class: "ml-4"
|
|
2798
2819
|
}, {
|
|
2799
|
-
trigger:
|
|
2820
|
+
trigger: g(() => [
|
|
2800
2821
|
p(f, {
|
|
2801
2822
|
size: "small",
|
|
2802
2823
|
type: "text",
|
|
2803
2824
|
pattern: "secondary",
|
|
2804
2825
|
class: "is-thinner opacity-70"
|
|
2805
2826
|
}, {
|
|
2806
|
-
default:
|
|
2807
|
-
|
|
2827
|
+
default: g(() => [
|
|
2828
|
+
I(u(e.$t("_common:change")), 1)
|
|
2808
2829
|
]),
|
|
2809
2830
|
_: 1
|
|
2810
2831
|
})
|
|
2811
2832
|
]),
|
|
2812
|
-
default:
|
|
2833
|
+
default: g(() => [
|
|
2813
2834
|
n.toggable ? (a(), c(C, { key: 0 }, [
|
|
2814
|
-
p(
|
|
2835
|
+
p(h, {
|
|
2815
2836
|
value: e.isSelectedDefault,
|
|
2816
2837
|
toggle: !0,
|
|
2817
2838
|
"close-on-click": !1,
|
|
2818
|
-
onClick: t[0] || (t[0] = (
|
|
2839
|
+
onClick: t[0] || (t[0] = (_) => e.$emit("update:isSelectedDefault", !e.isSelectedDefault))
|
|
2819
2840
|
}, {
|
|
2820
|
-
default:
|
|
2821
|
-
|
|
2841
|
+
default: g(() => [
|
|
2842
|
+
I(u(e.$t("selected")), 1)
|
|
2822
2843
|
]),
|
|
2823
2844
|
_: 1
|
|
2824
2845
|
}, 8, ["value"]),
|
|
2825
|
-
p(
|
|
2846
|
+
p(h, { separator: "" })
|
|
2826
2847
|
], 64)) : b("", !0),
|
|
2827
|
-
p(
|
|
2848
|
+
p(h, {
|
|
2828
2849
|
"icon-left": "arrow-up",
|
|
2829
2850
|
disabled: !n.moveOptions.up,
|
|
2830
|
-
onClick: t[1] || (t[1] = (
|
|
2851
|
+
onClick: t[1] || (t[1] = (_) => e.$emit("move", -1))
|
|
2831
2852
|
}, {
|
|
2832
|
-
default:
|
|
2833
|
-
|
|
2853
|
+
default: g(() => [
|
|
2854
|
+
I(u(e.$t("_common:move", { thing: e.$t("_common:up") })), 1)
|
|
2834
2855
|
]),
|
|
2835
2856
|
_: 1
|
|
2836
2857
|
}, 8, ["disabled"]),
|
|
2837
|
-
p(
|
|
2858
|
+
p(h, {
|
|
2838
2859
|
"icon-left": "arrow-down",
|
|
2839
2860
|
disabled: !n.moveOptions.down,
|
|
2840
|
-
onClick: t[2] || (t[2] = (
|
|
2861
|
+
onClick: t[2] || (t[2] = (_) => e.$emit("move", 1))
|
|
2841
2862
|
}, {
|
|
2842
|
-
default:
|
|
2843
|
-
|
|
2863
|
+
default: g(() => [
|
|
2864
|
+
I(u(e.$t("_common:move", { thing: e.$t("_common:down") })), 1)
|
|
2844
2865
|
]),
|
|
2845
2866
|
_: 1
|
|
2846
2867
|
}, 8, ["disabled"]),
|
|
2847
|
-
p(
|
|
2868
|
+
p(h, {
|
|
2848
2869
|
"icon-props": {
|
|
2849
2870
|
stroke: "red"
|
|
2850
2871
|
},
|
|
2851
2872
|
"icon-left": "trash",
|
|
2852
2873
|
onClick: i.onRemove
|
|
2853
2874
|
}, {
|
|
2854
|
-
default:
|
|
2855
|
-
|
|
2875
|
+
default: g(() => [
|
|
2876
|
+
I(u(e.$t("_common:remove")), 1)
|
|
2856
2877
|
]),
|
|
2857
2878
|
_: 1
|
|
2858
2879
|
}, 8, ["onClick"])
|
|
@@ -2864,10 +2885,10 @@ function cn(e, t, n, o, s, i) {
|
|
|
2864
2885
|
l("div", on, [
|
|
2865
2886
|
R(l("input", {
|
|
2866
2887
|
id: `package-name-${n.packageId}`,
|
|
2867
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
2888
|
+
"onUpdate:modelValue": t[3] || (t[3] = (_) => e.name = _),
|
|
2868
2889
|
placeholder: e.$t("namePlaceholder"),
|
|
2869
2890
|
class: "block w-full rounded-lg p-0 text-xl font-bold leading-loose placeholder:text-gray-400",
|
|
2870
|
-
onKeyup: t[4] || (t[4] = j((
|
|
2891
|
+
onKeyup: t[4] || (t[4] = j((_) => e.$refs.editor.focus(), ["enter"]))
|
|
2871
2892
|
}, null, 40, rn), [
|
|
2872
2893
|
[Ye, e.name]
|
|
2873
2894
|
])
|
|
@@ -2875,19 +2896,19 @@ function cn(e, t, n, o, s, i) {
|
|
|
2875
2896
|
p(d, {
|
|
2876
2897
|
ref: "editor",
|
|
2877
2898
|
modelValue: i.internalDescription,
|
|
2878
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
2899
|
+
"onUpdate:modelValue": t[5] || (t[5] = (_) => i.internalDescription = _),
|
|
2879
2900
|
placeholder: e.$t("textPlaceholder"),
|
|
2880
2901
|
mentions: () => e._document.textTemplateItems,
|
|
2881
2902
|
class: "text-editor mb-4"
|
|
2882
2903
|
}, null, 8, ["modelValue", "placeholder", "mentions"]),
|
|
2883
2904
|
R((a(), c("div", {
|
|
2884
|
-
onMouseoverPassive: t[15] || (t[15] = (
|
|
2885
|
-
onMouseleavePassive: t[16] || (t[16] = (
|
|
2905
|
+
onMouseoverPassive: t[15] || (t[15] = (_) => s.isHover = !0),
|
|
2906
|
+
onMouseleavePassive: t[16] || (t[16] = (_) => s.isHover = !1)
|
|
2886
2907
|
}, [
|
|
2887
2908
|
e.priceType === "openAccMaxPrice" ? (a(), A(k, {
|
|
2888
2909
|
key: 0,
|
|
2889
2910
|
modelValue: e.maxTotal,
|
|
2890
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
2911
|
+
"onUpdate:modelValue": t[6] || (t[6] = (_) => e.maxTotal = _),
|
|
2891
2912
|
currency: e.currency,
|
|
2892
2913
|
"vat-type": e._document.vatType,
|
|
2893
2914
|
class: "mb-4"
|
|
@@ -2895,8 +2916,8 @@ function cn(e, t, n, o, s, i) {
|
|
|
2895
2916
|
p(w, {
|
|
2896
2917
|
modelValue: e.priceType,
|
|
2897
2918
|
"onUpdate:modelValue": [
|
|
2898
|
-
t[7] || (t[7] = (
|
|
2899
|
-
t[8] || (t[8] = (
|
|
2919
|
+
t[7] || (t[7] = (_) => e.priceType = _),
|
|
2920
|
+
t[8] || (t[8] = (_) => e.$emit("update:priceType", _))
|
|
2900
2921
|
]
|
|
2901
2922
|
}, null, 8, ["modelValue"]),
|
|
2902
2923
|
p($, {
|
|
@@ -2907,18 +2928,18 @@ function cn(e, t, n, o, s, i) {
|
|
|
2907
2928
|
"active-house-work-type": n.activeHouseWorkType,
|
|
2908
2929
|
"hide-controls": !s.isFocus && !s.isHover,
|
|
2909
2930
|
onInput: i.onArticleInput,
|
|
2910
|
-
"onUpdate:setPricesIncVat": t[9] || (t[9] = (
|
|
2911
|
-
"onUpdate:currency": t[10] || (t[10] = (
|
|
2931
|
+
"onUpdate:setPricesIncVat": t[9] || (t[9] = (_) => e.$emit("update:setPricesIncVat", _)),
|
|
2932
|
+
"onUpdate:currency": t[10] || (t[10] = (_) => e.$emit("update:currency", _)),
|
|
2912
2933
|
onMove: i.onArticleMove,
|
|
2913
2934
|
onRemove: i.onArticleRemove,
|
|
2914
2935
|
onAdd: i.onArticleAdd,
|
|
2915
|
-
onFocus: t[11] || (t[11] = (
|
|
2936
|
+
onFocus: t[11] || (t[11] = (_) => s.isFocus = !0),
|
|
2916
2937
|
onInsert: i.onInsert
|
|
2917
2938
|
}, null, 8, ["_document", "articles", "root-price-type", "active-house-work-type", "hide-controls", "onInput", "onMove", "onRemove", "onAdd", "onInsert"]),
|
|
2918
2939
|
l("div", ln, [
|
|
2919
2940
|
l("div", {
|
|
2920
2941
|
class: "cursor-pointer rounded-md border border-gray-200 bg-gray-100 p-2.5 text-center text-sm font-medium leading-none text-gray-500 transition-colors hover:border-gray-400 hover:bg-gray-500 hover:text-white",
|
|
2921
|
-
onClick: t[12] || (t[12] = (
|
|
2942
|
+
onClick: t[12] || (t[12] = (_) => i.onArticleAdd())
|
|
2922
2943
|
}, [
|
|
2923
2944
|
p(m, {
|
|
2924
2945
|
type: "plus",
|
|
@@ -2926,11 +2947,11 @@ function cn(e, t, n, o, s, i) {
|
|
|
2926
2947
|
"stroke-width": "3",
|
|
2927
2948
|
class: "mr-1"
|
|
2928
2949
|
}),
|
|
2929
|
-
|
|
2950
|
+
I(" " + u(e.$t("addButton")), 1)
|
|
2930
2951
|
]),
|
|
2931
2952
|
R((a(), c("div", {
|
|
2932
2953
|
class: "cursor-pointer rounded-md border border-gray-200 bg-gray-100 p-2.5 text-center text-sm font-medium leading-none text-gray-500 transition-colors hover:border-gray-400 hover:bg-gray-500 hover:text-white",
|
|
2933
|
-
onClick: t[13] || (t[13] = (
|
|
2954
|
+
onClick: t[13] || (t[13] = (_) => i.onArticleAdd({ openModal: !0 }))
|
|
2934
2955
|
}, [
|
|
2935
2956
|
p(m, {
|
|
2936
2957
|
type: "zap",
|
|
@@ -2948,7 +2969,7 @@ function cn(e, t, n, o, s, i) {
|
|
|
2948
2969
|
_document: e._document,
|
|
2949
2970
|
"base-path": `${e._value.basePath}`,
|
|
2950
2971
|
"package-id": n.packageId,
|
|
2951
|
-
onInput: t[14] || (t[14] = (
|
|
2972
|
+
onInput: t[14] || (t[14] = (_) => e.$emit("input", _))
|
|
2952
2973
|
}, null, 8, ["_document", "base-path", "package-id"])
|
|
2953
2974
|
], 32)), [
|
|
2954
2975
|
[
|
|
@@ -3047,8 +3068,8 @@ const gn = {
|
|
|
3047
3068
|
PackageItem: dn,
|
|
3048
3069
|
PackageGroupSelect: kt,
|
|
3049
3070
|
CCallout: $e,
|
|
3050
|
-
CDropdown:
|
|
3051
|
-
CDropdownItem:
|
|
3071
|
+
CDropdown: Z,
|
|
3072
|
+
CDropdownItem: Y
|
|
3052
3073
|
},
|
|
3053
3074
|
mixins: [
|
|
3054
3075
|
q([
|
|
@@ -3121,7 +3142,7 @@ const gn = {
|
|
|
3121
3142
|
},
|
|
3122
3143
|
methods: {
|
|
3123
3144
|
...z({
|
|
3124
|
-
showMessage:
|
|
3145
|
+
showMessage: O.SHOW_MESSAGE
|
|
3125
3146
|
}),
|
|
3126
3147
|
setPricesIncVatAsDefault(e = {}) {
|
|
3127
3148
|
this.$emit("input", {
|
|
@@ -3262,12 +3283,12 @@ const gn = {
|
|
|
3262
3283
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3263
3284
|
}, Tn = { class: "flex w-full" };
|
|
3264
3285
|
function An(e, t, n, o, s, i) {
|
|
3265
|
-
const f =
|
|
3286
|
+
const f = v("PackageGroupSelect"), h = v("ErrorCallout"), y = v("CButton"), d = v("CDropdownItem"), k = v("CDropdown"), w = v("CCallout"), $ = v("PackageItem");
|
|
3266
3287
|
return a(), c("div", vn, [
|
|
3267
3288
|
e.type ? (a(), c(C, { key: 1 }, [
|
|
3268
3289
|
l("div", yn, [
|
|
3269
3290
|
p(k, null, {
|
|
3270
|
-
trigger:
|
|
3291
|
+
trigger: g(() => [
|
|
3271
3292
|
p(y, {
|
|
3272
3293
|
type: "none",
|
|
3273
3294
|
size: "normal",
|
|
@@ -3276,10 +3297,10 @@ function An(e, t, n, o, s, i) {
|
|
|
3276
3297
|
circle: ""
|
|
3277
3298
|
})
|
|
3278
3299
|
]),
|
|
3279
|
-
default:
|
|
3300
|
+
default: g(() => [
|
|
3280
3301
|
p(d, { onClick: i.onResetType }, {
|
|
3281
|
-
default:
|
|
3282
|
-
|
|
3302
|
+
default: g(() => [
|
|
3303
|
+
I(u(e.$t("_common:change", {
|
|
3283
3304
|
thing: e.$t("_common:price.proposal").toLowerCase()
|
|
3284
3305
|
})), 1)
|
|
3285
3306
|
]),
|
|
@@ -3291,8 +3312,8 @@ function An(e, t, n, o, s, i) {
|
|
|
3291
3312
|
toggle: "",
|
|
3292
3313
|
onInput: t[1] || (t[1] = (m) => e.hideGroupPrice = m)
|
|
3293
3314
|
}, {
|
|
3294
|
-
default:
|
|
3295
|
-
|
|
3315
|
+
default: g(() => [
|
|
3316
|
+
I(u(e.$t("hideGroupPrice")), 1)
|
|
3296
3317
|
]),
|
|
3297
3318
|
_: 1
|
|
3298
3319
|
}, 8, ["value"])
|
|
@@ -3305,7 +3326,7 @@ function An(e, t, n, o, s, i) {
|
|
|
3305
3326
|
title: e.$t("base"),
|
|
3306
3327
|
class: "w-full"
|
|
3307
3328
|
}, {
|
|
3308
|
-
default:
|
|
3329
|
+
default: g(() => [
|
|
3309
3330
|
l("div", kn, u(e.$t("basePlaceholder")), 1),
|
|
3310
3331
|
p(y, {
|
|
3311
3332
|
type: "secondary",
|
|
@@ -3317,8 +3338,8 @@ function An(e, t, n, o, s, i) {
|
|
|
3317
3338
|
toggable: !1
|
|
3318
3339
|
}))
|
|
3319
3340
|
}, {
|
|
3320
|
-
default:
|
|
3321
|
-
|
|
3341
|
+
default: g(() => [
|
|
3342
|
+
I(u(e.$t("_common:add", { thing: e.$t("base").toLowerCase() })), 1)
|
|
3322
3343
|
]),
|
|
3323
3344
|
_: 1
|
|
3324
3345
|
})
|
|
@@ -3329,7 +3350,7 @@ function An(e, t, n, o, s, i) {
|
|
|
3329
3350
|
name: "section-list",
|
|
3330
3351
|
tag: "div"
|
|
3331
3352
|
}, {
|
|
3332
|
-
default:
|
|
3353
|
+
default: g(() => [
|
|
3333
3354
|
(a(!0), c(C, null, S(i.topRowPackages, (m, T) => (a(), c("div", {
|
|
3334
3355
|
key: m.packageId,
|
|
3335
3356
|
class: "section-item pb-4"
|
|
@@ -3377,7 +3398,7 @@ function An(e, t, n, o, s, i) {
|
|
|
3377
3398
|
tag: "div",
|
|
3378
3399
|
style: { "margin-bottom": "calc(1 * var(--rem))" }
|
|
3379
3400
|
}, {
|
|
3380
|
-
default:
|
|
3401
|
+
default: g(() => [
|
|
3381
3402
|
(a(!0), c(C, null, S(i.bottomRowPackages, (m, T) => (a(), c("div", {
|
|
3382
3403
|
key: m.packageId,
|
|
3383
3404
|
class: "section-item",
|
|
@@ -3428,10 +3449,10 @@ function An(e, t, n, o, s, i) {
|
|
|
3428
3449
|
"fill-rule": "evenodd"
|
|
3429
3450
|
}, null, -1)
|
|
3430
3451
|
]))),
|
|
3431
|
-
|
|
3452
|
+
I(" " + u(e.$t("selectablePlaceholder")), 1)
|
|
3432
3453
|
])) : b("", !0)
|
|
3433
3454
|
]),
|
|
3434
|
-
n.validator.$invalid && n.validator.$dirty ? (a(), A(
|
|
3455
|
+
n.validator.$invalid && n.validator.$dirty ? (a(), A(h, {
|
|
3435
3456
|
key: 0,
|
|
3436
3457
|
message: e.$t("error.minOnePackage"),
|
|
3437
3458
|
style: { margin: "calc(1 * var(--rem)) 0 calc(1 * var(--rem)) 0" }
|
|
@@ -3444,8 +3465,8 @@ function An(e, t, n, o, s, i) {
|
|
|
3444
3465
|
style: { "border-color": "hsl(0, 0%, 82%)" },
|
|
3445
3466
|
onClick: t[12] || (t[12] = (m) => i.addPackage())
|
|
3446
3467
|
}, {
|
|
3447
|
-
default:
|
|
3448
|
-
|
|
3468
|
+
default: g(() => [
|
|
3469
|
+
I(u(e.$t("add")), 1)
|
|
3449
3470
|
]),
|
|
3450
3471
|
_: 1
|
|
3451
3472
|
})
|
|
@@ -3455,7 +3476,7 @@ function An(e, t, n, o, s, i) {
|
|
|
3455
3476
|
p(f, {
|
|
3456
3477
|
onInput: t[0] || (t[0] = (m) => i.onSelectType(m))
|
|
3457
3478
|
}),
|
|
3458
|
-
n.validator.$invalid && n.validator.$dirty ? (a(), A(
|
|
3479
|
+
n.validator.$invalid && n.validator.$dirty ? (a(), A(h, {
|
|
3459
3480
|
key: 0,
|
|
3460
3481
|
message: e.$t("error.selectType"),
|
|
3461
3482
|
style: { "padding-bottom": "calc(1.5 * var(--rem))" }
|