@cling-se/widget 0.14.0 → 0.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AddClientCallout-C7BLDW6Y.js → AddClientCallout-BP2ip0A4.js} +3 -3
- package/dist/{AnswerModal-KWFteFV9.js → AnswerModal-C8i3ldB_.js} +3 -3
- package/dist/{AttachmentItem-CSerklBS.js → AttachmentItem-BrvrAMae.js} +2 -2
- package/dist/{BaseDatePicker-BOxfHGS8.js → BaseDatePicker-BSkAllLg.js} +481 -481
- package/dist/{BaseUpload-B-CktrCH.js → BaseUpload-J2v3G0-q.js} +13 -13
- package/dist/{BlockMedia-T4OxMb4n.js → BlockMedia-CAgKbN_k.js} +1 -1
- package/dist/{CCallout-yFt7TFJa.js → CCallout-D5Nk5DgN.js} +2 -2
- package/dist/CCurrencyDropdown-CGYQfYSD.js +246 -0
- package/dist/{CDropdownItem-DhEpCmQt.js → CDropdownItem-DGES8E6l.js} +7 -5
- package/dist/{CFormField-DDLf5YY4.js → CFormField-CE4rV3cr.js} +1 -1
- package/dist/{CPhoneFormat-B88rkuf0.js → CPhoneFormat-DXPrTit9.js} +1 -1
- package/dist/CPriceInput-CYsf1n6T.js +112 -0
- package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +1 -0
- package/dist/{ClientAutocomplete-DmRl3SUj.js → ClientAutocomplete-DPgOfPg1.js} +2 -2
- package/dist/{ClientModal-Dn3WDhGU.js → ClientModal-Dznh8Vvn.js} +44 -36
- package/dist/{ColorPicker-DX6JAsTn.js → ColorPicker-CWQEE8VR.js} +1 -1
- package/dist/{CompanyModal-BbO2nTd5.js → CompanyModal-CeZ3GgLu.js} +4 -4
- package/dist/{ContentWrapper-BvbmcTXK.js → ContentWrapper-DW7VHTdA.js} +6 -6
- package/dist/{CoverBlockSettings-C8FDwx7i.js → CoverBlockSettings-DNSdXFgF.js} +5 -5
- package/dist/{DocAnswer-OttbybQs.js → DocAnswer-CPttkKAJ.js} +2 -2
- package/dist/{DocDetails-J7O26zqa.js → DocDetails-BCwWW_kM.js} +7 -7
- package/dist/{DocForm-Bgbesq79.js → DocForm-BPjC08Ic.js} +54 -53
- package/dist/{DocFormSend-D_U3ztgw.js → DocFormSend-BaC8IJCu.js} +2 -2
- package/dist/{DocLinks-Dp-iQ-B_.js → DocLinks-DN-S8MY_.js} +2 -2
- package/dist/{DocModalBase-F-wlPg7j.js → DocModalBase-bFJp0T2Y.js} +1 -1
- package/dist/{DocPrint-B45voy0W.js → DocPrint-Ci7Jyh-C.js} +11 -17
- package/dist/{DocReceipt-jKVK5U-a.js → DocReceipt-BYlXr6eS.js} +6 -6
- package/dist/{DocSendReminder-BersSNb1.js → DocSendReminder-DFx4934a.js} +1 -1
- package/dist/{DocTextEditor-CYe_jWZ8.js → DocTextEditor-idQMnlIF.js} +281 -270
- package/dist/{DocTimeline-yyzh51yB.js → DocTimeline-ZmGSVRUB.js} +1 -1
- package/dist/{DocumentClient-CS_EVjK9.js → DocumentClient-DTRlyvLO.js} +5 -5
- package/dist/{DocumentLayout-Ba121Zro.js → DocumentLayout-BJAyNjNa.js} +4 -4
- package/dist/{DocumentLogotype-DUVhl9xC.js → DocumentLogotype-pDJRc6Hj.js} +3 -3
- package/dist/{DocumentVoided-D5ePc-a5.js → DocumentVoided-DfKewfe4.js} +1 -1
- package/dist/{EmbedInput-Ds-Z-0J2.js → EmbedInput-7hLNsnEV.js} +2 -2
- package/dist/{EmbedSettings-C8BP4YuY.js → EmbedSettings-CpL24RhA.js} +2 -2
- package/dist/{ErrorCallout-B_QrRAm6.js → ErrorCallout-CdJCe67q.js} +1 -1
- package/dist/{FilePreviewModal-B105PxLD.js → FilePreviewModal-B7qT3I7F.js} +2 -2
- package/dist/{Flag-hg61To9C.js → Flag-DwW19zju.js} +1 -1
- package/dist/{HeaderSettings-DIBiJc4I.js → HeaderSettings-C8SuuAwv.js} +7 -7
- package/dist/{ImageSelectModal-D2g42vWJ.js → ImageSelectModal-CAOh3YHc.js} +3 -3
- package/dist/{ImageUploadWrapper-CREUMKh3.js → ImageUploadWrapper-21yldsj9.js} +2 -2
- package/dist/{Index-8DAfMA_s.js → Index-B0BgYtWI.js} +5 -5
- package/dist/{Index-4NdatdH2.js → Index-BC1AhlQ9.js} +6 -6
- package/dist/{Index-CwulQoRG.js → Index-BZi6r2UN.js} +8 -8
- package/dist/{Index-agYFtWMw.js → Index-BsD09y_2.js} +6 -6
- package/dist/{Index-BZM-FsHY.js → Index-Bu9SdKLP.js} +1 -1
- package/dist/{Index-YkoWXviW.js → Index-BvsqZh2A.js} +4 -4
- package/dist/{Index-DeNpUKh8.js → Index-Bz4qd9uO.js} +5 -5
- package/dist/{Index-BLQwYzIX.js → Index-C--GiPc1.js} +4 -4
- package/dist/{Index-DDj3_T_m.js → Index-CC7qF0br.js} +4 -4
- package/dist/{Index-Dy7K8KMB.js → Index-CGxOvTF4.js} +590 -694
- package/dist/{Index-7rbX01Io.js → Index-CI7_ktvb.js} +5 -5
- package/dist/{Index-DRgVg0CH.js → Index-COJZmxkX.js} +4 -4
- package/dist/{Index-Bu6aOCmM.js → Index-CObEQ6G-.js} +3 -3
- package/dist/{Index-CpWW7m5F.js → Index-CP2bsXd-.js} +11 -13
- package/dist/{Index-lKo8z-71.js → Index-CSvZBLnp.js} +3 -3
- package/dist/{Index-BuDj2yrd.js → Index-Ci-hGBbC.js} +4 -4
- package/dist/{Index-CL12KArA.js → Index-Ckzq1cEJ.js} +22 -18
- package/dist/{Index-C56fTFO3.js → Index-CoIh5y2F.js} +4 -4
- package/dist/{Index-BiK7PqAm.js → Index-Couda8BX.js} +2 -2
- package/dist/{Index-D_MonVUx.js → Index-CvXt3dm6.js} +23 -23
- package/dist/{Index-D0gS476H.js → Index-D95MNzAZ.js} +4 -4
- package/dist/{Index-Dqp7TmnQ.js → Index-DB5EG4EI.js} +32 -30
- package/dist/{Index-02IKjPth.js → Index-DDvRihXA.js} +3 -3
- package/dist/{Index-sltQx4D3.js → Index-DIAntwBs.js} +2 -2
- package/dist/{Index-CYHxrllv.js → Index-DUdJNcDT.js} +4 -4
- package/dist/{Index-BG9x90V0.js → Index-DfANvO5d.js} +5 -5
- package/dist/{Index-DVQ6ZsHz.js → Index-Ds1Jv5Mr.js} +5 -5
- package/dist/{Index-B8xcDVQ1.js → Index-FIWsRGmh.js} +5 -5
- package/dist/{Index-bTXYCG9Y.js → Index-M3b7S4YX.js} +4 -4
- package/dist/{Index-kAu-7TWv.js → Index-NoN1_539.js} +10 -10
- package/dist/{Index-CUxvKTfn.js → Index-UGFm4yxI.js} +5 -5
- package/dist/{Index-BUTYZCat.js → Index-aCBe0dXx.js} +2 -2
- package/dist/{Index-DIg77V9c.js → Index-kJFtpJEP.js} +2 -2
- package/dist/{Index-BqBi-EmE.js → Index-rQKoLISX.js} +2 -2
- package/dist/{InputToggleRow-C7aWJpUF.js → InputToggleRow-Ct8rvqAF.js} +1 -1
- package/dist/{ManualPopover-CK9Xp-mo.js → ManualPopover-B0vp9ydC.js} +1 -1
- package/dist/{MediaWrapper-v87wlFnj.js → MediaWrapper-hmofOPLv.js} +3 -3
- package/dist/{NotBindingText-BGy3SnK3.js → NotBindingText-COpJPwHe.js} +2 -2
- package/dist/{PackageGroup-CrsOkWIb.js → PackageGroup-BdtslJL-.js} +8 -8
- package/dist/{PdfTerms-UmEmlI0Y.js → PdfTerms-EDStBDhn.js} +2 -2
- package/dist/{PdfViewer-C6VBu4tT.js → PdfViewer-D1_Roqu2.js} +3 -3
- package/dist/{PlainHtml-Dsaxrq3D.js → PlainHtml-C3JPvt4o.js} +1 -1
- package/dist/{PriceHeader-DQ615L9Q.js → PriceHeader-BdfozyN8.js} +9 -9
- package/dist/{SearchApi-CbWFQfoc.js → SearchApi-CQtYh98a.js} +2 -2
- package/dist/{Setup-Byd-0W7U.js → Setup-DHHMT6xu.js} +1 -1
- package/dist/{CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-DbBb6ZId.js → SmartList-BXeRj5NC.js} +1 -1
- package/dist/{TermsSettings-Cah7_3Ba.js → TermsSettings-D1tDAu-r.js} +3 -3
- package/dist/{ThemeColorRow-DqsjvQfY.js → ThemeColorRow-HUN-QPY_.js} +3 -3
- package/dist/{ToggleBinding-DFr6xW2B.js → ToggleBinding-CRoVM6Nw.js} +3 -3
- package/dist/{UploadModal-jRI9ITty.js → UploadModal-BD3pIiPT.js} +2 -2
- package/dist/{VideoPlayerInput-C5_Ft8-4.js → VideoPlayerInput-QFJfPoCf.js} +3 -3
- package/dist/{VideoPlayerSettings-LZluC-Tg.js → VideoPlayerSettings-CGq--niu.js} +2 -2
- package/dist/{VideoSelectModal-OGDq_lwv.js → VideoSelectModal-B61rBqdH.js} +3 -3
- package/dist/{answerDocumentMixin-D8BXcPWt.js → answerDocumentMixin-DiONfM1s.js} +3 -3
- package/dist/{debounce-BQXg61RJ.js → debounce-BIchuVwa.js} +11 -11
- package/dist/{focusDrawerMixin-D3Pzr0P-.js → focusDrawerMixin-CzvgKsOZ.js} +1 -1
- package/dist/{formComponentsInstall-D1VBPt9o.js → formComponentsInstall-EQLbqYqI.js} +74 -76
- package/dist/{formDrawerState-wG6RdIXD.js → formDrawerState-CiKGHdNH.js} +1 -1
- package/dist/{formValidationMixin-D9qFZJf9.js → formValidationMixin-5BVcxu38.js} +1 -1
- package/dist/{index-BFnwm62-.js → index-BYTRIZIz.js} +1 -1
- package/dist/{index-Dnp3LAf2.js → index-Be__C37A.js} +1 -1
- package/dist/{index-DETqm8Jy.js → index-CUydiL8B.js} +15 -15
- package/dist/{index-1DmXjcSN.js → index-DH6SCEKQ.js} +12 -12
- package/dist/{index-BEOnzeEr.js → index-gtVGRKIX.js} +5 -5
- package/dist/{index-M-GXl2PO.js → index-tNIrTnCx.js} +20 -20
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +133 -141
- package/dist/{main-CWRB9q-W.js → main-Bp2qcma0.js} +4022 -4031
- package/dist/{mapFormMixin-BOmDynJ-.js → mapFormMixin-Ce3_WIKw.js} +1 -1
- package/dist/omit-21u5fFMx.js +31 -0
- package/dist/{publicSenderState-D_VhSyXD.js → publicSenderState-BcN9kJJr.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{throttle-Bixql7MZ.js → throttle-CfPxqhW_.js} +2 -2
- package/dist/{tinycolor-CIjZZX-6.js → tinycolor-DNK6zGoq.js} +1 -1
- package/dist/tippy.esm-B5TcTBWX.js +1799 -0
- package/dist/{utils-1ypnMuRv.js → utils-GzwJPAEe.js} +1 -1
- package/dist/{omit-CMqxXOLn.js → vuedraggable.umd-2pmrPYml.js} +526 -554
- package/package.json +1 -1
- package/dist/BaseInput-BDjhI5P9.js +0 -364
- package/dist/tippy.esm-BcAHvKwR.js +0 -2039
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { C as v } from "./ClientAutocomplete-
|
|
2
|
-
import {
|
|
3
|
-
import { w as f } from "./CDropdownItem-
|
|
4
|
-
import { v as r } from "./index-
|
|
1
|
+
import { C as v } from "./ClientAutocomplete-DPgOfPg1.js";
|
|
2
|
+
import { E as p, a9 as y, I as C, n as u, b as l, d as b, c as _, g as c, aa as $, y as w } from "./main-Bp2qcma0.js";
|
|
3
|
+
import { w as f } from "./CDropdownItem-DGES8E6l.js";
|
|
4
|
+
import { v as r } from "./index-tNIrTnCx.js";
|
|
5
5
|
import { m as g, b as x, a as k } from "./vuex.esm-DKGl8mcw.js";
|
|
6
|
+
import { o as S } from "./omit-21u5fFMx.js";
|
|
6
7
|
function h(a) {
|
|
7
8
|
if (typeof a > "u")
|
|
8
9
|
throw Error("Missing param inputParam");
|
|
@@ -19,7 +20,7 @@ function m(a) {
|
|
|
19
20
|
let e = a.replace(/ /g, "");
|
|
20
21
|
return e = e.replace(/-/g, ""), !h(e) || (e = [e.slice(0, 6), "-", e.slice(6)].join(""), !e.match(/^(\d{6})-(\d{4})$/)) ? !1 : e;
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
+
function d(a) {
|
|
23
24
|
if (typeof a > "u" || a === null || a === "")
|
|
24
25
|
return !1;
|
|
25
26
|
let e = a.trim().replace(/[^0-9]+/g, "");
|
|
@@ -34,7 +35,7 @@ function l(a) {
|
|
|
34
35
|
}
|
|
35
36
|
return (/* @__PURE__ */ new Date()).getFullYear() - parseInt(e.substring(0, 4), 10) < 16 ? !1 : h(e.substring(2)) ? e : !1;
|
|
36
37
|
}
|
|
37
|
-
const
|
|
38
|
+
const N = {
|
|
38
39
|
sv: {
|
|
39
40
|
title: "Mottagare",
|
|
40
41
|
updateButton: "Spara mottagare",
|
|
@@ -149,14 +150,14 @@ const S = {
|
|
|
149
150
|
}
|
|
150
151
|
}
|
|
151
152
|
}
|
|
152
|
-
}, { mapFields:
|
|
153
|
+
}, { mapFields: I } = p({
|
|
153
154
|
getterType: "forms/getField",
|
|
154
155
|
mutationType: "forms/updateField"
|
|
155
|
-
}),
|
|
156
|
+
}), F = {
|
|
156
157
|
name: "FormClient",
|
|
157
158
|
i18nOptions: {
|
|
158
159
|
namespaces: "formClient",
|
|
159
|
-
messages:
|
|
160
|
+
messages: N
|
|
160
161
|
},
|
|
161
162
|
components: {
|
|
162
163
|
ClientAutocomplete: v,
|
|
@@ -194,6 +195,10 @@ const S = {
|
|
|
194
195
|
type: Object,
|
|
195
196
|
default: null
|
|
196
197
|
},
|
|
198
|
+
signOptions: {
|
|
199
|
+
type: Array,
|
|
200
|
+
default: () => []
|
|
201
|
+
},
|
|
197
202
|
isPublicForm: {
|
|
198
203
|
type: Boolean,
|
|
199
204
|
default: !1
|
|
@@ -209,7 +214,7 @@ const S = {
|
|
|
209
214
|
].some((e) => !!e) ? {
|
|
210
215
|
orgNo: {
|
|
211
216
|
personalNumber(e) {
|
|
212
|
-
return !this.validateOrgNo || !e ? !0 : this.isIndivid ?
|
|
217
|
+
return !this.validateOrgNo || !e ? !0 : this.isIndivid ? d(e) : m(e) || d(e);
|
|
213
218
|
}
|
|
214
219
|
},
|
|
215
220
|
reference: {
|
|
@@ -237,7 +242,7 @@ const S = {
|
|
|
237
242
|
};
|
|
238
243
|
},
|
|
239
244
|
computed: {
|
|
240
|
-
...
|
|
245
|
+
...I({
|
|
241
246
|
id: "endCustomer.id",
|
|
242
247
|
type: "endCustomer.customerType",
|
|
243
248
|
name: "endCustomer.name",
|
|
@@ -286,7 +291,7 @@ const S = {
|
|
|
286
291
|
return this.realOrgNo;
|
|
287
292
|
},
|
|
288
293
|
set(a) {
|
|
289
|
-
const e = this.isIndivid ?
|
|
294
|
+
const e = this.isIndivid ? d(a) : m(a) || d(a);
|
|
290
295
|
return this.validateOrgNo && e ? (this.realOrgNo = e, !0) : (this.realOrgNo = a, !0);
|
|
291
296
|
}
|
|
292
297
|
},
|
|
@@ -308,7 +313,7 @@ const S = {
|
|
|
308
313
|
}
|
|
309
314
|
}
|
|
310
315
|
};
|
|
311
|
-
var
|
|
316
|
+
var z = function() {
|
|
312
317
|
var e = this, t = e._self._c;
|
|
313
318
|
return t("div", { staticClass: "form-client" }, [e.simpleForm ? t("form", { on: { submit: function(i) {
|
|
314
319
|
return i.preventDefault(), e.validateForm.apply(null, arguments);
|
|
@@ -382,11 +387,7 @@ var F = function() {
|
|
|
382
387
|
} }, on: { click: function(n) {
|
|
383
388
|
return e.$emit("update:document-role", i);
|
|
384
389
|
} } }, [t("div", { staticStyle: { "line-height": "1.25", padding: "4px 0" } }, [t("div", [e._v(e._s(e.$t(`_common:documentRole.${i}.description`)))]), t("div", { staticStyle: { "font-size": "12px", opacity: "0.7" } }, [e._v(" " + e._s(e.$t(`_common:documentRole.${i}.label`)) + " ")])])]);
|
|
385
|
-
})], 2)], 1) : e._e(), e.answerMethod ? t("div", { staticClass: "dropdown-field-wrapper" }, [t("div", { staticClass: "my-1 text-sm text-gray-600" }, [e._v(" " + e._s(e.$t("_common:signMethod.title")) + " ")]), t("CDropdown", { staticStyle: { "margin-bottom": "calc(1 * var(--rem))" }, attrs: { expanded: "" } }, [t("CButton", { staticClass: "is-left", attrs: { slot: "trigger", "dropdown-icon": !0, type: "none", pattern: "secondary", wide: "" }, slot: "trigger" }, [t("div", { staticStyle: { "line-height": "1.25", padding: "4px 0" } }, [t("div", [e._v(e._s(e.$t(`signMethod.${e.answerMethod.accept}.title`)))]), t("div", { staticClass: "truncate", staticStyle: { "font-size": "12px", opacity: "0.7" } }, [e._v(" " + e._s(e.$t(`signMethod.${e.answerMethod.accept}.content`)) + " ")])])]), e._l(
|
|
386
|
-
...!e.isPublicForm && e.feature("bankId") ? ["bankId"] : [],
|
|
387
|
-
"signature",
|
|
388
|
-
"inPerson"
|
|
389
|
-
], function(i) {
|
|
390
|
+
})], 2)], 1) : e._e(), e.answerMethod ? t("div", { staticClass: "dropdown-field-wrapper" }, [t("div", { staticClass: "my-1 text-sm text-gray-600" }, [e._v(" " + e._s(e.$t("_common:signMethod.title")) + " ")]), t("CDropdown", { staticStyle: { "margin-bottom": "calc(1 * var(--rem))" }, attrs: { expanded: "" } }, [t("CButton", { staticClass: "is-left", attrs: { slot: "trigger", "dropdown-icon": !0, type: "none", pattern: "secondary", wide: "" }, slot: "trigger" }, [t("div", { staticStyle: { "line-height": "1.25", padding: "4px 0" } }, [t("div", [e._v(e._s(e.$t(`signMethod.${e.answerMethod.accept}.title`)))]), t("div", { staticClass: "truncate", staticStyle: { "font-size": "12px", opacity: "0.7" } }, [e._v(" " + e._s(e.$t(`signMethod.${e.answerMethod.accept}.content`)) + " ")])])]), e._l(e.signOptions, function(i) {
|
|
390
391
|
return t("CDropdownItem", { key: i, on: { click: function(n) {
|
|
391
392
|
return e.$emit("update:answer-method", {
|
|
392
393
|
...e.answerMethod,
|
|
@@ -394,18 +395,18 @@ var F = function() {
|
|
|
394
395
|
});
|
|
395
396
|
} } }, [t("div", { staticStyle: { "line-height": "1.25", padding: "4px 0" } }, [t("div", [e._v(e._s(e.$t(`signMethod.${i}.title`)))]), t("div", { staticClass: "max-w-[calc(12_*_var(--rem))] truncate", staticStyle: { "font-size": "12px", opacity: "0.7", "text-wrap": "wrap" } }, [e._v(" " + e._s(e.$t(`signMethod.${i}.content`)) + " ")])])]);
|
|
396
397
|
})], 2)], 1) : e._e()]) : e._e(), t("div", { staticStyle: { "margin-top": "calc(3 * var(--rem))" } }, [t("CButton", { staticStyle: { padding: "16px", "border-radius": "8px", height: "100%", "font-size": "14px", "font-weight": "600", "box-shadow": "0 2px 4px -1px rgba(0, 0, 0, 0.1)" }, attrs: { loading: e.isPosting, type: "secondary", wide: "" }, on: { click: e.validateForm } }, [e._v(e._s(e.$t("updateButton")))])], 1)], 1)]);
|
|
397
|
-
},
|
|
398
|
-
I,
|
|
398
|
+
}, M = [], O = /* @__PURE__ */ u(
|
|
399
399
|
F,
|
|
400
400
|
z,
|
|
401
|
+
M,
|
|
401
402
|
!1,
|
|
402
403
|
null,
|
|
403
|
-
"
|
|
404
|
+
"f3679544"
|
|
404
405
|
);
|
|
405
|
-
const R =
|
|
406
|
+
const R = O.exports, { mapFields: q } = p({
|
|
406
407
|
getterType: "forms/getField",
|
|
407
408
|
mutationType: "forms/updateField"
|
|
408
|
-
}),
|
|
409
|
+
}), A = {
|
|
409
410
|
name: "ClientModal",
|
|
410
411
|
i18nOptions: {
|
|
411
412
|
namespaces: "clientModal",
|
|
@@ -457,6 +458,10 @@ const R = M.exports, { mapFields: O } = u({
|
|
|
457
458
|
type: Boolean,
|
|
458
459
|
default: !1
|
|
459
460
|
},
|
|
461
|
+
signOptions: {
|
|
462
|
+
type: Array,
|
|
463
|
+
default: () => ["signature", "inPerson"]
|
|
464
|
+
},
|
|
460
465
|
setFormValue: {
|
|
461
466
|
type: Function,
|
|
462
467
|
required: !0
|
|
@@ -472,11 +477,13 @@ const R = M.exports, { mapFields: O } = u({
|
|
|
472
477
|
}
|
|
473
478
|
},
|
|
474
479
|
data() {
|
|
475
|
-
|
|
480
|
+
var e;
|
|
481
|
+
let a = l(this.formData, "data.defaultAnswerMethod.accept") || "signature";
|
|
482
|
+
return (e = this.signOptions) != null && e.length && !this.signOptions.includes(a) && ([a] = this.signOptions), {
|
|
476
483
|
storedNewClient: {
|
|
477
484
|
documentRole: "signee",
|
|
478
485
|
answerMethod: {
|
|
479
|
-
accept:
|
|
486
|
+
accept: a,
|
|
480
487
|
deny: "button"
|
|
481
488
|
}
|
|
482
489
|
},
|
|
@@ -486,7 +493,7 @@ const R = M.exports, { mapFields: O } = u({
|
|
|
486
493
|
};
|
|
487
494
|
},
|
|
488
495
|
computed: {
|
|
489
|
-
...
|
|
496
|
+
...q({
|
|
490
497
|
endCustomer: "endCustomer"
|
|
491
498
|
}),
|
|
492
499
|
...x("forms", {
|
|
@@ -501,12 +508,12 @@ const R = M.exports, { mapFields: O } = u({
|
|
|
501
508
|
return !!(this.feature("bankId") || this.isPublicForm && b[_.brand].defaultRegion === "SE");
|
|
502
509
|
},
|
|
503
510
|
existsOnDocument() {
|
|
504
|
-
return !!
|
|
511
|
+
return !!l(this.formData, `clients[${this.documentClientIndex}]`);
|
|
505
512
|
}
|
|
506
513
|
},
|
|
507
514
|
created() {
|
|
508
515
|
this.forceExpand && (this.showMore = !0);
|
|
509
|
-
const a =
|
|
516
|
+
const a = l(
|
|
510
517
|
this.formData,
|
|
511
518
|
`clients[${this.documentClientIndex}]`,
|
|
512
519
|
{}
|
|
@@ -525,6 +532,7 @@ const R = M.exports, { mapFields: O } = u({
|
|
|
525
532
|
saveClient: c.FORM_SUBMIT_ENDCUSTOMER,
|
|
526
533
|
showMessage: c.SHOW_MESSAGE
|
|
527
534
|
}),
|
|
535
|
+
omit: S,
|
|
528
536
|
loadForm(a = {}) {
|
|
529
537
|
this.storedNewClient = Object.assign(this.storedNewClient, a), this.endCustomer = $({
|
|
530
538
|
type: this.defaultClientType(),
|
|
@@ -533,7 +541,7 @@ const R = M.exports, { mapFields: O } = u({
|
|
|
533
541
|
},
|
|
534
542
|
async onSave() {
|
|
535
543
|
this.isLoading = !0;
|
|
536
|
-
let a =
|
|
544
|
+
let a = l(this.endCustomer, "id");
|
|
537
545
|
if (!this.isPublicForm) {
|
|
538
546
|
let e = !1;
|
|
539
547
|
this.endCustomer && (this.endCustomer.id ? this.can("endCustomers", "modify", this.endCustomer.id) && (e = !0) : this.can("endCustomers", "create") && (e = !0)), e && (a = await this.saveClient());
|
|
@@ -586,11 +594,11 @@ const R = M.exports, { mapFields: O } = u({
|
|
|
586
594
|
}
|
|
587
595
|
}
|
|
588
596
|
};
|
|
589
|
-
var
|
|
597
|
+
var D = function() {
|
|
590
598
|
var e = this, t = e._self._c;
|
|
591
599
|
return t("div", { staticClass: "font-primary fixed inset-0 z-[1000] grid place-items-center overflow-auto bg-black bg-opacity-10 max-sm:block max-sm:min-h-full max-sm:w-full max-sm:overflow-auto sm:py-4", on: { "&click": function(i) {
|
|
592
600
|
return i.target !== i.currentTarget ? null : e.close.apply(null, arguments);
|
|
593
|
-
} } }, [t("div", { staticClass: "max-sm:h-initial relative mx-auto flex flex-col items-center rounded-xl bg-white p-10 text-lg max-sm:min-h-full max-sm:w-full max-sm:rounded-none max-sm:pt-16" }, [t("CButton", { staticClass: "z-2 absolute right-4 top-4", class: e.showMore ? "" : "sm:!hidden", attrs: { pattern: "tertiary", type: "none", circle: "", icon: "x" }, on: { click: e.close } }), t("FormClient", { staticClass: "max-w-full p-0", class: [e.showMore ? "w-[520px]" : "w-[360px]"], attrs: { "search-enabled": !0, "require-reference": !1, "simple-form": !e.showMore, "input-focus-on-mount": e.inputFocusOnMount, "document-role": e.storedNewClient.documentRole, "answer-method": e.storedNewClient.answerMethod, "validate-org-no": e.validateOrgNo, "is-public-form": e.isPublicForm }, on: { "update:documentRole": function(i) {
|
|
601
|
+
} } }, [t("div", { staticClass: "max-sm:h-initial relative mx-auto flex flex-col items-center rounded-xl bg-white p-10 text-lg max-sm:min-h-full max-sm:w-full max-sm:rounded-none max-sm:pt-16" }, [t("CButton", { staticClass: "z-2 absolute right-4 top-4", class: e.showMore ? "" : "sm:!hidden", attrs: { pattern: "tertiary", type: "none", circle: "", icon: "x" }, on: { click: e.close } }), t("FormClient", { staticClass: "max-w-full p-0", class: [e.showMore ? "w-[520px]" : "w-[360px]"], attrs: { "search-enabled": !0, "require-reference": !1, "simple-form": !e.showMore, "input-focus-on-mount": e.inputFocusOnMount, "document-role": e.storedNewClient.documentRole, "answer-method": e.storedNewClient.answerMethod, "sign-options": e.signOptions, "validate-org-no": e.validateOrgNo, "is-public-form": e.isPublicForm }, on: { "update:documentRole": function(i) {
|
|
594
602
|
return e.$set(e.storedNewClient, "documentRole", i);
|
|
595
603
|
}, "update:document-role": function(i) {
|
|
596
604
|
return e.$set(e.storedNewClient, "documentRole", i);
|
|
@@ -599,19 +607,19 @@ var A = function() {
|
|
|
599
607
|
}, "update:answer-method": function(i) {
|
|
600
608
|
return e.$set(e.storedNewClient, "answerMethod", i);
|
|
601
609
|
}, setClient: function(i) {
|
|
602
|
-
|
|
610
|
+
e.loadForm(e.omit(i, ["answerMethod"]));
|
|
603
611
|
}, submit: e.onSave, "show-more": function(i) {
|
|
604
612
|
e.showMore = !0;
|
|
605
613
|
} } }), e.existsOnDocument && e.mq === "sm" ? t("CButton", { staticClass: "mt-4 text-sm", attrs: { type: "danger", pattern: "secondary", wide: "" }, on: { click: e.removeClient } }, [e._v(" " + e._s(e.$t("_common:remove")) + " ")]) : e._e()], 1)]);
|
|
606
|
-
},
|
|
607
|
-
q,
|
|
614
|
+
}, B = [], E = /* @__PURE__ */ u(
|
|
608
615
|
A,
|
|
609
616
|
D,
|
|
617
|
+
B,
|
|
610
618
|
!1,
|
|
611
619
|
null,
|
|
612
620
|
null
|
|
613
621
|
);
|
|
614
|
-
const
|
|
622
|
+
const U = E.exports;
|
|
615
623
|
export {
|
|
616
|
-
|
|
624
|
+
U as default
|
|
617
625
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { w as r } from "./CDropdownItem-
|
|
2
|
-
import {
|
|
3
|
-
import { v as o } from "./index-
|
|
1
|
+
import { w as r } from "./CDropdownItem-DGES8E6l.js";
|
|
2
|
+
import { E as l, g as s, n as c } from "./main-Bp2qcma0.js";
|
|
3
|
+
import { v as o } from "./index-tNIrTnCx.js";
|
|
4
4
|
import { m as p, b as n, a as d } from "./vuex.esm-DKGl8mcw.js";
|
|
5
|
-
import { s as m, a as u } from "./publicSenderState-
|
|
5
|
+
import { s as m, a as u } from "./publicSenderState-BcN9kJJr.js";
|
|
6
6
|
const { mapFields: f } = l({
|
|
7
7
|
getterType: "forms/getField",
|
|
8
8
|
mutationType: "forms/updateField"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { m as n } from "./mapFormMixin-
|
|
2
|
-
import { B as l } from "./BlockMedia-
|
|
3
|
-
import { t as r } from "./tinycolor-
|
|
4
|
-
import { T as i } from "./DocTextEditor-
|
|
5
|
-
import { n as s,
|
|
1
|
+
import { m as n } from "./mapFormMixin-Ce3_WIKw.js";
|
|
2
|
+
import { B as l } from "./BlockMedia-CAgKbN_k.js";
|
|
3
|
+
import { t as r } from "./tinycolor-DNK6zGoq.js";
|
|
4
|
+
import { T as i } from "./DocTextEditor-idQMnlIF.js";
|
|
5
|
+
import { n as s, ab as c, z as u, B as m, A as p } from "./main-Bp2qcma0.js";
|
|
6
6
|
import { i as d } from "./i18nMessages-Chz_lxGG.js";
|
|
7
7
|
const _ = {
|
|
8
8
|
name: "StaticComboLayout",
|
|
@@ -33,7 +33,7 @@ const h = y.exports, v = {
|
|
|
33
33
|
messages: d
|
|
34
34
|
},
|
|
35
35
|
components: {
|
|
36
|
-
DocumentLogotype: () => import("./DocumentLogotype-
|
|
36
|
+
DocumentLogotype: () => import("./DocumentLogotype-pDJRc6Hj.js"),
|
|
37
37
|
StaticComboLayout: h,
|
|
38
38
|
TextEditor: i
|
|
39
39
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as d } from "./mapFormMixin-
|
|
2
|
-
import { T as l } from "./ThemeColorRow-
|
|
3
|
-
import { n as s,
|
|
1
|
+
import { m as d } from "./mapFormMixin-Ce3_WIKw.js";
|
|
2
|
+
import { T as l } from "./ThemeColorRow-HUN-QPY_.js";
|
|
3
|
+
import { n as s, P as p, H as u } from "./main-Bp2qcma0.js";
|
|
4
4
|
const m = (i, e, t, o) => Math.atan2(i - t, e - o) * (180 / Math.PI) * -1 + 180, v = {
|
|
5
5
|
name: "DegreePicker",
|
|
6
6
|
props: {
|
|
@@ -135,8 +135,8 @@ var C = function() {
|
|
|
135
135
|
"e22a6b42"
|
|
136
136
|
);
|
|
137
137
|
const $ = w.exports, x = {
|
|
138
|
-
image: () => import("./ImageSelectModal-
|
|
139
|
-
video: () => import("./VideoSelectModal-
|
|
138
|
+
image: () => import("./ImageSelectModal-CAOh3YHc.js"),
|
|
139
|
+
video: () => import("./VideoSelectModal-B61rBqdH.js")
|
|
140
140
|
}, S = {
|
|
141
141
|
name: "CoverBlockSettings",
|
|
142
142
|
i18nOptions: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as f } from "./DocumentVoided-
|
|
2
|
-
import { C as g, a as h, w } from "./CDropdownItem-
|
|
3
|
-
import { n as r,
|
|
4
|
-
import { C as S } from "./CPhoneFormat-
|
|
1
|
+
import { D as f } from "./DocumentVoided-DfKewfe4.js";
|
|
2
|
+
import { C as g, a as h, w } from "./CDropdownItem-DGES8E6l.js";
|
|
3
|
+
import { n as r, ag as $, b as x, ah as y, ai as b, aj as C } from "./main-Bp2qcma0.js";
|
|
4
|
+
import { C as S } from "./CPhoneFormat-DXPrTit9.js";
|
|
5
5
|
const D = {
|
|
6
6
|
name: "PublicDocumentEvents",
|
|
7
7
|
props: {
|
|
@@ -144,7 +144,7 @@ var R = function() {
|
|
|
144
144
|
}), t("div", { staticClass: "flex w-full flex-col", staticStyle: { "font-size": "14px", "align-items": "baseline" } }, [e.recipient.email ? t("a", { attrs: { href: `mailto:${e.recipient.email}`, target: "_blank" } }, [e._v(" " + e._s(e.recipient.email) + " ")]) : e._e(), e.recipient.cellphone ? t("CPhoneFormat", { attrs: { phone: e.recipient.cellphone, region: e.recipient.cellphoneRegion }, scopedSlots: e._u([{ key: "default", fn: function({ formattedValue: i }) {
|
|
145
145
|
return t("a", { attrs: { href: `tel:${e.recipient.cellphone}` } }, [e._v(" " + e._s(i) + " ")]);
|
|
146
146
|
} }], null, !1, 2469850174) }) : e._e()], 1)], 2), t("div", { staticStyle: { "background-color": "hsl(0, 0%, 94%)", padding: "0.75em 0.75em", "font-weight": "500", "font-size": "13px", "line-height": "1", color: "hsl(0, 0%, 40%)", position: "relative" } }, [t("div", [e._v(" " + e._s(e.$t(`_common:documentRole.${e.recipient.documentRole}.label`)) + " ")]), t("div", { staticStyle: { position: "absolute", right: "1em", top: "0px", transform: "translate(0, -50%)" } }, [t("v-popover", { attrs: { "popover-inner-class": "signee-popover", trigger: "hover", placement: "bottom-end" } }, [e.recipient.documentRole === "signee" ? t("div", { staticStyle: { padding: "5px 0.75em", background: "hsl(0, 0%, 60%)", "border-radius": "4px", "font-size": "13px", color: "hsl(0, 0%, 100%)", cursor: "default", display: "inline-flex", "align-items": "center" } }, [t("CIcon", { staticStyle: { "margin-right": "0.5ch" }, attrs: { size: 15, type: "info", "stroke-width": "2" } }), e.recipient.answer && e.recipient.answer.didAccept ? [e._v(" " + e._s(e.$t("_common:approved").capitalize()) + " ")] : e.recipient.answer ? [e._v(" " + e._s(e.$t("_common:denied").capitalize()) + " ")] : [e._v(" " + e._s(e.$t("views:publicDocument.pdfVerification.waitingForAnswer")) + " ")]], 2) : e._e(), t("div", { staticStyle: { padding: "0" }, attrs: { slot: "popover" }, slot: "popover" }, [t("div", { staticStyle: { padding: "1em 1.5em" } }, [e.recipient.answer && e.recipient.answer.didAccept ? [e.recipient.answer.signatureDataURL ? t("div", { staticStyle: { "padding-bottom": "0.5em" } }, [t("div", { staticClass: "has-text-grey", staticStyle: { "padding-bottom": "1em" } }, [e._v(" " + e._s(e.$t("_common:signature").capitalize()) + " ")]), t("img", { staticStyle: { width: "80%" }, attrs: { src: e.recipient.answer.signatureDataURL } })]) : t("div", { staticStyle: { "font-size": "13px", "padding-top": "3px" } }, [e.get(e.recipient, "answerMethod.accept") === "bankId" ? [t("div", { staticStyle: { "font-weight": "500" } }, [e._v(" " + e._s(e.$t("views:publicDocument.pdfVerification.recipient.signedBankId")) + " ")]), t("div", [e._v(e._s(e.recipient.answer.response.name))]), t("div", [e._v(e._s(e.recipient.socialNo))])] : e.get(e.recipient, "answerMethod.accept") === "login" ? t("div", { staticStyle: { "font-weight": "500" } }, [e._v(" " + e._s(e.$t("views:publicDocument.pdfVerification.recipient.verifiedLogin")) + " ")]) : e._e()], 2)] : e.recipient.answer ? t("div", [e._v(" " + e._s(e.$t("_common:denied").capitalize()) + " ")]) : t("div", [e._v(" " + e._s(e.$t("pendingAnswer")) + " ")])], 2), e.recipient.answer ? t("div", { staticStyle: { padding: "8px 1.5em", "border-top": "1px solid hsl(0deg 0% 88%)", "background-color": "hsl(0deg 0% 95%)", "font-size": "13px", color: "hsl(0, 0%, 35%)", "font-weight": "500" } }, [e.recipient.answer.didAnswerAt ? t("div", [t("div", [e._v(" " + e._s(e.$t("_common:date").capitalize()) + ": " + e._s(e.$formatDate(e.recipient.answer.didAnswerAt, "P")) + " ")]), t("div", [e._v(" " + e._s(e.$t("_common:time").capitalize()) + ": " + e._s(e.$formatDate(e.recipient.answer.didAnswerAt, "p")) + " ")])]) : e._e(), e.recipient.answer.ip ? t("div", [e._v(" IP: " + e._s(e.recipient.answer.ip) + " ")]) : e._e(), e.recipient.answer.browser ? t("div", [e._v(" Browser: " + e._s(e.getBrowserString(e.recipient.answer)) + " ")]) : e._e()]) : e._e()])])], 1)])]);
|
|
147
|
-
}, L = [],
|
|
147
|
+
}, L = [], j = /* @__PURE__ */ r(
|
|
148
148
|
A,
|
|
149
149
|
R,
|
|
150
150
|
L,
|
|
@@ -152,11 +152,11 @@ var R = function() {
|
|
|
152
152
|
null,
|
|
153
153
|
"eee5c92d"
|
|
154
154
|
);
|
|
155
|
-
const
|
|
155
|
+
const I = j.exports, q = {
|
|
156
156
|
name: "DocumentDetails",
|
|
157
157
|
components: {
|
|
158
158
|
PublicDocumentEvents: F,
|
|
159
|
-
PublicRecipientItem:
|
|
159
|
+
PublicRecipientItem: I,
|
|
160
160
|
CDropdown: g,
|
|
161
161
|
CDropdownItem: h
|
|
162
162
|
},
|