@cling-se/widget 0.9.16 → 0.9.18

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 (135) hide show
  1. package/dist/{AddClientCallout-1348821d.js → AddClientCallout-e8abe369.js} +5 -5
  2. package/dist/{AnswerModal-73bfc112.js → AnswerModal-09ffb221.js} +3 -3
  3. package/dist/{AttachmentItem-1b9e1170.js → AttachmentItem-110f93f7.js} +3 -3
  4. package/dist/{BaseDatePicker-1e3422da.js → BaseDatePicker-03ece6df.js} +1 -1
  5. package/dist/{BaseInput-70aa2f9d.js → BaseInput-295abce2.js} +1 -1
  6. package/dist/{BaseUpload-27cbe3b2.js → BaseUpload-7c1121f8.js} +2 -2
  7. package/dist/{BlockMedia-0f41fb43.js → BlockMedia-f95986a5.js} +1 -1
  8. package/dist/{CCallout-faf80dfb.js → CCallout-6ff50025.js} +2 -2
  9. package/dist/{CDropdownItem-13f6bf72.js → CDropdownItem-fa27c5e4.js} +1 -1
  10. package/dist/{CField-1aa7c4ab.js → CField-855c1d0a.js} +1 -1
  11. package/dist/{CSlider.vue_vue_type_style_index_0_lang-879e8c05.js → CSlider.vue_vue_type_style_index_0_lang-5d538988.js} +1 -1
  12. package/dist/{ClientAutocomplete-94a42966.js → ClientAutocomplete-a569db77.js} +2 -2
  13. package/dist/{ClientModal-b3ec6c4e.js → ClientModal-708de29c.js} +10 -12
  14. package/dist/{ColorPicker-debcfab1.js → ColorPicker-eeac209c.js} +1 -1
  15. package/dist/{CompanyModal-8cf32258.js → CompanyModal-b59c2a9d.js} +3 -3
  16. package/dist/{ContentWrapper-c0a17123.js → ContentWrapper-b3353d9f.js} +26 -26
  17. package/dist/{CoverBlockSettings-0b289e31.js → CoverBlockSettings-55e7a45b.js} +8 -8
  18. package/dist/{DocAnswer-91248c64.js → DocAnswer-3292579d.js} +4 -4
  19. package/dist/{DocForm-91ae8830.js → DocForm-d39f62d7.js} +581 -508
  20. package/dist/{DocFormSend-0288bd11.js → DocFormSend-a9d52a13.js} +23 -22
  21. package/dist/{DocLinks-0b74ba52.js → DocLinks-dcc93a82.js} +2 -2
  22. package/dist/{DocModalBase-04a8975b.js → DocModalBase-16e3129d.js} +1 -1
  23. package/dist/{DocPrint-f4f49825.js → DocPrint-6efe5f7e.js} +1 -1
  24. package/dist/{DocReceipt-7f49dbc7.js → DocReceipt-fe1bb7da.js} +1 -1
  25. package/dist/{DocSendReminder-3059f0b3.js → DocSendReminder-f25c765c.js} +1 -1
  26. package/dist/{DocTextEditor-570f3d62.js → DocTextEditor-0a93ad72.js} +14 -14
  27. package/dist/{DocTimeline-fe15c761.js → DocTimeline-19a2d78f.js} +1 -1
  28. package/dist/{DocumentClient-685c2a72.js → DocumentClient-66a913b6.js} +7 -7
  29. package/dist/{DocumentLayout-1222a5f8.js → DocumentLayout-759a064d.js} +3 -3
  30. package/dist/{DocumentLogotype-b12feaae.js → DocumentLogotype-a393c0be.js} +3 -3
  31. package/dist/{EmbedInput-a1b00bd5.js → EmbedInput-1f9511d4.js} +2 -2
  32. package/dist/{EmbedSettings-33a765a6.js → EmbedSettings-dab21536.js} +3 -3
  33. package/dist/{ErrorCallout-d7d78926.js → ErrorCallout-78e56929.js} +1 -1
  34. package/dist/{FilePreviewModal-877e5aaa.js → FilePreviewModal-ad52ec07.js} +5 -5
  35. package/dist/{HeaderSettings-1b8d8783.js → HeaderSettings-52bf0abe.js} +16 -16
  36. package/dist/{ImageSelectModal-7e612643.js → ImageSelectModal-710b1c98.js} +9 -9
  37. package/dist/{ImageUploadWrapper-2e6b3682.js → ImageUploadWrapper-e4ec2d95.js} +2 -2
  38. package/dist/Index-0a824c85.js +72 -0
  39. package/dist/{Index-3e7e4c33.js → Index-0db8754f.js} +2 -2
  40. package/dist/{Index-abb05d61.js → Index-33447fc6.js} +6 -6
  41. package/dist/{Index-9d7a87a2.js → Index-352c9021.js} +2 -2
  42. package/dist/{Index-83603328.js → Index-36e4bf8c.js} +4 -4
  43. package/dist/{Index-e87eac2e.js → Index-3fe3326a.js} +2 -2
  44. package/dist/{Index-05492736.js → Index-4353a97c.js} +4 -4
  45. package/dist/{Index-2e71665d.js → Index-59830840.js} +4 -4
  46. package/dist/{Index-ab7ee5cf.js → Index-5b64fb7a.js} +4 -4
  47. package/dist/{Index-479a4f5c.js → Index-6051d460.js} +3 -3
  48. package/dist/{Index-96cc92d3.js → Index-62c81443.js} +14 -14
  49. package/dist/{Index-92444604.js → Index-688ba377.js} +4 -4
  50. package/dist/{Index-c4c942a3.js → Index-7d913167.js} +2 -2
  51. package/dist/{Index-5003d8a4.js → Index-8225fee4.js} +2 -2
  52. package/dist/{Index-11d14c4d.js → Index-8da208ee.js} +13 -13
  53. package/dist/{Index-f0ea6d6a.js → Index-90e16f49.js} +24 -30
  54. package/dist/{Index-edb47e7d.js → Index-912c9b2b.js} +4 -4
  55. package/dist/Index-aba31a5e.js +59 -0
  56. package/dist/{Index-ca877625.js → Index-ac1e43f2.js} +19 -22
  57. package/dist/{Index-83cd3513.js → Index-ce61e3e6.js} +10 -10
  58. package/dist/{Index-f450c453.js → Index-d10a939c.js} +9 -9
  59. package/dist/{Index-674572ab.js → Index-d20dca56.js} +4 -4
  60. package/dist/{Index-bff6cda5.js → Index-d34e5825.js} +1 -1
  61. package/dist/{Index-4559e60b.js → Index-d86c5a75.js} +5 -5
  62. package/dist/{Index-bf2851ea.js → Index-d8a20b59.js} +2 -2
  63. package/dist/{Index-dff23f41.js → Index-d98ab083.js} +4 -4
  64. package/dist/{Index-2f94216d.js → Index-e20ec508.js} +8 -8
  65. package/dist/{Index-cdd643d6.js → Index-e59b8d01.js} +30 -36
  66. package/dist/{Index-0d051f12.js → Index-e9a8bb89.js} +35 -26
  67. package/dist/{Index-e7a49ef5.js → Index-ee78a0d7.js} +4 -4
  68. package/dist/{Index-887a4e3b.js → Index-f5c9987e.js} +3 -3
  69. package/dist/{Index-d62e8abf.js → Index-f90de221.js} +2 -2
  70. package/dist/{Index-52da7dd1.js → Index-fa4453cc.js} +6 -6
  71. package/dist/{Index-3bfb3895.js → Index-fbdf1476.js} +1 -1
  72. package/dist/{InputToggleRow-ff428de1.js → InputToggleRow-e4c9fb71.js} +1 -1
  73. package/dist/{IsPremiumPreStep-4bc3a874.js → IsPremiumPreStep-e4caf2dd.js} +394 -260
  74. package/dist/{ManualPopover-fdad805a.js → ManualPopover-d8269334.js} +1 -1
  75. package/dist/{MediaWrapper-10405a28.js → MediaWrapper-5b99c2b9.js} +3 -3
  76. package/dist/{NotBindingText-eab4529c.js → NotBindingText-27150bf7.js} +2 -2
  77. package/dist/{PackageGroup-50b4428c.js → PackageGroup-f6bbaea1.js} +12 -12
  78. package/dist/{PdfTerms-81256394.js → PdfTerms-1b34c28a.js} +5 -5
  79. package/dist/{PdfViewer-10150d1b.js → PdfViewer-fe405d8f.js} +3 -3
  80. package/dist/{PlainHtml-57b8ec60.js → PlainHtml-07b4461c.js} +1 -1
  81. package/dist/PriceHeader-693a6414.js +339 -0
  82. package/dist/{SearchApi-c81405a8.js → SearchApi-9d26dde8.js} +2 -2
  83. package/dist/{Setup-438b2554.js → Setup-ba2a9928.js} +1 -1
  84. package/dist/{TermsSettings-0ad9987a.js → TermsSettings-9aa52469.js} +6 -6
  85. package/dist/{ThemeColorRow-178c3b34.js → ThemeColorRow-ef3ec593.js} +3 -3
  86. package/dist/{ToggleBinding-63c41c8f.js → ToggleBinding-ac3268f8.js} +3 -3
  87. package/dist/{UploadModal-859233e4.js → UploadModal-e8ef00fb.js} +3 -3
  88. package/dist/{VideoPlayerInput-73ac34db.js → VideoPlayerInput-9feb576c.js} +3 -3
  89. package/dist/{VideoPlayerSettings-c60fb8dc.js → VideoPlayerSettings-2450b21c.js} +4 -4
  90. package/dist/{VideoSelectModal-5358f138.js → VideoSelectModal-f282ba52.js} +8 -8
  91. package/dist/{answerDocumentMixin-69b88088.js → answerDocumentMixin-59e29633.js} +3 -3
  92. package/dist/{cssMode-59194949.js → cssMode-691cb247.js} +7 -7
  93. package/dist/{dom-d4731032.js → dom-962579a6.js} +7 -6
  94. package/dist/focusDrawerMixin-91e8cb6b.js +22 -0
  95. package/dist/{formComponentsInstall-12195b8b.js → formComponentsInstall-a371e037.js} +12 -12
  96. package/dist/formDrawerState-db84952d.js +20 -0
  97. package/dist/{formValidationMixin-e54b71c9.js → formValidationMixin-699c04c8.js} +2 -2
  98. package/dist/{freemarker2-3008b375.js → freemarker2-369c7be7.js} +7 -7
  99. package/dist/{handlebars-fa9ab08d.js → handlebars-e69d309d.js} +7 -7
  100. package/dist/{html-d5653fb5.js → html-b90b7472.js} +7 -7
  101. package/dist/{htmlMode-788d6ef2.js → htmlMode-852798f7.js} +7 -7
  102. package/dist/{image-4270bed4.js → image-45637029.js} +1 -1
  103. package/dist/index-03d51584.js +15 -0
  104. package/dist/{index-bed8fb27.js → index-0f4dd31a.js} +1 -1
  105. package/dist/{index-cd29b3be.js → index-60e5432a.js} +9 -9
  106. package/dist/{index-c48b4b2a.js → index-68aa0619.js} +2 -2
  107. package/dist/{index-79df8dcf.js → index-e42d306b.js} +5 -5
  108. package/dist/{index-df5fd2b2.js → index-ef653c95.js} +1 -1
  109. package/dist/index.es.js +3 -3
  110. package/dist/index.umd.js +453 -453
  111. package/dist/{javascript-553c3953.js → javascript-d936cb19.js} +8 -8
  112. package/dist/{jsonMode-c7ab0d1f.js → jsonMode-082e4bd3.js} +7 -7
  113. package/dist/{liquid-9e71ef49.js → liquid-461e97b3.js} +7 -7
  114. package/dist/{main-9e6f1eed.js → main-870410b4.js} +7142 -7097
  115. package/dist/{mapFormMixin-afafb1fa.js → mapFormMixin-3e8412ac.js} +1 -1
  116. package/dist/{publicSenderState-994a5c48.js → publicSenderState-973b902b.js} +1 -1
  117. package/dist/{python-c3ceee79.js → python-516db33c.js} +7 -7
  118. package/dist/{razor-5c5d60a9.js → razor-7e80bafe.js} +7 -7
  119. package/dist/{simplebar.min-2c8e9500.js → simplebar.min-db10f993.js} +1 -1
  120. package/dist/style.css +2 -2
  121. package/dist/{template-35be25a1.js → template-a0e45f2c.js} +1 -1
  122. package/dist/{throttle-0e8ac006.js → throttle-9dc46674.js} +2 -2
  123. package/dist/{tinycolor-e0dc7ddf.js → tinycolor-17c54210.js} +1 -1
  124. package/dist/{tippy.esm-112598e3.js → tippy.esm-e1516e3d.js} +5 -5
  125. package/dist/{tsMode-26e458da.js → tsMode-dc7b755a.js} +7 -7
  126. package/dist/{typescript-152aeb18.js → typescript-18787046.js} +7 -7
  127. package/dist/{utils-3acdacf6.js → utils-bc6b4fb5.js} +1 -1
  128. package/dist/{vuedraggable.umd-9543559a.js → vuedraggable.umd-b951d1bb.js} +1 -1
  129. package/dist/{xml-9806bd44.js → xml-c6d75bf4.js} +7 -7
  130. package/package.json +2 -3
  131. package/dist/Index-6f9f3222.js +0 -69
  132. package/dist/Index-f2fde02f.js +0 -76
  133. package/dist/PriceHeader-70427a56.js +0 -338
  134. package/dist/focusDrawerMixin-188ef585.js +0 -68
  135. package/dist/index-0265dfbd.js +0 -14
