@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.
Files changed (241) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.internal.md +82 -0
  3. package/README.md +14 -40
  4. package/README.public.md +14 -0
  5. package/dist/AddClientCallout-e8d19R3f.js +101 -0
  6. package/dist/AnswerModal-BGvB8IVV.js +3291 -0
  7. package/dist/AttachmentItem-CkHbAm4l.js +171 -0
  8. package/dist/BaseUpload-BiJBcWRu.js +2472 -0
  9. package/dist/BlockMedia-CW5wgipC.js +103 -0
  10. package/dist/CCallout-Cy2eeIYd.js +104 -0
  11. package/dist/{CCurrencyDropdown-qH-3m2eP.js → CCurrencyDropdown-DE_3CTjm.js} +91 -49
  12. package/dist/CDropdownItem-Dmq5gYzA.js +751 -0
  13. package/dist/CFormField.vue_vue_type_script_setup_true_lang-D_U9coAY.js +292 -0
  14. package/dist/{CPhoneFormat-CfQayFxw.js → CPhoneFormat-BS2nP9kc.js} +13 -21
  15. package/dist/CPhoneInput-Bf6329PO.js +207 -0
  16. package/dist/CPriceInput-d1yjuMQr.js +140 -0
  17. package/dist/CSelect-DgnT07Hk.js +98 -0
  18. package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-Ckl--dyv.js +51 -0
  19. package/dist/ClientAutocomplete-9JzGcO9O.js +532 -0
  20. package/dist/ClientModal-BzWQtWSZ.js +1181 -0
  21. package/dist/ColorPicker-BvoFN8nu.js +1408 -0
  22. package/dist/CompanyModal-Bp4V_az9.js +250 -0
  23. package/dist/ContentWrapper-CuH6xKmo.js +265 -0
  24. package/dist/CoverBlockSettings-BA5L0Zee.js +861 -0
  25. package/dist/DocAnswer-BcNA_KEg.js +33 -0
  26. package/dist/DocDetails-CStEwWnU.js +448 -0
  27. package/dist/DocForm-BOoILf5E.js +6748 -0
  28. package/dist/DocFormSend-CQIf-HJY.js +171 -0
  29. package/dist/DocLinks-BRX5QzNe.js +36 -0
  30. package/dist/DocModalBase-D72yWj-x.js +29 -0
  31. package/dist/DocPrint-BI1LXUPE.js +399 -0
  32. package/dist/DocReceipt-DaZ4V76p.js +341 -0
  33. package/dist/DocSendReminder-DKGZlo7s.js +181 -0
  34. package/dist/DocTextEditor-Dm-cTZpA.js +19413 -0
  35. package/dist/DocTimeline-DCwofzuk.js +537 -0
  36. package/dist/DocumentClient-vJdxCB53.js +90 -0
  37. package/dist/DocumentLayout-CKSi42ev.js +1368 -0
  38. package/dist/DocumentLogotype-DbQlvQ-y.js +162 -0
  39. package/dist/DocumentVoided-CRX2WxWO.js +33 -0
  40. package/dist/EmbedInput-B-oeC4Wy.js +157 -0
  41. package/dist/EmbedSettings-B9Yka2yB.js +103 -0
  42. package/dist/ErrorCallout-B_ygH33E.js +34 -0
  43. package/dist/FilePreviewModal-Bf3ELTow.js +202 -0
  44. package/dist/Flag-BwTgCNHO.js +41 -0
  45. package/dist/HeaderSettings-DvC7nlyY.js +720 -0
  46. package/dist/ImageSelectModal-D3sP3lhR.js +119 -0
  47. package/dist/ImageUploadWrapper-RWNa-yIq.js +1585 -0
  48. package/dist/Index-0_3ULrWX.js +126 -0
  49. package/dist/Index-4NPe0sfX.js +629 -0
  50. package/dist/Index-B1uA0FF6.js +4 -0
  51. package/dist/Index-BBkCYm2q.js +201 -0
  52. package/dist/{Index-DIOiMm9f.js → Index-BBwvo7S9.js} +10 -18
  53. package/dist/Index-BEMlsYwJ.js +68 -0
  54. package/dist/Index-BRBhJ6kz.js +21 -0
  55. package/dist/{Index--qPMWUMT.js → Index-BTFmHjUt.js} +48 -61
  56. package/dist/Index-BcUNnxLC.js +1098 -0
  57. package/dist/Index-Bo6ExBUL.js +93 -0
  58. package/dist/Index-BvMPCgdH.js +102 -0
  59. package/dist/Index-Bx5TOI9k.js +74 -0
  60. package/dist/Index-C7GZS8EI.js +16 -0
  61. package/dist/Index-CNWhm07R.js +25 -0
  62. package/dist/{Index-DcQbh-z2.js → Index-CQpznMKV.js} +9 -17
  63. package/dist/Index-CRzsnIij.js +159 -0
  64. package/dist/Index-CeSG1C41.js +140 -0
  65. package/dist/Index-CjfjdZj5.js +52 -0
  66. package/dist/Index-CskKmZpd.js +363 -0
  67. package/dist/Index-D5qwbCo1.js +28 -0
  68. package/dist/Index-D8Ae1Txt.js +228 -0
  69. package/dist/Index-DE8aenDB.js +3452 -0
  70. package/dist/Index-DI5EB5Rt.js +39 -0
  71. package/dist/Index-DaV57YPP.js +163 -0
  72. package/dist/Index-DbwkmoyM.js +38 -0
  73. package/dist/Index-Df9skok6.js +70 -0
  74. package/dist/{Index-Bu0MGrj6.js → Index-DfLLA0ij.js} +313 -206
  75. package/dist/Index-Dw1CO5F9.js +76 -0
  76. package/dist/Index-PZXyOoVb.js +87 -0
  77. package/dist/{Index-D4XgxmbD.js → Index-ZUnH-BHj.js} +10 -18
  78. package/dist/Index-cjKGSiDi.js +136 -0
  79. package/dist/Index-m-goRuKD.js +49 -0
  80. package/dist/Index-rGeWbLcB.js +47 -0
  81. package/dist/Index-vrljNp6G.js +28 -0
  82. package/dist/Index.vue_vue_type_script_lang-aeVuChGF.js +671 -0
  83. package/dist/InputToggleRow-v6qAWPg6.js +99 -0
  84. package/dist/ManualPopover-BONBJIUA.js +57 -0
  85. package/dist/MediaWrapper-CXb2UGd9.js +18 -0
  86. package/dist/{NotBindingText-CNV2Wmdx.js → NotBindingText-BqESO13N.js} +13 -17
  87. package/dist/PackageGroup-AIysVmyh.js +1058 -0
  88. package/dist/PdfTerms-BlhHdTu3.js +34 -0
  89. package/dist/PdfViewer-DwZ1rwlN.js +392 -0
  90. package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6NNUTz0.js +17 -0
  91. package/dist/PriceHeader-C4XhnoA3.js +488 -0
  92. package/dist/SearchApi-B7lXgUY6.js +137 -0
  93. package/dist/SendForm-BcD0xSvB.js +7031 -0
  94. package/dist/Setup-C2qaYDei.js +47 -0
  95. package/dist/{SmartList-Qgu0rMrI.js → SmartList-DqG7Q5t7.js} +16 -24
  96. package/dist/Sortable.vue_vue_type_script_setup_true_lang-CzMbr8AX.js +1303 -0
  97. package/dist/{TermsSettings-CE3h_xkm.js → TermsSettings-BOCONyM4.js} +169 -49
  98. package/dist/ThemeColorRow-sjGdMzGN.js +108 -0
  99. package/dist/ToggleBinding-7oq_oXPt.js +44 -0
  100. package/dist/UploadModal-C_X2NjVY.js +134 -0
  101. package/dist/VideoPlayerInput-BsUcmpl4.js +135 -0
  102. package/dist/VideoPlayerSettings-BXMmxaZQ.js +78 -0
  103. package/dist/VideoSelectModal-CW0OweCw.js +217 -0
  104. package/dist/{anime.es-BrPTThYb.js → anime.es-gdcpA-eY.js} +1 -2
  105. package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
  106. package/dist/{debounce-C1AuSpOZ.js → debounce-DNl99Gyo.js} +7 -7
  107. package/dist/dom-CkTGWrfu.js +69 -0
  108. package/dist/{focusDrawerMixin-Be6BAK8-.js → focusDrawerMixin-BwcErMDY.js} +1 -1
  109. package/dist/{formDrawerState-DRbg5rVI.js → formDrawerState-DaurePnd.js} +2 -2
  110. package/dist/helpers-CPW--XIz.js +44 -0
  111. package/dist/index-BjiGCJPI.js +149 -0
  112. package/dist/index-CFNv6OvX.js +188 -0
  113. package/dist/index-Cx71On5Z.js +508 -0
  114. package/dist/index-DKMxIBz_.js +270 -0
  115. package/dist/index-DKf5SGLD.js +125 -0
  116. package/dist/index-E32WgUp9.js +3525 -0
  117. package/dist/index-kp-GC5I0.js +513 -0
  118. package/dist/index.es.js +2 -5
  119. package/dist/index.umd.js +306 -1505
  120. package/dist/{main-WKzC-Dnu.js → main-Cb-nyil1.js} +33252 -33755
  121. package/dist/mapFormMixin-D3BihYWW.js +1544 -0
  122. package/dist/omit--YYr41Xp.js +31 -0
  123. package/dist/{publicSenderState-BujjYsZZ.js → publicSenderState-CdRW_Wwp.js} +4 -4
  124. package/dist/regions-BdZt9Srn.js +1250 -0
  125. package/dist/splitpanes-D-ThFkeR.js +342 -0
  126. package/dist/style.css +1 -4
  127. package/dist/template-BvaNnq-g.js +1493 -0
  128. package/dist/{throttle-CWPJmFid.js → throttle-D-bUGaVh.js} +2 -2
  129. package/dist/tippy.esm-BmKNqohP.js +1994 -0
  130. package/dist/useTermsModal-Dhf6_eYb.js +87 -0
  131. package/dist/{utils-CA_Zy6u1.js → utils-CBPcYdLv.js} +8 -11
  132. package/dist/validation-DOcUOoMe.js +40 -0
  133. package/package.json +25 -31
  134. package/.eslintrc.cjs +0 -4
  135. package/dist/AddClientCallout-BWnvyBcK.js +0 -46
  136. package/dist/AnswerModal-CLGRdSnK.js +0 -3874
  137. package/dist/AttachmentItem-BPS0-wyc.js +0 -78
  138. package/dist/BaseDatePicker-BbmV_GdD.js +0 -3183
  139. package/dist/BaseUpload-9gPgI7r6.js +0 -1977
  140. package/dist/BlockMedia-DkPFWiYL.js +0 -76
  141. package/dist/CCallout-T26jwUby.js +0 -59
  142. package/dist/CDropdownItem-BE8BAMD1.js +0 -636
  143. package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
  144. package/dist/CFormField-DECEfoVq.js +0 -241
  145. package/dist/CPriceInput-C4SOB-P5.js +0 -112
  146. package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
  147. package/dist/ClientAutocomplete-DSebA1Mx.js +0 -78
  148. package/dist/ClientModal-BXFYvYCF.js +0 -625
  149. package/dist/ColorPicker-CZ_bJabP.js +0 -2879
  150. package/dist/CompanyModal-CDr3t28n.js +0 -141
  151. package/dist/ContentWrapper-BwmMoe4W.js +0 -183
  152. package/dist/CoverBlockSettings-_F11-DGc.js +0 -275
  153. package/dist/DocAnswer-BR59xzkT.js +0 -36
  154. package/dist/DocDetails-D1qbCbps.js +0 -259
  155. package/dist/DocForm-DBc2a7z5.js +0 -7272
  156. package/dist/DocFormSend-Casix-yG.js +0 -144
  157. package/dist/DocLinks-DGTaewyX.js +0 -38
  158. package/dist/DocModalBase-BbS_qvSv.js +0 -28
  159. package/dist/DocPrint-0PqX3mbJ.js +0 -240
  160. package/dist/DocReceipt-CU3VD5pt.js +0 -210
  161. package/dist/DocSendReminder-CuycBspr.js +0 -137
  162. package/dist/DocTextEditor-CntS2Bd-.js +0 -17180
  163. package/dist/DocTimeline-DJuv3yBe.js +0 -481
  164. package/dist/DocumentClient-C25XXzz6.js +0 -136
  165. package/dist/DocumentLayout-B7afHRMr.js +0 -4909
  166. package/dist/DocumentLogotype-sqI51wvM.js +0 -87
  167. package/dist/DocumentVoided-TahdTSMn.js +0 -25
  168. package/dist/EmbedInput-BY-wHSfc.js +0 -113
  169. package/dist/EmbedSettings-8pfjk4NP.js +0 -72
  170. package/dist/ErrorCallout-Dsr8PNsU.js +0 -28
  171. package/dist/FilePreviewModal-CcEinEFg.js +0 -81
  172. package/dist/Flag-PJKrghi9.js +0 -114
  173. package/dist/HeaderSettings-BqczIOsG.js +0 -392
  174. package/dist/ImageSelectModal-Cd-HhKnH.js +0 -84
  175. package/dist/ImageUploadWrapper-Dv43rGdb.js +0 -1604
  176. package/dist/Index-6b5VBKE-.js +0 -107
  177. package/dist/Index-B4pRJnbw.js +0 -84
  178. package/dist/Index-B69f8qgZ.js +0 -62
  179. package/dist/Index-B79YN9RO.js +0 -25
  180. package/dist/Index-BBrlPoe8.js +0 -58
  181. package/dist/Index-BXfWJCuq.js +0 -52
  182. package/dist/Index-Bd76vb37.js +0 -55
  183. package/dist/Index-BmbtQO5F.js +0 -150
  184. package/dist/Index-ByV_kJaH.js +0 -77
  185. package/dist/Index-CDV5rhWS.js +0 -49
  186. package/dist/Index-CIx4OOK-.js +0 -144
  187. package/dist/Index-CL1OWLt6.js +0 -223
  188. package/dist/Index-Caow0eZu.js +0 -31
  189. package/dist/Index-Cd3-3PEK.js +0 -2402
  190. package/dist/Index-CdpZBEKU.js +0 -98
  191. package/dist/Index-CmU3Sys-.js +0 -754
  192. package/dist/Index-CtRtgnpm.js +0 -32
  193. package/dist/Index-Cukkr33D.js +0 -140
  194. package/dist/Index-Cuqw0ios.js +0 -57
  195. package/dist/Index-Czm_WdqC.js +0 -25
  196. package/dist/Index-DNdYXHgr.js +0 -33
  197. package/dist/Index-DcuBxutp.js +0 -642
  198. package/dist/Index-DpWNWiyY.js +0 -291
  199. package/dist/Index-DzS1rZdF.js +0 -24
  200. package/dist/Index-N6s5pZxv.js +0 -26
  201. package/dist/Index-g_DNu4mt.js +0 -69
  202. package/dist/Index-mJ8F41GY.js +0 -154
  203. package/dist/Index-q7W9KA8m.js +0 -21
  204. package/dist/Index-rtzblZp4.js +0 -70
  205. package/dist/InputToggleRow-CZjxsDOQ.js +0 -57
  206. package/dist/ManualPopover-CZrWiT-P.js +0 -58
  207. package/dist/MediaWrapper-D37qK4KR.js +0 -23
  208. package/dist/PackageGroup-Heo_s8ct.js +0 -699
  209. package/dist/PdfTerms-AB9tXAtU.js +0 -36
  210. package/dist/PdfViewer-CIVkvOBr.js +0 -373
  211. package/dist/PlainHtml-CPmIebjY.js +0 -20
  212. package/dist/PriceHeader-DhDAruwX.js +0 -339
  213. package/dist/SearchApi-BMgdaI4s.js +0 -161
  214. package/dist/Setup-VIaIV9uT.js +0 -50
  215. package/dist/ThemeColorRow-DYJNgk6S.js +0 -67
  216. package/dist/ToggleBinding-CuwCeYpO.js +0 -38
  217. package/dist/UploadModal-BITcxG-J.js +0 -95
  218. package/dist/VideoPlayerInput-8szEX_8L.js +0 -93
  219. package/dist/VideoPlayerSettings-BIPytm6w.js +0 -61
  220. package/dist/VideoSelectModal-B-Pe34nb.js +0 -100
  221. package/dist/answerDocumentMixin-W7vE1Gp4.js +0 -51
  222. package/dist/formComponentsInstall-Bm3VMOh6.js +0 -2507
  223. package/dist/formValidationMixin-COkY8COk.js +0 -49
  224. package/dist/index-BFvjENMH.js +0 -81
  225. package/dist/index-BV2nGWay.js +0 -492
  226. package/dist/index-BgJ05dYc.js +0 -165
  227. package/dist/index-CMPAXxzs.js +0 -347
  228. package/dist/index-DNDjI5uI.js +0 -3916
  229. package/dist/index-aoff9oUi.js +0 -102
  230. package/dist/mapFormMixin-QbevCwJK.js +0 -72
  231. package/dist/omit-CTp9CXoU.js +0 -31
  232. package/dist/splitpanes-BHUVsCZF.js +0 -382
  233. package/dist/tinycolor-kTl0yxzz.js +0 -633
  234. package/dist/tippy.esm-sS5koDSU.js +0 -1799
  235. package/dist/vuedraggable.umd-BA3ZDRAp.js +0 -3161
  236. package/dist/vuex.esm-DKGl8mcw.js +0 -467
  237. package/public/favicon.ico +0 -0
  238. package/tsconfig.json +0 -26
  239. package/tsconfig.node.json +0 -10
  240. package/tsconfig.paths.json +0 -17
  241. package/vite.config.ts +0 -60
