@cling-se/widget 0.22.3 → 0.23.0

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 (132) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/{AddClientCallout-Bk_RMqww.js → AddClientCallout-Bv6IKK40.js} +6 -6
  3. package/dist/AnswerModal-BH7HUCFy.js +4511 -0
  4. package/dist/{AttachmentItem-DnlOo6Ar.js → AttachmentItem-DVVxOm2E.js} +6 -6
  5. package/dist/{BaseUpload-DCPt9YUo.js → BaseUpload-B8k82P27.js} +2 -2
  6. package/dist/{BlockMedia-najJzMYF.js → BlockMedia-BcvfBi4G.js} +4 -4
  7. package/dist/{CCallout-DCvCm65V.js → CCallout-BbBdzwkb.js} +3 -3
  8. package/dist/{CCurrencyDropdown-DuJxa77L.js → CCurrencyDropdown-2PRaeJHp.js} +5 -5
  9. package/dist/{CDropdownItem-DyWrpOb-.js → CDropdownItem-CFTdvAJc.js} +13 -13
  10. package/dist/{CFormField.vue_vue_type_script_setup_true_lang-CSMB_HdZ.js → CFormField.vue_vue_type_script_setup_true_lang-B0HHxy2B.js} +7 -7
  11. package/dist/{CPhoneFormat-BmGCMx5K.js → CPhoneFormat-D__bIItZ.js} +1 -1
  12. package/dist/{regions-BdZt9Srn.js → CPhoneInput-DPqzQOjR.js} +205 -3
  13. package/dist/{CPriceInput-BwBsHKnn.js → CPriceInput-BJ1hmANq.js} +4 -4
  14. package/dist/{CSelect-BlPNOr_g.js → CSelect-GhGdyQzt.js} +4 -4
  15. package/dist/{CSkeleton-DRbFIBZS.js → CSkeleton-Ro7hmy5_.js} +5 -5
  16. package/dist/{ClientAutocomplete-DS08QQ5C.js → ClientAutocomplete-Ci08U3Eg.js} +10 -10
  17. package/dist/{ClientModal-DXtdxLj9.js → ClientModal-CZjzCgw_.js} +251 -221
  18. package/dist/{ColorPicker-CeJ8YHt-.js → ColorPicker-Bdev0Tci.js} +27 -27
  19. package/dist/{CompanyModal-DzE3OIG0.js → CompanyModal-vZnMCWG-.js} +8 -8
  20. package/dist/{ContentWrapper-CBd8srOJ.js → ContentWrapper-CAlHzSsP.js} +18 -18
  21. package/dist/{CoverBlockSettings-D9K1BnJk.js → CoverBlockSettings-CRG8Q2mD.js} +42 -42
  22. package/dist/{DocAnswer-By6hA4eC.js → DocAnswer-DHVVPZff.js} +2 -2
  23. package/dist/{DocDetails-C-ZRzvrA.js → DocDetails-W4sRFsQP.js} +8 -8
  24. package/dist/{DocForm-DvT2fhEM.js → DocForm-B0HWL32c.js} +853 -757
  25. package/dist/{DocFormSend-CKeZn--O.js → DocFormSend-BHjoq88x.js} +2 -2
  26. package/dist/{DocLinks-w8pfegGu.js → DocLinks-BKJ_usNd.js} +2 -2
  27. package/dist/{DocModalBase-B2IgIy_9.js → DocModalBase-Z1ZEPL_z.js} +1 -1
  28. package/dist/{DocPrint-eUTCgg8g.js → DocPrint-W53zklGf.js} +3 -3
  29. package/dist/{DocReceipt-BD0WVtId.js → DocReceipt-CG954L85.js} +10 -10
  30. package/dist/{DocSendReminder-EjkK-9rh.js → DocSendReminder-rE0hlFaZ.js} +3 -3
  31. package/dist/{DocTextEditor-U8ZdSDAr.js → DocTextEditor-DwYMXhZv.js} +9 -9
  32. package/dist/{DocTimeline-D30HTE_o.js → DocTimeline-BsvUw4lW.js} +17 -17
  33. package/dist/{DocumentClient-BBEmQHMi.js → DocumentClient-DeDGrmbP.js} +5 -5
  34. package/dist/{DocumentLayout-BLeVh3wu.js → DocumentLayout-DdXflWEb.js} +28 -28
  35. package/dist/{DocumentLogotype-BauCUJ8j.js → DocumentLogotype-eSStO83t.js} +3 -3
  36. package/dist/{DocumentVoided-CfQdzPJa.js → DocumentVoided-CF_snlgf.js} +1 -1
  37. package/dist/{EmbedInput-D4QrX2Gm.js → EmbedInput-C6zvXcOu.js} +5 -5
  38. package/dist/{EmbedSettings-DVZLouo9.js → EmbedSettings-BO0wk_Mz.js} +3 -3
  39. package/dist/{ErrorCallout-BiLLFJek.js → ErrorCallout-BX44gJMR.js} +1 -1
  40. package/dist/{FilePreviewModal-BusalEt3.js → FilePreviewModal-Dl9kL1D4.js} +2 -2
  41. package/dist/{Flag-BxkDKlP4.js → Flag-CUjMh16L.js} +1 -1
  42. package/dist/{HeaderSettings-DIWro6fR.js → HeaderSettings-CGAKOOf2.js} +18 -18
  43. package/dist/{ImageSelectModal-CL52MP8Z.js → ImageSelectModal-CBJLdDWY.js} +3 -3
  44. package/dist/{ImageUploadWrapper-2gjzeenp.js → ImageUploadWrapper-3iw_ifJm.js} +2 -2
  45. package/dist/{Index-qcFSIYDB.js → Index--LhQAU0e.js} +4 -4
  46. package/dist/{Index-m_q4QkfZ.js → Index-B9IVTM-6.js} +4 -4
  47. package/dist/{Index-bKQSbdxw.js → Index-BHc8-EVf.js} +2 -2
  48. package/dist/{Index-qzpjRFUp.js → Index-BKdt7W1p.js} +11 -11
  49. package/dist/{Index-DMEoYhVr.js → Index-BQjcDZPz.js} +8 -8
  50. package/dist/{Index-CcZ48rLC.js → Index-BXgbccOo.js} +2 -2
  51. package/dist/{Index-CQzTAmTM.js → Index-Bc75-4Ee.js} +41 -41
  52. package/dist/{Index-Bge6Bknk.js → Index-Bf6twTPv.js} +1 -1
  53. package/dist/{Index-jXUY8fSe.js → Index-BwyxrAfq.js} +2 -2
  54. package/dist/{Index-DYkWCXz0.js → Index-CFk1oikV.js} +5 -5
  55. package/dist/{Index-4FHzyecP.js → Index-CRPvQg7m.js} +4 -4
  56. package/dist/{Index-CZljdL3w.js → Index-CZLo46BA.js} +2 -2
  57. package/dist/{Index-CtRE9_p3.js → Index-Cay1MsI0.js} +4 -4
  58. package/dist/{Index-CSNH8muS.js → Index-CbJAROk-.js} +6 -6
  59. package/dist/{Index-DjMRBozk.js → Index-Ck3YMDt4.js} +14 -14
  60. package/dist/{Index-Cq90eS9E.js → Index-CmtHodVa.js} +7 -7
  61. package/dist/{Index-CuaK6bnN.js → Index-Cv-ZmqIf.js} +19 -19
  62. package/dist/Index-D3GyeaZ3.js +4 -0
  63. package/dist/{Index-CsLEoK-y.js → Index-D3YAyImu.js} +3 -3
  64. package/dist/{Index-Cen56jNO.js → Index-D48EyoXi.js} +4 -4
  65. package/dist/{Index-DO0vFJCv.js → Index-DDTMR3LI.js} +6 -6
  66. package/dist/{Index--EACh-v2.js → Index-DExnFebC.js} +30 -30
  67. package/dist/{Index-FSjvo5ex.js → Index-DRNXEsk-.js} +5 -5
  68. package/dist/{Index-u00PSjX2.js → Index-DUvA8MIy.js} +3 -3
  69. package/dist/{Index-CcKgWOG7.js → Index-DaOOJQM2.js} +3 -3
  70. package/dist/{Index-DQMuQ2js.js → Index-DlWc7i0k.js} +4 -4
  71. package/dist/{Index-BkMzG22-.js → Index-Dttziehp.js} +11 -11
  72. package/dist/{Index-N-TCcUiZ.js → Index-T6kXb5Sf.js} +5 -5
  73. package/dist/{Index-DxWtScO2.js → Index-_Xoo1bdc.js} +3 -3
  74. package/dist/{Index-CJZBOrgw.js → Index-foC5v_3Y.js} +3 -3
  75. package/dist/{Index-Bn8_-gUC.js → Index-gLA2kURi.js} +4 -4
  76. package/dist/{Index-DdfunbXo.js → Index-gOnXhVx4.js} +7 -7
  77. package/dist/{Index-BPuHAiJR.js → Index-j78ap3EU.js} +3 -3
  78. package/dist/{Index-BcIg-95c.js → Index-qAnbtxTE.js} +7 -7
  79. package/dist/{Index.vue_vue_type_script_lang-MIgEx7dJ.js → Index.vue_vue_type_script_lang-DkStHbk0.js} +2 -2
  80. package/dist/{InputToggleRow-Dv5l7HsH.js → InputToggleRow-COQQQaJS.js} +1 -1
  81. package/dist/{ManualPopover-B-VE0HPu.js → ManualPopover-2myYukDY.js} +3 -3
  82. package/dist/{MediaWrapper-m5wr6sG8.js → MediaWrapper-CzLU8HWj.js} +3 -3
  83. package/dist/{NotBindingText-JKkfTNyO.js → NotBindingText-Ds156Rs5.js} +2 -2
  84. package/dist/{PackageGroup-CXZ0Lsz9.js → PackageGroup-wT1ri3ij.js} +9 -9
  85. package/dist/{PdfTerms-Cb_px74_.js → PdfTerms-CcFpPx19.js} +2 -2
  86. package/dist/{PdfViewer-1OOdNeVT.js → PdfViewer-B7qdDox0.js} +24 -24
  87. package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-C12eZIH1.js → PlainHtml.vue_vue_type_script_setup_true_lang-pAIAnHdh.js} +1 -1
  88. package/dist/{PriceHeader-BzPZtNYJ.js → PriceHeader-CdJspOjM.js} +12 -12
  89. package/dist/{SearchApi-CBg1KY-O.js → SearchApi-zTefPc4C.js} +3 -3
  90. package/dist/{SendForm-C-VTNpve.js → SendForm-DWiNVIs2.js} +8 -8
  91. package/dist/{Setup-BmlGbBrM.js → Setup-D90T_HW3.js} +1 -1
  92. package/dist/{SmartList-B2ZpLA8V.js → SmartList-mO6hykju.js} +1 -1
  93. package/dist/{Sortable.vue_vue_type_script_setup_true_lang-CcTjzIyK.js → Sortable.vue_vue_type_script_setup_true_lang-D22AqpXY.js} +35 -35
  94. package/dist/{TermsSettings-0V_cVRPI.js → TermsSettings-CW4GvPBa.js} +14 -14
  95. package/dist/{ThemeColorRow-BwSFCUGN.js → ThemeColorRow-C9XPet4I.js} +5 -5
  96. package/dist/{ToggleBinding-sJX5jVgf.js → ToggleBinding-5Ewi_NNo.js} +5 -5
  97. package/dist/{UploadModal-CvFB_11W.js → UploadModal-ChOeO-8_.js} +4 -4
  98. package/dist/{VideoPlayerInput-CmjzzRDj.js → VideoPlayerInput-CtZi6yF_.js} +6 -6
  99. package/dist/{VideoPlayerSettings-TD3__Ui0.js → VideoPlayerSettings-Bg8IvjwK.js} +2 -2
  100. package/dist/{VideoSelectModal-DWohaFSL.js → VideoSelectModal-E01NsD3K.js} +5 -5
  101. package/dist/{dom-DOcGU3-g.js → dom-B_lSczxY.js} +5 -6
  102. package/dist/{focusDrawerMixin-CReYj2SY.js → focusDrawerMixin-DfuFLIV0.js} +1 -1
  103. package/dist/{formDrawerState-Cf5itKVM.js → formDrawerState-DlaQS_ZT.js} +1 -1
  104. package/dist/{fortnoxTheme-IeycOfWB.js → fortnoxTheme-CyUIkVuu.js} +1 -1
  105. package/dist/{helpers-CUo71XPG.js → helpers-B1vYJYc-.js} +1 -1
  106. package/dist/{index-DzyXygjd.js → index-BPR1VsLM.js} +1 -1
  107. package/dist/{index-MMzIZOFI.js → index-CBkI7Hc7.js} +28 -28
  108. package/dist/index-CXYvBw0i.js +107 -0
  109. package/dist/index-DK3w2fdd.js +896 -0
  110. package/dist/{index-BEKHEkFO.js → index-DOK_hQri.js} +28 -28
  111. package/dist/{index-FsgsKPqg.js → index-DnMhYLAz.js} +1 -1
  112. package/dist/{index-CrQzVsCT.js → index-hj2QoJyP.js} +8 -8
  113. package/dist/index.es.js +2 -2
  114. package/dist/index.umd.js +191 -235
  115. package/dist/{main-D4afcIIy.js → main-BnJTDeKH.js} +12149 -14255
  116. package/dist/{mapFormMixin-DcTZ2NvY.js → mapFormMixin-sXjgYtfb.js} +2 -2
  117. package/dist/{omit-Bq20xrhI.js → omit-DQlOTuQS.js} +1 -1
  118. package/dist/{splitpanes-EHoHU6iQ.js → splitpanes-4FF5o_FM.js} +1 -1
  119. package/dist/{template-CDxtqtv6.js → template-dbF0t2om.js} +1 -1
  120. package/dist/{tippy.esm-D8I3Noyw.js → tippy.esm-Bu14Lq2S.js} +50 -50
  121. package/dist/{useTermsModal-DEiH4ghd.js → useTermsModal-DKiiU8a4.js} +4 -4
  122. package/dist/{utils-DvezupAT.js → utils-Dn9pHgbx.js} +1 -1
  123. package/dist/{validation-ERFxig5z.js → validation-D_KP2hMr.js} +3 -3
  124. package/dist/widget.css +1 -1
  125. package/package.json +1 -1
  126. package/dist/AnswerModal-BQ9VR89q.js +0 -3653
  127. package/dist/CPhoneInput-Cx3OiUWQ.js +0 -207
  128. package/dist/Index-DdSDsjP8.js +0 -4
  129. package/dist/anime.es-4wvNItHq.js +0 -862
  130. package/dist/index-CFm8CNEc.js +0 -149
  131. package/dist/index-DCq6gjGI.js +0 -3590
  132. package/dist/validations-ohsJ5nBz.js +0 -34
@@ -1,29 +1,29 @@
1
- import et from "./AnswerModal-BQ9VR89q.js";
2
- import { o as tt } from "./index-CrQzVsCT.js";
3
- import { w as Q, C as q, a as re } from "./CDropdownItem-DyWrpOb-.js";
4
- import { _ as F, m as Z, cQ as ye, g as P, b as u, d as p, o as l, j as a, f as c, t as d, w as m, s as x, e as C, X as z, al as ne, an as j, y as B, U as A, aV as J, c as b, ap as W, T as be, F as I, a7 as de, A as nt, B as xe, I as U, p as Te, i as K, a3 as De, cR as it, J as O, af as M, q as E, a as R, cS as ot, z as st, Y as ke, u as Ae, S as at, aG as Se, Z as te, cO as lt, a5 as ie, v as G, ai as rt, aF as dt, aC as we, l as le, cg as Ee, ch as ze, x as ve, n as ct, ax as Ie, ci as ut, cT as ue, cU as mt, bn as pt, a1 as Re, cj as ht, aa as Oe, cV as ft, cW as gt, aL as Ue, r as yt, aE as Ce, aB as He, cX as vt, cY as Ct, cZ as bt, aA as kt, a9 as wt, c_ as _t, c$ as xt, d0 as Tt, C as qe, d1 as Dt, d2 as St, d3 as It, cl as $t, d4 as Ft, d5 as Lt, b0 as Bt, d6 as Vt, d7 as Mt } from "./main-D4afcIIy.js";
1
+ import et from "./AnswerModal-BH7HUCFy.js";
2
+ import { o as tt } from "./index-hj2QoJyP.js";
3
+ import { w as Q, a as q, b as re } from "./CDropdownItem-CFTdvAJc.js";
4
+ import { _ as L, m as Z, cQ as ye, g as A, b as m, d as p, o as l, j as a, f as c, t as d, w as u, s as x, e as C, Q as z, al as J, an as j, y as F, O as M, aV as X, c as b, ap as W, a5 as be, F as $, $ as de, A as nt, B as xe, I as O, p as Te, i as K, W as De, cR as it, J as R, ae as P, q as E, a as H, cS as ot, z as st, S as ke, u as Ae, a0 as at, aG as Se, T as ne, cO as lt, Y as ie, v as G, ah as rt, aF as dt, aC as we, l as le, cg as Ee, ch as ze, x as ve, n as ct, ax as $e, ci as ut, cT as ue, cU as mt, bn as pt, ak as Re, cj as ht, a9 as Oe, cV as ft, cW as gt, aL as He, r as yt, aE as Ce, aB as Ue, cX as vt, cY as Ct, cZ as bt, aA as kt, a8 as wt, c_ as _t, c$ as xt, d0 as Tt, C as qe, d1 as Dt, d2 as St, d3 as $t, cl as It, d4 as Lt, d5 as Bt, b0 as Ft, d6 as Vt, d7 as Mt } from "./main-BnJTDeKH.js";
5
5
  /* empty css */
