@cling-se/widget 0.9.15 → 0.9.17

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 (133) hide show
  1. package/dist/{AddClientCallout-ab49f62b.js → AddClientCallout-064aede9.js} +5 -5
  2. package/dist/{AnswerModal-2fde5937.js → AnswerModal-f00b2576.js} +3 -3
  3. package/dist/{AttachmentItem-e54af2bb.js → AttachmentItem-614ed2ea.js} +3 -3
  4. package/dist/{BaseDatePicker-cb470a9e.js → BaseDatePicker-99d99f2b.js} +1 -1
  5. package/dist/{BaseInput-3d9f4279.js → BaseInput-4ee00e7a.js} +1 -1
  6. package/dist/{BaseUpload-26e05a5c.js → BaseUpload-7d9dd124.js} +2 -2
  7. package/dist/{BlockMedia-8cded5ef.js → BlockMedia-354eff33.js} +1 -1
  8. package/dist/{CCallout-a561eca4.js → CCallout-764d08cd.js} +2 -2
  9. package/dist/{CDropdownItem-df2fa4e1.js → CDropdownItem-ef2d7897.js} +1 -1
  10. package/dist/{CField-6545c8d4.js → CField-f8b8481d.js} +1 -1
  11. package/dist/{CSlider.vue_vue_type_style_index_0_lang-a27aef22.js → CSlider.vue_vue_type_style_index_0_lang-4a1c5561.js} +1 -1
  12. package/dist/{ClientAutocomplete-6d25f1ac.js → ClientAutocomplete-04d85a96.js} +2 -2
  13. package/dist/{ClientModal-f954d9e4.js → ClientModal-56731bee.js} +10 -12
  14. package/dist/{ColorPicker-b81d49dc.js → ColorPicker-15579f77.js} +1 -1
  15. package/dist/{CompanyModal-3c0542ed.js → CompanyModal-49b3f20e.js} +3 -3
  16. package/dist/{ContentWrapper-023e7d2e.js → ContentWrapper-6315056f.js} +12 -12
  17. package/dist/{CoverBlockSettings-bf46f7c3.js → CoverBlockSettings-34313ba7.js} +8 -8
  18. package/dist/{DocAnswer-9e30ed6c.js → DocAnswer-a53c34f6.js} +4 -4
  19. package/dist/{DocForm-d0be2afd.js → DocForm-bf97c67e.js} +577 -507
  20. package/dist/{DocFormSend-2257bdb8.js → DocFormSend-1247c216.js} +17 -17
  21. package/dist/{DocLinks-49de3d35.js → DocLinks-8bbcbd46.js} +2 -2
  22. package/dist/{DocModalBase-2e474321.js → DocModalBase-e1dee9d6.js} +1 -1
  23. package/dist/{DocPrint-b31bfe3e.js → DocPrint-dcb6b719.js} +1 -1
  24. package/dist/{DocReceipt-b28fa3e6.js → DocReceipt-d03ff3f1.js} +1 -1
  25. package/dist/{DocSendReminder-04ff970b.js → DocSendReminder-ecc36aca.js} +1 -1
  26. package/dist/{DocTextEditor-a4dc3100.js → DocTextEditor-f4b51510.js} +8 -8
  27. package/dist/{DocTimeline-c1078cae.js → DocTimeline-28430a90.js} +1 -1
  28. package/dist/{DocumentClient-0f32e0c9.js → DocumentClient-ade9af67.js} +6 -6
  29. package/dist/{DocumentLayout-9d7c3945.js → DocumentLayout-632a6f98.js} +3 -3
  30. package/dist/{DocumentLogotype-53f70c53.js → DocumentLogotype-dacee892.js} +3 -3
  31. package/dist/{EmbedInput-d69ce4f8.js → EmbedInput-a3868460.js} +2 -2
  32. package/dist/{EmbedSettings-2ec76322.js → EmbedSettings-4e3d8c41.js} +3 -3
  33. package/dist/{ErrorCallout-73785234.js → ErrorCallout-d05d6cc2.js} +1 -1
  34. package/dist/{FilePreviewModal-109c7b33.js → FilePreviewModal-31b883c3.js} +4 -4
  35. package/dist/{HeaderSettings-3d83ccfc.js → HeaderSettings-131840ed.js} +15 -15
  36. package/dist/{ImageSelectModal-75c53e98.js → ImageSelectModal-7706f79f.js} +8 -8
  37. package/dist/{ImageUploadWrapper-decbb774.js → ImageUploadWrapper-65d04b72.js} +2 -2
  38. package/dist/{Index-bff9c5af.js → Index-0dbc20a5.js} +30 -36
  39. package/dist/{Index-a1f511d2.js → Index-17db3981.js} +2 -2
  40. package/dist/{Index-d9879953.js → Index-1ec70336.js} +4 -4
  41. package/dist/{Index-d937a089.js → Index-21b9ef50.js} +2 -2
  42. package/dist/{Index-47fb4f85.js → Index-275a26f3.js} +4 -4
  43. package/dist/{Index-ffd4628c.js → Index-3a278b14.js} +4 -4
  44. package/dist/{Index-cc254b04.js → Index-4ecb48f7.js} +4 -4
  45. package/dist/{Index-226c110a.js → Index-51f43342.js} +2 -2
  46. package/dist/Index-5204e965.js +59 -0
  47. package/dist/{Index-5ec00453.js → Index-63a45208.js} +23 -29
  48. package/dist/{Index-55e3cefd.js → Index-6a2c0245.js} +4 -4
  49. package/dist/{Index-d0baff52.js → Index-860706da.js} +9 -9
  50. package/dist/{Index-dca7a282.js → Index-8c45d1e8.js} +4 -4
  51. package/dist/{Index-1ce1aa40.js → Index-9275b550.js} +3 -3
  52. package/dist/{Index-be17e087.js → Index-a6deb4ef.js} +2 -2
  53. package/dist/{Index-f553b37b.js → Index-b7ee6604.js} +1 -1
  54. package/dist/{Index-49b4cd87.js → Index-c1782811.js} +2 -2
  55. package/dist/{Index-fb376836.js → Index-c217198e.js} +5 -5
  56. package/dist/{Index-c6cfa7d2.js → Index-c3cf1a7a.js} +35 -26
  57. package/dist/{Index-22d94abb.js → Index-c5a2140d.js} +1 -1
  58. package/dist/{Index-73c44a65.js → Index-c5d2a3f3.js} +2 -2
  59. package/dist/{Index-63310172.js → Index-ca586e17.js} +13 -13
  60. package/dist/{Index-e09c49fe.js → Index-d3789f66.js} +5 -5
  61. package/dist/{Index-a463bce9.js → Index-d4b5163a.js} +4 -4
  62. package/dist/{Index-155458e8.js → Index-d54abcde.js} +6 -6
  63. package/dist/{Index-5469b8ea.js → Index-d54ff9f5.js} +8 -8
  64. package/dist/{Index-1b28d760.js → Index-d9dd3c6b.js} +7 -7
  65. package/dist/{Index-d3807403.js → Index-de220060.js} +2 -2
  66. package/dist/{Index-50af499a.js → Index-e9c20129.js} +19 -22
  67. package/dist/{Index-10bfb47a.js → Index-eb5ab752.js} +2 -2
  68. package/dist/{Index-0ee59b64.js → Index-f465338a.js} +4 -4
  69. package/dist/{Index-837d1c1e.js → Index-f7e348e2.js} +12 -12
  70. package/dist/Index-fb7d681c.js +72 -0
  71. package/dist/{Index-ce221abf.js → Index-ffb5b6ae.js} +4 -4
  72. package/dist/{InputToggleRow-30c797ff.js → InputToggleRow-281e90c1.js} +1 -1
  73. package/dist/{IsPremiumPreStep-29ac5130.js → IsPremiumPreStep-b1384bb4.js} +440 -290
  74. package/dist/{ManualPopover-e29aec0f.js → ManualPopover-d5ea2774.js} +1 -1
  75. package/dist/{MediaWrapper-5ab8b512.js → MediaWrapper-a0b4ebe8.js} +3 -3
  76. package/dist/{NotBindingText-52e7d568.js → NotBindingText-67a1409e.js} +2 -2
  77. package/dist/{PackageGroup-a8ba9e0c.js → PackageGroup-29439e17.js} +11 -11
  78. package/dist/{PdfTerms-3070a25a.js → PdfTerms-2e6c0285.js} +4 -4
  79. package/dist/{PdfViewer-ccf3911c.js → PdfViewer-371b5058.js} +2 -2
  80. package/dist/{PlainHtml-ae01e2c1.js → PlainHtml-c70dc350.js} +1 -1
  81. package/dist/PriceHeader-5ff405b6.js +339 -0
  82. package/dist/{SearchApi-c4b052bb.js → SearchApi-b14c893f.js} +2 -2
  83. package/dist/{Setup-1317a382.js → Setup-4d84f86a.js} +1 -1
  84. package/dist/{TermsSettings-01af3b70.js → TermsSettings-7072778d.js} +6 -6
  85. package/dist/{ThemeColorRow-269ca4a8.js → ThemeColorRow-37a17ce4.js} +3 -3
  86. package/dist/{ToggleBinding-dad24847.js → ToggleBinding-e04d9dfc.js} +3 -3
  87. package/dist/{UploadModal-0b1b4fdc.js → UploadModal-39f04624.js} +3 -3
  88. package/dist/{VideoPlayerInput-549aefde.js → VideoPlayerInput-55ab9dd1.js} +3 -3
  89. package/dist/{VideoPlayerSettings-ae3426d4.js → VideoPlayerSettings-1d2507e8.js} +4 -4
  90. package/dist/{VideoSelectModal-02d28522.js → VideoSelectModal-c158c88b.js} +7 -7
  91. package/dist/{answerDocumentMixin-7be9822c.js → answerDocumentMixin-5711c3ae.js} +3 -3
  92. package/dist/{cssMode-69bff585.js → cssMode-b85ed111.js} +7 -7
  93. package/dist/focusDrawerMixin-5139ff2d.js +22 -0
  94. package/dist/{formComponentsInstall-ff788fa4.js → formComponentsInstall-ea9fe0f1.js} +12 -12
  95. package/dist/formDrawerState-872f6c63.js +20 -0
  96. package/dist/{formValidationMixin-7af4cf59.js → formValidationMixin-20797066.js} +1 -1
  97. package/dist/{freemarker2-c8b91e6a.js → freemarker2-db773dc4.js} +7 -7
  98. package/dist/{handlebars-407a195e.js → handlebars-f4e59d92.js} +7 -7
  99. package/dist/{html-9fbb1e72.js → html-60722cac.js} +7 -7
  100. package/dist/{htmlMode-a62a60c0.js → htmlMode-699d17ac.js} +7 -7
  101. package/dist/{image-b55f2afd.js → image-c4536036.js} +1 -1
  102. package/dist/{index-d71d06aa.js → index-01a9890c.js} +2 -2
  103. package/dist/{index-793542d1.js → index-1f9bf410.js} +8 -8
  104. package/dist/{index-21eac157.js → index-a0dcb949.js} +1 -1
  105. package/dist/{index-76693b13.js → index-b5312c69.js} +4 -4
  106. package/dist/{index-dfb4db64.js → index-b6204795.js} +1 -1
  107. package/dist/{index-016c9a62.js → index-d9683bc3.js} +4 -4
  108. package/dist/index.es.js +3 -3
  109. package/dist/index.umd.js +452 -452
  110. package/dist/{javascript-09ef29cb.js → javascript-10d90d6d.js} +8 -8
  111. package/dist/{jsonMode-10afc369.js → jsonMode-7689792e.js} +7 -7
  112. package/dist/{liquid-233a80fe.js → liquid-d3d3f6d5.js} +7 -7
  113. package/dist/{main-d566af3b.js → main-9daa18a1.js} +7142 -7097
  114. package/dist/{mapFormMixin-c6d17f7c.js → mapFormMixin-1236b266.js} +1 -1
  115. package/dist/{publicSenderState-1c913217.js → publicSenderState-5036fa9a.js} +1 -1
  116. package/dist/{python-90cbed7b.js → python-29472e5e.js} +7 -7
  117. package/dist/{razor-0f34f5b0.js → razor-2dfcf495.js} +7 -7
  118. package/dist/{simplebar.min-7b840f57.js → simplebar.min-8422a634.js} +1 -1
  119. package/dist/style.css +2 -2
  120. package/dist/{template-6c789e3b.js → template-282dfd7f.js} +1 -1
  121. package/dist/{throttle-b4fba152.js → throttle-d4af9020.js} +2 -2
  122. package/dist/{tinycolor-72610713.js → tinycolor-e750ced7.js} +1 -1
  123. package/dist/{tippy.esm-c1d37448.js → tippy.esm-ae169d52.js} +5 -5
  124. package/dist/{tsMode-26efb298.js → tsMode-af13fa75.js} +7 -7
  125. package/dist/{typescript-06af0784.js → typescript-278dd0a0.js} +7 -7
  126. package/dist/{utils-9efb546e.js → utils-a1170d9a.js} +1 -1
  127. package/dist/{vuedraggable.umd-64934a87.js → vuedraggable.umd-e860e729.js} +1 -1
  128. package/dist/{xml-7b0b742f.js → xml-2214e1d4.js} +7 -7
  129. package/package.json +2 -3
  130. package/dist/Index-30e95a66.js +0 -76
  131. package/dist/Index-f38920d4.js +0 -69
  132. package/dist/PriceHeader-41fd73c8.js +0 -338
  133. package/dist/focusDrawerMixin-1a22fcb0.js +0 -68
