@cling-se/widget 0.14.6 → 1.0.0-beta.1
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/.eslintrc.cjs +4 -4
- package/README.md +40 -40
- package/dist/{AddClientCallout-C7abPZ87.js → AddClientCallout-BWnvyBcK.js} +3 -3
- package/dist/{AnswerModal-CsA2pl2P.js → AnswerModal-CLGRdSnK.js} +7 -7
- package/dist/{AttachmentItem-Da1-7xwf.js → AttachmentItem-BPS0-wyc.js} +3 -3
- package/dist/{BaseDatePicker-k9zlSi5J.js → BaseDatePicker-BbmV_GdD.js} +2 -2
- package/dist/{BaseUpload-BUrXX3fT.js → BaseUpload-9gPgI7r6.js} +3 -3
- package/dist/{BlockMedia-CYI07qAn.js → BlockMedia-DkPFWiYL.js} +2 -2
- package/dist/{CCallout-Qwae66vo.js → CCallout-T26jwUby.js} +4 -4
- package/dist/{CCurrencyDropdown-Y_u0hgBx.js → CCurrencyDropdown-qH-3m2eP.js} +4 -4
- package/dist/{CDropdownItem-CXJ4xD8W.js → CDropdownItem-BE8BAMD1.js} +167 -69
- package/dist/{CFormField--m3PvQuT.js → CFormField-DECEfoVq.js} +1 -1
- package/dist/{CPhoneFormat-Qg6MkDVP.js → CPhoneFormat-CfQayFxw.js} +1 -1
- package/dist/{CPriceInput-Dlx44UrR.js → CPriceInput-C4SOB-P5.js} +2 -2
- package/dist/{ClientAutocomplete-BKKc_br6.js → ClientAutocomplete-DSebA1Mx.js} +3 -3
- package/dist/{ClientModal-CVZFb1Br.js → ClientModal-BXFYvYCF.js} +6 -6
- package/dist/{ColorPicker-Bo3s3Esp.js → ColorPicker-CZ_bJabP.js} +2 -2
- package/dist/{CompanyModal-DadjAioS.js → CompanyModal-CDr3t28n.js} +5 -5
- package/dist/{ContentWrapper-BC3ZBQW9.js → ContentWrapper-BwmMoe4W.js} +9 -9
- package/dist/{CoverBlockSettings-B484eE4g.js → CoverBlockSettings-_F11-DGc.js} +11 -11
- package/dist/{DocAnswer-CcYryOWI.js → DocAnswer-BR59xzkT.js} +2 -2
- package/dist/{DocDetails-BigsoEWL.js → DocDetails-D1qbCbps.js} +43 -30
- package/dist/{DocForm-DlN0eNWt.js → DocForm-DBc2a7z5.js} +91 -92
- package/dist/{DocFormSend-TqKo210I.js → DocFormSend-Casix-yG.js} +4 -3
- package/dist/{DocLinks-DSo54vDn.js → DocLinks-DGTaewyX.js} +2 -2
- package/dist/{DocModalBase-XlM1SThW.js → DocModalBase-BbS_qvSv.js} +2 -2
- package/dist/{DocPrint-tD0Vd9Sw.js → DocPrint-0PqX3mbJ.js} +2 -2
- package/dist/{DocReceipt-CDHPrhXM.js → DocReceipt-CU3VD5pt.js} +1 -1
- package/dist/{DocSendReminder-C62RhltH.js → DocSendReminder-CuycBspr.js} +1 -1
- package/dist/{DocTextEditor-VjhV9IRp.js → DocTextEditor-CntS2Bd-.js} +21 -22
- package/dist/{DocTimeline-LcW4z3nC.js → DocTimeline-DJuv3yBe.js} +1 -1
- package/dist/{DocumentClient-CqbTRdpB.js → DocumentClient-C25XXzz6.js} +5 -5
- package/dist/{DocumentLayout-Dbf8_01r.js → DocumentLayout-B7afHRMr.js} +6 -6
- package/dist/{DocumentLogotype-DXYnBedV.js → DocumentLogotype-sqI51wvM.js} +4 -4
- package/dist/{DocumentVoided-vH1Ti5lZ.js → DocumentVoided-TahdTSMn.js} +1 -1
- package/dist/{EmbedInput-D9qP8OnY.js → EmbedInput-BY-wHSfc.js} +2 -2
- package/dist/{EmbedSettings-DISuNqJT.js → EmbedSettings-8pfjk4NP.js} +3 -3
- package/dist/{ErrorCallout-CCtCVwSh.js → ErrorCallout-Dsr8PNsU.js} +5 -5
- package/dist/{FilePreviewModal-BjhNyb6L.js → FilePreviewModal-CcEinEFg.js} +3 -3
- package/dist/{Flag-Dhukv9_J.js → Flag-PJKrghi9.js} +1 -1
- package/dist/{HeaderSettings-CK4SkB1x.js → HeaderSettings-BqczIOsG.js} +9 -9
- package/dist/{ImageSelectModal-DnvPZzXx.js → ImageSelectModal-Cd-HhKnH.js} +4 -4
- package/dist/{ImageUploadWrapper-B7cNMu5a.js → ImageUploadWrapper-Dv43rGdb.js} +3 -3
- package/dist/{Index-CPJVx14x.js → Index--qPMWUMT.js} +4 -4
- package/dist/{Index-Bh0kMSsA.js → Index-6b5VBKE-.js} +5 -5
- package/dist/{Index-B3HoK_cZ.js → Index-B4pRJnbw.js} +9 -9
- package/dist/{Index-B9H5MMHb.js → Index-B69f8qgZ.js} +5 -5
- package/dist/{Index-dyWK9jgr.js → Index-B79YN9RO.js} +4 -4
- package/dist/{Index-Bs8wprXw.js → Index-BBrlPoe8.js} +4 -4
- package/dist/{Index-D6bc7lg4.js → Index-BXfWJCuq.js} +3 -3
- package/dist/{Index-DtSSgtxB.js → Index-Bd76vb37.js} +5 -5
- package/dist/{Index-lKk_XKJ3.js → Index-BmbtQO5F.js} +5 -5
- package/dist/{Index-CNvp5K3L.js → Index-Bu0MGrj6.js} +8 -8
- package/dist/{Index-DuTw9vhb.js → Index-ByV_kJaH.js} +15 -15
- package/dist/{Index-CWrDtcfT.js → Index-CDV5rhWS.js} +4 -4
- package/dist/{Index-BlQSM7tC.js → Index-CIx4OOK-.js} +9 -9
- package/dist/{Index-CyJnSvDR.js → Index-CL1OWLt6.js} +38 -38
- package/dist/{Index-Dw26jtGV.js → Index-Caow0eZu.js} +5 -5
- package/dist/{Index-S-FHG7_k.js → Index-Cd3-3PEK.js} +316 -316
- package/dist/{Index-BY1UKGEO.js → Index-CdpZBEKU.js} +7 -7
- package/dist/{Index-BAYdvT-t.js → Index-CmU3Sys-.js} +2 -2
- package/dist/{Index-OxN73_fO.js → Index-CtRtgnpm.js} +5 -5
- package/dist/{Index-CQ325eVT.js → Index-Cukkr33D.js} +4 -4
- package/dist/{Index-gb11ngPS.js → Index-Cuqw0ios.js} +3 -3
- package/dist/{Index-B3aucNji.js → Index-Czm_WdqC.js} +4 -4
- package/dist/{Index-Dm8xMFGg.js → Index-D4XgxmbD.js} +2 -2
- package/dist/{Index-D_rfst8y.js → Index-DIOiMm9f.js} +2 -2
- package/dist/{Index-DCR8ev4U.js → Index-DNdYXHgr.js} +4 -4
- package/dist/{Index-BLeQprjq.js → Index-DcQbh-z2.js} +2 -2
- package/dist/{Index-BpcJBGGd.js → Index-DcuBxutp.js} +59 -59
- package/dist/{Index-DXAvlq74.js → Index-DpWNWiyY.js} +13 -14
- package/dist/{Index-DGQSB9cH.js → Index-DzS1rZdF.js} +3 -3
- package/dist/{Index-CFo-3Y5Q.js → Index-N6s5pZxv.js} +7 -7
- package/dist/{Index-ZFkitzfq.js → Index-g_DNu4mt.js} +5 -5
- package/dist/{Index-BOyvQlng.js → Index-mJ8F41GY.js} +6 -6
- package/dist/{Index-BvZZAvFd.js → Index-q7W9KA8m.js} +2 -2
- package/dist/{Index-BVsw2tak.js → Index-rtzblZp4.js} +6 -6
- package/dist/{InputToggleRow-DSSvhPKA.js → InputToggleRow-CZjxsDOQ.js} +2 -2
- package/dist/{ManualPopover-lpJYSkw5.js → ManualPopover-CZrWiT-P.js} +1 -1
- package/dist/{MediaWrapper-BQ22FA2B.js → MediaWrapper-D37qK4KR.js} +3 -3
- package/dist/{NotBindingText-JxwzZLPP.js → NotBindingText-CNV2Wmdx.js} +2 -2
- package/dist/{PackageGroup-BLSMSUDz.js → PackageGroup-Heo_s8ct.js} +10 -10
- package/dist/{PdfTerms-DtutjM5Y.js → PdfTerms-AB9tXAtU.js} +3 -3
- package/dist/{PdfViewer-BsxcZI_x.js → PdfViewer-CIVkvOBr.js} +12 -13
- package/dist/{PlainHtml-BMPZs2fT.js → PlainHtml-CPmIebjY.js} +1 -1
- package/dist/{PriceHeader-BRYY01H2.js → PriceHeader-DhDAruwX.js} +13 -13
- package/dist/{SearchApi-6001iFxU.js → SearchApi-BMgdaI4s.js} +2 -2
- package/dist/{Setup-cw6jMI9M.js → Setup-VIaIV9uT.js} +1 -1
- package/dist/{SmartList-q6H-uLbm.js → SmartList-Qgu0rMrI.js} +1 -1
- package/dist/{TermsSettings-DWvaPneu.js → TermsSettings-CE3h_xkm.js} +4 -4
- package/dist/{ThemeColorRow-BXWnvfz-.js → ThemeColorRow-DYJNgk6S.js} +4 -4
- package/dist/{ToggleBinding-DydtwpNG.js → ToggleBinding-CuwCeYpO.js} +3 -3
- package/dist/{UploadModal-D_EDKHGD.js → UploadModal-BITcxG-J.js} +3 -3
- package/dist/{VideoPlayerInput-B9yzUeBW.js → VideoPlayerInput-8szEX_8L.js} +3 -3
- package/dist/{VideoPlayerSettings-Bvp9l0yj.js → VideoPlayerSettings-BIPytm6w.js} +3 -3
- package/dist/{VideoSelectModal-DY3N4JiS.js → VideoSelectModal-B-Pe34nb.js} +4 -4
- package/dist/{answerDocumentMixin-BYZPU_R-.js → answerDocumentMixin-W7vE1Gp4.js} +3 -3
- package/dist/{debounce-BPnlzNwd.js → debounce-C1AuSpOZ.js} +1 -1
- package/dist/{focusDrawerMixin-DC9Oa1i7.js → focusDrawerMixin-Be6BAK8-.js} +1 -1
- package/dist/{formComponentsInstall-CEW6TK6z.js → formComponentsInstall-Bm3VMOh6.js} +51 -43
- package/dist/{formDrawerState-CAzvSMiQ.js → formDrawerState-DRbg5rVI.js} +1 -1
- package/dist/{formValidationMixin-D7zXxCpC.js → formValidationMixin-COkY8COk.js} +2 -2
- package/dist/{index-BbscgdRg.js → index-BFvjENMH.js} +1 -1
- package/dist/{index-BDMI4NVY.js → index-BV2nGWay.js} +1 -1
- package/dist/{index-B9WDC3Xe.js → index-BgJ05dYc.js} +10 -11
- package/dist/{index-CLUljEDI.js → index-CMPAXxzs.js} +8 -8
- package/dist/{index-BCMaUC5r.js → index-DNDjI5uI.js} +7 -7
- package/dist/{index-SxyZvewN.js → index-aoff9oUi.js} +2 -2
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +106 -106
- package/dist/{main-CQBEuZk9.js → main-WKzC-Dnu.js} +879 -878
- package/dist/{mapFormMixin-DlFcgwhm.js → mapFormMixin-QbevCwJK.js} +1 -1
- package/dist/{omit-BWy0Zhd3.js → omit-CTp9CXoU.js} +1 -1
- package/dist/{publicSenderState-CvOcFv2U.js → publicSenderState-BujjYsZZ.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{throttle-BrC8eGjQ.js → throttle-CWPJmFid.js} +2 -2
- package/dist/{tinycolor-PhFP695w.js → tinycolor-kTl0yxzz.js} +1 -1
- package/dist/{tippy.esm-7dmKOUvu.js → tippy.esm-sS5koDSU.js} +6 -6
- package/dist/{utils-NBLgNGHR.js → utils-CA_Zy6u1.js} +1 -1
- package/dist/{vuedraggable.umd-ByfH7ZxC.js → vuedraggable.umd-BA3ZDRAp.js} +1 -1
- package/package.json +1 -1
- package/tsconfig.json +26 -26
- package/tsconfig.node.json +10 -10
- package/tsconfig.paths.json +17 -17
- package/vite.config.ts +60 -60
- package/dist/dom-CJxkno7i.js +0 -91
- /package/dist/{CTabs.vue_vue_type_style_index_0_scoped_b7262014_lang-l0sNRNKZ.js → CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n, w as l } from "./main-
|
|
2
|
-
const
|
|
1
|
+
import { n, w as l } from "./main-WKzC-Dnu.js";
|
|
2
|
+
const d = {
|
|
3
3
|
name: "MultiGroupPricing",
|
|
4
4
|
props: {
|
|
5
5
|
_document: {
|
|
@@ -9,7 +9,7 @@ const p = {
|
|
|
9
9
|
},
|
|
10
10
|
computed: {
|
|
11
11
|
docPriceItems() {
|
|
12
|
-
const { total:
|
|
12
|
+
const { total: c, subTotal: t } = this._document.prices || {};
|
|
13
13
|
return [
|
|
14
14
|
{
|
|
15
15
|
label: this._document.$t("price.net"),
|
|
@@ -17,14 +17,14 @@ const p = {
|
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
label: this._document.$t("price.total"),
|
|
20
|
-
value: this.priceFormat(
|
|
20
|
+
value: this.priceFormat(c)
|
|
21
21
|
}
|
|
22
22
|
];
|
|
23
23
|
},
|
|
24
24
|
pkgGroups() {
|
|
25
25
|
var t;
|
|
26
26
|
return (((t = this._document.packageGroups) == null ? void 0 : t.groups) || []).map(({ title: e, prices: r, selectedPackages: i }) => {
|
|
27
|
-
const { total:
|
|
27
|
+
const { total: a, subTotal: s } = r || {};
|
|
28
28
|
return {
|
|
29
29
|
title: e,
|
|
30
30
|
noOfSelectedPackages: i.length,
|
|
@@ -35,7 +35,7 @@ const p = {
|
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
label: this._document.$t("price.total"),
|
|
38
|
-
value: this.priceFormat(
|
|
38
|
+
value: this.priceFormat(a)
|
|
39
39
|
}
|
|
40
40
|
]
|
|
41
41
|
};
|
|
@@ -43,8 +43,8 @@ const p = {
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
methods: {
|
|
46
|
-
priceFormat(
|
|
47
|
-
return l(
|
|
46
|
+
priceFormat(c, t) {
|
|
47
|
+
return l(c, {
|
|
48
48
|
currency: this._document.currency,
|
|
49
49
|
showZero: !0,
|
|
50
50
|
decimals: 2,
|
|
@@ -54,22 +54,22 @@ const p = {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
-
var
|
|
57
|
+
var p = function() {
|
|
58
58
|
var t = this, e = t._self._c;
|
|
59
59
|
return e("div", [t._l(t.pkgGroups, function(r, i) {
|
|
60
|
-
return e("div", { key: i, staticStyle: { padding: "calc(0.5 * var(--rem)) 0" } }, [e("div", { staticStyle: { display: "flex", "font-size": "calc(1.1 * var(--rem))", "font-weight": "600", "padding-bottom": "3px", "border-bottom": "1px solid rgba(0, 0, 0, 0.2)" } }, [t._v(" " + t._s(r.title) + " "), e("span", { staticClass: "text-gray-400", staticStyle: { "margin-left": "auto", "font-size": "calc(1 * var(--rem))" } }, [t._v(" " + t._s(r.noOfSelectedPackages) + " paket ")])]), t._l(r.priceItems, function({ label:
|
|
61
|
-
return e("div", { key:
|
|
60
|
+
return e("div", { key: i, staticStyle: { padding: "calc(0.5 * var(--rem)) 0" } }, [e("div", { staticStyle: { display: "flex", "font-size": "calc(1.1 * var(--rem))", "font-weight": "600", "padding-bottom": "3px", "border-bottom": "1px solid rgba(0, 0, 0, 0.2)" } }, [t._v(" " + t._s(r.title) + " "), e("span", { staticClass: "text-gray-400", staticStyle: { "margin-left": "auto", "font-size": "calc(1 * var(--rem))" } }, [t._v(" " + t._s(r.noOfSelectedPackages) + " paket ")])]), t._l(r.priceItems, function({ label: a, value: s }, o) {
|
|
61
|
+
return e("div", { key: a + o, staticStyle: { display: "flex", "justify-content": "space-between", "font-size": "calc(1 * var(--rem))" } }, [e("div", [t._v(t._s(a))]), e("div", [t._v(t._s(s))])]);
|
|
62
62
|
})], 2);
|
|
63
|
-
}), e("div", { staticStyle: { "margin-top": "calc(1 * var(--rem))" } }, [e("div", { staticStyle: { "font-size": "calc(1.1 * var(--rem))", "font-weight": "600", "padding-bottom": "3px", "border-bottom": "1px solid rgba(0, 0, 0, 0.2)" } }, [t._v(" Doc summary ")]), t._l(t.docPriceItems, function({ label: r, value: i },
|
|
64
|
-
return e("div", { key:
|
|
63
|
+
}), e("div", { staticStyle: { "margin-top": "calc(1 * var(--rem))" } }, [e("div", { staticStyle: { "font-size": "calc(1.1 * var(--rem))", "font-weight": "600", "padding-bottom": "3px", "border-bottom": "1px solid rgba(0, 0, 0, 0.2)" } }, [t._v(" Doc summary ")]), t._l(t.docPriceItems, function({ label: r, value: i }, a) {
|
|
64
|
+
return e("div", { key: a + r, staticStyle: { display: "flex", "justify-content": "space-between", "font-size": "calc(1 * var(--rem))" } }, [e("div", [t._v(t._s(r))]), e("div", [t._v(t._s(i))])]);
|
|
65
65
|
})], 2)], 2);
|
|
66
66
|
}, m = [], u = /* @__PURE__ */ n(
|
|
67
|
-
p,
|
|
68
67
|
d,
|
|
68
|
+
p,
|
|
69
69
|
m,
|
|
70
70
|
!1,
|
|
71
71
|
null,
|
|
72
|
-
"
|
|
72
|
+
"adf5d470"
|
|
73
73
|
);
|
|
74
74
|
const v = u.exports;
|
|
75
75
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as s } from "./mapFormMixin-
|
|
2
|
-
import { T as i } from "./DocTextEditor-
|
|
3
|
-
import { z as r, A as a, B as c, n as m } from "./main-
|
|
1
|
+
import { m as s } from "./mapFormMixin-QbevCwJK.js";
|
|
2
|
+
import { T as i } from "./DocTextEditor-CntS2Bd-.js";
|
|
3
|
+
import { z as r, A as a, B as c, n as m } from "./main-WKzC-Dnu.js";
|
|
4
4
|
const d = {
|
|
5
5
|
name: "TextContent",
|
|
6
6
|
components: {
|
|
@@ -41,7 +41,7 @@ var l = function() {
|
|
|
41
41
|
u,
|
|
42
42
|
!1,
|
|
43
43
|
null,
|
|
44
|
-
"
|
|
44
|
+
"91c1fb62"
|
|
45
45
|
);
|
|
46
46
|
const h = p.exports;
|
|
47
47
|
export {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { m as r } from "./mapFormMixin-
|
|
2
|
-
import { f as l } from "./focusDrawerMixin-
|
|
3
|
-
import { d as c } from "./debounce-
|
|
1
|
+
import { m as r } from "./mapFormMixin-QbevCwJK.js";
|
|
2
|
+
import { f as l } from "./focusDrawerMixin-Be6BAK8-.js";
|
|
3
|
+
import { d as c } from "./debounce-C1AuSpOZ.js";
|
|
4
4
|
import { s as m, p as u } from "./splitpanes-BHUVsCZF.js";
|
|
5
|
-
import { n } from "./main-
|
|
5
|
+
import { n } from "./main-WKzC-Dnu.js";
|
|
6
6
|
const d = {
|
|
7
7
|
name: "HeaderItems",
|
|
8
8
|
components: {
|
|
9
|
-
MediaWrapper: () => import("./MediaWrapper-
|
|
10
|
-
ContentWrapper: () => import("./ContentWrapper-
|
|
9
|
+
MediaWrapper: () => import("./MediaWrapper-D37qK4KR.js"),
|
|
10
|
+
ContentWrapper: () => import("./ContentWrapper-BwmMoe4W.js"),
|
|
11
11
|
Splitpanes: m,
|
|
12
12
|
Pane: u
|
|
13
13
|
},
|
|
@@ -67,13 +67,13 @@ var h = function() {
|
|
|
67
67
|
_,
|
|
68
68
|
!1,
|
|
69
69
|
null,
|
|
70
|
-
"
|
|
70
|
+
"683ee6d3"
|
|
71
71
|
);
|
|
72
72
|
const v = p.exports, f = {
|
|
73
73
|
name: "HeaderBlock",
|
|
74
74
|
components: {
|
|
75
|
-
PriceHeader: () => import("./PriceHeader-
|
|
76
|
-
HeaderSettings: () => import("./HeaderSettings-
|
|
75
|
+
PriceHeader: () => import("./PriceHeader-DhDAruwX.js"),
|
|
76
|
+
HeaderSettings: () => import("./HeaderSettings-BqczIOsG.js"),
|
|
77
77
|
HeaderItems: v
|
|
78
78
|
},
|
|
79
79
|
mixins: [r(["header"]), l],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as C } from "./mapFormMixin-
|
|
2
|
-
import { n as f, b as _ } from "./main-
|
|
3
|
-
import { C as b } from "./CPhoneFormat-
|
|
1
|
+
import { m as C } from "./mapFormMixin-QbevCwJK.js";
|
|
2
|
+
import { n as f, b as _ } from "./main-WKzC-Dnu.js";
|
|
3
|
+
import { C as b } from "./CPhoneFormat-CfQayFxw.js";
|
|
4
4
|
const $ = {
|
|
5
5
|
name: "DocPartiesItem",
|
|
6
6
|
components: {
|
|
@@ -29,7 +29,7 @@ var w = function() {
|
|
|
29
29
|
var e = this, t = e._self._c;
|
|
30
30
|
return t("div", { staticClass: "client-row" }, [t("div", { staticClass: "label" }, [e._v(" " + e._s(e.label) + " ")]), t("div", { staticClass: "data", class: {
|
|
31
31
|
"is-editable": e.canEdit
|
|
32
|
-
} }, [t("span", { on: { click: function(
|
|
32
|
+
} }, [t("span", { on: { click: function(a) {
|
|
33
33
|
return e.$emit("click");
|
|
34
34
|
} } }, [e.type === "phone" ? t("CPhoneFormat", { attrs: { phone: e.data.cellphone, region: e.data.region } }) : [e._v(e._s(e.data))]], 2)])]);
|
|
35
35
|
}, k = [], x = /* @__PURE__ */ f(
|
|
@@ -38,11 +38,11 @@ var w = function() {
|
|
|
38
38
|
k,
|
|
39
39
|
!1,
|
|
40
40
|
null,
|
|
41
|
-
"
|
|
41
|
+
"9bad68ca"
|
|
42
42
|
);
|
|
43
43
|
const S = x.exports, F = {
|
|
44
|
-
client: () => import("./ClientModal-
|
|
45
|
-
company: () => import("./CompanyModal-
|
|
44
|
+
client: () => import("./ClientModal-BXFYvYCF.js"),
|
|
45
|
+
company: () => import("./CompanyModal-CDr3t28n.js")
|
|
46
46
|
}, I = {
|
|
47
47
|
i18nOptions: {
|
|
48
48
|
namespaces: "components"
|
|
@@ -50,7 +50,7 @@ const S = x.exports, F = {
|
|
|
50
50
|
name: "DocParties",
|
|
51
51
|
components: {
|
|
52
52
|
DocPartiesItem: S,
|
|
53
|
-
AddClientCallout: () => import("./AddClientCallout-
|
|
53
|
+
AddClientCallout: () => import("./AddClientCallout-BWnvyBcK.js")
|
|
54
54
|
},
|
|
55
55
|
mixins: [C()],
|
|
56
56
|
props: {
|
|
@@ -68,11 +68,11 @@ const S = x.exports, F = {
|
|
|
68
68
|
},
|
|
69
69
|
computed: {
|
|
70
70
|
mappedParties() {
|
|
71
|
-
const n = (t,
|
|
71
|
+
const n = (t, a = {}) => this._document.$t(t, { postProcess: "capitalize", ...a });
|
|
72
72
|
return (Array.isArray(this.parties) ? this.parties : [this.parties]).map((t) => {
|
|
73
73
|
const {
|
|
74
|
-
orgNo:
|
|
75
|
-
socialNo:
|
|
74
|
+
orgNo: a,
|
|
75
|
+
socialNo: i,
|
|
76
76
|
companyName: s,
|
|
77
77
|
name: r,
|
|
78
78
|
type: d,
|
|
@@ -90,9 +90,9 @@ const S = x.exports, F = {
|
|
|
90
90
|
value: s,
|
|
91
91
|
formKey: "name"
|
|
92
92
|
},
|
|
93
|
-
|
|
93
|
+
a && {
|
|
94
94
|
label: n("orgNoShort"),
|
|
95
|
-
value:
|
|
95
|
+
value: a,
|
|
96
96
|
formKey: "orgNo"
|
|
97
97
|
},
|
|
98
98
|
r && {
|
|
@@ -100,9 +100,9 @@ const S = x.exports, F = {
|
|
|
100
100
|
value: r,
|
|
101
101
|
formKey: c ? "name" : "reference"
|
|
102
102
|
},
|
|
103
|
-
|
|
103
|
+
i && c && {
|
|
104
104
|
label: n("socialNo"),
|
|
105
|
-
value:
|
|
105
|
+
value: i,
|
|
106
106
|
formKey: "orgNo"
|
|
107
107
|
},
|
|
108
108
|
u && {
|
|
@@ -143,13 +143,13 @@ const S = x.exports, F = {
|
|
|
143
143
|
},
|
|
144
144
|
methods: {
|
|
145
145
|
openModal({ formKey: n, index: e } = {}) {
|
|
146
|
-
var
|
|
147
|
-
let t = "name",
|
|
148
|
-
n && (t = n, ["name", "email", "cellphone", "reference"].includes(n) || (
|
|
146
|
+
var i;
|
|
147
|
+
let t = "name", a = !1;
|
|
148
|
+
n && (t = n, ["name", "email", "cellphone", "reference"].includes(n) || (a = !0)), this.$modal.show(F[this.type], {
|
|
149
149
|
inputFocusOnMount: t,
|
|
150
|
-
forceExpand:
|
|
150
|
+
forceExpand: a,
|
|
151
151
|
documentClientIndex: e,
|
|
152
|
-
signOptions: (
|
|
152
|
+
signOptions: (i = this._document) == null ? void 0 : i.signOptions,
|
|
153
153
|
setFormValue: this.viewSettings.setFormValue,
|
|
154
154
|
removeFormValue: this.viewSettings.removeFormValue,
|
|
155
155
|
isPublicForm: this.viewSettings.isPublicForm
|
|
@@ -159,8 +159,8 @@ const S = x.exports, F = {
|
|
|
159
159
|
this.parties[n] && this.removeField(`clients[${n}]`);
|
|
160
160
|
},
|
|
161
161
|
parseStreet(n, e, t) {
|
|
162
|
-
let
|
|
163
|
-
return n && (
|
|
162
|
+
let a = "";
|
|
163
|
+
return n && (a += n), n && (t || e) && (a += ", "), t && (a += ` ${t}`), e && (a += ` ${e}`), a;
|
|
164
164
|
},
|
|
165
165
|
searchEndCustomers(n, e) {
|
|
166
166
|
n({
|
|
@@ -182,30 +182,30 @@ var P = function() {
|
|
|
182
182
|
var e = this, t = e._self._c;
|
|
183
183
|
return t("div", { staticStyle: { position: "relative" } }, [e.viewSettings.canEdit ? t("div", { staticClass: "edit-button" }, [e.type === "company" ? t("CButton", { attrs: { type: "none", size: "small", pattern: "secondary" }, on: { click: e.openModal } }, [e._v(" " + e._s(e.$t("_common:edit").capitalize()) + " ")]) : e.parties.length && e.type === "client" ? t("CDropdown", { ref: "dropdown", attrs: { position: "is-bottom-left" } }, [t("CButton", { attrs: { slot: "trigger", type: "none", size: "small", pattern: "secondary", "icon-right": "chevron-down" }, slot: "trigger" }, [e._v(" " + e._s(e.$t("_common:more").capitalize()) + " ")]), t("CDropdownItem", { attrs: { "icon-props": {
|
|
184
184
|
class: "text-primary-500"
|
|
185
|
-
}, "icon-left": "plus-circle" }, on: { click: function(
|
|
185
|
+
}, "icon-left": "plus-circle" }, on: { click: function(a) {
|
|
186
186
|
return e.openModal({ index: e.parties.length });
|
|
187
|
-
} } }, [e._v(" " + e._s(e.$t("components:account.documentForm.clients.add.extra")) + " ")]), t("CDropdownItem", { attrs: { separator: "" } }), e._l(e.parties, function(
|
|
188
|
-
return t("CDropdownItem", { key:
|
|
187
|
+
} } }, [e._v(" " + e._s(e.$t("components:account.documentForm.clients.add.extra")) + " ")]), t("CDropdownItem", { attrs: { separator: "" } }), e._l(e.parties, function(a, i) {
|
|
188
|
+
return t("CDropdownItem", { key: i, attrs: { "icon-props": {
|
|
189
189
|
class: "text-gray-400"
|
|
190
190
|
}, "icon-left": "edit" }, on: { click: function(s) {
|
|
191
|
-
return e.openModal({ index:
|
|
192
|
-
} } }, [e._v(" " + e._s(
|
|
193
|
-
})], 2) : e._e()], 1) : e._e(), e.viewSettings.canEdit ? [e.type === "client" && !(e.parties && e.parties.length) ? t("AddClientCallout", { on: { add: function(
|
|
191
|
+
return e.openModal({ index: i });
|
|
192
|
+
} } }, [e._v(" " + e._s(a.type === "individual" ? a.name : a.companyName || a.name) + " ")]);
|
|
193
|
+
})], 2) : e._e()], 1) : e._e(), e.viewSettings.canEdit ? [e.type === "client" && !(e.parties && e.parties.length) ? t("AddClientCallout", { on: { add: function(a) {
|
|
194
194
|
return e.openModal({ index: e.parties.length });
|
|
195
|
-
}, setClient: e.setClient } }) : e._e(), e.type === "company" && e.viewSettings.isPublicForm && !(e.parties.companyName || e.parties.email) ? t("CCallout", { attrs: { title: e.$t("document.chapters.parties.missingSender.title") } }, [t("div", { staticStyle: { "padding-bottom": "1em" } }, [e._v(" " + e._s(e.$t("document.chapters.parties.missingSender.description")) + " ")]), t("CButton", { attrs: { "icon-left": "plus", type: "secondary" }, on: { click: e.openModal } }, [e._v(" " + e._s(e.$t("_common:add", { thing: e.$t("_common:info") })) + " ")])], 1) : e._e()] : e._e(), e._l(e.mappedParties, function(
|
|
196
|
-
return t("div", { key:
|
|
197
|
-
e.hoverIndex =
|
|
195
|
+
}, setClient: e.setClient } }) : e._e(), e.type === "company" && e.viewSettings.isPublicForm && !(e.parties.companyName || e.parties.email) ? t("CCallout", { attrs: { title: e.$t("document.chapters.parties.missingSender.title") } }, [t("div", { staticStyle: { "padding-bottom": "1em" } }, [e._v(" " + e._s(e.$t("document.chapters.parties.missingSender.description")) + " ")]), t("CButton", { attrs: { "icon-left": "plus", type: "secondary" }, on: { click: e.openModal } }, [e._v(" " + e._s(e.$t("_common:add", { thing: e.$t("_common:info") })) + " ")])], 1) : e._e()] : e._e(), e._l(e.mappedParties, function(a, i) {
|
|
196
|
+
return t("div", { key: i, staticClass: "party-wrapper print-avoid-break-inside", on: { "&mouseover": function(s) {
|
|
197
|
+
e.hoverIndex = i;
|
|
198
198
|
}, "&mouseleave": function(s) {
|
|
199
199
|
e.hoverIndex = null;
|
|
200
|
-
} } }, [e.viewSettings.canEdit && e.type !== "company" && e.hoverIndex ===
|
|
201
|
-
return e.openModal({ index:
|
|
200
|
+
} } }, [e.viewSettings.canEdit && e.type !== "company" && e.hoverIndex === i ? t("div", { staticClass: "controls", staticStyle: { position: "absolute", left: "100%", top: "0", "padding-left": "calc(0.5 * var(--rem))" } }, [t("CButton", { attrs: { circle: "", size: "small", icon: "edit", type: "none", pattern: "tertiary" }, on: { click: function(s) {
|
|
201
|
+
return e.openModal({ index: i });
|
|
202
202
|
} } }), t("CButton", { attrs: { circle: "", size: "small", icon: "x", type: "none", pattern: "tertiary" }, on: { click: function(s) {
|
|
203
|
-
return e.removeClient(
|
|
204
|
-
} } })], 1) : e._e(), e._l(
|
|
203
|
+
return e.removeClient(i);
|
|
204
|
+
} } })], 1) : e._e(), e._l(a.main, function(s, r) {
|
|
205
205
|
return [s ? t("DocPartiesItem", { key: r, attrs: { label: s.label, data: s.value, type: s.type, "can-edit": e.viewSettings.canEdit }, on: { click: function(d) {
|
|
206
|
-
e.viewSettings.canEdit && e.openModal({ formKey: s.formKey, index:
|
|
206
|
+
e.viewSettings.canEdit && e.openModal({ formKey: s.formKey, index: i });
|
|
207
207
|
} } }) : e._e()];
|
|
208
|
-
}),
|
|
208
|
+
}), a.checks && a.checks.length ? t("div", { staticStyle: { width: "100%", "padding-top": "calc(1 * var(--rem))" } }, e._l(a.checks, function(s, r) {
|
|
209
209
|
return t("div", { key: r, staticClass: "check-text" }, [t("svg", { attrs: { width: "11", height: "11", viewBox: "0 0 218 185", xmlns: "http://www.w3.org/2000/svg" } }, [t("path", { staticClass: "primary-svg-fill", attrs: { d: "M217.931476 30.821773L180.506583.515692 85.82601 117.436462 29.993388 72.224097.068524 109.178227l93.257515 75.518447z", fill: "#D8D8D8", "fill-rule": "evenodd" } })]), t("div", [e._v(e._s(s.label))])]);
|
|
210
210
|
}), 0) : e._e()], 2);
|
|
211
211
|
})], 2);
|
|
@@ -215,7 +215,7 @@ var P = function() {
|
|
|
215
215
|
D,
|
|
216
216
|
!1,
|
|
217
217
|
null,
|
|
218
|
-
"
|
|
218
|
+
"b2458bb1"
|
|
219
219
|
);
|
|
220
220
|
const N = M.exports;
|
|
221
221
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as r } from "./main-
|
|
1
|
+
import { n as r } from "./main-WKzC-Dnu.js";
|
|
2
2
|
const l = {
|
|
3
3
|
name: "DocChapterSub",
|
|
4
4
|
inject: {
|
|
@@ -17,15 +17,15 @@ var o = function(e, t) {
|
|
|
17
17
|
} }, nativeOn: { keydown: function(s) {
|
|
18
18
|
return !s.type.indexOf("key") && t._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : s.target.blur();
|
|
19
19
|
} } })] : t.props.title ? e("div", [t._v(t._s(t.props.title))]) : t._e()], 2), e("div", { staticClass: "sub-chapter-content" }, [t._t("default")], 2)]);
|
|
20
|
-
},
|
|
20
|
+
}, c = [], p = /* @__PURE__ */ r(
|
|
21
21
|
l,
|
|
22
22
|
o,
|
|
23
|
-
|
|
23
|
+
c,
|
|
24
24
|
!0,
|
|
25
25
|
null,
|
|
26
|
-
"
|
|
26
|
+
"cf4c14b1"
|
|
27
27
|
);
|
|
28
|
-
const f =
|
|
28
|
+
const f = p.exports;
|
|
29
29
|
export {
|
|
30
30
|
f as default
|
|
31
31
|
};
|