@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,6 +1,6 @@
1
- import { B as n } from "./BlockMedia-c0637f45.js";
2
- import { m as a } from "./mapFormMixin-fe8972cd.js";
3
- import { n as m } from "./main-8c6aae3a.js";
1
+ import { B as n } from "./BlockMedia-80a082ed.js";
2
+ import { m as a } from "./mapFormMixin-490a1765.js";
3
+ import { n as m } from "./main-cf622dd3.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-3a94783a.js";
2
- import { n as e } from "./main-8c6aae3a.js";
1
+ import { P as t } from "./PlainHtml-37aa5b7b.js";
2
+ import { n as e } from "./main-cf622dd3.js";
3
3
  const r = {
4
4
  name: "NotBindingText",
5
5
  i18nOptions: {
@@ -1,13 +1,13 @@
1
- import { t as m } from "./tinycolor-c5753ad0.js";
2
- import { aa as y, ab as v, r as g, n as p, ac as f, t as k, c as u, ad as w, l as P } from "./main-8c6aae3a.js";
3
- import { E as x } from "./ErrorCallout-ca6aa8a6.js";
4
- import { m as _ } from "./mapFormMixin-fe8972cd.js";
5
- import { T as b } from "./DocTextEditor-a795ba8d.js";
6
- import "./tippy.esm-495f26e4.js";
7
- import "./ColorPicker-4a830e26.js";
8
- import "./DocumentLayout-3882fade.js";
9
- import "./CDropdownItem-32216ea8.js";
10
- import "./CSlider.vue_vue_type_style_index_0_lang-a2818d05.js";
1
+ import { t as m } from "./tinycolor-9f3cc25c.js";
2
+ import { aa as y, ab as v, q as g, n as p, ac as f, t as k, b as u, ad as w, k as P } from "./main-cf622dd3.js";
3
+ import { E as x } from "./ErrorCallout-84e8168b.js";
4
+ import { m as _ } from "./mapFormMixin-490a1765.js";
5
+ import { T as b } from "./DocTextEditor-0c8a4782.js";
6
+ import "./tippy.esm-dec03596.js";
7
+ import "./ColorPicker-4880a624.js";
8
+ import "./DocumentLayout-2ff55f9f.js";
9
+ import "./CDropdownItem-ab42f924.js";
10
+ import "./CSlider.vue_vue_type_style_index_0_lang-c70342a2.js";
11
11
  import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
12
12
  import "./color-71c20583.js";
13
13
  const $ = {
@@ -136,7 +136,7 @@ var T = function() {
136
136
  S,
137
137
  !1,
138
138
  null,
139
- "24e9f828",
139
+ "bc7871bf",
140
140
  null,
141
141
  null
142
142
  );
@@ -195,7 +195,7 @@ var A = function() {
195
195
  D,
196
196
  !1,
197
197
  null,
198
- "0814223b",
198
+ "26311241",
199
199
  null,
200
200
  null
201
201
  );
@@ -335,7 +335,7 @@ var M = function() {
335
335
  W,
336
336
  !1,
337
337
  null,
338
- "1b1d9599",
338
+ "c42435a2",
339
339
  null,
340
340
  null
341
341
  );
@@ -490,7 +490,7 @@ var Z = function() {
490
490
  E,
491
491
  !1,
492
492
  null,
493
- "03965578",
493
+ "f918c763",
494
494
  null,
495
495
  null
496
496
  );
@@ -581,7 +581,7 @@ var R = function() {
581
581
  H,
582
582
  !1,
583
583
  null,
584
- "949caf8b",
584
+ "5856c27a",
585
585
  null,
586
586
  null
587
587
  );
@@ -1,8 +1,8 @@
1
- import { V as s } from "./PdfViewer-6e5442ae.js";
2
- import { n as t } from "./main-8c6aae3a.js";
1
+ import { V as s } from "./PdfViewer-099b598c.js";
2
+ import { n as t } from "./main-cf622dd3.js";
3
3
  import "./dom-068d1a7b.js";
4
- import "./DocumentLayout-3882fade.js";
5
- import "./CDropdownItem-32216ea8.js";
4
+ import "./DocumentLayout-2ff55f9f.js";
5
+ import "./CDropdownItem-ab42f924.js";
6
6
  const n = {
7
7
  name: "PdfTerms",
8
8
  functional: !0,
@@ -31,11 +31,11 @@ var a = /* @__PURE__ */ t(
31
31
  l,
32
32
  !1,
33
33
  null,
34
- "5d832f2b",
34
+ "6b8c9a48",
35
35
  null,
36
36
  null
37
37
  );
38
- const d = a.exports;
38
+ const c = a.exports;
39
39
  export {
40
- d as default
40
+ c as default
41
41
  };
@@ -1,6 +1,6 @@
1
- import { n as u, L as g } from "./main-8c6aae3a.js";
1
+ import { n as u, L as g } from "./main-cf622dd3.js";
2
2
  import { e as d } from "./dom-068d1a7b.js";
3
- import { W as m } from "./DocumentLayout-3882fade.js";
3
+ import { W as m } from "./DocumentLayout-2ff55f9f.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-8c6aae3a.js";
1
+ import { n as r } from "./main-cf622dd3.js";
2
2
  const e = {
3
3
  name: "PlainHtml"
4
4
  };
@@ -0,0 +1,337 @@
1
+ import { m as c } from "./mapFormMixin-490a1765.js";
2
+ import { B as l } from "./BlockMedia-80a082ed.js";
3
+ import { n, b as r, q as d, a1 as u } from "./main-cf622dd3.js";
4
+ import { T as m } from "./DocTextEditor-0c8a4782.js";
5
+ import { i as p } from "./i18nMessages-45c6bfd6.js";
6
+ import { t as _ } from "./tinycolor-9f3cc25c.js";
7
+ import { s as y } from "./dom-068d1a7b.js";
8
+ import "./color-71c20583.js";
9
+ import "./tippy.esm-dec03596.js";
10
+ import "./ColorPicker-4880a624.js";
11
+ import "./DocumentLayout-2ff55f9f.js";
12
+ import "./CDropdownItem-ab42f924.js";
13
+ import "./CSlider.vue_vue_type_style_index_0_lang-c70342a2.js";
14
+ import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
15
+ const h = {
16
+ name: "SummaryTop",
17
+ i18nOptions: {
18
+ namespaces: "summaryTop",
19
+ messages: p
20
+ },
21
+ components: {
22
+ TextEditor: m,
23
+ DocumentLogotype: () => import("./DocumentLogotype-80a2521a.js")
24
+ },
25
+ inject: ["parentSize"],
26
+ mixins: [c([])],
27
+ props: {
28
+ showLogo: {
29
+ type: Boolean,
30
+ default: !0
31
+ },
32
+ logotype: {
33
+ type: String,
34
+ default: null
35
+ },
36
+ companyLogotype: {
37
+ type: String,
38
+ default: null
39
+ },
40
+ senderName: {
41
+ type: String,
42
+ default: null
43
+ },
44
+ docName: {
45
+ type: String,
46
+ default: null
47
+ },
48
+ docType: {
49
+ type: String,
50
+ required: !0
51
+ },
52
+ docNumber: {
53
+ type: [Number, String],
54
+ default: null
55
+ },
56
+ sentAt: {
57
+ type: [String, Number],
58
+ default: null
59
+ // required: true,
60
+ },
61
+ expiresAt: {
62
+ type: String,
63
+ default: null
64
+ },
65
+ estimatedTime: {
66
+ type: String,
67
+ default: null
68
+ },
69
+ validator: {
70
+ type: Object,
71
+ default: () => ({})
72
+ },
73
+ hasHover: {
74
+ type: Boolean,
75
+ default: !1
76
+ }
77
+ },
78
+ computed: {
79
+ logotypeListeners() {
80
+ return {
81
+ ...this.$listeners,
82
+ input: (i) => this.$emit("update:logotype", i)
83
+ };
84
+ }
85
+ }
86
+ };
87
+ var v = function() {
88
+ var t = this, e = t._self._c;
89
+ return e("section", { staticClass: "flex justify-center w-full summary-top" }, [e("div", { staticClass: "doc-summary-top-wrapper" }, [e("div", { staticClass: "doc-summary-top-wrapper__background" }), e("div", { staticClass: "flex justify-between w-full", staticStyle: { "margin-bottom": "calc(2.5 * var(--rem))" } }, [t.showLogo && (t.logotype || t.companyLogotype) || t.canEdit ? e("DocumentLogotype", t._g({ attrs: { value: t.logotype, "show-logo": t.showLogo, "company-logotype": t.companyLogotype, "has-hover": t.hasHover } }, t.logotypeListeners)) : e("div", { staticClass: "company-name" }, [t._v(" " + t._s(t.senderName) + " ")]), e("div", { staticClass: "top-right-text-wrapper" }, [t.sentAt ? e("div", [t._v(t._s(t.$formatDate(t.sentAt)))]) : t._e(), t.docNumber ? e("div", [t._v(" #" + t._s(t.docNumber))]) : t._e()])], 1), e("div", { staticClass: "title-text" }, [t.canEdit ? e("TextEditor", { ref: "editor", staticClass: "no-drag", staticStyle: { "will-change": "opacity" }, attrs: { value: t.docName, placeholder: t.$t("name.placeholder"), extensions: {
90
+ bulletList: !1,
91
+ heading: [1, 2, 3],
92
+ bold: !1,
93
+ link: !1,
94
+ underline: !1,
95
+ blockquote: !0,
96
+ table: !1
97
+ }, unstyled: "", static: "" }, on: { input: function(s) {
98
+ return t.$emit("update:doc-name", s);
99
+ } } }) : e("div", { staticClass: "quill-custom", domProps: { innerHTML: t._s(t.docName) } })], 1), e("div", { staticClass: "flex justify-between w-full" }, [t.expiresAt ? e("div", { staticClass: "data-group" }, [e("div", { staticClass: "label-text caps" }, [t._v(t._s(t._document.$t("replyBy")))]), e("div", { staticClass: "data-text" }, [t._v(t._s(t.$formatDate(t.expiresAt)))])]) : t._e(), t.docType !== "document" ? e("div", { staticClass: "data-group" }, [e("div", { staticClass: "label-text caps" }, [t._v(t._s(t._document.$t("document").capitalize()))]), e("div", { staticClass: "data-text" }, [t._v(t._s(t._document.$t(`series.${t.docType}`).capitalize()))])]) : t._e(), t.parentSize.width >= 576 ? [t.estimatedTime ? e("div", { staticClass: "data-group" }, [e("div", { staticClass: "label-text caps" }, [t._v(t._s(t.$t("time.estimatedTime")))]), e("div", { staticClass: "data-text" }, [t._v(t._s(t._document.$t("approx")) + " " + t._s(t.estimatedTime))])]) : t._e()] : t._e()], 2)])]);
100
+ }, f = [], g = /* @__PURE__ */ n(
101
+ h,
102
+ v,
103
+ f,
104
+ !1,
105
+ null,
106
+ "f5fa5703",
107
+ null,
108
+ null
109
+ );
110
+ const S = g.exports;
111
+ const x = {
112
+ name: "SummaryBottom",
113
+ mixins: [c([])],
114
+ props: {
115
+ base: {
116
+ type: Object,
117
+ default: null
118
+ },
119
+ options: {
120
+ type: Array,
121
+ default: () => []
122
+ },
123
+ backgroundColor: {
124
+ type: String,
125
+ default: "#4c576d"
126
+ },
127
+ documentCurrency: {
128
+ type: String,
129
+ required: !0
130
+ },
131
+ vatType: {
132
+ type: String,
133
+ required: !0
134
+ }
135
+ },
136
+ inject: ["parentSize"],
137
+ data() {
138
+ return {
139
+ get: r,
140
+ tinycolor: _
141
+ };
142
+ },
143
+ computed: {
144
+ prices() {
145
+ return r(this, "base.prices") || {};
146
+ },
147
+ isIndivid() {
148
+ return r(this.prices, "helpers.isIndivid", !0);
149
+ },
150
+ showIncVat() {
151
+ return this.isIndivid;
152
+ },
153
+ priceTotal() {
154
+ return this.isIndivid ? r(this.prices, "total", null) : r(this.prices, "subTotal", null);
155
+ },
156
+ priceType() {
157
+ return this.prices.type || ["fixed"];
158
+ },
159
+ currency() {
160
+ return this.prices.currency || this.documentCurrency;
161
+ },
162
+ openAccMaxPrice() {
163
+ return this.prices.maxTotal || null;
164
+ },
165
+ houseWorkType() {
166
+ return r(this.prices, "region.houseWorkType", null);
167
+ },
168
+ isReverseVat() {
169
+ return r(this.prices, "region.reverseVat", !1);
170
+ },
171
+ priceTypeString() {
172
+ return this.priceType.includes("openAccMaxPrice") ? this._document.$t("price.openAccMaxPrice") : this.priceType.includes("openAcc") ? this._document.$t("price.openAcc") : this._document.$t("price.price").capitalize();
173
+ },
174
+ priceDeductionVatString() {
175
+ let i = "";
176
+ if (this.isReverseVat && !this.showIncVat) {
177
+ const t = this.priceFormat(0, { currency: this.currency, showZero: !0 });
178
+ return i = this._document.$t("summaryBottom.reverseVat", { amount: t }), i;
179
+ }
180
+ return this.houseWorkType && (i = this._document.$t("deduction.afterType", { type: `${this.houseWorkType}_percentage` })), this.showIncVat && (i += ` ${this._document.$t("vat.incVat", { thing: this._document.$t(`vat.${this.vatType}`) })}`), this.showIncVat || (i += ` ${this._document.$t("vat.exVat", { thing: this._document.$t(`vat.${this.vatType}`) })}`), i.capitalize();
181
+ },
182
+ backgroundSecondary() {
183
+ if (!this.isSmallScreen)
184
+ return { backgroundColor: "transparent" };
185
+ const i = this.backgroundColor.match(/(\d*\.)?\d+/g)[0], t = this.backgroundColor.match(/(\d*\.)?\d+/g)[1], e = this.backgroundColor.match(/(\d*\.)?\d+/g)[2], s = this.backgroundColor.match(/(\d*\.)?\d+/g)[3];
186
+ return {
187
+ backgroundColor: `hsla(${i}, ${t ** 0.9}%, ${e ** 0.9}%, ${s})`
188
+ };
189
+ },
190
+ isSmallScreen() {
191
+ return this.parentSize.width <= 576;
192
+ }
193
+ },
194
+ methods: {
195
+ priceFormat: d,
196
+ scrollToPricing() {
197
+ const i = document.querySelector("#price");
198
+ i && y(i);
199
+ }
200
+ }
201
+ };
202
+ var b = function() {
203
+ var t = this, e = t._self._c;
204
+ return e("section", { staticClass: "summary-bottom-root" }, [e("div", { staticClass: "summary-bottom", style: [
205
+ {
206
+ backgroundColor: t.backgroundColor,
207
+ color: t.tinycolor.readability(t.backgroundColor, "#FFF") > 2.2 ? "#FFF" : "#000"
208
+ },
209
+ t.options.length && {
210
+ overflow: "hidden",
211
+ padding: 0
212
+ }
213
+ ] }, [t.options.length ? e("div", { staticClass: "flex items-center justify-end w-full", staticStyle: { height: "108px" } }, [e("div", { staticStyle: { "text-align": "right", padding: "calc(2 * var(--rem))" } }, [e("div", { staticStyle: { "font-size": "calc(1.5 * var(--rem))", "font-weight": "900" } }, [t._v(t._s(t._document.$t("price.proposal")))]), e("div", [t._v(t._s(t._document.$t("summaryBottom.chooseFrom")))])]), e("div", { staticStyle: { "background-color": "hsla(0, 0%, 0%, 0.15)", paadding: "calc(1 * var(--rem)) calc(2 * var(--rem))", height: "100%", display: "inline-flex" } }, [t.base ? e("div", { staticStyle: { display: "flex", "flex-direction": "column", "align-items": "flex-start", "justify-content": "center", padding: "calc(1 * var(--rem)) calc(1 * var(--rem))", "text-align": "left" } }, [e("div", { staticStyle: { "font-weight": "900", "font-size": "calc(1.5 * var(--rem))" } }, [t._v(t._s(t.priceFormat(t.base.prices.total, { currency: t.currency, decimals: 2, hideZeroDecimals: !0 })))]), e("div", [t._v("+ " + t._s(t._document.$tc("summaryBottom.option", { count: t.options.length })))])]) : e("div", { staticStyle: { padding: "calc(2 * var(--rem))", display: "inline-flex", "align-items": "center", "justify-content": "center", "font-weight": "900", "font-size": "calc(2.5 * var(--rem))" } }, [t._v(" " + t._s(t._document.$t("summaryBottom.noOfOptions", { count: t.options.length })) + " ")])]), e("div", { staticStyle: { "background-color": "hsla(0, 0%, 0%, 0.4)", overflow: "hidden", width: "calc(1.5 * var(--rem))", display: "flex", "flex-direction": "column", "justify-content": "center", "align-items": "center", height: "100%", color: "hsla(0, 0%, 100%, 0.2)" } })]) : e("div", { staticClass: "flex justify-between w-full", class: [
214
+ {
215
+ column: t.isSmallScreen,
216
+ sm: t.isSmallScreen
217
+ }
218
+ ], staticStyle: { position: "relative" } }, [e("div", { staticClass: "flex flex-col w-full", class: [{ "fixed-price-type-string": t.isSmallScreen }], staticStyle: { "background-color": "hsl(224, 57%, 39%)" }, style: [t.backgroundSecondary] }, [e("div", { staticClass: "price-type-string data-text" }, [t._v(" " + t._s(t.priceTypeString) + " ")]), t.isSmallScreen ? t._e() : e("div", { staticClass: "price-deduction-text" }, [t._v(" " + t._s(t.priceDeductionVatString) + " ")])]), t.priceType.some((s) => ["openAcc", "openAccMaxPrice"].includes(s)) ? e("div", { staticClass: "open-acc-wrapper" }, [t.openAccMaxPrice ? e("div", { staticClass: "open-acc-item" }, [e("div", [t._v(t._s(t._document.$t("price.maxPrice").capitalize()) + " " + t._s(t._document.$t("vat.exVat", { thing: t._document.$t(`vat.${t.vatType}`) })) + ":")]), e("div", [t._v(t._s(t.priceFormat(t.openAccMaxPrice, { currency: t.currency })))])]) : t._e(), e("div", { staticClass: "open-acc-link" }, [t._v(" " + t._s(t._document.$t("see").capitalize()) + " "), e("span", { staticStyle: { color: "inherit", cursor: "pointer" }, on: { click: t.scrollToPricing } }, [e("u", [t._v(t._s(t._document.$t("price.price_plural")))])]), t._v(" " + t._s(t._document.$t("summaryBottom.forDetails")) + " ")])]) : e("div", { staticClass: "flex items-center w-full", class: [{ "justify-end": !t.isSmallScreen }] }, [e("div", { staticClass: "data-text", staticStyle: { "font-size": "calc(2 * var(--rem))", "font-weight": "900", "letter-spacing": "1px", "line-height": "1", "padding-bottom": "calc(0.3 * var(--rem))" } }, [t._v(" " + t._s(t.priceType.includes("approx") ? t._document.$t("approx").capitalize() : "") + " " + t._s(t.priceFormat(t.priceTotal, { currency: t.currency, decimals: 2, hideZeroDecimals: !0 })) + " ")])]), t.isSmallScreen ? e("div", { staticClass: "label-text caps price-deduction-text", staticStyle: { "margin-top": "4px" } }, [t._v(" " + t._s(t.priceDeductionVatString) + " ")]) : t._e()])])]);
219
+ }, C = [], $ = /* @__PURE__ */ n(
220
+ x,
221
+ b,
222
+ C,
223
+ !1,
224
+ null,
225
+ "b9c4fb52",
226
+ null,
227
+ null
228
+ );
229
+ const w = $.exports;
230
+ const T = {
231
+ name: "PriceHeader",
232
+ components: {
233
+ SummaryTop: S,
234
+ SummaryBottom: w,
235
+ BlockMedia: l
236
+ },
237
+ mixins: [c([
238
+ "media",
239
+ "backgroundColor",
240
+ "documentName",
241
+ "showPriceSummary",
242
+ "showLogo",
243
+ "logotype"
244
+ ])],
245
+ props: {
246
+ _document: {
247
+ type: Object,
248
+ default: () => ({})
249
+ },
250
+ _value: {
251
+ type: Object,
252
+ default: () => ({})
253
+ },
254
+ hasHover: {
255
+ type: Boolean,
256
+ default: !1
257
+ }
258
+ },
259
+ computed: {
260
+ internalName: {
261
+ get() {
262
+ return this.documentName;
263
+ },
264
+ set(i) {
265
+ this.documentName = i, this.$emit("input", { key: "data.name", value: u(i).trim().slice(0, 255) });
266
+ }
267
+ },
268
+ company() {
269
+ return this._document.sender.company;
270
+ },
271
+ prices() {
272
+ return this._document.prices;
273
+ },
274
+ estimatedTimeString() {
275
+ var e, s;
276
+ const { value: i, unitType: t } = ((s = (e = this._document) == null ? void 0 : e.data) == null ? void 0 : s.estimatedTime) || {};
277
+ return !i || !t ? null : this.$tc(`${t}`, { count: i });
278
+ },
279
+ sendAtShowDate() {
280
+ const { sentAt: i, scheduledFirstDelivery: t } = this._document;
281
+ return i || (t ? t.sendAt : null);
282
+ },
283
+ summaryBottom() {
284
+ var s;
285
+ let i = {
286
+ show: !1,
287
+ backgroundColor: this.backgroundColor || this._document.theme.priceSummaryBackground,
288
+ documentCurrency: this._document.currency,
289
+ vatType: this._document.vatType
290
+ }, { showPriceSummary: t } = this;
291
+ typeof t != "boolean" && ({ showPriceSummary: t } = this._document.theme);
292
+ const e = ((s = this._document.packageGroups) == null ? void 0 : s.packages) || [];
293
+ return e.length > 1 ? i = {
294
+ ...i,
295
+ show: t,
296
+ base: { prices: this.prices },
297
+ options: e.filter(({ toggable: a }) => a).map(({ prices: a }) => ({ prices: a }))
298
+ } : i = {
299
+ ...i,
300
+ show: t && this._document.readPrices && (this.prices.total || this.prices.type.some((a) => ["openAccMaxPrice", "openAcc"].includes(a))),
301
+ base: { prices: this.prices }
302
+ }, this.canEdit && t && (i.show = !0), i.documentCurrency || (i.show = !1), i;
303
+ }
304
+ }
305
+ };
306
+ var k = function() {
307
+ var s, a;
308
+ var t = this, e = t._self._c;
309
+ return e("div", [e("div", { staticClass: "doc-jumbotron-wrapper" }, [e("BlockMedia", { staticClass: "price-media-wrapper", attrs: { media: {
310
+ ...t.media,
311
+ resourceUrl: ((s = t.media) == null ? void 0 : s.resourceUrl) || t._document.theme.background,
312
+ overlayColor: ((a = t.media) == null ? void 0 : a.overlayColor) || t._document.theme.backgroundFilter
313
+ } } }), e("SummaryTop", { attrs: { _document: t._document, "show-logo": t.showLogo, logotype: t.logotype, "company-logotype": t.company.logotype, "sender-name": t.company.name, "doc-type": t._document.docNumber.series, "doc-name": t.internalName, "doc-number": t._document.docNumber.value, "sent-at": t.sendAtShowDate, "expires-at": t._document.expiresAt, "estimated-time": t.estimatedTimeString, "has-hover": t.hasHover }, on: { "update:showLogo": function(o) {
314
+ t.showLogo = o;
315
+ }, "update:show-logo": function(o) {
316
+ t.showLogo = o;
317
+ }, "update:logotype": function(o) {
318
+ t.logotype = o;
319
+ }, "update:docName": function(o) {
320
+ t.internalName = o;
321
+ }, "update:doc-name": function(o) {
322
+ t.internalName = o;
323
+ } } })], 1), t.summaryBottom.show ? e("SummaryBottom", t._b({ attrs: { _document: t._document } }, "SummaryBottom", t.summaryBottom, !1)) : t._e()], 1);
324
+ }, A = [], B = /* @__PURE__ */ n(
325
+ T,
326
+ k,
327
+ A,
328
+ !1,
329
+ null,
330
+ "ec1e6111",
331
+ null,
332
+ null
333
+ );
334
+ const R = B.exports;
335
+ export {
336
+ R as default
337
+ };
@@ -1,5 +1,5 @@
1
- import { g as u, p as h, e as f, f as d, n as m } from "./main-8c6aae3a.js";
2
- import { d as p } from "./CDropdownItem-32216ea8.js";
1
+ import { g as u, p as h, d as f, e as d, n as m } from "./main-cf622dd3.js";
2
+ import { d as p } from "./CDropdownItem-ab42f924.js";
3
3
  import { m as y, a as g } from "./vuex.esm-4a0fff7c.js";
4
4
  const A = {
5
5
  name: "SearchApi",
@@ -1,9 +1,9 @@
1
- import { e as m, z as o, n as v } from "./main-8c6aae3a.js";
2
- import { m as c } from "./mapFormMixin-fe8972cd.js";
3
- import g from "./Index-170e6883.js";
4
- import "./DocModalBase-a4f82cb3.js";
5
- import "./DocumentLayout-3882fade.js";
6
- import "./CDropdownItem-32216ea8.js";
1
+ import { d as m, z as o, n as v } from "./main-cf622dd3.js";
2
+ import { m as c } from "./mapFormMixin-490a1765.js";
3
+ import g from "./Index-6c782bef.js";
4
+ import "./DocModalBase-8c238a59.js";
5
+ import "./DocumentLayout-2ff55f9f.js";
6
+ import "./CDropdownItem-ab42f924.js";
7
7
  const p = {
8
8
  i18nOptions: {
9
9
  namespaces: "terms",
@@ -91,17 +91,17 @@ var u = function() {
91
91
  } } }, [t._v(t._s(t.$t("notSet")))]), t.terms.ids.length ? t._e() : e("CDropdownItem", { attrs: { disabled: "" } }, [t._v(t._s(t.$t("noResults")))])], 2), t.viewSettings.isPublicForm ? e("CCallout", { staticStyle: { margin: "1em 0" }, attrs: { title: t.$t("publicFormCalloutTitle"), size: "small" } }, [t._v(" " + t._s(t.$t("publicFormCallout")) + " ")]) : t._e(), t.term ? e("TermsDisclaimer", { attrs: { _document: t._document, "term-type": t.term.type, href: t.term.href, text: t.term.text, file: t.term.file }, scopedSlots: t._u([{ key: "default", fn: function({ openTerms: a }) {
92
92
  return [e("CButton", { staticStyle: { "margin-top": "5px" }, attrs: { type: "none", pattern: "secondary", size: "small", "icon-left": "eye" }, on: { click: a } }, [t._v(" " + t._s(t.$t("show")) + " ")])];
93
93
  } }], null, !1, 1475186016) }) : t._e()], 1);