6
- import { g as Pt, l as At, _ as Et, a as zt, D as Rt } from "./DocumentLayout-BLeVh3wu.js";
7
- import { F as Ge, d as Ot } from "./tippy.esm-D8I3Noyw.js";
8
- import { m as oe, c as $e, u as Ne, i as Ut } from "./mapFormMixin-DcTZ2NvY.js";
9
- import "./helpers-CUo71XPG.js";
10
- import { a as Ht } from "./ClientAutocomplete-DS08QQ5C.js";
11
- import { _ as qt } from "./Sortable.vue_vue_type_script_setup_true_lang-CcTjzIyK.js";
12
- import { C as Gt, _ as We, a as X, I as ee, s as Nt } from "./index-DCq6gjGI.js";
13
- import { _ as _e } from "./CFormField.vue_vue_type_script_setup_true_lang-CSMB_HdZ.js";
14
- import { S as Wt } from "./SmartList-B2ZpLA8V.js";
15
- import { u as je } from "./index-FsgsKPqg.js";
16
- import { r as Fe, a as jt } from "./index-CFm8CNEc.js";
17
- import { o as Zt, r as Kt } from "./omit-Bq20xrhI.js";
18
- import { s as N } from "./formDrawerState-Cf5itKVM.js";
19
- import { s as Qt } from "./dom-DOcGU3-g.js";
20
- import { S as Yt } from "./SendForm-C-VTNpve.js";
21
- import "./template-CDxtqtv6.js";
22
- import { u as Jt } from "./validation-ERFxig5z.js";
23
- import { C as Xt } from "./CCallout-DCvCm65V.js";
24
- import { C as en } from "./CSkeleton-DRbFIBZS.js";
25
- import { B as tn } from "./BlockMedia-najJzMYF.js";
26
- const nn = {
6
+ import { g as Pt, l as At, _ as Et, a as zt, D as Rt } from "./DocumentLayout-DdXflWEb.js";
7
+ import { F as Ge, d as Ot } from "./tippy.esm-Bu14Lq2S.js";
8
+ import { m as oe, c as Ie, u as Ne, i as Ht } from "./mapFormMixin-sXjgYtfb.js";
9
+ import "./helpers-B1vYJYc-.js";
10
+ import { a as Ut } from "./ClientAutocomplete-Ci08U3Eg.js";
11
+ import { _ as qt } from "./Sortable.vue_vue_type_script_setup_true_lang-D22AqpXY.js";
12
+ import { _ as _e } from "./CFormField.vue_vue_type_script_setup_true_lang-B0HHxy2B.js";
13
+ import { S as Gt } from "./SmartList-mO6hykju.js";
14
+ import { u as We } from "./index-DnMhYLAz.js";
15
+ import { r as Le, a as Nt } from "./index-CXYvBw0i.js";
16
+ import { o as Wt, r as jt } from "./omit-DQlOTuQS.js";
17
+ import { _ as je, a as ee, I as te, u as Zt } from "./index-DK3w2fdd.js";
18
+ import { s as N } from "./formDrawerState-DlaQS_ZT.js";
19
+ import { s as Kt } from "./dom-B_lSczxY.js";
20
+ import { S as Qt } from "./SendForm-DWiNVIs2.js";
21
+ import "./template-dbF0t2om.js";
22
+ import { u as Yt } from "./validation-D_KP2hMr.js";
23
+ import { C as Jt } from "./CCallout-BbBdzwkb.js";
24
+ import { C as Xt } from "./CSkeleton-Ro7hmy5_.js";
25
+ import { B as en } from "./BlockMedia-BcvfBi4G.js";
26
+ const tn = {
27
27
  name: "DocumentPostSendStep",
28
28
  mixins: [Q],
29
29
  i18nOptions: {
@@ -67,9 +67,9 @@ const nn = {
67
67
  },
68
68
  methods: {
69
69
  ...Z({
70
- updateDocument: P.DO_UPDATE_DOCUMENT2,
71
- answerDocument: P.ANSWER_OWN_DOCUMENT2,
72
- sendDocument: P.DO_SEND_DOCUMENT2
70
+ updateDocument: A.DO_UPDATE_DOCUMENT2,
71
+ answerDocument: A.ANSWER_OWN_DOCUMENT2,
72
+ sendDocument: A.DO_SEND_DOCUMENT2
73
73
  }),
74
74
  async handleDocumentLinks() {
75
75
  const { id: e } = this.document || {}, t = ye(this.document), n = !t.sms && !t.email;
@@ -136,12 +136,12 @@ const nn = {
136
136
  this.onCloseFunc && this.onCloseFunc();
137
137
  }
138
138
  }
139
- }, on = { class: "font-inter root" }, sn = { class: "container" }, an = { class: "icon-wrapper" }, ln = ["textContent"];
140
- function rn(e, t, n, s, i, o) {
141
- const r = u("CIcon"), g = u("CButton");
142
- return l(), p("div", on, [
143
- a("div", sn, [
144
- a("div", an, [
139
+ }, nn = { class: "font-inter root" }, on = { class: "container" }, sn = { class: "icon-wrapper" }, an = ["textContent"];
140
+ function ln(e, t, n, s, i, o) {
141
+ const r = m("CIcon"), g = m("CButton");
142
+ return l(), p("div", nn, [
143
+ a("div", on, [
144
+ a("div", sn, [
145
145
  c(r, {
146
146
  size: 20,
147
147
  type: "email"
@@ -150,14 +150,14 @@ function rn(e, t, n, s, i, o) {
150
150
  a("div", {
151
151
  class: "title",
152
152
  textContent: d(e.$t("title"))
153
- }, null, 8, ln),
153
+ }, null, 8, an),
154
154
  t[0] || (t[0] = a("div", { class: "divider" }, null, -1)),
155
155
  c(g, {
156
156
  type: "secondary",
157
157
  class: "close-button",
158
158
  onClick: o.close
159
159
  }, {
160
- default: m(() => [
160
+ default: u(() => [
161
161
  x(d(e.$t("_common:close")), 1)
162
162
  ]),
163
163
  _: 1
@@ -165,7 +165,7 @@ function rn(e, t, n, s, i, o) {
165
165
  ])
166
166
  ]);
167
167
  }
168
- const dn = /* @__PURE__ */ F(nn, [["render", rn], ["__scopeId", "data-v-baaee379"]]), cn = {
168
+ const rn = /* @__PURE__ */ L(tn, [["render", ln], ["__scopeId", "data-v-baaee379"]]), dn = {
169
169
  name: "Drawer",
170
170
  props: {
171
171
  modelValue: {
@@ -209,10 +209,10 @@ const dn = /* @__PURE__ */ F(nn, [["render", rn], ["__scopeId", "data-v-baaee379
209
209
  }
210
210
  }
211
211
  };
212
- function un(e, t, n, s, i, o) {
212
+ function cn(e, t, n, s, i, o) {
213
213
  return l(), p("div", null, [
214
- c(ne, { name: "fade" }, {
215
- default: m(() => [
214
+ c(J, { name: "fade" }, {
215
+ default: u(() => [
216
216
  !n.hideOverlay && n.modelValue ? (l(), p("div", {
217
217
  key: 0,
218
218
  style: z({
@@ -223,13 +223,13 @@ function un(e, t, n, s, i, o) {
223
223
  ]),
224
224
  _: 1
225
225
  }),
226
- c(ne, {
226
+ c(J, {
227
227
  name: `slide-${n.placement}`
228
228
  }, {
229
- default: m(() => [
229
+ default: u(() => [
230
230
  n.modelValue ? (l(), p("div", {
231
231
  key: 0,
232
- class: B([[n.placement], "d-content"]),
232
+ class: F([[n.placement], "d-content"]),
233
233
  style: z({
234
234
  zIndex: n.zIndex
235
235
  }),
@@ -246,7 +246,7 @@ function un(e, t, n, s, i, o) {
246
246
  }),
247
247
  class: "d-content-slot"
248
248
  }, [
249
- A(e.$slots, "default", {}, void 0, !0)
249
+ M(e.$slots, "default", {}, void 0, !0)
250
250
  ], 4)
251
251
  ], 6)) : C("", !0)
252
252
  ]),
@@ -254,10 +254,10 @@ function un(e, t, n, s, i, o) {
254
254
  }, 8, ["name"])
255
255
  ]);
256
256
  }
257
- const Ze = /* @__PURE__ */ F(cn, [["render", un], ["__scopeId", "data-v-f20cb0cf"]]), mn = {
257
+ const Ze = /* @__PURE__ */ L(dn, [["render", cn], ["__scopeId", "data-v-f20cb0cf"]]), un = {
258
258
  name: "DocumentDrawer",
259
259
  components: {
260
- simplebar: J,
260
+ simplebar: X,
261
261
  Drawer: Ze
262
262
  },
263
263
  props: {
@@ -280,13 +280,13 @@ const Ze = /* @__PURE__ */ F(cn, [["render", un], ["__scopeId", "data-v-f20cb0cf
280
280
  }
281
281
  },
282
282
  emits: ["update:open"]
283
- }, pn = { style: { height: "100%", "z-index": "110" } }, hn = { style: { height: "100%", overflow: "auto" } };
284
- function fn(e, t, n, s, i, o) {
285
- return l(), b(ne, {
283
+ }, mn = { style: { height: "100%", "z-index": "110" } }, pn = { style: { height: "100%", overflow: "auto" } };
284
+ function hn(e, t, n, s, i, o) {
285
+ return l(), b(J, {
286
286
  name: n.fixed ? void 0 : "grow-anim",
287
287
  mode: "out-in"
288
288
  }, {
289
- default: m(() => [
289
+ default: u(() => [
290
290
  n.open ? (l(), b(W(n.fixed ? "drawer" : "div"), be({ key: 0 }, e.$props, {
291
291
  ref: "drawer",
292
292
  class: [{
@@ -299,9 +299,9 @@ function fn(e, t, n, s, i, o) {
299
299
  "box-shadow": "0px -1em 2em 0.2em rgba(0, 0, 0, 0.2)",
300
300
  "onUpdate:modelValue": t[0] || (t[0] = (r) => n.fixed ? e.$emit("update:open", r) : null)
301
301
  }), {
302
- default: m(() => [
303
- a("div", pn, [
304
- a("div", hn, [
302
+ default: u(() => [
303
+ a("div", mn, [
304
+ a("div", pn, [
305
305
  a("div", {
306
306
  style: z(
307
307
  n.fixed && {
@@ -312,7 +312,7 @@ function fn(e, t, n, s, i, o) {
312
312
  }
313
313
  )
314
314
  }, [
315
- A(e.$slots, "default", {}, void 0, !0)
315
+ M(e.$slots, "default", {}, void 0, !0)
316
316
  ], 4)
317
317
  ])
318
318
  ])
@@ -323,25 +323,25 @@ function fn(e, t, n, s, i, o) {
323
323
  _: 3
324
324
  }, 8, ["name"]);
325
325
  }
326
- const gn = /* @__PURE__ */ F(mn, [["render", fn], ["__scopeId", "data-v-2bc51f6f"]]), yn = {
326
+ const fn = /* @__PURE__ */ L(un, [["render", hn], ["__scopeId", "data-v-2bc51f6f"]]), gn = {
327
327
  name: "DocumentFormNav"
328
- }, vn = { class: "DocumentFormNav fixed left-0 right-0 top-0 z-[98] bg-gray-200 px-2 py-2 shadow-lg md:px-6" }, Cn = { class: "flex" }, bn = { class: "inline-flex flex-grow items-center" }, kn = { class: "inline-flex flex-auto items-center justify-center" }, wn = { class: "inline-flex flex-grow items-center justify-end" };
329
- function _n(e, t, n, s, i, o) {
330
- return l(), p("div", vn, [
331
- a("div", Cn, [
328
+ }, yn = { class: "DocumentFormNav fixed left-0 right-0 top-0 z-[98] bg-gray-200 px-2 py-2 shadow-lg md:px-6" }, vn = { class: "flex" }, Cn = { class: "inline-flex flex-grow items-center" }, bn = { class: "inline-flex flex-auto items-center justify-center" }, kn = { class: "inline-flex flex-grow items-center justify-end" };
329
+ function wn(e, t, n, s, i, o) {
330
+ return l(), p("div", yn, [
331
+ a("div", vn, [
332
+ a("div", Cn, [
333
+ M(e.$slots, "left")
334
+ ]),
332
335
  a("div", bn, [
333
- A(e.$slots, "left")
336
+ M(e.$slots, "center")
334
337
  ]),
335
338
  a("div", kn, [
336
- A(e.$slots, "center")
337
- ]),
338
- a("div", wn, [
339
- A(e.$slots, "right")
339
+ M(e.$slots, "right")
340
340
  ])
341
341
  ])
342
342
  ]);
343
343
  }
344
- const xn = /* @__PURE__ */ F(yn, [["render", _n]]), Tn = {
344
+ const _n = /* @__PURE__ */ L(gn, [["render", wn]]), xn = {
345
345
  name: "DocumentFormViewRadio",
346
346
  props: {
347
347
  modelValue: {
@@ -354,12 +354,12 @@ const xn = /* @__PURE__ */ F(yn, [["render", _n]]), Tn = {
354
354
  }
355
355
  },
356
356
  emits: ["update:modelValue"]
357
- }, Dn = { class: "inline-flex h-9 cursor-pointer space-x-2 rounded-md bg-gray-300 p-1 text-sm text-white" };
358
- function Sn(e, t, n, s, i, o) {
359
- const r = u("CIcon");
360
- return l(), p("div", Dn, [
357
+ }, Tn = { class: "inline-flex h-9 cursor-pointer space-x-2 rounded-md bg-gray-300 p-1 text-sm text-white" };
358
+ function Dn(e, t, n, s, i, o) {
359
+ const r = m("CIcon");
360
+ return l(), p("div", Tn, [
361
361
  a("div", {
362
- class: B([{
362
+ class: F([{
363
363
  "m-0 bg-white px-3 py-[1em] text-zinc-900 drop-shadow-md": n.modelValue === "edit"
364
364
  }, "inline-flex select-none items-center justify-center rounded-md px-1 font-semibold leading-none text-gray-700 transition duration-150 ease-linear"]),
365
365
  onClick: t[0] || (t[0] = (g) => n.modelValue === "preview" ? e.$emit("update:modelValue", "edit") : null)
@@ -368,12 +368,12 @@ function Sn(e, t, n, s, i, o) {
368
368
  key: 0,
369
369
  type: "edit",
370
370
  size: "20"
371
- })) : (l(), p(I, { key: 1 }, [
371
+ })) : (l(), p($, { key: 1 }, [
372
372
  x(d(e.$t("edit")), 1)
373
373
  ], 64))
374
374
  ], 2),
375
375
  a("div", {
376
- class: B([{
376
+ class: F([{
377
377
  "m-0 bg-white px-3 py-[1em] text-zinc-900 drop-shadow-md": n.modelValue === "preview"
378
378
  }, "inline-flex select-none items-center justify-center rounded-md px-1 font-semibold leading-none text-gray-700 transition duration-150 ease-linear"]),
379
379
  "data-onboarding": "preview-button",
@@ -383,13 +383,13 @@ function Sn(e, t, n, s, i, o) {
383
383
  key: 0,
384
384
  type: "eye",
385
385
  size: "20"
386
- })) : (l(), p(I, { key: 1 }, [
386
+ })) : (l(), p($, { key: 1 }, [
387
387
  x(d(e.$t("preview")), 1)
388
388
  ], 64))
389
389
  ], 2)
390
390
  ]);
391
391
  }
392
- const In = /* @__PURE__ */ F(Tn, [["render", Sn]]), $n = {
392
+ const Sn = /* @__PURE__ */ L(xn, [["render", Dn]]), $n = {
393
393
  name: "BlockControlButtons",
394
394
  i18nOptions: {
395
395
  namespace: "blockControlButtons",
@@ -421,16 +421,16 @@ const In = /* @__PURE__ */ F(Tn, [["render", Sn]]), $n = {
421
421
  return typeof this.isVisible == "boolean" && !this.isVisible;
422
422
  }
423
423
  }
424
- }, Fn = { class: "control-root flex gap-2" }, Ln = {
424
+ }, In = { class: "control-root flex gap-2" }, Ln = {
425
425
  key: 0,
426
426
  class: "px-1.5 text-xs text-gray-600"
427
427
  }, Bn = {
428
428
  key: 1,
429
429
  class: "flex flex-col gap-1.5"
430
- }, Vn = { class: "control-direction" };
431
- function Mn(e, t, n, s, i, o) {
432
- const r = u("CIcon");
433
- return l(), p("div", Fn, [
430
+ }, Fn = { class: "control-direction" };
431
+ function Vn(e, t, n, s, i, o) {
432
+ const r = m("CIcon");
433
+ return l(), p("div", In, [
434
434
  o.canToggleVisibility ? (l(), p("div", {
435
435
  key: 0,
436
436
  class: "control-button",
@@ -440,12 +440,12 @@ function Mn(e, t, n, s, i, o) {
440
440
  c(r, {
441
441
  type: n.isVisible ? "eye" : "eye-off",
442
442
  size: "14",
443
- class: B({ "mr-1": !n.isVisible })
443
+ class: F({ "mr-1": !n.isVisible })
444
444
  }, null, 8, ["type", "class"])
445
445
  ])) : C("", !0),
446
- A(e.$slots, "default", {}, void 0, !0),
446
+ M(e.$slots, "default", {}, void 0, !0),
447
447
  !o.isHidden && n.isMovable ? (l(), p("div", Bn, [
448
- a("div", Vn, [
448
+ a("div", Fn, [
449
449
  a("div", {
450
450
  class: "control-button",
451
451
  onClick: t[1] || (t[1] = (g) => e.$emit("move", "up"))
@@ -477,7 +477,7 @@ function Mn(e, t, n, s, i, o) {
477
477
  ])) : C("", !0)
478
478
  ]);
479
479
  }
480
- const Pn = /* @__PURE__ */ F($n, [["render", Mn], ["__scopeId", "data-v-5ae455ee"]]), An = ["inert"], En = /* @__PURE__ */ de({
480
+ const Mn = /* @__PURE__ */ L($n, [["render", Vn], ["__scopeId", "data-v-5ae455ee"]]), Pn = ["inert"], An = /* @__PURE__ */ de({
481
481
  __name: "DynamicBlock",
482
482
  props: {
483
483
  isDragging: { type: Boolean, default: !1 },
@@ -490,15 +490,15 @@ const Pn = /* @__PURE__ */ F($n, [["render", Mn], ["__scopeId", "data-v-5ae455ee
490
490
  },
491
491
  emits: ["edit", "toggle-visible", "move", "remove"],
492
492
  setup(e, { emit: t }) {
493
- const n = t, { uid: s } = nt(), i = xe(!1), o = xe(() => n("edit", s)), r = U(() => typeof e.isVisible == "boolean" && !e.isVisible), g = U(() => e.isEditView ? !e.isDragging && i.value ? !0 : r.value : !1), h = U(() => r.value ? "h-16 overflow-hidden after:bg-gradient-to-b after:from-white/50 after:to-white relative after:absolute after:content-[''] after:inset-0 after:z-[1]" : ""), y = (w) => {
493
+ const n = t, { uid: s } = nt(), i = xe(!1), o = xe(() => n("edit", s)), r = O(() => typeof e.isVisible == "boolean" && !e.isVisible), g = O(() => e.isEditView ? !e.isDragging && i.value ? !0 : r.value : !1), h = O(() => r.value ? "h-16 overflow-hidden after:bg-gradient-to-b after:from-white/50 after:to-white relative after:absolute after:content-[''] after:inset-0 after:z-[1]" : ""), y = (w) => {
494
494
  typeof w == "function" && (o.value = w);
495
495
  };
496
496
  return Te("sectionTopNode", s), Te("setOpenDrawer", y), (w, k) => {
497
- const D = u("CButton"), T = u("Animation");
497
+ const D = m("CButton"), T = m("Animation");
498
498
  return l(), b(T, { class: "w-full" }, {
499
- default: m(() => [
499
+ default: u(() => [
500
500
  a("div", {
501
- class: B([[
501
+ class: F([[
502
502
  {
503
503
  "is-edit-view": w.isEditView,
504
504
  "is-hovering": i.value,
@@ -516,12 +516,12 @@ const Pn = /* @__PURE__ */ F($n, [["render", Mn], ["__scopeId", "data-v-5ae455ee
516
516
  onMouseleavePassive: k[4] || (k[4] = (v) => i.value = !1)
517
517
  }, [
518
518
  a("div", {
519
- class: B(["block-container", { "spacing-snug": r.value }]),
519
+ class: F(["block-container", { "spacing-snug": r.value }]),
520
520
  inert: r.value
521
521
  }, [
522
- A(w.$slots, "default", {}, void 0, !0)
523
- ], 10, An),
524
- g.value ? (l(), b(Pn, {
522
+ M(w.$slots, "default", {}, void 0, !0)
523
+ ], 10, Pn),
524
+ g.value ? (l(), b(Mn, {
525
525
  key: 0,
526
526
  class: "control-root z-10",
527
527
  "is-movable": w.canMove,
@@ -530,7 +530,7 @@ const Pn = /* @__PURE__ */ F($n, [["render", Mn], ["__scopeId", "data-v-5ae455ee
530
530
  onMove: k[1] || (k[1] = (v) => n("move", v)),
531
531
  onRemove: k[2] || (k[2] = (v) => n("remove"))
532
532
  }, {
533
- default: m(() => [
533
+ default: u(() => [
534
534
  w.showEditButton ? (l(), b(D, {
535
535
  key: 0,
536
536
  round: "",
@@ -540,7 +540,7 @@ const Pn = /* @__PURE__ */ F($n, [["render", Mn], ["__scopeId", "data-v-5ae455ee
540
540
  class: "document-block__edit-button",
541
541
  onClick: o.value
542
542
  }, {
543
- default: m(() => [
543
+ default: u(() => [
544
544
  x(d(w.$t("_common:edit").capitalize()), 1)
545
545
  ]),
546
546
  _: 1
@@ -554,7 +554,7 @@ const Pn = /* @__PURE__ */ F($n, [["render", Mn], ["__scopeId", "data-v-5ae455ee
554
554
  });
555
555
  };
556
556
  }
557
- }), zn = /* @__PURE__ */ F(En, [["__scopeId", "data-v-37c2f0a6"]]), Rn = {
557
+ }), En = /* @__PURE__ */ L(An, [["__scopeId", "data-v-37c2f0a6"]]), zn = {
558
558
  name: "LogoBanner",
559
559
  props: {
560
560
  position: {
@@ -571,10 +571,10 @@ const Pn = /* @__PURE__ */ F($n, [["render", Mn], ["__scopeId", "data-v-5ae455ee
571
571
  return `/img/${e}/icons/apple-touch-icon-60x60.png`;
572
572
  }
573
573
  }
574
- }, On = ["href"], Un = { class: "mr-2 h-5 w-5 overflow-hidden rounded bg-white" }, Hn = ["src", "alt"], qn = { class: "text-xs font-medium text-white" };
575
- function Gn(e, t, n, s, i, o) {
574
+ }, Rn = ["href"], On = { class: "mr-2 h-5 w-5 overflow-hidden rounded bg-white" }, Hn = ["src", "alt"], Un = { class: "text-xs font-medium text-white" };
575
+ function qn(e, t, n, s, i, o) {
576
576
  return l(), p("div", {
577
- class: B([n.position, "pointer-events-none bottom-0 left-0 right-0 z-50 flex justify-end px-[10px] pb-[10px]"])
577
+ class: F([n.position, "pointer-events-none bottom-0 left-0 right-0 z-50 flex justify-end px-[10px] pb-[10px]"])
578
578
  }, [
579
579
  a("a", {
580
580
  class: "pointer-events-auto inline-flex h-8 items-center rounded-md border border-white/30 bg-black/80 pl-1.5 pr-2",
@@ -583,18 +583,18 @@ function Gn(e, t, n, s, i, o) {
583
583
  )}?utm_source=document&utm_medium=logo-banner`,
584
584
  target: "_blank"
585
585
  }, [
586
- a("div", Un, [
586
+ a("div", On, [
587
587
  a("img", {
588
588
  src: o.logoUrl,
589
589
  alt: e.$t("brand.name"),
590
590
  class: "h-full w-full"
591
591
  }, null, 8, Hn)
592
592
  ]),
593
- a("div", qn, " Made in " + d(e.$t("brand.name")), 1)
594
- ], 8, On)
593
+ a("div", Un, " Made in " + d(e.$t("brand.name")), 1)
594
+ ], 8, Rn)
595
595
  ], 2);
596
596
  }
597
- const Nn = /* @__PURE__ */ F(Rn, [["render", Gn]]), Wn = { class: "relative h-full w-full" }, jn = { class: "mb-4 text-xl font-bold" }, Ke = /* @__PURE__ */ de({
597
+ const Gn = /* @__PURE__ */ L(zn, [["render", qn]]), Nn = { class: "relative h-full w-full" }, Wn = { class: "mb-4 text-xl font-bold" }, Ke = /* @__PURE__ */ de({
598
598
  __name: "DragWindow",
599
599
  props: {
600
600
  offset: {},
@@ -607,16 +607,16 @@ const Nn = /* @__PURE__ */ F(Rn, [["render", Gn]]), Wn = { class: "relative h-fu
607
607
  initialValue: { x: e.offset + 15, y: 70 }
608
608
  });
609
609
  return (r, g) => {
610
- const h = u("CButton"), y = u("portal");
610
+ const h = m("CButton"), y = m("portal");
611
611
  return l(), b(y, { to: "modal" }, {
612
- default: m(() => [
612
+ default: u(() => [
613
613
  a("div", {
614
614
  ref_key: "el",
615
615
  ref: s,
616
- style: z(O(o)),
616
+ style: z(R(o)),
617
617
  class: "popup fixed z-[999] min-h-[400px] w-[280px] rounded-lg bg-white p-[1em] pb-[3em] text-sm shadow-xl"
618
618
  }, [
619
- a("div", Wn, [
619
+ a("div", Nn, [
620
620
  c(h, {
621
621
  icon: "x",
622
622
  size: "small",
@@ -636,8 +636,8 @@ const Nn = /* @__PURE__ */ F(Rn, [["render", Gn]]), Wn = { class: "relative h-fu
636
636
  circle: "",
637
637
  class: "absolute right-9 top-0 cursor-grab"
638
638
  }, null, 512),
639
- a("div", jn, d(r.title), 1),
640
- A(r.$slots, "default")
639
+ a("div", Wn, d(r.title), 1),
640
+ M(r.$slots, "default")
641
641
  ])
642
642
  ], 4)
643
643
  ]),
@@ -645,7 +645,7 @@ const Nn = /* @__PURE__ */ F(Rn, [["render", Gn]]), Wn = { class: "relative h-fu
645
645
  });
646
646
  };
647
647
  }
648
- }), Zn = /([\d+.]*)(.*)/, Y = (e) => (e || "").match(Zn), Kn = {
648
+ }), jn = /([\d+.]*)(.*)/, Y = (e) => (e || "").match(jn), Zn = {
649
649
  i18nOptions: {
650
650
  namespaces: "common",
651
651
  keyPrefix: "designLabels"
@@ -720,7 +720,7 @@ const Nn = /* @__PURE__ */ F(Rn, [["render", Gn]]), Wn = { class: "relative h-fu
720
720
  // Dynamic depending on font family
721
721
  definitionOptions: {
722
722
  fontFamily: ({ key: e, value: t }) => {
723
- const n = M(this.css, `${this.activeItem.selector}.fontWeight`) || M(this.activeItem, "style.fontWeight") || "400";
723
+ const n = P(this.css, `${this.activeItem.selector}.fontWeight`) || P(this.activeItem, "style.fontWeight") || "400";
724
724
  return {
725
725
  label: this.$t("font"),
726
726
  inputs: [
@@ -1188,7 +1188,7 @@ const Nn = /* @__PURE__ */ F(Rn, [["render", Gn]]), Wn = { class: "relative h-fu
1188
1188
  },
1189
1189
  activeItemOptions() {
1190
1190
  if (!this.activeItem) return [];
1191
- const { selector: e, category: t, style: n = {} } = this.activeItem, s = M(this.css, e) || {}, i = (o) => s[o] || n[o];
1191
+ const { selector: e, category: t, style: n = {} } = this.activeItem, s = P(this.css, e) || {}, i = (o) => s[o] || n[o];
1192
1192
  return this[t].map(({ option: o, key: r }, g) => {
1193
1193
  const h = this.definitionOptions[o], y = Array.isArray(r) ? r.map((w) => ({ key: w, value: i(w) })) : { key: r, value: i(r) };
1194
1194
  return h(y, g);
@@ -1197,7 +1197,7 @@ const Nn = /* @__PURE__ */ F(Rn, [["render", Gn]]), Wn = { class: "relative h-fu
1197
1197
  },
1198
1198
  watch: {
1199
1199
  async activeItem(e) {
1200
- const t = M(e, "style.fontFamily");
1200
+ const t = P(e, "style.fontFamily");
1201
1201
  t && (this.fontWeightOptions = await Pt(t));
1202
1202
  }
1203
1203
  },
@@ -1208,13 +1208,13 @@ const Nn = /* @__PURE__ */ F(Rn, [["render", Gn]]), Wn = { class: "relative h-fu
1208
1208
  n[e] = t || "", this.css = { ...this.css, [this.activeItem.selector]: n };
1209
1209
  }
1210
1210
  }
1211
- }, Qn = { style: { padding: "calc(0.5 * var(--rem))", position: "relative" } }, Yn = { style: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, Jn = ["onClick"], Xn = { style: { color: "hsl(0, 0%, 45%)", "font-weight": "500", "font-size": "13px", "padding-top": "5px" } }, ei = { style: { padding: "calc(0.75 * var(--rem))" } }, ti = { style: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, ni = ["onClick"], ii = { style: { "font-size": "1.075em", "font-weight": "500" } };
1212
- function oi(e, t, n, s, i, o) {
1213
- const r = u("FormInputRow"), g = u("DragWindow");
1211
+ }, Kn = { style: { padding: "calc(0.5 * var(--rem))", position: "relative" } }, Qn = { style: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, Yn = ["onClick"], Jn = { style: { color: "hsl(0, 0%, 45%)", "font-weight": "500", "font-size": "13px", "padding-top": "5px" } }, Xn = { style: { padding: "calc(0.75 * var(--rem))" } }, ei = { style: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, ti = ["onClick"], ni = { style: { "font-size": "1.075em", "font-weight": "500" } };
1212
+ function ii(e, t, n, s, i, o) {
1213
+ const r = m("FormInputRow"), g = m("DragWindow");
1214
1214
  return l(), p("div", null, [
1215
- a("div", Qn, [
1216
- a("div", Yn, d(e.$t("typography")), 1),
1217
- (l(!0), p(I, null, E(o.typography, (h) => (l(), p("div", {
1215
+ a("div", Kn, [
1216
+ a("div", Qn, d(e.$t("typography")), 1),
1217
+ (l(!0), p($, null, E(o.typography, (h) => (l(), p("div", {
1218
1218
  key: h.label,
1219
1219
  class: "list-option",
1220
1220
  onClick: (y) => i.activeItem = h
@@ -1228,20 +1228,20 @@ function oi(e, t, n, s, i, o) {
1228
1228
  lineHeight: 1
1229
1229
  })
1230
1230
  }, d(h.label), 5),
1231
- a("div", Xn, d(h.style.fontFamily) + " " + d(h.style.fontSize), 1)
1232
- ], 8, Jn))), 128))
1231
+ a("div", Jn, d(h.style.fontFamily) + " " + d(h.style.fontSize), 1)
1232
+ ], 8, Yn))), 128))
1233
1233
  ]),
1234
1234
  t[2] || (t[2] = a("div", { style: { height: "1px", "background-color": "hsl(0, 0%, 88%)", margin: "calc(0.5 * var(--rem)) calc(1 * var(--rem))" } }, null, -1)),
1235
- a("div", ei, [
1236
- a("div", ti, d(e.$t("section_other")), 1),
1237
- (l(!0), p(I, null, E(i.sections, (h) => (l(), p("div", {
1235
+ a("div", Xn, [
1236
+ a("div", ei, d(e.$t("section_other")), 1),
1237
+ (l(!0), p($, null, E(i.sections, (h) => (l(), p("div", {
1238
1238
  key: h.label,
1239
1239
  class: "list-option",
1240
1240
  onClick: (y) => i.activeItem = h
1241
1241
  }, [
1242
- a("div", ii, d(h.label), 1),
1242
+ a("div", ni, d(h.label), 1),
1243
1243
  t[1] || (t[1] = a("div", { style: { color: "hsl(0, 0%, 45%)", "font-weight": "500", "font-size": "13px", "padding-top": "5px" } }, " #000000 ", -1))
1244
- ], 8, ni))), 128))
1244
+ ], 8, ti))), 128))
1245
1245
  ]),
1246
1246
  i.activeItem ? (l(), b(g, {
1247
1247
  key: 0,
@@ -1249,8 +1249,8 @@ function oi(e, t, n, s, i, o) {
1249
1249
  offset: n.offset,
1250
1250
  onClose: t[0] || (t[0] = () => i.activeItem = null)
1251
1251
  }, {
1252
- default: m(() => [
1253
- (l(!0), p(I, null, E(o.activeItemOptions, (h, y) => (l(), b(r, {
1252
+ default: u(() => [
1253
+ (l(!0), p($, null, E(o.activeItemOptions, (h, y) => (l(), b(r, {
1254
1254
  key: y,
1255
1255
  label: h.label,
1256
1256
  inputs: h.inputs
@@ -1260,7 +1260,7 @@ function oi(e, t, n, s, i, o) {
1260
1260
  }, 8, ["title", "offset"])) : C("", !0)
1261
1261
  ]);
1262
1262
  }
1263
- const si = /* @__PURE__ */ F(Kn, [["render", oi], ["__scopeId", "data-v-647176fc"]]), ai = {
1263
+ const oi = /* @__PURE__ */ L(Zn, [["render", ii], ["__scopeId", "data-v-647176fc"]]), si = {
1264
1264
  i18nOptions: {
1265
1265
  namespaces: "DocSettings",
1266
1266
  messages: {
@@ -1376,7 +1376,7 @@ const si = /* @__PURE__ */ F(Kn, [["render", oi], ["__scopeId", "data-v-647176fc
1376
1376
  };
1377
1377
  },
1378
1378
  computed: {
1379
- ...R({
1379
+ ...H({
1380
1380
  members: "companyUsers/all",
1381
1381
  getMember: "companyUsers/byId",
1382
1382
  isLoadingMembers: "companyUsers/isFetching"
@@ -1574,7 +1574,7 @@ const si = /* @__PURE__ */ F(Kn, [["render", oi], ["__scopeId", "data-v-647176fc
1574
1574
  },
1575
1575
  methods: {
1576
1576
  ...Z({
1577
- loadUsers: P.LOAD_COMPANY_USERS
1577
+ loadUsers: A.LOAD_COMPANY_USERS
1578
1578
  }),
1579
1579
  update(e, t) {
1580
1580
  this[e] = t;
@@ -1592,14 +1592,14 @@ const si = /* @__PURE__ */ F(Kn, [["render", oi], ["__scopeId", "data-v-647176fc
1592
1592
  n.push({ name: e, type: "category" }), this.tags = n, this.series = e;
1593
1593
  }
1594
1594
  }
1595
- }, li = { style: { height: "100%", padding: "1em" } }, ri = {
1595
+ }, ai = { style: { height: "100%", padding: "1em" } }, li = {
1596
1596
  key: 0,
1597
1597
  class: "divider"
1598
1598
  };
1599
- function di(e, t, n, s, i, o) {
1600
- const r = u("FormInputRow"), g = u("DragWindow");
1601
- return l(), p("div", li, [
1602
- (l(!0), p(I, null, E(o.options, (h, y) => (l(), b(r, {
1599
+ function ri(e, t, n, s, i, o) {
1600
+ const r = m("FormInputRow"), g = m("DragWindow");
1601
+ return l(), p("div", ai, [
1602
+ (l(!0), p($, null, E(o.options, (h, y) => (l(), b(r, {
1603
1603
  key: y,
1604
1604
  label: h.label,
1605
1605
  "info-tooltip": h.infoTooltip,
@@ -1611,9 +1611,9 @@ function di(e, t, n, s, i, o) {
1611
1611
  title: e.$t("pricing.title"),
1612
1612
  onClose: t[0] || (t[0] = (h) => i.showDragWindow = !1)
1613
1613
  }, {
1614
- default: m(() => [
1615
- (l(!0), p(I, null, E(o.priceOptions, (h, y) => (l(), p(I, { key: y }, [
1616
- h.type === "divider" ? (l(), p("div", ri)) : (l(), b(r, {
1614
+ default: u(() => [
1615
+ (l(!0), p($, null, E(o.priceOptions, (h, y) => (l(), p($, { key: y }, [
1616
+ h.type === "divider" ? (l(), p("div", li)) : (l(), b(r, {
1617
1617
  key: y,
1618
1618
  label: h.label,
1619
1619
  "info-tooltip": h.infoTooltip,
@@ -1625,7 +1625,7 @@ function di(e, t, n, s, i, o) {
1625
1625
  }, 8, ["offset", "title"])) : C("", !0)
1626
1626
  ]);
1627
1627
  }
1628
- const ci = /* @__PURE__ */ F(ai, [["render", di], ["__scopeId", "data-v-24d13169"]]), ui = {
1628
+ const di = /* @__PURE__ */ L(si, [["render", ri], ["__scopeId", "data-v-24d13169"]]), ci = {
1629
1629
  i18nOptions: {
1630
1630
  messages: {
1631
1631
  en: {
@@ -1670,7 +1670,7 @@ const ci = /* @__PURE__ */ F(ai, [["render", di], ["__scopeId", "data-v-24d13169
1670
1670
  components: {
1671
1671
  Sortable: qt,
1672
1672
  Spinner: at,
1673
- CAutocomplete: Ht,
1673
+ CAutocomplete: Ut,
1674
1674
  CDropdown: re,
1675
1675
  CDropdownItem: q
1676
1676
  },
@@ -1692,7 +1692,7 @@ const ci = /* @__PURE__ */ F(ai, [["render", di], ["__scopeId", "data-v-24d13169
1692
1692
  };
1693
1693
  },
1694
1694
  computed: {
1695
- ...R({
1695
+ ...H({
1696
1696
  allAuthenticatedCRMs: "settings/allAuthenticatedCRMs"
1697
1697
  }),
1698
1698
  currExternalReferences() {
@@ -1738,7 +1738,7 @@ const ci = /* @__PURE__ */ F(ai, [["render", di], ["__scopeId", "data-v-24d13169
1738
1738
  this.searchResults = [];
1739
1739
  return;
1740
1740
  }
1741
- const { data: n } = await te.search(this.activeCrm, {
1741
+ const { data: n } = await ne.search(this.activeCrm, {
1742
1742
  query: e,
1743
1743
  type: "deal"
1744
1744
  });
@@ -1772,7 +1772,7 @@ const ci = /* @__PURE__ */ F(ai, [["render", di], ["__scopeId", "data-v-24d13169
1772
1772
  (r) => r.service === this.activeCrm && r.type === e
1773
1773
  );
1774
1774
  if (!t) return;
1775
- const { service: n, type: s, typeId: i } = t, { data: o } = await te.getExternalReferenceDetails(
1775
+ const { service: n, type: s, typeId: i } = t, { data: o } = await ne.getExternalReferenceDetails(
1776
1776
  n,
1777
1777
  { type: s, typeId: i }
1778
1778
  );
@@ -1795,7 +1795,7 @@ const ci = /* @__PURE__ */ F(ai, [["render", di], ["__scopeId", "data-v-24d13169
1795
1795
  },
1796
1796
  async suggestClients() {
1797
1797
  var i;
1798
- const { service: e, type: t, typeId: n } = this.currentExternalDeal, { data: s } = await te.suggestClients(e, {
1798
+ const { service: e, type: t, typeId: n } = this.currentExternalDeal, { data: s } = await ne.suggestClients(e, {
1799
1799
  type: t,
1800
1800
  typeId: n
1801
1801
  });
@@ -1829,48 +1829,48 @@ const ci = /* @__PURE__ */ F(ai, [["render", di], ["__scopeId", "data-v-24d13169
1829
1829
  });
1830
1830
  }
1831
1831
  }
1832
- }, mi = { style: { "font-size": "13px", "padding-left": "calc(0.5 * var(--rem))", "padding-right": "calc(0.5 * var(--rem))", "padding-bottom": "calc(4 * var(--rem))" } }, pi = {
1832
+ }, ui = { style: { "font-size": "13px", "padding-left": "calc(0.5 * var(--rem))", "padding-right": "calc(0.5 * var(--rem))", "padding-bottom": "calc(4 * var(--rem))" } }, mi = {
1833
1833
  key: 1,
1834
1834
  style: { "padding-top": "calc(2 * var(--rem))" },
1835
1835
  class: "flex w-full items-center justify-center"
1836
- }, hi = { style: { padding: `0 calc(0.5 * var(--rem)) calc(2 * var(--rem))
1837
- calc(0.5 * var(--rem))` } }, fi = { style: { "font-weight": "500", "font-size": "16px" } }, gi = { key: 0 }, yi = { class: "x-hint" }, vi = { class: "flex w-full" }, Ci = ["textContent"], bi = ["textContent"], ki = { class: "text-gray-600" }, wi = {
1836
+ }, pi = { style: { padding: `0 calc(0.5 * var(--rem)) calc(2 * var(--rem))
1837
+ calc(0.5 * var(--rem))` } }, hi = { style: { "font-weight": "500", "font-size": "16px" } }, fi = { key: 0 }, gi = { class: "x-hint" }, yi = { class: "flex w-full" }, vi = ["textContent"], Ci = ["textContent"], bi = { class: "text-gray-600" }, ki = {
1838
1838
  class: "text-gray-400",
1839
1839
  style: { "font-size": "12px" }
1840
- }, _i = {
1840
+ }, wi = {
1841
1841
  key: 0,
1842
1842
  style: { padding: "0.5em", "border-radius": "3px", "background-color": "hsl(205, 100%, 95%)", border: "1px solid hsl(205, 100%, 78%)" }
1843
- }, xi = {
1843
+ }, _i = {
1844
1844
  key: 0,
1845
1845
  style: { opacity: "0.75", "font-size": "13px" }
1846
- }, Ti = { key: 2 }, Di = ["textContent"], Si = { style: { "line-height": "1.5" } }, Ii = { style: { "font-weight": "500" } }, $i = {
1846
+ }, xi = { key: 2 }, Ti = ["textContent"], Di = { style: { "line-height": "1.5" } }, Si = { style: { "font-weight": "500" } }, $i = {
1847
1847
  class: "text-gray-600",
1848
1848
  style: { "font-size": "14px" }
1849
- }, Fi = { key: 0 }, Li = { style: { padding: `0 calc(0.5 * var(--rem)) calc(1 * var(--rem))
1850
- calc(0.5 * var(--rem))` } }, Bi = { style: { "font-weight": "500" } }, Vi = ["textContent"], Mi = ["onClick"], Pi = ["textContent"], Ai = {
1849
+ }, Ii = { key: 0 }, Li = { style: { padding: `0 calc(0.5 * var(--rem)) calc(1 * var(--rem))
1850
+ calc(0.5 * var(--rem))` } }, Bi = { style: { "font-weight": "500" } }, Fi = ["textContent"], Vi = ["onClick"], Mi = ["textContent"], Pi = {
1851
1851
  class: "text-gray-600",
1852
1852
  style: { "font-size": "12px" }
1853
- }, Ei = {
1853
+ }, Ai = {
1854
1854
  key: 1,
1855
1855
  class: "flex w-full text-gray-600",
1856
1856
  style: { "background-color": "hsl(var(--gray-color-100) / 1)", padding: "5px", "font-size": "12px", "border-radius": "5px", "line-height": "1.35" }
1857
- }, zi = ["textContent"], Ri = {
1857
+ }, Ei = ["textContent"], zi = {
1858
1858
  key: 3,
1859
1859
  class: "flex w-full flex-col items-center justify-center text-center",
1860
1860
  style: { "padding-top": "calc(1 * var(--rem))" }
1861
- }, Oi = { class: "text-gray-600" }, Ui = {
1861
+ }, Ri = { class: "text-gray-600" }, Oi = {
1862
1862
  class: "text-center",
1863
1863
  style: { "padding-top": "calc(1 * var(--rem))" }
1864
1864
  };
1865
1865
  function Hi(e, t, n, s, i, o) {
1866
- const r = u("CButton"), g = u("CDropdownItem"), h = u("CDropdown"), y = u("Spinner"), w = u("CAutocomplete"), k = u("CIcon"), D = u("Sortable"), T = u("router-link"), v = ie("tooltip");
1867
- return l(), p("div", mi, [
1866
+ const r = m("CButton"), g = m("CDropdownItem"), h = m("CDropdown"), y = m("Spinner"), w = m("CAutocomplete"), k = m("CIcon"), D = m("Sortable"), T = m("router-link"), v = ie("tooltip");
1867
+ return l(), p("div", ui, [
1868
1868
  e.allAuthenticatedCRMs.length > 1 ? (l(), b(h, {
1869
1869
  key: 0,
1870
1870
  position: "is-bottom-left",
1871
1871
  style: { position: "absolute", right: "calc(0.5 * var(--rem))", top: "calc(0.5 * var(--rem))" }
1872
1872
  }, {
1873
- trigger: m(() => [
1873
+ trigger: u(() => [
1874
1874
  c(r, {
1875
1875
  size: "small",
1876
1876
  circle: "",
@@ -1879,14 +1879,14 @@ function Hi(e, t, n, s, i, o) {
1879
1879
  icon: "more-vertical"
1880
1880
  })
1881
1881
  ]),
1882
- default: m(() => [
1883
- (l(!0), p(I, null, E(e.allAuthenticatedCRMs, (f) => (l(), b(g, {
1882
+ default: u(() => [
1883
+ (l(!0), p($, null, E(e.allAuthenticatedCRMs, (f) => (l(), b(g, {
1884
1884
  key: f,
1885
1885
  type: i.activeCrm === f ? "primary" : "secondary",
1886
1886
  size: "small",
1887
1887
  onClick: (_) => i.activeCrm = f
1888
1888
  }, {
1889
- default: m(() => [
1889
+ default: u(() => [
1890
1890
  x(d(f.capitalize()), 1)
1891
1891
  ]),
1892
1892
  _: 2
@@ -1894,17 +1894,17 @@ function Hi(e, t, n, s, i, o) {
1894
1894
  ]),
1895
1895
  _: 1
1896
1896
  })) : C("", !0),
1897
- i.isLoading && !i.dealDetails ? (l(), p("div", pi, [
1897
+ i.isLoading && !i.dealDetails ? (l(), p("div", mi, [
1898
1898
  c(y, {
1899
1899
  size: "24",
1900
1900
  color: "grey"
1901
1901
  })
1902
- ])) : i.activeCrm ? (l(), p(I, { key: 2 }, [
1903
- a("div", hi, [
1904
- a("div", fi, d(i.activeCrm.capitalize()), 1),
1905
- i.typeDetails ? (l(), p("div", gi, [
1906
- a("div", yi, [
1907
- a("div", vi, [
1902
+ ])) : i.activeCrm ? (l(), p($, { key: 2 }, [
1903
+ a("div", pi, [
1904
+ a("div", hi, d(i.activeCrm.capitalize()), 1),
1905
+ i.typeDetails ? (l(), p("div", fi, [
1906
+ a("div", gi, [
1907
+ a("div", yi, [
1908
1908
  a("div", {
1909
1909
  textContent: d(
1910
1910
  e.$t("referenceTo", {
@@ -1912,7 +1912,7 @@ function Hi(e, t, n, s, i, o) {
1912
1912
  type: e.$t(`type.${i.typeDetails.type}`)
1913
1913
  })
1914
1914
  )
1915
- }, null, 8, Ci),
1915
+ }, null, 8, vi),
1916
1916
  c(r, {
1917
1917
  icon: "x",
1918
1918
  size: "small",
@@ -1926,15 +1926,15 @@ function Hi(e, t, n, s, i, o) {
1926
1926
  a("div", {
1927
1927
  class: "x-hint-name",
1928
1928
  textContent: d(i.typeDetails.name || "")
1929
- }, null, 8, bi)
1929
+ }, null, 8, Ci)
1930
1930
  ]),
1931
1931
  t[7] || (t[7] = a("div", { class: "divider" }, null, -1))
1932
1932
  ])) : C("", !0),
1933
- a("div", ki, d(e.$t("headerText", { crm: i.activeCrm.capitalize() })), 1),
1933
+ a("div", bi, d(e.$t("headerText", { crm: i.activeCrm.capitalize() })), 1),
1934
1934
  t[8] || (t[8] = a("div", { style: { height: "2em" } }, null, -1)),
1935
- o.currentExternalDeal ? (l(), p(I, { key: 1 }, [
1936
- a("div", wi, d(e.$t("connectedTo", { type: o.dealType })), 1),
1937
- i.dealDetails ? (l(), p("div", _i, [
1935
+ o.currentExternalDeal ? (l(), p($, { key: 1 }, [
1936
+ a("div", ki, d(e.$t("connectedTo", { type: o.dealType })), 1),
1937
+ i.dealDetails ? (l(), p("div", wi, [
1938
1938
  a("div", null, [
1939
1939
  (l(), b(W(i.dealDetails.externalUrl ? "a" : "span"), {
1940
1940
  href: i.dealDetails.externalUrl || "#",
@@ -1944,7 +1944,7 @@ function Hi(e, t, n, s, i, o) {
1944
1944
  textContent: d(i.dealDetails.name)
1945
1945
  }, null, 8, ["href", "textContent"]))
1946
1946
  ]),
1947
- i.dealDetails.currency ? (l(), p("div", xi, d(o.priceFormat(i.dealDetails.value, {
1947
+ i.dealDetails.currency ? (l(), p("div", _i, d(o.priceFormat(i.dealDetails.value, {
1948
1948
  showZero: !1,
1949
1949
  currency: i.dealDetails.currency
1950
1950
  })), 1)) : C("", !0)
@@ -1976,12 +1976,12 @@ function Hi(e, t, n, s, i, o) {
1976
1976
  textContent: d(e.$t("suggestClients"))
1977
1977
  }, null, 8, ["textContent"])
1978
1978
  ])
1979
- ], 64)) : (l(), p("div", Ti, [
1979
+ ], 64)) : (l(), p("div", xi, [
1980
1980
  a("div", {
1981
1981
  style: { padding: "0 4px 0.25em" },
1982
1982
  class: "text-gray-600",
1983
1983
  textContent: d(e.$t("linkToDoc", { type: o.dealType }))
1984
- }, null, 8, Di),
1984
+ }, null, 8, Ti),
1985
1985
  c(w, {
1986
1986
  ref: "input",
1987
1987
  modelValue: i.searchQuery,
@@ -1997,12 +1997,12 @@ function Hi(e, t, n, s, i, o) {
1997
1997
  onTyping: t[5] || (t[5] = (f) => o.search(f)),
1998
1998
  onSelect: t[6] || (t[6] = (f) => o.useSearchResult(f))
1999
1999
  }, {
2000
- default: m(({ option: f }) => [
2001
- a("div", Si, [
2002
- a("div", Ii, d(f.name), 1),
2000
+ default: u(({ option: f }) => [
2001
+ a("div", Di, [
2002
+ a("div", Si, d(f.name), 1),
2003
2003
  a("div", $i, [
2004
2004
  x(d(f.externalReference.type.capitalize()) + " " + d(f.externalReference.typeId) + " ", 1),
2005
- f.value && f.currency ? (l(), p(I, { key: 0 }, [
2005
+ f.value && f.currency ? (l(), p($, { key: 0 }, [
2006
2006
  x(" · " + d(o.priceFormat(f.value, {
2007
2007
  showZero: !1,
2008
2008
  currency: f.currency
@@ -2011,14 +2011,14 @@ function Hi(e, t, n, s, i, o) {
2011
2011
  ])
2012
2012
  ])
2013
2013
  ]),
2014
- empty: m(() => [
2014
+ empty: u(() => [
2015
2015
  x(d(e.$t("_common:noResults")), 1)
2016
2016
  ]),
2017
2017
  _: 1
2018
2018
  }, 8, ["modelValue", "data", "loading", "placeholder"])
2019
2019
  ]))
2020
2020
  ]),
2021
- o.showDealProducts ? (l(), p("div", Fi, [
2021
+ o.showDealProducts ? (l(), p("div", Ii, [
2022
2022
  a("div", Li, [
2023
2023
  a("div", Bi, [
2024
2024
  x(d(e.$t("productsTitle")) + " ", 1),
@@ -2040,7 +2040,7 @@ function Hi(e, t, n, s, i, o) {
2040
2040
  crm: i.activeCrm.capitalize()
2041
2041
  })
2042
2042
  )
2043
- }, null, 8, Vi)
2043
+ }, null, 8, Fi)
2044
2044
  ]),
2045
2045
  i.dealDetails.articles && i.dealDetails.articles.length ? (l(), b(D, {
2046
2046
  key: 0,
@@ -2056,7 +2056,7 @@ function Hi(e, t, n, s, i, o) {
2056
2056
  clone: o.cloneArticle,
2057
2057
  style: { "min-height": "calc(3 * var(--rem))", padding: "0 calc(0.5 * var(--rem))" }
2058
2058
  }, {
2059
- item: m(({ item: f }) => [
2059
+ item: u(({ item: f }) => [
2060
2060
  a("div", {
2061
2061
  style: { padding: "calc(0.5 * var(--rem))", "line-height": "1", "margin-bottom": "calc(0.5 * var(--rem))", "box-shadow": "0 1px 3px rgb(0, 0, 0, 0.3)", background: "white", "border-radius": "3px", cursor: "grab", "user-select": "none" },
2062
2062
  onClick: (_) => o.addArticle(f)
@@ -2064,20 +2064,20 @@ function Hi(e, t, n, s, i, o) {
2064
2064
  a("div", {
2065
2065
  style: { "font-weight": "500", "padding-bottom": "4px", "font-size": "14px" },
2066
2066
  textContent: d(f.name)
2067
- }, null, 8, Pi),
2068
- a("div", Ai, [
2067
+ }, null, 8, Mi),
2068
+ a("div", Pi, [
2069
2069
  x(d(o.priceFormat(f.price || 0, {
2070
2070
  showZero: !1,
2071
2071
  currency: f.currency || "USD"
2072
2072
  })) + " · " + d(f.quantity || 0) + "x ", 1),
2073
- f.vat !== null ? (l(), p(I, { key: 0 }, [
2073
+ f.vat !== null ? (l(), p($, { key: 0 }, [
2074
2074
  x(" · " + d(e._document.$t("vat").capitalize()) + " " + d(f.vat) + "% ", 1)
2075
2075
  ], 64)) : C("", !0)
2076
2076
  ])
2077
- ], 8, Mi)
2077
+ ], 8, Vi)
2078
2078
  ]),
2079
2079
  _: 1
2080
- }, 8, ["list", "clone"])) : (l(), p("div", Ei, [
2080
+ }, 8, ["list", "clone"])) : (l(), p("div", Ai, [
2081
2081
  c(k, {
2082
2082
  type: "info",
2083
2083
  size: "13",
@@ -2085,24 +2085,24 @@ function Hi(e, t, n, s, i, o) {
2085
2085
  }),
2086
2086
  a("div", {
2087
2087
  textContent: d(e.$t("noProducts", { type: o.dealType }))
2088
- }, null, 8, zi)
2088
+ }, null, 8, Ei)
2089
2089
  ]))
2090
2090
  ])) : C("", !0)
2091
- ], 64)) : (l(), p("div", Ri, [
2091
+ ], 64)) : (l(), p("div", zi, [
2092
2092
  c(k, {
2093
2093
  type: "info",
2094
2094
  size: "16",
2095
2095
  class: "text-primary-500",
2096
2096
  style: { "padding-bottom": "5px" }
2097
2097
  }),
2098
- a("div", Oi, d(e.$t("noCrm")), 1),
2099
- a("div", Ui, [
2098
+ a("div", Ri, d(e.$t("noCrm")), 1),
2099
+ a("div", Oi, [
2100
2100
  c(T, {
2101
2101
  to: { name: "settings" },
2102
2102
  style: { "font-weight": "500" },
2103
2103
  class: "text-primary-500"
2104
2104
  }, {
2105
- default: m(() => [
2105
+ default: u(() => [
2106
2106
  x(d(e.$t("noCrmAction")), 1)
2107
2107
  ]),
2108
2108
  _: 1
@@ -2111,7 +2111,103 @@ function Hi(e, t, n, s, i, o) {
2111
2111
  ]))
2112
2112
  ]);
2113
2113
  }
2114
- const qi = /* @__PURE__ */ F(ui, [["render", Hi], ["__scopeId", "data-v-ac46aaa2"]]), Gi = {
2114
+ const Ui = /* @__PURE__ */ L(ci, [["render", Hi], ["__scopeId", "data-v-ac46aaa2"]]), qi = {
2115
+ props: {
2116
+ defaultOpen: {
2117
+ type: Boolean,
2118
+ default: !0
2119
+ },
2120
+ modelValue: {
2121
+ type: Boolean,
2122
+ default: null
2123
+ },
2124
+ duration: {
2125
+ type: Number,
2126
+ default: 250
2127
+ }
2128
+ },
2129
+ emits: ["update:modelValue"],
2130
+ data() {
2131
+ return {
2132
+ internalExpanded: !1
2133
+ };
2134
+ },
2135
+ computed: {
2136
+ wrapperStyle() {
2137
+ return {
2138
+ transitionDuration: `${this.duration}ms`
2139
+ };
2140
+ },
2141
+ expanded: {
2142
+ get() {
2143
+ return this.modelValue === null ? this.internalExpanded : this.modelValue;
2144
+ },
2145
+ set(e) {
2146
+ this.modelValue === null ? this.internalExpanded = e : this.$emit("update:modelValue", this.modelValue);
2147
+ }
2148
+ }
2149
+ },
2150
+ created() {
2151
+ this.defaultOpen && (this.expanded = !0);
2152
+ },
2153
+ mounted() {
2154
+ this.expanded && this.setWrapperHeightTo("auto");
2155
+ },
2156
+ methods: {
2157
+ onEnter(e) {
2158
+ this.setWrapperHeightTo(this.getContentHeight(), e);
2159
+ },
2160
+ onAfterEnter(e) {
2161
+ this.setWrapperHeightTo("auto", e);
2162
+ },
2163
+ onBeforeLeave(e) {
2164
+ this.setWrapperHeightTo(this.getContentHeight(), e);
2165
+ },
2166
+ onLeave(e) {
2167
+ e.scrollHeight, this.setWrapperHeightTo(0, e);
2168
+ },
2169
+ getContentHeight() {
2170
+ var e;
2171
+ return ((e = this.$refs.inner) == null ? void 0 : e.getBoundingClientRect().height) || 0;
2172
+ },
2173
+ setWrapperHeightTo(e, t = this.$refs.wrapper) {
2174
+ t.style.height = typeof e == "number" ? `${e}px` : e;
2175
+ }
2176
+ }
2177
+ }, Gi = {
2178
+ ref: "inner",
2179
+ class: "c-accordion__inner"
2180
+ };
2181
+ function Ni(e, t, n, s, i, o) {
2182
+ return l(), p("div", null, [
2183
+ a("div", {
2184
+ onClick: t[0] || (t[0] = (r) => o.expanded = !o.expanded)
2185
+ }, [
2186
+ M(e.$slots, "trigger", { expanded: o.expanded })
2187
+ ]),
2188
+ c(J, {
2189
+ onEnter: o.onEnter,
2190
+ onAfterEnter: o.onAfterEnter,
2191
+ onBeforeLeave: o.onBeforeLeave,
2192
+ onLeave: o.onLeave
2193
+ }, {
2194
+ default: u(() => [
2195
+ o.expanded ? (l(), p("div", {
2196
+ key: 0,
2197
+ ref: "wrapper",
2198
+ style: z(o.wrapperStyle),
2199
+ class: "c-accordion"
2200
+ }, [
2201
+ a("div", Gi, [
2202
+ M(e.$slots, "default")
2203
+ ], 512)
2204
+ ], 4)) : C("", !0)
2205
+ ]),
2206
+ _: 3
2207
+ }, 8, ["onEnter", "onAfterEnter", "onBeforeLeave", "onLeave"])
2208
+ ]);
2209
+ }
2210
+ const Wi = /* @__PURE__ */ L(qi, [["render", Ni]]), ji = {
2115
2211
  name: "FieldsModal",
2116
2212
  i18nOptions: {
2117
2213
  namespaces: "FieldsModal",
@@ -2168,7 +2264,7 @@ const qi = /* @__PURE__ */ F(ui, [["render", Hi], ["__scopeId", "data-v-ac46aaa2
2168
2264
  },
2169
2265
  setup() {
2170
2266
  return {
2171
- v$: je()
2267
+ v$: We()
2172
2268
  };
2173
2269
  },
2174
2270
  data() {
@@ -2182,12 +2278,12 @@ const qi = /* @__PURE__ */ F(ui, [["render", Hi], ["__scopeId", "data-v-ac46aaa2
2182
2278
  validations: {
2183
2279
  form: {
2184
2280
  label: {
2185
- required: Fe,
2281
+ required: Le,
2186
2282
  isUniqueLabel(e) {
2187
2283
  return this.fields.reduce((n, { id: s, label: i }) => i === e && s !== this.existingFieldId ? !1 : n, !0);
2188
2284
  }
2189
2285
  },
2190
- value: { required: Fe }
2286
+ value: { required: Le }
2191
2287
  }
2192
2288
  },
2193
2289
  computed: {
@@ -2207,7 +2303,7 @@ const qi = /* @__PURE__ */ F(ui, [["render", Hi], ["__scopeId", "data-v-ac46aaa2
2207
2303
  },
2208
2304
  created() {
2209
2305
  if (this.existingFieldId) {
2210
- const e = M(this.document, `fields.${this.existingFieldId}`);
2306
+ const e = P(this.document, `fields.${this.existingFieldId}`);
2211
2307
  e && (this.form = { ...this.form, ...e });
2212
2308
  }
2213
2309
  },
@@ -2225,20 +2321,20 @@ const qi = /* @__PURE__ */ F(ui, [["render", Hi], ["__scopeId", "data-v-ac46aaa2
2225
2321
  },
2226
2322
  remove() {
2227
2323
  if (!this.existingFieldId) return;
2228
- const e = Zt(this.document.fields, [this.existingFieldId]);
2324
+ const e = Wt(this.document.fields, [this.existingFieldId]);
2229
2325
  this.set({ key: "data.fields", value: e }), this.$emit("close");
2230
2326
  }
2231
2327
  }
2232
- }, Ni = {
2328
+ }, Zi = {
2233
2329
  class: "font-inter flex w-full flex-col items-center bg-white text-center",
2234
2330
  style: { padding: "2em", "border-radius": "10px" }
2235
- }, Wi = { style: { "padding-bottom": "2em" } }, ji = { style: { "font-size": "18px", "font-weight": "600", "margin-bottom": "0.25em" } }, Zi = { style: { "margin-bottom": "0.25em", opacity: "0.65" } };
2236
- function Ki(e, t, n, s, i, o) {
2237
- const r = u("CInput"), g = u("CField"), h = u("CButton");
2238
- return l(), p("div", Ni, [
2239
- a("div", Wi, [
2240
- a("div", ji, d(n.existingFieldId ? e.$t("editTitle") : e.$t("newTitle")), 1),
2241
- a("div", Zi, d(e.$t("description")), 1)
2331
+ }, Ki = { style: { "padding-bottom": "2em" } }, Qi = { style: { "font-size": "18px", "font-weight": "600", "margin-bottom": "0.25em" } }, Yi = { style: { "margin-bottom": "0.25em", opacity: "0.65" } };
2332
+ function Ji(e, t, n, s, i, o) {
2333
+ const r = m("CInput"), g = m("CField"), h = m("CButton");
2334
+ return l(), p("div", Zi, [
2335
+ a("div", Ki, [
2336
+ a("div", Qi, d(n.existingFieldId ? e.$t("editTitle") : e.$t("newTitle")), 1),
2337
+ a("div", Yi, d(e.$t("description")), 1)
2242
2338
  ]),
2243
2339
  a("form", {
2244
2340
  style: { width: "100%" },
@@ -2252,7 +2348,7 @@ function Ki(e, t, n, s, i, o) {
2252
2348
  "label-position": "inside",
2253
2349
  style: { width: "100%", "text-align": "left", "margin-bottom": "1em" }
2254
2350
  }, {
2255
- default: m(() => [
2351
+ default: u(() => [
2256
2352
  c(r, {
2257
2353
  modelValue: i.form.label,
2258
2354
  "onUpdate:modelValue": t[0] || (t[0] = (y) => i.form.label = y),
@@ -2269,7 +2365,7 @@ function Ki(e, t, n, s, i, o) {
2269
2365
  "label-position": "inside",
2270
2366
  style: { width: "100%", "text-align": "left", "margin-bottom": "1em" }
2271
2367
  }, {
2272
- default: m(() => [
2368
+ default: u(() => [
2273
2369
  c(r, {
2274
2370
  modelValue: i.form.value,
2275
2371
  "onUpdate:modelValue": t[1] || (t[1] = (y) => i.form.value = y),
@@ -2298,7 +2394,7 @@ function Ki(e, t, n, s, i, o) {
2298
2394
  ], 32)
2299
2395
  ]);
2300
2396
  }
2301
- const Qi = /* @__PURE__ */ F(Gi, [["render", Ki]]), Yi = {
2397
+ const Xi = /* @__PURE__ */ L(ji, [["render", Ji]]), eo = {
2302
2398
  i18nOptions: {
2303
2399
  namespaces: "DocumentFormFields",
2304
2400
  messages: {
@@ -2322,8 +2418,8 @@ const Qi = /* @__PURE__ */ F(Gi, [["render", Ki]]), Yi = {
2322
2418
  },
2323
2419
  name: "DocumentFormFields",
2324
2420
  components: {
2325
- SmartList: Wt,
2326
- CAccordion: Gt,
2421
+ SmartList: Gt,
2422
+ CAccordion: Wi,
2327
2423
  CField: _e
2328
2424
  },
2329
2425
  mixins: [oe()],
@@ -2380,7 +2476,7 @@ const Qi = /* @__PURE__ */ F(Gi, [["render", Ki]]), Yi = {
2380
2476
  async handler(e) {
2381
2477
  var t, n;
2382
2478
  if (this.isEditingTemplate && e) {
2383
- const { data: s } = await te.getFields(e);
2479
+ const { data: s } = await ne.getFields(e);
2384
2480
  this.updateValue("data.fields", {
2385
2481
  // crmFields added first in order to not override same service values
2386
2482
  ...s,
@@ -2400,7 +2496,7 @@ const Qi = /* @__PURE__ */ F(Gi, [["render", Ki]]), Yi = {
2400
2496
  },
2401
2497
  openFieldModal({ existingFieldId: e }) {
2402
2498
  this.$modal.show(
2403
- Qi,
2499
+ Xi,
2404
2500
  {
2405
2501
  document: this._document,
2406
2502
  set: this.set,
@@ -2431,37 +2527,37 @@ const Qi = /* @__PURE__ */ F(Gi, [["render", Ki]]), Yi = {
2431
2527
  e.dataTransfer.setData("text/html", n), e.dataTransfer.setData("text", `{{${t.key}}}`);
2432
2528
  }
2433
2529
  }
2434
- }, Ji = { style: { padding: "1em" } }, Xi = { style: { margin: "15px 0" } }, eo = ["textContent"], to = ["textContent"], no = {
2530
+ }, to = { style: { padding: "1em" } }, no = { style: { margin: "15px 0" } }, io = ["textContent"], oo = ["textContent"], so = {
2435
2531
  key: 0,
2436
2532
  style: { "margin-top": "15px", "padding-top": "15px", "border-top": "1px solid hsl(0, 0%, 88%)" }
2437
- }, io = {
2533
+ }, ao = {
2438
2534
  class: "field-container",
2439
2535
  style: { position: "relative", flex: "1 1 auto" }
2440
- }, oo = ["onDragstart", "textContent"], so = { class: "field-actions" }, ao = {
2536
+ }, lo = ["onDragstart", "textContent"], ro = { class: "field-actions" }, co = {
2441
2537
  key: 1,
2442
2538
  style: { "text-align": "center" }
2443
- }, lo = {
2539
+ }, uo = {
2444
2540
  key: 1,
2445
2541
  style: { "padding-top": "20px" }
2446
- }, ro = {
2542
+ }, mo = {
2447
2543
  class: "flex w-full justify-end",
2448
2544
  style: { "margin-top": "0.5em", "margin-bottom": "0.5em" }
2449
- }, co = { class: "list-button" }, uo = ["textContent"], mo = ["textContent"], po = { style: { "padding-bottom": "2em" } }, ho = ["textContent"], fo = {
2545
+ }, po = { class: "list-button" }, ho = ["textContent"], fo = ["textContent"], go = { style: { "padding-bottom": "2em" } }, yo = ["textContent"], vo = {
2450
2546
  class: "field-container",
2451
2547
  style: { position: "relative", flex: "1 1 auto" }
2452
- }, go = ["onDragstart", "textContent"], yo = { class: "field-actions" };
2453
- function vo(e, t, n, s, i, o) {
2454
- const r = u("CInput"), g = u("CField"), h = u("CButton"), y = u("SmartList"), w = u("CIcon"), k = u("CAccordion");
2455
- return l(), p("div", Ji, [
2456
- a("div", Xi, [
2548
+ }, Co = ["onDragstart", "textContent"], bo = { class: "field-actions" };
2549
+ function ko(e, t, n, s, i, o) {
2550
+ const r = m("CInput"), g = m("CField"), h = m("CButton"), y = m("SmartList"), w = m("CIcon"), k = m("CAccordion");
2551
+ return l(), p("div", to, [
2552
+ a("div", no, [
2457
2553
  a("div", {
2458
2554
  style: { "font-size": "16px", "font-weight": "600" },
2459
2555
  textContent: d(e.$t("title"))
2460
- }, null, 8, eo),
2556
+ }, null, 8, io),
2461
2557
  a("div", {
2462
2558
  style: { color: "hsl(0, 0%, 35%)" },
2463
2559
  textContent: d(e.$t("description"))
2464
- }, null, 8, to)
2560
+ }, null, 8, oo)
2465
2561
  ]),
2466
2562
  c(r, {
2467
2563
  modelValue: i.query,
@@ -2470,31 +2566,31 @@ function vo(e, t, n, s, i, o) {
2470
2566
  filled: "",
2471
2567
  size: "small"
2472
2568
  }, null, 8, ["modelValue", "placeholder"]),
2473
- i.query ? (l(), p("div", no, [
2569
+ i.query ? (l(), p("div", so, [
2474
2570
  c(y, {
2475
2571
  items: o.options,
2476
2572
  "filter-method": o.filterMethod,
2477
2573
  query: i.query
2478
2574
  }, {
2479
- default: m(({ items: D }) => [
2575
+ default: u(({ items: D }) => [
2480
2576
  a("div", null, [
2481
- D.length ? (l(!0), p(I, { key: 0 }, E(D, (T, v) => (l(), p("div", {
2577
+ D.length ? (l(!0), p($, { key: 0 }, E(D, (T, v) => (l(), p("div", {
2482
2578
  key: v,
2483
2579
  class: "field-parent flex w-full items-center"
2484
2580
  }, [
2485
- a("div", io, [
2581
+ a("div", ao, [
2486
2582
  c(g, {
2487
2583
  label: " ",
2488
2584
  "label-position": "inside",
2489
2585
  style: { width: "100%" }
2490
2586
  }, {
2491
- default: m(() => [
2587
+ default: u(() => [
2492
2588
  a("span", {
2493
2589
  class: "drag-label",
2494
2590
  draggable: !0,
2495
2591
  onDragstart: (f) => o.onDragStart(f, T),
2496
2592
  textContent: d(T.label)
2497
- }, null, 40, oo),
2593
+ }, null, 40, lo),
2498
2594
  c(r, {
2499
2595
  "model-value": T.value,
2500
2596
  disabled: T.inputDisabled,
@@ -2509,7 +2605,7 @@ function vo(e, t, n, s, i, o) {
2509
2605
  ]),
2510
2606
  _: 2
2511
2607
  }, 1024),
2512
- a("div", so, [
2608
+ a("div", ro, [
2513
2609
  !T.inputDisabled && !T.virtual ? (l(), b(h, {
2514
2610
  key: 0,
2515
2611
  icon: "edit",
@@ -2529,13 +2625,13 @@ function vo(e, t, n, s, i, o) {
2529
2625
  }, null, 8, ["onClick"])
2530
2626
  ])
2531
2627
  ])
2532
- ]))), 128)) : (l(), p("div", ao, d(e.$t("_common:noResults")), 1))
2628
+ ]))), 128)) : (l(), p("div", co, d(e.$t("_common:noResults")), 1))
2533
2629
  ])
2534
2630
  ]),
2535
2631
  _: 1
2536
2632
  }, 8, ["items", "filter-method", "query"])
2537
- ])) : (l(), p("div", lo, [
2538
- a("div", ro, [
2633
+ ])) : (l(), p("div", uo, [
2634
+ a("div", mo, [
2539
2635
  c(h, {
2540
2636
  type: "none",
2541
2637
  pattern: "secondary",
@@ -2545,7 +2641,7 @@ function vo(e, t, n, s, i, o) {
2545
2641
  textContent: d(e.$t("_common:add", { thing: e.$t("_common:field") }))
2546
2642
  }, null, 8, ["onClick", "textContent"])
2547
2643
  ]),
2548
- (l(!0), p(I, null, E([
2644
+ (l(!0), p($, null, E([
2549
2645
  {
2550
2646
  label: e.$t("usedFields"),
2551
2647
  defaultOpen: !0,
@@ -2568,16 +2664,16 @@ function vo(e, t, n, s, i, o) {
2568
2664
  "default-open": D.defaultOpen,
2569
2665
  style: { "border-top": "1px solid hsl(0, 0%, 88%)" }
2570
2666
  }, {
2571
- trigger: m(({ expanded: v }) => [
2572
- a("div", co, [
2667
+ trigger: u(({ expanded: v }) => [
2668
+ a("div", po, [
2573
2669
  a("span", null, [
2574
2670
  a("span", {
2575
2671
  textContent: d(D.label)
2576
- }, null, 8, uo),
2672
+ }, null, 8, ho),
2577
2673
  a("span", {
2578
2674
  style: { opacity: "0.45", "padding-left": "0.5em" },
2579
2675
  textContent: d(D.items.length)
2580
- }, null, 8, mo)
2676
+ }, null, 8, fo)
2581
2677
  ]),
2582
2678
  c(w, {
2583
2679
  style: z([{ transform: `rotate(${v ? "180deg" : "0deg"})` }, { transition: "200ms" }]),
@@ -2586,25 +2682,25 @@ function vo(e, t, n, s, i, o) {
2586
2682
  }, null, 8, ["style"])
2587
2683
  ])
2588
2684
  ]),
2589
- default: m(() => [
2590
- a("div", po, [
2591
- D.items.length ? (l(!0), p(I, { key: 1 }, E(D.items, (v, f) => (l(), p("div", {
2685
+ default: u(() => [
2686
+ a("div", go, [
2687
+ D.items.length ? (l(!0), p($, { key: 1 }, E(D.items, (v, f) => (l(), p("div", {
2592
2688
  key: f,
2593
2689
  class: "field-parent flex w-full items-center"
2594
2690
  }, [
2595
- a("div", fo, [
2691
+ a("div", vo, [
2596
2692
  c(g, {
2597
2693
  label: " ",
2598
2694
  "label-position": "inside",
2599
2695
  style: { width: "100%" }
2600
2696
  }, {
2601
- default: m(() => [
2697
+ default: u(() => [
2602
2698
  a("span", {
2603
2699
  class: "drag-label",
2604
2700
  draggable: !0,
2605
2701
  onDragstart: (_) => o.onDragStart(_, v),
2606
2702
  textContent: d(v.label)
2607
- }, null, 40, go),
2703
+ }, null, 40, Co),
2608
2704
  c(r, {
2609
2705
  "model-value": v.value,
2610
2706
  disabled: v.inputDisabled,
@@ -2612,14 +2708,14 @@ function vo(e, t, n, s, i, o) {
2612
2708
  size: "small",
2613
2709
  style: { width: "100%" },
2614
2710
  onBlur: (_) => {
2615
- var $;
2616
- return v.onInput((($ = _ == null ? void 0 : _.target) == null ? void 0 : $.value) || "");
2711
+ var I;
2712
+ return v.onInput(((I = _ == null ? void 0 : _.target) == null ? void 0 : I.value) || "");
2617
2713
  }
2618
2714
  }, null, 8, ["model-value", "disabled", "onBlur"])
2619
2715
  ]),
2620
2716
  _: 2
2621
2717
  }, 1024),
2622
- a("div", yo, [
2718
+ a("div", bo, [
2623
2719
  !v.inputDisabled && !v.virtual ? (l(), b(h, {
2624
2720
  key: 0,
2625
2721
  icon: "edit",
@@ -2643,7 +2739,7 @@ function vo(e, t, n, s, i, o) {
2643
2739
  key: 0,
2644
2740
  style: { "font-size": "13px", "text-align": "center", "user-select": "none", padding: "0.5em", "border-radius": "0.25em", opacity: "0.5" },
2645
2741
  textContent: d(e.$t("noResults"))
2646
- }, null, 8, ho))
2742
+ }, null, 8, yo))
2647
2743
  ])
2648
2744
  ]),
2649
2745
  _: 2
@@ -2651,7 +2747,7 @@ function vo(e, t, n, s, i, o) {
2651
2747
  ]))
2652
2748
  ]);
2653
2749
  }
2654
- const Co = /* @__PURE__ */ F(Yi, [["render", vo], ["__scopeId", "data-v-366abad0"]]), bo = {
2750
+ const wo = /* @__PURE__ */ L(eo, [["render", ko], ["__scopeId", "data-v-366abad0"]]), _o = {
2655
2751
  name: "MenuBlockConvertPopover",
2656
2752
  emits: ["close", "convert"],
2657
2753
  props: {
@@ -2684,18 +2780,18 @@ const Co = /* @__PURE__ */ F(Yi, [["render", vo], ["__scopeId", "data-v-366abad0
2684
2780
  }
2685
2781
  }
2686
2782
  }
2687
- }, ko = {
2783
+ }, xo = {
2688
2784
  ref: "popover",
2689
2785
  class: "absolute z-10 w-52 -translate-y-1/2 rounded-lg bg-white p-4 text-sm shadow-xl"
2690
- }, wo = ["innerHTML"];
2691
- function _o(e, t, n, s, i, o) {
2692
- const r = u("CButton");
2786
+ }, To = ["innerHTML"];
2787
+ function Do(e, t, n, s, i, o) {
2788
+ const r = m("CButton");
2693
2789
  return l(), p("div", null, [
2694
2790
  a("div", {
2695
2791
  class: "fixed inset-0 z-10",
2696
2792
  onClick: t[0] || (t[0] = j((g) => e.$emit("close"), ["self"]))
2697
2793
  }),
2698
- c(ne, {
2794
+ c(J, {
2699
2795
  appear: "",
2700
2796
  mode: "out-in",
2701
2797
  "enter-active-class": "transition-all duration-100 ease-out",
@@ -2705,19 +2801,19 @@ function _o(e, t, n, s, i, o) {
2705
2801
  "leave-from-class": "opacity-100",
2706
2802
  "leave-to-class": "opacity-0"
2707
2803
  }, {
2708
- default: m(() => [
2709
- a("div", ko, [
2804
+ default: u(() => [
2805
+ a("div", xo, [
2710
2806
  a("div", {
2711
2807
  class: "pb-4",
2712
2808
  innerHTML: e.$t("text")
2713
- }, null, 8, wo),
2809
+ }, null, 8, To),
2714
2810
  c(r, {
2715
2811
  type: "secondary",
2716
2812
  size: "small",
2717
2813
  "icon-right": "arrow-right",
2718
2814
  onClick: t[1] || (t[1] = (g) => e.$emit("convert"))
2719
2815
  }, {
2720
- default: m(() => [
2816
+ default: u(() => [
2721
2817
  x(d(e.$t("button")), 1)
2722
2818
  ]),
2723
2819
  _: 1
@@ -2728,7 +2824,7 @@ function _o(e, t, n, s, i, o) {
2728
2824
  })
2729
2825
  ]);
2730
2826
  }
2731
- const xo = /* @__PURE__ */ F(bo, [["render", _o]]), To = {
2827
+ const So = /* @__PURE__ */ L(_o, [["render", Do]]), $o = {
2732
2828
  name: "MenuBlocks",
2733
2829
  i18nOptions: {
2734
2830
  namespaces: "menuBlocks",
@@ -2798,12 +2894,12 @@ const xo = /* @__PURE__ */ F(bo, [["render", _o]]), To = {
2798
2894
  }
2799
2895
  },
2800
2896
  components: {
2801
- Simplebar: J,
2897
+ Simplebar: X,
2802
2898
  DragList: ze,
2803
2899
  DragItem: Ee,
2804
- IsPremiumPreStep: X,
2805
- ProBadge: We,
2806
- MenuBlockConvertPopover: xo
2900
+ IsPremiumPreStep: ee,
2901
+ ProBadge: je,
2902
+ MenuBlockConvertPopover: So
2807
2903
  },
2808
2904
  mixins: [Q],
2809
2905
  inject: {
@@ -2999,7 +3095,7 @@ const xo = /* @__PURE__ */ F(bo, [["render", _o]]), To = {
2999
3095
  };
3000
3096
  },
3001
3097
  computed: {
3002
- ...R({
3098
+ ...H({
3003
3099
  allAuthenticatedCRMs: "settings/allAuthenticatedCRMs",
3004
3100
  feature: "application/feature"
3005
3101
  }),
@@ -3115,7 +3211,7 @@ const xo = /* @__PURE__ */ F(bo, [["render", _o]]), To = {
3115
3211
  }
3116
3212
  ];
3117
3213
  return e.forEach((t) => {
3118
- $e[t.key] && (t.subMenu = ($e[t.key](this._document || {}) || []).map((n) => ({
3214
+ Ie[t.key] && (t.subMenu = (Ie[t.key](this._document || {}) || []).map((n) => ({
3119
3215
  ...n,
3120
3216
  key: t.key,
3121
3217
  locked: t.locked
@@ -3138,7 +3234,7 @@ const xo = /* @__PURE__ */ F(bo, [["render", _o]]), To = {
3138
3234
  );
3139
3235
  },
3140
3236
  activeSubMenuKey() {
3141
- return M(this.activeSubMenu, "[0].key") || null;
3237
+ return P(this.activeSubMenu, "[0].key") || null;
3142
3238
  }
3143
3239
  // section key is added to each element in the menu
3144
3240
  },
@@ -3216,7 +3312,7 @@ const xo = /* @__PURE__ */ F(bo, [["render", _o]]), To = {
3216
3312
  return !this.feature(`docBlock_${e}`);
3217
3313
  },
3218
3314
  doesBlockExist(e) {
3219
- return !!M(this._document, "_doc.template.views.read.nodes", []).find((n) => n.itemId.startsWith(e));
3315
+ return !!P(this._document, "_doc.template.views.read.nodes", []).find((n) => n.itemId.startsWith(e));
3220
3316
  },
3221
3317
  getGhostParent() {
3222
3318
  var n, s;
@@ -3239,38 +3335,38 @@ const xo = /* @__PURE__ */ F(bo, [["render", _o]]), To = {
3239
3335
  };
3240
3336
  }
3241
3337
  }
3242
- }, Do = { class: "menu-container" }, So = {
3338
+ }, Io = { class: "menu-container" }, Lo = {
3243
3339
  key: 0,
3244
3340
  style: { height: "1px", "background-color": "hsl(0, 0%, 88%)", margin: "calc(1 * var(--rem))" }
3245
- }, Io = ["onMouseoverPassive"], $o = {
3341
+ }, Bo = ["onMouseoverPassive"], Fo = {
3246
3342
  class: "flex items-center",
3247
3343
  style: { width: "230px" }
3248
- }, Fo = {
3344
+ }, Vo = {
3249
3345
  class: "flex items-center",
3250
3346
  style: { width: "initial", flex: "1 1 auto" }
3251
- }, Lo = ["innerHTML"], Bo = { class: "option-title" }, Vo = { class: "relative" }, Mo = ["onClick", "innerHTML"];
3252
- function Po(e, t, n, s, i, o) {
3253
- const r = u("MenuBlockConvertPopover"), g = u("ProBadge"), h = u("CIcon"), y = u("CButton"), w = u("DragItem"), k = u("DragList"), D = u("Simplebar"), T = u("IsPremiumPreStep");
3347
+ }, Mo = ["innerHTML"], Po = { class: "option-title" }, Ao = { class: "relative" }, Eo = ["onClick", "innerHTML"];
3348
+ function zo(e, t, n, s, i, o) {
3349
+ const r = m("MenuBlockConvertPopover"), g = m("ProBadge"), h = m("CIcon"), y = m("CButton"), w = m("DragItem"), k = m("DragList"), D = m("Simplebar"), T = m("IsPremiumPreStep");
3254
3350
  return l(), p("div", {
3255
3351
  onMouseleavePassive: t[4] || (t[4] = (...v) => o.onMouseleaveDrawer && o.onMouseleaveDrawer(...v))
3256
3352
  }, [
3257
3353
  c(T, { feature: "documentBlocks" }, {
3258
- default: m(({ onClick: v }) => [
3354
+ default: u(({ onClick: v }) => [
3259
3355
  !n.canUseBlocks && i.showConvertEditableDialog ? (l(), b(r, {
3260
3356
  key: 0,
3261
3357
  target: i.showConvertEditableDialogTarget,
3262
3358
  onConvert: o.deSyncTemplate,
3263
3359
  onClose: t[0] || (t[0] = (f) => i.showConvertEditableDialog = !1)
3264
3360
  }, null, 8, ["target", "onConvert"])) : C("", !0),
3265
- a("div", Do, [
3266
- (l(!0), p(I, null, E([
3361
+ a("div", Io, [
3362
+ (l(!0), p($, null, E([
3267
3363
  { data: o.primaryBlocks },
3268
3364
  { data: o.secondaryBlocks }
3269
3365
  ], (f, _) => (l(), p("div", { key: _ }, [
3270
- _ > 0 ? (l(), p("div", So)) : C("", !0),
3366
+ _ > 0 ? (l(), p("div", Lo)) : C("", !0),
3271
3367
  c(k, {
3272
3368
  group: { name: "blocks", pull: "clone", put: !1 },
3273
- "get-child-payload": ($) => s.getBlockPayload(o.getSectionKey({ data: f.data, index: $ })),
3369
+ "get-child-payload": (I) => s.getBlockPayload(o.getSectionKey({ data: f.data, index: I })),
3274
3370
  "drop-placeholder": {
3275
3371
  className: "drag-drop-menu-placeholder"
3276
3372
  },
@@ -3281,45 +3377,45 @@ function Po(e, t, n, s, i, o) {
3281
3377
  "ghost-class": "drag-drop-ghost",
3282
3378
  behaviour: "copy"
3283
3379
  }, {
3284
- default: m(() => [
3285
- (l(!0), p(I, null, E(f.data, ($) => (l(), b(w, {
3286
- key: $.key,
3287
- class: B({ "drag-item": o.canDrag })
3380
+ default: u(() => [
3381
+ (l(!0), p($, null, E(f.data, (I) => (l(), b(w, {
3382
+ key: I.key,
3383
+ class: F({ "drag-item": o.canDrag })
3288
3384
  }, {
3289
- default: m(() => [
3385
+ default: u(() => [
3290
3386
  a("div", be(
3291
3387
  { ref_for: !0 },
3292
- $.hasTooltip ? { "data-tooltip-key": $.key } : null,
3388
+ I.hasTooltip ? { "data-tooltip-key": I.key } : null,
3293
3389
  {
3294
3390
  class: {
3295
- "no-drag": $.disabled || $.locked || !n.canUseBlocks
3391
+ "no-drag": I.disabled || I.locked || !n.canUseBlocks
3296
3392
  },
3297
- onMouseoverPassive: (S) => i.subMenuToShow = !$.disabled && o.canDrag && $.subMenu || null,
3393
+ onMouseoverPassive: (S) => i.subMenuToShow = !I.disabled && o.canDrag && I.subMenu || null,
3298
3394
  onMouseleavePassive: t[1] || (t[1] = (S) => i.subMenuToShow = null)
3299
3395
  }
3300
3396
  ), [
3301
3397
  c(y, {
3302
3398
  ref_for: !0,
3303
3399
  ref: "blockItem",
3304
- disabled: $.disabled,
3305
- class: B([{
3306
- "sub-menu-active": $.key === o.activeSubMenuKey
3400
+ disabled: I.disabled,
3401
+ class: F([{
3402
+ "sub-menu-active": I.key === o.activeSubMenuKey
3307
3403
  }, "option-row is-thinner is-left"]),
3308
3404
  wide: "",
3309
3405
  pattern: "secondary",
3310
3406
  style: { "padding-left": "1.5em", "padding-right": "2em", "border-radius": "0", "font-size": "14px", "border-color": "transparent" },
3311
- onClick: (S) => o.onUseBlock({ block: $, openUpgradeModal: v })
3407
+ onClick: (S) => o.onUseBlock({ block: I, openUpgradeModal: v })
3312
3408
  }, {
3313
- default: m(() => [
3314
- a("div", $o, [
3315
- a("div", Fo, [
3409
+ default: u(() => [
3410
+ a("div", Fo, [
3411
+ a("div", Vo, [
3316
3412
  a("div", {
3317
3413
  class: "option-image",
3318
- innerHTML: $.icon
3319
- }, null, 8, Lo),
3320
- a("div", Bo, d(e.$t(`blocks.${$.key}`)), 1)
3414
+ innerHTML: I.icon
3415
+ }, null, 8, Mo),
3416
+ a("div", Po, d(e.$t(`blocks.${I.key}`)), 1)
3321
3417
  ]),
3322
- $.locked ? (l(), b(g, { key: 0 })) : !n.fixed && $.subMenu ? (l(), b(h, {
3418
+ I.locked ? (l(), b(g, { key: 0 })) : !n.fixed && I.subMenu ? (l(), b(h, {
3323
3419
  key: 1,
3324
3420
  type: "chevron-right",
3325
3421
  size: "14",
@@ -3329,7 +3425,7 @@ function Po(e, t, n, s, i, o) {
3329
3425
  ]),
3330
3426
  _: 2
3331
3427
  }, 1032, ["disabled", "class", "onClick"])
3332
- ], 16, Io)
3428
+ ], 16, Bo)
3333
3429
  ]),
3334
3430
  _: 2
3335
3431
  }, 1032, ["class"]))), 128))
@@ -3337,10 +3433,10 @@ function Po(e, t, n, s, i, o) {
3337
3433
  _: 2
3338
3434
  }, 1032, ["get-child-payload", "get-ghost-parent"])
3339
3435
  ]))), 128)),
3340
- A(e.$slots, "footer", {}, void 0, !0)
3436
+ M(e.$slots, "footer", {}, void 0, !0)
3341
3437
  ]),
3342
- c(ne, { name: "slide-right" }, {
3343
- default: m(() => [
3438
+ c(J, { name: "slide-right" }, {
3439
+ default: u(() => [
3344
3440
  G(a("div", {
3345
3441
  class: "submenu",
3346
3442
  onMouseoverPassive: t[2] || (t[2] = (f) => i.subMenuToShow = i.activeSubMenu),
@@ -3350,7 +3446,7 @@ function Po(e, t, n, s, i, o) {
3350
3446
  class: "h-full py-4 pl-3",
3351
3447
  "data-simplebar-auto-hide": "false"
3352
3448
  }, {
3353
- default: m(() => [
3449
+ default: u(() => [
3354
3450
  c(k, {
3355
3451
  group: { name: "blocks", pull: "clone", put: !1 },
3356
3452
  "get-child-payload": (f) => o.getSubMenuPayload({ index: f, getBlockPayload: s.getBlockPayload }),
@@ -3362,18 +3458,18 @@ function Po(e, t, n, s, i, o) {
3362
3458
  "ghost-class": "drag-drop-ghost",
3363
3459
  behaviour: "copy"
3364
3460
  }, {
3365
- default: m(() => [
3366
- (l(!0), p(I, null, E(i.activeSubMenu, (f, _) => (l(), b(w, {
3461
+ default: u(() => [
3462
+ (l(!0), p($, null, E(i.activeSubMenu, (f, _) => (l(), b(w, {
3367
3463
  key: f.key + _,
3368
- class: B(["px-1.5", { "drag-item": !f.locked && n.canUseBlocks }])
3464
+ class: F(["px-1.5", { "drag-item": !f.locked && n.canUseBlocks }])
3369
3465
  }, {
3370
- default: m(() => [
3371
- a("div", Vo, [
3466
+ default: u(() => [
3467
+ a("div", Ao, [
3372
3468
  a("div", {
3373
3469
  class: "drag-item-preview",
3374
- onClick: ($) => o.onUseBlock({ block: f, openUpgradeModal: v }),
3470
+ onClick: (I) => o.onUseBlock({ block: f, openUpgradeModal: v }),
3375
3471
  innerHTML: f.previewUrl
3376
- }, null, 8, Mo),
3472
+ }, null, 8, Eo),
3377
3473
  f.locked ? (l(), b(g, {
3378
3474
  key: 0,
3379
3475
  class: "absolute bottom-2 right-4"
@@ -3399,7 +3495,7 @@ function Po(e, t, n, s, i, o) {
3399
3495
  })
3400
3496
  ], 32);
3401
3497
  }
3402
- const Ao = /* @__PURE__ */ F(To, [["render", Po], ["__scopeId", "data-v-8f7b8a70"]]), Eo = {
3498
+ const Ro = /* @__PURE__ */ L($o, [["render", zo], ["__scopeId", "data-v-8f7b8a70"]]), Oo = {
3403
3499
  name: "DocumentFormMenu",
3404
3500
  i18nOptions: {
3405
3501
  namespaces: "documentFormMenu",
@@ -3415,15 +3511,15 @@ const Ao = /* @__PURE__ */ F(To, [["render", Po], ["__scopeId", "data-v-8f7b8a70
3415
3511
  }
3416
3512
  },
3417
3513
  components: {
3418
- Design: si,
3419
- Fields: Co,
3420
- ExtensionTab: qi,
3421
- DocumentGeneralSettings: ci,
3514
+ Design: oi,
3515
+ Fields: wo,
3516
+ ExtensionTab: Ui,
3517
+ DocumentGeneralSettings: di,
3422
3518
  DocumentGuide: ct(
3423
- () => import("./index-DzyXygjd.js")
3519
+ () => import("./index-BPR1VsLM.js")
3424
3520
  ),
3425
- MenuBlocks: Ao,
3426
- Simplebar: J
3521
+ MenuBlocks: Ro,
3522
+ Simplebar: X
3427
3523
  },
3428
3524
  emits: ["close"],
3429
3525
  props: {
@@ -3459,12 +3555,12 @@ const Ao = /* @__PURE__ */ F(To, [["render", Po], ["__scopeId", "data-v-8f7b8a70
3459
3555
  data() {
3460
3556
  return {
3461
3557
  showGuide: !1,
3462
- showGuideNotification: !Ie.getItem("hideFormGuideNotification"),
3558
+ showGuideNotification: !$e.getItem("hideFormGuideNotification"),
3463
3559
  tab: "blocks"
3464
3560
  };
3465
3561
  },
3466
3562
  computed: {
3467
- ...R({
3563
+ ...H({
3468
3564
  allAuthenticatedCRMs: "settings/allAuthenticatedCRMs"
3469
3565
  }),
3470
3566
  extensionTabType() {
@@ -3481,21 +3577,21 @@ const Ao = /* @__PURE__ */ F(To, [["render", Po], ["__scopeId", "data-v-8f7b8a70
3481
3577
  },
3482
3578
  methods: {
3483
3579
  openGuide() {
3484
- this.showGuide = !0, this.showGuideNotification = !1, Ie.setItem("hideFormGuideNotification", !0);
3580
+ this.showGuide = !0, this.showGuideNotification = !1, $e.setItem("hideFormGuideNotification", !0);
3485
3581
  }
3486
3582
  }
3487
- }, zo = {
3583
+ }, Ho = {
3488
3584
  key: 0,
3489
3585
  class: "tab-list"
3490
- }, Ro = ["textContent"], Oo = ["textContent"], Uo = ["textContent"], Ho = { style: { flex: "1 1 auto", display: "flex", "flex-direction": "column", "justify-content": "flex-end", "align-items": "flex-start", padding: "calc(1 * var(--rem))" } }, qo = {
3586
+ }, Uo = ["textContent"], qo = ["textContent"], Go = ["textContent"], No = { style: { flex: "1 1 auto", display: "flex", "flex-direction": "column", "justify-content": "flex-end", "align-items": "flex-start", padding: "calc(1 * var(--rem))" } }, Wo = {
3491
3587
  key: 0,
3492
3588
  class: "circle-pulse"
3493
- }, Go = {
3589
+ }, jo = {
3494
3590
  key: 2,
3495
3591
  class: "menu-container"
3496
3592
  };
3497
- function No(e, t, n, s, i, o) {
3498
- const r = u("CIcon"), g = u("CButton"), h = u("MenuBlocks"), y = u("Design"), w = u("Fields"), k = u("ExtensionTab"), D = u("DocumentGeneralSettings"), T = u("Simplebar"), v = u("DocumentGuide");
3593
+ function Zo(e, t, n, s, i, o) {
3594
+ const r = m("CIcon"), g = m("CButton"), h = m("MenuBlocks"), y = m("Design"), w = m("Fields"), k = m("ExtensionTab"), D = m("DocumentGeneralSettings"), T = m("Simplebar"), v = m("DocumentGuide");
3499
3595
  return l(), p("div", null, [
3500
3596
  a("div", {
3501
3597
  style: z([{ width: `${n.width}px` }, n.fixed && { zIndex: 999 }]),
@@ -3509,25 +3605,25 @@ function No(e, t, n, s, i, o) {
3509
3605
  a("div", {
3510
3606
  style: z([{ width: `${n.width}px` }, { height: "100%", "font-size": "14px", "border-radius": "0 8px 8px 0", "box-shadow": "0 10px 20px rgba(0, 0, 0, 0.2)" }])
3511
3607
  }, [
3512
- n.isLegacyTemplate ? C("", !0) : (l(), p("div", zo, [
3608
+ n.isLegacyTemplate ? C("", !0) : (l(), p("div", Ho, [
3513
3609
  a("div", {
3514
- class: B([{ "is-active": i.tab === "blocks" }, "tab-item"]),
3610
+ class: F([{ "is-active": i.tab === "blocks" }, "tab-item"]),
3515
3611
  onClick: t[1] || (t[1] = (f) => i.tab = "blocks"),
3516
3612
  textContent: d(e.$t("tabs.blocks"))
3517
- }, null, 10, Ro),
3613
+ }, null, 10, Uo),
3518
3614
  a("div", {
3519
- class: B([{ "is-active": i.tab === "design" }, "tab-item"]),
3615
+ class: F([{ "is-active": i.tab === "design" }, "tab-item"]),
3520
3616
  onClick: t[2] || (t[2] = (f) => i.tab = "design"),
3521
3617
  textContent: d(e.$t("tabs.design"))
3522
- }, null, 10, Oo),
3618
+ }, null, 10, qo),
3523
3619
  a("div", {
3524
- class: B([{ "is-active": i.tab === "fields" }, "tab-item"]),
3620
+ class: F([{ "is-active": i.tab === "fields" }, "tab-item"]),
3525
3621
  onClick: t[3] || (t[3] = (f) => i.tab = "fields"),
3526
3622
  textContent: d(e.$t("tabs.fields"))
3527
- }, null, 10, Uo),
3623
+ }, null, 10, Go),
3528
3624
  o.extensionTabType ? (l(), p("div", {
3529
3625
  key: 0,
3530
- class: B([{ "is-active": i.tab === "extension" }, "tab-item"]),
3626
+ class: F([{ "is-active": i.tab === "extension" }, "tab-item"]),
3531
3627
  onClick: t[4] || (t[4] = (f) => i.tab = "extension")
3532
3628
  }, [
3533
3629
  a("div", {
@@ -3548,7 +3644,7 @@ function No(e, t, n, s, i, o) {
3548
3644
  ], 4)
3549
3645
  ], 2)) : C("", !0),
3550
3646
  a("div", {
3551
- class: B([{ "is-active": i.tab === "generalSettings" }, "tab-item ml-[2px]"]),
3647
+ class: F([{ "is-active": i.tab === "generalSettings" }, "tab-item ml-[2px]"]),
3552
3648
  onClick: t[5] || (t[5] = (f) => i.tab = "generalSettings")
3553
3649
  }, [
3554
3650
  c(r, {
@@ -3567,8 +3663,8 @@ function No(e, t, n, s, i, o) {
3567
3663
  "can-use-blocks": n.canUseBlocks,
3568
3664
  onBlockAdded: t[6] || (t[6] = (f) => n.fixed ? e.$emit("close") : null)
3569
3665
  }, {
3570
- footer: m(() => [
3571
- a("div", Ho, [
3666
+ footer: u(() => [
3667
+ a("div", No, [
3572
3668
  c(g, {
3573
3669
  "icon-left": "help",
3574
3670
  type: "none",
@@ -3577,18 +3673,18 @@ function No(e, t, n, s, i, o) {
3577
3673
  style: { position: "relative" },
3578
3674
  onClick: o.openGuide
3579
3675
  }, {
3580
- default: m(() => [
3676
+ default: u(() => [
3581
3677
  x(d(e.$t("guideButton")) + " ", 1),
3582
- i.showGuideNotification ? (l(), p("div", qo)) : C("", !0)
3678
+ i.showGuideNotification ? (l(), p("div", Wo)) : C("", !0)
3583
3679
  ]),
3584
3680
  _: 1
3585
3681
  }, 8, ["onClick"])
3586
3682
  ])
3587
3683
  ]),
3588
3684
  _: 1
3589
- }, 8, ["_document", "set", "remove-value", "fixed", "can-use-blocks"])) : (l(), p("div", Go, [
3685
+ }, 8, ["_document", "set", "remove-value", "fixed", "can-use-blocks"])) : (l(), p("div", jo, [
3590
3686
  c(T, { class: "h-full w-full" }, {
3591
- default: m(() => [
3687
+ default: u(() => [
3592
3688
  i.tab === "design" ? (l(), b(y, {
3593
3689
  key: 0,
3594
3690
  _document: n.state,
@@ -3630,7 +3726,7 @@ function No(e, t, n, s, i, o) {
3630
3726
  rounding: "data.formSettings.rounding"
3631
3727
  },
3632
3728
  offset: n.fixed ? 0 : n.width,
3633
- class: B({ "!top-0 rounded-sm": n.isLegacyTemplate }),
3729
+ class: F({ "!top-0 rounded-sm": n.isLegacyTemplate }),
3634
3730
  onInput: t[8] || (t[8] = ({ key: f, value: _ }) => n.set({ key: f, value: _ }))
3635
3731
  }, null, 8, ["_document", "offset", "class"])) : C("", !0)
3636
3732
  ]),
@@ -3645,12 +3741,12 @@ function No(e, t, n, s, i, o) {
3645
3741
  ], 4)
3646
3742
  ]);
3647
3743
  }
3648
- const Wo = /* @__PURE__ */ F(Eo, [["render", No], ["__scopeId", "data-v-98f898b4"]]), Qe = (e, t, n = "children") => {
3744
+ const Ko = /* @__PURE__ */ L(Oo, [["render", Zo], ["__scopeId", "data-v-98f898b4"]]), Qe = (e, t, n = "children") => {
3649
3745
  if (!e) return;
3650
3746
  t(e);
3651
3747
  const s = e[n];
3652
3748
  !s && !Array.isArray(s) || s.forEach((i) => Qe(i, t));
3653
- }, jo = {
3749
+ }, Qo = {
3654
3750
  i18nOptions: {
3655
3751
  namespaces: "DocumentFormContainer",
3656
3752
  messages: {
@@ -3669,15 +3765,15 @@ const Wo = /* @__PURE__ */ F(Eo, [["render", No], ["__scopeId", "data-v-98f898b4
3669
3765
  DragList: ze,
3670
3766
  DragItem: Ee,
3671
3767
  DynamicChapter: zt,
3672
- DocumentFormMenu: Wo,
3673
- DynamicBlock: zn,
3674
- DocumentFormViewRadio: In,
3675
- DocumentFormNav: xn,
3676
- DocumentDrawer: gn,
3768
+ DocumentFormMenu: Ko,
3769
+ DynamicBlock: En,
3770
+ DocumentFormViewRadio: Sn,
3771
+ DocumentFormNav: _n,
3772
+ DocumentDrawer: fn,
3677
3773
  DocumentStyleContainer: Et,
3678
- simplebar: J,
3679
- LogoBanner: Nn,
3680
- IsPremium: ee
3774
+ simplebar: X,
3775
+ LogoBanner: Gn,
3776
+ IsPremium: te
3681
3777
  },
3682
3778
  emits: ["update:view"],
3683
3779
  mixins: [Q],
@@ -3726,25 +3822,25 @@ const Wo = /* @__PURE__ */ F(Eo, [["render", No], ["__scopeId", "data-v-98f898b4
3726
3822
  },
3727
3823
  computed: {
3728
3824
  docTemplate() {
3729
- return M(this._document, "template", null);
3825
+ return P(this._document, "template", null);
3730
3826
  },
3731
3827
  isTemplateEditable() {
3732
- return M(this.docTemplate, "views.read.isEditable", !1);
3828
+ return P(this.docTemplate, "views.read.isEditable", !1);
3733
3829
  },
3734
3830
  canMove() {
3735
3831
  return this.isTemplateEditable && this.isEditView;
3736
3832
  },
3737
3833
  readLayout() {
3738
- return M(this.docTemplate, "views.read.nodes", []);
3834
+ return P(this.docTemplate, "views.read.nodes", []);
3739
3835
  },
3740
3836
  nestedReadLayout() {
3741
3837
  return this._document.getReadLayout({ showHiddenNodes: this.isEditView });
3742
3838
  },
3743
3839
  currency() {
3744
- return M(this._document, "currency");
3840
+ return P(this._document, "currency");
3745
3841
  },
3746
3842
  externalReferences() {
3747
- return M(this._document, "externalReferences") || [];
3843
+ return P(this._document, "externalReferences") || [];
3748
3844
  },
3749
3845
  isEditView() {
3750
3846
  return this.view === "edit";
@@ -3794,7 +3890,7 @@ const Wo = /* @__PURE__ */ F(Eo, [["render", No], ["__scopeId", "data-v-98f898b4
3794
3890
  await Promise.all(
3795
3891
  (e || []).map(async ({ service: t, type: n, typeId: s }) => {
3796
3892
  if (n && s && t && this.$store.getters["settings/isAuthenticatedCRM"](t)) {
3797
- const { data: i } = await te.getFields(
3893
+ const { data: i } = await ne.getFields(
3798
3894
  t,
3799
3895
  { type: n, typeId: s, populated: !0 }
3800
3896
  );
@@ -3809,7 +3905,7 @@ const Wo = /* @__PURE__ */ F(Eo, [["render", No], ["__scopeId", "data-v-98f898b4
3809
3905
  },
3810
3906
  methods: {
3811
3907
  onAddBlockMount(e, t) {
3812
- t && Ut(e) && this.$nextTick(() => Qt(t, { offset: 100 }));
3908
+ t && Ht(e) && this.$nextTick(() => Kt(t, { offset: 100 }));
3813
3909
  },
3814
3910
  onBlockToggleVisible(e, t) {
3815
3911
  const s = [...this.readLayout].findIndex(
@@ -3855,16 +3951,16 @@ const Wo = /* @__PURE__ */ F(Eo, [["render", No], ["__scopeId", "data-v-98f898b4
3855
3951
  Array.isArray(t.packages) && t.packages.forEach((s) => {
3856
3952
  this.setFormValue({
3857
3953
  key: "articles",
3858
- value: M(this._document, "_doc.articles", []).filter(
3954
+ value: P(this._document, "_doc.articles", []).filter(
3859
3955
  ({ packageId: i }) => i !== s.packageId
3860
3956
  )
3861
3957
  });
3862
3958
  });
3863
3959
  const n = Object.assign(
3864
3960
  {},
3865
- M(this._document, "_doc.data.packageGroups")
3961
+ P(this._document, "_doc.data.packageGroups")
3866
3962
  );
3867
- delete n[e], this.setFormValue({ key: "data.packageGroups", value: n }), Object.keys(M(this._document, "_doc.data.packageGroups", {})).length || this.removeFormValue(
3963
+ delete n[e], this.setFormValue({ key: "data.packageGroups", value: n }), Object.keys(P(this._document, "_doc.data.packageGroups", {})).length || this.removeFormValue(
3868
3964
  "template.validationSchema.properties.data.properties.packageGroups"
3869
3965
  );
3870
3966
  },
@@ -3902,26 +3998,26 @@ const Wo = /* @__PURE__ */ F(Eo, [["render", No], ["__scopeId", "data-v-98f898b4
3902
3998
  return e && e.behaviour === "move";
3903
3999
  }
3904
4000
  }
3905
- }, Zo = { class: "h-screen overflow-auto" }, Ko = { class: "relative flex w-full items-center space-x-4" }, Qo = { class: "relative" }, Yo = {
4001
+ }, Yo = { class: "h-screen overflow-auto" }, Jo = { class: "relative flex w-full items-center space-x-4" }, Xo = { class: "relative" }, es = {
3906
4002
  key: 0,
3907
4003
  style: { left: "calc(100% + calc(1.25 * var(--rem)))" },
3908
4004
  class: "absolute inline-flex h-9 cursor-pointer space-x-2 rounded-md bg-gray-300 p-1 backdrop-blur-lg backdrop-saturate-[180%]"
3909
- }, Jo = ["onClick"], Xo = {
4005
+ }, ts = ["onClick"], ns = {
3910
4006
  key: 0,
3911
4007
  class: "drag-drop-empty-list is-placeholder text-gray-400"
3912
- }, es = ["innerHTML"];
3913
- function ts(e, t, n, s, i, o) {
3914
- const r = u("CButton"), g = u("DocumentFormViewRadio"), h = u("CIcon"), y = u("DocumentFormNav"), w = u("DocumentFormMenu"), k = u("DynamicChapter"), D = u("DynamicBlock"), T = u("LogoBanner"), v = u("IsPremium"), f = u("DocumentStyleContainer"), _ = u("portal-target"), $ = u("DocumentDrawer");
3915
- return l(), p("div", Zo, [
4008
+ }, is = ["innerHTML"];
4009
+ function os(e, t, n, s, i, o) {
4010
+ const r = m("CButton"), g = m("DocumentFormViewRadio"), h = m("CIcon"), y = m("DocumentFormNav"), w = m("DocumentFormMenu"), k = m("DynamicChapter"), D = m("DynamicBlock"), T = m("LogoBanner"), v = m("IsPremium"), f = m("DocumentStyleContainer"), _ = m("portal-target"), I = m("DocumentDrawer");
4011
+ return l(), p("div", Yo, [
3916
4012
  a("div", {
3917
- class: B([{
4013
+ class: F([{
3918
4014
  "is-edit-view": o.isEditView,
3919
4015
  "is-empty-list": !o.nestedReadLayout.length
3920
4016
  }, "relative flex min-h-screen flex-row bg-gray-200"])
3921
4017
  }, [
3922
4018
  c(y, { close: n.close }, {
3923
- left: m(() => [
3924
- a("div", Ko, [
4019
+ left: u(() => [
4020
+ a("div", Jo, [
3925
4021
  n.close ? (l(), b(r, {
3926
4022
  key: 0,
3927
4023
  "icon-props": { size: 20 },
@@ -3952,11 +4048,11 @@ function ts(e, t, n, s, i, o) {
3952
4048
  icon: "sidebar",
3953
4049
  onClick: j(i.drawerState.toggleLeft, ["stop"])
3954
4050
  }, null, 8, ["onClick"]),
3955
- A(e.$slots, "nav-left", {}, void 0, !0)
4051
+ M(e.$slots, "nav-left", {}, void 0, !0)
3956
4052
  ])
3957
4053
  ]),
3958
- center: m(() => [
3959
- a("div", Qo, [
4054
+ center: u(() => [
4055
+ a("div", Xo, [
3960
4056
  G(c(g, {
3961
4057
  small: e.mq === "sm",
3962
4058
  "model-value": n.view,
@@ -3964,8 +4060,8 @@ function ts(e, t, n, s, i, o) {
3964
4060
  }, null, 8, ["small", "model-value"]), [
3965
4061
  [ve, o.nestedReadLayout.length]
3966
4062
  ]),
3967
- !o.isEditView && !["sm", "md", "lg"].includes(e.mq) ? (l(), p("div", Yo, [
3968
- (l(), p(I, null, E(["desktop", "tablet", "mobile"], (S) => a("div", {
4063
+ !o.isEditView && !["sm", "md", "lg"].includes(e.mq) ? (l(), p("div", es, [
4064
+ (l(), p($, null, E(["desktop", "tablet", "mobile"], (S) => a("div", {
3969
4065
  key: S,
3970
4066
  style: z(
3971
4067
  i.previewDevice === S && {
@@ -3975,18 +4071,18 @@ function ts(e, t, n, s, i, o) {
3975
4071
  }
3976
4072
  ),
3977
4073
  class: "pointer inline-flex select-none items-center justify-center rounded-md p-[10px] font-semibold text-gray-700 transition duration-150 ease-linear",
3978
- onClick: (H) => i.previewDevice = S
4074
+ onClick: (U) => i.previewDevice = S
3979
4075
  }, [
3980
4076
  c(h, {
3981
4077
  type: S,
3982
4078
  size: "20"
3983
4079
  }, null, 8, ["type"])
3984
- ], 12, Jo)), 64))
4080
+ ], 12, ts)), 64))
3985
4081
  ])) : C("", !0)
3986
4082
  ])
3987
4083
  ]),
3988
- right: m(() => [
3989
- A(e.$slots, "nav-right", {}, void 0, !0)
4084
+ right: u(() => [
4085
+ M(e.$slots, "nav-right", {}, void 0, !0)
3990
4086
  ]),
3991
4087
  _: 3
3992
4088
  }, 8, ["close"]),
@@ -4005,7 +4101,7 @@ function ts(e, t, n, s, i, o) {
4005
4101
  ]),
4006
4102
  a("div", {
4007
4103
  ref: "scroll-body",
4008
- class: B([{
4104
+ class: F([{
4009
4105
  "device-offset": o.isEditView
4010
4106
  }, "doc-scroll-container flex w-full justify-center"]),
4011
4107
  style: z(
@@ -4015,7 +4111,7 @@ function ts(e, t, n, s, i, o) {
4015
4111
  )
4016
4112
  }, [
4017
4113
  a("div", {
4018
- class: B([[
4114
+ class: F([[
4019
4115
  {
4020
4116
  "is-device-edit": o.isEditView,
4021
4117
  "is-empty": !o.nestedReadLayout.length
@@ -4024,23 +4120,23 @@ function ts(e, t, n, s, i, o) {
4024
4120
  o.isEditView && "mx-auto min-h-full w-[1200px] max-w-full overflow-hidden rounded-md px-0 shadow-[0_20px_35px_-8px_hsla(0,0%,0%,0.27)] md:max-w-[90%]"
4025
4121
  ], "list-container"])
4026
4122
  }, [
4027
- !o.nestedReadLayout.length && !o.isFixedSidebar ? (l(), p("div", Xo, [
4123
+ !o.nestedReadLayout.length && !o.isFixedSidebar ? (l(), p("div", ns, [
4028
4124
  t[8] || (t[8] = pt('<div style="position:relative;" data-v-7f3fffc7><div class="drag-drop-illustration-block" data-v-7f3fffc7><div data-v-7f3fffc7></div><div data-v-7f3fffc7></div></div><svg class="drag-drop-illustration" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" data-v-7f3fffc7><path class="drag-drop-illustration-finger" d="M8 0a4 4 0 00-2.7 1C4.6 1.6 4 2.7 4 4v21.4c-.4.2-.8.2-1.7 1A7.2 7.2 0 000 31.8c0 2 .8 3.8 1 4.5L4 42s-.1 0 0 0c1.4 3.1 4.5 5 8 5h9c5 0 9-4 9-9V22c0-.8-.1-2-.7-3-.5-1-1.7-2-3.3-2-1 0-2 .4-2.6.9 0-.3-.1-.7-.3-1-.6-1-1.7-1.9-3.1-1.9a4 4 0 00-2.7 1c-.6-1.1-1.7-2-3.3-2-.8 0-1.4.2-2 .6V4a4 4 0 00-4-4z" fill="#000" fill-rule="nonzero" data-v-7f3fffc7></path><path class="drag-drop-illustration-grabbing" transform="translate(0 11)" d="M14 1c-.8 0-1.8.2-2.6.8l-.9 1a4 4 0 00-5.2.2C4.6 3.6 4 4.7 4 5.9V14c-1.7.7-4 3-4 7 0 2.2.9 4.2 1 4.5L3.9 31c1.5 3.1 4.6 5 8 5H21c5 0 9-4 9-9V9c0-4.4-2.5-5-4-5-.7 0-1.5.1-2.3.7C23 2.5 21.4 2 20 2c-1 0-2 .3-2.6.8l-.6-.9A4 4 0 0014 1z" fill="#000" fill-rule="nonzero" data-v-7f3fffc7></path></svg></div>', 1)),
4029
4125
  a("div", {
4030
4126
  class: "text-center",
4031
4127
  style: { "max-width": "22ch" },
4032
4128
  innerHTML: e.$t("emptyBlockPlaceholderLarge")
4033
- }, null, 8, es)
4129
+ }, null, 8, is)
4034
4130
  ])) : C("", !0),
4035
4131
  (l(), b(W(o.isEditView ? "div" : "simplebar"), { class: "h-full w-full" }, {
4036
- default: m(() => {
4037
- var S, H;
4132
+ default: u(() => {
4133
+ var S, U;
4038
4134
  return [
4039
4135
  c(f, {
4040
4136
  class: "relative h-full w-full",
4041
- "input-style": ((H = (S = n._document) == null ? void 0 : S.data) == null ? void 0 : H.css) || null
4137
+ "input-style": ((U = (S = n._document) == null ? void 0 : S.data) == null ? void 0 : U.css) || null
4042
4138
  }, {
4043
- default: m(() => [
4139
+ default: u(() => [
4044
4140
  o.nestedReadLayout ? (l(), b(W(o.dndEnabled ? "DragList" : "div"), {
4045
4141
  key: 0,
4046
4142
  handle: ".NO-SELECTOR",
@@ -4057,18 +4153,18 @@ function ts(e, t, n, s, i, o) {
4057
4153
  onDragEnd: t[4] || (t[4] = (V) => i.isDragging = !1),
4058
4154
  onDrop: t[5] || (t[5] = (V) => o.onBlockListChange("blocks-list", V))
4059
4155
  }, {
4060
- default: m(() => [
4061
- (l(!0), p(I, null, E(n._document.getReadLayout({
4156
+ default: u(() => [
4157
+ (l(!0), p($, null, E(n._document.getReadLayout({
4062
4158
  showHiddenNodes: o.isEditView
4063
4159
  }), (V, se) => (l(), b(W(o.dndEnabled ? "DragItem" : "div"), {
4064
4160
  key: V.nodeId,
4065
- class: B([
4161
+ class: F([
4066
4162
  {
4067
4163
  "drag-item": o.dndEnabled
4068
4164
  }
4069
4165
  ])
4070
4166
  }, {
4071
- default: m(() => [
4167
+ default: u(() => [
4072
4168
  c(D, {
4073
4169
  ref_for: !0,
4074
4170
  ref: V.nodeId,
@@ -4078,12 +4174,12 @@ function ts(e, t, n, s, i, o) {
4078
4174
  "block-type": V.itemType,
4079
4175
  "is-visible": V.isVisible,
4080
4176
  "show-edit-button": !!V.showEditButton,
4081
- onRemove: (L) => o.onBlockRemove(V, se),
4082
- onMove: (L) => o.onBlockMove(L, se),
4083
- onEdit: t[2] || (t[2] = (L) => i.drawerState.openSection = L),
4084
- onToggleVisible: (L) => o.onBlockToggleVisible(V, L)
4177
+ onRemove: (B) => o.onBlockRemove(V, se),
4178
+ onMove: (B) => o.onBlockMove(B, se),
4179
+ onEdit: t[2] || (t[2] = (B) => i.drawerState.openSection = B),
4180
+ onToggleVisible: (B) => o.onBlockToggleVisible(V, B)
4085
4181
  }, {
4086
- default: m(() => [
4182
+ default: u(() => [
4087
4183
  c(k, {
4088
4184
  "component-name": V.componentName,
4089
4185
  "component-props": {
@@ -4094,9 +4190,9 @@ function ts(e, t, n, s, i, o) {
4094
4190
  },
4095
4191
  children: V.children,
4096
4192
  "is-visible": V.isVisible,
4097
- "on-input": ({ key: L, value: ce, options: Xe }) => n.setFormValue({ key: L, value: ce, options: Xe }),
4098
- "on-remove": ({ key: L }) => n.removeFormValue(L),
4099
- "on-mount": (L) => o.onAddBlockMount(V.nodeId, L)
4193
+ "on-input": ({ key: B, value: ce, options: Xe }) => n.setFormValue({ key: B, value: ce, options: Xe }),
4194
+ "on-remove": ({ key: B }) => n.removeFormValue(B),
4195
+ "on-mount": (B) => o.onAddBlockMount(V.nodeId, B)
4100
4196
  }, null, 8, ["component-name", "component-props", "children", "is-visible", "on-input", "on-remove", "on-mount"])
4101
4197
  ]),
4102
4198
  _: 2
@@ -4108,7 +4204,7 @@ function ts(e, t, n, s, i, o) {
4108
4204
  _: 1
4109
4205
  }, 40, ["should-animate-drop"])) : C("", !0),
4110
4206
  n.canShowBanner ? (l(), b(v, { key: 1 }, {
4111
- default: m(({ isProLike: V }) => [
4207
+ default: u(({ isProLike: V }) => [
4112
4208
  !o.isEditView && !V ? (l(), b(T, {
4113
4209
  key: 0,
4114
4210
  position: "sticky"
@@ -4125,7 +4221,7 @@ function ts(e, t, n, s, i, o) {
4125
4221
  }))
4126
4222
  ], 2)
4127
4223
  ], 6),
4128
- (l(), b($, {
4224
+ (l(), b(I, {
4129
4225
  id: "settingsDrawer",
4130
4226
  key: "settingsDrawer",
4131
4227
  open: !!i.drawerState.openSection,
@@ -4133,7 +4229,7 @@ function ts(e, t, n, s, i, o) {
4133
4229
  position: "right",
4134
4230
  "onUpdate:open": t[7] || (t[7] = (S) => i.drawerState.openSection = null)
4135
4231
  }, {
4136
- default: m(() => [
4232
+ default: u(() => [
4137
4233
  c(r, {
4138
4234
  "icon-props": { size: 20 },
4139
4235
  size: "normal",
@@ -4151,7 +4247,7 @@ function ts(e, t, n, s, i, o) {
4151
4247
  ], 2)
4152
4248
  ]);
4153
4249
  }
4154
- const ns = /* @__PURE__ */ F(jo, [["render", ts], ["__scopeId", "data-v-7f3fffc7"]]), is = {
4250
+ const ss = /* @__PURE__ */ L(Qo, [["render", os], ["__scopeId", "data-v-7f3fffc7"]]), as = {
4155
4251
  name: "DocumentSend",
4156
4252
  i18nOptions: {
4157
4253
  namespaces: "documentSend",
@@ -4182,13 +4278,13 @@ const ns = /* @__PURE__ */ F(jo, [["render", ts], ["__scopeId", "data-v-7f3fffc7
4182
4278
  },
4183
4279
  components: {
4184
4280
  Drawer: Ze,
4185
- SendForm: Yt,
4281
+ SendForm: Qt,
4186
4282
  CCheckbox: Oe,
4187
4283
  CIcon: ht,
4188
4284
  CButton: Re,
4189
- ProBadge: We,
4190
- IsPremium: ee,
4191
- IsPremiumPreStep: X
4285
+ ProBadge: je,
4286
+ IsPremium: te,
4287
+ IsPremiumPreStep: ee
4192
4288
  },
4193
4289
  mixins: [
4194
4290
  oe([], {
@@ -4234,7 +4330,7 @@ const ns = /* @__PURE__ */ F(jo, [["render", ts], ["__scopeId", "data-v-7f3fffc7
4234
4330
  };
4235
4331
  },
4236
4332
  computed: {
4237
- ...R({
4333
+ ...H({
4238
4334
  accountConfigName: "application/accountConfigName"
4239
4335
  }),
4240
4336
  isOffertaCxt() {
@@ -4247,10 +4343,10 @@ const ns = /* @__PURE__ */ F(jo, [["render", ts], ["__scopeId", "data-v-7f3fffc7
4247
4343
  return this.isOffertaCxt ? "send-header" : "footer";
4248
4344
  },
4249
4345
  hasAnswerBlock() {
4250
- return (M(this._document, "template.views.read.nodes") || []).some((t) => t.itemType === "answer");
4346
+ return (P(this._document, "template.views.read.nodes") || []).some((t) => t.itemType === "answer");
4251
4347
  },
4252
4348
  tooManyClients() {
4253
- return (M(this._document, "clients") || []).length > 15;
4349
+ return (P(this._document, "clients") || []).length > 15;
4254
4350
  }
4255
4351
  },
4256
4352
  watch: {
@@ -4265,7 +4361,7 @@ const ns = /* @__PURE__ */ F(jo, [["render", ts], ["__scopeId", "data-v-7f3fffc7
4265
4361
  },
4266
4362
  methods: {
4267
4363
  ...Z({
4268
- createTemplate: P.DO_CREATE_TEMPLATE
4364
+ createTemplate: A.DO_CREATE_TEMPLATE
4269
4365
  }),
4270
4366
  open() {
4271
4367
  this.isOpen = !0;
@@ -4274,7 +4370,7 @@ const ns = /* @__PURE__ */ F(jo, [["render", ts], ["__scopeId", "data-v-7f3fffc7
4274
4370
  if (!this._document) return;
4275
4371
  const e = {
4276
4372
  ...this._document.copyTemplateDocDefault(),
4277
- name: M(this._document, "name") || this.$t("_common:untitled"),
4373
+ name: P(this._document, "name") || this.$t("_common:untitled"),
4278
4374
  _id: void 0,
4279
4375
  id: void 0,
4280
4376
  isVisible: !0
@@ -4292,27 +4388,27 @@ const ns = /* @__PURE__ */ F(jo, [["render", ts], ["__scopeId", "data-v-7f3fffc7
4292
4388
  }));
4293
4389
  }
4294
4390
  }
4295
- }, os = {
4391
+ }, ls = {
4296
4392
  key: "1",
4297
4393
  class: "mb-8 flex rounded-lg border border-red-200 bg-red-50 p-3"
4298
- }, ss = { class: "pl-2" }, as = ["textContent"], ls = { class: "text-sm text-red-600 text-opacity-80" }, rs = {
4394
+ }, rs = { class: "pl-2" }, ds = ["textContent"], cs = { class: "text-sm text-red-600 text-opacity-80" }, us = {
4299
4395
  key: "2",
4300
4396
  class: "mb-8 flex rounded-lg border border-red-200 bg-red-50 p-3"
4301
- }, ds = { class: "pl-2" }, cs = ["textContent"], us = { class: "mb-4 text-sm text-red-600 text-opacity-80" }, ms = {
4397
+ }, ms = { class: "pl-2" }, ps = ["textContent"], hs = { class: "mb-4 text-sm text-red-600 text-opacity-80" }, fs = {
4302
4398
  for: "checkbox-save-as-temp",
4303
4399
  class: "inline-flex cursor-pointer select-none items-center py-2 text-[12px] font-[500] text-gray-600"
4304
- }, ps = ["onClick"], hs = { style: { "padding-left": "0.5em" } };
4305
- function fs(e, t, n, s, i, o) {
4306
- const r = u("CButton"), g = u("CIcon"), h = u("CCheckbox"), y = u("ProBadge"), w = u("IsPremiumPreStep"), k = u("IsPremium"), D = u("SendForm"), T = ie("tooltip");
4400
+ }, gs = ["onClick"], ys = { style: { "padding-left": "0.5em" } };
4401
+ function vs(e, t, n, s, i, o) {
4402
+ const r = m("CButton"), g = m("CIcon"), h = m("CCheckbox"), y = m("ProBadge"), w = m("IsPremiumPreStep"), k = m("IsPremium"), D = m("SendForm"), T = ie("tooltip");
4307
4403
  return e.mq !== "sm" || i.isOpen ? (l(), b(W(e.mq === "sm" ? "div" : "Drawer"), {
4308
4404
  key: 0,
4309
4405
  modelValue: i.isOpen,
4310
4406
  "onUpdate:modelValue": t[3] || (t[3] = (v) => i.isOpen = v),
4311
4407
  placement: "right"
4312
4408
  }, {
4313
- default: m(() => [
4409
+ default: u(() => [
4314
4410
  a("div", {
4315
- class: B([{
4411
+ class: F([{
4316
4412
  "is-fullscreen": e.mq === "sm"
4317
4413
  }, "send-modal font-inter"])
4318
4414
  }, [
@@ -4331,13 +4427,13 @@ function fs(e, t, n, s, i, o) {
4331
4427
  "on-save-document": o.onSaveDoc,
4332
4428
  "use-scroll": ""
4333
4429
  }, {
4334
- send: m(() => t[4] || (t[4] = [])),
4335
- [o.saveTemplateSlot]: m(() => [
4336
- a("label", ms, [
4430
+ send: u(() => t[4] || (t[4] = [])),
4431
+ [o.saveTemplateSlot]: u(() => [
4432
+ a("label", fs, [
4337
4433
  c(k, null, {
4338
- default: m(({ canCreateTemplate: v }) => [
4434
+ default: u(({ canCreateTemplate: v }) => [
4339
4435
  c(w, { feature: "saveDocTemplate" }, {
4340
- default: m(({ onClick: f }) => [
4436
+ default: u(({ onClick: f }) => [
4341
4437
  a("div", {
4342
4438
  class: "flex items-center",
4343
4439
  onClick: (_) => o.onClickSaveAsTemplate({
@@ -4353,7 +4449,7 @@ function fs(e, t, n, s, i, o) {
4353
4449
  size: "small",
4354
4450
  type: "secondary"
4355
4451
  }, null, 8, ["modelValue"]),
4356
- a("div", hs, [
4452
+ a("div", ys, [
4357
4453
  x(d(e.$t("saveDocAsTemplate")) + " ", 1),
4358
4454
  G(c(g, {
4359
4455
  type: "info",
@@ -4366,7 +4462,7 @@ function fs(e, t, n, s, i, o) {
4366
4462
  key: 0,
4367
4463
  class: "ml-2 self-center"
4368
4464
  }))
4369
- ], 8, ps)
4465
+ ], 8, gs)
4370
4466
  ]),
4371
4467
  _: 2
4372
4468
  }, 1024)
@@ -4375,8 +4471,8 @@ function fs(e, t, n, s, i, o) {
4375
4471
  })
4376
4472
  ])
4377
4473
  ]),
4378
- default: m(() => [
4379
- o.tooManyClients ? (l(), p("div", os, [
4474
+ default: u(() => [
4475
+ o.tooManyClients ? (l(), p("div", ls, [
4380
4476
  a("div", null, [
4381
4477
  c(g, {
4382
4478
  type: "error",
@@ -4385,16 +4481,16 @@ function fs(e, t, n, s, i, o) {
4385
4481
  })
4386
4482
  ]),
4387
4483
  a("div", null, [
4388
- a("div", ss, [
4484
+ a("div", rs, [
4389
4485
  a("div", {
4390
4486
  class: "text-sm font-semibold text-red-600",
4391
4487
  textContent: d(e.$t("tooManyClientsTitle"))
4392
- }, null, 8, as),
4393
- a("div", ls, d(e.$t("tooManyClientsText")), 1)
4488
+ }, null, 8, ds),
4489
+ a("div", cs, d(e.$t("tooManyClientsText")), 1)
4394
4490
  ])
4395
4491
  ])
4396
4492
  ])) : C("", !0),
4397
- o.hasAnswerBlock ? C("", !0) : (l(), p("div", rs, [
4493
+ o.hasAnswerBlock ? C("", !0) : (l(), p("div", us, [
4398
4494
  a("div", null, [
4399
4495
  c(g, {
4400
4496
  type: "error",
@@ -4403,12 +4499,12 @@ function fs(e, t, n, s, i, o) {
4403
4499
  })
4404
4500
  ]),
4405
4501
  a("div", null, [
4406
- a("div", ds, [
4502
+ a("div", ms, [
4407
4503
  a("div", {
4408
4504
  class: "text-sm font-semibold text-red-600",
4409
4505
  textContent: d(e.$t("signMissingTitle"))
4410
- }, null, 8, cs),
4411
- a("div", us, d(e.$t("signMissingText")), 1)
4506
+ }, null, 8, ps),
4507
+ a("div", hs, d(e.$t("signMissingText")), 1)
4412
4508
  ]),
4413
4509
  c(r, {
4414
4510
  type: "secondary",
@@ -4416,7 +4512,7 @@ function fs(e, t, n, s, i, o) {
4416
4512
  size: "small",
4417
4513
  onClick: t[1] || (t[1] = (v) => s.addBlock({ sectionKey: "answer", document: e._document }))
4418
4514
  }, {
4419
- default: m(() => [
4515
+ default: u(() => [
4420
4516
  x(d(e.$t("signMissingAdd")), 1)
4421
4517
  ]),
4422
4518
  _: 1
@@ -4431,7 +4527,7 @@ function fs(e, t, n, s, i, o) {
4431
4527
  _: 1
4432
4528
  }, 8, ["modelValue"])) : C("", !0);
4433
4529
  }
4434
- const gs = /* @__PURE__ */ F(is, [["render", fs], ["__scopeId", "data-v-641e0baa"]]), ys = {
4530
+ const Cs = /* @__PURE__ */ L(as, [["render", vs], ["__scopeId", "data-v-641e0baa"]]), bs = {
4435
4531
  i18nOptions: {
4436
4532
  namespaces: "DocumentTemplateFormModal",
4437
4533
  messages: {
@@ -4461,7 +4557,7 @@ const gs = /* @__PURE__ */ F(is, [["render", fs], ["__scopeId", "data-v-641e0baa
4461
4557
  },
4462
4558
  name: "DocumentTemplateFormModal",
4463
4559
  components: {
4464
- CCallout: Xt,
4560
+ CCallout: Jt,
4465
4561
  CCheckbox: Oe,
4466
4562
  CField: _e
4467
4563
  },
@@ -4486,7 +4582,7 @@ const gs = /* @__PURE__ */ F(is, [["render", fs], ["__scopeId", "data-v-641e0baa
4486
4582
  },
4487
4583
  setup() {
4488
4584
  return {
4489
- v$: je()
4585
+ v$: We()
4490
4586
  };
4491
4587
  },
4492
4588
  data() {
@@ -4500,12 +4596,12 @@ const gs = /* @__PURE__ */ F(is, [["render", fs], ["__scopeId", "data-v-641e0baa
4500
4596
  validations() {
4501
4597
  return {
4502
4598
  name: {
4503
- required: jt(!this.updateExistingDocTemplate)
4599
+ required: Nt(!this.updateExistingDocTemplate)
4504
4600
  }
4505
4601
  };
4506
4602
  },
4507
4603
  computed: {
4508
- ...R({
4604
+ ...H({
4509
4605
  isPosting: "templates/isPosting",
4510
4606
  templateById: "templates/byId",
4511
4607
  docById: "documents2/byId",
@@ -4534,9 +4630,9 @@ const gs = /* @__PURE__ */ F(is, [["render", fs], ["__scopeId", "data-v-641e0baa
4534
4630
  },
4535
4631
  methods: {
4536
4632
  ...Z({
4537
- loadTemplate: P.DO_LOAD_TEMPLATE,
4538
- saveTemplate: P.SAVE_TEMPLATE_FORM,
4539
- updateSettings: P.UPDATE_SETTINGS
4633
+ loadTemplate: A.DO_LOAD_TEMPLATE,
4634
+ saveTemplate: A.SAVE_TEMPLATE_FORM,
4635
+ updateSettings: A.UPDATE_SETTINGS
4540
4636
  }),
4541
4637
  async onSave() {
4542
4638
  if (!this.document && !this.template && (ft.error('Missing prop "document" or "template"'), this.$emit("close")), this.v$.$invalid) return;
@@ -4589,14 +4685,14 @@ const gs = /* @__PURE__ */ F(is, [["render", fs], ["__scopeId", "data-v-641e0baa
4589
4685
  this.canUpdateExistingDocTemplate = !1;
4590
4686
  }
4591
4687
  }
4592
- }, vs = { class: "t-root font-inter" }, Cs = { style: { "font-size": "18px", "font-weight": "700", "text-align": "center", "margin-bottom": "1em" } }, bs = { key: 1 }, ks = { class: "text-gray-600" }, ws = { key: 2 }, _s = { class: "text-gray-600" };
4593
- function xs(e, t, n, s, i, o) {
4594
- const r = u("CCallout"), g = u("CInput"), h = u("CField"), y = u("CCheckbox"), w = u("CButton");
4595
- return l(), p("div", vs, [
4596
- a("div", Cs, d(n.template ? e.$t("_common:edit", { thing: e.$t("_common:name") }) : e.$t("_common:save", { thing: e.$t("_common:template") })), 1),
4688
+ }, ks = { class: "t-root font-inter" }, ws = { style: { "font-size": "18px", "font-weight": "700", "text-align": "center", "margin-bottom": "1em" } }, _s = { key: 1 }, xs = { class: "text-gray-600" }, Ts = { key: 2 }, Ds = { class: "text-gray-600" };
4689
+ function Ss(e, t, n, s, i, o) {
4690
+ const r = m("CCallout"), g = m("CInput"), h = m("CField"), y = m("CCheckbox"), w = m("CButton");
4691
+ return l(), p("div", ks, [
4692
+ a("div", ws, d(n.template ? e.$t("_common:edit", { thing: e.$t("_common:name") }) : e.$t("_common:save", { thing: e.$t("_common:template") })), 1),
4597
4693
  a("div", null, [
4598
4694
  n.template ? C("", !0) : (l(), b(r, { key: 0 }, {
4599
- default: m(() => [
4695
+ default: u(() => [
4600
4696
  x(d(e.$t("calloutDescription")), 1)
4601
4697
  ]),
4602
4698
  _: 1
@@ -4607,7 +4703,7 @@ function xs(e, t, n, s, i, o) {
4607
4703
  label: e.$t("_common:name").capitalize(),
4608
4704
  "label-position": "inside"
4609
4705
  }, {
4610
- default: m(() => [
4706
+ default: u(() => [
4611
4707
  c(g, {
4612
4708
  ref: "input",
4613
4709
  "model-value": i.updateExistingDocTemplate ? n.document.template.name : i.name,
@@ -4621,17 +4717,17 @@ function xs(e, t, n, s, i, o) {
4621
4717
  ]),
4622
4718
  _: 1
4623
4719
  }, 8, ["vuelidate", "vuelidate-messages", "label"]),
4624
- n.document && n.document.template.id && i.canUpdateExistingDocTemplate ? (l(), p("div", bs, [
4720
+ n.document && n.document.template.id && i.canUpdateExistingDocTemplate ? (l(), p("div", _s, [
4625
4721
  c(h, { style: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, {
4626
- default: m(() => [
4722
+ default: u(() => [
4627
4723
  c(y, {
4628
4724
  modelValue: i.updateExistingDocTemplate,
4629
4725
  "onUpdate:modelValue": t[1] || (t[1] = (k) => i.updateExistingDocTemplate = k),
4630
4726
  type: "secondary",
4631
4727
  size: "normal"
4632
4728
  }, {
4633
- default: m(() => [
4634
- a("div", ks, d(e.$t("updateExisting")), 1)
4729
+ default: u(() => [
4730
+ a("div", xs, d(e.$t("updateExisting")), 1)
4635
4731
  ]),
4636
4732
  _: 1
4637
4733
  }, 8, ["modelValue"])
@@ -4639,17 +4735,17 @@ function xs(e, t, n, s, i, o) {
4639
4735
  _: 1
4640
4736
  })
4641
4737
  ])) : C("", !0),
4642
- n.document && n.document.clients.length && n.showKeepClientsOption ? (l(), p("div", ws, [
4738
+ n.document && n.document.clients.length && n.showKeepClientsOption ? (l(), p("div", Ts, [
4643
4739
  c(h, { style: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, {
4644
- default: m(() => [
4740
+ default: u(() => [
4645
4741
  c(y, {
4646
4742
  modelValue: i.keepClients,
4647
4743
  "onUpdate:modelValue": t[2] || (t[2] = (k) => i.keepClients = k),
4648
4744
  type: "secondary",
4649
4745
  size: "normal"
4650
4746
  }, {
4651
- default: m(() => [
4652
- a("div", _s, d(e.$t("keepClients")), 1)
4747
+ default: u(() => [
4748
+ a("div", Ds, d(e.$t("keepClients")), 1)
4653
4749
  ]),
4654
4750
  _: 1
4655
4751
  }, 8, ["modelValue"])
@@ -4666,37 +4762,37 @@ function xs(e, t, n, s, i, o) {
4666
4762
  style: { "margin-top": "1.5em" },
4667
4763
  onClick: o.onSave
4668
4764
  }, {
4669
- default: m(() => [
4765
+ default: u(() => [
4670
4766
  x(d(o.actionButtonText), 1)
4671
4767
  ]),
4672
4768
  _: 1
4673
4769
  }, 8, ["loading", "onClick"])
4674
4770
  ]);
4675
4771
  }
4676
- const Ye = /* @__PURE__ */ F(ys, [["render", xs], ["__scopeId", "data-v-c9e15ed5"]]);
4677
- var me, Le;
4678
- function Ts() {
4679
- if (Le) return me;
4680
- Le = 1;
4772
+ const Ye = /* @__PURE__ */ L(bs, [["render", Ss], ["__scopeId", "data-v-c9e15ed5"]]);
4773
+ var me, Be;
4774
+ function $s() {
4775
+ if (Be) return me;
4776
+ Be = 1;
4681
4777
  function e(t, n, s) {
4682
4778
  return t === t && (s !== void 0 && (t = t <= s ? t : s), n !== void 0 && (t = t >= n ? t : n)), t;
4683
4779
  }
4684
4780
  return me = e, me;
4685
4781
  }
4686
- var pe, Be;
4687
- function Ds() {
4688
- if (Be) return pe;
4689
- Be = 1;
4690
- var e = Ts(), t = gt();
4782
+ var pe, Fe;
4783
+ function Is() {
4784
+ if (Fe) return pe;
4785
+ Fe = 1;
4786
+ var e = $s(), t = gt();
4691
4787
  function n(s, i, o) {
4692
4788
  return o === void 0 && (o = i, i = void 0), o !== void 0 && (o = t(o), o = o === o ? o : 0), i !== void 0 && (i = t(i), i = i === i ? i : 0), e(t(s), i, o);
4693
4789
  }
4694
4790
  return pe = n, pe;
4695
4791
  }
4696
- var Ss = Ds();
4697
- const Is = /* @__PURE__ */ Ue(Ss), $s = {
4792
+ var Ls = Is();
4793
+ const Bs = /* @__PURE__ */ He(Ls), Fs = {
4698
4794
  name: "RemainingTrialButton",
4699
- components: { IsPremium: ee },
4795
+ components: { IsPremium: te },
4700
4796
  i18nOptions: {
4701
4797
  namespace: "RemainingTrialButton",
4702
4798
  messages: {
@@ -4726,13 +4822,13 @@ const Is = /* @__PURE__ */ Ue(Ss), $s = {
4726
4822
  },
4727
4823
  mixins: [Q],
4728
4824
  methods: {
4729
- clamp: Is
4825
+ clamp: Bs
4730
4826
  }
4731
- }, Fs = { class: "relative mr-2 flex h-9 cursor-pointer select-none flex-col justify-center rounded-md bg-gray-200/50 px-2 text-xs font-semibold backdrop-blur-lg backdrop-saturate-150" }, Ls = { class: "text-gray-600" }, Bs = { class: "absolute bottom-1 left-2 right-2 h-[3px] rounded-full bg-gray-300 ring-1 ring-white/10" }, Vs = { class: "w-56 p-4 text-sm" }, Ms = { class: "font-semibold" }, Ps = { class: "bg-primary-100 border-primary-200 text-primary-800 inline-flex rounded-md border px-1.5 py-[3px] text-xs leading-none" }, As = { class: "text-sm text-gray-600" }, Es = { class: "inline-flex rounded-md border border-gray-300 bg-gray-200 px-1.5 py-[3px] text-xs font-semibold leading-none text-gray-600" }, zs = { class: "mt-5" };
4732
- function Rs(e, t, n, s, i, o) {
4733
- const r = u("CButton"), g = u("VDropdown"), h = u("IsPremium"), y = ie("close-popper");
4827
+ }, Vs = { class: "relative mr-2 flex h-9 cursor-pointer select-none flex-col justify-center rounded-md bg-gray-200/50 px-2 text-xs font-semibold backdrop-blur-lg backdrop-saturate-150" }, Ms = { class: "text-gray-600" }, Ps = { class: "absolute bottom-1 left-2 right-2 h-[3px] rounded-full bg-gray-300 ring-1 ring-white/10" }, As = { class: "w-56 p-4 text-sm" }, Es = { class: "font-semibold" }, zs = { class: "bg-primary-100 border-primary-200 text-primary-800 inline-flex rounded-md border px-1.5 py-[3px] text-xs leading-none" }, Rs = { class: "text-sm text-gray-600" }, Os = { class: "inline-flex rounded-md border border-gray-300 bg-gray-200 px-1.5 py-[3px] text-xs font-semibold leading-none text-gray-600" }, Hs = { class: "mt-5" };
4828
+ function Us(e, t, n, s, i, o) {
4829
+ const r = m("CButton"), g = m("VDropdown"), h = m("IsPremium"), y = ie("close-popper");
4734
4830
  return l(), b(h, null, {
4735
- default: m(({
4831
+ default: u(({
4736
4832
  accountType: w,
4737
4833
  trialDaysLeft: k,
4738
4834
  openUpgradeModal: D,
@@ -4742,26 +4838,26 @@ function Rs(e, t, n, s, i, o) {
4742
4838
  key: 0,
4743
4839
  "popper-class": "trial-popover"
4744
4840
  }, {
4745
- popper: m(() => [
4746
- a("div", Vs, [
4747
- a("div", Ms, [
4841
+ popper: u(() => [
4842
+ a("div", As, [
4843
+ a("div", Es, [
4748
4844
  x(d(e.$t("title.1")) + " ", 1),
4749
- a("span", Ps, d(e.$t("title.2")), 1),
4845
+ a("span", zs, d(e.$t("title.2")), 1),
4750
4846
  x(" " + d(e.$t("title.3", { trialDaysLeft: k })) + ". ", 1)
4751
4847
  ]),
4752
- a("div", As, [
4848
+ a("div", Rs, [
4753
4849
  x(d(e.$t("title.4")) + " ", 1),
4754
- a("span", Es, d(e.$t("title.5")), 1),
4850
+ a("span", Os, d(e.$t("title.5")), 1),
4755
4851
  t[0] || (t[0] = x(". "))
4756
4852
  ]),
4757
- a("div", zs, [
4853
+ a("div", Hs, [
4758
4854
  G((l(), b(r, {
4759
4855
  type: "secondary",
4760
4856
  size: "small",
4761
4857
  "icon-right": "arrow-right",
4762
4858
  onClick: D
4763
4859
  }, {
4764
- default: m(() => [
4860
+ default: u(() => [
4765
4861
  x(d(e.$t("actionButton")), 1)
4766
4862
  ]),
4767
4863
  _: 2
@@ -4771,10 +4867,10 @@ function Rs(e, t, n, s, i, o) {
4771
4867
  ])
4772
4868
  ])
4773
4869
  ]),
4774
- default: m(() => [
4775
- a("div", Fs, [
4776
- a("div", Ls, d(e.$tc("_common:day", { count: k })) + " " + d(e.$t("button")), 1),
4777
- a("div", Bs, [
4870
+ default: u(() => [
4871
+ a("div", Vs, [
4872
+ a("div", Ms, d(e.$tc("_common:day", { count: k })) + " " + d(e.$t("button")), 1),
4873
+ a("div", Ps, [
4778
4874
  a("div", {
4779
4875
  style: z({
4780
4876
  width: o.clamp(k / T * 100, 0, 100) + "%"
@@ -4790,24 +4886,24 @@ function Rs(e, t, n, s, i, o) {
4790
4886
  _: 1
4791
4887
  });
4792
4888
  }
4793
- const Os = /* @__PURE__ */ F($s, [["render", Rs]]), ae = yt({
4889
+ const qs = /* @__PURE__ */ L(Fs, [["render", Us]]), ae = yt({
4794
4890
  canEdit: !1,
4795
4891
  isForm: !0,
4796
4892
  setFormValue: null,
4797
4893
  removeFormValue: null
4798
- }), Us = {
4894
+ }), Gs = {
4799
4895
  name: "DocumentForm",
4800
4896
  components: {
4801
- DocumentFormContainer: ns,
4802
- IsPremium: ee,
4803
- IsPremiumPreStep: X,
4804
- DocumentSend: gs,
4805
- RemainingTrialButton: Os,
4897
+ DocumentFormContainer: ss,
4898
+ IsPremium: te,
4899
+ IsPremiumPreStep: ee,
4900
+ DocumentSend: Cs,
4901
+ RemainingTrialButton: qs,
4806
4902
  CDropdown: re,
4807
4903
  CDropdownItem: q
4808
4904
  },
4809
4905
  setup() {
4810
- const { isValid: e } = Jt();
4906
+ const { isValid: e } = Yt();
4811
4907
  return { isValid: e };
4812
4908
  },
4813
4909
  mixins: [Q],
@@ -4866,14 +4962,14 @@ const Os = /* @__PURE__ */ F($s, [["render", Rs]]), ae = yt({
4866
4962
  },
4867
4963
  computed: {
4868
4964
  canDoActions() {
4869
- return !!M(this.document, "template.views.read.nodes", []).length;
4965
+ return !!P(this.document, "template.views.read.nodes", []).length;
4870
4966
  },
4871
4967
  canEdit() {
4872
4968
  const { document: e } = this;
4873
4969
  return this.view === "edit" && e && (e.id ? e.can("modify") : e.can("create")) && e.status !== "accepted";
4874
4970
  },
4875
4971
  doConsumeQuota() {
4876
- const e = M(this.document, "template.doConsumeDocumentQuota");
4972
+ const e = P(this.document, "template.doConsumeDocumentQuota");
4877
4973
  return typeof e == "boolean" ? e : !0;
4878
4974
  }
4879
4975
  },
@@ -4916,13 +5012,13 @@ const Os = /* @__PURE__ */ F($s, [["render", Rs]]), ae = yt({
4916
5012
  );
4917
5013
  }
4918
5014
  }
4919
- }, Hs = {
5015
+ }, Ns = {
4920
5016
  key: 0,
4921
5017
  class: "flex w-screen flex-col bg-white"
4922
- }, qs = { class: "flex self-center" }, Gs = { class: "buttons has-addons whitespace-nowrap" };
4923
- function Ns(e, t, n, s, i, o) {
4924
- const r = u("CButton"), g = u("CDropdownItem"), h = u("CDropdown"), y = u("IsPremiumPreStep"), w = u("RemainingTrialButton"), k = u("IsPremium"), D = u("DocumentFormContainer"), T = u("DocumentSend");
4925
- return n.document ? (l(), p("div", Hs, [
5018
+ }, Ws = { class: "flex self-center" }, js = { class: "buttons has-addons whitespace-nowrap" };
5019
+ function Zs(e, t, n, s, i, o) {
5020
+ const r = m("CButton"), g = m("CDropdownItem"), h = m("CDropdown"), y = m("IsPremiumPreStep"), w = m("RemainingTrialButton"), k = m("IsPremium"), D = m("DocumentFormContainer"), T = m("DocumentSend");
5021
+ return n.document ? (l(), p("div", Ns, [
4926
5022
  c(D, {
4927
5023
  view: i.view,
4928
5024
  "onUpdate:view": t[0] || (t[0] = (v) => i.view = v),
@@ -4934,22 +5030,22 @@ function Ns(e, t, n, s, i, o) {
4934
5030
  "go-back": n.goBack,
4935
5031
  "can-show-banner": n.canShowBanner
4936
5032
  }, {
4937
- "nav-right": m(() => [
5033
+ "nav-right": u(() => [
4938
5034
  c(k, null, {
4939
- default: m(({ canCreateDocument: v, canCreateTemplate: f }) => [
5035
+ default: u(({ canCreateDocument: v, canCreateTemplate: f }) => [
4940
5036
  c(y, { feature: "documents" }, {
4941
- default: m(({ onClick: _ }) => [
5037
+ default: u(({ onClick: _ }) => [
4942
5038
  (l(), p("div", {
4943
5039
  key: o.canDoActions,
4944
5040
  class: "inline-flex flex-1 justify-end space-x-5"
4945
5041
  }, [
4946
5042
  c(y, { feature: "saveDocTemplate" }, {
4947
- default: m(({ onClick: $ }) => [
4948
- a("div", qs, [
5043
+ default: u(({ onClick: I }) => [
5044
+ a("div", Ws, [
4949
5045
  c(h, {
4950
5046
  disabled: !o.canDoActions
4951
5047
  }, {
4952
- trigger: m(() => [
5048
+ trigger: u(() => [
4953
5049
  c(r, {
4954
5050
  "icon-props": {
4955
5051
  size: 20,
@@ -4964,13 +5060,13 @@ function Ns(e, t, n, s, i, o) {
4964
5060
  icon: "save"
4965
5061
  })
4966
5062
  ]),
4967
- default: m(() => [
5063
+ default: u(() => [
4968
5064
  c(g, {
4969
5065
  "icon-props": { stroke: "hsl(205, 100%, 50%)" },
4970
5066
  "icon-left": "save",
4971
5067
  onClick: (S) => v || n.document.id ? o.submitSave() : _({ callback: o.submitSave })
4972
5068
  }, {
4973
- default: m(() => [
5069
+ default: u(() => [
4974
5070
  x(d(e.$t("_common:save", {
4975
5071
  thing: e.$t("_common:document").toLowerCase()
4976
5072
  })), 1)
@@ -4980,11 +5076,11 @@ function Ns(e, t, n, s, i, o) {
4980
5076
  c(g, {
4981
5077
  disabled: n.isLoading,
4982
5078
  "icon-left": "template-color",
4983
- onClick: (S) => f ? o.saveAsTemplate() : $({
5079
+ onClick: (S) => f ? o.saveAsTemplate() : I({
4984
5080
  callback: o.saveAsTemplate
4985
5081
  })
4986
5082
  }, {
4987
- default: m(() => [
5083
+ default: u(() => [
4988
5084
  x(d(e.$t("_common:saveAs", {
4989
5085
  thing: e.$t("_common:template")
4990
5086
  })), 1)
@@ -4998,20 +5094,20 @@ function Ns(e, t, n, s, i, o) {
4998
5094
  ]),
4999
5095
  _: 2
5000
5096
  }, 1024),
5001
- A(e.$slots, "nav-right-action", {}, () => [
5097
+ M(e.$slots, "nav-right-action", {}, () => [
5002
5098
  c(w),
5003
- a("div", Gs, [
5099
+ a("div", js, [
5004
5100
  c(r, {
5005
5101
  ref: "sendButton",
5006
5102
  disabled: !o.canDoActions,
5007
5103
  loading: n.isLoading,
5008
5104
  "data-onboarding": "send-button",
5009
5105
  size: "small",
5010
- class: B(["d-nav-button position right !h-full", e.mq === "sm" && "w-9"]),
5106
+ class: F(["d-nav-button position right !h-full", e.mq === "sm" && "w-9"]),
5011
5107
  type: "secondary",
5012
5108
  icon: e.mq === "sm" ? "send" : "",
5013
5109
  label: e.mq === "sm" ? "" : e.$t("_common:reviewSend"),
5014
- onClick: ($) => v || !o.doConsumeQuota || n.document.id ? o.openSendModal() : _({ callback: o.openSendModal })
5110
+ onClick: (I) => v || !o.doConsumeQuota || n.document.id ? o.openSendModal() : _({ callback: o.openSendModal })
5015
5111
  }, null, 8, ["disabled", "loading", "class", "icon", "label", "onClick"])
5016
5112
  ])
5017
5113
  ])
@@ -5042,7 +5138,7 @@ function Ns(e, t, n, s, i, o) {
5042
5138
  }, null, 8, ["_document", "set-form-value", "remove-form-value", "on-save-document"])
5043
5139
  ])) : C("", !0);
5044
5140
  }
5045
- const Ws = /* @__PURE__ */ F(Us, [["render", Ns]]), js = /* @__PURE__ */ de({
5141
+ const Ks = /* @__PURE__ */ L(Gs, [["render", Zs]]), Qs = /* @__PURE__ */ de({
5046
5142
  __name: "TemplateActionsDropdown",
5047
5143
  props: {
5048
5144
  template: {},
@@ -5063,18 +5159,18 @@ const Ws = /* @__PURE__ */ F(Us, [["render", Ns]]), js = /* @__PURE__ */ de({
5063
5159
  }
5064
5160
  async function h() {
5065
5161
  const w = `${K.baseUrl}/template/${s.template.id}`;
5066
- await He(w) && we("info", n("copyMessage"));
5162
+ await Ue(w) && we("info", n("copyMessage"));
5067
5163
  }
5068
5164
  return (y, w) => {
5069
5165
  const k = ie("tooltip");
5070
- return l(), b(O(re), {
5166
+ return l(), b(R(re), {
5071
5167
  "append-to-body": y.appendToBody,
5072
5168
  style: { top: "-8px", right: "-4px" },
5073
5169
  onClick: w[0] || (w[0] = j(() => {
5074
5170
  }, ["stop"]))
5075
5171
  }, {
5076
- trigger: m(() => [
5077
- G(c(O(Re), {
5172
+ trigger: u(() => [
5173
+ G(c(R(Re), {
5078
5174
  icon: "more-vertical",
5079
5175
  type: "none",
5080
5176
  pattern: "tertiary",
@@ -5083,48 +5179,48 @@ const Ws = /* @__PURE__ */ F(Us, [["render", Ns]]), js = /* @__PURE__ */ de({
5083
5179
  [k, y.tooltip]
5084
5180
  ])
5085
5181
  ]),
5086
- default: m(() => [
5087
- c(O(q), {
5182
+ default: u(() => [
5183
+ c(R(q), {
5088
5184
  "icon-left": "template-color",
5089
5185
  onClick: o,
5090
5186
  "data-test": "edit-item"
5091
5187
  }, {
5092
- default: m(() => [
5188
+ default: u(() => [
5093
5189
  x(d(y.$t("_common:edit", { thing: y.$t("_common:template") })), 1)
5094
5190
  ]),
5095
5191
  _: 1
5096
5192
  }),
5097
- c(O(q), {
5193
+ c(R(q), {
5098
5194
  "icon-props": { size: 16 },
5099
5195
  "icon-left": "edit",
5100
5196
  onClick: r,
5101
5197
  "data-test": "rename-item"
5102
5198
  }, {
5103
- default: m(() => [
5199
+ default: u(() => [
5104
5200
  x(d(y.$t("_common:change", { thing: y.$t("_common:name") })), 1)
5105
5201
  ]),
5106
5202
  _: 1
5107
5203
  }),
5108
- c(O(q), { separator: "" }),
5109
- c(O(q), {
5204
+ c(R(q), { separator: "" }),
5205
+ c(R(q), {
5110
5206
  "icon-props": { size: 16 },
5111
5207
  "icon-left": "link",
5112
5208
  onClick: h,
5113
5209
  "data-test": "copy-item"
5114
5210
  }, {
5115
- default: m(() => [
5211
+ default: u(() => [
5116
5212
  x(d(y.$t("_common:share", { thing: y.$t("_common:link") })), 1)
5117
5213
  ]),
5118
5214
  _: 1
5119
5215
  }),
5120
- c(O(q), { separator: "" }),
5121
- c(O(q), {
5216
+ c(R(q), { separator: "" }),
5217
+ c(R(q), {
5122
5218
  "icon-props": { size: 16, stroke: "hsl(360, 100%, 60%)" },
5123
5219
  "icon-left": "trash",
5124
5220
  onClick: g,
5125
5221
  "data-test": "remove-item"
5126
5222
  }, {
5127
- default: m(() => [
5223
+ default: u(() => [
5128
5224
  x(d(y.$t("_common:remove")), 1)
5129
5225
  ]),
5130
5226
  _: 1
@@ -5134,7 +5230,7 @@ const Ws = /* @__PURE__ */ F(Us, [["render", Ns]]), js = /* @__PURE__ */ de({
5134
5230
  }, 8, ["append-to-body"]);
5135
5231
  };
5136
5232
  }
5137
- }), Zs = {
5233
+ }), Ys = {
5138
5234
  name: "DocumentFormRecent",
5139
5235
  i18nOptions: {
5140
5236
  namespaces: "DocumentFormRecent",
@@ -5150,9 +5246,9 @@ const Ws = /* @__PURE__ */ F(Us, [["render", Ns]]), js = /* @__PURE__ */ de({
5150
5246
  }
5151
5247
  },
5152
5248
  components: {
5153
- IsPremium: ee,
5154
- IsPremiumPreStep: X,
5155
- CSkeleton: en
5249
+ IsPremium: te,
5250
+ IsPremiumPreStep: ee,
5251
+ CSkeleton: Xt
5156
5252
  },
5157
5253
  emits: ["save-template", "use-doc-template"],
5158
5254
  data() {
@@ -5165,7 +5261,7 @@ const Ws = /* @__PURE__ */ F(Us, [["render", Ns]]), js = /* @__PURE__ */ de({
5165
5261
  };
5166
5262
  },
5167
5263
  computed: {
5168
- ...R({
5264
+ ...H({
5169
5265
  docById: "documents2/byId"
5170
5266
  })
5171
5267
  },
@@ -5174,7 +5270,7 @@ const Ws = /* @__PURE__ */ F(Us, [["render", Ns]]), js = /* @__PURE__ */ de({
5174
5270
  },
5175
5271
  methods: {
5176
5272
  ...Z({
5177
- loadDocument: P.LOAD_DOCUMENT2
5273
+ loadDocument: A.LOAD_DOCUMENT2
5178
5274
  }),
5179
5275
  async onInput() {
5180
5276
  this.isLoading = !0, this.onLoadDocuments();
@@ -5223,26 +5319,26 @@ const Ws = /* @__PURE__ */ F(Us, [["render", Ns]]), js = /* @__PURE__ */ de({
5223
5319
  return this.$emit("use-doc-template", { documentId: e });
5224
5320
  }
5225
5321
  }
5226
- }, Ks = {
5322
+ }, Js = {
5227
5323
  class: "flex w-full",
5228
5324
  style: { "padding-bottom": "1em" }
5229
- }, Qs = { class: "recent-list" }, Ys = {
5325
+ }, Xs = { class: "recent-list" }, ea = {
5230
5326
  key: 1,
5231
5327
  class: "rounded-md border border-gray-200 bg-gray-100 p-4 text-center text-gray-400",
5232
5328
  style: { "font-size": "15px" }
5233
- }, Js = {
5329
+ }, ta = {
5234
5330
  key: 2,
5235
5331
  class: "text-center text-gray-400",
5236
5332
  style: { padding: "1em" }
5237
- }, Xs = ["onClick", "onMouseoverPassive"], ea = {
5333
+ }, na = ["onClick", "onMouseoverPassive"], ia = {
5238
5334
  key: 0,
5239
5335
  style: { display: "inline-flex", "align-items": "center", position: "absolute", right: "1em", top: "50%", transform: "translateY(-50%)" }
5240
5336
  };
5241
- function ta(e, t, n, s, i, o) {
5242
- const r = u("CInput"), g = u("CSkeleton"), h = u("CButton"), y = u("IsPremiumPreStep"), w = u("IsPremium");
5337
+ function oa(e, t, n, s, i, o) {
5338
+ const r = m("CInput"), g = m("CSkeleton"), h = m("CButton"), y = m("IsPremiumPreStep"), w = m("IsPremium");
5243
5339
  return l(), p("div", null, [
5244
- a("div", Ks, [
5245
- A(e.$slots, "default", {}, void 0, !0),
5340
+ a("div", Js, [
5341
+ M(e.$slots, "default", {}, void 0, !0),
5246
5342
  i.hasItems ? (l(), b(r, {
5247
5343
  key: 0,
5248
5344
  modelValue: i.query,
@@ -5258,8 +5354,8 @@ function ta(e, t, n, s, i, o) {
5258
5354
  class: "hidden md:flex"
5259
5355
  }, null, 8, ["modelValue", "loading", "placeholder", "onUpdate:modelValue"])) : C("", !0)
5260
5356
  ]),
5261
- a("div", Qs, [
5262
- i.isLoading && !i.list.length ? (l(), p(I, { key: 0 }, E(3, (k) => a("div", {
5357
+ a("div", Xs, [
5358
+ i.isLoading && !i.list.length ? (l(), p($, { key: 0 }, E(3, (k) => a("div", {
5263
5359
  key: k,
5264
5360
  class: "recent-item placeholder"
5265
5361
  }, [
@@ -5268,12 +5364,12 @@ function ta(e, t, n, s, i, o) {
5268
5364
  class: "recent-item-name"
5269
5365
  }),
5270
5366
  c(g, { width: "35%" })
5271
- ])), 64)) : !i.isLoading && !i.query && !i.list.length ? (l(), p("div", Ys, d(e.$t("emptyPlaceholder")), 1)) : i.query && !i.isLoading && !i.list.length ? (l(), p("div", Js, d(e.$t("noResults")), 1)) : (l(), b(w, { key: 3 }, {
5272
- default: m(({ canCreateTemplate: k, canUseTemplate: D }) => [
5367
+ ])), 64)) : !i.isLoading && !i.query && !i.list.length ? (l(), p("div", ea, d(e.$t("emptyPlaceholder")), 1)) : i.query && !i.isLoading && !i.list.length ? (l(), p("div", ta, d(e.$t("noResults")), 1)) : (l(), b(w, { key: 3 }, {
5368
+ default: u(({ canCreateTemplate: k, canUseTemplate: D }) => [
5273
5369
  c(y, { feature: "useDocTemplate" }, {
5274
- default: m(({ onClick: T }) => [
5370
+ default: u(({ onClick: T }) => [
5275
5371
  a("div", null, [
5276
- (l(!0), p(I, null, E(i.list, (v, f) => (l(), p("div", {
5372
+ (l(!0), p($, null, E(i.list, (v, f) => (l(), p("div", {
5277
5373
  key: v._id,
5278
5374
  class: "recent-item",
5279
5375
  onClick: (_) => D ? o.onUseDocTemplate(v._id) : T({
@@ -5283,20 +5379,20 @@ function ta(e, t, n, s, i, o) {
5283
5379
  onMouseleavePassive: t[1] || (t[1] = (_) => i.hoverIndex = null)
5284
5380
  }, [
5285
5381
  a("div", {
5286
- class: B([{ "text-gray-400": !v.data.name }, "recent-item-name"])
5382
+ class: F([{ "text-gray-400": !v.data.name }, "recent-item-name"])
5287
5383
  }, d(v.data.name || e.$t("_common:untitled")), 3),
5288
5384
  a("div", null, d(e.$formatDistanceToNow(v.createdAt)), 1),
5289
- i.hoverIndex === f ? (l(), p("div", ea, [
5385
+ i.hoverIndex === f ? (l(), p("div", ia, [
5290
5386
  c(y, { feature: "saveDocTemplate" }, {
5291
- default: m(({ onClick: _ }) => [
5387
+ default: u(({ onClick: _ }) => [
5292
5388
  c(h, {
5293
5389
  style: { "margin-left": "1em" },
5294
5390
  size: "small",
5295
- onClick: j(($) => k ? o.onSaveDocumentTemplate(v._id) : _({
5391
+ onClick: j((I) => k ? o.onSaveDocumentTemplate(v._id) : _({
5296
5392
  callback: () => o.onSaveDocumentTemplate(v._id)
5297
5393
  }), ["stop"])
5298
5394
  }, {
5299
- default: m(() => [
5395
+ default: u(() => [
5300
5396
  x(d(e.$t("_common:saveAs", { thing: e.$t("_common:template") })), 1)
5301
5397
  ]),
5302
5398
  _: 2
@@ -5309,13 +5405,13 @@ function ta(e, t, n, s, i, o) {
5309
5405
  size: "small",
5310
5406
  type: "secondary"
5311
5407
  }, {
5312
- default: m(() => [
5408
+ default: u(() => [
5313
5409
  x(d(e.$t("_common:use", { thing: e.$t("_common:template") })), 1)
5314
5410
  ]),
5315
5411
  _: 1
5316
5412
  })
5317
5413
  ])) : C("", !0)
5318
- ], 40, Xs))), 128))
5414
+ ], 40, na))), 128))
5319
5415
  ])
5320
5416
  ]),
5321
5417
  _: 2
@@ -5326,13 +5422,13 @@ function ta(e, t, n, s, i, o) {
5326
5422
  ])
5327
5423
  ]);
5328
5424
  }
5329
- const na = /* @__PURE__ */ F(Zs, [["render", ta], ["__scopeId", "data-v-718e3064"]]), ia = { class: "item-paper" }, oa = {
5425
+ const sa = /* @__PURE__ */ L(Ys, [["render", oa], ["__scopeId", "data-v-718e3064"]]), aa = { class: "item-paper" }, la = {
5330
5426
  key: 2,
5331
5427
  class: "absolute bottom-2 right-2"
5332
- }, sa = {
5428
+ }, ra = {
5333
5429
  key: 3,
5334
5430
  class: "add-button"
5335
- }, aa = { class: "item-footer" }, la = ["textContent"], ra = ["textContent"], da = /* @__PURE__ */ de({
5431
+ }, da = { class: "item-footer" }, ca = ["textContent"], ua = ["textContent"], ma = /* @__PURE__ */ de({
5336
5432
  __name: "DocumentIcon",
5337
5433
  props: {
5338
5434
  isPlaceholder: { type: Boolean, default: !1 },
@@ -5344,11 +5440,11 @@ const na = /* @__PURE__ */ F(Zs, [["render", ta], ["__scopeId", "data-v-718e3064
5344
5440
  },
5345
5441
  emits: ["triggerOpenTemplate"],
5346
5442
  setup(e, { emit: t }) {
5347
- const n = e, s = t, i = () => s("triggerOpenTemplate"), o = bt(), r = kt(), g = U(() => r.style), h = U(() => r.staticClass), y = U(() => r.class), w = U(() => r.key), k = U(() => r.attrs), D = U(
5443
+ const n = e, s = t, i = () => s("triggerOpenTemplate"), o = bt(), r = kt(), g = O(() => r.style), h = O(() => r.staticClass), y = O(() => r.class), w = O(() => r.key), k = O(() => r.attrs), D = O(
5348
5444
  () => Ce.t("_common:empty", { thing: Ce.t("_common:template") })
5349
- ), T = U(() => wt(n.name, 60));
5445
+ ), T = O(() => wt(n.name, 60));
5350
5446
  return (v, f) => {
5351
- const _ = u("CIcon");
5447
+ const _ = m("CIcon");
5352
5448
  return l(), p("div", be(k.value, {
5353
5449
  key: w.value,
5354
5450
  class: [[
@@ -5363,22 +5459,22 @@ const na = /* @__PURE__ */ F(Zs, [["render", ta], ["__scopeId", "data-v-718e3064
5363
5459
  style: g.value,
5364
5460
  onClick: i
5365
5461
  }), [
5366
- a("div", ia, [
5462
+ a("div", aa, [
5367
5463
  v.thumbnail ? (l(), p("div", {
5368
5464
  key: 0,
5369
5465
  style: z([{
5370
5466
  backgroundImage: `url(${v.thumbnail})`
5371
5467
  }, { width: "100%", height: "100%", "background-size": "100% auto", "background-repeat": "no-repeat", "background-position": "0% 0%" }])
5372
- }, null, 4)) : v.isPlaceholder || v.isAdd ? C("", !0) : (l(), b(tn, {
5468
+ }, null, 4)) : v.isPlaceholder || v.isAdd ? C("", !0) : (l(), b(en, {
5373
5469
  key: 1,
5374
5470
  media: v.media,
5375
5471
  preview: "",
5376
5472
  class: "item-media"
5377
5473
  }, null, 8, ["media"])),
5378
- O(o).badge ? (l(), p("div", oa, [
5379
- A(v.$slots, "badge", {}, void 0, !0)
5474
+ R(o).badge ? (l(), p("div", la, [
5475
+ M(v.$slots, "badge", {}, void 0, !0)
5380
5476
  ])) : C("", !0),
5381
- v.isAdd ? (l(), p("div", sa, [
5477
+ v.isAdd ? (l(), p("div", ra, [
5382
5478
  c(_, {
5383
5479
  size: 18,
5384
5480
  "stroke-width": 3,
@@ -5386,27 +5482,27 @@ const na = /* @__PURE__ */ F(Zs, [["render", ta], ["__scopeId", "data-v-718e3064
5386
5482
  })
5387
5483
  ])) : C("", !0)
5388
5484
  ]),
5389
- a("div", aa, [
5485
+ a("div", da, [
5390
5486
  v.isAdd ? (l(), p("div", {
5391
5487
  key: 0,
5392
5488
  class: "item-text",
5393
5489
  style: { color: "hsl(0, 0%, 55%)" },
5394
5490
  textContent: d(D.value)
5395
- }, null, 8, la)) : v.name ? (l(), p(I, { key: 1 }, [
5491
+ }, null, 8, ca)) : v.name ? (l(), p($, { key: 1 }, [
5396
5492
  a("div", {
5397
5493
  class: "item-text",
5398
5494
  textContent: d(T.value)
5399
- }, null, 8, ra),
5400
- A(v.$slots, "default", {}, void 0, !0)
5495
+ }, null, 8, ua),
5496
+ M(v.$slots, "default", {}, void 0, !0)
5401
5497
  ], 64)) : C("", !0)
5402
5498
  ])
5403
5499
  ], 16);
5404
5500
  };
5405
5501
  }
5406
- }), ca = /* @__PURE__ */ F(da, [["__scopeId", "data-v-73746647"]]), ua = {
5502
+ }), pa = /* @__PURE__ */ L(ma, [["__scopeId", "data-v-73746647"]]), ha = {
5407
5503
  name: "HorizontalScroll",
5408
5504
  components: {
5409
- Simplebar: J
5505
+ Simplebar: X
5410
5506
  },
5411
5507
  emits: ["expand"],
5412
5508
  data() {
@@ -5455,20 +5551,20 @@ const na = /* @__PURE__ */ F(Zs, [["render", ta], ["__scopeId", "data-v-718e3064
5455
5551
  }, 50);
5456
5552
  }
5457
5553
  }
5458
- }, ma = {
5554
+ }, fa = {
5459
5555
  ref: "container",
5460
5556
  class: "horizontal-scroll"
5461
- }, pa = { class: "hl-navigation" }, ha = { class: "hl-container" }, fa = { class: "flex w-full" };
5462
- function ga(e, t, n, s, i, o) {
5463
- const r = u("CButton"), g = u("Simplebar");
5464
- return l(), p("div", ma, [
5465
- a("div", pa, [
5557
+ }, ga = { class: "hl-navigation" }, ya = { class: "hl-container" }, va = { class: "flex w-full" };
5558
+ function Ca(e, t, n, s, i, o) {
5559
+ const r = m("CButton"), g = m("Simplebar");
5560
+ return l(), p("div", fa, [
5561
+ a("div", ga, [
5466
5562
  i.hasPrev ? (l(), p("div", {
5467
5563
  key: 0,
5468
5564
  class: "hl-btn-left max-sm:hidden",
5469
5565
  onClick: t[0] || (t[0] = (h) => o.go(-1))
5470
5566
  }, [
5471
- A(e.$slots, "nav-prev", {}, () => [
5567
+ M(e.$slots, "nav-prev", {}, () => [
5472
5568
  c(r, {
5473
5569
  "icon-props": { size: 22 },
5474
5570
  icon: "chevron-left",
@@ -5483,7 +5579,7 @@ function ga(e, t, n, s, i, o) {
5483
5579
  class: "hl-btn-right max-sm:hidden",
5484
5580
  onClick: t[2] || (t[2] = (h) => o.go(1))
5485
5581
  }, [
5486
- A(e.$slots, "nav-prev", {}, () => [
5582
+ M(e.$slots, "nav-prev", {}, () => [
5487
5583
  c(r, {
5488
5584
  "icon-props": { size: 22 },
5489
5585
  icon: "chevron-right",
@@ -5495,15 +5591,15 @@ function ga(e, t, n, s, i, o) {
5495
5591
  ], !0)
5496
5592
  ])) : C("", !0)
5497
5593
  ]),
5498
- a("div", ha, [
5594
+ a("div", ya, [
5499
5595
  c(g, {
5500
5596
  ref: "list",
5501
5597
  class: "hl-list",
5502
5598
  onScroll: o.scrollHandler
5503
5599
  }, {
5504
- default: m(() => [
5505
- a("div", fa, [
5506
- A(e.$slots, "default", {}, void 0, !0)
5600
+ default: u(() => [
5601
+ a("div", va, [
5602
+ M(e.$slots, "default", {}, void 0, !0)
5507
5603
  ])
5508
5604
  ]),
5509
5605
  _: 3
@@ -5511,12 +5607,12 @@ function ga(e, t, n, s, i, o) {
5511
5607
  ])
5512
5608
  ], 512);
5513
5609
  }
5514
- const ya = /* @__PURE__ */ F(ua, [["render", ga], ["__scopeId", "data-v-8c23700f"]]);
5515
- function va(e, { availableProducts: t }) {
5610
+ const ba = /* @__PURE__ */ L(ha, [["render", Ca], ["__scopeId", "data-v-8c23700f"]]);
5611
+ function ka(e, { availableProducts: t }) {
5516
5612
  if (!e) throw new Error("Missing parameter templateId");
5517
5613
  const n = t, s = Object.keys(n).find((i) => {
5518
5614
  var r;
5519
- const o = M(
5615
+ const o = P(
5520
5616
  n[i],
5521
5617
  "metadata.companyPurchase"
5522
5618
  );
@@ -5524,7 +5620,7 @@ function va(e, { availableProducts: t }) {
5524
5620
  });
5525
5621
  return s ? n[s] : null;
5526
5622
  }
5527
- async function Ca(e) {
5623
+ async function wa(e) {
5528
5624
  if (!e) throw new Error("Missing argument stripeProduct");
5529
5625
  const t = e == null ? void 0 : e.prices[0], { data: n } = await _t.createCheckoutSession({
5530
5626
  items: [
@@ -5541,7 +5637,7 @@ async function Ca(e) {
5541
5637
  function Je(e, { availableProducts: t }) {
5542
5638
  var i, o, r;
5543
5639
  let n = null;
5544
- const s = va(e.templateId, {
5640
+ const s = ka(e.templateId, {
5545
5641
  availableProducts: t
5546
5642
  });
5547
5643
  return s && (n = {
@@ -5549,16 +5645,16 @@ function Je(e, { availableProducts: t }) {
5549
5645
  currency: (o = s == null ? void 0 : s.prices) == null ? void 0 : o[0].currency
5550
5646
  }),
5551
5647
  isPurchased: ((r = e.purchaseInfo) == null ? void 0 : r.isPurchased) || !1,
5552
- onBuy: async () => Ca(s)
5648
+ onBuy: async () => wa(s)
5553
5649
  }), n;
5554
5650
  }
5555
- const ba = {
5651
+ const _a = {
5556
5652
  name: "GalleryTemplateModal",
5557
5653
  components: {
5558
- Simplebar: J,
5654
+ Simplebar: X,
5559
5655
  DocumentLayout: Rt,
5560
- IsPremium: ee,
5561
- IsPremiumPreStep: X
5656
+ IsPremium: te,
5657
+ IsPremiumPreStep: ee
5562
5658
  },
5563
5659
  emits: ["use-template", "close"],
5564
5660
  props: {
@@ -5621,7 +5717,7 @@ const ba = {
5621
5717
  };
5622
5718
  },
5623
5719
  computed: {
5624
- ...R({
5720
+ ...H({
5625
5721
  isLoading: "templates/isPosting",
5626
5722
  stripeProducts: "stripe/products",
5627
5723
  isSuperUser: "application/isSuperUser"
@@ -5688,41 +5784,41 @@ const ba = {
5688
5784
  },
5689
5785
  async copyToClipboard(e) {
5690
5786
  const t = `${K.baseUrl}/template/${e}`;
5691
- await He(t) && we("info", this.$t("copyMessage"));
5787
+ await Ue(t) && we("info", this.$t("copyMessage"));
5692
5788
  }
5693
5789
  }
5694
- }, ka = { class: "template-modal font-inter relative flex h-full w-full flex-col overflow-y-auto rounded-[1.25em] bg-gray-200 p-[10px] md:flex-row md:overflow-hidden" }, wa = {
5790
+ }, xa = { class: "template-modal font-inter relative flex h-full w-full flex-col overflow-y-auto rounded-[1.25em] bg-gray-200 p-[10px] md:flex-row md:overflow-hidden" }, Ta = {
5695
5791
  class: "min-h-[400px] flex-none md:min-h-0 md:flex-auto",
5696
5792
  style: { "background-color": "white", "border-radius": "1em", overflow: "auto", border: "10px solid white", "box-shadow": `rgb(244, 244, 244) 0px 2px 14px 0px inset,
5697
5793
  rgba(0, 0, 0, 0.09) 0px 8px 35px 0px,
5698
5794
  rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset` }
5699
- }, _a = {
5795
+ }, Da = {
5700
5796
  class: "order-first w-full p-6 md:order-none md:flex-[0_1_300px] md:p-[2em_1em_3em_2em]",
5701
5797
  style: { "font-size": "18px" }
5702
- }, xa = { style: { "padding-bottom": "2em" } }, Ta = { style: { "font-size": "21px", "font-weight": "800", color: "hsl(0, 0%, 0%)" } }, Da = { style: { "font-weight": "400", "font-size": "14px", "min-height": "30px", color: "hsl(0, 0%, 27%)" } }, Sa = { style: { hyphens: "auto" } }, Ia = {
5798
+ }, Sa = { style: { "padding-bottom": "2em" } }, $a = { style: { "font-size": "21px", "font-weight": "800", color: "hsl(0, 0%, 0%)" } }, Ia = { style: { "font-weight": "400", "font-size": "14px", "min-height": "30px", color: "hsl(0, 0%, 27%)" } }, La = { style: { hyphens: "auto" } }, Ba = {
5703
5799
  key: 0,
5704
5800
  style: { "padding-top": "1.5em" },
5705
5801
  class: "flex items-center"
5706
- }, $a = { style: { "margin-left": "0.5em" } }, Fa = { style: { "font-weight": "500" } }, La = { style: { "font-weight": "400", "font-size": "14px" } }, Ba = { style: { "padding-bottom": "2em" } }, Va = {
5802
+ }, Fa = { style: { "margin-left": "0.5em" } }, Va = { style: { "font-weight": "500" } }, Ma = { style: { "font-weight": "400", "font-size": "14px" } }, Pa = { style: { "padding-bottom": "2em" } }, Aa = {
5707
5803
  key: 0,
5708
5804
  class: "mb-5 flex items-center gap-2 rounded-full border border-gray-300 bg-gray-300/60 p-1 text-sm"
5709
- }, Ma = { class: "bg-primary-500 flex h-5 w-5 items-center justify-center rounded-full" }, Pa = ["textContent"], Aa = ["textContent"];
5710
- function Ea(e, t, n, s, i, o) {
5805
+ }, Ea = { class: "bg-primary-500 flex h-5 w-5 items-center justify-center rounded-full" }, za = ["textContent"], Ra = ["textContent"];
5806
+ function Oa(e, t, n, s, i, o) {
5711
5807
  var D;
5712
- const r = u("DocumentLayout"), g = u("Simplebar"), h = u("CIcon"), y = u("CButton"), w = u("IsPremiumPreStep"), k = u("IsPremium");
5713
- return l(), p("div", ka, [
5714
- a("div", wa, [
5808
+ const r = m("DocumentLayout"), g = m("Simplebar"), h = m("CIcon"), y = m("CButton"), w = m("IsPremiumPreStep"), k = m("IsPremium");
5809
+ return l(), p("div", xa, [
5810
+ a("div", Ta, [
5715
5811
  c(g, {
5716
5812
  class: "h-full w-full",
5717
5813
  "data-simplebar-auto-hide": "false"
5718
5814
  }, {
5719
- default: m(() => [
5815
+ default: u(() => [
5720
5816
  o.previewDocument ? (l(), b(r, {
5721
5817
  key: 0,
5722
5818
  document: o.previewDocument
5723
5819
  }, null, 8, ["document"])) : C("", !0),
5724
5820
  n.product && !i.privateProduct.isPurchased ? (l(), b(W("style"), { key: 1 }, {
5725
- default: m(() => t[1] || (t[1] = [
5821
+ default: u(() => t[1] || (t[1] = [
5726
5822
  x(" .ProseMirror > * + * { filter: blur(8px); user-select: none; pointer-events: none; } ")
5727
5823
  ])),
5728
5824
  _: 1
@@ -5731,37 +5827,37 @@ function Ea(e, t, n, s, i, o) {
5731
5827
  _: 1
5732
5828
  })
5733
5829
  ]),
5734
- a("div", _a, [
5735
- a("div", xa, [
5736
- a("div", Ta, d(n.meta.name), 1),
5737
- a("div", Da, [
5738
- (D = i.templateStat) != null && D.usedTimes ? (l(), p(I, { key: 0 }, [
5830
+ a("div", Da, [
5831
+ a("div", Sa, [
5832
+ a("div", $a, d(n.meta.name), 1),
5833
+ a("div", Ia, [
5834
+ (D = i.templateStat) != null && D.usedTimes ? (l(), p($, { key: 0 }, [
5739
5835
  x(d(e.$t("_common:used").capitalize()) + " " + d(i.templateStat.usedTimes) + " " + d(e.$t("_common:times", { count: i.templateStat.usedTimes })), 1)
5740
5836
  ], 64)) : C("", !0)
5741
5837
  ]),
5742
- a("div", Sa, d(n.meta.text), 1),
5743
- n.meta.author ? (l(), p("div", Ia, [
5838
+ a("div", La, d(n.meta.text), 1),
5839
+ n.meta.author ? (l(), p("div", Ba, [
5744
5840
  a("div", {
5745
5841
  style: z([{ "background-color": "#03f", "border-radius": "50%", width: "2.5em", height: "2.5em", "background-size": "cover", "background-position": "center", "background-repeat": "no-repeat" }, {
5746
5842
  backgroundImage: `url(${n.meta.author.avatar})`
5747
5843
  }])
5748
5844
  }, null, 4),
5749
- a("div", $a, [
5750
- a("div", Fa, d(n.meta.author.name), 1),
5751
- a("div", La, [
5752
- n.meta.author.templatesCount ? (l(), p(I, { key: 0 }, [
5845
+ a("div", Fa, [
5846
+ a("div", Va, d(n.meta.author.name), 1),
5847
+ a("div", Ma, [
5848
+ n.meta.author.templatesCount ? (l(), p($, { key: 0 }, [
5753
5849
  x(d(n.meta.author.templatesCount) + " " + d(e.$t("_common:template", { count: n.meta.author.templatesCount })), 1)
5754
- ], 64)) : (l(), p(I, { key: 1 }, [
5850
+ ], 64)) : (l(), p($, { key: 1 }, [
5755
5851
  x(d(e.$t("_common:template").capitalize()), 1)
5756
5852
  ], 64))
5757
5853
  ])
5758
5854
  ])
5759
5855
  ])) : C("", !0)
5760
5856
  ]),
5761
- a("div", Ba, [
5762
- n.product ? (l(), p(I, { key: 0 }, [
5763
- i.privateProduct.isPurchased ? (l(), p("div", Va, [
5764
- a("div", Ma, [
5857
+ a("div", Pa, [
5858
+ n.product ? (l(), p($, { key: 0 }, [
5859
+ i.privateProduct.isPurchased ? (l(), p("div", Aa, [
5860
+ a("div", Ea, [
5765
5861
  c(h, {
5766
5862
  type: "check",
5767
5863
  size: "12",
@@ -5773,7 +5869,7 @@ function Ea(e, t, n, s, i, o) {
5773
5869
  textContent: d(
5774
5870
  e.$t("_common:purchased", { thing: e.$t("_common:template") })
5775
5871
  )
5776
- }, null, 8, Pa)
5872
+ }, null, 8, za)
5777
5873
  ])) : (l(), b(y, {
5778
5874
  key: 1,
5779
5875
  type: "secondary",
@@ -5782,20 +5878,20 @@ function Ea(e, t, n, s, i, o) {
5782
5878
  style: { "margin-bottom": "0.5em" },
5783
5879
  onClick: o.buyTemplate
5784
5880
  }, {
5785
- default: m(() => [
5881
+ default: u(() => [
5786
5882
  a("div", null, d(e.$t("_common:buy", { thing: e.$t("_common:template") })), 1),
5787
5883
  a("div", {
5788
5884
  class: "bg-primary-400/80 border-primary-600/60 absolute right-2 top-1/2 -translate-y-1/2 rounded-md border px-2 py-1.5 text-sm leading-none text-white",
5789
5885
  textContent: d(i.privateProduct.price)
5790
- }, null, 8, Aa)
5886
+ }, null, 8, Ra)
5791
5887
  ]),
5792
5888
  _: 1
5793
5889
  }, 8, ["onClick"]))
5794
5890
  ], 64)) : C("", !0),
5795
5891
  c(k, null, {
5796
- default: m(({ canUseTemplate: T }) => [
5892
+ default: u(({ canUseTemplate: T }) => [
5797
5893
  c(w, { feature: "useDocTemplate" }, {
5798
- default: m(({ onClick: v }) => [
5894
+ default: u(({ onClick: v }) => [
5799
5895
  !n.product || i.privateProduct.isPurchased ? (l(), b(y, {
5800
5896
  key: 0,
5801
5897
  disabled: n.product ? !i.privateProduct.isPurchased : !1,
@@ -5804,7 +5900,7 @@ function Ea(e, t, n, s, i, o) {
5804
5900
  style: { "margin-bottom": "0.5em" },
5805
5901
  onClick: (f) => n.isPublicForm || T ? o.useSelectedTemplate() : v({ callback: o.useSelectedTemplate })
5806
5902
  }, {
5807
- default: m(() => [
5903
+ default: u(() => [
5808
5904
  x(d(e.$t("_common:use", { thing: e.$t("_common:template") })), 1)
5809
5905
  ]),
5810
5906
  _: 2
@@ -5816,9 +5912,9 @@ function Ea(e, t, n, s, i, o) {
5816
5912
  _: 1
5817
5913
  }),
5818
5914
  c(k, null, {
5819
- default: m(({ canCreateTemplate: T }) => [
5915
+ default: u(({ canCreateTemplate: T }) => [
5820
5916
  c(w, { feature: "saveDocTemplate" }, {
5821
- default: m(({ onClick: v }) => {
5917
+ default: u(({ onClick: v }) => {
5822
5918
  var f;
5823
5919
  return [
5824
5920
  (n.product ? (f = n.product) != null && f.isPurchased : n.showSave) ? (l(), b(y, {
@@ -5830,7 +5926,7 @@ function Ea(e, t, n, s, i, o) {
5830
5926
  wide: "",
5831
5927
  onClick: (_) => i.didSave ? null : n.isPublicForm || T ? o.saveAsTemplate() : v({ callback: o.saveAsTemplate })
5832
5928
  }, {
5833
- default: m(() => [
5929
+ default: u(() => [
5834
5930
  x(d(i.didSave ? e.$t("_common:savedThing", { thing: e.$t("_common:template") }) : e.$t("_common:saveAs", { thing: e.$t("_common:template") })), 1)
5835
5931
  ]),
5836
5932
  _: 2
@@ -5849,7 +5945,7 @@ function Ea(e, t, n, s, i, o) {
5849
5945
  wide: "",
5850
5946
  onClick: t[0] || (t[0] = (T) => o.copyToClipboard(n.template.id))
5851
5947
  }, {
5852
- default: m(() => [
5948
+ default: u(() => [
5853
5949
  x(d(e.$t("_common:share", { thing: e.$t("_common:link") })), 1)
5854
5950
  ]),
5855
5951
  _: 1
@@ -5858,7 +5954,7 @@ function Ea(e, t, n, s, i, o) {
5858
5954
  ])
5859
5955
  ]);
5860
5956
  }
5861
- const za = /* @__PURE__ */ F(ba, [["render", Ea], ["__scopeId", "data-v-2ccff3bb"]]), Ra = {
5957
+ const Ha = /* @__PURE__ */ L(_a, [["render", Oa], ["__scopeId", "data-v-2ccff3bb"]]), Ua = {
5862
5958
  name: "GalleryLogic",
5863
5959
  i18nOptions: {
5864
5960
  namespaces: "GalleryLogic",
@@ -5901,6 +5997,9 @@ const za = /* @__PURE__ */ F(ba, [["render", Ea], ["__scopeId", "data-v-2ccff3bb
5901
5997
  }
5902
5998
  }
5903
5999
  },
6000
+ setup() {
6001
+ return { paywall: Zt() };
6002
+ },
5904
6003
  props: {
5905
6004
  fetchGallery: {
5906
6005
  type: Function,
@@ -5958,9 +6057,9 @@ const za = /* @__PURE__ */ F(ba, [["render", Ea], ["__scopeId", "data-v-2ccff3bb
5958
6057
  };
5959
6058
  },
5960
6059
  computed: {
5961
- ...R({
5962
- stripeProducts: "stripe/products"
5963
- }),
6060
+ stripeProducts() {
6061
+ return this.paywall.isAvailable ? this.$store.getters["stripe/products"] || {} : {};
6062
+ },
5964
6063
  galleryItems() {
5965
6064
  return this.isLoading ? Array(6).fill({ placeholder: !0 }) : this.templateGalleryItems.filter(
5966
6065
  ({ categories: e }) => e.includes(this.activeCategory && this.activeCategory.key)
@@ -5982,12 +6081,9 @@ const za = /* @__PURE__ */ F(ba, [["render", Ea], ["__scopeId", "data-v-2ccff3bb
5982
6081
  !e || !e.length || (!this.activeCategory || !e.includes(this.activeCategory)) && this.selectCategory(e[0]);
5983
6082
  }
5984
6083
  },
5985
- beforeCreate() {
5986
- this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", Nt);
5987
- },
5988
6084
  async created() {
5989
6085
  var n, s, i, o;
5990
- this.canPurchase && await this.loadPrices();
6086
+ this.canPurchase && this.paywall.isAvailable && await this.loadPrices();
5991
6087
  let e = this.galleryCategory;
5992
6088
  !e && ((s = (n = this.$route) == null ? void 0 : n.query) != null && s.list) && ([e] = this.$route.query.list.split(",")), e && (this.activeCategory = this.allCategories.find(
5993
6089
  ({ key: r }) => r === e
@@ -6005,7 +6101,7 @@ const za = /* @__PURE__ */ F(ba, [["render", Ea], ["__scopeId", "data-v-2ccff3bb
6005
6101
  },
6006
6102
  methods: {
6007
6103
  ...Z({
6008
- loadPrices: P.LOAD_PRICES
6104
+ loadPrices: A.LOAD_PRICES
6009
6105
  }),
6010
6106
  async loadTemplateGallery() {
6011
6107
  this.isLoading = !0;
@@ -6017,7 +6113,7 @@ const za = /* @__PURE__ */ F(ba, [["render", Ea], ["__scopeId", "data-v-2ccff3bb
6017
6113
  try {
6018
6114
  const t = await this.fetchGallery(e);
6019
6115
  this.templateGalleryItems = (t || []).map((n) => {
6020
- if (this.canPurchase && n.isPurchasable) {
6116
+ if (this.canPurchase && this.paywall.isAvailable && n.isPurchasable) {
6021
6117
  const s = Je(n, {
6022
6118
  availableProducts: this.stripeProducts
6023
6119
  });
@@ -6058,7 +6154,7 @@ const za = /* @__PURE__ */ F(ba, [["render", Ea], ["__scopeId", "data-v-2ccff3bb
6058
6154
  docspo: "/img/docspo/icons/apple-touch-icon-180x180.png"
6059
6155
  };
6060
6156
  this.$modal.show(
6061
- za,
6157
+ Ha,
6062
6158
  {
6063
6159
  template: e,
6064
6160
  fetchGallery: this.fetchGallery,
@@ -6103,8 +6199,8 @@ const za = /* @__PURE__ */ F(ba, [["render", Ea], ["__scopeId", "data-v-2ccff3bb
6103
6199
  }
6104
6200
  }
6105
6201
  };
6106
- function Oa(e, t, n, s, i, o) {
6107
- return A(e.$slots, "default", {
6202
+ function qa(e, t, n, s, i, o) {
6203
+ return M(e.$slots, "default", {
6108
6204
  galleryItems: o.galleryItems,
6109
6205
  categories: o.categories,
6110
6206
  activeCategory: i.activeCategory,
@@ -6112,7 +6208,7 @@ function Oa(e, t, n, s, i, o) {
6112
6208
  selectGalleryItem: o.selectGalleryItem
6113
6209
  });
6114
6210
  }
6115
- const Ua = /* @__PURE__ */ F(Ra, [["render", Oa]]), Ha = {
6211
+ const Ga = /* @__PURE__ */ L(Ua, [["render", qa]]), Na = {
6116
6212
  i18nOptions: {
6117
6213
  namespaces: "TemplateSelector",
6118
6214
  messages: {
@@ -6156,14 +6252,14 @@ const Ua = /* @__PURE__ */ F(Ra, [["render", Oa]]), Ha = {
6156
6252
  },
6157
6253
  name: "TemplateSelector",
6158
6254
  components: {
6159
- HorizontalScroll: ya,
6160
- DocumentIcon: ca,
6161
- DocumentRecent: na,
6162
- GalleryLogic: Ua,
6163
- IsPremiumPreStep: X,
6255
+ HorizontalScroll: ba,
6256
+ DocumentIcon: pa,
6257
+ DocumentRecent: sa,
6258
+ GalleryLogic: Ga,
6259
+ IsPremiumPreStep: ee,
6164
6260
  CDropdown: re,
6165
6261
  CDropdownItem: q,
6166
- TemplateActionsDropdown: js
6262
+ TemplateActionsDropdown: Qs
6167
6263
  },
6168
6264
  mixins: [Q],
6169
6265
  props: {
@@ -6220,7 +6316,7 @@ const Ua = /* @__PURE__ */ F(Ra, [["render", Oa]]), Ha = {
6220
6316
  };
6221
6317
  },
6222
6318
  computed: {
6223
- ...R({
6319
+ ...H({
6224
6320
  canFeature: "application/feature",
6225
6321
  templateById: "templates/byId",
6226
6322
  isFetchingTemplates: "templates/isFetching",
@@ -6267,10 +6363,10 @@ const Ua = /* @__PURE__ */ F(Ra, [["render", Oa]]), Ha = {
6267
6363
  },
6268
6364
  methods: {
6269
6365
  ...Z({
6270
- loadTemplatesAction: P.LOAD_TEMPLATES,
6271
- loadTemplate: P.LOAD_TEMPLATE,
6272
- createTemplate: P.DO_CREATE_TEMPLATE,
6273
- removeTemplate: P.REMOVE_TEMPLATE
6366
+ loadTemplatesAction: A.LOAD_TEMPLATES,
6367
+ loadTemplate: A.LOAD_TEMPLATE,
6368
+ createTemplate: A.DO_CREATE_TEMPLATE,
6369
+ removeTemplate: A.REMOVE_TEMPLATE
6274
6370
  }),
6275
6371
  loadTemplates() {
6276
6372
  const e = {};
@@ -6287,7 +6383,7 @@ const Ua = /* @__PURE__ */ F(Ra, [["render", Oa]]), Ha = {
6287
6383
  },
6288
6384
  async saveTemplate(e) {
6289
6385
  try {
6290
- const { data: t } = e, n = $t(t, [
6386
+ const { data: t } = e, n = It(t, [
6291
6387
  "_id",
6292
6388
  "id",
6293
6389
  "companyId",
@@ -6319,46 +6415,46 @@ const Ua = /* @__PURE__ */ F(Ra, [["render", Oa]]), Ha = {
6319
6415
  );
6320
6416
  },
6321
6417
  async fetchGallery(e = {}) {
6322
- const { data: t } = await It.get(e);
6418
+ const { data: t } = await $t.get(e);
6323
6419
  return t;
6324
6420
  },
6325
6421
  canUseTemplate(e) {
6326
6422
  return e.doConsumeDocumentQuota ? this.canFeature("useDocTemplate") : !0;
6327
6423
  }
6328
6424
  }
6329
- }, qa = { class: "h-full w-full overflow-y-auto rounded-2xl bg-white px-4 pb-10 pt-10 md:px-10 md:pt-16" }, Ga = { style: { width: "100%", "padding-bottom": "5em" } }, Na = { class: "section-title" }, Wa = { class: "section-subtitle" }, ja = {
6425
+ }, Wa = { class: "h-full w-full overflow-y-auto rounded-2xl bg-white px-4 pb-10 pt-10 md:px-10 md:pt-16" }, ja = { style: { width: "100%", "padding-bottom": "5em" } }, Za = { class: "section-title" }, Ka = { class: "section-subtitle" }, Qa = {
6330
6426
  key: 0,
6331
6427
  class: "inline-flex h-5 items-center gap-1 rounded border border-gray-300 bg-gray-200 px-1 leading-none text-gray-500/90 shadow-sm"
6332
- }, Za = {
6428
+ }, Ya = {
6333
6429
  key: 1,
6334
6430
  class: "bg-primary-500 border-primary-600 inline-flex h-5 items-center rounded border px-1.5 text-[11px] font-semibold capitalize leading-none text-white shadow-sm"
6335
- }, Ka = { style: { width: "100%", "padding-bottom": "5em" } }, Qa = { class: "section-title w-full" }, Ya = { class: "flex items-center justify-between" }, Ja = ["innerHTML"], Xa = {
6431
+ }, Ja = { style: { width: "100%", "padding-bottom": "5em" } }, Xa = { class: "section-title w-full" }, el = { class: "flex items-center justify-between" }, tl = ["innerHTML"], nl = {
6336
6432
  key: 0,
6337
6433
  class: "bg-primary-500 border-primary-700/40 rounded border p-1 text-xs font-semibold leading-none text-white shadow-lg"
6338
- }, el = ["textContent"], tl = {
6434
+ }, il = ["textContent"], ol = {
6339
6435
  class: "section-title",
6340
6436
  style: { flex: "1 1 auto", "padding-bottom": "0.5em" }
6341
- }, nl = { class: "section-subtitle" };
6342
- function il(e, t, n, s, i, o) {
6343
- const r = u("CIcon"), g = u("CButton"), h = u("TemplateActionsDropdown"), y = u("DocumentIcon"), w = u("IsPremiumPreStep"), k = u("CDropdownItem"), D = u("CDropdown"), T = u("HorizontalScroll"), v = u("GalleryLogic"), f = u("DocumentRecent"), _ = ie("tooltip");
6344
- return l(), p("div", qa, [
6437
+ }, sl = { class: "section-subtitle" };
6438
+ function al(e, t, n, s, i, o) {
6439
+ const r = m("CIcon"), g = m("CButton"), h = m("TemplateActionsDropdown"), y = m("DocumentIcon"), w = m("IsPremiumPreStep"), k = m("CDropdownItem"), D = m("CDropdown"), T = m("HorizontalScroll"), v = m("GalleryLogic"), f = m("DocumentRecent"), _ = ie("tooltip");
6440
+ return l(), p("div", Wa, [
6345
6441
  a("div", {
6346
- class: B([{ small: e.mq === "sm" }, "font-inter form-start main mx-auto max-w-5xl"])
6442
+ class: F([{ small: e.mq === "sm" }, "font-inter form-start main mx-auto max-w-5xl"])
6347
6443
  }, [
6348
- A(e.$slots, "header", {}, void 0, !0),
6349
- a("div", Ga, [
6350
- a("div", Na, [
6444
+ M(e.$slots, "header", {}, void 0, !0),
6445
+ a("div", ja, [
6446
+ a("div", Za, [
6351
6447
  a("div", null, d(e.$t("myTemplates")), 1),
6352
- a("div", Wa, d(e.$t("myTemplatesSubTitle")), 1)
6448
+ a("div", Ka, d(e.$t("myTemplatesSubTitle")), 1)
6353
6449
  ]),
6354
6450
  c(w, { feature: "useDocTemplate" }, {
6355
- default: m(({ onClick: $ }) => [
6451
+ default: u(({ onClick: I }) => [
6356
6452
  (l(), b(W(i.isExpanded ? "div" : "HorizontalScroll"), {
6357
- class: B([{ "is-expanded": i.isExpanded }, "template-list"]),
6453
+ class: F([{ "is-expanded": i.isExpanded }, "template-list"]),
6358
6454
  onExpand: t[1] || (t[1] = (S) => i.isExpanded = !0)
6359
6455
  }, {
6360
- default: m(() => [
6361
- (l(!0), p(I, null, E(o.myTemplates, (S) => (l(), b(y, {
6456
+ default: u(() => [
6457
+ (l(!0), p($, null, E(o.myTemplates, (S) => (l(), b(y, {
6362
6458
  key: S.id,
6363
6459
  "is-add": S.id === "empty",
6364
6460
  "is-placeholder": S.placeholder,
@@ -6366,10 +6462,10 @@ function il(e, t, n, s, i, o) {
6366
6462
  thumbnail: S.thumbnailUrl,
6367
6463
  name: S.name,
6368
6464
  class: "template-item",
6369
- onTriggerOpenTemplate: (H) => S.placeholder ? null : o.canUseTemplate(S) ? o.select({ templateId: S.id }) : $()
6465
+ onTriggerOpenTemplate: (U) => S.placeholder ? null : o.canUseTemplate(S) ? o.select({ templateId: S.id }) : I()
6370
6466
  }, {
6371
- badge: m(() => [
6372
- o.canUseTemplate(S) ? !S.doConsumeDocumentQuota && !S.placeholder ? (l(), p("div", Za, d(e.$t("_common:free")), 1)) : C("", !0) : (l(), p("div", ja, [
6467
+ badge: u(() => [
6468
+ o.canUseTemplate(S) ? !S.doConsumeDocumentQuota && !S.placeholder ? (l(), p("div", Ya, d(e.$t("_common:free")), 1)) : C("", !0) : (l(), p("div", Qa, [
6373
6469
  c(r, {
6374
6470
  type: "lock",
6375
6471
  size: "12",
@@ -6378,7 +6474,7 @@ function il(e, t, n, s, i, o) {
6378
6474
  t[3] || (t[3] = a("div", { class: "text-[11px] font-semibold" }, "Pro", -1))
6379
6475
  ]))
6380
6476
  ]),
6381
- default: m(() => [
6477
+ default: u(() => [
6382
6478
  S.onModify === "create" && !S.doConsumeDocumentQuota ? G((l(), b(g, {
6383
6479
  key: 0,
6384
6480
  icon: "info",
@@ -6421,43 +6517,43 @@ function il(e, t, n, s, i, o) {
6421
6517
  "modal-props": o.galleryModalProps,
6422
6518
  "gallery-category": n.galleryCategory
6423
6519
  }, {
6424
- default: m(({
6425
- galleryItems: $,
6520
+ default: u(({
6521
+ galleryItems: I,
6426
6522
  categories: S,
6427
- activeCategory: H,
6523
+ activeCategory: U,
6428
6524
  selectCategory: V,
6429
6525
  selectGalleryItem: se
6430
6526
  }) => [
6431
- a("div", Ka, [
6432
- a("div", Qa, [
6433
- a("div", Ya, [
6527
+ a("div", Ja, [
6528
+ a("div", Xa, [
6529
+ a("div", el, [
6434
6530
  a("div", null, d(e.$t("gallery")), 1),
6435
6531
  c(D, {
6436
6532
  style: { "margin-left": "calc(0.5 * var(--rem))" },
6437
6533
  onClick: t[2] || (t[2] = j(() => {
6438
6534
  }, ["stop"]))
6439
6535
  }, {
6440
- trigger: m(() => [
6536
+ trigger: u(() => [
6441
6537
  c(g, {
6442
6538
  size: "small",
6443
6539
  type: "none",
6444
6540
  pattern: "secondary",
6445
6541
  "icon-right": "chevron-down"
6446
6542
  }, {
6447
- default: m(() => [
6448
- x(d(H ? H.label : ""), 1)
6543
+ default: u(() => [
6544
+ x(d(U ? U.label : ""), 1)
6449
6545
  ]),
6450
6546
  _: 2
6451
6547
  }, 1024)
6452
6548
  ]),
6453
- default: m(() => [
6454
- (l(!0), p(I, null, E(S, (L) => (l(), b(k, {
6455
- key: L.key,
6456
- "icon-right": H && H.key === L.key ? "check" : "",
6457
- onClick: (ce) => V(L)
6549
+ default: u(() => [
6550
+ (l(!0), p($, null, E(S, (B) => (l(), b(k, {
6551
+ key: B.key,
6552
+ "icon-right": U && U.key === B.key ? "check" : "",
6553
+ onClick: (ce) => V(B)
6458
6554
  }, {
6459
- default: m(() => [
6460
- x(d(L.label), 1)
6555
+ default: u(() => [
6556
+ x(d(B.label), 1)
6461
6557
  ]),
6462
6558
  _: 2
6463
6559
  }, 1032, ["icon-right", "onClick"]))), 128))
@@ -6468,29 +6564,29 @@ function il(e, t, n, s, i, o) {
6468
6564
  a("div", {
6469
6565
  class: "section-subtitle",
6470
6566
  innerHTML: e.$t("gallerySubTitle")
6471
- }, null, 8, Ja)
6567
+ }, null, 8, tl)
6472
6568
  ]),
6473
6569
  c(T, { class: "template-list" }, {
6474
- default: m(() => [
6475
- (l(!0), p(I, null, E($, (L) => (l(), b(y, {
6476
- key: L.id,
6477
- "is-placeholder": L.placeholder,
6478
- media: { type: "image", resourceUrl: L.backgroundUrl },
6479
- name: L.name,
6570
+ default: u(() => [
6571
+ (l(!0), p($, null, E(I, (B) => (l(), b(y, {
6572
+ key: B.id,
6573
+ "is-placeholder": B.placeholder,
6574
+ media: { type: "image", resourceUrl: B.backgroundUrl },
6575
+ name: B.name,
6480
6576
  class: "template-item",
6481
- onTriggerOpenTemplate: (ce) => L.placeholder ? null : se(L)
6577
+ onTriggerOpenTemplate: (ce) => B.placeholder ? null : se(B)
6482
6578
  }, {
6483
- badge: m(() => [
6484
- L.product ? (l(), p("div", Xa, [
6485
- L.product.isPurchased ? (l(), b(r, {
6579
+ badge: u(() => [
6580
+ B.product ? (l(), p("div", nl, [
6581
+ B.product.isPurchased ? (l(), b(r, {
6486
6582
  key: 0,
6487
6583
  type: "check",
6488
6584
  size: "14",
6489
6585
  "stroke-width": "3"
6490
6586
  })) : (l(), p("div", {
6491
6587
  key: 1,
6492
- textContent: d(L.product.price)
6493
- }, null, 8, el))
6588
+ textContent: d(B.product.price)
6589
+ }, null, 8, il))
6494
6590
  ])) : C("", !0)
6495
6591
  ]),
6496
6592
  _: 2
@@ -6507,10 +6603,10 @@ function il(e, t, n, s, i, o) {
6507
6603
  onUseDocTemplate: o.select,
6508
6604
  onSaveTemplate: o.openTemplateFormModal
6509
6605
  }, {
6510
- default: m(() => [
6511
- a("div", tl, [
6606
+ default: u(() => [
6607
+ a("div", ol, [
6512
6608
  a("div", null, d(e.$t("recent")), 1),
6513
- a("div", nl, d(e.$t("recentSubTitle")), 1)
6609
+ a("div", sl, d(e.$t("recentSubTitle")), 1)
6514
6610
  ])
6515
6611
  ]),
6516
6612
  _: 1
@@ -6518,12 +6614,12 @@ function il(e, t, n, s, i, o) {
6518
6614
  ], 2)
6519
6615
  ]);
6520
6616
  }
6521
- const ol = /* @__PURE__ */ F(Ha, [["render", il], ["__scopeId", "data-v-8b78439a"]]);
6617
+ const ll = /* @__PURE__ */ L(Na, [["render", al], ["__scopeId", "data-v-8b78439a"]]);
6522
6618
  var he, Ve;
6523
- function sl() {
6619
+ function rl() {
6524
6620
  if (Ve) return he;
6525
6621
  Ve = 1;
6526
- var e = Ft(), t = Lt(), n = Bt();
6622
+ var e = Lt(), t = Bt(), n = Ft();
6527
6623
  function s(i, o, r) {
6528
6624
  for (var g = -1, h = o.length, y = {}; ++g < h; ) {
6529
6625
  var w = o[g], k = e(i, w);
@@ -6534,10 +6630,10 @@ function sl() {
6534
6630
  return he = s, he;
6535
6631
  }
6536
6632
  var fe, Me;
6537
- function al() {
6633
+ function dl() {
6538
6634
  if (Me) return fe;
6539
6635
  Me = 1;
6540
- var e = sl(), t = Vt();
6636
+ var e = rl(), t = Vt();
6541
6637
  function n(s, i) {
6542
6638
  return e(s, i, function(o, r) {
6543
6639
  return t(s, r);
@@ -6546,16 +6642,16 @@ function al() {
6546
6642
  return fe = n, fe;
6547
6643
  }
6548
6644
  var ge, Pe;
6549
- function ll() {
6645
+ function cl() {
6550
6646
  if (Pe) return ge;
6551
6647
  Pe = 1;
6552
- var e = al(), t = Kt(), n = t(function(s, i) {
6648
+ var e = dl(), t = jt(), n = t(function(s, i) {
6553
6649
  return s == null ? {} : e(s, i);
6554
6650
  });
6555
6651
  return ge = n, ge;
6556
6652
  }
6557
- var rl = ll();
6558
- const dl = /* @__PURE__ */ Ue(rl), cl = {
6653
+ var ul = cl();
6654
+ const ml = /* @__PURE__ */ He(ul), pl = {
6559
6655
  name: "DocForm",
6560
6656
  i18nOptions: {
6561
6657
  namespaces: "widgetDocForm",
@@ -6569,9 +6665,9 @@ const dl = /* @__PURE__ */ Ue(rl), cl = {
6569
6665
  }
6570
6666
  },
6571
6667
  components: {
6572
- TemplateSelector: ol,
6573
- DocumentForm: Ws,
6574
- PostSend: dn
6668
+ TemplateSelector: ll,
6669
+ DocumentForm: Ks,
6670
+ PostSend: rn
6575
6671
  },
6576
6672
  provide() {
6577
6673
  return {
@@ -6638,7 +6734,7 @@ const dl = /* @__PURE__ */ Ue(rl), cl = {
6638
6734
  };
6639
6735
  },
6640
6736
  computed: {
6641
- ...R({
6737
+ ...H({
6642
6738
  company: "application/company",
6643
6739
  feature: "application/feature",
6644
6740
  can: "application/can",
@@ -6672,12 +6768,12 @@ const dl = /* @__PURE__ */ Ue(rl), cl = {
6672
6768
  },
6673
6769
  methods: {
6674
6770
  ...Z({
6675
- removeFormKeyValue: P.REMOVE_FORM_KEY_VALUE,
6676
- loadDocumentForm: P.LOAD_DOCUMENT2_FORM,
6677
- duplicateDocumentForm: P.LOAD_DUPLICATE_DOCUMENT2_FORM,
6678
- saveDocument: P.SAVE_DYNDOC_FORM,
6679
- loadCompanyUser: P.LOAD_COMPANY_USER,
6680
- saveTemplate: P.SAVE_TEMPLATE_FORM
6771
+ removeFormKeyValue: A.REMOVE_FORM_KEY_VALUE,
6772
+ loadDocumentForm: A.LOAD_DOCUMENT2_FORM,
6773
+ duplicateDocumentForm: A.LOAD_DUPLICATE_DOCUMENT2_FORM,
6774
+ saveDocument: A.SAVE_DYNDOC_FORM,
6775
+ loadCompanyUser: A.LOAD_COMPANY_USER,
6776
+ saveTemplate: A.SAVE_TEMPLATE_FORM
6681
6777
  }),
6682
6778
  async initDoc() {
6683
6779
  if (!this.rawDoc) throw new Error("Missing initiated form document");
@@ -6690,7 +6786,7 @@ const dl = /* @__PURE__ */ Ue(rl), cl = {
6690
6786
  },
6691
6787
  async onTemplateSelect({ templateId: e, documentId: t, formData: n }) {
6692
6788
  var i;
6693
- const s = dl({ ...this.rawDoc }, [
6789
+ const s = ml({ ...this.rawDoc }, [
6694
6790
  "__tempId",
6695
6791
  "externalReferences",
6696
6792
  "subscriberCompanyUserIds",
@@ -6739,15 +6835,15 @@ const dl = /* @__PURE__ */ Ue(rl), cl = {
6739
6835
  return !t.sms && !t.email;
6740
6836
  }
6741
6837
  }
6742
- }, ul = { class: "flex h-full w-full flex-col" }, ml = {
6838
+ }, hl = { class: "flex h-full w-full flex-col" }, fl = {
6743
6839
  key: 0,
6744
6840
  class: "flex h-full w-full flex-col"
6745
- }, pl = { class: "relative flex h-16 items-center justify-center border-b border-gray-200" };
6746
- function hl(e, t, n, s, i, o) {
6747
- const r = u("CButton"), g = u("TemplateSelector"), h = u("DocumentForm"), y = u("PostSend");
6748
- return l(), p("div", ul, [
6749
- i.view === "templateSelect" ? (l(), p("div", ml, [
6750
- a("div", pl, [
6841
+ }, gl = { class: "relative flex h-16 items-center justify-center border-b border-gray-200" };
6842
+ function yl(e, t, n, s, i, o) {
6843
+ const r = m("CButton"), g = m("TemplateSelector"), h = m("DocumentForm"), y = m("PostSend");
6844
+ return l(), p("div", hl, [
6845
+ i.view === "templateSelect" ? (l(), p("div", fl, [
6846
+ a("div", gl, [
6751
6847
  n.closeFunc ? (l(), b(r, {
6752
6848
  key: 0,
6753
6849
  icon: "x",
@@ -6782,7 +6878,7 @@ function hl(e, t, n, s, i, o) {
6782
6878
  "can-show-banner": !1,
6783
6879
  "show-keep-clients-option": n.showKeepClientsOption
6784
6880
  }, {
6785
- "nav-right-action": m(() => [
6881
+ "nav-right-action": u(() => [
6786
6882
  n.isEditingTemplate ? (l(), b(r, {
6787
6883
  key: 0,
6788
6884
  loading: i.isSavingTemplate,
@@ -6794,7 +6890,7 @@ function hl(e, t, n, s, i, o) {
6794
6890
  thinner: "",
6795
6891
  onClick: o.onSaveTemplateClick
6796
6892
  }, {
6797
- default: m(() => [
6893
+ default: u(() => [
6798
6894
  x(d(e.$t("_common:save", { thing: e.$t("_common:template") })), 1)
6799
6895
  ]),
6800
6896
  _: 1
@@ -6809,7 +6905,7 @@ function hl(e, t, n, s, i, o) {
6809
6905
  }, null, 8, ["document", "on-send-func", "on-close-func"])) : C("", !0)
6810
6906
  ]);
6811
6907
  }
6812
- const Ol = /* @__PURE__ */ F(cl, [["render", hl], ["__scopeId", "data-v-d0a00abf"]]);
6908
+ const ql = /* @__PURE__ */ L(pl, [["render", yl], ["__scopeId", "data-v-d0a00abf"]]);
6813
6909
  export {
6814
- Ol as default
6910
+ ql as default
6815
6911
  };