@cling-se/widget 0.22.0 → 0.22.3
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/dist/{AddClientCallout-CxbvK6ZG.js → AddClientCallout-Bk_RMqww.js} +11 -11
- package/dist/{AnswerModal-vTetGwVn.js → AnswerModal-BQ9VR89q.js} +4 -4
- package/dist/{AttachmentItem-DSHNRIq_.js → AttachmentItem-DnlOo6Ar.js} +11 -11
- package/dist/{BaseUpload-CWaM_bb7.js → BaseUpload-DCPt9YUo.js} +2 -2
- package/dist/{BlockMedia-B1T85G4R.js → BlockMedia-najJzMYF.js} +9 -9
- package/dist/{CCallout-BieMmWa4.js → CCallout-DCvCm65V.js} +1 -1
- package/dist/{CCurrencyDropdown-DKWtCUE_.js → CCurrencyDropdown-DuJxa77L.js} +3 -3
- package/dist/{CDropdownItem-pNNH9fV3.js → CDropdownItem-DyWrpOb-.js} +7 -7
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-B57OaS--.js → CFormField.vue_vue_type_script_setup_true_lang-CSMB_HdZ.js} +4 -4
- package/dist/{CPhoneFormat-CyrQRGmd.js → CPhoneFormat-BmGCMx5K.js} +1 -1
- package/dist/{CPhoneInput-BQHgpUCY.js → CPhoneInput-Cx3OiUWQ.js} +5 -5
- package/dist/{CPriceInput-DnFN-I6p.js → CPriceInput-BwBsHKnn.js} +2 -2
- package/dist/{CSelect-DB4-JxH8.js → CSelect-BlPNOr_g.js} +1 -1
- package/dist/{CSkeleton-DpRDxR6D.js → CSkeleton-DRbFIBZS.js} +1 -1
- package/dist/{ClientAutocomplete-BjwvkuJ-.js → ClientAutocomplete-DS08QQ5C.js} +7 -7
- package/dist/{ClientModal-oBN2VSio.js → ClientModal-DXtdxLj9.js} +184 -198
- package/dist/{ColorPicker-B5rSvXLV.js → ColorPicker-CeJ8YHt-.js} +1 -1
- package/dist/{CompanyModal-QrsUL6Et.js → CompanyModal-DzE3OIG0.js} +75 -80
- package/dist/{ContentWrapper-Yx-KMsfH.js → ContentWrapper-CBd8srOJ.js} +15 -15
- package/dist/{CoverBlockSettings-C8giTiEZ.js → CoverBlockSettings-D9K1BnJk.js} +7 -7
- package/dist/{DocAnswer-Djyhwfrp.js → DocAnswer-By6hA4eC.js} +2 -2
- package/dist/{DocDetails-Dv6noPvB.js → DocDetails-C-ZRzvrA.js} +4 -4
- package/dist/{DocForm-BFHchJ6w.js → DocForm-DvT2fhEM.js} +248 -266
- package/dist/{DocFormSend-K2rbjklj.js → DocFormSend-CKeZn--O.js} +2 -2
- package/dist/{DocLinks-DpUl89XR.js → DocLinks-w8pfegGu.js} +2 -2
- package/dist/{DocModalBase-BlTZ8CY3.js → DocModalBase-B2IgIy_9.js} +1 -1
- package/dist/{DocPrint-Bmfl4Abk.js → DocPrint-eUTCgg8g.js} +1 -1
- package/dist/{DocReceipt-3wi5YXqR.js → DocReceipt-BD0WVtId.js} +2 -2
- package/dist/{DocSendReminder-CHqgC_wM.js → DocSendReminder-EjkK-9rh.js} +1 -1
- package/dist/{DocTextEditor-BGzwRwjt.js → DocTextEditor-U8ZdSDAr.js} +10 -10
- package/dist/{DocTimeline-BG7ldFgR.js → DocTimeline-D30HTE_o.js} +8 -8
- package/dist/{DocumentClient-CLCAh4lI.js → DocumentClient-BBEmQHMi.js} +5 -5
- package/dist/{DocumentLayout-DHSEYClM.js → DocumentLayout-BLeVh3wu.js} +5 -5
- package/dist/{DocumentLogotype-0jH2-sr7.js → DocumentLogotype-BauCUJ8j.js} +29 -33
- package/dist/{DocumentVoided-BAS8mATO.js → DocumentVoided-CfQdzPJa.js} +1 -1
- package/dist/{EmbedInput-DnSz1tbL.js → EmbedInput-D4QrX2Gm.js} +3 -3
- package/dist/{EmbedSettings-BQ1kKupC.js → EmbedSettings-DVZLouo9.js} +3 -3
- package/dist/{ErrorCallout-XMtdcNvE.js → ErrorCallout-BiLLFJek.js} +1 -1
- package/dist/{FilePreviewModal-Bv28RVrN.js → FilePreviewModal-BusalEt3.js} +20 -20
- package/dist/{Flag-CcF7qtHi.js → Flag-BxkDKlP4.js} +1 -1
- package/dist/{HeaderSettings-SKEJyM9y.js → HeaderSettings-DIWro6fR.js} +9 -9
- package/dist/{ImageSelectModal-BNXs_Rfh.js → ImageSelectModal-CL52MP8Z.js} +3 -3
- package/dist/{ImageUploadWrapper-BmlB0qHZ.js → ImageUploadWrapper-2gjzeenp.js} +2 -2
- package/dist/{Index-mcDMCki9.js → Index--EACh-v2.js} +276 -301
- package/dist/{Index-BNetDL7G.js → Index-4FHzyecP.js} +4 -4
- package/dist/{Index-Bxi4pinD.js → Index-BPuHAiJR.js} +3 -3
- package/dist/Index-BcIg-95c.js +342 -0
- package/dist/{Index-LNHTL5EH.js → Index-Bge6Bknk.js} +1 -1
- package/dist/{Index-B1mvOHsr.js → Index-BkMzG22-.js} +5 -5
- package/dist/{Index-Bz6vrP4D.js → Index-Bn8_-gUC.js} +4 -4
- package/dist/{Index-BS1J5b8c.js → Index-CJZBOrgw.js} +3 -3
- package/dist/{Index-Ca6-XJ1q.js → Index-CQzTAmTM.js} +14 -14
- package/dist/{Index-CQSkYi57.js → Index-CSNH8muS.js} +6 -6
- package/dist/{Index-CYjEFdMF.js → Index-CZljdL3w.js} +2 -2
- package/dist/{Index-ec9osPpw.js → Index-CcKgWOG7.js} +4 -4
- package/dist/{Index-CVoJGfTj.js → Index-CcZ48rLC.js} +2 -2
- package/dist/{Index-CfpNMWEI.js → Index-Cen56jNO.js} +4 -4
- package/dist/{Index-Ra_-tX11.js → Index-Cq90eS9E.js} +7 -7
- package/dist/{Index-B_R1p7cp.js → Index-CsLEoK-y.js} +1 -1
- package/dist/{Index-BRIv1n05.js → Index-CtRE9_p3.js} +4 -4
- package/dist/{Index-C2Jql1QC.js → Index-CuaK6bnN.js} +8 -8
- package/dist/{Index-DRadSzmh.js → Index-DMEoYhVr.js} +3 -3
- package/dist/{Index-DU19comM.js → Index-DO0vFJCv.js} +6 -6
- package/dist/{Index-CDdxLKdQ.js → Index-DQMuQ2js.js} +4 -4
- package/dist/{Index-B4EqZ9op.js → Index-DYkWCXz0.js} +5 -5
- package/dist/Index-DdSDsjP8.js +4 -0
- package/dist/{Index-GmMgg4ZI.js → Index-DdfunbXo.js} +7 -7
- package/dist/{Index-BS-ERsZ7.js → Index-DjMRBozk.js} +9 -9
- package/dist/{Index-BLC_eYvf.js → Index-DxWtScO2.js} +2 -2
- package/dist/{Index-Dz3beMLO.js → Index-FSjvo5ex.js} +8 -8
- package/dist/{Index-Coef67Wb.js → Index-N-TCcUiZ.js} +5 -5
- package/dist/{Index-BDW4tvrc.js → Index-bKQSbdxw.js} +2 -2
- package/dist/{Index-B8soD6pI.js → Index-jXUY8fSe.js} +2 -2
- package/dist/{Index-Bd3gjqXz.js → Index-m_q4QkfZ.js} +4 -4
- package/dist/{Index-C9k2n-HK.js → Index-qcFSIYDB.js} +4 -4
- package/dist/{Index-DquGwrE6.js → Index-qzpjRFUp.js} +37 -40
- package/dist/{Index-C6r2p8Qd.js → Index-u00PSjX2.js} +3 -3
- package/dist/{Index.vue_vue_type_script_lang-DOtAXSQl.js → Index.vue_vue_type_script_lang-MIgEx7dJ.js} +2 -2
- package/dist/{InputToggleRow-DH7USYPf.js → InputToggleRow-Dv5l7HsH.js} +1 -1
- package/dist/{ManualPopover-JDRhdC8G.js → ManualPopover-B-VE0HPu.js} +1 -1
- package/dist/{MediaWrapper-DdbmCwGw.js → MediaWrapper-m5wr6sG8.js} +3 -3
- package/dist/{NotBindingText-CwV-MkgL.js → NotBindingText-JKkfTNyO.js} +2 -2
- package/dist/{PackageGroup-CH-8hyAF.js → PackageGroup-CXZ0Lsz9.js} +5 -5
- package/dist/{PdfTerms-BBeN_k6I.js → PdfTerms-Cb_px74_.js} +2 -2
- package/dist/{PdfViewer-Du_M79jv.js → PdfViewer-1OOdNeVT.js} +2 -2
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-BKJdTPrg.js → PlainHtml.vue_vue_type_script_setup_true_lang-C12eZIH1.js} +1 -1
- package/dist/{PriceHeader-Be2QwWzs.js → PriceHeader-BzPZtNYJ.js} +7 -7
- package/dist/SearchApi-CBg1KY-O.js +156 -0
- package/dist/{SendForm-BIIwVZwY.js → SendForm-C-VTNpve.js} +540 -528
- package/dist/{Setup-DBbHXz4_.js → Setup-BmlGbBrM.js} +1 -1
- package/dist/{SmartList-C2JUKK2W.js → SmartList-B2ZpLA8V.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-CzrvSsIg.js → Sortable.vue_vue_type_script_setup_true_lang-CcTjzIyK.js} +1 -1
- package/dist/TermsSettings-0V_cVRPI.js +198 -0
- package/dist/{ThemeColorRow-7KF7icN8.js → ThemeColorRow-BwSFCUGN.js} +3 -3
- package/dist/{ToggleBinding-w8lNunzO.js → ToggleBinding-sJX5jVgf.js} +4 -4
- package/dist/{UploadModal-BRdimOyC.js → UploadModal-CvFB_11W.js} +2 -2
- package/dist/{VideoPlayerInput-BHmr7HvX.js → VideoPlayerInput-CmjzzRDj.js} +4 -4
- package/dist/{VideoPlayerSettings-fI8gpjks.js → VideoPlayerSettings-TD3__Ui0.js} +2 -2
- package/dist/{VideoSelectModal-Beq5yE0M.js → VideoSelectModal-DWohaFSL.js} +3 -3
- package/dist/{focusDrawerMixin-vhY6JO7g.js → focusDrawerMixin-CReYj2SY.js} +1 -1
- package/dist/{formDrawerState-ChHVYfc3.js → formDrawerState-Cf5itKVM.js} +1 -1
- package/dist/{fortnoxTheme-BGyYnb8i.js → fortnoxTheme-IeycOfWB.js} +1 -1
- package/dist/{helpers-Dw4CluFv.js → helpers-CUo71XPG.js} +1 -1
- package/dist/{index-DihGX5od.js → index-BEKHEkFO.js} +8 -8
- package/dist/{index-C-tsPusW.js → index-CFm8CNEc.js} +1 -1
- package/dist/{index-BUPqyA87.js → index-CrQzVsCT.js} +1 -1
- package/dist/{index-syUJ22zc.js → index-DCq6gjGI.js} +8 -7
- package/dist/{index-BcnDsk0Z.js → index-DzyXygjd.js} +1 -1
- package/dist/{index-CPfrJsi9.js → index-FsgsKPqg.js} +1 -1
- package/dist/{index-DJYVhEQt.js → index-MMzIZOFI.js} +3 -3
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +141 -141
- package/dist/{main-BBhJGb7I.js → main-D4afcIIy.js} +3821 -3888
- package/dist/{mapFormMixin-CCKubywa.js → mapFormMixin-DcTZ2NvY.js} +3 -4
- package/dist/{omit-Cdd54eFA.js → omit-Bq20xrhI.js} +1 -1
- package/dist/{splitpanes-nCfEUpmu.js → splitpanes-EHoHU6iQ.js} +1 -1
- package/dist/{template-B-Ds8x_U.js → template-CDxtqtv6.js} +1 -1
- package/dist/{tippy.esm-DdYqbHFh.js → tippy.esm-D8I3Noyw.js} +5 -5
- package/dist/{useTermsModal-Z_pZQ4H2.js → useTermsModal-DEiH4ghd.js} +4 -4
- package/dist/{utils-C3tvmZHk.js → utils-DvezupAT.js} +1 -1
- package/dist/{validation-CWxbj-wT.js → validation-ERFxig5z.js} +2 -2
- package/dist/widget.css +1 -1
- package/package.json +1 -1
- package/dist/Index-BbEj20KG.js +0 -364
- package/dist/Index-aOBMRrRj.js +0 -4
- package/dist/SearchApi-dNunyqch.js +0 -136
- package/dist/TermsSettings-BZBWd3c9.js +0 -224
- package/dist/publicSenderState-LkIY-kEl.js +0 -21
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { C as W } from "./ClientAutocomplete-
|
|
2
|
-
import { _ as
|
|
3
|
-
import { w as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { C as
|
|
1
|
+
import { C as W } from "./ClientAutocomplete-DS08QQ5C.js";
|
|
2
|
+
import { _ as F, b7 as j, d as h, o as u, v as L, j as i, b8 as H, an as N, y, U as Z, ai as G, a as B, ar as E, aa as K, ax as J, b as g, f as a, c as b, e as v, t as r, w as n, F as I, q as z, s as C, m as Y, aq as Q, af as k, aH as X, b9 as _, g as D } from "./main-D4afcIIy.js";
|
|
3
|
+
import { w as P, C as x, a as ee } from "./CDropdownItem-DyWrpOb-.js";
|
|
4
|
+
import { _ as te } from "./CFormField.vue_vue_type_script_setup_true_lang-CSMB_HdZ.js";
|
|
5
|
+
import { C as oe } from "./CPhoneInput-Cx3OiUWQ.js";
|
|
6
6
|
import { i as V, a as A } from "./validations-ohsJ5nBz.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import { a as $, r as
|
|
9
|
-
import { o as
|
|
10
|
-
const
|
|
7
|
+
import { u as ae } from "./index-FsgsKPqg.js";
|
|
8
|
+
import { a as $, r as ne, e as le } from "./index-CFm8CNEc.js";
|
|
9
|
+
import { o as ie } from "./omit-Bq20xrhI.js";
|
|
10
|
+
const se = {
|
|
11
11
|
name: "CRadio",
|
|
12
12
|
mixins: [j]
|
|
13
|
-
},
|
|
14
|
-
function
|
|
15
|
-
return
|
|
13
|
+
}, re = ["disabled"], de = ["disabled", "required", "name", "value"], me = { class: "control-label" };
|
|
14
|
+
function ue(e, t, s, p, c, l) {
|
|
15
|
+
return u(), h("label", {
|
|
16
16
|
ref: "label",
|
|
17
17
|
class: y([[`is-${e.size}`, { "is-disabled": e.disabled }], "b-radio radio"]),
|
|
18
18
|
disabled: e.disabledOrUndefined,
|
|
19
|
-
onClick: t[2] || (t[2] = (...
|
|
20
|
-
onKeydown: t[3] || (t[3] = G(N((
|
|
19
|
+
onClick: t[2] || (t[2] = (...f) => e.focus && e.focus(...f)),
|
|
20
|
+
onKeydown: t[3] || (t[3] = G(N((f) => e.$refs.label.click(), ["prevent"]), ["enter"]))
|
|
21
21
|
}, [
|
|
22
22
|
L(i("input", {
|
|
23
23
|
ref: "input",
|
|
24
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
24
|
+
"onUpdate:modelValue": t[0] || (t[0] = (f) => e.computedValue = f),
|
|
25
25
|
disabled: e.disabledOrUndefined,
|
|
26
26
|
required: e.requiredOrUndefined,
|
|
27
27
|
name: e.name,
|
|
@@ -29,18 +29,18 @@ function ce(e, t, s, u, c, n) {
|
|
|
29
29
|
type: "radio",
|
|
30
30
|
onClick: t[1] || (t[1] = N(() => {
|
|
31
31
|
}, ["stop"]))
|
|
32
|
-
}, null, 8,
|
|
32
|
+
}, null, 8, de), [
|
|
33
33
|
[H, e.computedValue]
|
|
34
34
|
]),
|
|
35
35
|
i("span", {
|
|
36
36
|
class: y([`is-${e.type}`, "check"])
|
|
37
37
|
}, null, 2),
|
|
38
|
-
i("span",
|
|
38
|
+
i("span", me, [
|
|
39
39
|
Z(e.$slots, "default")
|
|
40
40
|
])
|
|
41
|
-
], 42,
|
|
41
|
+
], 42, re);
|
|
42
42
|
}
|
|
43
|
-
const
|
|
43
|
+
const pe = /* @__PURE__ */ F(se, [["render", ue]]), ce = {
|
|
44
44
|
sv: {
|
|
45
45
|
title: "Mottagare",
|
|
46
46
|
updateButton: "Spara mottagare",
|
|
@@ -163,23 +163,23 @@ const fe = /* @__PURE__ */ z(de, [["render", ce]]), ge = {
|
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
}, { mapFields:
|
|
166
|
+
}, { mapFields: fe } = E({
|
|
167
167
|
getterType: "forms/getField",
|
|
168
168
|
mutationType: "forms/updateField"
|
|
169
|
-
}),
|
|
169
|
+
}), ge = {
|
|
170
170
|
name: "FormClient",
|
|
171
171
|
i18nOptions: {
|
|
172
172
|
namespaces: "formClient",
|
|
173
|
-
messages:
|
|
173
|
+
messages: ce
|
|
174
174
|
},
|
|
175
175
|
components: {
|
|
176
176
|
ClientAutocomplete: W,
|
|
177
177
|
CCheckbox: K,
|
|
178
|
-
CDropdown:
|
|
179
|
-
CDropdownItem:
|
|
180
|
-
CField:
|
|
181
|
-
CPhoneInput:
|
|
182
|
-
CRadio:
|
|
178
|
+
CDropdown: ee,
|
|
179
|
+
CDropdownItem: x,
|
|
180
|
+
CField: te,
|
|
181
|
+
CPhoneInput: oe,
|
|
182
|
+
CRadio: pe
|
|
183
183
|
},
|
|
184
184
|
emits: [
|
|
185
185
|
"setClient",
|
|
@@ -188,7 +188,7 @@ const fe = /* @__PURE__ */ z(de, [["render", ce]]), ge = {
|
|
|
188
188
|
"update:answer-method",
|
|
189
189
|
"submit"
|
|
190
190
|
],
|
|
191
|
-
mixins: [
|
|
191
|
+
mixins: [P],
|
|
192
192
|
props: {
|
|
193
193
|
requireReference: {
|
|
194
194
|
type: Boolean,
|
|
@@ -223,15 +223,11 @@ const fe = /* @__PURE__ */ z(de, [["render", ce]]), ge = {
|
|
|
223
223
|
signOptions: {
|
|
224
224
|
type: Array,
|
|
225
225
|
default: () => []
|
|
226
|
-
},
|
|
227
|
-
isPublicForm: {
|
|
228
|
-
type: Boolean,
|
|
229
|
-
default: !1
|
|
230
226
|
}
|
|
231
227
|
},
|
|
232
228
|
setup() {
|
|
233
229
|
return {
|
|
234
|
-
v$:
|
|
230
|
+
v$: ae()
|
|
235
231
|
};
|
|
236
232
|
},
|
|
237
233
|
validations() {
|
|
@@ -251,11 +247,11 @@ const fe = /* @__PURE__ */ z(de, [["render", ce]]), ge = {
|
|
|
251
247
|
required: $(this.requireReference && !this.isIndivid)
|
|
252
248
|
},
|
|
253
249
|
email: {
|
|
254
|
-
email:
|
|
250
|
+
email: le
|
|
255
251
|
}
|
|
256
252
|
} : {
|
|
257
253
|
name: {
|
|
258
|
-
required:
|
|
254
|
+
required: ne
|
|
259
255
|
},
|
|
260
256
|
orgNo: {
|
|
261
257
|
required: $(this.type === "company")
|
|
@@ -272,7 +268,7 @@ const fe = /* @__PURE__ */ z(de, [["render", ce]]), ge = {
|
|
|
272
268
|
};
|
|
273
269
|
},
|
|
274
270
|
computed: {
|
|
275
|
-
...
|
|
271
|
+
...fe({
|
|
276
272
|
id: "endCustomer.id",
|
|
277
273
|
type: "endCustomer.customerType",
|
|
278
274
|
name: "endCustomer.name",
|
|
@@ -335,41 +331,41 @@ const fe = /* @__PURE__ */ z(de, [["render", ce]]), ge = {
|
|
|
335
331
|
}
|
|
336
332
|
},
|
|
337
333
|
mounted() {
|
|
338
|
-
var t, s,
|
|
334
|
+
var t, s, p;
|
|
339
335
|
const e = this.$refs[this.inputFocusOnMount] || this.$refs.name;
|
|
340
|
-
(
|
|
336
|
+
(p = (s = (t = e == null ? void 0 : e.$el) == null ? void 0 : t.nextElementSibling) == null ? void 0 : s.querySelector("input")) == null || p.focus();
|
|
341
337
|
},
|
|
342
338
|
methods: {
|
|
343
339
|
validateForm() {
|
|
344
340
|
return this.v$.$touch(), this.v$.$invalid ? !1 : (this.$emit("submit", !0), !0);
|
|
345
341
|
}
|
|
346
342
|
}
|
|
347
|
-
},
|
|
343
|
+
}, he = { class: "form-client" }, ve = { class: "space-between flex flex-wrap items-center pb-6" }, ye = {
|
|
348
344
|
class: "flex-grow",
|
|
349
345
|
style: { "font-weight": "600", "font-size": "20px" }
|
|
350
|
-
},
|
|
346
|
+
}, be = { class: "type-toggle" }, Ce = { style: { "line-height": "1.25", padding: "4px 0" } }, we = { style: { "font-size": "12px", opacity: "0.7" } }, ke = { style: { "line-height": "1.25", padding: "4px 0" } }, $e = { style: { "font-size": "12px", opacity: "0.7" } }, Ve = {
|
|
351
347
|
class: "flex items-center justify-center",
|
|
352
348
|
style: { "margin-bottom": "calc(2.5 * var(--rem))" }
|
|
353
|
-
},
|
|
349
|
+
}, Ne = { class: "type-toggle" }, Me = { key: 0 }, Oe = {
|
|
354
350
|
key: 0,
|
|
355
351
|
class: "dropdown-field-wrapper flex min-w-0 flex-col"
|
|
356
|
-
},
|
|
352
|
+
}, Se = { class: "my-1 text-sm text-gray-600" }, Ie = { class: "py-1 leading-5" }, ze = { class: "text-xs opacity-70" }, Fe = { style: { "line-height": "1.25", padding: "4px 0" } }, Re = { style: { "font-size": "12px", opacity: "0.7" } }, Ue = {
|
|
357
353
|
key: 1,
|
|
358
354
|
class: "dropdown-field-wrapper flex min-w-0 flex-col"
|
|
359
|
-
},
|
|
355
|
+
}, qe = { class: "my-1 text-sm text-gray-600" }, De = { class: "max-w-[calc(16_*_var(--rem))] py-1 leading-5" }, Ae = { class: "truncate text-xs opacity-70" }, Be = { style: { "line-height": "1.25", padding: "4px 0" } }, Ee = {
|
|
360
356
|
class: "max-w-[calc(12_*_var(--rem))] truncate",
|
|
361
357
|
style: { "font-size": "12px", opacity: "0.7", "text-wrap": "wrap" }
|
|
362
|
-
},
|
|
363
|
-
function
|
|
364
|
-
const
|
|
365
|
-
return
|
|
366
|
-
s.simpleForm ? (
|
|
358
|
+
}, Pe = { style: { "margin-top": "calc(3 * var(--rem))" } };
|
|
359
|
+
function Te(e, t, s, p, c, l) {
|
|
360
|
+
const f = g("ClientAutocomplete"), d = g("CField"), m = g("CInput"), M = g("Animation"), R = g("CPhoneInput"), w = g("CButton"), O = g("CDropdownItem"), S = g("CDropdown"), T = g("CCheckbox"), U = g("CRadio");
|
|
361
|
+
return u(), h("div", he, [
|
|
362
|
+
s.simpleForm ? (u(), h("form", {
|
|
367
363
|
key: 0,
|
|
368
|
-
onSubmit: t[9] || (t[9] = N((...o) =>
|
|
364
|
+
onSubmit: t[9] || (t[9] = N((...o) => l.validateForm && l.validateForm(...o), ["prevent"]))
|
|
369
365
|
}, [
|
|
370
|
-
i("div",
|
|
371
|
-
i("div",
|
|
372
|
-
i("div",
|
|
366
|
+
i("div", ve, [
|
|
367
|
+
i("div", ye, r(e.$t("_common:recipient").capitalize()), 1),
|
|
368
|
+
i("div", be, [
|
|
373
369
|
i("div", {
|
|
374
370
|
class: y([{ active: e.type === "individual" }, "type-toggle-button"]),
|
|
375
371
|
onClick: t[0] || (t[0] = (o) => e.type = "individual")
|
|
@@ -381,18 +377,18 @@ function je(e, t, s, u, c, n) {
|
|
|
381
377
|
])
|
|
382
378
|
]),
|
|
383
379
|
a(d, {
|
|
384
|
-
label:
|
|
385
|
-
validator:
|
|
386
|
-
messages:
|
|
380
|
+
label: l.isIndivid ? e.$t("_common:name").capitalize() : e.$t("_common:company").capitalize(),
|
|
381
|
+
validator: p.v$.name,
|
|
382
|
+
messages: l.messages.name,
|
|
387
383
|
"label-position": "inside",
|
|
388
384
|
style: { "margin-bottom": "calc(1.5 * var(--rem))" }
|
|
389
385
|
}, {
|
|
390
|
-
default:
|
|
391
|
-
a(
|
|
386
|
+
default: n(() => [
|
|
387
|
+
a(f, {
|
|
392
388
|
ref: "name",
|
|
393
389
|
modelValue: e.name,
|
|
394
390
|
"onUpdate:modelValue": t[2] || (t[2] = (o) => e.name = o),
|
|
395
|
-
placeholder:
|
|
391
|
+
placeholder: l.isIndivid ? e.$t("placeholders.name") : e.$t("placeholders.companyName"),
|
|
396
392
|
"search-enabled": s.searchEnabled,
|
|
397
393
|
"show-loading": !0,
|
|
398
394
|
onSetClient: t[3] || (t[3] = (o) => e.$emit("setClient", o))
|
|
@@ -401,16 +397,16 @@ function je(e, t, s, u, c, n) {
|
|
|
401
397
|
_: 1
|
|
402
398
|
}, 8, ["label", "validator", "messages"]),
|
|
403
399
|
a(M, null, {
|
|
404
|
-
default:
|
|
405
|
-
|
|
400
|
+
default: n(() => [
|
|
401
|
+
l.isIndivid ? v("", !0) : (u(), b(d, {
|
|
406
402
|
key: 0,
|
|
407
|
-
validator:
|
|
408
|
-
messages:
|
|
403
|
+
validator: p.v$.reference,
|
|
404
|
+
messages: l.messages.reference,
|
|
409
405
|
label: e.$t("reference").capitalize(),
|
|
410
406
|
"label-position": "inside",
|
|
411
407
|
class: "pb-4"
|
|
412
408
|
}, {
|
|
413
|
-
default:
|
|
409
|
+
default: n(() => [
|
|
414
410
|
a(m, {
|
|
415
411
|
ref: "reference",
|
|
416
412
|
modelValue: e.reference,
|
|
@@ -424,13 +420,13 @@ function je(e, t, s, u, c, n) {
|
|
|
424
420
|
_: 1
|
|
425
421
|
}),
|
|
426
422
|
a(d, {
|
|
427
|
-
validator:
|
|
428
|
-
messages:
|
|
423
|
+
validator: p.v$.email,
|
|
424
|
+
messages: l.messages.email,
|
|
429
425
|
label: e.$t("_common:email").capitalize(),
|
|
430
426
|
"label-position": "inside",
|
|
431
427
|
style: { "margin-bottom": "calc(1.5 * var(--rem))" }
|
|
432
428
|
}, {
|
|
433
|
-
default:
|
|
429
|
+
default: n(() => [
|
|
434
430
|
a(m, {
|
|
435
431
|
ref: "email",
|
|
436
432
|
modelValue: e.email,
|
|
@@ -452,12 +448,12 @@ function je(e, t, s, u, c, n) {
|
|
|
452
448
|
"default-region": e.companyRegion,
|
|
453
449
|
"label-position": "inside"
|
|
454
450
|
}, null, 8, ["modelValue", "region", "label", "placeholder", "default-region"]),
|
|
455
|
-
s.documentRole ? (
|
|
451
|
+
s.documentRole ? (u(), b(S, {
|
|
456
452
|
key: 0,
|
|
457
453
|
expanded: "",
|
|
458
454
|
style: { "margin-bottom": "calc(1 * var(--rem))", "margin-top": "calc(0.75 * var(--rem))" }
|
|
459
455
|
}, {
|
|
460
|
-
trigger:
|
|
456
|
+
trigger: n(() => [
|
|
461
457
|
a(w, {
|
|
462
458
|
"dropdown-icon": !0,
|
|
463
459
|
"icon-props": {
|
|
@@ -469,28 +465,28 @@ function je(e, t, s, u, c, n) {
|
|
|
469
465
|
pattern: "secondary",
|
|
470
466
|
style: { width: "100%" }
|
|
471
467
|
}, {
|
|
472
|
-
default:
|
|
473
|
-
i("div",
|
|
468
|
+
default: n(() => [
|
|
469
|
+
i("div", Ce, [
|
|
474
470
|
i("div", null, r(e.$t(`_common:documentRole.${s.documentRole}.description`)), 1),
|
|
475
|
-
i("div",
|
|
471
|
+
i("div", we, r(e.$t(`_common:documentRole.${s.documentRole}.label`)), 1)
|
|
476
472
|
])
|
|
477
473
|
]),
|
|
478
474
|
_: 1
|
|
479
475
|
}, 8, ["icon-left"])
|
|
480
476
|
]),
|
|
481
|
-
default:
|
|
482
|
-
(
|
|
477
|
+
default: n(() => [
|
|
478
|
+
(u(), h(I, null, z(["signee", "recipient", "approver"], (o) => a(O, {
|
|
483
479
|
key: o,
|
|
484
480
|
"icon-left": o === "signee" ? "pen-tool" : "eye",
|
|
485
481
|
"icon-props": {
|
|
486
482
|
stroke: "hsl(0, 0%, 50%)"
|
|
487
483
|
},
|
|
488
|
-
onClick: (
|
|
484
|
+
onClick: (q) => e.$emit("update:document-role", o)
|
|
489
485
|
}, {
|
|
490
|
-
default:
|
|
491
|
-
i("div",
|
|
486
|
+
default: n(() => [
|
|
487
|
+
i("div", ke, [
|
|
492
488
|
i("div", null, r(e.$t(`_common:documentRole.${o}.description`)), 1),
|
|
493
|
-
i("div",
|
|
489
|
+
i("div", $e, r(e.$t(`_common:documentRole.${o}.label`)), 1)
|
|
494
490
|
])
|
|
495
491
|
]),
|
|
496
492
|
_: 2
|
|
@@ -505,7 +501,7 @@ function je(e, t, s, u, c, n) {
|
|
|
505
501
|
"icon-left": "arrow-right",
|
|
506
502
|
onClick: t[8] || (t[8] = (o) => e.$emit("show-more"))
|
|
507
503
|
}, {
|
|
508
|
-
default:
|
|
504
|
+
default: n(() => [
|
|
509
505
|
C(r(e.$t("showMore").capitalize()), 1)
|
|
510
506
|
]),
|
|
511
507
|
_: 1
|
|
@@ -519,17 +515,17 @@ function je(e, t, s, u, c, n) {
|
|
|
519
515
|
class: "mt-4",
|
|
520
516
|
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)" }
|
|
521
517
|
}, {
|
|
522
|
-
default:
|
|
518
|
+
default: n(() => [
|
|
523
519
|
C(r(e.$t("updateButton")), 1)
|
|
524
520
|
]),
|
|
525
521
|
_: 1
|
|
526
522
|
}, 8, ["loading"])
|
|
527
|
-
], 32)) : (
|
|
523
|
+
], 32)) : (u(), h("div", {
|
|
528
524
|
key: 1,
|
|
529
525
|
class: y({ "column-only": e.windowWidth <= 600 })
|
|
530
526
|
}, [
|
|
531
|
-
i("div",
|
|
532
|
-
i("div",
|
|
527
|
+
i("div", Ve, [
|
|
528
|
+
i("div", Ne, [
|
|
533
529
|
i("div", {
|
|
534
530
|
class: y([{ active: e.type === "individual" }, "type-toggle-button"]),
|
|
535
531
|
onClick: t[10] || (t[10] = (o) => e.type = "individual")
|
|
@@ -544,20 +540,20 @@ function je(e, t, s, u, c, n) {
|
|
|
544
540
|
class: "flex",
|
|
545
541
|
grouped: ""
|
|
546
542
|
}, {
|
|
547
|
-
default:
|
|
543
|
+
default: n(() => [
|
|
548
544
|
a(d, {
|
|
549
|
-
label:
|
|
550
|
-
validator:
|
|
551
|
-
messages:
|
|
545
|
+
label: l.isIndivid ? e.$t("_common:name").capitalize() : e.$t("_common:company").capitalize(),
|
|
546
|
+
validator: p.v$.name,
|
|
547
|
+
messages: l.messages.name,
|
|
552
548
|
"label-position": "inside",
|
|
553
549
|
expanded: ""
|
|
554
550
|
}, {
|
|
555
|
-
default:
|
|
556
|
-
a(
|
|
551
|
+
default: n(() => [
|
|
552
|
+
a(f, {
|
|
557
553
|
ref: "name",
|
|
558
554
|
modelValue: e.name,
|
|
559
555
|
"onUpdate:modelValue": t[12] || (t[12] = (o) => e.name = o),
|
|
560
|
-
placeholder:
|
|
556
|
+
placeholder: l.isIndivid ? e.$t("placeholders.name") : e.$t("placeholders.companyName"),
|
|
561
557
|
"show-loading": !0,
|
|
562
558
|
"search-enabled": s.searchEnabled,
|
|
563
559
|
onSetClient: t[13] || (t[13] = (o) => e.$emit("setClient", o))
|
|
@@ -566,18 +562,18 @@ function je(e, t, s, u, c, n) {
|
|
|
566
562
|
_: 1
|
|
567
563
|
}, 8, ["label", "validator", "messages"]),
|
|
568
564
|
a(d, {
|
|
569
|
-
label:
|
|
570
|
-
validator:
|
|
571
|
-
messages:
|
|
565
|
+
label: l.isIndivid ? e.$t("_common:socialNo").capitalize() : e.$t("_common:orgNoShort").capitalize(),
|
|
566
|
+
validator: p.v$.orgNo,
|
|
567
|
+
messages: l.isIndivid ? l.messages.orgNo : l.messages.realOrgNo,
|
|
572
568
|
"label-position": "inside",
|
|
573
569
|
expanded: ""
|
|
574
570
|
}, {
|
|
575
|
-
default:
|
|
571
|
+
default: n(() => [
|
|
576
572
|
a(m, {
|
|
577
573
|
ref: "orgNo",
|
|
578
|
-
modelValue:
|
|
579
|
-
"onUpdate:modelValue": t[14] || (t[14] = (o) =>
|
|
580
|
-
placeholder:
|
|
574
|
+
modelValue: l.orgNo,
|
|
575
|
+
"onUpdate:modelValue": t[14] || (t[14] = (o) => l.orgNo = o),
|
|
576
|
+
placeholder: l.isIndivid ? e.$t("placeholders.socialNo") : e.$t("placeholders.orgNo")
|
|
581
577
|
}, null, 8, ["modelValue", "placeholder"])
|
|
582
578
|
]),
|
|
583
579
|
_: 1
|
|
@@ -586,16 +582,16 @@ function je(e, t, s, u, c, n) {
|
|
|
586
582
|
_: 1
|
|
587
583
|
}),
|
|
588
584
|
a(M, null, {
|
|
589
|
-
default:
|
|
590
|
-
e.type && !
|
|
585
|
+
default: n(() => [
|
|
586
|
+
e.type && !l.isIndivid ? (u(), b(d, {
|
|
591
587
|
key: 0,
|
|
592
|
-
validator:
|
|
593
|
-
messages:
|
|
588
|
+
validator: p.v$.reference,
|
|
589
|
+
messages: l.messages.reference,
|
|
594
590
|
label: e.$t("_common:reference").capitalize(),
|
|
595
591
|
"label-position": "inside",
|
|
596
592
|
class: "pb-4"
|
|
597
593
|
}, {
|
|
598
|
-
default:
|
|
594
|
+
default: n(() => [
|
|
599
595
|
a(m, {
|
|
600
596
|
ref: "reference",
|
|
601
597
|
modelValue: e.reference,
|
|
@@ -605,17 +601,17 @@ function je(e, t, s, u, c, n) {
|
|
|
605
601
|
]),
|
|
606
602
|
_: 1
|
|
607
603
|
}, 8, ["validator", "messages", "label"])) : v("", !0),
|
|
608
|
-
e.type && !
|
|
604
|
+
e.type && !l.isIndivid && e.feature("reverseVat") && e.feature("regionSE") ? (u(), b(d, {
|
|
609
605
|
key: 1,
|
|
610
606
|
style: { "padding-left": "0.5em", "margin-bottom": "calc(2 * var(--rem))" }
|
|
611
607
|
}, {
|
|
612
|
-
default:
|
|
608
|
+
default: n(() => [
|
|
613
609
|
a(T, {
|
|
614
610
|
modelValue: e.reverseVat,
|
|
615
611
|
"onUpdate:modelValue": t[16] || (t[16] = (o) => e.reverseVat = o),
|
|
616
612
|
size: "normal"
|
|
617
613
|
}, {
|
|
618
|
-
default:
|
|
614
|
+
default: n(() => [
|
|
619
615
|
C(r(e.$t("_common:vat.reverseVat")), 1)
|
|
620
616
|
]),
|
|
621
617
|
_: 1
|
|
@@ -630,16 +626,16 @@ function je(e, t, s, u, c, n) {
|
|
|
630
626
|
class: "flex",
|
|
631
627
|
grouped: ""
|
|
632
628
|
}, {
|
|
633
|
-
default:
|
|
629
|
+
default: n(() => [
|
|
634
630
|
a(d, {
|
|
635
|
-
validator:
|
|
636
|
-
messages:
|
|
631
|
+
validator: p.v$.email,
|
|
632
|
+
messages: l.messages.email,
|
|
637
633
|
label: e.$t("_common:email").capitalize(),
|
|
638
634
|
"label-position": "inside",
|
|
639
635
|
class: "flex-1",
|
|
640
636
|
expanded: ""
|
|
641
637
|
}, {
|
|
642
|
-
default:
|
|
638
|
+
default: n(() => [
|
|
643
639
|
a(m, {
|
|
644
640
|
ref: "email",
|
|
645
641
|
modelValue: e.email,
|
|
@@ -668,7 +664,7 @@ function je(e, t, s, u, c, n) {
|
|
|
668
664
|
label: e.$t("_common:address").capitalize(),
|
|
669
665
|
"label-position": "inside"
|
|
670
666
|
}, {
|
|
671
|
-
default:
|
|
667
|
+
default: n(() => [
|
|
672
668
|
a(m, {
|
|
673
669
|
ref: "street",
|
|
674
670
|
modelValue: e.street,
|
|
@@ -682,9 +678,9 @@ function je(e, t, s, u, c, n) {
|
|
|
682
678
|
class: "force-two flex",
|
|
683
679
|
grouped: ""
|
|
684
680
|
}, {
|
|
685
|
-
default:
|
|
681
|
+
default: n(() => [
|
|
686
682
|
a(d, { expanded: "" }, {
|
|
687
|
-
default:
|
|
683
|
+
default: n(() => [
|
|
688
684
|
a(m, {
|
|
689
685
|
ref: "zip",
|
|
690
686
|
modelValue: e.zip,
|
|
@@ -695,7 +691,7 @@ function je(e, t, s, u, c, n) {
|
|
|
695
691
|
_: 1
|
|
696
692
|
}),
|
|
697
693
|
a(d, { expanded: "" }, {
|
|
698
|
-
default:
|
|
694
|
+
default: n(() => [
|
|
699
695
|
a(m, {
|
|
700
696
|
ref: "city",
|
|
701
697
|
modelValue: e.city,
|
|
@@ -709,7 +705,7 @@ function je(e, t, s, u, c, n) {
|
|
|
709
705
|
_: 1
|
|
710
706
|
}),
|
|
711
707
|
a(d, { class: "flex" }, {
|
|
712
|
-
default:
|
|
708
|
+
default: n(() => [
|
|
713
709
|
a(U, {
|
|
714
710
|
modelValue: e.separateWorkAddress,
|
|
715
711
|
"onUpdate:modelValue": t[23] || (t[23] = (o) => e.separateWorkAddress = o),
|
|
@@ -718,7 +714,7 @@ function je(e, t, s, u, c, n) {
|
|
|
718
714
|
size: "small",
|
|
719
715
|
style: { "margin-bottom": "0.5em" }
|
|
720
716
|
}, {
|
|
721
|
-
default:
|
|
717
|
+
default: n(() => [
|
|
722
718
|
C(r(e.$t("seperateWorkAddress.false")), 1)
|
|
723
719
|
]),
|
|
724
720
|
_: 1
|
|
@@ -731,7 +727,7 @@ function je(e, t, s, u, c, n) {
|
|
|
731
727
|
size: "small",
|
|
732
728
|
style: { "margin-bottom": "0.5em" }
|
|
733
729
|
}, {
|
|
734
|
-
default:
|
|
730
|
+
default: n(() => [
|
|
735
731
|
C(r(e.$t("seperateWorkAddress.true")), 1)
|
|
736
732
|
]),
|
|
737
733
|
_: 1
|
|
@@ -740,12 +736,12 @@ function je(e, t, s, u, c, n) {
|
|
|
740
736
|
_: 1
|
|
741
737
|
}),
|
|
742
738
|
a(M, null, {
|
|
743
|
-
default:
|
|
744
|
-
e.type && e.separateWorkAddress ? (
|
|
739
|
+
default: n(() => [
|
|
740
|
+
e.type && e.separateWorkAddress ? (u(), h("div", Me, [
|
|
745
741
|
a(d, {
|
|
746
742
|
label: e.$t("_common:addressWork").capitalize() + ` ( ${e.$t("workAddressSubLabel")} )`
|
|
747
743
|
}, {
|
|
748
|
-
default:
|
|
744
|
+
default: n(() => [
|
|
749
745
|
a(m, {
|
|
750
746
|
ref: "workStreet",
|
|
751
747
|
modelValue: e.workStreet,
|
|
@@ -759,9 +755,9 @@ function je(e, t, s, u, c, n) {
|
|
|
759
755
|
class: "force-two flex",
|
|
760
756
|
grouped: ""
|
|
761
757
|
}, {
|
|
762
|
-
default:
|
|
758
|
+
default: n(() => [
|
|
763
759
|
a(d, { expanded: "" }, {
|
|
764
|
-
default:
|
|
760
|
+
default: n(() => [
|
|
765
761
|
a(m, {
|
|
766
762
|
ref: "workZip",
|
|
767
763
|
modelValue: e.workZip,
|
|
@@ -773,7 +769,7 @@ function je(e, t, s, u, c, n) {
|
|
|
773
769
|
_: 1
|
|
774
770
|
}),
|
|
775
771
|
a(d, { expanded: "" }, {
|
|
776
|
-
default:
|
|
772
|
+
default: n(() => [
|
|
777
773
|
a(m, {
|
|
778
774
|
ref: "workCity",
|
|
779
775
|
modelValue: e.workCity,
|
|
@@ -791,19 +787,19 @@ function je(e, t, s, u, c, n) {
|
|
|
791
787
|
]),
|
|
792
788
|
_: 1
|
|
793
789
|
}),
|
|
794
|
-
s.documentRole || s.answerMethod ? (
|
|
790
|
+
s.documentRole || s.answerMethod ? (u(), b(d, {
|
|
795
791
|
key: 0,
|
|
796
792
|
grouped: "",
|
|
797
793
|
class: "flex pt-4"
|
|
798
794
|
}, {
|
|
799
|
-
default:
|
|
800
|
-
s.documentRole ? (
|
|
801
|
-
i("div",
|
|
802
|
-
a(
|
|
795
|
+
default: n(() => [
|
|
796
|
+
s.documentRole ? (u(), h("div", Oe, [
|
|
797
|
+
i("div", Se, r(e.$t("_common:documentRole.title")), 1),
|
|
798
|
+
a(S, {
|
|
803
799
|
expanded: "",
|
|
804
800
|
style: { "margin-bottom": "calc(1 * var(--rem))" }
|
|
805
801
|
}, {
|
|
806
|
-
trigger:
|
|
802
|
+
trigger: n(() => [
|
|
807
803
|
a(w, {
|
|
808
804
|
"dropdown-icon": !0,
|
|
809
805
|
"icon-props": {
|
|
@@ -815,28 +811,28 @@ function je(e, t, s, u, c, n) {
|
|
|
815
811
|
pattern: "secondary",
|
|
816
812
|
expanded: ""
|
|
817
813
|
}, {
|
|
818
|
-
default:
|
|
819
|
-
i("div",
|
|
814
|
+
default: n(() => [
|
|
815
|
+
i("div", Ie, [
|
|
820
816
|
i("div", null, r(e.$t(`_common:documentRole.${s.documentRole}.description`)), 1),
|
|
821
|
-
i("div",
|
|
817
|
+
i("div", ze, r(e.$t(`_common:documentRole.${s.documentRole}.label`)), 1)
|
|
822
818
|
])
|
|
823
819
|
]),
|
|
824
820
|
_: 1
|
|
825
821
|
}, 8, ["icon-left"])
|
|
826
822
|
]),
|
|
827
|
-
default:
|
|
828
|
-
(
|
|
823
|
+
default: n(() => [
|
|
824
|
+
(u(), h(I, null, z(["signee", "recipient", "approver"], (o) => a(O, {
|
|
829
825
|
key: o,
|
|
830
826
|
"icon-left": o === "signee" ? "pen-tool" : "eye",
|
|
831
827
|
"icon-props": {
|
|
832
828
|
stroke: "hsl(0, 0%, 50%)"
|
|
833
829
|
},
|
|
834
|
-
onClick: (
|
|
830
|
+
onClick: (q) => e.$emit("update:document-role", o)
|
|
835
831
|
}, {
|
|
836
|
-
default:
|
|
837
|
-
i("div",
|
|
832
|
+
default: n(() => [
|
|
833
|
+
i("div", Fe, [
|
|
838
834
|
i("div", null, r(e.$t(`_common:documentRole.${o}.description`)), 1),
|
|
839
|
-
i("div",
|
|
835
|
+
i("div", Re, r(e.$t(`_common:documentRole.${o}.label`)), 1)
|
|
840
836
|
])
|
|
841
837
|
]),
|
|
842
838
|
_: 2
|
|
@@ -845,13 +841,13 @@ function je(e, t, s, u, c, n) {
|
|
|
845
841
|
_: 1
|
|
846
842
|
})
|
|
847
843
|
])) : v("", !0),
|
|
848
|
-
s.answerMethod ? (
|
|
849
|
-
i("div",
|
|
850
|
-
a(
|
|
844
|
+
s.answerMethod ? (u(), h("div", Ue, [
|
|
845
|
+
i("div", qe, r(e.$t("_common:signMethod.title")), 1),
|
|
846
|
+
a(S, {
|
|
851
847
|
expanded: "",
|
|
852
848
|
style: { "margin-bottom": "calc(1 * var(--rem))" }
|
|
853
849
|
}, {
|
|
854
|
-
trigger:
|
|
850
|
+
trigger: n(() => [
|
|
855
851
|
a(w, {
|
|
856
852
|
"dropdown-icon": !0,
|
|
857
853
|
class: "is-left",
|
|
@@ -859,27 +855,27 @@ function je(e, t, s, u, c, n) {
|
|
|
859
855
|
pattern: "secondary",
|
|
860
856
|
expanded: ""
|
|
861
857
|
}, {
|
|
862
|
-
default:
|
|
863
|
-
i("div",
|
|
858
|
+
default: n(() => [
|
|
859
|
+
i("div", De, [
|
|
864
860
|
i("div", null, r(e.$t(`signMethod.${s.answerMethod.accept}.title`)), 1),
|
|
865
|
-
i("div",
|
|
861
|
+
i("div", Ae, r(e.$t(`signMethod.${s.answerMethod.accept}.content`)), 1)
|
|
866
862
|
])
|
|
867
863
|
]),
|
|
868
864
|
_: 1
|
|
869
865
|
})
|
|
870
866
|
]),
|
|
871
|
-
default:
|
|
872
|
-
(
|
|
867
|
+
default: n(() => [
|
|
868
|
+
(u(!0), h(I, null, z(s.signOptions, (o) => (u(), b(O, {
|
|
873
869
|
key: o,
|
|
874
|
-
onClick: (
|
|
870
|
+
onClick: (q) => e.$emit("update:answer-method", {
|
|
875
871
|
...s.answerMethod,
|
|
876
872
|
accept: o
|
|
877
873
|
})
|
|
878
874
|
}, {
|
|
879
|
-
default:
|
|
880
|
-
i("div",
|
|
875
|
+
default: n(() => [
|
|
876
|
+
i("div", Be, [
|
|
881
877
|
i("div", null, r(e.$t(`signMethod.${o}.title`)), 1),
|
|
882
|
-
i("div",
|
|
878
|
+
i("div", Ee, r(e.$t(`signMethod.${o}.content`)), 1)
|
|
883
879
|
])
|
|
884
880
|
]),
|
|
885
881
|
_: 2
|
|
@@ -891,15 +887,15 @@ function je(e, t, s, u, c, n) {
|
|
|
891
887
|
]),
|
|
892
888
|
_: 1
|
|
893
889
|
})) : v("", !0),
|
|
894
|
-
i("div",
|
|
890
|
+
i("div", Pe, [
|
|
895
891
|
a(w, {
|
|
896
892
|
loading: e.isPosting,
|
|
897
893
|
type: "secondary",
|
|
898
894
|
wide: "",
|
|
899
895
|
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)" },
|
|
900
|
-
onClick:
|
|
896
|
+
onClick: l.validateForm
|
|
901
897
|
}, {
|
|
902
|
-
default:
|
|
898
|
+
default: n(() => [
|
|
903
899
|
C(r(e.$t("updateButton")), 1)
|
|
904
900
|
]),
|
|
905
901
|
_: 1
|
|
@@ -908,10 +904,10 @@ function je(e, t, s, u, c, n) {
|
|
|
908
904
|
], 2))
|
|
909
905
|
]);
|
|
910
906
|
}
|
|
911
|
-
const
|
|
907
|
+
const We = /* @__PURE__ */ F(ge, [["render", Te], ["__scopeId", "data-v-9dcf6643"]]), { mapFields: je } = E({
|
|
912
908
|
getterType: "forms/getField",
|
|
913
909
|
mutationType: "forms/updateField"
|
|
914
|
-
}),
|
|
910
|
+
}), Le = {
|
|
915
911
|
name: "ClientModal",
|
|
916
912
|
i18nOptions: {
|
|
917
913
|
namespaces: "clientModal",
|
|
@@ -943,10 +939,10 @@ const Le = /* @__PURE__ */ z(ve, [["render", je], ["__scopeId", "data-v-f7a3ed19
|
|
|
943
939
|
}
|
|
944
940
|
},
|
|
945
941
|
components: {
|
|
946
|
-
FormClient:
|
|
942
|
+
FormClient: We
|
|
947
943
|
},
|
|
948
944
|
emits: ["close"],
|
|
949
|
-
mixins: [
|
|
945
|
+
mixins: [P],
|
|
950
946
|
props: {
|
|
951
947
|
documentClientIndex: {
|
|
952
948
|
type: Number,
|
|
@@ -971,11 +967,6 @@ const Le = /* @__PURE__ */ z(ve, [["render", je], ["__scopeId", "data-v-f7a3ed19
|
|
|
971
967
|
removeFormValue: {
|
|
972
968
|
type: Function,
|
|
973
969
|
required: !0
|
|
974
|
-
},
|
|
975
|
-
// Optional prop if this modal is mounted from public form
|
|
976
|
-
isPublicForm: {
|
|
977
|
-
type: Boolean,
|
|
978
|
-
default: !1
|
|
979
970
|
}
|
|
980
971
|
},
|
|
981
972
|
data() {
|
|
@@ -993,7 +984,7 @@ const Le = /* @__PURE__ */ z(ve, [["render", je], ["__scopeId", "data-v-f7a3ed19
|
|
|
993
984
|
};
|
|
994
985
|
},
|
|
995
986
|
computed: {
|
|
996
|
-
...
|
|
987
|
+
...je({
|
|
997
988
|
endCustomer: "endCustomer"
|
|
998
989
|
}),
|
|
999
990
|
...Q("forms", {
|
|
@@ -1005,7 +996,7 @@ const Le = /* @__PURE__ */ z(ve, [["render", je], ["__scopeId", "data-v-f7a3ed19
|
|
|
1005
996
|
defaultClientType: "endCustomers/defaultClientType"
|
|
1006
997
|
}),
|
|
1007
998
|
validateOrgNo() {
|
|
1008
|
-
return !!
|
|
999
|
+
return !!this.feature("bankId");
|
|
1009
1000
|
},
|
|
1010
1001
|
existsOnDocument() {
|
|
1011
1002
|
return !!k(this.formData, `clients[${this.documentClientIndex}]`);
|
|
@@ -1024,7 +1015,7 @@ const Le = /* @__PURE__ */ z(ve, [["render", je], ["__scopeId", "data-v-f7a3ed19
|
|
|
1024
1015
|
{}
|
|
1025
1016
|
);
|
|
1026
1017
|
this.loadForm(t), ["endCustomer", "storedNewClient"].forEach(
|
|
1027
|
-
(
|
|
1018
|
+
(p) => this.$watch(p, {
|
|
1028
1019
|
deep: !0,
|
|
1029
1020
|
handler() {
|
|
1030
1021
|
this.hasChanged = !0;
|
|
@@ -1034,10 +1025,10 @@ const Le = /* @__PURE__ */ z(ve, [["render", je], ["__scopeId", "data-v-f7a3ed19
|
|
|
1034
1025
|
},
|
|
1035
1026
|
methods: {
|
|
1036
1027
|
...Y({
|
|
1037
|
-
saveClient:
|
|
1038
|
-
showMessage:
|
|
1028
|
+
saveClient: D.FORM_SUBMIT_ENDCUSTOMER,
|
|
1029
|
+
showMessage: D.SHOW_MESSAGE
|
|
1039
1030
|
}),
|
|
1040
|
-
omit:
|
|
1031
|
+
omit: ie,
|
|
1041
1032
|
loadForm(e = {}) {
|
|
1042
1033
|
this.storedNewClient = Object.assign(this.storedNewClient, e), this.endCustomer = _({
|
|
1043
1034
|
type: this.defaultClientType(),
|
|
@@ -1045,19 +1036,15 @@ const Le = /* @__PURE__ */ z(ve, [["render", je], ["__scopeId", "data-v-f7a3ed19
|
|
|
1045
1036
|
});
|
|
1046
1037
|
},
|
|
1047
1038
|
async onSave() {
|
|
1048
|
-
var
|
|
1039
|
+
var s, p;
|
|
1049
1040
|
this.isLoading = !0;
|
|
1050
|
-
let e = k(this.endCustomer, "id");
|
|
1051
|
-
if (!this.
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
}
|
|
1055
|
-
if (this.useSignOrder && !this.storedNewClient.signOrder) {
|
|
1056
|
-
const u = ((s = (t = this.formData) == null ? void 0 : t.clients) == null ? void 0 : s.reduce(
|
|
1057
|
-
(c, n) => n.signOrder > c ? n.signOrder : c,
|
|
1041
|
+
let e = k(this.endCustomer, "id"), t = !1;
|
|
1042
|
+
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 = ((p = (s = this.formData) == null ? void 0 : s.clients) == null ? void 0 : p.reduce(
|
|
1044
|
+
(l, f) => f.signOrder > l ? f.signOrder : l,
|
|
1058
1045
|
0
|
|
1059
1046
|
)) || 0;
|
|
1060
|
-
this.storedNewClient.signOrder =
|
|
1047
|
+
this.storedNewClient.signOrder = c + 1;
|
|
1061
1048
|
}
|
|
1062
1049
|
this.setFormValue({
|
|
1063
1050
|
key: `clients[${this.documentClientIndex}]`,
|
|
@@ -1106,21 +1093,21 @@ const Le = /* @__PURE__ */ z(ve, [["render", je], ["__scopeId", "data-v-f7a3ed19
|
|
|
1106
1093
|
});
|
|
1107
1094
|
}
|
|
1108
1095
|
}
|
|
1109
|
-
},
|
|
1110
|
-
function
|
|
1111
|
-
const
|
|
1112
|
-
return
|
|
1096
|
+
}, 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" };
|
|
1097
|
+
function Ze(e, t, s, p, c, l) {
|
|
1098
|
+
const f = g("CButton"), d = g("FormClient");
|
|
1099
|
+
return u(), h("div", {
|
|
1113
1100
|
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",
|
|
1114
|
-
onClickPassive: t[5] || (t[5] = N((...m) =>
|
|
1101
|
+
onClickPassive: t[5] || (t[5] = N((...m) => l.close && l.close(...m), ["self"]))
|
|
1115
1102
|
}, [
|
|
1116
|
-
i("div",
|
|
1117
|
-
a(
|
|
1103
|
+
i("div", He, [
|
|
1104
|
+
a(f, {
|
|
1118
1105
|
class: y([c.showMore ? "" : "sm:!hidden", "z-2 absolute right-4 top-4"]),
|
|
1119
1106
|
pattern: "tertiary",
|
|
1120
1107
|
type: "none",
|
|
1121
1108
|
circle: "",
|
|
1122
1109
|
icon: "x",
|
|
1123
|
-
onClick:
|
|
1110
|
+
onClick: l.close
|
|
1124
1111
|
}, null, 8, ["class", "onClick"]),
|
|
1125
1112
|
a(d, {
|
|
1126
1113
|
"document-role": c.storedNewClient.documentRole,
|
|
@@ -1140,22 +1127,21 @@ function Ke(e, t, s, u, c, n) {
|
|
|
1140
1127
|
"simple-form": !c.showMore,
|
|
1141
1128
|
"input-focus-on-mount": s.inputFocusOnMount,
|
|
1142
1129
|
"sign-options": s.signOptions,
|
|
1143
|
-
"validate-org-no":
|
|
1144
|
-
"is-public-form": s.isPublicForm,
|
|
1130
|
+
"validate-org-no": l.validateOrgNo,
|
|
1145
1131
|
class: y([[c.showMore ? "w-[520px]" : "w-[360px]"], "max-w-full p-0"]),
|
|
1146
|
-
onSetClient: t[2] || (t[2] = (m) =>
|
|
1147
|
-
onSubmit:
|
|
1132
|
+
onSetClient: t[2] || (t[2] = (m) => l.loadForm(l.omit(m, ["answerMethod"]))),
|
|
1133
|
+
onSubmit: l.onSave,
|
|
1148
1134
|
onShowMore: t[3] || (t[3] = (m) => c.showMore = !0)
|
|
1149
|
-
}, null, 8, ["document-role", "answer-method", "simple-form", "input-focus-on-mount", "sign-options", "validate-org-no", "
|
|
1150
|
-
|
|
1135
|
+
}, 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" ? (u(), b(f, {
|
|
1151
1137
|
key: 0,
|
|
1152
1138
|
type: "danger",
|
|
1153
1139
|
pattern: "secondary",
|
|
1154
1140
|
wide: "",
|
|
1155
1141
|
class: "mt-4 text-sm",
|
|
1156
|
-
onClick:
|
|
1142
|
+
onClick: l.removeClient
|
|
1157
1143
|
}, {
|
|
1158
|
-
default:
|
|
1144
|
+
default: n(() => [
|
|
1159
1145
|
C(r(e.$t("_common:remove")), 1)
|
|
1160
1146
|
]),
|
|
1161
1147
|
_: 1
|
|
@@ -1163,12 +1149,12 @@ function Ke(e, t, s, u, c, n) {
|
|
|
1163
1149
|
])
|
|
1164
1150
|
], 32);
|
|
1165
1151
|
}
|
|
1166
|
-
const
|
|
1152
|
+
const Ge = /* @__PURE__ */ F(Le, [["render", Ze]]), ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1167
1153
|
__proto__: null,
|
|
1168
|
-
default:
|
|
1154
|
+
default: Ge
|
|
1169
1155
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1170
1156
|
export {
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1157
|
+
Ge as C,
|
|
1158
|
+
pe as a,
|
|
1159
|
+
ot as b
|
|
1174
1160
|
};
|