@cling-se/widget 0.19.8 → 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 +16 -0
- package/dist/{AddClientCallout-sPxYX5tQ.js → AddClientCallout-BsRvkT-W.js} +4 -4
- package/dist/{AnswerModal-o8OHHulg.js → AnswerModal-DEZ_YBHk.js} +3 -3
- package/dist/{AttachmentItem-CzzOlHB-.js → AttachmentItem-7BXCpSN5.js} +4 -4
- package/dist/{BaseUpload-oZQfFwOj.js → BaseUpload-BoI75J6e.js} +2 -2
- package/dist/{BlockMedia-BGPxfM2X.js → BlockMedia-mDZEGad9.js} +30 -29
- package/dist/{CCallout-CrbMGTIj.js → CCallout--fWgvr0x.js} +1 -1
- package/dist/{CCurrencyDropdown-BnNDP51j.js → CCurrencyDropdown-C0Fn_4IX.js} +3 -3
- package/dist/{CDropdownItem-E-kRDIiy.js → CDropdownItem-D3_tCkkr.js} +2 -2
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-Bi0MjQdW.js → CFormField.vue_vue_type_script_setup_true_lang-CLNJpSL4.js} +4 -4
- package/dist/{CPhoneFormat-CIQAVdsB.js → CPhoneFormat-CcCMbWmZ.js} +1 -1
- package/dist/{CPhoneInput-9AwTJm-0.js → CPhoneInput-BLbPiE9M.js} +5 -5
- package/dist/{CPriceInput-agFahtr1.js → CPriceInput-D03-LElV.js} +2 -2
- package/dist/{CSelect-BpautzPq.js → CSelect-D9paYPUW.js} +1 -1
- package/dist/{CSkeleton-GIqd-JU4.js → CSkeleton-CJ7CFudo.js} +5 -5
- package/dist/{ClientAutocomplete-DOHX9Igy.js → ClientAutocomplete-CAQHG8Tz.js} +11 -11
- package/dist/{ClientModal-DAXKN_b3.js → ClientModal-pu3oIp0w.js} +14 -14
- package/dist/{ColorPicker-B9F8znY_.js → ColorPicker-CzVbcUB-.js} +1 -1
- package/dist/{CompanyModal-BvIMVys6.js → CompanyModal-Dy72AiPw.js} +7 -7
- package/dist/{ContentWrapper-DB22RaUr.js → ContentWrapper-DfeVimeu.js} +12 -12
- package/dist/{CoverBlockSettings--l4fH9mr.js → CoverBlockSettings-A3-vTq36.js} +7 -7
- package/dist/{DocAnswer-Bq-4uVbe.js → DocAnswer-Dr6gyQOP.js} +2 -2
- package/dist/{DocDetails-yxmchgO5.js → DocDetails-Bj29y4bu.js} +4 -4
- package/dist/{DocForm-CzrR8o22.js → DocForm-DHL6Dvhw.js} +27 -29
- package/dist/{DocFormSend-Bjc1QDcK.js → DocFormSend-Djnm9KoO.js} +2 -2
- package/dist/{DocLinks-BXbC-6v3.js → DocLinks-UB3xT-cg.js} +2 -2
- package/dist/{DocModalBase-axX_Rlp3.js → DocModalBase-B04bul06.js} +1 -1
- package/dist/{DocPrint-D0IdWsUM.js → DocPrint-CGGGhXZ1.js} +1 -1
- package/dist/{DocReceipt-4e-RmgeQ.js → DocReceipt-DL3HQLkv.js} +2 -2
- package/dist/{DocSendReminder-L35eZxgk.js → DocSendReminder-CxP97wDu.js} +1 -1
- package/dist/{DocTextEditor-KrfylSV6.js → DocTextEditor-BQhfVRlV.js} +16 -13
- package/dist/{DocTimeline-Be5CvtcQ.js → DocTimeline-BPR65V2I.js} +2 -2
- package/dist/{DocumentClient-Bc4kf2q9.js → DocumentClient-CuTntNdl.js} +5 -5
- package/dist/{DocumentLayout-Oe-ZsHML.js → DocumentLayout-D6PvFdQg.js} +32 -32
- package/dist/{DocumentLogotype-BFo5UEWS.js → DocumentLogotype-CLJ7RsVz.js} +4 -4
- package/dist/{DocumentVoided-DlQtlO7G.js → DocumentVoided-DB5xhLfP.js} +1 -1
- package/dist/{EmbedInput-B29usQZZ.js → EmbedInput-CUl_MX4S.js} +3 -3
- package/dist/{EmbedSettings-D-9rcSn0.js → EmbedSettings-Cq8n5rI2.js} +3 -3
- package/dist/{ErrorCallout--EnH1Ezu.js → ErrorCallout-BUTqhYbf.js} +3 -3
- package/dist/{FilePreviewModal-H5Ilg9xN.js → FilePreviewModal-D8fjLRUG.js} +2 -2
- package/dist/{Flag-DgZVh3Lf.js → Flag-CXb8yU4n.js} +1 -1
- package/dist/{HeaderSettings-HuM_JwJw.js → HeaderSettings-BT4TlFdj.js} +9 -9
- package/dist/{ImageSelectModal-CJ-DstAf.js → ImageSelectModal-DmlTZjg0.js} +3 -3
- package/dist/{ImageUploadWrapper-TYs37LIQ.js → ImageUploadWrapper-Bt0uozSl.js} +2 -2
- package/dist/{Index-CtJfMiZW.js → Index-1aEI7_56.js} +2 -2
- package/dist/Index-2vRzH0zx.js +4 -0
- package/dist/{Index-DJ11Zra_.js → Index-39gM2cY7.js} +8 -8
- package/dist/{Index-D5_GLLQH.js → Index-55e7lOqG.js} +476 -455
- package/dist/{Index-DXT_IMjq.js → Index-AZN4wthQ.js} +5 -5
- package/dist/{Index-B942Auag.js → Index-BCYnuRFa.js} +2 -2
- package/dist/{Index-yJRtT77X.js → Index-BEsOBJdX.js} +2 -2
- package/dist/{Index-CY2sRfaY.js → Index-BFa6BgHI.js} +3 -3
- package/dist/{Index-BdnFLjgV.js → Index-BG30GlWz.js} +7 -7
- package/dist/{Index-CTlB43yV.js → Index-BVOpa2cR.js} +4 -4
- package/dist/{Index-CC4E2CmH.js → Index-BkwtFP0b.js} +5 -5
- package/dist/{Index-DMIjuWSa.js → Index-C0wIaLu-.js} +4 -4
- package/dist/{Index-D9sceHk5.js → Index-CDTYkmkj.js} +4 -4
- package/dist/{Index-DYUvtCff.js → Index-CG92HjZU.js} +4 -4
- package/dist/{Index-CAMAtPVL.js → Index-CKUiWN7e.js} +3 -3
- package/dist/{Index-nTp9wEni.js → Index-CO6KkcjQ.js} +4 -4
- package/dist/{Index-CLgN5Jzf.js → Index-CQ6z4JCV.js} +1 -1
- package/dist/{Index-nRqNPZ3B.js → Index-CVZ5OiyQ.js} +6 -6
- package/dist/{Index-W-Q19E3a.js → Index-CY_zs2z7.js} +4 -4
- package/dist/{Index-CrdSdXWN.js → Index-Cb8dJ-iH.js} +23 -20
- package/dist/{Index-B-PDcQKh.js → Index-CcEhh58c.js} +5 -5
- package/dist/{Index-N88Abomf.js → Index-ChBaT3FD.js} +1 -1
- package/dist/{Index-Dg4dwlh_.js → Index-ChpIICjV.js} +9 -9
- package/dist/{Index-BMpHXgR4.js → Index-ClYwg_Tc.js} +8 -8
- package/dist/{Index-6N_iRlrQ.js → Index-Cmg4QHZZ.js} +5 -5
- package/dist/{Index-edWEg_rF.js → Index-Cw8wthZj.js} +10 -10
- package/dist/{Index-BZ6ZDf9T.js → Index-DF5-4D3i.js} +4 -4
- package/dist/{Index-CGus-YwW.js → Index-DQdLSrV-.js} +7 -7
- package/dist/{Index-DTm59e-A.js → Index-Dlo49fYy.js} +4 -4
- package/dist/{Index-BLdFyt-s.js → Index-DvwD4u45.js} +3 -3
- package/dist/{Index-CnrSvy6E.js → Index-PmOYHy6x.js} +2 -2
- package/dist/{Index-BsRxY7vc.js → Index-bX6uKwvE.js} +3 -3
- package/dist/{Index-DYW8T0Hl.js → Index-dJwXStk7.js} +8 -8
- package/dist/{Index-BeOtRIzZ.js → Index-u6w_64Ql.js} +6 -6
- package/dist/{Index.vue_vue_type_script_lang-PJPQMT2c.js → Index.vue_vue_type_script_lang-BXjvuVbS.js} +2 -2
- package/dist/{InputToggleRow-DCr_DEm4.js → InputToggleRow-B0yjG-bh.js} +1 -1
- package/dist/{ManualPopover-CpVsmQvn.js → ManualPopover-ChYyDxj8.js} +1 -1
- package/dist/{MediaWrapper-Cj3LBhdR.js → MediaWrapper-KCTPL9oF.js} +3 -3
- package/dist/{NotBindingText-1J0p_k4u.js → NotBindingText-D4nJwAyD.js} +5 -5
- package/dist/{PackageGroup-CqrWEfCT.js → PackageGroup-Be1gVj7w.js} +106 -106
- package/dist/{PdfTerms-DmrPDtae.js → PdfTerms-1iI1qktG.js} +2 -2
- package/dist/{PdfViewer-C2EEwUBa.js → PdfViewer-bN0KukaH.js} +5 -5
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-B6pRo08V.js → PlainHtml.vue_vue_type_script_setup_true_lang-BrCKpyEU.js} +1 -1
- package/dist/{PriceHeader-BaREzUxI.js → PriceHeader-DWH-VRAW.js} +7 -7
- package/dist/{SearchApi-Bf4jeQVr.js → SearchApi-Bp95LCyA.js} +1 -1
- package/dist/{SendForm-D5qpHxNU.js → SendForm-DLUa5otf.js} +125 -125
- package/dist/{Setup-Bw8ViFxw.js → Setup-DDaFShaB.js} +1 -1
- package/dist/{SmartList-CzylvV8N.js → SmartList-BRShdlA0.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-DleoAiSK.js → Sortable.vue_vue_type_script_setup_true_lang-tLursG5q.js} +1 -1
- package/dist/{TermsSettings-EoJvsPqK.js → TermsSettings-C0cX4ZBC.js} +5 -5
- package/dist/{ThemeColorRow-D3blQMiD.js → ThemeColorRow-DoH8zauR.js} +3 -3
- package/dist/{ToggleBinding-BteBsRYr.js → ToggleBinding-C_e-eDZT.js} +4 -4
- package/dist/{UploadModal-Cr5sF3M-.js → UploadModal-F1bW2Egp.js} +2 -2
- package/dist/{VideoPlayerInput-BBycKv9w.js → VideoPlayerInput-BrrB9oVk.js} +4 -4
- package/dist/{VideoPlayerSettings-BXXpTWBf.js → VideoPlayerSettings-C8cR5e9r.js} +2 -2
- package/dist/{VideoSelectModal-B2VPO6q4.js → VideoSelectModal-CC_-Irlx.js} +3 -3
- package/dist/{focusDrawerMixin-CCAEZjWO.js → focusDrawerMixin-Byq1xBU3.js} +1 -1
- package/dist/{formDrawerState-CJyP4ce1.js → formDrawerState-DHUJo100.js} +1 -1
- package/dist/{helpers-Cf9s0P7o.js → helpers-ONO_cfDb.js} +1 -1
- package/dist/{index-DuXECcGq.js → index-B3GlU12d.js} +8 -8
- package/dist/{index-C3pnyYI4.js → index-BDJXRtvs.js} +1 -1
- package/dist/{index-DAJmNac8.js → index-BtbGDfGz.js} +1 -1
- package/dist/{index-CBn1mHmK.js → index-C9jrUexY.js} +7 -7
- package/dist/{index-DYJN9yoF.js → index-ClF7kp8h.js} +8 -8
- package/dist/{index-XzoHqJIR.js → index-CoQoszZX.js} +1 -1
- package/dist/{index-_MfZEYgE.js → index-D1ejEjwe.js} +6 -6
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +136 -136
- package/dist/{main-BayUZ9OO.js → main-ByMVnwS5.js} +3512 -3532
- package/dist/{mapFormMixin-Bx5_nE7g.js → mapFormMixin-zL_x65Dt.js} +8 -8
- package/dist/{omit-BKJdPM2H.js → omit-BqIpwnLe.js} +9 -9
- package/dist/{publicSenderState-CblTasKp.js → publicSenderState-D2O1iAac.js} +1 -1
- package/dist/{splitpanes-DFkgBT3z.js → splitpanes-BNIUBGFa.js} +1 -1
- package/dist/{template-CvGgzazD.js → template-gCGJogwx.js} +2 -2
- package/dist/{tippy.esm-CYKcJaqz.js → tippy.esm-D9T0otvu.js} +5 -5
- package/dist/{useTermsModal-DFmdeFRm.js → useTermsModal-5bV0m_Ha.js} +4 -4
- package/dist/{utils-DTwXcY8_.js → utils-DiG2v7vg.js} +1 -1
- package/dist/{validation-d_jonAPy.js → validation-BQR3TvR7.js} +2 -2
- package/dist/widget.css +1 -1
- package/package.json +1 -1
- package/dist/Index-D4HNTocO.js +0 -4
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { m as
|
|
2
|
-
import { C as
|
|
3
|
-
import { C as
|
|
4
|
-
import { E as me } from "./ErrorCallout
|
|
5
|
-
import {
|
|
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,65 +29,65 @@ 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,
|
|
54
|
+
function h(y, d, k) {
|
|
55
|
+
var w = -1, $ = t, m = y.length, T = !0, r = [], P = r;
|
|
56
56
|
if (k)
|
|
57
|
-
T = !1,
|
|
57
|
+
T = !1, $ = n;
|
|
58
58
|
else if (m >= f) {
|
|
59
|
-
var
|
|
60
|
-
if (
|
|
61
|
-
return i(
|
|
62
|
-
T = !1,
|
|
59
|
+
var _ = d ? null : s(y);
|
|
60
|
+
if (_)
|
|
61
|
+
return i(_);
|
|
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
|
|
68
|
-
if (
|
|
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
|
|
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
|
-
const ct = /* @__PURE__ */
|
|
90
|
+
const ct = /* @__PURE__ */ De(lt), dt = {
|
|
91
91
|
name: "PackageGroupSelect",
|
|
92
92
|
i18nOptions: {
|
|
93
93
|
namespaces: "PackageGroupSelect",
|
|
@@ -164,21 +164,21 @@ const ct = /* @__PURE__ */ Me(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
|
-
l("div", pt,
|
|
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,14 +215,14 @@ 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",
|
|
227
227
|
"stroke-width": "5",
|
|
228
228
|
size: "8"
|
|
@@ -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,
|
|
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,12 +252,12 @@ function yt(e, t, n, o, s, i) {
|
|
|
252
252
|
])
|
|
253
253
|
]);
|
|
254
254
|
}
|
|
255
|
-
const kt = /* @__PURE__ */
|
|
255
|
+
const kt = /* @__PURE__ */ D(dt, [["render", yt], ["__scopeId", "data-v-9558e77f"]]), bt = {
|
|
256
256
|
name: "ArticleAutocomplete",
|
|
257
257
|
components: {
|
|
258
258
|
SearchApi: tt
|
|
259
259
|
},
|
|
260
|
-
mixins: [
|
|
260
|
+
mixins: [q([])],
|
|
261
261
|
props: {
|
|
262
262
|
tag: {
|
|
263
263
|
type: String,
|
|
@@ -316,9 +316,9 @@ const kt = /* @__PURE__ */ M(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,
|
|
@@ -378,7 +378,7 @@ const kt = /* @__PURE__ */ M(dt, [["render", yt], ["__scopeId", "data-v-9558e77f
|
|
|
378
378
|
key: 0,
|
|
379
379
|
ref: "dropdown",
|
|
380
380
|
class: "r-container"
|
|
381
|
-
}, It = ["onClickCapture"],
|
|
381
|
+
}, It = ["onClickCapture"], _t = { class: "r-item-title w-full truncate" }, $t = { class: "r-item-details" }, Tt = {
|
|
382
382
|
key: 0,
|
|
383
383
|
style: { width: "18px", height: "18px", "border-radius": "2px", "background-color": "hsl(0, 0%, 60%)", display: "inline-flex", "justify-content": "center", "align-items": "center" }
|
|
384
384
|
}, At = { key: 1 }, Ct = { key: 2 }, Pt = { key: 3 }, xt = {
|
|
@@ -386,20 +386,20 @@ const kt = /* @__PURE__ */ M(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
|
-
|
|
396
|
+
p(h, { "custom-search": {
|
|
397
397
|
article: !0,
|
|
398
398
|
extensionArticle: !0,
|
|
399
399
|
project: !1
|
|
400
400
|
} }, {
|
|
401
|
-
default:
|
|
402
|
-
|
|
401
|
+
default: g(({ fetch: d }) => [
|
|
402
|
+
p(f, B({
|
|
403
403
|
...e.$attrs,
|
|
404
404
|
...e.$props
|
|
405
405
|
}, {
|
|
@@ -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,23 +431,23 @@ 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
|
-
l("div",
|
|
437
|
-
l("div",
|
|
436
|
+
l("div", _t, u(d.name), 1),
|
|
437
|
+
l("div", $t, [
|
|
438
438
|
d.externalReference && d.externalReference.service ? (a(), c("div", Tt, [
|
|
439
|
-
|
|
439
|
+
p(y, {
|
|
440
440
|
type: d.externalReference.service,
|
|
441
441
|
style: { color: "white" },
|
|
442
442
|
size: "14"
|
|
443
443
|
}, null, 8, ["type"])
|
|
444
444
|
])) : b("", !0),
|
|
445
|
-
d.article_no ? (a(), c("div", At,
|
|
446
|
-
d.price ? (a(), c("div", Ct,
|
|
447
|
-
d.vat ? (a(), c("div", Pt,
|
|
445
|
+
d.article_no ? (a(), c("div", At, u(d.article_no), 1)) : b("", !0),
|
|
446
|
+
d.price ? (a(), c("div", Ct, u(i.priceFormat(d.price, { currency: d.currency })), 1)) : b("", !0),
|
|
447
|
+
d.vat ? (a(), c("div", Pt, u(e.$t("vat.sharedTitle").capitalize()) + " " + u(d.vat) + "% ", 1)) : b("", !0)
|
|
448
448
|
]),
|
|
449
449
|
s.selectedIndex === k ? (a(), c("div", xt, [
|
|
450
|
-
|
|
450
|
+
p(y, {
|
|
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__ */ D(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__ */ M(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__ */ M(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__ */ M(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}`;
|
|
@@ -557,13 +557,13 @@ const be = /* @__PURE__ */ M(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
},
|
|
560
|
+
}, _e = {
|
|
561
561
|
article: {
|
|
562
562
|
name: {
|
|
563
563
|
maxLength: it(255)
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
|
-
},
|
|
566
|
+
}, Dt = {
|
|
567
567
|
name: "Article",
|
|
568
568
|
i18nOptions: {
|
|
569
569
|
namespaces: "Article",
|
|
@@ -572,7 +572,7 @@ const be = /* @__PURE__ */ M(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: {
|
|
@@ -622,14 +622,16 @@ const be = /* @__PURE__ */ M(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
622
622
|
v$: ye()
|
|
623
623
|
};
|
|
624
624
|
},
|
|
625
|
-
validations:
|
|
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__ */ M(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__ */ M(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__ */ M(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__ */ M(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__ */ M(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
|
-
|
|
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,13 +736,13 @@ 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",
|
|
736
743
|
onClick: t[0] || (t[0] = (w) => e.$emit("open-modal"))
|
|
737
744
|
}, [
|
|
738
|
-
|
|
745
|
+
p(f, {
|
|
739
746
|
type: "cog",
|
|
740
747
|
size: "18"
|
|
741
748
|
})
|
|
@@ -768,14 +775,14 @@ function Lt(e, t, n, o, s, i) {
|
|
|
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
777
|
n.hideControls ? b("", !0) : (a(), c(C, { key: 1 }, [
|
|
771
|
-
|
|
778
|
+
p(f, {
|
|
772
779
|
class: "a-control-button close-button fade-in",
|
|
773
780
|
circle: "",
|
|
774
781
|
type: "x",
|
|
775
782
|
size: "18",
|
|
776
783
|
onClick: t[8] || (t[8] = (w) => n.enableRemove ? e.$emit("remove") : null)
|
|
777
784
|
}),
|
|
778
|
-
|
|
785
|
+
p(f, {
|
|
779
786
|
class: V([{ "c-hidden": !n.enableRemove }, "a-control-button fade-in move-button article-draggable-handle"]),
|
|
780
787
|
circle: "",
|
|
781
788
|
type: "handle",
|
|
@@ -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:
|
|
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
|
-
|
|
797
|
-
|
|
803
|
+
I(u(w) + " ", 1),
|
|
804
|
+
$ ? (a(), c("div", {
|
|
798
805
|
key: 0,
|
|
799
|
-
innerHTML:
|
|
800
|
-
}, null, 8,
|
|
801
|
-
|
|
802
|
-
], 2))
|
|
806
|
+
innerHTML: $
|
|
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__ */
|
|
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",
|
|
@@ -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__ */ D(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__ */ M(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();
|
|
@@ -1029,7 +1038,7 @@ const Wt = /* @__PURE__ */ M(Et, [["render", Bt], ["__scopeId", "data-v-f685b502
|
|
|
1029
1038
|
}, jt = {
|
|
1030
1039
|
class: "unit-modal-root font-inter",
|
|
1031
1040
|
style: { position: "relative" }
|
|
1032
|
-
},
|
|
1041
|
+
}, Ft = { style: { padding: "calc(1.5 * var(--rem))" } }, qt = { style: { "font-weight": "600", "font-size": "18px", "margin-bottom": "calc(1.5 * var(--rem))" } }, Nt = { class: "control" }, Ht = { style: { "border-top": "1px solid hsl(0, 0%, 88%)", overflow: "auto", "max-height": "360px" } }, Gt = {
|
|
1033
1042
|
class: "text-gray-400",
|
|
1034
1043
|
style: { "font-size": "14px", padding: "calc(1 * var(--rem)) calc(1.5 * var(--rem)) 0", "font-weight": "500" }
|
|
1035
1044
|
}, Kt = { class: "unit-modal-list" }, Yt = {
|
|
@@ -1037,30 +1046,30 @@ const Wt = /* @__PURE__ */ M(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
|
-
l("div",
|
|
1047
|
-
l("div",
|
|
1048
|
-
l("span", null,
|
|
1049
|
-
R(
|
|
1055
|
+
l("div", Ft, [
|
|
1056
|
+
l("div", qt, [
|
|
1057
|
+
l("span", null, u(e.$t("_common:add", { thing: e.$t("_common:unitType.unitType_other") })), 1),
|
|
1058
|
+
R(p(f, {
|
|
1050
1059
|
type: "info",
|
|
1051
1060
|
size: "15",
|
|
1052
1061
|
class: "text-gray-400",
|
|
1053
1062
|
style: { "margin-left": "0.5em" }
|
|
1054
1063
|
}, null, 512), [
|
|
1055
|
-
[
|
|
1064
|
+
[$, { content: e.$t("tooltip"), html: !0 }]
|
|
1056
1065
|
])
|
|
1057
1066
|
]),
|
|
1058
|
-
|
|
1067
|
+
p(d, {
|
|
1059
1068
|
grouped: "",
|
|
1060
1069
|
style: { margin: "0" }
|
|
1061
1070
|
}, {
|
|
1062
|
-
default:
|
|
1063
|
-
|
|
1071
|
+
default: g(() => [
|
|
1072
|
+
p(y, {
|
|
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
|
-
|
|
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
|
-
|
|
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"])
|
|
@@ -1103,21 +1112,21 @@ function ei(e, t, n, o, s, i) {
|
|
|
1103
1112
|
})
|
|
1104
1113
|
]),
|
|
1105
1114
|
l("div", Ht, [
|
|
1106
|
-
l("div", Gt,
|
|
1115
|
+
l("div", Gt, u(e.$t("_common:unit_other").capitalize()), 1),
|
|
1107
1116
|
l("div", Kt, [
|
|
1108
|
-
i.unitItems.length ? b("", !0) : (a(), c("div", Yt,
|
|
1109
|
-
|
|
1117
|
+
i.unitItems.length ? b("", !0) : (a(), c("div", Yt, u(e.$t("_common:add", { thing: e.$t("_common:unit_other") })), 1)),
|
|
1118
|
+
p(w, {
|
|
1110
1119
|
"drop-placeholder": { className: "drag-drop-placeholder" },
|
|
1111
1120
|
"drag-class": "is-dragged",
|
|
1112
1121
|
"lock-axis": "y",
|
|
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,
|
|
@@ -1125,28 +1134,28 @@ function ei(e, t, n, o, s, i) {
|
|
|
1125
1134
|
onClick: (r) => i.onEdit(m)
|
|
1126
1135
|
}, [
|
|
1127
1136
|
l("div", Jt, [
|
|
1128
|
-
|
|
1137
|
+
p(f, {
|
|
1129
1138
|
type: "handle",
|
|
1130
1139
|
size: "16",
|
|
1131
1140
|
class: "text-gray-300"
|
|
1132
1141
|
})
|
|
1133
1142
|
]),
|
|
1134
|
-
l("div", Qt,
|
|
1135
|
-
R(l("span", { class: "delete-confirm" },
|
|
1143
|
+
l("div", Qt, u(m.label), 1),
|
|
1144
|
+
R(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
|
-
|
|
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__ */ 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__ */ M(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__ */ M(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
|
-
|
|
1233
|
-
|
|
1240
|
+
trigger: g(() => [
|
|
1241
|
+
ne(e.$slots, "default", {}, () => [
|
|
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))
|
|
@@ -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__ */ D(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__ */ M(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"],
|
|
@@ -1344,11 +1353,11 @@ const si = /* @__PURE__ */ M(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe
|
|
|
1344
1353
|
v$: ye()
|
|
1345
1354
|
};
|
|
1346
1355
|
},
|
|
1347
|
-
validations:
|
|
1356
|
+
validations: _e,
|
|
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__ */ M(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__ */ M(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__ */ M(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__ */ M(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__ */ M(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,15 +1614,15 @@ 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
|
-
|
|
1617
|
+
p(h, { type: "x" })
|
|
1604
1618
|
])),
|
|
1605
|
-
|
|
1606
|
-
default:
|
|
1619
|
+
p(je, { name: "slide" }, {
|
|
1620
|
+
default: g(() => [
|
|
1607
1621
|
(a(), c("div", {
|
|
1608
1622
|
key: i.article._uniqueId,
|
|
1609
1623
|
class: "modal-main"
|
|
1610
1624
|
}, [
|
|
1611
|
-
|
|
1625
|
+
p(d, {
|
|
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
|
-
|
|
1633
|
+
default: g(() => [
|
|
1634
|
+
p(y, {
|
|
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
|
-
|
|
1657
|
+
p(d, {
|
|
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
|
-
|
|
1663
|
+
default: g(() => [
|
|
1664
|
+
p(k, {
|
|
1651
1665
|
"model-value": i.article.quantity,
|
|
1652
1666
|
disabled: ["openAcc", "markup"].includes(i.article.priceType),
|
|
1653
1667
|
placeholder: "",
|
|
@@ -1659,18 +1673,18 @@ function bi(e, t, n, o, s, i) {
|
|
|
1659
1673
|
]),
|
|
1660
1674
|
_: 1
|
|
1661
1675
|
}, 8, ["label"]),
|
|
1662
|
-
|
|
1676
|
+
p($, {
|
|
1663
1677
|
"model-value": i.article.unitType,
|
|
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:
|
|
1668
|
-
|
|
1681
|
+
default: g(() => [
|
|
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
|
]),
|
|
@@ -1682,13 +1696,13 @@ function bi(e, t, n, o, s, i) {
|
|
|
1682
1696
|
]),
|
|
1683
1697
|
n.hidePriceInput ? b("", !0) : (a(), c(C, { key: 0 }, [
|
|
1684
1698
|
l("div", li, [
|
|
1685
|
-
|
|
1699
|
+
p(d, {
|
|
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),
|
|
@@ -1711,17 +1725,17 @@ function bi(e, t, n, o, s, i) {
|
|
|
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
1730
|
s.showDiscountInput ? (a(), c("div", ci, [
|
|
1717
|
-
|
|
1731
|
+
p(d, {
|
|
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:
|
|
1724
|
-
|
|
1737
|
+
default: g(() => [
|
|
1738
|
+
p(m, {
|
|
1725
1739
|
ref: "discountInput",
|
|
1726
1740
|
"model-value": i.article.discount,
|
|
1727
1741
|
currency: i.article.currency,
|
|
@@ -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
|
}
|
|
@@ -1757,7 +1771,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
1757
1771
|
i.article.discountType === "percentage" ? "fixed" : "percentage",
|
|
1758
1772
|
"discountType"
|
|
1759
1773
|
))
|
|
1760
|
-
},
|
|
1774
|
+
}, u(i.article.discountType === "percentage" ? "%" : s.getCurrencySymbol(i.article.currency)), 1)
|
|
1761
1775
|
])) : b("", !0)
|
|
1762
1776
|
], 64)),
|
|
1763
1777
|
l("div", di, [
|
|
@@ -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,29 +1796,36 @@ 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
|
-
content:
|
|
1811
|
+
content: M,
|
|
1798
1812
|
delay: { show: 300, hide: 0 }
|
|
1799
1813
|
}]
|
|
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
|
-
|
|
1843
|
+
default: g(() => [
|
|
1844
|
+
p(h, {
|
|
1824
1845
|
type: "zap",
|
|
1825
1846
|
size: "21",
|
|
1826
1847
|
style: { margin: "-3px" }
|
|
@@ -1846,7 +1867,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
1846
1867
|
`
|
|
1847
1868
|
}]
|
|
1848
1869
|
]),
|
|
1849
|
-
|
|
1870
|
+
p(w, {
|
|
1850
1871
|
size: "large",
|
|
1851
1872
|
class: "flex-grow",
|
|
1852
1873
|
type: "secondary",
|
|
@@ -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__ */ D(ai, [["render", bi], ["__scopeId", "data-v-e5bbc8bd"]]), Ii = {
|
|
1868
1889
|
i18nOptions: {
|
|
1869
1890
|
name: "ArticleListEdit",
|
|
1870
1891
|
namespaces: "ArticleListEdit",
|
|
@@ -1889,7 +1910,7 @@ const wi = /* @__PURE__ */ M(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
|
|
|
1889
1910
|
Sortable: Xe
|
|
1890
1911
|
},
|
|
1891
1912
|
expose: ["focusLastArticle", "openLastArticle"],
|
|
1892
|
-
mixins: [
|
|
1913
|
+
mixins: [q([])],
|
|
1893
1914
|
props: {
|
|
1894
1915
|
_document: {
|
|
1895
1916
|
type: Object,
|
|
@@ -1913,7 +1934,7 @@ const wi = /* @__PURE__ */ M(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
|
|
|
1913
1934
|
}
|
|
1914
1935
|
},
|
|
1915
1936
|
setup() {
|
|
1916
|
-
const e = oe("articleItem"), t = oe("container"), { width: n } =
|
|
1937
|
+
const e = oe("articleItem"), t = oe("container"), { width: n } = qe(t);
|
|
1917
1938
|
return { articleItem: e, articlesWidth: n };
|
|
1918
1939
|
},
|
|
1919
1940
|
emits: [
|
|
@@ -1938,7 +1959,7 @@ const wi = /* @__PURE__ */ M(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);
|
|
@@ -1970,7 +1991,7 @@ const wi = /* @__PURE__ */ M(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
|
|
|
1970
1991
|
e || this.toggleDeductions(!1);
|
|
1971
1992
|
},
|
|
1972
1993
|
setPricesIncVat(e) {
|
|
1973
|
-
this.updateArticlesVatOption(), ["extension", "widget"].includes(
|
|
1994
|
+
this.updateArticlesVatOption(), ["extension", "widget"].includes(Fe.value) || this.showMessage({
|
|
1974
1995
|
type: "info",
|
|
1975
1996
|
message: this.$t("vatOption.message", {
|
|
1976
1997
|
vatOption: this.$t(`_common:vat.${e ? "incVat" : "exVat"}`, {
|
|
@@ -1982,7 +2003,7 @@ const wi = /* @__PURE__ */ M(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(() => {
|
|
@@ -2007,14 +2028,14 @@ const wi = /* @__PURE__ */ M(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
|
|
|
2007
2028
|
updateArticlesVatOption() {
|
|
2008
2029
|
this.articles.forEach((e, t) => {
|
|
2009
2030
|
if (e.priceType === "markup") return;
|
|
2010
|
-
let n =
|
|
2031
|
+
let n = F({ amount: e.price }).divide(
|
|
2011
2032
|
(100 + e.vat) * 0.01
|
|
2012
2033
|
);
|
|
2013
|
-
this.setPricesIncVat || (n =
|
|
2034
|
+
this.setPricesIncVat || (n = F({ amount: e.price }).multiply(
|
|
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
|
},
|
|
@@ -2066,20 +2087,20 @@ const wi = /* @__PURE__ */ M(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
|
|
|
2066
2087
|
this.$emit("move", t);
|
|
2067
2088
|
}
|
|
2068
2089
|
}
|
|
2069
|
-
},
|
|
2090
|
+
}, _i = { ref: "container" }, $i = {
|
|
2070
2091
|
key: 0,
|
|
2071
2092
|
class: "label-text"
|
|
2072
2093
|
};
|
|
2073
2094
|
function Ti(e, t, n, o, s, i) {
|
|
2074
|
-
const f =
|
|
2075
|
-
return a(), c("div",
|
|
2076
|
-
i.showVatToggle ? (a(), c("div",
|
|
2077
|
-
|
|
2095
|
+
const f = v("Article"), h = v("Sortable"), y = v("ArticleModal"), d = v("Portal");
|
|
2096
|
+
return a(), c("div", _i, [
|
|
2097
|
+
i.showVatToggle ? (a(), c("div", $i, [
|
|
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
|
-
|
|
2103
|
+
p(h, {
|
|
2083
2104
|
"item-key": "_uniqueId",
|
|
2084
2105
|
options: {
|
|
2085
2106
|
group: "articles",
|
|
@@ -2094,8 +2115,8 @@ 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:
|
|
2098
|
-
|
|
2118
|
+
item: g(({ item: k, index: w }) => [
|
|
2119
|
+
p(f, {
|
|
2099
2120
|
ref: "articleItem",
|
|
2100
2121
|
value: k,
|
|
2101
2122
|
width: o.articlesWidth,
|
|
@@ -2106,20 +2127,20 @@ function Ti(e, t, n, o, s, i) {
|
|
|
2106
2127
|
"root-price-type": n.rootPriceType,
|
|
2107
2128
|
"active-house-work-type": n.activeHouseWorkType,
|
|
2108
2129
|
class: "article-item",
|
|
2109
|
-
"onUpdate:currency": t[1] || (t[1] = (
|
|
2110
|
-
onInput: (
|
|
2111
|
-
onFocus: t[2] || (t[2] = (
|
|
2112
|
-
onRemove: (
|
|
2113
|
-
onOpenModal: (
|
|
2114
|
-
onAdd: (
|
|
2115
|
-
onSelect: (
|
|
2116
|
-
onEsc: (
|
|
2130
|
+
"onUpdate:currency": t[1] || (t[1] = ($) => e.$emit("update:currency", $)),
|
|
2131
|
+
onInput: ($) => i.updateArticleObject(w, $),
|
|
2132
|
+
onFocus: t[2] || (t[2] = ($) => e.$emit("focus")),
|
|
2133
|
+
onRemove: ($) => i.onRemoveArticle(w),
|
|
2134
|
+
onOpenModal: ($) => i.openModal(w, $),
|
|
2135
|
+
onAdd: ($) => w === i.articlesWithTotal.length - 1 ? e.$emit("add") : null,
|
|
2136
|
+
onSelect: ($) => w === i.articlesWithTotal.length - 1 ? e.$emit("add") : null,
|
|
2137
|
+
onEsc: ($) => i.onEsc(w, k)
|
|
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
|
-
|
|
2122
|
-
default:
|
|
2142
|
+
p(d, { to: "modal" }, {
|
|
2143
|
+
default: g(() => [
|
|
2123
2144
|
s.showModal && i.articlesWithTotal[s.selectedIndex] ? (a(), A(y, {
|
|
2124
2145
|
key: 0,
|
|
2125
2146
|
ref: "articleModal",
|
|
@@ -2144,7 +2165,7 @@ function Ti(e, t, n, o, s, i) {
|
|
|
2144
2165
|
})
|
|
2145
2166
|
], 512);
|
|
2146
2167
|
}
|
|
2147
|
-
const Ai = /* @__PURE__ */
|
|
2168
|
+
const Ai = /* @__PURE__ */ D(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__ */ M(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__ */ M(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: {
|
|
@@ -2187,19 +2208,19 @@ const Ai = /* @__PURE__ */ M(Ii, [["render", Ti], ["__scopeId", "data-v-8ab60481
|
|
|
2187
2208
|
},
|
|
2188
2209
|
watch: {
|
|
2189
2210
|
isIncVat(e) {
|
|
2190
|
-
let t =
|
|
2211
|
+
let t = F({ amount: this.modelValue }).divide(
|
|
2191
2212
|
1.25
|
|
2192
2213
|
);
|
|
2193
|
-
e || (t =
|
|
2214
|
+
e || (t = F({ amount: this.modelValue }).multiply(
|
|
2194
2215
|
125 * 0.01
|
|
2195
2216
|
)), this.$emit("update:modelValue", t.getAmount());
|
|
2196
2217
|
}
|
|
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,
|
|
2204
2225
|
currency: n.currency,
|
|
2205
2226
|
"is-inc-vat": e.isIncVat,
|
|
@@ -2209,13 +2230,13 @@ 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:
|
|
2218
|
-
l("span", null,
|
|
2238
|
+
suffix: g(() => [
|
|
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)
|
|
2221
2242
|
]),
|
|
@@ -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__ */ 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: {
|
|
@@ -2240,29 +2261,29 @@ const Vi = /* @__PURE__ */ M(Ci, [["render", xi]]), Si = {
|
|
|
2240
2261
|
priceTypeOptions: ["fixed", "approx", "openAcc", "openAccMaxPrice"]
|
|
2241
2262
|
};
|
|
2242
2263
|
}
|
|
2243
|
-
},
|
|
2244
|
-
function
|
|
2245
|
-
const f =
|
|
2246
|
-
return a(), c("div",
|
|
2247
|
-
|
|
2248
|
-
trigger:
|
|
2249
|
-
|
|
2250
|
-
default:
|
|
2251
|
-
|
|
2252
|
-
l("span", null,
|
|
2264
|
+
}, Di = { class: "flex justify-end" };
|
|
2265
|
+
function Ri(e, t, n, o, s, i) {
|
|
2266
|
+
const f = v("CButton"), h = v("CDropdownItem"), y = v("CDropdown");
|
|
2267
|
+
return a(), c("div", Di, [
|
|
2268
|
+
p(y, { "model-value": n.modelValue }, {
|
|
2269
|
+
trigger: g(() => [
|
|
2270
|
+
p(f, { class: "price-type-button" }, {
|
|
2271
|
+
default: g(() => [
|
|
2272
|
+
I(u(e.$t("price.pricing").capitalize()) + ": ", 1),
|
|
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,12 +2292,12 @@ function Di(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
|
-
mixins: [
|
|
2300
|
+
mixins: [q(["houseWorkManualAmount"])],
|
|
2280
2301
|
props: {
|
|
2281
2302
|
disabled: {
|
|
2282
2303
|
type: Boolean,
|
|
@@ -2309,13 +2330,13 @@ const Ri = /* @__PURE__ */ M(Si, [["render", Di], ["__scopeId", "data-v-26c5da6c
|
|
|
2309
2330
|
},
|
|
2310
2331
|
methods: {
|
|
2311
2332
|
setDeduction(e) {
|
|
2312
|
-
this.internalValue =
|
|
2333
|
+
this.internalValue = F({ amount: this.total }).multiply(e).getAmount();
|
|
2313
2334
|
},
|
|
2314
2335
|
showModal() {
|
|
2315
2336
|
this.internalValue = this.houseWorkAmount, this.$modal.show(this.modalName);
|
|
2316
2337
|
}
|
|
2317
2338
|
}
|
|
2318
|
-
}, Oi = { class: "deduction-modal flex w-full flex-col items-center justify-between rounded-lg" }, Ei = {
|
|
2339
|
+
}, Oi = { class: "deduction-modal flex w-full flex-col items-center justify-between rounded-lg" }, Ei = { class: "mb-5 text-center text-base font-extrabold" }, Ui = { class: "mb-5 w-full" }, Bi = { class: "my-5 text-center text-base font-extrabold" }, Wi = { class: "mb-5 w-full rounded-md bg-gray-100 p-2 text-center text-sm font-medium italic text-gray-500" }, zi = { class: "flex w-full flex-wrap justify-center gap-2" }, ji = ["onClick"], Fi = {
|
|
2319
2340
|
style: { "margin-right": "0.5em" },
|
|
2320
2341
|
viewBox: "0 0 24 24",
|
|
2321
2342
|
width: "12",
|
|
@@ -2327,23 +2348,21 @@ const Ri = /* @__PURE__ */ M(Si, [["render", Di], ["__scopeId", "data-v-26c5da6c
|
|
|
2327
2348
|
"stroke-linejoin": "round",
|
|
2328
2349
|
class: "css-i6dzq1"
|
|
2329
2350
|
};
|
|
2330
|
-
function
|
|
2331
|
-
const f =
|
|
2351
|
+
function qi(e, t, n, o, s, i) {
|
|
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,
|
|
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
|
-
l("div", Ei,
|
|
2343
|
-
type: e.$t(`deduction.${n.houseWorkType}`)
|
|
2344
|
-
})), 1),
|
|
2363
|
+
l("div", Ei, u(e.$t("manualDeduction")), 1),
|
|
2345
2364
|
l("div", Ui, [
|
|
2346
|
-
|
|
2365
|
+
p(f, {
|
|
2347
2366
|
modelValue: s.internalValue,
|
|
2348
2367
|
"onUpdate:modelValue": t[0] || (t[0] = (k) => s.internalValue = k),
|
|
2349
2368
|
modelModifiers: { number: !0 },
|
|
@@ -2353,17 +2372,19 @@ function ji(e, t, n, o, s, i) {
|
|
|
2353
2372
|
size: "medium",
|
|
2354
2373
|
"suffix-class": "text-gray-400"
|
|
2355
2374
|
}, {
|
|
2356
|
-
suffix:
|
|
2357
|
-
|
|
2375
|
+
suffix: g(() => [
|
|
2376
|
+
I(u(e.$t("currency.SEK")), 1)
|
|
2358
2377
|
]),
|
|
2359
2378
|
_: 1
|
|
2360
2379
|
}, 8, ["modelValue", "placeholder"])
|
|
2361
2380
|
]),
|
|
2362
|
-
l("div", Bi,
|
|
2381
|
+
l("div", Bi, u(e.$t("standardDeduction")), 1),
|
|
2382
|
+
l("div", Wi, u(e.$t("standardDeductionMessage")), 1),
|
|
2383
|
+
l("div", zi, [
|
|
2363
2384
|
(a(), c(C, null, S([
|
|
2364
|
-
{ v: 0.09, l: "9%" },
|
|
2365
|
-
{ v: 0.105, l: "10.5%" },
|
|
2366
2385
|
{ v: 0.1455, l: "14.55%" },
|
|
2386
|
+
{ v: 0.15, l: "15%" },
|
|
2387
|
+
{ v: 0.175, l: "17.5%" },
|
|
2367
2388
|
{ v: 0.194, l: "19.4%" },
|
|
2368
2389
|
{ v: 0.21, l: "21%" },
|
|
2369
2390
|
{ v: 0.485, l: "48.5%" },
|
|
@@ -2374,9 +2395,9 @@ function ji(e, t, n, o, s, i) {
|
|
|
2374
2395
|
active: Math.round(n.total * k.v * 0.01) * 100 === s.internalValue
|
|
2375
2396
|
}, "deduction-button"]),
|
|
2376
2397
|
onClick: (w) => i.setDeduction(k.v)
|
|
2377
|
-
},
|
|
2398
|
+
}, u(k.l), 11, ji)), 64))
|
|
2378
2399
|
]),
|
|
2379
|
-
|
|
2400
|
+
p(h, {
|
|
2380
2401
|
type: "secondary",
|
|
2381
2402
|
wide: "",
|
|
2382
2403
|
class: "mt-8",
|
|
@@ -2384,12 +2405,12 @@ function ji(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
|
-
|
|
2413
|
+
p(h, {
|
|
2393
2414
|
type: "secondary",
|
|
2394
2415
|
pattern: "tertiary",
|
|
2395
2416
|
wide: "",
|
|
@@ -2398,8 +2419,8 @@ function ji(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,12 +2433,12 @@ function ji(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))
|
|
2419
2440
|
}, [
|
|
2420
|
-
(a(), c("svg",
|
|
2441
|
+
(a(), c("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,17 +2453,17 @@ function ji(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
|
|
2463
|
+
const Ni = /* @__PURE__ */ D(Li, [["render", qi], ["__scopeId", "data-v-b12680ea"]]), Hi = {
|
|
2443
2464
|
name: "Pricing",
|
|
2444
2465
|
components: {
|
|
2445
|
-
EditDeduction:
|
|
2466
|
+
EditDeduction: Ni
|
|
2446
2467
|
},
|
|
2447
2468
|
props: {
|
|
2448
2469
|
_document: {
|
|
@@ -2523,7 +2544,7 @@ const qi = /* @__PURE__ */ M(Li, [["render", ji], ["__scopeId", "data-v-5de18d7b
|
|
|
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
|
|
@@ -2540,14 +2561,14 @@ const qi = /* @__PURE__ */ M(Li, [["render", ji], ["__scopeId", "data-v-5de18d7b
|
|
|
2540
2561
|
return !!x(this.prices, "region.houseWorkType", !1) || !!x(this.prices, "region.houseWorkManualAmount", !1);
|
|
2541
2562
|
}
|
|
2542
2563
|
}
|
|
2543
|
-
},
|
|
2564
|
+
}, Gi = { class: "price-bubble" }, Ki = { class: "flex w-full items-center justify-between" }, Yi = { class: "price-label" }, Zi = {
|
|
2544
2565
|
key: 0,
|
|
2545
2566
|
class: "pricing-sub-label"
|
|
2546
|
-
},
|
|
2547
|
-
function
|
|
2548
|
-
const f =
|
|
2549
|
-
return a(), c("div",
|
|
2550
|
-
l("div",
|
|
2567
|
+
}, Ji = ["onClick"], Qi = { class: "price-value" };
|
|
2568
|
+
function Xi(e, t, n, o, s, i) {
|
|
2569
|
+
const f = v("EditDeduction"), h = U("tooltip");
|
|
2570
|
+
return a(), c("div", Gi, [
|
|
2571
|
+
l("div", Ki, [
|
|
2551
2572
|
i.showHouseWork ? (a(), A(f, {
|
|
2552
2573
|
key: 0,
|
|
2553
2574
|
ref: "deduction",
|
|
@@ -2567,9 +2588,9 @@ function Ji(e, t, n, o, s, i) {
|
|
|
2567
2588
|
key: d,
|
|
2568
2589
|
class: V([[y.classList || ""], "price-row flex w-full justify-between"])
|
|
2569
2590
|
}, [
|
|
2570
|
-
l("div",
|
|
2571
|
-
|
|
2572
|
-
y.subLabel ? (a(), c("span",
|
|
2591
|
+
l("div", Yi, [
|
|
2592
|
+
I(u(y.label.capitalize()) + " ", 1),
|
|
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,
|
|
2575
2596
|
class: "pricing-action",
|
|
@@ -2588,16 +2609,16 @@ function Ji(e, t, n, o, s, i) {
|
|
|
2588
2609
|
l("path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
|
|
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
|
-
]), 8,
|
|
2592
|
-
[
|
|
2612
|
+
]), 8, Ji)), [
|
|
2613
|
+
[h, e.$t("edit", { thing: e.$t("deduction.deduction") })]
|
|
2593
2614
|
]) : b("", !0)
|
|
2594
2615
|
]),
|
|
2595
|
-
l("div",
|
|
2616
|
+
l("div", Qi, u(y.prefix) + " " + u(y.value), 1)
|
|
2596
2617
|
], 2))), 128))
|
|
2597
2618
|
])
|
|
2598
2619
|
]);
|
|
2599
2620
|
}
|
|
2600
|
-
const
|
|
2621
|
+
const en = /* @__PURE__ */ D(Hi, [["render", Xi], ["__scopeId", "data-v-90384cd6"]]), tn = {
|
|
2601
2622
|
name: "PackageItemEdit",
|
|
2602
2623
|
i18nOptions: {
|
|
2603
2624
|
namespaces: "PackageItemEdit",
|
|
@@ -2626,12 +2647,12 @@ const Qi = /* @__PURE__ */ M(Fi, [["render", Ji], ["__scopeId", "data-v-90384cd6
|
|
|
2626
2647
|
},
|
|
2627
2648
|
components: {
|
|
2628
2649
|
ArticleList: Ai,
|
|
2629
|
-
PriceFormAlternatives:
|
|
2650
|
+
PriceFormAlternatives: Mi,
|
|
2630
2651
|
MaxTotalInput: Vi,
|
|
2631
|
-
Pricing:
|
|
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",
|
|
@@ -2644,7 +2665,7 @@ const Qi = /* @__PURE__ */ M(Fi, [["render", Ji], ["__scopeId", "data-v-90384cd6
|
|
|
2644
2665
|
"remove-package"
|
|
2645
2666
|
],
|
|
2646
2667
|
mixins: [
|
|
2647
|
-
|
|
2668
|
+
q([
|
|
2648
2669
|
"isSelectedDefault",
|
|
2649
2670
|
"isSelected",
|
|
2650
2671
|
"name",
|
|
@@ -2786,73 +2807,73 @@ const Qi = /* @__PURE__ */ M(Fi, [["render", Ji], ["__scopeId", "data-v-90384cd6
|
|
|
2786
2807
|
});
|
|
2787
2808
|
}
|
|
2788
2809
|
}
|
|
2789
|
-
},
|
|
2790
|
-
function
|
|
2791
|
-
const f =
|
|
2792
|
-
return a(), c("div",
|
|
2793
|
-
l("div",
|
|
2794
|
-
l("div", null,
|
|
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" };
|
|
2811
|
+
function cn(e, t, n, o, s, i) {
|
|
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");
|
|
2813
|
+
return a(), c("div", nn, [
|
|
2814
|
+
l("div", sn, [
|
|
2815
|
+
l("div", null, u(n.type === "single" ? e.$t("single") : n.type === "radio" || n.toggable ? e.$t("option") : e.$t("base")), 1),
|
|
2795
2816
|
n.type !== "single" ? (a(), A(y, {
|
|
2796
2817
|
key: 0,
|
|
2797
2818
|
class: "ml-4"
|
|
2798
2819
|
}, {
|
|
2799
|
-
trigger:
|
|
2800
|
-
|
|
2820
|
+
trigger: g(() => [
|
|
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
|
-
|
|
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
|
-
|
|
2846
|
+
p(h, { separator: "" })
|
|
2826
2847
|
], 64)) : b("", !0),
|
|
2827
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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"])
|
|
@@ -2860,46 +2881,46 @@ function rn(e, t, n, o, s, i) {
|
|
|
2860
2881
|
_: 1
|
|
2861
2882
|
})) : b("", !0)
|
|
2862
2883
|
]),
|
|
2863
|
-
l("div",
|
|
2864
|
-
l("div",
|
|
2884
|
+
l("div", an, [
|
|
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((
|
|
2871
|
-
}, null, 40,
|
|
2891
|
+
onKeyup: t[4] || (t[4] = j((_) => e.$refs.editor.focus(), ["enter"]))
|
|
2892
|
+
}, null, 40, rn), [
|
|
2872
2893
|
[Ye, e.name]
|
|
2873
2894
|
])
|
|
2874
2895
|
]),
|
|
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"
|
|
2894
2915
|
}, null, 8, ["modelValue", "currency", "vat-type"])) : b("", !0),
|
|
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($, {
|
|
2903
2924
|
ref: "articleList",
|
|
2904
2925
|
_document: e._document,
|
|
2905
2926
|
articles: i.mappedPackageArticles,
|
|
@@ -2907,32 +2928,32 @@ function rn(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
|
-
l("div",
|
|
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",
|
|
2925
2946
|
size: "16",
|
|
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",
|
|
2937
2958
|
size: "16",
|
|
2938
2959
|
"stroke-width": "2.5"
|
|
@@ -2944,11 +2965,11 @@ function rn(e, t, n, o, s, i) {
|
|
|
2944
2965
|
}]
|
|
2945
2966
|
])
|
|
2946
2967
|
]),
|
|
2947
|
-
|
|
2968
|
+
p(T, {
|
|
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
|
[
|
|
@@ -2961,12 +2982,12 @@ function rn(e, t, n, o, s, i) {
|
|
|
2961
2982
|
])
|
|
2962
2983
|
]);
|
|
2963
2984
|
}
|
|
2964
|
-
const
|
|
2985
|
+
const dn = /* @__PURE__ */ D(tn, [["render", cn], ["__scopeId", "data-v-64642fe7"]]), un = (e) => (e || []).slice(0, 1).map((t) => ({
|
|
2965
2986
|
...t,
|
|
2966
2987
|
isSelected: !0,
|
|
2967
2988
|
isSelectedDefault: !0,
|
|
2968
2989
|
toggable: !1
|
|
2969
|
-
})),
|
|
2990
|
+
})), pn = (e) => {
|
|
2970
2991
|
const t = x(e, "0.data.prices.type") || "fixed";
|
|
2971
2992
|
return (e || []).map((n, o) => ({
|
|
2972
2993
|
...n,
|
|
@@ -2984,7 +3005,7 @@ const ln = /* @__PURE__ */ M(Xi, [["render", rn], ["__scopeId", "data-v-64642fe7
|
|
|
2984
3005
|
}
|
|
2985
3006
|
}
|
|
2986
3007
|
}));
|
|
2987
|
-
},
|
|
3008
|
+
}, mn = (e = []) => {
|
|
2988
3009
|
let t = !1;
|
|
2989
3010
|
return e.map((n) => {
|
|
2990
3011
|
const o = {
|
|
@@ -2999,13 +3020,13 @@ const ln = /* @__PURE__ */ M(Xi, [["render", rn], ["__scopeId", "data-v-64642fe7
|
|
|
2999
3020
|
return (o.isSelected || o.isSelectedDefault) && (t = !0), o;
|
|
3000
3021
|
}, []);
|
|
3001
3022
|
};
|
|
3002
|
-
function
|
|
3003
|
-
if (e === "single") return
|
|
3004
|
-
if (e === "checkbox") return
|
|
3005
|
-
if (e === "radio") return
|
|
3023
|
+
function hn(e, ...t) {
|
|
3024
|
+
if (e === "single") return un(...t);
|
|
3025
|
+
if (e === "checkbox") return pn(...t);
|
|
3026
|
+
if (e === "radio") return mn(...t);
|
|
3006
3027
|
throw new Error(`Package filter type '${e}' is not implemented`);
|
|
3007
3028
|
}
|
|
3008
|
-
const
|
|
3029
|
+
const gn = {
|
|
3009
3030
|
name: "PackageGroupEdit",
|
|
3010
3031
|
i18nOptions: {
|
|
3011
3032
|
namespaces: "PackageGroupEdit",
|
|
@@ -3044,14 +3065,14 @@ const mn = {
|
|
|
3044
3065
|
},
|
|
3045
3066
|
components: {
|
|
3046
3067
|
ErrorCallout: me,
|
|
3047
|
-
PackageItem:
|
|
3068
|
+
PackageItem: dn,
|
|
3048
3069
|
PackageGroupSelect: kt,
|
|
3049
|
-
CCallout:
|
|
3050
|
-
CDropdown:
|
|
3051
|
-
CDropdownItem:
|
|
3070
|
+
CCallout: $e,
|
|
3071
|
+
CDropdown: Z,
|
|
3072
|
+
CDropdownItem: Y
|
|
3052
3073
|
},
|
|
3053
3074
|
mixins: [
|
|
3054
|
-
|
|
3075
|
+
q([
|
|
3055
3076
|
"type",
|
|
3056
3077
|
// 'title',
|
|
3057
3078
|
"packages",
|
|
@@ -3121,7 +3142,7 @@ const mn = {
|
|
|
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", {
|
|
@@ -3155,7 +3176,7 @@ const mn = {
|
|
|
3155
3176
|
if (!this.persistedGroup || !this.persistedGroup.type) return;
|
|
3156
3177
|
let { packages: t, articles: n } = this.persistedGroup;
|
|
3157
3178
|
if (!t.length) return;
|
|
3158
|
-
if (e !== this.persistedGroup.type && (t =
|
|
3179
|
+
if (e !== this.persistedGroup.type && (t = hn(e, t)), e === "single" && n.length) {
|
|
3159
3180
|
const [{ packageId: s }] = t;
|
|
3160
3181
|
n = n.filter((i) => i.packageId === s);
|
|
3161
3182
|
}
|
|
@@ -3244,31 +3265,31 @@ const mn = {
|
|
|
3244
3265
|
this.$emit("input", { key: this._value.packages, value: n });
|
|
3245
3266
|
}
|
|
3246
3267
|
}
|
|
3247
|
-
},
|
|
3268
|
+
}, vn = { class: "package-group-root font-inter" }, fn = { key: 0 }, yn = { style: { position: "absolute", right: "0", top: "-10px", transform: "translateY(-100%)", "z-index": "2" } }, kn = { class: "pb-4" }, bn = {
|
|
3248
3269
|
key: 2,
|
|
3249
3270
|
style: { width: "calc(5 * var(--rem))", height: "1px", "margin-left": "calc(50% - calc(2.5 * var(--rem)))", "border-top": "2px dashed hsl(0, 0%, 85%)" }
|
|
3250
|
-
},
|
|
3271
|
+
}, wn = {
|
|
3251
3272
|
key: 4,
|
|
3252
3273
|
class: "flex w-full flex-col items-center justify-center"
|
|
3253
|
-
},
|
|
3274
|
+
}, In = { style: { width: "100%" } }, _n = {
|
|
3254
3275
|
key: 0,
|
|
3255
3276
|
class: "package-placeholder bg-gray-100",
|
|
3256
3277
|
style: { color: "hsl(0, 0%, 24%)", "font-weight": "500" }
|
|
3257
|
-
},
|
|
3278
|
+
}, $n = {
|
|
3258
3279
|
style: { "vertical-align": "text-bottom", "margin-right": "3px" },
|
|
3259
3280
|
width: "16",
|
|
3260
3281
|
height: "16",
|
|
3261
3282
|
viewBox: "0 0 18 14",
|
|
3262
3283
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3263
|
-
},
|
|
3264
|
-
function
|
|
3265
|
-
const f =
|
|
3266
|
-
return a(), c("div",
|
|
3284
|
+
}, Tn = { class: "flex w-full" };
|
|
3285
|
+
function An(e, t, n, o, s, i) {
|
|
3286
|
+
const f = v("PackageGroupSelect"), h = v("ErrorCallout"), y = v("CButton"), d = v("CDropdownItem"), k = v("CDropdown"), w = v("CCallout"), $ = v("PackageItem");
|
|
3287
|
+
return a(), c("div", vn, [
|
|
3267
3288
|
e.type ? (a(), c(C, { key: 1 }, [
|
|
3268
|
-
l("div",
|
|
3269
|
-
|
|
3270
|
-
trigger:
|
|
3271
|
-
|
|
3289
|
+
l("div", yn, [
|
|
3290
|
+
p(k, null, {
|
|
3291
|
+
trigger: g(() => [
|
|
3292
|
+
p(y, {
|
|
3272
3293
|
type: "none",
|
|
3273
3294
|
size: "normal",
|
|
3274
3295
|
pattern: "secondary",
|
|
@@ -3276,23 +3297,23 @@ function _n(e, t, n, o, s, i) {
|
|
|
3276
3297
|
circle: ""
|
|
3277
3298
|
})
|
|
3278
3299
|
]),
|
|
3279
|
-
default:
|
|
3280
|
-
|
|
3281
|
-
default:
|
|
3282
|
-
|
|
3300
|
+
default: g(() => [
|
|
3301
|
+
p(d, { onClick: i.onResetType }, {
|
|
3302
|
+
default: g(() => [
|
|
3303
|
+
I(u(e.$t("_common:change", {
|
|
3283
3304
|
thing: e.$t("_common:price.proposal").toLowerCase()
|
|
3284
3305
|
})), 1)
|
|
3285
3306
|
]),
|
|
3286
3307
|
_: 1
|
|
3287
3308
|
}, 8, ["onClick"]),
|
|
3288
|
-
|
|
3309
|
+
p(d, {
|
|
3289
3310
|
value: !!e.hideGroupPrice,
|
|
3290
3311
|
"close-on-click": !1,
|
|
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,9 +3326,9 @@ function _n(e, t, n, o, s, i) {
|
|
|
3305
3326
|
title: e.$t("base"),
|
|
3306
3327
|
class: "w-full"
|
|
3307
3328
|
}, {
|
|
3308
|
-
default:
|
|
3309
|
-
l("div",
|
|
3310
|
-
|
|
3329
|
+
default: g(() => [
|
|
3330
|
+
l("div", kn, u(e.$t("basePlaceholder")), 1),
|
|
3331
|
+
p(y, {
|
|
3311
3332
|
type: "secondary",
|
|
3312
3333
|
size: "small",
|
|
3313
3334
|
style: { "font-weight": "600" },
|
|
@@ -3317,8 +3338,8 @@ function _n(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,12 +3350,12 @@ function _n(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"
|
|
3336
3357
|
}, [
|
|
3337
|
-
|
|
3358
|
+
p($, {
|
|
3338
3359
|
_document: e._document,
|
|
3339
3360
|
_value: {
|
|
3340
3361
|
isSelectedDefault: `${e._value.packages}[${m.index}].isSelectedDefault`,
|
|
@@ -3370,20 +3391,20 @@ function _n(e, t, n, o, s, i) {
|
|
|
3370
3391
|
]),
|
|
3371
3392
|
_: 1
|
|
3372
3393
|
})),
|
|
3373
|
-
e.type === "checkbox" && i.topRowPackages.length && i.bottomRowPackages.length ? (a(), c("div",
|
|
3394
|
+
e.type === "checkbox" && i.topRowPackages.length && i.bottomRowPackages.length ? (a(), c("div", bn)) : b("", !0),
|
|
3374
3395
|
e.type === "checkbox" ? (a(), A(re, {
|
|
3375
3396
|
key: 3,
|
|
3376
3397
|
name: "section-list",
|
|
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",
|
|
3384
3405
|
style: { padding: "calc(1 * var(--rem)) 0" }
|
|
3385
3406
|
}, [
|
|
3386
|
-
|
|
3407
|
+
p($, {
|
|
3387
3408
|
_document: e._document,
|
|
3388
3409
|
_value: {
|
|
3389
3410
|
isSelectedDefault: `${e._value.packages}[${m.index}].isSelectedDefault`,
|
|
@@ -3418,44 +3439,44 @@ function _n(e, t, n, o, s, i) {
|
|
|
3418
3439
|
]),
|
|
3419
3440
|
_: 1
|
|
3420
3441
|
})) : b("", !0),
|
|
3421
|
-
e.type !== "single" || !e.packages.length ? (a(), c("div",
|
|
3422
|
-
l("div",
|
|
3423
|
-
e.type === "radio" && !e.packages.length ? (a(), c("div",
|
|
3424
|
-
(a(), c("svg",
|
|
3442
|
+
e.type !== "single" || !e.packages.length ? (a(), c("div", wn, [
|
|
3443
|
+
l("div", In, [
|
|
3444
|
+
e.type === "radio" && !e.packages.length ? (a(), c("div", _n, [
|
|
3445
|
+
(a(), c("svg", $n, t[13] || (t[13] = [
|
|
3425
3446
|
l("path", {
|
|
3426
3447
|
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
3448
|
fill: "#000",
|
|
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" }
|
|
3438
3459
|
}, null, 8, ["message"])) : b("", !0),
|
|
3439
|
-
l("div",
|
|
3440
|
-
|
|
3460
|
+
l("div", Tn, [
|
|
3461
|
+
p(y, {
|
|
3441
3462
|
type: "secondary",
|
|
3442
3463
|
outlined: "",
|
|
3443
3464
|
"icon-left": "plus",
|
|
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
|
})
|
|
3452
3473
|
])
|
|
3453
3474
|
])) : b("", !0)
|
|
3454
|
-
], 64)) : (a(), c("div",
|
|
3455
|
-
|
|
3475
|
+
], 64)) : (a(), c("div", fn, [
|
|
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))" }
|
|
@@ -3463,7 +3484,7 @@ function _n(e, t, n, o, s, i) {
|
|
|
3463
3484
|
]))
|
|
3464
3485
|
]);
|
|
3465
3486
|
}
|
|
3466
|
-
const
|
|
3487
|
+
const zn = /* @__PURE__ */ D(gn, [["render", An], ["__scopeId", "data-v-03549668"]]);
|
|
3467
3488
|
export {
|
|
3468
|
-
|
|
3489
|
+
zn as default
|
|
3469
3490
|
};
|