@cling-se/widget 0.14.4 → 0.14.6
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/dist/AddClientCallout-C7abPZ87.js +46 -0
- package/dist/AnswerModal-CsA2pl2P.js +3874 -0
- package/dist/AttachmentItem-Da1-7xwf.js +78 -0
- package/dist/BaseDatePicker-k9zlSi5J.js +3183 -0
- package/dist/BaseUpload-BUrXX3fT.js +1977 -0
- package/dist/BlockMedia-CYI07qAn.js +76 -0
- package/dist/CCallout-Qwae66vo.js +59 -0
- package/dist/CCurrencyDropdown-Y_u0hgBx.js +246 -0
- package/dist/CDropdownItem-CXJ4xD8W.js +538 -0
- package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +1 -0
- package/dist/CFormField--m3PvQuT.js +241 -0
- package/dist/CPhoneFormat-Qg6MkDVP.js +62 -0
- package/dist/CPriceInput-Dlx44UrR.js +112 -0
- package/dist/CTabs.vue_vue_type_style_index_0_scoped_b7262014_lang-l0sNRNKZ.js +1 -0
- package/dist/ClientAutocomplete-BKKc_br6.js +78 -0
- package/dist/ClientModal-CVZFb1Br.js +625 -0
- package/dist/ColorPicker-Bo3s3Esp.js +2879 -0
- package/dist/CompanyModal-DadjAioS.js +141 -0
- package/dist/ContentWrapper-BC3ZBQW9.js +183 -0
- package/dist/CoverBlockSettings-B484eE4g.js +275 -0
- package/dist/DocAnswer-CcYryOWI.js +36 -0
- package/dist/DocDetails-BigsoEWL.js +246 -0
- package/dist/DocForm-DlN0eNWt.js +7273 -0
- package/dist/DocFormSend-TqKo210I.js +143 -0
- package/dist/DocLinks-DSo54vDn.js +38 -0
- package/dist/DocModalBase-XlM1SThW.js +28 -0
- package/dist/DocPrint-tD0Vd9Sw.js +240 -0
- package/dist/DocReceipt-CDHPrhXM.js +210 -0
- package/dist/DocSendReminder-C62RhltH.js +137 -0
- package/dist/DocTextEditor-VjhV9IRp.js +17181 -0
- package/dist/DocTimeline-LcW4z3nC.js +481 -0
- package/dist/DocumentClient-CqbTRdpB.js +136 -0
- package/dist/DocumentLayout-Dbf8_01r.js +4909 -0
- package/dist/DocumentLogotype-DXYnBedV.js +87 -0
- package/dist/DocumentVoided-vH1Ti5lZ.js +25 -0
- package/dist/EmbedInput-D9qP8OnY.js +113 -0
- package/dist/EmbedSettings-DISuNqJT.js +72 -0
- package/dist/ErrorCallout-CCtCVwSh.js +28 -0
- package/dist/FilePreviewModal-BjhNyb6L.js +81 -0
- package/dist/Flag-Dhukv9_J.js +114 -0
- package/dist/HeaderSettings-CK4SkB1x.js +392 -0
- package/dist/ImageSelectModal-DnvPZzXx.js +84 -0
- package/dist/ImageUploadWrapper-B7cNMu5a.js +1604 -0
- package/dist/Index-B3HoK_cZ.js +84 -0
- package/dist/Index-B3aucNji.js +25 -0
- package/dist/Index-B9H5MMHb.js +62 -0
- package/dist/Index-BAYdvT-t.js +754 -0
- package/dist/Index-BLeQprjq.js +46 -0
- package/dist/Index-BOyvQlng.js +154 -0
- package/dist/Index-BVsw2tak.js +70 -0
- package/dist/Index-BY1UKGEO.js +98 -0
- package/dist/Index-Bh0kMSsA.js +107 -0
- package/dist/Index-BlQSM7tC.js +144 -0
- package/dist/Index-BpcJBGGd.js +642 -0
- package/dist/Index-Bs8wprXw.js +58 -0
- package/dist/Index-BvZZAvFd.js +21 -0
- package/dist/Index-CFo-3Y5Q.js +26 -0
- package/dist/Index-CNvp5K3L.js +559 -0
- package/dist/Index-CPJVx14x.js +171 -0
- package/dist/Index-CQ325eVT.js +140 -0
- package/dist/Index-CWrDtcfT.js +49 -0
- package/dist/Index-CyJnSvDR.js +223 -0
- package/dist/Index-D6bc7lg4.js +52 -0
- package/dist/Index-DCR8ev4U.js +33 -0
- package/dist/Index-DGQSB9cH.js +24 -0
- package/dist/Index-DXAvlq74.js +292 -0
- package/dist/Index-D_rfst8y.js +45 -0
- package/dist/Index-Dm8xMFGg.js +61 -0
- package/dist/Index-DtSSgtxB.js +55 -0
- package/dist/Index-DuTw9vhb.js +77 -0
- package/dist/Index-Dw26jtGV.js +31 -0
- package/dist/Index-OxN73_fO.js +32 -0
- package/dist/Index-S-FHG7_k.js +2402 -0
- package/dist/Index-ZFkitzfq.js +69 -0
- package/dist/Index-dyWK9jgr.js +25 -0
- package/dist/Index-gb11ngPS.js +57 -0
- package/dist/Index-lKk_XKJ3.js +150 -0
- package/dist/InputToggleRow-DSSvhPKA.js +57 -0
- package/dist/ManualPopover-lpJYSkw5.js +58 -0
- package/dist/MediaWrapper-BQ22FA2B.js +23 -0
- package/dist/NotBindingText-JxwzZLPP.js +32 -0
- package/dist/PackageGroup-BLSMSUDz.js +699 -0
- package/dist/PdfTerms-DtutjM5Y.js +36 -0
- package/dist/PdfViewer-BsxcZI_x.js +374 -0
- package/dist/PlainHtml-BMPZs2fT.js +20 -0
- package/dist/PriceHeader-BRYY01H2.js +339 -0
- package/dist/SearchApi-6001iFxU.js +161 -0
- package/dist/Setup-cw6jMI9M.js +50 -0
- package/dist/SmartList-q6H-uLbm.js +83 -0
- package/dist/TermsSettings-DWvaPneu.js +102 -0
- package/dist/ThemeColorRow-BXWnvfz-.js +67 -0
- package/dist/ToggleBinding-DydtwpNG.js +38 -0
- package/dist/UploadModal-D_EDKHGD.js +95 -0
- package/dist/VideoPlayerInput-B9yzUeBW.js +93 -0
- package/dist/VideoPlayerSettings-Bvp9l0yj.js +61 -0
- package/dist/VideoSelectModal-DY3N4JiS.js +100 -0
- package/dist/anime.es-BrPTThYb.js +858 -0
- package/dist/answerDocumentMixin-BYZPU_R-.js +51 -0
- package/dist/color-TdtKxwVa.js +19 -0
- package/dist/debounce-BPnlzNwd.js +84 -0
- package/dist/dom-CJxkno7i.js +91 -0
- package/dist/favicon.ico +0 -0
- package/dist/focusDrawerMixin-DC9Oa1i7.js +22 -0
- package/dist/formComponentsInstall-CEW6TK6z.js +2499 -0
- package/dist/formDrawerState-CAzvSMiQ.js +20 -0
- package/dist/formValidationMixin-D7zXxCpC.js +49 -0
- package/dist/i18nMessages-Chz_lxGG.js +17 -0
- package/dist/index-B9WDC3Xe.js +166 -0
- package/dist/index-BCMaUC5r.js +3916 -0
- package/dist/index-BDMI4NVY.js +492 -0
- package/dist/index-BbscgdRg.js +81 -0
- package/dist/index-CLUljEDI.js +347 -0
- package/dist/index-SxyZvewN.js +102 -0
- package/dist/index.es.js +35 -0
- package/dist/index.umd.js +3148 -0
- package/dist/main-CQBEuZk9.js +56739 -0
- package/dist/mapFormMixin-DlFcgwhm.js +72 -0
- package/dist/omit-BWy0Zhd3.js +31 -0
- package/dist/publicSenderState-CvOcFv2U.js +21 -0
- package/dist/splitpanes-BHUVsCZF.js +382 -0
- package/dist/style.css +4 -0
- package/dist/throttle-BrC8eGjQ.js +18 -0
- package/dist/tinycolor-PhFP695w.js +633 -0
- package/dist/tippy.esm-7dmKOUvu.js +1799 -0
- package/dist/utils-NBLgNGHR.js +108 -0
- package/dist/vuedraggable.umd-ByfH7ZxC.js +3161 -0
- package/dist/vuex.esm-DKGl8mcw.js +467 -0
- package/package.json +1 -1
- package/vite.config.ts +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { m as r } from "./mapFormMixin-DlFcgwhm.js";
|
|
2
|
+
import { n } from "./main-CQBEuZk9.js";
|
|
3
|
+
const s = {
|
|
4
|
+
name: "WorkAddressText",
|
|
5
|
+
components: {
|
|
6
|
+
Read: () => import("./Index-BvZZAvFd.js")
|
|
7
|
+
},
|
|
8
|
+
mixins: [r(["street", "city", "zip"])]
|
|
9
|
+
};
|
|
10
|
+
var o = function() {
|
|
11
|
+
var e = this, t = e._self._c;
|
|
12
|
+
return t("Read", { attrs: { street: e.street, city: e.city, zip: e.zip } });
|
|
13
|
+
}, i = [], a = /* @__PURE__ */ n(
|
|
14
|
+
s,
|
|
15
|
+
o,
|
|
16
|
+
i,
|
|
17
|
+
!1,
|
|
18
|
+
null,
|
|
19
|
+
null
|
|
20
|
+
);
|
|
21
|
+
const p = a.exports;
|
|
22
|
+
export {
|
|
23
|
+
p as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import { w as c } from "./CDropdownItem-CXJ4xD8W.js";
|
|
2
|
+
import { g as a, h as m, n as d, b as l, e as u } from "./main-CQBEuZk9.js";
|
|
3
|
+
import { s as p, i as v } from "./dom-CJxkno7i.js";
|
|
4
|
+
import { D as _ } from "./DocModalBase-XlM1SThW.js";
|
|
5
|
+
import { v as n } from "./index-BDMI4NVY.js";
|
|
6
|
+
import { a as g } from "./vuex.esm-DKGl8mcw.js";
|
|
7
|
+
import { a as h } from "./answerDocumentMixin-BYZPU_R-.js";
|
|
8
|
+
const C = {
|
|
9
|
+
i18nOptions: {
|
|
10
|
+
namespaces: "components",
|
|
11
|
+
keyPrefix: "document.propertyDesignationModal"
|
|
12
|
+
},
|
|
13
|
+
components: {
|
|
14
|
+
DocModalBase: _
|
|
15
|
+
},
|
|
16
|
+
mixins: [c],
|
|
17
|
+
props: {
|
|
18
|
+
senderName: {
|
|
19
|
+
type: String,
|
|
20
|
+
required: !0
|
|
21
|
+
},
|
|
22
|
+
propertyDesignation: {
|
|
23
|
+
type: Object,
|
|
24
|
+
default: null
|
|
25
|
+
},
|
|
26
|
+
fullScreen: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !1
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
data() {
|
|
32
|
+
return {
|
|
33
|
+
cornerRadius: 0,
|
|
34
|
+
spacing: 0,
|
|
35
|
+
view: "start",
|
|
36
|
+
form: "",
|
|
37
|
+
realEstateId: "",
|
|
38
|
+
condominiumId: null,
|
|
39
|
+
condominiumOrgNo: null
|
|
40
|
+
// messages: {
|
|
41
|
+
// condominiumId: {
|
|
42
|
+
// required: 'Ange ditt lägenhetsnummer',
|
|
43
|
+
// minLength: 'Det ska vara 4 siffror',
|
|
44
|
+
// maxLength: 'Det ska vara 4 siffror',
|
|
45
|
+
// },
|
|
46
|
+
// condominiumOrgNo: {
|
|
47
|
+
// required: 'Ange din bostadensrätts org-nr',
|
|
48
|
+
// },
|
|
49
|
+
// realEstateId: {
|
|
50
|
+
// required: 'Ange din fastighetsbeteckning',
|
|
51
|
+
// },
|
|
52
|
+
// },
|
|
53
|
+
};
|
|
54
|
+
},
|
|
55
|
+
validations: {
|
|
56
|
+
condominiumId: {
|
|
57
|
+
required: n.requiredIf((i) => i.form === "condominium"),
|
|
58
|
+
minLength: n.minLength(4),
|
|
59
|
+
maxLength: n.maxLength(4)
|
|
60
|
+
},
|
|
61
|
+
condominiumOrgNo: {
|
|
62
|
+
required: n.requiredIf((i) => i.form === "condominium")
|
|
63
|
+
},
|
|
64
|
+
realEstateId: {
|
|
65
|
+
required: n.requiredIf((i) => i.form === "realEstate")
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
computed: {
|
|
69
|
+
messages() {
|
|
70
|
+
const i = (e) => this.$t(`validations.${e}`);
|
|
71
|
+
return {
|
|
72
|
+
condominiumId: {
|
|
73
|
+
required: i("condominiumId.required"),
|
|
74
|
+
minLength: i("condominiumId.minLength"),
|
|
75
|
+
maxLength: i("condominiumId.maxLength")
|
|
76
|
+
},
|
|
77
|
+
condominiumOrgNo: {
|
|
78
|
+
required: i("condominiumOrgNo.required")
|
|
79
|
+
},
|
|
80
|
+
realEstateId: {
|
|
81
|
+
required: i("realEstateId.required")
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
created() {
|
|
87
|
+
if (this.propertyDesignation) {
|
|
88
|
+
const {
|
|
89
|
+
propertyType: i = "",
|
|
90
|
+
propertyId: e = "",
|
|
91
|
+
condominiumOrgNo: t = null
|
|
92
|
+
} = this.propertyDesignation;
|
|
93
|
+
this.form = i, i === "realEstate" ? this.realEstateId = e : this.condominiumId = e, this.condominiumOrgNo = t;
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
mounted() {
|
|
97
|
+
this.spacing = window.getComputedStyle(this.$refs.root.$el).paddingTop, this.cornerRadius = window.getComputedStyle(
|
|
98
|
+
this.$refs.root.$el
|
|
99
|
+
).borderRadius;
|
|
100
|
+
},
|
|
101
|
+
methods: {
|
|
102
|
+
...g({
|
|
103
|
+
putCurrentDoc: a.PUT_CURRENT_PUBLIC_DOCUMENT,
|
|
104
|
+
reloadCurrentDocument: a.RELOAD_CURRENT_DOCUMENT
|
|
105
|
+
}),
|
|
106
|
+
async updateClientPropertyDesignation() {
|
|
107
|
+
if (this.$v.$touch(), this.$v.$invalid)
|
|
108
|
+
return;
|
|
109
|
+
const i = {
|
|
110
|
+
propertyType: this.form,
|
|
111
|
+
propertyId: this.form === "realEstate" ? this.realEstateId : this.condominiumId,
|
|
112
|
+
...this.form === "condominium" && {
|
|
113
|
+
condominiumOrgNo: this.condominiumOrgNo
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
try {
|
|
117
|
+
await this.putCurrentDoc({
|
|
118
|
+
body: {
|
|
119
|
+
["clients[0].region.propertyDesignation"]: i
|
|
120
|
+
}
|
|
121
|
+
}), this.reloadCurrentDocument(), this.view = "complete";
|
|
122
|
+
} catch (e) {
|
|
123
|
+
m(e);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
var w = function() {
|
|
129
|
+
var e = this, t = e._self._c;
|
|
130
|
+
return t("doc-modal-base", { ref: "root", class: [{ "full-screen": e.mq === "sm" }] }, [e.fullScreen ? t("CButton", { staticClass: "absolute right-4 top-4 z-50", attrs: { icon: "x", circle: "" }, on: { click: function(s) {
|
|
131
|
+
return e.$emit("close");
|
|
132
|
+
} } }) : e._e(), t("div", [e.view !== "complete" ? t("div", { staticClass: "negate-padding relative mb-8 border-b border-gray-100 bg-gray-50 pb-8 text-center", style: {
|
|
133
|
+
paddingTop: e.spacing,
|
|
134
|
+
marginTop: `-${e.spacing}`,
|
|
135
|
+
borderRadius: `${e.cornerRadius} ${e.cornerRadius} 0 0`
|
|
136
|
+
} }, [e.view === "start" ? t("div", { key: 1 }, [t("div", { staticClass: "mb-2 text-lg font-semibold" }, [e._v(e._s(e.$t("title")))]), t("div", { staticClass: "text-gray-700" }, [e._v(" " + e._s(e.$t("subTitle", { senderName: e.senderName })) + " ")])]) : e._e(), e.view === "form" ? t("div", { key: 2 }, [t("CButton", { staticClass: "absolute left-4 top-4", attrs: { circle: "", icon: "arrow-left" }, on: { click: function(s) {
|
|
137
|
+
e.view = "start";
|
|
138
|
+
} } }), t("div", { staticClass: "mb-2 text-lg font-semibold" }, [e._v(e._s(e.$t("howToFind")))]), t("div", { staticClass: "text-gray-700" }, [e._v(" " + e._s(e.$t("goto1")) + " "), t("a", { staticStyle: { "text-decoration": "underline" }, attrs: { href: "https://www.lantmateriet.se/", target: "_blank", rel: "noopener" } }, [e._v(" " + e._s(e.$t("goto2")) + " ")]), e._v(" " + e._s(e.$t("goto3")) + " ")])], 1) : e._e()]) : e._e(), e.view === "start" ? t("div", { key: 1, staticClass: "mb-12 text-center" }, [t("div", { staticClass: "mb-4 text-base font-medium" }, [e._v(e._s(e.$t("whereTitle")))]), t("div", { staticClass: "flex justify-center" }, [t("div", { staticClass: "mx-4" }, [t("div", { staticClass: "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", on: { click: function(s) {
|
|
139
|
+
e.view = "form", e.form = "realEstate";
|
|
140
|
+
} } }, [t("svg", { staticClass: "text-gray-400", attrs: { width: "59", height: "41", viewBox: "0 0 59 59", xmlns: "http://www.w3.org/2000/svg" } }, [t("g", { attrs: { fill: "currentColor", "fill-rule": "evenodd" } }, [t("path", { attrs: { 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" } }), t("path", { attrs: { d: "M0 56.004882C0 54.897616.90314 54 1.996843 54h55.006314C58.105983 54 59 54.8939 59 56.004882V59H0v-2.995118z" } })])])]), t("div", { staticClass: "text-sm leading-tight text-gray-700" }, [e._v(" " + e._s(e.$t("house"))), t("br"), e._v("/ " + e._s(e.$t("realEstate")) + " ")])]), t("div", { staticClass: "mx-4" }, [t("div", { staticClass: "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", on: { click: function(s) {
|
|
141
|
+
e.view = "form", e.form = "condominium";
|
|
142
|
+
} } }, [t("svg", { staticClass: "text-gray-400", attrs: { width: "59", height: "50", viewBox: "0 0 59 73", xmlns: "http://www.w3.org/2000/svg" } }, [t("g", { attrs: { fill: "currentColor", "fill-rule": "evenodd" } }, [t("path", { attrs: { 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" } }), t("path", { attrs: { d: "M0 70.004881C0 68.897616.90314 68 1.996843 68h55.006314C58.105983 68 59 68.8939 59 70.004881V73H0v-2.995119z" } })])])]), t("div", { staticClass: "text-sm leading-tight text-gray-700" }, [e._v(" " + e._s(e.$t("condominium"))), t("br"), e._v("/ " + e._s(e.$t("apartment")) + " ")])])])]) : e._e(), e.view === "form" ? t("div", { key: 2 }, [t("div", { staticClass: "space-y-6" }, [e.form === "realEstate" ? t("CField", { attrs: { vuelidate: e.$v.realEstateId, "vuelidate-messages": e.messages.realEstateId, label: e.$t("propertyDesignation") } }, [t("CInput", { attrs: { placeholder: e.$t("propertyDesignationPlaceholder") }, model: { value: e.realEstateId, callback: function(s) {
|
|
143
|
+
e.realEstateId = s;
|
|
144
|
+
}, expression: "realEstateId" } })], 1) : e._e(), e.form === "condominium" ? t("CField", { attrs: { vuelidate: e.$v.condominiumId, "vuelidate-messages": e.messages.condominiumId, label: e.$t("condominiumId") } }, [t("CInput", { attrs: { placeholder: e.$t("condominiumIdPlaceholder"), type: "number" }, model: { value: e.condominiumId, callback: function(s) {
|
|
145
|
+
e.condominiumId = s;
|
|
146
|
+
}, expression: "condominiumId" } })], 1) : e._e(), e.form === "condominium" ? t("CField", { attrs: { vuelidate: e.$v.condominiumOrgNo, "vuelidate-messages": e.messages.condominiumOrgNo, label: e.$t("condominiumOrgNo") } }, [t("CInput", { staticClass: "mt-3", attrs: { placeholder: e.$t("condominiumOrgNoPlaceholder"), type: "number" }, model: { value: e.condominiumOrgNo, callback: function(s) {
|
|
147
|
+
e.condominiumOrgNo = s;
|
|
148
|
+
}, expression: "condominiumOrgNo" } })], 1) : e._e(), t("div", [t("CButton", { attrs: { type: "secondary", wide: "" }, on: { click: e.updateClientPropertyDesignation } }, [e._v(" " + e._s(e.$t("_common:save")) + " ")])], 1)], 1)]) : e._e(), e.view === "complete" ? t("div", { key: 3 }, [t("div", { staticClass: "flex flex-col items-center justify-center text-center" }, [t("div", { staticClass: "bg-primary-50 mb-4 flex h-12 w-12 items-center justify-center rounded-full" }, [t("CIcon", { staticClass: "text-primary-500", attrs: { type: "check" } })], 1), t("div", { staticClass: "mb-1 text-base font-semibold" }, [e._v(" " + e._s(e.$t("savedTitle")) + " ")]), t("div", { staticClass: "mb-6 text-base text-gray-700" }, [e._v(" " + e._s(e.$t("savedSubTitle", { senderName: e.senderName })) + " ")]), t("div", { staticClass: "mt-4 w-full" }, [t("CButton", { attrs: { type: "secondary", wide: "" }, on: { click: function(s) {
|
|
149
|
+
return e.$emit("close");
|
|
150
|
+
} } }, [e._v(" " + e._s(e.$t("_common:close")) + " ")])], 1)])]) : e._e()])], 1);
|
|
151
|
+
}, f = [], y = /* @__PURE__ */ d(
|
|
152
|
+
C,
|
|
153
|
+
w,
|
|
154
|
+
f,
|
|
155
|
+
!1,
|
|
156
|
+
null,
|
|
157
|
+
null
|
|
158
|
+
);
|
|
159
|
+
const $ = y.exports, b = {
|
|
160
|
+
i18nOptions: {
|
|
161
|
+
namespaces: "docAnswer",
|
|
162
|
+
messages: {
|
|
163
|
+
en: {
|
|
164
|
+
previewTooltip: "Only your clients can answer"
|
|
165
|
+
},
|
|
166
|
+
sv: {
|
|
167
|
+
previewTooltip: "Enbart din mottagare kan besvara"
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
name: "DocumentAnswerRead",
|
|
172
|
+
mixins: [h({ documentKey: "_document" }), c],
|
|
173
|
+
inject: {
|
|
174
|
+
isPdf: {
|
|
175
|
+
default: !1
|
|
176
|
+
},
|
|
177
|
+
customHtmlAccept: {
|
|
178
|
+
default: ""
|
|
179
|
+
},
|
|
180
|
+
customHtmlDeny: {
|
|
181
|
+
default: ""
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
props: {
|
|
185
|
+
_document: {
|
|
186
|
+
type: Object,
|
|
187
|
+
required: !0
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
data() {
|
|
191
|
+
return {
|
|
192
|
+
isInViewport: !1,
|
|
193
|
+
scrollToElement: p
|
|
194
|
+
};
|
|
195
|
+
},
|
|
196
|
+
computed: {
|
|
197
|
+
viewerId() {
|
|
198
|
+
var i;
|
|
199
|
+
return ((i = this._document._doc) == null ? void 0 : i.viewerId) || null;
|
|
200
|
+
},
|
|
201
|
+
isPreview() {
|
|
202
|
+
return this._document.isPreview;
|
|
203
|
+
},
|
|
204
|
+
modalHeight() {
|
|
205
|
+
return this.mq === "sm" ? "100%" : "auto";
|
|
206
|
+
},
|
|
207
|
+
allowPropertyDesignation() {
|
|
208
|
+
const { prices: i } = this._document;
|
|
209
|
+
if (!i || !i.region)
|
|
210
|
+
return !1;
|
|
211
|
+
const { houseWorkType: e } = i.region;
|
|
212
|
+
return ["rot", "greenRot15", "greenRot20", "greenRot50"].includes(
|
|
213
|
+
e
|
|
214
|
+
);
|
|
215
|
+
},
|
|
216
|
+
propertyDesignation() {
|
|
217
|
+
return l(this._document, "clients[0].region.propertyDesignation", null);
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
watch: {
|
|
221
|
+
$route: {
|
|
222
|
+
immediate: !0,
|
|
223
|
+
handler(i) {
|
|
224
|
+
i != null && i.hash && this.onAnswer("accept", { calcHeight: !0 });
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
isInViewport: {
|
|
228
|
+
immediate: !0,
|
|
229
|
+
handler(i, e) {
|
|
230
|
+
i !== e && u.trigger("ui:document.block.answer.visible", i);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
mounted() {
|
|
235
|
+
window.addEventListener("scroll", this.scrollHandler, {
|
|
236
|
+
capture: !0,
|
|
237
|
+
passive: !0
|
|
238
|
+
}), this.$route.name === "docPropertyDesignation" && this.showPropertyDesignation();
|
|
239
|
+
},
|
|
240
|
+
destroyed() {
|
|
241
|
+
window.removeEventListener("scroll", this.scrollHandler);
|
|
242
|
+
},
|
|
243
|
+
methods: {
|
|
244
|
+
scrollHandler() {
|
|
245
|
+
this.$refs.answerButtons && (this.isInViewport = v(this.$refs.answerButtons));
|
|
246
|
+
},
|
|
247
|
+
showPropertyDesignation() {
|
|
248
|
+
this.$modal.show(
|
|
249
|
+
$,
|
|
250
|
+
{
|
|
251
|
+
senderName: this._document.sender.user.name,
|
|
252
|
+
propertyDesignation: this.propertyDesignation,
|
|
253
|
+
fullScreen: this.modalHeight === "100%"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
adaptive: !0,
|
|
257
|
+
height: this.modalHeight,
|
|
258
|
+
width: "100%",
|
|
259
|
+
maxWidth: this.modalHeight === "100%" ? 999 : 400,
|
|
260
|
+
classes: "overflow-visible",
|
|
261
|
+
transition: "fade-in-slide-up"
|
|
262
|
+
}
|
|
263
|
+
);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
var x = function() {
|
|
268
|
+
var s, o;
|
|
269
|
+
var e = this, t = e._self._c;
|
|
270
|
+
return e._document.answerActions.showActions && !e.isPdf ? t("div", { staticStyle: { padding: "calc(3 * var(--rem)) 0" } }, [t("div", { ref: "answerButtons", staticClass: "flex w-full justify-center" }, [t("transition", { attrs: { name: "fade", mode: "out-in" } }, [((o = (s = e._document.viewer) == null ? void 0 : s.answerMethod) == null ? void 0 : o.accept) === "inPerson" ? t("div", { key: 0, staticStyle: { "max-width": "720px", margin: "0 auto", padding: "0 calc(3 * var(--rem))" }, style: e.mq === "sm" ? { padding: "0 calc(1.5 * var(--rem))" } : null }, [e._v(" " + e._s(e._document.$t("chapters.answerButtons.inPersonSignatureHint")) + " "), t(e._document.sender.user.email ? "a" : "span", { tag: "component", attrs: { href: `mailto:${e._document.sender.user.email}` } }, [e._v(" " + e._s(e._document.sender.company.name || e._document.$t("theSender")) + " ")])], 1) : (e._document.answerActions.canAnswer || e.isPreview) && e._document.answerActions.showActions ? t("div", { key: 1, staticClass: "flex w-full justify-center" }, [e.customHtmlDeny ? t("div", { domProps: { innerHTML: e._s(e.customHtmlDeny) }, on: { click: function(r) {
|
|
271
|
+
return e.onAnswer("decline");
|
|
272
|
+
} } }) : t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.isPreview && e.$t("previewTooltip"), expression: "isPreview && $t('previewTooltip')" }], staticClass: "text-gray-400", attrs: { disabled: e.isPreview, size: "medium" }, on: { click: function(r) {
|
|
273
|
+
return e.onAnswer("decline");
|
|
274
|
+
} } }, [e._v(" " + e._s(e._document.$t("deny").capitalize()) + " ")]), e.customHtmlAccept ? t("div", { domProps: { innerHTML: e._s(e.customHtmlAccept) }, on: { click: function(r) {
|
|
275
|
+
return e.onAnswer("accept");
|
|
276
|
+
} } }) : t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.isPreview && e.$t("previewTooltip"), expression: "isPreview && $t('previewTooltip')" }], staticStyle: { "margin-left": "1em", "padding-left": "1.5em", "padding-right": "1.5em", background: "var(--block-answer-accept-bg, hsl(114deg, 75%, 43%))" }, attrs: { "icon-props": { strokeWidth: 2.5 }, disabled: e.isPreview, type: "success", size: "medium", "icon-left": "check", raised: "" }, on: { click: function(r) {
|
|
277
|
+
return e.onAnswer("accept");
|
|
278
|
+
} } }, [e._v(" " + e._s(e._document.$t("sign").capitalize()) + " ")])], 1) : e._document.answerActions.hasAnswered && e._document.answerActions.waitingForOthers ? t("div", { key: 2, staticClass: "text-center" }, [t("div", { staticStyle: { "font-weight": "600", "font-size": "calc(calc(1 * var(--rem)) + 2px)", "margin-bottom": "calc(0.5 * var(--rem))" } }, [e._v(" " + e._s(e._document.$t("chapters.answerButtons.youHave")) + " "), t("span", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: `${e.$formatDate(e._document.viewer.answer.didAnswerAt, "Pp")}`, expression: "\n `${$formatDate(_document.viewer.answer.didAnswerAt, 'Pp')}`\n " }], staticStyle: { "text-decoration": "underline" } }, [e._v(e._s(e._document.viewer.answer.didAccept ? e._document.$t("approved") : e._document.$t("denied")))]), e._v(" " + e._s(" " + e._document.$t("theDocument")) + ". ")]), t("div", [e._v(" " + e._s(e._document.$t("chapters.answerButtons.waitingDescription", { remaining: e._document.remainingSignatures })) + " ")])]) : e._document.status === "accepted" ? t("div", { key: 3 }, [t("div", { staticClass: "callout accepted" }, [t("div", { staticClass: "title" }, [e._v(" " + e._s(e._document.$t("chapters.answerButtons.approveTitle")) + " ")]), t("div", [e._v(" " + e._s(e._document.$t("chapters.answerButtons.approveDescription", { sender: e._document.sender.company.name || e._document.$t("theSender") })) + " ")])])]) : e._document.status === "denied" ? t("div", { key: 4, staticClass: "callout denied" }, [t("div", { staticClass: "title" }, [e._v(" " + e._s(e._document.$t("chapters.answerButtons.denyTitle")) + " ")]), t("div", [e._v(" " + e._s(e._document.$t("chapters.answerButtons.denyDescription", { sender: e._document.sender.company.name || e._document.$t("theSender") })) + " ")])]) : e._document.status === "expired" ? t("div", { key: 5, staticClass: "callout expired" }, [t("div", { staticClass: "title" }, [e._v(" " + e._s(e._document.$t("chapters.answerButtons.expiredTitle")) + " ")]), t("div", [e._v(" " + e._s(e._document.$t("chapters.answerButtons.expiredDescription", { sender: e._document.sender.company.name || e._document.$t("theSender") })) + " ")])]) : e._e()])], 1), e._document.status === "accepted" && e.allowPropertyDesignation && e._document.answerActions.hasAnswered ? t("div", { staticClass: "flex justify-center" }, [t("div", { staticClass: "answer button accept", staticStyle: { "padding-left": "calc(1.5 * var(--rem))", "padding-right": "calc(1.5 * var(--rem))" }, on: { click: function(r) {
|
|
279
|
+
return e.showPropertyDesignation();
|
|
280
|
+
} } }, [e._v(" " + e._s(e._document.$t(`chapters.answerButtons.${e.propertyDesignation ? "editPropDes" : "enterPropDes"}`)) + " ")])]) : e._e()]) : e._e();
|
|
281
|
+
}, H = [], D = /* @__PURE__ */ d(
|
|
282
|
+
b,
|
|
283
|
+
x,
|
|
284
|
+
H,
|
|
285
|
+
!1,
|
|
286
|
+
null,
|
|
287
|
+
"1a7731c6"
|
|
288
|
+
);
|
|
289
|
+
const N = D.exports;
|
|
290
|
+
export {
|
|
291
|
+
N as default
|
|
292
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { P as n } from "./PlainHtml-BMPZs2fT.js";
|
|
2
|
+
import { n as s } from "./main-CQBEuZk9.js";
|
|
3
|
+
const o = {
|
|
4
|
+
name: "EstimatedTimeToCompleteTextRead",
|
|
5
|
+
props: {
|
|
6
|
+
noOfTimeUnits: {
|
|
7
|
+
type: Number,
|
|
8
|
+
default: 0
|
|
9
|
+
},
|
|
10
|
+
timeUnit: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: "days"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
i18nOptions: {
|
|
16
|
+
namespaces: "estimatedTimeToCompleteText",
|
|
17
|
+
messages: {
|
|
18
|
+
en: {
|
|
19
|
+
text: "Calendar dates from start to completion of project is estimated to"
|
|
20
|
+
},
|
|
21
|
+
sv: {
|
|
22
|
+
text: "Uppskattad kalendertid för att genomföra projektet från start tills att projektet är genomfört beräknas ungefär till"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
27
|
+
render(t) {
|
|
28
|
+
const e = this.$tc(`_common:${this.timeUnit}`, {
|
|
29
|
+
count: this.noOfTimeUnits
|
|
30
|
+
});
|
|
31
|
+
return t(n, [this.$t("text"), " ", t("strong", [e]), "."]);
|
|
32
|
+
}
|
|
33
|
+
}, r = null, a = null;
|
|
34
|
+
var i = /* @__PURE__ */ s(
|
|
35
|
+
o,
|
|
36
|
+
r,
|
|
37
|
+
a,
|
|
38
|
+
!1,
|
|
39
|
+
null,
|
|
40
|
+
null
|
|
41
|
+
);
|
|
42
|
+
const p = i.exports;
|
|
43
|
+
export {
|
|
44
|
+
p as default
|
|
45
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { P as r } from "./PlainHtml-BMPZs2fT.js";
|
|
2
|
+
import { n as o } from "./main-CQBEuZk9.js";
|
|
3
|
+
const s = {
|
|
4
|
+
name: "ExtraWorkTimeImpactTextRead",
|
|
5
|
+
props: {
|
|
6
|
+
workStartAt: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: null
|
|
9
|
+
},
|
|
10
|
+
workEndAt: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: null
|
|
13
|
+
},
|
|
14
|
+
timeDeltaDirection: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "increase"
|
|
17
|
+
},
|
|
18
|
+
noOfTimeUnits: {
|
|
19
|
+
type: Number,
|
|
20
|
+
default: 0
|
|
21
|
+
},
|
|
22
|
+
timeUnit: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "days"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
i18nOptions: {
|
|
28
|
+
namespaces: "ExtraWorkTimeImpactTextRead",
|
|
29
|
+
sv: {
|
|
30
|
+
description1: "Arbetet kommer att påbörjas den",
|
|
31
|
+
description2: "och ska senast vara klar den ",
|
|
32
|
+
description3: " På grund av ändringar och / eller tilläggsarbete",
|
|
33
|
+
description4: " den ursprungliga kontraktstiden med"
|
|
34
|
+
},
|
|
35
|
+
en: {
|
|
36
|
+
description1: "The work will commence",
|
|
37
|
+
description2: "and be complete at the latest ",
|
|
38
|
+
description3: " Because of amendments and / or additional work, the original contract period will",
|
|
39
|
+
description4: " by"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
43
|
+
render(t) {
|
|
44
|
+
const e = this.$formatDate(this.workStartAt), n = this.$formatDate(this.workEndAt), i = this.$tc(`_common:${this.timeUnit}`, {
|
|
45
|
+
count: this.noOfTimeUnits
|
|
46
|
+
});
|
|
47
|
+
return t(r, [this.$t("description1"), " ", t("strong", [e]), " ", this.$t("description2"), t("strong", [n]), ".", this.$t("description3"), " ", t("strong", [this.$t(`_common:${this.timeDeltaDirection}`)]), this.$t("description4"), " ", t("strong", [i]), "."]);
|
|
48
|
+
}
|
|
49
|
+
}, a = null, c = null;
|
|
50
|
+
var d = /* @__PURE__ */ o(
|
|
51
|
+
s,
|
|
52
|
+
a,
|
|
53
|
+
c,
|
|
54
|
+
!1,
|
|
55
|
+
null,
|
|
56
|
+
null
|
|
57
|
+
);
|
|
58
|
+
const p = d.exports;
|
|
59
|
+
export {
|
|
60
|
+
p as default
|
|
61
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { m as n } from "./mapFormMixin-DlFcgwhm.js";
|
|
2
|
+
import { f as o } from "./focusDrawerMixin-DC9Oa1i7.js";
|
|
3
|
+
import { n as i } from "./main-CQBEuZk9.js";
|
|
4
|
+
const a = {
|
|
5
|
+
name: "Terms",
|
|
6
|
+
i18nOptions: {
|
|
7
|
+
namespaces: "terms",
|
|
8
|
+
messages: {
|
|
9
|
+
en: {
|
|
10
|
+
noneSelected: "No terms selected"
|
|
11
|
+
},
|
|
12
|
+
sv: {
|
|
13
|
+
noneSelected: "Inga villkor valda"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
components: {
|
|
18
|
+
Read: () => import("./Index-BOyvQlng.js"),
|
|
19
|
+
TermsSettings: () => import("./TermsSettings-DWvaPneu.js")
|
|
20
|
+
},
|
|
21
|
+
mixins: [
|
|
22
|
+
n(["href", "termType", "file", "text"]),
|
|
23
|
+
o
|
|
24
|
+
],
|
|
25
|
+
data() {
|
|
26
|
+
return {
|
|
27
|
+
showControls: !1
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
computed: {
|
|
31
|
+
hasTerms() {
|
|
32
|
+
const s = ["href", "file"].includes(this.termType) && this.href, e = this.termType === "text" && this.text, t = this.termType === "file" && this.file;
|
|
33
|
+
return s || e || t;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
var m = function() {
|
|
38
|
+
var e = this, t = e._self._c;
|
|
39
|
+
return e.isForm || e.hasTerms ? t("div", { on: { "&mouseover": function(r) {
|
|
40
|
+
e.showControls = !0;
|
|
41
|
+
}, "&mouseleave": function(r) {
|
|
42
|
+
e.showControls = !1;
|
|
43
|
+
} } }, [t("Read", e._g({ attrs: { _document: e._document, href: e.href, "term-type": e.termType, file: e.file, text: e.text } }, e.$listeners)), e.isForm ? [e.hasTerms ? e._e() : t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("noneSelected"), expression: "$t('noneSelected')" }], staticStyle: { position: "absolute", left: "calc(1 * var(--rem))", top: "calc(1 * var(--rem))", width: "2em", height: "2em" }, attrs: { "icon-props": { size: 18 }, pattern: "secondary", icon: "info", circle: "", size: "small", type: "danger" }, on: { click: e.openDrawer } }), e.showDrawer ? t("portal", { attrs: { to: "drawer-content" } }, [t("TermsSettings", e._g({ attrs: { _document: e._document, _value: { term: "data.terms" } } }, e.$listeners))], 1) : e._e()] : e._e()], 2) : e._e();
|
|
44
|
+
}, l = [], c = /* @__PURE__ */ i(
|
|
45
|
+
a,
|
|
46
|
+
m,
|
|
47
|
+
l,
|
|
48
|
+
!1,
|
|
49
|
+
null,
|
|
50
|
+
null
|
|
51
|
+
);
|
|
52
|
+
const _ = c.exports;
|
|
53
|
+
export {
|
|
54
|
+
_ as default
|
|
55
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { n, w as l } from "./main-CQBEuZk9.js";
|
|
2
|
+
const p = {
|
|
3
|
+
name: "MultiGroupPricing",
|
|
4
|
+
props: {
|
|
5
|
+
_document: {
|
|
6
|
+
type: Object,
|
|
7
|
+
default: () => ({})
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
computed: {
|
|
11
|
+
docPriceItems() {
|
|
12
|
+
const { total: a, subTotal: t } = this._document.prices || {};
|
|
13
|
+
return [
|
|
14
|
+
{
|
|
15
|
+
label: this._document.$t("price.net"),
|
|
16
|
+
value: this.priceFormat(t)
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: this._document.$t("price.total"),
|
|
20
|
+
value: this.priceFormat(a)
|
|
21
|
+
}
|
|
22
|
+
];
|
|
23
|
+
},
|
|
24
|
+
pkgGroups() {
|
|
25
|
+
var t;
|
|
26
|
+
return (((t = this._document.packageGroups) == null ? void 0 : t.groups) || []).map(({ title: e, prices: r, selectedPackages: i }) => {
|
|
27
|
+
const { total: c, subTotal: s } = r || {};
|
|
28
|
+
return {
|
|
29
|
+
title: e,
|
|
30
|
+
noOfSelectedPackages: i.length,
|
|
31
|
+
priceItems: [
|
|
32
|
+
{
|
|
33
|
+
label: this._document.$t("price.net"),
|
|
34
|
+
value: this.priceFormat(s)
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
label: this._document.$t("price.total"),
|
|
38
|
+
value: this.priceFormat(c)
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
};
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
methods: {
|
|
46
|
+
priceFormat(a, t) {
|
|
47
|
+
return l(a, {
|
|
48
|
+
currency: this._document.currency,
|
|
49
|
+
showZero: !0,
|
|
50
|
+
decimals: 2,
|
|
51
|
+
hideZeroDecimals: !0,
|
|
52
|
+
...t
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
var d = function() {
|
|
58
|
+
var t = this, e = t._self._c;
|
|
59
|
+
return e("div", [t._l(t.pkgGroups, function(r, i) {
|
|
60
|
+
return e("div", { key: i, staticStyle: { padding: "calc(0.5 * var(--rem)) 0" } }, [e("div", { staticStyle: { display: "flex", "font-size": "calc(1.1 * var(--rem))", "font-weight": "600", "padding-bottom": "3px", "border-bottom": "1px solid rgba(0, 0, 0, 0.2)" } }, [t._v(" " + t._s(r.title) + " "), e("span", { staticClass: "text-gray-400", staticStyle: { "margin-left": "auto", "font-size": "calc(1 * var(--rem))" } }, [t._v(" " + t._s(r.noOfSelectedPackages) + " paket ")])]), t._l(r.priceItems, function({ label: c, value: s }, o) {
|
|
61
|
+
return e("div", { key: c + o, staticStyle: { display: "flex", "justify-content": "space-between", "font-size": "calc(1 * var(--rem))" } }, [e("div", [t._v(t._s(c))]), e("div", [t._v(t._s(s))])]);
|
|
62
|
+
})], 2);
|
|
63
|
+
}), e("div", { staticStyle: { "margin-top": "calc(1 * var(--rem))" } }, [e("div", { staticStyle: { "font-size": "calc(1.1 * var(--rem))", "font-weight": "600", "padding-bottom": "3px", "border-bottom": "1px solid rgba(0, 0, 0, 0.2)" } }, [t._v(" Doc summary ")]), t._l(t.docPriceItems, function({ label: r, value: i }, c) {
|
|
64
|
+
return e("div", { key: c + r, staticStyle: { display: "flex", "justify-content": "space-between", "font-size": "calc(1 * var(--rem))" } }, [e("div", [t._v(t._s(r))]), e("div", [t._v(t._s(i))])]);
|
|
65
|
+
})], 2)], 2);
|
|
66
|
+
}, m = [], u = /* @__PURE__ */ n(
|
|
67
|
+
p,
|
|
68
|
+
d,
|
|
69
|
+
m,
|
|
70
|
+
!1,
|
|
71
|
+
null,
|
|
72
|
+
"e8731f43"
|
|
73
|
+
);
|
|
74
|
+
const v = u.exports;
|
|
75
|
+
export {
|
|
76
|
+
v as default
|
|
77
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { n as r } from "./main-CQBEuZk9.js";
|
|
2
|
+
const l = {
|
|
3
|
+
name: "DocChapterSub",
|
|
4
|
+
inject: {
|
|
5
|
+
viewSettings: { default: () => ({ canEdit: !1 }) }
|
|
6
|
+
},
|
|
7
|
+
inheritAttrs: !1
|
|
8
|
+
};
|
|
9
|
+
var o = function(e, t) {
|
|
10
|
+
var i, n;
|
|
11
|
+
return t.props.hideFromEdit && t.injections.viewSettings.canEdit ? t._e() : e("div", { staticClass: "sub-chapter" }, [e("div", { staticClass: "sub-chapter-title" }, [e("span", { staticClass: "sub-chapter-counter primary-pseudo-background" }), t.injections.viewSettings.canEdit && ((n = (i = t.props) == null ? void 0 : i._value) != null && n.title) ? [e("CInput", { staticClass: "preview-title-input", attrs: { value: t.props.title, spellcheck: !1, static: "" }, on: { blur: (s) => {
|
|
12
|
+
var a;
|
|
13
|
+
t.injections.viewSettings.setFormValue && t.injections.viewSettings.setFormValue({
|
|
14
|
+
key: t.props._value.title,
|
|
15
|
+
value: ((a = s.target) == null ? void 0 : a.value) || ""
|
|
16
|
+
});
|
|
17
|
+
} }, nativeOn: { keydown: function(s) {
|
|
18
|
+
return !s.type.indexOf("key") && t._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : s.target.blur();
|
|
19
|
+
} } })] : t.props.title ? e("div", [t._v(t._s(t.props.title))]) : t._e()], 2), e("div", { staticClass: "sub-chapter-content" }, [t._t("default")], 2)]);
|
|
20
|
+
}, p = [], u = /* @__PURE__ */ r(
|
|
21
|
+
l,
|
|
22
|
+
o,
|
|
23
|
+
p,
|
|
24
|
+
!0,
|
|
25
|
+
null,
|
|
26
|
+
"ea18e817"
|
|
27
|
+
);
|
|
28
|
+
const f = u.exports;
|
|
29
|
+
export {
|
|
30
|
+
f as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { m as n } from "./mapFormMixin-DlFcgwhm.js";
|
|
2
|
+
import { n as t } from "./main-CQBEuZk9.js";
|
|
3
|
+
const a = {
|
|
4
|
+
name: "ExtraWorkConstructionPricingList",
|
|
5
|
+
components: {
|
|
6
|
+
Read: () => import("./Index-CPJVx14x.js"),
|
|
7
|
+
Edit: () => import("./Index-ZFkitzfq.js")
|
|
8
|
+
},
|
|
9
|
+
mixins: [
|
|
10
|
+
n([
|
|
11
|
+
"workPrice",
|
|
12
|
+
"managementPrice",
|
|
13
|
+
"entrepreneurMarkupPercentage",
|
|
14
|
+
"miscMarkupPercentage"
|
|
15
|
+
])
|
|
16
|
+
]
|
|
17
|
+
};
|
|
18
|
+
var c = function() {
|
|
19
|
+
var e = this, r = e._self._c;
|
|
20
|
+
return e.canEdit ? r("Edit", e._g({ attrs: { _document: e._document, _value: e._value } }, e.$listeners)) : r("Read", { attrs: { _document: e._document, "work-price": e.workPrice, "management-price": e.managementPrice, "entrepreneur-markup-percentage": e.entrepreneurMarkupPercentage, "misc-markup-percentage": e.miscMarkupPercentage } });
|
|
21
|
+
}, m = [], i = /* @__PURE__ */ t(
|
|
22
|
+
a,
|
|
23
|
+
c,
|
|
24
|
+
m,
|
|
25
|
+
!1,
|
|
26
|
+
null,
|
|
27
|
+
"5dbb0a73"
|
|
28
|
+
);
|
|
29
|
+
const _ = i.exports;
|
|
30
|
+
export {
|
|
31
|
+
_ as default
|
|
32
|
+
};
|