@cling-se/widget 0.9.10 → 0.9.12

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.
Files changed (137) hide show
  1. package/README.md +35 -35
  2. package/dist/{AddClientCallout-98b5d2c9.js → AddClientCallout-6b0621ec.js} +5 -5
  3. package/dist/{AnswerModal-995e7a87.js → AnswerModal-f6cb74d7.js} +156 -145
  4. package/dist/{AttachmentItem-331b9c1e.js → AttachmentItem-2a4cb524.js} +4 -4
  5. package/dist/{BaseDatePicker-7f047527.js → BaseDatePicker-2daf62c0.js} +1 -1
  6. package/dist/{BaseInput-c79f0001.js → BaseInput-a4523348.js} +1 -1
  7. package/dist/{BaseUpload-9402cc1b.js → BaseUpload-737004ad.js} +3 -3
  8. package/dist/{BlockMedia-80a082ed.js → BlockMedia-a145fc19.js} +2 -2
  9. package/dist/{CCallout-bd314caa.js → CCallout-7fb1ad5c.js} +6 -6
  10. package/dist/{CDropdownItem-ab42f924.js → CDropdownItem-79c8dc70.js} +5 -5
  11. package/dist/{CField-6da7299b.js → CField-2b1118f9.js} +1 -1
  12. package/dist/{CSlider.vue_vue_type_style_index_0_lang-c70342a2.js → CSlider.vue_vue_type_style_index_0_lang-47894df7.js} +1 -1
  13. package/dist/{ClientAutocomplete-67fc253c.js → ClientAutocomplete-3d098904.js} +6 -6
  14. package/dist/{ClientModal-1709e8c7.js → ClientModal-d1bf8d0d.js} +5 -5
  15. package/dist/{ColorPicker-4880a624.js → ColorPicker-c61cd86f.js} +29 -29
  16. package/dist/{CompanyModal-dbe85884.js → CompanyModal-46cab2d1.js} +4 -4
  17. package/dist/{ContentWrapper-a602cc3d.js → ContentWrapper-3251ab37.js} +14 -14
  18. package/dist/{CoverBlockSettings-f37fe6e1.js → CoverBlockSettings-3ad93db4.js} +21 -20
  19. package/dist/{DocAnswer-081e8239.js → DocAnswer-a0f2853b.js} +4 -4
  20. package/dist/DocForm-a4c0a0f1.js +7087 -0
  21. package/dist/{DocFormSend-c9b955b9.js → DocFormSend-ed982485.js} +24 -21
  22. package/dist/{DocModalBase-8c238a59.js → DocModalBase-22abfff9.js} +4 -4
  23. package/dist/{DocPrint-2a181ffb.js → DocPrint-028aa0ed.js} +5 -5
  24. package/dist/{DocReceipt-00c0f631.js → DocReceipt-3bd27c4a.js} +1 -1
  25. package/dist/{DocSendReminder-9effd808.js → DocSendReminder-8ad0ca86.js} +1 -1
  26. package/dist/{DocTextEditor-0c8a4782.js → DocTextEditor-8930e458.js} +12 -12
  27. package/dist/{DocTimeline-be5e8b9d.js → DocTimeline-2ab336f0.js} +1 -1
  28. package/dist/{DocumentClient-13f55b25.js → DocumentClient-441798b5.js} +5 -5
  29. package/dist/{DocumentLayout-2ff55f9f.js → DocumentLayout-02c32058.js} +97 -97
  30. package/dist/{DocumentLogotype-80a2521a.js → DocumentLogotype-43ef9231.js} +6 -6
  31. package/dist/{EmbedInput-8572a42b.js → EmbedInput-996ae0e3.js} +2 -2
  32. package/dist/{EmbedSettings-1a60358e.js → EmbedSettings-41af8b9c.js} +5 -5
  33. package/dist/{ErrorCallout-84e8168b.js → ErrorCallout-d392ffe9.js} +2 -2
  34. package/dist/{FilePreviewModal-cdafbf1c.js → FilePreviewModal-e298691e.js} +5 -5
  35. package/dist/{HeaderSettings-9f4d182b.js → HeaderSettings-687131c9.js} +20 -19
  36. package/dist/{ImageSelectModal-b97c8185.js → ImageSelectModal-eec441aa.js} +16 -18
  37. package/dist/{ImageUploadWrapper-ebcdbc9e.js → ImageUploadWrapper-b244cf9e.js} +3 -3
  38. package/dist/{Index-6c782bef.js → Index-01a3b6ed.js} +12 -12
  39. package/dist/{Index-473d0fad.js → Index-0ed1b84a.js} +3 -3
  40. package/dist/{Index-4bbfdb2e.js → Index-13b65d9b.js} +2 -2
  41. package/dist/{Index-dd30bbc5.js → Index-2468cd69.js} +12 -12
  42. package/dist/{Index-8eff4eae.js → Index-25ce24cc.js} +2 -2
  43. package/dist/{Index-0bd4a30c.js → Index-2b19a264.js} +16 -16
  44. package/dist/{Index-7b1fd376.js → Index-30ebb13c.js} +2 -2
  45. package/dist/{Index-b233276b.js → Index-37d3fd60.js} +2 -2
  46. package/dist/{Index-8c4fd5b4.js → Index-485b35e8.js} +27 -27
  47. package/dist/{Index-341f9388.js → Index-5ff95ead.js} +8 -8
  48. package/dist/{Index-ba4cfb80.js → Index-62ea070e.js} +6 -6
  49. package/dist/{Index-dca28212.js → Index-6c5de42a.js} +2 -2
  50. package/dist/{Index-11d16691.js → Index-6ca4a7e4.js} +22 -22
  51. package/dist/{Index-8cba5dac.js → Index-6d61f98d.js} +26 -26
  52. package/dist/{Index-de93e029.js → Index-77a7d639.js} +7 -7
  53. package/dist/{Index-8053871b.js → Index-7c421b05.js} +4 -4
  54. package/dist/{Index-0306a974.js → Index-7d2fe1bd.js} +12 -12
  55. package/dist/{Index-c2b2ccd9.js → Index-87cd4771.js} +8 -8
  56. package/dist/{Index-8755440b.js → Index-8882ee1b.js} +5 -5
  57. package/dist/{Index-7f01697f.js → Index-8c254496.js} +7 -7
  58. package/dist/{Index-623bb993.js → Index-9ccce76f.js} +4 -4
  59. package/dist/{Index-ffc7dba1.js → Index-a7871ea6.js} +5 -5
  60. package/dist/{Index-3ccc66e4.js → Index-a9f197a7.js} +4 -4
  61. package/dist/{Index-451f5485.js → Index-af3a9b66.js} +5 -5
  62. package/dist/{Index-f9063054.js → Index-b9b80eae.js} +7 -7
  63. package/dist/{Index-5428e87c.js → Index-bf23d7a9.js} +11 -11
  64. package/dist/{Index-0022bc40.js → Index-c3a619f4.js} +4 -4
  65. package/dist/{Index-ddf49640.js → Index-d3225e03.js} +6 -6
  66. package/dist/{Index-95f0dd2f.js → Index-d76bf229.js} +19 -19
  67. package/dist/{Index-2ecefac2.js → Index-e2919ed0.js} +4 -4
  68. package/dist/{Index-8ecb9aa4.js → Index-ee558d21.js} +2 -2
  69. package/dist/{Index-9c5f5d6e.js → Index-efa47af4.js} +7 -7
  70. package/dist/{Index-039d9c9d.js → Index-f14261e7.js} +6 -6
  71. package/dist/{Index-0bbbe1cf.js → Index-fd947a18.js} +13 -13
  72. package/dist/{InputToggleRow-533651e6.js → InputToggleRow-ee713437.js} +2 -2
  73. package/dist/IsPremiumPreStep-9b5a0a01.js +3669 -0
  74. package/dist/{MediaWrapper-388589e5.js → MediaWrapper-45257b41.js} +3 -3
  75. package/dist/{NotBindingText-b833c49b.js → NotBindingText-c2f7c9cb.js} +2 -2
  76. package/dist/{PackageGroup-41b2d524.js → PackageGroup-b2aa42da.js} +15 -15
  77. package/dist/{PdfTerms-461fcd9e.js → PdfTerms-2d66043e.js} +7 -7
  78. package/dist/{PdfViewer-099b598c.js → PdfViewer-947ee278.js} +2 -2
  79. package/dist/{PlainHtml-37aa5b7b.js → PlainHtml-a3d47a45.js} +1 -1
  80. package/dist/PriceHeader-b6a99a57.js +337 -0
  81. package/dist/{SearchApi-25909227.js → SearchApi-c6511bc3.js} +2 -2
  82. package/dist/Setup-60ec3c2a.js +54 -0
  83. package/dist/{TermsSettings-c730ac70.js → TermsSettings-836555da.js} +10 -10
  84. package/dist/{ThemeColorRow-31d8285b.js → ThemeColorRow-672086c3.js} +12 -21
  85. package/dist/{ToggleBinding-1a98360f.js → ToggleBinding-3c581fbb.js} +3 -3
  86. package/dist/{UploadModal-e0a37c3e.js → UploadModal-b3933203.js} +4 -4
  87. package/dist/{VideoPlayerInput-4d7f302a.js → VideoPlayerInput-5ad13a27.js} +3 -3
  88. package/dist/{VideoPlayerSettings-81168a6b.js → VideoPlayerSettings-e964804b.js} +5 -5
  89. package/dist/{VideoSelectModal-dc429ff0.js → VideoSelectModal-321b2270.js} +30 -30
  90. package/dist/{answerDocumentMixin-3ff2b25d.js → answerDocumentMixin-76224b35.js} +3 -3
  91. package/dist/{cssMode-c6b1b286.js → cssMode-2bf89988.js} +7 -7
  92. package/dist/{focusDrawerMixin-01b547f0.js → focusDrawerMixin-dffff858.js} +1 -1
  93. package/dist/{formComponentsInstall-9e33cb8f.js → formComponentsInstall-57c30f22.js} +265 -255
  94. package/dist/{formValidationMixin-74c239ee.js → formValidationMixin-9d5c1283.js} +1 -1
  95. package/dist/{freemarker2-076519a0.js → freemarker2-503b066f.js} +7 -7
  96. package/dist/{handlebars-bb155717.js → handlebars-8c0c0a90.js} +7 -7
  97. package/dist/{html-1cf008d9.js → html-5b503855.js} +7 -7
  98. package/dist/{htmlMode-bf67fa2b.js → htmlMode-b751a462.js} +7 -7
  99. package/dist/image-a902f5a5.js +18 -0
  100. package/dist/{index-e37214e9.js → index-1c1cefec.js} +4 -4
  101. package/dist/{index-908333a3.js → index-771f5571.js} +9 -9
  102. package/dist/index-9a5227ef.js +82 -0
  103. package/dist/{index-7097f05c.js → index-a9f8e647.js} +13 -13
  104. package/dist/{index-0f09ca1c.js → index-d81be181.js} +10 -10
  105. package/dist/index.es.js +3 -3
  106. package/dist/index.umd.js +581 -581
  107. package/dist/{javascript-b98377f9.js → javascript-2d18f43b.js} +8 -8
  108. package/dist/{jsonMode-e9595a57.js → jsonMode-95421c7a.js} +7 -7
  109. package/dist/{liquid-b60636e3.js → liquid-47ff3277.js} +7 -7
  110. package/dist/{main-cf622dd3.js → main-5532481e.js} +7274 -7171
  111. package/dist/{mapFormMixin-490a1765.js → mapFormMixin-218f9749.js} +1 -1
  112. package/dist/{publicSenderState-6b369e21.js → publicSenderState-7c91d66d.js} +1 -1
  113. package/dist/{python-4e4d18f5.js → python-afd06bc4.js} +7 -7
  114. package/dist/{razor-63ead89f.js → razor-28875ccf.js} +7 -7
  115. package/dist/{simplebar.min-3f1edc12.js → simplebar.min-3682e5c9.js} +1 -1
  116. package/dist/style.css +2 -2
  117. package/dist/{template-66eba036.js → template-cd101772.js} +1 -1
  118. package/dist/throttle-3a262479.js +18 -0
  119. package/dist/{tinycolor-9f3cc25c.js → tinycolor-ca02e626.js} +6 -6
  120. package/dist/{tippy.esm-dec03596.js → tippy.esm-a7740684.js} +7 -7
  121. package/dist/{tsMode-e93504e4.js → tsMode-bc258439.js} +7 -7
  122. package/dist/{typescript-111230d0.js → typescript-ac68850c.js} +7 -7
  123. package/dist/{utils-fb02e603.js → utils-b0646315.js} +5 -5
  124. package/dist/{vuedraggable.umd-f2d6d3e3.js → vuedraggable.umd-934a0379.js} +1 -1
  125. package/dist/{xml-987e33cc.js → xml-a8591419.js} +7 -7
  126. package/package.json +1 -1
  127. package/.env +0 -12
  128. package/dist/DocForm-c69281fc.js +0 -7062
  129. package/dist/IsPremiumPreStep-8d46fadc.js +0 -2349
  130. package/dist/PriceHeader-41c48787.js +0 -337
  131. package/dist/regions-29ee6964.js +0 -1250
  132. package/dist/throttle-2b45d29c.js +0 -18
  133. package/jsconfig.json +0 -11
  134. package/postcss.config.cjs +0 -6
  135. package/stats.html +0 -4044
  136. package/tailwind.config.cjs +0 -26
  137. package/vite-plugin-library-asset-external/index.js +0 -134
