@cling-se/widget 0.18.1 → 0.18.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/CHANGELOG.md +9 -1
- package/dist/{AddClientCallout-CCt78VvH.js → AddClientCallout-C15ZADPr.js} +4 -4
- package/dist/{AnswerModal-B4LwVv2N.js → AnswerModal-CkLsmYLt.js} +5 -5
- package/dist/{AttachmentItem-DnvYffKP.js → AttachmentItem-DlVB9TGZ.js} +4 -4
- package/dist/{BaseUpload-DFoV0ZLe.js → BaseUpload-DkQT7Zch.js} +2 -2
- package/dist/{BlockMedia-Amo_kdHo.js → BlockMedia-BPQ2S6bm.js} +1 -1
- package/dist/{CCallout-Gd06ds6O.js → CCallout-Crx-Kp-6.js} +1 -1
- package/dist/{CCurrencyDropdown-B4GNmOGA.js → CCurrencyDropdown-CIhSWM6-.js} +3 -3
- package/dist/{CDropdownItem-BUNVCpSR.js → CDropdownItem-B-lI5fj3.js} +2 -2
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-Bo2J0c4G.js → CFormField.vue_vue_type_script_setup_true_lang-DRTfuuEt.js} +2 -2
- package/dist/{CPhoneFormat-DmN5r9Ci.js → CPhoneFormat-7-et0t62.js} +1 -1
- package/dist/{CPhoneInput-B6iyhsOG.js → CPhoneInput-CjVAt5Tw.js} +5 -5
- package/dist/{CPriceInput-BLQaNu1d.js → CPriceInput-Bg3ywErx.js} +2 -2
- package/dist/{CSelect-BVO9iO9L.js → CSelect-72o7797K.js} +1 -1
- package/dist/{CSkeleton.vue_vue_type_script_setup_true_lang-C9loRtrk.js → CSkeleton.vue_vue_type_script_setup_true_lang-eIedRPK6.js} +1 -1
- package/dist/{ClientAutocomplete-C__yUaxD.js → ClientAutocomplete-sXK0PDk-.js} +3 -3
- package/dist/{ClientModal-B9cbuEiC.js → ClientModal-Bg9-oHXI.js} +8 -8
- package/dist/{ColorPicker-G2kkxL7_.js → ColorPicker-Bzrx59wx.js} +1 -1
- package/dist/{CompanyModal-por9AG4P.js → CompanyModal-hlijfpOa.js} +7 -7
- package/dist/{ContentWrapper-CQtaGA2u.js → ContentWrapper-CdlTSpuO.js} +6 -6
- package/dist/{CoverBlockSettings-BCBDouyl.js → CoverBlockSettings-B1Gsn4ei.js} +7 -7
- package/dist/{DocAnswer-BrKctwrY.js → DocAnswer-DjrO9JmW.js} +2 -2
- package/dist/DocDetails-DcVcUbpW.js +509 -0
- package/dist/{DocForm-D6T7NmfO.js → DocForm-DndKZ3Gd.js} +547 -519
- package/dist/{DocFormSend-COYPrhl7.js → DocFormSend-B9mXtg-k.js} +2 -2
- package/dist/{DocLinks-B0LjxXIk.js → DocLinks-HxgTdd7U.js} +2 -2
- package/dist/{DocModalBase-DObZHuYr.js → DocModalBase-CqgYEZYS.js} +1 -1
- package/dist/{DocPrint-CkDq78fB.js → DocPrint-BKv6drT2.js} +1 -1
- package/dist/{DocReceipt-CYBPyePC.js → DocReceipt-BIuz0urm.js} +2 -2
- package/dist/{DocSendReminder-Dau6s43e.js → DocSendReminder-BtEEEuNy.js} +1 -1
- package/dist/{DocTextEditor-CVn6gE1i.js → DocTextEditor-DEe46YXi.js} +8 -8
- package/dist/{DocTimeline-ChBDPOfd.js → DocTimeline-BqWG4urL.js} +2 -2
- package/dist/{DocumentClient-MLXzzXLb.js → DocumentClient-tVPN1eX8.js} +5 -5
- package/dist/{DocumentLayout-BMHOt380.js → DocumentLayout-COIPNz_0.js} +5 -5
- package/dist/{DocumentLogotype-Clj3fopX.js → DocumentLogotype-klh1tiix.js} +4 -4
- package/dist/{DocumentVoided-B5_MSBbC.js → DocumentVoided-Bq5V4GhU.js} +1 -1
- package/dist/{EmbedInput-CzkOa02p.js → EmbedInput-0DOo5_q2.js} +3 -3
- package/dist/{EmbedSettings-Cf_F3KrM.js → EmbedSettings-F09rsVRV.js} +3 -3
- package/dist/{ErrorCallout-CJn6NCse.js → ErrorCallout-zWwBIYef.js} +1 -1
- package/dist/{FilePreviewModal-Di1VnPNY.js → FilePreviewModal-oeAKab06.js} +2 -2
- package/dist/{Flag-C4_G5IY1.js → Flag-BO5d1sg2.js} +1 -1
- package/dist/{HeaderSettings-DWN0TjVD.js → HeaderSettings-BXxz8DOe.js} +9 -9
- package/dist/{ImageSelectModal-DmAJ9PrN.js → ImageSelectModal-DZhwmyrr.js} +3 -3
- package/dist/{ImageUploadWrapper-QLEhA_dI.js → ImageUploadWrapper-C3AhBven.js} +2 -2
- package/dist/{Index-CxTwWRD9.js → Index-2o0vnQ6s.js} +1 -1
- package/dist/{Index-DTn47-hP.js → Index-9eOQV1-O.js} +5 -5
- package/dist/{Index-qFAg7VVU.js → Index-B2UqAKo6.js} +8 -8
- package/dist/{Index-CpxzwwQS.js → Index-B6NpGYNm.js} +3 -3
- package/dist/{Index-C9aBeBBk.js → Index-BKaP2TtX.js} +3 -3
- package/dist/{Index-B06eCuBA.js → Index-BLv34ee8.js} +4 -4
- package/dist/{Index-D9WFWlE6.js → Index-Bc7Ezeec.js} +4 -4
- package/dist/{Index-CmxFh3dW.js → Index-Bg5AgTlC.js} +2 -2
- package/dist/{Index-CE3pWPzp.js → Index-Bh_tM1iz.js} +1 -1
- package/dist/{Index-rDndJKo1.js → Index-BtFxmY9B.js} +5 -5
- package/dist/{Index-B8Zj0-MX.js → Index-BvyrE2XH.js} +5 -5
- package/dist/{Index-W10PQb8i.js → Index-BwN7sXdZ.js} +5 -5
- package/dist/{Index-BODJXJNp.js → Index-BzdPvWwe.js} +2 -2
- package/dist/{Index-DL_9LzoR.js → Index-C4adqlVm.js} +2 -2
- package/dist/{Index-DRoOW5Pn.js → Index-CN6JxwmL.js} +5 -5
- package/dist/{Index-DhYYK4bK.js → Index-COyTQZ3i.js} +4 -4
- package/dist/{Index-BBBXL4zh.js → Index-CSMfsD_9.js} +4 -4
- package/dist/{Index-s-6Qh_NE.js → Index-D04fiNgg.js} +2 -2
- package/dist/{Index-CdsOdgG2.js → Index-D1TkEaRE.js} +4 -4
- package/dist/{Index-DeGDlj0B.js → Index-D28FYNuB.js} +2 -2
- package/dist/{Index-CNhBDG2e.js → Index-DBQof0TR.js} +7 -7
- package/dist/Index-DFmSfUFl.js +4 -0
- package/dist/{Index-D9bulLeI.js → Index-DVMn1_t-.js} +4 -4
- package/dist/{Index-BCHLxp7B.js → Index-D_cpQ4XT.js} +3 -3
- package/dist/{Index-BFbcjFo4.js → Index-DiKyKI0e.js} +1 -1
- package/dist/{Index-OcBnU480.js → Index-DkBoR3Wt.js} +8 -8
- package/dist/{Index-BDAp1CwZ.js → Index-DkpGziRO.js} +8 -8
- package/dist/{Index-Bt97lEsI.js → Index-Ds56UbDJ.js} +6 -6
- package/dist/{Index-BgZNiD7A.js → Index-Dyk_cf5q.js} +3 -3
- package/dist/{Index-Dssdb-0Z.js → Index-HT3_Q5TW.js} +10 -10
- package/dist/{Index-DR-sGE3Y.js → Index-gJGHIZtP.js} +4 -4
- package/dist/{Index-Qh_8JqAv.js → Index-lGRdjphx.js} +14 -14
- package/dist/{Index-BOx_9tTM.js → Index-oZUbkrw5.js} +6 -6
- package/dist/{Index-CMdPSsp4.js → Index-ocQiYLh6.js} +4 -4
- package/dist/{Index.vue_vue_type_script_lang-CriDqp1F.js → Index.vue_vue_type_script_lang-BFxI2lBU.js} +2 -2
- package/dist/{InputToggleRow-DJarYsVL.js → InputToggleRow-Cy3ypHku.js} +1 -1
- package/dist/{ManualPopover-BMrkEHtV.js → ManualPopover-C9dBUH6i.js} +1 -1
- package/dist/{MediaWrapper-BYdVpmov.js → MediaWrapper-CxChx0Dk.js} +3 -3
- package/dist/{NotBindingText-DGjJoN8-.js → NotBindingText-e9VLnaS6.js} +2 -2
- package/dist/{PackageGroup-q7_oBOqw.js → PackageGroup-U4U_hwe2.js} +5 -5
- package/dist/{PdfTerms-DBEClYQ5.js → PdfTerms-BJPFR4RX.js} +2 -2
- package/dist/{PdfViewer-C_y5sqXB.js → PdfViewer-D6b-NClH.js} +3 -3
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-D5ZLw34T.js → PlainHtml.vue_vue_type_script_setup_true_lang-lMUtUlUh.js} +1 -1
- package/dist/{PriceHeader-BSwv3mzc.js → PriceHeader-CEKxyfcU.js} +7 -7
- package/dist/{SearchApi-BM6TTqxW.js → SearchApi-bWsoFtUT.js} +1 -1
- package/dist/{SendForm-DfmBbhp9.js → SendForm-gg8K9LX-.js} +8 -8
- package/dist/{Setup-BC1feKr_.js → Setup-Cog4wuNr.js} +1 -1
- package/dist/{SmartList-B3pgsg4S.js → SmartList-Vd_cYxGv.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-YOP-Y07m.js → Sortable.vue_vue_type_script_setup_true_lang-CoCrKHli.js} +1 -1
- package/dist/{TermsSettings-DEkACrRU.js → TermsSettings-BvIULFU2.js} +5 -5
- package/dist/{ThemeColorRow-qG8Dkkyj.js → ThemeColorRow-AumZk6nN.js} +3 -3
- package/dist/{ToggleBinding-Cdtl_-1s.js → ToggleBinding-DE00Ofrp.js} +4 -4
- package/dist/{UploadModal-1OWPRxA5.js → UploadModal-ZJcv9f3T.js} +2 -2
- package/dist/{VideoPlayerInput-DgFNjiKK.js → VideoPlayerInput-ByjJSehS.js} +4 -4
- package/dist/{VideoPlayerSettings-CFuA-7RC.js → VideoPlayerSettings-D6ufN67b.js} +2 -2
- package/dist/{VideoSelectModal-CSv67eA8.js → VideoSelectModal-CXTvWeQD.js} +3 -3
- package/dist/{focusDrawerMixin-r-OZchfV.js → focusDrawerMixin-B4MYMOTA.js} +1 -1
- package/dist/{formDrawerState-COVczNhJ.js → formDrawerState-DJe3YHdV.js} +1 -1
- package/dist/{helpers-ChwW54Ex.js → helpers-CIS5XXda.js} +1 -1
- package/dist/{index-C7chK2UD.js → index-BLQPIxld.js} +6 -6
- package/dist/{index-Bf-fiKJf.js → index-BjNlfnSK.js} +3 -3
- package/dist/{index-BMZle8Ew.js → index-C5TU_8dE.js} +1 -1
- package/dist/{index-CR52qIBO.js → index-CSKtbb-t.js} +1 -1
- package/dist/{index-YFcPqc9m.js → index-Wk6zmCon.js} +8 -8
- package/dist/{index-D1x9O_nJ.js → index-pUuf2jlt.js} +1 -1
- package/dist/{index-Bg4JRi5S.js → index-wqAfBru7.js} +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +129 -129
- package/dist/{main-DI0diChK.js → main-CC0euzp8.js} +31 -20
- package/dist/{mapFormMixin-Cgvwie9a.js → mapFormMixin-B-L8nWA6.js} +2 -2
- package/dist/{omit-DpjD7Dj9.js → omit-D6QUfIgq.js} +1 -1
- package/dist/{publicSenderState-BcjNldje.js → publicSenderState-B6ku_-cH.js} +1 -1
- package/dist/{splitpanes-BypKTSRL.js → splitpanes-WOw_KmQw.js} +1 -1
- package/dist/{template-Dzexob5I.js → template-Dw1pJZG6.js} +1 -1
- package/dist/{tippy.esm-0UMN6kWf.js → tippy.esm-zitfL42N.js} +5 -5
- package/dist/{useTermsModal-DzH_PDFP.js → useTermsModal-HHZVcSXa.js} +4 -4
- package/dist/{utils--kBYCNZD.js → utils-oHA3dQ8M.js} +1 -1
- package/dist/{validation-B-omH73u.js → validation-DcxnlaTB.js} +2 -2
- package/dist/widget.css +1 -1
- package/package.json +1 -1
- package/dist/DocDetails-B_LWVHGt.js +0 -452
- package/dist/Index-lbWFEELM.js +0 -4
|
@@ -0,0 +1,509 @@
|
|
|
1
|
+
import { D as A } from "./DocumentVoided-Bq5V4GhU.js";
|
|
2
|
+
import { C as F, a as I, w as B } from "./CDropdownItem-B-lI5fj3.js";
|
|
3
|
+
import { h as V, o as n, b as s, s as o, F as _, k as N, v as i, f as d, c as y, w as v, j as S, S as P, n as z, _ as $, b7 as j, a9 as q, e as p, d as b, B as w, b8 as O, b9 as E, aB as T, ba as M } from "./main-CC0euzp8.js";
|
|
4
|
+
import { C as U } from "./CPhoneFormat-7-et0t62.js";
|
|
5
|
+
const G = { style: { "margin-bottom": "1em", border: "1px solid hsl(0, 0%, 84%)", "border-radius": "3px" } }, H = { class: "flex items-center p-4" }, J = { class: "mb-1" }, K = { class: "flex flex-col space-y-1 text-sm" }, Q = ["href"], W = ["href"], R = /* @__PURE__ */ V({
|
|
6
|
+
__name: "PublicContactDetails",
|
|
7
|
+
props: {
|
|
8
|
+
name: {},
|
|
9
|
+
email: {},
|
|
10
|
+
cellphone: {},
|
|
11
|
+
cellphoneRegion: {},
|
|
12
|
+
companyName: {},
|
|
13
|
+
orgNo: {},
|
|
14
|
+
region: {}
|
|
15
|
+
},
|
|
16
|
+
setup(t) {
|
|
17
|
+
return (a, e) => (n(), s("div", G, [
|
|
18
|
+
o("div", H, [
|
|
19
|
+
o("div", null, [
|
|
20
|
+
o("div", J, [
|
|
21
|
+
(n(!0), s(_, null, N([a.name, a.companyName, a.orgNo], (m, l) => (n(), s("span", {
|
|
22
|
+
key: `${m}-${l}`,
|
|
23
|
+
class: z([l === 0 ? "font-medium" : "text-gray-600", "mr-1 inline-block"])
|
|
24
|
+
}, i(m && l > 0 ? "·" : "") + " " + i(m), 3))), 128))
|
|
25
|
+
]),
|
|
26
|
+
o("div", K, [
|
|
27
|
+
a.email ? (n(), s("a", {
|
|
28
|
+
key: 0,
|
|
29
|
+
href: `mailto:${a.email}`,
|
|
30
|
+
target: "_blank"
|
|
31
|
+
}, i(a.email), 9, Q)) : d("", !0),
|
|
32
|
+
a.cellphone ? (n(), y(S(U), {
|
|
33
|
+
key: 1,
|
|
34
|
+
phone: a.cellphone,
|
|
35
|
+
region: a.cellphoneRegion ? a.cellphoneRegion : a.region
|
|
36
|
+
}, {
|
|
37
|
+
default: v(({ formattedValue: m }) => [
|
|
38
|
+
o("a", {
|
|
39
|
+
href: `tel:${a.cellphone}`
|
|
40
|
+
}, i(m), 9, W)
|
|
41
|
+
]),
|
|
42
|
+
_: 1
|
|
43
|
+
}, 8, ["phone", "region"])) : d("", !0)
|
|
44
|
+
])
|
|
45
|
+
])
|
|
46
|
+
]),
|
|
47
|
+
P(a.$slots, "default")
|
|
48
|
+
]));
|
|
49
|
+
}
|
|
50
|
+
}), X = {
|
|
51
|
+
name: "PublicDocumentEvents",
|
|
52
|
+
props: {
|
|
53
|
+
document: {
|
|
54
|
+
type: Object,
|
|
55
|
+
default: () => ({})
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
computed: {
|
|
59
|
+
events() {
|
|
60
|
+
const t = [], { acceptedAt: a } = this.document;
|
|
61
|
+
return this.document.events.filter(({ createdAt: e }) => a ? j(a, e) : !0).forEach((e) => {
|
|
62
|
+
const { code: m, createdAt: l, children: c = [] } = e;
|
|
63
|
+
let { data: g = {} } = e;
|
|
64
|
+
g === null && (g = {});
|
|
65
|
+
const { client: u = {}, clients: D = [], status: k, counter: x } = g, C = {
|
|
66
|
+
sent: () => D.map((f) => {
|
|
67
|
+
const r = this.getClientName(f.id);
|
|
68
|
+
return {
|
|
69
|
+
text: this.document.$t("event.sent", {
|
|
70
|
+
to: `${r ? r + ", " : ""}`
|
|
71
|
+
}),
|
|
72
|
+
email: f.email,
|
|
73
|
+
cellphone: f.cellphone,
|
|
74
|
+
region: f.cellphoneRegion,
|
|
75
|
+
time: l
|
|
76
|
+
};
|
|
77
|
+
}),
|
|
78
|
+
viewed: () => {
|
|
79
|
+
const f = x || c.length + 1;
|
|
80
|
+
return [
|
|
81
|
+
{
|
|
82
|
+
text: `${this.document.$t(
|
|
83
|
+
`event.${u.name ? "viewedName" : "viewed"}`,
|
|
84
|
+
{ name: u.name }
|
|
85
|
+
)} ${f ? this.document.$tc("times", { count: f }) : ""}.`,
|
|
86
|
+
time: l
|
|
87
|
+
}
|
|
88
|
+
];
|
|
89
|
+
},
|
|
90
|
+
accepted: () => [
|
|
91
|
+
{
|
|
92
|
+
text: this.document.$t("event.accepted", {
|
|
93
|
+
by: u.name || u.email || u.cellphone
|
|
94
|
+
}),
|
|
95
|
+
time: l
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
denied: () => [
|
|
99
|
+
{
|
|
100
|
+
text: this.document.$t("event.denied", {
|
|
101
|
+
by: u.name || u.email || u.cellphone
|
|
102
|
+
}),
|
|
103
|
+
time: l
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
statusChanged: () => [
|
|
107
|
+
{
|
|
108
|
+
text: this.document.$t("event.statusChanged", {
|
|
109
|
+
status: this.document.$t(`status.${k}`).toLowerCase()
|
|
110
|
+
}),
|
|
111
|
+
time: l
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
requestChange: () => [
|
|
115
|
+
{
|
|
116
|
+
text: this.document.$t("event.requestChange", {
|
|
117
|
+
status: this.document.$t(`status.${k}`).toLowerCase()
|
|
118
|
+
}),
|
|
119
|
+
time: l
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
expired: () => [
|
|
123
|
+
{
|
|
124
|
+
text: this.document.$t("event.expired"),
|
|
125
|
+
time: l
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
};
|
|
129
|
+
C[m] && t.push(...C[m]());
|
|
130
|
+
}), t;
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
methods: {
|
|
134
|
+
getClientName(t) {
|
|
135
|
+
const a = this.document.clients.find(({ id: e }) => e === t);
|
|
136
|
+
return a ? a.name : "";
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
function Y(t, a, e, m, l, c) {
|
|
141
|
+
return P(t.$slots, "default", { events: c.events });
|
|
142
|
+
}
|
|
143
|
+
const Z = /* @__PURE__ */ $(X, [["render", Y]]), ee = {
|
|
144
|
+
name: "PublicRecipientItem",
|
|
145
|
+
i18nOptions: {
|
|
146
|
+
namespaces: "components",
|
|
147
|
+
keyPrefix: "document.myPagesDrawer"
|
|
148
|
+
},
|
|
149
|
+
components: {
|
|
150
|
+
PublicContactDetails: R
|
|
151
|
+
},
|
|
152
|
+
props: {
|
|
153
|
+
recipient: {
|
|
154
|
+
type: Object,
|
|
155
|
+
required: !0
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
methods: {
|
|
159
|
+
get: q,
|
|
160
|
+
getBrowserString({ browser: t, os: a, device: e }) {
|
|
161
|
+
return [t && t.name, a && a.name, e && e.model].filter((m) => !!m).join(", ");
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}, te = { 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" } }, ne = { style: { position: "absolute", right: "1em", top: "0px", transform: "translate(0, -50%)" } }, oe = { style: { padding: "0" } }, ie = { style: { padding: "1em 1.5em" } }, se = {
|
|
165
|
+
key: 0,
|
|
166
|
+
style: { "padding-bottom": "0.5em" }
|
|
167
|
+
}, ae = {
|
|
168
|
+
class: "has-text-grey",
|
|
169
|
+
style: { "padding-bottom": "1em" }
|
|
170
|
+
}, ce = ["src"], le = {
|
|
171
|
+
key: 1,
|
|
172
|
+
style: { "font-size": "13px", "padding-top": "3px" }
|
|
173
|
+
}, de = { style: { "font-weight": "500" } }, re = {
|
|
174
|
+
key: 1,
|
|
175
|
+
style: { "font-weight": "500" }
|
|
176
|
+
}, me = { key: 1 }, ue = { key: 2 }, he = {
|
|
177
|
+
key: 0,
|
|
178
|
+
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" }
|
|
179
|
+
}, pe = { key: 0 }, ge = { key: 1 }, _e = { key: 2 };
|
|
180
|
+
function fe(t, a, e, m, l, c) {
|
|
181
|
+
const g = p("CIcon"), u = p("VDropdown"), D = p("PublicContactDetails");
|
|
182
|
+
return n(), y(D, {
|
|
183
|
+
name: e.recipient.name,
|
|
184
|
+
email: e.recipient.email,
|
|
185
|
+
cellphone: e.recipient.cellphone,
|
|
186
|
+
cellphoneRegion: e.recipient.cellphoneRegion,
|
|
187
|
+
companyName: e.recipient.companyName,
|
|
188
|
+
orgNo: e.recipient.orgNo
|
|
189
|
+
}, {
|
|
190
|
+
default: v(() => [
|
|
191
|
+
o("div", te, [
|
|
192
|
+
o("div", null, i(t.$t(`_common:documentRole.${e.recipient.documentRole}.label`)), 1),
|
|
193
|
+
o("div", ne, [
|
|
194
|
+
b(u, {
|
|
195
|
+
"popper-class": "signee-popover",
|
|
196
|
+
triggers: ["hover"],
|
|
197
|
+
placement: "bottom-end"
|
|
198
|
+
}, {
|
|
199
|
+
popper: v(() => [
|
|
200
|
+
o("div", oe, [
|
|
201
|
+
o("div", ie, [
|
|
202
|
+
e.recipient.answer && e.recipient.answer.didAccept ? (n(), s(_, { key: 0 }, [
|
|
203
|
+
e.recipient.answer.signatureDataURL ? (n(), s("div", se, [
|
|
204
|
+
o("div", ae, i(t.$t("_common:signature").capitalize()), 1),
|
|
205
|
+
o("img", {
|
|
206
|
+
src: e.recipient.answer.signatureDataURL,
|
|
207
|
+
style: { width: "80%" }
|
|
208
|
+
}, null, 8, ce)
|
|
209
|
+
])) : (n(), s("div", le, [
|
|
210
|
+
c.get(e.recipient, "answerMethod.accept") === "bankId" ? (n(), s(_, { key: 0 }, [
|
|
211
|
+
o("div", de, i(t.$t(
|
|
212
|
+
"views:publicDocument.pdfVerification.recipient.signedBankId"
|
|
213
|
+
)), 1),
|
|
214
|
+
o("div", null, i(e.recipient.answer.response.name), 1),
|
|
215
|
+
o("div", null, i(e.recipient.socialNo), 1)
|
|
216
|
+
], 64)) : c.get(e.recipient, "answerMethod.accept") === "login" ? (n(), s("div", re, i(t.$t(
|
|
217
|
+
"views:publicDocument.pdfVerification.recipient.verifiedLogin"
|
|
218
|
+
)), 1)) : d("", !0)
|
|
219
|
+
]))
|
|
220
|
+
], 64)) : e.recipient.answer ? (n(), s("div", me, i(t.$t("_common:denied").capitalize()), 1)) : (n(), s("div", ue, i(t.$t("pendingAnswer")), 1))
|
|
221
|
+
]),
|
|
222
|
+
e.recipient.answer ? (n(), s("div", he, [
|
|
223
|
+
e.recipient.answer.didAnswerAt ? (n(), s("div", pe, [
|
|
224
|
+
o("div", null, i(t.$t("_common:date").capitalize()) + ": " + i(t.$formatDate(e.recipient.answer.didAnswerAt, "P")), 1),
|
|
225
|
+
o("div", null, i(t.$t("_common:time").capitalize()) + ": " + i(t.$formatDate(e.recipient.answer.didAnswerAt, "p")), 1)
|
|
226
|
+
])) : d("", !0),
|
|
227
|
+
e.recipient.answer.ip ? (n(), s("div", ge, " IP: " + i(e.recipient.answer.ip), 1)) : d("", !0),
|
|
228
|
+
e.recipient.answer.browser ? (n(), s("div", _e, " Browser: " + i(c.getBrowserString(e.recipient.answer)), 1)) : d("", !0)
|
|
229
|
+
])) : d("", !0)
|
|
230
|
+
])
|
|
231
|
+
]),
|
|
232
|
+
default: v(() => [
|
|
233
|
+
e.recipient.documentRole === "signee" ? (n(), s("div", {
|
|
234
|
+
key: 0,
|
|
235
|
+
style: { padding: "5px 0.75em", "border-radius": "4px", "font-size": "13px", color: "hsl(0, 0%, 100%)", cursor: "default", display: "inline-flex", "align-items": "center" },
|
|
236
|
+
class: z(
|
|
237
|
+
e.recipient.answer ? e.recipient.answer.didAccept ? "bg-green-600" : "bg-red-600" : "bg-neutral-400"
|
|
238
|
+
)
|
|
239
|
+
}, [
|
|
240
|
+
b(g, {
|
|
241
|
+
size: 15,
|
|
242
|
+
type: "info",
|
|
243
|
+
style: { "margin-right": "0.5ch" },
|
|
244
|
+
"stroke-width": "2"
|
|
245
|
+
}),
|
|
246
|
+
e.recipient.answer && e.recipient.answer.didAccept ? (n(), s(_, { key: 0 }, [
|
|
247
|
+
w(i(t.$t("_common:approved").capitalize()), 1)
|
|
248
|
+
], 64)) : e.recipient.answer ? (n(), s(_, { key: 1 }, [
|
|
249
|
+
w(i(t.$t("_common:denied").capitalize()), 1)
|
|
250
|
+
], 64)) : (n(), s(_, { key: 2 }, [
|
|
251
|
+
w(i(t.$t("views:publicDocument.pdfVerification.waitingForAnswer")), 1)
|
|
252
|
+
], 64))
|
|
253
|
+
], 2)) : d("", !0)
|
|
254
|
+
]),
|
|
255
|
+
_: 1
|
|
256
|
+
})
|
|
257
|
+
])
|
|
258
|
+
])
|
|
259
|
+
]),
|
|
260
|
+
_: 1
|
|
261
|
+
}, 8, ["name", "email", "cellphone", "cellphoneRegion", "companyName", "orgNo"]);
|
|
262
|
+
}
|
|
263
|
+
const ye = /* @__PURE__ */ $(ee, [["render", fe], ["__scopeId", "data-v-5be0d201"]]), ve = {
|
|
264
|
+
name: "DocumentDetails",
|
|
265
|
+
components: {
|
|
266
|
+
PublicDocumentEvents: Z,
|
|
267
|
+
PublicRecipientItem: ye,
|
|
268
|
+
PublicContactDetails: R,
|
|
269
|
+
CDropdown: F,
|
|
270
|
+
CDropdownItem: I
|
|
271
|
+
},
|
|
272
|
+
mixins: [B],
|
|
273
|
+
props: {
|
|
274
|
+
document: {
|
|
275
|
+
type: Object,
|
|
276
|
+
required: !0
|
|
277
|
+
},
|
|
278
|
+
openPrintFunc: {
|
|
279
|
+
type: Function,
|
|
280
|
+
default: null
|
|
281
|
+
},
|
|
282
|
+
showLanguageSelect: {
|
|
283
|
+
type: Boolean,
|
|
284
|
+
default: !0
|
|
285
|
+
},
|
|
286
|
+
close: {
|
|
287
|
+
type: Function,
|
|
288
|
+
default: null
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
data() {
|
|
292
|
+
return {
|
|
293
|
+
docLanguages: O,
|
|
294
|
+
nativeTranslations: E
|
|
295
|
+
};
|
|
296
|
+
},
|
|
297
|
+
computed: {
|
|
298
|
+
viewer() {
|
|
299
|
+
return this.document.viewer;
|
|
300
|
+
},
|
|
301
|
+
showActionNav() {
|
|
302
|
+
return !!(this.openPrintFunc || this.showLanguageSelect || this.close);
|
|
303
|
+
},
|
|
304
|
+
senderContactDetails() {
|
|
305
|
+
const { sender: t } = this.document || {};
|
|
306
|
+
return {
|
|
307
|
+
name: t.user.name,
|
|
308
|
+
email: t.user.email,
|
|
309
|
+
cellphone: t.user.cellphone,
|
|
310
|
+
cellphoneRegion: t.user.cellphoneRegion,
|
|
311
|
+
companyName: t.company.companyName,
|
|
312
|
+
orgNo: t.company.orgNo,
|
|
313
|
+
region: t.company.region
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
methods: {
|
|
318
|
+
changeLanguage(t) {
|
|
319
|
+
this.document.language = t, T.changeLanguage(M.includes(t) ? t : "en");
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}, we = { class: "relative flex h-full w-full flex-col overflow-hidden rounded-lg bg-white text-base" }, be = {
|
|
323
|
+
key: 0,
|
|
324
|
+
class: "z-10 flex w-full items-center justify-end px-6 py-4 shadow-sm"
|
|
325
|
+
}, De = { class: "d-root h-full min-h-0 flex-1 overflow-auto px-6 py-8 md:px-12 md:py-16" }, ke = { class: "mb-[3em] flex justify-between" }, Ce = { style: { "font-size": "18px", "font-weight": "600" } }, Ne = {
|
|
326
|
+
class: "has-text-grey",
|
|
327
|
+
style: { "font-size": "14px" }
|
|
328
|
+
}, Pe = {
|
|
329
|
+
class: "d-option",
|
|
330
|
+
style: { "margin-bottom": "3em" }
|
|
331
|
+
}, $e = {
|
|
332
|
+
class: "d-option-title",
|
|
333
|
+
style: { "padding-bottom": "0.5rem" }
|
|
334
|
+
}, xe = {
|
|
335
|
+
class: "d-option",
|
|
336
|
+
style: { "margin-bottom": "3em" }
|
|
337
|
+
}, ze = {
|
|
338
|
+
class: "d-option-title",
|
|
339
|
+
style: { "padding-bottom": "0.5rem" }
|
|
340
|
+
}, Re = {
|
|
341
|
+
key: 0,
|
|
342
|
+
class: "d-option"
|
|
343
|
+
}, Le = { class: "d-option-title" }, Ae = { id: "timeline" }, Fe = { class: "e-data" }, Ie = { class: "e-text" }, Be = { key: 0 }, Ve = { class: "e-timestamp" }, Se = { class: "e-date" }, je = {
|
|
344
|
+
class: "e-time",
|
|
345
|
+
style: { "padding-left": "0.5ch" }
|
|
346
|
+
}, qe = { key: 0 }, Oe = { key: 1 };
|
|
347
|
+
function Ee(t, a, e, m, l, c) {
|
|
348
|
+
const g = p("CButton"), u = p("CDropdownItem"), D = p("CDropdown"), k = p("PublicContactDetails"), x = p("PublicRecipientItem"), C = p("CPhoneFormat"), f = p("PublicDocumentEvents");
|
|
349
|
+
return n(), s("div", we, [
|
|
350
|
+
c.showActionNav ? (n(), s("div", be, [
|
|
351
|
+
e.openPrintFunc ? (n(), s(_, { key: 0 }, [
|
|
352
|
+
b(g, {
|
|
353
|
+
"icon-left": "print",
|
|
354
|
+
type: "none",
|
|
355
|
+
pattern: "tertiary",
|
|
356
|
+
taller: "",
|
|
357
|
+
size: "small",
|
|
358
|
+
style: { "padding-left": "1em", "padding-right": "1em" },
|
|
359
|
+
onClick: e.openPrintFunc
|
|
360
|
+
}, {
|
|
361
|
+
default: v(() => [
|
|
362
|
+
w(i(e.document.$t("download", { thing: "PDF" })), 1)
|
|
363
|
+
]),
|
|
364
|
+
_: 1
|
|
365
|
+
}, 8, ["onClick"]),
|
|
366
|
+
a[0] || (a[0] = o("div", { style: { height: "2rem", width: "1px", "background-color": "hsl(0, 0%, 88%)", margin: "0 6px" } }, null, -1))
|
|
367
|
+
], 64)) : d("", !0),
|
|
368
|
+
e.showLanguageSelect ? (n(), y(D, {
|
|
369
|
+
key: 1,
|
|
370
|
+
"model-value": e.document.language
|
|
371
|
+
}, {
|
|
372
|
+
trigger: v(() => [
|
|
373
|
+
b(g, {
|
|
374
|
+
"icon-props": { size: 18 },
|
|
375
|
+
size: "normal",
|
|
376
|
+
icon: "globe",
|
|
377
|
+
circle: "",
|
|
378
|
+
style: { color: "hsla(0, 0%, 45%, 1)" }
|
|
379
|
+
})
|
|
380
|
+
]),
|
|
381
|
+
default: v(() => [
|
|
382
|
+
(n(!0), s(_, null, N(l.docLanguages, (r) => (n(), y(u, {
|
|
383
|
+
key: r,
|
|
384
|
+
value: r,
|
|
385
|
+
onClick: (h) => c.changeLanguage(r)
|
|
386
|
+
}, {
|
|
387
|
+
default: v(() => [
|
|
388
|
+
w(i(l.nativeTranslations[r]), 1)
|
|
389
|
+
]),
|
|
390
|
+
_: 2
|
|
391
|
+
}, 1032, ["value", "onClick"]))), 128))
|
|
392
|
+
]),
|
|
393
|
+
_: 1
|
|
394
|
+
}, 8, ["model-value"])) : d("", !0),
|
|
395
|
+
e.close ? (n(), y(g, {
|
|
396
|
+
key: 2,
|
|
397
|
+
"icon-props": { size: 18 },
|
|
398
|
+
size: "normal",
|
|
399
|
+
icon: "x",
|
|
400
|
+
circle: "",
|
|
401
|
+
style: { "margin-left": "6px", color: "hsla(0, 0%, 45%, 1)" },
|
|
402
|
+
onClick: e.close
|
|
403
|
+
}, null, 8, ["onClick"])) : d("", !0)
|
|
404
|
+
])) : d("", !0),
|
|
405
|
+
o("div", De, [
|
|
406
|
+
o("div", ke, [
|
|
407
|
+
o("div", null, [
|
|
408
|
+
o("div", Ce, i(e.document.$t("detail_plural").capitalize()), 1),
|
|
409
|
+
o("div", Ne, i(e.document.$t("documentDetails.subTitle")), 1)
|
|
410
|
+
])
|
|
411
|
+
]),
|
|
412
|
+
o("div", Pe, [
|
|
413
|
+
o("div", $e, i(e.document.$t("sender").capitalize()), 1),
|
|
414
|
+
b(k, {
|
|
415
|
+
name: c.senderContactDetails.name,
|
|
416
|
+
email: c.senderContactDetails.email,
|
|
417
|
+
cellphone: c.senderContactDetails.cellphone,
|
|
418
|
+
cellphoneRegion: c.senderContactDetails.cellphoneRegion,
|
|
419
|
+
companyName: c.senderContactDetails.companyName,
|
|
420
|
+
orgNo: c.senderContactDetails.orgNo,
|
|
421
|
+
region: c.senderContactDetails.region
|
|
422
|
+
}, null, 8, ["name", "email", "cellphone", "cellphoneRegion", "companyName", "orgNo", "region"])
|
|
423
|
+
]),
|
|
424
|
+
o("div", xe, [
|
|
425
|
+
o("div", ze, i(e.document.$t("participant_plural").capitalize()), 1),
|
|
426
|
+
(n(!0), s(_, null, N(e.document.recipients, (r, h) => (n(), y(x, {
|
|
427
|
+
key: r._uniqueId + h,
|
|
428
|
+
recipient: r
|
|
429
|
+
}, null, 8, ["recipient"]))), 128))
|
|
430
|
+
]),
|
|
431
|
+
b(f, { document: e.document }, {
|
|
432
|
+
default: v(({ events: r }) => [
|
|
433
|
+
r && r.length ? (n(), s("div", Re, [
|
|
434
|
+
o("div", Le, i(e.document.$t("event.event_plural").capitalize()), 1),
|
|
435
|
+
o("div", Ae, [
|
|
436
|
+
o("div", null, [
|
|
437
|
+
(n(!0), s(_, null, N(r, (h, L) => (n(), s("div", {
|
|
438
|
+
key: L,
|
|
439
|
+
class: "e-item"
|
|
440
|
+
}, [
|
|
441
|
+
o("div", Fe, [
|
|
442
|
+
o("div", Ie, [
|
|
443
|
+
w(i(h.text) + " ", 1),
|
|
444
|
+
h.email || h.cellphone ? (n(), s("span", Be, [
|
|
445
|
+
w(i(h.email) + " " + i(h.email && h.cellphone && t.$t("_common:and")) + " ", 1),
|
|
446
|
+
h.cellphone ? (n(), y(C, {
|
|
447
|
+
key: 0,
|
|
448
|
+
phone: h.cellphone,
|
|
449
|
+
region: h.region
|
|
450
|
+
}, null, 8, ["phone", "region"])) : d("", !0)
|
|
451
|
+
])) : d("", !0)
|
|
452
|
+
]),
|
|
453
|
+
o("div", Ve, [
|
|
454
|
+
o("div", Se, i(t.$formatDate(h.time, "P")), 1),
|
|
455
|
+
o("div", je, i(t.$formatDate(h.time, "p")), 1)
|
|
456
|
+
])
|
|
457
|
+
])
|
|
458
|
+
]))), 128))
|
|
459
|
+
])
|
|
460
|
+
])
|
|
461
|
+
])) : d("", !0)
|
|
462
|
+
]),
|
|
463
|
+
_: 1
|
|
464
|
+
}, 8, ["document"]),
|
|
465
|
+
t.mq === "sm" ? (n(), s("div", qe, [
|
|
466
|
+
P(t.$slots, "footer", {}, void 0, !0)
|
|
467
|
+
])) : d("", !0)
|
|
468
|
+
]),
|
|
469
|
+
t.mq !== "sm" ? (n(), s("div", Oe, [
|
|
470
|
+
P(t.$slots, "footer", {}, void 0, !0)
|
|
471
|
+
])) : d("", !0)
|
|
472
|
+
]);
|
|
473
|
+
}
|
|
474
|
+
const Te = /* @__PURE__ */ $(ve, [["render", Ee], ["__scopeId", "data-v-883387b4"]]), Me = {
|
|
475
|
+
components: {
|
|
476
|
+
DocumentDetails: Te,
|
|
477
|
+
DocumentVoided: A
|
|
478
|
+
},
|
|
479
|
+
props: {
|
|
480
|
+
document: {
|
|
481
|
+
type: Object,
|
|
482
|
+
required: !0
|
|
483
|
+
},
|
|
484
|
+
closeFunc: {
|
|
485
|
+
type: Function,
|
|
486
|
+
default: null
|
|
487
|
+
},
|
|
488
|
+
showLanguageSelect: {
|
|
489
|
+
type: Boolean,
|
|
490
|
+
default: !0
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
};
|
|
494
|
+
function Ue(t, a, e, m, l, c) {
|
|
495
|
+
const g = p("DocumentVoided"), u = p("DocumentDetails");
|
|
496
|
+
return e.document && e.document.status === "voided" ? (n(), y(g, {
|
|
497
|
+
key: 0,
|
|
498
|
+
document: e.document
|
|
499
|
+
}, null, 8, ["document"])) : (n(), y(u, {
|
|
500
|
+
key: 1,
|
|
501
|
+
document: e.document,
|
|
502
|
+
"show-language-select": e.showLanguageSelect,
|
|
503
|
+
close: e.closeFunc
|
|
504
|
+
}, null, 8, ["document", "show-language-select", "close"]));
|
|
505
|
+
}
|
|
506
|
+
const Qe = /* @__PURE__ */ $(Me, [["render", Ue]]);
|
|
507
|
+
export {
|
|
508
|
+
Qe as default
|
|
509
|
+
};
|