@cling-se/widget 0.22.4 → 0.23.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 +16 -0
- package/dist/{AddClientCallout-DNZHh9aJ.js → AddClientCallout-Bv6IKK40.js} +6 -6
- package/dist/AnswerModal-BH7HUCFy.js +4511 -0
- package/dist/{AttachmentItem-D6b6WSIC.js → AttachmentItem-DVVxOm2E.js} +6 -6
- package/dist/{BaseUpload-DW7wAWia.js → BaseUpload-B8k82P27.js} +2 -2
- package/dist/{BlockMedia-CIz6WbRP.js → BlockMedia-BcvfBi4G.js} +4 -4
- package/dist/{CCallout-BuWA9vQi.js → CCallout-BbBdzwkb.js} +3 -3
- package/dist/{CCurrencyDropdown-rIQOA7zf.js → CCurrencyDropdown-2PRaeJHp.js} +5 -5
- package/dist/{CDropdownItem-DA4QbI32.js → CDropdownItem-CFTdvAJc.js} +13 -13
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-qFddDazf.js → CFormField.vue_vue_type_script_setup_true_lang-B0HHxy2B.js} +7 -7
- package/dist/{CPhoneFormat-CvkaRSKJ.js → CPhoneFormat-D__bIItZ.js} +1 -1
- package/dist/{regions-BdZt9Srn.js → CPhoneInput-DPqzQOjR.js} +205 -3
- package/dist/{CPriceInput-C5r9iilu.js → CPriceInput-BJ1hmANq.js} +4 -4
- package/dist/{CSelect-GoTrnuJR.js → CSelect-GhGdyQzt.js} +4 -4
- package/dist/{CSkeleton-C4jNQwG5.js → CSkeleton-Ro7hmy5_.js} +5 -5
- package/dist/{ClientAutocomplete-BMbBwVkp.js → ClientAutocomplete-Ci08U3Eg.js} +10 -10
- package/dist/{ClientModal-cLE2g03X.js → ClientModal-CZjzCgw_.js} +253 -223
- package/dist/{ColorPicker-DephKZ2W.js → ColorPicker-Bdev0Tci.js} +27 -27
- package/dist/{CompanyModal-BLF26B1Y.js → CompanyModal-vZnMCWG-.js} +8 -8
- package/dist/{ContentWrapper-DqH_Tg4O.js → ContentWrapper-CAlHzSsP.js} +18 -18
- package/dist/{CoverBlockSettings-CjLkmC3R.js → CoverBlockSettings-CRG8Q2mD.js} +42 -42
- package/dist/{DocAnswer-BOCE0iTj.js → DocAnswer-DHVVPZff.js} +2 -2
- package/dist/{DocDetails-BNzZbHuR.js → DocDetails-W4sRFsQP.js} +8 -8
- package/dist/{DocForm-DATslViB.js → DocForm-B0HWL32c.js} +853 -757
- package/dist/{DocFormSend-TrpwDUwL.js → DocFormSend-BHjoq88x.js} +2 -2
- package/dist/{DocLinks-COu3hrrY.js → DocLinks-BKJ_usNd.js} +2 -2
- package/dist/{DocModalBase-1C2Kgo0U.js → DocModalBase-Z1ZEPL_z.js} +1 -1
- package/dist/{DocPrint-D0C1wkRv.js → DocPrint-W53zklGf.js} +3 -3
- package/dist/{DocReceipt-DuCwfC4c.js → DocReceipt-CG954L85.js} +10 -10
- package/dist/{DocSendReminder-CIuktfcG.js → DocSendReminder-rE0hlFaZ.js} +3 -3
- package/dist/{DocTextEditor-D3GXD6oS.js → DocTextEditor-DwYMXhZv.js} +9 -9
- package/dist/{DocTimeline-DFRH0ZoY.js → DocTimeline-BsvUw4lW.js} +17 -17
- package/dist/{DocumentClient-C-x_FhRo.js → DocumentClient-DeDGrmbP.js} +5 -5
- package/dist/{DocumentLayout-CG3CMORs.js → DocumentLayout-DdXflWEb.js} +28 -28
- package/dist/{DocumentLogotype-Dzg56cWX.js → DocumentLogotype-eSStO83t.js} +3 -3
- package/dist/{DocumentVoided-BwR0opXX.js → DocumentVoided-CF_snlgf.js} +1 -1
- package/dist/{EmbedInput-BsE3t6-g.js → EmbedInput-C6zvXcOu.js} +5 -5
- package/dist/{EmbedSettings-D-9KP6m4.js → EmbedSettings-BO0wk_Mz.js} +3 -3
- package/dist/{ErrorCallout-B_mC-Fe1.js → ErrorCallout-BX44gJMR.js} +1 -1
- package/dist/{FilePreviewModal-BvjuHHjm.js → FilePreviewModal-Dl9kL1D4.js} +2 -2
- package/dist/{Flag-DPAkxgnZ.js → Flag-CUjMh16L.js} +1 -1
- package/dist/{HeaderSettings-BvSFZXCC.js → HeaderSettings-CGAKOOf2.js} +18 -18
- package/dist/{ImageSelectModal-dxT1FSSS.js → ImageSelectModal-CBJLdDWY.js} +3 -3
- package/dist/{ImageUploadWrapper-Nv2ER9An.js → ImageUploadWrapper-3iw_ifJm.js} +2 -2
- package/dist/{Index-CmW_KqwC.js → Index--LhQAU0e.js} +4 -4
- package/dist/{Index-C8TA-TOH.js → Index-B9IVTM-6.js} +4 -4
- package/dist/{Index-CfhN1h-r.js → Index-BHc8-EVf.js} +2 -2
- package/dist/{Index-B7qmjT-n.js → Index-BKdt7W1p.js} +11 -11
- package/dist/{Index-BYZV5v4f.js → Index-BQjcDZPz.js} +8 -8
- package/dist/{Index-CN-SsBzv.js → Index-BXgbccOo.js} +2 -2
- package/dist/{Index-Di3aqW-F.js → Index-Bc75-4Ee.js} +41 -41
- package/dist/{Index-D5ZQV_ag.js → Index-Bf6twTPv.js} +1 -1
- package/dist/{Index-D05kz85o.js → Index-BwyxrAfq.js} +2 -2
- package/dist/{Index-CM_86t2X.js → Index-CFk1oikV.js} +5 -5
- package/dist/{Index-D5hQ9Sjn.js → Index-CRPvQg7m.js} +4 -4
- package/dist/{Index-DAlIF7c_.js → Index-CZLo46BA.js} +2 -2
- package/dist/{Index-CXzCLl4Y.js → Index-Cay1MsI0.js} +4 -4
- package/dist/{Index-jRiyU4XJ.js → Index-CbJAROk-.js} +6 -6
- package/dist/{Index-Dlgu9gBy.js → Index-Ck3YMDt4.js} +14 -14
- package/dist/{Index-CeYtiMwu.js → Index-CmtHodVa.js} +7 -7
- package/dist/{Index-BYyYmGls.js → Index-Cv-ZmqIf.js} +19 -19
- package/dist/Index-D3GyeaZ3.js +4 -0
- package/dist/{Index-CUbEi910.js → Index-D3YAyImu.js} +3 -3
- package/dist/{Index-N8nTYiyd.js → Index-D48EyoXi.js} +4 -4
- package/dist/{Index-CjunFweP.js → Index-DDTMR3LI.js} +6 -6
- package/dist/{Index-DJAySS1C.js → Index-DExnFebC.js} +29 -29
- package/dist/{Index-xt53y9Zo.js → Index-DRNXEsk-.js} +5 -5
- package/dist/{Index-C5Fj3fR9.js → Index-DUvA8MIy.js} +3 -3
- package/dist/{Index-jle7V_kM.js → Index-DaOOJQM2.js} +3 -3
- package/dist/{Index-D5oFyd4s.js → Index-DlWc7i0k.js} +4 -4
- package/dist/{Index-C3Rh5cbz.js → Index-Dttziehp.js} +11 -11
- package/dist/{Index-D63aOUOW.js → Index-T6kXb5Sf.js} +5 -5
- package/dist/{Index-DckdXVR6.js → Index-_Xoo1bdc.js} +3 -3
- package/dist/{Index-BNIu3Ud9.js → Index-foC5v_3Y.js} +3 -3
- package/dist/{Index-DTVfouJF.js → Index-gLA2kURi.js} +4 -4
- package/dist/{Index-CNl8W0Qj.js → Index-gOnXhVx4.js} +7 -7
- package/dist/{Index-BzaWm4so.js → Index-j78ap3EU.js} +3 -3
- package/dist/{Index-DEcmLf1s.js → Index-qAnbtxTE.js} +7 -7
- package/dist/{Index.vue_vue_type_script_lang-CTwo2Vcj.js → Index.vue_vue_type_script_lang-DkStHbk0.js} +2 -2
- package/dist/{InputToggleRow-hhpru4Tk.js → InputToggleRow-COQQQaJS.js} +1 -1
- package/dist/{ManualPopover-DWHgPmo4.js → ManualPopover-2myYukDY.js} +3 -3
- package/dist/{MediaWrapper-DFQOWgIv.js → MediaWrapper-CzLU8HWj.js} +3 -3
- package/dist/{NotBindingText-C8nuYQyU.js → NotBindingText-Ds156Rs5.js} +2 -2
- package/dist/{PackageGroup-SphTfHuX.js → PackageGroup-wT1ri3ij.js} +9 -9
- package/dist/{PdfTerms-DBaBtDkV.js → PdfTerms-CcFpPx19.js} +2 -2
- package/dist/{PdfViewer-BAwmny53.js → PdfViewer-B7qdDox0.js} +24 -24
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-DCWzxQzX.js → PlainHtml.vue_vue_type_script_setup_true_lang-pAIAnHdh.js} +1 -1
- package/dist/{PriceHeader-WCjqK7Bi.js → PriceHeader-CdJspOjM.js} +12 -12
- package/dist/{SearchApi-D3No6Dqd.js → SearchApi-zTefPc4C.js} +15 -5
- package/dist/{SendForm-DRc7hoaV.js → SendForm-DWiNVIs2.js} +8 -8
- package/dist/{Setup-Cs6_giNI.js → Setup-D90T_HW3.js} +1 -1
- package/dist/{SmartList-B0PP_sSE.js → SmartList-mO6hykju.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-ZolW_Wsv.js → Sortable.vue_vue_type_script_setup_true_lang-D22AqpXY.js} +35 -35
- package/dist/{TermsSettings-D1gsuKfo.js → TermsSettings-CW4GvPBa.js} +14 -14
- package/dist/{ThemeColorRow-MBlQPvxx.js → ThemeColorRow-C9XPet4I.js} +5 -5
- package/dist/{ToggleBinding-8pGtAGC1.js → ToggleBinding-5Ewi_NNo.js} +5 -5
- package/dist/{UploadModal-Bjf1zHOJ.js → UploadModal-ChOeO-8_.js} +4 -4
- package/dist/{VideoPlayerInput-C47DpiP5.js → VideoPlayerInput-CtZi6yF_.js} +6 -6
- package/dist/{VideoPlayerSettings-4IkCJlQi.js → VideoPlayerSettings-Bg8IvjwK.js} +2 -2
- package/dist/{VideoSelectModal-Cqto80td.js → VideoSelectModal-E01NsD3K.js} +5 -5
- package/dist/{dom-DOcGU3-g.js → dom-B_lSczxY.js} +5 -6
- package/dist/{focusDrawerMixin-BKLMBRx9.js → focusDrawerMixin-DfuFLIV0.js} +1 -1
- package/dist/{formDrawerState-DLcwOQ4Q.js → formDrawerState-DlaQS_ZT.js} +1 -1
- package/dist/{fortnoxTheme-afOWlK_c.js → fortnoxTheme-CyUIkVuu.js} +1 -1
- package/dist/{helpers-DIwX03XH.js → helpers-B1vYJYc-.js} +1 -1
- package/dist/{index-DWh08PmG.js → index-BPR1VsLM.js} +1 -1
- package/dist/{index-Brm5io83.js → index-CBkI7Hc7.js} +28 -28
- package/dist/index-CXYvBw0i.js +107 -0
- package/dist/index-DK3w2fdd.js +896 -0
- package/dist/{index-1lAgEf-q.js → index-DOK_hQri.js} +28 -28
- package/dist/{index-C5Y--h93.js → index-DnMhYLAz.js} +1 -1
- package/dist/{index-Bx76J19m.js → index-hj2QoJyP.js} +8 -8
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +190 -219
- package/dist/{main-2P1is0vk.js → main-BnJTDeKH.js} +368 -392
- package/dist/{mapFormMixin-CwOdsAx8.js → mapFormMixin-sXjgYtfb.js} +2 -2
- package/dist/{omit-DRXgPscM.js → omit-DQlOTuQS.js} +1 -1
- package/dist/{splitpanes-BgdVTU0e.js → splitpanes-4FF5o_FM.js} +1 -1
- package/dist/{template-Dbh8Beut.js → template-dbF0t2om.js} +1 -1
- package/dist/{tippy.esm-BRo_GJ2r.js → tippy.esm-Bu14Lq2S.js} +50 -50
- package/dist/{useTermsModal-BoFP5jyd.js → useTermsModal-DKiiU8a4.js} +4 -4
- package/dist/{utils-BbQPVxxj.js → utils-Dn9pHgbx.js} +1 -1
- package/dist/{validation-B0Jd0etq.js → validation-D_KP2hMr.js} +3 -3
- package/dist/widget.css +1 -1
- package/package.json +1 -1
- package/dist/AnswerModal-Disz8n8v.js +0 -3653
- package/dist/CPhoneInput-DT0zBmee.js +0 -207
- package/dist/Index--uza8ciS.js +0 -4
- package/dist/anime.es-4wvNItHq.js +0 -862
- package/dist/index-BsFKTasH.js +0 -3590
- package/dist/index-_a-1nXaE.js +0 -149
- package/dist/validations-ohsJ5nBz.js +0 -34
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { w as P,
|
|
4
|
-
import { _ as
|
|
5
|
-
import { C as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
const se = {
|
|
1
|
+
import { C as j } from "./ClientAutocomplete-Ci08U3Eg.js";
|
|
2
|
+
import { _ as z, b7 as L, d as h, o as f, v as H, j as s, b8 as Z, an as N, y, O as Y, ah as G, a as B, ar as E, a9 as K, ax as J, b as g, f as n, c as b, e as v, t as r, w as a, F as O, q as F, s as C, m as Q, aq as X, ae as k, aH as _, b9 as x, g as U } from "./main-BnJTDeKH.js";
|
|
3
|
+
import { w as P, a as ee, b as te } from "./CDropdownItem-CFTdvAJc.js";
|
|
4
|
+
import { _ as oe } from "./CFormField.vue_vue_type_script_setup_true_lang-B0HHxy2B.js";
|
|
5
|
+
import { C as ne } from "./CPhoneInput-DPqzQOjR.js";
|
|
6
|
+
import { u as le } from "./index-DnMhYLAz.js";
|
|
7
|
+
import { a as $, r as ae, e as ie } from "./index-CXYvBw0i.js";
|
|
8
|
+
import { o as se } from "./omit-DQlOTuQS.js";
|
|
9
|
+
const re = {
|
|
11
10
|
name: "CRadio",
|
|
12
|
-
mixins: [
|
|
13
|
-
},
|
|
14
|
-
function
|
|
15
|
-
return
|
|
11
|
+
mixins: [L]
|
|
12
|
+
}, de = ["disabled"], me = ["disabled", "required", "name", "value"], ue = { class: "control-label" };
|
|
13
|
+
function pe(e, t, i, u, c, l) {
|
|
14
|
+
return f(), h("label", {
|
|
16
15
|
ref: "label",
|
|
17
16
|
class: y([[`is-${e.size}`, { "is-disabled": e.disabled }], "b-radio radio"]),
|
|
18
17
|
disabled: e.disabledOrUndefined,
|
|
19
|
-
onClick: t[2] || (t[2] = (...
|
|
20
|
-
onKeydown: t[3] || (t[3] = G(N((
|
|
18
|
+
onClick: t[2] || (t[2] = (...p) => e.focus && e.focus(...p)),
|
|
19
|
+
onKeydown: t[3] || (t[3] = G(N((p) => e.$refs.label.click(), ["prevent"]), ["enter"]))
|
|
21
20
|
}, [
|
|
22
|
-
|
|
21
|
+
H(s("input", {
|
|
23
22
|
ref: "input",
|
|
24
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
23
|
+
"onUpdate:modelValue": t[0] || (t[0] = (p) => e.computedValue = p),
|
|
25
24
|
disabled: e.disabledOrUndefined,
|
|
26
25
|
required: e.requiredOrUndefined,
|
|
27
26
|
name: e.name,
|
|
@@ -29,18 +28,49 @@ function ue(e, t, s, p, c, l) {
|
|
|
29
28
|
type: "radio",
|
|
30
29
|
onClick: t[1] || (t[1] = N(() => {
|
|
31
30
|
}, ["stop"]))
|
|
32
|
-
}, null, 8,
|
|
33
|
-
[
|
|
31
|
+
}, null, 8, me), [
|
|
32
|
+
[Z, e.computedValue]
|
|
34
33
|
]),
|
|
35
|
-
|
|
34
|
+
s("span", {
|
|
36
35
|
class: y([`is-${e.type}`, "check"])
|
|
37
36
|
}, null, 2),
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
s("span", ue, [
|
|
38
|
+
Y(e.$slots, "default")
|
|
40
39
|
])
|
|
41
|
-
], 42,
|
|
40
|
+
], 42, de);
|
|
42
41
|
}
|
|
43
|
-
const
|
|
42
|
+
const ce = /* @__PURE__ */ z(re, [["render", pe]]);
|
|
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 u = t.length, c = u % 2;
|
|
49
|
+
let l, p;
|
|
50
|
+
for (l = 0; l < u; l += 1)
|
|
51
|
+
p = parseInt(t.charAt(l), 10), l % 2 === c && (p *= 2), p > 9 && (p -= 9), i += p;
|
|
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 c = t.substring(0, 2), l = (/* @__PURE__ */ new Date()).getFullYear(), p = parseInt(
|
|
66
|
+
l.toString().substring(2, 4),
|
|
67
|
+
10
|
|
68
|
+
);
|
|
69
|
+
parseInt(c, 10) === 19 || parseInt(c, 10) === 20 || (parseInt(c, 10) >= 0 && parseInt(c, 10) <= p ? 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 fe = {
|
|
44
74
|
sv: {
|
|
45
75
|
title: "Mottagare",
|
|
46
76
|
updateButton: "Spara mottagare",
|
|
@@ -163,23 +193,23 @@ const pe = /* @__PURE__ */ F(se, [["render", ue]]), ce = {
|
|
|
163
193
|
}
|
|
164
194
|
}
|
|
165
195
|
}
|
|
166
|
-
}, { mapFields:
|
|
196
|
+
}, { mapFields: ge } = E({
|
|
167
197
|
getterType: "forms/getField",
|
|
168
198
|
mutationType: "forms/updateField"
|
|
169
|
-
}),
|
|
199
|
+
}), he = {
|
|
170
200
|
name: "FormClient",
|
|
171
201
|
i18nOptions: {
|
|
172
202
|
namespaces: "formClient",
|
|
173
|
-
messages:
|
|
203
|
+
messages: fe
|
|
174
204
|
},
|
|
175
205
|
components: {
|
|
176
|
-
ClientAutocomplete:
|
|
206
|
+
ClientAutocomplete: j,
|
|
177
207
|
CCheckbox: K,
|
|
178
|
-
CDropdown:
|
|
179
|
-
CDropdownItem:
|
|
180
|
-
CField:
|
|
181
|
-
CPhoneInput:
|
|
182
|
-
CRadio:
|
|
208
|
+
CDropdown: te,
|
|
209
|
+
CDropdownItem: ee,
|
|
210
|
+
CField: oe,
|
|
211
|
+
CPhoneInput: ne,
|
|
212
|
+
CRadio: ce
|
|
183
213
|
},
|
|
184
214
|
emits: [
|
|
185
215
|
"setClient",
|
|
@@ -227,7 +257,7 @@ const pe = /* @__PURE__ */ F(se, [["render", ue]]), ce = {
|
|
|
227
257
|
},
|
|
228
258
|
setup() {
|
|
229
259
|
return {
|
|
230
|
-
v$:
|
|
260
|
+
v$: le()
|
|
231
261
|
};
|
|
232
262
|
},
|
|
233
263
|
validations() {
|
|
@@ -247,11 +277,11 @@ const pe = /* @__PURE__ */ F(se, [["render", ue]]), ce = {
|
|
|
247
277
|
required: $(this.requireReference && !this.isIndivid)
|
|
248
278
|
},
|
|
249
279
|
email: {
|
|
250
|
-
email:
|
|
280
|
+
email: ie
|
|
251
281
|
}
|
|
252
282
|
} : {
|
|
253
283
|
name: {
|
|
254
|
-
required:
|
|
284
|
+
required: ae
|
|
255
285
|
},
|
|
256
286
|
orgNo: {
|
|
257
287
|
required: $(this.type === "company")
|
|
@@ -268,7 +298,7 @@ const pe = /* @__PURE__ */ F(se, [["render", ue]]), ce = {
|
|
|
268
298
|
};
|
|
269
299
|
},
|
|
270
300
|
computed: {
|
|
271
|
-
...
|
|
301
|
+
...ge({
|
|
272
302
|
id: "endCustomer.id",
|
|
273
303
|
type: "endCustomer.customerType",
|
|
274
304
|
name: "endCustomer.name",
|
|
@@ -331,83 +361,83 @@ const pe = /* @__PURE__ */ F(se, [["render", ue]]), ce = {
|
|
|
331
361
|
}
|
|
332
362
|
},
|
|
333
363
|
mounted() {
|
|
334
|
-
var t,
|
|
364
|
+
var t, i, u;
|
|
335
365
|
const e = this.$refs[this.inputFocusOnMount] || this.$refs.name;
|
|
336
|
-
(
|
|
366
|
+
(u = (i = (t = e == null ? void 0 : e.$el) == null ? void 0 : t.nextElementSibling) == null ? void 0 : i.querySelector("input")) == null || u.focus();
|
|
337
367
|
},
|
|
338
368
|
methods: {
|
|
339
369
|
validateForm() {
|
|
340
370
|
return this.v$.$touch(), this.v$.$invalid ? !1 : (this.$emit("submit", !0), !0);
|
|
341
371
|
}
|
|
342
372
|
}
|
|
343
|
-
},
|
|
373
|
+
}, ve = { class: "form-client" }, ye = { class: "space-between flex flex-wrap items-center pb-6" }, be = {
|
|
344
374
|
class: "flex-grow",
|
|
345
375
|
style: { "font-weight": "600", "font-size": "20px" }
|
|
346
|
-
},
|
|
376
|
+
}, Ce = { class: "type-toggle" }, we = { style: { "line-height": "1.25", padding: "4px 0" } }, ke = { style: { "font-size": "12px", opacity: "0.7" } }, $e = { style: { "line-height": "1.25", padding: "4px 0" } }, Ve = { style: { "font-size": "12px", opacity: "0.7" } }, Ne = {
|
|
347
377
|
class: "flex items-center justify-center",
|
|
348
378
|
style: { "margin-bottom": "calc(2.5 * var(--rem))" }
|
|
349
|
-
},
|
|
379
|
+
}, Ie = { class: "type-toggle" }, Me = { key: 0 }, Se = {
|
|
350
380
|
key: 0,
|
|
351
381
|
class: "dropdown-field-wrapper flex min-w-0 flex-col"
|
|
352
|
-
},
|
|
382
|
+
}, Oe = { class: "my-1 text-sm text-gray-600" }, Fe = { class: "py-1 leading-5" }, ze = { class: "text-xs opacity-70" }, Re = { style: { "line-height": "1.25", padding: "4px 0" } }, De = { style: { "font-size": "12px", opacity: "0.7" } }, qe = {
|
|
353
383
|
key: 1,
|
|
354
384
|
class: "dropdown-field-wrapper flex min-w-0 flex-col"
|
|
355
|
-
}, Ue = { class: "my-1 text-sm text-gray-600" },
|
|
385
|
+
}, Ue = { class: "my-1 text-sm text-gray-600" }, Ae = { class: "max-w-[calc(16_*_var(--rem))] py-1 leading-5" }, Be = { class: "truncate text-xs opacity-70" }, Ee = { style: { "line-height": "1.25", padding: "4px 0" } }, Pe = {
|
|
356
386
|
class: "max-w-[calc(12_*_var(--rem))] truncate",
|
|
357
387
|
style: { "font-size": "12px", opacity: "0.7", "text-wrap": "wrap" }
|
|
358
|
-
},
|
|
359
|
-
function
|
|
360
|
-
const
|
|
361
|
-
return
|
|
362
|
-
|
|
388
|
+
}, Te = { style: { "margin-top": "calc(3 * var(--rem))" } };
|
|
389
|
+
function We(e, t, i, u, c, l) {
|
|
390
|
+
const p = g("ClientAutocomplete"), d = g("CField"), m = g("CInput"), I = g("Animation"), R = g("CPhoneInput"), w = g("CButton"), M = g("CDropdownItem"), S = g("CDropdown"), W = g("CCheckbox"), D = g("CRadio");
|
|
391
|
+
return f(), h("div", ve, [
|
|
392
|
+
i.simpleForm ? (f(), h("form", {
|
|
363
393
|
key: 0,
|
|
364
394
|
onSubmit: t[9] || (t[9] = N((...o) => l.validateForm && l.validateForm(...o), ["prevent"]))
|
|
365
395
|
}, [
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
396
|
+
s("div", ye, [
|
|
397
|
+
s("div", be, r(e.$t("_common:recipient").capitalize()), 1),
|
|
398
|
+
s("div", Ce, [
|
|
399
|
+
s("div", {
|
|
370
400
|
class: y([{ active: e.type === "individual" }, "type-toggle-button"]),
|
|
371
401
|
onClick: t[0] || (t[0] = (o) => e.type = "individual")
|
|
372
402
|
}, r(e.$t("individual")), 3),
|
|
373
|
-
|
|
403
|
+
s("div", {
|
|
374
404
|
class: y([{ active: e.type === "company" }, "type-toggle-button"]),
|
|
375
405
|
onClick: t[1] || (t[1] = (o) => e.type = "company")
|
|
376
406
|
}, r(e.$t("_common:company").capitalize()), 3)
|
|
377
407
|
])
|
|
378
408
|
]),
|
|
379
|
-
|
|
409
|
+
n(d, {
|
|
380
410
|
label: l.isIndivid ? e.$t("_common:name").capitalize() : e.$t("_common:company").capitalize(),
|
|
381
|
-
validator:
|
|
411
|
+
validator: u.v$.name,
|
|
382
412
|
messages: l.messages.name,
|
|
383
413
|
"label-position": "inside",
|
|
384
414
|
style: { "margin-bottom": "calc(1.5 * var(--rem))" }
|
|
385
415
|
}, {
|
|
386
|
-
default:
|
|
387
|
-
|
|
416
|
+
default: a(() => [
|
|
417
|
+
n(p, {
|
|
388
418
|
ref: "name",
|
|
389
419
|
modelValue: e.name,
|
|
390
420
|
"onUpdate:modelValue": t[2] || (t[2] = (o) => e.name = o),
|
|
391
421
|
placeholder: l.isIndivid ? e.$t("placeholders.name") : e.$t("placeholders.companyName"),
|
|
392
|
-
"search-enabled":
|
|
422
|
+
"search-enabled": i.searchEnabled,
|
|
393
423
|
"show-loading": !0,
|
|
394
424
|
onSetClient: t[3] || (t[3] = (o) => e.$emit("setClient", o))
|
|
395
425
|
}, null, 8, ["modelValue", "placeholder", "search-enabled"])
|
|
396
426
|
]),
|
|
397
427
|
_: 1
|
|
398
428
|
}, 8, ["label", "validator", "messages"]),
|
|
399
|
-
|
|
400
|
-
default:
|
|
401
|
-
l.isIndivid ? v("", !0) : (
|
|
429
|
+
n(I, null, {
|
|
430
|
+
default: a(() => [
|
|
431
|
+
l.isIndivid ? v("", !0) : (f(), b(d, {
|
|
402
432
|
key: 0,
|
|
403
|
-
validator:
|
|
433
|
+
validator: u.v$.reference,
|
|
404
434
|
messages: l.messages.reference,
|
|
405
435
|
label: e.$t("reference").capitalize(),
|
|
406
436
|
"label-position": "inside",
|
|
407
437
|
class: "pb-4"
|
|
408
438
|
}, {
|
|
409
|
-
default:
|
|
410
|
-
|
|
439
|
+
default: a(() => [
|
|
440
|
+
n(m, {
|
|
411
441
|
ref: "reference",
|
|
412
442
|
modelValue: e.reference,
|
|
413
443
|
"onUpdate:modelValue": t[4] || (t[4] = (o) => e.reference = o),
|
|
@@ -419,15 +449,15 @@ function Te(e, t, s, p, c, l) {
|
|
|
419
449
|
]),
|
|
420
450
|
_: 1
|
|
421
451
|
}),
|
|
422
|
-
|
|
423
|
-
validator:
|
|
452
|
+
n(d, {
|
|
453
|
+
validator: u.v$.email,
|
|
424
454
|
messages: l.messages.email,
|
|
425
455
|
label: e.$t("_common:email").capitalize(),
|
|
426
456
|
"label-position": "inside",
|
|
427
457
|
style: { "margin-bottom": "calc(1.5 * var(--rem))" }
|
|
428
458
|
}, {
|
|
429
|
-
default:
|
|
430
|
-
|
|
459
|
+
default: a(() => [
|
|
460
|
+
n(m, {
|
|
431
461
|
ref: "email",
|
|
432
462
|
modelValue: e.email,
|
|
433
463
|
"onUpdate:modelValue": t[5] || (t[5] = (o) => e.email = o),
|
|
@@ -437,7 +467,7 @@ function Te(e, t, s, p, c, l) {
|
|
|
437
467
|
]),
|
|
438
468
|
_: 1
|
|
439
469
|
}, 8, ["validator", "messages", "label"]),
|
|
440
|
-
|
|
470
|
+
n(R, {
|
|
441
471
|
ref: "cellphone",
|
|
442
472
|
modelValue: e.cellphone,
|
|
443
473
|
"onUpdate:modelValue": t[6] || (t[6] = (o) => e.cellphone = o),
|
|
@@ -448,45 +478,45 @@ function Te(e, t, s, p, c, l) {
|
|
|
448
478
|
"default-region": e.companyRegion,
|
|
449
479
|
"label-position": "inside"
|
|
450
480
|
}, null, 8, ["modelValue", "region", "label", "placeholder", "default-region"]),
|
|
451
|
-
|
|
481
|
+
i.documentRole ? (f(), b(S, {
|
|
452
482
|
key: 0,
|
|
453
483
|
expanded: "",
|
|
454
484
|
style: { "margin-bottom": "calc(1 * var(--rem))", "margin-top": "calc(0.75 * var(--rem))" }
|
|
455
485
|
}, {
|
|
456
|
-
trigger:
|
|
457
|
-
|
|
486
|
+
trigger: a(() => [
|
|
487
|
+
n(w, {
|
|
458
488
|
"dropdown-icon": !0,
|
|
459
489
|
"icon-props": {
|
|
460
490
|
stroke: "hsl(0, 0%, 50%)"
|
|
461
491
|
},
|
|
462
|
-
"icon-left":
|
|
492
|
+
"icon-left": i.documentRole === "signee" ? "pen-tool" : "eye",
|
|
463
493
|
class: "is-left",
|
|
464
494
|
type: "none",
|
|
465
495
|
pattern: "secondary",
|
|
466
496
|
style: { width: "100%" }
|
|
467
497
|
}, {
|
|
468
|
-
default:
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
498
|
+
default: a(() => [
|
|
499
|
+
s("div", we, [
|
|
500
|
+
s("div", null, r(e.$t(`_common:documentRole.${i.documentRole}.description`)), 1),
|
|
501
|
+
s("div", ke, r(e.$t(`_common:documentRole.${i.documentRole}.label`)), 1)
|
|
472
502
|
])
|
|
473
503
|
]),
|
|
474
504
|
_: 1
|
|
475
505
|
}, 8, ["icon-left"])
|
|
476
506
|
]),
|
|
477
|
-
default:
|
|
478
|
-
(
|
|
507
|
+
default: a(() => [
|
|
508
|
+
(f(), h(O, null, F(["signee", "recipient", "approver"], (o) => n(M, {
|
|
479
509
|
key: o,
|
|
480
510
|
"icon-left": o === "signee" ? "pen-tool" : "eye",
|
|
481
511
|
"icon-props": {
|
|
482
512
|
stroke: "hsl(0, 0%, 50%)"
|
|
483
513
|
},
|
|
484
|
-
onClick: (
|
|
514
|
+
onClick: (q) => e.$emit("update:document-role", o)
|
|
485
515
|
}, {
|
|
486
|
-
default:
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
516
|
+
default: a(() => [
|
|
517
|
+
s("div", $e, [
|
|
518
|
+
s("div", null, r(e.$t(`_common:documentRole.${o}.description`)), 1),
|
|
519
|
+
s("div", Ve, r(e.$t(`_common:documentRole.${o}.label`)), 1)
|
|
490
520
|
])
|
|
491
521
|
]),
|
|
492
522
|
_: 2
|
|
@@ -494,19 +524,19 @@ function Te(e, t, s, p, c, l) {
|
|
|
494
524
|
]),
|
|
495
525
|
_: 1
|
|
496
526
|
})) : v("", !0),
|
|
497
|
-
|
|
527
|
+
n(w, {
|
|
498
528
|
type: "secondary",
|
|
499
529
|
pattern: "tertiary",
|
|
500
530
|
size: "small",
|
|
501
531
|
"icon-left": "arrow-right",
|
|
502
532
|
onClick: t[8] || (t[8] = (o) => e.$emit("show-more"))
|
|
503
533
|
}, {
|
|
504
|
-
default:
|
|
534
|
+
default: a(() => [
|
|
505
535
|
C(r(e.$t("showMore").capitalize()), 1)
|
|
506
536
|
]),
|
|
507
537
|
_: 1
|
|
508
538
|
}),
|
|
509
|
-
|
|
539
|
+
n(w, {
|
|
510
540
|
loading: e.isPosting,
|
|
511
541
|
"native-type": "submit",
|
|
512
542
|
type: "secondary",
|
|
@@ -515,61 +545,61 @@ function Te(e, t, s, p, c, l) {
|
|
|
515
545
|
class: "mt-4",
|
|
516
546
|
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)" }
|
|
517
547
|
}, {
|
|
518
|
-
default:
|
|
548
|
+
default: a(() => [
|
|
519
549
|
C(r(e.$t("updateButton")), 1)
|
|
520
550
|
]),
|
|
521
551
|
_: 1
|
|
522
552
|
}, 8, ["loading"])
|
|
523
|
-
], 32)) : (
|
|
553
|
+
], 32)) : (f(), h("div", {
|
|
524
554
|
key: 1,
|
|
525
555
|
class: y({ "column-only": e.windowWidth <= 600 })
|
|
526
556
|
}, [
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
557
|
+
s("div", Ne, [
|
|
558
|
+
s("div", Ie, [
|
|
559
|
+
s("div", {
|
|
530
560
|
class: y([{ active: e.type === "individual" }, "type-toggle-button"]),
|
|
531
561
|
onClick: t[10] || (t[10] = (o) => e.type = "individual")
|
|
532
562
|
}, r(e.$t("individual")), 3),
|
|
533
|
-
|
|
563
|
+
s("div", {
|
|
534
564
|
class: y([{ active: e.type === "company" }, "type-toggle-button"]),
|
|
535
565
|
onClick: t[11] || (t[11] = (o) => e.type = "company")
|
|
536
566
|
}, r(e.$t("_common:company").capitalize()), 3)
|
|
537
567
|
])
|
|
538
568
|
]),
|
|
539
|
-
|
|
569
|
+
n(d, {
|
|
540
570
|
class: "flex",
|
|
541
571
|
grouped: ""
|
|
542
572
|
}, {
|
|
543
|
-
default:
|
|
544
|
-
|
|
573
|
+
default: a(() => [
|
|
574
|
+
n(d, {
|
|
545
575
|
label: l.isIndivid ? e.$t("_common:name").capitalize() : e.$t("_common:company").capitalize(),
|
|
546
|
-
validator:
|
|
576
|
+
validator: u.v$.name,
|
|
547
577
|
messages: l.messages.name,
|
|
548
578
|
"label-position": "inside",
|
|
549
579
|
expanded: ""
|
|
550
580
|
}, {
|
|
551
|
-
default:
|
|
552
|
-
|
|
581
|
+
default: a(() => [
|
|
582
|
+
n(p, {
|
|
553
583
|
ref: "name",
|
|
554
584
|
modelValue: e.name,
|
|
555
585
|
"onUpdate:modelValue": t[12] || (t[12] = (o) => e.name = o),
|
|
556
586
|
placeholder: l.isIndivid ? e.$t("placeholders.name") : e.$t("placeholders.companyName"),
|
|
557
587
|
"show-loading": !0,
|
|
558
|
-
"search-enabled":
|
|
588
|
+
"search-enabled": i.searchEnabled,
|
|
559
589
|
onSetClient: t[13] || (t[13] = (o) => e.$emit("setClient", o))
|
|
560
590
|
}, null, 8, ["modelValue", "placeholder", "search-enabled"])
|
|
561
591
|
]),
|
|
562
592
|
_: 1
|
|
563
593
|
}, 8, ["label", "validator", "messages"]),
|
|
564
|
-
|
|
594
|
+
n(d, {
|
|
565
595
|
label: l.isIndivid ? e.$t("_common:socialNo").capitalize() : e.$t("_common:orgNoShort").capitalize(),
|
|
566
|
-
validator:
|
|
596
|
+
validator: u.v$.orgNo,
|
|
567
597
|
messages: l.isIndivid ? l.messages.orgNo : l.messages.realOrgNo,
|
|
568
598
|
"label-position": "inside",
|
|
569
599
|
expanded: ""
|
|
570
600
|
}, {
|
|
571
|
-
default:
|
|
572
|
-
|
|
601
|
+
default: a(() => [
|
|
602
|
+
n(m, {
|
|
573
603
|
ref: "orgNo",
|
|
574
604
|
modelValue: l.orgNo,
|
|
575
605
|
"onUpdate:modelValue": t[14] || (t[14] = (o) => l.orgNo = o),
|
|
@@ -581,18 +611,18 @@ function Te(e, t, s, p, c, l) {
|
|
|
581
611
|
]),
|
|
582
612
|
_: 1
|
|
583
613
|
}),
|
|
584
|
-
|
|
585
|
-
default:
|
|
586
|
-
e.type && !l.isIndivid ? (
|
|
614
|
+
n(I, null, {
|
|
615
|
+
default: a(() => [
|
|
616
|
+
e.type && !l.isIndivid ? (f(), b(d, {
|
|
587
617
|
key: 0,
|
|
588
|
-
validator:
|
|
618
|
+
validator: u.v$.reference,
|
|
589
619
|
messages: l.messages.reference,
|
|
590
620
|
label: e.$t("_common:reference").capitalize(),
|
|
591
621
|
"label-position": "inside",
|
|
592
622
|
class: "pb-4"
|
|
593
623
|
}, {
|
|
594
|
-
default:
|
|
595
|
-
|
|
624
|
+
default: a(() => [
|
|
625
|
+
n(m, {
|
|
596
626
|
ref: "reference",
|
|
597
627
|
modelValue: e.reference,
|
|
598
628
|
"onUpdate:modelValue": t[15] || (t[15] = (o) => e.reference = o),
|
|
@@ -601,17 +631,17 @@ function Te(e, t, s, p, c, l) {
|
|
|
601
631
|
]),
|
|
602
632
|
_: 1
|
|
603
633
|
}, 8, ["validator", "messages", "label"])) : v("", !0),
|
|
604
|
-
e.type && !l.isIndivid && e.feature("reverseVat") && e.feature("regionSE") ? (
|
|
634
|
+
e.type && !l.isIndivid && e.feature("reverseVat") && e.feature("regionSE") ? (f(), b(d, {
|
|
605
635
|
key: 1,
|
|
606
636
|
style: { "padding-left": "0.5em", "margin-bottom": "calc(2 * var(--rem))" }
|
|
607
637
|
}, {
|
|
608
|
-
default:
|
|
609
|
-
|
|
638
|
+
default: a(() => [
|
|
639
|
+
n(W, {
|
|
610
640
|
modelValue: e.reverseVat,
|
|
611
641
|
"onUpdate:modelValue": t[16] || (t[16] = (o) => e.reverseVat = o),
|
|
612
642
|
size: "normal"
|
|
613
643
|
}, {
|
|
614
|
-
default:
|
|
644
|
+
default: a(() => [
|
|
615
645
|
C(r(e.$t("_common:vat.reverseVat")), 1)
|
|
616
646
|
]),
|
|
617
647
|
_: 1
|
|
@@ -622,21 +652,21 @@ function Te(e, t, s, p, c, l) {
|
|
|
622
652
|
]),
|
|
623
653
|
_: 1
|
|
624
654
|
}),
|
|
625
|
-
|
|
655
|
+
n(d, {
|
|
626
656
|
class: "flex",
|
|
627
657
|
grouped: ""
|
|
628
658
|
}, {
|
|
629
|
-
default:
|
|
630
|
-
|
|
631
|
-
validator:
|
|
659
|
+
default: a(() => [
|
|
660
|
+
n(d, {
|
|
661
|
+
validator: u.v$.email,
|
|
632
662
|
messages: l.messages.email,
|
|
633
663
|
label: e.$t("_common:email").capitalize(),
|
|
634
664
|
"label-position": "inside",
|
|
635
665
|
class: "flex-1",
|
|
636
666
|
expanded: ""
|
|
637
667
|
}, {
|
|
638
|
-
default:
|
|
639
|
-
|
|
668
|
+
default: a(() => [
|
|
669
|
+
n(m, {
|
|
640
670
|
ref: "email",
|
|
641
671
|
modelValue: e.email,
|
|
642
672
|
"onUpdate:modelValue": t[17] || (t[17] = (o) => e.email = o),
|
|
@@ -646,7 +676,7 @@ function Te(e, t, s, p, c, l) {
|
|
|
646
676
|
]),
|
|
647
677
|
_: 1
|
|
648
678
|
}, 8, ["validator", "messages", "label"]),
|
|
649
|
-
|
|
679
|
+
n(R, {
|
|
650
680
|
modelValue: e.cellphone,
|
|
651
681
|
"onUpdate:modelValue": t[18] || (t[18] = (o) => e.cellphone = o),
|
|
652
682
|
region: e.cellphoneRegion,
|
|
@@ -660,12 +690,12 @@ function Te(e, t, s, p, c, l) {
|
|
|
660
690
|
]),
|
|
661
691
|
_: 1
|
|
662
692
|
}),
|
|
663
|
-
|
|
693
|
+
n(d, {
|
|
664
694
|
label: e.$t("_common:address").capitalize(),
|
|
665
695
|
"label-position": "inside"
|
|
666
696
|
}, {
|
|
667
|
-
default:
|
|
668
|
-
|
|
697
|
+
default: a(() => [
|
|
698
|
+
n(m, {
|
|
669
699
|
ref: "street",
|
|
670
700
|
modelValue: e.street,
|
|
671
701
|
"onUpdate:modelValue": t[20] || (t[20] = (o) => e.street = o),
|
|
@@ -674,14 +704,14 @@ function Te(e, t, s, p, c, l) {
|
|
|
674
704
|
]),
|
|
675
705
|
_: 1
|
|
676
706
|
}, 8, ["label"]),
|
|
677
|
-
|
|
707
|
+
n(d, {
|
|
678
708
|
class: "force-two flex",
|
|
679
709
|
grouped: ""
|
|
680
710
|
}, {
|
|
681
|
-
default:
|
|
682
|
-
|
|
683
|
-
default:
|
|
684
|
-
|
|
711
|
+
default: a(() => [
|
|
712
|
+
n(d, { expanded: "" }, {
|
|
713
|
+
default: a(() => [
|
|
714
|
+
n(m, {
|
|
685
715
|
ref: "zip",
|
|
686
716
|
modelValue: e.zip,
|
|
687
717
|
"onUpdate:modelValue": t[21] || (t[21] = (o) => e.zip = o),
|
|
@@ -690,9 +720,9 @@ function Te(e, t, s, p, c, l) {
|
|
|
690
720
|
]),
|
|
691
721
|
_: 1
|
|
692
722
|
}),
|
|
693
|
-
|
|
694
|
-
default:
|
|
695
|
-
|
|
723
|
+
n(d, { expanded: "" }, {
|
|
724
|
+
default: a(() => [
|
|
725
|
+
n(m, {
|
|
696
726
|
ref: "city",
|
|
697
727
|
modelValue: e.city,
|
|
698
728
|
"onUpdate:modelValue": t[22] || (t[22] = (o) => e.city = o),
|
|
@@ -704,9 +734,9 @@ function Te(e, t, s, p, c, l) {
|
|
|
704
734
|
]),
|
|
705
735
|
_: 1
|
|
706
736
|
}),
|
|
707
|
-
|
|
708
|
-
default:
|
|
709
|
-
|
|
737
|
+
n(d, { class: "flex" }, {
|
|
738
|
+
default: a(() => [
|
|
739
|
+
n(D, {
|
|
710
740
|
modelValue: e.separateWorkAddress,
|
|
711
741
|
"onUpdate:modelValue": t[23] || (t[23] = (o) => e.separateWorkAddress = o),
|
|
712
742
|
"native-value": !1,
|
|
@@ -714,12 +744,12 @@ function Te(e, t, s, p, c, l) {
|
|
|
714
744
|
size: "small",
|
|
715
745
|
style: { "margin-bottom": "0.5em" }
|
|
716
746
|
}, {
|
|
717
|
-
default:
|
|
747
|
+
default: a(() => [
|
|
718
748
|
C(r(e.$t("seperateWorkAddress.false")), 1)
|
|
719
749
|
]),
|
|
720
750
|
_: 1
|
|
721
751
|
}, 8, ["modelValue"]),
|
|
722
|
-
|
|
752
|
+
n(D, {
|
|
723
753
|
modelValue: e.separateWorkAddress,
|
|
724
754
|
"onUpdate:modelValue": t[24] || (t[24] = (o) => e.separateWorkAddress = o),
|
|
725
755
|
"native-value": !0,
|
|
@@ -727,7 +757,7 @@ function Te(e, t, s, p, c, l) {
|
|
|
727
757
|
size: "small",
|
|
728
758
|
style: { "margin-bottom": "0.5em" }
|
|
729
759
|
}, {
|
|
730
|
-
default:
|
|
760
|
+
default: a(() => [
|
|
731
761
|
C(r(e.$t("seperateWorkAddress.true")), 1)
|
|
732
762
|
]),
|
|
733
763
|
_: 1
|
|
@@ -735,14 +765,14 @@ function Te(e, t, s, p, c, l) {
|
|
|
735
765
|
]),
|
|
736
766
|
_: 1
|
|
737
767
|
}),
|
|
738
|
-
|
|
739
|
-
default:
|
|
740
|
-
e.type && e.separateWorkAddress ? (
|
|
741
|
-
|
|
768
|
+
n(I, null, {
|
|
769
|
+
default: a(() => [
|
|
770
|
+
e.type && e.separateWorkAddress ? (f(), h("div", Me, [
|
|
771
|
+
n(d, {
|
|
742
772
|
label: e.$t("_common:addressWork").capitalize() + ` ( ${e.$t("workAddressSubLabel")} )`
|
|
743
773
|
}, {
|
|
744
|
-
default:
|
|
745
|
-
|
|
774
|
+
default: a(() => [
|
|
775
|
+
n(m, {
|
|
746
776
|
ref: "workStreet",
|
|
747
777
|
modelValue: e.workStreet,
|
|
748
778
|
"onUpdate:modelValue": t[25] || (t[25] = (o) => e.workStreet = o),
|
|
@@ -751,14 +781,14 @@ function Te(e, t, s, p, c, l) {
|
|
|
751
781
|
]),
|
|
752
782
|
_: 1
|
|
753
783
|
}, 8, ["label"]),
|
|
754
|
-
|
|
784
|
+
n(d, {
|
|
755
785
|
class: "force-two flex",
|
|
756
786
|
grouped: ""
|
|
757
787
|
}, {
|
|
758
|
-
default:
|
|
759
|
-
|
|
760
|
-
default:
|
|
761
|
-
|
|
788
|
+
default: a(() => [
|
|
789
|
+
n(d, { expanded: "" }, {
|
|
790
|
+
default: a(() => [
|
|
791
|
+
n(m, {
|
|
762
792
|
ref: "workZip",
|
|
763
793
|
modelValue: e.workZip,
|
|
764
794
|
"onUpdate:modelValue": t[26] || (t[26] = (o) => e.workZip = o),
|
|
@@ -768,9 +798,9 @@ function Te(e, t, s, p, c, l) {
|
|
|
768
798
|
]),
|
|
769
799
|
_: 1
|
|
770
800
|
}),
|
|
771
|
-
|
|
772
|
-
default:
|
|
773
|
-
|
|
801
|
+
n(d, { expanded: "" }, {
|
|
802
|
+
default: a(() => [
|
|
803
|
+
n(m, {
|
|
774
804
|
ref: "workCity",
|
|
775
805
|
modelValue: e.workCity,
|
|
776
806
|
"onUpdate:modelValue": t[27] || (t[27] = (o) => e.workCity = o),
|
|
@@ -787,52 +817,52 @@ function Te(e, t, s, p, c, l) {
|
|
|
787
817
|
]),
|
|
788
818
|
_: 1
|
|
789
819
|
}),
|
|
790
|
-
|
|
820
|
+
i.documentRole || i.answerMethod ? (f(), b(d, {
|
|
791
821
|
key: 0,
|
|
792
822
|
grouped: "",
|
|
793
823
|
class: "flex pt-4"
|
|
794
824
|
}, {
|
|
795
|
-
default:
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
825
|
+
default: a(() => [
|
|
826
|
+
i.documentRole ? (f(), h("div", Se, [
|
|
827
|
+
s("div", Oe, r(e.$t("_common:documentRole.title")), 1),
|
|
828
|
+
n(S, {
|
|
799
829
|
expanded: "",
|
|
800
830
|
style: { "margin-bottom": "calc(1 * var(--rem))" }
|
|
801
831
|
}, {
|
|
802
|
-
trigger:
|
|
803
|
-
|
|
832
|
+
trigger: a(() => [
|
|
833
|
+
n(w, {
|
|
804
834
|
"dropdown-icon": !0,
|
|
805
835
|
"icon-props": {
|
|
806
836
|
stroke: "hsl(0, 0%, 50%)"
|
|
807
837
|
},
|
|
808
|
-
"icon-left":
|
|
838
|
+
"icon-left": i.documentRole === "signee" ? "pen-tool" : "eye",
|
|
809
839
|
class: "is-left",
|
|
810
840
|
type: "none",
|
|
811
841
|
pattern: "secondary",
|
|
812
842
|
expanded: ""
|
|
813
843
|
}, {
|
|
814
|
-
default:
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
844
|
+
default: a(() => [
|
|
845
|
+
s("div", Fe, [
|
|
846
|
+
s("div", null, r(e.$t(`_common:documentRole.${i.documentRole}.description`)), 1),
|
|
847
|
+
s("div", ze, r(e.$t(`_common:documentRole.${i.documentRole}.label`)), 1)
|
|
818
848
|
])
|
|
819
849
|
]),
|
|
820
850
|
_: 1
|
|
821
851
|
}, 8, ["icon-left"])
|
|
822
852
|
]),
|
|
823
|
-
default:
|
|
824
|
-
(
|
|
853
|
+
default: a(() => [
|
|
854
|
+
(f(), h(O, null, F(["signee", "recipient", "approver"], (o) => n(M, {
|
|
825
855
|
key: o,
|
|
826
856
|
"icon-left": o === "signee" ? "pen-tool" : "eye",
|
|
827
857
|
"icon-props": {
|
|
828
858
|
stroke: "hsl(0, 0%, 50%)"
|
|
829
859
|
},
|
|
830
|
-
onClick: (
|
|
860
|
+
onClick: (q) => e.$emit("update:document-role", o)
|
|
831
861
|
}, {
|
|
832
|
-
default:
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
862
|
+
default: a(() => [
|
|
863
|
+
s("div", Re, [
|
|
864
|
+
s("div", null, r(e.$t(`_common:documentRole.${o}.description`)), 1),
|
|
865
|
+
s("div", De, r(e.$t(`_common:documentRole.${o}.label`)), 1)
|
|
836
866
|
])
|
|
837
867
|
]),
|
|
838
868
|
_: 2
|
|
@@ -841,41 +871,41 @@ function Te(e, t, s, p, c, l) {
|
|
|
841
871
|
_: 1
|
|
842
872
|
})
|
|
843
873
|
])) : v("", !0),
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
874
|
+
i.answerMethod ? (f(), h("div", qe, [
|
|
875
|
+
s("div", Ue, r(e.$t("_common:signMethod.title")), 1),
|
|
876
|
+
n(S, {
|
|
847
877
|
expanded: "",
|
|
848
878
|
style: { "margin-bottom": "calc(1 * var(--rem))" }
|
|
849
879
|
}, {
|
|
850
|
-
trigger:
|
|
851
|
-
|
|
880
|
+
trigger: a(() => [
|
|
881
|
+
n(w, {
|
|
852
882
|
"dropdown-icon": !0,
|
|
853
883
|
class: "is-left",
|
|
854
884
|
type: "none",
|
|
855
885
|
pattern: "secondary",
|
|
856
886
|
expanded: ""
|
|
857
887
|
}, {
|
|
858
|
-
default:
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
888
|
+
default: a(() => [
|
|
889
|
+
s("div", Ae, [
|
|
890
|
+
s("div", null, r(e.$t(`signMethod.${i.answerMethod.accept}.title`)), 1),
|
|
891
|
+
s("div", Be, r(e.$t(`signMethod.${i.answerMethod.accept}.content`)), 1)
|
|
862
892
|
])
|
|
863
893
|
]),
|
|
864
894
|
_: 1
|
|
865
895
|
})
|
|
866
896
|
]),
|
|
867
|
-
default:
|
|
868
|
-
(
|
|
897
|
+
default: a(() => [
|
|
898
|
+
(f(!0), h(O, null, F(i.signOptions, (o) => (f(), b(M, {
|
|
869
899
|
key: o,
|
|
870
|
-
onClick: (
|
|
871
|
-
...
|
|
900
|
+
onClick: (q) => e.$emit("update:answer-method", {
|
|
901
|
+
...i.answerMethod,
|
|
872
902
|
accept: o
|
|
873
903
|
})
|
|
874
904
|
}, {
|
|
875
|
-
default:
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
905
|
+
default: a(() => [
|
|
906
|
+
s("div", Ee, [
|
|
907
|
+
s("div", null, r(e.$t(`signMethod.${o}.title`)), 1),
|
|
908
|
+
s("div", Pe, r(e.$t(`signMethod.${o}.content`)), 1)
|
|
879
909
|
])
|
|
880
910
|
]),
|
|
881
911
|
_: 2
|
|
@@ -887,15 +917,15 @@ function Te(e, t, s, p, c, l) {
|
|
|
887
917
|
]),
|
|
888
918
|
_: 1
|
|
889
919
|
})) : v("", !0),
|
|
890
|
-
|
|
891
|
-
|
|
920
|
+
s("div", Te, [
|
|
921
|
+
n(w, {
|
|
892
922
|
loading: e.isPosting,
|
|
893
923
|
type: "secondary",
|
|
894
924
|
wide: "",
|
|
895
925
|
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)" },
|
|
896
926
|
onClick: l.validateForm
|
|
897
927
|
}, {
|
|
898
|
-
default:
|
|
928
|
+
default: a(() => [
|
|
899
929
|
C(r(e.$t("updateButton")), 1)
|
|
900
930
|
]),
|
|
901
931
|
_: 1
|
|
@@ -904,10 +934,10 @@ function Te(e, t, s, p, c, l) {
|
|
|
904
934
|
], 2))
|
|
905
935
|
]);
|
|
906
936
|
}
|
|
907
|
-
const
|
|
937
|
+
const je = /* @__PURE__ */ z(he, [["render", We], ["__scopeId", "data-v-9dcf6643"]]), { mapFields: Le } = E({
|
|
908
938
|
getterType: "forms/getField",
|
|
909
939
|
mutationType: "forms/updateField"
|
|
910
|
-
}),
|
|
940
|
+
}), He = {
|
|
911
941
|
name: "ClientModal",
|
|
912
942
|
i18nOptions: {
|
|
913
943
|
namespaces: "clientModal",
|
|
@@ -939,7 +969,7 @@ const We = /* @__PURE__ */ F(ge, [["render", Te], ["__scopeId", "data-v-9dcf6643
|
|
|
939
969
|
}
|
|
940
970
|
},
|
|
941
971
|
components: {
|
|
942
|
-
FormClient:
|
|
972
|
+
FormClient: je
|
|
943
973
|
},
|
|
944
974
|
emits: ["close"],
|
|
945
975
|
mixins: [P],
|
|
@@ -984,10 +1014,10 @@ const We = /* @__PURE__ */ F(ge, [["render", Te], ["__scopeId", "data-v-9dcf6643
|
|
|
984
1014
|
};
|
|
985
1015
|
},
|
|
986
1016
|
computed: {
|
|
987
|
-
...
|
|
1017
|
+
...Le({
|
|
988
1018
|
endCustomer: "endCustomer"
|
|
989
1019
|
}),
|
|
990
|
-
...
|
|
1020
|
+
...X("forms", {
|
|
991
1021
|
formData: (e) => e.document2
|
|
992
1022
|
}),
|
|
993
1023
|
...B({
|
|
@@ -1006,16 +1036,16 @@ const We = /* @__PURE__ */ F(ge, [["render", Te], ["__scopeId", "data-v-9dcf6643
|
|
|
1006
1036
|
}
|
|
1007
1037
|
},
|
|
1008
1038
|
created() {
|
|
1009
|
-
var
|
|
1039
|
+
var i;
|
|
1010
1040
|
let e = k(this.formData, "data.defaultAnswerMethod.accept") || "signature";
|
|
1011
|
-
(
|
|
1041
|
+
(i = this.signOptions) != null && i.length && !this.signOptions.includes(e) && ([e] = this.signOptions), this.storedNewClient.answerMethod.accept = e, this.forceExpand && (this.showMore = !0);
|
|
1012
1042
|
const t = k(
|
|
1013
1043
|
this.formData,
|
|
1014
1044
|
`clients[${this.documentClientIndex}]`,
|
|
1015
1045
|
{}
|
|
1016
1046
|
);
|
|
1017
1047
|
this.loadForm(t), ["endCustomer", "storedNewClient"].forEach(
|
|
1018
|
-
(
|
|
1048
|
+
(u) => this.$watch(u, {
|
|
1019
1049
|
deep: !0,
|
|
1020
1050
|
handler() {
|
|
1021
1051
|
this.hasChanged = !0;
|
|
@@ -1024,31 +1054,31 @@ const We = /* @__PURE__ */ F(ge, [["render", Te], ["__scopeId", "data-v-9dcf6643
|
|
|
1024
1054
|
);
|
|
1025
1055
|
},
|
|
1026
1056
|
methods: {
|
|
1027
|
-
...
|
|
1028
|
-
saveClient:
|
|
1029
|
-
showMessage:
|
|
1057
|
+
...Q({
|
|
1058
|
+
saveClient: U.FORM_SUBMIT_ENDCUSTOMER,
|
|
1059
|
+
showMessage: U.SHOW_MESSAGE
|
|
1030
1060
|
}),
|
|
1031
|
-
omit:
|
|
1061
|
+
omit: se,
|
|
1032
1062
|
loadForm(e = {}) {
|
|
1033
|
-
this.storedNewClient = Object.assign(this.storedNewClient, e), this.endCustomer =
|
|
1063
|
+
this.storedNewClient = Object.assign(this.storedNewClient, e), this.endCustomer = x({
|
|
1034
1064
|
type: this.defaultClientType(),
|
|
1035
1065
|
...e
|
|
1036
1066
|
});
|
|
1037
1067
|
},
|
|
1038
1068
|
async onSave() {
|
|
1039
|
-
var
|
|
1069
|
+
var i, u;
|
|
1040
1070
|
this.isLoading = !0;
|
|
1041
1071
|
let e = k(this.endCustomer, "id"), t = !1;
|
|
1042
1072
|
if (this.endCustomer && (this.endCustomer.id ? this.can("endCustomers", "modify", this.endCustomer.id) && (t = !0) : this.can("endCustomers", "create") && (t = !0)), t && (e = await this.saveClient()), this.useSignOrder && !this.storedNewClient.signOrder) {
|
|
1043
|
-
const c = ((
|
|
1044
|
-
(l,
|
|
1073
|
+
const c = ((u = (i = this.formData) == null ? void 0 : i.clients) == null ? void 0 : u.reduce(
|
|
1074
|
+
(l, p) => p.signOrder > l ? p.signOrder : l,
|
|
1045
1075
|
0
|
|
1046
1076
|
)) || 0;
|
|
1047
1077
|
this.storedNewClient.signOrder = c + 1;
|
|
1048
1078
|
}
|
|
1049
1079
|
this.setFormValue({
|
|
1050
1080
|
key: `clients[${this.documentClientIndex}]`,
|
|
1051
|
-
value:
|
|
1081
|
+
value: _(
|
|
1052
1082
|
{ ...this.endCustomer, ...e && { id: e } },
|
|
1053
1083
|
{ ...this.storedNewClient }
|
|
1054
1084
|
)
|
|
@@ -1093,15 +1123,15 @@ const We = /* @__PURE__ */ F(ge, [["render", Te], ["__scopeId", "data-v-9dcf6643
|
|
|
1093
1123
|
});
|
|
1094
1124
|
}
|
|
1095
1125
|
}
|
|
1096
|
-
},
|
|
1097
|
-
function
|
|
1098
|
-
const
|
|
1099
|
-
return
|
|
1126
|
+
}, Ze = { 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" };
|
|
1127
|
+
function Ye(e, t, i, u, c, l) {
|
|
1128
|
+
const p = g("CButton"), d = g("FormClient");
|
|
1129
|
+
return f(), h("div", {
|
|
1100
1130
|
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",
|
|
1101
1131
|
onClickPassive: t[5] || (t[5] = N((...m) => l.close && l.close(...m), ["self"]))
|
|
1102
1132
|
}, [
|
|
1103
|
-
|
|
1104
|
-
|
|
1133
|
+
s("div", Ze, [
|
|
1134
|
+
n(p, {
|
|
1105
1135
|
class: y([c.showMore ? "" : "sm:!hidden", "z-2 absolute right-4 top-4"]),
|
|
1106
1136
|
pattern: "tertiary",
|
|
1107
1137
|
type: "none",
|
|
@@ -1109,7 +1139,7 @@ function Ze(e, t, s, p, c, l) {
|
|
|
1109
1139
|
icon: "x",
|
|
1110
1140
|
onClick: l.close
|
|
1111
1141
|
}, null, 8, ["class", "onClick"]),
|
|
1112
|
-
|
|
1142
|
+
n(d, {
|
|
1113
1143
|
"document-role": c.storedNewClient.documentRole,
|
|
1114
1144
|
"onUpdate:documentRole": t[0] || (t[0] = (m) => c.storedNewClient.documentRole = m),
|
|
1115
1145
|
"answer-method": c.storedNewClient.answerMethod,
|
|
@@ -1125,15 +1155,15 @@ function Ze(e, t, s, p, c, l) {
|
|
|
1125
1155
|
"search-enabled": !0,
|
|
1126
1156
|
"require-reference": !1,
|
|
1127
1157
|
"simple-form": !c.showMore,
|
|
1128
|
-
"input-focus-on-mount":
|
|
1129
|
-
"sign-options":
|
|
1158
|
+
"input-focus-on-mount": i.inputFocusOnMount,
|
|
1159
|
+
"sign-options": i.signOptions,
|
|
1130
1160
|
"validate-org-no": l.validateOrgNo,
|
|
1131
1161
|
class: y([[c.showMore ? "w-[520px]" : "w-[360px]"], "max-w-full p-0"]),
|
|
1132
1162
|
onSetClient: t[2] || (t[2] = (m) => l.loadForm(l.omit(m, ["answerMethod"]))),
|
|
1133
1163
|
onSubmit: l.onSave,
|
|
1134
1164
|
onShowMore: t[3] || (t[3] = (m) => c.showMore = !0)
|
|
1135
1165
|
}, null, 8, ["document-role", "answer-method", "simple-form", "input-focus-on-mount", "sign-options", "validate-org-no", "class", "onSubmit"]),
|
|
1136
|
-
l.existsOnDocument && e.mq === "sm" ? (
|
|
1166
|
+
l.existsOnDocument && e.mq === "sm" ? (f(), b(p, {
|
|
1137
1167
|
key: 0,
|
|
1138
1168
|
type: "danger",
|
|
1139
1169
|
pattern: "secondary",
|
|
@@ -1141,7 +1171,7 @@ function Ze(e, t, s, p, c, l) {
|
|
|
1141
1171
|
class: "mt-4 text-sm",
|
|
1142
1172
|
onClick: l.removeClient
|
|
1143
1173
|
}, {
|
|
1144
|
-
default:
|
|
1174
|
+
default: a(() => [
|
|
1145
1175
|
C(r(e.$t("_common:remove")), 1)
|
|
1146
1176
|
]),
|
|
1147
1177
|
_: 1
|
|
@@ -1149,12 +1179,12 @@ function Ze(e, t, s, p, c, l) {
|
|
|
1149
1179
|
])
|
|
1150
1180
|
], 32);
|
|
1151
1181
|
}
|
|
1152
|
-
const Ge = /* @__PURE__ */
|
|
1182
|
+
const Ge = /* @__PURE__ */ z(He, [["render", Ye]]), ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1153
1183
|
__proto__: null,
|
|
1154
1184
|
default: Ge
|
|
1155
1185
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1156
1186
|
export {
|
|
1157
1187
|
Ge as C,
|
|
1158
|
-
|
|
1188
|
+
ce as a,
|
|
1159
1189
|
ot as b
|
|
1160
1190
|
};
|