@cling-se/widget 1.0.0-beta.1 → 1.0.0-beta.2
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 +25 -0
- package/README.internal.md +82 -0
- package/README.md +14 -40
- package/README.public.md +14 -0
- package/dist/AddClientCallout-e8d19R3f.js +101 -0
- package/dist/AnswerModal-BGvB8IVV.js +3291 -0
- package/dist/AttachmentItem-CkHbAm4l.js +171 -0
- package/dist/BaseUpload-BiJBcWRu.js +2472 -0
- package/dist/BlockMedia-CW5wgipC.js +103 -0
- package/dist/CCallout-Cy2eeIYd.js +104 -0
- package/dist/{CCurrencyDropdown-qH-3m2eP.js → CCurrencyDropdown-DE_3CTjm.js} +91 -49
- package/dist/CDropdownItem-Dmq5gYzA.js +751 -0
- package/dist/CFormField.vue_vue_type_script_setup_true_lang-D_U9coAY.js +292 -0
- package/dist/{CPhoneFormat-CfQayFxw.js → CPhoneFormat-BS2nP9kc.js} +13 -21
- package/dist/CPhoneInput-Bf6329PO.js +207 -0
- package/dist/CPriceInput-d1yjuMQr.js +140 -0
- package/dist/CSelect-DgnT07Hk.js +98 -0
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-Ckl--dyv.js +51 -0
- package/dist/ClientAutocomplete-9JzGcO9O.js +532 -0
- package/dist/ClientModal-BzWQtWSZ.js +1181 -0
- package/dist/ColorPicker-BvoFN8nu.js +1408 -0
- package/dist/CompanyModal-Bp4V_az9.js +250 -0
- package/dist/ContentWrapper-CuH6xKmo.js +265 -0
- package/dist/CoverBlockSettings-BA5L0Zee.js +861 -0
- package/dist/DocAnswer-BcNA_KEg.js +33 -0
- package/dist/DocDetails-CStEwWnU.js +448 -0
- package/dist/DocForm-BOoILf5E.js +6748 -0
- package/dist/DocFormSend-CQIf-HJY.js +171 -0
- package/dist/DocLinks-BRX5QzNe.js +36 -0
- package/dist/DocModalBase-D72yWj-x.js +29 -0
- package/dist/DocPrint-BI1LXUPE.js +399 -0
- package/dist/DocReceipt-DaZ4V76p.js +341 -0
- package/dist/DocSendReminder-DKGZlo7s.js +181 -0
- package/dist/DocTextEditor-Dm-cTZpA.js +19413 -0
- package/dist/DocTimeline-DCwofzuk.js +537 -0
- package/dist/DocumentClient-vJdxCB53.js +90 -0
- package/dist/DocumentLayout-CKSi42ev.js +1368 -0
- package/dist/DocumentLogotype-DbQlvQ-y.js +162 -0
- package/dist/DocumentVoided-CRX2WxWO.js +33 -0
- package/dist/EmbedInput-B-oeC4Wy.js +157 -0
- package/dist/EmbedSettings-B9Yka2yB.js +103 -0
- package/dist/ErrorCallout-B_ygH33E.js +34 -0
- package/dist/FilePreviewModal-Bf3ELTow.js +202 -0
- package/dist/Flag-BwTgCNHO.js +41 -0
- package/dist/HeaderSettings-DvC7nlyY.js +720 -0
- package/dist/ImageSelectModal-D3sP3lhR.js +119 -0
- package/dist/ImageUploadWrapper-RWNa-yIq.js +1585 -0
- package/dist/Index-0_3ULrWX.js +126 -0
- package/dist/Index-4NPe0sfX.js +629 -0
- package/dist/Index-B1uA0FF6.js +4 -0
- package/dist/Index-BBkCYm2q.js +201 -0
- package/dist/{Index-DIOiMm9f.js → Index-BBwvo7S9.js} +10 -18
- package/dist/Index-BEMlsYwJ.js +68 -0
- package/dist/Index-BRBhJ6kz.js +21 -0
- package/dist/{Index--qPMWUMT.js → Index-BTFmHjUt.js} +48 -61
- package/dist/Index-BcUNnxLC.js +1098 -0
- package/dist/Index-Bo6ExBUL.js +93 -0
- package/dist/Index-BvMPCgdH.js +102 -0
- package/dist/Index-Bx5TOI9k.js +74 -0
- package/dist/Index-C7GZS8EI.js +16 -0
- package/dist/Index-CNWhm07R.js +25 -0
- package/dist/{Index-DcQbh-z2.js → Index-CQpznMKV.js} +9 -17
- package/dist/Index-CRzsnIij.js +159 -0
- package/dist/Index-CeSG1C41.js +140 -0
- package/dist/Index-CjfjdZj5.js +52 -0
- package/dist/Index-CskKmZpd.js +363 -0
- package/dist/Index-D5qwbCo1.js +28 -0
- package/dist/Index-D8Ae1Txt.js +228 -0
- package/dist/Index-DE8aenDB.js +3452 -0
- package/dist/Index-DI5EB5Rt.js +39 -0
- package/dist/Index-DaV57YPP.js +163 -0
- package/dist/Index-DbwkmoyM.js +38 -0
- package/dist/Index-Df9skok6.js +70 -0
- package/dist/{Index-Bu0MGrj6.js → Index-DfLLA0ij.js} +313 -206
- package/dist/Index-Dw1CO5F9.js +76 -0
- package/dist/Index-PZXyOoVb.js +87 -0
- package/dist/{Index-D4XgxmbD.js → Index-ZUnH-BHj.js} +10 -18
- package/dist/Index-cjKGSiDi.js +136 -0
- package/dist/Index-m-goRuKD.js +49 -0
- package/dist/Index-rGeWbLcB.js +47 -0
- package/dist/Index-vrljNp6G.js +28 -0
- package/dist/Index.vue_vue_type_script_lang-aeVuChGF.js +671 -0
- package/dist/InputToggleRow-v6qAWPg6.js +99 -0
- package/dist/ManualPopover-BONBJIUA.js +57 -0
- package/dist/MediaWrapper-CXb2UGd9.js +18 -0
- package/dist/{NotBindingText-CNV2Wmdx.js → NotBindingText-BqESO13N.js} +13 -17
- package/dist/PackageGroup-AIysVmyh.js +1058 -0
- package/dist/PdfTerms-BlhHdTu3.js +34 -0
- package/dist/PdfViewer-DwZ1rwlN.js +392 -0
- package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6NNUTz0.js +17 -0
- package/dist/PriceHeader-C4XhnoA3.js +488 -0
- package/dist/SearchApi-B7lXgUY6.js +137 -0
- package/dist/SendForm-BcD0xSvB.js +7031 -0
- package/dist/Setup-C2qaYDei.js +47 -0
- package/dist/{SmartList-Qgu0rMrI.js → SmartList-DqG7Q5t7.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-CzMbr8AX.js +1303 -0
- package/dist/{TermsSettings-CE3h_xkm.js → TermsSettings-BOCONyM4.js} +169 -49
- package/dist/ThemeColorRow-sjGdMzGN.js +108 -0
- package/dist/ToggleBinding-7oq_oXPt.js +44 -0
- package/dist/UploadModal-C_X2NjVY.js +134 -0
- package/dist/VideoPlayerInput-BsUcmpl4.js +135 -0
- package/dist/VideoPlayerSettings-BXMmxaZQ.js +78 -0
- package/dist/VideoSelectModal-CW0OweCw.js +217 -0
- package/dist/{anime.es-BrPTThYb.js → anime.es-gdcpA-eY.js} +1 -2
- package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
- package/dist/{debounce-C1AuSpOZ.js → debounce-DNl99Gyo.js} +7 -7
- package/dist/dom-CkTGWrfu.js +69 -0
- package/dist/{focusDrawerMixin-Be6BAK8-.js → focusDrawerMixin-BwcErMDY.js} +1 -1
- package/dist/{formDrawerState-DRbg5rVI.js → formDrawerState-DaurePnd.js} +2 -2
- package/dist/helpers-CPW--XIz.js +44 -0
- package/dist/index-BjiGCJPI.js +149 -0
- package/dist/index-CFNv6OvX.js +188 -0
- package/dist/index-Cx71On5Z.js +508 -0
- package/dist/index-DKMxIBz_.js +270 -0
- package/dist/index-DKf5SGLD.js +125 -0
- package/dist/index-E32WgUp9.js +3525 -0
- package/dist/index-kp-GC5I0.js +513 -0
- package/dist/index.es.js +2 -5
- package/dist/index.umd.js +306 -1505
- package/dist/{main-WKzC-Dnu.js → main-Cb-nyil1.js} +33252 -33755
- package/dist/mapFormMixin-D3BihYWW.js +1544 -0
- package/dist/omit--YYr41Xp.js +31 -0
- package/dist/{publicSenderState-BujjYsZZ.js → publicSenderState-CdRW_Wwp.js} +4 -4
- package/dist/regions-BdZt9Srn.js +1250 -0
- package/dist/splitpanes-D-ThFkeR.js +342 -0
- package/dist/style.css +1 -4
- package/dist/template-BvaNnq-g.js +1493 -0
- package/dist/{throttle-CWPJmFid.js → throttle-D-bUGaVh.js} +2 -2
- package/dist/tippy.esm-BmKNqohP.js +1994 -0
- package/dist/useTermsModal-Dhf6_eYb.js +87 -0
- package/dist/{utils-CA_Zy6u1.js → utils-CBPcYdLv.js} +8 -11
- package/dist/validation-DOcUOoMe.js +40 -0
- package/package.json +25 -31
- package/.eslintrc.cjs +0 -4
- package/dist/AddClientCallout-BWnvyBcK.js +0 -46
- package/dist/AnswerModal-CLGRdSnK.js +0 -3874
- package/dist/AttachmentItem-BPS0-wyc.js +0 -78
- package/dist/BaseDatePicker-BbmV_GdD.js +0 -3183
- package/dist/BaseUpload-9gPgI7r6.js +0 -1977
- package/dist/BlockMedia-DkPFWiYL.js +0 -76
- package/dist/CCallout-T26jwUby.js +0 -59
- package/dist/CDropdownItem-BE8BAMD1.js +0 -636
- package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
- package/dist/CFormField-DECEfoVq.js +0 -241
- package/dist/CPriceInput-C4SOB-P5.js +0 -112
- package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
- package/dist/ClientAutocomplete-DSebA1Mx.js +0 -78
- package/dist/ClientModal-BXFYvYCF.js +0 -625
- package/dist/ColorPicker-CZ_bJabP.js +0 -2879
- package/dist/CompanyModal-CDr3t28n.js +0 -141
- package/dist/ContentWrapper-BwmMoe4W.js +0 -183
- package/dist/CoverBlockSettings-_F11-DGc.js +0 -275
- package/dist/DocAnswer-BR59xzkT.js +0 -36
- package/dist/DocDetails-D1qbCbps.js +0 -259
- package/dist/DocForm-DBc2a7z5.js +0 -7272
- package/dist/DocFormSend-Casix-yG.js +0 -144
- package/dist/DocLinks-DGTaewyX.js +0 -38
- package/dist/DocModalBase-BbS_qvSv.js +0 -28
- package/dist/DocPrint-0PqX3mbJ.js +0 -240
- package/dist/DocReceipt-CU3VD5pt.js +0 -210
- package/dist/DocSendReminder-CuycBspr.js +0 -137
- package/dist/DocTextEditor-CntS2Bd-.js +0 -17180
- package/dist/DocTimeline-DJuv3yBe.js +0 -481
- package/dist/DocumentClient-C25XXzz6.js +0 -136
- package/dist/DocumentLayout-B7afHRMr.js +0 -4909
- package/dist/DocumentLogotype-sqI51wvM.js +0 -87
- package/dist/DocumentVoided-TahdTSMn.js +0 -25
- package/dist/EmbedInput-BY-wHSfc.js +0 -113
- package/dist/EmbedSettings-8pfjk4NP.js +0 -72
- package/dist/ErrorCallout-Dsr8PNsU.js +0 -28
- package/dist/FilePreviewModal-CcEinEFg.js +0 -81
- package/dist/Flag-PJKrghi9.js +0 -114
- package/dist/HeaderSettings-BqczIOsG.js +0 -392
- package/dist/ImageSelectModal-Cd-HhKnH.js +0 -84
- package/dist/ImageUploadWrapper-Dv43rGdb.js +0 -1604
- package/dist/Index-6b5VBKE-.js +0 -107
- package/dist/Index-B4pRJnbw.js +0 -84
- package/dist/Index-B69f8qgZ.js +0 -62
- package/dist/Index-B79YN9RO.js +0 -25
- package/dist/Index-BBrlPoe8.js +0 -58
- package/dist/Index-BXfWJCuq.js +0 -52
- package/dist/Index-Bd76vb37.js +0 -55
- package/dist/Index-BmbtQO5F.js +0 -150
- package/dist/Index-ByV_kJaH.js +0 -77
- package/dist/Index-CDV5rhWS.js +0 -49
- package/dist/Index-CIx4OOK-.js +0 -144
- package/dist/Index-CL1OWLt6.js +0 -223
- package/dist/Index-Caow0eZu.js +0 -31
- package/dist/Index-Cd3-3PEK.js +0 -2402
- package/dist/Index-CdpZBEKU.js +0 -98
- package/dist/Index-CmU3Sys-.js +0 -754
- package/dist/Index-CtRtgnpm.js +0 -32
- package/dist/Index-Cukkr33D.js +0 -140
- package/dist/Index-Cuqw0ios.js +0 -57
- package/dist/Index-Czm_WdqC.js +0 -25
- package/dist/Index-DNdYXHgr.js +0 -33
- package/dist/Index-DcuBxutp.js +0 -642
- package/dist/Index-DpWNWiyY.js +0 -291
- package/dist/Index-DzS1rZdF.js +0 -24
- package/dist/Index-N6s5pZxv.js +0 -26
- package/dist/Index-g_DNu4mt.js +0 -69
- package/dist/Index-mJ8F41GY.js +0 -154
- package/dist/Index-q7W9KA8m.js +0 -21
- package/dist/Index-rtzblZp4.js +0 -70
- package/dist/InputToggleRow-CZjxsDOQ.js +0 -57
- package/dist/ManualPopover-CZrWiT-P.js +0 -58
- package/dist/MediaWrapper-D37qK4KR.js +0 -23
- package/dist/PackageGroup-Heo_s8ct.js +0 -699
- package/dist/PdfTerms-AB9tXAtU.js +0 -36
- package/dist/PdfViewer-CIVkvOBr.js +0 -373
- package/dist/PlainHtml-CPmIebjY.js +0 -20
- package/dist/PriceHeader-DhDAruwX.js +0 -339
- package/dist/SearchApi-BMgdaI4s.js +0 -161
- package/dist/Setup-VIaIV9uT.js +0 -50
- package/dist/ThemeColorRow-DYJNgk6S.js +0 -67
- package/dist/ToggleBinding-CuwCeYpO.js +0 -38
- package/dist/UploadModal-BITcxG-J.js +0 -95
- package/dist/VideoPlayerInput-8szEX_8L.js +0 -93
- package/dist/VideoPlayerSettings-BIPytm6w.js +0 -61
- package/dist/VideoSelectModal-B-Pe34nb.js +0 -100
- package/dist/answerDocumentMixin-W7vE1Gp4.js +0 -51
- package/dist/formComponentsInstall-Bm3VMOh6.js +0 -2507
- package/dist/formValidationMixin-COkY8COk.js +0 -49
- package/dist/index-BFvjENMH.js +0 -81
- package/dist/index-BV2nGWay.js +0 -492
- package/dist/index-BgJ05dYc.js +0 -165
- package/dist/index-CMPAXxzs.js +0 -347
- package/dist/index-DNDjI5uI.js +0 -3916
- package/dist/index-aoff9oUi.js +0 -102
- package/dist/mapFormMixin-QbevCwJK.js +0 -72
- package/dist/omit-CTp9CXoU.js +0 -31
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/tinycolor-kTl0yxzz.js +0 -633
- package/dist/tippy.esm-sS5koDSU.js +0 -1799
- package/dist/vuedraggable.umd-BA3ZDRAp.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
- package/public/favicon.ico +0 -0
- package/tsconfig.json +0 -26
- package/tsconfig.node.json +0 -10
- package/tsconfig.paths.json +0 -17
- package/vite.config.ts +0 -60
package/dist/Index-DpWNWiyY.js
DELETED
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
import { w as c, s as m, i as l } from "./CDropdownItem-BE8BAMD1.js";
|
|
2
|
-
import { g as a, h as u, n as d, b as p, e as v } from "./main-WKzC-Dnu.js";
|
|
3
|
-
import { D as _ } from "./DocModalBase-BbS_qvSv.js";
|
|
4
|
-
import { v as n } from "./index-BV2nGWay.js";
|
|
5
|
-
import { a as g } from "./vuex.esm-DKGl8mcw.js";
|
|
6
|
-
import { a as h } from "./answerDocumentMixin-W7vE1Gp4.js";
|
|
7
|
-
const C = {
|
|
8
|
-
i18nOptions: {
|
|
9
|
-
namespaces: "components",
|
|
10
|
-
keyPrefix: "document.propertyDesignationModal"
|
|
11
|
-
},
|
|
12
|
-
components: {
|
|
13
|
-
DocModalBase: _
|
|
14
|
-
},
|
|
15
|
-
mixins: [c],
|
|
16
|
-
props: {
|
|
17
|
-
senderName: {
|
|
18
|
-
type: String,
|
|
19
|
-
required: !0
|
|
20
|
-
},
|
|
21
|
-
propertyDesignation: {
|
|
22
|
-
type: Object,
|
|
23
|
-
default: null
|
|
24
|
-
},
|
|
25
|
-
fullScreen: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
default: !1
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
data() {
|
|
31
|
-
return {
|
|
32
|
-
cornerRadius: 0,
|
|
33
|
-
spacing: 0,
|
|
34
|
-
view: "start",
|
|
35
|
-
form: "",
|
|
36
|
-
realEstateId: "",
|
|
37
|
-
condominiumId: null,
|
|
38
|
-
condominiumOrgNo: null
|
|
39
|
-
// messages: {
|
|
40
|
-
// condominiumId: {
|
|
41
|
-
// required: 'Ange ditt lägenhetsnummer',
|
|
42
|
-
// minLength: 'Det ska vara 4 siffror',
|
|
43
|
-
// maxLength: 'Det ska vara 4 siffror',
|
|
44
|
-
// },
|
|
45
|
-
// condominiumOrgNo: {
|
|
46
|
-
// required: 'Ange din bostadensrätts org-nr',
|
|
47
|
-
// },
|
|
48
|
-
// realEstateId: {
|
|
49
|
-
// required: 'Ange din fastighetsbeteckning',
|
|
50
|
-
// },
|
|
51
|
-
// },
|
|
52
|
-
};
|
|
53
|
-
},
|
|
54
|
-
validations: {
|
|
55
|
-
condominiumId: {
|
|
56
|
-
required: n.requiredIf((i) => i.form === "condominium"),
|
|
57
|
-
minLength: n.minLength(4),
|
|
58
|
-
maxLength: n.maxLength(4)
|
|
59
|
-
},
|
|
60
|
-
condominiumOrgNo: {
|
|
61
|
-
required: n.requiredIf((i) => i.form === "condominium")
|
|
62
|
-
},
|
|
63
|
-
realEstateId: {
|
|
64
|
-
required: n.requiredIf((i) => i.form === "realEstate")
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
computed: {
|
|
68
|
-
messages() {
|
|
69
|
-
const i = (e) => this.$t(`validations.${e}`);
|
|
70
|
-
return {
|
|
71
|
-
condominiumId: {
|
|
72
|
-
required: i("condominiumId.required"),
|
|
73
|
-
minLength: i("condominiumId.minLength"),
|
|
74
|
-
maxLength: i("condominiumId.maxLength")
|
|
75
|
-
},
|
|
76
|
-
condominiumOrgNo: {
|
|
77
|
-
required: i("condominiumOrgNo.required")
|
|
78
|
-
},
|
|
79
|
-
realEstateId: {
|
|
80
|
-
required: i("realEstateId.required")
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
created() {
|
|
86
|
-
if (this.propertyDesignation) {
|
|
87
|
-
const {
|
|
88
|
-
propertyType: i = "",
|
|
89
|
-
propertyId: e = "",
|
|
90
|
-
condominiumOrgNo: t = null
|
|
91
|
-
} = this.propertyDesignation;
|
|
92
|
-
this.form = i, i === "realEstate" ? this.realEstateId = e : this.condominiumId = e, this.condominiumOrgNo = t;
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
mounted() {
|
|
96
|
-
this.spacing = window.getComputedStyle(this.$refs.root.$el).paddingTop, this.cornerRadius = window.getComputedStyle(
|
|
97
|
-
this.$refs.root.$el
|
|
98
|
-
).borderRadius;
|
|
99
|
-
},
|
|
100
|
-
methods: {
|
|
101
|
-
...g({
|
|
102
|
-
putCurrentDoc: a.PUT_CURRENT_PUBLIC_DOCUMENT,
|
|
103
|
-
reloadCurrentDocument: a.RELOAD_CURRENT_DOCUMENT
|
|
104
|
-
}),
|
|
105
|
-
async updateClientPropertyDesignation() {
|
|
106
|
-
if (this.$v.$touch(), this.$v.$invalid)
|
|
107
|
-
return;
|
|
108
|
-
const i = {
|
|
109
|
-
propertyType: this.form,
|
|
110
|
-
propertyId: this.form === "realEstate" ? this.realEstateId : this.condominiumId,
|
|
111
|
-
...this.form === "condominium" && {
|
|
112
|
-
condominiumOrgNo: this.condominiumOrgNo
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
try {
|
|
116
|
-
await this.putCurrentDoc({
|
|
117
|
-
body: {
|
|
118
|
-
["clients[0].region.propertyDesignation"]: i
|
|
119
|
-
}
|
|
120
|
-
}), this.reloadCurrentDocument(), this.view = "complete";
|
|
121
|
-
} catch (e) {
|
|
122
|
-
u(e);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
var w = function() {
|
|
128
|
-
var e = this, t = e._self._c;
|
|
129
|
-
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) {
|
|
130
|
-
return e.$emit("close");
|
|
131
|
-
} } }) : 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: {
|
|
132
|
-
paddingTop: e.spacing,
|
|
133
|
-
marginTop: `-${e.spacing}`,
|
|
134
|
-
borderRadius: `${e.cornerRadius} ${e.cornerRadius} 0 0`
|
|
135
|
-
} }, [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) {
|
|
136
|
-
e.view = "start";
|
|
137
|
-
} } }), 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) {
|
|
138
|
-
e.view = "form", e.form = "realEstate";
|
|
139
|
-
} } }, [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) {
|
|
140
|
-
e.view = "form", e.form = "condominium";
|
|
141
|
-
} } }, [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) {
|
|
142
|
-
e.realEstateId = s;
|
|
143
|
-
}, 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) {
|
|
144
|
-
e.condominiumId = s;
|
|
145
|
-
}, 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) {
|
|
146
|
-
e.condominiumOrgNo = s;
|
|
147
|
-
}, 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) {
|
|
148
|
-
return e.$emit("close");
|
|
149
|
-
} } }, [e._v(" " + e._s(e.$t("_common:close")) + " ")])], 1)])]) : e._e()])], 1);
|
|
150
|
-
}, f = [], y = /* @__PURE__ */ d(
|
|
151
|
-
C,
|
|
152
|
-
w,
|
|
153
|
-
f,
|
|
154
|
-
!1,
|
|
155
|
-
null,
|
|
156
|
-
null
|
|
157
|
-
);
|
|
158
|
-
const $ = y.exports, b = {
|
|
159
|
-
i18nOptions: {
|
|
160
|
-
namespaces: "docAnswer",
|
|
161
|
-
messages: {
|
|
162
|
-
en: {
|
|
163
|
-
previewTooltip: "Only your clients can answer"
|
|
164
|
-
},
|
|
165
|
-
sv: {
|
|
166
|
-
previewTooltip: "Enbart din mottagare kan besvara"
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
name: "DocumentAnswerRead",
|
|
171
|
-
mixins: [h({ documentKey: "_document" }), c],
|
|
172
|
-
inject: {
|
|
173
|
-
isPdf: {
|
|
174
|
-
default: !1
|
|
175
|
-
},
|
|
176
|
-
customHtmlAccept: {
|
|
177
|
-
default: ""
|
|
178
|
-
},
|
|
179
|
-
customHtmlDeny: {
|
|
180
|
-
default: ""
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
props: {
|
|
184
|
-
_document: {
|
|
185
|
-
type: Object,
|
|
186
|
-
required: !0
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
data() {
|
|
190
|
-
return {
|
|
191
|
-
isInViewport: !1,
|
|
192
|
-
scrollToElement: m
|
|
193
|
-
};
|
|
194
|
-
},
|
|
195
|
-
computed: {
|
|
196
|
-
viewerId() {
|
|
197
|
-
var i;
|
|
198
|
-
return ((i = this._document._doc) == null ? void 0 : i.viewerId) || null;
|
|
199
|
-
},
|
|
200
|
-
isPreview() {
|
|
201
|
-
return this._document.isPreview;
|
|
202
|
-
},
|
|
203
|
-
modalHeight() {
|
|
204
|
-
return this.mq === "sm" ? "100%" : "auto";
|
|
205
|
-
},
|
|
206
|
-
allowPropertyDesignation() {
|
|
207
|
-
const { prices: i } = this._document;
|
|
208
|
-
if (!i || !i.region)
|
|
209
|
-
return !1;
|
|
210
|
-
const { houseWorkType: e } = i.region;
|
|
211
|
-
return ["rot", "greenRot15", "greenRot20", "greenRot50"].includes(
|
|
212
|
-
e
|
|
213
|
-
);
|
|
214
|
-
},
|
|
215
|
-
propertyDesignation() {
|
|
216
|
-
return p(this._document, "clients[0].region.propertyDesignation", null);
|
|
217
|
-
}
|
|
218
|
-
},
|
|
219
|
-
watch: {
|
|
220
|
-
$route: {
|
|
221
|
-
immediate: !0,
|
|
222
|
-
handler(i) {
|
|
223
|
-
i != null && i.hash && this.onAnswer("accept", { calcHeight: !0 });
|
|
224
|
-
}
|
|
225
|
-
},
|
|
226
|
-
isInViewport: {
|
|
227
|
-
immediate: !0,
|
|
228
|
-
handler(i, e) {
|
|
229
|
-
i !== e && v.trigger("ui:document.block.answer.visible", i);
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
mounted() {
|
|
234
|
-
window.addEventListener("scroll", this.scrollHandler, {
|
|
235
|
-
capture: !0,
|
|
236
|
-
passive: !0
|
|
237
|
-
}), this.$route.name === "docPropertyDesignation" && this.showPropertyDesignation();
|
|
238
|
-
},
|
|
239
|
-
destroyed() {
|
|
240
|
-
window.removeEventListener("scroll", this.scrollHandler);
|
|
241
|
-
},
|
|
242
|
-
methods: {
|
|
243
|
-
scrollHandler() {
|
|
244
|
-
this.$refs.answerButtons && (this.isInViewport = l(this.$refs.answerButtons));
|
|
245
|
-
},
|
|
246
|
-
showPropertyDesignation() {
|
|
247
|
-
this.$modal.show(
|
|
248
|
-
$,
|
|
249
|
-
{
|
|
250
|
-
senderName: this._document.sender.user.name,
|
|
251
|
-
propertyDesignation: this.propertyDesignation,
|
|
252
|
-
fullScreen: this.modalHeight === "100%"
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
adaptive: !0,
|
|
256
|
-
height: this.modalHeight,
|
|
257
|
-
width: "100%",
|
|
258
|
-
maxWidth: this.modalHeight === "100%" ? 999 : 400,
|
|
259
|
-
classes: "overflow-visible",
|
|
260
|
-
transition: "fade-in-slide-up"
|
|
261
|
-
}
|
|
262
|
-
);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
};
|
|
266
|
-
var x = function() {
|
|
267
|
-
var s, o;
|
|
268
|
-
var e = this, t = e._self._c;
|
|
269
|
-
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) {
|
|
270
|
-
return e.onAnswer("decline");
|
|
271
|
-
} } }) : 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) {
|
|
272
|
-
return e.onAnswer("decline");
|
|
273
|
-
} } }, [e._v(" " + e._s(e._document.$t("deny").capitalize()) + " ")]), e.customHtmlAccept ? t("div", { domProps: { innerHTML: e._s(e.customHtmlAccept) }, on: { click: function(r) {
|
|
274
|
-
return e.onAnswer("accept");
|
|
275
|
-
} } }) : 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) {
|
|
276
|
-
return e.onAnswer("accept");
|
|
277
|
-
} } }, [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) {
|
|
278
|
-
return e.showPropertyDesignation();
|
|
279
|
-
} } }, [e._v(" " + e._s(e._document.$t(`chapters.answerButtons.${e.propertyDesignation ? "editPropDes" : "enterPropDes"}`)) + " ")])]) : e._e()]) : e._e();
|
|
280
|
-
}, H = [], D = /* @__PURE__ */ d(
|
|
281
|
-
b,
|
|
282
|
-
x,
|
|
283
|
-
H,
|
|
284
|
-
!1,
|
|
285
|
-
null,
|
|
286
|
-
"a09f8d01"
|
|
287
|
-
);
|
|
288
|
-
const E = D.exports;
|
|
289
|
-
export {
|
|
290
|
-
E as default
|
|
291
|
-
};
|
package/dist/Index-DzS1rZdF.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { m as r } from "./mapFormMixin-QbevCwJK.js";
|
|
2
|
-
import { n } from "./main-WKzC-Dnu.js";
|
|
3
|
-
const s = {
|
|
4
|
-
name: "WorkAddressText",
|
|
5
|
-
components: {
|
|
6
|
-
Read: () => import("./Index-q7W9KA8m.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
|
-
};
|
package/dist/Index-N6s5pZxv.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { m as o } from "./mapFormMixin-QbevCwJK.js";
|
|
2
|
-
import { n as i } from "./main-WKzC-Dnu.js";
|
|
3
|
-
const a = {
|
|
4
|
-
name: "NotBinding",
|
|
5
|
-
components: {
|
|
6
|
-
Edit: () => import("./ToggleBinding-CuwCeYpO.js"),
|
|
7
|
-
Read: () => import("./NotBindingText-CNV2Wmdx.js")
|
|
8
|
-
},
|
|
9
|
-
mixins: [o()]
|
|
10
|
-
};
|
|
11
|
-
var r = function() {
|
|
12
|
-
var e;
|
|
13
|
-
var n = this, t = n._self._c;
|
|
14
|
-
return n.canEdit ? t("Edit", n._g({ attrs: { _document: n._document, _value: { notBinding: "data.notBinding" } } }, n.$listeners)) : (e = n._document.data) != null && e.notBinding ? t("Read") : n._e();
|
|
15
|
-
}, m = [], _ = /* @__PURE__ */ i(
|
|
16
|
-
a,
|
|
17
|
-
r,
|
|
18
|
-
m,
|
|
19
|
-
!1,
|
|
20
|
-
null,
|
|
21
|
-
"a3b56101"
|
|
22
|
-
);
|
|
23
|
-
const p = _.exports;
|
|
24
|
-
export {
|
|
25
|
-
p as default
|
|
26
|
-
};
|
package/dist/Index-g_DNu4mt.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { m as n } from "./mapFormMixin-QbevCwJK.js";
|
|
2
|
-
import { I as a } from "./InputToggleRow-CZjxsDOQ.js";
|
|
3
|
-
import { C as c } from "./CPriceInput-C4SOB-P5.js";
|
|
4
|
-
import { n as o } from "./main-WKzC-Dnu.js";
|
|
5
|
-
const i = {
|
|
6
|
-
i18nOptions: {
|
|
7
|
-
namespaces: "ExtraWorkConstructionPricingListEdit",
|
|
8
|
-
messages: {
|
|
9
|
-
sv: {
|
|
10
|
-
workPrice: "Arbete",
|
|
11
|
-
managementPrice: "Arbetsledning",
|
|
12
|
-
entrepreneurMarkupPercentage: "Påslag för underentreprenader",
|
|
13
|
-
miscMarkupPercentage: "Påslag för material, varor och övrigt"
|
|
14
|
-
},
|
|
15
|
-
en: {
|
|
16
|
-
workPrice: "Work",
|
|
17
|
-
managementPrice: "Work management",
|
|
18
|
-
entrepreneurMarkupPercentage: "Markup for subcontractors",
|
|
19
|
-
miscMarkupPercentage: "Markup for material, goods and other",
|
|
20
|
-
travelCosts: "Travel costs for extra work"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
name: "ExtraWorkConstructionPricingListEdit",
|
|
25
|
-
components: {
|
|
26
|
-
InputToggleRow: a,
|
|
27
|
-
CPriceInput: c
|
|
28
|
-
},
|
|
29
|
-
mixins: [
|
|
30
|
-
n(
|
|
31
|
-
[
|
|
32
|
-
"workPrice",
|
|
33
|
-
"managementPrice",
|
|
34
|
-
"entrepreneurMarkupPercentage",
|
|
35
|
-
"miscMarkupPercentage"
|
|
36
|
-
],
|
|
37
|
-
{ type: "number" }
|
|
38
|
-
)
|
|
39
|
-
]
|
|
40
|
-
};
|
|
41
|
-
var s = function() {
|
|
42
|
-
var e = this, r = e._self._c;
|
|
43
|
-
return r("div", [r("div", { staticClass: "flex w-full justify-end", staticStyle: { position: "relative" } }, [e.workPrice || e.managementPrice ? r("div", { staticClass: "ex-vat" }, [e._v(" " + e._s(e.$t("_common:vat.exVat", { thing: e.$t("_common:vat.sharedTitle") }).capitalize()) + " ")]) : e._e()]), r("InputToggleRow", { attrs: { "display-value": e.workPrice ? `${e.workPrice / 100} ${e.$t("_common:currency.SEK")}/${e.$t(
|
|
44
|
-
"_common:unitType.hour"
|
|
45
|
-
)}` : e.$t("_common:add"), label: e.$t("workPrice") } }, [r("CPriceInput", { attrs: { currency: "SEK", min: "0", "suffix-class": "text-gray-400" }, scopedSlots: e._u([{ key: "suffix", fn: function() {
|
|
46
|
-
return [e._v(" " + e._s(e.$t("currency.SEK")) + "/" + e._s(e.$t("_common:unitType.hour")) + " ")];
|
|
47
|
-
}, proxy: !0 }]), model: { value: e.workPrice, callback: function(t) {
|
|
48
|
-
e.workPrice = e._n(t);
|
|
49
|
-
}, expression: "workPrice" } })], 1), r("InputToggleRow", { attrs: { "display-value": e.managementPrice ? `${e.managementPrice / 100} kr/h` : e.$t("_common:add"), label: e.$t("managementPrice") } }, [r("CPriceInput", { attrs: { currency: "SEK", min: "0", "suffix-class": "text-gray-400" }, scopedSlots: e._u([{ key: "suffix", fn: function() {
|
|
50
|
-
return [e._v(" " + e._s(e.$t("_common:currency.SEK")) + "/" + e._s(e.$t("unitType.hour")) + " ")];
|
|
51
|
-
}, proxy: !0 }]), model: { value: e.managementPrice, callback: function(t) {
|
|
52
|
-
e.managementPrice = e._n(t);
|
|
53
|
-
}, expression: "managementPrice" } })], 1), r("InputToggleRow", { attrs: { "display-value": e.entrepreneurMarkupPercentage ? `${e.entrepreneurMarkupPercentage} %` : e.$t("_common:add"), label: e.$t("entrepreneurMarkupPercentage") } }, [r("CInput", { model: { value: e.entrepreneurMarkupPercentage, callback: function(t) {
|
|
54
|
-
e.entrepreneurMarkupPercentage = e._n(t);
|
|
55
|
-
}, expression: "entrepreneurMarkupPercentage" } }, [r("template", { slot: "suffix" }, [e._v("%")])], 2)], 1), r("InputToggleRow", { attrs: { "display-value": e.miscMarkupPercentage ? `${e.miscMarkupPercentage} %` : e.$t("_common:add"), label: e.$t("miscMarkupPercentage") } }, [r("CInput", { model: { value: e.miscMarkupPercentage, callback: function(t) {
|
|
56
|
-
e.miscMarkupPercentage = e._n(t);
|
|
57
|
-
}, expression: "miscMarkupPercentage" } }, [r("template", { slot: "suffix" }, [e._v("%")])], 2)], 1)], 1);
|
|
58
|
-
}, u = [], m = /* @__PURE__ */ o(
|
|
59
|
-
i,
|
|
60
|
-
s,
|
|
61
|
-
u,
|
|
62
|
-
!1,
|
|
63
|
-
null,
|
|
64
|
-
"ee274c7d"
|
|
65
|
-
);
|
|
66
|
-
const _ = m.exports;
|
|
67
|
-
export {
|
|
68
|
-
_ as default
|
|
69
|
-
};
|
package/dist/Index-mJ8F41GY.js
DELETED
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { m as n } from "./mapFormMixin-QbevCwJK.js";
|
|
2
|
-
import { D as l } from "./DocModalBase-BbS_qvSv.js";
|
|
3
|
-
import { a as o } from "./DocumentLayout-B7afHRMr.js";
|
|
4
|
-
import { n as a } from "./main-WKzC-Dnu.js";
|
|
5
|
-
const c = {
|
|
6
|
-
name: "TermsModal",
|
|
7
|
-
components: {
|
|
8
|
-
DocModalBase: l,
|
|
9
|
-
DocumentStyleContainer: o
|
|
10
|
-
},
|
|
11
|
-
mixins: [n([])],
|
|
12
|
-
props: {
|
|
13
|
-
text: {
|
|
14
|
-
type: String,
|
|
15
|
-
required: !0
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
var m = function() {
|
|
20
|
-
var i;
|
|
21
|
-
var e = this, t = e._self._c;
|
|
22
|
-
return t("div", [t("div", { staticStyle: { height: "200px", "max-height": "15vh" }, on: { click: function(r) {
|
|
23
|
-
return e.$emit("close");
|
|
24
|
-
} } }), t("DocModalBase", { staticClass: "terms-root" }, [t("div", { staticClass: "sticky-btn" }, [t("CButton", { staticStyle: { "margin-top": "calc(0.5 * var(--rem))" }, attrs: { circle: "", icon: "x" }, on: { click: function(r) {
|
|
25
|
-
return e.$emit("close");
|
|
26
|
-
} } })], 1), t("div", { staticStyle: { padding: "0 calc(1 * var(--rem))" } }, [t("DocumentStyleContainer", { staticStyle: { width: "100%", height: "100%" }, attrs: { "input-style": ((i = e._document.data) == null ? void 0 : i.css) || null } }, [t("div", { staticClass: "term-text quill-format", domProps: { innerHTML: e._s(e.text) } })])], 1)])], 1);
|
|
27
|
-
}, d = [], f = /* @__PURE__ */ a(
|
|
28
|
-
c,
|
|
29
|
-
m,
|
|
30
|
-
d,
|
|
31
|
-
!1,
|
|
32
|
-
null,
|
|
33
|
-
null
|
|
34
|
-
);
|
|
35
|
-
const p = f.exports, u = {
|
|
36
|
-
name: "TermsDisclaimer",
|
|
37
|
-
mixins: [n([])],
|
|
38
|
-
inject: {
|
|
39
|
-
isPdf: {
|
|
40
|
-
default: !1
|
|
41
|
-
},
|
|
42
|
-
_firstBlock: {
|
|
43
|
-
default: !1
|
|
44
|
-
},
|
|
45
|
-
_lastBlock: {
|
|
46
|
-
default: !1
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
props: {
|
|
50
|
-
href: {
|
|
51
|
-
type: String,
|
|
52
|
-
default: null
|
|
53
|
-
},
|
|
54
|
-
termType: {
|
|
55
|
-
type: String,
|
|
56
|
-
default: null
|
|
57
|
-
},
|
|
58
|
-
file: {
|
|
59
|
-
type: Object,
|
|
60
|
-
default: () => ({})
|
|
61
|
-
},
|
|
62
|
-
text: {
|
|
63
|
-
type: String,
|
|
64
|
-
default: null
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
computed: {
|
|
68
|
-
printPdfTerms() {
|
|
69
|
-
return this.isPdf ? () => import("./PdfTerms-AB9tXAtU.js") : void 0;
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
methods: {
|
|
73
|
-
openTerms() {
|
|
74
|
-
this.$modal.show(
|
|
75
|
-
p,
|
|
76
|
-
{
|
|
77
|
-
text: this.text,
|
|
78
|
-
_document: this._document
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
adaptive: !0,
|
|
82
|
-
height: "auto",
|
|
83
|
-
scrollable: !0,
|
|
84
|
-
maxWidth: 700,
|
|
85
|
-
width: "100%",
|
|
86
|
-
classes: "overflow-visible mobile-margin-bottom-0",
|
|
87
|
-
transition: "fade-in-slide-up"
|
|
88
|
-
}
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
render(s) {
|
|
93
|
-
let e = {};
|
|
94
|
-
const t = this.termType;
|
|
95
|
-
if (t === "href" ? e = {
|
|
96
|
-
href: this.href,
|
|
97
|
-
target: "_blank",
|
|
98
|
-
rel: "noopener"
|
|
99
|
-
} : t === "file" && (e = {
|
|
100
|
-
// Some documents with file terms are missing url
|
|
101
|
-
href: (this.file.url || "").replace(/\+/g, "%2B"),
|
|
102
|
-
target: "_blank",
|
|
103
|
-
rel: "noopener"
|
|
104
|
-
}), this.$scopedSlots.default)
|
|
105
|
-
return this.$scopedSlots.default({
|
|
106
|
-
openTerms: t === "text" ? this.openTerms : () => window.open(e.href)
|
|
107
|
-
});
|
|
108
|
-
if (this.printPdfTerms) {
|
|
109
|
-
const r = {
|
|
110
|
-
...t === "text" && { text: this.text },
|
|
111
|
-
...t === "file" && { file: this.file }
|
|
112
|
-
};
|
|
113
|
-
return s(
|
|
114
|
-
"div",
|
|
115
|
-
{
|
|
116
|
-
class: {
|
|
117
|
-
"break-before-page": this.isPdf && !this._firstBlock,
|
|
118
|
-
"break-after-page": this.isPdf && !this._lastBlock
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
[s(this.printPdfTerms, { attrs: r })]
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
const i = {};
|
|
125
|
-
return t && (i.attrs = e), t === "text" && (i.on = { click: this.openTerms }), s(
|
|
126
|
-
"div",
|
|
127
|
-
{
|
|
128
|
-
staticClass: "terms-disclaimer"
|
|
129
|
-
},
|
|
130
|
-
[
|
|
131
|
-
s("div", { staticClass: "terms-disclaimer__divider" }),
|
|
132
|
-
this._document.$t("chapters.termsDisclaimer.description"),
|
|
133
|
-
s(
|
|
134
|
-
"a",
|
|
135
|
-
i,
|
|
136
|
-
this._document.$t("chapters.termsDisclaimer.termsAndConditions")
|
|
137
|
-
),
|
|
138
|
-
"."
|
|
139
|
-
]
|
|
140
|
-
);
|
|
141
|
-
}
|
|
142
|
-
}, h = null, _ = null;
|
|
143
|
-
var v = /* @__PURE__ */ a(
|
|
144
|
-
u,
|
|
145
|
-
h,
|
|
146
|
-
_,
|
|
147
|
-
!1,
|
|
148
|
-
null,
|
|
149
|
-
"7623e4d6"
|
|
150
|
-
);
|
|
151
|
-
const k = v.exports;
|
|
152
|
-
export {
|
|
153
|
-
k as default
|
|
154
|
-
};
|
package/dist/Index-q7W9KA8m.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { P as n } from "./PlainHtml-CPmIebjY.js";
|
|
2
|
-
import { n as e } from "./main-WKzC-Dnu.js";
|
|
3
|
-
const o = {
|
|
4
|
-
name: "WorkAddressTextRead",
|
|
5
|
-
functional: !0,
|
|
6
|
-
render(s, r) {
|
|
7
|
-
return s(n, [r.props.street ? `${r.props.street}, ` : "", r.props.zip ? `${r.props.zip} ` : " ", r.props.city]);
|
|
8
|
-
}
|
|
9
|
-
}, p = null, t = null;
|
|
10
|
-
var l = /* @__PURE__ */ e(
|
|
11
|
-
o,
|
|
12
|
-
p,
|
|
13
|
-
t,
|
|
14
|
-
!1,
|
|
15
|
-
null,
|
|
16
|
-
null
|
|
17
|
-
);
|
|
18
|
-
const m = l.exports;
|
|
19
|
-
export {
|
|
20
|
-
m as default
|
|
21
|
-
};
|
package/dist/Index-rtzblZp4.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { m as i } from "./mapFormMixin-QbevCwJK.js";
|
|
2
|
-
import { S as o, n as a } from "./main-WKzC-Dnu.js";
|
|
3
|
-
import { f as r } from "./focusDrawerMixin-Be6BAK8-.js";
|
|
4
|
-
const d = {
|
|
5
|
-
// eslint-disable-next-line vue/no-reserved-component-names
|
|
6
|
-
name: "Embed",
|
|
7
|
-
i18nOptions: {
|
|
8
|
-
namespaces: "embed",
|
|
9
|
-
messages: {
|
|
10
|
-
en: {
|
|
11
|
-
subTitle: "Embed anything (PDFs, Google Docs, Calender Sheets...)"
|
|
12
|
-
},
|
|
13
|
-
sv: {
|
|
14
|
-
subTitle: "Bädda in vad som helst (PDF:er, Google Docs, Calender Sheets...)"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
components: {
|
|
19
|
-
EmbedSettings: () => import("./EmbedSettings-8pfjk4NP.js"),
|
|
20
|
-
EmbedInput: () => import("./EmbedInput-BY-wHSfc.js"),
|
|
21
|
-
Spinner: o
|
|
22
|
-
},
|
|
23
|
-
mixins: [i(["embed", "size"]), r],
|
|
24
|
-
data() {
|
|
25
|
-
return {
|
|
26
|
-
showControls: !1,
|
|
27
|
-
isLoading: !0
|
|
28
|
-
};
|
|
29
|
-
},
|
|
30
|
-
methods: {
|
|
31
|
-
onAdd() {
|
|
32
|
-
const n = () => {
|
|
33
|
-
this.$refs.input.focus();
|
|
34
|
-
};
|
|
35
|
-
this.$refs.input ? n() : this.$once("triggerOnAdd", n);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
var m = function() {
|
|
40
|
-
var e = this, s = e._self._c;
|
|
41
|
-
return s("div", { staticClass: "embed-root font-inter", on: { "&mouseover": function(t) {
|
|
42
|
-
e.showControls = !0;
|
|
43
|
-
}, "&mouseleave": function(t) {
|
|
44
|
-
e.showControls = !1;
|
|
45
|
-
} } }, [s("div", { staticClass: "no-drag", class: [
|
|
46
|
-
(e.size || !(e.embed && e.embed.src)) && "auto-size",
|
|
47
|
-
`embed-is-${e.size}`
|
|
48
|
-
] }, [e.embed ? s("div", { staticClass: "embed-container" }, [!e.embed.src && e.canEdit ? s("div", { staticClass: "embed-element" }, [s("div", { staticClass: "is-placeholder" }, [s("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("subTitle")) + " ")]), s("EmbedInput", { ref: "input", staticStyle: { "padding-top": "1em" }, on: { "hook:mounted": function(t) {
|
|
49
|
-
return e.$emit("triggerOnAdd");
|
|
50
|
-
} }, model: { value: e.embed, callback: function(t) {
|
|
51
|
-
e.embed = t;
|
|
52
|
-
}, expression: "embed" } })], 1)]) : e.embed.src ? s("iframe", e._b({ ref: "iframe", staticClass: "embed-element", on: { load: function(t) {
|
|
53
|
-
e.isLoading = !1;
|
|
54
|
-
} } }, "iframe", { allowfullscreen: "", ...e.embed }, !1)) : e._e(), e.embed.src && e.isLoading ? s("div", { staticClass: "embed-loading-container" }, [s("Spinner", { attrs: { color: "hsl(0, 0%, 60%)" } })], 1) : e._e()]) : e._e()]), e.isForm ? [e.showDrawer ? s("portal", { attrs: { to: "drawer-content" } }, [s("EmbedSettings", { attrs: { size: e.size }, on: { "update:size": function(t) {
|
|
55
|
-
e.size = t;
|
|
56
|
-
} }, model: { value: e.embed, callback: function(t) {
|
|
57
|
-
e.embed = t;
|
|
58
|
-
}, expression: "embed" } })], 1) : e._e()] : e._e()], 2);
|
|
59
|
-
}, l = [], c = /* @__PURE__ */ a(
|
|
60
|
-
d,
|
|
61
|
-
m,
|
|
62
|
-
l,
|
|
63
|
-
!1,
|
|
64
|
-
null,
|
|
65
|
-
"ca826f69"
|
|
66
|
-
);
|
|
67
|
-
const p = c.exports;
|
|
68
|
-
export {
|
|
69
|
-
p as default
|
|
70
|
-
};
|