@cling-se/widget 0.18.1 → 0.18.3

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 (126) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/dist/{AddClientCallout-CCt78VvH.js → AddClientCallout-CbvHj0Eg.js} +4 -4
  3. package/dist/{AnswerModal-B4LwVv2N.js → AnswerModal-DQ7hwhB0.js} +5 -5
  4. package/dist/{AttachmentItem-DnvYffKP.js → AttachmentItem-BQ_GvMwk.js} +4 -4
  5. package/dist/{BaseUpload-DFoV0ZLe.js → BaseUpload-CVPqA8-h.js} +2 -2
  6. package/dist/{BlockMedia-Amo_kdHo.js → BlockMedia-58fSLvOy.js} +1 -1
  7. package/dist/{CCallout-Gd06ds6O.js → CCallout-DrGHEV4O.js} +1 -1
  8. package/dist/{CCurrencyDropdown-B4GNmOGA.js → CCurrencyDropdown-CpfgOe7a.js} +3 -3
  9. package/dist/{CDropdownItem-BUNVCpSR.js → CDropdownItem-C2kEI8Na.js} +2 -2
  10. package/dist/{CFormField.vue_vue_type_script_setup_true_lang-Bo2J0c4G.js → CFormField.vue_vue_type_script_setup_true_lang-B5jn1OCW.js} +2 -2
  11. package/dist/{CPhoneFormat-DmN5r9Ci.js → CPhoneFormat-O7vWWrUa.js} +1 -1
  12. package/dist/{CPhoneInput-B6iyhsOG.js → CPhoneInput-2dgDXDUM.js} +5 -5
  13. package/dist/{CPriceInput-BLQaNu1d.js → CPriceInput-BGKURv94.js} +2 -2
  14. package/dist/{CSelect-BVO9iO9L.js → CSelect-BTh3TAim.js} +1 -1
  15. package/dist/{CSkeleton.vue_vue_type_script_setup_true_lang-C9loRtrk.js → CSkeleton.vue_vue_type_script_setup_true_lang-BbQ-OZyM.js} +1 -1
  16. package/dist/{ClientAutocomplete-C__yUaxD.js → ClientAutocomplete-DrW3GSz8.js} +3 -3
  17. package/dist/{ClientModal-B9cbuEiC.js → ClientModal-CFYq-wr7.js} +8 -8
  18. package/dist/{ColorPicker-G2kkxL7_.js → ColorPicker-Bk_CHCSt.js} +1 -1
  19. package/dist/{CompanyModal-por9AG4P.js → CompanyModal-MOmLT8ab.js} +7 -7
  20. package/dist/{ContentWrapper-CQtaGA2u.js → ContentWrapper-D303SHlg.js} +6 -6
  21. package/dist/{CoverBlockSettings-BCBDouyl.js → CoverBlockSettings-CIbqYZ7l.js} +7 -7
  22. package/dist/{DocAnswer-BrKctwrY.js → DocAnswer-Vj1GSLPv.js} +2 -2
  23. package/dist/DocDetails-JfqtT1pq.js +509 -0
  24. package/dist/{DocForm-D6T7NmfO.js → DocForm-DevN8b8z.js} +592 -565
  25. package/dist/{DocFormSend-COYPrhl7.js → DocFormSend-6HChzaiR.js} +2 -2
  26. package/dist/{DocLinks-B0LjxXIk.js → DocLinks-DQ_9pd2c.js} +2 -2
  27. package/dist/{DocModalBase-DObZHuYr.js → DocModalBase-CbfFrm3o.js} +1 -1
  28. package/dist/{DocPrint-CkDq78fB.js → DocPrint-De2KSP4Y.js} +1 -1
  29. package/dist/{DocReceipt-CYBPyePC.js → DocReceipt-YbFz7L_0.js} +2 -2
  30. package/dist/{DocSendReminder-Dau6s43e.js → DocSendReminder-B_5YIw83.js} +1 -1
  31. package/dist/{DocTextEditor-CVn6gE1i.js → DocTextEditor-Ckr_uNqY.js} +8 -8
  32. package/dist/{DocTimeline-ChBDPOfd.js → DocTimeline-DK6A_FPB.js} +2 -2
  33. package/dist/{DocumentClient-MLXzzXLb.js → DocumentClient-Dz3Ky_ie.js} +5 -5
  34. package/dist/{DocumentLayout-BMHOt380.js → DocumentLayout-Bm80wiJ1.js} +5 -5
  35. package/dist/{DocumentLogotype-Clj3fopX.js → DocumentLogotype-Bv0Gw1Ch.js} +4 -4
  36. package/dist/{DocumentVoided-B5_MSBbC.js → DocumentVoided-4K7CTKjL.js} +1 -1
  37. package/dist/{EmbedInput-CzkOa02p.js → EmbedInput-CuayfqYk.js} +3 -3
  38. package/dist/{EmbedSettings-Cf_F3KrM.js → EmbedSettings-Dz4V79EB.js} +3 -3
  39. package/dist/{ErrorCallout-CJn6NCse.js → ErrorCallout-MyJ_YNZ-.js} +1 -1
  40. package/dist/{FilePreviewModal-Di1VnPNY.js → FilePreviewModal-cHnNdRAd.js} +2 -2
  41. package/dist/{Flag-C4_G5IY1.js → Flag-DOn1Akat.js} +1 -1
  42. package/dist/{HeaderSettings-DWN0TjVD.js → HeaderSettings-BPqCBp-S.js} +9 -9
  43. package/dist/{ImageSelectModal-DmAJ9PrN.js → ImageSelectModal-BVsP3fqf.js} +3 -3
  44. package/dist/{ImageUploadWrapper-QLEhA_dI.js → ImageUploadWrapper-DGVO4mvf.js} +2 -2
  45. package/dist/{Index-Bt97lEsI.js → Index-A9rA3Y_Q.js} +6 -6
  46. package/dist/{Index-DR-sGE3Y.js → Index-B4rkYBSS.js} +4 -4
  47. package/dist/{Index-D9WFWlE6.js → Index-B5XOSUrz.js} +4 -4
  48. package/dist/{Index-rDndJKo1.js → Index-B7agOJd2.js} +5 -5
  49. package/dist/{Index-CE3pWPzp.js → Index-B8H21-dC.js} +1 -1
  50. package/dist/{Index-BBBXL4zh.js → Index-BBotzkGG.js} +4 -4
  51. package/dist/{Index-B06eCuBA.js → Index-BG93cqYk.js} +4 -4
  52. package/dist/{Index-DhYYK4bK.js → Index-BM1_oBpM.js} +4 -4
  53. package/dist/{Index-DRoOW5Pn.js → Index-BSnRqwpJ.js} +5 -5
  54. package/dist/{Index-DTn47-hP.js → Index-BYtL3lSo.js} +5 -5
  55. package/dist/{Index-Dssdb-0Z.js → Index-BZVo-P4V.js} +10 -10
  56. package/dist/{Index-BFbcjFo4.js → Index-B_Z_PpkS.js} +1 -1
  57. package/dist/{Index-BOx_9tTM.js → Index-BjydxoYI.js} +6 -6
  58. package/dist/{Index-B8Zj0-MX.js → Index-BuG-aJfb.js} +5 -5
  59. package/dist/{Index-BODJXJNp.js → Index-C-m14TL6.js} +2 -2
  60. package/dist/{Index-BgZNiD7A.js → Index-C9yvySfI.js} +3 -3
  61. package/dist/{Index-DeGDlj0B.js → Index-CDHCKzjr.js} +2 -2
  62. package/dist/{Index-CmxFh3dW.js → Index-CPjRQxPF.js} +2 -2
  63. package/dist/{Index-CNhBDG2e.js → Index-CYu8abnf.js} +7 -7
  64. package/dist/{Index-CdsOdgG2.js → Index-Clg_Nhhf.js} +4 -4
  65. package/dist/{Index-W10PQb8i.js → Index-CtBNqz-i.js} +5 -5
  66. package/dist/{Index-s-6Qh_NE.js → Index-D0NkRm0W.js} +2 -2
  67. package/dist/Index-D_vfR_3W.js +4 -0
  68. package/dist/{Index-DL_9LzoR.js → Index-DoVJJN8i.js} +2 -2
  69. package/dist/{Index-CxTwWRD9.js → Index-DvNpC3K8.js} +1 -1
  70. package/dist/{Index-OcBnU480.js → Index-DxSK-dlK.js} +8 -8
  71. package/dist/{Index-CMdPSsp4.js → Index-EEb2q4wc.js} +4 -4
  72. package/dist/{Index-Qh_8JqAv.js → Index-HIGoBqoh.js} +14 -14
  73. package/dist/{Index-qFAg7VVU.js → Index-HnQft6QI.js} +8 -8
  74. package/dist/{Index-CpxzwwQS.js → Index-SFdvDfYi.js} +3 -3
  75. package/dist/{Index-BDAp1CwZ.js → Index-TP9JyQkP.js} +8 -8
  76. package/dist/{Index-C9aBeBBk.js → Index-fQcN_C5L.js} +3 -3
  77. package/dist/{Index-D9bulLeI.js → Index-nYGTKo7d.js} +4 -4
  78. package/dist/{Index-BCHLxp7B.js → Index-npogo0TQ.js} +3 -3
  79. package/dist/{Index.vue_vue_type_script_lang-CriDqp1F.js → Index.vue_vue_type_script_lang-DR98I5IL.js} +2 -2
  80. package/dist/{InputToggleRow-DJarYsVL.js → InputToggleRow-BhsCNWf_.js} +1 -1
  81. package/dist/{ManualPopover-BMrkEHtV.js → ManualPopover-CFhkKuOK.js} +1 -1
  82. package/dist/{MediaWrapper-BYdVpmov.js → MediaWrapper-DLO_o4rT.js} +3 -3
  83. package/dist/{NotBindingText-DGjJoN8-.js → NotBindingText-CnMNzkvI.js} +2 -2
  84. package/dist/{PackageGroup-q7_oBOqw.js → PackageGroup-DAUZNTnm.js} +5 -5
  85. package/dist/{PdfTerms-DBEClYQ5.js → PdfTerms-DYJeOoLs.js} +2 -2
  86. package/dist/{PdfViewer-C_y5sqXB.js → PdfViewer-DbaDJvAg.js} +3 -3
  87. package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-D5ZLw34T.js → PlainHtml.vue_vue_type_script_setup_true_lang-CZ313p-b.js} +1 -1
  88. package/dist/{PriceHeader-BSwv3mzc.js → PriceHeader-CRsWJMnS.js} +7 -7
  89. package/dist/{SearchApi-BM6TTqxW.js → SearchApi-DWU1ndVm.js} +1 -1
  90. package/dist/{SendForm-DfmBbhp9.js → SendForm-Cr-pW5vG.js} +8 -8
  91. package/dist/{Setup-BC1feKr_.js → Setup-BBnXSXdv.js} +1 -1
  92. package/dist/{SmartList-B3pgsg4S.js → SmartList-C2jginM_.js} +1 -1
  93. package/dist/{Sortable.vue_vue_type_script_setup_true_lang-YOP-Y07m.js → Sortable.vue_vue_type_script_setup_true_lang-i33-Le0K.js} +1 -1
  94. package/dist/{TermsSettings-DEkACrRU.js → TermsSettings-DPjj6Q2o.js} +5 -5
  95. package/dist/{ThemeColorRow-qG8Dkkyj.js → ThemeColorRow-tizb3RKS.js} +3 -3
  96. package/dist/{ToggleBinding-Cdtl_-1s.js → ToggleBinding-xdA25yJx.js} +4 -4
  97. package/dist/{UploadModal-1OWPRxA5.js → UploadModal-Bsw2FbvC.js} +2 -2
  98. package/dist/{VideoPlayerInput-DgFNjiKK.js → VideoPlayerInput-CtcW5e7e.js} +4 -4
  99. package/dist/{VideoPlayerSettings-CFuA-7RC.js → VideoPlayerSettings-Cm6_nW5e.js} +2 -2
  100. package/dist/{VideoSelectModal-CSv67eA8.js → VideoSelectModal-9jpw8ngU.js} +3 -3
  101. package/dist/{focusDrawerMixin-r-OZchfV.js → focusDrawerMixin-oG6r1Iql.js} +1 -1
  102. package/dist/{formDrawerState-COVczNhJ.js → formDrawerState-B9_VIrFU.js} +1 -1
  103. package/dist/{helpers-ChwW54Ex.js → helpers-DhIPmpYa.js} +1 -1
  104. package/dist/{index-D1x9O_nJ.js → index-BMOFz5-3.js} +1 -1
  105. package/dist/{index-BMZle8Ew.js → index-BTpkaCWx.js} +1 -1
  106. package/dist/{index-CR52qIBO.js → index-Bob-CETb.js} +1 -1
  107. package/dist/{index-YFcPqc9m.js → index-C-iEQ-wU.js} +8 -8
  108. package/dist/{index-Bf-fiKJf.js → index-CdMMHX3Z.js} +3 -3
  109. package/dist/{index-Bg4JRi5S.js → index-JyktRqp9.js} +1 -1
  110. package/dist/{index-C7chK2UD.js → index-htej9TS1.js} +6 -6
  111. package/dist/index.es.js +2 -2
  112. package/dist/index.umd.js +129 -129
  113. package/dist/{main-DI0diChK.js → main-Bok_VWXU.js} +38 -35
  114. package/dist/{mapFormMixin-Cgvwie9a.js → mapFormMixin-CVi_mIc7.js} +2 -2
  115. package/dist/{omit-DpjD7Dj9.js → omit-DKcsQq0a.js} +1 -1
  116. package/dist/{publicSenderState-BcjNldje.js → publicSenderState-CqK0zBnO.js} +1 -1
  117. package/dist/{splitpanes-BypKTSRL.js → splitpanes-DywCoumW.js} +1 -1
  118. package/dist/{template-Dzexob5I.js → template-C5AARtru.js} +1 -1
  119. package/dist/{tippy.esm-0UMN6kWf.js → tippy.esm-BHHqsYGd.js} +5 -5
  120. package/dist/{useTermsModal-DzH_PDFP.js → useTermsModal-BGEmopnP.js} +4 -4
  121. package/dist/{utils--kBYCNZD.js → utils-DUroTN7r.js} +1 -1
  122. package/dist/{validation-B-omH73u.js → validation-D15kSrq1.js} +2 -2
  123. package/dist/widget.css +1 -1
  124. package/package.json +1 -1
  125. package/dist/DocDetails-B_LWVHGt.js +0 -452
  126. package/dist/Index-lbWFEELM.js +0 -4
@@ -1,28 +1,28 @@
1
- import et from "./AnswerModal-B4LwVv2N.js";
2
- import { o as tt } from "./index-D1x9O_nJ.js";
3
- import { w as Z, C as fe, a as ge } from "./CDropdownItem-BUNVCpSR.js";
4
- import { cK as pe, a as W, g as B, _ as F, o as l, b as p, s as a, d as c, v as d, w as u, B as T, e as m, l as E, f as C, ai as te, n as L, an as q, S as M, aR as Q, c as v, ap as G, $ as ye, F as $, h as ve, I as we, i as H, x as _e, H as nt, p as j, a0 as xe, cL as it, j as Pe, a9 as V, k as P, m as O, D as ot, cM as st, ag as at, A as Ae, W as ee, X as Ce, cI as lt, aD as Te, E as N, a2 as ae, aC as rt, ae as dt, az as be, y as se, c5 as Ee, c6 as ze, G as he, z as ct, a4 as De, cN as le, c7 as ut, cO as mt, bi as pt, a7 as Re, cP as ht, Z as ft, cQ as gt, cR as yt, aI as Oe, r as vt, cS as Ct, cT as bt, cU as kt, u as wt, aB as Se, a6 as _t, cV as xt, C as He, cW as Tt, cX as Dt, ay as Ue, cY as St, cZ as It, c9 as $t, c_ as Ft, c$ as Lt, d0 as Vt, aZ as Bt, d1 as Mt, d2 as Pt } from "./main-DI0diChK.js";
1
+ import et from "./AnswerModal-DQ7hwhB0.js";
2
+ import { o as tt } from "./index-BMOFz5-3.js";
3
+ import { w as Z, C as fe, a as ge } from "./CDropdownItem-C2kEI8Na.js";
4
+ import { cK 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, B as T, e as m, l as E, f as v, ai as te, n as L, an as q, S as M, aR as Q, c as C, ap as G, $ as ye, F as I, h as ve, I as we, i as H, x as _e, H as nt, p as j, a0 as xe, cL as it, j as Pe, a9 as V, k as P, m as O, D as ot, cM as st, ag as lt, A as Ae, W as ee, X as Ce, cI as at, aD as Te, E as N, a2 as le, aC as rt, ae as dt, az as be, y as se, c5 as Ee, c6 as ze, G as he, z as ct, a4 as De, cN as ae, c7 as ut, cO as mt, bi as pt, a7 as Re, cP as ht, Z as ft, cQ as gt, cR as yt, aI as Oe, r as vt, cS as Ct, cT as bt, cU as kt, u as wt, aB as Se, a6 as _t, cV as xt, C as He, cW as Tt, cX as Dt, ay as Ue, cY as St, cZ as $t, c9 as It, c_ as Ft, c$ as Lt, d0 as Vt, aZ as Bt, d1 as Mt, d2 as Pt } from "./main-Bok_VWXU.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-BMHOt380.js";
7
- import { F as qe, d as Ut } from "./tippy.esm-0UMN6kWf.js";
8
- import { m as ne, u as Ge, c as Ie, i as qt } from "./mapFormMixin-Cgvwie9a.js";
9
- import "./helpers-ChwW54Ex.js";
10
- import { a as Gt } from "./ClientAutocomplete-C__yUaxD.js";
11
- import { _ as Nt } from "./Sortable.vue_vue_type_script_setup_true_lang-YOP-Y07m.js";
12
- import { C as Wt, I as Y, _ as Ne, a as J, s as jt } from "./index-C7chK2UD.js";
13
- import { _ as ke } from "./CFormField.vue_vue_type_script_setup_true_lang-Bo2J0c4G.js";
14
- import { S as Zt } from "./SmartList-B3pgsg4S.js";
15
- import { u as We } from "./index-BMZle8Ew.js";
16
- import { r as $e, a as Kt } from "./index-CR52qIBO.js";
17
- import { o as Qt, r as Yt } from "./omit-DpjD7Dj9.js";
18
- import { s as U } from "./formDrawerState-COVczNhJ.js";
6
+ import { l as At, g as Et, a as zt, b as Rt, _ as Ot, D as Ht } from "./DocumentLayout-Bm80wiJ1.js";
7
+ import { F as qe, d as Ut } from "./tippy.esm-BHHqsYGd.js";
8
+ import { m as ne, u as Ge, c as $e, i as qt } from "./mapFormMixin-CVi_mIc7.js";
9
+ import "./helpers-DhIPmpYa.js";
10
+ import { a as Gt } from "./ClientAutocomplete-DrW3GSz8.js";
11
+ import { _ as Nt } from "./Sortable.vue_vue_type_script_setup_true_lang-i33-Le0K.js";
12
+ import { C as Wt, I as Y, _ as Ne, a as J, s as jt } from "./index-htej9TS1.js";
13
+ import { _ as ke } from "./CFormField.vue_vue_type_script_setup_true_lang-B5jn1OCW.js";
14
+ import { S as Zt } from "./SmartList-C2jginM_.js";
15
+ import { u as We } from "./index-BTpkaCWx.js";
16
+ import { r as Ie, a as Kt } from "./index-Bob-CETb.js";
17
+ import { o as Qt, r as Yt } from "./omit-DKcsQq0a.js";
18
+ import { s as U } from "./formDrawerState-B9_VIrFU.js";
19
19
  import { s as Jt } from "./dom-CkTGWrfu.js";
