@cling-se/widget 0.9.16 → 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-1348821d.js → AddClientCallout-064aede9.js} +5 -5
  2. package/dist/{AnswerModal-73bfc112.js → AnswerModal-f00b2576.js} +3 -3
  3. package/dist/{AttachmentItem-1b9e1170.js → AttachmentItem-614ed2ea.js} +3 -3
  4. package/dist/{BaseDatePicker-1e3422da.js → BaseDatePicker-99d99f2b.js} +1 -1
  5. package/dist/{BaseInput-70aa2f9d.js → BaseInput-4ee00e7a.js} +1 -1
  6. package/dist/{BaseUpload-27cbe3b2.js → BaseUpload-7d9dd124.js} +2 -2
  7. package/dist/{BlockMedia-0f41fb43.js → BlockMedia-354eff33.js} +1 -1
  8. package/dist/{CCallout-faf80dfb.js → CCallout-764d08cd.js} +2 -2
  9. package/dist/{CDropdownItem-13f6bf72.js → CDropdownItem-ef2d7897.js} +1 -1
  10. package/dist/{CField-1aa7c4ab.js → CField-f8b8481d.js} +1 -1
  11. package/dist/{CSlider.vue_vue_type_style_index_0_lang-879e8c05.js → CSlider.vue_vue_type_style_index_0_lang-4a1c5561.js} +1 -1
  12. package/dist/{ClientAutocomplete-94a42966.js → ClientAutocomplete-04d85a96.js} +2 -2
  13. package/dist/{ClientModal-b3ec6c4e.js → ClientModal-56731bee.js} +10 -12
  14. package/dist/{ColorPicker-debcfab1.js → ColorPicker-15579f77.js} +1 -1
  15. package/dist/{CompanyModal-8cf32258.js → CompanyModal-49b3f20e.js} +3 -3
  16. package/dist/{ContentWrapper-c0a17123.js → ContentWrapper-6315056f.js} +12 -12
  17. package/dist/{CoverBlockSettings-0b289e31.js → CoverBlockSettings-34313ba7.js} +8 -8
  18. package/dist/{DocAnswer-91248c64.js → DocAnswer-a53c34f6.js} +4 -4
  19. package/dist/{DocForm-91ae8830.js → DocForm-bf97c67e.js} +577 -507
  20. package/dist/{DocFormSend-0288bd11.js → DocFormSend-1247c216.js} +17 -17
  21. package/dist/{DocLinks-0b74ba52.js → DocLinks-8bbcbd46.js} +2 -2
  22. package/dist/{DocModalBase-04a8975b.js → DocModalBase-e1dee9d6.js} +1 -1
  23. package/dist/{DocPrint-f4f49825.js → DocPrint-dcb6b719.js} +1 -1
  24. package/dist/{DocReceipt-7f49dbc7.js → DocReceipt-d03ff3f1.js} +1 -1
  25. package/dist/{DocSendReminder-3059f0b3.js → DocSendReminder-ecc36aca.js} +1 -1
  26. package/dist/{DocTextEditor-570f3d62.js → DocTextEditor-f4b51510.js} +8 -8
  27. package/dist/{DocTimeline-fe15c761.js → DocTimeline-28430a90.js} +1 -1
  28. package/dist/{DocumentClient-685c2a72.js → DocumentClient-ade9af67.js} +6 -6
  29. package/dist/{DocumentLayout-1222a5f8.js → DocumentLayout-632a6f98.js} +3 -3
  30. package/dist/{DocumentLogotype-b12feaae.js → DocumentLogotype-dacee892.js} +3 -3
  31. package/dist/{EmbedInput-a1b00bd5.js → EmbedInput-a3868460.js} +2 -2
  32. package/dist/{EmbedSettings-33a765a6.js → EmbedSettings-4e3d8c41.js} +3 -3
  33. package/dist/{ErrorCallout-d7d78926.js → ErrorCallout-d05d6cc2.js} +1 -1
  34. package/dist/{FilePreviewModal-877e5aaa.js → FilePreviewModal-31b883c3.js} +4 -4
  35. package/dist/{HeaderSettings-1b8d8783.js → HeaderSettings-131840ed.js} +15 -15
  36. package/dist/{ImageSelectModal-7e612643.js → ImageSelectModal-7706f79f.js} +8 -8
  37. package/dist/{ImageUploadWrapper-2e6b3682.js → ImageUploadWrapper-65d04b72.js} +2 -2
  38. package/dist/{Index-cdd643d6.js → Index-0dbc20a5.js} +30 -36
  39. package/dist/{Index-5003d8a4.js → Index-17db3981.js} +2 -2
  40. package/dist/{Index-e7a49ef5.js → Index-1ec70336.js} +4 -4
  41. package/dist/{Index-3e7e4c33.js → Index-21b9ef50.js} +2 -2
  42. package/dist/{Index-674572ab.js → Index-275a26f3.js} +4 -4
  43. package/dist/{Index-edb47e7d.js → Index-3a278b14.js} +4 -4
  44. package/dist/{Index-05492736.js → Index-4ecb48f7.js} +4 -4
  45. package/dist/{Index-e87eac2e.js → Index-51f43342.js} +2 -2
  46. package/dist/Index-5204e965.js +59 -0
  47. package/dist/{Index-f0ea6d6a.js → Index-63a45208.js} +23 -29
  48. package/dist/{Index-2e71665d.js → Index-6a2c0245.js} +4 -4
  49. package/dist/{Index-83cd3513.js → Index-860706da.js} +9 -9
  50. package/dist/{Index-ab7ee5cf.js → Index-8c45d1e8.js} +4 -4
  51. package/dist/{Index-479a4f5c.js → Index-9275b550.js} +3 -3
  52. package/dist/{Index-887a4e3b.js → Index-a6deb4ef.js} +2 -2
  53. package/dist/{Index-bff6cda5.js → Index-b7ee6604.js} +1 -1
  54. package/dist/{Index-9d7a87a2.js → Index-c1782811.js} +2 -2
  55. package/dist/{Index-abb05d61.js → Index-c217198e.js} +5 -5
  56. package/dist/{Index-0d051f12.js → Index-c3cf1a7a.js} +35 -26
  57. package/dist/{Index-3bfb3895.js → Index-c5a2140d.js} +1 -1
  58. package/dist/{Index-c4c942a3.js → Index-c5d2a3f3.js} +2 -2
  59. package/dist/{Index-96cc92d3.js → Index-ca586e17.js} +13 -13
  60. package/dist/{Index-4559e60b.js → Index-d3789f66.js} +5 -5
  61. package/dist/{Index-dff23f41.js → Index-d4b5163a.js} +4 -4
  62. package/dist/{Index-52da7dd1.js → Index-d54abcde.js} +6 -6
  63. package/dist/{Index-f450c453.js → Index-d54ff9f5.js} +8 -8
  64. package/dist/{Index-2f94216d.js → Index-d9dd3c6b.js} +7 -7
  65. package/dist/{Index-bf2851ea.js → Index-de220060.js} +2 -2
  66. package/dist/{Index-ca877625.js → Index-e9c20129.js} +19 -22
  67. package/dist/{Index-d62e8abf.js → Index-eb5ab752.js} +2 -2
  68. package/dist/{Index-92444604.js → Index-f465338a.js} +4 -4
  69. package/dist/{Index-11d14c4d.js → Index-f7e348e2.js} +12 -12
  70. package/dist/Index-fb7d681c.js +72 -0
  71. package/dist/{Index-83603328.js → Index-ffb5b6ae.js} +4 -4
  72. package/dist/{InputToggleRow-ff428de1.js → InputToggleRow-281e90c1.js} +1 -1
  73. package/dist/{IsPremiumPreStep-4bc3a874.js → IsPremiumPreStep-b1384bb4.js} +386 -253
  74. package/dist/{ManualPopover-fdad805a.js → ManualPopover-d5ea2774.js} +1 -1
  75. package/dist/{MediaWrapper-10405a28.js → MediaWrapper-a0b4ebe8.js} +3 -3
  76. package/dist/{NotBindingText-eab4529c.js → NotBindingText-67a1409e.js} +2 -2
  77. package/dist/{PackageGroup-50b4428c.js → PackageGroup-29439e17.js} +11 -11
  78. package/dist/{PdfTerms-81256394.js → PdfTerms-2e6c0285.js} +4 -4
  79. package/dist/{PdfViewer-10150d1b.js → PdfViewer-371b5058.js} +2 -2
  80. package/dist/{PlainHtml-57b8ec60.js → PlainHtml-c70dc350.js} +1 -1
  81. package/dist/PriceHeader-5ff405b6.js +339 -0
  82. package/dist/{SearchApi-c81405a8.js → SearchApi-b14c893f.js} +2 -2
  83. package/dist/{Setup-438b2554.js → Setup-4d84f86a.js} +1 -1
  84. package/dist/{TermsSettings-0ad9987a.js → TermsSettings-7072778d.js} +6 -6
  85. package/dist/{ThemeColorRow-178c3b34.js → ThemeColorRow-37a17ce4.js} +3 -3
  86. package/dist/{ToggleBinding-63c41c8f.js → ToggleBinding-e04d9dfc.js} +3 -3
  87. package/dist/{UploadModal-859233e4.js → UploadModal-39f04624.js} +3 -3
  88. package/dist/{VideoPlayerInput-73ac34db.js → VideoPlayerInput-55ab9dd1.js} +3 -3
  89. package/dist/{VideoPlayerSettings-c60fb8dc.js → VideoPlayerSettings-1d2507e8.js} +4 -4
  90. package/dist/{VideoSelectModal-5358f138.js → VideoSelectModal-c158c88b.js} +7 -7
  91. package/dist/{answerDocumentMixin-69b88088.js → answerDocumentMixin-5711c3ae.js} +3 -3
  92. package/dist/{cssMode-59194949.js → cssMode-b85ed111.js} +7 -7
  93. package/dist/focusDrawerMixin-5139ff2d.js +22 -0
  94. package/dist/{formComponentsInstall-12195b8b.js → formComponentsInstall-ea9fe0f1.js} +12 -12
  95. package/dist/formDrawerState-872f6c63.js +20 -0
  96. package/dist/{formValidationMixin-e54b71c9.js → formValidationMixin-20797066.js} +1 -1
  97. package/dist/{freemarker2-3008b375.js → freemarker2-db773dc4.js} +7 -7
  98. package/dist/{handlebars-fa9ab08d.js → handlebars-f4e59d92.js} +7 -7
  99. package/dist/{html-d5653fb5.js → html-60722cac.js} +7 -7
  100. package/dist/{htmlMode-788d6ef2.js → htmlMode-699d17ac.js} +7 -7
  101. package/dist/{image-4270bed4.js → image-c4536036.js} +1 -1
  102. package/dist/{index-c48b4b2a.js → index-01a9890c.js} +2 -2
  103. package/dist/{index-cd29b3be.js → index-1f9bf410.js} +8 -8
  104. package/dist/{index-df5fd2b2.js → index-a0dcb949.js} +1 -1
  105. package/dist/{index-79df8dcf.js → index-b5312c69.js} +4 -4
  106. package/dist/{index-bed8fb27.js → index-b6204795.js} +1 -1
  107. package/dist/{index-0265dfbd.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-553c3953.js → javascript-10d90d6d.js} +8 -8
  111. package/dist/{jsonMode-c7ab0d1f.js → jsonMode-7689792e.js} +7 -7
  112. package/dist/{liquid-9e71ef49.js → liquid-d3d3f6d5.js} +7 -7
  113. package/dist/{main-9e6f1eed.js → main-9daa18a1.js} +7142 -7097
  114. package/dist/{mapFormMixin-afafb1fa.js → mapFormMixin-1236b266.js} +1 -1
  115. package/dist/{publicSenderState-994a5c48.js → publicSenderState-5036fa9a.js} +1 -1
  116. package/dist/{python-c3ceee79.js → python-29472e5e.js} +7 -7
  117. package/dist/{razor-5c5d60a9.js → razor-2dfcf495.js} +7 -7
  118. package/dist/{simplebar.min-2c8e9500.js → simplebar.min-8422a634.js} +1 -1
  119. package/dist/style.css +2 -2
  120. package/dist/{template-35be25a1.js → template-282dfd7f.js} +1 -1
  121. package/dist/{throttle-0e8ac006.js → throttle-d4af9020.js} +2 -2
  122. package/dist/{tinycolor-e0dc7ddf.js → tinycolor-e750ced7.js} +1 -1
  123. package/dist/{tippy.esm-112598e3.js → tippy.esm-ae169d52.js} +5 -5
  124. package/dist/{tsMode-26e458da.js → tsMode-af13fa75.js} +7 -7
  125. package/dist/{typescript-152aeb18.js → typescript-278dd0a0.js} +7 -7
  126. package/dist/{utils-3acdacf6.js → utils-a1170d9a.js} +1 -1
  127. package/dist/{vuedraggable.umd-9543559a.js → vuedraggable.umd-e860e729.js} +1 -1
  128. package/dist/{xml-9806bd44.js → xml-2214e1d4.js} +7 -7
  129. package/package.json +2 -3
  130. package/dist/Index-6f9f3222.js +0 -69
  131. package/dist/Index-f2fde02f.js +0 -76
  132. package/dist/PriceHeader-70427a56.js +0 -338
  133. package/dist/focusDrawerMixin-188ef585.js +0 -68
