@cling-se/widget 0.9.4 → 0.9.5
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/dist/{AddClientCallout-d472aa84.js → AddClientCallout-e4e9874f.js} +5 -5
- package/dist/{AnswerModal-06487437.js → AnswerModal-acd3b9c0.js} +248 -248
- package/dist/{AttachmentItem-d98488ee.js → AttachmentItem-34e91526.js} +8 -8
- package/dist/{BaseDatePicker-8c098701.js → BaseDatePicker-581297bc.js} +43 -43
- package/dist/{BaseInput-2723d613.js → BaseInput-29d88150.js} +1 -1
- package/dist/{BaseUpload-996d74b3.js → BaseUpload-84d3b68b.js} +3 -3
- package/dist/{BlockMedia-00907fb6.js → BlockMedia-319932b8.js} +1 -1
- package/dist/{CCallout-ffa95028.js → CCallout-88ae9c08.js} +6 -6
- package/dist/{CDropdownItem-74672842.js → CDropdownItem-d46bf062.js} +76 -75
- package/dist/{CField-06dd50f1.js → CField-be05883b.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-f49d85e0.js → CSlider.vue_vue_type_style_index_0_lang-df4c839e.js} +1 -1
- package/dist/{ClientAutocomplete-f65643dd.js → ClientAutocomplete-68f76bfc.js} +4 -4
- package/dist/{ClientModal-d276aabd.js → ClientModal-73086005.js} +16 -16
- package/dist/{ColorPicker-4f6b70af.js → ColorPicker-11ee76f0.js} +2 -2
- package/dist/{CompanyModal-30c54ce3.js → CompanyModal-0fec4480.js} +8 -8
- package/dist/{ContentWrapper-d5653fef.js → ContentWrapper-fba78b6f.js} +19 -19
- package/dist/{CoverBlockSettings-2335f3a8.js → CoverBlockSettings-7ffa15b1.js} +19 -19
- package/dist/{DocForm-9ca24de4.js → DocForm-e56b3a0c.js} +1190 -819
- package/dist/{DocFormSend-d0c6fa1d.js → DocFormSend-cdc4eaf8.js} +14 -14
- package/dist/{DocModalBase-f4915a62.js → DocModalBase-e473b946.js} +4 -4
- package/dist/DocPrint-6d8b1f14.js +222 -0
- package/dist/{DocReceipt-d192000e.js → DocReceipt-c8a543f8.js} +1 -1
- package/dist/{DocSendReminder-06d5b34c.js → DocSendReminder-70effa09.js} +1 -1
- package/dist/{DocTextEditor-c6d1df3c.js → DocTextEditor-cce51e7c.js} +19 -19
- package/dist/{DocTimeline-b4c20f93.js → DocTimeline-c2cbd773.js} +11 -11
- package/dist/{DocumentClient-c2319f00.js → DocumentClient-611c8c1c.js} +8 -6
- package/dist/{formValidationMixin-4920ab53.js → DocumentLayout-86c367d1.js} +1617 -1709
- package/dist/{DocumentLogotype-1efd1ce9.js → DocumentLogotype-441a9fdb.js} +3 -3
- package/dist/{EmbedInput-654c0477.js → EmbedInput-a5938c25.js} +2 -2
- package/dist/{EmbedSettings-b81ec734.js → EmbedSettings-141ab53c.js} +10 -10
- package/dist/ErrorCallout-7dea37df.js +30 -0
- package/dist/{FilePreviewModal-895bd1bd.js → FilePreviewModal-875fd8c9.js} +8 -7
- package/dist/{HeaderSettings-c6dac755.js → HeaderSettings-0364b6df.js} +29 -29
- package/dist/{ImageSelectModal-7cece54e.js → ImageSelectModal-2d3a69db.js} +11 -11
- package/dist/{ImageUploadWrapper-53afd31d.js → ImageUploadWrapper-7c70045f.js} +3 -3
- package/dist/{Index-f935c492.js → Index-006a27da.js} +10 -10
- package/dist/{Index-6ef78b7a.js → Index-0313a553.js} +2 -2
- package/dist/{Index-9aaf8b90.js → Index-06bd31c3.js} +26 -26
- package/dist/Index-07ae23ce.js +54 -0
- package/dist/{Index-7443e91c.js → Index-0f4c9eb4.js} +34 -34
- package/dist/{Index-c4de05aa.js → Index-1e0cf88a.js} +10 -9
- package/dist/{Index-d45a1eff.js → Index-1fc54467.js} +4 -4
- package/dist/{Index-e749f6f1.js → Index-205dd368.js} +14 -14
- package/dist/{Index-34c84bab.js → Index-245f88ff.js} +10 -10
- package/dist/{Index-d8879ca9.js → Index-28bdb859.js} +2 -2
- package/dist/{Index-60fc8a6e.js → Index-2a0c06b1.js} +3 -3
- package/dist/{Index-63805642.js → Index-3d84a32c.js} +9 -9
- package/dist/{Index-66c8cbfa.js → Index-418c517f.js} +4 -4
- package/dist/{Index-e45a0c32.js → Index-5196628a.js} +27 -27
- package/dist/{Index-61f7dc92.js → Index-532b8844.js} +2 -2
- package/dist/{Index-b14d0f03.js → Index-53348c92.js} +4 -4
- package/dist/{Index-9233cc83.js → Index-54962a1e.js} +15 -15
- package/dist/{Index-701f0d05.js → Index-5de564da.js} +2 -2
- package/dist/{Index-c67218ce.js → Index-6f957f7e.js} +15 -15
- package/dist/{Index-98e8bb86.js → Index-710d1132.js} +8 -8
- package/dist/{Index-8bca2d87.js → Index-7a2f20fd.js} +9 -9
- package/dist/{Index-1d361d01.js → Index-818ef607.js} +4 -4
- package/dist/Index-875e7805.js +79 -0
- package/dist/{Index-82574a41.js → Index-889b6a45.js} +18 -19
- package/dist/{Index-82b5de12.js → Index-8975cd1e.js} +4 -4
- package/dist/{Index-1a7e98d7.js → Index-affdb14c.js} +11 -10
- package/dist/{Index-01c63c88.js → Index-b80ab22f.js} +2 -2
- package/dist/{Index-5e35f4a2.js → Index-ba48e68b.js} +8 -8
- package/dist/{Index-caf5cf44.js → Index-beb43a1a.js} +94 -94
- package/dist/{Index-b15cfd62.js → Index-c746dc64.js} +13 -13
- package/dist/{Index-2535f58f.js → Index-cf54ef50.js} +2 -2
- package/dist/{Index-c7e68382.js → Index-dbf5c34c.js} +4 -4
- package/dist/{Index-5cc51230.js → Index-fa01557d.js} +12 -12
- package/dist/{Index-cd76b120.js → Index-ff60354c.js} +7 -7
- package/dist/{InputToggleRow-9d8a7da4.js → InputToggleRow-c520bed9.js} +5 -5
- package/dist/IsPremiumPreStep-d4739d6a.js +2443 -0
- package/dist/{MediaWrapper-d4a4b66f.js → MediaWrapper-722723f7.js} +3 -3
- package/dist/{NotBindingText-b199006c.js → NotBindingText-613399b6.js} +2 -2
- package/dist/{PackageGroup-37ac99b1.js → PackageGroup-1085c76c.js} +56 -56
- package/dist/{PdfTerms-8b52bb6e.js → PdfTerms-f98a6f75.js} +8 -7
- package/dist/{PdfViewer-38bd8439.js → PdfViewer-096bbf00.js} +5 -4
- package/dist/{PlainHtml-9174cbf6.js → PlainHtml-752bc8d6.js} +1 -1
- package/dist/PriceHeader-e25df5eb.js +337 -0
- package/dist/{SearchApi-2e286be6.js → SearchApi-20629627.js} +2 -2
- package/dist/{TermsSettings-c74eec79.js → TermsSettings-4cc4a9ee.js} +11 -11
- package/dist/{ThemeColorRow-3558367b.js → ThemeColorRow-c292abc6.js} +3 -3
- package/dist/{ToggleBinding-6c9c1ac3.js → ToggleBinding-406175fb.js} +3 -3
- package/dist/{UploadModal-6d0abd77.js → UploadModal-0cbd0c8f.js} +16 -16
- package/dist/{VideoPlayerInput-77cd86aa.js → VideoPlayerInput-d7b5fe4b.js} +3 -3
- package/dist/{VideoPlayerSettings-b7eb781c.js → VideoPlayerSettings-51c75143.js} +12 -12
- package/dist/VideoSelectModal-e34cde4b.js +111 -0
- package/dist/{answerDocumentMixin-66023e62.js → answerDocumentMixin-574c5304.js} +3 -3
- package/dist/assets/article-options-10291.png +0 -0
- package/dist/assets/bg-base-13048.png +0 -0
- package/dist/assets/bg-pro-81076.png +0 -0
- package/dist/assets/bg-start-20630.png +0 -0
- package/dist/assets/blank-10674.png +0 -0
- package/dist/assets/block-options-17322.png +0 -0
- package/dist/assets/columnGallery.image-24825.png +0 -0
- package/dist/assets/doc-send-94456.png +0 -0
- package/dist/assets/drag-block-17194.png +0 -0
- package/dist/assets/headerCircularGradient.image-13878.png +0 -0
- package/dist/assets/roiCalculator.image-14704.png +0 -0
- package/dist/assets/text-bubble-53861.png +0 -0
- package/dist/{cssMode-8552fc56.js → cssMode-eda08630.js} +19 -15
- package/dist/dom-068d1a7b.js +59 -0
- package/dist/{focusDrawerMixin-67462262.js → focusDrawerMixin-72f8dd7a.js} +1 -1
- package/dist/{formComponentsInstall-ad9c2a83.js → formComponentsInstall-3f1c6477.js} +40 -40
- package/dist/formValidationMixin-d4e84872.js +49 -0
- package/dist/{freemarker2-7e10a65d.js → freemarker2-42cdfba5.js} +23 -19
- package/dist/{handlebars-8045bfa8.js → handlebars-b4515777.js} +15 -11
- package/dist/{html-8afcb633.js → html-ea5d1845.js} +18 -14
- package/dist/{htmlMode-1a2d1b48.js → htmlMode-1cc3531d.js} +23 -19
- package/dist/{index-f805bfce.js → index-07377b76.js} +45 -45
- package/dist/index-676b9274.js +17 -0
- package/dist/{index-bf93d7c2.js → index-762349d7.js} +7 -7
- package/dist/{index-3d6d7a03.js → index-7adda710.js} +31 -31
- package/dist/index.es.js +8 -8
- package/dist/index.umd.js +537 -533
- package/dist/{javascript-dad5561e.js → javascript-185ef2e0.js} +15 -11
- package/dist/{jsonMode-ce09245f.js → jsonMode-59ea4e99.js} +23 -19
- package/dist/{liquid-05247459.js → liquid-517f2a7c.js} +18 -14
- package/dist/{main-04025a56.js → main-95207159.js} +15380 -12891
- package/dist/{mapFormMixin-8d073f99.js → mapFormMixin-a245a297.js} +1 -1
- package/dist/{publicSenderState-97108de1.js → publicSenderState-bea5980b.js} +1 -1
- package/dist/{python-3f3513c5.js → python-eb6703d8.js} +15 -11
- package/dist/{razor-1f3e9c4e.js → razor-4c5b7deb.js} +22 -18
- package/dist/simplebar.min-97b539d6.js +71 -0
- package/dist/style.css +2 -2
- package/dist/template-b3af7583.js +528 -0
- package/dist/{throttle-a2c1f34d.js → throttle-a0ce8f66.js} +2 -2
- package/dist/{tinycolor-88fa380f.js → tinycolor-65e7dc2e.js} +1 -1
- package/dist/{FormInputRow-9819eb71.js → tippy.esm-3c111ba9.js} +285 -285
- package/dist/{tsMode-4c026047.js → tsMode-a4a0e653.js} +19 -15
- package/dist/{typescript-baf56f67.js → typescript-aeab7849.js} +15 -11
- package/dist/{utils-6670dea6.js → utils-580c7144.js} +1 -1
- package/dist/{vuedraggable.umd-d7138234.js → vuedraggable.umd-2c22e5f8.js} +41 -41
- package/dist/{xml-ffc6146a.js → xml-098907e6.js} +18 -14
- package/package.json +3 -2
- package/stats.html +1 -1
- package/vite-plugin-library-asset-external/index.js +134 -0
- package/dist/ErrorCallout-60d0b3ab.js +0 -30
- package/dist/Index-b020a80c.js +0 -47
- package/dist/Index-e80f5f9c.js +0 -79
- package/dist/IsPremiumPreStep-3a087524.js +0 -1919
- package/dist/PriceHeader-e357afe9.js +0 -336
- package/dist/VideoSelectModal-d2299552.js +0 -111
- package/dist/index-c48c5eb4.js +0 -14
- package/dist/simplebar.min-3af55aab.js +0 -2429
- package/dist/template-42a1d852.js +0 -526
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aH as B, aI as A, aJ as E, aK as z, aL as W, aM as F, f as j, aN as N, b as o, n as c, o as H, aO as x, aD as q, aP as w, aQ as U, aa as f, P as G, g as p, q as k, aR as K, ab as Y, aS as Z, aT as J, aU as C, p as Q, G as g, r as X, t as ee, aV as te, l as ie, L as se } from "./main-95207159.js";
|
|
2
2
|
import { m as h, a as v } from "./vuex.esm-4a0fff7c.js";
|
|
3
|
-
import { m as y } from "./mapFormMixin-
|
|
4
|
-
import { E as
|
|
5
|
-
import { T as ae } from "./DocTextEditor-
|
|
6
|
-
import { o as
|
|
7
|
-
import { W as re } from "./
|
|
8
|
-
import { C as oe } from "./
|
|
3
|
+
import { m as y } from "./mapFormMixin-a245a297.js";
|
|
4
|
+
import { E as P } from "./ErrorCallout-7dea37df.js";
|
|
5
|
+
import { T as ae } from "./DocTextEditor-cce51e7c.js";
|
|
6
|
+
import { o as S, d as ne } from "./vuedraggable.umd-2c22e5f8.js";
|
|
7
|
+
import { W as re } from "./DocumentLayout-86c367d1.js";
|
|
8
|
+
import { C as oe } from "./tippy.esm-3c111ba9.js";
|
|
9
9
|
import { v as le } from "./index-805c56e4.js";
|
|
10
|
-
import { S as ce } from "./SearchApi-
|
|
11
|
-
import { w as ue } from "./CDropdownItem-
|
|
12
|
-
import { B as V } from "./BaseInput-
|
|
13
|
-
import "./CSlider.vue_vue_type_style_index_0_lang-
|
|
10
|
+
import { S as ce } from "./SearchApi-20629627.js";
|
|
11
|
+
import { w as ue } from "./CDropdownItem-d46bf062.js";
|
|
12
|
+
import { B as V } from "./BaseInput-29d88150.js";
|
|
13
|
+
import "./CSlider.vue_vue_type_style_index_0_lang-df4c839e.js";
|
|
14
14
|
import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
15
|
-
import "./ColorPicker-
|
|
15
|
+
import "./ColorPicker-11ee76f0.js";
|
|
16
16
|
import "./color-71c20583.js";
|
|
17
17
|
const de = [
|
|
18
18
|
"unit",
|
|
@@ -35,12 +35,12 @@ function pe() {
|
|
|
35
35
|
}
|
|
36
36
|
var he = pe, b = B, me = he, fe = A, ve = 1 / 0, ge = b && 1 / fe(new b([, -0]))[1] == ve ? function(i) {
|
|
37
37
|
return new b(i);
|
|
38
|
-
} : me, ye = ge, _e = E, ke = z, $e =
|
|
39
|
-
function
|
|
38
|
+
} : me, ye = ge, _e = E, ke = z, $e = W, xe = F, be = ye, we = A, Ce = 200;
|
|
39
|
+
function Ie(i, e, t) {
|
|
40
40
|
var s = -1, n = ke, a = i.length, r = !0, l = [], u = l;
|
|
41
41
|
if (t)
|
|
42
42
|
r = !1, n = $e;
|
|
43
|
-
else if (a >=
|
|
43
|
+
else if (a >= Ce) {
|
|
44
44
|
var _ = e ? null : be(i);
|
|
45
45
|
if (_)
|
|
46
46
|
return we(_);
|
|
@@ -51,8 +51,8 @@ function Ce(i, e, t) {
|
|
|
51
51
|
for (; ++s < a; ) {
|
|
52
52
|
var d = i[s], m = e ? e(d) : d;
|
|
53
53
|
if (d = t || d !== 0 ? d : 0, r && m === m) {
|
|
54
|
-
for (var
|
|
55
|
-
if (u[
|
|
54
|
+
for (var I = u.length; I--; )
|
|
55
|
+
if (u[I] === m)
|
|
56
56
|
continue e;
|
|
57
57
|
e && u.push(m), l.push(d);
|
|
58
58
|
} else
|
|
@@ -60,11 +60,11 @@ function Ce(i, e, t) {
|
|
|
60
60
|
}
|
|
61
61
|
return l;
|
|
62
62
|
}
|
|
63
|
-
var Te =
|
|
64
|
-
function
|
|
65
|
-
return i && i.length ?
|
|
63
|
+
var Te = Ie, Ae = N, Pe = Te;
|
|
64
|
+
function Se(i, e) {
|
|
65
|
+
return i && i.length ? Pe(i, Ae(e)) : [];
|
|
66
66
|
}
|
|
67
|
-
var Ve =
|
|
67
|
+
var Ve = Se;
|
|
68
68
|
const De = /* @__PURE__ */ j(Ve), Re = (i) => (i || []).slice(0, 1).map((e) => ({
|
|
69
69
|
...e,
|
|
70
70
|
isSelected: !0,
|
|
@@ -88,7 +88,7 @@ const De = /* @__PURE__ */ j(Ve), Re = (i) => (i || []).slice(0, 1).map((e) => (
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}));
|
|
91
|
-
},
|
|
91
|
+
}, Le = (i = []) => {
|
|
92
92
|
let e = !1;
|
|
93
93
|
return i.map((t) => {
|
|
94
94
|
const s = {
|
|
@@ -103,13 +103,13 @@ const De = /* @__PURE__ */ j(Ve), Re = (i) => (i || []).slice(0, 1).map((e) => (
|
|
|
103
103
|
return (s.isSelected || s.isSelectedDefault) && (e = !0), s;
|
|
104
104
|
}, []);
|
|
105
105
|
};
|
|
106
|
-
function
|
|
106
|
+
function Me(i, ...e) {
|
|
107
107
|
if (i === "single")
|
|
108
108
|
return Re(...e);
|
|
109
109
|
if (i === "checkbox")
|
|
110
110
|
return Oe(...e);
|
|
111
111
|
if (i === "radio")
|
|
112
|
-
return
|
|
112
|
+
return Le(...e);
|
|
113
113
|
throw new Error(`Package filter type '${i}' is not implemented`);
|
|
114
114
|
}
|
|
115
115
|
const Be = {
|
|
@@ -210,7 +210,7 @@ var Ee = function() {
|
|
|
210
210
|
} }], null, !1, 1723986040), model: { value: e.internalCurrency, callback: function(s) {
|
|
211
211
|
e.internalCurrency = s;
|
|
212
212
|
}, expression: "internalCurrency" } }) : t("div", [e._v(e._s(e.suffixValue))])], 1)], 2);
|
|
213
|
-
}, ze = [],
|
|
213
|
+
}, ze = [], We = /* @__PURE__ */ c(
|
|
214
214
|
Be,
|
|
215
215
|
Ee,
|
|
216
216
|
ze,
|
|
@@ -220,7 +220,7 @@ var Ee = function() {
|
|
|
220
220
|
null,
|
|
221
221
|
null
|
|
222
222
|
);
|
|
223
|
-
const D =
|
|
223
|
+
const D = We.exports, T = {
|
|
224
224
|
isDeductable: !1,
|
|
225
225
|
isRut: !1,
|
|
226
226
|
greenRot15: !1,
|
|
@@ -247,7 +247,7 @@ const D = Fe.exports, T = {
|
|
|
247
247
|
packageId: e.packageId
|
|
248
248
|
});
|
|
249
249
|
if (s) {
|
|
250
|
-
const a = (u = []) => u.reduce((_, d) => ({ ..._, [d]: !1 }), {}), l = Object.values(
|
|
250
|
+
const a = (u = []) => u.reduce((_, d) => ({ ..._, [d]: !1 }), {}), l = Object.values(S({
|
|
251
251
|
rot: "isDeductable",
|
|
252
252
|
rut: "isRut",
|
|
253
253
|
greenRot15: "greenRot15",
|
|
@@ -257,7 +257,7 @@ const D = Fe.exports, T = {
|
|
|
257
257
|
l.some((u) => !!n[u]) && (n = { ...n, ...a(l) });
|
|
258
258
|
}
|
|
259
259
|
return n;
|
|
260
|
-
},
|
|
260
|
+
}, Fe = (i, e = null) => {
|
|
261
261
|
const t = x(i.currency, e);
|
|
262
262
|
switch (i.priceType) {
|
|
263
263
|
case "approx":
|
|
@@ -314,7 +314,7 @@ const D = Fe.exports, T = {
|
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
|
-
},
|
|
317
|
+
}, L = {
|
|
318
318
|
article: {
|
|
319
319
|
name: {
|
|
320
320
|
maxLength: le.maxLength(255)
|
|
@@ -462,11 +462,11 @@ var Ne = function() {
|
|
|
462
462
|
He,
|
|
463
463
|
!1,
|
|
464
464
|
null,
|
|
465
|
-
"
|
|
465
|
+
"e45af1ec",
|
|
466
466
|
null,
|
|
467
467
|
null
|
|
468
468
|
);
|
|
469
|
-
const
|
|
469
|
+
const M = qe.exports;
|
|
470
470
|
const Ue = {
|
|
471
471
|
name: "Article",
|
|
472
472
|
i18nOptions: {
|
|
@@ -474,8 +474,8 @@ const Ue = {
|
|
|
474
474
|
messages: O
|
|
475
475
|
},
|
|
476
476
|
components: {
|
|
477
|
-
ErrorCallout:
|
|
478
|
-
ArticleAutocomplete:
|
|
477
|
+
ErrorCallout: P,
|
|
478
|
+
ArticleAutocomplete: M,
|
|
479
479
|
CPriceInput: D
|
|
480
480
|
},
|
|
481
481
|
props: {
|
|
@@ -519,7 +519,7 @@ const Ue = {
|
|
|
519
519
|
default: null
|
|
520
520
|
}
|
|
521
521
|
},
|
|
522
|
-
validations:
|
|
522
|
+
validations: L,
|
|
523
523
|
data() {
|
|
524
524
|
return {
|
|
525
525
|
updateData: $,
|
|
@@ -630,7 +630,7 @@ var Ge = function() {
|
|
|
630
630
|
Ke,
|
|
631
631
|
!1,
|
|
632
632
|
null,
|
|
633
|
-
"
|
|
633
|
+
"faf5856d",
|
|
634
634
|
null,
|
|
635
635
|
null
|
|
636
636
|
);
|
|
@@ -708,9 +708,9 @@ const Je = {
|
|
|
708
708
|
};
|
|
709
709
|
var Qe = function() {
|
|
710
710
|
var e = this, t = e._self._c;
|
|
711
|
-
return t("div", { staticClass: "l-root" }, [t("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.getNavTooltip(-1), expression: "getNavTooltip(-1)" }], staticClass: "l-button", class: { disabled: !e.canBackward }, staticStyle: { left: "-
|
|
711
|
+
return t("div", { staticClass: "l-root" }, [t("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.getNavTooltip(-1), expression: "getNavTooltip(-1)" }], staticClass: "l-button", class: { disabled: !e.canBackward }, staticStyle: { left: "calc(-4 * var(--rem))" }, on: { click: function(s) {
|
|
712
712
|
return e.$emit("go", -1);
|
|
713
|
-
} } }, [t("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "35", height: "35", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [t("path", { attrs: { d: "M15 18l-6-6 6-6" } })])]), t("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.getNavTooltip(1), expression: "getNavTooltip(1)" }], staticClass: "l-button", class: { disabled: !e.canForward }, staticStyle: { right: "-
|
|
713
|
+
} } }, [t("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "35", height: "35", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [t("path", { attrs: { d: "M15 18l-6-6 6-6" } })])]), t("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.getNavTooltip(1), expression: "getNavTooltip(1)" }], staticClass: "l-button", class: { disabled: !e.canForward }, staticStyle: { right: "calc(-4 * var(--rem))" }, on: { click: function(s) {
|
|
714
714
|
return e.$emit("go", 1);
|
|
715
715
|
} } }, [t("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "35", height: "35", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [t("path", { attrs: { d: "M9 18l6-6-6-6" } })])])]);
|
|
716
716
|
}, Xe = [], et = /* @__PURE__ */ c(
|
|
@@ -719,7 +719,7 @@ var Qe = function() {
|
|
|
719
719
|
Xe,
|
|
720
720
|
!1,
|
|
721
721
|
null,
|
|
722
|
-
"
|
|
722
|
+
"9a0caf80",
|
|
723
723
|
null,
|
|
724
724
|
null
|
|
725
725
|
);
|
|
@@ -824,7 +824,7 @@ const it = {
|
|
|
824
824
|
this.$emit("close");
|
|
825
825
|
},
|
|
826
826
|
async onDrop({ removedIndex: i, addedIndex: e }) {
|
|
827
|
-
i === null && e === null || i !== e && (this.idList =
|
|
827
|
+
i === null && e === null || i !== e && (this.idList = C(this.idList, i, e), await Q("/unitType/setPositions", { ids: this.idList }, { invalidateCache: { type: "unitType" } }), this.reset(), await this.loadUnits());
|
|
828
828
|
}
|
|
829
829
|
}
|
|
830
830
|
};
|
|
@@ -832,16 +832,16 @@ var st = function() {
|
|
|
832
832
|
var e = this, t = e._self._c;
|
|
833
833
|
return t("div", { staticClass: "modal-overlay font-inter", on: { "&click": function(s) {
|
|
834
834
|
return s.target !== s.currentTarget ? null : e.close.apply(null, arguments);
|
|
835
|
-
} } }, [t("div", { staticClass: "unit-modal-root font-inter", staticStyle: { position: "relative" } }, [t("div", { staticStyle: { padding: "1.
|
|
835
|
+
} } }, [t("div", { staticClass: "unit-modal-root font-inter", staticStyle: { position: "relative" } }, [t("div", { staticStyle: { padding: "calc(1.5 * var(--rem))" } }, [t("div", { staticStyle: { "font-weight": "600", "font-size": "18px", "margin-bottom": "calc(1.5 * var(--rem))" } }, [t("span", [e._v(e._s(e.$t("_common:add", { thing: e.$t("_common:unitType.unitType_plural") })))]), t("BaseIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: { content: e.$t("tooltip"), html: !0 }, expression: "{ content: $t('tooltip'), html: true }" }], staticClass: "text-gray-400", staticStyle: { "margin-left": "0.5em" }, attrs: { type: "info", size: "15" } })], 1), t("CField", { staticStyle: { margin: "0" }, attrs: { grouped: "" } }, [t("CInput", { ref: "unitInput", staticClass: "unit-input", attrs: { placeholder: e.$t("_common:name").capitalize(), expanded: "", filled: "" }, model: { value: e.selectedValue.value, callback: function(s) {
|
|
836
836
|
e.$set(e.selectedValue, "value", typeof s == "string" ? s.trim() : s);
|
|
837
|
-
}, expression: "selectedValue.value" } }, [e.selectedValue.id ? t("template", { slot: "suffix" }, [t("CButton", { staticStyle: { "border-radius": "4px" }, attrs: { icon: "x", type: "none", pattern: "tertiary", size: "small" }, on: { click: e.reset } })], 1) : e._e()], 2), t("div", { staticClass: "control" }, [t("CButton", { attrs: { loading: e.isPosting, disabled: !e.selectedValue.value, type: "secondary" }, on: { click: e.submit } }, [e._v(" " + e._s(e.selectedValue.id ? e.$t("_common:save") : e.$t("_common:add")) + " ")])], 1)], 1)], 1), t("div", { staticStyle: { "border-top": "1px solid hsl(0, 0%, 88%)", overflow: "auto", "max-height": "360px" } }, [t("div", { staticClass: "
|
|
837
|
+
}, expression: "selectedValue.value" } }, [e.selectedValue.id ? t("template", { slot: "suffix" }, [t("CButton", { staticStyle: { "border-radius": "4px" }, attrs: { icon: "x", type: "none", pattern: "tertiary", size: "small" }, on: { click: e.reset } })], 1) : e._e()], 2), t("div", { staticClass: "control" }, [t("CButton", { attrs: { loading: e.isPosting, disabled: !e.selectedValue.value, type: "secondary" }, on: { click: e.submit } }, [e._v(" " + e._s(e.selectedValue.id ? e.$t("_common:save") : e.$t("_common:add")) + " ")])], 1)], 1)], 1), t("div", { staticStyle: { "border-top": "1px solid hsl(0, 0%, 88%)", overflow: "auto", "max-height": "360px" } }, [t("div", { staticClass: "text-gray-400", staticStyle: { "font-size": "14px", padding: "calc(1 * var(--rem)) calc(1.5 * var(--rem)) 0", "font-weight": "500" } }, [e._v(" " + e._s(e.$t("_common:unit_plural").capitalize()) + " ")]), t("div", { staticClass: "unit-modal-list" }, [e.unitItems.length ? e._e() : t("div", { staticClass: "unit-modal-list-empty" }, [e._v(" " + e._s(e.$t("_common:add", { thing: e.$t("_common:unit_plural") })) + " ")]), t("DragList", { attrs: { "drop-placeholder": { className: "drag-drop-placeholder" }, "drag-class": "is-dragged", "lock-axis": "y", "drag-handle-selector": ".drag-handle" }, on: { drop: e.onDrop } }, e._l(e.unitItems, function(s, n) {
|
|
838
838
|
return t("DragItem", { key: s.id }, [t("div", { staticClass: "unit-modal-list-item", class: { "is-editing": e.selectedValue.id === s.id }, on: { "&mouseover": function(a) {
|
|
839
839
|
e.hoverIndex = n;
|
|
840
840
|
}, "&mouseleave": function(a) {
|
|
841
841
|
e.hoverIndex = null;
|
|
842
842
|
}, click: function(a) {
|
|
843
843
|
return e.onEdit(s);
|
|
844
|
-
} } }, [t("div", { staticClass: "drag-handle" }, [t("BaseIcon", { staticClass: "
|
|
844
|
+
} } }, [t("div", { staticClass: "drag-handle" }, [t("BaseIcon", { staticClass: "text-gray-300", attrs: { type: "handle", size: "16" } })], 1), t("div", { staticStyle: { "padding-left": "0.5em" } }, [e._v(" " + e._s(s.label) + " ")]), t("span", { directives: [{ name: "show", rawName: "v-show", value: e.removeConfirmIndex === n, expression: "removeConfirmIndex === i" }], staticClass: "delete-confirm" }, [e._v(" " + e._s(e.$t("_common:remove")) + "? ")]), t("div", { staticClass: "unittype-buttons" }, [e.hoverIndex === n || e.removeConfirmIndex === n ? t("CButton", { attrs: { type: e.removeConfirmIndex === n ? "danger" : "none", pattern: e.removeConfirmIndex === n ? "primary" : "tertiary", circle: "", icon: "x", size: "small" }, on: { click: function(a) {
|
|
845
845
|
return a.stopPropagation(), a.preventDefault(), e.remove(s.id, n);
|
|
846
846
|
}, blur: function(a) {
|
|
847
847
|
e.removeConfirmIndex = null;
|
|
@@ -853,7 +853,7 @@ var st = function() {
|
|
|
853
853
|
at,
|
|
854
854
|
!1,
|
|
855
855
|
null,
|
|
856
|
-
"
|
|
856
|
+
"a4a478a1",
|
|
857
857
|
null,
|
|
858
858
|
null
|
|
859
859
|
);
|
|
@@ -935,7 +935,7 @@ const pt = {
|
|
|
935
935
|
messages: O
|
|
936
936
|
},
|
|
937
937
|
components: {
|
|
938
|
-
ArticleAutocomplete:
|
|
938
|
+
ArticleAutocomplete: M,
|
|
939
939
|
ArticleUnitSelect: dt,
|
|
940
940
|
ListModalButtons: tt,
|
|
941
941
|
CPriceInput: D
|
|
@@ -995,10 +995,10 @@ const pt = {
|
|
|
995
995
|
}
|
|
996
996
|
},
|
|
997
997
|
mixins: [ue],
|
|
998
|
-
validations:
|
|
998
|
+
validations: L,
|
|
999
999
|
data() {
|
|
1000
1000
|
return {
|
|
1001
|
-
priceSuffix:
|
|
1001
|
+
priceSuffix: Fe,
|
|
1002
1002
|
updateData: $,
|
|
1003
1003
|
addSavedArticle: R,
|
|
1004
1004
|
vatOptions: [
|
|
@@ -1231,11 +1231,11 @@ var ht = function() {
|
|
|
1231
1231
|
e.updateArticle(Math.abs(s), "discount");
|
|
1232
1232
|
} } }, [e.article.discountType === "fixed" ? t("template", { slot: "suffix" }, [e._v(" " + e._s(e._document.$t(`vat.${e.setPricesIncVat ? "incVat" : "exVat"}`)) + " ")]) : t("template", { slot: "suffix" }, [e._v(" " + e._s(e.getCurrencySymbol(e.article.currency)) + " ")])], 2)], 1), t("div", { staticClass: "select-css form-control form-control-right", staticStyle: { width: "5em" }, on: { click: function(s) {
|
|
1233
1233
|
return e.updateArticle(e.article.discountType === "percentage" ? "fixed" : "percentage", "discountType");
|
|
1234
|
-
} } }, [e._v(" " + e._s(e.article.discountType === "percentage" ? "%" : e.getCurrencySymbol(e.article.currency)) + " ")])], 1) : e._e()], t("div", { staticStyle: { margin: "
|
|
1234
|
+
} } }, [e._v(" " + e._s(e.article.discountType === "percentage" ? "%" : e.getCurrencySymbol(e.article.currency)) + " ")])], 1) : e._e()], t("div", { staticStyle: { margin: "calc(1 * var(--rem)) calc(-0.5 * var(--rem))" } }, [e.useVat ? [e.feature("regionSE") && Number.isInteger(e.article.vat) ? t("select", { staticClass: "select-css tag-item no-chevron", staticStyle: { display: "inline", "min-height": "initial", background: "hsl(0, 0%, 94%)", "border-color": "hsl(0, 0%, 94%)", color: "hsl(0, 0%, 30%)" }, domProps: { value: e.article.vat }, on: { input: function(s) {
|
|
1235
1235
|
e.updateArticle(Number.parseFloat(s.target.value), "vat");
|
|
1236
1236
|
} } }, e._l(e.vatOptions, function({ translation: s, value: n }, a) {
|
|
1237
1237
|
return t("option", { key: a, domProps: { value: n } }, [e._v(" " + e._s(e.$t(`vat.${e.vatType}`)) + " " + e._s(s) + " ")]);
|
|
1238
|
-
}), 0) : t("span", { staticClass: "select-css tag-item no-chevron", staticStyle: { display: "inline", "min-height": "initial", background: "hsl(0, 0%, 94%)", "border-color": "hsl(0, 0%, 94%)", color: "hsl(0, 0%, 30%)" } }, [e._v(" " + e._s(e._document.$t("vat").capitalize()) + " "), t("input", { staticStyle: { width: "2.
|
|
1238
|
+
}), 0) : t("span", { staticClass: "select-css tag-item no-chevron", staticStyle: { display: "inline", "min-height": "initial", background: "hsl(0, 0%, 94%)", "border-color": "hsl(0, 0%, 94%)", color: "hsl(0, 0%, 30%)" } }, [e._v(" " + e._s(e._document.$t("vat").capitalize()) + " "), t("input", { staticStyle: { width: "calc(2.5 * var(--rem))", display: "inline", background: "hsl(0, 0%, 94%)", "border-color": "hsl(0, 0%, 94%)", color: "hsl(0, 0%, 30%)" }, attrs: { type: "number" }, domProps: { value: e.article.vat || 0 }, on: { blur: e.onCustomVatBlur, input: e.onCustomVatInput } }), e._v(" % ")])] : e._e(), e.priceTypeOptions.length ? t("div", { staticClass: "tag-group", staticStyle: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "margin-top": "1em" } }, e._l(e.priceTypeOptions, function({ label: s, value: n, onClick: a, tooltip: r }, l) {
|
|
1239
1239
|
return t("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
|
|
1240
1240
|
content: r,
|
|
1241
1241
|
delay: { show: 300, hide: 0 }
|
|
@@ -1284,7 +1284,7 @@ var ht = function() {
|
|
|
1284
1284
|
mt,
|
|
1285
1285
|
!1,
|
|
1286
1286
|
null,
|
|
1287
|
-
"
|
|
1287
|
+
"0852370a",
|
|
1288
1288
|
null,
|
|
1289
1289
|
null
|
|
1290
1290
|
);
|
|
@@ -1434,7 +1434,7 @@ const gt = {
|
|
|
1434
1434
|
greenRot50: "greenRot50"
|
|
1435
1435
|
}, t = (s = []) => s.reduce((n, a) => ({ ...n, [a]: !1 }), {});
|
|
1436
1436
|
e[i] ? this.articles.forEach((s, n) => {
|
|
1437
|
-
const a = Object.values(
|
|
1437
|
+
const a = Object.values(S(e, [i]));
|
|
1438
1438
|
if (a.some((r) => !!s[r])) {
|
|
1439
1439
|
const r = { ...s, ...t(a) };
|
|
1440
1440
|
this.$emit("input", { index: n, value: r });
|
|
@@ -1453,7 +1453,7 @@ const gt = {
|
|
|
1453
1453
|
const { newIndex: n, element: a } = e;
|
|
1454
1454
|
this.$emit("insert", { index: n, value: a });
|
|
1455
1455
|
} else if (t) {
|
|
1456
|
-
const n =
|
|
1456
|
+
const n = C(this.articles, t.oldIndex, t.newIndex);
|
|
1457
1457
|
this.$emit("move", n);
|
|
1458
1458
|
} else if (s) {
|
|
1459
1459
|
const { oldIndex: n } = s;
|
|
@@ -1467,7 +1467,7 @@ var yt = function() {
|
|
|
1467
1467
|
return t("div", [e.showVatToggle ? t("div", { staticClass: "label-text" }, [e._v(" " + e._s(e.$t("vatOption.label")) + " "), t("span", { on: { click: function(s) {
|
|
1468
1468
|
return e.changeVat();
|
|
1469
1469
|
} } }, [e._v(" " + e._s(e._document.$t(`vat.${e.setPricesIncVat ? "incVat" : "exVat"}`)) + " ")])]) : e._e(), t("WithDimensions", { scopedSlots: e._u([{ key: "default", fn: function({ width: s }) {
|
|
1470
|
-
return [t("draggable", e._b({ staticStyle: { "min-height": "
|
|
1470
|
+
return [t("draggable", e._b({ staticStyle: { "min-height": "calc(3 * var(--rem))" }, attrs: { value: e.articles, group: "articles" }, on: { change: e.onChange } }, "draggable", {
|
|
1471
1471
|
sort: !0,
|
|
1472
1472
|
animation: 150,
|
|
1473
1473
|
ghostClass: "article-ghost",
|
|
@@ -1506,7 +1506,7 @@ var yt = function() {
|
|
|
1506
1506
|
_t,
|
|
1507
1507
|
!1,
|
|
1508
1508
|
null,
|
|
1509
|
-
"
|
|
1509
|
+
"8e5494e8",
|
|
1510
1510
|
null,
|
|
1511
1511
|
null
|
|
1512
1512
|
);
|
|
@@ -1536,17 +1536,17 @@ var bt = function() {
|
|
|
1536
1536
|
return e.$emit("input", s);
|
|
1537
1537
|
} } }, [e._v(" " + e._s(e.$t(`price.${s}`)) + " ")]);
|
|
1538
1538
|
})], 2)], 1);
|
|
1539
|
-
}, wt = [],
|
|
1539
|
+
}, wt = [], Ct = /* @__PURE__ */ c(
|
|
1540
1540
|
xt,
|
|
1541
1541
|
bt,
|
|
1542
1542
|
wt,
|
|
1543
1543
|
!1,
|
|
1544
1544
|
null,
|
|
1545
|
-
"
|
|
1545
|
+
"43eaaee7",
|
|
1546
1546
|
null,
|
|
1547
1547
|
null
|
|
1548
1548
|
);
|
|
1549
|
-
const
|
|
1549
|
+
const It = Ct.exports;
|
|
1550
1550
|
const Tt = {
|
|
1551
1551
|
name: "MaxTotalInput",
|
|
1552
1552
|
i18nOptions: {
|
|
@@ -1596,20 +1596,20 @@ const Tt = {
|
|
|
1596
1596
|
};
|
|
1597
1597
|
var At = function() {
|
|
1598
1598
|
var e = this, t = e._self._c;
|
|
1599
|
-
return t("div", { staticClass: "flex justify-end w-full" }, [t("BaseInput", { staticStyle: { "max-width": "275px", "margin-top": "
|
|
1599
|
+
return t("div", { staticClass: "flex justify-end w-full" }, [t("BaseInput", { staticStyle: { "max-width": "275px", "margin-top": "calc(1 * var(--rem))" }, attrs: { value: e.value, "is-price": !0, "is-inc-vat": e.isIncVat, vat: 25, placeholder: e.$t("maxTotalLabel") }, on: { input: function(s) {
|
|
1600
1600
|
return e.$emit("input", s);
|
|
1601
1601
|
} } }, [t("template", { slot: "prefix" }, [e._v(e._s(e.$t("price.maxPrice").capitalize()))]), t("template", { slot: "suffix" }, [e._v(e._s(e.getCurrencySymbol(e.currency)) + " " + e._s(e.$t(`vat.${e.isIncVat ? "incVat" : "exVat"}`, { thing: e.$t(`vat.${e.vatType}`) })))])], 2)], 1);
|
|
1602
|
-
},
|
|
1602
|
+
}, Pt = [], St = /* @__PURE__ */ c(
|
|
1603
1603
|
Tt,
|
|
1604
1604
|
At,
|
|
1605
|
-
|
|
1605
|
+
Pt,
|
|
1606
1606
|
!1,
|
|
1607
1607
|
null,
|
|
1608
|
-
"
|
|
1608
|
+
"096eca10",
|
|
1609
1609
|
null,
|
|
1610
1610
|
null
|
|
1611
1611
|
);
|
|
1612
|
-
const Vt =
|
|
1612
|
+
const Vt = St.exports;
|
|
1613
1613
|
const Dt = {
|
|
1614
1614
|
name: "EditDeduction",
|
|
1615
1615
|
components: {
|
|
@@ -1662,7 +1662,7 @@ var Rt = function() {
|
|
|
1662
1662
|
width: "90%",
|
|
1663
1663
|
maxWidth: 420,
|
|
1664
1664
|
classes: "primary"
|
|
1665
|
-
}, !1), [t("div", { staticClass: "flex flex-col items-center justify-between w-full deduction-modal" }, [t("div", { staticStyle: { "font-size": "calc(
|
|
1665
|
+
}, !1), [t("div", { staticClass: "flex flex-col items-center justify-between w-full deduction-modal" }, [t("div", { staticStyle: { "font-size": "calc(calc(1 * var(--rem)) + 2px)", "font-weight": "800", "text-align": "center", "margin-bottom": "calc(1.5 * var(--rem))" } }, [e._v(" " + e._s(e.$t("deduction.manualType", { type: e.houseWorkType })) + " ")]), t("div", { staticStyle: { "margin-bottom": "calc(1 * var(--rem))", width: "100%" } }, [t("BaseInput", { attrs: { "is-price": e.amountUnit === "fixed", placeholder: e.$t("enterThing", { thing: e.$t("deduction.deduction") }), type: "number", autofocus: "", size: "large" }, model: { value: e.internalValue, callback: function(s) {
|
|
1666
1666
|
e.internalValue = s;
|
|
1667
1667
|
}, expression: "internalValue" } }, [t("template", { slot: "suffix" }, [e._v(e._s(e.$t("currency.SEK")))])], 2)], 1), t("div", { staticClass: "flex w-full" }, e._l([
|
|
1668
1668
|
{ v: 0.09, l: "9%" },
|
|
@@ -1683,21 +1683,21 @@ var Rt = function() {
|
|
|
1683
1683
|
} } }, [e._v(" " + e._s(e.$t("reset")) + " ")])], 1)]), e.houseWorkManualAmount ? t("portal", { attrs: { order: 2, to: "document-nav-bottom" } }, [t("div", { staticClass: "housework-manual-nav", on: { click: function(s) {
|
|
1684
1684
|
return e.$modal.show(`deduction-modal-${e._uid}`);
|
|
1685
1685
|
} } }, [t("svg", { staticClass: "css-i6dzq1", staticStyle: { "margin-right": "0.5em" }, attrs: { viewBox: "0 0 24 24", width: "12", height: "12", stroke: "currentColor", "stroke-width": "2", fill: "none", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [t("path", { attrs: { 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" } }), t("line", { attrs: { x1: "12", y1: "9", x2: "12", y2: "13" } }), t("line", { attrs: { x1: "12", y1: "17", x2: "12.01", y2: "17" } })]), e._v(" " + e._s(e.$t("deduction.manualType", { type: e.houseWorkType })) + " " + e._s(e.$t("using")) + " ")])]) : e._e()], 1);
|
|
1686
|
-
}, Ot = [],
|
|
1686
|
+
}, Ot = [], Lt = /* @__PURE__ */ c(
|
|
1687
1687
|
Dt,
|
|
1688
1688
|
Rt,
|
|
1689
1689
|
Ot,
|
|
1690
1690
|
!1,
|
|
1691
1691
|
null,
|
|
1692
|
-
"
|
|
1692
|
+
"d2df9b4c",
|
|
1693
1693
|
null,
|
|
1694
1694
|
null
|
|
1695
1695
|
);
|
|
1696
|
-
const
|
|
1696
|
+
const Mt = Lt.exports;
|
|
1697
1697
|
const Bt = {
|
|
1698
1698
|
name: "Pricing",
|
|
1699
1699
|
components: {
|
|
1700
|
-
EditDeduction:
|
|
1700
|
+
EditDeduction: Mt
|
|
1701
1701
|
},
|
|
1702
1702
|
props: {
|
|
1703
1703
|
_document: {
|
|
@@ -1782,17 +1782,17 @@ var Et = function() {
|
|
|
1782
1782
|
s.action && s.action();
|
|
1783
1783
|
} } }, [t("svg", { attrs: { viewBox: "0 0 24 24", width: "15", height: "15", stroke: "currentColor", "stroke-width": "2.5", fill: "none", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [t("path", { attrs: { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" } }), t("path", { attrs: { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" } })])]) : e._e()]), t("div", { staticClass: "price-value" }, [e._v(" " + e._s(s.prefix) + " " + e._s(s.value) + " ")])]);
|
|
1784
1784
|
}), 0)]);
|
|
1785
|
-
}, zt = [],
|
|
1785
|
+
}, zt = [], Wt = /* @__PURE__ */ c(
|
|
1786
1786
|
Bt,
|
|
1787
1787
|
Et,
|
|
1788
1788
|
zt,
|
|
1789
1789
|
!1,
|
|
1790
1790
|
null,
|
|
1791
|
-
"
|
|
1791
|
+
"99d833c2",
|
|
1792
1792
|
null,
|
|
1793
1793
|
null
|
|
1794
1794
|
);
|
|
1795
|
-
const
|
|
1795
|
+
const Ft = Wt.exports;
|
|
1796
1796
|
const jt = {
|
|
1797
1797
|
name: "PackageItemEdit",
|
|
1798
1798
|
i18nOptions: {
|
|
@@ -1822,9 +1822,9 @@ const jt = {
|
|
|
1822
1822
|
},
|
|
1823
1823
|
components: {
|
|
1824
1824
|
ArticleList: $t,
|
|
1825
|
-
PriceFormAlternatives:
|
|
1825
|
+
PriceFormAlternatives: It,
|
|
1826
1826
|
MaxTotalInput: Vt,
|
|
1827
|
-
Pricing:
|
|
1827
|
+
Pricing: Ft,
|
|
1828
1828
|
TextEditor: ae
|
|
1829
1829
|
},
|
|
1830
1830
|
mixins: [y([
|
|
@@ -1945,7 +1945,7 @@ const jt = {
|
|
|
1945
1945
|
};
|
|
1946
1946
|
var Nt = function() {
|
|
1947
1947
|
var e = this, t = e._self._c;
|
|
1948
|
-
return t("div", { staticClass: "
|
|
1948
|
+
return t("div", { staticClass: "min-h-0 text-black bg-white border border-gray-200 rounded-md" }, [t("div", { staticClass: "flex items-center justify-between w-full py-1 pl-4 pr-1 text-sm font-medium text-gray-600 bg-gray-100" }, [t("div", [e._v(" " + e._s(e.type === "single" ? e.$t("single") : e.type === "radio" || e.toggable ? e.$t("option") : e.$t("base")) + " ")]), e.type !== "single" ? t("CDropdown", { staticClass: "ml-4" }, [t("CButton", { staticClass: "is-thinner opacity-70", attrs: { slot: "trigger", size: "small", type: "text", pattern: "secondary" }, slot: "trigger" }, [e._v(" " + e._s(e.$t("_common:change")) + " ")]), e.toggable ? [t("CDropdownItem", { attrs: { value: e.isSelectedDefault, toggle: !0, "close-on-click": !1 }, on: { click: function(s) {
|
|
1949
1949
|
return e.$emit("update:isSelectedDefault", !e.isSelectedDefault);
|
|
1950
1950
|
} } }, [e._v(" " + e._s(e.$t("selected")) + " ")]), t("CDropdownItem", { attrs: { separator: "" } })] : e._e(), t("CDropdownItem", { attrs: { "icon-left": "arrow-up", disabled: !e.moveOptions.up }, on: { click: function(s) {
|
|
1951
1951
|
return e.$emit("move", -1);
|
|
@@ -1953,11 +1953,11 @@ var Nt = function() {
|
|
|
1953
1953
|
return e.$emit("move", 1);
|
|
1954
1954
|
} } }, [e._v(" " + e._s(e.$t("_common:move", { thing: e.$t("_common:down") })) + " ")]), t("CDropdownItem", { attrs: { "icon-props": {
|
|
1955
1955
|
stroke: "red"
|
|
1956
|
-
}, "icon-left": "trash" }, on: { click: e.onRemove } }, [e._v(" " + e._s(e.$t("_common:remove")) + " ")])], 2) : e._e()], 1), t("div", {
|
|
1956
|
+
}, "icon-left": "trash" }, on: { click: e.onRemove } }, [e._v(" " + e._s(e.$t("_common:remove")) + " ")])], 2) : e._e()], 1), t("div", { staticClass: "p-4" }, [t("div", { staticClass: "flex items-center mb-0.5" }, [t("input", { directives: [{ name: "model", rawName: "v-model", value: e.name, expression: "name" }], staticClass: "block w-full p-0 text-xl font-bold leading-loose rounded-lg placeholder:text-gray-400", attrs: { id: `package-name-${e.packageId}`, placeholder: e.$t("namePlaceholder") }, domProps: { value: e.name }, on: { keyup: function(s) {
|
|
1957
1957
|
return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.$refs.editor.focus();
|
|
1958
1958
|
}, input: function(s) {
|
|
1959
1959
|
s.target.composing || (e.name = s.target.value);
|
|
1960
|
-
} } })]), t("TextEditor", { ref: "editor", staticClass: "text-editor",
|
|
1960
|
+
} } })]), t("TextEditor", { ref: "editor", staticClass: "mb-4 text-editor", attrs: { placeholder: e.$t("textPlaceholder"), mentions: () => e._document.textTemplateItems, snippets: !0 }, model: { value: e.internalDescription, callback: function(s) {
|
|
1961
1961
|
e.internalDescription = s;
|
|
1962
1962
|
}, expression: "internalDescription" } }), t("div", { directives: [{ name: "click-outside", rawName: "v-click-outside", value: () => {
|
|
1963
1963
|
e.isFocus = !1, e.isHover = !1;
|
|
@@ -1965,7 +1965,7 @@ var Nt = function() {
|
|
|
1965
1965
|
e.isHover = !0;
|
|
1966
1966
|
}, "&mouseleave": function(s) {
|
|
1967
1967
|
e.isHover = !1;
|
|
1968
|
-
} } }, [e.priceType === "openAccMaxPrice" ? t("MaxTotalInput", {
|
|
1968
|
+
} } }, [e.priceType === "openAccMaxPrice" ? t("MaxTotalInput", { staticClass: "mb-4", attrs: { currency: e.currency, "vat-type": e._document.vatType }, model: { value: e.maxTotal, callback: function(s) {
|
|
1969
1969
|
e.maxTotal = s;
|
|
1970
1970
|
}, expression: "maxTotal" } }) : e._e(), t("PriceFormAlternatives", { on: { input: function(s) {
|
|
1971
1971
|
return e.$emit("update:priceType", s);
|
|
@@ -1977,15 +1977,15 @@ var Nt = function() {
|
|
|
1977
1977
|
return e.$emit("update:currency", s);
|
|
1978
1978
|
}, move: e.onArticleMove, remove: e.onArticleRemove, add: e.onArticleAdd, focus: function(s) {
|
|
1979
1979
|
e.isFocus = !0;
|
|
1980
|
-
}, insert: e.onInsert } }), t("div", { staticClass: "flex
|
|
1980
|
+
}, insert: e.onInsert } }), t("div", { staticClass: "flex gap-2 mt-2" }, [t("div", { staticClass: "text-gray-500 bg-gray-100 border border-gray-200 p-2.5 text-center text-sm font-medium leading-none rounded-md cursor-pointer transition-colors hover:border-gray-400 hover:bg-gray-500 hover:text-white", on: { click: function(s) {
|
|
1981
1981
|
return e.onArticleAdd();
|
|
1982
|
-
} } }, [t("BaseIcon", {
|
|
1982
|
+
} } }, [t("BaseIcon", { staticClass: "mr-1", attrs: { type: "plus", size: "16", "stroke-width": "3" } }), e._v(" " + e._s(e.$t("addButton")) + " ")], 1), t("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
|
|
1983
1983
|
content: e.$t("advancedButtonTooltip"),
|
|
1984
1984
|
offset: 6
|
|
1985
1985
|
}, expression: `{
|
|
1986
1986
|
content: $t('advancedButtonTooltip'),
|
|
1987
1987
|
offset: 6,
|
|
1988
|
-
}` }], staticClass: "
|
|
1988
|
+
}` }], staticClass: "text-gray-500 bg-gray-100 border border-gray-200 p-2.5 text-center text-sm font-medium leading-none rounded-md cursor-pointer transition-colors hover:border-gray-400 hover:bg-gray-500 hover:text-white", on: { click: function(s) {
|
|
1989
1989
|
return e.onArticleAdd({ openModal: !0 });
|
|
1990
1990
|
} } }, [t("BaseIcon", { attrs: { type: "zap", size: "16", "stroke-width": "2.5" } })], 1)]), t("Pricing", e._g({ attrs: { _document: e._document, "base-path": `${e._value.basePath}`, "package-id": e.packageId } }, e.$listeners))], 1)], 1)]);
|
|
1991
1991
|
}, Ht = [], qt = /* @__PURE__ */ c(
|
|
@@ -1994,7 +1994,7 @@ var Nt = function() {
|
|
|
1994
1994
|
Ht,
|
|
1995
1995
|
!1,
|
|
1996
1996
|
null,
|
|
1997
|
-
"
|
|
1997
|
+
"b5ac9679",
|
|
1998
1998
|
null,
|
|
1999
1999
|
null
|
|
2000
2000
|
);
|
|
@@ -2068,7 +2068,7 @@ const Gt = {
|
|
|
2068
2068
|
};
|
|
2069
2069
|
var Kt = function() {
|
|
2070
2070
|
var e = this, t = e._self._c;
|
|
2071
|
-
return t("div", { staticClass: "font-inter", staticStyle: { padding: "
|
|
2071
|
+
return t("div", { staticClass: "font-inter", staticStyle: { padding: "calc(2 * var(--rem)) 0 calc(1 * var(--rem)) 0", color: "#111" } }, [t("div", { staticStyle: { "font-size": "18px", "font-weight": "600", "text-align": "center", "margin-bottom": "calc(1.5 * var(--rem))" } }, [e._v(" " + e._s(e.$t("title")) + " ")]), t("div", [t("div", { staticClass: "options", class: { "is-700-or-less": e.parentSize.width <= 700 } }, e._l(e.options, function(s, n) {
|
|
2072
2072
|
return t("div", { key: n, staticClass: "package-group-option", style: { backgroundColor: s.background }, on: { click: function(a) {
|
|
2073
2073
|
return e.$emit("input", s.value);
|
|
2074
2074
|
} } }, [t("div", { staticClass: "package-group-option__illustration" }, [s.value === "single" ? t("div", { staticClass: "package-group-option__illustration-card animate" }, [e._m(0, !0)]) : e._e(), s.value === "radio" ? e._l(3, function(a) {
|
|
@@ -2079,20 +2079,20 @@ var Kt = function() {
|
|
|
2079
2079
|
}), 0)])]);
|
|
2080
2080
|
}, Yt = [function() {
|
|
2081
2081
|
var i = this, e = i._self._c;
|
|
2082
|
-
return e("div", { staticStyle: { flex: "1 1 auto" } }, [e("div", { staticClass: "
|
|
2082
|
+
return e("div", { staticStyle: { flex: "1 1 auto" } }, [e("div", { staticClass: "bg-gray-100", staticStyle: { width: "40%", height: "10px", "margin-bottom": "8px" } }), e("div", { staticClass: "bg-gray-100", staticStyle: { width: "80%", height: "10px" } })]);
|
|
2083
2083
|
}, function() {
|
|
2084
2084
|
var i = this, e = i._self._c;
|
|
2085
|
-
return e("div", { staticStyle: { flex: "1 1 auto" } }, [e("div", { staticClass: "
|
|
2085
|
+
return e("div", { staticStyle: { flex: "1 1 auto" } }, [e("div", { staticClass: "bg-gray-100", staticStyle: { width: "40%", height: "10px", "margin-bottom": "8px" } }), e("div", { staticClass: "bg-gray-100", staticStyle: { width: "80%", height: "10px" } })]);
|
|
2086
2086
|
}, function() {
|
|
2087
2087
|
var i = this, e = i._self._c;
|
|
2088
|
-
return e("div", { staticStyle: { flex: "1 1 auto" } }, [e("div", { staticClass: "
|
|
2088
|
+
return e("div", { staticStyle: { flex: "1 1 auto" } }, [e("div", { staticClass: "bg-gray-100", staticStyle: { width: "40%", height: "10px", "margin-bottom": "8px" } }), e("div", { staticClass: "bg-gray-100", staticStyle: { width: "80%", height: "10px" } })]);
|
|
2089
2089
|
}], Zt = /* @__PURE__ */ c(
|
|
2090
2090
|
Gt,
|
|
2091
2091
|
Kt,
|
|
2092
2092
|
Yt,
|
|
2093
2093
|
!1,
|
|
2094
2094
|
null,
|
|
2095
|
-
"
|
|
2095
|
+
"ac7ba955",
|
|
2096
2096
|
null,
|
|
2097
2097
|
null
|
|
2098
2098
|
);
|
|
@@ -2135,7 +2135,7 @@ const Qt = {
|
|
|
2135
2135
|
}
|
|
2136
2136
|
},
|
|
2137
2137
|
components: {
|
|
2138
|
-
ErrorCallout:
|
|
2138
|
+
ErrorCallout: P,
|
|
2139
2139
|
PackageItem: Ut,
|
|
2140
2140
|
PackageGroupSelect: Jt
|
|
2141
2141
|
},
|
|
@@ -2245,7 +2245,7 @@ const Qt = {
|
|
|
2245
2245
|
} = this.persistedGroup;
|
|
2246
2246
|
if (!e.length)
|
|
2247
2247
|
return;
|
|
2248
|
-
if (i !== this.persistedGroup.type && (e =
|
|
2248
|
+
if (i !== this.persistedGroup.type && (e = Me(i, e)), i === "single" && t.length) {
|
|
2249
2249
|
const [{ packageId: n }] = e;
|
|
2250
2250
|
t = t.filter((a) => a.packageId === n);
|
|
2251
2251
|
}
|
|
@@ -2310,7 +2310,7 @@ const Qt = {
|
|
|
2310
2310
|
return i > 0 && (t.up = !0), i < e - 1 && (t.down = !0), t;
|
|
2311
2311
|
},
|
|
2312
2312
|
moveItem(i, e) {
|
|
2313
|
-
const t =
|
|
2313
|
+
const t = C(this.packages, i, e);
|
|
2314
2314
|
this.$emit("input", { key: this._value.packages, value: t });
|
|
2315
2315
|
}
|
|
2316
2316
|
}
|
|
@@ -2319,10 +2319,10 @@ var Xt = function() {
|
|
|
2319
2319
|
var e = this, t = e._self._c;
|
|
2320
2320
|
return t("div", { staticClass: "package-group-root font-inter" }, [e.type ? [t("div", { staticStyle: { position: "absolute", right: "0", top: "-10px", transform: "translateY(-100%)", "z-index": "2" } }, [t("CDropdown", [t("CButton", { attrs: { slot: "trigger", type: "none", size: "normal", pattern: "secondary", icon: "more-horizontal", circle: "" }, slot: "trigger" }), t("CDropdownItem", { on: { click: e.onResetType } }, [e._v(e._s(e.$t("_common:change", { thing: e.$t("_common:price.proposal").toLowerCase() })))]), t("CDropdownItem", { attrs: { value: !!e.hideGroupPrice, "close-on-click": !1, toggle: "" }, on: { input: function(s) {
|
|
2321
2321
|
e.hideGroupPrice = s;
|
|
2322
|
-
} } }, [e._v(" " + e._s(e.$t("hideGroupPrice")) + " ")])], 1)], 1), e.type === "checkbox" && !e.internalPackages.find((s) => s.toggable === !1) ? t("CCallout", {
|
|
2322
|
+
} } }, [e._v(" " + e._s(e.$t("hideGroupPrice")) + " ")])], 1)], 1), e.type === "checkbox" && !e.internalPackages.find((s) => s.toggable === !1) ? t("CCallout", { staticClass: "w-full", attrs: { title: e.$t("base") } }, [t("div", { staticClass: "pb-4" }, [e._v(" " + e._s(e.$t("basePlaceholder")) + " ")]), t("CButton", { staticStyle: { "font-weight": "600" }, attrs: { type: "secondary", size: "small" }, on: { click: function(s) {
|
|
2323
2323
|
return e.addPackage({ isSelected: !0, isSelectedDefault: !0, toggable: !1 });
|
|
2324
2324
|
} } }, [e._v(" " + e._s(e.$t("_common:add", { thing: e.$t("base").toLowerCase() })) + " ")])], 1) : t("transition-group", { attrs: { name: "section-list", tag: "div" } }, e._l(e.topRowPackages, function(s, n) {
|
|
2325
|
-
return t("div", { key: s.packageId, staticClass: "section-item"
|
|
2325
|
+
return t("div", { key: s.packageId, staticClass: "pb-4 section-item" }, [t("PackageItem", { attrs: { _document: e._document, _value: {
|
|
2326
2326
|
isSelectedDefault: `${e._value.packages}[${s.index}].isSelectedDefault`,
|
|
2327
2327
|
isSelected: `${e._value.packages}[${s.index}].isSelected`,
|
|
2328
2328
|
name: `${e._value.packages}[${s.index}].data.name`,
|
|
@@ -2344,8 +2344,8 @@ var Xt = function() {
|
|
|
2344
2344
|
}, move: function(a) {
|
|
2345
2345
|
return e.moveItem(s.index, e.topRowPackages[n + a].index);
|
|
2346
2346
|
} } })], 1);
|
|
2347
|
-
}), 0), e.type === "checkbox" && e.topRowPackages.length && e.bottomRowPackages.length ? t("div", { staticStyle: { width: "
|
|
2348
|
-
return t("div", { key: s.packageId, staticClass: "section-item", staticStyle: { padding: "
|
|
2347
|
+
}), 0), e.type === "checkbox" && e.topRowPackages.length && e.bottomRowPackages.length ? t("div", { staticStyle: { width: "calc(5 * var(--rem))", height: "1px", "margin-left": "calc(50% - calc(2.5 * var(--rem)))", "border-top": "2px dashed hsl(0, 0%, 85%)" } }) : e._e(), e.type === "checkbox" ? [t("transition-group", { staticStyle: { "margin-bottom": "calc(1 * var(--rem))" }, attrs: { name: "section-list", tag: "div" } }, e._l(e.bottomRowPackages, function(s, n) {
|
|
2348
|
+
return t("div", { key: s.packageId, staticClass: "section-item", staticStyle: { padding: "calc(1 * var(--rem)) 0" } }, [t("PackageItem", { staticClass: "package-item", attrs: { _document: e._document, _value: {
|
|
2349
2349
|
isSelectedDefault: `${e._value.packages}[${s.index}].isSelectedDefault`,
|
|
2350
2350
|
isSelected: `${e._value.packages}[${s.index}].isSelected`,
|
|
2351
2351
|
name: `${e._value.packages}[${s.index}].data.name`,
|
|
@@ -2367,18 +2367,18 @@ var Xt = function() {
|
|
|
2367
2367
|
}, move: function(a) {
|
|
2368
2368
|
return e.moveItem(s.index, e.bottomRowPackages[n + a].index);
|
|
2369
2369
|
} } })], 1);
|
|
2370
|
-
}), 0)] : e._e(), e.type !== "single" || !e.packages.length ? t("div", { staticClass: "flex flex-col items-center justify-center w-full" }, [t("div", { staticStyle: { width: "100%" } }, [e.type === "radio" && !e.packages.length ? t("div", { staticClass: "package-placeholder
|
|
2370
|
+
}), 0)] : e._e(), e.type !== "single" || !e.packages.length ? t("div", { staticClass: "flex flex-col items-center justify-center w-full" }, [t("div", { staticStyle: { width: "100%" } }, [e.type === "radio" && !e.packages.length ? t("div", { staticClass: "bg-gray-100 package-placeholder", staticStyle: { color: "hsl(0, 0%, 24%)", "font-weight": "500" } }, [t("svg", { staticStyle: { "vertical-align": "text-bottom", "margin-right": "3px" }, attrs: { width: "16", height: "16", viewBox: "0 0 18 14", xmlns: "http://www.w3.org/2000/svg" } }, [t("path", { attrs: { 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", fill: "#000", "fill-rule": "evenodd" } })]), e._v(" " + e._s(e.$t("selectablePlaceholder")) + " ")]) : e._e()]), e.validator.$invalid && e.validator.$dirty ? t("ErrorCallout", { staticStyle: { margin: "calc(1 * var(--rem)) 0 calc(1 * var(--rem)) 0" }, attrs: { message: e.$t("error.minOnePackage") } }) : e._e(), t("div", { staticClass: "flex w-full" }, [t("CButton", { staticStyle: { "border-color": "hsl(0, 0%, 82%)" }, attrs: { type: "secondary", outlined: "", "icon-left": "plus" }, on: { click: function(s) {
|
|
2371
2371
|
return e.addPackage();
|
|
2372
2372
|
} } }, [e._v(" " + e._s(e.$t("add")) + " ")])], 1)], 1) : e._e()] : t("div", [t("PackageGroupSelect", { on: { input: function(s) {
|
|
2373
2373
|
return e.onSelectType(s);
|
|
2374
|
-
} } }), e.validator.$invalid && e.validator.$dirty ? t("ErrorCallout", { staticStyle: { "padding-bottom": "1.
|
|
2374
|
+
} } }), e.validator.$invalid && e.validator.$dirty ? t("ErrorCallout", { staticStyle: { "padding-bottom": "calc(1.5 * var(--rem))" }, attrs: { message: e.$t("error.selectType") } }) : e._e()], 1)], 2);
|
|
2375
2375
|
}, ei = [], ti = /* @__PURE__ */ c(
|
|
2376
2376
|
Qt,
|
|
2377
2377
|
Xt,
|
|
2378
2378
|
ei,
|
|
2379
2379
|
!1,
|
|
2380
2380
|
null,
|
|
2381
|
-
"
|
|
2381
|
+
"b0860d65",
|
|
2382
2382
|
null,
|
|
2383
2383
|
null
|
|
2384
2384
|
);
|