@cling-se/widget 0.5.3 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DocFormSend.7f2914ae.js → DocFormSend.3454b646.js} +901 -632
- package/dist/{DocReceipt.7b70887a.js → DocReceipt.a6684947.js} +31 -31
- package/dist/DocSendReminder.06ea8eec.js +115 -0
- package/dist/{DocTimeline.359dea4f.js → DocTimeline.90191a9e.js} +82 -82
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +294 -286
- package/dist/{main.21e6cfa7.js → main.44d450fa.js} +32130 -32248
- package/package.json +1 -1
- package/stats.html +1 -1
- package/dist/DocSendReminder.688ee5e6.js +0 -102
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { f as g, h as p, n as u } from "./main.
|
|
1
|
+
import { f as g, h as p, n as u } from "./main.44d450fa.js";
|
|
2
2
|
const _ = {
|
|
3
|
+
sv: {
|
|
4
|
+
title: "Verifikat p\xE5 signering",
|
|
5
|
+
waitingForSign: "V\xE4ntar p\xE5 signatur",
|
|
6
|
+
signMethod: "Signeringsmetod",
|
|
7
|
+
remaining: "{{count}} st signaturer kvarst\xE5r innan dokumentet \xE4r helt signerat.",
|
|
8
|
+
confirmChangeMessage: "Vill du verkligen byta signeringsmetod f\xF6r {{- name}}?",
|
|
9
|
+
bankIdHint: "Identifiering och signering s\xE4kerst\xE4lld med BankID."
|
|
10
|
+
},
|
|
11
|
+
en: {
|
|
12
|
+
title: "Signature verification",
|
|
13
|
+
waitingForSign: "Waiting for signature",
|
|
14
|
+
signMethod: "Sign method",
|
|
15
|
+
remaining: "{{count}} signatures are remaining before the document is completely signed.",
|
|
16
|
+
confirmChangeMessage: "Do you really want to change sign method for {{- name}}?",
|
|
17
|
+
bankIdHint: "Identity and signature confirmed with BankID"
|
|
18
|
+
}
|
|
19
|
+
}, f = {
|
|
3
20
|
name: "DocumentReceipt",
|
|
4
21
|
i18nOptions: {
|
|
5
|
-
namespaces: "
|
|
6
|
-
messages:
|
|
7
|
-
en: {
|
|
8
|
-
title: "Signature verification",
|
|
9
|
-
waitingForSign: "Waiting for signature",
|
|
10
|
-
signMethod: "Sign method",
|
|
11
|
-
remaining: "{{count}} signatures are remaining before the document is completely signed.",
|
|
12
|
-
confirmChangeMessage: "Do you really want to change sign method for {{- name}}?",
|
|
13
|
-
bankIdHint: "Identity and signature confirmed with BankID"
|
|
14
|
-
},
|
|
15
|
-
sv: {
|
|
16
|
-
title: "Verifikat p\xE5 signering",
|
|
17
|
-
waitingForSign: "V\xE4ntar p\xE5 signatur",
|
|
18
|
-
signMethod: "Signeringsmetod",
|
|
19
|
-
remaining: "{{count}} st signaturer kvarst\xE5r innan dokumentet \xE4r helt signerat.",
|
|
20
|
-
confirmChangeMessage: "Vill du verkligen byta signeringsmetod f\xF6r {{- name}}?",
|
|
21
|
-
bankIdHint: "Identifiering och signering s\xE4kerst\xE4lld med BankID."
|
|
22
|
-
}
|
|
23
|
-
}
|
|
22
|
+
namespaces: "documentReceipt",
|
|
23
|
+
messages: _
|
|
24
24
|
},
|
|
25
25
|
props: {
|
|
26
26
|
document: {
|
|
@@ -119,7 +119,7 @@ const _ = {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
|
-
var
|
|
122
|
+
var x = function() {
|
|
123
123
|
var t = this, e = t._self._c;
|
|
124
124
|
return e("div", { staticClass: "rounded-lg text-gray-600 pt-4 px-1 pb-1 bg-gray-100 border border-gray-200" }, [e("div", { staticClass: "mb-1 relative leading-5" }, [e("div", { staticClass: "pl-4 pb-1" }, [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([
|
|
125
125
|
[t.$t("_common:sentByName"), t.sentByName],
|
|
@@ -142,23 +142,23 @@ var f = function() {
|
|
|
142
142
|
"signature",
|
|
143
143
|
"inPerson"
|
|
144
144
|
], function(r) {
|
|
145
|
-
return e("CDropdownItem", { key: r, attrs: { "icon-right": n.method === r ? "check" : "" }, on: { click: function(
|
|
145
|
+
return e("CDropdownItem", { key: r, attrs: { "icon-right": n.method === r ? "check" : "" }, on: { click: function(w) {
|
|
146
146
|
n.method !== r && t.onUpdate(n, r);
|
|
147
147
|
} } }, [t._v(" " + t._s(t.$t(`_common:signMethod.${r}`)) + " ")]);
|
|
148
148
|
})], 2) : t._e()], 1)]) : t._e()];
|
|
149
|
-
})], 2)], 1), n.signatureDataURL ? e("div", { staticClass: "h-20 mx-4 border-t border-gray-100" }, [e("img", { staticClass: "h-full", attrs: { src: n.signatureDataURL } })]) : n.didAccept && n.method === "bankId" ? e("div", { staticClass: "bg-gray-300 mx-4 mb-4 text-white/90 flex items-center p-1.5 rounded-md", staticStyle: { background: "linear-gradient(45deg, hsl(200deg 35% 17%), hsl(199deg 25% 30%))", border: "1px solid #35677e" } }, [e("div", { staticClass: "rounded-md w-9 h-9 flex items-center justify-center mr-2 ml-0.5 bg-[#183e4f] border border-[#275369]" }, [e("BaseIcon", { 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) + " \xB7 " + t._s(n.socialNo))])])]) : t._e()]);
|
|
149
|
+
})], 2)], 1), n.signatureDataURL ? e("div", { staticClass: "h-20 mx-4 py-6 border-t border-gray-100" }, [e("img", { staticClass: "h-full", attrs: { src: n.signatureDataURL } })]) : n.didAccept && n.method === "bankId" ? e("div", { staticClass: "bg-gray-300 mx-4 mb-4 text-white/90 flex items-center p-1.5 rounded-md", staticStyle: { background: "linear-gradient(45deg, hsl(200deg 35% 17%), hsl(199deg 25% 30%))", border: "1px solid #35677e" } }, [e("div", { staticClass: "rounded-md w-9 h-9 flex items-center justify-center mr-2 ml-0.5 bg-[#183e4f] border border-[#275369]" }, [e("BaseIcon", { 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) + " \xB7 " + t._s(n.socialNo))])])]) : t._e()]);
|
|
150
150
|
}), 0)]);
|
|
151
|
-
},
|
|
152
|
-
_,
|
|
151
|
+
}, h = [], y = /* @__PURE__ */ u(
|
|
153
152
|
f,
|
|
154
153
|
x,
|
|
154
|
+
h,
|
|
155
155
|
!1,
|
|
156
156
|
null,
|
|
157
157
|
null,
|
|
158
158
|
null,
|
|
159
159
|
null
|
|
160
160
|
);
|
|
161
|
-
const b =
|
|
161
|
+
const b = y.exports, v = {
|
|
162
162
|
name: "DocReceipt",
|
|
163
163
|
components: {
|
|
164
164
|
DocumentReceipt: b
|
|
@@ -170,20 +170,20 @@ const b = h.exports, y = {
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
};
|
|
173
|
-
var
|
|
173
|
+
var C = function() {
|
|
174
174
|
var t = this, e = t._self._c;
|
|
175
175
|
return e("div", [e("DocumentReceipt", { attrs: { document: t.document, "allow-sign-method-update": !1 } })], 1);
|
|
176
|
-
},
|
|
177
|
-
y,
|
|
176
|
+
}, $ = [], k = /* @__PURE__ */ u(
|
|
178
177
|
v,
|
|
179
178
|
C,
|
|
179
|
+
$,
|
|
180
180
|
!1,
|
|
181
181
|
null,
|
|
182
182
|
null,
|
|
183
183
|
null,
|
|
184
184
|
null
|
|
185
185
|
);
|
|
186
|
-
const
|
|
186
|
+
const I = k.exports;
|
|
187
187
|
export {
|
|
188
|
-
|
|
188
|
+
I as default
|
|
189
189
|
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { d as m, f as c, h as d, n as a } from "./main.44d450fa.js";
|
|
2
|
+
const l = {
|
|
3
|
+
name: "DocumentSendReminderModal",
|
|
4
|
+
i18nOptions: {
|
|
5
|
+
namespaces: "documentSendReminderModal",
|
|
6
|
+
messages: {
|
|
7
|
+
en: {
|
|
8
|
+
alreadySigned: "already signed",
|
|
9
|
+
cannotSign: "can't sign"
|
|
10
|
+
},
|
|
11
|
+
sv: {
|
|
12
|
+
alreadySigned: "har signerat",
|
|
13
|
+
cannotSign: "kan ej signera"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
props: {
|
|
18
|
+
document: {
|
|
19
|
+
type: Object,
|
|
20
|
+
required: !0
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
data() {
|
|
24
|
+
return {
|
|
25
|
+
clientsToSend: []
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
computed: {
|
|
29
|
+
...m({
|
|
30
|
+
feature: "application/feature"
|
|
31
|
+
})
|
|
32
|
+
},
|
|
33
|
+
created() {
|
|
34
|
+
const { events: s = [], clients: e = [] } = this.document || {}, n = s.reduce((t, { code: i, data: o }) => i === "sent" && o && o.clients && o.clients.length ? [...t, ...o.clients.map(({ id: r }) => r)] : t, []);
|
|
35
|
+
this.clientsToSend = e.filter(({ id: t }) => n.includes(t)), this.feature("sms") || this.clientsToSend.forEach((t, i) => {
|
|
36
|
+
this.isTypeActive("sms", t) && this.setDeliveryMethod("sms", i);
|
|
37
|
+
}), this.clientsToSend.forEach((t, i) => {
|
|
38
|
+
(!!t.answer || t.documentRole === "recipient") && ["sms", "email"].forEach((o) => {
|
|
39
|
+
this.isTypeActive(o, t) && this.setDeliveryMethod(o, i);
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
},
|
|
43
|
+
methods: {
|
|
44
|
+
...c({
|
|
45
|
+
sendDocumentReminder: d.SEND_REMINDER_DOCUMENT2
|
|
46
|
+
}),
|
|
47
|
+
async submit() {
|
|
48
|
+
await this.sendDocumentReminder({
|
|
49
|
+
id: this.document.id,
|
|
50
|
+
body: {
|
|
51
|
+
clients: this.clientsToSend
|
|
52
|
+
}
|
|
53
|
+
}), this.$emit("close");
|
|
54
|
+
},
|
|
55
|
+
canSendType(s, e) {
|
|
56
|
+
return !!e[s === "sms" ? "cellphone" : "email"];
|
|
57
|
+
},
|
|
58
|
+
isTypeActive(s, e) {
|
|
59
|
+
return e.deliveryTypes.includes(s) && this.canSendType(s, e);
|
|
60
|
+
},
|
|
61
|
+
setDeliveryMethod(s, e) {
|
|
62
|
+
const n = this.clientsToSend[e].deliveryTypes.findIndex((t) => t === s);
|
|
63
|
+
n > -1 ? this.clientsToSend[e].deliveryTypes.splice(n, 1) : this.clientsToSend[e].deliveryTypes.push(s);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
var u = function() {
|
|
68
|
+
var e = this, n = e._self._c;
|
|
69
|
+
return n("div", { staticClass: "bg-white rounded-xl p-8" }, [n("div", { staticClass: "mb-6 text-lg font-semibold", domProps: { textContent: e._s(e.$t("_common:send", { thing: e.$t("_common:reminder") })) } }), e._l(e.clientsToSend, function(t, i) {
|
|
70
|
+
return n("div", { key: i, staticClass: "border border-gray-200 p-2 rounded-lg mb-3" }, [n("div", { staticClass: "mb-2 pl-1" }, [n("div", { staticClass: "font-medium text-sm" }, [e._v(e._s(t.name || t.companyName))]), t.answer ? n("div", { staticClass: "text-gray-500 text-xs", domProps: { textContent: e._s(e.$t("alreadySigned").capitalize()) } }) : t.documentRole === "recipient" ? n("div", { staticClass: "text-gray-500 text-xs", domProps: { textContent: e._s(e.$t("cannotSign").capitalize()) } }) : e._e()]), n("div", { staticClass: "flex" }, [n("div", { staticClass: "py-1.5 pl-1.5 rounded-md bg-gray-100 border border-gray-200 items-center flex mr-2" }, [n("CCheckbox", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: { ...!e.canSendType("sms", t) && { content: e.$t("_common:missing", { thing: e.$t("_common:phoneNumber") }) } }, expression: "{ ...(!canSendType('sms', client) && { content: $t('_common:missing', { thing: $t('_common:phoneNumber') }) }) }" }], staticClass: "font-medium mr-2", attrs: { value: e.isTypeActive("sms", t), size: "tiny", disabled: !e.feature("sms") || !e.canSendType("sms", t) }, on: { input: function(o) {
|
|
71
|
+
return e.setDeliveryMethod("sms", i);
|
|
72
|
+
} } }, [e._v(" " + e._s(e.$t("_common:sms")) + " ")])], 1), n("div", { staticClass: "py-1.5 pl-1.5 pr-2.5 rounded-md bg-gray-100 border border-gray-200 items-center flex" }, [n("CCheckbox", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: { ...!e.canSendType("email", t) && { content: e.$t("_common:missing", { thing: e.$t("_common:email") }) } }, expression: "{ ...(!canSendType('email', client) && { content: $t('_common:missing', { thing: $t('_common:email') }) }) }" }], staticClass: "font-medium", attrs: { value: e.isTypeActive("email", t), size: "tiny", disabled: !e.canSendType("email", t) }, on: { input: function(o) {
|
|
73
|
+
return e.setDeliveryMethod("email", i);
|
|
74
|
+
} } }, [e._v(" " + e._s(e.$t("_common:email").capitalize()) + " ")])], 1)])]);
|
|
75
|
+
}), n("CButton", { staticClass: "font-semibold mt-8", attrs: { type: "secondary", size: "small", taller: "", icon: "send", wide: "" }, on: { click: e.submit } }, [e._v(" " + e._s(e.$t("_common:send", { thing: e.$t("_common:reminder") })) + " ")])], 2);
|
|
76
|
+
}, p = [], _ = /* @__PURE__ */ a(
|
|
77
|
+
l,
|
|
78
|
+
u,
|
|
79
|
+
p,
|
|
80
|
+
!1,
|
|
81
|
+
null,
|
|
82
|
+
null,
|
|
83
|
+
null,
|
|
84
|
+
null
|
|
85
|
+
);
|
|
86
|
+
const v = _.exports, y = {
|
|
87
|
+
props: {
|
|
88
|
+
document: {
|
|
89
|
+
type: Object,
|
|
90
|
+
required: !0
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
components: {
|
|
94
|
+
DocumentSendReminderModal: v
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
var h = function() {
|
|
98
|
+
var e = this, n = e._self._c;
|
|
99
|
+
return n("DocumentSendReminderModal", { attrs: { document: e.document }, on: { close: function(t) {
|
|
100
|
+
return e.$router.push("/");
|
|
101
|
+
} } });
|
|
102
|
+
}, f = [], g = /* @__PURE__ */ a(
|
|
103
|
+
y,
|
|
104
|
+
h,
|
|
105
|
+
f,
|
|
106
|
+
!1,
|
|
107
|
+
null,
|
|
108
|
+
null,
|
|
109
|
+
null,
|
|
110
|
+
null
|
|
111
|
+
);
|
|
112
|
+
const T = g.exports;
|
|
113
|
+
export {
|
|
114
|
+
T as default
|
|
115
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as p, i as g, J as f, d as x } from "./main.
|
|
1
|
+
import { n as p, i as g, J as f, d as x } from "./main.44d450fa.js";
|
|
2
2
|
const $ = {
|
|
3
3
|
name: "DynamicLink",
|
|
4
4
|
props: {
|
|
@@ -14,8 +14,8 @@ const $ = {
|
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
var v = function() {
|
|
17
|
-
var
|
|
18
|
-
return t
|
|
17
|
+
var t = this, e = t._self._c;
|
|
18
|
+
return e(t.transformed, { tag: "component" });
|
|
19
19
|
}, b = [], C = /* @__PURE__ */ p(
|
|
20
20
|
$,
|
|
21
21
|
v,
|
|
@@ -109,8 +109,8 @@ const k = C.exports, S = {
|
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
111
|
var D = function() {
|
|
112
|
-
var
|
|
113
|
-
return
|
|
112
|
+
var t = this, e = t._self._c;
|
|
113
|
+
return e("div", { staticClass: "flex flex-nowrap relative text-primary-500 cursor-default pb-5 ml-4 event before:content-[''] before:absolute before:w-px before:h-full before:bg-gray-300 before:-left-px before:top-4 last:before:hidden" }, [e("div", { staticClass: "m-0 h-[23px] relative", staticStyle: { "--bg": "#fff" } }, [e("div", { staticClass: "rounded-full absolute left-1/2 top-1/2 z-[1] w-7 h-7 flex items-center justify-center border-none bg-gray-100", class: t.iconClasses, staticStyle: { transform: "translate(-50%, calc(-50% + 8px))", "box-shadow": "0 0 0 2px var(--bg)" } }, [t.loading ? t._e() : e("BaseIcon", { attrs: { type: t.icon, size: "14" } })], 1)]), e("div", { staticClass: "ml-7 min-w-0 flex-grow flex flex-col pt-1" }, [t.loading ? [e("CSkeleton", { staticClass: "max-w-md text-gray-900 font-medium", class: t.titleSize, attrs: { width: "80%" } }), e("CSkeleton", { staticClass: "text-gray-600", class: t.textSize, attrs: { width: "40%" } }), e("CSkeleton", { staticClass: "text-center text-gray-500 text-xs inline-flex pt-0.5", class: t.dateSize, attrs: { hidden: "" } })] : t._e(), e("div", { staticClass: "max-w-md font-medium", class: [t.isFuture ? "text-gray-500" : "text-gray-700", t.titleSize] }, [t.template ? e("DynamicLink", { attrs: { template: t.template } }) : [t._v(t._s(t.title))]], 2), t.content ? e("div", { class: [t.isFuture ? "text-gray-400" : "text-gray-600", t.textSize] }, [e("div", { domProps: { innerHTML: t._s(t.content) } })]) : t._e(), e("div", { staticClass: "text-center text-gray-500 inline-flex pt-1", class: t.dateSize }, [e("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.date, expression: "date" }] }, [t._v(t._s(t.dayOfMonth) + " " + t._s(t.month))])])], 2)]);
|
|
114
114
|
}, w = [], z = /* @__PURE__ */ p(
|
|
115
115
|
S,
|
|
116
116
|
D,
|
|
@@ -122,49 +122,49 @@ var D = function() {
|
|
|
122
122
|
null
|
|
123
123
|
);
|
|
124
124
|
const I = z.exports, M = {
|
|
125
|
+
sv: {
|
|
126
|
+
clientName: "Kunden",
|
|
127
|
+
byName: "Av {{- name}}",
|
|
128
|
+
withBankId: "med BankID",
|
|
129
|
+
propertyDesignation: "Beg\xE4ran om fastighetsbeteckning",
|
|
130
|
+
viewed: "Granskat",
|
|
131
|
+
viewedContent: "{{- name}} har visat dokumentet",
|
|
132
|
+
signed: "Signerat",
|
|
133
|
+
denied: "Nekat",
|
|
134
|
+
accepted: "godk\xE4nt",
|
|
135
|
+
statusChanged: "Dokumentet blev",
|
|
136
|
+
requestChange: "Markerades manuellt som",
|
|
137
|
+
mailOpened: "Mail visat",
|
|
138
|
+
mailOpenedContent: "{{email}} visat",
|
|
139
|
+
mailDropped: "E-post kunde inte skickas",
|
|
140
|
+
smsDropped: "SMS kunde inte skickas",
|
|
141
|
+
expired: "Upph\xF6rde att g\xE4lla",
|
|
142
|
+
expiredContent: "Markerades som nekat f\xF6r att giltighetstiden har passerat"
|
|
143
|
+
},
|
|
144
|
+
en: {
|
|
145
|
+
clientName: "Client",
|
|
146
|
+
byName: "By {{- name}}",
|
|
147
|
+
withBankId: "with BankID",
|
|
148
|
+
propertyDesignation: "Request for property designation",
|
|
149
|
+
viewed: "Viewed",
|
|
150
|
+
viewedContent: "{{- name}} has viewed the document",
|
|
151
|
+
signed: "Signed",
|
|
152
|
+
denied: "denied",
|
|
153
|
+
accepted: "accepted",
|
|
154
|
+
statusChanged: "Document was",
|
|
155
|
+
requestChange: "Manually marked as",
|
|
156
|
+
mailOpened: "Email opened",
|
|
157
|
+
mailOpenedContent: "{{email}} viewed",
|
|
158
|
+
mailDropped: "Could not send email",
|
|
159
|
+
smsDropped: "Could not send SMS",
|
|
160
|
+
expired: "Expired",
|
|
161
|
+
expiredContent: "Marked as declined - expiration date has passed"
|
|
162
|
+
}
|
|
163
|
+
}, B = {
|
|
125
164
|
name: "DocumentTimeline",
|
|
126
165
|
i18nOptions: {
|
|
127
|
-
namespaces: "
|
|
128
|
-
messages:
|
|
129
|
-
en: {
|
|
130
|
-
clientName: "Client",
|
|
131
|
-
byName: "By {{- name}}",
|
|
132
|
-
withBankId: "with BankID",
|
|
133
|
-
propertyDesignation: "Request for property designation",
|
|
134
|
-
viewed: "Viewed",
|
|
135
|
-
viewedContent: "{{- name}} has viewed the document",
|
|
136
|
-
signed: "Signed",
|
|
137
|
-
denied: "denied",
|
|
138
|
-
accepted: "accepted",
|
|
139
|
-
statusChanged: "Document was",
|
|
140
|
-
requestChange: "Manually marked as",
|
|
141
|
-
mailOpened: "Email opened",
|
|
142
|
-
mailOpenedContent: "{{email}} viewed",
|
|
143
|
-
mailDropped: "Could not send email",
|
|
144
|
-
smsDropped: "Could not send SMS",
|
|
145
|
-
expired: "Expired",
|
|
146
|
-
expiredContent: "Marked as declined - expiration date has passed"
|
|
147
|
-
},
|
|
148
|
-
sv: {
|
|
149
|
-
clientName: "Kunden",
|
|
150
|
-
byName: "Av {{- name}}",
|
|
151
|
-
withBankId: "med BankID",
|
|
152
|
-
propertyDesignation: "Beg\xE4ran om fastighetsbeteckning",
|
|
153
|
-
viewed: "Granskat",
|
|
154
|
-
viewedContent: "{{- name}} har visat dokumentet",
|
|
155
|
-
signed: "Signerat",
|
|
156
|
-
denied: "Nekat",
|
|
157
|
-
accepted: "godk\xE4nt",
|
|
158
|
-
statusChanged: "Dokumentet blev",
|
|
159
|
-
requestChange: "Markerades manuellt som",
|
|
160
|
-
mailOpened: "Mail visat",
|
|
161
|
-
mailOpenedContent: "{{email}} visat",
|
|
162
|
-
mailDropped: "E-post kunde inte skickas",
|
|
163
|
-
smsDropped: "SMS kunde inte skickas",
|
|
164
|
-
expired: "Upph\xF6rde att g\xE4lla",
|
|
165
|
-
expiredContent: "Markerades som nekat f\xF6r att giltighetstiden har passerat"
|
|
166
|
-
}
|
|
167
|
-
}
|
|
166
|
+
namespaces: "documentTimeline",
|
|
167
|
+
messages: M
|
|
168
168
|
},
|
|
169
169
|
components: {
|
|
170
170
|
EventItem: I
|
|
@@ -190,9 +190,9 @@ const I = z.exports, M = {
|
|
|
190
190
|
code: "created",
|
|
191
191
|
createdAt: (i = this.document) == null ? void 0 : i.createdAt
|
|
192
192
|
})
|
|
193
|
-
], { events:
|
|
194
|
-
if ((
|
|
195
|
-
const r =
|
|
193
|
+
], { events: t, scheduledFirstDelivery: e } = this.document || {};
|
|
194
|
+
if ((e == null ? void 0 : e.status) === "active") {
|
|
195
|
+
const r = e.deliveryTypes.join(
|
|
196
196
|
` ${this.$t("_common:and")} `
|
|
197
197
|
);
|
|
198
198
|
n.push({
|
|
@@ -200,18 +200,18 @@ const I = z.exports, M = {
|
|
|
200
200
|
content: `${this.$t(
|
|
201
201
|
"_common:via"
|
|
202
202
|
)} ${r}, ${this.$formatDate(
|
|
203
|
-
|
|
203
|
+
e.sendAt
|
|
204
204
|
)}`,
|
|
205
205
|
isFuture: !0,
|
|
206
206
|
icon: "calendar",
|
|
207
207
|
color: "primary"
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
|
-
return
|
|
210
|
+
return t == null || t.forEach((r) => n.push(this.formatEvent(r))), n;
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
213
|
methods: {
|
|
214
|
-
formatEvent({ code: n, data:
|
|
214
|
+
formatEvent({ code: n, data: t, createdAt: e, children: i = [] }) {
|
|
215
215
|
const {
|
|
216
216
|
client: r = {},
|
|
217
217
|
clients: u,
|
|
@@ -220,18 +220,18 @@ const I = z.exports, M = {
|
|
|
220
220
|
counter: _,
|
|
221
221
|
sendSource: h,
|
|
222
222
|
companyUserId: y
|
|
223
|
-
} =
|
|
223
|
+
} = t || {}, m = _ || i.length + 1, o = r.name;
|
|
224
224
|
return {
|
|
225
225
|
created: () => ({
|
|
226
226
|
title: this.$t("_common:created"),
|
|
227
|
-
createdAt:
|
|
227
|
+
createdAt: e,
|
|
228
228
|
icon: "folder",
|
|
229
229
|
color: "primary"
|
|
230
230
|
}),
|
|
231
231
|
viewed: () => ({
|
|
232
232
|
title: this.$t("viewed"),
|
|
233
233
|
content: (o ? this.$t("viewedContent", { name: o }) : "") + (m ? ` ${this.$tc("_common:times", { count: m })}` : ""),
|
|
234
|
-
createdAt:
|
|
234
|
+
createdAt: e,
|
|
235
235
|
icon: "eye",
|
|
236
236
|
color: "primary"
|
|
237
237
|
}),
|
|
@@ -240,16 +240,16 @@ const I = z.exports, M = {
|
|
|
240
240
|
const s = {
|
|
241
241
|
title: this.$t("_common:status.signed"),
|
|
242
242
|
content: o ? this.$t("byName", { name: o }) : "",
|
|
243
|
-
createdAt:
|
|
243
|
+
createdAt: e,
|
|
244
244
|
icon: "check",
|
|
245
245
|
color: "primary"
|
|
246
246
|
};
|
|
247
|
-
return s.content && ((a = r.answerMethod) == null ? void 0 : a.accept) === "bankId" && (s.content += this.$t("withBankId")), s;
|
|
247
|
+
return s.content && ((a = r.answerMethod) == null ? void 0 : a.accept) === "bankId" && (s.content += ` ${this.$t("withBankId")}`), s;
|
|
248
248
|
},
|
|
249
249
|
denied: () => ({
|
|
250
250
|
title: this.$t("_common:status.denied"),
|
|
251
251
|
content: o ? this.$t("byName", { name: o }) : "",
|
|
252
|
-
createdAt:
|
|
252
|
+
createdAt: e,
|
|
253
253
|
icon: "x",
|
|
254
254
|
color: "primary"
|
|
255
255
|
}),
|
|
@@ -265,7 +265,7 @@ const I = z.exports, M = {
|
|
|
265
265
|
(a, l) => a ? `${a}<div>${l}</div>` : `${this.$t("_common:to")}: ${l}`.capitalize(),
|
|
266
266
|
""
|
|
267
267
|
),
|
|
268
|
-
createdAt:
|
|
268
|
+
createdAt: e,
|
|
269
269
|
icon: h === "reminder" ? "bell" : "send",
|
|
270
270
|
color: "primary"
|
|
271
271
|
};
|
|
@@ -274,7 +274,7 @@ const I = z.exports, M = {
|
|
|
274
274
|
title: `${this.$t("statusChanged")} ${this.$t(
|
|
275
275
|
`_common:status.${d}`
|
|
276
276
|
)}`,
|
|
277
|
-
createdAt:
|
|
277
|
+
createdAt: e,
|
|
278
278
|
icon: d === "accepted" ? "check" : "x",
|
|
279
279
|
color: d === "accepted" ? "green" : "red"
|
|
280
280
|
} : null,
|
|
@@ -286,7 +286,7 @@ const I = z.exports, M = {
|
|
|
286
286
|
`_common:status.${d}`
|
|
287
287
|
)}`,
|
|
288
288
|
content: s && this.$t("byName", { name: s }),
|
|
289
|
-
createdAt:
|
|
289
|
+
createdAt: e,
|
|
290
290
|
icon: "tool",
|
|
291
291
|
color: "primary"
|
|
292
292
|
};
|
|
@@ -296,35 +296,35 @@ const I = z.exports, M = {
|
|
|
296
296
|
thing: this.$t("_common:email").capitalize()
|
|
297
297
|
}),
|
|
298
298
|
content: c ? `${this.$t("_common:to")}: ${c}`.capitalize() : "",
|
|
299
|
-
createdAt:
|
|
299
|
+
createdAt: e,
|
|
300
300
|
icon: "inbox",
|
|
301
301
|
color: "primary"
|
|
302
302
|
}),
|
|
303
303
|
mailOpened: () => ({
|
|
304
304
|
title: this.$t("mailOpened"),
|
|
305
305
|
content: `${this.$t("mailOpenedContent", { email: c })} ${m ? this.$tc("_common:times", { count: m }) : ""}`,
|
|
306
|
-
createdAt:
|
|
306
|
+
createdAt: e,
|
|
307
307
|
icon: "email",
|
|
308
308
|
color: "primary"
|
|
309
309
|
}),
|
|
310
310
|
mailDropped: () => ({
|
|
311
311
|
title: this.$t("mailDropped"),
|
|
312
312
|
content: c ? this.$t("toEmail", { email: c }) : null,
|
|
313
|
-
createdAt:
|
|
313
|
+
createdAt: e,
|
|
314
314
|
icon: "alert-triangle",
|
|
315
315
|
color: "orange"
|
|
316
316
|
}),
|
|
317
317
|
smsDropped: () => ({
|
|
318
318
|
title: this.$t("smsDropped"),
|
|
319
|
-
content:
|
|
320
|
-
createdAt:
|
|
319
|
+
content: t ? `${this.$t("_common:to")}: ${t}`.capitalize() : "",
|
|
320
|
+
createdAt: e,
|
|
321
321
|
icon: "alert-triangle",
|
|
322
322
|
color: "orange"
|
|
323
323
|
}),
|
|
324
324
|
expired: () => ({
|
|
325
325
|
title: this.$t("expired"),
|
|
326
326
|
content: this.$t("expiredContent"),
|
|
327
|
-
createdAt:
|
|
327
|
+
createdAt: e,
|
|
328
328
|
icon: "x",
|
|
329
329
|
color: "red"
|
|
330
330
|
})
|
|
@@ -332,25 +332,25 @@ const I = z.exports, M = {
|
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
};
|
|
335
|
-
var
|
|
336
|
-
var
|
|
337
|
-
return
|
|
338
|
-
return
|
|
335
|
+
var O = function() {
|
|
336
|
+
var t = this, e = t._self._c;
|
|
337
|
+
return e("div", [e("div", { staticClass: "border-b mb-4 pb-4" }, [e("div", { staticClass: "mb-2" }, [e("div", { staticClass: "text-xs text-gray-600", domProps: { textContent: t._s(t.$t("_common:document").capitalize()) } }), e("div", { staticClass: "font-semibold text-lg" }, [t._v(t._s(t.document.name))])]), e("div", { staticClass: "inline-flex items-center rounded-full bg-gray-100 border-gray-200 -ml-2" }, [e("div", { staticClass: "text-xs text-gray-600 mr-1 py-1 pl-2", domProps: { textContent: t._s(t.$t("_common:status.status")) } }), e("div", { staticClass: "text-xs font-semibold py-1 px-2 bg-gray-300 rounded-r-full", domProps: { textContent: t._s(t.$t(`_common:status.${t.document.status}`)) } })])]), t._l(t.events, function(i, r) {
|
|
338
|
+
return e("EventItem", { key: r, attrs: { title: i.title, content: i.content, createdAt: i.createdAt, icon: i.icon, color: i.color, "is-future": i.isFuture, size: "large" } });
|
|
339
339
|
})], 2);
|
|
340
|
-
},
|
|
341
|
-
M,
|
|
340
|
+
}, E = [], N = /* @__PURE__ */ p(
|
|
342
341
|
B,
|
|
343
342
|
O,
|
|
343
|
+
E,
|
|
344
344
|
!1,
|
|
345
345
|
null,
|
|
346
346
|
null,
|
|
347
347
|
null,
|
|
348
348
|
null
|
|
349
349
|
);
|
|
350
|
-
const
|
|
350
|
+
const T = N.exports, q = {
|
|
351
351
|
name: "DocTimeline",
|
|
352
352
|
components: {
|
|
353
|
-
DocumentTimeline:
|
|
353
|
+
DocumentTimeline: T
|
|
354
354
|
},
|
|
355
355
|
props: {
|
|
356
356
|
id: {
|
|
@@ -359,20 +359,20 @@ const N = E.exports, T = {
|
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
};
|
|
362
|
-
var
|
|
363
|
-
var
|
|
364
|
-
return
|
|
365
|
-
},
|
|
366
|
-
T,
|
|
362
|
+
var F = function() {
|
|
363
|
+
var t = this, e = t._self._c;
|
|
364
|
+
return e("div", { staticClass: "p-8" }, [e("DocumentTimeline", { attrs: { id: t.id } })], 1);
|
|
365
|
+
}, P = [], R = /* @__PURE__ */ p(
|
|
367
366
|
q,
|
|
368
367
|
F,
|
|
368
|
+
P,
|
|
369
369
|
!1,
|
|
370
370
|
null,
|
|
371
371
|
null,
|
|
372
372
|
null,
|
|
373
373
|
null
|
|
374
374
|
);
|
|
375
|
-
const
|
|
375
|
+
const A = R.exports;
|
|
376
376
|
export {
|
|
377
|
-
|
|
377
|
+
A as default
|
|
378
378
|
};
|