@cling-se/widget 0.17.3 → 0.18.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 +24 -0
- package/dist/AddClientCallout-CCt78VvH.js +101 -0
- package/dist/AnswerModal-B4LwVv2N.js +3371 -0
- package/dist/AttachmentItem-DnvYffKP.js +171 -0
- package/dist/BaseUpload-DFoV0ZLe.js +6503 -0
- package/dist/BlockMedia-Amo_kdHo.js +103 -0
- package/dist/CCallout-Gd06ds6O.js +104 -0
- package/dist/{CCurrencyDropdown-CXXQu8th.js → CCurrencyDropdown-B4GNmOGA.js} +91 -53
- package/dist/CDropdownItem-BUNVCpSR.js +749 -0
- package/dist/CFormField.vue_vue_type_script_setup_true_lang-Bo2J0c4G.js +292 -0
- package/dist/{CPhoneFormat-BtBGl8b4.js → CPhoneFormat-DmN5r9Ci.js} +13 -21
- package/dist/CPhoneInput-B6iyhsOG.js +207 -0
- package/dist/CPriceInput-BLQaNu1d.js +142 -0
- package/dist/CSelect-BVO9iO9L.js +98 -0
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-C9loRtrk.js +51 -0
- package/dist/ClientAutocomplete-C__yUaxD.js +532 -0
- package/dist/ClientModal-B9cbuEiC.js +1188 -0
- package/dist/ColorPicker-G2kkxL7_.js +1408 -0
- package/dist/CompanyModal-por9AG4P.js +250 -0
- package/dist/ContentWrapper-CQtaGA2u.js +265 -0
- package/dist/CoverBlockSettings-BCBDouyl.js +861 -0
- package/dist/DocAnswer-BrKctwrY.js +33 -0
- package/dist/DocDetails-B_LWVHGt.js +452 -0
- package/dist/DocForm-D6T7NmfO.js +6772 -0
- package/dist/DocFormSend-COYPrhl7.js +171 -0
- package/dist/DocLinks-B0LjxXIk.js +36 -0
- package/dist/DocModalBase-DObZHuYr.js +29 -0
- package/dist/DocPrint-CkDq78fB.js +399 -0
- package/dist/DocReceipt-CYBPyePC.js +341 -0
- package/dist/DocSendReminder-Dau6s43e.js +181 -0
- package/dist/{DocTextEditor-yD9Dt_um.js → DocTextEditor-CVn6gE1i.js} +7907 -5579
- package/dist/DocTimeline-ChBDPOfd.js +537 -0
- package/dist/DocumentClient-MLXzzXLb.js +90 -0
- package/dist/DocumentLayout-BMHOt380.js +1434 -0
- package/dist/DocumentLogotype-Clj3fopX.js +162 -0
- package/dist/DocumentVoided-B5_MSBbC.js +33 -0
- package/dist/EmbedInput-CzkOa02p.js +156 -0
- package/dist/EmbedSettings-Cf_F3KrM.js +103 -0
- package/dist/ErrorCallout-CJn6NCse.js +34 -0
- package/dist/FilePreviewModal-Di1VnPNY.js +202 -0
- package/dist/Flag-C4_G5IY1.js +41 -0
- package/dist/HeaderSettings-DWN0TjVD.js +720 -0
- package/dist/ImageSelectModal-DmAJ9PrN.js +119 -0
- package/dist/ImageUploadWrapper-QLEhA_dI.js +1585 -0
- package/dist/Index-B06eCuBA.js +76 -0
- package/dist/Index-B8Zj0-MX.js +87 -0
- package/dist/{Index-C_aIQ908.js → Index-BBBXL4zh.js} +319 -214
- package/dist/Index-BCHLxp7B.js +21 -0
- package/dist/Index-BDAp1CwZ.js +363 -0
- package/dist/Index-BFbcjFo4.js +16 -0
- package/dist/{Index-CRiATiQn.js → Index-BODJXJNp.js} +10 -18
- package/dist/Index-BOx_9tTM.js +136 -0
- package/dist/Index-BgZNiD7A.js +47 -0
- package/dist/Index-Bt97lEsI.js +228 -0
- package/dist/Index-C9aBeBBk.js +70 -0
- package/dist/Index-CE3pWPzp.js +49 -0
- package/dist/Index-CMdPSsp4.js +38 -0
- package/dist/Index-CNhBDG2e.js +126 -0
- package/dist/Index-CdsOdgG2.js +28 -0
- package/dist/{Index-Ch9r5yhG.js → Index-CmxFh3dW.js} +9 -17
- package/dist/Index-CpxzwwQS.js +52 -0
- package/dist/Index-CxTwWRD9.js +93 -0
- package/dist/Index-D9WFWlE6.js +140 -0
- package/dist/Index-D9bulLeI.js +39 -0
- package/dist/{Index-RWMPRDAE.js → Index-DL_9LzoR.js} +10 -18
- package/dist/Index-DR-sGE3Y.js +25 -0
- package/dist/Index-DRoOW5Pn.js +163 -0
- package/dist/Index-DTn47-hP.js +74 -0
- package/dist/Index-DeGDlj0B.js +68 -0
- package/dist/Index-DhYYK4bK.js +28 -0
- package/dist/Index-Dssdb-0Z.js +629 -0
- package/dist/Index-OcBnU480.js +200 -0
- package/dist/Index-Qh_8JqAv.js +3477 -0
- package/dist/Index-W10PQb8i.js +102 -0
- package/dist/Index-lbWFEELM.js +4 -0
- package/dist/Index-qFAg7VVU.js +1098 -0
- package/dist/Index-rDndJKo1.js +160 -0
- package/dist/{Index-Dfq7egc1.js → Index-s-6Qh_NE.js} +47 -60
- package/dist/Index.vue_vue_type_script_lang-CriDqp1F.js +671 -0
- package/dist/InputToggleRow-DJarYsVL.js +99 -0
- package/dist/ManualPopover-BMrkEHtV.js +65 -0
- package/dist/MediaWrapper-BYdVpmov.js +18 -0
- package/dist/{NotBindingText-CC7TxUqg.js → NotBindingText-DGjJoN8-.js} +13 -17
- package/dist/PackageGroup-q7_oBOqw.js +1060 -0
- package/dist/PdfTerms-DBEClYQ5.js +34 -0
- package/dist/PdfViewer-C_y5sqXB.js +392 -0
- package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D5ZLw34T.js +17 -0
- package/dist/PriceHeader-BSwv3mzc.js +488 -0
- package/dist/{SearchApi-G2Hvp0Dd.js → SearchApi-BM6TTqxW.js} +37 -49
- package/dist/SendForm-DfmBbhp9.js +6689 -0
- package/dist/Setup-BC1feKr_.js +47 -0
- package/dist/{SmartList-BynTuXtB.js → SmartList-B3pgsg4S.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-YOP-Y07m.js +1349 -0
- package/dist/{TermsSettings-cA5YAO77.js → TermsSettings-DEkACrRU.js} +169 -56
- package/dist/ThemeColorRow-qG8Dkkyj.js +105 -0
- package/dist/ToggleBinding-Cdtl_-1s.js +44 -0
- package/dist/UploadModal-1OWPRxA5.js +134 -0
- package/dist/VideoPlayerInput-DgFNjiKK.js +134 -0
- package/dist/VideoPlayerSettings-CFuA-7RC.js +78 -0
- package/dist/VideoSelectModal-CSv67eA8.js +217 -0
- package/dist/{anime.es-BrPTThYb.js → anime.es-4wvNItHq.js} +205 -201
- package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
- package/dist/{dom-Ds4ypDrd.js → dom-CkTGWrfu.js} +3 -6
- package/dist/{focusDrawerMixin-CximZA1J.js → focusDrawerMixin-r-OZchfV.js} +1 -1
- package/dist/{formDrawerState-CkNGdxn5.js → formDrawerState-COVczNhJ.js} +2 -2
- package/dist/helpers-ChwW54Ex.js +46 -0
- package/dist/index-BMZle8Ew.js +513 -0
- package/dist/index-Bf-fiKJf.js +268 -0
- package/dist/index-Bg4JRi5S.js +125 -0
- package/dist/index-C7chK2UD.js +3525 -0
- package/dist/index-CR52qIBO.js +149 -0
- package/dist/index-D1x9O_nJ.js +188 -0
- package/dist/index-YFcPqc9m.js +508 -0
- package/dist/index.es.js +2 -5
- package/dist/index.umd.js +303 -1486
- package/dist/main-DI0diChK.js +57570 -0
- package/dist/mapFormMixin-Cgvwie9a.js +1528 -0
- package/dist/omit-DpjD7Dj9.js +56 -0
- package/dist/{publicSenderState-CGEm9EYe.js → publicSenderState-BcjNldje.js} +4 -4
- package/dist/splitpanes-BypKTSRL.js +342 -0
- package/dist/template-Dzexob5I.js +1572 -0
- package/dist/tippy.esm-0UMN6kWf.js +1994 -0
- package/dist/useTermsModal-DzH_PDFP.js +87 -0
- package/dist/{utils-Dr4AcaE9.js → utils--kBYCNZD.js} +8 -11
- package/dist/validation-B-omH73u.js +40 -0
- package/dist/widget.css +1 -0
- package/package.json +20 -25
- package/dist/AddClientCallout-Br6IhwGH.js +0 -48
- package/dist/AnswerModal-CsWltR6j.js +0 -3879
- package/dist/AttachmentItem-BG7FuSCD.js +0 -85
- package/dist/BaseDatePicker-PSNBtUIh.js +0 -3187
- package/dist/BaseUpload-BfEurAAV.js +0 -1977
- package/dist/BlockMedia-Bo3OfNSU.js +0 -76
- package/dist/CCallout-CAjM8-1X.js +0 -58
- package/dist/CDropdownItem-CN7gSfgY.js +0 -640
- package/dist/CFormField-Clvcf2Jh.js +0 -240
- package/dist/CPhoneInput-CEHXh5jM.js +0 -138
- package/dist/CPriceInput-D2c07SXp.js +0 -116
- package/dist/CSelect-Cz2IPzxS.js +0 -91
- package/dist/CSkeleton-AsnvnD-m.js +0 -55
- package/dist/ClientAutocomplete-CZ55-DKe.js +0 -438
- package/dist/ClientModal-CgUhWZ5L.js +0 -666
- package/dist/ColorPicker-IFGHqH-u.js +0 -2879
- package/dist/CompanyModal-TLSBFo3U.js +0 -147
- package/dist/ContentWrapper-HClxKPuT.js +0 -190
- package/dist/CoverBlockSettings-D99hAa6e.js +0 -659
- package/dist/DocAnswer-CTV_Bpt7.js +0 -36
- package/dist/DocDetails-CQe5htXj.js +0 -263
- package/dist/DocForm-6Efv5_oz.js +0 -5017
- package/dist/DocFormSend-DbXcklxU.js +0 -146
- package/dist/DocLinks-BO545zbL.js +0 -38
- package/dist/DocModalBase-DXHNJ-6i.js +0 -28
- package/dist/DocPrint-Bf2U4FQN.js +0 -240
- package/dist/DocReceipt-CWXvC7bY.js +0 -217
- package/dist/DocSendReminder-CRzBM2NJ.js +0 -140
- package/dist/DocTimeline-DGVOk8-2.js +0 -485
- package/dist/DocumentClient-Das9BaJ7.js +0 -136
- package/dist/DocumentLayout-4q8rmTVT.js +0 -4880
- package/dist/DocumentLogotype-DLncJJAB.js +0 -92
- package/dist/DocumentVoided-CcI9lX27.js +0 -25
- package/dist/EmbedInput-BPdy0lGS.js +0 -117
- package/dist/EmbedSettings-L2iwYLQK.js +0 -74
- package/dist/ErrorCallout-Ds_tBT02.js +0 -27
- package/dist/FilePreviewModal-hxUu330p.js +0 -81
- package/dist/Flag-1-HcT5Dz.js +0 -46
- package/dist/HeaderSettings-C27fMugK.js +0 -440
- package/dist/ImageSelectModal-BKDIyxF4.js +0 -86
- package/dist/ImageUploadWrapper-BiYzUQur.js +0 -1604
- package/dist/Index-5BOWxcPG.js +0 -26
- package/dist/Index-B1Odktov.js +0 -754
- package/dist/Index-B3d5BjEn.js +0 -25
- package/dist/Index-B3sSU_4X.js +0 -54
- package/dist/Index-B5Dqsh3K.js +0 -150
- package/dist/Index-B6aO1c_w.js +0 -62
- package/dist/Index-BGfICxJQ.js +0 -643
- package/dist/Index-BHopC0hv.js +0 -24
- package/dist/Index-BJXcSmp_.js +0 -55
- package/dist/Index-BQe6QjQZ.js +0 -25
- package/dist/Index-BmXx_x6t.js +0 -77
- package/dist/Index-C692qMTG.js +0 -294
- package/dist/Index-CEvbw-3i.js +0 -41
- package/dist/Index-CYSULnpn.js +0 -32
- package/dist/Index-CdtYzwAM.js +0 -107
- package/dist/Index-CetF2FW0.js +0 -230
- package/dist/Index-Cv6XLM20.js +0 -73
- package/dist/Index-Cwy8ff76.js +0 -154
- package/dist/Index-D34z4UEY.js +0 -84
- package/dist/Index-DNCei-lp.js +0 -56
- package/dist/Index-DUbxgIYB.js +0 -2445
- package/dist/Index-DVwn_LLf.js +0 -28
- package/dist/Index-Dla-mesV.js +0 -146
- package/dist/Index-KtUkOPI2.js +0 -58
- package/dist/Index-LjnOTVJk.js +0 -66
- package/dist/Index-ky1SRtfY.js +0 -94
- package/dist/Index-mceZW2NX.js +0 -41
- package/dist/Index-tD3hZjh8.js +0 -144
- package/dist/Index-vM5kDtC2.js +0 -33
- package/dist/InputToggleRow-BmDuSbE2.js +0 -57
- package/dist/ManualPopover-CQfjPvFe.js +0 -60
- package/dist/MediaWrapper-DDzcjR6V.js +0 -23
- package/dist/PackageGroup-mAGXfZDv.js +0 -704
- package/dist/PdfTerms-BH_Nwf2h.js +0 -31
- package/dist/PdfViewer-mBLxI8bA.js +0 -383
- package/dist/PlainHtml-B7gUNNZd.js +0 -27
- package/dist/PriceHeader-DClYMPcq.js +0 -338
- package/dist/SendForm-Cxv_m8Rq.js +0 -1023
- package/dist/Setup-B90VDZTG.js +0 -50
- package/dist/ThemeColorRow-D-Z7w4Wk.js +0 -69
- package/dist/ToggleBinding-DOeTcWzi.js +0 -42
- package/dist/UploadModal-DOPLVEpV.js +0 -95
- package/dist/VideoPlayerInput-1zG06elO.js +0 -97
- package/dist/VideoPlayerSettings-O-4rAYYh.js +0 -61
- package/dist/VideoSelectModal-DzqFrqCg.js +0 -104
- package/dist/answerDocumentMixin-HBiNWYCH.js +0 -51
- package/dist/debounce-Ch1d3526.js +0 -84
- package/dist/formValidationMixin-D_MzsHsR.js +0 -49
- package/dist/index-BNdbPq4J.js +0 -492
- package/dist/index-BXzugeJ6.js +0 -81
- package/dist/index-C5wcxrC6.js +0 -167
- package/dist/index-CgDOs7t4.js +0 -2700
- package/dist/index-Cj-_2coz.js +0 -351
- package/dist/index-DpqV5y0K.js +0 -102
- package/dist/main-BL_yzf2r.js +0 -57357
- package/dist/mapFormMixin-Cu_vkTP-.js +0 -3028
- package/dist/omit-Dfe_H1Ft.js +0 -31
- package/dist/simplebar.min-CRlLD1Oz.js +0 -71
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/style.css +0 -4
- package/dist/throttle-BX_w77tW.js +0 -18
- package/dist/tippy.esm-n4arfVzA.js +0 -1805
- package/dist/vuedraggable.umd-DW4PJoZ3.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
|
@@ -0,0 +1,629 @@
|
|
|
1
|
+
import { P as x, aH as A, z, a as P, g as V, y as T, _ as D, e as y, o as r, c as p, w as g, f as c, s as i, b as d, l as k, v as o, d as w, B as l, n as B, a9 as E, q as N, ap as O, E as b, ai as M, a2 as S } from "./main-DI0diChK.js";
|
|
2
|
+
import "./template-Dzexob5I.js";
|
|
3
|
+
import { s as L, i as $ } from "./dom-CkTGWrfu.js";
|
|
4
|
+
import { v as q } from "./validation-B-omH73u.js";
|
|
5
|
+
import { i as R } from "./DocumentLayout-BMHOt380.js";
|
|
6
|
+
import { w as I } from "./CDropdownItem-BUNVCpSR.js";
|
|
7
|
+
import { D as j } from "./DocModalBase-DObZHuYr.js";
|
|
8
|
+
import { _ as U } from "./CFormField.vue_vue_type_script_setup_true_lang-Bo2J0c4G.js";
|
|
9
|
+
import { u as F } from "./index-BMZle8Ew.js";
|
|
10
|
+
import { a as H, m as W, b as K } from "./index-CR52qIBO.js";
|
|
11
|
+
function G(e) {
|
|
12
|
+
const { isValid: t } = x(q, null) || {}, { show: n, getOpenInstances: v } = A();
|
|
13
|
+
function s() {
|
|
14
|
+
var m;
|
|
15
|
+
return (m = v()) == null ? void 0 : m.some(
|
|
16
|
+
(u) => {
|
|
17
|
+
var h;
|
|
18
|
+
return ((h = u.modalAttrs) == null ? void 0 : h.name) === "AnswerModal";
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
async function a(m = "accept", u = {}) {
|
|
23
|
+
if (!s() && !(e != null && e.isPreview)) {
|
|
24
|
+
if (typeof t != "function")
|
|
25
|
+
throw new Error("isValid is not a function");
|
|
26
|
+
m === "accept" && !await t() || n(
|
|
27
|
+
z(
|
|
28
|
+
() => import(
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
"./AnswerModal-B4LwVv2N.js"
|
|
31
|
+
)
|
|
32
|
+
),
|
|
33
|
+
{
|
|
34
|
+
mode: m,
|
|
35
|
+
_document: e,
|
|
36
|
+
fullScreen: R.value,
|
|
37
|
+
calcHeight: !!u.calcHeight
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "AnswerModal",
|
|
41
|
+
adaptive: !0,
|
|
42
|
+
height: "auto",
|
|
43
|
+
width: "90%",
|
|
44
|
+
maxWidth: 420,
|
|
45
|
+
classes: "overflow-visible",
|
|
46
|
+
transition: "modal-soft",
|
|
47
|
+
clickToClose: !1
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
answer: a
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
const J = {
|
|
57
|
+
i18nOptions: {
|
|
58
|
+
namespaces: "components",
|
|
59
|
+
keyPrefix: "document.propertyDesignationModal"
|
|
60
|
+
},
|
|
61
|
+
components: {
|
|
62
|
+
DocModalBase: j,
|
|
63
|
+
CField: U
|
|
64
|
+
},
|
|
65
|
+
emits: ["close"],
|
|
66
|
+
mixins: [I],
|
|
67
|
+
props: {
|
|
68
|
+
senderName: {
|
|
69
|
+
type: String,
|
|
70
|
+
required: !0
|
|
71
|
+
},
|
|
72
|
+
propertyDesignation: {
|
|
73
|
+
type: Object,
|
|
74
|
+
default: null
|
|
75
|
+
},
|
|
76
|
+
fullScreen: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: !1
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
setup() {
|
|
82
|
+
return {
|
|
83
|
+
v$: F()
|
|
84
|
+
};
|
|
85
|
+
},
|
|
86
|
+
data() {
|
|
87
|
+
return {
|
|
88
|
+
cornerRadius: 0,
|
|
89
|
+
spacing: 0,
|
|
90
|
+
view: "start",
|
|
91
|
+
form: "",
|
|
92
|
+
realEstateId: "",
|
|
93
|
+
condominiumId: null,
|
|
94
|
+
condominiumOrgNo: null
|
|
95
|
+
};
|
|
96
|
+
},
|
|
97
|
+
validations() {
|
|
98
|
+
return {
|
|
99
|
+
condominiumId: {
|
|
100
|
+
required: H(this.form === "condominium"),
|
|
101
|
+
minLength: W(4),
|
|
102
|
+
maxLength: K(4)
|
|
103
|
+
},
|
|
104
|
+
condominiumOrgNo: {
|
|
105
|
+
required: H(this.form === "condominium")
|
|
106
|
+
},
|
|
107
|
+
realEstateId: {
|
|
108
|
+
required: H(this.form === "realEstate")
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
},
|
|
112
|
+
computed: {
|
|
113
|
+
messages() {
|
|
114
|
+
const e = (t) => this.$t(`validations.${t}`);
|
|
115
|
+
return {
|
|
116
|
+
condominiumId: {
|
|
117
|
+
required: e("condominiumId.required"),
|
|
118
|
+
minLength: e("condominiumId.minLength"),
|
|
119
|
+
maxLength: e("condominiumId.maxLength")
|
|
120
|
+
},
|
|
121
|
+
condominiumOrgNo: {
|
|
122
|
+
required: e("condominiumOrgNo.required")
|
|
123
|
+
},
|
|
124
|
+
realEstateId: {
|
|
125
|
+
required: e("realEstateId.required")
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
created() {
|
|
131
|
+
if (this.propertyDesignation) {
|
|
132
|
+
const {
|
|
133
|
+
propertyType: e = "",
|
|
134
|
+
propertyId: t = "",
|
|
135
|
+
condominiumOrgNo: n = null
|
|
136
|
+
} = this.propertyDesignation;
|
|
137
|
+
this.form = e, e === "realEstate" ? this.realEstateId = t : this.condominiumId = t, this.condominiumOrgNo = n;
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
mounted() {
|
|
141
|
+
this.spacing = window.getComputedStyle(this.$refs.root.$el).paddingTop, this.cornerRadius = window.getComputedStyle(
|
|
142
|
+
this.$refs.root.$el
|
|
143
|
+
).borderRadius;
|
|
144
|
+
},
|
|
145
|
+
methods: {
|
|
146
|
+
...P({
|
|
147
|
+
putCurrentDoc: V.PUT_CURRENT_PUBLIC_DOCUMENT,
|
|
148
|
+
reloadCurrentDocument: V.RELOAD_CURRENT_DOCUMENT
|
|
149
|
+
}),
|
|
150
|
+
async updateClientPropertyDesignation() {
|
|
151
|
+
if (this.v$.$touch(), this.v$.$invalid) return;
|
|
152
|
+
const e = {
|
|
153
|
+
propertyType: this.form,
|
|
154
|
+
propertyId: this.form === "realEstate" ? this.realEstateId : this.condominiumId,
|
|
155
|
+
...this.form === "condominium" && {
|
|
156
|
+
condominiumOrgNo: this.condominiumOrgNo
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
try {
|
|
160
|
+
await this.putCurrentDoc({
|
|
161
|
+
body: {
|
|
162
|
+
["clients[0].region.propertyDesignation"]: e
|
|
163
|
+
}
|
|
164
|
+
}), this.reloadCurrentDocument(), this.view = "complete";
|
|
165
|
+
} catch (t) {
|
|
166
|
+
T(t);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}, Q = { key: 1 }, X = { class: "mb-2 text-lg font-semibold" }, Y = { class: "text-gray-700" }, Z = { key: 2 }, ee = { class: "mb-2 text-lg font-semibold" }, te = { class: "text-gray-700" }, ne = {
|
|
171
|
+
href: "https://www.lantmateriet.se/",
|
|
172
|
+
target: "_blank",
|
|
173
|
+
rel: "noopener",
|
|
174
|
+
style: { "text-decoration": "underline" }
|
|
175
|
+
}, ie = {
|
|
176
|
+
key: 1,
|
|
177
|
+
class: "mb-12 text-center"
|
|
178
|
+
}, oe = { class: "mb-4 text-base font-medium" }, se = { class: "flex justify-center" }, re = { class: "mx-4" }, ae = { class: "text-sm leading-tight text-gray-700" }, de = { class: "mx-4" }, le = { class: "text-sm leading-tight text-gray-700" }, me = { key: 2 }, ce = { class: "space-y-6" }, ue = { key: 3 }, he = { class: "flex flex-col items-center justify-center text-center" }, ve = { class: "bg-primary-50 mb-4 flex h-12 w-12 items-center justify-center rounded-full" }, ge = { class: "mb-1 text-base font-semibold" }, fe = { class: "mb-6 text-base text-gray-700" }, we = { class: "mt-4 w-full" };
|
|
179
|
+
function pe(e, t, n, v, s, a) {
|
|
180
|
+
const m = y("CButton"), u = y("CInput"), h = y("CField"), _ = y("CIcon"), C = y("DocModalBase");
|
|
181
|
+
return r(), p(C, {
|
|
182
|
+
ref: "root",
|
|
183
|
+
class: B([{ "full-screen": e.mq === "sm" }]),
|
|
184
|
+
onClose: t[8] || (t[8] = (f) => e.$emit("close"))
|
|
185
|
+
}, {
|
|
186
|
+
default: g(() => [
|
|
187
|
+
n.fullScreen ? (r(), p(m, {
|
|
188
|
+
key: 0,
|
|
189
|
+
class: "absolute right-4 top-4 z-50",
|
|
190
|
+
icon: "x",
|
|
191
|
+
circle: "",
|
|
192
|
+
onClick: t[0] || (t[0] = (f) => e.$emit("close"))
|
|
193
|
+
})) : c("", !0),
|
|
194
|
+
i("div", null, [
|
|
195
|
+
s.view !== "complete" ? (r(), d("div", {
|
|
196
|
+
key: 0,
|
|
197
|
+
style: k({
|
|
198
|
+
paddingTop: s.spacing,
|
|
199
|
+
marginTop: `-${s.spacing}`,
|
|
200
|
+
borderRadius: `${s.cornerRadius} ${s.cornerRadius} 0 0`
|
|
201
|
+
}),
|
|
202
|
+
class: "negate-padding relative mb-8 border-b border-gray-100 bg-gray-50 pb-8 text-center"
|
|
203
|
+
}, [
|
|
204
|
+
s.view === "start" ? (r(), d("div", Q, [
|
|
205
|
+
i("div", X, o(e.$t("title")), 1),
|
|
206
|
+
i("div", Y, o(e.$t("subTitle", { senderName: n.senderName })), 1)
|
|
207
|
+
])) : c("", !0),
|
|
208
|
+
s.view === "form" ? (r(), d("div", Z, [
|
|
209
|
+
w(m, {
|
|
210
|
+
circle: "",
|
|
211
|
+
class: "absolute left-4 top-4",
|
|
212
|
+
icon: "arrow-left",
|
|
213
|
+
onClick: t[1] || (t[1] = (f) => s.view = "start")
|
|
214
|
+
}),
|
|
215
|
+
i("div", ee, o(e.$t("howToFind")), 1),
|
|
216
|
+
i("div", te, [
|
|
217
|
+
l(o(e.$t("goto1")) + " ", 1),
|
|
218
|
+
i("a", ne, o(e.$t("goto2")), 1),
|
|
219
|
+
l(" " + o(e.$t("goto3")), 1)
|
|
220
|
+
])
|
|
221
|
+
])) : c("", !0)
|
|
222
|
+
], 4)) : c("", !0),
|
|
223
|
+
s.view === "start" ? (r(), d("div", ie, [
|
|
224
|
+
i("div", oe, o(e.$t("whereTitle")), 1),
|
|
225
|
+
i("div", se, [
|
|
226
|
+
i("div", re, [
|
|
227
|
+
i("div", {
|
|
228
|
+
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
|
+
onClick: t[2] || (t[2] = () => {
|
|
230
|
+
s.view = "form", s.form = "realEstate";
|
|
231
|
+
})
|
|
232
|
+
}, t[9] || (t[9] = [
|
|
233
|
+
i("svg", {
|
|
234
|
+
class: "text-gray-400",
|
|
235
|
+
width: "59",
|
|
236
|
+
height: "41",
|
|
237
|
+
viewBox: "0 0 59 59",
|
|
238
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
239
|
+
}, [
|
|
240
|
+
i("g", {
|
|
241
|
+
fill: "currentColor",
|
|
242
|
+
"fill-rule": "evenodd"
|
|
243
|
+
}, [
|
|
244
|
+
i("path", { d: "M6 28h47v29H6V28zm6 7.998101V40.0019C12 41.113294 12.89458 42 13.998101 42H18.0019C19.113294 42 20 41.10542 20 40.001899V35.9981C20 34.886706 19.10542 34 18.001899 34H13.9981C12.886706 34 12 34.89458 12 35.998101zm22-.007306V54h11V35.990795C45 34.898212 44.108144 34 43.007983 34h-7.015966C34.900177 34 34 34.89131 34 35.990795zM27.189354 1.837583C28.46549.536998 30.53366.53613 31.813677 1.840673L56.5 27h-54l9.85551-10.044348V7.141778h6.733007v2.95186l8.100837-8.256055zM25.5 15.861211v4.003797c0 1.111395.89458 1.998102 1.998101 1.998102H31.5019c1.111395 0 1.998101-.89458 1.998101-1.998102v-4.003797c0-1.111395-.89458-1.998101-1.998101-1.998101H27.4981c-1.111395 0-1.998101.89458-1.998101 1.998101z" }),
|
|
245
|
+
i("path", { d: "M0 56.004882C0 54.897616.90314 54 1.996843 54h55.006314C58.105983 54 59 54.8939 59 56.004882V59H0v-2.995118z" })
|
|
246
|
+
])
|
|
247
|
+
], -1)
|
|
248
|
+
])),
|
|
249
|
+
i("div", ae, [
|
|
250
|
+
l(o(e.$t("house")), 1),
|
|
251
|
+
t[10] || (t[10] = i("br", null, null, -1)),
|
|
252
|
+
l("/ " + o(e.$t("realEstate")), 1)
|
|
253
|
+
])
|
|
254
|
+
]),
|
|
255
|
+
i("div", de, [
|
|
256
|
+
i("div", {
|
|
257
|
+
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
|
+
onClick: t[3] || (t[3] = () => {
|
|
259
|
+
s.view = "form", s.form = "condominium";
|
|
260
|
+
})
|
|
261
|
+
}, t[11] || (t[11] = [
|
|
262
|
+
i("svg", {
|
|
263
|
+
class: "text-gray-400",
|
|
264
|
+
width: "59",
|
|
265
|
+
height: "50",
|
|
266
|
+
viewBox: "0 0 59 73",
|
|
267
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
268
|
+
}, [
|
|
269
|
+
i("g", {
|
|
270
|
+
fill: "currentColor",
|
|
271
|
+
"fill-rule": "evenodd"
|
|
272
|
+
}, [
|
|
273
|
+
i("path", { d: "M6 9.004723C6 7.34526 7.343394 6 8.993614 6h41.012771C51.659714 6 53 7.342697 53 9.004723V71H6V9.004723zm5 4.993378V18.0019C11 19.113294 11.89458 20 12.998101 20H17.0019C18.113294 20 19 19.10542 19 18.001899V13.9981C19 12.886706 18.10542 12 17.001899 12H12.9981C11.886706 12 11 12.89458 11 13.998101zm14.5 0V18.0019C25.5 19.113294 26.39458 20 27.498101 20H31.5019C32.613294 20 33.5 19.10542 33.5 18.001899V13.9981C33.5 12.886706 32.60542 12 31.501899 12H27.4981C26.386706 12 25.5 12.89458 25.5 13.998101zm14.5 0V18.0019C40 19.113294 40.89458 20 41.998101 20H46.0019C47.113294 20 48 19.10542 48 18.001899V13.9981C48 12.886706 47.10542 12 46.001899 12H41.9981C40.886706 12 40 12.89458 40 13.998101zm-29 12V30.0019C11 31.113294 11.89458 32 12.998101 32H17.0019C18.113294 32 19 31.10542 19 30.001899V25.9981C19 24.886706 18.10542 24 17.001899 24H12.9981C11.886706 24 11 24.89458 11 25.998101zm14.5 0V30.0019C25.5 31.113294 26.39458 32 27.498101 32H31.5019C32.613294 32 33.5 31.10542 33.5 30.001899V25.9981C33.5 24.886706 32.60542 24 31.501899 24H27.4981C26.386706 24 25.5 24.89458 25.5 25.998101zm14.5 0V30.0019C40 31.113294 40.89458 32 41.998101 32H46.0019C47.113294 32 48 31.10542 48 30.001899V25.9981C48 24.886706 47.10542 24 46.001899 24H41.9981C40.886706 24 40 24.89458 40 25.998101zm-29 12V42.0019C11 43.113294 11.89458 44 12.998101 44H17.0019C18.113294 44 19 43.10542 19 42.001899V37.9981C19 36.886706 18.10542 36 17.001899 36H12.9981C11.886706 36 11 36.89458 11 37.998101zm14.5 0V42.0019C25.5 43.113294 26.39458 44 27.498101 44H31.5019C32.613294 44 33.5 43.10542 33.5 42.001899V37.9981C33.5 36.886706 32.60542 36 31.501899 36H27.4981C26.386706 36 25.5 36.89458 25.5 37.998101zm14.5 0V42.0019C40 43.113294 40.89458 44 41.998101 44H46.0019C47.113294 44 48 43.10542 48 42.001899V37.9981C48 36.886706 47.10542 36 46.001899 36H41.9981C40.886706 36 40 36.89458 40 37.998101zm-29 12V54.0019C11 55.113294 11.89458 56 12.998101 56H17.0019C18.113294 56 19 55.10542 19 54.001899V49.9981C19 48.886706 18.10542 48 17.001899 48H12.9981C11.886706 48 11 48.89458 11 49.998101zm14.5 0V54.0019C25.5 55.113294 26.39458 56 27.498101 56H31.5019C32.613294 56 33.5 55.10542 33.5 54.001899V49.9981C33.5 48.886706 32.60542 48 31.501899 48H27.4981C26.386706 48 25.5 48.89458 25.5 49.998101zM21 60.997391V68h17v-7.002608C38 59.895858 37.104522 59 35.999894 59H23.000106C21.890058 59 21 59.894263 21 60.997392zm19-10.99929V54.0019C40 55.113294 40.89458 56 41.998101 56H46.0019C47.113294 56 48 55.10542 48 54.001899V49.9981C48 48.886706 47.10542 48 46.001899 48H41.9981C40.886706 48 40 48.89458 40 49.998101zM10 2.5C10 1.119288 11.125134 0 12.498953 0h34.002094C47.88118 0 49 1.109662 49 2.5V5H10V2.5z" }),
|
|
274
|
+
i("path", { d: "M0 70.004881C0 68.897616.90314 68 1.996843 68h55.006314C58.105983 68 59 68.8939 59 70.004881V73H0v-2.995119z" })
|
|
275
|
+
])
|
|
276
|
+
], -1)
|
|
277
|
+
])),
|
|
278
|
+
i("div", le, [
|
|
279
|
+
l(o(e.$t("condominium")), 1),
|
|
280
|
+
t[12] || (t[12] = i("br", null, null, -1)),
|
|
281
|
+
l("/ " + o(e.$t("apartment")), 1)
|
|
282
|
+
])
|
|
283
|
+
])
|
|
284
|
+
])
|
|
285
|
+
])) : c("", !0),
|
|
286
|
+
s.view === "form" ? (r(), d("div", me, [
|
|
287
|
+
i("div", ce, [
|
|
288
|
+
s.form === "realEstate" ? (r(), p(h, {
|
|
289
|
+
key: 0,
|
|
290
|
+
vuelidate: v.v$.realEstateId,
|
|
291
|
+
"vuelidate-messages": a.messages.realEstateId,
|
|
292
|
+
label: e.$t("propertyDesignation")
|
|
293
|
+
}, {
|
|
294
|
+
default: g(() => [
|
|
295
|
+
w(u, {
|
|
296
|
+
modelValue: s.realEstateId,
|
|
297
|
+
"onUpdate:modelValue": t[4] || (t[4] = (f) => s.realEstateId = f),
|
|
298
|
+
placeholder: e.$t("propertyDesignationPlaceholder")
|
|
299
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
300
|
+
]),
|
|
301
|
+
_: 1
|
|
302
|
+
}, 8, ["vuelidate", "vuelidate-messages", "label"])) : c("", !0),
|
|
303
|
+
s.form === "condominium" ? (r(), p(h, {
|
|
304
|
+
key: 1,
|
|
305
|
+
vuelidate: v.v$.condominiumId,
|
|
306
|
+
"vuelidate-messages": a.messages.condominiumId,
|
|
307
|
+
label: e.$t("condominiumId")
|
|
308
|
+
}, {
|
|
309
|
+
default: g(() => [
|
|
310
|
+
w(u, {
|
|
311
|
+
modelValue: s.condominiumId,
|
|
312
|
+
"onUpdate:modelValue": t[5] || (t[5] = (f) => s.condominiumId = f),
|
|
313
|
+
placeholder: e.$t("condominiumIdPlaceholder"),
|
|
314
|
+
type: "number"
|
|
315
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
316
|
+
]),
|
|
317
|
+
_: 1
|
|
318
|
+
}, 8, ["vuelidate", "vuelidate-messages", "label"])) : c("", !0),
|
|
319
|
+
s.form === "condominium" ? (r(), p(h, {
|
|
320
|
+
key: 2,
|
|
321
|
+
vuelidate: v.v$.condominiumOrgNo,
|
|
322
|
+
"vuelidate-messages": a.messages.condominiumOrgNo,
|
|
323
|
+
label: e.$t("condominiumOrgNo")
|
|
324
|
+
}, {
|
|
325
|
+
default: g(() => [
|
|
326
|
+
w(u, {
|
|
327
|
+
modelValue: s.condominiumOrgNo,
|
|
328
|
+
"onUpdate:modelValue": t[6] || (t[6] = (f) => s.condominiumOrgNo = f),
|
|
329
|
+
placeholder: e.$t("condominiumOrgNoPlaceholder"),
|
|
330
|
+
type: "number",
|
|
331
|
+
class: "mt-3"
|
|
332
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
333
|
+
]),
|
|
334
|
+
_: 1
|
|
335
|
+
}, 8, ["vuelidate", "vuelidate-messages", "label"])) : c("", !0),
|
|
336
|
+
i("div", null, [
|
|
337
|
+
w(m, {
|
|
338
|
+
type: "secondary",
|
|
339
|
+
wide: "",
|
|
340
|
+
onClick: a.updateClientPropertyDesignation
|
|
341
|
+
}, {
|
|
342
|
+
default: g(() => [
|
|
343
|
+
l(o(e.$t("_common:save")), 1)
|
|
344
|
+
]),
|
|
345
|
+
_: 1
|
|
346
|
+
}, 8, ["onClick"])
|
|
347
|
+
])
|
|
348
|
+
])
|
|
349
|
+
])) : c("", !0),
|
|
350
|
+
s.view === "complete" ? (r(), d("div", ue, [
|
|
351
|
+
i("div", he, [
|
|
352
|
+
i("div", ve, [
|
|
353
|
+
w(_, {
|
|
354
|
+
type: "check",
|
|
355
|
+
class: "text-primary-500"
|
|
356
|
+
})
|
|
357
|
+
]),
|
|
358
|
+
i("div", ge, o(e.$t("savedTitle")), 1),
|
|
359
|
+
i("div", fe, o(e.$t("savedSubTitle", { senderName: n.senderName })), 1),
|
|
360
|
+
i("div", we, [
|
|
361
|
+
w(m, {
|
|
362
|
+
type: "secondary",
|
|
363
|
+
wide: "",
|
|
364
|
+
onClick: t[7] || (t[7] = (f) => e.$emit("close"))
|
|
365
|
+
}, {
|
|
366
|
+
default: g(() => [
|
|
367
|
+
l(o(e.$t("_common:close")), 1)
|
|
368
|
+
]),
|
|
369
|
+
_: 1
|
|
370
|
+
})
|
|
371
|
+
])
|
|
372
|
+
])
|
|
373
|
+
])) : c("", !0)
|
|
374
|
+
])
|
|
375
|
+
]),
|
|
376
|
+
_: 1
|
|
377
|
+
}, 8, ["class"]);
|
|
378
|
+
}
|
|
379
|
+
const ye = /* @__PURE__ */ D(J, [["render", pe]]), Ce = {
|
|
380
|
+
i18nOptions: {
|
|
381
|
+
namespaces: "docAnswer",
|
|
382
|
+
messages: {
|
|
383
|
+
en: {
|
|
384
|
+
previewTooltip: "Only your clients can answer"
|
|
385
|
+
},
|
|
386
|
+
sv: {
|
|
387
|
+
previewTooltip: "Enbart din mottagare kan besvara"
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
name: "DocumentAnswerRead",
|
|
392
|
+
mixins: [I],
|
|
393
|
+
inject: {
|
|
394
|
+
isPdf: {
|
|
395
|
+
default: !1
|
|
396
|
+
},
|
|
397
|
+
customHtmlAccept: {
|
|
398
|
+
default: ""
|
|
399
|
+
},
|
|
400
|
+
customHtmlDeny: {
|
|
401
|
+
default: ""
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
props: {
|
|
405
|
+
_document: {
|
|
406
|
+
type: Object,
|
|
407
|
+
required: !0
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
setup(e) {
|
|
411
|
+
const { answer: t } = G(e._document);
|
|
412
|
+
return { onAnswer: t };
|
|
413
|
+
},
|
|
414
|
+
data() {
|
|
415
|
+
return {
|
|
416
|
+
isInViewport: !1,
|
|
417
|
+
scrollToElement: L
|
|
418
|
+
};
|
|
419
|
+
},
|
|
420
|
+
computed: {
|
|
421
|
+
viewerId() {
|
|
422
|
+
var e;
|
|
423
|
+
return ((e = this._document._doc) == null ? void 0 : e.viewerId) || null;
|
|
424
|
+
},
|
|
425
|
+
isPreview() {
|
|
426
|
+
return this._document.isPreview;
|
|
427
|
+
},
|
|
428
|
+
modalHeight() {
|
|
429
|
+
return this.mq === "sm" ? "100%" : "auto";
|
|
430
|
+
},
|
|
431
|
+
allowPropertyDesignation() {
|
|
432
|
+
const { prices: e } = this._document;
|
|
433
|
+
if (!e || !e.region) return !1;
|
|
434
|
+
const { houseWorkType: t } = e.region;
|
|
435
|
+
return ["rot", "greenRot15", "greenRot20", "greenRot50"].includes(
|
|
436
|
+
t
|
|
437
|
+
);
|
|
438
|
+
},
|
|
439
|
+
propertyDesignation() {
|
|
440
|
+
return E(this._document, "clients[0].region.propertyDesignation", null);
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
watch: {
|
|
444
|
+
$route: {
|
|
445
|
+
immediate: !0,
|
|
446
|
+
handler(e) {
|
|
447
|
+
e != null && e.hash && this.onAnswer("accept", { calcHeight: !0 });
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
isInViewport: {
|
|
451
|
+
immediate: !0,
|
|
452
|
+
handler(e, t) {
|
|
453
|
+
e !== t && N.trigger("ui:document.block.answer.visible", e);
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
mounted() {
|
|
458
|
+
window.addEventListener("scroll", this.scrollHandler, {
|
|
459
|
+
capture: !0,
|
|
460
|
+
passive: !0
|
|
461
|
+
}), this.$route.name === "docPropertyDesignation" && this.showPropertyDesignation();
|
|
462
|
+
},
|
|
463
|
+
unmounted() {
|
|
464
|
+
window.removeEventListener("scroll", this.scrollHandler);
|
|
465
|
+
},
|
|
466
|
+
methods: {
|
|
467
|
+
scrollHandler() {
|
|
468
|
+
this.$refs.answerButtons && (this.isInViewport = $(this.$refs.answerButtons));
|
|
469
|
+
},
|
|
470
|
+
showPropertyDesignation() {
|
|
471
|
+
this.$modal.show(
|
|
472
|
+
ye,
|
|
473
|
+
{
|
|
474
|
+
senderName: this._document.sender.user.name,
|
|
475
|
+
propertyDesignation: this.propertyDesignation,
|
|
476
|
+
fullScreen: this.modalHeight === "100%"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
adaptive: !0,
|
|
480
|
+
height: this.modalHeight,
|
|
481
|
+
width: "100%",
|
|
482
|
+
maxWidth: this.modalHeight === "100%" ? 999 : 400,
|
|
483
|
+
classes: "overflow-visible",
|
|
484
|
+
transition: "fade-in-slide-up"
|
|
485
|
+
}
|
|
486
|
+
);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}, _e = {
|
|
490
|
+
key: 0,
|
|
491
|
+
style: { padding: "calc(3 * var(--rem)) 0" }
|
|
492
|
+
}, be = {
|
|
493
|
+
ref: "answerButtons",
|
|
494
|
+
class: "flex w-full justify-center"
|
|
495
|
+
}, He = {
|
|
496
|
+
key: 1,
|
|
497
|
+
class: "flex w-full justify-center"
|
|
498
|
+
}, Ve = ["innerHTML"], De = ["innerHTML"], ke = {
|
|
499
|
+
key: 2,
|
|
500
|
+
class: "text-center"
|
|
501
|
+
}, Ie = { style: { "font-weight": "600", "font-size": "calc(calc(1 * var(--rem)) + 2px)", "margin-bottom": "calc(0.5 * var(--rem))" } }, xe = { style: { "text-decoration": "underline" } }, Ae = { key: 3 }, ze = { class: "callout accepted" }, Pe = { class: "title" }, Te = {
|
|
502
|
+
key: 4,
|
|
503
|
+
class: "callout denied"
|
|
504
|
+
}, Be = { class: "title" }, Ee = {
|
|
505
|
+
key: 5,
|
|
506
|
+
class: "callout expired"
|
|
507
|
+
}, Ne = { class: "title" }, Oe = {
|
|
508
|
+
key: 0,
|
|
509
|
+
class: "flex justify-center"
|
|
510
|
+
};
|
|
511
|
+
function Me(e, t, n, v, s, a) {
|
|
512
|
+
const m = y("CButton"), u = S("tooltip");
|
|
513
|
+
return n._document.answerActions.showActions && !a.isPdf ? (r(), d("div", _e, [
|
|
514
|
+
i("div", be, [
|
|
515
|
+
w(M, {
|
|
516
|
+
name: "fade",
|
|
517
|
+
mode: "out-in"
|
|
518
|
+
}, {
|
|
519
|
+
default: g(() => {
|
|
520
|
+
var h, _;
|
|
521
|
+
return [
|
|
522
|
+
((_ = (h = n._document.viewer) == null ? void 0 : h.answerMethod) == null ? void 0 : _.accept) === "inPerson" ? (r(), d("div", {
|
|
523
|
+
key: 0,
|
|
524
|
+
style: k([{ "max-width": "720px", margin: "0 auto", padding: "0 calc(3 * var(--rem))" }, e.mq === "sm" ? { padding: "0 calc(1.5 * var(--rem))" } : null])
|
|
525
|
+
}, [
|
|
526
|
+
l(o(n._document.$t("chapters.answerButtons.inPersonSignatureHint")) + " ", 1),
|
|
527
|
+
(r(), p(O(n._document.sender.user.email ? "a" : "span"), {
|
|
528
|
+
href: `mailto:${n._document.sender.user.email}`
|
|
529
|
+
}, {
|
|
530
|
+
default: g(() => [
|
|
531
|
+
l(o(n._document.sender.company.name || n._document.$t("theSender")), 1)
|
|
532
|
+
]),
|
|
533
|
+
_: 1
|
|
534
|
+
}, 8, ["href"]))
|
|
535
|
+
], 4)) : (n._document.answerActions.canAnswer || a.isPreview) && n._document.answerActions.showActions ? (r(), d("div", He, [
|
|
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")]
|
|
553
|
+
]),
|
|
554
|
+
a.customHtmlAccept ? (r(), d("div", {
|
|
555
|
+
key: 2,
|
|
556
|
+
onClick: t[2] || (t[2] = (C) => v.onAnswer("accept")),
|
|
557
|
+
innerHTML: a.customHtmlAccept
|
|
558
|
+
}, null, 8, De)) : b((r(), p(m, {
|
|
559
|
+
key: 3,
|
|
560
|
+
"icon-props": { strokeWidth: 2.5 },
|
|
561
|
+
disabled: a.isPreview,
|
|
562
|
+
type: "success",
|
|
563
|
+
size: "medium",
|
|
564
|
+
"icon-left": "check",
|
|
565
|
+
raised: "",
|
|
566
|
+
style: { "margin-left": "1em", "padding-left": "1.5em", "padding-right": "1.5em", background: "var(--block-answer-accept-bg, hsl(114deg, 75%, 43%))" },
|
|
567
|
+
onClick: t[3] || (t[3] = (C) => v.onAnswer("accept"))
|
|
568
|
+
}, {
|
|
569
|
+
default: g(() => [
|
|
570
|
+
l(o(n._document.$t("sign").capitalize()), 1)
|
|
571
|
+
]),
|
|
572
|
+
_: 1
|
|
573
|
+
}, 8, ["disabled"])), [
|
|
574
|
+
[u, a.isPreview && e.$t("previewTooltip")]
|
|
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)
|
|
588
|
+
]),
|
|
589
|
+
i("div", null, o(n._document.$t("chapters.answerButtons.waitingDescription", {
|
|
590
|
+
remaining: n._document.remainingSignatures
|
|
591
|
+
})), 1)
|
|
592
|
+
])) : n._document.status === "accepted" ? (r(), d("div", Ae, [
|
|
593
|
+
i("div", ze, [
|
|
594
|
+
i("div", Pe, o(n._document.$t("chapters.answerButtons.approveTitle")), 1),
|
|
595
|
+
i("div", null, o(n._document.$t("chapters.answerButtons.approveDescription", {
|
|
596
|
+
sender: n._document.sender.company.name || n._document.$t("theSender")
|
|
597
|
+
})), 1)
|
|
598
|
+
])
|
|
599
|
+
])) : n._document.status === "denied" ? (r(), d("div", Te, [
|
|
600
|
+
i("div", Be, o(n._document.$t("chapters.answerButtons.denyTitle")), 1),
|
|
601
|
+
i("div", null, o(n._document.$t("chapters.answerButtons.denyDescription", {
|
|
602
|
+
sender: n._document.sender.company.name || n._document.$t("theSender")
|
|
603
|
+
})), 1)
|
|
604
|
+
])) : n._document.status === "expired" ? (r(), d("div", Ee, [
|
|
605
|
+
i("div", Ne, o(n._document.$t("chapters.answerButtons.expiredTitle")), 1),
|
|
606
|
+
i("div", null, o(n._document.$t("chapters.answerButtons.expiredDescription", {
|
|
607
|
+
sender: n._document.sender.company.name || n._document.$t("theSender")
|
|
608
|
+
})), 1)
|
|
609
|
+
])) : c("", !0)
|
|
610
|
+
];
|
|
611
|
+
}),
|
|
612
|
+
_: 1
|
|
613
|
+
})
|
|
614
|
+
], 512),
|
|
615
|
+
n._document.status === "accepted" && a.allowPropertyDesignation && n._document.answerActions.hasAnswered ? (r(), d("div", Oe, [
|
|
616
|
+
i("div", {
|
|
617
|
+
class: "answer button accept",
|
|
618
|
+
style: { "padding-left": "calc(1.5 * var(--rem))", "padding-right": "calc(1.5 * var(--rem))" },
|
|
619
|
+
onClick: t[4] || (t[4] = (h) => a.showPropertyDesignation())
|
|
620
|
+
}, o(n._document.$t(
|
|
621
|
+
`chapters.answerButtons.${a.propertyDesignation ? "editPropDes" : "enterPropDes"}`
|
|
622
|
+
)), 1)
|
|
623
|
+
])) : c("", !0)
|
|
624
|
+
])) : c("", !0);
|
|
625
|
+
}
|
|
626
|
+
const Ge = /* @__PURE__ */ D(Ce, [["render", Me], ["__scopeId", "data-v-7c150031"]]);
|
|
627
|
+
export {
|
|
628
|
+
Ge as default
|
|
629
|
+
};
|