@cling-se/widget 0.19.6 → 0.19.8
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 +15 -1
- package/dist/{AddClientCallout-DtVRTCr_.js → AddClientCallout-sPxYX5tQ.js} +18 -18
- package/dist/{AnswerModal-ClyWtHBj.js → AnswerModal-o8OHHulg.js} +80 -80
- package/dist/{AttachmentItem-COoLlAum.js → AttachmentItem-CzzOlHB-.js} +16 -16
- package/dist/{BaseUpload-DlaYaxxr.js → BaseUpload-oZQfFwOj.js} +256 -256
- package/dist/{BlockMedia-IMu4YO3J.js → BlockMedia-BGPxfM2X.js} +16 -16
- package/dist/{CCallout-C32zwICP.js → CCallout-CrbMGTIj.js} +15 -15
- package/dist/{CCurrencyDropdown-D4ZxTioo.js → CCurrencyDropdown-BnNDP51j.js} +13 -13
- package/dist/{CDropdownItem-BuQONogL.js → CDropdownItem-E-kRDIiy.js} +6 -6
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-KdkAe_wn.js → CFormField.vue_vue_type_script_setup_true_lang-Bi0MjQdW.js} +25 -25
- package/dist/{CPhoneFormat-C2K78cmZ.js → CPhoneFormat-CIQAVdsB.js} +1 -1
- package/dist/{CPhoneInput-DolVFzrL.js → CPhoneInput-9AwTJm-0.js} +21 -21
- package/dist/{CPriceInput-SbRlrDnD.js → CPriceInput-agFahtr1.js} +11 -11
- package/dist/CSelect-BpautzPq.js +129 -0
- package/dist/CSkeleton-GIqd-JU4.js +47 -0
- package/dist/{ClientAutocomplete-vgxEGqNU.js → ClientAutocomplete-DOHX9Igy.js} +26 -26
- package/dist/{ClientModal-B8ip7v99.js → ClientModal-DAXKN_b3.js} +35 -35
- package/dist/{ColorPicker-BrfM9S1s.js → ColorPicker-B9F8znY_.js} +82 -82
- package/dist/{CompanyModal-DJZezqM5.js → CompanyModal-BvIMVys6.js} +27 -27
- package/dist/{ContentWrapper-zJ4MCnSC.js → ContentWrapper-DB22RaUr.js} +24 -24
- package/dist/{CoverBlockSettings-Cz0NUYXX.js → CoverBlockSettings--l4fH9mr.js} +32 -32
- package/dist/{DocAnswer-EWarWnbt.js → DocAnswer-Bq-4uVbe.js} +4 -4
- package/dist/{DocDetails-CGHN3tbO.js → DocDetails-yxmchgO5.js} +59 -59
- package/dist/{DocForm-BLTap-Bb.js → DocForm-CzrR8o22.js} +1208 -1180
- package/dist/{DocFormSend-_jCPFI9r.js → DocFormSend-Bjc1QDcK.js} +11 -11
- package/dist/{DocLinks-D9Ok4HvN.js → DocLinks-BXbC-6v3.js} +6 -6
- package/dist/{DocModalBase-fQz5UuCF.js → DocModalBase-axX_Rlp3.js} +1 -1
- package/dist/{DocPrint-Cua_U7zt.js → DocPrint-D0IdWsUM.js} +19 -19
- package/dist/{DocReceipt-Cg2hiSby.js → DocReceipt-4e-RmgeQ.js} +19 -19
- package/dist/{DocSendReminder-Dh7G9kbZ.js → DocSendReminder-L35eZxgk.js} +12 -12
- package/dist/{DocTextEditor-Ds4Cbg-2.js → DocTextEditor-KrfylSV6.js} +4493 -4435
- package/dist/{DocTimeline-DpWUMwJE.js → DocTimeline-Be5CvtcQ.js} +18 -18
- package/dist/{DocumentClient-DUqHQVSe.js → DocumentClient-Bc4kf2q9.js} +10 -10
- package/dist/DocumentLayout-Oe-ZsHML.js +595 -0
- package/dist/{DocumentLogotype-BiekV9-j.js → DocumentLogotype-BFo5UEWS.js} +20 -20
- package/dist/{DocumentVoided-D_YMyeV8.js → DocumentVoided-DlQtlO7G.js} +7 -7
- package/dist/{EmbedInput-Crx-LEGc.js → EmbedInput-B29usQZZ.js} +10 -10
- package/dist/{EmbedSettings-xIGtEN7L.js → EmbedSettings-D-9rcSn0.js} +16 -16
- package/dist/{ErrorCallout-D_fUVD4I.js → ErrorCallout--EnH1Ezu.js} +9 -9
- package/dist/{FilePreviewModal-av2lE91B.js → FilePreviewModal-H5Ilg9xN.js} +9 -9
- package/dist/{Flag-CI52SH_9.js → Flag-DgZVh3Lf.js} +4 -4
- package/dist/{HeaderSettings-Ip634NWe.js → HeaderSettings-HuM_JwJw.js} +27 -27
- package/dist/{ImageSelectModal-DNtR86H7.js → ImageSelectModal-CJ-DstAf.js} +14 -14
- package/dist/{ImageUploadWrapper-Co43CWCP.js → ImageUploadWrapper-TYs37LIQ.js} +76 -76
- package/dist/{Index-C6KPbnAq.js → Index-6N_iRlrQ.js} +10 -10
- package/dist/{Index-bvCcp9l6.js → Index-B-PDcQKh.js} +34 -34
- package/dist/{Index-CTQyX_63.js → Index-B942Auag.js} +2 -2
- package/dist/{Index-4ZURK6a8.js → Index-BLdFyt-s.js} +12 -12
- package/dist/{Index-CZqJYh7u.js → Index-BMpHXgR4.js} +16 -16
- package/dist/{Index-DGwF2cvQ.js → Index-BZ6ZDf9T.js} +11 -11
- package/dist/{Index-Ci_PUYqE.js → Index-BdnFLjgV.js} +11 -11
- package/dist/{Index-BdW5_mV-.js → Index-BeOtRIzZ.js} +21 -21
- package/dist/Index-BsRxY7vc.js +21 -0
- package/dist/{Index-xVX7aGXv.js → Index-CAMAtPVL.js} +6 -6
- package/dist/{Index-uDG1i8F-.js → Index-CC4E2CmH.js} +11 -11
- package/dist/{Index-CJi8Remu.js → Index-CGus-YwW.js} +26 -26
- package/dist/{Index-C-Suk6Qs.js → Index-CLgN5Jzf.js} +3 -3
- package/dist/{Index-C92jPUcy.js → Index-CTlB43yV.js} +7 -7
- package/dist/{Index-CmLvcWe3.js → Index-CY2sRfaY.js} +194 -218
- package/dist/{Index-PzcQhAgF.js → Index-CnrSvy6E.js} +2 -2
- package/dist/{Index-Bgm5PHos.js → Index-CrdSdXWN.js} +18 -18
- package/dist/{Index-Bj81gIof.js → Index-CtJfMiZW.js} +2 -2
- package/dist/Index-D4HNTocO.js +4 -0
- package/dist/{Index-chiZsMLh.js → Index-D5_GLLQH.js} +507 -512
- package/dist/{Index-DOiPKAhk.js → Index-D9sceHk5.js} +17 -17
- package/dist/{Index-CV5RbQn5.js → Index-DJ11Zra_.js} +42 -42
- package/dist/{Index-DQbbxV0m.js → Index-DMIjuWSa.js} +9 -9
- package/dist/{Index-BMwBpYpa.js → Index-DTm59e-A.js} +11 -11
- package/dist/{Index-CxAd29-m.js → Index-DXT_IMjq.js} +8 -8
- package/dist/{Index-BF1bZUso.js → Index-DYUvtCff.js} +8 -8
- package/dist/{Index-DKuTOk0t.js → Index-DYW8T0Hl.js} +18 -18
- package/dist/{Index-DWIpdRX-.js → Index-Dg4dwlh_.js} +59 -58
- package/dist/{Index-DOCeODtL.js → Index-N88Abomf.js} +11 -11
- package/dist/{Index-BY2kaUsM.js → Index-W-Q19E3a.js} +7 -7
- package/dist/{Index-DwIfORsz.js → Index-edWEg_rF.js} +29 -29
- package/dist/{Index-DlGSVN83.js → Index-nRqNPZ3B.js} +18 -18
- package/dist/{Index-CeJRMtmh.js → Index-nTp9wEni.js} +7 -7
- package/dist/{Index-D_X2OZA3.js → Index-yJRtT77X.js} +2 -2
- package/dist/{Index.vue_vue_type_script_lang-WK-YdZ30.js → Index.vue_vue_type_script_lang-PJPQMT2c.js} +2 -2
- package/dist/{InputToggleRow-CWvEi0HF.js → InputToggleRow-DCr_DEm4.js} +9 -9
- package/dist/{ManualPopover-BSX3bOr0.js → ManualPopover-CpVsmQvn.js} +4 -4
- package/dist/{MediaWrapper-D8BXMoDz.js → MediaWrapper-Cj3LBhdR.js} +4 -4
- package/dist/{NotBindingText-V-8_5Pln.js → NotBindingText-1J0p_k4u.js} +5 -5
- package/dist/{PackageGroup-BN5njJA7.js → PackageGroup-CqrWEfCT.js} +17 -17
- package/dist/{PdfTerms-DarzYw1g.js → PdfTerms-DmrPDtae.js} +6 -6
- package/dist/{PdfViewer-DYN758PA.js → PdfViewer-C2EEwUBa.js} +37 -37
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-B3g18l5G.js → PlainHtml.vue_vue_type_script_setup_true_lang-B6pRo08V.js} +2 -2
- package/dist/{PriceHeader-B7QoQ2ZO.js → PriceHeader-BaREzUxI.js} +32 -32
- package/dist/{SearchApi-rcvoh3Av.js → SearchApi-Bf4jeQVr.js} +6 -6
- package/dist/{SendForm-DHRq76pb.js → SendForm-D5qpHxNU.js} +713 -711
- package/dist/{Setup-BWMY9S__.js → Setup-Bw8ViFxw.js} +4 -4
- package/dist/{SmartList-BpNfmUMA.js → SmartList-CzylvV8N.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-B_f6Nh_O.js → Sortable.vue_vue_type_script_setup_true_lang-DleoAiSK.js} +92 -92
- package/dist/{TermsSettings-BTv1dj63.js → TermsSettings-EoJvsPqK.js} +20 -20
- package/dist/{ThemeColorRow-r1ECSrBU.js → ThemeColorRow-D3blQMiD.js} +12 -12
- package/dist/{ToggleBinding-BBF1duBh.js → ToggleBinding-BteBsRYr.js} +7 -7
- package/dist/{UploadModal-B_l6gvuJ.js → UploadModal-Cr5sF3M-.js} +19 -19
- package/dist/{VideoPlayerInput-8e9ooR1p.js → VideoPlayerInput-BBycKv9w.js} +5 -5
- package/dist/{VideoPlayerSettings-CFOPAFlE.js → VideoPlayerSettings-BXXpTWBf.js} +12 -12
- package/dist/{VideoSelectModal-QWkNrFQC.js → VideoSelectModal-B2VPO6q4.js} +15 -15
- package/dist/{focusDrawerMixin-hy76kTBG.js → focusDrawerMixin-CCAEZjWO.js} +1 -1
- package/dist/{formDrawerState-s4ySD850.js → formDrawerState-CJyP4ce1.js} +1 -1
- package/dist/{helpers-BHIbXt8q.js → helpers-Cf9s0P7o.js} +3 -3
- package/dist/{index-Dbe2ueXc.js → index-C3pnyYI4.js} +90 -90
- package/dist/{index-CGXCI2G7.js → index-CBn1mHmK.js} +36 -36
- package/dist/{index-BTw8ZC8k.js → index-DAJmNac8.js} +6 -6
- package/dist/{index-DpubWmXg.js → index-DYJN9yoF.js} +37 -37
- package/dist/{index-ByEyJueq.js → index-DuXECcGq.js} +31 -31
- package/dist/{index-Cwf2aXw3.js → index-XzoHqJIR.js} +9 -9
- package/dist/{index-DjHfCViH.js → index-_MfZEYgE.js} +28 -27
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +154 -159
- package/dist/{main-WDVYC60Z.js → main-BayUZ9OO.js} +14904 -14950
- package/dist/{mapFormMixin-B8xN9LiX.js → mapFormMixin-Bx5_nE7g.js} +36 -42
- package/dist/omit-BKJdPM2H.js +56 -0
- package/dist/{publicSenderState-CtB0-WJX.js → publicSenderState-CblTasKp.js} +3 -3
- package/dist/{splitpanes-CwgWVXfp.js → splitpanes-DFkgBT3z.js} +6 -6
- package/dist/{template-fVxhQbOu.js → template-CvGgzazD.js} +5 -5
- package/dist/{tippy.esm-Ikv5_i_g.js → tippy.esm-CYKcJaqz.js} +222 -224
- package/dist/{useTermsModal-DxXjznop.js → useTermsModal-DFmdeFRm.js} +5 -5
- package/dist/{utils-fXD4AHot.js → utils-DTwXcY8_.js} +1 -1
- package/dist/{validation-Bf4rZ8pa.js → validation-d_jonAPy.js} +4 -4
- package/dist/widget.css +1 -1
- package/package.json +2 -2
- package/dist/CSelect-BQsWYh8F.js +0 -98
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-aq47QhPF.js +0 -51
- package/dist/DocumentLayout-Bth5tpry.js +0 -1434
- package/dist/Index-CFSuI-QL.js +0 -21
- package/dist/Index-DHzaqQH0.js +0 -4
- package/dist/omit-BhJ-wiH8.js +0 -56
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { m as
|
|
2
|
-
import { C as _e } from "./CCallout-
|
|
3
|
-
import { C as K, a as Y, w as
|
|
4
|
-
import { E as
|
|
5
|
-
import {
|
|
6
|
-
import { u as
|
|
7
|
-
import { T as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { o as
|
|
10
|
-
import { C as Z } from "./CPriceInput-
|
|
11
|
-
import { u as
|
|
12
|
-
import { S as tt } from "./SearchApi-
|
|
13
|
-
import {
|
|
14
|
-
import { _ as
|
|
1
|
+
import { m as F } from "./mapFormMixin-Bx5_nE7g.js";
|
|
2
|
+
import { C as _e } from "./CCallout-CrbMGTIj.js";
|
|
3
|
+
import { C as K, a as Y, w as Te } from "./CDropdownItem-E-kRDIiy.js";
|
|
4
|
+
import { E as me } from "./ErrorCallout--EnH1Ezu.js";
|
|
5
|
+
import { c3 as Ae, c4 as he, c5 as Ce, c6 as Pe, c7 as xe, c8 as Ve, c9 as Se, aJ as Me, _ as M, b as g, d as c, o as a, j as l, t as p, x as V, F as C, n as S, W as J, e as b, f as u, s as N, m as z, a as E, g as L, w as h, R as B, ah as j, T as ie, am as H, ca as De, cb as ne, aE as Re, a8 as se, bh as W, aC as Le, cc as Oe, bj as Ee, a4 as U, c as A, u as R, q as $, cd as Ue, ce as Be, b$ as ge, v as We, cf as ve, $ as ze, ae as x, ak as je, aG as q, V as qe, a2 as oe, bY as Fe, ab as Ne, cg as He, ad as Ge, af as Ke, c2 as Ye, ch as re, aD as Ze } from "./main-BayUZ9OO.js";
|
|
6
|
+
import { u as Je } from "./DocumentLayout-Oe-ZsHML.js";
|
|
7
|
+
import { T as Qe } from "./DocTextEditor-KrfylSV6.js";
|
|
8
|
+
import { _ as Xe, m as et } from "./Sortable.vue_vue_type_script_setup_true_lang-DleoAiSK.js";
|
|
9
|
+
import { o as fe } from "./omit-BKJdPM2H.js";
|
|
10
|
+
import { C as Z } from "./CPriceInput-agFahtr1.js";
|
|
11
|
+
import { u as ye } from "./index-C3pnyYI4.js";
|
|
12
|
+
import { S as tt } from "./SearchApi-Bf4jeQVr.js";
|
|
13
|
+
import { m as it } from "./index-XzoHqJIR.js";
|
|
14
|
+
import { _ as ke } from "./CFormField.vue_vue_type_script_setup_true_lang-Bi0MjQdW.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 Q, le;
|
|
33
33
|
function st() {
|
|
34
|
-
if (
|
|
35
|
-
|
|
34
|
+
if (le) return Q;
|
|
35
|
+
le = 1;
|
|
36
36
|
function e() {
|
|
37
37
|
}
|
|
38
|
-
return
|
|
38
|
+
return Q = e, Q;
|
|
39
39
|
}
|
|
40
|
-
var
|
|
40
|
+
var X, ce;
|
|
41
41
|
function at() {
|
|
42
|
-
if (
|
|
43
|
-
|
|
44
|
-
var e =
|
|
42
|
+
if (ce) return X;
|
|
43
|
+
ce = 1;
|
|
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 X = s, X;
|
|
48
48
|
}
|
|
49
|
-
var ee,
|
|
49
|
+
var ee, de;
|
|
50
50
|
function ot() {
|
|
51
|
-
if (
|
|
52
|
-
|
|
53
|
-
var e =
|
|
54
|
-
function v(y,
|
|
55
|
-
var
|
|
56
|
-
if (
|
|
57
|
-
|
|
58
|
-
else if (
|
|
59
|
-
var
|
|
60
|
-
if (
|
|
61
|
-
return i(
|
|
62
|
-
|
|
51
|
+
if (de) return ee;
|
|
52
|
+
de = 1;
|
|
53
|
+
var e = Ce(), t = Pe(), n = Ve(), o = xe(), s = at(), i = he(), f = 200;
|
|
54
|
+
function v(y, d, k) {
|
|
55
|
+
var w = -1, _ = t, m = y.length, T = !0, r = [], P = r;
|
|
56
|
+
if (k)
|
|
57
|
+
T = !1, _ = n;
|
|
58
|
+
else if (m >= f) {
|
|
59
|
+
var I = d ? null : s(y);
|
|
60
|
+
if (I)
|
|
61
|
+
return i(I);
|
|
62
|
+
T = !1, _ = o, P = new e();
|
|
63
63
|
} else
|
|
64
|
-
P =
|
|
64
|
+
P = d ? [] : r;
|
|
65
65
|
e:
|
|
66
|
-
for (; ++
|
|
67
|
-
var
|
|
68
|
-
if (
|
|
66
|
+
for (; ++w < m; ) {
|
|
67
|
+
var D = y[w], O = d ? d(D) : D;
|
|
68
|
+
if (D = k || D !== 0 ? D : 0, T && O === O) {
|
|
69
69
|
for (var ae = P.length; ae--; )
|
|
70
70
|
if (P[ae] === O)
|
|
71
71
|
continue e;
|
|
72
|
-
|
|
73
|
-
} else
|
|
72
|
+
d && P.push(O), r.push(D);
|
|
73
|
+
} else _(P, O, k) || (P !== r && P.push(O), r.push(D));
|
|
74
74
|
}
|
|
75
75
|
return r;
|
|
76
76
|
}
|
|
77
77
|
return ee = v, ee;
|
|
78
78
|
}
|
|
79
|
-
var te,
|
|
79
|
+
var te, ue;
|
|
80
80
|
function rt() {
|
|
81
|
-
if (
|
|
82
|
-
|
|
83
|
-
var e =
|
|
81
|
+
if (ue) return te;
|
|
82
|
+
ue = 1;
|
|
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
87
|
return te = n, te;
|
|
88
88
|
}
|
|
89
89
|
var lt = rt();
|
|
90
|
-
const ct = /* @__PURE__ */
|
|
90
|
+
const ct = /* @__PURE__ */ Me(lt), dt = {
|
|
91
91
|
name: "PackageGroupSelect",
|
|
92
92
|
i18nOptions: {
|
|
93
93
|
namespaces: "PackageGroupSelect",
|
|
@@ -130,7 +130,7 @@ const ct = /* @__PURE__ */ Se(lt), dt = {
|
|
|
130
130
|
},
|
|
131
131
|
emits: ["input"],
|
|
132
132
|
setup() {
|
|
133
|
-
return { docWidth:
|
|
133
|
+
return { docWidth: Je() };
|
|
134
134
|
},
|
|
135
135
|
data() {
|
|
136
136
|
return {
|
|
@@ -166,16 +166,16 @@ const ct = /* @__PURE__ */ Se(lt), dt = {
|
|
|
166
166
|
function yt(e, t, n, o, s, i) {
|
|
167
167
|
const f = g("CIcon");
|
|
168
168
|
return a(), c("div", ut, [
|
|
169
|
-
l("div", pt,
|
|
169
|
+
l("div", pt, p(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(
|
|
174
|
+
(a(!0), c(C, null, S(s.options, (v, y) => (a(), c("div", {
|
|
175
175
|
key: y,
|
|
176
176
|
style: J({ backgroundColor: v.background }),
|
|
177
177
|
class: "package-group-option",
|
|
178
|
-
onClick: (
|
|
178
|
+
onClick: (d) => e.$emit("input", v.value)
|
|
179
179
|
}, [
|
|
180
180
|
l("div", ht, [
|
|
181
181
|
v.value === "single" ? (a(), c("div", gt, t[0] || (t[0] = [
|
|
@@ -190,15 +190,15 @@ function yt(e, t, n, o, s, i) {
|
|
|
190
190
|
})
|
|
191
191
|
], -1)
|
|
192
192
|
]))) : b("", !0),
|
|
193
|
-
v.value === "radio" ? (a(), c(
|
|
194
|
-
key:
|
|
195
|
-
class: V([{ animate:
|
|
193
|
+
v.value === "radio" ? (a(), c(C, { key: 1 }, S(3, (d) => l("div", {
|
|
194
|
+
key: d,
|
|
195
|
+
class: V([{ animate: d === 2 }, "package-group-option__illustration-card"])
|
|
196
196
|
}, [
|
|
197
197
|
l("div", {
|
|
198
198
|
style: J([
|
|
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
202
|
boxShadow: `0 0 0 1px white, 0 0 0 2px ${v.background}`,
|
|
203
203
|
backgroundColor: v.background
|
|
204
204
|
}
|
|
@@ -215,15 +215,15 @@ function yt(e, t, n, o, s, i) {
|
|
|
215
215
|
})
|
|
216
216
|
], -1))
|
|
217
217
|
], 2)), 64)) : b("", !0),
|
|
218
|
-
v.value === "checkbox" ? (a(), c(
|
|
219
|
-
key:
|
|
220
|
-
class: V([{ animate:
|
|
218
|
+
v.value === "checkbox" ? (a(), c(C, { key: 2 }, S(3, (d) => l("div", {
|
|
219
|
+
key: d,
|
|
220
|
+
class: V([{ animate: d !== 3 }, "package-group-option__illustration-card"])
|
|
221
221
|
}, [
|
|
222
222
|
l("div", {
|
|
223
|
-
style: J([{ 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" },
|
|
223
|
+
style: J([{ 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: v.background }])
|
|
224
224
|
}, [
|
|
225
|
-
|
|
226
|
-
type:
|
|
225
|
+
u(f, {
|
|
226
|
+
type: d !== 3 ? "check" : "empty",
|
|
227
227
|
"stroke-width": "5",
|
|
228
228
|
size: "8"
|
|
229
229
|
}, null, 8, ["type"])
|
|
@@ -241,7 +241,7 @@ 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, p(v.title), 1),
|
|
245
245
|
l("div", {
|
|
246
246
|
class: "package-group-option__subtitle",
|
|
247
247
|
innerHTML: v.subTitle
|
|
@@ -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__ */ M(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: [F([])],
|
|
261
261
|
props: {
|
|
262
262
|
tag: {
|
|
263
263
|
type: String,
|
|
@@ -378,7 +378,7 @@ const kt = /* @__PURE__ */ D(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 = {
|
|
@@ -391,15 +391,15 @@ function Vt(e, t, n, o, s, i) {
|
|
|
391
391
|
class: { "is-open": s.isOpen }
|
|
392
392
|
}, e.$attrs, {
|
|
393
393
|
style: { position: "relative" },
|
|
394
|
-
onKeydownPassive: t[0] || (t[0] = (...
|
|
394
|
+
onKeydownPassive: t[0] || (t[0] = (...d) => i.onKeydown && i.onKeydown(...d))
|
|
395
395
|
}), [
|
|
396
|
-
|
|
396
|
+
u(v, { "custom-search": {
|
|
397
397
|
article: !0,
|
|
398
398
|
extensionArticle: !0,
|
|
399
399
|
project: !1
|
|
400
400
|
} }, {
|
|
401
|
-
default: h(({ fetch:
|
|
402
|
-
|
|
401
|
+
default: h(({ fetch: d }) => [
|
|
402
|
+
u(f, B({
|
|
403
403
|
...e.$attrs,
|
|
404
404
|
...e.$props
|
|
405
405
|
}, {
|
|
@@ -408,11 +408,11 @@ function Vt(e, t, n, o, s, i) {
|
|
|
408
408
|
type: n.tag,
|
|
409
409
|
"auto-resize": !0,
|
|
410
410
|
class: "r-input",
|
|
411
|
-
"onUpdate:modelValue": (
|
|
411
|
+
"onUpdate:modelValue": (k) => i.search(d, k),
|
|
412
412
|
onFocus: i.onFocus,
|
|
413
413
|
onKeydown: [
|
|
414
|
-
|
|
415
|
-
|
|
414
|
+
j(i.hideResults, ["tab"]),
|
|
415
|
+
j(i.hideResults, ["escape"])
|
|
416
416
|
],
|
|
417
417
|
onBlur: i.onBlur
|
|
418
418
|
}), {
|
|
@@ -428,26 +428,26 @@ function Vt(e, t, n, o, s, i) {
|
|
|
428
428
|
_: 3
|
|
429
429
|
}),
|
|
430
430
|
s.isOpen ? (a(), c("div", wt, [
|
|
431
|
-
(a(!0), c(
|
|
432
|
-
key:
|
|
433
|
-
class: V([{ active: s.selectedIndex ===
|
|
434
|
-
onClickCapture: H((
|
|
431
|
+
(a(!0), c(C, null, S(s.searchResults, (d, k) => (a(), c("div", {
|
|
432
|
+
key: k,
|
|
433
|
+
class: V([{ active: s.selectedIndex === k }, "r-item"]),
|
|
434
|
+
onClickCapture: H((w) => i.onSelect(d), ["stop"])
|
|
435
435
|
}, [
|
|
436
|
-
l("div",
|
|
437
|
-
l("div",
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
type:
|
|
436
|
+
l("div", $t, p(d.name), 1),
|
|
437
|
+
l("div", _t, [
|
|
438
|
+
d.externalReference && d.externalReference.service ? (a(), c("div", Tt, [
|
|
439
|
+
u(y, {
|
|
440
|
+
type: d.externalReference.service,
|
|
441
441
|
style: { color: "white" },
|
|
442
442
|
size: "14"
|
|
443
443
|
}, null, 8, ["type"])
|
|
444
444
|
])) : b("", !0),
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
445
|
+
d.article_no ? (a(), c("div", At, p(d.article_no), 1)) : b("", !0),
|
|
446
|
+
d.price ? (a(), c("div", Ct, p(i.priceFormat(d.price, { currency: d.currency })), 1)) : b("", !0),
|
|
447
|
+
d.vat ? (a(), c("div", Pt, p(e.$t("vat.sharedTitle").capitalize()) + " " + p(d.vat) + "% ", 1)) : b("", !0)
|
|
448
448
|
]),
|
|
449
|
-
s.selectedIndex ===
|
|
450
|
-
|
|
449
|
+
s.selectedIndex === k ? (a(), c("div", xt, [
|
|
450
|
+
u(y, {
|
|
451
451
|
type: "corner-down-left",
|
|
452
452
|
size: "16"
|
|
453
453
|
})
|
|
@@ -456,7 +456,7 @@ function Vt(e, t, n, o, s, i) {
|
|
|
456
456
|
], 512)) : b("", !0)
|
|
457
457
|
], 16);
|
|
458
458
|
}
|
|
459
|
-
const
|
|
459
|
+
const be = /* @__PURE__ */ M(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c"]]), pe = {
|
|
460
460
|
isDeductable: !1,
|
|
461
461
|
isRut: !1,
|
|
462
462
|
greenRot15: !1,
|
|
@@ -468,18 +468,18 @@ const ke = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
468
468
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
469
469
|
// Trigger updatedAt as it us used to decide which houseWork to prioritize
|
|
470
470
|
};
|
|
471
|
-
return typeof n < "u" && (o[n] = t), Object.keys(
|
|
471
|
+
return typeof n < "u" && (o[n] = t), Object.keys(pe).includes(n) && t && (o = {
|
|
472
472
|
...o,
|
|
473
|
-
...
|
|
473
|
+
...pe,
|
|
474
474
|
[n]: !0
|
|
475
475
|
}), De(o.quantity) !== "number" && (o.quantity = 0), ne(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 = Re({
|
|
483
483
|
...e,
|
|
484
484
|
quantity: 1,
|
|
485
485
|
showPrice: !n,
|
|
@@ -488,8 +488,8 @@ const ke = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
488
488
|
packageId: t.packageId
|
|
489
489
|
});
|
|
490
490
|
if (o) {
|
|
491
|
-
const i = (y = []) => y.reduce((
|
|
492
|
-
|
|
491
|
+
const i = (y = []) => y.reduce((d, k) => ({ ...d, [k]: !1 }), {}), v = Object.values(
|
|
492
|
+
fe({
|
|
493
493
|
rot: "isDeductable",
|
|
494
494
|
rut: "isRut",
|
|
495
495
|
greenRot15: "greenRot15",
|
|
@@ -504,7 +504,7 @@ const ke = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
504
504
|
const n = se(e.currency, t);
|
|
505
505
|
switch (e.priceType) {
|
|
506
506
|
case "approx":
|
|
507
|
-
return `${
|
|
507
|
+
return `${Le.t("_common:approx")} ${n}`;
|
|
508
508
|
case "openAcc":
|
|
509
509
|
return `${n}/${W(e.unitType)}`;
|
|
510
510
|
case "markup":
|
|
@@ -512,7 +512,7 @@ const ke = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
512
512
|
default:
|
|
513
513
|
return n;
|
|
514
514
|
}
|
|
515
|
-
},
|
|
515
|
+
}, Ie = {
|
|
516
516
|
en: {
|
|
517
517
|
namePlaceholder: "Service or product name",
|
|
518
518
|
openModalTooltip: "Edit amount and unit",
|
|
@@ -557,21 +557,21 @@ const ke = /* @__PURE__ */ D(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
|
+
}, Mt = {
|
|
567
567
|
name: "Article",
|
|
568
568
|
i18nOptions: {
|
|
569
569
|
namespaces: "Article",
|
|
570
|
-
messages:
|
|
570
|
+
messages: Ie
|
|
571
571
|
},
|
|
572
572
|
components: {
|
|
573
|
-
ErrorCallout:
|
|
574
|
-
ArticleAutocomplete:
|
|
573
|
+
ErrorCallout: me,
|
|
574
|
+
ArticleAutocomplete: be,
|
|
575
575
|
CPriceInput: Z
|
|
576
576
|
},
|
|
577
577
|
expose: ["focusName"],
|
|
@@ -619,14 +619,14 @@ const ke = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
619
619
|
emits: ["input", "open-modal", "remove", "focus", "select", "add", "esc"],
|
|
620
620
|
setup() {
|
|
621
621
|
return {
|
|
622
|
-
v$:
|
|
622
|
+
v$: ye()
|
|
623
623
|
};
|
|
624
624
|
},
|
|
625
|
-
validations:
|
|
625
|
+
validations: $e,
|
|
626
626
|
data() {
|
|
627
627
|
return {
|
|
628
628
|
updateData: G,
|
|
629
|
-
addSavedArticle:
|
|
629
|
+
addSavedArticle: we,
|
|
630
630
|
articleUnitLabel: W,
|
|
631
631
|
widthCompact: 580,
|
|
632
632
|
visualDisable: !1
|
|
@@ -651,8 +651,8 @@ const ke = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
651
651
|
discount: f,
|
|
652
652
|
discountType: v
|
|
653
653
|
} = this.article;
|
|
654
|
-
if (t !== "fixed" && e.push({ title: this.$t(`priceTypeShort.${t}`) }),
|
|
655
|
-
const y =
|
|
654
|
+
if (t !== "fixed" && e.push({ title: this.$t(`priceTypeShort.${t}`) }), Oe(this.article)) {
|
|
655
|
+
const y = Ee(this.article);
|
|
656
656
|
e.push({
|
|
657
657
|
title: this.$t(`_common:deduction.${y}_percentage`)
|
|
658
658
|
});
|
|
@@ -696,32 +696,32 @@ const ke = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
696
696
|
return e.$error && e.article.name.$error && ((t = e.article.name.maxLength) != null && t.$invalid) ? this.$t("validations.name.maxLength") : null;
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
|
-
},
|
|
699
|
+
}, Dt = { class: "top-row flex w-full" }, Rt = ["innerHTML"];
|
|
700
700
|
function Lt(e, t, n, o, s, i) {
|
|
701
|
-
const f = g("CIcon"), v = g("ArticleAutocomplete"), y = g("CPriceInput"),
|
|
701
|
+
const f = g("CIcon"), v = g("ArticleAutocomplete"), y = g("CPriceInput"), d = g("ErrorCallout"), k = U("tooltip");
|
|
702
702
|
return a(), c("div", {
|
|
703
703
|
class: V([{
|
|
704
704
|
"has-details": i.details.length,
|
|
705
705
|
compact: n.width <= s.widthCompact,
|
|
706
706
|
"show-controls": !n.hideControls
|
|
707
707
|
}, "article-wrapper"]),
|
|
708
|
-
onKeydown: t[10] || (t[10] =
|
|
708
|
+
onKeydown: t[10] || (t[10] = j((w) => e.$emit("esc"), ["esc"]))
|
|
709
709
|
}, [
|
|
710
|
-
l("div",
|
|
711
|
-
|
|
710
|
+
l("div", Dt, [
|
|
711
|
+
u(v, B({
|
|
712
712
|
ref: "name",
|
|
713
713
|
"model-value": i.article.name,
|
|
714
714
|
placeholder: e.$t("namePlaceholder"),
|
|
715
715
|
size: "large",
|
|
716
716
|
class: "article-name-wrapper article-input-wrapper form-control form-control-left"
|
|
717
717
|
}, e.$attrs, {
|
|
718
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
719
|
-
onFocus: t[2] || (t[2] = (
|
|
720
|
-
onSelect: t[3] || (t[3] = (
|
|
718
|
+
"onUpdate:modelValue": t[1] || (t[1] = (w) => i.updateArticle(w, "name")),
|
|
719
|
+
onFocus: t[2] || (t[2] = (w) => e.$emit("focus")),
|
|
720
|
+
onSelect: t[3] || (t[3] = (w) => {
|
|
721
721
|
e.$emit(
|
|
722
722
|
"input",
|
|
723
723
|
s.addSavedArticle({
|
|
724
|
-
stored:
|
|
724
|
+
stored: w,
|
|
725
725
|
current: i.article,
|
|
726
726
|
hidePrice: n.hidePriceOnNew,
|
|
727
727
|
activeHouseWorkType: n.activeHouseWorkType
|
|
@@ -733,14 +733,14 @@ function Lt(e, t, n, o, s, i) {
|
|
|
733
733
|
n.hideControls ? b("", !0) : R((a(), c("div", {
|
|
734
734
|
key: 0,
|
|
735
735
|
class: "article-button fade-in",
|
|
736
|
-
onClick: t[0] || (t[0] = (
|
|
736
|
+
onClick: t[0] || (t[0] = (w) => e.$emit("open-modal"))
|
|
737
737
|
}, [
|
|
738
|
-
|
|
738
|
+
u(f, {
|
|
739
739
|
type: "cog",
|
|
740
740
|
size: "18"
|
|
741
741
|
})
|
|
742
742
|
])), [
|
|
743
|
-
[
|
|
743
|
+
[k, {
|
|
744
744
|
content: e.$t("openModalTooltip"),
|
|
745
745
|
delay: { show: 300, hide: 0 }
|
|
746
746
|
}]
|
|
@@ -748,7 +748,7 @@ function Lt(e, t, n, o, s, i) {
|
|
|
748
748
|
]),
|
|
749
749
|
_: 1
|
|
750
750
|
}, 16, ["model-value", "placeholder"]),
|
|
751
|
-
n.hidePriceInput ? b("", !0) : (a(),
|
|
751
|
+
n.hidePriceInput ? b("", !0) : (a(), A(y, B({
|
|
752
752
|
key: n.rootPriceType + i.article.priceType + i.article.unitType,
|
|
753
753
|
"model-value": i.article.totalAmount,
|
|
754
754
|
currency: i.article.currency,
|
|
@@ -760,22 +760,22 @@ function Lt(e, t, n, o, s, i) {
|
|
|
760
760
|
class: "form-control form-control-right",
|
|
761
761
|
style: { flex: "1 1", "min-width": "200px" }
|
|
762
762
|
}, e.$attrs, {
|
|
763
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
764
|
-
"onUpdate:currency": t[5] || (t[5] = (
|
|
763
|
+
"onUpdate:modelValue": t[4] || (t[4] = (w) => i.updateArticle(w, "price")),
|
|
764
|
+
"onUpdate:currency": t[5] || (t[5] = (w) => e.$emit("update:currency", w)),
|
|
765
765
|
onFocus: t[6] || (t[6] = () => {
|
|
766
766
|
i.onTotalPriceInputFocus(), e.$emit("focus");
|
|
767
767
|
}),
|
|
768
|
-
onKeydown: t[7] || (t[7] =
|
|
768
|
+
onKeydown: t[7] || (t[7] = j((w) => e.$emit("add"), ["enter"]))
|
|
769
769
|
}), null, 16, ["model-value", "currency", "is-inc-vat", "vat", "placeholder", "price-type", "unit-label"])),
|
|
770
|
-
n.hideControls ? b("", !0) : (a(), c(
|
|
771
|
-
|
|
770
|
+
n.hideControls ? b("", !0) : (a(), c(C, { key: 1 }, [
|
|
771
|
+
u(f, {
|
|
772
772
|
class: "a-control-button close-button fade-in",
|
|
773
773
|
circle: "",
|
|
774
774
|
type: "x",
|
|
775
775
|
size: "18",
|
|
776
|
-
onClick: t[8] || (t[8] = (
|
|
776
|
+
onClick: t[8] || (t[8] = (w) => n.enableRemove ? e.$emit("remove") : null)
|
|
777
777
|
}),
|
|
778
|
-
|
|
778
|
+
u(f, {
|
|
779
779
|
class: V([{ "c-hidden": !n.enableRemove }, "a-control-button fade-in move-button article-draggable-handle"]),
|
|
780
780
|
circle: "",
|
|
781
781
|
type: "handle",
|
|
@@ -787,27 +787,27 @@ function Lt(e, t, n, o, s, i) {
|
|
|
787
787
|
key: 0,
|
|
788
788
|
class: "article-details-wrapper",
|
|
789
789
|
style: { cursor: "pointer" },
|
|
790
|
-
onClick: t[9] || (t[9] = (
|
|
790
|
+
onClick: t[9] || (t[9] = (w) => e.$emit("open-modal"))
|
|
791
791
|
}, [
|
|
792
|
-
(a(!0), c(
|
|
792
|
+
(a(!0), c(C, null, S(i.details, ({ title: w, icon: _, subTitle: m = "", detailClass: T = "" }, r) => (a(), c("div", {
|
|
793
793
|
key: r,
|
|
794
|
-
class: V([[
|
|
794
|
+
class: V([[T], "article-details-item"])
|
|
795
795
|
}, [
|
|
796
|
-
$(
|
|
797
|
-
|
|
796
|
+
$(p(w) + " ", 1),
|
|
797
|
+
_ ? (a(), c("div", {
|
|
798
798
|
key: 0,
|
|
799
|
-
innerHTML:
|
|
799
|
+
innerHTML: _
|
|
800
800
|
}, null, 8, Rt)) : b("", !0),
|
|
801
|
-
$(" " + m
|
|
801
|
+
$(" " + p(m), 1)
|
|
802
802
|
], 2))), 128))
|
|
803
803
|
])) : b("", !0),
|
|
804
|
-
o.v$.$invalid && o.v$.$dirty ? (a(),
|
|
804
|
+
o.v$.$invalid && o.v$.$dirty ? (a(), A(d, {
|
|
805
805
|
key: 1,
|
|
806
806
|
message: i.errorMessage(o.v$)
|
|
807
807
|
}, null, 8, ["message"])) : b("", !0)
|
|
808
808
|
], 34);
|
|
809
809
|
}
|
|
810
|
-
const Ot = /* @__PURE__ */
|
|
810
|
+
const Ot = /* @__PURE__ */ M(Mt, [["render", Lt], ["__scopeId", "data-v-1a5f5b54"]]), Et = {
|
|
811
811
|
emits: ["go", "close"],
|
|
812
812
|
props: {
|
|
813
813
|
canForward: {
|
|
@@ -918,7 +918,7 @@ function Bt(e, t, n, o, s, i) {
|
|
|
918
918
|
])
|
|
919
919
|
]);
|
|
920
920
|
}
|
|
921
|
-
const Wt = /* @__PURE__ */
|
|
921
|
+
const Wt = /* @__PURE__ */ M(Et, [["render", Bt], ["__scopeId", "data-v-f685b502"]]), zt = {
|
|
922
922
|
name: "ArticleUnitEditModal",
|
|
923
923
|
i18nOptions: {
|
|
924
924
|
namespaces: "ArticleUnitEditModal",
|
|
@@ -946,9 +946,9 @@ const Wt = /* @__PURE__ */ D(Et, [["render", Bt], ["__scopeId", "data-v-f685b502
|
|
|
946
946
|
}
|
|
947
947
|
},
|
|
948
948
|
components: {
|
|
949
|
-
DragList:
|
|
949
|
+
DragList: Be,
|
|
950
950
|
DragItem: Ue,
|
|
951
|
-
CField:
|
|
951
|
+
CField: ke
|
|
952
952
|
},
|
|
953
953
|
emits: ["select", "close"],
|
|
954
954
|
data() {
|
|
@@ -1019,51 +1019,51 @@ const Wt = /* @__PURE__ */ D(Et, [["render", Bt], ["__scopeId", "data-v-f685b502
|
|
|
1019
1019
|
this.$emit("close");
|
|
1020
1020
|
},
|
|
1021
1021
|
async onDrop({ removedIndex: e, addedIndex: t }) {
|
|
1022
|
-
e === null && t === null || e !== t && (this.idList =
|
|
1022
|
+
e === null && t === null || e !== t && (this.idList = ve(this.idList, e, t), await ze(
|
|
1023
1023
|
"/unitType/setPositions",
|
|
1024
1024
|
{ ids: this.idList },
|
|
1025
1025
|
{ invalidateCache: { type: "unitType" } }
|
|
1026
1026
|
), this.reset(), await this.loadUnits());
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
|
-
},
|
|
1029
|
+
}, jt = {
|
|
1030
1030
|
class: "unit-modal-root font-inter",
|
|
1031
1031
|
style: { position: "relative" }
|
|
1032
|
-
},
|
|
1032
|
+
}, qt = { style: { padding: "calc(1.5 * var(--rem))" } }, Ft = { 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
1033
|
class: "text-gray-400",
|
|
1034
1034
|
style: { "font-size": "14px", padding: "calc(1 * var(--rem)) calc(1.5 * var(--rem)) 0", "font-weight": "500" }
|
|
1035
1035
|
}, Kt = { class: "unit-modal-list" }, Yt = {
|
|
1036
1036
|
key: 0,
|
|
1037
1037
|
class: "unit-modal-list-empty"
|
|
1038
|
-
}, Zt = ["onMouseoverPassive", "onClick"], Jt = { class: "drag-handle" },
|
|
1038
|
+
}, Zt = ["onMouseoverPassive", "onClick"], Jt = { class: "drag-handle" }, Qt = { style: { "padding-left": "0.5em" } }, Xt = { class: "unittype-buttons" };
|
|
1039
1039
|
function ei(e, t, n, o, s, i) {
|
|
1040
|
-
const f = g("CIcon"), v = g("CButton"), y = g("CInput"),
|
|
1040
|
+
const f = g("CIcon"), v = g("CButton"), y = g("CInput"), d = g("CField"), k = g("DragItem"), w = g("DragList"), _ = U("tooltip");
|
|
1041
1041
|
return a(), c("div", {
|
|
1042
1042
|
class: "modal-overlay font-inter",
|
|
1043
|
-
onClickPassive: t[3] || (t[3] = H((...
|
|
1043
|
+
onClickPassive: t[3] || (t[3] = H((...m) => i.close && i.close(...m), ["self"]))
|
|
1044
1044
|
}, [
|
|
1045
|
-
l("div",
|
|
1046
|
-
l("div",
|
|
1047
|
-
l("div",
|
|
1048
|
-
l("span", null,
|
|
1049
|
-
R(
|
|
1045
|
+
l("div", jt, [
|
|
1046
|
+
l("div", qt, [
|
|
1047
|
+
l("div", Ft, [
|
|
1048
|
+
l("span", null, p(e.$t("_common:add", { thing: e.$t("_common:unitType.unitType_other") })), 1),
|
|
1049
|
+
R(u(f, {
|
|
1050
1050
|
type: "info",
|
|
1051
1051
|
size: "15",
|
|
1052
1052
|
class: "text-gray-400",
|
|
1053
1053
|
style: { "margin-left": "0.5em" }
|
|
1054
1054
|
}, null, 512), [
|
|
1055
|
-
[
|
|
1055
|
+
[_, { content: e.$t("tooltip"), html: !0 }]
|
|
1056
1056
|
])
|
|
1057
1057
|
]),
|
|
1058
|
-
|
|
1058
|
+
u(d, {
|
|
1059
1059
|
grouped: "",
|
|
1060
1060
|
style: { margin: "0" }
|
|
1061
1061
|
}, {
|
|
1062
1062
|
default: h(() => [
|
|
1063
|
-
|
|
1063
|
+
u(y, {
|
|
1064
1064
|
ref: "unitInput",
|
|
1065
1065
|
modelValue: s.selectedValue.value,
|
|
1066
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1066
|
+
"onUpdate:modelValue": t[0] || (t[0] = (m) => s.selectedValue.value = m),
|
|
1067
1067
|
modelModifiers: { trim: !0 },
|
|
1068
1068
|
placeholder: e.$t("_common:name").capitalize(),
|
|
1069
1069
|
expanded: "",
|
|
@@ -1073,7 +1073,7 @@ function ei(e, t, n, o, s, i) {
|
|
|
1073
1073
|
s.selectedValue.id ? {
|
|
1074
1074
|
name: "suffix",
|
|
1075
1075
|
fn: h(() => [
|
|
1076
|
-
|
|
1076
|
+
u(v, {
|
|
1077
1077
|
icon: "x",
|
|
1078
1078
|
type: "none",
|
|
1079
1079
|
pattern: "tertiary",
|
|
@@ -1086,14 +1086,14 @@ function ei(e, t, n, o, s, i) {
|
|
|
1086
1086
|
} : void 0
|
|
1087
1087
|
]), 1032, ["modelValue", "placeholder"]),
|
|
1088
1088
|
l("div", Nt, [
|
|
1089
|
-
|
|
1089
|
+
u(v, {
|
|
1090
1090
|
loading: e.isPosting,
|
|
1091
1091
|
disabled: !s.selectedValue.value,
|
|
1092
1092
|
type: "secondary",
|
|
1093
1093
|
onClick: i.submit
|
|
1094
1094
|
}, {
|
|
1095
1095
|
default: h(() => [
|
|
1096
|
-
$(
|
|
1096
|
+
$(p(s.selectedValue.id ? e.$t("_common:save") : e.$t("_common:add")), 1)
|
|
1097
1097
|
]),
|
|
1098
1098
|
_: 1
|
|
1099
1099
|
}, 8, ["loading", "disabled", "onClick"])
|
|
@@ -1103,10 +1103,10 @@ function ei(e, t, n, o, s, i) {
|
|
|
1103
1103
|
})
|
|
1104
1104
|
]),
|
|
1105
1105
|
l("div", Ht, [
|
|
1106
|
-
l("div", Gt,
|
|
1106
|
+
l("div", Gt, p(e.$t("_common:unit_other").capitalize()), 1),
|
|
1107
1107
|
l("div", Kt, [
|
|
1108
|
-
i.unitItems.length ? b("", !0) : (a(), c("div", Yt,
|
|
1109
|
-
|
|
1108
|
+
i.unitItems.length ? b("", !0) : (a(), c("div", Yt, p(e.$t("_common:add", { thing: e.$t("_common:unit_other") })), 1)),
|
|
1109
|
+
u(w, {
|
|
1110
1110
|
"drop-placeholder": { className: "drag-drop-placeholder" },
|
|
1111
1111
|
"drag-class": "is-dragged",
|
|
1112
1112
|
"lock-axis": "y",
|
|
@@ -1114,39 +1114,39 @@ function ei(e, t, n, o, s, i) {
|
|
|
1114
1114
|
onDrop: i.onDrop
|
|
1115
1115
|
}, {
|
|
1116
1116
|
default: h(() => [
|
|
1117
|
-
(a(!0), c(
|
|
1118
|
-
key:
|
|
1117
|
+
(a(!0), c(C, null, S(i.unitItems, (m, T) => (a(), A(k, {
|
|
1118
|
+
key: m.id
|
|
1119
1119
|
}, {
|
|
1120
1120
|
default: h(() => [
|
|
1121
1121
|
l("div", {
|
|
1122
|
-
class: V([{ "is-editing": s.selectedValue.id ===
|
|
1123
|
-
onMouseoverPassive: (r) => s.hoverIndex =
|
|
1122
|
+
class: V([{ "is-editing": s.selectedValue.id === m.id }, "unit-modal-list-item"]),
|
|
1123
|
+
onMouseoverPassive: (r) => s.hoverIndex = T,
|
|
1124
1124
|
onMouseleavePassive: t[2] || (t[2] = (r) => s.hoverIndex = null),
|
|
1125
|
-
onClick: (r) => i.onEdit(
|
|
1125
|
+
onClick: (r) => i.onEdit(m)
|
|
1126
1126
|
}, [
|
|
1127
1127
|
l("div", Jt, [
|
|
1128
|
-
|
|
1128
|
+
u(f, {
|
|
1129
1129
|
type: "handle",
|
|
1130
1130
|
size: "16",
|
|
1131
1131
|
class: "text-gray-300"
|
|
1132
1132
|
})
|
|
1133
1133
|
]),
|
|
1134
|
-
l("div",
|
|
1135
|
-
R(l("span", { class: "delete-confirm" },
|
|
1136
|
-
[We, s.removeConfirmIndex ===
|
|
1134
|
+
l("div", Qt, p(m.label), 1),
|
|
1135
|
+
R(l("span", { class: "delete-confirm" }, p(e.$t("_common:remove")) + "? ", 513), [
|
|
1136
|
+
[We, s.removeConfirmIndex === T]
|
|
1137
1137
|
]),
|
|
1138
|
-
l("div",
|
|
1139
|
-
s.hoverIndex ===
|
|
1138
|
+
l("div", Xt, [
|
|
1139
|
+
s.hoverIndex === T || s.removeConfirmIndex === T ? (a(), A(v, {
|
|
1140
1140
|
key: 0,
|
|
1141
|
-
type: s.removeConfirmIndex ===
|
|
1142
|
-
pattern: s.removeConfirmIndex ===
|
|
1141
|
+
type: s.removeConfirmIndex === T ? "danger" : "none",
|
|
1142
|
+
pattern: s.removeConfirmIndex === T ? "primary" : "tertiary",
|
|
1143
1143
|
circle: "",
|
|
1144
1144
|
icon: "x",
|
|
1145
1145
|
size: "small",
|
|
1146
|
-
onClick: H((r) => i.remove(
|
|
1146
|
+
onClick: H((r) => i.remove(m.id, T), ["stop", "prevent"]),
|
|
1147
1147
|
onBlur: t[1] || (t[1] = (r) => s.removeConfirmIndex = null)
|
|
1148
1148
|
}, null, 8, ["type", "pattern", "onClick"])) : b("", !0),
|
|
1149
|
-
|
|
1149
|
+
u(v, {
|
|
1150
1150
|
icon: "edit",
|
|
1151
1151
|
size: "small",
|
|
1152
1152
|
type: "none",
|
|
@@ -1166,11 +1166,11 @@ function ei(e, t, n, o, s, i) {
|
|
|
1166
1166
|
])
|
|
1167
1167
|
], 32);
|
|
1168
1168
|
}
|
|
1169
|
-
const ti = /* @__PURE__ */
|
|
1169
|
+
const ti = /* @__PURE__ */ M(zt, [["render", ei], ["__scopeId", "data-v-439571ca"]]), ii = {
|
|
1170
1170
|
name: "ArticleUnitSelect",
|
|
1171
1171
|
components: {
|
|
1172
|
-
CDropdown:
|
|
1173
|
-
CDropdownItem:
|
|
1172
|
+
CDropdown: Y,
|
|
1173
|
+
CDropdownItem: K
|
|
1174
1174
|
},
|
|
1175
1175
|
props: {
|
|
1176
1176
|
modelValue: {
|
|
@@ -1219,30 +1219,30 @@ const ti = /* @__PURE__ */ D(zt, [["render", ei], ["__scopeId", "data-v-439571ca
|
|
|
1219
1219
|
};
|
|
1220
1220
|
function ni(e, t, n, o, s, i) {
|
|
1221
1221
|
const f = g("CButton"), v = g("CDropdownItem"), y = g("CDropdown");
|
|
1222
|
-
return a(),
|
|
1222
|
+
return a(), A(y, B({
|
|
1223
1223
|
position: "is-bottom-left",
|
|
1224
1224
|
maxHeight: "240px",
|
|
1225
1225
|
...e.$attrs
|
|
1226
1226
|
}, {
|
|
1227
1227
|
"model-value": n.modelValue,
|
|
1228
1228
|
scrollable: "",
|
|
1229
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1229
|
+
"onUpdate:modelValue": t[0] || (t[0] = (d) => e.$emit("update:modelValue", d))
|
|
1230
1230
|
}), {
|
|
1231
1231
|
trigger: h(() => [
|
|
1232
1232
|
ie(e.$slots, "default", {}, () => [
|
|
1233
|
-
|
|
1233
|
+
u(f, {
|
|
1234
1234
|
type: "none",
|
|
1235
1235
|
pattern: "tertiary"
|
|
1236
1236
|
}, {
|
|
1237
1237
|
default: h(() => [
|
|
1238
|
-
$(
|
|
1238
|
+
$(p(i.articleUnitLabel(n.modelValue)), 1)
|
|
1239
1239
|
]),
|
|
1240
1240
|
_: 1
|
|
1241
1241
|
})
|
|
1242
1242
|
], !0)
|
|
1243
1243
|
]),
|
|
1244
1244
|
footer: h(() => [
|
|
1245
|
-
n.isPublicForm ? b("", !0) : (a(),
|
|
1245
|
+
n.isPublicForm ? b("", !0) : (a(), A(f, {
|
|
1246
1246
|
key: 0,
|
|
1247
1247
|
type: "none",
|
|
1248
1248
|
pattern: "secondary",
|
|
@@ -1251,18 +1251,18 @@ function ni(e, t, n, o, s, i) {
|
|
|
1251
1251
|
onClick: i.openEditModal
|
|
1252
1252
|
}, {
|
|
1253
1253
|
default: h(() => [
|
|
1254
|
-
$(
|
|
1254
|
+
$(p(e.$t("_common:edit", { thing: e.$t("_common:unit_other") })), 1)
|
|
1255
1255
|
]),
|
|
1256
1256
|
_: 1
|
|
1257
1257
|
}, 8, ["onClick"]))
|
|
1258
1258
|
]),
|
|
1259
1259
|
default: h(() => [
|
|
1260
|
-
(a(!0), c(
|
|
1261
|
-
key: `${
|
|
1262
|
-
value:
|
|
1260
|
+
(a(!0), c(C, null, S(i.unitItems, (d, k) => (a(), A(v, {
|
|
1261
|
+
key: `${d}-${k}`,
|
|
1262
|
+
value: d
|
|
1263
1263
|
}, {
|
|
1264
1264
|
default: h(() => [
|
|
1265
|
-
$(
|
|
1265
|
+
$(p(i.articleUnitLabel(d)), 1)
|
|
1266
1266
|
]),
|
|
1267
1267
|
_: 2
|
|
1268
1268
|
}, 1032, ["value"]))), 128))
|
|
@@ -1270,21 +1270,21 @@ function ni(e, t, n, o, s, i) {
|
|
|
1270
1270
|
_: 3
|
|
1271
1271
|
}, 16, ["model-value"]);
|
|
1272
1272
|
}
|
|
1273
|
-
const si = /* @__PURE__ */
|
|
1273
|
+
const si = /* @__PURE__ */ M(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe"]]), ai = {
|
|
1274
1274
|
name: "ArticleModal",
|
|
1275
1275
|
i18nOptions: {
|
|
1276
1276
|
namespaces: "ArticleModal",
|
|
1277
|
-
messages:
|
|
1277
|
+
messages: Ie
|
|
1278
1278
|
},
|
|
1279
1279
|
components: {
|
|
1280
|
-
ArticleAutocomplete:
|
|
1280
|
+
ArticleAutocomplete: be,
|
|
1281
1281
|
ArticleUnitSelect: si,
|
|
1282
1282
|
ListModalButtons: Wt,
|
|
1283
1283
|
CPriceInput: Z,
|
|
1284
|
-
CField:
|
|
1284
|
+
CField: ke
|
|
1285
1285
|
},
|
|
1286
1286
|
emits: ["add", "input", "focus", "close", "open-modal", "update:currency"],
|
|
1287
|
-
mixins: [
|
|
1287
|
+
mixins: [Te],
|
|
1288
1288
|
props: {
|
|
1289
1289
|
_document: {
|
|
1290
1290
|
type: Object,
|
|
@@ -1341,15 +1341,15 @@ const si = /* @__PURE__ */ D(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe
|
|
|
1341
1341
|
},
|
|
1342
1342
|
setup() {
|
|
1343
1343
|
return {
|
|
1344
|
-
v$:
|
|
1344
|
+
v$: ye()
|
|
1345
1345
|
};
|
|
1346
1346
|
},
|
|
1347
|
-
validations:
|
|
1347
|
+
validations: $e,
|
|
1348
1348
|
data() {
|
|
1349
1349
|
return {
|
|
1350
1350
|
priceSuffix: St,
|
|
1351
1351
|
updateData: G,
|
|
1352
|
-
addSavedArticle:
|
|
1352
|
+
addSavedArticle: we,
|
|
1353
1353
|
vatOptions: [
|
|
1354
1354
|
{ value: 25, translation: "25%" },
|
|
1355
1355
|
{ value: 12, translation: "12%" },
|
|
@@ -1580,7 +1580,7 @@ const si = /* @__PURE__ */ D(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe
|
|
|
1580
1580
|
style: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "margin-top": "1em" }
|
|
1581
1581
|
}, 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
1582
|
function bi(e, t, n, o, s, i) {
|
|
1583
|
-
const f = g("ListModalButtons"), v = g("CIcon"), y = g("ArticleAutocomplete"),
|
|
1583
|
+
const f = g("ListModalButtons"), v = g("CIcon"), y = g("ArticleAutocomplete"), d = g("CField"), k = g("CInput"), w = g("CButton"), _ = g("ArticleUnitSelect"), m = g("CPriceInput"), T = U("tooltip");
|
|
1584
1584
|
return a(), c("div", {
|
|
1585
1585
|
class: V([{
|
|
1586
1586
|
"full-screen": e.mq === "sm",
|
|
@@ -1589,7 +1589,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
1589
1589
|
onClickPassive: t[15] || (t[15] = H((...r) => i.close && i.close(...r), ["self"]))
|
|
1590
1590
|
}, [
|
|
1591
1591
|
l("div", oi, [
|
|
1592
|
-
e.mq !== "sm" ? (a(),
|
|
1592
|
+
e.mq !== "sm" ? (a(), A(f, {
|
|
1593
1593
|
key: 0,
|
|
1594
1594
|
"can-forward": !!n.articleList[n.index + 1],
|
|
1595
1595
|
"can-backward": !!n.articleList[n.index - 1],
|
|
@@ -1600,15 +1600,15 @@ function bi(e, t, n, o, s, i) {
|
|
|
1600
1600
|
class: "modal-close",
|
|
1601
1601
|
onClick: t[1] || (t[1] = (...r) => i.close && i.close(...r))
|
|
1602
1602
|
}, [
|
|
1603
|
-
|
|
1603
|
+
u(v, { type: "x" })
|
|
1604
1604
|
])),
|
|
1605
|
-
|
|
1605
|
+
u(je, { name: "slide" }, {
|
|
1606
1606
|
default: h(() => [
|
|
1607
1607
|
(a(), c("div", {
|
|
1608
1608
|
key: i.article._uniqueId,
|
|
1609
1609
|
class: "modal-main"
|
|
1610
1610
|
}, [
|
|
1611
|
-
|
|
1611
|
+
u(d, {
|
|
1612
1612
|
validator: o.v$.article.name,
|
|
1613
1613
|
messages: { maxLength: e.$t("validations.name.maxLength") },
|
|
1614
1614
|
label: e.$t("name").capitalize(),
|
|
@@ -1617,7 +1617,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
1617
1617
|
class: "label-selector"
|
|
1618
1618
|
}, {
|
|
1619
1619
|
default: h(() => [
|
|
1620
|
-
|
|
1620
|
+
u(y, {
|
|
1621
1621
|
ref: "nameInput",
|
|
1622
1622
|
"model-value": i.article.name,
|
|
1623
1623
|
autosize: !0,
|
|
@@ -1640,14 +1640,14 @@ function bi(e, t, n, o, s, i) {
|
|
|
1640
1640
|
_: 1
|
|
1641
1641
|
}, 8, ["validator", "messages", "label"]),
|
|
1642
1642
|
l("div", ri, [
|
|
1643
|
-
|
|
1643
|
+
u(d, {
|
|
1644
1644
|
label: e.$t("quantity").capitalize(),
|
|
1645
1645
|
"label-position": "inside",
|
|
1646
1646
|
class: "label-selector form-control form-control-left flex-grow",
|
|
1647
1647
|
style: { "margin-bottom": "0" }
|
|
1648
1648
|
}, {
|
|
1649
1649
|
default: h(() => [
|
|
1650
|
-
|
|
1650
|
+
u(k, {
|
|
1651
1651
|
"model-value": i.article.quantity,
|
|
1652
1652
|
disabled: ["openAcc", "markup"].includes(i.article.priceType),
|
|
1653
1653
|
placeholder: "",
|
|
@@ -1659,18 +1659,18 @@ function bi(e, t, n, o, s, i) {
|
|
|
1659
1659
|
]),
|
|
1660
1660
|
_: 1
|
|
1661
1661
|
}, 8, ["label"]),
|
|
1662
|
-
|
|
1662
|
+
u(_, {
|
|
1663
1663
|
"model-value": i.article.unitType,
|
|
1664
1664
|
"is-public-form": n.viewSettings.isPublicForm,
|
|
1665
1665
|
"onUpdate:modelValue": t[5] || (t[5] = (r) => i.updateArticle(r, "unitType"))
|
|
1666
1666
|
}, {
|
|
1667
1667
|
default: h(() => [
|
|
1668
|
-
|
|
1668
|
+
u(w, {
|
|
1669
1669
|
class: "select-css form-control form-control-right",
|
|
1670
1670
|
style: { width: "8em", "box-shadow": "none" }
|
|
1671
1671
|
}, {
|
|
1672
1672
|
default: h(() => [
|
|
1673
|
-
$(
|
|
1673
|
+
$(p(s.articleUnitLabel(i.article.unitType, {
|
|
1674
1674
|
count: i.article.quantity
|
|
1675
1675
|
})), 1)
|
|
1676
1676
|
]),
|
|
@@ -1680,16 +1680,16 @@ function bi(e, t, n, o, s, i) {
|
|
|
1680
1680
|
_: 1
|
|
1681
1681
|
}, 8, ["model-value", "is-public-form"])
|
|
1682
1682
|
]),
|
|
1683
|
-
n.hidePriceInput ? b("", !0) : (a(), c(
|
|
1683
|
+
n.hidePriceInput ? b("", !0) : (a(), c(C, { key: 0 }, [
|
|
1684
1684
|
l("div", li, [
|
|
1685
|
-
|
|
1685
|
+
u(d, {
|
|
1686
1686
|
label: e.$t("price.price").capitalize(),
|
|
1687
1687
|
"label-position": "inside",
|
|
1688
1688
|
class: "label-selector form-control form-control-left flex-1",
|
|
1689
1689
|
style: { "margin-bottom": "0" }
|
|
1690
1690
|
}, {
|
|
1691
1691
|
default: h(() => [
|
|
1692
|
-
(a(),
|
|
1692
|
+
(a(), A(m, {
|
|
1693
1693
|
ref: "priceInput",
|
|
1694
1694
|
key: s.priceSuffix(i.article),
|
|
1695
1695
|
"model-value": i.article.price,
|
|
@@ -1711,17 +1711,17 @@ function bi(e, t, n, o, s, i) {
|
|
|
1711
1711
|
class: "select-css form-control form-control-right",
|
|
1712
1712
|
style: { width: "8em" },
|
|
1713
1713
|
onClick: t[9] || (t[9] = (r) => s.setPricesIncVat = !s.setPricesIncVat)
|
|
1714
|
-
},
|
|
1714
|
+
}, p(n._document.$t(`vat.${s.setPricesIncVat ? "incVat" : "exVat"}`)), 1)) : b("", !0)
|
|
1715
1715
|
]),
|
|
1716
1716
|
s.showDiscountInput ? (a(), c("div", ci, [
|
|
1717
|
-
|
|
1717
|
+
u(d, {
|
|
1718
1718
|
label: e.$t("discount").capitalize(),
|
|
1719
1719
|
"label-position": "inside",
|
|
1720
1720
|
class: "label-selector form-control form-control-left flex-grow",
|
|
1721
1721
|
style: { "margin-bottom": "0" }
|
|
1722
1722
|
}, {
|
|
1723
1723
|
default: h(() => [
|
|
1724
|
-
|
|
1724
|
+
u(m, {
|
|
1725
1725
|
ref: "discountInput",
|
|
1726
1726
|
"model-value": i.article.discount,
|
|
1727
1727
|
currency: i.article.currency,
|
|
@@ -1734,7 +1734,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
1734
1734
|
i.article.discountType === "fixed" ? {
|
|
1735
1735
|
name: "suffix",
|
|
1736
1736
|
fn: h(() => [
|
|
1737
|
-
$(
|
|
1737
|
+
$(p(n._document.$t(
|
|
1738
1738
|
`vat.${s.setPricesIncVat ? "incVat" : "exVat"}`
|
|
1739
1739
|
)), 1)
|
|
1740
1740
|
]),
|
|
@@ -1742,7 +1742,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
1742
1742
|
} : {
|
|
1743
1743
|
name: "suffix",
|
|
1744
1744
|
fn: h(() => [
|
|
1745
|
-
$(
|
|
1745
|
+
$(p(s.getCurrencySymbol(i.article.currency)), 1)
|
|
1746
1746
|
]),
|
|
1747
1747
|
key: "1"
|
|
1748
1748
|
}
|
|
@@ -1757,11 +1757,11 @@ function bi(e, t, n, o, s, i) {
|
|
|
1757
1757
|
i.article.discountType === "percentage" ? "fixed" : "percentage",
|
|
1758
1758
|
"discountType"
|
|
1759
1759
|
))
|
|
1760
|
-
},
|
|
1760
|
+
}, p(i.article.discountType === "percentage" ? "%" : s.getCurrencySymbol(i.article.currency)), 1)
|
|
1761
1761
|
])) : b("", !0)
|
|
1762
1762
|
], 64)),
|
|
1763
1763
|
l("div", di, [
|
|
1764
|
-
i.useVat ? (a(), c(
|
|
1764
|
+
i.useVat ? (a(), c(C, { key: 0 }, [
|
|
1765
1765
|
e.feature("regionSE") && Number.isInteger(i.article.vat) ? (a(), c("select", {
|
|
1766
1766
|
key: 0,
|
|
1767
1767
|
value: i.article.vat,
|
|
@@ -1769,12 +1769,12 @@ function bi(e, t, n, o, s, i) {
|
|
|
1769
1769
|
style: { display: "inline", "min-height": "initial", background: "hsl(0, 0%, 94%)", "border-color": "hsl(0, 0%, 94%)", color: "hsl(0, 0%, 30%)" },
|
|
1770
1770
|
onInput: t[12] || (t[12] = (r) => i.updateArticle(Number.parseFloat(r.target.value), "vat"))
|
|
1771
1771
|
}, [
|
|
1772
|
-
(a(!0), c(
|
|
1773
|
-
key:
|
|
1772
|
+
(a(!0), c(C, null, S(s.vatOptions, ({ translation: r, value: P }, I) => (a(), c("option", {
|
|
1773
|
+
key: I,
|
|
1774
1774
|
value: P
|
|
1775
|
-
},
|
|
1775
|
+
}, p(e.$t(`vat.${i.vatType}`)) + " " + p(r), 9, pi))), 128))
|
|
1776
1776
|
], 40, ui)) : (a(), c("span", mi, [
|
|
1777
|
-
$(
|
|
1777
|
+
$(p(n._document.$t("vat").capitalize()) + " ", 1),
|
|
1778
1778
|
l("input", {
|
|
1779
1779
|
value: i.article.vat || 0,
|
|
1780
1780
|
type: "number",
|
|
@@ -1786,25 +1786,25 @@ function bi(e, t, n, o, s, i) {
|
|
|
1786
1786
|
]))
|
|
1787
1787
|
], 64)) : b("", !0),
|
|
1788
1788
|
i.priceTypeOptions.length ? (a(), c("div", gi, [
|
|
1789
|
-
(a(!0), c(
|
|
1789
|
+
(a(!0), c(C, null, S(i.priceTypeOptions, ({ label: r, value: P, onClick: I, tooltip: D }, O) => R((a(), c("div", {
|
|
1790
1790
|
key: r + O,
|
|
1791
1791
|
class: V([{ active: P }, "tag-item"]),
|
|
1792
|
-
onClick:
|
|
1792
|
+
onClick: I
|
|
1793
1793
|
}, [
|
|
1794
|
-
$(
|
|
1794
|
+
$(p(r), 1)
|
|
1795
1795
|
], 10, vi)), [
|
|
1796
|
-
[
|
|
1797
|
-
content:
|
|
1796
|
+
[T, {
|
|
1797
|
+
content: D,
|
|
1798
1798
|
delay: { show: 300, hide: 0 }
|
|
1799
1799
|
}]
|
|
1800
1800
|
])), 128))
|
|
1801
1801
|
])) : b("", !0),
|
|
1802
1802
|
l("div", fi, [
|
|
1803
|
-
(a(!0), c(
|
|
1804
|
-
key: r +
|
|
1803
|
+
(a(!0), c(C, null, S(i.checkboxItems, ({ label: r, value: P, onClick: I }, D) => (a(), c("div", {
|
|
1804
|
+
key: r + D,
|
|
1805
1805
|
class: V([{ active: P }, "tag-item"]),
|
|
1806
|
-
onClick:
|
|
1807
|
-
},
|
|
1806
|
+
onClick: I
|
|
1807
|
+
}, p(r), 11, yi))), 128))
|
|
1808
1808
|
])
|
|
1809
1809
|
])
|
|
1810
1810
|
]))
|
|
@@ -1812,7 +1812,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
1812
1812
|
_: 1
|
|
1813
1813
|
}),
|
|
1814
1814
|
l("div", ki, [
|
|
1815
|
-
R((a(),
|
|
1815
|
+
R((a(), A(w, {
|
|
1816
1816
|
type: "primary",
|
|
1817
1817
|
tabindex: "0",
|
|
1818
1818
|
size: "large",
|
|
@@ -1820,7 +1820,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
1820
1820
|
onClick: i.addNewArticle
|
|
1821
1821
|
}, {
|
|
1822
1822
|
default: h(() => [
|
|
1823
|
-
|
|
1823
|
+
u(v, {
|
|
1824
1824
|
type: "zap",
|
|
1825
1825
|
size: "21",
|
|
1826
1826
|
style: { margin: "-3px" }
|
|
@@ -1828,7 +1828,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
1828
1828
|
]),
|
|
1829
1829
|
_: 1
|
|
1830
1830
|
}, 8, ["onClick"])), [
|
|
1831
|
-
[
|
|
1831
|
+
[T, {
|
|
1832
1832
|
distance: 7,
|
|
1833
1833
|
html: !0,
|
|
1834
1834
|
content: `
|
|
@@ -1846,7 +1846,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
1846
1846
|
`
|
|
1847
1847
|
}]
|
|
1848
1848
|
]),
|
|
1849
|
-
|
|
1849
|
+
u(w, {
|
|
1850
1850
|
size: "large",
|
|
1851
1851
|
class: "flex-grow",
|
|
1852
1852
|
type: "secondary",
|
|
@@ -1856,7 +1856,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
1856
1856
|
onClick: i.onSaveArticle
|
|
1857
1857
|
}, {
|
|
1858
1858
|
default: h(() => [
|
|
1859
|
-
$(
|
|
1859
|
+
$(p(e.$t("save")), 1)
|
|
1860
1860
|
]),
|
|
1861
1861
|
_: 1
|
|
1862
1862
|
}, 8, ["onClick"])
|
|
@@ -1864,7 +1864,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
1864
1864
|
])
|
|
1865
1865
|
], 34);
|
|
1866
1866
|
}
|
|
1867
|
-
const wi = /* @__PURE__ */
|
|
1867
|
+
const wi = /* @__PURE__ */ M(ai, [["render", bi], ["__scopeId", "data-v-eacf482e"]]), Ii = {
|
|
1868
1868
|
i18nOptions: {
|
|
1869
1869
|
name: "ArticleListEdit",
|
|
1870
1870
|
namespaces: "ArticleListEdit",
|
|
@@ -1886,11 +1886,10 @@ const wi = /* @__PURE__ */ D(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
|
|
|
1886
1886
|
components: {
|
|
1887
1887
|
Article: Ot,
|
|
1888
1888
|
ArticleModal: wi,
|
|
1889
|
-
|
|
1890
|
-
Sortable: Qe
|
|
1889
|
+
Sortable: Xe
|
|
1891
1890
|
},
|
|
1892
1891
|
expose: ["focusLastArticle", "openLastArticle"],
|
|
1893
|
-
mixins: [
|
|
1892
|
+
mixins: [F([])],
|
|
1894
1893
|
props: {
|
|
1895
1894
|
_document: {
|
|
1896
1895
|
type: Object,
|
|
@@ -1914,7 +1913,8 @@ const wi = /* @__PURE__ */ D(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
|
|
|
1914
1913
|
}
|
|
1915
1914
|
},
|
|
1916
1915
|
setup() {
|
|
1917
|
-
|
|
1916
|
+
const e = oe("articleItem"), t = oe("container"), { width: n } = Fe(t);
|
|
1917
|
+
return { articleItem: e, articlesWidth: n };
|
|
1918
1918
|
},
|
|
1919
1919
|
emits: [
|
|
1920
1920
|
"input",
|
|
@@ -1970,7 +1970,7 @@ const wi = /* @__PURE__ */ D(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
|
|
|
1970
1970
|
e || this.toggleDeductions(!1);
|
|
1971
1971
|
},
|
|
1972
1972
|
setPricesIncVat(e) {
|
|
1973
|
-
this.updateArticlesVatOption(), ["extension", "widget"].includes(
|
|
1973
|
+
this.updateArticlesVatOption(), ["extension", "widget"].includes(qe.value) || this.showMessage({
|
|
1974
1974
|
type: "info",
|
|
1975
1975
|
message: this.$t("vatOption.message", {
|
|
1976
1976
|
vatOption: this.$t(`_common:vat.${e ? "incVat" : "exVat"}`, {
|
|
@@ -2007,10 +2007,10 @@ const wi = /* @__PURE__ */ D(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
|
|
|
2007
2007
|
updateArticlesVatOption() {
|
|
2008
2008
|
this.articles.forEach((e, t) => {
|
|
2009
2009
|
if (e.priceType === "markup") return;
|
|
2010
|
-
let n =
|
|
2010
|
+
let n = q({ amount: e.price }).divide(
|
|
2011
2011
|
(100 + e.vat) * 0.01
|
|
2012
2012
|
);
|
|
2013
|
-
this.setPricesIncVat || (n =
|
|
2013
|
+
this.setPricesIncVat || (n = q({ amount: e.price }).multiply(
|
|
2014
2014
|
(100 + e.vat) * 0.01
|
|
2015
2015
|
)), this.updateArticleObject(
|
|
2016
2016
|
t,
|
|
@@ -2037,7 +2037,7 @@ const wi = /* @__PURE__ */ D(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
|
|
|
2037
2037
|
greenRot50: "greenRot50"
|
|
2038
2038
|
}, n = (o = []) => o.reduce((s, i) => ({ ...s, [i]: !1 }), {});
|
|
2039
2039
|
t[e] ? this.articles.forEach((o, s) => {
|
|
2040
|
-
const i = Object.values(
|
|
2040
|
+
const i = Object.values(fe(t, [e]));
|
|
2041
2041
|
if (i.some((f) => !!o[f])) {
|
|
2042
2042
|
const f = { ...o, ...n(i) };
|
|
2043
2043
|
this.$emit("input", { index: s, value: f });
|
|
@@ -2066,66 +2066,61 @@ const wi = /* @__PURE__ */ D(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
|
|
|
2066
2066
|
this.$emit("move", t);
|
|
2067
2067
|
}
|
|
2068
2068
|
}
|
|
2069
|
-
}, _i = {
|
|
2069
|
+
}, $i = { ref: "container" }, _i = {
|
|
2070
2070
|
key: 0,
|
|
2071
2071
|
class: "label-text"
|
|
2072
2072
|
};
|
|
2073
|
-
function
|
|
2074
|
-
const f = g("Article"), v = g("Sortable"), y = g("
|
|
2075
|
-
return a(), c("div",
|
|
2073
|
+
function Ti(e, t, n, o, s, i) {
|
|
2074
|
+
const f = g("Article"), v = g("Sortable"), y = g("ArticleModal"), d = g("Portal");
|
|
2075
|
+
return a(), c("div", $i, [
|
|
2076
2076
|
i.showVatToggle ? (a(), c("div", _i, [
|
|
2077
|
-
$(
|
|
2077
|
+
$(p(e.$t("vatOption.label")) + " ", 1),
|
|
2078
2078
|
l("span", {
|
|
2079
2079
|
onClick: t[0] || (t[0] = (k) => i.changeVat())
|
|
2080
|
-
},
|
|
2080
|
+
}, p(n._document.$t(`vat.${i.setPricesIncVat ? "incVat" : "exVat"}`)), 1)
|
|
2081
2081
|
])) : b("", !0),
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
onEsc: (I) => i.onEsc(d, C)
|
|
2119
|
-
}, 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"])
|
|
2120
|
-
]),
|
|
2121
|
-
_: 2
|
|
2122
|
-
}, 1032, ["options", "list"])
|
|
2082
|
+
u(v, {
|
|
2083
|
+
"item-key": "_uniqueId",
|
|
2084
|
+
options: {
|
|
2085
|
+
group: "articles",
|
|
2086
|
+
sort: !0,
|
|
2087
|
+
animation: 150,
|
|
2088
|
+
ghostClass: "article-ghost",
|
|
2089
|
+
handle: ".article-draggable-handle",
|
|
2090
|
+
onAdd: i.onAdd,
|
|
2091
|
+
onRemove: i.onRemove,
|
|
2092
|
+
onUpdate: i.onUpdate
|
|
2093
|
+
},
|
|
2094
|
+
list: n.articles,
|
|
2095
|
+
style: { "min-height": "calc(3 * var(--rem))" }
|
|
2096
|
+
}, {
|
|
2097
|
+
item: h(({ item: k, index: w }) => [
|
|
2098
|
+
u(f, {
|
|
2099
|
+
ref: "articleItem",
|
|
2100
|
+
value: k,
|
|
2101
|
+
width: o.articlesWidth,
|
|
2102
|
+
"hide-price-input": e.hidePriceInput,
|
|
2103
|
+
"hide-price-on-new": e.hidePriceOnNew,
|
|
2104
|
+
"is-inc-vat": i.setPricesIncVat,
|
|
2105
|
+
"hide-controls": n.hideControls,
|
|
2106
|
+
"root-price-type": n.rootPriceType,
|
|
2107
|
+
"active-house-work-type": n.activeHouseWorkType,
|
|
2108
|
+
class: "article-item",
|
|
2109
|
+
"onUpdate:currency": t[1] || (t[1] = (_) => e.$emit("update:currency", _)),
|
|
2110
|
+
onInput: (_) => i.updateArticleObject(w, _),
|
|
2111
|
+
onFocus: t[2] || (t[2] = (_) => e.$emit("focus")),
|
|
2112
|
+
onRemove: (_) => i.onRemoveArticle(w),
|
|
2113
|
+
onOpenModal: (_) => i.openModal(w, _),
|
|
2114
|
+
onAdd: (_) => w === i.articlesWithTotal.length - 1 ? e.$emit("add") : null,
|
|
2115
|
+
onSelect: (_) => w === i.articlesWithTotal.length - 1 ? e.$emit("add") : null,
|
|
2116
|
+
onEsc: (_) => i.onEsc(w, k)
|
|
2117
|
+
}, 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"])
|
|
2123
2118
|
]),
|
|
2124
2119
|
_: 1
|
|
2125
|
-
}),
|
|
2126
|
-
|
|
2120
|
+
}, 8, ["options", "list"]),
|
|
2121
|
+
u(d, { to: "modal" }, {
|
|
2127
2122
|
default: h(() => [
|
|
2128
|
-
s.showModal && i.articlesWithTotal[s.selectedIndex] ? (a(),
|
|
2123
|
+
s.showModal && i.articlesWithTotal[s.selectedIndex] ? (a(), A(y, {
|
|
2129
2124
|
key: 0,
|
|
2130
2125
|
ref: "articleModal",
|
|
2131
2126
|
_document: n._document,
|
|
@@ -2147,9 +2142,9 @@ function $i(e, t, n, o, s, i) {
|
|
|
2147
2142
|
]),
|
|
2148
2143
|
_: 1
|
|
2149
2144
|
})
|
|
2150
|
-
]);
|
|
2145
|
+
], 512);
|
|
2151
2146
|
}
|
|
2152
|
-
const
|
|
2147
|
+
const Ai = /* @__PURE__ */ M(Ii, [["render", Ti], ["__scopeId", "data-v-8ab60481"]]), Ci = {
|
|
2153
2148
|
name: "MaxTotalInput",
|
|
2154
2149
|
i18nOptions: {
|
|
2155
2150
|
namespaces: "MaxTotalInput",
|
|
@@ -2192,19 +2187,19 @@ const Ti = /* @__PURE__ */ D(Ii, [["render", $i], ["__scopeId", "data-v-76a7d87c
|
|
|
2192
2187
|
},
|
|
2193
2188
|
watch: {
|
|
2194
2189
|
isIncVat(e) {
|
|
2195
|
-
let t =
|
|
2190
|
+
let t = q({ amount: this.modelValue }).divide(
|
|
2196
2191
|
1.25
|
|
2197
2192
|
);
|
|
2198
|
-
e || (t =
|
|
2193
|
+
e || (t = q({ amount: this.modelValue }).multiply(
|
|
2199
2194
|
125 * 0.01
|
|
2200
2195
|
)), this.$emit("update:modelValue", t.getAmount());
|
|
2201
2196
|
}
|
|
2202
2197
|
}
|
|
2203
|
-
},
|
|
2204
|
-
function
|
|
2198
|
+
}, Pi = { class: "flex w-full justify-end" };
|
|
2199
|
+
function xi(e, t, n, o, s, i) {
|
|
2205
2200
|
const f = g("CPriceInput");
|
|
2206
|
-
return a(), c("div",
|
|
2207
|
-
|
|
2201
|
+
return a(), c("div", Pi, [
|
|
2202
|
+
u(f, {
|
|
2208
2203
|
"model-value": n.modelValue,
|
|
2209
2204
|
currency: n.currency,
|
|
2210
2205
|
"is-inc-vat": e.isIncVat,
|
|
@@ -2217,10 +2212,10 @@ function Pi(e, t, n, o, s, i) {
|
|
|
2217
2212
|
"onUpdate:modelValue": t[0] || (t[0] = (v) => e.$emit("update:modelValue", v))
|
|
2218
2213
|
}, {
|
|
2219
2214
|
prefix: h(() => [
|
|
2220
|
-
$(
|
|
2215
|
+
$(p(e.$t("price.maxPrice").capitalize()), 1)
|
|
2221
2216
|
]),
|
|
2222
2217
|
suffix: h(() => [
|
|
2223
|
-
l("span", null,
|
|
2218
|
+
l("span", null, p(s.getCurrencySymbol(n.currency)) + " " + p(e.$t(`vat.${e.isIncVat ? "incVat" : "exVat"}`, {
|
|
2224
2219
|
thing: e.$t(`vat.${n.vatType}`)
|
|
2225
2220
|
})), 1)
|
|
2226
2221
|
]),
|
|
@@ -2228,10 +2223,10 @@ function Pi(e, t, n, o, s, i) {
|
|
|
2228
2223
|
}, 8, ["model-value", "currency", "is-inc-vat", "placeholder"])
|
|
2229
2224
|
]);
|
|
2230
2225
|
}
|
|
2231
|
-
const
|
|
2226
|
+
const Vi = /* @__PURE__ */ M(Ci, [["render", xi]]), Si = {
|
|
2232
2227
|
components: {
|
|
2233
|
-
CDropdown:
|
|
2234
|
-
CDropdownItem:
|
|
2228
|
+
CDropdown: Y,
|
|
2229
|
+
CDropdownItem: K
|
|
2235
2230
|
},
|
|
2236
2231
|
props: {
|
|
2237
2232
|
modelValue: {
|
|
@@ -2245,29 +2240,29 @@ const xi = /* @__PURE__ */ D(Ai, [["render", Pi]]), Vi = {
|
|
|
2245
2240
|
priceTypeOptions: ["fixed", "approx", "openAcc", "openAccMaxPrice"]
|
|
2246
2241
|
};
|
|
2247
2242
|
}
|
|
2248
|
-
},
|
|
2243
|
+
}, Mi = { class: "flex justify-end" };
|
|
2249
2244
|
function Di(e, t, n, o, s, i) {
|
|
2250
2245
|
const f = g("CButton"), v = g("CDropdownItem"), y = g("CDropdown");
|
|
2251
|
-
return a(), c("div",
|
|
2252
|
-
|
|
2246
|
+
return a(), c("div", Mi, [
|
|
2247
|
+
u(y, { "model-value": n.modelValue }, {
|
|
2253
2248
|
trigger: h(() => [
|
|
2254
|
-
|
|
2249
|
+
u(f, { class: "price-type-button" }, {
|
|
2255
2250
|
default: h(() => [
|
|
2256
|
-
$(
|
|
2257
|
-
l("span", null,
|
|
2251
|
+
$(p(e.$t("price.pricing").capitalize()) + ": ", 1),
|
|
2252
|
+
l("span", null, p(e.$t(`price.${n.modelValue}`)), 1)
|
|
2258
2253
|
]),
|
|
2259
2254
|
_: 1
|
|
2260
2255
|
})
|
|
2261
2256
|
]),
|
|
2262
2257
|
default: h(() => [
|
|
2263
|
-
(a(!0), c(
|
|
2264
|
-
key:
|
|
2265
|
-
value:
|
|
2258
|
+
(a(!0), c(C, null, S(s.priceTypeOptions, (d) => (a(), A(v, {
|
|
2259
|
+
key: d,
|
|
2260
|
+
value: d,
|
|
2266
2261
|
class: "text-right",
|
|
2267
|
-
onClick: (
|
|
2262
|
+
onClick: (k) => e.$emit("update:modelValue", d)
|
|
2268
2263
|
}, {
|
|
2269
2264
|
default: h(() => [
|
|
2270
|
-
$(
|
|
2265
|
+
$(p(e.$t(`price.${d}`)), 1)
|
|
2271
2266
|
]),
|
|
2272
2267
|
_: 2
|
|
2273
2268
|
}, 1032, ["value", "onClick"]))), 128))
|
|
@@ -2276,12 +2271,12 @@ function Di(e, t, n, o, s, i) {
|
|
|
2276
2271
|
}, 8, ["model-value"])
|
|
2277
2272
|
]);
|
|
2278
2273
|
}
|
|
2279
|
-
const
|
|
2274
|
+
const Ri = /* @__PURE__ */ M(Si, [["render", Di], ["__scopeId", "data-v-26c5da6c"]]), Li = {
|
|
2280
2275
|
name: "EditDeduction",
|
|
2281
2276
|
components: {
|
|
2282
2277
|
CPriceInput: Z
|
|
2283
2278
|
},
|
|
2284
|
-
mixins: [
|
|
2279
|
+
mixins: [F(["houseWorkManualAmount"])],
|
|
2285
2280
|
props: {
|
|
2286
2281
|
disabled: {
|
|
2287
2282
|
type: Boolean,
|
|
@@ -2314,13 +2309,13 @@ const Mi = /* @__PURE__ */ D(Vi, [["render", Di], ["__scopeId", "data-v-26c5da6c
|
|
|
2314
2309
|
},
|
|
2315
2310
|
methods: {
|
|
2316
2311
|
setDeduction(e) {
|
|
2317
|
-
this.internalValue =
|
|
2312
|
+
this.internalValue = q({ amount: this.total }).multiply(e).getAmount();
|
|
2318
2313
|
},
|
|
2319
2314
|
showModal() {
|
|
2320
2315
|
this.internalValue = this.houseWorkAmount, this.$modal.show(this.modalName);
|
|
2321
2316
|
}
|
|
2322
2317
|
}
|
|
2323
|
-
},
|
|
2318
|
+
}, Oi = { class: "deduction-modal flex w-full flex-col items-center justify-between rounded-lg" }, Ei = { style: { "font-size": "calc(calc(1 * var(--rem)) + 2px)", "font-weight": "800", "text-align": "center", "margin-bottom": "calc(1.5 * var(--rem))" } }, Ui = { style: { "margin-bottom": "calc(1 * var(--rem))", width: "100%" } }, Bi = { class: "flex w-full flex-wrap justify-center gap-2" }, Wi = ["onClick"], zi = {
|
|
2324
2319
|
style: { "margin-right": "0.5em" },
|
|
2325
2320
|
viewBox: "0 0 24 24",
|
|
2326
2321
|
width: "12",
|
|
@@ -2332,10 +2327,10 @@ const Mi = /* @__PURE__ */ D(Vi, [["render", Di], ["__scopeId", "data-v-26c5da6c
|
|
|
2332
2327
|
"stroke-linejoin": "round",
|
|
2333
2328
|
class: "css-i6dzq1"
|
|
2334
2329
|
};
|
|
2335
|
-
function
|
|
2336
|
-
const f = g("CPriceInput"), v = g("CButton"), y = g("modal"),
|
|
2330
|
+
function ji(e, t, n, o, s, i) {
|
|
2331
|
+
const f = g("CPriceInput"), v = g("CButton"), y = g("modal"), d = g("portal");
|
|
2337
2332
|
return a(), c("div", null, [
|
|
2338
|
-
|
|
2333
|
+
u(y, B({
|
|
2339
2334
|
adaptive: !0,
|
|
2340
2335
|
height: "auto",
|
|
2341
2336
|
width: "90%",
|
|
@@ -2343,14 +2338,14 @@ function zi(e, t, n, o, s, i) {
|
|
|
2343
2338
|
classes: "primary"
|
|
2344
2339
|
}, { name: s.modalName }), {
|
|
2345
2340
|
default: h(() => [
|
|
2346
|
-
l("div",
|
|
2347
|
-
l("div",
|
|
2341
|
+
l("div", Oi, [
|
|
2342
|
+
l("div", Ei, p(e.$t("deduction.manualType", {
|
|
2348
2343
|
type: e.$t(`deduction.${n.houseWorkType}`)
|
|
2349
2344
|
})), 1),
|
|
2350
|
-
l("div",
|
|
2351
|
-
|
|
2345
|
+
l("div", Ui, [
|
|
2346
|
+
u(f, {
|
|
2352
2347
|
modelValue: s.internalValue,
|
|
2353
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2348
|
+
"onUpdate:modelValue": t[0] || (t[0] = (k) => s.internalValue = k),
|
|
2354
2349
|
modelModifiers: { number: !0 },
|
|
2355
2350
|
currency: "SEK",
|
|
2356
2351
|
placeholder: e.$t("enterThing", { thing: e.$t("deduction.deduction") }),
|
|
@@ -2359,13 +2354,13 @@ function zi(e, t, n, o, s, i) {
|
|
|
2359
2354
|
"suffix-class": "text-gray-400"
|
|
2360
2355
|
}, {
|
|
2361
2356
|
suffix: h(() => [
|
|
2362
|
-
$(
|
|
2357
|
+
$(p(e.$t("currency.SEK")), 1)
|
|
2363
2358
|
]),
|
|
2364
2359
|
_: 1
|
|
2365
2360
|
}, 8, ["modelValue", "placeholder"])
|
|
2366
2361
|
]),
|
|
2367
|
-
l("div",
|
|
2368
|
-
(a(), c(
|
|
2362
|
+
l("div", Bi, [
|
|
2363
|
+
(a(), c(C, null, S([
|
|
2369
2364
|
{ v: 0.09, l: "9%" },
|
|
2370
2365
|
{ v: 0.105, l: "10.5%" },
|
|
2371
2366
|
{ v: 0.1455, l: "14.55%" },
|
|
@@ -2373,15 +2368,15 @@ function zi(e, t, n, o, s, i) {
|
|
|
2373
2368
|
{ v: 0.21, l: "21%" },
|
|
2374
2369
|
{ v: 0.485, l: "48.5%" },
|
|
2375
2370
|
{ v: 0.5, l: "50%" }
|
|
2376
|
-
], (
|
|
2377
|
-
key:
|
|
2371
|
+
], (k) => l("div", {
|
|
2372
|
+
key: k.l,
|
|
2378
2373
|
class: V([{
|
|
2379
|
-
active: Math.round(n.total *
|
|
2374
|
+
active: Math.round(n.total * k.v * 0.01) * 100 === s.internalValue
|
|
2380
2375
|
}, "deduction-button"]),
|
|
2381
|
-
onClick: (
|
|
2382
|
-
},
|
|
2376
|
+
onClick: (w) => i.setDeduction(k.v)
|
|
2377
|
+
}, p(k.l), 11, Wi)), 64))
|
|
2383
2378
|
]),
|
|
2384
|
-
|
|
2379
|
+
u(v, {
|
|
2385
2380
|
type: "secondary",
|
|
2386
2381
|
wide: "",
|
|
2387
2382
|
class: "mt-8",
|
|
@@ -2390,11 +2385,11 @@ function zi(e, t, n, o, s, i) {
|
|
|
2390
2385
|
})
|
|
2391
2386
|
}, {
|
|
2392
2387
|
default: h(() => [
|
|
2393
|
-
$(
|
|
2388
|
+
$(p(e.$t("save")), 1)
|
|
2394
2389
|
]),
|
|
2395
2390
|
_: 1
|
|
2396
2391
|
}),
|
|
2397
|
-
|
|
2392
|
+
u(v, {
|
|
2398
2393
|
type: "secondary",
|
|
2399
2394
|
pattern: "tertiary",
|
|
2400
2395
|
wide: "",
|
|
@@ -2404,7 +2399,7 @@ function zi(e, t, n, o, s, i) {
|
|
|
2404
2399
|
})
|
|
2405
2400
|
}, {
|
|
2406
2401
|
default: h(() => [
|
|
2407
|
-
$(
|
|
2402
|
+
$(p(e.$t("reset")), 1)
|
|
2408
2403
|
]),
|
|
2409
2404
|
_: 1
|
|
2410
2405
|
})
|
|
@@ -2412,7 +2407,7 @@ function zi(e, t, n, o, s, i) {
|
|
|
2412
2407
|
]),
|
|
2413
2408
|
_: 1
|
|
2414
2409
|
}, 16, ["name"]),
|
|
2415
|
-
e.houseWorkManualAmount ? (a(),
|
|
2410
|
+
e.houseWorkManualAmount ? (a(), A(d, {
|
|
2416
2411
|
key: 0,
|
|
2417
2412
|
order: 2,
|
|
2418
2413
|
to: "document-nav-bottom"
|
|
@@ -2420,9 +2415,9 @@ function zi(e, t, n, o, s, i) {
|
|
|
2420
2415
|
default: h(() => [
|
|
2421
2416
|
l("div", {
|
|
2422
2417
|
class: "housework-manual-nav",
|
|
2423
|
-
onClick: t[3] || (t[3] = (
|
|
2418
|
+
onClick: t[3] || (t[3] = (k) => e.$modal.show(s.modalName))
|
|
2424
2419
|
}, [
|
|
2425
|
-
(a(), c("svg",
|
|
2420
|
+
(a(), c("svg", zi, t[4] || (t[4] = [
|
|
2426
2421
|
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),
|
|
2427
2422
|
l("line", {
|
|
2428
2423
|
x1: "12",
|
|
@@ -2437,17 +2432,17 @@ function zi(e, t, n, o, s, i) {
|
|
|
2437
2432
|
y2: "17"
|
|
2438
2433
|
}, null, -1)
|
|
2439
2434
|
]))),
|
|
2440
|
-
$(" " +
|
|
2435
|
+
$(" " + p(e.$t("deduction.manualType", { type: e.$t(`deduction.${n.houseWorkType}`) })) + " " + p(e.$t("using")), 1)
|
|
2441
2436
|
])
|
|
2442
2437
|
]),
|
|
2443
2438
|
_: 1
|
|
2444
2439
|
})) : b("", !0)
|
|
2445
2440
|
]);
|
|
2446
2441
|
}
|
|
2447
|
-
const
|
|
2442
|
+
const qi = /* @__PURE__ */ M(Li, [["render", ji], ["__scopeId", "data-v-5de18d7b"]]), Fi = {
|
|
2448
2443
|
name: "Pricing",
|
|
2449
2444
|
components: {
|
|
2450
|
-
EditDeduction:
|
|
2445
|
+
EditDeduction: qi
|
|
2451
2446
|
},
|
|
2452
2447
|
props: {
|
|
2453
2448
|
_document: {
|
|
@@ -2545,15 +2540,15 @@ const Fi = /* @__PURE__ */ D(Ri, [["render", zi], ["__scopeId", "data-v-5de18d7b
|
|
|
2545
2540
|
return !!x(this.prices, "region.houseWorkType", !1) || !!x(this.prices, "region.houseWorkManualAmount", !1);
|
|
2546
2541
|
}
|
|
2547
2542
|
}
|
|
2548
|
-
},
|
|
2543
|
+
}, Ni = { class: "price-bubble" }, Hi = { class: "flex w-full items-center justify-between" }, Gi = { class: "price-label" }, Ki = {
|
|
2549
2544
|
key: 0,
|
|
2550
2545
|
class: "pricing-sub-label"
|
|
2551
|
-
},
|
|
2552
|
-
function
|
|
2546
|
+
}, Yi = ["onClick"], Zi = { class: "price-value" };
|
|
2547
|
+
function Ji(e, t, n, o, s, i) {
|
|
2553
2548
|
const f = g("EditDeduction"), v = U("tooltip");
|
|
2554
|
-
return a(), c("div",
|
|
2555
|
-
l("div",
|
|
2556
|
-
i.showHouseWork ? (a(),
|
|
2549
|
+
return a(), c("div", Ni, [
|
|
2550
|
+
l("div", Hi, [
|
|
2551
|
+
i.showHouseWork ? (a(), A(f, {
|
|
2557
2552
|
key: 0,
|
|
2558
2553
|
ref: "deduction",
|
|
2559
2554
|
disabled: !s.get(i.prices, "region.houseWorkType", !1),
|
|
@@ -2568,17 +2563,17 @@ function Zi(e, t, n, o, s, i) {
|
|
|
2568
2563
|
}, null, 8, ["disabled", "_document", "_value", "house-work-type", "house-work-amount", "total"])) : b("", !0)
|
|
2569
2564
|
]),
|
|
2570
2565
|
l("div", null, [
|
|
2571
|
-
(a(!0), c(
|
|
2572
|
-
key:
|
|
2566
|
+
(a(!0), c(C, null, S(i.priceArray, (y, d) => (a(), c("div", {
|
|
2567
|
+
key: d,
|
|
2573
2568
|
class: V([[y.classList || ""], "price-row flex w-full justify-between"])
|
|
2574
2569
|
}, [
|
|
2575
|
-
l("div",
|
|
2576
|
-
$(
|
|
2577
|
-
y.subLabel ? (a(), c("span",
|
|
2570
|
+
l("div", Gi, [
|
|
2571
|
+
$(p(y.label.capitalize()) + " ", 1),
|
|
2572
|
+
y.subLabel ? (a(), c("span", Ki, p(y.subLabel), 1)) : b("", !0),
|
|
2578
2573
|
y.action ? R((a(), c("span", {
|
|
2579
2574
|
key: 1,
|
|
2580
2575
|
class: "pricing-action",
|
|
2581
|
-
onClick: (
|
|
2576
|
+
onClick: (k) => y.action ? y.action() : null
|
|
2582
2577
|
}, t[1] || (t[1] = [
|
|
2583
2578
|
l("svg", {
|
|
2584
2579
|
viewBox: "0 0 24 24",
|
|
@@ -2593,16 +2588,16 @@ function Zi(e, t, n, o, s, i) {
|
|
|
2593
2588
|
l("path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
|
|
2594
2589
|
l("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })
|
|
2595
2590
|
], -1)
|
|
2596
|
-
]), 8,
|
|
2591
|
+
]), 8, Yi)), [
|
|
2597
2592
|
[v, e.$t("edit", { thing: e.$t("deduction.deduction") })]
|
|
2598
2593
|
]) : b("", !0)
|
|
2599
2594
|
]),
|
|
2600
|
-
l("div",
|
|
2595
|
+
l("div", Zi, p(y.prefix) + " " + p(y.value), 1)
|
|
2601
2596
|
], 2))), 128))
|
|
2602
2597
|
])
|
|
2603
2598
|
]);
|
|
2604
2599
|
}
|
|
2605
|
-
const
|
|
2600
|
+
const Qi = /* @__PURE__ */ M(Fi, [["render", Ji], ["__scopeId", "data-v-90384cd6"]]), Xi = {
|
|
2606
2601
|
name: "PackageItemEdit",
|
|
2607
2602
|
i18nOptions: {
|
|
2608
2603
|
namespaces: "PackageItemEdit",
|
|
@@ -2630,13 +2625,13 @@ const Ji = /* @__PURE__ */ D(ji, [["render", Zi], ["__scopeId", "data-v-90384cd6
|
|
|
2630
2625
|
}
|
|
2631
2626
|
},
|
|
2632
2627
|
components: {
|
|
2633
|
-
ArticleList:
|
|
2634
|
-
PriceFormAlternatives:
|
|
2635
|
-
MaxTotalInput:
|
|
2636
|
-
Pricing:
|
|
2637
|
-
TextEditor:
|
|
2638
|
-
CDropdown:
|
|
2639
|
-
CDropdownItem:
|
|
2628
|
+
ArticleList: Ai,
|
|
2629
|
+
PriceFormAlternatives: Ri,
|
|
2630
|
+
MaxTotalInput: Vi,
|
|
2631
|
+
Pricing: Qi,
|
|
2632
|
+
TextEditor: Qe,
|
|
2633
|
+
CDropdown: Y,
|
|
2634
|
+
CDropdownItem: K
|
|
2640
2635
|
},
|
|
2641
2636
|
emits: [
|
|
2642
2637
|
"move",
|
|
@@ -2649,7 +2644,7 @@ const Ji = /* @__PURE__ */ D(ji, [["render", Zi], ["__scopeId", "data-v-90384cd6
|
|
|
2649
2644
|
"remove-package"
|
|
2650
2645
|
],
|
|
2651
2646
|
mixins: [
|
|
2652
|
-
|
|
2647
|
+
F([
|
|
2653
2648
|
"isSelectedDefault",
|
|
2654
2649
|
"isSelected",
|
|
2655
2650
|
"name",
|
|
@@ -2700,14 +2695,14 @@ const Ji = /* @__PURE__ */ D(ji, [["render", Zi], ["__scopeId", "data-v-90384cd6
|
|
|
2700
2695
|
},
|
|
2701
2696
|
internalDescription: {
|
|
2702
2697
|
get() {
|
|
2703
|
-
return
|
|
2698
|
+
return Ke(
|
|
2704
2699
|
this.description,
|
|
2705
2700
|
this._document.textTemplateMap,
|
|
2706
2701
|
this._document._doc
|
|
2707
2702
|
);
|
|
2708
2703
|
},
|
|
2709
2704
|
set(e) {
|
|
2710
|
-
this.description =
|
|
2705
|
+
this.description = Ge(e);
|
|
2711
2706
|
}
|
|
2712
2707
|
}
|
|
2713
2708
|
},
|
|
@@ -2761,7 +2756,7 @@ const Ji = /* @__PURE__ */ D(ji, [["render", Zi], ["__scopeId", "data-v-90384cd6
|
|
|
2761
2756
|
this.createEmptyArticle(), e ? this.$refs.articleList.openLastArticle() : this.$refs.articleList.focusLastArticle();
|
|
2762
2757
|
},
|
|
2763
2758
|
onInsert({ index: e, value: t }) {
|
|
2764
|
-
const n =
|
|
2759
|
+
const n = Ne(this.mappedPackageArticles).add(
|
|
2765
2760
|
{ ...t, packageId: this.packageId },
|
|
2766
2761
|
e
|
|
2767
2762
|
);
|
|
@@ -2791,65 +2786,65 @@ const Ji = /* @__PURE__ */ D(ji, [["render", Zi], ["__scopeId", "data-v-90384cd6
|
|
|
2791
2786
|
});
|
|
2792
2787
|
}
|
|
2793
2788
|
}
|
|
2794
|
-
},
|
|
2795
|
-
function
|
|
2796
|
-
const f = g("CButton"), v = g("CDropdownItem"), y = g("CDropdown"),
|
|
2797
|
-
return a(), c("div",
|
|
2798
|
-
l("div",
|
|
2799
|
-
l("div", null,
|
|
2800
|
-
n.type !== "single" ? (a(),
|
|
2789
|
+
}, en = { class: "min-h-0 rounded-md border border-gray-200 bg-white text-black" }, tn = { class: "flex w-full items-center justify-between bg-gray-100 py-1 pl-4 pr-1 text-sm font-medium text-gray-600" }, nn = { class: "p-4" }, sn = { class: "mb-0.5 flex items-center" }, an = ["id", "placeholder"], on = { class: "mt-2 flex gap-2" };
|
|
2790
|
+
function rn(e, t, n, o, s, i) {
|
|
2791
|
+
const f = g("CButton"), v = g("CDropdownItem"), y = g("CDropdown"), d = g("TextEditor"), k = g("MaxTotalInput"), w = g("PriceFormAlternatives"), _ = g("ArticleList"), m = g("CIcon"), T = g("Pricing"), r = U("tooltip"), P = U("click-outside");
|
|
2792
|
+
return a(), c("div", en, [
|
|
2793
|
+
l("div", tn, [
|
|
2794
|
+
l("div", null, p(n.type === "single" ? e.$t("single") : n.type === "radio" || n.toggable ? e.$t("option") : e.$t("base")), 1),
|
|
2795
|
+
n.type !== "single" ? (a(), A(y, {
|
|
2801
2796
|
key: 0,
|
|
2802
2797
|
class: "ml-4"
|
|
2803
2798
|
}, {
|
|
2804
2799
|
trigger: h(() => [
|
|
2805
|
-
|
|
2800
|
+
u(f, {
|
|
2806
2801
|
size: "small",
|
|
2807
2802
|
type: "text",
|
|
2808
2803
|
pattern: "secondary",
|
|
2809
2804
|
class: "is-thinner opacity-70"
|
|
2810
2805
|
}, {
|
|
2811
2806
|
default: h(() => [
|
|
2812
|
-
$(
|
|
2807
|
+
$(p(e.$t("_common:change")), 1)
|
|
2813
2808
|
]),
|
|
2814
2809
|
_: 1
|
|
2815
2810
|
})
|
|
2816
2811
|
]),
|
|
2817
2812
|
default: h(() => [
|
|
2818
|
-
n.toggable ? (a(), c(
|
|
2819
|
-
|
|
2813
|
+
n.toggable ? (a(), c(C, { key: 0 }, [
|
|
2814
|
+
u(v, {
|
|
2820
2815
|
value: e.isSelectedDefault,
|
|
2821
2816
|
toggle: !0,
|
|
2822
2817
|
"close-on-click": !1,
|
|
2823
|
-
onClick: t[0] || (t[0] = (
|
|
2818
|
+
onClick: t[0] || (t[0] = (I) => e.$emit("update:isSelectedDefault", !e.isSelectedDefault))
|
|
2824
2819
|
}, {
|
|
2825
2820
|
default: h(() => [
|
|
2826
|
-
$(
|
|
2821
|
+
$(p(e.$t("selected")), 1)
|
|
2827
2822
|
]),
|
|
2828
2823
|
_: 1
|
|
2829
2824
|
}, 8, ["value"]),
|
|
2830
|
-
|
|
2825
|
+
u(v, { separator: "" })
|
|
2831
2826
|
], 64)) : b("", !0),
|
|
2832
|
-
|
|
2827
|
+
u(v, {
|
|
2833
2828
|
"icon-left": "arrow-up",
|
|
2834
2829
|
disabled: !n.moveOptions.up,
|
|
2835
|
-
onClick: t[1] || (t[1] = (
|
|
2830
|
+
onClick: t[1] || (t[1] = (I) => e.$emit("move", -1))
|
|
2836
2831
|
}, {
|
|
2837
2832
|
default: h(() => [
|
|
2838
|
-
$(
|
|
2833
|
+
$(p(e.$t("_common:move", { thing: e.$t("_common:up") })), 1)
|
|
2839
2834
|
]),
|
|
2840
2835
|
_: 1
|
|
2841
2836
|
}, 8, ["disabled"]),
|
|
2842
|
-
|
|
2837
|
+
u(v, {
|
|
2843
2838
|
"icon-left": "arrow-down",
|
|
2844
2839
|
disabled: !n.moveOptions.down,
|
|
2845
|
-
onClick: t[2] || (t[2] = (
|
|
2840
|
+
onClick: t[2] || (t[2] = (I) => e.$emit("move", 1))
|
|
2846
2841
|
}, {
|
|
2847
2842
|
default: h(() => [
|
|
2848
|
-
$(
|
|
2843
|
+
$(p(e.$t("_common:move", { thing: e.$t("_common:down") })), 1)
|
|
2849
2844
|
]),
|
|
2850
2845
|
_: 1
|
|
2851
2846
|
}, 8, ["disabled"]),
|
|
2852
|
-
|
|
2847
|
+
u(v, {
|
|
2853
2848
|
"icon-props": {
|
|
2854
2849
|
stroke: "red"
|
|
2855
2850
|
},
|
|
@@ -2857,7 +2852,7 @@ function on(e, t, n, o, s, i) {
|
|
|
2857
2852
|
onClick: i.onRemove
|
|
2858
2853
|
}, {
|
|
2859
2854
|
default: h(() => [
|
|
2860
|
-
$(
|
|
2855
|
+
$(p(e.$t("_common:remove")), 1)
|
|
2861
2856
|
]),
|
|
2862
2857
|
_: 1
|
|
2863
2858
|
}, 8, ["onClick"])
|
|
@@ -2865,46 +2860,46 @@ function on(e, t, n, o, s, i) {
|
|
|
2865
2860
|
_: 1
|
|
2866
2861
|
})) : b("", !0)
|
|
2867
2862
|
]),
|
|
2868
|
-
l("div",
|
|
2869
|
-
l("div",
|
|
2863
|
+
l("div", nn, [
|
|
2864
|
+
l("div", sn, [
|
|
2870
2865
|
R(l("input", {
|
|
2871
2866
|
id: `package-name-${n.packageId}`,
|
|
2872
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
2867
|
+
"onUpdate:modelValue": t[3] || (t[3] = (I) => e.name = I),
|
|
2873
2868
|
placeholder: e.$t("namePlaceholder"),
|
|
2874
2869
|
class: "block w-full rounded-lg p-0 text-xl font-bold leading-loose placeholder:text-gray-400",
|
|
2875
|
-
onKeyup: t[4] || (t[4] =
|
|
2876
|
-
}, null, 40,
|
|
2877
|
-
[
|
|
2870
|
+
onKeyup: t[4] || (t[4] = j((I) => e.$refs.editor.focus(), ["enter"]))
|
|
2871
|
+
}, null, 40, an), [
|
|
2872
|
+
[Ye, e.name]
|
|
2878
2873
|
])
|
|
2879
2874
|
]),
|
|
2880
|
-
|
|
2875
|
+
u(d, {
|
|
2881
2876
|
ref: "editor",
|
|
2882
2877
|
modelValue: i.internalDescription,
|
|
2883
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
2878
|
+
"onUpdate:modelValue": t[5] || (t[5] = (I) => i.internalDescription = I),
|
|
2884
2879
|
placeholder: e.$t("textPlaceholder"),
|
|
2885
2880
|
mentions: () => e._document.textTemplateItems,
|
|
2886
2881
|
class: "text-editor mb-4"
|
|
2887
2882
|
}, null, 8, ["modelValue", "placeholder", "mentions"]),
|
|
2888
2883
|
R((a(), c("div", {
|
|
2889
|
-
onMouseoverPassive: t[15] || (t[15] = (
|
|
2890
|
-
onMouseleavePassive: t[16] || (t[16] = (
|
|
2884
|
+
onMouseoverPassive: t[15] || (t[15] = (I) => s.isHover = !0),
|
|
2885
|
+
onMouseleavePassive: t[16] || (t[16] = (I) => s.isHover = !1)
|
|
2891
2886
|
}, [
|
|
2892
|
-
e.priceType === "openAccMaxPrice" ? (a(),
|
|
2887
|
+
e.priceType === "openAccMaxPrice" ? (a(), A(k, {
|
|
2893
2888
|
key: 0,
|
|
2894
2889
|
modelValue: e.maxTotal,
|
|
2895
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
2890
|
+
"onUpdate:modelValue": t[6] || (t[6] = (I) => e.maxTotal = I),
|
|
2896
2891
|
currency: e.currency,
|
|
2897
2892
|
"vat-type": e._document.vatType,
|
|
2898
2893
|
class: "mb-4"
|
|
2899
2894
|
}, null, 8, ["modelValue", "currency", "vat-type"])) : b("", !0),
|
|
2900
|
-
|
|
2895
|
+
u(w, {
|
|
2901
2896
|
modelValue: e.priceType,
|
|
2902
2897
|
"onUpdate:modelValue": [
|
|
2903
|
-
t[7] || (t[7] = (
|
|
2904
|
-
t[8] || (t[8] = (
|
|
2898
|
+
t[7] || (t[7] = (I) => e.priceType = I),
|
|
2899
|
+
t[8] || (t[8] = (I) => e.$emit("update:priceType", I))
|
|
2905
2900
|
]
|
|
2906
2901
|
}, null, 8, ["modelValue"]),
|
|
2907
|
-
|
|
2902
|
+
u(_, {
|
|
2908
2903
|
ref: "articleList",
|
|
2909
2904
|
_document: e._document,
|
|
2910
2905
|
articles: i.mappedPackageArticles,
|
|
@@ -2912,32 +2907,32 @@ function on(e, t, n, o, s, i) {
|
|
|
2912
2907
|
"active-house-work-type": n.activeHouseWorkType,
|
|
2913
2908
|
"hide-controls": !s.isFocus && !s.isHover,
|
|
2914
2909
|
onInput: i.onArticleInput,
|
|
2915
|
-
"onUpdate:setPricesIncVat": t[9] || (t[9] = (
|
|
2916
|
-
"onUpdate:currency": t[10] || (t[10] = (
|
|
2910
|
+
"onUpdate:setPricesIncVat": t[9] || (t[9] = (I) => e.$emit("update:setPricesIncVat", I)),
|
|
2911
|
+
"onUpdate:currency": t[10] || (t[10] = (I) => e.$emit("update:currency", I)),
|
|
2917
2912
|
onMove: i.onArticleMove,
|
|
2918
2913
|
onRemove: i.onArticleRemove,
|
|
2919
2914
|
onAdd: i.onArticleAdd,
|
|
2920
|
-
onFocus: t[11] || (t[11] = (
|
|
2915
|
+
onFocus: t[11] || (t[11] = (I) => s.isFocus = !0),
|
|
2921
2916
|
onInsert: i.onInsert
|
|
2922
2917
|
}, null, 8, ["_document", "articles", "root-price-type", "active-house-work-type", "hide-controls", "onInput", "onMove", "onRemove", "onAdd", "onInsert"]),
|
|
2923
|
-
l("div",
|
|
2918
|
+
l("div", on, [
|
|
2924
2919
|
l("div", {
|
|
2925
2920
|
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",
|
|
2926
|
-
onClick: t[12] || (t[12] = (
|
|
2921
|
+
onClick: t[12] || (t[12] = (I) => i.onArticleAdd())
|
|
2927
2922
|
}, [
|
|
2928
|
-
|
|
2923
|
+
u(m, {
|
|
2929
2924
|
type: "plus",
|
|
2930
2925
|
size: "16",
|
|
2931
2926
|
"stroke-width": "3",
|
|
2932
2927
|
class: "mr-1"
|
|
2933
2928
|
}),
|
|
2934
|
-
$(" " +
|
|
2929
|
+
$(" " + p(e.$t("addButton")), 1)
|
|
2935
2930
|
]),
|
|
2936
2931
|
R((a(), c("div", {
|
|
2937
2932
|
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",
|
|
2938
|
-
onClick: t[13] || (t[13] = (
|
|
2933
|
+
onClick: t[13] || (t[13] = (I) => i.onArticleAdd({ openModal: !0 }))
|
|
2939
2934
|
}, [
|
|
2940
|
-
|
|
2935
|
+
u(m, {
|
|
2941
2936
|
type: "zap",
|
|
2942
2937
|
size: "16",
|
|
2943
2938
|
"stroke-width": "2.5"
|
|
@@ -2949,11 +2944,11 @@ function on(e, t, n, o, s, i) {
|
|
|
2949
2944
|
}]
|
|
2950
2945
|
])
|
|
2951
2946
|
]),
|
|
2952
|
-
|
|
2947
|
+
u(T, {
|
|
2953
2948
|
_document: e._document,
|
|
2954
2949
|
"base-path": `${e._value.basePath}`,
|
|
2955
2950
|
"package-id": n.packageId,
|
|
2956
|
-
onInput: t[14] || (t[14] = (
|
|
2951
|
+
onInput: t[14] || (t[14] = (I) => e.$emit("input", I))
|
|
2957
2952
|
}, null, 8, ["_document", "base-path", "package-id"])
|
|
2958
2953
|
], 32)), [
|
|
2959
2954
|
[
|
|
@@ -2966,12 +2961,12 @@ function on(e, t, n, o, s, i) {
|
|
|
2966
2961
|
])
|
|
2967
2962
|
]);
|
|
2968
2963
|
}
|
|
2969
|
-
const
|
|
2964
|
+
const ln = /* @__PURE__ */ M(Xi, [["render", rn], ["__scopeId", "data-v-64642fe7"]]), cn = (e) => (e || []).slice(0, 1).map((t) => ({
|
|
2970
2965
|
...t,
|
|
2971
2966
|
isSelected: !0,
|
|
2972
2967
|
isSelectedDefault: !0,
|
|
2973
2968
|
toggable: !1
|
|
2974
|
-
})),
|
|
2969
|
+
})), dn = (e) => {
|
|
2975
2970
|
const t = x(e, "0.data.prices.type") || "fixed";
|
|
2976
2971
|
return (e || []).map((n, o) => ({
|
|
2977
2972
|
...n,
|
|
@@ -2989,7 +2984,7 @@ const rn = /* @__PURE__ */ D(Xi, [["render", on], ["__scopeId", "data-v-64642fe7
|
|
|
2989
2984
|
}
|
|
2990
2985
|
}
|
|
2991
2986
|
}));
|
|
2992
|
-
},
|
|
2987
|
+
}, un = (e = []) => {
|
|
2993
2988
|
let t = !1;
|
|
2994
2989
|
return e.map((n) => {
|
|
2995
2990
|
const o = {
|
|
@@ -3004,13 +2999,13 @@ const rn = /* @__PURE__ */ D(Xi, [["render", on], ["__scopeId", "data-v-64642fe7
|
|
|
3004
2999
|
return (o.isSelected || o.isSelectedDefault) && (t = !0), o;
|
|
3005
3000
|
}, []);
|
|
3006
3001
|
};
|
|
3007
|
-
function
|
|
3008
|
-
if (e === "single") return
|
|
3009
|
-
if (e === "checkbox") return
|
|
3010
|
-
if (e === "radio") return
|
|
3002
|
+
function pn(e, ...t) {
|
|
3003
|
+
if (e === "single") return cn(...t);
|
|
3004
|
+
if (e === "checkbox") return dn(...t);
|
|
3005
|
+
if (e === "radio") return un(...t);
|
|
3011
3006
|
throw new Error(`Package filter type '${e}' is not implemented`);
|
|
3012
3007
|
}
|
|
3013
|
-
const
|
|
3008
|
+
const mn = {
|
|
3014
3009
|
name: "PackageGroupEdit",
|
|
3015
3010
|
i18nOptions: {
|
|
3016
3011
|
namespaces: "PackageGroupEdit",
|
|
@@ -3048,15 +3043,15 @@ const pn = {
|
|
|
3048
3043
|
}
|
|
3049
3044
|
},
|
|
3050
3045
|
components: {
|
|
3051
|
-
ErrorCallout:
|
|
3052
|
-
PackageItem:
|
|
3046
|
+
ErrorCallout: me,
|
|
3047
|
+
PackageItem: ln,
|
|
3053
3048
|
PackageGroupSelect: kt,
|
|
3054
3049
|
CCallout: _e,
|
|
3055
|
-
CDropdown:
|
|
3056
|
-
CDropdownItem:
|
|
3050
|
+
CDropdown: Y,
|
|
3051
|
+
CDropdownItem: K
|
|
3057
3052
|
},
|
|
3058
3053
|
mixins: [
|
|
3059
|
-
|
|
3054
|
+
F([
|
|
3060
3055
|
"type",
|
|
3061
3056
|
// 'title',
|
|
3062
3057
|
"packages",
|
|
@@ -3160,7 +3155,7 @@ const pn = {
|
|
|
3160
3155
|
if (!this.persistedGroup || !this.persistedGroup.type) return;
|
|
3161
3156
|
let { packages: t, articles: n } = this.persistedGroup;
|
|
3162
3157
|
if (!t.length) return;
|
|
3163
|
-
if (e !== this.persistedGroup.type && (t =
|
|
3158
|
+
if (e !== this.persistedGroup.type && (t = pn(e, t)), e === "single" && n.length) {
|
|
3164
3159
|
const [{ packageId: s }] = t;
|
|
3165
3160
|
n = n.filter((i) => i.packageId === s);
|
|
3166
3161
|
}
|
|
@@ -3171,7 +3166,7 @@ const pn = {
|
|
|
3171
3166
|
this.$emit("input", { key: "articles", value: o }), this.$emit("input", { key: `${[this._value.packages]}`, value: t });
|
|
3172
3167
|
},
|
|
3173
3168
|
addPackage(e = {}) {
|
|
3174
|
-
const t =
|
|
3169
|
+
const t = Ze(), n = this.type === "checkbox" && this.packages.length ? this.packages[0].data.prices.type : "fixed", o = this.currency || this.defaultCurrency, s = {
|
|
3175
3170
|
isSelected: this.type === "single",
|
|
3176
3171
|
isSelectedDefault: this.type === "single",
|
|
3177
3172
|
toggable: !0,
|
|
@@ -3245,35 +3240,35 @@ const pn = {
|
|
|
3245
3240
|
return e > 0 && (n.up = !0), e < t - 1 && (n.down = !0), n;
|
|
3246
3241
|
},
|
|
3247
3242
|
moveItem(e, t) {
|
|
3248
|
-
const n =
|
|
3243
|
+
const n = ve(this.packages, e, t);
|
|
3249
3244
|
this.$emit("input", { key: this._value.packages, value: n });
|
|
3250
3245
|
}
|
|
3251
3246
|
}
|
|
3252
|
-
},
|
|
3247
|
+
}, hn = { class: "package-group-root font-inter" }, gn = { key: 0 }, vn = { style: { position: "absolute", right: "0", top: "-10px", transform: "translateY(-100%)", "z-index": "2" } }, fn = { class: "pb-4" }, yn = {
|
|
3253
3248
|
key: 2,
|
|
3254
3249
|
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%)" }
|
|
3255
|
-
},
|
|
3250
|
+
}, kn = {
|
|
3256
3251
|
key: 4,
|
|
3257
3252
|
class: "flex w-full flex-col items-center justify-center"
|
|
3258
|
-
},
|
|
3253
|
+
}, bn = { style: { width: "100%" } }, wn = {
|
|
3259
3254
|
key: 0,
|
|
3260
3255
|
class: "package-placeholder bg-gray-100",
|
|
3261
3256
|
style: { color: "hsl(0, 0%, 24%)", "font-weight": "500" }
|
|
3262
|
-
},
|
|
3257
|
+
}, In = {
|
|
3263
3258
|
style: { "vertical-align": "text-bottom", "margin-right": "3px" },
|
|
3264
3259
|
width: "16",
|
|
3265
3260
|
height: "16",
|
|
3266
3261
|
viewBox: "0 0 18 14",
|
|
3267
3262
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3268
|
-
},
|
|
3263
|
+
}, $n = { class: "flex w-full" };
|
|
3269
3264
|
function _n(e, t, n, o, s, i) {
|
|
3270
|
-
const f = g("PackageGroupSelect"), v = g("ErrorCallout"), y = g("CButton"),
|
|
3271
|
-
return a(), c("div",
|
|
3272
|
-
e.type ? (a(), c(
|
|
3273
|
-
l("div",
|
|
3274
|
-
|
|
3265
|
+
const f = g("PackageGroupSelect"), v = g("ErrorCallout"), y = g("CButton"), d = g("CDropdownItem"), k = g("CDropdown"), w = g("CCallout"), _ = g("PackageItem");
|
|
3266
|
+
return a(), c("div", hn, [
|
|
3267
|
+
e.type ? (a(), c(C, { key: 1 }, [
|
|
3268
|
+
l("div", vn, [
|
|
3269
|
+
u(k, null, {
|
|
3275
3270
|
trigger: h(() => [
|
|
3276
|
-
|
|
3271
|
+
u(y, {
|
|
3277
3272
|
type: "none",
|
|
3278
3273
|
size: "normal",
|
|
3279
3274
|
pattern: "secondary",
|
|
@@ -3282,22 +3277,22 @@ function _n(e, t, n, o, s, i) {
|
|
|
3282
3277
|
})
|
|
3283
3278
|
]),
|
|
3284
3279
|
default: h(() => [
|
|
3285
|
-
|
|
3280
|
+
u(d, { onClick: i.onResetType }, {
|
|
3286
3281
|
default: h(() => [
|
|
3287
|
-
$(
|
|
3282
|
+
$(p(e.$t("_common:change", {
|
|
3288
3283
|
thing: e.$t("_common:price.proposal").toLowerCase()
|
|
3289
3284
|
})), 1)
|
|
3290
3285
|
]),
|
|
3291
3286
|
_: 1
|
|
3292
3287
|
}, 8, ["onClick"]),
|
|
3293
|
-
|
|
3288
|
+
u(d, {
|
|
3294
3289
|
value: !!e.hideGroupPrice,
|
|
3295
3290
|
"close-on-click": !1,
|
|
3296
3291
|
toggle: "",
|
|
3297
|
-
onInput: t[1] || (t[1] = (
|
|
3292
|
+
onInput: t[1] || (t[1] = (m) => e.hideGroupPrice = m)
|
|
3298
3293
|
}, {
|
|
3299
3294
|
default: h(() => [
|
|
3300
|
-
$(
|
|
3295
|
+
$(p(e.$t("hideGroupPrice")), 1)
|
|
3301
3296
|
]),
|
|
3302
3297
|
_: 1
|
|
3303
3298
|
}, 8, ["value"])
|
|
@@ -3305,61 +3300,61 @@ function _n(e, t, n, o, s, i) {
|
|
|
3305
3300
|
_: 1
|
|
3306
3301
|
})
|
|
3307
3302
|
]),
|
|
3308
|
-
e.type === "checkbox" && !i.internalPackages.find((
|
|
3303
|
+
e.type === "checkbox" && !i.internalPackages.find((m) => m.toggable === !1) ? (a(), A(w, {
|
|
3309
3304
|
key: 0,
|
|
3310
3305
|
title: e.$t("base"),
|
|
3311
3306
|
class: "w-full"
|
|
3312
3307
|
}, {
|
|
3313
3308
|
default: h(() => [
|
|
3314
|
-
l("div",
|
|
3315
|
-
|
|
3309
|
+
l("div", fn, p(e.$t("basePlaceholder")), 1),
|
|
3310
|
+
u(y, {
|
|
3316
3311
|
type: "secondary",
|
|
3317
3312
|
size: "small",
|
|
3318
3313
|
style: { "font-weight": "600" },
|
|
3319
|
-
onClick: t[2] || (t[2] = (
|
|
3314
|
+
onClick: t[2] || (t[2] = (m) => i.addPackage({
|
|
3320
3315
|
isSelected: !0,
|
|
3321
3316
|
isSelectedDefault: !0,
|
|
3322
3317
|
toggable: !1
|
|
3323
3318
|
}))
|
|
3324
3319
|
}, {
|
|
3325
3320
|
default: h(() => [
|
|
3326
|
-
$(
|
|
3321
|
+
$(p(e.$t("_common:add", { thing: e.$t("base").toLowerCase() })), 1)
|
|
3327
3322
|
]),
|
|
3328
3323
|
_: 1
|
|
3329
3324
|
})
|
|
3330
3325
|
]),
|
|
3331
3326
|
_: 1
|
|
3332
|
-
}, 8, ["title"])) : (a(),
|
|
3327
|
+
}, 8, ["title"])) : (a(), A(re, {
|
|
3333
3328
|
key: 1,
|
|
3334
3329
|
name: "section-list",
|
|
3335
3330
|
tag: "div"
|
|
3336
3331
|
}, {
|
|
3337
3332
|
default: h(() => [
|
|
3338
|
-
(a(!0), c(
|
|
3339
|
-
key:
|
|
3333
|
+
(a(!0), c(C, null, S(i.topRowPackages, (m, T) => (a(), c("div", {
|
|
3334
|
+
key: m.packageId,
|
|
3340
3335
|
class: "section-item pb-4"
|
|
3341
3336
|
}, [
|
|
3342
|
-
|
|
3337
|
+
u(_, {
|
|
3343
3338
|
_document: e._document,
|
|
3344
3339
|
_value: {
|
|
3345
|
-
isSelectedDefault: `${e._value.packages}[${
|
|
3346
|
-
isSelected: `${e._value.packages}[${
|
|
3347
|
-
name: `${e._value.packages}[${
|
|
3348
|
-
description: `${e._value.packages}[${
|
|
3349
|
-
priceType: `${e._value.packages}[${
|
|
3350
|
-
maxTotal: `${e._value.packages}[${
|
|
3351
|
-
basePath: `${e._value.packages}[${
|
|
3352
|
-
currency: `${e._value.packages}[${
|
|
3340
|
+
isSelectedDefault: `${e._value.packages}[${m.index}].isSelectedDefault`,
|
|
3341
|
+
isSelected: `${e._value.packages}[${m.index}].isSelected`,
|
|
3342
|
+
name: `${e._value.packages}[${m.index}].data.name`,
|
|
3343
|
+
description: `${e._value.packages}[${m.index}].data.description`,
|
|
3344
|
+
priceType: `${e._value.packages}[${m.index}].data.prices.type`,
|
|
3345
|
+
maxTotal: `${e._value.packages}[${m.index}].data.prices.maxTotal`,
|
|
3346
|
+
basePath: `${e._value.packages}[${m.index}]`,
|
|
3347
|
+
currency: `${e._value.packages}[${m.index}].data.prices.currency`
|
|
3353
3348
|
},
|
|
3354
3349
|
type: e.type,
|
|
3355
3350
|
"active-house-work-type": i.houseWorkType,
|
|
3356
|
-
toggable:
|
|
3357
|
-
"package-id":
|
|
3358
|
-
"move-options": i.moveOptions(
|
|
3351
|
+
toggable: m.toggable,
|
|
3352
|
+
"package-id": m.packageId,
|
|
3353
|
+
"move-options": i.moveOptions(T, i.topRowPackages.length),
|
|
3359
3354
|
onInput: t[3] || (t[3] = (r) => e.$emit("input", r)),
|
|
3360
3355
|
onAdd: t[4] || (t[4] = (r) => e.$emit("add", r)),
|
|
3361
|
-
"onUpdate:isSelectedDefault": (r) => i.onInputSelectedDefault(
|
|
3362
|
-
"onUpdate:priceType": (r) => i.onInputPriceType(
|
|
3356
|
+
"onUpdate:isSelectedDefault": (r) => i.onInputSelectedDefault(m.index, r),
|
|
3357
|
+
"onUpdate:priceType": (r) => i.onInputPriceType(m.index, r),
|
|
3363
3358
|
"onUpdate:setPricesIncVat": t[5] || (t[5] = (r) => {
|
|
3364
3359
|
e.$emit("input", {
|
|
3365
3360
|
key: "data.formSettings.setPricesIncVat",
|
|
@@ -3368,47 +3363,47 @@ function _n(e, t, n, o, s, i) {
|
|
|
3368
3363
|
}),
|
|
3369
3364
|
"onUpdate:currency": t[6] || (t[6] = (r) => e.$emit("input", { key: "currency", value: r })),
|
|
3370
3365
|
onRemove: t[7] || (t[7] = (r) => e.$emit("remove", r)),
|
|
3371
|
-
onRemovePackage: (r) => i.removeByIndex(
|
|
3372
|
-
onMove: (r) => i.moveItem(
|
|
3366
|
+
onRemovePackage: (r) => i.removeByIndex(m.index),
|
|
3367
|
+
onMove: (r) => i.moveItem(m.index, i.topRowPackages[T + r].index)
|
|
3373
3368
|
}, null, 8, ["_document", "_value", "type", "active-house-work-type", "toggable", "package-id", "move-options", "onUpdate:isSelectedDefault", "onUpdate:priceType", "onRemovePackage", "onMove"])
|
|
3374
3369
|
]))), 128))
|
|
3375
3370
|
]),
|
|
3376
3371
|
_: 1
|
|
3377
3372
|
})),
|
|
3378
|
-
e.type === "checkbox" && i.topRowPackages.length && i.bottomRowPackages.length ? (a(), c("div",
|
|
3379
|
-
e.type === "checkbox" ? (a(),
|
|
3373
|
+
e.type === "checkbox" && i.topRowPackages.length && i.bottomRowPackages.length ? (a(), c("div", yn)) : b("", !0),
|
|
3374
|
+
e.type === "checkbox" ? (a(), A(re, {
|
|
3380
3375
|
key: 3,
|
|
3381
3376
|
name: "section-list",
|
|
3382
3377
|
tag: "div",
|
|
3383
3378
|
style: { "margin-bottom": "calc(1 * var(--rem))" }
|
|
3384
3379
|
}, {
|
|
3385
3380
|
default: h(() => [
|
|
3386
|
-
(a(!0), c(
|
|
3387
|
-
key:
|
|
3381
|
+
(a(!0), c(C, null, S(i.bottomRowPackages, (m, T) => (a(), c("div", {
|
|
3382
|
+
key: m.packageId,
|
|
3388
3383
|
class: "section-item",
|
|
3389
3384
|
style: { padding: "calc(1 * var(--rem)) 0" }
|
|
3390
3385
|
}, [
|
|
3391
|
-
|
|
3386
|
+
u(_, {
|
|
3392
3387
|
_document: e._document,
|
|
3393
3388
|
_value: {
|
|
3394
|
-
isSelectedDefault: `${e._value.packages}[${
|
|
3395
|
-
isSelected: `${e._value.packages}[${
|
|
3396
|
-
name: `${e._value.packages}[${
|
|
3397
|
-
description: `${e._value.packages}[${
|
|
3398
|
-
priceType: `${e._value.packages}[${
|
|
3399
|
-
maxTotal: `${e._value.packages}[${
|
|
3400
|
-
basePath: `${e._value.packages}[${
|
|
3401
|
-
currency: `${e._value.packages}[${
|
|
3389
|
+
isSelectedDefault: `${e._value.packages}[${m.index}].isSelectedDefault`,
|
|
3390
|
+
isSelected: `${e._value.packages}[${m.index}].isSelected`,
|
|
3391
|
+
name: `${e._value.packages}[${m.index}].data.name`,
|
|
3392
|
+
description: `${e._value.packages}[${m.index}].data.description`,
|
|
3393
|
+
priceType: `${e._value.packages}[${m.index}].data.prices.type`,
|
|
3394
|
+
maxTotal: `${e._value.packages}[${m.index}].data.prices.maxTotal`,
|
|
3395
|
+
basePath: `${e._value.packages}[${m.index}]`,
|
|
3396
|
+
currency: `${e._value.packages}[${m.index}].data.prices.currency`
|
|
3402
3397
|
},
|
|
3403
3398
|
type: e.type,
|
|
3404
3399
|
"active-house-work-type": i.houseWorkType,
|
|
3405
|
-
"package-id":
|
|
3406
|
-
"move-options": i.moveOptions(
|
|
3400
|
+
"package-id": m.packageId,
|
|
3401
|
+
"move-options": i.moveOptions(T, i.bottomRowPackages.length),
|
|
3407
3402
|
class: "package-item",
|
|
3408
3403
|
onInput: t[8] || (t[8] = (r) => e.$emit("input", r)),
|
|
3409
3404
|
onAdd: t[9] || (t[9] = (r) => e.$emit("add", r)),
|
|
3410
|
-
"onUpdate:isSelectedDefault": (r) => i.onInputSelectedDefault(
|
|
3411
|
-
"onUpdate:priceType": (r) => i.onInputPriceType(
|
|
3405
|
+
"onUpdate:isSelectedDefault": (r) => i.onInputSelectedDefault(m.index, r),
|
|
3406
|
+
"onUpdate:priceType": (r) => i.onInputPriceType(m.index, r),
|
|
3412
3407
|
"onUpdate:setPricesIncVat": t[10] || (t[10] = (r) => {
|
|
3413
3408
|
e.$emit("input", {
|
|
3414
3409
|
key: "data.formSettings.setPricesIncVat",
|
|
@@ -3416,51 +3411,51 @@ function _n(e, t, n, o, s, i) {
|
|
|
3416
3411
|
}), s.setPricesDirty = !0;
|
|
3417
3412
|
}),
|
|
3418
3413
|
onRemove: t[11] || (t[11] = (r) => e.$emit("remove", r)),
|
|
3419
|
-
onRemovePackage: (r) => i.removeByIndex(
|
|
3420
|
-
onMove: (r) => i.moveItem(
|
|
3414
|
+
onRemovePackage: (r) => i.removeByIndex(m.index),
|
|
3415
|
+
onMove: (r) => i.moveItem(m.index, i.bottomRowPackages[T + r].index)
|
|
3421
3416
|
}, null, 8, ["_document", "_value", "type", "active-house-work-type", "package-id", "move-options", "onUpdate:isSelectedDefault", "onUpdate:priceType", "onRemovePackage", "onMove"])
|
|
3422
3417
|
]))), 128))
|
|
3423
3418
|
]),
|
|
3424
3419
|
_: 1
|
|
3425
3420
|
})) : b("", !0),
|
|
3426
|
-
e.type !== "single" || !e.packages.length ? (a(), c("div",
|
|
3427
|
-
l("div",
|
|
3428
|
-
e.type === "radio" && !e.packages.length ? (a(), c("div",
|
|
3429
|
-
(a(), c("svg",
|
|
3421
|
+
e.type !== "single" || !e.packages.length ? (a(), c("div", kn, [
|
|
3422
|
+
l("div", bn, [
|
|
3423
|
+
e.type === "radio" && !e.packages.length ? (a(), c("div", wn, [
|
|
3424
|
+
(a(), c("svg", In, t[13] || (t[13] = [
|
|
3430
3425
|
l("path", {
|
|
3431
3426
|
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",
|
|
3432
3427
|
fill: "#000",
|
|
3433
3428
|
"fill-rule": "evenodd"
|
|
3434
3429
|
}, null, -1)
|
|
3435
3430
|
]))),
|
|
3436
|
-
$(" " +
|
|
3431
|
+
$(" " + p(e.$t("selectablePlaceholder")), 1)
|
|
3437
3432
|
])) : b("", !0)
|
|
3438
3433
|
]),
|
|
3439
|
-
n.validator.$invalid && n.validator.$dirty ? (a(),
|
|
3434
|
+
n.validator.$invalid && n.validator.$dirty ? (a(), A(v, {
|
|
3440
3435
|
key: 0,
|
|
3441
3436
|
message: e.$t("error.minOnePackage"),
|
|
3442
3437
|
style: { margin: "calc(1 * var(--rem)) 0 calc(1 * var(--rem)) 0" }
|
|
3443
3438
|
}, null, 8, ["message"])) : b("", !0),
|
|
3444
|
-
l("div",
|
|
3445
|
-
|
|
3439
|
+
l("div", $n, [
|
|
3440
|
+
u(y, {
|
|
3446
3441
|
type: "secondary",
|
|
3447
3442
|
outlined: "",
|
|
3448
3443
|
"icon-left": "plus",
|
|
3449
3444
|
style: { "border-color": "hsl(0, 0%, 82%)" },
|
|
3450
|
-
onClick: t[12] || (t[12] = (
|
|
3445
|
+
onClick: t[12] || (t[12] = (m) => i.addPackage())
|
|
3451
3446
|
}, {
|
|
3452
3447
|
default: h(() => [
|
|
3453
|
-
$(
|
|
3448
|
+
$(p(e.$t("add")), 1)
|
|
3454
3449
|
]),
|
|
3455
3450
|
_: 1
|
|
3456
3451
|
})
|
|
3457
3452
|
])
|
|
3458
3453
|
])) : b("", !0)
|
|
3459
|
-
], 64)) : (a(), c("div",
|
|
3460
|
-
|
|
3461
|
-
onInput: t[0] || (t[0] = (
|
|
3454
|
+
], 64)) : (a(), c("div", gn, [
|
|
3455
|
+
u(f, {
|
|
3456
|
+
onInput: t[0] || (t[0] = (m) => i.onSelectType(m))
|
|
3462
3457
|
}),
|
|
3463
|
-
n.validator.$invalid && n.validator.$dirty ? (a(),
|
|
3458
|
+
n.validator.$invalid && n.validator.$dirty ? (a(), A(v, {
|
|
3464
3459
|
key: 0,
|
|
3465
3460
|
message: e.$t("error.selectType"),
|
|
3466
3461
|
style: { "padding-bottom": "calc(1.5 * var(--rem))" }
|
|
@@ -3468,7 +3463,7 @@ function _n(e, t, n, o, s, i) {
|
|
|
3468
3463
|
]))
|
|
3469
3464
|
]);
|
|
3470
3465
|
}
|
|
3471
|
-
const
|
|
3466
|
+
const Bn = /* @__PURE__ */ M(mn, [["render", _n], ["__scopeId", "data-v-03549668"]]);
|
|
3472
3467
|
export {
|
|
3473
|
-
|
|
3468
|
+
Bn as default
|
|
3474
3469
|
};
|