@cling-se/widget 0.14.4 → 0.14.6
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/AddClientCallout-C7abPZ87.js +46 -0
- package/dist/AnswerModal-CsA2pl2P.js +3874 -0
- package/dist/AttachmentItem-Da1-7xwf.js +78 -0
- package/dist/BaseDatePicker-k9zlSi5J.js +3183 -0
- package/dist/BaseUpload-BUrXX3fT.js +1977 -0
- package/dist/BlockMedia-CYI07qAn.js +76 -0
- package/dist/CCallout-Qwae66vo.js +59 -0
- package/dist/CCurrencyDropdown-Y_u0hgBx.js +246 -0
- package/dist/CDropdownItem-CXJ4xD8W.js +538 -0
- package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +1 -0
- package/dist/CFormField--m3PvQuT.js +241 -0
- package/dist/CPhoneFormat-Qg6MkDVP.js +62 -0
- package/dist/CPriceInput-Dlx44UrR.js +112 -0
- package/dist/CTabs.vue_vue_type_style_index_0_scoped_b7262014_lang-l0sNRNKZ.js +1 -0
- package/dist/ClientAutocomplete-BKKc_br6.js +78 -0
- package/dist/ClientModal-CVZFb1Br.js +625 -0
- package/dist/ColorPicker-Bo3s3Esp.js +2879 -0
- package/dist/CompanyModal-DadjAioS.js +141 -0
- package/dist/ContentWrapper-BC3ZBQW9.js +183 -0
- package/dist/CoverBlockSettings-B484eE4g.js +275 -0
- package/dist/DocAnswer-CcYryOWI.js +36 -0
- package/dist/DocDetails-BigsoEWL.js +246 -0
- package/dist/DocForm-DlN0eNWt.js +7273 -0
- package/dist/DocFormSend-TqKo210I.js +143 -0
- package/dist/DocLinks-DSo54vDn.js +38 -0
- package/dist/DocModalBase-XlM1SThW.js +28 -0
- package/dist/DocPrint-tD0Vd9Sw.js +240 -0
- package/dist/DocReceipt-CDHPrhXM.js +210 -0
- package/dist/DocSendReminder-C62RhltH.js +137 -0
- package/dist/DocTextEditor-VjhV9IRp.js +17181 -0
- package/dist/DocTimeline-LcW4z3nC.js +481 -0
- package/dist/DocumentClient-CqbTRdpB.js +136 -0
- package/dist/DocumentLayout-Dbf8_01r.js +4909 -0
- package/dist/DocumentLogotype-DXYnBedV.js +87 -0
- package/dist/DocumentVoided-vH1Ti5lZ.js +25 -0
- package/dist/EmbedInput-D9qP8OnY.js +113 -0
- package/dist/EmbedSettings-DISuNqJT.js +72 -0
- package/dist/ErrorCallout-CCtCVwSh.js +28 -0
- package/dist/FilePreviewModal-BjhNyb6L.js +81 -0
- package/dist/Flag-Dhukv9_J.js +114 -0
- package/dist/HeaderSettings-CK4SkB1x.js +392 -0
- package/dist/ImageSelectModal-DnvPZzXx.js +84 -0
- package/dist/ImageUploadWrapper-B7cNMu5a.js +1604 -0
- package/dist/Index-B3HoK_cZ.js +84 -0
- package/dist/Index-B3aucNji.js +25 -0
- package/dist/Index-B9H5MMHb.js +62 -0
- package/dist/Index-BAYdvT-t.js +754 -0
- package/dist/Index-BLeQprjq.js +46 -0
- package/dist/Index-BOyvQlng.js +154 -0
- package/dist/Index-BVsw2tak.js +70 -0
- package/dist/Index-BY1UKGEO.js +98 -0
- package/dist/Index-Bh0kMSsA.js +107 -0
- package/dist/Index-BlQSM7tC.js +144 -0
- package/dist/Index-BpcJBGGd.js +642 -0
- package/dist/Index-Bs8wprXw.js +58 -0
- package/dist/Index-BvZZAvFd.js +21 -0
- package/dist/Index-CFo-3Y5Q.js +26 -0
- package/dist/Index-CNvp5K3L.js +559 -0
- package/dist/Index-CPJVx14x.js +171 -0
- package/dist/Index-CQ325eVT.js +140 -0
- package/dist/Index-CWrDtcfT.js +49 -0
- package/dist/Index-CyJnSvDR.js +223 -0
- package/dist/Index-D6bc7lg4.js +52 -0
- package/dist/Index-DCR8ev4U.js +33 -0
- package/dist/Index-DGQSB9cH.js +24 -0
- package/dist/Index-DXAvlq74.js +292 -0
- package/dist/Index-D_rfst8y.js +45 -0
- package/dist/Index-Dm8xMFGg.js +61 -0
- package/dist/Index-DtSSgtxB.js +55 -0
- package/dist/Index-DuTw9vhb.js +77 -0
- package/dist/Index-Dw26jtGV.js +31 -0
- package/dist/Index-OxN73_fO.js +32 -0
- package/dist/Index-S-FHG7_k.js +2402 -0
- package/dist/Index-ZFkitzfq.js +69 -0
- package/dist/Index-dyWK9jgr.js +25 -0
- package/dist/Index-gb11ngPS.js +57 -0
- package/dist/Index-lKk_XKJ3.js +150 -0
- package/dist/InputToggleRow-DSSvhPKA.js +57 -0
- package/dist/ManualPopover-lpJYSkw5.js +58 -0
- package/dist/MediaWrapper-BQ22FA2B.js +23 -0
- package/dist/NotBindingText-JxwzZLPP.js +32 -0
- package/dist/PackageGroup-BLSMSUDz.js +699 -0
- package/dist/PdfTerms-DtutjM5Y.js +36 -0
- package/dist/PdfViewer-BsxcZI_x.js +374 -0
- package/dist/PlainHtml-BMPZs2fT.js +20 -0
- package/dist/PriceHeader-BRYY01H2.js +339 -0
- package/dist/SearchApi-6001iFxU.js +161 -0
- package/dist/Setup-cw6jMI9M.js +50 -0
- package/dist/SmartList-q6H-uLbm.js +83 -0
- package/dist/TermsSettings-DWvaPneu.js +102 -0
- package/dist/ThemeColorRow-BXWnvfz-.js +67 -0
- package/dist/ToggleBinding-DydtwpNG.js +38 -0
- package/dist/UploadModal-D_EDKHGD.js +95 -0
- package/dist/VideoPlayerInput-B9yzUeBW.js +93 -0
- package/dist/VideoPlayerSettings-Bvp9l0yj.js +61 -0
- package/dist/VideoSelectModal-DY3N4JiS.js +100 -0
- package/dist/anime.es-BrPTThYb.js +858 -0
- package/dist/answerDocumentMixin-BYZPU_R-.js +51 -0
- package/dist/color-TdtKxwVa.js +19 -0
- package/dist/debounce-BPnlzNwd.js +84 -0
- package/dist/dom-CJxkno7i.js +91 -0
- package/dist/favicon.ico +0 -0
- package/dist/focusDrawerMixin-DC9Oa1i7.js +22 -0
- package/dist/formComponentsInstall-CEW6TK6z.js +2499 -0
- package/dist/formDrawerState-CAzvSMiQ.js +20 -0
- package/dist/formValidationMixin-D7zXxCpC.js +49 -0
- package/dist/i18nMessages-Chz_lxGG.js +17 -0
- package/dist/index-B9WDC3Xe.js +166 -0
- package/dist/index-BCMaUC5r.js +3916 -0
- package/dist/index-BDMI4NVY.js +492 -0
- package/dist/index-BbscgdRg.js +81 -0
- package/dist/index-CLUljEDI.js +347 -0
- package/dist/index-SxyZvewN.js +102 -0
- package/dist/index.es.js +35 -0
- package/dist/index.umd.js +3148 -0
- package/dist/main-CQBEuZk9.js +56739 -0
- package/dist/mapFormMixin-DlFcgwhm.js +72 -0
- package/dist/omit-BWy0Zhd3.js +31 -0
- package/dist/publicSenderState-CvOcFv2U.js +21 -0
- package/dist/splitpanes-BHUVsCZF.js +382 -0
- package/dist/style.css +4 -0
- package/dist/throttle-BrC8eGjQ.js +18 -0
- package/dist/tinycolor-PhFP695w.js +633 -0
- package/dist/tippy.esm-7dmKOUvu.js +1799 -0
- package/dist/utils-NBLgNGHR.js +108 -0
- package/dist/vuedraggable.umd-ByfH7ZxC.js +3161 -0
- package/dist/vuex.esm-DKGl8mcw.js +467 -0
- package/package.json +1 -1
- package/vite.config.ts +0 -1
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
import { n as u, ac as f, ad as _, ae as b, b as S } from "./main-CQBEuZk9.js";
|
|
2
|
+
import { m as D } from "./vuex.esm-DKGl8mcw.js";
|
|
3
|
+
const w = {
|
|
4
|
+
name: "DynamicLink",
|
|
5
|
+
props: {
|
|
6
|
+
template: {
|
|
7
|
+
type: String,
|
|
8
|
+
required: !0
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
computed: {
|
|
12
|
+
transformed() {
|
|
13
|
+
return { template: this.template };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
var k = function() {
|
|
18
|
+
var t = this, e = t._self._c;
|
|
19
|
+
return e(t.transformed, { tag: "component" });
|
|
20
|
+
}, z = [], T = /* @__PURE__ */ u(
|
|
21
|
+
w,
|
|
22
|
+
k,
|
|
23
|
+
z,
|
|
24
|
+
!1,
|
|
25
|
+
null,
|
|
26
|
+
null
|
|
27
|
+
);
|
|
28
|
+
const I = T.exports, B = {
|
|
29
|
+
name: "EventItem",
|
|
30
|
+
components: {
|
|
31
|
+
DynamicLink: I
|
|
32
|
+
},
|
|
33
|
+
props: {
|
|
34
|
+
title: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: ""
|
|
37
|
+
},
|
|
38
|
+
template: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: ""
|
|
41
|
+
},
|
|
42
|
+
content: {
|
|
43
|
+
type: [String, Array],
|
|
44
|
+
default: ""
|
|
45
|
+
},
|
|
46
|
+
createdAt: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: ""
|
|
49
|
+
},
|
|
50
|
+
icon: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: "square"
|
|
53
|
+
},
|
|
54
|
+
compact: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: !1
|
|
57
|
+
},
|
|
58
|
+
loading: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: !1
|
|
61
|
+
},
|
|
62
|
+
color: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: "gray",
|
|
65
|
+
validator: (s) => [
|
|
66
|
+
"blue",
|
|
67
|
+
"teal",
|
|
68
|
+
"orange",
|
|
69
|
+
"green",
|
|
70
|
+
"red",
|
|
71
|
+
"purple",
|
|
72
|
+
"gray",
|
|
73
|
+
"primary"
|
|
74
|
+
].indexOf(s) !== -1
|
|
75
|
+
},
|
|
76
|
+
isFuture: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: !1
|
|
79
|
+
},
|
|
80
|
+
size: {
|
|
81
|
+
type: String,
|
|
82
|
+
default: ""
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
computed: {
|
|
86
|
+
date() {
|
|
87
|
+
return f(_(this.createdAt)) ? this.$formatDate(this.createdAt, "Pp") : null;
|
|
88
|
+
},
|
|
89
|
+
dayOfMonth() {
|
|
90
|
+
return f(_(this.createdAt)) ? this.$formatDate(this.createdAt, "d") : null;
|
|
91
|
+
},
|
|
92
|
+
month() {
|
|
93
|
+
return f(_(this.createdAt)) ? this.$formatDate(this.createdAt, "MMM") : null;
|
|
94
|
+
},
|
|
95
|
+
iconClasses() {
|
|
96
|
+
const s = {
|
|
97
|
+
blue: "text-blue-600 bg-blue-50",
|
|
98
|
+
teal: "text-cyan-600 bg-cyan-50",
|
|
99
|
+
orange: "text-orange-600 bg-orange-50",
|
|
100
|
+
green: "text-green-600 bg-green-50",
|
|
101
|
+
red: "text-red-600 bg-red-50",
|
|
102
|
+
purple: "text-purple-600 bg-purple-50",
|
|
103
|
+
gray: "text-gray-500 bg-gray-100",
|
|
104
|
+
primary: "text-primary-500 bg-primary-50"
|
|
105
|
+
};
|
|
106
|
+
return this.isFuture ? "bg-purple-100 text-purple-500" : s[this.color] || s.gray;
|
|
107
|
+
},
|
|
108
|
+
titleSize() {
|
|
109
|
+
return this.size === "large" ? "text-base" : "text-sm";
|
|
110
|
+
},
|
|
111
|
+
textSize() {
|
|
112
|
+
return this.size === "large" ? "text-[15px]" : "text-[13px]";
|
|
113
|
+
},
|
|
114
|
+
dateSize() {
|
|
115
|
+
return this.size === "large" ? "text-sm" : "text-xs";
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
var O = function() {
|
|
120
|
+
var t = this, e = t._self._c;
|
|
121
|
+
return e("div", { staticClass: "text-primary-500 event relative ml-4 flex cursor-default flex-nowrap pb-5 before:absolute before:-left-px before:top-4 before:h-full before:w-px before:bg-gray-300 before:content-[''] last:before:hidden" }, [e("div", { staticClass: "relative m-0 h-[23px]", staticStyle: { "--bg": "#fff" } }, [e("div", { staticClass: "absolute left-1/2 top-1/2 z-[1] flex h-7 w-7 items-center justify-center rounded-full 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("CIcon", { attrs: { type: t.icon, size: "14" } })], 1)]), e("div", { staticClass: "ml-7 flex min-w-0 flex-grow flex-col pt-1" }, [t.loading ? [e("CSkeleton", { staticClass: "max-w-md font-medium text-gray-900", class: t.titleSize, attrs: { width: "80%" } }), e("CSkeleton", { staticClass: "text-gray-600", class: t.textSize, attrs: { width: "40%" } }), e("CSkeleton", { staticClass: "inline-flex pt-0.5 text-center text-xs text-gray-500", 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: "inline-flex pt-1 text-center text-gray-500", 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)]);
|
|
122
|
+
}, E = [], M = /* @__PURE__ */ u(
|
|
123
|
+
B,
|
|
124
|
+
O,
|
|
125
|
+
E,
|
|
126
|
+
!1,
|
|
127
|
+
null,
|
|
128
|
+
null
|
|
129
|
+
);
|
|
130
|
+
const N = M.exports, F = {
|
|
131
|
+
sv: {
|
|
132
|
+
clientName: "Kunden",
|
|
133
|
+
byName: "Av {{- name}}",
|
|
134
|
+
withBankId: "med BankID",
|
|
135
|
+
propertyDesignation: "Begäran om fastighetsbeteckning",
|
|
136
|
+
viewed: "Granskat",
|
|
137
|
+
viewedContent: "{{- name}} har visat dokumentet",
|
|
138
|
+
statusChangedAccepted: "Dokumentet har blivit signerat",
|
|
139
|
+
statusChangedDenied: "Dokumentet har blivit nekat",
|
|
140
|
+
requestChange: "Markerades manuellt som",
|
|
141
|
+
mailOpened: "Mail visat",
|
|
142
|
+
mailOpenedContent: "{{email}} visat",
|
|
143
|
+
mailDropped: "E-post kunde inte skickas",
|
|
144
|
+
smsDropped: "SMS kunde inte skickas",
|
|
145
|
+
expired: "Dokumentet har förfallit",
|
|
146
|
+
expiredContent: "Giltighetstiden har passerats",
|
|
147
|
+
toEmail: "Till: {{email}}"
|
|
148
|
+
},
|
|
149
|
+
en: {
|
|
150
|
+
clientName: "Client",
|
|
151
|
+
byName: "By {{- name}}",
|
|
152
|
+
withBankId: "with BankID",
|
|
153
|
+
propertyDesignation: "Request for property designation",
|
|
154
|
+
viewed: "Viewed",
|
|
155
|
+
viewedContent: "{{- name}} has viewed the document",
|
|
156
|
+
statusChangedAccepted: "The document has been signed",
|
|
157
|
+
statusChangedDenied: "The document has been declined",
|
|
158
|
+
requestChange: "Manually marked as",
|
|
159
|
+
mailOpened: "Email opened",
|
|
160
|
+
mailOpenedContent: "{{email}} viewed",
|
|
161
|
+
mailDropped: "Could not send email",
|
|
162
|
+
smsDropped: "Could not send SMS",
|
|
163
|
+
expired: "Expired",
|
|
164
|
+
expiredContent: "The expiration date has passed",
|
|
165
|
+
toEmail: "To: {{email}}"
|
|
166
|
+
}
|
|
167
|
+
}, q = {
|
|
168
|
+
name: "DocumentTimeline",
|
|
169
|
+
i18nOptions: {
|
|
170
|
+
namespaces: "documentTimeline",
|
|
171
|
+
messages: F
|
|
172
|
+
},
|
|
173
|
+
components: {
|
|
174
|
+
EventItem: N
|
|
175
|
+
},
|
|
176
|
+
props: {
|
|
177
|
+
document: {
|
|
178
|
+
type: Object,
|
|
179
|
+
required: !0
|
|
180
|
+
},
|
|
181
|
+
colors: {
|
|
182
|
+
type: Object,
|
|
183
|
+
default: () => ({})
|
|
184
|
+
},
|
|
185
|
+
size: {
|
|
186
|
+
type: String,
|
|
187
|
+
default: ""
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
computed: {
|
|
191
|
+
...D({
|
|
192
|
+
userById: "companyUsers/byId"
|
|
193
|
+
}),
|
|
194
|
+
events() {
|
|
195
|
+
var n, r;
|
|
196
|
+
const s = [
|
|
197
|
+
this.formatEvent({
|
|
198
|
+
code: "created",
|
|
199
|
+
createdAt: (n = this.document) == null ? void 0 : n.createdAt
|
|
200
|
+
})
|
|
201
|
+
], { events: t, scheduledFirstDelivery: e } = this.document || {};
|
|
202
|
+
if ((e == null ? void 0 : e.status) === "active") {
|
|
203
|
+
const o = e.deliveryTypes.join(
|
|
204
|
+
` ${this.$t("_common:and")} `
|
|
205
|
+
);
|
|
206
|
+
s.push({
|
|
207
|
+
title: this.$t("_common:scheduledDelivery"),
|
|
208
|
+
content: `${this.$t(
|
|
209
|
+
"_common:via"
|
|
210
|
+
)} ${o}, ${this.$formatDate(
|
|
211
|
+
e.sendAt
|
|
212
|
+
)}`,
|
|
213
|
+
isFuture: !0,
|
|
214
|
+
icon: "calendar",
|
|
215
|
+
color: ((r = this.colors) == null ? void 0 : r.scheduledDelivery) || "primary"
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
return t == null || t.forEach((o) => s.push(this.formatEvent(o))), s;
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
methods: {
|
|
222
|
+
formatEvent({ code: s, data: t, createdAt: e, children: n = [] }) {
|
|
223
|
+
var y;
|
|
224
|
+
const {
|
|
225
|
+
client: r = {},
|
|
226
|
+
clients: o,
|
|
227
|
+
email: d,
|
|
228
|
+
status: m,
|
|
229
|
+
counter: x,
|
|
230
|
+
sendSource: h,
|
|
231
|
+
companyUserId: $
|
|
232
|
+
} = t || {}, p = x || n.length + 1, c = r.name, C = {
|
|
233
|
+
created: () => ({
|
|
234
|
+
title: this.$t("_common:created"),
|
|
235
|
+
createdAt: e,
|
|
236
|
+
icon: "folder",
|
|
237
|
+
color: "primary"
|
|
238
|
+
}),
|
|
239
|
+
viewed: () => ({
|
|
240
|
+
title: this.$t("viewed"),
|
|
241
|
+
content: (c ? this.$t("viewedContent", { name: c }) : "") + (p ? ` ${this.$tc("_common:times", { count: p })}` : ""),
|
|
242
|
+
createdAt: e,
|
|
243
|
+
icon: "eye",
|
|
244
|
+
color: "primary"
|
|
245
|
+
}),
|
|
246
|
+
accepted: () => {
|
|
247
|
+
var a;
|
|
248
|
+
const i = {
|
|
249
|
+
title: this.$t("_common:status.signed"),
|
|
250
|
+
content: c ? this.$t("byName", { name: c }) : "",
|
|
251
|
+
createdAt: e,
|
|
252
|
+
icon: "check",
|
|
253
|
+
color: "primary"
|
|
254
|
+
};
|
|
255
|
+
return i.content && ((a = r.answerMethod) == null ? void 0 : a.accept) === "bankId" && (i.content += ` ${this.$t("withBankId")}`), i;
|
|
256
|
+
},
|
|
257
|
+
denied: () => ({
|
|
258
|
+
title: this.$t("_common:status.denied"),
|
|
259
|
+
content: c ? this.$t("byName", { name: c }) : "",
|
|
260
|
+
createdAt: e,
|
|
261
|
+
icon: "x",
|
|
262
|
+
color: "primary"
|
|
263
|
+
}),
|
|
264
|
+
sent: () => {
|
|
265
|
+
let i = this.$t("_common:sent");
|
|
266
|
+
return ["reminder", "propertyDesignation"].includes(h) && (i = this.$t("_common:sentThing", {
|
|
267
|
+
thing: h === "reminder" ? this.$t("_common:reminder") : this.$t("propertyDesignation")
|
|
268
|
+
})), {
|
|
269
|
+
title: i,
|
|
270
|
+
content: o == null ? void 0 : o.map(
|
|
271
|
+
(a) => ["email", "cellphone"].filter((l) => !!a[l]).map((l) => a[l]).join(` ${this.$t("_common:and")} `)
|
|
272
|
+
).reduce(
|
|
273
|
+
(a, l) => a ? `${a}<div>${l}</div>` : `${this.$t("_common:to")}: ${l}`.capitalize(),
|
|
274
|
+
""
|
|
275
|
+
),
|
|
276
|
+
createdAt: e,
|
|
277
|
+
icon: h === "reminder" ? "bell" : "send",
|
|
278
|
+
color: "primary"
|
|
279
|
+
};
|
|
280
|
+
},
|
|
281
|
+
statusChanged: () => ["accepted", "denied"].includes(m) ? {
|
|
282
|
+
title: m === "accepted" ? this.$t("statusChangedAccepted") : this.$t("statusChangedDenied"),
|
|
283
|
+
createdAt: e,
|
|
284
|
+
icon: m === "accepted" ? "check" : "x",
|
|
285
|
+
color: m === "accepted" ? "green" : "red"
|
|
286
|
+
} : null,
|
|
287
|
+
requestChange: () => {
|
|
288
|
+
var a;
|
|
289
|
+
const i = ((a = this.userById($)) == null ? void 0 : a.fullName) || "";
|
|
290
|
+
return {
|
|
291
|
+
title: `${this.$t("requestChange")} ${this.$t(
|
|
292
|
+
`_common:status.${m}`
|
|
293
|
+
)}`,
|
|
294
|
+
content: i && this.$t("byName", { name: i }),
|
|
295
|
+
createdAt: e,
|
|
296
|
+
icon: "tool",
|
|
297
|
+
color: "primary"
|
|
298
|
+
};
|
|
299
|
+
},
|
|
300
|
+
mailDelivered: () => ({
|
|
301
|
+
title: this.$t("_common:sentThing", {
|
|
302
|
+
thing: this.$t("_common:email").capitalize()
|
|
303
|
+
}),
|
|
304
|
+
content: d ? `${this.$t("_common:to")}: ${d}`.capitalize() : "",
|
|
305
|
+
createdAt: e,
|
|
306
|
+
icon: "inbox",
|
|
307
|
+
color: "primary"
|
|
308
|
+
}),
|
|
309
|
+
mailOpened: () => ({
|
|
310
|
+
title: this.$t("mailOpened"),
|
|
311
|
+
content: `${this.$t("mailOpenedContent", { email: d })} ${p ? this.$tc("_common:times", { count: p }) : ""}`,
|
|
312
|
+
createdAt: e,
|
|
313
|
+
icon: "email",
|
|
314
|
+
color: "primary"
|
|
315
|
+
}),
|
|
316
|
+
mailDropped: () => ({
|
|
317
|
+
title: this.$t("mailDropped"),
|
|
318
|
+
content: d ? this.$t("toEmail", { email: d }) : null,
|
|
319
|
+
createdAt: e,
|
|
320
|
+
icon: "alert-triangle",
|
|
321
|
+
color: "orange"
|
|
322
|
+
}),
|
|
323
|
+
smsDropped: () => ({
|
|
324
|
+
title: this.$t("smsDropped"),
|
|
325
|
+
content: t ? `${this.$t("_common:to")}: ${t}`.capitalize() : "",
|
|
326
|
+
createdAt: e,
|
|
327
|
+
icon: "alert-triangle",
|
|
328
|
+
color: "orange"
|
|
329
|
+
}),
|
|
330
|
+
expired: () => ({
|
|
331
|
+
title: this.$t("expired"),
|
|
332
|
+
content: this.$t("expiredContent"),
|
|
333
|
+
createdAt: e,
|
|
334
|
+
icon: "moon",
|
|
335
|
+
color: "gray"
|
|
336
|
+
})
|
|
337
|
+
}, g = (y = this.colors) == null ? void 0 : y[s];
|
|
338
|
+
return {
|
|
339
|
+
...C[s](),
|
|
340
|
+
...g && { color: g }
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
};
|
|
345
|
+
var A = function() {
|
|
346
|
+
var t = this, e = t._self._c;
|
|
347
|
+
return e("div", [t._t("header"), t._l(t.events, function(n, r) {
|
|
348
|
+
return e("EventItem", { key: r, attrs: { title: n.title, content: n.content, "created-at": n.createdAt, icon: n.icon, color: n.color, "is-future": n.isFuture, size: t.size } });
|
|
349
|
+
})], 2);
|
|
350
|
+
}, j = [], R = /* @__PURE__ */ u(
|
|
351
|
+
q,
|
|
352
|
+
A,
|
|
353
|
+
j,
|
|
354
|
+
!1,
|
|
355
|
+
null,
|
|
356
|
+
null
|
|
357
|
+
);
|
|
358
|
+
const L = R.exports, v = {
|
|
359
|
+
new: {
|
|
360
|
+
statusClass: "draft",
|
|
361
|
+
icon: "statusDraft"
|
|
362
|
+
},
|
|
363
|
+
draft: {
|
|
364
|
+
statusClass: "draft",
|
|
365
|
+
icon: "statusDraft"
|
|
366
|
+
},
|
|
367
|
+
scheduled: {
|
|
368
|
+
statusClass: "scheduled",
|
|
369
|
+
icon: "statusScheduled"
|
|
370
|
+
},
|
|
371
|
+
sent: {
|
|
372
|
+
statusClass: "sent",
|
|
373
|
+
icon: "statusSent"
|
|
374
|
+
},
|
|
375
|
+
denied: {
|
|
376
|
+
statusClass: "denied",
|
|
377
|
+
icon: "statusDenied"
|
|
378
|
+
},
|
|
379
|
+
accepted: {
|
|
380
|
+
statusClass: "accepted",
|
|
381
|
+
icon: "statusAccepted"
|
|
382
|
+
},
|
|
383
|
+
signed: {
|
|
384
|
+
statusClass: "accepted",
|
|
385
|
+
icon: "statusAccepted"
|
|
386
|
+
},
|
|
387
|
+
semiSigned: {
|
|
388
|
+
statusClass: "accepted",
|
|
389
|
+
icon: "statusSemiSigned"
|
|
390
|
+
},
|
|
391
|
+
expired: {
|
|
392
|
+
statusClass: "expired",
|
|
393
|
+
icon: "statusExpired"
|
|
394
|
+
},
|
|
395
|
+
voided: {
|
|
396
|
+
statusClass: "voided",
|
|
397
|
+
icon: "statusVoided"
|
|
398
|
+
},
|
|
399
|
+
active: {
|
|
400
|
+
statusClass: "active",
|
|
401
|
+
icon: "statusActive"
|
|
402
|
+
},
|
|
403
|
+
completed: {
|
|
404
|
+
statusClass: "completed",
|
|
405
|
+
icon: "statusCompleted"
|
|
406
|
+
},
|
|
407
|
+
archived: {
|
|
408
|
+
statusClass: "archived",
|
|
409
|
+
icon: "statusArchive"
|
|
410
|
+
}
|
|
411
|
+
}, P = {
|
|
412
|
+
props: {
|
|
413
|
+
status: {
|
|
414
|
+
type: String,
|
|
415
|
+
default: ""
|
|
416
|
+
},
|
|
417
|
+
split: {
|
|
418
|
+
type: String,
|
|
419
|
+
default: ""
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
computed: {
|
|
423
|
+
text() {
|
|
424
|
+
return this.status ? b.t(`_common:status.${this.status}`) : "";
|
|
425
|
+
},
|
|
426
|
+
className() {
|
|
427
|
+
const { statusClass: s = "" } = v[this.status] || {};
|
|
428
|
+
return s;
|
|
429
|
+
},
|
|
430
|
+
icon() {
|
|
431
|
+
return S(v, `${this.status}.icon`);
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
};
|
|
435
|
+
var G = function() {
|
|
436
|
+
var t = this, e = t._self._c;
|
|
437
|
+
return e("div", { staticClass: "c-badge_status inline-flex h-6 items-center rounded-full pl-1 pr-2 text-xs font-medium leading-none", class: t.className }, [t.icon ? e("CIcon", { staticClass: "status-icon mr-1", attrs: { type: t.icon, size: "16" } }) : t._e(), e("span", [t._v(t._s(t.text))])], 1);
|
|
438
|
+
}, H = [], V = /* @__PURE__ */ u(
|
|
439
|
+
P,
|
|
440
|
+
G,
|
|
441
|
+
H,
|
|
442
|
+
!1,
|
|
443
|
+
null,
|
|
444
|
+
null
|
|
445
|
+
);
|
|
446
|
+
const U = V.exports, K = {
|
|
447
|
+
name: "DocTimeline",
|
|
448
|
+
components: {
|
|
449
|
+
StatusBadge: U,
|
|
450
|
+
DocumentTimeline: L
|
|
451
|
+
},
|
|
452
|
+
props: {
|
|
453
|
+
document: {
|
|
454
|
+
type: Object,
|
|
455
|
+
required: !0
|
|
456
|
+
},
|
|
457
|
+
showHeader: {
|
|
458
|
+
type: Boolean,
|
|
459
|
+
default: !0
|
|
460
|
+
},
|
|
461
|
+
viewType: {
|
|
462
|
+
type: String,
|
|
463
|
+
default: "modal"
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
};
|
|
467
|
+
var J = function() {
|
|
468
|
+
var t = this, e = t._self._c;
|
|
469
|
+
return e("div", { class: { "p-8": t.viewType !== "mount" } }, [e("DocumentTimeline", { attrs: { document: t.document, size: "large" } }, [t.showHeader ? e("div", { staticClass: "mb-4 border-b pb-4", attrs: { slot: "header" }, slot: "header" }, [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: "text-lg font-semibold" }, [t._v(t._s(t.document.name))])]), e("div", { staticClass: "-ml-2 inline-flex items-center" }, [e("div", { staticClass: "mr-1.5 py-1 pl-2 text-xs text-gray-600", domProps: { textContent: t._s(t.$t("_common:status.status")) } }), e("StatusBadge", { attrs: { status: t.document.status } })], 1)]) : t._e()])], 1);
|
|
470
|
+
}, Q = [], W = /* @__PURE__ */ u(
|
|
471
|
+
K,
|
|
472
|
+
J,
|
|
473
|
+
Q,
|
|
474
|
+
!1,
|
|
475
|
+
null,
|
|
476
|
+
null
|
|
477
|
+
);
|
|
478
|
+
const Z = W.exports;
|
|
479
|
+
export {
|
|
480
|
+
Z as default
|
|
481
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { a as u } from "./answerDocumentMixin-BYZPU_R-.js";
|
|
2
|
+
import { D as m } from "./DocumentLayout-Dbf8_01r.js";
|
|
3
|
+
import { f as d } from "./formValidationMixin-D7zXxCpC.js";
|
|
4
|
+
import { V as l, n as a } from "./main-CQBEuZk9.js";
|
|
5
|
+
import { D as f } from "./DocumentVoided-vH1Ti5lZ.js";
|
|
6
|
+
const p = (s) => {
|
|
7
|
+
var e;
|
|
8
|
+
return (e = window == null ? void 0 : window.parent) == null ? void 0 : e.postMessage(s, "*");
|
|
9
|
+
}, o = (s) => typeof s == "object" && "event" in s;
|
|
10
|
+
class _ {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.observers = {}, this.registered = !0, window.addEventListener("message", this._onMessage.bind(this));
|
|
13
|
+
}
|
|
14
|
+
_onMessage(e) {
|
|
15
|
+
if (e.source === window.parent && o(e == null ? void 0 : e.data)) {
|
|
16
|
+
const { event: t, data: r } = e.data;
|
|
17
|
+
this.observers[t] && this.observers[t].forEach((c) => c(r));
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
on(e, t) {
|
|
21
|
+
this.registered || window.addEventListener("message", this._onMessage.bind(this)), this.observers[e] = this.observers[e] || [], this.observers[e].push(t);
|
|
22
|
+
}
|
|
23
|
+
off(e, t) {
|
|
24
|
+
if (this.observers[e]) {
|
|
25
|
+
if (!t) {
|
|
26
|
+
delete this.observers[e];
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
this.observers[e] = this.observers[e].filter(
|
|
30
|
+
(r) => r !== t
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
emit(e) {
|
|
35
|
+
if (!o(e))
|
|
36
|
+
throw new Error(
|
|
37
|
+
"Invalid message, must be an object including an event property"
|
|
38
|
+
);
|
|
39
|
+
p(e);
|
|
40
|
+
}
|
|
41
|
+
destroy() {
|
|
42
|
+
window.removeEventListener("message", this._onMessage.bind(this)), this.registered = !1;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
const n = new _(), i = l.observable({
|
|
46
|
+
canEdit: !1,
|
|
47
|
+
isForm: !1,
|
|
48
|
+
setFormValue: null
|
|
49
|
+
}), h = {
|
|
50
|
+
components: {
|
|
51
|
+
DocumentLayout: m,
|
|
52
|
+
DocumentVoided: f
|
|
53
|
+
},
|
|
54
|
+
mixins: [d, u()],
|
|
55
|
+
provide: () => ({ viewSettings: i }),
|
|
56
|
+
props: {
|
|
57
|
+
document: {
|
|
58
|
+
type: Object,
|
|
59
|
+
required: !0
|
|
60
|
+
},
|
|
61
|
+
setFormValue: {
|
|
62
|
+
type: Function,
|
|
63
|
+
required: !0
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
created() {
|
|
67
|
+
this.setFormValue && (i.setFormValue = this.setFormValue), n.on("answer", this.onAnswerMessage);
|
|
68
|
+
},
|
|
69
|
+
beforeDestroy() {
|
|
70
|
+
n.off("answer", this.onAnswerMessage);
|
|
71
|
+
},
|
|
72
|
+
methods: {
|
|
73
|
+
onAnswerMessage(s) {
|
|
74
|
+
this.onAnswer(s == null ? void 0 : s.mode);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
var v = function() {
|
|
79
|
+
var r;
|
|
80
|
+
var e = this, t = e._self._c;
|
|
81
|
+
return t("div", [e._t("default"), ((r = e.document) == null ? void 0 : r.status) === "voided" ? t("DocumentVoided", { attrs: { document: e.document } }) : t("DocumentLayout", { attrs: { document: e.document } })], 2);
|
|
82
|
+
}, w = [], b = /* @__PURE__ */ a(
|
|
83
|
+
h,
|
|
84
|
+
v,
|
|
85
|
+
w,
|
|
86
|
+
!1,
|
|
87
|
+
null,
|
|
88
|
+
null
|
|
89
|
+
);
|
|
90
|
+
const g = b.exports, y = {
|
|
91
|
+
name: "DocumentClient",
|
|
92
|
+
components: {
|
|
93
|
+
ClientView: g
|
|
94
|
+
},
|
|
95
|
+
provide() {
|
|
96
|
+
return {
|
|
97
|
+
customHtmlAccept: this.customHtmlAccept,
|
|
98
|
+
customHtmlDeny: this.customHtmlDeny
|
|
99
|
+
};
|
|
100
|
+
},
|
|
101
|
+
props: {
|
|
102
|
+
document: {
|
|
103
|
+
type: Object,
|
|
104
|
+
required: !0
|
|
105
|
+
},
|
|
106
|
+
setFormValue: {
|
|
107
|
+
type: Function,
|
|
108
|
+
default: null
|
|
109
|
+
},
|
|
110
|
+
customHtmlAccept: {
|
|
111
|
+
type: String,
|
|
112
|
+
required: "",
|
|
113
|
+
default: ""
|
|
114
|
+
},
|
|
115
|
+
customHtmlDeny: {
|
|
116
|
+
type: String,
|
|
117
|
+
required: "",
|
|
118
|
+
default: ""
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
var M = function() {
|
|
123
|
+
var e = this, t = e._self._c;
|
|
124
|
+
return t("ClientView", { attrs: { document: e.document, "set-form-value": e.setFormValue } });
|
|
125
|
+
}, V = [], D = /* @__PURE__ */ a(
|
|
126
|
+
y,
|
|
127
|
+
M,
|
|
128
|
+
V,
|
|
129
|
+
!1,
|
|
130
|
+
null,
|
|
131
|
+
null
|
|
132
|
+
);
|
|
133
|
+
const q = D.exports;
|
|
134
|
+
export {
|
|
135
|
+
q as default
|
|
136
|
+
};
|