@cling-se/widget 0.19.12 → 0.20.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/CHANGELOG.md +18 -0
- package/README.internal.md +5 -5
- package/dist/{AddClientCallout-CKB2ux-T.js → AddClientCallout-p9hY5ma4.js} +4 -4
- package/dist/{AnswerModal-BJ3_JrYQ.js → AnswerModal-B5HomjlZ.js} +3 -3
- package/dist/{AttachmentItem-CQKNtvF_.js → AttachmentItem-vWCnfmSy.js} +4 -4
- package/dist/{BaseUpload-CoV5kPSh.js → BaseUpload-CpJcJRjy.js} +2 -2
- package/dist/{BlockMedia-BjXP0TjO.js → BlockMedia-TjxVQfRI.js} +1 -1
- package/dist/{CCallout-D2K1xjJp.js → CCallout-mg5CHKbW.js} +1 -1
- package/dist/{CCurrencyDropdown-B_ifqq9U.js → CCurrencyDropdown-CYsaulJX.js} +3 -3
- package/dist/{CDropdownItem-BfdpY3v0.js → CDropdownItem-Cu4bFWtD.js} +96 -96
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-S2cfSMeh.js → CFormField.vue_vue_type_script_setup_true_lang-BeIp8_aU.js} +2 -2
- package/dist/{CPhoneFormat-C3E_mcs_.js → CPhoneFormat-GM3CZqub.js} +1 -1
- package/dist/{CPhoneInput-B4au5HPe.js → CPhoneInput-DKf8eSyK.js} +5 -5
- package/dist/{CPriceInput-BfzyrIFS.js → CPriceInput-Be3pub6u.js} +2 -2
- package/dist/{CSelect-CrUoAl0P.js → CSelect-CNY0-lsV.js} +1 -1
- package/dist/{CSkeleton-DfbHpf8S.js → CSkeleton-Bh4UU_9s.js} +1 -1
- package/dist/{ClientAutocomplete-BryD_HTQ.js → ClientAutocomplete-Dm4wSPnJ.js} +3 -3
- package/dist/{ClientModal-CxwvC5Mx.js → ClientModal-BHmZDhYp.js} +218 -248
- package/dist/{ColorPicker-Dzjmfjy2.js → ColorPicker-CDmqEHnY.js} +1 -1
- package/dist/{CompanyModal-9MQ2AXNt.js → CompanyModal-CifLcwwI.js} +7 -7
- package/dist/{ContentWrapper-D2rwWu3e.js → ContentWrapper-CTNDb0ck.js} +6 -6
- package/dist/{CoverBlockSettings-BWOzPM7X.js → CoverBlockSettings-rLaGxL29.js} +7 -7
- package/dist/{DocAnswer-CVqUEDAB.js → DocAnswer-DdRshw-Z.js} +2 -2
- package/dist/{DocDetails-C5X2-g_a.js → DocDetails-bSPDS7-8.js} +4 -4
- package/dist/{DocForm-0dzfP9DE.js → DocForm-Cn6th1oG.js} +99 -97
- package/dist/{DocFormSend-B26N23z_.js → DocFormSend-BVoLYwUB.js} +2 -2
- package/dist/{DocLinks-DvRvC-aE.js → DocLinks-BB5jSGpp.js} +2 -2
- package/dist/{DocModalBase-C4rsAl6b.js → DocModalBase-DVMNHrQ0.js} +1 -1
- package/dist/{DocPrint-B98dNhsA.js → DocPrint-4LADFj3b.js} +1 -1
- package/dist/{DocReceipt-CXo_upl2.js → DocReceipt-DMsRqm6N.js} +2 -2
- package/dist/{DocSendReminder-DoJMKu9L.js → DocSendReminder--sHhq7nq.js} +1 -1
- package/dist/{DocTextEditor-BaFbu9v7.js → DocTextEditor-rxDDkurp.js} +38 -22
- package/dist/{DocTimeline-CCwdToqT.js → DocTimeline-XcSBcUaQ.js} +2 -2
- package/dist/{DocumentClient-IPArl7lF.js → DocumentClient-C_ZKPKB5.js} +5 -5
- package/dist/{DocumentLayout-DNZ_DvgH.js → DocumentLayout-B49wHYov.js} +21 -21
- package/dist/{DocumentLogotype-B3uoTgI4.js → DocumentLogotype-BuK-fBZa.js} +4 -4
- package/dist/{DocumentVoided-DWde8VwA.js → DocumentVoided-oOGAvC6V.js} +1 -1
- package/dist/{EmbedInput-BsHyhdIv.js → EmbedInput-D8YWQ-qB.js} +3 -3
- package/dist/{EmbedSettings-DxqT8rQM.js → EmbedSettings-CAMvefuZ.js} +3 -3
- package/dist/{ErrorCallout-DVAoEvRy.js → ErrorCallout-BJyb9nBD.js} +1 -1
- package/dist/{FilePreviewModal-B_qtsBko.js → FilePreviewModal-DHyhUuZo.js} +2 -2
- package/dist/{Flag-axItvnYr.js → Flag-Ce5qgf2m.js} +1 -1
- package/dist/{HeaderSettings-BHxv6zbP.js → HeaderSettings-BMOUeMU8.js} +9 -9
- package/dist/{ImageSelectModal-D6qOJzjA.js → ImageSelectModal-BJEHD53w.js} +3 -3
- package/dist/{ImageUploadWrapper-COMLuYyW.js → ImageUploadWrapper-Bm_fsubV.js} +2 -2
- package/dist/{Index-DfClBO72.js → Index-2rJaMFcL.js} +4 -4
- package/dist/{Index-D-WpXww5.js → Index-B6utGn5s.js} +1 -1
- package/dist/{Index-C9jZraL3.js → Index-B7LFM_9O.js} +2 -2
- package/dist/{Index-BAh35Nee.js → Index-B8363PUi.js} +4 -4
- package/dist/{Index-BOC_usJj.js → Index-BFUBReG-.js} +4 -4
- package/dist/{Index-DIa3ZNqY.js → Index-BIAKEao7.js} +4 -4
- package/dist/{Index-B_wlGU0V.js → Index-BRRXjIQP.js} +1 -1
- package/dist/{Index-CjZjDiay.js → Index-BSDfmC22.js} +2 -2
- package/dist/{Index-cGblBo3D.js → Index-Ba4whr1w.js} +2 -2
- package/dist/{Index-BVr7Vs45.js → Index-Bcdw8XVA.js} +46 -37
- package/dist/{Index-Dt4MpMCQ.js → Index-BkaAqWBO.js} +1 -1
- package/dist/{Index-MzezIdfd.js → Index-Bns741YV.js} +3 -3
- package/dist/{Index-CO8q3yMx.js → Index-C7CgBDIF.js} +3 -3
- package/dist/{Index-DGVo6Mv_.js → Index-C9iZyCtn.js} +75 -73
- package/dist/{Index-CU5UW3Hy.js → Index-CAgPjQtC.js} +6 -6
- package/dist/{Index-CkCdbHs4.js → Index-CItHDT3v.js} +4 -4
- package/dist/{Index-0LjbOVSa.js → Index-CQ9351hs.js} +8 -8
- package/dist/{Index-C0VVjYzv.js → Index-CQvg6N5q.js} +5 -5
- package/dist/{Index-CbZisK8y.js → Index-CYbVMO20.js} +4 -4
- package/dist/{Index-DjdJ9R-S.js → Index-CghqZnil.js} +5 -5
- package/dist/{Index-Cy8ICAgR.js → Index-ClIh2IW1.js} +10 -10
- package/dist/{Index-BaVfkjuK.js → Index-ClT5TAft.js} +3 -3
- package/dist/{Index-DY1Wb2pH.js → Index-CoSRZBAe.js} +6 -6
- package/dist/{Index-_920IuDX.js → Index-CrIL3HJg.js} +3 -3
- package/dist/Index-CvYoh9UK.js +4 -0
- package/dist/{Index-bwUzGE5t.js → Index-CxSrhoOz.js} +26 -17
- package/dist/{Index-BILl37wX.js → Index-CzdPYWAZ.js} +4 -4
- package/dist/{Index-CPw49wIY.js → Index-D9NojrLE.js} +4 -4
- package/dist/{Index-d3RpL9s6.js → Index-DCR65NzU.js} +7 -7
- package/dist/{Index-DCA5JJ1t.js → Index-D_j8z8TJ.js} +9 -9
- package/dist/{Index-C1qXwtaw.js → Index-Do4iuEM8.js} +2 -2
- package/dist/{Index-Za46FzMl.js → Index-EFThQNhh.js} +2 -2
- package/dist/{Index-BOeiZRCe.js → Index-SSS__jy7.js} +5 -5
- package/dist/{Index-QBYnUTJm.js → Index-y1iAAknQ.js} +14 -14
- package/dist/{Index.vue_vue_type_script_lang-CFTxaSrV.js → Index.vue_vue_type_script_lang-cUDsYudO.js} +2 -2
- package/dist/{InputToggleRow-DsIWqdk_.js → InputToggleRow-BFnFE9Oc.js} +1 -1
- package/dist/{ManualPopover-C3KGzuu9.js → ManualPopover-DmAP6B_Y.js} +1 -1
- package/dist/{MediaWrapper-MFm8YeB3.js → MediaWrapper-C4JfFbde.js} +3 -3
- package/dist/{NotBindingText-DcWDdouW.js → NotBindingText-7Rr1u9v1.js} +2 -2
- package/dist/{PackageGroup-SGTSnH21.js → PackageGroup-DkdCS2oR.js} +5 -5
- package/dist/{PdfTerms-fOlzudZh.js → PdfTerms-BdymoJyT.js} +2 -2
- package/dist/{PdfViewer-DDpx00sK.js → PdfViewer-CXkBa0_g.js} +2 -2
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-Cz2dQuvO.js → PlainHtml.vue_vue_type_script_setup_true_lang-lB3eiXpl.js} +1 -1
- package/dist/{PriceHeader-tqURZOPu.js → PriceHeader-DXustcav.js} +7 -7
- package/dist/{SearchApi-DULmvWHU.js → SearchApi-DuZeNjkY.js} +1 -1
- package/dist/{SendForm-DOmjDjSH.js → SendForm-BrSZ5UeL.js} +8 -8
- package/dist/{Setup-Hkd7lTEY.js → Setup-CNSgF7b0.js} +1 -1
- package/dist/{SmartList-BJzzkwKP.js → SmartList-Rb2o-PbW.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-CbQN53qU.js → Sortable.vue_vue_type_script_setup_true_lang-r7QF2LJS.js} +1 -1
- package/dist/{TermsSettings-BDhWgymk.js → TermsSettings-yBfUx-7b.js} +34 -32
- package/dist/{ThemeColorRow-ko7tiZab.js → ThemeColorRow-DYUR7TXj.js} +3 -3
- package/dist/{ToggleBinding-vlw8aH-N.js → ToggleBinding-BEjzG2Xh.js} +4 -4
- package/dist/{UploadModal-DhhKi9cj.js → UploadModal-s3ML8quJ.js} +13 -11
- package/dist/{VideoPlayerInput-FAAwDDpw.js → VideoPlayerInput-Brw0_mfP.js} +4 -4
- package/dist/{VideoPlayerSettings--Z_6wCEh.js → VideoPlayerSettings-aNVhnuCo.js} +2 -2
- package/dist/{VideoSelectModal-DeQL4Kee.js → VideoSelectModal-BzIXa-FM.js} +3 -3
- package/dist/{focusDrawerMixin-BTx49vhB.js → focusDrawerMixin-DHsxgKiI.js} +1 -1
- package/dist/{formDrawerState-BkDkB7ox.js → formDrawerState-BRzcOCYZ.js} +1 -1
- package/dist/{helpers-gWbXh9Ns.js → helpers-5o9UkEF4.js} +1 -1
- package/dist/{index-CMbTkNvA.js → index-B02B2of8.js} +3 -3
- package/dist/{index-CBzzerP_.js → index-BTf-KF-1.js} +642 -563
- package/dist/{index-BXEarzT0.js → index-BXGeWlwY.js} +1 -1
- package/dist/{index-B7lPoMlH.js → index-CE5j0xPs.js} +1 -1
- package/dist/{index-B8q-wbk1.js → index-DKJal8iX.js} +8 -8
- package/dist/{index-Bx6eb6O1.js → index-DxQodQ2P.js} +1 -1
- package/dist/{index-ykqjytG7.js → index-TdIPOc2f.js} +1 -1
- package/dist/index.es.js +3 -33
- package/dist/index.umd.js +145 -145
- package/dist/{main-2MP6slUA.js → main-DKpj1mxJ.js} +5116 -5085
- package/dist/{mapFormMixin-CLZO7uaz.js → mapFormMixin-D2ME1W30.js} +4 -4
- package/dist/{omit-CMuwLvOe.js → omit-BlWnRm5y.js} +2 -2
- package/dist/{publicSenderState-C66ZctUJ.js → publicSenderState-CXApLC0x.js} +1 -1
- package/dist/{splitpanes-CgMn3s-g.js → splitpanes-CxR9KAOD.js} +1 -1
- package/dist/{template-D41MKsNw.js → template-B2jjOkEF.js} +1 -1
- package/dist/{tippy.esm-BE0T4-6s.js → tippy.esm-C_ureXvQ.js} +5 -5
- package/dist/{useTermsModal-Dodk50o3.js → useTermsModal-DctGKo-3.js} +4 -4
- package/dist/{utils-GWt5LxqQ.js → utils-mwks91R5.js} +1 -1
- package/dist/{validation-C6D3fzeF.js → validation-HJ33ekhX.js} +2 -2
- package/dist/validations-ohsJ5nBz.js +34 -0
- package/dist/widget.css +1 -1
- package/package.json +1 -1
- package/dist/Index-jTqUWF3X.js +0 -4
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { w as E, C as
|
|
4
|
-
import { _ as le } from "./CFormField.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { C as ae } from "./CPhoneInput-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
1
|
+
import { C as W } from "./ClientAutocomplete-Dm4wSPnJ.js";
|
|
2
|
+
import { _ as F, b6 as L, d as g, o as p, u as j, j as i, b7 as Z, an as N, x as y, T as G, ai as H, a as B, ar as P, aa as K, a6 as J, b as f, f as l, c as b, e as v, t as r, w as a, F as z, n as I, q as C, m as Y, aq as Q, af as k, aG as X, b8 as _, g as D, y as x, i as ee } from "./main-DKpj1mxJ.js";
|
|
3
|
+
import { w as E, C as te, a as oe } from "./CDropdownItem-Cu4bFWtD.js";
|
|
4
|
+
import { _ as le } from "./CFormField.vue_vue_type_script_setup_true_lang-BeIp8_aU.js";
|
|
5
|
+
import { C as ae } from "./CPhoneInput-DKf8eSyK.js";
|
|
6
|
+
import { i as V, a as A } from "./validations-ohsJ5nBz.js";
|
|
7
|
+
import { u as ne } from "./index-DxQodQ2P.js";
|
|
8
|
+
import { a as $, r as ie, e as se } from "./index-BXGeWlwY.js";
|
|
9
|
+
import { o as re } from "./omit-BlWnRm5y.js";
|
|
10
|
+
const de = {
|
|
10
11
|
name: "CRadio",
|
|
11
|
-
mixins: [
|
|
12
|
-
},
|
|
13
|
-
function
|
|
14
|
-
return
|
|
12
|
+
mixins: [L]
|
|
13
|
+
}, me = ["disabled"], ue = ["disabled", "required", "name", "value"], pe = { class: "control-label" };
|
|
14
|
+
function ce(e, t, s, u, c, n) {
|
|
15
|
+
return p(), g("label", {
|
|
15
16
|
ref: "label",
|
|
16
17
|
class: y([[`is-${e.size}`, { "is-disabled": e.disabled }], "b-radio radio"]),
|
|
17
18
|
disabled: e.disabledOrUndefined,
|
|
18
|
-
onClick: t[2] || (t[2] = (...
|
|
19
|
-
onKeydown: t[3] || (t[3] = H(N((
|
|
19
|
+
onClick: t[2] || (t[2] = (...h) => e.focus && e.focus(...h)),
|
|
20
|
+
onKeydown: t[3] || (t[3] = H(N((h) => e.$refs.label.click(), ["prevent"]), ["enter"]))
|
|
20
21
|
}, [
|
|
21
|
-
|
|
22
|
+
j(i("input", {
|
|
22
23
|
ref: "input",
|
|
23
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
24
|
+
"onUpdate:modelValue": t[0] || (t[0] = (h) => e.computedValue = h),
|
|
24
25
|
disabled: e.disabledOrUndefined,
|
|
25
26
|
required: e.requiredOrUndefined,
|
|
26
27
|
name: e.name,
|
|
@@ -28,49 +29,18 @@ function fe(e, t, i, d, p, l) {
|
|
|
28
29
|
type: "radio",
|
|
29
30
|
onClick: t[1] || (t[1] = N(() => {
|
|
30
31
|
}, ["stop"]))
|
|
31
|
-
}, null, 8,
|
|
32
|
-
[
|
|
32
|
+
}, null, 8, ue), [
|
|
33
|
+
[Z, e.computedValue]
|
|
33
34
|
]),
|
|
34
|
-
|
|
35
|
+
i("span", {
|
|
35
36
|
class: y([`is-${e.type}`, "check"])
|
|
36
37
|
}, null, 2),
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
i("span", pe, [
|
|
39
|
+
G(e.$slots, "default")
|
|
39
40
|
])
|
|
40
|
-
], 42,
|
|
41
|
+
], 42, me);
|
|
41
42
|
}
|
|
42
|
-
const
|
|
43
|
-
function T(e) {
|
|
44
|
-
if (typeof e > "u") throw Error("Missing param inputParam");
|
|
45
|
-
let t = e;
|
|
46
|
-
Number.isInteger(t) && (t = t.toString());
|
|
47
|
-
let i = 0;
|
|
48
|
-
const d = t.length, p = d % 2;
|
|
49
|
-
let l, c;
|
|
50
|
-
for (l = 0; l < d; l += 1)
|
|
51
|
-
c = parseInt(t.charAt(l), 10), l % 2 === p && (c *= 2), c > 9 && (c -= 9), i += c;
|
|
52
|
-
return i % 10 === 0;
|
|
53
|
-
}
|
|
54
|
-
function A(e) {
|
|
55
|
-
let t = e.replace(/ /g, "");
|
|
56
|
-
return t = t.replace(/-/g, ""), !T(t) || (t = [t.slice(0, 6), "-", t.slice(6)].join(""), !t.match(/^(\d{6})-(\d{4})$/)) ? !1 : t;
|
|
57
|
-
}
|
|
58
|
-
function V(e) {
|
|
59
|
-
if (typeof e > "u" || e === null || e === "")
|
|
60
|
-
return !1;
|
|
61
|
-
let t = e.trim().replace(/[^0-9]+/g, "");
|
|
62
|
-
if (t.length !== 10 && t.length !== 12)
|
|
63
|
-
return !1;
|
|
64
|
-
if (t.length === 10) {
|
|
65
|
-
const p = t.substring(0, 2), l = (/* @__PURE__ */ new Date()).getFullYear(), c = parseInt(
|
|
66
|
-
l.toString().substring(2, 4),
|
|
67
|
-
10
|
|
68
|
-
);
|
|
69
|
-
parseInt(p, 10) === 19 || parseInt(p, 10) === 20 || (parseInt(p, 10) >= 0 && parseInt(p, 10) <= c ? t = `20${t}` : t = `19${t}`);
|
|
70
|
-
}
|
|
71
|
-
return (/* @__PURE__ */ new Date()).getFullYear() - parseInt(t.substring(0, 4), 10) < 16 ? !1 : T(t.substring(2)) ? t : !1;
|
|
72
|
-
}
|
|
73
|
-
const he = {
|
|
43
|
+
const fe = /* @__PURE__ */ F(de, [["render", ce]]), ge = {
|
|
74
44
|
sv: {
|
|
75
45
|
title: "Mottagare",
|
|
76
46
|
updateButton: "Spara mottagare",
|
|
@@ -185,23 +155,23 @@ const he = {
|
|
|
185
155
|
}
|
|
186
156
|
}
|
|
187
157
|
}
|
|
188
|
-
}, { mapFields:
|
|
158
|
+
}, { mapFields: he } = P({
|
|
189
159
|
getterType: "forms/getField",
|
|
190
160
|
mutationType: "forms/updateField"
|
|
191
|
-
}),
|
|
161
|
+
}), ve = {
|
|
192
162
|
name: "FormClient",
|
|
193
163
|
i18nOptions: {
|
|
194
164
|
namespaces: "formClient",
|
|
195
|
-
messages:
|
|
165
|
+
messages: ge
|
|
196
166
|
},
|
|
197
167
|
components: {
|
|
198
|
-
ClientAutocomplete:
|
|
168
|
+
ClientAutocomplete: W,
|
|
199
169
|
CCheckbox: K,
|
|
200
|
-
CDropdown:
|
|
201
|
-
CDropdownItem:
|
|
170
|
+
CDropdown: oe,
|
|
171
|
+
CDropdownItem: te,
|
|
202
172
|
CField: le,
|
|
203
173
|
CPhoneInput: ae,
|
|
204
|
-
CRadio:
|
|
174
|
+
CRadio: fe
|
|
205
175
|
},
|
|
206
176
|
emits: [
|
|
207
177
|
"setClient",
|
|
@@ -253,7 +223,7 @@ const he = {
|
|
|
253
223
|
},
|
|
254
224
|
setup() {
|
|
255
225
|
return {
|
|
256
|
-
v$:
|
|
226
|
+
v$: ne()
|
|
257
227
|
};
|
|
258
228
|
},
|
|
259
229
|
validations() {
|
|
@@ -273,11 +243,11 @@ const he = {
|
|
|
273
243
|
required: $(this.requireReference && !this.isIndivid)
|
|
274
244
|
},
|
|
275
245
|
email: {
|
|
276
|
-
email:
|
|
246
|
+
email: se
|
|
277
247
|
}
|
|
278
248
|
} : {
|
|
279
249
|
name: {
|
|
280
|
-
required:
|
|
250
|
+
required: ie
|
|
281
251
|
},
|
|
282
252
|
orgNo: {
|
|
283
253
|
required: $(this.type === "company")
|
|
@@ -294,7 +264,7 @@ const he = {
|
|
|
294
264
|
};
|
|
295
265
|
},
|
|
296
266
|
computed: {
|
|
297
|
-
...
|
|
267
|
+
...he({
|
|
298
268
|
id: "endCustomer.id",
|
|
299
269
|
type: "endCustomer.customerType",
|
|
300
270
|
name: "endCustomer.name",
|
|
@@ -357,83 +327,83 @@ const he = {
|
|
|
357
327
|
}
|
|
358
328
|
},
|
|
359
329
|
mounted() {
|
|
360
|
-
var t,
|
|
330
|
+
var t, s, u;
|
|
361
331
|
const e = this.$refs[this.inputFocusOnMount] || this.$refs.name;
|
|
362
|
-
(
|
|
332
|
+
(u = (s = (t = e == null ? void 0 : e.$el) == null ? void 0 : t.nextElementSibling) == null ? void 0 : s.querySelector("input")) == null || u.focus();
|
|
363
333
|
},
|
|
364
334
|
methods: {
|
|
365
335
|
validateForm() {
|
|
366
336
|
return this.v$.$touch(), this.v$.$invalid ? !1 : (this.$emit("submit", !0), !0);
|
|
367
337
|
}
|
|
368
338
|
}
|
|
369
|
-
},
|
|
339
|
+
}, ye = { class: "form-client" }, be = { class: "space-between flex flex-wrap items-center pb-6" }, Ce = {
|
|
370
340
|
class: "flex-grow",
|
|
371
341
|
style: { "font-weight": "600", "font-size": "20px" }
|
|
372
|
-
},
|
|
342
|
+
}, we = { class: "type-toggle" }, ke = { style: { "line-height": "1.25", padding: "4px 0" } }, $e = { style: { "font-size": "12px", opacity: "0.7" } }, Ve = { style: { "line-height": "1.25", padding: "4px 0" } }, Ne = { style: { "font-size": "12px", opacity: "0.7" } }, Me = {
|
|
373
343
|
class: "flex items-center justify-center",
|
|
374
344
|
style: { "margin-bottom": "calc(2.5 * var(--rem))" }
|
|
375
|
-
},
|
|
345
|
+
}, Se = { class: "type-toggle" }, Oe = { key: 0 }, ze = {
|
|
376
346
|
key: 0,
|
|
377
347
|
class: "dropdown-field-wrapper flex min-w-0 flex-col"
|
|
378
|
-
},
|
|
348
|
+
}, Ie = { class: "my-1 text-sm text-gray-600" }, Fe = { class: "py-1 leading-5" }, Re = { class: "text-xs opacity-70" }, qe = { style: { "line-height": "1.25", padding: "4px 0" } }, Ue = { style: { "font-size": "12px", opacity: "0.7" } }, De = {
|
|
379
349
|
key: 1,
|
|
380
350
|
class: "dropdown-field-wrapper flex min-w-0 flex-col"
|
|
381
|
-
},
|
|
351
|
+
}, Ae = { class: "my-1 text-sm text-gray-600" }, Be = { class: "max-w-[calc(16_*_var(--rem))] py-1 leading-5" }, Pe = { class: "truncate text-xs opacity-70" }, Ee = { style: { "line-height": "1.25", padding: "4px 0" } }, Te = {
|
|
382
352
|
class: "max-w-[calc(12_*_var(--rem))] truncate",
|
|
383
353
|
style: { "font-size": "12px", opacity: "0.7", "text-wrap": "wrap" }
|
|
384
|
-
},
|
|
385
|
-
function
|
|
386
|
-
const
|
|
387
|
-
return
|
|
388
|
-
|
|
354
|
+
}, We = { style: { "margin-top": "calc(3 * var(--rem))" } };
|
|
355
|
+
function Le(e, t, s, u, c, n) {
|
|
356
|
+
const h = f("ClientAutocomplete"), d = f("CField"), m = f("CInput"), M = f("Animation"), R = f("CPhoneInput"), w = f("CButton"), S = f("CDropdownItem"), O = f("CDropdown"), T = f("CCheckbox"), q = f("CRadio");
|
|
357
|
+
return p(), g("div", ye, [
|
|
358
|
+
s.simpleForm ? (p(), g("form", {
|
|
389
359
|
key: 0,
|
|
390
|
-
onSubmit: t[9] || (t[9] = N((...o) =>
|
|
360
|
+
onSubmit: t[9] || (t[9] = N((...o) => n.validateForm && n.validateForm(...o), ["prevent"]))
|
|
391
361
|
}, [
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
362
|
+
i("div", be, [
|
|
363
|
+
i("div", Ce, r(e.$t("_common:recipient").capitalize()), 1),
|
|
364
|
+
i("div", we, [
|
|
365
|
+
i("div", {
|
|
396
366
|
class: y([{ active: e.type === "individual" }, "type-toggle-button"]),
|
|
397
367
|
onClick: t[0] || (t[0] = (o) => e.type = "individual")
|
|
398
368
|
}, r(e.$t("individual")), 3),
|
|
399
|
-
|
|
369
|
+
i("div", {
|
|
400
370
|
class: y([{ active: e.type === "company" }, "type-toggle-button"]),
|
|
401
371
|
onClick: t[1] || (t[1] = (o) => e.type = "company")
|
|
402
372
|
}, r(e.$t("_common:company").capitalize()), 3)
|
|
403
373
|
])
|
|
404
374
|
]),
|
|
405
|
-
|
|
406
|
-
label:
|
|
407
|
-
validator:
|
|
408
|
-
messages:
|
|
375
|
+
l(d, {
|
|
376
|
+
label: n.isIndivid ? e.$t("_common:name").capitalize() : e.$t("_common:company").capitalize(),
|
|
377
|
+
validator: u.v$.name,
|
|
378
|
+
messages: n.messages.name,
|
|
409
379
|
"label-position": "inside",
|
|
410
380
|
style: { "margin-bottom": "calc(1.5 * var(--rem))" }
|
|
411
381
|
}, {
|
|
412
382
|
default: a(() => [
|
|
413
|
-
|
|
383
|
+
l(h, {
|
|
414
384
|
ref: "name",
|
|
415
385
|
modelValue: e.name,
|
|
416
386
|
"onUpdate:modelValue": t[2] || (t[2] = (o) => e.name = o),
|
|
417
|
-
placeholder:
|
|
418
|
-
"search-enabled":
|
|
387
|
+
placeholder: n.isIndivid ? e.$t("placeholders.name") : e.$t("placeholders.companyName"),
|
|
388
|
+
"search-enabled": s.searchEnabled,
|
|
419
389
|
"show-loading": !0,
|
|
420
390
|
onSetClient: t[3] || (t[3] = (o) => e.$emit("setClient", o))
|
|
421
391
|
}, null, 8, ["modelValue", "placeholder", "search-enabled"])
|
|
422
392
|
]),
|
|
423
393
|
_: 1
|
|
424
394
|
}, 8, ["label", "validator", "messages"]),
|
|
425
|
-
|
|
395
|
+
l(M, null, {
|
|
426
396
|
default: a(() => [
|
|
427
|
-
|
|
397
|
+
n.isIndivid ? v("", !0) : (p(), b(d, {
|
|
428
398
|
key: 0,
|
|
429
|
-
validator:
|
|
430
|
-
messages:
|
|
399
|
+
validator: u.v$.reference,
|
|
400
|
+
messages: n.messages.reference,
|
|
431
401
|
label: e.$t("reference").capitalize(),
|
|
432
402
|
"label-position": "inside",
|
|
433
403
|
class: "pb-4"
|
|
434
404
|
}, {
|
|
435
405
|
default: a(() => [
|
|
436
|
-
|
|
406
|
+
l(m, {
|
|
437
407
|
ref: "reference",
|
|
438
408
|
modelValue: e.reference,
|
|
439
409
|
"onUpdate:modelValue": t[4] || (t[4] = (o) => e.reference = o),
|
|
@@ -445,15 +415,15 @@ function je(e, t, i, d, p, l) {
|
|
|
445
415
|
]),
|
|
446
416
|
_: 1
|
|
447
417
|
}),
|
|
448
|
-
|
|
449
|
-
validator:
|
|
450
|
-
messages:
|
|
418
|
+
l(d, {
|
|
419
|
+
validator: u.v$.email,
|
|
420
|
+
messages: n.messages.email,
|
|
451
421
|
label: e.$t("_common:email").capitalize(),
|
|
452
422
|
"label-position": "inside",
|
|
453
423
|
style: { "margin-bottom": "calc(1.5 * var(--rem))" }
|
|
454
424
|
}, {
|
|
455
425
|
default: a(() => [
|
|
456
|
-
|
|
426
|
+
l(m, {
|
|
457
427
|
ref: "email",
|
|
458
428
|
modelValue: e.email,
|
|
459
429
|
"onUpdate:modelValue": t[5] || (t[5] = (o) => e.email = o),
|
|
@@ -463,7 +433,7 @@ function je(e, t, i, d, p, l) {
|
|
|
463
433
|
]),
|
|
464
434
|
_: 1
|
|
465
435
|
}, 8, ["validator", "messages", "label"]),
|
|
466
|
-
|
|
436
|
+
l(R, {
|
|
467
437
|
ref: "cellphone",
|
|
468
438
|
modelValue: e.cellphone,
|
|
469
439
|
"onUpdate:modelValue": t[6] || (t[6] = (o) => e.cellphone = o),
|
|
@@ -474,45 +444,45 @@ function je(e, t, i, d, p, l) {
|
|
|
474
444
|
"default-region": e.companyRegion,
|
|
475
445
|
"label-position": "inside"
|
|
476
446
|
}, null, 8, ["modelValue", "region", "label", "placeholder", "default-region"]),
|
|
477
|
-
|
|
447
|
+
s.documentRole ? (p(), b(O, {
|
|
478
448
|
key: 0,
|
|
479
449
|
expanded: "",
|
|
480
450
|
style: { "margin-bottom": "calc(1 * var(--rem))", "margin-top": "calc(0.75 * var(--rem))" }
|
|
481
451
|
}, {
|
|
482
452
|
trigger: a(() => [
|
|
483
|
-
|
|
453
|
+
l(w, {
|
|
484
454
|
"dropdown-icon": !0,
|
|
485
455
|
"icon-props": {
|
|
486
456
|
stroke: "hsl(0, 0%, 50%)"
|
|
487
457
|
},
|
|
488
|
-
"icon-left":
|
|
458
|
+
"icon-left": s.documentRole === "signee" ? "pen-tool" : "eye",
|
|
489
459
|
class: "is-left",
|
|
490
460
|
type: "none",
|
|
491
461
|
pattern: "secondary",
|
|
492
462
|
style: { width: "100%" }
|
|
493
463
|
}, {
|
|
494
464
|
default: a(() => [
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
465
|
+
i("div", ke, [
|
|
466
|
+
i("div", null, r(e.$t(`_common:documentRole.${s.documentRole}.description`)), 1),
|
|
467
|
+
i("div", $e, r(e.$t(`_common:documentRole.${s.documentRole}.label`)), 1)
|
|
498
468
|
])
|
|
499
469
|
]),
|
|
500
470
|
_: 1
|
|
501
471
|
}, 8, ["icon-left"])
|
|
502
472
|
]),
|
|
503
473
|
default: a(() => [
|
|
504
|
-
(
|
|
474
|
+
(p(), g(z, null, I(["signee", "recipient", "approver"], (o) => l(S, {
|
|
505
475
|
key: o,
|
|
506
476
|
"icon-left": o === "signee" ? "pen-tool" : "eye",
|
|
507
477
|
"icon-props": {
|
|
508
478
|
stroke: "hsl(0, 0%, 50%)"
|
|
509
479
|
},
|
|
510
|
-
onClick: (
|
|
480
|
+
onClick: (U) => e.$emit("update:document-role", o)
|
|
511
481
|
}, {
|
|
512
482
|
default: a(() => [
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
483
|
+
i("div", Ve, [
|
|
484
|
+
i("div", null, r(e.$t(`_common:documentRole.${o}.description`)), 1),
|
|
485
|
+
i("div", Ne, r(e.$t(`_common:documentRole.${o}.label`)), 1)
|
|
516
486
|
])
|
|
517
487
|
]),
|
|
518
488
|
_: 2
|
|
@@ -520,7 +490,7 @@ function je(e, t, i, d, p, l) {
|
|
|
520
490
|
]),
|
|
521
491
|
_: 1
|
|
522
492
|
})) : v("", !0),
|
|
523
|
-
|
|
493
|
+
l(w, {
|
|
524
494
|
type: "secondary",
|
|
525
495
|
pattern: "tertiary",
|
|
526
496
|
size: "small",
|
|
@@ -532,7 +502,7 @@ function je(e, t, i, d, p, l) {
|
|
|
532
502
|
]),
|
|
533
503
|
_: 1
|
|
534
504
|
}),
|
|
535
|
-
|
|
505
|
+
l(w, {
|
|
536
506
|
loading: e.isPosting,
|
|
537
507
|
"native-type": "submit",
|
|
538
508
|
type: "secondary",
|
|
@@ -546,60 +516,60 @@ function je(e, t, i, d, p, l) {
|
|
|
546
516
|
]),
|
|
547
517
|
_: 1
|
|
548
518
|
}, 8, ["loading"])
|
|
549
|
-
], 32)) : (
|
|
519
|
+
], 32)) : (p(), g("div", {
|
|
550
520
|
key: 1,
|
|
551
521
|
class: y({ "column-only": e.windowWidth <= 600 })
|
|
552
522
|
}, [
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
523
|
+
i("div", Me, [
|
|
524
|
+
i("div", Se, [
|
|
525
|
+
i("div", {
|
|
556
526
|
class: y([{ active: e.type === "individual" }, "type-toggle-button"]),
|
|
557
527
|
onClick: t[10] || (t[10] = (o) => e.type = "individual")
|
|
558
528
|
}, r(e.$t("individual")), 3),
|
|
559
|
-
|
|
529
|
+
i("div", {
|
|
560
530
|
class: y([{ active: e.type === "company" }, "type-toggle-button"]),
|
|
561
531
|
onClick: t[11] || (t[11] = (o) => e.type = "company")
|
|
562
532
|
}, r(e.$t("_common:company").capitalize()), 3)
|
|
563
533
|
])
|
|
564
534
|
]),
|
|
565
|
-
|
|
535
|
+
l(d, {
|
|
566
536
|
class: "flex",
|
|
567
537
|
grouped: ""
|
|
568
538
|
}, {
|
|
569
539
|
default: a(() => [
|
|
570
|
-
|
|
571
|
-
label:
|
|
572
|
-
validator:
|
|
573
|
-
messages:
|
|
540
|
+
l(d, {
|
|
541
|
+
label: n.isIndivid ? e.$t("_common:name").capitalize() : e.$t("_common:company").capitalize(),
|
|
542
|
+
validator: u.v$.name,
|
|
543
|
+
messages: n.messages.name,
|
|
574
544
|
"label-position": "inside",
|
|
575
545
|
expanded: ""
|
|
576
546
|
}, {
|
|
577
547
|
default: a(() => [
|
|
578
|
-
|
|
548
|
+
l(h, {
|
|
579
549
|
ref: "name",
|
|
580
550
|
modelValue: e.name,
|
|
581
551
|
"onUpdate:modelValue": t[12] || (t[12] = (o) => e.name = o),
|
|
582
|
-
placeholder:
|
|
552
|
+
placeholder: n.isIndivid ? e.$t("placeholders.name") : e.$t("placeholders.companyName"),
|
|
583
553
|
"show-loading": !0,
|
|
584
|
-
"search-enabled":
|
|
554
|
+
"search-enabled": s.searchEnabled,
|
|
585
555
|
onSetClient: t[13] || (t[13] = (o) => e.$emit("setClient", o))
|
|
586
556
|
}, null, 8, ["modelValue", "placeholder", "search-enabled"])
|
|
587
557
|
]),
|
|
588
558
|
_: 1
|
|
589
559
|
}, 8, ["label", "validator", "messages"]),
|
|
590
|
-
|
|
591
|
-
label:
|
|
592
|
-
validator:
|
|
593
|
-
messages:
|
|
560
|
+
l(d, {
|
|
561
|
+
label: n.isIndivid ? e.$t("_common:socialNo").capitalize() : e.$t("_common:orgNoShort").capitalize(),
|
|
562
|
+
validator: u.v$.orgNo,
|
|
563
|
+
messages: n.isIndivid ? n.messages.orgNo : n.messages.realOrgNo,
|
|
594
564
|
"label-position": "inside",
|
|
595
565
|
expanded: ""
|
|
596
566
|
}, {
|
|
597
567
|
default: a(() => [
|
|
598
|
-
|
|
568
|
+
l(m, {
|
|
599
569
|
ref: "orgNo",
|
|
600
|
-
modelValue:
|
|
601
|
-
"onUpdate:modelValue": t[14] || (t[14] = (o) =>
|
|
602
|
-
placeholder:
|
|
570
|
+
modelValue: n.orgNo,
|
|
571
|
+
"onUpdate:modelValue": t[14] || (t[14] = (o) => n.orgNo = o),
|
|
572
|
+
placeholder: n.isIndivid ? e.$t("placeholders.socialNo") : e.$t("placeholders.orgNo")
|
|
603
573
|
}, null, 8, ["modelValue", "placeholder"])
|
|
604
574
|
]),
|
|
605
575
|
_: 1
|
|
@@ -607,18 +577,18 @@ function je(e, t, i, d, p, l) {
|
|
|
607
577
|
]),
|
|
608
578
|
_: 1
|
|
609
579
|
}),
|
|
610
|
-
|
|
580
|
+
l(M, null, {
|
|
611
581
|
default: a(() => [
|
|
612
|
-
e.type && !
|
|
582
|
+
e.type && !n.isIndivid ? (p(), b(d, {
|
|
613
583
|
key: 0,
|
|
614
|
-
validator:
|
|
615
|
-
messages:
|
|
584
|
+
validator: u.v$.reference,
|
|
585
|
+
messages: n.messages.reference,
|
|
616
586
|
label: e.$t("_common:reference").capitalize(),
|
|
617
587
|
"label-position": "inside",
|
|
618
588
|
class: "pb-4"
|
|
619
589
|
}, {
|
|
620
590
|
default: a(() => [
|
|
621
|
-
|
|
591
|
+
l(m, {
|
|
622
592
|
ref: "reference",
|
|
623
593
|
modelValue: e.reference,
|
|
624
594
|
"onUpdate:modelValue": t[15] || (t[15] = (o) => e.reference = o),
|
|
@@ -627,12 +597,12 @@ function je(e, t, i, d, p, l) {
|
|
|
627
597
|
]),
|
|
628
598
|
_: 1
|
|
629
599
|
}, 8, ["validator", "messages", "label"])) : v("", !0),
|
|
630
|
-
e.type && !
|
|
600
|
+
e.type && !n.isIndivid && e.feature("reverseVat") && e.feature("regionSE") ? (p(), b(d, {
|
|
631
601
|
key: 1,
|
|
632
602
|
style: { "padding-left": "0.5em", "margin-bottom": "calc(2 * var(--rem))" }
|
|
633
603
|
}, {
|
|
634
604
|
default: a(() => [
|
|
635
|
-
|
|
605
|
+
l(T, {
|
|
636
606
|
modelValue: e.reverseVat,
|
|
637
607
|
"onUpdate:modelValue": t[16] || (t[16] = (o) => e.reverseVat = o),
|
|
638
608
|
size: "normal"
|
|
@@ -648,21 +618,21 @@ function je(e, t, i, d, p, l) {
|
|
|
648
618
|
]),
|
|
649
619
|
_: 1
|
|
650
620
|
}),
|
|
651
|
-
|
|
621
|
+
l(d, {
|
|
652
622
|
class: "flex",
|
|
653
623
|
grouped: ""
|
|
654
624
|
}, {
|
|
655
625
|
default: a(() => [
|
|
656
|
-
|
|
657
|
-
validator:
|
|
658
|
-
messages:
|
|
626
|
+
l(d, {
|
|
627
|
+
validator: u.v$.email,
|
|
628
|
+
messages: n.messages.email,
|
|
659
629
|
label: e.$t("_common:email").capitalize(),
|
|
660
630
|
"label-position": "inside",
|
|
661
631
|
class: "flex-1",
|
|
662
632
|
expanded: ""
|
|
663
633
|
}, {
|
|
664
634
|
default: a(() => [
|
|
665
|
-
|
|
635
|
+
l(m, {
|
|
666
636
|
ref: "email",
|
|
667
637
|
modelValue: e.email,
|
|
668
638
|
"onUpdate:modelValue": t[17] || (t[17] = (o) => e.email = o),
|
|
@@ -672,7 +642,7 @@ function je(e, t, i, d, p, l) {
|
|
|
672
642
|
]),
|
|
673
643
|
_: 1
|
|
674
644
|
}, 8, ["validator", "messages", "label"]),
|
|
675
|
-
|
|
645
|
+
l(R, {
|
|
676
646
|
modelValue: e.cellphone,
|
|
677
647
|
"onUpdate:modelValue": t[18] || (t[18] = (o) => e.cellphone = o),
|
|
678
648
|
region: e.cellphoneRegion,
|
|
@@ -686,12 +656,12 @@ function je(e, t, i, d, p, l) {
|
|
|
686
656
|
]),
|
|
687
657
|
_: 1
|
|
688
658
|
}),
|
|
689
|
-
|
|
659
|
+
l(d, {
|
|
690
660
|
label: e.$t("_common:address").capitalize(),
|
|
691
661
|
"label-position": "inside"
|
|
692
662
|
}, {
|
|
693
663
|
default: a(() => [
|
|
694
|
-
|
|
664
|
+
l(m, {
|
|
695
665
|
ref: "street",
|
|
696
666
|
modelValue: e.street,
|
|
697
667
|
"onUpdate:modelValue": t[20] || (t[20] = (o) => e.street = o),
|
|
@@ -700,14 +670,14 @@ function je(e, t, i, d, p, l) {
|
|
|
700
670
|
]),
|
|
701
671
|
_: 1
|
|
702
672
|
}, 8, ["label"]),
|
|
703
|
-
|
|
673
|
+
l(d, {
|
|
704
674
|
class: "force-two flex",
|
|
705
675
|
grouped: ""
|
|
706
676
|
}, {
|
|
707
677
|
default: a(() => [
|
|
708
|
-
|
|
678
|
+
l(d, { expanded: "" }, {
|
|
709
679
|
default: a(() => [
|
|
710
|
-
|
|
680
|
+
l(m, {
|
|
711
681
|
ref: "zip",
|
|
712
682
|
modelValue: e.zip,
|
|
713
683
|
"onUpdate:modelValue": t[21] || (t[21] = (o) => e.zip = o),
|
|
@@ -716,9 +686,9 @@ function je(e, t, i, d, p, l) {
|
|
|
716
686
|
]),
|
|
717
687
|
_: 1
|
|
718
688
|
}),
|
|
719
|
-
|
|
689
|
+
l(d, { expanded: "" }, {
|
|
720
690
|
default: a(() => [
|
|
721
|
-
|
|
691
|
+
l(m, {
|
|
722
692
|
ref: "city",
|
|
723
693
|
modelValue: e.city,
|
|
724
694
|
"onUpdate:modelValue": t[22] || (t[22] = (o) => e.city = o),
|
|
@@ -730,9 +700,9 @@ function je(e, t, i, d, p, l) {
|
|
|
730
700
|
]),
|
|
731
701
|
_: 1
|
|
732
702
|
}),
|
|
733
|
-
|
|
703
|
+
l(d, { class: "flex" }, {
|
|
734
704
|
default: a(() => [
|
|
735
|
-
|
|
705
|
+
l(q, {
|
|
736
706
|
modelValue: e.separateWorkAddress,
|
|
737
707
|
"onUpdate:modelValue": t[23] || (t[23] = (o) => e.separateWorkAddress = o),
|
|
738
708
|
"native-value": !1,
|
|
@@ -745,7 +715,7 @@ function je(e, t, i, d, p, l) {
|
|
|
745
715
|
]),
|
|
746
716
|
_: 1
|
|
747
717
|
}, 8, ["modelValue"]),
|
|
748
|
-
|
|
718
|
+
l(q, {
|
|
749
719
|
modelValue: e.separateWorkAddress,
|
|
750
720
|
"onUpdate:modelValue": t[24] || (t[24] = (o) => e.separateWorkAddress = o),
|
|
751
721
|
"native-value": !0,
|
|
@@ -761,14 +731,14 @@ function je(e, t, i, d, p, l) {
|
|
|
761
731
|
]),
|
|
762
732
|
_: 1
|
|
763
733
|
}),
|
|
764
|
-
|
|
734
|
+
l(M, null, {
|
|
765
735
|
default: a(() => [
|
|
766
|
-
e.type && e.separateWorkAddress ? (
|
|
767
|
-
|
|
736
|
+
e.type && e.separateWorkAddress ? (p(), g("div", Oe, [
|
|
737
|
+
l(d, {
|
|
768
738
|
label: e.$t("_common:addressWork").capitalize() + ` ( ${e.$t("workAddressSubLabel")} )`
|
|
769
739
|
}, {
|
|
770
740
|
default: a(() => [
|
|
771
|
-
|
|
741
|
+
l(m, {
|
|
772
742
|
ref: "workStreet",
|
|
773
743
|
modelValue: e.workStreet,
|
|
774
744
|
"onUpdate:modelValue": t[25] || (t[25] = (o) => e.workStreet = o),
|
|
@@ -777,14 +747,14 @@ function je(e, t, i, d, p, l) {
|
|
|
777
747
|
]),
|
|
778
748
|
_: 1
|
|
779
749
|
}, 8, ["label"]),
|
|
780
|
-
|
|
750
|
+
l(d, {
|
|
781
751
|
class: "force-two flex",
|
|
782
752
|
grouped: ""
|
|
783
753
|
}, {
|
|
784
754
|
default: a(() => [
|
|
785
|
-
|
|
755
|
+
l(d, { expanded: "" }, {
|
|
786
756
|
default: a(() => [
|
|
787
|
-
|
|
757
|
+
l(m, {
|
|
788
758
|
ref: "workZip",
|
|
789
759
|
modelValue: e.workZip,
|
|
790
760
|
"onUpdate:modelValue": t[26] || (t[26] = (o) => e.workZip = o),
|
|
@@ -794,9 +764,9 @@ function je(e, t, i, d, p, l) {
|
|
|
794
764
|
]),
|
|
795
765
|
_: 1
|
|
796
766
|
}),
|
|
797
|
-
|
|
767
|
+
l(d, { expanded: "" }, {
|
|
798
768
|
default: a(() => [
|
|
799
|
-
|
|
769
|
+
l(m, {
|
|
800
770
|
ref: "workCity",
|
|
801
771
|
modelValue: e.workCity,
|
|
802
772
|
"onUpdate:modelValue": t[27] || (t[27] = (o) => e.workCity = o),
|
|
@@ -813,52 +783,52 @@ function je(e, t, i, d, p, l) {
|
|
|
813
783
|
]),
|
|
814
784
|
_: 1
|
|
815
785
|
}),
|
|
816
|
-
|
|
786
|
+
s.documentRole || s.answerMethod ? (p(), b(d, {
|
|
817
787
|
key: 0,
|
|
818
788
|
grouped: "",
|
|
819
789
|
class: "flex pt-4"
|
|
820
790
|
}, {
|
|
821
791
|
default: a(() => [
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
792
|
+
s.documentRole ? (p(), g("div", ze, [
|
|
793
|
+
i("div", Ie, r(e.$t("_common:documentRole.title")), 1),
|
|
794
|
+
l(O, {
|
|
825
795
|
expanded: "",
|
|
826
796
|
style: { "margin-bottom": "calc(1 * var(--rem))" }
|
|
827
797
|
}, {
|
|
828
798
|
trigger: a(() => [
|
|
829
|
-
|
|
799
|
+
l(w, {
|
|
830
800
|
"dropdown-icon": !0,
|
|
831
801
|
"icon-props": {
|
|
832
802
|
stroke: "hsl(0, 0%, 50%)"
|
|
833
803
|
},
|
|
834
|
-
"icon-left":
|
|
804
|
+
"icon-left": s.documentRole === "signee" ? "pen-tool" : "eye",
|
|
835
805
|
class: "is-left",
|
|
836
806
|
type: "none",
|
|
837
807
|
pattern: "secondary",
|
|
838
808
|
expanded: ""
|
|
839
809
|
}, {
|
|
840
810
|
default: a(() => [
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
811
|
+
i("div", Fe, [
|
|
812
|
+
i("div", null, r(e.$t(`_common:documentRole.${s.documentRole}.description`)), 1),
|
|
813
|
+
i("div", Re, r(e.$t(`_common:documentRole.${s.documentRole}.label`)), 1)
|
|
844
814
|
])
|
|
845
815
|
]),
|
|
846
816
|
_: 1
|
|
847
817
|
}, 8, ["icon-left"])
|
|
848
818
|
]),
|
|
849
819
|
default: a(() => [
|
|
850
|
-
(
|
|
820
|
+
(p(), g(z, null, I(["signee", "recipient", "approver"], (o) => l(S, {
|
|
851
821
|
key: o,
|
|
852
822
|
"icon-left": o === "signee" ? "pen-tool" : "eye",
|
|
853
823
|
"icon-props": {
|
|
854
824
|
stroke: "hsl(0, 0%, 50%)"
|
|
855
825
|
},
|
|
856
|
-
onClick: (
|
|
826
|
+
onClick: (U) => e.$emit("update:document-role", o)
|
|
857
827
|
}, {
|
|
858
828
|
default: a(() => [
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
829
|
+
i("div", qe, [
|
|
830
|
+
i("div", null, r(e.$t(`_common:documentRole.${o}.description`)), 1),
|
|
831
|
+
i("div", Ue, r(e.$t(`_common:documentRole.${o}.label`)), 1)
|
|
862
832
|
])
|
|
863
833
|
]),
|
|
864
834
|
_: 2
|
|
@@ -867,14 +837,14 @@ function je(e, t, i, d, p, l) {
|
|
|
867
837
|
_: 1
|
|
868
838
|
})
|
|
869
839
|
])) : v("", !0),
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
840
|
+
s.answerMethod ? (p(), g("div", De, [
|
|
841
|
+
i("div", Ae, r(e.$t("_common:signMethod.title")), 1),
|
|
842
|
+
l(O, {
|
|
873
843
|
expanded: "",
|
|
874
844
|
style: { "margin-bottom": "calc(1 * var(--rem))" }
|
|
875
845
|
}, {
|
|
876
846
|
trigger: a(() => [
|
|
877
|
-
|
|
847
|
+
l(w, {
|
|
878
848
|
"dropdown-icon": !0,
|
|
879
849
|
class: "is-left",
|
|
880
850
|
type: "none",
|
|
@@ -882,26 +852,26 @@ function je(e, t, i, d, p, l) {
|
|
|
882
852
|
expanded: ""
|
|
883
853
|
}, {
|
|
884
854
|
default: a(() => [
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
855
|
+
i("div", Be, [
|
|
856
|
+
i("div", null, r(e.$t(`signMethod.${s.answerMethod.accept}.title`)), 1),
|
|
857
|
+
i("div", Pe, r(e.$t(`signMethod.${s.answerMethod.accept}.content`)), 1)
|
|
888
858
|
])
|
|
889
859
|
]),
|
|
890
860
|
_: 1
|
|
891
861
|
})
|
|
892
862
|
]),
|
|
893
863
|
default: a(() => [
|
|
894
|
-
(
|
|
864
|
+
(p(!0), g(z, null, I(s.signOptions, (o) => (p(), b(S, {
|
|
895
865
|
key: o,
|
|
896
|
-
onClick: (
|
|
897
|
-
...
|
|
866
|
+
onClick: (U) => e.$emit("update:answer-method", {
|
|
867
|
+
...s.answerMethod,
|
|
898
868
|
accept: o
|
|
899
869
|
})
|
|
900
870
|
}, {
|
|
901
871
|
default: a(() => [
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
872
|
+
i("div", Ee, [
|
|
873
|
+
i("div", null, r(e.$t(`signMethod.${o}.title`)), 1),
|
|
874
|
+
i("div", Te, r(e.$t(`signMethod.${o}.content`)), 1)
|
|
905
875
|
])
|
|
906
876
|
]),
|
|
907
877
|
_: 2
|
|
@@ -913,13 +883,13 @@ function je(e, t, i, d, p, l) {
|
|
|
913
883
|
]),
|
|
914
884
|
_: 1
|
|
915
885
|
})) : v("", !0),
|
|
916
|
-
|
|
917
|
-
|
|
886
|
+
i("div", We, [
|
|
887
|
+
l(w, {
|
|
918
888
|
loading: e.isPosting,
|
|
919
889
|
type: "secondary",
|
|
920
890
|
wide: "",
|
|
921
891
|
style: { 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)" },
|
|
922
|
-
onClick:
|
|
892
|
+
onClick: n.validateForm
|
|
923
893
|
}, {
|
|
924
894
|
default: a(() => [
|
|
925
895
|
C(r(e.$t("updateButton")), 1)
|
|
@@ -930,10 +900,10 @@ function je(e, t, i, d, p, l) {
|
|
|
930
900
|
], 2))
|
|
931
901
|
]);
|
|
932
902
|
}
|
|
933
|
-
const
|
|
903
|
+
const je = /* @__PURE__ */ F(ve, [["render", Le], ["__scopeId", "data-v-a49b2cec"]]), { mapFields: Ze } = P({
|
|
934
904
|
getterType: "forms/getField",
|
|
935
905
|
mutationType: "forms/updateField"
|
|
936
|
-
}),
|
|
906
|
+
}), Ge = {
|
|
937
907
|
name: "ClientModal",
|
|
938
908
|
i18nOptions: {
|
|
939
909
|
namespaces: "clientModal",
|
|
@@ -965,7 +935,7 @@ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec
|
|
|
965
935
|
}
|
|
966
936
|
},
|
|
967
937
|
components: {
|
|
968
|
-
FormClient:
|
|
938
|
+
FormClient: je
|
|
969
939
|
},
|
|
970
940
|
emits: ["close"],
|
|
971
941
|
mixins: [E],
|
|
@@ -1015,10 +985,10 @@ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec
|
|
|
1015
985
|
};
|
|
1016
986
|
},
|
|
1017
987
|
computed: {
|
|
1018
|
-
...
|
|
988
|
+
...Ze({
|
|
1019
989
|
endCustomer: "endCustomer"
|
|
1020
990
|
}),
|
|
1021
|
-
...
|
|
991
|
+
...Q("forms", {
|
|
1022
992
|
formData: (e) => e.document2
|
|
1023
993
|
}),
|
|
1024
994
|
...B({
|
|
@@ -1027,7 +997,7 @@ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec
|
|
|
1027
997
|
defaultClientType: "endCustomers/defaultClientType"
|
|
1028
998
|
}),
|
|
1029
999
|
validateOrgNo() {
|
|
1030
|
-
return !!(this.feature("bankId") || this.isPublicForm && ee
|
|
1000
|
+
return !!(this.feature("bankId") || this.isPublicForm && x[ee.brand].defaultRegion === "SE");
|
|
1031
1001
|
},
|
|
1032
1002
|
existsOnDocument() {
|
|
1033
1003
|
return !!k(this.formData, `clients[${this.documentClientIndex}]`);
|
|
@@ -1037,16 +1007,16 @@ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec
|
|
|
1037
1007
|
}
|
|
1038
1008
|
},
|
|
1039
1009
|
created() {
|
|
1040
|
-
var
|
|
1010
|
+
var s;
|
|
1041
1011
|
let e = k(this.formData, "data.defaultAnswerMethod.accept") || "signature";
|
|
1042
|
-
(
|
|
1012
|
+
(s = this.signOptions) != null && s.length && !this.signOptions.includes(e) && ([e] = this.signOptions), this.storedNewClient.answerMethod.accept = e, this.forceExpand && (this.showMore = !0);
|
|
1043
1013
|
const t = k(
|
|
1044
1014
|
this.formData,
|
|
1045
1015
|
`clients[${this.documentClientIndex}]`,
|
|
1046
1016
|
{}
|
|
1047
1017
|
);
|
|
1048
1018
|
this.loadForm(t), ["endCustomer", "storedNewClient"].forEach(
|
|
1049
|
-
(
|
|
1019
|
+
(u) => this.$watch(u, {
|
|
1050
1020
|
deep: !0,
|
|
1051
1021
|
handler() {
|
|
1052
1022
|
this.hasChanged = !0;
|
|
@@ -1055,35 +1025,35 @@ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec
|
|
|
1055
1025
|
);
|
|
1056
1026
|
},
|
|
1057
1027
|
methods: {
|
|
1058
|
-
...
|
|
1059
|
-
saveClient:
|
|
1060
|
-
showMessage:
|
|
1028
|
+
...Y({
|
|
1029
|
+
saveClient: D.FORM_SUBMIT_ENDCUSTOMER,
|
|
1030
|
+
showMessage: D.SHOW_MESSAGE
|
|
1061
1031
|
}),
|
|
1062
|
-
omit:
|
|
1032
|
+
omit: re,
|
|
1063
1033
|
loadForm(e = {}) {
|
|
1064
|
-
this.storedNewClient = Object.assign(this.storedNewClient, e), this.endCustomer =
|
|
1034
|
+
this.storedNewClient = Object.assign(this.storedNewClient, e), this.endCustomer = _({
|
|
1065
1035
|
type: this.defaultClientType(),
|
|
1066
1036
|
...e
|
|
1067
1037
|
});
|
|
1068
1038
|
},
|
|
1069
1039
|
async onSave() {
|
|
1070
|
-
var t,
|
|
1040
|
+
var t, s;
|
|
1071
1041
|
this.isLoading = !0;
|
|
1072
1042
|
let e = k(this.endCustomer, "id");
|
|
1073
1043
|
if (!this.isPublicForm) {
|
|
1074
|
-
let
|
|
1075
|
-
this.endCustomer && (this.endCustomer.id ? this.can("endCustomers", "modify", this.endCustomer.id) && (
|
|
1044
|
+
let u = !1;
|
|
1045
|
+
this.endCustomer && (this.endCustomer.id ? this.can("endCustomers", "modify", this.endCustomer.id) && (u = !0) : this.can("endCustomers", "create") && (u = !0)), u && (e = await this.saveClient());
|
|
1076
1046
|
}
|
|
1077
1047
|
if (this.useSignOrder && !this.storedNewClient.signOrder) {
|
|
1078
|
-
const
|
|
1079
|
-
(
|
|
1048
|
+
const u = ((s = (t = this.formData) == null ? void 0 : t.clients) == null ? void 0 : s.reduce(
|
|
1049
|
+
(c, n) => n.signOrder > c ? n.signOrder : c,
|
|
1080
1050
|
0
|
|
1081
1051
|
)) || 0;
|
|
1082
|
-
this.storedNewClient.signOrder =
|
|
1052
|
+
this.storedNewClient.signOrder = u + 1;
|
|
1083
1053
|
}
|
|
1084
1054
|
this.setFormValue({
|
|
1085
1055
|
key: `clients[${this.documentClientIndex}]`,
|
|
1086
|
-
value:
|
|
1056
|
+
value: X(
|
|
1087
1057
|
{ ...this.endCustomer, ...e && { id: e } },
|
|
1088
1058
|
{ ...this.storedNewClient }
|
|
1089
1059
|
)
|
|
@@ -1129,53 +1099,53 @@ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec
|
|
|
1129
1099
|
}
|
|
1130
1100
|
}
|
|
1131
1101
|
}, He = { class: "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" };
|
|
1132
|
-
function Ke(e, t,
|
|
1133
|
-
const
|
|
1134
|
-
return
|
|
1102
|
+
function Ke(e, t, s, u, c, n) {
|
|
1103
|
+
const h = f("CButton"), d = f("FormClient");
|
|
1104
|
+
return p(), g("div", {
|
|
1135
1105
|
class: "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",
|
|
1136
|
-
onClickPassive: t[5] || (t[5] = N((...
|
|
1106
|
+
onClickPassive: t[5] || (t[5] = N((...m) => n.close && n.close(...m), ["self"]))
|
|
1137
1107
|
}, [
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
class: y([
|
|
1108
|
+
i("div", He, [
|
|
1109
|
+
l(h, {
|
|
1110
|
+
class: y([c.showMore ? "" : "sm:!hidden", "z-2 absolute right-4 top-4"]),
|
|
1141
1111
|
pattern: "tertiary",
|
|
1142
1112
|
type: "none",
|
|
1143
1113
|
circle: "",
|
|
1144
1114
|
icon: "x",
|
|
1145
|
-
onClick:
|
|
1115
|
+
onClick: n.close
|
|
1146
1116
|
}, null, 8, ["class", "onClick"]),
|
|
1147
|
-
|
|
1148
|
-
"document-role":
|
|
1149
|
-
"onUpdate:documentRole": t[0] || (t[0] = (
|
|
1150
|
-
"answer-method":
|
|
1117
|
+
l(d, {
|
|
1118
|
+
"document-role": c.storedNewClient.documentRole,
|
|
1119
|
+
"onUpdate:documentRole": t[0] || (t[0] = (m) => c.storedNewClient.documentRole = m),
|
|
1120
|
+
"answer-method": c.storedNewClient.answerMethod,
|
|
1151
1121
|
"onUpdate:answerMethod": [
|
|
1152
|
-
t[1] || (t[1] = (
|
|
1153
|
-
t[4] || (t[4] = (
|
|
1154
|
-
|
|
1155
|
-
...
|
|
1122
|
+
t[1] || (t[1] = (m) => c.storedNewClient.answerMethod = m),
|
|
1123
|
+
t[4] || (t[4] = (m) => {
|
|
1124
|
+
c.storedNewClient.answerMethod = {
|
|
1125
|
+
...m,
|
|
1156
1126
|
__dirty: !0
|
|
1157
1127
|
};
|
|
1158
1128
|
})
|
|
1159
1129
|
],
|
|
1160
1130
|
"search-enabled": !0,
|
|
1161
1131
|
"require-reference": !1,
|
|
1162
|
-
"simple-form": !
|
|
1163
|
-
"input-focus-on-mount":
|
|
1164
|
-
"sign-options":
|
|
1165
|
-
"validate-org-no":
|
|
1166
|
-
"is-public-form":
|
|
1167
|
-
class: y([[
|
|
1168
|
-
onSetClient: t[2] || (t[2] = (
|
|
1169
|
-
onSubmit:
|
|
1170
|
-
onShowMore: t[3] || (t[3] = (
|
|
1132
|
+
"simple-form": !c.showMore,
|
|
1133
|
+
"input-focus-on-mount": s.inputFocusOnMount,
|
|
1134
|
+
"sign-options": s.signOptions,
|
|
1135
|
+
"validate-org-no": n.validateOrgNo,
|
|
1136
|
+
"is-public-form": s.isPublicForm,
|
|
1137
|
+
class: y([[c.showMore ? "w-[520px]" : "w-[360px]"], "max-w-full p-0"]),
|
|
1138
|
+
onSetClient: t[2] || (t[2] = (m) => n.loadForm(n.omit(m, ["answerMethod"]))),
|
|
1139
|
+
onSubmit: n.onSave,
|
|
1140
|
+
onShowMore: t[3] || (t[3] = (m) => c.showMore = !0)
|
|
1171
1141
|
}, null, 8, ["document-role", "answer-method", "simple-form", "input-focus-on-mount", "sign-options", "validate-org-no", "is-public-form", "class", "onSubmit"]),
|
|
1172
|
-
|
|
1142
|
+
n.existsOnDocument && e.mq === "sm" ? (p(), b(h, {
|
|
1173
1143
|
key: 0,
|
|
1174
1144
|
type: "danger",
|
|
1175
1145
|
pattern: "secondary",
|
|
1176
1146
|
wide: "",
|
|
1177
1147
|
class: "mt-4 text-sm",
|
|
1178
|
-
onClick:
|
|
1148
|
+
onClick: n.removeClient
|
|
1179
1149
|
}, {
|
|
1180
1150
|
default: a(() => [
|
|
1181
1151
|
C(r(e.$t("_common:remove")), 1)
|
|
@@ -1185,12 +1155,12 @@ function Ke(e, t, i, d, p, l) {
|
|
|
1185
1155
|
])
|
|
1186
1156
|
], 32);
|
|
1187
1157
|
}
|
|
1188
|
-
const Je = /* @__PURE__ */
|
|
1158
|
+
const Je = /* @__PURE__ */ F(Ge, [["render", Ke]]), at = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1189
1159
|
__proto__: null,
|
|
1190
1160
|
default: Je
|
|
1191
1161
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1192
1162
|
export {
|
|
1193
1163
|
Je as C,
|
|
1194
|
-
|
|
1195
|
-
|
|
1164
|
+
fe as a,
|
|
1165
|
+
at as b
|
|
1196
1166
|
};
|