@cling-se/widget 0.9.4 → 0.9.5

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 (145) hide show
  1. package/dist/{AddClientCallout-d472aa84.js → AddClientCallout-e4e9874f.js} +5 -5
  2. package/dist/{AnswerModal-06487437.js → AnswerModal-acd3b9c0.js} +248 -248
  3. package/dist/{AttachmentItem-d98488ee.js → AttachmentItem-34e91526.js} +8 -8
  4. package/dist/{BaseDatePicker-8c098701.js → BaseDatePicker-581297bc.js} +43 -43
  5. package/dist/{BaseInput-2723d613.js → BaseInput-29d88150.js} +1 -1
  6. package/dist/{BaseUpload-996d74b3.js → BaseUpload-84d3b68b.js} +3 -3
  7. package/dist/{BlockMedia-00907fb6.js → BlockMedia-319932b8.js} +1 -1
  8. package/dist/{CCallout-ffa95028.js → CCallout-88ae9c08.js} +6 -6
  9. package/dist/{CDropdownItem-74672842.js → CDropdownItem-d46bf062.js} +76 -75
  10. package/dist/{CField-06dd50f1.js → CField-be05883b.js} +1 -1
  11. package/dist/{CSlider.vue_vue_type_style_index_0_lang-f49d85e0.js → CSlider.vue_vue_type_style_index_0_lang-df4c839e.js} +1 -1
  12. package/dist/{ClientAutocomplete-f65643dd.js → ClientAutocomplete-68f76bfc.js} +4 -4
  13. package/dist/{ClientModal-d276aabd.js → ClientModal-73086005.js} +16 -16
  14. package/dist/{ColorPicker-4f6b70af.js → ColorPicker-11ee76f0.js} +2 -2
  15. package/dist/{CompanyModal-30c54ce3.js → CompanyModal-0fec4480.js} +8 -8
  16. package/dist/{ContentWrapper-d5653fef.js → ContentWrapper-fba78b6f.js} +19 -19
  17. package/dist/{CoverBlockSettings-2335f3a8.js → CoverBlockSettings-7ffa15b1.js} +19 -19
  18. package/dist/{DocForm-9ca24de4.js → DocForm-e56b3a0c.js} +1190 -819
  19. package/dist/{DocFormSend-d0c6fa1d.js → DocFormSend-cdc4eaf8.js} +14 -14
  20. package/dist/{DocModalBase-f4915a62.js → DocModalBase-e473b946.js} +4 -4
  21. package/dist/DocPrint-6d8b1f14.js +222 -0
  22. package/dist/{DocReceipt-d192000e.js → DocReceipt-c8a543f8.js} +1 -1
  23. package/dist/{DocSendReminder-06d5b34c.js → DocSendReminder-70effa09.js} +1 -1
  24. package/dist/{DocTextEditor-c6d1df3c.js → DocTextEditor-cce51e7c.js} +19 -19
  25. package/dist/{DocTimeline-b4c20f93.js → DocTimeline-c2cbd773.js} +11 -11
  26. package/dist/{DocumentClient-c2319f00.js → DocumentClient-611c8c1c.js} +8 -6
  27. package/dist/{formValidationMixin-4920ab53.js → DocumentLayout-86c367d1.js} +1617 -1709
  28. package/dist/{DocumentLogotype-1efd1ce9.js → DocumentLogotype-441a9fdb.js} +3 -3
  29. package/dist/{EmbedInput-654c0477.js → EmbedInput-a5938c25.js} +2 -2
  30. package/dist/{EmbedSettings-b81ec734.js → EmbedSettings-141ab53c.js} +10 -10
  31. package/dist/ErrorCallout-7dea37df.js +30 -0
  32. package/dist/{FilePreviewModal-895bd1bd.js → FilePreviewModal-875fd8c9.js} +8 -7
  33. package/dist/{HeaderSettings-c6dac755.js → HeaderSettings-0364b6df.js} +29 -29
  34. package/dist/{ImageSelectModal-7cece54e.js → ImageSelectModal-2d3a69db.js} +11 -11
  35. package/dist/{ImageUploadWrapper-53afd31d.js → ImageUploadWrapper-7c70045f.js} +3 -3
  36. package/dist/{Index-f935c492.js → Index-006a27da.js} +10 -10
  37. package/dist/{Index-6ef78b7a.js → Index-0313a553.js} +2 -2
  38. package/dist/{Index-9aaf8b90.js → Index-06bd31c3.js} +26 -26
  39. package/dist/Index-07ae23ce.js +54 -0
  40. package/dist/{Index-7443e91c.js → Index-0f4c9eb4.js} +34 -34
  41. package/dist/{Index-c4de05aa.js → Index-1e0cf88a.js} +10 -9
  42. package/dist/{Index-d45a1eff.js → Index-1fc54467.js} +4 -4
  43. package/dist/{Index-e749f6f1.js → Index-205dd368.js} +14 -14
  44. package/dist/{Index-34c84bab.js → Index-245f88ff.js} +10 -10
  45. package/dist/{Index-d8879ca9.js → Index-28bdb859.js} +2 -2
  46. package/dist/{Index-60fc8a6e.js → Index-2a0c06b1.js} +3 -3
  47. package/dist/{Index-63805642.js → Index-3d84a32c.js} +9 -9
  48. package/dist/{Index-66c8cbfa.js → Index-418c517f.js} +4 -4
  49. package/dist/{Index-e45a0c32.js → Index-5196628a.js} +27 -27
  50. package/dist/{Index-61f7dc92.js → Index-532b8844.js} +2 -2
  51. package/dist/{Index-b14d0f03.js → Index-53348c92.js} +4 -4
  52. package/dist/{Index-9233cc83.js → Index-54962a1e.js} +15 -15
  53. package/dist/{Index-701f0d05.js → Index-5de564da.js} +2 -2
  54. package/dist/{Index-c67218ce.js → Index-6f957f7e.js} +15 -15
  55. package/dist/{Index-98e8bb86.js → Index-710d1132.js} +8 -8
  56. package/dist/{Index-8bca2d87.js → Index-7a2f20fd.js} +9 -9
  57. package/dist/{Index-1d361d01.js → Index-818ef607.js} +4 -4
  58. package/dist/Index-875e7805.js +79 -0
  59. package/dist/{Index-82574a41.js → Index-889b6a45.js} +18 -19
  60. package/dist/{Index-82b5de12.js → Index-8975cd1e.js} +4 -4
  61. package/dist/{Index-1a7e98d7.js → Index-affdb14c.js} +11 -10
  62. package/dist/{Index-01c63c88.js → Index-b80ab22f.js} +2 -2
  63. package/dist/{Index-5e35f4a2.js → Index-ba48e68b.js} +8 -8
  64. package/dist/{Index-caf5cf44.js → Index-beb43a1a.js} +94 -94
  65. package/dist/{Index-b15cfd62.js → Index-c746dc64.js} +13 -13
  66. package/dist/{Index-2535f58f.js → Index-cf54ef50.js} +2 -2
  67. package/dist/{Index-c7e68382.js → Index-dbf5c34c.js} +4 -4
  68. package/dist/{Index-5cc51230.js → Index-fa01557d.js} +12 -12
  69. package/dist/{Index-cd76b120.js → Index-ff60354c.js} +7 -7
  70. package/dist/{InputToggleRow-9d8a7da4.js → InputToggleRow-c520bed9.js} +5 -5
  71. package/dist/IsPremiumPreStep-d4739d6a.js +2443 -0
  72. package/dist/{MediaWrapper-d4a4b66f.js → MediaWrapper-722723f7.js} +3 -3
  73. package/dist/{NotBindingText-b199006c.js → NotBindingText-613399b6.js} +2 -2
  74. package/dist/{PackageGroup-37ac99b1.js → PackageGroup-1085c76c.js} +56 -56
  75. package/dist/{PdfTerms-8b52bb6e.js → PdfTerms-f98a6f75.js} +8 -7
  76. package/dist/{PdfViewer-38bd8439.js → PdfViewer-096bbf00.js} +5 -4
  77. package/dist/{PlainHtml-9174cbf6.js → PlainHtml-752bc8d6.js} +1 -1
  78. package/dist/PriceHeader-e25df5eb.js +337 -0
  79. package/dist/{SearchApi-2e286be6.js → SearchApi-20629627.js} +2 -2
  80. package/dist/{TermsSettings-c74eec79.js → TermsSettings-4cc4a9ee.js} +11 -11
  81. package/dist/{ThemeColorRow-3558367b.js → ThemeColorRow-c292abc6.js} +3 -3
  82. package/dist/{ToggleBinding-6c9c1ac3.js → ToggleBinding-406175fb.js} +3 -3
  83. package/dist/{UploadModal-6d0abd77.js → UploadModal-0cbd0c8f.js} +16 -16
  84. package/dist/{VideoPlayerInput-77cd86aa.js → VideoPlayerInput-d7b5fe4b.js} +3 -3
  85. package/dist/{VideoPlayerSettings-b7eb781c.js → VideoPlayerSettings-51c75143.js} +12 -12
  86. package/dist/VideoSelectModal-e34cde4b.js +111 -0
  87. package/dist/{answerDocumentMixin-66023e62.js → answerDocumentMixin-574c5304.js} +3 -3
  88. package/dist/assets/article-options-10291.png +0 -0
  89. package/dist/assets/bg-base-13048.png +0 -0
  90. package/dist/assets/bg-pro-81076.png +0 -0
  91. package/dist/assets/bg-start-20630.png +0 -0
  92. package/dist/assets/blank-10674.png +0 -0
  93. package/dist/assets/block-options-17322.png +0 -0
  94. package/dist/assets/columnGallery.image-24825.png +0 -0
  95. package/dist/assets/doc-send-94456.png +0 -0
  96. package/dist/assets/drag-block-17194.png +0 -0
  97. package/dist/assets/headerCircularGradient.image-13878.png +0 -0
  98. package/dist/assets/roiCalculator.image-14704.png +0 -0
  99. package/dist/assets/text-bubble-53861.png +0 -0
  100. package/dist/{cssMode-8552fc56.js → cssMode-eda08630.js} +19 -15
  101. package/dist/dom-068d1a7b.js +59 -0
  102. package/dist/{focusDrawerMixin-67462262.js → focusDrawerMixin-72f8dd7a.js} +1 -1
  103. package/dist/{formComponentsInstall-ad9c2a83.js → formComponentsInstall-3f1c6477.js} +40 -40
  104. package/dist/formValidationMixin-d4e84872.js +49 -0
  105. package/dist/{freemarker2-7e10a65d.js → freemarker2-42cdfba5.js} +23 -19
  106. package/dist/{handlebars-8045bfa8.js → handlebars-b4515777.js} +15 -11
  107. package/dist/{html-8afcb633.js → html-ea5d1845.js} +18 -14
  108. package/dist/{htmlMode-1a2d1b48.js → htmlMode-1cc3531d.js} +23 -19
  109. package/dist/{index-f805bfce.js → index-07377b76.js} +45 -45
  110. package/dist/index-676b9274.js +17 -0
  111. package/dist/{index-bf93d7c2.js → index-762349d7.js} +7 -7
  112. package/dist/{index-3d6d7a03.js → index-7adda710.js} +31 -31
  113. package/dist/index.es.js +8 -8
  114. package/dist/index.umd.js +537 -533
  115. package/dist/{javascript-dad5561e.js → javascript-185ef2e0.js} +15 -11
  116. package/dist/{jsonMode-ce09245f.js → jsonMode-59ea4e99.js} +23 -19
  117. package/dist/{liquid-05247459.js → liquid-517f2a7c.js} +18 -14
  118. package/dist/{main-04025a56.js → main-95207159.js} +15380 -12891
  119. package/dist/{mapFormMixin-8d073f99.js → mapFormMixin-a245a297.js} +1 -1
  120. package/dist/{publicSenderState-97108de1.js → publicSenderState-bea5980b.js} +1 -1
  121. package/dist/{python-3f3513c5.js → python-eb6703d8.js} +15 -11
  122. package/dist/{razor-1f3e9c4e.js → razor-4c5b7deb.js} +22 -18
  123. package/dist/simplebar.min-97b539d6.js +71 -0
  124. package/dist/style.css +2 -2
  125. package/dist/template-b3af7583.js +528 -0
  126. package/dist/{throttle-a2c1f34d.js → throttle-a0ce8f66.js} +2 -2
  127. package/dist/{tinycolor-88fa380f.js → tinycolor-65e7dc2e.js} +1 -1
  128. package/dist/{FormInputRow-9819eb71.js → tippy.esm-3c111ba9.js} +285 -285
  129. package/dist/{tsMode-4c026047.js → tsMode-a4a0e653.js} +19 -15
  130. package/dist/{typescript-baf56f67.js → typescript-aeab7849.js} +15 -11
  131. package/dist/{utils-6670dea6.js → utils-580c7144.js} +1 -1
  132. package/dist/{vuedraggable.umd-d7138234.js → vuedraggable.umd-2c22e5f8.js} +41 -41
  133. package/dist/{xml-ffc6146a.js → xml-098907e6.js} +18 -14
  134. package/package.json +3 -2
  135. package/stats.html +1 -1
  136. package/vite-plugin-library-asset-external/index.js +134 -0
  137. package/dist/ErrorCallout-60d0b3ab.js +0 -30
  138. package/dist/Index-b020a80c.js +0 -47
  139. package/dist/Index-e80f5f9c.js +0 -79
  140. package/dist/IsPremiumPreStep-3a087524.js +0 -1919
  141. package/dist/PriceHeader-e357afe9.js +0 -336
  142. package/dist/VideoSelectModal-d2299552.js +0 -111
  143. package/dist/index-c48c5eb4.js +0 -14
  144. package/dist/simplebar.min-3af55aab.js +0 -2429
  145. package/dist/template-42a1d852.js +0 -526
