@cling-se/widget 0.17.0 → 1.0.0-beta.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 (232) hide show
  1. package/dist/AddClientCallout-e8d19R3f.js +101 -0
  2. package/dist/AnswerModal-BGvB8IVV.js +3291 -0
  3. package/dist/AttachmentItem-CkHbAm4l.js +171 -0
  4. package/dist/BaseUpload-BiJBcWRu.js +2472 -0
  5. package/dist/BlockMedia-CW5wgipC.js +103 -0
  6. package/dist/CCallout-Cy2eeIYd.js +104 -0
  7. package/dist/{CCurrencyDropdown-C2rXt2cJ.js → CCurrencyDropdown-DE_3CTjm.js} +91 -53
  8. package/dist/CDropdownItem-Dmq5gYzA.js +751 -0
  9. package/dist/CFormField.vue_vue_type_script_setup_true_lang-D_U9coAY.js +292 -0
  10. package/dist/{CPhoneFormat-C8VPsiK6.js → CPhoneFormat-BS2nP9kc.js} +13 -21
  11. package/dist/CPhoneInput-Bf6329PO.js +207 -0
  12. package/dist/CPriceInput-d1yjuMQr.js +140 -0
  13. package/dist/CSelect-DgnT07Hk.js +98 -0
  14. package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-Ckl--dyv.js +51 -0
  15. package/dist/ClientAutocomplete-9JzGcO9O.js +532 -0
  16. package/dist/ClientModal-BzWQtWSZ.js +1181 -0
  17. package/dist/ColorPicker-BvoFN8nu.js +1408 -0
  18. package/dist/CompanyModal-Bp4V_az9.js +250 -0
  19. package/dist/ContentWrapper-CuH6xKmo.js +265 -0
  20. package/dist/CoverBlockSettings-BA5L0Zee.js +861 -0
  21. package/dist/DocAnswer-BcNA_KEg.js +33 -0
  22. package/dist/DocDetails-CStEwWnU.js +448 -0
  23. package/dist/DocForm-BOoILf5E.js +6748 -0
  24. package/dist/DocFormSend-CQIf-HJY.js +171 -0
  25. package/dist/DocLinks-BRX5QzNe.js +36 -0
  26. package/dist/DocModalBase-D72yWj-x.js +29 -0
  27. package/dist/DocPrint-BI1LXUPE.js +399 -0
  28. package/dist/DocReceipt-DaZ4V76p.js +341 -0
  29. package/dist/DocSendReminder-DKGZlo7s.js +181 -0
  30. package/dist/DocTextEditor-Dm-cTZpA.js +19413 -0
  31. package/dist/DocTimeline-DCwofzuk.js +537 -0
  32. package/dist/DocumentClient-vJdxCB53.js +90 -0
  33. package/dist/DocumentLayout-CKSi42ev.js +1368 -0
  34. package/dist/DocumentLogotype-DbQlvQ-y.js +162 -0
  35. package/dist/DocumentVoided-CRX2WxWO.js +33 -0
  36. package/dist/EmbedInput-B-oeC4Wy.js +157 -0
  37. package/dist/EmbedSettings-B9Yka2yB.js +103 -0
  38. package/dist/ErrorCallout-B_ygH33E.js +34 -0
  39. package/dist/FilePreviewModal-Bf3ELTow.js +202 -0
  40. package/dist/Flag-BwTgCNHO.js +41 -0
  41. package/dist/HeaderSettings-DvC7nlyY.js +720 -0
  42. package/dist/ImageSelectModal-D3sP3lhR.js +119 -0
  43. package/dist/ImageUploadWrapper-RWNa-yIq.js +1585 -0
  44. package/dist/Index-0_3ULrWX.js +126 -0
  45. package/dist/Index-4NPe0sfX.js +629 -0
  46. package/dist/Index-B1uA0FF6.js +4 -0
  47. package/dist/Index-BBkCYm2q.js +201 -0
  48. package/dist/{Index-LzN6dktq.js → Index-BBwvo7S9.js} +10 -18
  49. package/dist/Index-BEMlsYwJ.js +68 -0
  50. package/dist/Index-BRBhJ6kz.js +21 -0
  51. package/dist/{Index-BPUYpfLJ.js → Index-BTFmHjUt.js} +47 -60
  52. package/dist/Index-BcUNnxLC.js +1098 -0
  53. package/dist/Index-Bo6ExBUL.js +93 -0
  54. package/dist/Index-BvMPCgdH.js +102 -0
  55. package/dist/Index-Bx5TOI9k.js +74 -0
  56. package/dist/Index-C7GZS8EI.js +16 -0
  57. package/dist/Index-CNWhm07R.js +25 -0
  58. package/dist/{Index-BUK-1yVR.js → Index-CQpznMKV.js} +9 -17
  59. package/dist/Index-CRzsnIij.js +159 -0
  60. package/dist/Index-CeSG1C41.js +140 -0
  61. package/dist/Index-CjfjdZj5.js +52 -0
  62. package/dist/Index-CskKmZpd.js +363 -0
  63. package/dist/Index-D5qwbCo1.js +28 -0
  64. package/dist/Index-D8Ae1Txt.js +228 -0
  65. package/dist/Index-DE8aenDB.js +3452 -0
  66. package/dist/Index-DI5EB5Rt.js +39 -0
  67. package/dist/Index-DaV57YPP.js +163 -0
  68. package/dist/Index-DbwkmoyM.js +38 -0
  69. package/dist/Index-Df9skok6.js +70 -0
  70. package/dist/{Index-BHJGfHm9.js → Index-DfLLA0ij.js} +313 -206
  71. package/dist/Index-Dw1CO5F9.js +76 -0
  72. package/dist/Index-PZXyOoVb.js +87 -0
  73. package/dist/{Index-BioOegOO.js → Index-ZUnH-BHj.js} +10 -18
  74. package/dist/Index-cjKGSiDi.js +136 -0
  75. package/dist/Index-m-goRuKD.js +49 -0
  76. package/dist/Index-rGeWbLcB.js +47 -0
  77. package/dist/Index-vrljNp6G.js +28 -0
  78. package/dist/Index.vue_vue_type_script_lang-aeVuChGF.js +671 -0
  79. package/dist/InputToggleRow-v6qAWPg6.js +99 -0
  80. package/dist/ManualPopover-BONBJIUA.js +57 -0
  81. package/dist/MediaWrapper-CXb2UGd9.js +18 -0
  82. package/dist/{NotBindingText-CM3FN0A6.js → NotBindingText-BqESO13N.js} +13 -17
  83. package/dist/PackageGroup-AIysVmyh.js +1058 -0
  84. package/dist/PdfTerms-BlhHdTu3.js +34 -0
  85. package/dist/PdfViewer-DwZ1rwlN.js +392 -0
  86. package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6NNUTz0.js +17 -0
  87. package/dist/PriceHeader-C4XhnoA3.js +488 -0
  88. package/dist/SearchApi-B7lXgUY6.js +137 -0
  89. package/dist/SendForm-BcD0xSvB.js +7031 -0
  90. package/dist/Setup-C2qaYDei.js +47 -0
  91. package/dist/{SmartList-DhhjSWLO.js → SmartList-DqG7Q5t7.js} +16 -24
  92. package/dist/Sortable.vue_vue_type_script_setup_true_lang-CzMbr8AX.js +1303 -0
  93. package/dist/{TermsSettings-BEQwmkFH.js → TermsSettings-BOCONyM4.js} +169 -56
  94. package/dist/ThemeColorRow-sjGdMzGN.js +108 -0
  95. package/dist/ToggleBinding-7oq_oXPt.js +44 -0
  96. package/dist/UploadModal-C_X2NjVY.js +134 -0
  97. package/dist/VideoPlayerInput-BsUcmpl4.js +135 -0
  98. package/dist/VideoPlayerSettings-BXMmxaZQ.js +78 -0
  99. package/dist/VideoSelectModal-CW0OweCw.js +217 -0
  100. package/dist/{anime.es-BrPTThYb.js → anime.es-gdcpA-eY.js} +1 -2
  101. package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
  102. package/dist/{debounce-D0hKNU85.js → debounce-DNl99Gyo.js} +10 -10
  103. package/dist/dom-CkTGWrfu.js +69 -0
  104. package/dist/{focusDrawerMixin-C_aTLmK0.js → focusDrawerMixin-BwcErMDY.js} +1 -1
  105. package/dist/{formDrawerState-Da4mcbab.js → formDrawerState-DaurePnd.js} +2 -2
  106. package/dist/helpers-CPW--XIz.js +44 -0
  107. package/dist/index-BjiGCJPI.js +149 -0
  108. package/dist/index-CFNv6OvX.js +188 -0
  109. package/dist/index-Cx71On5Z.js +508 -0
  110. package/dist/index-DKMxIBz_.js +270 -0
  111. package/dist/index-DKf5SGLD.js +125 -0
  112. package/dist/index-E32WgUp9.js +3525 -0
  113. package/dist/index-kp-GC5I0.js +513 -0
  114. package/dist/index.es.js +2 -5
  115. package/dist/index.umd.js +285 -1485
  116. package/dist/{main-BgzLHIoo.js → main-Cb-nyil1.js} +41414 -42507
  117. package/dist/mapFormMixin-D3BihYWW.js +1544 -0
  118. package/dist/omit--YYr41Xp.js +31 -0
  119. package/dist/{publicSenderState-DB4BHByV.js → publicSenderState-CdRW_Wwp.js} +4 -4
  120. package/dist/splitpanes-D-ThFkeR.js +342 -0
  121. package/dist/style.css +1 -4
  122. package/dist/template-BvaNnq-g.js +1493 -0
  123. package/dist/{throttle-DT2UVOqm.js → throttle-D-bUGaVh.js} +2 -2
  124. package/dist/tippy.esm-BmKNqohP.js +1994 -0
  125. package/dist/useTermsModal-Dhf6_eYb.js +87 -0
  126. package/dist/{utils-nos8CB1L.js → utils-CBPcYdLv.js} +8 -11
  127. package/dist/validation-DOcUOoMe.js +40 -0
  128. package/package.json +18 -21
  129. package/dist/AddClientCallout-BJzBdba1.js +0 -48
  130. package/dist/AnswerModal-frHq1g4s.js +0 -3874
  131. package/dist/AttachmentItem-BaN0OrEV.js +0 -85
  132. package/dist/BaseDatePicker-B-AfdrSb.js +0 -3187
  133. package/dist/BaseUpload-CY3lTcte.js +0 -1977
  134. package/dist/BlockMedia-Bb5wQIDg.js +0 -76
  135. package/dist/CCallout-5quI6yyk.js +0 -58
  136. package/dist/CDropdownItem-CaoSQX6X.js +0 -640
  137. package/dist/CFormField-Dd2Y71JG.js +0 -240
  138. package/dist/CPhoneInput-BU1t6eo_.js +0 -138
  139. package/dist/CPriceInput-pv2aIVkH.js +0 -116
  140. package/dist/CSelect-CrM45B7V.js +0 -91
  141. package/dist/CSkeleton-BkvONMqL.js +0 -55
  142. package/dist/ClientAutocomplete-BRXIKQSk.js +0 -438
  143. package/dist/ClientModal-CvHAptV2.js +0 -666
  144. package/dist/ColorPicker-RgoXRrud.js +0 -2879
  145. package/dist/CompanyModal-OL4bD9Gk.js +0 -147
  146. package/dist/ContentWrapper-8HduCnR4.js +0 -190
  147. package/dist/CoverBlockSettings-DUv8AcdX.js +0 -659
  148. package/dist/DocAnswer-DiyFfpT2.js +0 -36
  149. package/dist/DocDetails-BxNRfBnK.js +0 -263
  150. package/dist/DocForm-MGp-o0pu.js +0 -5017
  151. package/dist/DocFormSend-q_QuVCqh.js +0 -146
  152. package/dist/DocLinks-DGDdp30U.js +0 -38
  153. package/dist/DocModalBase-qG4RqwBn.js +0 -28
  154. package/dist/DocPrint-Cln3kt0g.js +0 -240
  155. package/dist/DocReceipt-nbsJ-ukZ.js +0 -217
  156. package/dist/DocSendReminder-B3qdqduf.js +0 -140
  157. package/dist/DocTextEditor-CQDnjnRY.js +0 -17193
  158. package/dist/DocTimeline-CgKHoDcG.js +0 -485
  159. package/dist/DocumentClient-UZlnIlz5.js +0 -136
  160. package/dist/DocumentLayout-Dvr4zgyF.js +0 -4880
  161. package/dist/DocumentLogotype-mAVgMRHr.js +0 -92
  162. package/dist/DocumentVoided-BXYNrf_6.js +0 -25
  163. package/dist/EmbedInput-YRUrw3c6.js +0 -117
  164. package/dist/EmbedSettings-DvRreF7H.js +0 -74
  165. package/dist/ErrorCallout-DVknpLVY.js +0 -27
  166. package/dist/FilePreviewModal-DC56FaGy.js +0 -81
  167. package/dist/Flag-D5iZLESg.js +0 -46
  168. package/dist/HeaderSettings-DXZnZL7A.js +0 -440
  169. package/dist/ImageSelectModal-Bu4_xZga.js +0 -86
  170. package/dist/ImageUploadWrapper-CtZhkAm1.js +0 -1604
  171. package/dist/Index-B1dJO6Bk.js +0 -54
  172. package/dist/Index-B3pz1coY.js +0 -150
  173. package/dist/Index-BHgW8EHW.js +0 -2446
  174. package/dist/Index-BNucs2O-.js +0 -154
  175. package/dist/Index-BW-EtZ1z.js +0 -55
  176. package/dist/Index-BjKACpun.js +0 -66
  177. package/dist/Index-C94BL4uU.js +0 -294
  178. package/dist/Index-CB57haU8.js +0 -58
  179. package/dist/Index-CP17iXT6.js +0 -25
  180. package/dist/Index-CUSbvjoD.js +0 -62
  181. package/dist/Index-CVnD6jo5.js +0 -25
  182. package/dist/Index-Ci5zdPeT.js +0 -28
  183. package/dist/Index-CikqSMjb.js +0 -41
  184. package/dist/Index-CxO4tJ3U.js +0 -26
  185. package/dist/Index-D4J4BpHd.js +0 -230
  186. package/dist/Index-DAQQQlut.js +0 -754
  187. package/dist/Index-DNxSR72J.js +0 -73
  188. package/dist/Index-DPuKRwmu.js +0 -41
  189. package/dist/Index-DSy8QG8T.js +0 -32
  190. package/dist/Index-DX6_D-J-.js +0 -77
  191. package/dist/Index-Dk0KaIKg.js +0 -643
  192. package/dist/Index-Hkzoh9QR.js +0 -24
  193. package/dist/Index-KsHJxWAa.js +0 -94
  194. package/dist/Index-TtItTuv6.js +0 -33
  195. package/dist/Index-YAD39Qvg.js +0 -146
  196. package/dist/Index-eh909lAz.js +0 -107
  197. package/dist/Index-otowKI_C.js +0 -56
  198. package/dist/Index-t_oVV8Rc.js +0 -84
  199. package/dist/Index-vG96oEXZ.js +0 -144
  200. package/dist/InputToggleRow-CcqJDguN.js +0 -57
  201. package/dist/ManualPopover-BE2IN-XU.js +0 -60
  202. package/dist/MediaWrapper-lnGUFiyc.js +0 -23
  203. package/dist/PackageGroup-BsmxOMLW.js +0 -704
  204. package/dist/PdfTerms-BgYwZoAZ.js +0 -31
  205. package/dist/PdfViewer-C0lDpjte.js +0 -383
  206. package/dist/PlainHtml-5YwYVj1v.js +0 -27
  207. package/dist/PriceHeader-CxqhpGS-.js +0 -338
  208. package/dist/SearchApi-BndaIbri.js +0 -161
  209. package/dist/SendForm-D7U9fG-5.js +0 -1023
  210. package/dist/Setup-CmAK2_ZT.js +0 -50
  211. package/dist/ThemeColorRow-BlnhzebY.js +0 -69
  212. package/dist/ToggleBinding-t_58JFya.js +0 -42
  213. package/dist/UploadModal-T-WpYNsN.js +0 -95
  214. package/dist/VideoPlayerInput-DKHKjMgX.js +0 -97
  215. package/dist/VideoPlayerSettings-DDMlUvSt.js +0 -61
  216. package/dist/VideoSelectModal-B9bbP0dd.js +0 -104
  217. package/dist/answerDocumentMixin-DXI_E5Kx.js +0 -51
  218. package/dist/dom-CWsqMElk.js +0 -71
  219. package/dist/formValidationMixin-WZ2lGndu.js +0 -49
  220. package/dist/index-B2l57ilt.js +0 -102
  221. package/dist/index-COKDjmM2.js +0 -167
  222. package/dist/index-HtKGcIng.js +0 -2700
  223. package/dist/index-LQ7NztTt.js +0 -81
  224. package/dist/index-fx5gR8fM.js +0 -351
  225. package/dist/index-zXXJrTvv.js +0 -492
  226. package/dist/mapFormMixin-CQgSN7dv.js +0 -3028
  227. package/dist/omit-ScS7B6c5.js +0 -31
  228. package/dist/simplebar.min-B0cB_p8g.js +0 -71
  229. package/dist/splitpanes-BHUVsCZF.js +0 -382
  230. package/dist/tippy.esm-CR89mtdY.js +0 -1805
  231. package/dist/vuedraggable.umd-CkXXkt1b.js +0 -3161
  232. package/dist/vuex.esm-DKGl8mcw.js +0 -467
