@cling-se/widget 0.19.10 → 0.19.11
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 +11 -0
- package/dist/{AddClientCallout-BsRvkT-W.js → AddClientCallout-CKHwq8Iu.js} +4 -4
- package/dist/{AnswerModal-DEZ_YBHk.js → AnswerModal-UScGRb2q.js} +3 -3
- package/dist/{AttachmentItem-7BXCpSN5.js → AttachmentItem-xS69Skyw.js} +4 -4
- package/dist/{BaseUpload-BoI75J6e.js → BaseUpload-Py3haZt6.js} +2 -2
- package/dist/{BlockMedia-mDZEGad9.js → BlockMedia-CCDn5B7D.js} +1 -1
- package/dist/{CCallout--fWgvr0x.js → CCallout-CE7D3DsB.js} +1 -1
- package/dist/{CCurrencyDropdown-C0Fn_4IX.js → CCurrencyDropdown-5kM8TPrm.js} +3 -3
- package/dist/{CDropdownItem-D3_tCkkr.js → CDropdownItem-B4zcZcfz.js} +2 -2
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-CLNJpSL4.js → CFormField.vue_vue_type_script_setup_true_lang-BVW0KHv4.js} +2 -2
- package/dist/{CPhoneFormat-CcCMbWmZ.js → CPhoneFormat-BAuwHSBY.js} +1 -1
- package/dist/{CPhoneInput-BLbPiE9M.js → CPhoneInput-ePQsc2uK.js} +5 -5
- package/dist/{CPriceInput-D03-LElV.js → CPriceInput-Dy3LGjuS.js} +2 -2
- package/dist/{CSelect-D9paYPUW.js → CSelect-DwvTYW00.js} +1 -1
- package/dist/{CSkeleton-CJ7CFudo.js → CSkeleton-Bjauuvv8.js} +1 -1
- package/dist/{ClientAutocomplete-CAQHG8Tz.js → ClientAutocomplete-BvFTkFH_.js} +3 -3
- package/dist/{ClientModal-pu3oIp0w.js → ClientModal-Di6C8Aiw.js} +8 -8
- package/dist/{ColorPicker-CzVbcUB-.js → ColorPicker-CeSHH9Vf.js} +1 -1
- package/dist/{CompanyModal-Dy72AiPw.js → CompanyModal-CqsYsoHR.js} +7 -7
- package/dist/{ContentWrapper-DfeVimeu.js → ContentWrapper-DrZ8iTLe.js} +6 -6
- package/dist/{CoverBlockSettings-A3-vTq36.js → CoverBlockSettings-CydujWOk.js} +7 -7
- package/dist/{DocAnswer-Dr6gyQOP.js → DocAnswer-oum2ebB7.js} +2 -2
- package/dist/{DocDetails-Bj29y4bu.js → DocDetails-BIqp6i5p.js} +4 -4
- package/dist/{DocForm-DHL6Dvhw.js → DocForm-qgtnxIbM.js} +24 -24
- package/dist/{DocFormSend-Djnm9KoO.js → DocFormSend-gUP3oNeu.js} +2 -2
- package/dist/{DocLinks-UB3xT-cg.js → DocLinks-BMRihAoi.js} +2 -2
- package/dist/{DocModalBase-B04bul06.js → DocModalBase-Byhr0bKE.js} +1 -1
- package/dist/{DocPrint-CGGGhXZ1.js → DocPrint-Dfya0Cjx.js} +1 -1
- package/dist/{DocReceipt-DL3HQLkv.js → DocReceipt-DzueYc7A.js} +2 -2
- package/dist/{DocSendReminder-CxP97wDu.js → DocSendReminder-jbDbr3VZ.js} +1 -1
- package/dist/{DocTextEditor-BQhfVRlV.js → DocTextEditor-CwwEkRFq.js} +8 -8
- package/dist/{DocTimeline-BPR65V2I.js → DocTimeline-iyb4S9j1.js} +2 -2
- package/dist/{DocumentClient-CuTntNdl.js → DocumentClient-3XePSPGE.js} +5 -5
- package/dist/{DocumentLayout-D6PvFdQg.js → DocumentLayout-CpRX8ZRH.js} +5 -5
- package/dist/{DocumentLogotype-CLJ7RsVz.js → DocumentLogotype-YepQtsq5.js} +4 -4
- package/dist/{DocumentVoided-DB5xhLfP.js → DocumentVoided-Baipvjx-.js} +1 -1
- package/dist/{EmbedInput-CUl_MX4S.js → EmbedInput-DQB79FBj.js} +3 -3
- package/dist/{EmbedSettings-Cq8n5rI2.js → EmbedSettings-o3HUPHUL.js} +3 -3
- package/dist/{ErrorCallout-BUTqhYbf.js → ErrorCallout-j0efwRf-.js} +1 -1
- package/dist/{FilePreviewModal-D8fjLRUG.js → FilePreviewModal-CrYf10Ph.js} +2 -2
- package/dist/{Flag-CXb8yU4n.js → Flag-C9t9kUP7.js} +1 -1
- package/dist/{HeaderSettings-BT4TlFdj.js → HeaderSettings-DemdIiEB.js} +9 -9
- package/dist/{ImageSelectModal-DmlTZjg0.js → ImageSelectModal-BqjysMij.js} +3 -3
- package/dist/{ImageUploadWrapper-Bt0uozSl.js → ImageUploadWrapper-B-Ulkt_b.js} +2 -2
- package/dist/{Index-1aEI7_56.js → Index-1BTtSkUW.js} +2 -2
- package/dist/{Index-ChBaT3FD.js → Index-8aFe7Fn8.js} +1 -1
- package/dist/{Index-CVZ5OiyQ.js → Index-B2AIqEQc.js} +6 -6
- package/dist/{Index-DvwD4u45.js → Index-B345PtMG.js} +3 -3
- package/dist/{Index-PmOYHy6x.js → Index-BNzypv7d.js} +2 -2
- package/dist/{Index-BCYnuRFa.js → Index-BYAA_kFy.js} +2 -2
- package/dist/{Index-dJwXStk7.js → Index-BeKIkZw9.js} +8 -8
- package/dist/{Index-CG92HjZU.js → Index-BeiUm3jr.js} +4 -4
- package/dist/{Index-CDTYkmkj.js → Index-BgSplzXs.js} +2 -2
- package/dist/{Index-Cmg4QHZZ.js → Index-BjOx25ue.js} +5 -5
- package/dist/{Index-CQ6z4JCV.js → Index-BnhI3MQN.js} +1 -1
- package/dist/{Index-bX6uKwvE.js → Index-Buu-upak.js} +3 -3
- package/dist/{Index-BEsOBJdX.js → Index-C1Crethk.js} +2 -2
- package/dist/{Index-u6w_64Ql.js → Index-CDnVJo8h.js} +6 -6
- package/dist/{Index-AZN4wthQ.js → Index-CZTGosBz.js} +5 -5
- package/dist/{Index-BG30GlWz.js → Index-C_mYIiaH.js} +3 -3
- package/dist/{Index-ClYwg_Tc.js → Index-Ch7Vq5Qm.js} +1 -1
- package/dist/Index-CuslzuEz.js +4 -0
- package/dist/{Index-Cw8wthZj.js → Index-D7X3b6a0.js} +10 -10
- package/dist/{Index-ChpIICjV.js → Index-D7c_zTbq.js} +9 -9
- package/dist/{Index-Dlo49fYy.js → Index-DMNlO3w6.js} +4 -4
- package/dist/{Index-Cb8dJ-iH.js → Index-DN1QcYYy.js} +5 -5
- package/dist/{Index-BVOpa2cR.js → Index-DTrL4994.js} +4 -4
- package/dist/{Index-C0wIaLu-.js → Index-DVLzlvPr.js} +4 -4
- package/dist/{Index-DQdLSrV-.js → Index-DXnfSIAI.js} +7 -7
- package/dist/{Index-CY_zs2z7.js → Index-DripJuiD.js} +4 -4
- package/dist/{Index-BFa6BgHI.js → Index-DrxIo2da.js} +3 -3
- package/dist/{Index-CKUiWN7e.js → Index-DryrFYUb.js} +3 -3
- package/dist/{Index-CcEhh58c.js → Index-Dx2TEfS9.js} +5 -5
- package/dist/{Index-BkwtFP0b.js → Index-DxoNVHHo.js} +5 -5
- package/dist/{Index-39gM2cY7.js → Index-_YuGGSUD.js} +8 -8
- package/dist/{Index-DF5-4D3i.js → Index-_b6k81e_.js} +4 -4
- package/dist/{Index-CO6KkcjQ.js → Index-aehDK94P.js} +4 -4
- package/dist/{Index-55e7lOqG.js → Index-x65RQkcr.js} +214 -200
- package/dist/{Index.vue_vue_type_script_lang-BXjvuVbS.js → Index.vue_vue_type_script_lang-DIyU4Q6-.js} +2 -2
- package/dist/{InputToggleRow-B0yjG-bh.js → InputToggleRow-GvKd0A5B.js} +1 -1
- package/dist/{ManualPopover-ChYyDxj8.js → ManualPopover-Bm82yXzr.js} +1 -1
- package/dist/{MediaWrapper-KCTPL9oF.js → MediaWrapper-rIcHpRnO.js} +3 -3
- package/dist/{NotBindingText-D4nJwAyD.js → NotBindingText-D6UVvpyn.js} +2 -2
- package/dist/{PackageGroup-Be1gVj7w.js → PackageGroup-BkSlTPwU.js} +5 -5
- package/dist/{PdfTerms-1iI1qktG.js → PdfTerms-DFF7qKEk.js} +2 -2
- package/dist/{PdfViewer-bN0KukaH.js → PdfViewer-CmclV0M7.js} +2 -2
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-BrCKpyEU.js → PlainHtml.vue_vue_type_script_setup_true_lang-D78UcLmS.js} +1 -1
- package/dist/{PriceHeader-DWH-VRAW.js → PriceHeader-CXMHfmpW.js} +7 -7
- package/dist/{SearchApi-Bp95LCyA.js → SearchApi-D_OOJLcM.js} +1 -1
- package/dist/{SendForm-DLUa5otf.js → SendForm-ftEDuhfn.js} +8 -8
- package/dist/{Setup-DDaFShaB.js → Setup-8-8a3zoh.js} +1 -1
- package/dist/{SmartList-BRShdlA0.js → SmartList-2oAmo6a8.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-tLursG5q.js → Sortable.vue_vue_type_script_setup_true_lang-sGGmCVtk.js} +1 -1
- package/dist/{TermsSettings-C0cX4ZBC.js → TermsSettings-0INcW3bg.js} +5 -5
- package/dist/{ThemeColorRow-DoH8zauR.js → ThemeColorRow-DuSdO67W.js} +3 -3
- package/dist/{ToggleBinding-C_e-eDZT.js → ToggleBinding-Db9uIhf-.js} +4 -4
- package/dist/{UploadModal-F1bW2Egp.js → UploadModal-DJMWrMsy.js} +2 -2
- package/dist/{VideoPlayerInput-BrrB9oVk.js → VideoPlayerInput-B0Myfrw8.js} +4 -4
- package/dist/{VideoPlayerSettings-C8cR5e9r.js → VideoPlayerSettings-Dt81xwAD.js} +2 -2
- package/dist/{VideoSelectModal-CC_-Irlx.js → VideoSelectModal-NFyePPSf.js} +3 -3
- package/dist/{focusDrawerMixin-Byq1xBU3.js → focusDrawerMixin-BLe8Rj8E.js} +1 -1
- package/dist/{formDrawerState-DHUJo100.js → formDrawerState-ZdbgwOqD.js} +1 -1
- package/dist/{helpers-ONO_cfDb.js → helpers-CuDV_1UZ.js} +1 -1
- package/dist/{index-CoQoszZX.js → index-B5gWKBJf.js} +1 -1
- package/dist/{index-BDJXRtvs.js → index-B69h-wUl.js} +1 -1
- package/dist/{index-C9jrUexY.js → index-D3TdSXf3.js} +3 -3
- package/dist/{index-BtbGDfGz.js → index-DH6GPqAx.js} +1 -1
- package/dist/{index-B3GlU12d.js → index-DVtKtXBe.js} +1 -1
- package/dist/{index-ClF7kp8h.js → index-DvEX7etV.js} +8 -8
- package/dist/{index-D1ejEjwe.js → index-q_oCzGqR.js} +6 -6
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +7 -7
- package/dist/{main-ByMVnwS5.js → main-CNW7VwKW.js} +17 -15
- package/dist/{mapFormMixin-zL_x65Dt.js → mapFormMixin-BwoTM1UR.js} +2 -2
- package/dist/{omit-BqIpwnLe.js → omit-DNjM7b-D.js} +1 -1
- package/dist/{publicSenderState-D2O1iAac.js → publicSenderState-WRqhCaVK.js} +1 -1
- package/dist/{splitpanes-BNIUBGFa.js → splitpanes-1eHE_Z5P.js} +1 -1
- package/dist/{template-gCGJogwx.js → template-B0NNp0B9.js} +1 -1
- package/dist/{tippy.esm-D9T0otvu.js → tippy.esm-sII3vzGZ.js} +5 -5
- package/dist/{useTermsModal-5bV0m_Ha.js → useTermsModal-Bfx5QhHZ.js} +4 -4
- package/dist/{utils-DiG2v7vg.js → utils-B4O8LxH5.js} +1 -1
- package/dist/{validation-BQR3TvR7.js → validation-DSWFkl-3.js} +2 -2
- package/dist/widget.css +1 -1
- package/package.json +1 -1
- package/dist/Index-2vRzH0zx.js +0 -4
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { m as q } from "./mapFormMixin-
|
|
2
|
-
import { C as $e } from "./CCallout
|
|
3
|
-
import { C as Y, a as Z, w as Te } from "./CDropdownItem-
|
|
4
|
-
import { E as me } from "./ErrorCallout-
|
|
5
|
-
import { c5 as Ae, c6 as he, c7 as Ce, c8 as Pe, c9 as xe, ca as Ve, cb as Se, aK as De, _ as
|
|
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 J } 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-BwoTM1UR.js";
|
|
2
|
+
import { C as $e } from "./CCallout-CE7D3DsB.js";
|
|
3
|
+
import { C as Y, a as Z, w as Te } from "./CDropdownItem-B4zcZcfz.js";
|
|
4
|
+
import { E as me } from "./ErrorCallout-j0efwRf-.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 R, b as v, d, o as a, j as l, t as u, x as V, F as C, n as S, W as Q, e as b, f as p, s as H, m as z, a as E, g as O, w as g, R as B, ai as j, T as ne, an as G, cc as Re, cd as se, aF as Me, a8 as ae, bi as W, aD as Le, ce as Oe, bl as Ee, a4 as U, c as A, u as D, q as I, cf as Ue, cg as Be, c1 as ge, v as We, ch as ve, $ as ze, af as x, al as je, aH as F, V as Fe, a2 as oe, b_ as qe, ab as Ne, ci as He, ae as Ge, ag as Ke, c4 as Ye, cj as re, aE as Ze } from "./main-CNW7VwKW.js";
|
|
6
|
+
import { u as Je } from "./DocumentLayout-CpRX8ZRH.js";
|
|
7
|
+
import { T as Qe } from "./DocTextEditor-CwwEkRFq.js";
|
|
8
|
+
import { _ as Xe, m as et } from "./Sortable.vue_vue_type_script_setup_true_lang-sGGmCVtk.js";
|
|
9
|
+
import { o as fe } from "./omit-DNjM7b-D.js";
|
|
10
|
+
import { C as J } from "./CPriceInput-Dy3LGjuS.js";
|
|
11
|
+
import { u as ye } from "./index-B69h-wUl.js";
|
|
12
|
+
import { S as tt } from "./SearchApi-D_OOJLcM.js";
|
|
13
|
+
import { m as it } from "./index-B5gWKBJf.js";
|
|
14
|
+
import { _ as ke } from "./CFormField.vue_vue_type_script_setup_true_lang-BVW0KHv4.js";
|
|
15
15
|
const nt = [
|
|
16
16
|
"unit",
|
|
17
17
|
"m2",
|
|
@@ -51,26 +51,26 @@ function ot() {
|
|
|
51
51
|
if (de) return te;
|
|
52
52
|
de = 1;
|
|
53
53
|
var e = Ce(), t = Pe(), n = Ve(), o = xe(), s = at(), i = he(), f = 200;
|
|
54
|
-
function h(
|
|
55
|
-
var w = -1, $ = t, m =
|
|
56
|
-
if (
|
|
54
|
+
function h(k, c, y) {
|
|
55
|
+
var w = -1, $ = t, m = k.length, T = !0, r = [], P = r;
|
|
56
|
+
if (y)
|
|
57
57
|
T = !1, $ = n;
|
|
58
58
|
else if (m >= f) {
|
|
59
|
-
var _ =
|
|
59
|
+
var _ = c ? null : s(k);
|
|
60
60
|
if (_)
|
|
61
61
|
return i(_);
|
|
62
62
|
T = !1, $ = o, P = new e();
|
|
63
63
|
} else
|
|
64
|
-
P =
|
|
64
|
+
P = c ? [] : r;
|
|
65
65
|
e:
|
|
66
66
|
for (; ++w < m; ) {
|
|
67
|
-
var M =
|
|
68
|
-
if (M =
|
|
67
|
+
var M = k[w], L = c ? c(M) : M;
|
|
68
|
+
if (M = y || M !== 0 ? M : 0, T && L === L) {
|
|
69
69
|
for (var N = P.length; N--; )
|
|
70
70
|
if (P[N] === L)
|
|
71
71
|
continue e;
|
|
72
|
-
|
|
73
|
-
} else $(P, L,
|
|
72
|
+
c && P.push(L), r.push(M);
|
|
73
|
+
} else $(P, L, y) || (P !== r && P.push(L), r.push(M));
|
|
74
74
|
}
|
|
75
75
|
return r;
|
|
76
76
|
}
|
|
@@ -165,20 +165,20 @@ const ct = /* @__PURE__ */ De(lt), dt = {
|
|
|
165
165
|
}, vt = { class: "package-group-option__title" }, ft = ["innerHTML"];
|
|
166
166
|
function yt(e, t, n, o, s, i) {
|
|
167
167
|
const f = v("CIcon");
|
|
168
|
-
return a(),
|
|
168
|
+
return a(), d("div", ut, [
|
|
169
169
|
l("div", pt, u(e.$t("title")), 1),
|
|
170
170
|
l("div", null, [
|
|
171
171
|
l("div", {
|
|
172
172
|
class: V([{ "is-700-or-less": o.docWidth <= 700 }, "options"])
|
|
173
173
|
}, [
|
|
174
|
-
(a(!0),
|
|
175
|
-
key:
|
|
174
|
+
(a(!0), d(C, null, S(s.options, (h, k) => (a(), d("div", {
|
|
175
|
+
key: k,
|
|
176
176
|
style: Q({ backgroundColor: h.background }),
|
|
177
177
|
class: "package-group-option",
|
|
178
|
-
onClick: (
|
|
178
|
+
onClick: (c) => e.$emit("input", h.value)
|
|
179
179
|
}, [
|
|
180
180
|
l("div", ht, [
|
|
181
|
-
h.value === "single" ? (a(),
|
|
181
|
+
h.value === "single" ? (a(), d("div", gt, t[0] || (t[0] = [
|
|
182
182
|
l("div", { style: { flex: "1 1 auto" } }, [
|
|
183
183
|
l("div", {
|
|
184
184
|
style: { width: "40%", height: "10px", "margin-bottom": "8px" },
|
|
@@ -190,15 +190,15 @@ function yt(e, t, n, o, s, i) {
|
|
|
190
190
|
})
|
|
191
191
|
], -1)
|
|
192
192
|
]))) : b("", !0),
|
|
193
|
-
h.value === "radio" ? (a(),
|
|
194
|
-
key:
|
|
195
|
-
class: V([{ animate:
|
|
193
|
+
h.value === "radio" ? (a(), d(C, { key: 1 }, S(3, (c) => l("div", {
|
|
194
|
+
key: c,
|
|
195
|
+
class: V([{ animate: c === 2 }, "package-group-option__illustration-card"])
|
|
196
196
|
}, [
|
|
197
197
|
l("div", {
|
|
198
198
|
style: Q([
|
|
199
199
|
{ width: "8px", height: "8px", "border-radius": "50%", "box-shadow": `0 0 0 1px white,
|
|
200
200
|
0 0 0 2px hsl(0, 0%, 76%)`, "margin-right": "10px" },
|
|
201
|
-
|
|
201
|
+
c === 2 && {
|
|
202
202
|
boxShadow: `0 0 0 1px white, 0 0 0 2px ${h.background}`,
|
|
203
203
|
backgroundColor: h.background
|
|
204
204
|
}
|
|
@@ -215,15 +215,15 @@ function yt(e, t, n, o, s, i) {
|
|
|
215
215
|
})
|
|
216
216
|
], -1))
|
|
217
217
|
], 2)), 64)) : b("", !0),
|
|
218
|
-
h.value === "checkbox" ? (a(),
|
|
219
|
-
key:
|
|
220
|
-
class: V([{ animate:
|
|
218
|
+
h.value === "checkbox" ? (a(), d(C, { key: 2 }, S(3, (c) => l("div", {
|
|
219
|
+
key: c,
|
|
220
|
+
class: V([{ animate: c !== 3 }, "package-group-option__illustration-card"])
|
|
221
221
|
}, [
|
|
222
222
|
l("div", {
|
|
223
|
-
style: Q([{ height: "12px", width: "12px", "border-radius": "2px", "background-color": "hsl(0, 0%, 76%)", "margin-right": "10px", color: "white", padding: "1px", display: "inline-flex", "align-items": "center", "justify-content": "center" },
|
|
223
|
+
style: Q([{ height: "12px", width: "12px", "border-radius": "2px", "background-color": "hsl(0, 0%, 76%)", "margin-right": "10px", color: "white", padding: "1px", display: "inline-flex", "align-items": "center", "justify-content": "center" }, c !== 3 && { backgroundColor: h.background }])
|
|
224
224
|
}, [
|
|
225
225
|
p(f, {
|
|
226
|
-
type:
|
|
226
|
+
type: c !== 3 ? "check" : "empty",
|
|
227
227
|
"stroke-width": "5",
|
|
228
228
|
size: "8"
|
|
229
229
|
}, null, 8, ["type"])
|
|
@@ -252,7 +252,7 @@ function yt(e, t, n, o, s, i) {
|
|
|
252
252
|
])
|
|
253
253
|
]);
|
|
254
254
|
}
|
|
255
|
-
const kt = /* @__PURE__ */
|
|
255
|
+
const kt = /* @__PURE__ */ R(dt, [["render", yt], ["__scopeId", "data-v-9558e77f"]]), bt = {
|
|
256
256
|
name: "ArticleAutocomplete",
|
|
257
257
|
components: {
|
|
258
258
|
SearchApi: tt
|
|
@@ -386,19 +386,19 @@ const kt = /* @__PURE__ */ D(dt, [["render", yt], ["__scopeId", "data-v-9558e77f
|
|
|
386
386
|
class: "r-item-icon"
|
|
387
387
|
};
|
|
388
388
|
function Vt(e, t, n, o, s, i) {
|
|
389
|
-
const f = v("CInput"), h = v("SearchApi"),
|
|
390
|
-
return a(),
|
|
389
|
+
const f = v("CInput"), h = v("SearchApi"), k = v("CIcon");
|
|
390
|
+
return a(), d("div", B({
|
|
391
391
|
class: { "is-open": s.isOpen }
|
|
392
392
|
}, e.$attrs, {
|
|
393
393
|
style: { position: "relative" },
|
|
394
|
-
onKeydownPassive: t[0] || (t[0] = (...
|
|
394
|
+
onKeydownPassive: t[0] || (t[0] = (...c) => i.onKeydown && i.onKeydown(...c))
|
|
395
395
|
}), [
|
|
396
396
|
p(h, { "custom-search": {
|
|
397
397
|
article: !0,
|
|
398
398
|
extensionArticle: !0,
|
|
399
399
|
project: !1
|
|
400
400
|
} }, {
|
|
401
|
-
default: g(({ fetch:
|
|
401
|
+
default: g(({ fetch: c }) => [
|
|
402
402
|
p(f, B({
|
|
403
403
|
...e.$attrs,
|
|
404
404
|
...e.$props
|
|
@@ -408,7 +408,7 @@ function Vt(e, t, n, o, s, i) {
|
|
|
408
408
|
type: n.tag,
|
|
409
409
|
"auto-resize": !0,
|
|
410
410
|
class: "r-input",
|
|
411
|
-
"onUpdate:modelValue": (
|
|
411
|
+
"onUpdate:modelValue": (y) => i.search(c, y),
|
|
412
412
|
onFocus: i.onFocus,
|
|
413
413
|
onKeydown: [
|
|
414
414
|
j(i.hideResults, ["tab"]),
|
|
@@ -427,27 +427,27 @@ function Vt(e, t, n, o, s, i) {
|
|
|
427
427
|
]),
|
|
428
428
|
_: 3
|
|
429
429
|
}),
|
|
430
|
-
s.isOpen ? (a(),
|
|
431
|
-
(a(!0),
|
|
432
|
-
key:
|
|
433
|
-
class: V([{ active: s.selectedIndex ===
|
|
434
|
-
onClickCapture: G((w) => i.onSelect(
|
|
430
|
+
s.isOpen ? (a(), d("div", wt, [
|
|
431
|
+
(a(!0), d(C, null, S(s.searchResults, (c, y) => (a(), d("div", {
|
|
432
|
+
key: y,
|
|
433
|
+
class: V([{ active: s.selectedIndex === y }, "r-item"]),
|
|
434
|
+
onClickCapture: G((w) => i.onSelect(c), ["stop"])
|
|
435
435
|
}, [
|
|
436
|
-
l("div", _t, u(
|
|
436
|
+
l("div", _t, u(c.name), 1),
|
|
437
437
|
l("div", $t, [
|
|
438
|
-
|
|
439
|
-
p(
|
|
440
|
-
type:
|
|
438
|
+
c.externalReference && c.externalReference.service ? (a(), d("div", Tt, [
|
|
439
|
+
p(k, {
|
|
440
|
+
type: c.externalReference.service,
|
|
441
441
|
style: { color: "white" },
|
|
442
442
|
size: "14"
|
|
443
443
|
}, null, 8, ["type"])
|
|
444
444
|
])) : b("", !0),
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
445
|
+
c.article_no ? (a(), d("div", At, u(c.article_no), 1)) : b("", !0),
|
|
446
|
+
c.price ? (a(), d("div", Ct, u(i.priceFormat(c.price, { currency: c.currency })), 1)) : b("", !0),
|
|
447
|
+
c.vat ? (a(), d("div", Pt, u(e.$t("vat.sharedTitle").capitalize()) + " " + u(c.vat) + "% ", 1)) : b("", !0)
|
|
448
448
|
]),
|
|
449
|
-
s.selectedIndex ===
|
|
450
|
-
p(
|
|
449
|
+
s.selectedIndex === y ? (a(), d("div", xt, [
|
|
450
|
+
p(k, {
|
|
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__ */ R(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c"]]), pe = {
|
|
460
460
|
isDeductable: !1,
|
|
461
461
|
isRut: !1,
|
|
462
462
|
greenRot15: !1,
|
|
@@ -488,7 +488,7 @@ const be = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
488
488
|
packageId: t.packageId
|
|
489
489
|
});
|
|
490
490
|
if (o) {
|
|
491
|
-
const i = (
|
|
491
|
+
const i = (k = []) => k.reduce((c, y) => ({ ...c, [y]: !1 }), {}), h = Object.values(
|
|
492
492
|
fe({
|
|
493
493
|
rot: "isDeductable",
|
|
494
494
|
rut: "isRut",
|
|
@@ -497,7 +497,7 @@ const be = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
497
497
|
greenRot50: "greenRot50"
|
|
498
498
|
}, [o])
|
|
499
499
|
);
|
|
500
|
-
h.some((
|
|
500
|
+
h.some((k) => !!s[k]) && (s = { ...s, ...i(h) });
|
|
501
501
|
}
|
|
502
502
|
return s;
|
|
503
503
|
}, St = (e, t = null) => {
|
|
@@ -654,12 +654,12 @@ const be = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
654
654
|
discountType: h
|
|
655
655
|
} = this.article;
|
|
656
656
|
if (t !== "fixed" && e.push({ title: this.$t(`priceTypeShort.${t}`) }), Oe(this.article)) {
|
|
657
|
-
const
|
|
657
|
+
const k = Ee(this.article);
|
|
658
658
|
e.push({
|
|
659
|
-
title: this.$t(`_common:deduction.${
|
|
660
|
-
detailClass:
|
|
661
|
-
tooltip:
|
|
662
|
-
content: this.$t(`${
|
|
659
|
+
title: this.$t(`_common:deduction.${k}_percentage`),
|
|
660
|
+
detailClass: k === "greenRot20" && this.isAfterDeadline && "!decoration-2 !decoration-red-500 !line-through hover:!bg-red-200 hover:!decoration-red-500 hover:!text-red-600 hover:!border-red-100",
|
|
661
|
+
tooltip: k === "greenRot20" && this.isAfterDeadline && {
|
|
662
|
+
content: this.$t(`${k}_deprecated_tooltip`),
|
|
663
663
|
delay: { show: 300, hide: 0 }
|
|
664
664
|
}
|
|
665
665
|
});
|
|
@@ -705,8 +705,8 @@ const be = /* @__PURE__ */ D(bt, [["render", Vt], ["__scopeId", "data-v-3e66bf1c
|
|
|
705
705
|
}
|
|
706
706
|
}, Rt = { class: "top-row flex w-full" }, Mt = ["innerHTML"];
|
|
707
707
|
function Lt(e, t, n, o, s, i) {
|
|
708
|
-
const f = v("CIcon"), h = v("ArticleAutocomplete"),
|
|
709
|
-
return a(),
|
|
708
|
+
const f = v("CIcon"), h = v("ArticleAutocomplete"), k = v("CPriceInput"), c = v("ErrorCallout"), y = U("tooltip");
|
|
709
|
+
return a(), d("div", {
|
|
710
710
|
class: V([{
|
|
711
711
|
"has-details": i.details.length,
|
|
712
712
|
compact: n.width <= s.widthCompact,
|
|
@@ -737,7 +737,7 @@ function Lt(e, t, n, o, s, i) {
|
|
|
737
737
|
})
|
|
738
738
|
}), {
|
|
739
739
|
suffix: g(() => [
|
|
740
|
-
n.hideControls ? b("", !0) :
|
|
740
|
+
n.hideControls ? b("", !0) : D((a(), d("div", {
|
|
741
741
|
key: 0,
|
|
742
742
|
class: "article-button fade-in",
|
|
743
743
|
onClick: t[0] || (t[0] = (w) => e.$emit("open-modal"))
|
|
@@ -747,7 +747,7 @@ function Lt(e, t, n, o, s, i) {
|
|
|
747
747
|
size: "18"
|
|
748
748
|
})
|
|
749
749
|
])), [
|
|
750
|
-
[
|
|
750
|
+
[y, {
|
|
751
751
|
content: e.$t("openModalTooltip"),
|
|
752
752
|
delay: { show: 300, hide: 0 }
|
|
753
753
|
}]
|
|
@@ -755,7 +755,7 @@ function Lt(e, t, n, o, s, i) {
|
|
|
755
755
|
]),
|
|
756
756
|
_: 1
|
|
757
757
|
}, 16, ["model-value", "placeholder"]),
|
|
758
|
-
n.hidePriceInput ? b("", !0) : (a(), A(
|
|
758
|
+
n.hidePriceInput ? b("", !0) : (a(), A(k, B({
|
|
759
759
|
key: n.rootPriceType + i.article.priceType + i.article.unitType,
|
|
760
760
|
"model-value": i.article.totalAmount,
|
|
761
761
|
currency: i.article.currency,
|
|
@@ -774,7 +774,7 @@ function Lt(e, t, n, o, s, i) {
|
|
|
774
774
|
}),
|
|
775
775
|
onKeydown: t[7] || (t[7] = j((w) => e.$emit("add"), ["enter"]))
|
|
776
776
|
}), null, 16, ["model-value", "currency", "is-inc-vat", "vat", "placeholder", "price-type", "unit-label"])),
|
|
777
|
-
n.hideControls ? b("", !0) : (a(),
|
|
777
|
+
n.hideControls ? b("", !0) : (a(), d(C, { key: 1 }, [
|
|
778
778
|
p(f, {
|
|
779
779
|
class: "a-control-button close-button fade-in",
|
|
780
780
|
circle: "",
|
|
@@ -790,33 +790,33 @@ function Lt(e, t, n, o, s, i) {
|
|
|
790
790
|
}, null, 8, ["class"])
|
|
791
791
|
], 64))
|
|
792
792
|
]),
|
|
793
|
-
i.details.length ? (a(),
|
|
793
|
+
i.details.length ? (a(), d("div", {
|
|
794
794
|
key: 0,
|
|
795
795
|
class: "article-details-wrapper",
|
|
796
796
|
style: { cursor: "pointer" },
|
|
797
797
|
onClick: t[9] || (t[9] = (w) => e.$emit("open-modal"))
|
|
798
798
|
}, [
|
|
799
|
-
(a(!0),
|
|
799
|
+
(a(!0), d(C, null, S(i.details, ({ title: w, icon: $, subTitle: m = "", detailClass: T = "", tooltip: r }, P) => D((a(), d("div", {
|
|
800
800
|
key: P,
|
|
801
801
|
class: V([[T], "article-details-item"])
|
|
802
802
|
}, [
|
|
803
803
|
I(u(w) + " ", 1),
|
|
804
|
-
$ ? (a(),
|
|
804
|
+
$ ? (a(), d("div", {
|
|
805
805
|
key: 0,
|
|
806
806
|
innerHTML: $
|
|
807
807
|
}, null, 8, Mt)) : b("", !0),
|
|
808
808
|
I(" " + u(m), 1)
|
|
809
809
|
], 2)), [
|
|
810
|
-
[
|
|
810
|
+
[y, r]
|
|
811
811
|
])), 128))
|
|
812
812
|
])) : b("", !0),
|
|
813
|
-
o.v$.$invalid && o.v$.$dirty ? (a(), A(
|
|
813
|
+
o.v$.$invalid && o.v$.$dirty ? (a(), A(c, {
|
|
814
814
|
key: 1,
|
|
815
815
|
message: i.errorMessage(o.v$)
|
|
816
816
|
}, null, 8, ["message"])) : b("", !0)
|
|
817
817
|
], 34);
|
|
818
818
|
}
|
|
819
|
-
const Ot = /* @__PURE__ */
|
|
819
|
+
const Ot = /* @__PURE__ */ R(Dt, [["render", Lt], ["__scopeId", "data-v-495457b4"]]), Et = {
|
|
820
820
|
emits: ["go", "close"],
|
|
821
821
|
props: {
|
|
822
822
|
canForward: {
|
|
@@ -882,8 +882,8 @@ const Ot = /* @__PURE__ */ D(Dt, [["render", Lt], ["__scopeId", "data-v-495457b4
|
|
|
882
882
|
}, Ut = { class: "l-root" };
|
|
883
883
|
function Bt(e, t, n, o, s, i) {
|
|
884
884
|
const f = U("tooltip");
|
|
885
|
-
return a(),
|
|
886
|
-
|
|
885
|
+
return a(), d("div", Ut, [
|
|
886
|
+
D((a(), d("div", {
|
|
887
887
|
class: V([{ disabled: !n.canBackward }, "l-button"]),
|
|
888
888
|
style: { left: "calc(-4 * var(--rem))" },
|
|
889
889
|
onClick: t[0] || (t[0] = (h) => e.$emit("go", -1))
|
|
@@ -904,7 +904,7 @@ function Bt(e, t, n, o, s, i) {
|
|
|
904
904
|
]), 2)), [
|
|
905
905
|
[f, i.getNavTooltip(-1)]
|
|
906
906
|
]),
|
|
907
|
-
|
|
907
|
+
D((a(), d("div", {
|
|
908
908
|
class: V([{ disabled: !n.canForward }, "l-button"]),
|
|
909
909
|
style: { right: "calc(-4 * var(--rem))" },
|
|
910
910
|
onClick: t[1] || (t[1] = (h) => e.$emit("go", 1))
|
|
@@ -927,7 +927,7 @@ function Bt(e, t, n, o, s, i) {
|
|
|
927
927
|
])
|
|
928
928
|
]);
|
|
929
929
|
}
|
|
930
|
-
const Wt = /* @__PURE__ */
|
|
930
|
+
const Wt = /* @__PURE__ */ R(Et, [["render", Bt], ["__scopeId", "data-v-f685b502"]]), zt = {
|
|
931
931
|
name: "ArticleUnitEditModal",
|
|
932
932
|
i18nOptions: {
|
|
933
933
|
namespaces: "ArticleUnitEditModal",
|
|
@@ -1046,8 +1046,8 @@ const Wt = /* @__PURE__ */ D(Et, [["render", Bt], ["__scopeId", "data-v-f685b502
|
|
|
1046
1046
|
class: "unit-modal-list-empty"
|
|
1047
1047
|
}, Zt = ["onMouseoverPassive", "onClick"], Jt = { class: "drag-handle" }, Qt = { style: { "padding-left": "0.5em" } }, Xt = { class: "unittype-buttons" };
|
|
1048
1048
|
function ei(e, t, n, o, s, i) {
|
|
1049
|
-
const f = v("CIcon"), h = v("CButton"),
|
|
1050
|
-
return a(),
|
|
1049
|
+
const f = v("CIcon"), h = v("CButton"), k = v("CInput"), c = v("CField"), y = v("DragItem"), w = v("DragList"), $ = U("tooltip");
|
|
1050
|
+
return a(), d("div", {
|
|
1051
1051
|
class: "modal-overlay font-inter",
|
|
1052
1052
|
onClickPassive: t[3] || (t[3] = G((...m) => i.close && i.close(...m), ["self"]))
|
|
1053
1053
|
}, [
|
|
@@ -1055,7 +1055,7 @@ function ei(e, t, n, o, s, i) {
|
|
|
1055
1055
|
l("div", Ft, [
|
|
1056
1056
|
l("div", qt, [
|
|
1057
1057
|
l("span", null, u(e.$t("_common:add", { thing: e.$t("_common:unitType.unitType_other") })), 1),
|
|
1058
|
-
|
|
1058
|
+
D(p(f, {
|
|
1059
1059
|
type: "info",
|
|
1060
1060
|
size: "15",
|
|
1061
1061
|
class: "text-gray-400",
|
|
@@ -1064,12 +1064,12 @@ function ei(e, t, n, o, s, i) {
|
|
|
1064
1064
|
[$, { content: e.$t("tooltip"), html: !0 }]
|
|
1065
1065
|
])
|
|
1066
1066
|
]),
|
|
1067
|
-
p(
|
|
1067
|
+
p(c, {
|
|
1068
1068
|
grouped: "",
|
|
1069
1069
|
style: { margin: "0" }
|
|
1070
1070
|
}, {
|
|
1071
1071
|
default: g(() => [
|
|
1072
|
-
p(
|
|
1072
|
+
p(k, {
|
|
1073
1073
|
ref: "unitInput",
|
|
1074
1074
|
modelValue: s.selectedValue.value,
|
|
1075
1075
|
"onUpdate:modelValue": t[0] || (t[0] = (m) => s.selectedValue.value = m),
|
|
@@ -1114,7 +1114,7 @@ function ei(e, t, n, o, s, i) {
|
|
|
1114
1114
|
l("div", Ht, [
|
|
1115
1115
|
l("div", Gt, u(e.$t("_common:unit_other").capitalize()), 1),
|
|
1116
1116
|
l("div", Kt, [
|
|
1117
|
-
i.unitItems.length ? b("", !0) : (a(),
|
|
1117
|
+
i.unitItems.length ? b("", !0) : (a(), d("div", Yt, u(e.$t("_common:add", { thing: e.$t("_common:unit_other") })), 1)),
|
|
1118
1118
|
p(w, {
|
|
1119
1119
|
"drop-placeholder": { className: "drag-drop-placeholder" },
|
|
1120
1120
|
"drag-class": "is-dragged",
|
|
@@ -1123,7 +1123,7 @@ function ei(e, t, n, o, s, i) {
|
|
|
1123
1123
|
onDrop: i.onDrop
|
|
1124
1124
|
}, {
|
|
1125
1125
|
default: g(() => [
|
|
1126
|
-
(a(!0),
|
|
1126
|
+
(a(!0), d(C, null, S(i.unitItems, (m, T) => (a(), A(y, {
|
|
1127
1127
|
key: m.id
|
|
1128
1128
|
}, {
|
|
1129
1129
|
default: g(() => [
|
|
@@ -1141,7 +1141,7 @@ function ei(e, t, n, o, s, i) {
|
|
|
1141
1141
|
})
|
|
1142
1142
|
]),
|
|
1143
1143
|
l("div", Qt, u(m.label), 1),
|
|
1144
|
-
|
|
1144
|
+
D(l("span", { class: "delete-confirm" }, u(e.$t("_common:remove")) + "? ", 513), [
|
|
1145
1145
|
[We, s.removeConfirmIndex === T]
|
|
1146
1146
|
]),
|
|
1147
1147
|
l("div", Xt, [
|
|
@@ -1175,7 +1175,7 @@ function ei(e, t, n, o, s, i) {
|
|
|
1175
1175
|
])
|
|
1176
1176
|
], 32);
|
|
1177
1177
|
}
|
|
1178
|
-
const ti = /* @__PURE__ */
|
|
1178
|
+
const ti = /* @__PURE__ */ R(zt, [["render", ei], ["__scopeId", "data-v-439571ca"]]), ii = {
|
|
1179
1179
|
name: "ArticleUnitSelect",
|
|
1180
1180
|
components: {
|
|
1181
1181
|
CDropdown: Z,
|
|
@@ -1227,15 +1227,15 @@ const ti = /* @__PURE__ */ D(zt, [["render", ei], ["__scopeId", "data-v-439571ca
|
|
|
1227
1227
|
}
|
|
1228
1228
|
};
|
|
1229
1229
|
function ni(e, t, n, o, s, i) {
|
|
1230
|
-
const f = v("CButton"), h = v("CDropdownItem"),
|
|
1231
|
-
return a(), A(
|
|
1230
|
+
const f = v("CButton"), h = v("CDropdownItem"), k = v("CDropdown");
|
|
1231
|
+
return a(), A(k, B({
|
|
1232
1232
|
position: "is-bottom-left",
|
|
1233
1233
|
maxHeight: "240px",
|
|
1234
1234
|
...e.$attrs
|
|
1235
1235
|
}, {
|
|
1236
1236
|
"model-value": n.modelValue,
|
|
1237
1237
|
scrollable: "",
|
|
1238
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1238
|
+
"onUpdate:modelValue": t[0] || (t[0] = (c) => e.$emit("update:modelValue", c))
|
|
1239
1239
|
}), {
|
|
1240
1240
|
trigger: g(() => [
|
|
1241
1241
|
ne(e.$slots, "default", {}, () => [
|
|
@@ -1266,12 +1266,12 @@ function ni(e, t, n, o, s, i) {
|
|
|
1266
1266
|
}, 8, ["onClick"]))
|
|
1267
1267
|
]),
|
|
1268
1268
|
default: g(() => [
|
|
1269
|
-
(a(!0),
|
|
1270
|
-
key: `${
|
|
1271
|
-
value:
|
|
1269
|
+
(a(!0), d(C, null, S(i.unitItems, (c, y) => (a(), A(h, {
|
|
1270
|
+
key: `${c}-${y}`,
|
|
1271
|
+
value: c
|
|
1272
1272
|
}, {
|
|
1273
1273
|
default: g(() => [
|
|
1274
|
-
I(u(i.articleUnitLabel(
|
|
1274
|
+
I(u(i.articleUnitLabel(c)), 1)
|
|
1275
1275
|
]),
|
|
1276
1276
|
_: 2
|
|
1277
1277
|
}, 1032, ["value"]))), 128))
|
|
@@ -1279,7 +1279,7 @@ function ni(e, t, n, o, s, i) {
|
|
|
1279
1279
|
_: 3
|
|
1280
1280
|
}, 16, ["model-value"]);
|
|
1281
1281
|
}
|
|
1282
|
-
const si = /* @__PURE__ */
|
|
1282
|
+
const si = /* @__PURE__ */ R(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe"]]), ai = {
|
|
1283
1283
|
name: "ArticleModal",
|
|
1284
1284
|
i18nOptions: {
|
|
1285
1285
|
namespaces: "ArticleModal",
|
|
@@ -1594,8 +1594,8 @@ const si = /* @__PURE__ */ D(ii, [["render", ni], ["__scopeId", "data-v-3d10b9fe
|
|
|
1594
1594
|
style: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "margin-top": "1em" }
|
|
1595
1595
|
}, vi = ["onClick"], fi = { style: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "margin-top": "1em" } }, yi = ["onClick"], ki = { class: "flex space-x-4 overflow-hidden p-4 md:p-9" };
|
|
1596
1596
|
function bi(e, t, n, o, s, i) {
|
|
1597
|
-
const f = v("ListModalButtons"), h = v("CIcon"),
|
|
1598
|
-
return a(),
|
|
1597
|
+
const f = v("ListModalButtons"), h = v("CIcon"), k = v("ArticleAutocomplete"), c = v("CField"), y = v("CInput"), w = v("CButton"), $ = v("ArticleUnitSelect"), m = v("CPriceInput"), T = U("tooltip");
|
|
1598
|
+
return a(), d("div", {
|
|
1599
1599
|
class: V([{
|
|
1600
1600
|
"full-screen": e.mq === "sm",
|
|
1601
1601
|
"modal-overlay": !0
|
|
@@ -1609,7 +1609,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
1609
1609
|
"can-backward": !!n.articleList[n.index - 1],
|
|
1610
1610
|
onClose: i.close,
|
|
1611
1611
|
onGo: t[0] || (t[0] = (r) => i.onGo(r))
|
|
1612
|
-
}, null, 8, ["can-forward", "can-backward", "onClose"])) : (a(),
|
|
1612
|
+
}, null, 8, ["can-forward", "can-backward", "onClose"])) : (a(), d("div", {
|
|
1613
1613
|
key: 1,
|
|
1614
1614
|
class: "modal-close",
|
|
1615
1615
|
onClick: t[1] || (t[1] = (...r) => i.close && i.close(...r))
|
|
@@ -1618,11 +1618,11 @@ function bi(e, t, n, o, s, i) {
|
|
|
1618
1618
|
])),
|
|
1619
1619
|
p(je, { name: "slide" }, {
|
|
1620
1620
|
default: g(() => [
|
|
1621
|
-
(a(),
|
|
1621
|
+
(a(), d("div", {
|
|
1622
1622
|
key: i.article._uniqueId,
|
|
1623
1623
|
class: "modal-main"
|
|
1624
1624
|
}, [
|
|
1625
|
-
p(
|
|
1625
|
+
p(c, {
|
|
1626
1626
|
validator: o.v$.article.name,
|
|
1627
1627
|
messages: { maxLength: e.$t("validations.name.maxLength") },
|
|
1628
1628
|
label: e.$t("name").capitalize(),
|
|
@@ -1631,7 +1631,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
1631
1631
|
class: "label-selector"
|
|
1632
1632
|
}, {
|
|
1633
1633
|
default: g(() => [
|
|
1634
|
-
p(
|
|
1634
|
+
p(k, {
|
|
1635
1635
|
ref: "nameInput",
|
|
1636
1636
|
"model-value": i.article.name,
|
|
1637
1637
|
autosize: !0,
|
|
@@ -1654,14 +1654,14 @@ function bi(e, t, n, o, s, i) {
|
|
|
1654
1654
|
_: 1
|
|
1655
1655
|
}, 8, ["validator", "messages", "label"]),
|
|
1656
1656
|
l("div", ri, [
|
|
1657
|
-
p(
|
|
1657
|
+
p(c, {
|
|
1658
1658
|
label: e.$t("quantity").capitalize(),
|
|
1659
1659
|
"label-position": "inside",
|
|
1660
1660
|
class: "label-selector form-control form-control-left flex-grow",
|
|
1661
1661
|
style: { "margin-bottom": "0" }
|
|
1662
1662
|
}, {
|
|
1663
1663
|
default: g(() => [
|
|
1664
|
-
p(
|
|
1664
|
+
p(y, {
|
|
1665
1665
|
"model-value": i.article.quantity,
|
|
1666
1666
|
disabled: ["openAcc", "markup"].includes(i.article.priceType),
|
|
1667
1667
|
placeholder: "",
|
|
@@ -1694,9 +1694,9 @@ function bi(e, t, n, o, s, i) {
|
|
|
1694
1694
|
_: 1
|
|
1695
1695
|
}, 8, ["model-value", "is-public-form"])
|
|
1696
1696
|
]),
|
|
1697
|
-
n.hidePriceInput ? b("", !0) : (a(),
|
|
1697
|
+
n.hidePriceInput ? b("", !0) : (a(), d(C, { key: 0 }, [
|
|
1698
1698
|
l("div", li, [
|
|
1699
|
-
p(
|
|
1699
|
+
p(c, {
|
|
1700
1700
|
label: e.$t("price.price").capitalize(),
|
|
1701
1701
|
"label-position": "inside",
|
|
1702
1702
|
class: "label-selector form-control form-control-left flex-1",
|
|
@@ -1720,15 +1720,15 @@ function bi(e, t, n, o, s, i) {
|
|
|
1720
1720
|
]),
|
|
1721
1721
|
_: 1
|
|
1722
1722
|
}, 8, ["label"]),
|
|
1723
|
-
i.useVat ? (a(),
|
|
1723
|
+
i.useVat ? (a(), d("div", {
|
|
1724
1724
|
key: 0,
|
|
1725
1725
|
class: "select-css form-control form-control-right",
|
|
1726
1726
|
style: { width: "8em" },
|
|
1727
1727
|
onClick: t[9] || (t[9] = (r) => s.setPricesIncVat = !s.setPricesIncVat)
|
|
1728
1728
|
}, u(n._document.$t(`vat.${s.setPricesIncVat ? "incVat" : "exVat"}`)), 1)) : b("", !0)
|
|
1729
1729
|
]),
|
|
1730
|
-
s.showDiscountInput ? (a(),
|
|
1731
|
-
p(
|
|
1730
|
+
s.showDiscountInput ? (a(), d("div", ci, [
|
|
1731
|
+
p(c, {
|
|
1732
1732
|
label: e.$t("discount").capitalize(),
|
|
1733
1733
|
"label-position": "inside",
|
|
1734
1734
|
class: "label-selector form-control form-control-left flex-grow",
|
|
@@ -1775,19 +1775,19 @@ function bi(e, t, n, o, s, i) {
|
|
|
1775
1775
|
])) : b("", !0)
|
|
1776
1776
|
], 64)),
|
|
1777
1777
|
l("div", di, [
|
|
1778
|
-
i.useVat ? (a(),
|
|
1779
|
-
e.feature("regionSE") && Number.isInteger(i.article.vat) ? (a(),
|
|
1778
|
+
i.useVat ? (a(), d(C, { key: 0 }, [
|
|
1779
|
+
e.feature("regionSE") && Number.isInteger(i.article.vat) ? (a(), d("select", {
|
|
1780
1780
|
key: 0,
|
|
1781
1781
|
value: i.article.vat,
|
|
1782
1782
|
class: "select-css tag-item no-chevron",
|
|
1783
1783
|
style: { display: "inline", "min-height": "initial", background: "hsl(0, 0%, 94%)", "border-color": "hsl(0, 0%, 94%)", color: "hsl(0, 0%, 30%)" },
|
|
1784
1784
|
onInput: t[12] || (t[12] = (r) => i.updateArticle(Number.parseFloat(r.target.value), "vat"))
|
|
1785
1785
|
}, [
|
|
1786
|
-
(a(!0),
|
|
1786
|
+
(a(!0), d(C, null, S(s.vatOptions, ({ translation: r, value: P }, _) => (a(), d("option", {
|
|
1787
1787
|
key: _,
|
|
1788
1788
|
value: P
|
|
1789
1789
|
}, u(e.$t(`vat.${i.vatType}`)) + " " + u(r), 9, pi))), 128))
|
|
1790
|
-
], 40, ui)) : (a(),
|
|
1790
|
+
], 40, ui)) : (a(), d("span", mi, [
|
|
1791
1791
|
I(u(n._document.$t("vat").capitalize()) + " ", 1),
|
|
1792
1792
|
l("input", {
|
|
1793
1793
|
value: i.article.vat || 0,
|
|
@@ -1799,8 +1799,8 @@ function bi(e, t, n, o, s, i) {
|
|
|
1799
1799
|
t[16] || (t[16] = I(" % "))
|
|
1800
1800
|
]))
|
|
1801
1801
|
], 64)) : b("", !0),
|
|
1802
|
-
i.priceTypeOptions.length ? (a(),
|
|
1803
|
-
(a(!0),
|
|
1802
|
+
i.priceTypeOptions.length ? (a(), d("div", gi, [
|
|
1803
|
+
(a(!0), d(C, null, S(i.priceTypeOptions, ({ label: r, value: P, onClick: _, tooltip: M }, L) => D((a(), d("div", {
|
|
1804
1804
|
key: r + L,
|
|
1805
1805
|
class: V([{ active: P }, "tag-item"]),
|
|
1806
1806
|
onClick: _
|
|
@@ -1814,7 +1814,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
1814
1814
|
])), 128))
|
|
1815
1815
|
])) : b("", !0),
|
|
1816
1816
|
l("div", fi, [
|
|
1817
|
-
(a(!0),
|
|
1817
|
+
(a(!0), d(C, null, S(i.checkboxItems, ({ label: r, value: P, onClick: _, tooltip: M, style: L }, N) => D((a(), d("div", {
|
|
1818
1818
|
key: r + N,
|
|
1819
1819
|
class: V([[{ active: P }, L], "tag-item"]),
|
|
1820
1820
|
onClick: _
|
|
@@ -1833,7 +1833,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
1833
1833
|
_: 1
|
|
1834
1834
|
}),
|
|
1835
1835
|
l("div", ki, [
|
|
1836
|
-
|
|
1836
|
+
D((a(), A(w, {
|
|
1837
1837
|
type: "primary",
|
|
1838
1838
|
tabindex: "0",
|
|
1839
1839
|
size: "large",
|
|
@@ -1885,7 +1885,7 @@ function bi(e, t, n, o, s, i) {
|
|
|
1885
1885
|
])
|
|
1886
1886
|
], 34);
|
|
1887
1887
|
}
|
|
1888
|
-
const wi = /* @__PURE__ */
|
|
1888
|
+
const wi = /* @__PURE__ */ R(ai, [["render", bi], ["__scopeId", "data-v-e5bbc8bd"]]), Ii = {
|
|
1889
1889
|
i18nOptions: {
|
|
1890
1890
|
name: "ArticleListEdit",
|
|
1891
1891
|
namespaces: "ArticleListEdit",
|
|
@@ -2092,12 +2092,12 @@ const wi = /* @__PURE__ */ D(ai, [["render", bi], ["__scopeId", "data-v-e5bbc8bd
|
|
|
2092
2092
|
class: "label-text"
|
|
2093
2093
|
};
|
|
2094
2094
|
function Ti(e, t, n, o, s, i) {
|
|
2095
|
-
const f = v("Article"), h = v("Sortable"),
|
|
2096
|
-
return a(),
|
|
2097
|
-
i.showVatToggle ? (a(),
|
|
2095
|
+
const f = v("Article"), h = v("Sortable"), k = v("ArticleModal"), c = v("Portal");
|
|
2096
|
+
return a(), d("div", _i, [
|
|
2097
|
+
i.showVatToggle ? (a(), d("div", $i, [
|
|
2098
2098
|
I(u(e.$t("vatOption.label")) + " ", 1),
|
|
2099
2099
|
l("span", {
|
|
2100
|
-
onClick: t[0] || (t[0] = (
|
|
2100
|
+
onClick: t[0] || (t[0] = (y) => i.changeVat())
|
|
2101
2101
|
}, u(n._document.$t(`vat.${i.setPricesIncVat ? "incVat" : "exVat"}`)), 1)
|
|
2102
2102
|
])) : b("", !0),
|
|
2103
2103
|
p(h, {
|
|
@@ -2115,10 +2115,10 @@ function Ti(e, t, n, o, s, i) {
|
|
|
2115
2115
|
list: n.articles,
|
|
2116
2116
|
style: { "min-height": "calc(3 * var(--rem))" }
|
|
2117
2117
|
}, {
|
|
2118
|
-
item: g(({ item:
|
|
2118
|
+
item: g(({ item: y, index: w }) => [
|
|
2119
2119
|
p(f, {
|
|
2120
2120
|
ref: "articleItem",
|
|
2121
|
-
value:
|
|
2121
|
+
value: y,
|
|
2122
2122
|
width: o.articlesWidth,
|
|
2123
2123
|
"hide-price-input": e.hidePriceInput,
|
|
2124
2124
|
"hide-price-on-new": e.hidePriceOnNew,
|
|
@@ -2134,14 +2134,14 @@ function Ti(e, t, n, o, s, i) {
|
|
|
2134
2134
|
onOpenModal: ($) => i.openModal(w, $),
|
|
2135
2135
|
onAdd: ($) => w === i.articlesWithTotal.length - 1 ? e.$emit("add") : null,
|
|
2136
2136
|
onSelect: ($) => w === i.articlesWithTotal.length - 1 ? e.$emit("add") : null,
|
|
2137
|
-
onEsc: ($) => i.onEsc(w,
|
|
2137
|
+
onEsc: ($) => i.onEsc(w, y)
|
|
2138
2138
|
}, null, 8, ["value", "width", "hide-price-input", "hide-price-on-new", "is-inc-vat", "hide-controls", "root-price-type", "active-house-work-type", "onInput", "onRemove", "onOpenModal", "onAdd", "onSelect", "onEsc"])
|
|
2139
2139
|
]),
|
|
2140
2140
|
_: 1
|
|
2141
2141
|
}, 8, ["options", "list"]),
|
|
2142
|
-
p(
|
|
2142
|
+
p(c, { to: "modal" }, {
|
|
2143
2143
|
default: g(() => [
|
|
2144
|
-
s.showModal && i.articlesWithTotal[s.selectedIndex] ? (a(), A(
|
|
2144
|
+
s.showModal && i.articlesWithTotal[s.selectedIndex] ? (a(), A(k, {
|
|
2145
2145
|
key: 0,
|
|
2146
2146
|
ref: "articleModal",
|
|
2147
2147
|
_document: n._document,
|
|
@@ -2154,18 +2154,18 @@ function Ti(e, t, n, o, s, i) {
|
|
|
2154
2154
|
currency: i.currency,
|
|
2155
2155
|
"active-house-work-type": n.activeHouseWorkType,
|
|
2156
2156
|
"view-settings": e.viewSettings,
|
|
2157
|
-
"onUpdate:currency": t[3] || (t[3] = (
|
|
2158
|
-
onInput: t[4] || (t[4] = (
|
|
2159
|
-
onAdd: t[5] || (t[5] = (
|
|
2157
|
+
"onUpdate:currency": t[3] || (t[3] = (y) => e.$emit("update:currency", y)),
|
|
2158
|
+
onInput: t[4] || (t[4] = (y) => i.updateArticleObject(s.selectedIndex, y)),
|
|
2159
|
+
onAdd: t[5] || (t[5] = (y) => e.$emit("add", y)),
|
|
2160
2160
|
onOpenModal: i.openModal,
|
|
2161
|
-
onClose: t[6] || (t[6] = (
|
|
2161
|
+
onClose: t[6] || (t[6] = (y) => s.showModal = !1)
|
|
2162
2162
|
}, null, 8, ["_document", "index", "article-list", "hide-price-input", "hide-price-on-new", "is-inc-vat", "root-price-type", "currency", "active-house-work-type", "view-settings", "onOpenModal"])) : b("", !0)
|
|
2163
2163
|
]),
|
|
2164
2164
|
_: 1
|
|
2165
2165
|
})
|
|
2166
2166
|
], 512);
|
|
2167
2167
|
}
|
|
2168
|
-
const Ai = /* @__PURE__ */
|
|
2168
|
+
const Ai = /* @__PURE__ */ R(Ii, [["render", Ti], ["__scopeId", "data-v-8ab60481"]]), Ci = {
|
|
2169
2169
|
name: "MaxTotalInput",
|
|
2170
2170
|
i18nOptions: {
|
|
2171
2171
|
namespaces: "MaxTotalInput",
|
|
@@ -2219,7 +2219,7 @@ const Ai = /* @__PURE__ */ D(Ii, [["render", Ti], ["__scopeId", "data-v-8ab60481
|
|
|
2219
2219
|
}, Pi = { class: "flex w-full justify-end" };
|
|
2220
2220
|
function xi(e, t, n, o, s, i) {
|
|
2221
2221
|
const f = v("CPriceInput");
|
|
2222
|
-
return a(),
|
|
2222
|
+
return a(), d("div", Pi, [
|
|
2223
2223
|
p(f, {
|
|
2224
2224
|
"model-value": n.modelValue,
|
|
2225
2225
|
currency: n.currency,
|
|
@@ -2244,7 +2244,7 @@ function xi(e, t, n, o, s, i) {
|
|
|
2244
2244
|
}, 8, ["model-value", "currency", "is-inc-vat", "placeholder"])
|
|
2245
2245
|
]);
|
|
2246
2246
|
}
|
|
2247
|
-
const Vi = /* @__PURE__ */
|
|
2247
|
+
const Vi = /* @__PURE__ */ R(Ci, [["render", xi]]), Si = {
|
|
2248
2248
|
components: {
|
|
2249
2249
|
CDropdown: Z,
|
|
2250
2250
|
CDropdownItem: Y
|
|
@@ -2263,9 +2263,9 @@ const Vi = /* @__PURE__ */ D(Ci, [["render", xi]]), Si = {
|
|
|
2263
2263
|
}
|
|
2264
2264
|
}, Di = { class: "flex justify-end" };
|
|
2265
2265
|
function Ri(e, t, n, o, s, i) {
|
|
2266
|
-
const f = v("CButton"), h = v("CDropdownItem"),
|
|
2267
|
-
return a(),
|
|
2268
|
-
p(
|
|
2266
|
+
const f = v("CButton"), h = v("CDropdownItem"), k = v("CDropdown");
|
|
2267
|
+
return a(), d("div", Di, [
|
|
2268
|
+
p(k, { "model-value": n.modelValue }, {
|
|
2269
2269
|
trigger: g(() => [
|
|
2270
2270
|
p(f, { class: "price-type-button" }, {
|
|
2271
2271
|
default: g(() => [
|
|
@@ -2276,14 +2276,14 @@ function Ri(e, t, n, o, s, i) {
|
|
|
2276
2276
|
})
|
|
2277
2277
|
]),
|
|
2278
2278
|
default: g(() => [
|
|
2279
|
-
(a(!0),
|
|
2280
|
-
key:
|
|
2281
|
-
value:
|
|
2279
|
+
(a(!0), d(C, null, S(s.priceTypeOptions, (c) => (a(), A(h, {
|
|
2280
|
+
key: c,
|
|
2281
|
+
value: c,
|
|
2282
2282
|
class: "text-right",
|
|
2283
|
-
onClick: (
|
|
2283
|
+
onClick: (y) => e.$emit("update:modelValue", c)
|
|
2284
2284
|
}, {
|
|
2285
2285
|
default: g(() => [
|
|
2286
|
-
I(u(e.$t(`price.${
|
|
2286
|
+
I(u(e.$t(`price.${c}`)), 1)
|
|
2287
2287
|
]),
|
|
2288
2288
|
_: 2
|
|
2289
2289
|
}, 1032, ["value", "onClick"]))), 128))
|
|
@@ -2292,7 +2292,7 @@ function Ri(e, t, n, o, s, i) {
|
|
|
2292
2292
|
}, 8, ["model-value"])
|
|
2293
2293
|
]);
|
|
2294
2294
|
}
|
|
2295
|
-
const Mi = /* @__PURE__ */
|
|
2295
|
+
const Mi = /* @__PURE__ */ R(Si, [["render", Ri], ["__scopeId", "data-v-26c5da6c"]]), Li = {
|
|
2296
2296
|
name: "EditDeduction",
|
|
2297
2297
|
components: {
|
|
2298
2298
|
CPriceInput: J
|
|
@@ -2349,9 +2349,9 @@ const Mi = /* @__PURE__ */ D(Si, [["render", Ri], ["__scopeId", "data-v-26c5da6c
|
|
|
2349
2349
|
class: "css-i6dzq1"
|
|
2350
2350
|
};
|
|
2351
2351
|
function qi(e, t, n, o, s, i) {
|
|
2352
|
-
const f = v("CPriceInput"), h = v("CButton"),
|
|
2353
|
-
return a(),
|
|
2354
|
-
p(
|
|
2352
|
+
const f = v("CPriceInput"), h = v("CButton"), k = v("modal"), c = v("portal");
|
|
2353
|
+
return a(), d("div", null, [
|
|
2354
|
+
p(k, B({
|
|
2355
2355
|
adaptive: !0,
|
|
2356
2356
|
height: "auto",
|
|
2357
2357
|
width: "90%",
|
|
@@ -2364,7 +2364,7 @@ function qi(e, t, n, o, s, i) {
|
|
|
2364
2364
|
l("div", Ui, [
|
|
2365
2365
|
p(f, {
|
|
2366
2366
|
modelValue: s.internalValue,
|
|
2367
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2367
|
+
"onUpdate:modelValue": t[0] || (t[0] = (y) => s.internalValue = y),
|
|
2368
2368
|
modelModifiers: { number: !0 },
|
|
2369
2369
|
currency: "SEK",
|
|
2370
2370
|
placeholder: e.$t("enterThing", { thing: e.$t("deduction.deduction") }),
|
|
@@ -2381,7 +2381,7 @@ function qi(e, t, n, o, s, i) {
|
|
|
2381
2381
|
l("div", Bi, u(e.$t("standardDeduction")), 1),
|
|
2382
2382
|
l("div", Wi, u(e.$t("standardDeductionMessage")), 1),
|
|
2383
2383
|
l("div", zi, [
|
|
2384
|
-
(a(),
|
|
2384
|
+
(a(), d(C, null, S([
|
|
2385
2385
|
{ v: 0.1455, l: "14.55%" },
|
|
2386
2386
|
{ v: 0.15, l: "15%" },
|
|
2387
2387
|
{ v: 0.175, l: "17.5%" },
|
|
@@ -2389,13 +2389,13 @@ function qi(e, t, n, o, s, i) {
|
|
|
2389
2389
|
{ v: 0.21, l: "21%" },
|
|
2390
2390
|
{ v: 0.485, l: "48.5%" },
|
|
2391
2391
|
{ v: 0.5, l: "50%" }
|
|
2392
|
-
], (
|
|
2393
|
-
key:
|
|
2392
|
+
], (y) => l("div", {
|
|
2393
|
+
key: y.l,
|
|
2394
2394
|
class: V([{
|
|
2395
|
-
active: Math.round(n.total *
|
|
2395
|
+
active: Math.round(n.total * y.v * 0.01) * 100 === s.internalValue
|
|
2396
2396
|
}, "deduction-button"]),
|
|
2397
|
-
onClick: (w) => i.setDeduction(
|
|
2398
|
-
}, u(
|
|
2397
|
+
onClick: (w) => i.setDeduction(y.v)
|
|
2398
|
+
}, u(y.l), 11, ji)), 64))
|
|
2399
2399
|
]),
|
|
2400
2400
|
p(h, {
|
|
2401
2401
|
type: "secondary",
|
|
@@ -2428,7 +2428,7 @@ function qi(e, t, n, o, s, i) {
|
|
|
2428
2428
|
]),
|
|
2429
2429
|
_: 1
|
|
2430
2430
|
}, 16, ["name"]),
|
|
2431
|
-
e.houseWorkManualAmount ? (a(), A(
|
|
2431
|
+
e.houseWorkManualAmount ? (a(), A(c, {
|
|
2432
2432
|
key: 0,
|
|
2433
2433
|
order: 2,
|
|
2434
2434
|
to: "document-nav-bottom"
|
|
@@ -2436,9 +2436,9 @@ function qi(e, t, n, o, s, i) {
|
|
|
2436
2436
|
default: g(() => [
|
|
2437
2437
|
l("div", {
|
|
2438
2438
|
class: "housework-manual-nav",
|
|
2439
|
-
onClick: t[3] || (t[3] = (
|
|
2439
|
+
onClick: t[3] || (t[3] = (y) => e.$modal.show(s.modalName))
|
|
2440
2440
|
}, [
|
|
2441
|
-
(a(),
|
|
2441
|
+
(a(), d("svg", Fi, t[4] || (t[4] = [
|
|
2442
2442
|
l("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }, null, -1),
|
|
2443
2443
|
l("line", {
|
|
2444
2444
|
x1: "12",
|
|
@@ -2460,7 +2460,7 @@ function qi(e, t, n, o, s, i) {
|
|
|
2460
2460
|
})) : b("", !0)
|
|
2461
2461
|
]);
|
|
2462
2462
|
}
|
|
2463
|
-
const Ni = /* @__PURE__ */
|
|
2463
|
+
const Ni = /* @__PURE__ */ R(Li, [["render", qi], ["__scopeId", "data-v-b12680ea"]]), Hi = {
|
|
2464
2464
|
name: "Pricing",
|
|
2465
2465
|
components: {
|
|
2466
2466
|
EditDeduction: Ni
|
|
@@ -2509,7 +2509,13 @@ const Ni = /* @__PURE__ */ D(Li, [["render", qi], ["__scopeId", "data-v-b12680ea
|
|
|
2509
2509
|
)
|
|
2510
2510
|
}),
|
|
2511
2511
|
value: -this.prices.region.houseWorkAmount,
|
|
2512
|
-
action: () => this.$refs.deduction.showModal()
|
|
2512
|
+
action: () => this.$refs.deduction.showModal(),
|
|
2513
|
+
showIcon: !!x(
|
|
2514
|
+
this.prices,
|
|
2515
|
+
"region.houseWorkManualAmount",
|
|
2516
|
+
!1
|
|
2517
|
+
),
|
|
2518
|
+
tooltip: this.$t("_common:manualDeductionTooltip")
|
|
2513
2519
|
}
|
|
2514
2520
|
] : [],
|
|
2515
2521
|
...this.prices.rounding.enabled && this.prices.rounding.show ? [
|
|
@@ -2566,8 +2572,8 @@ const Ni = /* @__PURE__ */ D(Li, [["render", qi], ["__scopeId", "data-v-b12680ea
|
|
|
2566
2572
|
class: "pricing-sub-label"
|
|
2567
2573
|
}, Ji = ["onClick"], Qi = { class: "price-value" };
|
|
2568
2574
|
function Xi(e, t, n, o, s, i) {
|
|
2569
|
-
const f = v("EditDeduction"), h = U("tooltip");
|
|
2570
|
-
return a(),
|
|
2575
|
+
const f = v("EditDeduction"), h = v("CIcon"), k = U("tooltip");
|
|
2576
|
+
return a(), d("div", Gi, [
|
|
2571
2577
|
l("div", Ki, [
|
|
2572
2578
|
i.showHouseWork ? (a(), A(f, {
|
|
2573
2579
|
key: 0,
|
|
@@ -2580,21 +2586,21 @@ function Xi(e, t, n, o, s, i) {
|
|
|
2580
2586
|
"house-work-type": i.prices.region.houseWorkType,
|
|
2581
2587
|
"house-work-amount": i.prices.region.houseWorkAmount,
|
|
2582
2588
|
total: i.prices.subTotal + i.prices.taxAmount,
|
|
2583
|
-
onInput: t[0] || (t[0] = (
|
|
2589
|
+
onInput: t[0] || (t[0] = (c) => e.$emit("input", c))
|
|
2584
2590
|
}, null, 8, ["disabled", "_document", "_value", "house-work-type", "house-work-amount", "total"])) : b("", !0)
|
|
2585
2591
|
]),
|
|
2586
2592
|
l("div", null, [
|
|
2587
|
-
(a(!0),
|
|
2588
|
-
key:
|
|
2589
|
-
class: V([[
|
|
2593
|
+
(a(!0), d(C, null, S(i.priceArray, (c, y) => (a(), d("div", {
|
|
2594
|
+
key: y,
|
|
2595
|
+
class: V([[c.classList || ""], "price-row flex w-full justify-between"])
|
|
2590
2596
|
}, [
|
|
2591
2597
|
l("div", Yi, [
|
|
2592
|
-
I(u(
|
|
2593
|
-
|
|
2594
|
-
|
|
2598
|
+
I(u(c.label.capitalize()) + " ", 1),
|
|
2599
|
+
c.subLabel ? (a(), d("span", Zi, u(c.subLabel), 1)) : b("", !0),
|
|
2600
|
+
c.action ? D((a(), d("span", {
|
|
2595
2601
|
key: 1,
|
|
2596
2602
|
class: "pricing-action",
|
|
2597
|
-
onClick: (
|
|
2603
|
+
onClick: (w) => c.action ? c.action() : null
|
|
2598
2604
|
}, t[1] || (t[1] = [
|
|
2599
2605
|
l("svg", {
|
|
2600
2606
|
viewBox: "0 0 24 24",
|
|
@@ -2610,15 +2616,23 @@ function Xi(e, t, n, o, s, i) {
|
|
|
2610
2616
|
l("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })
|
|
2611
2617
|
], -1)
|
|
2612
2618
|
]), 8, Ji)), [
|
|
2613
|
-
[
|
|
2619
|
+
[k, e.$t("edit", { thing: e.$t("deduction.deduction") })]
|
|
2620
|
+
]) : b("", !0),
|
|
2621
|
+
c.showIcon ? D((a(), A(h, {
|
|
2622
|
+
key: 2,
|
|
2623
|
+
type: "info",
|
|
2624
|
+
size: "20",
|
|
2625
|
+
class: "border-primary-100 bg-primary-100 text-primary-500 mx-1 rounded-full border-2"
|
|
2626
|
+
}, null, 512)), [
|
|
2627
|
+
[k, c.tooltip]
|
|
2614
2628
|
]) : b("", !0)
|
|
2615
2629
|
]),
|
|
2616
|
-
l("div", Qi, u(
|
|
2630
|
+
l("div", Qi, u(c.prefix) + " " + u(c.value), 1)
|
|
2617
2631
|
], 2))), 128))
|
|
2618
2632
|
])
|
|
2619
2633
|
]);
|
|
2620
2634
|
}
|
|
2621
|
-
const en = /* @__PURE__ */
|
|
2635
|
+
const en = /* @__PURE__ */ R(Hi, [["render", Xi], ["__scopeId", "data-v-b6c617f4"]]), tn = {
|
|
2622
2636
|
name: "PackageItemEdit",
|
|
2623
2637
|
i18nOptions: {
|
|
2624
2638
|
namespaces: "PackageItemEdit",
|
|
@@ -2809,11 +2823,11 @@ const en = /* @__PURE__ */ D(Hi, [["render", Xi], ["__scopeId", "data-v-90384cd6
|
|
|
2809
2823
|
}
|
|
2810
2824
|
}, nn = { class: "min-h-0 rounded-md border border-gray-200 bg-white text-black" }, sn = { class: "flex w-full items-center justify-between bg-gray-100 py-1 pl-4 pr-1 text-sm font-medium text-gray-600" }, an = { class: "p-4" }, on = { class: "mb-0.5 flex items-center" }, rn = ["id", "placeholder"], ln = { class: "mt-2 flex gap-2" };
|
|
2811
2825
|
function cn(e, t, n, o, s, i) {
|
|
2812
|
-
const f = v("CButton"), h = v("CDropdownItem"),
|
|
2813
|
-
return a(),
|
|
2826
|
+
const f = v("CButton"), h = v("CDropdownItem"), k = v("CDropdown"), c = v("TextEditor"), y = v("MaxTotalInput"), w = v("PriceFormAlternatives"), $ = v("ArticleList"), m = v("CIcon"), T = v("Pricing"), r = U("tooltip"), P = U("click-outside");
|
|
2827
|
+
return a(), d("div", nn, [
|
|
2814
2828
|
l("div", sn, [
|
|
2815
2829
|
l("div", null, u(n.type === "single" ? e.$t("single") : n.type === "radio" || n.toggable ? e.$t("option") : e.$t("base")), 1),
|
|
2816
|
-
n.type !== "single" ? (a(), A(
|
|
2830
|
+
n.type !== "single" ? (a(), A(k, {
|
|
2817
2831
|
key: 0,
|
|
2818
2832
|
class: "ml-4"
|
|
2819
2833
|
}, {
|
|
@@ -2831,7 +2845,7 @@ function cn(e, t, n, o, s, i) {
|
|
|
2831
2845
|
})
|
|
2832
2846
|
]),
|
|
2833
2847
|
default: g(() => [
|
|
2834
|
-
n.toggable ? (a(),
|
|
2848
|
+
n.toggable ? (a(), d(C, { key: 0 }, [
|
|
2835
2849
|
p(h, {
|
|
2836
2850
|
value: e.isSelectedDefault,
|
|
2837
2851
|
toggle: !0,
|
|
@@ -2883,7 +2897,7 @@ function cn(e, t, n, o, s, i) {
|
|
|
2883
2897
|
]),
|
|
2884
2898
|
l("div", an, [
|
|
2885
2899
|
l("div", on, [
|
|
2886
|
-
|
|
2900
|
+
D(l("input", {
|
|
2887
2901
|
id: `package-name-${n.packageId}`,
|
|
2888
2902
|
"onUpdate:modelValue": t[3] || (t[3] = (_) => e.name = _),
|
|
2889
2903
|
placeholder: e.$t("namePlaceholder"),
|
|
@@ -2893,7 +2907,7 @@ function cn(e, t, n, o, s, i) {
|
|
|
2893
2907
|
[Ye, e.name]
|
|
2894
2908
|
])
|
|
2895
2909
|
]),
|
|
2896
|
-
p(
|
|
2910
|
+
p(c, {
|
|
2897
2911
|
ref: "editor",
|
|
2898
2912
|
modelValue: i.internalDescription,
|
|
2899
2913
|
"onUpdate:modelValue": t[5] || (t[5] = (_) => i.internalDescription = _),
|
|
@@ -2901,11 +2915,11 @@ function cn(e, t, n, o, s, i) {
|
|
|
2901
2915
|
mentions: () => e._document.textTemplateItems,
|
|
2902
2916
|
class: "text-editor mb-4"
|
|
2903
2917
|
}, null, 8, ["modelValue", "placeholder", "mentions"]),
|
|
2904
|
-
|
|
2918
|
+
D((a(), d("div", {
|
|
2905
2919
|
onMouseoverPassive: t[15] || (t[15] = (_) => s.isHover = !0),
|
|
2906
2920
|
onMouseleavePassive: t[16] || (t[16] = (_) => s.isHover = !1)
|
|
2907
2921
|
}, [
|
|
2908
|
-
e.priceType === "openAccMaxPrice" ? (a(), A(
|
|
2922
|
+
e.priceType === "openAccMaxPrice" ? (a(), A(y, {
|
|
2909
2923
|
key: 0,
|
|
2910
2924
|
modelValue: e.maxTotal,
|
|
2911
2925
|
"onUpdate:modelValue": t[6] || (t[6] = (_) => e.maxTotal = _),
|
|
@@ -2949,7 +2963,7 @@ function cn(e, t, n, o, s, i) {
|
|
|
2949
2963
|
}),
|
|
2950
2964
|
I(" " + u(e.$t("addButton")), 1)
|
|
2951
2965
|
]),
|
|
2952
|
-
|
|
2966
|
+
D((a(), d("div", {
|
|
2953
2967
|
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",
|
|
2954
2968
|
onClick: t[13] || (t[13] = (_) => i.onArticleAdd({ openModal: !0 }))
|
|
2955
2969
|
}, [
|
|
@@ -2982,7 +2996,7 @@ function cn(e, t, n, o, s, i) {
|
|
|
2982
2996
|
])
|
|
2983
2997
|
]);
|
|
2984
2998
|
}
|
|
2985
|
-
const dn = /* @__PURE__ */
|
|
2999
|
+
const dn = /* @__PURE__ */ R(tn, [["render", cn], ["__scopeId", "data-v-64642fe7"]]), un = (e) => (e || []).slice(0, 1).map((t) => ({
|
|
2986
3000
|
...t,
|
|
2987
3001
|
isSelected: !0,
|
|
2988
3002
|
isSelectedDefault: !0,
|
|
@@ -3283,13 +3297,13 @@ const gn = {
|
|
|
3283
3297
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3284
3298
|
}, Tn = { class: "flex w-full" };
|
|
3285
3299
|
function An(e, t, n, o, s, i) {
|
|
3286
|
-
const f = v("PackageGroupSelect"), h = v("ErrorCallout"),
|
|
3287
|
-
return a(),
|
|
3288
|
-
e.type ? (a(),
|
|
3300
|
+
const f = v("PackageGroupSelect"), h = v("ErrorCallout"), k = v("CButton"), c = v("CDropdownItem"), y = v("CDropdown"), w = v("CCallout"), $ = v("PackageItem");
|
|
3301
|
+
return a(), d("div", vn, [
|
|
3302
|
+
e.type ? (a(), d(C, { key: 1 }, [
|
|
3289
3303
|
l("div", yn, [
|
|
3290
|
-
p(
|
|
3304
|
+
p(y, null, {
|
|
3291
3305
|
trigger: g(() => [
|
|
3292
|
-
p(
|
|
3306
|
+
p(k, {
|
|
3293
3307
|
type: "none",
|
|
3294
3308
|
size: "normal",
|
|
3295
3309
|
pattern: "secondary",
|
|
@@ -3298,7 +3312,7 @@ function An(e, t, n, o, s, i) {
|
|
|
3298
3312
|
})
|
|
3299
3313
|
]),
|
|
3300
3314
|
default: g(() => [
|
|
3301
|
-
p(
|
|
3315
|
+
p(c, { onClick: i.onResetType }, {
|
|
3302
3316
|
default: g(() => [
|
|
3303
3317
|
I(u(e.$t("_common:change", {
|
|
3304
3318
|
thing: e.$t("_common:price.proposal").toLowerCase()
|
|
@@ -3306,7 +3320,7 @@ function An(e, t, n, o, s, i) {
|
|
|
3306
3320
|
]),
|
|
3307
3321
|
_: 1
|
|
3308
3322
|
}, 8, ["onClick"]),
|
|
3309
|
-
p(
|
|
3323
|
+
p(c, {
|
|
3310
3324
|
value: !!e.hideGroupPrice,
|
|
3311
3325
|
"close-on-click": !1,
|
|
3312
3326
|
toggle: "",
|
|
@@ -3328,7 +3342,7 @@ function An(e, t, n, o, s, i) {
|
|
|
3328
3342
|
}, {
|
|
3329
3343
|
default: g(() => [
|
|
3330
3344
|
l("div", kn, u(e.$t("basePlaceholder")), 1),
|
|
3331
|
-
p(
|
|
3345
|
+
p(k, {
|
|
3332
3346
|
type: "secondary",
|
|
3333
3347
|
size: "small",
|
|
3334
3348
|
style: { "font-weight": "600" },
|
|
@@ -3351,7 +3365,7 @@ function An(e, t, n, o, s, i) {
|
|
|
3351
3365
|
tag: "div"
|
|
3352
3366
|
}, {
|
|
3353
3367
|
default: g(() => [
|
|
3354
|
-
(a(!0),
|
|
3368
|
+
(a(!0), d(C, null, S(i.topRowPackages, (m, T) => (a(), d("div", {
|
|
3355
3369
|
key: m.packageId,
|
|
3356
3370
|
class: "section-item pb-4"
|
|
3357
3371
|
}, [
|
|
@@ -3391,7 +3405,7 @@ function An(e, t, n, o, s, i) {
|
|
|
3391
3405
|
]),
|
|
3392
3406
|
_: 1
|
|
3393
3407
|
})),
|
|
3394
|
-
e.type === "checkbox" && i.topRowPackages.length && i.bottomRowPackages.length ? (a(),
|
|
3408
|
+
e.type === "checkbox" && i.topRowPackages.length && i.bottomRowPackages.length ? (a(), d("div", bn)) : b("", !0),
|
|
3395
3409
|
e.type === "checkbox" ? (a(), A(re, {
|
|
3396
3410
|
key: 3,
|
|
3397
3411
|
name: "section-list",
|
|
@@ -3399,7 +3413,7 @@ function An(e, t, n, o, s, i) {
|
|
|
3399
3413
|
style: { "margin-bottom": "calc(1 * var(--rem))" }
|
|
3400
3414
|
}, {
|
|
3401
3415
|
default: g(() => [
|
|
3402
|
-
(a(!0),
|
|
3416
|
+
(a(!0), d(C, null, S(i.bottomRowPackages, (m, T) => (a(), d("div", {
|
|
3403
3417
|
key: m.packageId,
|
|
3404
3418
|
class: "section-item",
|
|
3405
3419
|
style: { padding: "calc(1 * var(--rem)) 0" }
|
|
@@ -3439,10 +3453,10 @@ function An(e, t, n, o, s, i) {
|
|
|
3439
3453
|
]),
|
|
3440
3454
|
_: 1
|
|
3441
3455
|
})) : b("", !0),
|
|
3442
|
-
e.type !== "single" || !e.packages.length ? (a(),
|
|
3456
|
+
e.type !== "single" || !e.packages.length ? (a(), d("div", wn, [
|
|
3443
3457
|
l("div", In, [
|
|
3444
|
-
e.type === "radio" && !e.packages.length ? (a(),
|
|
3445
|
-
(a(),
|
|
3458
|
+
e.type === "radio" && !e.packages.length ? (a(), d("div", _n, [
|
|
3459
|
+
(a(), d("svg", $n, t[13] || (t[13] = [
|
|
3446
3460
|
l("path", {
|
|
3447
3461
|
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",
|
|
3448
3462
|
fill: "#000",
|
|
@@ -3458,7 +3472,7 @@ function An(e, t, n, o, s, i) {
|
|
|
3458
3472
|
style: { margin: "calc(1 * var(--rem)) 0 calc(1 * var(--rem)) 0" }
|
|
3459
3473
|
}, null, 8, ["message"])) : b("", !0),
|
|
3460
3474
|
l("div", Tn, [
|
|
3461
|
-
p(
|
|
3475
|
+
p(k, {
|
|
3462
3476
|
type: "secondary",
|
|
3463
3477
|
outlined: "",
|
|
3464
3478
|
"icon-left": "plus",
|
|
@@ -3472,7 +3486,7 @@ function An(e, t, n, o, s, i) {
|
|
|
3472
3486
|
})
|
|
3473
3487
|
])
|
|
3474
3488
|
])) : b("", !0)
|
|
3475
|
-
], 64)) : (a(),
|
|
3489
|
+
], 64)) : (a(), d("div", fn, [
|
|
3476
3490
|
p(f, {
|
|
3477
3491
|
onInput: t[0] || (t[0] = (m) => i.onSelectType(m))
|
|
3478
3492
|
}),
|
|
@@ -3484,7 +3498,7 @@ function An(e, t, n, o, s, i) {
|
|
|
3484
3498
|
]))
|
|
3485
3499
|
]);
|
|
3486
3500
|
}
|
|
3487
|
-
const zn = /* @__PURE__ */
|
|
3501
|
+
const zn = /* @__PURE__ */ R(gn, [["render", An], ["__scopeId", "data-v-03549668"]]);
|
|
3488
3502
|
export {
|
|
3489
3503
|
zn as default
|
|
3490
3504
|
};
|