@cling-se/widget 0.19.13 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.internal.md +5 -5
- package/dist/{AddClientCallout-Da7NOVA5.js → AddClientCallout-DOzqL6Ei.js} +4 -4
- package/dist/{AnswerModal-B2ApEIfo.js → AnswerModal-aoQoCe3o.js} +679 -681
- package/dist/{AttachmentItem-BM_DzA34.js → AttachmentItem-DTqI5mwy.js} +4 -4
- package/dist/{BaseUpload-CGVbfe4H.js → BaseUpload-nxVqZX3O.js} +2 -2
- package/dist/{BlockMedia-Dza5TjFS.js → BlockMedia-BYVRSrze.js} +1 -1
- package/dist/{CCallout-BpHUnBsq.js → CCallout-Db9YEwws.js} +1 -1
- package/dist/{CCurrencyDropdown-Glt0CY7w.js → CCurrencyDropdown-sRqig-2P.js} +3 -3
- package/dist/{CDropdownItem-rpcdHW76.js → CDropdownItem-CZO28TQW.js} +96 -96
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-vyObNdUP.js → CFormField.vue_vue_type_script_setup_true_lang-DoO3uBt-.js} +2 -2
- package/dist/{CPhoneFormat-uxMRSGaN.js → CPhoneFormat-CUtvNKnk.js} +1 -1
- package/dist/{CPhoneInput-DnigKWiR.js → CPhoneInput-kOcllgTr.js} +5 -5
- package/dist/{CPriceInput-BNVWpxMd.js → CPriceInput-3X1Et9ny.js} +2 -2
- package/dist/{CSelect-ioLMsxK3.js → CSelect-DVCPHAdo.js} +1 -1
- package/dist/{CSkeleton-BsApoNUe.js → CSkeleton-Bxdz5nlu.js} +1 -1
- package/dist/{ClientAutocomplete-Dof0Wnp9.js → ClientAutocomplete-DCphFPmv.js} +3 -3
- package/dist/{ClientModal-CVsZrXLV.js → ClientModal-oTn-trfu.js} +218 -248
- package/dist/{ColorPicker-Ca2a0Dib.js → ColorPicker-Bs_kXTFe.js} +1 -1
- package/dist/{CompanyModal-C6AUjpnI.js → CompanyModal-DzXAdbGd.js} +7 -7
- package/dist/{ContentWrapper-wTfXDKX-.js → ContentWrapper-2wh0OBB0.js} +6 -6
- package/dist/{CoverBlockSettings-BkWhPlN2.js → CoverBlockSettings-DSOoms9U.js} +7 -7
- package/dist/{DocAnswer-DoRmk17c.js → DocAnswer-B529e1E2.js} +2 -2
- package/dist/{DocDetails-D_E3lERC.js → DocDetails-BHqTgx1H.js} +4 -4
- package/dist/{DocForm-DbpjRBRm.js → DocForm-DOdyjHWA.js} +99 -97
- package/dist/{DocFormSend-DN2k9giy.js → DocFormSend-DfrWjvTy.js} +2 -2
- package/dist/{DocLinks-BvtcG9-D.js → DocLinks-BRJnZ1rA.js} +2 -2
- package/dist/{DocModalBase-D_LZXbIj.js → DocModalBase-Cf-C2hVQ.js} +1 -1
- package/dist/{DocPrint-BrjeZaPK.js → DocPrint-OVtsohie.js} +1 -1
- package/dist/{DocReceipt-BXAGCO6L.js → DocReceipt-tmBbom2x.js} +2 -2
- package/dist/{DocSendReminder-BtcutNHV.js → DocSendReminder-C6fGp2qu.js} +1 -1
- package/dist/{DocTextEditor-DYrnRt6O.js → DocTextEditor-D3EjoBGe.js} +171 -148
- package/dist/{DocTimeline-AZQVm00F.js → DocTimeline-CChHnG2Q.js} +2 -2
- package/dist/{DocumentClient-BTsdprjd.js → DocumentClient-kV1ps0P5.js} +5 -5
- package/dist/{DocumentLayout-DbXHslTY.js → DocumentLayout-B2vKSnWD.js} +21 -21
- package/dist/{DocumentLogotype-B6ENzX02.js → DocumentLogotype-BldUocoJ.js} +4 -4
- package/dist/{DocumentVoided-B9AHAIvl.js → DocumentVoided-rZxx0TDM.js} +1 -1
- package/dist/{EmbedInput-BN6DFeq0.js → EmbedInput-C-bORXEJ.js} +3 -3
- package/dist/{EmbedSettings-DD9uIXDi.js → EmbedSettings-CaRoWZzj.js} +3 -3
- package/dist/{ErrorCallout-BFezjCn3.js → ErrorCallout-BQkcHI49.js} +1 -1
- package/dist/{FilePreviewModal-CXE7RahY.js → FilePreviewModal-egIS6jnw.js} +2 -2
- package/dist/{Flag-BCe6xe-D.js → Flag-DUrDD56m.js} +1 -1
- package/dist/{HeaderSettings-Uyr0qhas.js → HeaderSettings-Cfql7vW5.js} +9 -9
- package/dist/{ImageSelectModal-CSW3shsb.js → ImageSelectModal-3U22LhEN.js} +3 -3
- package/dist/{ImageUploadWrapper-DyunQdxO.js → ImageUploadWrapper-DWmlB4Ha.js} +2 -2
- package/dist/{Index-BRhtJdqU.js → Index-38AEfgHb.js} +4 -4
- package/dist/{Index-DAnljErU.js → Index-7rnf6UDQ.js} +6 -6
- package/dist/{Index-BUwF7tDs.js → Index-BepK484N.js} +3 -3
- package/dist/{Index-r-bi4xvP.js → Index-BlBA6eMl.js} +4 -4
- package/dist/{Index-CdtKkfEh.js → Index-BuPSt_Hb.js} +8 -8
- package/dist/{Index-B8EGrohn.js → Index-C2jLt_-J.js} +4 -4
- package/dist/{Index-DRVJFBy_.js → Index-CKisxkqL.js} +3 -3
- package/dist/{Index-BcPpzfWP.js → Index-CN1flEMh.js} +1 -1
- package/dist/{Index-D91m2xKm.js → Index-CRAk8dmP.js} +26 -17
- package/dist/{Index-BieU1ZTV.js → Index-CZFXyZp-.js} +2 -2
- package/dist/{Index-BGVViv6b.js → Index-C_2Gf2Da.js} +46 -37
- package/dist/{Index-ziuExFyj.js → Index-CcOeCvOe.js} +5 -5
- package/dist/{Index-DI91U3g3.js → Index-CcSq7dWo.js} +1 -1
- package/dist/{Index-Ch2Y3XbD.js → Index-Ckr5i1Li.js} +258 -240
- package/dist/{Index-VRzwBnM4.js → Index-Cl7KBtZX.js} +4 -4
- package/dist/{Index-CpZWI-QN.js → Index-CyAAbl1D.js} +14 -14
- package/dist/{Index-DMDWW0zp.js → Index-CyYFJf0D.js} +5 -5
- package/dist/Index-D05o3s14.js +4 -0
- package/dist/{Index-jSpfKPKP.js → Index-D1PUyqFa.js} +8 -8
- package/dist/{Index-32_BJudF.js → Index-DAI1qHEl.js} +3 -3
- package/dist/{Index-DaXHQaxr.js → Index-DAcRb0rT.js} +4 -4
- package/dist/{Index-BGsQAzCd.js → Index-DCWl_6gz.js} +9 -9
- package/dist/{Index-DH5l8DHo.js → Index-DGq9TdPd.js} +4 -4
- package/dist/{Index-Bh5sjhBw.js → Index-DIlbkelD.js} +1 -1
- package/dist/{Index-wb02iXXO.js → Index-DR3O2rVd.js} +5 -5
- package/dist/{Index-CgdCQDsv.js → Index-DSTJ0ZME.js} +7 -7
- package/dist/{Index-BmoysUi1.js → Index-DUKDykzl.js} +2 -2
- package/dist/{Index-Dssz58AL.js → Index-DfMMDolH.js} +3 -3
- package/dist/{Index-C-rVXB4u.js → Index-DikWyKIw.js} +2 -2
- package/dist/{Index-CATlFu8B.js → Index-Dn_EZ_k2.js} +2 -2
- package/dist/{Index-CLdIolDF.js → Index-STi0ufm3.js} +2 -2
- package/dist/{Index-DBozFV2a.js → Index-l8RB4z_B.js} +4 -4
- package/dist/{Index-DKKc3zZQ.js → Index-phqgcko1.js} +6 -6
- package/dist/{Index-Cnnkb8ey.js → Index-xKr7qP9f.js} +4 -4
- package/dist/{Index.vue_vue_type_script_lang-CUl4C9jx.js → Index.vue_vue_type_script_lang-DsCnlKNn.js} +2 -2
- package/dist/{InputToggleRow-e1gC6XnA.js → InputToggleRow-BiyZz3ua.js} +1 -1
- package/dist/{ManualPopover-BbqVfuJE.js → ManualPopover-CFwiZHZw.js} +1 -1
- package/dist/{MediaWrapper-Bqy-cGev.js → MediaWrapper-B6flFwa-.js} +3 -3
- package/dist/{NotBindingText-_GKq6jSE.js → NotBindingText-CyfRBqiL.js} +2 -2
- package/dist/{PackageGroup-IiQ0mqWg.js → PackageGroup-DDgLD4Yb.js} +5 -5
- package/dist/{PdfTerms-CO7SxSke.js → PdfTerms-zEPJCgb-.js} +2 -2
- package/dist/{PdfViewer-apckUEAj.js → PdfViewer-BNFYiBMf.js} +2 -2
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-gCh1Q-qi.js → PlainHtml.vue_vue_type_script_setup_true_lang-CPGJZjFh.js} +1 -1
- package/dist/{PriceHeader-CXP09nZ6.js → PriceHeader-B9Mk_GDV.js} +7 -7
- package/dist/{SearchApi-CQOtHW43.js → SearchApi-BsSeYGH9.js} +1 -1
- package/dist/{SendForm-C3v06Gwx.js → SendForm-Ci2s-FsJ.js} +8 -8
- package/dist/{Setup-Dr37DSNY.js → Setup-C5uQOyWH.js} +1 -1
- package/dist/{SmartList-Opr_24HD.js → SmartList-BglLgQmN.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-DtvYuVUg.js → Sortable.vue_vue_type_script_setup_true_lang-C-Uy1WwV.js} +1 -1
- package/dist/{TermsSettings-P8IWZn08.js → TermsSettings-BUXZ0GDb.js} +34 -32
- package/dist/{ThemeColorRow-BdXx5ClL.js → ThemeColorRow-EJd126k7.js} +3 -3
- package/dist/{ToggleBinding-BZyqWBnB.js → ToggleBinding-Bxx2OzYq.js} +4 -4
- package/dist/{UploadModal-6E9HzkQ0.js → UploadModal-BjrFM0lw.js} +13 -11
- package/dist/{VideoPlayerInput-DRcDC2q-.js → VideoPlayerInput-o2GX5-Ma.js} +4 -4
- package/dist/{VideoPlayerSettings-Dw7zEg1k.js → VideoPlayerSettings-DXSwsMJl.js} +2 -2
- package/dist/{VideoSelectModal-DIV9-62A.js → VideoSelectModal-BI0-L5dG.js} +3 -3
- package/dist/{focusDrawerMixin-CrKt75PZ.js → focusDrawerMixin-Dz9oC1MR.js} +1 -1
- package/dist/{formDrawerState-BesayjqS.js → formDrawerState-0vhg7tV-.js} +1 -1
- package/dist/fortnoxTheme-B0DA1l7P.js +8 -0
- package/dist/{helpers-DOdzW9pA.js → helpers-Dkn2xKzv.js} +1 -1
- package/dist/{index-DINik6UH.js → index-Bw8qzZRS.js} +1 -1
- package/dist/{index-DWwjiiMe.js → index-D-NDkjvk.js} +1 -1
- package/dist/{index-BHg-4y6B.js → index-DI9iTlQc.js} +8 -8
- package/dist/{index-DNQzIGHD.js → index-DNBN1EEl.js} +642 -565
- package/dist/{index-BnjVWyGe.js → index-Dkh_SXlu.js} +3 -3
- package/dist/{index-DDfG6A20.js → index-c4rO163H.js} +1 -1
- package/dist/{index-Cl5j-fNE.js → index-dqh4rth1.js} +1 -1
- package/dist/index.es.js +3 -33
- package/dist/index.umd.js +142 -142
- package/dist/{main-C18owm58.js → main-DAjWLLG0.js} +5116 -5085
- package/dist/{mapFormMixin-bA_KI0pt.js → mapFormMixin-CFaAoXxf.js} +4 -4
- package/dist/{omit-BVoDlsuC.js → omit-5nzNft5F.js} +2 -2
- package/dist/{publicSenderState-BR7541Fw.js → publicSenderState-BaH8Utk8.js} +1 -1
- package/dist/{splitpanes-OUpaQjCW.js → splitpanes-CxaAqPCT.js} +1 -1
- package/dist/{template-Y3wS95il.js → template-CHAQR6C-.js} +1 -1
- package/dist/{tippy.esm-CQD-ZLcV.js → tippy.esm-DYmyPdOc.js} +5 -5
- package/dist/{useTermsModal-DS9T_NyM.js → useTermsModal-aIBQHQEU.js} +4 -4
- package/dist/{utils-DwKlp8_z.js → utils-CiYKHNqS.js} +1 -1
- package/dist/{validation-b_jF-CIN.js → validation-BRPTZqtn.js} +2 -2
- package/dist/validations-ohsJ5nBz.js +34 -0
- package/dist/widget.css +1 -1
- package/package.json +1 -1
- package/dist/Index-DEBrME_f.js +0 -4
|
@@ -1,40 +1,41 @@
|
|
|
1
|
-
import { J as x, aJ as A, l as
|
|
2
|
-
import "./template-
|
|
3
|
-
import { i as L, s as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { J as x, aJ as A, l as T, _ as H, m as P, b as y, c as f, o as a, w as v, e as u, j as i, d, W as V, t as s, f as p, q as l, x as z, k as B, g as b, a4 as E, ap as N, u as C, al as O, h as M, af as S } from "./main-DAjWLLG0.js";
|
|
2
|
+
import "./template-CHAQR6C-.js";
|
|
3
|
+
import { i as L, s as q } from "./dom-DOcGU3-g.js";
|
|
4
|
+
import { i as $ } from "./DocumentLayout-B2vKSnWD.js";
|
|
5
|
+
import { v as R } from "./validation-BRPTZqtn.js";
|
|
6
|
+
import { i as j } from "./fortnoxTheme-B0DA1l7P.js";
|
|
7
|
+
import { w as D } from "./CDropdownItem-CZO28TQW.js";
|
|
8
|
+
import { D as U } from "./DocModalBase-Cf-C2hVQ.js";
|
|
9
|
+
import { _ as F } from "./CFormField.vue_vue_type_script_setup_true_lang-DoO3uBt-.js";
|
|
10
|
+
import { u as W } from "./index-D-NDkjvk.js";
|
|
11
|
+
import { a as _, m as J, b as K } from "./index-Bw8qzZRS.js";
|
|
12
|
+
function G(e) {
|
|
13
|
+
const { isValid: t } = x(R, null) || {}, { show: n, getOpenInstances: w } = A();
|
|
14
|
+
function o() {
|
|
15
|
+
var c;
|
|
16
|
+
return (c = w()) == null ? void 0 : c.some(
|
|
17
|
+
(m) => {
|
|
17
18
|
var h;
|
|
18
|
-
return ((h =
|
|
19
|
+
return ((h = m.modalAttrs) == null ? void 0 : h.name) === "AnswerModal";
|
|
19
20
|
}
|
|
20
21
|
);
|
|
21
22
|
}
|
|
22
|
-
async function
|
|
23
|
-
if (!
|
|
23
|
+
async function r(c = "accept", m = {}) {
|
|
24
|
+
if (!o() && !(e != null && e.isPreview)) {
|
|
24
25
|
if (typeof t != "function")
|
|
25
26
|
throw new Error("isValid is not a function");
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
c === "accept" && !await t() || n(
|
|
28
|
+
T(
|
|
28
29
|
() => import(
|
|
29
30
|
// @ts-ignore
|
|
30
|
-
"./AnswerModal-
|
|
31
|
+
"./AnswerModal-aoQoCe3o.js"
|
|
31
32
|
)
|
|
32
33
|
),
|
|
33
34
|
{
|
|
34
|
-
mode:
|
|
35
|
+
mode: c,
|
|
35
36
|
_document: e,
|
|
36
|
-
fullScreen:
|
|
37
|
-
calcHeight: !!
|
|
37
|
+
fullScreen: $.value,
|
|
38
|
+
calcHeight: !!m.calcHeight
|
|
38
39
|
},
|
|
39
40
|
{
|
|
40
41
|
name: "AnswerModal",
|
|
@@ -45,25 +46,28 @@ function K(e) {
|
|
|
45
46
|
classes: "overflow-visible",
|
|
46
47
|
transition: "modal-soft",
|
|
47
48
|
clickToClose: !1
|
|
49
|
+
},
|
|
50
|
+
m.onClose && {
|
|
51
|
+
closed: m.onClose
|
|
48
52
|
}
|
|
49
53
|
);
|
|
50
54
|
}
|
|
51
55
|
}
|
|
52
56
|
return {
|
|
53
|
-
answer:
|
|
57
|
+
answer: r
|
|
54
58
|
};
|
|
55
59
|
}
|
|
56
|
-
const
|
|
60
|
+
const Q = {
|
|
57
61
|
i18nOptions: {
|
|
58
62
|
namespaces: "components",
|
|
59
63
|
keyPrefix: "document.propertyDesignationModal"
|
|
60
64
|
},
|
|
61
65
|
components: {
|
|
62
|
-
DocModalBase:
|
|
63
|
-
CField:
|
|
66
|
+
DocModalBase: U,
|
|
67
|
+
CField: F
|
|
64
68
|
},
|
|
65
69
|
emits: ["close"],
|
|
66
|
-
mixins: [
|
|
70
|
+
mixins: [D],
|
|
67
71
|
props: {
|
|
68
72
|
senderName: {
|
|
69
73
|
type: String,
|
|
@@ -80,7 +84,7 @@ const G = {
|
|
|
80
84
|
},
|
|
81
85
|
setup() {
|
|
82
86
|
return {
|
|
83
|
-
v$:
|
|
87
|
+
v$: W()
|
|
84
88
|
};
|
|
85
89
|
},
|
|
86
90
|
data() {
|
|
@@ -97,15 +101,15 @@ const G = {
|
|
|
97
101
|
validations() {
|
|
98
102
|
return {
|
|
99
103
|
condominiumId: {
|
|
100
|
-
required:
|
|
101
|
-
minLength:
|
|
102
|
-
maxLength:
|
|
104
|
+
required: _(this.form === "condominium"),
|
|
105
|
+
minLength: K(4),
|
|
106
|
+
maxLength: J(4)
|
|
103
107
|
},
|
|
104
108
|
condominiumOrgNo: {
|
|
105
|
-
required:
|
|
109
|
+
required: _(this.form === "condominium")
|
|
106
110
|
},
|
|
107
111
|
realEstateId: {
|
|
108
|
-
required:
|
|
112
|
+
required: _(this.form === "realEstate")
|
|
109
113
|
}
|
|
110
114
|
};
|
|
111
115
|
},
|
|
@@ -144,8 +148,8 @@ const G = {
|
|
|
144
148
|
},
|
|
145
149
|
methods: {
|
|
146
150
|
...P({
|
|
147
|
-
putCurrentDoc:
|
|
148
|
-
reloadCurrentDocument:
|
|
151
|
+
putCurrentDoc: b.PUT_CURRENT_PUBLIC_DOCUMENT,
|
|
152
|
+
reloadCurrentDocument: b.RELOAD_CURRENT_DOCUMENT
|
|
149
153
|
}),
|
|
150
154
|
async updateClientPropertyDesignation() {
|
|
151
155
|
if (this.v$.$touch(), this.v$.$invalid) return;
|
|
@@ -167,67 +171,67 @@ const G = {
|
|
|
167
171
|
}
|
|
168
172
|
}
|
|
169
173
|
}
|
|
170
|
-
},
|
|
174
|
+
}, X = { key: 1 }, Y = { class: "mb-2 text-lg font-semibold" }, Z = { class: "text-gray-700" }, ee = { key: 2 }, te = { class: "mb-2 text-lg font-semibold" }, ne = { class: "text-gray-700" }, ie = {
|
|
171
175
|
href: "https://www.lantmateriet.se/",
|
|
172
176
|
target: "_blank",
|
|
173
177
|
rel: "noopener",
|
|
174
178
|
style: { "text-decoration": "underline" }
|
|
175
|
-
},
|
|
179
|
+
}, se = {
|
|
176
180
|
key: 1,
|
|
177
181
|
class: "mb-12 text-center"
|
|
178
|
-
}, oe = { class: "mb-4 text-base font-medium" },
|
|
179
|
-
function
|
|
180
|
-
const
|
|
181
|
-
return
|
|
182
|
+
}, oe = { class: "mb-4 text-base font-medium" }, re = { class: "flex justify-center" }, ae = { class: "mx-4" }, de = { class: "text-sm leading-tight text-gray-700" }, le = { class: "mx-4" }, ce = { class: "text-sm leading-tight text-gray-700" }, me = { key: 2 }, ue = { class: "space-y-6" }, he = { key: 3 }, ve = { class: "flex flex-col items-center justify-center text-center" }, ge = { class: "bg-primary-50 mb-4 flex h-12 w-12 items-center justify-center rounded-full" }, we = { class: "mb-1 text-base font-semibold" }, pe = { class: "mb-6 text-base text-gray-700" }, fe = { class: "mt-4 w-full" };
|
|
183
|
+
function ye(e, t, n, w, o, r) {
|
|
184
|
+
const c = y("CButton"), m = y("CInput"), h = y("CField"), k = y("CIcon"), I = y("DocModalBase");
|
|
185
|
+
return a(), f(I, {
|
|
182
186
|
ref: "root",
|
|
183
|
-
class:
|
|
184
|
-
onClose: t[8] || (t[8] = (
|
|
187
|
+
class: z([{ "full-screen": e.mq === "sm" }]),
|
|
188
|
+
onClose: t[8] || (t[8] = (g) => e.$emit("close"))
|
|
185
189
|
}, {
|
|
186
|
-
default:
|
|
187
|
-
n.fullScreen ? (
|
|
190
|
+
default: v(() => [
|
|
191
|
+
n.fullScreen ? (a(), f(c, {
|
|
188
192
|
key: 0,
|
|
189
193
|
class: "absolute right-4 top-4 z-50",
|
|
190
194
|
icon: "x",
|
|
191
195
|
circle: "",
|
|
192
|
-
onClick: t[0] || (t[0] = (
|
|
193
|
-
})) :
|
|
196
|
+
onClick: t[0] || (t[0] = (g) => e.$emit("close"))
|
|
197
|
+
})) : u("", !0),
|
|
194
198
|
i("div", null, [
|
|
195
|
-
|
|
199
|
+
o.view !== "complete" ? (a(), d("div", {
|
|
196
200
|
key: 0,
|
|
197
|
-
style:
|
|
198
|
-
paddingTop:
|
|
199
|
-
marginTop: `-${
|
|
200
|
-
borderRadius: `${
|
|
201
|
+
style: V({
|
|
202
|
+
paddingTop: o.spacing,
|
|
203
|
+
marginTop: `-${o.spacing}`,
|
|
204
|
+
borderRadius: `${o.cornerRadius} ${o.cornerRadius} 0 0`
|
|
201
205
|
}),
|
|
202
206
|
class: "negate-padding relative mb-8 border-b border-gray-100 bg-gray-50 pb-8 text-center"
|
|
203
207
|
}, [
|
|
204
|
-
|
|
205
|
-
i("div",
|
|
206
|
-
i("div",
|
|
207
|
-
])) :
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
o.view === "start" ? (a(), d("div", X, [
|
|
209
|
+
i("div", Y, s(e.$t("title")), 1),
|
|
210
|
+
i("div", Z, s(e.$t("subTitle", { senderName: n.senderName })), 1)
|
|
211
|
+
])) : u("", !0),
|
|
212
|
+
o.view === "form" ? (a(), d("div", ee, [
|
|
213
|
+
p(c, {
|
|
210
214
|
circle: "",
|
|
211
215
|
class: "absolute left-4 top-4",
|
|
212
216
|
icon: "arrow-left",
|
|
213
|
-
onClick: t[1] || (t[1] = (
|
|
217
|
+
onClick: t[1] || (t[1] = (g) => o.view = "start")
|
|
214
218
|
}),
|
|
215
|
-
i("div",
|
|
216
|
-
i("div",
|
|
217
|
-
l(
|
|
218
|
-
i("a",
|
|
219
|
-
l(" " +
|
|
219
|
+
i("div", te, s(e.$t("howToFind")), 1),
|
|
220
|
+
i("div", ne, [
|
|
221
|
+
l(s(e.$t("goto1")) + " ", 1),
|
|
222
|
+
i("a", ie, s(e.$t("goto2")), 1),
|
|
223
|
+
l(" " + s(e.$t("goto3")), 1)
|
|
220
224
|
])
|
|
221
|
-
])) :
|
|
222
|
-
], 4)) :
|
|
223
|
-
|
|
224
|
-
i("div", oe,
|
|
225
|
-
i("div",
|
|
226
|
-
i("div",
|
|
225
|
+
])) : u("", !0)
|
|
226
|
+
], 4)) : u("", !0),
|
|
227
|
+
o.view === "start" ? (a(), d("div", se, [
|
|
228
|
+
i("div", oe, s(e.$t("whereTitle")), 1),
|
|
229
|
+
i("div", re, [
|
|
230
|
+
i("div", ae, [
|
|
227
231
|
i("div", {
|
|
228
232
|
class: "mb-2 flex h-24 w-24 cursor-pointer items-center justify-center rounded-xl border border-gray-300 bg-gray-50 hover:bg-gray-100 active:bg-gray-200",
|
|
229
233
|
onClick: t[2] || (t[2] = () => {
|
|
230
|
-
|
|
234
|
+
o.view = "form", o.form = "realEstate";
|
|
231
235
|
})
|
|
232
236
|
}, t[9] || (t[9] = [
|
|
233
237
|
i("svg", {
|
|
@@ -246,17 +250,17 @@ function pe(e, t, n, v, s, a) {
|
|
|
246
250
|
])
|
|
247
251
|
], -1)
|
|
248
252
|
])),
|
|
249
|
-
i("div",
|
|
250
|
-
l(
|
|
253
|
+
i("div", de, [
|
|
254
|
+
l(s(e.$t("house")), 1),
|
|
251
255
|
t[10] || (t[10] = i("br", null, null, -1)),
|
|
252
|
-
l("/ " +
|
|
256
|
+
l("/ " + s(e.$t("realEstate")), 1)
|
|
253
257
|
])
|
|
254
258
|
]),
|
|
255
|
-
i("div",
|
|
259
|
+
i("div", le, [
|
|
256
260
|
i("div", {
|
|
257
261
|
class: "mb-2 flex h-24 w-24 cursor-pointer items-center justify-center rounded-xl border border-gray-300 bg-gray-50 hover:bg-gray-100 active:bg-gray-200",
|
|
258
262
|
onClick: t[3] || (t[3] = () => {
|
|
259
|
-
|
|
263
|
+
o.view = "form", o.form = "condominium";
|
|
260
264
|
})
|
|
261
265
|
}, t[11] || (t[11] = [
|
|
262
266
|
i("svg", {
|
|
@@ -275,108 +279,108 @@ function pe(e, t, n, v, s, a) {
|
|
|
275
279
|
])
|
|
276
280
|
], -1)
|
|
277
281
|
])),
|
|
278
|
-
i("div",
|
|
279
|
-
l(
|
|
282
|
+
i("div", ce, [
|
|
283
|
+
l(s(e.$t("condominium")), 1),
|
|
280
284
|
t[12] || (t[12] = i("br", null, null, -1)),
|
|
281
|
-
l("/ " +
|
|
285
|
+
l("/ " + s(e.$t("apartment")), 1)
|
|
282
286
|
])
|
|
283
287
|
])
|
|
284
288
|
])
|
|
285
|
-
])) :
|
|
286
|
-
|
|
287
|
-
i("div",
|
|
288
|
-
|
|
289
|
+
])) : u("", !0),
|
|
290
|
+
o.view === "form" ? (a(), d("div", me, [
|
|
291
|
+
i("div", ue, [
|
|
292
|
+
o.form === "realEstate" ? (a(), f(h, {
|
|
289
293
|
key: 0,
|
|
290
|
-
vuelidate:
|
|
291
|
-
"vuelidate-messages":
|
|
294
|
+
vuelidate: w.v$.realEstateId,
|
|
295
|
+
"vuelidate-messages": r.messages.realEstateId,
|
|
292
296
|
label: e.$t("propertyDesignation")
|
|
293
297
|
}, {
|
|
294
|
-
default:
|
|
295
|
-
|
|
296
|
-
modelValue:
|
|
297
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
298
|
+
default: v(() => [
|
|
299
|
+
p(m, {
|
|
300
|
+
modelValue: o.realEstateId,
|
|
301
|
+
"onUpdate:modelValue": t[4] || (t[4] = (g) => o.realEstateId = g),
|
|
298
302
|
placeholder: e.$t("propertyDesignationPlaceholder")
|
|
299
303
|
}, null, 8, ["modelValue", "placeholder"])
|
|
300
304
|
]),
|
|
301
305
|
_: 1
|
|
302
|
-
}, 8, ["vuelidate", "vuelidate-messages", "label"])) :
|
|
303
|
-
|
|
306
|
+
}, 8, ["vuelidate", "vuelidate-messages", "label"])) : u("", !0),
|
|
307
|
+
o.form === "condominium" ? (a(), f(h, {
|
|
304
308
|
key: 1,
|
|
305
|
-
vuelidate:
|
|
306
|
-
"vuelidate-messages":
|
|
309
|
+
vuelidate: w.v$.condominiumId,
|
|
310
|
+
"vuelidate-messages": r.messages.condominiumId,
|
|
307
311
|
label: e.$t("condominiumId")
|
|
308
312
|
}, {
|
|
309
|
-
default:
|
|
310
|
-
|
|
311
|
-
modelValue:
|
|
312
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
313
|
+
default: v(() => [
|
|
314
|
+
p(m, {
|
|
315
|
+
modelValue: o.condominiumId,
|
|
316
|
+
"onUpdate:modelValue": t[5] || (t[5] = (g) => o.condominiumId = g),
|
|
313
317
|
placeholder: e.$t("condominiumIdPlaceholder"),
|
|
314
318
|
type: "number"
|
|
315
319
|
}, null, 8, ["modelValue", "placeholder"])
|
|
316
320
|
]),
|
|
317
321
|
_: 1
|
|
318
|
-
}, 8, ["vuelidate", "vuelidate-messages", "label"])) :
|
|
319
|
-
|
|
322
|
+
}, 8, ["vuelidate", "vuelidate-messages", "label"])) : u("", !0),
|
|
323
|
+
o.form === "condominium" ? (a(), f(h, {
|
|
320
324
|
key: 2,
|
|
321
|
-
vuelidate:
|
|
322
|
-
"vuelidate-messages":
|
|
325
|
+
vuelidate: w.v$.condominiumOrgNo,
|
|
326
|
+
"vuelidate-messages": r.messages.condominiumOrgNo,
|
|
323
327
|
label: e.$t("condominiumOrgNo")
|
|
324
328
|
}, {
|
|
325
|
-
default:
|
|
326
|
-
|
|
327
|
-
modelValue:
|
|
328
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
329
|
+
default: v(() => [
|
|
330
|
+
p(m, {
|
|
331
|
+
modelValue: o.condominiumOrgNo,
|
|
332
|
+
"onUpdate:modelValue": t[6] || (t[6] = (g) => o.condominiumOrgNo = g),
|
|
329
333
|
placeholder: e.$t("condominiumOrgNoPlaceholder"),
|
|
330
334
|
type: "number",
|
|
331
335
|
class: "mt-3"
|
|
332
336
|
}, null, 8, ["modelValue", "placeholder"])
|
|
333
337
|
]),
|
|
334
338
|
_: 1
|
|
335
|
-
}, 8, ["vuelidate", "vuelidate-messages", "label"])) :
|
|
339
|
+
}, 8, ["vuelidate", "vuelidate-messages", "label"])) : u("", !0),
|
|
336
340
|
i("div", null, [
|
|
337
|
-
|
|
341
|
+
p(c, {
|
|
338
342
|
type: "secondary",
|
|
339
343
|
wide: "",
|
|
340
|
-
onClick:
|
|
344
|
+
onClick: r.updateClientPropertyDesignation
|
|
341
345
|
}, {
|
|
342
|
-
default:
|
|
343
|
-
l(
|
|
346
|
+
default: v(() => [
|
|
347
|
+
l(s(e.$t("_common:save")), 1)
|
|
344
348
|
]),
|
|
345
349
|
_: 1
|
|
346
350
|
}, 8, ["onClick"])
|
|
347
351
|
])
|
|
348
352
|
])
|
|
349
|
-
])) :
|
|
350
|
-
|
|
351
|
-
i("div",
|
|
352
|
-
i("div",
|
|
353
|
-
|
|
353
|
+
])) : u("", !0),
|
|
354
|
+
o.view === "complete" ? (a(), d("div", he, [
|
|
355
|
+
i("div", ve, [
|
|
356
|
+
i("div", ge, [
|
|
357
|
+
p(k, {
|
|
354
358
|
type: "check",
|
|
355
359
|
class: "text-primary-500"
|
|
356
360
|
})
|
|
357
361
|
]),
|
|
358
|
-
i("div",
|
|
359
|
-
i("div",
|
|
360
|
-
i("div",
|
|
361
|
-
|
|
362
|
+
i("div", we, s(e.$t("savedTitle")), 1),
|
|
363
|
+
i("div", pe, s(e.$t("savedSubTitle", { senderName: n.senderName })), 1),
|
|
364
|
+
i("div", fe, [
|
|
365
|
+
p(c, {
|
|
362
366
|
type: "secondary",
|
|
363
367
|
wide: "",
|
|
364
|
-
onClick: t[7] || (t[7] = (
|
|
368
|
+
onClick: t[7] || (t[7] = (g) => e.$emit("close"))
|
|
365
369
|
}, {
|
|
366
|
-
default:
|
|
367
|
-
l(
|
|
370
|
+
default: v(() => [
|
|
371
|
+
l(s(e.$t("_common:close")), 1)
|
|
368
372
|
]),
|
|
369
373
|
_: 1
|
|
370
374
|
})
|
|
371
375
|
])
|
|
372
376
|
])
|
|
373
|
-
])) :
|
|
377
|
+
])) : u("", !0)
|
|
374
378
|
])
|
|
375
379
|
]),
|
|
376
380
|
_: 1
|
|
377
381
|
}, 8, ["class"]);
|
|
378
382
|
}
|
|
379
|
-
const
|
|
383
|
+
const Ce = /* @__PURE__ */ H(Q, [["render", ye]]), _e = {
|
|
380
384
|
i18nOptions: {
|
|
381
385
|
namespaces: "docAnswer",
|
|
382
386
|
messages: {
|
|
@@ -389,7 +393,7 @@ const ye = /* @__PURE__ */ D(G, [["render", pe]]), Ce = {
|
|
|
389
393
|
}
|
|
390
394
|
},
|
|
391
395
|
name: "DocumentAnswerRead",
|
|
392
|
-
mixins: [
|
|
396
|
+
mixins: [D],
|
|
393
397
|
inject: {
|
|
394
398
|
isPdf: {
|
|
395
399
|
default: !1
|
|
@@ -408,16 +412,21 @@ const ye = /* @__PURE__ */ D(G, [["render", pe]]), Ce = {
|
|
|
408
412
|
}
|
|
409
413
|
},
|
|
410
414
|
setup(e) {
|
|
411
|
-
const { answer: t } =
|
|
412
|
-
return {
|
|
415
|
+
const { answer: t } = G(e._document);
|
|
416
|
+
return {
|
|
417
|
+
answer: (n, w) => t(n, { onClose: w })
|
|
418
|
+
};
|
|
413
419
|
},
|
|
414
420
|
data() {
|
|
415
421
|
return {
|
|
416
422
|
isInViewport: !1,
|
|
417
|
-
scrollToElement:
|
|
423
|
+
scrollToElement: q
|
|
418
424
|
};
|
|
419
425
|
},
|
|
420
426
|
computed: {
|
|
427
|
+
acceptIcon() {
|
|
428
|
+
return j && this.viewerAcceptType === "bankId" ? "bankId" : "check";
|
|
429
|
+
},
|
|
421
430
|
viewerId() {
|
|
422
431
|
var e;
|
|
423
432
|
return ((e = this._document._doc) == null ? void 0 : e.viewerId) || null;
|
|
@@ -425,6 +434,10 @@ const ye = /* @__PURE__ */ D(G, [["render", pe]]), Ce = {
|
|
|
425
434
|
isPreview() {
|
|
426
435
|
return this._document.isPreview;
|
|
427
436
|
},
|
|
437
|
+
viewerAcceptType() {
|
|
438
|
+
var e, t;
|
|
439
|
+
return (t = (e = this._document.viewer) == null ? void 0 : e.answerMethod) == null ? void 0 : t.accept;
|
|
440
|
+
},
|
|
428
441
|
modalHeight() {
|
|
429
442
|
return this.mq === "sm" ? "100%" : "auto";
|
|
430
443
|
},
|
|
@@ -469,7 +482,7 @@ const ye = /* @__PURE__ */ D(G, [["render", pe]]), Ce = {
|
|
|
469
482
|
},
|
|
470
483
|
showPropertyDesignation() {
|
|
471
484
|
this.$modal.show(
|
|
472
|
-
|
|
485
|
+
Ce,
|
|
473
486
|
{
|
|
474
487
|
senderName: this._document.sender.user.name,
|
|
475
488
|
propertyDesignation: this.propertyDesignation,
|
|
@@ -484,146 +497,151 @@ const ye = /* @__PURE__ */ D(G, [["render", pe]]), Ce = {
|
|
|
484
497
|
transition: "fade-in-slide-up"
|
|
485
498
|
}
|
|
486
499
|
);
|
|
500
|
+
},
|
|
501
|
+
onAnswer(e) {
|
|
502
|
+
e === "accept" && this.allowPropertyDesignation && !this.propertyDesignation ? this.answer(e, () => {
|
|
503
|
+
var t;
|
|
504
|
+
(t = this._document.viewer.answer) != null && t.didAccept && this.showPropertyDesignation();
|
|
505
|
+
}) : this.answer(e);
|
|
487
506
|
}
|
|
488
507
|
}
|
|
489
|
-
},
|
|
508
|
+
}, be = {
|
|
490
509
|
key: 0,
|
|
491
510
|
style: { padding: "calc(3 * var(--rem)) 0" }
|
|
492
|
-
},
|
|
511
|
+
}, He = {
|
|
493
512
|
ref: "answerButtons",
|
|
494
513
|
class: "flex w-full justify-center"
|
|
495
|
-
},
|
|
514
|
+
}, Ve = {
|
|
496
515
|
key: 1,
|
|
497
516
|
class: "flex w-full justify-center"
|
|
498
|
-
},
|
|
517
|
+
}, De = ["innerHTML"], ke = ["innerHTML"], Ie = {
|
|
499
518
|
key: 2,
|
|
500
519
|
class: "text-center"
|
|
501
|
-
},
|
|
520
|
+
}, xe = { style: { "font-weight": "600", "font-size": "calc(calc(1 * var(--rem)) + 2px)", "margin-bottom": "calc(0.5 * var(--rem))" } }, Ae = { style: { "text-decoration": "underline" } }, Te = { key: 3 }, Pe = { class: "callout accepted" }, ze = { class: "title" }, Be = {
|
|
502
521
|
key: 4,
|
|
503
522
|
class: "callout denied"
|
|
504
|
-
},
|
|
523
|
+
}, Ee = { class: "title" }, Ne = {
|
|
505
524
|
key: 5,
|
|
506
525
|
class: "callout expired"
|
|
507
|
-
},
|
|
526
|
+
}, Oe = { class: "title" }, Me = {
|
|
508
527
|
key: 0,
|
|
509
528
|
class: "flex justify-center"
|
|
510
529
|
};
|
|
511
|
-
function
|
|
512
|
-
const
|
|
513
|
-
return n._document.answerActions.showActions && !
|
|
514
|
-
i("div",
|
|
515
|
-
|
|
530
|
+
function Se(e, t, n, w, o, r) {
|
|
531
|
+
const c = y("CButton"), m = E("tooltip");
|
|
532
|
+
return n._document.answerActions.showActions && !r.isPdf ? (a(), d("div", be, [
|
|
533
|
+
i("div", He, [
|
|
534
|
+
p(O, {
|
|
516
535
|
name: "fade",
|
|
517
536
|
mode: "out-in"
|
|
518
537
|
}, {
|
|
519
|
-
default:
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
538
|
+
default: v(() => [
|
|
539
|
+
r.viewerAcceptType === "inPerson" ? (a(), d("div", {
|
|
540
|
+
key: 0,
|
|
541
|
+
style: V([{ "max-width": "720px", margin: "0 auto", padding: "0 calc(3 * var(--rem))" }, e.mq === "sm" ? { padding: "0 calc(1.5 * var(--rem))" } : null])
|
|
542
|
+
}, [
|
|
543
|
+
l(s(n._document.$t("chapters.answerButtons.inPersonSignatureHint")) + " ", 1),
|
|
544
|
+
(a(), f(N(n._document.sender.user.email ? "a" : "span"), {
|
|
545
|
+
href: `mailto:${n._document.sender.user.email}`
|
|
546
|
+
}, {
|
|
547
|
+
default: v(() => [
|
|
548
|
+
l(s(n._document.sender.company.name || n._document.$t("theSender")), 1)
|
|
549
|
+
]),
|
|
550
|
+
_: 1
|
|
551
|
+
}, 8, ["href"]))
|
|
552
|
+
], 4)) : (n._document.answerActions.canAnswer || r.isPreview) && n._document.answerActions.showActions ? (a(), d("div", Ve, [
|
|
553
|
+
r.customHtmlDeny ? (a(), d("div", {
|
|
523
554
|
key: 0,
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
a.customHtmlDeny ? (r(), d("div", {
|
|
537
|
-
key: 0,
|
|
538
|
-
onClick: t[0] || (t[0] = (C) => v.onAnswer("decline")),
|
|
539
|
-
innerHTML: a.customHtmlDeny
|
|
540
|
-
}, null, 8, Ve)) : b((r(), p(m, {
|
|
541
|
-
key: 1,
|
|
542
|
-
disabled: a.isPreview,
|
|
543
|
-
size: "medium",
|
|
544
|
-
class: "text-gray-400",
|
|
545
|
-
onClick: t[1] || (t[1] = (C) => v.onAnswer("decline"))
|
|
546
|
-
}, {
|
|
547
|
-
default: g(() => [
|
|
548
|
-
l(o(n._document.$t("deny").capitalize()), 1)
|
|
549
|
-
]),
|
|
550
|
-
_: 1
|
|
551
|
-
}, 8, ["disabled"])), [
|
|
552
|
-
[u, a.isPreview && e.$t("previewTooltip")]
|
|
555
|
+
onClick: t[0] || (t[0] = (h) => r.onAnswer("decline")),
|
|
556
|
+
innerHTML: r.customHtmlDeny
|
|
557
|
+
}, null, 8, De)) : C((a(), f(c, {
|
|
558
|
+
key: 1,
|
|
559
|
+
disabled: r.isPreview,
|
|
560
|
+
size: "medium",
|
|
561
|
+
class: "text-gray-400",
|
|
562
|
+
"data-doc-answer-action": "deny",
|
|
563
|
+
onClick: t[1] || (t[1] = (h) => r.onAnswer("decline"))
|
|
564
|
+
}, {
|
|
565
|
+
default: v(() => [
|
|
566
|
+
l(s(n._document.$t("deny").capitalize()), 1)
|
|
553
567
|
]),
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
])) : n._document.answerActions.hasAnswered && n._document.answerActions.waitingForOthers ? (r(), d("div", ke, [
|
|
577
|
-
i("div", Ie, [
|
|
578
|
-
l(o(n._document.$t("chapters.answerButtons.youHave")) + " ", 1),
|
|
579
|
-
b((r(), d("span", xe, [
|
|
580
|
-
l(o(n._document.viewer.answer.didAccept ? n._document.$t("approved") : n._document.$t("denied")), 1)
|
|
581
|
-
])), [
|
|
582
|
-
[
|
|
583
|
-
u,
|
|
584
|
-
`${e.$formatDate(n._document.viewer.answer.didAnswerAt, "Pp")}`
|
|
585
|
-
]
|
|
586
|
-
]),
|
|
587
|
-
l(" " + o(" " + n._document.$t("theDocument")) + ". ", 1)
|
|
568
|
+
_: 1
|
|
569
|
+
}, 8, ["disabled"])), [
|
|
570
|
+
[m, r.isPreview && e.$t("previewTooltip")]
|
|
571
|
+
]),
|
|
572
|
+
r.customHtmlAccept ? (a(), d("div", {
|
|
573
|
+
key: 2,
|
|
574
|
+
onClick: t[2] || (t[2] = (h) => r.onAnswer("accept")),
|
|
575
|
+
innerHTML: r.customHtmlAccept
|
|
576
|
+
}, null, 8, ke)) : C((a(), f(c, {
|
|
577
|
+
key: 3,
|
|
578
|
+
"icon-props": { strokeWidth: 2.5 },
|
|
579
|
+
disabled: r.isPreview,
|
|
580
|
+
type: "success",
|
|
581
|
+
size: "medium",
|
|
582
|
+
"icon-left": r.acceptIcon,
|
|
583
|
+
raised: "",
|
|
584
|
+
style: { "margin-left": "1em", "padding-left": "1.5em", "padding-right": "1.5em", background: "var(--block-answer-accept-bg, hsl(114deg, 75%, 43%))" },
|
|
585
|
+
"data-doc-answer-action": "accept",
|
|
586
|
+
onClick: t[3] || (t[3] = (h) => r.onAnswer("accept"))
|
|
587
|
+
}, {
|
|
588
|
+
default: v(() => [
|
|
589
|
+
l(s(n._document.$t("sign").capitalize()), 1)
|
|
588
590
|
]),
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
])
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
])
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
591
|
+
_: 1
|
|
592
|
+
}, 8, ["disabled", "icon-left"])), [
|
|
593
|
+
[m, r.isPreview && e.$t("previewTooltip")]
|
|
594
|
+
])
|
|
595
|
+
])) : n._document.answerActions.hasAnswered && n._document.answerActions.waitingForOthers ? (a(), d("div", Ie, [
|
|
596
|
+
i("div", xe, [
|
|
597
|
+
l(s(n._document.$t("chapters.answerButtons.youHave")) + " ", 1),
|
|
598
|
+
C((a(), d("span", Ae, [
|
|
599
|
+
l(s(n._document.viewer.answer.didAccept ? n._document.$t("approved") : n._document.$t("denied")), 1)
|
|
600
|
+
])), [
|
|
601
|
+
[
|
|
602
|
+
m,
|
|
603
|
+
`${e.$formatDate(n._document.viewer.answer.didAnswerAt, "Pp")}`
|
|
604
|
+
]
|
|
605
|
+
]),
|
|
606
|
+
l(" " + s(" " + n._document.$t("theDocument")) + ". ", 1)
|
|
607
|
+
]),
|
|
608
|
+
i("div", null, s(n._document.$t("chapters.answerButtons.waitingDescription", {
|
|
609
|
+
remaining: n._document.remainingSignatures
|
|
610
|
+
})), 1)
|
|
611
|
+
])) : n._document.status === "accepted" ? (a(), d("div", Te, [
|
|
612
|
+
i("div", Pe, [
|
|
613
|
+
i("div", ze, s(n._document.$t("chapters.answerButtons.approveTitle")), 1),
|
|
614
|
+
i("div", null, s(n._document.$t("chapters.answerButtons.approveDescription", {
|
|
607
615
|
sender: n._document.sender.company.name || n._document.$t("theSender")
|
|
608
616
|
})), 1)
|
|
609
|
-
])
|
|
610
|
-
]
|
|
611
|
-
|
|
617
|
+
])
|
|
618
|
+
])) : n._document.status === "denied" ? (a(), d("div", Be, [
|
|
619
|
+
i("div", Ee, s(n._document.$t("chapters.answerButtons.denyTitle")), 1),
|
|
620
|
+
i("div", null, s(n._document.$t("chapters.answerButtons.denyDescription", {
|
|
621
|
+
sender: n._document.sender.company.name || n._document.$t("theSender")
|
|
622
|
+
})), 1)
|
|
623
|
+
])) : n._document.status === "expired" ? (a(), d("div", Ne, [
|
|
624
|
+
i("div", Oe, s(n._document.$t("chapters.answerButtons.expiredTitle")), 1),
|
|
625
|
+
i("div", null, s(n._document.$t("chapters.answerButtons.expiredDescription", {
|
|
626
|
+
sender: n._document.sender.company.name || n._document.$t("theSender")
|
|
627
|
+
})), 1)
|
|
628
|
+
])) : u("", !0)
|
|
629
|
+
]),
|
|
612
630
|
_: 1
|
|
613
631
|
})
|
|
614
632
|
], 512),
|
|
615
|
-
n._document.status === "accepted" &&
|
|
633
|
+
n._document.status === "accepted" && r.allowPropertyDesignation && n._document.answerActions.hasAnswered ? (a(), d("div", Me, [
|
|
616
634
|
i("div", {
|
|
617
635
|
class: "answer button accept",
|
|
618
636
|
style: { "padding-left": "calc(1.5 * var(--rem))", "padding-right": "calc(1.5 * var(--rem))" },
|
|
619
|
-
onClick: t[4] || (t[4] = (h) =>
|
|
620
|
-
},
|
|
621
|
-
`chapters.answerButtons.${
|
|
637
|
+
onClick: t[4] || (t[4] = (h) => r.showPropertyDesignation())
|
|
638
|
+
}, s(n._document.$t(
|
|
639
|
+
`chapters.answerButtons.${r.propertyDesignation ? "editPropDes" : "enterPropDes"}`
|
|
622
640
|
)), 1)
|
|
623
|
-
])) :
|
|
624
|
-
])) :
|
|
641
|
+
])) : u("", !0)
|
|
642
|
+
])) : u("", !0);
|
|
625
643
|
}
|
|
626
|
-
const
|
|
644
|
+
const Qe = /* @__PURE__ */ H(_e, [["render", Se], ["__scopeId", "data-v-8defa929"]]);
|
|
627
645
|
export {
|
|
628
|
-
|
|
646
|
+
Qe as default
|
|
629
647
|
};
|