@@ -1,336 +0,0 @@
1
- import { m as n } from "./mapFormMixin-8d073f99.js";
2
- import { B as l } from "./BlockMedia-00907fb6.js";
3
- import { n as c, b as a, o as d, W as u } from "./main-04025a56.js";
4
- import { T as m } from "./DocTextEditor-c6d1df3c.js";
5
- import { i as p } from "./i18nMessages-45c6bfd6.js";
6
- import { t as _ } from "./tinycolor-88fa380f.js";
7
- import { s as y } from "./formValidationMixin-4920ab53.js";
8
- import "./color-71c20583.js";
9
- import "./FormInputRow-9819eb71.js";
10
- import "./ColorPicker-4f6b70af.js";
11
- import "./CDropdownItem-74672842.js";
12
- import "./CSlider.vue_vue_type_style_index_0_lang-f49d85e0.js";
13
- import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
14
- const h = {
15
- name: "SummaryTop",
16
- i18nOptions: {
17
- namespaces: "summaryTop",
18
- messages: p
19
- },
20
- components: {
21
- TextEditor: m,
22
- DocumentLogotype: () => import("./DocumentLogotype-1efd1ce9.js")
23
- },
24
- inject: ["parentSize"],
25
- mixins: [n([])],
26
- props: {
27
- showLogo: {
28
- type: Boolean,
29
- default: !0
30
- },
31
- logotype: {
32
- type: String,
33
- default: null
34
- },
35
- companyLogotype: {
36
- type: String,
37
- default: null
38
- },
39
- senderName: {
40
- type: String,
41
- default: null
42
- },
43
- docName: {
44
- type: String,
45
- default: null
46
- },
47
- docType: {
48
- type: String,
49
- required: !0
50
- },
51
- docNumber: {
52
- type: [Number, String],
53
- default: null
54
- },
55
- sentAt: {
56
- type: [String, Number],
57
- default: null
58
- // required: true,
59
- },
60
- expiresAt: {
61
- type: String,
62
- default: null
63
- },
64
- estimatedTime: {
65
- type: String,
66
- default: null
67
- },
68
- validator: {
69
- type: Object,
70
- default: () => ({})
71
- },
72
- hasHover: {
73
- type: Boolean,
74
- default: !1
75
- }
76
- },
77
- computed: {
78
- logotypeListeners() {
79
- return {
80
- ...this.$listeners,
81
- input: (i) => this.$emit("update:logotype", i)
82
- };
83
- }
84
- }
85
- };
86
- var g = function() {
87
- var t = this, e = t._self._c;
88
- 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": "2.5rem" } }, [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: {
89
- bulletList: !1,
90
- heading: [1, 2, 3],
91
- bold: !1,
92
- link: !1,
93
- underline: !1,
94
- blockquote: !0,
95
- table: !1
96
- }, unstyled: "", static: "" }, on: { input: function(s) {
97
- return t.$emit("update:doc-name", s);
98
- } } }) : 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)])]);
99
- }, f = [], v = /* @__PURE__ */ c(
100
- h,
101
- g,
102
- f,
103
- !1,
104
- null,
105
- "68d8a9dc",
106
- null,
107
- null
108
- );
109
- const S = v.exports;
110
- const x = {
111
- name: "SummaryBottom",
112
- mixins: [n([])],
113
- props: {
114
- base: {
115
- type: Object,
116
- default: null
117
- },
118
- options: {
119
- type: Array,
120
- default: () => []
121
- },
122
- backgroundColor: {
123
- type: String,
124
- default: "#4c576d"
125
- },
126
- documentCurrency: {
127
- type: String,
128
- required: !0
129
- },
130
- vatType: {
131
- type: String,
132
- required: !0
133
- }
134
- },
135
- inject: ["parentSize"],
136
- data() {
137
- return {
138
- get: a,
139
- tinycolor: _
140
- };
141
- },
142
- computed: {
143
- prices() {
144
- return a(this, "base.prices") || {};
145
- },
146
- isIndivid() {
147
- return a(this.prices, "helpers.isIndivid", !0);
148
- },
149
- showIncVat() {
150
- return this.isIndivid;
151
- },
152
- priceTotal() {
153
- return this.isIndivid ? a(this.prices, "total", null) : a(this.prices, "subTotal", null);
154
- },
155
- priceType() {
156
- return this.prices.type || ["fixed"];
157
- },
158
- currency() {
159
- return this.prices.currency || this.documentCurrency;
160
- },
161
- openAccMaxPrice() {
162
- return this.prices.maxTotal || null;
163
- },
164
- houseWorkType() {
165
- return a(this.prices, "region.houseWorkType", null);
166
- },
167
- isReverseVat() {
168
- return a(this.prices, "region.reverseVat", !1);
169
- },
170
- priceTypeString() {
171
- 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();
172
- },
173
- priceDeductionVatString() {
174
- let i = "";
175
- if (this.isReverseVat && !this.showIncVat) {
176
- const t = this.priceFormat(0, { currency: this.currency, showZero: !0 });
177
- return i = this._document.$t("summaryBottom.reverseVat", { amount: t }), i;
178
- }
179
- 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();
180
- },
181
- backgroundSecondary() {
182
- if (!this.isSmallScreen)
183
- return { backgroundColor: "transparent" };
184
- 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];
185
- return {
186
- backgroundColor: `hsla(${i}, ${t ** 0.9}%, ${e ** 0.9}%, ${s})`
187
- };
188
- },
189
- isSmallScreen() {
190
- return this.parentSize.width <= 576;
191
- }
192
- },
193
- methods: {
194
- priceFormat: d,
195
- scrollToPricing() {
196
- const i = document.querySelector("#price");
197
- i && y(i);
198
- }
199
- }
200
- };
201
- var b = function() {
202
- var t = this, e = t._self._c;
203
- return e("section", { staticClass: "summary-bottom-root" }, [e("div", { staticClass: "summary-bottom", style: [
204
- {
205
- backgroundColor: t.backgroundColor,
206
- color: t.tinycolor.readability(t.backgroundColor, "#FFF") > 2.2 ? "#FFF" : "#000"
207
- },
208
- t.options.length && {
209
- overflow: "hidden",
210
- padding: 0
211
- }
212
- ] }, [t.options.length ? e("div", { staticClass: "flex items-center justify-end w-full", staticStyle: { height: "108px" } }, [e("div", { staticStyle: { "text-align": "right", padding: "2rem" } }, [e("div", { staticStyle: { "font-size": "1.5rem", "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: "1rem 2rem", height: "100%", display: "inline-flex" } }, [t.base ? e("div", { staticStyle: { display: "flex", "flex-direction": "column", "align-items": "flex-start", "justify-content": "center", padding: "1rem 1rem", "text-align": "left" } }, [e("div", { staticStyle: { "font-weight": "900", "font-size": "1.5rem" } }, [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: "2rem", display: "inline-flex", "align-items": "center", "justify-content": "center", "font-weight": "900", "font-size": "2.5rem" } }, [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: "1.5rem", 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: [
213
- {
214
- column: t.isSmallScreen,
215
- sm: t.isSmallScreen
216
- }
217
- ], 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": "2rem", "font-weight": "900", "letter-spacing": "1px", "line-height": "1", "padding-bottom": "0.3rem" } }, [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()])])]);
218
- }, C = [], $ = /* @__PURE__ */ c(
219
- x,
220
- b,
221
- C,
222
- !1,
223
- null,
224
- "dd3b66e4",
225
- null,
226
- null
227
- );
228
- const w = $.exports;
229
- const T = {
230
- name: "PriceHeader",
231
- components: {
232
- SummaryTop: S,
233
- SummaryBottom: w,
234
- BlockMedia: l
235
- },
236
- mixins: [n([
237
- "media",
238
- "backgroundColor",
239
- "documentName",
240
- "showPriceSummary",
241
- "showLogo",
242
- "logotype"
243
- ])],
244
- props: {
245
- _document: {
246
- type: Object,
247
- default: () => ({})
248
- },
249
- _value: {
250
- type: Object,
251
- default: () => ({})
252
- },
253
- hasHover: {
254
- type: Boolean,
255
- default: !1
256
- }
257
- },
258
- computed: {
259
- internalName: {
260
- get() {
261
- return this.documentName;
262
- },
263
- set(i) {
264
- this.documentName = i, this.$emit("input", { key: "data.name", value: u(i).trim().slice(0, 255) });
265
- }
266
- },
267
- company() {
268
- return this._document.sender.company;
269
- },
270
- prices() {
271
- return this._document.prices;
272
- },
273
- estimatedTimeString() {
274
- var e, s;
275
- const { value: i, unitType: t } = ((s = (e = this._document) == null ? void 0 : e.data) == null ? void 0 : s.estimatedTime) || {};
276
- return !i || !t ? null : this.$tc(`${t}`, { count: i });
277
- },
278
- sendAtShowDate() {
279
- const { sentAt: i, scheduledFirstDelivery: t } = this._document;
280
- return i || (t ? t.sendAt : null);
281
- },
282
- summaryBottom() {
283
- var s;
284
- let i = {
285
- show: !1,
286
- backgroundColor: this.backgroundColor || this._document.theme.priceSummaryBackground,
287
- documentCurrency: this._document.currency,
288
- vatType: this._document.vatType
289
- }, { showPriceSummary: t } = this;
290
- typeof t != "boolean" && ({ showPriceSummary: t } = this._document.theme);
291
- const e = ((s = this._document.packageGroups) == null ? void 0 : s.packages) || [];
292
- return e.length > 1 ? i = {
293
- ...i,
294
- show: t,
295
- base: { prices: this.prices },
296
- options: e.filter(({ toggable: r }) => r).map(({ prices: r }) => ({ prices: r }))
297
- } : i = {
298
- ...i,
299
- show: t && this._document.readPrices && (this.prices.total || this.prices.type.some((r) => ["openAccMaxPrice", "openAcc"].includes(r))),
300
- base: { prices: this.prices }
301
- }, this.canEdit && t && (i.show = !0), i.documentCurrency || (i.show = !1), i;
302
- }
303
- }
304
- };
305
- var k = function() {
306
- var s, r;
307
- var t = this, e = t._self._c;
308
- return e("div", [e("div", { staticClass: "doc-jumbotron-wrapper" }, [e("BlockMedia", { staticClass: "price-media-wrapper", attrs: { media: {
309
- ...t.media,
310
- resourceUrl: ((s = t.media) == null ? void 0 : s.resourceUrl) || t._document.theme.background,
311
- overlayColor: ((r = t.media) == null ? void 0 : r.overlayColor) || t._document.theme.backgroundFilter
312
- } } }), 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) {
313
- t.showLogo = o;
314
- }, "update:show-logo": function(o) {
315
- t.showLogo = o;
316
- }, "update:logotype": function(o) {
317
- t.logotype = o;
318
- }, "update:docName": function(o) {
319
- t.internalName = o;
320
- }, "update:doc-name": function(o) {
321
- t.internalName = o;
322
- } } })], 1), t.summaryBottom.show ? e("SummaryBottom", t._b({ attrs: { _document: t._document } }, "SummaryBottom", t.summaryBottom, !1)) : t._e()], 1);
323
- }, A = [], B = /* @__PURE__ */ c(
324
- T,
325
- k,
326
- A,
327
- !1,
328
- null,
329
- "d570ff60",
330
- null,
331
- null
332
- );
333
- const E = B.exports;
334
- export {
335
- E as default
336
- };
@@ -1,111 +0,0 @@
1
- import { j as h, n as v, h as g } from "./main-04025a56.js";
2
- import { B as _, a as x } from "./index-bf93d7c2.js";
3
- import y from "./VideoPlayerInput-77cd86aa.js";
4
- import "./CDropdownItem-74672842.js";
5
- import "./throttle-a2c1f34d.js";
6
- import "./formValidationMixin-4920ab53.js";
7
- import "./simplebar.min-3af55aab.js";
8
- import "./utils-6670dea6.js";
9
- const V = h.pexels.id, w = {
10
- name: "VideoSelectModal",
11
- i18nOptions: {
12
- namespaces: "videoSelectModal",
13
- messages: {
14
- en: {
15
- creditVideos: "Videos from {{thing}}",
16
- tabLink: "Use link"
17
- },
18
- sv: {
19
- creditVideos: "Videor från {{thing}}",
20
- tabLink: "Egen länk"
21
- }
22
- }
23
- },
24
- components: {
25
- BackgroundModal: _,
26
- BackgroundList: x,
27
- VideoPlayerInput: y
28
- },
29
- data() {
30
- return {
31
- activeTab: "pexels",
32
- selectedVideo: null,
33
- customVideo: null
34
- };
35
- },
36
- methods: {
37
- async fetch({ query: s, page: t }) {
38
- const { data: e } = await g.get("https://api.pexels.com/videos/search", {
39
- headers: {
40
- Authorization: V
41
- },
42
- params: {
43
- page: t,
44
- per_page: 12,
45
- query: s
46
- }
47
- }), o = (a, i) => a.height < i.height || a.width < i.width ? -1 : 1, u = (a) => (a.find(({ height: i }) => i > 1e3 && i < 1200) || {}).link;
48
- return {
49
- items: (e.videos || []).map(({
50
- id: a,
51
- image: i,
52
- video_files: c = [],
53
- user: d
54
- }) => {
55
- const { sd: m, hd: p } = (c || []).sort(o).reduce((r, n) => (r[n.quality] && n.link && r[n.quality].push(n.link), r), { sd: [], hd: [] }), [f] = m;
56
- let l = u(c);
57
- return l || ([l] = p.length ? p : m.slice(-1)), {
58
- id: `${a}`,
59
- image: i,
60
- minImage: i,
61
- video: l,
62
- minVideo: f,
63
- userName: d.name,
64
- userLink: d.link
65
- };
66
- }),
67
- total: e.total_results
68
- };
69
- },
70
- selectVideo(s) {
71
- const {
72
- id: t,
73
- image: e,
74
- video: o
75
- } = s || {};
76
- this.selectedVideo = {
77
- id: t,
78
- url: o,
79
- thumbnail: e,
80
- provider: "pexels"
81
- };
82
- },
83
- onSave() {
84
- const s = this.activeTab === "pexels" ? this.selectedVideo : this.customVideo;
85
- this.$emit("input", s), this.$parent && this.$parent.$emit("input", s), this.$emit("close");
86
- }
87
- }
88
- };
89
- var b = function() {
90
- var t = this, e = t._self._c;
91
- return e("BackgroundModal", [e("div", { staticClass: "flex items-center justify-center w-full", staticStyle: { padding: "0.25rem 1rem", "border-bottom": "1px solid hsl(0, 0%, 88%)" }, attrs: { slot: "header" }, slot: "header" }, [e("CButton", { staticStyle: { "font-size": "15px", "font-weight": "700", opacity: "0.5", "box-shadow": "none" }, style: t.activeTab === "pexels" && { opacity: 1 }, on: { click: function(o) {
92
- t.activeTab = "pexels";
93
- } } }, [e("span", { staticStyle: { display: "inline-flex", "align-items": "center" } }, [e("svg", { staticStyle: { "margin-right": "0.5rem" }, attrs: { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", viewBox: "0 0 32 32" } }, [e("path", { attrs: { d: "M2 0h28a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2z", fill: "#05A081" } }), e("path", { attrs: { d: "M13 21h3.863v-3.752h1.167a3.124 3.124 0 1 0 0-6.248H13v10zm5.863 2H11V9h7.03a5.124 5.124 0 0 1 .833 10.18V23z", fill: "#fff" } })]), t._v(" " + t._s(t.$t("_common:video").capitalize()) + " ")])]), e("CButton", { staticStyle: { "font-size": "15px", "font-weight": "700", opacity: "0.5", "box-shadow": "none" }, style: t.activeTab === "customUrl" && { opacity: 1 }, on: { click: function(o) {
94
- t.activeTab = "customUrl";
95
- } } }, [e("span", { staticStyle: { display: "inline-flex", "align-items": "center" } }, [e("svg", { staticStyle: { "margin-right": "0.5rem" }, attrs: { width: "28", height: "28", xmlns: "http://www.w3.org/2000/svg", version: "1.1", x: "0", y: "0", "xml:space": "preserve", viewBox: "0 0 71.412 50" } }, [e("g", { attrs: { transform: "scale(.58824)" } }, [e("path", { attrs: { d: "M118.9 13.3c-1.4-5.2-5.5-9.3-10.7-10.7C98.7 0 60.7 0 60.7 0s-38 0-47.5 2.5C8.1 3.9 3.9 8.1 2.5 13.3 0 22.8 0 42.5 0 42.5s0 19.8 2.5 29.2C3.9 76.9 8 81 13.2 82.4 22.8 85 60.7 85 60.7 85s38 0 47.5-2.5c5.2-1.4 9.3-5.5 10.7-10.7 2.5-9.5 2.5-29.2 2.5-29.2s.1-19.8-2.5-29.3z", fill: "red", "fill-opacity": "1" } }), e("path", { attrs: { fill: "#fff", d: "M80.2 42.5L48.6 24.3v36.4z" } })])]), t._v(" " + t._s(t.$t("tabLink").capitalize()) + " ")])])], 1), t.activeTab === "pexels" ? e("BackgroundList", { attrs: { fetch: t.fetch, "credit-text": t.$t("creditVideos", { thing: "Pexels" }), "default-query": "nature" }, on: { select: t.selectVideo } }, [e("CButton", { staticStyle: { "margin-left": "0.5em" }, attrs: { slot: "footer", disable: !t.selectedVideo, type: "secondary" }, on: { click: t.onSave }, slot: "footer" }, [t._v(" " + t._s(t.$t("_common:save")) + " ")])], 1) : e("div", { staticClass: "flex flex-col items-center justify-center w-full" }, [e("div", { staticStyle: { "max-width": "500px", width: "100%", margin: "0 auto", "padding-top": "3rem" } }, [e("div", { staticStyle: { position: "relative", width: "100%", "padding-top": "56.25%", "background-color": "hsl(0, 0%, 95%)", "border-radius": "0.5em", "margin-bottom": "1.5rem" } }, [t.customVideo ? e("iframe", { staticClass: "custom-video-preview", attrs: { src: t.customVideo.url } }) : t._e()]), e("VideoPlayerInput", { attrs: { filled: !0, "video-options": { background: !0 } }, model: { value: t.customVideo, callback: function(o) {
96
- t.customVideo = o;
97
- }, expression: "customVideo" } }, [e("CButton", { attrs: { disable: !t.customVideo, type: "secondary" }, on: { click: t.onSave } }, [t._v(" " + t._s(t.$t("_common:save")) + " ")])], 1)], 1)])], 1);
98
- }, k = [], S = /* @__PURE__ */ v(
99
- w,
100
- b,
101
- k,
102
- !1,
103
- null,
104
- "184fafdd",
105
- null,
106
- null
107
- );
108
- const j = S.exports;
109
- export {
110
- j as default
111
- };
@@ -1,14 +0,0 @@
1
- import { C as e, P as u, a as P, I as C, s as I } from "./IsPremiumPreStep-3a087524.js";
2
- import "./main-04025a56.js";
3
- import "./vuex.esm-4a0fff7c.js";
4
- import "./anime.es-e284c852.js";
5
- import "./index-3d6d7a03.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
- };