@cling-se/widget 0.9.10 → 0.9.11

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 (147) hide show
  1. package/README.md +35 -35
  2. package/dist/{AddClientCallout-98b5d2c9.js → AddClientCallout-bccc787f.js} +5 -5
  3. package/dist/{AnswerModal-995e7a87.js → AnswerModal-4de1dbc1.js} +7 -7
  4. package/dist/{AttachmentItem-331b9c1e.js → AttachmentItem-800d8c9f.js} +4 -4
  5. package/dist/{BaseDatePicker-7f047527.js → BaseDatePicker-1abafbac.js} +43 -43
  6. package/dist/{BaseInput-c79f0001.js → BaseInput-51ade595.js} +1 -1
  7. package/dist/{BaseUpload-9402cc1b.js → BaseUpload-b9b2fa68.js} +3 -3
  8. package/dist/{BlockMedia-80a082ed.js → BlockMedia-efc20618.js} +2 -2
  9. package/dist/{CCallout-bd314caa.js → CCallout-a357fde2.js} +5 -5
  10. package/dist/{CDropdownItem-ab42f924.js → CDropdownItem-bb7f1de7.js} +1 -1
  11. package/dist/{CField-6da7299b.js → CField-d69fcf46.js} +1 -1
  12. package/dist/{CSlider.vue_vue_type_style_index_0_lang-c70342a2.js → CSlider.vue_vue_type_style_index_0_lang-5ac8d200.js} +1 -1
  13. package/dist/{ClientAutocomplete-67fc253c.js → ClientAutocomplete-d126a3bd.js} +6 -6
  14. package/dist/{ClientModal-1709e8c7.js → ClientModal-e2c196c4.js} +5 -5
  15. package/dist/{ColorPicker-4880a624.js → ColorPicker-81f9f778.js} +2 -2
  16. package/dist/{CompanyModal-dbe85884.js → CompanyModal-092999bf.js} +4 -4
  17. package/dist/{ContentWrapper-a602cc3d.js → ContentWrapper-1f930dce.js} +14 -14
  18. package/dist/{CoverBlockSettings-f37fe6e1.js → CoverBlockSettings-5aa513a4.js} +20 -20
  19. package/dist/DocForm-2e9af604.js +7132 -0
  20. package/dist/{DocFormSend-c9b955b9.js → DocFormSend-fadf14c9.js} +18 -19
  21. package/dist/{DocModalBase-8c238a59.js → DocModalBase-4172fbbb.js} +4 -4
  22. package/dist/{DocPrint-2a181ffb.js → DocPrint-edc291ba.js} +5 -5
  23. package/dist/{DocReceipt-00c0f631.js → DocReceipt-bcb8539c.js} +1 -1
  24. package/dist/{DocSendReminder-9effd808.js → DocSendReminder-c75a1906.js} +1 -1
  25. package/dist/{DocTextEditor-0c8a4782.js → DocTextEditor-c9b90281.js} +12 -12
  26. package/dist/{DocTimeline-be5e8b9d.js → DocTimeline-2afee21c.js} +5 -5
  27. package/dist/{DocumentClient-13f55b25.js → DocumentClient-425f6e0b.js} +5 -5
  28. package/dist/{DocumentLayout-2ff55f9f.js → DocumentLayout-0d24ac85.js} +5 -5
  29. package/dist/{DocumentLogotype-80a2521a.js → DocumentLogotype-278b2823.js} +15 -15
  30. package/dist/{EmbedInput-8572a42b.js → EmbedInput-28796e66.js} +2 -2
  31. package/dist/{EmbedSettings-1a60358e.js → EmbedSettings-1e097db9.js} +5 -5
  32. package/dist/{ErrorCallout-84e8168b.js → ErrorCallout-ddbc30af.js} +2 -2
  33. package/dist/{FilePreviewModal-cdafbf1c.js → FilePreviewModal-360216a2.js} +5 -5
  34. package/dist/{HeaderSettings-9f4d182b.js → HeaderSettings-abc9e60f.js} +15 -15
  35. package/dist/{ImageSelectModal-b97c8185.js → ImageSelectModal-2c078df5.js} +10 -10
  36. package/dist/{ImageUploadWrapper-ebcdbc9e.js → ImageUploadWrapper-99a3b0dd.js} +3 -3
  37. package/dist/{Index-4bbfdb2e.js → Index-05d4a173.js} +2 -2
  38. package/dist/{Index-ba4cfb80.js → Index-0a9e95d6.js} +6 -6
  39. package/dist/{Index-623bb993.js → Index-168790bc.js} +4 -4
  40. package/dist/{Index-ddf49640.js → Index-193a4968.js} +6 -6
  41. package/dist/{Index-7b1fd376.js → Index-23c1de88.js} +2 -2
  42. package/dist/{Index-9c5f5d6e.js → Index-44764dbb.js} +7 -7
  43. package/dist/{Index-5428e87c.js → Index-4cae2241.js} +9 -9
  44. package/dist/{Index-11d16691.js → Index-5688e5e1.js} +25 -25
  45. package/dist/{Index-8cba5dac.js → Index-610a54bf.js} +39 -39
  46. package/dist/{Index-6c782bef.js → Index-61786d22.js} +12 -12
  47. package/dist/{Index-3ccc66e4.js → Index-61b794ca.js} +4 -4
  48. package/dist/{Index-dd30bbc5.js → Index-6435f551.js} +12 -12
  49. package/dist/{Index-7f01697f.js → Index-7317f443.js} +7 -7
  50. package/dist/{Index-ffc7dba1.js → Index-7a56c885.js} +5 -5
  51. package/dist/{Index-dca28212.js → Index-81eeecba.js} +2 -2
  52. package/dist/{Index-0bbbe1cf.js → Index-83597574.js} +11 -11
  53. package/dist/{Index-8ecb9aa4.js → Index-8b02f74f.js} +2 -2
  54. package/dist/{Index-b233276b.js → Index-8b57e293.js} +2 -2
  55. package/dist/{Index-039d9c9d.js → Index-901f2f68.js} +6 -6
  56. package/dist/{Index-0bd4a30c.js → Index-942a36d2.js} +6 -6
  57. package/dist/{Index-de93e029.js → Index-a0de23fe.js} +7 -7
  58. package/dist/{Index-c2b2ccd9.js → Index-a8b60741.js} +8 -8
  59. package/dist/{Index-8053871b.js → Index-a8faf552.js} +4 -4
  60. package/dist/{Index-8c4fd5b4.js → Index-abb29c87.js} +27 -27
  61. package/dist/{Index-8755440b.js → Index-ad024dc9.js} +5 -5
  62. package/dist/{Index-8eff4eae.js → Index-aecbccac.js} +2 -2
  63. package/dist/{Index-0022bc40.js → Index-c5b9ad7f.js} +4 -4
  64. package/dist/{Index-341f9388.js → Index-cb10ca9b.js} +8 -8
  65. package/dist/{Index-f9063054.js → Index-cb1efaaa.js} +7 -7
  66. package/dist/{Index-2ecefac2.js → Index-d2d40188.js} +4 -4
  67. package/dist/{Index-95f0dd2f.js → Index-d56d4b7b.js} +19 -19
  68. package/dist/{Index-0306a974.js → Index-d841c396.js} +12 -12
  69. package/dist/{Index-451f5485.js → Index-f3af647f.js} +5 -5
  70. package/dist/{Index-473d0fad.js → Index-f9a97c67.js} +3 -3
  71. package/dist/{InputToggleRow-533651e6.js → InputToggleRow-3bba2a55.js} +2 -2
  72. package/dist/IsPremiumPreStep-1657f1ce.js +2443 -0
  73. package/dist/{MediaWrapper-388589e5.js → MediaWrapper-574eca05.js} +3 -3
  74. package/dist/{NotBindingText-b833c49b.js → NotBindingText-f2acdb51.js} +2 -2
  75. package/dist/{PackageGroup-41b2d524.js → PackageGroup-625d7093.js} +17 -17
  76. package/dist/{PdfTerms-461fcd9e.js → PdfTerms-05e6491e.js} +7 -7
  77. package/dist/{PdfViewer-099b598c.js → PdfViewer-4d32b0f1.js} +2 -2
  78. package/dist/{PlainHtml-37aa5b7b.js → PlainHtml-c2e1feca.js} +1 -1
  79. package/dist/PriceHeader-ce8bb22c.js +337 -0
  80. package/dist/{SearchApi-25909227.js → SearchApi-b7e03288.js} +2 -2
  81. package/dist/Setup-e92daff6.js +50 -0
  82. package/dist/{TermsSettings-c730ac70.js → TermsSettings-de33fad6.js} +10 -10
  83. package/dist/{ThemeColorRow-31d8285b.js → ThemeColorRow-52efe243.js} +3 -3
  84. package/dist/{ToggleBinding-1a98360f.js → ToggleBinding-ec8d351f.js} +3 -3
  85. package/dist/{UploadModal-e0a37c3e.js → UploadModal-463188b1.js} +4 -4
  86. package/dist/{VideoPlayerInput-4d7f302a.js → VideoPlayerInput-9314dfa5.js} +3 -3
  87. package/dist/{VideoPlayerSettings-81168a6b.js → VideoPlayerSettings-e7978498.js} +5 -5
  88. package/dist/{VideoSelectModal-dc429ff0.js → VideoSelectModal-72e1e4e2.js} +26 -26
  89. package/dist/{answerDocumentMixin-3ff2b25d.js → answerDocumentMixin-d65059b8.js} +3 -3
  90. package/dist/assets/article-options-10522.png +0 -0
  91. package/dist/assets/bg-base-11995.png +0 -0
  92. package/dist/assets/bg-pro-89155.png +0 -0
  93. package/dist/assets/bg-start-17372.png +0 -0
  94. package/dist/assets/blank-95062.png +0 -0
  95. package/dist/assets/block-options-11378.png +0 -0
  96. package/dist/assets/columnGallery.image-14820.png +0 -0
  97. package/dist/assets/doc-send-25589.png +0 -0
  98. package/dist/assets/drag-block-21107.png +0 -0
  99. package/dist/assets/headerCircularGradient.image-79345.png +0 -0
  100. package/dist/assets/roiCalculator.image-13673.png +0 -0
  101. package/dist/assets/text-bubble-21606.png +0 -0
  102. package/dist/{cssMode-c6b1b286.js → cssMode-88d0146a.js} +19 -15
  103. package/dist/{focusDrawerMixin-01b547f0.js → focusDrawerMixin-46eade80.js} +1 -1
  104. package/dist/{formComponentsInstall-9e33cb8f.js → formComponentsInstall-0cfab48e.js} +41 -36
  105. package/dist/{formValidationMixin-74c239ee.js → formValidationMixin-94fb3562.js} +1 -1
  106. package/dist/{freemarker2-076519a0.js → freemarker2-fb187d64.js} +23 -19
  107. package/dist/{handlebars-bb155717.js → handlebars-4a1a8024.js} +15 -11
  108. package/dist/{html-1cf008d9.js → html-00e90fc7.js} +18 -14
  109. package/dist/{htmlMode-bf67fa2b.js → htmlMode-cfbebdc7.js} +23 -19
  110. package/dist/{index-7097f05c.js → index-7a30802a.js} +13 -13
  111. package/dist/{index-908333a3.js → index-93fd29b3.js} +9 -9
  112. package/dist/{index-0f09ca1c.js → index-de7702a8.js} +10 -10
  113. package/dist/index-e9d870d0.js +17 -0
  114. package/dist/index.es.js +4 -4
  115. package/dist/index.umd.js +585 -588
  116. package/dist/{javascript-b98377f9.js → javascript-3213b923.js} +15 -11
  117. package/dist/{jsonMode-e9595a57.js → jsonMode-afc781d8.js} +23 -19
  118. package/dist/{liquid-b60636e3.js → liquid-dc5a4df5.js} +18 -14
  119. package/dist/{main-cf622dd3.js → main-abeba7c1.js} +30552 -30687
  120. package/dist/{mapFormMixin-490a1765.js → mapFormMixin-e82f943f.js} +1 -1
  121. package/dist/{publicSenderState-6b369e21.js → publicSenderState-2f11c080.js} +1 -1
  122. package/dist/{python-4e4d18f5.js → python-4bce1745.js} +15 -11
  123. package/dist/{razor-63ead89f.js → razor-f57062fd.js} +22 -18
  124. package/dist/{simplebar.min-3f1edc12.js → simplebar.min-07c0e6b7.js} +1 -1
  125. package/dist/style.css +2 -2
  126. package/dist/template-3600893b.js +528 -0
  127. package/dist/{throttle-2b45d29c.js → throttle-1bf5bb97.js} +2 -2
  128. package/dist/{tinycolor-9f3cc25c.js → tinycolor-0084a04e.js} +1 -1
  129. package/dist/{tippy.esm-dec03596.js → tippy.esm-2bcbed04.js} +7 -7
  130. package/dist/{tsMode-e93504e4.js → tsMode-c0486e4e.js} +19 -15
  131. package/dist/{typescript-111230d0.js → typescript-50a48698.js} +15 -11
  132. package/dist/{utils-fb02e603.js → utils-d907da71.js} +1 -1
  133. package/dist/{vuedraggable.umd-f2d6d3e3.js → vuedraggable.umd-c326d90c.js} +48 -48
  134. package/dist/{xml-987e33cc.js → xml-0ef7a70a.js} +18 -14
  135. package/package.json +8 -10
  136. package/.env +0 -12
  137. package/dist/DocAnswer-081e8239.js +0 -33
  138. package/dist/DocForm-c69281fc.js +0 -7062
  139. package/dist/IsPremiumPreStep-8d46fadc.js +0 -2349
  140. package/dist/PriceHeader-41c48787.js +0 -337
  141. package/dist/index-e37214e9.js +0 -14
  142. package/dist/template-66eba036.js +0 -526
  143. package/jsconfig.json +0 -11
  144. package/postcss.config.cjs +0 -6
  145. package/stats.html +0 -4044
  146. package/tailwind.config.cjs +0 -26
  147. 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
- };
@@ -1,14 +0,0 @@
1
- import { C as e, P as u, a as P, I as C, s as I } from "./IsPremiumPreStep-8d46fadc.js";
2
- import "./main-cf622dd3.js";
3
- import "./vuex.esm-4a0fff7c.js";
4
- import "./anime.es-e284c852.js";
5
- import "./index-0f09ca1c.js";
6
- import "./index-805c56e4.js";
7
- import "./regions-29ee6964.js";
8
- export {
9
- e as CalloutLegacy,
10
- u as Checkout,
11
- P as IsPremium,
12
- C as IsPremiumPreStep,
13
- I as stripeMixin
14
- };