@@ -1,4 +1,4 @@
1
- import { n as s } from "./main-9e6f1eed.js";
1
+ import { n as s } from "./main-870410b4.js";
2
2
  const r = {
3
3
  name: "ManualPopover",
4
4
  data() {
@@ -1,6 +1,6 @@
1
- import { B as n } from "./BlockMedia-0f41fb43.js";
2
- import { m as a } from "./mapFormMixin-afafb1fa.js";
3
- import { n as m } from "./main-9e6f1eed.js";
1
+ import { B as n } from "./BlockMedia-f95986a5.js";
2
+ import { m as a } from "./mapFormMixin-3e8412ac.js";
3
+ import { n as m } from "./main-870410b4.js";
4
4
  import "./color-71c20583.js";
5
5
  const o = {
6
6
  name: "MediaWrapper",
@@ -1,5 +1,5 @@
1
- import { P as t } from "./PlainHtml-57b8ec60.js";
2
- import { n as e } from "./main-9e6f1eed.js";
1
+ import { P as t } from "./PlainHtml-07b4461c.js";
2
+ import { n as e } from "./main-870410b4.js";
3
3
  const r = {
4
4
  name: "NotBindingText",
5
5
  i18nOptions: {
@@ -1,16 +1,16 @@
1
- import { t as m } from "./tinycolor-e0dc7ddf.js";
2
- import { ab as y, ac as v, s as g, n as p, ad as f, x as k, b as u, ae as w, c as P } from "./main-9e6f1eed.js";
3
- import { E as x } from "./ErrorCallout-d7d78926.js";
4
- import { m as _ } from "./mapFormMixin-afafb1fa.js";
5
- import { T as b } from "./DocTextEditor-570f3d62.js";
6
- import "./tippy.esm-112598e3.js";
7
- import "./ColorPicker-debcfab1.js";
8
- import "./DocumentLayout-1222a5f8.js";
9
- import "./CDropdownItem-13f6bf72.js";
10
- import "./CSlider.vue_vue_type_style_index_0_lang-879e8c05.js";
11
- import "./dom-d4731032.js";
1
+ import { t as m } from "./tinycolor-17c54210.js";
2
+ import { ab as y, ac as v, s as g, n as p, ad as f, x as k, b as u, ae as w, c as P } from "./main-870410b4.js";
3
+ import { E as x } from "./ErrorCallout-78e56929.js";
4
+ import { m as _ } from "./mapFormMixin-3e8412ac.js";
5
+ import { T as b } from "./DocTextEditor-0a93ad72.js";
6
+ import "./tippy.esm-e1516e3d.js";
7
+ import "./ColorPicker-eeac209c.js";
8
+ import "./DocumentLayout-759a064d.js";
9
+ import "./CDropdownItem-fa27c5e4.js";
10
+ import "./CSlider.vue_vue_type_style_index_0_lang-5d538988.js";
11
+ import "./dom-962579a6.js";
12
12
  import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
13
- import "./ManualPopover-fdad805a.js";
13
+ import "./ManualPopover-d8269334.js";
14
14
  import "./color-71c20583.js";
15
15
  const $ = {
16
16
  name: "ArticleItem",
@@ -1,8 +1,8 @@
1
- import { V as s } from "./PdfViewer-10150d1b.js";
2
- import { n as t } from "./main-9e6f1eed.js";
3
- import "./dom-d4731032.js";
4
- import "./DocumentLayout-1222a5f8.js";
5
- import "./CDropdownItem-13f6bf72.js";
1
+ import { V as s } from "./PdfViewer-fe405d8f.js";
2
+ import { n as t } from "./main-870410b4.js";
3
+ import "./dom-962579a6.js";
4
+ import "./DocumentLayout-759a064d.js";
5
+ import "./CDropdownItem-fa27c5e4.js";
6
6
  const n = {
7
7
  name: "PdfTerms",
8
8
  functional: !0,
@@ -1,6 +1,6 @@
1
- import { n as u, M as g } from "./main-9e6f1eed.js";
2
- import { e as d } from "./dom-d4731032.js";
3
- import { W as m } from "./DocumentLayout-1222a5f8.js";
1
+ import { n as u, M as g } from "./main-870410b4.js";
2
+ import { e as d } from "./dom-962579a6.js";
3
+ import { W as m } from "./DocumentLayout-759a064d.js";
4
4
  let o, l, f, c, p;
5
5
  function w(e) {
6
6
  return typeof e == "object" && e !== null && e.__PDFDocumentLoadingTask === !0;
@@ -1,4 +1,4 @@
1
- import { n as r } from "./main-9e6f1eed.js";
1
+ import { n as r } from "./main-870410b4.js";
2
2
  const e = {
3
3
  name: "PlainHtml"
4
4
  };
@@ -0,0 +1,339 @@
1
+ import { m as c } from "./mapFormMixin-3e8412ac.js";
2
+ import { B as l } from "./BlockMedia-f95986a5.js";
3
+ import { n, b as r, s as d, a3 as m } from "./main-870410b4.js";
4
+ import { T as u } from "./DocTextEditor-0a93ad72.js";
5
+ import { i as p } from "./i18nMessages-45c6bfd6.js";
6
+ import { t as _ } from "./tinycolor-17c54210.js";
7
+ import { s as y } from "./dom-962579a6.js";
8
+ import "./color-71c20583.js";
9
+ import "./tippy.esm-e1516e3d.js";
10
+ import "./ColorPicker-eeac209c.js";
11
+ import "./DocumentLayout-759a064d.js";
12
+ import "./CDropdownItem-fa27c5e4.js";
13
+ import "./CSlider.vue_vue_type_style_index_0_lang-5d538988.js";
14
+ import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
15
+ import "./ManualPopover-d8269334.js";
16
+ const h = {
17
+ name: "SummaryTop",
18
+ i18nOptions: {
19
+ namespaces: "summaryTop",
20
+ messages: p
21
+ },
22
+ components: {
23
+ TextEditor: u,
24
+ DocumentLogotype: () => import("./DocumentLogotype-a393c0be.js")
25
+ },
26
+ inject: ["parentSize"],
27
+ mixins: [c([])],
28
+ props: {
29
+ showLogo: {
30
+ type: Boolean,
31
+ default: !0
32
+ },
33
+ logotype: {
34
+ type: String,
35
+ default: null
36
+ },
37
+ companyLogotype: {
38
+ type: String,
39
+ default: null
40
+ },
41
+ senderName: {
42
+ type: String,
43
+ default: null
44
+ },
45
+ docName: {
46
+ type: String,
47
+ default: null
48
+ },
49
+ docType: {
50
+ type: String,
51
+ required: !0
52
+ },
53
+ docNumber: {
54
+ type: [Number, String],
55
+ default: null
56
+ },
57
+ sentAt: {
58
+ type: [String, Number],
59
+ default: null
60
+ // required: true,
61
+ },
62
+ expiresAt: {
63
+ type: String,
64
+ default: null
65
+ },
66
+ estimatedTime: {
67
+ type: String,
68
+ default: null
69
+ },
70
+ validator: {
71
+ type: Object,
72
+ default: () => ({})
73
+ },
74
+ hasHover: {
75
+ type: Boolean,
76
+ default: !1
77
+ }
78
+ },
79
+ computed: {
80
+ logotypeListeners() {
81
+ return {
82
+ ...this.$listeners,
83
+ input: (i) => this.$emit("update:logotype", i)
84
+ };
85
+ }
86
+ }
87
+ };
88
+ var v = function() {
89
+ var t = this, e = t._self._c;
90
+ 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: {
91
+ bulletList: !1,
92
+ heading: [1, 2, 3],
93
+ bold: !1,
94
+ link: !1,
95
+ underline: !1,
96
+ blockquote: !0,
97
+ table: !1
98
+ }, unstyled: "", static: "" }, on: { input: function(s) {
99
+ return t.$emit("update:doc-name", s);
100
+ } } }) : 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)])]);
101
+ }, g = [], f = /* @__PURE__ */ n(
102
+ h,
103
+ v,
104
+ g,
105
+ !1,
106
+ null,
107
+ "ec3c14d9",
108
+ null,
109
+ null
110
+ );
111
+ const S = f.exports;
112
+ const x = {
113
+ name: "SummaryBottom",
114
+ mixins: [c([])],
115
+ props: {
116
+ base: {
117
+ type: Object,
118
+ default: null
119
+ },
120
+ options: {
121
+ type: Array,
122
+ default: () => []
123
+ },
124
+ backgroundColor: {
125
+ type: String,
126
+ default: "#4c576d"
127
+ },
128
+ documentCurrency: {
129
+ type: String,
130
+ required: !0
131
+ },
132
+ vatType: {
133
+ type: String,
134
+ required: !0
135
+ }
136
+ },
137
+ inject: ["parentSize"],
138
+ data() {
139
+ return {
140
+ get: r,
141
+ tinycolor: _
142
+ };
143
+ },
144
+ computed: {
145
+ prices() {
146
+ return r(this, "base.prices") || {};
147
+ },
148
+ isIndivid() {
149
+ return r(this.prices, "helpers.isIndivid", !0);
150
+ },
151
+ showIncVat() {
152
+ return this.isIndivid;
153
+ },
154
+ priceTotal() {
155
+ return this.isIndivid ? r(this.prices, "total", null) : r(this.prices, "subTotal", null);
156
+ },
157
+ priceType() {
158
+ return this.prices.type || ["fixed"];
159
+ },
160
+ currency() {
161
+ return this.prices.currency || this.documentCurrency;
162
+ },
163
+ openAccMaxPrice() {
164
+ return this.prices.maxTotal || null;
165
+ },
166
+ houseWorkType() {
167
+ return r(this.prices, "region.houseWorkType", null);
168
+ },
169
+ isReverseVat() {
170
+ return r(this.prices, "region.reverseVat", !1);
171
+ },
172
+ priceTypeString() {
173
+ 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();
174
+ },
175
+ priceDeductionVatString() {
176
+ let i = "";
177
+ if (this.isReverseVat && !this.showIncVat) {
178
+ const t = this.priceFormat(0, { currency: this.currency, showZero: !0 });
179
+ return i = this._document.$t("summaryBottom.reverseVat", { amount: t }), i;
180
+ }
181
+ 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();
182
+ },
183
+ backgroundSecondary() {
184
+ if (!this.isSmallScreen)
185
+ return { backgroundColor: "transparent" };
186
+ 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];
187
+ return {
188
+ backgroundColor: `hsla(${i}, ${t ** 0.9}%, ${e ** 0.9}%, ${s})`
189
+ };
190
+ },
191
+ isSmallScreen() {
192
+ return this.parentSize.width <= 576;
193
+ }
194
+ },
195
+ methods: {
196
+ priceFormat: d,
197
+ scrollToPricing() {
198
+ const i = document.querySelector("#price");
199
+ i && y(i);
200
+ }
201
+ }
202
+ };
203
+ var b = function() {
204
+ var t = this, e = t._self._c;
205
+ return e("section", { staticClass: "summary-bottom-root" }, [e("div", { staticClass: "summary-bottom", style: [
206
+ {
207
+ backgroundColor: t.backgroundColor,
208
+ color: t.tinycolor.readability(t.backgroundColor, "#FFF") > 2.2 ? "#FFF" : "#000"
209
+ },
210
+ t.options.length && {
211
+ overflow: "hidden",
212
+ padding: 0
213
+ }
214
+ ] }, [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: [
215
+ {
216
+ column: t.isSmallScreen,
217
+ sm: t.isSmallScreen
218
+ }
219
+ ], 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()])])]);
220
+ }, C = [], $ = /* @__PURE__ */ n(
221
+ x,
222
+ b,
223
+ C,
224
+ !1,
225
+ null,
226
+ "8ace9bc8",
227
+ null,
228
+ null
229
+ );
230
+ const w = $.exports;
231
+ const T = {
232
+ name: "PriceHeader",
233
+ components: {
234
+ SummaryTop: S,
235
+ SummaryBottom: w,
236
+ BlockMedia: l
237
+ },
238
+ mixins: [c([
239
+ "media",
240
+ "backgroundColor",
241
+ "documentName",
242
+ "showPriceSummary",
243
+ "showLogo",
244
+ "logotype"
245
+ ])],
246
+ props: {
247
+ _document: {
248
+ type: Object,
249
+ default: () => ({})
250
+ },
251
+ _value: {
252
+ type: Object,
253
+ default: () => ({})
254
+ },
255
+ hasHover: {
256
+ type: Boolean,
257
+ default: !1
258
+ }
259
+ },
260
+ computed: {
261
+ internalName: {
262
+ get() {
263
+ var i;
264
+ return this.documentName || `<p data-typography="title">${((i = this._document.data) == null ? void 0 : i.name) || ""}</p>`;
265
+ },
266
+ set(i) {
267
+ this.documentName = i, this.$emit("input", { key: "data.name", value: m(i).trim().slice(0, 255) });
268
+ }
269
+ },
270
+ company() {
271
+ return this._document.sender.company;
272
+ },
273
+ prices() {
274
+ return this._document.prices;
275
+ },
276
+ estimatedTimeString() {
277
+ var e, s;
278
+ const { value: i, unitType: t } = ((s = (e = this._document) == null ? void 0 : e.data) == null ? void 0 : s.estimatedTime) || {};
279
+ return !i || !t ? null : this.$tc(`${t}`, { count: i });
280
+ },
281
+ sendAtShowDate() {
282
+ const { sentAt: i, scheduledFirstDelivery: t } = this._document;
283
+ return i || (t ? t.sendAt : null);
284
+ },
285
+ summaryBottom() {
286
+ var s;
287
+ let i = {
288
+ show: !1,
289
+ backgroundColor: this.backgroundColor || this._document.theme.priceSummaryBackground,
290
+ documentCurrency: this._document.currency,
291
+ vatType: this._document.vatType
292
+ }, { showPriceSummary: t } = this;
293
+ typeof t != "boolean" && ({ showPriceSummary: t } = this._document.theme);
294
+ const e = ((s = this._document.packageGroups) == null ? void 0 : s.packages) || [];
295
+ return e.length > 1 ? i = {
296
+ ...i,
297
+ show: t,
298
+ base: { prices: this.prices },
299
+ options: e.filter(({ toggable: o }) => o).map(({ prices: o }) => ({ prices: o }))
300
+ } : i = {
301
+ ...i,
302
+ show: t && this._document.readPrices && (this.prices.total || this.prices.type.some((o) => ["openAccMaxPrice", "openAcc"].includes(o))),
303
+ base: { prices: this.prices }
304
+ }, this.canEdit && t && (i.show = !0), i.documentCurrency || (i.show = !1), i;
305
+ }
306
+ }
307
+ };
308
+ var k = function() {
309
+ var s, o;
310
+ var t = this, e = t._self._c;
311
+ return e("div", [e("div", { staticClass: "doc-jumbotron-wrapper" }, [e("BlockMedia", { staticClass: "price-media-wrapper", attrs: { media: {
312
+ ...t.media,
313
+ resourceUrl: ((s = t.media) == null ? void 0 : s.resourceUrl) || t._document.theme.background,
314
+ overlayColor: ((o = t.media) == null ? void 0 : o.overlayColor) || t._document.theme.backgroundFilter
315
+ } } }), 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(a) {
316
+ t.showLogo = a;
317
+ }, "update:show-logo": function(a) {
318
+ t.showLogo = a;
319
+ }, "update:logotype": function(a) {
320
+ t.logotype = a;
321
+ }, "update:docName": function(a) {
322
+ t.internalName = a;
323
+ }, "update:doc-name": function(a) {
324
+ t.internalName = a;
325
+ } } })], 1), t.summaryBottom.show ? e("SummaryBottom", t._b({ attrs: { _document: t._document } }, "SummaryBottom", t.summaryBottom, !1)) : t._e()], 1);
326
+ }, A = [], B = /* @__PURE__ */ n(
327
+ T,
328
+ k,
329
+ A,
330
+ !1,
331
+ null,
332
+ "435cdff6",
333
+ null,
334
+ null
335
+ );
336
+ const W = B.exports;
337
+ export {
338
+ W as default
339
+ };
@@ -1,5 +1,5 @@
1
- import { g as u, p as h, f, i as d, n as m } from "./main-9e6f1eed.js";
2
- import { d as p } from "./CDropdownItem-13f6bf72.js";
1
+ import { g as u, p as h, f, i as d, n as m } from "./main-870410b4.js";
2
+ import { d as p } from "./CDropdownItem-fa27c5e4.js";
3
3
  import { m as y, a as g } from "./vuex.esm-4a0fff7c.js";
