@cling-se/widget 0.19.7 → 0.19.8
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 +8 -0
- package/dist/{AddClientCallout-BdGevuQo.js → AddClientCallout-sPxYX5tQ.js} +19 -19
- package/dist/{AnswerModal-DfjF-RVP.js → AnswerModal-o8OHHulg.js} +80 -80
- package/dist/{AttachmentItem-BEd3qVAo.js → AttachmentItem-CzzOlHB-.js} +14 -14
- package/dist/{BaseUpload-Zm4EX8ir.js → BaseUpload-oZQfFwOj.js} +256 -256
- package/dist/{BlockMedia-ZHaA4OMV.js → BlockMedia-BGPxfM2X.js} +11 -11
- package/dist/{CCallout-BlglVZrm.js → CCallout-CrbMGTIj.js} +15 -15
- package/dist/{CCurrencyDropdown-BzvKsm1N.js → CCurrencyDropdown-BnNDP51j.js} +13 -13
- package/dist/{CDropdownItem-B5rgSee7.js → CDropdownItem-E-kRDIiy.js} +11 -11
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-CVy64zGe.js → CFormField.vue_vue_type_script_setup_true_lang-Bi0MjQdW.js} +17 -17
- package/dist/{CPhoneFormat-DaDNMlmK.js → CPhoneFormat-CIQAVdsB.js} +1 -1
- package/dist/{CPhoneInput-BUogm59J.js → CPhoneInput-9AwTJm-0.js} +23 -23
- package/dist/{CPriceInput-Cd5OHMJS.js → CPriceInput-agFahtr1.js} +12 -12
- package/dist/{CSelect-CmoAbVkP.js → CSelect-BpautzPq.js} +15 -15
- package/dist/{CSkeleton-BF6EYj8H.js → CSkeleton-GIqd-JU4.js} +18 -18
- package/dist/{ClientAutocomplete-CHfp4YiV.js → ClientAutocomplete-DOHX9Igy.js} +24 -24
- package/dist/{ClientModal-Com23Qgc.js → ClientModal-DAXKN_b3.js} +49 -49
- package/dist/{ColorPicker-BzdHtZep.js → ColorPicker-B9F8znY_.js} +66 -66
- package/dist/{CompanyModal-CGjSgTEJ.js → CompanyModal-BvIMVys6.js} +18 -18
- package/dist/{ContentWrapper-CS-Bh4Bk.js → ContentWrapper-DB22RaUr.js} +20 -20
- package/dist/{CoverBlockSettings-DDHQzLdc.js → CoverBlockSettings--l4fH9mr.js} +39 -39
- package/dist/{DocAnswer-Cmdsw_CW.js → DocAnswer-Bq-4uVbe.js} +4 -4
- package/dist/{DocDetails-C5Vzh550.js → DocDetails-yxmchgO5.js} +56 -56
- package/dist/{DocForm-DEUVV11n.js → DocForm-CzrR8o22.js} +819 -825
- package/dist/{DocFormSend-Dt7N3wCz.js → DocFormSend-Bjc1QDcK.js} +11 -11
- package/dist/{DocLinks-C6-Er0rk.js → DocLinks-BXbC-6v3.js} +6 -6
- package/dist/{DocModalBase-DbuJwHXi.js → DocModalBase-axX_Rlp3.js} +1 -1
- package/dist/{DocPrint-D_uxg7qD.js → DocPrint-D0IdWsUM.js} +15 -15
- package/dist/{DocReceipt-D6LP9UAa.js → DocReceipt-4e-RmgeQ.js} +23 -23
- package/dist/{DocSendReminder-DopLhyjz.js → DocSendReminder-L35eZxgk.js} +10 -10
- package/dist/{DocTextEditor-DeZtzbgm.js → DocTextEditor-KrfylSV6.js} +4493 -4435
- package/dist/{DocTimeline-DAWZu_KT.js → DocTimeline-Be5CvtcQ.js} +16 -16
- package/dist/{DocumentClient-kxnT6k9s.js → DocumentClient-Bc4kf2q9.js} +12 -12
- package/dist/DocumentLayout-Oe-ZsHML.js +595 -0
- package/dist/{DocumentLogotype-G-a7gBIC.js → DocumentLogotype-BFo5UEWS.js} +18 -18
- package/dist/{DocumentVoided-SG_ShMmc.js → DocumentVoided-DlQtlO7G.js} +4 -4
- package/dist/{EmbedInput-CJL5y3Zj.js → EmbedInput-B29usQZZ.js} +8 -8
- package/dist/{EmbedSettings-B0X6A9Uy.js → EmbedSettings-D-9rcSn0.js} +12 -12
- package/dist/{ErrorCallout-xCSfpQWV.js → ErrorCallout--EnH1Ezu.js} +10 -10
- package/dist/{FilePreviewModal-Da_pMUoO.js → FilePreviewModal-H5Ilg9xN.js} +7 -7
- package/dist/{Flag-wXawyyMO.js → Flag-DgZVh3Lf.js} +4 -4
- package/dist/{HeaderSettings-CD3y6-uY.js → HeaderSettings-HuM_JwJw.js} +36 -36
- package/dist/{ImageSelectModal-DatnXHH1.js → ImageSelectModal-CJ-DstAf.js} +16 -16
- package/dist/{ImageUploadWrapper-CwKe3Iq7.js → ImageUploadWrapper-TYs37LIQ.js} +72 -72
- package/dist/{Index-ezY0DbcB.js → Index-6N_iRlrQ.js} +5 -5
- package/dist/{Index-BJf4YdYB.js → Index-B-PDcQKh.js} +29 -29
- package/dist/{Index-C-EUJjuk.js → Index-B942Auag.js} +2 -2
- package/dist/{Index-NnBwJv9v.js → Index-BLdFyt-s.js} +9 -9
- package/dist/{Index-CXjLkK_n.js → Index-BMpHXgR4.js} +15 -15
- package/dist/{Index-COF0evH4.js → Index-BZ6ZDf9T.js} +6 -6
- package/dist/{Index-y_AJP61r.js → Index-BdnFLjgV.js} +9 -9
- package/dist/{Index-DAkq_7Ws.js → Index-BeOtRIzZ.js} +18 -18
- package/dist/{Index-CTrX3VRa.js → Index-BsRxY7vc.js} +5 -5
- package/dist/{Index-D-gJQEAD.js → Index-CAMAtPVL.js} +6 -6
- package/dist/{Index-C2-s62x7.js → Index-CC4E2CmH.js} +11 -11
- package/dist/{Index-Dxg4gEKd.js → Index-CGus-YwW.js} +18 -18
- package/dist/{Index-Ciy9lnhS.js → Index-CLgN5Jzf.js} +2 -2
- package/dist/{Index-Cjg3X74T.js → Index-CTlB43yV.js} +7 -7
- package/dist/{Index-DkQ8_VkX.js → Index-CY2sRfaY.js} +194 -218
- package/dist/{Index-DfuzxXzD.js → Index-CnrSvy6E.js} +2 -2
- package/dist/{Index-DjfbgA_7.js → Index-CrdSdXWN.js} +19 -19
- package/dist/{Index-Ct735UtM.js → Index-CtJfMiZW.js} +2 -2
- package/dist/Index-D4HNTocO.js +4 -0
- package/dist/{Index-Ck-_9woY.js → Index-D5_GLLQH.js} +501 -506
- package/dist/{Index-DzdEqsZB.js → Index-D9sceHk5.js} +16 -16
- package/dist/{Index-Dfy0PsiW.js → Index-DJ11Zra_.js} +29 -29
- package/dist/{Index-DOeHci16.js → Index-DMIjuWSa.js} +7 -7
- package/dist/{Index-Bb6JZC8l.js → Index-DTm59e-A.js} +11 -11
- package/dist/{Index-CQboLS2e.js → Index-DXT_IMjq.js} +8 -8
- package/dist/{Index-GPliVrhC.js → Index-DYUvtCff.js} +7 -7
- package/dist/{Index-BvAqglwa.js → Index-DYW8T0Hl.js} +27 -27
- package/dist/{Index-BTDQax0X.js → Index-Dg4dwlh_.js} +60 -59
- package/dist/{Index-BlownK7_.js → Index-N88Abomf.js} +7 -7
- package/dist/{Index-9ZFW8Ka7.js → Index-W-Q19E3a.js} +7 -7
- package/dist/{Index-BbVHxVFJ.js → Index-edWEg_rF.js} +33 -33
- package/dist/{Index-B53eUt7Y.js → Index-nRqNPZ3B.js} +15 -15
- package/dist/{Index-1WPEpaVr.js → Index-nTp9wEni.js} +7 -7
- package/dist/{Index-yS5OPrJJ.js → Index-yJRtT77X.js} +2 -2
- package/dist/{Index.vue_vue_type_script_lang-B3RoDZmC.js → Index.vue_vue_type_script_lang-PJPQMT2c.js} +2 -2
- package/dist/{InputToggleRow-D5rvQpAw.js → InputToggleRow-DCr_DEm4.js} +15 -15
- package/dist/{ManualPopover-Bd-GsLGT.js → ManualPopover-CpVsmQvn.js} +6 -6
- package/dist/{MediaWrapper-Ci0XPCcb.js → MediaWrapper-Cj3LBhdR.js} +4 -4
- package/dist/{NotBindingText-DhndGZE3.js → NotBindingText-1J0p_k4u.js} +5 -5
- package/dist/{PackageGroup-4Jt9ClVO.js → PackageGroup-CqrWEfCT.js} +29 -29
- package/dist/{PdfTerms-CGeJDJpQ.js → PdfTerms-DmrPDtae.js} +9 -9
- package/dist/{PdfViewer-o2vb6Fya.js → PdfViewer-C2EEwUBa.js} +71 -71
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-BtnMqKcE.js → PlainHtml.vue_vue_type_script_setup_true_lang-B6pRo08V.js} +2 -2
- package/dist/{PriceHeader-BsObxLHK.js → PriceHeader-BaREzUxI.js} +31 -31
- package/dist/{SearchApi-ZczKsBb7.js → SearchApi-Bf4jeQVr.js} +6 -6
- package/dist/{SendForm-D5jqkofo.js → SendForm-D5qpHxNU.js} +713 -711
- package/dist/{Setup-CdZzn0qW.js → Setup-Bw8ViFxw.js} +4 -4
- package/dist/{SmartList-B36ffGAZ.js → SmartList-CzylvV8N.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-Di1urzqu.js → Sortable.vue_vue_type_script_setup_true_lang-DleoAiSK.js} +118 -118
- package/dist/{TermsSettings-CmAHVOuX.js → TermsSettings-EoJvsPqK.js} +16 -16
- package/dist/{ThemeColorRow-CScTIcPB.js → ThemeColorRow-D3blQMiD.js} +13 -13
- package/dist/{ToggleBinding-CVZZlpBR.js → ToggleBinding-BteBsRYr.js} +7 -7
- package/dist/{UploadModal-2tXsmGMM.js → UploadModal-Cr5sF3M-.js} +19 -19
- package/dist/{VideoPlayerInput-BDzjZ2St.js → VideoPlayerInput-BBycKv9w.js} +10 -10
- package/dist/{VideoPlayerSettings-BLAEZw4C.js → VideoPlayerSettings-BXXpTWBf.js} +9 -9
- package/dist/{VideoSelectModal-iqgmg85K.js → VideoSelectModal-B2VPO6q4.js} +19 -19
- package/dist/{focusDrawerMixin-BmyahQiE.js → focusDrawerMixin-CCAEZjWO.js} +1 -1
- package/dist/{formDrawerState-B7ASfNsk.js → formDrawerState-CJyP4ce1.js} +1 -1
- package/dist/{helpers-BVP2Pul1.js → helpers-Cf9s0P7o.js} +4 -4
- package/dist/{index-B86TZXOh.js → index-C3pnyYI4.js} +94 -94
- package/dist/{index-D0Qee2OX.js → index-CBn1mHmK.js} +30 -30
- package/dist/{index-DXNrJnEc.js → index-DAJmNac8.js} +10 -10
- package/dist/{index-Cd4S4J-L.js → index-DYJN9yoF.js} +56 -56
- package/dist/{index-BDb4bM0D.js → index-DuXECcGq.js} +25 -25
- package/dist/{index-BH5vwOzR.js → index-XzoHqJIR.js} +9 -9
- package/dist/{index-CsbYpQqP.js → index-_MfZEYgE.js} +57 -57
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +153 -158
- package/dist/{main-C2Q8_T2Y.js → main-BayUZ9OO.js} +13620 -13669
- package/dist/{mapFormMixin-CjfqZnmd.js → mapFormMixin-Bx5_nE7g.js} +40 -46
- package/dist/omit-BKJdPM2H.js +56 -0
- package/dist/{publicSenderState-C3ELW8Cw.js → publicSenderState-CblTasKp.js} +4 -4
- package/dist/{splitpanes-CuxtOZyV.js → splitpanes-DFkgBT3z.js} +6 -6
- package/dist/{template-DzrGrOEa.js → template-CvGgzazD.js} +5 -5
- package/dist/{tippy.esm-Bf86qEue.js → tippy.esm-CYKcJaqz.js} +273 -275
- package/dist/{useTermsModal-Be4HLDDm.js → useTermsModal-DFmdeFRm.js} +7 -7
- package/dist/{utils-a_Odlqb5.js → utils-DTwXcY8_.js} +1 -1
- package/dist/{validation-38muBV6x.js → validation-d_jonAPy.js} +4 -4
- package/dist/widget.css +1 -1
- package/package.json +2 -2
- package/dist/DocumentLayout-DaVz9SGF.js +0 -1434
- package/dist/Index-qFx0G3fC.js +0 -4
- package/dist/omit-DzlbtNCX.js +0 -56
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const F = /* @__PURE__ */
|
|
1
|
+
import { a7 as x, ax as B, H as l, ay as C, d as o, e as N, I as e, o as s, F as w, n as S, W as d, x as r, _ as z } from "./main-BayUZ9OO.js";
|
|
2
|
+
const F = /* @__PURE__ */ x({
|
|
3
3
|
__name: "CSkeleton",
|
|
4
4
|
props: {
|
|
5
5
|
active: { type: Boolean, default: !0 },
|
|
@@ -14,32 +14,32 @@ const F = /* @__PURE__ */ B({
|
|
|
14
14
|
},
|
|
15
15
|
setup(i) {
|
|
16
16
|
const c = i, {
|
|
17
|
-
active:
|
|
18
|
-
animated:
|
|
17
|
+
active: v,
|
|
18
|
+
animated: f,
|
|
19
19
|
width: a,
|
|
20
20
|
height: t,
|
|
21
|
-
circle:
|
|
21
|
+
circle: m,
|
|
22
22
|
rounded: p,
|
|
23
23
|
count: y,
|
|
24
24
|
hidden: h,
|
|
25
|
-
color:
|
|
26
|
-
} =
|
|
25
|
+
color: n
|
|
26
|
+
} = B(c), _ = l(() => ({
|
|
27
27
|
height: t.value === void 0 ? void 0 : isNaN(Number(t.value)) ? t.value : `${t.value}px`,
|
|
28
28
|
width: a.value === void 0 ? void 0 : isNaN(Number(a.value)) ? a.value : `${a.value}px`,
|
|
29
|
-
borderRadius:
|
|
30
|
-
background:
|
|
31
|
-
})), u =
|
|
32
|
-
return (
|
|
29
|
+
borderRadius: m.value ? "50%" : void 0,
|
|
30
|
+
background: n.value ? n.value : void 0
|
|
31
|
+
})), u = C(), g = l(() => u.style), k = l(() => u.class);
|
|
32
|
+
return (I, R) => e(v) ? (s(), o("div", {
|
|
33
33
|
key: 0,
|
|
34
|
-
class:
|
|
35
|
-
style:
|
|
34
|
+
class: r(["w-full", { invisible: e(h) }, k.value]),
|
|
35
|
+
style: d(g.value)
|
|
36
36
|
}, [
|
|
37
|
-
(
|
|
38
|
-
key:
|
|
39
|
-
class:
|
|
40
|
-
style:
|
|
37
|
+
(s(!0), o(w, null, S(e(y), (b) => (s(), o("div", {
|
|
38
|
+
key: b,
|
|
39
|
+
class: r(["mt-2 w-full bg-gray-100 bg-[length:400%_100%] leading-none after:content-['\\00a0']", { "rounded-sm": e(p), "animate-skeleton": e(f) }]),
|
|
40
|
+
style: d(_.value)
|
|
41
41
|
}, null, 6))), 128))
|
|
42
|
-
], 6)) :
|
|
42
|
+
], 6)) : N("", !0);
|
|
43
43
|
}
|
|
44
44
|
}), A = /* @__PURE__ */ z(F, [["__scopeId", "data-v-700c0d24"]]);
|
|
45
45
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { S as O } from "./SearchApi-
|
|
2
|
-
import { _ as
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
1
|
+
import { S as O } from "./SearchApi-Bf4jeQVr.js";
|
|
2
|
+
import { _ as I, N as E, O as F, a1 as H, b as g, d as c, o as d, f as V, R as S, ah as m, am as v, w as p, u as $, j as w, W as T, x as C, e as f, T as y, F as x, n as _, t as h, v as A, ak as L, aF as R, c as b, q as D } from "./main-BayUZ9OO.js";
|
|
3
|
+
import { g as P, r as N, c as q } from "./helpers-Cf9s0P7o.js";
|
|
4
|
+
const z = {
|
|
5
5
|
name: "CAutocomplete",
|
|
6
6
|
components: {
|
|
7
|
-
CInput:
|
|
7
|
+
CInput: H
|
|
8
8
|
},
|
|
9
|
-
mixins: [
|
|
9
|
+
mixins: [E, F],
|
|
10
10
|
props: {
|
|
11
11
|
modelValue: {
|
|
12
12
|
type: [Number, String],
|
|
@@ -190,13 +190,13 @@ const q = {
|
|
|
190
190
|
() => this.checkIfReachedTheEndOfScroll(e)
|
|
191
191
|
);
|
|
192
192
|
}
|
|
193
|
-
this.appendToBody && (this.$data._bodyEl =
|
|
193
|
+
this.appendToBody && (this.$data._bodyEl = q(this.$refs.dropdown), this.updateAppendToBody());
|
|
194
194
|
},
|
|
195
195
|
beforeUnmount() {
|
|
196
196
|
typeof window < "u" && (document.removeEventListener("click", this.clickedOutside), this.dropdownPosition === "auto" && window.removeEventListener(
|
|
197
197
|
"resize",
|
|
198
198
|
this.calcDropdownInViewportVertical
|
|
199
|
-
)), this.checkInfiniteScroll && this.$refs.dropdown && this.$refs.dropdown.querySelector(".dropdown-content") && this.$refs.dropdown.querySelector(".dropdown-content").removeEventListener("scroll", this.checkIfReachedTheEndOfScroll), this.appendToBody &&
|
|
199
|
+
)), this.checkInfiniteScroll && this.$refs.dropdown && this.$refs.dropdown.querySelector(".dropdown-content") && this.$refs.dropdown.querySelector(".dropdown-content").removeEventListener("scroll", this.checkIfReachedTheEndOfScroll), this.appendToBody && N(this.$data._bodyEl), clearTimeout(this.timeOutID);
|
|
200
200
|
},
|
|
201
201
|
methods: {
|
|
202
202
|
/**
|
|
@@ -255,7 +255,7 @@ const q = {
|
|
|
255
255
|
*/
|
|
256
256
|
getValue(e) {
|
|
257
257
|
if (e !== null)
|
|
258
|
-
return typeof this.customFormatter < "u" ? this.customFormatter(e) : typeof e == "object" ?
|
|
258
|
+
return typeof this.customFormatter < "u" ? this.customFormatter(e) : typeof e == "object" ? P(e, this.field) : e;
|
|
259
259
|
},
|
|
260
260
|
/**
|
|
261
261
|
* Check if the scroll list inside the dropdown
|
|
@@ -387,10 +387,10 @@ function j(e, t, i, l, s, o) {
|
|
|
387
387
|
$(w("div", {
|
|
388
388
|
ref: "dropdown",
|
|
389
389
|
class: C([{ "is-opened-top": o.isOpenedTop && !i.appendToBody }, "dropdown-menu"]),
|
|
390
|
-
style:
|
|
390
|
+
style: T(s.style)
|
|
391
391
|
}, [
|
|
392
392
|
$(w("div", {
|
|
393
|
-
style:
|
|
393
|
+
style: T(o.contentStyle),
|
|
394
394
|
class: "dropdown-content"
|
|
395
395
|
}, [
|
|
396
396
|
o.hasHeaderSlot ? (d(), c("div", M, [
|
|
@@ -414,17 +414,17 @@ function j(e, t, i, l, s, o) {
|
|
|
414
414
|
y(e.$slots, "footer")
|
|
415
415
|
])) : f("", !0)
|
|
416
416
|
], 4), [
|
|
417
|
-
[
|
|
417
|
+
[A, s.isActive]
|
|
418
418
|
])
|
|
419
419
|
], 6), [
|
|
420
|
-
[
|
|
420
|
+
[A, o.isDropdownOpen]
|
|
421
421
|
])
|
|
422
422
|
]),
|
|
423
423
|
_: 3
|
|
424
424
|
})
|
|
425
425
|
], 16);
|
|
426
426
|
}
|
|
427
|
-
const
|
|
427
|
+
const X = /* @__PURE__ */ I(z, [["render", j]]), Y = {
|
|
428
428
|
i18nOptions: {
|
|
429
429
|
namespaces: "components",
|
|
430
430
|
keyPrefix: "account.documentForm.clients"
|
|
@@ -432,7 +432,7 @@ const Y = /* @__PURE__ */ b(q, [["render", j]]), G = {
|
|
|
432
432
|
name: "ClientAutocomplete",
|
|
433
433
|
components: {
|
|
434
434
|
SearchApi: O,
|
|
435
|
-
CAutocomplete:
|
|
435
|
+
CAutocomplete: X
|
|
436
436
|
},
|
|
437
437
|
props: {
|
|
438
438
|
searchEnabled: {
|
|
@@ -455,7 +455,7 @@ const Y = /* @__PURE__ */ b(q, [["render", j]]), G = {
|
|
|
455
455
|
emits: ["input", "setClient", "add"],
|
|
456
456
|
data() {
|
|
457
457
|
return {
|
|
458
|
-
convertToNewClient:
|
|
458
|
+
convertToNewClient: R,
|
|
459
459
|
results: [],
|
|
460
460
|
// results when searching for existing endCustomer
|
|
461
461
|
searchQuery: ""
|
|
@@ -472,13 +472,13 @@ const Y = /* @__PURE__ */ b(q, [["render", j]]), G = {
|
|
|
472
472
|
}));
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
},
|
|
475
|
+
}, G = { style: { "line-height": "1.5" } }, J = { style: { "font-weight": "500" } }, Z = {
|
|
476
476
|
class: "text-gray-600",
|
|
477
477
|
style: { "font-size": "14px" }
|
|
478
478
|
}, ee = { key: 0 }, te = { key: 0 };
|
|
479
479
|
function ie(e, t, i, l, s, o) {
|
|
480
480
|
const a = g("CButton"), n = g("CAutocomplete"), u = g("SearchApi");
|
|
481
|
-
return d(),
|
|
481
|
+
return d(), b(u, { "custom-search": { endCustomer: !0 } }, {
|
|
482
482
|
default: p(({ fetch: k, isLoading: B }) => [
|
|
483
483
|
V(n, S({
|
|
484
484
|
placeholder: e.$t("search.placeholder"),
|
|
@@ -494,14 +494,14 @@ function ie(e, t, i, l, s, o) {
|
|
|
494
494
|
onSelect: t[1] || (t[1] = (r) => e.$emit("setClient", s.convertToNewClient(r)))
|
|
495
495
|
}), {
|
|
496
496
|
default: p(({ option: r }) => [
|
|
497
|
-
w("div",
|
|
498
|
-
w("div",
|
|
497
|
+
w("div", G, [
|
|
498
|
+
w("div", J, h(r.name || r.email), 1),
|
|
499
499
|
w("div", Z, h(r.reference ? `${r.reference} · ` : "") + " " + h(r.workStreet || r.street || " "), 1)
|
|
500
500
|
])
|
|
501
501
|
]),
|
|
502
502
|
footer: p(() => [
|
|
503
503
|
i.searchEnabled && i.showEmpty ? (d(), c("div", ee, [
|
|
504
|
-
s.searchQuery && !s.results.length ? (d(),
|
|
504
|
+
s.searchQuery && !s.results.length ? (d(), b(a, {
|
|
505
505
|
key: 0,
|
|
506
506
|
type: "secondary",
|
|
507
507
|
pattern: "tertiary",
|
|
@@ -510,7 +510,7 @@ function ie(e, t, i, l, s, o) {
|
|
|
510
510
|
onClick: t[0] || (t[0] = (r) => e.$emit("add"))
|
|
511
511
|
}, {
|
|
512
512
|
default: p(() => [
|
|
513
|
-
|
|
513
|
+
D(h(e.$t("_common:add")), 1)
|
|
514
514
|
]),
|
|
515
515
|
_: 1
|
|
516
516
|
})) : f("", !0)
|
|
@@ -525,8 +525,8 @@ function ie(e, t, i, l, s, o) {
|
|
|
525
525
|
_: 1
|
|
526
526
|
});
|
|
527
527
|
}
|
|
528
|
-
const le = /* @__PURE__ */
|
|
528
|
+
const le = /* @__PURE__ */ I(Y, [["render", ie]]);
|
|
529
529
|
export {
|
|
530
530
|
le as C,
|
|
531
|
-
|
|
531
|
+
X as a
|
|
532
532
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { C as L } from "./ClientAutocomplete-
|
|
2
|
-
import { _ as z,
|
|
3
|
-
import {
|
|
4
|
-
import { _ as le } from "./CFormField.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { C as ae } from "./CPhoneInput-
|
|
6
|
-
import { u as ie } from "./index-
|
|
7
|
-
import {
|
|
8
|
-
import { o as de } from "./omit-
|
|
1
|
+
import { C as L } from "./ClientAutocomplete-DOHX9Igy.js";
|
|
2
|
+
import { _ as z, b5 as j, d as h, o as f, u as Z, j as i, b6 as Y, am as N, x as y, T as G, ah as H, a as B, aq as P, aa as K, a6 as J, b as g, f as n, c as b, e as v, t as r, w as a, F as O, n as F, q as C, m as Q, ap as X, ae as k, aF as _, b7 as x, g as U, y as ee, i as te } from "./main-BayUZ9OO.js";
|
|
3
|
+
import { w as E, C as oe, a as ne } from "./CDropdownItem-E-kRDIiy.js";
|
|
4
|
+
import { _ as le } from "./CFormField.vue_vue_type_script_setup_true_lang-Bi0MjQdW.js";
|
|
5
|
+
import { C as ae } from "./CPhoneInput-9AwTJm-0.js";
|
|
6
|
+
import { u as ie } from "./index-C3pnyYI4.js";
|
|
7
|
+
import { a as $, r as se, e as re } from "./index-XzoHqJIR.js";
|
|
8
|
+
import { o as de } from "./omit-BKJdPM2H.js";
|
|
9
9
|
const me = {
|
|
10
10
|
name: "CRadio",
|
|
11
11
|
mixins: [j]
|
|
@@ -29,18 +29,18 @@ function fe(e, t, s, d, u, l) {
|
|
|
29
29
|
onClick: t[1] || (t[1] = N(() => {
|
|
30
30
|
}, ["stop"]))
|
|
31
31
|
}, null, 8, pe), [
|
|
32
|
-
[
|
|
32
|
+
[Y, e.computedValue]
|
|
33
33
|
]),
|
|
34
34
|
i("span", {
|
|
35
35
|
class: y([`is-${e.type}`, "check"])
|
|
36
36
|
}, null, 2),
|
|
37
37
|
i("span", ce, [
|
|
38
|
-
|
|
38
|
+
G(e.$slots, "default")
|
|
39
39
|
])
|
|
40
40
|
], 42, ue);
|
|
41
41
|
}
|
|
42
42
|
const ge = /* @__PURE__ */ z(me, [["render", fe]]);
|
|
43
|
-
function
|
|
43
|
+
function T(e) {
|
|
44
44
|
if (typeof e > "u") throw Error("Missing param inputParam");
|
|
45
45
|
let t = e;
|
|
46
46
|
Number.isInteger(t) && (t = t.toString());
|
|
@@ -53,7 +53,7 @@ function W(e) {
|
|
|
53
53
|
}
|
|
54
54
|
function A(e) {
|
|
55
55
|
let t = e.replace(/ /g, "");
|
|
56
|
-
return t = t.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
57
|
}
|
|
58
58
|
function V(e) {
|
|
59
59
|
if (typeof e > "u" || e === null || e === "")
|
|
@@ -68,7 +68,7 @@ function V(e) {
|
|
|
68
68
|
);
|
|
69
69
|
parseInt(u, 10) === 19 || parseInt(u, 10) === 20 || (parseInt(u, 10) >= 0 && parseInt(u, 10) <= c ? t = `20${t}` : t = `19${t}`);
|
|
70
70
|
}
|
|
71
|
-
return (/* @__PURE__ */ new Date()).getFullYear() - parseInt(t.substring(0, 4), 10) < 16 ? !1 :
|
|
71
|
+
return (/* @__PURE__ */ new Date()).getFullYear() - parseInt(t.substring(0, 4), 10) < 16 ? !1 : T(t.substring(2)) ? t : !1;
|
|
72
72
|
}
|
|
73
73
|
const he = {
|
|
74
74
|
sv: {
|
|
@@ -185,7 +185,7 @@ const he = {
|
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
}, { mapFields: ve } =
|
|
188
|
+
}, { mapFields: ve } = P({
|
|
189
189
|
getterType: "forms/getField",
|
|
190
190
|
mutationType: "forms/updateField"
|
|
191
191
|
}), ye = {
|
|
@@ -197,8 +197,8 @@ const he = {
|
|
|
197
197
|
components: {
|
|
198
198
|
ClientAutocomplete: L,
|
|
199
199
|
CCheckbox: K,
|
|
200
|
-
CDropdown:
|
|
201
|
-
CDropdownItem:
|
|
200
|
+
CDropdown: ne,
|
|
201
|
+
CDropdownItem: oe,
|
|
202
202
|
CField: le,
|
|
203
203
|
CPhoneInput: ae,
|
|
204
204
|
CRadio: ge
|
|
@@ -313,7 +313,7 @@ const he = {
|
|
|
313
313
|
reverseVat: "endCustomer.reverseVat",
|
|
314
314
|
doUpdateEndCustomer: "endCustomer.doUpdateEndCustomer"
|
|
315
315
|
}),
|
|
316
|
-
...
|
|
316
|
+
...B({
|
|
317
317
|
isPosting: "endCustomers/isPosting",
|
|
318
318
|
companyRegion: "application/companyRegion",
|
|
319
319
|
feature: "application/feature"
|
|
@@ -369,21 +369,21 @@ const he = {
|
|
|
369
369
|
}, be = { class: "form-client" }, Ce = { class: "space-between flex flex-wrap items-center pb-6" }, we = {
|
|
370
370
|
class: "flex-grow",
|
|
371
371
|
style: { "font-weight": "600", "font-size": "20px" }
|
|
372
|
-
}, ke = { class: "type-toggle" }, $e = { style: { "line-height": "1.25", padding: "4px 0" } }, Ve = { style: { "font-size": "12px", opacity: "0.7" } }, Ne = { style: { "line-height": "1.25", padding: "4px 0" } },
|
|
372
|
+
}, ke = { class: "type-toggle" }, $e = { style: { "line-height": "1.25", padding: "4px 0" } }, Ve = { style: { "font-size": "12px", opacity: "0.7" } }, Ne = { style: { "line-height": "1.25", padding: "4px 0" } }, Se = { style: { "font-size": "12px", opacity: "0.7" } }, Ie = {
|
|
373
373
|
class: "flex items-center justify-center",
|
|
374
374
|
style: { "margin-bottom": "calc(2.5 * var(--rem))" }
|
|
375
375
|
}, Me = { class: "type-toggle" }, Oe = { key: 0 }, Fe = {
|
|
376
376
|
key: 0,
|
|
377
377
|
class: "dropdown-field-wrapper flex min-w-0 flex-col"
|
|
378
|
-
}, ze = { class: "my-1 text-sm text-gray-600" }, Re = { class: "py-1 leading-5" }, De = { class: "text-xs opacity-70" },
|
|
378
|
+
}, ze = { class: "my-1 text-sm text-gray-600" }, Re = { class: "py-1 leading-5" }, De = { class: "text-xs opacity-70" }, qe = { style: { "line-height": "1.25", padding: "4px 0" } }, Ue = { style: { "font-size": "12px", opacity: "0.7" } }, Ae = {
|
|
379
379
|
key: 1,
|
|
380
380
|
class: "dropdown-field-wrapper flex min-w-0 flex-col"
|
|
381
|
-
}, Be = { class: "my-1 text-sm text-gray-600" }, Pe = { class: "max-w-[calc(16_*_var(--rem))] py-1 leading-5" }, Ee = { class: "truncate text-xs opacity-70" },
|
|
381
|
+
}, Be = { class: "my-1 text-sm text-gray-600" }, Pe = { class: "max-w-[calc(16_*_var(--rem))] py-1 leading-5" }, Ee = { class: "truncate text-xs opacity-70" }, Te = { style: { "line-height": "1.25", padding: "4px 0" } }, We = {
|
|
382
382
|
class: "max-w-[calc(12_*_var(--rem))] truncate",
|
|
383
383
|
style: { "font-size": "12px", opacity: "0.7", "text-wrap": "wrap" }
|
|
384
384
|
}, Le = { style: { "margin-top": "calc(3 * var(--rem))" } };
|
|
385
385
|
function je(e, t, s, d, u, l) {
|
|
386
|
-
const c = g("ClientAutocomplete"), m = g("CField"), p = g("CInput"),
|
|
386
|
+
const c = g("ClientAutocomplete"), m = g("CField"), p = g("CInput"), S = g("Animation"), R = g("CPhoneInput"), w = g("CButton"), I = g("CDropdownItem"), M = g("CDropdown"), W = g("CCheckbox"), D = g("CRadio");
|
|
387
387
|
return f(), h("div", be, [
|
|
388
388
|
s.simpleForm ? (f(), h("form", {
|
|
389
389
|
key: 0,
|
|
@@ -422,7 +422,7 @@ function je(e, t, s, d, u, l) {
|
|
|
422
422
|
]),
|
|
423
423
|
_: 1
|
|
424
424
|
}, 8, ["label", "validator", "messages"]),
|
|
425
|
-
n(
|
|
425
|
+
n(S, null, {
|
|
426
426
|
default: a(() => [
|
|
427
427
|
l.isIndivid ? v("", !0) : (f(), b(m, {
|
|
428
428
|
key: 0,
|
|
@@ -501,18 +501,18 @@ function je(e, t, s, d, u, l) {
|
|
|
501
501
|
}, 8, ["icon-left"])
|
|
502
502
|
]),
|
|
503
503
|
default: a(() => [
|
|
504
|
-
(f(), h(O, null, F(["signee", "recipient", "approver"], (o) => n(
|
|
504
|
+
(f(), h(O, null, F(["signee", "recipient", "approver"], (o) => n(I, {
|
|
505
505
|
key: o,
|
|
506
506
|
"icon-left": o === "signee" ? "pen-tool" : "eye",
|
|
507
507
|
"icon-props": {
|
|
508
508
|
stroke: "hsl(0, 0%, 50%)"
|
|
509
509
|
},
|
|
510
|
-
onClick: (
|
|
510
|
+
onClick: (q) => e.$emit("update:document-role", o)
|
|
511
511
|
}, {
|
|
512
512
|
default: a(() => [
|
|
513
513
|
i("div", Ne, [
|
|
514
514
|
i("div", null, r(e.$t(`_common:documentRole.${o}.description`)), 1),
|
|
515
|
-
i("div",
|
|
515
|
+
i("div", Se, r(e.$t(`_common:documentRole.${o}.label`)), 1)
|
|
516
516
|
])
|
|
517
517
|
]),
|
|
518
518
|
_: 2
|
|
@@ -550,7 +550,7 @@ function je(e, t, s, d, u, l) {
|
|
|
550
550
|
key: 1,
|
|
551
551
|
class: y({ "column-only": e.windowWidth <= 600 })
|
|
552
552
|
}, [
|
|
553
|
-
i("div",
|
|
553
|
+
i("div", Ie, [
|
|
554
554
|
i("div", Me, [
|
|
555
555
|
i("div", {
|
|
556
556
|
class: y([{ active: e.type === "individual" }, "type-toggle-button"]),
|
|
@@ -607,7 +607,7 @@ function je(e, t, s, d, u, l) {
|
|
|
607
607
|
]),
|
|
608
608
|
_: 1
|
|
609
609
|
}),
|
|
610
|
-
n(
|
|
610
|
+
n(S, null, {
|
|
611
611
|
default: a(() => [
|
|
612
612
|
e.type && !l.isIndivid ? (f(), b(m, {
|
|
613
613
|
key: 0,
|
|
@@ -632,7 +632,7 @@ function je(e, t, s, d, u, l) {
|
|
|
632
632
|
style: { "padding-left": "0.5em", "margin-bottom": "calc(2 * var(--rem))" }
|
|
633
633
|
}, {
|
|
634
634
|
default: a(() => [
|
|
635
|
-
n(
|
|
635
|
+
n(W, {
|
|
636
636
|
modelValue: e.reverseVat,
|
|
637
637
|
"onUpdate:modelValue": t[16] || (t[16] = (o) => e.reverseVat = o),
|
|
638
638
|
size: "normal"
|
|
@@ -761,7 +761,7 @@ function je(e, t, s, d, u, l) {
|
|
|
761
761
|
]),
|
|
762
762
|
_: 1
|
|
763
763
|
}),
|
|
764
|
-
n(
|
|
764
|
+
n(S, null, {
|
|
765
765
|
default: a(() => [
|
|
766
766
|
e.type && e.separateWorkAddress ? (f(), h("div", Oe, [
|
|
767
767
|
n(m, {
|
|
@@ -847,18 +847,18 @@ function je(e, t, s, d, u, l) {
|
|
|
847
847
|
}, 8, ["icon-left"])
|
|
848
848
|
]),
|
|
849
849
|
default: a(() => [
|
|
850
|
-
(f(), h(O, null, F(["signee", "recipient", "approver"], (o) => n(
|
|
850
|
+
(f(), h(O, null, F(["signee", "recipient", "approver"], (o) => n(I, {
|
|
851
851
|
key: o,
|
|
852
852
|
"icon-left": o === "signee" ? "pen-tool" : "eye",
|
|
853
853
|
"icon-props": {
|
|
854
854
|
stroke: "hsl(0, 0%, 50%)"
|
|
855
855
|
},
|
|
856
|
-
onClick: (
|
|
856
|
+
onClick: (q) => e.$emit("update:document-role", o)
|
|
857
857
|
}, {
|
|
858
858
|
default: a(() => [
|
|
859
|
-
i("div",
|
|
859
|
+
i("div", qe, [
|
|
860
860
|
i("div", null, r(e.$t(`_common:documentRole.${o}.description`)), 1),
|
|
861
|
-
i("div",
|
|
861
|
+
i("div", Ue, r(e.$t(`_common:documentRole.${o}.label`)), 1)
|
|
862
862
|
])
|
|
863
863
|
]),
|
|
864
864
|
_: 2
|
|
@@ -891,17 +891,17 @@ function je(e, t, s, d, u, l) {
|
|
|
891
891
|
})
|
|
892
892
|
]),
|
|
893
893
|
default: a(() => [
|
|
894
|
-
(f(!0), h(O, null, F(s.signOptions, (o) => (f(), b(
|
|
894
|
+
(f(!0), h(O, null, F(s.signOptions, (o) => (f(), b(I, {
|
|
895
895
|
key: o,
|
|
896
|
-
onClick: (
|
|
896
|
+
onClick: (q) => e.$emit("update:answer-method", {
|
|
897
897
|
...s.answerMethod,
|
|
898
898
|
accept: o
|
|
899
899
|
})
|
|
900
900
|
}, {
|
|
901
901
|
default: a(() => [
|
|
902
|
-
i("div",
|
|
902
|
+
i("div", Te, [
|
|
903
903
|
i("div", null, r(e.$t(`signMethod.${o}.title`)), 1),
|
|
904
|
-
i("div",
|
|
904
|
+
i("div", We, r(e.$t(`signMethod.${o}.content`)), 1)
|
|
905
905
|
])
|
|
906
906
|
]),
|
|
907
907
|
_: 2
|
|
@@ -930,10 +930,10 @@ function je(e, t, s, d, u, l) {
|
|
|
930
930
|
], 2))
|
|
931
931
|
]);
|
|
932
932
|
}
|
|
933
|
-
const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec"]]), { mapFields:
|
|
933
|
+
const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec"]]), { mapFields: Ye } = P({
|
|
934
934
|
getterType: "forms/getField",
|
|
935
935
|
mutationType: "forms/updateField"
|
|
936
|
-
}),
|
|
936
|
+
}), Ge = {
|
|
937
937
|
name: "ClientModal",
|
|
938
938
|
i18nOptions: {
|
|
939
939
|
namespaces: "clientModal",
|
|
@@ -1017,19 +1017,19 @@ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec
|
|
|
1017
1017
|
};
|
|
1018
1018
|
},
|
|
1019
1019
|
computed: {
|
|
1020
|
-
...
|
|
1020
|
+
...Ye({
|
|
1021
1021
|
endCustomer: "endCustomer"
|
|
1022
1022
|
}),
|
|
1023
|
-
...
|
|
1023
|
+
...X("forms", {
|
|
1024
1024
|
formData: (e) => e.document2
|
|
1025
1025
|
}),
|
|
1026
|
-
...
|
|
1026
|
+
...B({
|
|
1027
1027
|
can: "application/can",
|
|
1028
1028
|
feature: "application/feature",
|
|
1029
1029
|
defaultClientType: "endCustomers/defaultClientType"
|
|
1030
1030
|
}),
|
|
1031
1031
|
validateOrgNo() {
|
|
1032
|
-
return !!(this.feature("bankId") || this.isPublicForm &&
|
|
1032
|
+
return !!(this.feature("bankId") || this.isPublicForm && ee[te.brand].defaultRegion === "SE");
|
|
1033
1033
|
},
|
|
1034
1034
|
existsOnDocument() {
|
|
1035
1035
|
return !!k(this.formData, `clients[${this.documentClientIndex}]`);
|
|
@@ -1055,13 +1055,13 @@ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec
|
|
|
1055
1055
|
);
|
|
1056
1056
|
},
|
|
1057
1057
|
methods: {
|
|
1058
|
-
...
|
|
1059
|
-
saveClient:
|
|
1060
|
-
showMessage:
|
|
1058
|
+
...Q({
|
|
1059
|
+
saveClient: U.FORM_SUBMIT_ENDCUSTOMER,
|
|
1060
|
+
showMessage: U.SHOW_MESSAGE
|
|
1061
1061
|
}),
|
|
1062
1062
|
omit: de,
|
|
1063
1063
|
loadForm(e = {}) {
|
|
1064
|
-
this.storedNewClient = Object.assign(this.storedNewClient, e), this.endCustomer =
|
|
1064
|
+
this.storedNewClient = Object.assign(this.storedNewClient, e), this.endCustomer = x({
|
|
1065
1065
|
type: this.defaultClientType(),
|
|
1066
1066
|
...e
|
|
1067
1067
|
});
|
|
@@ -1083,7 +1083,7 @@ const Ze = /* @__PURE__ */ z(ye, [["render", je], ["__scopeId", "data-v-a49b2cec
|
|
|
1083
1083
|
}
|
|
1084
1084
|
this.setFormValue({
|
|
1085
1085
|
key: `clients[${this.documentClientIndex}]`,
|
|
1086
|
-
value:
|
|
1086
|
+
value: _(
|
|
1087
1087
|
{ ...this.endCustomer, ...e && { id: e } },
|
|
1088
1088
|
{ ...this.storedNewClient }
|
|
1089
1089
|
)
|
|
@@ -1177,7 +1177,7 @@ function Ke(e, t, s, d, u, l) {
|
|
|
1177
1177
|
])
|
|
1178
1178
|
], 32);
|
|
1179
1179
|
}
|
|
1180
|
-
const Je = /* @__PURE__ */ z(
|
|
1180
|
+
const Je = /* @__PURE__ */ z(Ge, [["render", Ke]]), lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1181
1181
|
__proto__: null,
|
|
1182
1182
|
default: Je
|
|
1183
1183
|
}, Symbol.toStringTag, { value: "Module" }));
|