@@ -1,337 +0,0 @@
1
- import { m as c } from "./mapFormMixin-490a1765.js";
2
- import { B as l } from "./BlockMedia-80a082ed.js";
3
- import { n, b as r, q as d, a1 as u } from "./main-cf622dd3.js";
4
- import { T as m } from "./DocTextEditor-0c8a4782.js";
5
- import { i as p } from "./i18nMessages-45c6bfd6.js";
6
- import { t as _ } from "./tinycolor-9f3cc25c.js";
7
- import { s as y } from "./dom-068d1a7b.js";
8
- import "./color-71c20583.js";
9
- import "./tippy.esm-dec03596.js";
10
- import "./ColorPicker-4880a624.js";
11
- import "./DocumentLayout-2ff55f9f.js";
12
- import "./CDropdownItem-ab42f924.js";
13
- import "./CSlider.vue_vue_type_style_index_0_lang-c70342a2.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-80a2521a.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 t = this, e = t._self._c;
89
- return e("section", { staticClass: "flex justify-center w-full summary-top" }, [e("div", { staticClass: "doc-summary-top-wrapper" }, [e("div", { staticClass: "doc-summary-top-wrapper__background" }), e("div", { staticClass: "flex justify-between w-full", staticStyle: { "margin-bottom": "calc(2.5 * var(--rem))" } }, [t.showLogo && (t.logotype || t.companyLogotype) || t.canEdit ? e("DocumentLogotype", t._g({ attrs: { value: t.logotype, "show-logo": t.showLogo, "company-logotype": t.companyLogotype, "has-hover": t.hasHover } }, t.logotypeListeners)) : e("div", { staticClass: "company-name" }, [t._v(" " + t._s(t.senderName) + " ")]), e("div", { staticClass: "top-right-text-wrapper" }, [t.sentAt ? e("div", [t._v(t._s(t.$formatDate(t.sentAt)))]) : t._e(), t.docNumber ? e("div", [t._v(" #" + t._s(t.docNumber))]) : t._e()])], 1), e("div", { staticClass: "title-text" }, [t.canEdit ? e("TextEditor", { ref: "editor", staticClass: "no-drag", staticStyle: { "will-change": "opacity" }, attrs: { value: t.docName, placeholder: t.$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 t.$emit("update:doc-name", s);
99
- } } }) : e("div", { staticClass: "quill-custom", domProps: { innerHTML: t._s(t.docName) } })], 1), e("div", { staticClass: "flex justify-between w-full" }, [t.expiresAt ? e("div", { staticClass: "data-group" }, [e("div", { staticClass: "label-text caps" }, [t._v(t._s(t._document.$t("replyBy")))]), e("div", { staticClass: "data-text" }, [t._v(t._s(t.$formatDate(t.expiresAt)))])]) : t._e(), t.docType !== "document" ? e("div", { staticClass: "data-group" }, [e("div", { staticClass: "label-text caps" }, [t._v(t._s(t._document.$t("document").capitalize()))]), e("div", { staticClass: "data-text" }, [t._v(t._s(t._document.$t(`series.${t.docType}`).capitalize()))])]) : t._e(), t.parentSize.width >= 576 ? [t.estimatedTime ? e("div", { staticClass: "data-group" }, [e("div", { staticClass: "label-text caps" }, [t._v(t._s(t.$t("time.estimatedTime")))]), e("div", { staticClass: "data-text" }, [t._v(t._s(t._document.$t("approx")) + " " + t._s(t.estimatedTime))])]) : t._e()] : t._e()], 2)])]);
100
- }, f = [], g = /* @__PURE__ */ n(
101
- h,
102
- v,
103
- f,
104
- !1,
105
- null,
106
- "f5fa5703",
107
- null,
108
- null
109
- );
110
- const S = g.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 t = this.priceFormat(0, { currency: this.currency, showZero: !0 });
178
- return i = this._document.$t("summaryBottom.reverseVat", { amount: t }), 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], t = this.backgroundColor.match(/(\d*\.)?\d+/g)[1], e = this.backgroundColor.match(/(\d*\.)?\d+/g)[2], s = this.backgroundColor.match(/(\d*\.)?\d+/g)[3];
186
- return {
187
- backgroundColor: `hsla(${i}, ${t ** 0.9}%, ${e ** 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 t = this, e = t._self._c;
204
- return e("section", { staticClass: "summary-bottom-root" }, [e("div", { staticClass: "summary-bottom", style: [
205
- {
206
- backgroundColor: t.backgroundColor,
207
- color: t.tinycolor.readability(t.backgroundColor, "#FFF") > 2.2 ? "#FFF" : "#000"
208
- },
209
- t.options.length && {
210
- overflow: "hidden",
211
- padding: 0
212
- }
213
- ] }, [t.options.length ? e("div", { staticClass: "flex items-center justify-end w-full", staticStyle: { height: "108px" } }, [e("div", { staticStyle: { "text-align": "right", padding: "calc(2 * var(--rem))" } }, [e("div", { staticStyle: { "font-size": "calc(1.5 * var(--rem))", "font-weight": "900" } }, [t._v(t._s(t._document.$t("price.proposal")))]), e("div", [t._v(t._s(t._document.$t("summaryBottom.chooseFrom")))])]), e("div", { staticStyle: { "background-color": "hsla(0, 0%, 0%, 0.15)", paadding: "calc(1 * var(--rem)) calc(2 * var(--rem))", height: "100%", display: "inline-flex" } }, [t.base ? e("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" } }, [e("div", { staticStyle: { "font-weight": "900", "font-size": "calc(1.5 * var(--rem))" } }, [t._v(t._s(t.priceFormat(t.base.prices.total, { currency: t.currency, decimals: 2, hideZeroDecimals: !0 })))]), e("div", [t._v("+ " + t._s(t._document.$tc("summaryBottom.option", { count: t.options.length })))])]) : e("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))" } }, [t._v(" " + t._s(t._document.$t("summaryBottom.noOfOptions", { count: t.options.length })) + " ")])]), e("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)" } })]) : e("div", { staticClass: "flex justify-between w-full", class: [
214
- {
215
- column: t.isSmallScreen,
216
- sm: t.isSmallScreen
217
- }
218
- ], staticStyle: { position: "relative" } }, [e("div", { staticClass: "flex flex-col w-full", class: [{ "fixed-price-type-string": t.isSmallScreen }], staticStyle: { "background-color": "hsl(224, 57%, 39%)" }, style: [t.backgroundSecondary] }, [e("div", { staticClass: "price-type-string data-text" }, [t._v(" " + t._s(t.priceTypeString) + " ")]), t.isSmallScreen ? t._e() : e("div", { staticClass: "price-deduction-text" }, [t._v(" " + t._s(t.priceDeductionVatString) + " ")])]), t.priceType.some((s) => ["openAcc", "openAccMaxPrice"].includes(s)) ? e("div", { staticClass: "open-acc-wrapper" }, [t.openAccMaxPrice ? e("div", { staticClass: "open-acc-item" }, [e("div", [t._v(t._s(t._document.$t("price.maxPrice").capitalize()) + " " + t._s(t._document.$t("vat.exVat", { thing: t._document.$t(`vat.${t.vatType}`) })) + ":")]), e("div", [t._v(t._s(t.priceFormat(t.openAccMaxPrice, { currency: t.currency })))])]) : t._e(), e("div", { staticClass: "open-acc-link" }, [t._v(" " + t._s(t._document.$t("see").capitalize()) + " "), e("span", { staticStyle: { color: "inherit", cursor: "pointer" }, on: { click: t.scrollToPricing } }, [e("u", [t._v(t._s(t._document.$t("price.price_plural")))])]), t._v(" " + t._s(t._document.$t("summaryBottom.forDetails")) + " ")])]) : e("div", { staticClass: "flex items-center w-full", class: [{ "justify-end": !t.isSmallScreen }] }, [e("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))" } }, [t._v(" " + t._s(t.priceType.includes("approx") ? t._document.$t("approx").capitalize() : "") + " " + t._s(t.priceFormat(t.priceTotal, { currency: t.currency, decimals: 2, hideZeroDecimals: !0 })) + " ")])]), t.isSmallScreen ? e("div", { staticClass: "label-text caps price-deduction-text", staticStyle: { "margin-top": "4px" } }, [t._v(" " + t._s(t.priceDeductionVatString) + " ")]) : t._e()])])]);
219
- }, C = [], $ = /* @__PURE__ */ n(
220
- x,
221
- b,
222
- C,
223
- !1,
224
- null,
225
- "b9c4fb52",
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 e, s;
276
- const { value: i, unitType: t } = ((s = (e = this._document) == null ? void 0 : e.data) == null ? void 0 : s.estimatedTime) || {};
277
- return !i || !t ? null : this.$tc(`${t}`, { count: i });
278
- },
279
- sendAtShowDate() {
280
- const { sentAt: i, scheduledFirstDelivery: t } = this._document;
281
- return i || (t ? t.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: t } = this;
291
- typeof t != "boolean" && ({ showPriceSummary: t } = this._document.theme);
292
- const e = ((s = this._document.packageGroups) == null ? void 0 : s.packages) || [];
293
- return e.length > 1 ? i = {
294
- ...i,
295
- show: t,
296
- base: { prices: this.prices },
297
- options: e.filter(({ toggable: a }) => a).map(({ prices: a }) => ({ prices: a }))
298
- } : i = {
299
- ...i,
300
- show: t && this._document.readPrices && (this.prices.total || this.prices.type.some((a) => ["openAccMaxPrice", "openAcc"].includes(a))),
301
- base: { prices: this.prices }
302
- }, this.canEdit && t && (i.show = !0), i.documentCurrency || (i.show = !1), i;
303
- }
304
- }
305
- };
306
- var k = function() {
307
- var s, a;
308
- var t = this, e = t._self._c;
309
- return e("div", [e("div", { staticClass: "doc-jumbotron-wrapper" }, [e("BlockMedia", { staticClass: "price-media-wrapper", attrs: { media: {
310
- ...t.media,
311
- resourceUrl: ((s = t.media) == null ? void 0 : s.resourceUrl) || t._document.theme.background,
312
- overlayColor: ((a = t.media) == null ? void 0 : a.overlayColor) || t._document.theme.backgroundFilter
313
- } } }), e("SummaryTop", { attrs: { _document: t._document, "show-logo": t.showLogo, logotype: t.logotype, "company-logotype": t.company.logotype, "sender-name": t.company.name, "doc-type": t._document.docNumber.series, "doc-name": t.internalName, "doc-number": t._document.docNumber.value, "sent-at": t.sendAtShowDate, "expires-at": t._document.expiresAt, "estimated-time": t.estimatedTimeString, "has-hover": t.hasHover }, on: { "update:showLogo": function(o) {
314
- t.showLogo = o;
315
- }, "update:show-logo": function(o) {
316
- t.showLogo = o;
317
- }, "update:logotype": function(o) {
318
- t.logotype = o;
319
- }, "update:docName": function(o) {
320
- t.internalName = o;
321
- }, "update:doc-name": function(o) {
322
- t.internalName = o;
323
- } } })], 1), t.summaryBottom.show ? e("SummaryBottom", t._b({ attrs: { _document: t._document } }, "SummaryBottom", t.summaryBottom, !1)) : t._e()], 1);
324
- }, A = [], B = /* @__PURE__ */ n(
325
- T,
326
- k,
327
- A,
328
- !1,
329
- null,
330
- "ec1e6111",
331
- null,
332
- null
333
- );
334
- const R = B.exports;
335
- export {
336
- R as default
337
- };