4
4
  const A = {
5
5
  name: "SearchApi",
@@ -1,4 +1,4 @@
1
- import { n as s, c as o, e as c } from "./main-9e6f1eed.js";
1
+ import { n as s, c as o, e as c } from "./main-870410b4.js";
2
2
  const l = {
3
3
  // eslint-disable-next-line vue/multi-word-component-names
4
4
  name: "Setup",
@@ -1,9 +1,9 @@
1
- import { f as m, A as o, n as v } from "./main-9e6f1eed.js";
2
- import { m as c } from "./mapFormMixin-afafb1fa.js";
3
- import g from "./Index-52da7dd1.js";
4
- import "./DocModalBase-04a8975b.js";
5
- import "./DocumentLayout-1222a5f8.js";
6
- import "./CDropdownItem-13f6bf72.js";
1
+ import { f as m, A as o, n as v } from "./main-870410b4.js";
2
+ import { m as c } from "./mapFormMixin-3e8412ac.js";
3
+ import g from "./Index-fa4453cc.js";
4
+ import "./DocModalBase-16e3129d.js";
5
+ import "./DocumentLayout-759a064d.js";
6
+ import "./CDropdownItem-fa27c5e4.js";
7
7
  const p = {
8
8
  i18nOptions: {
9
9
  namespaces: "terms",
@@ -1,7 +1,7 @@
1
1
  import { h as n } from "./color-71c20583.js";
2
- import { C as l } from "./ColorPicker-debcfab1.js";
3
- import { M as s } from "./ManualPopover-fdad805a.js";
4
- import { n as a } from "./main-9e6f1eed.js";
2
+ import { C as l } from "./ColorPicker-eeac209c.js";
3
+ import { M as s } from "./ManualPopover-d8269334.js";
4
+ import { n as a } from "./main-870410b4.js";
5
5
  const i = {
6
6
  name: "ThemeColorRow",
7
7
  components: {
@@ -1,6 +1,6 @@
1
- import { m as i } from "./mapFormMixin-afafb1fa.js";
2
- import { I as t } from "./InputToggleRow-ff428de1.js";
3
- import { n as l } from "./main-9e6f1eed.js";
1
+ import { m as i } from "./mapFormMixin-3e8412ac.js";
2
+ import { I as t } from "./InputToggleRow-e4c9fb71.js";
3
+ import { n as l } from "./main-870410b4.js";
4
4
  const s = {
5
5
  name: "ToggleBinding",
6
6
  i18nOptions: {
@@ -1,7 +1,7 @@
1
- import l from "./Index-d62e8abf.js";
2
- import { f as o, h as c, B as d, n as m } from "./main-9e6f1eed.js";
1
+ import l from "./Index-f90de221.js";
2
+ import { f as o, h as c, B as d, n as m } from "./main-870410b4.js";
3
3
  import { m as p } from "./vuex.esm-4a0fff7c.js";
4
- import "./tinycolor-e0dc7ddf.js";
4
+ import "./tinycolor-17c54210.js";
5
5
  const u = {
6
6
  i18nOptions: {
7
7
  namespaces: "uploadModal",
@@ -1,6 +1,6 @@
1
- import { d as a } from "./CDropdownItem-13f6bf72.js";
2
- import { v as l } from "./utils-3acdacf6.js";
3
- import { n } from "./main-9e6f1eed.js";
1
+ import { d as a } from "./CDropdownItem-fa27c5e4.js";
2
+ import { v as l } from "./utils-bc6b4fb5.js";
3
+ import { n } from "./main-870410b4.js";
4
4
  const r = {
5
5
  name: "VideoPlayerInput",
6
6
  i18nOptions: {
@@ -1,7 +1,7 @@
1
- import n from "./VideoPlayerInput-73ac34db.js";
2
- import { n as s } from "./main-9e6f1eed.js";
3
- import "./CDropdownItem-13f6bf72.js";
4
- import "./utils-3acdacf6.js";
1
+ import n from "./VideoPlayerInput-9feb576c.js";
2
+ import { n as s } from "./main-870410b4.js";
3
+ import "./CDropdownItem-fa27c5e4.js";
4
+ import "./utils-bc6b4fb5.js";
5
5
  const l = {
6
6
  i18nOptions: {
7
7
  namespaces: "components",
@@ -1,11 +1,11 @@
1
- import { c as h, n as f, l as g } from "./main-9e6f1eed.js";
2
- import { B as _, a as y } from "./index-79df8dcf.js";
3
- import x from "./VideoPlayerInput-73ac34db.js";
4
- import "./CDropdownItem-13f6bf72.js";
5
- import "./throttle-0e8ac006.js";
6
- import "./dom-d4731032.js";
7
- import "./simplebar.min-2c8e9500.js";
8
- import "./utils-3acdacf6.js";
1
+ import { c as h, n as f, l as g } from "./main-870410b4.js";
2
+ import { B as _, a as y } from "./index-e42d306b.js";
3
+ import x from "./VideoPlayerInput-9feb576c.js";
4
+ import "./CDropdownItem-fa27c5e4.js";
5
+ import "./throttle-9dc46674.js";
6
+ import "./dom-962579a6.js";
7
+ import "./simplebar.min-db10f993.js";
8
+ import "./utils-bc6b4fb5.js";
9
9
  const V = h.pexels.id, b = {
10
10
  name: "VideoSelectModal",
11
11
  i18nOptions: {
@@ -1,5 +1,5 @@
1
- import { b as r } from "./main-9e6f1eed.js";
2
- import { w as l } from "./CDropdownItem-13f6bf72.js";
1
+ import { b as r } from "./main-870410b4.js";
2
+ import { w as l } from "./CDropdownItem-fa27c5e4.js";
3
3
  const m = ({ documentKey: s = "document" } = {}) => ({
4
4
  mixins: [l],
5
5
  inject: {
@@ -26,7 +26,7 @@ const m = ({ documentKey: s = "document" } = {}) => ({
26
26
  const o = t === "decline" ? !0 : this.isValid();
27
27
  if (!i.isPreview && !o)
28
28
  return;
29
- const n = this.mq === "sm" ? "100%" : "auto", a = () => import("./AnswerModal-73bfc112.js");
29
+ const n = this.mq === "sm" ? "100%" : "auto", a = () => import("./AnswerModal-09ffb221.js");
30
30
  this.$modal.show(
31
31
  a,
32
32
  {
@@ -1,14 +1,14 @@
1
1
  var Le = Object.defineProperty;
2
2
  var Fe = (e, n, i) => n in e ? Le(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var E = (e, n, i) => (Fe(e, typeof n != "symbol" ? n + "" : n, i), i);
4
- import { m as je } from "./Index-0d051f12.js";
5
- import "./mapFormMixin-afafb1fa.js";
6
- import "./main-9e6f1eed.js";
7
- import "./throttle-0e8ac006.js";
8
- import "./CDropdownItem-13f6bf72.js";
4
+ import { m as je } from "./Index-e9a8bb89.js";
5
+ import "./mapFormMixin-3e8412ac.js";
6
+ import "./main-870410b4.js";
7
+ import "./throttle-9dc46674.js";
8
+ import "./CDropdownItem-fa27c5e4.js";
9
9
  import "./splitpanes-ba7897bf.js";
10
- import "./DocumentLayout-1222a5f8.js";
11
- import "./template-35be25a1.js";
10
+ import "./DocumentLayout-759a064d.js";
11
+ import "./template-a0e45f2c.js";
12
12
  /*!-----------------------------------------------------------------------------
13
13
  * Copyright (c) Microsoft Corporation. All rights reserved.
14
14
  * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
@@ -1,6 +1,6 @@
1
- const l = {}, a = {};
1
+ const l = {}, f = {};
2
2
  function m(t) {
3
- if (a[t])
3
+ if (f[t])
4
4
  return;
5
5
  if (l[t])
6
6
  return l[t];
@@ -9,9 +9,9 @@ function m(t) {
9
9
  l[t] = null, e(new Error(`Failed to load ${t} in 20s`));
10
10
  }, 2e4);
11
11
  s.onload = () => {
12
- i && window.clearTimeout(i), a[t] = !0, l[t] = null, n();
13
- }, s.onerror = (f) => {
14
- i && window.clearTimeout(i), l[t] = null, e(f);
12
+ i && window.clearTimeout(i), f[t] = !0, l[t] = null, n();
13
+ }, s.onerror = (a) => {
14
+ i && window.clearTimeout(i), l[t] = null, e(a);
15
15
  }, s.src = t, document.body.appendChild(s);
16
16
  });
17
17
  return l[t] = o, o;
@@ -61,8 +61,9 @@ const g = (t) => {
61
61
  };
62
62
  };
63
63
  export {
64
+ g as a,
64
65
  m as e,
65
- g,
66
+ u as g,
66
67
  w as i,
67
68
  h as s
68
69
  };
@@ -0,0 +1,22 @@
1
+ import { s as o } from "./formDrawerState-db84952d.js";
2
+ const t = {
3
+ inject: {
4
+ sectionTopNode: {
5
+ type: [String, Number],
6
+ default: null
7
+ }
8
+ },
9
+ computed: {
10
+ showDrawer() {
11
+ return this.sectionTopNode && o.openSection && this.sectionTopNode === o.openSection;
12
+ }
13
+ },
14
+ methods: {
15
+ openDrawer() {
16
+ this.sectionTopNode && (o.openSection = this.sectionTopNode);
17
+ }
18
+ }
19
+ };
20
+ export {
21
+ t as f
22
+ };