@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,154 +0,0 @@
1
- import { m as n } from "./mapFormMixin-CQgSN7dv.js";
2
- import { D as l } from "./DocModalBase-qG4RqwBn.js";
3
- import { a as o } from "./DocumentLayout-Dvr4zgyF.js";
4
- import { n as a } from "./main-BgzLHIoo.js";
5
- const c = {
6
- name: "TermsModal",
7
- components: {
8
- DocModalBase: l,
9
- DocumentStyleContainer: o
10
- },
11
- mixins: [n([])],
12
- props: {
13
- text: {
14
- type: String,
15
- required: !0
16
- }
17
- }
18
- };
19
- var m = function() {
20
- var i;
21
- var e = this, t = e._self._c;
22
- return t("div", [t("div", { staticStyle: { height: "200px", "max-height": "15vh" }, on: { click: function(r) {
23
- return e.$emit("close");
24
- } } }), t("DocModalBase", { staticClass: "terms-root" }, [t("div", { staticClass: "sticky-btn" }, [t("CButton", { staticStyle: { "margin-top": "calc(0.5 * var(--rem))" }, attrs: { circle: "", icon: "x" }, on: { click: function(r) {
25
- return e.$emit("close");
26
- } } })], 1), t("div", { staticStyle: { padding: "0 calc(1 * var(--rem))" } }, [t("DocumentStyleContainer", { staticStyle: { width: "100%", height: "100%" }, attrs: { "input-style": ((i = e._document.data) == null ? void 0 : i.css) || null } }, [t("div", { staticClass: "term-text quill-format", domProps: { innerHTML: e._s(e.text) } })])], 1)])], 1);
27
- }, d = [], f = /* @__PURE__ */ a(
28
- c,
29
- m,
30
- d,
31
- !1,
32
- null,
33
- null
34
- );
35
- const p = f.exports, u = {
36
- name: "TermsDisclaimer",
37
- mixins: [n([])],
38
- inject: {
39
- isPdf: {
40
- default: !1
41
- },
42
- _firstBlock: {
43
- default: !1
44
- },
45
- _lastBlock: {
46
- default: !1
47
- }
48
- },
49
- props: {
50
- href: {
51
- type: String,
52
- default: null
53
- },
54
- termType: {
55
- type: String,
56
- default: null
57
- },
58
- file: {
59
- type: Object,
60
- default: () => ({})
61
- },
62
- text: {
63
- type: String,
64
- default: null
65
- }
66
- },
67
- computed: {
68
- printPdfTerms() {
69
- return this.isPdf ? () => import("./PdfTerms-BgYwZoAZ.js") : void 0;
70
- }
71
- },
72
- methods: {
73
- openTerms() {
74
- this.$modal.show(
75
- p,
76
- {
77
- text: this.text,
78
- _document: this._document
79
- },
80
- {
81
- adaptive: !0,
82
- height: "auto",
83
- scrollable: !0,
84
- maxWidth: 700,
85
- width: "100%",
86
- classes: "overflow-visible mobile-margin-bottom-0",
87
- transition: "fade-in-slide-up"
88
- }
89
- );
90
- }
91
- },
92
- render(s) {
93
- let e = {};
94
- const t = this.termType;
95
- if (t === "href" ? e = {
96
- href: this.href,
97
- target: "_blank",
98
- rel: "noopener"
99
- } : t === "file" && (e = {
100
- // Some documents with file terms are missing url
101
- href: (this.file.url || "").replace(/\+/g, "%2B"),
102
- target: "_blank",
103
- rel: "noopener"
104
- }), this.$scopedSlots.default)
105
- return this.$scopedSlots.default({
106
- openTerms: t === "text" ? this.openTerms : () => window.open(e.href)
107
- });
108
- if (this.printPdfTerms) {
109
- const r = {
110
- ...t === "text" && { text: this.text },
111
- ...t === "file" && { file: this.file }
112
- };
113
- return s(
114
- "div",
115
- {
116
- class: {
117
- "break-before-page": this.isPdf && !this._firstBlock,
118
- "break-after-page": this.isPdf && !this._lastBlock
119
- }
120
- },
121
- [s(this.printPdfTerms, { attrs: r })]
122
- );
123
- }
124
- const i = {};
125
- return t && (i.attrs = e), t === "text" && (i.on = { click: this.openTerms }), s(
126
- "div",
127
- {
128
- staticClass: "terms-disclaimer"
129
- },
130
- [
131
- s("div", { staticClass: "terms-disclaimer__divider" }),
132
- this._document.$t("chapters.termsDisclaimer.description"),
133
- s(
134
- "a",
135
- i,
136
- this._document.$t("chapters.termsDisclaimer.termsAndConditions")
137
- ),
138
- "."
139
- ]
140
- );
141
- }
142
- }, h = null, _ = null;
143
- var v = /* @__PURE__ */ a(
144
- u,
145
- h,
146
- _,
147
- !1,
148
- null,
149
- "7623e4d6"
150
- );
151
- const k = v.exports;
152
- export {
153
- k as default
154
- };
@@ -1,55 +0,0 @@
1
- import { m as n } from "./mapFormMixin-CQgSN7dv.js";
2
- import { f as o } from "./focusDrawerMixin-C_aTLmK0.js";
3
- import { n as i } from "./main-BgzLHIoo.js";
4
- const a = {
5
- name: "Terms",
6
- i18nOptions: {
7
- namespaces: "terms",
8
- messages: {
9
- en: {
10
- noneSelected: "No terms selected"
11
- },
12
- sv: {
13
- noneSelected: "Inga villkor valda"
14
- }
15
- }
16
- },
17
- components: {
18
- Read: () => import("./Index-BNucs2O-.js"),
19
- TermsSettings: () => import("./TermsSettings-BEQwmkFH.js")
20
- },
21
- mixins: [
22
- n(["href", "termType", "file", "text"]),
23
- o
24
- ],
25
- data() {
26
- return {
27
- showControls: !1
28
- };
29
- },
30
- computed: {
31
- hasTerms() {
32
- const s = ["href", "file"].includes(this.termType) && this.href, e = this.termType === "text" && this.text, t = this.termType === "file" && this.file;
33
- return s || e || t;
34
- }
35
- }
36
- };
37
- var m = function() {
38
- var e = this, t = e._self._c;
39
- return e.isForm || e.hasTerms ? t("div", { on: { "&mouseover": function(r) {
40
- e.showControls = !0;
41
- }, "&mouseleave": function(r) {
42
- e.showControls = !1;
43
- } } }, [t("Read", e._g({ attrs: { _document: e._document, href: e.href, "term-type": e.termType, file: e.file, text: e.text } }, e.$listeners)), e.isForm ? [e.hasTerms ? e._e() : t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("noneSelected"), expression: "$t('noneSelected')" }], staticStyle: { position: "absolute", left: "calc(1 * var(--rem))", top: "calc(1 * var(--rem))", width: "2em", height: "2em" }, attrs: { "icon-props": { size: 18 }, pattern: "secondary", icon: "info", circle: "", size: "small", type: "danger" }, on: { click: e.openDrawer } }), e.showDrawer ? t("portal", { attrs: { to: "drawer-content" } }, [t("TermsSettings", e._g({ attrs: { _document: e._document, _value: { term: "data.terms" } } }, e.$listeners))], 1) : e._e()] : e._e()], 2) : e._e();
44
- }, l = [], c = /* @__PURE__ */ i(
45
- a,
46
- m,
47
- l,
48
- !1,
49
- null,
50
- null
51
- );
52
- const _ = c.exports;
53
- export {
54
- _ as default
55
- };
@@ -1,66 +0,0 @@
1
- import { m as o } from "./mapFormMixin-CQgSN7dv.js";
2
- import { S as i, n as a } from "./main-BgzLHIoo.js";
3
- import { f as d } from "./focusDrawerMixin-C_aTLmK0.js";
4
- const r = {
5
- // eslint-disable-next-line vue/no-reserved-component-names
6
- name: "Embed",
7
- i18nOptions: {
8
- namespaces: "embed",
9
- messages: {
10
- en: {
11
- subTitle: "Embed anything (PDFs, Google Docs, Calender Sheets...)"
12
- },
13
- sv: {
14
- subTitle: "Bädda in vad som helst (PDF:er, Google Docs, Calender Sheets...)"
15
- }
16
- }
17
- },
18
- components: {
19
- EmbedSettings: () => import("./EmbedSettings-DvRreF7H.js"),
20
- EmbedInput: () => import("./EmbedInput-YRUrw3c6.js"),
21
- Spinner: i
22
- },
23
- mixins: [o(["embed", "size"]), d],
24
- data() {
25
- return {
26
- showControls: !1,
27
- isLoading: !0
28
- };
29
- },
30
- methods: {
31
- onAdd() {
32
- var n;
33
- this._isNodeRecentlyAdded() && ((n = this.$refs.input) == null || n.focus());
34
- }
35
- }
36
- };
37
- var m = function() {
38
- var e = this, s = e._self._c;
39
- return s("div", { staticClass: "embed-root font-inter", on: { "&mouseover": function(t) {
40
- e.showControls = !0;
41
- }, "&mouseleave": function(t) {
42
- e.showControls = !1;
43
- } } }, [s("div", { staticClass: "no-drag", class: [
44
- (e.size || !(e.embed && e.embed.src)) && "auto-size",
45
- `embed-is-${e.size}`
46
- ] }, [e.embed ? s("div", { staticClass: "embed-container" }, [!e.embed.src && e.canEdit ? s("div", { staticClass: "embed-element" }, [s("div", { staticClass: "is-placeholder" }, [s("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("subTitle")) + " ")]), s("EmbedInput", { ref: "input", staticStyle: { "padding-top": "1em" }, on: { "hook:mounted": e.onAdd }, model: { value: e.embed, callback: function(t) {
47
- e.embed = t;
48
- }, expression: "embed" } })], 1)]) : e.embed.src ? s("iframe", e._b({ ref: "iframe", staticClass: "embed-element", on: { load: function(t) {
49
- e.isLoading = !1;
50
- } } }, "iframe", { allowfullscreen: "", ...e.embed }, !1)) : e._e(), e.embed.src && e.isLoading ? s("div", { staticClass: "embed-loading-container" }, [s("Spinner", { attrs: { color: "hsl(0, 0%, 60%)" } })], 1) : e._e()]) : e._e()]), e.isForm ? [e.showDrawer ? s("portal", { attrs: { to: "drawer-content" } }, [s("EmbedSettings", { attrs: { size: e.size }, on: { "update:size": function(t) {
51
- e.size = t;
52
- } }, model: { value: e.embed, callback: function(t) {
53
- e.embed = t;
54
- }, expression: "embed" } })], 1) : e._e()] : e._e()], 2);
55
- }, l = [], c = /* @__PURE__ */ a(
56
- r,
57
- m,
58
- l,
59
- !1,
60
- null,
61
- "34433ee5"
62
- );
63
- const p = c.exports;
64
- export {
65
- p as default
66
- };
@@ -1,294 +0,0 @@
1
- import { w as c } from "./CDropdownItem-CaoSQX6X.js";
2
- import { g as a, h as m, n as d, b as l, e as u } from "./main-BgzLHIoo.js";
3
- import { s as p, i as v } from "./dom-CWsqMElk.js";
4
- import { D as _ } from "./DocModalBase-qG4RqwBn.js";
5
- import { C as g } from "./CFormField-Dd2Y71JG.js";
6
- import { v as n } from "./index-zXXJrTvv.js";
7
- import { a as h } from "./vuex.esm-DKGl8mcw.js";
8
- import { a as C } from "./answerDocumentMixin-DXI_E5Kx.js";
9
- const w = {
10
- i18nOptions: {
11
- namespaces: "components",
12
- keyPrefix: "document.propertyDesignationModal"
13
- },
14
- components: {
15
- DocModalBase: _,
16
- CField: g
17
- },
18
- mixins: [c],
19
- props: {
20
- senderName: {
21
- type: String,
22
- required: !0
23
- },
24
- propertyDesignation: {
25
- type: Object,
26
- default: null
27
- },
28
- fullScreen: {
29
- type: Boolean,
30
- default: !1
31
- }
32
- },
33
- data() {
34
- return {
35
- cornerRadius: 0,
36
- spacing: 0,
37
- view: "start",
38
- form: "",
39
- realEstateId: "",
40
- condominiumId: null,
41
- condominiumOrgNo: null
42
- // messages: {
43
- // condominiumId: {
44
- // required: 'Ange ditt lägenhetsnummer',
45
- // minLength: 'Det ska vara 4 siffror',
46
- // maxLength: 'Det ska vara 4 siffror',
47
- // },
48
- // condominiumOrgNo: {
49
- // required: 'Ange din bostadensrätts org-nr',
50
- // },
51
- // realEstateId: {
52
- // required: 'Ange din fastighetsbeteckning',
53
- // },
54
- // },
55
- };
56
- },
57
- validations: {
58
- condominiumId: {
59
- required: n.requiredIf((i) => i.form === "condominium"),
60
- minLength: n.minLength(4),
61
- maxLength: n.maxLength(4)
62
- },
63
- condominiumOrgNo: {
64
- required: n.requiredIf((i) => i.form === "condominium")
65
- },
66
- realEstateId: {
67
- required: n.requiredIf((i) => i.form === "realEstate")
68
- }
69
- },
70
- computed: {
71
- messages() {
72
- const i = (e) => this.$t(`validations.${e}`);
73
- return {
74
- condominiumId: {
75
- required: i("condominiumId.required"),
76
- minLength: i("condominiumId.minLength"),
77
- maxLength: i("condominiumId.maxLength")
78
- },
79
- condominiumOrgNo: {
80
- required: i("condominiumOrgNo.required")
81
- },
82
- realEstateId: {
83
- required: i("realEstateId.required")
84
- }
85
- };
86
- }
87
- },
88
- created() {
89
- if (this.propertyDesignation) {
90
- const {
91
- propertyType: i = "",
92
- propertyId: e = "",
93
- condominiumOrgNo: t = null
94
- } = this.propertyDesignation;
95
- this.form = i, i === "realEstate" ? this.realEstateId = e : this.condominiumId = e, this.condominiumOrgNo = t;
96
- }
97
- },
98
- mounted() {
99
- this.spacing = window.getComputedStyle(this.$refs.root.$el).paddingTop, this.cornerRadius = window.getComputedStyle(
100
- this.$refs.root.$el
101
- ).borderRadius;
102
- },
103
- methods: {
104
- ...h({
105
- putCurrentDoc: a.PUT_CURRENT_PUBLIC_DOCUMENT,
106
- reloadCurrentDocument: a.RELOAD_CURRENT_DOCUMENT
107
- }),
108
- async updateClientPropertyDesignation() {
109
- if (this.$v.$touch(), this.$v.$invalid)
110
- return;
111
- const i = {
112
- propertyType: this.form,
113
- propertyId: this.form === "realEstate" ? this.realEstateId : this.condominiumId,
114
- ...this.form === "condominium" && {
115
- condominiumOrgNo: this.condominiumOrgNo
116
- }
117
- };
118
- try {
119
- await this.putCurrentDoc({
120
- body: {
121
- ["clients[0].region.propertyDesignation"]: i
122
- }
123
- }), this.reloadCurrentDocument(), this.view = "complete";
124
- } catch (e) {
125
- m(e);
126
- }
127
- }
128
- }
129
- };
130
- var f = function() {
131
- var e = this, t = e._self._c;
132
- return t("doc-modal-base", { ref: "root", class: [{ "full-screen": e.mq === "sm" }] }, [e.fullScreen ? t("CButton", { staticClass: "absolute right-4 top-4 z-50", attrs: { icon: "x", circle: "" }, on: { click: function(s) {
133
- return e.$emit("close");
134
- } } }) : e._e(), t("div", [e.view !== "complete" ? t("div", { staticClass: "negate-padding relative mb-8 border-b border-gray-100 bg-gray-50 pb-8 text-center", style: {
135
- paddingTop: e.spacing,
136
- marginTop: `-${e.spacing}`,
137
- borderRadius: `${e.cornerRadius} ${e.cornerRadius} 0 0`
138
- } }, [e.view === "start" ? t("div", { key: 1 }, [t("div", { staticClass: "mb-2 text-lg font-semibold" }, [e._v(e._s(e.$t("title")))]), t("div", { staticClass: "text-gray-700" }, [e._v(" " + e._s(e.$t("subTitle", { senderName: e.senderName })) + " ")])]) : e._e(), e.view === "form" ? t("div", { key: 2 }, [t("CButton", { staticClass: "absolute left-4 top-4", attrs: { circle: "", icon: "arrow-left" }, on: { click: function(s) {
139
- e.view = "start";
140
- } } }), t("div", { staticClass: "mb-2 text-lg font-semibold" }, [e._v(e._s(e.$t("howToFind")))]), t("div", { staticClass: "text-gray-700" }, [e._v(" " + e._s(e.$t("goto1")) + " "), t("a", { staticStyle: { "text-decoration": "underline" }, attrs: { href: "https://www.lantmateriet.se/", target: "_blank", rel: "noopener" } }, [e._v(" " + e._s(e.$t("goto2")) + " ")]), e._v(" " + e._s(e.$t("goto3")) + " ")])], 1) : e._e()]) : e._e(), e.view === "start" ? t("div", { key: 1, staticClass: "mb-12 text-center" }, [t("div", { staticClass: "mb-4 text-base font-medium" }, [e._v(e._s(e.$t("whereTitle")))]), t("div", { staticClass: "flex justify-center" }, [t("div", { staticClass: "mx-4" }, [t("div", { staticClass: "mb-2 flex h-24 w-24 cursor-pointer items-center justify-center rounded-xl border border-gray-300 bg-gray-50 hover:bg-gray-100 active:bg-gray-200", on: { click: function(s) {
141
- e.view = "form", e.form = "realEstate";
142
- } } }, [t("svg", { staticClass: "text-gray-400", attrs: { width: "59", height: "41", viewBox: "0 0 59 59", xmlns: "http://www.w3.org/2000/svg" } }, [t("g", { attrs: { fill: "currentColor", "fill-rule": "evenodd" } }, [t("path", { attrs: { d: "M6 28h47v29H6V28zm6 7.998101V40.0019C12 41.113294 12.89458 42 13.998101 42H18.0019C19.113294 42 20 41.10542 20 40.001899V35.9981C20 34.886706 19.10542 34 18.001899 34H13.9981C12.886706 34 12 34.89458 12 35.998101zm22-.007306V54h11V35.990795C45 34.898212 44.108144 34 43.007983 34h-7.015966C34.900177 34 34 34.89131 34 35.990795zM27.189354 1.837583C28.46549.536998 30.53366.53613 31.813677 1.840673L56.5 27h-54l9.85551-10.044348V7.141778h6.733007v2.95186l8.100837-8.256055zM25.5 15.861211v4.003797c0 1.111395.89458 1.998102 1.998101 1.998102H31.5019c1.111395 0 1.998101-.89458 1.998101-1.998102v-4.003797c0-1.111395-.89458-1.998101-1.998101-1.998101H27.4981c-1.111395 0-1.998101.89458-1.998101 1.998101z" } }), t("path", { attrs: { d: "M0 56.004882C0 54.897616.90314 54 1.996843 54h55.006314C58.105983 54 59 54.8939 59 56.004882V59H0v-2.995118z" } })])])]), t("div", { staticClass: "text-sm leading-tight text-gray-700" }, [e._v(" " + e._s(e.$t("house"))), t("br"), e._v("/ " + e._s(e.$t("realEstate")) + " ")])]), t("div", { staticClass: "mx-4" }, [t("div", { staticClass: "mb-2 flex h-24 w-24 cursor-pointer items-center justify-center rounded-xl border border-gray-300 bg-gray-50 hover:bg-gray-100 active:bg-gray-200", on: { click: function(s) {
143
- e.view = "form", e.form = "condominium";
144
- } } }, [t("svg", { staticClass: "text-gray-400", attrs: { width: "59", height: "50", viewBox: "0 0 59 73", xmlns: "http://www.w3.org/2000/svg" } }, [t("g", { attrs: { fill: "currentColor", "fill-rule": "evenodd" } }, [t("path", { attrs: { d: "M6 9.004723C6 7.34526 7.343394 6 8.993614 6h41.012771C51.659714 6 53 7.342697 53 9.004723V71H6V9.004723zm5 4.993378V18.0019C11 19.113294 11.89458 20 12.998101 20H17.0019C18.113294 20 19 19.10542 19 18.001899V13.9981C19 12.886706 18.10542 12 17.001899 12H12.9981C11.886706 12 11 12.89458 11 13.998101zm14.5 0V18.0019C25.5 19.113294 26.39458 20 27.498101 20H31.5019C32.613294 20 33.5 19.10542 33.5 18.001899V13.9981C33.5 12.886706 32.60542 12 31.501899 12H27.4981C26.386706 12 25.5 12.89458 25.5 13.998101zm14.5 0V18.0019C40 19.113294 40.89458 20 41.998101 20H46.0019C47.113294 20 48 19.10542 48 18.001899V13.9981C48 12.886706 47.10542 12 46.001899 12H41.9981C40.886706 12 40 12.89458 40 13.998101zm-29 12V30.0019C11 31.113294 11.89458 32 12.998101 32H17.0019C18.113294 32 19 31.10542 19 30.001899V25.9981C19 24.886706 18.10542 24 17.001899 24H12.9981C11.886706 24 11 24.89458 11 25.998101zm14.5 0V30.0019C25.5 31.113294 26.39458 32 27.498101 32H31.5019C32.613294 32 33.5 31.10542 33.5 30.001899V25.9981C33.5 24.886706 32.60542 24 31.501899 24H27.4981C26.386706 24 25.5 24.89458 25.5 25.998101zm14.5 0V30.0019C40 31.113294 40.89458 32 41.998101 32H46.0019C47.113294 32 48 31.10542 48 30.001899V25.9981C48 24.886706 47.10542 24 46.001899 24H41.9981C40.886706 24 40 24.89458 40 25.998101zm-29 12V42.0019C11 43.113294 11.89458 44 12.998101 44H17.0019C18.113294 44 19 43.10542 19 42.001899V37.9981C19 36.886706 18.10542 36 17.001899 36H12.9981C11.886706 36 11 36.89458 11 37.998101zm14.5 0V42.0019C25.5 43.113294 26.39458 44 27.498101 44H31.5019C32.613294 44 33.5 43.10542 33.5 42.001899V37.9981C33.5 36.886706 32.60542 36 31.501899 36H27.4981C26.386706 36 25.5 36.89458 25.5 37.998101zm14.5 0V42.0019C40 43.113294 40.89458 44 41.998101 44H46.0019C47.113294 44 48 43.10542 48 42.001899V37.9981C48 36.886706 47.10542 36 46.001899 36H41.9981C40.886706 36 40 36.89458 40 37.998101zm-29 12V54.0019C11 55.113294 11.89458 56 12.998101 56H17.0019C18.113294 56 19 55.10542 19 54.001899V49.9981C19 48.886706 18.10542 48 17.001899 48H12.9981C11.886706 48 11 48.89458 11 49.998101zm14.5 0V54.0019C25.5 55.113294 26.39458 56 27.498101 56H31.5019C32.613294 56 33.5 55.10542 33.5 54.001899V49.9981C33.5 48.886706 32.60542 48 31.501899 48H27.4981C26.386706 48 25.5 48.89458 25.5 49.998101zM21 60.997391V68h17v-7.002608C38 59.895858 37.104522 59 35.999894 59H23.000106C21.890058 59 21 59.894263 21 60.997392zm19-10.99929V54.0019C40 55.113294 40.89458 56 41.998101 56H46.0019C47.113294 56 48 55.10542 48 54.001899V49.9981C48 48.886706 47.10542 48 46.001899 48H41.9981C40.886706 48 40 48.89458 40 49.998101zM10 2.5C10 1.119288 11.125134 0 12.498953 0h34.002094C47.88118 0 49 1.109662 49 2.5V5H10V2.5z" } }), t("path", { attrs: { d: "M0 70.004881C0 68.897616.90314 68 1.996843 68h55.006314C58.105983 68 59 68.8939 59 70.004881V73H0v-2.995119z" } })])])]), t("div", { staticClass: "text-sm leading-tight text-gray-700" }, [e._v(" " + e._s(e.$t("condominium"))), t("br"), e._v("/ " + e._s(e.$t("apartment")) + " ")])])])]) : e._e(), e.view === "form" ? t("div", { key: 2 }, [t("div", { staticClass: "space-y-6" }, [e.form === "realEstate" ? t("CField", { attrs: { vuelidate: e.$v.realEstateId, "vuelidate-messages": e.messages.realEstateId, label: e.$t("propertyDesignation") } }, [t("CInput", { attrs: { placeholder: e.$t("propertyDesignationPlaceholder") }, model: { value: e.realEstateId, callback: function(s) {
145
- e.realEstateId = s;
146
- }, expression: "realEstateId" } })], 1) : e._e(), e.form === "condominium" ? t("CField", { attrs: { vuelidate: e.$v.condominiumId, "vuelidate-messages": e.messages.condominiumId, label: e.$t("condominiumId") } }, [t("CInput", { attrs: { placeholder: e.$t("condominiumIdPlaceholder"), type: "number" }, model: { value: e.condominiumId, callback: function(s) {
147
- e.condominiumId = s;
148
- }, expression: "condominiumId" } })], 1) : e._e(), e.form === "condominium" ? t("CField", { attrs: { vuelidate: e.$v.condominiumOrgNo, "vuelidate-messages": e.messages.condominiumOrgNo, label: e.$t("condominiumOrgNo") } }, [t("CInput", { staticClass: "mt-3", attrs: { placeholder: e.$t("condominiumOrgNoPlaceholder"), type: "number" }, model: { value: e.condominiumOrgNo, callback: function(s) {
149
- e.condominiumOrgNo = s;
150
- }, expression: "condominiumOrgNo" } })], 1) : e._e(), t("div", [t("CButton", { attrs: { type: "secondary", wide: "" }, on: { click: e.updateClientPropertyDesignation } }, [e._v(" " + e._s(e.$t("_common:save")) + " ")])], 1)], 1)]) : e._e(), e.view === "complete" ? t("div", { key: 3 }, [t("div", { staticClass: "flex flex-col items-center justify-center text-center" }, [t("div", { staticClass: "bg-primary-50 mb-4 flex h-12 w-12 items-center justify-center rounded-full" }, [t("CIcon", { staticClass: "text-primary-500", attrs: { type: "check" } })], 1), t("div", { staticClass: "mb-1 text-base font-semibold" }, [e._v(" " + e._s(e.$t("savedTitle")) + " ")]), t("div", { staticClass: "mb-6 text-base text-gray-700" }, [e._v(" " + e._s(e.$t("savedSubTitle", { senderName: e.senderName })) + " ")]), t("div", { staticClass: "mt-4 w-full" }, [t("CButton", { attrs: { type: "secondary", wide: "" }, on: { click: function(s) {
151
- return e.$emit("close");
152
- } } }, [e._v(" " + e._s(e.$t("_common:close")) + " ")])], 1)])]) : e._e()])], 1);
153
- }, y = [], $ = /* @__PURE__ */ d(
154
- w,
155
- f,
156
- y,
157
- !1,
158
- null,
159
- null
160
- );
161
- const b = $.exports, x = {
162
- i18nOptions: {
163
- namespaces: "docAnswer",
164
- messages: {
165
- en: {
166
- previewTooltip: "Only your clients can answer"
167
- },
168
- sv: {
169
- previewTooltip: "Enbart din mottagare kan besvara"
170
- }
171
- }
172
- },
173
- name: "DocumentAnswerRead",
174
- mixins: [C({ documentKey: "_document" }), c],
175
- inject: {
176
- isPdf: {
177
- default: !1
178
- },
179
- customHtmlAccept: {
180
- default: ""
181
- },
182
- customHtmlDeny: {
183
- default: ""
184
- }
185
- },
186
- props: {
187
- _document: {
188
- type: Object,
189
- required: !0
190
- }
191
- },
192
- data() {
193
- return {
194
- isInViewport: !1,
195
- scrollToElement: p
196
- };
197
- },
198
- computed: {
199
- viewerId() {
200
- var i;
201
- return ((i = this._document._doc) == null ? void 0 : i.viewerId) || null;
202
- },
203
- isPreview() {
204
- return this._document.isPreview;
205
- },
206
- modalHeight() {
207
- return this.mq === "sm" ? "100%" : "auto";
208
- },
209
- allowPropertyDesignation() {
210
- const { prices: i } = this._document;
211
- if (!i || !i.region)
212
- return !1;
213
- const { houseWorkType: e } = i.region;
214
- return ["rot", "greenRot15", "greenRot20", "greenRot50"].includes(
215
- e
216
- );
217
- },
218
- propertyDesignation() {
219
- return l(this._document, "clients[0].region.propertyDesignation", null);
220
- }
221
- },
222
- watch: {
223
- $route: {
224
- immediate: !0,
225
- handler(i) {
226
- i != null && i.hash && this.onAnswer("accept", { calcHeight: !0 });
227
- }
228
- },
229
- isInViewport: {
230
- immediate: !0,
231
- handler(i, e) {
232
- i !== e && u.trigger("ui:document.block.answer.visible", i);
233
- }
234
- }
235
- },
236
- mounted() {
237
- window.addEventListener("scroll", this.scrollHandler, {
238
- capture: !0,
239
- passive: !0
240
- }), this.$route.name === "docPropertyDesignation" && this.showPropertyDesignation();
241
- },
242
- destroyed() {
243
- window.removeEventListener("scroll", this.scrollHandler);
244
- },
245
- methods: {
246
- scrollHandler() {
247
- this.$refs.answerButtons && (this.isInViewport = v(this.$refs.answerButtons));
248
- },
249
- showPropertyDesignation() {
250
- this.$modal.show(
251
- b,
252
- {
253
- senderName: this._document.sender.user.name,
254
- propertyDesignation: this.propertyDesignation,
255
- fullScreen: this.modalHeight === "100%"
256
- },
257
- {
258
- adaptive: !0,
259
- height: this.modalHeight,
260
- width: "100%",
261
- maxWidth: this.modalHeight === "100%" ? 999 : 400,
262
- classes: "overflow-visible",
263
- transition: "fade-in-slide-up"
264
- }
265
- );
266
- }
267
- }
268
- };
269
- var H = function() {
270
- var s, o;
271
- var e = this, t = e._self._c;
272
- return e._document.answerActions.showActions && !e.isPdf ? t("div", { staticStyle: { padding: "calc(3 * var(--rem)) 0" } }, [t("div", { ref: "answerButtons", staticClass: "flex w-full justify-center" }, [t("transition", { attrs: { name: "fade", mode: "out-in" } }, [((o = (s = e._document.viewer) == null ? void 0 : s.answerMethod) == null ? void 0 : o.accept) === "inPerson" ? t("div", { key: 0, staticStyle: { "max-width": "720px", margin: "0 auto", padding: "0 calc(3 * var(--rem))" }, style: e.mq === "sm" ? { padding: "0 calc(1.5 * var(--rem))" } : null }, [e._v(" " + e._s(e._document.$t("chapters.answerButtons.inPersonSignatureHint")) + " "), t(e._document.sender.user.email ? "a" : "span", { tag: "component", attrs: { href: `mailto:${e._document.sender.user.email}` } }, [e._v(" " + e._s(e._document.sender.company.name || e._document.$t("theSender")) + " ")])], 1) : (e._document.answerActions.canAnswer || e.isPreview) && e._document.answerActions.showActions ? t("div", { key: 1, staticClass: "flex w-full justify-center" }, [e.customHtmlDeny ? t("div", { domProps: { innerHTML: e._s(e.customHtmlDeny) }, on: { click: function(r) {
273
- return e.onAnswer("decline");
274
- } } }) : t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.isPreview && e.$t("previewTooltip"), expression: "isPreview && $t('previewTooltip')" }], staticClass: "text-gray-400", attrs: { disabled: e.isPreview, size: "medium" }, on: { click: function(r) {
275
- return e.onAnswer("decline");
276
- } } }, [e._v(" " + e._s(e._document.$t("deny").capitalize()) + " ")]), e.customHtmlAccept ? t("div", { domProps: { innerHTML: e._s(e.customHtmlAccept) }, on: { click: function(r) {
277
- return e.onAnswer("accept");
278
- } } }) : t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.isPreview && e.$t("previewTooltip"), expression: "isPreview && $t('previewTooltip')" }], staticStyle: { "margin-left": "1em", "padding-left": "1.5em", "padding-right": "1.5em", background: "var(--block-answer-accept-bg, hsl(114deg, 75%, 43%))" }, attrs: { "icon-props": { strokeWidth: 2.5 }, disabled: e.isPreview, type: "success", size: "medium", "icon-left": "check", raised: "" }, on: { click: function(r) {
279
- return e.onAnswer("accept");
280
- } } }, [e._v(" " + e._s(e._document.$t("sign").capitalize()) + " ")])], 1) : e._document.answerActions.hasAnswered && e._document.answerActions.waitingForOthers ? t("div", { key: 2, staticClass: "text-center" }, [t("div", { staticStyle: { "font-weight": "600", "font-size": "calc(calc(1 * var(--rem)) + 2px)", "margin-bottom": "calc(0.5 * var(--rem))" } }, [e._v(" " + e._s(e._document.$t("chapters.answerButtons.youHave")) + " "), t("span", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: `${e.$formatDate(e._document.viewer.answer.didAnswerAt, "Pp")}`, expression: "\n `${$formatDate(_document.viewer.answer.didAnswerAt, 'Pp')}`\n " }], staticStyle: { "text-decoration": "underline" } }, [e._v(e._s(e._document.viewer.answer.didAccept ? e._document.$t("approved") : e._document.$t("denied")))]), e._v(" " + e._s(" " + e._document.$t("theDocument")) + ". ")]), t("div", [e._v(" " + e._s(e._document.$t("chapters.answerButtons.waitingDescription", { remaining: e._document.remainingSignatures })) + " ")])]) : e._document.status === "accepted" ? t("div", { key: 3 }, [t("div", { staticClass: "callout accepted" }, [t("div", { staticClass: "title" }, [e._v(" " + e._s(e._document.$t("chapters.answerButtons.approveTitle")) + " ")]), t("div", [e._v(" " + e._s(e._document.$t("chapters.answerButtons.approveDescription", { sender: e._document.sender.company.name || e._document.$t("theSender") })) + " ")])])]) : e._document.status === "denied" ? t("div", { key: 4, staticClass: "callout denied" }, [t("div", { staticClass: "title" }, [e._v(" " + e._s(e._document.$t("chapters.answerButtons.denyTitle")) + " ")]), t("div", [e._v(" " + e._s(e._document.$t("chapters.answerButtons.denyDescription", { sender: e._document.sender.company.name || e._document.$t("theSender") })) + " ")])]) : e._document.status === "expired" ? t("div", { key: 5, staticClass: "callout expired" }, [t("div", { staticClass: "title" }, [e._v(" " + e._s(e._document.$t("chapters.answerButtons.expiredTitle")) + " ")]), t("div", [e._v(" " + e._s(e._document.$t("chapters.answerButtons.expiredDescription", { sender: e._document.sender.company.name || e._document.$t("theSender") })) + " ")])]) : e._e()])], 1), e._document.status === "accepted" && e.allowPropertyDesignation && e._document.answerActions.hasAnswered ? t("div", { staticClass: "flex justify-center" }, [t("div", { staticClass: "answer button accept", staticStyle: { "padding-left": "calc(1.5 * var(--rem))", "padding-right": "calc(1.5 * var(--rem))" }, on: { click: function(r) {
281
- return e.showPropertyDesignation();
282
- } } }, [e._v(" " + e._s(e._document.$t(`chapters.answerButtons.${e.propertyDesignation ? "editPropDes" : "enterPropDes"}`)) + " ")])]) : e._e()]) : e._e();
283
- }, D = [], I = /* @__PURE__ */ d(
284
- x,
285
- H,
286
- D,
287
- !1,
288
- null,
289
- "a09f8d01"
290
- );
291
- const B = I.exports;
292
- export {
293
- B as default
294
- };
@@ -1,58 +0,0 @@
1
- import { m as r } from "./mapFormMixin-CQgSN7dv.js";
2
- import { I as n } from "./InputToggleRow-CcqJDguN.js";
3
- import { B as s } from "./BaseDatePicker-B-AfdrSb.js";
4
- import { n as l } from "./main-BgzLHIoo.js";
5
- const c = {
6
- i18nOptions: {
7
- namespaces: "estimatedTimeStartEnd",
8
- messages: {
9
- en: {
10
- title: "Start and end date",
11
- label: "Work start and ends",
12
- placeholders: {
13
- start: "Start date",
14
- end: "End date"
15
- }
16
- },
17
- sv: {
18
- title: "Start- och slutdatum",
19
- label: "Arbetet påbörjas och avslutas",
20
- placeholders: {
21
- start: "Startdatum",
22
- end: "Slutdatum"
23
- }
24
- }
25
- }
26
- },
27
- name: "EstimatedWorkStartAndEndAtTextEdit",
28
- components: {
29
- InputToggleRow: n,
30
- BaseDatePicker: s
31
- },
32
- mixins: [r(["startAt", "endAt"])]
33
- };
34
- var i = function() {
35
- var t = this, a = t._self._c;
36
- return a("InputToggleRow", { attrs: { "display-value": t.startAt && t.endAt ? `${t.$formatDate(t.startAt)} → ${t.$formatDate(t.endAt)}` : t.$t("_common:add"), label: t.$t("label"), "show-clear": !!(t.startAt && t.endAt) }, on: { remove: function(e) {
37
- t.startAt = null, t.endAt = null;
38
- } } }, [a("div", { staticStyle: { display: "inline-flex" } }, [a("BaseDatePicker", { staticClass: "datepicker-simple", staticStyle: { width: "calc(8 * var(--rem))" }, attrs: { placeholder: t.$t("placeholders.start") }, on: { click: function(e) {
39
- e.preventDefault();
40
- } }, model: { value: t.startAt, callback: function(e) {
41
- t.startAt = e;
42
- }, expression: "startAt" } }), a("div", { staticStyle: { "line-height": "calc(3 * var(--rem))", margin: "0 calc(0.5 * var(--rem))", "font-size": "calc(calc(1 * var(--rem)) + 2px)" } }, [t._v(" → ")]), a("BaseDatePicker", { staticClass: "datepicker-simple", staticStyle: { width: "calc(8 * var(--rem))" }, attrs: { static: !0, placeholder: t.$t("placeholders.end") }, on: { click: function(e) {
43
- e.preventDefault();
44
- } }, model: { value: t.endAt, callback: function(e) {
45
- t.endAt = e;
46
- }, expression: "endAt" } })], 1)]);
47
- }, o = [], d = /* @__PURE__ */ l(
48
- c,
49
- i,
50
- o,
51
- !1,
52
- null,
53
- null
54
- );
55
- const A = d.exports;
56
- export {
57
- A as default
58
- };
@@ -1,25 +0,0 @@
1
- import { m as e } from "./mapFormMixin-CQgSN7dv.js";
2
- import { n as r } from "./main-BgzLHIoo.js";
3
- const a = {
4
- name: "EstimatedWorkStartAndEndAtText",
5
- components: {
6
- Read: () => import("./Index-BUK-1yVR.js"),
7
- Edit: () => import("./Index-CB57haU8.js")
8
- },
9
- mixins: [e(["startAt", "endAt"])]
10
- };
11
- var s = function() {
12
- var t = this, n = t._self._c;
13
- return t.canEdit ? n("Edit", t._g({ attrs: { _document: t._document, _value: t._value } }, t.$listeners)) : n("Read", { attrs: { "start-at": t.startAt, "end-at": t.endAt } });
14
- }, o = [], m = /* @__PURE__ */ r(
15
- a,
16
- s,
17
- o,
18
- !1,
19
- null,
20
- null
21
- );
22
- const c = m.exports;
23
- export {
24
- c as default
25
- };