@cling-se/widget 0.22.0 → 0.22.3
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 +18 -0
- package/dist/{AddClientCallout-CxbvK6ZG.js → AddClientCallout-Bk_RMqww.js} +11 -11
- package/dist/{AnswerModal-vTetGwVn.js → AnswerModal-BQ9VR89q.js} +4 -4
- package/dist/{AttachmentItem-DSHNRIq_.js → AttachmentItem-DnlOo6Ar.js} +11 -11
- package/dist/{BaseUpload-CWaM_bb7.js → BaseUpload-DCPt9YUo.js} +2 -2
- package/dist/{BlockMedia-B1T85G4R.js → BlockMedia-najJzMYF.js} +9 -9
- package/dist/{CCallout-BieMmWa4.js → CCallout-DCvCm65V.js} +1 -1
- package/dist/{CCurrencyDropdown-DKWtCUE_.js → CCurrencyDropdown-DuJxa77L.js} +3 -3
- package/dist/{CDropdownItem-pNNH9fV3.js → CDropdownItem-DyWrpOb-.js} +7 -7
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-B57OaS--.js → CFormField.vue_vue_type_script_setup_true_lang-CSMB_HdZ.js} +4 -4
- package/dist/{CPhoneFormat-CyrQRGmd.js → CPhoneFormat-BmGCMx5K.js} +1 -1
- package/dist/{CPhoneInput-BQHgpUCY.js → CPhoneInput-Cx3OiUWQ.js} +5 -5
- package/dist/{CPriceInput-DnFN-I6p.js → CPriceInput-BwBsHKnn.js} +2 -2
- package/dist/{CSelect-DB4-JxH8.js → CSelect-BlPNOr_g.js} +1 -1
- package/dist/{CSkeleton-DpRDxR6D.js → CSkeleton-DRbFIBZS.js} +1 -1
- package/dist/{ClientAutocomplete-BjwvkuJ-.js → ClientAutocomplete-DS08QQ5C.js} +7 -7
- package/dist/{ClientModal-oBN2VSio.js → ClientModal-DXtdxLj9.js} +184 -198
- package/dist/{ColorPicker-B5rSvXLV.js → ColorPicker-CeJ8YHt-.js} +1 -1
- package/dist/{CompanyModal-QrsUL6Et.js → CompanyModal-DzE3OIG0.js} +75 -80
- package/dist/{ContentWrapper-Yx-KMsfH.js → ContentWrapper-CBd8srOJ.js} +15 -15
- package/dist/{CoverBlockSettings-C8giTiEZ.js → CoverBlockSettings-D9K1BnJk.js} +7 -7
- package/dist/{DocAnswer-Djyhwfrp.js → DocAnswer-By6hA4eC.js} +2 -2
- package/dist/{DocDetails-Dv6noPvB.js → DocDetails-C-ZRzvrA.js} +4 -4
- package/dist/{DocForm-BFHchJ6w.js → DocForm-DvT2fhEM.js} +248 -266
- package/dist/{DocFormSend-K2rbjklj.js → DocFormSend-CKeZn--O.js} +2 -2
- package/dist/{DocLinks-DpUl89XR.js → DocLinks-w8pfegGu.js} +2 -2
- package/dist/{DocModalBase-BlTZ8CY3.js → DocModalBase-B2IgIy_9.js} +1 -1
- package/dist/{DocPrint-Bmfl4Abk.js → DocPrint-eUTCgg8g.js} +1 -1
- package/dist/{DocReceipt-3wi5YXqR.js → DocReceipt-BD0WVtId.js} +2 -2
- package/dist/{DocSendReminder-CHqgC_wM.js → DocSendReminder-EjkK-9rh.js} +1 -1
- package/dist/{DocTextEditor-BGzwRwjt.js → DocTextEditor-U8ZdSDAr.js} +10 -10
- package/dist/{DocTimeline-BG7ldFgR.js → DocTimeline-D30HTE_o.js} +8 -8
- package/dist/{DocumentClient-CLCAh4lI.js → DocumentClient-BBEmQHMi.js} +5 -5
- package/dist/{DocumentLayout-DHSEYClM.js → DocumentLayout-BLeVh3wu.js} +5 -5
- package/dist/{DocumentLogotype-0jH2-sr7.js → DocumentLogotype-BauCUJ8j.js} +29 -33
- package/dist/{DocumentVoided-BAS8mATO.js → DocumentVoided-CfQdzPJa.js} +1 -1
- package/dist/{EmbedInput-DnSz1tbL.js → EmbedInput-D4QrX2Gm.js} +3 -3
- package/dist/{EmbedSettings-BQ1kKupC.js → EmbedSettings-DVZLouo9.js} +3 -3
- package/dist/{ErrorCallout-XMtdcNvE.js → ErrorCallout-BiLLFJek.js} +1 -1
- package/dist/{FilePreviewModal-Bv28RVrN.js → FilePreviewModal-BusalEt3.js} +20 -20
- package/dist/{Flag-CcF7qtHi.js → Flag-BxkDKlP4.js} +1 -1
- package/dist/{HeaderSettings-SKEJyM9y.js → HeaderSettings-DIWro6fR.js} +9 -9
- package/dist/{ImageSelectModal-BNXs_Rfh.js → ImageSelectModal-CL52MP8Z.js} +3 -3
- package/dist/{ImageUploadWrapper-BmlB0qHZ.js → ImageUploadWrapper-2gjzeenp.js} +2 -2
- package/dist/{Index-mcDMCki9.js → Index--EACh-v2.js} +276 -301
- package/dist/{Index-BNetDL7G.js → Index-4FHzyecP.js} +4 -4
- package/dist/{Index-Bxi4pinD.js → Index-BPuHAiJR.js} +3 -3
- package/dist/Index-BcIg-95c.js +342 -0
- package/dist/{Index-LNHTL5EH.js → Index-Bge6Bknk.js} +1 -1
- package/dist/{Index-B1mvOHsr.js → Index-BkMzG22-.js} +5 -5
- package/dist/{Index-Bz6vrP4D.js → Index-Bn8_-gUC.js} +4 -4
- package/dist/{Index-BS1J5b8c.js → Index-CJZBOrgw.js} +3 -3
- package/dist/{Index-Ca6-XJ1q.js → Index-CQzTAmTM.js} +14 -14
- package/dist/{Index-CQSkYi57.js → Index-CSNH8muS.js} +6 -6
- package/dist/{Index-CYjEFdMF.js → Index-CZljdL3w.js} +2 -2
- package/dist/{Index-ec9osPpw.js → Index-CcKgWOG7.js} +4 -4
- package/dist/{Index-CVoJGfTj.js → Index-CcZ48rLC.js} +2 -2
- package/dist/{Index-CfpNMWEI.js → Index-Cen56jNO.js} +4 -4
- package/dist/{Index-Ra_-tX11.js → Index-Cq90eS9E.js} +7 -7
- package/dist/{Index-B_R1p7cp.js → Index-CsLEoK-y.js} +1 -1
- package/dist/{Index-BRIv1n05.js → Index-CtRE9_p3.js} +4 -4
- package/dist/{Index-C2Jql1QC.js → Index-CuaK6bnN.js} +8 -8
- package/dist/{Index-DRadSzmh.js → Index-DMEoYhVr.js} +3 -3
- package/dist/{Index-DU19comM.js → Index-DO0vFJCv.js} +6 -6
- package/dist/{Index-CDdxLKdQ.js → Index-DQMuQ2js.js} +4 -4
- package/dist/{Index-B4EqZ9op.js → Index-DYkWCXz0.js} +5 -5
- package/dist/Index-DdSDsjP8.js +4 -0
- package/dist/{Index-GmMgg4ZI.js → Index-DdfunbXo.js} +7 -7
- package/dist/{Index-BS-ERsZ7.js → Index-DjMRBozk.js} +9 -9
- package/dist/{Index-BLC_eYvf.js → Index-DxWtScO2.js} +2 -2
- package/dist/{Index-Dz3beMLO.js → Index-FSjvo5ex.js} +8 -8
- package/dist/{Index-Coef67Wb.js → Index-N-TCcUiZ.js} +5 -5
- package/dist/{Index-BDW4tvrc.js → Index-bKQSbdxw.js} +2 -2
- package/dist/{Index-B8soD6pI.js → Index-jXUY8fSe.js} +2 -2
- package/dist/{Index-Bd3gjqXz.js → Index-m_q4QkfZ.js} +4 -4
- package/dist/{Index-C9k2n-HK.js → Index-qcFSIYDB.js} +4 -4
- package/dist/{Index-DquGwrE6.js → Index-qzpjRFUp.js} +37 -40
- package/dist/{Index-C6r2p8Qd.js → Index-u00PSjX2.js} +3 -3
- package/dist/{Index.vue_vue_type_script_lang-DOtAXSQl.js → Index.vue_vue_type_script_lang-MIgEx7dJ.js} +2 -2
- package/dist/{InputToggleRow-DH7USYPf.js → InputToggleRow-Dv5l7HsH.js} +1 -1
- package/dist/{ManualPopover-JDRhdC8G.js → ManualPopover-B-VE0HPu.js} +1 -1
- package/dist/{MediaWrapper-DdbmCwGw.js → MediaWrapper-m5wr6sG8.js} +3 -3
- package/dist/{NotBindingText-CwV-MkgL.js → NotBindingText-JKkfTNyO.js} +2 -2
- package/dist/{PackageGroup-CH-8hyAF.js → PackageGroup-CXZ0Lsz9.js} +5 -5
- package/dist/{PdfTerms-BBeN_k6I.js → PdfTerms-Cb_px74_.js} +2 -2
- package/dist/{PdfViewer-Du_M79jv.js → PdfViewer-1OOdNeVT.js} +2 -2
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-BKJdTPrg.js → PlainHtml.vue_vue_type_script_setup_true_lang-C12eZIH1.js} +1 -1
- package/dist/{PriceHeader-Be2QwWzs.js → PriceHeader-BzPZtNYJ.js} +7 -7
- package/dist/SearchApi-CBg1KY-O.js +156 -0
- package/dist/{SendForm-BIIwVZwY.js → SendForm-C-VTNpve.js} +540 -528
- package/dist/{Setup-DBbHXz4_.js → Setup-BmlGbBrM.js} +1 -1
- package/dist/{SmartList-C2JUKK2W.js → SmartList-B2ZpLA8V.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-CzrvSsIg.js → Sortable.vue_vue_type_script_setup_true_lang-CcTjzIyK.js} +1 -1
- package/dist/TermsSettings-0V_cVRPI.js +198 -0
- package/dist/{ThemeColorRow-7KF7icN8.js → ThemeColorRow-BwSFCUGN.js} +3 -3
- package/dist/{ToggleBinding-w8lNunzO.js → ToggleBinding-sJX5jVgf.js} +4 -4
- package/dist/{UploadModal-BRdimOyC.js → UploadModal-CvFB_11W.js} +2 -2
- package/dist/{VideoPlayerInput-BHmr7HvX.js → VideoPlayerInput-CmjzzRDj.js} +4 -4
- package/dist/{VideoPlayerSettings-fI8gpjks.js → VideoPlayerSettings-TD3__Ui0.js} +2 -2
- package/dist/{VideoSelectModal-Beq5yE0M.js → VideoSelectModal-DWohaFSL.js} +3 -3
- package/dist/{focusDrawerMixin-vhY6JO7g.js → focusDrawerMixin-CReYj2SY.js} +1 -1
- package/dist/{formDrawerState-ChHVYfc3.js → formDrawerState-Cf5itKVM.js} +1 -1
- package/dist/{fortnoxTheme-BGyYnb8i.js → fortnoxTheme-IeycOfWB.js} +1 -1
- package/dist/{helpers-Dw4CluFv.js → helpers-CUo71XPG.js} +1 -1
- package/dist/{index-DihGX5od.js → index-BEKHEkFO.js} +8 -8
- package/dist/{index-C-tsPusW.js → index-CFm8CNEc.js} +1 -1
- package/dist/{index-BUPqyA87.js → index-CrQzVsCT.js} +1 -1
- package/dist/{index-syUJ22zc.js → index-DCq6gjGI.js} +8 -7
- package/dist/{index-BcnDsk0Z.js → index-DzyXygjd.js} +1 -1
- package/dist/{index-CPfrJsi9.js → index-FsgsKPqg.js} +1 -1
- package/dist/{index-DJYVhEQt.js → index-MMzIZOFI.js} +3 -3
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +141 -141
- package/dist/{main-BBhJGb7I.js → main-D4afcIIy.js} +3821 -3888
- package/dist/{mapFormMixin-CCKubywa.js → mapFormMixin-DcTZ2NvY.js} +3 -4
- package/dist/{omit-Cdd54eFA.js → omit-Bq20xrhI.js} +1 -1
- package/dist/{splitpanes-nCfEUpmu.js → splitpanes-EHoHU6iQ.js} +1 -1
- package/dist/{template-B-Ds8x_U.js → template-CDxtqtv6.js} +1 -1
- package/dist/{tippy.esm-DdYqbHFh.js → tippy.esm-D8I3Noyw.js} +5 -5
- package/dist/{useTermsModal-Z_pZQ4H2.js → useTermsModal-DEiH4ghd.js} +4 -4
- package/dist/{utils-C3tvmZHk.js → utils-DvezupAT.js} +1 -1
- package/dist/{validation-CWxbj-wT.js → validation-ERFxig5z.js} +2 -2
- package/dist/widget.css +1 -1
- package/package.json +1 -1
- package/dist/Index-BbEj20KG.js +0 -364
- package/dist/Index-aOBMRrRj.js +0 -4
- package/dist/SearchApi-dNunyqch.js +0 -136
- package/dist/TermsSettings-BZBWd3c9.js +0 -224
- package/dist/publicSenderState-LkIY-kEl.js +0 -21
|
@@ -1,37 +1,20 @@
|
|
|
1
|
-
import { m as
|
|
2
|
-
import { C as $e } from "./CCallout-
|
|
3
|
-
import { C as Y, a as Z, w as Te } from "./CDropdownItem-
|
|
4
|
-
import { E as me } from "./ErrorCallout-
|
|
5
|
-
import { c6 as Ae, c7 as he, c8 as Ce, c9 as
|
|
6
|
-
import { u as Qe } from "./DocumentLayout-
|
|
7
|
-
import { T as et } from "./DocTextEditor-
|
|
8
|
-
import { _ as tt, m as it } from "./Sortable.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { o as fe } from "./omit-
|
|
10
|
-
import { C as J } from "./CPriceInput-
|
|
11
|
-
import { u as ye } from "./index-
|
|
12
|
-
import { S as nt } from "./SearchApi-
|
|
13
|
-
import { m as st } from "./index-
|
|
14
|
-
import { _ as ke } from "./CFormField.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { F as at } from "./tippy.esm-
|
|
16
|
-
const ot = [
|
|
17
|
-
"unit",
|
|
18
|
-
"m2",
|
|
19
|
-
"hour",
|
|
20
|
-
"m",
|
|
21
|
-
"m3",
|
|
22
|
-
"day",
|
|
23
|
-
"kg",
|
|
24
|
-
"litre",
|
|
25
|
-
"km",
|
|
26
|
-
"mile",
|
|
27
|
-
"month",
|
|
28
|
-
"week",
|
|
29
|
-
"ton",
|
|
30
|
-
"year",
|
|
31
|
-
"kWh"
|
|
32
|
-
];
|
|
1
|
+
import { m as F } from "./mapFormMixin-DcTZ2NvY.js";
|
|
2
|
+
import { C as $e } from "./CCallout-DCvCm65V.js";
|
|
3
|
+
import { C as Y, a as Z, w as Te } from "./CDropdownItem-DyWrpOb-.js";
|
|
4
|
+
import { E as me } from "./ErrorCallout-BiLLFJek.js";
|
|
5
|
+
import { c6 as Ae, c7 as he, c8 as Ce, c9 as xe, ca as Pe, cb as De, cc as Ve, aL as Se, _ as R, b as h, d, o as a, j as l, t as p, y as D, F as A, q as V, X, e as w, f as u, u as H, m as z, a as E, g as L, w as v, T as B, ai as j, U as ne, an as G, cd as Re, ce as se, aG as Me, a8 as ae, bj as W, aE as Oe, cf as Le, bm as Ee, a5 as U, c as C, v as S, s as _, cg as Ue, ch as Be, c2 as ge, x as We, ci as ve, a0 as ze, af as P, al as je, aI as q, W as qe, a3 as oe, b$ as Fe, cj as Ne, ck as He, ab as Ge, cl as Ke, ae as Ye, ag as Ze, c5 as Je, cm as re, aF as Xe } from "./main-D4afcIIy.js";
|
|
6
|
+
import { u as Qe } from "./DocumentLayout-BLeVh3wu.js";
|
|
7
|
+
import { T as et } from "./DocTextEditor-U8ZdSDAr.js";
|
|
8
|
+
import { _ as tt, m as it } from "./Sortable.vue_vue_type_script_setup_true_lang-CcTjzIyK.js";
|
|
9
|
+
import { o as fe } from "./omit-Bq20xrhI.js";
|
|
10
|
+
import { C as J } from "./CPriceInput-BwBsHKnn.js";
|
|
11
|
+
import { u as ye } from "./index-FsgsKPqg.js";
|
|
12
|
+
import { S as nt } from "./SearchApi-CBg1KY-O.js";
|
|
13
|
+
import { m as st } from "./index-CFm8CNEc.js";
|
|
14
|
+
import { _ as ke } from "./CFormField.vue_vue_type_script_setup_true_lang-CSMB_HdZ.js";
|
|
15
|
+
import { F as at } from "./tippy.esm-D8I3Noyw.js";
|
|
33
16
|
var Q, le;
|
|
34
|
-
function
|
|
17
|
+
function ot() {
|
|
35
18
|
if (le) return Q;
|
|
36
19
|
le = 1;
|
|
37
20
|
function e() {
|
|
@@ -39,56 +22,56 @@ function rt() {
|
|
|
39
22
|
return Q = e, Q;
|
|
40
23
|
}
|
|
41
24
|
var ee, ce;
|
|
42
|
-
function
|
|
25
|
+
function rt() {
|
|
43
26
|
if (ce) return ee;
|
|
44
27
|
ce = 1;
|
|
45
|
-
var e = Ae(), t =
|
|
28
|
+
var e = Ae(), t = ot(), n = he(), o = 1 / 0, s = e && 1 / n(new e([, -0]))[1] == o ? function(i) {
|
|
46
29
|
return new e(i);
|
|
47
30
|
} : t;
|
|
48
31
|
return ee = s, ee;
|
|
49
32
|
}
|
|
50
33
|
var te, de;
|
|
51
|
-
function
|
|
34
|
+
function lt() {
|
|
52
35
|
if (de) return te;
|
|
53
36
|
de = 1;
|
|
54
|
-
var e = Ce(), t =
|
|
37
|
+
var e = Ce(), t = xe(), n = De(), o = Pe(), s = rt(), i = he(), f = 200;
|
|
55
38
|
function g(k, c, b) {
|
|
56
|
-
var y = -1, $ = t, m = k.length, T = !0, r = [],
|
|
39
|
+
var y = -1, $ = t, m = k.length, T = !0, r = [], x = r;
|
|
57
40
|
if (b)
|
|
58
41
|
T = !1, $ = n;
|
|
59
42
|
else if (m >= f) {
|
|
60
43
|
var I = c ? null : s(k);
|
|
61
44
|
if (I)
|
|
62
45
|
return i(I);
|
|
63
|
-
T = !1, $ = o,
|
|
46
|
+
T = !1, $ = o, x = new e();
|
|
64
47
|
} else
|
|
65
|
-
|
|
48
|
+
x = c ? [] : r;
|
|
66
49
|
e:
|
|
67
50
|
for (; ++y < m; ) {
|
|
68
51
|
var M = k[y], O = c ? c(M) : M;
|
|
69
52
|
if (M = b || M !== 0 ? M : 0, T && O === O) {
|
|
70
|
-
for (var N =
|
|
71
|
-
if (
|
|
53
|
+
for (var N = x.length; N--; )
|
|
54
|
+
if (x[N] === O)
|
|
72
55
|
continue e;
|
|
73
|
-
c &&
|
|
74
|
-
} else $(
|
|
56
|
+
c && x.push(O), r.push(M);
|
|
57
|
+
} else $(x, O, b) || (x !== r && x.push(O), r.push(M));
|
|
75
58
|
}
|
|
76
59
|
return r;
|
|
77
60
|
}
|
|
78
61
|
return te = g, te;
|
|
79
62
|
}
|
|
80
63
|
var ie, ue;
|
|
81
|
-
function
|
|
64
|
+
function ct() {
|
|
82
65
|
if (ue) return ie;
|
|
83
66
|
ue = 1;
|
|
84
|
-
var e = Ve(), t =
|
|
67
|
+
var e = Ve(), t = lt();
|
|
85
68
|
function n(o, s) {
|
|
86
69
|
return o && o.length ? t(o, e(s, 2)) : [];
|
|
87
70
|
}
|
|
88
71
|
return ie = n, ie;
|
|
89
72
|
}
|
|
90
|
-
var
|
|
91
|
-
const
|
|
73
|
+
var dt = ct();
|
|
74
|
+
const ut = /* @__PURE__ */ Se(dt), pt = {
|
|
92
75
|
name: "PackageGroupSelect",
|
|
93
76
|
i18nOptions: {
|
|
94
77
|
namespaces: "PackageGroupSelect",
|
|
@@ -157,29 +140,29 @@ const pt = /* @__PURE__ */ Se(ut), mt = {
|
|
|
157
140
|
]
|
|
158
141
|
};
|
|
159
142
|
}
|
|
160
|
-
},
|
|
143
|
+
}, mt = {
|
|
161
144
|
class: "font-inter",
|
|
162
145
|
style: { padding: "calc(2 * var(--rem)) 0 calc(1 * var(--rem)) 0", color: "#111" }
|
|
163
|
-
},
|
|
146
|
+
}, ht = { style: { "font-size": "18px", "font-weight": "600", "text-align": "center", "margin-bottom": "calc(1.5 * var(--rem))" } }, gt = ["onClick"], vt = { class: "package-group-option__illustration" }, ft = {
|
|
164
147
|
key: 0,
|
|
165
148
|
class: "package-group-option__illustration-card animate"
|
|
166
|
-
},
|
|
167
|
-
function
|
|
149
|
+
}, yt = { class: "package-group-option__title" }, kt = ["innerHTML"];
|
|
150
|
+
function bt(e, t, n, o, s, i) {
|
|
168
151
|
const f = h("CIcon");
|
|
169
|
-
return a(), d("div",
|
|
170
|
-
l("div",
|
|
152
|
+
return a(), d("div", mt, [
|
|
153
|
+
l("div", ht, p(e.$t("title")), 1),
|
|
171
154
|
l("div", null, [
|
|
172
155
|
l("div", {
|
|
173
156
|
class: D([{ "is-700-or-less": o.docWidth <= 700 }, "options"])
|
|
174
157
|
}, [
|
|
175
|
-
(a(!0), d(
|
|
158
|
+
(a(!0), d(A, null, V(s.options, (g, k) => (a(), d("div", {
|
|
176
159
|
key: k,
|
|
177
160
|
style: X({ backgroundColor: g.background }),
|
|
178
161
|
class: "package-group-option",
|
|
179
162
|
onClick: (c) => e.$emit("input", g.value)
|
|
180
163
|
}, [
|
|
181
|
-
l("div",
|
|
182
|
-
g.value === "single" ? (a(), d("div",
|
|
164
|
+
l("div", vt, [
|
|
165
|
+
g.value === "single" ? (a(), d("div", ft, t[0] || (t[0] = [
|
|
183
166
|
l("div", { style: { flex: "1 1 auto" } }, [
|
|
184
167
|
l("div", {
|
|
185
168
|
style: { width: "40%", height: "10px", "margin-bottom": "8px" },
|
|
@@ -191,7 +174,7 @@ function wt(e, t, n, o, s, i) {
|
|
|
191
174
|
})
|
|
192
175
|
], -1)
|
|
193
176
|
]))) : w("", !0),
|
|
194
|
-
g.value === "radio" ? (a(), d(
|
|
177
|
+
g.value === "radio" ? (a(), d(A, { key: 1 }, V(3, (c) => l("div", {
|
|
195
178
|
key: c,
|
|
196
179
|
class: D([{ animate: c === 2 }, "package-group-option__illustration-card"])
|
|
197
180
|
}, [
|
|
@@ -216,7 +199,7 @@ function wt(e, t, n, o, s, i) {
|
|
|
216
199
|
})
|
|
217
200
|
], -1))
|
|
218
201
|
], 2)), 64)) : w("", !0),
|
|
219
|
-
g.value === "checkbox" ? (a(), d(
|
|
202
|
+
g.value === "checkbox" ? (a(), d(A, { key: 2 }, V(3, (c) => l("div", {
|
|
220
203
|
key: c,
|
|
221
204
|
class: D([{ animate: c !== 3 }, "package-group-option__illustration-card"])
|
|
222
205
|
}, [
|
|
@@ -242,23 +225,23 @@ function wt(e, t, n, o, s, i) {
|
|
|
242
225
|
], 2)), 64)) : w("", !0)
|
|
243
226
|
]),
|
|
244
227
|
l("div", null, [
|
|
245
|
-
l("div",
|
|
228
|
+
l("div", yt, p(g.title), 1),
|
|
246
229
|
l("div", {
|
|
247
230
|
class: "package-group-option__subtitle",
|
|
248
231
|
innerHTML: g.subTitle
|
|
249
|
-
}, null, 8,
|
|
232
|
+
}, null, 8, kt)
|
|
250
233
|
])
|
|
251
|
-
], 12,
|
|
234
|
+
], 12, gt))), 128))
|
|
252
235
|
], 2)
|
|
253
236
|
])
|
|
254
237
|
]);
|
|
255
238
|
}
|
|
256
|
-
const
|
|
239
|
+
const wt = /* @__PURE__ */ R(pt, [["render", bt], ["__scopeId", "data-v-63202343"]]), It = {
|
|
257
240
|
name: "ArticleAutocomplete",
|
|
258
241
|
components: {
|
|
259
242
|
SearchApi: nt
|
|
260
243
|
},
|
|
261
|
-
mixins: [
|
|
244
|
+
mixins: [F([])],
|
|
262
245
|
props: {
|
|
263
246
|
tag: {
|
|
264
247
|
type: String,
|
|
@@ -321,7 +304,7 @@ const It = /* @__PURE__ */ R(mt, [["render", wt], ["__scopeId", "data-v-63202343
|
|
|
321
304
|
}),
|
|
322
305
|
priceFormat: H,
|
|
323
306
|
search(e, t) {
|
|
324
|
-
this.$emit("update:modelValue", t),
|
|
307
|
+
this.$emit("update:modelValue", t), e({
|
|
325
308
|
q: t,
|
|
326
309
|
cb: ({ article: n = [], extensionArticle: o = [] }) => {
|
|
327
310
|
this.searchResults = [
|
|
@@ -375,18 +358,18 @@ const It = /* @__PURE__ */ R(mt, [["render", wt], ["__scopeId", "data-v-63202343
|
|
|
375
358
|
});
|
|
376
359
|
}
|
|
377
360
|
}
|
|
378
|
-
},
|
|
361
|
+
}, _t = {
|
|
379
362
|
key: 0,
|
|
380
363
|
ref: "dropdown",
|
|
381
364
|
class: "r-container"
|
|
382
|
-
},
|
|
365
|
+
}, $t = ["onClickCapture"], Tt = { class: "r-item-title w-full truncate" }, At = { class: "r-item-details" }, Ct = {
|
|
383
366
|
key: 0,
|
|
384
367
|
style: { width: "18px", height: "18px", "border-radius": "2px", "background-color": "hsl(0, 0%, 60%)", display: "inline-flex", "justify-content": "center", "align-items": "center" }
|
|
385
|
-
}, xt = { key: 1 },
|
|
368
|
+
}, xt = { key: 1 }, Pt = { key: 2 }, Dt = { key: 3 }, Vt = {
|
|
386
369
|
key: 0,
|
|
387
370
|
class: "r-item-icon"
|
|
388
371
|
};
|
|
389
|
-
function
|
|
372
|
+
function St(e, t, n, o, s, i) {
|
|
390
373
|
const f = h("CInput"), g = h("SearchApi"), k = h("CIcon");
|
|
391
374
|
return a(), d("div", B({
|
|
392
375
|
class: { "is-open": s.isOpen }
|
|
@@ -412,8 +395,8 @@ function Rt(e, t, n, o, s, i) {
|
|
|
412
395
|
"onUpdate:modelValue": (b) => i.search(c, b),
|
|
413
396
|
onFocus: i.onFocus,
|
|
414
397
|
onKeydown: [
|
|
415
|
-
|
|
416
|
-
|
|
398
|
+
j(i.hideResults, ["tab"]),
|
|
399
|
+
j(i.hideResults, ["escape"])
|
|
417
400
|
],
|
|
418
401
|
onBlur: i.onBlur
|
|
419
402
|
}), {
|
|
@@ -428,15 +411,15 @@ function Rt(e, t, n, o, s, i) {
|
|
|
428
411
|
]),
|
|
429
412
|
_: 3
|
|
430
413
|
}),
|
|
431
|
-
s.isOpen ? (a(), d("div",
|
|
432
|
-
(a(!0), d(
|
|
414
|
+
s.isOpen ? (a(), d("div", _t, [
|
|
415
|
+
(a(!0), d(A, null, V(s.searchResults, (c, b) => (a(), d("div", {
|
|
433
416
|
key: b,
|
|
434
417
|
class: D([{ active: s.selectedIndex === b }, "r-item"]),
|
|
435
418
|
onClickCapture: G((y) => i.onSelect(c), ["stop"])
|
|
436
419
|
}, [
|
|
437
|
-
l("div",
|
|
438
|
-
l("div",
|
|
439
|
-
c.externalReference && c.externalReference.service ? (a(), d("div",
|
|
420
|
+
l("div", Tt, p(c.name), 1),
|
|
421
|
+
l("div", At, [
|
|
422
|
+
c.externalReference && c.externalReference.service ? (a(), d("div", Ct, [
|
|
440
423
|
u(k, {
|
|
441
424
|
type: c.externalReference.service,
|
|
442
425
|
style: { color: "white" },
|
|
@@ -444,20 +427,20 @@ function Rt(e, t, n, o, s, i) {
|
|
|
444
427
|
}, null, 8, ["type"])
|
|
445
428
|
])) : w("", !0),
|
|
446
429
|
c.article_no ? (a(), d("div", xt, p(c.article_no), 1)) : w("", !0),
|
|
447
|
-
c.price ? (a(), d("div",
|
|
448
|
-
c.vat ? (a(), d("div",
|
|
430
|
+
c.price ? (a(), d("div", Pt, p(i.priceFormat(c.price, { currency: c.currency })), 1)) : w("", !0),
|
|
431
|
+
c.vat ? (a(), d("div", Dt, p(e.$t("vat.sharedTitle").capitalize()) + " " + p(c.vat) + "% ", 1)) : w("", !0)
|
|
449
432
|
]),
|
|
450
|
-
s.selectedIndex === b ? (a(), d("div",
|
|
433
|
+
s.selectedIndex === b ? (a(), d("div", Vt, [
|
|
451
434
|
u(k, {
|
|
452
435
|
type: "corner-down-left",
|
|
453
436
|
size: "16"
|
|
454
437
|
})
|
|
455
438
|
])) : w("", !0)
|
|
456
|
-
], 42,
|
|
439
|
+
], 42, $t))), 128))
|
|
457
440
|
], 512)) : w("", !0)
|
|
458
441
|
], 16);
|
|
459
442
|
}
|
|
460
|
-
const be = /* @__PURE__ */ R(
|
|
443
|
+
const be = /* @__PURE__ */ R(It, [["render", St], ["__scopeId", "data-v-7969ac54"]]), pe = {
|
|
461
444
|
isDeductable: !1,
|
|
462
445
|
isRut: !1,
|
|
463
446
|
greenRot15: !1,
|
|
@@ -501,7 +484,7 @@ const be = /* @__PURE__ */ R(_t, [["render", Rt], ["__scopeId", "data-v-cb28c1af
|
|
|
501
484
|
g.some((k) => !!s[k]) && (s = { ...s, ...i(g) });
|
|
502
485
|
}
|
|
503
486
|
return s;
|
|
504
|
-
},
|
|
487
|
+
}, Rt = (e, t = null) => {
|
|
505
488
|
const n = ae(e.currency, t);
|
|
506
489
|
switch (e.priceType) {
|
|
507
490
|
case "approx":
|
|
@@ -564,7 +547,7 @@ const be = /* @__PURE__ */ R(_t, [["render", Rt], ["__scopeId", "data-v-cb28c1af
|
|
|
564
547
|
maxLength: st(255)
|
|
565
548
|
}
|
|
566
549
|
}
|
|
567
|
-
},
|
|
550
|
+
}, Mt = {
|
|
568
551
|
name: "Article",
|
|
569
552
|
i18nOptions: {
|
|
570
553
|
namespaces: "Article",
|
|
@@ -704,8 +687,8 @@ const be = /* @__PURE__ */ R(_t, [["render", Rt], ["__scopeId", "data-v-cb28c1af
|
|
|
704
687
|
return e.$error && e.article.name.$error && ((t = e.article.name.maxLength) != null && t.$invalid) ? this.$t("validations.name.maxLength") : null;
|
|
705
688
|
}
|
|
706
689
|
}
|
|
707
|
-
},
|
|
708
|
-
function
|
|
690
|
+
}, Ot = { class: "top-row flex w-full" }, Lt = ["innerHTML"];
|
|
691
|
+
function Et(e, t, n, o, s, i) {
|
|
709
692
|
const f = h("CIcon"), g = h("ArticleAutocomplete"), k = h("CPriceInput"), c = h("ErrorCallout"), b = U("tooltip");
|
|
710
693
|
return a(), d("div", {
|
|
711
694
|
class: D([{
|
|
@@ -713,9 +696,9 @@ function Ut(e, t, n, o, s, i) {
|
|
|
713
696
|
compact: n.width <= s.widthCompact,
|
|
714
697
|
"show-controls": !n.hideControls
|
|
715
698
|
}, "article-wrapper"]),
|
|
716
|
-
onKeydown: t[10] || (t[10] =
|
|
699
|
+
onKeydown: t[10] || (t[10] = j((y) => e.$emit("esc"), ["esc"]))
|
|
717
700
|
}, [
|
|
718
|
-
l("div",
|
|
701
|
+
l("div", Ot, [
|
|
719
702
|
u(g, B({
|
|
720
703
|
ref: "name",
|
|
721
704
|
"model-value": i.article.name,
|
|
@@ -756,7 +739,7 @@ function Ut(e, t, n, o, s, i) {
|
|
|
756
739
|
]),
|
|
757
740
|
_: 1
|
|
758
741
|
}, 16, ["model-value", "placeholder"]),
|
|
759
|
-
n.hidePriceInput ? w("", !0) : (a(),
|
|
742
|
+
n.hidePriceInput ? w("", !0) : (a(), C(k, B({
|
|
760
743
|
key: n.rootPriceType + i.article.priceType + i.article.unitType,
|
|
761
744
|
"model-value": i.article.totalAmount,
|
|
762
745
|
currency: i.article.currency,
|
|
@@ -773,9 +756,9 @@ function Ut(e, t, n, o, s, i) {
|
|
|
773
756
|
onFocus: t[6] || (t[6] = () => {
|
|
774
757
|
i.onTotalPriceInputFocus(), e.$emit("focus");
|
|
775
758
|
}),
|
|
776
|
-
onKeydown: t[7] || (t[7] =
|
|
759
|
+
onKeydown: t[7] || (t[7] = j((y) => e.$emit("add"), ["enter"]))
|
|
777
760
|
}), null, 16, ["model-value", "currency", "is-inc-vat", "vat", "placeholder", "price-type", "unit-label"])),
|
|
778
|
-
n.hideControls ? w("", !0) : (a(), d(
|
|
761
|
+
n.hideControls ? w("", !0) : (a(), d(A, { key: 1 }, [
|
|
779
762
|
u(f, {
|
|
780
763
|
class: "a-control-button close-button fade-in",
|
|
781
764
|
circle: "",
|
|
@@ -797,27 +780,27 @@ function Ut(e, t, n, o, s, i) {
|
|
|
797
780
|
style: { cursor: "pointer" },
|
|
798
781
|
onClick: t[9] || (t[9] = (y) => e.$emit("open-modal"))
|
|
799
782
|
}, [
|
|
800
|
-
(a(!0), d(
|
|
801
|
-
key:
|
|
783
|
+
(a(!0), d(A, null, V(i.details, ({ title: y, icon: $, subTitle: m = "", detailClass: T = "", tooltip: r }, x) => S((a(), d("div", {
|
|
784
|
+
key: x,
|
|
802
785
|
class: D([[T], "article-details-item"])
|
|
803
786
|
}, [
|
|
804
787
|
_(p(y) + " ", 1),
|
|
805
788
|
$ ? (a(), d("div", {
|
|
806
789
|
key: 0,
|
|
807
790
|
innerHTML: $
|
|
808
|
-
}, null, 8,
|
|
791
|
+
}, null, 8, Lt)) : w("", !0),
|
|
809
792
|
_(" " + p(m), 1)
|
|
810
793
|
], 2)), [
|
|
811
794
|
[b, r]
|
|
812
795
|
])), 128))
|
|
813
796
|
])) : w("", !0),
|
|
814
|
-
o.v$.$invalid && o.v$.$dirty ? (a(),
|
|
797
|
+
o.v$.$invalid && o.v$.$dirty ? (a(), C(c, {
|
|
815
798
|
key: 1,
|
|
816
799
|
message: i.errorMessage(o.v$)
|
|
817
800
|
}, null, 8, ["message"])) : w("", !0)
|
|
818
801
|
], 34);
|
|
819
802
|
}
|
|
820
|
-
const
|
|
803
|
+
const Ut = /* @__PURE__ */ R(Mt, [["render", Et], ["__scopeId", "data-v-a1bb8bde"]]), Bt = {
|
|
821
804
|
emits: ["go", "close"],
|
|
822
805
|
props: {
|
|
823
806
|
canForward: {
|
|
@@ -880,10 +863,10 @@ const Bt = /* @__PURE__ */ R(Ot, [["render", Ut], ["__scopeId", "data-v-a1bb8bde
|
|
|
880
863
|
document.removeEventListener("keyup", this.onKeyUp);
|
|
881
864
|
}
|
|
882
865
|
}
|
|
883
|
-
},
|
|
884
|
-
function
|
|
866
|
+
}, Wt = { class: "l-root" };
|
|
867
|
+
function zt(e, t, n, o, s, i) {
|
|
885
868
|
const f = U("tooltip");
|
|
886
|
-
return a(), d("div",
|
|
869
|
+
return a(), d("div", Wt, [
|
|
887
870
|
S((a(), d("div", {
|
|
888
871
|
class: D([{ disabled: !n.canBackward }, "l-button"]),
|
|
889
872
|
style: { left: "calc(-4 * var(--rem))" },
|
|
@@ -928,7 +911,7 @@ function Ft(e, t, n, o, s, i) {
|
|
|
928
911
|
])
|
|
929
912
|
]);
|
|
930
913
|
}
|
|
931
|
-
const jt = /* @__PURE__ */ R(
|
|
914
|
+
const jt = /* @__PURE__ */ R(Bt, [["render", zt], ["__scopeId", "data-v-66c12cce"]]), qt = {
|
|
932
915
|
name: "ArticleUnitEditModal",
|
|
933
916
|
i18nOptions: {
|
|
934
917
|
namespaces: "ArticleUnitEditModal",
|
|
@@ -1036,25 +1019,25 @@ const jt = /* @__PURE__ */ R(Wt, [["render", Ft], ["__scopeId", "data-v-66c12cce
|
|
|
1036
1019
|
), this.reset(), await this.loadUnits());
|
|
1037
1020
|
}
|
|
1038
1021
|
}
|
|
1039
|
-
},
|
|
1022
|
+
}, Ft = {
|
|
1040
1023
|
class: "unit-modal-root font-inter",
|
|
1041
1024
|
style: { position: "relative" }
|
|
1042
|
-
},
|
|
1025
|
+
}, Nt = { style: { padding: "calc(1.5 * var(--rem))" } }, Ht = { style: { "font-weight": "600", "font-size": "18px", "margin-bottom": "calc(1.5 * var(--rem))" } }, Gt = { class: "control" }, Kt = { style: { "border-top": "1px solid hsl(0, 0%, 88%)", overflow: "auto", "max-height": "360px" } }, Yt = {
|
|
1043
1026
|
class: "text-gray-400",
|
|
1044
1027
|
style: { "font-size": "14px", padding: "calc(1 * var(--rem)) calc(1.5 * var(--rem)) 0", "font-weight": "500" }
|
|
1045
|
-
},
|
|
1028
|
+
}, Zt = { class: "unit-modal-list" }, Jt = {
|
|
1046
1029
|
key: 0,
|
|
1047
1030
|
class: "unit-modal-list-empty"
|
|
1048
|
-
},
|
|
1049
|
-
function
|
|
1031
|
+
}, Xt = ["onMouseoverPassive", "onClick"], Qt = { class: "drag-handle" }, ei = { style: { "padding-left": "0.5em" } }, ti = { class: "unittype-buttons" };
|
|
1032
|
+
function ii(e, t, n, o, s, i) {
|
|
1050
1033
|
const f = h("CIcon"), g = h("CButton"), k = h("CInput"), c = h("CField"), b = h("DragItem"), y = h("DragList"), $ = U("tooltip");
|
|
1051
1034
|
return a(), d("div", {
|
|
1052
1035
|
class: "modal-overlay font-inter",
|
|
1053
1036
|
onClickPassive: t[3] || (t[3] = G((...m) => i.close && i.close(...m), ["self"]))
|
|
1054
1037
|
}, [
|
|
1055
|
-
l("div",
|
|
1056
|
-
l("div",
|
|
1057
|
-
l("div",
|
|
1038
|
+
l("div", Ft, [
|
|
1039
|
+
l("div", Nt, [
|
|
1040
|
+
l("div", Ht, [
|
|
1058
1041
|
l("span", null, p(e.$t("_common:add", { thing: e.$t("_common:unitType.unitType_other") })), 1),
|
|
1059
1042
|
S(u(f, {
|
|
1060
1043
|
type: "info",
|
|
@@ -1095,7 +1078,7 @@ function ni(e, t, n, o, s, i) {
|
|
|
1095
1078
|
key: "0"
|
|
1096
1079
|
} : void 0
|
|
1097
1080
|
]), 1032, ["modelValue", "placeholder"]),
|
|
1098
|
-
l("div",
|
|
1081
|
+
l("div", Gt, [
|
|
1099
1082
|
u(g, {
|
|
1100
1083
|
loading: e.isPosting,
|
|
1101
1084
|
disabled: !s.selectedValue.value,
|
|
@@ -1112,10 +1095,10 @@ function ni(e, t, n, o, s, i) {
|
|
|
1112
1095
|
_: 1
|
|
1113
1096
|
})
|
|
1114
1097
|
]),
|
|
1115
|
-
l("div",
|
|
1116
|
-
l("div",
|
|
1117
|
-
l("div",
|
|
1118
|
-
i.unitItems.length ? w("", !0) : (a(), d("div",
|
|
1098
|
+
l("div", Kt, [
|
|
1099
|
+
l("div", Yt, p(e.$t("_common:unit_other").capitalize()), 1),
|
|
1100
|
+
l("div", Zt, [
|
|
1101
|
+
i.unitItems.length ? w("", !0) : (a(), d("div", Jt, p(e.$t("_common:add", { thing: e.$t("_common:unit_other") })), 1)),
|
|
1119
1102
|
u(y, {
|
|
1120
1103
|
"drop-placeholder": { className: "drag-drop-placeholder" },
|
|
1121
1104
|
"drag-class": "is-dragged",
|
|
@@ -1124,7 +1107,7 @@ function ni(e, t, n, o, s, i) {
|
|
|
1124
1107
|
onDrop: i.onDrop
|
|
1125
1108
|
}, {
|
|
1126
1109
|
default: v(() => [
|
|
1127
|
-
(a(!0), d(
|
|
1110
|
+
(a(!0), d(A, null, V(i.unitItems, (m, T) => (a(), C(b, {
|
|
1128
1111
|
key: m.id
|
|
1129
1112
|
}, {
|
|
1130
1113
|
default: v(() => [
|
|
@@ -1134,19 +1117,19 @@ function ni(e, t, n, o, s, i) {
|
|
|
1134
1117
|
onMouseleavePassive: t[2] || (t[2] = (r) => s.hoverIndex = null),
|
|
1135
1118
|
onClick: (r) => i.onEdit(m)
|
|
1136
1119
|
}, [
|
|
1137
|
-
l("div",
|
|
1120
|
+
l("div", Qt, [
|
|
1138
1121
|
u(f, {
|
|
1139
1122
|
type: "handle",
|
|
1140
1123
|
size: "16",
|
|
1141
1124
|
class: "text-gray-300"
|
|
1142
1125
|
})
|
|
1143
1126
|
]),
|
|
1144
|
-
l("div",
|
|
1127
|
+
l("div", ei, p(m.label), 1),
|
|
1145
1128
|
S(l("span", { class: "delete-confirm" }, p(e.$t("_common:remove")) + "? ", 513), [
|
|
1146
1129
|
[We, s.removeConfirmIndex === T]
|
|
1147
1130
|
]),
|
|
1148
|
-
l("div",
|
|
1149
|
-
s.hoverIndex === T || s.removeConfirmIndex === T ? (a(),
|
|
1131
|
+
l("div", ti, [
|
|
1132
|
+
s.hoverIndex === T || s.removeConfirmIndex === T ? (a(), C(g, {
|
|
1150
1133
|
key: 0,
|
|
1151
1134
|
type: s.removeConfirmIndex === T ? "danger" : "none",
|
|
1152
1135
|
pattern: s.removeConfirmIndex === T ? "primary" : "tertiary",
|
|
@@ -1164,7 +1147,7 @@ function ni(e, t, n, o, s, i) {
|
|
|
1164
1147
|
circle: ""
|
|
1165
1148
|
})
|
|
1166
1149
|
])
|
|
1167
|
-
], 42,
|
|
1150
|
+
], 42, Xt)
|
|
1168
1151
|
]),
|
|
1169
1152
|
_: 2
|
|
1170
1153
|
}, 1024))), 128))
|
|
@@ -1176,7 +1159,7 @@ function ni(e, t, n, o, s, i) {
|
|
|
1176
1159
|
])
|
|
1177
1160
|
], 32);
|
|
1178
1161
|
}
|
|
1179
|
-
const
|
|
1162
|
+
const ni = /* @__PURE__ */ R(qt, [["render", ii], ["__scopeId", "data-v-517f7e85"]]), si = {
|
|
1180
1163
|
name: "ArticleUnitSelect",
|
|
1181
1164
|
components: {
|
|
1182
1165
|
CDropdown: Z,
|
|
@@ -1187,10 +1170,6 @@ const si = /* @__PURE__ */ R(qt, [["render", ni], ["__scopeId", "data-v-517f7e85
|
|
|
1187
1170
|
type: String,
|
|
1188
1171
|
required: !0
|
|
1189
1172
|
},
|
|
1190
|
-
isPublicForm: {
|
|
1191
|
-
type: Boolean,
|
|
1192
|
-
default: !1
|
|
1193
|
-
},
|
|
1194
1173
|
// Optional param for plural translations
|
|
1195
1174
|
count: {
|
|
1196
1175
|
type: Number,
|
|
@@ -1204,11 +1183,11 @@ const si = /* @__PURE__ */ R(qt, [["render", ni], ["__scopeId", "data-v-517f7e85
|
|
|
1204
1183
|
unitById: "unitTypes/byId"
|
|
1205
1184
|
}),
|
|
1206
1185
|
unitItems() {
|
|
1207
|
-
return
|
|
1186
|
+
return (this.unitIds || []).map((e) => this.unitById(e)).map(({ value: e }) => e);
|
|
1208
1187
|
}
|
|
1209
1188
|
},
|
|
1210
1189
|
created() {
|
|
1211
|
-
this.
|
|
1190
|
+
this.loadUnits();
|
|
1212
1191
|
},
|
|
1213
1192
|
methods: {
|
|
1214
1193
|
articleUnitLabel: W,
|
|
@@ -1217,7 +1196,7 @@ const si = /* @__PURE__ */ R(qt, [["render", ni], ["__scopeId", "data-v-517f7e85
|
|
|
1217
1196
|
}),
|
|
1218
1197
|
openEditModal() {
|
|
1219
1198
|
this.$modal.show(
|
|
1220
|
-
|
|
1199
|
+
ni,
|
|
1221
1200
|
{},
|
|
1222
1201
|
{},
|
|
1223
1202
|
{
|
|
@@ -1227,9 +1206,9 @@ const si = /* @__PURE__ */ R(qt, [["render", ni], ["__scopeId", "data-v-517f7e85
|
|
|
1227
1206
|
}
|
|
1228
1207
|
}
|
|
1229
1208
|
};
|
|
1230
|
-
function
|
|
1209
|
+
function ai(e, t, n, o, s, i) {
|
|
1231
1210
|
const f = h("CButton"), g = h("CDropdownItem"), k = h("CDropdown");
|
|
1232
|
-
return a(),
|
|
1211
|
+
return a(), C(k, B({
|
|
1233
1212
|
position: "is-bottom-left",
|
|
1234
1213
|
maxHeight: "240px",
|
|
1235
1214
|
...e.$attrs
|
|
@@ -1252,8 +1231,7 @@ function oi(e, t, n, o, s, i) {
|
|
|
1252
1231
|
], !0)
|
|
1253
1232
|
]),
|
|
1254
1233
|
footer: v(() => [
|
|
1255
|
-
|
|
1256
|
-
key: 0,
|
|
1234
|
+
u(f, {
|
|
1257
1235
|
type: "none",
|
|
1258
1236
|
pattern: "secondary",
|
|
1259
1237
|
size: "small",
|
|
@@ -1264,10 +1242,10 @@ function oi(e, t, n, o, s, i) {
|
|
|
1264
1242
|
_(p(e.$t("_common:edit", { thing: e.$t("_common:unit_other") })), 1)
|
|
1265
1243
|
]),
|
|
1266
1244
|
_: 1
|
|
1267
|
-
}, 8, ["onClick"])
|
|
1245
|
+
}, 8, ["onClick"])
|
|
1268
1246
|
]),
|
|
1269
1247
|
default: v(() => [
|
|
1270
|
-
(a(!0), d(
|
|
1248
|
+
(a(!0), d(A, null, V(i.unitItems, (c, b) => (a(), C(g, {
|
|
1271
1249
|
key: `${c}-${b}`,
|
|
1272
1250
|
value: c
|
|
1273
1251
|
}, {
|
|
@@ -1280,7 +1258,7 @@ function oi(e, t, n, o, s, i) {
|
|
|
1280
1258
|
_: 3
|
|
1281
1259
|
}, 16, ["model-value"]);
|
|
1282
1260
|
}
|
|
1283
|
-
const
|
|
1261
|
+
const oi = /* @__PURE__ */ R(si, [["render", ai], ["__scopeId", "data-v-d3cb976b"]]), ri = {
|
|
1284
1262
|
name: "ArticleModal",
|
|
1285
1263
|
i18nOptions: {
|
|
1286
1264
|
namespaces: "ArticleModal",
|
|
@@ -1288,7 +1266,7 @@ const ri = /* @__PURE__ */ R(ai, [["render", oi], ["__scopeId", "data-v-8030e189
|
|
|
1288
1266
|
},
|
|
1289
1267
|
components: {
|
|
1290
1268
|
ArticleAutocomplete: be,
|
|
1291
|
-
ArticleUnitSelect:
|
|
1269
|
+
ArticleUnitSelect: oi,
|
|
1292
1270
|
ListModalButtons: jt,
|
|
1293
1271
|
CPriceInput: J,
|
|
1294
1272
|
CField: ke
|
|
@@ -1344,8 +1322,7 @@ const ri = /* @__PURE__ */ R(ai, [["render", oi], ["__scopeId", "data-v-8030e189
|
|
|
1344
1322
|
default: () => ({
|
|
1345
1323
|
canEdit: !1,
|
|
1346
1324
|
isForm: !1,
|
|
1347
|
-
setFormValue: null
|
|
1348
|
-
isPublicForm: !1
|
|
1325
|
+
setFormValue: null
|
|
1349
1326
|
})
|
|
1350
1327
|
}
|
|
1351
1328
|
},
|
|
@@ -1357,7 +1334,7 @@ const ri = /* @__PURE__ */ R(ai, [["render", oi], ["__scopeId", "data-v-8030e189
|
|
|
1357
1334
|
validations: _e,
|
|
1358
1335
|
data() {
|
|
1359
1336
|
return {
|
|
1360
|
-
priceSuffix:
|
|
1337
|
+
priceSuffix: Rt,
|
|
1361
1338
|
updateData: K,
|
|
1362
1339
|
addSavedArticle: we,
|
|
1363
1340
|
vatOptions: [
|
|
@@ -1387,10 +1364,10 @@ const ri = /* @__PURE__ */ R(ai, [["render", oi], ["__scopeId", "data-v-8030e189
|
|
|
1387
1364
|
}
|
|
1388
1365
|
},
|
|
1389
1366
|
useVat() {
|
|
1390
|
-
return
|
|
1367
|
+
return P(this, "_document.useVat") || "";
|
|
1391
1368
|
},
|
|
1392
1369
|
vatType() {
|
|
1393
|
-
return
|
|
1370
|
+
return P(this, "_document.vatType") || "";
|
|
1394
1371
|
},
|
|
1395
1372
|
checkboxItems() {
|
|
1396
1373
|
const e = /* @__PURE__ */ new Date(), t = /* @__PURE__ */ new Date("2025-07-01"), n = e < t, o = e >= t, { article: s } = this || {}, { priceType: i } = this.article || {}, f = [
|
|
@@ -1519,10 +1496,10 @@ const ri = /* @__PURE__ */ R(ai, [["render", oi], ["__scopeId", "data-v-8030e189
|
|
|
1519
1496
|
createArticle: L.DO_CREATE_ARTICLE
|
|
1520
1497
|
}),
|
|
1521
1498
|
onCustomVatBlur(e) {
|
|
1522
|
-
|
|
1499
|
+
P(e, "target.value") || "" || this.updateArticle(0, "vat");
|
|
1523
1500
|
},
|
|
1524
1501
|
onCustomVatInput(e) {
|
|
1525
|
-
const t =
|
|
1502
|
+
const t = P(e, "target.value") || "";
|
|
1526
1503
|
if (!t) return;
|
|
1527
1504
|
let n = t > 100 ? t.slice(0, t.length - 1) : t;
|
|
1528
1505
|
n < 0 && (n = 0), this.updateArticle(Number.parseFloat(n), "vat");
|
|
@@ -1567,7 +1544,6 @@ const ri = /* @__PURE__ */ R(ai, [["render", oi], ["__scopeId", "data-v-8030e189
|
|
|
1567
1544
|
await this.saveArticle(), this.close();
|
|
1568
1545
|
},
|
|
1569
1546
|
async saveArticle() {
|
|
1570
|
-
if (this.viewSettings.isPublicForm) return;
|
|
1571
1547
|
let { ArticleId: e } = this.article;
|
|
1572
1548
|
!e && ((n) => typeof n == "string" && !!n.trim())(this.article.name) && (e = await this.createArticle({
|
|
1573
1549
|
body: this.article,
|
|
@@ -1575,26 +1551,26 @@ const ri = /* @__PURE__ */ R(ai, [["render", oi], ["__scopeId", "data-v-8030e189
|
|
|
1575
1551
|
}), this.article = { ...this.article, ArticleId: e });
|
|
1576
1552
|
}
|
|
1577
1553
|
}
|
|
1578
|
-
},
|
|
1554
|
+
}, li = { class: "modal-container" }, ci = {
|
|
1579
1555
|
class: "flex w-full",
|
|
1580
1556
|
style: { "margin-bottom": "1.5em" }
|
|
1581
|
-
},
|
|
1557
|
+
}, di = {
|
|
1582
1558
|
class: "flex",
|
|
1583
1559
|
style: { "margin-bottom": "1.5em" }
|
|
1584
|
-
},
|
|
1560
|
+
}, ui = {
|
|
1585
1561
|
key: 0,
|
|
1586
1562
|
class: "flex",
|
|
1587
1563
|
style: { "margin-bottom": "1.5em" }
|
|
1588
|
-
},
|
|
1564
|
+
}, pi = { style: { margin: "calc(1 * var(--rem)) calc(-0.5 * var(--rem))" } }, mi = ["value"], hi = ["value"], gi = {
|
|
1589
1565
|
key: 1,
|
|
1590
1566
|
class: "select-css tag-item no-chevron",
|
|
1591
1567
|
style: { display: "inline", "min-height": "initial", background: "hsl(0, 0%, 94%)", "border-color": "hsl(0, 0%, 94%)", color: "hsl(0, 0%, 30%)" }
|
|
1592
|
-
},
|
|
1568
|
+
}, vi = ["value"], fi = {
|
|
1593
1569
|
key: 1,
|
|
1594
1570
|
class: "tag-group",
|
|
1595
1571
|
style: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "margin-top": "1em" }
|
|
1596
|
-
},
|
|
1597
|
-
function
|
|
1572
|
+
}, yi = ["onClick"], ki = { style: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "margin-top": "1em" } }, bi = ["onClick"], wi = { class: "flex space-x-4 overflow-hidden p-4 md:p-9" };
|
|
1573
|
+
function Ii(e, t, n, o, s, i) {
|
|
1598
1574
|
const f = h("ListModalButtons"), g = h("CIcon"), k = h("ArticleAutocomplete"), c = h("CField"), b = h("CInput"), y = h("CButton"), $ = h("ArticleUnitSelect"), m = h("CPriceInput"), T = U("tooltip");
|
|
1599
1575
|
return a(), d("div", {
|
|
1600
1576
|
class: D([{
|
|
@@ -1603,8 +1579,8 @@ function _i(e, t, n, o, s, i) {
|
|
|
1603
1579
|
}, "font-inter"]),
|
|
1604
1580
|
onClickPassive: t[15] || (t[15] = G((...r) => i.close && i.close(...r), ["self"]))
|
|
1605
1581
|
}, [
|
|
1606
|
-
l("div",
|
|
1607
|
-
e.mq !== "sm" ? (a(),
|
|
1582
|
+
l("div", li, [
|
|
1583
|
+
e.mq !== "sm" ? (a(), C(f, {
|
|
1608
1584
|
key: 0,
|
|
1609
1585
|
"can-forward": !!n.articleList[n.index + 1],
|
|
1610
1586
|
"can-backward": !!n.articleList[n.index - 1],
|
|
@@ -1617,7 +1593,7 @@ function _i(e, t, n, o, s, i) {
|
|
|
1617
1593
|
}, [
|
|
1618
1594
|
u(g, { type: "x" })
|
|
1619
1595
|
])),
|
|
1620
|
-
u(
|
|
1596
|
+
u(je, { name: "slide" }, {
|
|
1621
1597
|
default: v(() => [
|
|
1622
1598
|
(a(), d("div", {
|
|
1623
1599
|
key: i.article._uniqueId,
|
|
@@ -1654,7 +1630,7 @@ function _i(e, t, n, o, s, i) {
|
|
|
1654
1630
|
]),
|
|
1655
1631
|
_: 1
|
|
1656
1632
|
}, 8, ["validator", "messages", "label"]),
|
|
1657
|
-
l("div",
|
|
1633
|
+
l("div", ci, [
|
|
1658
1634
|
u(c, {
|
|
1659
1635
|
label: e.$t("quantity").capitalize(),
|
|
1660
1636
|
"label-position": "inside",
|
|
@@ -1676,7 +1652,6 @@ function _i(e, t, n, o, s, i) {
|
|
|
1676
1652
|
}, 8, ["label"]),
|
|
1677
1653
|
u($, {
|
|
1678
1654
|
"model-value": i.article.unitType,
|
|
1679
|
-
"is-public-form": n.viewSettings.isPublicForm,
|
|
1680
1655
|
"onUpdate:modelValue": t[5] || (t[5] = (r) => i.updateArticle(r, "unitType"))
|
|
1681
1656
|
}, {
|
|
1682
1657
|
default: v(() => [
|
|
@@ -1693,10 +1668,10 @@ function _i(e, t, n, o, s, i) {
|
|
|
1693
1668
|
})
|
|
1694
1669
|
]),
|
|
1695
1670
|
_: 1
|
|
1696
|
-
}, 8, ["model-value"
|
|
1671
|
+
}, 8, ["model-value"])
|
|
1697
1672
|
]),
|
|
1698
|
-
n.hidePriceInput ? w("", !0) : (a(), d(
|
|
1699
|
-
l("div",
|
|
1673
|
+
n.hidePriceInput ? w("", !0) : (a(), d(A, { key: 0 }, [
|
|
1674
|
+
l("div", di, [
|
|
1700
1675
|
u(c, {
|
|
1701
1676
|
label: e.$t("price.price").capitalize(),
|
|
1702
1677
|
"label-position": "inside",
|
|
@@ -1704,7 +1679,7 @@ function _i(e, t, n, o, s, i) {
|
|
|
1704
1679
|
style: { "margin-bottom": "0" }
|
|
1705
1680
|
}, {
|
|
1706
1681
|
default: v(() => [
|
|
1707
|
-
(a(),
|
|
1682
|
+
(a(), C(m, {
|
|
1708
1683
|
ref: "priceInput",
|
|
1709
1684
|
key: s.priceSuffix(i.article),
|
|
1710
1685
|
"model-value": i.article.price,
|
|
@@ -1728,7 +1703,7 @@ function _i(e, t, n, o, s, i) {
|
|
|
1728
1703
|
onClick: t[9] || (t[9] = (r) => s.setPricesIncVat = !s.setPricesIncVat)
|
|
1729
1704
|
}, p(n._document.$t(`vat.${s.setPricesIncVat ? "incVat" : "exVat"}`)), 1)) : w("", !0)
|
|
1730
1705
|
]),
|
|
1731
|
-
s.showDiscountInput ? (a(), d("div",
|
|
1706
|
+
s.showDiscountInput ? (a(), d("div", ui, [
|
|
1732
1707
|
u(c, {
|
|
1733
1708
|
label: e.$t("discount").capitalize(),
|
|
1734
1709
|
"label-position": "inside",
|
|
@@ -1775,8 +1750,8 @@ function _i(e, t, n, o, s, i) {
|
|
|
1775
1750
|
}, p(i.article.discountType === "percentage" ? "%" : s.getCurrencySymbol(i.article.currency)), 1)
|
|
1776
1751
|
])) : w("", !0)
|
|
1777
1752
|
], 64)),
|
|
1778
|
-
l("div",
|
|
1779
|
-
i.useVat ? (a(), d(
|
|
1753
|
+
l("div", pi, [
|
|
1754
|
+
i.useVat ? (a(), d(A, { key: 0 }, [
|
|
1780
1755
|
e.feature("regionSE") && Number.isInteger(i.article.vat) ? (a(), d("select", {
|
|
1781
1756
|
key: 0,
|
|
1782
1757
|
value: i.article.vat,
|
|
@@ -1784,11 +1759,11 @@ function _i(e, t, n, o, s, i) {
|
|
|
1784
1759
|
style: { display: "inline", "min-height": "initial", background: "hsl(0, 0%, 94%)", "border-color": "hsl(0, 0%, 94%)", color: "hsl(0, 0%, 30%)" },
|
|
1785
1760
|
onInput: t[12] || (t[12] = (r) => i.updateArticle(Number.parseFloat(r.target.value), "vat"))
|
|
1786
1761
|
}, [
|
|
1787
|
-
(a(!0), d(
|
|
1762
|
+
(a(!0), d(A, null, V(s.vatOptions, ({ translation: r, value: x }, I) => (a(), d("option", {
|
|
1788
1763
|
key: I,
|
|
1789
|
-
value:
|
|
1790
|
-
}, p(e.$t(`vat.${i.vatType}`)) + " " + p(r), 9,
|
|
1791
|
-
], 40,
|
|
1764
|
+
value: x
|
|
1765
|
+
}, p(e.$t(`vat.${i.vatType}`)) + " " + p(r), 9, hi))), 128))
|
|
1766
|
+
], 40, mi)) : (a(), d("span", gi, [
|
|
1792
1767
|
_(p(n._document.$t("vat").capitalize()) + " ", 1),
|
|
1793
1768
|
l("input", {
|
|
1794
1769
|
value: i.article.vat || 0,
|
|
@@ -1796,32 +1771,32 @@ function _i(e, t, n, o, s, i) {
|
|
|
1796
1771
|
style: { width: "calc(2.5 * var(--rem))", display: "inline", background: "hsl(0, 0%, 94%)", "border-color": "hsl(0, 0%, 94%)", color: "hsl(0, 0%, 30%)" },
|
|
1797
1772
|
onBlur: t[13] || (t[13] = (...r) => i.onCustomVatBlur && i.onCustomVatBlur(...r)),
|
|
1798
1773
|
onInput: t[14] || (t[14] = (...r) => i.onCustomVatInput && i.onCustomVatInput(...r))
|
|
1799
|
-
}, null, 40,
|
|
1774
|
+
}, null, 40, vi),
|
|
1800
1775
|
t[16] || (t[16] = _(" % "))
|
|
1801
1776
|
]))
|
|
1802
1777
|
], 64)) : w("", !0),
|
|
1803
|
-
i.priceTypeOptions.length ? (a(), d("div",
|
|
1804
|
-
(a(!0), d(
|
|
1778
|
+
i.priceTypeOptions.length ? (a(), d("div", fi, [
|
|
1779
|
+
(a(!0), d(A, null, V(i.priceTypeOptions, ({ label: r, value: x, onClick: I, tooltip: M }, O) => S((a(), d("div", {
|
|
1805
1780
|
key: r + O,
|
|
1806
|
-
class: D([{ active:
|
|
1781
|
+
class: D([{ active: x }, "tag-item"]),
|
|
1807
1782
|
onClick: I
|
|
1808
1783
|
}, [
|
|
1809
1784
|
_(p(r), 1)
|
|
1810
|
-
], 10,
|
|
1785
|
+
], 10, yi)), [
|
|
1811
1786
|
[T, {
|
|
1812
1787
|
content: M,
|
|
1813
1788
|
delay: { show: 300, hide: 0 }
|
|
1814
1789
|
}]
|
|
1815
1790
|
])), 128))
|
|
1816
1791
|
])) : w("", !0),
|
|
1817
|
-
l("div",
|
|
1818
|
-
(a(!0), d(
|
|
1792
|
+
l("div", ki, [
|
|
1793
|
+
(a(!0), d(A, null, V(i.checkboxItems, ({ label: r, value: x, onClick: I, tooltip: M, style: O }, N) => S((a(), d("div", {
|
|
1819
1794
|
key: r + N,
|
|
1820
|
-
class: D([[{ active:
|
|
1795
|
+
class: D([[{ active: x }, O], "tag-item"]),
|
|
1821
1796
|
onClick: I
|
|
1822
1797
|
}, [
|
|
1823
1798
|
_(p(r), 1)
|
|
1824
|
-
], 10,
|
|
1799
|
+
], 10, bi)), [
|
|
1825
1800
|
[T, {
|
|
1826
1801
|
content: M,
|
|
1827
1802
|
delay: { show: 300, hide: 0 }
|
|
@@ -1833,8 +1808,8 @@ function _i(e, t, n, o, s, i) {
|
|
|
1833
1808
|
]),
|
|
1834
1809
|
_: 1
|
|
1835
1810
|
}),
|
|
1836
|
-
l("div",
|
|
1837
|
-
S((a(),
|
|
1811
|
+
l("div", wi, [
|
|
1812
|
+
S((a(), C(y, {
|
|
1838
1813
|
type: "primary",
|
|
1839
1814
|
tabindex: "0",
|
|
1840
1815
|
size: "large",
|
|
@@ -1886,7 +1861,7 @@ function _i(e, t, n, o, s, i) {
|
|
|
1886
1861
|
])
|
|
1887
1862
|
], 34);
|
|
1888
1863
|
}
|
|
1889
|
-
const
|
|
1864
|
+
const _i = /* @__PURE__ */ R(ri, [["render", Ii], ["__scopeId", "data-v-02741d13"]]), $i = {
|
|
1890
1865
|
i18nOptions: {
|
|
1891
1866
|
name: "ArticleListEdit",
|
|
1892
1867
|
namespaces: "ArticleListEdit",
|
|
@@ -1906,12 +1881,12 @@ const $i = /* @__PURE__ */ R(li, [["render", _i], ["__scopeId", "data-v-3054f04f
|
|
|
1906
1881
|
}
|
|
1907
1882
|
},
|
|
1908
1883
|
components: {
|
|
1909
|
-
Article:
|
|
1910
|
-
ArticleModal:
|
|
1884
|
+
Article: Ut,
|
|
1885
|
+
ArticleModal: _i,
|
|
1911
1886
|
Sortable: tt
|
|
1912
1887
|
},
|
|
1913
1888
|
expose: ["focusLastArticle", "openLastArticle"],
|
|
1914
|
-
mixins: [
|
|
1889
|
+
mixins: [F([])],
|
|
1915
1890
|
props: {
|
|
1916
1891
|
_document: {
|
|
1917
1892
|
type: Object,
|
|
@@ -1935,7 +1910,7 @@ const $i = /* @__PURE__ */ R(li, [["render", _i], ["__scopeId", "data-v-3054f04f
|
|
|
1935
1910
|
}
|
|
1936
1911
|
},
|
|
1937
1912
|
setup() {
|
|
1938
|
-
const e = oe("articleItem"), t = oe("container"), { width: n } =
|
|
1913
|
+
const e = oe("articleItem"), t = oe("container"), { width: n } = Fe(t);
|
|
1939
1914
|
return { articleItem: e, articlesWidth: n };
|
|
1940
1915
|
},
|
|
1941
1916
|
emits: [
|
|
@@ -1963,19 +1938,19 @@ const $i = /* @__PURE__ */ R(li, [["render", _i], ["__scopeId", "data-v-3054f04f
|
|
|
1963
1938
|
return se(this.articles);
|
|
1964
1939
|
},
|
|
1965
1940
|
isIndivid() {
|
|
1966
|
-
return
|
|
1941
|
+
return P(this._document, "prices.helpers.isIndivid", !0);
|
|
1967
1942
|
},
|
|
1968
1943
|
setPricesIncVat() {
|
|
1969
|
-
return
|
|
1944
|
+
return P(this, "_document.setPricesIncVat", null);
|
|
1970
1945
|
},
|
|
1971
1946
|
currency() {
|
|
1972
|
-
return
|
|
1947
|
+
return P(this._document, "currency");
|
|
1973
1948
|
},
|
|
1974
1949
|
useVat() {
|
|
1975
|
-
return
|
|
1950
|
+
return P(this, "_document.useVat");
|
|
1976
1951
|
},
|
|
1977
1952
|
vatType() {
|
|
1978
|
-
return
|
|
1953
|
+
return P(this, "_document.vatType");
|
|
1979
1954
|
},
|
|
1980
1955
|
showVatToggle() {
|
|
1981
1956
|
return this.useVat && (this.setPricesIncVat || (this.articles || []).some(({ vat: e }) => e !== null));
|
|
@@ -1992,7 +1967,7 @@ const $i = /* @__PURE__ */ R(li, [["render", _i], ["__scopeId", "data-v-3054f04f
|
|
|
1992
1967
|
e || this.toggleDeductions(!1);
|
|
1993
1968
|
},
|
|
1994
1969
|
setPricesIncVat(e) {
|
|
1995
|
-
this.updateArticlesVatOption(), ["extension", "widget"].includes(
|
|
1970
|
+
this.updateArticlesVatOption(), ["extension", "widget"].includes(qe.value) || this.showMessage({
|
|
1996
1971
|
type: "info",
|
|
1997
1972
|
message: this.$t("vatOption.message", {
|
|
1998
1973
|
vatOption: this.$t(`_common:vat.${e ? "incVat" : "exVat"}`, {
|
|
@@ -2029,10 +2004,10 @@ const $i = /* @__PURE__ */ R(li, [["render", _i], ["__scopeId", "data-v-3054f04f
|
|
|
2029
2004
|
updateArticlesVatOption() {
|
|
2030
2005
|
this.articles.forEach((e, t) => {
|
|
2031
2006
|
if (e.priceType === "markup") return;
|
|
2032
|
-
let n =
|
|
2007
|
+
let n = q({ amount: e.price }).divide(
|
|
2033
2008
|
(100 + e.vat) * 0.01
|
|
2034
2009
|
);
|
|
2035
|
-
this.setPricesIncVat || (n =
|
|
2010
|
+
this.setPricesIncVat || (n = q({ amount: e.price }).multiply(
|
|
2036
2011
|
(100 + e.vat) * 0.01
|
|
2037
2012
|
)), this.updateArticleObject(
|
|
2038
2013
|
t,
|
|
@@ -2088,14 +2063,14 @@ const $i = /* @__PURE__ */ R(li, [["render", _i], ["__scopeId", "data-v-3054f04f
|
|
|
2088
2063
|
this.$emit("move", t);
|
|
2089
2064
|
}
|
|
2090
2065
|
}
|
|
2091
|
-
},
|
|
2066
|
+
}, Ti = { ref: "container" }, Ai = {
|
|
2092
2067
|
key: 0,
|
|
2093
2068
|
class: "label-text"
|
|
2094
2069
|
};
|
|
2095
|
-
function
|
|
2070
|
+
function Ci(e, t, n, o, s, i) {
|
|
2096
2071
|
const f = h("Article"), g = h("Sortable"), k = h("ArticleModal"), c = h("Portal");
|
|
2097
|
-
return a(), d("div",
|
|
2098
|
-
i.showVatToggle ? (a(), d("div",
|
|
2072
|
+
return a(), d("div", Ti, [
|
|
2073
|
+
i.showVatToggle ? (a(), d("div", Ai, [
|
|
2099
2074
|
_(p(e.$t("vatOption.label")) + " ", 1),
|
|
2100
2075
|
l("span", {
|
|
2101
2076
|
onClick: t[0] || (t[0] = (b) => i.changeVat())
|
|
@@ -2142,7 +2117,7 @@ function Pi(e, t, n, o, s, i) {
|
|
|
2142
2117
|
}, 8, ["options", "list"]),
|
|
2143
2118
|
u(c, { to: "modal" }, {
|
|
2144
2119
|
default: v(() => [
|
|
2145
|
-
s.showModal && i.articlesWithTotal[s.selectedIndex] ? (a(),
|
|
2120
|
+
s.showModal && i.articlesWithTotal[s.selectedIndex] ? (a(), C(k, {
|
|
2146
2121
|
key: 0,
|
|
2147
2122
|
ref: "articleModal",
|
|
2148
2123
|
_document: n._document,
|
|
@@ -2166,7 +2141,7 @@ function Pi(e, t, n, o, s, i) {
|
|
|
2166
2141
|
})
|
|
2167
2142
|
], 512);
|
|
2168
2143
|
}
|
|
2169
|
-
const xi = /* @__PURE__ */ R(
|
|
2144
|
+
const xi = /* @__PURE__ */ R($i, [["render", Ci], ["__scopeId", "data-v-be2e0a5c"]]), Pi = {
|
|
2170
2145
|
name: "MaxTotalInput",
|
|
2171
2146
|
i18nOptions: {
|
|
2172
2147
|
namespaces: "MaxTotalInput",
|
|
@@ -2209,18 +2184,18 @@ const xi = /* @__PURE__ */ R(Ti, [["render", Pi], ["__scopeId", "data-v-be2e0a5c
|
|
|
2209
2184
|
},
|
|
2210
2185
|
watch: {
|
|
2211
2186
|
isIncVat(e) {
|
|
2212
|
-
let t =
|
|
2187
|
+
let t = q({ amount: this.modelValue }).divide(
|
|
2213
2188
|
1.25
|
|
2214
2189
|
);
|
|
2215
|
-
e || (t =
|
|
2190
|
+
e || (t = q({ amount: this.modelValue }).multiply(
|
|
2216
2191
|
125 * 0.01
|
|
2217
2192
|
)), this.$emit("update:modelValue", t.getAmount());
|
|
2218
2193
|
}
|
|
2219
2194
|
}
|
|
2220
|
-
},
|
|
2221
|
-
function
|
|
2195
|
+
}, Di = { class: "flex w-full justify-end" };
|
|
2196
|
+
function Vi(e, t, n, o, s, i) {
|
|
2222
2197
|
const f = h("CPriceInput");
|
|
2223
|
-
return a(), d("div",
|
|
2198
|
+
return a(), d("div", Di, [
|
|
2224
2199
|
u(f, {
|
|
2225
2200
|
"model-value": n.modelValue,
|
|
2226
2201
|
currency: n.currency,
|
|
@@ -2245,7 +2220,7 @@ function Si(e, t, n, o, s, i) {
|
|
|
2245
2220
|
}, 8, ["model-value", "currency", "is-inc-vat", "placeholder"])
|
|
2246
2221
|
]);
|
|
2247
2222
|
}
|
|
2248
|
-
const
|
|
2223
|
+
const Si = /* @__PURE__ */ R(Pi, [["render", Vi]]), Ri = {
|
|
2249
2224
|
components: {
|
|
2250
2225
|
CDropdown: Z,
|
|
2251
2226
|
CDropdownItem: Y
|
|
@@ -2262,10 +2237,10 @@ const Ri = /* @__PURE__ */ R(Di, [["render", Si]]), Mi = {
|
|
|
2262
2237
|
priceTypeOptions: ["fixed", "approx", "openAcc", "openAccMaxPrice"]
|
|
2263
2238
|
};
|
|
2264
2239
|
}
|
|
2265
|
-
},
|
|
2266
|
-
function
|
|
2240
|
+
}, Mi = { class: "flex justify-end" };
|
|
2241
|
+
function Oi(e, t, n, o, s, i) {
|
|
2267
2242
|
const f = h("CButton"), g = h("CDropdownItem"), k = h("CDropdown");
|
|
2268
|
-
return a(), d("div",
|
|
2243
|
+
return a(), d("div", Mi, [
|
|
2269
2244
|
u(k, { "model-value": n.modelValue }, {
|
|
2270
2245
|
trigger: v(() => [
|
|
2271
2246
|
u(f, { class: "price-type-button" }, {
|
|
@@ -2277,7 +2252,7 @@ function Li(e, t, n, o, s, i) {
|
|
|
2277
2252
|
})
|
|
2278
2253
|
]),
|
|
2279
2254
|
default: v(() => [
|
|
2280
|
-
(a(!0), d(
|
|
2255
|
+
(a(!0), d(A, null, V(s.priceTypeOptions, (c) => (a(), C(g, {
|
|
2281
2256
|
key: c,
|
|
2282
2257
|
value: c,
|
|
2283
2258
|
class: "text-right",
|
|
@@ -2293,7 +2268,7 @@ function Li(e, t, n, o, s, i) {
|
|
|
2293
2268
|
}, 8, ["model-value"])
|
|
2294
2269
|
]);
|
|
2295
2270
|
}
|
|
2296
|
-
const
|
|
2271
|
+
const Li = /* @__PURE__ */ R(Ri, [["render", Oi], ["__scopeId", "data-v-d374fd9b"]]), Ei = {
|
|
2297
2272
|
name: "EditDeduction",
|
|
2298
2273
|
i18nOptions: {
|
|
2299
2274
|
namespaces: "EditDeduction",
|
|
@@ -2321,7 +2296,7 @@ const Ei = /* @__PURE__ */ R(Mi, [["render", Li], ["__scopeId", "data-v-d374fd9b
|
|
|
2321
2296
|
CIcon: Ne,
|
|
2322
2297
|
FormInputRow: at
|
|
2323
2298
|
},
|
|
2324
|
-
mixins: [
|
|
2299
|
+
mixins: [F(["houseWorkManualAmount", "houseWorkDeductionDate"])],
|
|
2325
2300
|
props: {
|
|
2326
2301
|
disabled: {
|
|
2327
2302
|
type: Boolean,
|
|
@@ -2369,17 +2344,17 @@ const Ei = /* @__PURE__ */ R(Mi, [["render", Li], ["__scopeId", "data-v-d374fd9b
|
|
|
2369
2344
|
this.internalDeductionDate = e, this.internalValue = null;
|
|
2370
2345
|
},
|
|
2371
2346
|
setDeduction(e) {
|
|
2372
|
-
this.internalValue =
|
|
2347
|
+
this.internalValue = q({ amount: this.total }).multiply(e).getAmount(), this.internalDeductionDate = null;
|
|
2373
2348
|
},
|
|
2374
2349
|
showModal() {
|
|
2375
2350
|
this.internalValue = this.houseWorkManualAmount || null, this.internalDeductionDate = this.houseWorkDeductionDate || null, this.$modal.show(this.modalName);
|
|
2376
2351
|
}
|
|
2377
2352
|
}
|
|
2378
|
-
},
|
|
2353
|
+
}, Ui = { class: "deduction-modal flex w-full flex-col items-center justify-between rounded-lg" }, Bi = { class: "mb-5 text-center text-base font-extrabold" }, Wi = { class: "mb-5 w-full" }, zi = { class: "my-5 text-center text-base font-extrabold" }, ji = { class: "mb-5 w-full rounded-md bg-gray-100 p-2 text-center text-sm font-medium italic text-gray-500" }, qi = { class: "flex w-full flex-wrap justify-center gap-2" }, Fi = ["onClick"], Ni = {
|
|
2379
2354
|
key: 0,
|
|
2380
2355
|
class: "mt-5 w-full"
|
|
2381
|
-
},
|
|
2382
|
-
function
|
|
2356
|
+
}, Hi = { class: "mb-3 flex rounded-lg border border-blue-200 bg-blue-50 p-3 shadow-lg" }, Gi = { class: "pl-2" }, Ki = ["textContent"], Yi = { class: "mb-3 text-sm text-blue-600 text-opacity-80" }, Zi = { class: "pl-2" };
|
|
2357
|
+
function Ji(e, t, n, o, s, i) {
|
|
2383
2358
|
const f = h("CPriceInput"), g = h("CIcon"), k = h("FormInputRow"), c = h("CButton"), b = h("modal");
|
|
2384
2359
|
return a(), d("div", null, [
|
|
2385
2360
|
u(b, B({
|
|
@@ -2390,9 +2365,9 @@ function Xi(e, t, n, o, s, i) {
|
|
|
2390
2365
|
classes: "primary"
|
|
2391
2366
|
}, { name: s.modalName }), {
|
|
2392
2367
|
default: v(() => [
|
|
2393
|
-
l("div",
|
|
2394
|
-
l("div",
|
|
2395
|
-
l("div",
|
|
2368
|
+
l("div", Ui, [
|
|
2369
|
+
l("div", Bi, p(e.$t("manualDeduction")), 1),
|
|
2370
|
+
l("div", Wi, [
|
|
2396
2371
|
u(f, {
|
|
2397
2372
|
modelValue: s.internalValue,
|
|
2398
2373
|
"onUpdate:modelValue": t[0] || (t[0] = (y) => s.internalValue = y),
|
|
@@ -2410,10 +2385,10 @@ function Xi(e, t, n, o, s, i) {
|
|
|
2410
2385
|
_: 1
|
|
2411
2386
|
}, 8, ["modelValue", "placeholder", "onInput"])
|
|
2412
2387
|
]),
|
|
2413
|
-
l("div",
|
|
2388
|
+
l("div", zi, p(e.$t("standardDeduction")), 1),
|
|
2414
2389
|
l("div", ji, p(e.$t("standardDeductionMessage")), 1),
|
|
2415
2390
|
l("div", qi, [
|
|
2416
|
-
(a(), d(
|
|
2391
|
+
(a(), d(A, null, V([
|
|
2417
2392
|
{ v: 0.09, l: "9%" },
|
|
2418
2393
|
{ v: 0.105, l: "10.5%" },
|
|
2419
2394
|
{ v: 0.1455, l: "14.55%" },
|
|
@@ -2427,10 +2402,10 @@ function Xi(e, t, n, o, s, i) {
|
|
|
2427
2402
|
active: Math.round(n.total * y.v) === s.internalValue
|
|
2428
2403
|
}, "deduction-button"]),
|
|
2429
2404
|
onClick: ($) => i.setDeduction(y.v)
|
|
2430
|
-
}, p(y.l), 11,
|
|
2405
|
+
}, p(y.l), 11, Fi)), 64))
|
|
2431
2406
|
]),
|
|
2432
|
-
i.futureDeductionDates.length ? (a(), d("div",
|
|
2433
|
-
l("div",
|
|
2407
|
+
i.futureDeductionDates.length ? (a(), d("div", Ni, [
|
|
2408
|
+
l("div", Hi, [
|
|
2434
2409
|
l("div", null, [
|
|
2435
2410
|
u(g, {
|
|
2436
2411
|
type: "info",
|
|
@@ -2439,14 +2414,14 @@ function Xi(e, t, n, o, s, i) {
|
|
|
2439
2414
|
})
|
|
2440
2415
|
]),
|
|
2441
2416
|
l("div", null, [
|
|
2442
|
-
l("div",
|
|
2417
|
+
l("div", Gi, [
|
|
2443
2418
|
l("div", {
|
|
2444
2419
|
class: "mb-2 text-sm font-semibold text-blue-600",
|
|
2445
2420
|
textContent: p(e.$t("deductionDate.title"))
|
|
2446
|
-
}, null, 8,
|
|
2447
|
-
l("div",
|
|
2421
|
+
}, null, 8, Ki),
|
|
2422
|
+
l("div", Yi, p(e.$t("deductionDate.description")), 1)
|
|
2448
2423
|
]),
|
|
2449
|
-
l("div",
|
|
2424
|
+
l("div", Zi, [
|
|
2450
2425
|
u(k, {
|
|
2451
2426
|
label: e.$t("deductionDate.label"),
|
|
2452
2427
|
inputs: [
|
|
@@ -2503,10 +2478,10 @@ function Xi(e, t, n, o, s, i) {
|
|
|
2503
2478
|
}, 16, ["name"])
|
|
2504
2479
|
]);
|
|
2505
2480
|
}
|
|
2506
|
-
const
|
|
2481
|
+
const Xi = /* @__PURE__ */ R(Ei, [["render", Ji], ["__scopeId", "data-v-383d813f"]]), Qi = {
|
|
2507
2482
|
name: "Pricing",
|
|
2508
2483
|
components: {
|
|
2509
|
-
EditDeduction:
|
|
2484
|
+
EditDeduction: Xi
|
|
2510
2485
|
},
|
|
2511
2486
|
props: {
|
|
2512
2487
|
_document: {
|
|
@@ -2525,15 +2500,15 @@ const Qi = /* @__PURE__ */ R(Ui, [["render", Xi], ["__scopeId", "data-v-383d813f
|
|
|
2525
2500
|
emits: ["input"],
|
|
2526
2501
|
data() {
|
|
2527
2502
|
return {
|
|
2528
|
-
get:
|
|
2503
|
+
get: P
|
|
2529
2504
|
};
|
|
2530
2505
|
},
|
|
2531
2506
|
computed: {
|
|
2532
2507
|
vatType() {
|
|
2533
|
-
return
|
|
2508
|
+
return P(this, "_document.vatType");
|
|
2534
2509
|
},
|
|
2535
2510
|
customDeductionDate() {
|
|
2536
|
-
return
|
|
2511
|
+
return P(this._document, "data.prices.region.deductionDate", null);
|
|
2537
2512
|
},
|
|
2538
2513
|
priceArray() {
|
|
2539
2514
|
return [
|
|
@@ -2556,7 +2531,7 @@ const Qi = /* @__PURE__ */ R(Ui, [["render", Xi], ["__scopeId", "data-v-383d813f
|
|
|
2556
2531
|
}),
|
|
2557
2532
|
value: -this.prices.region.houseWorkAmount,
|
|
2558
2533
|
action: () => this.$refs.deduction.showModal(),
|
|
2559
|
-
showIcon: !!
|
|
2534
|
+
showIcon: !!P(this.prices, "region.houseWorkManualAmount", !1) || !!this.customDeductionDate,
|
|
2560
2535
|
tooltip: this.$t("_common:manualDeductionTooltip")
|
|
2561
2536
|
}
|
|
2562
2537
|
] : [],
|
|
@@ -2606,18 +2581,18 @@ const Qi = /* @__PURE__ */ R(Ui, [["render", Xi], ["__scopeId", "data-v-383d813f
|
|
|
2606
2581
|
return e;
|
|
2607
2582
|
},
|
|
2608
2583
|
showHouseWork() {
|
|
2609
|
-
return !!
|
|
2584
|
+
return !!P(this.prices, "region.houseWorkType", !1) || !!P(this.prices, "region.houseWorkManualAmount", !1);
|
|
2610
2585
|
}
|
|
2611
2586
|
}
|
|
2612
|
-
},
|
|
2587
|
+
}, en = { class: "price-bubble" }, tn = { class: "flex w-full items-center justify-between" }, nn = { class: "price-label" }, sn = {
|
|
2613
2588
|
key: 0,
|
|
2614
2589
|
class: "pricing-sub-label"
|
|
2615
|
-
},
|
|
2616
|
-
function
|
|
2590
|
+
}, an = ["onClick"], on = { class: "price-value" };
|
|
2591
|
+
function rn(e, t, n, o, s, i) {
|
|
2617
2592
|
const f = h("EditDeduction"), g = h("CIcon"), k = U("tooltip");
|
|
2618
|
-
return a(), d("div",
|
|
2619
|
-
l("div",
|
|
2620
|
-
i.showHouseWork ? (a(),
|
|
2593
|
+
return a(), d("div", en, [
|
|
2594
|
+
l("div", tn, [
|
|
2595
|
+
i.showHouseWork ? (a(), C(f, {
|
|
2621
2596
|
key: 0,
|
|
2622
2597
|
ref: "deduction",
|
|
2623
2598
|
disabled: !s.get(i.prices, "region.houseWorkType", !1),
|
|
@@ -2633,13 +2608,13 @@ function ln(e, t, n, o, s, i) {
|
|
|
2633
2608
|
}, null, 8, ["disabled", "_document", "_value", "house-work-type", "house-work-amount", "total"])) : w("", !0)
|
|
2634
2609
|
]),
|
|
2635
2610
|
l("div", null, [
|
|
2636
|
-
(a(!0), d(
|
|
2611
|
+
(a(!0), d(A, null, V(i.priceArray, (c, b) => (a(), d("div", {
|
|
2637
2612
|
key: b,
|
|
2638
2613
|
class: D([[c.classList || ""], "price-row flex w-full justify-between"])
|
|
2639
2614
|
}, [
|
|
2640
|
-
l("div",
|
|
2615
|
+
l("div", nn, [
|
|
2641
2616
|
_(p(c.label.capitalize()) + " ", 1),
|
|
2642
|
-
c.subLabel ? (a(), d("span",
|
|
2617
|
+
c.subLabel ? (a(), d("span", sn, p(c.subLabel), 1)) : w("", !0),
|
|
2643
2618
|
c.action ? S((a(), d("span", {
|
|
2644
2619
|
key: 1,
|
|
2645
2620
|
class: "pricing-action",
|
|
@@ -2658,10 +2633,10 @@ function ln(e, t, n, o, s, i) {
|
|
|
2658
2633
|
l("path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
|
|
2659
2634
|
l("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })
|
|
2660
2635
|
], -1)
|
|
2661
|
-
]), 8,
|
|
2636
|
+
]), 8, an)), [
|
|
2662
2637
|
[k, e.$t("edit", { thing: e.$t("deduction.deduction") })]
|
|
2663
2638
|
]) : w("", !0),
|
|
2664
|
-
c.showIcon ? S((a(),
|
|
2639
|
+
c.showIcon ? S((a(), C(g, {
|
|
2665
2640
|
key: 2,
|
|
2666
2641
|
type: "info",
|
|
2667
2642
|
size: "20",
|
|
@@ -2670,12 +2645,12 @@ function ln(e, t, n, o, s, i) {
|
|
|
2670
2645
|
[k, c.tooltip]
|
|
2671
2646
|
]) : w("", !0)
|
|
2672
2647
|
]),
|
|
2673
|
-
l("div",
|
|
2648
|
+
l("div", on, p(c.prefix) + " " + p(c.value), 1)
|
|
2674
2649
|
], 2))), 128))
|
|
2675
2650
|
])
|
|
2676
2651
|
]);
|
|
2677
2652
|
}
|
|
2678
|
-
const
|
|
2653
|
+
const ln = /* @__PURE__ */ R(Qi, [["render", rn], ["__scopeId", "data-v-598789d2"]]), cn = {
|
|
2679
2654
|
name: "PackageItemEdit",
|
|
2680
2655
|
i18nOptions: {
|
|
2681
2656
|
namespaces: "PackageItemEdit",
|
|
@@ -2704,9 +2679,9 @@ const cn = /* @__PURE__ */ R(en, [["render", ln], ["__scopeId", "data-v-598789d2
|
|
|
2704
2679
|
},
|
|
2705
2680
|
components: {
|
|
2706
2681
|
ArticleList: xi,
|
|
2707
|
-
PriceFormAlternatives:
|
|
2708
|
-
MaxTotalInput:
|
|
2709
|
-
Pricing:
|
|
2682
|
+
PriceFormAlternatives: Li,
|
|
2683
|
+
MaxTotalInput: Si,
|
|
2684
|
+
Pricing: ln,
|
|
2710
2685
|
TextEditor: et,
|
|
2711
2686
|
CDropdown: Z,
|
|
2712
2687
|
CDropdownItem: Y
|
|
@@ -2722,7 +2697,7 @@ const cn = /* @__PURE__ */ R(en, [["render", ln], ["__scopeId", "data-v-598789d2
|
|
|
2722
2697
|
"remove-package"
|
|
2723
2698
|
],
|
|
2724
2699
|
mixins: [
|
|
2725
|
-
|
|
2700
|
+
F([
|
|
2726
2701
|
"isSelectedDefault",
|
|
2727
2702
|
"isSelected",
|
|
2728
2703
|
"name",
|
|
@@ -2864,13 +2839,13 @@ const cn = /* @__PURE__ */ R(en, [["render", ln], ["__scopeId", "data-v-598789d2
|
|
|
2864
2839
|
});
|
|
2865
2840
|
}
|
|
2866
2841
|
}
|
|
2867
|
-
},
|
|
2868
|
-
function
|
|
2869
|
-
const f = h("CButton"), g = h("CDropdownItem"), k = h("CDropdown"), c = h("TextEditor"), b = h("MaxTotalInput"), y = h("PriceFormAlternatives"), $ = h("ArticleList"), m = h("CIcon"), T = h("Pricing"), r = U("tooltip"),
|
|
2870
|
-
return a(), d("div",
|
|
2871
|
-
l("div",
|
|
2842
|
+
}, dn = { class: "min-h-0 rounded-md border border-gray-200 bg-white text-black" }, un = { class: "flex w-full items-center justify-between bg-gray-100 py-1 pl-4 pr-1 text-sm font-medium text-gray-600" }, pn = { class: "p-4" }, mn = { class: "mb-0.5 flex items-center" }, hn = ["id", "placeholder"], gn = { class: "mt-2 flex gap-2" };
|
|
2843
|
+
function vn(e, t, n, o, s, i) {
|
|
2844
|
+
const f = h("CButton"), g = h("CDropdownItem"), k = h("CDropdown"), c = h("TextEditor"), b = h("MaxTotalInput"), y = h("PriceFormAlternatives"), $ = h("ArticleList"), m = h("CIcon"), T = h("Pricing"), r = U("tooltip"), x = U("click-outside");
|
|
2845
|
+
return a(), d("div", dn, [
|
|
2846
|
+
l("div", un, [
|
|
2872
2847
|
l("div", null, p(n.type === "single" ? e.$t("single") : n.type === "radio" || n.toggable ? e.$t("option") : e.$t("base")), 1),
|
|
2873
|
-
n.type !== "single" ? (a(),
|
|
2848
|
+
n.type !== "single" ? (a(), C(k, {
|
|
2874
2849
|
key: 0,
|
|
2875
2850
|
class: "ml-4"
|
|
2876
2851
|
}, {
|
|
@@ -2888,7 +2863,7 @@ function fn(e, t, n, o, s, i) {
|
|
|
2888
2863
|
})
|
|
2889
2864
|
]),
|
|
2890
2865
|
default: v(() => [
|
|
2891
|
-
n.toggable ? (a(), d(
|
|
2866
|
+
n.toggable ? (a(), d(A, { key: 0 }, [
|
|
2892
2867
|
u(g, {
|
|
2893
2868
|
value: e.isSelectedDefault,
|
|
2894
2869
|
toggle: !0,
|
|
@@ -2938,15 +2913,15 @@ function fn(e, t, n, o, s, i) {
|
|
|
2938
2913
|
_: 1
|
|
2939
2914
|
})) : w("", !0)
|
|
2940
2915
|
]),
|
|
2941
|
-
l("div",
|
|
2942
|
-
l("div",
|
|
2916
|
+
l("div", pn, [
|
|
2917
|
+
l("div", mn, [
|
|
2943
2918
|
S(l("input", {
|
|
2944
2919
|
id: `package-name-${n.packageId}`,
|
|
2945
2920
|
"onUpdate:modelValue": t[3] || (t[3] = (I) => e.name = I),
|
|
2946
2921
|
placeholder: e.$t("namePlaceholder"),
|
|
2947
2922
|
class: "block w-full rounded-lg p-0 text-xl font-bold leading-loose placeholder:text-gray-400",
|
|
2948
|
-
onKeyup: t[4] || (t[4] =
|
|
2949
|
-
}, null, 40,
|
|
2923
|
+
onKeyup: t[4] || (t[4] = j((I) => e.$refs.editor.focus(), ["enter"]))
|
|
2924
|
+
}, null, 40, hn), [
|
|
2950
2925
|
[Je, e.name]
|
|
2951
2926
|
])
|
|
2952
2927
|
]),
|
|
@@ -2962,7 +2937,7 @@ function fn(e, t, n, o, s, i) {
|
|
|
2962
2937
|
onMouseoverPassive: t[15] || (t[15] = (I) => s.isHover = !0),
|
|
2963
2938
|
onMouseleavePassive: t[16] || (t[16] = (I) => s.isHover = !1)
|
|
2964
2939
|
}, [
|
|
2965
|
-
e.priceType === "openAccMaxPrice" ? (a(),
|
|
2940
|
+
e.priceType === "openAccMaxPrice" ? (a(), C(b, {
|
|
2966
2941
|
key: 0,
|
|
2967
2942
|
modelValue: e.maxTotal,
|
|
2968
2943
|
"onUpdate:modelValue": t[6] || (t[6] = (I) => e.maxTotal = I),
|
|
@@ -2993,7 +2968,7 @@ function fn(e, t, n, o, s, i) {
|
|
|
2993
2968
|
onFocus: t[11] || (t[11] = (I) => s.isFocus = !0),
|
|
2994
2969
|
onInsert: i.onInsert
|
|
2995
2970
|
}, null, 8, ["_document", "articles", "root-price-type", "active-house-work-type", "hide-controls", "onInput", "onMove", "onRemove", "onAdd", "onInsert"]),
|
|
2996
|
-
l("div",
|
|
2971
|
+
l("div", gn, [
|
|
2997
2972
|
l("div", {
|
|
2998
2973
|
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",
|
|
2999
2974
|
onClick: t[12] || (t[12] = (I) => i.onArticleAdd())
|
|
@@ -3030,7 +3005,7 @@ function fn(e, t, n, o, s, i) {
|
|
|
3030
3005
|
}, null, 8, ["_document", "base-path", "package-id"])
|
|
3031
3006
|
], 32)), [
|
|
3032
3007
|
[
|
|
3033
|
-
|
|
3008
|
+
x,
|
|
3034
3009
|
() => {
|
|
3035
3010
|
s.isFocus = !1, s.isHover = !1;
|
|
3036
3011
|
}
|
|
@@ -3039,13 +3014,13 @@ function fn(e, t, n, o, s, i) {
|
|
|
3039
3014
|
])
|
|
3040
3015
|
]);
|
|
3041
3016
|
}
|
|
3042
|
-
const
|
|
3017
|
+
const fn = /* @__PURE__ */ R(cn, [["render", vn], ["__scopeId", "data-v-c30e980a"]]), yn = (e) => (e || []).slice(0, 1).map((t) => ({
|
|
3043
3018
|
...t,
|
|
3044
3019
|
isSelected: !0,
|
|
3045
3020
|
isSelectedDefault: !0,
|
|
3046
3021
|
toggable: !1
|
|
3047
|
-
})),
|
|
3048
|
-
const t =
|
|
3022
|
+
})), kn = (e) => {
|
|
3023
|
+
const t = P(e, "0.data.prices.type") || "fixed";
|
|
3049
3024
|
return (e || []).map((n, o) => ({
|
|
3050
3025
|
...n,
|
|
3051
3026
|
toggable: !0,
|
|
@@ -3062,7 +3037,7 @@ const yn = /* @__PURE__ */ R(dn, [["render", fn], ["__scopeId", "data-v-c30e980a
|
|
|
3062
3037
|
}
|
|
3063
3038
|
}
|
|
3064
3039
|
}));
|
|
3065
|
-
},
|
|
3040
|
+
}, bn = (e = []) => {
|
|
3066
3041
|
let t = !1;
|
|
3067
3042
|
return e.map((n) => {
|
|
3068
3043
|
const o = {
|
|
@@ -3077,13 +3052,13 @@ const yn = /* @__PURE__ */ R(dn, [["render", fn], ["__scopeId", "data-v-c30e980a
|
|
|
3077
3052
|
return (o.isSelected || o.isSelectedDefault) && (t = !0), o;
|
|
3078
3053
|
}, []);
|
|
3079
3054
|
};
|
|
3080
|
-
function
|
|
3081
|
-
if (e === "single") return
|
|
3082
|
-
if (e === "checkbox") return
|
|
3083
|
-
if (e === "radio") return
|
|
3055
|
+
function wn(e, ...t) {
|
|
3056
|
+
if (e === "single") return yn(...t);
|
|
3057
|
+
if (e === "checkbox") return kn(...t);
|
|
3058
|
+
if (e === "radio") return bn(...t);
|
|
3084
3059
|
throw new Error(`Package filter type '${e}' is not implemented`);
|
|
3085
3060
|
}
|
|
3086
|
-
const
|
|
3061
|
+
const In = {
|
|
3087
3062
|
name: "PackageGroupEdit",
|
|
3088
3063
|
i18nOptions: {
|
|
3089
3064
|
namespaces: "PackageGroupEdit",
|
|
@@ -3122,14 +3097,14 @@ const _n = {
|
|
|
3122
3097
|
},
|
|
3123
3098
|
components: {
|
|
3124
3099
|
ErrorCallout: me,
|
|
3125
|
-
PackageItem:
|
|
3126
|
-
PackageGroupSelect:
|
|
3100
|
+
PackageItem: fn,
|
|
3101
|
+
PackageGroupSelect: wt,
|
|
3127
3102
|
CCallout: $e,
|
|
3128
3103
|
CDropdown: Z,
|
|
3129
3104
|
CDropdownItem: Y
|
|
3130
3105
|
},
|
|
3131
3106
|
mixins: [
|
|
3132
|
-
|
|
3107
|
+
F([
|
|
3133
3108
|
"type",
|
|
3134
3109
|
// 'title',
|
|
3135
3110
|
"packages",
|
|
@@ -3174,10 +3149,10 @@ const _n = {
|
|
|
3174
3149
|
) || {};
|
|
3175
3150
|
},
|
|
3176
3151
|
houseWorkType() {
|
|
3177
|
-
return
|
|
3152
|
+
return P(this.group, "prices.region.houseWorkType", null);
|
|
3178
3153
|
},
|
|
3179
3154
|
isIndivid() {
|
|
3180
|
-
return
|
|
3155
|
+
return P(this, "_document.prices.helpers.isIndivid", !0);
|
|
3181
3156
|
},
|
|
3182
3157
|
setPricesIncVat() {
|
|
3183
3158
|
return this._document.setPricesIncVat;
|
|
@@ -3233,11 +3208,11 @@ const _n = {
|
|
|
3233
3208
|
if (!this.persistedGroup || !this.persistedGroup.type) return;
|
|
3234
3209
|
let { packages: t, articles: n } = this.persistedGroup;
|
|
3235
3210
|
if (!t.length) return;
|
|
3236
|
-
if (e !== this.persistedGroup.type && (t =
|
|
3211
|
+
if (e !== this.persistedGroup.type && (t = wn(e, t)), e === "single" && n.length) {
|
|
3237
3212
|
const [{ packageId: s }] = t;
|
|
3238
3213
|
n = n.filter((i) => i.packageId === s);
|
|
3239
3214
|
}
|
|
3240
|
-
const o =
|
|
3215
|
+
const o = ut(
|
|
3241
3216
|
[...this._document.allArticles || [], ...n || []],
|
|
3242
3217
|
(s) => s._uniqueId
|
|
3243
3218
|
);
|
|
@@ -3322,28 +3297,28 @@ const _n = {
|
|
|
3322
3297
|
this.$emit("input", { key: this._value.packages, value: n });
|
|
3323
3298
|
}
|
|
3324
3299
|
}
|
|
3325
|
-
},
|
|
3300
|
+
}, _n = { class: "package-group-root font-inter" }, $n = { key: 0 }, Tn = { style: { position: "absolute", right: "0", top: "-10px", transform: "translateY(-100%)", "z-index": "2" } }, An = { class: "pb-4" }, Cn = {
|
|
3326
3301
|
key: 2,
|
|
3327
3302
|
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%)" }
|
|
3328
3303
|
}, xn = {
|
|
3329
3304
|
key: 4,
|
|
3330
3305
|
class: "flex w-full flex-col items-center justify-center"
|
|
3331
|
-
},
|
|
3306
|
+
}, Pn = { style: { width: "100%" } }, Dn = {
|
|
3332
3307
|
key: 0,
|
|
3333
3308
|
class: "package-placeholder bg-gray-100",
|
|
3334
3309
|
style: { color: "hsl(0, 0%, 24%)", "font-weight": "500" }
|
|
3335
|
-
},
|
|
3310
|
+
}, Vn = {
|
|
3336
3311
|
style: { "vertical-align": "text-bottom", "margin-right": "3px" },
|
|
3337
3312
|
width: "16",
|
|
3338
3313
|
height: "16",
|
|
3339
3314
|
viewBox: "0 0 18 14",
|
|
3340
3315
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3341
|
-
},
|
|
3342
|
-
function
|
|
3316
|
+
}, Sn = { class: "flex w-full" };
|
|
3317
|
+
function Rn(e, t, n, o, s, i) {
|
|
3343
3318
|
const f = h("PackageGroupSelect"), g = h("ErrorCallout"), k = h("CButton"), c = h("CDropdownItem"), b = h("CDropdown"), y = h("CCallout"), $ = h("PackageItem");
|
|
3344
|
-
return a(), d("div",
|
|
3345
|
-
e.type ? (a(), d(
|
|
3346
|
-
l("div",
|
|
3319
|
+
return a(), d("div", _n, [
|
|
3320
|
+
e.type ? (a(), d(A, { key: 1 }, [
|
|
3321
|
+
l("div", Tn, [
|
|
3347
3322
|
u(b, null, {
|
|
3348
3323
|
trigger: v(() => [
|
|
3349
3324
|
u(k, {
|
|
@@ -3378,13 +3353,13 @@ function Mn(e, t, n, o, s, i) {
|
|
|
3378
3353
|
_: 1
|
|
3379
3354
|
})
|
|
3380
3355
|
]),
|
|
3381
|
-
e.type === "checkbox" && !i.internalPackages.find((m) => m.toggable === !1) ? (a(),
|
|
3356
|
+
e.type === "checkbox" && !i.internalPackages.find((m) => m.toggable === !1) ? (a(), C(y, {
|
|
3382
3357
|
key: 0,
|
|
3383
3358
|
title: e.$t("base"),
|
|
3384
3359
|
class: "w-full"
|
|
3385
3360
|
}, {
|
|
3386
3361
|
default: v(() => [
|
|
3387
|
-
l("div",
|
|
3362
|
+
l("div", An, p(e.$t("basePlaceholder")), 1),
|
|
3388
3363
|
u(k, {
|
|
3389
3364
|
type: "secondary",
|
|
3390
3365
|
size: "small",
|
|
@@ -3402,13 +3377,13 @@ function Mn(e, t, n, o, s, i) {
|
|
|
3402
3377
|
})
|
|
3403
3378
|
]),
|
|
3404
3379
|
_: 1
|
|
3405
|
-
}, 8, ["title"])) : (a(),
|
|
3380
|
+
}, 8, ["title"])) : (a(), C(re, {
|
|
3406
3381
|
key: 1,
|
|
3407
3382
|
name: "section-list",
|
|
3408
3383
|
tag: "div"
|
|
3409
3384
|
}, {
|
|
3410
3385
|
default: v(() => [
|
|
3411
|
-
(a(!0), d(
|
|
3386
|
+
(a(!0), d(A, null, V(i.topRowPackages, (m, T) => (a(), d("div", {
|
|
3412
3387
|
key: m.packageId,
|
|
3413
3388
|
class: "section-item pb-4"
|
|
3414
3389
|
}, [
|
|
@@ -3448,15 +3423,15 @@ function Mn(e, t, n, o, s, i) {
|
|
|
3448
3423
|
]),
|
|
3449
3424
|
_: 1
|
|
3450
3425
|
})),
|
|
3451
|
-
e.type === "checkbox" && i.topRowPackages.length && i.bottomRowPackages.length ? (a(), d("div",
|
|
3452
|
-
e.type === "checkbox" ? (a(),
|
|
3426
|
+
e.type === "checkbox" && i.topRowPackages.length && i.bottomRowPackages.length ? (a(), d("div", Cn)) : w("", !0),
|
|
3427
|
+
e.type === "checkbox" ? (a(), C(re, {
|
|
3453
3428
|
key: 3,
|
|
3454
3429
|
name: "section-list",
|
|
3455
3430
|
tag: "div",
|
|
3456
3431
|
style: { "margin-bottom": "calc(1 * var(--rem))" }
|
|
3457
3432
|
}, {
|
|
3458
3433
|
default: v(() => [
|
|
3459
|
-
(a(!0), d(
|
|
3434
|
+
(a(!0), d(A, null, V(i.bottomRowPackages, (m, T) => (a(), d("div", {
|
|
3460
3435
|
key: m.packageId,
|
|
3461
3436
|
class: "section-item",
|
|
3462
3437
|
style: { padding: "calc(1 * var(--rem)) 0" }
|
|
@@ -3497,9 +3472,9 @@ function Mn(e, t, n, o, s, i) {
|
|
|
3497
3472
|
_: 1
|
|
3498
3473
|
})) : w("", !0),
|
|
3499
3474
|
e.type !== "single" || !e.packages.length ? (a(), d("div", xn, [
|
|
3500
|
-
l("div",
|
|
3501
|
-
e.type === "radio" && !e.packages.length ? (a(), d("div",
|
|
3502
|
-
(a(), d("svg",
|
|
3475
|
+
l("div", Pn, [
|
|
3476
|
+
e.type === "radio" && !e.packages.length ? (a(), d("div", Dn, [
|
|
3477
|
+
(a(), d("svg", Vn, t[13] || (t[13] = [
|
|
3503
3478
|
l("path", {
|
|
3504
3479
|
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",
|
|
3505
3480
|
fill: "#000",
|
|
@@ -3509,12 +3484,12 @@ function Mn(e, t, n, o, s, i) {
|
|
|
3509
3484
|
_(" " + p(e.$t("selectablePlaceholder")), 1)
|
|
3510
3485
|
])) : w("", !0)
|
|
3511
3486
|
]),
|
|
3512
|
-
n.validator.$invalid && n.validator.$dirty ? (a(),
|
|
3487
|
+
n.validator.$invalid && n.validator.$dirty ? (a(), C(g, {
|
|
3513
3488
|
key: 0,
|
|
3514
3489
|
message: e.$t("error.minOnePackage"),
|
|
3515
3490
|
style: { margin: "calc(1 * var(--rem)) 0 calc(1 * var(--rem)) 0" }
|
|
3516
3491
|
}, null, 8, ["message"])) : w("", !0),
|
|
3517
|
-
l("div",
|
|
3492
|
+
l("div", Sn, [
|
|
3518
3493
|
u(k, {
|
|
3519
3494
|
type: "secondary",
|
|
3520
3495
|
outlined: "",
|
|
@@ -3529,11 +3504,11 @@ function Mn(e, t, n, o, s, i) {
|
|
|
3529
3504
|
})
|
|
3530
3505
|
])
|
|
3531
3506
|
])) : w("", !0)
|
|
3532
|
-
], 64)) : (a(), d("div",
|
|
3507
|
+
], 64)) : (a(), d("div", $n, [
|
|
3533
3508
|
u(f, {
|
|
3534
3509
|
onInput: t[0] || (t[0] = (m) => i.onSelectType(m))
|
|
3535
3510
|
}),
|
|
3536
|
-
n.validator.$invalid && n.validator.$dirty ? (a(),
|
|
3511
|
+
n.validator.$invalid && n.validator.$dirty ? (a(), C(g, {
|
|
3537
3512
|
key: 0,
|
|
3538
3513
|
message: e.$t("error.selectType"),
|
|
3539
3514
|
style: { "padding-bottom": "calc(1.5 * var(--rem))" }
|
|
@@ -3541,7 +3516,7 @@ function Mn(e, t, n, o, s, i) {
|
|
|
3541
3516
|
]))
|
|
3542
3517
|
]);
|
|
3543
3518
|
}
|
|
3544
|
-
const
|
|
3519
|
+
const Yn = /* @__PURE__ */ R(In, [["render", Rn], ["__scopeId", "data-v-fa19eaf8"]]);
|
|
3545
3520
|
export {
|
|
3546
|
-
|
|
3521
|
+
Yn as default
|
|
3547
3522
|
};
|