@cling-se/widget 0.17.3 → 0.18.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/CHANGELOG.md +24 -0
- package/dist/AddClientCallout-CCt78VvH.js +101 -0
- package/dist/AnswerModal-B4LwVv2N.js +3371 -0
- package/dist/AttachmentItem-DnvYffKP.js +171 -0
- package/dist/BaseUpload-DFoV0ZLe.js +6503 -0
- package/dist/BlockMedia-Amo_kdHo.js +103 -0
- package/dist/CCallout-Gd06ds6O.js +104 -0
- package/dist/{CCurrencyDropdown-CXXQu8th.js → CCurrencyDropdown-B4GNmOGA.js} +91 -53
- package/dist/CDropdownItem-BUNVCpSR.js +749 -0
- package/dist/CFormField.vue_vue_type_script_setup_true_lang-Bo2J0c4G.js +292 -0
- package/dist/{CPhoneFormat-BtBGl8b4.js → CPhoneFormat-DmN5r9Ci.js} +13 -21
- package/dist/CPhoneInput-B6iyhsOG.js +207 -0
- package/dist/CPriceInput-BLQaNu1d.js +142 -0
- package/dist/CSelect-BVO9iO9L.js +98 -0
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-C9loRtrk.js +51 -0
- package/dist/ClientAutocomplete-C__yUaxD.js +532 -0
- package/dist/ClientModal-B9cbuEiC.js +1188 -0
- package/dist/ColorPicker-G2kkxL7_.js +1408 -0
- package/dist/CompanyModal-por9AG4P.js +250 -0
- package/dist/ContentWrapper-CQtaGA2u.js +265 -0
- package/dist/CoverBlockSettings-BCBDouyl.js +861 -0
- package/dist/DocAnswer-BrKctwrY.js +33 -0
- package/dist/DocDetails-B_LWVHGt.js +452 -0
- package/dist/DocForm-D6T7NmfO.js +6772 -0
- package/dist/DocFormSend-COYPrhl7.js +171 -0
- package/dist/DocLinks-B0LjxXIk.js +36 -0
- package/dist/DocModalBase-DObZHuYr.js +29 -0
- package/dist/DocPrint-CkDq78fB.js +399 -0
- package/dist/DocReceipt-CYBPyePC.js +341 -0
- package/dist/DocSendReminder-Dau6s43e.js +181 -0
- package/dist/{DocTextEditor-yD9Dt_um.js → DocTextEditor-CVn6gE1i.js} +7907 -5579
- package/dist/DocTimeline-ChBDPOfd.js +537 -0
- package/dist/DocumentClient-MLXzzXLb.js +90 -0
- package/dist/DocumentLayout-BMHOt380.js +1434 -0
- package/dist/DocumentLogotype-Clj3fopX.js +162 -0
- package/dist/DocumentVoided-B5_MSBbC.js +33 -0
- package/dist/EmbedInput-CzkOa02p.js +156 -0
- package/dist/EmbedSettings-Cf_F3KrM.js +103 -0
- package/dist/ErrorCallout-CJn6NCse.js +34 -0
- package/dist/FilePreviewModal-Di1VnPNY.js +202 -0
- package/dist/Flag-C4_G5IY1.js +41 -0
- package/dist/HeaderSettings-DWN0TjVD.js +720 -0
- package/dist/ImageSelectModal-DmAJ9PrN.js +119 -0
- package/dist/ImageUploadWrapper-QLEhA_dI.js +1585 -0
- package/dist/Index-B06eCuBA.js +76 -0
- package/dist/Index-B8Zj0-MX.js +87 -0
- package/dist/{Index-C_aIQ908.js → Index-BBBXL4zh.js} +319 -214
- package/dist/Index-BCHLxp7B.js +21 -0
- package/dist/Index-BDAp1CwZ.js +363 -0
- package/dist/Index-BFbcjFo4.js +16 -0
- package/dist/{Index-CRiATiQn.js → Index-BODJXJNp.js} +10 -18
- package/dist/Index-BOx_9tTM.js +136 -0
- package/dist/Index-BgZNiD7A.js +47 -0
- package/dist/Index-Bt97lEsI.js +228 -0
- package/dist/Index-C9aBeBBk.js +70 -0
- package/dist/Index-CE3pWPzp.js +49 -0
- package/dist/Index-CMdPSsp4.js +38 -0
- package/dist/Index-CNhBDG2e.js +126 -0
- package/dist/Index-CdsOdgG2.js +28 -0
- package/dist/{Index-Ch9r5yhG.js → Index-CmxFh3dW.js} +9 -17
- package/dist/Index-CpxzwwQS.js +52 -0
- package/dist/Index-CxTwWRD9.js +93 -0
- package/dist/Index-D9WFWlE6.js +140 -0
- package/dist/Index-D9bulLeI.js +39 -0
- package/dist/{Index-RWMPRDAE.js → Index-DL_9LzoR.js} +10 -18
- package/dist/Index-DR-sGE3Y.js +25 -0
- package/dist/Index-DRoOW5Pn.js +163 -0
- package/dist/Index-DTn47-hP.js +74 -0
- package/dist/Index-DeGDlj0B.js +68 -0
- package/dist/Index-DhYYK4bK.js +28 -0
- package/dist/Index-Dssdb-0Z.js +629 -0
- package/dist/Index-OcBnU480.js +200 -0
- package/dist/Index-Qh_8JqAv.js +3477 -0
- package/dist/Index-W10PQb8i.js +102 -0
- package/dist/Index-lbWFEELM.js +4 -0
- package/dist/Index-qFAg7VVU.js +1098 -0
- package/dist/Index-rDndJKo1.js +160 -0
- package/dist/{Index-Dfq7egc1.js → Index-s-6Qh_NE.js} +47 -60
- package/dist/Index.vue_vue_type_script_lang-CriDqp1F.js +671 -0
- package/dist/InputToggleRow-DJarYsVL.js +99 -0
- package/dist/ManualPopover-BMrkEHtV.js +65 -0
- package/dist/MediaWrapper-BYdVpmov.js +18 -0
- package/dist/{NotBindingText-CC7TxUqg.js → NotBindingText-DGjJoN8-.js} +13 -17
- package/dist/PackageGroup-q7_oBOqw.js +1060 -0
- package/dist/PdfTerms-DBEClYQ5.js +34 -0
- package/dist/PdfViewer-C_y5sqXB.js +392 -0
- package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D5ZLw34T.js +17 -0
- package/dist/PriceHeader-BSwv3mzc.js +488 -0
- package/dist/{SearchApi-G2Hvp0Dd.js → SearchApi-BM6TTqxW.js} +37 -49
- package/dist/SendForm-DfmBbhp9.js +6689 -0
- package/dist/Setup-BC1feKr_.js +47 -0
- package/dist/{SmartList-BynTuXtB.js → SmartList-B3pgsg4S.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-YOP-Y07m.js +1349 -0
- package/dist/{TermsSettings-cA5YAO77.js → TermsSettings-DEkACrRU.js} +169 -56
- package/dist/ThemeColorRow-qG8Dkkyj.js +105 -0
- package/dist/ToggleBinding-Cdtl_-1s.js +44 -0
- package/dist/UploadModal-1OWPRxA5.js +134 -0
- package/dist/VideoPlayerInput-DgFNjiKK.js +134 -0
- package/dist/VideoPlayerSettings-CFuA-7RC.js +78 -0
- package/dist/VideoSelectModal-CSv67eA8.js +217 -0
- package/dist/{anime.es-BrPTThYb.js → anime.es-4wvNItHq.js} +205 -201
- package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
- package/dist/{dom-Ds4ypDrd.js → dom-CkTGWrfu.js} +3 -6
- package/dist/{focusDrawerMixin-CximZA1J.js → focusDrawerMixin-r-OZchfV.js} +1 -1
- package/dist/{formDrawerState-CkNGdxn5.js → formDrawerState-COVczNhJ.js} +2 -2
- package/dist/helpers-ChwW54Ex.js +46 -0
- package/dist/index-BMZle8Ew.js +513 -0
- package/dist/index-Bf-fiKJf.js +268 -0
- package/dist/index-Bg4JRi5S.js +125 -0
- package/dist/index-C7chK2UD.js +3525 -0
- package/dist/index-CR52qIBO.js +149 -0
- package/dist/index-D1x9O_nJ.js +188 -0
- package/dist/index-YFcPqc9m.js +508 -0
- package/dist/index.es.js +2 -5
- package/dist/index.umd.js +303 -1486
- package/dist/main-DI0diChK.js +57570 -0
- package/dist/mapFormMixin-Cgvwie9a.js +1528 -0
- package/dist/omit-DpjD7Dj9.js +56 -0
- package/dist/{publicSenderState-CGEm9EYe.js → publicSenderState-BcjNldje.js} +4 -4
- package/dist/splitpanes-BypKTSRL.js +342 -0
- package/dist/template-Dzexob5I.js +1572 -0
- package/dist/tippy.esm-0UMN6kWf.js +1994 -0
- package/dist/useTermsModal-DzH_PDFP.js +87 -0
- package/dist/{utils-Dr4AcaE9.js → utils--kBYCNZD.js} +8 -11
- package/dist/validation-B-omH73u.js +40 -0
- package/dist/widget.css +1 -0
- package/package.json +20 -25
- package/dist/AddClientCallout-Br6IhwGH.js +0 -48
- package/dist/AnswerModal-CsWltR6j.js +0 -3879
- package/dist/AttachmentItem-BG7FuSCD.js +0 -85
- package/dist/BaseDatePicker-PSNBtUIh.js +0 -3187
- package/dist/BaseUpload-BfEurAAV.js +0 -1977
- package/dist/BlockMedia-Bo3OfNSU.js +0 -76
- package/dist/CCallout-CAjM8-1X.js +0 -58
- package/dist/CDropdownItem-CN7gSfgY.js +0 -640
- package/dist/CFormField-Clvcf2Jh.js +0 -240
- package/dist/CPhoneInput-CEHXh5jM.js +0 -138
- package/dist/CPriceInput-D2c07SXp.js +0 -116
- package/dist/CSelect-Cz2IPzxS.js +0 -91
- package/dist/CSkeleton-AsnvnD-m.js +0 -55
- package/dist/ClientAutocomplete-CZ55-DKe.js +0 -438
- package/dist/ClientModal-CgUhWZ5L.js +0 -666
- package/dist/ColorPicker-IFGHqH-u.js +0 -2879
- package/dist/CompanyModal-TLSBFo3U.js +0 -147
- package/dist/ContentWrapper-HClxKPuT.js +0 -190
- package/dist/CoverBlockSettings-D99hAa6e.js +0 -659
- package/dist/DocAnswer-CTV_Bpt7.js +0 -36
- package/dist/DocDetails-CQe5htXj.js +0 -263
- package/dist/DocForm-6Efv5_oz.js +0 -5017
- package/dist/DocFormSend-DbXcklxU.js +0 -146
- package/dist/DocLinks-BO545zbL.js +0 -38
- package/dist/DocModalBase-DXHNJ-6i.js +0 -28
- package/dist/DocPrint-Bf2U4FQN.js +0 -240
- package/dist/DocReceipt-CWXvC7bY.js +0 -217
- package/dist/DocSendReminder-CRzBM2NJ.js +0 -140
- package/dist/DocTimeline-DGVOk8-2.js +0 -485
- package/dist/DocumentClient-Das9BaJ7.js +0 -136
- package/dist/DocumentLayout-4q8rmTVT.js +0 -4880
- package/dist/DocumentLogotype-DLncJJAB.js +0 -92
- package/dist/DocumentVoided-CcI9lX27.js +0 -25
- package/dist/EmbedInput-BPdy0lGS.js +0 -117
- package/dist/EmbedSettings-L2iwYLQK.js +0 -74
- package/dist/ErrorCallout-Ds_tBT02.js +0 -27
- package/dist/FilePreviewModal-hxUu330p.js +0 -81
- package/dist/Flag-1-HcT5Dz.js +0 -46
- package/dist/HeaderSettings-C27fMugK.js +0 -440
- package/dist/ImageSelectModal-BKDIyxF4.js +0 -86
- package/dist/ImageUploadWrapper-BiYzUQur.js +0 -1604
- package/dist/Index-5BOWxcPG.js +0 -26
- package/dist/Index-B1Odktov.js +0 -754
- package/dist/Index-B3d5BjEn.js +0 -25
- package/dist/Index-B3sSU_4X.js +0 -54
- package/dist/Index-B5Dqsh3K.js +0 -150
- package/dist/Index-B6aO1c_w.js +0 -62
- package/dist/Index-BGfICxJQ.js +0 -643
- package/dist/Index-BHopC0hv.js +0 -24
- package/dist/Index-BJXcSmp_.js +0 -55
- package/dist/Index-BQe6QjQZ.js +0 -25
- package/dist/Index-BmXx_x6t.js +0 -77
- package/dist/Index-C692qMTG.js +0 -294
- package/dist/Index-CEvbw-3i.js +0 -41
- package/dist/Index-CYSULnpn.js +0 -32
- package/dist/Index-CdtYzwAM.js +0 -107
- package/dist/Index-CetF2FW0.js +0 -230
- package/dist/Index-Cv6XLM20.js +0 -73
- package/dist/Index-Cwy8ff76.js +0 -154
- package/dist/Index-D34z4UEY.js +0 -84
- package/dist/Index-DNCei-lp.js +0 -56
- package/dist/Index-DUbxgIYB.js +0 -2445
- package/dist/Index-DVwn_LLf.js +0 -28
- package/dist/Index-Dla-mesV.js +0 -146
- package/dist/Index-KtUkOPI2.js +0 -58
- package/dist/Index-LjnOTVJk.js +0 -66
- package/dist/Index-ky1SRtfY.js +0 -94
- package/dist/Index-mceZW2NX.js +0 -41
- package/dist/Index-tD3hZjh8.js +0 -144
- package/dist/Index-vM5kDtC2.js +0 -33
- package/dist/InputToggleRow-BmDuSbE2.js +0 -57
- package/dist/ManualPopover-CQfjPvFe.js +0 -60
- package/dist/MediaWrapper-DDzcjR6V.js +0 -23
- package/dist/PackageGroup-mAGXfZDv.js +0 -704
- package/dist/PdfTerms-BH_Nwf2h.js +0 -31
- package/dist/PdfViewer-mBLxI8bA.js +0 -383
- package/dist/PlainHtml-B7gUNNZd.js +0 -27
- package/dist/PriceHeader-DClYMPcq.js +0 -338
- package/dist/SendForm-Cxv_m8Rq.js +0 -1023
- package/dist/Setup-B90VDZTG.js +0 -50
- package/dist/ThemeColorRow-D-Z7w4Wk.js +0 -69
- package/dist/ToggleBinding-DOeTcWzi.js +0 -42
- package/dist/UploadModal-DOPLVEpV.js +0 -95
- package/dist/VideoPlayerInput-1zG06elO.js +0 -97
- package/dist/VideoPlayerSettings-O-4rAYYh.js +0 -61
- package/dist/VideoSelectModal-DzqFrqCg.js +0 -104
- package/dist/answerDocumentMixin-HBiNWYCH.js +0 -51
- package/dist/debounce-Ch1d3526.js +0 -84
- package/dist/formValidationMixin-D_MzsHsR.js +0 -49
- package/dist/index-BNdbPq4J.js +0 -492
- package/dist/index-BXzugeJ6.js +0 -81
- package/dist/index-C5wcxrC6.js +0 -167
- package/dist/index-CgDOs7t4.js +0 -2700
- package/dist/index-Cj-_2coz.js +0 -351
- package/dist/index-DpqV5y0K.js +0 -102
- package/dist/main-BL_yzf2r.js +0 -57357
- package/dist/mapFormMixin-Cu_vkTP-.js +0 -3028
- package/dist/omit-Dfe_H1Ft.js +0 -31
- package/dist/simplebar.min-CRlLD1Oz.js +0 -71
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/style.css +0 -4
- package/dist/throttle-BX_w77tW.js +0 -18
- package/dist/tippy.esm-n4arfVzA.js +0 -1805
- package/dist/vuedraggable.umd-DW4PJoZ3.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { m as o } from "./mapFormMixin-Cgvwie9a.js";
|
|
2
|
+
import { _ as n, z as s, o as r, c as i, e as p } from "./main-DI0diChK.js";
|
|
3
|
+
const a = {
|
|
4
|
+
name: "WorkAddressText",
|
|
5
|
+
components: {
|
|
6
|
+
Read: s(() => import("./Index-BFbcjFo4.js"))
|
|
7
|
+
},
|
|
8
|
+
mixins: [o(["street", "city", "zip"])]
|
|
9
|
+
};
|
|
10
|
+
function c(e, m, d, f, _, l) {
|
|
11
|
+
const t = p("Read");
|
|
12
|
+
return r(), i(t, {
|
|
13
|
+
street: e.street,
|
|
14
|
+
city: e.city,
|
|
15
|
+
zip: e.zip
|
|
16
|
+
}, null, 8, ["street", "city", "zip"]);
|
|
17
|
+
}
|
|
18
|
+
const z = /* @__PURE__ */ n(a, [["render", c]]);
|
|
19
|
+
export {
|
|
20
|
+
z as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
import { m as A } from "./mapFormMixin-Cgvwie9a.js";
|
|
2
|
+
import { C as E } from "./CCallout-Gd06ds6O.js";
|
|
3
|
+
import { C as B, a as K } from "./CDropdownItem-BUNVCpSR.js";
|
|
4
|
+
import { _ as z, e as h, o as n, b as c, s as g, v as u, c as f, F as C, B as w, n as V, z as M, a9 as N, w as y, d as b, k as I, f as v } from "./main-DI0diChK.js";
|
|
5
|
+
import { C as O } from "./CPhoneFormat-DmN5r9Ci.js";
|
|
6
|
+
const $ = {
|
|
7
|
+
name: "DocPartiesItem",
|
|
8
|
+
components: {
|
|
9
|
+
CPhoneFormat: O
|
|
10
|
+
},
|
|
11
|
+
emits: ["click"],
|
|
12
|
+
props: {
|
|
13
|
+
label: {
|
|
14
|
+
type: String,
|
|
15
|
+
required: !0
|
|
16
|
+
},
|
|
17
|
+
data: {
|
|
18
|
+
type: [String, Object],
|
|
19
|
+
required: !0
|
|
20
|
+
},
|
|
21
|
+
type: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: ""
|
|
24
|
+
},
|
|
25
|
+
canEdit: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !1
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}, q = { class: "client-row" }, L = { class: "label" };
|
|
31
|
+
function j(e, o, t, a, s, l) {
|
|
32
|
+
const p = h("CPhoneFormat");
|
|
33
|
+
return n(), c("div", q, [
|
|
34
|
+
g("div", L, u(t.label), 1),
|
|
35
|
+
g("div", {
|
|
36
|
+
class: V([{
|
|
37
|
+
"is-editable": t.canEdit
|
|
38
|
+
}, "data"])
|
|
39
|
+
}, [
|
|
40
|
+
g("span", {
|
|
41
|
+
onClick: o[0] || (o[0] = (k) => e.$emit("click"))
|
|
42
|
+
}, [
|
|
43
|
+
t.type === "phone" ? (n(), f(p, {
|
|
44
|
+
key: 0,
|
|
45
|
+
phone: t.data.cellphone,
|
|
46
|
+
region: t.data.region
|
|
47
|
+
}, null, 8, ["phone", "region"])) : (n(), c(C, { key: 1 }, [
|
|
48
|
+
w(u(t.data), 1)
|
|
49
|
+
], 64))
|
|
50
|
+
])
|
|
51
|
+
], 2)
|
|
52
|
+
]);
|
|
53
|
+
}
|
|
54
|
+
const R = /* @__PURE__ */ z($, [["render", j], ["__scopeId", "data-v-5a104f72"]]), T = {
|
|
55
|
+
client: M(
|
|
56
|
+
() => import("./ClientModal-B9cbuEiC.js").then((e) => e.b)
|
|
57
|
+
),
|
|
58
|
+
company: M(
|
|
59
|
+
() => import("./CompanyModal-por9AG4P.js")
|
|
60
|
+
)
|
|
61
|
+
}, G = {
|
|
62
|
+
i18nOptions: {
|
|
63
|
+
namespaces: "components"
|
|
64
|
+
},
|
|
65
|
+
name: "DocParties",
|
|
66
|
+
components: {
|
|
67
|
+
DocPartiesItem: R,
|
|
68
|
+
CCallout: E,
|
|
69
|
+
CDropdown: B,
|
|
70
|
+
CDropdownItem: K,
|
|
71
|
+
AddClientCallout: M(
|
|
72
|
+
() => import("./AddClientCallout-CCt78VvH.js")
|
|
73
|
+
)
|
|
74
|
+
},
|
|
75
|
+
emits: ["input"],
|
|
76
|
+
mixins: [A()],
|
|
77
|
+
props: {
|
|
78
|
+
// todo: atm custom behaviour for path 'data.sender' through doc-class
|
|
79
|
+
parties: {
|
|
80
|
+
type: [Array, Object],
|
|
81
|
+
default: () => []
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
data() {
|
|
85
|
+
return {
|
|
86
|
+
type: "client",
|
|
87
|
+
hoverIndex: null
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
computed: {
|
|
91
|
+
mappedParties() {
|
|
92
|
+
const e = (t, a = {}) => this._document.$t(t, { postProcess: "capitalize", ...a });
|
|
93
|
+
return (Array.isArray(this.parties) ? this.parties : [this.parties]).map((t) => {
|
|
94
|
+
const {
|
|
95
|
+
orgNo: a,
|
|
96
|
+
socialNo: s,
|
|
97
|
+
companyName: l,
|
|
98
|
+
name: p,
|
|
99
|
+
type: k,
|
|
100
|
+
cellphone: S,
|
|
101
|
+
cellphoneRegion: P,
|
|
102
|
+
email: F,
|
|
103
|
+
addresses: _,
|
|
104
|
+
hasFSkatt: r,
|
|
105
|
+
hasInsurance: d
|
|
106
|
+
} = t, i = k === "individual", m = _ && (_.standard || _.work);
|
|
107
|
+
m && (m.formKey = _.standard ? "street" : "workStreet");
|
|
108
|
+
const x = [
|
|
109
|
+
l && {
|
|
110
|
+
label: e("company"),
|
|
111
|
+
value: l,
|
|
112
|
+
formKey: "name"
|
|
113
|
+
},
|
|
114
|
+
a && {
|
|
115
|
+
label: e("orgNoShort"),
|
|
116
|
+
value: a,
|
|
117
|
+
formKey: "orgNo"
|
|
118
|
+
},
|
|
119
|
+
p && {
|
|
120
|
+
label: e(i ? "name" : "reference"),
|
|
121
|
+
value: p,
|
|
122
|
+
formKey: i ? "name" : "reference"
|
|
123
|
+
},
|
|
124
|
+
s && i && {
|
|
125
|
+
label: e("socialNo"),
|
|
126
|
+
value: s,
|
|
127
|
+
formKey: "orgNo"
|
|
128
|
+
},
|
|
129
|
+
F && {
|
|
130
|
+
label: e("email"),
|
|
131
|
+
value: F,
|
|
132
|
+
formKey: "email"
|
|
133
|
+
},
|
|
134
|
+
S && {
|
|
135
|
+
label: e("phone"),
|
|
136
|
+
type: "phone",
|
|
137
|
+
value: {
|
|
138
|
+
cellphone: S,
|
|
139
|
+
region: P || N(this._document, "sender.company.region", "")
|
|
140
|
+
},
|
|
141
|
+
formKey: "cellphone"
|
|
142
|
+
},
|
|
143
|
+
m && {
|
|
144
|
+
label: e("address"),
|
|
145
|
+
value: this.parseStreet(m.street, m.city, m.zip),
|
|
146
|
+
formKey: m.formKey
|
|
147
|
+
}
|
|
148
|
+
], D = [];
|
|
149
|
+
return r && D.push({
|
|
150
|
+
label: this._document.$t("chapters.parties.fTax"),
|
|
151
|
+
value: r
|
|
152
|
+
}), d && D.push({
|
|
153
|
+
label: this._document.$t("chapters.parties.allRiskAndLiability"),
|
|
154
|
+
value: d
|
|
155
|
+
}), {
|
|
156
|
+
main: x,
|
|
157
|
+
checks: D
|
|
158
|
+
};
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
created() {
|
|
163
|
+
N(this, "_value.parties", "") !== "clients" && (this.type = "company");
|
|
164
|
+
},
|
|
165
|
+
methods: {
|
|
166
|
+
openModal({ formKey: e, index: o } = {}) {
|
|
167
|
+
var s;
|
|
168
|
+
let t = "name", a = !1;
|
|
169
|
+
e && (t = e, ["name", "email", "cellphone", "reference"].includes(e) || (a = !0)), this.$modal.show(T[this.type], {
|
|
170
|
+
inputFocusOnMount: t,
|
|
171
|
+
forceExpand: a,
|
|
172
|
+
documentClientIndex: o,
|
|
173
|
+
signOptions: (s = this._document) == null ? void 0 : s.signOptions,
|
|
174
|
+
setFormValue: this.viewSettings.setFormValue,
|
|
175
|
+
removeFormValue: this.viewSettings.removeFormValue,
|
|
176
|
+
isPublicForm: this.viewSettings.isPublicForm
|
|
177
|
+
});
|
|
178
|
+
},
|
|
179
|
+
removeClient(e) {
|
|
180
|
+
this.parties[e] && this.removeField(`clients[${e}]`);
|
|
181
|
+
},
|
|
182
|
+
parseStreet(e, o, t) {
|
|
183
|
+
let a = "";
|
|
184
|
+
return e && (a += e), e && (t || o) && (a += ", "), t && (a += ` ${t}`), o && (a += ` ${o}`), a;
|
|
185
|
+
},
|
|
186
|
+
searchEndCustomers(e, o) {
|
|
187
|
+
e({
|
|
188
|
+
q: o,
|
|
189
|
+
cb: ({ endCustomer: t }) => {
|
|
190
|
+
this.results = t;
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
},
|
|
194
|
+
setClient(e) {
|
|
195
|
+
this.$emit("input", {
|
|
196
|
+
key: `clients[${this.parties.length}]`,
|
|
197
|
+
value: e
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}, H = { style: { position: "relative" } }, J = {
|
|
202
|
+
key: 0,
|
|
203
|
+
class: "edit-button"
|
|
204
|
+
}, Q = { style: { "padding-bottom": "1em" } }, U = ["onMouseoverPassive"], W = {
|
|
205
|
+
key: 0,
|
|
206
|
+
class: "controls",
|
|
207
|
+
style: { position: "absolute", left: "100%", top: "0", "padding-left": "calc(0.5 * var(--rem))" }
|
|
208
|
+
}, X = {
|
|
209
|
+
key: 1,
|
|
210
|
+
style: { width: "100%", "padding-top": "calc(1 * var(--rem))" }
|
|
211
|
+
};
|
|
212
|
+
function Y(e, o, t, a, s, l) {
|
|
213
|
+
const p = h("CButton"), k = h("CDropdownItem"), S = h("CDropdown"), P = h("AddClientCallout"), F = h("CCallout"), _ = h("DocPartiesItem");
|
|
214
|
+
return n(), c("div", H, [
|
|
215
|
+
e.viewSettings.canEdit ? (n(), c("div", J, [
|
|
216
|
+
s.type === "company" ? (n(), f(p, {
|
|
217
|
+
key: 0,
|
|
218
|
+
type: "none",
|
|
219
|
+
size: "small",
|
|
220
|
+
pattern: "secondary",
|
|
221
|
+
onClick: l.openModal
|
|
222
|
+
}, {
|
|
223
|
+
default: y(() => [
|
|
224
|
+
w(u(e.$t("_common:edit").capitalize()), 1)
|
|
225
|
+
]),
|
|
226
|
+
_: 1
|
|
227
|
+
}, 8, ["onClick"])) : t.parties.length && s.type === "client" ? (n(), f(S, {
|
|
228
|
+
key: 1,
|
|
229
|
+
ref: "dropdown",
|
|
230
|
+
position: "is-bottom-left"
|
|
231
|
+
}, {
|
|
232
|
+
trigger: y(() => [
|
|
233
|
+
b(p, {
|
|
234
|
+
type: "none",
|
|
235
|
+
size: "small",
|
|
236
|
+
pattern: "secondary",
|
|
237
|
+
"icon-right": "chevron-down"
|
|
238
|
+
}, {
|
|
239
|
+
default: y(() => [
|
|
240
|
+
w(u(e.$t("_common:more").capitalize()), 1)
|
|
241
|
+
]),
|
|
242
|
+
_: 1
|
|
243
|
+
})
|
|
244
|
+
]),
|
|
245
|
+
default: y(() => [
|
|
246
|
+
b(k, {
|
|
247
|
+
"icon-props": {
|
|
248
|
+
class: "text-primary-500"
|
|
249
|
+
},
|
|
250
|
+
"icon-left": "plus-circle",
|
|
251
|
+
onClick: o[0] || (o[0] = (r) => l.openModal({ index: t.parties.length }))
|
|
252
|
+
}, {
|
|
253
|
+
default: y(() => [
|
|
254
|
+
w(u(e.$t("components:account.documentForm.clients.add.extra")), 1)
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
}),
|
|
258
|
+
b(k, { separator: "" }),
|
|
259
|
+
(n(!0), c(C, null, I(t.parties, (r, d) => (n(), f(k, {
|
|
260
|
+
key: d,
|
|
261
|
+
"icon-props": {
|
|
262
|
+
class: "text-gray-400"
|
|
263
|
+
},
|
|
264
|
+
"icon-left": "edit",
|
|
265
|
+
onClick: (i) => l.openModal({ index: d })
|
|
266
|
+
}, {
|
|
267
|
+
default: y(() => [
|
|
268
|
+
w(u(r.type === "individual" ? r.name : r.companyName || r.name), 1)
|
|
269
|
+
]),
|
|
270
|
+
_: 2
|
|
271
|
+
}, 1032, ["onClick"]))), 128))
|
|
272
|
+
]),
|
|
273
|
+
_: 1
|
|
274
|
+
}, 512)) : v("", !0)
|
|
275
|
+
])) : v("", !0),
|
|
276
|
+
e.viewSettings.canEdit ? (n(), c(C, { key: 1 }, [
|
|
277
|
+
s.type === "client" && !(t.parties && t.parties.length) ? (n(), f(P, {
|
|
278
|
+
key: 0,
|
|
279
|
+
onAdd: o[1] || (o[1] = (r) => l.openModal({ index: t.parties.length })),
|
|
280
|
+
onSetClient: l.setClient
|
|
281
|
+
}, null, 8, ["onSetClient"])) : v("", !0),
|
|
282
|
+
s.type === "company" && e.viewSettings.isPublicForm && !(t.parties.companyName || t.parties.email) ? (n(), f(F, {
|
|
283
|
+
key: 1,
|
|
284
|
+
title: e.$t("document.chapters.parties.missingSender.title")
|
|
285
|
+
}, {
|
|
286
|
+
default: y(() => [
|
|
287
|
+
g("div", Q, u(e.$t("document.chapters.parties.missingSender.description")), 1),
|
|
288
|
+
b(p, {
|
|
289
|
+
"icon-left": "plus",
|
|
290
|
+
type: "secondary",
|
|
291
|
+
onClick: l.openModal
|
|
292
|
+
}, {
|
|
293
|
+
default: y(() => [
|
|
294
|
+
w(u(e.$t("_common:add", { thing: e.$t("_common:info") })), 1)
|
|
295
|
+
]),
|
|
296
|
+
_: 1
|
|
297
|
+
}, 8, ["onClick"])
|
|
298
|
+
]),
|
|
299
|
+
_: 1
|
|
300
|
+
}, 8, ["title"])) : v("", !0)
|
|
301
|
+
], 64)) : v("", !0),
|
|
302
|
+
(n(!0), c(C, null, I(l.mappedParties, (r, d) => (n(), c("div", {
|
|
303
|
+
key: d,
|
|
304
|
+
class: "party-wrapper print-avoid-break-inside",
|
|
305
|
+
onMouseoverPassive: (i) => s.hoverIndex = d,
|
|
306
|
+
onMouseleavePassive: o[2] || (o[2] = (i) => s.hoverIndex = null)
|
|
307
|
+
}, [
|
|
308
|
+
e.viewSettings.canEdit && s.type !== "company" && s.hoverIndex === d ? (n(), c("div", W, [
|
|
309
|
+
b(p, {
|
|
310
|
+
circle: "",
|
|
311
|
+
size: "small",
|
|
312
|
+
icon: "edit",
|
|
313
|
+
type: "none",
|
|
314
|
+
pattern: "tertiary",
|
|
315
|
+
onClick: (i) => l.openModal({ index: d })
|
|
316
|
+
}, null, 8, ["onClick"]),
|
|
317
|
+
b(p, {
|
|
318
|
+
circle: "",
|
|
319
|
+
size: "small",
|
|
320
|
+
icon: "x",
|
|
321
|
+
type: "none",
|
|
322
|
+
pattern: "tertiary",
|
|
323
|
+
onClick: (i) => l.removeClient(d)
|
|
324
|
+
}, null, 8, ["onClick"])
|
|
325
|
+
])) : v("", !0),
|
|
326
|
+
(n(!0), c(C, null, I(r.main, (i, m) => (n(), c(C, { key: m }, [
|
|
327
|
+
i ? (n(), f(_, {
|
|
328
|
+
key: 0,
|
|
329
|
+
label: i.label,
|
|
330
|
+
data: i.value,
|
|
331
|
+
type: i.type,
|
|
332
|
+
"can-edit": e.viewSettings.canEdit,
|
|
333
|
+
onClick: (x) => e.viewSettings.canEdit ? l.openModal({ formKey: i.formKey, index: d }) : null
|
|
334
|
+
}, null, 8, ["label", "data", "type", "can-edit", "onClick"])) : v("", !0)
|
|
335
|
+
], 64))), 128)),
|
|
336
|
+
r.checks && r.checks.length ? (n(), c("div", X, [
|
|
337
|
+
(n(!0), c(C, null, I(r.checks, (i, m) => (n(), c("div", {
|
|
338
|
+
key: m,
|
|
339
|
+
class: "check-text"
|
|
340
|
+
}, [
|
|
341
|
+
o[3] || (o[3] = g("svg", {
|
|
342
|
+
width: "11",
|
|
343
|
+
height: "11",
|
|
344
|
+
viewBox: "0 0 218 185",
|
|
345
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
346
|
+
}, [
|
|
347
|
+
g("path", {
|
|
348
|
+
class: "primary-svg-fill",
|
|
349
|
+
d: "M217.931476 30.821773L180.506583.515692 85.82601 117.436462 29.993388 72.224097.068524 109.178227l93.257515 75.518447z",
|
|
350
|
+
fill: "#D8D8D8",
|
|
351
|
+
"fill-rule": "evenodd"
|
|
352
|
+
})
|
|
353
|
+
], -1)),
|
|
354
|
+
g("div", null, u(i.label), 1)
|
|
355
|
+
]))), 128))
|
|
356
|
+
])) : v("", !0)
|
|
357
|
+
], 40, U))), 128))
|
|
358
|
+
]);
|
|
359
|
+
}
|
|
360
|
+
const ie = /* @__PURE__ */ z(G, [["render", Y], ["__scopeId", "data-v-54bc3f52"]]);
|
|
361
|
+
export {
|
|
362
|
+
ie as default
|
|
363
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { h as s, i as r, o, b as c } from "./main-DI0diChK.js";
|
|
2
|
+
const i = ["innerHTML"], u = /* @__PURE__ */ s({
|
|
3
|
+
__name: "Index",
|
|
4
|
+
props: {
|
|
5
|
+
street: {},
|
|
6
|
+
zip: {},
|
|
7
|
+
city: {}
|
|
8
|
+
},
|
|
9
|
+
setup(t) {
|
|
10
|
+
const e = t, n = r(() => `${e.street ? `${e.street}, ` : ""}${e.zip ? `${e.zip} ` : ""}${e.city}`);
|
|
11
|
+
return (p, a) => (o(), c("div", { innerHTML: n.value }, null, 8, i));
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
u as default
|
|
16
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { _ as s } from "./PlainHtml.vue_vue_type_script_setup_true_lang-D5ZLw34T.js";
|
|
2
|
+
import { d as t, B as e } from "./main-DI0diChK.js";
|
|
3
|
+
const r = {
|
|
4
4
|
name: "EstimatedTimeToCompleteTextRead",
|
|
5
5
|
props: {
|
|
6
6
|
noOfTimeUnits: {
|
|
@@ -23,23 +23,15 @@ const o = {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const e = this.$tc(`_common:${this.timeUnit}`, {
|
|
26
|
+
render() {
|
|
27
|
+
const a = this.$tc(`_common:${this.timeUnit}`, {
|
|
29
28
|
count: this.noOfTimeUnits
|
|
30
29
|
});
|
|
31
|
-
return t(
|
|
30
|
+
return t(s, null, {
|
|
31
|
+
default: () => [this.$t("text"), e(" "), t("strong", null, [a]), e(".")]
|
|
32
|
+
});
|
|
32
33
|
}
|
|
33
|
-
}
|
|
34
|
-
var i = /* @__PURE__ */ s(
|
|
35
|
-
o,
|
|
36
|
-
r,
|
|
37
|
-
a,
|
|
38
|
-
!1,
|
|
39
|
-
null,
|
|
40
|
-
null
|
|
41
|
-
);
|
|
42
|
-
const p = i.exports;
|
|
34
|
+
};
|
|
43
35
|
export {
|
|
44
|
-
|
|
36
|
+
r as default
|
|
45
37
|
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { m as f } from "./mapFormMixin-Cgvwie9a.js";
|
|
2
|
+
import { f as y } from "./focusDrawerMixin-r-OZchfV.js";
|
|
3
|
+
import { g as z } from "./utils--kBYCNZD.js";
|
|
4
|
+
import { _ as V, z as m, o as i, b as a, s as r, l as _, v as g, d as u, n as w, F as P, c as S, w as k, f as c, e as l } from "./main-DI0diChK.js";
|
|
5
|
+
const C = {
|
|
6
|
+
name: "VideoPlayer",
|
|
7
|
+
i18nOptions: {
|
|
8
|
+
namespaces: "components",
|
|
9
|
+
keyPrefix: "document.videoPlayer"
|
|
10
|
+
},
|
|
11
|
+
components: {
|
|
12
|
+
VideoPlayerSettings: m(
|
|
13
|
+
() => import("./VideoPlayerSettings-CFuA-7RC.js")
|
|
14
|
+
),
|
|
15
|
+
VideoPlayerInput: m(
|
|
16
|
+
() => import("./VideoPlayerInput-DgFNjiKK.js")
|
|
17
|
+
)
|
|
18
|
+
},
|
|
19
|
+
mixins: [f(["videoPlayer"]), y],
|
|
20
|
+
data() {
|
|
21
|
+
return {
|
|
22
|
+
showControls: !1,
|
|
23
|
+
aspectRatio: null,
|
|
24
|
+
sizes: {
|
|
25
|
+
small: 600,
|
|
26
|
+
medium: 1e3,
|
|
27
|
+
large: 1e3
|
|
28
|
+
},
|
|
29
|
+
// defaults to 16:9 aspect ratio
|
|
30
|
+
videoSize: {
|
|
31
|
+
width: 480,
|
|
32
|
+
height: 270
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
computed: {
|
|
37
|
+
video() {
|
|
38
|
+
var e;
|
|
39
|
+
return ((e = this.videoPlayer) == null ? void 0 : e.video) || {};
|
|
40
|
+
},
|
|
41
|
+
size() {
|
|
42
|
+
var e;
|
|
43
|
+
return ((e = this.videoPlayer) == null ? void 0 : e.size) || "medium";
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
watch: {
|
|
47
|
+
video: {
|
|
48
|
+
immediate: !0,
|
|
49
|
+
async handler(e) {
|
|
50
|
+
if (!e || !e.url) return;
|
|
51
|
+
let { width: t, height: s } = e;
|
|
52
|
+
(!t || !s) && ({ width: t, height: s } = await z(e.url) || {}), this.videoSize = { width: t, height: s }, this.setAspectRatio();
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
size() {
|
|
56
|
+
this.setAspectRatio();
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
methods: {
|
|
60
|
+
setValue({ key: e, value: t }) {
|
|
61
|
+
this.videoPlayer = {
|
|
62
|
+
...this.videoPlayer,
|
|
63
|
+
[e]: t
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
setAspectRatio() {
|
|
67
|
+
!this.videoSize.width || !this.videoSize.height || (this.aspectRatio = `${Math.round(
|
|
68
|
+
100 * this.videoSize.height / this.videoSize.width
|
|
69
|
+
)}%`);
|
|
70
|
+
},
|
|
71
|
+
onAdd() {
|
|
72
|
+
var e;
|
|
73
|
+
this._isNodeRecentlyAdded() && ((e = this.$refs.input) == null || e.focus());
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}, A = {
|
|
77
|
+
key: 0,
|
|
78
|
+
class: "video-element"
|
|
79
|
+
}, I = { class: "is-placeholder" }, M = { class: "text-gray-600" }, R = ["src"];
|
|
80
|
+
function b(e, t, s, x, d, o) {
|
|
81
|
+
const v = l("VideoPlayerInput"), p = l("VideoPlayerSettings"), h = l("portal");
|
|
82
|
+
return i(), a("div", {
|
|
83
|
+
class: "video-root font-inter",
|
|
84
|
+
onMouseoverPassive: t[1] || (t[1] = (n) => d.showControls = !0),
|
|
85
|
+
onMouseleavePassive: t[2] || (t[2] = (n) => d.showControls = !1)
|
|
86
|
+
}, [
|
|
87
|
+
r("div", {
|
|
88
|
+
class: w([[`video-is-${o.size}`], "no-drag"])
|
|
89
|
+
}, [
|
|
90
|
+
r("div", {
|
|
91
|
+
style: _({ paddingTop: d.aspectRatio }),
|
|
92
|
+
class: "video-container"
|
|
93
|
+
}, [
|
|
94
|
+
!o.video.url && e.canEdit ? (i(), a("div", A, [
|
|
95
|
+
r("div", I, [
|
|
96
|
+
r("div", M, g(e.$t("subTitle")), 1),
|
|
97
|
+
u(v, {
|
|
98
|
+
ref: "input",
|
|
99
|
+
"model-value": o.video,
|
|
100
|
+
style: { "padding-top": "1em" },
|
|
101
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => o.setValue({ key: "video", value: n })),
|
|
102
|
+
onVnodeMounted: o.onAdd
|
|
103
|
+
}, null, 8, ["model-value", "onVnodeMounted"])
|
|
104
|
+
])
|
|
105
|
+
])) : (i(), a("iframe", {
|
|
106
|
+
key: 1,
|
|
107
|
+
ref: "iframe",
|
|
108
|
+
title: "Video",
|
|
109
|
+
src: o.video.url,
|
|
110
|
+
frameborder: "0",
|
|
111
|
+
allowfullscreen: "",
|
|
112
|
+
class: "video-element"
|
|
113
|
+
}, null, 8, R))
|
|
114
|
+
], 4)
|
|
115
|
+
], 2),
|
|
116
|
+
e.isForm ? (i(), a(P, { key: 0 }, [
|
|
117
|
+
e.showDrawer ? (i(), S(h, {
|
|
118
|
+
key: 0,
|
|
119
|
+
to: "drawer-content"
|
|
120
|
+
}, {
|
|
121
|
+
default: k(() => [
|
|
122
|
+
u(p, {
|
|
123
|
+
video: o.video,
|
|
124
|
+
size: o.size,
|
|
125
|
+
onInput: o.setValue
|
|
126
|
+
}, null, 8, ["video", "size", "onInput"])
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
})) : c("", !0)
|
|
130
|
+
], 64)) : c("", !0)
|
|
131
|
+
], 32);
|
|
132
|
+
}
|
|
133
|
+
const E = /* @__PURE__ */ V(C, [["render", b], ["__scopeId", "data-v-2bb8500e"]]);
|
|
134
|
+
export {
|
|
135
|
+
E as default
|
|
136
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { m as a } from "./mapFormMixin-Cgvwie9a.js";
|
|
2
|
+
import { T as m } from "./DocTextEditor-CVn6gE1i.js";
|
|
3
|
+
import { _ as c, aa as r, ab as d, ac as i, o as l, b as p, d as u, e as _ } from "./main-DI0diChK.js";
|
|
4
|
+
const x = {
|
|
5
|
+
name: "TextContent",
|
|
6
|
+
components: {
|
|
7
|
+
TextEditor: m
|
|
8
|
+
},
|
|
9
|
+
mixins: [a(["content"])],
|
|
10
|
+
computed: {
|
|
11
|
+
value: {
|
|
12
|
+
get() {
|
|
13
|
+
return this.canEdit ? r(
|
|
14
|
+
this.content,
|
|
15
|
+
this._document.textTemplateMap,
|
|
16
|
+
this._document._doc
|
|
17
|
+
) : d(this.content, this._document._doc);
|
|
18
|
+
},
|
|
19
|
+
set(t) {
|
|
20
|
+
this.content = i(t);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}, f = {
|
|
25
|
+
class: "quill-format",
|
|
26
|
+
style: { "font-size": "16px" }
|
|
27
|
+
};
|
|
28
|
+
function h(t, e, T, v, E, o) {
|
|
29
|
+
const n = _("TextEditor");
|
|
30
|
+
return l(), p("div", f, [
|
|
31
|
+
u(n, {
|
|
32
|
+
ref: "textEditor",
|
|
33
|
+
modelValue: o.value,
|
|
34
|
+
"onUpdate:modelValue": e[0] || (e[0] = (s) => o.value = s),
|
|
35
|
+
placeholder: t.$t("components:account.documentForm.titleAndText.text"),
|
|
36
|
+
mentions: () => t._document.textTemplateItems,
|
|
37
|
+
snippets: !0,
|
|
38
|
+
"is-absolute": !0,
|
|
39
|
+
class: "text-editor",
|
|
40
|
+
style: { "margin-bottom": "1em" }
|
|
41
|
+
}, null, 8, ["modelValue", "placeholder", "mentions"])
|
|
42
|
+
]);
|
|
43
|
+
}
|
|
44
|
+
const I = /* @__PURE__ */ c(x, [["render", h], ["__scopeId", "data-v-7d13b0c4"]]);
|
|
45
|
+
export {
|
|
46
|
+
I as default
|
|
47
|
+
};
|