94
- }, f = [], h = /* @__PURE__ */ v(
94
+ }, h = [], f = /* @__PURE__ */ v(
95
95
  p,
96
96
  u,
97
- f,
97
+ h,
98
98
  !1,
99
99
  null,
100
- "d64f938f",
100
+ "c638afcb",
101
101
  null,
102
102
  null
103
103
  );
104
- const C = h.exports;
104
+ const C = f.exports;
105
105
  export {
106
106
  C as default
107
107
  };
@@ -1,6 +1,6 @@
1
1
  import { h as a } from "./color-71c20583.js";
2
- import { C as l } from "./ColorPicker-4a830e26.js";
3
- import { n as i } from "./main-8c6aae3a.js";
2
+ import { C as l } from "./ColorPicker-4880a624.js";
3
+ import { n as i } from "./main-cf622dd3.js";
4
4
  const f = (o, e = {}) => {
5
5
  if (!o || !o.startsWith("https://images.unsplash.com/") || !Object.keys(e || {}).length)
6
6
  return o;
@@ -61,7 +61,7 @@ var p = function() {
61
61
  u,
62
62
  !1,
63
63
  null,
64
- "066e85b2",
64
+ "49bdae6b",
65
65
  null,
66
66
  null
67
67
  );
@@ -1,6 +1,6 @@
1
- import { m as i } from "./mapFormMixin-fe8972cd.js";
2
- import { I as t } from "./InputToggleRow-3764a034.js";
3
- import { n as l } from "./main-8c6aae3a.js";
1
+ import { m as i } from "./mapFormMixin-490a1765.js";
2
+ import { I as t } from "./InputToggleRow-533651e6.js";
3
+ import { n as l } from "./main-cf622dd3.js";
4
4
  const s = {
5
5
  name: "ToggleBinding",
6
6
  i18nOptions: {
@@ -1,7 +1,7 @@
1
- import l from "./Index-0cb341e6.js";
2
- import { e as o, h as c, A as d, n as m } from "./main-8c6aae3a.js";
1
+ import l from "./Index-4bbfdb2e.js";
2
+ import { d as o, h as c, A as d, n as m } from "./main-cf622dd3.js";
3
3
  import { m as p } from "./vuex.esm-4a0fff7c.js";
4
- import "./tinycolor-c5753ad0.js";
4
+ import "./tinycolor-9f3cc25c.js";
5
5
  const u = {
6
6
  i18nOptions: {
7
7
  namespaces: "uploadModal",
@@ -86,7 +86,7 @@ var _ = function() {
86
86
  h,
87
87
  !1,
88
88
  null,
89
- "a82ceaee",
89
+ "8f3a44fa",
90
90
  null,
91
91
  null
92
92
  );
@@ -1,6 +1,6 @@
1
- import { d as a } from "./CDropdownItem-32216ea8.js";
2
- import { v as l } from "./utils-8c0b7aab.js";
3
- import { n } from "./main-8c6aae3a.js";
1
+ import { d as a } from "./CDropdownItem-ab42f924.js";
2
+ import { v as l } from "./utils-fb02e603.js";
3
+ import { n } from "./main-cf622dd3.js";
4
4
  const r = {
5
5
  name: "VideoPlayerInput",
6
6
  i18nOptions: {
@@ -1,7 +1,7 @@
1
- import n from "./VideoPlayerInput-d53ffa5e.js";
2
- import { n as s } from "./main-8c6aae3a.js";
3
- import "./CDropdownItem-32216ea8.js";
4
- import "./utils-8c0b7aab.js";
1
+ import n from "./VideoPlayerInput-4d7f302a.js";
2
+ import { n as s } from "./main-cf622dd3.js";
3
+ import "./CDropdownItem-ab42f924.js";
4
+ import "./utils-fb02e603.js";
5
5
  const l = {
6
6
  i18nOptions: {
7
7
  namespaces: "components",
@@ -55,7 +55,7 @@ var r = function() {
55
55
  d,
56
56
  !1,
57
57
  null,
58
- "2190dbf6",
58
+ "62d734bc",
59
59
  null,
60
60
  null
61
61
  );