@cling-se/widget 1.0.0-beta.1 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/README.internal.md +82 -0
- package/README.md +14 -40
- package/README.public.md +14 -0
- package/dist/AddClientCallout-e8d19R3f.js +101 -0
- package/dist/AnswerModal-BGvB8IVV.js +3291 -0
- package/dist/AttachmentItem-CkHbAm4l.js +171 -0
- package/dist/BaseUpload-BiJBcWRu.js +2472 -0
- package/dist/BlockMedia-CW5wgipC.js +103 -0
- package/dist/CCallout-Cy2eeIYd.js +104 -0
- package/dist/{CCurrencyDropdown-qH-3m2eP.js → CCurrencyDropdown-DE_3CTjm.js} +91 -49
- package/dist/CDropdownItem-Dmq5gYzA.js +751 -0
- package/dist/CFormField.vue_vue_type_script_setup_true_lang-D_U9coAY.js +292 -0
- package/dist/{CPhoneFormat-CfQayFxw.js → CPhoneFormat-BS2nP9kc.js} +13 -21
- package/dist/CPhoneInput-Bf6329PO.js +207 -0
- package/dist/CPriceInput-d1yjuMQr.js +140 -0
- package/dist/CSelect-DgnT07Hk.js +98 -0
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-Ckl--dyv.js +51 -0
- package/dist/ClientAutocomplete-9JzGcO9O.js +532 -0
- package/dist/ClientModal-BzWQtWSZ.js +1181 -0
- package/dist/ColorPicker-BvoFN8nu.js +1408 -0
- package/dist/CompanyModal-Bp4V_az9.js +250 -0
- package/dist/ContentWrapper-CuH6xKmo.js +265 -0
- package/dist/CoverBlockSettings-BA5L0Zee.js +861 -0
- package/dist/DocAnswer-BcNA_KEg.js +33 -0
- package/dist/DocDetails-CStEwWnU.js +448 -0
- package/dist/DocForm-BOoILf5E.js +6748 -0
- package/dist/DocFormSend-CQIf-HJY.js +171 -0
- package/dist/DocLinks-BRX5QzNe.js +36 -0
- package/dist/DocModalBase-D72yWj-x.js +29 -0
- package/dist/DocPrint-BI1LXUPE.js +399 -0
- package/dist/DocReceipt-DaZ4V76p.js +341 -0
- package/dist/DocSendReminder-DKGZlo7s.js +181 -0
- package/dist/DocTextEditor-Dm-cTZpA.js +19413 -0
- package/dist/DocTimeline-DCwofzuk.js +537 -0
- package/dist/DocumentClient-vJdxCB53.js +90 -0
- package/dist/DocumentLayout-CKSi42ev.js +1368 -0
- package/dist/DocumentLogotype-DbQlvQ-y.js +162 -0
- package/dist/DocumentVoided-CRX2WxWO.js +33 -0
- package/dist/EmbedInput-B-oeC4Wy.js +157 -0
- package/dist/EmbedSettings-B9Yka2yB.js +103 -0
- package/dist/ErrorCallout-B_ygH33E.js +34 -0
- package/dist/FilePreviewModal-Bf3ELTow.js +202 -0
- package/dist/Flag-BwTgCNHO.js +41 -0
- package/dist/HeaderSettings-DvC7nlyY.js +720 -0
- package/dist/ImageSelectModal-D3sP3lhR.js +119 -0
- package/dist/ImageUploadWrapper-RWNa-yIq.js +1585 -0
- package/dist/Index-0_3ULrWX.js +126 -0
- package/dist/Index-4NPe0sfX.js +629 -0
- package/dist/Index-B1uA0FF6.js +4 -0
- package/dist/Index-BBkCYm2q.js +201 -0
- package/dist/{Index-DIOiMm9f.js → Index-BBwvo7S9.js} +10 -18
- package/dist/Index-BEMlsYwJ.js +68 -0
- package/dist/Index-BRBhJ6kz.js +21 -0
- package/dist/{Index--qPMWUMT.js → Index-BTFmHjUt.js} +48 -61
- package/dist/Index-BcUNnxLC.js +1098 -0
- package/dist/Index-Bo6ExBUL.js +93 -0
- package/dist/Index-BvMPCgdH.js +102 -0
- package/dist/Index-Bx5TOI9k.js +74 -0
- package/dist/Index-C7GZS8EI.js +16 -0
- package/dist/Index-CNWhm07R.js +25 -0
- package/dist/{Index-DcQbh-z2.js → Index-CQpznMKV.js} +9 -17
- package/dist/Index-CRzsnIij.js +159 -0
- package/dist/Index-CeSG1C41.js +140 -0
- package/dist/Index-CjfjdZj5.js +52 -0
- package/dist/Index-CskKmZpd.js +363 -0
- package/dist/Index-D5qwbCo1.js +28 -0
- package/dist/Index-D8Ae1Txt.js +228 -0
- package/dist/Index-DE8aenDB.js +3452 -0
- package/dist/Index-DI5EB5Rt.js +39 -0
- package/dist/Index-DaV57YPP.js +163 -0
- package/dist/Index-DbwkmoyM.js +38 -0
- package/dist/Index-Df9skok6.js +70 -0
- package/dist/{Index-Bu0MGrj6.js → Index-DfLLA0ij.js} +313 -206
- package/dist/Index-Dw1CO5F9.js +76 -0
- package/dist/Index-PZXyOoVb.js +87 -0
- package/dist/{Index-D4XgxmbD.js → Index-ZUnH-BHj.js} +10 -18
- package/dist/Index-cjKGSiDi.js +136 -0
- package/dist/Index-m-goRuKD.js +49 -0
- package/dist/Index-rGeWbLcB.js +47 -0
- package/dist/Index-vrljNp6G.js +28 -0
- package/dist/Index.vue_vue_type_script_lang-aeVuChGF.js +671 -0
- package/dist/InputToggleRow-v6qAWPg6.js +99 -0
- package/dist/ManualPopover-BONBJIUA.js +57 -0
- package/dist/MediaWrapper-CXb2UGd9.js +18 -0
- package/dist/{NotBindingText-CNV2Wmdx.js → NotBindingText-BqESO13N.js} +13 -17
- package/dist/PackageGroup-AIysVmyh.js +1058 -0
- package/dist/PdfTerms-BlhHdTu3.js +34 -0
- package/dist/PdfViewer-DwZ1rwlN.js +392 -0
- package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6NNUTz0.js +17 -0
- package/dist/PriceHeader-C4XhnoA3.js +488 -0
- package/dist/SearchApi-B7lXgUY6.js +137 -0
- package/dist/SendForm-BcD0xSvB.js +7031 -0
- package/dist/Setup-C2qaYDei.js +47 -0
- package/dist/{SmartList-Qgu0rMrI.js → SmartList-DqG7Q5t7.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-CzMbr8AX.js +1303 -0
- package/dist/{TermsSettings-CE3h_xkm.js → TermsSettings-BOCONyM4.js} +169 -49
- package/dist/ThemeColorRow-sjGdMzGN.js +108 -0
- package/dist/ToggleBinding-7oq_oXPt.js +44 -0
- package/dist/UploadModal-C_X2NjVY.js +134 -0
- package/dist/VideoPlayerInput-BsUcmpl4.js +135 -0
- package/dist/VideoPlayerSettings-BXMmxaZQ.js +78 -0
- package/dist/VideoSelectModal-CW0OweCw.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-DNl99Gyo.js} +7 -7
- package/dist/dom-CkTGWrfu.js +69 -0
- package/dist/{focusDrawerMixin-Be6BAK8-.js → focusDrawerMixin-BwcErMDY.js} +1 -1
- package/dist/{formDrawerState-DRbg5rVI.js → formDrawerState-DaurePnd.js} +2 -2
- package/dist/helpers-CPW--XIz.js +44 -0
- package/dist/index-BjiGCJPI.js +149 -0
- package/dist/index-CFNv6OvX.js +188 -0
- package/dist/index-Cx71On5Z.js +508 -0
- package/dist/index-DKMxIBz_.js +270 -0
- package/dist/index-DKf5SGLD.js +125 -0
- package/dist/index-E32WgUp9.js +3525 -0
- package/dist/index-kp-GC5I0.js +513 -0
- package/dist/index.es.js +2 -5
- package/dist/index.umd.js +306 -1505
- package/dist/{main-WKzC-Dnu.js → main-Cb-nyil1.js} +33252 -33755
- package/dist/mapFormMixin-D3BihYWW.js +1544 -0
- package/dist/omit--YYr41Xp.js +31 -0
- package/dist/{publicSenderState-BujjYsZZ.js → publicSenderState-CdRW_Wwp.js} +4 -4
- package/dist/regions-BdZt9Srn.js +1250 -0
- package/dist/splitpanes-D-ThFkeR.js +342 -0
- package/dist/style.css +1 -4
- package/dist/template-BvaNnq-g.js +1493 -0
- package/dist/{throttle-CWPJmFid.js → throttle-D-bUGaVh.js} +2 -2
- package/dist/tippy.esm-BmKNqohP.js +1994 -0
- package/dist/useTermsModal-Dhf6_eYb.js +87 -0
- package/dist/{utils-CA_Zy6u1.js → utils-CBPcYdLv.js} +8 -11
- package/dist/validation-DOcUOoMe.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,171 @@
|
|
|
1
|
+
import { S as f } from "./SendForm-BcD0xSvB.js";
|
|
2
|
+
import { _ as h, r as v, m as w, a as y, g as S, C as p, b as c, o as a, c as D, w as u, d as l, e as _, f as i } from "./main-Cb-nyil1.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 = c("SendForm"), d = c("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: u(() => [
|
|
148
|
+
e.contentSlot ? (a(), l("div", {
|
|
149
|
+
key: 0,
|
|
150
|
+
innerHTML: e.contentSlot
|
|
151
|
+
}, null, 8, V)) : i("", !0)
|
|
152
|
+
]),
|
|
153
|
+
footer: u(() => [
|
|
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-CFNv6OvX.js";
|
|
2
|
+
import { _ as t, b as c, o as l, d as i, e as r } from "./main-Cb-nyil1.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 = c("ClientLinks");
|
|
26
|
+
return l(), i("div", u, [
|
|
27
|
+
r(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, b as c, o as s, d as l, c as r, f as d, S as p } from "./main-Cb-nyil1.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, a8 as I, p as D, a5 as P, aw as _, ax as k, b as h, a3 as V, o as p, d as m, s as o, v as l, n as y, e as r, E as B, f as w, B as b, w as x, ay as E } from "./main-Cb-nyil1.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 = V("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: y([{ 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
|
+
B((p(), m("div", null, [
|
|
208
|
+
o("div", {
|
|
209
|
+
class: y([{
|
|
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: y([{ 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
|
+
])) : w("", !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: y([{ "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
|
+
])) : w("", !0)
|
|
296
|
+
]),
|
|
297
|
+
_: 1
|
|
298
|
+
})
|
|
299
|
+
])) : w("", !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
|
+
])) : w("", !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
|
+
};
|