@cling-se/widget 0.19.13 → 0.20.1

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 (128) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.internal.md +5 -5
  3. package/dist/{AddClientCallout-Da7NOVA5.js → AddClientCallout-DOzqL6Ei.js} +4 -4
  4. package/dist/{AnswerModal-B2ApEIfo.js → AnswerModal-aoQoCe3o.js} +679 -681
  5. package/dist/{AttachmentItem-BM_DzA34.js → AttachmentItem-DTqI5mwy.js} +4 -4
  6. package/dist/{BaseUpload-CGVbfe4H.js → BaseUpload-nxVqZX3O.js} +2 -2
  7. package/dist/{BlockMedia-Dza5TjFS.js → BlockMedia-BYVRSrze.js} +1 -1
  8. package/dist/{CCallout-BpHUnBsq.js → CCallout-Db9YEwws.js} +1 -1
  9. package/dist/{CCurrencyDropdown-Glt0CY7w.js → CCurrencyDropdown-sRqig-2P.js} +3 -3
  10. package/dist/{CDropdownItem-rpcdHW76.js → CDropdownItem-CZO28TQW.js} +96 -96
  11. package/dist/{CFormField.vue_vue_type_script_setup_true_lang-vyObNdUP.js → CFormField.vue_vue_type_script_setup_true_lang-DoO3uBt-.js} +2 -2
  12. package/dist/{CPhoneFormat-uxMRSGaN.js → CPhoneFormat-CUtvNKnk.js} +1 -1
  13. package/dist/{CPhoneInput-DnigKWiR.js → CPhoneInput-kOcllgTr.js} +5 -5
  14. package/dist/{CPriceInput-BNVWpxMd.js → CPriceInput-3X1Et9ny.js} +2 -2
  15. package/dist/{CSelect-ioLMsxK3.js → CSelect-DVCPHAdo.js} +1 -1
  16. package/dist/{CSkeleton-BsApoNUe.js → CSkeleton-Bxdz5nlu.js} +1 -1
  17. package/dist/{ClientAutocomplete-Dof0Wnp9.js → ClientAutocomplete-DCphFPmv.js} +3 -3
  18. package/dist/{ClientModal-CVsZrXLV.js → ClientModal-oTn-trfu.js} +218 -248
  19. package/dist/{ColorPicker-Ca2a0Dib.js → ColorPicker-Bs_kXTFe.js} +1 -1
  20. package/dist/{CompanyModal-C6AUjpnI.js → CompanyModal-DzXAdbGd.js} +7 -7
  21. package/dist/{ContentWrapper-wTfXDKX-.js → ContentWrapper-2wh0OBB0.js} +6 -6
  22. package/dist/{CoverBlockSettings-BkWhPlN2.js → CoverBlockSettings-DSOoms9U.js} +7 -7
  23. package/dist/{DocAnswer-DoRmk17c.js → DocAnswer-B529e1E2.js} +2 -2
  24. package/dist/{DocDetails-D_E3lERC.js → DocDetails-BHqTgx1H.js} +4 -4
  25. package/dist/{DocForm-DbpjRBRm.js → DocForm-DOdyjHWA.js} +99 -97
  26. package/dist/{DocFormSend-DN2k9giy.js → DocFormSend-DfrWjvTy.js} +2 -2
  27. package/dist/{DocLinks-BvtcG9-D.js → DocLinks-BRJnZ1rA.js} +2 -2
  28. package/dist/{DocModalBase-D_LZXbIj.js → DocModalBase-Cf-C2hVQ.js} +1 -1
  29. package/dist/{DocPrint-BrjeZaPK.js → DocPrint-OVtsohie.js} +1 -1
  30. package/dist/{DocReceipt-BXAGCO6L.js → DocReceipt-tmBbom2x.js} +2 -2
  31. package/dist/{DocSendReminder-BtcutNHV.js → DocSendReminder-C6fGp2qu.js} +1 -1
  32. package/dist/{DocTextEditor-DYrnRt6O.js → DocTextEditor-D3EjoBGe.js} +171 -148
  33. package/dist/{DocTimeline-AZQVm00F.js → DocTimeline-CChHnG2Q.js} +2 -2
  34. package/dist/{DocumentClient-BTsdprjd.js → DocumentClient-kV1ps0P5.js} +5 -5
  35. package/dist/{DocumentLayout-DbXHslTY.js → DocumentLayout-B2vKSnWD.js} +21 -21
  36. package/dist/{DocumentLogotype-B6ENzX02.js → DocumentLogotype-BldUocoJ.js} +4 -4
  37. package/dist/{DocumentVoided-B9AHAIvl.js → DocumentVoided-rZxx0TDM.js} +1 -1
  38. package/dist/{EmbedInput-BN6DFeq0.js → EmbedInput-C-bORXEJ.js} +3 -3
  39. package/dist/{EmbedSettings-DD9uIXDi.js → EmbedSettings-CaRoWZzj.js} +3 -3
  40. package/dist/{ErrorCallout-BFezjCn3.js → ErrorCallout-BQkcHI49.js} +1 -1
  41. package/dist/{FilePreviewModal-CXE7RahY.js → FilePreviewModal-egIS6jnw.js} +2 -2
  42. package/dist/{Flag-BCe6xe-D.js → Flag-DUrDD56m.js} +1 -1
  43. package/dist/{HeaderSettings-Uyr0qhas.js → HeaderSettings-Cfql7vW5.js} +9 -9
  44. package/dist/{ImageSelectModal-CSW3shsb.js → ImageSelectModal-3U22LhEN.js} +3 -3
  45. package/dist/{ImageUploadWrapper-DyunQdxO.js → ImageUploadWrapper-DWmlB4Ha.js} +2 -2
  46. package/dist/{Index-BRhtJdqU.js → Index-38AEfgHb.js} +4 -4
  47. package/dist/{Index-DAnljErU.js → Index-7rnf6UDQ.js} +6 -6
  48. package/dist/{Index-BUwF7tDs.js → Index-BepK484N.js} +3 -3
  49. package/dist/{Index-r-bi4xvP.js → Index-BlBA6eMl.js} +4 -4
  50. package/dist/{Index-CdtKkfEh.js → Index-BuPSt_Hb.js} +8 -8
  51. package/dist/{Index-B8EGrohn.js → Index-C2jLt_-J.js} +4 -4
  52. package/dist/{Index-DRVJFBy_.js → Index-CKisxkqL.js} +3 -3
  53. package/dist/{Index-BcPpzfWP.js → Index-CN1flEMh.js} +1 -1
  54. package/dist/{Index-D91m2xKm.js → Index-CRAk8dmP.js} +26 -17
  55. package/dist/{Index-BieU1ZTV.js → Index-CZFXyZp-.js} +2 -2
  56. package/dist/{Index-BGVViv6b.js → Index-C_2Gf2Da.js} +46 -37
  57. package/dist/{Index-ziuExFyj.js → Index-CcOeCvOe.js} +5 -5
  58. package/dist/{Index-DI91U3g3.js → Index-CcSq7dWo.js} +1 -1
  59. package/dist/{Index-Ch2Y3XbD.js → Index-Ckr5i1Li.js} +258 -240
  60. package/dist/{Index-VRzwBnM4.js → Index-Cl7KBtZX.js} +4 -4
  61. package/dist/{Index-CpZWI-QN.js → Index-CyAAbl1D.js} +14 -14
  62. package/dist/{Index-DMDWW0zp.js → Index-CyYFJf0D.js} +5 -5
  63. package/dist/Index-D05o3s14.js +4 -0
  64. package/dist/{Index-jSpfKPKP.js → Index-D1PUyqFa.js} +8 -8
  65. package/dist/{Index-32_BJudF.js → Index-DAI1qHEl.js} +3 -3
  66. package/dist/{Index-DaXHQaxr.js → Index-DAcRb0rT.js} +4 -4
  67. package/dist/{Index-BGsQAzCd.js → Index-DCWl_6gz.js} +9 -9
  68. package/dist/{Index-DH5l8DHo.js → Index-DGq9TdPd.js} +4 -4
  69. package/dist/{Index-Bh5sjhBw.js → Index-DIlbkelD.js} +1 -1
  70. package/dist/{Index-wb02iXXO.js → Index-DR3O2rVd.js} +5 -5
  71. package/dist/{Index-CgdCQDsv.js → Index-DSTJ0ZME.js} +7 -7
  72. package/dist/{Index-BmoysUi1.js → Index-DUKDykzl.js} +2 -2
  73. package/dist/{Index-Dssz58AL.js → Index-DfMMDolH.js} +3 -3
  74. package/dist/{Index-C-rVXB4u.js → Index-DikWyKIw.js} +2 -2
  75. package/dist/{Index-CATlFu8B.js → Index-Dn_EZ_k2.js} +2 -2
  76. package/dist/{Index-CLdIolDF.js → Index-STi0ufm3.js} +2 -2
  77. package/dist/{Index-DBozFV2a.js → Index-l8RB4z_B.js} +4 -4
  78. package/dist/{Index-DKKc3zZQ.js → Index-phqgcko1.js} +6 -6
  79. package/dist/{Index-Cnnkb8ey.js → Index-xKr7qP9f.js} +4 -4
  80. package/dist/{Index.vue_vue_type_script_lang-CUl4C9jx.js → Index.vue_vue_type_script_lang-DsCnlKNn.js} +2 -2
  81. package/dist/{InputToggleRow-e1gC6XnA.js → InputToggleRow-BiyZz3ua.js} +1 -1
  82. package/dist/{ManualPopover-BbqVfuJE.js → ManualPopover-CFwiZHZw.js} +1 -1
  83. package/dist/{MediaWrapper-Bqy-cGev.js → MediaWrapper-B6flFwa-.js} +3 -3
  84. package/dist/{NotBindingText-_GKq6jSE.js → NotBindingText-CyfRBqiL.js} +2 -2
  85. package/dist/{PackageGroup-IiQ0mqWg.js → PackageGroup-DDgLD4Yb.js} +5 -5
  86. package/dist/{PdfTerms-CO7SxSke.js → PdfTerms-zEPJCgb-.js} +2 -2
  87. package/dist/{PdfViewer-apckUEAj.js → PdfViewer-BNFYiBMf.js} +2 -2
  88. package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-gCh1Q-qi.js → PlainHtml.vue_vue_type_script_setup_true_lang-CPGJZjFh.js} +1 -1
  89. package/dist/{PriceHeader-CXP09nZ6.js → PriceHeader-B9Mk_GDV.js} +7 -7
  90. package/dist/{SearchApi-CQOtHW43.js → SearchApi-BsSeYGH9.js} +1 -1
  91. package/dist/{SendForm-C3v06Gwx.js → SendForm-Ci2s-FsJ.js} +8 -8
  92. package/dist/{Setup-Dr37DSNY.js → Setup-C5uQOyWH.js} +1 -1
  93. package/dist/{SmartList-Opr_24HD.js → SmartList-BglLgQmN.js} +1 -1
  94. package/dist/{Sortable.vue_vue_type_script_setup_true_lang-DtvYuVUg.js → Sortable.vue_vue_type_script_setup_true_lang-C-Uy1WwV.js} +1 -1
  95. package/dist/{TermsSettings-P8IWZn08.js → TermsSettings-BUXZ0GDb.js} +34 -32
  96. package/dist/{ThemeColorRow-BdXx5ClL.js → ThemeColorRow-EJd126k7.js} +3 -3
  97. package/dist/{ToggleBinding-BZyqWBnB.js → ToggleBinding-Bxx2OzYq.js} +4 -4
  98. package/dist/{UploadModal-6E9HzkQ0.js → UploadModal-BjrFM0lw.js} +13 -11
  99. package/dist/{VideoPlayerInput-DRcDC2q-.js → VideoPlayerInput-o2GX5-Ma.js} +4 -4
  100. package/dist/{VideoPlayerSettings-Dw7zEg1k.js → VideoPlayerSettings-DXSwsMJl.js} +2 -2
  101. package/dist/{VideoSelectModal-DIV9-62A.js → VideoSelectModal-BI0-L5dG.js} +3 -3
  102. package/dist/{focusDrawerMixin-CrKt75PZ.js → focusDrawerMixin-Dz9oC1MR.js} +1 -1
  103. package/dist/{formDrawerState-BesayjqS.js → formDrawerState-0vhg7tV-.js} +1 -1
  104. package/dist/fortnoxTheme-B0DA1l7P.js +8 -0
  105. package/dist/{helpers-DOdzW9pA.js → helpers-Dkn2xKzv.js} +1 -1
  106. package/dist/{index-DINik6UH.js → index-Bw8qzZRS.js} +1 -1
  107. package/dist/{index-DWwjiiMe.js → index-D-NDkjvk.js} +1 -1
  108. package/dist/{index-BHg-4y6B.js → index-DI9iTlQc.js} +8 -8
  109. package/dist/{index-DNQzIGHD.js → index-DNBN1EEl.js} +642 -565
  110. package/dist/{index-BnjVWyGe.js → index-Dkh_SXlu.js} +3 -3
  111. package/dist/{index-DDfG6A20.js → index-c4rO163H.js} +1 -1
  112. package/dist/{index-Cl5j-fNE.js → index-dqh4rth1.js} +1 -1
  113. package/dist/index.es.js +3 -33
  114. package/dist/index.umd.js +142 -142
  115. package/dist/{main-C18owm58.js → main-DAjWLLG0.js} +5116 -5085
  116. package/dist/{mapFormMixin-bA_KI0pt.js → mapFormMixin-CFaAoXxf.js} +4 -4
  117. package/dist/{omit-BVoDlsuC.js → omit-5nzNft5F.js} +2 -2
  118. package/dist/{publicSenderState-BR7541Fw.js → publicSenderState-BaH8Utk8.js} +1 -1
  119. package/dist/{splitpanes-OUpaQjCW.js → splitpanes-CxaAqPCT.js} +1 -1
  120. package/dist/{template-Y3wS95il.js → template-CHAQR6C-.js} +1 -1
  121. package/dist/{tippy.esm-CQD-ZLcV.js → tippy.esm-DYmyPdOc.js} +5 -5
  122. package/dist/{useTermsModal-DS9T_NyM.js → useTermsModal-aIBQHQEU.js} +4 -4
  123. package/dist/{utils-DwKlp8_z.js → utils-CiYKHNqS.js} +1 -1
  124. package/dist/{validation-b_jF-CIN.js → validation-BRPTZqtn.js} +2 -2
  125. package/dist/validations-ohsJ5nBz.js +34 -0
  126. package/dist/widget.css +1 -1
  127. package/package.json +1 -1
  128. package/dist/Index-DEBrME_f.js +0 -4
