@cling-se/widget 0.9.7 → 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.
Files changed (132) hide show
  1. package/.env +11 -11
  2. package/README.md +35 -35
  3. package/dist/{AddClientCallout-22eea733.js → AddClientCallout-98b5d2c9.js} +5 -5
  4. package/dist/{AnswerModal-7441b8d3.js → AnswerModal-995e7a87.js} +7 -7
  5. package/dist/{AttachmentItem-34cd96fc.js → AttachmentItem-331b9c1e.js} +4 -4
  6. package/dist/{BaseDatePicker-5fcfcdcb.js → BaseDatePicker-7f047527.js} +1 -1
  7. package/dist/{BaseInput-c9d37ee6.js → BaseInput-c79f0001.js} +1 -1
  8. package/dist/{BaseUpload-8c9116a1.js → BaseUpload-9402cc1b.js} +3 -3
  9. package/dist/{BlockMedia-c0637f45.js → BlockMedia-80a082ed.js} +2 -2
  10. package/dist/{CCallout-d5efd737.js → CCallout-bd314caa.js} +6 -6
  11. package/dist/{CDropdownItem-32216ea8.js → CDropdownItem-ab42f924.js} +5 -5
  12. package/dist/{CField-b58cafce.js → CField-6da7299b.js} +1 -1
  13. package/dist/{CSlider.vue_vue_type_style_index_0_lang-a2818d05.js → CSlider.vue_vue_type_style_index_0_lang-c70342a2.js} +1 -1
  14. package/dist/{ClientAutocomplete-1569a879.js → ClientAutocomplete-67fc253c.js} +6 -6
  15. package/dist/{ClientModal-4ff2f08c.js → ClientModal-1709e8c7.js} +5 -5
  16. package/dist/{ColorPicker-4a830e26.js → ColorPicker-4880a624.js} +2 -2
  17. package/dist/{CompanyModal-a6d69d5f.js → CompanyModal-dbe85884.js} +4 -4
  18. package/dist/{ContentWrapper-8579f277.js → ContentWrapper-a602cc3d.js} +14 -14
  19. package/dist/{CoverBlockSettings-4284e111.js → CoverBlockSettings-f37fe6e1.js} +18 -18
  20. package/dist/DocAnswer-081e8239.js +33 -0
  21. package/dist/{DocForm-28752d98.js → DocForm-c69281fc.js} +186 -144
  22. package/dist/{DocFormSend-b7253ff4.js → DocFormSend-c9b955b9.js} +19 -18
  23. package/dist/{DocModalBase-a4f82cb3.js → DocModalBase-8c238a59.js} +4 -4
  24. package/dist/{DocPrint-54e0d308.js → DocPrint-2a181ffb.js} +5 -5
  25. package/dist/{DocReceipt-622afb67.js → DocReceipt-00c0f631.js} +1 -1
  26. package/dist/{DocSendReminder-2a4639e1.js → DocSendReminder-9effd808.js} +1 -1
  27. package/dist/{DocTextEditor-a795ba8d.js → DocTextEditor-0c8a4782.js} +12 -12
  28. package/dist/{DocTimeline-ea007937.js → DocTimeline-be5e8b9d.js} +1 -1
  29. package/dist/{DocumentClient-79f10a0e.js → DocumentClient-13f55b25.js} +5 -5
  30. package/dist/{DocumentLayout-3882fade.js → DocumentLayout-2ff55f9f.js} +120 -120
  31. package/dist/{DocumentLogotype-3dd2408b.js → DocumentLogotype-80a2521a.js} +6 -6
  32. package/dist/{EmbedInput-a748d1e5.js → EmbedInput-8572a42b.js} +2 -2
  33. package/dist/{EmbedSettings-2505d3fb.js → EmbedSettings-1a60358e.js} +5 -5
  34. package/dist/{ErrorCallout-ca6aa8a6.js → ErrorCallout-84e8168b.js} +2 -2
  35. package/dist/{FilePreviewModal-fbc76085.js → FilePreviewModal-cdafbf1c.js} +5 -5
  36. package/dist/{HeaderSettings-66f76d2b.js → HeaderSettings-9f4d182b.js} +15 -15
  37. package/dist/{ImageSelectModal-96c98a50.js → ImageSelectModal-b97c8185.js} +10 -10
  38. package/dist/{ImageUploadWrapper-706252ad.js → ImageUploadWrapper-ebcdbc9e.js} +3 -3
  39. package/dist/{Index-782f6e43.js → Index-0022bc40.js} +4 -4
  40. package/dist/{Index-6d960f1a.js → Index-0306a974.js} +12 -12
  41. package/dist/{Index-a777a7b4.js → Index-039d9c9d.js} +6 -6
  42. package/dist/{Index-f9ec7827.js → Index-0bbbe1cf.js} +11 -11
  43. package/dist/{Index-aac38d76.js → Index-0bd4a30c.js} +6 -6
  44. package/dist/{Index-ebc0f1dd.js → Index-11d16691.js} +22 -22
  45. package/dist/{Index-451a4720.js → Index-2ecefac2.js} +4 -4
  46. package/dist/{Index-2b1c5d21.js → Index-341f9388.js} +8 -8
  47. package/dist/{Index-0615e8dd.js → Index-3ccc66e4.js} +4 -4
  48. package/dist/{Index-774c1760.js → Index-451f5485.js} +5 -5
  49. package/dist/{Index-57ccc476.js → Index-473d0fad.js} +3 -3
  50. package/dist/{Index-0cb341e6.js → Index-4bbfdb2e.js} +2 -2
  51. package/dist/{Index-cab451ea.js → Index-5428e87c.js} +11 -11
  52. package/dist/{Index-aec49119.js → Index-623bb993.js} +4 -4
  53. package/dist/{Index-170e6883.js → Index-6c782bef.js} +12 -12
  54. package/dist/{Index-89c23ed7.js → Index-7b1fd376.js} +2 -2
  55. package/dist/{Index-a86877c9.js → Index-7f01697f.js} +7 -7
  56. package/dist/{Index-030436a2.js → Index-8053871b.js} +4 -4
  57. package/dist/{Index-ee710141.js → Index-8755440b.js} +5 -5
  58. package/dist/{Index-583792c4.js → Index-8c4fd5b4.js} +27 -27
  59. package/dist/{Index-fdac03a0.js → Index-8cba5dac.js} +26 -26
  60. package/dist/{Index-63872178.js → Index-8ecb9aa4.js} +2 -2
  61. package/dist/{Index-54b05e33.js → Index-8eff4eae.js} +2 -2
  62. package/dist/{Index-52979620.js → Index-95f0dd2f.js} +19 -19
  63. package/dist/{Index-ec7fe5df.js → Index-9c5f5d6e.js} +7 -7
  64. package/dist/{Index-813e0a59.js → Index-b233276b.js} +2 -2
  65. package/dist/{Index-ea43ed06.js → Index-ba4cfb80.js} +6 -6
  66. package/dist/{Index-2af3cf93.js → Index-c2b2ccd9.js} +8 -8
  67. package/dist/{Index-4f976bd6.js → Index-dca28212.js} +2 -2
  68. package/dist/{Index-8e3a0d81.js → Index-dd30bbc5.js} +12 -12
  69. package/dist/{Index-2a568234.js → Index-ddf49640.js} +6 -6
  70. package/dist/{Index-3cfea400.js → Index-de93e029.js} +7 -7
  71. package/dist/{Index-d9307e92.js → Index-f9063054.js} +7 -7
  72. package/dist/{Index-cc243c40.js → Index-ffc7dba1.js} +5 -5
  73. package/dist/{InputToggleRow-3764a034.js → InputToggleRow-533651e6.js} +2 -2
  74. package/dist/{IsPremiumPreStep-310fc507.js → IsPremiumPreStep-8d46fadc.js} +248 -242
  75. package/dist/{MediaWrapper-ac4d559e.js → MediaWrapper-388589e5.js} +3 -3
  76. package/dist/{NotBindingText-9d926894.js → NotBindingText-b833c49b.js} +2 -2
  77. package/dist/{PackageGroup-11132495.js → PackageGroup-41b2d524.js} +15 -15
  78. package/dist/{PdfTerms-5567e1d9.js → PdfTerms-461fcd9e.js} +7 -7
  79. package/dist/{PdfViewer-6e5442ae.js → PdfViewer-099b598c.js} +2 -2
  80. package/dist/{PlainHtml-3a94783a.js → PlainHtml-37aa5b7b.js} +1 -1
  81. package/dist/PriceHeader-41c48787.js +337 -0
  82. package/dist/{SearchApi-66a3369e.js → SearchApi-25909227.js} +2 -2
  83. package/dist/{TermsSettings-42464249.js → TermsSettings-c730ac70.js} +10 -10
  84. package/dist/{ThemeColorRow-4c02f3cf.js → ThemeColorRow-31d8285b.js} +3 -3
  85. package/dist/{ToggleBinding-53a84127.js → ToggleBinding-1a98360f.js} +3 -3
  86. package/dist/{UploadModal-7d2c2dcc.js → UploadModal-e0a37c3e.js} +4 -4
  87. package/dist/{VideoPlayerInput-d53ffa5e.js → VideoPlayerInput-4d7f302a.js} +3 -3
  88. package/dist/{VideoPlayerSettings-d89173c1.js → VideoPlayerSettings-81168a6b.js} +5 -5
  89. package/dist/{VideoSelectModal-1b2f9e2f.js → VideoSelectModal-dc429ff0.js} +28 -28
  90. package/dist/{answerDocumentMixin-3e4ed95e.js → answerDocumentMixin-3ff2b25d.js} +3 -3
  91. package/dist/{cssMode-f680359e.js → cssMode-c6b1b286.js} +7 -7
  92. package/dist/{focusDrawerMixin-7cf9e926.js → focusDrawerMixin-01b547f0.js} +1 -1
  93. package/dist/{formComponentsInstall-60696be3.js → formComponentsInstall-9e33cb8f.js} +20 -20
  94. package/dist/{formValidationMixin-5d709c26.js → formValidationMixin-74c239ee.js} +1 -1
  95. package/dist/{freemarker2-06443b0a.js → freemarker2-076519a0.js} +7 -7
  96. package/dist/{handlebars-0d8766bf.js → handlebars-bb155717.js} +7 -7
  97. package/dist/{html-81ed4c26.js → html-1cf008d9.js} +7 -7
  98. package/dist/{htmlMode-3be0b9fd.js → htmlMode-bf67fa2b.js} +7 -7
  99. package/dist/{index-eab9b762.js → index-0f09ca1c.js} +1 -1
  100. package/dist/{index-fe745f0b.js → index-7097f05c.js} +10 -10
  101. package/dist/{index-3ca26b2c.js → index-908333a3.js} +9 -9
  102. package/dist/{index-7964f39c.js → index-e37214e9.js} +3 -3
  103. package/dist/index.es.js +3 -3
  104. package/dist/index.umd.js +496 -493
  105. package/dist/{javascript-da51eff4.js → javascript-b98377f9.js} +8 -8
  106. package/dist/{jsonMode-f69b77fa.js → jsonMode-e9595a57.js} +7 -7
  107. package/dist/{liquid-4c01bc35.js → liquid-b60636e3.js} +7 -7
  108. package/dist/{main-8c6aae3a.js → main-cf622dd3.js} +26108 -26001
  109. package/dist/{mapFormMixin-fe8972cd.js → mapFormMixin-490a1765.js} +1 -1
  110. package/dist/{publicSenderState-9cd2ff24.js → publicSenderState-6b369e21.js} +1 -1
  111. package/dist/{python-48563b51.js → python-4e4d18f5.js} +7 -7
  112. package/dist/{razor-3e2ef5a9.js → razor-63ead89f.js} +7 -7
  113. package/dist/{simplebar.min-baa28a2a.js → simplebar.min-3f1edc12.js} +1 -1
  114. package/dist/style.css +2 -2
  115. package/dist/{template-c64eadf9.js → template-66eba036.js} +1 -1
  116. package/dist/throttle-2b45d29c.js +18 -0
  117. package/dist/{tinycolor-c5753ad0.js → tinycolor-9f3cc25c.js} +1 -1
  118. package/dist/{tippy.esm-495f26e4.js → tippy.esm-dec03596.js} +7 -7
  119. package/dist/{tsMode-15587c3c.js → tsMode-e93504e4.js} +7 -7
  120. package/dist/{typescript-ebb43ca2.js → typescript-111230d0.js} +7 -7
  121. package/dist/{utils-8c0b7aab.js → utils-fb02e603.js} +1 -1
  122. package/dist/{vuedraggable.umd-45109ca7.js → vuedraggable.umd-f2d6d3e3.js} +1 -1
  123. package/dist/{xml-d34c22ca.js → xml-987e33cc.js} +7 -7
  124. package/jsconfig.json +11 -11
  125. package/package.json +4 -2
  126. package/postcss.config.cjs +6 -6
  127. package/stats.html +1 -1
  128. package/tailwind.config.cjs +26 -26
  129. package/vite-plugin-library-asset-external/index.js +134 -134
  130. package/dist/DocAnswer-bf72cfd4.js +0 -46
  131. package/dist/PriceHeader-c5053109.js +0 -337
  132. package/dist/throttle-f8302435.js +0 -18
@@ -1,337 +0,0 @@
1
- import { m as c } from "./mapFormMixin-fe8972cd.js";
2
- import { B as l } from "./BlockMedia-c0637f45.js";
3
- import { n, c as r, r as d, a1 as u } from "./main-8c6aae3a.js";
4
- import { T as m } from "./DocTextEditor-a795ba8d.js";
5
- import { i as p } from "./i18nMessages-45c6bfd6.js";
6
- import { t as _ } from "./tinycolor-c5753ad0.js";
7
- import { s as y } from "./dom-068d1a7b.js";
8
- import "./color-71c20583.js";
9
- import "./tippy.esm-495f26e4.js";
10
- import "./ColorPicker-4a830e26.js";
11
- import "./DocumentLayout-3882fade.js";
12
- import "./CDropdownItem-32216ea8.js";
13
- import "./CSlider.vue_vue_type_style_index_0_lang-a2818d05.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-3dd2408b.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-8c6aae3a.js";
2
- import { a as o } from "./CDropdownItem-32216ea8.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
- };