@cling-se/widget 0.17.3 → 0.18.0
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 +7 -0
- package/dist/AddClientCallout-Bod9Eqx4.js +101 -0
- package/dist/AnswerModal-a2cyKFbt.js +3371 -0
- package/dist/AttachmentItem-DBUqckCS.js +171 -0
- package/dist/BaseUpload-DrWzuvbS.js +6503 -0
- package/dist/BlockMedia-DuE_K9hR.js +103 -0
- package/dist/CCallout-CM1VsH30.js +104 -0
- package/dist/{CCurrencyDropdown-CXXQu8th.js → CCurrencyDropdown-C_lAaq4P.js} +91 -53
- package/dist/CDropdownItem-DMUAJ90n.js +749 -0
- package/dist/CFormField.vue_vue_type_script_setup_true_lang-BqAyWe3T.js +292 -0
- package/dist/{CPhoneFormat-BtBGl8b4.js → CPhoneFormat-Dnn_cKk7.js} +13 -21
- package/dist/CPhoneInput-DuGkDiv-.js +207 -0
- package/dist/CPriceInput-B7DYzKcF.js +142 -0
- package/dist/CSelect-BZZDr27O.js +98 -0
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-D2jDhnYI.js +51 -0
- package/dist/ClientAutocomplete-DuaJ5zDf.js +532 -0
- package/dist/ClientModal-CaMSjLkD.js +1188 -0
- package/dist/ColorPicker-BISZPQ6j.js +1408 -0
- package/dist/CompanyModal-ClTcmU4Y.js +250 -0
- package/dist/ContentWrapper-Bj7jbWU0.js +265 -0
- package/dist/CoverBlockSettings-AXyiLxrF.js +861 -0
- package/dist/DocAnswer-Bu09V33D.js +33 -0
- package/dist/DocDetails-B6-2LKsO.js +452 -0
- package/dist/DocForm-CFN8LWSd.js +6772 -0
- package/dist/DocFormSend-D1CUhy4n.js +171 -0
- package/dist/DocLinks-CuliFqtN.js +36 -0
- package/dist/DocModalBase-BxKsnwN-.js +29 -0
- package/dist/DocPrint-B_HJ_RET.js +399 -0
- package/dist/DocReceipt-D-A1TaTI.js +341 -0
- package/dist/DocSendReminder-BKTJonzh.js +181 -0
- package/dist/{DocTextEditor-yD9Dt_um.js → DocTextEditor-CEPcJT2o.js} +7907 -5579
- package/dist/DocTimeline-CF9S4YDZ.js +537 -0
- package/dist/DocumentClient-7mbq2QA4.js +90 -0
- package/dist/DocumentLayout-DkFlHgW6.js +1434 -0
- package/dist/DocumentLogotype-BTYMdpNi.js +162 -0
- package/dist/DocumentVoided-CWr5WMUv.js +33 -0
- package/dist/EmbedInput-SevVEpwc.js +156 -0
- package/dist/EmbedSettings-YMbUmp1O.js +103 -0
- package/dist/ErrorCallout-CQo2iF9c.js +34 -0
- package/dist/FilePreviewModal-C0xBeoAz.js +202 -0
- package/dist/Flag-BObij6SN.js +41 -0
- package/dist/HeaderSettings-C77pR78n.js +720 -0
- package/dist/ImageSelectModal-DKdU-0uq.js +119 -0
- package/dist/ImageUploadWrapper-BGkS5Cll.js +1585 -0
- package/dist/Index-B3y-jq9s.js +1098 -0
- package/dist/Index-B41pUREi.js +47 -0
- package/dist/Index-BEyeS1OG.js +52 -0
- package/dist/Index-BG5j8ZFP.js +93 -0
- package/dist/Index-BOT65yQR.js +68 -0
- package/dist/Index-BQNl-cXP.js +28 -0
- package/dist/Index-BY6xsS7C.js +38 -0
- package/dist/Index-Bh0Xv5ry.js +163 -0
- package/dist/Index-Bn4FSQcx.js +228 -0
- package/dist/Index-BrRIAede.js +87 -0
- package/dist/Index-C-6um0kX.js +76 -0
- package/dist/{Index-C_aIQ908.js → Index-C-gHa5xk.js} +319 -214
- package/dist/Index-C0wcjKCH.js +629 -0
- package/dist/Index-C6BbUFYw.js +160 -0
- package/dist/Index-C8xwJ0m1.js +200 -0
- package/dist/Index-CKgFEJF4.js +140 -0
- package/dist/{Index-Dfq7egc1.js → Index-CQwmu4f1.js} +47 -60
- package/dist/Index-CXchTpBa.js +74 -0
- package/dist/{Index-Ch9r5yhG.js → Index-CYoRt8PA.js} +9 -17
- package/dist/Index-CZZNQ4q5.js +39 -0
- package/dist/Index-CkaAs5ms.js +136 -0
- package/dist/Index-CtpXaBz8.js +363 -0
- package/dist/Index-CxDsSGtZ.js +126 -0
- package/dist/Index-DFkTBm02.js +102 -0
- package/dist/Index-DP3ll8F-.js +70 -0
- package/dist/{Index-RWMPRDAE.js → Index-DPDzMKQa.js} +10 -18
- package/dist/Index-DvxSig3z.js +25 -0
- package/dist/Index-Dzrn3Y6p.js +16 -0
- package/dist/{Index-CRiATiQn.js → Index-LQb0omFE.js} +10 -18
- package/dist/Index-Mt4mSaNT.js +4 -0
- package/dist/Index-_xN_cczo.js +3477 -0
- package/dist/Index-gAz45qgR.js +21 -0
- package/dist/Index-xXLFalgR.js +49 -0
- package/dist/Index-zyZRPz3H.js +28 -0
- package/dist/Index.vue_vue_type_script_lang-Ddo1wo-D.js +671 -0
- package/dist/InputToggleRow-CokEYwm2.js +99 -0
- package/dist/ManualPopover-Dukly7GP.js +65 -0
- package/dist/MediaWrapper-B8msCrQm.js +18 -0
- package/dist/{NotBindingText-CC7TxUqg.js → NotBindingText-DcQd8Eej.js} +13 -17
- package/dist/PackageGroup-clUIUoik.js +1060 -0
- package/dist/PdfTerms-DpzMVRfN.js +34 -0
- package/dist/PdfViewer-CSf4Rtbj.js +392 -0
- package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6KSjjMA.js +17 -0
- package/dist/PriceHeader-Dyweu8aH.js +488 -0
- package/dist/{SearchApi-G2Hvp0Dd.js → SearchApi-Y1fDQn0u.js} +37 -49
- package/dist/SendForm-B9l24WwR.js +6689 -0
- package/dist/Setup-DyzbPFM4.js +47 -0
- package/dist/{SmartList-BynTuXtB.js → SmartList-CWGKoAJh.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-C2Gwp6Q-.js +1349 -0
- package/dist/{TermsSettings-cA5YAO77.js → TermsSettings-BeQH307A.js} +169 -56
- package/dist/ThemeColorRow-DFIsPy55.js +105 -0
- package/dist/ToggleBinding-DlH4y1IM.js +44 -0
- package/dist/UploadModal-BZ0mPBBB.js +134 -0
- package/dist/VideoPlayerInput-DBxcTUb7.js +134 -0
- package/dist/VideoPlayerSettings-Dg1OxjOa.js +78 -0
- package/dist/VideoSelectModal-BhbanMix.js +217 -0
- package/dist/{anime.es-BrPTThYb.js → anime.es-4wvNItHq.js} +205 -201
- package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
- package/dist/{dom-Ds4ypDrd.js → dom-CkTGWrfu.js} +3 -6
- package/dist/{focusDrawerMixin-CximZA1J.js → focusDrawerMixin-BVbTYOGr.js} +1 -1
- package/dist/{formDrawerState-CkNGdxn5.js → formDrawerState-CogZ-GVm.js} +2 -2
- package/dist/helpers-B4GUxtdD.js +46 -0
- package/dist/index-BZDey7B-.js +268 -0
- package/dist/index-Bd8_ZHHq.js +188 -0
- package/dist/index-BvyoYp1e.js +508 -0
- package/dist/index-CJZoubA3.js +3525 -0
- package/dist/index-D7yQWP4d.js +125 -0
- package/dist/index-D8hGHka6.js +513 -0
- package/dist/index-Dxy4tf7x.js +149 -0
- package/dist/index.es.js +2 -5
- package/dist/index.umd.js +303 -1486
- package/dist/main-Bn5XkQPb.js +57570 -0
- package/dist/mapFormMixin-C7FJLnbO.js +1528 -0
- package/dist/omit-DrWpFvRJ.js +56 -0
- package/dist/{publicSenderState-CGEm9EYe.js → publicSenderState-tdtCFPMx.js} +4 -4
- package/dist/splitpanes-BApidgjj.js +342 -0
- package/dist/template-CHdf2K2I.js +1572 -0
- package/dist/tippy.esm-Co6FYzEM.js +1994 -0
- package/dist/useTermsModal-VDnO1Lro.js +87 -0
- package/dist/{utils-Dr4AcaE9.js → utils-DZkn0Q9c.js} +8 -11
- package/dist/validation-CqBkar3f.js +40 -0
- package/dist/widget.css +1 -0
- package/package.json +20 -25
- package/dist/AddClientCallout-Br6IhwGH.js +0 -48
- package/dist/AnswerModal-CsWltR6j.js +0 -3879
- package/dist/AttachmentItem-BG7FuSCD.js +0 -85
- package/dist/BaseDatePicker-PSNBtUIh.js +0 -3187
- package/dist/BaseUpload-BfEurAAV.js +0 -1977
- package/dist/BlockMedia-Bo3OfNSU.js +0 -76
- package/dist/CCallout-CAjM8-1X.js +0 -58
- package/dist/CDropdownItem-CN7gSfgY.js +0 -640
- package/dist/CFormField-Clvcf2Jh.js +0 -240
- package/dist/CPhoneInput-CEHXh5jM.js +0 -138
- package/dist/CPriceInput-D2c07SXp.js +0 -116
- package/dist/CSelect-Cz2IPzxS.js +0 -91
- package/dist/CSkeleton-AsnvnD-m.js +0 -55
- package/dist/ClientAutocomplete-CZ55-DKe.js +0 -438
- package/dist/ClientModal-CgUhWZ5L.js +0 -666
- package/dist/ColorPicker-IFGHqH-u.js +0 -2879
- package/dist/CompanyModal-TLSBFo3U.js +0 -147
- package/dist/ContentWrapper-HClxKPuT.js +0 -190
- package/dist/CoverBlockSettings-D99hAa6e.js +0 -659
- package/dist/DocAnswer-CTV_Bpt7.js +0 -36
- package/dist/DocDetails-CQe5htXj.js +0 -263
- package/dist/DocForm-6Efv5_oz.js +0 -5017
- package/dist/DocFormSend-DbXcklxU.js +0 -146
- package/dist/DocLinks-BO545zbL.js +0 -38
- package/dist/DocModalBase-DXHNJ-6i.js +0 -28
- package/dist/DocPrint-Bf2U4FQN.js +0 -240
- package/dist/DocReceipt-CWXvC7bY.js +0 -217
- package/dist/DocSendReminder-CRzBM2NJ.js +0 -140
- package/dist/DocTimeline-DGVOk8-2.js +0 -485
- package/dist/DocumentClient-Das9BaJ7.js +0 -136
- package/dist/DocumentLayout-4q8rmTVT.js +0 -4880
- package/dist/DocumentLogotype-DLncJJAB.js +0 -92
- package/dist/DocumentVoided-CcI9lX27.js +0 -25
- package/dist/EmbedInput-BPdy0lGS.js +0 -117
- package/dist/EmbedSettings-L2iwYLQK.js +0 -74
- package/dist/ErrorCallout-Ds_tBT02.js +0 -27
- package/dist/FilePreviewModal-hxUu330p.js +0 -81
- package/dist/Flag-1-HcT5Dz.js +0 -46
- package/dist/HeaderSettings-C27fMugK.js +0 -440
- package/dist/ImageSelectModal-BKDIyxF4.js +0 -86
- package/dist/ImageUploadWrapper-BiYzUQur.js +0 -1604
- package/dist/Index-5BOWxcPG.js +0 -26
- package/dist/Index-B1Odktov.js +0 -754
- package/dist/Index-B3d5BjEn.js +0 -25
- package/dist/Index-B3sSU_4X.js +0 -54
- package/dist/Index-B5Dqsh3K.js +0 -150
- package/dist/Index-B6aO1c_w.js +0 -62
- package/dist/Index-BGfICxJQ.js +0 -643
- package/dist/Index-BHopC0hv.js +0 -24
- package/dist/Index-BJXcSmp_.js +0 -55
- package/dist/Index-BQe6QjQZ.js +0 -25
- package/dist/Index-BmXx_x6t.js +0 -77
- package/dist/Index-C692qMTG.js +0 -294
- package/dist/Index-CEvbw-3i.js +0 -41
- package/dist/Index-CYSULnpn.js +0 -32
- package/dist/Index-CdtYzwAM.js +0 -107
- package/dist/Index-CetF2FW0.js +0 -230
- package/dist/Index-Cv6XLM20.js +0 -73
- package/dist/Index-Cwy8ff76.js +0 -154
- package/dist/Index-D34z4UEY.js +0 -84
- package/dist/Index-DNCei-lp.js +0 -56
- package/dist/Index-DUbxgIYB.js +0 -2445
- package/dist/Index-DVwn_LLf.js +0 -28
- package/dist/Index-Dla-mesV.js +0 -146
- package/dist/Index-KtUkOPI2.js +0 -58
- package/dist/Index-LjnOTVJk.js +0 -66
- package/dist/Index-ky1SRtfY.js +0 -94
- package/dist/Index-mceZW2NX.js +0 -41
- package/dist/Index-tD3hZjh8.js +0 -144
- package/dist/Index-vM5kDtC2.js +0 -33
- package/dist/InputToggleRow-BmDuSbE2.js +0 -57
- package/dist/ManualPopover-CQfjPvFe.js +0 -60
- package/dist/MediaWrapper-DDzcjR6V.js +0 -23
- package/dist/PackageGroup-mAGXfZDv.js +0 -704
- package/dist/PdfTerms-BH_Nwf2h.js +0 -31
- package/dist/PdfViewer-mBLxI8bA.js +0 -383
- package/dist/PlainHtml-B7gUNNZd.js +0 -27
- package/dist/PriceHeader-DClYMPcq.js +0 -338
- package/dist/SendForm-Cxv_m8Rq.js +0 -1023
- package/dist/Setup-B90VDZTG.js +0 -50
- package/dist/ThemeColorRow-D-Z7w4Wk.js +0 -69
- package/dist/ToggleBinding-DOeTcWzi.js +0 -42
- package/dist/UploadModal-DOPLVEpV.js +0 -95
- package/dist/VideoPlayerInput-1zG06elO.js +0 -97
- package/dist/VideoPlayerSettings-O-4rAYYh.js +0 -61
- package/dist/VideoSelectModal-DzqFrqCg.js +0 -104
- package/dist/answerDocumentMixin-HBiNWYCH.js +0 -51
- package/dist/debounce-Ch1d3526.js +0 -84
- package/dist/formValidationMixin-D_MzsHsR.js +0 -49
- package/dist/index-BNdbPq4J.js +0 -492
- package/dist/index-BXzugeJ6.js +0 -81
- package/dist/index-C5wcxrC6.js +0 -167
- package/dist/index-CgDOs7t4.js +0 -2700
- package/dist/index-Cj-_2coz.js +0 -351
- package/dist/index-DpqV5y0K.js +0 -102
- package/dist/main-BL_yzf2r.js +0 -57357
- package/dist/mapFormMixin-Cu_vkTP-.js +0 -3028
- package/dist/omit-Dfe_H1Ft.js +0 -31
- package/dist/simplebar.min-CRlLD1Oz.js +0 -71
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/style.css +0 -4
- package/dist/throttle-BX_w77tW.js +0 -18
- package/dist/tippy.esm-n4arfVzA.js +0 -1805
- package/dist/vuedraggable.umd-DW4PJoZ3.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { S as n } from "./SendForm-Cxv_m8Rq.js";
|
|
2
|
-
import { V as l, m as s, a as r, g as u, C as i, n as c } from "./main-BL_yzf2r.js";
|
|
3
|
-
const a = l.observable({
|
|
4
|
-
canEdit: !1,
|
|
5
|
-
isForm: !0,
|
|
6
|
-
setFormValue: null,
|
|
7
|
-
removeFormValue: null
|
|
8
|
-
}), m = {
|
|
9
|
-
name: "DocFormSend",
|
|
10
|
-
components: {
|
|
11
|
-
SendForm: n
|
|
12
|
-
},
|
|
13
|
-
provide: () => ({ viewSettings: a, allowSenderSign: !1 }),
|
|
14
|
-
// TODO maybe not needed
|
|
15
|
-
props: {
|
|
16
|
-
// consumer options
|
|
17
|
-
showName: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: !0
|
|
20
|
-
},
|
|
21
|
-
showSave: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: !0
|
|
24
|
-
},
|
|
25
|
-
showSchedule: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
default: !0
|
|
28
|
-
},
|
|
29
|
-
allowManualDelivery: {
|
|
30
|
-
type: Boolean,
|
|
31
|
-
default: !1
|
|
32
|
-
},
|
|
33
|
-
allowEditClients: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: !0
|
|
36
|
-
},
|
|
37
|
-
contentSlot: {
|
|
38
|
-
type: String,
|
|
39
|
-
default: null
|
|
40
|
-
},
|
|
41
|
-
footerSlot: {
|
|
42
|
-
type: String,
|
|
43
|
-
default: null
|
|
44
|
-
},
|
|
45
|
-
// widget internals
|
|
46
|
-
setFormValue: {
|
|
47
|
-
type: Function,
|
|
48
|
-
default: null
|
|
49
|
-
},
|
|
50
|
-
removeFormValue: {
|
|
51
|
-
type: Function,
|
|
52
|
-
default: null
|
|
53
|
-
},
|
|
54
|
-
closeFunc: {
|
|
55
|
-
type: Function,
|
|
56
|
-
default: null
|
|
57
|
-
},
|
|
58
|
-
beforeSave: {
|
|
59
|
-
type: Function,
|
|
60
|
-
default: null
|
|
61
|
-
},
|
|
62
|
-
beforeSend: {
|
|
63
|
-
type: Function,
|
|
64
|
-
default: null
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
data() {
|
|
68
|
-
return {
|
|
69
|
-
document: null
|
|
70
|
-
};
|
|
71
|
-
},
|
|
72
|
-
computed: {
|
|
73
|
-
...s({
|
|
74
|
-
company: "application/company",
|
|
75
|
-
can: "application/can",
|
|
76
|
-
rawDoc: "forms/document",
|
|
77
|
-
isPosting: "documents2/isPosting"
|
|
78
|
-
})
|
|
79
|
-
},
|
|
80
|
-
watch: {
|
|
81
|
-
rawDoc: {
|
|
82
|
-
immediate: !0,
|
|
83
|
-
handler() {
|
|
84
|
-
this.initDoc();
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
async created() {
|
|
89
|
-
this.setDocValue && (a.setFormValue = this.setDocValue), this.removeDocValue && (a.removeFormValue = this.removeDocValue);
|
|
90
|
-
},
|
|
91
|
-
methods: {
|
|
92
|
-
...r({
|
|
93
|
-
saveDocument: u.SAVE_DYNDOC_FORM
|
|
94
|
-
// loadCompanyUser: global.LOAD_COMPANY_USER,
|
|
95
|
-
}),
|
|
96
|
-
async initDoc() {
|
|
97
|
-
if (!this.rawDoc)
|
|
98
|
-
throw new Error("Missing initiated form document");
|
|
99
|
-
this.document = new i({
|
|
100
|
-
data: this.rawDoc,
|
|
101
|
-
can: this.can,
|
|
102
|
-
getters: this.$store.getters,
|
|
103
|
-
updateSender: !0
|
|
104
|
-
});
|
|
105
|
-
},
|
|
106
|
-
setDocValue({ key: t, value: e }) {
|
|
107
|
-
return this.setFormValue({ key: t, value: e });
|
|
108
|
-
},
|
|
109
|
-
removeDocValue(t) {
|
|
110
|
-
return this.removeFormValue(t);
|
|
111
|
-
},
|
|
112
|
-
async onSaveDocument({ doSend: t = !1 } = {}) {
|
|
113
|
-
let e = !1;
|
|
114
|
-
typeof this.beforeSave == "function" && (e = await this.beforeSave(this.document)), t && typeof this.beforeSend == "function" && (e = await this.beforeSend(this.document)), !(e || !await this.saveDocument({ doSend: t })) && this.close();
|
|
115
|
-
},
|
|
116
|
-
close() {
|
|
117
|
-
this.closeFunc();
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
var d = function() {
|
|
122
|
-
var e = this, o = e._self._c;
|
|
123
|
-
return e.document ? o("SendForm", { staticClass: "h-full w-full", attrs: { _document: e.document, _value: {
|
|
124
|
-
expiresAt: "data.expiresAt",
|
|
125
|
-
personalMessage: "data.personalMessage",
|
|
126
|
-
defaultAnswerMethod: "data.defaultAnswerMethod",
|
|
127
|
-
clients: "clients",
|
|
128
|
-
reminders: "data.reminders",
|
|
129
|
-
name: "data.name"
|
|
130
|
-
}, "show-name": e.showName, "show-save": e.showSave, "show-schedule": e.showSchedule, "allow-edit-clients": e.allowEditClients, "allow-manual-delivery": e.allowManualDelivery, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "on-save-document": e.onSaveDocument, "use-scroll": "" }, scopedSlots: e._u([{ key: "content", fn: function() {
|
|
131
|
-
return [e.contentSlot ? o("div", { domProps: { innerHTML: e._s(e.contentSlot) } }) : e._e()];
|
|
132
|
-
}, proxy: !0 }, { key: "footer", fn: function() {
|
|
133
|
-
return [e.footerSlot ? o("div", { domProps: { innerHTML: e._s(e.footerSlot) } }) : e._e()];
|
|
134
|
-
}, proxy: !0 }], null, !1, 2490720261) }) : o("div", { staticClass: "grid h-full w-full place-items-center" }, [o("CIcon", { staticClass: "animate-spin text-gray-400", attrs: { type: "loader", size: 28 } })], 1);
|
|
135
|
-
}, f = [], p = /* @__PURE__ */ c(
|
|
136
|
-
m,
|
|
137
|
-
d,
|
|
138
|
-
f,
|
|
139
|
-
!1,
|
|
140
|
-
null,
|
|
141
|
-
null
|
|
142
|
-
);
|
|
143
|
-
const w = p.exports;
|
|
144
|
-
export {
|
|
145
|
-
w as default
|
|
146
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { C as o } from "./index-DpqV5y0K.js";
|
|
2
|
-
import { n as s } from "./main-BL_yzf2r.js";
|
|
3
|
-
const t = {
|
|
4
|
-
name: "DocLinks",
|
|
5
|
-
components: {
|
|
6
|
-
ClientLinks: o
|
|
7
|
-
},
|
|
8
|
-
props: {
|
|
9
|
-
document: {
|
|
10
|
-
type: Object,
|
|
11
|
-
required: !0
|
|
12
|
-
},
|
|
13
|
-
closeFunc: {
|
|
14
|
-
type: Function,
|
|
15
|
-
default: null
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
methods: {
|
|
19
|
-
close() {
|
|
20
|
-
this.closeFunc && this.closeFunc();
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
var c = function() {
|
|
25
|
-
var e = this, n = e._self._c;
|
|
26
|
-
return n("div", { staticClass: "h-full w-full overflow-auto" }, [n("ClientLinks", { attrs: { id: e.document.id }, on: { close: e.close } })], 1);
|
|
27
|
-
}, l = [], r = /* @__PURE__ */ s(
|
|
28
|
-
t,
|
|
29
|
-
c,
|
|
30
|
-
l,
|
|
31
|
-
!1,
|
|
32
|
-
null,
|
|
33
|
-
null
|
|
34
|
-
);
|
|
35
|
-
const f = r.exports;
|
|
36
|
-
export {
|
|
37
|
-
f as default
|
|
38
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { n as o } from "./main-BL_yzf2r.js";
|
|
2
|
-
const s = {
|
|
3
|
-
name: "DocModalBase",
|
|
4
|
-
components: {},
|
|
5
|
-
props: {
|
|
6
|
-
showClose: {
|
|
7
|
-
type: Boolean,
|
|
8
|
-
default: !1
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
var a = function() {
|
|
13
|
-
var e = this, t = e._self._c;
|
|
14
|
-
return t("div", { staticClass: "doc-modal-base" }, [e.showClose ? t("CButton", { staticClass: "absolute right-4 top-4 text-gray-500", attrs: { circle: "", icon: "x" }, on: { click: function(l) {
|
|
15
|
-
return e.$parent.$emit("close");
|
|
16
|
-
} } }) : e._e(), e._t("default")], 2);
|
|
17
|
-
}, n = [], r = /* @__PURE__ */ o(
|
|
18
|
-
s,
|
|
19
|
-
a,
|
|
20
|
-
n,
|
|
21
|
-
!1,
|
|
22
|
-
null,
|
|
23
|
-
"14171006"
|
|
24
|
-
);
|
|
25
|
-
const i = r.exports;
|
|
26
|
-
export {
|
|
27
|
-
i as D
|
|
28
|
-
};
|
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
import { n as d, t as h, c, I as l, Q as p, R as a, T as m } from "./main-BL_yzf2r.js";
|
|
2
|
-
const u = {
|
|
3
|
-
i18nOptions: {
|
|
4
|
-
namespaces: "documentPrint",
|
|
5
|
-
messages: {
|
|
6
|
-
en: {
|
|
7
|
-
title: "Print options",
|
|
8
|
-
appendAttachments: "Append attachments",
|
|
9
|
-
appendAttachmentsSub: "Append attachments",
|
|
10
|
-
hideDocumentAttachmentBlocks: "Hide document attachment blocks",
|
|
11
|
-
hideDocumentAttachmentBlocksTooltip: "Hide blocks with the type of attachments.",
|
|
12
|
-
showVerification: "Include verification",
|
|
13
|
-
showVerificationSub: "Signature verification.",
|
|
14
|
-
showLast4ssn: "Include the last 4 digits of the personal identification number from the BankID signature.",
|
|
15
|
-
showEvents: "Show events",
|
|
16
|
-
buttonText: "Download PDF",
|
|
17
|
-
preparingPdf: "Preparing PDF...",
|
|
18
|
-
preparingPdfDone: "PDF is complete",
|
|
19
|
-
preparingPdfError: "Could not create PDF. Try again."
|
|
20
|
-
},
|
|
21
|
-
sv: {
|
|
22
|
-
title: "Utskriftsinställningar",
|
|
23
|
-
appendAttachments: "Bifoga bilagor",
|
|
24
|
-
appendAttachmentsSub: "Inkludera bilagor i slutet av PDF:en.",
|
|
25
|
-
hideDocumentAttachmentBlocks: "Göm dokumentblock som är bilagor",
|
|
26
|
-
hideDocumentAttachmentBlocksTooltip: "Dölj blocken av typen bilagor.",
|
|
27
|
-
showVerification: "Inkludera verifikat",
|
|
28
|
-
showVerificationSub: "Signaturverifikat.",
|
|
29
|
-
showLast4ssn: "Inkludera de sista 4-siffrorna i personnummret från BankID-signaturen",
|
|
30
|
-
showEvents: "Visa händelser",
|
|
31
|
-
buttonText: "Ladda ner PDF",
|
|
32
|
-
preparingPdf: "Förbereder PDF...",
|
|
33
|
-
preparingPdfDone: "PDF är redo",
|
|
34
|
-
preparingPdfError: "Kunde inte skapa PDF. Pröva igen."
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
name: "DocumentPrint",
|
|
39
|
-
components: {
|
|
40
|
-
CCheckbox: h
|
|
41
|
-
},
|
|
42
|
-
props: {
|
|
43
|
-
document: {
|
|
44
|
-
type: Object,
|
|
45
|
-
required: !0
|
|
46
|
-
},
|
|
47
|
-
isSuperUser: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
required: !1
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
data() {
|
|
53
|
-
return {
|
|
54
|
-
options: {
|
|
55
|
-
appendAttachments: !0,
|
|
56
|
-
hideDocumentAttachmentBlocks: !1,
|
|
57
|
-
showVerification: !0,
|
|
58
|
-
showEvents: !0,
|
|
59
|
-
showLast4ssn: !0,
|
|
60
|
-
forceDoCreatePdf: !1,
|
|
61
|
-
// Only for superuser
|
|
62
|
-
compressImages: !1,
|
|
63
|
-
// Only for superuser
|
|
64
|
-
debugPage: !1,
|
|
65
|
-
// Only for superuser
|
|
66
|
-
extraTimeout: 0
|
|
67
|
-
// Only for superuser
|
|
68
|
-
},
|
|
69
|
-
showMoreOptions: !1,
|
|
70
|
-
omitAttachmentBlockTooltip: {
|
|
71
|
-
content: '<svg style="margin-top: 2px;" width="193" height="122" viewBox="0 0 193 122" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="193" height="122" rx="5" fill="white"/><text fill="black" xml:space="preserve" style="white-space: pre" font-family="Inter" font-size="11" font-weight="bold" letter-spacing="0em"><tspan x="13" y="25.5">' + this.$t("_common:attachment_plural").capitalize() + `</tspan></text><path d="M14 33H25.2941L30 38.225V52H14V33Z" fill="#FFC4C4"/><path opacity="0.34" d="M14 60H25.5L30 64.5V79H14V60Z" fill="#42A4FF"/><text fill="black" xml:space="preserve" style="white-space: pre" font-family="Inter" font-size="11" letter-spacing="0em"><tspan x="41" y="46.5">${this.$t("_common:file").capitalize()} #1</tspan></text><text fill="black" xml:space="preserve" style="white-space: pre" font-family="Inter" font-size="11" letter-spacing="0em"><tspan x="41" y="73.5">${this.$t("_common:file").capitalize()} #2</tspan></text><rect x="13" y="87" width="61" height="12" fill="#E2E2E2"/><rect x="13" y="103" width="168" height="6" fill="#E2E2E2"/><rect x="13" y="112" width="151" height="6" fill="#E2E2E2"/><rect x="13" y="3" width="97" height="6" fill="#E2E2E2"/><rect x="14" y="47" width="16" height="5" fill="#FF1515"/><rect x="14" y="74" width="16" height="5" fill="#42A4FF"/></svg><div style="max-width: 193px; padding: 2px 0 8px 0;">
|
|
72
|
-
${this.$t("hideDocumentAttachmentBlocksTooltip")}
|
|
73
|
-
</div>`,
|
|
74
|
-
placement: "left",
|
|
75
|
-
boundariesElement() {
|
|
76
|
-
return this.$parent.$el;
|
|
77
|
-
},
|
|
78
|
-
html: !0
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
},
|
|
82
|
-
computed: {
|
|
83
|
-
extraTimeout: {
|
|
84
|
-
get() {
|
|
85
|
-
return this.options.extraTimeout || null;
|
|
86
|
-
},
|
|
87
|
-
set(s) {
|
|
88
|
-
s ? this.options.extraTimeout = parseInt(s, 10) : this.options.extraTimeout = 0;
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
allowVerification() {
|
|
92
|
-
return this.document && this.document.allowVerification;
|
|
93
|
-
},
|
|
94
|
-
showAdminOptions() {
|
|
95
|
-
return c.showAdminSettings || this.isSuperUser;
|
|
96
|
-
},
|
|
97
|
-
hasBankIdSignatures() {
|
|
98
|
-
var e;
|
|
99
|
-
const { clients: s, senderClient: t } = this.document;
|
|
100
|
-
return t != null && t.socialNo && ((e = t.answerMethod) == null ? void 0 : e.accept) === "bankId" ? !0 : s.some(
|
|
101
|
-
(i) => {
|
|
102
|
-
var n;
|
|
103
|
-
return i.socialNo && ((n = i.answerMethod) == null ? void 0 : n.accept) === "bankId";
|
|
104
|
-
}
|
|
105
|
-
);
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
created() {
|
|
109
|
-
Object.assign(
|
|
110
|
-
this.options,
|
|
111
|
-
JSON.parse(l.getItem("print-settings"))
|
|
112
|
-
), this.allowVerification || (this.options.showVerification = !1), this.$watch("options", {
|
|
113
|
-
deep: !0,
|
|
114
|
-
handler(s) {
|
|
115
|
-
l.setItem("print-settings", JSON.stringify(s)), !s.showVerification && !s.showEvents && (this.options.showEvents = !0), !s.showVerification && !s.showLast4ssn && (this.options.showLast4ssn = !0);
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
},
|
|
119
|
-
methods: {
|
|
120
|
-
async generatePdf() {
|
|
121
|
-
if (!this.document || !this.document.publicId)
|
|
122
|
-
return;
|
|
123
|
-
const { data: s } = await p.addDocument(this.document.publicId, {
|
|
124
|
-
...this.options,
|
|
125
|
-
brand: c.brand
|
|
126
|
-
// this.$brand not defined on init
|
|
127
|
-
// locale: this.$i18n.locale,
|
|
128
|
-
// timeZone: get(Intl.DateTimeFormat().resolvedOptions(), 'timeZone') || '',
|
|
129
|
-
});
|
|
130
|
-
let t, e;
|
|
131
|
-
const i = async () => {
|
|
132
|
-
const { data: o } = await p.get(s) || {};
|
|
133
|
-
({ status: t, url: e } = o);
|
|
134
|
-
}, n = async () => {
|
|
135
|
-
try {
|
|
136
|
-
if (await i(), t === "canceled")
|
|
137
|
-
throw new Error(
|
|
138
|
-
`Canceled preparing document pdf for publicId: ${this.document.publicId}`
|
|
139
|
-
);
|
|
140
|
-
if (t === "completed" && e) {
|
|
141
|
-
const o = () => {
|
|
142
|
-
const r = window.open(e, "_blank");
|
|
143
|
-
return r ? (r.focus(), !0) : !1;
|
|
144
|
-
};
|
|
145
|
-
return o() || a({
|
|
146
|
-
type: "success",
|
|
147
|
-
message: this.$t("preparingPdfDone"),
|
|
148
|
-
time: null,
|
|
149
|
-
// won't close notification after default 6 sec
|
|
150
|
-
closeButton: !0,
|
|
151
|
-
actions: {
|
|
152
|
-
submit: {
|
|
153
|
-
text: this.$t("_common:download"),
|
|
154
|
-
callback: o
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}), "close";
|
|
158
|
-
}
|
|
159
|
-
return await m(3e3), n();
|
|
160
|
-
} catch (o) {
|
|
161
|
-
return a({
|
|
162
|
-
type: "error",
|
|
163
|
-
message: this.$t("preparingPdfError")
|
|
164
|
-
}), this.$error(o, { showMessage: !1 }), "close";
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
|
-
await a({
|
|
168
|
-
type: "spinner",
|
|
169
|
-
message: this.$t("preparingPdf"),
|
|
170
|
-
time: n,
|
|
171
|
-
closeButton: !0
|
|
172
|
-
}), this.$emit("close");
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
};
|
|
176
|
-
var f = function() {
|
|
177
|
-
var t = this, e = t._self._c;
|
|
178
|
-
return e("div", [e("div", { staticClass: "options-wrapper" }, [e("div", { staticClass: "pb-4 text-lg font-semibold" }, [t._v(t._s(t.$t("title")))]), e("div", { staticClass: "print-options" }, [e("div", { staticClass: "select-none pb-1 text-sm font-medium text-gray-800" }, [t._v(" " + t._s(t.$t("_common:document")) + " ")]), e("div", { staticClass: "option-item" }, [e("div", { staticClass: "option-item__inner bg-gray-100 hover:bg-gray-200", class: { disabled: !t.document.attachedFiles.length }, on: { click: function(i) {
|
|
179
|
-
t.options.appendAttachments = !t.options.appendAttachments;
|
|
180
|
-
} } }, [e("CCheckbox", { staticStyle: { flex: "0 0 30px" }, attrs: { value: t.document.attachedFiles.length ? t.options.appendAttachments : !1, type: "secondary", size: "small" } }), e("div", [e("div", [t._v(t._s(t.$t("appendAttachments")))]), e("div", { staticClass: "has-text-grey-dark", staticStyle: { "font-size": "13px" } }, [t._v(" " + t._s(t.$tc("_common:attachment", { count: t.document.attachedFiles.length })) + " ")])])], 1), e("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.omitAttachmentBlockTooltip, expression: "omitAttachmentBlockTooltip" }] }, [e("div", { staticClass: "option-item__inner border-t-2 border-white bg-gray-100 hover:bg-gray-200", class: {
|
|
181
|
-
disabled: !t.document.getAllNodesWithType("attachments").length
|
|
182
|
-
}, on: { click: function(i) {
|
|
183
|
-
t.options.hideDocumentAttachmentBlocks = !t.options.hideDocumentAttachmentBlocks;
|
|
184
|
-
} } }, [e("CCheckbox", { staticStyle: { flex: "0 0 30px" }, attrs: { value: t.document.getAllNodesWithType("attachments").length ? t.options.hideDocumentAttachmentBlocks : !1, type: "secondary", size: "small" } }), e("div", [e("div", [t._v(t._s(t.$t("hideDocumentAttachmentBlocks")))]), e("div", { staticClass: "has-text-grey-dark", staticStyle: { "font-size": "13px" } }, [t._v(" " + t._s(t.$tc("_common:block", { count: t.document.getAllNodesWithType("attachments").length })) + " ")])])], 1)])]), e("div", { staticStyle: { height: "1.25rem" } }), e("div", { staticClass: "select-none pb-1 text-sm font-medium text-gray-800" }, [t._v(" " + t._s(t.$t("_common:verification").capitalize()) + " ")]), e("div", { staticClass: "option-item", class: { disabled: !t.allowVerification } }, [e("div", { staticClass: "option-item__inner bg-gray-100 hover:bg-gray-200", on: { click: function(i) {
|
|
185
|
-
t.options.showVerification = !t.options.showVerification;
|
|
186
|
-
} } }, [e("CCheckbox", { staticStyle: { flex: "0 0 30px" }, attrs: { value: t.options.showVerification, type: "secondary", size: "small" } }), e("div", [e("div", [t._v(t._s(t.$t("showVerification")))]), e("div", { staticClass: "has-text-grey-dark", staticStyle: { "font-size": "13px" } }, [t._v(" " + t._s(t.$t("showVerificationSub")) + " ")])])], 1), t.options.showVerification ? e("div", { staticClass: "option-item__inner border-t-2 border-white bg-gray-100 pl-8 hover:bg-gray-200", on: { click: function(i) {
|
|
187
|
-
t.options.showEvents = !t.options.showEvents;
|
|
188
|
-
} } }, [e("CCheckbox", { staticStyle: { flex: "0 0 30px" }, attrs: { value: t.options.showEvents, type: "secondary", size: "small" } }), e("div", [e("div", [t._v(t._s(t.$t("showEvents")))])])], 1) : t._e(), t.options.showVerification && t.hasBankIdSignatures ? e("div", [e("div", { staticClass: "mb-1 mt-3 inline-flex cursor-pointer select-none items-center rounded p-2 text-xs font-medium leading-none text-gray-500 hover:bg-gray-100", on: { click: function(i) {
|
|
189
|
-
t.showMoreOptions = !t.showMoreOptions;
|
|
190
|
-
} } }, [t._v(" " + t._s(t.$t("_common:more").capitalize()) + " "), e("CIcon", { staticClass: "ml-0.5 transition-transform", class: { "rotate-90": t.showMoreOptions }, attrs: { type: "chevron-right", "stroke-width": "2.25", size: "12" } })], 1), e("Animation", [t.showMoreOptions ? e("div", { staticClass: "option-item__inner bg-gray-100 hover:bg-gray-200", on: { click: function(i) {
|
|
191
|
-
t.options.showLast4ssn = !t.options.showLast4ssn;
|
|
192
|
-
} } }, [e("CCheckbox", { staticStyle: { flex: "0 0 30px" }, attrs: { value: t.options.showLast4ssn, type: "secondary", size: "small" } }), e("div", [e("div", [t._v(t._s(t.$t("showLast4ssn")))])])], 1) : t._e()])], 1) : t._e()]), t.showAdminOptions ? e("div", [e("div", { staticStyle: { height: "1.25rem" } }), e("div", { staticClass: "select-none pb-1 text-sm font-medium text-gray-800" }, [t._v(" Superuser + VPN ")]), e("div", { staticClass: "option-item__inner border-t-2 border-white bg-gray-100 text-xs opacity-80 hover:bg-gray-200", on: { click: function(i) {
|
|
193
|
-
t.options.forceDoCreatePdf = !t.options.forceDoCreatePdf;
|
|
194
|
-
} } }, [e("CCheckbox", { staticClass: "py-2", attrs: { value: t.options.forceDoCreatePdf, size: "small" } }, [t._v(" Force re-create PDF ")])], 1), e("div", { staticClass: "option-item__inner border-t-2 border-white bg-gray-100 text-xs opacity-80 hover:bg-gray-200", on: { click: function(i) {
|
|
195
|
-
t.options.compressImages = !t.options.compressImages;
|
|
196
|
-
} } }, [e("CCheckbox", { staticStyle: { flex: "0 0 30px" }, attrs: { value: t.options.compressImages, type: "secondary", size: "small" } }), t._m(0)], 1), e("div", { staticClass: "option-item__inner border-t-2 border-white bg-gray-100 text-xs opacity-80 hover:bg-gray-200", on: { click: function(i) {
|
|
197
|
-
t.options.debugPage = !t.options.debugPage;
|
|
198
|
-
} } }, [e("CCheckbox", { staticClass: "py-2", attrs: { value: t.options.debugPage, size: "small" } }, [t._v(" Debug page output ")])], 1), e("div", { staticClass: "border-t-2 border-white bg-gray-100 text-xs opacity-80 hover:bg-gray-200" }, [e("CInput", { attrs: { type: "number", filled: "", size: "small", placeholder: "Optional extra timeout (ms)" }, model: { value: t.extraTimeout, callback: function(i) {
|
|
199
|
-
t.extraTimeout = t._n(i);
|
|
200
|
-
}, expression: "extraTimeout" } })], 1)]) : t._e()])]), e("CButton", { attrs: { type: "secondary", size: "medium", wide: "" }, on: { click: t.generatePdf } }, [t._v(" " + t._s(t.$t("buttonText")) + " ")])], 1);
|
|
201
|
-
}, g = [function() {
|
|
202
|
-
var s = this, t = s._self._c;
|
|
203
|
-
return t("div", [t("div", [s._v("Compress images")])]);
|
|
204
|
-
}], v = /* @__PURE__ */ d(
|
|
205
|
-
u,
|
|
206
|
-
f,
|
|
207
|
-
g,
|
|
208
|
-
!1,
|
|
209
|
-
null,
|
|
210
|
-
"6fa28161"
|
|
211
|
-
);
|
|
212
|
-
const b = v.exports, w = {
|
|
213
|
-
name: "DocPrint",
|
|
214
|
-
components: {
|
|
215
|
-
DocumentPrint: b
|
|
216
|
-
},
|
|
217
|
-
props: {
|
|
218
|
-
document: {
|
|
219
|
-
type: Object,
|
|
220
|
-
required: !0
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
var y = function() {
|
|
225
|
-
var t = this, e = t._self._c;
|
|
226
|
-
return e("div", { staticClass: "h-full w-full overflow-auto px-8 py-12" }, [e("DocumentPrint", { attrs: { document: t.document }, on: { close: function(i) {
|
|
227
|
-
return t.$router.push("/");
|
|
228
|
-
} } })], 1);
|
|
229
|
-
}, _ = [], x = /* @__PURE__ */ d(
|
|
230
|
-
w,
|
|
231
|
-
y,
|
|
232
|
-
_,
|
|
233
|
-
!1,
|
|
234
|
-
null,
|
|
235
|
-
null
|
|
236
|
-
);
|
|
237
|
-
const C = x.exports;
|
|
238
|
-
export {
|
|
239
|
-
C as default
|
|
240
|
-
};
|
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
import { C as g, a as _ } from "./CDropdownItem-CN7gSfgY.js";
|
|
2
|
-
import { g as p, n as u } from "./main-BL_yzf2r.js";
|
|
3
|
-
import { m as f, a as x } from "./vuex.esm-DKGl8mcw.js";
|
|
4
|
-
const h = {
|
|
5
|
-
sv: {
|
|
6
|
-
title: "Verifikat på signering",
|
|
7
|
-
waitingForSign: "Väntar på signatur",
|
|
8
|
-
signMethod: "Signeringsmetod",
|
|
9
|
-
remaining: "{{count}} st signaturer kvarstår innan dokumentet är helt signerat.",
|
|
10
|
-
confirmChangeMessage: "Vill du verkligen byta signeringsmetod för {{- name}}?",
|
|
11
|
-
bankIdHint: "Identifiering och signering säkerställd med BankID."
|
|
12
|
-
},
|
|
13
|
-
en: {
|
|
14
|
-
title: "Signature verification",
|
|
15
|
-
waitingForSign: "Waiting for signature",
|
|
16
|
-
signMethod: "Sign method",
|
|
17
|
-
remaining: "{{count}} signatures are remaining before the document is completely signed.",
|
|
18
|
-
confirmChangeMessage: "Do you really want to change sign method for {{- name}}?",
|
|
19
|
-
bankIdHint: "Identity and signature confirmed with BankID"
|
|
20
|
-
}
|
|
21
|
-
}, y = {
|
|
22
|
-
name: "DocumentReceipt",
|
|
23
|
-
i18nOptions: {
|
|
24
|
-
namespaces: "documentReceipt",
|
|
25
|
-
messages: h
|
|
26
|
-
},
|
|
27
|
-
components: {
|
|
28
|
-
CDropdown: g,
|
|
29
|
-
CDropdownItem: _
|
|
30
|
-
},
|
|
31
|
-
props: {
|
|
32
|
-
document: {
|
|
33
|
-
type: Object,
|
|
34
|
-
required: !0
|
|
35
|
-
},
|
|
36
|
-
allowSignMethodUpdate: {
|
|
37
|
-
type: Boolean,
|
|
38
|
-
default: !0
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
computed: {
|
|
42
|
-
...f({
|
|
43
|
-
feature: "application/feature"
|
|
44
|
-
}),
|
|
45
|
-
signees() {
|
|
46
|
-
const { senderClient: a, clients: t } = this.document;
|
|
47
|
-
return [
|
|
48
|
-
...a ? [a] : [],
|
|
49
|
-
...(t || []).map((n, s) => ({ ...n, index: s }))
|
|
50
|
-
].filter(
|
|
51
|
-
(n) => {
|
|
52
|
-
var s;
|
|
53
|
-
return ["signee", "approver"].includes(n.documentRole) || ((s = n.answer) == null ? void 0 : s.didAccept);
|
|
54
|
-
}
|
|
55
|
-
).map(
|
|
56
|
-
({
|
|
57
|
-
name: n = "",
|
|
58
|
-
companyName: s,
|
|
59
|
-
email: o,
|
|
60
|
-
socialNo: c = null,
|
|
61
|
-
answerMethod: i,
|
|
62
|
-
answer: d,
|
|
63
|
-
documentRole: m,
|
|
64
|
-
index: l
|
|
65
|
-
}) => ({
|
|
66
|
-
name: n || s || o,
|
|
67
|
-
socialNo: c,
|
|
68
|
-
method: (i == null ? void 0 : i.accept) || "",
|
|
69
|
-
documentRole: m,
|
|
70
|
-
...d,
|
|
71
|
-
index: l
|
|
72
|
-
})
|
|
73
|
-
);
|
|
74
|
-
},
|
|
75
|
-
waitingFor() {
|
|
76
|
-
return this.document.recipients.reduce(
|
|
77
|
-
(a, t) => {
|
|
78
|
-
var e;
|
|
79
|
-
return t.answer || !["signee", "approver"].includes(t.documentRole) || ((e = t.answerMethod) == null ? void 0 : e.accept) === "inPerson" ? a : [...a, t];
|
|
80
|
-
},
|
|
81
|
-
[]
|
|
82
|
-
);
|
|
83
|
-
},
|
|
84
|
-
documentName() {
|
|
85
|
-
return this.document.name || "";
|
|
86
|
-
},
|
|
87
|
-
sentByName() {
|
|
88
|
-
var a, t;
|
|
89
|
-
return ((t = (a = this.document.sender) == null ? void 0 : a.user) == null ? void 0 : t.name) || "";
|
|
90
|
-
},
|
|
91
|
-
signOptions() {
|
|
92
|
-
var a;
|
|
93
|
-
return ((a = this.document) == null ? void 0 : a.signOptions) || [];
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
methods: {
|
|
97
|
-
...x({
|
|
98
|
-
showMessage: p.SHOW_MESSAGE,
|
|
99
|
-
updateDocument: p.UPDATE_DOCUMENT2
|
|
100
|
-
}),
|
|
101
|
-
getIconType(a) {
|
|
102
|
-
return a === "signee" ? "pen-tool" : a === "recipient" ? "eye" : a === "approver" ? "check" : "shield";
|
|
103
|
-
},
|
|
104
|
-
getBrowserString({ browser: a, os: t, device: e }) {
|
|
105
|
-
return [a == null ? void 0 : a.name, t == null ? void 0 : t.name, e == null ? void 0 : e.model].filter((n) => !!n).join(", ");
|
|
106
|
-
},
|
|
107
|
-
onUpdate(a, t) {
|
|
108
|
-
this.showMessage({
|
|
109
|
-
displayType: "dialog",
|
|
110
|
-
type: "secondary",
|
|
111
|
-
title: this.$t("_common:change", {
|
|
112
|
-
thing: this.$t("_common:signMethod.title").toLowerCase()
|
|
113
|
-
}),
|
|
114
|
-
message: this.$t("confirmChangeMessage", { name: a.name }),
|
|
115
|
-
actions: {
|
|
116
|
-
cancel: {
|
|
117
|
-
text: this.$t("_common:cancel"),
|
|
118
|
-
callback: "cancel"
|
|
119
|
-
},
|
|
120
|
-
submit: {
|
|
121
|
-
text: this.$t("actions:updateDocumentDialog.submit"),
|
|
122
|
-
callback: () => this.updateSignMethod(a.index, t)
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
},
|
|
127
|
-
async updateSignMethod(a, t) {
|
|
128
|
-
const { id: e } = this.document || {}, n = { [`clients.${a}.answerMethod.accept`]: t };
|
|
129
|
-
await this.updateDocument({
|
|
130
|
-
id: e,
|
|
131
|
-
body: n,
|
|
132
|
-
params: { type: "paths" }
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
var b = function() {
|
|
138
|
-
var t = this, e = t._self._c;
|
|
139
|
-
return e("div", { staticClass: "rounded-lg border border-gray-200 bg-gray-100 px-1 pb-1 pt-4 text-gray-600" }, [e("div", { staticClass: "relative mb-1 leading-5" }, [e("div", { staticClass: "pb-1 pl-4" }, [e("div", { staticClass: "font-medium text-black" }, [t._v(t._s(t.$t("title")))]), e("div", { staticClass: "data-label" }, [t._v(t._s(t.documentName))]), e("div", { staticClass: "grid grid-cols-3 gap-2 pb-1 pt-4", staticStyle: { "grid-template-columns": "repeat(auto-fit, minmax(200px, 1fr))" } }, [t._l([
|
|
140
|
-
[t.$t("_common:sentByName"), t.sentByName],
|
|
141
|
-
[
|
|
142
|
-
t.$t("_components:status.sent"),
|
|
143
|
-
t.$formatDate(t.document.sentAt, "Pp")
|
|
144
|
-
],
|
|
145
|
-
[
|
|
146
|
-
t.$t("_components:replyBy"),
|
|
147
|
-
t.document.status === "sent" && t.$formatDate(t.document.expiresAt)
|
|
148
|
-
],
|
|
149
|
-
[
|
|
150
|
-
t.$t("_components:status.accepted"),
|
|
151
|
-
t.$formatDate(t.document.acceptedAt, "Pp")
|
|
152
|
-
]
|
|
153
|
-
], function([n, s], o) {
|
|
154
|
-
return [s ? e("div", { key: o }, [e("div", { staticClass: "text-xs text-gray-900", domProps: { textContent: t._s(n) } }), e("div", { staticClass: "mr-1.5 text-gray-600", domProps: { textContent: t._s(s) } })]) : t._e()];
|
|
155
|
-
})], 2)]), t.waitingFor.length ? e("div", { staticClass: "ml-3 mt-2 inline-flex items-center rounded-full border border-orange-200/90 bg-orange-50 px-1 py-0.5 text-xs font-medium text-black/80" }, [e("CIcon", { staticClass: "text-orange-500/80", attrs: { type: "info", size: "14" } }), e("div", { staticClass: "px-1.5" }, [t._v(" " + t._s(t.$t("remaining", { count: t.waitingFor.length })) + " ")])], 1) : t._e(), e("CIcon", { staticClass: "absolute right-5 top-1 text-gray-500", attrs: { type: "lock", size: "18" } })], 1), e("div", { staticClass: "flex flex-col gap-2 p-2" }, t._l(t.signees, function(n, s) {
|
|
156
|
-
var o, c;
|
|
157
|
-
return e("div", { key: s, staticClass: "relative rounded-md border border-gray-200 bg-white text-gray-700" }, [e("div", { staticClass: "px-4 py-3" }, [n.didAccept && n.method === "bankId" ? e("CIcon", { staticClass: "absolute right-4 top-3", attrs: { type: "bankIdColor", size: "22" } }) : n.didAccept ? e("CIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.$t(`_common:documentRole.${n.documentRole}.label`), expression: "$t(`_common:documentRole.${signee.documentRole}.label`)" }], staticClass: "lock-icon absolute right-6 top-4 opacity-70", attrs: { size: 18, type: t.getIconType(n.documentRole) } }) : t._e(), n.didAccept === !1 ? e("div", { staticClass: "absolute right-3 top-3 inline-flex rounded-full border border-red-400/50 bg-red-200 px-2 py-0.5 text-xs font-medium text-red-700" }, [t._v(" " + t._s(t.$t("_common:denied").capitalize()) + " ")]) : !n.didAccept && n.method !== "inPerson" ? e("div", { staticClass: "absolute right-3 top-3 inline-flex rounded-full border border-orange-200/70 bg-orange-50 px-2 py-0.5 text-xs font-medium text-black/80" }, [t._v(" " + t._s(t.$t("waitingForSign")) + " ")]) : t._e(), e("div", { staticClass: "pb-1 text-[15px] font-medium text-black" }, [t._v(" " + t._s(((o = n.response) == null ? void 0 : o.name) || n.name) + " ")]), e("div", { staticClass: "grid grid-cols-3 gap-2 py-1", staticStyle: { "grid-template-columns": "repeat(auto-fit, minmax(190px, 1fr))" } }, [t._l([
|
|
158
|
-
[t.$t("_common:socialNo").capitalize(), n.socialNo],
|
|
159
|
-
[
|
|
160
|
-
t.$t("signMethod"),
|
|
161
|
-
t.$t(`_common:signMethod.${n.method}`),
|
|
162
|
-
"signMethod"
|
|
163
|
-
],
|
|
164
|
-
[
|
|
165
|
-
`${t.$t("_common:date").capitalize()} & ${t.$t("_common:time")}`,
|
|
166
|
-
t.$formatDate(n.didAnswerAt, "Pp")
|
|
167
|
-
],
|
|
168
|
-
["IP-" + t.$t("_common:address"), n.ip],
|
|
169
|
-
[
|
|
170
|
-
`${t.$t("_common:browser")}, OS & ${t.$t("_common:device")}`,
|
|
171
|
-
t.getBrowserString(n)
|
|
172
|
-
]
|
|
173
|
-
], function([i, d, m], l) {
|
|
174
|
-
return [d ? e("div", { key: l, staticClass: "text-[13px]" }, [e("div", { staticClass: "text-gray-900", domProps: { textContent: t._s(i) } }), e("div", { staticClass: "flex items-center" }, [e("div", { staticClass: "mr-1.5 text-gray-500", domProps: { textContent: t._s(d) } }), m === "signMethod" && n.method && t.allowSignMethodUpdate && t.signOptions.length > 1 && t.document.status !== "accepted" && n.didAccept === void 0 ? e("CDropdown", { attrs: { "append-to-body": !0, "menu-styling": { width: "180px" } }, scopedSlots: t._u([{ key: "trigger", fn: function() {
|
|
175
|
-
return [e("div", { staticClass: "text-primary-500 text-xs font-medium underline", domProps: { textContent: t._s(t.$t("_common:change")) } })];
|
|
176
|
-
}, proxy: !0 }], null, !0) }, t._l(t.signOptions, function(r) {
|
|
177
|
-
return e("CDropdownItem", { key: r, attrs: { "icon-right": n.method === r ? "check" : "" }, on: { click: function(S) {
|
|
178
|
-
n.method !== r && t.onUpdate(n, r);
|
|
179
|
-
} } }, [t._v(" " + t._s(t.$t(`_common:signMethod.${r}`)) + " ")]);
|
|
180
|
-
}), 1) : t._e()], 1)]) : t._e()];
|
|
181
|
-
})], 2)], 1), n.signatureDataURL ? e("div", { staticClass: "mx-4 h-20 border-t border-gray-100 py-6" }, [e("img", { staticClass: "h-full", attrs: { src: n.signatureDataURL } })]) : n.didAccept && n.method === "bankId" ? e("div", { staticClass: "mx-4 mb-4 flex items-center rounded-md bg-gray-300 p-1.5 text-white/90", staticStyle: { border: "1px solid #35677e" }, style: "background: linear-gradient(45deg,hsl(200deg 35% 17%),hsl(199deg 25% 30%));" }, [e("div", { staticClass: "ml-0.5 mr-2 flex h-9 w-9 items-center justify-center rounded-md border border-[#275369] bg-[#183e4f]" }, [e("CIcon", { attrs: { type: "bankId", size: "22" } })], 1), e("div", [e("div", { staticClass: "text-xs font-medium", domProps: { textContent: t._s(t.$t("bankIdHint")) } }), e("div", { staticClass: "text-xs opacity-70" }, [t._v(" " + t._s(((c = n.response) == null ? void 0 : c.name) || n.name) + " · " + t._s(n.socialNo) + " ")])])]) : t._e()]);
|
|
182
|
-
}), 0)]);
|
|
183
|
-
}, v = [], C = /* @__PURE__ */ u(
|
|
184
|
-
y,
|
|
185
|
-
b,
|
|
186
|
-
v,
|
|
187
|
-
!1,
|
|
188
|
-
null,
|
|
189
|
-
null
|
|
190
|
-
);
|
|
191
|
-
const $ = C.exports, k = {
|
|
192
|
-
name: "DocReceipt",
|
|
193
|
-
components: {
|
|
194
|
-
DocumentReceipt: $
|
|
195
|
-
},
|
|
196
|
-
props: {
|
|
197
|
-
document: {
|
|
198
|
-
type: Object,
|
|
199
|
-
required: !0
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
var w = function() {
|
|
204
|
-
var t = this, e = t._self._c;
|
|
205
|
-
return e("div", [e("DocumentReceipt", { attrs: { document: t.document, "allow-sign-method-update": !1 } })], 1);
|
|
206
|
-
}, D = [], I = /* @__PURE__ */ u(
|
|
207
|
-
k,
|
|
208
|
-
w,
|
|
209
|
-
D,
|
|
210
|
-
!1,
|
|
211
|
-
null,
|
|
212
|
-
null
|
|
213
|
-
);
|
|
214
|
-
const P = I.exports;
|
|
215
|
-
export {
|
|
216
|
-
P as default
|
|
217
|
-
};
|