@cling-se/widget 0.19.6 → 0.19.7

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 (127) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/dist/{AddClientCallout-DtVRTCr_.js → AddClientCallout-BdGevuQo.js} +6 -6
  3. package/dist/{AnswerModal-ClyWtHBj.js → AnswerModal-DfjF-RVP.js} +3 -3
  4. package/dist/{AttachmentItem-COoLlAum.js → AttachmentItem-BEd3qVAo.js} +17 -17
  5. package/dist/{BaseUpload-DlaYaxxr.js → BaseUpload-Zm4EX8ir.js} +2 -2
  6. package/dist/{BlockMedia-IMu4YO3J.js → BlockMedia-ZHaA4OMV.js} +14 -14
  7. package/dist/{CCallout-C32zwICP.js → CCallout-BlglVZrm.js} +3 -3
  8. package/dist/{CCurrencyDropdown-D4ZxTioo.js → CCurrencyDropdown-BzvKsm1N.js} +9 -9
  9. package/dist/{CDropdownItem-BuQONogL.js → CDropdownItem-B5rgSee7.js} +7 -7
  10. package/dist/{CFormField.vue_vue_type_script_setup_true_lang-KdkAe_wn.js → CFormField.vue_vue_type_script_setup_true_lang-CVy64zGe.js} +18 -18
  11. package/dist/{CPhoneFormat-C2K78cmZ.js → CPhoneFormat-DaDNMlmK.js} +1 -1
  12. package/dist/{CPhoneInput-DolVFzrL.js → CPhoneInput-BUogm59J.js} +18 -18
  13. package/dist/{CPriceInput-SbRlrDnD.js → CPriceInput-Cd5OHMJS.js} +11 -11
  14. package/dist/CSelect-CmoAbVkP.js +129 -0
  15. package/dist/CSkeleton-BF6EYj8H.js +47 -0
  16. package/dist/{ClientAutocomplete-vgxEGqNU.js → ClientAutocomplete-CHfp4YiV.js} +18 -18
  17. package/dist/{ClientModal-B8ip7v99.js → ClientModal-Com23Qgc.js} +31 -31
  18. package/dist/{ColorPicker-BrfM9S1s.js → ColorPicker-BzdHtZep.js} +26 -26
  19. package/dist/{CompanyModal-DJZezqM5.js → CompanyModal-CGjSgTEJ.js} +16 -16
  20. package/dist/{ContentWrapper-zJ4MCnSC.js → ContentWrapper-CS-Bh4Bk.js} +17 -17
  21. package/dist/{CoverBlockSettings-Cz0NUYXX.js → CoverBlockSettings-DDHQzLdc.js} +28 -28
  22. package/dist/{DocAnswer-EWarWnbt.js → DocAnswer-Cmdsw_CW.js} +2 -2
  23. package/dist/{DocDetails-CGHN3tbO.js → DocDetails-C5Vzh550.js} +28 -28
  24. package/dist/{DocForm-BLTap-Bb.js → DocForm-DEUVV11n.js} +994 -960
  25. package/dist/{DocFormSend-_jCPFI9r.js → DocFormSend-Dt7N3wCz.js} +2 -2
  26. package/dist/{DocLinks-D9Ok4HvN.js → DocLinks-C6-Er0rk.js} +2 -2
  27. package/dist/{DocModalBase-fQz5UuCF.js → DocModalBase-DbuJwHXi.js} +1 -1
  28. package/dist/{DocPrint-Cua_U7zt.js → DocPrint-D_uxg7qD.js} +6 -6
  29. package/dist/{DocReceipt-Cg2hiSby.js → DocReceipt-D6LP9UAa.js} +16 -16
  30. package/dist/{DocSendReminder-Dh7G9kbZ.js → DocSendReminder-DopLhyjz.js} +8 -8
  31. package/dist/{DocTextEditor-Ds4Cbg-2.js → DocTextEditor-DeZtzbgm.js} +8 -8
  32. package/dist/{DocTimeline-DpWUMwJE.js → DocTimeline-DAWZu_KT.js} +25 -25
  33. package/dist/{DocumentClient-DUqHQVSe.js → DocumentClient-kxnT6k9s.js} +7 -7
  34. package/dist/{DocumentLayout-Bth5tpry.js → DocumentLayout-DaVz9SGF.js} +68 -68
  35. package/dist/{DocumentLogotype-BiekV9-j.js → DocumentLogotype-G-a7gBIC.js} +6 -6
  36. package/dist/{DocumentVoided-D_YMyeV8.js → DocumentVoided-SG_ShMmc.js} +5 -5
  37. package/dist/{EmbedInput-Crx-LEGc.js → EmbedInput-CJL5y3Zj.js} +9 -9
  38. package/dist/{EmbedSettings-xIGtEN7L.js → EmbedSettings-B0X6A9Uy.js} +9 -9
  39. package/dist/{ErrorCallout-D_fUVD4I.js → ErrorCallout-xCSfpQWV.js} +7 -7
  40. package/dist/{FilePreviewModal-av2lE91B.js → FilePreviewModal-Da_pMUoO.js} +6 -6
  41. package/dist/{Flag-CI52SH_9.js → Flag-wXawyyMO.js} +1 -1
  42. package/dist/{HeaderSettings-Ip634NWe.js → HeaderSettings-CD3y6-uY.js} +37 -37
  43. package/dist/{ImageSelectModal-DNtR86H7.js → ImageSelectModal-DatnXHH1.js} +5 -5
  44. package/dist/{ImageUploadWrapper-Co43CWCP.js → ImageUploadWrapper-CwKe3Iq7.js} +33 -33
  45. package/dist/{Index-CeJRMtmh.js → Index-1WPEpaVr.js} +4 -4
  46. package/dist/{Index-BY2kaUsM.js → Index-9ZFW8Ka7.js} +4 -4
  47. package/dist/{Index-DlGSVN83.js → Index-B53eUt7Y.js} +10 -10
  48. package/dist/{Index-bvCcp9l6.js → Index-BJf4YdYB.js} +14 -14
  49. package/dist/{Index-DWIpdRX-.js → Index-BTDQax0X.js} +16 -16
  50. package/dist/{Index-BMwBpYpa.js → Index-Bb6JZC8l.js} +4 -4
  51. package/dist/{Index-DwIfORsz.js → Index-BbVHxVFJ.js} +20 -20
  52. package/dist/{Index-DOCeODtL.js → Index-BlownK7_.js} +6 -6
  53. package/dist/{Index-DKuTOk0t.js → Index-BvAqglwa.js} +33 -33
  54. package/dist/{Index-CTQyX_63.js → Index-C-EUJjuk.js} +2 -2
  55. package/dist/{Index-uDG1i8F-.js → Index-C2-s62x7.js} +5 -5
  56. package/dist/{Index-DGwF2cvQ.js → Index-COF0evH4.js} +10 -10
  57. package/dist/{Index-CxAd29-m.js → Index-CQboLS2e.js} +5 -5
  58. package/dist/{Index-CFSuI-QL.js → Index-CTrX3VRa.js} +5 -5
  59. package/dist/{Index-CZqJYh7u.js → Index-CXjLkK_n.js} +13 -13
  60. package/dist/{Index-C-Suk6Qs.js → Index-Ciy9lnhS.js} +3 -3
  61. package/dist/{Index-C92jPUcy.js → Index-Cjg3X74T.js} +4 -4
  62. package/dist/{Index-chiZsMLh.js → Index-Ck-_9woY.js} +29 -29
  63. package/dist/{Index-Bj81gIof.js → Index-Ct735UtM.js} +2 -2
  64. package/dist/{Index-xVX7aGXv.js → Index-D-gJQEAD.js} +3 -3
  65. package/dist/{Index-BdW5_mV-.js → Index-DAkq_7Ws.js} +11 -11
  66. package/dist/{Index-DQbbxV0m.js → Index-DOeHci16.js} +6 -6
  67. package/dist/{Index-PzcQhAgF.js → Index-DfuzxXzD.js} +2 -2
  68. package/dist/{Index-CV5RbQn5.js → Index-Dfy0PsiW.js} +25 -25
  69. package/dist/{Index-Bgm5PHos.js → Index-DjfbgA_7.js} +19 -19
  70. package/dist/{Index-CmLvcWe3.js → Index-DkQ8_VkX.js} +8 -8
  71. package/dist/{Index-CJi8Remu.js → Index-Dxg4gEKd.js} +18 -18
  72. package/dist/{Index-DOiPKAhk.js → Index-DzdEqsZB.js} +8 -8
  73. package/dist/{Index-BF1bZUso.js → Index-GPliVrhC.js} +5 -5
  74. package/dist/{Index-4ZURK6a8.js → Index-NnBwJv9v.js} +6 -6
  75. package/dist/{Index-C6KPbnAq.js → Index-ezY0DbcB.js} +10 -10
  76. package/dist/Index-qFx0G3fC.js +4 -0
  77. package/dist/{Index-D_X2OZA3.js → Index-yS5OPrJJ.js} +2 -2
  78. package/dist/{Index-Ci_PUYqE.js → Index-y_AJP61r.js} +12 -12
  79. package/dist/{Index.vue_vue_type_script_lang-WK-YdZ30.js → Index.vue_vue_type_script_lang-B3RoDZmC.js} +2 -2
  80. package/dist/{InputToggleRow-CWvEi0HF.js → InputToggleRow-D5rvQpAw.js} +11 -11
  81. package/dist/{ManualPopover-BSX3bOr0.js → ManualPopover-Bd-GsLGT.js} +6 -6
  82. package/dist/{MediaWrapper-D8BXMoDz.js → MediaWrapper-Ci0XPCcb.js} +3 -3
  83. package/dist/{NotBindingText-V-8_5Pln.js → NotBindingText-DhndGZE3.js} +2 -2
  84. package/dist/{PackageGroup-BN5njJA7.js → PackageGroup-4Jt9ClVO.js} +17 -17
  85. package/dist/{PdfTerms-DarzYw1g.js → PdfTerms-CGeJDJpQ.js} +5 -5
  86. package/dist/{PdfViewer-DYN758PA.js → PdfViewer-o2vb6Fya.js} +78 -78
  87. package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-B3g18l5G.js → PlainHtml.vue_vue_type_script_setup_true_lang-BtnMqKcE.js} +1 -1
  88. package/dist/{PriceHeader-B7QoQ2ZO.js → PriceHeader-BsObxLHK.js} +31 -31
  89. package/dist/{SearchApi-rcvoh3Av.js → SearchApi-ZczKsBb7.js} +1 -1
  90. package/dist/{SendForm-DHRq76pb.js → SendForm-D5jqkofo.js} +8 -8
  91. package/dist/{Setup-BWMY9S__.js → Setup-CdZzn0qW.js} +1 -1
  92. package/dist/{SmartList-BpNfmUMA.js → SmartList-B36ffGAZ.js} +1 -1
  93. package/dist/{Sortable.vue_vue_type_script_setup_true_lang-B_f6Nh_O.js → Sortable.vue_vue_type_script_setup_true_lang-Di1urzqu.js} +31 -31
  94. package/dist/{TermsSettings-BTv1dj63.js → TermsSettings-CmAHVOuX.js} +14 -14
  95. package/dist/{ThemeColorRow-r1ECSrBU.js → ThemeColorRow-CScTIcPB.js} +6 -6
  96. package/dist/{ToggleBinding-BBF1duBh.js → ToggleBinding-CVZZlpBR.js} +4 -4
  97. package/dist/{UploadModal-B_l6gvuJ.js → UploadModal-2tXsmGMM.js} +4 -4
  98. package/dist/{VideoPlayerInput-8e9ooR1p.js → VideoPlayerInput-BDzjZ2St.js} +9 -9
  99. package/dist/{VideoPlayerSettings-CFOPAFlE.js → VideoPlayerSettings-BLAEZw4C.js} +6 -6
  100. package/dist/{VideoSelectModal-QWkNrFQC.js → VideoSelectModal-iqgmg85K.js} +16 -16
  101. package/dist/{focusDrawerMixin-hy76kTBG.js → focusDrawerMixin-BmyahQiE.js} +1 -1
  102. package/dist/{formDrawerState-s4ySD850.js → formDrawerState-B7ASfNsk.js} +1 -1
  103. package/dist/{helpers-BHIbXt8q.js → helpers-BVP2Pul1.js} +5 -5
  104. package/dist/{index-Dbe2ueXc.js → index-B86TZXOh.js} +32 -32
  105. package/dist/{index-ByEyJueq.js → index-BDb4bM0D.js} +17 -17
  106. package/dist/{index-Cwf2aXw3.js → index-BH5vwOzR.js} +3 -3
  107. package/dist/{index-DpubWmXg.js → index-Cd4S4J-L.js} +56 -56
  108. package/dist/{index-DjHfCViH.js → index-CsbYpQqP.js} +44 -43
  109. package/dist/{index-CGXCI2G7.js → index-D0Qee2OX.js} +34 -34
  110. package/dist/{index-BTw8ZC8k.js → index-DXNrJnEc.js} +7 -7
  111. package/dist/index.es.js +2 -2
  112. package/dist/index.umd.js +135 -135
  113. package/dist/{main-WDVYC60Z.js → main-C2Q8_T2Y.js} +3196 -3193
  114. package/dist/{mapFormMixin-B8xN9LiX.js → mapFormMixin-CjfqZnmd.js} +6 -6
  115. package/dist/{omit-BhJ-wiH8.js → omit-DzlbtNCX.js} +4 -4
  116. package/dist/{publicSenderState-CtB0-WJX.js → publicSenderState-C3ELW8Cw.js} +3 -3
  117. package/dist/{splitpanes-CwgWVXfp.js → splitpanes-CuxtOZyV.js} +1 -1
  118. package/dist/{template-fVxhQbOu.js → template-DzrGrOEa.js} +1 -1
  119. package/dist/{tippy.esm-Ikv5_i_g.js → tippy.esm-Bf86qEue.js} +89 -89
  120. package/dist/{useTermsModal-DxXjznop.js → useTermsModal-Be4HLDDm.js} +6 -6
  121. package/dist/{utils-fXD4AHot.js → utils-a_Odlqb5.js} +1 -1
  122. package/dist/{validation-Bf4rZ8pa.js → validation-38muBV6x.js} +2 -2
  123. package/dist/widget.css +1 -1
  124. package/package.json +1 -1
  125. package/dist/CSelect-BQsWYh8F.js +0 -98
  126. package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-aq47QhPF.js +0 -51
  127. package/dist/Index-DHzaqQH0.js +0 -4
@@ -1,31 +1,31 @@
1
- import et from "./AnswerModal-ClyWtHBj.js";
2
- import { o as tt } from "./index-ByEyJueq.js";
3
- import { w as Z, C as fe, a as ge } from "./CDropdownItem-BuQONogL.js";
4
- import { cL as pe, a as W, g as B, _ as F, o as a, b as p, s as l, d as c, v as d, w as u, H as T, e as m, l as E, f as v, a1 as te, n as L, ad as q, K as M, aJ as Q, c as C, ah as G, L as ye, F as I, h as ve, R as we, i as H, x as _e, Q as nt, p as j, ae as xe, cM as it, j as Pe, A as V, k as P, m as O, N as ot, cN as st, S as lt, M as Ae, aa as ee, ab as Ce, cD as at, aF as Te, O as N, ac as le, aE as rt, J as dt, au as be, y as se, c6 as Ee, c7 as ze, P as he, z as ct, ak as De, cO as ae, c8 as ut, cP as mt, b7 as pt, ap as Re, cQ as ht, a0 as ft, cR as gt, cS as yt, aL as Oe, r as vt, cT as Ct, cU as bt, cV as kt, u as wt, aD as Se, am as _t, cW as xt, C as He, cX as Tt, cY as Dt, at as Ue, cZ as St, c_ as $t, ca as It, c$ as Ft, d0 as Lt, d1 as Vt, b0 as Bt, d2 as Mt, d3 as Pt } from "./main-WDVYC60Z.js";
1
+ import tt from "./AnswerModal-DfjF-RVP.js";
2
+ import { o as nt } from "./index-BDb4bM0D.js";
3
+ import { w as Y, C as de, a as G } from "./CDropdownItem-B5rgSee7.js";
4
+ import { cM as ye, a as K, g as M, _ as $, o as l, b as p, j as a, d as c, t as d, w as u, x as _, e as m, Y as R, f as v, Z as oe, y as L, ab as Z, B as P, aK as X, c as C, af as j, D as be, F as S, aj as ce, L as xe, Q as q, p as Te, K as it, h as Q, ac as De, cN as ot, U, n as B, G as A, m as H, H as st, cO as at, S as lt, E as Ae, a8 as ie, a9 as ke, cE as rt, aG as Se, I as N, aa as se, aF as dt, A as ct, av as we, k as re, c7 as Ee, c8 as ze, J as ve, l as ut, ai as Ie, cP as ue, c9 as mt, cQ as pt, b8 as ht, ao as Re, cR as ft, X as Oe, cS as gt, cT as yt, aM as He, r as vt, au as Ue, aE as Ce, cU as Ct, cV as bt, cW as kt, at as wt, al as _t, cX as xt, C as qe, cY as Tt, cZ as Dt, c_ as St, c$ as It, cb as $t, d0 as Ft, d1 as Lt, d2 as Vt, b1 as Bt, d3 as Mt, d4 as Pt } from "./main-C2Q8_T2Y.js";
5
5
  /* empty css */
6
- import { l as At, g as Et, a as zt, b as Rt, _ as Ot, D as Ht } from "./DocumentLayout-Bth5tpry.js";
7
- import { F as qe, d as Ut } from "./tippy.esm-Ikv5_i_g.js";
8
- import { m as ne, u as Ge, c as $e, i as qt } from "./mapFormMixin-B8xN9LiX.js";
9
- import "./helpers-BHIbXt8q.js";
10
- import { a as Gt } from "./ClientAutocomplete-vgxEGqNU.js";
11
- import { _ as Nt } from "./Sortable.vue_vue_type_script_setup_true_lang-B_f6Nh_O.js";
12
- import { C as Wt, I as Y, _ as Ne, a as J, s as jt } from "./index-DjHfCViH.js";
13
- import { _ as ke } from "./CFormField.vue_vue_type_script_setup_true_lang-KdkAe_wn.js";
14
- import { S as Zt } from "./SmartList-BpNfmUMA.js";
15
- import { u as We } from "./index-Dbe2ueXc.js";
16
- import { r as Ie, a as Kt } from "./index-Cwf2aXw3.js";
17
- import { o as Qt, r as Yt } from "./omit-BhJ-wiH8.js";
18
- import { s as U } from "./formDrawerState-s4ySD850.js";
6
+ import { l as At, g as Et, a as zt, b as Rt, _ as Ot, D as Ht } from "./DocumentLayout-DaVz9SGF.js";
7
+ import { F as Ge, d as Ut } from "./tippy.esm-Bf86qEue.js";
8
+ import { m as ae, u as Ne, c as $e, i as qt } from "./mapFormMixin-CjfqZnmd.js";
9
+ import "./helpers-BVP2Pul1.js";
10
+ import { a as Gt } from "./ClientAutocomplete-CHfp4YiV.js";
11
+ import { _ as Nt } from "./Sortable.vue_vue_type_script_setup_true_lang-Di1urzqu.js";
12
+ import { C as Wt, I as ee, _ as We, a as te, s as jt } from "./index-CsbYpQqP.js";
13
+ import { _ as _e } from "./CFormField.vue_vue_type_script_setup_true_lang-CVy64zGe.js";
14
+ import { S as Zt } from "./SmartList-B36ffGAZ.js";
15
+ import { u as je } from "./index-B86TZXOh.js";
16
+ import { r as Fe, a as Kt } from "./index-BH5vwOzR.js";
17
+ import { o as Qt, r as Yt } from "./omit-DzlbtNCX.js";
18
+ import { s as W } from "./formDrawerState-B7ASfNsk.js";
19
19
  import { s as Jt } from "./dom-DOcGU3-g.js";
