@cling-se/widget 0.15.0 → 0.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/dist/{AddClientCallout-AzRpL0vT.js → AddClientCallout-CSxN7XFh.js} +3 -3
  2. package/dist/{AnswerModal-CDvyRytm.js → AnswerModal-DEwMlsT8.js} +3 -3
  3. package/dist/{AttachmentItem-CSF4W4Xu.js → AttachmentItem-R7YMKqQ2.js} +2 -2
  4. package/dist/{BaseDatePicker-SxYuhQ3d.js → BaseDatePicker-Bd1maWgF.js} +102 -102
  5. package/dist/{BaseUpload-ZaLcRmJi.js → BaseUpload-C9Jd1JBo.js} +2 -2
  6. package/dist/{BlockMedia-iYNGqCP-.js → BlockMedia-CUCZYVdZ.js} +1 -1
  7. package/dist/{CCallout-DzwZ6iEQ.js → CCallout-_k7FPbsE.js} +1 -1
  8. package/dist/{CCurrencyDropdown-CcjeZr0M.js → CCurrencyDropdown-DejfeYVY.js} +3 -3
  9. package/dist/{CDropdownItem-C_Q1Rz8L.js → CDropdownItem-b6ZzOnv-.js} +1 -1
  10. package/dist/{CFormField-DagN3ANJ.js → CFormField-BjGICSv5.js} +1 -1
  11. package/dist/{CPhoneFormat-BabexkZC.js → CPhoneFormat-Bf2fgYtr.js} +1 -1
  12. package/dist/{CPriceInput-4SWAt4-e.js → CPriceInput-myrETXfz.js} +2 -2
  13. package/dist/{ClientAutocomplete-BfLr3svj.js → ClientAutocomplete-DyXQEfcS.js} +2 -2
  14. package/dist/{ClientModal-BfqyNmGa.js → ClientModal-DSmFJ9bu.js} +5 -5
  15. package/dist/{ColorPicker-DsWa5-ky.js → ColorPicker-B1MJicqo.js} +1 -1
  16. package/dist/{CompanyModal-BX27IyQz.js → CompanyModal-BXs3aAYm.js} +4 -4
  17. package/dist/{ContentWrapper-Cs9WIbLC.js → ContentWrapper-BKWZy4Bp.js} +9 -9
  18. package/dist/{CoverBlockSettings-C4szZ3l6.js → CoverBlockSettings-7Ivt9zN0.js} +5 -5
  19. package/dist/{DocAnswer-_wiaHtar.js → DocAnswer-CaoTYUNh.js} +2 -2
  20. package/dist/{DocDetails-Cn1F4Xml.js → DocDetails-C9EEpNg2.js} +7 -7
  21. package/dist/{DocForm-DCGLCf5f.js → DocForm-Dww8Ust9.js} +629 -625
  22. package/dist/{DocFormSend-B_NOZOA_.js → DocFormSend-DKAqaT50.js} +2 -2
  23. package/dist/{DocLinks-B5hDdjxz.js → DocLinks-DFUO03dk.js} +2 -2
  24. package/dist/{DocModalBase-BM0QeAB4.js → DocModalBase-QZosNhiK.js} +1 -1
  25. package/dist/{DocPrint-tjYvjnDX.js → DocPrint--T278pDE.js} +1 -1
  26. package/dist/{DocReceipt-CNDUYcIB.js → DocReceipt-CPg45_I7.js} +1 -1
  27. package/dist/{DocSendReminder-NRTpZv2P.js → DocSendReminder-DQAaiUrs.js} +1 -1
  28. package/dist/{DocTextEditor-BclZr0JD.js → DocTextEditor-CM1f8eMD.js} +7 -7
  29. package/dist/{DocTimeline-ClCG-Hq0.js → DocTimeline-Ce0OZgGP.js} +1 -1
  30. package/dist/{DocumentClient-DEhDXlwK.js → DocumentClient-DHU-Rg3r.js} +5 -5
  31. package/dist/{DocumentLayout-C--Lin9F.js → DocumentLayout-GYCBw2F_.js} +264 -262
  32. package/dist/{DocumentLogotype-RvsC35wt.js → DocumentLogotype-Cilc0ElE.js} +3 -3
  33. package/dist/{DocumentVoided-BrABKjEB.js → DocumentVoided-BH8pkv85.js} +1 -1
  34. package/dist/{EmbedInput-Bv7hF0VQ.js → EmbedInput-lMSVQSey.js} +2 -2
  35. package/dist/{EmbedSettings-Y_hwE4vJ.js → EmbedSettings-D65Y2AZL.js} +2 -2
  36. package/dist/ErrorCallout-BBNHzuhf.js +27 -0
  37. package/dist/{FilePreviewModal-Bdb8TBf5.js → FilePreviewModal-iPIuaIor.js} +2 -2
  38. package/dist/{Flag-2ApHWZ3T.js → Flag-CwnrA4SV.js} +1 -1
  39. package/dist/{HeaderSettings-Blsq72_Z.js → HeaderSettings-WKUIBCfF.js} +7 -7
  40. package/dist/{ImageSelectModal-DHN8lKYM.js → ImageSelectModal-BTMFM3o9.js} +3 -3
  41. package/dist/{ImageUploadWrapper-CWZZ5hGk.js → ImageUploadWrapper-BaLjUZF5.js} +2 -2
  42. package/dist/{Index-D9KmhTIR.js → Index-0aZtDWyk.js} +4 -4
  43. package/dist/{Index-BRvn7zVo.js → Index-2PGn8Pnv.js} +4 -4
  44. package/dist/{Index-QjqQg_tR.js → Index-9PMrT3eB.js} +2 -2
  45. package/dist/{Index-Blr5zPZh.js → Index-B-UWz1IM.js} +4 -4
  46. package/dist/{Index-u26vgCKd.js → Index-B-YqdbQX.js} +3 -3
  47. package/dist/{Index-CyjmLDpa.js → Index-B0pgh8nR.js} +2 -2
  48. package/dist/{Index-D8WCevxd.js → Index-B51tj7qY.js} +4 -4
  49. package/dist/{Index-B8PV5t8X.js → Index-B5XaBVyJ.js} +3 -3
  50. package/dist/{Index-TNmLMHsS.js → Index-BBOJRRgx.js} +5 -5
  51. package/dist/{Index-DcS0YAIG.js → Index-BBTn35Kj.js} +4 -4
  52. package/dist/{Index-VsEdNKtz.js → Index-BQ3kapHk.js} +2 -2
  53. package/dist/{Index-DU_gzJQ3.js → Index-BUEXgHEE.js} +6 -6
  54. package/dist/{Index-xbWE2bCU.js → Index-BVt3pj58.js} +20 -20
  55. package/dist/{Index-gjT3U8H0.js → Index-B_ta4yT_.js} +7 -7
  56. package/dist/{Index-B6OAvING.js → Index-BepvyGqo.js} +8 -8
  57. package/dist/{Index-CIiCElst.js → Index-Bsv15ctO.js} +5 -5
  58. package/dist/{Index-BX12AMrG.js → Index-C6tGNKAk.js} +5 -5
  59. package/dist/{Index-DgwozWoF.js → Index-CEHhYmLe.js} +6 -6
  60. package/dist/{Index-B_zFq-f8.js → Index-CEaZgZqg.js} +2 -2
  61. package/dist/{Index-CJVwSkIr.js → Index-Ccx9wHcb.js} +3 -3
  62. package/dist/{Index-DGbe0pWa.js → Index-CtQo0b8t.js} +1 -1
  63. package/dist/{Index-jFlqwlJS.js → Index-CtZMlBfK.js} +5 -5
  64. package/dist/{Index-DU60X_YS.js → Index-DJeZiYxr.js} +4 -4
  65. package/dist/{Index-6duNBl8Y.js → Index-DK3b6Cv-.js} +4 -4
  66. package/dist/{Index-Bwjd-uTn.js → Index-DS1PwlDq.js} +4 -4
  67. package/dist/{Index-DR8L-lAn.js → Index-DS7xellB.js} +7 -7
  68. package/dist/Index-DrSgVUyo.js +41 -0
  69. package/dist/{Index-BbF-ZO2M.js → Index-Dv1fkHWQ.js} +2 -2
  70. package/dist/{Index-DppKk62J.js → Index-GrrsUUz1.js} +4 -4
  71. package/dist/{Index-L8zfJrbV.js → Index-ZKkQzVOj.js} +3 -3
  72. package/dist/{Index-C26_o49t.js → Index-cPIqnY80.js} +5 -5
  73. package/dist/{Index-G79ulgs-.js → Index-ivhPuQy5.js} +5 -5
  74. package/dist/{Index-Cjm8COEb.js → Index-oKRUWCcJ.js} +6 -6
  75. package/dist/{Index-CCacVjly.js → Index-rL3fz1Ew.js} +2 -2
  76. package/dist/{InputToggleRow-DhMmDXY_.js → InputToggleRow-CJF0vwk3.js} +1 -1
  77. package/dist/{ManualPopover-DVz0whtf.js → ManualPopover-CEF7LMpn.js} +1 -1
  78. package/dist/{MediaWrapper-_D2ofQ4x.js → MediaWrapper-CM6vWCoZ.js} +3 -3
  79. package/dist/{NotBindingText-t1LrCNkl.js → NotBindingText-Cee9yA0M.js} +2 -2
  80. package/dist/{PackageGroup-Cz4jwdKy.js → PackageGroup-CFXogKPM.js} +8 -8
  81. package/dist/{PdfTerms-ySMcVtMw.js → PdfTerms-ChtDfzne.js} +2 -2
  82. package/dist/{PdfViewer-DmVphxuU.js → PdfViewer-Cd0Jm2VB.js} +3 -3
  83. package/dist/PlainHtml-CucWAcOU.js +27 -0
  84. package/dist/{PriceHeader-CcrU27jC.js → PriceHeader-DdMZUaq5.js} +6 -6
  85. package/dist/{SearchApi-BcgYuHnp.js → SearchApi-knNqVduO.js} +2 -2
  86. package/dist/{Setup-BYgi8rB6.js → Setup-7HIAWuiK.js} +1 -1
  87. package/dist/{SmartList-BQy76HbF.js → SmartList-cSmGbybV.js} +1 -1
  88. package/dist/{TermsSettings-Cff48hRO.js → TermsSettings-CAB-08E3.js} +3 -3
  89. package/dist/{ThemeColorRow-BP3B1_0d.js → ThemeColorRow-DxcMvBGq.js} +3 -3
  90. package/dist/{ToggleBinding-CmyqBk_I.js → ToggleBinding-CTTYdrkp.js} +3 -3
  91. package/dist/{UploadModal-CyF28dJu.js → UploadModal-CvoSMExA.js} +4 -4
  92. package/dist/{VideoPlayerInput-DZSIBBno.js → VideoPlayerInput-X5baUH3q.js} +3 -3
  93. package/dist/{VideoPlayerSettings-B18BNVLk.js → VideoPlayerSettings-DsIvpufB.js} +2 -2
  94. package/dist/{VideoSelectModal-DLYDXqLD.js → VideoSelectModal-VMcSU3bM.js} +3 -3
  95. package/dist/{answerDocumentMixin-DMmpKyET.js → answerDocumentMixin-B8HB1WAX.js} +3 -3
  96. package/dist/{debounce-D1yOPGgu.js → debounce-B2lqFJg2.js} +1 -1
  97. package/dist/{focusDrawerMixin-Br-QslLb.js → focusDrawerMixin-B2djM7ql.js} +1 -1
  98. package/dist/{formComponentsInstall-BiLkH6wQ.js → formComponentsInstall-CdjgjI6y.js} +200 -204
  99. package/dist/{formDrawerState-Js81vZJy.js → formDrawerState-CchCpZRc.js} +1 -1
  100. package/dist/{formValidationMixin-53auWWhq.js → formValidationMixin-Dz9Mabvi.js} +1 -1
  101. package/dist/{index-Cft0QOP8.js → index-BCrDgR_4.js} +2 -2
  102. package/dist/{index-NmlBSVwA.js → index-BaGtbWcA.js} +5 -5
  103. package/dist/{index-BRWVACzY.js → index-Dk6sZCYv.js} +1 -1
  104. package/dist/{index-VgcL-RmW.js → index-H1Kx9sJM.js} +5 -5
  105. package/dist/{index-B_UJMy_K.js → index-kV9OZ5y0.js} +1 -1
  106. package/dist/{index-CihfdSBG.js → index-twnaU4rC.js} +1 -1
  107. package/dist/index.es.js +3 -3
  108. package/dist/index.umd.js +140 -140
  109. package/dist/{main-Bw3hbSQ-.js → main-CerYX9PA.js} +7329 -7275
  110. package/dist/{mapFormMixin-BinelLUg.js → mapFormMixin-Hj1Y7rVt.js} +1 -1
  111. package/dist/{omit-C4GTWP3u.js → omit-DGBewD2h.js} +3 -3
  112. package/dist/{publicSenderState-DORLbMvq.js → publicSenderState-t7Gu53cA.js} +1 -1
  113. package/dist/style.css +2 -2
  114. package/dist/{throttle-CuGCM8jm.js → throttle-B8hI9bkk.js} +2 -2
  115. package/dist/{tinycolor-BFvkceNf.js → tinycolor-BaK26Ky-.js} +1 -1
  116. package/dist/{tippy.esm-BK3Nmf2L.js → tippy.esm-BuWRbveV.js} +5 -5
  117. package/dist/{utils-DYvxV57L.js → utils-Pmm0DT8o.js} +1 -1
  118. package/dist/{vuedraggable.umd-BT5Am26_.js → vuedraggable.umd-Besz6Tlv.js} +1 -1
  119. package/package.json +1 -1
  120. package/.env.local +0 -14
  121. package/dist/ErrorCallout-B6fESwgE.js +0 -28
  122. package/dist/Index-CtXJvgOl.js +0 -31
  123. package/dist/PlainHtml-DVDqzrtb.js +0 -20
