@cling-se/widget 0.13.0 → 0.13.2

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 (136) hide show
  1. package/README.md +27 -22
  2. package/dist/{AddClientCallout-92b43564.js → AddClientCallout-7LpWNu29.js} +11 -16
  3. package/dist/{AnswerModal-b22aab96.js → AnswerModal-DnTU4eo8.js} +1931 -1948
  4. package/dist/{AttachmentItem-39196508.js → AttachmentItem-DcwbrFUh.js} +15 -18
  5. package/dist/{BaseDatePicker-8be0c5ee.js → BaseDatePicker-BpyeJH3N.js} +139 -142
  6. package/dist/{BaseInput-779cb5b2.js → BaseInput-DJreiE5M.js} +77 -56
  7. package/dist/{BaseUpload-941ca869.js → BaseUpload-iosxX2-N.js} +208 -212
  8. package/dist/{BlockMedia-bf89f8a9.js → BlockMedia-DnbdVEZz.js} +6 -8
  9. package/dist/{CCallout-4239825f.js → CCallout-CgviPbdr.js} +26 -16
  10. package/dist/{CDropdownItem-d0cd42d6.js → CDropdownItem-CTJ55d4m.js} +51 -50
  11. package/dist/{CField-9b72b886.js → CField-FGP7ehRq.js} +75 -58
  12. package/dist/{CPhoneFormat-34b4c650.js → CPhoneFormat-8u5dmTPd.js} +5 -7
  13. package/dist/{CSlider.vue_vue_type_style_index_0_lang-c1638d8a.js → CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-Dc_pbPEA.js} +6 -8
  14. package/dist/{ClientAutocomplete-0d21002e.js → ClientAutocomplete-hcl0bJxO.js} +11 -13
  15. package/dist/{ClientModal-9b8173e2.js → ClientModal-B8PkUqY2.js} +25 -32
  16. package/dist/{ColorPicker-3d06f308.js → ColorPicker-6AIHrfJ5.js} +5 -7
  17. package/dist/{CompanyModal-2e203a3a.js → CompanyModal-H4hHfy7Y.js} +28 -30
  18. package/dist/{ContentWrapper-71bc374a.js → ContentWrapper-CHZtfhFI.js} +25 -43
  19. package/dist/{CoverBlockSettings-b6c200ee.js → CoverBlockSettings-etwL5N5l.js} +20 -31
  20. package/dist/{DocAnswer-d4ea9b74.js → DocAnswer-Udn1ItYd.js} +5 -12
  21. package/dist/{DocDetails-ea2635ac.js → DocDetails-BQz-is7P.js} +47 -59
  22. package/dist/{DocForm-cff1c78e.js → DocForm-Cvuxr89v.js} +4869 -4944
  23. package/dist/{DocFormSend-d0979323.js → DocFormSend-Bo6YPSMr.js} +15 -33
  24. package/dist/DocLinks-DlWyanFQ.js +38 -0
  25. package/dist/{DocModalBase-77df9b3d.js → DocModalBase-BnuOPozg.js} +8 -10
  26. package/dist/{DocPrint-d39100c7.js → DocPrint-Uw8zz2tr.js} +6 -10
  27. package/dist/{DocReceipt-cf0e772b.js → DocReceipt-DsRzRjD8.js} +11 -15
  28. package/dist/{DocSendReminder-dca2775e.js → DocSendReminder-BEEEh-L9.js} +2 -6
  29. package/dist/{DocTextEditor-5676c56f.js → DocTextEditor-C-qeLSQa.js} +2509 -2529
  30. package/dist/{DocTimeline-5911b608.js → DocTimeline-Bz29bHJu.js} +26 -37
  31. package/dist/{DocumentClient-eca72dd7.js → DocumentClient-1O7wxh-X.js} +15 -22
  32. package/dist/{DocumentLayout-8104d93d.js → DocumentLayout-BrN5peVY.js} +4510 -4527
  33. package/dist/{DocumentLogotype-c43c4bbb.js → DocumentLogotype-Bbas4MsY.js} +20 -22
  34. package/dist/DocumentVoided-Dy-pp_ng.js +25 -0
  35. package/dist/{EmbedInput-02971bf6.js → EmbedInput-bXXwMP4u.js} +9 -12
  36. package/dist/{EmbedSettings-575fae0e.js → EmbedSettings-BA2THNrd.js} +6 -9
  37. package/dist/ErrorCallout-Dvy9895L.js +28 -0
  38. package/dist/{FilePreviewModal-c1d2d5e7.js → FilePreviewModal-r84Ah3lE.js} +8 -14
  39. package/dist/{Flag-1aceeff5.js → Flag-CDN9A_59.js} +18 -20
  40. package/dist/{HeaderSettings-993f8c98.js → HeaderSettings-DoDFhLcR.js} +34 -49
  41. package/dist/{ImageSelectModal-5dfe4a29.js → ImageSelectModal-D6ifkvIw.js} +12 -20
  42. package/dist/{ImageUploadWrapper-1e38bbe2.js → ImageUploadWrapper-K0-MmL-L.js} +356 -384
  43. package/dist/{Index-a7779d2a.js → Index-3p6X7Ln-.js} +24 -26
  44. package/dist/{Index-57800d9c.js → Index-B26J4tXQ.js} +7 -9
  45. package/dist/{Index-7cbe4a17.js → Index-B6gB5CD3.js} +6 -8
  46. package/dist/{Index-ec8820ee.js → Index-B6u3OUGH.js} +20 -23
  47. package/dist/{Index-bc0d3abe.js → Index-BN64idjX.js} +18 -31
  48. package/dist/{Index-50b0a9b8.js → Index-BNGaREiU.js} +14 -21
  49. package/dist/{Index-fa4f462a.js → Index-BNeg0lcx.js} +13 -15
  50. package/dist/{Index-4350bb0f.js → Index-BQVjSt_5.js} +29 -29
  51. package/dist/Index-BVNgUe07.js +21 -0
  52. package/dist/{Index-be8b14a8.js → Index-Be-J2RvQ.js} +8 -11
  53. package/dist/{Index-33635702.js → Index-Btlub0dK.js} +11 -13
  54. package/dist/{Index-46b2296e.js → Index-BtzGGZEN.js} +459 -510
  55. package/dist/{Index-c6a8a298.js → Index-ByCpvqCC.js} +16 -21
  56. package/dist/{Index-8a956c1b.js → Index-CSg7HLqX.js} +8 -10
  57. package/dist/{Index-08737451.js → Index-CUZJomAi.js} +10 -12
  58. package/dist/{Index-9a0233b0.js → Index-Cj_3udAp.js} +12 -21
  59. package/dist/{Index-13e229bb.js → Index-CnOdi4ux.js} +4 -6
  60. package/dist/{Index-c1c7db19.js → Index-DT9AWIQ2.js} +12 -15
  61. package/dist/Index-DWHl_jys.js +24 -0
  62. package/dist/{Index-cfc393ae.js → Index-Di3ibm8r.js} +51 -58
  63. package/dist/Index-Dk-kPbWy.js +52 -0
  64. package/dist/Index-Dl87oWQa.js +49 -0
  65. package/dist/{Index-c4296623.js → Index-DnDY3FUU.js} +9 -11
  66. package/dist/{Index-45c7841a.js → Index-DoKh3I_O.js} +19 -26
  67. package/dist/{Index-2c960d57.js → Index-DvA5sZ1U.js} +7 -9
  68. package/dist/{Index-670097a7.js → Index-DwlzPadK.js} +233 -273
  69. package/dist/{Index-e9f705f3.js → Index-ID37TIgR.js} +2 -4
  70. package/dist/Index-TPRXPN4a.js +26 -0
  71. package/dist/{Index-9b7b4516.js → Index-YdyeCcFX.js} +80 -90
  72. package/dist/{Index-a1097b66.js → Index-b0dDsObZ.js} +5 -9
  73. package/dist/{Index-677b2c85.js → Index-bIYFzizT.js} +4 -6
  74. package/dist/{Index-04f332ec.js → Index-d5iMi4y5.js} +116 -118
  75. package/dist/{Index-2504f599.js → Index-oYQ9EfP9.js} +16 -18
  76. package/dist/{Index-cfa81e3f.js → Index-phsroK51.js} +6 -8
  77. package/dist/{InputToggleRow-a0dc7e03.js → InputToggleRow-ClHkgn7s.js} +3 -5
  78. package/dist/{ManualPopover-6cf3f592.js → ManualPopover-DrhgZvGC.js} +1 -3
  79. package/dist/{MediaWrapper-2c2e3d44.js → MediaWrapper-BxNEJOT7.js} +3 -6
  80. package/dist/{NotBindingText-12f78064.js → NotBindingText-BhKMdYBN.js} +5 -7
  81. package/dist/{PackageGroup-75a1ad26.js → PackageGroup--pDNkIMj.js} +35 -59
  82. package/dist/{PdfTerms-5686a37b.js → PdfTerms-BL34ex7f.js} +11 -18
  83. package/dist/{PdfViewer-d1d05125.js → PdfViewer-CPSINxc8.js} +25 -29
  84. package/dist/{PlainHtml-6cc2bace.js → PlainHtml-Dc76U4EV.js} +5 -7
  85. package/dist/{PriceHeader-e45b65bc.js → PriceHeader-CEGF-DO3.js} +113 -130
  86. package/dist/SearchApi-D4yY2KZj.js +161 -0
  87. package/dist/{Setup-bf823254.js → Setup-BJIY_mWN.js} +9 -11
  88. package/dist/{TermsSettings-7a077b22.js → TermsSettings-DM4pvL-n.js} +6 -12
  89. package/dist/{ThemeColorRow-aad0248e.js → ThemeColorRow-D7TCU3ap.js} +8 -10
  90. package/dist/{ToggleBinding-abd0832e.js → ToggleBinding-CSgFUF6o.js} +7 -9
  91. package/dist/{UploadModal-42302f2b.js → UploadModal-Cz7o7DeT.js} +16 -19
  92. package/dist/{VideoPlayerInput-1c6cbf06.js → VideoPlayerInput-Db0RRtb5.js} +6 -8
  93. package/dist/{VideoPlayerSettings-5ec723e1.js → VideoPlayerSettings-BgbNuWbP.js} +7 -11
  94. package/dist/{VideoSelectModal-16acfd43.js → VideoSelectModal-BIKeCzUZ.js} +20 -28
  95. package/dist/{answerDocumentMixin-97b33f14.js → answerDocumentMixin-Bqg9Of1S.js} +5 -5
  96. package/dist/{debounce-b0ffdee0.js → debounce-DceKdgy2.js} +3 -3
  97. package/dist/{dom-962579a6.js → dom-CPYqHOIw.js} +2 -2
  98. package/dist/{focusDrawerMixin-1d99a268.js → focusDrawerMixin-Cx41U1xU.js} +1 -1
  99. package/dist/{formComponentsInstall-6ccace37.js → formComponentsInstall-CWgaR4yB.js} +1198 -1171
  100. package/dist/{formDrawerState-a7b5832a.js → formDrawerState-DLCSwrgc.js} +1 -1
  101. package/dist/{formValidationMixin-7216cb94.js → formValidationMixin-CsLym0iM.js} +2 -2
  102. package/dist/{index-7690fb79.js → index-0kj8-T7-.js} +39 -44
  103. package/dist/{index-6caf947c.js → index-4MqvoLi4.js} +3 -5
  104. package/dist/{index-93d3e2cb.js → index-By9c7IPL.js} +41 -59
  105. package/dist/{index-d73fd8ca.js → index-C16hoSRM.js} +5 -3
  106. package/dist/{index-ef3da59c.js → index-C6C4uskP.js} +14 -16
  107. package/dist/{IsPremiumPreStep-42eeebac.js → index-Cp7dG8Zm.js} +531 -566
  108. package/dist/index.es.js +3 -3
  109. package/dist/index.umd.js +1019 -1028
  110. package/dist/{main-2c8b76b7.js → main-DBw231uy.js} +21733 -21943
  111. package/dist/{mapFormMixin-c2bc089c.js → mapFormMixin-BrtcYsT9.js} +1 -2
  112. package/dist/{vuedraggable.umd-e89c3d5e.js → omit-DQqb9hkZ.js} +143 -133
  113. package/dist/{publicSenderState-e6458640.js → publicSenderState-BysO0Mzz.js} +1 -1
  114. package/dist/{splitpanes-ba7897bf.js → splitpanes-BHUVsCZF.js} +38 -42
  115. package/dist/style.css +2 -2
  116. package/dist/{throttle-4f3f879a.js → throttle-DKrISvLg.js} +2 -2
  117. package/dist/{tinycolor-f780e5ca.js → tinycolor-Be3bF6zy.js} +6 -6
  118. package/dist/{tippy.esm-a855665a.js → tippy.esm-yjYH8SnL.js} +226 -232
  119. package/dist/{utils-4d39389a.js → utils-DP30AdJH.js} +1 -1
  120. package/package.json +3 -4
  121. package/dist/DocLinks-48aa6dd6.js +0 -41
  122. package/dist/DocumentVoided-2d93ef71.js +0 -27
  123. package/dist/ErrorCallout-05a4796b.js +0 -30
  124. package/dist/Index-1cb59290.js +0 -23
  125. package/dist/Index-2a88c858.js +0 -54
  126. package/dist/Index-5fb421de.js +0 -26
  127. package/dist/Index-6f6fc018.js +0 -28
  128. package/dist/Index-98c7217d.js +0 -61
  129. package/dist/SearchApi-410c081e.js +0 -167
  130. package/dist/index-805c56e4.js +0 -4
  131. package/dist/index-a1d51619.js +0 -14
  132. /package/dist/{CField.vue_vue_type_style_index_0_lang-4ed993c7.js → CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js} +0 -0
  133. /package/dist/{anime.es-e284c852.js → anime.es-BrPTThYb.js} +0 -0
  134. /package/dist/{color-c1606adc.js → color-TdtKxwVa.js} +0 -0
  135. /package/dist/{i18nMessages-6b279c15.js → i18nMessages-Chz_lxGG.js} +0 -0
  136. /package/dist/{vuex.esm-4a0fff7c.js → vuex.esm-DKGl8mcw.js} +0 -0
