@cling-se/widget 0.17.2 → 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-CKRgncWy.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-Bd-HZuYo.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-DFid7uKr.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-EO0rsTmx.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-CbYLDVU5.js → Index-CQwmu4f1.js} +47 -60
- package/dist/Index-CXchTpBa.js +74 -0
- package/dist/{Index-BzcZCdHj.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-BdJbs8bM.js → Index-DPDzMKQa.js} +10 -18
- package/dist/Index-DvxSig3z.js +25 -0
- package/dist/Index-Dzrn3Y6p.js +16 -0
- package/dist/{Index-BWnh94_i.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-D8Blua5a.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-Bg9FwkW0.js → SearchApi-Y1fDQn0u.js} +37 -49
- package/dist/SendForm-B9l24WwR.js +6689 -0
- package/dist/Setup-DyzbPFM4.js +47 -0
- package/dist/{SmartList-DofjZjfy.js → SmartList-CWGKoAJh.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-C2Gwp6Q-.js +1349 -0
- package/dist/{TermsSettings-B4glHd0I.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-DVCJIsb_.js → focusDrawerMixin-BVbTYOGr.js} +1 -1
- package/dist/{formDrawerState-BYsq1pB0.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-C4cIGu3m.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-CMs9ODO8.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-TF4dWJwb.js +0 -48
- package/dist/AnswerModal-CLHDa2TD.js +0 -3879
- package/dist/AttachmentItem-ICP5nbhT.js +0 -85
- package/dist/BaseDatePicker-wwmiz_b5.js +0 -3187
- package/dist/BaseUpload-CDZOjohX.js +0 -1977
- package/dist/BlockMedia-D1JAYF9F.js +0 -76
- package/dist/CCallout-dAjcZXrm.js +0 -58
- package/dist/CDropdownItem-CkSNbSdj.js +0 -640
- package/dist/CFormField-Dw6UM1u6.js +0 -240
- package/dist/CPhoneInput-Dd6cJ4jg.js +0 -138
- package/dist/CPriceInput-CjV95s8E.js +0 -116
- package/dist/CSelect-izVnsQME.js +0 -91
- package/dist/CSkeleton-C0TjtLtY.js +0 -55
- package/dist/ClientAutocomplete-Cfu3abEx.js +0 -438
- package/dist/ClientModal-DjSoPQ9x.js +0 -666
- package/dist/ColorPicker-DZP6FIdn.js +0 -2879
- package/dist/CompanyModal-BYQWdbhG.js +0 -147
- package/dist/ContentWrapper-Bci9pSEp.js +0 -190
- package/dist/CoverBlockSettings-wD55bj3k.js +0 -659
- package/dist/DocAnswer-B5q-ntKP.js +0 -36
- package/dist/DocDetails-BQuaNZ4b.js +0 -263
- package/dist/DocForm-QzZ5wqsS.js +0 -5017
- package/dist/DocFormSend-CORtQPhb.js +0 -146
- package/dist/DocLinks-DZPzODUe.js +0 -38
- package/dist/DocModalBase-TTALjv6K.js +0 -28
- package/dist/DocPrint-BB-KT9ut.js +0 -240
- package/dist/DocReceipt-CGks1GLS.js +0 -217
- package/dist/DocSendReminder-BBQXJbsV.js +0 -140
- package/dist/DocTimeline-4jnYDmBI.js +0 -485
- package/dist/DocumentClient-BAAX7Dxk.js +0 -136
- package/dist/DocumentLayout-C4edCFmr.js +0 -4880
- package/dist/DocumentLogotype-i7YSQKcH.js +0 -92
- package/dist/DocumentVoided-BvZoMFB_.js +0 -25
- package/dist/EmbedInput-Bij7ER30.js +0 -117
- package/dist/EmbedSettings-D0oyq4-9.js +0 -74
- package/dist/ErrorCallout-CsW3WTZp.js +0 -27
- package/dist/FilePreviewModal-Doaawg0l.js +0 -81
- package/dist/Flag-C4Mf2xUU.js +0 -46
- package/dist/HeaderSettings-DwZ54IsK.js +0 -440
- package/dist/ImageSelectModal-ClFJ5uXM.js +0 -86
- package/dist/ImageUploadWrapper-DtEp_Pg3.js +0 -1604
- package/dist/Index-2MwnGZ_4.js +0 -25
- package/dist/Index-3CwdeytO.js +0 -107
- package/dist/Index-B-bSVOoh.js +0 -73
- package/dist/Index-BDyMp1ib.js +0 -643
- package/dist/Index-BMgtwHVA.js +0 -24
- package/dist/Index-BTD3hWbY.js +0 -54
- package/dist/Index-BUbd06rz.js +0 -144
- package/dist/Index-Bv2XrpgK.js +0 -25
- package/dist/Index-C00Ay-7P.js +0 -62
- package/dist/Index-CHL_6WQH.js +0 -66
- package/dist/Index-CLyNrkJA.js +0 -28
- package/dist/Index-CV57PvUE.js +0 -26
- package/dist/Index-Crj4apcP.js +0 -146
- package/dist/Index-CryBgLTa.js +0 -294
- package/dist/Index-Cv33nreP.js +0 -33
- package/dist/Index-D0ErQJ2M.js +0 -2445
- package/dist/Index-D8ZnVbsP.js +0 -32
- package/dist/Index-DPNIJewY.js +0 -56
- package/dist/Index-DVXhB0Ja.js +0 -58
- package/dist/Index-DWhQwxeB.js +0 -94
- package/dist/Index-DX7tomhl.js +0 -230
- package/dist/Index-D_AdmLWe.js +0 -41
- package/dist/Index-DgTQzlfK.js +0 -754
- package/dist/Index-DhapmO-4.js +0 -55
- package/dist/Index-DjC8joRt.js +0 -150
- package/dist/Index-Dv4l4LKF.js +0 -154
- package/dist/Index-TTFKPIIC.js +0 -84
- package/dist/Index-cT8oYfLR.js +0 -41
- package/dist/Index-igPwrQMu.js +0 -77
- package/dist/InputToggleRow-BgOubdXs.js +0 -57
- package/dist/ManualPopover-8suun-i9.js +0 -60
- package/dist/MediaWrapper-BadblLbS.js +0 -23
- package/dist/PackageGroup-BxmqH6qI.js +0 -704
- package/dist/PdfTerms-C6MRk0Ix.js +0 -31
- package/dist/PdfViewer-DUoiQx_1.js +0 -383
- package/dist/PlainHtml-DZ9V0Yuf.js +0 -27
- package/dist/PriceHeader-C3_CoKrL.js +0 -338
- package/dist/SendForm-D-OvqCee.js +0 -1023
- package/dist/Setup-CwK4er2y.js +0 -50
- package/dist/ThemeColorRow-BplIaxA2.js +0 -69
- package/dist/ToggleBinding-6ntt38Ye.js +0 -42
- package/dist/UploadModal-B6jQzsYA.js +0 -95
- package/dist/VideoPlayerInput-ryP77WC0.js +0 -97
- package/dist/VideoPlayerSettings-DJh0JNRI.js +0 -61
- package/dist/VideoSelectModal-8udQ394X.js +0 -104
- package/dist/answerDocumentMixin-CF4J_vsp.js +0 -51
- package/dist/debounce-CgyZi04Q.js +0 -84
- package/dist/formValidationMixin-Dq7aZhBk.js +0 -49
- package/dist/index-2Q8Ejpof.js +0 -167
- package/dist/index-B5-izJkt.js +0 -102
- package/dist/index-BQb6k0M8.js +0 -351
- package/dist/index-CR-KQfRE.js +0 -81
- package/dist/index-CogHiXWx.js +0 -2700
- package/dist/index-lZ1sSNWc.js +0 -492
- package/dist/main-BpqUyMpC.js +0 -57349
- package/dist/mapFormMixin-rxtAFyFK.js +0 -3028
- package/dist/omit-C7FeydiO.js +0 -31
- package/dist/simplebar.min-Dm388s-3.js +0 -71
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/style.css +0 -4
- package/dist/throttle-CfcsX8nA.js +0 -18
- package/dist/tippy.esm-C9mV-Rzr.js +0 -1805
- package/dist/vuedraggable.umd-CChGnToh.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { S as f } from "./SendForm-B9l24WwR.js";
|
|
2
|
+
import { _ as h, r as v, m as w, a as y, g as S, C as p, c as D, w as c, b as l, d as _, e as u, o as a, f as i } from "./main-Bn5XkQPb.js";
|
|
3
|
+
const s = v({
|
|
4
|
+
canEdit: !1,
|
|
5
|
+
isForm: !0,
|
|
6
|
+
setFormValue: null,
|
|
7
|
+
removeFormValue: null
|
|
8
|
+
}), F = {
|
|
9
|
+
name: "DocFormSend",
|
|
10
|
+
components: {
|
|
11
|
+
SendForm: f
|
|
12
|
+
},
|
|
13
|
+
provide: () => ({ viewSettings: s, 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
|
+
...w({
|
|
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 && (s.setFormValue = this.setDocValue), this.removeDocValue && (s.removeFormValue = this.removeDocValue);
|
|
90
|
+
},
|
|
91
|
+
methods: {
|
|
92
|
+
...y({
|
|
93
|
+
saveDocument: S.SAVE_DYNDOC_FORM
|
|
94
|
+
// loadCompanyUser: global.LOAD_COMPANY_USER,
|
|
95
|
+
}),
|
|
96
|
+
async initDoc() {
|
|
97
|
+
if (!this.rawDoc) throw new Error("Missing initiated form document");
|
|
98
|
+
this.document = new p({
|
|
99
|
+
data: this.rawDoc,
|
|
100
|
+
can: this.can,
|
|
101
|
+
getters: this.$store.getters,
|
|
102
|
+
updateSender: !0
|
|
103
|
+
});
|
|
104
|
+
},
|
|
105
|
+
setDocValue({ key: t, value: o }) {
|
|
106
|
+
return this.setFormValue({ key: t, value: o });
|
|
107
|
+
},
|
|
108
|
+
removeDocValue(t) {
|
|
109
|
+
return this.removeFormValue(t);
|
|
110
|
+
},
|
|
111
|
+
async onSaveDocument({ doSend: t = !1 } = {}) {
|
|
112
|
+
let o = !1;
|
|
113
|
+
typeof this.beforeSave == "function" && (o = await this.beforeSave(this.document)), t && typeof this.beforeSend == "function" && (o = await this.beforeSend(this.document)), !(o || !await this.saveDocument({ doSend: t })) && this.close();
|
|
114
|
+
},
|
|
115
|
+
close() {
|
|
116
|
+
this.closeFunc();
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}, V = ["innerHTML"], g = ["innerHTML"], M = {
|
|
120
|
+
key: 1,
|
|
121
|
+
class: "grid h-full w-full place-items-center"
|
|
122
|
+
};
|
|
123
|
+
function C(t, o, e, b, r, n) {
|
|
124
|
+
const m = u("SendForm"), d = u("CIcon");
|
|
125
|
+
return r.document ? (a(), D(m, {
|
|
126
|
+
key: 0,
|
|
127
|
+
_document: r.document,
|
|
128
|
+
_value: {
|
|
129
|
+
expiresAt: "data.expiresAt",
|
|
130
|
+
personalMessage: "data.personalMessage",
|
|
131
|
+
defaultAnswerMethod: "data.defaultAnswerMethod",
|
|
132
|
+
clients: "clients",
|
|
133
|
+
reminders: "data.reminders",
|
|
134
|
+
name: "data.name"
|
|
135
|
+
},
|
|
136
|
+
"show-name": e.showName,
|
|
137
|
+
"show-save": e.showSave,
|
|
138
|
+
"show-schedule": e.showSchedule,
|
|
139
|
+
"allow-edit-clients": e.allowEditClients,
|
|
140
|
+
"allow-manual-delivery": e.allowManualDelivery,
|
|
141
|
+
"set-form-value": n.setDocValue,
|
|
142
|
+
"remove-form-value": n.removeDocValue,
|
|
143
|
+
"on-save-document": n.onSaveDocument,
|
|
144
|
+
"use-scroll": "",
|
|
145
|
+
class: "h-full w-full"
|
|
146
|
+
}, {
|
|
147
|
+
content: c(() => [
|
|
148
|
+
e.contentSlot ? (a(), l("div", {
|
|
149
|
+
key: 0,
|
|
150
|
+
innerHTML: e.contentSlot
|
|
151
|
+
}, null, 8, V)) : i("", !0)
|
|
152
|
+
]),
|
|
153
|
+
footer: c(() => [
|
|
154
|
+
e.footerSlot ? (a(), l("div", {
|
|
155
|
+
key: 0,
|
|
156
|
+
innerHTML: e.footerSlot
|
|
157
|
+
}, null, 8, g)) : i("", !0)
|
|
158
|
+
]),
|
|
159
|
+
_: 1
|
|
160
|
+
}, 8, ["_document", "show-name", "show-save", "show-schedule", "allow-edit-clients", "allow-manual-delivery", "set-form-value", "remove-form-value", "on-save-document"])) : (a(), l("div", M, [
|
|
161
|
+
_(d, {
|
|
162
|
+
type: "loader",
|
|
163
|
+
class: "animate-spin text-gray-400",
|
|
164
|
+
size: 28
|
|
165
|
+
})
|
|
166
|
+
]));
|
|
167
|
+
}
|
|
168
|
+
const x = /* @__PURE__ */ h(F, [["render", C]]);
|
|
169
|
+
export {
|
|
170
|
+
x as default
|
|
171
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { C as s } from "./index-Bd8_ZHHq.js";
|
|
2
|
+
import { _ as t, b as c, d as l, e as i, o as r } from "./main-Bn5XkQPb.js";
|
|
3
|
+
const a = {
|
|
4
|
+
name: "DocLinks",
|
|
5
|
+
components: {
|
|
6
|
+
ClientLinks: s
|
|
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
|
+
}, u = { class: "h-full w-full overflow-auto" };
|
|
24
|
+
function d(m, p, e, _, f, o) {
|
|
25
|
+
const n = i("ClientLinks");
|
|
26
|
+
return r(), c("div", u, [
|
|
27
|
+
l(n, {
|
|
28
|
+
id: e.document.id,
|
|
29
|
+
onClose: o.close
|
|
30
|
+
}, null, 8, ["id", "onClose"])
|
|
31
|
+
]);
|
|
32
|
+
}
|
|
33
|
+
const h = /* @__PURE__ */ t(a, [["render", d]]);
|
|
34
|
+
export {
|
|
35
|
+
h as default
|
|
36
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { _ as n, e as c, o as s, b as l, c as r, f as d, S as p } from "./main-Bn5XkQPb.js";
|
|
2
|
+
const i = {
|
|
3
|
+
name: "DocModalBase",
|
|
4
|
+
components: {},
|
|
5
|
+
emits: ["close"],
|
|
6
|
+
props: {
|
|
7
|
+
showClose: {
|
|
8
|
+
type: Boolean,
|
|
9
|
+
default: !1
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}, m = { class: "doc-modal-base" };
|
|
13
|
+
function u(e, o, t, _, f, B) {
|
|
14
|
+
const a = c("CButton");
|
|
15
|
+
return s(), l("div", m, [
|
|
16
|
+
t.showClose ? (s(), r(a, {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "absolute right-4 top-4 text-gray-500",
|
|
19
|
+
circle: "",
|
|
20
|
+
icon: "x",
|
|
21
|
+
onClick: o[0] || (o[0] = (C) => e.$emit("close"))
|
|
22
|
+
})) : d("", !0),
|
|
23
|
+
p(e.$slots, "default", {}, void 0, !0)
|
|
24
|
+
]);
|
|
25
|
+
}
|
|
26
|
+
const k = /* @__PURE__ */ n(i, [["render", u], ["__scopeId", "data-v-722dcbc7"]]);
|
|
27
|
+
export {
|
|
28
|
+
k as D
|
|
29
|
+
};
|
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
import { _ as C, a7 as I, p as D, a4 as P, av as _, aw as k, o as p, b as m, s as o, v as l, n as w, d as r, E as V, f as y, B as b, w as x, e as h, a2 as B, ax as E } from "./main-Bn5XkQPb.js";
|
|
2
|
+
const z = {
|
|
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: I
|
|
41
|
+
},
|
|
42
|
+
emits: ["close"],
|
|
43
|
+
props: {
|
|
44
|
+
document: {
|
|
45
|
+
type: Object,
|
|
46
|
+
required: !0
|
|
47
|
+
},
|
|
48
|
+
isSuperUser: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
required: !1
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
data() {
|
|
54
|
+
return {
|
|
55
|
+
options: {
|
|
56
|
+
appendAttachments: !0,
|
|
57
|
+
hideDocumentAttachmentBlocks: !1,
|
|
58
|
+
showVerification: !0,
|
|
59
|
+
showEvents: !0,
|
|
60
|
+
showLast4ssn: !0,
|
|
61
|
+
forceDoCreatePdf: !1,
|
|
62
|
+
// Only for superuser
|
|
63
|
+
compressImages: !1,
|
|
64
|
+
// Only for superuser
|
|
65
|
+
debugPage: !1,
|
|
66
|
+
// Only for superuser
|
|
67
|
+
extraTimeout: 0
|
|
68
|
+
// Only for superuser
|
|
69
|
+
},
|
|
70
|
+
showMoreOptions: !1,
|
|
71
|
+
omitAttachmentBlockTooltip: {
|
|
72
|
+
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;">
|
|
73
|
+
${this.$t("hideDocumentAttachmentBlocksTooltip")}
|
|
74
|
+
</div>`,
|
|
75
|
+
placement: "left",
|
|
76
|
+
html: !0
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
computed: {
|
|
81
|
+
extraTimeout: {
|
|
82
|
+
get() {
|
|
83
|
+
return this.options.extraTimeout || null;
|
|
84
|
+
},
|
|
85
|
+
set(s) {
|
|
86
|
+
s ? this.options.extraTimeout = parseInt(s, 10) : this.options.extraTimeout = 0;
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
allowVerification() {
|
|
90
|
+
return this.document && this.document.allowVerification;
|
|
91
|
+
},
|
|
92
|
+
showAdminOptions() {
|
|
93
|
+
return D.showAdminSettings || this.isSuperUser;
|
|
94
|
+
},
|
|
95
|
+
hasBankIdSignatures() {
|
|
96
|
+
var i;
|
|
97
|
+
const { clients: s, senderClient: e } = this.document;
|
|
98
|
+
return e != null && e.socialNo && ((i = e.answerMethod) == null ? void 0 : i.accept) === "bankId" ? !0 : s.some(
|
|
99
|
+
(u) => {
|
|
100
|
+
var t;
|
|
101
|
+
return u.socialNo && ((t = u.answerMethod) == null ? void 0 : t.accept) === "bankId";
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
created() {
|
|
107
|
+
Object.assign(
|
|
108
|
+
this.options,
|
|
109
|
+
JSON.parse(P.getItem("print-settings"))
|
|
110
|
+
), this.allowVerification || (this.options.showVerification = !1), this.$watch("options", {
|
|
111
|
+
deep: !0,
|
|
112
|
+
handler(s) {
|
|
113
|
+
P.setItem("print-settings", JSON.stringify(s)), !s.showVerification && !s.showEvents && (this.options.showEvents = !0), !s.showVerification && !s.showLast4ssn && (this.options.showLast4ssn = !0);
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
},
|
|
117
|
+
methods: {
|
|
118
|
+
async generatePdf() {
|
|
119
|
+
if (!this.document || !this.document.publicId) return;
|
|
120
|
+
const s = this.$t("preparingPdfDone"), e = this.$t("preparingPdfError"), i = this.$t("preparingPdf"), u = this.$t("_common:download"), { data: t } = await _.addDocument(this.document.publicId, {
|
|
121
|
+
...this.options,
|
|
122
|
+
brand: D.brand
|
|
123
|
+
// this.$brand not defined on init
|
|
124
|
+
// locale: this.$i18n.locale,
|
|
125
|
+
// timeZone: get(Intl.DateTimeFormat().resolvedOptions(), 'timeZone') || '',
|
|
126
|
+
});
|
|
127
|
+
let a, n;
|
|
128
|
+
const f = async () => {
|
|
129
|
+
const { data: d } = await _.get(t) || {};
|
|
130
|
+
({ status: a, url: n } = d);
|
|
131
|
+
}, g = async () => {
|
|
132
|
+
try {
|
|
133
|
+
if (await f(), a === "canceled")
|
|
134
|
+
throw new Error(
|
|
135
|
+
`Canceled preparing document pdf for publicId: ${this.document.publicId}`
|
|
136
|
+
);
|
|
137
|
+
if (a === "completed" && n) {
|
|
138
|
+
const d = () => {
|
|
139
|
+
const v = window.open(n, "_blank");
|
|
140
|
+
return v ? (v.focus(), !0) : !1;
|
|
141
|
+
};
|
|
142
|
+
return d() || k({
|
|
143
|
+
type: "success",
|
|
144
|
+
message: s,
|
|
145
|
+
time: null,
|
|
146
|
+
// won't close notification after default 6 sec
|
|
147
|
+
closeButton: !0,
|
|
148
|
+
actions: {
|
|
149
|
+
submit: {
|
|
150
|
+
text: u,
|
|
151
|
+
callback: d
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}), "close";
|
|
155
|
+
}
|
|
156
|
+
return await E(3e3), g();
|
|
157
|
+
} catch (d) {
|
|
158
|
+
return k({
|
|
159
|
+
type: "error",
|
|
160
|
+
message: e
|
|
161
|
+
}), this.$error(d, { showMessage: !1 }), "close";
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
await k({
|
|
165
|
+
type: "spinner",
|
|
166
|
+
message: i,
|
|
167
|
+
time: g,
|
|
168
|
+
closeButton: !0
|
|
169
|
+
}), this.$emit("close");
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}, F = { class: "options-wrapper" }, T = { class: "pb-4 text-lg font-semibold" }, S = { class: "print-options" }, M = { class: "select-none pb-1 text-sm font-medium text-gray-800" }, O = { class: "option-item" }, L = {
|
|
173
|
+
class: "has-text-grey-dark",
|
|
174
|
+
style: { "font-size": "13px" }
|
|
175
|
+
}, N = {
|
|
176
|
+
class: "has-text-grey-dark",
|
|
177
|
+
style: { "font-size": "13px" }
|
|
178
|
+
}, H = { class: "select-none pb-1 text-sm font-medium text-gray-800" }, $ = {
|
|
179
|
+
class: "has-text-grey-dark",
|
|
180
|
+
style: { "font-size": "13px" }
|
|
181
|
+
}, j = { key: 1 }, U = { key: 0 }, q = { class: "border-t-2 border-white bg-gray-100 text-xs opacity-80 hover:bg-gray-200" };
|
|
182
|
+
function J(s, e, i, u, t, a) {
|
|
183
|
+
const n = h("CCheckbox"), f = h("CIcon"), g = h("Animation"), d = h("CInput"), v = h("CButton"), A = B("tooltip");
|
|
184
|
+
return p(), m("div", null, [
|
|
185
|
+
o("div", F, [
|
|
186
|
+
o("div", T, l(s.$t("title")), 1),
|
|
187
|
+
o("div", S, [
|
|
188
|
+
o("div", M, l(s.$t("_common:document")), 1),
|
|
189
|
+
o("div", O, [
|
|
190
|
+
o("div", {
|
|
191
|
+
class: w([{ disabled: !i.document.attachedFiles.length }, "option-item__inner bg-gray-100 hover:bg-gray-200"]),
|
|
192
|
+
onClick: e[0] || (e[0] = (c) => t.options.appendAttachments = !t.options.appendAttachments)
|
|
193
|
+
}, [
|
|
194
|
+
r(n, {
|
|
195
|
+
"model-value": i.document.attachedFiles.length ? t.options.appendAttachments : !1,
|
|
196
|
+
type: "secondary",
|
|
197
|
+
size: "small",
|
|
198
|
+
style: { flex: "0 0 30px" }
|
|
199
|
+
}, null, 8, ["model-value"]),
|
|
200
|
+
o("div", null, [
|
|
201
|
+
o("div", null, l(s.$t("appendAttachments")), 1),
|
|
202
|
+
o("div", L, l(s.$tc("_common:attachment", {
|
|
203
|
+
count: i.document.attachedFiles.length
|
|
204
|
+
})), 1)
|
|
205
|
+
])
|
|
206
|
+
], 2),
|
|
207
|
+
V((p(), m("div", null, [
|
|
208
|
+
o("div", {
|
|
209
|
+
class: w([{
|
|
210
|
+
disabled: !i.document.getAllNodesWithType("attachments").length
|
|
211
|
+
}, "option-item__inner border-t-2 border-white bg-gray-100 hover:bg-gray-200"]),
|
|
212
|
+
onClick: e[1] || (e[1] = (c) => t.options.hideDocumentAttachmentBlocks = !t.options.hideDocumentAttachmentBlocks)
|
|
213
|
+
}, [
|
|
214
|
+
r(n, {
|
|
215
|
+
"model-value": i.document.getAllNodesWithType("attachments").length ? t.options.hideDocumentAttachmentBlocks : !1,
|
|
216
|
+
type: "secondary",
|
|
217
|
+
size: "small",
|
|
218
|
+
style: { flex: "0 0 30px" }
|
|
219
|
+
}, null, 8, ["model-value"]),
|
|
220
|
+
o("div", null, [
|
|
221
|
+
o("div", null, l(s.$t("hideDocumentAttachmentBlocks")), 1),
|
|
222
|
+
o("div", N, l(s.$tc("_common:block", {
|
|
223
|
+
count: i.document.getAllNodesWithType("attachments").length
|
|
224
|
+
})), 1)
|
|
225
|
+
])
|
|
226
|
+
], 2)
|
|
227
|
+
])), [
|
|
228
|
+
[A, t.omitAttachmentBlockTooltip]
|
|
229
|
+
])
|
|
230
|
+
]),
|
|
231
|
+
e[15] || (e[15] = o("div", { style: { height: "1.25rem" } }, null, -1)),
|
|
232
|
+
o("div", H, l(s.$t("_common:verification").capitalize()), 1),
|
|
233
|
+
o("div", {
|
|
234
|
+
class: w([{ disabled: !a.allowVerification }, "option-item"])
|
|
235
|
+
}, [
|
|
236
|
+
o("div", {
|
|
237
|
+
class: "option-item__inner bg-gray-100 hover:bg-gray-200",
|
|
238
|
+
onClick: e[2] || (e[2] = (c) => t.options.showVerification = !t.options.showVerification)
|
|
239
|
+
}, [
|
|
240
|
+
r(n, {
|
|
241
|
+
"model-value": t.options.showVerification,
|
|
242
|
+
type: "secondary",
|
|
243
|
+
size: "small",
|
|
244
|
+
style: { flex: "0 0 30px" }
|
|
245
|
+
}, null, 8, ["model-value"]),
|
|
246
|
+
o("div", null, [
|
|
247
|
+
o("div", null, l(s.$t("showVerification")), 1),
|
|
248
|
+
o("div", $, l(s.$t("showVerificationSub")), 1)
|
|
249
|
+
])
|
|
250
|
+
]),
|
|
251
|
+
t.options.showVerification ? (p(), m("div", {
|
|
252
|
+
key: 0,
|
|
253
|
+
class: "option-item__inner border-t-2 border-white bg-gray-100 pl-8 hover:bg-gray-200",
|
|
254
|
+
onClick: e[3] || (e[3] = (c) => t.options.showEvents = !t.options.showEvents)
|
|
255
|
+
}, [
|
|
256
|
+
r(n, {
|
|
257
|
+
"model-value": t.options.showEvents,
|
|
258
|
+
type: "secondary",
|
|
259
|
+
size: "small",
|
|
260
|
+
style: { flex: "0 0 30px" }
|
|
261
|
+
}, null, 8, ["model-value"]),
|
|
262
|
+
o("div", null, [
|
|
263
|
+
o("div", null, l(s.$t("showEvents")), 1)
|
|
264
|
+
])
|
|
265
|
+
])) : y("", !0),
|
|
266
|
+
t.options.showVerification && a.hasBankIdSignatures ? (p(), m("div", j, [
|
|
267
|
+
o("div", {
|
|
268
|
+
class: "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",
|
|
269
|
+
onClick: e[4] || (e[4] = (c) => t.showMoreOptions = !t.showMoreOptions)
|
|
270
|
+
}, [
|
|
271
|
+
b(l(s.$t("_common:more").capitalize()) + " ", 1),
|
|
272
|
+
r(f, {
|
|
273
|
+
type: "chevron-right",
|
|
274
|
+
class: w([{ "rotate-90": t.showMoreOptions }, "ml-0.5 transition-transform"]),
|
|
275
|
+
"stroke-width": "2.25",
|
|
276
|
+
size: "12"
|
|
277
|
+
}, null, 8, ["class"])
|
|
278
|
+
]),
|
|
279
|
+
r(g, null, {
|
|
280
|
+
default: x(() => [
|
|
281
|
+
t.showMoreOptions ? (p(), m("div", {
|
|
282
|
+
key: 0,
|
|
283
|
+
class: "option-item__inner bg-gray-100 hover:bg-gray-200",
|
|
284
|
+
onClick: e[5] || (e[5] = (c) => t.options.showLast4ssn = !t.options.showLast4ssn)
|
|
285
|
+
}, [
|
|
286
|
+
r(n, {
|
|
287
|
+
"model-value": t.options.showLast4ssn,
|
|
288
|
+
type: "secondary",
|
|
289
|
+
size: "small",
|
|
290
|
+
style: { flex: "0 0 30px" }
|
|
291
|
+
}, null, 8, ["model-value"]),
|
|
292
|
+
o("div", null, [
|
|
293
|
+
o("div", null, l(s.$t("showLast4ssn")), 1)
|
|
294
|
+
])
|
|
295
|
+
])) : y("", !0)
|
|
296
|
+
]),
|
|
297
|
+
_: 1
|
|
298
|
+
})
|
|
299
|
+
])) : y("", !0)
|
|
300
|
+
], 2),
|
|
301
|
+
a.showAdminOptions ? (p(), m("div", U, [
|
|
302
|
+
e[13] || (e[13] = o("div", { style: { height: "1.25rem" } }, null, -1)),
|
|
303
|
+
e[14] || (e[14] = o("div", { class: "select-none pb-1 text-sm font-medium text-gray-800" }, " Superuser + VPN ", -1)),
|
|
304
|
+
o("div", {
|
|
305
|
+
class: "option-item__inner border-t-2 border-white bg-gray-100 text-xs opacity-80 hover:bg-gray-200",
|
|
306
|
+
onClick: e[6] || (e[6] = (c) => t.options.forceDoCreatePdf = !t.options.forceDoCreatePdf)
|
|
307
|
+
}, [
|
|
308
|
+
r(n, {
|
|
309
|
+
"model-value": t.options.forceDoCreatePdf,
|
|
310
|
+
size: "small",
|
|
311
|
+
class: "py-2"
|
|
312
|
+
}, {
|
|
313
|
+
default: x(() => e[10] || (e[10] = [
|
|
314
|
+
b(" Force re-create PDF ")
|
|
315
|
+
])),
|
|
316
|
+
_: 1
|
|
317
|
+
}, 8, ["model-value"])
|
|
318
|
+
]),
|
|
319
|
+
o("div", {
|
|
320
|
+
class: "option-item__inner border-t-2 border-white bg-gray-100 text-xs opacity-80 hover:bg-gray-200",
|
|
321
|
+
onClick: e[7] || (e[7] = (c) => t.options.compressImages = !t.options.compressImages)
|
|
322
|
+
}, [
|
|
323
|
+
r(n, {
|
|
324
|
+
"model-value": t.options.compressImages,
|
|
325
|
+
type: "secondary",
|
|
326
|
+
size: "small",
|
|
327
|
+
style: { flex: "0 0 30px" }
|
|
328
|
+
}, null, 8, ["model-value"]),
|
|
329
|
+
e[11] || (e[11] = o("div", null, [
|
|
330
|
+
o("div", null, "Compress images")
|
|
331
|
+
], -1))
|
|
332
|
+
]),
|
|
333
|
+
o("div", {
|
|
334
|
+
class: "option-item__inner border-t-2 border-white bg-gray-100 text-xs opacity-80 hover:bg-gray-200",
|
|
335
|
+
onClick: e[8] || (e[8] = (c) => t.options.debugPage = !t.options.debugPage)
|
|
336
|
+
}, [
|
|
337
|
+
r(n, {
|
|
338
|
+
"model-value": t.options.debugPage,
|
|
339
|
+
size: "small",
|
|
340
|
+
class: "py-2"
|
|
341
|
+
}, {
|
|
342
|
+
default: x(() => e[12] || (e[12] = [
|
|
343
|
+
b(" Debug page output ")
|
|
344
|
+
])),
|
|
345
|
+
_: 1
|
|
346
|
+
}, 8, ["model-value"])
|
|
347
|
+
]),
|
|
348
|
+
o("div", q, [
|
|
349
|
+
r(d, {
|
|
350
|
+
modelValue: a.extraTimeout,
|
|
351
|
+
"onUpdate:modelValue": e[9] || (e[9] = (c) => a.extraTimeout = c),
|
|
352
|
+
modelModifiers: { number: !0 },
|
|
353
|
+
type: "number",
|
|
354
|
+
filled: "",
|
|
355
|
+
size: "small",
|
|
356
|
+
placeholder: "Optional extra timeout (ms)"
|
|
357
|
+
}, null, 8, ["modelValue"])
|
|
358
|
+
])
|
|
359
|
+
])) : y("", !0)
|
|
360
|
+
])
|
|
361
|
+
]),
|
|
362
|
+
r(v, {
|
|
363
|
+
type: "secondary",
|
|
364
|
+
size: "medium",
|
|
365
|
+
wide: "",
|
|
366
|
+
onClick: a.generatePdf
|
|
367
|
+
}, {
|
|
368
|
+
default: x(() => [
|
|
369
|
+
b(l(s.$t("buttonText")), 1)
|
|
370
|
+
]),
|
|
371
|
+
_: 1
|
|
372
|
+
}, 8, ["onClick"])
|
|
373
|
+
]);
|
|
374
|
+
}
|
|
375
|
+
const W = /* @__PURE__ */ C(z, [["render", J], ["__scopeId", "data-v-d1c9dab3"]]), Z = {
|
|
376
|
+
name: "DocPrint",
|
|
377
|
+
components: {
|
|
378
|
+
DocumentPrint: W
|
|
379
|
+
},
|
|
380
|
+
props: {
|
|
381
|
+
document: {
|
|
382
|
+
type: Object,
|
|
383
|
+
required: !0
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}, G = { class: "h-full w-full overflow-auto px-8 py-12" };
|
|
387
|
+
function K(s, e, i, u, t, a) {
|
|
388
|
+
const n = h("DocumentPrint");
|
|
389
|
+
return p(), m("div", G, [
|
|
390
|
+
r(n, {
|
|
391
|
+
document: i.document,
|
|
392
|
+
onClose: e[0] || (e[0] = (f) => s.$router.push("/"))
|
|
393
|
+
}, null, 8, ["document"])
|
|
394
|
+
]);
|
|
395
|
+
}
|
|
396
|
+
const R = /* @__PURE__ */ C(Z, [["render", K]]);
|
|
397
|
+
export {
|
|
398
|
+
R as default
|
|
399
|
+
};
|