@cling-se/widget 0.14.3 → 0.14.4

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 (134) hide show
  1. package/.eslintrc.cjs +4 -4
  2. package/README.md +40 -40
  3. package/package.json +1 -1
  4. package/tsconfig.json +26 -26
  5. package/tsconfig.node.json +10 -10
  6. package/tsconfig.paths.json +17 -17
  7. package/vite.config.ts +61 -61
  8. package/dist/AddClientCallout-DKH-LP5B.js +0 -46
  9. package/dist/AnswerModal-BCbq8wc4.js +0 -3869
  10. package/dist/AttachmentItem-60CSZnkF.js +0 -78
  11. package/dist/BaseDatePicker-Cl8SnC1k.js +0 -3183
  12. package/dist/BaseUpload-D4FCjlhL.js +0 -1977
  13. package/dist/BlockMedia-CqkwdGnE.js +0 -76
  14. package/dist/CCallout-BTBgU8f-.js +0 -59
  15. package/dist/CCurrencyDropdown-CL32Mo-Y.js +0 -246
  16. package/dist/CDropdownItem-DlWtQwO6.js +0 -538
  17. package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
  18. package/dist/CFormField-BxJv-nUO.js +0 -241
  19. package/dist/CPhoneFormat-CJ9kndtJ.js +0 -62
  20. package/dist/CPriceInput-BpXI5X2j.js +0 -112
  21. package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
  22. package/dist/ClientAutocomplete-D9Dj9iBW.js +0 -78
  23. package/dist/ClientModal-JOt8NGcR.js +0 -625
  24. package/dist/ColorPicker-uPKD-Gvm.js +0 -2879
  25. package/dist/CompanyModal-7bG0iIRd.js +0 -141
  26. package/dist/ContentWrapper-B2nyZHL4.js +0 -183
  27. package/dist/CoverBlockSettings-C1O_FAde.js +0 -275
  28. package/dist/DocAnswer-B9G-y4Px.js +0 -36
  29. package/dist/DocDetails-DYHxKChO.js +0 -246
  30. package/dist/DocForm-BktEXjML.js +0 -7273
  31. package/dist/DocFormSend-DM6QgUOj.js +0 -143
  32. package/dist/DocLinks-BIGwfB3H.js +0 -38
  33. package/dist/DocModalBase-D5GdwTI7.js +0 -28
  34. package/dist/DocPrint-HqbaIGms.js +0 -240
  35. package/dist/DocReceipt-WXo6vWyW.js +0 -210
  36. package/dist/DocSendReminder-C8dNEpLg.js +0 -137
  37. package/dist/DocTextEditor-BfOZFDTP.js +0 -17177
  38. package/dist/DocTimeline-CitwS9px.js +0 -481
  39. package/dist/DocumentClient-CQ_z8ajY.js +0 -136
  40. package/dist/DocumentLayout-BA7mFfZh.js +0 -4909
  41. package/dist/DocumentLogotype-woc_hfll.js +0 -87
  42. package/dist/DocumentVoided-DC4FzpxG.js +0 -25
  43. package/dist/EmbedInput-CheqYcNr.js +0 -113
  44. package/dist/EmbedSettings-YcwM8hJw.js +0 -72
  45. package/dist/ErrorCallout-6pCYcx00.js +0 -28
  46. package/dist/FilePreviewModal-T8AiphqO.js +0 -81
  47. package/dist/Flag-Ddm6a4Il.js +0 -114
  48. package/dist/HeaderSettings-DHdZweJH.js +0 -392
  49. package/dist/ImageSelectModal-CAoBhnI8.js +0 -84
  50. package/dist/ImageUploadWrapper-CNv59Lhh.js +0 -1604
  51. package/dist/Index-B6S9U4Z-.js +0 -26
  52. package/dist/Index-BHX0D5fW.js +0 -559
  53. package/dist/Index-BL_7m5Ca.js +0 -70
  54. package/dist/Index-BXMXEUfo.js +0 -223
  55. package/dist/Index-BhVBvMu6.js +0 -32
  56. package/dist/Index-Bl_SNW80.js +0 -25
  57. package/dist/Index-BsguntKl.js +0 -21
  58. package/dist/Index-CGYjPfsf.js +0 -2402
  59. package/dist/Index-CKrGb3of.js +0 -61
  60. package/dist/Index-CMNrQo5a.js +0 -140
  61. package/dist/Index-CU50Al5c.js +0 -642
  62. package/dist/Index-CdqrrZxd.js +0 -77
  63. package/dist/Index-CfnL9dAw.js +0 -58
  64. package/dist/Index-CuW0MYrT.js +0 -171
  65. package/dist/Index-D-z8JSn6.js +0 -154
  66. package/dist/Index-D8giJ_bs.js +0 -84
  67. package/dist/Index-DDvfqy_h.js +0 -24
  68. package/dist/Index-DQDalqZ-.js +0 -107
  69. package/dist/Index-DTIPKKkV.js +0 -150
  70. package/dist/Index-DWxzUBff.js +0 -754
  71. package/dist/Index-DaNGeDQw.js +0 -144
  72. package/dist/Index-DfLU_AyN.js +0 -49
  73. package/dist/Index-DkVav_I7.js +0 -25
  74. package/dist/Index-Dxp8QAtB.js +0 -57
  75. package/dist/Index-DzjxFkcv.js +0 -52
  76. package/dist/Index-EwUJJWaB.js +0 -69
  77. package/dist/Index-I60qAqLl.js +0 -31
  78. package/dist/Index-LfF-7lQK.js +0 -292
  79. package/dist/Index-P0_dyc2V.js +0 -45
  80. package/dist/Index-RQMPSeHw.js +0 -98
  81. package/dist/Index-oipNLl3Y.js +0 -46
  82. package/dist/Index-sJq2Iyvt.js +0 -62
  83. package/dist/Index-uubi3NHX.js +0 -33
  84. package/dist/Index-vNj2kYZT.js +0 -55
  85. package/dist/InputToggleRow-B2pWvVyx.js +0 -57
  86. package/dist/ManualPopover-BI_Sf1zG.js +0 -54
  87. package/dist/MediaWrapper-eFpWxv3n.js +0 -23
  88. package/dist/NotBindingText-DA5NpePz.js +0 -32
  89. package/dist/PackageGroup-DOSijBdN.js +0 -699
  90. package/dist/PdfTerms-Q5YuVtrJ.js +0 -36
  91. package/dist/PdfViewer-zcWl8XZT.js +0 -374
  92. package/dist/PlainHtml-BmA83UAm.js +0 -20
  93. package/dist/PriceHeader-C14L5zgG.js +0 -339
  94. package/dist/SearchApi-CGT7-jVf.js +0 -161
  95. package/dist/Setup-RJQvZlDO.js +0 -50
  96. package/dist/SmartList-YosKRPVn.js +0 -83
  97. package/dist/TermsSettings-C5JTv7rT.js +0 -102
  98. package/dist/ThemeColorRow-D-C_tm2f.js +0 -63
  99. package/dist/ToggleBinding-KEVHHvKf.js +0 -38
  100. package/dist/UploadModal-DOYoWELI.js +0 -95
  101. package/dist/VideoPlayerInput-Dxb6CNk-.js +0 -93
  102. package/dist/VideoPlayerSettings-DsVN4Ix-.js +0 -61
  103. package/dist/VideoSelectModal-BpfzNx61.js +0 -100
  104. package/dist/anime.es-BrPTThYb.js +0 -858
  105. package/dist/answerDocumentMixin-BJMGrfUs.js +0 -51
  106. package/dist/color-TdtKxwVa.js +0 -19
  107. package/dist/debounce-BN83gOVd.js +0 -84
  108. package/dist/dom-CJxkno7i.js +0 -91
  109. package/dist/favicon.ico +0 -0
  110. package/dist/focusDrawerMixin-CawyQaGq.js +0 -22
  111. package/dist/formComponentsInstall-jcnyQ1zw.js +0 -2494
  112. package/dist/formDrawerState-BdNohvZH.js +0 -20
  113. package/dist/formValidationMixin-DOwgebZk.js +0 -49
  114. package/dist/i18nMessages-Chz_lxGG.js +0 -17
  115. package/dist/index-BBJIOkm_.js +0 -347
  116. package/dist/index-BNq9YCWc.js +0 -166
  117. package/dist/index-BdhbkLLU.js +0 -81
  118. package/dist/index-COf8F6CL.js +0 -3916
  119. package/dist/index-D0WvZHX_.js +0 -102
  120. package/dist/index-DTzZP4yq.js +0 -492
  121. package/dist/index.es.js +0 -35
  122. package/dist/index.umd.js +0 -3148
  123. package/dist/main-DE5THsiR.js +0 -56739
  124. package/dist/mapFormMixin-y2txvLw9.js +0 -72
  125. package/dist/omit-BrsWQAtU.js +0 -31
  126. package/dist/publicSenderState-BYsq95Vt.js +0 -21
  127. package/dist/splitpanes-BHUVsCZF.js +0 -382
  128. package/dist/style.css +0 -4
  129. package/dist/throttle-C2srA2wa.js +0 -18
  130. package/dist/tinycolor-SjV_ROuP.js +0 -633
  131. package/dist/tippy.esm-Dj7DQppr.js +0 -1799
  132. package/dist/utils-16HMuRfY.js +0 -108
  133. package/dist/vuedraggable.umd-Cd1g2Hr7.js +0 -3161
  134. package/dist/vuex.esm-DKGl8mcw.js +0 -467