@@ -1,94 +0,0 @@
1
- import { m as o } from "./mapFormMixin-CQgSN7dv.js";
2
- import { f as a } from "./focusDrawerMixin-C_aTLmK0.js";
3
- import { g as r } from "./utils-nos8CB1L.js";
4
- import { n } from "./main-BgzLHIoo.js";
5
- const d = {
6
- name: "VideoPlayer",
7
- i18nOptions: {
8
- namespaces: "components",
9
- keyPrefix: "document.videoPlayer"
10
- },
11
- components: {
12
- VideoPlayerSettings: () => import("./VideoPlayerSettings-DDMlUvSt.js"),
13
- VideoPlayerInput: () => import("./VideoPlayerInput-DKHKjMgX.js")
14
- },
15
- mixins: [o(["videoPlayer"]), a],
16
- data() {
17
- return {
18
- showControls: !1,
19
- aspectRatio: null,
20
- sizes: {
21
- small: 600,
22
- medium: 1e3,
23
- large: 1e3
24
- },
25
- // defaults to 16:9 aspect ratio
26
- videoSize: {
27
- width: 480,
28
- height: 270
29
- }
30
- };
31
- },
32
- computed: {
33
- video() {
34
- var t;
35
- return ((t = this.videoPlayer) == null ? void 0 : t.video) || {};
36
- },
37
- size() {
38
- var t;
39
- return ((t = this.videoPlayer) == null ? void 0 : t.size) || "medium";
40
- }
41
- },
42
- watch: {
43
- video: {
44
- immediate: !0,
45
- async handler(t) {
46
- if (!t || !t.url)
47
- return;
48
- let { width: e, height: i } = t;
49
- (!e || !i) && ({ width: e, height: i } = await r(t.url) || {}), this.videoSize = { width: e, height: i }, this.setAspectRatio();
50
- }
51
- },
52
- size() {
53
- this.setAspectRatio();
54
- }
55
- },
56
- methods: {
57
- setValue({ key: t, value: e }) {
58
- this.videoPlayer = {
59
- ...this.videoPlayer,
60
- [t]: e
61
- };
62
- },
63
- setAspectRatio() {
64
- !this.videoSize.width || !this.videoSize.height || (this.aspectRatio = `${Math.round(
65
- 100 * this.videoSize.height / this.videoSize.width
66
- )}%`);
67
- },
68
- onAdd() {
69
- var t;
70
- this._isNodeRecentlyAdded() && ((t = this.$refs.input) == null || t.focus());
71
- }
72
- }
73
- };
74
- var l = function() {
75
- var e = this, i = e._self._c;
76
- return i("div", { staticClass: "video-root font-inter", on: { "&mouseover": function(s) {
77
- e.showControls = !0;
78
- }, "&mouseleave": function(s) {
79
- e.showControls = !1;
80
- } } }, [i("div", { staticClass: "no-drag", class: [`video-is-${e.size}`] }, [i("div", { staticClass: "video-container", style: { paddingTop: e.aspectRatio } }, [!e.video.url && e.canEdit ? i("div", { staticClass: "video-element" }, [i("div", { staticClass: "is-placeholder" }, [i("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("subTitle")) + " ")]), i("VideoPlayerInput", { ref: "input", staticStyle: { "padding-top": "1em" }, attrs: { value: e.video }, on: { input: function(s) {
81
- return e.setValue({ key: "video", value: s });
82
- }, "hook:mounted": e.onAdd } })], 1)]) : i("iframe", { ref: "iframe", staticClass: "video-element", attrs: { title: "Video", src: e.video.url, frameborder: "0", allowfullscreen: "" } })])]), e.isForm ? [e.showDrawer ? i("portal", { attrs: { to: "drawer-content" } }, [i("VideoPlayerSettings", { attrs: { video: e.video, size: e.size }, on: { input: e.setValue } })], 1) : e._e()] : e._e()], 2);
83
- }, c = [], m = /* @__PURE__ */ n(
84
- d,
85
- l,
86
- c,
87
- !1,
88
- null,
89
- "a0759f45"
90
- );
91
- const f = m.exports;
92
- export {
93
- f as default
94
- };
@@ -1,33 +0,0 @@
1
- import { m as n } from "./mapFormMixin-CQgSN7dv.js";
2
- import { n as i } from "./main-BgzLHIoo.js";
3
- const r = {
4
- name: "ExtraWorkTimeImpactText",
5
- components: {
6
- Read: () => import("./Index-BioOegOO.js"),
7
- Edit: () => import("./Index-YAD39Qvg.js")
8
- },
9
- mixins: [
10
- n([
11
- "workStartAt",
12
- "workEndAt",
13
- "timeUnit",
14
- "noOfTimeUnits",
15
- "timeDeltaDirection"
16
- ])
17
- ]
18
- };
19
- var o = function() {
20
- var t = this, e = t._self._c;
21
- return t.canEdit ? e("Edit", t._g({ attrs: { _document: t._document, _value: t._value } }, t.$listeners)) : e("Read", { attrs: { "work-start-at": t.workStartAt, "work-end-at": t.workEndAt, "time-unit": t.timeUnit, "no-of-time-units": t.noOfTimeUnits, "time-delta-direction": t.timeDeltaDirection } });
22
- }, a = [], m = /* @__PURE__ */ i(
23
- r,
24
- o,
25
- a,
26
- !1,
27
- null,
28
- null
29
- );
30
- const d = m.exports;
31
- export {
32
- d as default
33
- };
@@ -1,146 +0,0 @@
1
- import { m as o } from "./mapFormMixin-CQgSN7dv.js";
2
- import { C as s } from "./CSelect-CrM45B7V.js";
3
- import { b as l } from "./CDropdownItem-CaoSQX6X.js";
4
- import { n as c, _ as m } from "./main-BgzLHIoo.js";
5
- import { v as a } from "./index-zXXJrTvv.js";
6
- const u = (e, t) => e ? m(t.workStartAt || /* @__PURE__ */ new Date(), e) >= 0 : !0, d = {
7
- name: "ExtraWorkTimeImpactTextEdit",
8
- i18nOptions: {
9
- namespaces: "ExtraWorkTimeImpactTextEdit",
10
- messages: {
11
- en: {
12
- placeholders: {
13
- workStartAt: "Start date",
14
- workEndAt: "End date"
15
- },
16
- inlineForm: {
17
- 1: "Work will start",
18
- 2: "and will be completed no later than",
19
- 3: "Due to the work the original project time"
20
- },
21
- error: "End date needs to be after start date"
22
- },
23
- sv: {
24
- placeholders: {
25
- workStartAt: "Startdatum",
26
- workEndAt: "Slutdatum"
27
- },
28
- inlineForm: {
29
- 1: "Arbetet kommer påbörjas",
30
- 2: "och är senast klar",
31
- 3: "Med anledning av arbetet kommer den ursprungliga kontraktstiden"
32
- },
33
- error: "Slutdatumet måste vara efter startdatumet."
34
- }
35
- }
36
- },
37
- components: {
38
- CSelect: s,
39
- CSwitch: l
40
- },
41
- mixins: [
42
- o([
43
- "workStartAt",
44
- "workEndAt",
45
- "timeUnit",
46
- "noOfTimeUnits",
47
- "timeDeltaDirection"
48
- ])
49
- ],
50
- data() {
51
- return {
52
- isOpen: !1,
53
- // Variable to store the old content when the card is disabled
54
- hiddenModuleDateDelay: null
55
- };
56
- },
57
- validations: {
58
- workStartAt: {
59
- required: a.requiredIf(
60
- (e) => e.workStartAt || e.workEndAt || e.timeDeltaDirection || e.noOfTimeUnits || e.timeUnit
61
- )
62
- },
63
- workEndAt: {
64
- required: a.requiredIf(
65
- (e) => e.workStartAt || e.workEndAt || e.timeDeltaDirection || e.noOfTimeUnits || e.timeUnit
66
- ),
67
- endDateMustBeGreater: u
68
- },
69
- timeDeltaDirection: {
70
- required: a.requiredIf(
71
- (e) => e.workStartAt || e.workEndAt || e.timeDeltaDirection || e.noOfTimeUnits || e.timeUnit
72
- )
73
- },
74
- noOfTimeUnits: {
75
- required: a.requiredIf(
76
- (e) => e.workStartAt || e.workEndAt || e.timeDeltaDirection || e.noOfTimeUnits || e.timeUnit
77
- )
78
- },
79
- timeUnit: {
80
- required: a.requiredIf(
81
- (e) => e.workStartAt || e.workEndAt || e.timeDeltaDirection || e.noOfTimeUnits || e.timeUnit
82
- )
83
- }
84
- },
85
- mounted() {
86
- const {
87
- workStartAt: e,
88
- workEndAt: t,
89
- timeUnit: r,
90
- noOfTimeUnits: i,
91
- timeDeltaDirection: n
92
- } = this;
93
- (e || t || r || i || n) && (this.isOpen = !0);
94
- },
95
- methods: {
96
- getDateValue(e) {
97
- return e ? this.$formatDate(e, "yyyy-MM-dd") : null;
98
- },
99
- // Method to handle internal data when open/closed
100
- toggleOpen(e) {
101
- return e ? !0 : (this.clearRoot(), this.$v.$touch(), !1);
102
- },
103
- // Method to set the root object to null to clear data
104
- clearRoot() {
105
- const e = this._value.workStartAt.split(".");
106
- e.pop();
107
- const t = e.join(".");
108
- this.$emit("input", { key: t, value: void 0 });
109
- }
110
- }
111
- };
112
- var p = function() {
113
- var t = this, r = t._self._c;
114
- return r("div", { staticStyle: { position: "relative" } }, [r("CSwitch", { staticStyle: { position: "absolute", right: "0", top: "calc(-0.5 * var(--rem))", transform: "translateY(-100%)" }, on: { input: t.toggleOpen }, model: { value: t.isOpen, callback: function(i) {
115
- t.isOpen = i;
116
- }, expression: "isOpen" } }), t.isOpen ? r("div", [r("div", { staticClass: "inline-form" }, [t._v(" " + t._s(t.$t("inlineForm.1")) + " "), r("input", { staticClass: "ml-1 bg-gray-100", attrs: { type: "date", max: t.getDateValue(t.workEndAt) }, domProps: { value: t.getDateValue(t.workStartAt) }, on: { input: function(i) {
117
- var n;
118
- t.workStartAt = (n = i.target) != null && n.value ? new Date(i.target.value).toISOString() : null;
119
- } } }), t._v(" " + t._s(t.$t("inlineForm.2")) + " "), r("input", { staticClass: "ml-1 bg-gray-100", attrs: { type: "date", min: t.getDateValue(t.workStartAt) }, domProps: { value: t.getDateValue(t.workEndAt) }, on: { input: function(i) {
120
- var n;
121
- t.workEndAt = (n = i.target) != null && n.value ? new Date(i.target.value).toISOString() : null;
122
- } } }), t._v(". " + t._s(t.$t("inlineForm.3")) + " "), r("CSelect", { staticClass: "select-width input-inline-language", attrs: { placeholder: t.$t("_common:select") }, model: { value: t.timeDeltaDirection, callback: function(i) {
123
- t.timeDeltaDirection = i;
124
- }, expression: "timeDeltaDirection" } }, [r("option", { attrs: { value: "extend" } }, [t._v(" " + t._s(t.$t("_common:extend").toLowerCase()) + " ")]), r("option", { attrs: { value: "shorten" } }, [t._v(" " + t._s(t.$t("_common:shorten").toLowerCase()) + " ")])]), t._v(" " + t._s(t.$t("_common:with")) + " "), r("CSelect", { staticClass: "select-width quantity input-inline-language", staticStyle: { width: "calc(2 * var(--rem))", "margin-right": "calc(0.5 * var(--rem))" }, attrs: { placeholder: t.$t("_common:select") }, model: { value: t.noOfTimeUnits, callback: function(i) {
125
- t.noOfTimeUnits = i;
126
- }, expression: "noOfTimeUnits" } }, t._l(31, function(i, n) {
127
- return r("option", { key: n, staticStyle: { "font-size": "calc(calc(1 * var(--rem)) + 1px)", "text-align": "center" }, domProps: { value: i - 1 } }, [t._v(" " + t._s(i - 1) + " ")]);
128
- }), 0), r("CSelect", { staticClass: "select-width unit input-inline-language", attrs: { placeholder: t.$t("_common:select") }, on: { blur: function(i) {
129
- return t.$v.timeUnit.$touch();
130
- } }, model: { value: t.timeUnit, callback: function(i) {
131
- t.timeUnit = i;
132
- }, expression: "timeUnit" } }, [r("option", { attrs: { value: "days" } }, [t._v(t._s(t.$t("_common:day_plural")))]), r("option", { attrs: { value: "weeks" } }, [t._v(t._s(t.$t("_common:week_plural")))]), r("option", { attrs: { value: "months" } }, [t._v(" " + t._s(t.$t("_common:month_plural")) + " ")])]), t._v(". ")], 1), t.$v.$invalid && t.$v.$dirty ? r("div", { staticClass: "error-wrapper", on: { click: function(i) {
133
- return t.$v.$touch();
134
- } } }, [r("svg", { attrs: { name: "info-icon", width: "14", height: "14", viewBox: "0 0 125 125", xmlns: "http://www.w3.org/2000/svg" } }, [r("path", { attrs: { d: "M62.5 125C27.9822 125 0 97.0178 0 62.5S27.9822 0 62.5 0 125 27.9822 125 62.5 97.0178 125 62.5 125zM52.44694 65.23395v26.93183c0 5.43129 4.40293 9.83422 9.83422 9.83422 5.4461 0 9.87524-4.38793 9.92615-9.83379l.25177-26.93269c.05142-5.50025-4.36573-10.00077-9.86598-10.05219a9.963143 9.963143 0 0 0-.0931-.00043c-5.55215 0-10.05306 4.5009-10.05306 10.05305zm.43768-31.76657c0 5.25109 4.2545 9.50584 9.5027 9.50584h.22536c5.2467 0 9.5027-4.25591 9.5027-9.50584 0-5.25109-4.2545-9.50584-9.5027-9.50584h-.22536c-5.2467 0-9.5027 4.25591-9.5027 9.50584z", fill: "currentColor", "fill-rule": "evenodd" } })]), t._v(" " + t._s(t.$t("error")) + " ")]) : t._e()]) : t._e()], 1);
135
- }, f = [], _ = /* @__PURE__ */ c(
136
- d,
137
- p,
138
- f,
139
- !1,
140
- null,
141
- "8eeff7da"
142
- );
143
- const D = _.exports;
144
- export {
145
- D as default
146
- };
@@ -1,107 +0,0 @@
1
- import { m as i } from "./mapFormMixin-CQgSN7dv.js";
2
- import { V as n } from "./PdfViewer-C0lDpjte.js";
3
- import { c as l, d as o, n as d } from "./main-BgzLHIoo.js";
4
- const u = {
5
- i18nOptions: {
6
- namespaces: "pdfBlock",
7
- messages: {
8
- en: {
9
- embedded: "Embedded",
10
- numOfPages: "- {{numPages}} pages",
11
- upload: "Upload PDF"
12
- },
13
- sv: {
14
- embedded: "Inbäddat",
15
- numOfPages: "- {{numPages}} sidor",
16
- upload: "Ladda upp en pdf"
17
- }
18
- }
19
- },
20
- name: "Pdf",
21
- components: {
22
- PdfViewer: n,
23
- FileIcon: () => import("./Index-DAQQQlut.js"),
24
- BaseUpload: () => import("./BaseUpload-CY3lTcte.js")
25
- },
26
- mixins: [i(["file"])],
27
- inject: {
28
- isPdf: {
29
- default: !1
30
- },
31
- _firstBlock: {
32
- default: !1
33
- },
34
- _lastBlock: {
35
- default: !1
36
- }
37
- },
38
- data() {
39
- return {
40
- uploadProgress: null,
41
- isHover: !1,
42
- numPages: null,
43
- maxFileSize: 1e3 * 1e3 * 30
44
- // 30 MB
45
- };
46
- },
47
- computed: {
48
- showControls() {
49
- return !this.file || this.isHover || this.uploadProgress !== null;
50
- },
51
- // Fetch the file from API instead of AWS directly
52
- fileUrl() {
53
- if (!this.file || !this.file.url)
54
- return null;
55
- if (this.file.url.startsWith(l.api.baseUrl))
56
- return this.file.url;
57
- try {
58
- const { hostname: a } = new URL(this.file.url);
59
- if (Object.keys(o).some(
60
- (s) => a.includes(o[s].domain)
61
- ))
62
- return this.file.url;
63
- } catch {
64
- }
65
- return `${l.api.baseUrl}/public/fileProxy?url=${encodeURIComponent(
66
- this.file.url
67
- )}`;
68
- }
69
- },
70
- methods: {
71
- onUploadSuccess(a) {
72
- const { id: e, displayName: s, url: t, mime: r } = a.response;
73
- if (!e)
74
- throw new Error("Could not read id from uploaded file");
75
- this.file = {
76
- fileId: e,
77
- name: s,
78
- mime: r,
79
- url: t
80
- }, this.$refs.uploader.remove(a), this.uploadProgress = null;
81
- }
82
- }
83
- };
84
- var f = function() {
85
- var e = this, s = e._self._c;
86
- return s("div", { staticClass: "font-inter print-no-margin", staticStyle: { position: "relative" }, on: { mouseover: function(t) {
87
- e.isHover = !0;
88
- }, mouseleave: function(t) {
89
- e.isHover = !1;
90
- } } }, [e.canEdit ? s("div", { directives: [{ name: "show", rawName: "v-show", value: e.showControls, expression: "showControls" }], staticClass: "chapter-spacing-x pointer-events-none mx-auto flex max-w-full items-center justify-center", class: !!e.file && "absolute left-0 right-0 top-2 z-10" }, [s("div", { staticClass: "pointer-events-auto flex w-full max-w-[95%] items-center rounded-lg bg-gray-100 !p-4 text-left", class: !!e.file && "border border-gray-200 !p-2 shadow-lg" }, [s("FileIcon", { attrs: { mime: "application/pdf" } }), s("div", { staticClass: "flex-auto pl-4" }, [s("div", { staticClass: "font-medium" }, [e._v("PDF")]), s("div", { staticClass: "text-sm text-gray-600" }, [e._v(" " + e._s(e.$t("embedded")) + " " + e._s(e.numPages ? e.$t("numOfPages", { numPages: e.numPages }) : "") + " ")])]), s("BaseUpload", { ref: "uploader", attrs: { "autostart-upload": !0, "background-drop": !1, extensions: "pdf", accept: "application/pdf", "max-size": e.maxFileSize }, on: { input: ([t]) => e.uploadProgress = t ? parseInt(t.progress, 10) : null, "upload-success": e.onUploadSuccess }, scopedSlots: e._u([{ key: "default", fn: function({ openFilePicker: t }) {
91
- return [s("CButton", { staticStyle: { "z-index": "2" }, attrs: { type: e.file ? "none" : "secondary", pattern: e.file ? "secondary" : "primary", disabled: e.uploadProgress !== null }, on: { click: t } }, [e.uploadProgress !== null ? [e._v(" " + e._s(`${e.uploadProgress}% ${e.$t("_common:uploading")}`) + " ")] : [e._v(" " + e._s(e.file ? e.$t("_common:change", { thing: e.$t("_common:file") }) : e.$t("upload")) + " ")]], 2)];
92
- } }], null, !1, 3134809537) })], 1)]) : e._e(), e.file ? s("div", [s("div", { class: {
93
- "break-before-page": e.isPdf && !e._firstBlock,
94
- "break-after-page": e.isPdf && !e._lastBlock
95
- } }, [e.file && e.file.url ? s("PdfViewer", { attrs: { src: e.fileUrl, toolbar: !e.canEdit, "doc-file-path": `${e._value.file}.url` }, on: { numPages: (t) => e.numPages = t } }) : e._e()], 1)]) : e._e()]);
96
- }, c = [], p = /* @__PURE__ */ d(
97
- u,
98
- f,
99
- c,
100
- !1,
101
- null,
102
- null
103
- );
104
- const _ = p.exports;
105
- export {
106
- _ as default
107
- };
@@ -1,56 +0,0 @@
1
- import { m as o } from "./mapFormMixin-CQgSN7dv.js";
2
- import { I as i } from "./InputToggleRow-CcqJDguN.js";
3
- import { C as a } from "./CSelect-CrM45B7V.js";
4
- import { n as m } from "./main-BgzLHIoo.js";
5
- const l = {
6
- i18nOptions: {
7
- namespaces: "estimatedTimeToCompleteText",
8
- messages: {
9
- en: {
10
- label: "Time to complete work",
11
- placeholder: "Time unit"
12
- },
13
- sv: {
14
- label: "Tid för att klargöra arbetet",
15
- placeholder: "Tidsenhet"
16
- }
17
- }
18
- },
19
- name: "EstimatedTimeToCompleteEdit",
20
- components: {
21
- InputToggleRow: i,
22
- CSelect: a
23
- },
24
- mixins: [
25
- o(["timeUnit"]),
26
- o(["noOfTimeUnits"], { type: "number" })
27
- ],
28
- created() {
29
- this.timeUnit || (this.timeUnit = "day");
30
- }
31
- };
32
- var s = function() {
33
- var t = this, e = t._self._c;
34
- return e("InputToggleRow", { attrs: { "display-value": t.noOfTimeUnits && t.timeUnit ? `${t.noOfTimeUnits} ${t.$t(`_common:${t.timeUnit}`, {
35
- count: t.noOfTimeUnits
36
- })}` : t.$t("_common:add"), label: t.$t("label"), "show-clear": !!(t.noOfTimeUnits && t.timeUnit) }, on: { remove: function(n) {
37
- t.noOfTimeUnits = null;
38
- } } }, [e("CInput", { staticStyle: { width: "calc(15 * var(--rem))" }, attrs: { type: "number" }, scopedSlots: t._u([{ key: "append", fn: function() {
39
- return [e("CSelect", { staticClass: "select-width plain", staticStyle: { width: "120px" }, attrs: { placeholder: t.$t("placeholder") }, model: { value: t.timeUnit, callback: function(n) {
40
- t.timeUnit = n;
41
- }, expression: "timeUnit" } }, [e("option", { attrs: { value: "hour" } }, [t._v(t._s(t.$t("_common:hour_plural")))]), e("option", { attrs: { value: "day" } }, [t._v(t._s(t.$t("_common:day_plural")))]), e("option", { attrs: { value: "week" } }, [t._v(t._s(t.$t("_common:week_plural")))]), e("option", { attrs: { value: "month" } }, [t._v(t._s(t.$t("_common:month_plural")))])])];
42
- }, proxy: !0 }]), model: { value: t.noOfTimeUnits, callback: function(n) {
43
- t.noOfTimeUnits = t._n(n);
44
- }, expression: "noOfTimeUnits" } })], 1);
45
- }, r = [], c = /* @__PURE__ */ m(
46
- l,
47
- s,
48
- r,
49
- !1,
50
- null,
51
- null
52
- );
53
- const v = c.exports;
54
- export {
55
- v as default
56
- };
@@ -1,84 +0,0 @@
1
- import { m as s } from "./mapFormMixin-CQgSN7dv.js";
2
- import { B as c } from "./BlockMedia-Bb5wQIDg.js";
3
- import { T as a } from "./DocTextEditor-CQDnjnRY.js";
4
- import { f as n } from "./focusDrawerMixin-C_aTLmK0.js";
5
- import { b as i, H as l, J as v, K as d, X as u, n as m } from "./main-BgzLHIoo.js";
6
- const _ = {
7
- name: "CoverBlock",
8
- components: {
9
- BlockMedia: c,
10
- TextEditor: a,
11
- CoverBlockSettings: () => import("./CoverBlockSettings-DUv8AcdX.js")
12
- },
13
- mixins: [s(["coverBlock"]), n],
14
- inject: ["parentSize"],
15
- data() {
16
- return {
17
- showControls: !1
18
- };
19
- },
20
- computed: {
21
- text: {
22
- get() {
23
- const o = i(this, "coverBlock.text", "");
24
- return this.canEdit ? l(
25
- o,
26
- this._document.textTemplateMap,
27
- this._document._doc
28
- ) : v(o, this._document._doc);
29
- },
30
- set(o) {
31
- this.setValue({ key: "text", value: d(o) });
32
- }
33
- },
34
- media() {
35
- const { type: o, cover: e } = this.coverBlock || {};
36
- return { ...e, ...o && { type: o } };
37
- }
38
- },
39
- methods: {
40
- setValue({ key: o, value: e }) {
41
- this.coverBlock = u(this.coverBlock, o, e);
42
- },
43
- onAdd() {
44
- var o;
45
- this._isNodeRecentlyAdded() && ((o = this.$refs.editor) == null || o.focus());
46
- }
47
- }
48
- };
49
- var p = function() {
50
- var e = this, t = e._self._c;
51
- return t("div", { staticClass: "cover-root font-inter", class: { "is-700-plus": e.parentSize.width >= 700 }, on: { "&mouseover": function(r) {
52
- e.showControls = !0;
53
- }, "&mouseleave": function(r) {
54
- e.showControls = !1;
55
- } } }, [t("div", { staticClass: "cover-base" }, [t("BlockMedia", { attrs: { media: e.media } }), t("div", { staticClass: "cover-text-wrapper no-drag" }, [t("div", { staticClass: "cover-text" }, [t("TextEditor", { key: e.canEdit, ref: "editor", attrs: { editable: e.canEdit, mentions: () => e._document.textTemplateItems, snippets: !0, extensions: "all", unstyled: "" }, on: { "hook:mounted": e.onAdd }, model: { value: e.text, callback: function(r) {
56
- e.text = r;
57
- }, expression: "text" } })], 1)])], 1), e.isForm ? [e.showDrawer ? t("portal", { attrs: { to: "drawer-content" }, scopedSlots: e._u([{ key: "footer", fn: function() {
58
- return [t("div", { staticClass: "footer-button" }, [t("CButton", { attrs: { type: "danger", pattern: "tertiary", wide: "" }, on: { click: function(r) {
59
- return e.$emit("section-remove");
60
- } } }, [e._v(" " + e._s(e.$t("_common:remove")) + " ")])], 1)];
61
- }, proxy: !0 }], null, !1, 3361209597) }, [t("CoverBlockSettings", { attrs: { _document: e._document, _value: {
62
- type: `${e._value.coverBlock}.type`,
63
- video: `${e._value.coverBlock}.cover.video`,
64
- resourceUrl: `${e._value.coverBlock}.cover.resourceUrl`,
65
- filter: `${e._value.coverBlock}.cover.filter`,
66
- blur: `${e._value.coverBlock}.cover.blur`,
67
- position: `${e._value.coverBlock}.cover.position`,
68
- overlay: `${e._value.coverBlock}.cover.overlay`,
69
- overlayColor: `${e._value.coverBlock}.cover.overlayColor`,
70
- gradient: `${e._value.coverBlock}.cover.gradient`,
71
- backgroundColor: `${e._value.coverBlock}.cover.backgroundColor`
72
- } } })], 1) : e._e()] : e._e()], 2);
73
- }, f = [], k = /* @__PURE__ */ m(
74
- _,
75
- p,
76
- f,
77
- !1,
78
- null,
79
- "9f9ddddb"
80
- );
81
- const y = k.exports;
82
- export {
83
- y as default
84
- };
@@ -1,144 +0,0 @@
1
- import { m as r } from "./mapFormMixin-CQgSN7dv.js";
2
- import { f as l } from "./focusDrawerMixin-C_aTLmK0.js";
3
- import { d as c } from "./debounce-D0hKNU85.js";
4
- import { s as m, p as u } from "./splitpanes-BHUVsCZF.js";
5
- import { n } from "./main-BgzLHIoo.js";
6
- const d = {
7
- name: "HeaderItems",
8
- components: {
9
- MediaWrapper: () => import("./MediaWrapper-lnGUFiyc.js"),
10
- ContentWrapper: () => import("./ContentWrapper-8HduCnR4.js"),
11
- Splitpanes: m,
12
- Pane: u
13
- },
14
- mixins: [r(["layout", "items", "baseStyle"])],
15
- props: {
16
- showControls: {
17
- type: Boolean,
18
- default: !1
19
- }
20
- },
21
- computed: {
22
- forceHorizontal() {
23
- return this.device === "mobile";
24
- },
25
- canResize() {
26
- return this.device === "desktop" || this.device === "tablet";
27
- },
28
- useSplitPane() {
29
- return this.canEdit && this.canResize;
30
- }
31
- },
32
- created() {
33
- ["layout", "canEdit"].forEach(
34
- (t) => this.$watch(t, {
35
- immediate: !0,
36
- handler: this.addNoDragClass
37
- })
38
- );
39
- },
40
- methods: {
41
- addNoDragClass() {
42
- !this.canEdit || !["vertical", "horizontal"].includes(this.layout) || setTimeout(() => {
43
- const t = this.$el.querySelector(".splitpanes__splitter");
44
- t && !t.classList.contains("no-drag") && t.classList.add("no-drag");
45
- }, 0);
46
- },
47
- onResize: c(function([{ size: e }]) {
48
- const a = Math.round(e), o = 100 - a;
49
- this.items = this.items.map((s, i) => ({ ...s, size: [a, o][i] }));
50
- }, 100)
51
- }
52
- };
53
- var h = function() {
54
- var e = this, a = e._self._c;
55
- return e.layout === "center" ? a("div", { staticStyle: { position: "relative", "min-height": "calc(100 * var(--vh, 1vh))" } }, e._l(e.items, function(o, s) {
56
- return a(`${o.type}Wrapper`, e._g({ key: s, tag: "component", staticClass: "item", staticStyle: { position: "absolute", left: "0", top: "0", right: "0", bottom: "0" }, attrs: { size: o.size, _document: e._document, _value: { ...e._value, item: `${e._value.items}.${s}` }, "has-hover": e.showControls } }, e.$listeners));
57
- }), 1) : a(e.useSplitPane ? "splitpanes" : "div", { tag: "component", staticClass: "layout-wrapper", style: !e.canEdit && {
58
- "flex-direction": e.forceHorizontal || e.layout === "horizontal" ? "column" : "row"
59
- }, attrs: { horizontal: e.forceHorizontal ? !0 : e.layout === "horizontal", vertical: e.forceHorizontal ? !1 : e.layout === "vertical" }, on: { resize: e.onResize } }, e._l(e.items, function(o, s) {
60
- return a(e.useSplitPane ? "pane" : "div", { key: s, tag: "component", style: !e.useSplitPane && {
61
- flex: `1 1 ${o.size}%`
62
- }, attrs: { size: o.size } }, [a(`${o.type}Wrapper`, e._g({ tag: "component", staticClass: "item", attrs: { _document: e._document, _value: { ...e._value, item: `${e._value.items}.${s}` }, "has-hover": e.showControls } }, e.$listeners))], 1);
63
- }), 1);
64
- }, _ = [], p = /* @__PURE__ */ n(
65
- d,
66
- h,
67
- _,
68
- !1,
69
- null,
70
- "683ee6d3"
71
- );
72
- const v = p.exports, f = {
73
- name: "HeaderBlock",
74
- components: {
75
- PriceHeader: () => import("./PriceHeader-CxqhpGS-.js"),
76
- HeaderSettings: () => import("./HeaderSettings-DXZnZL7A.js"),
77
- HeaderItems: v
78
- },
79
- mixins: [r(["header"]), l],
80
- data() {
81
- return {
82
- showControls: !1
83
- };
84
- },
85
- computed: {
86
- layout() {
87
- var t;
88
- return (t = this.header) == null ? void 0 : t.layout;
89
- },
90
- items() {
91
- var t;
92
- return ((t = this.header) == null ? void 0 : t.items) || [];
93
- },
94
- mediaPath() {
95
- const t = this.items.findIndex(({ type: e }) => e === "media");
96
- return t !== -1 ? `${this._value.header}.items.${t}.media` : "";
97
- },
98
- contentPath() {
99
- const t = this.items.findIndex(({ type: e }) => e === "content");
100
- return t !== -1 ? `${this._value.header}.items.${t}` : "";
101
- }
102
- }
103
- };
104
- var $ = function() {
105
- var e = this, a = e._self._c;
106
- return a("div", { staticClass: "header-root", class: {
107
- "has-parent-nav": e.viewSettings.isForm,
108
- "has-hover": e.showControls
109
- }, on: { "&mouseover": function(o) {
110
- e.showControls = !0;
111
- }, "&mouseleave": function(o) {
112
- e.showControls = !1;
113
- } } }, [e.layout === "price" ? a("PriceHeader", e._g({ attrs: { _document: e._document, _value: {
114
- media: e.mediaPath,
115
- backgroundColor: `${e.contentPath}.media.backgroundColor`,
116
- documentName: `${e.contentPath}.value.documentName`,
117
- showLogo: `${e.contentPath}.value.showLogo`,
118
- logotype: `${e.contentPath}.value.logotype`,
119
- showPriceSummary: `${e._value.header}.showPriceSummary`
120
- }, "has-hover": e.showControls } }, e.$listeners)) : a("HeaderItems", e._g({ attrs: { _document: e._document, _value: {
121
- layout: `${e._value.header}.layout`,
122
- items: `${e._value.header}.items`,
123
- baseStyle: `${e._value.header}.baseStyle`
124
- }, "show-controls": e.showControls } }, e.$listeners)), e.isForm ? [e.showDrawer ? a("portal", { attrs: { to: "drawer-content" } }, [a("HeaderSettings", { attrs: { _document: e._document, _value: {
125
- layout: `${e._value.header}.layout`,
126
- items: `${e._value.header}.items`,
127
- showPriceSummary: `${e._value.header}.showPriceSummary`,
128
- media: e.mediaPath,
129
- backgroundColor: `${e.contentPath}.media.backgroundColor`,
130
- textAlign: `${e._value.header}.baseStyle.textAlign`,
131
- textColor: `${e._value.header}.baseStyle.textColor`
132
- } } })], 1) : e._e()] : e._e()], 2);
133
- }, y = [], g = /* @__PURE__ */ n(
134
- f,
135
- $,
136
- y,
137
- !1,
138
- null,
139
- null
140
- );
141
- const x = g.exports;
142
- export {
143
- x as default
144
- };