20
- import { S as Xt } from "./SendForm-DHRq76pb.js";
21
- import "./template-fVxhQbOu.js";
22
- import { u as en } from "./validation-Bf4rZ8pa.js";
23
- import { C as tn } from "./CCallout-C32zwICP.js";
24
- import { _ as nn } from "./CSkeleton.vue_vue_type_script_setup_true_lang-aq47QhPF.js";
25
- import { B as on } from "./BlockMedia-IMu4YO3J.js";
20
+ import { S as Xt } from "./SendForm-D5jqkofo.js";
21
+ import "./template-DzrGrOEa.js";
22
+ import { u as en } from "./validation-38muBV6x.js";
23
+ import { C as tn } from "./CCallout-BlglVZrm.js";
24
+ import { C as nn } from "./CSkeleton-BF6EYj8H.js";
25
+ import { B as on } from "./BlockMedia-ZHaA4OMV.js";
26
26
  const sn = {
27
27
  name: "DocumentPostSendStep",
28
- mixins: [Z],
28
+ mixins: [Y],
29
29
  i18nOptions: {
30
30
  namespaces: "PostDocumentSend",
31
31
  messages: {
@@ -57,7 +57,7 @@ const sn = {
57
57
  },
58
58
  computed: {
59
59
  usesManualDelivery() {
60
- const e = pe(this.document);
60
+ const e = ye(this.document);
61
61
  return !e.sms && !e.email;
62
62
  }
63
63
  },
@@ -66,18 +66,18 @@ const sn = {
66
66
  (e = this.document) != null && e.senderClient ? await this.senderAnswer() : await this.onSend();
67
67
  },
68
68
  methods: {
69
- ...W({
70
- updateDocument: B.DO_UPDATE_DOCUMENT2,
71
- answerDocument: B.ANSWER_OWN_DOCUMENT2,
72
- sendDocument: B.DO_SEND_DOCUMENT2
69
+ ...K({
70
+ updateDocument: M.DO_UPDATE_DOCUMENT2,
71
+ answerDocument: M.ANSWER_OWN_DOCUMENT2,
72
+ sendDocument: M.DO_SEND_DOCUMENT2
73
73
  }),
74
74
  async handleDocumentLinks() {
75
- const { id: e } = this.document || {}, t = pe(this.document), n = !t.sms && !t.email;
75
+ const { id: e } = this.document || {}, t = ye(this.document), n = !t.sms && !t.email;
76
76
  n && (await this.updateDocument({
77
77
  id: e,
78
78
  body: { status: "sent" },
79
79
  showMessage: !1
80
- }), tt({ id: e })), n || setTimeout(() => this.close(), 2e3);
80
+ }), nt({ id: e })), n || setTimeout(() => this.close(), 2e3);
81
81
  },
82
82
  async onSend() {
83
83
  typeof this.onSendFunc == "function" && this.onSendFunc(this.document), await this.handleDocumentLinks();
@@ -94,7 +94,7 @@ const sn = {
94
94
  body: { isAccepted: !0 },
95
95
  checksum: s
96
96
  }), await this.sendDocument({ id: e }), this.onSend()) : (this.$modal.show(
97
- et,
97
+ tt,
98
98
  {
99
99
  _document: this.document,
100
100
  isSender: !0,
@@ -136,36 +136,36 @@ const sn = {
136
136
  this.onCloseFunc && this.onCloseFunc();
137
137
  }
138
138
  }
139
- }, ln = { class: "font-inter root" }, an = { class: "container" }, rn = { class: "icon-wrapper" }, dn = ["textContent"];
139
+ }, an = { class: "font-inter root" }, ln = { class: "container" }, rn = { class: "icon-wrapper" }, dn = ["textContent"];
140
140
  function cn(e, t, n, s, i, o) {
141
141
  const r = m("CIcon"), g = m("CButton");
142
- return a(), p("div", ln, [
143
- l("div", an, [
144
- l("div", rn, [
142
+ return l(), p("div", an, [
143
+ a("div", ln, [
144
+ a("div", rn, [
145
145
  c(r, {
146
146
  size: 20,
147
147
  type: "email"
148
148
  })
149
149
  ]),
150
- l("div", {
150
+ a("div", {
151
151
  class: "title",
152
152
  textContent: d(e.$t("title"))
153
153
  }, null, 8, dn),
154
- t[0] || (t[0] = l("div", { class: "divider" }, null, -1)),
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
160
  default: u(() => [
161
- T(d(e.$t("_common:close")), 1)
161
+ _(d(e.$t("_common:close")), 1)
162
162
  ]),
163
163
  _: 1
164
164
  }, 8, ["onClick"])
165
165
  ])
166
166
  ]);
167
167
  }
168
- const un = /* @__PURE__ */ F(sn, [["render", cn], ["__scopeId", "data-v-574be9ee"]]), mn = {
168
+ const un = /* @__PURE__ */ $(sn, [["render", cn], ["__scopeId", "data-v-574be9ee"]]), mn = {
169
169
  name: "Drawer",
170
170
  props: {
171
171
  modelValue: {
@@ -210,12 +210,12 @@ const un = /* @__PURE__ */ F(sn, [["render", cn], ["__scopeId", "data-v-574be9ee
210
210
  }
211
211
  };
212
212
  function pn(e, t, n, s, i, o) {
213
- return a(), p("div", null, [
214
- c(te, { name: "fade" }, {
213
+ return l(), p("div", null, [
214
+ c(oe, { name: "fade" }, {
215
215
  default: u(() => [
216
- !n.hideOverlay && n.modelValue ? (a(), p("div", {
216
+ !n.hideOverlay && n.modelValue ? (l(), p("div", {
217
217
  key: 0,
218
- style: E({
218
+ style: R({
219
219
  zIndex: n.zIndex
220
220
  }),
221
221
  class: "d-overlay"
@@ -223,20 +223,20 @@ function pn(e, t, n, s, i, o) {
223
223
  ]),
224
224
  _: 1
225
225
  }),
226
- c(te, {
226
+ c(oe, {
227
227
  name: `slide-${n.placement}`
228
228
  }, {
229
229
  default: u(() => [
230
- n.modelValue ? (a(), p("div", {
230
+ n.modelValue ? (l(), p("div", {
231
231
  key: 0,
232
232
  class: L([[n.placement], "d-content"]),
233
- style: E({
233
+ style: R({
234
234
  zIndex: n.zIndex
235
235
  }),
236
- onClick: t[0] || (t[0] = q((...r) => o.onOutsideClick && o.onOutsideClick(...r), ["self"]))
236
+ onClick: t[0] || (t[0] = Z((...r) => o.onOutsideClick && o.onOutsideClick(...r), ["self"]))
237
237
  }, [
238
- l("div", {
239
- style: E({
238
+ a("div", {
239
+ style: R({
240
240
  borderRadius: 0,
241
241
  margin: 0,
242
242
  overflow: "auto",
@@ -246,7 +246,7 @@ function pn(e, t, n, s, i, o) {
246
246
  }),
247
247
  class: "d-content-slot"
248
248
  }, [
249
- M(e.$slots, "default", {}, void 0, !0)
249
+ P(e.$slots, "default", {}, void 0, !0)
250
250
  ], 4)
251
251
  ], 6)) : v("", !0)
252
252
  ]),
@@ -254,11 +254,11 @@ function pn(e, t, n, s, i, o) {
254
254
  }, 8, ["name"])
255
255
  ]);
256
256
  }
257
- const je = /* @__PURE__ */ F(mn, [["render", pn], ["__scopeId", "data-v-05571167"]]), hn = {
257
+ const Ze = /* @__PURE__ */ $(mn, [["render", pn], ["__scopeId", "data-v-05571167"]]), hn = {
258
258
  name: "DocumentDrawer",
259
259
  components: {
260
- simplebar: Q,
261
- Drawer: je
260
+ simplebar: X,
261
+ Drawer: Ze
262
262
  },
263
263
  props: {
264
264
  position: {
@@ -282,12 +282,12 @@ const je = /* @__PURE__ */ F(mn, [["render", pn], ["__scopeId", "data-v-05571167
282
282
  emits: ["update:open"]
283
283
  }, fn = { style: { height: "100%", "z-index": "110" } }, gn = { style: { height: "100%", overflow: "auto" } };
284
284
  function yn(e, t, n, s, i, o) {
285
- return a(), C(te, {
285
+ return l(), C(oe, {
286
286
  name: n.fixed ? void 0 : "grow-anim",
287
287
  mode: "out-in"
288
288
  }, {
289
289
  default: u(() => [
290
- n.open ? (a(), C(G(n.fixed ? "drawer" : "div"), ye({ key: 0 }, e.$props, {
290
+ n.open ? (l(), C(j(n.fixed ? "drawer" : "div"), be({ key: 0 }, e.$props, {
291
291
  ref: "drawer",
292
292
  class: [{
293
293
  "is-sticky": !n.fixed
@@ -300,10 +300,10 @@ function yn(e, t, n, s, i, o) {
300
300
  "onUpdate:modelValue": t[0] || (t[0] = (r) => n.fixed ? e.$emit("update:open", r) : null)
301
301
  }), {
302
302
  default: u(() => [
303
- l("div", fn, [
304
- l("div", gn, [
305
- l("div", {
306
- style: E(
303
+ a("div", fn, [
304
+ a("div", gn, [
305
+ a("div", {
306
+ style: R(
307
307
  n.fixed && {
308
308
  maxWidth: "100%",
309
309
  width: "280px",
@@ -312,7 +312,7 @@ function yn(e, t, n, s, i, o) {
312
312
  }
313
313
  )
314
314
  }, [
315
- M(e.$slots, "default", {}, void 0, !0)
315
+ P(e.$slots, "default", {}, void 0, !0)
316
316
  ], 4)
317
317
  ])
318
318
  ])
@@ -323,25 +323,25 @@ function yn(e, t, n, s, i, o) {
323
323
  _: 3
324
324
  }, 8, ["name"]);
325
325
  }
326
- const vn = /* @__PURE__ */ F(hn, [["render", yn], ["__scopeId", "data-v-cd55344e"]]), Cn = {
326
+ const vn = /* @__PURE__ */ $(hn, [["render", yn], ["__scopeId", "data-v-cd55344e"]]), Cn = {
327
327
  name: "DocumentFormNav"
328
328
  }, bn = { class: "DocumentFormNav fixed left-0 right-0 top-0 z-[98] bg-gray-200 px-2 py-2 shadow-lg md:px-6" }, kn = { class: "flex" }, wn = { class: "inline-flex flex-grow items-center" }, _n = { class: "inline-flex flex-auto items-center justify-center" }, xn = { class: "inline-flex flex-grow items-center justify-end" };
329
329
  function Tn(e, t, n, s, i, o) {
330
- return a(), p("div", bn, [
331
- l("div", kn, [
332
- l("div", wn, [
333
- M(e.$slots, "left")
330
+ return l(), p("div", bn, [
331
+ a("div", kn, [
332
+ a("div", wn, [
333
+ P(e.$slots, "left")
334
334
  ]),
335
- l("div", _n, [
336
- M(e.$slots, "center")
335
+ a("div", _n, [
336
+ P(e.$slots, "center")
337
337
  ]),
338
- l("div", xn, [
339
- M(e.$slots, "right")
338
+ a("div", xn, [
339
+ P(e.$slots, "right")
340
340
  ])
341
341
  ])
342
342
  ]);
343
343
  }
344
- const Dn = /* @__PURE__ */ F(Cn, [["render", Tn]]), Sn = {
344
+ const Dn = /* @__PURE__ */ $(Cn, [["render", Tn]]), Sn = {
345
345
  name: "DocumentFormViewRadio",
346
346
  props: {
347
347
  modelValue: {
@@ -354,42 +354,42 @@ const Dn = /* @__PURE__ */ F(Cn, [["render", Tn]]), Sn = {
354
354
  }
355
355
  },
356
356
  emits: ["update:modelValue"]
357
- }, $n = { class: "inline-flex h-9 cursor-pointer space-x-2 rounded-md bg-gray-300 p-1 text-sm text-white" };
358
- function In(e, t, n, s, i, o) {
357
+ }, In = { class: "inline-flex h-9 cursor-pointer space-x-2 rounded-md bg-gray-300 p-1 text-sm text-white" };
358
+ function $n(e, t, n, s, i, o) {
359
359
  const r = m("CIcon");
360
- return a(), p("div", $n, [
361
- l("div", {
360
+ return l(), p("div", In, [
361
+ a("div", {
362
362
  class: L([{
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)
366
366
  }, [
367
- n.small ? (a(), C(r, {
367
+ n.small ? (l(), C(r, {
368
368
  key: 0,
369
369
  type: "edit",
370
370
  size: "20"
371
- })) : (a(), p(I, { key: 1 }, [
372
- T(d(e.$t("edit")), 1)
371
+ })) : (l(), p(S, { key: 1 }, [
372
+ _(d(e.$t("edit")), 1)
373
373
  ], 64))
374
374
  ], 2),
375
- l("div", {
375
+ a("div", {
376
376
  class: L([{
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",
380
380
  onClick: t[1] || (t[1] = (g) => n.modelValue === "edit" ? e.$emit("update:modelValue", "preview") : null)
381
381
  }, [
382
- n.small ? (a(), C(r, {
382
+ n.small ? (l(), C(r, {
383
383
  key: 0,
384
384
  type: "eye",
385
385
  size: "20"
386
- })) : (a(), p(I, { key: 1 }, [
387
- T(d(e.$t("preview")), 1)
386
+ })) : (l(), p(S, { key: 1 }, [
387
+ _(d(e.$t("preview")), 1)
388
388
  ], 64))
389
389
  ], 2)
390
390
  ]);
391
391
  }
392
- const Fn = /* @__PURE__ */ F(Sn, [["render", In]]), Ln = {
392
+ const Fn = /* @__PURE__ */ $(Sn, [["render", $n]]), Ln = {
393
393
  name: "BlockControlButtons",
394
394
  i18nOptions: {
395
395
  namespace: "blockControlButtons",
@@ -430,23 +430,23 @@ const Fn = /* @__PURE__ */ F(Sn, [["render", In]]), Ln = {
430
430
  }, Pn = { class: "control-direction" };
431
431
  function An(e, t, n, s, i, o) {
432
432
  const r = m("CIcon");
433
- return a(), p("div", Vn, [
434
- o.canToggleVisibility ? (a(), p("div", {
433
+ return l(), p("div", Vn, [
434
+ o.canToggleVisibility ? (l(), p("div", {
435
435
  key: 0,
436
436
  class: "control-button",
437
437
  onClick: t[0] || (t[0] = (g) => e.$emit("toggle-visible", !n.isVisible))
438
438
  }, [
439
- n.isVisible ? v("", !0) : (a(), p("span", Bn, d(e.$t("hidden")), 1)),
439
+ n.isVisible ? v("", !0) : (l(), p("span", Bn, d(e.$t("hidden")), 1)),
440
440
  c(r, {
441
441
  type: n.isVisible ? "eye" : "eye-off",
442
442
  size: "14",
443
443
  class: L({ "mr-1": !n.isVisible })
444
444
  }, null, 8, ["type", "class"])
445
445
  ])) : v("", !0),
446
- M(e.$slots, "default", {}, void 0, !0),
447
- !o.isHidden && n.isMovable ? (a(), p("div", Mn, [
448
- l("div", Pn, [
449
- l("div", {
446
+ P(e.$slots, "default", {}, void 0, !0),
447
+ !o.isHidden && n.isMovable ? (l(), p("div", Mn, [
448
+ a("div", Pn, [
449
+ a("div", {
450
450
  class: "control-button",
451
451
  onClick: t[1] || (t[1] = (g) => e.$emit("move", "up"))
452
452
  }, [
@@ -455,7 +455,7 @@ function An(e, t, n, s, i, o) {
455
455
  size: "16"
456
456
  })
457
457
  ]),
458
- l("div", {
458
+ a("div", {
459
459
  class: "control-button",
460
460
  onClick: t[2] || (t[2] = (g) => e.$emit("move", "down"))
461
461
  }, [
@@ -465,7 +465,7 @@ function An(e, t, n, s, i, o) {
465
465
  })
466
466
  ])
467
467
  ]),
468
- l("div", {
468
+ a("div", {
469
469
  class: "control-button remove",
470
470
  onClick: t[3] || (t[3] = (g) => e.$emit("remove"))
471
471
  }, [
@@ -477,7 +477,7 @@ function An(e, t, n, s, i, o) {
477
477
  ])) : v("", !0)
478
478
  ]);
479
479
  }
480
- const En = /* @__PURE__ */ F(Ln, [["render", An], ["__scopeId", "data-v-2b534db7"]]), zn = ["inert"], Rn = /* @__PURE__ */ ve({
480
+ const En = /* @__PURE__ */ $(Ln, [["render", An], ["__scopeId", "data-v-2b534db7"]]), zn = ["inert"], Rn = /* @__PURE__ */ ce({
481
481
  __name: "DynamicBlock",
482
482
  props: {
483
483
  isDragging: { type: Boolean, default: !1 },
@@ -490,48 +490,48 @@ const En = /* @__PURE__ */ F(Ln, [["render", An], ["__scopeId", "data-v-2b534db7
490
490
  },
491
491
  emits: ["edit", "toggle-visible", "move", "remove"],
492
492
  setup(e, { emit: t }) {
493
- const n = t, { uid: s } = nt(), i = we(!1), o = we(() => n("edit", s)), r = H(() => typeof e.isVisible == "boolean" && !e.isVisible), g = H(() => e.isEditView ? !e.isDragging && i.value ? !0 : r.value : !1), h = H(() => 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]" : ""), b = (w) => {
494
- typeof w == "function" && (o.value = w);
493
+ const n = t, { uid: s } = it(), i = xe(!1), o = xe(() => n("edit", s)), r = q(() => typeof e.isVisible == "boolean" && !e.isVisible), g = q(() => e.isEditView ? !e.isDragging && i.value ? !0 : r.value : !1), h = q(() => 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]" : ""), b = (k) => {
494
+ typeof k == "function" && (o.value = k);
495
495
  };
496
- return _e("sectionTopNode", s), _e("setOpenDrawer", b), (w, k) => {
497
- const S = m("CButton"), D = m("Animation");
498
- return a(), C(D, { class: "w-full" }, {
496
+ return Te("sectionTopNode", s), Te("setOpenDrawer", b), (k, w) => {
497
+ const T = m("CButton"), D = m("Animation");
498
+ return l(), C(D, { class: "w-full" }, {
499
499
  default: u(() => [
500
- l("div", {
500
+ a("div", {
501
501
  class: L([[
502
502
  {
503
- "is-edit-view": w.isEditView,
503
+ "is-edit-view": k.isEditView,
504
504
  "is-hovering": i.value,
505
- "min-h-none": w.blockType === "custom" || r.value,
505
+ "min-h-none": k.blockType === "custom" || r.value,
506
506
  "border-b border-gray-200": r.value
507
507
  },
508
508
  h.value
509
509
  ], "block-root"]),
510
- style: E(
511
- w.isDragging && {
510
+ style: R(
511
+ k.isDragging && {
512
512
  pointerEvents: "none"
513
513
  }
514
514
  ),
515
- onMouseoverPassive: k[3] || (k[3] = (y) => i.value = !0),
516
- onMouseleavePassive: k[4] || (k[4] = (y) => i.value = !1)
515
+ onMouseoverPassive: w[3] || (w[3] = (y) => i.value = !0),
516
+ onMouseleavePassive: w[4] || (w[4] = (y) => i.value = !1)
517
517
  }, [
518
- l("div", {
518
+ a("div", {
519
519
  class: L(["block-container", { "spacing-snug": r.value }]),
520
520
  inert: r.value
521
521
  }, [
522
- M(w.$slots, "default", {}, void 0, !0)
522
+ P(k.$slots, "default", {}, void 0, !0)
523
523
  ], 10, zn),
524
- g.value ? (a(), C(En, {
524
+ g.value ? (l(), C(En, {
525
525
  key: 0,
526
526
  class: "control-root z-10",
527
- "is-movable": w.canMove,
528
- "is-visible": w.isVisible,
529
- onToggleVisible: k[0] || (k[0] = (y) => n("toggle-visible", y)),
530
- onMove: k[1] || (k[1] = (y) => n("move", y)),
531
- onRemove: k[2] || (k[2] = (y) => n("remove"))
527
+ "is-movable": k.canMove,
528
+ "is-visible": k.isVisible,
529
+ onToggleVisible: w[0] || (w[0] = (y) => n("toggle-visible", y)),
530
+ onMove: w[1] || (w[1] = (y) => n("move", y)),
531
+ onRemove: w[2] || (w[2] = (y) => n("remove"))
532
532
  }, {
533
533
  default: u(() => [
534
- w.showEditButton ? (a(), C(S, {
534
+ k.showEditButton ? (l(), C(T, {
535
535
  key: 0,
536
536
  round: "",
537
537
  size: "small",
@@ -541,7 +541,7 @@ const En = /* @__PURE__ */ F(Ln, [["render", An], ["__scopeId", "data-v-2b534db7
541
541
  onClick: o.value
542
542
  }, {
543
543
  default: u(() => [
544
- T(d(w.$t("_common:edit").capitalize()), 1)
544
+ _(d(k.$t("_common:edit").capitalize()), 1)
545
545
  ]),
546
546
  _: 1
547
547
  }, 8, ["onClick"])) : v("", !0)
@@ -554,7 +554,7 @@ const En = /* @__PURE__ */ F(Ln, [["render", An], ["__scopeId", "data-v-2b534db7
554
554
  });
555
555
  };
556
556
  }
557
- }), On = /* @__PURE__ */ F(Rn, [["__scopeId", "data-v-9cab60b2"]]), Hn = {
557
+ }), On = /* @__PURE__ */ $(Rn, [["__scopeId", "data-v-9cab60b2"]]), Hn = {
558
558
  name: "LogoBanner",
559
559
  props: {
560
560
  position: {
@@ -567,34 +567,34 @@ const En = /* @__PURE__ */ F(Ln, [["render", An], ["__scopeId", "data-v-2b534db7
567
567
  },
568
568
  computed: {
569
569
  logoUrl() {
570
- const { brand: e } = j;
570
+ const { brand: e } = Q;
571
571
  return e === "cling" ? "/img/cling/icons/apple-touch-icon-60x60.png" : `/img/${e.includes("fortnox") ? "fortnox" : e}/icons/apple-touch-icon-60x60.png`;
572
572
  }
573
573
  }
574
574
  }, Un = ["href"], qn = { class: "mr-2 h-5 w-5 overflow-hidden rounded bg-white" }, Gn = ["src", "alt"], Nn = { class: "text-xs font-medium text-white" };
575
575
  function Wn(e, t, n, s, i, o) {
576
- return a(), p("div", {
576
+ return l(), p("div", {
577
577
  class: L([n.position, "pointer-events-none bottom-0 left-0 right-0 z-50 flex justify-end px-[10px] pb-[10px]"])
578
578
  }, [
579
- l("a", {
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",
581
581
  href: `https://${e.$t(
582
582
  "_common:brand.domain"
583
583
  )}?utm_source=document&utm_medium=logo-banner`,
584
584
  target: "_blank"
585
585
  }, [
586
- l("div", qn, [
587
- l("img", {
586
+ a("div", qn, [
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, Gn)
592
592
  ]),
593
- l("div", Nn, " Made in " + d(e.$t("brand.name")), 1)
593
+ a("div", Nn, " Made in " + d(e.$t("brand.name")), 1)
594
594
  ], 8, Un)
595
595
  ], 2);
596
596
  }
597
- const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-full w-full" }, Kn = { class: "mb-4 text-xl font-bold" }, Ze = /* @__PURE__ */ ve({
597
+ const jn = /* @__PURE__ */ $(Hn, [["render", Wn]]), Zn = { class: "relative h-full w-full" }, Kn = { class: "mb-4 text-xl font-bold" }, Ke = /* @__PURE__ */ ce({
598
598
  __name: "DragWindow",
599
599
  props: {
600
600
  offset: {},
@@ -602,21 +602,21 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
602
602
  },
603
603
  emits: ["close"],
604
604
  setup(e, { emit: t }) {
605
- const n = t, s = xe("el"), i = xe("handle"), { style: o } = it(s, {
605
+ const n = t, s = De("el"), i = De("handle"), { style: o } = ot(s, {
606
606
  handle: i,
607
607
  initialValue: { x: e.offset + 15, y: 70 }
608
608
  });
609
609
  return (r, g) => {
610
610
  const h = m("CButton"), b = m("portal");
611
- return a(), C(b, { to: "modal" }, {
611
+ return l(), C(b, { to: "modal" }, {
612
612
  default: u(() => [
613
- l("div", {
613
+ a("div", {
614
614
  ref_key: "el",
615
615
  ref: s,
616
- style: E(Pe(o)),
616
+ style: R(U(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
- l("div", Zn, [
619
+ a("div", Zn, [
620
620
  c(h, {
621
621
  icon: "x",
622
622
  size: "small",
@@ -624,7 +624,7 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
624
624
  pattern: "tertiary",
625
625
  circle: "",
626
626
  class: "absolute right-0 top-0",
627
- onClick: g[0] || (g[0] = (w) => n("close"))
627
+ onClick: g[0] || (g[0] = (k) => n("close"))
628
628
  }),
629
629
  c(h, {
630
630
  ref_key: "handle",
@@ -636,8 +636,8 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
636
636
  circle: "",
637
637
  class: "absolute right-9 top-0 cursor-grab"
638
638
  }, null, 512),
639
- l("div", Kn, d(r.title), 1),
640
- M(r.$slots, "default")
639
+ a("div", Kn, d(r.title), 1),
640
+ P(r.$slots, "default")
641
641
  ])
642
642
  ], 4)
643
643
  ]),
@@ -645,17 +645,17 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
645
645
  });
646
646
  };
647
647
  }
648
- }), Qn = /([\d+.]*)(.*)/, K = (e) => (e || "").match(Qn), Yn = {
648
+ }), Qn = /([\d+.]*)(.*)/, J = (e) => (e || "").match(Qn), Yn = {
649
649
  i18nOptions: {
650
650
  namespaces: "common",
651
651
  keyPrefix: "designLabels"
652
652
  },
653
653
  name: "Design",
654
654
  components: {
655
- FormInputRow: qe,
656
- DragWindow: Ze
655
+ FormInputRow: Ge,
656
+ DragWindow: Ke
657
657
  },
658
- mixins: [ne(["css"], { useEmit: !1, setFnName: "set" })],
658
+ mixins: [ae(["css"], { useEmit: !1, setFnName: "set" })],
659
659
  props: {
660
660
  set: {
661
661
  type: Function,
@@ -720,7 +720,7 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
720
720
  // Dynamic depending on font family
721
721
  definitionOptions: {
722
722
  fontFamily: ({ key: e, value: t }) => {
723
- const n = V(this.css, `${this.activeItem.selector}.fontWeight`) || V(this.activeItem, "style.fontWeight") || "400";
723
+ const n = B(this.css, `${this.activeItem.selector}.fontWeight`) || B(this.activeItem, "style.fontWeight") || "400";
724
724
  return {
725
725
  label: this.$t("font"),
726
726
  inputs: [
@@ -740,7 +740,7 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
740
740
  };
741
741
  },
742
742
  fontSize: ({ key: e, value: t }) => {
743
- const [, n, s] = K(t);
743
+ const [, n, s] = J(t);
744
744
  return {
745
745
  label: this.$t("size"),
746
746
  inputs: [
@@ -828,7 +828,7 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
828
828
  };
829
829
  },
830
830
  letterSpacing: ({ key: e, value: t }) => {
831
- const [, n = 0] = K(t);
831
+ const [, n = 0] = J(t);
832
832
  return {
833
833
  label: this.$t("letterSpacing"),
834
834
  inputs: [
@@ -859,7 +859,7 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
859
859
  };
860
860
  },
861
861
  marginBottom: ({ key: e, value: t }) => {
862
- const [, n] = K(t);
862
+ const [, n] = J(t);
863
863
  return {
864
864
  label: this.$t("marginBottom"),
865
865
  inputs: [
@@ -940,7 +940,7 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
940
940
  ]
941
941
  }),
942
942
  width: ({ key: e, value: t }) => {
943
- const [, n, s] = K(t);
943
+ const [, n, s] = J(t);
944
944
  return {
945
945
  label: this.$t("contentWidth"),
946
946
  inputs: [
@@ -980,7 +980,7 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
980
980
  };
981
981
  },
982
982
  padding: ({ key: e, value: t }) => {
983
- const [, n] = K(t);
983
+ const [, n] = J(t);
984
984
  return {
985
985
  label: this.$t("padding"),
986
986
  inputs: [
@@ -1020,7 +1020,7 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
1020
1020
  };
1021
1021
  },
1022
1022
  border: ([e, t, n]) => {
1023
- const s = e.value === "solid", [, i] = K(t.value), o = [
1023
+ const s = e.value === "solid", [, i] = J(t.value), o = [
1024
1024
  {
1025
1025
  label: this.$t("border"),
1026
1026
  inputs: [
@@ -1188,16 +1188,16 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { 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 = V(this.css, e) || {}, i = (o) => s[o] || n[o];
1191
+ const { selector: e, category: t, style: n = {} } = this.activeItem, s = B(this.css, e) || {}, i = (o) => s[o] || n[o];
1192
1192
  return this[t].map(({ option: o, key: r }, g) => {
1193
- const h = this.definitionOptions[o], b = Array.isArray(r) ? r.map((w) => ({ key: w, value: i(w) })) : { key: r, value: i(r) };
1193
+ const h = this.definitionOptions[o], b = Array.isArray(r) ? r.map((k) => ({ key: k, value: i(k) })) : { key: r, value: i(r) };
1194
1194
  return h(b, g);
1195
1195
  });
1196
1196
  }
1197
1197
  },
1198
1198
  watch: {
1199
1199
  async activeItem(e) {
1200
- const t = V(e, "style.fontFamily");
1200
+ const t = B(e, "style.fontFamily");
1201
1201
  t && (this.fontWeightOptions = await Et(t));
1202
1202
  }
1203
1203
  },
@@ -1209,18 +1209,18 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
1209
1209
  }
1210
1210
  }
1211
1211
  }, Jn = { style: { padding: "calc(0.5 * var(--rem))", position: "relative" } }, Xn = { style: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, ei = ["onClick"], ti = { style: { color: "hsl(0, 0%, 45%)", "font-weight": "500", "font-size": "13px", "padding-top": "5px" } }, ni = { style: { padding: "calc(0.75 * var(--rem))" } }, ii = { style: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, oi = ["onClick"], si = { style: { "font-size": "1.075em", "font-weight": "500" } };
1212
- function li(e, t, n, s, i, o) {
1212
+ function ai(e, t, n, s, i, o) {
1213
1213
  const r = m("FormInputRow"), g = m("DragWindow");
1214
- return a(), p("div", null, [
1215
- l("div", Jn, [
1216
- l("div", Xn, d(e.$t("typography")), 1),
1217
- (a(!0), p(I, null, P(o.typography, (h) => (a(), p("div", {
1214
+ return l(), p("div", null, [
1215
+ a("div", Jn, [
1216
+ a("div", Xn, d(e.$t("typography")), 1),
1217
+ (l(!0), p(S, null, A(o.typography, (h) => (l(), p("div", {
1218
1218
  key: h.label,
1219
1219
  class: "list-option",
1220
1220
  onClick: (b) => i.activeItem = h
1221
1221
  }, [
1222
- l("div", {
1223
- style: E({
1222
+ a("div", {
1223
+ style: R({
1224
1224
  fontSize: h.fontSize,
1225
1225
  fontFamily: h.style.fontFamily,
1226
1226
  fontWeight: h.style.fontWeight,
@@ -1228,29 +1228,29 @@ function li(e, t, n, s, i, o) {
1228
1228
  lineHeight: 1
1229
1229
  })
1230
1230
  }, d(h.label), 5),
1231
- l("div", ti, d(h.style.fontFamily) + " " + d(h.style.fontSize), 1)
1231
+ a("div", ti, d(h.style.fontFamily) + " " + d(h.style.fontSize), 1)
1232
1232
  ], 8, ei))), 128))
1233
1233
  ]),
1234
- t[2] || (t[2] = l("div", { style: { height: "1px", "background-color": "hsl(0, 0%, 88%)", margin: "calc(0.5 * var(--rem)) calc(1 * var(--rem))" } }, null, -1)),
1235
- l("div", ni, [
1236
- l("div", ii, d(e.$t("section_other")), 1),
1237
- (a(!0), p(I, null, P(i.sections, (h) => (a(), p("div", {
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", ni, [
1236
+ a("div", ii, d(e.$t("section_other")), 1),
1237
+ (l(!0), p(S, null, A(i.sections, (h) => (l(), p("div", {
1238
1238
  key: h.label,
1239
1239
  class: "list-option",
1240
1240
  onClick: (b) => i.activeItem = h
1241
1241
  }, [
1242
- l("div", si, d(h.label), 1),
1243
- t[1] || (t[1] = l("div", { style: { color: "hsl(0, 0%, 45%)", "font-weight": "500", "font-size": "13px", "padding-top": "5px" } }, " #000000 ", -1))
1242
+ a("div", si, d(h.label), 1),
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
1244
  ], 8, oi))), 128))
1245
1245
  ]),
1246
- i.activeItem ? (a(), C(g, {
1246
+ i.activeItem ? (l(), C(g, {
1247
1247
  key: 0,
1248
1248
  title: i.activeItem.label,
1249
1249
  offset: n.offset,
1250
1250
  onClose: t[0] || (t[0] = () => i.activeItem = null)
1251
1251
  }, {
1252
1252
  default: u(() => [
1253
- (a(!0), p(I, null, P(o.activeItemOptions, (h, b) => (a(), C(r, {
1253
+ (l(!0), p(S, null, A(o.activeItemOptions, (h, b) => (l(), C(r, {
1254
1254
  key: b,
1255
1255
  label: h.label,
1256
1256
  inputs: h.inputs
@@ -1260,7 +1260,7 @@ function li(e, t, n, s, i, o) {
1260
1260
  }, 8, ["title", "offset"])) : v("", !0)
1261
1261
  ]);
1262
1262
  }
1263
- const ai = /* @__PURE__ */ F(Yn, [["render", li], ["__scopeId", "data-v-381aaa3c"]]), ri = {
1263
+ const li = /* @__PURE__ */ $(Yn, [["render", ai], ["__scopeId", "data-v-381aaa3c"]]), ri = {
1264
1264
  i18nOptions: {
1265
1265
  namespaces: "DocSettings",
1266
1266
  messages: {
@@ -1348,11 +1348,11 @@ const ai = /* @__PURE__ */ F(Yn, [["render", li], ["__scopeId", "data-v-381aaa3c
1348
1348
  },
1349
1349
  name: "DocumentGeneralSettings",
1350
1350
  components: {
1351
- FormInputRow: qe,
1352
- DragWindow: Ze
1351
+ FormInputRow: Ge,
1352
+ DragWindow: Ke
1353
1353
  },
1354
1354
  mixins: [
1355
- ne([
1355
+ ae([
1356
1356
  "tags",
1357
1357
  "series",
1358
1358
  "senderId",
@@ -1376,7 +1376,7 @@ const ai = /* @__PURE__ */ F(Yn, [["render", li], ["__scopeId", "data-v-381aaa3c
1376
1376
  };
1377
1377
  },
1378
1378
  computed: {
1379
- ...O({
1379
+ ...H({
1380
1380
  members: "companyUsers/all",
1381
1381
  getMember: "companyUsers/byId",
1382
1382
  isLoadingMembers: "companyUsers/isFetching"
@@ -1390,7 +1390,7 @@ const ai = /* @__PURE__ */ F(Yn, [["render", li], ["__scopeId", "data-v-381aaa3c
1390
1390
  vatTypes() {
1391
1391
  var t;
1392
1392
  const e = ["vat"];
1393
- return ((t = ot[j.brand]) == null ? void 0 : t.defaultRegion) === "US" && e.push("tax"), e;
1393
+ return ((t = st[Q.brand]) == null ? void 0 : t.defaultRegion) === "US" && e.push("tax"), e;
1394
1394
  },
1395
1395
  options() {
1396
1396
  return [
@@ -1421,7 +1421,7 @@ const ai = /* @__PURE__ */ F(Yn, [["render", li], ["__scopeId", "data-v-381aaa3c
1421
1421
  component: "select",
1422
1422
  props: {
1423
1423
  value: this.language,
1424
- options: st.map((e) => ({
1424
+ options: at.map((e) => ({
1425
1425
  value: e,
1426
1426
  label: this.$t(`iso:language.${e}`)
1427
1427
  })).sort((e, t) => e.label.localeCompare(t.label))
@@ -1574,8 +1574,8 @@ const ai = /* @__PURE__ */ F(Yn, [["render", li], ["__scopeId", "data-v-381aaa3c
1574
1574
  this.isPublicForm || await this.loadUsers();
1575
1575
  },
1576
1576
  methods: {
1577
- ...W({
1578
- loadUsers: B.LOAD_COMPANY_USERS
1577
+ ...K({
1578
+ loadUsers: M.LOAD_COMPANY_USERS
1579
1579
  }),
1580
1580
  update(e, t) {
1581
1581
  this[e] = t;
@@ -1599,22 +1599,22 @@ const ai = /* @__PURE__ */ F(Yn, [["render", li], ["__scopeId", "data-v-381aaa3c
1599
1599
  };
1600
1600
  function ui(e, t, n, s, i, o) {
1601
1601
  const r = m("FormInputRow"), g = m("DragWindow");
1602
- return a(), p("div", di, [
1603
- (a(!0), p(I, null, P(o.options, (h, b) => (a(), C(r, {
1602
+ return l(), p("div", di, [
1603
+ (l(!0), p(S, null, A(o.options, (h, b) => (l(), C(r, {
1604
1604
  key: b,
1605
1605
  label: h.label,
1606
1606
  "info-tooltip": h.infoTooltip,
1607
1607
  inputs: h.inputs
1608
1608
  }, null, 8, ["label", "info-tooltip", "inputs"]))), 128)),
1609
- i.showDragWindow ? (a(), C(g, {
1609
+ i.showDragWindow ? (l(), C(g, {
1610
1610
  key: 0,
1611
1611
  offset: n.offset,
1612
1612
  title: e.$t("pricing.title"),
1613
1613
  onClose: t[0] || (t[0] = (h) => i.showDragWindow = !1)
1614
1614
  }, {
1615
1615
  default: u(() => [
1616
- (a(!0), p(I, null, P(o.priceOptions, (h, b) => (a(), p(I, { key: b }, [
1617
- h.type === "divider" ? (a(), p("div", ci)) : (a(), C(r, {
1616
+ (l(!0), p(S, null, A(o.priceOptions, (h, b) => (l(), p(S, { key: b }, [
1617
+ h.type === "divider" ? (l(), p("div", ci)) : (l(), C(r, {
1618
1618
  key: b,
1619
1619
  label: h.label,
1620
1620
  "info-tooltip": h.infoTooltip,
@@ -1626,7 +1626,7 @@ function ui(e, t, n, s, i, o) {
1626
1626
  }, 8, ["offset", "title"])) : v("", !0)
1627
1627
  ]);
1628
1628
  }
1629
- const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb"]]), pi = {
1629
+ const mi = /* @__PURE__ */ $(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb"]]), pi = {
1630
1630
  i18nOptions: {
1631
1631
  messages: {
1632
1632
  en: {
@@ -1672,11 +1672,11 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
1672
1672
  Sortable: Nt,
1673
1673
  Spinner: lt,
1674
1674
  CAutocomplete: Gt,
1675
- CDropdown: fe,
1676
- CDropdownItem: ge
1675
+ CDropdown: de,
1676
+ CDropdownItem: G
1677
1677
  },
1678
1678
  emits: ["input"],
1679
- mixins: [ne(["externalReferences", "clients", "articles"])],
1679
+ mixins: [ae(["externalReferences", "clients", "articles"])],
1680
1680
  data() {
1681
1681
  return {
1682
1682
  activeCrm: null,
@@ -1693,7 +1693,7 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
1693
1693
  };
1694
1694
  },
1695
1695
  computed: {
1696
- ...O({
1696
+ ...H({
1697
1697
  allAuthenticatedCRMs: "settings/allAuthenticatedCRMs"
1698
1698
  }),
1699
1699
  currExternalReferences() {
@@ -1739,7 +1739,7 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
1739
1739
  this.searchResults = [];
1740
1740
  return;
1741
1741
  }
1742
- const { data: n } = await ee.search(this.activeCrm, {
1742
+ const { data: n } = await ie.search(this.activeCrm, {
1743
1743
  query: e,
1744
1744
  type: "deal"
1745
1745
  });
@@ -1748,7 +1748,7 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
1748
1748
  this.isSearching = !1;
1749
1749
  }
1750
1750
  },
1751
- search: Ce(async function(t) {
1751
+ search: ke(async function(t) {
1752
1752
  await this._search(t);
1753
1753
  }, 750),
1754
1754
  useSearchResult(e) {
@@ -1773,7 +1773,7 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
1773
1773
  (r) => r.service === this.activeCrm && r.type === e
1774
1774
  );
1775
1775
  if (!t) return;
1776
- const { service: n, type: s, typeId: i } = t, { data: o } = await ee.getExternalReferenceDetails(
1776
+ const { service: n, type: s, typeId: i } = t, { data: o } = await ie.getExternalReferenceDetails(
1777
1777
  n,
1778
1778
  { type: s, typeId: i }
1779
1779
  );
@@ -1796,13 +1796,13 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
1796
1796
  },
1797
1797
  async suggestClients() {
1798
1798
  var i;
1799
- const { service: e, type: t, typeId: n } = this.currentExternalDeal, { data: s } = await ee.suggestClients(e, {
1799
+ const { service: e, type: t, typeId: n } = this.currentExternalDeal, { data: s } = await ie.suggestClients(e, {
1800
1800
  type: t,
1801
1801
  typeId: n
1802
1802
  });
1803
1803
  if (Array.isArray(s) && s.length) {
1804
1804
  const o = (i = this._document) == null ? void 0 : i.defaultAnswerMethod, r = s.map((g) => ({
1805
- ...at(),
1805
+ ...rt(),
1806
1806
  ...o && { answerMethod: o },
1807
1807
  ...g
1808
1808
  }));
@@ -1810,7 +1810,7 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
1810
1810
  }
1811
1811
  },
1812
1812
  cloneArticle(e) {
1813
- return Te({
1813
+ return Se({
1814
1814
  ...e,
1815
1815
  _uniqueId: void 0
1816
1816
  });
@@ -1819,7 +1819,7 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
1819
1819
  var s, i;
1820
1820
  const [t] = ((i = (s = this._document) == null ? void 0 : s.packageGroups) == null ? void 0 : i.packages) || [];
1821
1821
  if (!(t != null && t.packageId)) return;
1822
- const n = Te({
1822
+ const n = Se({
1823
1823
  ...e,
1824
1824
  _uniqueId: void 0,
1825
1825
  packageId: t.packageId
@@ -1844,7 +1844,7 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
1844
1844
  }, Di = {
1845
1845
  key: 0,
1846
1846
  style: { opacity: "0.75", "font-size": "13px" }
1847
- }, Si = { key: 2 }, $i = ["textContent"], Ii = { style: { "line-height": "1.5" } }, Fi = { style: { "font-weight": "500" } }, Li = {
1847
+ }, Si = { key: 2 }, Ii = ["textContent"], $i = { style: { "line-height": "1.5" } }, Fi = { style: { "font-weight": "500" } }, Li = {
1848
1848
  class: "text-gray-600",
1849
1849
  style: { "font-size": "14px" }
1850
1850
  }, Vi = { key: 0 }, Bi = { style: { padding: `0 calc(0.5 * var(--rem)) calc(1 * var(--rem))
@@ -1864,9 +1864,9 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
1864
1864
  style: { "padding-top": "calc(1 * var(--rem))" }
1865
1865
  };
1866
1866
  function Gi(e, t, n, s, i, o) {
1867
- const r = m("CButton"), g = m("CDropdownItem"), h = m("CDropdown"), b = m("Spinner"), w = m("CAutocomplete"), k = m("CIcon"), S = m("Sortable"), D = m("router-link"), y = le("tooltip");
1868
- return a(), p("div", hi, [
1869
- e.allAuthenticatedCRMs.length > 1 ? (a(), C(h, {
1867
+ const r = m("CButton"), g = m("CDropdownItem"), h = m("CDropdown"), b = m("Spinner"), k = m("CAutocomplete"), w = m("CIcon"), T = m("Sortable"), D = m("router-link"), y = se("tooltip");
1868
+ return l(), p("div", hi, [
1869
+ e.allAuthenticatedCRMs.length > 1 ? (l(), C(h, {
1870
1870
  key: 0,
1871
1871
  position: "is-bottom-left",
1872
1872
  style: { position: "absolute", right: "calc(0.5 * var(--rem))", top: "calc(0.5 * var(--rem))" }
@@ -1881,32 +1881,32 @@ function Gi(e, t, n, s, i, o) {
1881
1881
  })
1882
1882
  ]),
1883
1883
  default: u(() => [
1884
- (a(!0), p(I, null, P(e.allAuthenticatedCRMs, (f) => (a(), C(g, {
1884
+ (l(!0), p(S, null, A(e.allAuthenticatedCRMs, (f) => (l(), C(g, {
1885
1885
  key: f,
1886
1886
  type: i.activeCrm === f ? "primary" : "secondary",
1887
1887
  size: "small",
1888
1888
  onClick: (x) => i.activeCrm = f
1889
1889
  }, {
1890
1890
  default: u(() => [
1891
- T(d(f.capitalize()), 1)
1891
+ _(d(f.capitalize()), 1)
1892
1892
  ]),
1893
1893
  _: 2
1894
1894
  }, 1032, ["type", "onClick"]))), 128))
1895
1895
  ]),
1896
1896
  _: 1
1897
1897
  })) : v("", !0),
1898
- i.isLoading && !i.dealDetails ? (a(), p("div", fi, [
1898
+ i.isLoading && !i.dealDetails ? (l(), p("div", fi, [
1899
1899
  c(b, {
1900
1900
  size: "24",
1901
1901
  color: "grey"
1902
1902
  })
1903
- ])) : i.activeCrm ? (a(), p(I, { key: 2 }, [
1904
- l("div", gi, [
1905
- l("div", yi, d(i.activeCrm.capitalize()), 1),
1906
- i.typeDetails ? (a(), p("div", vi, [
1907
- l("div", Ci, [
1908
- l("div", bi, [
1909
- l("div", {
1903
+ ])) : i.activeCrm ? (l(), p(S, { key: 2 }, [
1904
+ a("div", gi, [
1905
+ a("div", yi, d(i.activeCrm.capitalize()), 1),
1906
+ i.typeDetails ? (l(), p("div", vi, [
1907
+ a("div", Ci, [
1908
+ a("div", bi, [
1909
+ a("div", {
1910
1910
  textContent: d(
1911
1911
  e.$t("referenceTo", {
1912
1912
  crm: i.activeCrm.capitalize(),
@@ -1924,20 +1924,20 @@ function Gi(e, t, n, s, i, o) {
1924
1924
  onClick: t[0] || (t[0] = (f) => o.removeReference(i.typeDetails.type))
1925
1925
  })
1926
1926
  ]),
1927
- l("div", {
1927
+ a("div", {
1928
1928
  class: "x-hint-name",
1929
1929
  textContent: d(i.typeDetails.name || "")
1930
1930
  }, null, 8, wi)
1931
1931
  ]),
1932
- t[7] || (t[7] = l("div", { class: "divider" }, null, -1))
1932
+ t[7] || (t[7] = a("div", { class: "divider" }, null, -1))
1933
1933
  ])) : v("", !0),
1934
- l("div", _i, d(e.$t("headerText", { crm: i.activeCrm.capitalize() })), 1),
1935
- t[8] || (t[8] = l("div", { style: { height: "2em" } }, null, -1)),
1936
- o.currentExternalDeal ? (a(), p(I, { key: 1 }, [
1937
- l("div", xi, d(e.$t("connectedTo", { type: o.dealType })), 1),
1938
- i.dealDetails ? (a(), p("div", Ti, [
1939
- l("div", null, [
1940
- (a(), C(G(i.dealDetails.externalUrl ? "a" : "span"), {
1934
+ a("div", _i, d(e.$t("headerText", { crm: i.activeCrm.capitalize() })), 1),
1935
+ t[8] || (t[8] = a("div", { style: { height: "2em" } }, null, -1)),
1936
+ o.currentExternalDeal ? (l(), p(S, { key: 1 }, [
1937
+ a("div", xi, d(e.$t("connectedTo", { type: o.dealType })), 1),
1938
+ i.dealDetails ? (l(), p("div", Ti, [
1939
+ a("div", null, [
1940
+ (l(), C(j(i.dealDetails.externalUrl ? "a" : "span"), {
1941
1941
  href: i.dealDetails.externalUrl || "#",
1942
1942
  target: "_blank",
1943
1943
  style: { "font-weight": "600" },
@@ -1945,12 +1945,12 @@ function Gi(e, t, n, s, i, o) {
1945
1945
  textContent: d(i.dealDetails.name)
1946
1946
  }, null, 8, ["href", "textContent"]))
1947
1947
  ]),
1948
- i.dealDetails.currency ? (a(), p("div", Di, d(o.priceFormat(i.dealDetails.value, {
1948
+ i.dealDetails.currency ? (l(), p("div", Di, d(o.priceFormat(i.dealDetails.value, {
1949
1949
  showZero: !1,
1950
1950
  currency: i.dealDetails.currency
1951
1951
  })), 1)) : v("", !0)
1952
1952
  ])) : v("", !0),
1953
- l("div", null, [
1953
+ a("div", null, [
1954
1954
  c(r, {
1955
1955
  loading: i.isLoading,
1956
1956
  size: "small",
@@ -1977,13 +1977,13 @@ function Gi(e, t, n, s, i, o) {
1977
1977
  textContent: d(e.$t("suggestClients"))
1978
1978
  }, null, 8, ["textContent"])
1979
1979
  ])
1980
- ], 64)) : (a(), p("div", Si, [
1981
- l("div", {
1980
+ ], 64)) : (l(), p("div", Si, [
1981
+ a("div", {
1982
1982
  style: { padding: "0 4px 0.25em" },
1983
1983
  class: "text-gray-600",
1984
1984
  textContent: d(e.$t("linkToDoc", { type: o.dealType }))
1985
- }, null, 8, $i),
1986
- c(w, {
1985
+ }, null, 8, Ii),
1986
+ c(k, {
1987
1987
  ref: "input",
1988
1988
  modelValue: i.searchQuery,
1989
1989
  "onUpdate:modelValue": t[4] || (t[4] = (f) => i.searchQuery = f),
@@ -1999,12 +1999,12 @@ function Gi(e, t, n, s, i, o) {
1999
1999
  onSelect: t[6] || (t[6] = (f) => o.useSearchResult(f))
2000
2000
  }, {
2001
2001
  default: u(({ option: f }) => [
2002
- l("div", Ii, [
2003
- l("div", Fi, d(f.name), 1),
2004
- l("div", Li, [
2005
- T(d(f.externalReference.type.capitalize()) + " " + d(f.externalReference.typeId) + " ", 1),
2006
- f.value && f.currency ? (a(), p(I, { key: 0 }, [
2007
- T(" · " + d(o.priceFormat(f.value, {
2002
+ a("div", $i, [
2003
+ a("div", Fi, d(f.name), 1),
2004
+ a("div", Li, [
2005
+ _(d(f.externalReference.type.capitalize()) + " " + d(f.externalReference.typeId) + " ", 1),
2006
+ f.value && f.currency ? (l(), p(S, { key: 0 }, [
2007
+ _(" · " + d(o.priceFormat(f.value, {
2008
2008
  showZero: !1,
2009
2009
  currency: f.currency
2010
2010
  })), 1)
@@ -2013,17 +2013,17 @@ function Gi(e, t, n, s, i, o) {
2013
2013
  ])
2014
2014
  ]),
2015
2015
  empty: u(() => [
2016
- T(d(e.$t("_common:noResults")), 1)
2016
+ _(d(e.$t("_common:noResults")), 1)
2017
2017
  ]),
2018
2018
  _: 1
2019
2019
  }, 8, ["modelValue", "data", "loading", "placeholder"])
2020
2020
  ]))
2021
2021
  ]),
2022
- o.showDealProducts ? (a(), p("div", Vi, [
2023
- l("div", Bi, [
2024
- l("div", Mi, [
2025
- T(d(e.$t("productsTitle")) + " ", 1),
2026
- N(c(k, {
2022
+ o.showDealProducts ? (l(), p("div", Vi, [
2023
+ a("div", Bi, [
2024
+ a("div", Mi, [
2025
+ _(d(e.$t("productsTitle")) + " ", 1),
2026
+ N(c(w, {
2027
2027
  type: "info",
2028
2028
  size: "13"
2029
2029
  }, null, 512), [
@@ -2033,7 +2033,7 @@ function Gi(e, t, n, s, i, o) {
2033
2033
  ]
2034
2034
  ])
2035
2035
  ]),
2036
- l("div", {
2036
+ a("div", {
2037
2037
  class: "text-gray-600",
2038
2038
  textContent: d(
2039
2039
  e.$t("productsText", {
@@ -2043,7 +2043,7 @@ function Gi(e, t, n, s, i, o) {
2043
2043
  )
2044
2044
  }, null, 8, Pi)
2045
2045
  ]),
2046
- i.dealDetails.articles && i.dealDetails.articles.length ? (a(), C(S, {
2046
+ i.dealDetails.articles && i.dealDetails.articles.length ? (l(), C(T, {
2047
2047
  key: 0,
2048
2048
  "item-key": "_uniqueId",
2049
2049
  list: i.dealDetails.articles,
@@ -2058,53 +2058,53 @@ function Gi(e, t, n, s, i, o) {
2058
2058
  style: { "min-height": "calc(3 * var(--rem))", padding: "0 calc(0.5 * var(--rem))" }
2059
2059
  }, {
2060
2060
  item: u(({ item: f }) => [
2061
- l("div", {
2061
+ a("div", {
2062
2062
  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" },
2063
2063
  onClick: (x) => o.addArticle(f)
2064
2064
  }, [
2065
- l("div", {
2065
+ a("div", {
2066
2066
  style: { "font-weight": "500", "padding-bottom": "4px", "font-size": "14px" },
2067
2067
  textContent: d(f.name)
2068
2068
  }, null, 8, Ei),
2069
- l("div", zi, [
2070
- T(d(o.priceFormat(f.price || 0, {
2069
+ a("div", zi, [
2070
+ _(d(o.priceFormat(f.price || 0, {
2071
2071
  showZero: !1,
2072
2072
  currency: f.currency || "USD"
2073
2073
  })) + " · " + d(f.quantity || 0) + "x ", 1),
2074
- f.vat !== null ? (a(), p(I, { key: 0 }, [
2075
- T(" · " + d(e._document.$t("vat").capitalize()) + " " + d(f.vat) + "% ", 1)
2074
+ f.vat !== null ? (l(), p(S, { key: 0 }, [
2075
+ _(" · " + d(e._document.$t("vat").capitalize()) + " " + d(f.vat) + "% ", 1)
2076
2076
  ], 64)) : v("", !0)
2077
2077
  ])
2078
2078
  ], 8, Ai)
2079
2079
  ]),
2080
2080
  _: 1
2081
- }, 8, ["list", "clone"])) : (a(), p("div", Ri, [
2082
- c(k, {
2081
+ }, 8, ["list", "clone"])) : (l(), p("div", Ri, [
2082
+ c(w, {
2083
2083
  type: "info",
2084
2084
  size: "13",
2085
2085
  style: { margin: "1px 4px 0 0", "flex-shrink": "0" }
2086
2086
  }),
2087
- l("div", {
2087
+ a("div", {
2088
2088
  textContent: d(e.$t("noProducts", { type: o.dealType }))
2089
2089
  }, null, 8, Oi)
2090
2090
  ]))
2091
2091
  ])) : v("", !0)
2092
- ], 64)) : (a(), p("div", Hi, [
2093
- c(k, {
2092
+ ], 64)) : (l(), p("div", Hi, [
2093
+ c(w, {
2094
2094
  type: "info",
2095
2095
  size: "16",
2096
2096
  class: "text-primary-500",
2097
2097
  style: { "padding-bottom": "5px" }
2098
2098
  }),
2099
- l("div", Ui, d(e.$t("noCrm")), 1),
2100
- l("div", qi, [
2099
+ a("div", Ui, d(e.$t("noCrm")), 1),
2100
+ a("div", qi, [
2101
2101
  c(D, {
2102
2102
  to: { name: "settings" },
2103
2103
  style: { "font-weight": "500" },
2104
2104
  class: "text-primary-500"
2105
2105
  }, {
2106
2106
  default: u(() => [
2107
- T(d(e.$t("noCrmAction")), 1)
2107
+ _(d(e.$t("noCrmAction")), 1)
2108
2108
  ]),
2109
2109
  _: 1
2110
2110
  })
@@ -2112,7 +2112,7 @@ function Gi(e, t, n, s, i, o) {
2112
2112
  ]))
2113
2113
  ]);
2114
2114
  }
2115
- const Ni = /* @__PURE__ */ F(pi, [["render", Gi], ["__scopeId", "data-v-5c4afae3"]]), Wi = {
2115
+ const Ni = /* @__PURE__ */ $(pi, [["render", Gi], ["__scopeId", "data-v-5c4afae3"]]), Wi = {
2116
2116
  name: "FieldsModal",
2117
2117
  i18nOptions: {
2118
2118
  namespaces: "FieldsModal",
@@ -2146,7 +2146,7 @@ const Ni = /* @__PURE__ */ F(pi, [["render", Gi], ["__scopeId", "data-v-5c4afae3
2146
2146
  }
2147
2147
  },
2148
2148
  components: {
2149
- CField: ke
2149
+ CField: _e
2150
2150
  },
2151
2151
  emits: ["close"],
2152
2152
  props: {
@@ -2169,7 +2169,7 @@ const Ni = /* @__PURE__ */ F(pi, [["render", Gi], ["__scopeId", "data-v-5c4afae3
2169
2169
  },
2170
2170
  setup() {
2171
2171
  return {
2172
- v$: We()
2172
+ v$: je()
2173
2173
  };
2174
2174
  },
2175
2175
  data() {
@@ -2183,12 +2183,12 @@ const Ni = /* @__PURE__ */ F(pi, [["render", Gi], ["__scopeId", "data-v-5c4afae3
2183
2183
  validations: {
2184
2184
  form: {
2185
2185
  label: {
2186
- required: Ie,
2186
+ required: Fe,
2187
2187
  isUniqueLabel(e) {
2188
2188
  return this.fields.reduce((n, { id: s, label: i }) => i === e && s !== this.existingFieldId ? !1 : n, !0);
2189
2189
  }
2190
2190
  },
2191
- value: { required: Ie }
2191
+ value: { required: Fe }
2192
2192
  }
2193
2193
  },
2194
2194
  computed: {
@@ -2208,14 +2208,14 @@ const Ni = /* @__PURE__ */ F(pi, [["render", Gi], ["__scopeId", "data-v-5c4afae3
2208
2208
  },
2209
2209
  created() {
2210
2210
  if (this.existingFieldId) {
2211
- const e = V(this.document, `fields.${this.existingFieldId}`);
2211
+ const e = B(this.document, `fields.${this.existingFieldId}`);
2212
2212
  e && (this.form = { ...this.form, ...e });
2213
2213
  }
2214
2214
  },
2215
2215
  methods: {
2216
2216
  submit() {
2217
2217
  if (this.v$.$touch(), this.v$.$invalid) return;
2218
- const e = this.existingFieldId || rt();
2218
+ const e = this.existingFieldId || dt();
2219
2219
  this.set({
2220
2220
  key: `data.fields.${e}`,
2221
2221
  value: {
@@ -2236,15 +2236,15 @@ const Ni = /* @__PURE__ */ F(pi, [["render", Gi], ["__scopeId", "data-v-5c4afae3
2236
2236
  }, Zi = { style: { "padding-bottom": "2em" } }, Ki = { style: { "font-size": "18px", "font-weight": "600", "margin-bottom": "0.25em" } }, Qi = { style: { "margin-bottom": "0.25em", opacity: "0.65" } };
2237
2237
  function Yi(e, t, n, s, i, o) {
2238
2238
  const r = m("CInput"), g = m("CField"), h = m("CButton");
2239
- return a(), p("div", ji, [
2240
- l("div", Zi, [
2241
- l("div", Ki, d(n.existingFieldId ? e.$t("editTitle") : e.$t("newTitle")), 1),
2242
- l("div", Qi, d(e.$t("description")), 1)
2239
+ return l(), p("div", ji, [
2240
+ a("div", Zi, [
2241
+ a("div", Ki, d(n.existingFieldId ? e.$t("editTitle") : e.$t("newTitle")), 1),
2242
+ a("div", Qi, d(e.$t("description")), 1)
2243
2243
  ]),
2244
- l("form", {
2244
+ a("form", {
2245
2245
  style: { width: "100%" },
2246
- onSubmit: t[2] || (t[2] = q((...b) => o.submit && o.submit(...b), ["prevent"])),
2247
- onKeyup: t[3] || (t[3] = dt((...b) => o.submit && o.submit(...b), ["enter"]))
2246
+ onSubmit: t[2] || (t[2] = Z((...b) => o.submit && o.submit(...b), ["prevent"])),
2247
+ onKeyup: t[3] || (t[3] = ct((...b) => o.submit && o.submit(...b), ["enter"]))
2248
2248
  }, [
2249
2249
  c(g, {
2250
2250
  label: e.$t("label"),
@@ -2287,7 +2287,7 @@ function Yi(e, t, n, s, i, o) {
2287
2287
  onClick: o.submit,
2288
2288
  textContent: d(e.$t("_common:save"))
2289
2289
  }, null, 8, ["onClick", "textContent"]),
2290
- n.existingFieldId ? (a(), C(h, {
2290
+ n.existingFieldId ? (l(), C(h, {
2291
2291
  key: 0,
2292
2292
  style: { "margin-top": "5px" },
2293
2293
  type: "none",
@@ -2299,7 +2299,7 @@ function Yi(e, t, n, s, i, o) {
2299
2299
  ], 32)
2300
2300
  ]);
2301
2301
  }
2302
- const Ji = /* @__PURE__ */ F(Wi, [["render", Yi]]), Xi = {
2302
+ const Ji = /* @__PURE__ */ $(Wi, [["render", Yi]]), Xi = {
2303
2303
  i18nOptions: {
2304
2304
  namespaces: "DocumentFormFields",
2305
2305
  messages: {
@@ -2325,9 +2325,9 @@ const Ji = /* @__PURE__ */ F(Wi, [["render", Yi]]), Xi = {
2325
2325
  components: {
2326
2326
  SmartList: Zt,
2327
2327
  CAccordion: Wt,
2328
- CField: ke
2328
+ CField: _e
2329
2329
  },
2330
- mixins: [ne()],
2330
+ mixins: [ae()],
2331
2331
  props: {
2332
2332
  set: {
2333
2333
  type: Function,
@@ -2381,7 +2381,7 @@ const Ji = /* @__PURE__ */ F(Wi, [["render", Yi]]), Xi = {
2381
2381
  async handler(e) {
2382
2382
  var t, n;
2383
2383
  if (this.isEditingTemplate && e) {
2384
- const { data: s } = await ee.getFields(e);
2384
+ const { data: s } = await ie.getFields(e);
2385
2385
  this.updateValue("data.fields", {
2386
2386
  // crmFields added first in order to not override same service values
2387
2387
  ...s,
@@ -2420,7 +2420,7 @@ const Ji = /* @__PURE__ */ F(Wi, [["render", Yi]]), Xi = {
2420
2420
  );
2421
2421
  },
2422
2422
  onCopyField(e) {
2423
- navigator && navigator.clipboard && e && navigator.clipboard.writeText(e).then(() => be("info", this.$t("_common:copyMessage"))).catch((t) => se(t));
2423
+ navigator && navigator.clipboard && e && navigator.clipboard.writeText(e).then(() => we("info", this.$t("_common:copyMessage"))).catch((t) => re(t));
2424
2424
  },
2425
2425
  filterMethod(e, t) {
2426
2426
  return t.filter(
@@ -2438,7 +2438,7 @@ const Ji = /* @__PURE__ */ F(Wi, [["render", Yi]]), Xi = {
2438
2438
  }, so = {
2439
2439
  class: "field-container",
2440
2440
  style: { position: "relative", flex: "1 1 auto" }
2441
- }, lo = ["onDragstart", "textContent"], ao = { class: "field-actions" }, ro = {
2441
+ }, ao = ["onDragstart", "textContent"], lo = { class: "field-actions" }, ro = {
2442
2442
  key: 1,
2443
2443
  style: { "text-align": "center" }
2444
2444
  }, co = {
@@ -2452,50 +2452,50 @@ const Ji = /* @__PURE__ */ F(Wi, [["render", Yi]]), Xi = {
2452
2452
  style: { position: "relative", flex: "1 1 auto" }
2453
2453
  }, vo = ["onDragstart", "textContent"], Co = { class: "field-actions" };
2454
2454
  function bo(e, t, n, s, i, o) {
2455
- const r = m("CInput"), g = m("CField"), h = m("CButton"), b = m("SmartList"), w = m("CIcon"), k = m("CAccordion");
2456
- return a(), p("div", eo, [
2457
- l("div", to, [
2458
- l("div", {
2455
+ const r = m("CInput"), g = m("CField"), h = m("CButton"), b = m("SmartList"), k = m("CIcon"), w = m("CAccordion");
2456
+ return l(), p("div", eo, [
2457
+ a("div", to, [
2458
+ a("div", {
2459
2459
  style: { "font-size": "16px", "font-weight": "600" },
2460
2460
  textContent: d(e.$t("title"))
2461
2461
  }, null, 8, no),
2462
- l("div", {
2462
+ a("div", {
2463
2463
  style: { color: "hsl(0, 0%, 35%)" },
2464
2464
  textContent: d(e.$t("description"))
2465
2465
  }, null, 8, io)
2466
2466
  ]),
2467
2467
  c(r, {
2468
2468
  modelValue: i.query,
2469
- "onUpdate:modelValue": t[0] || (t[0] = (S) => i.query = S),
2469
+ "onUpdate:modelValue": t[0] || (t[0] = (T) => i.query = T),
2470
2470
  placeholder: e.$t("_common:search"),
2471
2471
  filled: "",
2472
2472
  size: "small"
2473
2473
  }, null, 8, ["modelValue", "placeholder"]),
2474
- i.query ? (a(), p("div", oo, [
2474
+ i.query ? (l(), p("div", oo, [
2475
2475
  c(b, {
2476
2476
  items: o.options,
2477
2477
  "filter-method": o.filterMethod,
2478
2478
  query: i.query
2479
2479
  }, {
2480
- default: u(({ items: S }) => [
2481
- l("div", null, [
2482
- S.length ? (a(!0), p(I, { key: 0 }, P(S, (D, y) => (a(), p("div", {
2480
+ default: u(({ items: T }) => [
2481
+ a("div", null, [
2482
+ T.length ? (l(!0), p(S, { key: 0 }, A(T, (D, y) => (l(), p("div", {
2483
2483
  key: y,
2484
2484
  class: "field-parent flex w-full items-center"
2485
2485
  }, [
2486
- l("div", so, [
2486
+ a("div", so, [
2487
2487
  c(g, {
2488
2488
  label: " ",
2489
2489
  "label-position": "inside",
2490
2490
  style: { width: "100%" }
2491
2491
  }, {
2492
2492
  default: u(() => [
2493
- l("span", {
2493
+ a("span", {
2494
2494
  class: "drag-label",
2495
2495
  draggable: !0,
2496
2496
  onDragstart: (f) => o.onDragStart(f, D),
2497
2497
  textContent: d(D.label)
2498
- }, null, 40, lo),
2498
+ }, null, 40, ao),
2499
2499
  c(r, {
2500
2500
  "model-value": D.value,
2501
2501
  disabled: D.inputDisabled,
@@ -2510,8 +2510,8 @@ function bo(e, t, n, s, i, o) {
2510
2510
  ]),
2511
2511
  _: 2
2512
2512
  }, 1024),
2513
- l("div", ao, [
2514
- !D.inputDisabled && !D.virtual ? (a(), C(h, {
2513
+ a("div", lo, [
2514
+ !D.inputDisabled && !D.virtual ? (l(), C(h, {
2515
2515
  key: 0,
2516
2516
  icon: "edit",
2517
2517
  size: "small",
@@ -2530,13 +2530,13 @@ function bo(e, t, n, s, i, o) {
2530
2530
  }, null, 8, ["onClick"])
2531
2531
  ])
2532
2532
  ])
2533
- ]))), 128)) : (a(), p("div", ro, d(e.$t("_common:noResults")), 1))
2533
+ ]))), 128)) : (l(), p("div", ro, d(e.$t("_common:noResults")), 1))
2534
2534
  ])
2535
2535
  ]),
2536
2536
  _: 1
2537
2537
  }, 8, ["items", "filter-method", "query"])
2538
- ])) : (a(), p("div", co, [
2539
- l("div", uo, [
2538
+ ])) : (l(), p("div", co, [
2539
+ a("div", uo, [
2540
2540
  c(h, {
2541
2541
  type: "none",
2542
2542
  pattern: "secondary",
@@ -2546,7 +2546,7 @@ function bo(e, t, n, s, i, o) {
2546
2546
  textContent: d(e.$t("_common:add", { thing: e.$t("_common:field") }))
2547
2547
  }, null, 8, ["onClick", "textContent"])
2548
2548
  ]),
2549
- (a(!0), p(I, null, P([
2549
+ (l(!0), p(S, null, A([
2550
2550
  {
2551
2551
  label: e.$t("usedFields"),
2552
2552
  defaultOpen: !0,
@@ -2564,43 +2564,43 @@ function bo(e, t, n, s, i, o) {
2564
2564
  defaultOpen: !o.usedFields.length,
2565
2565
  items: o.unUsedFields
2566
2566
  }
2567
- ], (S, D) => (a(), C(k, {
2567
+ ], (T, D) => (l(), C(w, {
2568
2568
  key: D,
2569
- "default-open": S.defaultOpen,
2569
+ "default-open": T.defaultOpen,
2570
2570
  style: { "border-top": "1px solid hsl(0, 0%, 88%)" }
2571
2571
  }, {
2572
2572
  trigger: u(({ expanded: y }) => [
2573
- l("div", mo, [
2574
- l("span", null, [
2575
- l("span", {
2576
- textContent: d(S.label)
2573
+ a("div", mo, [
2574
+ a("span", null, [
2575
+ a("span", {
2576
+ textContent: d(T.label)
2577
2577
  }, null, 8, po),
2578
- l("span", {
2578
+ a("span", {
2579
2579
  style: { opacity: "0.45", "padding-left": "0.5em" },
2580
- textContent: d(S.items.length)
2580
+ textContent: d(T.items.length)
2581
2581
  }, null, 8, ho)
2582
2582
  ]),
2583
- c(w, {
2584
- style: E([{ transform: `rotate(${y ? "180deg" : "0deg"})` }, { transition: "200ms" }]),
2583
+ c(k, {
2584
+ style: R([{ transform: `rotate(${y ? "180deg" : "0deg"})` }, { transition: "200ms" }]),
2585
2585
  type: "chevron-down",
2586
2586
  size: "15"
2587
2587
  }, null, 8, ["style"])
2588
2588
  ])
2589
2589
  ]),
2590
2590
  default: u(() => [
2591
- l("div", fo, [
2592
- S.items.length ? (a(!0), p(I, { key: 1 }, P(S.items, (y, f) => (a(), p("div", {
2591
+ a("div", fo, [
2592
+ T.items.length ? (l(!0), p(S, { key: 1 }, A(T.items, (y, f) => (l(), p("div", {
2593
2593
  key: f,
2594
2594
  class: "field-parent flex w-full items-center"
2595
2595
  }, [
2596
- l("div", yo, [
2596
+ a("div", yo, [
2597
2597
  c(g, {
2598
2598
  label: " ",
2599
2599
  "label-position": "inside",
2600
2600
  style: { width: "100%" }
2601
2601
  }, {
2602
2602
  default: u(() => [
2603
- l("span", {
2603
+ a("span", {
2604
2604
  class: "drag-label",
2605
2605
  draggable: !0,
2606
2606
  onDragstart: (x) => o.onDragStart(x, y),
@@ -2613,15 +2613,15 @@ function bo(e, t, n, s, i, o) {
2613
2613
  size: "small",
2614
2614
  style: { width: "100%" },
2615
2615
  onBlur: (x) => {
2616
- var _;
2617
- return y.onInput(((_ = x == null ? void 0 : x.target) == null ? void 0 : _.value) || "");
2616
+ var I;
2617
+ return y.onInput(((I = x == null ? void 0 : x.target) == null ? void 0 : I.value) || "");
2618
2618
  }
2619
2619
  }, null, 8, ["model-value", "disabled", "onBlur"])
2620
2620
  ]),
2621
2621
  _: 2
2622
2622
  }, 1024),
2623
- l("div", Co, [
2624
- !y.inputDisabled && !y.virtual ? (a(), C(h, {
2623
+ a("div", Co, [
2624
+ !y.inputDisabled && !y.virtual ? (l(), C(h, {
2625
2625
  key: 0,
2626
2626
  icon: "edit",
2627
2627
  size: "small",
@@ -2640,7 +2640,7 @@ function bo(e, t, n, s, i, o) {
2640
2640
  }, null, 8, ["onClick"])
2641
2641
  ])
2642
2642
  ])
2643
- ]))), 128)) : (a(), p("div", {
2643
+ ]))), 128)) : (l(), p("div", {
2644
2644
  key: 0,
2645
2645
  style: { "font-size": "13px", "text-align": "center", "user-select": "none", padding: "0.5em", "border-radius": "0.25em", opacity: "0.5" },
2646
2646
  textContent: d(e.$t("noResults"))
@@ -2652,7 +2652,7 @@ function bo(e, t, n, s, i, o) {
2652
2652
  ]))
2653
2653
  ]);
2654
2654
  }
2655
- const ko = /* @__PURE__ */ F(Xi, [["render", bo], ["__scopeId", "data-v-454d81b5"]]), wo = {
2655
+ const ko = /* @__PURE__ */ $(Xi, [["render", bo], ["__scopeId", "data-v-454d81b5"]]), wo = {
2656
2656
  name: "MenuBlockConvertPopover",
2657
2657
  emits: ["close", "convert"],
2658
2658
  props: {
@@ -2691,12 +2691,12 @@ const ko = /* @__PURE__ */ F(Xi, [["render", bo], ["__scopeId", "data-v-454d81b5
2691
2691
  }, xo = ["innerHTML"];
2692
2692
  function To(e, t, n, s, i, o) {
2693
2693
  const r = m("CButton");
2694
- return a(), p("div", null, [
2695
- l("div", {
2694
+ return l(), p("div", null, [
2695
+ a("div", {
2696
2696
  class: "fixed inset-0 z-10",
2697
- onClick: t[0] || (t[0] = q((g) => e.$emit("close"), ["self"]))
2697
+ onClick: t[0] || (t[0] = Z((g) => e.$emit("close"), ["self"]))
2698
2698
  }),
2699
- c(te, {
2699
+ c(oe, {
2700
2700
  appear: "",
2701
2701
  mode: "out-in",
2702
2702
  "enter-active-class": "transition-all duration-100 ease-out",
@@ -2707,8 +2707,8 @@ function To(e, t, n, s, i, o) {
2707
2707
  "leave-to-class": "opacity-0"
2708
2708
  }, {
2709
2709
  default: u(() => [
2710
- l("div", _o, [
2711
- l("div", {
2710
+ a("div", _o, [
2711
+ a("div", {
2712
2712
  class: "pb-4",
2713
2713
  innerHTML: e.$t("text")
2714
2714
  }, null, 8, xo),
@@ -2719,7 +2719,7 @@ function To(e, t, n, s, i, o) {
2719
2719
  onClick: t[1] || (t[1] = (g) => e.$emit("convert"))
2720
2720
  }, {
2721
2721
  default: u(() => [
2722
- T(d(e.$t("button")), 1)
2722
+ _(d(e.$t("button")), 1)
2723
2723
  ]),
2724
2724
  _: 1
2725
2725
  })
@@ -2729,7 +2729,7 @@ function To(e, t, n, s, i, o) {
2729
2729
  })
2730
2730
  ]);
2731
2731
  }
2732
- const Do = /* @__PURE__ */ F(wo, [["render", To]]), So = {
2732
+ const Do = /* @__PURE__ */ $(wo, [["render", To]]), So = {
2733
2733
  name: "MenuBlocks",
2734
2734
  i18nOptions: {
2735
2735
  namespaces: "menuBlocks",
@@ -2799,14 +2799,14 @@ const Do = /* @__PURE__ */ F(wo, [["render", To]]), So = {
2799
2799
  }
2800
2800
  },
2801
2801
  components: {
2802
- Simplebar: Q,
2802
+ Simplebar: X,
2803
2803
  DragList: Ee,
2804
2804
  DragItem: ze,
2805
- IsPremiumPreStep: Y,
2806
- ProBadge: Ne,
2805
+ IsPremiumPreStep: ee,
2806
+ ProBadge: We,
2807
2807
  MenuBlockConvertPopover: Do
2808
2808
  },
2809
- mixins: [Z],
2809
+ mixins: [Y],
2810
2810
  inject: {
2811
2811
  viewSettings: {
2812
2812
  default: () => ({ isPublicForm: !1 })
@@ -2836,7 +2836,7 @@ const Do = /* @__PURE__ */ F(wo, [["render", To]]), So = {
2836
2836
  },
2837
2837
  emits: ["block-added"],
2838
2838
  setup(e) {
2839
- const { addBlock: t, getBlockPayload: n } = Ge({
2839
+ const { addBlock: t, getBlockPayload: n } = Ne({
2840
2840
  setter: e.set
2841
2841
  });
2842
2842
  return { addBlock: t, getBlockPayload: n };
@@ -3000,7 +3000,7 @@ const Do = /* @__PURE__ */ F(wo, [["render", To]]), So = {
3000
3000
  };
3001
3001
  },
3002
3002
  computed: {
3003
- ...O({
3003
+ ...H({
3004
3004
  allAuthenticatedCRMs: "settings/allAuthenticatedCRMs",
3005
3005
  feature: "application/feature"
3006
3006
  }),
@@ -3135,7 +3135,7 @@ const Do = /* @__PURE__ */ F(wo, [["render", To]]), So = {
3135
3135
  );
3136
3136
  },
3137
3137
  activeSubMenuKey() {
3138
- return V(this.activeSubMenu, "[0].key") || null;
3138
+ return B(this.activeSubMenu, "[0].key") || null;
3139
3139
  }
3140
3140
  // section key is added to each element in the menu
3141
3141
  },
@@ -3195,7 +3195,7 @@ const Do = /* @__PURE__ */ F(wo, [["render", To]]), So = {
3195
3195
  e.destroy();
3196
3196
  }) : this.tippyInstances.destroy && this.tippyInstances.destroy());
3197
3197
  },
3198
- setSubMenuState: Ce(
3198
+ setSubMenuState: ke(
3199
3199
  function(t) {
3200
3200
  this.activeSubMenu = t;
3201
3201
  },
@@ -3214,7 +3214,7 @@ const Do = /* @__PURE__ */ F(wo, [["render", To]]), So = {
3214
3214
  return !this.feature(`docBlock_${e}`) && !((t = this.viewSettings) != null && t.isPublicForm);
3215
3215
  },
3216
3216
  doesBlockExist(e) {
3217
- return !!V(this._document, "_doc.template.views.read.nodes", []).find((n) => n.itemId.startsWith(e));
3217
+ return !!B(this._document, "_doc.template.views.read.nodes", []).find((n) => n.itemId.startsWith(e));
3218
3218
  },
3219
3219
  getGhostParent() {
3220
3220
  var n, s;
@@ -3237,7 +3237,7 @@ const Do = /* @__PURE__ */ F(wo, [["render", To]]), So = {
3237
3237
  };
3238
3238
  }
3239
3239
  }
3240
- }, $o = { class: "menu-container" }, Io = {
3240
+ }, Io = { class: "menu-container" }, $o = {
3241
3241
  key: 0,
3242
3242
  style: { height: "1px", "background-color": "hsl(0, 0%, 88%)", margin: "calc(1 * var(--rem))" }
3243
3243
  }, Fo = ["onMouseoverPassive"], Lo = {
@@ -3248,27 +3248,27 @@ const Do = /* @__PURE__ */ F(wo, [["render", To]]), So = {
3248
3248
  style: { width: "initial", flex: "1 1 auto" }
3249
3249
  }, Bo = ["innerHTML"], Mo = { class: "option-title" }, Po = { class: "relative" }, Ao = ["onClick", "innerHTML"];
3250
3250
  function Eo(e, t, n, s, i, o) {
3251
- const r = m("MenuBlockConvertPopover"), g = m("ProBadge"), h = m("CIcon"), b = m("CButton"), w = m("DragItem"), k = m("DragList"), S = m("Simplebar"), D = m("IsPremiumPreStep");
3252
- return a(), p("div", {
3251
+ const r = m("MenuBlockConvertPopover"), g = m("ProBadge"), h = m("CIcon"), b = m("CButton"), k = m("DragItem"), w = m("DragList"), T = m("Simplebar"), D = m("IsPremiumPreStep");
3252
+ return l(), p("div", {
3253
3253
  onMouseleavePassive: t[4] || (t[4] = (...y) => o.onMouseleaveDrawer && o.onMouseleaveDrawer(...y))
3254
3254
  }, [
3255
3255
  c(D, { feature: "documentBlocks" }, {
3256
3256
  default: u(({ onClick: y }) => [
3257
- !n.canUseBlocks && i.showConvertEditableDialog ? (a(), C(r, {
3257
+ !n.canUseBlocks && i.showConvertEditableDialog ? (l(), C(r, {
3258
3258
  key: 0,
3259
3259
  target: i.showConvertEditableDialogTarget,
3260
3260
  onConvert: o.deSyncTemplate,
3261
3261
  onClose: t[0] || (t[0] = (f) => i.showConvertEditableDialog = !1)
3262
3262
  }, null, 8, ["target", "onConvert"])) : v("", !0),
3263
- l("div", $o, [
3264
- (a(!0), p(I, null, P([
3263
+ a("div", Io, [
3264
+ (l(!0), p(S, null, A([
3265
3265
  { data: o.primaryBlocks },
3266
3266
  { data: o.secondaryBlocks }
3267
- ], (f, x) => (a(), p("div", { key: x }, [
3268
- x > 0 ? (a(), p("div", Io)) : v("", !0),
3269
- c(k, {
3267
+ ], (f, x) => (l(), p("div", { key: x }, [
3268
+ x > 0 ? (l(), p("div", $o)) : v("", !0),
3269
+ c(w, {
3270
3270
  group: { name: "blocks", pull: "clone", put: !1 },
3271
- "get-child-payload": (_) => s.getBlockPayload(o.getSectionKey({ data: f.data, index: _ })),
3271
+ "get-child-payload": (I) => s.getBlockPayload(o.getSectionKey({ data: f.data, index: I })),
3272
3272
  "drop-placeholder": {
3273
3273
  className: "drag-drop-menu-placeholder"
3274
3274
  },
@@ -3280,44 +3280,44 @@ function Eo(e, t, n, s, i, o) {
3280
3280
  behaviour: "copy"
3281
3281
  }, {
3282
3282
  default: u(() => [
3283
- (a(!0), p(I, null, P(f.data, (_) => (a(), C(w, {
3284
- key: _.key,
3283
+ (l(!0), p(S, null, A(f.data, (I) => (l(), C(k, {
3284
+ key: I.key,
3285
3285
  class: L({ "drag-item": o.canDrag })
3286
3286
  }, {
3287
3287
  default: u(() => [
3288
- l("div", ye(
3288
+ a("div", be(
3289
3289
  { ref_for: !0 },
3290
- _.hasTooltip ? { "data-tooltip-key": _.key } : null,
3290
+ I.hasTooltip ? { "data-tooltip-key": I.key } : null,
3291
3291
  {
3292
3292
  class: {
3293
- "no-drag": _.disabled || _.locked || !n.canUseBlocks
3293
+ "no-drag": I.disabled || I.locked || !n.canUseBlocks
3294
3294
  },
3295
- onMouseoverPassive: (A) => i.subMenuToShow = !_.disabled && o.canDrag && _.subMenu || null,
3296
- onMouseleavePassive: t[1] || (t[1] = (A) => i.subMenuToShow = null)
3295
+ onMouseoverPassive: (F) => i.subMenuToShow = !I.disabled && o.canDrag && I.subMenu || null,
3296
+ onMouseleavePassive: t[1] || (t[1] = (F) => i.subMenuToShow = null)
3297
3297
  }
3298
3298
  ), [
3299
3299
  c(b, {
3300
3300
  ref_for: !0,
3301
3301
  ref: "blockItem",
3302
- disabled: _.disabled,
3302
+ disabled: I.disabled,
3303
3303
  class: L([{
3304
- "sub-menu-active": _.key === o.activeSubMenuKey
3304
+ "sub-menu-active": I.key === o.activeSubMenuKey
3305
3305
  }, "option-row is-thinner is-left"]),
3306
3306
  wide: "",
3307
3307
  pattern: "secondary",
3308
3308
  style: { "padding-left": "1.5em", "padding-right": "2em", "border-radius": "0", "font-size": "14px", "border-color": "transparent" },
3309
- onClick: (A) => o.onUseBlock({ block: _, openUpgradeModal: y })
3309
+ onClick: (F) => o.onUseBlock({ block: I, openUpgradeModal: y })
3310
3310
  }, {
3311
3311
  default: u(() => [
3312
- l("div", Lo, [
3313
- l("div", Vo, [
3314
- l("div", {
3312
+ a("div", Lo, [
3313
+ a("div", Vo, [
3314
+ a("div", {
3315
3315
  class: "option-image",
3316
- innerHTML: _.icon
3316
+ innerHTML: I.icon
3317
3317
  }, null, 8, Bo),
3318
- l("div", Mo, d(e.$t(`blocks.${_.key}`)), 1)
3318
+ a("div", Mo, d(e.$t(`blocks.${I.key}`)), 1)
3319
3319
  ]),
3320
- _.locked ? (a(), C(g, { key: 0 })) : !n.fixed && _.subMenu ? (a(), C(h, {
3320
+ I.locked ? (l(), C(g, { key: 0 })) : !n.fixed && I.subMenu ? (l(), C(h, {
3321
3321
  key: 1,
3322
3322
  type: "chevron-right",
3323
3323
  size: "14",
@@ -3335,21 +3335,21 @@ function Eo(e, t, n, s, i, o) {
3335
3335
  _: 2
3336
3336
  }, 1032, ["get-child-payload", "get-ghost-parent"])
3337
3337
  ]))), 128)),
3338
- M(e.$slots, "footer", {}, void 0, !0)
3338
+ P(e.$slots, "footer", {}, void 0, !0)
3339
3339
  ]),
3340
- c(te, { name: "slide-right" }, {
3340
+ c(oe, { name: "slide-right" }, {
3341
3341
  default: u(() => [
3342
- N(l("div", {
3342
+ N(a("div", {
3343
3343
  class: "submenu",
3344
3344
  onMouseoverPassive: t[2] || (t[2] = (f) => i.subMenuToShow = i.activeSubMenu),
3345
3345
  onMouseleavePassive: t[3] || (t[3] = (f) => i.subMenuToShow = null)
3346
3346
  }, [
3347
- c(S, {
3347
+ c(T, {
3348
3348
  class: "h-full py-4 pl-3",
3349
3349
  "data-simplebar-auto-hide": "false"
3350
3350
  }, {
3351
3351
  default: u(() => [
3352
- c(k, {
3352
+ c(w, {
3353
3353
  group: { name: "blocks", pull: "clone", put: !1 },
3354
3354
  "get-child-payload": (f) => o.getSubMenuPayload({ index: f, getBlockPayload: s.getBlockPayload }),
3355
3355
  "drop-placeholder": { className: "drag-drop-menu-placeholder" },
@@ -3361,18 +3361,18 @@ function Eo(e, t, n, s, i, o) {
3361
3361
  behaviour: "copy"
3362
3362
  }, {
3363
3363
  default: u(() => [
3364
- (a(!0), p(I, null, P(i.activeSubMenu, (f, x) => (a(), C(w, {
3364
+ (l(!0), p(S, null, A(i.activeSubMenu, (f, x) => (l(), C(k, {
3365
3365
  key: f.key + x,
3366
3366
  class: L(["px-1.5", { "drag-item": !f.locked && n.canUseBlocks }])
3367
3367
  }, {
3368
3368
  default: u(() => [
3369
- l("div", Po, [
3370
- l("div", {
3369
+ a("div", Po, [
3370
+ a("div", {
3371
3371
  class: "drag-item-preview",
3372
- onClick: (_) => o.onUseBlock({ block: f, openUpgradeModal: y }),
3372
+ onClick: (I) => o.onUseBlock({ block: f, openUpgradeModal: y }),
3373
3373
  innerHTML: f.previewUrl
3374
3374
  }, null, 8, Ao),
3375
- f.locked ? (a(), C(g, {
3375
+ f.locked ? (l(), C(g, {
3376
3376
  key: 0,
3377
3377
  class: "absolute bottom-2 right-4"
3378
3378
  })) : v("", !0)
@@ -3387,7 +3387,7 @@ function Eo(e, t, n, s, i, o) {
3387
3387
  _: 2
3388
3388
  }, 1024)
3389
3389
  ], 544), [
3390
- [he, i.activeSubMenu]
3390
+ [ve, i.activeSubMenu]
3391
3391
  ])
3392
3392
  ]),
3393
3393
  _: 2
@@ -3397,7 +3397,7 @@ function Eo(e, t, n, s, i, o) {
3397
3397
  })
3398
3398
  ], 32);
3399
3399
  }
3400
- const zo = /* @__PURE__ */ F(So, [["render", Eo], ["__scopeId", "data-v-babdf4c0"]]), Ro = {
3400
+ const zo = /* @__PURE__ */ $(So, [["render", Eo], ["__scopeId", "data-v-babdf4c0"]]), Ro = {
3401
3401
  name: "DocumentFormMenu",
3402
3402
  i18nOptions: {
3403
3403
  namespaces: "documentFormMenu",
@@ -3413,15 +3413,15 @@ const zo = /* @__PURE__ */ F(So, [["render", Eo], ["__scopeId", "data-v-babdf4c0
3413
3413
  }
3414
3414
  },
3415
3415
  components: {
3416
- Design: ai,
3416
+ Design: li,
3417
3417
  Fields: ko,
3418
3418
  ExtensionTab: Ni,
3419
3419
  DocumentGeneralSettings: mi,
3420
- DocumentGuide: ct(
3421
- () => import("./index-BTw8ZC8k.js")
3420
+ DocumentGuide: ut(
3421
+ () => import("./index-DXNrJnEc.js")
3422
3422
  ),
3423
3423
  MenuBlocks: zo,
3424
- Simplebar: Q
3424
+ Simplebar: X
3425
3425
  },
3426
3426
  emits: ["close"],
3427
3427
  props: {
@@ -3457,12 +3457,12 @@ const zo = /* @__PURE__ */ F(So, [["render", Eo], ["__scopeId", "data-v-babdf4c0
3457
3457
  data() {
3458
3458
  return {
3459
3459
  showGuide: !1,
3460
- showGuideNotification: !De.getItem("hideFormGuideNotification"),
3460
+ showGuideNotification: !Ie.getItem("hideFormGuideNotification"),
3461
3461
  tab: "blocks"
3462
3462
  };
3463
3463
  },
3464
3464
  computed: {
3465
- ...O({
3465
+ ...H({
3466
3466
  allAuthenticatedCRMs: "settings/allAuthenticatedCRMs"
3467
3467
  }),
3468
3468
  extensionTabType() {
@@ -3479,7 +3479,7 @@ const zo = /* @__PURE__ */ F(So, [["render", Eo], ["__scopeId", "data-v-babdf4c0
3479
3479
  },
3480
3480
  methods: {
3481
3481
  openGuide() {
3482
- this.showGuide = !0, this.showGuideNotification = !1, De.setItem("hideFormGuideNotification", !0);
3482
+ this.showGuide = !0, this.showGuideNotification = !1, Ie.setItem("hideFormGuideNotification", !0);
3483
3483
  }
3484
3484
  }
3485
3485
  }, Oo = {
@@ -3493,43 +3493,43 @@ const zo = /* @__PURE__ */ F(So, [["render", Eo], ["__scopeId", "data-v-babdf4c0
3493
3493
  class: "menu-container"
3494
3494
  };
3495
3495
  function jo(e, t, n, s, i, o) {
3496
- const r = m("CIcon"), g = m("CButton"), h = m("MenuBlocks"), b = m("Design"), w = m("Fields"), k = m("ExtensionTab"), S = m("DocumentGeneralSettings"), D = m("Simplebar"), y = m("DocumentGuide");
3497
- return a(), p("div", null, [
3498
- l("div", {
3499
- style: E([{ width: `${n.width}px` }, n.fixed && { zIndex: 999 }]),
3496
+ const r = m("CIcon"), g = m("CButton"), h = m("MenuBlocks"), b = m("Design"), k = m("Fields"), w = m("ExtensionTab"), T = m("DocumentGeneralSettings"), D = m("Simplebar"), y = m("DocumentGuide");
3497
+ return l(), p("div", null, [
3498
+ a("div", {
3499
+ style: R([{ width: `${n.width}px` }, n.fixed && { zIndex: 999 }]),
3500
3500
  class: "root menu-wrapper fixed left-0 top-14 z-[99] bg-white"
3501
3501
  }, [
3502
- n.fixed ? (a(), p("div", {
3502
+ n.fixed ? (l(), p("div", {
3503
3503
  key: 0,
3504
3504
  class: "fixed inset-0",
3505
3505
  onClick: t[0] || (t[0] = (f) => e.$emit("close"))
3506
3506
  })) : v("", !0),
3507
- l("div", {
3508
- style: E([{ 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)" }])
3507
+ a("div", {
3508
+ style: R([{ 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)" }])
3509
3509
  }, [
3510
- n.isLegacyTemplate ? v("", !0) : (a(), p("div", Oo, [
3511
- l("div", {
3510
+ n.isLegacyTemplate ? v("", !0) : (l(), p("div", Oo, [
3511
+ a("div", {
3512
3512
  class: L([{ "is-active": i.tab === "blocks" }, "tab-item"]),
3513
3513
  onClick: t[1] || (t[1] = (f) => i.tab = "blocks"),
3514
3514
  textContent: d(e.$t("tabs.blocks"))
3515
3515
  }, null, 10, Ho),
3516
- l("div", {
3516
+ a("div", {
3517
3517
  class: L([{ "is-active": i.tab === "design" }, "tab-item"]),
3518
3518
  onClick: t[2] || (t[2] = (f) => i.tab = "design"),
3519
3519
  textContent: d(e.$t("tabs.design"))
3520
3520
  }, null, 10, Uo),
3521
- l("div", {
3521
+ a("div", {
3522
3522
  class: L([{ "is-active": i.tab === "fields" }, "tab-item"]),
3523
3523
  onClick: t[3] || (t[3] = (f) => i.tab = "fields"),
3524
3524
  textContent: d(e.$t("tabs.fields"))
3525
3525
  }, null, 10, qo),
3526
- o.extensionTabType ? (a(), p("div", {
3526
+ o.extensionTabType ? (l(), p("div", {
3527
3527
  key: 0,
3528
3528
  class: L([{ "is-active": i.tab === "extension" }, "tab-item"]),
3529
3529
  onClick: t[4] || (t[4] = (f) => i.tab = "extension")
3530
3530
  }, [
3531
- l("div", {
3532
- style: E([{ width: "18px", height: "18px", background: "#343434", "border-radius": "4px", display: "flex", "align-items": "center", "justify-content": "center", "margin-top": "2px" }, [
3531
+ a("div", {
3532
+ style: R([{ width: "18px", height: "18px", background: "#343434", "border-radius": "4px", display: "flex", "align-items": "center", "justify-content": "center", "margin-top": "2px" }, [
3533
3533
  o.extensionTabType === "pipedrive" && {
3534
3534
  backgroundColor: "#3A3A3A"
3535
3535
  },
@@ -3545,7 +3545,7 @@ function jo(e, t, n, s, i, o) {
3545
3545
  }, null, 8, ["type"])
3546
3546
  ], 4)
3547
3547
  ], 2)) : v("", !0),
3548
- l("div", {
3548
+ a("div", {
3549
3549
  class: L([{ "is-active": i.tab === "generalSettings" }, "tab-item ml-[2px]"]),
3550
3550
  onClick: t[5] || (t[5] = (f) => i.tab = "generalSettings")
3551
3551
  }, [
@@ -3556,7 +3556,7 @@ function jo(e, t, n, s, i, o) {
3556
3556
  })
3557
3557
  ], 2)
3558
3558
  ])),
3559
- i.tab === "blocks" ? (a(), C(h, {
3559
+ i.tab === "blocks" ? (l(), C(h, {
3560
3560
  key: 1,
3561
3561
  _document: n.state,
3562
3562
  set: n.set,
@@ -3566,7 +3566,7 @@ function jo(e, t, n, s, i, o) {
3566
3566
  onBlockAdded: t[6] || (t[6] = (f) => n.fixed ? e.$emit("close") : null)
3567
3567
  }, {
3568
3568
  footer: u(() => [
3569
- l("div", Go, [
3569
+ a("div", Go, [
3570
3570
  c(g, {
3571
3571
  "icon-left": "help",
3572
3572
  type: "none",
@@ -3576,18 +3576,18 @@ function jo(e, t, n, s, i, o) {
3576
3576
  onClick: o.openGuide
3577
3577
  }, {
3578
3578
  default: u(() => [
3579
- T(d(e.$t("guideButton")) + " ", 1),
3580
- i.showGuideNotification ? (a(), p("div", No)) : v("", !0)
3579
+ _(d(e.$t("guideButton")) + " ", 1),
3580
+ i.showGuideNotification ? (l(), p("div", No)) : v("", !0)
3581
3581
  ]),
3582
3582
  _: 1
3583
3583
  }, 8, ["onClick"])
3584
3584
  ])
3585
3585
  ]),
3586
3586
  _: 1
3587
- }, 8, ["_document", "set", "remove-value", "fixed", "can-use-blocks"])) : (a(), p("div", Wo, [
3587
+ }, 8, ["_document", "set", "remove-value", "fixed", "can-use-blocks"])) : (l(), p("div", Wo, [
3588
3588
  c(D, { class: "h-full w-full" }, {
3589
3589
  default: u(() => [
3590
- i.tab === "design" ? (a(), C(b, {
3590
+ i.tab === "design" ? (l(), C(b, {
3591
3591
  key: 0,
3592
3592
  _document: n.state,
3593
3593
  _value: {
@@ -3595,7 +3595,7 @@ function jo(e, t, n, s, i, o) {
3595
3595
  },
3596
3596
  set: n.set,
3597
3597
  offset: n.fixed ? 0 : n.width
3598
- }, null, 8, ["_document", "set", "offset"])) : i.tab === "fields" ? (a(), C(w, {
3598
+ }, null, 8, ["_document", "set", "offset"])) : i.tab === "fields" ? (l(), C(k, {
3599
3599
  key: 1,
3600
3600
  _document: n.state,
3601
3601
  "crm-service": o.extensionTabType,
@@ -3603,7 +3603,7 @@ function jo(e, t, n, s, i, o) {
3603
3603
  css: "data.css"
3604
3604
  },
3605
3605
  set: n.set
3606
- }, null, 8, ["_document", "crm-service", "set"])) : i.tab === "extension" ? (a(), C(k, {
3606
+ }, null, 8, ["_document", "crm-service", "set"])) : i.tab === "extension" ? (l(), C(w, {
3607
3607
  key: 2,
3608
3608
  _document: n.state,
3609
3609
  _value: {
@@ -3613,7 +3613,7 @@ function jo(e, t, n, s, i, o) {
3613
3613
  },
3614
3614
  onInput: t[7] || (t[7] = ({ key: f, value: x }) => n.set({ key: f, value: x }))
3615
3615
  }, null, 8, ["_document"])) : v("", !0),
3616
- i.tab === "generalSettings" ? (a(), C(S, {
3616
+ i.tab === "generalSettings" ? (l(), C(T, {
3617
3617
  key: 3,
3618
3618
  _document: n.state,
3619
3619
  _value: {
@@ -3635,7 +3635,7 @@ function jo(e, t, n, s, i, o) {
3635
3635
  _: 1
3636
3636
  })
3637
3637
  ])),
3638
- i.showGuide ? (a(), C(y, {
3638
+ i.showGuide ? (l(), C(y, {
3639
3639
  key: 3,
3640
3640
  onClose: t[9] || (t[9] = (f) => i.showGuide = !1)
3641
3641
  })) : v("", !0)
@@ -3643,11 +3643,11 @@ function jo(e, t, n, s, i, o) {
3643
3643
  ], 4)
3644
3644
  ]);
3645
3645
  }
3646
- const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f"]]), Ke = (e, t, n = "children") => {
3646
+ const Zo = /* @__PURE__ */ $(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f"]]), Qe = (e, t, n = "children") => {
3647
3647
  if (!e) return;
3648
3648
  t(e);
3649
3649
  const s = e[n];
3650
- !s && !Array.isArray(s) || s.forEach((i) => Ke(i, t));
3650
+ !s && !Array.isArray(s) || s.forEach((i) => Qe(i, t));
3651
3651
  }, Ko = {
3652
3652
  i18nOptions: {
3653
3653
  namespaces: "DocumentFormContainer",
@@ -3674,12 +3674,12 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
3674
3674
  DocumentFormNav: Dn,
3675
3675
  DocumentDrawer: vn,
3676
3676
  DocumentStyleContainer: Ot,
3677
- simplebar: Q,
3677
+ simplebar: X,
3678
3678
  LogoBanner: jn,
3679
- IsPremium: J
3679
+ IsPremium: te
3680
3680
  },
3681
3681
  emits: ["update:view"],
3682
- mixins: [Z],
3682
+ mixins: [Y],
3683
3683
  props: {
3684
3684
  _document: {
3685
3685
  type: Object,
@@ -3717,7 +3717,7 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
3717
3717
  },
3718
3718
  data() {
3719
3719
  return {
3720
- drawerState: U,
3720
+ drawerState: W,
3721
3721
  isDragging: !1,
3722
3722
  previewDevice: "desktop",
3723
3723
  sidebarWidth: 270
@@ -3725,25 +3725,25 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
3725
3725
  },
3726
3726
  computed: {
3727
3727
  docTemplate() {
3728
- return V(this._document, "template", null);
3728
+ return B(this._document, "template", null);
3729
3729
  },
3730
3730
  isTemplateEditable() {
3731
- return V(this.docTemplate, "views.read.isEditable", !1);
3731
+ return B(this.docTemplate, "views.read.isEditable", !1);
3732
3732
  },
3733
3733
  canMove() {
3734
3734
  return this.isTemplateEditable && this.isEditView;
3735
3735
  },
3736
3736
  readLayout() {
3737
- return V(this.docTemplate, "views.read.nodes", []);
3737
+ return B(this.docTemplate, "views.read.nodes", []);
3738
3738
  },
3739
3739
  nestedReadLayout() {
3740
3740
  return this._document.getReadLayout({ showHiddenNodes: this.isEditView });
3741
3741
  },
3742
3742
  currency() {
3743
- return V(this._document, "currency");
3743
+ return B(this._document, "currency");
3744
3744
  },
3745
3745
  externalReferences() {
3746
- return V(this._document, "externalReferences") || [];
3746
+ return B(this._document, "externalReferences") || [];
3747
3747
  },
3748
3748
  isEditView() {
3749
3749
  return this.view === "edit";
@@ -3764,13 +3764,13 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
3764
3764
  isEditView: {
3765
3765
  immediate: !0,
3766
3766
  handler(e, t) {
3767
- U.isFixed = e ? this.isFixedSidebar : !0, e && !U.isFixed ? t === void 0 ? U.setLeft(!0) : U.useSavedLeftState() : U.showLeft = !1;
3767
+ W.isFixed = e ? this.isFixedSidebar : !0, e && !W.isFixed ? t === void 0 ? W.setLeft(!0) : W.useSavedLeftState() : W.showLeft = !1;
3768
3768
  }
3769
3769
  },
3770
3770
  isFixedSidebar: {
3771
3771
  immediate: !0,
3772
3772
  handler(e) {
3773
- U.isFixed = e, U.showLeft = !e;
3773
+ W.isFixed = e, W.showLeft = !e;
3774
3774
  }
3775
3775
  },
3776
3776
  currency(e) {
@@ -3793,7 +3793,7 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
3793
3793
  await Promise.all(
3794
3794
  (e || []).map(async ({ service: t, type: n, typeId: s }) => {
3795
3795
  if (n && s && t && this.$store.getters["settings/isAuthenticatedCRM"](t)) {
3796
- const { data: i } = await ee.getFields(
3796
+ const { data: i } = await ie.getFields(
3797
3797
  t,
3798
3798
  { type: n, typeId: s, populated: !0 }
3799
3799
  );
@@ -3828,14 +3828,14 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
3828
3828
  });
3829
3829
  },
3830
3830
  async onBlockRemove(e, t) {
3831
- if (ae([this.nestedReadLayout[t]]).forEach((s) => {
3831
+ if (ue([this.nestedReadLayout[t]]).forEach((s) => {
3832
3832
  const i = this.readLayout.findIndex((o) => o.nodeId === s.nodeId);
3833
3833
  this.removeFormValue(`template.views.read.nodes[${i}]`);
3834
3834
  }), await this.$nextTick(), e.itemId.startsWith("packageGroup")) {
3835
3835
  const s = e.itemId.split("-")[1];
3836
3836
  this.removePackageGroup(s);
3837
3837
  } else
3838
- Ke(e, (i) => {
3838
+ Qe(e, (i) => {
3839
3839
  i.value && Object.values(i.value).forEach((o) => {
3840
3840
  this.removeFormKeyValue(`${o}`);
3841
3841
  let r = o.replace(
@@ -3854,46 +3854,46 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
3854
3854
  Array.isArray(t.packages) && t.packages.forEach((s) => {
3855
3855
  this.setFormValue({
3856
3856
  key: "articles",
3857
- value: V(this._document, "_doc.articles", []).filter(
3857
+ value: B(this._document, "_doc.articles", []).filter(
3858
3858
  ({ packageId: i }) => i !== s.packageId
3859
3859
  )
3860
3860
  });
3861
3861
  });
3862
3862
  const n = Object.assign(
3863
3863
  {},
3864
- V(this._document, "_doc.data.packageGroups")
3864
+ B(this._document, "_doc.data.packageGroups")
3865
3865
  );
3866
- delete n[e], this.setFormValue({ key: "data.packageGroups", value: n }), Object.keys(V(this._document, "_doc.data.packageGroups", {})).length || this.removeFormValue(
3866
+ delete n[e], this.setFormValue({ key: "data.packageGroups", value: n }), Object.keys(B(this._document, "_doc.data.packageGroups", {})).length || this.removeFormValue(
3867
3867
  "template.validationSchema.properties.data.properties.packageGroups"
3868
3868
  );
3869
3869
  },
3870
3870
  onBlockListChange(e, { removedIndex: t, addedIndex: n, payload: s }) {
3871
3871
  if (t !== null && n !== null) {
3872
3872
  if (t === n) return;
3873
- const i = ut(
3873
+ const i = mt(
3874
3874
  this.nestedReadLayout,
3875
3875
  t,
3876
3876
  n
3877
3877
  );
3878
3878
  this.setFormValue({
3879
3879
  key: "template.views.read.nodes",
3880
- value: ae(i)
3880
+ value: ue(i)
3881
3881
  });
3882
3882
  } else if (!t && n !== null) {
3883
- const { sectionKey: i, createNewSection: o, addValidation: r, contentData: g } = s, { readView: h, validation: b, data: w } = o({
3883
+ const { sectionKey: i, createNewSection: o, addValidation: r, contentData: g } = s, { readView: h, validation: b, data: k } = o({
3884
3884
  sectionKey: i,
3885
3885
  document: this._document,
3886
3886
  contentData: g
3887
3887
  });
3888
- r({ validation: b, data: w });
3889
- const k = mt({ tree: h }), S = [
3888
+ r({ validation: b, data: k });
3889
+ const w = pt({ tree: h }), T = [
3890
3890
  ...this.nestedReadLayout.slice(0, n),
3891
- ...k,
3891
+ ...w,
3892
3892
  ...this.nestedReadLayout.slice(n)
3893
3893
  ];
3894
3894
  this.setFormValue({
3895
3895
  key: "template.views.read.nodes",
3896
- value: ae(S)
3896
+ value: ue(T)
3897
3897
  });
3898
3898
  }
3899
3899
  },
@@ -3910,9 +3910,9 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
3910
3910
  class: "drag-drop-empty-list is-placeholder text-gray-400"
3911
3911
  }, ns = ["innerHTML"];
3912
3912
  function is(e, t, n, s, i, o) {
3913
- const r = m("CButton"), g = m("DocumentFormViewRadio"), h = m("CIcon"), b = m("DocumentFormNav"), w = m("DocumentFormMenu"), k = m("DynamicChapter"), S = m("DynamicBlock"), D = m("LogoBanner"), y = m("IsPremium"), f = m("DocumentStyleContainer"), x = m("WithDimensions"), _ = m("portal-target"), A = m("DocumentDrawer");
3914
- return a(), p("div", Qo, [
3915
- l("div", {
3913
+ const r = m("CButton"), g = m("DocumentFormViewRadio"), h = m("CIcon"), b = m("DocumentFormNav"), k = m("DocumentFormMenu"), w = m("DynamicChapter"), T = m("DynamicBlock"), D = m("LogoBanner"), y = m("IsPremium"), f = m("DocumentStyleContainer"), x = m("WithDimensions"), I = m("portal-target"), F = m("DocumentDrawer");
3914
+ return l(), p("div", Qo, [
3915
+ a("div", {
3916
3916
  class: L([{
3917
3917
  "is-edit-view": o.isEditView,
3918
3918
  "is-empty-list": !o.nestedReadLayout.length
@@ -3920,8 +3920,8 @@ function is(e, t, n, s, i, o) {
3920
3920
  }, [
3921
3921
  c(b, { close: n.close }, {
3922
3922
  left: u(() => [
3923
- l("div", Yo, [
3924
- n.close ? (a(), C(r, {
3923
+ a("div", Yo, [
3924
+ n.close ? (l(), C(r, {
3925
3925
  key: 0,
3926
3926
  "icon-props": { size: 20 },
3927
3927
  size: "normal",
@@ -3931,7 +3931,7 @@ function is(e, t, n, s, i, o) {
3931
3931
  pattern: "tertiary",
3932
3932
  onClick: n.close
3933
3933
  }, null, 8, ["onClick"])) : v("", !0),
3934
- n.goBack && e.mq !== "sm" ? (a(), C(r, {
3934
+ n.goBack && e.mq !== "sm" ? (l(), C(r, {
3935
3935
  key: 1,
3936
3936
  "icon-props": { size: 20 },
3937
3937
  type: "none",
@@ -3949,35 +3949,35 @@ function is(e, t, n, s, i, o) {
3949
3949
  class: "max-sm:hidden",
3950
3950
  thinner: "",
3951
3951
  icon: "sidebar",
3952
- onClick: q(i.drawerState.toggleLeft, ["stop"])
3952
+ onClick: Z(i.drawerState.toggleLeft, ["stop"])
3953
3953
  }, null, 8, ["onClick"]),
3954
- M(e.$slots, "nav-left", {}, void 0, !0)
3954
+ P(e.$slots, "nav-left", {}, void 0, !0)
3955
3955
  ])
3956
3956
  ]),
3957
3957
  center: u(() => [
3958
- l("div", Jo, [
3958
+ a("div", Jo, [
3959
3959
  N(c(g, {
3960
3960
  small: e.mq === "sm",
3961
3961
  "model-value": n.view,
3962
- "onUpdate:modelValue": t[0] || (t[0] = (z) => e.$emit("update:view", z))
3962
+ "onUpdate:modelValue": t[0] || (t[0] = (E) => e.$emit("update:view", E))
3963
3963
  }, null, 8, ["small", "model-value"]), [
3964
- [he, o.nestedReadLayout.length]
3964
+ [ve, o.nestedReadLayout.length]
3965
3965
  ]),
3966
- !o.isEditView && !["sm", "md", "lg"].includes(e.mq) ? (a(), p("div", Xo, [
3967
- (a(), p(I, null, P(["desktop", "tablet", "mobile"], (z) => l("div", {
3968
- key: z,
3969
- style: E(
3970
- i.previewDevice === z && {
3966
+ !o.isEditView && !["sm", "md", "lg"].includes(e.mq) ? (l(), p("div", Xo, [
3967
+ (l(), p(S, null, A(["desktop", "tablet", "mobile"], (E) => a("div", {
3968
+ key: E,
3969
+ style: R(
3970
+ i.previewDevice === E && {
3971
3971
  boxShadow: "0 1px 1px rgba(0, 0, 0, 0.2)",
3972
3972
  backgroundColor: "hsl(0, 0%, 100%)",
3973
3973
  color: "hsl(0, 0%, 7%)"
3974
3974
  }
3975
3975
  ),
3976
3976
  class: "pointer inline-flex select-none items-center justify-center rounded-md p-[10px] font-semibold text-gray-700 transition duration-150 ease-linear",
3977
- onClick: (X) => i.previewDevice = z
3977
+ onClick: (ne) => i.previewDevice = E
3978
3978
  }, [
3979
3979
  c(h, {
3980
- type: z,
3980
+ type: E,
3981
3981
  size: "20"
3982
3982
  }, null, 8, ["type"])
3983
3983
  ], 12, es)), 64))
@@ -3985,11 +3985,11 @@ function is(e, t, n, s, i, o) {
3985
3985
  ])
3986
3986
  ]),
3987
3987
  right: u(() => [
3988
- M(e.$slots, "nav-right", {}, void 0, !0)
3988
+ P(e.$slots, "nav-right", {}, void 0, !0)
3989
3989
  ]),
3990
3990
  _: 3
3991
3991
  }, 8, ["close"]),
3992
- N(c(w, {
3992
+ N(c(k, {
3993
3993
  state: n._document,
3994
3994
  set: n.setFormValue,
3995
3995
  "remove-value": n.removeFormValue,
@@ -3998,22 +3998,22 @@ function is(e, t, n, s, i, o) {
3998
3998
  "can-use-blocks": o.isTemplateEditable,
3999
3999
  "is-legacy-template": o.isLegacyTemplate,
4000
4000
  width: i.sidebarWidth,
4001
- onClose: t[1] || (t[1] = (z) => i.drawerState.showLeft = !1)
4001
+ onClose: t[1] || (t[1] = (E) => i.drawerState.showLeft = !1)
4002
4002
  }, null, 8, ["state", "set", "remove-value", "template", "fixed", "can-use-blocks", "is-legacy-template", "width"]), [
4003
- [he, i.drawerState.showLeft]
4003
+ [ve, i.drawerState.showLeft]
4004
4004
  ]),
4005
- l("div", {
4005
+ a("div", {
4006
4006
  ref: "scroll-body",
4007
4007
  class: L([{
4008
4008
  "device-offset": o.isEditView
4009
4009
  }, "doc-scroll-container flex w-full justify-center"]),
4010
- style: E(
4010
+ style: R(
4011
4011
  i.drawerState.showLeft && !i.drawerState.isFixed && {
4012
4012
  marginLeft: `${i.sidebarWidth}px`
4013
4013
  }
4014
4014
  )
4015
4015
  }, [
4016
- l("div", {
4016
+ a("div", {
4017
4017
  class: L([[
4018
4018
  {
4019
4019
  "is-device-edit": o.isEditView,
@@ -4023,26 +4023,26 @@ function is(e, t, n, s, i, o) {
4023
4023
  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%]"
4024
4024
  ], "list-container"])
4025
4025
  }, [
4026
- !o.nestedReadLayout.length && !o.isFixedSidebar ? (a(), p("div", ts, [
4027
- t[8] || (t[8] = pt('<div style="position:relative;" data-v-b1290feb><div class="drag-drop-illustration-block" data-v-b1290feb><div data-v-b1290feb></div><div data-v-b1290feb></div></div><svg class="drag-drop-illustration" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" data-v-b1290feb><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-b1290feb></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-b1290feb></path></svg></div>', 1)),
4028
- l("div", {
4026
+ !o.nestedReadLayout.length && !o.isFixedSidebar ? (l(), p("div", ts, [
4027
+ t[8] || (t[8] = ht('<div style="position:relative;" data-v-b1290feb><div class="drag-drop-illustration-block" data-v-b1290feb><div data-v-b1290feb></div><div data-v-b1290feb></div></div><svg class="drag-drop-illustration" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" data-v-b1290feb><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-b1290feb></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-b1290feb></path></svg></div>', 1)),
4028
+ a("div", {
4029
4029
  class: "text-center",
4030
4030
  style: { "max-width": "22ch" },
4031
4031
  innerHTML: e.$t("emptyBlockPlaceholderLarge")
4032
4032
  }, null, 8, ns)
4033
4033
  ])) : v("", !0),
4034
- (a(), C(G(o.isEditView ? "div" : "simplebar"), { class: "h-full w-full" }, {
4034
+ (l(), C(j(o.isEditView ? "div" : "simplebar"), { class: "h-full w-full" }, {
4035
4035
  default: u(() => [
4036
4036
  c(x, { "provide-device": !0 }, {
4037
4037
  default: u(() => {
4038
- var z, X;
4038
+ var E, ne;
4039
4039
  return [
4040
4040
  c(f, {
4041
4041
  class: "relative h-full w-full",
4042
- "input-style": ((X = (z = n._document) == null ? void 0 : z.data) == null ? void 0 : X.css) || null
4042
+ "input-style": ((ne = (E = n._document) == null ? void 0 : E.data) == null ? void 0 : ne.css) || null
4043
4043
  }, {
4044
4044
  default: u(() => [
4045
- o.nestedReadLayout ? (a(), C(G(o.dndEnabled ? "DragList" : "div"), {
4045
+ o.nestedReadLayout ? (l(), C(j(o.dndEnabled ? "DragList" : "div"), {
4046
4046
  key: 0,
4047
4047
  handle: ".NO-SELECTOR",
4048
4048
  "drop-placeholder": { className: "drag-drop-placeholder" },
@@ -4054,15 +4054,15 @@ function is(e, t, n, s, i, o) {
4054
4054
  "group-name": "document-blocks",
4055
4055
  "non-drag-area-selector": ".no-drag",
4056
4056
  "drag-handle-selector": ".drag-item",
4057
- onDragStart: t[3] || (t[3] = ($) => i.isDragging = !0),
4058
- onDragEnd: t[4] || (t[4] = ($) => i.isDragging = !1),
4059
- onDrop: t[5] || (t[5] = ($) => o.onBlockListChange("blocks-list", $))
4057
+ onDragStart: t[3] || (t[3] = (V) => i.isDragging = !0),
4058
+ onDragEnd: t[4] || (t[4] = (V) => i.isDragging = !1),
4059
+ onDrop: t[5] || (t[5] = (V) => o.onBlockListChange("blocks-list", V))
4060
4060
  }, {
4061
4061
  default: u(() => [
4062
- (a(!0), p(I, null, P(n._document.getReadLayout({
4062
+ (l(!0), p(S, null, A(n._document.getReadLayout({
4063
4063
  showHiddenNodes: o.isEditView
4064
- }), ($, ie) => (a(), C(G(o.dndEnabled ? "DragItem" : "div"), {
4065
- key: $.nodeId,
4064
+ }), (V, z) => (l(), C(j(o.dndEnabled ? "DragItem" : "div"), {
4065
+ key: V.nodeId,
4066
4066
  class: L([
4067
4067
  {
4068
4068
  "drag-item": o.dndEnabled
@@ -4070,34 +4070,34 @@ function is(e, t, n, s, i, o) {
4070
4070
  ])
4071
4071
  }, {
4072
4072
  default: u(() => [
4073
- c(S, {
4073
+ c(T, {
4074
4074
  ref_for: !0,
4075
- ref: $.nodeId,
4075
+ ref: V.nodeId,
4076
4076
  "is-dragging": i.isDragging,
4077
4077
  "is-edit-view": o.isEditView,
4078
4078
  "can-move": o.canMove,
4079
- "block-type": $.itemType,
4080
- "is-visible": $.isVisible,
4081
- "show-edit-button": !!$.showEditButton,
4082
- onRemove: (R) => o.onBlockRemove($, ie),
4083
- onMove: (R) => o.onBlockMove(R, ie),
4084
- onEdit: t[2] || (t[2] = (R) => i.drawerState.openSection = R),
4085
- onToggleVisible: (R) => o.onBlockToggleVisible($, R)
4079
+ "block-type": V.itemType,
4080
+ "is-visible": V.isVisible,
4081
+ "show-edit-button": !!V.showEditButton,
4082
+ onRemove: (O) => o.onBlockRemove(V, z),
4083
+ onMove: (O) => o.onBlockMove(O, z),
4084
+ onEdit: t[2] || (t[2] = (O) => i.drawerState.openSection = O),
4085
+ onToggleVisible: (O) => o.onBlockToggleVisible(V, O)
4086
4086
  }, {
4087
4087
  default: u(() => [
4088
- c(k, {
4089
- "component-name": $.componentName,
4088
+ c(w, {
4089
+ "component-name": V.componentName,
4090
4090
  "component-props": {
4091
- ...$.props,
4091
+ ...V.props,
4092
4092
  _document: n._document,
4093
- _value: $.value,
4094
- _nodeId: $.nodeId
4093
+ _value: V.value,
4094
+ _nodeId: V.nodeId
4095
4095
  },
4096
- children: $.children,
4097
- "is-visible": $.isVisible,
4098
- "on-input": ({ key: R, value: Je, options: Xe }) => n.setFormValue({ key: R, value: Je, options: Xe }),
4099
- "on-remove": ({ key: R }) => n.removeFormValue(R),
4100
- "on-mount": (R) => o.onAddBlockMount($.nodeId, R)
4096
+ children: V.children,
4097
+ "is-visible": V.isVisible,
4098
+ "on-input": ({ key: O, value: Xe, options: et }) => n.setFormValue({ key: O, value: Xe, options: et }),
4099
+ "on-remove": ({ key: O }) => n.removeFormValue(O),
4100
+ "on-mount": (O) => o.onAddBlockMount(V.nodeId, O)
4101
4101
  }, null, 8, ["component-name", "component-props", "children", "is-visible", "on-input", "on-remove", "on-mount"])
4102
4102
  ]),
4103
4103
  _: 2
@@ -4108,9 +4108,9 @@ function is(e, t, n, s, i, o) {
4108
4108
  ]),
4109
4109
  _: 1
4110
4110
  }, 40, ["should-animate-drop"])) : v("", !0),
4111
- n.canShowBanner ? (a(), C(y, { key: 1 }, {
4112
- default: u(({ isProLike: $ }) => [
4113
- !o.isEditView && !$ ? (a(), C(D, {
4111
+ n.canShowBanner ? (l(), C(y, { key: 1 }, {
4112
+ default: u(({ isProLike: V }) => [
4113
+ !o.isEditView && !V ? (l(), C(D, {
4114
4114
  key: 0,
4115
4115
  position: "sticky"
4116
4116
  })) : v("", !0)
@@ -4129,13 +4129,13 @@ function is(e, t, n, s, i, o) {
4129
4129
  }))
4130
4130
  ], 2)
4131
4131
  ], 6),
4132
- (a(), C(A, {
4132
+ (l(), C(F, {
4133
4133
  id: "settingsDrawer",
4134
4134
  key: "settingsDrawer",
4135
4135
  open: !!i.drawerState.openSection,
4136
4136
  fixed: !0,
4137
4137
  position: "right",
4138
- "onUpdate:open": t[7] || (t[7] = (z) => i.drawerState.openSection = null)
4138
+ "onUpdate:open": t[7] || (t[7] = (E) => i.drawerState.openSection = null)
4139
4139
  }, {
4140
4140
  default: u(() => [
4141
4141
  c(r, {
@@ -4146,16 +4146,16 @@ function is(e, t, n, s, i, o) {
4146
4146
  type: "none",
4147
4147
  pattern: "tertiary",
4148
4148
  class: "absolute right-2 top-2",
4149
- onClick: t[6] || (t[6] = (z) => i.drawerState.openSection = null)
4149
+ onClick: t[6] || (t[6] = (E) => i.drawerState.openSection = null)
4150
4150
  }),
4151
- c(_, { name: "drawer-content" })
4151
+ c(I, { name: "drawer-content" })
4152
4152
  ]),
4153
4153
  _: 1
4154
4154
  }, 8, ["open"]))
4155
4155
  ], 2)
4156
4156
  ]);
4157
4157
  }
4158
- const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-b1290feb"]]), ss = {
4158
+ const os = /* @__PURE__ */ $(Ko, [["render", is], ["__scopeId", "data-v-b1290feb"]]), ss = {
4159
4159
  name: "DocumentSend",
4160
4160
  i18nOptions: {
4161
4161
  namespaces: "documentSend",
@@ -4185,21 +4185,21 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-b1290feb
4185
4185
  }
4186
4186
  },
4187
4187
  components: {
4188
- Drawer: je,
4188
+ Drawer: Ze,
4189
4189
  SendForm: Xt,
4190
4190
  CCheckbox: Re,
4191
- CIcon: ht,
4192
- CButton: ft,
4193
- ProBadge: Ne,
4194
- IsPremium: J,
4195
- IsPremiumPreStep: Y
4191
+ CIcon: ft,
4192
+ CButton: Oe,
4193
+ ProBadge: We,
4194
+ IsPremium: te,
4195
+ IsPremiumPreStep: ee
4196
4196
  },
4197
4197
  mixins: [
4198
- ne([], {
4198
+ ae([], {
4199
4199
  useEmit: !1,
4200
4200
  setFnName: "setFormValue"
4201
4201
  }),
4202
- Z
4202
+ Y
4203
4203
  ],
4204
4204
  props: {
4205
4205
  setFormValue: {
@@ -4216,7 +4216,7 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-b1290feb
4216
4216
  }
4217
4217
  },
4218
4218
  setup(e) {
4219
- const { addBlock: t } = Ge({
4219
+ const { addBlock: t } = Ne({
4220
4220
  setter: e.setFormValue
4221
4221
  });
4222
4222
  return { addBlock: t };
@@ -4238,7 +4238,7 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-b1290feb
4238
4238
  };
4239
4239
  },
4240
4240
  computed: {
4241
- ...O({
4241
+ ...H({
4242
4242
  accountConfigName: "application/accountConfigName"
4243
4243
  }),
4244
4244
  isOffertaCxt() {
@@ -4254,10 +4254,10 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-b1290feb
4254
4254
  return !!(this.viewSettings && this.viewSettings.isPublicForm);
4255
4255
  },
4256
4256
  hasAnswerBlock() {
4257
- return (V(this._document, "template.views.read.nodes") || []).some((t) => t.itemType === "answer");
4257
+ return (B(this._document, "template.views.read.nodes") || []).some((t) => t.itemType === "answer");
4258
4258
  },
4259
4259
  tooManyClients() {
4260
- return (V(this._document, "clients") || []).length > 15;
4260
+ return (B(this._document, "clients") || []).length > 15;
4261
4261
  }
4262
4262
  },
4263
4263
  watch: {
@@ -4271,8 +4271,8 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-b1290feb
4271
4271
  !this.isPublicForm && this.$fab && (this.$fab.show = !0);
4272
4272
  },
4273
4273
  methods: {
4274
- ...W({
4275
- createTemplate: B.DO_CREATE_TEMPLATE
4274
+ ...K({
4275
+ createTemplate: M.DO_CREATE_TEMPLATE
4276
4276
  }),
4277
4277
  open() {
4278
4278
  this.isOpen = !0;
@@ -4281,7 +4281,7 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-b1290feb
4281
4281
  if (!this._document) return;
4282
4282
  const e = {
4283
4283
  ...this._document.copyTemplateDocDefault(),
4284
- name: V(this._document, "name") || this.$t("_common:untitled"),
4284
+ name: B(this._document, "name") || this.$t("_common:untitled"),
4285
4285
  _id: void 0,
4286
4286
  id: void 0,
4287
4287
  isVisible: !0
@@ -4299,10 +4299,10 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-b1290feb
4299
4299
  }));
4300
4300
  }
4301
4301
  }
4302
- }, ls = {
4302
+ }, as = {
4303
4303
  key: "1",
4304
4304
  class: "mb-8 flex rounded-lg border border-red-200 bg-red-50 p-3"
4305
- }, as = { class: "pl-2" }, rs = ["textContent"], ds = { class: "text-sm text-red-600 text-opacity-80" }, cs = {
4305
+ }, ls = { class: "pl-2" }, rs = ["textContent"], ds = { class: "text-sm text-red-600 text-opacity-80" }, cs = {
4306
4306
  key: "2",
4307
4307
  class: "mb-8 flex rounded-lg border border-red-200 bg-red-50 p-3"
4308
4308
  }, us = { class: "pl-2" }, ms = ["textContent"], ps = { class: "mb-4 text-sm text-red-600 text-opacity-80" }, hs = {
@@ -4310,15 +4310,15 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-b1290feb
4310
4310
  class: "inline-flex cursor-pointer select-none items-center py-2 text-[12px] font-[500] text-gray-600"
4311
4311
  }, fs = ["onClick"], gs = { style: { "padding-left": "0.5em" } };
4312
4312
  function ys(e, t, n, s, i, o) {
4313
- const r = m("CButton"), g = m("CIcon"), h = m("CCheckbox"), b = m("ProBadge"), w = m("IsPremiumPreStep"), k = m("IsPremium"), S = m("SendForm"), D = le("tooltip");
4314
- return e.mq !== "sm" || i.isOpen ? (a(), C(G(e.mq === "sm" ? "div" : "Drawer"), {
4313
+ const r = m("CButton"), g = m("CIcon"), h = m("CCheckbox"), b = m("ProBadge"), k = m("IsPremiumPreStep"), w = m("IsPremium"), T = m("SendForm"), D = se("tooltip");
4314
+ return e.mq !== "sm" || i.isOpen ? (l(), C(j(e.mq === "sm" ? "div" : "Drawer"), {
4315
4315
  key: 0,
4316
4316
  modelValue: i.isOpen,
4317
4317
  "onUpdate:modelValue": t[3] || (t[3] = (y) => i.isOpen = y),
4318
4318
  placement: "right"
4319
4319
  }, {
4320
4320
  default: u(() => [
4321
- l("div", {
4321
+ a("div", {
4322
4322
  class: L([{
4323
4323
  "is-fullscreen": e.mq === "sm"
4324
4324
  }, "send-modal font-inter"])
@@ -4330,7 +4330,7 @@ function ys(e, t, n, s, i, o) {
4330
4330
  style: { position: "absolute", right: "1em", top: "1em", "z-index": "99" },
4331
4331
  onClick: t[0] || (t[0] = (y) => i.isOpen = !1)
4332
4332
  }),
4333
- c(S, {
4333
+ c(T, {
4334
4334
  _document: e._document,
4335
4335
  _value: e._value,
4336
4336
  "set-form-value": n.setFormValue,
@@ -4339,7 +4339,7 @@ function ys(e, t, n, s, i, o) {
4339
4339
  "use-scroll": ""
4340
4340
  }, {
4341
4341
  send: u(() => [
4342
- o.isPublicForm ? (a(), C(r, {
4342
+ o.isPublicForm ? (l(), C(r, {
4343
4343
  key: 0,
4344
4344
  type: "secondary",
4345
4345
  wide: "",
@@ -4347,18 +4347,18 @@ function ys(e, t, n, s, i, o) {
4347
4347
  onClick: n.onSaveDocument
4348
4348
  }, {
4349
4349
  default: u(() => [
4350
- T(d(e.$t("signupToSend")), 1)
4350
+ _(d(e.$t("signupToSend")), 1)
4351
4351
  ]),
4352
4352
  _: 1
4353
4353
  }, 8, ["onClick"])) : v("", !0)
4354
4354
  ]),
4355
4355
  [o.saveTemplateSlot]: u(() => [
4356
- l("label", hs, [
4357
- c(k, null, {
4356
+ a("label", hs, [
4357
+ c(w, null, {
4358
4358
  default: u(({ canCreateTemplate: y }) => [
4359
- c(w, { feature: "saveDocTemplate" }, {
4359
+ c(k, { feature: "saveDocTemplate" }, {
4360
4360
  default: u(({ onClick: f }) => [
4361
- l("div", {
4361
+ a("div", {
4362
4362
  class: "flex items-center",
4363
4363
  onClick: (x) => o.onClickSaveAsTemplate({
4364
4364
  event: x,
@@ -4373,8 +4373,8 @@ function ys(e, t, n, s, i, o) {
4373
4373
  size: "small",
4374
4374
  type: "secondary"
4375
4375
  }, null, 8, ["modelValue"]),
4376
- l("div", gs, [
4377
- T(d(e.$t("saveDocAsTemplate")) + " ", 1),
4376
+ a("div", gs, [
4377
+ _(d(e.$t("saveDocAsTemplate")) + " ", 1),
4378
4378
  N(c(g, {
4379
4379
  type: "info",
4380
4380
  size: "15"
@@ -4382,7 +4382,7 @@ function ys(e, t, n, s, i, o) {
4382
4382
  [D, o.saveTemplateTooltip]
4383
4383
  ])
4384
4384
  ]),
4385
- y ? v("", !0) : (a(), C(b, {
4385
+ y ? v("", !0) : (l(), C(b, {
4386
4386
  key: 0,
4387
4387
  class: "ml-2 self-center"
4388
4388
  }))
@@ -4396,39 +4396,39 @@ function ys(e, t, n, s, i, o) {
4396
4396
  ])
4397
4397
  ]),
4398
4398
  default: u(() => [
4399
- o.tooManyClients ? (a(), p("div", ls, [
4400
- l("div", null, [
4399
+ o.tooManyClients ? (l(), p("div", as, [
4400
+ a("div", null, [
4401
4401
  c(g, {
4402
4402
  type: "error",
4403
4403
  size: "18",
4404
4404
  class: "-mt-1 text-red-600"
4405
4405
  })
4406
4406
  ]),
4407
- l("div", null, [
4408
- l("div", as, [
4409
- l("div", {
4407
+ a("div", null, [
4408
+ a("div", ls, [
4409
+ a("div", {
4410
4410
  class: "text-sm font-semibold text-red-600",
4411
4411
  textContent: d(e.$t("tooManyClientsTitle"))
4412
4412
  }, null, 8, rs),
4413
- l("div", ds, d(e.$t("tooManyClientsText")), 1)
4413
+ a("div", ds, d(e.$t("tooManyClientsText")), 1)
4414
4414
  ])
4415
4415
  ])
4416
4416
  ])) : v("", !0),
4417
- o.hasAnswerBlock ? v("", !0) : (a(), p("div", cs, [
4418
- l("div", null, [
4417
+ o.hasAnswerBlock ? v("", !0) : (l(), p("div", cs, [
4418
+ a("div", null, [
4419
4419
  c(g, {
4420
4420
  type: "error",
4421
4421
  size: "18",
4422
4422
  class: "-mt-1 text-red-600"
4423
4423
  })
4424
4424
  ]),
4425
- l("div", null, [
4426
- l("div", us, [
4427
- l("div", {
4425
+ a("div", null, [
4426
+ a("div", us, [
4427
+ a("div", {
4428
4428
  class: "text-sm font-semibold text-red-600",
4429
4429
  textContent: d(e.$t("signMissingTitle"))
4430
4430
  }, null, 8, ms),
4431
- l("div", ps, d(e.$t("signMissingText")), 1)
4431
+ a("div", ps, d(e.$t("signMissingText")), 1)
4432
4432
  ]),
4433
4433
  c(r, {
4434
4434
  type: "secondary",
@@ -4437,7 +4437,7 @@ function ys(e, t, n, s, i, o) {
4437
4437
  onClick: t[1] || (t[1] = (y) => s.addBlock({ sectionKey: "answer", document: e._document }))
4438
4438
  }, {
4439
4439
  default: u(() => [
4440
- T(d(e.$t("signMissingAdd")), 1)
4440
+ _(d(e.$t("signMissingAdd")), 1)
4441
4441
  ]),
4442
4442
  _: 1
4443
4443
  })
@@ -4451,7 +4451,7 @@ function ys(e, t, n, s, i, o) {
4451
4451
  _: 1
4452
4452
  }, 8, ["modelValue"])) : v("", !0);
4453
4453
  }
4454
- const vs = /* @__PURE__ */ F(ss, [["render", ys], ["__scopeId", "data-v-fde11d9e"]]), Cs = {
4454
+ const vs = /* @__PURE__ */ $(ss, [["render", ys], ["__scopeId", "data-v-fde11d9e"]]), Cs = {
4455
4455
  i18nOptions: {
4456
4456
  namespaces: "DocumentTemplateFormModal",
4457
4457
  messages: {
@@ -4483,7 +4483,7 @@ const vs = /* @__PURE__ */ F(ss, [["render", ys], ["__scopeId", "data-v-fde11d9e
4483
4483
  components: {
4484
4484
  CCallout: tn,
4485
4485
  CCheckbox: Re,
4486
- CField: ke
4486
+ CField: _e
4487
4487
  },
4488
4488
  emits: ["close"],
4489
4489
  props: {
@@ -4506,7 +4506,7 @@ const vs = /* @__PURE__ */ F(ss, [["render", ys], ["__scopeId", "data-v-fde11d9e
4506
4506
  },
4507
4507
  setup() {
4508
4508
  return {
4509
- v$: We()
4509
+ v$: je()
4510
4510
  };
4511
4511
  },
4512
4512
  data() {
@@ -4525,7 +4525,7 @@ const vs = /* @__PURE__ */ F(ss, [["render", ys], ["__scopeId", "data-v-fde11d9e
4525
4525
  };
4526
4526
  },
4527
4527
  computed: {
4528
- ...O({
4528
+ ...H({
4529
4529
  isPosting: "templates/isPosting",
4530
4530
  templateById: "templates/byId",
4531
4531
  docById: "documents2/byId",
@@ -4553,10 +4553,10 @@ const vs = /* @__PURE__ */ F(ss, [["render", ys], ["__scopeId", "data-v-fde11d9e
4553
4553
  this.$refs.input && this.$refs.input.focus();
4554
4554
  },
4555
4555
  methods: {
4556
- ...W({
4557
- loadTemplate: B.DO_LOAD_TEMPLATE,
4558
- saveTemplate: B.SAVE_TEMPLATE_FORM,
4559
- updateSettings: B.UPDATE_SETTINGS
4556
+ ...K({
4557
+ loadTemplate: M.DO_LOAD_TEMPLATE,
4558
+ saveTemplate: M.SAVE_TEMPLATE_FORM,
4559
+ updateSettings: M.UPDATE_SETTINGS
4560
4560
  }),
4561
4561
  async onSave() {
4562
4562
  if (!this.document && !this.template && (gt.error('Missing prop "document" or "template"'), this.$emit("close")), this.v$.$invalid) return;
@@ -4611,13 +4611,13 @@ const vs = /* @__PURE__ */ F(ss, [["render", ys], ["__scopeId", "data-v-fde11d9e
4611
4611
  }
4612
4612
  }, bs = { class: "t-root font-inter" }, ks = { style: { "font-size": "18px", "font-weight": "700", "text-align": "center", "margin-bottom": "1em" } }, ws = { key: 1 }, _s = { class: "text-gray-600" }, xs = { key: 2 }, Ts = { class: "text-gray-600" };
4613
4613
  function Ds(e, t, n, s, i, o) {
4614
- const r = m("CCallout"), g = m("CInput"), h = m("CField"), b = m("CCheckbox"), w = m("CButton");
4615
- return a(), p("div", bs, [
4616
- l("div", ks, d(n.template ? e.$t("_common:edit", { thing: e.$t("_common:name") }) : e.$t("_common:save", { thing: e.$t("_common:template") })), 1),
4617
- l("div", null, [
4618
- n.template ? v("", !0) : (a(), C(r, { key: 0 }, {
4614
+ const r = m("CCallout"), g = m("CInput"), h = m("CField"), b = m("CCheckbox"), k = m("CButton");
4615
+ return l(), p("div", bs, [
4616
+ a("div", ks, d(n.template ? e.$t("_common:edit", { thing: e.$t("_common:name") }) : e.$t("_common:save", { thing: e.$t("_common:template") })), 1),
4617
+ a("div", null, [
4618
+ n.template ? v("", !0) : (l(), C(r, { key: 0 }, {
4619
4619
  default: u(() => [
4620
- T(d(e.$t("calloutDescription")), 1)
4620
+ _(d(e.$t("calloutDescription")), 1)
4621
4621
  ]),
4622
4622
  _: 1
4623
4623
  })),
@@ -4636,22 +4636,22 @@ function Ds(e, t, n, s, i, o) {
4636
4636
  size: "medium",
4637
4637
  class: "rounder",
4638
4638
  style: { "margin-bottom": "calc(1 * var(--rem))" },
4639
- "onUpdate:modelValue": t[0] || (t[0] = (k) => i.name = k)
4639
+ "onUpdate:modelValue": t[0] || (t[0] = (w) => i.name = w)
4640
4640
  }, null, 8, ["model-value", "placeholder", "disabled"])
4641
4641
  ]),
4642
4642
  _: 1
4643
4643
  }, 8, ["vuelidate", "vuelidate-messages", "label"]),
4644
- n.document && n.document.template.id && i.canUpdateExistingDocTemplate ? (a(), p("div", ws, [
4644
+ n.document && n.document.template.id && i.canUpdateExistingDocTemplate ? (l(), p("div", ws, [
4645
4645
  c(h, { style: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, {
4646
4646
  default: u(() => [
4647
4647
  c(b, {
4648
4648
  modelValue: i.updateExistingDocTemplate,
4649
- "onUpdate:modelValue": t[1] || (t[1] = (k) => i.updateExistingDocTemplate = k),
4649
+ "onUpdate:modelValue": t[1] || (t[1] = (w) => i.updateExistingDocTemplate = w),
4650
4650
  type: "secondary",
4651
4651
  size: "normal"
4652
4652
  }, {
4653
4653
  default: u(() => [
4654
- l("div", _s, d(e.$t("updateExisting")), 1)
4654
+ a("div", _s, d(e.$t("updateExisting")), 1)
4655
4655
  ]),
4656
4656
  _: 1
4657
4657
  }, 8, ["modelValue"])
@@ -4659,17 +4659,17 @@ function Ds(e, t, n, s, i, o) {
4659
4659
  _: 1
4660
4660
  })
4661
4661
  ])) : v("", !0),
4662
- n.document && n.document.clients.length && n.showKeepClientsOption ? (a(), p("div", xs, [
4662
+ n.document && n.document.clients.length && n.showKeepClientsOption ? (l(), p("div", xs, [
4663
4663
  c(h, { style: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, {
4664
4664
  default: u(() => [
4665
4665
  c(b, {
4666
4666
  modelValue: i.keepClients,
4667
- "onUpdate:modelValue": t[2] || (t[2] = (k) => i.keepClients = k),
4667
+ "onUpdate:modelValue": t[2] || (t[2] = (w) => i.keepClients = w),
4668
4668
  type: "secondary",
4669
4669
  size: "normal"
4670
4670
  }, {
4671
4671
  default: u(() => [
4672
- l("div", Ts, d(e.$t("keepClients")), 1)
4672
+ a("div", Ts, d(e.$t("keepClients")), 1)
4673
4673
  ]),
4674
4674
  _: 1
4675
4675
  }, 8, ["modelValue"])
@@ -4678,7 +4678,7 @@ function Ds(e, t, n, s, i, o) {
4678
4678
  })
4679
4679
  ])) : v("", !0)
4680
4680
  ]),
4681
- c(w, {
4681
+ c(k, {
4682
4682
  loading: e.isPosting,
4683
4683
  type: "secondary",
4684
4684
  wide: "",
@@ -4687,36 +4687,36 @@ function Ds(e, t, n, s, i, o) {
4687
4687
  onClick: o.onSave
4688
4688
  }, {
4689
4689
  default: u(() => [
4690
- T(d(o.actionButtonText), 1)
4690
+ _(d(o.actionButtonText), 1)
4691
4691
  ]),
4692
4692
  _: 1
4693
4693
  }, 8, ["loading", "onClick"])
4694
4694
  ]);
4695
4695
  }
4696
- const Qe = /* @__PURE__ */ F(Cs, [["render", Ds], ["__scopeId", "data-v-54a3575d"]]);
4697
- var re, Fe;
4696
+ const Ye = /* @__PURE__ */ $(Cs, [["render", Ds], ["__scopeId", "data-v-54a3575d"]]);
4697
+ var me, Le;
4698
4698
  function Ss() {
4699
- if (Fe) return re;
4700
- Fe = 1;
4699
+ if (Le) return me;
4700
+ Le = 1;
4701
4701
  function e(t, n, s) {
4702
4702
  return t === t && (s !== void 0 && (t = t <= s ? t : s), n !== void 0 && (t = t >= n ? t : n)), t;
4703
4703
  }
4704
- return re = e, re;
4704
+ return me = e, me;
4705
4705
  }
4706
- var de, Le;
4707
- function $s() {
4708
- if (Le) return de;
4709
- Le = 1;
4706
+ var pe, Ve;
4707
+ function Is() {
4708
+ if (Ve) return pe;
4709
+ Ve = 1;
4710
4710
  var e = Ss(), t = yt();
4711
4711
  function n(s, i, o) {
4712
4712
  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);
4713
4713
  }
4714
- return de = n, de;
4714
+ return pe = n, pe;
4715
4715
  }
4716
- var Is = $s();
4717
- const Fs = /* @__PURE__ */ Oe(Is), Ls = {
4716
+ var $s = Is();
4717
+ const Fs = /* @__PURE__ */ He($s), Ls = {
4718
4718
  name: "RemainingTrialButton",
4719
- components: { IsPremium: J },
4719
+ components: { IsPremium: te },
4720
4720
  i18nOptions: {
4721
4721
  namespace: "RemainingTrialButton",
4722
4722
  messages: {
@@ -4744,45 +4744,45 @@ const Fs = /* @__PURE__ */ Oe(Is), Ls = {
4744
4744
  }
4745
4745
  }
4746
4746
  },
4747
- mixins: [Z],
4747
+ mixins: [Y],
4748
4748
  methods: {
4749
4749
  clamp: Fs
4750
4750
  }
4751
4751
  }, 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" }, Bs = { class: "text-gray-600" }, Ms = { class: "absolute bottom-1 left-2 right-2 h-[3px] rounded-full bg-gray-300 ring-1 ring-white/10" }, Ps = { class: "w-56 p-4 text-sm" }, As = { class: "font-semibold" }, Es = { class: "bg-primary-100 border-primary-200 text-primary-800 inline-flex rounded-md border px-1.5 py-[3px] text-xs leading-none" }, zs = { class: "text-sm text-gray-600" }, Rs = { 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" }, Os = { class: "mt-5" };
4752
4752
  function Hs(e, t, n, s, i, o) {
4753
- const r = m("CButton"), g = m("VDropdown"), h = m("IsPremium"), b = le("close-popper");
4754
- return a(), C(h, null, {
4753
+ const r = m("CButton"), g = m("VDropdown"), h = m("IsPremium"), b = se("close-popper");
4754
+ return l(), C(h, null, {
4755
4755
  default: u(({
4756
- accountType: w,
4757
- trialDaysLeft: k,
4758
- openUpgradeModal: S,
4756
+ accountType: k,
4757
+ trialDaysLeft: w,
4758
+ openUpgradeModal: T,
4759
4759
  initialFreePremiumDays: D
4760
4760
  }) => [
4761
- w === "trial" && e.mq !== "sm" ? (a(), C(g, {
4761
+ k === "trial" && e.mq !== "sm" ? (l(), C(g, {
4762
4762
  key: 0,
4763
4763
  "popper-class": "trial-popover"
4764
4764
  }, {
4765
4765
  popper: u(() => [
4766
- l("div", Ps, [
4767
- l("div", As, [
4768
- T(d(e.$t("title.1")) + " ", 1),
4769
- l("span", Es, d(e.$t("title.2")), 1),
4770
- T(" " + d(e.$t("title.3", { trialDaysLeft: k })) + ". ", 1)
4766
+ a("div", Ps, [
4767
+ a("div", As, [
4768
+ _(d(e.$t("title.1")) + " ", 1),
4769
+ a("span", Es, d(e.$t("title.2")), 1),
4770
+ _(" " + d(e.$t("title.3", { trialDaysLeft: w })) + ". ", 1)
4771
4771
  ]),
4772
- l("div", zs, [
4773
- T(d(e.$t("title.4")) + " ", 1),
4774
- l("span", Rs, d(e.$t("title.5")), 1),
4775
- t[0] || (t[0] = T(". "))
4772
+ a("div", zs, [
4773
+ _(d(e.$t("title.4")) + " ", 1),
4774
+ a("span", Rs, d(e.$t("title.5")), 1),
4775
+ t[0] || (t[0] = _(". "))
4776
4776
  ]),
4777
- l("div", Os, [
4778
- N((a(), C(r, {
4777
+ a("div", Os, [
4778
+ N((l(), C(r, {
4779
4779
  type: "secondary",
4780
4780
  size: "small",
4781
4781
  "icon-right": "arrow-right",
4782
- onClick: S
4782
+ onClick: T
4783
4783
  }, {
4784
4784
  default: u(() => [
4785
- T(d(e.$t("actionButton")), 1)
4785
+ _(d(e.$t("actionButton")), 1)
4786
4786
  ]),
4787
4787
  _: 2
4788
4788
  }, 1032, ["onClick"])), [
@@ -4792,12 +4792,12 @@ function Hs(e, t, n, s, i, o) {
4792
4792
  ])
4793
4793
  ]),
4794
4794
  default: u(() => [
4795
- l("div", Vs, [
4796
- l("div", Bs, d(e.$tc("_common:day", { count: k })) + " " + d(e.$t("button")), 1),
4797
- l("div", Ms, [
4798
- l("div", {
4799
- style: E({
4800
- width: o.clamp(k / D * 100, 0, 100) + "%"
4795
+ a("div", Vs, [
4796
+ a("div", Bs, d(e.$tc("_common:day", { count: w })) + " " + d(e.$t("button")), 1),
4797
+ a("div", Ms, [
4798
+ a("div", {
4799
+ style: R({
4800
+ width: o.clamp(w / D * 100, 0, 100) + "%"
4801
4801
  }),
4802
4802
  class: "to-primary-600 absolute h-full rounded-full bg-gradient-to-r from-green-500 via-emerald-500"
4803
4803
  }, null, 4)
@@ -4810,7 +4810,7 @@ function Hs(e, t, n, s, i, o) {
4810
4810
  _: 1
4811
4811
  });
4812
4812
  }
4813
- const Us = /* @__PURE__ */ F(Ls, [["render", Hs]]), oe = vt({
4813
+ const Us = /* @__PURE__ */ $(Ls, [["render", Hs]]), le = vt({
4814
4814
  canEdit: !1,
4815
4815
  isForm: !0,
4816
4816
  setFormValue: null,
@@ -4819,19 +4819,19 @@ const Us = /* @__PURE__ */ F(Ls, [["render", Hs]]), oe = vt({
4819
4819
  name: "DocumentForm",
4820
4820
  components: {
4821
4821
  DocumentFormContainer: os,
4822
- IsPremium: J,
4823
- IsPremiumPreStep: Y,
4822
+ IsPremium: te,
4823
+ IsPremiumPreStep: ee,
4824
4824
  DocumentSend: vs,
4825
4825
  RemainingTrialButton: Us,
4826
- CDropdown: fe,
4827
- CDropdownItem: ge
4826
+ CDropdown: de,
4827
+ CDropdownItem: G
4828
4828
  },
4829
4829
  setup() {
4830
4830
  const { isValid: e } = en();
4831
4831
  return { isValid: e };
4832
4832
  },
4833
- mixins: [Z],
4834
- provide: () => ({ viewSettings: oe }),
4833
+ mixins: [Y],
4834
+ provide: () => ({ viewSettings: le }),
4835
4835
  props: {
4836
4836
  document: {
4837
4837
  type: Object,
@@ -4886,14 +4886,14 @@ const Us = /* @__PURE__ */ F(Ls, [["render", Hs]]), oe = vt({
4886
4886
  },
4887
4887
  computed: {
4888
4888
  canDoActions() {
4889
- return !!V(this.document, "template.views.read.nodes", []).length;
4889
+ return !!B(this.document, "template.views.read.nodes", []).length;
4890
4890
  },
4891
4891
  canEdit() {
4892
4892
  const { document: e } = this;
4893
4893
  return this.view === "edit" && e && (e.id ? e.can("modify") : e.can("create")) && e.status !== "accepted";
4894
4894
  },
4895
4895
  doConsumeQuota() {
4896
- const e = V(this.document, "template.doConsumeDocumentQuota");
4896
+ const e = B(this.document, "template.doConsumeDocumentQuota");
4897
4897
  return typeof e == "boolean" ? e : !0;
4898
4898
  }
4899
4899
  },
@@ -4901,12 +4901,12 @@ const Us = /* @__PURE__ */ F(Ls, [["render", Hs]]), oe = vt({
4901
4901
  canEdit: {
4902
4902
  immediate: !0,
4903
4903
  handler(e) {
4904
- oe.canEdit = !!e;
4904
+ le.canEdit = !!e;
4905
4905
  }
4906
4906
  }
4907
4907
  },
4908
4908
  created() {
4909
- this.setDocValue && (oe.setFormValue = this.setDocValue), this.removeDocValue && (oe.removeFormValue = this.removeDocValue);
4909
+ this.setDocValue && (le.setFormValue = this.setDocValue), this.removeDocValue && (le.removeFormValue = this.removeDocValue);
4910
4910
  },
4911
4911
  methods: {
4912
4912
  async openSendModal() {
@@ -4919,7 +4919,7 @@ const Us = /* @__PURE__ */ F(Ls, [["render", Hs]]), oe = vt({
4919
4919
  },
4920
4920
  async saveAsTemplate() {
4921
4921
  this.document && this.$modal.show(
4922
- Qe,
4922
+ Ye,
4923
4923
  {
4924
4924
  document: this.document,
4925
4925
  onSaveTemplate: this.onSaveTemplate,
@@ -4941,9 +4941,9 @@ const Us = /* @__PURE__ */ F(Ls, [["render", Hs]]), oe = vt({
4941
4941
  class: "flex w-screen flex-col bg-white"
4942
4942
  }, Ns = { class: "flex self-center" }, Ws = { class: "buttons has-addons whitespace-nowrap" };
4943
4943
  function js(e, t, n, s, i, o) {
4944
- const r = m("CButton"), g = m("CDropdownItem"), h = m("CDropdown"), b = m("IsPremiumPreStep"), w = m("RemainingTrialButton"), k = m("IsPremium"), S = m("DocumentFormContainer"), D = m("DocumentSend");
4945
- return n.document ? (a(), p("div", Gs, [
4946
- c(S, {
4944
+ const r = m("CButton"), g = m("CDropdownItem"), h = m("CDropdown"), b = m("IsPremiumPreStep"), k = m("RemainingTrialButton"), w = m("IsPremium"), T = m("DocumentFormContainer"), D = m("DocumentSend");
4945
+ return n.document ? (l(), p("div", Gs, [
4946
+ c(T, {
4947
4947
  view: i.view,
4948
4948
  "onUpdate:view": t[0] || (t[0] = (y) => i.view = y),
4949
4949
  _document: n.document,
@@ -4955,17 +4955,17 @@ function js(e, t, n, s, i, o) {
4955
4955
  "can-show-banner": n.canShowBanner
4956
4956
  }, {
4957
4957
  "nav-right": u(() => [
4958
- c(k, null, {
4958
+ c(w, null, {
4959
4959
  default: u(({ canCreateDocument: y, canCreateTemplate: f }) => [
4960
4960
  c(b, { feature: "documents" }, {
4961
4961
  default: u(({ onClick: x }) => [
4962
- (a(), p("div", {
4962
+ (l(), p("div", {
4963
4963
  key: o.canDoActions,
4964
4964
  class: "inline-flex flex-1 justify-end space-x-5"
4965
4965
  }, [
4966
4966
  c(b, { feature: "saveDocTemplate" }, {
4967
- default: u(({ onClick: _ }) => [
4968
- l("div", Ns, [
4967
+ default: u(({ onClick: I }) => [
4968
+ a("div", Ns, [
4969
4969
  c(h, {
4970
4970
  disabled: !o.canDoActions
4971
4971
  }, {
@@ -4988,10 +4988,10 @@ function js(e, t, n, s, i, o) {
4988
4988
  c(g, {
4989
4989
  "icon-props": { stroke: "hsl(205, 100%, 50%)" },
4990
4990
  "icon-left": "save",
4991
- onClick: (A) => y || n.document.id ? o.submitSave() : x({ callback: o.submitSave })
4991
+ onClick: (F) => y || n.document.id ? o.submitSave() : x({ callback: o.submitSave })
4992
4992
  }, {
4993
4993
  default: u(() => [
4994
- T(d(e.$t("_common:save", {
4994
+ _(d(e.$t("_common:save", {
4995
4995
  thing: e.$t("_common:document").toLowerCase()
4996
4996
  })), 1)
4997
4997
  ]),
@@ -5000,12 +5000,12 @@ function js(e, t, n, s, i, o) {
5000
5000
  c(g, {
5001
5001
  disabled: n.isLoading,
5002
5002
  "icon-left": "template-color",
5003
- onClick: (A) => f ? o.saveAsTemplate() : _({
5003
+ onClick: (F) => f ? o.saveAsTemplate() : I({
5004
5004
  callback: o.saveAsTemplate
5005
5005
  })
5006
5006
  }, {
5007
5007
  default: u(() => [
5008
- T(d(e.$t("_common:saveAs", {
5008
+ _(d(e.$t("_common:saveAs", {
5009
5009
  thing: e.$t("_common:template")
5010
5010
  })), 1)
5011
5011
  ]),
@@ -5018,9 +5018,9 @@ function js(e, t, n, s, i, o) {
5018
5018
  ]),
5019
5019
  _: 2
5020
5020
  }, 1024),
5021
- M(e.$slots, "nav-right-action", {}, () => [
5022
- c(w),
5023
- l("div", Ws, [
5021
+ P(e.$slots, "nav-right-action", {}, () => [
5022
+ c(k),
5023
+ a("div", Ws, [
5024
5024
  c(r, {
5025
5025
  ref: "sendButton",
5026
5026
  disabled: !o.canDoActions,
@@ -5031,7 +5031,7 @@ function js(e, t, n, s, i, o) {
5031
5031
  type: "secondary",
5032
5032
  icon: e.mq === "sm" ? "send" : "",
5033
5033
  label: e.mq === "sm" ? "" : e.$t("_common:reviewSend"),
5034
- onClick: (_) => y || !o.doConsumeQuota || n.document.id ? o.openSendModal() : x({ callback: o.openSendModal })
5034
+ onClick: (I) => y || !o.doConsumeQuota || n.document.id ? o.openSendModal() : x({ callback: o.openSendModal })
5035
5035
  }, null, 8, ["disabled", "loading", "class", "icon", "label", "onClick"])
5036
5036
  ])
5037
5037
  ])
@@ -5062,7 +5062,97 @@ function js(e, t, n, s, i, o) {
5062
5062
  }, null, 8, ["_document", "set-form-value", "remove-form-value", "on-save-document"])
5063
5063
  ])) : v("", !0);
5064
5064
  }
5065
- const Zs = /* @__PURE__ */ F(qs, [["render", js]]), Ks = {
5065
+ const Zs = /* @__PURE__ */ $(qs, [["render", js]]), Ks = /* @__PURE__ */ ce({
5066
+ __name: "TemplateActionsDropdown",
5067
+ props: {
5068
+ template: {},
5069
+ tooltip: {}
5070
+ },
5071
+ emits: ["edit", "rename", "remove"],
5072
+ setup(e, { emit: t }) {
5073
+ const { t: n } = Ce, s = Q.baseUrl, i = e, o = t;
5074
+ function r() {
5075
+ o("edit", i.template.id);
5076
+ }
5077
+ function g() {
5078
+ o("rename", { template: i.template });
5079
+ }
5080
+ function h() {
5081
+ o("remove", { template: i.template });
5082
+ }
5083
+ async function b() {
5084
+ const k = `${s}/template/${i.template.id}`;
5085
+ await Ue(k) && we("info", n("copyMessage"));
5086
+ }
5087
+ return (k, w) => {
5088
+ const T = se("tooltip");
5089
+ return l(), C(U(de), {
5090
+ style: { top: "-8px", right: "-4px" },
5091
+ onClick: w[0] || (w[0] = Z(() => {
5092
+ }, ["stop"]))
5093
+ }, {
5094
+ trigger: u(() => [
5095
+ N(c(U(Oe), {
5096
+ icon: "more-vertical",
5097
+ type: "none",
5098
+ pattern: "tertiary",
5099
+ size: "small"
5100
+ }, null, 512), [
5101
+ [T, k.tooltip]
5102
+ ])
5103
+ ]),
5104
+ default: u(() => [
5105
+ c(U(G), {
5106
+ "icon-left": "template-color",
5107
+ onClick: r,
5108
+ "data-test": "edit-item"
5109
+ }, {
5110
+ default: u(() => [
5111
+ _(d(k.$t("_common:edit", { thing: k.$t("_common:template") })), 1)
5112
+ ]),
5113
+ _: 1
5114
+ }),
5115
+ c(U(G), {
5116
+ "icon-props": { size: 16 },
5117
+ "icon-left": "edit",
5118
+ onClick: g,
5119
+ "data-test": "rename-item"
5120
+ }, {
5121
+ default: u(() => [
5122
+ _(d(k.$t("_common:change", { thing: k.$t("_common:name") })), 1)
5123
+ ]),
5124
+ _: 1
5125
+ }),
5126
+ c(U(G), { separator: "" }),
5127
+ c(U(G), {
5128
+ "icon-props": { size: 16 },
5129
+ "icon-left": "link",
5130
+ onClick: b,
5131
+ "data-test": "copy-item"
5132
+ }, {
5133
+ default: u(() => [
5134
+ _(d(k.$t("_common:share", { thing: k.$t("_common:link") })), 1)
5135
+ ]),
5136
+ _: 1
5137
+ }),
5138
+ c(U(G), { separator: "" }),
5139
+ c(U(G), {
5140
+ "icon-props": { size: 16, stroke: "hsl(360, 100%, 60%)" },
5141
+ "icon-left": "trash",
5142
+ onClick: h,
5143
+ "data-test": "remove-item"
5144
+ }, {
5145
+ default: u(() => [
5146
+ _(d(k.$t("_common:remove")), 1)
5147
+ ]),
5148
+ _: 1
5149
+ })
5150
+ ]),
5151
+ _: 1
5152
+ });
5153
+ };
5154
+ }
5155
+ }), Qs = {
5066
5156
  name: "DocumentFormRecent",
5067
5157
  i18nOptions: {
5068
5158
  namespaces: "DocumentFormRecent",
@@ -5078,8 +5168,8 @@ const Zs = /* @__PURE__ */ F(qs, [["render", js]]), Ks = {
5078
5168
  }
5079
5169
  },
5080
5170
  components: {
5081
- IsPremium: J,
5082
- IsPremiumPreStep: Y,
5171
+ IsPremium: te,
5172
+ IsPremiumPreStep: ee,
5083
5173
  CSkeleton: nn
5084
5174
  },
5085
5175
  emits: ["save-template", "use-doc-template"],
@@ -5093,7 +5183,7 @@ const Zs = /* @__PURE__ */ F(qs, [["render", js]]), Ks = {
5093
5183
  };
5094
5184
  },
5095
5185
  computed: {
5096
- ...O({
5186
+ ...H({
5097
5187
  docById: "documents2/byId"
5098
5188
  })
5099
5189
  },
@@ -5101,8 +5191,8 @@ const Zs = /* @__PURE__ */ F(qs, [["render", js]]), Ks = {
5101
5191
  this.onLoadDocuments();
5102
5192
  },
5103
5193
  methods: {
5104
- ...W({
5105
- loadDocument: B.LOAD_DOCUMENT2
5194
+ ...K({
5195
+ loadDocument: M.LOAD_DOCUMENT2
5106
5196
  }),
5107
5197
  async onInput() {
5108
5198
  this.isLoading = !0, this.onLoadDocuments();
@@ -5137,7 +5227,7 @@ const Zs = /* @__PURE__ */ F(qs, [["render", js]]), Ks = {
5137
5227
  }), { items: i = [] } = s || {};
5138
5228
  return i;
5139
5229
  },
5140
- onLoadDocuments: Ce(async function() {
5230
+ onLoadDocuments: ke(async function() {
5141
5231
  this.isLoading = !0, this.hasItems = !0;
5142
5232
  const t = await this.fetchDocuments();
5143
5233
  (!t || !t.length) && (this.canFetchMore = !1), this.list = [...t || []], this.isLoading = !1;
@@ -5151,31 +5241,31 @@ const Zs = /* @__PURE__ */ F(qs, [["render", js]]), Ks = {
5151
5241
  return this.$emit("use-doc-template", { documentId: e });
5152
5242
  }
5153
5243
  }
5154
- }, Qs = {
5244
+ }, Ys = {
5155
5245
  class: "flex w-full",
5156
5246
  style: { "padding-bottom": "1em" }
5157
- }, Ys = { class: "recent-list" }, Js = {
5247
+ }, Js = { class: "recent-list" }, Xs = {
5158
5248
  key: 1,
5159
5249
  class: "rounded-md border border-gray-200 bg-gray-100 p-4 text-center text-gray-400",
5160
5250
  style: { "font-size": "15px" }
5161
- }, Xs = {
5251
+ }, ea = {
5162
5252
  key: 2,
5163
5253
  class: "text-center text-gray-400",
5164
5254
  style: { padding: "1em" }
5165
- }, el = ["onClick", "onMouseoverPassive"], tl = {
5255
+ }, ta = ["onClick", "onMouseoverPassive"], na = {
5166
5256
  key: 0,
5167
5257
  style: { display: "inline-flex", "align-items": "center", position: "absolute", right: "1em", top: "50%", transform: "translateY(-50%)" }
5168
5258
  };
5169
- function nl(e, t, n, s, i, o) {
5170
- const r = m("CInput"), g = m("CSkeleton"), h = m("CButton"), b = m("IsPremiumPreStep"), w = m("IsPremium");
5171
- return a(), p("div", null, [
5172
- l("div", Qs, [
5173
- M(e.$slots, "default", {}, void 0, !0),
5174
- i.hasItems ? (a(), C(r, {
5259
+ function ia(e, t, n, s, i, o) {
5260
+ const r = m("CInput"), g = m("CSkeleton"), h = m("CButton"), b = m("IsPremiumPreStep"), k = m("IsPremium");
5261
+ return l(), p("div", null, [
5262
+ a("div", Ys, [
5263
+ P(e.$slots, "default", {}, void 0, !0),
5264
+ i.hasItems ? (l(), C(r, {
5175
5265
  key: 0,
5176
5266
  modelValue: i.query,
5177
5267
  "onUpdate:modelValue": [
5178
- t[0] || (t[0] = (k) => i.query = k),
5268
+ t[0] || (t[0] = (w) => i.query = w),
5179
5269
  o.onInput
5180
5270
  ],
5181
5271
  loading: i.isLoading,
@@ -5186,9 +5276,9 @@ function nl(e, t, n, s, i, o) {
5186
5276
  class: "hidden md:flex"
5187
5277
  }, null, 8, ["modelValue", "loading", "placeholder", "onUpdate:modelValue"])) : v("", !0)
5188
5278
  ]),
5189
- l("div", Ys, [
5190
- i.isLoading && !i.list.length ? (a(), p(I, { key: 0 }, P(3, (k) => l("div", {
5191
- key: k,
5279
+ a("div", Js, [
5280
+ i.isLoading && !i.list.length ? (l(), p(S, { key: 0 }, A(3, (w) => a("div", {
5281
+ key: w,
5192
5282
  class: "recent-item placeholder"
5193
5283
  }, [
5194
5284
  c(g, {
@@ -5196,36 +5286,36 @@ function nl(e, t, n, s, i, o) {
5196
5286
  class: "recent-item-name"
5197
5287
  }),
5198
5288
  c(g, { width: "35%" })
5199
- ])), 64)) : !i.isLoading && !i.query && !i.list.length ? (a(), p("div", Js, d(e.$t("emptyPlaceholder")), 1)) : i.query && !i.isLoading && !i.list.length ? (a(), p("div", Xs, d(e.$t("noResults")), 1)) : (a(), C(w, { key: 3 }, {
5200
- default: u(({ canCreateTemplate: k, canUseTemplate: S }) => [
5289
+ ])), 64)) : !i.isLoading && !i.query && !i.list.length ? (l(), p("div", Xs, d(e.$t("emptyPlaceholder")), 1)) : i.query && !i.isLoading && !i.list.length ? (l(), p("div", ea, d(e.$t("noResults")), 1)) : (l(), C(k, { key: 3 }, {
5290
+ default: u(({ canCreateTemplate: w, canUseTemplate: T }) => [
5201
5291
  c(b, { feature: "useDocTemplate" }, {
5202
5292
  default: u(({ onClick: D }) => [
5203
- l("div", null, [
5204
- (a(!0), p(I, null, P(i.list, (y, f) => (a(), p("div", {
5293
+ a("div", null, [
5294
+ (l(!0), p(S, null, A(i.list, (y, f) => (l(), p("div", {
5205
5295
  key: y._id,
5206
5296
  class: "recent-item",
5207
- onClick: (x) => S ? o.onUseDocTemplate(y._id) : D({
5297
+ onClick: (x) => T ? o.onUseDocTemplate(y._id) : D({
5208
5298
  callback: () => o.onUseDocTemplate(y._id)
5209
5299
  }),
5210
5300
  onMouseoverPassive: (x) => i.hoverIndex = f,
5211
5301
  onMouseleavePassive: t[1] || (t[1] = (x) => i.hoverIndex = null)
5212
5302
  }, [
5213
- l("div", {
5303
+ a("div", {
5214
5304
  class: L([{ "text-gray-400": !y.data.name }, "recent-item-name"])
5215
5305
  }, d(y.data.name || e.$t("_common:untitled")), 3),
5216
- l("div", null, d(e.$formatDistanceToNow(y.createdAt)), 1),
5217
- i.hoverIndex === f ? (a(), p("div", tl, [
5306
+ a("div", null, d(e.$formatDistanceToNow(y.createdAt)), 1),
5307
+ i.hoverIndex === f ? (l(), p("div", na, [
5218
5308
  c(b, { feature: "saveDocTemplate" }, {
5219
5309
  default: u(({ onClick: x }) => [
5220
5310
  c(h, {
5221
5311
  style: { "margin-left": "1em" },
5222
5312
  size: "small",
5223
- onClick: q((_) => k ? o.onSaveDocumentTemplate(y._id) : x({
5313
+ onClick: Z((I) => w ? o.onSaveDocumentTemplate(y._id) : x({
5224
5314
  callback: () => o.onSaveDocumentTemplate(y._id)
5225
5315
  }), ["stop"])
5226
5316
  }, {
5227
5317
  default: u(() => [
5228
- T(d(e.$t("_common:saveAs", { thing: e.$t("_common:template") })), 1)
5318
+ _(d(e.$t("_common:saveAs", { thing: e.$t("_common:template") })), 1)
5229
5319
  ]),
5230
5320
  _: 2
5231
5321
  }, 1032, ["onClick"])
@@ -5238,12 +5328,12 @@ function nl(e, t, n, s, i, o) {
5238
5328
  type: "secondary"
5239
5329
  }, {
5240
5330
  default: u(() => [
5241
- T(d(e.$t("_common:use", { thing: e.$t("_common:template") })), 1)
5331
+ _(d(e.$t("_common:use", { thing: e.$t("_common:template") })), 1)
5242
5332
  ]),
5243
5333
  _: 1
5244
5334
  })
5245
5335
  ])) : v("", !0)
5246
- ], 40, el))), 128))
5336
+ ], 40, ta))), 128))
5247
5337
  ])
5248
5338
  ]),
5249
5339
  _: 2
@@ -5254,13 +5344,13 @@ function nl(e, t, n, s, i, o) {
5254
5344
  ])
5255
5345
  ]);
5256
5346
  }
5257
- const il = /* @__PURE__ */ F(Ks, [["render", nl], ["__scopeId", "data-v-afd30dd3"]]), ol = { class: "item-paper" }, sl = {
5347
+ const oa = /* @__PURE__ */ $(Qs, [["render", ia], ["__scopeId", "data-v-afd30dd3"]]), sa = { class: "item-paper" }, aa = {
5258
5348
  key: 2,
5259
5349
  class: "absolute bottom-2 right-2"
5260
- }, ll = {
5350
+ }, la = {
5261
5351
  key: 3,
5262
5352
  class: "add-button"
5263
- }, al = { class: "item-footer" }, rl = ["textContent"], dl = ["textContent"], cl = /* @__PURE__ */ ve({
5353
+ }, ra = { class: "item-footer" }, da = ["textContent"], ca = ["textContent"], ua = /* @__PURE__ */ ce({
5264
5354
  __name: "DocumentIcon",
5265
5355
  props: {
5266
5356
  isPlaceholder: { type: Boolean, default: !1 },
@@ -5272,13 +5362,13 @@ const il = /* @__PURE__ */ F(Ks, [["render", nl], ["__scopeId", "data-v-afd30dd3
5272
5362
  },
5273
5363
  emits: ["triggerOpenTemplate"],
5274
5364
  setup(e, { emit: t }) {
5275
- const n = e, s = t, i = () => s("triggerOpenTemplate"), o = kt(), r = wt(), g = H(() => r.style), h = H(() => r.staticClass), b = H(() => r.class), w = H(() => r.key), k = H(() => r.attrs), S = H(
5276
- () => Se.t("_common:empty", { thing: Se.t("_common:template") })
5277
- ), D = H(() => _t(n.name, 60));
5365
+ const n = e, s = t, i = () => s("triggerOpenTemplate"), o = kt(), r = wt(), g = q(() => r.style), h = q(() => r.staticClass), b = q(() => r.class), k = q(() => r.key), w = q(() => r.attrs), T = q(
5366
+ () => Ce.t("_common:empty", { thing: Ce.t("_common:template") })
5367
+ ), D = q(() => _t(n.name, 60));
5278
5368
  return (y, f) => {
5279
5369
  const x = m("CIcon");
5280
- return a(), p("div", ye(k.value, {
5281
- key: w.value,
5370
+ return l(), p("div", be(w.value, {
5371
+ key: k.value,
5282
5372
  class: [[
5283
5373
  h.value,
5284
5374
  b.value,
@@ -5291,22 +5381,22 @@ const il = /* @__PURE__ */ F(Ks, [["render", nl], ["__scopeId", "data-v-afd30dd3
5291
5381
  style: g.value,
5292
5382
  onClick: i
5293
5383
  }), [
5294
- l("div", ol, [
5295
- y.thumbnail ? (a(), p("div", {
5384
+ a("div", sa, [
5385
+ y.thumbnail ? (l(), p("div", {
5296
5386
  key: 0,
5297
- style: E([{
5387
+ style: R([{
5298
5388
  backgroundImage: `url(${y.thumbnail})`
5299
5389
  }, { width: "100%", height: "100%", "background-size": "100% auto", "background-repeat": "no-repeat", "background-position": "0% 0%" }])
5300
- }, null, 4)) : y.isPlaceholder || y.isAdd ? v("", !0) : (a(), C(on, {
5390
+ }, null, 4)) : y.isPlaceholder || y.isAdd ? v("", !0) : (l(), C(on, {
5301
5391
  key: 1,
5302
5392
  media: y.media,
5303
5393
  preview: "",
5304
5394
  class: "item-media"
5305
5395
  }, null, 8, ["media"])),
5306
- Pe(o).badge ? (a(), p("div", sl, [
5307
- M(y.$slots, "badge", {}, void 0, !0)
5396
+ U(o).badge ? (l(), p("div", aa, [
5397
+ P(y.$slots, "badge", {}, void 0, !0)
5308
5398
  ])) : v("", !0),
5309
- y.isAdd ? (a(), p("div", ll, [
5399
+ y.isAdd ? (l(), p("div", la, [
5310
5400
  c(x, {
5311
5401
  size: 18,
5312
5402
  "stroke-width": 3,
@@ -5314,27 +5404,27 @@ const il = /* @__PURE__ */ F(Ks, [["render", nl], ["__scopeId", "data-v-afd30dd3
5314
5404
  })
5315
5405
  ])) : v("", !0)
5316
5406
  ]),
5317
- l("div", al, [
5318
- y.isAdd ? (a(), p("div", {
5407
+ a("div", ra, [
5408
+ y.isAdd ? (l(), p("div", {
5319
5409
  key: 0,
5320
5410
  class: "item-text",
5321
5411
  style: { color: "hsl(0, 0%, 55%)" },
5322
- textContent: d(S.value)
5323
- }, null, 8, rl)) : y.name ? (a(), p(I, { key: 1 }, [
5324
- l("div", {
5412
+ textContent: d(T.value)
5413
+ }, null, 8, da)) : y.name ? (l(), p(S, { key: 1 }, [
5414
+ a("div", {
5325
5415
  class: "item-text",
5326
5416
  textContent: d(D.value)
5327
- }, null, 8, dl),
5328
- M(y.$slots, "default", {}, void 0, !0)
5417
+ }, null, 8, ca),
5418
+ P(y.$slots, "default", {}, void 0, !0)
5329
5419
  ], 64)) : v("", !0)
5330
5420
  ])
5331
5421
  ], 16);
5332
5422
  };
5333
5423
  }
5334
- }), ul = /* @__PURE__ */ F(cl, [["__scopeId", "data-v-f3357197"]]), ml = {
5424
+ }), ma = /* @__PURE__ */ $(ua, [["__scopeId", "data-v-f3357197"]]), pa = {
5335
5425
  name: "HorizontalScroll",
5336
5426
  components: {
5337
- Simplebar: Q
5427
+ Simplebar: X
5338
5428
  },
5339
5429
  emits: ["expand"],
5340
5430
  data() {
@@ -5383,20 +5473,20 @@ const il = /* @__PURE__ */ F(Ks, [["render", nl], ["__scopeId", "data-v-afd30dd3
5383
5473
  }, 50);
5384
5474
  }
5385
5475
  }
5386
- }, pl = {
5476
+ }, ha = {
5387
5477
  ref: "container",
5388
5478
  class: "horizontal-scroll"
5389
- }, hl = { class: "hl-navigation" }, fl = { class: "hl-container" }, gl = { class: "flex w-full" };
5390
- function yl(e, t, n, s, i, o) {
5479
+ }, fa = { class: "hl-navigation" }, ga = { class: "hl-container" }, ya = { class: "flex w-full" };
5480
+ function va(e, t, n, s, i, o) {
5391
5481
  const r = m("CButton"), g = m("Simplebar");
5392
- return a(), p("div", pl, [
5393
- l("div", hl, [
5394
- i.hasPrev ? (a(), p("div", {
5482
+ return l(), p("div", ha, [
5483
+ a("div", fa, [
5484
+ i.hasPrev ? (l(), p("div", {
5395
5485
  key: 0,
5396
5486
  class: "hl-btn-left max-sm:hidden",
5397
5487
  onClick: t[0] || (t[0] = (h) => o.go(-1))
5398
5488
  }, [
5399
- M(e.$slots, "nav-prev", {}, () => [
5489
+ P(e.$slots, "nav-prev", {}, () => [
5400
5490
  c(r, {
5401
5491
  "icon-props": { size: 22 },
5402
5492
  icon: "chevron-left",
@@ -5406,12 +5496,12 @@ function yl(e, t, n, s, i, o) {
5406
5496
  })
5407
5497
  ], !0)
5408
5498
  ])) : v("", !0),
5409
- i.hasNext ? (a(), p("div", {
5499
+ i.hasNext ? (l(), p("div", {
5410
5500
  key: 1,
5411
5501
  class: "hl-btn-right max-sm:hidden",
5412
5502
  onClick: t[2] || (t[2] = (h) => o.go(1))
5413
5503
  }, [
5414
- M(e.$slots, "nav-prev", {}, () => [
5504
+ P(e.$slots, "nav-prev", {}, () => [
5415
5505
  c(r, {
5416
5506
  "icon-props": { size: 22 },
5417
5507
  icon: "chevron-right",
@@ -5423,15 +5513,15 @@ function yl(e, t, n, s, i, o) {
5423
5513
  ], !0)
5424
5514
  ])) : v("", !0)
5425
5515
  ]),
5426
- l("div", fl, [
5516
+ a("div", ga, [
5427
5517
  c(g, {
5428
5518
  ref: "list",
5429
5519
  class: "hl-list",
5430
5520
  onScroll: o.scrollHandler
5431
5521
  }, {
5432
5522
  default: u(() => [
5433
- l("div", gl, [
5434
- M(e.$slots, "default", {}, void 0, !0)
5523
+ a("div", ya, [
5524
+ P(e.$slots, "default", {}, void 0, !0)
5435
5525
  ])
5436
5526
  ]),
5437
5527
  _: 3
@@ -5439,12 +5529,12 @@ function yl(e, t, n, s, i, o) {
5439
5529
  ])
5440
5530
  ], 512);
5441
5531
  }
5442
- const vl = /* @__PURE__ */ F(ml, [["render", yl], ["__scopeId", "data-v-f0c49197"]]);
5443
- function Cl(e, { availableProducts: t }) {
5532
+ const Ca = /* @__PURE__ */ $(pa, [["render", va], ["__scopeId", "data-v-f0c49197"]]);
5533
+ function ba(e, { availableProducts: t }) {
5444
5534
  if (!e) throw new Error("Missing parameter templateId");
5445
5535
  const n = t, s = Object.keys(n).find((i) => {
5446
5536
  var r;
5447
- const o = V(
5537
+ const o = B(
5448
5538
  n[i],
5449
5539
  "metadata.companyPurchase"
5450
5540
  );
@@ -5452,7 +5542,7 @@ function Cl(e, { availableProducts: t }) {
5452
5542
  });
5453
5543
  return s ? n[s] : null;
5454
5544
  }
5455
- async function bl(e) {
5545
+ async function ka(e) {
5456
5546
  if (!e) throw new Error("Missing argument stripeProduct");
5457
5547
  const t = e == null ? void 0 : e.prices[0], { data: n } = await xt.createCheckoutSession({
5458
5548
  items: [
@@ -5461,15 +5551,15 @@ async function bl(e) {
5461
5551
  quantity: 1
5462
5552
  }
5463
5553
  ],
5464
- successUrl: `${j.baseUrl}/purchase/success`
5554
+ successUrl: `${Q.baseUrl}/purchase/success`
5465
5555
  // cancelUrl: window.location.href
5466
5556
  }), { redirectUrl: s } = n;
5467
5557
  window.open(s, "_blank");
5468
5558
  }
5469
- function Ye(e, { availableProducts: t }) {
5559
+ function Je(e, { availableProducts: t }) {
5470
5560
  var i, o, r;
5471
5561
  let n = null;
5472
- const s = Cl(e.templateId, {
5562
+ const s = ba(e.templateId, {
5473
5563
  availableProducts: t
5474
5564
  });
5475
5565
  return s && (n = {
@@ -5477,16 +5567,16 @@ function Ye(e, { availableProducts: t }) {
5477
5567
  currency: (o = s == null ? void 0 : s.prices) == null ? void 0 : o[0].currency
5478
5568
  }),
5479
5569
  isPurchased: ((r = e.purchaseInfo) == null ? void 0 : r.isPurchased) || !1,
5480
- onBuy: async () => bl(s)
5570
+ onBuy: async () => ka(s)
5481
5571
  }), n;
5482
5572
  }
5483
- const kl = {
5573
+ const wa = {
5484
5574
  name: "GalleryTemplateModal",
5485
5575
  components: {
5486
- Simplebar: Q,
5576
+ Simplebar: X,
5487
5577
  DocumentLayout: Ht,
5488
- IsPremium: J,
5489
- IsPremiumPreStep: Y
5578
+ IsPremium: te,
5579
+ IsPremiumPreStep: ee
5490
5580
  },
5491
5581
  emits: ["use-template", "close"],
5492
5582
  props: {
@@ -5549,13 +5639,13 @@ const kl = {
5549
5639
  };
5550
5640
  },
5551
5641
  computed: {
5552
- ...O({
5642
+ ...H({
5553
5643
  isLoading: "templates/isPosting",
5554
5644
  stripeProducts: "stripe/products",
5555
5645
  isSuperUser: "application/isSuperUser"
5556
5646
  }),
5557
5647
  previewDocument() {
5558
- const { data: e, defaultData: t } = this.template, n = new He({
5648
+ const { data: e, defaultData: t } = this.template, n = new qe({
5559
5649
  data: {
5560
5650
  ...t,
5561
5651
  template: e,
@@ -5583,7 +5673,7 @@ const kl = {
5583
5673
  isVisibleApp: !0,
5584
5674
  includePurchaseInfo: !0
5585
5675
  }, r = await this.fetchGallery(o);
5586
- this.privateProduct = Ye(
5676
+ this.privateProduct = Je(
5587
5677
  r[0],
5588
5678
  { availableProducts: this.stripeProducts }
5589
5679
  );
@@ -5615,37 +5705,37 @@ const kl = {
5615
5705
  this.template && typeof this.onSaveTemplate == "function" && (this.didSave = await this.onSaveTemplate(this.template));
5616
5706
  },
5617
5707
  async copyToClipboard(e) {
5618
- const t = `${j.baseUrl}/template/${e}`;
5619
- await Ue(t) && be("info", this.$t("copyMessage"));
5708
+ const t = `${Q.baseUrl}/template/${e}`;
5709
+ await Ue(t) && we("info", this.$t("copyMessage"));
5620
5710
  }
5621
5711
  }
5622
- }, wl = { class: "template-modal font-inter bg-gray-200" }, _l = { style: { "background-color": "white", "border-radius": "1em", overflow: "auto", border: "10px solid white", "box-shadow": `rgb(244, 244, 244) 0px 2px 14px 0px inset,
5712
+ }, _a = { class: "template-modal font-inter bg-gray-200" }, xa = { style: { "background-color": "white", "border-radius": "1em", overflow: "auto", border: "10px solid white", "box-shadow": `rgb(244, 244, 244) 0px 2px 14px 0px inset,
5623
5713
  rgba(0, 0, 0, 0.09) 0px 8px 35px 0px,
5624
- rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset`, flex: "1 1 auto", "min-height": "0" } }, xl = { style: { flex: "0 1 300px", padding: "2em 1em 3em 2em", "font-size": "18px" } }, Tl = { style: { "padding-bottom": "2em" } }, Dl = { style: { "font-size": "21px", "font-weight": "800", color: "hsl(0, 0%, 0%)" } }, Sl = { style: { "font-weight": "400", "font-size": "14px", "min-height": "30px", color: "hsl(0, 0%, 27%)" } }, $l = { style: { hyphens: "auto" } }, Il = {
5714
+ rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset`, flex: "1 1 auto", "min-height": "0" } }, Ta = { style: { flex: "0 1 300px", padding: "2em 1em 3em 2em", "font-size": "18px" } }, Da = { style: { "padding-bottom": "2em" } }, Sa = { 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%)" } }, $a = { style: { hyphens: "auto" } }, Fa = {
5625
5715
  key: 0,
5626
5716
  style: { "padding-top": "1.5em" },
5627
5717
  class: "flex items-center"
5628
- }, Fl = { style: { "margin-left": "0.5em" } }, Ll = { style: { "font-weight": "500" } }, Vl = { style: { "font-weight": "400", "font-size": "14px" } }, Bl = { style: { "padding-bottom": "2em" } }, Ml = {
5718
+ }, La = { style: { "margin-left": "0.5em" } }, Va = { style: { "font-weight": "500" } }, Ba = { style: { "font-weight": "400", "font-size": "14px" } }, Ma = { style: { "padding-bottom": "2em" } }, Pa = {
5629
5719
  key: 0,
5630
5720
  class: "mb-5 flex items-center gap-2 rounded-full border border-gray-300 bg-gray-300/60 p-1 text-sm"
5631
- }, Pl = { class: "bg-primary-500 flex h-5 w-5 items-center justify-center rounded-full" }, Al = ["textContent"], El = ["textContent"];
5632
- function zl(e, t, n, s, i, o) {
5633
- var S;
5634
- const r = m("DocumentLayout"), g = m("Simplebar"), h = m("CIcon"), b = m("CButton"), w = m("IsPremiumPreStep"), k = m("IsPremium");
5635
- return a(), p("div", wl, [
5636
- l("div", _l, [
5721
+ }, Aa = { class: "bg-primary-500 flex h-5 w-5 items-center justify-center rounded-full" }, Ea = ["textContent"], za = ["textContent"];
5722
+ function Ra(e, t, n, s, i, o) {
5723
+ var T;
5724
+ const r = m("DocumentLayout"), g = m("Simplebar"), h = m("CIcon"), b = m("CButton"), k = m("IsPremiumPreStep"), w = m("IsPremium");
5725
+ return l(), p("div", _a, [
5726
+ a("div", xa, [
5637
5727
  c(g, {
5638
5728
  class: "h-full w-full",
5639
5729
  "data-simplebar-auto-hide": "false"
5640
5730
  }, {
5641
5731
  default: u(() => [
5642
- o.previewDocument ? (a(), C(r, {
5732
+ o.previewDocument ? (l(), C(r, {
5643
5733
  key: 0,
5644
5734
  document: o.previewDocument
5645
5735
  }, null, 8, ["document"])) : v("", !0),
5646
- n.product && !i.privateProduct.isPurchased ? (a(), C(G("style"), { key: 1 }, {
5736
+ n.product && !i.privateProduct.isPurchased ? (l(), C(j("style"), { key: 1 }, {
5647
5737
  default: u(() => t[1] || (t[1] = [
5648
- T(" .ProseMirror > * + * { filter: blur(8px); user-select: none; pointer-events: none; } ")
5738
+ _(" .ProseMirror > * + * { filter: blur(8px); user-select: none; pointer-events: none; } ")
5649
5739
  ])),
5650
5740
  _: 1
5651
5741
  })) : v("", !0)
@@ -5653,50 +5743,50 @@ function zl(e, t, n, s, i, o) {
5653
5743
  _: 1
5654
5744
  })
5655
5745
  ]),
5656
- l("div", xl, [
5657
- l("div", Tl, [
5658
- l("div", Dl, d(n.meta.name), 1),
5659
- l("div", Sl, [
5660
- (S = i.templateStat) != null && S.usedTimes ? (a(), p(I, { key: 0 }, [
5661
- T(d(e.$t("_common:used").capitalize()) + " " + d(i.templateStat.usedTimes) + " " + d(e.$t("_common:times", { count: i.templateStat.usedTimes })), 1)
5746
+ a("div", Ta, [
5747
+ a("div", Da, [
5748
+ a("div", Sa, d(n.meta.name), 1),
5749
+ a("div", Ia, [
5750
+ (T = i.templateStat) != null && T.usedTimes ? (l(), p(S, { key: 0 }, [
5751
+ _(d(e.$t("_common:used").capitalize()) + " " + d(i.templateStat.usedTimes) + " " + d(e.$t("_common:times", { count: i.templateStat.usedTimes })), 1)
5662
5752
  ], 64)) : v("", !0)
5663
5753
  ]),
5664
- l("div", $l, d(n.meta.text), 1),
5665
- n.meta.author ? (a(), p("div", Il, [
5666
- l("div", {
5667
- style: E([{ "background-color": "#03f", "border-radius": "50%", width: "2.5em", height: "2.5em", "background-size": "cover", "background-position": "center", "background-repeat": "no-repeat" }, {
5754
+ a("div", $a, d(n.meta.text), 1),
5755
+ n.meta.author ? (l(), p("div", Fa, [
5756
+ a("div", {
5757
+ style: R([{ "background-color": "#03f", "border-radius": "50%", width: "2.5em", height: "2.5em", "background-size": "cover", "background-position": "center", "background-repeat": "no-repeat" }, {
5668
5758
  backgroundImage: `url(${n.meta.author.avatar})`
5669
5759
  }])
5670
5760
  }, null, 4),
5671
- l("div", Fl, [
5672
- l("div", Ll, d(n.meta.author.name), 1),
5673
- l("div", Vl, [
5674
- n.meta.author.templatesCount ? (a(), p(I, { key: 0 }, [
5675
- T(d(n.meta.author.templatesCount) + " " + d(e.$t("_common:template", { count: n.meta.author.templatesCount })), 1)
5676
- ], 64)) : (a(), p(I, { key: 1 }, [
5677
- T(d(e.$t("_common:template").capitalize()), 1)
5761
+ a("div", La, [
5762
+ a("div", Va, d(n.meta.author.name), 1),
5763
+ a("div", Ba, [
5764
+ n.meta.author.templatesCount ? (l(), p(S, { key: 0 }, [
5765
+ _(d(n.meta.author.templatesCount) + " " + d(e.$t("_common:template", { count: n.meta.author.templatesCount })), 1)
5766
+ ], 64)) : (l(), p(S, { key: 1 }, [
5767
+ _(d(e.$t("_common:template").capitalize()), 1)
5678
5768
  ], 64))
5679
5769
  ])
5680
5770
  ])
5681
5771
  ])) : v("", !0)
5682
5772
  ]),
5683
- l("div", Bl, [
5684
- n.product ? (a(), p(I, { key: 0 }, [
5685
- i.privateProduct.isPurchased ? (a(), p("div", Ml, [
5686
- l("div", Pl, [
5773
+ a("div", Ma, [
5774
+ n.product ? (l(), p(S, { key: 0 }, [
5775
+ i.privateProduct.isPurchased ? (l(), p("div", Pa, [
5776
+ a("div", Aa, [
5687
5777
  c(h, {
5688
5778
  type: "check",
5689
5779
  size: "12",
5690
5780
  class: "text-white"
5691
5781
  })
5692
5782
  ]),
5693
- l("div", {
5783
+ a("div", {
5694
5784
  class: "text-xs font-medium text-gray-700",
5695
5785
  textContent: d(
5696
5786
  e.$t("_common:purchased", { thing: e.$t("_common:template") })
5697
5787
  )
5698
- }, null, 8, Al)
5699
- ])) : (a(), C(b, {
5788
+ }, null, 8, Ea)
5789
+ ])) : (l(), C(b, {
5700
5790
  key: 1,
5701
5791
  type: "secondary",
5702
5792
  wide: "",
@@ -5705,20 +5795,20 @@ function zl(e, t, n, s, i, o) {
5705
5795
  onClick: o.buyTemplate
5706
5796
  }, {
5707
5797
  default: u(() => [
5708
- l("div", null, d(e.$t("_common:buy", { thing: e.$t("_common:template") })), 1),
5709
- l("div", {
5798
+ a("div", null, d(e.$t("_common:buy", { thing: e.$t("_common:template") })), 1),
5799
+ a("div", {
5710
5800
  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",
5711
5801
  textContent: d(i.privateProduct.price)
5712
- }, null, 8, El)
5802
+ }, null, 8, za)
5713
5803
  ]),
5714
5804
  _: 1
5715
5805
  }, 8, ["onClick"]))
5716
5806
  ], 64)) : v("", !0),
5717
- c(k, null, {
5807
+ c(w, null, {
5718
5808
  default: u(({ canUseTemplate: D }) => [
5719
- c(w, { feature: "useDocTemplate" }, {
5809
+ c(k, { feature: "useDocTemplate" }, {
5720
5810
  default: u(({ onClick: y }) => [
5721
- !n.product || i.privateProduct.isPurchased ? (a(), C(b, {
5811
+ !n.product || i.privateProduct.isPurchased ? (l(), C(b, {
5722
5812
  key: 0,
5723
5813
  disabled: n.product ? !i.privateProduct.isPurchased : !1,
5724
5814
  type: "secondary",
@@ -5727,7 +5817,7 @@ function zl(e, t, n, s, i, o) {
5727
5817
  onClick: (f) => n.isPublicForm || D ? o.useSelectedTemplate() : y({ callback: o.useSelectedTemplate })
5728
5818
  }, {
5729
5819
  default: u(() => [
5730
- T(d(e.$t("_common:use", { thing: e.$t("_common:template") })), 1)
5820
+ _(d(e.$t("_common:use", { thing: e.$t("_common:template") })), 1)
5731
5821
  ]),
5732
5822
  _: 2
5733
5823
  }, 1032, ["disabled", "onClick"])) : v("", !0)
@@ -5737,13 +5827,13 @@ function zl(e, t, n, s, i, o) {
5737
5827
  ]),
5738
5828
  _: 1
5739
5829
  }),
5740
- c(k, null, {
5830
+ c(w, null, {
5741
5831
  default: u(({ canCreateTemplate: D }) => [
5742
- c(w, { feature: "saveDocTemplate" }, {
5832
+ c(k, { feature: "saveDocTemplate" }, {
5743
5833
  default: u(({ onClick: y }) => {
5744
5834
  var f;
5745
5835
  return [
5746
- (n.product ? (f = n.product) != null && f.isPurchased : n.showSave) ? (a(), C(b, {
5836
+ (n.product ? (f = n.product) != null && f.isPurchased : n.showSave) ? (l(), C(b, {
5747
5837
  key: 0,
5748
5838
  loading: e.isLoading,
5749
5839
  type: i.didSave ? "success" : "none",
@@ -5753,7 +5843,7 @@ function zl(e, t, n, s, i, o) {
5753
5843
  onClick: (x) => i.didSave ? null : n.isPublicForm || D ? o.saveAsTemplate() : y({ callback: o.saveAsTemplate })
5754
5844
  }, {
5755
5845
  default: u(() => [
5756
- T(d(i.didSave ? e.$t("_common:savedThing", { thing: e.$t("_common:template") }) : e.$t("_common:saveAs", { thing: e.$t("_common:template") })), 1)
5846
+ _(d(i.didSave ? e.$t("_common:savedThing", { thing: e.$t("_common:template") }) : e.$t("_common:saveAs", { thing: e.$t("_common:template") })), 1)
5757
5847
  ]),
5758
5848
  _: 2
5759
5849
  }, 1032, ["loading", "type", "icon-left", "onClick"])) : v("", !0)
@@ -5764,7 +5854,7 @@ function zl(e, t, n, s, i, o) {
5764
5854
  ]),
5765
5855
  _: 1
5766
5856
  }),
5767
- o.allowCopyTemplateLink ? (a(), C(b, {
5857
+ o.allowCopyTemplateLink ? (l(), C(b, {
5768
5858
  key: 1,
5769
5859
  type: "none",
5770
5860
  "icon-left": "link",
@@ -5772,7 +5862,7 @@ function zl(e, t, n, s, i, o) {
5772
5862
  onClick: t[0] || (t[0] = (D) => o.copyToClipboard(n.template.id))
5773
5863
  }, {
5774
5864
  default: u(() => [
5775
- T(d(e.$t("_common:share", { thing: e.$t("_common:link") })), 1)
5865
+ _(d(e.$t("_common:share", { thing: e.$t("_common:link") })), 1)
5776
5866
  ]),
5777
5867
  _: 1
5778
5868
  })) : v("", !0)
@@ -5780,7 +5870,7 @@ function zl(e, t, n, s, i, o) {
5780
5870
  ])
5781
5871
  ]);
5782
5872
  }
5783
- const Rl = /* @__PURE__ */ F(kl, [["render", zl], ["__scopeId", "data-v-d37ef215"]]), Ol = {
5873
+ const Oa = /* @__PURE__ */ $(wa, [["render", Ra], ["__scopeId", "data-v-d37ef215"]]), Ha = {
5784
5874
  name: "GalleryLogic",
5785
5875
  i18nOptions: {
5786
5876
  namespaces: "GalleryLogic",
@@ -5838,7 +5928,7 @@ const Rl = /* @__PURE__ */ F(kl, [["render", zl], ["__scopeId", "data-v-d37ef215
5838
5928
  },
5839
5929
  filterLanguage: {
5840
5930
  type: String,
5841
- default: () => ["cling", "fortnoxSe"].includes(j.brand) ? "sv" : "en"
5931
+ default: () => ["cling", "fortnoxSe"].includes(Q.brand) ? "sv" : "en"
5842
5932
  },
5843
5933
  showTemplateAuthor: {
5844
5934
  type: Boolean,
@@ -5880,7 +5970,7 @@ const Rl = /* @__PURE__ */ F(kl, [["render", zl], ["__scopeId", "data-v-d37ef215
5880
5970
  };
5881
5971
  },
5882
5972
  computed: {
5883
- ...O({
5973
+ ...H({
5884
5974
  stripeProducts: "stripe/products"
5885
5975
  }),
5886
5976
  galleryItems() {
@@ -5922,12 +6012,12 @@ const Rl = /* @__PURE__ */ F(kl, [["render", zl], ["__scopeId", "data-v-d37ef215
5922
6012
  );
5923
6013
  this.selectGalleryItem(r);
5924
6014
  } catch (r) {
5925
- se(r);
6015
+ re(r);
5926
6016
  }
5927
6017
  },
5928
6018
  methods: {
5929
- ...W({
5930
- loadPrices: B.LOAD_PRICES
6019
+ ...K({
6020
+ loadPrices: M.LOAD_PRICES
5931
6021
  }),
5932
6022
  async loadTemplateGallery() {
5933
6023
  this.isLoading = !0;
@@ -5940,7 +6030,7 @@ const Rl = /* @__PURE__ */ F(kl, [["render", zl], ["__scopeId", "data-v-d37ef215
5940
6030
  const t = await this.fetchGallery(e);
5941
6031
  this.templateGalleryItems = (t || []).map((n) => {
5942
6032
  if (this.canPurchase && n.isPurchasable) {
5943
- const s = Ye(n, {
6033
+ const s = Je(n, {
5944
6034
  availableProducts: this.stripeProducts
5945
6035
  });
5946
6036
  s && (n.product = s);
@@ -5951,7 +6041,7 @@ const Rl = /* @__PURE__ */ F(kl, [["render", zl], ["__scopeId", "data-v-d37ef215
5951
6041
  []
5952
6042
  );
5953
6043
  } catch (t) {
5954
- se(t);
6044
+ re(t);
5955
6045
  } finally {
5956
6046
  this.isLoading = !1;
5957
6047
  }
@@ -5964,7 +6054,7 @@ const Rl = /* @__PURE__ */ F(kl, [["render", zl], ["__scopeId", "data-v-d37ef215
5964
6054
  isVisibleApp: !0,
5965
6055
  includePurchaseInfo: !0
5966
6056
  }, n = await this.fetchGallery(t), s = (o = n == null ? void 0 : n[0]) == null ? void 0 : o.templateId;
5967
- return s ? (St(s), new $t(s)) : null;
6057
+ return s ? (St(s), new It(s)) : null;
5968
6058
  },
5969
6059
  onUseTemplate(e) {
5970
6060
  if (!e) throw new Error("Could not find template");
@@ -5986,7 +6076,7 @@ const Rl = /* @__PURE__ */ F(kl, [["render", zl], ["__scopeId", "data-v-d37ef215
5986
6076
  fortnoxCom: "/img/fortnox/apple-touch-icon-180x180.png"
5987
6077
  };
5988
6078
  this.$modal.show(
5989
- Rl,
6079
+ Oa,
5990
6080
  {
5991
6081
  template: e,
5992
6082
  fetchGallery: this.fetchGallery,
@@ -5999,7 +6089,7 @@ const Rl = /* @__PURE__ */ F(kl, [["render", zl], ["__scopeId", "data-v-d37ef215
5999
6089
  // Only show author if enabled)
6000
6090
  author: {
6001
6091
  name: this.$t("_common:brand.name"),
6002
- avatar: n[j.brand],
6092
+ avatar: n[Q.brand],
6003
6093
  templatesCount: this.templateGalleryItems.length
6004
6094
  }
6005
6095
  } : {}
@@ -6031,8 +6121,8 @@ const Rl = /* @__PURE__ */ F(kl, [["render", zl], ["__scopeId", "data-v-d37ef215
6031
6121
  }
6032
6122
  }
6033
6123
  };
6034
- function Hl(e, t, n, s, i, o) {
6035
- return M(e.$slots, "default", {
6124
+ function Ua(e, t, n, s, i, o) {
6125
+ return P(e.$slots, "default", {
6036
6126
  galleryItems: o.galleryItems,
6037
6127
  categories: o.categories,
6038
6128
  activeCategory: i.activeCategory,
@@ -6040,7 +6130,7 @@ function Hl(e, t, n, s, i, o) {
6040
6130
  selectGalleryItem: o.selectGalleryItem
6041
6131
  });
6042
6132
  }
6043
- const Ul = /* @__PURE__ */ F(Ol, [["render", Hl]]), ql = {
6133
+ const qa = /* @__PURE__ */ $(Ha, [["render", Ua]]), Ga = {
6044
6134
  i18nOptions: {
6045
6135
  namespaces: "TemplateSelector",
6046
6136
  messages: {
@@ -6084,15 +6174,16 @@ const Ul = /* @__PURE__ */ F(Ol, [["render", Hl]]), ql = {
6084
6174
  },
6085
6175
  name: "TemplateSelector",
6086
6176
  components: {
6087
- HorizontalScroll: vl,
6088
- DocumentIcon: ul,
6089
- DocumentRecent: il,
6090
- GalleryLogic: Ul,
6091
- IsPremiumPreStep: Y,
6092
- CDropdown: fe,
6093
- CDropdownItem: ge
6094
- },
6095
- mixins: [Z],
6177
+ HorizontalScroll: Ca,
6178
+ DocumentIcon: ma,
6179
+ DocumentRecent: oa,
6180
+ GalleryLogic: qa,
6181
+ IsPremiumPreStep: ee,
6182
+ CDropdown: de,
6183
+ CDropdownItem: G,
6184
+ TemplateActionsDropdown: Ks
6185
+ },
6186
+ mixins: [Y],
6096
6187
  props: {
6097
6188
  // Used for creating documents form project/client views
6098
6189
  projectId: {
@@ -6147,7 +6238,7 @@ const Ul = /* @__PURE__ */ F(Ol, [["render", Hl]]), ql = {
6147
6238
  };
6148
6239
  },
6149
6240
  computed: {
6150
- ...O({
6241
+ ...H({
6151
6242
  canFeature: "application/feature",
6152
6243
  templateById: "templates/byId",
6153
6244
  isFetchingTemplates: "templates/isFetching",
@@ -6193,11 +6284,11 @@ const Ul = /* @__PURE__ */ F(Ol, [["render", Hl]]), ql = {
6193
6284
  this.loadTemplates();
6194
6285
  },
6195
6286
  methods: {
6196
- ...W({
6197
- loadTemplatesAction: B.LOAD_TEMPLATES,
6198
- loadTemplate: B.LOAD_TEMPLATE,
6199
- createTemplate: B.DO_CREATE_TEMPLATE,
6200
- removeTemplate: B.REMOVE_TEMPLATE
6287
+ ...K({
6288
+ loadTemplatesAction: M.LOAD_TEMPLATES,
6289
+ loadTemplate: M.LOAD_TEMPLATE,
6290
+ createTemplate: M.DO_CREATE_TEMPLATE,
6291
+ removeTemplate: M.REMOVE_TEMPLATE
6201
6292
  }),
6202
6293
  loadTemplates() {
6203
6294
  const e = {};
@@ -6214,7 +6305,7 @@ const Ul = /* @__PURE__ */ F(Ol, [["render", Hl]]), ql = {
6214
6305
  },
6215
6306
  async saveTemplate(e) {
6216
6307
  try {
6217
- const { data: t } = e, n = It(t, [
6308
+ const { data: t } = e, n = $t(t, [
6218
6309
  "_id",
6219
6310
  "id",
6220
6311
  "companyId",
@@ -6222,13 +6313,13 @@ const Ul = /* @__PURE__ */ F(Ol, [["render", Hl]]), ql = {
6222
6313
  ]);
6223
6314
  return await this.createTemplate({ body: n }), !0;
6224
6315
  } catch (t) {
6225
- se(t);
6316
+ re(t);
6226
6317
  }
6227
6318
  return !1;
6228
6319
  },
6229
6320
  async openTemplateFormModal({ document: e = null, template: t = null }) {
6230
6321
  this.$modal.show(
6231
- Qe,
6322
+ Ye,
6232
6323
  {
6233
6324
  document: e,
6234
6325
  template: t,
@@ -6251,142 +6342,85 @@ const Ul = /* @__PURE__ */ F(Ol, [["render", Hl]]), ql = {
6251
6342
  },
6252
6343
  canUseTemplate(e) {
6253
6344
  return e.doConsumeDocumentQuota ? this.canFeature("useDocTemplate") : !0;
6254
- },
6255
- async copyToClipboard(e) {
6256
- const t = `${j.baseUrl}/template/${e}`;
6257
- await Ue(t) && be("info", this.$t("copyMessage"));
6258
6345
  }
6259
6346
  }
6260
- }, Gl = { class: "h-full w-full overflow-y-auto rounded-2xl bg-white px-4 pb-10 pt-10 md:px-10 md:pt-16" }, Nl = { style: { width: "100%", "padding-bottom": "5em" } }, Wl = { class: "section-title" }, jl = { class: "section-subtitle" }, Zl = {
6347
+ }, Na = { class: "h-full w-full overflow-y-auto rounded-2xl bg-white px-4 pb-10 pt-10 md:px-10 md:pt-16" }, Wa = { style: { width: "100%", "padding-bottom": "5em" } }, ja = { class: "section-title" }, Za = { class: "section-subtitle" }, Ka = {
6261
6348
  key: 0,
6262
6349
  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"
6263
- }, Kl = {
6350
+ }, Qa = {
6264
6351
  key: 1,
6265
6352
  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"
6266
- }, Ql = { style: { width: "100%", "padding-bottom": "5em" } }, Yl = { class: "section-title w-full" }, Jl = { class: "flex items-center justify-between" }, Xl = ["innerHTML"], ea = {
6353
+ }, Ya = { style: { width: "100%", "padding-bottom": "5em" } }, Ja = { class: "section-title w-full" }, Xa = { class: "flex items-center justify-between" }, el = ["innerHTML"], tl = {
6267
6354
  key: 0,
6268
6355
  class: "bg-primary-500 border-primary-700/40 rounded border p-1 text-xs font-semibold leading-none text-white shadow-lg"
6269
- }, ta = ["textContent"], na = {
6356
+ }, nl = ["textContent"], il = {
6270
6357
  class: "section-title",
6271
6358
  style: { flex: "1 1 auto", "padding-bottom": "0.5em" }
6272
- }, ia = { class: "section-subtitle" };
6273
- function oa(e, t, n, s, i, o) {
6274
- const r = m("CIcon"), g = m("CButton"), h = m("CDropdownItem"), b = m("CDropdown"), w = m("DocumentIcon"), k = m("IsPremiumPreStep"), S = m("HorizontalScroll"), D = m("GalleryLogic"), y = m("DocumentRecent"), f = le("tooltip");
6275
- return a(), p("div", Gl, [
6276
- l("div", {
6359
+ }, ol = { class: "section-subtitle" };
6360
+ function sl(e, t, n, s, i, o) {
6361
+ const r = m("CIcon"), g = m("CButton"), h = m("TemplateActionsDropdown"), b = m("DocumentIcon"), k = m("IsPremiumPreStep"), w = m("CDropdownItem"), T = m("CDropdown"), D = m("HorizontalScroll"), y = m("GalleryLogic"), f = m("DocumentRecent"), x = se("tooltip");
6362
+ return l(), p("div", Na, [
6363
+ a("div", {
6277
6364
  class: L([{ small: e.mq === "sm" }, "font-inter form-start main mx-auto max-w-5xl"])
6278
6365
  }, [
6279
- M(e.$slots, "header", {}, void 0, !0),
6280
- l("div", Nl, [
6281
- l("div", Wl, [
6282
- l("div", null, d(e.$t("myTemplates")), 1),
6283
- l("div", jl, d(e.$t("myTemplatesSubTitle")), 1)
6366
+ P(e.$slots, "header", {}, void 0, !0),
6367
+ a("div", Wa, [
6368
+ a("div", ja, [
6369
+ a("div", null, d(e.$t("myTemplates")), 1),
6370
+ a("div", Za, d(e.$t("myTemplatesSubTitle")), 1)
6284
6371
  ]),
6285
6372
  c(k, { feature: "useDocTemplate" }, {
6286
- default: u(({ onClick: x }) => [
6287
- (a(), C(G(i.isExpanded ? "div" : "HorizontalScroll"), {
6373
+ default: u(({ onClick: I }) => [
6374
+ (l(), C(j(i.isExpanded ? "div" : "HorizontalScroll"), {
6288
6375
  class: L([{ "is-expanded": i.isExpanded }, "template-list"]),
6289
- onExpand: t[2] || (t[2] = (_) => i.isExpanded = !0)
6376
+ onExpand: t[1] || (t[1] = (F) => i.isExpanded = !0)
6290
6377
  }, {
6291
6378
  default: u(() => [
6292
- (a(!0), p(I, null, P(o.myTemplates, (_) => (a(), C(w, {
6293
- key: _.id,
6294
- "is-add": _.id === "empty",
6295
- "is-placeholder": _.placeholder,
6296
- media: _.defaultMedia || o.fallbackMedia,
6297
- thumbnail: _.thumbnailUrl,
6298
- name: _.name,
6379
+ (l(!0), p(S, null, A(o.myTemplates, (F) => (l(), C(b, {
6380
+ key: F.id,
6381
+ "is-add": F.id === "empty",
6382
+ "is-placeholder": F.placeholder,
6383
+ media: F.defaultMedia || o.fallbackMedia,
6384
+ thumbnail: F.thumbnailUrl,
6385
+ name: F.name,
6299
6386
  class: "template-item",
6300
- onTriggerOpenTemplate: (A) => _.placeholder ? null : o.canUseTemplate(_) ? o.select({ templateId: _.id }) : x()
6387
+ onTriggerOpenTemplate: (E) => F.placeholder ? null : o.canUseTemplate(F) ? o.select({ templateId: F.id }) : I()
6301
6388
  }, {
6302
6389
  badge: u(() => [
6303
- o.canUseTemplate(_) ? !_.doConsumeDocumentQuota && !_.placeholder ? (a(), p("div", Kl, d(e.$t("_common:free")), 1)) : v("", !0) : (a(), p("div", Zl, [
6390
+ o.canUseTemplate(F) ? !F.doConsumeDocumentQuota && !F.placeholder ? (l(), p("div", Qa, d(e.$t("_common:free")), 1)) : v("", !0) : (l(), p("div", Ka, [
6304
6391
  c(r, {
6305
6392
  type: "lock",
6306
6393
  size: "12",
6307
6394
  "stroke-width": "2.5"
6308
6395
  }),
6309
- t[4] || (t[4] = l("div", { class: "text-[11px] font-semibold" }, "Pro", -1))
6396
+ t[3] || (t[3] = a("div", { class: "text-[11px] font-semibold" }, "Pro", -1))
6310
6397
  ]))
6311
6398
  ]),
6312
6399
  default: u(() => [
6313
- _.onModify === "create" && !_.doConsumeDocumentQuota ? N((a(), C(g, {
6400
+ F.onModify === "create" && !F.doConsumeDocumentQuota ? N((l(), C(g, {
6314
6401
  key: 0,
6315
6402
  icon: "info",
6316
6403
  type: "none",
6317
6404
  pattern: "tertiary",
6318
6405
  size: "small",
6319
6406
  style: { top: "-8px", right: "-4px" },
6320
- onClick: t[0] || (t[0] = q(() => {
6407
+ onClick: t[0] || (t[0] = Z(() => {
6321
6408
  }, ["stop"]))
6322
6409
  }, null, 512)), [
6323
- [f, {
6410
+ [x, {
6324
6411
  content: e.$t("icon.freeTooltip"),
6325
6412
  placement: "bottom"
6326
6413
  }]
6327
- ]) : (a(), C(b, {
6414
+ ]) : N((l(), C(h, {
6328
6415
  key: 1,
6329
6416
  "append-to-body": "",
6330
- style: { top: "-8px", right: "-4px" },
6331
- onClick: t[1] || (t[1] = q(() => {
6332
- }, ["stop"]))
6333
- }, {
6334
- trigger: u(() => [
6335
- N(c(g, {
6336
- icon: "more-vertical",
6337
- type: "none",
6338
- pattern: "tertiary",
6339
- size: "small"
6340
- }, null, 512), [
6341
- [f, e.$t("icon.tooltip")]
6342
- ])
6343
- ]),
6344
- default: u(() => [
6345
- n.onEditTemplate ? (a(), C(h, {
6346
- key: 0,
6347
- "icon-left": "template-color",
6348
- onClick: (A) => n.onEditTemplate(_.id)
6349
- }, {
6350
- default: u(() => [
6351
- T(d(e.$t("_common:edit", { thing: e.$t("_common:template") })), 1)
6352
- ]),
6353
- _: 2
6354
- }, 1032, ["onClick"])) : v("", !0),
6355
- c(h, {
6356
- "icon-props": { size: 16 },
6357
- "icon-left": "edit",
6358
- onClick: (A) => o.openTemplateFormModal({ template: _ })
6359
- }, {
6360
- default: u(() => [
6361
- T(d(e.$t("_common:change", { thing: e.$t("_common:name") })), 1)
6362
- ]),
6363
- _: 2
6364
- }, 1032, ["onClick"]),
6365
- c(h, { separator: "" }),
6366
- c(h, {
6367
- "icon-props": { size: 16 },
6368
- "icon-left": "link",
6369
- onClick: (A) => o.copyToClipboard(_.id)
6370
- }, {
6371
- default: u(() => [
6372
- T(d(e.$t("_common:share", { thing: e.$t("_common:link") })), 1)
6373
- ]),
6374
- _: 2
6375
- }, 1032, ["onClick"]),
6376
- c(h, { separator: "" }),
6377
- c(h, {
6378
- "icon-props": { size: 16, stroke: "hsl(360, 100%, 60%)" },
6379
- "icon-left": "trash",
6380
- onClick: (A) => e.removeTemplate({ template: _ })
6381
- }, {
6382
- default: u(() => [
6383
- T(d(e.$t("_common:remove")), 1)
6384
- ]),
6385
- _: 2
6386
- }, 1032, ["onClick"])
6387
- ]),
6388
- _: 2
6389
- }, 1024))
6417
+ template: F,
6418
+ onEdit: n.onEditTemplate,
6419
+ onRename: o.openTemplateFormModal,
6420
+ onRemove: e.removeTemplate
6421
+ }, null, 8, ["template", "onEdit", "onRename", "onRemove"])), [
6422
+ [x, e.$t("icon.tooltip")]
6423
+ ])
6390
6424
  ]),
6391
6425
  _: 2
6392
6426
  }, 1032, ["is-add", "is-placeholder", "media", "thumbnail", "name", "onTriggerOpenTemplate"]))), 128))
@@ -6397,7 +6431,7 @@ function oa(e, t, n, s, i, o) {
6397
6431
  _: 1
6398
6432
  })
6399
6433
  ]),
6400
- n.showGallery ? (a(), C(D, {
6434
+ n.showGallery ? (l(), C(y, {
6401
6435
  key: 0,
6402
6436
  "fetch-gallery": o.fetchGallery,
6403
6437
  "use-template": o.select,
@@ -6406,19 +6440,19 @@ function oa(e, t, n, s, i, o) {
6406
6440
  "gallery-category": n.galleryCategory
6407
6441
  }, {
6408
6442
  default: u(({
6409
- galleryItems: x,
6410
- categories: _,
6411
- activeCategory: A,
6412
- selectCategory: z,
6413
- selectGalleryItem: X
6443
+ galleryItems: I,
6444
+ categories: F,
6445
+ activeCategory: E,
6446
+ selectCategory: ne,
6447
+ selectGalleryItem: V
6414
6448
  }) => [
6415
- l("div", Ql, [
6416
- l("div", Yl, [
6417
- l("div", Jl, [
6418
- l("div", null, d(e.$t("gallery")), 1),
6419
- c(b, {
6449
+ a("div", Ya, [
6450
+ a("div", Ja, [
6451
+ a("div", Xa, [
6452
+ a("div", null, d(e.$t("gallery")), 1),
6453
+ c(T, {
6420
6454
  style: { "margin-left": "calc(0.5 * var(--rem))" },
6421
- onClick: t[3] || (t[3] = q(() => {
6455
+ onClick: t[2] || (t[2] = Z(() => {
6422
6456
  }, ["stop"]))
6423
6457
  }, {
6424
6458
  trigger: u(() => [
@@ -6429,19 +6463,19 @@ function oa(e, t, n, s, i, o) {
6429
6463
  "icon-right": "chevron-down"
6430
6464
  }, {
6431
6465
  default: u(() => [
6432
- T(d(A ? A.label : ""), 1)
6466
+ _(d(E ? E.label : ""), 1)
6433
6467
  ]),
6434
6468
  _: 2
6435
6469
  }, 1024)
6436
6470
  ]),
6437
6471
  default: u(() => [
6438
- (a(!0), p(I, null, P(_, ($) => (a(), C(h, {
6439
- key: $.key,
6440
- "icon-right": A && A.key === $.key ? "check" : "",
6441
- onClick: (ie) => z($)
6472
+ (l(!0), p(S, null, A(F, (z) => (l(), C(w, {
6473
+ key: z.key,
6474
+ "icon-right": E && E.key === z.key ? "check" : "",
6475
+ onClick: (O) => ne(z)
6442
6476
  }, {
6443
6477
  default: u(() => [
6444
- T(d($.label), 1)
6478
+ _(d(z.label), 1)
6445
6479
  ]),
6446
6480
  _: 2
6447
6481
  }, 1032, ["icon-right", "onClick"]))), 128))
@@ -6449,32 +6483,32 @@ function oa(e, t, n, s, i, o) {
6449
6483
  _: 2
6450
6484
  }, 1024)
6451
6485
  ]),
6452
- l("div", {
6486
+ a("div", {
6453
6487
  class: "section-subtitle",
6454
6488
  innerHTML: e.$t("gallerySubTitle")
6455
- }, null, 8, Xl)
6489
+ }, null, 8, el)
6456
6490
  ]),
6457
- c(S, { class: "template-list" }, {
6491
+ c(D, { class: "template-list" }, {
6458
6492
  default: u(() => [
6459
- (a(!0), p(I, null, P(x, ($) => (a(), C(w, {
6460
- key: $.id,
6461
- "is-placeholder": $.placeholder,
6462
- media: { type: "image", resourceUrl: $.backgroundUrl },
6463
- name: $.name,
6493
+ (l(!0), p(S, null, A(I, (z) => (l(), C(b, {
6494
+ key: z.id,
6495
+ "is-placeholder": z.placeholder,
6496
+ media: { type: "image", resourceUrl: z.backgroundUrl },
6497
+ name: z.name,
6464
6498
  class: "template-item",
6465
- onTriggerOpenTemplate: (ie) => $.placeholder ? null : X($)
6499
+ onTriggerOpenTemplate: (O) => z.placeholder ? null : V(z)
6466
6500
  }, {
6467
6501
  badge: u(() => [
6468
- $.product ? (a(), p("div", ea, [
6469
- $.product.isPurchased ? (a(), C(r, {
6502
+ z.product ? (l(), p("div", tl, [
6503
+ z.product.isPurchased ? (l(), C(r, {
6470
6504
  key: 0,
6471
6505
  type: "check",
6472
6506
  size: "14",
6473
6507
  "stroke-width": "3"
6474
- })) : (a(), p("div", {
6508
+ })) : (l(), p("div", {
6475
6509
  key: 1,
6476
- textContent: d($.product.price)
6477
- }, null, 8, ta))
6510
+ textContent: d(z.product.price)
6511
+ }, null, 8, nl))
6478
6512
  ])) : v("", !0)
6479
6513
  ]),
6480
6514
  _: 2
@@ -6486,15 +6520,15 @@ function oa(e, t, n, s, i, o) {
6486
6520
  ]),
6487
6521
  _: 1
6488
6522
  }, 8, ["fetch-gallery", "use-template", "show-template-author", "modal-props", "gallery-category"])) : v("", !0),
6489
- c(y, {
6523
+ c(f, {
6490
6524
  style: { width: "100%", "padding-bottom": "5em" },
6491
6525
  onUseDocTemplate: o.select,
6492
6526
  onSaveTemplate: o.openTemplateFormModal
6493
6527
  }, {
6494
6528
  default: u(() => [
6495
- l("div", na, [
6496
- l("div", null, d(e.$t("recent")), 1),
6497
- l("div", ia, d(e.$t("recentSubTitle")), 1)
6529
+ a("div", il, [
6530
+ a("div", null, d(e.$t("recent")), 1),
6531
+ a("div", ol, d(e.$t("recentSubTitle")), 1)
6498
6532
  ])
6499
6533
  ]),
6500
6534
  _: 1
@@ -6502,44 +6536,44 @@ function oa(e, t, n, s, i, o) {
6502
6536
  ], 2)
6503
6537
  ]);
6504
6538
  }
6505
- const sa = /* @__PURE__ */ F(ql, [["render", oa], ["__scopeId", "data-v-2fb04074"]]);
6506
- var ce, Ve;
6507
- function la() {
6508
- if (Ve) return ce;
6509
- Ve = 1;
6539
+ const al = /* @__PURE__ */ $(Ga, [["render", sl], ["__scopeId", "data-v-825ca28b"]]);
6540
+ var he, Be;
6541
+ function ll() {
6542
+ if (Be) return he;
6543
+ Be = 1;
6510
6544
  var e = Lt(), t = Vt(), n = Bt();
6511
6545
  function s(i, o, r) {
6512
6546
  for (var g = -1, h = o.length, b = {}; ++g < h; ) {
6513
- var w = o[g], k = e(i, w);
6514
- r(k, w) && t(b, n(w, i), k);
6547
+ var k = o[g], w = e(i, k);
6548
+ r(w, k) && t(b, n(k, i), w);
6515
6549
  }
6516
6550
  return b;
6517
6551
  }
6518
- return ce = s, ce;
6552
+ return he = s, he;
6519
6553
  }
6520
- var ue, Be;
6521
- function aa() {
6522
- if (Be) return ue;
6523
- Be = 1;
6524
- var e = la(), t = Mt();
6554
+ var fe, Me;
6555
+ function rl() {
6556
+ if (Me) return fe;
6557
+ Me = 1;
6558
+ var e = ll(), t = Mt();
6525
6559
  function n(s, i) {
6526
6560
  return e(s, i, function(o, r) {
6527
6561
  return t(s, r);
6528
6562
  });
6529
6563
  }
6530
- return ue = n, ue;
6564
+ return fe = n, fe;
6531
6565
  }
6532
- var me, Me;
6533
- function ra() {
6534
- if (Me) return me;
6535
- Me = 1;
6536
- var e = aa(), t = Yt(), n = t(function(s, i) {
6566
+ var ge, Pe;
6567
+ function dl() {
6568
+ if (Pe) return ge;
6569
+ Pe = 1;
6570
+ var e = rl(), t = Yt(), n = t(function(s, i) {
6537
6571
  return s == null ? {} : e(s, i);
6538
6572
  });
6539
- return me = n, me;
6573
+ return ge = n, ge;
6540
6574
  }
6541
- var da = ra();
6542
- const ca = /* @__PURE__ */ Oe(da), ua = {
6575
+ var cl = dl();
6576
+ const ul = /* @__PURE__ */ He(cl), ml = {
6543
6577
  name: "DocForm",
6544
6578
  i18nOptions: {
6545
6579
  namespaces: "widgetDocForm",
@@ -6553,7 +6587,7 @@ const ca = /* @__PURE__ */ Oe(da), ua = {
6553
6587
  }
6554
6588
  },
6555
6589
  components: {
6556
- TemplateSelector: sa,
6590
+ TemplateSelector: al,
6557
6591
  DocumentForm: Zs,
6558
6592
  PostSend: un
6559
6593
  },
@@ -6622,7 +6656,7 @@ const ca = /* @__PURE__ */ Oe(da), ua = {
6622
6656
  };
6623
6657
  },
6624
6658
  computed: {
6625
- ...O({
6659
+ ...H({
6626
6660
  company: "application/company",
6627
6661
  feature: "application/feature",
6628
6662
  can: "application/can",
@@ -6655,17 +6689,17 @@ const ca = /* @__PURE__ */ Oe(da), ua = {
6655
6689
  (!this.rawDoc || (e = this.rawDoc) != null && e.__isNew) && (this.view = "templateSelect");
6656
6690
  },
6657
6691
  methods: {
6658
- ...W({
6659
- removeFormKeyValue: B.REMOVE_FORM_KEY_VALUE,
6660
- loadDocumentForm: B.LOAD_DOCUMENT2_FORM,
6661
- duplicateDocumentForm: B.LOAD_DUPLICATE_DOCUMENT2_FORM,
6662
- saveDocument: B.SAVE_DYNDOC_FORM,
6663
- loadCompanyUser: B.LOAD_COMPANY_USER,
6664
- saveTemplate: B.SAVE_TEMPLATE_FORM
6692
+ ...K({
6693
+ removeFormKeyValue: M.REMOVE_FORM_KEY_VALUE,
6694
+ loadDocumentForm: M.LOAD_DOCUMENT2_FORM,
6695
+ duplicateDocumentForm: M.LOAD_DUPLICATE_DOCUMENT2_FORM,
6696
+ saveDocument: M.SAVE_DYNDOC_FORM,
6697
+ loadCompanyUser: M.LOAD_COMPANY_USER,
6698
+ saveTemplate: M.SAVE_TEMPLATE_FORM
6665
6699
  }),
6666
6700
  async initDoc() {
6667
6701
  if (!this.rawDoc) throw new Error("Missing initiated form document");
6668
- this.document = new He({
6702
+ this.document = new qe({
6669
6703
  data: this.rawDoc,
6670
6704
  can: this.can,
6671
6705
  getters: this.$store.getters,
@@ -6674,7 +6708,7 @@ const ca = /* @__PURE__ */ Oe(da), ua = {
6674
6708
  },
6675
6709
  async onTemplateSelect({ templateId: e, documentId: t, formData: n }) {
6676
6710
  var i;
6677
- const s = ca({ ...this.rawDoc }, [
6711
+ const s = ul({ ...this.rawDoc }, [
6678
6712
  "__tempId",
6679
6713
  "externalReferences",
6680
6714
  "subscriberCompanyUserIds",
@@ -6719,27 +6753,27 @@ const ca = /* @__PURE__ */ Oe(da), ua = {
6719
6753
  this.view = "templateSelect", this.setDocValue({ key: "__isNew", value: !0 });
6720
6754
  },
6721
6755
  isManualDelivery(e) {
6722
- const t = pe(e);
6756
+ const t = ye(e);
6723
6757
  return !t.sms && !t.email;
6724
6758
  }
6725
6759
  }
6726
- }, ma = { class: "flex h-full w-full flex-col" }, pa = {
6760
+ }, pl = { class: "flex h-full w-full flex-col" }, hl = {
6727
6761
  key: 0,
6728
6762
  class: "flex h-full w-full flex-col"
6729
- }, ha = { class: "relative flex h-16 items-center justify-center border-b border-gray-200" };
6730
- function fa(e, t, n, s, i, o) {
6763
+ }, fl = { class: "relative flex h-16 items-center justify-center border-b border-gray-200" };
6764
+ function gl(e, t, n, s, i, o) {
6731
6765
  const r = m("CButton"), g = m("TemplateSelector"), h = m("DocumentForm"), b = m("PostSend");
6732
- return a(), p("div", ma, [
6733
- i.view === "templateSelect" ? (a(), p("div", pa, [
6734
- l("div", ha, [
6735
- n.closeFunc ? (a(), C(r, {
6766
+ return l(), p("div", pl, [
6767
+ i.view === "templateSelect" ? (l(), p("div", hl, [
6768
+ a("div", fl, [
6769
+ n.closeFunc ? (l(), C(r, {
6736
6770
  key: 0,
6737
6771
  icon: "x",
6738
6772
  circle: "",
6739
6773
  class: "absolute left-4 top-1/2 -translate-y-1/2",
6740
6774
  onClick: n.closeFunc
6741
6775
  }, null, 8, ["onClick"])) : v("", !0),
6742
- l("div", null, d(e.$t("selectNavTitle")), 1)
6776
+ a("div", null, d(e.$t("selectNavTitle")), 1)
6743
6777
  ]),
6744
6778
  c(g, {
6745
6779
  "on-use-template": o.onTemplateSelect,
@@ -6751,7 +6785,7 @@ function fa(e, t, n, s, i, o) {
6751
6785
  "include-partner-templates": "",
6752
6786
  class: "body-scroll min-h-0"
6753
6787
  }, null, 8, ["on-use-template", "show-gallery", "gallery-category", "on-save-template", "show-keep-clients-option"])
6754
- ])) : i.view === "editor" ? (a(), C(h, {
6788
+ ])) : i.view === "editor" ? (l(), C(h, {
6755
6789
  key: 1,
6756
6790
  document: i.document,
6757
6791
  "set-doc-value": o.setDocValue,
@@ -6767,7 +6801,7 @@ function fa(e, t, n, s, i, o) {
6767
6801
  "show-keep-clients-option": n.showKeepClientsOption
6768
6802
  }, {
6769
6803
  "nav-right-action": u(() => [
6770
- n.isEditingTemplate ? (a(), C(r, {
6804
+ n.isEditingTemplate ? (l(), C(r, {
6771
6805
  key: 0,
6772
6806
  loading: i.isSavingTemplate,
6773
6807
  disabled: !o.canDoActions,
@@ -6779,13 +6813,13 @@ function fa(e, t, n, s, i, o) {
6779
6813
  onClick: o.onSaveTemplateClick
6780
6814
  }, {
6781
6815
  default: u(() => [
6782
- T(d(e.$t("_common:save", { thing: e.$t("_common:template") })), 1)
6816
+ _(d(e.$t("_common:save", { thing: e.$t("_common:template") })), 1)
6783
6817
  ]),
6784
6818
  _: 1
6785
6819
  }, 8, ["loading", "disabled", "onClick"])) : v("", !0)
6786
6820
  ]),
6787
6821
  _: 1
6788
- }, 8, ["document", "set-doc-value", "set-form-value", "remove-doc-value", "remove-doc-key-value", "on-save-template", "on-save-document", "is-loading", "close", "go-back", "show-keep-clients-option"])) : i.view === "postSend" ? (a(), C(b, {
6822
+ }, 8, ["document", "set-doc-value", "set-form-value", "remove-doc-value", "remove-doc-key-value", "on-save-template", "on-save-document", "is-loading", "close", "go-back", "show-keep-clients-option"])) : i.view === "postSend" ? (l(), C(b, {
6789
6823
  key: 2,
6790
6824
  document: i.document,
6791
6825
  "on-send-func": n.closeFunc,
@@ -6793,7 +6827,7 @@ function fa(e, t, n, s, i, o) {
6793
6827
  }, null, 8, ["document", "on-send-func", "on-close-func"])) : v("", !0)
6794
6828
  ]);
6795
6829
  }
6796
- const Ha = /* @__PURE__ */ F(ua, [["render", fa], ["__scopeId", "data-v-4c6b6a6b"]]);
6830
+ const Ul = /* @__PURE__ */ $(ml, [["render", gl], ["__scopeId", "data-v-4c6b6a6b"]]);
6797
6831
  export {
6798
- Ha as default
6832
+ Ul as default
6799
6833
  };