@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,33 @@
|
|
|
1
|
+
import n from "./AnswerModal-B4LwVv2N.js";
|
|
2
|
+
import { _ as t, c, e as r, o as s } from "./main-DI0diChK.js";
|
|
3
|
+
const u = {
|
|
4
|
+
components: {
|
|
5
|
+
AnswerModal: n
|
|
6
|
+
},
|
|
7
|
+
props: {
|
|
8
|
+
document: {
|
|
9
|
+
type: Object,
|
|
10
|
+
required: !0
|
|
11
|
+
},
|
|
12
|
+
answerType: {
|
|
13
|
+
type: String,
|
|
14
|
+
required: !0
|
|
15
|
+
},
|
|
16
|
+
closeFunc: {
|
|
17
|
+
type: Function,
|
|
18
|
+
default: null
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
function a(d, l, e, m, p, _) {
|
|
23
|
+
const o = r("AnswerModal");
|
|
24
|
+
return s(), c(o, {
|
|
25
|
+
mode: e.answerType,
|
|
26
|
+
_document: e.document,
|
|
27
|
+
onClose: e.closeFunc
|
|
28
|
+
}, null, 8, ["mode", "_document", "onClose"]);
|
|
29
|
+
}
|
|
30
|
+
const w = /* @__PURE__ */ t(u, [["render", a]]);
|
|
31
|
+
export {
|
|
32
|
+
w as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
import { D as F } from "./DocumentVoided-B5_MSBbC.js";
|
|
2
|
+
import { C as L, a as A, w as I } from "./CDropdownItem-BUNVCpSR.js";
|
|
3
|
+
import { _ as $, b6 as B, S as z, a9 as N, e as p, o as t, b as s, s as o, F as g, k as C, l as S, v as i, f as d, c as y, w as v, d as D, B as k, b7 as V, b8 as R, aB as j, b9 as q } from "./main-DI0diChK.js";
|
|
4
|
+
import { C as O } from "./CPhoneFormat-DmN5r9Ci.js";
|
|
5
|
+
const E = {
|
|
6
|
+
name: "PublicDocumentEvents",
|
|
7
|
+
props: {
|
|
8
|
+
document: {
|
|
9
|
+
type: Object,
|
|
10
|
+
default: () => ({})
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
computed: {
|
|
14
|
+
events() {
|
|
15
|
+
const n = [], { acceptedAt: l } = this.document;
|
|
16
|
+
return this.document.events.filter(({ createdAt: e }) => l ? B(l, e) : !0).forEach((e) => {
|
|
17
|
+
const { code: f, createdAt: u, children: m = [] } = e;
|
|
18
|
+
let { data: h = {} } = e;
|
|
19
|
+
h === null && (h = {});
|
|
20
|
+
const { client: r = {}, clients: b = [], status: _, counter: w } = h, x = {
|
|
21
|
+
sent: () => b.map((c) => {
|
|
22
|
+
const a = this.getClientName(c.id);
|
|
23
|
+
return {
|
|
24
|
+
text: this.document.$t("event.sent", {
|
|
25
|
+
to: `${a ? a + ", " : ""}`
|
|
26
|
+
}),
|
|
27
|
+
email: c.email,
|
|
28
|
+
cellphone: c.cellphone,
|
|
29
|
+
region: c.cellphoneRegion,
|
|
30
|
+
time: u
|
|
31
|
+
};
|
|
32
|
+
}),
|
|
33
|
+
viewed: () => {
|
|
34
|
+
const c = w || m.length + 1;
|
|
35
|
+
return [
|
|
36
|
+
{
|
|
37
|
+
text: `${this.document.$t(
|
|
38
|
+
`event.${r.name ? "viewedName" : "viewed"}`,
|
|
39
|
+
{ name: r.name }
|
|
40
|
+
)} ${c ? this.document.$tc("times", { count: c }) : ""}.`,
|
|
41
|
+
time: u
|
|
42
|
+
}
|
|
43
|
+
];
|
|
44
|
+
},
|
|
45
|
+
accepted: () => [
|
|
46
|
+
{
|
|
47
|
+
text: this.document.$t("event.accepted", {
|
|
48
|
+
by: r.name || r.email || r.cellphone
|
|
49
|
+
}),
|
|
50
|
+
time: u
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
denied: () => [
|
|
54
|
+
{
|
|
55
|
+
text: this.document.$t("event.denied", {
|
|
56
|
+
by: r.name || r.email || r.cellphone
|
|
57
|
+
}),
|
|
58
|
+
time: u
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
statusChanged: () => [
|
|
62
|
+
{
|
|
63
|
+
text: this.document.$t("event.statusChanged", {
|
|
64
|
+
status: this.document.$t(`status.${_}`).toLowerCase()
|
|
65
|
+
}),
|
|
66
|
+
time: u
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
requestChange: () => [
|
|
70
|
+
{
|
|
71
|
+
text: this.document.$t("event.requestChange", {
|
|
72
|
+
status: this.document.$t(`status.${_}`).toLowerCase()
|
|
73
|
+
}),
|
|
74
|
+
time: u
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
expired: () => [
|
|
78
|
+
{
|
|
79
|
+
text: this.document.$t("event.expired"),
|
|
80
|
+
time: u
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
};
|
|
84
|
+
x[f] && n.push(...x[f]());
|
|
85
|
+
}), n;
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
methods: {
|
|
89
|
+
getClientName(n) {
|
|
90
|
+
const l = this.document.clients.find(({ id: e }) => e === n);
|
|
91
|
+
return l ? l.name : "";
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
function T(n, l, e, f, u, m) {
|
|
96
|
+
return z(n.$slots, "default", { events: m.events });
|
|
97
|
+
}
|
|
98
|
+
const M = /* @__PURE__ */ $(E, [["render", T]]), U = {
|
|
99
|
+
name: "PublicRecipientItem",
|
|
100
|
+
i18nOptions: {
|
|
101
|
+
namespaces: "components",
|
|
102
|
+
keyPrefix: "document.myPagesDrawer"
|
|
103
|
+
},
|
|
104
|
+
components: {
|
|
105
|
+
CPhoneFormat: O
|
|
106
|
+
},
|
|
107
|
+
props: {
|
|
108
|
+
recipient: {
|
|
109
|
+
type: Object,
|
|
110
|
+
required: !0
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
methods: {
|
|
114
|
+
get: N,
|
|
115
|
+
getBrowserString({ browser: n, os: l, device: e }) {
|
|
116
|
+
return [n && n.name, l && l.name, e && e.model].filter((f) => !!f).join(", ");
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}, W = { style: { border: "1px solid hsl(0, 0%, 84%)", "border-radius": "3px", "margin-bottom": "1em" } }, G = { style: { padding: "0.5em 0.75em" } }, H = {
|
|
120
|
+
class: "flex w-full flex-col",
|
|
121
|
+
style: { "font-size": "14px", "align-items": "baseline" }
|
|
122
|
+
}, J = ["href"], K = ["href"], Q = { style: { "background-color": "hsl(0, 0%, 94%)", padding: "0.75em 0.75em", "font-weight": "500", "font-size": "13px", "line-height": "1", color: "hsl(0, 0%, 40%)", position: "relative" } }, X = { style: { position: "absolute", right: "1em", top: "0px", transform: "translate(0, -50%)" } }, Y = {
|
|
123
|
+
key: 0,
|
|
124
|
+
style: { padding: "5px 0.75em", background: "hsl(0, 0%, 60%)", "border-radius": "4px", "font-size": "13px", color: "hsl(0, 0%, 100%)", cursor: "default", display: "inline-flex", "align-items": "center" }
|
|
125
|
+
}, Z = { style: { padding: "0" } }, ee = { style: { padding: "1em 1.5em" } }, te = {
|
|
126
|
+
key: 0,
|
|
127
|
+
style: { "padding-bottom": "0.5em" }
|
|
128
|
+
}, ne = {
|
|
129
|
+
class: "has-text-grey",
|
|
130
|
+
style: { "padding-bottom": "1em" }
|
|
131
|
+
}, ie = ["src"], oe = {
|
|
132
|
+
key: 1,
|
|
133
|
+
style: { "font-size": "13px", "padding-top": "3px" }
|
|
134
|
+
}, se = { style: { "font-weight": "500" } }, ce = {
|
|
135
|
+
key: 1,
|
|
136
|
+
style: { "font-weight": "500" }
|
|
137
|
+
}, ae = { key: 1 }, de = { key: 2 }, le = {
|
|
138
|
+
key: 0,
|
|
139
|
+
style: { padding: "8px 1.5em", "border-top": "1px solid hsl(0deg 0% 88%)", "background-color": "hsl(0deg 0% 95%)", "font-size": "13px", color: "hsl(0, 0%, 35%)", "font-weight": "500" }
|
|
140
|
+
}, re = { key: 0 }, ue = { key: 1 }, me = { key: 2 };
|
|
141
|
+
function he(n, l, e, f, u, m) {
|
|
142
|
+
const h = p("CPhoneFormat"), r = p("CIcon"), b = p("VDropdown");
|
|
143
|
+
return t(), s("div", W, [
|
|
144
|
+
o("div", G, [
|
|
145
|
+
(t(!0), s(g, null, C([
|
|
146
|
+
e.recipient.name,
|
|
147
|
+
e.recipient.companyName,
|
|
148
|
+
e.recipient.orgNo
|
|
149
|
+
], (_, w) => (t(), s("span", {
|
|
150
|
+
key: `${_}-${w}`,
|
|
151
|
+
style: S(w === 0 ? { fontWeight: 500 } : { opacity: 0.65 })
|
|
152
|
+
}, i(_ && w > 0 ? "·" : "") + " " + i(_), 5))), 128)),
|
|
153
|
+
o("div", H, [
|
|
154
|
+
e.recipient.email ? (t(), s("a", {
|
|
155
|
+
key: 0,
|
|
156
|
+
href: `mailto:${e.recipient.email}`,
|
|
157
|
+
target: "_blank"
|
|
158
|
+
}, i(e.recipient.email), 9, J)) : d("", !0),
|
|
159
|
+
e.recipient.cellphone ? (t(), y(h, {
|
|
160
|
+
key: 1,
|
|
161
|
+
phone: e.recipient.cellphone,
|
|
162
|
+
region: e.recipient.cellphoneRegion
|
|
163
|
+
}, {
|
|
164
|
+
default: v(({ formattedValue: _ }) => [
|
|
165
|
+
o("a", {
|
|
166
|
+
href: `tel:${e.recipient.cellphone}`
|
|
167
|
+
}, i(_), 9, K)
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
}, 8, ["phone", "region"])) : d("", !0)
|
|
171
|
+
])
|
|
172
|
+
]),
|
|
173
|
+
o("div", Q, [
|
|
174
|
+
o("div", null, i(n.$t(`_common:documentRole.${e.recipient.documentRole}.label`)), 1),
|
|
175
|
+
o("div", X, [
|
|
176
|
+
D(b, {
|
|
177
|
+
"popper-class": "signee-popover",
|
|
178
|
+
triggers: ["hover"],
|
|
179
|
+
placement: "bottom-end"
|
|
180
|
+
}, {
|
|
181
|
+
popper: v(() => [
|
|
182
|
+
o("div", Z, [
|
|
183
|
+
o("div", ee, [
|
|
184
|
+
e.recipient.answer && e.recipient.answer.didAccept ? (t(), s(g, { key: 0 }, [
|
|
185
|
+
e.recipient.answer.signatureDataURL ? (t(), s("div", te, [
|
|
186
|
+
o("div", ne, i(n.$t("_common:signature").capitalize()), 1),
|
|
187
|
+
o("img", {
|
|
188
|
+
src: e.recipient.answer.signatureDataURL,
|
|
189
|
+
style: { width: "80%" }
|
|
190
|
+
}, null, 8, ie)
|
|
191
|
+
])) : (t(), s("div", oe, [
|
|
192
|
+
m.get(e.recipient, "answerMethod.accept") === "bankId" ? (t(), s(g, { key: 0 }, [
|
|
193
|
+
o("div", se, i(n.$t(
|
|
194
|
+
"views:publicDocument.pdfVerification.recipient.signedBankId"
|
|
195
|
+
)), 1),
|
|
196
|
+
o("div", null, i(e.recipient.answer.response.name), 1),
|
|
197
|
+
o("div", null, i(e.recipient.socialNo), 1)
|
|
198
|
+
], 64)) : m.get(e.recipient, "answerMethod.accept") === "login" ? (t(), s("div", ce, i(n.$t(
|
|
199
|
+
"views:publicDocument.pdfVerification.recipient.verifiedLogin"
|
|
200
|
+
)), 1)) : d("", !0)
|
|
201
|
+
]))
|
|
202
|
+
], 64)) : e.recipient.answer ? (t(), s("div", ae, i(n.$t("_common:denied").capitalize()), 1)) : (t(), s("div", de, i(n.$t("pendingAnswer")), 1))
|
|
203
|
+
]),
|
|
204
|
+
e.recipient.answer ? (t(), s("div", le, [
|
|
205
|
+
e.recipient.answer.didAnswerAt ? (t(), s("div", re, [
|
|
206
|
+
o("div", null, i(n.$t("_common:date").capitalize()) + ": " + i(n.$formatDate(e.recipient.answer.didAnswerAt, "P")), 1),
|
|
207
|
+
o("div", null, i(n.$t("_common:time").capitalize()) + ": " + i(n.$formatDate(e.recipient.answer.didAnswerAt, "p")), 1)
|
|
208
|
+
])) : d("", !0),
|
|
209
|
+
e.recipient.answer.ip ? (t(), s("div", ue, " IP: " + i(e.recipient.answer.ip), 1)) : d("", !0),
|
|
210
|
+
e.recipient.answer.browser ? (t(), s("div", me, " Browser: " + i(m.getBrowserString(e.recipient.answer)), 1)) : d("", !0)
|
|
211
|
+
])) : d("", !0)
|
|
212
|
+
])
|
|
213
|
+
]),
|
|
214
|
+
default: v(() => [
|
|
215
|
+
e.recipient.documentRole === "signee" ? (t(), s("div", Y, [
|
|
216
|
+
D(r, {
|
|
217
|
+
size: 15,
|
|
218
|
+
type: "info",
|
|
219
|
+
style: { "margin-right": "0.5ch" },
|
|
220
|
+
"stroke-width": "2"
|
|
221
|
+
}),
|
|
222
|
+
e.recipient.answer && e.recipient.answer.didAccept ? (t(), s(g, { key: 0 }, [
|
|
223
|
+
k(i(n.$t("_common:approved").capitalize()), 1)
|
|
224
|
+
], 64)) : e.recipient.answer ? (t(), s(g, { key: 1 }, [
|
|
225
|
+
k(i(n.$t("_common:denied").capitalize()), 1)
|
|
226
|
+
], 64)) : (t(), s(g, { key: 2 }, [
|
|
227
|
+
k(i(n.$t("views:publicDocument.pdfVerification.waitingForAnswer")), 1)
|
|
228
|
+
], 64))
|
|
229
|
+
])) : d("", !0)
|
|
230
|
+
]),
|
|
231
|
+
_: 1
|
|
232
|
+
})
|
|
233
|
+
])
|
|
234
|
+
])
|
|
235
|
+
]);
|
|
236
|
+
}
|
|
237
|
+
const pe = /* @__PURE__ */ $(U, [["render", he], ["__scopeId", "data-v-f0bf3dd6"]]), _e = {
|
|
238
|
+
name: "DocumentDetails",
|
|
239
|
+
components: {
|
|
240
|
+
PublicDocumentEvents: M,
|
|
241
|
+
PublicRecipientItem: pe,
|
|
242
|
+
CDropdown: L,
|
|
243
|
+
CDropdownItem: A
|
|
244
|
+
},
|
|
245
|
+
mixins: [I],
|
|
246
|
+
props: {
|
|
247
|
+
document: {
|
|
248
|
+
type: Object,
|
|
249
|
+
required: !0
|
|
250
|
+
},
|
|
251
|
+
openPrintFunc: {
|
|
252
|
+
type: Function,
|
|
253
|
+
default: null
|
|
254
|
+
},
|
|
255
|
+
showLanguageSelect: {
|
|
256
|
+
type: Boolean,
|
|
257
|
+
default: !0
|
|
258
|
+
},
|
|
259
|
+
close: {
|
|
260
|
+
type: Function,
|
|
261
|
+
default: null
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
data() {
|
|
265
|
+
return {
|
|
266
|
+
docLanguages: V,
|
|
267
|
+
nativeTranslations: R
|
|
268
|
+
};
|
|
269
|
+
},
|
|
270
|
+
computed: {
|
|
271
|
+
viewer() {
|
|
272
|
+
return this.document.viewer;
|
|
273
|
+
},
|
|
274
|
+
showActionNav() {
|
|
275
|
+
return !!(this.openPrintFunc || this.showLanguageSelect || this.close);
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
methods: {
|
|
279
|
+
changeLanguage(n) {
|
|
280
|
+
this.document.language = n, j.changeLanguage(q.includes(n) ? n : "en");
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}, ge = { class: "relative flex h-full w-full flex-col overflow-hidden rounded-lg bg-white text-base" }, fe = {
|
|
284
|
+
key: 0,
|
|
285
|
+
class: "z-10 flex w-full items-center justify-end px-6 py-4 shadow-sm"
|
|
286
|
+
}, ye = { class: "d-root h-full min-h-0 flex-1 overflow-auto px-6 py-8 md:px-12 md:py-16" }, ve = { class: "mb-[3em] flex justify-between" }, we = { style: { "font-size": "18px", "font-weight": "600" } }, ke = {
|
|
287
|
+
class: "has-text-grey",
|
|
288
|
+
style: { "font-size": "14px" }
|
|
289
|
+
}, be = {
|
|
290
|
+
class: "d-option",
|
|
291
|
+
style: { "margin-bottom": "3em" }
|
|
292
|
+
}, De = {
|
|
293
|
+
class: "d-option-title",
|
|
294
|
+
style: { "padding-bottom": "0.5rem" }
|
|
295
|
+
}, xe = {
|
|
296
|
+
key: 0,
|
|
297
|
+
class: "d-option"
|
|
298
|
+
}, Ce = { class: "d-option-title" }, $e = { id: "timeline" }, ze = { class: "e-data" }, Pe = { class: "e-text" }, Fe = { key: 0 }, Le = { class: "e-timestamp" }, Ae = { class: "e-date" }, Ie = {
|
|
299
|
+
class: "e-time",
|
|
300
|
+
style: { "padding-left": "0.5ch" }
|
|
301
|
+
}, Be = { key: 0 }, Ne = { key: 1 };
|
|
302
|
+
function Se(n, l, e, f, u, m) {
|
|
303
|
+
const h = p("CButton"), r = p("CDropdownItem"), b = p("CDropdown"), _ = p("PublicRecipientItem"), w = p("CPhoneFormat"), x = p("PublicDocumentEvents");
|
|
304
|
+
return t(), s("div", ge, [
|
|
305
|
+
m.showActionNav ? (t(), s("div", fe, [
|
|
306
|
+
e.openPrintFunc ? (t(), s(g, { key: 0 }, [
|
|
307
|
+
D(h, {
|
|
308
|
+
"icon-left": "print",
|
|
309
|
+
type: "none",
|
|
310
|
+
pattern: "tertiary",
|
|
311
|
+
taller: "",
|
|
312
|
+
size: "small",
|
|
313
|
+
style: { "padding-left": "1em", "padding-right": "1em" },
|
|
314
|
+
onClick: e.openPrintFunc
|
|
315
|
+
}, {
|
|
316
|
+
default: v(() => [
|
|
317
|
+
k(i(e.document.$t("download", { thing: "PDF" })), 1)
|
|
318
|
+
]),
|
|
319
|
+
_: 1
|
|
320
|
+
}, 8, ["onClick"]),
|
|
321
|
+
l[0] || (l[0] = o("div", { style: { height: "2rem", width: "1px", "background-color": "hsl(0, 0%, 88%)", margin: "0 6px" } }, null, -1))
|
|
322
|
+
], 64)) : d("", !0),
|
|
323
|
+
e.showLanguageSelect ? (t(), y(b, {
|
|
324
|
+
key: 1,
|
|
325
|
+
"model-value": e.document.language
|
|
326
|
+
}, {
|
|
327
|
+
trigger: v(() => [
|
|
328
|
+
D(h, {
|
|
329
|
+
"icon-props": { size: 18 },
|
|
330
|
+
size: "normal",
|
|
331
|
+
icon: "globe",
|
|
332
|
+
circle: "",
|
|
333
|
+
style: { color: "hsla(0, 0%, 45%, 1)" }
|
|
334
|
+
})
|
|
335
|
+
]),
|
|
336
|
+
default: v(() => [
|
|
337
|
+
(t(!0), s(g, null, C(u.docLanguages, (c) => (t(), y(r, {
|
|
338
|
+
key: c,
|
|
339
|
+
value: c,
|
|
340
|
+
onClick: (a) => m.changeLanguage(c)
|
|
341
|
+
}, {
|
|
342
|
+
default: v(() => [
|
|
343
|
+
k(i(u.nativeTranslations[c]), 1)
|
|
344
|
+
]),
|
|
345
|
+
_: 2
|
|
346
|
+
}, 1032, ["value", "onClick"]))), 128))
|
|
347
|
+
]),
|
|
348
|
+
_: 1
|
|
349
|
+
}, 8, ["model-value"])) : d("", !0),
|
|
350
|
+
e.close ? (t(), y(h, {
|
|
351
|
+
key: 2,
|
|
352
|
+
"icon-props": { size: 18 },
|
|
353
|
+
size: "normal",
|
|
354
|
+
icon: "x",
|
|
355
|
+
circle: "",
|
|
356
|
+
style: { "margin-left": "6px", color: "hsla(0, 0%, 45%, 1)" },
|
|
357
|
+
onClick: e.close
|
|
358
|
+
}, null, 8, ["onClick"])) : d("", !0)
|
|
359
|
+
])) : d("", !0),
|
|
360
|
+
o("div", ye, [
|
|
361
|
+
o("div", ve, [
|
|
362
|
+
o("div", null, [
|
|
363
|
+
o("div", we, i(e.document.$t("detail_plural").capitalize()), 1),
|
|
364
|
+
o("div", ke, i(e.document.$t("documentDetails.subTitle")), 1)
|
|
365
|
+
])
|
|
366
|
+
]),
|
|
367
|
+
o("div", be, [
|
|
368
|
+
o("div", De, i(e.document.$t("participant_plural").capitalize()), 1),
|
|
369
|
+
(t(!0), s(g, null, C(e.document.recipients, (c, a) => (t(), y(_, {
|
|
370
|
+
key: c._uniqueId + a,
|
|
371
|
+
recipient: c
|
|
372
|
+
}, null, 8, ["recipient"]))), 128))
|
|
373
|
+
]),
|
|
374
|
+
D(x, { document: e.document }, {
|
|
375
|
+
default: v(({ events: c }) => [
|
|
376
|
+
c && c.length ? (t(), s("div", xe, [
|
|
377
|
+
o("div", Ce, i(e.document.$t("event.event_plural").capitalize()), 1),
|
|
378
|
+
o("div", $e, [
|
|
379
|
+
o("div", null, [
|
|
380
|
+
(t(!0), s(g, null, C(c, (a, P) => (t(), s("div", {
|
|
381
|
+
key: P,
|
|
382
|
+
class: "e-item"
|
|
383
|
+
}, [
|
|
384
|
+
o("div", ze, [
|
|
385
|
+
o("div", Pe, [
|
|
386
|
+
k(i(a.text) + " ", 1),
|
|
387
|
+
a.email || a.cellphone ? (t(), s("span", Fe, [
|
|
388
|
+
k(i(a.email) + " " + i(a.email && a.cellphone && n.$t("_common:and")) + " ", 1),
|
|
389
|
+
a.cellphone ? (t(), y(w, {
|
|
390
|
+
key: 0,
|
|
391
|
+
phone: a.cellphone,
|
|
392
|
+
region: a.region
|
|
393
|
+
}, null, 8, ["phone", "region"])) : d("", !0)
|
|
394
|
+
])) : d("", !0)
|
|
395
|
+
]),
|
|
396
|
+
o("div", Le, [
|
|
397
|
+
o("div", Ae, i(n.$formatDate(a.time, "P")), 1),
|
|
398
|
+
o("div", Ie, i(n.$formatDate(a.time, "p")), 1)
|
|
399
|
+
])
|
|
400
|
+
])
|
|
401
|
+
]))), 128))
|
|
402
|
+
])
|
|
403
|
+
])
|
|
404
|
+
])) : d("", !0)
|
|
405
|
+
]),
|
|
406
|
+
_: 1
|
|
407
|
+
}, 8, ["document"]),
|
|
408
|
+
n.mq === "sm" ? (t(), s("div", Be, [
|
|
409
|
+
z(n.$slots, "footer", {}, void 0, !0)
|
|
410
|
+
])) : d("", !0)
|
|
411
|
+
]),
|
|
412
|
+
n.mq !== "sm" ? (t(), s("div", Ne, [
|
|
413
|
+
z(n.$slots, "footer", {}, void 0, !0)
|
|
414
|
+
])) : d("", !0)
|
|
415
|
+
]);
|
|
416
|
+
}
|
|
417
|
+
const Ve = /* @__PURE__ */ $(_e, [["render", Se], ["__scopeId", "data-v-b7526cd5"]]), Re = {
|
|
418
|
+
components: {
|
|
419
|
+
DocumentDetails: Ve,
|
|
420
|
+
DocumentVoided: F
|
|
421
|
+
},
|
|
422
|
+
props: {
|
|
423
|
+
document: {
|
|
424
|
+
type: Object,
|
|
425
|
+
required: !0
|
|
426
|
+
},
|
|
427
|
+
closeFunc: {
|
|
428
|
+
type: Function,
|
|
429
|
+
default: null
|
|
430
|
+
},
|
|
431
|
+
showLanguageSelect: {
|
|
432
|
+
type: Boolean,
|
|
433
|
+
default: !0
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
function je(n, l, e, f, u, m) {
|
|
438
|
+
const h = p("DocumentVoided"), r = p("DocumentDetails");
|
|
439
|
+
return e.document && e.document.status === "voided" ? (t(), y(h, {
|
|
440
|
+
key: 0,
|
|
441
|
+
document: e.document
|
|
442
|
+
}, null, 8, ["document"])) : (t(), y(r, {
|
|
443
|
+
key: 1,
|
|
444
|
+
document: e.document,
|
|
445
|
+
"show-language-select": e.showLanguageSelect,
|
|
446
|
+
close: e.closeFunc
|
|
447
|
+
}, null, 8, ["document", "show-language-select", "close"]));
|
|
448
|
+
}
|
|
449
|
+
const Me = /* @__PURE__ */ $(Re, [["render", je]]);
|
|
450
|
+
export {
|
|
451
|
+
Me as default
|
|
452
|
+
};
|