@@ -1,144 +0,0 @@
1
- import { i as s, S as l } from "./formComponentsInstall-Bm3VMOh6.js";
2
- import { V as n, m as r, a as i, g as u, C as c, n as m } from "./main-WKzC-Dnu.js";
3
- n.use(s);
4
- const a = n.observable({
5
- canEdit: !1,
6
- isForm: !0,
7
- setFormValue: null,
8
- removeFormValue: null
9
- }), d = {
10
- name: "DocFormSend",
11
- components: {
12
- SendForm: l
13
- },
14
- provide: () => ({ viewSettings: a, allowSenderSign: !1 }),
15
- // TODO maybe not needed
16
- props: {
17
- // consumer options
18
- showName: {
19
- type: Boolean,
20
- default: !0
21
- },
22
- showSave: {
23
- type: Boolean,
24
- default: !0
25
- },
26
- showSchedule: {
27
- type: Boolean,
28
- default: !0
29
- },
30
- allowManualDelivery: {
31
- type: Boolean,
32
- default: !1
33
- },
34
- allowEditClients: {
35
- type: Boolean,
36
- default: !0
37
- },
38
- contentSlot: {
39
- type: String,
40
- default: null
41
- },
42
- footerSlot: {
43
- type: String,
44
- default: null
45
- },
46
- // widget internals
47
- setFormValue: {
48
- type: Function,
49
- default: null
50
- },
51
- removeFormValue: {
52
- type: Function,
53
- default: null
54
- },
55
- closeFunc: {
56
- type: Function,
57
- default: null
58
- },
59
- beforeSave: {
60
- type: Function,
61
- default: null
62
- },
63
- beforeSend: {
64
- type: Function,
65
- default: null
66
- }
67
- },
68
- data() {
69
- return {
70
- document: null
71
- };
72
- },
73
- computed: {
74
- ...r({
75
- company: "application/company",
76
- can: "application/can",
77
- rawDoc: "forms/document",
78
- isPosting: "documents2/isPosting"
79
- })
80
- },
81
- watch: {
82
- rawDoc: {
83
- immediate: !0,
84
- handler() {
85
- this.initDoc();
86
- }
87
- }
88
- },
89
- async created() {
90
- this.setDocValue && (a.setFormValue = this.setDocValue), this.removeDocValue && (a.removeFormValue = this.removeDocValue);
91
- },
92
- methods: {
93
- ...i({
94
- saveDocument: u.SAVE_DYNDOC_FORM
95
- // loadCompanyUser: global.LOAD_COMPANY_USER,
96
- }),
97
- async initDoc() {
98
- if (!this.rawDoc)
99
- throw new Error("Missing initiated form document");
100
- this.document = new c({
101
- data: this.rawDoc,
102
- can: this.can,
103
- getters: this.$store.getters,
104
- updateSender: !0
105
- });
106
- },
107
- setDocValue({ key: t, value: e }) {
108
- return this.setFormValue({ key: t, value: e });
109
- },
110
- removeDocValue(t) {
111
- return this.removeFormValue(t);
112
- },
113
- async onSaveDocument({ doSend: t = !1 } = {}) {
114
- let e = !1;
115
- 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();
116
- },
117
- close() {
118
- var t;
119
- (t = this.closeFunc) == null || t.call(this);
120
- }
121
- }
122
- };
123
- var f = function() {
124
- var e = this, o = e._self._c;
125
- return e.document ? o("SendForm", { staticClass: "h-full w-full", attrs: { _document: e.document, _value: {
126
- expiresAt: "data.expiresAt",
127
- personalMessage: "data.personalMessage",
128
- defaultAnswerMethod: "data.defaultAnswerMethod",
129
- clients: "clients",
130
- reminders: "data.reminders",
131
- name: "data.name"
132
- }, "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": "" } }, [e.contentSlot ? o("div", { attrs: { slot: "content" }, domProps: { innerHTML: e._s(e.contentSlot) }, slot: "content" }) : e._e(), e.footerSlot ? o("div", { attrs: { slot: "footer" }, domProps: { innerHTML: e._s(e.footerSlot) }, slot: "footer" }) : e._e()]) : 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);
133
- }, p = [], h = /* @__PURE__ */ m(
134
- d,
135
- f,
136
- p,
137
- !1,
138
- null,
139
- null
140
- );
141
- const S = h.exports;
142
- export {
143
- S as default
144
- };
@@ -1,38 +0,0 @@
1
- import { C as o } from "./index-aoff9oUi.js";
2
- import { n as s } from "./main-WKzC-Dnu.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-WKzC-Dnu.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, J as h, c, I as l, K as p, L as a, M as m } from "./main-WKzC-Dnu.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: this.$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
- "c95522c4"
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,210 +0,0 @@
1
- import { g as p, n as u } from "./main-WKzC-Dnu.js";
2
- import { m as g, a as _ } from "./vuex.esm-DKGl8mcw.js";
3
- const f = {
4
- sv: {
5
- title: "Verifikat på signering",
6
- waitingForSign: "Väntar på signatur",
7
- signMethod: "Signeringsmetod",
8
- remaining: "{{count}} st signaturer kvarstår innan dokumentet är helt signerat.",
9
- confirmChangeMessage: "Vill du verkligen byta signeringsmetod för {{- name}}?",
10
- bankIdHint: "Identifiering och signering säkerställd med BankID."
11
- },
12
- en: {
13
- title: "Signature verification",
14
- waitingForSign: "Waiting for signature",
15
- signMethod: "Sign method",
16
- remaining: "{{count}} signatures are remaining before the document is completely signed.",
17
- confirmChangeMessage: "Do you really want to change sign method for {{- name}}?",
18
- bankIdHint: "Identity and signature confirmed with BankID"
19
- }
20
- }, x = {
21
- name: "DocumentReceipt",
22
- i18nOptions: {
23
- namespaces: "documentReceipt",
24
- messages: f
25
- },
26
- props: {
27
- document: {
28
- type: Object,
29
- required: !0
30
- },
31
- allowSignMethodUpdate: {
32
- type: Boolean,
33
- default: !0
34
- }
35
- },
36
- computed: {
37
- ...g({
38
- feature: "application/feature"
39
- }),
40
- signees() {
41
- const { senderClient: a, clients: t } = this.document;
42
- return [
43
- ...a ? [a] : [],
44
- ...(t || []).map((n, s) => ({ ...n, index: s }))
45
- ].filter(
46
- (n) => {
47
- var s;
48
- return ["signee", "approver"].includes(n.documentRole) || ((s = n.answer) == null ? void 0 : s.didAccept);
49
- }
50
- ).map(
51
- ({
52
- name: n = "",
53
- companyName: s,
54
- email: o,
55
- socialNo: c = null,
56
- answerMethod: i,
57
- answer: d,
58
- documentRole: m,
59
- index: l
60
- }) => ({
61
- name: n || s || o,
62
- socialNo: c,
63
- method: (i == null ? void 0 : i.accept) || "",
64
- documentRole: m,
65
- ...d,
66
- index: l
67
- })
68
- );
69
- },
70
- waitingFor() {
71
- return this.document.recipients.reduce(
72
- (a, t) => {
73
- var e;
74
- return t.answer || !["signee", "approver"].includes(t.documentRole) || ((e = t.answerMethod) == null ? void 0 : e.accept) === "inPerson" ? a : [...a, t];
75
- },
76
- []
77
- );
78
- },
79
- documentName() {
80
- return this.document.name || "";
81
- },
82
- sentByName() {
83
- var a, t;
84
- return ((t = (a = this.document.sender) == null ? void 0 : a.user) == null ? void 0 : t.name) || "";
85
- },
86
- signOptions() {
87
- var a;
88
- return ((a = this.document) == null ? void 0 : a.signOptions) || [];
89
- }
90
- },
91
- methods: {
92
- ..._({
93
- showMessage: p.SHOW_MESSAGE,
94
- updateDocument: p.UPDATE_DOCUMENT2
95
- }),
96
- getIconType(a) {
97
- return a === "signee" ? "pen-tool" : a === "recipient" ? "eye" : a === "approver" ? "check" : "shield";
98
- },
99
- getBrowserString({ browser: a, os: t, device: e }) {
100
- return [a == null ? void 0 : a.name, t == null ? void 0 : t.name, e == null ? void 0 : e.model].filter((n) => !!n).join(", ");
101
- },
102
- onUpdate(a, t) {
103
- this.showMessage({
104
- displayType: "dialog",
105
- type: "secondary",
106
- title: this.$t("_common:change", {
107
- thing: this.$t("_common:signMethod.title").toLowerCase()
108
- }),
109
- message: this.$t("confirmChangeMessage", { name: a.name }),
110
- actions: {
111
- cancel: {
112
- text: this.$t("_common:cancel"),
113
- callback: "cancel"
114
- },
115
- submit: {
116
- text: this.$t("actions:updateDocumentDialog.submit"),
117
- callback: () => this.updateSignMethod(a.index, t)
118
- }
119
- }
120
- });
121
- },
122
- async updateSignMethod(a, t) {
123
- const { id: e } = this.document || {}, n = { [`clients.${a}.answerMethod.accept`]: t };
124
- await this.updateDocument({
125
- id: e,
126
- body: n,
127
- params: { type: "paths" }
128
- });
129
- }
130
- }
131
- };
132
- var h = function() {
133
- var t = this, e = t._self._c;
134
- 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([
135
- [t.$t("_common:sentByName"), t.sentByName],
136
- [
137
- t.$t("_components:status.sent"),
138
- t.$formatDate(t.document.sentAt, "Pp")
139
- ],
140
- [
141
- t.$t("_components:replyBy"),
142
- t.document.status === "sent" && t.$formatDate(t.document.expiresAt)
143
- ],
144
- [
145
- t.$t("_components:status.accepted"),
146
- t.$formatDate(t.document.acceptedAt, "Pp")
147
- ]
148
- ], function([n, s], o) {
149
- 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()];
150
- })], 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) {
151
- var o, c;
152
- 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([
153
- [t.$t("_common:socialNo").capitalize(), n.socialNo],
154
- [
155
- t.$t("signMethod"),
156
- t.$t(`_common:signMethod.${n.method}`),
157
- "signMethod"
158
- ],
159
- [
160
- `${t.$t("_common:date").capitalize()} & ${t.$t("_common:time")}`,
161
- t.$formatDate(n.didAnswerAt, "Pp")
162
- ],
163
- ["IP-" + t.$t("_common:address"), n.ip],
164
- [
165
- `${t.$t("_common:browser")}, OS & ${t.$t("_common:device")}`,
166
- t.getBrowserString(n)
167
- ]
168
- ], function([i, d, m], l) {
169
- 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" } } }, [e("div", { staticClass: "text-primary-500 text-xs font-medium underline", attrs: { slot: "trigger" }, domProps: { textContent: t._s(t.$t("_common:change")) }, slot: "trigger" }), t._l(t.signOptions, function(r) {
170
- return e("CDropdownItem", { key: r, attrs: { "icon-right": n.method === r ? "check" : "" }, on: { click: function(D) {
171
- n.method !== r && t.onUpdate(n, r);
172
- } } }, [t._v(" " + t._s(t.$t(`_common:signMethod.${r}`)) + " ")]);
173
- })], 2) : t._e()], 1)]) : t._e()];
174
- })], 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()]);
175
- }), 0)]);
176
- }, y = [], b = /* @__PURE__ */ u(
177
- x,
178
- h,
179
- y,
180
- !1,
181
- null,
182
- null
183
- );
184
- const v = b.exports, C = {
185
- name: "DocReceipt",
186
- components: {
187
- DocumentReceipt: v
188
- },
189
- props: {
190
- document: {
191
- type: Object,
192
- required: !0
193
- }
194
- }
195
- };
196
- var $ = function() {
197
- var t = this, e = t._self._c;
198
- return e("div", [e("DocumentReceipt", { attrs: { document: t.document, "allow-sign-method-update": !1 } })], 1);
199
- }, k = [], w = /* @__PURE__ */ u(
200
- C,
201
- $,
202
- k,
203
- !1,
204
- null,
205
- null
206
- );
207
- const M = w.exports;
208
- export {
209
- M as default
210
- };