@cling-se/widget 0.17.0 → 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.
Files changed (232) hide show
  1. package/dist/AddClientCallout-e8d19R3f.js +101 -0
  2. package/dist/AnswerModal-BGvB8IVV.js +3291 -0
  3. package/dist/AttachmentItem-CkHbAm4l.js +171 -0
  4. package/dist/BaseUpload-BiJBcWRu.js +2472 -0
  5. package/dist/BlockMedia-CW5wgipC.js +103 -0
  6. package/dist/CCallout-Cy2eeIYd.js +104 -0
  7. package/dist/{CCurrencyDropdown-C2rXt2cJ.js → CCurrencyDropdown-DE_3CTjm.js} +91 -53
  8. package/dist/CDropdownItem-Dmq5gYzA.js +751 -0
  9. package/dist/CFormField.vue_vue_type_script_setup_true_lang-D_U9coAY.js +292 -0
  10. package/dist/{CPhoneFormat-C8VPsiK6.js → CPhoneFormat-BS2nP9kc.js} +13 -21
  11. package/dist/CPhoneInput-Bf6329PO.js +207 -0
  12. package/dist/CPriceInput-d1yjuMQr.js +140 -0
  13. package/dist/CSelect-DgnT07Hk.js +98 -0
  14. package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-Ckl--dyv.js +51 -0
  15. package/dist/ClientAutocomplete-9JzGcO9O.js +532 -0
  16. package/dist/ClientModal-BzWQtWSZ.js +1181 -0
  17. package/dist/ColorPicker-BvoFN8nu.js +1408 -0
  18. package/dist/CompanyModal-Bp4V_az9.js +250 -0
  19. package/dist/ContentWrapper-CuH6xKmo.js +265 -0
  20. package/dist/CoverBlockSettings-BA5L0Zee.js +861 -0
  21. package/dist/DocAnswer-BcNA_KEg.js +33 -0
  22. package/dist/DocDetails-CStEwWnU.js +448 -0
  23. package/dist/DocForm-BOoILf5E.js +6748 -0
  24. package/dist/DocFormSend-CQIf-HJY.js +171 -0
  25. package/dist/DocLinks-BRX5QzNe.js +36 -0
  26. package/dist/DocModalBase-D72yWj-x.js +29 -0
  27. package/dist/DocPrint-BI1LXUPE.js +399 -0
  28. package/dist/DocReceipt-DaZ4V76p.js +341 -0
  29. package/dist/DocSendReminder-DKGZlo7s.js +181 -0
  30. package/dist/DocTextEditor-Dm-cTZpA.js +19413 -0
  31. package/dist/DocTimeline-DCwofzuk.js +537 -0
  32. package/dist/DocumentClient-vJdxCB53.js +90 -0
  33. package/dist/DocumentLayout-CKSi42ev.js +1368 -0
  34. package/dist/DocumentLogotype-DbQlvQ-y.js +162 -0
  35. package/dist/DocumentVoided-CRX2WxWO.js +33 -0
  36. package/dist/EmbedInput-B-oeC4Wy.js +157 -0
  37. package/dist/EmbedSettings-B9Yka2yB.js +103 -0
  38. package/dist/ErrorCallout-B_ygH33E.js +34 -0
  39. package/dist/FilePreviewModal-Bf3ELTow.js +202 -0
  40. package/dist/Flag-BwTgCNHO.js +41 -0
  41. package/dist/HeaderSettings-DvC7nlyY.js +720 -0
  42. package/dist/ImageSelectModal-D3sP3lhR.js +119 -0
  43. package/dist/ImageUploadWrapper-RWNa-yIq.js +1585 -0
  44. package/dist/Index-0_3ULrWX.js +126 -0
  45. package/dist/Index-4NPe0sfX.js +629 -0
  46. package/dist/Index-B1uA0FF6.js +4 -0
  47. package/dist/Index-BBkCYm2q.js +201 -0
  48. package/dist/{Index-LzN6dktq.js → Index-BBwvo7S9.js} +10 -18
  49. package/dist/Index-BEMlsYwJ.js +68 -0
  50. package/dist/Index-BRBhJ6kz.js +21 -0
  51. package/dist/{Index-BPUYpfLJ.js → Index-BTFmHjUt.js} +47 -60
  52. package/dist/Index-BcUNnxLC.js +1098 -0
  53. package/dist/Index-Bo6ExBUL.js +93 -0
  54. package/dist/Index-BvMPCgdH.js +102 -0
  55. package/dist/Index-Bx5TOI9k.js +74 -0
  56. package/dist/Index-C7GZS8EI.js +16 -0
  57. package/dist/Index-CNWhm07R.js +25 -0
  58. package/dist/{Index-BUK-1yVR.js → Index-CQpznMKV.js} +9 -17
  59. package/dist/Index-CRzsnIij.js +159 -0
  60. package/dist/Index-CeSG1C41.js +140 -0
  61. package/dist/Index-CjfjdZj5.js +52 -0
  62. package/dist/Index-CskKmZpd.js +363 -0
  63. package/dist/Index-D5qwbCo1.js +28 -0
  64. package/dist/Index-D8Ae1Txt.js +228 -0
  65. package/dist/Index-DE8aenDB.js +3452 -0
  66. package/dist/Index-DI5EB5Rt.js +39 -0
  67. package/dist/Index-DaV57YPP.js +163 -0
  68. package/dist/Index-DbwkmoyM.js +38 -0
  69. package/dist/Index-Df9skok6.js +70 -0
  70. package/dist/{Index-BHJGfHm9.js → Index-DfLLA0ij.js} +313 -206
  71. package/dist/Index-Dw1CO5F9.js +76 -0
  72. package/dist/Index-PZXyOoVb.js +87 -0
  73. package/dist/{Index-BioOegOO.js → Index-ZUnH-BHj.js} +10 -18
  74. package/dist/Index-cjKGSiDi.js +136 -0
  75. package/dist/Index-m-goRuKD.js +49 -0
  76. package/dist/Index-rGeWbLcB.js +47 -0
  77. package/dist/Index-vrljNp6G.js +28 -0
  78. package/dist/Index.vue_vue_type_script_lang-aeVuChGF.js +671 -0
  79. package/dist/InputToggleRow-v6qAWPg6.js +99 -0
  80. package/dist/ManualPopover-BONBJIUA.js +57 -0
  81. package/dist/MediaWrapper-CXb2UGd9.js +18 -0
  82. package/dist/{NotBindingText-CM3FN0A6.js → NotBindingText-BqESO13N.js} +13 -17
  83. package/dist/PackageGroup-AIysVmyh.js +1058 -0
  84. package/dist/PdfTerms-BlhHdTu3.js +34 -0
  85. package/dist/PdfViewer-DwZ1rwlN.js +392 -0
  86. package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6NNUTz0.js +17 -0
  87. package/dist/PriceHeader-C4XhnoA3.js +488 -0
  88. package/dist/SearchApi-B7lXgUY6.js +137 -0
  89. package/dist/SendForm-BcD0xSvB.js +7031 -0
  90. package/dist/Setup-C2qaYDei.js +47 -0
  91. package/dist/{SmartList-DhhjSWLO.js → SmartList-DqG7Q5t7.js} +16 -24
  92. package/dist/Sortable.vue_vue_type_script_setup_true_lang-CzMbr8AX.js +1303 -0
  93. package/dist/{TermsSettings-BEQwmkFH.js → TermsSettings-BOCONyM4.js} +169 -56
  94. package/dist/ThemeColorRow-sjGdMzGN.js +108 -0
  95. package/dist/ToggleBinding-7oq_oXPt.js +44 -0
  96. package/dist/UploadModal-C_X2NjVY.js +134 -0
  97. package/dist/VideoPlayerInput-BsUcmpl4.js +135 -0
  98. package/dist/VideoPlayerSettings-BXMmxaZQ.js +78 -0
  99. package/dist/VideoSelectModal-CW0OweCw.js +217 -0
  100. package/dist/{anime.es-BrPTThYb.js → anime.es-gdcpA-eY.js} +1 -2
  101. package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
  102. package/dist/{debounce-D0hKNU85.js → debounce-DNl99Gyo.js} +10 -10
  103. package/dist/dom-CkTGWrfu.js +69 -0
  104. package/dist/{focusDrawerMixin-C_aTLmK0.js → focusDrawerMixin-BwcErMDY.js} +1 -1
  105. package/dist/{formDrawerState-Da4mcbab.js → formDrawerState-DaurePnd.js} +2 -2
  106. package/dist/helpers-CPW--XIz.js +44 -0
  107. package/dist/index-BjiGCJPI.js +149 -0
  108. package/dist/index-CFNv6OvX.js +188 -0
  109. package/dist/index-Cx71On5Z.js +508 -0
  110. package/dist/index-DKMxIBz_.js +270 -0
  111. package/dist/index-DKf5SGLD.js +125 -0
  112. package/dist/index-E32WgUp9.js +3525 -0
  113. package/dist/index-kp-GC5I0.js +513 -0
  114. package/dist/index.es.js +2 -5
  115. package/dist/index.umd.js +285 -1485
  116. package/dist/{main-BgzLHIoo.js → main-Cb-nyil1.js} +41414 -42507
  117. package/dist/mapFormMixin-D3BihYWW.js +1544 -0
  118. package/dist/omit--YYr41Xp.js +31 -0
  119. package/dist/{publicSenderState-DB4BHByV.js → publicSenderState-CdRW_Wwp.js} +4 -4
  120. package/dist/splitpanes-D-ThFkeR.js +342 -0
  121. package/dist/style.css +1 -4
  122. package/dist/template-BvaNnq-g.js +1493 -0
  123. package/dist/{throttle-DT2UVOqm.js → throttle-D-bUGaVh.js} +2 -2
  124. package/dist/tippy.esm-BmKNqohP.js +1994 -0
  125. package/dist/useTermsModal-Dhf6_eYb.js +87 -0
  126. package/dist/{utils-nos8CB1L.js → utils-CBPcYdLv.js} +8 -11
  127. package/dist/validation-DOcUOoMe.js +40 -0
  128. package/package.json +18 -21
  129. package/dist/AddClientCallout-BJzBdba1.js +0 -48
  130. package/dist/AnswerModal-frHq1g4s.js +0 -3874
  131. package/dist/AttachmentItem-BaN0OrEV.js +0 -85
  132. package/dist/BaseDatePicker-B-AfdrSb.js +0 -3187
  133. package/dist/BaseUpload-CY3lTcte.js +0 -1977
  134. package/dist/BlockMedia-Bb5wQIDg.js +0 -76
  135. package/dist/CCallout-5quI6yyk.js +0 -58
  136. package/dist/CDropdownItem-CaoSQX6X.js +0 -640
  137. package/dist/CFormField-Dd2Y71JG.js +0 -240
  138. package/dist/CPhoneInput-BU1t6eo_.js +0 -138
  139. package/dist/CPriceInput-pv2aIVkH.js +0 -116
  140. package/dist/CSelect-CrM45B7V.js +0 -91
  141. package/dist/CSkeleton-BkvONMqL.js +0 -55
  142. package/dist/ClientAutocomplete-BRXIKQSk.js +0 -438
  143. package/dist/ClientModal-CvHAptV2.js +0 -666
  144. package/dist/ColorPicker-RgoXRrud.js +0 -2879
  145. package/dist/CompanyModal-OL4bD9Gk.js +0 -147
  146. package/dist/ContentWrapper-8HduCnR4.js +0 -190
  147. package/dist/CoverBlockSettings-DUv8AcdX.js +0 -659
  148. package/dist/DocAnswer-DiyFfpT2.js +0 -36
  149. package/dist/DocDetails-BxNRfBnK.js +0 -263
  150. package/dist/DocForm-MGp-o0pu.js +0 -5017
  151. package/dist/DocFormSend-q_QuVCqh.js +0 -146
  152. package/dist/DocLinks-DGDdp30U.js +0 -38
  153. package/dist/DocModalBase-qG4RqwBn.js +0 -28
  154. package/dist/DocPrint-Cln3kt0g.js +0 -240
  155. package/dist/DocReceipt-nbsJ-ukZ.js +0 -217
  156. package/dist/DocSendReminder-B3qdqduf.js +0 -140
  157. package/dist/DocTextEditor-CQDnjnRY.js +0 -17193
  158. package/dist/DocTimeline-CgKHoDcG.js +0 -485
  159. package/dist/DocumentClient-UZlnIlz5.js +0 -136
  160. package/dist/DocumentLayout-Dvr4zgyF.js +0 -4880
  161. package/dist/DocumentLogotype-mAVgMRHr.js +0 -92
  162. package/dist/DocumentVoided-BXYNrf_6.js +0 -25
  163. package/dist/EmbedInput-YRUrw3c6.js +0 -117
  164. package/dist/EmbedSettings-DvRreF7H.js +0 -74
  165. package/dist/ErrorCallout-DVknpLVY.js +0 -27
  166. package/dist/FilePreviewModal-DC56FaGy.js +0 -81
  167. package/dist/Flag-D5iZLESg.js +0 -46
  168. package/dist/HeaderSettings-DXZnZL7A.js +0 -440
  169. package/dist/ImageSelectModal-Bu4_xZga.js +0 -86
  170. package/dist/ImageUploadWrapper-CtZhkAm1.js +0 -1604
  171. package/dist/Index-B1dJO6Bk.js +0 -54
  172. package/dist/Index-B3pz1coY.js +0 -150
  173. package/dist/Index-BHgW8EHW.js +0 -2446
  174. package/dist/Index-BNucs2O-.js +0 -154
  175. package/dist/Index-BW-EtZ1z.js +0 -55
  176. package/dist/Index-BjKACpun.js +0 -66
  177. package/dist/Index-C94BL4uU.js +0 -294
  178. package/dist/Index-CB57haU8.js +0 -58
  179. package/dist/Index-CP17iXT6.js +0 -25
  180. package/dist/Index-CUSbvjoD.js +0 -62
  181. package/dist/Index-CVnD6jo5.js +0 -25
  182. package/dist/Index-Ci5zdPeT.js +0 -28
  183. package/dist/Index-CikqSMjb.js +0 -41
  184. package/dist/Index-CxO4tJ3U.js +0 -26
  185. package/dist/Index-D4J4BpHd.js +0 -230
  186. package/dist/Index-DAQQQlut.js +0 -754
  187. package/dist/Index-DNxSR72J.js +0 -73
  188. package/dist/Index-DPuKRwmu.js +0 -41
  189. package/dist/Index-DSy8QG8T.js +0 -32
  190. package/dist/Index-DX6_D-J-.js +0 -77
  191. package/dist/Index-Dk0KaIKg.js +0 -643
  192. package/dist/Index-Hkzoh9QR.js +0 -24
  193. package/dist/Index-KsHJxWAa.js +0 -94
  194. package/dist/Index-TtItTuv6.js +0 -33
  195. package/dist/Index-YAD39Qvg.js +0 -146
  196. package/dist/Index-eh909lAz.js +0 -107
  197. package/dist/Index-otowKI_C.js +0 -56
  198. package/dist/Index-t_oVV8Rc.js +0 -84
  199. package/dist/Index-vG96oEXZ.js +0 -144
  200. package/dist/InputToggleRow-CcqJDguN.js +0 -57
  201. package/dist/ManualPopover-BE2IN-XU.js +0 -60
  202. package/dist/MediaWrapper-lnGUFiyc.js +0 -23
  203. package/dist/PackageGroup-BsmxOMLW.js +0 -704
  204. package/dist/PdfTerms-BgYwZoAZ.js +0 -31
  205. package/dist/PdfViewer-C0lDpjte.js +0 -383
  206. package/dist/PlainHtml-5YwYVj1v.js +0 -27
  207. package/dist/PriceHeader-CxqhpGS-.js +0 -338
  208. package/dist/SearchApi-BndaIbri.js +0 -161
  209. package/dist/SendForm-D7U9fG-5.js +0 -1023
  210. package/dist/Setup-CmAK2_ZT.js +0 -50
  211. package/dist/ThemeColorRow-BlnhzebY.js +0 -69
  212. package/dist/ToggleBinding-t_58JFya.js +0 -42
  213. package/dist/UploadModal-T-WpYNsN.js +0 -95
  214. package/dist/VideoPlayerInput-DKHKjMgX.js +0 -97
  215. package/dist/VideoPlayerSettings-DDMlUvSt.js +0 -61
  216. package/dist/VideoSelectModal-B9bbP0dd.js +0 -104
  217. package/dist/answerDocumentMixin-DXI_E5Kx.js +0 -51
  218. package/dist/dom-CWsqMElk.js +0 -71
  219. package/dist/formValidationMixin-WZ2lGndu.js +0 -49
  220. package/dist/index-B2l57ilt.js +0 -102
  221. package/dist/index-COKDjmM2.js +0 -167
  222. package/dist/index-HtKGcIng.js +0 -2700
  223. package/dist/index-LQ7NztTt.js +0 -81
  224. package/dist/index-fx5gR8fM.js +0 -351
  225. package/dist/index-zXXJrTvv.js +0 -492
  226. package/dist/mapFormMixin-CQgSN7dv.js +0 -3028
  227. package/dist/omit-ScS7B6c5.js +0 -31
  228. package/dist/simplebar.min-B0cB_p8g.js +0 -71
  229. package/dist/splitpanes-BHUVsCZF.js +0 -382
  230. package/dist/tippy.esm-CR89mtdY.js +0 -1805
  231. package/dist/vuedraggable.umd-CkXXkt1b.js +0 -3161
  232. package/dist/vuex.esm-DKGl8mcw.js +0 -467
@@ -1,146 +0,0 @@
1
- import { S as n } from "./SendForm-D7U9fG-5.js";
2
- import { V as l, m as s, a as r, g as u, C as i, n as c } from "./main-BgzLHIoo.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-B2l57ilt.js";
2
- import { n as s } from "./main-BgzLHIoo.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-BgzLHIoo.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-BgzLHIoo.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-CaoSQX6X.js";
2
- import { g as p, n as u } from "./main-BgzLHIoo.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
- };