@cling-se/widget 0.19.8 → 0.19.9
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 +10 -0
- package/dist/{AddClientCallout-sPxYX5tQ.js → AddClientCallout-C400wpa7.js} +4 -4
- package/dist/{AnswerModal-o8OHHulg.js → AnswerModal-C_vekdpA.js} +3 -3
- package/dist/{AttachmentItem-CzzOlHB-.js → AttachmentItem-CYeH1VVw.js} +4 -4
- package/dist/{BaseUpload-oZQfFwOj.js → BaseUpload-DGLogqK4.js} +2 -2
- package/dist/{BlockMedia-BGPxfM2X.js → BlockMedia-Hbm0GWNw.js} +30 -29
- package/dist/{CCallout-CrbMGTIj.js → CCallout-BPCwr3uM.js} +1 -1
- package/dist/{CCurrencyDropdown-BnNDP51j.js → CCurrencyDropdown-CZXWH0mA.js} +3 -3
- package/dist/{CDropdownItem-E-kRDIiy.js → CDropdownItem-B9dja0RC.js} +2 -2
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-Bi0MjQdW.js → CFormField.vue_vue_type_script_setup_true_lang-HLxgkrxm.js} +4 -4
- package/dist/{CPhoneFormat-CIQAVdsB.js → CPhoneFormat-C1cjsMVZ.js} +1 -1
- package/dist/{CPhoneInput-9AwTJm-0.js → CPhoneInput-DwcIFaqz.js} +5 -5
- package/dist/{CPriceInput-agFahtr1.js → CPriceInput-C_PfAhRb.js} +2 -2
- package/dist/{CSelect-BpautzPq.js → CSelect-D4A_clvT.js} +1 -1
- package/dist/{CSkeleton-GIqd-JU4.js → CSkeleton-h81Vudx0.js} +5 -5
- package/dist/{ClientAutocomplete-DOHX9Igy.js → ClientAutocomplete-B_R7zgvM.js} +11 -11
- package/dist/{ClientModal-DAXKN_b3.js → ClientModal-CBJgrb_y.js} +14 -14
- package/dist/{ColorPicker-B9F8znY_.js → ColorPicker-a5yTVc0q.js} +1 -1
- package/dist/{CompanyModal-BvIMVys6.js → CompanyModal-sRTrUPOY.js} +7 -7
- package/dist/{ContentWrapper-DB22RaUr.js → ContentWrapper-Cwd6t51-.js} +12 -12
- package/dist/{CoverBlockSettings--l4fH9mr.js → CoverBlockSettings-8tjji9f1.js} +7 -7
- package/dist/{DocAnswer-Bq-4uVbe.js → DocAnswer-D1ZIH1Hn.js} +2 -2
- package/dist/{DocDetails-yxmchgO5.js → DocDetails-B5_hBzC-.js} +4 -4
- package/dist/{DocForm-CzrR8o22.js → DocForm-BKQvY0Ie.js} +27 -29
- package/dist/{DocFormSend-Bjc1QDcK.js → DocFormSend-z0W-xRJP.js} +2 -2
- package/dist/{DocLinks-BXbC-6v3.js → DocLinks-BgbDU24h.js} +2 -2
- package/dist/{DocModalBase-axX_Rlp3.js → DocModalBase-CNo1u8TK.js} +1 -1
- package/dist/{DocPrint-D0IdWsUM.js → DocPrint--UV846r0.js} +1 -1
- package/dist/{DocReceipt-4e-RmgeQ.js → DocReceipt-BAkWIKbC.js} +2 -2
- package/dist/{DocSendReminder-L35eZxgk.js → DocSendReminder-Bk6IVg0R.js} +1 -1
- package/dist/{DocTextEditor-KrfylSV6.js → DocTextEditor-D5zDbbXV.js} +16 -13
- package/dist/{DocTimeline-Be5CvtcQ.js → DocTimeline-KG4zJJOW.js} +2 -2
- package/dist/{DocumentClient-Bc4kf2q9.js → DocumentClient-CXSxwjOt.js} +5 -5
- package/dist/{DocumentLayout-Oe-ZsHML.js → DocumentLayout-C-V_5p3r.js} +32 -32
- package/dist/{DocumentLogotype-BFo5UEWS.js → DocumentLogotype-H0f7bO0E.js} +4 -4
- package/dist/{DocumentVoided-DlQtlO7G.js → DocumentVoided-3F7DChD4.js} +1 -1
- package/dist/{EmbedInput-B29usQZZ.js → EmbedInput-iG-cDNzZ.js} +3 -3
- package/dist/{EmbedSettings-D-9rcSn0.js → EmbedSettings-DhwFGdKH.js} +3 -3
- package/dist/{ErrorCallout--EnH1Ezu.js → ErrorCallout-CyqQ9iRV.js} +3 -3
- package/dist/{FilePreviewModal-H5Ilg9xN.js → FilePreviewModal-CEUhUuh4.js} +2 -2
- package/dist/{Flag-DgZVh3Lf.js → Flag-Bza5Ltob.js} +1 -1
- package/dist/{HeaderSettings-HuM_JwJw.js → HeaderSettings-kEbuiv0n.js} +9 -9
- package/dist/{ImageSelectModal-CJ-DstAf.js → ImageSelectModal-MDduQIdS.js} +3 -3
- package/dist/{ImageUploadWrapper-TYs37LIQ.js → ImageUploadWrapper-CKJXUAkn.js} +2 -2
- package/dist/{Index-edWEg_rF.js → Index--_tbiloB.js} +10 -10
- package/dist/{Index-BdnFLjgV.js → Index-437smvNJ.js} +7 -7
- package/dist/{Index-6N_iRlrQ.js → Index-8CyLDQv2.js} +5 -5
- package/dist/{Index-CTlB43yV.js → Index-B1tFrOfN.js} +4 -4
- package/dist/{Index-CtJfMiZW.js → Index-BFwz1G_7.js} +2 -2
- package/dist/{Index-N88Abomf.js → Index-BXqNV8F_.js} +1 -1
- package/dist/{Index-nRqNPZ3B.js → Index-Bege0Vce.js} +6 -6
- package/dist/{Index-Dg4dwlh_.js → Index-Bg1kzWCp.js} +9 -9
- package/dist/{Index-W-Q19E3a.js → Index-C46cWm4W.js} +4 -4
- package/dist/{Index-CC4E2CmH.js → Index-CGhWvSf9.js} +5 -5
- package/dist/{Index-CAMAtPVL.js → Index-CHIQWumi.js} +3 -3
- package/dist/{Index-DXT_IMjq.js → Index-CNQhKXtr.js} +5 -5
- package/dist/{Index-BZ6ZDf9T.js → Index-CUDi4SEx.js} +4 -4
- package/dist/{Index-DTm59e-A.js → Index-ClA923dR.js} +4 -4
- package/dist/{Index-nTp9wEni.js → Index-D2A8evjo.js} +4 -4
- package/dist/{Index-DYW8T0Hl.js → Index-D4XDugcf.js} +8 -8
- package/dist/{Index-DYUvtCff.js → Index-DB3keB-X.js} +4 -4
- package/dist/{Index-B-PDcQKh.js → Index-DQLLCnjH.js} +5 -5
- package/dist/{Index-DJ11Zra_.js → Index-DUM-3B1l.js} +8 -8
- package/dist/{Index-D5_GLLQH.js → Index-DdZo8evS.js} +256 -256
- package/dist/{Index-BsRxY7vc.js → Index-Doc7K3kL.js} +3 -3
- package/dist/{Index-CnrSvy6E.js → Index-Dqfwe7SG.js} +2 -2
- package/dist/{Index-BLdFyt-s.js → Index-DtCuzght.js} +3 -3
- package/dist/{Index-DMIjuWSa.js → Index-DtDRffCY.js} +4 -4
- package/dist/{Index-B942Auag.js → Index-DzKdZg0G.js} +2 -2
- package/dist/{Index-yJRtT77X.js → Index-DzugmOmj.js} +2 -2
- package/dist/{Index-CrdSdXWN.js → Index-E7OzmtR_.js} +23 -20
- package/dist/{Index-CY2sRfaY.js → Index-MmvJQvLm.js} +3 -3
- package/dist/{Index-CGus-YwW.js → Index-Rb5n5XoO.js} +7 -7
- package/dist/{Index-BeOtRIzZ.js → Index-dTgmxz_A.js} +6 -6
- package/dist/{Index-CLgN5Jzf.js → Index-eJiQmHhr.js} +1 -1
- package/dist/Index-jQsYOOC3.js +4 -0
- package/dist/{Index-D9sceHk5.js → Index-rINXTjpt.js} +4 -4
- package/dist/{Index-BMpHXgR4.js → Index-zRXdiRpy.js} +8 -8
- package/dist/{Index.vue_vue_type_script_lang-PJPQMT2c.js → Index.vue_vue_type_script_lang-B9979oeS.js} +2 -2
- package/dist/{InputToggleRow-DCr_DEm4.js → InputToggleRow-CO4fZnAC.js} +1 -1
- package/dist/{ManualPopover-CpVsmQvn.js → ManualPopover-DT4iXoSI.js} +1 -1
- package/dist/{MediaWrapper-Cj3LBhdR.js → MediaWrapper-CP_1JzGI.js} +3 -3
- package/dist/{NotBindingText-1J0p_k4u.js → NotBindingText-D9Um3Agp.js} +5 -5
- package/dist/{PackageGroup-CqrWEfCT.js → PackageGroup-BtH12jVM.js} +106 -106
- package/dist/{PdfTerms-DmrPDtae.js → PdfTerms-sQh93Xit.js} +2 -2
- package/dist/{PdfViewer-C2EEwUBa.js → PdfViewer-DMAcTVND.js} +5 -5
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-B6pRo08V.js → PlainHtml.vue_vue_type_script_setup_true_lang-tY-SurWr.js} +1 -1
- package/dist/{PriceHeader-BaREzUxI.js → PriceHeader-CG6el7O_.js} +7 -7
- package/dist/{SearchApi-Bf4jeQVr.js → SearchApi-B39mMGKy.js} +1 -1
- package/dist/{SendForm-D5qpHxNU.js → SendForm-F5aQPz8w.js} +125 -125
- package/dist/{Setup-Bw8ViFxw.js → Setup-DuHU2eHC.js} +1 -1
- package/dist/{SmartList-CzylvV8N.js → SmartList-myMj6QGe.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-DleoAiSK.js → Sortable.vue_vue_type_script_setup_true_lang-Bb2Nqdsz.js} +1 -1
- package/dist/{TermsSettings-EoJvsPqK.js → TermsSettings-Cb6Xms3f.js} +5 -5
- package/dist/{ThemeColorRow-D3blQMiD.js → ThemeColorRow-oW3xS1pa.js} +3 -3
- package/dist/{ToggleBinding-BteBsRYr.js → ToggleBinding-B-F9_nAf.js} +4 -4
- package/dist/{UploadModal-Cr5sF3M-.js → UploadModal-eBx4Vqyo.js} +2 -2
- package/dist/{VideoPlayerInput-BBycKv9w.js → VideoPlayerInput-CtTe4JW4.js} +4 -4
- package/dist/{VideoPlayerSettings-BXXpTWBf.js → VideoPlayerSettings-Cvz5B4JX.js} +2 -2
- package/dist/{VideoSelectModal-B2VPO6q4.js → VideoSelectModal-CXI0aN4g.js} +3 -3
- package/dist/{focusDrawerMixin-CCAEZjWO.js → focusDrawerMixin-DlcYhFw8.js} +1 -1
- package/dist/{formDrawerState-CJyP4ce1.js → formDrawerState-Cf6Q5cuR.js} +1 -1
- package/dist/{helpers-Cf9s0P7o.js → helpers-Cf9wqfZh.js} +1 -1
- package/dist/{index-CBn1mHmK.js → index-BSCAjn53.js} +7 -7
- package/dist/{index-DYJN9yoF.js → index-BStFMzD9.js} +8 -8
- package/dist/{index-DuXECcGq.js → index-BytsFarx.js} +8 -8
- package/dist/{index-DAJmNac8.js → index-Co_PpOtI.js} +1 -1
- package/dist/{index-XzoHqJIR.js → index-DPlBYqKB.js} +1 -1
- package/dist/{index-C3pnyYI4.js → index-DsvlNA3Q.js} +1 -1
- package/dist/{index-_MfZEYgE.js → index-r5v1Gv17.js} +6 -6
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +136 -136
- package/dist/{main-BayUZ9OO.js → main-BkjAGG46.js} +3339 -3365
- package/dist/{mapFormMixin-Bx5_nE7g.js → mapFormMixin-DLFNPgNO.js} +8 -8
- package/dist/{omit-BKJdPM2H.js → omit-CvOSNZN7.js} +9 -9
- package/dist/{publicSenderState-CblTasKp.js → publicSenderState-DeC1m0ps.js} +1 -1
- package/dist/{splitpanes-DFkgBT3z.js → splitpanes-CsJipBiG.js} +1 -1
- package/dist/{template-CvGgzazD.js → template-Cvzvayl5.js} +2 -2
- package/dist/{tippy.esm-CYKcJaqz.js → tippy.esm-JEjGtE5F.js} +5 -5
- package/dist/{useTermsModal-DFmdeFRm.js → useTermsModal-D2gYy-TP.js} +4 -4
- package/dist/{utils-DTwXcY8_.js → utils-DarTPA8c.js} +1 -1
- package/dist/{validation-d_jonAPy.js → validation-K11g55ZB.js} +2 -2
- package/dist/widget.css +1 -1
- package/package.json +1 -1
- package/dist/Index-D4HNTocO.js +0 -4
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { m as
|
|
2
|
-
import { C as
|
|
3
|
-
import { C as K, a as Y, w as Te } from "./CDropdownItem-
|
|
4
|
-
import { E as me } from "./ErrorCallout
|
|
5
|
-
import {
|
|
6
|
-
import { u as Je } from "./DocumentLayout-
|
|
7
|
-
import { T as Qe } from "./DocTextEditor-
|
|
8
|
-
import { _ as Xe, m as et } from "./Sortable.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { o as fe } from "./omit-
|
|
10
|
-
import { C as Z } from "./CPriceInput-
|
|
11
|
-
import { u as ye } from "./index-
|
|
12
|
-
import { S as tt } from "./SearchApi-
|
|
13
|
-
import { m as it } from "./index-
|
|
14
|
-
import { _ as ke } from "./CFormField.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { m as q } from "./mapFormMixin-DLFNPgNO.js";
|
|
2
|
+
import { C as $e } from "./CCallout-BPCwr3uM.js";
|
|
3
|
+
import { C as K, a as Y, w as Te } from "./CDropdownItem-B9dja0RC.js";
|
|
4
|
+
import { E as me } from "./ErrorCallout-CyqQ9iRV.js";
|
|
5
|
+
import { c5 as Ae, c6 as he, c7 as Ce, c8 as Pe, c9 as xe, ca as Ve, cb as Se, aK as De, _ as D, b as g, d as c, o as a, j as l, t as u, x as V, F as C, n as S, W as J, e as b, f as p, s as N, m as z, a as E, g as L, w as h, R as B, ai as j, T as ie, an as H, cc as Me, cd as ne, aF as Re, a8 as se, bi as W, aD as Le, ce as Oe, bl as Ee, a4 as U, c as A, u as R, q as _, cf as Ue, cg as Be, c1 as ge, v as We, ch as ve, $ as ze, af as x, al as je, aH as F, V as Fe, a2 as oe, b_ as qe, ab as Ne, ci as He, ae as Ge, ag as Ke, c4 as Ye, cj as re, aE as Ze } from "./main-BkjAGG46.js";
|
|
6
|
+
import { u as Je } from "./DocumentLayout-C-V_5p3r.js";
|
|
7
|
+
import { T as Qe } from "./DocTextEditor-D5zDbbXV.js";
|
|
8
|
+
import { _ as Xe, m as et } from "./Sortable.vue_vue_type_script_setup_true_lang-Bb2Nqdsz.js";
|
|
9
|
+
import { o as fe } from "./omit-CvOSNZN7.js";
|
|
10
|
+
import { C as Z } from "./CPriceInput-C_PfAhRb.js";
|
|
11
|
+
import { u as ye } from "./index-DsvlNA3Q.js";
|
|
12
|
+
import { S as tt } from "./SearchApi-B39mMGKy.js";
|
|
13
|
+
import { m as it } from "./index-DPlBYqKB.js";
|
|
14
|
+
import { _ as ke } from "./CFormField.vue_vue_type_script_setup_true_lang-HLxgkrxm.js";
|
|
15
15
|
const nt = [
|
|
16
16
|
"unit",
|
|
17
17
|
"m2",
|
|
@@ -52,25 +52,25 @@ function ot() {
|
|
|
52
52
|
de = 1;
|
|
53
53
|
var e = Ce(), t = Pe(), n = Ve(), o = xe(), s = at(), i = he(), f = 200;
|
|
54
54
|
function v(y, d, k) {
|
|
55
|
-
var w = -1,
|
|
55
|
+
var w = -1, $ = t, m = y.length, T = !0, r = [], P = r;
|
|
56
56
|
if (k)
|
|
57
|
-
T = !1,
|
|
57
|
+
T = !1, $ = n;
|
|
58
58
|
else if (m >= f) {
|
|
59
59
|
var I = d ? null : s(y);
|
|
60
60
|
if (I)
|
|
61
61
|
return i(I);
|
|
62
|
-
T = !1,
|
|
62
|
+
T = !1, $ = o, P = new e();
|
|
63
63
|
} else
|
|
64
64
|
P = d ? [] : r;
|
|
65
65
|
e:
|
|
66
66
|
for (; ++w < m; ) {
|
|
67
|
-
var
|
|
68
|
-
if (
|
|
67
|
+
var M = y[w], O = d ? d(M) : M;
|
|
68
|
+
if (M = k || M !== 0 ? M : 0, T && O === O) {
|
|
69
69
|
for (var ae = P.length; ae--; )
|
|
70
70
|
if (P[ae] === O)
|
|
71
71
|
continue e;
|
|
72
|
-
d && P.push(O), r.push(
|
|
73
|
-
} else
|
|
72
|
+
d && P.push(O), r.push(M);
|
|
73
|
+
} else $(P, O, k) || (P !== r && P.push(O), r.push(M));
|
|
74
74
|
}
|
|
75
75
|
return r;
|
|
76
76
|
}
|
|
@@ -87,7 +87,7 @@ function rt() {
|
|
|
87
87
|
return te = n, te;
|
|
88
88
|
}
|
|
89
89
|
var lt = rt();
|
|
90
|
-
const ct = /* @__PURE__ */
|
|
90
|
+
const ct = /* @__PURE__ */ De(lt), dt = {
|
|
91
91
|
name: "PackageGroupSelect",
|
|
92
92
|
i18nOptions: {
|
|
93
93
|
namespaces: "PackageGroupSelect",
|
|
@@ -166,7 +166,7 @@ const ct = /* @__PURE__ */ Me(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, u(e.$t("title")), 1),
|
|
170
170
|
l("div", null, [
|
|
171
171
|
l("div", {
|
|
172
172
|
class: V([{ "is-700-or-less": o.docWidth <= 700 }, "options"])
|
|
@@ -222,7 +222,7 @@ function yt(e, t, n, o, s, i) {
|
|
|
222
222
|
l("div", {
|
|
223
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
|
-
|
|
225
|
+
p(f, {
|
|
226
226
|
type: d !== 3 ? "check" : "empty",
|
|
227
227
|
"stroke-width": "5",
|
|
228
228
|
size: "8"
|
|
@@ -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, u(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__ */ D(dt, [["render", yt], ["__scopeId", "data-v-9558e77f"]]), bt = {
|
|
256
256
|
name: "ArticleAutocomplete",
|
|
257
257
|
components: {
|
|
258
258
|
SearchApi: tt
|
|
259
259
|
},
|
|
260
|
-
mixins: [
|
|
260
|
+
mixins: [q([])],
|
|
261
261
|
props: {
|
|
262
262
|
tag: {
|
|
263
263
|
type: String,
|
|
@@ -378,7 +378,7 @@ const kt = /* @__PURE__ */ M(dt, [["render", yt], ["__scopeId", "data-v-9558e77f
|
|
|
378
378
|
key: 0,
|
|
379
379
|
ref: "dropdown",
|
|
380
380
|
class: "r-container"
|
|
381
|
-
}, It = ["onClickCapture"],
|
|
381
|
+
}, It = ["onClickCapture"], _t = { class: "r-item-title w-full truncate" }, $t = { class: "r-item-details" }, Tt = {
|
|
382
382
|
key: 0,
|
|
383
383
|
style: { width: "18px", height: "18px", "border-radius": "2px", "background-color": "hsl(0, 0%, 60%)", display: "inline-flex", "justify-content": "center", "align-items": "center" }
|
|
384
384
|
}, At = { key: 1 }, Ct = { key: 2 }, Pt = { key: 3 }, xt = {
|
|
@@ -393,13 +393,13 @@ function Vt(e, t, n, o, s, i) {
|
|
|
393
393
|
style: { position: "relative" },
|
|
394
394
|
onKeydownPassive: t[0] || (t[0] = (...d) => i.onKeydown && i.onKeydown(...d))
|
|
395
395
|
}), [
|
|
396
|
-
|
|
396
|
+
p(v, { "custom-search": {
|
|
397
397
|
article: !0,
|
|
398
398
|
extensionArticle: !0,
|
|
399
399
|
project: !1
|
|
400
400
|
} }, {
|
|
401
401
|
default: h(({ fetch: d }) => [
|
|
402
|
-
|
|
402
|
+
p(f, B({
|
|
403
403
|
...e.$attrs,
|
|
404
404
|
...e.$props
|
|
405
405
|
}, {
|
|
@@ -433,21 +433,21 @@ function Vt(e, t, n, o, s, i) {
|
|
|
433
433
|
class: V([{ active: s.selectedIndex === k }, "r-item"]),
|
|
434
434
|
onClickCapture: H((w) => i.onSelect(d), ["stop"])
|
|
435
435
|
}, [
|
|
436
|
-
l("div",
|
|
437
|
-
l("div",
|
|
436
|
+
l("div", _t, u(d.name), 1),
|
|
437
|
+
l("div", $t, [
|
|
438
438
|
d.externalReference && d.externalReference.service ? (a(), c("div", Tt, [
|
|
439
|
-
|
|
439
|
+
p(y, {
|
|
440
440
|
type: d.externalReference.service,
|
|
441
441
|
style: { color: "white" },
|
|
442
442
|
size: "14"
|
|
443
443
|
}, null, 8, ["type"])
|
|
444
444
|
])) : b("", !0),
|
|
445
|
-
d.article_no ? (a(), c("div", At,
|
|
446
|
-
d.price ? (a(), c("div", Ct,
|
|
447
|
-
d.vat ? (a(), c("div", Pt,
|
|
445
|
+
d.article_no ? (a(), c("div", At, u(d.article_no), 1)) : b("", !0),
|
|
446
|
+
d.price ? (a(), c("div", Ct, u(i.priceFormat(d.price, { currency: d.currency })), 1)) : b("", !0),
|
|
447
|
+
d.vat ? (a(), c("div", Pt, u(e.$t("vat.sharedTitle").capitalize()) + " " + u(d.vat) + "% ", 1)) : b("", !0)
|
|
448
448
|
]),
|
|
449
449
|
s.selectedIndex === k ? (a(), c("div", xt, [
|
|
450
|
-
|
|
450
|
+
p(y, {
|
|
451
451
|
type: "corner-down-left",
|
|
452
452
|
size: "16"
|
|
453
453
|
})
|
|
@@ -456,7 +456,7 @@ function Vt(e, t, n, o, s, i) {
|
|
|
456
456
|
], 512)) : b("", !0)
|
|
457
457
|
], 16);
|
|
458
458
|
}
|
|
459
|
-
const be = /* @__PURE__ */
|
|
459
|
+
const be = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c"]]), pe = {
|
|
460
460
|
isDeductable: !1,
|
|
461
461
|
isRut: !1,
|
|
462
462
|
greenRot15: !1,
|
|
@@ -472,7 +472,7 @@ const be = /* @__PURE__ */ M(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
472
472
|
...o,
|
|
473
473
|
...pe,
|
|
474
474
|
[n]: !0
|
|
475
|
-
}),
|
|
475
|
+
}), Me(o.quantity) !== "number" && (o.quantity = 0), ne(o);
|
|
476
476
|
}, we = ({
|
|
477
477
|
stored: e,
|
|
478
478
|
current: t,
|
|
@@ -557,13 +557,13 @@ const be = /* @__PURE__ */ M(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
},
|
|
560
|
+
}, _e = {
|
|
561
561
|
article: {
|
|
562
562
|
name: {
|
|
563
563
|
maxLength: it(255)
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
|
-
},
|
|
566
|
+
}, Dt = {
|
|
567
567
|
name: "Article",
|
|
568
568
|
i18nOptions: {
|
|
569
569
|
namespaces: "Article",
|
|
@@ -622,7 +622,7 @@ const be = /* @__PURE__ */ M(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
622
622
|
v$: ye()
|
|
623
623
|
};
|
|
624
624
|
},
|
|
625
|
-
validations:
|
|
625
|
+
validations: _e,
|
|
626
626
|
data() {
|
|
627
627
|
return {
|
|
628
628
|
updateData: G,
|
|
@@ -696,7 +696,7 @@ const be = /* @__PURE__ */ M(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
|
+
}, Mt = { class: "top-row flex w-full" }, Rt = ["innerHTML"];
|
|
700
700
|
function Lt(e, t, n, o, s, i) {
|
|
701
701
|
const f = g("CIcon"), v = g("ArticleAutocomplete"), y = g("CPriceInput"), d = g("ErrorCallout"), k = U("tooltip");
|
|
702
702
|
return a(), c("div", {
|
|
@@ -707,8 +707,8 @@ function Lt(e, t, n, o, s, i) {
|
|
|
707
707
|
}, "article-wrapper"]),
|
|
708
708
|
onKeydown: t[10] || (t[10] = j((w) => e.$emit("esc"), ["esc"]))
|
|
709
709
|
}, [
|
|
710
|
-
l("div",
|
|
711
|
-
|
|
710
|
+
l("div", Mt, [
|
|
711
|
+
p(v, B({
|
|
712
712
|
ref: "name",
|
|
713
713
|
"model-value": i.article.name,
|
|
714
714
|
placeholder: e.$t("namePlaceholder"),
|
|
@@ -735,7 +735,7 @@ function Lt(e, t, n, o, s, i) {
|
|
|
735
735
|
class: "article-button fade-in",
|
|
736
736
|
onClick: t[0] || (t[0] = (w) => e.$emit("open-modal"))
|
|
737
737
|
}, [
|
|
738
|
-
|
|
738
|
+
p(f, {
|
|
739
739
|
type: "cog",
|
|
740
740
|
size: "18"
|
|
741
741
|
})
|
|
@@ -768,14 +768,14 @@ function Lt(e, t, n, o, s, i) {
|
|
|
768
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
770
|
n.hideControls ? b("", !0) : (a(), c(C, { key: 1 }, [
|
|
771
|
-
|
|
771
|
+
p(f, {
|
|
772
772
|
class: "a-control-button close-button fade-in",
|
|
773
773
|
circle: "",
|
|
774
774
|
type: "x",
|
|
775
775
|
size: "18",
|
|
776
776
|
onClick: t[8] || (t[8] = (w) => n.enableRemove ? e.$emit("remove") : null)
|
|
777
777
|
}),
|
|
778
|
-
|
|
778
|
+
p(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",
|
|
@@ -789,16 +789,16 @@ function Lt(e, t, n, o, s, i) {
|
|
|
789
789
|
style: { cursor: "pointer" },
|
|
790
790
|
onClick: t[9] || (t[9] = (w) => e.$emit("open-modal"))
|
|
791
791
|
}, [
|
|
792
|
-
(a(!0), c(C, null, S(i.details, ({ title: w, icon:
|
|
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
794
|
class: V([[T], "article-details-item"])
|
|
795
795
|
}, [
|
|
796
|
-
|
|
797
|
-
|
|
796
|
+
_(u(w) + " ", 1),
|
|
797
|
+
$ ? (a(), c("div", {
|
|
798
798
|
key: 0,
|
|
799
|
-
innerHTML:
|
|
799
|
+
innerHTML: $
|
|
800
800
|
}, null, 8, Rt)) : b("", !0),
|
|
801
|
-
|
|
801
|
+
_(" " + u(m), 1)
|
|
802
802
|
], 2))), 128))
|
|
803
803
|
])) : b("", !0),
|
|
804
804
|
o.v$.$invalid && o.v$.$dirty ? (a(), A(d, {
|
|
@@ -807,7 +807,7 @@ function Lt(e, t, n, o, s, i) {
|
|
|
807
807
|
}, null, 8, ["message"])) : b("", !0)
|
|
808
808
|
], 34);
|
|
809
809
|
}
|
|
810
|
-
const Ot = /* @__PURE__ */
|
|
810
|
+
const Ot = /* @__PURE__ */ D(Dt, [["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__ */ D(Et, [["render", Bt], ["__scopeId", "data-v-f685b502"]]), zt = {
|
|
922
922
|
name: "ArticleUnitEditModal",
|
|
923
923
|
i18nOptions: {
|
|
924
924
|
namespaces: "ArticleUnitEditModal",
|
|
@@ -1029,7 +1029,7 @@ const Wt = /* @__PURE__ */ M(Et, [["render", Bt], ["__scopeId", "data-v-f685b502
|
|
|
1029
1029
|
}, jt = {
|
|
1030
1030
|
class: "unit-modal-root font-inter",
|
|
1031
1031
|
style: { position: "relative" }
|
|
1032
|
-
},
|
|
1032
|
+
}, Ft = { style: { padding: "calc(1.5 * var(--rem))" } }, qt = { style: { "font-weight": "600", "font-size": "18px", "margin-bottom": "calc(1.5 * var(--rem))" } }, Nt = { class: "control" }, Ht = { style: { "border-top": "1px solid hsl(0, 0%, 88%)", overflow: "auto", "max-height": "360px" } }, Gt = {
|
|
1033
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 = {
|
|
@@ -1037,30 +1037,30 @@ const Wt = /* @__PURE__ */ M(Et, [["render", Bt], ["__scopeId", "data-v-f685b502
|
|
|
1037
1037
|
class: "unit-modal-list-empty"
|
|
1038
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"), d = g("CField"), k = g("DragItem"), w = g("DragList"),
|
|
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
1043
|
onClickPassive: t[3] || (t[3] = H((...m) => i.close && i.close(...m), ["self"]))
|
|
1044
1044
|
}, [
|
|
1045
1045
|
l("div", jt, [
|
|
1046
|
-
l("div",
|
|
1047
|
-
l("div",
|
|
1048
|
-
l("span", null,
|
|
1049
|
-
R(
|
|
1046
|
+
l("div", Ft, [
|
|
1047
|
+
l("div", qt, [
|
|
1048
|
+
l("span", null, u(e.$t("_common:add", { thing: e.$t("_common:unitType.unitType_other") })), 1),
|
|
1049
|
+
R(p(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
|
+
p(d, {
|
|
1059
1059
|
grouped: "",
|
|
1060
1060
|
style: { margin: "0" }
|
|
1061
1061
|
}, {
|
|
1062
1062
|
default: h(() => [
|
|
1063
|
-
|
|
1063
|
+
p(y, {
|
|
1064
1064
|
ref: "unitInput",
|
|
1065
1065
|
modelValue: s.selectedValue.value,
|
|
1066
1066
|
"onUpdate:modelValue": t[0] || (t[0] = (m) => s.selectedValue.value = m),
|
|
@@ -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
|
+
p(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
|
+
p(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
|
+
_(u(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, u(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, u(e.$t("_common:add", { thing: e.$t("_common:unit_other") })), 1)),
|
|
1109
|
+
p(w, {
|
|
1110
1110
|
"drop-placeholder": { className: "drag-drop-placeholder" },
|
|
1111
1111
|
"drag-class": "is-dragged",
|
|
1112
1112
|
"lock-axis": "y",
|
|
@@ -1125,14 +1125,14 @@ function ei(e, t, n, o, s, i) {
|
|
|
1125
1125
|
onClick: (r) => i.onEdit(m)
|
|
1126
1126
|
}, [
|
|
1127
1127
|
l("div", Jt, [
|
|
1128
|
-
|
|
1128
|
+
p(f, {
|
|
1129
1129
|
type: "handle",
|
|
1130
1130
|
size: "16",
|
|
1131
1131
|
class: "text-gray-300"
|
|
1132
1132
|
})
|
|
1133
1133
|
]),
|
|
1134
|
-
l("div", Qt,
|
|
1135
|
-
R(l("span", { class: "delete-confirm" },
|
|
1134
|
+
l("div", Qt, u(m.label), 1),
|
|
1135
|
+
R(l("span", { class: "delete-confirm" }, u(e.$t("_common:remove")) + "? ", 513), [
|
|
1136
1136
|
[We, s.removeConfirmIndex === T]
|
|
1137
1137
|
]),
|
|
1138
1138
|
l("div", Xt, [
|
|
@@ -1146,7 +1146,7 @@ function ei(e, t, n, o, s, i) {
|
|
|
1146
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
|
+
p(v, {
|
|
1150
1150
|
icon: "edit",
|
|
1151
1151
|
size: "small",
|
|
1152
1152
|
type: "none",
|
|
@@ -1166,7 +1166,7 @@ function ei(e, t, n, o, s, i) {
|
|
|
1166
1166
|
])
|
|
1167
1167
|
], 32);
|
|
1168
1168
|
}
|
|
1169
|
-
const ti = /* @__PURE__ */
|
|
1169
|
+
const ti = /* @__PURE__ */ D(zt, [["render", ei], ["__scopeId", "data-v-439571ca"]]), ii = {
|
|
1170
1170
|
name: "ArticleUnitSelect",
|
|
1171
1171
|
components: {
|
|
1172
1172
|
CDropdown: Y,
|
|
@@ -1230,12 +1230,12 @@ function ni(e, t, n, o, s, i) {
|
|
|
1230
1230
|
}), {
|
|
1231
1231
|
trigger: h(() => [
|
|
1232
1232
|
ie(e.$slots, "default", {}, () => [
|
|
1233
|
-
|
|
1233
|
+
p(f, {
|
|
1234
1234
|
type: "none",
|
|
1235
1235
|
pattern: "tertiary"
|
|
1236
1236
|
}, {
|
|
1237
1237
|
default: h(() => [
|
|
1238
|
-
|
|
1238
|
+
_(u(i.articleUnitLabel(n.modelValue)), 1)
|
|
1239
1239
|
]),
|
|
1240
1240
|
_: 1
|
|
1241
1241
|
})
|
|
@@ -1251,7 +1251,7 @@ function ni(e, t, n, o, s, i) {
|
|
|
1251
1251
|
onClick: i.openEditModal
|
|
1252
1252
|
}, {
|
|
1253
1253
|
default: h(() => [
|
|
1254
|
-
|
|
1254
|
+
_(u(e.$t("_common:edit", { thing: e.$t("_common:unit_other") })), 1)
|
|
1255
1255
|
]),
|
|
1256
1256
|
_: 1
|
|
1257
1257
|
}, 8, ["onClick"]))
|
|
@@ -1262,7 +1262,7 @@ function ni(e, t, n, o, s, i) {
|
|
|
1262
1262
|
value: d
|
|
1263
1263
|
}, {
|
|
1264
1264
|
default: h(() => [
|
|
1265
|
-
|
|
1265
|
+
_(u(i.articleUnitLabel(d)), 1)
|
|
1266
1266
|
]),
|
|
1267
1267
|
_: 2
|
|
1268
1268
|
}, 1032, ["value"]))), 128))
|
|
@@ -1270,7 +1270,7 @@ 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__ */ D(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe"]]), ai = {
|
|
1274
1274
|
name: "ArticleModal",
|
|
1275
1275
|
i18nOptions: {
|
|
1276
1276
|
namespaces: "ArticleModal",
|
|
@@ -1344,7 +1344,7 @@ const si = /* @__PURE__ */ M(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe
|
|
|
1344
1344
|
v$: ye()
|
|
1345
1345
|
};
|
|
1346
1346
|
},
|
|
1347
|
-
validations:
|
|
1347
|
+
validations: _e,
|
|
1348
1348
|
data() {
|
|
1349
1349
|
return {
|
|
1350
1350
|
priceSuffix: St,
|
|
@@ -1580,7 +1580,7 @@ const si = /* @__PURE__ */ M(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"), d = g("CField"), k = g("CInput"), w = g("CButton"),
|
|
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",
|
|
@@ -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
|
+
p(v, { type: "x" })
|
|
1604
1604
|
])),
|
|
1605
|
-
|
|
1605
|
+
p(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
|
+
p(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
|
+
p(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
|
+
p(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
|
+
p(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
|
+
p($, {
|
|
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
|
+
p(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
|
+
_(u(s.articleUnitLabel(i.article.unitType, {
|
|
1674
1674
|
count: i.article.quantity
|
|
1675
1675
|
})), 1)
|
|
1676
1676
|
]),
|
|
@@ -1682,7 +1682,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
1682
1682
|
]),
|
|
1683
1683
|
n.hidePriceInput ? b("", !0) : (a(), c(C, { key: 0 }, [
|
|
1684
1684
|
l("div", li, [
|
|
1685
|
-
|
|
1685
|
+
p(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",
|
|
@@ -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
|
+
}, u(n._document.$t(`vat.${s.setPricesIncVat ? "incVat" : "exVat"}`)), 1)) : b("", !0)
|
|
1715
1715
|
]),
|
|
1716
1716
|
s.showDiscountInput ? (a(), c("div", ci, [
|
|
1717
|
-
|
|
1717
|
+
p(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
|
+
p(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
|
+
_(u(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
|
+
_(u(s.getCurrencySymbol(i.article.currency)), 1)
|
|
1746
1746
|
]),
|
|
1747
1747
|
key: "1"
|
|
1748
1748
|
}
|
|
@@ -1757,7 +1757,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
1757
1757
|
i.article.discountType === "percentage" ? "fixed" : "percentage",
|
|
1758
1758
|
"discountType"
|
|
1759
1759
|
))
|
|
1760
|
-
},
|
|
1760
|
+
}, u(i.article.discountType === "percentage" ? "%" : s.getCurrencySymbol(i.article.currency)), 1)
|
|
1761
1761
|
])) : b("", !0)
|
|
1762
1762
|
], 64)),
|
|
1763
1763
|
l("div", di, [
|
|
@@ -1772,9 +1772,9 @@ function bi(e, t, n, o, s, i) {
|
|
|
1772
1772
|
(a(!0), c(C, null, S(s.vatOptions, ({ translation: r, value: P }, I) => (a(), c("option", {
|
|
1773
1773
|
key: I,
|
|
1774
1774
|
value: P
|
|
1775
|
-
},
|
|
1775
|
+
}, u(e.$t(`vat.${i.vatType}`)) + " " + u(r), 9, pi))), 128))
|
|
1776
1776
|
], 40, ui)) : (a(), c("span", mi, [
|
|
1777
|
-
|
|
1777
|
+
_(u(n._document.$t("vat").capitalize()) + " ", 1),
|
|
1778
1778
|
l("input", {
|
|
1779
1779
|
value: i.article.vat || 0,
|
|
1780
1780
|
type: "number",
|
|
@@ -1782,29 +1782,29 @@ function bi(e, t, n, o, s, i) {
|
|
|
1782
1782
|
onBlur: t[13] || (t[13] = (...r) => i.onCustomVatBlur && i.onCustomVatBlur(...r)),
|
|
1783
1783
|
onInput: t[14] || (t[14] = (...r) => i.onCustomVatInput && i.onCustomVatInput(...r))
|
|
1784
1784
|
}, null, 40, hi),
|
|
1785
|
-
t[16] || (t[16] =
|
|
1785
|
+
t[16] || (t[16] = _(" % "))
|
|
1786
1786
|
]))
|
|
1787
1787
|
], 64)) : b("", !0),
|
|
1788
1788
|
i.priceTypeOptions.length ? (a(), c("div", gi, [
|
|
1789
|
-
(a(!0), c(C, null, S(i.priceTypeOptions, ({ label: r, value: P, onClick: I, tooltip:
|
|
1789
|
+
(a(!0), c(C, null, S(i.priceTypeOptions, ({ label: r, value: P, onClick: I, tooltip: M }, O) => R((a(), c("div", {
|
|
1790
1790
|
key: r + O,
|
|
1791
1791
|
class: V([{ active: P }, "tag-item"]),
|
|
1792
1792
|
onClick: I
|
|
1793
1793
|
}, [
|
|
1794
|
-
|
|
1794
|
+
_(u(r), 1)
|
|
1795
1795
|
], 10, vi)), [
|
|
1796
1796
|
[T, {
|
|
1797
|
-
content:
|
|
1797
|
+
content: M,
|
|
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(C, null, S(i.checkboxItems, ({ label: r, value: P, onClick: I },
|
|
1804
|
-
key: r +
|
|
1803
|
+
(a(!0), c(C, null, S(i.checkboxItems, ({ label: r, value: P, onClick: I }, M) => (a(), c("div", {
|
|
1804
|
+
key: r + M,
|
|
1805
1805
|
class: V([{ active: P }, "tag-item"]),
|
|
1806
1806
|
onClick: I
|
|
1807
|
-
},
|
|
1807
|
+
}, u(r), 11, yi))), 128))
|
|
1808
1808
|
])
|
|
1809
1809
|
])
|
|
1810
1810
|
]))
|
|
@@ -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
|
+
p(v, {
|
|
1824
1824
|
type: "zap",
|
|
1825
1825
|
size: "21",
|
|
1826
1826
|
style: { margin: "-3px" }
|
|
@@ -1846,7 +1846,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
1846
1846
|
`
|
|
1847
1847
|
}]
|
|
1848
1848
|
]),
|
|
1849
|
-
|
|
1849
|
+
p(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
|
+
_(u(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__ */ D(ai, [["render", bi], ["__scopeId", "data-v-eacf482e"]]), Ii = {
|
|
1868
1868
|
i18nOptions: {
|
|
1869
1869
|
name: "ArticleListEdit",
|
|
1870
1870
|
namespaces: "ArticleListEdit",
|
|
@@ -1889,7 +1889,7 @@ const wi = /* @__PURE__ */ M(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
|
|
|
1889
1889
|
Sortable: Xe
|
|
1890
1890
|
},
|
|
1891
1891
|
expose: ["focusLastArticle", "openLastArticle"],
|
|
1892
|
-
mixins: [
|
|
1892
|
+
mixins: [q([])],
|
|
1893
1893
|
props: {
|
|
1894
1894
|
_document: {
|
|
1895
1895
|
type: Object,
|
|
@@ -1913,7 +1913,7 @@ const wi = /* @__PURE__ */ M(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
|
|
|
1913
1913
|
}
|
|
1914
1914
|
},
|
|
1915
1915
|
setup() {
|
|
1916
|
-
const e = oe("articleItem"), t = oe("container"), { width: n } =
|
|
1916
|
+
const e = oe("articleItem"), t = oe("container"), { width: n } = qe(t);
|
|
1917
1917
|
return { articleItem: e, articlesWidth: n };
|
|
1918
1918
|
},
|
|
1919
1919
|
emits: [
|
|
@@ -1970,7 +1970,7 @@ const wi = /* @__PURE__ */ M(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(Fe.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__ */ M(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 = F({ amount: e.price }).divide(
|
|
2011
2011
|
(100 + e.vat) * 0.01
|
|
2012
2012
|
);
|
|
2013
|
-
this.setPricesIncVat || (n =
|
|
2013
|
+
this.setPricesIncVat || (n = F({ amount: e.price }).multiply(
|
|
2014
2014
|
(100 + e.vat) * 0.01
|
|
2015
2015
|
)), this.updateArticleObject(
|
|
2016
2016
|
t,
|
|
@@ -2066,20 +2066,20 @@ const wi = /* @__PURE__ */ M(ai, [["render", bi], ["__scopeId", "data-v-eacf482e
|
|
|
2066
2066
|
this.$emit("move", t);
|
|
2067
2067
|
}
|
|
2068
2068
|
}
|
|
2069
|
-
},
|
|
2069
|
+
}, _i = { ref: "container" }, $i = {
|
|
2070
2070
|
key: 0,
|
|
2071
2071
|
class: "label-text"
|
|
2072
2072
|
};
|
|
2073
2073
|
function Ti(e, t, n, o, s, i) {
|
|
2074
2074
|
const f = g("Article"), v = g("Sortable"), y = g("ArticleModal"), d = g("Portal");
|
|
2075
|
-
return a(), c("div",
|
|
2076
|
-
i.showVatToggle ? (a(), c("div",
|
|
2077
|
-
|
|
2075
|
+
return a(), c("div", _i, [
|
|
2076
|
+
i.showVatToggle ? (a(), c("div", $i, [
|
|
2077
|
+
_(u(e.$t("vatOption.label")) + " ", 1),
|
|
2078
2078
|
l("span", {
|
|
2079
2079
|
onClick: t[0] || (t[0] = (k) => i.changeVat())
|
|
2080
|
-
},
|
|
2080
|
+
}, u(n._document.$t(`vat.${i.setPricesIncVat ? "incVat" : "exVat"}`)), 1)
|
|
2081
2081
|
])) : b("", !0),
|
|
2082
|
-
|
|
2082
|
+
p(v, {
|
|
2083
2083
|
"item-key": "_uniqueId",
|
|
2084
2084
|
options: {
|
|
2085
2085
|
group: "articles",
|
|
@@ -2095,7 +2095,7 @@ function Ti(e, t, n, o, s, i) {
|
|
|
2095
2095
|
style: { "min-height": "calc(3 * var(--rem))" }
|
|
2096
2096
|
}, {
|
|
2097
2097
|
item: h(({ item: k, index: w }) => [
|
|
2098
|
-
|
|
2098
|
+
p(f, {
|
|
2099
2099
|
ref: "articleItem",
|
|
2100
2100
|
value: k,
|
|
2101
2101
|
width: o.articlesWidth,
|
|
@@ -2106,19 +2106,19 @@ function Ti(e, t, n, o, s, i) {
|
|
|
2106
2106
|
"root-price-type": n.rootPriceType,
|
|
2107
2107
|
"active-house-work-type": n.activeHouseWorkType,
|
|
2108
2108
|
class: "article-item",
|
|
2109
|
-
"onUpdate:currency": t[1] || (t[1] = (
|
|
2110
|
-
onInput: (
|
|
2111
|
-
onFocus: t[2] || (t[2] = (
|
|
2112
|
-
onRemove: (
|
|
2113
|
-
onOpenModal: (
|
|
2114
|
-
onAdd: (
|
|
2115
|
-
onSelect: (
|
|
2116
|
-
onEsc: (
|
|
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
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"])
|
|
2118
2118
|
]),
|
|
2119
2119
|
_: 1
|
|
2120
2120
|
}, 8, ["options", "list"]),
|
|
2121
|
-
|
|
2121
|
+
p(d, { to: "modal" }, {
|
|
2122
2122
|
default: h(() => [
|
|
2123
2123
|
s.showModal && i.articlesWithTotal[s.selectedIndex] ? (a(), A(y, {
|
|
2124
2124
|
key: 0,
|
|
@@ -2144,7 +2144,7 @@ function Ti(e, t, n, o, s, i) {
|
|
|
2144
2144
|
})
|
|
2145
2145
|
], 512);
|
|
2146
2146
|
}
|
|
2147
|
-
const Ai = /* @__PURE__ */
|
|
2147
|
+
const Ai = /* @__PURE__ */ D(Ii, [["render", Ti], ["__scopeId", "data-v-8ab60481"]]), Ci = {
|
|
2148
2148
|
name: "MaxTotalInput",
|
|
2149
2149
|
i18nOptions: {
|
|
2150
2150
|
namespaces: "MaxTotalInput",
|
|
@@ -2187,10 +2187,10 @@ const Ai = /* @__PURE__ */ M(Ii, [["render", Ti], ["__scopeId", "data-v-8ab60481
|
|
|
2187
2187
|
},
|
|
2188
2188
|
watch: {
|
|
2189
2189
|
isIncVat(e) {
|
|
2190
|
-
let t =
|
|
2190
|
+
let t = F({ amount: this.modelValue }).divide(
|
|
2191
2191
|
1.25
|
|
2192
2192
|
);
|
|
2193
|
-
e || (t =
|
|
2193
|
+
e || (t = F({ amount: this.modelValue }).multiply(
|
|
2194
2194
|
125 * 0.01
|
|
2195
2195
|
)), this.$emit("update:modelValue", t.getAmount());
|
|
2196
2196
|
}
|
|
@@ -2199,7 +2199,7 @@ const Ai = /* @__PURE__ */ M(Ii, [["render", Ti], ["__scopeId", "data-v-8ab60481
|
|
|
2199
2199
|
function xi(e, t, n, o, s, i) {
|
|
2200
2200
|
const f = g("CPriceInput");
|
|
2201
2201
|
return a(), c("div", Pi, [
|
|
2202
|
-
|
|
2202
|
+
p(f, {
|
|
2203
2203
|
"model-value": n.modelValue,
|
|
2204
2204
|
currency: n.currency,
|
|
2205
2205
|
"is-inc-vat": e.isIncVat,
|
|
@@ -2212,10 +2212,10 @@ function xi(e, t, n, o, s, i) {
|
|
|
2212
2212
|
"onUpdate:modelValue": t[0] || (t[0] = (v) => e.$emit("update:modelValue", v))
|
|
2213
2213
|
}, {
|
|
2214
2214
|
prefix: h(() => [
|
|
2215
|
-
|
|
2215
|
+
_(u(e.$t("price.maxPrice").capitalize()), 1)
|
|
2216
2216
|
]),
|
|
2217
2217
|
suffix: h(() => [
|
|
2218
|
-
l("span", null,
|
|
2218
|
+
l("span", null, u(s.getCurrencySymbol(n.currency)) + " " + u(e.$t(`vat.${e.isIncVat ? "incVat" : "exVat"}`, {
|
|
2219
2219
|
thing: e.$t(`vat.${n.vatType}`)
|
|
2220
2220
|
})), 1)
|
|
2221
2221
|
]),
|
|
@@ -2223,7 +2223,7 @@ function xi(e, t, n, o, s, i) {
|
|
|
2223
2223
|
}, 8, ["model-value", "currency", "is-inc-vat", "placeholder"])
|
|
2224
2224
|
]);
|
|
2225
2225
|
}
|
|
2226
|
-
const Vi = /* @__PURE__ */
|
|
2226
|
+
const Vi = /* @__PURE__ */ D(Ci, [["render", xi]]), Si = {
|
|
2227
2227
|
components: {
|
|
2228
2228
|
CDropdown: Y,
|
|
2229
2229
|
CDropdownItem: K
|
|
@@ -2240,16 +2240,16 @@ const Vi = /* @__PURE__ */ M(Ci, [["render", xi]]), Si = {
|
|
|
2240
2240
|
priceTypeOptions: ["fixed", "approx", "openAcc", "openAccMaxPrice"]
|
|
2241
2241
|
};
|
|
2242
2242
|
}
|
|
2243
|
-
},
|
|
2244
|
-
function
|
|
2243
|
+
}, Di = { class: "flex justify-end" };
|
|
2244
|
+
function Mi(e, t, n, o, s, i) {
|
|
2245
2245
|
const f = g("CButton"), v = g("CDropdownItem"), y = g("CDropdown");
|
|
2246
|
-
return a(), c("div",
|
|
2247
|
-
|
|
2246
|
+
return a(), c("div", Di, [
|
|
2247
|
+
p(y, { "model-value": n.modelValue }, {
|
|
2248
2248
|
trigger: h(() => [
|
|
2249
|
-
|
|
2249
|
+
p(f, { class: "price-type-button" }, {
|
|
2250
2250
|
default: h(() => [
|
|
2251
|
-
|
|
2252
|
-
l("span", null,
|
|
2251
|
+
_(u(e.$t("price.pricing").capitalize()) + ": ", 1),
|
|
2252
|
+
l("span", null, u(e.$t(`price.${n.modelValue}`)), 1)
|
|
2253
2253
|
]),
|
|
2254
2254
|
_: 1
|
|
2255
2255
|
})
|
|
@@ -2262,7 +2262,7 @@ function Di(e, t, n, o, s, i) {
|
|
|
2262
2262
|
onClick: (k) => e.$emit("update:modelValue", d)
|
|
2263
2263
|
}, {
|
|
2264
2264
|
default: h(() => [
|
|
2265
|
-
|
|
2265
|
+
_(u(e.$t(`price.${d}`)), 1)
|
|
2266
2266
|
]),
|
|
2267
2267
|
_: 2
|
|
2268
2268
|
}, 1032, ["value", "onClick"]))), 128))
|
|
@@ -2271,12 +2271,12 @@ function Di(e, t, n, o, s, i) {
|
|
|
2271
2271
|
}, 8, ["model-value"])
|
|
2272
2272
|
]);
|
|
2273
2273
|
}
|
|
2274
|
-
const Ri = /* @__PURE__ */
|
|
2274
|
+
const Ri = /* @__PURE__ */ D(Si, [["render", Mi], ["__scopeId", "data-v-26c5da6c"]]), Li = {
|
|
2275
2275
|
name: "EditDeduction",
|
|
2276
2276
|
components: {
|
|
2277
2277
|
CPriceInput: Z
|
|
2278
2278
|
},
|
|
2279
|
-
mixins: [
|
|
2279
|
+
mixins: [q(["houseWorkManualAmount"])],
|
|
2280
2280
|
props: {
|
|
2281
2281
|
disabled: {
|
|
2282
2282
|
type: Boolean,
|
|
@@ -2309,13 +2309,13 @@ const Ri = /* @__PURE__ */ M(Si, [["render", Di], ["__scopeId", "data-v-26c5da6c
|
|
|
2309
2309
|
},
|
|
2310
2310
|
methods: {
|
|
2311
2311
|
setDeduction(e) {
|
|
2312
|
-
this.internalValue =
|
|
2312
|
+
this.internalValue = F({ amount: this.total }).multiply(e).getAmount();
|
|
2313
2313
|
},
|
|
2314
2314
|
showModal() {
|
|
2315
2315
|
this.internalValue = this.houseWorkAmount, this.$modal.show(this.modalName);
|
|
2316
2316
|
}
|
|
2317
2317
|
}
|
|
2318
|
-
}, Oi = { class: "deduction-modal flex w-full flex-col items-center justify-between rounded-lg" }, Ei = {
|
|
2318
|
+
}, Oi = { class: "deduction-modal flex w-full flex-col items-center justify-between rounded-lg" }, Ei = { class: "mb-5 text-center text-base font-extrabold" }, Ui = { class: "mb-5 w-full" }, Bi = { class: "my-5 text-center text-base font-extrabold" }, Wi = { class: "mb-5 w-full rounded-md bg-gray-100 p-2 text-center text-sm font-medium italic text-gray-500" }, zi = { class: "flex w-full flex-wrap justify-center gap-2" }, ji = ["onClick"], Fi = {
|
|
2319
2319
|
style: { "margin-right": "0.5em" },
|
|
2320
2320
|
viewBox: "0 0 24 24",
|
|
2321
2321
|
width: "12",
|
|
@@ -2327,10 +2327,10 @@ const Ri = /* @__PURE__ */ M(Si, [["render", Di], ["__scopeId", "data-v-26c5da6c
|
|
|
2327
2327
|
"stroke-linejoin": "round",
|
|
2328
2328
|
class: "css-i6dzq1"
|
|
2329
2329
|
};
|
|
2330
|
-
function
|
|
2330
|
+
function qi(e, t, n, o, s, i) {
|
|
2331
2331
|
const f = g("CPriceInput"), v = g("CButton"), y = g("modal"), d = g("portal");
|
|
2332
2332
|
return a(), c("div", null, [
|
|
2333
|
-
|
|
2333
|
+
p(y, B({
|
|
2334
2334
|
adaptive: !0,
|
|
2335
2335
|
height: "auto",
|
|
2336
2336
|
width: "90%",
|
|
@@ -2339,11 +2339,9 @@ function ji(e, t, n, o, s, i) {
|
|
|
2339
2339
|
}, { name: s.modalName }), {
|
|
2340
2340
|
default: h(() => [
|
|
2341
2341
|
l("div", Oi, [
|
|
2342
|
-
l("div", Ei,
|
|
2343
|
-
type: e.$t(`deduction.${n.houseWorkType}`)
|
|
2344
|
-
})), 1),
|
|
2342
|
+
l("div", Ei, u(e.$t("manualDeduction")), 1),
|
|
2345
2343
|
l("div", Ui, [
|
|
2346
|
-
|
|
2344
|
+
p(f, {
|
|
2347
2345
|
modelValue: s.internalValue,
|
|
2348
2346
|
"onUpdate:modelValue": t[0] || (t[0] = (k) => s.internalValue = k),
|
|
2349
2347
|
modelModifiers: { number: !0 },
|
|
@@ -2354,16 +2352,18 @@ function ji(e, t, n, o, s, i) {
|
|
|
2354
2352
|
"suffix-class": "text-gray-400"
|
|
2355
2353
|
}, {
|
|
2356
2354
|
suffix: h(() => [
|
|
2357
|
-
|
|
2355
|
+
_(u(e.$t("currency.SEK")), 1)
|
|
2358
2356
|
]),
|
|
2359
2357
|
_: 1
|
|
2360
2358
|
}, 8, ["modelValue", "placeholder"])
|
|
2361
2359
|
]),
|
|
2362
|
-
l("div", Bi,
|
|
2360
|
+
l("div", Bi, u(e.$t("standardDeduction")), 1),
|
|
2361
|
+
l("div", Wi, u(e.$t("standardDeductionMessage")), 1),
|
|
2362
|
+
l("div", zi, [
|
|
2363
2363
|
(a(), c(C, null, S([
|
|
2364
|
-
{ v: 0.09, l: "9%" },
|
|
2365
|
-
{ v: 0.105, l: "10.5%" },
|
|
2366
2364
|
{ v: 0.1455, l: "14.55%" },
|
|
2365
|
+
{ v: 0.15, l: "15%" },
|
|
2366
|
+
{ v: 0.175, l: "17.5%" },
|
|
2367
2367
|
{ v: 0.194, l: "19.4%" },
|
|
2368
2368
|
{ v: 0.21, l: "21%" },
|
|
2369
2369
|
{ v: 0.485, l: "48.5%" },
|
|
@@ -2374,9 +2374,9 @@ function ji(e, t, n, o, s, i) {
|
|
|
2374
2374
|
active: Math.round(n.total * k.v * 0.01) * 100 === s.internalValue
|
|
2375
2375
|
}, "deduction-button"]),
|
|
2376
2376
|
onClick: (w) => i.setDeduction(k.v)
|
|
2377
|
-
},
|
|
2377
|
+
}, u(k.l), 11, ji)), 64))
|
|
2378
2378
|
]),
|
|
2379
|
-
|
|
2379
|
+
p(v, {
|
|
2380
2380
|
type: "secondary",
|
|
2381
2381
|
wide: "",
|
|
2382
2382
|
class: "mt-8",
|
|
@@ -2385,11 +2385,11 @@ function ji(e, t, n, o, s, i) {
|
|
|
2385
2385
|
})
|
|
2386
2386
|
}, {
|
|
2387
2387
|
default: h(() => [
|
|
2388
|
-
|
|
2388
|
+
_(u(e.$t("save")), 1)
|
|
2389
2389
|
]),
|
|
2390
2390
|
_: 1
|
|
2391
2391
|
}),
|
|
2392
|
-
|
|
2392
|
+
p(v, {
|
|
2393
2393
|
type: "secondary",
|
|
2394
2394
|
pattern: "tertiary",
|
|
2395
2395
|
wide: "",
|
|
@@ -2399,7 +2399,7 @@ function ji(e, t, n, o, s, i) {
|
|
|
2399
2399
|
})
|
|
2400
2400
|
}, {
|
|
2401
2401
|
default: h(() => [
|
|
2402
|
-
|
|
2402
|
+
_(u(e.$t("reset")), 1)
|
|
2403
2403
|
]),
|
|
2404
2404
|
_: 1
|
|
2405
2405
|
})
|
|
@@ -2417,7 +2417,7 @@ function ji(e, t, n, o, s, i) {
|
|
|
2417
2417
|
class: "housework-manual-nav",
|
|
2418
2418
|
onClick: t[3] || (t[3] = (k) => e.$modal.show(s.modalName))
|
|
2419
2419
|
}, [
|
|
2420
|
-
(a(), c("svg",
|
|
2420
|
+
(a(), c("svg", Fi, t[4] || (t[4] = [
|
|
2421
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),
|
|
2422
2422
|
l("line", {
|
|
2423
2423
|
x1: "12",
|
|
@@ -2432,17 +2432,17 @@ function ji(e, t, n, o, s, i) {
|
|
|
2432
2432
|
y2: "17"
|
|
2433
2433
|
}, null, -1)
|
|
2434
2434
|
]))),
|
|
2435
|
-
|
|
2435
|
+
_(" " + u(e.$t("deduction.manualType", { type: e.$t(`deduction.${n.houseWorkType}`) })) + " " + u(e.$t("using")), 1)
|
|
2436
2436
|
])
|
|
2437
2437
|
]),
|
|
2438
2438
|
_: 1
|
|
2439
2439
|
})) : b("", !0)
|
|
2440
2440
|
]);
|
|
2441
2441
|
}
|
|
2442
|
-
const
|
|
2442
|
+
const Ni = /* @__PURE__ */ D(Li, [["render", qi], ["__scopeId", "data-v-b12680ea"]]), Hi = {
|
|
2443
2443
|
name: "Pricing",
|
|
2444
2444
|
components: {
|
|
2445
|
-
EditDeduction:
|
|
2445
|
+
EditDeduction: Ni
|
|
2446
2446
|
},
|
|
2447
2447
|
props: {
|
|
2448
2448
|
_document: {
|
|
@@ -2540,14 +2540,14 @@ const qi = /* @__PURE__ */ M(Li, [["render", ji], ["__scopeId", "data-v-5de18d7b
|
|
|
2540
2540
|
return !!x(this.prices, "region.houseWorkType", !1) || !!x(this.prices, "region.houseWorkManualAmount", !1);
|
|
2541
2541
|
}
|
|
2542
2542
|
}
|
|
2543
|
-
},
|
|
2543
|
+
}, Gi = { class: "price-bubble" }, Ki = { class: "flex w-full items-center justify-between" }, Yi = { class: "price-label" }, Zi = {
|
|
2544
2544
|
key: 0,
|
|
2545
2545
|
class: "pricing-sub-label"
|
|
2546
|
-
},
|
|
2547
|
-
function
|
|
2546
|
+
}, Ji = ["onClick"], Qi = { class: "price-value" };
|
|
2547
|
+
function Xi(e, t, n, o, s, i) {
|
|
2548
2548
|
const f = g("EditDeduction"), v = U("tooltip");
|
|
2549
|
-
return a(), c("div",
|
|
2550
|
-
l("div",
|
|
2549
|
+
return a(), c("div", Gi, [
|
|
2550
|
+
l("div", Ki, [
|
|
2551
2551
|
i.showHouseWork ? (a(), A(f, {
|
|
2552
2552
|
key: 0,
|
|
2553
2553
|
ref: "deduction",
|
|
@@ -2567,9 +2567,9 @@ function Ji(e, t, n, o, s, i) {
|
|
|
2567
2567
|
key: d,
|
|
2568
2568
|
class: V([[y.classList || ""], "price-row flex w-full justify-between"])
|
|
2569
2569
|
}, [
|
|
2570
|
-
l("div",
|
|
2571
|
-
|
|
2572
|
-
y.subLabel ? (a(), c("span",
|
|
2570
|
+
l("div", Yi, [
|
|
2571
|
+
_(u(y.label.capitalize()) + " ", 1),
|
|
2572
|
+
y.subLabel ? (a(), c("span", Zi, u(y.subLabel), 1)) : b("", !0),
|
|
2573
2573
|
y.action ? R((a(), c("span", {
|
|
2574
2574
|
key: 1,
|
|
2575
2575
|
class: "pricing-action",
|
|
@@ -2588,16 +2588,16 @@ function Ji(e, t, n, o, s, i) {
|
|
|
2588
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" }),
|
|
2589
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" })
|
|
2590
2590
|
], -1)
|
|
2591
|
-
]), 8,
|
|
2591
|
+
]), 8, Ji)), [
|
|
2592
2592
|
[v, e.$t("edit", { thing: e.$t("deduction.deduction") })]
|
|
2593
2593
|
]) : b("", !0)
|
|
2594
2594
|
]),
|
|
2595
|
-
l("div",
|
|
2595
|
+
l("div", Qi, u(y.prefix) + " " + u(y.value), 1)
|
|
2596
2596
|
], 2))), 128))
|
|
2597
2597
|
])
|
|
2598
2598
|
]);
|
|
2599
2599
|
}
|
|
2600
|
-
const
|
|
2600
|
+
const en = /* @__PURE__ */ D(Hi, [["render", Xi], ["__scopeId", "data-v-90384cd6"]]), tn = {
|
|
2601
2601
|
name: "PackageItemEdit",
|
|
2602
2602
|
i18nOptions: {
|
|
2603
2603
|
namespaces: "PackageItemEdit",
|
|
@@ -2628,7 +2628,7 @@ const Qi = /* @__PURE__ */ M(Fi, [["render", Ji], ["__scopeId", "data-v-90384cd6
|
|
|
2628
2628
|
ArticleList: Ai,
|
|
2629
2629
|
PriceFormAlternatives: Ri,
|
|
2630
2630
|
MaxTotalInput: Vi,
|
|
2631
|
-
Pricing:
|
|
2631
|
+
Pricing: en,
|
|
2632
2632
|
TextEditor: Qe,
|
|
2633
2633
|
CDropdown: Y,
|
|
2634
2634
|
CDropdownItem: K
|
|
@@ -2644,7 +2644,7 @@ const Qi = /* @__PURE__ */ M(Fi, [["render", Ji], ["__scopeId", "data-v-90384cd6
|
|
|
2644
2644
|
"remove-package"
|
|
2645
2645
|
],
|
|
2646
2646
|
mixins: [
|
|
2647
|
-
|
|
2647
|
+
q([
|
|
2648
2648
|
"isSelectedDefault",
|
|
2649
2649
|
"isSelected",
|
|
2650
2650
|
"name",
|
|
@@ -2786,65 +2786,65 @@ const Qi = /* @__PURE__ */ M(Fi, [["render", Ji], ["__scopeId", "data-v-90384cd6
|
|
|
2786
2786
|
});
|
|
2787
2787
|
}
|
|
2788
2788
|
}
|
|
2789
|
-
},
|
|
2790
|
-
function
|
|
2791
|
-
const f = g("CButton"), v = g("CDropdownItem"), y = g("CDropdown"), d = g("TextEditor"), k = g("MaxTotalInput"), w = g("PriceFormAlternatives"),
|
|
2792
|
-
return a(), c("div",
|
|
2793
|
-
l("div",
|
|
2794
|
-
l("div", null,
|
|
2789
|
+
}, nn = { class: "min-h-0 rounded-md border border-gray-200 bg-white text-black" }, sn = { class: "flex w-full items-center justify-between bg-gray-100 py-1 pl-4 pr-1 text-sm font-medium text-gray-600" }, an = { class: "p-4" }, on = { class: "mb-0.5 flex items-center" }, rn = ["id", "placeholder"], ln = { class: "mt-2 flex gap-2" };
|
|
2790
|
+
function cn(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", nn, [
|
|
2793
|
+
l("div", sn, [
|
|
2794
|
+
l("div", null, u(n.type === "single" ? e.$t("single") : n.type === "radio" || n.toggable ? e.$t("option") : e.$t("base")), 1),
|
|
2795
2795
|
n.type !== "single" ? (a(), A(y, {
|
|
2796
2796
|
key: 0,
|
|
2797
2797
|
class: "ml-4"
|
|
2798
2798
|
}, {
|
|
2799
2799
|
trigger: h(() => [
|
|
2800
|
-
|
|
2800
|
+
p(f, {
|
|
2801
2801
|
size: "small",
|
|
2802
2802
|
type: "text",
|
|
2803
2803
|
pattern: "secondary",
|
|
2804
2804
|
class: "is-thinner opacity-70"
|
|
2805
2805
|
}, {
|
|
2806
2806
|
default: h(() => [
|
|
2807
|
-
|
|
2807
|
+
_(u(e.$t("_common:change")), 1)
|
|
2808
2808
|
]),
|
|
2809
2809
|
_: 1
|
|
2810
2810
|
})
|
|
2811
2811
|
]),
|
|
2812
2812
|
default: h(() => [
|
|
2813
2813
|
n.toggable ? (a(), c(C, { key: 0 }, [
|
|
2814
|
-
|
|
2814
|
+
p(v, {
|
|
2815
2815
|
value: e.isSelectedDefault,
|
|
2816
2816
|
toggle: !0,
|
|
2817
2817
|
"close-on-click": !1,
|
|
2818
2818
|
onClick: t[0] || (t[0] = (I) => e.$emit("update:isSelectedDefault", !e.isSelectedDefault))
|
|
2819
2819
|
}, {
|
|
2820
2820
|
default: h(() => [
|
|
2821
|
-
|
|
2821
|
+
_(u(e.$t("selected")), 1)
|
|
2822
2822
|
]),
|
|
2823
2823
|
_: 1
|
|
2824
2824
|
}, 8, ["value"]),
|
|
2825
|
-
|
|
2825
|
+
p(v, { separator: "" })
|
|
2826
2826
|
], 64)) : b("", !0),
|
|
2827
|
-
|
|
2827
|
+
p(v, {
|
|
2828
2828
|
"icon-left": "arrow-up",
|
|
2829
2829
|
disabled: !n.moveOptions.up,
|
|
2830
2830
|
onClick: t[1] || (t[1] = (I) => e.$emit("move", -1))
|
|
2831
2831
|
}, {
|
|
2832
2832
|
default: h(() => [
|
|
2833
|
-
|
|
2833
|
+
_(u(e.$t("_common:move", { thing: e.$t("_common:up") })), 1)
|
|
2834
2834
|
]),
|
|
2835
2835
|
_: 1
|
|
2836
2836
|
}, 8, ["disabled"]),
|
|
2837
|
-
|
|
2837
|
+
p(v, {
|
|
2838
2838
|
"icon-left": "arrow-down",
|
|
2839
2839
|
disabled: !n.moveOptions.down,
|
|
2840
2840
|
onClick: t[2] || (t[2] = (I) => e.$emit("move", 1))
|
|
2841
2841
|
}, {
|
|
2842
2842
|
default: h(() => [
|
|
2843
|
-
|
|
2843
|
+
_(u(e.$t("_common:move", { thing: e.$t("_common:down") })), 1)
|
|
2844
2844
|
]),
|
|
2845
2845
|
_: 1
|
|
2846
2846
|
}, 8, ["disabled"]),
|
|
2847
|
-
|
|
2847
|
+
p(v, {
|
|
2848
2848
|
"icon-props": {
|
|
2849
2849
|
stroke: "red"
|
|
2850
2850
|
},
|
|
@@ -2852,7 +2852,7 @@ function rn(e, t, n, o, s, i) {
|
|
|
2852
2852
|
onClick: i.onRemove
|
|
2853
2853
|
}, {
|
|
2854
2854
|
default: h(() => [
|
|
2855
|
-
|
|
2855
|
+
_(u(e.$t("_common:remove")), 1)
|
|
2856
2856
|
]),
|
|
2857
2857
|
_: 1
|
|
2858
2858
|
}, 8, ["onClick"])
|
|
@@ -2860,19 +2860,19 @@ function rn(e, t, n, o, s, i) {
|
|
|
2860
2860
|
_: 1
|
|
2861
2861
|
})) : b("", !0)
|
|
2862
2862
|
]),
|
|
2863
|
-
l("div",
|
|
2864
|
-
l("div",
|
|
2863
|
+
l("div", an, [
|
|
2864
|
+
l("div", on, [
|
|
2865
2865
|
R(l("input", {
|
|
2866
2866
|
id: `package-name-${n.packageId}`,
|
|
2867
2867
|
"onUpdate:modelValue": t[3] || (t[3] = (I) => e.name = I),
|
|
2868
2868
|
placeholder: e.$t("namePlaceholder"),
|
|
2869
2869
|
class: "block w-full rounded-lg p-0 text-xl font-bold leading-loose placeholder:text-gray-400",
|
|
2870
2870
|
onKeyup: t[4] || (t[4] = j((I) => e.$refs.editor.focus(), ["enter"]))
|
|
2871
|
-
}, null, 40,
|
|
2871
|
+
}, null, 40, rn), [
|
|
2872
2872
|
[Ye, e.name]
|
|
2873
2873
|
])
|
|
2874
2874
|
]),
|
|
2875
|
-
|
|
2875
|
+
p(d, {
|
|
2876
2876
|
ref: "editor",
|
|
2877
2877
|
modelValue: i.internalDescription,
|
|
2878
2878
|
"onUpdate:modelValue": t[5] || (t[5] = (I) => i.internalDescription = I),
|
|
@@ -2892,14 +2892,14 @@ function rn(e, t, n, o, s, i) {
|
|
|
2892
2892
|
"vat-type": e._document.vatType,
|
|
2893
2893
|
class: "mb-4"
|
|
2894
2894
|
}, null, 8, ["modelValue", "currency", "vat-type"])) : b("", !0),
|
|
2895
|
-
|
|
2895
|
+
p(w, {
|
|
2896
2896
|
modelValue: e.priceType,
|
|
2897
2897
|
"onUpdate:modelValue": [
|
|
2898
2898
|
t[7] || (t[7] = (I) => e.priceType = I),
|
|
2899
2899
|
t[8] || (t[8] = (I) => e.$emit("update:priceType", I))
|
|
2900
2900
|
]
|
|
2901
2901
|
}, null, 8, ["modelValue"]),
|
|
2902
|
-
|
|
2902
|
+
p($, {
|
|
2903
2903
|
ref: "articleList",
|
|
2904
2904
|
_document: e._document,
|
|
2905
2905
|
articles: i.mappedPackageArticles,
|
|
@@ -2915,24 +2915,24 @@ function rn(e, t, n, o, s, i) {
|
|
|
2915
2915
|
onFocus: t[11] || (t[11] = (I) => s.isFocus = !0),
|
|
2916
2916
|
onInsert: i.onInsert
|
|
2917
2917
|
}, null, 8, ["_document", "articles", "root-price-type", "active-house-work-type", "hide-controls", "onInput", "onMove", "onRemove", "onAdd", "onInsert"]),
|
|
2918
|
-
l("div",
|
|
2918
|
+
l("div", ln, [
|
|
2919
2919
|
l("div", {
|
|
2920
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",
|
|
2921
2921
|
onClick: t[12] || (t[12] = (I) => i.onArticleAdd())
|
|
2922
2922
|
}, [
|
|
2923
|
-
|
|
2923
|
+
p(m, {
|
|
2924
2924
|
type: "plus",
|
|
2925
2925
|
size: "16",
|
|
2926
2926
|
"stroke-width": "3",
|
|
2927
2927
|
class: "mr-1"
|
|
2928
2928
|
}),
|
|
2929
|
-
|
|
2929
|
+
_(" " + u(e.$t("addButton")), 1)
|
|
2930
2930
|
]),
|
|
2931
2931
|
R((a(), c("div", {
|
|
2932
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",
|
|
2933
2933
|
onClick: t[13] || (t[13] = (I) => i.onArticleAdd({ openModal: !0 }))
|
|
2934
2934
|
}, [
|
|
2935
|
-
|
|
2935
|
+
p(m, {
|
|
2936
2936
|
type: "zap",
|
|
2937
2937
|
size: "16",
|
|
2938
2938
|
"stroke-width": "2.5"
|
|
@@ -2944,7 +2944,7 @@ function rn(e, t, n, o, s, i) {
|
|
|
2944
2944
|
}]
|
|
2945
2945
|
])
|
|
2946
2946
|
]),
|
|
2947
|
-
|
|
2947
|
+
p(T, {
|
|
2948
2948
|
_document: e._document,
|
|
2949
2949
|
"base-path": `${e._value.basePath}`,
|
|
2950
2950
|
"package-id": n.packageId,
|
|
@@ -2961,12 +2961,12 @@ function rn(e, t, n, o, s, i) {
|
|
|
2961
2961
|
])
|
|
2962
2962
|
]);
|
|
2963
2963
|
}
|
|
2964
|
-
const
|
|
2964
|
+
const dn = /* @__PURE__ */ D(tn, [["render", cn], ["__scopeId", "data-v-64642fe7"]]), un = (e) => (e || []).slice(0, 1).map((t) => ({
|
|
2965
2965
|
...t,
|
|
2966
2966
|
isSelected: !0,
|
|
2967
2967
|
isSelectedDefault: !0,
|
|
2968
2968
|
toggable: !1
|
|
2969
|
-
})),
|
|
2969
|
+
})), pn = (e) => {
|
|
2970
2970
|
const t = x(e, "0.data.prices.type") || "fixed";
|
|
2971
2971
|
return (e || []).map((n, o) => ({
|
|
2972
2972
|
...n,
|
|
@@ -2984,7 +2984,7 @@ const ln = /* @__PURE__ */ M(Xi, [["render", rn], ["__scopeId", "data-v-64642fe7
|
|
|
2984
2984
|
}
|
|
2985
2985
|
}
|
|
2986
2986
|
}));
|
|
2987
|
-
},
|
|
2987
|
+
}, mn = (e = []) => {
|
|
2988
2988
|
let t = !1;
|
|
2989
2989
|
return e.map((n) => {
|
|
2990
2990
|
const o = {
|
|
@@ -2999,13 +2999,13 @@ const ln = /* @__PURE__ */ M(Xi, [["render", rn], ["__scopeId", "data-v-64642fe7
|
|
|
2999
2999
|
return (o.isSelected || o.isSelectedDefault) && (t = !0), o;
|
|
3000
3000
|
}, []);
|
|
3001
3001
|
};
|
|
3002
|
-
function
|
|
3003
|
-
if (e === "single") return
|
|
3004
|
-
if (e === "checkbox") return
|
|
3005
|
-
if (e === "radio") return
|
|
3002
|
+
function hn(e, ...t) {
|
|
3003
|
+
if (e === "single") return un(...t);
|
|
3004
|
+
if (e === "checkbox") return pn(...t);
|
|
3005
|
+
if (e === "radio") return mn(...t);
|
|
3006
3006
|
throw new Error(`Package filter type '${e}' is not implemented`);
|
|
3007
3007
|
}
|
|
3008
|
-
const
|
|
3008
|
+
const gn = {
|
|
3009
3009
|
name: "PackageGroupEdit",
|
|
3010
3010
|
i18nOptions: {
|
|
3011
3011
|
namespaces: "PackageGroupEdit",
|
|
@@ -3044,14 +3044,14 @@ const mn = {
|
|
|
3044
3044
|
},
|
|
3045
3045
|
components: {
|
|
3046
3046
|
ErrorCallout: me,
|
|
3047
|
-
PackageItem:
|
|
3047
|
+
PackageItem: dn,
|
|
3048
3048
|
PackageGroupSelect: kt,
|
|
3049
|
-
CCallout:
|
|
3049
|
+
CCallout: $e,
|
|
3050
3050
|
CDropdown: Y,
|
|
3051
3051
|
CDropdownItem: K
|
|
3052
3052
|
},
|
|
3053
3053
|
mixins: [
|
|
3054
|
-
|
|
3054
|
+
q([
|
|
3055
3055
|
"type",
|
|
3056
3056
|
// 'title',
|
|
3057
3057
|
"packages",
|
|
@@ -3155,7 +3155,7 @@ const mn = {
|
|
|
3155
3155
|
if (!this.persistedGroup || !this.persistedGroup.type) return;
|
|
3156
3156
|
let { packages: t, articles: n } = this.persistedGroup;
|
|
3157
3157
|
if (!t.length) return;
|
|
3158
|
-
if (e !== this.persistedGroup.type && (t =
|
|
3158
|
+
if (e !== this.persistedGroup.type && (t = hn(e, t)), e === "single" && n.length) {
|
|
3159
3159
|
const [{ packageId: s }] = t;
|
|
3160
3160
|
n = n.filter((i) => i.packageId === s);
|
|
3161
3161
|
}
|
|
@@ -3244,31 +3244,31 @@ const mn = {
|
|
|
3244
3244
|
this.$emit("input", { key: this._value.packages, value: n });
|
|
3245
3245
|
}
|
|
3246
3246
|
}
|
|
3247
|
-
},
|
|
3247
|
+
}, vn = { class: "package-group-root font-inter" }, fn = { key: 0 }, yn = { style: { position: "absolute", right: "0", top: "-10px", transform: "translateY(-100%)", "z-index": "2" } }, kn = { class: "pb-4" }, bn = {
|
|
3248
3248
|
key: 2,
|
|
3249
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%)" }
|
|
3250
|
-
},
|
|
3250
|
+
}, wn = {
|
|
3251
3251
|
key: 4,
|
|
3252
3252
|
class: "flex w-full flex-col items-center justify-center"
|
|
3253
|
-
},
|
|
3253
|
+
}, In = { style: { width: "100%" } }, _n = {
|
|
3254
3254
|
key: 0,
|
|
3255
3255
|
class: "package-placeholder bg-gray-100",
|
|
3256
3256
|
style: { color: "hsl(0, 0%, 24%)", "font-weight": "500" }
|
|
3257
|
-
},
|
|
3257
|
+
}, $n = {
|
|
3258
3258
|
style: { "vertical-align": "text-bottom", "margin-right": "3px" },
|
|
3259
3259
|
width: "16",
|
|
3260
3260
|
height: "16",
|
|
3261
3261
|
viewBox: "0 0 18 14",
|
|
3262
3262
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3263
|
-
},
|
|
3264
|
-
function
|
|
3265
|
-
const f = g("PackageGroupSelect"), v = g("ErrorCallout"), y = g("CButton"), d = g("CDropdownItem"), k = g("CDropdown"), w = g("CCallout"),
|
|
3266
|
-
return a(), c("div",
|
|
3263
|
+
}, Tn = { class: "flex w-full" };
|
|
3264
|
+
function An(e, t, n, o, s, i) {
|
|
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", vn, [
|
|
3267
3267
|
e.type ? (a(), c(C, { key: 1 }, [
|
|
3268
|
-
l("div",
|
|
3269
|
-
|
|
3268
|
+
l("div", yn, [
|
|
3269
|
+
p(k, null, {
|
|
3270
3270
|
trigger: h(() => [
|
|
3271
|
-
|
|
3271
|
+
p(y, {
|
|
3272
3272
|
type: "none",
|
|
3273
3273
|
size: "normal",
|
|
3274
3274
|
pattern: "secondary",
|
|
@@ -3277,22 +3277,22 @@ function _n(e, t, n, o, s, i) {
|
|
|
3277
3277
|
})
|
|
3278
3278
|
]),
|
|
3279
3279
|
default: h(() => [
|
|
3280
|
-
|
|
3280
|
+
p(d, { onClick: i.onResetType }, {
|
|
3281
3281
|
default: h(() => [
|
|
3282
|
-
|
|
3282
|
+
_(u(e.$t("_common:change", {
|
|
3283
3283
|
thing: e.$t("_common:price.proposal").toLowerCase()
|
|
3284
3284
|
})), 1)
|
|
3285
3285
|
]),
|
|
3286
3286
|
_: 1
|
|
3287
3287
|
}, 8, ["onClick"]),
|
|
3288
|
-
|
|
3288
|
+
p(d, {
|
|
3289
3289
|
value: !!e.hideGroupPrice,
|
|
3290
3290
|
"close-on-click": !1,
|
|
3291
3291
|
toggle: "",
|
|
3292
3292
|
onInput: t[1] || (t[1] = (m) => e.hideGroupPrice = m)
|
|
3293
3293
|
}, {
|
|
3294
3294
|
default: h(() => [
|
|
3295
|
-
|
|
3295
|
+
_(u(e.$t("hideGroupPrice")), 1)
|
|
3296
3296
|
]),
|
|
3297
3297
|
_: 1
|
|
3298
3298
|
}, 8, ["value"])
|
|
@@ -3306,8 +3306,8 @@ function _n(e, t, n, o, s, i) {
|
|
|
3306
3306
|
class: "w-full"
|
|
3307
3307
|
}, {
|
|
3308
3308
|
default: h(() => [
|
|
3309
|
-
l("div",
|
|
3310
|
-
|
|
3309
|
+
l("div", kn, u(e.$t("basePlaceholder")), 1),
|
|
3310
|
+
p(y, {
|
|
3311
3311
|
type: "secondary",
|
|
3312
3312
|
size: "small",
|
|
3313
3313
|
style: { "font-weight": "600" },
|
|
@@ -3318,7 +3318,7 @@ function _n(e, t, n, o, s, i) {
|
|
|
3318
3318
|
}))
|
|
3319
3319
|
}, {
|
|
3320
3320
|
default: h(() => [
|
|
3321
|
-
|
|
3321
|
+
_(u(e.$t("_common:add", { thing: e.$t("base").toLowerCase() })), 1)
|
|
3322
3322
|
]),
|
|
3323
3323
|
_: 1
|
|
3324
3324
|
})
|
|
@@ -3334,7 +3334,7 @@ function _n(e, t, n, o, s, i) {
|
|
|
3334
3334
|
key: m.packageId,
|
|
3335
3335
|
class: "section-item pb-4"
|
|
3336
3336
|
}, [
|
|
3337
|
-
|
|
3337
|
+
p($, {
|
|
3338
3338
|
_document: e._document,
|
|
3339
3339
|
_value: {
|
|
3340
3340
|
isSelectedDefault: `${e._value.packages}[${m.index}].isSelectedDefault`,
|
|
@@ -3370,7 +3370,7 @@ function _n(e, t, n, o, s, i) {
|
|
|
3370
3370
|
]),
|
|
3371
3371
|
_: 1
|
|
3372
3372
|
})),
|
|
3373
|
-
e.type === "checkbox" && i.topRowPackages.length && i.bottomRowPackages.length ? (a(), c("div",
|
|
3373
|
+
e.type === "checkbox" && i.topRowPackages.length && i.bottomRowPackages.length ? (a(), c("div", bn)) : b("", !0),
|
|
3374
3374
|
e.type === "checkbox" ? (a(), A(re, {
|
|
3375
3375
|
key: 3,
|
|
3376
3376
|
name: "section-list",
|
|
@@ -3383,7 +3383,7 @@ function _n(e, t, n, o, s, i) {
|
|
|
3383
3383
|
class: "section-item",
|
|
3384
3384
|
style: { padding: "calc(1 * var(--rem)) 0" }
|
|
3385
3385
|
}, [
|
|
3386
|
-
|
|
3386
|
+
p($, {
|
|
3387
3387
|
_document: e._document,
|
|
3388
3388
|
_value: {
|
|
3389
3389
|
isSelectedDefault: `${e._value.packages}[${m.index}].isSelectedDefault`,
|
|
@@ -3418,17 +3418,17 @@ function _n(e, t, n, o, s, i) {
|
|
|
3418
3418
|
]),
|
|
3419
3419
|
_: 1
|
|
3420
3420
|
})) : b("", !0),
|
|
3421
|
-
e.type !== "single" || !e.packages.length ? (a(), c("div",
|
|
3422
|
-
l("div",
|
|
3423
|
-
e.type === "radio" && !e.packages.length ? (a(), c("div",
|
|
3424
|
-
(a(), c("svg",
|
|
3421
|
+
e.type !== "single" || !e.packages.length ? (a(), c("div", wn, [
|
|
3422
|
+
l("div", In, [
|
|
3423
|
+
e.type === "radio" && !e.packages.length ? (a(), c("div", _n, [
|
|
3424
|
+
(a(), c("svg", $n, t[13] || (t[13] = [
|
|
3425
3425
|
l("path", {
|
|
3426
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",
|
|
3427
3427
|
fill: "#000",
|
|
3428
3428
|
"fill-rule": "evenodd"
|
|
3429
3429
|
}, null, -1)
|
|
3430
3430
|
]))),
|
|
3431
|
-
|
|
3431
|
+
_(" " + u(e.$t("selectablePlaceholder")), 1)
|
|
3432
3432
|
])) : b("", !0)
|
|
3433
3433
|
]),
|
|
3434
3434
|
n.validator.$invalid && n.validator.$dirty ? (a(), A(v, {
|
|
@@ -3436,8 +3436,8 @@ function _n(e, t, n, o, s, i) {
|
|
|
3436
3436
|
message: e.$t("error.minOnePackage"),
|
|
3437
3437
|
style: { margin: "calc(1 * var(--rem)) 0 calc(1 * var(--rem)) 0" }
|
|
3438
3438
|
}, null, 8, ["message"])) : b("", !0),
|
|
3439
|
-
l("div",
|
|
3440
|
-
|
|
3439
|
+
l("div", Tn, [
|
|
3440
|
+
p(y, {
|
|
3441
3441
|
type: "secondary",
|
|
3442
3442
|
outlined: "",
|
|
3443
3443
|
"icon-left": "plus",
|
|
@@ -3445,14 +3445,14 @@ function _n(e, t, n, o, s, i) {
|
|
|
3445
3445
|
onClick: t[12] || (t[12] = (m) => i.addPackage())
|
|
3446
3446
|
}, {
|
|
3447
3447
|
default: h(() => [
|
|
3448
|
-
|
|
3448
|
+
_(u(e.$t("add")), 1)
|
|
3449
3449
|
]),
|
|
3450
3450
|
_: 1
|
|
3451
3451
|
})
|
|
3452
3452
|
])
|
|
3453
3453
|
])) : b("", !0)
|
|
3454
|
-
], 64)) : (a(), c("div",
|
|
3455
|
-
|
|
3454
|
+
], 64)) : (a(), c("div", fn, [
|
|
3455
|
+
p(f, {
|
|
3456
3456
|
onInput: t[0] || (t[0] = (m) => i.onSelectType(m))
|
|
3457
3457
|
}),
|
|
3458
3458
|
n.validator.$invalid && n.validator.$dirty ? (a(), A(v, {
|
|
@@ -3463,7 +3463,7 @@ function _n(e, t, n, o, s, i) {
|
|
|
3463
3463
|
]))
|
|
3464
3464
|
]);
|
|
3465
3465
|
}
|
|
3466
|
-
const
|
|
3466
|
+
const zn = /* @__PURE__ */ D(gn, [["render", An], ["__scopeId", "data-v-03549668"]]);
|
|
3467
3467
|
export {
|
|
3468
|
-
|
|
3468
|
+
zn as default
|
|
3469
3469
|
};
|