@cling-se/widget 1.0.0-beta.1 → 1.0.0-beta.3
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 +25 -0
- package/README.internal.md +82 -0
- package/README.md +14 -40
- package/README.public.md +14 -0
- package/dist/AddClientCallout-DRcy9Dqb.js +101 -0
- package/dist/AnswerModal-Dc3cgkap.js +3291 -0
- package/dist/AttachmentItem-Bef5zdHr.js +171 -0
- package/dist/BaseUpload--paElAyr.js +2472 -0
- package/dist/BlockMedia-DbVE3vsb.js +103 -0
- package/dist/CCallout-81NkOge7.js +104 -0
- package/dist/{CCurrencyDropdown-qH-3m2eP.js → CCurrencyDropdown-M3hi1VVi.js} +91 -49
- package/dist/CDropdownItem-DvaU14-V.js +749 -0
- package/dist/CFormField.vue_vue_type_script_setup_true_lang-B4s_Zfsp.js +292 -0
- package/dist/{CPhoneFormat-CfQayFxw.js → CPhoneFormat-BBQ_UIc_.js} +13 -21
- package/dist/CPhoneInput-Dw_LJDgc.js +207 -0
- package/dist/CPriceInput-BfWZZv0f.js +140 -0
- package/dist/CSelect-B1AAIFbK.js +98 -0
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-D56L_PYT.js +51 -0
- package/dist/ClientAutocomplete-D5veIKyZ.js +532 -0
- package/dist/ClientModal-D8_TPzkv.js +1181 -0
- package/dist/ColorPicker-C0OahiVg.js +1408 -0
- package/dist/CompanyModal-CjzwQU4B.js +250 -0
- package/dist/ContentWrapper-DrmiaFOz.js +265 -0
- package/dist/CoverBlockSettings-C9DWvA-C.js +861 -0
- package/dist/DocAnswer-BEsvAMEp.js +33 -0
- package/dist/DocDetails--LO0-S5d.js +448 -0
- package/dist/DocForm-D6_tGw06.js +6748 -0
- package/dist/DocFormSend-CdFL6rOD.js +171 -0
- package/dist/DocLinks-CIQFUh7c.js +36 -0
- package/dist/DocModalBase-DtPJK9sp.js +29 -0
- package/dist/DocPrint-qX88Ue2I.js +399 -0
- package/dist/DocReceipt-BbXoCmpz.js +341 -0
- package/dist/DocSendReminder-DZqOkd63.js +181 -0
- package/dist/DocTextEditor-Cw-Skmd4.js +19413 -0
- package/dist/DocTimeline-CdbSOVD1.js +537 -0
- package/dist/DocumentClient-DtTv7gkF.js +90 -0
- package/dist/DocumentLayout-BRfEjoYq.js +1368 -0
- package/dist/DocumentLogotype-CUNzyewq.js +162 -0
- package/dist/DocumentVoided-CgDt-JFI.js +33 -0
- package/dist/EmbedInput-rPvTnpXn.js +157 -0
- package/dist/EmbedSettings-BtmFxYGB.js +103 -0
- package/dist/ErrorCallout-B6YrdUsG.js +34 -0
- package/dist/FilePreviewModal-BfIqIIbb.js +202 -0
- package/dist/Flag-CE3K7-8a.js +41 -0
- package/dist/HeaderSettings-5QR7MmVf.js +720 -0
- package/dist/ImageSelectModal-E3hGi8ty.js +119 -0
- package/dist/ImageUploadWrapper-BaexFAAh.js +1585 -0
- package/dist/Index--gv5fH24.js +201 -0
- package/dist/{Index-D4XgxmbD.js → Index-B3ycPjAI.js} +10 -18
- package/dist/Index-B7ECpXAa.js +28 -0
- package/dist/Index-BIXfUsHH.js +52 -0
- package/dist/Index-BM658CCq.js +93 -0
- package/dist/{Index--qPMWUMT.js → Index-B_DCM_bL.js} +48 -61
- package/dist/Index-BcMATT2_.js +47 -0
- package/dist/Index-BpWFU3Td.js +68 -0
- package/dist/Index-BulSI5iO.js +38 -0
- package/dist/Index-CHInIRw5.js +228 -0
- package/dist/Index-COYqsxs9.js +25 -0
- package/dist/Index-CSGk060H.js +1098 -0
- package/dist/Index-CV2O2fWT.js +21 -0
- package/dist/{Index-Bu0MGrj6.js → Index-CXqdBSZ3.js} +313 -206
- package/dist/Index-CavttI66.js +126 -0
- package/dist/Index-CbZ65-O3.js +629 -0
- package/dist/Index-CqrTij2j.js +70 -0
- package/dist/Index-CrsGxDWC.js +16 -0
- package/dist/Index-CxY5Ii6K.js +49 -0
- package/dist/Index-D7Z2w9cd.js +163 -0
- package/dist/Index-D7ixmzBH.js +76 -0
- package/dist/Index-D7pzv-AR.js +74 -0
- package/dist/Index-D9keESQi.js +159 -0
- package/dist/Index-Dd6ueeUc.js +136 -0
- package/dist/{Index-DIOiMm9f.js → Index-DexIUz3R.js} +10 -18
- package/dist/Index-Dnmt6W0u.js +140 -0
- package/dist/Index-DtcV6rl1.js +4 -0
- package/dist/Index-DuDVafLn.js +3452 -0
- package/dist/Index-L913X8Ly.js +102 -0
- package/dist/Index-Mdn0niR_.js +28 -0
- package/dist/Index-_ellB2fs.js +363 -0
- package/dist/{Index-DcQbh-z2.js → Index-baSB5tPv.js} +9 -17
- package/dist/Index-bgKndj-l.js +39 -0
- package/dist/Index-lNYXAFUH.js +87 -0
- package/dist/Index.vue_vue_type_script_lang-DLogex2i.js +671 -0
- package/dist/InputToggleRow-BCvMVbW-.js +99 -0
- package/dist/ManualPopover-BzBvSl_x.js +57 -0
- package/dist/MediaWrapper-_LPau2Ks.js +18 -0
- package/dist/{NotBindingText-CNV2Wmdx.js → NotBindingText-DgcOjUmQ.js} +13 -17
- package/dist/PackageGroup-1X3jUipj.js +1058 -0
- package/dist/PdfTerms-Bf4TlzP5.js +34 -0
- package/dist/PdfViewer-BdhwFfc6.js +392 -0
- package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-BgsfquR_.js +17 -0
- package/dist/PriceHeader-DyC8xssf.js +488 -0
- package/dist/SearchApi-C__orGkO.js +137 -0
- package/dist/SendForm-Be8uiuaJ.js +7031 -0
- package/dist/Setup-DbXs2Zar.js +47 -0
- package/dist/{SmartList-Qgu0rMrI.js → SmartList-BmmtZoZ0.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-D0mloJIN.js +1303 -0
- package/dist/{TermsSettings-CE3h_xkm.js → TermsSettings-DsN6v5yj.js} +169 -49
- package/dist/ThemeColorRow-BL6p09pN.js +108 -0
- package/dist/ToggleBinding-B-tVioQ9.js +44 -0
- package/dist/UploadModal-BnA1xLMy.js +134 -0
- package/dist/VideoPlayerInput-D38S1IDH.js +135 -0
- package/dist/VideoPlayerSettings-B5iXoj5E.js +78 -0
- package/dist/VideoSelectModal-BNCoMFKU.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-C1AuSpOZ.js → debounce-CBRJalZI.js} +7 -7
- package/dist/dom-CkTGWrfu.js +69 -0
- package/dist/{focusDrawerMixin-Be6BAK8-.js → focusDrawerMixin-T94b2Y6F.js} +1 -1
- package/dist/{formDrawerState-DRbg5rVI.js → formDrawerState-jssoGOce.js} +2 -2
- package/dist/helpers-Vo_6Zz3M.js +44 -0
- package/dist/index-8g2jwLJx.js +513 -0
- package/dist/index-B0udVHyo.js +125 -0
- package/dist/index-D63IJVsJ.js +3525 -0
- package/dist/index-DCYCN_FR.js +508 -0
- package/dist/index-FRHGChx1.js +149 -0
- package/dist/index-HXiq8Yxs.js +270 -0
- package/dist/index-jOufDnZ8.js +188 -0
- package/dist/index.es.js +2 -5
- package/dist/index.umd.js +306 -1505
- package/dist/{main-WKzC-Dnu.js → main-C4OdoeS2.js} +36750 -37369
- package/dist/mapFormMixin-v-nbaWcx.js +1544 -0
- package/dist/omit-GuxX6Zt-.js +31 -0
- package/dist/{publicSenderState-BujjYsZZ.js → publicSenderState-C-7OMKKW.js} +4 -4
- package/dist/regions-BdZt9Srn.js +1250 -0
- package/dist/splitpanes-DChJiJ8d.js +342 -0
- package/dist/style.css +1 -4
- package/dist/template-m1V22cUt.js +1493 -0
- package/dist/{throttle-CWPJmFid.js → throttle-WWMDZKby.js} +2 -2
- package/dist/tippy.esm-Dz-faEsS.js +1994 -0
- package/dist/useTermsModal-C_eLdGLi.js +87 -0
- package/dist/{utils-CA_Zy6u1.js → utils-vnvZGRwQ.js} +8 -11
- package/dist/validation-C-dQpENM.js +40 -0
- package/package.json +25 -31
- package/.eslintrc.cjs +0 -4
- package/dist/AddClientCallout-BWnvyBcK.js +0 -46
- package/dist/AnswerModal-CLGRdSnK.js +0 -3874
- package/dist/AttachmentItem-BPS0-wyc.js +0 -78
- package/dist/BaseDatePicker-BbmV_GdD.js +0 -3183
- package/dist/BaseUpload-9gPgI7r6.js +0 -1977
- package/dist/BlockMedia-DkPFWiYL.js +0 -76
- package/dist/CCallout-T26jwUby.js +0 -59
- package/dist/CDropdownItem-BE8BAMD1.js +0 -636
- package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
- package/dist/CFormField-DECEfoVq.js +0 -241
- package/dist/CPriceInput-C4SOB-P5.js +0 -112
- package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
- package/dist/ClientAutocomplete-DSebA1Mx.js +0 -78
- package/dist/ClientModal-BXFYvYCF.js +0 -625
- package/dist/ColorPicker-CZ_bJabP.js +0 -2879
- package/dist/CompanyModal-CDr3t28n.js +0 -141
- package/dist/ContentWrapper-BwmMoe4W.js +0 -183
- package/dist/CoverBlockSettings-_F11-DGc.js +0 -275
- package/dist/DocAnswer-BR59xzkT.js +0 -36
- package/dist/DocDetails-D1qbCbps.js +0 -259
- package/dist/DocForm-DBc2a7z5.js +0 -7272
- package/dist/DocFormSend-Casix-yG.js +0 -144
- package/dist/DocLinks-DGTaewyX.js +0 -38
- package/dist/DocModalBase-BbS_qvSv.js +0 -28
- package/dist/DocPrint-0PqX3mbJ.js +0 -240
- package/dist/DocReceipt-CU3VD5pt.js +0 -210
- package/dist/DocSendReminder-CuycBspr.js +0 -137
- package/dist/DocTextEditor-CntS2Bd-.js +0 -17180
- package/dist/DocTimeline-DJuv3yBe.js +0 -481
- package/dist/DocumentClient-C25XXzz6.js +0 -136
- package/dist/DocumentLayout-B7afHRMr.js +0 -4909
- package/dist/DocumentLogotype-sqI51wvM.js +0 -87
- package/dist/DocumentVoided-TahdTSMn.js +0 -25
- package/dist/EmbedInput-BY-wHSfc.js +0 -113
- package/dist/EmbedSettings-8pfjk4NP.js +0 -72
- package/dist/ErrorCallout-Dsr8PNsU.js +0 -28
- package/dist/FilePreviewModal-CcEinEFg.js +0 -81
- package/dist/Flag-PJKrghi9.js +0 -114
- package/dist/HeaderSettings-BqczIOsG.js +0 -392
- package/dist/ImageSelectModal-Cd-HhKnH.js +0 -84
- package/dist/ImageUploadWrapper-Dv43rGdb.js +0 -1604
- package/dist/Index-6b5VBKE-.js +0 -107
- package/dist/Index-B4pRJnbw.js +0 -84
- package/dist/Index-B69f8qgZ.js +0 -62
- package/dist/Index-B79YN9RO.js +0 -25
- package/dist/Index-BBrlPoe8.js +0 -58
- package/dist/Index-BXfWJCuq.js +0 -52
- package/dist/Index-Bd76vb37.js +0 -55
- package/dist/Index-BmbtQO5F.js +0 -150
- package/dist/Index-ByV_kJaH.js +0 -77
- package/dist/Index-CDV5rhWS.js +0 -49
- package/dist/Index-CIx4OOK-.js +0 -144
- package/dist/Index-CL1OWLt6.js +0 -223
- package/dist/Index-Caow0eZu.js +0 -31
- package/dist/Index-Cd3-3PEK.js +0 -2402
- package/dist/Index-CdpZBEKU.js +0 -98
- package/dist/Index-CmU3Sys-.js +0 -754
- package/dist/Index-CtRtgnpm.js +0 -32
- package/dist/Index-Cukkr33D.js +0 -140
- package/dist/Index-Cuqw0ios.js +0 -57
- package/dist/Index-Czm_WdqC.js +0 -25
- package/dist/Index-DNdYXHgr.js +0 -33
- package/dist/Index-DcuBxutp.js +0 -642
- package/dist/Index-DpWNWiyY.js +0 -291
- package/dist/Index-DzS1rZdF.js +0 -24
- package/dist/Index-N6s5pZxv.js +0 -26
- package/dist/Index-g_DNu4mt.js +0 -69
- package/dist/Index-mJ8F41GY.js +0 -154
- package/dist/Index-q7W9KA8m.js +0 -21
- package/dist/Index-rtzblZp4.js +0 -70
- package/dist/InputToggleRow-CZjxsDOQ.js +0 -57
- package/dist/ManualPopover-CZrWiT-P.js +0 -58
- package/dist/MediaWrapper-D37qK4KR.js +0 -23
- package/dist/PackageGroup-Heo_s8ct.js +0 -699
- package/dist/PdfTerms-AB9tXAtU.js +0 -36
- package/dist/PdfViewer-CIVkvOBr.js +0 -373
- package/dist/PlainHtml-CPmIebjY.js +0 -20
- package/dist/PriceHeader-DhDAruwX.js +0 -339
- package/dist/SearchApi-BMgdaI4s.js +0 -161
- package/dist/Setup-VIaIV9uT.js +0 -50
- package/dist/ThemeColorRow-DYJNgk6S.js +0 -67
- package/dist/ToggleBinding-CuwCeYpO.js +0 -38
- package/dist/UploadModal-BITcxG-J.js +0 -95
- package/dist/VideoPlayerInput-8szEX_8L.js +0 -93
- package/dist/VideoPlayerSettings-BIPytm6w.js +0 -61
- package/dist/VideoSelectModal-B-Pe34nb.js +0 -100
- package/dist/answerDocumentMixin-W7vE1Gp4.js +0 -51
- package/dist/formComponentsInstall-Bm3VMOh6.js +0 -2507
- package/dist/formValidationMixin-COkY8COk.js +0 -49
- package/dist/index-BFvjENMH.js +0 -81
- package/dist/index-BV2nGWay.js +0 -492
- package/dist/index-BgJ05dYc.js +0 -165
- package/dist/index-CMPAXxzs.js +0 -347
- package/dist/index-DNDjI5uI.js +0 -3916
- package/dist/index-aoff9oUi.js +0 -102
- package/dist/mapFormMixin-QbevCwJK.js +0 -72
- package/dist/omit-CTp9CXoU.js +0 -31
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/tinycolor-kTl0yxzz.js +0 -633
- package/dist/tippy.esm-sS5koDSU.js +0 -1799
- package/dist/vuedraggable.umd-BA3ZDRAp.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
- package/public/favicon.ico +0 -0
- package/tsconfig.json +0 -26
- package/tsconfig.node.json +0 -10
- package/tsconfig.paths.json +0 -17
- package/vite.config.ts +0 -60
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import n from "./AnswerModal-Dc3cgkap.js";
|
|
2
|
+
import { _ as t, b as c, o as r, c as s } from "./main-C4OdoeS2.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-CgDt-JFI.js";
|
|
2
|
+
import { C as F, a as A, w as I } from "./CDropdownItem-DvaU14-V.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-C4OdoeS2.js";
|
|
4
|
+
import { C as O } from "./CPhoneFormat-BBQ_UIc_.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
|
+
};
|