20
- import { S as Xt } from "./SendForm-DfmBbhp9.js";
21
- import "./template-Dzexob5I.js";
22
- import { u as en } from "./validation-B-omH73u.js";
23
- import { C as tn } from "./CCallout-Gd06ds6O.js";
24
- import { _ as nn } from "./CSkeleton.vue_vue_type_script_setup_true_lang-C9loRtrk.js";
25
- import { B as on } from "./BlockMedia-Amo_kdHo.js";
20
+ import { S as Xt } from "./SendForm-Cr-pW5vG.js";
21
+ import "./template-C5AARtru.js";
22
+ import { u as en } from "./validation-D15kSrq1.js";
23
+ import { C as tn } from "./CCallout-DrGHEV4O.js";
24
+ import { _ as nn } from "./CSkeleton.vue_vue_type_script_setup_true_lang-BbQ-OZyM.js";
25
+ import { B as on } from "./BlockMedia-58fSLvOy.js";
26
26
  const sn = {
27
27
  name: "DocumentPostSendStep",
28
28
  mixins: [Z],
@@ -72,7 +72,7 @@ const sn = {
72
72
  sendDocument: B.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 = pe(this.document), n = !t.sms && !t.email;
76
76
  n && (await this.updateDocument({
77
77
  id: e,
78
78
  body: { status: "sent" },
@@ -83,7 +83,7 @@ const sn = {
83
83
  typeof this.onSendFunc == "function" && this.onSendFunc(this.document), await this.handleDocumentLinks();
84
84
  },
85
85
  async senderAnswer() {
86
- const { id: e } = this.document, { senderClient: t } = this.document;
86
+ const { id: e, senderClient: t } = this.document || {};
87
87
  if (!t || !t.publicDocumentId) return !1;
88
88
  const { accept: n } = t.answerMethod || {};
89
89
  if (!n || n === "button") return !1;
@@ -136,22 +136,22 @@ const sn = {
136
136
  this.onCloseFunc && this.onCloseFunc();
137
137
  }
138
138
  }
139
- }, an = { class: "font-inter root" }, ln = { class: "container" }, rn = { class: "icon-wrapper" }, dn = ["textContent"];
139
+ }, ln = { class: "font-inter root" }, an = { 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 l(), p("div", an, [
143
- a("div", ln, [
144
- a("div", rn, [
142
+ return a(), p("div", ln, [
143
+ l("div", an, [
144
+ l("div", rn, [
145
145
  c(r, {
146
146
  size: 20,
147
147
  type: "email"
148
148
  })
149
149
  ]),
150
- a("div", {
150
+ l("div", {
151
151
  class: "title",
152
152
  textContent: d(e.$t("title"))
153
153
  }, null, 8, dn),
154
- t[0] || (t[0] = a("div", { class: "divider" }, null, -1)),
154
+ t[0] || (t[0] = l("div", { class: "divider" }, null, -1)),
155
155
  c(g, {
156
156
  type: "secondary",
157
157
  class: "close-button",
@@ -165,7 +165,7 @@ function cn(e, t, n, s, i, o) {
165
165
  ])
166
166
  ]);
167
167
  }
168
- const un = /* @__PURE__ */ F(sn, [["render", cn], ["__scopeId", "data-v-063acc4f"]]), mn = {
168
+ const un = /* @__PURE__ */ F(sn, [["render", cn], ["__scopeId", "data-v-574be9ee"]]), mn = {
169
169
  name: "Drawer",
170
170
  props: {
171
171
  modelValue: {
@@ -210,16 +210,16 @@ const un = /* @__PURE__ */ F(sn, [["render", cn], ["__scopeId", "data-v-063acc4f
210
210
  }
211
211
  };
212
212
  function pn(e, t, n, s, i, o) {
213
- return l(), p("div", null, [
213
+ return a(), p("div", null, [
214
214
  c(te, { name: "fade" }, {
215
215
  default: u(() => [
216
- !n.hideOverlay && n.modelValue ? (l(), p("div", {
216
+ !n.hideOverlay && n.modelValue ? (a(), p("div", {
217
217
  key: 0,
218
218
  style: E({
219
219
  zIndex: n.zIndex
220
220
  }),
221
221
  class: "d-overlay"
222
- }, null, 4)) : C("", !0)
222
+ }, null, 4)) : v("", !0)
223
223
  ]),
224
224
  _: 1
225
225
  }),
@@ -227,7 +227,7 @@ function pn(e, t, n, s, i, o) {
227
227
  name: `slide-${n.placement}`
228
228
  }, {
229
229
  default: u(() => [
230
- n.modelValue ? (l(), p("div", {
230
+ n.modelValue ? (a(), p("div", {
231
231
  key: 0,
232
232
  class: L([[n.placement], "d-content"]),
233
233
  style: E({
@@ -235,7 +235,7 @@ function pn(e, t, n, s, i, o) {
235
235
  }),
236
236
  onClick: t[0] || (t[0] = q((...r) => o.onOutsideClick && o.onOutsideClick(...r), ["self"]))
237
237
  }, [
238
- a("div", {
238
+ l("div", {
239
239
  style: E({
240
240
  borderRadius: 0,
241
241
  margin: 0,
@@ -248,7 +248,7 @@ function pn(e, t, n, s, i, o) {
248
248
  }, [
249
249
  M(e.$slots, "default", {}, void 0, !0)
250
250
  ], 4)
251
- ], 6)) : C("", !0)
251
+ ], 6)) : v("", !0)
252
252
  ]),
253
253
  _: 3
254
254
  }, 8, ["name"])
@@ -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 l(), v(te, {
285
+ return a(), C(te, {
286
286
  name: n.fixed ? void 0 : "grow-anim",
287
287
  mode: "out-in"
288
288
  }, {
289
289
  default: u(() => [
290
- n.open ? (l(), v(G(n.fixed ? "drawer" : "div"), ye({ key: 0 }, e.$props, {
290
+ n.open ? (a(), C(G(n.fixed ? "drawer" : "div"), ye({ key: 0 }, e.$props, {
291
291
  ref: "drawer",
292
292
  class: [{
293
293
  "is-sticky": !n.fixed
@@ -300,9 +300,9 @@ 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
- a("div", fn, [
304
- a("div", gn, [
305
- a("div", {
303
+ l("div", fn, [
304
+ l("div", gn, [
305
+ l("div", {
306
306
  style: E(
307
307
  n.fixed && {
308
308
  maxWidth: "100%",
@@ -318,7 +318,7 @@ function yn(e, t, n, s, i, o) {
318
318
  ])
319
319
  ]),
320
320
  _: 3
321
- }, 16, ["class", "model-value", "placement"])) : C("", !0)
321
+ }, 16, ["class", "model-value", "placement"])) : v("", !0)
322
322
  ]),
323
323
  _: 3
324
324
  }, 8, ["name"]);
@@ -327,15 +327,15 @@ const vn = /* @__PURE__ */ F(hn, [["render", yn], ["__scopeId", "data-v-cd55344e
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 l(), p("div", bn, [
331
- a("div", kn, [
332
- a("div", wn, [
330
+ return a(), p("div", bn, [
331
+ l("div", kn, [
332
+ l("div", wn, [
333
333
  M(e.$slots, "left")
334
334
  ]),
335
- a("div", _n, [
335
+ l("div", _n, [
336
336
  M(e.$slots, "center")
337
337
  ]),
338
- a("div", xn, [
338
+ l("div", xn, [
339
339
  M(e.$slots, "right")
340
340
  ])
341
341
  ])
@@ -354,42 +354,42 @@ const Dn = /* @__PURE__ */ F(Cn, [["render", Tn]]), Sn = {
354
354
  }
355
355
  },
356
356
  emits: ["update:modelValue"]
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) {
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) {
359
359
  const r = m("CIcon");
360
- return l(), p("div", In, [
361
- a("div", {
360
+ return a(), p("div", $n, [
361
+ l("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 ? (l(), v(r, {
367
+ n.small ? (a(), C(r, {
368
368
  key: 0,
369
369
  type: "edit",
370
370
  size: "20"
371
- })) : (l(), p($, { key: 1 }, [
371
+ })) : (a(), p(I, { key: 1 }, [
372
372
  T(d(e.$t("edit")), 1)
373
373
  ], 64))
374
374
  ], 2),
375
- a("div", {
375
+ l("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 ? (l(), v(r, {
382
+ n.small ? (a(), C(r, {
383
383
  key: 0,
384
384
  type: "eye",
385
385
  size: "20"
386
- })) : (l(), p($, { key: 1 }, [
386
+ })) : (a(), p(I, { key: 1 }, [
387
387
  T(d(e.$t("preview")), 1)
388
388
  ], 64))
389
389
  ], 2)
390
390
  ]);
391
391
  }
392
- const Fn = /* @__PURE__ */ F(Sn, [["render", $n]]), Ln = {
392
+ const Fn = /* @__PURE__ */ F(Sn, [["render", In]]), Ln = {
393
393
  name: "BlockControlButtons",
394
394
  i18nOptions: {
395
395
  namespace: "blockControlButtons",
@@ -430,23 +430,23 @@ const Fn = /* @__PURE__ */ F(Sn, [["render", $n]]), 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 l(), p("div", Vn, [
434
- o.canToggleVisibility ? (l(), p("div", {
433
+ return a(), p("div", Vn, [
434
+ o.canToggleVisibility ? (a(), 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 ? C("", !0) : (l(), p("span", Bn, d(e.$t("hidden")), 1)),
439
+ n.isVisible ? v("", !0) : (a(), 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
- ])) : C("", !0),
445
+ ])) : v("", !0),
446
446
  M(e.$slots, "default", {}, void 0, !0),
447
- !o.isHidden && n.isMovable ? (l(), p("div", Mn, [
448
- a("div", Pn, [
449
- a("div", {
447
+ !o.isHidden && n.isMovable ? (a(), p("div", Mn, [
448
+ l("div", Pn, [
449
+ l("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
- a("div", {
458
+ l("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
- a("div", {
468
+ l("div", {
469
469
  class: "control-button remove",
470
470
  onClick: t[3] || (t[3] = (g) => e.$emit("remove"))
471
471
  }, [
@@ -474,7 +474,7 @@ function An(e, t, n, s, i, o) {
474
474
  size: "16"
475
475
  })
476
476
  ])
477
- ])) : C("", !0)
477
+ ])) : v("", !0)
478
478
  ]);
479
479
  }
480
480
  const En = /* @__PURE__ */ F(Ln, [["render", An], ["__scopeId", "data-v-2b534db7"]]), zn = ["inert"], Rn = /* @__PURE__ */ ve({
@@ -495,9 +495,9 @@ const En = /* @__PURE__ */ F(Ln, [["render", An], ["__scopeId", "data-v-2b534db7
495
495
  };
496
496
  return _e("sectionTopNode", s), _e("setOpenDrawer", b), (w, k) => {
497
497
  const S = m("CButton"), D = m("Animation");
498
- return l(), v(D, { class: "w-full" }, {
498
+ return a(), C(D, { class: "w-full" }, {
499
499
  default: u(() => [
500
- a("div", {
500
+ l("div", {
501
501
  class: L([[
502
502
  {
503
503
  "is-edit-view": w.isEditView,
@@ -515,13 +515,13 @@ const En = /* @__PURE__ */ F(Ln, [["render", An], ["__scopeId", "data-v-2b534db7
515
515
  onMouseoverPassive: k[3] || (k[3] = (y) => i.value = !0),
516
516
  onMouseleavePassive: k[4] || (k[4] = (y) => i.value = !1)
517
517
  }, [
518
- a("div", {
518
+ l("div", {
519
519
  class: L(["block-container", { "spacing-snug": r.value }]),
520
520
  inert: r.value
521
521
  }, [
522
522
  M(w.$slots, "default", {}, void 0, !0)
523
523
  ], 10, zn),
524
- g.value ? (l(), v(En, {
524
+ g.value ? (a(), C(En, {
525
525
  key: 0,
526
526
  class: "control-root z-10",
527
527
  "is-movable": w.canMove,
@@ -531,7 +531,7 @@ const En = /* @__PURE__ */ F(Ln, [["render", An], ["__scopeId", "data-v-2b534db7
531
531
  onRemove: k[2] || (k[2] = (y) => n("remove"))
532
532
  }, {
533
533
  default: u(() => [
534
- w.showEditButton ? (l(), v(S, {
534
+ w.showEditButton ? (a(), C(S, {
535
535
  key: 0,
536
536
  round: "",
537
537
  size: "small",
@@ -544,10 +544,10 @@ const En = /* @__PURE__ */ F(Ln, [["render", An], ["__scopeId", "data-v-2b534db7
544
544
  T(d(w.$t("_common:edit").capitalize()), 1)
545
545
  ]),
546
546
  _: 1
547
- }, 8, ["onClick"])) : C("", !0)
547
+ }, 8, ["onClick"])) : v("", !0)
548
548
  ]),
549
549
  _: 1
550
- }, 8, ["is-movable", "is-visible"])) : C("", !0)
550
+ }, 8, ["is-movable", "is-visible"])) : v("", !0)
551
551
  ], 38)
552
552
  ]),
553
553
  _: 3
@@ -573,24 +573,24 @@ const En = /* @__PURE__ */ F(Ln, [["render", An], ["__scopeId", "data-v-2b534db7
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 l(), p("div", {
576
+ return a(), 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
- a("a", {
579
+ l("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
- a("div", qn, [
587
- a("img", {
586
+ l("div", qn, [
587
+ l("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
- a("div", Nn, " Made in " + d(e.$t("brand.name")), 1)
593
+ l("div", Nn, " Made in " + d(e.$t("brand.name")), 1)
594
594
  ], 8, Un)
595
595
  ], 2);
596
596
  }
@@ -608,15 +608,15 @@ const jn = /* @__PURE__ */ F(Hn, [["render", Wn]]), Zn = { class: "relative h-fu
608
608
  });
609
609
  return (r, g) => {
610
610
  const h = m("CButton"), b = m("portal");
611
- return l(), v(b, { to: "modal" }, {
611
+ return a(), C(b, { to: "modal" }, {
612
612
  default: u(() => [
613
- a("div", {
613
+ l("div", {
614
614
  ref_key: "el",
615
615
  ref: s,
616
616
  style: E(Pe(o)),
617
617
  class: "popup fixed z-[999] min-h-[400px] w-[280px] rounded-lg bg-white p-[1em] pb-[3em] text-sm shadow-xl"
618
618
  }, [
619
- a("div", Zn, [
619
+ l("div", Zn, [
620
620
  c(h, {
621
621
  icon: "x",
622
622
  size: "small",
@@ -636,7 +636,7 @@ 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
- a("div", Kn, d(r.title), 1),
639
+ l("div", Kn, d(r.title), 1),
640
640
  M(r.$slots, "default")
641
641
  ])
642
642
  ], 4)
@@ -1209,17 +1209,17 @@ 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 ai(e, t, n, s, i, o) {
1212
+ function li(e, t, n, s, i, o) {
1213
1213
  const r = m("FormInputRow"), g = m("DragWindow");
1214
- return l(), p("div", null, [
1215
- a("div", Jn, [
1216
- a("div", Xn, d(e.$t("typography")), 1),
1217
- (l(!0), p($, null, P(o.typography, (h) => (l(), p("div", {
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", {
1218
1218
  key: h.label,
1219
1219
  class: "list-option",
1220
1220
  onClick: (b) => i.activeItem = h
1221
1221
  }, [
1222
- a("div", {
1222
+ l("div", {
1223
1223
  style: E({
1224
1224
  fontSize: h.fontSize,
1225
1225
  fontFamily: h.style.fontFamily,
@@ -1228,39 +1228,39 @@ function ai(e, t, n, s, i, o) {
1228
1228
  lineHeight: 1
1229
1229
  })
1230
1230
  }, d(h.label), 5),
1231
- a("div", ti, d(h.style.fontFamily) + " " + d(h.style.fontSize), 1)
1231
+ l("div", ti, d(h.style.fontFamily) + " " + d(h.style.fontSize), 1)
1232
1232
  ], 8, ei))), 128))
1233
1233
  ]),
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_plural")), 1),
1237
- (l(!0), p($, null, P(i.sections, (h) => (l(), p("div", {
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_plural")), 1),
1237
+ (a(!0), p(I, null, P(i.sections, (h) => (a(), p("div", {
1238
1238
  key: h.label,
1239
1239
  class: "list-option",
1240
1240
  onClick: (b) => i.activeItem = h
1241
1241
  }, [
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))
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))
1244
1244
  ], 8, oi))), 128))
1245
1245
  ]),
1246
- i.activeItem ? (l(), v(g, {
1246
+ i.activeItem ? (a(), 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
- (l(!0), p($, null, P(o.activeItemOptions, (h, b) => (l(), v(r, {
1253
+ (a(!0), p(I, null, P(o.activeItemOptions, (h, b) => (a(), C(r, {
1254
1254
  key: b,
1255
1255
  label: h.label,
1256
1256
  inputs: h.inputs
1257
1257
  }, null, 8, ["label", "inputs"]))), 128))
1258
1258
  ]),
1259
1259
  _: 1
1260
- }, 8, ["title", "offset"])) : C("", !0)
1260
+ }, 8, ["title", "offset"])) : v("", !0)
1261
1261
  ]);
1262
1262
  }
1263
- const li = /* @__PURE__ */ F(Yn, [["render", ai], ["__scopeId", "data-v-83027693"]]), ri = {
1263
+ const ai = /* @__PURE__ */ F(Yn, [["render", li], ["__scopeId", "data-v-83027693"]]), ri = {
1264
1264
  i18nOptions: {
1265
1265
  namespaces: "DocSettings",
1266
1266
  messages: {
@@ -1599,22 +1599,22 @@ const li = /* @__PURE__ */ F(Yn, [["render", ai], ["__scopeId", "data-v-83027693
1599
1599
  };
1600
1600
  function ui(e, t, n, s, i, o) {
1601
1601
  const r = m("FormInputRow"), g = m("DragWindow");
1602
- return l(), p("div", di, [
1603
- (l(!0), p($, null, P(o.options, (h, b) => (l(), v(r, {
1602
+ return a(), p("div", di, [
1603
+ (a(!0), p(I, null, P(o.options, (h, b) => (a(), 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 ? (l(), v(g, {
1609
+ i.showDragWindow ? (a(), 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
- (l(!0), p($, null, P(o.priceOptions, (h, b) => (l(), p($, { key: b }, [
1617
- h.type === "divider" ? (l(), p("div", ci)) : (l(), v(r, {
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, {
1618
1618
  key: b,
1619
1619
  label: h.label,
1620
1620
  "info-tooltip": h.infoTooltip,
@@ -1623,7 +1623,7 @@ function ui(e, t, n, s, i, o) {
1623
1623
  ], 64))), 128))
1624
1624
  ]),
1625
1625
  _: 1
1626
- }, 8, ["offset", "title"])) : C("", !0)
1626
+ }, 8, ["offset", "title"])) : v("", !0)
1627
1627
  ]);
1628
1628
  }
1629
1629
  const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb"]]), pi = {
@@ -1670,7 +1670,7 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
1670
1670
  name: "ExtensionTab",
1671
1671
  components: {
1672
1672
  Sortable: Nt,
1673
- Spinner: at,
1673
+ Spinner: lt,
1674
1674
  CAutocomplete: Gt,
1675
1675
  CDropdown: fe,
1676
1676
  CDropdownItem: ge
@@ -1802,7 +1802,7 @@ const mi = /* @__PURE__ */ F(ri, [["render", ui], ["__scopeId", "data-v-5b9bfecb
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
- ...lt(),
1805
+ ...at(),
1806
1806
  ...o && { answerMethod: o },
1807
1807
  ...g
1808
1808
  }));
@@ -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 }, Ii = ["textContent"], $i = { style: { "line-height": "1.5" } }, Fi = { style: { "font-weight": "500" } }, Li = {
1847
+ }, Si = { key: 2 }, $i = ["textContent"], Ii = { 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 = ae("tooltip");
1868
- return l(), p("div", hi, [
1869
- e.allAuthenticatedCRMs.length > 1 ? (l(), v(h, {
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, {
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,7 +1881,7 @@ function Gi(e, t, n, s, i, o) {
1881
1881
  })
1882
1882
  ]),
1883
1883
  default: u(() => [
1884
- (l(!0), p($, null, P(e.allAuthenticatedCRMs, (f) => (l(), v(g, {
1884
+ (a(!0), p(I, null, P(e.allAuthenticatedCRMs, (f) => (a(), C(g, {
1885
1885
  key: f,
1886
1886
  type: i.activeCrm === f ? "primary" : "secondary",
1887
1887
  size: "small",
@@ -1894,19 +1894,19 @@ function Gi(e, t, n, s, i, o) {
1894
1894
  }, 1032, ["type", "onClick"]))), 128))
1895
1895
  ]),
1896
1896
  _: 1
1897
- })) : C("", !0),
1898
- i.isLoading && !i.dealDetails ? (l(), p("div", fi, [
1897
+ })) : v("", !0),
1898
+ i.isLoading && !i.dealDetails ? (a(), p("div", fi, [
1899
1899
  c(b, {
1900
1900
  size: "24",
1901
1901
  color: "grey"
1902
1902
  })
1903
- ])) : i.activeCrm ? (l(), p($, { 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", {
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", {
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
- a("div", {
1927
+ l("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] = a("div", { class: "divider" }, null, -1))
1933
- ])) : C("", !0),
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($, { 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(), v(G(i.dealDetails.externalUrl ? "a" : "span"), {
1932
+ t[7] || (t[7] = l("div", { class: "divider" }, null, -1))
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"), {
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 ? (l(), p("div", Di, d(o.priceFormat(i.dealDetails.value, {
1948
+ i.dealDetails.currency ? (a(), p("div", Di, d(o.priceFormat(i.dealDetails.value, {
1949
1949
  showZero: !1,
1950
1950
  currency: i.dealDetails.currency
1951
- })), 1)) : C("", !0)
1952
- ])) : C("", !0),
1953
- a("div", null, [
1951
+ })), 1)) : v("", !0)
1952
+ ])) : v("", !0),
1953
+ l("div", null, [
1954
1954
  c(r, {
1955
1955
  loading: i.isLoading,
1956
1956
  size: "small",
@@ -1977,12 +1977,12 @@ function Gi(e, t, n, s, i, o) {
1977
1977
  textContent: d(e.$t("suggestClients"))
1978
1978
  }, null, 8, ["textContent"])
1979
1979
  ])
1980
- ], 64)) : (l(), p("div", Si, [
1981
- a("div", {
1980
+ ], 64)) : (a(), p("div", Si, [
1981
+ l("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, Ii),
1985
+ }, null, 8, $i),
1986
1986
  c(w, {
1987
1987
  ref: "input",
1988
1988
  modelValue: i.searchQuery,
@@ -1999,16 +1999,16 @@ 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
- a("div", $i, [
2003
- a("div", Fi, d(f.name), 1),
2004
- a("div", Li, [
2002
+ l("div", Ii, [
2003
+ l("div", Fi, d(f.name), 1),
2004
+ l("div", Li, [
2005
2005
  T(d(f.externalReference.type.capitalize()) + " " + d(f.externalReference.typeId) + " ", 1),
2006
- f.value && f.currency ? (l(), p($, { key: 0 }, [
2006
+ f.value && f.currency ? (a(), p(I, { key: 0 }, [
2007
2007
  T(" · " + d(o.priceFormat(f.value, {
2008
2008
  showZero: !1,
2009
2009
  currency: f.currency
2010
2010
  })), 1)
2011
- ], 64)) : C("", !0)
2011
+ ], 64)) : v("", !0)
2012
2012
  ])
2013
2013
  ])
2014
2014
  ]),
@@ -2019,9 +2019,9 @@ function Gi(e, t, n, s, i, o) {
2019
2019
  }, 8, ["modelValue", "data", "loading", "placeholder"])
2020
2020
  ]))
2021
2021
  ]),
2022
- o.showDealProducts ? (l(), p("div", Vi, [
2023
- a("div", Bi, [
2024
- a("div", Mi, [
2022
+ o.showDealProducts ? (a(), p("div", Vi, [
2023
+ l("div", Bi, [
2024
+ l("div", Mi, [
2025
2025
  T(d(e.$t("productsTitle")) + " ", 1),
2026
2026
  N(c(k, {
2027
2027
  type: "info",
@@ -2033,7 +2033,7 @@ function Gi(e, t, n, s, i, o) {
2033
2033
  ]
2034
2034
  ])
2035
2035
  ]),
2036
- a("div", {
2036
+ l("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 ? (l(), v(S, {
2046
+ i.dealDetails.articles && i.dealDetails.articles.length ? (a(), C(S, {
2047
2047
  key: 0,
2048
2048
  "item-key": "_uniqueId",
2049
2049
  list: i.dealDetails.articles,
@@ -2058,46 +2058,46 @@ 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
- a("div", {
2061
+ l("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
- a("div", {
2065
+ l("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
- a("div", zi, [
2069
+ l("div", zi, [
2070
2070
  T(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 ? (l(), p($, { key: 0 }, [
2074
+ f.vat !== null ? (a(), p(I, { key: 0 }, [
2075
2075
  T(" · " + d(e._document.$t("vat").capitalize()) + " " + d(f.vat) + "% ", 1)
2076
- ], 64)) : C("", !0)
2076
+ ], 64)) : v("", !0)
2077
2077
  ])
2078
2078
  ], 8, Ai)
2079
2079
  ]),
2080
2080
  _: 1
2081
- }, 8, ["list", "clone"])) : (l(), p("div", Ri, [
2081
+ }, 8, ["list", "clone"])) : (a(), p("div", Ri, [
2082
2082
  c(k, {
2083
2083
  type: "info",
2084
2084
  size: "13",
2085
2085
  style: { margin: "1px 4px 0 0", "flex-shrink": "0" }
2086
2086
  }),
2087
- a("div", {
2087
+ l("div", {
2088
2088
  textContent: d(e.$t("noProducts", { type: o.dealType }))
2089
2089
  }, null, 8, Oi)
2090
2090
  ]))
2091
- ])) : C("", !0)
2092
- ], 64)) : (l(), p("div", Hi, [
2091
+ ])) : v("", !0)
2092
+ ], 64)) : (a(), p("div", Hi, [
2093
2093
  c(k, {
2094
2094
  type: "info",
2095
2095
  size: "16",
2096
2096
  class: "text-primary-500",
2097
2097
  style: { "padding-bottom": "5px" }
2098
2098
  }),
2099
- a("div", Ui, d(e.$t("noCrm")), 1),
2100
- a("div", qi, [
2099
+ l("div", Ui, d(e.$t("noCrm")), 1),
2100
+ l("div", qi, [
2101
2101
  c(D, {
2102
2102
  to: { name: "settings" },
2103
2103
  style: { "font-weight": "500" },
@@ -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: $e,
2186
+ required: Ie,
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: $e }
2191
+ value: { required: Ie }
2192
2192
  }
2193
2193
  },
2194
2194
  computed: {
@@ -2236,12 +2236,12 @@ 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 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)
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)
2243
2243
  ]),
2244
- a("form", {
2244
+ l("form", {
2245
2245
  style: { width: "100%" },
2246
2246
  onSubmit: t[2] || (t[2] = q((...b) => o.submit && o.submit(...b), ["prevent"])),
2247
2247
  onKeyup: t[3] || (t[3] = dt((...b) => o.submit && o.submit(...b), ["enter"]))
@@ -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 ? (l(), v(h, {
2290
+ n.existingFieldId ? (a(), C(h, {
2291
2291
  key: 0,
2292
2292
  style: { "margin-top": "5px" },
2293
2293
  type: "none",
@@ -2295,7 +2295,7 @@ function Yi(e, t, n, s, i, o) {
2295
2295
  wide: "",
2296
2296
  onClick: o.remove,
2297
2297
  textContent: d(e.$t("_common:remove"))
2298
- }, null, 8, ["onClick", "textContent"])) : C("", !0)
2298
+ }, null, 8, ["onClick", "textContent"])) : v("", !0)
2299
2299
  ], 32)
2300
2300
  ]);
2301
2301
  }
@@ -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
- }, ao = ["onDragstart", "textContent"], lo = { class: "field-actions" }, ro = {
2441
+ }, lo = ["onDragstart", "textContent"], ao = { class: "field-actions" }, ro = {
2442
2442
  key: 1,
2443
2443
  style: { "text-align": "center" }
2444
2444
  }, co = {
@@ -2453,13 +2453,13 @@ const Ji = /* @__PURE__ */ F(Wi, [["render", Yi]]), Xi = {
2453
2453
  }, vo = ["onDragstart", "textContent"], Co = { class: "field-actions" };
2454
2454
  function bo(e, t, n, s, i, o) {
2455
2455
  const r = m("CInput"), g = m("CField"), h = m("CButton"), b = m("SmartList"), w = m("CIcon"), k = m("CAccordion");
2456
- return l(), p("div", eo, [
2457
- a("div", to, [
2458
- a("div", {
2456
+ return a(), p("div", eo, [
2457
+ l("div", to, [
2458
+ l("div", {
2459
2459
  style: { "font-size": "16px", "font-weight": "600" },
2460
2460
  textContent: d(e.$t("title"))
2461
2461
  }, null, 8, no),
2462
- a("div", {
2462
+ l("div", {
2463
2463
  style: { color: "hsl(0, 0%, 35%)" },
2464
2464
  textContent: d(e.$t("description"))
2465
2465
  }, null, 8, io)
@@ -2471,31 +2471,31 @@ function bo(e, t, n, s, i, o) {
2471
2471
  filled: "",
2472
2472
  size: "small"
2473
2473
  }, null, 8, ["modelValue", "placeholder"]),
2474
- i.query ? (l(), p("div", oo, [
2474
+ i.query ? (a(), 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
2480
  default: u(({ items: S }) => [
2481
- a("div", null, [
2482
- S.length ? (l(!0), p($, { key: 0 }, P(S, (D, y) => (l(), p("div", {
2481
+ l("div", null, [
2482
+ S.length ? (a(!0), p(I, { key: 0 }, P(S, (D, y) => (a(), p("div", {
2483
2483
  key: y,
2484
2484
  class: "field-parent flex w-full items-center"
2485
2485
  }, [
2486
- a("div", so, [
2486
+ l("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
- a("span", {
2493
+ l("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, ao),
2498
+ }, null, 40, lo),
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
- a("div", lo, [
2514
- !D.inputDisabled && !D.virtual ? (l(), v(h, {
2513
+ l("div", ao, [
2514
+ !D.inputDisabled && !D.virtual ? (a(), C(h, {
2515
2515
  key: 0,
2516
2516
  icon: "edit",
2517
2517
  size: "small",
@@ -2519,7 +2519,7 @@ function bo(e, t, n, s, i, o) {
2519
2519
  pattern: "tertiary",
2520
2520
  style: { width: "30px", height: "30px", "border-radius": "3px" },
2521
2521
  onClick: (f) => o.openFieldModal({ existingFieldId: D.id })
2522
- }, null, 8, ["onClick"])) : C("", !0),
2522
+ }, null, 8, ["onClick"])) : v("", !0),
2523
2523
  c(h, {
2524
2524
  icon: "copy",
2525
2525
  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)) : (l(), p("div", ro, d(e.$t("_common:noResults")), 1))
2533
+ ]))), 128)) : (a(), p("div", ro, d(e.$t("_common:noResults")), 1))
2534
2534
  ])
2535
2535
  ]),
2536
2536
  _: 1
2537
2537
  }, 8, ["items", "filter-method", "query"])
2538
- ])) : (l(), p("div", co, [
2539
- a("div", uo, [
2538
+ ])) : (a(), p("div", co, [
2539
+ l("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
- (l(!0), p($, null, P([
2549
+ (a(!0), p(I, null, P([
2550
2550
  {
2551
2551
  label: e.$t("usedFields"),
2552
2552
  defaultOpen: !0,
@@ -2564,18 +2564,18 @@ function bo(e, t, n, s, i, o) {
2564
2564
  defaultOpen: !o.usedFields.length,
2565
2565
  items: o.unUsedFields
2566
2566
  }
2567
- ], (S, D) => (l(), v(k, {
2567
+ ], (S, D) => (a(), C(k, {
2568
2568
  key: D,
2569
2569
  "default-open": S.defaultOpen,
2570
2570
  style: { "border-top": "1px solid hsl(0, 0%, 88%)" }
2571
2571
  }, {
2572
2572
  trigger: u(({ expanded: y }) => [
2573
- a("div", mo, [
2574
- a("span", null, [
2575
- a("span", {
2573
+ l("div", mo, [
2574
+ l("span", null, [
2575
+ l("span", {
2576
2576
  textContent: d(S.label)
2577
2577
  }, null, 8, po),
2578
- a("span", {
2578
+ l("span", {
2579
2579
  style: { opacity: "0.45", "padding-left": "0.5em" },
2580
2580
  textContent: d(S.items.length)
2581
2581
  }, null, 8, ho)
@@ -2588,19 +2588,19 @@ function bo(e, t, n, s, i, o) {
2588
2588
  ])
2589
2589
  ]),
2590
2590
  default: u(() => [
2591
- a("div", fo, [
2592
- S.items.length ? (l(!0), p($, { key: 1 }, P(S.items, (y, f) => (l(), p("div", {
2591
+ l("div", fo, [
2592
+ S.items.length ? (a(!0), p(I, { key: 1 }, P(S.items, (y, f) => (a(), p("div", {
2593
2593
  key: f,
2594
2594
  class: "field-parent flex w-full items-center"
2595
2595
  }, [
2596
- a("div", yo, [
2596
+ l("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
- a("span", {
2603
+ l("span", {
2604
2604
  class: "drag-label",
2605
2605
  draggable: !0,
2606
2606
  onDragstart: (x) => o.onDragStart(x, y),
@@ -2620,8 +2620,8 @@ function bo(e, t, n, s, i, o) {
2620
2620
  ]),
2621
2621
  _: 2
2622
2622
  }, 1024),
2623
- a("div", Co, [
2624
- !y.inputDisabled && !y.virtual ? (l(), v(h, {
2623
+ l("div", Co, [
2624
+ !y.inputDisabled && !y.virtual ? (a(), C(h, {
2625
2625
  key: 0,
2626
2626
  icon: "edit",
2627
2627
  size: "small",
@@ -2629,7 +2629,7 @@ function bo(e, t, n, s, i, o) {
2629
2629
  pattern: "tertiary",
2630
2630
  style: { width: "30px", height: "30px", "border-radius": "3px" },
2631
2631
  onClick: (x) => o.openFieldModal({ existingFieldId: y.id })
2632
- }, null, 8, ["onClick"])) : C("", !0),
2632
+ }, null, 8, ["onClick"])) : v("", !0),
2633
2633
  c(h, {
2634
2634
  icon: "copy",
2635
2635
  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)) : (l(), p("div", {
2643
+ ]))), 128)) : (a(), 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"))
@@ -2691,8 +2691,8 @@ 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 l(), p("div", null, [
2695
- a("div", {
2694
+ return a(), p("div", null, [
2695
+ l("div", {
2696
2696
  class: "fixed inset-0 z-10",
2697
2697
  onClick: t[0] || (t[0] = q((g) => e.$emit("close"), ["self"]))
2698
2698
  }),
@@ -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
- a("div", _o, [
2711
- a("div", {
2710
+ l("div", _o, [
2711
+ l("div", {
2712
2712
  class: "pb-4",
2713
2713
  innerHTML: e.$t("text")
2714
2714
  }, null, 8, xo),
@@ -3116,7 +3116,7 @@ const Do = /* @__PURE__ */ F(wo, [["render", To]]), So = {
3116
3116
  }
3117
3117
  ];
3118
3118
  return e.forEach((t) => {
3119
- Ie[t.key] && (t.subMenu = (Ie[t.key](this._document || {}) || []).map((n) => ({ ...n, key: t.key, locked: t.locked }))), this.tooltips[t.key] && (t.hasTooltip = !0);
3119
+ $e[t.key] && (t.subMenu = ($e[t.key](this._document || {}) || []).map((n) => ({ ...n, key: t.key, locked: t.locked }))), this.tooltips[t.key] && (t.hasTooltip = !0);
3120
3120
  }), e;
3121
3121
  },
3122
3122
  availableBlocks() {
@@ -3237,7 +3237,7 @@ const Do = /* @__PURE__ */ F(wo, [["render", To]]), So = {
3237
3237
  };
3238
3238
  }
3239
3239
  }
3240
- }, Io = { class: "menu-container" }, $o = {
3240
+ }, $o = { class: "menu-container" }, Io = {
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 = {
@@ -3249,23 +3249,23 @@ const Do = /* @__PURE__ */ F(wo, [["render", To]]), So = {
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
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 l(), p("div", {
3252
+ return a(), 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 ? (l(), v(r, {
3257
+ !n.canUseBlocks && i.showConvertEditableDialog ? (a(), 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
- }, null, 8, ["target", "onConvert"])) : C("", !0),
3263
- a("div", Io, [
3264
- (l(!0), p($, null, P([
3262
+ }, null, 8, ["target", "onConvert"])) : v("", !0),
3263
+ l("div", $o, [
3264
+ (a(!0), p(I, null, P([
3265
3265
  { data: o.primaryBlocks },
3266
3266
  { data: o.secondaryBlocks }
3267
- ], (f, x) => (l(), p("div", { key: x }, [
3268
- x > 0 ? (l(), p("div", $o)) : C("", !0),
3267
+ ], (f, x) => (a(), p("div", { key: x }, [
3268
+ x > 0 ? (a(), p("div", Io)) : v("", !0),
3269
3269
  c(k, {
3270
3270
  group: { name: "blocks", pull: "clone", put: !1 },
3271
3271
  "get-child-payload": (_) => s.getBlockPayload(o.getSectionKey({ data: f.data, index: _ })),
@@ -3280,12 +3280,12 @@ function Eo(e, t, n, s, i, o) {
3280
3280
  behaviour: "copy"
3281
3281
  }, {
3282
3282
  default: u(() => [
3283
- (l(!0), p($, null, P(f.data, (_) => (l(), v(w, {
3283
+ (a(!0), p(I, null, P(f.data, (_) => (a(), C(w, {
3284
3284
  key: _.key,
3285
3285
  class: L({ "drag-item": o.canDrag })
3286
3286
  }, {
3287
3287
  default: u(() => [
3288
- a("div", ye(
3288
+ l("div", ye(
3289
3289
  { ref_for: !0 },
3290
3290
  _.hasTooltip ? { "data-tooltip-key": _.key } : null,
3291
3291
  {
@@ -3309,20 +3309,20 @@ function Eo(e, t, n, s, i, o) {
3309
3309
  onClick: (A) => o.onUseBlock({ block: _, openUpgradeModal: y })
3310
3310
  }, {
3311
3311
  default: u(() => [
3312
- a("div", Lo, [
3313
- a("div", Vo, [
3314
- a("div", {
3312
+ l("div", Lo, [
3313
+ l("div", Vo, [
3314
+ l("div", {
3315
3315
  class: "option-image",
3316
3316
  innerHTML: _.icon
3317
3317
  }, null, 8, Bo),
3318
- a("div", Mo, d(e.$t(`blocks.${_.key}`)), 1)
3318
+ l("div", Mo, d(e.$t(`blocks.${_.key}`)), 1)
3319
3319
  ]),
3320
- _.locked ? (l(), v(g, { key: 0 })) : !n.fixed && _.subMenu ? (l(), v(h, {
3320
+ _.locked ? (a(), C(g, { key: 0 })) : !n.fixed && _.subMenu ? (a(), C(h, {
3321
3321
  key: 1,
3322
3322
  type: "chevron-right",
3323
3323
  size: "14",
3324
3324
  style: { color: "hsl(205, 10%, 65%)" }
3325
- })) : C("", !0)
3325
+ })) : v("", !0)
3326
3326
  ])
3327
3327
  ]),
3328
3328
  _: 2
@@ -3339,7 +3339,7 @@ function Eo(e, t, n, s, i, o) {
3339
3339
  ]),
3340
3340
  c(te, { name: "slide-right" }, {
3341
3341
  default: u(() => [
3342
- N(a("div", {
3342
+ N(l("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)
@@ -3361,21 +3361,21 @@ function Eo(e, t, n, s, i, o) {
3361
3361
  behaviour: "copy"
3362
3362
  }, {
3363
3363
  default: u(() => [
3364
- (l(!0), p($, null, P(i.activeSubMenu, (f, x) => (l(), v(w, {
3364
+ (a(!0), p(I, null, P(i.activeSubMenu, (f, x) => (a(), C(w, {
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
- a("div", Po, [
3370
- a("div", {
3369
+ l("div", Po, [
3370
+ l("div", {
3371
3371
  class: "drag-item-preview",
3372
3372
  onClick: (_) => o.onUseBlock({ block: f, openUpgradeModal: y }),
3373
3373
  innerHTML: f.previewUrl
3374
3374
  }, null, 8, Ao),
3375
- f.locked ? (l(), v(g, {
3375
+ f.locked ? (a(), C(g, {
3376
3376
  key: 0,
3377
3377
  class: "absolute bottom-2 right-4"
3378
- })) : C("", !0)
3378
+ })) : v("", !0)
3379
3379
  ])
3380
3380
  ]),
3381
3381
  _: 2
@@ -3413,12 +3413,12 @@ const zo = /* @__PURE__ */ F(So, [["render", Eo], ["__scopeId", "data-v-babdf4c0
3413
3413
  }
3414
3414
  },
3415
3415
  components: {
3416
- Design: li,
3416
+ Design: ai,
3417
3417
  Fields: ko,
3418
3418
  ExtensionTab: Ni,
3419
3419
  DocumentGeneralSettings: mi,
3420
3420
  DocumentGuide: ct(
3421
- () => import("./index-Bg4JRi5S.js")
3421
+ () => import("./index-JyktRqp9.js")
3422
3422
  ),
3423
3423
  MenuBlocks: zo,
3424
3424
  Simplebar: Q
@@ -3494,41 +3494,41 @@ const zo = /* @__PURE__ */ F(So, [["render", Eo], ["__scopeId", "data-v-babdf4c0
3494
3494
  };
3495
3495
  function jo(e, t, n, s, i, o) {
3496
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 l(), p("div", null, [
3498
- a("div", {
3497
+ return a(), p("div", null, [
3498
+ l("div", {
3499
3499
  style: E([{ 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 ? (l(), p("div", {
3502
+ n.fixed ? (a(), p("div", {
3503
3503
  key: 0,
3504
3504
  class: "fixed inset-0",
3505
3505
  onClick: t[0] || (t[0] = (f) => e.$emit("close"))
3506
- })) : C("", !0),
3507
- a("div", {
3506
+ })) : v("", !0),
3507
+ l("div", {
3508
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)" }])
3509
3509
  }, [
3510
- n.isLegacyTemplate ? C("", !0) : (l(), p("div", Oo, [
3511
- a("div", {
3510
+ n.isLegacyTemplate ? v("", !0) : (a(), p("div", Oo, [
3511
+ l("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
- a("div", {
3516
+ l("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
- a("div", {
3521
+ l("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 ? (l(), p("div", {
3526
+ o.extensionTabType ? (a(), 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
- a("div", {
3531
+ l("div", {
3532
3532
  style: E([{ 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"
@@ -3544,8 +3544,8 @@ function jo(e, t, n, s, i, o) {
3544
3544
  size: "14"
3545
3545
  }, null, 8, ["type"])
3546
3546
  ], 4)
3547
- ], 2)) : C("", !0),
3548
- a("div", {
3547
+ ], 2)) : v("", !0),
3548
+ l("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" ? (l(), v(h, {
3559
+ i.tab === "blocks" ? (a(), 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
- a("div", Go, [
3569
+ l("div", Go, [
3570
3570
  c(g, {
3571
3571
  "icon-left": "help",
3572
3572
  type: "none",
@@ -3577,17 +3577,17 @@ function jo(e, t, n, s, i, o) {
3577
3577
  }, {
3578
3578
  default: u(() => [
3579
3579
  T(d(e.$t("guideButton")) + " ", 1),
3580
- i.showGuideNotification ? (l(), p("div", No)) : C("", !0)
3580
+ i.showGuideNotification ? (a(), 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"])) : (l(), p("div", Wo, [
3587
+ }, 8, ["_document", "set", "remove-value", "fixed", "can-use-blocks"])) : (a(), p("div", Wo, [
3588
3588
  c(D, { class: "h-full w-full" }, {
3589
3589
  default: u(() => [
3590
- i.tab === "design" ? (l(), v(b, {
3590
+ i.tab === "design" ? (a(), 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" ? (l(), v(w, {
3598
+ }, null, 8, ["_document", "set", "offset"])) : i.tab === "fields" ? (a(), C(w, {
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" ? (l(), v(k, {
3606
+ }, null, 8, ["_document", "crm-service", "set"])) : i.tab === "extension" ? (a(), C(k, {
3607
3607
  key: 2,
3608
3608
  _document: n.state,
3609
3609
  _value: {
@@ -3612,8 +3612,8 @@ function jo(e, t, n, s, i, o) {
3612
3612
  articles: "articles"
3613
3613
  },
3614
3614
  onInput: t[7] || (t[7] = ({ key: f, value: x }) => n.set({ key: f, value: x }))
3615
- }, null, 8, ["_document"])) : C("", !0),
3616
- i.tab === "generalSettings" ? (l(), v(S, {
3615
+ }, null, 8, ["_document"])) : v("", !0),
3616
+ i.tab === "generalSettings" ? (a(), C(S, {
3617
3617
  key: 3,
3618
3618
  _document: n.state,
3619
3619
  _value: {
@@ -3630,15 +3630,15 @@ function jo(e, t, n, s, i, o) {
3630
3630
  offset: n.fixed ? 0 : n.width,
3631
3631
  class: L({ "!top-0 rounded-sm": n.isLegacyTemplate }),
3632
3632
  onInput: t[8] || (t[8] = ({ key: f, value: x }) => n.set({ key: f, value: x }))
3633
- }, null, 8, ["_document", "offset", "class"])) : C("", !0)
3633
+ }, null, 8, ["_document", "offset", "class"])) : v("", !0)
3634
3634
  ]),
3635
3635
  _: 1
3636
3636
  })
3637
3637
  ])),
3638
- i.showGuide ? (l(), v(y, {
3638
+ i.showGuide ? (a(), C(y, {
3639
3639
  key: 3,
3640
3640
  onClose: t[9] || (t[9] = (f) => i.showGuide = !1)
3641
- })) : C("", !0)
3641
+ })) : v("", !0)
3642
3642
  ], 4)
3643
3643
  ], 4)
3644
3644
  ]);
@@ -3827,8 +3827,11 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
3827
3827
  addedIndex: s
3828
3828
  });
3829
3829
  },
3830
- onBlockRemove(e, t) {
3831
- if (e.itemId.startsWith("packageGroup")) {
3830
+ async onBlockRemove(e, t) {
3831
+ if (ae([this.nestedReadLayout[t]]).forEach((s) => {
3832
+ const i = this.readLayout.findIndex((o) => o.nodeId === s.nodeId);
3833
+ this.removeFormValue(`template.views.read.nodes[${i}]`);
3834
+ }), await this.$nextTick(), e.itemId.startsWith("packageGroup")) {
3832
3835
  const s = e.itemId.split("-")[1];
3833
3836
  this.removePackageGroup(s);
3834
3837
  } else
@@ -3845,10 +3848,6 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
3845
3848
  this.removeFormKeyValue(h);
3846
3849
  });
3847
3850
  }, "children");
3848
- le([this.nestedReadLayout[t]]).forEach((s) => {
3849
- const i = this.readLayout.findIndex((o) => o.nodeId === s.nodeId);
3850
- this.removeFormValue(`template.views.read.nodes[${i}]`);
3851
- });
3852
3851
  },
3853
3852
  removePackageGroup(e) {
3854
3853
  const t = this._document.packageGroups.getPackageGroupUniqId(e);
@@ -3878,7 +3877,7 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
3878
3877
  );
3879
3878
  this.setFormValue({
3880
3879
  key: "template.views.read.nodes",
3881
- value: le(i)
3880
+ value: ae(i)
3882
3881
  });
3883
3882
  } else if (!t && n !== null) {
3884
3883
  const { sectionKey: i, createNewSection: o, addValidation: r, contentData: g } = s, { readView: h, validation: b, data: w } = o({
@@ -3894,7 +3893,7 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
3894
3893
  ];
3895
3894
  this.setFormValue({
3896
3895
  key: "template.views.read.nodes",
3897
- value: le(S)
3896
+ value: ae(S)
3898
3897
  });
3899
3898
  }
3900
3899
  },
@@ -3912,8 +3911,8 @@ const Zo = /* @__PURE__ */ F(Ro, [["render", jo], ["__scopeId", "data-v-2721fb3f
3912
3911
  }, ns = ["innerHTML"];
3913
3912
  function is(e, t, n, s, i, o) {
3914
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");
3915
- return l(), p("div", Qo, [
3916
- a("div", {
3914
+ return a(), p("div", Qo, [
3915
+ l("div", {
3917
3916
  class: L([{
3918
3917
  "is-edit-view": o.isEditView,
3919
3918
  "is-empty-list": !o.nestedReadLayout.length
@@ -3921,8 +3920,8 @@ function is(e, t, n, s, i, o) {
3921
3920
  }, [
3922
3921
  c(b, { close: n.close }, {
3923
3922
  left: u(() => [
3924
- a("div", Yo, [
3925
- n.close ? (l(), v(r, {
3923
+ l("div", Yo, [
3924
+ n.close ? (a(), C(r, {
3926
3925
  key: 0,
3927
3926
  "icon-props": { size: 20 },
3928
3927
  size: "normal",
@@ -3931,8 +3930,8 @@ function is(e, t, n, s, i, o) {
3931
3930
  type: "none",
3932
3931
  pattern: "tertiary",
3933
3932
  onClick: n.close
3934
- }, null, 8, ["onClick"])) : C("", !0),
3935
- n.goBack && e.mq !== "sm" ? (l(), v(r, {
3933
+ }, null, 8, ["onClick"])) : v("", !0),
3934
+ n.goBack && e.mq !== "sm" ? (a(), C(r, {
3936
3935
  key: 1,
3937
3936
  "icon-props": { size: 20 },
3938
3937
  type: "none",
@@ -3940,7 +3939,7 @@ function is(e, t, n, s, i, o) {
3940
3939
  icon: "arrow-left",
3941
3940
  class: "mr-2 h-[2.25em] w-[2.25em] backdrop-blur-[25px]",
3942
3941
  onClick: n.goBack
3943
- }, null, 8, ["onClick"])) : C("", !0),
3942
+ }, null, 8, ["onClick"])) : v("", !0),
3944
3943
  c(r, {
3945
3944
  size: "normal",
3946
3945
  type: "none",
@@ -3956,7 +3955,7 @@ function is(e, t, n, s, i, o) {
3956
3955
  ])
3957
3956
  ]),
3958
3957
  center: u(() => [
3959
- a("div", Jo, [
3958
+ l("div", Jo, [
3960
3959
  N(c(g, {
3961
3960
  small: e.mq === "sm",
3962
3961
  "model-value": n.view,
@@ -3964,8 +3963,8 @@ function is(e, t, n, s, i, o) {
3964
3963
  }, null, 8, ["small", "model-value"]), [
3965
3964
  [he, o.nestedReadLayout.length]
3966
3965
  ]),
3967
- !o.isEditView && !["sm", "md", "lg"].includes(e.mq) ? (l(), p("div", Xo, [
3968
- (l(), p($, null, P(["desktop", "tablet", "mobile"], (z) => a("div", {
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", {
3969
3968
  key: z,
3970
3969
  style: E(
3971
3970
  i.previewDevice === z && {
@@ -3982,7 +3981,7 @@ function is(e, t, n, s, i, o) {
3982
3981
  size: "20"
3983
3982
  }, null, 8, ["type"])
3984
3983
  ], 12, es)), 64))
3985
- ])) : C("", !0)
3984
+ ])) : v("", !0)
3986
3985
  ])
3987
3986
  ]),
3988
3987
  right: u(() => [
@@ -4003,7 +4002,7 @@ function is(e, t, n, s, i, o) {
4003
4002
  }, null, 8, ["state", "set", "remove-value", "template", "fixed", "can-use-blocks", "is-legacy-template", "width"]), [
4004
4003
  [he, i.drawerState.showLeft]
4005
4004
  ]),
4006
- a("div", {
4005
+ l("div", {
4007
4006
  ref: "scroll-body",
4008
4007
  class: L([{
4009
4008
  "device-offset": o.isEditView
@@ -4014,7 +4013,7 @@ function is(e, t, n, s, i, o) {
4014
4013
  }
4015
4014
  )
4016
4015
  }, [
4017
- a("div", {
4016
+ l("div", {
4018
4017
  class: L([[
4019
4018
  {
4020
4019
  "is-device-edit": o.isEditView,
@@ -4024,15 +4023,15 @@ function is(e, t, n, s, i, o) {
4024
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%]"
4025
4024
  ], "list-container"])
4026
4025
  }, [
4027
- !o.nestedReadLayout.length && !o.isFixedSidebar ? (l(), p("div", ts, [
4028
- t[8] || (t[8] = pt('<div style="position:relative;" data-v-91d0aa83><div class="drag-drop-illustration-block" data-v-91d0aa83><div data-v-91d0aa83></div><div data-v-91d0aa83></div></div><svg class="drag-drop-illustration" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" data-v-91d0aa83><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-91d0aa83></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-91d0aa83></path></svg></div>', 1)),
4029
- a("div", {
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", {
4030
4029
  class: "text-center",
4031
4030
  style: { "max-width": "22ch" },
4032
4031
  innerHTML: e.$t("emptyBlockPlaceholderLarge")
4033
4032
  }, null, 8, ns)
4034
- ])) : C("", !0),
4035
- (l(), v(G(o.isEditView ? "div" : "simplebar"), { class: "h-full w-full" }, {
4033
+ ])) : v("", !0),
4034
+ (a(), C(G(o.isEditView ? "div" : "simplebar"), { class: "h-full w-full" }, {
4036
4035
  default: u(() => [
4037
4036
  c(x, { "provide-device": !0 }, {
4038
4037
  default: u(() => {
@@ -4043,7 +4042,7 @@ function is(e, t, n, s, i, o) {
4043
4042
  "input-style": ((X = (z = n._document) == null ? void 0 : z.data) == null ? void 0 : X.css) || null
4044
4043
  }, {
4045
4044
  default: u(() => [
4046
- o.nestedReadLayout ? (l(), v(G(o.dndEnabled ? "DragList" : "div"), {
4045
+ o.nestedReadLayout ? (a(), C(G(o.dndEnabled ? "DragList" : "div"), {
4047
4046
  key: 0,
4048
4047
  handle: ".NO-SELECTOR",
4049
4048
  "drop-placeholder": { className: "drag-drop-placeholder" },
@@ -4055,15 +4054,15 @@ function is(e, t, n, s, i, o) {
4055
4054
  "group-name": "document-blocks",
4056
4055
  "non-drag-area-selector": ".no-drag",
4057
4056
  "drag-handle-selector": ".drag-item",
4058
- onDragStart: t[3] || (t[3] = (I) => i.isDragging = !0),
4059
- onDragEnd: t[4] || (t[4] = (I) => i.isDragging = !1),
4060
- onDrop: t[5] || (t[5] = (I) => o.onBlockListChange("blocks-list", I))
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", $))
4061
4060
  }, {
4062
4061
  default: u(() => [
4063
- (l(!0), p($, null, P(n._document.getReadLayout({
4062
+ (a(!0), p(I, null, P(n._document.getReadLayout({
4064
4063
  showHiddenNodes: o.isEditView
4065
- }), (I, ie) => (l(), v(G(o.dndEnabled ? "DragItem" : "div"), {
4066
- key: I.nodeId,
4064
+ }), ($, ie) => (a(), C(G(o.dndEnabled ? "DragItem" : "div"), {
4065
+ key: $.nodeId,
4067
4066
  class: L([
4068
4067
  {
4069
4068
  "drag-item": o.dndEnabled
@@ -4073,32 +4072,32 @@ function is(e, t, n, s, i, o) {
4073
4072
  default: u(() => [
4074
4073
  c(S, {
4075
4074
  ref_for: !0,
4076
- ref: I.nodeId,
4075
+ ref: $.nodeId,
4077
4076
  "is-dragging": i.isDragging,
4078
4077
  "is-edit-view": o.isEditView,
4079
4078
  "can-move": o.canMove,
4080
- "block-type": I.itemType,
4081
- "is-visible": I.isVisible,
4082
- "show-edit-button": !!I.showEditButton,
4083
- onRemove: (R) => o.onBlockRemove(I, ie),
4079
+ "block-type": $.itemType,
4080
+ "is-visible": $.isVisible,
4081
+ "show-edit-button": !!$.showEditButton,
4082
+ onRemove: (R) => o.onBlockRemove($, ie),
4084
4083
  onMove: (R) => o.onBlockMove(R, ie),
4085
4084
  onEdit: t[2] || (t[2] = (R) => i.drawerState.openSection = R),
4086
- onToggleVisible: (R) => o.onBlockToggleVisible(I, R)
4085
+ onToggleVisible: (R) => o.onBlockToggleVisible($, R)
4087
4086
  }, {
4088
4087
  default: u(() => [
4089
4088
  c(k, {
4090
- "component-name": I.componentName,
4089
+ "component-name": $.componentName,
4091
4090
  "component-props": {
4092
- ...I.props,
4091
+ ...$.props,
4093
4092
  _document: n._document,
4094
- _value: I.value,
4095
- _nodeId: I.nodeId
4093
+ _value: $.value,
4094
+ _nodeId: $.nodeId
4096
4095
  },
4097
- children: I.children,
4098
- "is-visible": I.isVisible,
4096
+ children: $.children,
4097
+ "is-visible": $.isVisible,
4099
4098
  "on-input": ({ key: R, value: Je, options: Xe }) => n.setFormValue({ key: R, value: Je, options: Xe }),
4100
4099
  "on-remove": ({ key: R }) => n.removeFormValue(R),
4101
- "on-mount": (R) => o.onAddBlockMount(I.nodeId, R)
4100
+ "on-mount": (R) => o.onAddBlockMount($.nodeId, R)
4102
4101
  }, null, 8, ["component-name", "component-props", "children", "is-visible", "on-input", "on-remove", "on-mount"])
4103
4102
  ]),
4104
4103
  _: 2
@@ -4108,16 +4107,16 @@ function is(e, t, n, s, i, o) {
4108
4107
  }, 1032, ["class"]))), 128))
4109
4108
  ]),
4110
4109
  _: 1
4111
- }, 40, ["should-animate-drop"])) : C("", !0),
4112
- n.canShowBanner ? (l(), v(y, { key: 1 }, {
4113
- default: u(({ isProLike: I }) => [
4114
- !o.isEditView && !I ? (l(), v(D, {
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, {
4115
4114
  key: 0,
4116
4115
  position: "sticky"
4117
- })) : C("", !0)
4116
+ })) : v("", !0)
4118
4117
  ]),
4119
4118
  _: 1
4120
- })) : C("", !0)
4119
+ })) : v("", !0)
4121
4120
  ]),
4122
4121
  _: 1
4123
4122
  }, 8, ["input-style"])
@@ -4130,7 +4129,7 @@ function is(e, t, n, s, i, o) {
4130
4129
  }))
4131
4130
  ], 2)
4132
4131
  ], 6),
4133
- (l(), v(A, {
4132
+ (a(), C(A, {
4134
4133
  id: "settingsDrawer",
4135
4134
  key: "settingsDrawer",
4136
4135
  open: !!i.drawerState.openSection,
@@ -4156,7 +4155,7 @@ function is(e, t, n, s, i, o) {
4156
4155
  ], 2)
4157
4156
  ]);
4158
4157
  }
4159
- const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-91d0aa83"]]), ss = {
4158
+ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-b1290feb"]]), ss = {
4160
4159
  name: "DocumentSend",
4161
4160
  i18nOptions: {
4162
4161
  namespaces: "documentSend",
@@ -4165,6 +4164,8 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-91d0aa83
4165
4164
  signMissingTitle: "Signature-block missing",
4166
4165
  signMissingText: "Add a Signature-block if you'd like for your recipient to sign.",
4167
4166
  signMissingAdd: "Add Signature-block",
4167
+ tooManyClientsTitle: "Too many recipients",
4168
+ tooManyClientsTitleText: "There are too many recipients in this document, max is 15.",
4168
4169
  saveDocAsTemplate: "Save document as a template",
4169
4170
  saveDocAsTemplateTooltip: "Save document as a reusable template.",
4170
4171
  saveDocAsTemplateTooltipOfferta: "Are you satisfied with the document? Save it as a template for easier reuse!",
@@ -4174,6 +4175,8 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-91d0aa83
4174
4175
  signMissingTitle: "Signatur-block saknas",
4175
4176
  signMissingText: "Lägg till ett Signatur-block om du vill att din mottagare ska kunna lämna signera.",
4176
4177
  signMissingAdd: "Lägg till Signatur-block",
4178
+ tooManyClientsTitle: "För många mottagare",
4179
+ tooManyClientsText: "Det kan max vara 15 mottagare på ett dokument.",
4177
4180
  saveDocAsTemplate: "Spara dokumentet även som en mall",
4178
4181
  saveDocAsTemplateTooltip: "Spara som en mall som du kan återanvända.",
4179
4182
  saveDocAsTemplateTooltipOfferta: "Är du nöjd med dokumentet? Spara som mall så blir det enkelt att återanvända!",
@@ -4252,6 +4255,9 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-91d0aa83
4252
4255
  },
4253
4256
  hasAnswerBlock() {
4254
4257
  return (V(this._document, "template.views.read.nodes") || []).some((t) => t.itemType === "answer");
4258
+ },
4259
+ tooManyClients() {
4260
+ return (V(this._document, "clients") || []).length > 15;
4255
4261
  }
4256
4262
  },
4257
4263
  watch: {
@@ -4293,23 +4299,26 @@ const os = /* @__PURE__ */ F(Ko, [["render", is], ["__scopeId", "data-v-91d0aa83
4293
4299
  }));
4294
4300
  }
4295
4301
  }
4296
- }, as = {
4302
+ }, ls = {
4297
4303
  key: "1",
4298
4304
  class: "mb-8 flex rounded-lg border border-red-200 bg-red-50 p-3"
4299
- }, ls = { class: "pl-2" }, rs = ["textContent"], ds = { class: "mb-4 text-sm text-red-600 text-opacity-80" }, cs = {
4305
+ }, as = { class: "pl-2" }, rs = ["textContent"], ds = { class: "text-sm text-red-600 text-opacity-80" }, cs = {
4306
+ key: "2",
4307
+ class: "mb-8 flex rounded-lg border border-red-200 bg-red-50 p-3"
4308
+ }, us = { class: "pl-2" }, ms = ["textContent"], ps = { class: "mb-4 text-sm text-red-600 text-opacity-80" }, hs = {
4300
4309
  for: "checkbox-save-as-temp",
4301
4310
  class: "inline-flex cursor-pointer select-none items-center py-2 text-[12px] font-[500] text-gray-600"
4302
- }, us = ["onClick"], ms = { style: { "padding-left": "0.5em" } };
4303
- function ps(e, t, n, s, i, o) {
4304
- const r = m("CButton"), g = m("CIcon"), h = m("CCheckbox"), b = m("ProBadge"), w = m("IsPremiumPreStep"), k = m("IsPremium"), S = m("SendForm"), D = ae("tooltip");
4305
- return e.mq !== "sm" || i.isOpen ? (l(), v(G(e.mq === "sm" ? "div" : "Drawer"), {
4311
+ }, fs = ["onClick"], gs = { style: { "padding-left": "0.5em" } };
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"), {
4306
4315
  key: 0,
4307
4316
  modelValue: i.isOpen,
4308
4317
  "onUpdate:modelValue": t[3] || (t[3] = (y) => i.isOpen = y),
4309
4318
  placement: "right"
4310
4319
  }, {
4311
4320
  default: u(() => [
4312
- a("div", {
4321
+ l("div", {
4313
4322
  class: L([{
4314
4323
  "is-fullscreen": e.mq === "sm"
4315
4324
  }, "send-modal font-inter"])
@@ -4330,7 +4339,7 @@ function ps(e, t, n, s, i, o) {
4330
4339
  "use-scroll": ""
4331
4340
  }, {
4332
4341
  send: u(() => [
4333
- o.isPublicForm ? (l(), v(r, {
4342
+ o.isPublicForm ? (a(), C(r, {
4334
4343
  key: 0,
4335
4344
  type: "secondary",
4336
4345
  wide: "",
@@ -4341,15 +4350,15 @@ function ps(e, t, n, s, i, o) {
4341
4350
  T(d(e.$t("signupToSend")), 1)
4342
4351
  ]),
4343
4352
  _: 1
4344
- }, 8, ["onClick"])) : C("", !0)
4353
+ }, 8, ["onClick"])) : v("", !0)
4345
4354
  ]),
4346
4355
  [o.saveTemplateSlot]: u(() => [
4347
- a("label", cs, [
4356
+ l("label", hs, [
4348
4357
  c(k, null, {
4349
4358
  default: u(({ canCreateTemplate: y }) => [
4350
4359
  c(w, { feature: "saveDocTemplate" }, {
4351
4360
  default: u(({ onClick: f }) => [
4352
- a("div", {
4361
+ l("div", {
4353
4362
  class: "flex items-center",
4354
4363
  onClick: (x) => o.onClickSaveAsTemplate({
4355
4364
  event: x,
@@ -4364,7 +4373,7 @@ function ps(e, t, n, s, i, o) {
4364
4373
  size: "small",
4365
4374
  type: "secondary"
4366
4375
  }, null, 8, ["modelValue"]),
4367
- a("div", ms, [
4376
+ l("div", gs, [
4368
4377
  T(d(e.$t("saveDocAsTemplate")) + " ", 1),
4369
4378
  N(c(g, {
4370
4379
  type: "info",
@@ -4373,11 +4382,11 @@ function ps(e, t, n, s, i, o) {
4373
4382
  [D, o.saveTemplateTooltip]
4374
4383
  ])
4375
4384
  ]),
4376
- y ? C("", !0) : (l(), v(b, {
4385
+ y ? v("", !0) : (a(), C(b, {
4377
4386
  key: 0,
4378
4387
  class: "ml-2 self-center"
4379
4388
  }))
4380
- ], 8, us)
4389
+ ], 8, fs)
4381
4390
  ]),
4382
4391
  _: 2
4383
4392
  }, 1024)
@@ -4387,21 +4396,39 @@ function ps(e, t, n, s, i, o) {
4387
4396
  ])
4388
4397
  ]),
4389
4398
  default: u(() => [
4390
- o.hasAnswerBlock ? C("", !0) : (l(), p("div", as, [
4391
- a("div", null, [
4399
+ o.tooManyClients ? (a(), p("div", ls, [
4400
+ l("div", null, [
4392
4401
  c(g, {
4393
4402
  type: "error",
4394
4403
  size: "18",
4395
4404
  class: "-mt-1 text-red-600"
4396
4405
  })
4397
4406
  ]),
4398
- a("div", null, [
4399
- a("div", ls, [
4400
- a("div", {
4407
+ l("div", null, [
4408
+ l("div", as, [
4409
+ l("div", {
4401
4410
  class: "text-sm font-semibold text-red-600",
4402
- textContent: d(e.$t("signMissingTitle"))
4411
+ textContent: d(e.$t("tooManyClientsTitle"))
4403
4412
  }, null, 8, rs),
4404
- a("div", ds, d(e.$t("signMissingText")), 1)
4413
+ l("div", ds, d(e.$t("tooManyClientsText")), 1)
4414
+ ])
4415
+ ])
4416
+ ])) : v("", !0),
4417
+ o.hasAnswerBlock ? v("", !0) : (a(), p("div", cs, [
4418
+ l("div", null, [
4419
+ c(g, {
4420
+ type: "error",
4421
+ size: "18",
4422
+ class: "-mt-1 text-red-600"
4423
+ })
4424
+ ]),
4425
+ l("div", null, [
4426
+ l("div", us, [
4427
+ l("div", {
4428
+ class: "text-sm font-semibold text-red-600",
4429
+ textContent: d(e.$t("signMissingTitle"))
4430
+ }, null, 8, ms),
4431
+ l("div", ps, d(e.$t("signMissingText")), 1)
4405
4432
  ]),
4406
4433
  c(r, {
4407
4434
  type: "secondary",
@@ -4422,9 +4449,9 @@ function ps(e, t, n, s, i, o) {
4422
4449
  ], 2)
4423
4450
  ]),
4424
4451
  _: 1
4425
- }, 8, ["modelValue"])) : C("", !0);
4452
+ }, 8, ["modelValue"])) : v("", !0);
4426
4453
  }
4427
- const hs = /* @__PURE__ */ F(ss, [["render", ps], ["__scopeId", "data-v-8302ed07"]]), fs = {
4454
+ const vs = /* @__PURE__ */ F(ss, [["render", ys], ["__scopeId", "data-v-fde11d9e"]]), Cs = {
4428
4455
  i18nOptions: {
4429
4456
  namespaces: "DocumentTemplateFormModal",
4430
4457
  messages: {
@@ -4582,13 +4609,13 @@ const hs = /* @__PURE__ */ F(ss, [["render", ps], ["__scopeId", "data-v-8302ed07
4582
4609
  this.canUpdateExistingDocTemplate = !1;
4583
4610
  }
4584
4611
  }
4585
- }, gs = { class: "t-root font-inter" }, ys = { style: { "font-size": "18px", "font-weight": "700", "text-align": "center", "margin-bottom": "1em" } }, vs = { key: 1 }, Cs = { class: "text-gray-600" }, bs = { key: 2 }, ks = { class: "text-gray-600" };
4586
- function ws(e, t, n, s, i, o) {
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
+ function Ds(e, t, n, s, i, o) {
4587
4614
  const r = m("CCallout"), g = m("CInput"), h = m("CField"), b = m("CCheckbox"), w = m("CButton");
4588
- return l(), p("div", gs, [
4589
- a("div", ys, d(n.template ? e.$t("_common:edit", { thing: e.$t("_common:name") }) : e.$t("_common:save", { thing: e.$t("_common:template") })), 1),
4590
- a("div", null, [
4591
- n.template ? C("", !0) : (l(), v(r, { key: 0 }, {
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 }, {
4592
4619
  default: u(() => [
4593
4620
  T(d(e.$t("calloutDescription")), 1)
4594
4621
  ]),
@@ -4614,7 +4641,7 @@ function ws(e, t, n, s, i, o) {
4614
4641
  ]),
4615
4642
  _: 1
4616
4643
  }, 8, ["vuelidate", "vuelidate-messages", "label"]),
4617
- n.document && n.document.template.id && i.canUpdateExistingDocTemplate ? (l(), p("div", vs, [
4644
+ n.document && n.document.template.id && i.canUpdateExistingDocTemplate ? (a(), p("div", ws, [
4618
4645
  c(h, { style: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, {
4619
4646
  default: u(() => [
4620
4647
  c(b, {
@@ -4624,15 +4651,15 @@ function ws(e, t, n, s, i, o) {
4624
4651
  size: "normal"
4625
4652
  }, {
4626
4653
  default: u(() => [
4627
- a("div", Cs, d(e.$t("updateExisting")), 1)
4654
+ l("div", _s, d(e.$t("updateExisting")), 1)
4628
4655
  ]),
4629
4656
  _: 1
4630
4657
  }, 8, ["modelValue"])
4631
4658
  ]),
4632
4659
  _: 1
4633
4660
  })
4634
- ])) : C("", !0),
4635
- n.document && n.document.clients.length && n.showKeepClientsOption ? (l(), p("div", bs, [
4661
+ ])) : v("", !0),
4662
+ n.document && n.document.clients.length && n.showKeepClientsOption ? (a(), p("div", xs, [
4636
4663
  c(h, { style: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, {
4637
4664
  default: u(() => [
4638
4665
  c(b, {
@@ -4642,14 +4669,14 @@ function ws(e, t, n, s, i, o) {
4642
4669
  size: "normal"
4643
4670
  }, {
4644
4671
  default: u(() => [
4645
- a("div", ks, d(e.$t("keepClients")), 1)
4672
+ l("div", Ts, d(e.$t("keepClients")), 1)
4646
4673
  ]),
4647
4674
  _: 1
4648
4675
  }, 8, ["modelValue"])
4649
4676
  ]),
4650
4677
  _: 1
4651
4678
  })
4652
- ])) : C("", !0)
4679
+ ])) : v("", !0)
4653
4680
  ]),
4654
4681
  c(w, {
4655
4682
  loading: e.isPosting,
@@ -4666,9 +4693,9 @@ function ws(e, t, n, s, i, o) {
4666
4693
  }, 8, ["loading", "onClick"])
4667
4694
  ]);
4668
4695
  }
4669
- const Qe = /* @__PURE__ */ F(fs, [["render", ws], ["__scopeId", "data-v-54a3575d"]]);
4696
+ const Qe = /* @__PURE__ */ F(Cs, [["render", Ds], ["__scopeId", "data-v-54a3575d"]]);
4670
4697
  var re, Fe;
4671
- function _s() {
4698
+ function Ss() {
4672
4699
  if (Fe) return re;
4673
4700
  Fe = 1;
4674
4701
  function e(t, n, s) {
@@ -4677,17 +4704,17 @@ function _s() {
4677
4704
  return re = e, re;
4678
4705
  }
4679
4706
  var de, Le;
4680
- function xs() {
4707
+ function $s() {
4681
4708
  if (Le) return de;
4682
4709
  Le = 1;
4683
- var e = _s(), t = yt();
4710
+ var e = Ss(), t = yt();
4684
4711
  function n(s, i, o) {
4685
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);
4686
4713
  }
4687
4714
  return de = n, de;
4688
4715
  }
4689
- var Ts = xs();
4690
- const Ds = /* @__PURE__ */ Oe(Ts), Ss = {
4716
+ var Is = $s();
4717
+ const Fs = /* @__PURE__ */ Oe(Is), Ls = {
4691
4718
  name: "RemainingTrialButton",
4692
4719
  components: { IsPremium: J },
4693
4720
  i18nOptions: {
@@ -4719,36 +4746,36 @@ const Ds = /* @__PURE__ */ Oe(Ts), Ss = {
4719
4746
  },
4720
4747
  mixins: [Z],
4721
4748
  methods: {
4722
- clamp: Ds
4749
+ clamp: Fs
4723
4750
  }
4724
- }, Is = { 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" }, $s = { class: "text-gray-600" }, Fs = { class: "absolute bottom-1 left-2 right-2 h-[3px] rounded-full bg-gray-300 ring-1 ring-white/10" }, Ls = { class: "w-56 p-4 text-sm" }, Vs = { class: "font-semibold" }, Bs = { class: "bg-primary-100 border-primary-200 text-primary-800 inline-flex rounded-md border px-1.5 py-[3px] text-xs leading-none" }, Ms = { class: "text-sm text-gray-600" }, Ps = { 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" }, As = { class: "mt-5" };
4725
- function Es(e, t, n, s, i, o) {
4726
- const r = m("CButton"), g = m("VDropdown"), h = m("IsPremium"), b = ae("close-popper");
4727
- return l(), v(h, null, {
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
+ 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, {
4728
4755
  default: u(({
4729
4756
  accountType: w,
4730
4757
  trialDaysLeft: k,
4731
4758
  openUpgradeModal: S,
4732
4759
  initialFreePremiumDays: D
4733
4760
  }) => [
4734
- w === "trial" && e.mq !== "sm" ? (l(), v(g, {
4761
+ w === "trial" && e.mq !== "sm" ? (a(), C(g, {
4735
4762
  key: 0,
4736
4763
  "popper-class": "trial-popover"
4737
4764
  }, {
4738
4765
  popper: u(() => [
4739
- a("div", Ls, [
4740
- a("div", Vs, [
4766
+ l("div", Ps, [
4767
+ l("div", As, [
4741
4768
  T(d(e.$t("title.1")) + " ", 1),
4742
- a("span", Bs, d(e.$t("title.2")), 1),
4769
+ l("span", Es, d(e.$t("title.2")), 1),
4743
4770
  T(" " + d(e.$t("title.3", { trialDaysLeft: k })) + ". ", 1)
4744
4771
  ]),
4745
- a("div", Ms, [
4772
+ l("div", zs, [
4746
4773
  T(d(e.$t("title.4")) + " ", 1),
4747
- a("span", Ps, d(e.$t("title.5")), 1),
4774
+ l("span", Rs, d(e.$t("title.5")), 1),
4748
4775
  t[0] || (t[0] = T(". "))
4749
4776
  ]),
4750
- a("div", As, [
4751
- N((l(), v(r, {
4777
+ l("div", Os, [
4778
+ N((a(), C(r, {
4752
4779
  type: "secondary",
4753
4780
  size: "small",
4754
4781
  "icon-right": "arrow-right",
@@ -4765,10 +4792,10 @@ function Es(e, t, n, s, i, o) {
4765
4792
  ])
4766
4793
  ]),
4767
4794
  default: u(() => [
4768
- a("div", Is, [
4769
- a("div", $s, d(e.$tc("_common:day", { count: k })) + " " + d(e.$t("button")), 1),
4770
- a("div", Fs, [
4771
- a("div", {
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", {
4772
4799
  style: E({
4773
4800
  width: o.clamp(k / D * 100, 0, 100) + "%"
4774
4801
  }),
@@ -4778,24 +4805,24 @@ function Es(e, t, n, s, i, o) {
4778
4805
  ])
4779
4806
  ]),
4780
4807
  _: 2
4781
- }, 1024)) : C("", !0)
4808
+ }, 1024)) : v("", !0)
4782
4809
  ]),
4783
4810
  _: 1
4784
4811
  });
4785
4812
  }
4786
- const zs = /* @__PURE__ */ F(Ss, [["render", Es]]), oe = vt({
4813
+ const Us = /* @__PURE__ */ F(Ls, [["render", Hs]]), oe = vt({
4787
4814
  canEdit: !1,
4788
4815
  isForm: !0,
4789
4816
  setFormValue: null,
4790
4817
  removeFormValue: null
4791
- }), Rs = {
4818
+ }), qs = {
4792
4819
  name: "DocumentForm",
4793
4820
  components: {
4794
4821
  DocumentFormContainer: os,
4795
4822
  IsPremium: J,
4796
4823
  IsPremiumPreStep: Y,
4797
- DocumentSend: hs,
4798
- RemainingTrialButton: zs,
4824
+ DocumentSend: vs,
4825
+ RemainingTrialButton: Us,
4799
4826
  CDropdown: fe,
4800
4827
  CDropdownItem: ge
4801
4828
  },
@@ -4909,13 +4936,13 @@ const zs = /* @__PURE__ */ F(Ss, [["render", Es]]), oe = vt({
4909
4936
  );
4910
4937
  }
4911
4938
  }
4912
- }, Os = {
4939
+ }, Gs = {
4913
4940
  key: 0,
4914
4941
  class: "flex w-screen flex-col bg-white"
4915
- }, Hs = { class: "flex self-center" }, Us = { class: "buttons has-addons whitespace-nowrap" };
4916
- function qs(e, t, n, s, i, o) {
4942
+ }, Ns = { class: "flex self-center" }, Ws = { class: "buttons has-addons whitespace-nowrap" };
4943
+ function js(e, t, n, s, i, o) {
4917
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");
4918
- return n.document ? (l(), p("div", Os, [
4945
+ return n.document ? (a(), p("div", Gs, [
4919
4946
  c(S, {
4920
4947
  view: i.view,
4921
4948
  "onUpdate:view": t[0] || (t[0] = (y) => i.view = y),
@@ -4932,13 +4959,13 @@ function qs(e, t, n, s, i, o) {
4932
4959
  default: u(({ canCreateDocument: y, canCreateTemplate: f }) => [
4933
4960
  c(b, { feature: "documents" }, {
4934
4961
  default: u(({ onClick: x }) => [
4935
- (l(), p("div", {
4962
+ (a(), p("div", {
4936
4963
  key: o.canDoActions,
4937
4964
  class: "inline-flex flex-1 justify-end space-x-5"
4938
4965
  }, [
4939
4966
  c(b, { feature: "saveDocTemplate" }, {
4940
4967
  default: u(({ onClick: _ }) => [
4941
- a("div", Hs, [
4968
+ l("div", Ns, [
4942
4969
  c(h, {
4943
4970
  disabled: !o.canDoActions
4944
4971
  }, {
@@ -4993,7 +5020,7 @@ function qs(e, t, n, s, i, o) {
4993
5020
  }, 1024),
4994
5021
  M(e.$slots, "nav-right-action", {}, () => [
4995
5022
  c(w),
4996
- a("div", Us, [
5023
+ l("div", Ws, [
4997
5024
  c(r, {
4998
5025
  ref: "sendButton",
4999
5026
  disabled: !o.canDoActions,
@@ -5033,9 +5060,9 @@ function qs(e, t, n, s, i, o) {
5033
5060
  "remove-form-value": n.removeDocValue,
5034
5061
  "on-save-document": n.onSaveDocument
5035
5062
  }, null, 8, ["_document", "set-form-value", "remove-form-value", "on-save-document"])
5036
- ])) : C("", !0);
5063
+ ])) : v("", !0);
5037
5064
  }
5038
- const Gs = /* @__PURE__ */ F(Rs, [["render", qs]]), Ns = {
5065
+ const Zs = /* @__PURE__ */ F(qs, [["render", js]]), Ks = {
5039
5066
  name: "DocumentFormRecent",
5040
5067
  i18nOptions: {
5041
5068
  namespaces: "DocumentFormRecent",
@@ -5124,27 +5151,27 @@ const Gs = /* @__PURE__ */ F(Rs, [["render", qs]]), Ns = {
5124
5151
  return this.$emit("use-doc-template", { documentId: e });
5125
5152
  }
5126
5153
  }
5127
- }, Ws = {
5154
+ }, Qs = {
5128
5155
  class: "flex w-full",
5129
5156
  style: { "padding-bottom": "1em" }
5130
- }, js = { class: "recent-list" }, Zs = {
5157
+ }, Ys = { class: "recent-list" }, Js = {
5131
5158
  key: 1,
5132
5159
  class: "rounded-md border border-gray-200 bg-gray-100 p-4 text-center text-gray-400",
5133
5160
  style: { "font-size": "15px" }
5134
- }, Ks = {
5161
+ }, Xs = {
5135
5162
  key: 2,
5136
5163
  class: "text-center text-gray-400",
5137
5164
  style: { padding: "1em" }
5138
- }, Qs = ["onClick", "onMouseoverPassive"], Ys = {
5165
+ }, el = ["onClick", "onMouseoverPassive"], tl = {
5139
5166
  key: 0,
5140
5167
  style: { display: "inline-flex", "align-items": "center", position: "absolute", right: "1em", top: "50%", transform: "translateY(-50%)" }
5141
5168
  };
5142
- function Js(e, t, n, s, i, o) {
5169
+ function nl(e, t, n, s, i, o) {
5143
5170
  const r = m("CInput"), g = m("CSkeleton"), h = m("CButton"), b = m("IsPremiumPreStep"), w = m("IsPremium");
5144
- return l(), p("div", null, [
5145
- a("div", Ws, [
5171
+ return a(), p("div", null, [
5172
+ l("div", Qs, [
5146
5173
  M(e.$slots, "default", {}, void 0, !0),
5147
- i.hasItems ? (l(), v(r, {
5174
+ i.hasItems ? (a(), C(r, {
5148
5175
  key: 0,
5149
5176
  modelValue: i.query,
5150
5177
  "onUpdate:modelValue": [
@@ -5157,10 +5184,10 @@ function Js(e, t, n, s, i, o) {
5157
5184
  size: "normal",
5158
5185
  filled: "",
5159
5186
  class: "hidden md:flex"
5160
- }, null, 8, ["modelValue", "loading", "placeholder", "onUpdate:modelValue"])) : C("", !0)
5187
+ }, null, 8, ["modelValue", "loading", "placeholder", "onUpdate:modelValue"])) : v("", !0)
5161
5188
  ]),
5162
- a("div", js, [
5163
- i.isLoading && !i.list.length ? (l(), p($, { key: 0 }, P(3, (k) => a("div", {
5189
+ l("div", Ys, [
5190
+ i.isLoading && !i.list.length ? (a(), p(I, { key: 0 }, P(3, (k) => l("div", {
5164
5191
  key: k,
5165
5192
  class: "recent-item placeholder"
5166
5193
  }, [
@@ -5169,12 +5196,12 @@ function Js(e, t, n, s, i, o) {
5169
5196
  class: "recent-item-name"
5170
5197
  }),
5171
5198
  c(g, { width: "35%" })
5172
- ])), 64)) : !i.isLoading && !i.query && !i.list.length ? (l(), p("div", Zs, d(e.$t("emptyPlaceholder")), 1)) : i.query && !i.isLoading && !i.list.length ? (l(), p("div", Ks, d(e.$t("noResults")), 1)) : (l(), v(w, { key: 3 }, {
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 }, {
5173
5200
  default: u(({ canCreateTemplate: k, canUseTemplate: S }) => [
5174
5201
  c(b, { feature: "useDocTemplate" }, {
5175
5202
  default: u(({ onClick: D }) => [
5176
- a("div", null, [
5177
- (l(!0), p($, null, P(i.list, (y, f) => (l(), p("div", {
5203
+ l("div", null, [
5204
+ (a(!0), p(I, null, P(i.list, (y, f) => (a(), p("div", {
5178
5205
  key: y._id,
5179
5206
  class: "recent-item",
5180
5207
  onClick: (x) => S ? o.onUseDocTemplate(y._id) : D({
@@ -5183,11 +5210,11 @@ function Js(e, t, n, s, i, o) {
5183
5210
  onMouseoverPassive: (x) => i.hoverIndex = f,
5184
5211
  onMouseleavePassive: t[1] || (t[1] = (x) => i.hoverIndex = null)
5185
5212
  }, [
5186
- a("div", {
5213
+ l("div", {
5187
5214
  class: L([{ "text-gray-400": !y.data.name }, "recent-item-name"])
5188
5215
  }, d(y.data.name || e.$t("_common:untitled")), 3),
5189
- a("div", null, d(e.$formatDistanceToNow(y.createdAt)), 1),
5190
- i.hoverIndex === f ? (l(), p("div", Ys, [
5216
+ l("div", null, d(e.$formatDistanceToNow(y.createdAt)), 1),
5217
+ i.hoverIndex === f ? (a(), p("div", tl, [
5191
5218
  c(b, { feature: "saveDocTemplate" }, {
5192
5219
  default: u(({ onClick: x }) => [
5193
5220
  c(h, {
@@ -5215,8 +5242,8 @@ function Js(e, t, n, s, i, o) {
5215
5242
  ]),
5216
5243
  _: 1
5217
5244
  })
5218
- ])) : C("", !0)
5219
- ], 40, Qs))), 128))
5245
+ ])) : v("", !0)
5246
+ ], 40, el))), 128))
5220
5247
  ])
5221
5248
  ]),
5222
5249
  _: 2
@@ -5227,13 +5254,13 @@ function Js(e, t, n, s, i, o) {
5227
5254
  ])
5228
5255
  ]);
5229
5256
  }
5230
- const Xs = /* @__PURE__ */ F(Ns, [["render", Js], ["__scopeId", "data-v-afd30dd3"]]), ea = { class: "item-paper" }, ta = {
5257
+ const il = /* @__PURE__ */ F(Ks, [["render", nl], ["__scopeId", "data-v-afd30dd3"]]), ol = { class: "item-paper" }, sl = {
5231
5258
  key: 2,
5232
5259
  class: "absolute bottom-2 right-2"
5233
- }, na = {
5260
+ }, ll = {
5234
5261
  key: 3,
5235
5262
  class: "add-button"
5236
- }, ia = { class: "item-footer" }, oa = ["textContent"], sa = ["textContent"], aa = /* @__PURE__ */ ve({
5263
+ }, al = { class: "item-footer" }, rl = ["textContent"], dl = ["textContent"], cl = /* @__PURE__ */ ve({
5237
5264
  __name: "DocumentIcon",
5238
5265
  props: {
5239
5266
  isPlaceholder: { type: Boolean, default: !1 },
@@ -5250,7 +5277,7 @@ const Xs = /* @__PURE__ */ F(Ns, [["render", Js], ["__scopeId", "data-v-afd30dd3
5250
5277
  ), D = H(() => _t(n.name, 60));
5251
5278
  return (y, f) => {
5252
5279
  const x = m("CIcon");
5253
- return l(), p("div", ye(k.value, {
5280
+ return a(), p("div", ye(k.value, {
5254
5281
  key: w.value,
5255
5282
  class: [[
5256
5283
  h.value,
@@ -5264,47 +5291,47 @@ const Xs = /* @__PURE__ */ F(Ns, [["render", Js], ["__scopeId", "data-v-afd30dd3
5264
5291
  style: g.value,
5265
5292
  onClick: i
5266
5293
  }), [
5267
- a("div", ea, [
5268
- y.thumbnail ? (l(), p("div", {
5294
+ l("div", ol, [
5295
+ y.thumbnail ? (a(), p("div", {
5269
5296
  key: 0,
5270
5297
  style: E([{
5271
5298
  backgroundImage: `url(${y.thumbnail})`
5272
5299
  }, { width: "100%", height: "100%", "background-size": "100% auto", "background-repeat": "no-repeat", "background-position": "0% 0%" }])
5273
- }, null, 4)) : y.isPlaceholder || y.isAdd ? C("", !0) : (l(), v(on, {
5300
+ }, null, 4)) : y.isPlaceholder || y.isAdd ? v("", !0) : (a(), C(on, {
5274
5301
  key: 1,
5275
5302
  media: y.media,
5276
5303
  preview: "",
5277
5304
  class: "item-media"
5278
5305
  }, null, 8, ["media"])),
5279
- Pe(o).badge ? (l(), p("div", ta, [
5306
+ Pe(o).badge ? (a(), p("div", sl, [
5280
5307
  M(y.$slots, "badge", {}, void 0, !0)
5281
- ])) : C("", !0),
5282
- y.isAdd ? (l(), p("div", na, [
5308
+ ])) : v("", !0),
5309
+ y.isAdd ? (a(), p("div", ll, [
5283
5310
  c(x, {
5284
5311
  size: 18,
5285
5312
  "stroke-width": 3,
5286
5313
  type: "plus"
5287
5314
  })
5288
- ])) : C("", !0)
5315
+ ])) : v("", !0)
5289
5316
  ]),
5290
- a("div", ia, [
5291
- y.isAdd ? (l(), p("div", {
5317
+ l("div", al, [
5318
+ y.isAdd ? (a(), p("div", {
5292
5319
  key: 0,
5293
5320
  class: "item-text",
5294
5321
  style: { color: "hsl(0, 0%, 55%)" },
5295
5322
  textContent: d(S.value)
5296
- }, null, 8, oa)) : y.name ? (l(), p($, { key: 1 }, [
5297
- a("div", {
5323
+ }, null, 8, rl)) : y.name ? (a(), p(I, { key: 1 }, [
5324
+ l("div", {
5298
5325
  class: "item-text",
5299
5326
  textContent: d(D.value)
5300
- }, null, 8, sa),
5327
+ }, null, 8, dl),
5301
5328
  M(y.$slots, "default", {}, void 0, !0)
5302
- ], 64)) : C("", !0)
5329
+ ], 64)) : v("", !0)
5303
5330
  ])
5304
5331
  ], 16);
5305
5332
  };
5306
5333
  }
5307
- }), la = /* @__PURE__ */ F(aa, [["__scopeId", "data-v-f3357197"]]), ra = {
5334
+ }), ul = /* @__PURE__ */ F(cl, [["__scopeId", "data-v-f3357197"]]), ml = {
5308
5335
  name: "HorizontalScroll",
5309
5336
  components: {
5310
5337
  Simplebar: Q
@@ -5356,15 +5383,15 @@ const Xs = /* @__PURE__ */ F(Ns, [["render", Js], ["__scopeId", "data-v-afd30dd3
5356
5383
  }, 50);
5357
5384
  }
5358
5385
  }
5359
- }, da = {
5386
+ }, pl = {
5360
5387
  ref: "container",
5361
5388
  class: "horizontal-scroll"
5362
- }, ca = { class: "hl-navigation" }, ua = { class: "hl-container" }, ma = { class: "flex w-full" };
5363
- function pa(e, t, n, s, i, o) {
5389
+ }, hl = { class: "hl-navigation" }, fl = { class: "hl-container" }, gl = { class: "flex w-full" };
5390
+ function yl(e, t, n, s, i, o) {
5364
5391
  const r = m("CButton"), g = m("Simplebar");
5365
- return l(), p("div", da, [
5366
- a("div", ca, [
5367
- i.hasPrev ? (l(), p("div", {
5392
+ return a(), p("div", pl, [
5393
+ l("div", hl, [
5394
+ i.hasPrev ? (a(), p("div", {
5368
5395
  key: 0,
5369
5396
  class: "hl-btn-left max-sm:hidden",
5370
5397
  onClick: t[0] || (t[0] = (h) => o.go(-1))
@@ -5378,8 +5405,8 @@ function pa(e, t, n, s, i, o) {
5378
5405
  size: "medium"
5379
5406
  })
5380
5407
  ], !0)
5381
- ])) : C("", !0),
5382
- i.hasNext ? (l(), p("div", {
5408
+ ])) : v("", !0),
5409
+ i.hasNext ? (a(), p("div", {
5383
5410
  key: 1,
5384
5411
  class: "hl-btn-right max-sm:hidden",
5385
5412
  onClick: t[2] || (t[2] = (h) => o.go(1))
@@ -5394,16 +5421,16 @@ function pa(e, t, n, s, i, o) {
5394
5421
  onClick: t[1] || (t[1] = (h) => e.$emit("expand"))
5395
5422
  })
5396
5423
  ], !0)
5397
- ])) : C("", !0)
5424
+ ])) : v("", !0)
5398
5425
  ]),
5399
- a("div", ua, [
5426
+ l("div", fl, [
5400
5427
  c(g, {
5401
5428
  ref: "list",
5402
5429
  class: "hl-list",
5403
5430
  onScroll: o.scrollHandler
5404
5431
  }, {
5405
5432
  default: u(() => [
5406
- a("div", ma, [
5433
+ l("div", gl, [
5407
5434
  M(e.$slots, "default", {}, void 0, !0)
5408
5435
  ])
5409
5436
  ]),
@@ -5412,8 +5439,8 @@ function pa(e, t, n, s, i, o) {
5412
5439
  ])
5413
5440
  ], 512);
5414
5441
  }
5415
- const ha = /* @__PURE__ */ F(ra, [["render", pa], ["__scopeId", "data-v-f0c49197"]]);
5416
- function fa(e, { availableProducts: t }) {
5442
+ const vl = /* @__PURE__ */ F(ml, [["render", yl], ["__scopeId", "data-v-f0c49197"]]);
5443
+ function Cl(e, { availableProducts: t }) {
5417
5444
  if (!e) throw new Error("Missing parameter templateId");
5418
5445
  const n = t, s = Object.keys(n).find((i) => {
5419
5446
  var r;
@@ -5425,7 +5452,7 @@ function fa(e, { availableProducts: t }) {
5425
5452
  });
5426
5453
  return s ? n[s] : null;
5427
5454
  }
5428
- async function ga(e) {
5455
+ async function bl(e) {
5429
5456
  if (!e) throw new Error("Missing argument stripeProduct");
5430
5457
  const t = e == null ? void 0 : e.prices[0], { data: n } = await xt.createCheckoutSession({
5431
5458
  items: [
@@ -5442,7 +5469,7 @@ async function ga(e) {
5442
5469
  function Ye(e, { availableProducts: t }) {
5443
5470
  var i, o, r;
5444
5471
  let n = null;
5445
- const s = fa(e.templateId, {
5472
+ const s = Cl(e.templateId, {
5446
5473
  availableProducts: t
5447
5474
  });
5448
5475
  return s && (n = {
@@ -5450,10 +5477,10 @@ function Ye(e, { availableProducts: t }) {
5450
5477
  currency: (o = s == null ? void 0 : s.prices) == null ? void 0 : o[0].currency
5451
5478
  }),
5452
5479
  isPurchased: ((r = e.purchaseInfo) == null ? void 0 : r.isPurchased) || !1,
5453
- onBuy: async () => ga(s)
5480
+ onBuy: async () => bl(s)
5454
5481
  }), n;
5455
5482
  }
5456
- const ya = {
5483
+ const kl = {
5457
5484
  name: "GalleryTemplateModal",
5458
5485
  components: {
5459
5486
  Simplebar: Q,
@@ -5592,84 +5619,84 @@ const ya = {
5592
5619
  await Ue(t) && be("info", this.$t("copyMessage"));
5593
5620
  }
5594
5621
  }
5595
- }, va = { class: "template-modal font-inter bg-gray-200" }, Ca = { style: { "background-color": "white", "border-radius": "1em", overflow: "auto", border: "10px solid white", "box-shadow": `rgb(244, 244, 244) 0px 2px 14px 0px inset,
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,
5596
5623
  rgba(0, 0, 0, 0.09) 0px 8px 35px 0px,
5597
- rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset`, flex: "1 1 auto", "min-height": "0" } }, ba = { style: { flex: "0 1 300px", padding: "2em 1em 3em 2em", "font-size": "18px" } }, ka = { style: { "padding-bottom": "2em" } }, wa = { style: { "font-size": "21px", "font-weight": "800", color: "hsl(0, 0%, 0%)" } }, _a = { style: { "font-weight": "400", "font-size": "14px", "min-height": "30px", color: "hsl(0, 0%, 27%)" } }, xa = { style: { hyphens: "auto" } }, Ta = {
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 = {
5598
5625
  key: 0,
5599
5626
  style: { "padding-top": "1.5em" },
5600
5627
  class: "flex items-center"
5601
- }, Da = { style: { "margin-left": "0.5em" } }, Sa = { style: { "font-weight": "500" } }, Ia = { style: { "font-weight": "400", "font-size": "14px" } }, $a = { style: { "padding-bottom": "2em" } }, Fa = {
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 = {
5602
5629
  key: 0,
5603
5630
  class: "mb-5 flex items-center gap-2 rounded-full border border-gray-300 bg-gray-300/60 p-1 text-sm"
5604
- }, La = { class: "bg-primary-500 flex h-5 w-5 items-center justify-center rounded-full" }, Va = ["textContent"], Ba = ["textContent"];
5605
- function Ma(e, t, n, s, i, o) {
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) {
5606
5633
  var S;
5607
5634
  const r = m("DocumentLayout"), g = m("Simplebar"), h = m("CIcon"), b = m("CButton"), w = m("IsPremiumPreStep"), k = m("IsPremium");
5608
- return l(), p("div", va, [
5609
- a("div", Ca, [
5635
+ return a(), p("div", wl, [
5636
+ l("div", _l, [
5610
5637
  c(g, {
5611
5638
  class: "h-full w-full",
5612
5639
  "data-simplebar-auto-hide": "false"
5613
5640
  }, {
5614
5641
  default: u(() => [
5615
- o.previewDocument ? (l(), v(r, {
5642
+ o.previewDocument ? (a(), C(r, {
5616
5643
  key: 0,
5617
5644
  document: o.previewDocument
5618
- }, null, 8, ["document"])) : C("", !0),
5619
- n.product && !i.privateProduct.isPurchased ? (l(), v(G("style"), { key: 1 }, {
5645
+ }, null, 8, ["document"])) : v("", !0),
5646
+ n.product && !i.privateProduct.isPurchased ? (a(), C(G("style"), { key: 1 }, {
5620
5647
  default: u(() => t[1] || (t[1] = [
5621
5648
  T(" .ProseMirror > * + * { filter: blur(8px); user-select: none; pointer-events: none; } ")
5622
5649
  ])),
5623
5650
  _: 1
5624
- })) : C("", !0)
5651
+ })) : v("", !0)
5625
5652
  ]),
5626
5653
  _: 1
5627
5654
  })
5628
5655
  ]),
5629
- a("div", ba, [
5630
- a("div", ka, [
5631
- a("div", wa, d(n.meta.name), 1),
5632
- a("div", _a, [
5633
- (S = i.templateStat) != null && S.usedTimes ? (l(), p($, { key: 0 }, [
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 }, [
5634
5661
  T(d(e.$t("_common:used").capitalize()) + " " + d(i.templateStat.usedTimes) + " " + d(e.$t("_common:times", { count: i.templateStat.usedTimes })), 1)
5635
- ], 64)) : C("", !0)
5662
+ ], 64)) : v("", !0)
5636
5663
  ]),
5637
- a("div", xa, d(n.meta.text), 1),
5638
- n.meta.author ? (l(), p("div", Ta, [
5639
- a("div", {
5664
+ l("div", $l, d(n.meta.text), 1),
5665
+ n.meta.author ? (a(), p("div", Il, [
5666
+ l("div", {
5640
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" }, {
5641
5668
  backgroundImage: `url(${n.meta.author.avatar})`
5642
5669
  }])
5643
5670
  }, null, 4),
5644
- a("div", Da, [
5645
- a("div", Sa, d(n.meta.author.name), 1),
5646
- a("div", Ia, [
5647
- n.meta.author.templatesCount ? (l(), p($, { key: 0 }, [
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 }, [
5648
5675
  T(d(n.meta.author.templatesCount) + " " + d(e.$t("_common:template", { count: n.meta.author.templatesCount })), 1)
5649
- ], 64)) : (l(), p($, { key: 1 }, [
5676
+ ], 64)) : (a(), p(I, { key: 1 }, [
5650
5677
  T(d(e.$t("_common:template").capitalize()), 1)
5651
5678
  ], 64))
5652
5679
  ])
5653
5680
  ])
5654
- ])) : C("", !0)
5681
+ ])) : v("", !0)
5655
5682
  ]),
5656
- a("div", $a, [
5657
- n.product ? (l(), p($, { key: 0 }, [
5658
- i.privateProduct.isPurchased ? (l(), p("div", Fa, [
5659
- a("div", La, [
5683
+ l("div", Bl, [
5684
+ n.product ? (a(), p(I, { key: 0 }, [
5685
+ i.privateProduct.isPurchased ? (a(), p("div", Ml, [
5686
+ l("div", Pl, [
5660
5687
  c(h, {
5661
5688
  type: "check",
5662
5689
  size: "12",
5663
5690
  class: "text-white"
5664
5691
  })
5665
5692
  ]),
5666
- a("div", {
5693
+ l("div", {
5667
5694
  class: "text-xs font-medium text-gray-700",
5668
5695
  textContent: d(
5669
5696
  e.$t("_common:purchased", { thing: e.$t("_common:template") })
5670
5697
  )
5671
- }, null, 8, Va)
5672
- ])) : (l(), v(b, {
5698
+ }, null, 8, Al)
5699
+ ])) : (a(), C(b, {
5673
5700
  key: 1,
5674
5701
  type: "secondary",
5675
5702
  wide: "",
@@ -5678,20 +5705,20 @@ function Ma(e, t, n, s, i, o) {
5678
5705
  onClick: o.buyTemplate
5679
5706
  }, {
5680
5707
  default: u(() => [
5681
- a("div", null, d(e.$t("_common:buy", { thing: e.$t("_common:template") })), 1),
5682
- a("div", {
5708
+ l("div", null, d(e.$t("_common:buy", { thing: e.$t("_common:template") })), 1),
5709
+ l("div", {
5683
5710
  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",
5684
5711
  textContent: d(i.privateProduct.price)
5685
- }, null, 8, Ba)
5712
+ }, null, 8, El)
5686
5713
  ]),
5687
5714
  _: 1
5688
5715
  }, 8, ["onClick"]))
5689
- ], 64)) : C("", !0),
5716
+ ], 64)) : v("", !0),
5690
5717
  c(k, null, {
5691
5718
  default: u(({ canUseTemplate: D }) => [
5692
5719
  c(w, { feature: "useDocTemplate" }, {
5693
5720
  default: u(({ onClick: y }) => [
5694
- !n.product || i.privateProduct.isPurchased ? (l(), v(b, {
5721
+ !n.product || i.privateProduct.isPurchased ? (a(), C(b, {
5695
5722
  key: 0,
5696
5723
  disabled: n.product ? !i.privateProduct.isPurchased : !1,
5697
5724
  type: "secondary",
@@ -5703,7 +5730,7 @@ function Ma(e, t, n, s, i, o) {
5703
5730
  T(d(e.$t("_common:use", { thing: e.$t("_common:template") })), 1)
5704
5731
  ]),
5705
5732
  _: 2
5706
- }, 1032, ["disabled", "onClick"])) : C("", !0)
5733
+ }, 1032, ["disabled", "onClick"])) : v("", !0)
5707
5734
  ]),
5708
5735
  _: 2
5709
5736
  }, 1024)
@@ -5716,7 +5743,7 @@ function Ma(e, t, n, s, i, o) {
5716
5743
  default: u(({ onClick: y }) => {
5717
5744
  var f;
5718
5745
  return [
5719
- (n.product ? (f = n.product) != null && f.isPurchased : n.showSave) ? (l(), v(b, {
5746
+ (n.product ? (f = n.product) != null && f.isPurchased : n.showSave) ? (a(), C(b, {
5720
5747
  key: 0,
5721
5748
  loading: e.isLoading,
5722
5749
  type: i.didSave ? "success" : "none",
@@ -5729,7 +5756,7 @@ function Ma(e, t, n, s, i, o) {
5729
5756
  T(d(i.didSave ? e.$t("_common:savedThing", { thing: e.$t("_common:template") }) : e.$t("_common:saveAs", { thing: e.$t("_common:template") })), 1)
5730
5757
  ]),
5731
5758
  _: 2
5732
- }, 1032, ["loading", "type", "icon-left", "onClick"])) : C("", !0)
5759
+ }, 1032, ["loading", "type", "icon-left", "onClick"])) : v("", !0)
5733
5760
  ];
5734
5761
  }),
5735
5762
  _: 2
@@ -5737,7 +5764,7 @@ function Ma(e, t, n, s, i, o) {
5737
5764
  ]),
5738
5765
  _: 1
5739
5766
  }),
5740
- o.allowCopyTemplateLink ? (l(), v(b, {
5767
+ o.allowCopyTemplateLink ? (a(), C(b, {
5741
5768
  key: 1,
5742
5769
  type: "none",
5743
5770
  "icon-left": "link",
@@ -5748,12 +5775,12 @@ function Ma(e, t, n, s, i, o) {
5748
5775
  T(d(e.$t("_common:share", { thing: e.$t("_common:link") })), 1)
5749
5776
  ]),
5750
5777
  _: 1
5751
- })) : C("", !0)
5778
+ })) : v("", !0)
5752
5779
  ])
5753
5780
  ])
5754
5781
  ]);
5755
5782
  }
5756
- const Pa = /* @__PURE__ */ F(ya, [["render", Ma], ["__scopeId", "data-v-d37ef215"]]), Aa = {
5783
+ const Rl = /* @__PURE__ */ F(kl, [["render", zl], ["__scopeId", "data-v-d37ef215"]]), Ol = {
5757
5784
  name: "GalleryLogic",
5758
5785
  i18nOptions: {
5759
5786
  namespaces: "GalleryLogic",
@@ -5937,7 +5964,7 @@ const Pa = /* @__PURE__ */ F(ya, [["render", Ma], ["__scopeId", "data-v-d37ef215
5937
5964
  isVisibleApp: !0,
5938
5965
  includePurchaseInfo: !0
5939
5966
  }, n = await this.fetchGallery(t), s = (o = n == null ? void 0 : n[0]) == null ? void 0 : o.templateId;
5940
- return s ? (St(s), new It(s)) : null;
5967
+ return s ? (St(s), new $t(s)) : null;
5941
5968
  },
5942
5969
  onUseTemplate(e) {
5943
5970
  if (!e) throw new Error("Could not find template");
@@ -5959,7 +5986,7 @@ const Pa = /* @__PURE__ */ F(ya, [["render", Ma], ["__scopeId", "data-v-d37ef215
5959
5986
  fortnoxCom: "/img/fortnox/apple-touch-icon-180x180.png"
5960
5987
  };
5961
5988
  this.$modal.show(
5962
- Pa,
5989
+ Rl,
5963
5990
  {
5964
5991
  template: e,
5965
5992
  fetchGallery: this.fetchGallery,
@@ -6004,7 +6031,7 @@ const Pa = /* @__PURE__ */ F(ya, [["render", Ma], ["__scopeId", "data-v-d37ef215
6004
6031
  }
6005
6032
  }
6006
6033
  };
6007
- function Ea(e, t, n, s, i, o) {
6034
+ function Hl(e, t, n, s, i, o) {
6008
6035
  return M(e.$slots, "default", {
6009
6036
  galleryItems: o.galleryItems,
6010
6037
  categories: o.categories,
@@ -6013,7 +6040,7 @@ function Ea(e, t, n, s, i, o) {
6013
6040
  selectGalleryItem: o.selectGalleryItem
6014
6041
  });
6015
6042
  }
6016
- const za = /* @__PURE__ */ F(Aa, [["render", Ea]]), Ra = {
6043
+ const Ul = /* @__PURE__ */ F(Ol, [["render", Hl]]), ql = {
6017
6044
  i18nOptions: {
6018
6045
  namespaces: "TemplateSelector",
6019
6046
  messages: {
@@ -6057,10 +6084,10 @@ const za = /* @__PURE__ */ F(Aa, [["render", Ea]]), Ra = {
6057
6084
  },
6058
6085
  name: "TemplateSelector",
6059
6086
  components: {
6060
- HorizontalScroll: ha,
6061
- DocumentIcon: la,
6062
- DocumentRecent: Xs,
6063
- GalleryLogic: za,
6087
+ HorizontalScroll: vl,
6088
+ DocumentIcon: ul,
6089
+ DocumentRecent: il,
6090
+ GalleryLogic: Ul,
6064
6091
  IsPremiumPreStep: Y,
6065
6092
  CDropdown: fe,
6066
6093
  CDropdownItem: ge
@@ -6187,7 +6214,7 @@ const za = /* @__PURE__ */ F(Aa, [["render", Ea]]), Ra = {
6187
6214
  },
6188
6215
  async saveTemplate(e) {
6189
6216
  try {
6190
- const { data: t } = e, n = $t(t, [
6217
+ const { data: t } = e, n = It(t, [
6191
6218
  "_id",
6192
6219
  "id",
6193
6220
  "companyId",
@@ -6230,39 +6257,39 @@ const za = /* @__PURE__ */ F(Aa, [["render", Ea]]), Ra = {
6230
6257
  await Ue(t) && be("info", this.$t("copyMessage"));
6231
6258
  }
6232
6259
  }
6233
- }, Oa = { class: "h-full w-full overflow-y-auto rounded-2xl bg-white px-4 pb-10 pt-10 md:px-10 md:pt-16" }, Ha = { style: { width: "100%", "padding-bottom": "5em" } }, Ua = { class: "section-title" }, qa = { class: "section-subtitle" }, Ga = {
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 = {
6234
6261
  key: 0,
6235
6262
  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"
6236
- }, Na = {
6263
+ }, Kl = {
6237
6264
  key: 1,
6238
6265
  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"
6239
- }, Wa = { style: { width: "100%", "padding-bottom": "5em" } }, ja = { class: "section-title w-full" }, Za = { class: "flex items-center justify-between" }, Ka = ["innerHTML"], Qa = {
6266
+ }, Ql = { style: { width: "100%", "padding-bottom": "5em" } }, Yl = { class: "section-title w-full" }, Jl = { class: "flex items-center justify-between" }, Xl = ["innerHTML"], ea = {
6240
6267
  key: 0,
6241
6268
  class: "bg-primary-500 border-primary-700/40 rounded border p-1 text-xs font-semibold leading-none text-white shadow-lg"
6242
- }, Ya = ["textContent"], Ja = {
6269
+ }, ta = ["textContent"], na = {
6243
6270
  class: "section-title",
6244
6271
  style: { flex: "1 1 auto", "padding-bottom": "0.5em" }
6245
- }, Xa = { class: "section-subtitle" };
6246
- function el(e, t, n, s, i, o) {
6247
- 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 = ae("tooltip");
6248
- return l(), p("div", Oa, [
6249
- a("div", {
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", {
6250
6277
  class: L([{ small: e.mq === "sm" }, "font-inter form-start main mx-auto max-w-5xl"])
6251
6278
  }, [
6252
6279
  M(e.$slots, "header", {}, void 0, !0),
6253
- a("div", Ha, [
6254
- a("div", Ua, [
6255
- a("div", null, d(e.$t("myTemplates")), 1),
6256
- a("div", qa, d(e.$t("myTemplatesSubTitle")), 1)
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)
6257
6284
  ]),
6258
6285
  c(k, { feature: "useDocTemplate" }, {
6259
6286
  default: u(({ onClick: x }) => [
6260
- (l(), v(G(i.isExpanded ? "div" : "HorizontalScroll"), {
6287
+ (a(), C(G(i.isExpanded ? "div" : "HorizontalScroll"), {
6261
6288
  class: L([{ "is-expanded": i.isExpanded }, "template-list"]),
6262
6289
  onExpand: t[2] || (t[2] = (_) => i.isExpanded = !0)
6263
6290
  }, {
6264
6291
  default: u(() => [
6265
- (l(!0), p($, null, P(o.myTemplates, (_) => (l(), v(w, {
6292
+ (a(!0), p(I, null, P(o.myTemplates, (_) => (a(), C(w, {
6266
6293
  key: _.id,
6267
6294
  "is-add": _.id === "empty",
6268
6295
  "is-placeholder": _.placeholder,
@@ -6273,17 +6300,17 @@ function el(e, t, n, s, i, o) {
6273
6300
  onTriggerOpenTemplate: (A) => _.placeholder ? null : o.canUseTemplate(_) ? o.select({ templateId: _.id }) : x()
6274
6301
  }, {
6275
6302
  badge: u(() => [
6276
- o.canUseTemplate(_) ? !_.doConsumeDocumentQuota && !_.placeholder ? (l(), p("div", Na, d(e.$t("_common:free")), 1)) : C("", !0) : (l(), p("div", Ga, [
6303
+ o.canUseTemplate(_) ? !_.doConsumeDocumentQuota && !_.placeholder ? (a(), p("div", Kl, d(e.$t("_common:free")), 1)) : v("", !0) : (a(), p("div", Zl, [
6277
6304
  c(r, {
6278
6305
  type: "lock",
6279
6306
  size: "12",
6280
6307
  "stroke-width": "2.5"
6281
6308
  }),
6282
- t[4] || (t[4] = a("div", { class: "text-[11px] font-semibold" }, "Pro", -1))
6309
+ t[4] || (t[4] = l("div", { class: "text-[11px] font-semibold" }, "Pro", -1))
6283
6310
  ]))
6284
6311
  ]),
6285
6312
  default: u(() => [
6286
- _.onModify === "create" && !_.doConsumeDocumentQuota ? N((l(), v(g, {
6313
+ _.onModify === "create" && !_.doConsumeDocumentQuota ? N((a(), C(g, {
6287
6314
  key: 0,
6288
6315
  icon: "info",
6289
6316
  type: "none",
@@ -6297,7 +6324,7 @@ function el(e, t, n, s, i, o) {
6297
6324
  content: e.$t("icon.freeTooltip"),
6298
6325
  placement: "bottom"
6299
6326
  }]
6300
- ]) : (l(), v(b, {
6327
+ ]) : (a(), C(b, {
6301
6328
  key: 1,
6302
6329
  "append-to-body": "",
6303
6330
  style: { top: "-8px", right: "-4px" },
@@ -6315,7 +6342,7 @@ function el(e, t, n, s, i, o) {
6315
6342
  ])
6316
6343
  ]),
6317
6344
  default: u(() => [
6318
- n.onEditTemplate ? (l(), v(h, {
6345
+ n.onEditTemplate ? (a(), C(h, {
6319
6346
  key: 0,
6320
6347
  "icon-left": "template-color",
6321
6348
  onClick: (A) => n.onEditTemplate(_.id)
@@ -6324,7 +6351,7 @@ function el(e, t, n, s, i, o) {
6324
6351
  T(d(e.$t("_common:edit", { thing: e.$t("_common:template") })), 1)
6325
6352
  ]),
6326
6353
  _: 2
6327
- }, 1032, ["onClick"])) : C("", !0),
6354
+ }, 1032, ["onClick"])) : v("", !0),
6328
6355
  c(h, {
6329
6356
  "icon-props": { size: 16 },
6330
6357
  "icon-left": "edit",
@@ -6370,7 +6397,7 @@ function el(e, t, n, s, i, o) {
6370
6397
  _: 1
6371
6398
  })
6372
6399
  ]),
6373
- n.showGallery ? (l(), v(D, {
6400
+ n.showGallery ? (a(), C(D, {
6374
6401
  key: 0,
6375
6402
  "fetch-gallery": o.fetchGallery,
6376
6403
  "use-template": o.select,
@@ -6385,10 +6412,10 @@ function el(e, t, n, s, i, o) {
6385
6412
  selectCategory: z,
6386
6413
  selectGalleryItem: X
6387
6414
  }) => [
6388
- a("div", Wa, [
6389
- a("div", ja, [
6390
- a("div", Za, [
6391
- a("div", null, d(e.$t("gallery")), 1),
6415
+ l("div", Ql, [
6416
+ l("div", Yl, [
6417
+ l("div", Jl, [
6418
+ l("div", null, d(e.$t("gallery")), 1),
6392
6419
  c(b, {
6393
6420
  style: { "margin-left": "calc(0.5 * var(--rem))" },
6394
6421
  onClick: t[3] || (t[3] = q(() => {
@@ -6408,13 +6435,13 @@ function el(e, t, n, s, i, o) {
6408
6435
  }, 1024)
6409
6436
  ]),
6410
6437
  default: u(() => [
6411
- (l(!0), p($, null, P(_, (I) => (l(), v(h, {
6412
- key: I.key,
6413
- "icon-right": A && A.key === I.key ? "check" : "",
6414
- onClick: (ie) => z(I)
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($)
6415
6442
  }, {
6416
6443
  default: u(() => [
6417
- T(d(I.label), 1)
6444
+ T(d($.label), 1)
6418
6445
  ]),
6419
6446
  _: 2
6420
6447
  }, 1032, ["icon-right", "onClick"]))), 128))
@@ -6422,33 +6449,33 @@ function el(e, t, n, s, i, o) {
6422
6449
  _: 2
6423
6450
  }, 1024)
6424
6451
  ]),
6425
- a("div", {
6452
+ l("div", {
6426
6453
  class: "section-subtitle",
6427
6454
  innerHTML: e.$t("gallerySubTitle")
6428
- }, null, 8, Ka)
6455
+ }, null, 8, Xl)
6429
6456
  ]),
6430
6457
  c(S, { class: "template-list" }, {
6431
6458
  default: u(() => [
6432
- (l(!0), p($, null, P(x, (I) => (l(), v(w, {
6433
- key: I.id,
6434
- "is-placeholder": I.placeholder,
6435
- media: { type: "image", resourceUrl: I.backgroundUrl },
6436
- name: I.name,
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,
6437
6464
  class: "template-item",
6438
- onTriggerOpenTemplate: (ie) => I.placeholder ? null : X(I)
6465
+ onTriggerOpenTemplate: (ie) => $.placeholder ? null : X($)
6439
6466
  }, {
6440
6467
  badge: u(() => [
6441
- I.product ? (l(), p("div", Qa, [
6442
- I.product.isPurchased ? (l(), v(r, {
6468
+ $.product ? (a(), p("div", ea, [
6469
+ $.product.isPurchased ? (a(), C(r, {
6443
6470
  key: 0,
6444
6471
  type: "check",
6445
6472
  size: "14",
6446
6473
  "stroke-width": "3"
6447
- })) : (l(), p("div", {
6474
+ })) : (a(), p("div", {
6448
6475
  key: 1,
6449
- textContent: d(I.product.price)
6450
- }, null, 8, Ya))
6451
- ])) : C("", !0)
6476
+ textContent: d($.product.price)
6477
+ }, null, 8, ta))
6478
+ ])) : v("", !0)
6452
6479
  ]),
6453
6480
  _: 2
6454
6481
  }, 1032, ["is-placeholder", "media", "name", "onTriggerOpenTemplate"]))), 128))
@@ -6458,16 +6485,16 @@ function el(e, t, n, s, i, o) {
6458
6485
  ])
6459
6486
  ]),
6460
6487
  _: 1
6461
- }, 8, ["fetch-gallery", "use-template", "show-template-author", "modal-props", "gallery-category"])) : C("", !0),
6488
+ }, 8, ["fetch-gallery", "use-template", "show-template-author", "modal-props", "gallery-category"])) : v("", !0),
6462
6489
  c(y, {
6463
6490
  style: { width: "100%", "padding-bottom": "5em" },
6464
6491
  onUseDocTemplate: o.select,
6465
6492
  onSaveTemplate: o.openTemplateFormModal
6466
6493
  }, {
6467
6494
  default: u(() => [
6468
- a("div", Ja, [
6469
- a("div", null, d(e.$t("recent")), 1),
6470
- a("div", Xa, d(e.$t("recentSubTitle")), 1)
6495
+ l("div", na, [
6496
+ l("div", null, d(e.$t("recent")), 1),
6497
+ l("div", ia, d(e.$t("recentSubTitle")), 1)
6471
6498
  ])
6472
6499
  ]),
6473
6500
  _: 1
@@ -6475,9 +6502,9 @@ function el(e, t, n, s, i, o) {
6475
6502
  ], 2)
6476
6503
  ]);
6477
6504
  }
6478
- const tl = /* @__PURE__ */ F(Ra, [["render", el], ["__scopeId", "data-v-2fb04074"]]);
6505
+ const sa = /* @__PURE__ */ F(ql, [["render", oa], ["__scopeId", "data-v-2fb04074"]]);
6479
6506
  var ce, Ve;
6480
- function nl() {
6507
+ function la() {
6481
6508
  if (Ve) return ce;
6482
6509
  Ve = 1;
6483
6510
  var e = Lt(), t = Vt(), n = Bt();
@@ -6491,10 +6518,10 @@ function nl() {
6491
6518
  return ce = s, ce;
6492
6519
  }
6493
6520
  var ue, Be;
6494
- function il() {
6521
+ function aa() {
6495
6522
  if (Be) return ue;
6496
6523
  Be = 1;
6497
- var e = nl(), t = Mt();
6524
+ var e = la(), t = Mt();
6498
6525
  function n(s, i) {
6499
6526
  return e(s, i, function(o, r) {
6500
6527
  return t(s, r);
@@ -6503,16 +6530,16 @@ function il() {
6503
6530
  return ue = n, ue;
6504
6531
  }
6505
6532
  var me, Me;
6506
- function ol() {
6533
+ function ra() {
6507
6534
  if (Me) return me;
6508
6535
  Me = 1;
6509
- var e = il(), t = Yt(), n = t(function(s, i) {
6536
+ var e = aa(), t = Yt(), n = t(function(s, i) {
6510
6537
  return s == null ? {} : e(s, i);
6511
6538
  });
6512
6539
  return me = n, me;
6513
6540
  }
6514
- var sl = ol();
6515
- const al = /* @__PURE__ */ Oe(sl), ll = {
6541
+ var da = ra();
6542
+ const ca = /* @__PURE__ */ Oe(da), ua = {
6516
6543
  name: "DocForm",
6517
6544
  i18nOptions: {
6518
6545
  namespaces: "widgetDocForm",
@@ -6526,8 +6553,8 @@ const al = /* @__PURE__ */ Oe(sl), ll = {
6526
6553
  }
6527
6554
  },
6528
6555
  components: {
6529
- TemplateSelector: tl,
6530
- DocumentForm: Gs,
6556
+ TemplateSelector: sa,
6557
+ DocumentForm: Zs,
6531
6558
  PostSend: un
6532
6559
  },
6533
6560
  provide() {
@@ -6647,7 +6674,7 @@ const al = /* @__PURE__ */ Oe(sl), ll = {
6647
6674
  },
6648
6675
  async onTemplateSelect({ templateId: e, documentId: t, formData: n }) {
6649
6676
  var i;
6650
- const s = al({ ...this.rawDoc }, [
6677
+ const s = ca({ ...this.rawDoc }, [
6651
6678
  "__tempId",
6652
6679
  "externalReferences",
6653
6680
  "subscriberCompanyUserIds",
@@ -6696,23 +6723,23 @@ const al = /* @__PURE__ */ Oe(sl), ll = {
6696
6723
  return !t.sms && !t.email;
6697
6724
  }
6698
6725
  }
6699
- }, rl = { class: "flex h-full w-full flex-col" }, dl = {
6726
+ }, ma = { class: "flex h-full w-full flex-col" }, pa = {
6700
6727
  key: 0,
6701
6728
  class: "flex h-full w-full flex-col"
6702
- }, cl = { class: "relative flex h-16 items-center justify-center border-b border-gray-200" };
6703
- function ul(e, t, n, s, i, o) {
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) {
6704
6731
  const r = m("CButton"), g = m("TemplateSelector"), h = m("DocumentForm"), b = m("PostSend");
6705
- return l(), p("div", rl, [
6706
- i.view === "templateSelect" ? (l(), p("div", dl, [
6707
- a("div", cl, [
6708
- n.closeFunc ? (l(), v(r, {
6732
+ return a(), p("div", ma, [
6733
+ i.view === "templateSelect" ? (a(), p("div", pa, [
6734
+ l("div", ha, [
6735
+ n.closeFunc ? (a(), C(r, {
6709
6736
  key: 0,
6710
6737
  icon: "x",
6711
6738
  circle: "",
6712
6739
  class: "absolute left-4 top-1/2 -translate-y-1/2",
6713
6740
  onClick: n.closeFunc
6714
- }, null, 8, ["onClick"])) : C("", !0),
6715
- a("div", null, d(e.$t("selectNavTitle")), 1)
6741
+ }, null, 8, ["onClick"])) : v("", !0),
6742
+ l("div", null, d(e.$t("selectNavTitle")), 1)
6716
6743
  ]),
6717
6744
  c(g, {
6718
6745
  "on-use-template": o.onTemplateSelect,
@@ -6724,7 +6751,7 @@ function ul(e, t, n, s, i, o) {
6724
6751
  "include-partner-templates": "",
6725
6752
  class: "body-scroll min-h-0"
6726
6753
  }, null, 8, ["on-use-template", "show-gallery", "gallery-category", "on-save-template", "show-keep-clients-option"])
6727
- ])) : i.view === "editor" ? (l(), v(h, {
6754
+ ])) : i.view === "editor" ? (a(), C(h, {
6728
6755
  key: 1,
6729
6756
  document: i.document,
6730
6757
  "set-doc-value": o.setDocValue,
@@ -6740,7 +6767,7 @@ function ul(e, t, n, s, i, o) {
6740
6767
  "show-keep-clients-option": n.showKeepClientsOption
6741
6768
  }, {
6742
6769
  "nav-right-action": u(() => [
6743
- n.isEditingTemplate ? (l(), v(r, {
6770
+ n.isEditingTemplate ? (a(), C(r, {
6744
6771
  key: 0,
6745
6772
  loading: i.isSavingTemplate,
6746
6773
  disabled: !o.canDoActions,
@@ -6755,18 +6782,18 @@ function ul(e, t, n, s, i, o) {
6755
6782
  T(d(e.$t("_common:save", { thing: e.$t("_common:template") })), 1)
6756
6783
  ]),
6757
6784
  _: 1
6758
- }, 8, ["loading", "disabled", "onClick"])) : C("", !0)
6785
+ }, 8, ["loading", "disabled", "onClick"])) : v("", !0)
6759
6786
  ]),
6760
6787
  _: 1
6761
- }, 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(), v(b, {
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, {
6762
6789
  key: 2,
6763
6790
  document: i.document,
6764
6791
  "on-send-func": n.closeFunc,
6765
6792
  "on-close-func": n.closeFunc
6766
- }, null, 8, ["document", "on-send-func", "on-close-func"])) : C("", !0)
6793
+ }, null, 8, ["document", "on-send-func", "on-close-func"])) : v("", !0)
6767
6794
  ]);
6768
6795
  }
6769
- const El = /* @__PURE__ */ F(ll, [["render", ul], ["__scopeId", "data-v-4c6b6a6b"]]);
6796
+ const Ha = /* @__PURE__ */ F(ua, [["render", fa], ["__scopeId", "data-v-4c6b6a6b"]]);
6770
6797
  export {
6771
- El as default
6798
+ Ha as default
6772
6799
  };