@@ -1,4 +1,4 @@
1
- import { n as s } from "./main-d566af3b.js";
1
+ import { n as s } from "./main-9daa18a1.js";
2
2
  const r = {
3
3
  name: "ManualPopover",
4
4
  data() {
@@ -1,6 +1,6 @@
1
- import { B as n } from "./BlockMedia-8cded5ef.js";
2
- import { m as a } from "./mapFormMixin-c6d17f7c.js";
3
- import { n as m } from "./main-d566af3b.js";
1
+ import { B as n } from "./BlockMedia-354eff33.js";
2
+ import { m as a } from "./mapFormMixin-1236b266.js";
3
+ import { n as m } from "./main-9daa18a1.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-ae01e2c1.js";
2
- import { n as e } from "./main-d566af3b.js";
1
+ import { P as t } from "./PlainHtml-c70dc350.js";
2
+ import { n as e } from "./main-9daa18a1.js";
3
3
  const r = {
4
4
  name: "NotBindingText",
5
5
  i18nOptions: {
@@ -1,16 +1,16 @@
1
- import { t as m } from "./tinycolor-72610713.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-d566af3b.js";
3
- import { E as x } from "./ErrorCallout-73785234.js";
4
- import { m as _ } from "./mapFormMixin-c6d17f7c.js";
5
- import { T as b } from "./DocTextEditor-a4dc3100.js";
6
- import "./tippy.esm-c1d37448.js";
7
- import "./ColorPicker-b81d49dc.js";
8
- import "./DocumentLayout-9d7c3945.js";
9
- import "./CDropdownItem-df2fa4e1.js";
10
- import "./CSlider.vue_vue_type_style_index_0_lang-a27aef22.js";
1
+ import { t as m } from "./tinycolor-e750ced7.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-9daa18a1.js";
3
+ import { E as x } from "./ErrorCallout-d05d6cc2.js";
4
+ import { m as _ } from "./mapFormMixin-1236b266.js";
5
+ import { T as b } from "./DocTextEditor-f4b51510.js";
6
+ import "./tippy.esm-ae169d52.js";
7
+ import "./ColorPicker-15579f77.js";
8
+ import "./DocumentLayout-632a6f98.js";
9
+ import "./CDropdownItem-ef2d7897.js";
10
+ import "./CSlider.vue_vue_type_style_index_0_lang-4a1c5561.js";
11
11
  import "./dom-d4731032.js";
12
12
  import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
13
- import "./ManualPopover-e29aec0f.js";
13
+ import "./ManualPopover-d5ea2774.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-ccf3911c.js";
2
- import { n as t } from "./main-d566af3b.js";
1
+ import { V as s } from "./PdfViewer-371b5058.js";
2
+ import { n as t } from "./main-9daa18a1.js";
3
3
  import "./dom-d4731032.js";
4
- import "./DocumentLayout-9d7c3945.js";
5
- import "./CDropdownItem-df2fa4e1.js";
4
+ import "./DocumentLayout-632a6f98.js";
5
+ import "./CDropdownItem-ef2d7897.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-d566af3b.js";
1
+ import { n as u, M as g } from "./main-9daa18a1.js";
2
2
  import { e as d } from "./dom-d4731032.js";
3
- import { W as m } from "./DocumentLayout-9d7c3945.js";
3
+ import { W as m } from "./DocumentLayout-632a6f98.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-d566af3b.js";
1
+ import { n as r } from "./main-9daa18a1.js";
2
2
  const e = {
3
3
  name: "PlainHtml"
4
4
  };
@@ -0,0 +1,339 @@
1
+ import { m as c } from "./mapFormMixin-1236b266.js";
2
+ import { B as l } from "./BlockMedia-354eff33.js";
3
+ import { n, b as r, s as d, a3 as m } from "./main-9daa18a1.js";
4
+ import { T as u } from "./DocTextEditor-f4b51510.js";
5
+ import { i as p } from "./i18nMessages-45c6bfd6.js";
6
+ import { t as _ } from "./tinycolor-e750ced7.js";
7
+ import { s as y } from "./dom-d4731032.js";
8
+ import "./color-71c20583.js";
9
+ import "./tippy.esm-ae169d52.js";
10
+ import "./ColorPicker-15579f77.js";
11
+ import "./DocumentLayout-632a6f98.js";
12
+ import "./CDropdownItem-ef2d7897.js";
13
+ import "./CSlider.vue_vue_type_style_index_0_lang-4a1c5561.js";
14
+ import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
15
+ import "./ManualPopover-d5ea2774.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-dacee892.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 || ((i = this._document.data) == null ? void 0 : i.name) || "";
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
+ "cf1c9ea2",
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-d566af3b.js";
2
- import { d as p } from "./CDropdownItem-df2fa4e1.js";
1
+ import { g as u, p as h, f, i as d, n as m } from "./main-9daa18a1.js";
2
+ import { d as p } from "./CDropdownItem-ef2d7897.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-d566af3b.js";
1
+ import { n as s, c as o, e as c } from "./main-9daa18a1.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-d566af3b.js";
2
- import { m as c } from "./mapFormMixin-c6d17f7c.js";
3
- import g from "./Index-155458e8.js";
4
- import "./DocModalBase-2e474321.js";
5
- import "./DocumentLayout-9d7c3945.js";
6
- import "./CDropdownItem-df2fa4e1.js";
1
+ import { f as m, A as o, n as v } from "./main-9daa18a1.js";
2
+ import { m as c } from "./mapFormMixin-1236b266.js";
3
+ import g from "./Index-d54abcde.js";
4
+ import "./DocModalBase-e1dee9d6.js";
5
+ import "./DocumentLayout-632a6f98.js";
6
+ import "./CDropdownItem-ef2d7897.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-b81d49dc.js";
3
- import { M as s } from "./ManualPopover-e29aec0f.js";
4
- import { n as a } from "./main-d566af3b.js";
2
+ import { C as l } from "./ColorPicker-15579f77.js";
3
+ import { M as s } from "./ManualPopover-d5ea2774.js";
4
+ import { n as a } from "./main-9daa18a1.js";
5
5
  const i = {
6
6
  name: "ThemeColorRow",
7
7
  components: {
@@ -1,6 +1,6 @@
1
- import { m as i } from "./mapFormMixin-c6d17f7c.js";
2
- import { I as t } from "./InputToggleRow-30c797ff.js";
3
- import { n as l } from "./main-d566af3b.js";
1
+ import { m as i } from "./mapFormMixin-1236b266.js";
2
+ import { I as t } from "./InputToggleRow-281e90c1.js";
3
+ import { n as l } from "./main-9daa18a1.js";
4
4
  const s = {
5
5
  name: "ToggleBinding",
6
6
  i18nOptions: {
@@ -1,7 +1,7 @@
1
- import l from "./Index-10bfb47a.js";
2
- import { f as o, h as c, B as d, n as m } from "./main-d566af3b.js";
1
+ import l from "./Index-eb5ab752.js";
2
+ import { f as o, h as c, B as d, n as m } from "./main-9daa18a1.js";
3
3
  import { m as p } from "./vuex.esm-4a0fff7c.js";
4
- import "./tinycolor-72610713.js";
4
+ import "./tinycolor-e750ced7.js";
5
5
  const u = {
6
6
  i18nOptions: {
7
7
  namespaces: "uploadModal",
@@ -1,6 +1,6 @@
1
- import { d as a } from "./CDropdownItem-df2fa4e1.js";
2
- import { v as l } from "./utils-9efb546e.js";
3
- import { n } from "./main-d566af3b.js";
1
+ import { d as a } from "./CDropdownItem-ef2d7897.js";
2
+ import { v as l } from "./utils-a1170d9a.js";
3
+ import { n } from "./main-9daa18a1.js";
4
4
  const r = {
5
5
  name: "VideoPlayerInput",
6
6
  i18nOptions: {
@@ -1,7 +1,7 @@
1
- import n from "./VideoPlayerInput-549aefde.js";
2
- import { n as s } from "./main-d566af3b.js";
3
- import "./CDropdownItem-df2fa4e1.js";
4
- import "./utils-9efb546e.js";
1
+ import n from "./VideoPlayerInput-55ab9dd1.js";
2
+ import { n as s } from "./main-9daa18a1.js";
3
+ import "./CDropdownItem-ef2d7897.js";
4
+ import "./utils-a1170d9a.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-d566af3b.js";
2
- import { B as _, a as y } from "./index-76693b13.js";
3
- import x from "./VideoPlayerInput-549aefde.js";
4
- import "./CDropdownItem-df2fa4e1.js";
5
- import "./throttle-b4fba152.js";
1
+ import { c as h, n as f, l as g } from "./main-9daa18a1.js";
2
+ import { B as _, a as y } from "./index-b5312c69.js";
3
+ import x from "./VideoPlayerInput-55ab9dd1.js";
4
+ import "./CDropdownItem-ef2d7897.js";
5
+ import "./throttle-d4af9020.js";
6
6
  import "./dom-d4731032.js";
7
- import "./simplebar.min-7b840f57.js";
8
- import "./utils-9efb546e.js";
7
+ import "./simplebar.min-8422a634.js";
8
+ import "./utils-a1170d9a.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-d566af3b.js";
2
- import { w as l } from "./CDropdownItem-df2fa4e1.js";
1
+ import { b as r } from "./main-9daa18a1.js";
2
+ import { w as l } from "./CDropdownItem-ef2d7897.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-2fde5937.js");
29
+ const n = this.mq === "sm" ? "100%" : "auto", a = () => import("./AnswerModal-f00b2576.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-c6cfa7d2.js";
5
- import "./mapFormMixin-c6d17f7c.js";
6
- import "./main-d566af3b.js";
7
- import "./throttle-b4fba152.js";
8
- import "./CDropdownItem-df2fa4e1.js";
4
+ import { m as je } from "./Index-c3cf1a7a.js";
5
+ import "./mapFormMixin-1236b266.js";
6
+ import "./main-9daa18a1.js";
7
+ import "./throttle-d4af9020.js";
8
+ import "./CDropdownItem-ef2d7897.js";
9
9
  import "./splitpanes-ba7897bf.js";
10
- import "./DocumentLayout-9d7c3945.js";
11
- import "./template-6c789e3b.js";
10
+ import "./DocumentLayout-632a6f98.js";
11
+ import "./template-282dfd7f.js";
12
12
  /*!-----------------------------------------------------------------------------
13
13
  * Copyright (c) Microsoft Corporation. All rights reserved.
14
14
  * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
@@ -0,0 +1,22 @@
1
+ import { s as o } from "./formDrawerState-872f6c63.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
+ };
@@ -1,16 +1,16 @@
1
1
  import { b as H, m as g } from "./vuex.esm-4a0fff7c.js";
2
- import { s as q } from "./simplebar.min-7b840f57.js";
3
- import { m } from "./mapFormMixin-c6d17f7c.js";
4
- import { B as I } from "./BaseDatePicker-cb470a9e.js";
5
- import { E as j } from "./ErrorCallout-73785234.js";
6
- import { I as K, a as W, r as l } from "./IsPremiumPreStep-29ac5130.js";
7
- import { n as o, an as O, ao as v, h as X, b as c, ap as U, o as Q, aq as Y, ar as G, q as P, as as T, at as R, d as M, D as y } from "./main-d566af3b.js";
8
- import J from "./AddClientCallout-ab49f62b.js";
9
- import Z from "./ClientModal-f954d9e4.js";
10
- import { c as ee, r as te, g as ie, C as h, b as f, e as p } from "./CDropdownItem-df2fa4e1.js";
11
- import { S as se } from "./CSlider.vue_vue_type_style_index_0_lang-a27aef22.js";
12
- import { C as _ } from "./CCallout-a561eca4.js";
13
- import { C as z } from "./CField-6545c8d4.js";
2
+ import { s as q } from "./simplebar.min-8422a634.js";
3
+ import { m } from "./mapFormMixin-1236b266.js";
4
+ import { B as I } from "./BaseDatePicker-99d99f2b.js";
5
+ import { E as j } from "./ErrorCallout-d05d6cc2.js";
6
+ import { I as K, a as W, r as l } from "./IsPremiumPreStep-b1384bb4.js";
7
+ import { n as o, an as O, ao as v, h as X, b as c, ap as U, o as Q, aq as Y, ar as G, q as P, as as T, at as R, d as M, D as y } from "./main-9daa18a1.js";
8
+ import J from "./AddClientCallout-064aede9.js";
9
+ import Z from "./ClientModal-56731bee.js";
10
+ import { c as ee, r as te, g as ie, C as h, b as f, e as p } from "./CDropdownItem-ef2d7897.js";
11
+ import { S as se } from "./CSlider.vue_vue_type_style_index_0_lang-4a1c5561.js";
12
+ import { C as _ } from "./CCallout-764d08cd.js";
13
+ import { C as z } from "./CField-f8b8481d.js";
14
14
  const ne = {
15
15
  name: "DocumentSendReminderItem",
16
16
  props: {