@@ -1,642 +0,0 @@
1
- import { n, a9 as u, g as d, b as o, ay as l } from "./main-DE5THsiR.js";
2
- import { m as p } from "./mapFormMixin-y2txvLw9.js";
3
- import { C as g } from "./CCallout-BTBgU8f-.js";
4
- import { T as f } from "./DocTextEditor-BfOZFDTP.js";
5
- import { m as v, a as h } from "./vuex.esm-DKGl8mcw.js";
6
- import { w as _ } from "./CDropdownItem-DlWtQwO6.js";
7
- const b = {
8
- i18nOptions: {
9
- namespaces: "components",
10
- messages: {
11
- sv: {
12
- visitOur: "Besök vår {{type}}",
13
- seeTypeReviews: "Se våra {{type}} recensioner"
14
- },
15
- en: {
16
- visitOur: "Visit our {{type}}",
17
- seeTypeReviews: "See our {{type}} reviews"
18
- }
19
- }
20
- },
21
- name: "SocialMediaButton",
22
- props: {
23
- type: {
24
- type: String,
25
- required: !0
26
- },
27
- url: {
28
- type: String,
29
- required: !0
30
- }
31
- },
32
- computed: {
33
- tooltipText() {
34
- let { type: s } = this;
35
- return s === "google" ? this.$t("seeTypeReviews", { type: s.capitalize() }) : (s === "website" && (s = this.$t("_common:website").capitalize()), ["facebook", "instagram", "reco", "linkedin"].includes(s) && (s = s.capitalize()), this.$t("visitOur", { type: s }));
36
- }
37
- }
38
- };
39
- var w = function() {
40
- var e = this, t = e._self._c;
41
- return t("a", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
42
- content: e.tooltipText,
43
- classes: "simple small",
44
- placement: "top",
45
- offset: 2
46
- }, expression: `{
47
- content: tooltipText,
48
- classes: 'simple small',
49
- placement: 'top',
50
- offset: 2
51
- }` }], staticClass: "social-media-button", attrs: { href: e.url.toLowerCase().startsWith("http") ? e.url : `//${e.url}`, target: "_blank", rel: "noopener" } }, [t("CButton", { staticClass: "text-gray-400", attrs: { circle: "", type: "none", pattern: "secondary" } }, [e.type === "website" ? t("svg", { staticClass: "website-icon", attrs: { width: "18", height: "18", viewBox: "0 0 146 146", xmlns: "http://www.w3.org/2000/svg" } }, [t("g", { attrs: { transform: "translate(8 8)", fill: "none", "fill-rule": "evenodd" } }, [t("path", { attrs: { d: "M10.508537 0C4.704832 0 0 4.70357 0 10.500874v108.998252C0 125.298599 4.70357 130 10.500874 130h108.998252C125.298599 130 130 125.29643 130 119.499126V10.500874C130 4.7014 125.300178 0 119.497413 0H10.508537zM2.5 50.5h124.016128", stroke: "#3E8EFF", "stroke-width": "16", "stroke-linecap": "square" } }), t("circle", { attrs: { fill: "#3E8EFF", cx: "27", cy: "26", r: "7" } }), t("circle", { attrs: { fill: "#3E8EFF", cx: "51", cy: "26", r: "7" } }), t("circle", { attrs: { fill: "#3E8EFF", cx: "75", cy: "26", r: "7" } })])]) : e._e(), e.type === "linkedin" ? t("CIcon", { staticClass: "linkedin-icon", attrs: { size: 18, type: "linkedin" } }) : e._e(), e.type === "instagram" ? t("svg", { staticClass: "instagram-icon", attrs: { width: "18", height: "18", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" } }, [t("path", { attrs: { d: "M256 49.471c67.266 0 75.233.257 101.8 1.469 24.562 1.121 37.9 5.224 46.778 8.674a78.052 78.052 0 0 1 28.966 18.845 78.052 78.052 0 0 1 18.845 28.966c3.45 8.877 7.554 22.216 8.674 46.778 1.212 26.565 1.469 34.532 1.469 101.8s-.257 75.233-1.469 101.8c-1.121 24.562-5.225 37.9-8.674 46.778a83.427 83.427 0 0 1-47.811 47.811c-8.877 3.45-22.216 7.554-46.778 8.674-26.56 1.212-34.527 1.469-101.8 1.469s-75.237-.257-101.8-1.469c-24.562-1.121-37.9-5.225-46.778-8.674a78.051 78.051 0 0 1-28.966-18.845 78.053 78.053 0 0 1-18.845-28.966c-3.45-8.877-7.554-22.216-8.674-46.778-1.212-26.564-1.469-34.532-1.469-101.8s.257-75.233 1.469-101.8c1.121-24.562 5.224-37.9 8.674-46.778a78.052 78.052 0 0 1 18.847-28.967 78.053 78.053 0 0 1 28.966-18.845c8.877-3.45 22.216-7.554 46.778-8.674 26.565-1.212 34.532-1.469 101.8-1.469m0-45.391c-68.418 0-77 .29-103.866 1.516-26.815 1.224-45.127 5.482-61.151 11.71a123.488 123.488 0 0 0-44.62 29.057A123.488 123.488 0 0 0 17.3 90.982c-6.223 16.025-10.481 34.337-11.7 61.152C4.369 179 4.079 187.582 4.079 256s.29 77 1.521 103.866c1.224 26.815 5.482 45.127 11.71 61.151a123.489 123.489 0 0 0 29.057 44.62 123.486 123.486 0 0 0 44.62 29.057c16.025 6.228 34.337 10.486 61.151 11.71 26.87 1.226 35.449 1.516 103.866 1.516s77-.29 103.866-1.516c26.815-1.224 45.127-5.482 61.151-11.71a128.817 128.817 0 0 0 73.677-73.677c6.228-16.025 10.486-34.337 11.71-61.151 1.226-26.87 1.516-35.449 1.516-103.866s-.29-77-1.516-103.866c-1.224-26.815-5.482-45.127-11.71-61.151a123.486 123.486 0 0 0-29.057-44.62A123.487 123.487 0 0 0 421.018 17.3c-16.025-6.223-34.337-10.481-61.152-11.7C333 4.369 324.418 4.079 256 4.079z" } }), t("path", { attrs: { d: "M256 126.635A129.365 129.365 0 1 0 385.365 256 129.365 129.365 0 0 0 256 126.635zm0 213.338A83.973 83.973 0 1 1 339.974 256 83.974 83.974 0 0 1 256 339.973z" } }), t("circle", { attrs: { cx: "390.476", cy: "121.524", r: "30.23" } })]) : e._e(), e.type === "facebook" ? t("svg", { staticClass: "facebook-icon", attrs: { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 24 24" } }, [t("path", { attrs: { d: "M22.675 0H1.325C.593 0 0 .593 0 1.325v21.351C0 23.407.593 24 1.325 24H12.82v-9.294H9.692v-3.622h3.128V8.413c0-3.1 1.893-4.788 4.659-4.788 1.325 0 2.463.099 2.795.143v3.24l-1.918.001c-1.504 0-1.795.715-1.795 1.763v2.313h3.587l-.467 3.622h-3.12V24h6.116c.73 0 1.323-.593 1.323-1.325V1.325C24 .593 23.407 0 22.675 0z" } })]) : e._e(), e.type === "google" ? t("svg", { staticClass: "google-icon", attrs: { width: "20", height: "20", xmlns: "http://www.w3.org/2000/svg", "aria-label": "Google", role: "img", viewBox: "0 0 512 512" } }, [t("rect", { attrs: { width: "512", height: "512", rx: "15%", fill: "none" } }), t("path", { attrs: { fill: "#5a6886", d: "M386 400c45-42 65-112 53-179H260v74h102c-4 24-18 44-38 57z" } }), t("path", { attrs: { fill: "#5a6886", d: "M90 341a192 192 0 0 0 296 59l-62-48c-53 35-141 22-171-60z" } }), t("path", { attrs: { fill: "#5a6886", d: "M153 292c-8-25-8-48 0-73l-63-49c-23 46-30 111 0 171z" } }), t("path", { attrs: { fill: "#5a6886", d: "M153 219c22-69 116-109 179-50l55-54c-78-75-230-72-297 55z" } })]) : e._e(), e.type === "reco" ? t("svg", { staticClass: "reco-icon", attrs: { width: "20", height: "20", viewBox: "0 0 188 163", xmlns: "http://www.w3.org/2000/svg" } }, [t("path", { attrs: { d: "M17.035792 77.21013c.134576 3.81669.650037 7.69152 1.569666 11.59061 8.363034 35.45799 47.039175 59.7296 88.485526 55.77833L89.860598 67.77959l-72.824806 9.43054zm.973286-12.68806l69.398537-7.67594-9.671508-43.10794C45.59368 17.85816 22.942511 38.77825 18.009081 64.52207zm143.02734-15.81978c-14.905342-21.89837-43.103385-36.14241-73.073905-35.69191L99.84883 55.47005l61.187588-6.76776zm5.240304 9.18169l-63.451888 8.21679 21.060817 75.23232c33.769528-10.10888 54.05118-39.73898 46.562981-71.4878-.976607-4.14067-2.383129-8.13748-4.17191-11.96131zm-54.317558 104.49575C61.065612 167.89817 11.730953 136.16134 1.767118 91.49354-8.196717 46.82575 24.983374 6.14176 75.876925.62332c50.893551-5.51844 100.22821 26.21839 110.192045 70.88619 9.963835 44.66779-23.216255 85.35178-74.109806 90.87022z", fill: "#000", "fill-rule": "evenodd" } })]) : e._e()], 1)], 1);
52
- }, y = [], C = /* @__PURE__ */ n(
53
- b,
54
- w,
55
- y,
56
- !1,
57
- null,
58
- "f04b5d88"
59
- );
60
- const k = C.exports, x = {
61
- components: {
62
- SocialMediaButton: k
63
- },
64
- props: {
65
- text: {
66
- type: String,
67
- required: !0
68
- },
69
- websites: {
70
- type: Object,
71
- default: null
72
- }
73
- }
74
- };
75
- var $ = function() {
76
- var e = this, t = e._self._c;
77
- return t("div", [t("div", { staticClass: "quill-format", domProps: { innerHTML: e._s(e.text) } }), t("div", { staticClass: "website-wrapper" }, [e.websites.website ? t("SocialMediaButton", { attrs: { url: e.websites.website, type: "website" } }) : e._e(), e.websites.linkedin ? t("SocialMediaButton", { attrs: { url: e.websites.linkedin, type: "linkedin" } }) : e._e(), e.websites.facebook ? t("SocialMediaButton", { attrs: { url: e.websites.facebook, type: "facebook" } }) : e._e(), e.websites.instagram ? t("SocialMediaButton", { attrs: { url: e.websites.instagram, type: "instagram" } }) : e._e(), e.websites.google ? t("SocialMediaButton", { attrs: { url: e.websites.google, type: "google" } }) : e._e(), e.websites.reco ? t("SocialMediaButton", { attrs: { url: e.websites.reco, type: "reco" } }) : e._e()], 1)]);
78
- }, M = [], S = /* @__PURE__ */ n(
79
- x,
80
- $,
81
- M,
82
- !1,
83
- null,
84
- "62fcb46b"
85
- );
86
- const B = S.exports, P = {
87
- name: "DocPresentationCertificates",
88
- i18nOptions: {
89
- namespaces: "components",
90
- messages: {
91
- en: {
92
- certificateDisclaimer: "The sender specifies their own certificates. On each webpage it is often possible to verify membership."
93
- },
94
- sv: {
95
- certificateDisclaimer: "Företagen lägger själva upp sina certifikat. På respektive webbplats går det ofta att verifiera medlemskap."
96
- }
97
- }
98
- },
99
- components: {
100
- Animation: u,
101
- CCallout: g
102
- },
103
- props: {
104
- content: {
105
- type: Array,
106
- default: () => []
107
- },
108
- showDisclaimer: {
109
- type: Boolean,
110
- default: !1
111
- }
112
- },
113
- data() {
114
- return {
115
- expandCert: null
116
- };
117
- }
118
- };
119
- var I = function() {
120
- var e = this, t = e._self._c;
121
- return t("div", [e._l(e.content, function(a, i) {
122
- return t("div", { key: i, staticClass: "cert-container" }, [t("div", { staticClass: "cert-wrapper", class: [e.expandCert === i ? "active" : ""], on: { click: function(r) {
123
- e.expandCert = e.expandCert === i ? null : i;
124
- } } }, [t("div", { staticClass: "cert-img", style: { backgroundImage: "url(" + a.img + ")" } }), t("div", { staticClass: "cert-wrapper-title" }, [t("div", { staticClass: "cert-title" }, [e._v(e._s(a.title))])]), t("div", { staticClass: "cert-toggle" }, [t("svg", { attrs: { width: "13", height: "10", viewBox: "0 0 33 19", xmlns: "http://www.w3.org/2000/svg" } }, [t("path", { attrs: { d: "M2.357864 2.61571l14.142135 14.142135L30.642135 2.61571", "stroke-width": "4", stroke: "#929cb7", fill: "none", "fill-rule": "evenodd", "stroke-linecap": "round", "stroke-linejoin": "round" } })])])]), t("Animation", [e.expandCert === i ? t("div", { staticClass: "cert-description" }, [t("div", [e._v(e._s(a.description))]), a.website ? t("a", { staticClass: "cert-link", attrs: { href: a.website.toLowerCase().startsWith("http") ? a.website : `//${a.website}`, target: "_blank", rel: "noopener" } }, [t("svg", { attrs: { name: "new-window", width: "15", height: "15", viewBox: "0 0 113 113", xmlns: "http://www.w3.org/2000/svg" } }, [t("g", { attrs: { stroke: "#2143ff", "stroke-width": "14.4", fill: "none", "fill-rule": "evenodd", "stroke-linecap": "round" } }, [t("path", { attrs: { d: "M70.986736 7.947575h33.854117-33.854117zM54.374951 58.413476l50.465902-50.465901L54.37495 58.413476zM105 40l-.159147-32.052425L105 40z", "stroke-linejoin": "round" } }), t("path", { attrs: { d: "M48.476363 8H26.00398C16.060657 8 8 16.05386 8 26.007354v61.389452c0 9.945187 8.06184 18.007354 18.003453 18.007354h60.993094C96.93958 105.40416 105 97.346548 105 87.394835V62.498611" } })])]), e._v(" " + e._s(e.$t("_common:website", { postProcess: "capitalize" })) + " ")]) : e._e()]) : e._e()])], 1);
125
- }), e.showDisclaimer ? t("CCallout", { attrs: { size: "small" } }, [e._v(" " + e._s(e.$t("certificateDisclaimer")) + " ")]) : e._e()], 2);
126
- }, z = [], F = /* @__PURE__ */ n(
127
- P,
128
- I,
129
- z,
130
- !1,
131
- null,
132
- "30ce5bbb"
133
- );
134
- const D = F.exports, T = {
135
- name: "AvatarContact",
136
- i18nOptions: {
137
- namespaces: "AvatarContact",
138
- messages: {
139
- en: {
140
- bestRegards: "Best regards, "
141
- },
142
- sv: {
143
- bestRegards: "Hälsningar, "
144
- }
145
- }
146
- },
147
- props: {
148
- avatarUrl: {
149
- type: String,
150
- default: null
151
- },
152
- name: {
153
- type: String,
154
- default: null
155
- },
156
- cellphone: {
157
- type: [Number, String],
158
- default: null
159
- },
160
- email: {
161
- type: [Number, String],
162
- default: null
163
- }
164
- }
165
- };
166
- var j = function() {
167
- var e = this, t = e._self._c;
168
- return t("div", { staticClass: "flex w-full" }, [e.avatarUrl ? t("div", [t("div", { staticStyle: { width: "45px", height: "45px", "border-radius": "50%", "background-position": "center", "background-size": "cover", "margin-right": "calc(1.2 * var(--rem))" }, style: { backgroundImage: `url(${e.avatarUrl})` } })]) : e._e(), t("div", { staticClass: "flex w-full flex-grow" }, [t("div", [t("div", { staticStyle: { "font-size": "calc(calc(1 * var(--rem)) - 1px)", color: "#73758c", "font-weight": "500" } }, [e._v(" " + e._s(e.$t("bestRegards")) + " ")]), t("div", { staticStyle: { "font-size": "calc(calc(1 * var(--rem)) + 1px)", "font-weight": "500" } }, [e._v(" " + e._s(e.name) + " ")])]), e.cellphone || e.email ? t("div", { staticClass: "contact-wrapper" }, [e.cellphone ? t("a", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
169
- content: e.cellphone,
170
- autoHide: !1
171
- }, expression: `{
172
- content: cellphone,
173
- autoHide: false
174
- }` }], attrs: { href: `tel:${e.cellphone}` } }, [t("CButton", { staticClass: "text-gray-400", attrs: { circle: "", type: "none", pattern: "secondary", icon: "phone" } })], 1) : e._e(), e.email ? t("a", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
175
- content: e.email,
176
- autoHide: !1
177
- }, expression: `{
178
- content: email,
179
- autoHide: false
180
- }` }], attrs: { href: `mailto:${e.email}` } }, [t("CButton", { staticClass: "text-gray-400", attrs: { circle: "", type: "none", pattern: "secondary", icon: "email" } })], 1) : e._e()]) : e._e()])]);
181
- }, E = [], R = /* @__PURE__ */ n(
182
- T,
183
- j,
184
- E,
185
- !1,
186
- null,
187
- "9f5d2e66"
188
- );
189
- const O = R.exports, V = {
190
- i18nOptions: {
191
- namespaces: "DocPresentationMessageModal",
192
- messages: {
193
- en: {
194
- title: "Personal message",
195
- placeholder: "Write a personal message for your client. Increase your chances of acquiring the job by making it personal, putting the client in focus."
196
- },
197
- sv: {
198
- title: "Personligt meddelande",
199
- placeholder: "Skriv en personlig hälsning till din kund. Öka dina vinstchanser genom att göra den personlig och sätt din kund i fokus."
200
- }
201
- }
202
- },
203
- name: "DocPresentationMessageModal",
204
- components: {
205
- TextEditor: f
206
- },
207
- provide: () => ({ viewSettings: { canEdit: !0 } }),
208
- props: {
209
- _document: {
210
- type: Object,
211
- default: () => ({})
212
- },
213
- setFormValue: {
214
- type: Function,
215
- required: !0
216
- },
217
- removeFormValue: {
218
- type: Function,
219
- required: !0
220
- }
221
- },
222
- data() {
223
- return {
224
- placeholder: "Skriv en personlig hälsning till din kund. Nämn exempelvis att du är glad över att få möjligheten och att ni har goda erfarenheter av att göra liknande arbeten.",
225
- internalValue: ""
226
- };
227
- },
228
- computed: {
229
- ...v({
230
- isPostingDocument: "documents2/isPosting"
231
- })
232
- },
233
- created() {
234
- this.internalValue = this._document.personalMessage || "";
235
- },
236
- methods: {
237
- ...h({
238
- saveDocument: d.DO_SAVE_DYNDOC,
239
- // DO SAVE ACTION TO AVOID FORM CLEAR
240
- loadDocumentForm: d.LOAD_DOCUMENT2_FORM
241
- }),
242
- async saveMessage() {
243
- if (this.internalValue ? this.setFormValue({
244
- key: "data.personalMessage",
245
- value: this.internalValue
246
- }) : this.removeFormValue("data.personalMessage"), this._document.id) {
247
- const s = await this.saveDocument();
248
- this.loadDocumentForm({ documentId: s });
249
- }
250
- this.$emit("close");
251
- }
252
- }
253
- };
254
- var A = function() {
255
- var e = this, t = e._self._c;
256
- return t("div", { staticClass: "bg-white", staticStyle: { padding: "calc(2 * var(--rem))", "border-radius": "0.75em" } }, [t("div", { staticStyle: { "font-size": "calc(calc(1 * var(--rem)) + 4px)", "font-weight": "900", "margin-bottom": "calc(1 * var(--rem))" } }, [e._v(" " + e._s(e.$t("title")) + " ")]), t("TextEditor", { ref: "textEditor", staticStyle: { "margin-bottom": "1em" }, attrs: { extensions: {
257
- blockquote: !0,
258
- highlight: !0,
259
- image: !0,
260
- table: !1
261
- }, placeholder: e.$t("placeholder") }, model: { value: e.internalValue, callback: function(a) {
262
- e.internalValue = a;
263
- }, expression: "internalValue" } }), t("CButton", { attrs: { loading: e.isPostingDocument, type: "primary", expanded: "" }, on: { click: e.saveMessage } }, [e._v(" " + e._s(e.$t("_common:save")) + " ")])], 1);
264
- }, q = [], H = /* @__PURE__ */ n(
265
- V,
266
- A,
267
- q,
268
- !1,
269
- null,
270
- null
271
- );
272
- const U = H.exports, L = {
273
- i18nOptions: {
274
- namespaces: "components",
275
- messages: {
276
- en: {
277
- changeMessage: "Change message",
278
- addMessage: "Add a message",
279
- writeMessage: "Write message",
280
- pmPlaceholder: "Write a personal message for your client. Increase your chances of acquiring the job by making it personal, putting the client in focus."
281
- },
282
- sv: {
283
- changeMessage: "Ändra meddelande",
284
- addMessage: "Lägg till en hälsning",
285
- writeMessage: "Skriv en hälsning",
286
- pmPlaceholder: "Skriv en personlig hälsning till din kund. Öka dina vinstchanser genom att göra den personlig och sätt din kund i fokus."
287
- }
288
- }
289
- },
290
- name: "DocPresentationMessage",
291
- components: {
292
- AvatarContact: O,
293
- IsPremium: () => import("./index-COf8F6CL.js").then((s) => s.i).then((s) => s.IsPremium),
294
- IsPremiumPreStep: () => import("./index-COf8F6CL.js").then((s) => s.i).then((s) => s.IsPremiumPreStep)
295
- },
296
- mixins: [p([])],
297
- props: {
298
- content: {
299
- type: String,
300
- default: ""
301
- },
302
- avatar: {
303
- type: Object,
304
- default: () => null
305
- },
306
- creator: {
307
- type: Object,
308
- default: () => ({})
309
- },
310
- editable: {
311
- type: Boolean,
312
- default: !1
313
- }
314
- },
315
- methods: {
316
- openEditModal() {
317
- this.$modal.show(
318
- U,
319
- {
320
- _document: this._document,
321
- setFormValue: this.viewSettings.setFormValue,
322
- removeFormValue: this.viewSettings.removeFormValue
323
- },
324
- {
325
- adaptive: !0,
326
- scrollable: !0,
327
- height: "auto",
328
- width: "90%",
329
- maxWidth: 450
330
- }
331
- );
332
- }
333
- }
334
- };
335
- var N = function() {
336
- var e = this, t = e._self._c;
337
- return t("div", { staticClass: "presentation-message" }, [e.content ? t("div", { staticClass: "quill-format", domProps: { innerHTML: e._s(e.content) } }) : e._e(), e.editable && e.content ? t("div", { staticStyle: { "margin-top": "calc(2 * var(--rem))" } }, [t("CButton", { attrs: { type: "none", pattern: "secondary", size: "normal", "icon-left": "edit" }, on: { click: e.openEditModal } }, [e._v(" " + e._s(e.$t("changeMessage")) + " ")])], 1) : !e.content && e.editable ? t("CCallout", { attrs: { title: e.$t("addMessage") } }, [t("div", [e._v(e._s(e.$t("pmPlaceholder")))]), t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ allowPremiumFeatures: a }) {
338
- return [t("IsPremiumPreStep", { attrs: { feature: "personalMessage" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: i }) {
339
- return [t("CButton", { staticStyle: { "margin-top": "calc(1.5 * var(--rem))" }, attrs: { type: "secondary", size: "normal" }, on: { click: function(r) {
340
- a ? e.openEditModal() : i({ callback: e.openEditModal });
341
- } } }, [e._v(" " + e._s(e.$t("writeMessage")) + " ")])];
342
- } }], null, !0) })];
343
- } }]) })], 1) : e._e(), e.avatar ? t("AvatarContact", { staticStyle: { "margin-top": "calc(2.5 * var(--rem))" }, attrs: { "avatar-url": e.creator.image, name: e.creator.name, cellphone: e.creator.cellphone, email: e.creator.email } }) : e._e()], 1);
344
- }, W = [], G = /* @__PURE__ */ n(
345
- L,
346
- N,
347
- W,
348
- !1,
349
- null,
350
- "b453656f"
351
- );
352
- const Q = G.exports, X = {
353
- name: "ModalReference",
354
- mixins: [_],
355
- props: {
356
- title: {
357
- type: String,
358
- required: !0
359
- },
360
- content: {
361
- type: String,
362
- required: !0
363
- },
364
- transition: {
365
- type: String,
366
- required: !0
367
- },
368
- /**
369
- * Array with full url paths
370
- */
371
- images: {
372
- type: Array,
373
- required: !0
374
- }
375
- },
376
- data() {
377
- return {
378
- currIndex: 0
379
- };
380
- }
381
- };
382
- var Y = function() {
383
- var e = this, t = e._self._c;
384
- return t("transition", { attrs: { name: e.transition } }, [t("div", { staticClass: "photo-container duration-300ms" }, [e.mq === "sm" ? t("div", { staticClass: "reference-close-button", attrs: { circle: "" }, on: { click: function(a) {
385
- return e.$emit("close");
386
- } } }, [t("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "#FFF", "stroke-width": "2.5", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [t("line", { attrs: { x1: "18", y1: "6", x2: "6", y2: "18" } }), t("line", { attrs: { x1: "6", y1: "6", x2: "18", y2: "18" } })])]) : e._e(), t("div", { staticClass: "relative" }, [e._l(e.images, function(a, i) {
387
- return [e.currIndex === i ? t("div", { key: i, staticClass: "relative overflow-hidden" }, [t("div", { staticClass: "image-background-fill", style: [{ backgroundImage: `url(${a})` }] }), t("div", { staticClass: "image", style: [{ backgroundImage: `url(${a}` }] })]) : e._e()];
388
- }), e.images.length > 1 ? [t("div", { staticClass: "absolute inset-0 flex items-center justify-between p-1" }, [t("CButton", { staticClass: "bg-white/10 text-gray-100", attrs: { icon: "chevron-left", circle: "", type: "none", pattern: "tertiary", "icon-props": { size: 24 } }, on: { click: function(a) {
389
- e.currIndex - 1 < 0 ? e.currIndex = e.images.length - 1 : e.currIndex--;
390
- } } }), t("CButton", { staticClass: "bg-white/10 text-gray-100", attrs: { icon: "chevron-right", circle: "", type: "none", pattern: "tertiary", "icon-props": { size: 24 } }, on: { click: function(a) {
391
- e.currIndex + 1 > e.images.length - 1 ? e.currIndex = 0 : e.currIndex++;
392
- } } })], 1), t("div", { staticClass: "absolute bottom-2 left-0 right-0 flex justify-center gap-2" }, e._l(e.images, function(a, i) {
393
- return t("div", { key: "dot" + i, staticClass: "h-1.5 w-1.5 rounded-full", class: [e.currIndex === i ? "bg-white" : "bg-white/50"] });
394
- }), 0)] : e._e()], 2), t("div", { staticClass: "content" }, [t("div", { staticClass: "text-lg font-bold" }, [e._v(e._s(e.title))]), t("div", { staticClass: "text-base", domProps: { innerHTML: e._s(e.content) } })])])]);
395
- }, J = [], K = /* @__PURE__ */ n(
396
- X,
397
- Y,
398
- J,
399
- !1,
400
- null,
401
- "11972073"
402
- );
403
- const Z = K.exports, ee = {
404
- props: {
405
- albums: {
406
- type: Array,
407
- default: null
408
- }
409
- },
410
- methods: {
411
- show(s) {
412
- this.$nextTick(() => {
413
- this.$modal.show(
414
- Z,
415
- {
416
- title: s.name,
417
- content: s.description || "",
418
- transition: "fade-in-slide-up",
419
- images: s.CompanyReferenceItems.map(
420
- (e) => e.Image.href || `${this.$apiUrl}/file/${e.Image.publicId}/download`
421
- )
422
- },
423
- {
424
- adaptive: !0,
425
- height: "auto",
426
- scrollable: !0,
427
- classes: "overflow-visible",
428
- width: "90%",
429
- maxWidth: 600,
430
- transition: ""
431
- }
432
- );
433
- });
434
- },
435
- getThumbnailPath(s) {
436
- const e = s.CompanyReferenceItems[0].Thumbnail;
437
- return e.href || `${this.$apiUrl}/file/${e.publicId}/download`;
438
- }
439
- }
440
- };
441
- var te = function() {
442
- var e = this, t = e._self._c;
443
- return t("div", { staticClass: "album-wrapper" }, e._l(e.albums, function(a, i) {
444
- return t("div", { key: i, staticStyle: { flex: "1 0 50%" }, on: { click: function(r) {
445
- return e.show(a);
446
- } } }, [t("div", { staticClass: "ref-wrapper" }, [t("div", { staticClass: "ref-bg-wrapper" }, [t("div", { staticClass: "ref-bg", style: { backgroundImage: `url(${e.getThumbnailPath(a)})` } })]), t("div", { staticClass: "ref-title" }, [e._v(e._s(a.name))]), t("div", { staticClass: "ref-data" }, [e._v(" " + e._s(e.$tc("image", { count: a.CompanyReferenceItems.length })) + " ")])])]);
447
- }), 0);
448
- }, se = [], ae = /* @__PURE__ */ n(
449
- ee,
450
- te,
451
- se,
452
- !1,
453
- null,
454
- "2ab67b90"
455
- );
456
- const ie = ae.exports, ne = {
457
- i18nOptions: {
458
- namespaces: "Presentation",
459
- messages: {
460
- en: {
461
- personalMessage: "Personal message"
462
- },
463
- sv: {
464
- personalMessage: "Personligt meddelande"
465
- }
466
- }
467
- },
468
- name: "Presentation",
469
- components: {
470
- DocPresentationMessage: Q,
471
- DocPresentationPhotos: ie,
472
- DocPresentationAboutUs: B,
473
- DocPresentationCertificates: D
474
- },
475
- mixins: [p()],
476
- inject: ["parentSize"],
477
- data() {
478
- return {
479
- activeTab: 0,
480
- certificates: [],
481
- references: [],
482
- about: ""
483
- };
484
- },
485
- computed: {
486
- company() {
487
- return o(this, "_document._doc.company", {});
488
- },
489
- creator() {
490
- return o(this, "_document.sender.user", {});
491
- },
492
- message() {
493
- return o(this, "_document.personalMessage", "");
494
- },
495
- presentationBlocks() {
496
- const s = [];
497
- try {
498
- if (this.message || this.canEdit) {
499
- const e = {
500
- title: this.$t("personalMessage").capitalize(),
501
- component: "DocPresentationMessage",
502
- style: {
503
- backgroundImage: "url(https://images.unsplash.com/photo-1471107340929-a87cd0f5b5f3?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=395debe4f66b27cd8fb346d73cffb70c&auto=format&fit=crop&w=1932&q=80)"
504
- },
505
- props: {
506
- content: this.message || "",
507
- avatar: {
508
- name: this.creator.name,
509
- image: this.creator.avatar,
510
- cellphone: this.creator.cellphone,
511
- email: this.creator.email
512
- },
513
- creator: this.creator,
514
- editable: this.canEdit
515
- }
516
- };
517
- s.push(e);
518
- }
519
- } catch {
520
- }
521
- try {
522
- if (this.about) {
523
- const {
524
- website: e,
525
- recoUrl: t,
526
- instagramUrl: a,
527
- linkedinUrl: i,
528
- facebookUrl: r,
529
- googleUrl: c
530
- } = this.company, m = {
531
- title: this.$t("_common:aboutUs").capitalize(),
532
- component: "DocPresentationAboutUs",
533
- style: {
534
- backgroundImage: "url(https://images.unsplash.com/photo-1452860606245-08befc0ff44b?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=b41f5ead560bfa3348de161f8174e35d&auto=format&fit=crop&w=1350&q=80)"
535
- },
536
- props: {
537
- text: this.about,
538
- websites: {
539
- website: e,
540
- linkedin: i,
541
- reco: t,
542
- instagram: a,
543
- facebook: r,
544
- google: c
545
- }
546
- }
547
- };
548
- s.push(m);
549
- }
550
- } catch {
551
- }
552
- try {
553
- if (this.certificates && this.certificates.length) {
554
- const e = this.certificates.map(
555
- ({ name: a, description: i, imageUrl: r, website: c }) => ({
556
- title: a,
557
- description: i,
558
- img: r,
559
- website: c
560
- })
561
- ), t = {
562
- title: this.$t("_common:certificate", { count: 0 }).capitalize(),
563
- component: "DocPresentationCertificates",
564
- style: {
565
- backgroundImage: "url(https://t4.ftcdn.net/jpg/01/15/80/49/240_F_115804912_5RdHBXm7aGBzQGSGaO6g0kbwlGiXNKBI.jpg)"
566
- },
567
- props: {
568
- content: e,
569
- showDisclaimer: !0
570
- // TODO: How to only enable on client route
571
- }
572
- };
573
- s.push(t);
574
- }
575
- } catch {
576
- }
577
- try {
578
- if (this.references && this.references.length) {
579
- const e = {
580
- title: this.$t("_common:reference", { count: 0 }).capitalize(),
581
- component: "DocPresentationPhotos",
582
- style: {
583
- backgroundImage: "url(https://t4.ftcdn.net/jpg/01/04/71/39/240_F_104713904_IXEtofsNpmsg5ZAjYjiC2brHvnFrsNY0.jpg)"
584
- },
585
- props: {
586
- albums: this.references
587
- }
588
- };
589
- s.push(e);
590
- }
591
- } catch {
592
- }
593
- return s;
594
- },
595
- activeBlock() {
596
- return this.presentationBlocks[this.activeTab];
597
- },
598
- isSmallScreen() {
599
- return this.parentSize.width <= 576;
600
- }
601
- },
602
- created() {
603
- this.fetchCompanyData();
604
- },
605
- methods: {
606
- async fetchCompanyData() {
607
- if (!this.company.publicId)
608
- return;
609
- const { data: s = [] } = await l.getCertificates(
610
- this.company.publicId
611
- ), { data: e = [] } = await l.getReferences(
612
- this.company.publicId
613
- ), { data: t } = await l.get(
614
- this.company.publicId
615
- );
616
- this.certificates = s, this.references = e, this.about = o(t, "company.CompanyBranding.about", "");
617
- }
618
- }
619
- };
620
- var re = function() {
621
- var e = this, t = e._self._c;
622
- return e.presentationBlocks.length ? t("section", { staticClass: "presentation font-inter", class: [{ sm: e.isSmallScreen }] }, [e.isSmallScreen ? t("div", { staticClass: "relative flex w-full snap-x gap-2 overflow-x-auto px-4" }, e._l(e.presentationBlocks, function(a, i) {
623
- return t("div", { key: i, staticClass: "presentation-button slide-item snap-center", class: [{ active: e.activeTab === i }], on: { click: function(r) {
624
- e.activeTab = i;
625
- } } }, [t("div", { staticClass: "presentation-button-bg", style: [a.style] }), t("div", { staticClass: "presentation-button-title" }, [e._v(e._s(a.title))])]);
626
- }), 0) : e._e(), t("div", { staticClass: "no-drag flex w-full justify-between", staticStyle: { position: "relative" } }, [t("div", { staticClass: "presentation-content-wrapper", class: [{ sm: e.isSmallScreen }] }, [t("transition", { attrs: { name: "slide-fade" } }, [e.activeBlock ? t("div", { key: e.activeTab, staticClass: "presentation-wrapper" }, [t("div", { staticClass: "presentation-title" }, [e._v(e._s(e.activeBlock.title))]), t(e.activeBlock.component, e._b({ tag: "component" }, "component", { ...e.activeBlock.props, _document: e._document }, !1))], 1) : e._e()])], 1), e.isSmallScreen ? e._e() : t("div", { staticStyle: { flex: "1 0 180px", "padding-top": "calc(27px + 21px)" } }, e._l(e.presentationBlocks, function(a, i) {
627
- return t("div", { key: i, staticClass: "presentation-button", class: [{ active: e.activeTab === i }], on: { click: function(r) {
628
- e.activeTab = i;
629
- } } }, [t("div", { staticClass: "presentation-button-bg", style: [a.style] }), t("div", { staticClass: "presentation-button-title" }, [e._v(e._s(a.title))])]);
630
- }), 0)])]) : e._e();
631
- }, oe = [], ce = /* @__PURE__ */ n(
632
- ne,
633
- re,
634
- oe,
635
- !1,
636
- null,
637
- "538aed60"
638
- );
639
- const fe = ce.exports;
640
- export {
641
- fe as default
642
- };