@@ -1,4 +1,4 @@
1
- import { a4 as l, N as s, c as I } from "./main-9e6f1eed.js";
1
+ import { a4 as l, N as s, c as I } from "./main-9daa18a1.js";
2
2
  function a(e) {
3
3
  return btoa(encodeURIComponent(e));
4
4
  }
@@ -1,5 +1,5 @@
1
- import { j as n, k as l } from "./main-9e6f1eed.js";
2
- import { a as o } from "./CDropdownItem-13f6bf72.js";
1
+ import { j as n, k as l } from "./main-9daa18a1.js";
2
+ import { a as o } from "./CDropdownItem-ef2d7897.js";
3
3
  var g = o, c = l, f = "Expected a function";
4
4
  function u(a, i, t) {
5
5
  var r = !0, e = !0;
@@ -1,4 +1,4 @@
1
- import { j as he } from "./main-9e6f1eed.js";
1
+ import { j as he } from "./main-9daa18a1.js";
2
2
  var N = { exports: {} };
3
3
  (function(R) {
4
4
  (function(c) {
@@ -1,8 +1,8 @@
1
- import { C as mr } from "./ColorPicker-debcfab1.js";
2
- import { F as hr } from "./DocumentLayout-1222a5f8.js";
3
- import { C as gr, b as yr } from "./CDropdownItem-13f6bf72.js";
4
- import { n as Wt, q as br, aQ as Ct } from "./main-9e6f1eed.js";
5
- import { S as wr } from "./CSlider.vue_vue_type_style_index_0_lang-879e8c05.js";
1
+ import { C as mr } from "./ColorPicker-15579f77.js";
2
+ import { F as hr } from "./DocumentLayout-632a6f98.js";
3
+ import { C as gr, b as yr } from "./CDropdownItem-ef2d7897.js";
4
+ import { n as Wt, q as br, aR as Ct } from "./main-9daa18a1.js";
5
+ import { S as wr } from "./CSlider.vue_vue_type_style_index_0_lang-4a1c5561.js";
6
6
  const xr = {
7
7
  AED: "United Arab Emirates Dirham",
8
8
  AFN: "Afghan Afghani",
@@ -1,14 +1,14 @@
1
1
  var N = Object.defineProperty;
2
2
  var M = (e, t, r) => t in e ? N(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var _ = (e, t, r) => (M(e, typeof t != "symbol" ? t + "" : t, r), r);
4
- import { t as K, m as R } 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 { t as K, m as R } 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-1222a5f8.js";
11
- import "./template-35be25a1.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)
@@ -1,11 +1,11 @@
1
- import { m as s } from "./Index-0d051f12.js";
2
- import "./mapFormMixin-afafb1fa.js";
3
- import "./main-9e6f1eed.js";
4
- import "./throttle-0e8ac006.js";
5
- import "./CDropdownItem-13f6bf72.js";
1
+ import { m as s } from "./Index-c3cf1a7a.js";
2
+ import "./mapFormMixin-1236b266.js";
3
+ import "./main-9daa18a1.js";
4
+ import "./throttle-d4af9020.js";
5
+ import "./CDropdownItem-ef2d7897.js";
6
6
  import "./splitpanes-ba7897bf.js";
7
- import "./DocumentLayout-1222a5f8.js";
8
- import "./template-35be25a1.js";
7
+ import "./DocumentLayout-632a6f98.js";
8
+ import "./template-282dfd7f.js";
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
11
11
  * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
@@ -1,4 +1,4 @@
1
- import { l as d, c as m } from "./main-9e6f1eed.js";
1
+ import { l as d, c as m } from "./main-9daa18a1.js";
2
2
  const s = {
3
3
  youtube: {
4
4
  reg: /^(?:https?:\/\/)?(?:(?:www|m)\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((?:\w|-){11})(?:\S+)?$/,
@@ -1,4 +1,4 @@
1
- import { W as rn, _ as on, j as We, X as an, Y as sn, Z as ln, $ as un, a0 as fn, a1 as cn, a2 as dn, R as hn } from "./main-9e6f1eed.js";
1
+ import { W as rn, _ as on, j as We, X as an, Y as sn, Z as ln, $ as un, a0 as fn, a1 as cn, a2 as dn, R as hn } from "./main-9daa18a1.js";
2
2
  var pn = rn;
3
3
  function gn(o) {
4
4
  return pn(o) ? void 0 : o;
@@ -1,11 +1,11 @@
1
- import { m as r } from "./Index-0d051f12.js";
2
- import "./mapFormMixin-afafb1fa.js";
3
- import "./main-9e6f1eed.js";
4
- import "./throttle-0e8ac006.js";
5
- import "./CDropdownItem-13f6bf72.js";
1
+ import { m as r } from "./Index-c3cf1a7a.js";
2
+ import "./mapFormMixin-1236b266.js";
3
+ import "./main-9daa18a1.js";
4
+ import "./throttle-d4af9020.js";
5
+ import "./CDropdownItem-ef2d7897.js";
6
6
  import "./splitpanes-ba7897bf.js";
7
- import "./DocumentLayout-1222a5f8.js";
8
- import "./template-35be25a1.js";
7
+ import "./DocumentLayout-632a6f98.js";
8
+ import "./template-282dfd7f.js";
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
11
11
  * Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cling-se/widget",
3
- "version": "0.9.16",
3
+ "version": "0.9.17",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",
@@ -15,6 +15,7 @@
15
15
  "registry": "https://registry.npmjs.org/"
16
16
  },
17
17
  "dependencies": {
18
+ "@cling-se/v-tooltip-root-node": "^0.1.3",
18
19
  "@tiptap/core": "^2.0.0-beta.199",
19
20
  "axios": "1.4.0",
20
21
  "date-fns": "2.14.0",
@@ -31,7 +32,6 @@
31
32
  "simplebar-vue": "1.5.0",
32
33
  "tinycolor2": "^1.4.1",
33
34
  "uniqid": "5.4.0",
34
- "v-tooltip": "2.0.2",
35
35
  "velocity-animate": "1.5.2",
36
36
  "vue": "^2.7.8",
37
37
  "vue-js-modal": "2.0.0-rc.3",
@@ -49,7 +49,6 @@
49
49
  "@vitejs/plugin-vue2": "^1.1.2",
50
50
  "@vitejs/plugin-vue2-jsx": "^1.1.0",
51
51
  "@vue/eslint-config-prettier": "^7.0.0",
52
- "astring": "^1.8.6",
53
52
  "autoprefixer": "^10.4.12",
54
53
  "bumpp": "^8.2.1",
55
54
  "eslint": "^8.5.0",
@@ -1,69 +0,0 @@
1
- import { m as r } from "./mapFormMixin-afafb1fa.js";
2
- import { f as n } from "./focusDrawerMixin-188ef585.js";
3
- import { n as i } from "./main-9e6f1eed.js";
4
- const a = {
5
- // eslint-disable-next-line vue/multi-word-component-names
6
- name: "Terms",
7
- i18nOptions: {
8
- namespaces: "terms",
9
- messages: {
10
- en: {
11
- noneSelected: "No terms selected"
12
- },
13
- sv: {
14
- noneSelected: "Inga villkor valda"
15
- }
16
- }
17
- },
18
- components: {
19
- Read: () => import("./Index-52da7dd1.js"),
20
- TermsSettings: () => import("./TermsSettings-0ad9987a.js")
21
- },
22
- mixins: [
23
- r([
24
- "href",
25
- "termType",
26
- "file",
27
- "text"
28
- ]),
29
- n()
30
- ],
31
- data() {
32
- return {
33
- showControls: !1
34
- };
35
- },
36
- computed: {
37
- hasTerms() {
38
- const s = ["href", "file"].includes(this.termType) && this.href, e = this.termType === "text" && this.text, t = this.termType === "file" && this.file;
39
- return s || e || t;
40
- }
41
- }
42
- };
43
- var l = function() {
44
- var e = this, t = e._self._c;
45
- return e.isForm || e.hasTerms ? t("div", { on: { "&mouseover": function(o) {
46
- e.showControls = !0;
47
- }, "&mouseleave": function(o) {
48
- e.showControls = !1;
49
- } } }, [t("Read", e._g({ attrs: { _document: e._document, href: e.href, "term-type": e.termType, file: e.file, text: e.text } }, e.$listeners)), e.isForm ? [e.hasTerms ? e._e() : t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("noneSelected"), expression: "$t('noneSelected')" }], staticStyle: { position: "absolute", left: "calc(1 * var(--rem))", top: "calc(1 * var(--rem))", width: "2em", height: "2em" }, attrs: { "icon-props": { size: 18 }, pattern: "secondary", icon: "info", circle: "", size: "small", type: "danger" }, on: { click: function(o) {
50
- e.showDrawer = !0;
51
- } } }), t("CButton", { directives: [{ name: "show", rawName: "v-show", value: e.showControls, expression: "showControls" }], staticClass: "document-block__edit-button", attrs: { round: "", size: "small", thinner: "", "icon-right": "colored-dots" }, on: { click: function(o) {
52
- e.showDrawer = !0;
53
- } } }, [e._v(" " + e._s(e.$t("_common:edit").capitalize()) + " ")]), e.showDrawer ? t("portal", { attrs: { to: "drawer-content" } }, [t("CButton", { staticStyle: { position: "absolute", top: "calc(0.5 * var(--rem))", right: "calc(0.5 * var(--rem))" }, attrs: { "icon-props": { size: 20 }, size: "normal", icon: "x", circle: "", type: "none", pattern: "tertiary" }, on: { click: function(o) {
54
- e.showDrawer = !1;
55
- } } }), t("TermsSettings", e._g({ attrs: { _document: e._document, _value: { term: "data.terms" } } }, e.$listeners))], 1) : e._e()] : e._e()], 2) : e._e();
56
- }, c = [], m = /* @__PURE__ */ i(
57
- a,
58
- l,
59
- c,
60
- !1,
61
- null,
62
- null,
63
- null,
64
- null
65
- );
66
- const f = m.exports;
67
- export {
68
- f as default
69
- };
@@ -1,76 +0,0 @@
1
- import { m as o } from "./mapFormMixin-afafb1fa.js";
2
- import { f as i } from "./focusDrawerMixin-188ef585.js";
3
- import { S as a, n as r } from "./main-9e6f1eed.js";
4
- const d = {
5
- name: "Embed",
6
- i18nOptions: {
7
- namespaces: "embed",
8
- messages: {
9
- en: {
10
- subTitle: "Embed anything (PDFs, Google Docs, Calender Sheets...)"
11
- },
12
- sv: {
13
- subTitle: "Bädda in vad som helst (PDF:er, Google Docs, Calender Sheets...)"
14
- }
15
- }
16
- },
17
- components: {
18
- EmbedSettings: () => import("./EmbedSettings-33a765a6.js"),
19
- EmbedInput: () => import("./EmbedInput-a1b00bd5.js"),
20
- Spinner: a
21
- },
22
- mixins: [o(["embed", "size"]), i()],
23
- data() {
24
- return {
25
- showDrawer: !1,
26
- showControls: !1,
27
- isLoading: !0
28
- };
29
- },
30
- methods: {
31
- onAdd() {
32
- const n = () => {
33
- this.$refs.input.focus();
34
- };
35
- this.$refs.input ? n() : this.$once("triggerOnAdd", n);
36
- }
37
- }
38
- };
39
- var l = function() {
40
- var e = this, t = e._self._c;
41
- return t("div", { staticClass: "embed-root font-inter", on: { "&mouseover": function(s) {
42
- e.showControls = !0;
43
- }, "&mouseleave": function(s) {
44
- e.showControls = !1;
45
- } } }, [t("div", { staticClass: "no-drag", class: [
46
- (e.size || !(e.embed && e.embed.src)) && "auto-size",
47
- `embed-is-${e.size}`
48
- ] }, [e.embed ? t("div", { staticClass: "embed-container" }, [!e.embed.src && e.canEdit ? t("div", { staticClass: "embed-element" }, [t("div", { staticClass: "is-placeholder" }, [t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("subTitle")) + " ")]), t("EmbedInput", { ref: "input", staticStyle: { "padding-top": "1em" }, on: { "hook:mounted": function(s) {
49
- return e.$emit("triggerOnAdd");
50
- } }, model: { value: e.embed, callback: function(s) {
51
- e.embed = s;
52
- }, expression: "embed" } })], 1)]) : e.embed.src ? t("iframe", e._b({ ref: "iframe", staticClass: "embed-element", on: { load: function(s) {
53
- e.isLoading = !1;
54
- } } }, "iframe", { allowfullscreen: "", ...e.embed }, !1)) : e._e(), e.embed.src && e.isLoading ? t("div", { staticClass: "embed-loading-container" }, [t("Spinner", { attrs: { color: "hsl(0, 0%, 60%)" } })], 1) : e._e()]) : e._e()]), e.isForm ? [e.showControls ? t("CButton", { staticClass: "document-block__edit-button", attrs: { round: "", size: "small", thinner: "", "icon-right": "colored-dots" }, on: { click: function(s) {
55
- e.showDrawer = !0;
56
- } } }, [e._v(" " + e._s(e.$t("_common:edit").capitalize()) + " ")]) : e._e(), e.showDrawer ? t("portal", { attrs: { to: "drawer-content" } }, [t("CButton", { staticStyle: { position: "absolute", top: "calc(0.5 * var(--rem))", right: "calc(0.5 * var(--rem))" }, attrs: { "icon-props": { size: 20 }, size: "normal", icon: "x", circle: "", type: "none", pattern: "tertiary" }, on: { click: function(s) {
57
- e.showDrawer = !1;
58
- } } }), t("EmbedSettings", { attrs: { size: e.size }, on: { "update:size": function(s) {
59
- e.size = s;
60
- } }, model: { value: e.embed, callback: function(s) {
61
- e.embed = s;
62
- }, expression: "embed" } })], 1) : e._e()] : e._e()], 2);
63
- }, c = [], m = /* @__PURE__ */ r(
64
- d,
65
- l,
66
- c,
67
- !1,
68
- null,
69
- "94ce85eb",
70
- null,
71
- null
72
- );
73
- const _ = m.exports;
74
- export {
75
- _ as default
76
- };
@@ -1,338 +0,0 @@
1
- import { m as c } from "./mapFormMixin-afafb1fa.js";
2
- import { B as l } from "./BlockMedia-0f41fb43.js";
3
- import { n, b as r, s as d, a3 as m } from "./main-9e6f1eed.js";
4
- import { T as u } from "./DocTextEditor-570f3d62.js";
5
- import { i as p } from "./i18nMessages-45c6bfd6.js";
6
- import { t as _ } from "./tinycolor-e0dc7ddf.js";
7
- import { s as y } from "./dom-d4731032.js";
8
- import "./color-71c20583.js";
9
- import "./tippy.esm-112598e3.js";
10
- import "./ColorPicker-debcfab1.js";
11
- import "./DocumentLayout-1222a5f8.js";
12
- import "./CDropdownItem-13f6bf72.js";
13
- import "./CSlider.vue_vue_type_style_index_0_lang-879e8c05.js";
14
- import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
15
- import "./ManualPopover-fdad805a.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-b12feaae.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 e = this, t = e._self._c;
90
- return t("section", { staticClass: "flex justify-center w-full summary-top" }, [t("div", { staticClass: "doc-summary-top-wrapper" }, [t("div", { staticClass: "doc-summary-top-wrapper__background" }), t("div", { staticClass: "flex justify-between w-full", staticStyle: { "margin-bottom": "calc(2.5 * var(--rem))" } }, [e.showLogo && (e.logotype || e.companyLogotype) || e.canEdit ? t("DocumentLogotype", e._g({ attrs: { value: e.logotype, "show-logo": e.showLogo, "company-logotype": e.companyLogotype, "has-hover": e.hasHover } }, e.logotypeListeners)) : t("div", { staticClass: "company-name" }, [e._v(" " + e._s(e.senderName) + " ")]), t("div", { staticClass: "top-right-text-wrapper" }, [e.sentAt ? t("div", [e._v(e._s(e.$formatDate(e.sentAt)))]) : e._e(), e.docNumber ? t("div", [e._v(" #" + e._s(e.docNumber))]) : e._e()])], 1), t("div", { staticClass: "title-text" }, [e.canEdit ? t("TextEditor", { ref: "editor", staticClass: "no-drag", staticStyle: { "will-change": "opacity" }, attrs: { value: e.docName, placeholder: e.$t("name.placeholder"), extensions: {
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 e.$emit("update:doc-name", s);
100
- } } }) : t("div", { staticClass: "quill-custom", domProps: { innerHTML: e._s(e.docName) } })], 1), t("div", { staticClass: "flex justify-between w-full" }, [e.expiresAt ? t("div", { staticClass: "data-group" }, [t("div", { staticClass: "label-text caps" }, [e._v(e._s(e._document.$t("replyBy")))]), t("div", { staticClass: "data-text" }, [e._v(e._s(e.$formatDate(e.expiresAt)))])]) : e._e(), e.docType !== "document" ? t("div", { staticClass: "data-group" }, [t("div", { staticClass: "label-text caps" }, [e._v(e._s(e._document.$t("document").capitalize()))]), t("div", { staticClass: "data-text" }, [e._v(e._s(e._document.$t(`series.${e.docType}`).capitalize()))])]) : e._e(), e.parentSize.width >= 576 ? [e.estimatedTime ? t("div", { staticClass: "data-group" }, [t("div", { staticClass: "label-text caps" }, [e._v(e._s(e.$t("time.estimatedTime")))]), t("div", { staticClass: "data-text" }, [e._v(e._s(e._document.$t("approx")) + " " + e._s(e.estimatedTime))])]) : e._e()] : e._e()], 2)])]);
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 e = this.priceFormat(0, { currency: this.currency, showZero: !0 });
179
- return i = this._document.$t("summaryBottom.reverseVat", { amount: e }), 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], e = this.backgroundColor.match(/(\d*\.)?\d+/g)[1], t = this.backgroundColor.match(/(\d*\.)?\d+/g)[2], s = this.backgroundColor.match(/(\d*\.)?\d+/g)[3];
187
- return {
188
- backgroundColor: `hsla(${i}, ${e ** 0.9}%, ${t ** 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 e = this, t = e._self._c;
205
- return t("section", { staticClass: "summary-bottom-root" }, [t("div", { staticClass: "summary-bottom", style: [
206
- {
207
- backgroundColor: e.backgroundColor,
208
- color: e.tinycolor.readability(e.backgroundColor, "#FFF") > 2.2 ? "#FFF" : "#000"
209
- },
210
- e.options.length && {
211
- overflow: "hidden",
212
- padding: 0
213
- }
214
- ] }, [e.options.length ? t("div", { staticClass: "flex items-center justify-end w-full", staticStyle: { height: "108px" } }, [t("div", { staticStyle: { "text-align": "right", padding: "calc(2 * var(--rem))" } }, [t("div", { staticStyle: { "font-size": "calc(1.5 * var(--rem))", "font-weight": "900" } }, [e._v(e._s(e._document.$t("price.proposal")))]), t("div", [e._v(e._s(e._document.$t("summaryBottom.chooseFrom")))])]), t("div", { staticStyle: { "background-color": "hsla(0, 0%, 0%, 0.15)", paadding: "calc(1 * var(--rem)) calc(2 * var(--rem))", height: "100%", display: "inline-flex" } }, [e.base ? t("div", { staticStyle: { display: "flex", "flex-direction": "column", "align-items": "flex-start", "justify-content": "center", padding: "calc(1 * var(--rem)) calc(1 * var(--rem))", "text-align": "left" } }, [t("div", { staticStyle: { "font-weight": "900", "font-size": "calc(1.5 * var(--rem))" } }, [e._v(e._s(e.priceFormat(e.base.prices.total, { currency: e.currency, decimals: 2, hideZeroDecimals: !0 })))]), t("div", [e._v("+ " + e._s(e._document.$tc("summaryBottom.option", { count: e.options.length })))])]) : t("div", { staticStyle: { padding: "calc(2 * var(--rem))", display: "inline-flex", "align-items": "center", "justify-content": "center", "font-weight": "900", "font-size": "calc(2.5 * var(--rem))" } }, [e._v(" " + e._s(e._document.$t("summaryBottom.noOfOptions", { count: e.options.length })) + " ")])]), t("div", { staticStyle: { "background-color": "hsla(0, 0%, 0%, 0.4)", overflow: "hidden", width: "calc(1.5 * var(--rem))", display: "flex", "flex-direction": "column", "justify-content": "center", "align-items": "center", height: "100%", color: "hsla(0, 0%, 100%, 0.2)" } })]) : t("div", { staticClass: "flex justify-between w-full", class: [
215
- {
216
- column: e.isSmallScreen,
217
- sm: e.isSmallScreen
218
- }
219
- ], staticStyle: { position: "relative" } }, [t("div", { staticClass: "flex flex-col w-full", class: [{ "fixed-price-type-string": e.isSmallScreen }], staticStyle: { "background-color": "hsl(224, 57%, 39%)" }, style: [e.backgroundSecondary] }, [t("div", { staticClass: "price-type-string data-text" }, [e._v(" " + e._s(e.priceTypeString) + " ")]), e.isSmallScreen ? e._e() : t("div", { staticClass: "price-deduction-text" }, [e._v(" " + e._s(e.priceDeductionVatString) + " ")])]), e.priceType.some((s) => ["openAcc", "openAccMaxPrice"].includes(s)) ? t("div", { staticClass: "open-acc-wrapper" }, [e.openAccMaxPrice ? t("div", { staticClass: "open-acc-item" }, [t("div", [e._v(e._s(e._document.$t("price.maxPrice").capitalize()) + " " + e._s(e._document.$t("vat.exVat", { thing: e._document.$t(`vat.${e.vatType}`) })) + ":")]), t("div", [e._v(e._s(e.priceFormat(e.openAccMaxPrice, { currency: e.currency })))])]) : e._e(), t("div", { staticClass: "open-acc-link" }, [e._v(" " + e._s(e._document.$t("see").capitalize()) + " "), t("span", { staticStyle: { color: "inherit", cursor: "pointer" }, on: { click: e.scrollToPricing } }, [t("u", [e._v(e._s(e._document.$t("price.price_plural")))])]), e._v(" " + e._s(e._document.$t("summaryBottom.forDetails")) + " ")])]) : t("div", { staticClass: "flex items-center w-full", class: [{ "justify-end": !e.isSmallScreen }] }, [t("div", { staticClass: "data-text", staticStyle: { "font-size": "calc(2 * var(--rem))", "font-weight": "900", "letter-spacing": "1px", "line-height": "1", "padding-bottom": "calc(0.3 * var(--rem))" } }, [e._v(" " + e._s(e.priceType.includes("approx") ? e._document.$t("approx").capitalize() : "") + " " + e._s(e.priceFormat(e.priceTotal, { currency: e.currency, decimals: 2, hideZeroDecimals: !0 })) + " ")])]), e.isSmallScreen ? t("div", { staticClass: "label-text caps price-deduction-text", staticStyle: { "margin-top": "4px" } }, [e._v(" " + e._s(e.priceDeductionVatString) + " ")]) : e._e()])])]);
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
- return this.documentName;
264
- },
265
- set(i) {
266
- this.documentName = i, this.$emit("input", { key: "data.name", value: m(i).trim().slice(0, 255) });
267
- }
268
- },
269
- company() {
270
- return this._document.sender.company;
271
- },
272
- prices() {
273
- return this._document.prices;
274
- },
275
- estimatedTimeString() {
276
- var t, s;
277
- const { value: i, unitType: e } = ((s = (t = this._document) == null ? void 0 : t.data) == null ? void 0 : s.estimatedTime) || {};
278
- return !i || !e ? null : this.$tc(`${e}`, { count: i });
279
- },
280
- sendAtShowDate() {
281
- const { sentAt: i, scheduledFirstDelivery: e } = this._document;
282
- return i || (e ? e.sendAt : null);
283
- },
284
- summaryBottom() {
285
- var s;
286
- let i = {
287
- show: !1,
288
- backgroundColor: this.backgroundColor || this._document.theme.priceSummaryBackground,
289
- documentCurrency: this._document.currency,
290
- vatType: this._document.vatType
291
- }, { showPriceSummary: e } = this;
292
- typeof e != "boolean" && ({ showPriceSummary: e } = this._document.theme);
293
- const t = ((s = this._document.packageGroups) == null ? void 0 : s.packages) || [];
294
- return t.length > 1 ? i = {
295
- ...i,
296
- show: e,
297
- base: { prices: this.prices },
298
- options: t.filter(({ toggable: a }) => a).map(({ prices: a }) => ({ prices: a }))
299
- } : i = {
300
- ...i,
301
- show: e && this._document.readPrices && (this.prices.total || this.prices.type.some((a) => ["openAccMaxPrice", "openAcc"].includes(a))),
302
- base: { prices: this.prices }
303
- }, this.canEdit && e && (i.show = !0), i.documentCurrency || (i.show = !1), i;
304
- }
305
- }
306
- };
307
- var k = function() {
308
- var s, a;
309
- var e = this, t = e._self._c;
310
- return t("div", [t("div", { staticClass: "doc-jumbotron-wrapper" }, [t("BlockMedia", { staticClass: "price-media-wrapper", attrs: { media: {
311
- ...e.media,
312
- resourceUrl: ((s = e.media) == null ? void 0 : s.resourceUrl) || e._document.theme.background,
313
- overlayColor: ((a = e.media) == null ? void 0 : a.overlayColor) || e._document.theme.backgroundFilter
314
- } } }), t("SummaryTop", { attrs: { _document: e._document, "show-logo": e.showLogo, logotype: e.logotype, "company-logotype": e.company.logotype, "sender-name": e.company.name, "doc-type": e._document.docNumber.series, "doc-name": e.internalName, "doc-number": e._document.docNumber.value, "sent-at": e.sendAtShowDate, "expires-at": e._document.expiresAt, "estimated-time": e.estimatedTimeString, "has-hover": e.hasHover }, on: { "update:showLogo": function(o) {
315
- e.showLogo = o;
316
- }, "update:show-logo": function(o) {
317
- e.showLogo = o;
318
- }, "update:logotype": function(o) {
319
- e.logotype = o;
320
- }, "update:docName": function(o) {
321
- e.internalName = o;
322
- }, "update:doc-name": function(o) {
323
- e.internalName = o;
324
- } } })], 1), e.summaryBottom.show ? t("SummaryBottom", e._b({ attrs: { _document: e._document } }, "SummaryBottom", e.summaryBottom, !1)) : e._e()], 1);
325
- }, A = [], B = /* @__PURE__ */ n(
326
- T,
327
- k,
328
- A,
329
- !1,
330
- null,
331
- "4a30cbe0",
332
- null,
333
- null
334
- );
335
- const W = B.exports;
336
- export {
337
- W as default
338
- };