@@ -1,129 +1,137 @@
1
- import { n as i, g as d, W as m, b as o, av as c } from "./main-2c8b76b7.js";
2
- import { m as p } from "./mapFormMixin-c2bc089c.js";
3
- import { w as _ } from "./CDropdownItem-d0cd42d6.js";
4
- import { m as g, a as v } from "./vuex.esm-4a0fff7c.js";
5
- import { T as f } from "./DocTextEditor-5676c56f.js";
6
- import { C as h } from "./CCallout-4239825f.js";
7
- import "./tippy.esm-a855665a.js";
8
- import "./ColorPicker-3d06f308.js";
9
- import "./DocumentLayout-8104d93d.js";
10
- import "./debounce-b0ffdee0.js";
11
- import "./CSlider.vue_vue_type_style_index_0_lang-c1638d8a.js";
12
- import "./dom-962579a6.js";
13
- import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
14
- import "./ManualPopover-6cf3f592.js";
15
- import "./color-c1606adc.js";
1
+ import { n, W as u, g as d, b as o, ax as l } from "./main-DBw231uy.js";
2
+ import { m as p } from "./mapFormMixin-BrtcYsT9.js";
3
+ import { C as g } from "./CCallout-CgviPbdr.js";
4
+ import { T as f } from "./DocTextEditor-C-qeLSQa.js";
5
+ import { m as v, a as h } from "./vuex.esm-DKGl8mcw.js";
6
+ import { w as _ } from "./CDropdownItem-CTJ55d4m.js";
16
7
  const b = {
17
- name: "ModalReference",
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",
18
22
  props: {
19
- title: {
20
- type: String,
21
- required: !0
22
- },
23
- content: {
23
+ type: {
24
24
  type: String,
25
25
  required: !0
26
26
  },
27
- transition: {
27
+ url: {
28
28
  type: String,
29
29
  required: !0
30
- },
31
- /**
32
- * Array with full url paths
33
- */
34
- images: {
35
- type: Array,
36
- required: !0
37
30
  }
38
31
  },
39
- mixins: [_],
40
- data() {
41
- return {
42
- currIndex: 0
43
- };
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
+ }
44
37
  }
45
38
  };
46
- var y = function() {
39
+ var w = function() {
47
40
  var e = this, t = e._self._c;
48
- 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) {
49
- return e.$emit("close");
50
- } } }, [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, n) {
51
- return [e.currIndex === n ? t("div", { key: n, staticClass: "relative overflow-hidden" }, [t("div", { staticClass: "image-background-fill", style: [{ backgroundImage: `url(${a})` }] }), t("div", { staticClass: "image", style: [{ backgroundImage: `url(${a}` }] })]) : e._e()];
52
- }), 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) {
53
- e.currIndex - 1 < 0 ? e.currIndex = e.images.length - 1 : e.currIndex--;
54
- } } }), 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) {
55
- e.currIndex + 1 > e.images.length - 1 ? e.currIndex = 0 : e.currIndex++;
56
- } } })], 1), t("div", { staticClass: "absolute bottom-2 left-0 right-0 flex justify-center gap-2" }, e._l(e.images, function(a, n) {
57
- return t("div", { key: "dot" + n, staticClass: "h-1.5 w-1.5 rounded-full", class: [e.currIndex === n ? "bg-white" : "bg-white/50"] });
58
- }), 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) } })])])]);
59
- }, w = [], C = /* @__PURE__ */ i(
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(
60
53
  b,
61
- y,
62
54
  w,
55
+ y,
63
56
  !1,
64
57
  null,
65
- "e46413cc",
66
- null,
67
- null
58
+ "f04b5d88"
68
59
  );
69
- const x = C.exports;
70
- const k = {
71
- props: {
72
- albums: {
73
- type: Array,
74
- default: null
75
- }
60
+ const k = C.exports, x = {
61
+ components: {
62
+ SocialMediaButton: k
76
63
  },
77
- methods: {
78
- show(s) {
79
- this.$nextTick(() => {
80
- this.$modal.show(
81
- x,
82
- {
83
- title: s.name,
84
- content: s.description || "",
85
- transition: "fade-in-slide-up",
86
- images: s.CompanyReferenceItems.map(
87
- (e) => e.Image.href || `${this.$apiUrl}/file/${e.Image.publicId}/download`
88
- )
89
- },
90
- {
91
- adaptive: !0,
92
- height: "auto",
93
- scrollable: !0,
94
- classes: "overflow-visible",
95
- width: "90%",
96
- maxWidth: 600,
97
- transition: ""
98
- }
99
- );
100
- });
64
+ props: {
65
+ text: {
66
+ type: String,
67
+ required: !0
101
68
  },
102
- getThumbnailPath(s) {
103
- const e = s.CompanyReferenceItems[0].Thumbnail;
104
- return e.href || `${this.$apiUrl}/file/${e.publicId}/download`;
69
+ websites: {
70
+ type: Object,
71
+ default: null
105
72
  }
106
73
  }
107
74
  };
108
75
  var $ = function() {
109
76
  var e = this, t = e._self._c;
110
- return t("div", { staticClass: "album-wrapper" }, e._l(e.albums, function(a, n) {
111
- return t("div", { key: n, staticStyle: { flex: "1 0 50%" }, on: { click: function(r) {
112
- return e.show(a);
113
- } } }, [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 })) + " ")])])]);
114
- }), 0);
115
- }, M = [], S = /* @__PURE__ */ i(
116
- k,
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,
117
80
  $,
118
81
  M,
119
82
  !1,
120
83
  null,
121
- "2ab67b90",
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,
122
131
  null,
123
- null
132
+ "30ce5bbb"
124
133
  );
