@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
package/package.json
CHANGED
|
@@ -1,452 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/Index-lbWFEELM.js
DELETED