@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
package/dist/Index-BJXcSmp_.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { m as n } from "./mapFormMixin-Cu_vkTP-.js";
|
|
2
|
-
import { f as o } from "./focusDrawerMixin-CximZA1J.js";
|
|
3
|
-
import { n as i } from "./main-BL_yzf2r.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-Cwy8ff76.js"),
|
|
19
|
-
TermsSettings: () => import("./TermsSettings-cA5YAO77.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
|
-
};
|
package/dist/Index-BQe6QjQZ.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { m as e } from "./mapFormMixin-Cu_vkTP-.js";
|
|
2
|
-
import { n as r } from "./main-BL_yzf2r.js";
|
|
3
|
-
const a = {
|
|
4
|
-
name: "EstimatedWorkStartAndEndAtText",
|
|
5
|
-
components: {
|
|
6
|
-
Read: () => import("./Index-Ch9r5yhG.js"),
|
|
7
|
-
Edit: () => import("./Index-KtUkOPI2.js")
|
|
8
|
-
},
|
|
9
|
-
mixins: [e(["startAt", "endAt"])]
|
|
10
|
-
};
|
|
11
|
-
var s = function() {
|
|
12
|
-
var t = this, n = t._self._c;
|
|
13
|
-
return t.canEdit ? n("Edit", t._g({ attrs: { _document: t._document, _value: t._value } }, t.$listeners)) : n("Read", { attrs: { "start-at": t.startAt, "end-at": t.endAt } });
|
|
14
|
-
}, o = [], m = /* @__PURE__ */ r(
|
|
15
|
-
a,
|
|
16
|
-
s,
|
|
17
|
-
o,
|
|
18
|
-
!1,
|
|
19
|
-
null,
|
|
20
|
-
null
|
|
21
|
-
);
|
|
22
|
-
const c = m.exports;
|
|
23
|
-
export {
|
|
24
|
-
c as default
|
|
25
|
-
};
|
package/dist/Index-BmXx_x6t.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { n, D as l } from "./main-BL_yzf2r.js";
|
|
2
|
-
const d = {
|
|
3
|
-
name: "MultiGroupPricing",
|
|
4
|
-
props: {
|
|
5
|
-
_document: {
|
|
6
|
-
type: Object,
|
|
7
|
-
default: () => ({})
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
computed: {
|
|
11
|
-
docPriceItems() {
|
|
12
|
-
const { total: c, 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(c)
|
|
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: a, 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(a)
|
|
39
|
-
}
|
|
40
|
-
]
|
|
41
|
-
};
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
methods: {
|
|
46
|
-
priceFormat(c, t) {
|
|
47
|
-
return l(c, {
|
|
48
|
-
currency: this._document.currency,
|
|
49
|
-
showZero: !0,
|
|
50
|
-
decimals: 2,
|
|
51
|
-
hideZeroDecimals: !0,
|
|
52
|
-
...t
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
var p = 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: a, value: s }, o) {
|
|
61
|
-
return e("div", { key: a + o, staticStyle: { display: "flex", "justify-content": "space-between", "font-size": "calc(1 * var(--rem))" } }, [e("div", [t._v(t._s(a))]), 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 }, a) {
|
|
64
|
-
return e("div", { key: a + 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
|
-
d,
|
|
68
|
-
p,
|
|
69
|
-
m,
|
|
70
|
-
!1,
|
|
71
|
-
null,
|
|
72
|
-
"adf5d470"
|
|
73
|
-
);
|
|
74
|
-
const v = u.exports;
|
|
75
|
-
export {
|
|
76
|
-
v as default
|
|
77
|
-
};
|
package/dist/Index-C692qMTG.js
DELETED
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
import { w as c } from "./CDropdownItem-CN7gSfgY.js";
|
|
2
|
-
import { g as a, h as m, n as d, b as l, e as u } from "./main-BL_yzf2r.js";
|
|
3
|
-
import { s as p, i as v } from "./dom-Ds4ypDrd.js";
|
|
4
|
-
import { D as _ } from "./DocModalBase-DXHNJ-6i.js";
|
|
5
|
-
import { C as g } from "./CFormField-Clvcf2Jh.js";
|
|
6
|
-
import { v as n } from "./index-BNdbPq4J.js";
|
|
7
|
-
import { a as h } from "./vuex.esm-DKGl8mcw.js";
|
|
8
|
-
import { a as C } from "./answerDocumentMixin-HBiNWYCH.js";
|
|
9
|
-
const w = {
|
|
10
|
-
i18nOptions: {
|
|
11
|
-
namespaces: "components",
|
|
12
|
-
keyPrefix: "document.propertyDesignationModal"
|
|
13
|
-
},
|
|
14
|
-
components: {
|
|
15
|
-
DocModalBase: _,
|
|
16
|
-
CField: g
|
|
17
|
-
},
|
|
18
|
-
mixins: [c],
|
|
19
|
-
props: {
|
|
20
|
-
senderName: {
|
|
21
|
-
type: String,
|
|
22
|
-
required: !0
|
|
23
|
-
},
|
|
24
|
-
propertyDesignation: {
|
|
25
|
-
type: Object,
|
|
26
|
-
default: null
|
|
27
|
-
},
|
|
28
|
-
fullScreen: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: !1
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
data() {
|
|
34
|
-
return {
|
|
35
|
-
cornerRadius: 0,
|
|
36
|
-
spacing: 0,
|
|
37
|
-
view: "start",
|
|
38
|
-
form: "",
|
|
39
|
-
realEstateId: "",
|
|
40
|
-
condominiumId: null,
|
|
41
|
-
condominiumOrgNo: null
|
|
42
|
-
// messages: {
|
|
43
|
-
// condominiumId: {
|
|
44
|
-
// required: 'Ange ditt lägenhetsnummer',
|
|
45
|
-
// minLength: 'Det ska vara 4 siffror',
|
|
46
|
-
// maxLength: 'Det ska vara 4 siffror',
|
|
47
|
-
// },
|
|
48
|
-
// condominiumOrgNo: {
|
|
49
|
-
// required: 'Ange din bostadensrätts org-nr',
|
|
50
|
-
// },
|
|
51
|
-
// realEstateId: {
|
|
52
|
-
// required: 'Ange din fastighetsbeteckning',
|
|
53
|
-
// },
|
|
54
|
-
// },
|
|
55
|
-
};
|
|
56
|
-
},
|
|
57
|
-
validations: {
|
|
58
|
-
condominiumId: {
|
|
59
|
-
required: n.requiredIf((i) => i.form === "condominium"),
|
|
60
|
-
minLength: n.minLength(4),
|
|
61
|
-
maxLength: n.maxLength(4)
|
|
62
|
-
},
|
|
63
|
-
condominiumOrgNo: {
|
|
64
|
-
required: n.requiredIf((i) => i.form === "condominium")
|
|
65
|
-
},
|
|
66
|
-
realEstateId: {
|
|
67
|
-
required: n.requiredIf((i) => i.form === "realEstate")
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
computed: {
|
|
71
|
-
messages() {
|
|
72
|
-
const i = (e) => this.$t(`validations.${e}`);
|
|
73
|
-
return {
|
|
74
|
-
condominiumId: {
|
|
75
|
-
required: i("condominiumId.required"),
|
|
76
|
-
minLength: i("condominiumId.minLength"),
|
|
77
|
-
maxLength: i("condominiumId.maxLength")
|
|
78
|
-
},
|
|
79
|
-
condominiumOrgNo: {
|
|
80
|
-
required: i("condominiumOrgNo.required")
|
|
81
|
-
},
|
|
82
|
-
realEstateId: {
|
|
83
|
-
required: i("realEstateId.required")
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
created() {
|
|
89
|
-
if (this.propertyDesignation) {
|
|
90
|
-
const {
|
|
91
|
-
propertyType: i = "",
|
|
92
|
-
propertyId: e = "",
|
|
93
|
-
condominiumOrgNo: t = null
|
|
94
|
-
} = this.propertyDesignation;
|
|
95
|
-
this.form = i, i === "realEstate" ? this.realEstateId = e : this.condominiumId = e, this.condominiumOrgNo = t;
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
mounted() {
|
|
99
|
-
this.spacing = window.getComputedStyle(this.$refs.root.$el).paddingTop, this.cornerRadius = window.getComputedStyle(
|
|
100
|
-
this.$refs.root.$el
|
|
101
|
-
).borderRadius;
|
|
102
|
-
},
|
|
103
|
-
methods: {
|
|
104
|
-
...h({
|
|
105
|
-
putCurrentDoc: a.PUT_CURRENT_PUBLIC_DOCUMENT,
|
|
106
|
-
reloadCurrentDocument: a.RELOAD_CURRENT_DOCUMENT
|
|
107
|
-
}),
|
|
108
|
-
async updateClientPropertyDesignation() {
|
|
109
|
-
if (this.$v.$touch(), this.$v.$invalid)
|
|
110
|
-
return;
|
|
111
|
-
const i = {
|
|
112
|
-
propertyType: this.form,
|
|
113
|
-
propertyId: this.form === "realEstate" ? this.realEstateId : this.condominiumId,
|
|
114
|
-
...this.form === "condominium" && {
|
|
115
|
-
condominiumOrgNo: this.condominiumOrgNo
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
try {
|
|
119
|
-
await this.putCurrentDoc({
|
|
120
|
-
body: {
|
|
121
|
-
["clients[0].region.propertyDesignation"]: i
|
|
122
|
-
}
|
|
123
|
-
}), this.reloadCurrentDocument(), this.view = "complete";
|
|
124
|
-
} catch (e) {
|
|
125
|
-
m(e);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
var f = function() {
|
|
131
|
-
var e = this, t = e._self._c;
|
|
132
|
-
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) {
|
|
133
|
-
return e.$emit("close");
|
|
134
|
-
} } }) : 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: {
|
|
135
|
-
paddingTop: e.spacing,
|
|
136
|
-
marginTop: `-${e.spacing}`,
|
|
137
|
-
borderRadius: `${e.cornerRadius} ${e.cornerRadius} 0 0`
|
|
138
|
-
} }, [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) {
|
|
139
|
-
e.view = "start";
|
|
140
|
-
} } }), 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) {
|
|
141
|
-
e.view = "form", e.form = "realEstate";
|
|
142
|
-
} } }, [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) {
|
|
143
|
-
e.view = "form", e.form = "condominium";
|
|
144
|
-
} } }, [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) {
|
|
145
|
-
e.realEstateId = s;
|
|
146
|
-
}, 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) {
|
|
147
|
-
e.condominiumId = s;
|
|
148
|
-
}, 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) {
|
|
149
|
-
e.condominiumOrgNo = s;
|
|
150
|
-
}, 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) {
|
|
151
|
-
return e.$emit("close");
|
|
152
|
-
} } }, [e._v(" " + e._s(e.$t("_common:close")) + " ")])], 1)])]) : e._e()])], 1);
|
|
153
|
-
}, y = [], $ = /* @__PURE__ */ d(
|
|
154
|
-
w,
|
|
155
|
-
f,
|
|
156
|
-
y,
|
|
157
|
-
!1,
|
|
158
|
-
null,
|
|
159
|
-
null
|
|
160
|
-
);
|
|
161
|
-
const b = $.exports, x = {
|
|
162
|
-
i18nOptions: {
|
|
163
|
-
namespaces: "docAnswer",
|
|
164
|
-
messages: {
|
|
165
|
-
en: {
|
|
166
|
-
previewTooltip: "Only your clients can answer"
|
|
167
|
-
},
|
|
168
|
-
sv: {
|
|
169
|
-
previewTooltip: "Enbart din mottagare kan besvara"
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
name: "DocumentAnswerRead",
|
|
174
|
-
mixins: [C({ documentKey: "_document" }), c],
|
|
175
|
-
inject: {
|
|
176
|
-
isPdf: {
|
|
177
|
-
default: !1
|
|
178
|
-
},
|
|
179
|
-
customHtmlAccept: {
|
|
180
|
-
default: ""
|
|
181
|
-
},
|
|
182
|
-
customHtmlDeny: {
|
|
183
|
-
default: ""
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
props: {
|
|
187
|
-
_document: {
|
|
188
|
-
type: Object,
|
|
189
|
-
required: !0
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
data() {
|
|
193
|
-
return {
|
|
194
|
-
isInViewport: !1,
|
|
195
|
-
scrollToElement: p
|
|
196
|
-
};
|
|
197
|
-
},
|
|
198
|
-
computed: {
|
|
199
|
-
viewerId() {
|
|
200
|
-
var i;
|
|
201
|
-
return ((i = this._document._doc) == null ? void 0 : i.viewerId) || null;
|
|
202
|
-
},
|
|
203
|
-
isPreview() {
|
|
204
|
-
return this._document.isPreview;
|
|
205
|
-
},
|
|
206
|
-
modalHeight() {
|
|
207
|
-
return this.mq === "sm" ? "100%" : "auto";
|
|
208
|
-
},
|
|
209
|
-
allowPropertyDesignation() {
|
|
210
|
-
const { prices: i } = this._document;
|
|
211
|
-
if (!i || !i.region)
|
|
212
|
-
return !1;
|
|
213
|
-
const { houseWorkType: e } = i.region;
|
|
214
|
-
return ["rot", "greenRot15", "greenRot20", "greenRot50"].includes(
|
|
215
|
-
e
|
|
216
|
-
);
|
|
217
|
-
},
|
|
218
|
-
propertyDesignation() {
|
|
219
|
-
return l(this._document, "clients[0].region.propertyDesignation", null);
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
watch: {
|
|
223
|
-
$route: {
|
|
224
|
-
immediate: !0,
|
|
225
|
-
handler(i) {
|
|
226
|
-
i != null && i.hash && this.onAnswer("accept", { calcHeight: !0 });
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
isInViewport: {
|
|
230
|
-
immediate: !0,
|
|
231
|
-
handler(i, e) {
|
|
232
|
-
i !== e && u.trigger("ui:document.block.answer.visible", i);
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
mounted() {
|
|
237
|
-
window.addEventListener("scroll", this.scrollHandler, {
|
|
238
|
-
capture: !0,
|
|
239
|
-
passive: !0
|
|
240
|
-
}), this.$route.name === "docPropertyDesignation" && this.showPropertyDesignation();
|
|
241
|
-
},
|
|
242
|
-
destroyed() {
|
|
243
|
-
window.removeEventListener("scroll", this.scrollHandler);
|
|
244
|
-
},
|
|
245
|
-
methods: {
|
|
246
|
-
scrollHandler() {
|
|
247
|
-
this.$refs.answerButtons && (this.isInViewport = v(this.$refs.answerButtons));
|
|
248
|
-
},
|
|
249
|
-
showPropertyDesignation() {
|
|
250
|
-
this.$modal.show(
|
|
251
|
-
b,
|
|
252
|
-
{
|
|
253
|
-
senderName: this._document.sender.user.name,
|
|
254
|
-
propertyDesignation: this.propertyDesignation,
|
|
255
|
-
fullScreen: this.modalHeight === "100%"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
adaptive: !0,
|
|
259
|
-
height: this.modalHeight,
|
|
260
|
-
width: "100%",
|
|
261
|
-
maxWidth: this.modalHeight === "100%" ? 999 : 400,
|
|
262
|
-
classes: "overflow-visible",
|
|
263
|
-
transition: "fade-in-slide-up"
|
|
264
|
-
}
|
|
265
|
-
);
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
};
|
|
269
|
-
var H = function() {
|
|
270
|
-
var s, o;
|
|
271
|
-
var e = this, t = e._self._c;
|
|
272
|
-
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) {
|
|
273
|
-
return e.onAnswer("decline");
|
|
274
|
-
} } }) : 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) {
|
|
275
|
-
return e.onAnswer("decline");
|
|
276
|
-
} } }, [e._v(" " + e._s(e._document.$t("deny").capitalize()) + " ")]), e.customHtmlAccept ? t("div", { domProps: { innerHTML: e._s(e.customHtmlAccept) }, on: { click: function(r) {
|
|
277
|
-
return e.onAnswer("accept");
|
|
278
|
-
} } }) : 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) {
|
|
279
|
-
return e.onAnswer("accept");
|
|
280
|
-
} } }, [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) {
|
|
281
|
-
return e.showPropertyDesignation();
|
|
282
|
-
} } }, [e._v(" " + e._s(e._document.$t(`chapters.answerButtons.${e.propertyDesignation ? "editPropDes" : "enterPropDes"}`)) + " ")])]) : e._e()]) : e._e();
|
|
283
|
-
}, D = [], I = /* @__PURE__ */ d(
|
|
284
|
-
x,
|
|
285
|
-
H,
|
|
286
|
-
D,
|
|
287
|
-
!1,
|
|
288
|
-
null,
|
|
289
|
-
"a09f8d01"
|
|
290
|
-
);
|
|
291
|
-
const B = I.exports;
|
|
292
|
-
export {
|
|
293
|
-
B as default
|
|
294
|
-
};
|
package/dist/Index-CEvbw-3i.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { m as s } from "./mapFormMixin-Cu_vkTP-.js";
|
|
2
|
-
import { T as a } from "./DocTextEditor-yD9Dt_um.js";
|
|
3
|
-
import { H as i, J as c, K as r, n as m } from "./main-BL_yzf2r.js";
|
|
4
|
-
const l = {
|
|
5
|
-
name: "TextContent",
|
|
6
|
-
components: {
|
|
7
|
-
TextEditor: a
|
|
8
|
-
},
|
|
9
|
-
mixins: [s(["content"])],
|
|
10
|
-
computed: {
|
|
11
|
-
value: {
|
|
12
|
-
get() {
|
|
13
|
-
return this.canEdit ? i(
|
|
14
|
-
this.content,
|
|
15
|
-
this._document.textTemplateMap,
|
|
16
|
-
this._document._doc
|
|
17
|
-
) : c(this.content, this._document._doc);
|
|
18
|
-
},
|
|
19
|
-
set(e) {
|
|
20
|
-
this.content = r(e);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
var u = function() {
|
|
26
|
-
var t = this, n = t._self._c;
|
|
27
|
-
return n("div", { staticClass: "quill-format", staticStyle: { "font-size": "16px" } }, [n("TextEditor", { ref: "textEditor", staticClass: "text-editor", staticStyle: { "margin-bottom": "1em" }, attrs: { placeholder: t.$t("components:account.documentForm.titleAndText.text"), mentions: () => t._document.textTemplateItems, snippets: !0, "is-absolute": !0 }, model: { value: t.value, callback: function(o) {
|
|
28
|
-
t.value = o;
|
|
29
|
-
}, expression: "value" } })], 1);
|
|
30
|
-
}, d = [], p = /* @__PURE__ */ m(
|
|
31
|
-
l,
|
|
32
|
-
u,
|
|
33
|
-
d,
|
|
34
|
-
!1,
|
|
35
|
-
null,
|
|
36
|
-
"4df272c3"
|
|
37
|
-
);
|
|
38
|
-
const h = p.exports;
|
|
39
|
-
export {
|
|
40
|
-
h as default
|
|
41
|
-
};
|
package/dist/Index-CYSULnpn.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { m as n } from "./mapFormMixin-Cu_vkTP-.js";
|
|
2
|
-
import { n as t } from "./main-BL_yzf2r.js";
|
|
3
|
-
const a = {
|
|
4
|
-
name: "ExtraWorkConstructionPricingList",
|
|
5
|
-
components: {
|
|
6
|
-
Read: () => import("./Index-Dfq7egc1.js"),
|
|
7
|
-
Edit: () => import("./Index-Cv6XLM20.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
|
-
"b31d846d"
|
|
28
|
-
);
|
|
29
|
-
const _ = i.exports;
|
|
30
|
-
export {
|
|
31
|
-
_ as default
|
|
32
|
-
};
|
package/dist/Index-CdtYzwAM.js
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { m as i } from "./mapFormMixin-Cu_vkTP-.js";
|
|
2
|
-
import { V as n } from "./PdfViewer-mBLxI8bA.js";
|
|
3
|
-
import { c as l, d as o, n as d } from "./main-BL_yzf2r.js";
|
|
4
|
-
const u = {
|
|
5
|
-
i18nOptions: {
|
|
6
|
-
namespaces: "pdfBlock",
|
|
7
|
-
messages: {
|
|
8
|
-
en: {
|
|
9
|
-
embedded: "Embedded",
|
|
10
|
-
numOfPages: "- {{numPages}} pages",
|
|
11
|
-
upload: "Upload PDF"
|
|
12
|
-
},
|
|
13
|
-
sv: {
|
|
14
|
-
embedded: "Inbäddat",
|
|
15
|
-
numOfPages: "- {{numPages}} sidor",
|
|
16
|
-
upload: "Ladda upp en pdf"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
name: "Pdf",
|
|
21
|
-
components: {
|
|
22
|
-
PdfViewer: n,
|
|
23
|
-
FileIcon: () => import("./Index-B1Odktov.js"),
|
|
24
|
-
BaseUpload: () => import("./BaseUpload-BfEurAAV.js")
|
|
25
|
-
},
|
|
26
|
-
mixins: [i(["file"])],
|
|
27
|
-
inject: {
|
|
28
|
-
isPdf: {
|
|
29
|
-
default: !1
|
|
30
|
-
},
|
|
31
|
-
_firstBlock: {
|
|
32
|
-
default: !1
|
|
33
|
-
},
|
|
34
|
-
_lastBlock: {
|
|
35
|
-
default: !1
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
data() {
|
|
39
|
-
return {
|
|
40
|
-
uploadProgress: null,
|
|
41
|
-
isHover: !1,
|
|
42
|
-
numPages: null,
|
|
43
|
-
maxFileSize: 1e3 * 1e3 * 30
|
|
44
|
-
// 30 MB
|
|
45
|
-
};
|
|
46
|
-
},
|
|
47
|
-
computed: {
|
|
48
|
-
showControls() {
|
|
49
|
-
return !this.file || this.isHover || this.uploadProgress !== null;
|
|
50
|
-
},
|
|
51
|
-
// Fetch the file from API instead of AWS directly
|
|
52
|
-
fileUrl() {
|
|
53
|
-
if (!this.file || !this.file.url)
|
|
54
|
-
return null;
|
|
55
|
-
if (this.file.url.startsWith(l.api.baseUrl))
|
|
56
|
-
return this.file.url;
|
|
57
|
-
try {
|
|
58
|
-
const { hostname: a } = new URL(this.file.url);
|
|
59
|
-
if (Object.keys(o).some(
|
|
60
|
-
(s) => a.includes(o[s].domain)
|
|
61
|
-
))
|
|
62
|
-
return this.file.url;
|
|
63
|
-
} catch {
|
|
64
|
-
}
|
|
65
|
-
return `${l.api.baseUrl}/public/fileProxy?url=${encodeURIComponent(
|
|
66
|
-
this.file.url
|
|
67
|
-
)}`;
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
methods: {
|
|
71
|
-
onUploadSuccess(a) {
|
|
72
|
-
const { id: e, displayName: s, url: t, mime: r } = a.response;
|
|
73
|
-
if (!e)
|
|
74
|
-
throw new Error("Could not read id from uploaded file");
|
|
75
|
-
this.file = {
|
|
76
|
-
fileId: e,
|
|
77
|
-
name: s,
|
|
78
|
-
mime: r,
|
|
79
|
-
url: t
|
|
80
|
-
}, this.$refs.uploader.remove(a), this.uploadProgress = null;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
var f = function() {
|
|
85
|
-
var e = this, s = e._self._c;
|
|
86
|
-
return s("div", { staticClass: "font-inter print-no-margin", staticStyle: { position: "relative" }, on: { mouseover: function(t) {
|
|
87
|
-
e.isHover = !0;
|
|
88
|
-
}, mouseleave: function(t) {
|
|
89
|
-
e.isHover = !1;
|
|
90
|
-
} } }, [e.canEdit ? s("div", { directives: [{ name: "show", rawName: "v-show", value: e.showControls, expression: "showControls" }], staticClass: "chapter-spacing-x pointer-events-none mx-auto flex max-w-full items-center justify-center", class: !!e.file && "absolute left-0 right-0 top-2 z-10" }, [s("div", { staticClass: "pointer-events-auto flex w-full max-w-[95%] items-center rounded-lg bg-gray-100 !p-4 text-left", class: !!e.file && "border border-gray-200 !p-2 shadow-lg" }, [s("FileIcon", { attrs: { mime: "application/pdf" } }), s("div", { staticClass: "flex-auto pl-4" }, [s("div", { staticClass: "font-medium" }, [e._v("PDF")]), s("div", { staticClass: "text-sm text-gray-600" }, [e._v(" " + e._s(e.$t("embedded")) + " " + e._s(e.numPages ? e.$t("numOfPages", { numPages: e.numPages }) : "") + " ")])]), s("BaseUpload", { ref: "uploader", attrs: { "autostart-upload": !0, "background-drop": !1, extensions: "pdf", accept: "application/pdf", "max-size": e.maxFileSize }, on: { input: ([t]) => e.uploadProgress = t ? parseInt(t.progress, 10) : null, "upload-success": e.onUploadSuccess }, scopedSlots: e._u([{ key: "default", fn: function({ openFilePicker: t }) {
|
|
91
|
-
return [s("CButton", { staticStyle: { "z-index": "2" }, attrs: { type: e.file ? "none" : "secondary", pattern: e.file ? "secondary" : "primary", disabled: e.uploadProgress !== null }, on: { click: t } }, [e.uploadProgress !== null ? [e._v(" " + e._s(`${e.uploadProgress}% ${e.$t("_common:uploading")}`) + " ")] : [e._v(" " + e._s(e.file ? e.$t("_common:change", { thing: e.$t("_common:file") }) : e.$t("upload")) + " ")]], 2)];
|
|
92
|
-
} }], null, !1, 3134809537) })], 1)]) : e._e(), e.file ? s("div", [s("div", { class: {
|
|
93
|
-
"break-before-page": e.isPdf && !e._firstBlock,
|
|
94
|
-
"break-after-page": e.isPdf && !e._lastBlock
|
|
95
|
-
} }, [e.file && e.file.url ? s("PdfViewer", { attrs: { src: e.fileUrl, toolbar: !e.canEdit, "doc-file-path": `${e._value.file}.url` }, on: { numPages: (t) => e.numPages = t } }) : e._e()], 1)]) : e._e()]);
|
|
96
|
-
}, c = [], p = /* @__PURE__ */ d(
|
|
97
|
-
u,
|
|
98
|
-
f,
|
|
99
|
-
c,
|
|
100
|
-
!1,
|
|
101
|
-
null,
|
|
102
|
-
null
|
|
103
|
-
);
|
|
104
|
-
const _ = p.exports;
|
|
105
|
-
export {
|
|
106
|
-
_ as default
|
|
107
|
-
};
|