@@ -1,40 +1,41 @@
1
- import { J as x, aJ as A, l as z, _ as D, m as P, b as y, c as p, o as r, w as g, e as c, j as i, d, W as k, t as o, f as w, q as l, x as T, k as B, g as V, a4 as E, ap as N, u as b, al as O, h as M, af as S } from "./main-C18owm58.js";
2
- import "./template-Y3wS95il.js";
3
- import { i as L, s as $ } from "./dom-DOcGU3-g.js";
4
- import { v as q } from "./validation-b_jF-CIN.js";
5
- import { i as R } from "./DocumentLayout-DbXHslTY.js";
6
- import { w as I } from "./CDropdownItem-rpcdHW76.js";
7
- import { D as j } from "./DocModalBase-D_LZXbIj.js";
8
- import { _ as U } from "./CFormField.vue_vue_type_script_setup_true_lang-vyObNdUP.js";
9
- import { u as F } from "./index-DWwjiiMe.js";
10
- import { a as H, m as W, b as J } from "./index-DINik6UH.js";
11
- function K(e) {
12
- const { isValid: t } = x(q, null) || {}, { show: n, getOpenInstances: v } = A();
13
- function s() {
14
- var m;
15
- return (m = v()) == null ? void 0 : m.some(
16
- (u) => {
1
+ import { J as x, aJ as A, l as T, _ as H, m as P, b as y, c as f, o as a, w as v, e as u, j as i, d, W as V, t as s, f as p, q as l, x as z, k as B, g as b, a4 as E, ap as N, u as C, al as O, h as M, af as S } from "./main-DAjWLLG0.js";
2
+ import "./template-CHAQR6C-.js";
3
+ import { i as L, s as q } from "./dom-DOcGU3-g.js";
4
+ import { i as $ } from "./DocumentLayout-B2vKSnWD.js";
5
+ import { v as R } from "./validation-BRPTZqtn.js";
6
+ import { i as j } from "./fortnoxTheme-B0DA1l7P.js";
7
+ import { w as D } from "./CDropdownItem-CZO28TQW.js";
8
+ import { D as U } from "./DocModalBase-Cf-C2hVQ.js";
9
+ import { _ as F } from "./CFormField.vue_vue_type_script_setup_true_lang-DoO3uBt-.js";
10
+ import { u as W } from "./index-D-NDkjvk.js";
11
+ import { a as _, m as J, b as K } from "./index-Bw8qzZRS.js";
12
+ function G(e) {
13
+ const { isValid: t } = x(R, null) || {}, { show: n, getOpenInstances: w } = A();
14
+ function o() {
15
+ var c;
16
+ return (c = w()) == null ? void 0 : c.some(
17
+ (m) => {
17
18
  var h;
18
- return ((h = u.modalAttrs) == null ? void 0 : h.name) === "AnswerModal";
19
+ return ((h = m.modalAttrs) == null ? void 0 : h.name) === "AnswerModal";
19
20
  }
20
21
  );
21
22
  }
22
- async function a(m = "accept", u = {}) {
23
- if (!s() && !(e != null && e.isPreview)) {
23
+ async function r(c = "accept", m = {}) {
24
+ if (!o() && !(e != null && e.isPreview)) {
24
25
  if (typeof t != "function")
25
26
  throw new Error("isValid is not a function");
26
- m === "accept" && !await t() || n(
27
- z(
27
+ c === "accept" && !await t() || n(
28
+ T(
28
29
  () => import(
29
30
  // @ts-ignore
30
- "./AnswerModal-B2ApEIfo.js"
31
+ "./AnswerModal-aoQoCe3o.js"
31
32
  )
32
33
  ),
33
34
  {
34
- mode: m,
35
+ mode: c,
35
36
  _document: e,
36
- fullScreen: R.value,
37
- calcHeight: !!u.calcHeight
37
+ fullScreen: $.value,
38
+ calcHeight: !!m.calcHeight
38
39
  },
39
40
  {
40
41
  name: "AnswerModal",
@@ -45,25 +46,28 @@ function K(e) {
45
46
  classes: "overflow-visible",
46
47
  transition: "modal-soft",
47
48
  clickToClose: !1
49
+ },
50
+ m.onClose && {
51
+ closed: m.onClose
48
52
  }
49
53
  );
50
54
  }
51
55
  }
52
56
  return {
53
- answer: a
57
+ answer: r
54
58
  };
55
59
  }
56
- const G = {
60
+ const Q = {
57
61
  i18nOptions: {
58
62
  namespaces: "components",
59
63
  keyPrefix: "document.propertyDesignationModal"
60
64
  },
61
65
  components: {
62
- DocModalBase: j,
63
- CField: U
66
+ DocModalBase: U,
67
+ CField: F
64
68
  },
65
69
  emits: ["close"],
66
- mixins: [I],
70
+ mixins: [D],
67
71
  props: {
68
72
  senderName: {
69
73
  type: String,
@@ -80,7 +84,7 @@ const G = {
80
84
  },
81
85
  setup() {
82
86
  return {
83
- v$: F()
87
+ v$: W()
84
88
  };
85
89
  },
86
90
  data() {
@@ -97,15 +101,15 @@ const G = {
97
101
  validations() {
98
102
  return {
99
103
  condominiumId: {
100
- required: H(this.form === "condominium"),
101
- minLength: J(4),
102
- maxLength: W(4)
104
+ required: _(this.form === "condominium"),
105
+ minLength: K(4),
106
+ maxLength: J(4)
103
107
  },
104
108
  condominiumOrgNo: {
105
- required: H(this.form === "condominium")
109
+ required: _(this.form === "condominium")
106
110
  },
107
111
  realEstateId: {
108
- required: H(this.form === "realEstate")
112
+ required: _(this.form === "realEstate")
109
113
  }
110
114
  };
111
115
  },
@@ -144,8 +148,8 @@ const G = {
144
148
  },
145
149
  methods: {
146
150
  ...P({
147
- putCurrentDoc: V.PUT_CURRENT_PUBLIC_DOCUMENT,
148
- reloadCurrentDocument: V.RELOAD_CURRENT_DOCUMENT
151
+ putCurrentDoc: b.PUT_CURRENT_PUBLIC_DOCUMENT,
152
+ reloadCurrentDocument: b.RELOAD_CURRENT_DOCUMENT
149
153
  }),
150
154
  async updateClientPropertyDesignation() {
151
155
  if (this.v$.$touch(), this.v$.$invalid) return;
@@ -167,67 +171,67 @@ const G = {
167
171
  }
168
172
  }
169
173
  }
170
- }, Q = { key: 1 }, X = { class: "mb-2 text-lg font-semibold" }, Y = { class: "text-gray-700" }, Z = { key: 2 }, ee = { class: "mb-2 text-lg font-semibold" }, te = { class: "text-gray-700" }, ne = {
174
+ }, X = { key: 1 }, Y = { class: "mb-2 text-lg font-semibold" }, Z = { class: "text-gray-700" }, ee = { key: 2 }, te = { class: "mb-2 text-lg font-semibold" }, ne = { class: "text-gray-700" }, ie = {
171
175
  href: "https://www.lantmateriet.se/",
172
176
  target: "_blank",
173
177
  rel: "noopener",
174
178
  style: { "text-decoration": "underline" }
175
- }, ie = {
179
+ }, se = {
176
180
  key: 1,
177
181
  class: "mb-12 text-center"
178
- }, oe = { class: "mb-4 text-base font-medium" }, se = { class: "flex justify-center" }, re = { class: "mx-4" }, ae = { class: "text-sm leading-tight text-gray-700" }, de = { class: "mx-4" }, le = { class: "text-sm leading-tight text-gray-700" }, me = { key: 2 }, ce = { class: "space-y-6" }, ue = { key: 3 }, he = { class: "flex flex-col items-center justify-center text-center" }, ve = { class: "bg-primary-50 mb-4 flex h-12 w-12 items-center justify-center rounded-full" }, ge = { class: "mb-1 text-base font-semibold" }, fe = { class: "mb-6 text-base text-gray-700" }, we = { class: "mt-4 w-full" };
179
- function pe(e, t, n, v, s, a) {
180
- const m = y("CButton"), u = y("CInput"), h = y("CField"), _ = y("CIcon"), C = y("DocModalBase");
181
- return r(), p(C, {
182
+ }, oe = { class: "mb-4 text-base font-medium" }, re = { class: "flex justify-center" }, ae = { class: "mx-4" }, de = { class: "text-sm leading-tight text-gray-700" }, le = { class: "mx-4" }, ce = { class: "text-sm leading-tight text-gray-700" }, me = { key: 2 }, ue = { class: "space-y-6" }, he = { key: 3 }, ve = { class: "flex flex-col items-center justify-center text-center" }, ge = { class: "bg-primary-50 mb-4 flex h-12 w-12 items-center justify-center rounded-full" }, we = { class: "mb-1 text-base font-semibold" }, pe = { class: "mb-6 text-base text-gray-700" }, fe = { class: "mt-4 w-full" };
183
+ function ye(e, t, n, w, o, r) {
184
+ const c = y("CButton"), m = y("CInput"), h = y("CField"), k = y("CIcon"), I = y("DocModalBase");
185
+ return a(), f(I, {
182
186
  ref: "root",
183
- class: T([{ "full-screen": e.mq === "sm" }]),
184
- onClose: t[8] || (t[8] = (f) => e.$emit("close"))
187
+ class: z([{ "full-screen": e.mq === "sm" }]),
188
+ onClose: t[8] || (t[8] = (g) => e.$emit("close"))
185
189
  }, {
186
- default: g(() => [
187
- n.fullScreen ? (r(), p(m, {
190
+ default: v(() => [
191
+ n.fullScreen ? (a(), f(c, {
188
192
  key: 0,
189
193
  class: "absolute right-4 top-4 z-50",
190
194
  icon: "x",
191
195
  circle: "",
192
- onClick: t[0] || (t[0] = (f) => e.$emit("close"))
193
- })) : c("", !0),
196
+ onClick: t[0] || (t[0] = (g) => e.$emit("close"))
197
+ })) : u("", !0),
194
198
  i("div", null, [
195
- s.view !== "complete" ? (r(), d("div", {
199
+ o.view !== "complete" ? (a(), d("div", {
196
200
  key: 0,
197
- style: k({
198
- paddingTop: s.spacing,
199
- marginTop: `-${s.spacing}`,
200
- borderRadius: `${s.cornerRadius} ${s.cornerRadius} 0 0`
201
+ style: V({
202
+ paddingTop: o.spacing,
203
+ marginTop: `-${o.spacing}`,
204
+ borderRadius: `${o.cornerRadius} ${o.cornerRadius} 0 0`
201
205
  }),
202
206
  class: "negate-padding relative mb-8 border-b border-gray-100 bg-gray-50 pb-8 text-center"
203
207
  }, [
204
- s.view === "start" ? (r(), d("div", Q, [
205
- i("div", X, o(e.$t("title")), 1),
206
- i("div", Y, o(e.$t("subTitle", { senderName: n.senderName })), 1)
207
- ])) : c("", !0),
208
- s.view === "form" ? (r(), d("div", Z, [
209
- w(m, {
208
+ o.view === "start" ? (a(), d("div", X, [
209
+ i("div", Y, s(e.$t("title")), 1),
210
+ i("div", Z, s(e.$t("subTitle", { senderName: n.senderName })), 1)
211
+ ])) : u("", !0),
212
+ o.view === "form" ? (a(), d("div", ee, [
213
+ p(c, {
210
214
  circle: "",
211
215
  class: "absolute left-4 top-4",
212
216
  icon: "arrow-left",
213
- onClick: t[1] || (t[1] = (f) => s.view = "start")
217
+ onClick: t[1] || (t[1] = (g) => o.view = "start")
214
218
  }),
215
- i("div", ee, o(e.$t("howToFind")), 1),
216
- i("div", te, [
217
- l(o(e.$t("goto1")) + " ", 1),
218
- i("a", ne, o(e.$t("goto2")), 1),
219
- l(" " + o(e.$t("goto3")), 1)
219
+ i("div", te, s(e.$t("howToFind")), 1),
220
+ i("div", ne, [
221
+ l(s(e.$t("goto1")) + " ", 1),
222
+ i("a", ie, s(e.$t("goto2")), 1),
223
+ l(" " + s(e.$t("goto3")), 1)
220
224
  ])
221
- ])) : c("", !0)
222
- ], 4)) : c("", !0),
223
- s.view === "start" ? (r(), d("div", ie, [
224
- i("div", oe, o(e.$t("whereTitle")), 1),
225
- i("div", se, [
226
- i("div", re, [
225
+ ])) : u("", !0)
226
+ ], 4)) : u("", !0),
227
+ o.view === "start" ? (a(), d("div", se, [
228
+ i("div", oe, s(e.$t("whereTitle")), 1),
229
+ i("div", re, [
230
+ i("div", ae, [
227
231
  i("div", {
228
232
  class: "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",
229
233
  onClick: t[2] || (t[2] = () => {
230
- s.view = "form", s.form = "realEstate";
234
+ o.view = "form", o.form = "realEstate";
231
235
  })
232
236
  }, t[9] || (t[9] = [
233
237
  i("svg", {
@@ -246,17 +250,17 @@ function pe(e, t, n, v, s, a) {
246
250
  ])
247
251
  ], -1)
248
252
  ])),
249
- i("div", ae, [
250
- l(o(e.$t("house")), 1),
253
+ i("div", de, [
254
+ l(s(e.$t("house")), 1),
251
255
  t[10] || (t[10] = i("br", null, null, -1)),
252
- l("/ " + o(e.$t("realEstate")), 1)
256
+ l("/ " + s(e.$t("realEstate")), 1)
253
257
  ])
254
258
  ]),
255
- i("div", de, [
259
+ i("div", le, [
256
260
  i("div", {
257
261
  class: "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",
258
262
  onClick: t[3] || (t[3] = () => {
259
- s.view = "form", s.form = "condominium";
263
+ o.view = "form", o.form = "condominium";
260
264
  })
261
265
  }, t[11] || (t[11] = [
262
266
  i("svg", {
@@ -275,108 +279,108 @@ function pe(e, t, n, v, s, a) {
275
279
  ])
276
280
  ], -1)
277
281
  ])),
278
- i("div", le, [
279
- l(o(e.$t("condominium")), 1),
282
+ i("div", ce, [
283
+ l(s(e.$t("condominium")), 1),
280
284
  t[12] || (t[12] = i("br", null, null, -1)),
281
- l("/ " + o(e.$t("apartment")), 1)
285
+ l("/ " + s(e.$t("apartment")), 1)
282
286
  ])
283
287
  ])
284
288
  ])
285
- ])) : c("", !0),
286
- s.view === "form" ? (r(), d("div", me, [
287
- i("div", ce, [
288
- s.form === "realEstate" ? (r(), p(h, {
289
+ ])) : u("", !0),
290
+ o.view === "form" ? (a(), d("div", me, [
291
+ i("div", ue, [
292
+ o.form === "realEstate" ? (a(), f(h, {
289
293
  key: 0,
290
- vuelidate: v.v$.realEstateId,
291
- "vuelidate-messages": a.messages.realEstateId,
294
+ vuelidate: w.v$.realEstateId,
295
+ "vuelidate-messages": r.messages.realEstateId,
292
296
  label: e.$t("propertyDesignation")
293
297
  }, {
294
- default: g(() => [
295
- w(u, {
296
- modelValue: s.realEstateId,
297
- "onUpdate:modelValue": t[4] || (t[4] = (f) => s.realEstateId = f),
298
+ default: v(() => [
299
+ p(m, {
300
+ modelValue: o.realEstateId,
301
+ "onUpdate:modelValue": t[4] || (t[4] = (g) => o.realEstateId = g),
298
302
  placeholder: e.$t("propertyDesignationPlaceholder")
299
303
  }, null, 8, ["modelValue", "placeholder"])
300
304
  ]),
301
305
  _: 1
302
- }, 8, ["vuelidate", "vuelidate-messages", "label"])) : c("", !0),
303
- s.form === "condominium" ? (r(), p(h, {
306
+ }, 8, ["vuelidate", "vuelidate-messages", "label"])) : u("", !0),
307
+ o.form === "condominium" ? (a(), f(h, {
304
308
  key: 1,
305
- vuelidate: v.v$.condominiumId,
306
- "vuelidate-messages": a.messages.condominiumId,
309
+ vuelidate: w.v$.condominiumId,
310
+ "vuelidate-messages": r.messages.condominiumId,
307
311
  label: e.$t("condominiumId")
308
312
  }, {
309
- default: g(() => [
310
- w(u, {
311
- modelValue: s.condominiumId,
312
- "onUpdate:modelValue": t[5] || (t[5] = (f) => s.condominiumId = f),
313
+ default: v(() => [
314
+ p(m, {
315
+ modelValue: o.condominiumId,
316
+ "onUpdate:modelValue": t[5] || (t[5] = (g) => o.condominiumId = g),
313
317
  placeholder: e.$t("condominiumIdPlaceholder"),
314
318
  type: "number"
315
319
  }, null, 8, ["modelValue", "placeholder"])
316
320
  ]),
317
321
  _: 1
318
- }, 8, ["vuelidate", "vuelidate-messages", "label"])) : c("", !0),
319
- s.form === "condominium" ? (r(), p(h, {
322
+ }, 8, ["vuelidate", "vuelidate-messages", "label"])) : u("", !0),
323
+ o.form === "condominium" ? (a(), f(h, {
320
324
  key: 2,
321
- vuelidate: v.v$.condominiumOrgNo,
322
- "vuelidate-messages": a.messages.condominiumOrgNo,
325
+ vuelidate: w.v$.condominiumOrgNo,
326
+ "vuelidate-messages": r.messages.condominiumOrgNo,
323
327
  label: e.$t("condominiumOrgNo")
324
328
  }, {
325
- default: g(() => [
326
- w(u, {
327
- modelValue: s.condominiumOrgNo,
328
- "onUpdate:modelValue": t[6] || (t[6] = (f) => s.condominiumOrgNo = f),
329
+ default: v(() => [
330
+ p(m, {
331
+ modelValue: o.condominiumOrgNo,
332
+ "onUpdate:modelValue": t[6] || (t[6] = (g) => o.condominiumOrgNo = g),
329
333
  placeholder: e.$t("condominiumOrgNoPlaceholder"),
330
334
  type: "number",
331
335
  class: "mt-3"
332
336
  }, null, 8, ["modelValue", "placeholder"])
333
337
  ]),
334
338
  _: 1
335
- }, 8, ["vuelidate", "vuelidate-messages", "label"])) : c("", !0),
339
+ }, 8, ["vuelidate", "vuelidate-messages", "label"])) : u("", !0),
336
340
  i("div", null, [
337
- w(m, {
341
+ p(c, {
338
342
  type: "secondary",
339
343
  wide: "",
340
- onClick: a.updateClientPropertyDesignation
344
+ onClick: r.updateClientPropertyDesignation
341
345
  }, {
342
- default: g(() => [
343
- l(o(e.$t("_common:save")), 1)
346
+ default: v(() => [
347
+ l(s(e.$t("_common:save")), 1)
344
348
  ]),
345
349
  _: 1
346
350
  }, 8, ["onClick"])
347
351
  ])
348
352
  ])
349
- ])) : c("", !0),
350
- s.view === "complete" ? (r(), d("div", ue, [
351
- i("div", he, [
352
- i("div", ve, [
353
- w(_, {
353
+ ])) : u("", !0),
354
+ o.view === "complete" ? (a(), d("div", he, [
355
+ i("div", ve, [
356
+ i("div", ge, [
357
+ p(k, {
354
358
  type: "check",
355
359
  class: "text-primary-500"
356
360
  })
357
361
  ]),
358
- i("div", ge, o(e.$t("savedTitle")), 1),
359
- i("div", fe, o(e.$t("savedSubTitle", { senderName: n.senderName })), 1),
360
- i("div", we, [
361
- w(m, {
362
+ i("div", we, s(e.$t("savedTitle")), 1),
363
+ i("div", pe, s(e.$t("savedSubTitle", { senderName: n.senderName })), 1),
364
+ i("div", fe, [
365
+ p(c, {
362
366
  type: "secondary",
363
367
  wide: "",
364
- onClick: t[7] || (t[7] = (f) => e.$emit("close"))
368
+ onClick: t[7] || (t[7] = (g) => e.$emit("close"))
365
369
  }, {
366
- default: g(() => [
367
- l(o(e.$t("_common:close")), 1)
370
+ default: v(() => [
371
+ l(s(e.$t("_common:close")), 1)
368
372
  ]),
369
373
  _: 1
370
374
  })
371
375
  ])
372
376
  ])
373
- ])) : c("", !0)
377
+ ])) : u("", !0)
374
378
  ])
375
379
  ]),
376
380
  _: 1
377
381
  }, 8, ["class"]);
378
382
  }
379
- const ye = /* @__PURE__ */ D(G, [["render", pe]]), Ce = {
383
+ const Ce = /* @__PURE__ */ H(Q, [["render", ye]]), _e = {
380
384
  i18nOptions: {
381
385
  namespaces: "docAnswer",
382
386
  messages: {
@@ -389,7 +393,7 @@ const ye = /* @__PURE__ */ D(G, [["render", pe]]), Ce = {
389
393
  }
390
394
  },
391
395
  name: "DocumentAnswerRead",
392
- mixins: [I],
396
+ mixins: [D],
393
397
  inject: {
394
398
  isPdf: {
395
399
  default: !1
@@ -408,16 +412,21 @@ const ye = /* @__PURE__ */ D(G, [["render", pe]]), Ce = {
408
412
  }
409
413
  },
410
414
  setup(e) {
411
- const { answer: t } = K(e._document);
412
- return { onAnswer: t };
415
+ const { answer: t } = G(e._document);
416
+ return {
417
+ answer: (n, w) => t(n, { onClose: w })
418
+ };
413
419
  },
414
420
  data() {
415
421
  return {
416
422
  isInViewport: !1,
417
- scrollToElement: $
423
+ scrollToElement: q
418
424
  };
419
425
  },
420
426
  computed: {
427
+ acceptIcon() {
428
+ return j && this.viewerAcceptType === "bankId" ? "bankId" : "check";
429
+ },
421
430
  viewerId() {
422
431
  var e;
423
432
  return ((e = this._document._doc) == null ? void 0 : e.viewerId) || null;
@@ -425,6 +434,10 @@ const ye = /* @__PURE__ */ D(G, [["render", pe]]), Ce = {
425
434
  isPreview() {
426
435
  return this._document.isPreview;
427
436
  },
437
+ viewerAcceptType() {
438
+ var e, t;
439
+ return (t = (e = this._document.viewer) == null ? void 0 : e.answerMethod) == null ? void 0 : t.accept;
440
+ },
428
441
  modalHeight() {
429
442
  return this.mq === "sm" ? "100%" : "auto";
430
443
  },
@@ -469,7 +482,7 @@ const ye = /* @__PURE__ */ D(G, [["render", pe]]), Ce = {
469
482
  },
470
483
  showPropertyDesignation() {
471
484
  this.$modal.show(
472
- ye,
485
+ Ce,
473
486
  {
474
487
  senderName: this._document.sender.user.name,
475
488
  propertyDesignation: this.propertyDesignation,
@@ -484,146 +497,151 @@ const ye = /* @__PURE__ */ D(G, [["render", pe]]), Ce = {
484
497
  transition: "fade-in-slide-up"
485
498
  }
486
499
  );
500
+ },
501
+ onAnswer(e) {
502
+ e === "accept" && this.allowPropertyDesignation && !this.propertyDesignation ? this.answer(e, () => {
503
+ var t;
504
+ (t = this._document.viewer.answer) != null && t.didAccept && this.showPropertyDesignation();
505
+ }) : this.answer(e);
487
506
  }
488
507
  }
489
- }, _e = {
508
+ }, be = {
490
509
  key: 0,
491
510
  style: { padding: "calc(3 * var(--rem)) 0" }
492
- }, be = {
511
+ }, He = {
493
512
  ref: "answerButtons",
494
513
  class: "flex w-full justify-center"
495
- }, He = {
514
+ }, Ve = {
496
515
  key: 1,
497
516
  class: "flex w-full justify-center"
498
- }, Ve = ["innerHTML"], De = ["innerHTML"], ke = {
517
+ }, De = ["innerHTML"], ke = ["innerHTML"], Ie = {
499
518
  key: 2,
500
519
  class: "text-center"
501
- }, Ie = { style: { "font-weight": "600", "font-size": "calc(calc(1 * var(--rem)) + 2px)", "margin-bottom": "calc(0.5 * var(--rem))" } }, xe = { style: { "text-decoration": "underline" } }, Ae = { key: 3 }, ze = { class: "callout accepted" }, Pe = { class: "title" }, Te = {
520
+ }, xe = { style: { "font-weight": "600", "font-size": "calc(calc(1 * var(--rem)) + 2px)", "margin-bottom": "calc(0.5 * var(--rem))" } }, Ae = { style: { "text-decoration": "underline" } }, Te = { key: 3 }, Pe = { class: "callout accepted" }, ze = { class: "title" }, Be = {
502
521
  key: 4,
503
522
  class: "callout denied"
504
- }, Be = { class: "title" }, Ee = {
523
+ }, Ee = { class: "title" }, Ne = {
505
524
  key: 5,
506
525
  class: "callout expired"
507
- }, Ne = { class: "title" }, Oe = {
526
+ }, Oe = { class: "title" }, Me = {
508
527
  key: 0,
509
528
  class: "flex justify-center"
510
529
  };
511
- function Me(e, t, n, v, s, a) {
512
- const m = y("CButton"), u = E("tooltip");
513
- return n._document.answerActions.showActions && !a.isPdf ? (r(), d("div", _e, [
514
- i("div", be, [
515
- w(O, {
530
+ function Se(e, t, n, w, o, r) {
531
+ const c = y("CButton"), m = E("tooltip");
532
+ return n._document.answerActions.showActions && !r.isPdf ? (a(), d("div", be, [
533
+ i("div", He, [
534
+ p(O, {
516
535
  name: "fade",
517
536
  mode: "out-in"
518
537
  }, {
519
- default: g(() => {
520
- var h, _;
521
- return [
522
- ((_ = (h = n._document.viewer) == null ? void 0 : h.answerMethod) == null ? void 0 : _.accept) === "inPerson" ? (r(), d("div", {
538
+ default: v(() => [
539
+ r.viewerAcceptType === "inPerson" ? (a(), d("div", {
540
+ key: 0,
541
+ style: V([{ "max-width": "720px", margin: "0 auto", padding: "0 calc(3 * var(--rem))" }, e.mq === "sm" ? { padding: "0 calc(1.5 * var(--rem))" } : null])
542
+ }, [
543
+ l(s(n._document.$t("chapters.answerButtons.inPersonSignatureHint")) + " ", 1),
544
+ (a(), f(N(n._document.sender.user.email ? "a" : "span"), {
545
+ href: `mailto:${n._document.sender.user.email}`
546
+ }, {
547
+ default: v(() => [
548
+ l(s(n._document.sender.company.name || n._document.$t("theSender")), 1)
549
+ ]),
550
+ _: 1
551
+ }, 8, ["href"]))
552
+ ], 4)) : (n._document.answerActions.canAnswer || r.isPreview) && n._document.answerActions.showActions ? (a(), d("div", Ve, [
553
+ r.customHtmlDeny ? (a(), d("div", {
523
554
  key: 0,
524
- style: k([{ "max-width": "720px", margin: "0 auto", padding: "0 calc(3 * var(--rem))" }, e.mq === "sm" ? { padding: "0 calc(1.5 * var(--rem))" } : null])
525
- }, [
526
- l(o(n._document.$t("chapters.answerButtons.inPersonSignatureHint")) + " ", 1),
527
- (r(), p(N(n._document.sender.user.email ? "a" : "span"), {
528
- href: `mailto:${n._document.sender.user.email}`
529
- }, {
530
- default: g(() => [
531
- l(o(n._document.sender.company.name || n._document.$t("theSender")), 1)
532
- ]),
533
- _: 1
534
- }, 8, ["href"]))
535
- ], 4)) : (n._document.answerActions.canAnswer || a.isPreview) && n._document.answerActions.showActions ? (r(), d("div", He, [
536
- a.customHtmlDeny ? (r(), d("div", {
537
- key: 0,
538
- onClick: t[0] || (t[0] = (C) => v.onAnswer("decline")),
539
- innerHTML: a.customHtmlDeny
540
- }, null, 8, Ve)) : b((r(), p(m, {
541
- key: 1,
542
- disabled: a.isPreview,
543
- size: "medium",
544
- class: "text-gray-400",
545
- onClick: t[1] || (t[1] = (C) => v.onAnswer("decline"))
546
- }, {
547
- default: g(() => [
548
- l(o(n._document.$t("deny").capitalize()), 1)
549
- ]),
550
- _: 1
551
- }, 8, ["disabled"])), [
552
- [u, a.isPreview && e.$t("previewTooltip")]
555
+ onClick: t[0] || (t[0] = (h) => r.onAnswer("decline")),
556
+ innerHTML: r.customHtmlDeny
557
+ }, null, 8, De)) : C((a(), f(c, {
558
+ key: 1,
559
+ disabled: r.isPreview,
560
+ size: "medium",
561
+ class: "text-gray-400",
562
+ "data-doc-answer-action": "deny",
563
+ onClick: t[1] || (t[1] = (h) => r.onAnswer("decline"))
564
+ }, {
565
+ default: v(() => [
566
+ l(s(n._document.$t("deny").capitalize()), 1)
553
567
  ]),
554
- a.customHtmlAccept ? (r(), d("div", {
555
- key: 2,
556
- onClick: t[2] || (t[2] = (C) => v.onAnswer("accept")),
557
- innerHTML: a.customHtmlAccept
558
- }, null, 8, De)) : b((r(), p(m, {
559
- key: 3,
560
- "icon-props": { strokeWidth: 2.5 },
561
- disabled: a.isPreview,
562
- type: "success",
563
- size: "medium",
564
- "icon-left": "check",
565
- raised: "",
566
- style: { "margin-left": "1em", "padding-left": "1.5em", "padding-right": "1.5em", background: "var(--block-answer-accept-bg, hsl(114deg, 75%, 43%))" },
567
- onClick: t[3] || (t[3] = (C) => v.onAnswer("accept"))
568
- }, {
569
- default: g(() => [
570
- l(o(n._document.$t("sign").capitalize()), 1)
571
- ]),
572
- _: 1
573
- }, 8, ["disabled"])), [
574
- [u, a.isPreview && e.$t("previewTooltip")]
575
- ])
576
- ])) : n._document.answerActions.hasAnswered && n._document.answerActions.waitingForOthers ? (r(), d("div", ke, [
577
- i("div", Ie, [
578
- l(o(n._document.$t("chapters.answerButtons.youHave")) + " ", 1),
579
- b((r(), d("span", xe, [
580
- l(o(n._document.viewer.answer.didAccept ? n._document.$t("approved") : n._document.$t("denied")), 1)
581
- ])), [
582
- [
583
- u,
584
- `${e.$formatDate(n._document.viewer.answer.didAnswerAt, "Pp")}`
585
- ]
586
- ]),
587
- l(" " + o(" " + n._document.$t("theDocument")) + ". ", 1)
568
+ _: 1
569
+ }, 8, ["disabled"])), [
570
+ [m, r.isPreview && e.$t("previewTooltip")]
571
+ ]),
572
+ r.customHtmlAccept ? (a(), d("div", {
573
+ key: 2,
574
+ onClick: t[2] || (t[2] = (h) => r.onAnswer("accept")),
575
+ innerHTML: r.customHtmlAccept
576
+ }, null, 8, ke)) : C((a(), f(c, {
577
+ key: 3,
578
+ "icon-props": { strokeWidth: 2.5 },
579
+ disabled: r.isPreview,
580
+ type: "success",
581
+ size: "medium",
582
+ "icon-left": r.acceptIcon,
583
+ raised: "",
584
+ style: { "margin-left": "1em", "padding-left": "1.5em", "padding-right": "1.5em", background: "var(--block-answer-accept-bg, hsl(114deg, 75%, 43%))" },
585
+ "data-doc-answer-action": "accept",
586
+ onClick: t[3] || (t[3] = (h) => r.onAnswer("accept"))
587
+ }, {
588
+ default: v(() => [
589
+ l(s(n._document.$t("sign").capitalize()), 1)
588
590
  ]),
589
- i("div", null, o(n._document.$t("chapters.answerButtons.waitingDescription", {
590
- remaining: n._document.remainingSignatures
591
- })), 1)
592
- ])) : n._document.status === "accepted" ? (r(), d("div", Ae, [
593
- i("div", ze, [
594
- i("div", Pe, o(n._document.$t("chapters.answerButtons.approveTitle")), 1),
595
- i("div", null, o(n._document.$t("chapters.answerButtons.approveDescription", {
596
- sender: n._document.sender.company.name || n._document.$t("theSender")
597
- })), 1)
598
- ])
599
- ])) : n._document.status === "denied" ? (r(), d("div", Te, [
600
- i("div", Be, o(n._document.$t("chapters.answerButtons.denyTitle")), 1),
601
- i("div", null, o(n._document.$t("chapters.answerButtons.denyDescription", {
602
- sender: n._document.sender.company.name || n._document.$t("theSender")
603
- })), 1)
604
- ])) : n._document.status === "expired" ? (r(), d("div", Ee, [
605
- i("div", Ne, o(n._document.$t("chapters.answerButtons.expiredTitle")), 1),
606
- i("div", null, o(n._document.$t("chapters.answerButtons.expiredDescription", {
591
+ _: 1
592
+ }, 8, ["disabled", "icon-left"])), [
593
+ [m, r.isPreview && e.$t("previewTooltip")]
594
+ ])
595
+ ])) : n._document.answerActions.hasAnswered && n._document.answerActions.waitingForOthers ? (a(), d("div", Ie, [
596
+ i("div", xe, [
597
+ l(s(n._document.$t("chapters.answerButtons.youHave")) + " ", 1),
598
+ C((a(), d("span", Ae, [
599
+ l(s(n._document.viewer.answer.didAccept ? n._document.$t("approved") : n._document.$t("denied")), 1)
600
+ ])), [
601
+ [
602
+ m,
603
+ `${e.$formatDate(n._document.viewer.answer.didAnswerAt, "Pp")}`
604
+ ]
605
+ ]),
606
+ l(" " + s(" " + n._document.$t("theDocument")) + ". ", 1)
607
+ ]),
608
+ i("div", null, s(n._document.$t("chapters.answerButtons.waitingDescription", {
609
+ remaining: n._document.remainingSignatures
610
+ })), 1)
611
+ ])) : n._document.status === "accepted" ? (a(), d("div", Te, [
612
+ i("div", Pe, [
613
+ i("div", ze, s(n._document.$t("chapters.answerButtons.approveTitle")), 1),
614
+ i("div", null, s(n._document.$t("chapters.answerButtons.approveDescription", {
607
615
  sender: n._document.sender.company.name || n._document.$t("theSender")
608
616
  })), 1)
609
- ])) : c("", !0)
610
- ];
611
- }),
617
+ ])
618
+ ])) : n._document.status === "denied" ? (a(), d("div", Be, [
619
+ i("div", Ee, s(n._document.$t("chapters.answerButtons.denyTitle")), 1),
620
+ i("div", null, s(n._document.$t("chapters.answerButtons.denyDescription", {
621
+ sender: n._document.sender.company.name || n._document.$t("theSender")
622
+ })), 1)
623
+ ])) : n._document.status === "expired" ? (a(), d("div", Ne, [
624
+ i("div", Oe, s(n._document.$t("chapters.answerButtons.expiredTitle")), 1),
625
+ i("div", null, s(n._document.$t("chapters.answerButtons.expiredDescription", {
626
+ sender: n._document.sender.company.name || n._document.$t("theSender")
627
+ })), 1)
628
+ ])) : u("", !0)
629
+ ]),
612
630
  _: 1
613
631
  })
614
632
  ], 512),
615
- n._document.status === "accepted" && a.allowPropertyDesignation && n._document.answerActions.hasAnswered ? (r(), d("div", Oe, [
633
+ n._document.status === "accepted" && r.allowPropertyDesignation && n._document.answerActions.hasAnswered ? (a(), d("div", Me, [
616
634
  i("div", {
617
635
  class: "answer button accept",
618
636
  style: { "padding-left": "calc(1.5 * var(--rem))", "padding-right": "calc(1.5 * var(--rem))" },
619
- onClick: t[4] || (t[4] = (h) => a.showPropertyDesignation())
620
- }, o(n._document.$t(
621
- `chapters.answerButtons.${a.propertyDesignation ? "editPropDes" : "enterPropDes"}`
637
+ onClick: t[4] || (t[4] = (h) => r.showPropertyDesignation())
638
+ }, s(n._document.$t(
639
+ `chapters.answerButtons.${r.propertyDesignation ? "editPropDes" : "enterPropDes"}`
622
640
  )), 1)
623
- ])) : c("", !0)
624
- ])) : c("", !0);
641
+ ])) : u("", !0)
642
+ ])) : u("", !0);
625
643
  }
626
- const Ke = /* @__PURE__ */ D(Ce, [["render", Me], ["__scopeId", "data-v-4b4d7eb6"]]);
644
+ const Qe = /* @__PURE__ */ H(_e, [["render", Se], ["__scopeId", "data-v-8defa929"]]);
627
645
  export {
628
- Ke as default
646
+ Qe as default
629
647
  };