@cling-se/widget 0.9.8 → 0.9.10
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/.env +11 -11
- package/README.md +35 -35
- package/dist/{AddClientCallout-a45ee0f3.js → AddClientCallout-98b5d2c9.js} +5 -5
- package/dist/{AnswerModal-de2d4e05.js → AnswerModal-995e7a87.js} +7 -7
- package/dist/{AttachmentItem-3d18f509.js → AttachmentItem-331b9c1e.js} +4 -4
- package/dist/{BaseDatePicker-dea04782.js → BaseDatePicker-7f047527.js} +1 -1
- package/dist/{BaseInput-d1686e72.js → BaseInput-c79f0001.js} +1 -1
- package/dist/{BaseUpload-02c9e78f.js → BaseUpload-9402cc1b.js} +3 -3
- package/dist/{BlockMedia-620716a2.js → BlockMedia-80a082ed.js} +2 -2
- package/dist/{CCallout-2842d99e.js → CCallout-bd314caa.js} +6 -6
- package/dist/{CDropdownItem-c2f36de9.js → CDropdownItem-ab42f924.js} +5 -5
- package/dist/{CField-c089365f.js → CField-6da7299b.js} +1 -1
- package/dist/{CSlider.vue_vue_type_style_index_0_lang-3de2be04.js → CSlider.vue_vue_type_style_index_0_lang-c70342a2.js} +1 -1
- package/dist/{ClientAutocomplete-1288f9a7.js → ClientAutocomplete-67fc253c.js} +6 -6
- package/dist/{ClientModal-0863a0a5.js → ClientModal-1709e8c7.js} +5 -5
- package/dist/{ColorPicker-e0178aa9.js → ColorPicker-4880a624.js} +2 -2
- package/dist/{CompanyModal-902787de.js → CompanyModal-dbe85884.js} +4 -4
- package/dist/{ContentWrapper-b7748534.js → ContentWrapper-a602cc3d.js} +14 -14
- package/dist/{CoverBlockSettings-e108e279.js → CoverBlockSettings-f37fe6e1.js} +18 -18
- package/dist/DocAnswer-081e8239.js +33 -0
- package/dist/{DocForm-fdf870ec.js → DocForm-c69281fc.js} +152 -132
- package/dist/{DocFormSend-ad07f927.js → DocFormSend-c9b955b9.js} +19 -18
- package/dist/{DocModalBase-19bd9218.js → DocModalBase-8c238a59.js} +4 -4
- package/dist/{DocPrint-065067d3.js → DocPrint-2a181ffb.js} +5 -5
- package/dist/{DocReceipt-cd92f4bc.js → DocReceipt-00c0f631.js} +1 -1
- package/dist/{DocSendReminder-10240571.js → DocSendReminder-9effd808.js} +1 -1
- package/dist/{DocTextEditor-264eae51.js → DocTextEditor-0c8a4782.js} +12 -12
- package/dist/{DocTimeline-7ca06776.js → DocTimeline-be5e8b9d.js} +1 -1
- package/dist/{DocumentClient-11bb861b.js → DocumentClient-13f55b25.js} +5 -5
- package/dist/{DocumentLayout-2c0dde37.js → DocumentLayout-2ff55f9f.js} +120 -120
- package/dist/{DocumentLogotype-c63e9e2b.js → DocumentLogotype-80a2521a.js} +6 -6
- package/dist/{EmbedInput-f829347b.js → EmbedInput-8572a42b.js} +2 -2
- package/dist/{EmbedSettings-15c9c5d2.js → EmbedSettings-1a60358e.js} +5 -5
- package/dist/{ErrorCallout-9b4c45b0.js → ErrorCallout-84e8168b.js} +2 -2
- package/dist/{FilePreviewModal-3c976c4f.js → FilePreviewModal-cdafbf1c.js} +5 -5
- package/dist/{HeaderSettings-2bed2e49.js → HeaderSettings-9f4d182b.js} +15 -15
- package/dist/{ImageSelectModal-aa8a9196.js → ImageSelectModal-b97c8185.js} +10 -10
- package/dist/{ImageUploadWrapper-191b58cb.js → ImageUploadWrapper-ebcdbc9e.js} +3 -3
- package/dist/{Index-a0bce09c.js → Index-0022bc40.js} +4 -4
- package/dist/{Index-b3a5344a.js → Index-0306a974.js} +12 -12
- package/dist/{Index-e49bf365.js → Index-039d9c9d.js} +6 -6
- package/dist/{Index-2d0ce634.js → Index-0bbbe1cf.js} +11 -11
- package/dist/{Index-68c2e6e8.js → Index-0bd4a30c.js} +6 -6
- package/dist/{Index-584c31f5.js → Index-11d16691.js} +22 -22
- package/dist/{Index-30a2e82a.js → Index-2ecefac2.js} +4 -4
- package/dist/{Index-587512ed.js → Index-341f9388.js} +8 -8
- package/dist/{Index-6a834a9a.js → Index-3ccc66e4.js} +4 -4
- package/dist/{Index-7b7f6b0d.js → Index-451f5485.js} +5 -5
- package/dist/{Index-b8809785.js → Index-473d0fad.js} +3 -3
- package/dist/{Index-e75fb399.js → Index-4bbfdb2e.js} +2 -2
- package/dist/{Index-27a08871.js → Index-5428e87c.js} +11 -11
- package/dist/{Index-2efc79a6.js → Index-623bb993.js} +4 -4
- package/dist/{Index-09f3d14a.js → Index-6c782bef.js} +12 -12
- package/dist/{Index-81121ad2.js → Index-7b1fd376.js} +2 -2
- package/dist/{Index-f7910f63.js → Index-7f01697f.js} +7 -7
- package/dist/{Index-579a4b8e.js → Index-8053871b.js} +4 -4
- package/dist/{Index-49e83404.js → Index-8755440b.js} +5 -5
- package/dist/{Index-8c251698.js → Index-8c4fd5b4.js} +27 -27
- package/dist/{Index-fc0c3175.js → Index-8cba5dac.js} +26 -26
- package/dist/{Index-ca5a3caf.js → Index-8ecb9aa4.js} +2 -2
- package/dist/{Index-ef1edca1.js → Index-8eff4eae.js} +2 -2
- package/dist/{Index-77a0fd51.js → Index-95f0dd2f.js} +19 -19
- package/dist/{Index-b2b13e59.js → Index-9c5f5d6e.js} +7 -7
- package/dist/{Index-3af51db0.js → Index-b233276b.js} +2 -2
- package/dist/{Index-010b6c77.js → Index-ba4cfb80.js} +6 -6
- package/dist/{Index-4a3e4ff7.js → Index-c2b2ccd9.js} +8 -8
- package/dist/{Index-a8a278df.js → Index-dca28212.js} +2 -2
- package/dist/{Index-bc0448b7.js → Index-dd30bbc5.js} +12 -12
- package/dist/{Index-2b95c1b1.js → Index-ddf49640.js} +6 -6
- package/dist/{Index-491ca5f8.js → Index-de93e029.js} +7 -7
- package/dist/{Index-97ceff4a.js → Index-f9063054.js} +7 -7
- package/dist/{Index-466ac151.js → Index-ffc7dba1.js} +5 -5
- package/dist/{InputToggleRow-ff35c2ce.js → InputToggleRow-533651e6.js} +2 -2
- package/dist/{IsPremiumPreStep-3a45da09.js → IsPremiumPreStep-8d46fadc.js} +248 -242
- package/dist/{MediaWrapper-5714c933.js → MediaWrapper-388589e5.js} +3 -3
- package/dist/{NotBindingText-09b91d96.js → NotBindingText-b833c49b.js} +2 -2
- package/dist/{PackageGroup-8a819bad.js → PackageGroup-41b2d524.js} +15 -15
- package/dist/{PdfTerms-8f633637.js → PdfTerms-461fcd9e.js} +7 -7
- package/dist/{PdfViewer-c9707701.js → PdfViewer-099b598c.js} +2 -2
- package/dist/{PlainHtml-7e5c2f75.js → PlainHtml-37aa5b7b.js} +1 -1
- package/dist/PriceHeader-41c48787.js +337 -0
- package/dist/{SearchApi-941492e2.js → SearchApi-25909227.js} +2 -2
- package/dist/{TermsSettings-ef3ff7bd.js → TermsSettings-c730ac70.js} +10 -10
- package/dist/{ThemeColorRow-228b2150.js → ThemeColorRow-31d8285b.js} +3 -3
- package/dist/{ToggleBinding-864dd88b.js → ToggleBinding-1a98360f.js} +3 -3
- package/dist/{UploadModal-becfcb33.js → UploadModal-e0a37c3e.js} +4 -4
- package/dist/{VideoPlayerInput-22f9bd4d.js → VideoPlayerInput-4d7f302a.js} +3 -3
- package/dist/{VideoPlayerSettings-871ebafc.js → VideoPlayerSettings-81168a6b.js} +5 -5
- package/dist/{VideoSelectModal-7702dfef.js → VideoSelectModal-dc429ff0.js} +28 -28
- package/dist/{answerDocumentMixin-1cebd720.js → answerDocumentMixin-3ff2b25d.js} +3 -3
- package/dist/{cssMode-ecb6e1c1.js → cssMode-c6b1b286.js} +7 -7
- package/dist/{focusDrawerMixin-f736add2.js → focusDrawerMixin-01b547f0.js} +1 -1
- package/dist/{formComponentsInstall-2d3f76f6.js → formComponentsInstall-9e33cb8f.js} +20 -20
- package/dist/{formValidationMixin-e41d906a.js → formValidationMixin-74c239ee.js} +1 -1
- package/dist/{freemarker2-307c95a2.js → freemarker2-076519a0.js} +7 -7
- package/dist/{handlebars-81fcee8b.js → handlebars-bb155717.js} +7 -7
- package/dist/{html-968ef632.js → html-1cf008d9.js} +7 -7
- package/dist/{htmlMode-8db816bf.js → htmlMode-bf67fa2b.js} +7 -7
- package/dist/{index-df6392e8.js → index-0f09ca1c.js} +1 -1
- package/dist/{index-f44d3569.js → index-7097f05c.js} +10 -10
- package/dist/{index-072e7404.js → index-908333a3.js} +9 -9
- package/dist/{index-bfbed7c8.js → index-e37214e9.js} +3 -3
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +496 -493
- package/dist/{javascript-cea828eb.js → javascript-b98377f9.js} +8 -8
- package/dist/{jsonMode-9dc70f37.js → jsonMode-e9595a57.js} +7 -7
- package/dist/{liquid-a15e142f.js → liquid-b60636e3.js} +7 -7
- package/dist/{main-b6350bc3.js → main-cf622dd3.js} +26095 -25993
- package/dist/{mapFormMixin-48e32d23.js → mapFormMixin-490a1765.js} +1 -1
- package/dist/{publicSenderState-8ff674de.js → publicSenderState-6b369e21.js} +1 -1
- package/dist/{python-c1ad439e.js → python-4e4d18f5.js} +7 -7
- package/dist/{razor-29ed486f.js → razor-63ead89f.js} +7 -7
- package/dist/{simplebar.min-bd77544d.js → simplebar.min-3f1edc12.js} +1 -1
- package/dist/style.css +2 -2
- package/dist/{template-b8b398df.js → template-66eba036.js} +1 -1
- package/dist/throttle-2b45d29c.js +18 -0
- package/dist/{tinycolor-8a716699.js → tinycolor-9f3cc25c.js} +1 -1
- package/dist/{tippy.esm-be0516c8.js → tippy.esm-dec03596.js} +7 -7
- package/dist/{tsMode-b84b9fe6.js → tsMode-e93504e4.js} +7 -7
- package/dist/{typescript-2fb3afdc.js → typescript-111230d0.js} +7 -7
- package/dist/{utils-c1d2b87e.js → utils-fb02e603.js} +1 -1
- package/dist/{vuedraggable.umd-995319fc.js → vuedraggable.umd-f2d6d3e3.js} +1 -1
- package/dist/{xml-795e735c.js → xml-987e33cc.js} +7 -7
- package/jsconfig.json +11 -11
- package/package.json +4 -2
- package/postcss.config.cjs +6 -6
- package/stats.html +1 -1
- package/tailwind.config.cjs +26 -26
- package/vite-plugin-library-asset-external/index.js +134 -134
- package/dist/DocAnswer-2c75c7d8.js +0 -46
- package/dist/PriceHeader-04f93704.js +0 -337
- package/dist/throttle-62e7a6dd.js +0 -18
|
@@ -1,337 +0,0 @@
|
|
|
1
|
-
import { m as c } from "./mapFormMixin-48e32d23.js";
|
|
2
|
-
import { B as l } from "./BlockMedia-620716a2.js";
|
|
3
|
-
import { n, c as r, r as d, a1 as u } from "./main-b6350bc3.js";
|
|
4
|
-
import { T as m } from "./DocTextEditor-264eae51.js";
|
|
5
|
-
import { i as p } from "./i18nMessages-45c6bfd6.js";
|
|
6
|
-
import { t as _ } from "./tinycolor-8a716699.js";
|
|
7
|
-
import { s as y } from "./dom-068d1a7b.js";
|
|
8
|
-
import "./color-71c20583.js";
|
|
9
|
-
import "./tippy.esm-be0516c8.js";
|
|
10
|
-
import "./ColorPicker-e0178aa9.js";
|
|
11
|
-
import "./DocumentLayout-2c0dde37.js";
|
|
12
|
-
import "./CDropdownItem-c2f36de9.js";
|
|
13
|
-
import "./CSlider.vue_vue_type_style_index_0_lang-3de2be04.js";
|
|
14
|
-
import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
15
|
-
const h = {
|
|
16
|
-
name: "SummaryTop",
|
|
17
|
-
i18nOptions: {
|
|
18
|
-
namespaces: "summaryTop",
|
|
19
|
-
messages: p
|
|
20
|
-
},
|
|
21
|
-
components: {
|
|
22
|
-
TextEditor: m,
|
|
23
|
-
DocumentLogotype: () => import("./DocumentLogotype-c63e9e2b.js")
|
|
24
|
-
},
|
|
25
|
-
inject: ["parentSize"],
|
|
26
|
-
mixins: [c([])],
|
|
27
|
-
props: {
|
|
28
|
-
showLogo: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: !0
|
|
31
|
-
},
|
|
32
|
-
logotype: {
|
|
33
|
-
type: String,
|
|
34
|
-
default: null
|
|
35
|
-
},
|
|
36
|
-
companyLogotype: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: null
|
|
39
|
-
},
|
|
40
|
-
senderName: {
|
|
41
|
-
type: String,
|
|
42
|
-
default: null
|
|
43
|
-
},
|
|
44
|
-
docName: {
|
|
45
|
-
type: String,
|
|
46
|
-
default: null
|
|
47
|
-
},
|
|
48
|
-
docType: {
|
|
49
|
-
type: String,
|
|
50
|
-
required: !0
|
|
51
|
-
},
|
|
52
|
-
docNumber: {
|
|
53
|
-
type: [Number, String],
|
|
54
|
-
default: null
|
|
55
|
-
},
|
|
56
|
-
sentAt: {
|
|
57
|
-
type: [String, Number],
|
|
58
|
-
default: null
|
|
59
|
-
// required: true,
|
|
60
|
-
},
|
|
61
|
-
expiresAt: {
|
|
62
|
-
type: String,
|
|
63
|
-
default: null
|
|
64
|
-
},
|
|
65
|
-
estimatedTime: {
|
|
66
|
-
type: String,
|
|
67
|
-
default: null
|
|
68
|
-
},
|
|
69
|
-
validator: {
|
|
70
|
-
type: Object,
|
|
71
|
-
default: () => ({})
|
|
72
|
-
},
|
|
73
|
-
hasHover: {
|
|
74
|
-
type: Boolean,
|
|
75
|
-
default: !1
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
computed: {
|
|
79
|
-
logotypeListeners() {
|
|
80
|
-
return {
|
|
81
|
-
...this.$listeners,
|
|
82
|
-
input: (i) => this.$emit("update:logotype", i)
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
var v = function() {
|
|
88
|
-
var e = this, t = e._self._c;
|
|
89
|
-
return t("section", { staticClass: "flex justify-center w-full summary-top" }, [t("div", { staticClass: "doc-summary-top-wrapper" }, [t("div", { staticClass: "doc-summary-top-wrapper__background" }), t("div", { staticClass: "flex justify-between w-full", staticStyle: { "margin-bottom": "calc(2.5 * var(--rem))" } }, [e.showLogo && (e.logotype || e.companyLogotype) || e.canEdit ? t("DocumentLogotype", e._g({ attrs: { value: e.logotype, "show-logo": e.showLogo, "company-logotype": e.companyLogotype, "has-hover": e.hasHover } }, e.logotypeListeners)) : t("div", { staticClass: "company-name" }, [e._v(" " + e._s(e.senderName) + " ")]), t("div", { staticClass: "top-right-text-wrapper" }, [e.sentAt ? t("div", [e._v(e._s(e.$formatDate(e.sentAt)))]) : e._e(), e.docNumber ? t("div", [e._v(" #" + e._s(e.docNumber))]) : e._e()])], 1), t("div", { staticClass: "title-text" }, [e.canEdit ? t("TextEditor", { ref: "editor", staticClass: "no-drag", staticStyle: { "will-change": "opacity" }, attrs: { value: e.docName, placeholder: e.$t("name.placeholder"), extensions: {
|
|
90
|
-
bulletList: !1,
|
|
91
|
-
heading: [1, 2, 3],
|
|
92
|
-
bold: !1,
|
|
93
|
-
link: !1,
|
|
94
|
-
underline: !1,
|
|
95
|
-
blockquote: !0,
|
|
96
|
-
table: !1
|
|
97
|
-
}, unstyled: "", static: "" }, on: { input: function(s) {
|
|
98
|
-
return e.$emit("update:doc-name", s);
|
|
99
|
-
} } }) : t("div", { staticClass: "quill-custom", domProps: { innerHTML: e._s(e.docName) } })], 1), t("div", { staticClass: "flex justify-between w-full" }, [e.expiresAt ? t("div", { staticClass: "data-group" }, [t("div", { staticClass: "label-text caps" }, [e._v(e._s(e._document.$t("replyBy")))]), t("div", { staticClass: "data-text" }, [e._v(e._s(e.$formatDate(e.expiresAt)))])]) : e._e(), e.docType !== "document" ? t("div", { staticClass: "data-group" }, [t("div", { staticClass: "label-text caps" }, [e._v(e._s(e._document.$t("document").capitalize()))]), t("div", { staticClass: "data-text" }, [e._v(e._s(e._document.$t(`series.${e.docType}`).capitalize()))])]) : e._e(), e.parentSize.width >= 576 ? [e.estimatedTime ? t("div", { staticClass: "data-group" }, [t("div", { staticClass: "label-text caps" }, [e._v(e._s(e.$t("time.estimatedTime")))]), t("div", { staticClass: "data-text" }, [e._v(e._s(e._document.$t("approx")) + " " + e._s(e.estimatedTime))])]) : e._e()] : e._e()], 2)])]);
|
|
100
|
-
}, g = [], f = /* @__PURE__ */ n(
|
|
101
|
-
h,
|
|
102
|
-
v,
|
|
103
|
-
g,
|
|
104
|
-
!1,
|
|
105
|
-
null,
|
|
106
|
-
"ec3c14d9",
|
|
107
|
-
null,
|
|
108
|
-
null
|
|
109
|
-
);
|
|
110
|
-
const S = f.exports;
|
|
111
|
-
const x = {
|
|
112
|
-
name: "SummaryBottom",
|
|
113
|
-
mixins: [c([])],
|
|
114
|
-
props: {
|
|
115
|
-
base: {
|
|
116
|
-
type: Object,
|
|
117
|
-
default: null
|
|
118
|
-
},
|
|
119
|
-
options: {
|
|
120
|
-
type: Array,
|
|
121
|
-
default: () => []
|
|
122
|
-
},
|
|
123
|
-
backgroundColor: {
|
|
124
|
-
type: String,
|
|
125
|
-
default: "#4c576d"
|
|
126
|
-
},
|
|
127
|
-
documentCurrency: {
|
|
128
|
-
type: String,
|
|
129
|
-
required: !0
|
|
130
|
-
},
|
|
131
|
-
vatType: {
|
|
132
|
-
type: String,
|
|
133
|
-
required: !0
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
inject: ["parentSize"],
|
|
137
|
-
data() {
|
|
138
|
-
return {
|
|
139
|
-
get: r,
|
|
140
|
-
tinycolor: _
|
|
141
|
-
};
|
|
142
|
-
},
|
|
143
|
-
computed: {
|
|
144
|
-
prices() {
|
|
145
|
-
return r(this, "base.prices") || {};
|
|
146
|
-
},
|
|
147
|
-
isIndivid() {
|
|
148
|
-
return r(this.prices, "helpers.isIndivid", !0);
|
|
149
|
-
},
|
|
150
|
-
showIncVat() {
|
|
151
|
-
return this.isIndivid;
|
|
152
|
-
},
|
|
153
|
-
priceTotal() {
|
|
154
|
-
return this.isIndivid ? r(this.prices, "total", null) : r(this.prices, "subTotal", null);
|
|
155
|
-
},
|
|
156
|
-
priceType() {
|
|
157
|
-
return this.prices.type || ["fixed"];
|
|
158
|
-
},
|
|
159
|
-
currency() {
|
|
160
|
-
return this.prices.currency || this.documentCurrency;
|
|
161
|
-
},
|
|
162
|
-
openAccMaxPrice() {
|
|
163
|
-
return this.prices.maxTotal || null;
|
|
164
|
-
},
|
|
165
|
-
houseWorkType() {
|
|
166
|
-
return r(this.prices, "region.houseWorkType", null);
|
|
167
|
-
},
|
|
168
|
-
isReverseVat() {
|
|
169
|
-
return r(this.prices, "region.reverseVat", !1);
|
|
170
|
-
},
|
|
171
|
-
priceTypeString() {
|
|
172
|
-
return this.priceType.includes("openAccMaxPrice") ? this._document.$t("price.openAccMaxPrice") : this.priceType.includes("openAcc") ? this._document.$t("price.openAcc") : this._document.$t("price.price").capitalize();
|
|
173
|
-
},
|
|
174
|
-
priceDeductionVatString() {
|
|
175
|
-
let i = "";
|
|
176
|
-
if (this.isReverseVat && !this.showIncVat) {
|
|
177
|
-
const e = this.priceFormat(0, { currency: this.currency, showZero: !0 });
|
|
178
|
-
return i = this._document.$t("summaryBottom.reverseVat", { amount: e }), i;
|
|
179
|
-
}
|
|
180
|
-
return this.houseWorkType && (i = this._document.$t("deduction.afterType", { type: `${this.houseWorkType}_percentage` })), this.showIncVat && (i += ` ${this._document.$t("vat.incVat", { thing: this._document.$t(`vat.${this.vatType}`) })}`), this.showIncVat || (i += ` ${this._document.$t("vat.exVat", { thing: this._document.$t(`vat.${this.vatType}`) })}`), i.capitalize();
|
|
181
|
-
},
|
|
182
|
-
backgroundSecondary() {
|
|
183
|
-
if (!this.isSmallScreen)
|
|
184
|
-
return { backgroundColor: "transparent" };
|
|
185
|
-
const i = this.backgroundColor.match(/(\d*\.)?\d+/g)[0], e = this.backgroundColor.match(/(\d*\.)?\d+/g)[1], t = this.backgroundColor.match(/(\d*\.)?\d+/g)[2], s = this.backgroundColor.match(/(\d*\.)?\d+/g)[3];
|
|
186
|
-
return {
|
|
187
|
-
backgroundColor: `hsla(${i}, ${e ** 0.9}%, ${t ** 0.9}%, ${s})`
|
|
188
|
-
};
|
|
189
|
-
},
|
|
190
|
-
isSmallScreen() {
|
|
191
|
-
return this.parentSize.width <= 576;
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
methods: {
|
|
195
|
-
priceFormat: d,
|
|
196
|
-
scrollToPricing() {
|
|
197
|
-
const i = document.querySelector("#price");
|
|
198
|
-
i && y(i);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
};
|
|
202
|
-
var b = function() {
|
|
203
|
-
var e = this, t = e._self._c;
|
|
204
|
-
return t("section", { staticClass: "summary-bottom-root" }, [t("div", { staticClass: "summary-bottom", style: [
|
|
205
|
-
{
|
|
206
|
-
backgroundColor: e.backgroundColor,
|
|
207
|
-
color: e.tinycolor.readability(e.backgroundColor, "#FFF") > 2.2 ? "#FFF" : "#000"
|
|
208
|
-
},
|
|
209
|
-
e.options.length && {
|
|
210
|
-
overflow: "hidden",
|
|
211
|
-
padding: 0
|
|
212
|
-
}
|
|
213
|
-
] }, [e.options.length ? t("div", { staticClass: "flex items-center justify-end w-full", staticStyle: { height: "108px" } }, [t("div", { staticStyle: { "text-align": "right", padding: "calc(2 * var(--rem))" } }, [t("div", { staticStyle: { "font-size": "calc(1.5 * var(--rem))", "font-weight": "900" } }, [e._v(e._s(e._document.$t("price.proposal")))]), t("div", [e._v(e._s(e._document.$t("summaryBottom.chooseFrom")))])]), t("div", { staticStyle: { "background-color": "hsla(0, 0%, 0%, 0.15)", paadding: "calc(1 * var(--rem)) calc(2 * var(--rem))", height: "100%", display: "inline-flex" } }, [e.base ? t("div", { staticStyle: { display: "flex", "flex-direction": "column", "align-items": "flex-start", "justify-content": "center", padding: "calc(1 * var(--rem)) calc(1 * var(--rem))", "text-align": "left" } }, [t("div", { staticStyle: { "font-weight": "900", "font-size": "calc(1.5 * var(--rem))" } }, [e._v(e._s(e.priceFormat(e.base.prices.total, { currency: e.currency, decimals: 2, hideZeroDecimals: !0 })))]), t("div", [e._v("+ " + e._s(e._document.$tc("summaryBottom.option", { count: e.options.length })))])]) : t("div", { staticStyle: { padding: "calc(2 * var(--rem))", display: "inline-flex", "align-items": "center", "justify-content": "center", "font-weight": "900", "font-size": "calc(2.5 * var(--rem))" } }, [e._v(" " + e._s(e._document.$t("summaryBottom.noOfOptions", { count: e.options.length })) + " ")])]), t("div", { staticStyle: { "background-color": "hsla(0, 0%, 0%, 0.4)", overflow: "hidden", width: "calc(1.5 * var(--rem))", display: "flex", "flex-direction": "column", "justify-content": "center", "align-items": "center", height: "100%", color: "hsla(0, 0%, 100%, 0.2)" } })]) : t("div", { staticClass: "flex justify-between w-full", class: [
|
|
214
|
-
{
|
|
215
|
-
column: e.isSmallScreen,
|
|
216
|
-
sm: e.isSmallScreen
|
|
217
|
-
}
|
|
218
|
-
], staticStyle: { position: "relative" } }, [t("div", { staticClass: "flex flex-col w-full", class: [{ "fixed-price-type-string": e.isSmallScreen }], staticStyle: { "background-color": "hsl(224, 57%, 39%)" }, style: [e.backgroundSecondary] }, [t("div", { staticClass: "price-type-string data-text" }, [e._v(" " + e._s(e.priceTypeString) + " ")]), e.isSmallScreen ? e._e() : t("div", { staticClass: "price-deduction-text" }, [e._v(" " + e._s(e.priceDeductionVatString) + " ")])]), e.priceType.some((s) => ["openAcc", "openAccMaxPrice"].includes(s)) ? t("div", { staticClass: "open-acc-wrapper" }, [e.openAccMaxPrice ? t("div", { staticClass: "open-acc-item" }, [t("div", [e._v(e._s(e._document.$t("price.maxPrice").capitalize()) + " " + e._s(e._document.$t("vat.exVat", { thing: e._document.$t(`vat.${e.vatType}`) })) + ":")]), t("div", [e._v(e._s(e.priceFormat(e.openAccMaxPrice, { currency: e.currency })))])]) : e._e(), t("div", { staticClass: "open-acc-link" }, [e._v(" " + e._s(e._document.$t("see").capitalize()) + " "), t("span", { staticStyle: { color: "inherit", cursor: "pointer" }, on: { click: e.scrollToPricing } }, [t("u", [e._v(e._s(e._document.$t("price.price_plural")))])]), e._v(" " + e._s(e._document.$t("summaryBottom.forDetails")) + " ")])]) : t("div", { staticClass: "flex items-center w-full", class: [{ "justify-end": !e.isSmallScreen }] }, [t("div", { staticClass: "data-text", staticStyle: { "font-size": "calc(2 * var(--rem))", "font-weight": "900", "letter-spacing": "1px", "line-height": "1", "padding-bottom": "calc(0.3 * var(--rem))" } }, [e._v(" " + e._s(e.priceType.includes("approx") ? e._document.$t("approx").capitalize() : "") + " " + e._s(e.priceFormat(e.priceTotal, { currency: e.currency, decimals: 2, hideZeroDecimals: !0 })) + " ")])]), e.isSmallScreen ? t("div", { staticClass: "label-text caps price-deduction-text", staticStyle: { "margin-top": "4px" } }, [e._v(" " + e._s(e.priceDeductionVatString) + " ")]) : e._e()])])]);
|
|
219
|
-
}, C = [], $ = /* @__PURE__ */ n(
|
|
220
|
-
x,
|
|
221
|
-
b,
|
|
222
|
-
C,
|
|
223
|
-
!1,
|
|
224
|
-
null,
|
|
225
|
-
"8ace9bc8",
|
|
226
|
-
null,
|
|
227
|
-
null
|
|
228
|
-
);
|
|
229
|
-
const w = $.exports;
|
|
230
|
-
const T = {
|
|
231
|
-
name: "PriceHeader",
|
|
232
|
-
components: {
|
|
233
|
-
SummaryTop: S,
|
|
234
|
-
SummaryBottom: w,
|
|
235
|
-
BlockMedia: l
|
|
236
|
-
},
|
|
237
|
-
mixins: [c([
|
|
238
|
-
"media",
|
|
239
|
-
"backgroundColor",
|
|
240
|
-
"documentName",
|
|
241
|
-
"showPriceSummary",
|
|
242
|
-
"showLogo",
|
|
243
|
-
"logotype"
|
|
244
|
-
])],
|
|
245
|
-
props: {
|
|
246
|
-
_document: {
|
|
247
|
-
type: Object,
|
|
248
|
-
default: () => ({})
|
|
249
|
-
},
|
|
250
|
-
_value: {
|
|
251
|
-
type: Object,
|
|
252
|
-
default: () => ({})
|
|
253
|
-
},
|
|
254
|
-
hasHover: {
|
|
255
|
-
type: Boolean,
|
|
256
|
-
default: !1
|
|
257
|
-
}
|
|
258
|
-
},
|
|
259
|
-
computed: {
|
|
260
|
-
internalName: {
|
|
261
|
-
get() {
|
|
262
|
-
return this.documentName;
|
|
263
|
-
},
|
|
264
|
-
set(i) {
|
|
265
|
-
this.documentName = i, this.$emit("input", { key: "data.name", value: u(i).trim().slice(0, 255) });
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
|
-
company() {
|
|
269
|
-
return this._document.sender.company;
|
|
270
|
-
},
|
|
271
|
-
prices() {
|
|
272
|
-
return this._document.prices;
|
|
273
|
-
},
|
|
274
|
-
estimatedTimeString() {
|
|
275
|
-
var t, s;
|
|
276
|
-
const { value: i, unitType: e } = ((s = (t = this._document) == null ? void 0 : t.data) == null ? void 0 : s.estimatedTime) || {};
|
|
277
|
-
return !i || !e ? null : this.$tc(`${e}`, { count: i });
|
|
278
|
-
},
|
|
279
|
-
sendAtShowDate() {
|
|
280
|
-
const { sentAt: i, scheduledFirstDelivery: e } = this._document;
|
|
281
|
-
return i || (e ? e.sendAt : null);
|
|
282
|
-
},
|
|
283
|
-
summaryBottom() {
|
|
284
|
-
var s;
|
|
285
|
-
let i = {
|
|
286
|
-
show: !1,
|
|
287
|
-
backgroundColor: this.backgroundColor || this._document.theme.priceSummaryBackground,
|
|
288
|
-
documentCurrency: this._document.currency,
|
|
289
|
-
vatType: this._document.vatType
|
|
290
|
-
}, { showPriceSummary: e } = this;
|
|
291
|
-
typeof e != "boolean" && ({ showPriceSummary: e } = this._document.theme);
|
|
292
|
-
const t = ((s = this._document.packageGroups) == null ? void 0 : s.packages) || [];
|
|
293
|
-
return t.length > 1 ? i = {
|
|
294
|
-
...i,
|
|
295
|
-
show: e,
|
|
296
|
-
base: { prices: this.prices },
|
|
297
|
-
options: t.filter(({ toggable: a }) => a).map(({ prices: a }) => ({ prices: a }))
|
|
298
|
-
} : i = {
|
|
299
|
-
...i,
|
|
300
|
-
show: e && this._document.readPrices && (this.prices.total || this.prices.type.some((a) => ["openAccMaxPrice", "openAcc"].includes(a))),
|
|
301
|
-
base: { prices: this.prices }
|
|
302
|
-
}, this.canEdit && e && (i.show = !0), i.documentCurrency || (i.show = !1), i;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
};
|
|
306
|
-
var k = function() {
|
|
307
|
-
var s, a;
|
|
308
|
-
var e = this, t = e._self._c;
|
|
309
|
-
return t("div", [t("div", { staticClass: "doc-jumbotron-wrapper" }, [t("BlockMedia", { staticClass: "price-media-wrapper", attrs: { media: {
|
|
310
|
-
...e.media,
|
|
311
|
-
resourceUrl: ((s = e.media) == null ? void 0 : s.resourceUrl) || e._document.theme.background,
|
|
312
|
-
overlayColor: ((a = e.media) == null ? void 0 : a.overlayColor) || e._document.theme.backgroundFilter
|
|
313
|
-
} } }), t("SummaryTop", { attrs: { _document: e._document, "show-logo": e.showLogo, logotype: e.logotype, "company-logotype": e.company.logotype, "sender-name": e.company.name, "doc-type": e._document.docNumber.series, "doc-name": e.internalName, "doc-number": e._document.docNumber.value, "sent-at": e.sendAtShowDate, "expires-at": e._document.expiresAt, "estimated-time": e.estimatedTimeString, "has-hover": e.hasHover }, on: { "update:showLogo": function(o) {
|
|
314
|
-
e.showLogo = o;
|
|
315
|
-
}, "update:show-logo": function(o) {
|
|
316
|
-
e.showLogo = o;
|
|
317
|
-
}, "update:logotype": function(o) {
|
|
318
|
-
e.logotype = o;
|
|
319
|
-
}, "update:docName": function(o) {
|
|
320
|
-
e.internalName = o;
|
|
321
|
-
}, "update:doc-name": function(o) {
|
|
322
|
-
e.internalName = o;
|
|
323
|
-
} } })], 1), e.summaryBottom.show ? t("SummaryBottom", e._b({ attrs: { _document: e._document } }, "SummaryBottom", e.summaryBottom, !1)) : e._e()], 1);
|
|
324
|
-
}, A = [], B = /* @__PURE__ */ n(
|
|
325
|
-
T,
|
|
326
|
-
k,
|
|
327
|
-
A,
|
|
328
|
-
!1,
|
|
329
|
-
null,
|
|
330
|
-
"4a30cbe0",
|
|
331
|
-
null,
|
|
332
|
-
null
|
|
333
|
-
);
|
|
334
|
-
const R = B.exports;
|
|
335
|
-
export {
|
|
336
|
-
R as default
|
|
337
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { i as n, j as l } from "./main-b6350bc3.js";
|
|
2
|
-
import { a as o } from "./CDropdownItem-c2f36de9.js";
|
|
3
|
-
var g = o, c = l, f = "Expected a function";
|
|
4
|
-
function u(a, i, t) {
|
|
5
|
-
var r = !0, e = !0;
|
|
6
|
-
if (typeof a != "function")
|
|
7
|
-
throw new TypeError(f);
|
|
8
|
-
return c(t) && (r = "leading" in t ? !!t.leading : r, e = "trailing" in t ? !!t.trailing : e), g(a, i, {
|
|
9
|
-
leading: r,
|
|
10
|
-
maxWait: i,
|
|
11
|
-
trailing: e
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
var d = u;
|
|
15
|
-
const _ = /* @__PURE__ */ n(d);
|
|
16
|
-
export {
|
|
17
|
-
_ as t
|
|
18
|
-
};
|