@@ -1,28 +1,28 @@
1
- import se from "./AnswerModal-CDvyRytm.js";
2
- import { o as ne } from "./index-BRWVACzY.js";
3
- import { w as x } from "./CDropdownItem-C_Q1Rz8L.js";
4
- import { aT as I, g as m, n as d, c as f, b as u, d as oe, aU as le, S as re, w as U, j as $, aA as ce, aN as y, a6 as p, O as H, h as D, ae as h, aV as de, aW as pe, aX as ue, aY as me, aZ as he, a_ as fe, V as A, aP as O, aQ as R, I as E, a$ as B, aR as ge, b0 as Ce, J as ve, b1 as ye, f as xe, k as G, b2 as we, b3 as be, F as ke, b4 as _e, C as W, b5 as Le, b6 as $e, N as q, b7 as Se, b8 as Te, aS as De, b9 as Ve, ba as Be, bb as Me, a3 as Ie, bc as Fe, m as He, a as Ae, bd as Pe } from "./main-Bw3hbSQ-.js";
5
- import { a as w, m as g } from "./vuex.esm-DKGl8mcw.js";
6
- import { s as k } from "./Flag-2ApHWZ3T.js";
7
- import { l as Ee, g as ze, W as Ze, b as Ue, a as Oe, D as Re } from "./DocumentLayout-C--Lin9F.js";
8
- import { F as N, d as Ge } from "./tippy.esm-BK3Nmf2L.js";
9
- import { m as S } from "./mapFormMixin-BinelLUg.js";
10
- import { d as P, t as We } from "./debounce-D1yOPGgu.js";
11
- import { d as qe } from "./vuedraggable.umd-BT5Am26_.js";
12
- import { C as Ne, I as _, a as L, s as je } from "./index-Cft0QOP8.js";
13
- import { C as j } from "./CFormField-DagN3ANJ.js";
14
- import { S as Ke } from "./SmartList-BQy76HbF.js";
15
- import { o as Ye, _ as Qe } from "./omit-C4GTWP3u.js";
16
- import { v as F } from "./index-CihfdSBG.js";
17
- import { t as Je } from "./tinycolor-BFvkceNf.js";
18
- import { s as v } from "./formDrawerState-Js81vZJy.js";
19
- import { s as Xe } from "./dom-CJxkno7i.js";
20
- import { S as et, i as tt } from "./formComponentsInstall-BiLkH6wQ.js";
21
- import { f as it } from "./formValidationMixin-53auWWhq.js";
22
- import { B as at } from "./BlockMedia-iYNGqCP-.js";
23
- const st = {
1
+ import ne from "./AnswerModal-DEwMlsT8.js";
2
+ import { o as oe } from "./index-Dk6sZCYv.js";
3
+ import { w } from "./CDropdownItem-b6ZzOnv-.js";
4
+ import { aY as H, g as h, n as d, c as f, b as u, d as le, aZ as re, S as ce, w as R, j as T, aE as de, aR as x, aa as p, P, h as B, ai as m, a_ as pe, a$ as ue, b0 as me, b1 as he, b2 as fe, b3 as ge, V as E, aT as G, aU as W, I as Z, b4 as I, aV as Ce, b5 as ve, K as ye, b6 as xe, f as we, k as q, b7 as be, b8 as ke, F as _e, b9 as Le, X as $e, T as y, G as Se, ba as Te, C as N, bb as De, bc as Ve, O as j, bd as Be, be as Me, aW as Ie, bf as Fe, bg as He, bh as Ae, a7 as Pe, bi as Ee, m as ze, a as Ze, bj as Oe } from "./main-CerYX9PA.js";
5
+ import { a as b, m as C } from "./vuex.esm-DKGl8mcw.js";
6
+ import { s as _ } from "./Flag-CwnrA4SV.js";
7
+ import { l as Ue, g as Re, W as Ge, b as We, a as qe, D as Ne } from "./DocumentLayout-GYCBw2F_.js";
8
+ import { F as K, d as je } from "./tippy.esm-BuWRbveV.js";
9
+ import { m as D } from "./mapFormMixin-Hj1Y7rVt.js";
10
+ import { d as z, t as Ke } from "./debounce-B2lqFJg2.js";
11
+ import { d as Ye } from "./vuedraggable.umd-Besz6Tlv.js";
12
+ import { C as Qe, I as L, a as $, s as Je } from "./index-BCrDgR_4.js";
13
+ import { C as Y } from "./CFormField-BjGICSv5.js";
14
+ import { S as Xe } from "./SmartList-cSmGbybV.js";
15
+ import { o as et, _ as tt } from "./omit-DGBewD2h.js";
16
+ import { v as A } from "./index-twnaU4rC.js";
17
+ import { t as it } from "./tinycolor-BaK26Ky-.js";
18
+ import { s as v } from "./formDrawerState-CchCpZRc.js";
19
+ import { s as at } from "./dom-CJxkno7i.js";
20
+ import { S as st, i as nt } from "./formComponentsInstall-CdjgjI6y.js";
21
+ import { f as ot } from "./formValidationMixin-Dz9Mabvi.js";
22
+ import { B as lt } from "./BlockMedia-CUCZYVdZ.js";
23
+ const rt = {
24
24
  name: "DocumentPostSendStep",
25
- mixins: [x],
25
+ mixins: [w],
26
26
  i18nOptions: {
27
27
  namespaces: "PostDocumentSend",
28
28
  messages: {
@@ -57,7 +57,7 @@ const st = {
57
57
  return this.mq === "sm" ? "100%" : "auto";
58
58
  },
59
59
  usesManualDelivery() {
60
- const i = I(this.document);
60
+ const i = H(this.document);
61
61
  return !i.sms && !i.email;
62
62
  }
63
63
  },
@@ -66,18 +66,18 @@ const st = {
66
66
  (i = this.document) != null && i.senderClient ? await this.senderAnswer() : await this.onSend();
67
67
  },
68
68
  methods: {
69
- ...w({
70
- updateDocument: m.DO_UPDATE_DOCUMENT2,
71
- answerDocument: m.ANSWER_OWN_DOCUMENT2,
72
- sendDocument: m.DO_SEND_DOCUMENT2
69
+ ...b({
70
+ updateDocument: h.DO_UPDATE_DOCUMENT2,
71
+ answerDocument: h.ANSWER_OWN_DOCUMENT2,
72
+ sendDocument: h.DO_SEND_DOCUMENT2
73
73
  }),
74
74
  async handleDocumentLinks() {
75
- const { id: i } = this.document, e = I(this.document), t = !e.sms && !e.email;
75
+ const { id: i } = this.document, e = H(this.document), t = !e.sms && !e.email;
76
76
  t && (await this.updateDocument({
77
77
  id: i,
78
78
  body: { status: "sent" },
79
79
  showMessage: !1
80
- }), ne({ id: i })), t || setTimeout(() => this.close(), 2e3);
80
+ }), oe({ id: i })), t || setTimeout(() => this.close(), 2e3);
81
81
  },
82
82
  async onSend() {
83
83
  typeof this.onSendFunc == "function" && this.onSendFunc(this.document), await this.handleDocumentLinks();
@@ -96,7 +96,7 @@ const st = {
96
96
  body: { isAccepted: !0 },
97
97
  checksum: a
98
98
  }), await this.sendDocument({ id: i }), this.onSend()) : (this.$modal.show(
99
- se,
99
+ ne,
100
100
  {
101
101
  _document: this.document,
102
102
  fullScreen: this.modalHeight === "100%",
@@ -140,18 +140,18 @@ const st = {
140
140
  }
141
141
  }
142
142
  };
143
- var nt = function() {
143
+ var ct = function() {
144
144
  var e = this, t = e._self._c;
145
145
  return t("div", { staticClass: "font-inter root" }, [t("div", { staticClass: "container" }, [t("div", { staticClass: "icon-wrapper" }, [t("CIcon", { attrs: { size: 20, type: "email" } })], 1), t("div", { staticClass: "title", domProps: { textContent: e._s(e.$t("title")) } }), t("div", { staticClass: "divider" }), t("CButton", { staticClass: "close-button", attrs: { type: "secondary" }, on: { click: e.close } }, [e._v(" " + e._s(e.$t("_common:close")) + " ")])], 1)]);
146
- }, ot = [], lt = /* @__PURE__ */ d(
147
- st,
148
- nt,
149
- ot,
146
+ }, dt = [], pt = /* @__PURE__ */ d(
147
+ rt,
148
+ ct,
149
+ dt,
150
150
  !1,
151
151
  null,
152
152
  "736a58ea"
153
153
  );
154
- const rt = lt.exports, ct = {
154
+ const ut = pt.exports, mt = {
155
155
  name: "Drawer",
156
156
  props: {
157
157
  value: {
@@ -194,7 +194,7 @@ const rt = lt.exports, ct = {
194
194
  }
195
195
  }
196
196
  };
197
- var dt = function() {
197
+ var ht = function() {
198
198
  var e = this, t = e._self._c;
199
199
  return t("div", [t("transition", { attrs: { name: "fade" } }, [!e.hideOverlay && e.value ? t("div", { staticClass: "d-overlay", style: {
200
200
  zIndex: e.zIndex
@@ -210,19 +210,19 @@ var dt = function() {
210
210
  boxShadow: e.boxShadow,
211
211
  ...e.contentStyle
212
212
  } }, [e._t("default")], 2)]) : e._e()])], 1);
213
- }, pt = [], ut = /* @__PURE__ */ d(
214
- ct,
215
- dt,
216
- pt,
213
+ }, ft = [], gt = /* @__PURE__ */ d(
214
+ mt,
215
+ ht,
216
+ ft,
217
217
  !1,
218
218
  null,
219
219
  "b9ff8f27"
220
220
  );
221
- const K = ut.exports, mt = {
221
+ const Q = gt.exports, Ct = {
222
222
  name: "DocumentDrawer",
223
223
  components: {
224
- simplebar: k,
225
- Drawer: K
224
+ simplebar: _,
225
+ Drawer: Q
226
226
  },
227
227
  props: {
228
228
  position: {
@@ -244,7 +244,7 @@ const K = ut.exports, mt = {
244
244
  }
245
245
  }
246
246
  };
247
- var ht = function() {
247
+ var vt = function() {
248
248
  var e = this, t = e._self._c;
249
249
  return t("transition", { attrs: { name: e.fixed ? void 0 : "grow-anim", mode: "out-in" } }, [e.open ? t(e.fixed ? "drawer" : "div", e._b({ ref: "drawer", tag: "component", staticClass: "font-inter document-drawer-root", class: {
250
250
  "is-sticky": !e.fixed
@@ -256,29 +256,29 @@ var ht = function() {
256
256
  padding: "calc(2.5 * var(--rem)) calc(1 * var(--rem)) calc(6 * var(--rem)) calc(1 * var(--rem))",
257
257
  ...e.fixedStyle
258
258
  } }, [e._t("default")], 2)])])]) : e._e()], 1);
259
- }, ft = [], gt = /* @__PURE__ */ d(
260
- mt,
261
- ht,
262
- ft,
259
+ }, yt = [], xt = /* @__PURE__ */ d(
260
+ Ct,
261
+ vt,
262
+ yt,
263
263
  !1,
264
264
  null,
265
265
  "4daaea05"
266
266
  );
267
- const Ct = gt.exports, vt = {
267
+ const wt = xt.exports, bt = {
268
268
  name: "DocumentFormNav"
269
269
  };
270
- var yt = function() {
270
+ var kt = function() {
271
271
  var e = this, t = e._self._c;
272
272
  return t("div", { staticClass: "DocumentFormNav fixed left-0 right-0 top-0 z-[98] bg-gray-200 px-2 py-2 shadow-lg md:px-6" }, [t("div", { staticClass: "flex" }, [t("div", { staticClass: "inline-flex flex-grow items-center" }, [e._t("left")], 2), t("div", { staticClass: "inline-flex flex-auto items-center justify-center" }, [e._t("center")], 2), t("div", { staticClass: "inline-flex flex-grow items-center justify-end" }, [e._t("right")], 2)])]);
273
- }, xt = [], wt = /* @__PURE__ */ d(
274
- vt,
275
- yt,
276
- xt,
273
+ }, _t = [], Lt = /* @__PURE__ */ d(
274
+ bt,
275
+ kt,
276
+ _t,
277
277
  !1,
278
278
  null,
279
279
  null
280
280
  );
281
- const bt = wt.exports, kt = {
281
+ const $t = Lt.exports, St = {
282
282
  name: "DocumentFormViewRadio",
283
283
  props: {
284
284
  value: {
@@ -291,7 +291,7 @@ const bt = wt.exports, kt = {
291
291
  }
292
292
  }
293
293
  };
294
- var _t = function() {
294
+ var Tt = function() {
295
295
  var e = this, t = e._self._c;
296
296
  return t("div", { staticClass: "inline-flex h-9 cursor-pointer space-x-2 rounded-md bg-gray-300 p-1 text-sm text-white" }, [t("div", { staticClass: "inline-flex select-none items-center justify-center rounded-md px-1 font-semibold leading-none text-gray-700 transition duration-150 ease-linear", class: {
297
297
  "m-0 bg-white px-3 py-[1em] text-zinc-900 drop-shadow-md": e.value === "edit"
@@ -302,15 +302,15 @@ var _t = function() {
302
302
  }, attrs: { "data-onboarding": "preview-button" }, on: { click: function(a) {
303
303
  e.value === "edit" && e.$emit("input", "preview");
304
304
  } } }, [e.small ? t("CIcon", { attrs: { type: "eye", size: "16" } }) : [e._v(e._s(e.$t("preview")))]], 2)]);
305
- }, Lt = [], $t = /* @__PURE__ */ d(
306
- kt,
307
- _t,
308
- Lt,
305
+ }, Dt = [], Vt = /* @__PURE__ */ d(
306
+ St,
307
+ Tt,
308
+ Dt,
309
309
  !1,
310
310
  null,
311
311
  null
312
312
  );
313
- const St = $t.exports, Tt = {
313
+ const Bt = Vt.exports, Mt = {
314
314
  name: "BlockControlButtons",
315
315
  i18nOptions: {
316
316
  namespace: "blockControlButtons",
@@ -342,7 +342,7 @@ const St = $t.exports, Tt = {
342
342
  }
343
343
  }
344
344
  };
345
- var Dt = function() {
345
+ var It = function() {
346
346
  var e = this, t = e._self._c;
347
347
  return t("div", { staticClass: "control-root flex gap-2" }, [e.canToggleVisibility ? t("div", { staticClass: "control-button", on: { click: function(a) {
348
348
  return e.$emit("toggle-visible", !e.isVisible);
@@ -353,18 +353,18 @@ var Dt = function() {
353
353
  } } }, [t("CIcon", { attrs: { type: "chevron-down", size: "16" } })], 1)]), t("div", { staticClass: "control-button remove", on: { click: function(a) {
354
354
  return e.$emit("remove");
355
355
  } } }, [t("CIcon", { attrs: { type: "x", size: "16" } })], 1)]) : e._e()], 2);
356
- }, Vt = [], Bt = /* @__PURE__ */ d(
357
- Tt,
358
- Dt,
359
- Vt,
356
+ }, Ft = [], Ht = /* @__PURE__ */ d(
357
+ Mt,
358
+ It,
359
+ Ft,
360
360
  !1,
361
361
  null,
362
362
  "bfd61212"
363
363
  );
364
- const Mt = Bt.exports, It = {
364
+ const At = Ht.exports, Pt = {
365
365
  name: "DynamicBlock",
366
366
  components: {
367
- BlockControlButtons: Mt
367
+ BlockControlButtons: At
368
368
  },
369
369
  provide() {
370
370
  return {
@@ -425,7 +425,7 @@ const Mt = Bt.exports, It = {
425
425
  }
426
426
  }
427
427
  };
428
- var Ft = function() {
428
+ var Et = function() {
429
429
  var e = this, t = e._self._c;
430
430
  return t("Animation", { staticClass: "w-full" }, [t("div", { staticClass: "block-root", class: [
431
431
  {
@@ -448,15 +448,15 @@ var Ft = function() {
448
448
  }, remove: function(a) {
449
449
  return e.$emit("remove");
450
450
  } } }, [e.showEditButton ? t("CButton", { staticClass: "document-block__edit-button", attrs: { round: "", size: "small", thinner: "", "icon-right": "colored-dots" }, on: { click: e.onEdit } }, [e._v(" " + e._s(e.$t("_common:edit").capitalize()) + " ")]) : e._e()], 1) : e._e()], 1)]);
451
- }, Ht = [], At = /* @__PURE__ */ d(
452
- It,
453
- Ft,
454
- Ht,
451
+ }, zt = [], Zt = /* @__PURE__ */ d(
452
+ Pt,
453
+ Et,
454
+ zt,
455
455
  !1,
456
456
  null,
457
457
  "ba9843e6"
458
458
  );
459
- const Pt = At.exports, Et = {
459
+ const Ot = Zt.exports, Ut = {
460
460
  name: "LogoBanner",
461
461
  props: {
462
462
  position: {
@@ -474,20 +474,20 @@ const Pt = At.exports, Et = {
474
474
  }
475
475
  }
476
476
  };
477
- var zt = function() {
477
+ var Rt = function() {
478
478
  var e = this, t = e._self._c;
479
479
  return t("div", { staticClass: "pointer-events-none bottom-0 left-0 right-0 z-50 flex justify-end px-[10px] pb-[10px]", class: e.position }, [t("a", { staticClass: "pointer-events-auto inline-flex h-8 items-center rounded-md border border-white/30 bg-black/80 pl-1.5 pr-2", attrs: { href: `https://${e.$t(
480
480
  "_common:brand.domain"
481
481
  )}?utm_source=document&utm_medium=logo-banner`, target: "_blank" } }, [t("div", { staticClass: "mr-2 h-5 w-5 overflow-hidden rounded bg-white" }, [t("img", { staticClass: "h-full w-full", attrs: { src: e.logoUrl, alt: e.$t("brand.name") } })]), t("div", { staticClass: "text-xs font-medium text-white" }, [e._v(" Made in " + e._s(e.$t("brand.name")) + " ")])])]);
482
- }, Zt = [], Ut = /* @__PURE__ */ d(
483
- Et,
484
- zt,
485
- Zt,
482
+ }, Gt = [], Wt = /* @__PURE__ */ d(
483
+ Ut,
484
+ Rt,
485
+ Gt,
486
486
  !1,
487
487
  null,
488
488
  null
489
489
  );
490
- const Ot = Ut.exports, Rt = {
490
+ const qt = Wt.exports, Nt = {
491
491
  name: "Draggable",
492
492
  data() {
493
493
  return {
@@ -529,18 +529,18 @@ const Ot = Ut.exports, Rt = {
529
529
  dragMousedown: this.onDragMouseDown
530
530
  });
531
531
  }
532
- }, Gt = null, Wt = null;
533
- var qt = /* @__PURE__ */ d(
534
- Rt,
535
- Gt,
536
- Wt,
532
+ }, jt = null, Kt = null;
533
+ var Yt = /* @__PURE__ */ d(
534
+ Nt,
535
+ jt,
536
+ Kt,
537
537
  !1,
538
538
  null,
539
539
  null
540
540
  );
541
- const Nt = qt.exports, jt = {
541
+ const Qt = Yt.exports, Jt = {
542
542
  components: {
543
- Draggable: Nt
543
+ Draggable: Qt
544
544
  },
545
545
  props: {
546
546
  offset: {
@@ -553,7 +553,7 @@ const Nt = qt.exports, jt = {
553
553
  }
554
554
  }
555
555
  };
556
- var Kt = function() {
556
+ var Xt = function() {
557
557
  var e = this, t = e._self._c;
558
558
  return t("portal", { attrs: { to: "modal" } }, [t("Draggable", { scopedSlots: e._u([{ key: "default", fn: function({ dragMousedown: a }) {
559
559
  return [t("div", { staticClass: "popup", staticStyle: { position: "fixed", width: "280px", "border-radius": "calc(0.5 * var(--rem))", padding: "1em 1em 3em 1em", "font-size": "14px", "background-color": "white", "min-height": "400px", "box-shadow": "0 5px 30px -5px rgb(0, 0, 0, 0.2)", "z-index": "1000" }, style: {
@@ -563,25 +563,25 @@ var Kt = function() {
563
563
  return e.$emit("close");
564
564
  } } }), t("CButton", { staticStyle: { position: "absolute", right: "calc(2.25 * var(--rem))", top: "0", cursor: "grab" }, attrs: { icon: "handle", size: "small", type: "none", pattern: "tertiary", circle: "" }, on: { mousedown: a, touchstart: a } }), t("div", { staticStyle: { "font-weight": "700", "font-size": "1.5em", "margin-bottom": "calc(1 * var(--rem))" } }, [e._v(" " + e._s(e.title) + " ")]), e._t("default")], 2)])];
565
565
  } }], null, !0) })], 1);
566
- }, Yt = [], Qt = /* @__PURE__ */ d(
567
- jt,
568
- Kt,
569
- Yt,
566
+ }, e1 = [], t1 = /* @__PURE__ */ d(
567
+ Jt,
568
+ Xt,
569
+ e1,
570
570
  !1,
571
571
  null,
572
572
  "8029d5ea"
573
573
  );
574
- const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt = {
574
+ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 = {
575
575
  i18nOptions: {
576
576
  namespaces: "common",
577
577
  keyPrefix: "designLabels"
578
578
  },
579
579
  name: "Design",
580
580
  components: {
581
- FormInputRow: N,
582
- DragWindow: Y
581
+ FormInputRow: K,
582
+ DragWindow: J
583
583
  },
584
- mixins: [S(["css"], { useEmit: !1, setFnName: "set" })],
584
+ mixins: [D(["css"], { useEmit: !1, setFnName: "set" })],
585
585
  props: {
586
586
  set: {
587
587
  type: Function,
@@ -659,14 +659,14 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
659
659
  }
660
660
  },
661
661
  onInput: ({ family: a, weight: s, options: n = [] }) => {
662
- this.update(i, a), Ee(a), t != s && this.update("fontWeight", s), this.fontWeightOptions = n;
662
+ this.update(i, a), Ue(a), t != s && this.update("fontWeight", s), this.fontWeightOptions = n;
663
663
  }
664
664
  }
665
665
  ]
666
666
  };
667
667
  },
668
668
  fontSize: ({ key: i, value: e }) => {
669
- const [, t, a] = b(e);
669
+ const [, t, a] = k(e);
670
670
  return {
671
671
  label: this.$t("size"),
672
672
  inputs: [
@@ -754,7 +754,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
754
754
  };
755
755
  },
756
756
  letterSpacing: ({ key: i, value: e }) => {
757
- const [, t = 0] = b(e);
757
+ const [, t = 0] = k(e);
758
758
  return {
759
759
  label: this.$t("letterSpacing"),
760
760
  inputs: [
@@ -785,7 +785,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
785
785
  };
786
786
  },
787
787
  marginBottom: ({ key: i, value: e }) => {
788
- const [, t] = b(e);
788
+ const [, t] = k(e);
789
789
  return {
790
790
  label: this.$t("marginBottom"),
791
791
  inputs: [
@@ -866,7 +866,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
866
866
  ]
867
867
  }),
868
868
  width: ({ key: i, value: e }) => {
869
- const [, t, a] = b(e);
869
+ const [, t, a] = k(e);
870
870
  return {
871
871
  label: this.$t("contentWidth"),
872
872
  inputs: [
@@ -906,7 +906,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
906
906
  };
907
907
  },
908
908
  padding: ({ key: i, value: e }) => {
909
- const [, t] = b(e);
909
+ const [, t] = k(e);
910
910
  return {
911
911
  label: this.$t("padding"),
912
912
  inputs: [
@@ -946,7 +946,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
946
946
  };
947
947
  },
948
948
  border: ([i, e, t]) => {
949
- const a = i.value === "solid", [, s] = b(e.value), n = [
949
+ const a = i.value === "solid", [, s] = k(e.value), n = [
950
950
  {
951
951
  label: this.$t("border"),
952
952
  inputs: [
@@ -1117,7 +1117,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
1117
1117
  return [];
1118
1118
  const { selector: i, category: e, style: t = {} } = this.activeItem, a = u(this.css, i) || {}, s = (n) => a[n] || t[n];
1119
1119
  return this[e].map(({ option: n, key: o }, l) => {
1120
- const r = this.definitionOptions[n], c = Array.isArray(o) ? o.map((C) => ({ key: C, value: s(C) })) : { key: o, value: s(o) };
1120
+ const r = this.definitionOptions[n], c = Array.isArray(o) ? o.map((g) => ({ key: g, value: s(g) })) : { key: o, value: s(o) };
1121
1121
  return r(c, l);
1122
1122
  });
1123
1123
  }
@@ -1125,7 +1125,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
1125
1125
  watch: {
1126
1126
  async activeItem(i) {
1127
1127
  const e = u(i, "style.fontFamily");
1128
- e && (this.fontWeightOptions = await ze(e));
1128
+ e && (this.fontWeightOptions = await Re(e));
1129
1129
  }
1130
1130
  },
1131
1131
  methods: {
@@ -1137,7 +1137,7 @@ const Y = Qt.exports, Jt = /([\d+.]*)(.*)/, b = (i) => (i || "").match(Jt), Xt =
1137
1137
  }
1138
1138
  }
1139
1139
  };
1140
- var e1 = function() {
1140
+ var s1 = function() {
1141
1141
  var e = this, t = e._self._c;
1142
1142
  return t("div", [t("div", { staticStyle: { padding: "calc(0.5 * var(--rem))", position: "relative" } }, [t("div", { staticStyle: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, [e._v(" " + e._s(e.$t("typography")) + " ")]), e._l(e.typography, function(a) {
1143
1143
  return t("div", { key: a.label, staticClass: "list-option", on: { click: function(s) {
@@ -1156,15 +1156,15 @@ var e1 = function() {
1156
1156
  })], 2), e.activeItem ? t("DragWindow", { attrs: { title: e.activeItem.label, offset: e.offset }, on: { close: () => e.activeItem = null } }, e._l(e.activeItemOptions, function(a, s) {
1157
1157
  return t("FormInputRow", { key: s, attrs: { label: a.label, inputs: a.inputs } });
1158
1158
  }), 1) : e._e()], 1);
1159
- }, t1 = [], i1 = /* @__PURE__ */ d(
1160
- Xt,
1161
- e1,
1162
- t1,
1159
+ }, n1 = [], o1 = /* @__PURE__ */ d(
1160
+ a1,
1161
+ s1,
1162
+ n1,
1163
1163
  !1,
1164
1164
  null,
1165
1165
  "83027693"
1166
1166
  );
1167
- const a1 = i1.exports, s1 = {
1167
+ const l1 = o1.exports, r1 = {
1168
1168
  i18nOptions: {
1169
1169
  namespaces: "DocSettings",
1170
1170
  messages: {
@@ -1252,11 +1252,11 @@ const a1 = i1.exports, s1 = {
1252
1252
  },
1253
1253
  name: "DocumentGeneralSettings",
1254
1254
  components: {
1255
- FormInputRow: N,
1256
- DragWindow: Y
1255
+ FormInputRow: K,
1256
+ DragWindow: J
1257
1257
  },
1258
1258
  mixins: [
1259
- S([
1259
+ D([
1260
1260
  "tags",
1261
1261
  "series",
1262
1262
  "senderId",
@@ -1280,7 +1280,7 @@ const a1 = i1.exports, s1 = {
1280
1280
  };
1281
1281
  },
1282
1282
  computed: {
1283
- ...g({
1283
+ ...C({
1284
1284
  members: "companyUsers/all",
1285
1285
  getMember: "companyUsers/byId",
1286
1286
  isLoadingMembers: "companyUsers/isFetching"
@@ -1294,7 +1294,7 @@ const a1 = i1.exports, s1 = {
1294
1294
  vatTypes() {
1295
1295
  var e;
1296
1296
  const i = ["vat"];
1297
- return ((e = oe[f.brand]) == null ? void 0 : e.defaultRegion) === "US" && i.push("tax"), i;
1297
+ return ((e = le[f.brand]) == null ? void 0 : e.defaultRegion) === "US" && i.push("tax"), i;
1298
1298
  },
1299
1299
  options() {
1300
1300
  return [
@@ -1325,7 +1325,7 @@ const a1 = i1.exports, s1 = {
1325
1325
  component: "select",
1326
1326
  props: {
1327
1327
  value: this.language,
1328
- options: le.map((i) => ({
1328
+ options: re.map((i) => ({
1329
1329
  value: i,
1330
1330
  label: this.$t(`iso:language.${i}`)
1331
1331
  })).sort((i, e) => i.label.localeCompare(e.label))
@@ -1478,8 +1478,8 @@ const a1 = i1.exports, s1 = {
1478
1478
  this.isPublicForm || await this.loadUsers();
1479
1479
  },
1480
1480
  methods: {
1481
- ...w({
1482
- loadUsers: m.LOAD_COMPANY_USERS
1481
+ ...b({
1482
+ loadUsers: h.LOAD_COMPANY_USERS
1483
1483
  }),
1484
1484
  update(i, e) {
1485
1485
  this[i] = e;
@@ -1498,7 +1498,7 @@ const a1 = i1.exports, s1 = {
1498
1498
  }
1499
1499
  }
1500
1500
  };
1501
- var n1 = function() {
1501
+ var c1 = function() {
1502
1502
  var e = this, t = e._self._c;
1503
1503
  return t("div", { staticStyle: { height: "100%", padding: "1em" } }, [e._l(e.options, function(a, s) {
1504
1504
  return t("FormInputRow", { key: s, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } });
@@ -1507,15 +1507,15 @@ var n1 = function() {
1507
1507
  } } }, [e._l(e.priceOptions, function(a, s) {
1508
1508
  return [a.type === "divider" ? t("div", { key: s, staticClass: "divider" }) : t("FormInputRow", { key: s, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } })];
1509
1509
  })], 2) : e._e()], 2);
1510
- }, o1 = [], l1 = /* @__PURE__ */ d(
1511
- s1,
1512
- n1,
1513
- o1,
1510
+ }, d1 = [], p1 = /* @__PURE__ */ d(
1511
+ r1,
1512
+ c1,
1513
+ d1,
1514
1514
  !1,
1515
1515
  null,
1516
1516
  "0bd59952"
1517
1517
  );
1518
- const r1 = l1.exports, c1 = {
1518
+ const u1 = p1.exports, m1 = {
1519
1519
  i18nOptions: {
1520
1520
  messages: {
1521
1521
  en: {
@@ -1558,10 +1558,10 @@ const r1 = l1.exports, c1 = {
1558
1558
  },
1559
1559
  name: "ExtensionTab",
1560
1560
  components: {
1561
- draggable: qe,
1562
- Spinner: re
1561
+ draggable: Ye,
1562
+ Spinner: ce
1563
1563
  },
1564
- mixins: [S(["externalReferences", "clients", "articles"])],
1564
+ mixins: [D(["externalReferences", "clients", "articles"])],
1565
1565
  data() {
1566
1566
  return {
1567
1567
  activeCrm: null,
@@ -1578,7 +1578,7 @@ const r1 = l1.exports, c1 = {
1578
1578
  };
1579
1579
  },
1580
1580
  computed: {
1581
- ...g({
1581
+ ...C({
1582
1582
  allAuthenticatedCRMs: "settings/allAuthenticatedCRMs"
1583
1583
  }),
1584
1584
  currExternalReferences() {
@@ -1613,7 +1613,7 @@ const r1 = l1.exports, c1 = {
1613
1613
  }
1614
1614
  },
1615
1615
  methods: {
1616
- priceFormat: U,
1616
+ priceFormat: R,
1617
1617
  async _search(i) {
1618
1618
  try {
1619
1619
  this.isSearching = !0;
@@ -1624,7 +1624,7 @@ const r1 = l1.exports, c1 = {
1624
1624
  this.searchResults = [];
1625
1625
  return;
1626
1626
  }
1627
- const { data: t } = await $.search(this.activeCrm, {
1627
+ const { data: t } = await T.search(this.activeCrm, {
1628
1628
  query: i,
1629
1629
  type: "deal"
1630
1630
  });
@@ -1633,7 +1633,7 @@ const r1 = l1.exports, c1 = {
1633
1633
  this.isSearching = !1;
1634
1634
  }
1635
1635
  },
1636
- search: P(async function(e) {
1636
+ search: z(async function(e) {
1637
1637
  await this._search(e);
1638
1638
  }, 750),
1639
1639
  useSearchResult(i) {
@@ -1660,7 +1660,7 @@ const r1 = l1.exports, c1 = {
1660
1660
  );
1661
1661
  if (!e)
1662
1662
  return;
1663
- const { service: t, type: a, typeId: s } = e, { data: n } = await $.getExternalReferenceDetails(
1663
+ const { service: t, type: a, typeId: s } = e, { data: n } = await T.getExternalReferenceDetails(
1664
1664
  t,
1665
1665
  { type: a, typeId: s }
1666
1666
  );
@@ -1684,13 +1684,13 @@ const r1 = l1.exports, c1 = {
1684
1684
  },
1685
1685
  async suggestClients() {
1686
1686
  var s;
1687
- const { service: i, type: e, typeId: t } = this.currentExternalDeal, { data: a } = await $.suggestClients(i, {
1687
+ const { service: i, type: e, typeId: t } = this.currentExternalDeal, { data: a } = await T.suggestClients(i, {
1688
1688
  type: e,
1689
1689
  typeId: t
1690
1690
  });
1691
1691
  if (Array.isArray(a) && a.length) {
1692
1692
  const n = (s = this._document) == null ? void 0 : s.defaultAnswerMethod, o = a.map((l) => ({
1693
- ...ce(),
1693
+ ...de(),
1694
1694
  ...n && { answerMethod: n },
1695
1695
  ...l
1696
1696
  }));
@@ -1698,7 +1698,7 @@ const r1 = l1.exports, c1 = {
1698
1698
  }
1699
1699
  },
1700
1700
  cloneArticle(i) {
1701
- return y({
1701
+ return x({
1702
1702
  ...i,
1703
1703
  _uniqueId: void 0
1704
1704
  });
@@ -1708,7 +1708,7 @@ const r1 = l1.exports, c1 = {
1708
1708
  const [e] = ((s = (a = this._document) == null ? void 0 : a.packageGroups) == null ? void 0 : s.packages) || [];
1709
1709
  if (!(e != null && e.packageId))
1710
1710
  return;
1711
- const t = y({
1711
+ const t = x({
1712
1712
  ...i,
1713
1713
  _uniqueId: void 0,
1714
1714
  packageId: e.packageId
@@ -1720,7 +1720,7 @@ const r1 = l1.exports, c1 = {
1720
1720
  }
1721
1721
  }
1722
1722
  };
1723
- var d1 = function() {
1723
+ var h1 = function() {
1724
1724
  var e = this, t = e._self._c;
1725
1725
  return t("div", { staticStyle: { "font-size": "13px", "padding-left": "calc(0.5 * var(--rem))", "padding-right": "calc(0.5 * var(--rem))", "padding-bottom": "calc(4 * var(--rem))" } }, [e.allAuthenticatedCRMs.length > 1 ? t("CDropdown", { staticStyle: { position: "absolute", right: "calc(0.5 * var(--rem))", top: "calc(0.5 * var(--rem))" }, attrs: { position: "is-bottom-left" } }, [t("CButton", { attrs: { slot: "trigger", size: "small", circle: "", type: "none", pattern: "tertiary", icon: "more-vertical" }, slot: "trigger" }), e._l(e.allAuthenticatedCRMs, function(a) {
1726
1726
  return t("CDropdownItem", { key: a, attrs: { type: e.activeCrm === a ? "primary" : "secondary", size: "small" }, on: { click: function(s) {
@@ -1763,15 +1763,15 @@ var d1 = function() {
1763
1763
  return e.addArticle(a);
1764
1764
  } } }, [t("div", { staticStyle: { "font-weight": "500", "padding-bottom": "4px", "font-size": "14px" }, domProps: { textContent: e._s(a.name) } }), t("div", { staticClass: "text-gray-600", staticStyle: { "font-size": "12px" } }, [e._v(" " + e._s(e.priceFormat(a.price || 0, { showZero: !1, currency: a.currency || "USD" })) + " · " + e._s(a.quantity || 0) + "x "), a.vat !== null ? [e._v(" · " + e._s(e._document.$t("vat").capitalize()) + " " + e._s(a.vat) + "% ")] : e._e()], 2)]);
1765
1765
  }), 0) : t("div", { staticClass: "flex w-full text-gray-600", staticStyle: { "background-color": "hsl(var(--gray-color-100) / 1)", padding: "5px", "font-size": "12px", "border-radius": "5px", "line-height": "1.35" } }, [t("CIcon", { staticStyle: { margin: "1px 4px 0 0", "flex-shrink": "0" }, attrs: { type: "info", size: "13" } }), t("div", { domProps: { textContent: e._s(e.$t("noProducts", { type: e.dealType })) } })], 1)], 1) : e._e()] : t("div", { staticClass: "flex w-full flex-col items-center justify-center text-center", staticStyle: { "padding-top": "calc(1 * var(--rem))" } }, [t("CIcon", { staticClass: "text-primary-500", staticStyle: { "padding-bottom": "5px" }, attrs: { type: "info", size: "16" } }), t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("noCrm")) + " ")]), t("div", { staticClass: "text-center", staticStyle: { "padding-top": "calc(1 * var(--rem))" } }, [t("router-link", { staticClass: "text-primary-500", staticStyle: { "font-weight": "500" }, attrs: { to: { name: "settings" } } }, [e._v(" " + e._s(e.$t("noCrmAction")) + " ")])], 1)], 1)], 2);
1766
- }, p1 = [], u1 = /* @__PURE__ */ d(
1767
- c1,
1768
- d1,
1769
- p1,
1766
+ }, f1 = [], g1 = /* @__PURE__ */ d(
1767
+ m1,
1768
+ h1,
1769
+ f1,
1770
1770
  !1,
1771
1771
  null,
1772
1772
  "1f5d45eb"
1773
1773
  );
1774
- const m1 = u1.exports, h1 = {
1774
+ const C1 = g1.exports, v1 = {
1775
1775
  name: "FieldsModal",
1776
1776
  i18nOptions: {
1777
1777
  namespaces: "FieldsModal",
@@ -1805,7 +1805,7 @@ const m1 = u1.exports, h1 = {
1805
1805
  }
1806
1806
  },
1807
1807
  components: {
1808
- CField: j
1808
+ CField: Y
1809
1809
  },
1810
1810
  props: {
1811
1811
  document: {
@@ -1836,12 +1836,12 @@ const m1 = u1.exports, h1 = {
1836
1836
  validations: {
1837
1837
  form: {
1838
1838
  label: {
1839
- required: F.required,
1839
+ required: A.required,
1840
1840
  isUniqueLabel(i) {
1841
1841
  return this.fields.reduce((t, { label: a }) => a === i ? !1 : t, !0);
1842
1842
  }
1843
1843
  },
1844
- value: { required: F.required }
1844
+ value: { required: A.required }
1845
1845
  }
1846
1846
  },
1847
1847
  computed: {
@@ -1881,12 +1881,12 @@ const m1 = u1.exports, h1 = {
1881
1881
  remove() {
1882
1882
  if (!this.existingFieldId)
1883
1883
  return;
1884
- const i = Ye(this.document.fields, [this.existingFieldId]);
1884
+ const i = et(this.document.fields, [this.existingFieldId]);
1885
1885
  this.set({ key: "data.fields", value: i }), this.$emit("close");
1886
1886
  }
1887
1887
  }
1888
1888
  };
1889
- var f1 = function() {
1889
+ var y1 = function() {
1890
1890
  var e = this, t = e._self._c;
1891
1891
  return t("div", { staticClass: "font-inter flex w-full flex-col items-center bg-white text-center", staticStyle: { padding: "2em", "border-radius": "10px" } }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [t("div", { staticStyle: { "font-size": "18px", "font-weight": "600", "margin-bottom": "0.25em" } }, [e._v(" " + e._s(e.existingFieldId ? e.$t("editTitle") : e.$t("newTitle")) + " ")]), t("div", { staticStyle: { "margin-bottom": "0.25em", opacity: "0.65" } }, [e._v(" " + e._s(e.$t("description")) + " ")])]), t("form", { staticStyle: { width: "100%" }, on: { submit: function(a) {
1892
1892
  return a.preventDefault(), e.submit.apply(null, arguments);
@@ -1897,15 +1897,15 @@ var f1 = function() {
1897
1897
  }, expression: "form.label" } })], 1), t("CField", { staticStyle: { width: "100%", "text-align": "left", "margin-bottom": "1em" }, attrs: { label: e.$t("value"), messages: e.messages.form.value, validator: e.$v.form.value, "label-position": "inside" } }, [t("CInput", { attrs: { placeholder: e.$t("valuePlaceholder"), filled: "" }, model: { value: e.form.value, callback: function(a) {
1898
1898
  e.$set(e.form, "value", a);
1899
1899
  }, expression: "form.value" } })], 1), t("CButton", { staticStyle: { "margin-top": "1.5em" }, attrs: { type: "secondary", wide: "" }, domProps: { textContent: e._s(e.$t("_common:save")) }, on: { click: e.submit } }), e.existingFieldId ? t("CButton", { staticStyle: { "margin-top": "5px" }, attrs: { type: "none", pattern: "tertiary", wide: "" }, domProps: { textContent: e._s(e.$t("_common:remove")) }, on: { click: e.remove } }) : e._e()], 1)]);
1900
- }, g1 = [], C1 = /* @__PURE__ */ d(
1901
- h1,
1902
- f1,
1903
- g1,
1900
+ }, x1 = [], w1 = /* @__PURE__ */ d(
1901
+ v1,
1902
+ y1,
1903
+ x1,
1904
1904
  !1,
1905
1905
  null,
1906
1906
  "455b4cda"
1907
1907
  );
1908
- const v1 = C1.exports, y1 = {
1908
+ const b1 = w1.exports, k1 = {
1909
1909
  i18nOptions: {
1910
1910
  namespaces: "DocumentFormFields",
1911
1911
  messages: {
@@ -1929,11 +1929,11 @@ const v1 = C1.exports, y1 = {
1929
1929
  },
1930
1930
  name: "DocumentFormFields",
1931
1931
  components: {
1932
- SmartList: Ke,
1933
- CAccordion: Ne,
1934
- CField: j
1932
+ SmartList: Xe,
1933
+ CAccordion: Qe,
1934
+ CField: Y
1935
1935
  },
1936
- mixins: [S()],
1936
+ mixins: [D()],
1937
1937
  props: {
1938
1938
  set: {
1939
1939
  type: Function,
@@ -1987,7 +1987,7 @@ const v1 = C1.exports, y1 = {
1987
1987
  async handler(i) {
1988
1988
  var e, t;
1989
1989
  if (this.isEditingTemplate && i) {
1990
- const { data: a } = await $.getFields(i);
1990
+ const { data: a } = await T.getFields(i);
1991
1991
  this.updateValue("data.fields", {
1992
1992
  // crmFields added first in order to not override same service values
1993
1993
  ...a,
@@ -2007,7 +2007,7 @@ const v1 = C1.exports, y1 = {
2007
2007
  },
2008
2008
  openFieldModal({ existingFieldId: i }) {
2009
2009
  this.$modal.show(
2010
- v1,
2010
+ b1,
2011
2011
  {
2012
2012
  document: this._document,
2013
2013
  set: this.set,
@@ -2026,7 +2026,7 @@ const v1 = C1.exports, y1 = {
2026
2026
  );
2027
2027
  },
2028
2028
  onCopyField(i) {
2029
- navigator && navigator.clipboard && i && navigator.clipboard.writeText(i).then(() => H("info", this.$t("_common:copyMessage"))).catch((e) => D(e));
2029
+ navigator && navigator.clipboard && i && navigator.clipboard.writeText(i).then(() => P("info", this.$t("_common:copyMessage"))).catch((e) => B(e));
2030
2030
  },
2031
2031
  filterMethod(i, e) {
2032
2032
  return e.filter(
@@ -2039,7 +2039,7 @@ const v1 = C1.exports, y1 = {
2039
2039
  }
2040
2040
  }
2041
2041
  };
2042
- var x1 = function() {
2042
+ var _1 = function() {
2043
2043
  var e = this, t = e._self._c;
2044
2044
  return t("div", { staticStyle: { padding: "1em" } }, [t("div", { staticStyle: { margin: "15px 0" } }, [t("div", { staticStyle: { "font-size": "16px", "font-weight": "600" }, domProps: { textContent: e._s(e.$t("title")) } }), t("div", { staticStyle: { color: "hsl(0, 0%, 35%)" }, domProps: { textContent: e._s(e.$t("description")) } })]), t("CInput", { attrs: { placeholder: e.$t("_common:search"), filled: "", size: "small" }, model: { value: e.query, callback: function(a) {
2045
2045
  e.query = a;
@@ -2086,15 +2086,15 @@ var x1 = function() {
2086
2086
  } } })], 1)], 1)]);
2087
2087
  }) : t("div", { staticStyle: { "font-size": "13px", "text-align": "center", "user-select": "none", padding: "0.5em", "border-radius": "0.25em", opacity: "0.5" }, domProps: { textContent: e._s(e.$t("noResults")) } })], 2)]);
2088
2088
  })], 2)], 1);
2089
- }, w1 = [], b1 = /* @__PURE__ */ d(
2090
- y1,
2091
- x1,
2092
- w1,
2089
+ }, L1 = [], $1 = /* @__PURE__ */ d(
2090
+ k1,
2091
+ _1,
2092
+ L1,
2093
2093
  !1,
2094
2094
  null,
2095
2095
  "0d2bdff3"
2096
2096
  );
2097
- const k1 = b1.exports, _1 = (i) => {
2097
+ const S1 = $1.exports, T1 = (i) => {
2098
2098
  const e = Array(2).fill().map(() => p());
2099
2099
  return [
2100
2100
  {
@@ -2116,11 +2116,11 @@ const k1 = b1.exports, _1 = (i) => {
2116
2116
  nodeId: e[1]
2117
2117
  }
2118
2118
  ];
2119
- }, L1 = (i, e = "en") => [
2119
+ }, D1 = (i, e = "en") => [
2120
2120
  {
2121
2121
  key: `title-${i}`,
2122
2122
  anyOf: [{ type: "string" }, { type: "null" }],
2123
- defaultValue: h.t("attachment_plural", { lng: e }).capitalize()
2123
+ defaultValue: m.t("attachment_plural", { lng: e }).capitalize()
2124
2124
  },
2125
2125
  {
2126
2126
  key: `files-${i}`,
@@ -2129,13 +2129,13 @@ const k1 = b1.exports, _1 = (i) => {
2129
2129
  $ref: `${f.api.baseUrl}/schemas/file/1.json`
2130
2130
  }
2131
2131
  }
2132
- ], $1 = ({ document: i = null }) => {
2132
+ ], V1 = ({ document: i = null }) => {
2133
2133
  const e = p(), { language: t } = i || {};
2134
2134
  return {
2135
- readView: _1(e),
2136
- validation: L1(e, t)
2135
+ readView: T1(e),
2136
+ validation: D1(e, t)
2137
2137
  };
2138
- }, S1 = (i) => [
2138
+ }, B1 = (i) => [
2139
2139
  {
2140
2140
  itemId: "coverBlock",
2141
2141
  itemType: "coverBlock",
@@ -2145,12 +2145,12 @@ const k1 = b1.exports, _1 = (i) => {
2145
2145
  parentId: "0",
2146
2146
  nodeId: p()
2147
2147
  }
2148
- ], T1 = (i, e = "en") => [
2148
+ ], M1 = (i, e = "en") => [
2149
2149
  {
2150
2150
  key: `coverBlock-${i}`,
2151
2151
  defaultValue: {
2152
2152
  type: "video",
2153
- text: `<p data-typography="title">${h.t("components:document.coverBlock.defaultText", { lng: e })}</p>`,
2153
+ text: `<p data-typography="title">${m.t("components:document.coverBlock.defaultText", { lng: e })}</p>`,
2154
2154
  cover: {
2155
2155
  video: {
2156
2156
  id: "1409899",
@@ -2162,7 +2162,7 @@ const k1 = b1.exports, _1 = (i) => {
2162
2162
  },
2163
2163
  $ref: `${f.api.baseUrl}/schemas/coverBlock/1.json`
2164
2164
  }
2165
- ], D1 = (i) => ({
2165
+ ], I1 = (i) => ({
2166
2166
  [`data.coverBlock-${i}`]: {
2167
2167
  text: "<h1>We know communication</h1>",
2168
2168
  cover: {
@@ -2172,20 +2172,20 @@ const k1 = b1.exports, _1 = (i) => {
2172
2172
  blur: 0
2173
2173
  }
2174
2174
  }
2175
- }), V1 = ({
2175
+ }), F1 = ({
2176
2176
  includeMockData: i = !1,
2177
2177
  document: e = null,
2178
2178
  contentData: t = null
2179
2179
  } = {}) => {
2180
2180
  const a = p(), { language: s } = e || {};
2181
2181
  let n = null;
2182
- return typeof t == "function" ? n = t(a) : i && (n = D1(a)), {
2183
- readView: S1(a),
2184
- validation: T1(a, s),
2182
+ return typeof t == "function" ? n = t(a) : i && (n = I1(a)), {
2183
+ readView: B1(a),
2184
+ validation: M1(a, s),
2185
2185
  ...n && { data: n }
2186
2186
  };
2187
- }, B1 = ({ language: i = "en" } = {}) => {
2188
- const e = (t) => h.t(`components:account.documentForm.contentItems.coverBlock.${t}`, {
2187
+ }, H1 = ({ language: i = "en" } = {}) => {
2188
+ const e = (t) => m.t(`components:account.documentForm.contentItems.coverBlock.${t}`, {
2189
2189
  lng: i
2190
2190
  });
2191
2191
  return [
@@ -2329,7 +2329,7 @@ const k1 = b1.exports, _1 = (i) => {
2329
2329
  })
2330
2330
  }
2331
2331
  ];
2332
- }, M1 = () => {
2332
+ }, A1 = () => {
2333
2333
  const i = Array(5).fill().map(() => p());
2334
2334
  return [
2335
2335
  {
@@ -2378,7 +2378,7 @@ const k1 = b1.exports, _1 = (i) => {
2378
2378
  nodeId: i[4]
2379
2379
  }
2380
2380
  ];
2381
- }, I1 = () => ({
2381
+ }, P1 = () => ({
2382
2382
  clients: [
2383
2383
  {
2384
2384
  name: "Pernilla P.",
@@ -2390,28 +2390,28 @@ const k1 = b1.exports, _1 = (i) => {
2390
2390
  answerMethod: { accept: "signature", deny: "button" }
2391
2391
  }
2392
2392
  ]
2393
- }), F1 = (i = "en") => [
2393
+ }), E1 = (i = "en") => [
2394
2394
  { key: "senderString", anyOf: [{ type: "string" }, { type: "null" }] },
2395
2395
  { key: "receiverString", anyOf: [{ type: "string" }, { type: "null" }] },
2396
2396
  {
2397
2397
  key: "partiesString",
2398
2398
  anyOf: [{ type: "string" }, { type: "null" }],
2399
- defaultValue: h.t("components:document.chapters.parties.title", { lng: i })
2399
+ defaultValue: m.t("components:document.chapters.parties.title", { lng: i })
2400
2400
  }
2401
- ], H1 = ({
2401
+ ], z1 = ({
2402
2402
  includeMockData: i = !1,
2403
2403
  document: e = null,
2404
2404
  contentData: t = null
2405
2405
  }) => {
2406
2406
  const { language: a } = e || {};
2407
2407
  let s = null;
2408
- return typeof t == "function" ? s = t() : i && (s = I1()), {
2409
- readView: M1(),
2410
- validation: F1(a),
2408
+ return typeof t == "function" ? s = t() : i && (s = P1()), {
2409
+ readView: A1(),
2410
+ validation: E1(a),
2411
2411
  // Client / company will for now always exist on doc and in validation
2412
2412
  ...s && { data: s }
2413
2413
  };
2414
- }, A1 = (i) => [
2414
+ }, Z1 = (i) => [
2415
2415
  {
2416
2416
  itemId: "embed",
2417
2417
  itemType: "embed",
@@ -2425,7 +2425,7 @@ const k1 = b1.exports, _1 = (i) => {
2425
2425
  parentId: "0",
2426
2426
  nodeId: p()
2427
2427
  }
2428
- ], P1 = (i) => [
2428
+ ], O1 = (i) => [
2429
2429
  {
2430
2430
  key: `embed-${i}`,
2431
2431
  $ref: `${f.api.baseUrl}/schemas/embed/1.json`,
@@ -2434,20 +2434,20 @@ const k1 = b1.exports, _1 = (i) => {
2434
2434
  size: "small"
2435
2435
  }
2436
2436
  }
2437
- ], E1 = () => null, z1 = ({
2437
+ ], U1 = () => null, R1 = ({
2438
2438
  includeMockData: i = !1,
2439
2439
  document: e = null,
2440
2440
  contentData: t = null
2441
2441
  } = {}) => {
2442
2442
  const a = p();
2443
2443
  let s = null;
2444
- return typeof t == "function" ? s = t(a) : i && (s = E1()), {
2445
- readView: A1(a),
2446
- validation: P1(a),
2444
+ return typeof t == "function" ? s = t(a) : i && (s = U1()), {
2445
+ readView: Z1(a),
2446
+ validation: O1(a),
2447
2447
  ...s && { data: s }
2448
2448
  };
2449
2449
  };
2450
- h.loadOptions({
2450
+ m.loadOptions({
2451
2451
  namespaces: "embedContentItems",
2452
2452
  messages: {
2453
2453
  en: {
@@ -2458,7 +2458,7 @@ h.loadOptions({
2458
2458
  }
2459
2459
  }
2460
2460
  });
2461
- const Z1 = ({ language: i = "en" } = {}) => [
2461
+ const G1 = ({ language: i = "en" } = {}) => [
2462
2462
  {
2463
2463
  previewUrl: `
2464
2464
  <div style="position: relative;">
@@ -2517,7 +2517,7 @@ const Z1 = ({ language: i = "en" } = {}) => [
2517
2517
  </defs>
2518
2518
  </svg>
2519
2519
  <div class="submenu-item-badge">
2520
- ${h.t("embedContentItems:previewTitle", { lng: i })}
2520
+ ${m.t("embedContentItems:previewTitle", { lng: i })}
2521
2521
  </div>
2522
2522
  </div>
2523
2523
  `,
@@ -2752,7 +2752,7 @@ const Z1 = ({ language: i = "en" } = {}) => [
2752
2752
  }
2753
2753
  })
2754
2754
  }
2755
- ], U1 = (i) => {
2755
+ ], W1 = (i) => {
2756
2756
  const e = Array(3).fill().map(() => p());
2757
2757
  return [
2758
2758
  {
@@ -2788,7 +2788,7 @@ const Z1 = ({ language: i = "en" } = {}) => [
2788
2788
  nodeId: e[2]
2789
2789
  }
2790
2790
  ];
2791
- }, O1 = (i) => [
2791
+ }, q1 = (i) => [
2792
2792
  {
2793
2793
  key: `estimatedTimeComplete-${i}`,
2794
2794
  type: "object",
@@ -2806,23 +2806,23 @@ const Z1 = ({ language: i = "en" } = {}) => [
2806
2806
  }
2807
2807
  }
2808
2808
  }
2809
- ], R1 = (i) => ({
2809
+ ], N1 = (i) => ({
2810
2810
  [`estimatedTimeComplete-${i}`]: {
2811
2811
  value: 4,
2812
2812
  unitType: "hour"
2813
2813
  }
2814
- }), G1 = ({
2814
+ }), j1 = ({
2815
2815
  includeMockData: i = !1,
2816
2816
  contentData: e = null
2817
2817
  }) => {
2818
2818
  const t = p();
2819
2819
  let a = null;
2820
- return typeof e == "function" ? a = e(t) : i && (a = R1(t)), {
2821
- readView: U1(t),
2822
- validation: O1(t),
2820
+ return typeof e == "function" ? a = e(t) : i && (a = N1(t)), {
2821
+ readView: W1(t),
2822
+ validation: q1(t),
2823
2823
  ...a && { data: a }
2824
2824
  };
2825
- }, W1 = () => {
2825
+ }, K1 = () => {
2826
2826
  const i = Array(3).fill().map(() => p());
2827
2827
  return [
2828
2828
  {
@@ -2856,7 +2856,7 @@ const Z1 = ({ language: i = "en" } = {}) => [
2856
2856
  nodeId: i[2]
2857
2857
  }
2858
2858
  ];
2859
- }, q1 = () => [
2859
+ }, Y1 = () => [
2860
2860
  {
2861
2861
  key: "estimatedWorkDates",
2862
2862
  type: "object",
@@ -2865,10 +2865,10 @@ const Z1 = ({ language: i = "en" } = {}) => [
2865
2865
  endAt: { anyOf: [{ type: "null" }, { type: "string" }] }
2866
2866
  }
2867
2867
  }
2868
- ], N1 = () => ({
2869
- readView: W1(),
2870
- validation: q1()
2871
- }), j1 = () => {
2868
+ ], Q1 = () => ({
2869
+ readView: K1(),
2870
+ validation: Y1()
2871
+ }), J1 = () => {
2872
2872
  const i = Array(5).fill().map(() => p());
2873
2873
  return [
2874
2874
  {
@@ -2934,7 +2934,7 @@ const Z1 = ({ language: i = "en" } = {}) => [
2934
2934
  nodeId: i[4]
2935
2935
  }
2936
2936
  ];
2937
- }, K1 = () => [
2937
+ }, X1 = () => [
2938
2938
  {
2939
2939
  key: "extraWorkConstruction",
2940
2940
  extraWorkConstruction: {
@@ -2958,11 +2958,11 @@ const Z1 = ({ language: i = "en" } = {}) => [
2958
2958
  }
2959
2959
  }
2960
2960
  }
2961
- ], Y1 = () => ({
2962
- readView: j1(),
2963
- validation: K1()
2961
+ ], e2 = () => ({
2962
+ readView: J1(),
2963
+ validation: X1()
2964
2964
  // Client / company will for now always exist on doc and in validation
2965
- }), Q1 = () => {
2965
+ }), t2 = () => {
2966
2966
  const i = Array(3).fill().map(() => p());
2967
2967
  return [
2968
2968
  {
@@ -3002,7 +3002,7 @@ const Z1 = ({ language: i = "en" } = {}) => [
3002
3002
  nodeId: i[2]
3003
3003
  }
3004
3004
  ];
3005
- }, J1 = () => [
3005
+ }, i2 = () => [
3006
3006
  {
3007
3007
  key: "extraWorkTimeImpact",
3008
3008
  anyOf: [
@@ -3020,10 +3020,10 @@ const Z1 = ({ language: i = "en" } = {}) => [
3020
3020
  }
3021
3021
  ]
3022
3022
  }
3023
- ], X1 = () => ({
3024
- readView: Q1(),
3025
- validation: J1()
3026
- }), e2 = (i) => [
3023
+ ], a2 = () => ({
3024
+ readView: t2(),
3025
+ validation: i2()
3026
+ }), s2 = (i) => [
3027
3027
  {
3028
3028
  itemId: `header-${i}`,
3029
3029
  itemType: "header",
@@ -3033,14 +3033,14 @@ const Z1 = ({ language: i = "en" } = {}) => [
3033
3033
  parentId: "0",
3034
3034
  nodeId: p()
3035
3035
  }
3036
- ], t2 = (i, e = null) => {
3037
- const { language: t = "en", name: a = "", theme: s } = e || {}, n = a || h.t("_common:proposal", { lng: t }).capitalize();
3036
+ ], n2 = (i, e = null) => {
3037
+ const { language: t = "en", name: a = "", theme: s } = e || {}, n = a || m.t("_common:proposal", { lng: t }).capitalize();
3038
3038
  e && (e.name = n);
3039
3039
  const {
3040
3040
  background: o,
3041
3041
  priceSummaryBackground: l,
3042
3042
  backgroundFilter: r
3043
- } = s || {}, c = l || "hsl(228, 52%, 18%)", C = Je.readability(c, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
3043
+ } = s || {}, c = l || "hsl(228, 52%, 18%)", g = it.readability(c, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
3044
3044
  return [
3045
3045
  {
3046
3046
  key: `header-${i}`,
@@ -3049,7 +3049,7 @@ const Z1 = ({ language: i = "en" } = {}) => [
3049
3049
  layout: "vertical",
3050
3050
  baseStyle: {
3051
3051
  textAlign: "left",
3052
- textColor: C
3052
+ textColor: g
3053
3053
  },
3054
3054
  items: [
3055
3055
  {
@@ -3072,7 +3072,7 @@ const Z1 = ({ language: i = "en" } = {}) => [
3072
3072
  value: {
3073
3073
  preText: "",
3074
3074
  documentName: `<p data-typography="title">${n}</p>`,
3075
- postText: h.t("components:document.chapters.header.postText", {
3075
+ postText: m.t("components:document.chapters.header.postText", {
3076
3076
  lng: t,
3077
3077
  interpolation: { prefix: "__", suffix: "__" }
3078
3078
  }),
@@ -3084,7 +3084,7 @@ const Z1 = ({ language: i = "en" } = {}) => [
3084
3084
  }
3085
3085
  }
3086
3086
  ];
3087
- }, i2 = (i) => ({
3087
+ }, o2 = (i) => ({
3088
3088
  [`data.header-${i}`]: {
3089
3089
  layout: "vertical",
3090
3090
  baseStyle: { textAlign: "left", textColor: "#FFFFFF" },
@@ -3114,20 +3114,20 @@ const Z1 = ({ language: i = "en" } = {}) => [
3114
3114
  }
3115
3115
  ]
3116
3116
  }
3117
- }), a2 = ({
3117
+ }), l2 = ({
3118
3118
  includeMockData: i = !1,
3119
3119
  document: e = null,
3120
3120
  contentData: t = null
3121
3121
  }) => {
3122
3122
  const a = p();
3123
3123
  let s = null;
3124
- return typeof t == "function" ? s = t(a) : i && (s = i2(a)), {
3125
- readView: e2(a),
3126
- validation: t2(a, e),
3124
+ return typeof t == "function" ? s = t(a) : i && (s = o2(a)), {
3125
+ readView: s2(a),
3126
+ validation: n2(a, e),
3127
3127
  ...s && { data: s }
3128
3128
  };
3129
- }, s2 = ({ language: i = "en" } = {}) => {
3130
- const e = (t) => h.t(`components:account.documentForm.contentItems.header.${t}`, {
3129
+ }, r2 = ({ language: i = "en" } = {}) => {
3130
+ const e = (t) => m.t(`components:account.documentForm.contentItems.header.${t}`, {
3131
3131
  lng: i,
3132
3132
  interpolation: { prefix: "__", suffix: "__" }
3133
3133
  });
@@ -3416,7 +3416,7 @@ const Z1 = ({ language: i = "en" } = {}) => [
3416
3416
  })
3417
3417
  }
3418
3418
  ];
3419
- }, n2 = () => {
3419
+ }, c2 = () => {
3420
3420
  const i = Array(2).fill().map(() => p());
3421
3421
  return [
3422
3422
  {
@@ -3439,22 +3439,22 @@ const Z1 = ({ language: i = "en" } = {}) => [
3439
3439
  // uniqid(),
3440
3440
  }
3441
3441
  ];
3442
- }, o2 = (i = "en") => [
3442
+ }, d2 = (i = "en") => [
3443
3443
  {
3444
3444
  key: "multiGroupPricing-title",
3445
3445
  anyOf: [{ type: "string" }, { type: "null" }],
3446
- defaultValue: h.t(
3446
+ defaultValue: m.t(
3447
3447
  "components:document.chapters.multiGroupPricing.title",
3448
3448
  { lng: i }
3449
3449
  )
3450
3450
  }
3451
- ], l2 = ({ document: i = null }) => {
3451
+ ], p2 = ({ document: i = null }) => {
3452
3452
  const { language: e } = i || {};
3453
3453
  return {
3454
- readView: n2(),
3455
- validation: o2(e)
3454
+ readView: c2(),
3455
+ validation: d2(e)
3456
3456
  };
3457
- }, r2 = () => {
3457
+ }, u2 = () => {
3458
3458
  const i = Array(5).fill().map(() => p());
3459
3459
  return [
3460
3460
  {
@@ -3504,14 +3504,14 @@ const Z1 = ({ language: i = "en" } = {}) => [
3504
3504
  nodeId: i[4]
3505
3505
  }
3506
3506
  ];
3507
- }, c2 = () => [
3507
+ }, m2 = () => [
3508
3508
  { key: "miscAgreements", anyOf: [{ type: "string" }, { type: null }] },
3509
3509
  { key: "notBinding", type: "boolean" }
3510
- ], d2 = () => ({
3511
- readView: r2(),
3512
- validation: c2()
3510
+ ], h2 = () => ({
3511
+ readView: u2(),
3512
+ validation: m2()
3513
3513
  });
3514
- h.loadOptions({
3514
+ m.loadOptions({
3515
3515
  namespaces: "packageGroupTemplate",
3516
3516
  messages: {
3517
3517
  en: {
@@ -3522,7 +3522,7 @@ h.loadOptions({
3522
3522
  }
3523
3523
  }
3524
3524
  });
3525
- const p2 = (i) => {
3525
+ const f2 = (i) => {
3526
3526
  const e = Array(2).fill().map(() => p());
3527
3527
  return [
3528
3528
  {
@@ -3547,42 +3547,42 @@ const p2 = (i) => {
3547
3547
  nodeId: e[1]
3548
3548
  }
3549
3549
  ];
3550
- }, u2 = (i, e = "en") => [
3550
+ }, g2 = (i, e = "en") => [
3551
3551
  {
3552
3552
  key: `packageGroups.${i}`,
3553
3553
  validationKey: "packageGroups",
3554
3554
  defaultValue: {
3555
3555
  type: "",
3556
- title: h.t("packageGroupTemplate:title", { lng: e }),
3556
+ title: m.t("packageGroupTemplate:title", { lng: e }),
3557
3557
  hideGroupPrice: !1,
3558
3558
  packages: []
3559
3559
  },
3560
3560
  defaultValidation: {
3561
3561
  [i]: {
3562
3562
  type: "",
3563
- title: h.t("packageGroupTemplate:title", { lng: e }),
3563
+ title: m.t("packageGroupTemplate:title", { lng: e }),
3564
3564
  hideGroupPrice: !1,
3565
3565
  packages: []
3566
3566
  }
3567
3567
  },
3568
3568
  $ref: `${f.api.baseUrl}/schemas/packageGroups/1.json`
3569
3569
  }
3570
- ], m2 = () => null, h2 = ({
3570
+ ], C2 = () => null, v2 = ({
3571
3571
  includeMockData: i,
3572
3572
  document: e = null,
3573
3573
  contentData: t = null
3574
3574
  } = {}) => {
3575
3575
  const a = p(), { language: s } = e || {};
3576
3576
  let n = null;
3577
- typeof t == "function" ? n = t(a) : i && (n = m2());
3578
- const o = p2(a), l = u2(a, s);
3577
+ typeof t == "function" ? n = t(a) : i && (n = C2());
3578
+ const o = f2(a), l = g2(a, s);
3579
3579
  return {
3580
3580
  readView: o,
3581
3581
  validation: l,
3582
3582
  ...n && { data: n }
3583
3583
  };
3584
3584
  };
3585
- h.loadOptions({
3585
+ m.loadOptions({
3586
3586
  namespaces: "packageGroupContentItems",
3587
3587
  messages: {
3588
3588
  en: {
@@ -3667,13 +3667,13 @@ h.loadOptions({
3667
3667
  }
3668
3668
  }
3669
3669
  });
3670
- const f2 = ({
3670
+ const y2 = ({
3671
3671
  language: i = "en",
3672
3672
  currency: e = "USD",
3673
3673
  _getters: t,
3674
3674
  allArticles: a = []
3675
3675
  } = {}) => {
3676
- const s = u(t, "settings/defaultVatRate") || null, n = !u(t, "settings/hidePriceOnNewlyAddedArticles"), o = (l) => h.t(`packageGroupContentItems:${l}`, { lng: i });
3676
+ const s = u(t, "settings/defaultVatRate") || null, n = !u(t, "settings/hidePriceOnNewlyAddedArticles"), o = (l) => m.t(`packageGroupContentItems:${l}`, { lng: i });
3677
3677
  return [
3678
3678
  {
3679
3679
  previewUrl: `
@@ -3722,7 +3722,7 @@ const f2 = ({
3722
3722
  return {
3723
3723
  [`data.packageGroups.${l}`]: {
3724
3724
  type: "single",
3725
- title: h.t("packageGroupTemplate:title", { lng: i }),
3725
+ title: m.t("packageGroupTemplate:title", { lng: i }),
3726
3726
  hideGroupPrice: !1,
3727
3727
  packages: [
3728
3728
  {
@@ -3740,7 +3740,7 @@ const f2 = ({
3740
3740
  },
3741
3741
  articles: [
3742
3742
  ...a,
3743
- y({
3743
+ x({
3744
3744
  vat: s,
3745
3745
  showPrice: n,
3746
3746
  currency: e,
@@ -3840,7 +3840,7 @@ const f2 = ({
3840
3840
  return {
3841
3841
  [`data.packageGroups.${l}`]: {
3842
3842
  type: "radio",
3843
- title: h.t("packageGroupTemplate:title", { lng: i }),
3843
+ title: m.t("packageGroupTemplate:title", { lng: i }),
3844
3844
  hideGroupPrice: !1,
3845
3845
  packages: [
3846
3846
  {
@@ -3869,7 +3869,7 @@ const f2 = ({
3869
3869
  },
3870
3870
  articles: [
3871
3871
  ...a,
3872
- y({
3872
+ x({
3873
3873
  vat: s,
3874
3874
  showPrice: n,
3875
3875
  currency: e,
@@ -3877,7 +3877,7 @@ const f2 = ({
3877
3877
  name: o("radio.artA"),
3878
3878
  price: 1e5
3879
3879
  }),
3880
- y({
3880
+ x({
3881
3881
  vat: s,
3882
3882
  showPrice: n,
3883
3883
  currency: e,
@@ -3974,7 +3974,7 @@ const f2 = ({
3974
3974
  return {
3975
3975
  [`data.packageGroups.${l}`]: {
3976
3976
  type: "checkbox",
3977
- title: h.t("packageGroupTemplate:title", { lng: i }),
3977
+ title: m.t("packageGroupTemplate:title", { lng: i }),
3978
3978
  hideGroupPrice: !1,
3979
3979
  packages: [
3980
3980
  {
@@ -4003,7 +4003,7 @@ const f2 = ({
4003
4003
  },
4004
4004
  articles: [
4005
4005
  ...a,
4006
- y({
4006
+ x({
4007
4007
  vat: s,
4008
4008
  showPrice: n,
4009
4009
  currency: e,
@@ -4011,7 +4011,7 @@ const f2 = ({
4011
4011
  name: o("checkbox.artBase"),
4012
4012
  price: 1e5
4013
4013
  }),
4014
- y({
4014
+ x({
4015
4015
  vat: s,
4016
4016
  showPrice: n,
4017
4017
  currency: e,
@@ -4024,7 +4024,7 @@ const f2 = ({
4024
4024
  }
4025
4025
  }
4026
4026
  ];
4027
- }, g2 = () => [
4027
+ }, x2 = () => [
4028
4028
  {
4029
4029
  itemId: "presentation",
4030
4030
  itemType: "presentation",
@@ -4032,11 +4032,11 @@ const f2 = ({
4032
4032
  parentId: "0",
4033
4033
  nodeId: p()
4034
4034
  }
4035
- ], C2 = () => ({
4036
- readView: g2(),
4035
+ ], w2 = () => ({
4036
+ readView: x2(),
4037
4037
  validation: []
4038
4038
  // all relevant data is either within base doc or company settings etc
4039
- }), v2 = () => [
4039
+ }), b2 = () => [
4040
4040
  {
4041
4041
  itemId: "terms",
4042
4042
  itemType: "termsDisclaimer",
@@ -4054,7 +4054,7 @@ const f2 = ({
4054
4054
  parentId: "0",
4055
4055
  nodeId: p()
4056
4056
  }
4057
- ], y2 = () => [
4057
+ ], k2 = () => [
4058
4058
  {
4059
4059
  key: "terms",
4060
4060
  anyOf: [
@@ -4062,10 +4062,10 @@ const f2 = ({
4062
4062
  { type: "null" }
4063
4063
  ]
4064
4064
  }
4065
- ], x2 = () => ({
4066
- readView: v2(),
4067
- validation: y2()
4068
- }), w2 = (i) => {
4065
+ ], _2 = () => ({
4066
+ readView: b2(),
4067
+ validation: k2()
4068
+ }), L2 = (i) => {
4069
4069
  const e = Array(2).fill().map(() => p());
4070
4070
  return [
4071
4071
  {
@@ -4087,29 +4087,29 @@ const f2 = ({
4087
4087
  nodeId: e[1]
4088
4088
  }
4089
4089
  ];
4090
- }, b2 = (i) => [
4090
+ }, $2 = (i) => [
4091
4091
  {
4092
4092
  key: `title-${i}`,
4093
4093
  anyOf: [{ type: "string" }, { type: "null" }],
4094
4094
  defaultValue: ""
4095
4095
  },
4096
4096
  { key: `content-${i}`, anyOf: [{ type: "string" }, { type: "null" }] }
4097
- ], k2 = (i) => ({
4097
+ ], S2 = (i) => ({
4098
4098
  [`data.title-${i}`]: "My custom text",
4099
4099
  [`data.content-${i}`]: "<p>First impressions matter. Make it count by sending beautiful proposals to your clients. Proposals that look great on any device. Proposals that help you to close with notifications and digital signatures.</p>"
4100
- }), _2 = ({
4100
+ }), T2 = ({
4101
4101
  includeMockData: i = !1,
4102
4102
  contentData: e = null
4103
4103
  }) => {
4104
4104
  const t = p();
4105
4105
  let a = null;
4106
- return typeof e == "function" ? a = e(t) : i && (a = k2(t)), {
4107
- readView: w2(t),
4108
- validation: b2(t),
4106
+ return typeof e == "function" ? a = e(t) : i && (a = S2(t)), {
4107
+ readView: L2(t),
4108
+ validation: $2(t),
4109
4109
  ...a && { data: a },
4110
4110
  onAddFnName: "conditionalOnAdd"
4111
4111
  };
4112
- }, L2 = (i) => [
4112
+ }, D2 = (i) => [
4113
4113
  {
4114
4114
  itemId: "videoPlayer",
4115
4115
  itemType: "videoPlayer",
@@ -4122,7 +4122,7 @@ const f2 = ({
4122
4122
  parentId: "0",
4123
4123
  nodeId: p()
4124
4124
  }
4125
- ], $2 = (i) => [
4125
+ ], V2 = (i) => [
4126
4126
  {
4127
4127
  key: `video-${i}`,
4128
4128
  $ref: `${f.api.baseUrl}/schemas/videoPlayer/1.json`,
@@ -4133,7 +4133,7 @@ const f2 = ({
4133
4133
  }
4134
4134
  }
4135
4135
  }
4136
- ], S2 = (i) => ({
4136
+ ], B2 = (i) => ({
4137
4137
  [`data.video-${i}`]: {
4138
4138
  size: "small",
4139
4139
  video: {
@@ -4142,18 +4142,18 @@ const f2 = ({
4142
4142
  id: "166JEb6qkr4"
4143
4143
  }
4144
4144
  }
4145
- }), T2 = ({
4145
+ }), M2 = ({
4146
4146
  includeMockData: i = !1,
4147
4147
  contentData: e = null
4148
4148
  }) => {
4149
4149
  const t = p();
4150
4150
  let a = null;
4151
- return typeof e == "function" ? a = e(t) : i && (a = S2(t)), {
4152
- readView: L2(t),
4153
- validation: $2(t),
4151
+ return typeof e == "function" ? a = e(t) : i && (a = B2(t)), {
4152
+ readView: D2(t),
4153
+ validation: V2(t),
4154
4154
  ...a && { data: a }
4155
4155
  };
4156
- }, D2 = ({ language: i = "en" } = {}) => [
4156
+ }, I2 = ({ language: i = "en" } = {}) => [
4157
4157
  {
4158
4158
  previewUrl: `
4159
4159
  <div style="position: relative;">
@@ -4177,7 +4177,7 @@ const f2 = ({
4177
4177
  </g>
4178
4178
  </svg>
4179
4179
  <div class="submenu-item-badge">
4180
- ${h.t("_common:video", { language: i }).capitalize()}
4180
+ ${m.t("_common:video", { language: i }).capitalize()}
4181
4181
  </div>
4182
4182
  </div>
4183
4183
  `,
@@ -4354,35 +4354,35 @@ const f2 = ({
4354
4354
  }
4355
4355
  })
4356
4356
  }
4357
- ], z = {
4358
- titleAndText2: _2,
4359
- attachments2: $1,
4360
- pdf: pe,
4361
- packageGroup: h2,
4362
- multiGroupPricing: l2,
4363
- coverBlock: V1,
4364
- videoPlayer: T2,
4365
- embed: z1,
4366
- header: a2,
4367
- answer: ue,
4368
- terms: x2,
4369
- parties: H1,
4370
- custom: me,
4357
+ ], O = {
4358
+ titleAndText2: T2,
4359
+ attachments2: V1,
4360
+ pdf: ue,
4361
+ packageGroup: v2,
4362
+ multiGroupPricing: p2,
4363
+ coverBlock: F1,
4364
+ videoPlayer: M2,
4365
+ embed: R1,
4366
+ header: l2,
4367
+ answer: me,
4368
+ terms: _2,
4369
+ parties: z1,
4370
+ custom: he,
4371
4371
  // legacy
4372
- presentation: C2,
4373
- estimatedTimeCompleted: G1,
4374
- estimatedWorkStartAndEndAtText: N1,
4375
- extraWorkConstructionPricingList: Y1,
4376
- extraWorkTimeImpactText: X1,
4377
- notBinding: d2
4378
- }, Z = {
4379
- coverBlock: B1,
4380
- header: s2,
4381
- packageGroup: f2,
4382
- embed: Z1,
4383
- videoPlayer: D2,
4384
- custom: de
4385
- }, V2 = {
4372
+ presentation: w2,
4373
+ estimatedTimeCompleted: j1,
4374
+ estimatedWorkStartAndEndAtText: Q1,
4375
+ extraWorkConstructionPricingList: e2,
4376
+ extraWorkTimeImpactText: a2,
4377
+ notBinding: h2
4378
+ }, U = {
4379
+ coverBlock: H1,
4380
+ header: r2,
4381
+ packageGroup: y2,
4382
+ embed: G1,
4383
+ videoPlayer: I2,
4384
+ custom: pe
4385
+ }, F2 = {
4386
4386
  name: "AddBlock",
4387
4387
  props: {
4388
4388
  set: {
@@ -4396,31 +4396,31 @@ const f2 = ({
4396
4396
  },
4397
4397
  render() {
4398
4398
  return this.$scopedSlots.default({
4399
- addBlock: (i) => he({
4399
+ addBlock: (i) => fe({
4400
4400
  ...i,
4401
4401
  set: this.set,
4402
- tplGenerators: z,
4402
+ tplGenerators: O,
4403
4403
  includeMockData: this.includeMockData,
4404
4404
  emit: (...e) => this.$emit(...e)
4405
4405
  }),
4406
- getBlockPayload: (i) => fe(
4406
+ getBlockPayload: (i) => ge(
4407
4407
  i,
4408
4408
  this.set,
4409
- z,
4409
+ O,
4410
4410
  this.includeMockdata
4411
4411
  )
4412
4412
  });
4413
4413
  }
4414
- }, B2 = null, M2 = null;
4415
- var I2 = /* @__PURE__ */ d(
4416
- V2,
4417
- B2,
4418
- M2,
4414
+ }, H2 = null, A2 = null;
4415
+ var P2 = /* @__PURE__ */ d(
4416
+ F2,
4417
+ H2,
4418
+ A2,
4419
4419
  !1,
4420
4420
  null,
4421
4421
  null
4422
4422
  );
4423
- const Q = I2.exports, F2 = {
4423
+ const X = P2.exports, E2 = {
4424
4424
  name: "MenuBlockConvertPopover",
4425
4425
  props: {
4426
4426
  target: {
@@ -4453,22 +4453,22 @@ const Q = I2.exports, F2 = {
4453
4453
  }
4454
4454
  }
4455
4455
  };
4456
- var H2 = function() {
4456
+ var z2 = function() {
4457
4457
  var e = this, t = e._self._c;
4458
4458
  return t("div", [t("div", { staticClass: "fixed inset-0 z-10", on: { click: function(a) {
4459
4459
  return a.target !== a.currentTarget ? null : e.$emit("close");
4460
4460
  } } }), t("transition", { attrs: { appear: "", mode: "out-in", "enter-active-class": "transition-all duration-100 ease-out", "enter-class": "-translate-x-4 opacity-0", "enter-to-class": "translate-x-0 opacity-100", "leave-active-class": "transition-opacity duration-100 ease-out", "leave-class": "opacity-100", "leave-to-class": "opacity-0" } }, [t("div", { ref: "popover", staticClass: "absolute z-10 w-52 -translate-y-1/2 rounded-lg bg-white p-4 text-sm shadow-xl" }, [t("div", { staticClass: "pb-4", domProps: { innerHTML: e._s(e.$t("text")) } }), t("CButton", { attrs: { type: "secondary", size: "small", "icon-right": "arrow-right" }, on: { click: function(a) {
4461
4461
  return e.$emit("convert");
4462
4462
  } } }, [e._v(" " + e._s(e.$t("button")) + " ")])], 1)])], 1);
4463
- }, A2 = [], P2 = /* @__PURE__ */ d(
4464
- F2,
4465
- H2,
4466
- A2,
4463
+ }, Z2 = [], O2 = /* @__PURE__ */ d(
4464
+ E2,
4465
+ z2,
4466
+ Z2,
4467
4467
  !1,
4468
4468
  null,
4469
4469
  null
4470
4470
  );
4471
- const E2 = P2.exports, z2 = A.component("ProBadge", {
4471
+ const U2 = O2.exports, R2 = E.component("ProBadge", {
4472
4472
  name: "ProBadge",
4473
4473
  render(i) {
4474
4474
  return i(
@@ -4479,7 +4479,7 @@ const E2 = P2.exports, z2 = A.component("ProBadge", {
4479
4479
  "Pro"
4480
4480
  );
4481
4481
  }
4482
- }), Z2 = {
4482
+ }), G2 = {
4483
4483
  name: "MenuBlocks",
4484
4484
  i18nOptions: {
4485
4485
  namespaces: "menuBlocks",
@@ -4549,15 +4549,15 @@ const E2 = P2.exports, z2 = A.component("ProBadge", {
4549
4549
  }
4550
4550
  },
4551
4551
  components: {
4552
- simplebar: k,
4553
- DragList: O,
4554
- DragItem: R,
4555
- AddBlock: Q,
4556
- IsPremiumPreStep: _,
4557
- ProBadge: z2,
4558
- MenuBlockConvertPopover: E2
4559
- },
4560
- mixins: [x],
4552
+ simplebar: _,
4553
+ DragList: G,
4554
+ DragItem: W,
4555
+ AddBlock: X,
4556
+ IsPremiumPreStep: L,
4557
+ ProBadge: R2,
4558
+ MenuBlockConvertPopover: U2
4559
+ },
4560
+ mixins: [w],
4561
4561
  inject: {
4562
4562
  viewSettings: {
4563
4563
  default: () => ({ isPublicForm: !1 })
@@ -4744,7 +4744,7 @@ const E2 = P2.exports, z2 = A.component("ProBadge", {
4744
4744
  };
4745
4745
  },
4746
4746
  computed: {
4747
- ...g({
4747
+ ...C({
4748
4748
  allAuthenticatedCRMs: "settings/allAuthenticatedCRMs",
4749
4749
  feature: "application/feature"
4750
4750
  }),
@@ -4860,7 +4860,7 @@ const E2 = P2.exports, z2 = A.component("ProBadge", {
4860
4860
  }
4861
4861
  ];
4862
4862
  return i.forEach((e) => {
4863
- Z[e.key] && (e.subMenu = (Z[e.key](this._document || {}) || []).map((t) => ({ ...t, key: e.key, locked: e.locked }))), this.tooltips[e.key] && (e.hasTooltip = !0);
4863
+ U[e.key] && (e.subMenu = (U[e.key](this._document || {}) || []).map((t) => ({ ...t, key: e.key, locked: e.locked }))), this.tooltips[e.key] && (e.hasTooltip = !0);
4864
4864
  }), i;
4865
4865
  },
4866
4866
  availableBlocks() {
@@ -4916,7 +4916,7 @@ const E2 = P2.exports, z2 = A.component("ProBadge", {
4916
4916
  if (this.mq === "sm")
4917
4917
  return;
4918
4918
  const { tooltips: i } = this, e = (n = (s = this.$el).getRootNode) == null ? void 0 : n.call(s), a = (e == null ? void 0 : e.toString()) === "[object ShadowRoot]" ? e : document.body;
4919
- this.tippyInstances = Ge(this.$el, {
4919
+ this.tippyInstances = je(this.$el, {
4920
4920
  target: "[data-tooltip-key]",
4921
4921
  allowHTML: !0,
4922
4922
  duration: [150, 0],
@@ -4941,7 +4941,7 @@ const E2 = P2.exports, z2 = A.component("ProBadge", {
4941
4941
  i.destroy();
4942
4942
  }) : this.tippyInstances.destroy && this.tippyInstances.destroy());
4943
4943
  },
4944
- setSubMenuState: P(
4944
+ setSubMenuState: z(
4945
4945
  function(e) {
4946
4946
  this.activeSubMenu = e;
4947
4947
  },
@@ -4984,7 +4984,7 @@ const E2 = P2.exports, z2 = A.component("ProBadge", {
4984
4984
  }
4985
4985
  }
4986
4986
  };
4987
- var U2 = function() {
4987
+ var W2 = function() {
4988
4988
  var e = this, t = e._self._c;
4989
4989
  return t("AddBlock", { attrs: { set: e.set }, on: { "block-added": function(a) {
4990
4990
  return e.$emit("block-added", a);
@@ -5027,15 +5027,15 @@ var U2 = function() {
5027
5027
  }), 1)], 1)], 1)])], 1)];
5028
5028
  } }], null, !0) })];
5029
5029
  } }]) });
5030
- }, O2 = [], R2 = /* @__PURE__ */ d(
5031
- Z2,
5032
- U2,
5033
- O2,
5030
+ }, q2 = [], N2 = /* @__PURE__ */ d(
5031
+ G2,
5032
+ W2,
5033
+ q2,
5034
5034
  !1,
5035
5035
  null,
5036
5036
  "6dba95f7"
5037
5037
  );
5038
- const G2 = R2.exports, W2 = {
5038
+ const j2 = N2.exports, K2 = {
5039
5039
  name: "DocumentFormMenu",
5040
5040
  i18nOptions: {
5041
5041
  namespaces: "documentFormMenu",
@@ -5051,13 +5051,13 @@ const G2 = R2.exports, W2 = {
5051
5051
  }
5052
5052
  },
5053
5053
  components: {
5054
- Design: a1,
5055
- Fields: k1,
5056
- ExtensionTab: m1,
5057
- DocumentGeneralSettings: r1,
5058
- DocumentGuide: () => import("./index-B_UJMy_K.js"),
5059
- MenuBlocks: G2,
5060
- Simplebar: k
5054
+ Design: l1,
5055
+ Fields: S1,
5056
+ ExtensionTab: C1,
5057
+ DocumentGeneralSettings: u1,
5058
+ DocumentGuide: () => import("./index-kV9OZ5y0.js"),
5059
+ MenuBlocks: j2,
5060
+ Simplebar: _
5061
5061
  },
5062
5062
  props: {
5063
5063
  state: {
@@ -5097,12 +5097,12 @@ const G2 = R2.exports, W2 = {
5097
5097
  data() {
5098
5098
  return {
5099
5099
  showGuide: !1,
5100
- showGuideNotification: !E.getItem("hideFormGuideNotification"),
5100
+ showGuideNotification: !Z.getItem("hideFormGuideNotification"),
5101
5101
  tab: "blocks"
5102
5102
  };
5103
5103
  },
5104
5104
  computed: {
5105
- ...g({
5105
+ ...C({
5106
5106
  allAuthenticatedCRMs: "settings/allAuthenticatedCRMs"
5107
5107
  }),
5108
5108
  extensionTabType() {
@@ -5119,11 +5119,11 @@ const G2 = R2.exports, W2 = {
5119
5119
  },
5120
5120
  methods: {
5121
5121
  openGuide() {
5122
- this.showGuide = !0, this.showGuideNotification = !1, E.setItem("hideFormGuideNotification", !0);
5122
+ this.showGuide = !0, this.showGuideNotification = !1, Z.setItem("hideFormGuideNotification", !0);
5123
5123
  }
5124
5124
  }
5125
5125
  };
5126
- var q2 = function() {
5126
+ var Y2 = function() {
5127
5127
  var e = this, t = e._self._c;
5128
5128
  return t("div", [t("div", { staticClass: "root menu-wrapper fixed left-0 top-14 z-[99] bg-white", style: [{ width: `${e.width}px` }, e.fixed && { zIndex: 999 }] }, [e.fixed ? t("div", { staticClass: "fixed inset-0", on: { click: function(a) {
5129
5129
  return e.$emit("close");
@@ -5170,21 +5170,21 @@ var q2 = function() {
5170
5170
  }, offset: e.fixed ? 0 : e.width }, on: { input: ({ key: a, value: s }) => e.set({ key: a, value: s }) } }) : e._e()], 1)], 1), e.showGuide ? t("DocumentGuide", { on: { close: function(a) {
5171
5171
  e.showGuide = !1;
5172
5172
  } } }) : e._e()], 1)])]);
5173
- }, N2 = [], j2 = /* @__PURE__ */ d(
5174
- W2,
5175
- q2,
5176
- N2,
5173
+ }, Q2 = [], J2 = /* @__PURE__ */ d(
5174
+ K2,
5175
+ Y2,
5176
+ Q2,
5177
5177
  !1,
5178
5178
  null,
5179
5179
  "a591711d"
5180
5180
  );
5181
- const K2 = j2.exports, J = (i, e, t = "$children") => {
5181
+ const X2 = J2.exports, ee = (i, e, t = "$children") => {
5182
5182
  if (!i)
5183
5183
  return;
5184
5184
  e(i);
5185
5185
  const a = i[t];
5186
- !a && !Array.isArray(a) || a.forEach((s) => J(s, e));
5187
- }, Y2 = {
5186
+ !a && !Array.isArray(a) || a.forEach((s) => ee(s, e));
5187
+ }, ei = {
5188
5188
  i18nOptions: {
5189
5189
  namespaces: "DocumentFormContainer",
5190
5190
  messages: {
@@ -5200,21 +5200,21 @@ const K2 = j2.exports, J = (i, e, t = "$children") => {
5200
5200
  },
5201
5201
  name: "DocumentFormContainer",
5202
5202
  components: {
5203
- WithDimensions: Ze,
5204
- DragList: O,
5205
- DragItem: R,
5206
- DynamicChapter: Ue,
5207
- DocumentFormMenu: K2,
5208
- DynamicBlock: Pt,
5209
- DocumentFormViewRadio: St,
5210
- DocumentFormNav: bt,
5211
- DocumentDrawer: Ct,
5212
- DocumentStyleContainer: Oe,
5213
- simplebar: k,
5214
- LogoBanner: Ot,
5215
- IsPremium: L
5216
- },
5217
- mixins: [x],
5203
+ WithDimensions: Ge,
5204
+ DragList: G,
5205
+ DragItem: W,
5206
+ DynamicChapter: We,
5207
+ DocumentFormMenu: X2,
5208
+ DynamicBlock: Ot,
5209
+ DocumentFormViewRadio: Bt,
5210
+ DocumentFormNav: $t,
5211
+ DocumentDrawer: wt,
5212
+ DocumentStyleContainer: qe,
5213
+ simplebar: _,
5214
+ LogoBanner: qt,
5215
+ IsPremium: $
5216
+ },
5217
+ mixins: [w],
5218
5218
  props: {
5219
5219
  _document: {
5220
5220
  type: Object,
@@ -5332,7 +5332,7 @@ const K2 = j2.exports, J = (i, e, t = "$children") => {
5332
5332
  await Promise.all(
5333
5333
  (i || []).map(async ({ service: e, type: t, typeId: a }) => {
5334
5334
  if (t && a && e && this.$store.getters["settings/isAuthenticatedCRM"](e)) {
5335
- const { data: s } = await $.getFields(
5335
+ const { data: s } = await T.getFields(
5336
5336
  e,
5337
5337
  { type: t, typeId: a, populated: !0 }
5338
5338
  );
@@ -5347,7 +5347,7 @@ const K2 = j2.exports, J = (i, e, t = "$children") => {
5347
5347
  },
5348
5348
  methods: {
5349
5349
  onAddBlockMount(i, e) {
5350
- !this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() => Xe(e.$el, { offset: 100 })), typeof e[this.onAddRedis[i]] == "function" && e[this.onAddRedis[i]](), delete this.onAddRedis[i]);
5350
+ !this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() => at(e.$el, { offset: 100 })), typeof e[this.onAddRedis[i]] == "function" && e[this.onAddRedis[i]](), delete this.onAddRedis[i]);
5351
5351
  },
5352
5352
  onBlockToggleVisible(i, e) {
5353
5353
  const a = [...this.readLayout].findIndex(
@@ -5371,7 +5371,7 @@ const K2 = j2.exports, J = (i, e, t = "$children") => {
5371
5371
  const a = i.itemId.split("-")[1];
5372
5372
  this.removePackageGroup(a);
5373
5373
  } else
5374
- J(i, (s) => {
5374
+ ee(i, (s) => {
5375
5375
  s.value && Object.values(s.value).forEach((n) => {
5376
5376
  this.removeFormKeyValue(`${n}`);
5377
5377
  let o = n.replace(
@@ -5384,7 +5384,7 @@ const K2 = j2.exports, J = (i, e, t = "$children") => {
5384
5384
  this.removeFormKeyValue(r);
5385
5385
  });
5386
5386
  }, "children");
5387
- B([this.nestedReadLayout[e]]).forEach((a) => {
5387
+ I([this.nestedReadLayout[e]]).forEach((a) => {
5388
5388
  const s = this.readLayout.findIndex((n) => n.nodeId === a.nodeId);
5389
5389
  this.removeFormValue(`template.views.read.nodes[${s}]`);
5390
5390
  });
@@ -5411,38 +5411,38 @@ const K2 = j2.exports, J = (i, e, t = "$children") => {
5411
5411
  if (e !== null && t !== null) {
5412
5412
  if (e === t)
5413
5413
  return;
5414
- const s = ge(
5414
+ const s = Ce(
5415
5415
  this.nestedReadLayout,
5416
5416
  e,
5417
5417
  t
5418
5418
  );
5419
5419
  this.setFormValue({
5420
5420
  key: "template.views.read.nodes",
5421
- value: B(s)
5421
+ value: I(s)
5422
5422
  });
5423
5423
  } else if (!e && t !== null) {
5424
5424
  const { sectionKey: s, createNewSection: n, addValidation: o, contentData: l } = a, {
5425
5425
  readView: r,
5426
5426
  validation: c,
5427
- data: C,
5428
- onAddFnName: V = "onAdd"
5427
+ data: g,
5428
+ onAddFnName: S = "onAdd"
5429
5429
  } = n({
5430
5430
  sectionKey: s,
5431
5431
  document: this._document,
5432
5432
  contentData: l
5433
5433
  });
5434
- o({ validation: c, data: C });
5435
- const te = Ce({ tree: r }), ie = [
5434
+ o({ validation: c, data: g });
5435
+ const M = ve({ tree: r }), ae = [
5436
5436
  ...this.nestedReadLayout.slice(0, t),
5437
- ...te,
5437
+ ...M,
5438
5438
  ...this.nestedReadLayout.slice(t)
5439
5439
  ];
5440
5440
  this.setFormValue({
5441
5441
  key: "template.views.read.nodes",
5442
- value: B(ie)
5442
+ value: I(ae)
5443
5443
  });
5444
- const [{ nodeId: ae }] = r;
5445
- this.onAddRedis[ae] = V;
5444
+ const [{ nodeId: se }] = r;
5445
+ this.onAddRedis[se] = S;
5446
5446
  }
5447
5447
  },
5448
5448
  shouldAnimateDrop(i) {
@@ -5450,7 +5450,7 @@ const K2 = j2.exports, J = (i, e, t = "$children") => {
5450
5450
  }
5451
5451
  }
5452
5452
  };
5453
- var Q2 = function() {
5453
+ var ti = function() {
5454
5454
  var e = this, t = e._self._c;
5455
5455
  return t("div", { staticClass: "h-screen overflow-auto" }, [t("div", { staticClass: "relative flex min-h-screen flex-row bg-gray-200", class: {
5456
5456
  "is-edit-view": e.isEditView,
@@ -5514,7 +5514,7 @@ var Q2 = function() {
5514
5514
  ...l.props,
5515
5515
  _document: e._document,
5516
5516
  _value: l.value
5517
- }, children: l.children, "parent-size": e.parentSize, "is-visible": l.isVisible, "on-input": ({ key: c, value: C, options: V }) => e.setFormValue({ key: c, value: C, options: V }), "on-remove": ({ key: c }) => e.removeFormValue(c), "on-mount": (c) => e.onAddBlockMount(l.nodeId, c) } })], 1)], 1);
5517
+ }, children: l.children, "parent-size": e.parentSize, "is-visible": l.isVisible, "on-input": ({ key: c, value: g, options: S }) => e.setFormValue({ key: c, value: g, options: S }), "on-remove": ({ key: c }) => e.removeFormValue(c), "on-mount": (c) => e.onAddBlockMount(l.nodeId, c) } })], 1)], 1);
5518
5518
  }), 1) : e._e(), e.canShowBanner ? t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ isProLike: l }) {
5519
5519
  return [!e.isEditView && !l ? t("LogoBanner", { attrs: { position: "sticky" } }) : e._e()];
5520
5520
  } }], null, !0) }) : e._e()], 1);
@@ -5523,18 +5523,18 @@ var Q2 = function() {
5523
5523
  } } }, [t("CButton", { staticClass: "absolute right-2 top-2", attrs: { "icon-props": { size: 20 }, size: "normal", icon: "x", circle: "", type: "none", pattern: "tertiary" }, on: { click: function(a) {
5524
5524
  e.drawerState.openSection = null;
5525
5525
  } } }), t("portal-target", { attrs: { name: "drawer-content" } })], 1)], 1)]);
5526
- }, J2 = [function() {
5526
+ }, ii = [function() {
5527
5527
  var i = this, e = i._self._c;
5528
5528
  return e("div", { staticClass: "drag-drop-illustration-block" }, [e("div"), e("div")]);
5529
- }], X2 = /* @__PURE__ */ d(
5530
- Y2,
5531
- Q2,
5532
- J2,
5529
+ }], ai = /* @__PURE__ */ d(
5530
+ ei,
5531
+ ti,
5532
+ ii,
5533
5533
  !1,
5534
5534
  null,
5535
5535
  "3168d720"
5536
5536
  );
5537
- const ei = X2.exports, ti = {
5537
+ const si = ai.exports, ni = {
5538
5538
  name: "DocumentSend",
5539
5539
  i18nOptions: {
5540
5540
  namespaces: "documentSend",
@@ -5558,21 +5558,21 @@ const ei = X2.exports, ti = {
5558
5558
  }
5559
5559
  },
5560
5560
  components: {
5561
- AddBlock: Q,
5562
- Drawer: K,
5563
- SendForm: et,
5564
- CCheckbox: ve,
5565
- CIcon: ye,
5566
- CButton: xe,
5567
- IsPremium: L,
5568
- IsPremiumPreStep: _
5561
+ AddBlock: X,
5562
+ Drawer: Q,
5563
+ SendForm: st,
5564
+ CCheckbox: ye,
5565
+ CIcon: xe,
5566
+ CButton: we,
5567
+ IsPremium: $,
5568
+ IsPremiumPreStep: L
5569
5569
  },
5570
5570
  mixins: [
5571
- S([], {
5571
+ D([], {
5572
5572
  useEmit: !1,
5573
5573
  setFnName: "setFormValue"
5574
5574
  }),
5575
- x
5575
+ w
5576
5576
  ],
5577
5577
  props: {
5578
5578
  setFormValue: {
@@ -5625,8 +5625,8 @@ const ei = X2.exports, ti = {
5625
5625
  !this.isPublicForm && ((i = window.App) != null && i.$fab) && (window.App.$fab.show = !0);
5626
5626
  },
5627
5627
  methods: {
5628
- ...w({
5629
- createTemplate: m.DO_CREATE_TEMPLATE
5628
+ ...b({
5629
+ createTemplate: h.DO_CREATE_TEMPLATE
5630
5630
  }),
5631
5631
  open() {
5632
5632
  this.isOpen = !0;
@@ -5655,7 +5655,7 @@ const ei = X2.exports, ti = {
5655
5655
  }
5656
5656
  }
5657
5657
  };
5658
- var ii = function() {
5658
+ var oi = function() {
5659
5659
  var e = this, t = e._self._c;
5660
5660
  return e.mq !== "sm" || e.isOpen ? t(e.mq === "sm" ? "div" : "Drawer", { tag: "component", attrs: { placement: "right" }, model: { value: e.isOpen, callback: function(a) {
5661
5661
  e.isOpen = a;
@@ -5678,15 +5678,15 @@ var ii = function() {
5678
5678
  }, expression: "saveTemplate" } }), t("div", { staticStyle: { "padding-left": "0.5em" } }, [e._v(" " + e._s(e.$t("saveDocAsTemplate")) + " "), t("CIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.saveTemplateTooltip, expression: "saveTemplateTooltip" }], attrs: { type: "info", size: "15" } })], 1)], 1)];
5679
5679
  } }], null, !0) })];
5680
5680
  } }], null, !1, 3857209736) })], 1)], 1)], 1)]) : e._e();
5681
- }, ai = [], si = /* @__PURE__ */ d(
5682
- ti,
5683
- ii,
5684
- ai,
5681
+ }, li = [], ri = /* @__PURE__ */ d(
5682
+ ni,
5683
+ oi,
5684
+ li,
5685
5685
  !1,
5686
5686
  null,
5687
5687
  "ded1afc1"
5688
5688
  );
5689
- const ni = si.exports, oi = {
5689
+ const ci = ri.exports, di = {
5690
5690
  i18nOptions: {
5691
5691
  namespaces: "DocumentTemplateFormModal",
5692
5692
  messages: {
@@ -5739,11 +5739,11 @@ const ni = si.exports, oi = {
5739
5739
  },
5740
5740
  validations: {
5741
5741
  name: {
5742
- required: F.requiredIf((i) => !i.updateExistingDocTemplate)
5742
+ required: A.requiredIf((i) => !i.updateExistingDocTemplate)
5743
5743
  }
5744
5744
  },
5745
5745
  computed: {
5746
- ...g({
5746
+ ...C({
5747
5747
  isPosting: "templates/isPosting",
5748
5748
  templateById: "templates/byId",
5749
5749
  docById: "documents2/byId",
@@ -5771,10 +5771,10 @@ const ni = si.exports, oi = {
5771
5771
  this.$refs.input && this.$refs.input.focus();
5772
5772
  },
5773
5773
  methods: {
5774
- ...w({
5775
- loadTemplate: m.DO_LOAD_TEMPLATE,
5776
- saveTemplate: m.SAVE_TEMPLATE_FORM,
5777
- updateSettings: m.UPDATE_SETTINGS
5774
+ ...b({
5775
+ loadTemplate: h.DO_LOAD_TEMPLATE,
5776
+ saveTemplate: h.SAVE_TEMPLATE_FORM,
5777
+ updateSettings: h.UPDATE_SETTINGS
5778
5778
  }),
5779
5779
  async onSave() {
5780
5780
  if (!this.document && !this.template && (this.$log.error('Missing prop "document" or "template"'), this.$emit("close")), this.$v.$invalid)
@@ -5829,7 +5829,7 @@ const ni = si.exports, oi = {
5829
5829
  }
5830
5830
  }
5831
5831
  };
5832
- var li = function() {
5832
+ var pi = function() {
5833
5833
  var e = this, t = e._self._c;
5834
5834
  return t("div", { staticClass: "t-root font-inter" }, [t("div", { staticStyle: { "font-size": "18px", "font-weight": "700", "text-align": "center", "margin-bottom": "1em" } }, [e._v(" " + e._s(e.template ? e.$t("_common:edit", { thing: e.$t("_common:name") }) : e.$t("_common:save", { thing: e.$t("_common:template") })) + " ")]), t("div", [e.template ? e._e() : t("CCallout", [e._v(" " + e._s(e.$t("calloutDescription")) + " ")]), t("CField", { attrs: { vuelidate: e.$v.name, "vuelidate-messages": e.messages.name, label: e.$t("_common:name").capitalize(), "label-position": "inside" } }, [t("CInput", { ref: "input", staticClass: "rounder", staticStyle: { "margin-bottom": "calc(1 * var(--rem))" }, attrs: { value: e.updateExistingDocTemplate ? e.document.template.name : e.name, placeholder: e.$t("namePlaceholder"), disabled: e.updateExistingDocTemplate, size: "medium" }, on: { input: function(a) {
5835
5835
  e.name = a;
@@ -5838,26 +5838,26 @@ var li = function() {
5838
5838
  }, expression: "updateExistingDocTemplate" } }, [t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("updateExisting")) + " ")])])], 1)], 1) : e._e(), e.document && e.document.clients.length ? t("div", [t("CField", { staticStyle: { "padding-left": "calc(0.5 * var(--rem))", "margin-bottom": "calc(0.5 * var(--rem))" } }, [t("CCheckbox", { attrs: { type: "secondary", size: "normal" }, model: { value: e.keepClients, callback: function(a) {
5839
5839
  e.keepClients = a;
5840
5840
  }, expression: "keepClients" } }, [t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$t("keepClients")) + " ")])])], 1)], 1) : e._e()], 1), t("CButton", { staticStyle: { "margin-top": "1.5em" }, attrs: { loading: e.isPosting, type: "secondary", wide: "", taller: "" }, on: { click: e.onSave } }, [e._v(" " + e._s(e.actionButtonText) + " ")])], 1);
5841
- }, ri = [], ci = /* @__PURE__ */ d(
5842
- oi,
5843
- li,
5844
- ri,
5841
+ }, ui = [], mi = /* @__PURE__ */ d(
5842
+ di,
5843
+ pi,
5844
+ ui,
5845
5845
  !1,
5846
5846
  null,
5847
5847
  "ea90dfe8"
5848
5848
  );
5849
- const X = ci.exports;
5850
- function di(i, e, t) {
5849
+ const te = mi.exports;
5850
+ function hi(i, e, t) {
5851
5851
  return i === i && (t !== void 0 && (i = i <= t ? i : t), e !== void 0 && (i = i >= e ? i : e)), i;
5852
5852
  }
5853
- var pi = di, ui = pi, M = We;
5854
- function mi(i, e, t) {
5855
- return t === void 0 && (t = e, e = void 0), t !== void 0 && (t = M(t), t = t === t ? t : 0), e !== void 0 && (e = M(e), e = e === e ? e : 0), ui(M(i), e, t);
5853
+ var fi = hi, gi = fi, F = Ke;
5854
+ function Ci(i, e, t) {
5855
+ return t === void 0 && (t = e, e = void 0), t !== void 0 && (t = F(t), t = t === t ? t : 0), e !== void 0 && (e = F(e), e = e === e ? e : 0), gi(F(i), e, t);
5856
5856
  }
5857
- var hi = mi;
5858
- const fi = /* @__PURE__ */ G(hi), gi = {
5857
+ var vi = Ci;
5858
+ const yi = /* @__PURE__ */ q(vi), xi = {
5859
5859
  name: "RemainingTrialButton",
5860
- components: { IsPremium: L },
5860
+ components: { IsPremium: $ },
5861
5861
  i18nOptions: {
5862
5862
  namespace: "RemainingTrialButton",
5863
5863
  messages: {
@@ -5885,12 +5885,12 @@ const fi = /* @__PURE__ */ G(hi), gi = {
5885
5885
  }
5886
5886
  }
5887
5887
  },
5888
- mixins: [x],
5888
+ mixins: [w],
5889
5889
  methods: {
5890
- clamp: fi
5890
+ clamp: yi
5891
5891
  }
5892
5892
  };
5893
- var Ci = function() {
5893
+ var wi = function() {
5894
5894
  var e = this, t = e._self._c;
5895
5895
  return t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({
5896
5896
  accountType: a,
@@ -5902,30 +5902,30 @@ var Ci = function() {
5902
5902
  width: e.clamp(s / o * 100, 0, 100) + "%"
5903
5903
  } })])]), t("div", { staticClass: "w-56 p-4 text-sm", attrs: { slot: "popover" }, slot: "popover" }, [t("div", { staticClass: "font-semibold" }, [e._v(" " + e._s(e.$t("title.1")) + " "), t("span", { staticClass: "bg-primary-100 border-primary-200 text-primary-800 inline-flex rounded-md border px-1.5 py-[3px] text-xs leading-none" }, [e._v(e._s(e.$t("title.2")))]), e._v(" " + e._s(e.$t("title.3", { trialDaysLeft: s })) + ". ")]), t("div", { staticClass: "text-sm text-gray-600" }, [e._v(" " + e._s(e.$t("title.4")) + " "), t("span", { staticClass: "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" }, [e._v(e._s(e.$t("title.5")))]), e._v(". ")]), t("div", { staticClass: "mt-5" }, [t("CButton", { directives: [{ name: "close-popover", rawName: "v-close-popover" }], attrs: { type: "secondary", size: "small", "icon-right": "arrow-right" }, on: { click: n } }, [e._v(" " + e._s(e.$t("actionButton")) + " ")])], 1)])]) : e._e()];
5904
5904
  } }]) });
5905
- }, vi = [], yi = /* @__PURE__ */ d(
5906
- gi,
5907
- Ci,
5908
- vi,
5905
+ }, bi = [], ki = /* @__PURE__ */ d(
5906
+ xi,
5907
+ wi,
5908
+ bi,
5909
5909
  !1,
5910
5910
  null,
5911
5911
  "748c3983"
5912
5912
  );
5913
- const xi = yi.exports, T = A.observable({
5913
+ const _i = ki.exports, V = E.observable({
5914
5914
  canEdit: !1,
5915
5915
  isForm: !0,
5916
5916
  setFormValue: null,
5917
5917
  removeFormValue: null
5918
- }), wi = {
5918
+ }), Li = {
5919
5919
  name: "DocumentForm",
5920
5920
  components: {
5921
- DocumentFormContainer: ei,
5922
- IsPremium: L,
5923
- IsPremiumPreStep: _,
5924
- DocumentSend: ni,
5925
- RemainingTrialButton: xi
5926
- },
5927
- mixins: [it, x],
5928
- provide: () => ({ viewSettings: T }),
5921
+ DocumentFormContainer: si,
5922
+ IsPremium: $,
5923
+ IsPremiumPreStep: L,
5924
+ DocumentSend: ci,
5925
+ RemainingTrialButton: _i
5926
+ },
5927
+ mixins: [ot, w],
5928
+ provide: () => ({ viewSettings: V }),
5929
5929
  props: {
5930
5930
  document: {
5931
5931
  type: Object,
@@ -5991,12 +5991,12 @@ const xi = yi.exports, T = A.observable({
5991
5991
  canEdit: {
5992
5992
  immediate: !0,
5993
5993
  handler(i) {
5994
- T.canEdit = !!i;
5994
+ V.canEdit = !!i;
5995
5995
  }
5996
5996
  }
5997
5997
  },
5998
5998
  created() {
5999
- this.setDocValue && (T.setFormValue = this.setDocValue), this.removeDocValue && (T.removeFormValue = this.removeDocValue);
5999
+ this.setDocValue && (V.setFormValue = this.setDocValue), this.removeDocValue && (V.removeFormValue = this.removeDocValue);
6000
6000
  },
6001
6001
  methods: {
6002
6002
  isValid() {
@@ -6011,7 +6011,7 @@ const xi = yi.exports, T = A.observable({
6011
6011
  },
6012
6012
  async saveAsTemplate() {
6013
6013
  this.document && this.$modal.show(
6014
- X,
6014
+ te,
6015
6015
  {
6016
6016
  document: this.document,
6017
6017
  onSaveTemplate: this.onSaveTemplate
@@ -6028,7 +6028,7 @@ const xi = yi.exports, T = A.observable({
6028
6028
  }
6029
6029
  }
6030
6030
  };
6031
- var bi = function() {
6031
+ var $i = function() {
6032
6032
  var e = this, t = e._self._c;
6033
6033
  return e.document ? t("div", { staticClass: "flex w-screen flex-col bg-white" }, [t("DocumentFormContainer", { attrs: { _document: e.document, view: e.view, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "remove-form-key-value": e.removeDocKeyValue, close: e.close, "go-back": e.goBack, "can-show-banner": e.canShowBanner }, on: { "update:view": function(a) {
6034
6034
  e.view = a;
@@ -6059,15 +6059,15 @@ var bi = function() {
6059
6059
  reminders: "data.reminders",
6060
6060
  name: "data.name"
6061
6061
  }, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "on-save-document": e.onSaveDocument } })], 1) : e._e();
6062
- }, ki = [], _i = /* @__PURE__ */ d(
6063
- wi,
6064
- bi,
6065
- ki,
6062
+ }, Si = [], Ti = /* @__PURE__ */ d(
6063
+ Li,
6064
+ $i,
6065
+ Si,
6066
6066
  !1,
6067
6067
  null,
6068
6068
  null
6069
6069
  );
6070
- const Li = _i.exports, $i = {
6070
+ const Di = Ti.exports, Vi = {
6071
6071
  name: "DocumentFormRecent",
6072
6072
  i18nOptions: {
6073
6073
  namespaces: "DocumentFormRecent",
@@ -6083,8 +6083,8 @@ const Li = _i.exports, $i = {
6083
6083
  }
6084
6084
  },
6085
6085
  components: {
6086
- IsPremium: L,
6087
- IsPremiumPreStep: _
6086
+ IsPremium: $,
6087
+ IsPremiumPreStep: L
6088
6088
  },
6089
6089
  data() {
6090
6090
  return {
@@ -6096,7 +6096,7 @@ const Li = _i.exports, $i = {
6096
6096
  };
6097
6097
  },
6098
6098
  computed: {
6099
- ...g({
6099
+ ...C({
6100
6100
  docById: "documents2/byId"
6101
6101
  })
6102
6102
  },
@@ -6104,8 +6104,8 @@ const Li = _i.exports, $i = {
6104
6104
  this.onLoadDocuments();
6105
6105
  },
6106
6106
  methods: {
6107
- ...w({
6108
- loadDocument: m.LOAD_DOCUMENT2
6107
+ ...b({
6108
+ loadDocument: h.LOAD_DOCUMENT2
6109
6109
  }),
6110
6110
  async onInput() {
6111
6111
  this.isLoading = !0, this.onLoadDocuments();
@@ -6113,7 +6113,7 @@ const Li = _i.exports, $i = {
6113
6113
  async fetchDocuments(i) {
6114
6114
  const e = this.query ? 180 : 90, t = {
6115
6115
  createdAt: {
6116
- $gte: this.$formatDate(we(/* @__PURE__ */ new Date(), e), "yyyy-MM-dd")
6116
+ $gte: this.$formatDate(be(/* @__PURE__ */ new Date(), e), "yyyy-MM-dd")
6117
6117
  },
6118
6118
  // Only provide or if there is a search query to filter on
6119
6119
  ...this.query && {
@@ -6130,7 +6130,7 @@ const Li = _i.exports, $i = {
6130
6130
  }
6131
6131
  ]
6132
6132
  }
6133
- }, { data: a } = await be.getAll({
6133
+ }, { data: a } = await ke.getAll({
6134
6134
  lean: !0,
6135
6135
  filter: encodeURIComponent(JSON.stringify(t)),
6136
6136
  fields: "clients,data.name,createdAt",
@@ -6140,7 +6140,7 @@ const Li = _i.exports, $i = {
6140
6140
  }), { items: s = [] } = a || {};
6141
6141
  return s;
6142
6142
  },
6143
- onLoadDocuments: P(async function() {
6143
+ onLoadDocuments: z(async function() {
6144
6144
  this.isLoading = !0, this.hasItems = !0;
6145
6145
  const e = await this.fetchDocuments();
6146
6146
  (!e || !e.length) && (this.canFetchMore = !1), this.list = [...e || []], this.isLoading = !1;
@@ -6155,7 +6155,7 @@ const Li = _i.exports, $i = {
6155
6155
  }
6156
6156
  }
6157
6157
  };
6158
- var Si = function() {
6158
+ var Bi = function() {
6159
6159
  var e = this, t = e._self._c;
6160
6160
  return t("div", [t("div", { staticClass: "flex w-full", staticStyle: { "padding-bottom": "1em" } }, [e._t("default"), e.hasItems ? t("CInput", { staticClass: "hidden md:flex", attrs: { loading: e.isLoading, placeholder: e.$t("_common:search"), type: "search", size: "normal", filled: "" }, on: { input: e.onInput }, model: { value: e.query, callback: function(a) {
6161
6161
  e.query = a;
@@ -6182,53 +6182,57 @@ var Si = function() {
6182
6182
  }), 0)];
6183
6183
  } }], null, !0) })];
6184
6184
  } }]) })]], 2)]);
6185
- }, Ti = [], Di = /* @__PURE__ */ d(
6186
- $i,
6187
- Si,
6188
- Ti,
6185
+ }, Mi = [], Ii = /* @__PURE__ */ d(
6186
+ Vi,
6187
+ Bi,
6188
+ Mi,
6189
6189
  !1,
6190
6190
  null,
6191
6191
  "9c78dbb6"
6192
6192
  );
6193
- const Vi = Di.exports, Bi = {
6194
- name: "DocumentIcon",
6195
- truncate: ke,
6196
- inject: {
6197
- components: {
6198
- default: {
6199
- BlockMedia: at
6200
- }
6201
- }
6193
+ const Fi = Ii.exports, Hi = /* @__PURE__ */ _e({
6194
+ __name: "DocumentIcon",
6195
+ props: {
6196
+ isPlaceholder: { type: Boolean, default: !1 },
6197
+ isAdd: { type: Boolean, default: !1 },
6198
+ compact: { type: Boolean, default: !1 },
6199
+ thumbnail: { default: "" },
6200
+ media: null,
6201
+ name: { default: "" }
6202
+ },
6203
+ emits: ["triggerOpenTemplate"],
6204
+ setup(i, { emit: e }) {
6205
+ const t = i, a = () => e("triggerOpenTemplate"), s = Le(), n = $e(), o = y(() => n.style), l = y(() => n.staticClass), r = y(() => n.class), c = y(() => n.key), g = y(() => n.attrs), S = y(
6206
+ () => m.t("_common:empty", { thing: m.t("_common:template") })
6207
+ ), M = y(() => Se(t.name, 60));
6208
+ return { __sfc: !0, props: t, emit: e, handleClick: a, slots: s, data: n, staticStyle: o, staticClass: l, styleClass: r, key: c, attrs: g, emptyTempleTitle: S, docTempleTitle: M, BlockMedia: lt };
6202
6209
  }
6203
- };
6204
- var Mi = function(e, t) {
6205
- return e("div", t._b({ key: t.data.key, staticClass: "item", class: [
6206
- t.data.staticClass,
6207
- t.data.class,
6210
+ });
6211
+ var Ai = function() {
6212
+ var e = this, t = e._self._c, a = e._self._setupProxy;
6213
+ return t("div", e._b({ key: a.key, staticClass: "item", class: [
6214
+ a.staticClass,
6215
+ a.styleClass,
6208
6216
  {
6209
- "is-placeholder": t.props.isPlaceholder,
6210
- "is-add": t.props.isAdd,
6211
- "is-compact": t.props.compact
6217
+ "is-placeholder": e.isPlaceholder,
6218
+ "is-add": e.isAdd,
6219
+ "is-compact": e.compact
6212
6220
  }
6213
- ], style: t.data.staticStyle, on: { click: function(a) {
6214
- t.listeners.click && t.listeners.click();
6215
- } } }, "div", t.data.attrs, !1), [e("div", { staticClass: "item-paper" }, [t.props.thumbnail ? e("div", { staticStyle: { width: "100%", height: "100%", "background-size": "100% auto", "background-repeat": "no-repeat", "background-position": "0% 0%" }, style: {
6216
- backgroundImage: `url(${t.props.thumbnail})`
6217
- } }) : t.props.isPlaceholder || t.props.isAdd ? t._e() : e(t.injections.components.BlockMedia, { tag: "component", staticClass: "item-media", attrs: { media: t.props.media, preview: "" } }), t.scopedSlots.badge ? e("div", { staticClass: "absolute bottom-2 right-2" }, [t._t("badge")], 2) : t._e(), t.props.isAdd ? e("div", { staticClass: "add-button" }, [e("CIcon", { attrs: { size: 18, "stroke-width": 3, type: "plus" } })], 1) : t._e()], 1), e("div", { staticClass: "item-footer" }, [t.props.isAdd ? e("div", { staticClass: "item-text", staticStyle: { color: "hsl(0, 0%, 55%)" }, domProps: { textContent: t._s(
6218
- t.parent.$t("_common:empty", { thing: t.parent.$t("_common:template") })
6219
- ) } }) : t.props.name ? [e("div", { staticClass: "item-text", domProps: { textContent: t._s(t.$options.truncate(t.props.name, 60)) } }), t._t("default")] : t._e()], 2)]);
6220
- }, Ii = [], Fi = /* @__PURE__ */ d(
6221
- Bi,
6222
- Mi,
6223
- Ii,
6224
- !0,
6221
+ ], style: a.staticStyle, on: { click: a.handleClick } }, "div", a.attrs, !1), [t("div", { staticClass: "item-paper" }, [e.thumbnail ? t("div", { staticStyle: { width: "100%", height: "100%", "background-size": "100% auto", "background-repeat": "no-repeat", "background-position": "0% 0%" }, style: {
6222
+ backgroundImage: `url(${e.thumbnail})`
6223
+ } }) : e.isPlaceholder || e.isAdd ? e._e() : t(a.BlockMedia, { staticClass: "item-media", attrs: { media: e.media, preview: "" } }), a.slots.badge ? t("div", { staticClass: "absolute bottom-2 right-2" }, [e._t("badge")], 2) : e._e(), e.isAdd ? t("div", { staticClass: "add-button" }, [t("CIcon", { attrs: { size: 18, "stroke-width": 3, type: "plus" } })], 1) : e._e()], 1), t("div", { staticClass: "item-footer" }, [e.isAdd ? t("div", { staticClass: "item-text", staticStyle: { color: "hsl(0, 0%, 55%)" }, domProps: { textContent: e._s(a.emptyTempleTitle) } }) : e.name ? [t("div", { staticClass: "item-text", domProps: { textContent: e._s(a.docTempleTitle) } }), e._t("default")] : e._e()], 2)]);
6224
+ }, Pi = [], Ei = /* @__PURE__ */ d(
6225
+ Hi,
6226
+ Ai,
6227
+ Pi,
6228
+ !1,
6225
6229
  null,
6226
- "c3016d8f"
6230
+ "b9a00284"
6227
6231
  );
6228
- const Hi = Fi.exports, Ai = {
6232
+ const zi = Ei.exports, Zi = {
6229
6233
  name: "HorizontalScroll",
6230
6234
  components: {
6231
- Simplebar: k
6235
+ Simplebar: _
6232
6236
  },
6233
6237
  data() {
6234
6238
  return {
@@ -6280,7 +6284,7 @@ const Hi = Fi.exports, Ai = {
6280
6284
  }
6281
6285
  }
6282
6286
  };
6283
- var Pi = function() {
6287
+ var Oi = function() {
6284
6288
  var e = this, t = e._self._c;
6285
6289
  return t("div", { ref: "container", staticClass: "horizontal-scroll" }, [t("div", { staticClass: "hl-navigation" }, [e.hasPrev ? t("div", { staticClass: "hl-btn-left max-sm:hidden", on: { click: function(a) {
6286
6290
  return e.go(-1);
@@ -6293,16 +6297,16 @@ var Pi = function() {
6293
6297
  return e.$emit("expand");
6294
6298
  } } })];
6295
6299
  })], 2) : e._e()]), t("div", { staticClass: "hl-container" }, [t("Simplebar", { ref: "list", staticClass: "hl-list", on: { scroll: e.scrollHandler } }, [t("div", { staticClass: "flex w-full" }, [e._t("default")], 2)])], 1)]);
6296
- }, Ei = [], zi = /* @__PURE__ */ d(
6297
- Ai,
6298
- Pi,
6299
- Ei,
6300
+ }, Ui = [], Ri = /* @__PURE__ */ d(
6301
+ Zi,
6302
+ Oi,
6303
+ Ui,
6300
6304
  !1,
6301
6305
  null,
6302
6306
  "31e10485"
6303
6307
  );
6304
- const Zi = zi.exports;
6305
- function Ui(i, { availableProducts: e }) {
6308
+ const Gi = Ri.exports;
6309
+ function Wi(i, { availableProducts: e }) {
6306
6310
  if (!i)
6307
6311
  throw new Error("Missing parameter templateId");
6308
6312
  const t = e, a = Object.keys(t).find((s) => {
@@ -6315,10 +6319,10 @@ function Ui(i, { availableProducts: e }) {
6315
6319
  });
6316
6320
  return a ? t[a] : null;
6317
6321
  }
6318
- async function Oi(i) {
6322
+ async function qi(i) {
6319
6323
  if (!i)
6320
6324
  throw new Error("Missing argument stripeProduct");
6321
- const e = i == null ? void 0 : i.prices[0], { data: t } = await _e.createCheckoutSession({
6325
+ const e = i == null ? void 0 : i.prices[0], { data: t } = await Te.createCheckoutSession({
6322
6326
  items: [
6323
6327
  {
6324
6328
  stripePriceStripeId: e.stripeId,
@@ -6330,27 +6334,27 @@ async function Oi(i) {
6330
6334
  }), { redirectUrl: a } = t;
6331
6335
  window.open(a, "_blank");
6332
6336
  }
6333
- function ee(i, { availableProducts: e }) {
6337
+ function ie(i, { availableProducts: e }) {
6334
6338
  var s, n, o;
6335
6339
  let t = null;
6336
- const a = Ui(i.templateId, {
6340
+ const a = Wi(i.templateId, {
6337
6341
  availableProducts: e
6338
6342
  });
6339
6343
  return a && (t = {
6340
- price: U((s = a == null ? void 0 : a.prices) == null ? void 0 : s[0].amount, {
6344
+ price: R((s = a == null ? void 0 : a.prices) == null ? void 0 : s[0].amount, {
6341
6345
  currency: (n = a == null ? void 0 : a.prices) == null ? void 0 : n[0].currency
6342
6346
  }),
6343
6347
  isPurchased: ((o = i.purchaseInfo) == null ? void 0 : o.isPurchased) || !1,
6344
- onBuy: async () => Oi(a)
6348
+ onBuy: async () => qi(a)
6345
6349
  }), t;
6346
6350
  }
6347
- const Ri = {
6351
+ const Ni = {
6348
6352
  name: "GalleryTemplateModal",
6349
6353
  components: {
6350
- simplebar: k,
6351
- DocumentLayout: Re,
6352
- IsPremium: L,
6353
- IsPremiumPreStep: _
6354
+ simplebar: _,
6355
+ DocumentLayout: Ne,
6356
+ IsPremium: $,
6357
+ IsPremiumPreStep: L
6354
6358
  },
6355
6359
  props: {
6356
6360
  // Instance of template
@@ -6412,13 +6416,13 @@ const Ri = {
6412
6416
  };
6413
6417
  },
6414
6418
  computed: {
6415
- ...g({
6419
+ ...C({
6416
6420
  isLoading: "templates/isPosting",
6417
6421
  stripeProducts: "stripe/products",
6418
6422
  isSuperUser: "application/isSuperUser"
6419
6423
  }),
6420
6424
  previewDocument() {
6421
- const { data: i, defaultData: e } = this.template, t = new W({
6425
+ const { data: i, defaultData: e } = this.template, t = new N({
6422
6426
  data: {
6423
6427
  ...e,
6424
6428
  template: i,
@@ -6434,7 +6438,7 @@ const Ri = {
6434
6438
  }
6435
6439
  },
6436
6440
  created() {
6437
- this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn = Le.on(
6441
+ this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn = De.on(
6438
6442
  "event",
6439
6443
  async ({ type: i, action: e, data: t }) => {
6440
6444
  var a;
@@ -6447,7 +6451,7 @@ const Ri = {
6447
6451
  isVisibleApp: !0,
6448
6452
  includePurchaseInfo: !0
6449
6453
  }, o = await this.fetchGallery(n);
6450
- this.privateProduct = ee(
6454
+ this.privateProduct = ie(
6451
6455
  o[0],
6452
6456
  { availableProducts: this.stripeProducts }
6453
6457
  );
@@ -6463,7 +6467,7 @@ const Ri = {
6463
6467
  const i = this.template.id;
6464
6468
  i || (this.templateStat = null);
6465
6469
  try {
6466
- const { data: e } = await $e.get(i);
6470
+ const { data: e } = await Ve.get(i);
6467
6471
  this.templateStat = e;
6468
6472
  } catch {
6469
6473
  this.templateStat = null;
@@ -6480,11 +6484,11 @@ const Ri = {
6480
6484
  },
6481
6485
  async copyToClipboard(i) {
6482
6486
  const e = `${f.baseUrl}/template/${i}`;
6483
- await q(e) && H("info", this.$t("copyMessage"));
6487
+ await j(e) && P("info", this.$t("copyMessage"));
6484
6488
  }
6485
6489
  }
6486
6490
  };
6487
- var Gi = function() {
6491
+ var ji = function() {
6488
6492
  var a;
6489
6493
  var e = this, t = e._self._c;
6490
6494
  return t("div", { staticClass: "template-modal font-inter bg-gray-200" }, [t("div", { staticStyle: { "background-color": "white", "border-radius": "1em", overflow: "auto", border: "10px solid white", flex: "1 1 auto", "min-height": "0" } }, [t("simplebar", { staticClass: "h-full w-full", attrs: { "data-simplebar-auto-hide": "false" } }, [e.previewDocument ? t("DocumentLayout", { attrs: { document: e.previewDocument } }) : e._e(), e.product && !e.privateProduct.isPurchased ? t("style", { tag: "component" }, [e._v(" .ProseMirror > * + * { filter: blur(8px); user-select: none; pointer-events: none; } ")]) : e._e()], 1)], 1), t("div", { staticStyle: { flex: "0 1 300px", padding: "2em 1em 3em 2em", "font-size": "18px" } }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [t("div", { staticStyle: { "font-size": "21px", "font-weight": "800", color: "hsl(0, 0%, 0%)" } }, [e._v(" " + e._s(e.meta.name) + " ")]), t("div", { staticStyle: { "font-weight": "400", "font-size": "14px", "min-height": "30px", color: "hsl(0, 0%, 27%)" } }, [(a = e.templateStat) != null && a.usedTimes ? [e._v(" " + e._s(e.$t("_common:used").capitalize()) + " " + e._s(e.templateStat.usedTimes) + " " + e._s(e.$t("_common:times", { count: e.templateStat.usedTimes })) + " ")] : e._e()], 2), t("div", { staticStyle: { hyphens: "auto" } }, [e._v(" " + e._s(e.meta.text) + " ")]), e.meta.author ? t("div", { staticClass: "flex items-center", staticStyle: { "padding-top": "1.5em" } }, [t("div", { staticStyle: { "background-color": "#03f", "border-radius": "50%", width: "2.5em", height: "2.5em", "background-size": "cover", "background-position": "center", "background-repeat": "no-repeat" }, style: {
@@ -6507,15 +6511,15 @@ var Gi = function() {
6507
6511
  } }]) }), e.allowCopyTemplateLink ? t("CButton", { attrs: { type: "none", "icon-left": "link", wide: "" }, on: { click: function(s) {
6508
6512
  return e.copyToClipboard(e.template.id);
6509
6513
  } } }, [e._v(" " + e._s(e.$t("_common:share", { thing: e.$t("_common:link") })) + " ")]) : e._e()], 2)])]);
6510
- }, Wi = [], qi = /* @__PURE__ */ d(
6511
- Ri,
6512
- Gi,
6513
- Wi,
6514
+ }, Ki = [], Yi = /* @__PURE__ */ d(
6515
+ Ni,
6516
+ ji,
6517
+ Ki,
6514
6518
  !1,
6515
6519
  null,
6516
6520
  "a4cb4a3f"
6517
6521
  );
6518
- const Ni = qi.exports, ji = {
6522
+ const Qi = Yi.exports, Ji = {
6519
6523
  name: "GalleryLogic",
6520
6524
  i18nOptions: {
6521
6525
  namespaces: "GalleryLogic",
@@ -6615,7 +6619,7 @@ const Ni = qi.exports, ji = {
6615
6619
  };
6616
6620
  },
6617
6621
  computed: {
6618
- ...g({
6622
+ ...C({
6619
6623
  stripeProducts: "stripe/products"
6620
6624
  }),
6621
6625
  galleryItems() {
@@ -6640,7 +6644,7 @@ const Ni = qi.exports, ji = {
6640
6644
  }
6641
6645
  },
6642
6646
  beforeCreate() {
6643
- this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", je);
6647
+ this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", Je);
6644
6648
  },
6645
6649
  async created() {
6646
6650
  var t, a, s, n;
@@ -6657,12 +6661,12 @@ const Ni = qi.exports, ji = {
6657
6661
  );
6658
6662
  this.selectGalleryItem(o);
6659
6663
  } catch (o) {
6660
- D(o);
6664
+ B(o);
6661
6665
  }
6662
6666
  },
6663
6667
  methods: {
6664
- ...w({
6665
- loadPrices: m.LOAD_PRICES
6668
+ ...b({
6669
+ loadPrices: h.LOAD_PRICES
6666
6670
  }),
6667
6671
  async loadTemplateGallery() {
6668
6672
  this.isLoading = !0;
@@ -6675,7 +6679,7 @@ const Ni = qi.exports, ji = {
6675
6679
  const e = await this.fetchGallery(i);
6676
6680
  this.templateGalleryItems = (e || []).map((t) => {
6677
6681
  if (this.canPurchase && t.isPurchasable) {
6678
- const a = ee(t, {
6682
+ const a = ie(t, {
6679
6683
  availableProducts: this.stripeProducts
6680
6684
  });
6681
6685
  a && (t.product = a);
@@ -6686,7 +6690,7 @@ const Ni = qi.exports, ji = {
6686
6690
  []
6687
6691
  );
6688
6692
  } catch (e) {
6689
- D(e);
6693
+ B(e);
6690
6694
  } finally {
6691
6695
  this.isLoading = !1;
6692
6696
  }
@@ -6699,7 +6703,7 @@ const Ni = qi.exports, ji = {
6699
6703
  isVisibleApp: !0,
6700
6704
  includePurchaseInfo: !0
6701
6705
  }, t = await this.fetchGallery(e), a = (n = t == null ? void 0 : t[0]) == null ? void 0 : n.templateId;
6702
- return a ? (Se(a), new Te(a)) : null;
6706
+ return a ? (Be(a), new Me(a)) : null;
6703
6707
  },
6704
6708
  onUseTemplate(i) {
6705
6709
  if (!i)
@@ -6722,7 +6726,7 @@ const Ni = qi.exports, ji = {
6722
6726
  fortnoxCom: "/img/fortnox/apple-touch-icon-180x180.png"
6723
6727
  };
6724
6728
  this.$modal.show(
6725
- Ni,
6729
+ Qi,
6726
6730
  {
6727
6731
  template: i,
6728
6732
  fetchGallery: this.fetchGallery,
@@ -6777,16 +6781,16 @@ const Ni = qi.exports, ji = {
6777
6781
  selectGalleryItem: this.selectGalleryItem
6778
6782
  });
6779
6783
  }
6780
- }, Ki = null, Yi = null;
6781
- var Qi = /* @__PURE__ */ d(
6782
- ji,
6783
- Ki,
6784
- Yi,
6784
+ }, Xi = null, ea = null;
6785
+ var ta = /* @__PURE__ */ d(
6786
+ Ji,
6787
+ Xi,
6788
+ ea,
6785
6789
  !1,
6786
6790
  null,
6787
6791
  null
6788
6792
  );
6789
- const Ji = Qi.exports, Xi = {
6793
+ const ia = ta.exports, aa = {
6790
6794
  i18nOptions: {
6791
6795
  namespaces: "TemplateSelector",
6792
6796
  messages: {
@@ -6830,13 +6834,13 @@ const Ji = Qi.exports, Xi = {
6830
6834
  },
6831
6835
  name: "TemplateSelector",
6832
6836
  components: {
6833
- HorizontalScroll: Zi,
6834
- DocumentIcon: Hi,
6835
- DocumentRecent: Vi,
6836
- GalleryLogic: Ji,
6837
- IsPremiumPreStep: _
6837
+ HorizontalScroll: Gi,
6838
+ DocumentIcon: zi,
6839
+ DocumentRecent: Fi,
6840
+ GalleryLogic: ia,
6841
+ IsPremiumPreStep: L
6838
6842
  },
6839
- mixins: [x],
6843
+ mixins: [w],
6840
6844
  props: {
6841
6845
  // Used for creating documents form project/client views
6842
6846
  projectId: {
@@ -6887,7 +6891,7 @@ const Ji = Qi.exports, Xi = {
6887
6891
  };
6888
6892
  },
6889
6893
  computed: {
6890
- ...g({
6894
+ ...C({
6891
6895
  canFeature: "application/feature",
6892
6896
  templateById: "templates/byId",
6893
6897
  isFetchingTemplates: "templates/isFetching",
@@ -6933,11 +6937,11 @@ const Ji = Qi.exports, Xi = {
6933
6937
  this.loadTemplates();
6934
6938
  },
6935
6939
  methods: {
6936
- ...w({
6937
- loadTemplatesAction: m.LOAD_TEMPLATES,
6938
- loadTemplate: m.LOAD_TEMPLATE,
6939
- createTemplate: m.DO_CREATE_TEMPLATE,
6940
- removeTemplate: m.REMOVE_TEMPLATE
6940
+ ...b({
6941
+ loadTemplatesAction: h.LOAD_TEMPLATES,
6942
+ loadTemplate: h.LOAD_TEMPLATE,
6943
+ createTemplate: h.DO_CREATE_TEMPLATE,
6944
+ removeTemplate: h.REMOVE_TEMPLATE
6941
6945
  }),
6942
6946
  loadTemplates() {
6943
6947
  const i = {};
@@ -6954,7 +6958,7 @@ const Ji = Qi.exports, Xi = {
6954
6958
  },
6955
6959
  async saveTemplate(i) {
6956
6960
  try {
6957
- const { data: e } = i, t = De(e, [
6961
+ const { data: e } = i, t = Ie(e, [
6958
6962
  "_id",
6959
6963
  "id",
6960
6964
  "companyId",
@@ -6962,13 +6966,13 @@ const Ji = Qi.exports, Xi = {
6962
6966
  ]);
6963
6967
  return await this.createTemplate({ body: t }), !0;
6964
6968
  } catch (e) {
6965
- D(e);
6969
+ B(e);
6966
6970
  }
6967
6971
  return !1;
6968
6972
  },
6969
6973
  async openTemplateFormModal({ document: i = null, template: e = null }) {
6970
6974
  this.$modal.show(
6971
- X,
6975
+ te,
6972
6976
  {
6973
6977
  document: i,
6974
6978
  template: e,
@@ -6985,7 +6989,7 @@ const Ji = Qi.exports, Xi = {
6985
6989
  );
6986
6990
  },
6987
6991
  async fetchGallery(i = {}) {
6988
- const { data: e } = await Ve.get(i);
6992
+ const { data: e } = await Fe.get(i);
6989
6993
  return e;
6990
6994
  },
6991
6995
  canUseTemplate(i) {
@@ -6993,17 +6997,17 @@ const Ji = Qi.exports, Xi = {
6993
6997
  },
6994
6998
  async copyToClipboard(i) {
6995
6999
  const e = `${f.baseUrl}/template/${i}`;
6996
- await q(e) && H("info", this.$t("copyMessage"));
7000
+ await j(e) && P("info", this.$t("copyMessage"));
6997
7001
  }
6998
7002
  }
6999
7003
  };
7000
- var ea = function() {
7004
+ var sa = function() {
7001
7005
  var e = this, t = e._self._c;
7002
7006
  return t("div", { staticClass: "h-full w-full overflow-y-auto rounded-2xl bg-white px-4 pb-10 pt-10 md:px-10 md:pt-16" }, [t("div", { staticClass: "font-inter form-start main mx-auto max-w-5xl", class: { small: e.mq === "sm" } }, [e._t("header"), t("div", { staticStyle: { width: "100%", "padding-bottom": "5em" } }, [t("div", { staticClass: "section-title" }, [t("div", [e._v(e._s(e.$t("myTemplates")))]), t("div", { staticClass: "section-subtitle" }, [e._v(" " + e._s(e.$t("myTemplatesSubTitle")) + " ")])]), t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: a }) {
7003
7007
  return [t(e.isExpanded ? "div" : "HorizontalScroll", { tag: "component", staticClass: "template-list", class: { "is-expanded": e.isExpanded }, on: { expand: function(s) {
7004
7008
  e.isExpanded = !0;
7005
7009
  } } }, e._l(e.myTemplates, function(s) {
7006
- return t("DocumentIcon", { key: s.id, staticClass: "template-item", attrs: { "is-add": s.id === "empty", "is-placeholder": s.placeholder, media: s.defaultMedia || e.fallbackMedia, thumbnail: s.thumbnailUrl, name: s.name }, on: { click: function(n) {
7010
+ return t("DocumentIcon", { key: s.id, staticClass: "template-item", attrs: { "is-add": s.id === "empty", "is-placeholder": s.placeholder, media: s.defaultMedia || e.fallbackMedia, thumbnail: s.thumbnailUrl, name: s.name }, on: { triggerOpenTemplate: function(n) {
7007
7011
  s.placeholder || (e.canUseTemplate(s) ? e.select({ templateId: s.id }) : a());
7008
7012
  } } }, [e.canUseTemplate(s) ? !s.doConsumeDocumentQuota && !s.placeholder ? t("div", { staticClass: "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", attrs: { slot: "badge" }, slot: "badge" }, [e._v(" " + e._s(e.$t("_common:free")) + " ")]) : e._e() : t("div", { staticClass: "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", attrs: { slot: "badge" }, slot: "badge" }, [t("CIcon", { attrs: { type: "lock", size: "12", "stroke-width": "2.5" } }), t("div", { staticClass: "text-[11px] font-semibold" }, [e._v("Pro")])], 1), s.onModify === "create" && !s.doConsumeDocumentQuota ? t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
7009
7013
  content: e.$t("icon.freeTooltip"),
@@ -7039,40 +7043,40 @@ var ea = function() {
7039
7043
  return o(r);
7040
7044
  } } }, [e._v(" " + e._s(r.label) + " ")]);
7041
7045
  })], 2)], 1), t("div", { staticClass: "section-subtitle", domProps: { innerHTML: e._s(e.$t("gallerySubTitle")) } })]), t("HorizontalScroll", { staticClass: "template-list" }, e._l(a, function(r) {
7042
- return t("DocumentIcon", { key: r.id, staticClass: "template-item", attrs: { "is-placeholder": r.placeholder, media: { type: "image", resourceUrl: r.backgroundUrl }, name: r.name }, on: { click: function(c) {
7046
+ return t("DocumentIcon", { key: r.id, staticClass: "template-item", attrs: { "is-placeholder": r.placeholder, media: { type: "image", resourceUrl: r.backgroundUrl }, name: r.name }, on: { triggerOpenTemplate: function(c) {
7043
7047
  r.placeholder || l(r);
7044
7048
  } } }, [r.product ? t("div", { staticClass: "bg-primary-500 border-primary-700/40 rounded border p-1 text-xs font-semibold leading-none text-white shadow-lg", attrs: { slot: "badge" }, slot: "badge" }, [r.product.isPurchased ? t("CIcon", { attrs: { type: "check", size: "14", "stroke-width": "3" } }) : t("div", { domProps: { textContent: e._s(r.product.price) } })], 1) : e._e()]);
7045
7049
  }), 1)], 1)];
7046
- } }], null, !1, 3171552362) })] : e._e(), t("DocumentRecent", { staticStyle: { width: "100%", "padding-bottom": "5em" }, on: { "use-doc-template": e.select, "save-template": e.openTemplateFormModal } }, [t("div", { staticClass: "section-title", staticStyle: { flex: "1 1 auto", "padding-bottom": "0.5em" } }, [t("div", [e._v(e._s(e.$t("recent")))]), t("div", { staticClass: "section-subtitle" }, [e._v(" " + e._s(e.$t("recentSubTitle")) + " ")])])])], 2)]);
7047
- }, ta = [], ia = /* @__PURE__ */ d(
7048
- Xi,
7049
- ea,
7050
- ta,
7050
+ } }], null, !1, 2475160184) })] : e._e(), t("DocumentRecent", { staticStyle: { width: "100%", "padding-bottom": "5em" }, on: { "use-doc-template": e.select, "save-template": e.openTemplateFormModal } }, [t("div", { staticClass: "section-title", staticStyle: { flex: "1 1 auto", "padding-bottom": "0.5em" } }, [t("div", [e._v(e._s(e.$t("recent")))]), t("div", { staticClass: "section-subtitle" }, [e._v(" " + e._s(e.$t("recentSubTitle")) + " ")])])])], 2)]);
7051
+ }, na = [], oa = /* @__PURE__ */ d(
7052
+ aa,
7053
+ sa,
7054
+ na,
7051
7055
  !1,
7052
7056
  null,
7053
- "5c1a776a"
7057
+ "6422a84b"
7054
7058
  );
7055
- const aa = ia.exports;
7056
- var sa = Be, na = Me, oa = Ie;
7057
- function la(i, e, t) {
7059
+ const la = oa.exports;
7060
+ var ra = He, ca = Ae, da = Pe;
7061
+ function pa(i, e, t) {
7058
7062
  for (var a = -1, s = e.length, n = {}; ++a < s; ) {
7059
- var o = e[a], l = sa(i, o);
7060
- t(l, o) && na(n, oa(o, i), l);
7063
+ var o = e[a], l = ra(i, o);
7064
+ t(l, o) && ca(n, da(o, i), l);
7061
7065
  }
7062
7066
  return n;
7063
7067
  }
7064
- var ra = la, ca = ra, da = Fe;
7065
- function pa(i, e) {
7066
- return ca(i, e, function(t, a) {
7067
- return da(i, a);
7068
+ var ua = pa, ma = ua, ha = Ee;
7069
+ function fa(i, e) {
7070
+ return ma(i, e, function(t, a) {
7071
+ return ha(i, a);
7068
7072
  });
7069
7073
  }
7070
- var ua = pa, ma = ua, ha = Qe, fa = ha(function(i, e) {
7071
- return i == null ? {} : ma(i, e);
7072
- }), ga = fa;
7073
- const Ca = /* @__PURE__ */ G(ga);
7074
- A.use(tt);
7075
- const va = {
7074
+ var ga = fa, Ca = ga, va = tt, ya = va(function(i, e) {
7075
+ return i == null ? {} : Ca(i, e);
7076
+ }), xa = ya;
7077
+ const wa = /* @__PURE__ */ q(xa);
7078
+ E.use(nt);
7079
+ const ba = {
7076
7080
  name: "DocForm",
7077
7081
  i18nOptions: {
7078
7082
  namespaces: "widgetDocForm",
@@ -7086,9 +7090,9 @@ const va = {
7086
7090
  }
7087
7091
  },
7088
7092
  components: {
7089
- TemplateSelector: aa,
7090
- DocumentForm: Li,
7091
- PostSend: rt
7093
+ TemplateSelector: la,
7094
+ DocumentForm: Di,
7095
+ PostSend: ut
7092
7096
  },
7093
7097
  provide() {
7094
7098
  return {
@@ -7151,7 +7155,7 @@ const va = {
7151
7155
  };
7152
7156
  },
7153
7157
  computed: {
7154
- ...He({
7158
+ ...ze({
7155
7159
  company: "application/company",
7156
7160
  feature: "application/feature",
7157
7161
  can: "application/can",
@@ -7184,18 +7188,18 @@ const va = {
7184
7188
  (!this.rawDoc || (i = this.rawDoc) != null && i.__isNew) && (this.view = "templateSelect");
7185
7189
  },
7186
7190
  methods: {
7187
- ...Ae({
7188
- removeFormKeyValue: m.REMOVE_FORM_KEY_VALUE,
7189
- loadDocumentForm: m.LOAD_DOCUMENT2_FORM,
7190
- duplicateDocumentForm: m.LOAD_DUPLICATE_DOCUMENT2_FORM,
7191
- saveDocument: m.SAVE_DYNDOC_FORM,
7192
- loadCompanyUser: m.LOAD_COMPANY_USER,
7193
- saveTemplate: m.SAVE_TEMPLATE_FORM
7191
+ ...Ze({
7192
+ removeFormKeyValue: h.REMOVE_FORM_KEY_VALUE,
7193
+ loadDocumentForm: h.LOAD_DOCUMENT2_FORM,
7194
+ duplicateDocumentForm: h.LOAD_DUPLICATE_DOCUMENT2_FORM,
7195
+ saveDocument: h.SAVE_DYNDOC_FORM,
7196
+ loadCompanyUser: h.LOAD_COMPANY_USER,
7197
+ saveTemplate: h.SAVE_TEMPLATE_FORM
7194
7198
  }),
7195
7199
  async initDoc() {
7196
7200
  if (!this.rawDoc)
7197
7201
  throw new Error("Missing initiated form document");
7198
- this.document = new W({
7202
+ this.document = new N({
7199
7203
  data: this.rawDoc,
7200
7204
  can: this.can,
7201
7205
  getters: this.$store.getters,
@@ -7204,7 +7208,7 @@ const va = {
7204
7208
  },
7205
7209
  async onTemplateSelect({ templateId: i, documentId: e, formData: t }) {
7206
7210
  var s;
7207
- const a = Ca({ ...this.rawDoc }, [
7211
+ const a = wa({ ...this.rawDoc }, [
7208
7212
  "__tempId",
7209
7213
  "externalReferences",
7210
7214
  "subscriberCompanyUserIds",
@@ -7216,7 +7220,7 @@ const va = {
7216
7220
  _formData: a
7217
7221
  }) : await this.loadDocumentForm({
7218
7222
  templateId: i,
7219
- formData: t ? Pe(t, a) : null,
7223
+ formData: t ? Oe(t, a) : null,
7220
7224
  _formData: a
7221
7225
  }), (s = a == null ? void 0 : a.data) != null && s.name && this.setDocValue({ key: "data.name", value: a.data.name }), await this.initDoc(), this.view = "editor";
7222
7226
  },
@@ -7251,23 +7255,23 @@ const va = {
7251
7255
  this.view = "templateSelect", this.setDocValue({ key: "__isNew", value: !0 });
7252
7256
  },
7253
7257
  isManualDelivery(i) {
7254
- const e = I(i);
7258
+ const e = H(i);
7255
7259
  return !e.sms && !e.email;
7256
7260
  }
7257
7261
  }
7258
7262
  };
7259
- var ya = function() {
7263
+ var ka = function() {
7260
7264
  var e = this, t = e._self._c;
7261
7265
  return t("div", { staticClass: "flex h-full w-full flex-col" }, [e.view === "templateSelect" ? t("div", { staticClass: "flex h-full w-full flex-col" }, [t("div", { staticClass: "relative flex h-16 items-center justify-center border-b border-gray-200" }, [e.closeFunc ? t("CButton", { staticClass: "absolute left-4 top-1/2 -translate-y-1/2", attrs: { icon: "x", circle: "" }, on: { click: e.closeFunc } }) : e._e(), t("div", [e._v(e._s(e.$t("selectNavTitle")))])], 1), t("TemplateSelector", { staticClass: "body-scroll min-h-0", attrs: { "on-use-template": e.onTemplateSelect, "show-gallery": e.feature("templateGallery"), "show-gallery-template-author": !1, "gallery-category": e.galleryCategory, "on-save-template": e.onSaveTemplate, "include-partner-templates": "" } })], 1) : e.view === "editor" ? t("DocumentForm", { attrs: { document: e.document, "set-doc-value": e.setDocValue, "set-form-value": e.setFormValue, "remove-doc-value": e.removeDocValue, "remove-doc-key-value": e.removeDocKeyValue, "on-save-template": e.onSaveTemplate, "on-save-document": e.onSaveDocument, "is-loading": e.isPosting, close: e.closeFunc, "go-back": !e.document.id && e.showBackButton ? e.goBack : null, "can-show-banner": !1 } }, [e.isEditingTemplate ? t("CButton", { staticClass: "d-nav-button position right save-template-button", staticStyle: { "min-width": "6em", "font-size": "16px" }, attrs: { slot: "nav-right-action", loading: e.isSavingTemplate, disabled: !e.canDoActions, "icon-left": "template", type: "secondary", thinner: "", rounded: "" }, on: { click: e.onSaveTemplateClick }, slot: "nav-right-action" }, [e._v(" " + e._s(e.$t("_common:save", { thing: e.$t("_common:template") })) + " ")]) : e._e()], 1) : e.view === "postSend" ? t("PostSend", { attrs: { document: e.document, "on-send-func": e.closeFunc, "on-close-func": e.closeFunc } }) : e._e()], 1);
7262
- }, xa = [], wa = /* @__PURE__ */ d(
7263
- va,
7264
- ya,
7265
- xa,
7266
+ }, _a = [], La = /* @__PURE__ */ d(
7267
+ ba,
7268
+ ka,
7269
+ _a,
7266
7270
  !1,
7267
7271
  null,
7268
7272
  "2c3d4461"
7269
7273
  );
7270
- const Ga = wa.exports;
7274
+ const ja = La.exports;
7271
7275
  export {
7272
- Ga as default
7276
+ ja as default
7273
7277
  };