@cling-se/widget 0.17.0 → 1.0.0-beta.2
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-e8d19R3f.js +101 -0
- package/dist/AnswerModal-BGvB8IVV.js +3291 -0
- package/dist/AttachmentItem-CkHbAm4l.js +171 -0
- package/dist/BaseUpload-BiJBcWRu.js +2472 -0
- package/dist/BlockMedia-CW5wgipC.js +103 -0
- package/dist/CCallout-Cy2eeIYd.js +104 -0
- package/dist/{CCurrencyDropdown-C2rXt2cJ.js → CCurrencyDropdown-DE_3CTjm.js} +91 -53
- package/dist/CDropdownItem-Dmq5gYzA.js +751 -0
- package/dist/CFormField.vue_vue_type_script_setup_true_lang-D_U9coAY.js +292 -0
- package/dist/{CPhoneFormat-C8VPsiK6.js → CPhoneFormat-BS2nP9kc.js} +13 -21
- package/dist/CPhoneInput-Bf6329PO.js +207 -0
- package/dist/CPriceInput-d1yjuMQr.js +140 -0
- package/dist/CSelect-DgnT07Hk.js +98 -0
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-Ckl--dyv.js +51 -0
- package/dist/ClientAutocomplete-9JzGcO9O.js +532 -0
- package/dist/ClientModal-BzWQtWSZ.js +1181 -0
- package/dist/ColorPicker-BvoFN8nu.js +1408 -0
- package/dist/CompanyModal-Bp4V_az9.js +250 -0
- package/dist/ContentWrapper-CuH6xKmo.js +265 -0
- package/dist/CoverBlockSettings-BA5L0Zee.js +861 -0
- package/dist/DocAnswer-BcNA_KEg.js +33 -0
- package/dist/DocDetails-CStEwWnU.js +448 -0
- package/dist/DocForm-BOoILf5E.js +6748 -0
- package/dist/DocFormSend-CQIf-HJY.js +171 -0
- package/dist/DocLinks-BRX5QzNe.js +36 -0
- package/dist/DocModalBase-D72yWj-x.js +29 -0
- package/dist/DocPrint-BI1LXUPE.js +399 -0
- package/dist/DocReceipt-DaZ4V76p.js +341 -0
- package/dist/DocSendReminder-DKGZlo7s.js +181 -0
- package/dist/DocTextEditor-Dm-cTZpA.js +19413 -0
- package/dist/DocTimeline-DCwofzuk.js +537 -0
- package/dist/DocumentClient-vJdxCB53.js +90 -0
- package/dist/DocumentLayout-CKSi42ev.js +1368 -0
- package/dist/DocumentLogotype-DbQlvQ-y.js +162 -0
- package/dist/DocumentVoided-CRX2WxWO.js +33 -0
- package/dist/EmbedInput-B-oeC4Wy.js +157 -0
- package/dist/EmbedSettings-B9Yka2yB.js +103 -0
- package/dist/ErrorCallout-B_ygH33E.js +34 -0
- package/dist/FilePreviewModal-Bf3ELTow.js +202 -0
- package/dist/Flag-BwTgCNHO.js +41 -0
- package/dist/HeaderSettings-DvC7nlyY.js +720 -0
- package/dist/ImageSelectModal-D3sP3lhR.js +119 -0
- package/dist/ImageUploadWrapper-RWNa-yIq.js +1585 -0
- package/dist/Index-0_3ULrWX.js +126 -0
- package/dist/Index-4NPe0sfX.js +629 -0
- package/dist/Index-B1uA0FF6.js +4 -0
- package/dist/Index-BBkCYm2q.js +201 -0
- package/dist/{Index-LzN6dktq.js → Index-BBwvo7S9.js} +10 -18
- package/dist/Index-BEMlsYwJ.js +68 -0
- package/dist/Index-BRBhJ6kz.js +21 -0
- package/dist/{Index-BPUYpfLJ.js → Index-BTFmHjUt.js} +47 -60
- package/dist/Index-BcUNnxLC.js +1098 -0
- package/dist/Index-Bo6ExBUL.js +93 -0
- package/dist/Index-BvMPCgdH.js +102 -0
- package/dist/Index-Bx5TOI9k.js +74 -0
- package/dist/Index-C7GZS8EI.js +16 -0
- package/dist/Index-CNWhm07R.js +25 -0
- package/dist/{Index-BUK-1yVR.js → Index-CQpznMKV.js} +9 -17
- package/dist/Index-CRzsnIij.js +159 -0
- package/dist/Index-CeSG1C41.js +140 -0
- package/dist/Index-CjfjdZj5.js +52 -0
- package/dist/Index-CskKmZpd.js +363 -0
- package/dist/Index-D5qwbCo1.js +28 -0
- package/dist/Index-D8Ae1Txt.js +228 -0
- package/dist/Index-DE8aenDB.js +3452 -0
- package/dist/Index-DI5EB5Rt.js +39 -0
- package/dist/Index-DaV57YPP.js +163 -0
- package/dist/Index-DbwkmoyM.js +38 -0
- package/dist/Index-Df9skok6.js +70 -0
- package/dist/{Index-BHJGfHm9.js → Index-DfLLA0ij.js} +313 -206
- package/dist/Index-Dw1CO5F9.js +76 -0
- package/dist/Index-PZXyOoVb.js +87 -0
- package/dist/{Index-BioOegOO.js → Index-ZUnH-BHj.js} +10 -18
- package/dist/Index-cjKGSiDi.js +136 -0
- package/dist/Index-m-goRuKD.js +49 -0
- package/dist/Index-rGeWbLcB.js +47 -0
- package/dist/Index-vrljNp6G.js +28 -0
- package/dist/Index.vue_vue_type_script_lang-aeVuChGF.js +671 -0
- package/dist/InputToggleRow-v6qAWPg6.js +99 -0
- package/dist/ManualPopover-BONBJIUA.js +57 -0
- package/dist/MediaWrapper-CXb2UGd9.js +18 -0
- package/dist/{NotBindingText-CM3FN0A6.js → NotBindingText-BqESO13N.js} +13 -17
- package/dist/PackageGroup-AIysVmyh.js +1058 -0
- package/dist/PdfTerms-BlhHdTu3.js +34 -0
- package/dist/PdfViewer-DwZ1rwlN.js +392 -0
- package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6NNUTz0.js +17 -0
- package/dist/PriceHeader-C4XhnoA3.js +488 -0
- package/dist/SearchApi-B7lXgUY6.js +137 -0
- package/dist/SendForm-BcD0xSvB.js +7031 -0
- package/dist/Setup-C2qaYDei.js +47 -0
- package/dist/{SmartList-DhhjSWLO.js → SmartList-DqG7Q5t7.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-CzMbr8AX.js +1303 -0
- package/dist/{TermsSettings-BEQwmkFH.js → TermsSettings-BOCONyM4.js} +169 -56
- package/dist/ThemeColorRow-sjGdMzGN.js +108 -0
- package/dist/ToggleBinding-7oq_oXPt.js +44 -0
- package/dist/UploadModal-C_X2NjVY.js +134 -0
- package/dist/VideoPlayerInput-BsUcmpl4.js +135 -0
- package/dist/VideoPlayerSettings-BXMmxaZQ.js +78 -0
- package/dist/VideoSelectModal-CW0OweCw.js +217 -0
- package/dist/{anime.es-BrPTThYb.js → anime.es-gdcpA-eY.js} +1 -2
- package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
- package/dist/{debounce-D0hKNU85.js → debounce-DNl99Gyo.js} +10 -10
- package/dist/dom-CkTGWrfu.js +69 -0
- package/dist/{focusDrawerMixin-C_aTLmK0.js → focusDrawerMixin-BwcErMDY.js} +1 -1
- package/dist/{formDrawerState-Da4mcbab.js → formDrawerState-DaurePnd.js} +2 -2
- package/dist/helpers-CPW--XIz.js +44 -0
- package/dist/index-BjiGCJPI.js +149 -0
- package/dist/index-CFNv6OvX.js +188 -0
- package/dist/index-Cx71On5Z.js +508 -0
- package/dist/index-DKMxIBz_.js +270 -0
- package/dist/index-DKf5SGLD.js +125 -0
- package/dist/index-E32WgUp9.js +3525 -0
- package/dist/index-kp-GC5I0.js +513 -0
- package/dist/index.es.js +2 -5
- package/dist/index.umd.js +285 -1485
- package/dist/{main-BgzLHIoo.js → main-Cb-nyil1.js} +41414 -42507
- package/dist/mapFormMixin-D3BihYWW.js +1544 -0
- package/dist/omit--YYr41Xp.js +31 -0
- package/dist/{publicSenderState-DB4BHByV.js → publicSenderState-CdRW_Wwp.js} +4 -4
- package/dist/splitpanes-D-ThFkeR.js +342 -0
- package/dist/style.css +1 -4
- package/dist/template-BvaNnq-g.js +1493 -0
- package/dist/{throttle-DT2UVOqm.js → throttle-D-bUGaVh.js} +2 -2
- package/dist/tippy.esm-BmKNqohP.js +1994 -0
- package/dist/useTermsModal-Dhf6_eYb.js +87 -0
- package/dist/{utils-nos8CB1L.js → utils-CBPcYdLv.js} +8 -11
- package/dist/validation-DOcUOoMe.js +40 -0
- package/package.json +18 -21
- package/dist/AddClientCallout-BJzBdba1.js +0 -48
- package/dist/AnswerModal-frHq1g4s.js +0 -3874
- package/dist/AttachmentItem-BaN0OrEV.js +0 -85
- package/dist/BaseDatePicker-B-AfdrSb.js +0 -3187
- package/dist/BaseUpload-CY3lTcte.js +0 -1977
- package/dist/BlockMedia-Bb5wQIDg.js +0 -76
- package/dist/CCallout-5quI6yyk.js +0 -58
- package/dist/CDropdownItem-CaoSQX6X.js +0 -640
- package/dist/CFormField-Dd2Y71JG.js +0 -240
- package/dist/CPhoneInput-BU1t6eo_.js +0 -138
- package/dist/CPriceInput-pv2aIVkH.js +0 -116
- package/dist/CSelect-CrM45B7V.js +0 -91
- package/dist/CSkeleton-BkvONMqL.js +0 -55
- package/dist/ClientAutocomplete-BRXIKQSk.js +0 -438
- package/dist/ClientModal-CvHAptV2.js +0 -666
- package/dist/ColorPicker-RgoXRrud.js +0 -2879
- package/dist/CompanyModal-OL4bD9Gk.js +0 -147
- package/dist/ContentWrapper-8HduCnR4.js +0 -190
- package/dist/CoverBlockSettings-DUv8AcdX.js +0 -659
- package/dist/DocAnswer-DiyFfpT2.js +0 -36
- package/dist/DocDetails-BxNRfBnK.js +0 -263
- package/dist/DocForm-MGp-o0pu.js +0 -5017
- package/dist/DocFormSend-q_QuVCqh.js +0 -146
- package/dist/DocLinks-DGDdp30U.js +0 -38
- package/dist/DocModalBase-qG4RqwBn.js +0 -28
- package/dist/DocPrint-Cln3kt0g.js +0 -240
- package/dist/DocReceipt-nbsJ-ukZ.js +0 -217
- package/dist/DocSendReminder-B3qdqduf.js +0 -140
- package/dist/DocTextEditor-CQDnjnRY.js +0 -17193
- package/dist/DocTimeline-CgKHoDcG.js +0 -485
- package/dist/DocumentClient-UZlnIlz5.js +0 -136
- package/dist/DocumentLayout-Dvr4zgyF.js +0 -4880
- package/dist/DocumentLogotype-mAVgMRHr.js +0 -92
- package/dist/DocumentVoided-BXYNrf_6.js +0 -25
- package/dist/EmbedInput-YRUrw3c6.js +0 -117
- package/dist/EmbedSettings-DvRreF7H.js +0 -74
- package/dist/ErrorCallout-DVknpLVY.js +0 -27
- package/dist/FilePreviewModal-DC56FaGy.js +0 -81
- package/dist/Flag-D5iZLESg.js +0 -46
- package/dist/HeaderSettings-DXZnZL7A.js +0 -440
- package/dist/ImageSelectModal-Bu4_xZga.js +0 -86
- package/dist/ImageUploadWrapper-CtZhkAm1.js +0 -1604
- package/dist/Index-B1dJO6Bk.js +0 -54
- package/dist/Index-B3pz1coY.js +0 -150
- package/dist/Index-BHgW8EHW.js +0 -2446
- package/dist/Index-BNucs2O-.js +0 -154
- package/dist/Index-BW-EtZ1z.js +0 -55
- package/dist/Index-BjKACpun.js +0 -66
- package/dist/Index-C94BL4uU.js +0 -294
- package/dist/Index-CB57haU8.js +0 -58
- package/dist/Index-CP17iXT6.js +0 -25
- package/dist/Index-CUSbvjoD.js +0 -62
- package/dist/Index-CVnD6jo5.js +0 -25
- package/dist/Index-Ci5zdPeT.js +0 -28
- package/dist/Index-CikqSMjb.js +0 -41
- package/dist/Index-CxO4tJ3U.js +0 -26
- package/dist/Index-D4J4BpHd.js +0 -230
- package/dist/Index-DAQQQlut.js +0 -754
- package/dist/Index-DNxSR72J.js +0 -73
- package/dist/Index-DPuKRwmu.js +0 -41
- package/dist/Index-DSy8QG8T.js +0 -32
- package/dist/Index-DX6_D-J-.js +0 -77
- package/dist/Index-Dk0KaIKg.js +0 -643
- package/dist/Index-Hkzoh9QR.js +0 -24
- package/dist/Index-KsHJxWAa.js +0 -94
- package/dist/Index-TtItTuv6.js +0 -33
- package/dist/Index-YAD39Qvg.js +0 -146
- package/dist/Index-eh909lAz.js +0 -107
- package/dist/Index-otowKI_C.js +0 -56
- package/dist/Index-t_oVV8Rc.js +0 -84
- package/dist/Index-vG96oEXZ.js +0 -144
- package/dist/InputToggleRow-CcqJDguN.js +0 -57
- package/dist/ManualPopover-BE2IN-XU.js +0 -60
- package/dist/MediaWrapper-lnGUFiyc.js +0 -23
- package/dist/PackageGroup-BsmxOMLW.js +0 -704
- package/dist/PdfTerms-BgYwZoAZ.js +0 -31
- package/dist/PdfViewer-C0lDpjte.js +0 -383
- package/dist/PlainHtml-5YwYVj1v.js +0 -27
- package/dist/PriceHeader-CxqhpGS-.js +0 -338
- package/dist/SearchApi-BndaIbri.js +0 -161
- package/dist/SendForm-D7U9fG-5.js +0 -1023
- package/dist/Setup-CmAK2_ZT.js +0 -50
- package/dist/ThemeColorRow-BlnhzebY.js +0 -69
- package/dist/ToggleBinding-t_58JFya.js +0 -42
- package/dist/UploadModal-T-WpYNsN.js +0 -95
- package/dist/VideoPlayerInput-DKHKjMgX.js +0 -97
- package/dist/VideoPlayerSettings-DDMlUvSt.js +0 -61
- package/dist/VideoSelectModal-B9bbP0dd.js +0 -104
- package/dist/answerDocumentMixin-DXI_E5Kx.js +0 -51
- package/dist/dom-CWsqMElk.js +0 -71
- package/dist/formValidationMixin-WZ2lGndu.js +0 -49
- package/dist/index-B2l57ilt.js +0 -102
- package/dist/index-COKDjmM2.js +0 -167
- package/dist/index-HtKGcIng.js +0 -2700
- package/dist/index-LQ7NztTt.js +0 -81
- package/dist/index-fx5gR8fM.js +0 -351
- package/dist/index-zXXJrTvv.js +0 -492
- package/dist/mapFormMixin-CQgSN7dv.js +0 -3028
- package/dist/omit-ScS7B6c5.js +0 -31
- package/dist/simplebar.min-B0cB_p8g.js +0 -71
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/tippy.esm-CR89mtdY.js +0 -1805
- package/dist/vuedraggable.umd-CkXXkt1b.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import n from "./AnswerModal-BGvB8IVV.js";
|
|
2
|
+
import { _ as t, b as c, o as r, c as s } from "./main-Cb-nyil1.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 = c("AnswerModal");
|
|
24
|
+
return r(), s(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,448 @@
|
|
|
1
|
+
import { D as L } from "./DocumentVoided-CRX2WxWO.js";
|
|
2
|
+
import { C as F, a as A, w as I } from "./CDropdownItem-Dmq5gYzA.js";
|
|
3
|
+
import { _ as $, b7 as B, S as z, aa as N, b as f, o as n, d as s, s as i, F as g, k as C, l as S, v as o, f as a, c as w, w as v, e as D, B as x, b8 as V, b9 as R, aK as j, ba as q } from "./main-Cb-nyil1.js";
|
|
4
|
+
import { C as O } from "./CPhoneFormat-BS2nP9kc.js";
|
|
5
|
+
const E = {
|
|
6
|
+
name: "PublicDocumentEvents",
|
|
7
|
+
props: {
|
|
8
|
+
document: {
|
|
9
|
+
type: Object,
|
|
10
|
+
default: () => ({})
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
computed: {
|
|
14
|
+
events() {
|
|
15
|
+
const t = [], { acceptedAt: c } = this.document;
|
|
16
|
+
return this.document.events.filter(({ createdAt: e }) => c ? B(c, e) : !0).forEach((e) => {
|
|
17
|
+
const { code: p, createdAt: r, children: m = [] } = e;
|
|
18
|
+
let { data: h = {} } = e;
|
|
19
|
+
h === null && (h = {});
|
|
20
|
+
const { client: d = {}, clients: b = [], status: _, counter: y } = h, l = {
|
|
21
|
+
sent: () => b.map((u) => {
|
|
22
|
+
const k = this.getClientName(u.id), P = this.filteredOxfordComma([
|
|
23
|
+
u.email,
|
|
24
|
+
u.cellphone
|
|
25
|
+
]);
|
|
26
|
+
return {
|
|
27
|
+
text: this.document.$t("event.sent", {
|
|
28
|
+
to: `${k ? k + ", " : ""}${P}`
|
|
29
|
+
}),
|
|
30
|
+
time: r
|
|
31
|
+
};
|
|
32
|
+
}),
|
|
33
|
+
viewed: () => {
|
|
34
|
+
const u = y || m.length + 1;
|
|
35
|
+
return [
|
|
36
|
+
{
|
|
37
|
+
text: `${this.document.$t(
|
|
38
|
+
`event.${d.name ? "viewedName" : "viewed"}`,
|
|
39
|
+
{ name: d.name }
|
|
40
|
+
)} ${u ? this.document.$tc("times", { count: u }) : ""}.`,
|
|
41
|
+
time: r
|
|
42
|
+
}
|
|
43
|
+
];
|
|
44
|
+
},
|
|
45
|
+
accepted: () => [
|
|
46
|
+
{
|
|
47
|
+
text: this.document.$t("event.accepted", {
|
|
48
|
+
by: d.name || d.email || d.cellphone
|
|
49
|
+
}),
|
|
50
|
+
time: r
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
denied: () => [
|
|
54
|
+
{
|
|
55
|
+
text: this.document.$t("event.denied", {
|
|
56
|
+
by: d.name || d.email || d.cellphone
|
|
57
|
+
}),
|
|
58
|
+
time: r
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
statusChanged: () => [
|
|
62
|
+
{
|
|
63
|
+
text: this.document.$t("event.statusChanged", {
|
|
64
|
+
status: this.document.$t(`status.${_}`).toLowerCase()
|
|
65
|
+
}),
|
|
66
|
+
time: r
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
requestChange: () => [
|
|
70
|
+
{
|
|
71
|
+
text: this.document.$t("event.requestChange", {
|
|
72
|
+
status: this.document.$t(`status.${_}`).toLowerCase()
|
|
73
|
+
}),
|
|
74
|
+
time: r
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
expired: () => [
|
|
78
|
+
{
|
|
79
|
+
text: this.document.$t("event.expired"),
|
|
80
|
+
time: r
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
};
|
|
84
|
+
l[p] && t.push(...l[p]());
|
|
85
|
+
}), t;
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
methods: {
|
|
89
|
+
filteredOxfordComma(t = []) {
|
|
90
|
+
const c = t.filter((p) => !!p), e = c.length;
|
|
91
|
+
return e ? e < 2 ? c[0] : `${c.slice(0, -1).join(", ")} ${this.document.$t("and")} ${c.slice(
|
|
92
|
+
-1
|
|
93
|
+
)}` : "";
|
|
94
|
+
},
|
|
95
|
+
getClientName(t) {
|
|
96
|
+
const c = this.document.clients.find(({ id: e }) => e === t);
|
|
97
|
+
return c ? c.name : "";
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
function T(t, c, e, p, r, m) {
|
|
102
|
+
return z(t.$slots, "default", { events: m.events });
|
|
103
|
+
}
|
|
104
|
+
const M = /* @__PURE__ */ $(E, [["render", T]]), U = {
|
|
105
|
+
name: "PublicRecipientItem",
|
|
106
|
+
i18nOptions: {
|
|
107
|
+
namespaces: "components",
|
|
108
|
+
keyPrefix: "document.myPagesDrawer"
|
|
109
|
+
},
|
|
110
|
+
components: {
|
|
111
|
+
CPhoneFormat: O
|
|
112
|
+
},
|
|
113
|
+
props: {
|
|
114
|
+
recipient: {
|
|
115
|
+
type: Object,
|
|
116
|
+
required: !0
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
methods: {
|
|
120
|
+
get: N,
|
|
121
|
+
getBrowserString({ browser: t, os: c, device: e }) {
|
|
122
|
+
return [t && t.name, c && c.name, e && e.model].filter((p) => !!p).join(", ");
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}, K = { style: { border: "1px solid hsl(0, 0%, 84%)", "border-radius": "3px", "margin-bottom": "1em" } }, W = { style: { padding: "0.5em 0.75em" } }, G = {
|
|
126
|
+
class: "flex w-full flex-col",
|
|
127
|
+
style: { "font-size": "14px", "align-items": "baseline" }
|
|
128
|
+
}, H = ["href"], J = ["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 = {
|
|
129
|
+
key: 0,
|
|
130
|
+
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" }
|
|
131
|
+
}, Z = { style: { padding: "0" } }, ee = { style: { padding: "1em 1.5em" } }, te = {
|
|
132
|
+
key: 0,
|
|
133
|
+
style: { "padding-bottom": "0.5em" }
|
|
134
|
+
}, ne = {
|
|
135
|
+
class: "has-text-grey",
|
|
136
|
+
style: { "padding-bottom": "1em" }
|
|
137
|
+
}, ie = ["src"], oe = {
|
|
138
|
+
key: 1,
|
|
139
|
+
style: { "font-size": "13px", "padding-top": "3px" }
|
|
140
|
+
}, se = { style: { "font-weight": "500" } }, ce = {
|
|
141
|
+
key: 1,
|
|
142
|
+
style: { "font-weight": "500" }
|
|
143
|
+
}, ae = { key: 1 }, de = { key: 2 }, le = {
|
|
144
|
+
key: 0,
|
|
145
|
+
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" }
|
|
146
|
+
}, re = { key: 0 }, ue = { key: 1 }, me = { key: 2 };
|
|
147
|
+
function he(t, c, e, p, r, m) {
|
|
148
|
+
const h = f("CPhoneFormat"), d = f("CIcon"), b = f("VDropdown");
|
|
149
|
+
return n(), s("div", K, [
|
|
150
|
+
i("div", W, [
|
|
151
|
+
(n(!0), s(g, null, C([
|
|
152
|
+
e.recipient.name,
|
|
153
|
+
e.recipient.companyName,
|
|
154
|
+
e.recipient.orgNo
|
|
155
|
+
], (_, y) => (n(), s("span", {
|
|
156
|
+
key: `${_}-${y}`,
|
|
157
|
+
style: S(y === 0 ? { fontWeight: 500 } : { opacity: 0.65 })
|
|
158
|
+
}, o(_ && y > 0 ? "·" : "") + " " + o(_), 5))), 128)),
|
|
159
|
+
i("div", G, [
|
|
160
|
+
e.recipient.email ? (n(), s("a", {
|
|
161
|
+
key: 0,
|
|
162
|
+
href: `mailto:${e.recipient.email}`,
|
|
163
|
+
target: "_blank"
|
|
164
|
+
}, o(e.recipient.email), 9, H)) : a("", !0),
|
|
165
|
+
e.recipient.cellphone ? (n(), w(h, {
|
|
166
|
+
key: 1,
|
|
167
|
+
phone: e.recipient.cellphone,
|
|
168
|
+
region: e.recipient.cellphoneRegion
|
|
169
|
+
}, {
|
|
170
|
+
default: v(({ formattedValue: _ }) => [
|
|
171
|
+
i("a", {
|
|
172
|
+
href: `tel:${e.recipient.cellphone}`
|
|
173
|
+
}, o(_), 9, J)
|
|
174
|
+
]),
|
|
175
|
+
_: 1
|
|
176
|
+
}, 8, ["phone", "region"])) : a("", !0)
|
|
177
|
+
])
|
|
178
|
+
]),
|
|
179
|
+
i("div", Q, [
|
|
180
|
+
i("div", null, o(t.$t(`_common:documentRole.${e.recipient.documentRole}.label`)), 1),
|
|
181
|
+
i("div", X, [
|
|
182
|
+
D(b, {
|
|
183
|
+
"popper-class": "signee-popover",
|
|
184
|
+
triggers: ["hover"],
|
|
185
|
+
placement: "bottom-end"
|
|
186
|
+
}, {
|
|
187
|
+
popper: v(() => [
|
|
188
|
+
i("div", Z, [
|
|
189
|
+
i("div", ee, [
|
|
190
|
+
e.recipient.answer && e.recipient.answer.didAccept ? (n(), s(g, { key: 0 }, [
|
|
191
|
+
e.recipient.answer.signatureDataURL ? (n(), s("div", te, [
|
|
192
|
+
i("div", ne, o(t.$t("_common:signature").capitalize()), 1),
|
|
193
|
+
i("img", {
|
|
194
|
+
src: e.recipient.answer.signatureDataURL,
|
|
195
|
+
style: { width: "80%" }
|
|
196
|
+
}, null, 8, ie)
|
|
197
|
+
])) : (n(), s("div", oe, [
|
|
198
|
+
m.get(e.recipient, "answerMethod.accept") === "bankId" ? (n(), s(g, { key: 0 }, [
|
|
199
|
+
i("div", se, o(t.$t(
|
|
200
|
+
"views:publicDocument.pdfVerification.recipient.signedBankId"
|
|
201
|
+
)), 1),
|
|
202
|
+
i("div", null, o(e.recipient.answer.response.name), 1),
|
|
203
|
+
i("div", null, o(e.recipient.socialNo), 1)
|
|
204
|
+
], 64)) : m.get(e.recipient, "answerMethod.accept") === "login" ? (n(), s("div", ce, o(t.$t(
|
|
205
|
+
"views:publicDocument.pdfVerification.recipient.verifiedLogin"
|
|
206
|
+
)), 1)) : a("", !0)
|
|
207
|
+
]))
|
|
208
|
+
], 64)) : e.recipient.answer ? (n(), s("div", ae, o(t.$t("_common:denied").capitalize()), 1)) : (n(), s("div", de, o(t.$t("pendingAnswer")), 1))
|
|
209
|
+
]),
|
|
210
|
+
e.recipient.answer ? (n(), s("div", le, [
|
|
211
|
+
e.recipient.answer.didAnswerAt ? (n(), s("div", re, [
|
|
212
|
+
i("div", null, o(t.$t("_common:date").capitalize()) + ": " + o(t.$formatDate(e.recipient.answer.didAnswerAt, "P")), 1),
|
|
213
|
+
i("div", null, o(t.$t("_common:time").capitalize()) + ": " + o(t.$formatDate(e.recipient.answer.didAnswerAt, "p")), 1)
|
|
214
|
+
])) : a("", !0),
|
|
215
|
+
e.recipient.answer.ip ? (n(), s("div", ue, " IP: " + o(e.recipient.answer.ip), 1)) : a("", !0),
|
|
216
|
+
e.recipient.answer.browser ? (n(), s("div", me, " Browser: " + o(m.getBrowserString(e.recipient.answer)), 1)) : a("", !0)
|
|
217
|
+
])) : a("", !0)
|
|
218
|
+
])
|
|
219
|
+
]),
|
|
220
|
+
default: v(() => [
|
|
221
|
+
e.recipient.documentRole === "signee" ? (n(), s("div", Y, [
|
|
222
|
+
D(d, {
|
|
223
|
+
size: 15,
|
|
224
|
+
type: "info",
|
|
225
|
+
style: { "margin-right": "0.5ch" },
|
|
226
|
+
"stroke-width": "2"
|
|
227
|
+
}),
|
|
228
|
+
e.recipient.answer && e.recipient.answer.didAccept ? (n(), s(g, { key: 0 }, [
|
|
229
|
+
x(o(t.$t("_common:approved").capitalize()), 1)
|
|
230
|
+
], 64)) : e.recipient.answer ? (n(), s(g, { key: 1 }, [
|
|
231
|
+
x(o(t.$t("_common:denied").capitalize()), 1)
|
|
232
|
+
], 64)) : (n(), s(g, { key: 2 }, [
|
|
233
|
+
x(o(t.$t("views:publicDocument.pdfVerification.waitingForAnswer")), 1)
|
|
234
|
+
], 64))
|
|
235
|
+
])) : a("", !0)
|
|
236
|
+
]),
|
|
237
|
+
_: 1
|
|
238
|
+
})
|
|
239
|
+
])
|
|
240
|
+
])
|
|
241
|
+
]);
|
|
242
|
+
}
|
|
243
|
+
const pe = /* @__PURE__ */ $(U, [["render", he], ["__scopeId", "data-v-f0bf3dd6"]]), _e = {
|
|
244
|
+
name: "DocumentDetails",
|
|
245
|
+
components: {
|
|
246
|
+
PublicDocumentEvents: M,
|
|
247
|
+
PublicRecipientItem: pe,
|
|
248
|
+
CDropdown: F,
|
|
249
|
+
CDropdownItem: A
|
|
250
|
+
},
|
|
251
|
+
mixins: [I],
|
|
252
|
+
props: {
|
|
253
|
+
document: {
|
|
254
|
+
type: Object,
|
|
255
|
+
required: !0
|
|
256
|
+
},
|
|
257
|
+
openPrintFunc: {
|
|
258
|
+
type: Function,
|
|
259
|
+
default: null
|
|
260
|
+
},
|
|
261
|
+
showLanguageSelect: {
|
|
262
|
+
type: Boolean,
|
|
263
|
+
default: !0
|
|
264
|
+
},
|
|
265
|
+
close: {
|
|
266
|
+
type: Function,
|
|
267
|
+
default: null
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
data() {
|
|
271
|
+
return {
|
|
272
|
+
docLanguages: V,
|
|
273
|
+
nativeTranslations: R
|
|
274
|
+
};
|
|
275
|
+
},
|
|
276
|
+
computed: {
|
|
277
|
+
viewer() {
|
|
278
|
+
return this.document.viewer;
|
|
279
|
+
},
|
|
280
|
+
showActionNav() {
|
|
281
|
+
return !!(this.openPrintFunc || this.showLanguageSelect || this.close);
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
methods: {
|
|
285
|
+
changeLanguage(t) {
|
|
286
|
+
this.document.language = t, j.changeLanguage(q.includes(t) ? t : "en");
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}, ge = { class: "relative flex h-full w-full flex-col overflow-hidden rounded-lg bg-white text-base" }, fe = {
|
|
290
|
+
key: 0,
|
|
291
|
+
class: "z-10 flex w-full items-center justify-end px-6 py-4 shadow-sm"
|
|
292
|
+
}, ve = { class: "d-root h-full min-h-0 flex-1 overflow-auto px-6 py-8 md:px-12 md:py-16" }, ye = { class: "mb-[3em] flex justify-between" }, we = { style: { "font-size": "18px", "font-weight": "600" } }, be = {
|
|
293
|
+
class: "has-text-grey",
|
|
294
|
+
style: { "font-size": "14px" }
|
|
295
|
+
}, ke = {
|
|
296
|
+
class: "d-option",
|
|
297
|
+
style: { "margin-bottom": "3em" }
|
|
298
|
+
}, De = {
|
|
299
|
+
class: "d-option-title",
|
|
300
|
+
style: { "padding-bottom": "0.5rem" }
|
|
301
|
+
}, xe = {
|
|
302
|
+
key: 0,
|
|
303
|
+
class: "d-option"
|
|
304
|
+
}, Ce = { class: "d-option-title" }, $e = { id: "timeline" }, ze = { class: "e-data" }, Pe = { class: "e-text" }, Le = { class: "e-timestamp" }, Fe = { class: "e-date" }, Ae = {
|
|
305
|
+
class: "e-time",
|
|
306
|
+
style: { "padding-left": "0.5ch" }
|
|
307
|
+
}, Ie = { key: 0 }, Be = { key: 1 };
|
|
308
|
+
function Ne(t, c, e, p, r, m) {
|
|
309
|
+
const h = f("CButton"), d = f("CDropdownItem"), b = f("CDropdown"), _ = f("PublicRecipientItem"), y = f("PublicDocumentEvents");
|
|
310
|
+
return n(), s("div", ge, [
|
|
311
|
+
m.showActionNav ? (n(), s("div", fe, [
|
|
312
|
+
e.openPrintFunc ? (n(), s(g, { key: 0 }, [
|
|
313
|
+
D(h, {
|
|
314
|
+
"icon-left": "print",
|
|
315
|
+
type: "none",
|
|
316
|
+
pattern: "tertiary",
|
|
317
|
+
taller: "",
|
|
318
|
+
size: "small",
|
|
319
|
+
style: { "padding-left": "1em", "padding-right": "1em" },
|
|
320
|
+
onClick: e.openPrintFunc
|
|
321
|
+
}, {
|
|
322
|
+
default: v(() => [
|
|
323
|
+
x(o(e.document.$t("download", { thing: "PDF" })), 1)
|
|
324
|
+
]),
|
|
325
|
+
_: 1
|
|
326
|
+
}, 8, ["onClick"]),
|
|
327
|
+
c[0] || (c[0] = i("div", { style: { height: "2rem", width: "1px", "background-color": "hsl(0, 0%, 88%)", margin: "0 6px" } }, null, -1))
|
|
328
|
+
], 64)) : a("", !0),
|
|
329
|
+
e.showLanguageSelect ? (n(), w(b, {
|
|
330
|
+
key: 1,
|
|
331
|
+
"model-value": e.document.language
|
|
332
|
+
}, {
|
|
333
|
+
trigger: v(() => [
|
|
334
|
+
D(h, {
|
|
335
|
+
"icon-props": { size: 18 },
|
|
336
|
+
size: "normal",
|
|
337
|
+
icon: "globe",
|
|
338
|
+
circle: "",
|
|
339
|
+
style: { color: "hsla(0, 0%, 45%, 1)" }
|
|
340
|
+
})
|
|
341
|
+
]),
|
|
342
|
+
default: v(() => [
|
|
343
|
+
(n(!0), s(g, null, C(r.docLanguages, (l) => (n(), w(d, {
|
|
344
|
+
key: l,
|
|
345
|
+
value: l,
|
|
346
|
+
onClick: (u) => m.changeLanguage(l)
|
|
347
|
+
}, {
|
|
348
|
+
default: v(() => [
|
|
349
|
+
x(o(r.nativeTranslations[l]), 1)
|
|
350
|
+
]),
|
|
351
|
+
_: 2
|
|
352
|
+
}, 1032, ["value", "onClick"]))), 128))
|
|
353
|
+
]),
|
|
354
|
+
_: 1
|
|
355
|
+
}, 8, ["model-value"])) : a("", !0),
|
|
356
|
+
e.close ? (n(), w(h, {
|
|
357
|
+
key: 2,
|
|
358
|
+
"icon-props": { size: 18 },
|
|
359
|
+
size: "normal",
|
|
360
|
+
icon: "x",
|
|
361
|
+
circle: "",
|
|
362
|
+
style: { "margin-left": "6px", color: "hsla(0, 0%, 45%, 1)" },
|
|
363
|
+
onClick: e.close
|
|
364
|
+
}, null, 8, ["onClick"])) : a("", !0)
|
|
365
|
+
])) : a("", !0),
|
|
366
|
+
i("div", ve, [
|
|
367
|
+
i("div", ye, [
|
|
368
|
+
i("div", null, [
|
|
369
|
+
i("div", we, o(e.document.$t("detail_plural").capitalize()), 1),
|
|
370
|
+
i("div", be, o(e.document.$t("documentDetails.subTitle")), 1)
|
|
371
|
+
])
|
|
372
|
+
]),
|
|
373
|
+
i("div", ke, [
|
|
374
|
+
i("div", De, o(e.document.$t("participant_plural").capitalize()), 1),
|
|
375
|
+
(n(!0), s(g, null, C(e.document.recipients, (l, u) => (n(), w(_, {
|
|
376
|
+
key: l._uniqueId + u,
|
|
377
|
+
recipient: l
|
|
378
|
+
}, null, 8, ["recipient"]))), 128))
|
|
379
|
+
]),
|
|
380
|
+
D(y, { document: e.document }, {
|
|
381
|
+
default: v(({ events: l }) => [
|
|
382
|
+
l && l.length ? (n(), s("div", xe, [
|
|
383
|
+
i("div", Ce, o(e.document.$t("event.event_plural").capitalize()), 1),
|
|
384
|
+
i("div", $e, [
|
|
385
|
+
i("div", null, [
|
|
386
|
+
(n(!0), s(g, null, C(l, (u, k) => (n(), s("div", {
|
|
387
|
+
key: k,
|
|
388
|
+
class: "e-item"
|
|
389
|
+
}, [
|
|
390
|
+
i("div", ze, [
|
|
391
|
+
i("div", Pe, o(u.text), 1),
|
|
392
|
+
i("div", Le, [
|
|
393
|
+
i("div", Fe, o(t.$formatDate(u.time, "P")), 1),
|
|
394
|
+
i("div", Ae, o(t.$formatDate(u.time, "p")), 1)
|
|
395
|
+
])
|
|
396
|
+
])
|
|
397
|
+
]))), 128))
|
|
398
|
+
])
|
|
399
|
+
])
|
|
400
|
+
])) : a("", !0)
|
|
401
|
+
]),
|
|
402
|
+
_: 1
|
|
403
|
+
}, 8, ["document"]),
|
|
404
|
+
t.mq === "sm" ? (n(), s("div", Ie, [
|
|
405
|
+
z(t.$slots, "footer", {}, void 0, !0)
|
|
406
|
+
])) : a("", !0)
|
|
407
|
+
]),
|
|
408
|
+
t.mq !== "sm" ? (n(), s("div", Be, [
|
|
409
|
+
z(t.$slots, "footer", {}, void 0, !0)
|
|
410
|
+
])) : a("", !0)
|
|
411
|
+
]);
|
|
412
|
+
}
|
|
413
|
+
const Se = /* @__PURE__ */ $(_e, [["render", Ne], ["__scopeId", "data-v-92c179eb"]]), Ve = {
|
|
414
|
+
components: {
|
|
415
|
+
DocumentDetails: Se,
|
|
416
|
+
DocumentVoided: L
|
|
417
|
+
},
|
|
418
|
+
props: {
|
|
419
|
+
document: {
|
|
420
|
+
type: Object,
|
|
421
|
+
required: !0
|
|
422
|
+
},
|
|
423
|
+
closeFunc: {
|
|
424
|
+
type: Function,
|
|
425
|
+
default: null
|
|
426
|
+
},
|
|
427
|
+
showLanguageSelect: {
|
|
428
|
+
type: Boolean,
|
|
429
|
+
default: !0
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
};
|
|
433
|
+
function Re(t, c, e, p, r, m) {
|
|
434
|
+
const h = f("DocumentVoided"), d = f("DocumentDetails");
|
|
435
|
+
return e.document && e.document.status === "voided" ? (n(), w(h, {
|
|
436
|
+
key: 0,
|
|
437
|
+
document: e.document
|
|
438
|
+
}, null, 8, ["document"])) : (n(), w(d, {
|
|
439
|
+
key: 1,
|
|
440
|
+
document: e.document,
|
|
441
|
+
"show-language-select": e.showLanguageSelect,
|
|
442
|
+
close: e.closeFunc
|
|
443
|
+
}, null, 8, ["document", "show-language-select", "close"]));
|
|
444
|
+
}
|
|
445
|
+
const Te = /* @__PURE__ */ $(Ve, [["render", Re]]);
|
|
446
|
+
export {
|
|
447
|
+
Te as default
|
|
448
|
+
};
|