125
- const P = S.exports;
126
- const I = {
134
+ const D = F.exports, T = {
127
135
  name: "AvatarContact",
128
136
  i18nOptions: {
129
137
  namespaces: "AvatarContact",
@@ -155,7 +163,7 @@ const I = {
155
163
  }
156
164
  }
157
165
  };
158
- var B = function() {
166
+ var j = function() {
159
167
  var e = this, t = e._self._c;
160
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: {
161
169
  content: e.cellphone,
@@ -170,18 +178,15 @@ var B = function() {
170
178
  content: email,
171
179
  autoHide: false
172
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()])]);
173
- }, z = [], D = /* @__PURE__ */ i(
174
- I,
175
- B,
176
- z,
181
+ }, E = [], R = /* @__PURE__ */ n(
182
+ T,
183
+ j,
184
+ E,
177
185
  !1,
178
186
  null,
179
- "f6a38ddb",
180
- null,
181
- null
187
+ "9f5d2e66"
182
188
  );
183
- const F = D.exports;
184
- const R = {
189
+ const O = R.exports, V = {
185
190
  i18nOptions: {
186
191
  namespaces: "DocPresentationMessageModal",
187
192
  messages: {
@@ -216,13 +221,12 @@ const R = {
216
221
  },
217
222
  data() {
218
223
  return {
219
- // eslint-disable-next-line max-len
220
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.",
221
225
  internalValue: ""
222
226
  };
223
227
  },
224
228
  computed: {
225
- ...g({
229
+ ...v({
226
230
  isPostingDocument: "documents2/isPosting"
227
231
  })
228
232
  },
@@ -230,7 +234,7 @@ const R = {
230
234
  this.internalValue = this._document.personalMessage || "";
231
235
  },
232
236
  methods: {
233
- ...v({
237
+ ...h({
234
238
  saveDocument: d.DO_SAVE_DYNDOC,
235
239
  // DO SAVE ACTION TO AVOID FORM CLEAR
236
240
  loadDocumentForm: d.LOAD_DOCUMENT2_FORM
@@ -247,7 +251,7 @@ const R = {
247
251
  }
248
252
  }
249
253
  };
250
- var T = function() {
254
+ var A = function() {
251
255
  var e = this, t = e._self._c;
252
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: {
253
257
  blockquote: !0,
@@ -257,18 +261,15 @@ var T = function() {
257
261
  }, placeholder: e.$t("placeholder") }, model: { value: e.internalValue, callback: function(a) {
258
262
  e.internalValue = a;
259
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);
260
- }, j = [], E = /* @__PURE__ */ i(
261
- R,
262
- T,
263
- j,
264
+ }, q = [], H = /* @__PURE__ */ n(
265
+ V,
266
+ A,
267
+ q,
264
268
  !1,
265
269
  null,
266
- null,
267
- null,
268
270
  null
269
271
  );
270
- const A = E.exports;
271
- const O = {
272
+ const U = H.exports, L = {
272
273
  i18nOptions: {
273
274
  namespaces: "components",
274
275
  messages: {
@@ -287,12 +288,12 @@ const O = {
287
288
  }
288
289
  },
289
290
  name: "DocPresentationMessage",
290
- mixins: [p([])],
291
291
  components: {
292
- AvatarContact: F,
293
- IsPremium: () => import("./index-a1d51619.js").then((s) => s.IsPremium),
294
- IsPremiumPreStep: () => import("./index-a1d51619.js").then((s) => s.IsPremiumPreStep)
292
+ AvatarContact: O,
293
+ IsPremium: () => import("./index-Cp7dG8Zm.js").then((s) => s.i).then((s) => s.IsPremium),
294
+ IsPremiumPreStep: () => import("./index-Cp7dG8Zm.js").then((s) => s.i).then((s) => s.IsPremiumPreStep)
295
295
  },
296
+ mixins: [p([])],
296
297
  props: {
297
298
  content: {
298
299
  type: String,
@@ -314,7 +315,7 @@ const O = {
314
315
  methods: {
315
316
  openEditModal() {
316
317
  this.$modal.show(
317
- A,
318
+ U,
318
319
  {
319
320
  _document: this._document,
320
321
  setFormValue: this.viewSettings.setFormValue,
@@ -331,163 +332,128 @@ const O = {
331
332
  }
332
333
  }
333
334
  };
334
- var V = function() {
335
+ var N = function() {
335
336
  var e = this, t = e._self._c;
336
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 }) {
337
- return [t("IsPremiumPreStep", { attrs: { feature: "personalMessage" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: n }) {
338
+ return [t("IsPremiumPreStep", { attrs: { feature: "personalMessage" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: i }) {
338
339
  return [t("CButton", { staticStyle: { "margin-top": "calc(1.5 * var(--rem))" }, attrs: { type: "secondary", size: "normal" }, on: { click: function(r) {
339
- a ? e.openEditModal() : n({ callback: e.openEditModal });
340
+ a ? e.openEditModal() : i({ callback: e.openEditModal });
340
341
  } } }, [e._v(" " + e._s(e.$t("writeMessage")) + " ")])];
341
342
  } }], null, !0) })];
342
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);
343
- }, q = [], H = /* @__PURE__ */ i(
344
- O,
345
- V,
346
- q,
344
+ }, W = [], G = /* @__PURE__ */ n(
345
+ L,
346
+ N,
347
+ W,
347
348
  !1,
348
349
  null,
349
- "4c587495",
350
- null,
351
- null
350
+ "b453656f"
352
351
  );
353
- const U = H.exports;
354
- const L = {
355
- i18nOptions: {
356
- namespaces: "components",
357
- messages: {
358
- sv: {
359
- visitOur: "Besök vår {{type}}",
360
- seeTypeReviews: "Se våra {{type}} recensioner"
361
- },
362
- en: {
363
- visitOur: "Visit our {{type}}",
364
- seeTypeReviews: "See our {{type}} reviews"
365
- }
366
- }
367
- },
368
- name: "SocialMediaButton",
352
+ const Q = G.exports, X = {
353
+ name: "ModalReference",
354
+ mixins: [_],
369
355
  props: {
370
- type: {
356
+ title: {
371
357
  type: String,
372
358
  required: !0
373
359
  },
374
- url: {
360
+ content: {
375
361
  type: String,
376
362
  required: !0
377
- }
378
- },
379
- computed: {
380
- tooltipText() {
381
- let { type: s } = this;
382
- 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 }));
383
- }
384
- }
385
- };
386
- var N = function() {
387
- var e = this, t = e._self._c;
388
- return t("a", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
389
- content: e.tooltipText,
390
- classes: "simple small",
391
- placement: "top",
392
- offset: 2
393
- }, expression: `{
394
- content: tooltipText,
395
- classes: 'simple small',
396
- placement: 'top',
397
- offset: 2
398
- }` }], 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("BaseIcon", { 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);
399
- }, W = [], G = /* @__PURE__ */ i(
400
- L,
401
- N,
402
- W,
403
- !1,
404
- null,
405
- "0d0ba2c9",
406
- null,
407
- null
408
- );
409
- const Q = G.exports;
410
- const X = {
411
- components: {
412
- SocialMediaButton: Q
413
- },
414
- props: {
415
- text: {
363
+ },
364
+ transition: {
416
365
  type: String,
417
366
  required: !0
418
367
  },
419
- websites: {
420
- type: Object,
421
- default: null
368
+ /**
369
+ * Array with full url paths
370
+ */
371
+ images: {
372
+ type: Array,
373
+ required: !0
422
374
  }
375
+ },
376
+ data() {
377
+ return {
378
+ currIndex: 0
379
+ };
423
380
  }
424
381
  };
425
382
  var Y = function() {
426
383
  var e = this, t = e._self._c;
427
- 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)]);
428
- }, J = [], K = /* @__PURE__ */ i(
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(
429
396
  X,
430
397
  Y,
431
398
  J,
432
399
  !1,
433
400
  null,
434
- "62fcb46b",
435
- null,
436
- null
401
+ "11972073"
437
402
  );
438
- const Z = K.exports;
439
- const ee = {
440
- name: "DocPresentationCertificates",
441
- i18nOptions: {
442
- namespaces: "components",
443
- messages: {
444
- en: {
445
- certificateDisclaimer: "The sender specifies their own certificates. On each webpage it is often possible to verify membership."
446
- },
447
- sv: {
448
- certificateDisclaimer: "Företagen lägger själva upp sina certifikat. På respektive webbplats går det ofta att verifiera medlemskap."
449
- }
450
- }
451
- },
452
- components: {
453
- Animation: m,
454
- CCallout: h
455
- },
403
+ const Z = K.exports, ee = {
456
404
  props: {
457
- content: {
405
+ albums: {
458
406
  type: Array,
459
- default: () => []
460
- },
461
- showDisclaimer: {
462
- type: Boolean,
463
- default: !1
407
+ default: null
464
408
  }
465
409
  },
466
- data() {
467
- return {
468
- expandCert: null
469
- };
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
+ }
470
439
  }
471
440
  };
472
441
  var te = function() {
473
442
  var e = this, t = e._self._c;
474
- return t("div", [e._l(e.content, function(a, n) {
475
- return t("div", { key: n, staticClass: "cert-container" }, [t("div", { staticClass: "cert-wrapper", class: [e.expandCert === n ? "active" : ""], on: { click: function(r) {
476
- e.expandCert = e.expandCert === n ? null : n;
477
- } } }, [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 === n ? 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);
478
- }), e.showDisclaimer ? t("CCallout", { attrs: { size: "small" } }, [e._v(" " + e._s(e.$t("certificateDisclaimer")) + " ")]) : e._e()], 2);
479
- }, se = [], ae = /* @__PURE__ */ i(
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(
480
449
  ee,
481
450
  te,
482
451
  se,
483
452
  !1,
484
453
  null,
485
- "30ce5bbb",
486
- null,
487
- null
454
+ "2ab67b90"
488
455
  );
489
- const ne = ae.exports;
490
- const ie = {
456
+ const ie = ae.exports, ne = {
491
457
  i18nOptions: {
492
458
  namespaces: "Presentation",
493
459
  messages: {
@@ -501,10 +467,10 @@ const ie = {
501
467
  },
502
468
  name: "Presentation",
503
469
  components: {
504
- DocPresentationMessage: U,
505
- DocPresentationPhotos: P,
506
- DocPresentationAboutUs: Z,
507
- DocPresentationCertificates: ne
470
+ DocPresentationMessage: Q,
471
+ DocPresentationPhotos: ie,
472
+ DocPresentationAboutUs: B,
473
+ DocPresentationCertificates: D
508
474
  },
509
475
  mixins: [p()],
510
476
  inject: ["parentSize"],
@@ -534,7 +500,6 @@ const ie = {
534
500
  title: this.$t("personalMessage").capitalize(),
535
501
  component: "DocPresentationMessage",
536
502
  style: {
537
- // eslint-disable-next-line max-len
538
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)"
539
504
  },
540
505
  props: {
@@ -544,9 +509,6 @@ const ie = {
544
509
  image: this.creator.avatar,
545
510
  cellphone: this.creator.cellphone,
546
511
  email: this.creator.email
547
- // ? used ?
548
- // reviewScore: this.creator.reviewScore,
549
- // reviewCount: this.creator.reviewCount,
550
512
  },
551
513
  creator: this.creator,
552
514
  editable: this.canEdit
@@ -562,40 +524,39 @@ const ie = {
562
524
  website: e,
563
525
  recoUrl: t,
564
526
  instagramUrl: a,
565
- linkedinUrl: n,
527
+ linkedinUrl: i,
566
528
  facebookUrl: r,
567
- googleUrl: l
568
- } = this.company, u = {
529
+ googleUrl: c
530
+ } = this.company, m = {
569
531
  title: this.$t("_common:aboutUs").capitalize(),
570
532
  component: "DocPresentationAboutUs",
571
533
  style: {
572
- // eslint-disable-next-line max-len
573
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)"
574
535
  },
575
536
  props: {
576
537
  text: this.about,
577
538
  websites: {
578
539
  website: e,
579
- linkedin: n,
540
+ linkedin: i,
580
541
  reco: t,
581
542
  instagram: a,
582
543
  facebook: r,
583
- google: l
544
+ google: c
584
545
  }
585
546
  }
586
547
  };
587
- s.push(u);
548
+ s.push(m);
588
549
  }
589
550
  } catch {
590
551
  }
591
552
  try {
592
553
  if (this.certificates && this.certificates.length) {
593
554
  const e = this.certificates.map(
594
- ({ name: a, description: n, imageUrl: r, website: l }) => ({
555
+ ({ name: a, description: i, imageUrl: r, website: c }) => ({
595
556
  title: a,
596
- description: n,
557
+ description: i,
597
558
  img: r,
598
- website: l
559
+ website: c
599
560
  })
600
561
  ), t = {
601
562
  title: this.$t("_common:certificate", { count: 0 }).capitalize(),
@@ -631,6 +592,9 @@ const ie = {
631
592
  }
632
593
  return s;
633
594
  },
595
+ activeBlock() {
596
+ return this.presentationBlocks[this.activeTab];
597
+ },
634
598
  isSmallScreen() {
635
599
  return this.parentSize.width <= 576;
636
600
  }
@@ -642,11 +606,11 @@ const ie = {
642
606
  async fetchCompanyData() {
643
607
  if (!this.company.publicId)
644
608
  return;
645
- const { data: s = [] } = await c.getCertificates(
609
+ const { data: s = [] } = await l.getCertificates(
646
610
  this.company.publicId
647
- ), { data: e = [] } = await c.getReferences(
611
+ ), { data: e = [] } = await l.getReferences(
648
612
  this.company.publicId
649
- ), { data: t } = await c.get(
613
+ ), { data: t } = await l.get(
650
614
  this.company.publicId
651
615
  );
652
616
  this.certificates = s, this.references = e, this.about = o(t, "company.CompanyBranding.about", "");
@@ -655,28 +619,24 @@ const ie = {
655
619
  };
656
620
  var re = function() {
657
621
  var e = this, t = e._self._c;
658
- 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, n) {
659
- return t("div", { key: n, staticClass: "presentation-button slide-item snap-center", class: [{ active: e.activeTab === n }], on: { click: function(r) {
660
- e.activeTab = n;
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;
661
625
  } } }, [t("div", { staticClass: "presentation-button-bg", style: [a.style] }), t("div", { staticClass: "presentation-button-title" }, [e._v(e._s(a.title))])]);
662
- }), 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._l(e.presentationBlocks, function(a, n) {
663
- return e.activeTab === n ? t("div", { key: n, staticClass: "presentation-wrapper" }, [t("div", { staticClass: "presentation-title" }, [e._v(e._s(a.title))]), t(a.component, e._b({ key: n, tag: "component" }, "component", { ...a.props, _document: e._document }, !1))], 1) : e._e();
664
- }), 0)], 1), e.isSmallScreen ? e._e() : t("div", { staticStyle: { flex: "1 0 180px", "padding-top": "calc(27px + 21px)" } }, e._l(e.presentationBlocks, function(a, n) {
665
- return t("div", { key: n, staticClass: "presentation-button", class: [{ active: e.activeTab === n }], on: { click: function(r) {
666
- e.activeTab = n;
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;
667
629
  } } }, [t("div", { staticClass: "presentation-button-bg", style: [a.style] }), t("div", { staticClass: "presentation-button-title" }, [e._v(e._s(a.title))])]);
668
630
  }), 0)])]) : e._e();
669
- }, oe = [], le = /* @__PURE__ */ i(
670
- ie,
631
+ }, oe = [], ce = /* @__PURE__ */ n(
632
+ ne,
671
633
  re,
672
634
  oe,
673
635
  !1,
674
636
  null,
675
- "6f0364ff",
676
- null,
677
- null
637
+ "538aed60"
678
638
  );
679
- const ke = le.exports;
639
+ const fe = ce.exports;
680
640
  export {
681
- ke as default
641
+ fe as default
682
642
  };