@cling-se/widget 0.15.3 → 0.15.5

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 (134) hide show
  1. package/README.md +43 -43
  2. package/dist/{AddClientCallout-8s5a1_CZ.js → AddClientCallout-CrZF5j7A.js} +15 -13
  3. package/dist/{AnswerModal-Cnp43tGo.js → AnswerModal-C3r9vyki.js} +71 -71
  4. package/dist/{AttachmentItem-BP85gcjP.js → AttachmentItem-BVXrxCnv.js} +17 -12
  5. package/dist/{BaseDatePicker-C27CsTzy.js → BaseDatePicker-DxL2l3QC.js} +2 -2
  6. package/dist/{BaseUpload-DnhS3hGx.js → BaseUpload-B7259IaQ.js} +3 -3
  7. package/dist/{BlockMedia-D4nhek2s.js → BlockMedia-BSKtZMwa.js} +2 -2
  8. package/dist/{CCallout-CQjRcxpC.js → CCallout-BNvM6gNJ.js} +4 -5
  9. package/dist/{CCurrencyDropdown-BT01qBGg.js → CCurrencyDropdown-xmqmb8gW.js} +4 -4
  10. package/dist/{CDropdownItem-BSPNul90.js → CDropdownItem-DiLisSei.js} +139 -37
  11. package/dist/{CFormField-Cz_jNazS.js → CFormField-DcZVdj3a.js} +3 -4
  12. package/dist/{CPhoneFormat-C017AoM0.js → CPhoneFormat-BeYxRN0i.js} +1 -1
  13. package/dist/CPhoneInput-UzZkxbC6.js +138 -0
  14. package/dist/{CPriceInput-jktMjvwx.js → CPriceInput-C2y_3PM7.js} +2 -2
  15. package/dist/CSelect-BmP1UsQA.js +91 -0
  16. package/dist/CSkeleton-BNbft-NE.js +55 -0
  17. package/dist/ClientAutocomplete-BnredOme.js +438 -0
  18. package/dist/{ClientModal-DLtFhJya.js → ClientModal-DNcf4APF.js} +77 -42
  19. package/dist/{ColorPicker-MQmVGbvm.js → ColorPicker-BupC4jvI.js} +2 -2
  20. package/dist/{CompanyModal-Qx5xMku0.js → CompanyModal-Bh8mEHE1.js} +25 -19
  21. package/dist/{ContentWrapper-B9NQqp2q.js → ContentWrapper-Bs3nrJda.js} +11 -11
  22. package/dist/CoverBlockSettings-WYZsCdky.js +659 -0
  23. package/dist/{DocAnswer-BlxFv_Gc.js → DocAnswer--FfsnnTB.js} +2 -2
  24. package/dist/{DocDetails-dGcYGJpp.js → DocDetails-Ce7bj-qO.js} +10 -10
  25. package/dist/{DocForm-C6o_XBcW.js → DocForm-FR_Vlq_C.js} +512 -498
  26. package/dist/{DocFormSend-_prtxNIf.js → DocFormSend-DcSv3JNg.js} +14 -15
  27. package/dist/{DocLinks-Dp495SCS.js → DocLinks-Bvhc62aJ.js} +2 -2
  28. package/dist/{DocModalBase-B0wYq3ft.js → DocModalBase-DkfUBRi3.js} +2 -2
  29. package/dist/{DocPrint-CURxofeU.js → DocPrint-BrKY6rOy.js} +3 -3
  30. package/dist/{DocReceipt-DgGcBRVH.js → DocReceipt-oGrM6t_k.js} +25 -20
  31. package/dist/{DocSendReminder-CPty4svi.js → DocSendReminder-veEC_yHK.js} +19 -16
  32. package/dist/{DocTextEditor-BYsXFRLg.js → DocTextEditor-CNRwxPEx.js} +13 -15
  33. package/dist/{DocTimeline-CHg1QykR.js → DocTimeline-e2Xf_QZ7.js} +36 -34
  34. package/dist/{DocumentClient-CZ6N73pQ.js → DocumentClient-Dx4Uyxkh.js} +5 -5
  35. package/dist/{DocumentLayout-CiszuoQc.js → DocumentLayout-DmjmsTcx.js} +1503 -1539
  36. package/dist/{DocumentLogotype-BgFCWcwC.js → DocumentLogotype-ddYHM9wn.js} +18 -15
  37. package/dist/{DocumentVoided-DT2hhHk2.js → DocumentVoided-WCk7XuxH.js} +1 -1
  38. package/dist/{EmbedInput-aLmvzK1I.js → EmbedInput-CMueXdFs.js} +25 -21
  39. package/dist/{EmbedSettings-BZipciy9.js → EmbedSettings-BRuLCWr0.js} +13 -11
  40. package/dist/{ErrorCallout-CNxSDsr_.js → ErrorCallout-CDtZceLU.js} +6 -6
  41. package/dist/{FilePreviewModal-DxdksQiy.js → FilePreviewModal-BzAUuY58.js} +3 -3
  42. package/dist/Flag-DkJgyDQK.js +46 -0
  43. package/dist/{HeaderSettings-DeoSRi6O.js → HeaderSettings-CoKK5Mbt.js} +155 -110
  44. package/dist/{ImageSelectModal-DvQz2VPi.js → ImageSelectModal-De64vGSr.js} +6 -6
  45. package/dist/{ImageUploadWrapper-CNQRdHF9.js → ImageUploadWrapper-CE6KTze0.js} +3 -3
  46. package/dist/{Index-PUFeH_1z.js → Index-50KxppUS.js} +4 -4
  47. package/dist/{Index-FC1UsElU.js → Index-B7vVIRFn.js} +7 -7
  48. package/dist/{Index-Cfc0Q0AG.js → Index-BUQ75xOU.js} +6 -6
  49. package/dist/{Index-CWj2vDHc.js → Index-BVKCCkQY.js} +49 -44
  50. package/dist/{Index-BglKAnNq.js → Index-BiGT3iEX.js} +7 -7
  51. package/dist/{Index-B3Q09phm.js → Index-BoDKKVvL.js} +4 -4
  52. package/dist/{Index-Ch5j2tqD.js → Index-BotY9nbP.js} +2 -2
  53. package/dist/{Index-D-l3i9vY.js → Index-BwaJW9CY.js} +3 -3
  54. package/dist/{Index-BIv8flFB.js → Index-ByqCyUgx.js} +9 -9
  55. package/dist/{Index-B9_POjpY.js → Index-C7pge7E9.js} +23 -21
  56. package/dist/{Index-CJeSVpRh.js → Index-CBRJ-AZi.js} +2 -2
  57. package/dist/{Index-CePHdKi2.js → Index-CFQMtx5w.js} +5 -5
  58. package/dist/{Index-CXibuEkU.js → Index-CJKyHWiO.js} +15 -15
  59. package/dist/{Index-BDCgilFk.js → Index-CK_5l1kP.js} +2 -2
  60. package/dist/{Index-jIIHHGh3.js → Index-CLc_11Bc.js} +489 -471
  61. package/dist/{Index-D1NwTUs-.js → Index-CTokKHJA.js} +5 -5
  62. package/dist/Index-Cf45UGbc.js +28 -0
  63. package/dist/{Index-CjfCyQlB.js → Index-CfLPq-yA.js} +5 -5
  64. package/dist/{Index-CTk6Nh-I.js → Index-Ci7y3O0G.js} +7 -7
  65. package/dist/{Index-BEpKb8IR.js → Index-CmV8oF4Q.js} +4 -4
  66. package/dist/{Index-C-CE21WK.js → Index-CoRuYEYW.js} +5 -5
  67. package/dist/{Index-S3LqU0A0.js → Index-CtKNyVUB.js} +12 -10
  68. package/dist/{Index-BiVwDgqW.js → Index-DCf6_Zd2.js} +2 -2
  69. package/dist/{Index-3bD76d9q.js → Index-DGdlZzVO.js} +7 -7
  70. package/dist/{Index-CTqdaykO.js → Index-DbKB8sTh.js} +18 -12
  71. package/dist/{Index-BNJ2KHKc.js → Index-DgBOq2MJ.js} +3 -3
  72. package/dist/{Index-BeMeWDIf.js → Index-DvNxOHHu.js} +6 -6
  73. package/dist/{Index-CvRNeJ4U.js → Index-M2Mce2_m.js} +124 -123
  74. package/dist/{Index-CDKq7Fx6.js → Index-QMkjG7hk.js} +4 -4
  75. package/dist/{Index-q04Dwxrr.js → Index-QmX5pv-V.js} +7 -7
  76. package/dist/{Index-w5DWfGOc.js → Index-h5xDFYM9.js} +4 -4
  77. package/dist/{Index-CPjAXBMU.js → Index-hkGYloih.js} +5 -5
  78. package/dist/{Index-B0n1UOOA.js → Index-q3gLm4b1.js} +6 -6
  79. package/dist/{Index-BjdxeF4C.js → Index-sqI1TF7Z.js} +2 -2
  80. package/dist/{InputToggleRow-CvHvRdsn.js → InputToggleRow-DLFIMIdx.js} +2 -2
  81. package/dist/{ManualPopover-DxE-6-Sp.js → ManualPopover-Cf8DotlW.js} +1 -1
  82. package/dist/{MediaWrapper-DNi80fbw.js → MediaWrapper-BgWmA3kS.js} +3 -3
  83. package/dist/{NotBindingText-D2rYFVxr.js → NotBindingText-DhsHxvkX.js} +2 -2
  84. package/dist/{PackageGroup-6ar8HjPo.js → PackageGroup-EbOSxv69.js} +26 -20
  85. package/dist/PdfTerms-im6uTd5E.js +31 -0
  86. package/dist/{PdfViewer-B5qbLLtd.js → PdfViewer-DY0rcZjo.js} +5 -5
  87. package/dist/{PlainHtml-CIMtcn2F.js → PlainHtml-o031pfp-.js} +1 -1
  88. package/dist/{PriceHeader-BSpj_-5M.js → PriceHeader-NdFa0Sqs.js} +15 -15
  89. package/dist/{SearchApi-Cwgf52EV.js → SearchApi-Bw5E9IPj.js} +2 -2
  90. package/dist/SendForm-BDY5VDkS.js +1023 -0
  91. package/dist/{Setup-CRmiH9lD.js → Setup-BsYqPmOm.js} +1 -1
  92. package/dist/{SmartList-D6AvxfSL.js → SmartList-CP2wHig-.js} +1 -1
  93. package/dist/{TermsSettings-DEO1O460.js → TermsSettings-CUlSayCJ.js} +17 -12
  94. package/dist/{ThemeColorRow-Cy1NKEIG.js → ThemeColorRow-D3fav4Sl.js} +4 -4
  95. package/dist/{ToggleBinding-BvIUt1Jx.js → ToggleBinding-B715OVl2.js} +12 -10
  96. package/dist/{UploadModal-C1j-GeMD.js → UploadModal-THDJ-UNp.js} +6 -6
  97. package/dist/{VideoPlayerInput-BmbrquN6.js → VideoPlayerInput-Cm3KoRnR.js} +15 -11
  98. package/dist/{VideoPlayerSettings-B7HpBoWX.js → VideoPlayerSettings-BFAjczuw.js} +3 -3
  99. package/dist/{VideoSelectModal-CeaG2tME.js → VideoSelectModal-CzO8EMg9.js} +4 -4
  100. package/dist/{answerDocumentMixin-AcDG8Byi.js → answerDocumentMixin-D12xJRhx.js} +3 -3
  101. package/dist/{debounce-HJoaSvIY.js → debounce-DLiv1sQX.js} +16 -16
  102. package/dist/{focusDrawerMixin-CBYjpEGL.js → focusDrawerMixin-khaScuSu.js} +1 -1
  103. package/dist/{formDrawerState-DYSBcjo4.js → formDrawerState-CJ6kjaD_.js} +1 -1
  104. package/dist/{formValidationMixin-Dqlhg0R2.js → formValidationMixin-Bri1WflH.js} +1 -1
  105. package/dist/{index-zzCfHTf8.js → index-B0Zu30kF.js} +2 -2
  106. package/dist/{index-CFx0cpeM.js → index-C1Ngv-v3.js} +1 -1
  107. package/dist/{index-CKZmpLr6.js → index-CMT3coT-.js} +781 -2021
  108. package/dist/{index-CLOsPxCh.js → index-DJOUQneq.js} +35 -33
  109. package/dist/{index-CFwLDxbi.js → index-DLa3QER7.js} +18 -17
  110. package/dist/{index-CFe1BJZJ.js → index-Dygy9XlG.js} +1 -1
  111. package/dist/index.es.js +10 -10
  112. package/dist/index.umd.js +177 -173
  113. package/dist/{main-BIwKzAN8.js → main-U22_wtg0.js} +13008 -11358
  114. package/dist/{mapFormMixin-e2PJ431T.js → mapFormMixin-BZf4RJIE.js} +1 -1
  115. package/dist/omit-RBXmF_Fo.js +31 -0
  116. package/dist/{publicSenderState-D-_7UwjT.js → publicSenderState-DKuvxj4_.js} +1 -1
  117. package/dist/regions-BdZt9Srn.js +1250 -0
  118. package/dist/simplebar.min-Bnrne5ZK.js +71 -0
  119. package/dist/style.css +2 -2
  120. package/dist/{throttle-B2yMLA5N.js → throttle-Fkuqk26x.js} +2 -2
  121. package/dist/{tinycolor-vIxz4Xgi.js → tinycolor-BZ8wGctU.js} +1 -1
  122. package/dist/{tippy.esm-DiOYviyf.js → tippy.esm-BJe845c1.js} +208 -206
  123. package/dist/{utils-CFXqaEy7.js → utils-BOWVR87A.js} +1 -1
  124. package/dist/{vuedraggable.umd-DDT8qZBI.js → vuedraggable.umd-CJL8TWxZ.js} +1 -1
  125. package/package.json +2 -11
  126. package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
  127. package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
  128. package/dist/ClientAutocomplete-B3z6RPXr.js +0 -82
  129. package/dist/CoverBlockSettings-Bcz_W5I3.js +0 -275
  130. package/dist/Flag-3OyFDPsP.js +0 -114
  131. package/dist/Index-Cr6DlYGN.js +0 -21
  132. package/dist/PdfTerms-B-lbU_6H.js +0 -36
  133. package/dist/formComponentsInstall-DMoWrprH.js +0 -2505
  134. package/dist/omit-CpamclWf.js +0 -31
@@ -1,26 +1,29 @@
1
- import se from "./AnswerModal-Cnp43tGo.js";
2
- import { o as oe } from "./index-zzCfHTf8.js";
3
- import { w } from "./CDropdownItem-BSPNul90.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-BIwKzAN8.js";
1
+ import re from "./AnswerModal-C3r9vyki.js";
2
+ import { o as ce } from "./index-B0Zu30kF.js";
3
+ import { w, C as P, a as E } from "./CDropdownItem-DiLisSei.js";
4
+ import { b0 as H, g as h, n as d, c as f, b as u, d as de, b1 as pe, S as ue, D as W, i as T, aC as me, aT as x, ae as p, W as z, h as B, $ as m, b2 as he, b3 as fe, b4 as ge, b5 as Ce, b6 as ve, b7 as ye, V as q, aV as N, aW as j, I as U, b8 as I, aX as xe, b9 as we, t as K, ba as be, k as ke, l as Y, bb as _e, bc as Le, u as $e, bd as Se, y as Te, x as y, N as De, be as Ve, C as Q, bf as Be, bg as Me, U as J, bh as Ie, bi as Fe, aY as He, bj as Ae, bk as Pe, bl as Ee, a9 as ze, bm as Ze, m as Oe, a as Ue, bn as Re } from "./main-U22_wtg0.js";
5
5
  import { a as b, m as C } from "./vuex.esm-DKGl8mcw.js";
6
- import { s as _ } from "./Flag-3OyFDPsP.js";
7
- import { l as Ue, g as Re, W as Ge, b as We, a as qe, D as Ne } from "./DocumentLayout-CiszuoQc.js";
8
- import { F as K, d as je } from "./tippy.esm-DiOYviyf.js";
9
- import { m as D } from "./mapFormMixin-e2PJ431T.js";
10
- import { d as z, t as Ke } from "./debounce-HJoaSvIY.js";
11
- import { d as Ye } from "./vuedraggable.umd-DDT8qZBI.js";
12
- import { C as Qe, I as L, a as $, s as Je } from "./index-CKZmpLr6.js";
13
- import { C as Y } from "./CFormField-Cz_jNazS.js";
14
- import { S as Xe } from "./SmartList-D6AvxfSL.js";
15
- import { o as et, _ as tt } from "./omit-CpamclWf.js";
16
- import { v as A } from "./index-CFx0cpeM.js";
17
- import { t as it } from "./tinycolor-vIxz4Xgi.js";
18
- import { s as v } from "./formDrawerState-DYSBcjo4.js";
19
- import { s as at } from "./dom-CJxkno7i.js";
20
- import { S as nt, i as st } from "./formComponentsInstall-DMoWrprH.js";
21
- import { f as ot } from "./formValidationMixin-Dqlhg0R2.js";
22
- import { B as lt } from "./BlockMedia-D4nhek2s.js";
23
- const rt = {
6
+ import { s as _ } from "./simplebar.min-Bnrne5ZK.js";
7
+ import { l as Ge, g as We, W as qe, b as Ne, a as je, D as Ke } from "./DocumentLayout-DmjmsTcx.js";
8
+ import { F as X, d as Ye } from "./tippy.esm-BJe845c1.js";
9
+ import { m as D } from "./mapFormMixin-BZf4RJIE.js";
10
+ import { a as Qe } from "./ClientAutocomplete-BnredOme.js";
11
+ import { d as Z, t as Je } from "./debounce-DLiv1sQX.js";
12
+ import { d as Xe } from "./vuedraggable.umd-CJL8TWxZ.js";
13
+ import { C as et, I as L, a as $, s as tt } from "./index-CMT3coT-.js";
14
+ import { C as O } from "./CFormField-DcZVdj3a.js";
15
+ import { S as it } from "./SmartList-CP2wHig-.js";
16
+ import { o as at, _ as nt } from "./omit-RBXmF_Fo.js";
17
+ import { v as A } from "./index-C1Ngv-v3.js";
18
+ import { t as st } from "./tinycolor-BZ8wGctU.js";
19
+ import { s as v } from "./formDrawerState-CJ6kjaD_.js";
20
+ import { s as ot } from "./dom-CJxkno7i.js";
21
+ import { S as lt } from "./SendForm-BDY5VDkS.js";
22
+ import { f as rt } from "./formValidationMixin-Bri1WflH.js";
23
+ import { C as ct } from "./CCallout-BNvM6gNJ.js";
24
+ import { C as dt } from "./CSkeleton-BNbft-NE.js";
25
+ import { B as pt } from "./BlockMedia-BSKtZMwa.js";
26
+ const ut = {
24
27
  name: "DocumentPostSendStep",
25
28
  mixins: [w],
26
29
  i18nOptions: {
@@ -77,7 +80,7 @@ const rt = {
77
80
  id: i,
78
81
  body: { status: "sent" },
79
82
  showMessage: !1
80
- }), oe({ id: i })), t || setTimeout(() => this.close(), 2e3);
83
+ }), ce({ id: i })), t || setTimeout(() => this.close(), 2e3);
81
84
  },
82
85
  async onSend() {
83
86
  typeof this.onSendFunc == "function" && this.onSendFunc(this.document), await this.handleDocumentLinks();
@@ -96,7 +99,7 @@ const rt = {
96
99
  body: { isAccepted: !0 },
97
100
  checksum: a
98
101
  }), await this.sendDocument({ id: i }), this.onSend()) : (this.$modal.show(
99
- se,
102
+ re,
100
103
  {
101
104
  _document: this.document,
102
105
  fullScreen: this.modalHeight === "100%",
@@ -140,18 +143,18 @@ const rt = {
140
143
  }
141
144
  }
142
145
  };
143
- var ct = function() {
146
+ var mt = function() {
144
147
  var e = this, t = e._self._c;
145
148
  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
- }, dt = [], pt = /* @__PURE__ */ d(
147
- rt,
148
- ct,
149
- dt,
149
+ }, ht = [], ft = /* @__PURE__ */ d(
150
+ ut,
151
+ mt,
152
+ ht,
150
153
  !1,
151
154
  null,
152
- "736a58ea"
155
+ "206151b7"
153
156
  );
154
- const ut = pt.exports, mt = {
157
+ const gt = ft.exports, Ct = {
155
158
  name: "Drawer",
156
159
  props: {
157
160
  value: {
@@ -194,7 +197,7 @@ const ut = pt.exports, mt = {
194
197
  }
195
198
  }
196
199
  };
197
- var ht = function() {
200
+ var vt = function() {
198
201
  var e = this, t = e._self._c;
199
202
  return t("div", [t("transition", { attrs: { name: "fade" } }, [!e.hideOverlay && e.value ? t("div", { staticClass: "d-overlay", style: {
200
203
  zIndex: e.zIndex
@@ -210,19 +213,19 @@ var ht = function() {
210
213
  boxShadow: e.boxShadow,
211
214
  ...e.contentStyle
212
215
  } }, [e._t("default")], 2)]) : e._e()])], 1);
213
- }, ft = [], gt = /* @__PURE__ */ d(
214
- mt,
215
- ht,
216
- ft,
216
+ }, yt = [], xt = /* @__PURE__ */ d(
217
+ Ct,
218
+ vt,
219
+ yt,
217
220
  !1,
218
221
  null,
219
- "b9ff8f27"
222
+ "694ad3af"
220
223
  );
221
- const Q = gt.exports, Ct = {
224
+ const ee = xt.exports, wt = {
222
225
  name: "DocumentDrawer",
223
226
  components: {
224
227
  simplebar: _,
225
- Drawer: Q
228
+ Drawer: ee
226
229
  },
227
230
  props: {
228
231
  position: {
@@ -244,7 +247,7 @@ const Q = gt.exports, Ct = {
244
247
  }
245
248
  }
246
249
  };
247
- var vt = function() {
250
+ var bt = function() {
248
251
  var e = this, t = e._self._c;
249
252
  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
253
  "is-sticky": !e.fixed
@@ -256,29 +259,29 @@ var vt = function() {
256
259
  padding: "calc(2.5 * var(--rem)) calc(1 * var(--rem)) calc(6 * var(--rem)) calc(1 * var(--rem))",
257
260
  ...e.fixedStyle
258
261
  } }, [e._t("default")], 2)])])]) : e._e()], 1);
259
- }, yt = [], xt = /* @__PURE__ */ d(
260
- Ct,
261
- vt,
262
- yt,
262
+ }, kt = [], _t = /* @__PURE__ */ d(
263
+ wt,
264
+ bt,
265
+ kt,
263
266
  !1,
264
267
  null,
265
- "4daaea05"
268
+ "f53cf4f0"
266
269
  );
267
- const wt = xt.exports, bt = {
270
+ const Lt = _t.exports, $t = {
268
271
  name: "DocumentFormNav"
269
272
  };
270
- var kt = function() {
273
+ var St = function() {
271
274
  var e = this, t = e._self._c;
272
275
  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
- }, _t = [], Lt = /* @__PURE__ */ d(
274
- bt,
275
- kt,
276
- _t,
276
+ }, Tt = [], Dt = /* @__PURE__ */ d(
277
+ $t,
278
+ St,
279
+ Tt,
277
280
  !1,
278
281
  null,
279
282
  null
280
283
  );
281
- const $t = Lt.exports, St = {
284
+ const Vt = Dt.exports, Bt = {
282
285
  name: "DocumentFormViewRadio",
283
286
  props: {
284
287
  value: {
@@ -291,7 +294,7 @@ const $t = Lt.exports, St = {
291
294
  }
292
295
  }
293
296
  };
294
- var Tt = function() {
297
+ var Mt = function() {
295
298
  var e = this, t = e._self._c;
296
299
  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
300
  "m-0 bg-white px-3 py-[1em] text-zinc-900 drop-shadow-md": e.value === "edit"
@@ -302,15 +305,15 @@ var Tt = function() {
302
305
  }, attrs: { "data-onboarding": "preview-button" }, on: { click: function(a) {
303
306
  e.value === "edit" && e.$emit("input", "preview");
304
307
  } } }, [e.small ? t("CIcon", { attrs: { type: "eye", size: "16" } }) : [e._v(e._s(e.$t("preview")))]], 2)]);
305
- }, Dt = [], Vt = /* @__PURE__ */ d(
306
- St,
307
- Tt,
308
- Dt,
308
+ }, It = [], Ft = /* @__PURE__ */ d(
309
+ Bt,
310
+ Mt,
311
+ It,
309
312
  !1,
310
313
  null,
311
314
  null
312
315
  );
313
- const Bt = Vt.exports, Mt = {
316
+ const Ht = Ft.exports, At = {
314
317
  name: "BlockControlButtons",
315
318
  i18nOptions: {
316
319
  namespace: "blockControlButtons",
@@ -342,7 +345,7 @@ const Bt = Vt.exports, Mt = {
342
345
  }
343
346
  }
344
347
  };
345
- var It = function() {
348
+ var Pt = function() {
346
349
  var e = this, t = e._self._c;
347
350
  return t("div", { staticClass: "control-root flex gap-2" }, [e.canToggleVisibility ? t("div", { staticClass: "control-button", on: { click: function(a) {
348
351
  return e.$emit("toggle-visible", !e.isVisible);
@@ -353,18 +356,18 @@ var It = function() {
353
356
  } } }, [t("CIcon", { attrs: { type: "chevron-down", size: "16" } })], 1)]), t("div", { staticClass: "control-button remove", on: { click: function(a) {
354
357
  return e.$emit("remove");
355
358
  } } }, [t("CIcon", { attrs: { type: "x", size: "16" } })], 1)]) : e._e()], 2);
356
- }, Ft = [], Ht = /* @__PURE__ */ d(
357
- Mt,
358
- It,
359
- Ft,
359
+ }, Et = [], zt = /* @__PURE__ */ d(
360
+ At,
361
+ Pt,
362
+ Et,
360
363
  !1,
361
364
  null,
362
- "bfd61212"
365
+ "5cce694c"
363
366
  );
364
- const At = Ht.exports, Pt = {
367
+ const Zt = zt.exports, Ot = {
365
368
  name: "DynamicBlock",
366
369
  components: {
367
- BlockControlButtons: At
370
+ BlockControlButtons: Zt
368
371
  },
369
372
  provide() {
370
373
  return {
@@ -425,7 +428,7 @@ const At = Ht.exports, Pt = {
425
428
  }
426
429
  }
427
430
  };
428
- var Et = function() {
431
+ var Ut = function() {
429
432
  var e = this, t = e._self._c;
430
433
  return t("Animation", { staticClass: "w-full" }, [t("div", { staticClass: "block-root", class: [
431
434
  {
@@ -448,15 +451,15 @@ var Et = function() {
448
451
  }, remove: function(a) {
449
452
  return e.$emit("remove");
450
453
  } } }, [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
- }, zt = [], Zt = /* @__PURE__ */ d(
452
- Pt,
453
- Et,
454
- zt,
454
+ }, Rt = [], Gt = /* @__PURE__ */ d(
455
+ Ot,
456
+ Ut,
457
+ Rt,
455
458
  !1,
456
459
  null,
457
- "ba9843e6"
460
+ "129778b8"
458
461
  );
459
- const Ot = Zt.exports, Ut = {
462
+ const Wt = Gt.exports, qt = {
460
463
  name: "LogoBanner",
461
464
  props: {
462
465
  position: {
@@ -474,20 +477,20 @@ const Ot = Zt.exports, Ut = {
474
477
  }
475
478
  }
476
479
  };
477
- var Rt = function() {
480
+ var Nt = function() {
478
481
  var e = this, t = e._self._c;
479
482
  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
483
  "_common:brand.domain"
481
484
  )}?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
- }, Gt = [], Wt = /* @__PURE__ */ d(
483
- Ut,
484
- Rt,
485
- Gt,
485
+ }, jt = [], Kt = /* @__PURE__ */ d(
486
+ qt,
487
+ Nt,
488
+ jt,
486
489
  !1,
487
490
  null,
488
491
  null
489
492
  );
490
- const qt = Wt.exports, Nt = {
493
+ const Yt = Kt.exports, Qt = {
491
494
  name: "Draggable",
492
495
  data() {
493
496
  return {
@@ -529,18 +532,18 @@ const qt = Wt.exports, Nt = {
529
532
  dragMousedown: this.onDragMouseDown
530
533
  });
531
534
  }
532
- }, jt = null, Kt = null;
533
- var Yt = /* @__PURE__ */ d(
534
- Nt,
535
- jt,
536
- Kt,
535
+ }, Jt = null, Xt = null;
536
+ var e1 = /* @__PURE__ */ d(
537
+ Qt,
538
+ Jt,
539
+ Xt,
537
540
  !1,
538
541
  null,
539
542
  null
540
543
  );
541
- const Qt = Yt.exports, Jt = {
544
+ const t1 = e1.exports, i1 = {
542
545
  components: {
543
- Draggable: Qt
546
+ Draggable: t1
544
547
  },
545
548
  props: {
546
549
  offset: {
@@ -553,7 +556,7 @@ const Qt = Yt.exports, Jt = {
553
556
  }
554
557
  }
555
558
  };
556
- var Xt = function() {
559
+ var a1 = function() {
557
560
  var e = this, t = e._self._c;
558
561
  return t("portal", { attrs: { to: "modal" } }, [t("Draggable", { scopedSlots: e._u([{ key: "default", fn: function({ dragMousedown: a }) {
559
562
  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,23 +566,23 @@ var Xt = function() {
563
566
  return e.$emit("close");
564
567
  } } }), 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
568
  } }], null, !0) })], 1);
566
- }, e1 = [], t1 = /* @__PURE__ */ d(
567
- Jt,
568
- Xt,
569
- e1,
569
+ }, n1 = [], s1 = /* @__PURE__ */ d(
570
+ i1,
571
+ a1,
572
+ n1,
570
573
  !1,
571
574
  null,
572
- "8029d5ea"
575
+ "cd750940"
573
576
  );
574
- const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 = {
577
+ const te = s1.exports, o1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(o1), l1 = {
575
578
  i18nOptions: {
576
579
  namespaces: "common",
577
580
  keyPrefix: "designLabels"
578
581
  },
579
582
  name: "Design",
580
583
  components: {
581
- FormInputRow: K,
582
- DragWindow: J
584
+ FormInputRow: X,
585
+ DragWindow: te
583
586
  },
584
587
  mixins: [D(["css"], { useEmit: !1, setFnName: "set" })],
585
588
  props: {
@@ -659,7 +662,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
659
662
  }
660
663
  },
661
664
  onInput: ({ family: a, weight: n, options: s = [] }) => {
662
- this.update(i, a), Ue(a), t != n && this.update("fontWeight", n), this.fontWeightOptions = s;
665
+ this.update(i, a), Ge(a), t != n && this.update("fontWeight", n), this.fontWeightOptions = s;
663
666
  }
664
667
  }
665
668
  ]
@@ -1125,7 +1128,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
1125
1128
  watch: {
1126
1129
  async activeItem(i) {
1127
1130
  const e = u(i, "style.fontFamily");
1128
- e && (this.fontWeightOptions = await Re(e));
1131
+ e && (this.fontWeightOptions = await We(e));
1129
1132
  }
1130
1133
  },
1131
1134
  methods: {
@@ -1137,7 +1140,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
1137
1140
  }
1138
1141
  }
1139
1142
  };
1140
- var n1 = function() {
1143
+ var r1 = function() {
1141
1144
  var e = this, t = e._self._c;
1142
1145
  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
1146
  return t("div", { key: a.label, staticClass: "list-option", on: { click: function(n) {
@@ -1156,15 +1159,15 @@ var n1 = function() {
1156
1159
  })], 2), e.activeItem ? t("DragWindow", { attrs: { title: e.activeItem.label, offset: e.offset }, on: { close: () => e.activeItem = null } }, e._l(e.activeItemOptions, function(a, n) {
1157
1160
  return t("FormInputRow", { key: n, attrs: { label: a.label, inputs: a.inputs } });
1158
1161
  }), 1) : e._e()], 1);
1159
- }, s1 = [], o1 = /* @__PURE__ */ d(
1160
- a1,
1161
- n1,
1162
- s1,
1162
+ }, c1 = [], d1 = /* @__PURE__ */ d(
1163
+ l1,
1164
+ r1,
1165
+ c1,
1163
1166
  !1,
1164
1167
  null,
1165
- "83027693"
1168
+ "0f6ab0af"
1166
1169
  );
1167
- const l1 = o1.exports, r1 = {
1170
+ const p1 = d1.exports, u1 = {
1168
1171
  i18nOptions: {
1169
1172
  namespaces: "DocSettings",
1170
1173
  messages: {
@@ -1252,8 +1255,8 @@ const l1 = o1.exports, r1 = {
1252
1255
  },
1253
1256
  name: "DocumentGeneralSettings",
1254
1257
  components: {
1255
- FormInputRow: K,
1256
- DragWindow: J
1258
+ FormInputRow: X,
1259
+ DragWindow: te
1257
1260
  },
1258
1261
  mixins: [
1259
1262
  D([
@@ -1294,7 +1297,7 @@ const l1 = o1.exports, r1 = {
1294
1297
  vatTypes() {
1295
1298
  var e;
1296
1299
  const i = ["vat"];
1297
- return ((e = le[f.brand]) == null ? void 0 : e.defaultRegion) === "US" && i.push("tax"), i;
1300
+ return ((e = de[f.brand]) == null ? void 0 : e.defaultRegion) === "US" && i.push("tax"), i;
1298
1301
  },
1299
1302
  options() {
1300
1303
  return [
@@ -1325,7 +1328,7 @@ const l1 = o1.exports, r1 = {
1325
1328
  component: "select",
1326
1329
  props: {
1327
1330
  value: this.language,
1328
- options: re.map((i) => ({
1331
+ options: pe.map((i) => ({
1329
1332
  value: i,
1330
1333
  label: this.$t(`iso:language.${i}`)
1331
1334
  })).sort((i, e) => i.label.localeCompare(e.label))
@@ -1498,7 +1501,7 @@ const l1 = o1.exports, r1 = {
1498
1501
  }
1499
1502
  }
1500
1503
  };
1501
- var c1 = function() {
1504
+ var m1 = function() {
1502
1505
  var e = this, t = e._self._c;
1503
1506
  return t("div", { staticStyle: { height: "100%", padding: "1em" } }, [e._l(e.options, function(a, n) {
1504
1507
  return t("FormInputRow", { key: n, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } });
@@ -1507,15 +1510,15 @@ var c1 = function() {
1507
1510
  } } }, [e._l(e.priceOptions, function(a, n) {
1508
1511
  return [a.type === "divider" ? t("div", { key: n, staticClass: "divider" }) : t("FormInputRow", { key: n, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } })];
1509
1512
  })], 2) : e._e()], 2);
1510
- }, d1 = [], p1 = /* @__PURE__ */ d(
1511
- r1,
1512
- c1,
1513
- d1,
1513
+ }, h1 = [], f1 = /* @__PURE__ */ d(
1514
+ u1,
1515
+ m1,
1516
+ h1,
1514
1517
  !1,
1515
1518
  null,
1516
- "0bd59952"
1519
+ "76507ccf"
1517
1520
  );
1518
- const u1 = p1.exports, m1 = {
1521
+ const g1 = f1.exports, C1 = {
1519
1522
  i18nOptions: {
1520
1523
  messages: {
1521
1524
  en: {
@@ -1558,8 +1561,11 @@ const u1 = p1.exports, m1 = {
1558
1561
  },
1559
1562
  name: "ExtensionTab",
1560
1563
  components: {
1561
- draggable: Ye,
1562
- Spinner: ce
1564
+ draggable: Xe,
1565
+ Spinner: ue,
1566
+ CAutocomplete: Qe,
1567
+ CDropdown: P,
1568
+ CDropdownItem: E
1563
1569
  },
1564
1570
  mixins: [D(["externalReferences", "clients", "articles"])],
1565
1571
  data() {
@@ -1613,7 +1619,7 @@ const u1 = p1.exports, m1 = {
1613
1619
  }
1614
1620
  },
1615
1621
  methods: {
1616
- priceFormat: R,
1622
+ priceFormat: W,
1617
1623
  async _search(i) {
1618
1624
  try {
1619
1625
  this.isSearching = !0;
@@ -1633,7 +1639,7 @@ const u1 = p1.exports, m1 = {
1633
1639
  this.isSearching = !1;
1634
1640
  }
1635
1641
  },
1636
- search: z(async function(e) {
1642
+ search: Z(async function(e) {
1637
1643
  await this._search(e);
1638
1644
  }, 750),
1639
1645
  useSearchResult(i) {
@@ -1690,7 +1696,7 @@ const u1 = p1.exports, m1 = {
1690
1696
  });
1691
1697
  if (Array.isArray(a) && a.length) {
1692
1698
  const s = (n = this._document) == null ? void 0 : n.defaultAnswerMethod, o = a.map((l) => ({
1693
- ...de(),
1699
+ ...me(),
1694
1700
  ...s && { answerMethod: s },
1695
1701
  ...l
1696
1702
  }));
@@ -1720,7 +1726,7 @@ const u1 = p1.exports, m1 = {
1720
1726
  }
1721
1727
  }
1722
1728
  };
1723
- var h1 = function() {
1729
+ var v1 = function() {
1724
1730
  var e = this, t = e._self._c;
1725
1731
  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" }, scopedSlots: e._u([{ key: "trigger", fn: function() {
1726
1732
  return [t("CButton", { attrs: { size: "small", circle: "", type: "none", pattern: "tertiary", icon: "more-vertical" } })];
@@ -1767,15 +1773,15 @@ var h1 = function() {
1767
1773
  return e.addArticle(a);
1768
1774
  } } }, [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)]);
1769
1775
  }), 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);
1770
- }, f1 = [], g1 = /* @__PURE__ */ d(
1771
- m1,
1772
- h1,
1773
- f1,
1776
+ }, y1 = [], x1 = /* @__PURE__ */ d(
1777
+ C1,
1778
+ v1,
1779
+ y1,
1774
1780
  !1,
1775
1781
  null,
1776
- "0c00e6a6"
1782
+ "515490bd"
1777
1783
  );
1778
- const C1 = g1.exports, v1 = {
1784
+ const w1 = x1.exports, b1 = {
1779
1785
  name: "FieldsModal",
1780
1786
  i18nOptions: {
1781
1787
  namespaces: "FieldsModal",
@@ -1809,7 +1815,7 @@ const C1 = g1.exports, v1 = {
1809
1815
  }
1810
1816
  },
1811
1817
  components: {
1812
- CField: Y
1818
+ CField: O
1813
1819
  },
1814
1820
  props: {
1815
1821
  document: {
@@ -1885,12 +1891,12 @@ const C1 = g1.exports, v1 = {
1885
1891
  remove() {
1886
1892
  if (!this.existingFieldId)
1887
1893
  return;
1888
- const i = et(this.document.fields, [this.existingFieldId]);
1894
+ const i = at(this.document.fields, [this.existingFieldId]);
1889
1895
  this.set({ key: "data.fields", value: i }), this.$emit("close");
1890
1896
  }
1891
1897
  }
1892
1898
  };
1893
- var y1 = function() {
1899
+ var k1 = function() {
1894
1900
  var e = this, t = e._self._c;
1895
1901
  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) {
1896
1902
  return a.preventDefault(), e.submit.apply(null, arguments);
@@ -1901,15 +1907,15 @@ var y1 = function() {
1901
1907
  }, 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) {
1902
1908
  e.$set(e.form, "value", a);
1903
1909
  }, 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)]);
1904
- }, x1 = [], w1 = /* @__PURE__ */ d(
1905
- v1,
1906
- y1,
1907
- x1,
1910
+ }, _1 = [], L1 = /* @__PURE__ */ d(
1911
+ b1,
1912
+ k1,
1913
+ _1,
1908
1914
  !1,
1909
1915
  null,
1910
- "455b4cda"
1916
+ "424477dd"
1911
1917
  );
1912
- const b1 = w1.exports, k1 = {
1918
+ const $1 = L1.exports, S1 = {
1913
1919
  i18nOptions: {
1914
1920
  namespaces: "DocumentFormFields",
1915
1921
  messages: {
@@ -1933,9 +1939,9 @@ const b1 = w1.exports, k1 = {
1933
1939
  },
1934
1940
  name: "DocumentFormFields",
1935
1941
  components: {
1936
- SmartList: Xe,
1937
- CAccordion: Qe,
1938
- CField: Y
1942
+ SmartList: it,
1943
+ CAccordion: et,
1944
+ CField: O
1939
1945
  },
1940
1946
  mixins: [D()],
1941
1947
  props: {
@@ -2011,7 +2017,7 @@ const b1 = w1.exports, k1 = {
2011
2017
  },
2012
2018
  openFieldModal({ existingFieldId: i }) {
2013
2019
  this.$modal.show(
2014
- b1,
2020
+ $1,
2015
2021
  {
2016
2022
  document: this._document,
2017
2023
  set: this.set,
@@ -2030,7 +2036,7 @@ const b1 = w1.exports, k1 = {
2030
2036
  );
2031
2037
  },
2032
2038
  onCopyField(i) {
2033
- navigator && navigator.clipboard && i && navigator.clipboard.writeText(i).then(() => P("info", this.$t("_common:copyMessage"))).catch((e) => B(e));
2039
+ navigator && navigator.clipboard && i && navigator.clipboard.writeText(i).then(() => z("info", this.$t("_common:copyMessage"))).catch((e) => B(e));
2034
2040
  },
2035
2041
  filterMethod(i, e) {
2036
2042
  return e.filter(
@@ -2043,7 +2049,7 @@ const b1 = w1.exports, k1 = {
2043
2049
  }
2044
2050
  }
2045
2051
  };
2046
- var _1 = function() {
2052
+ var T1 = function() {
2047
2053
  var e = this, t = e._self._c;
2048
2054
  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) {
2049
2055
  e.query = a;
@@ -2090,15 +2096,15 @@ var _1 = function() {
2090
2096
  } } })], 1)], 1)]);
2091
2097
  }) : 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)]);
2092
2098
  })], 2)], 1);
2093
- }, L1 = [], $1 = /* @__PURE__ */ d(
2094
- k1,
2095
- _1,
2096
- L1,
2099
+ }, D1 = [], V1 = /* @__PURE__ */ d(
2100
+ S1,
2101
+ T1,
2102
+ D1,
2097
2103
  !1,
2098
2104
  null,
2099
- "4f611d41"
2105
+ "3e697ae4"
2100
2106
  );
2101
- const S1 = $1.exports, T1 = (i) => {
2107
+ const B1 = V1.exports, M1 = (i) => {
2102
2108
  const e = Array(2).fill().map(() => p());
2103
2109
  return [
2104
2110
  {
@@ -2120,7 +2126,7 @@ const S1 = $1.exports, T1 = (i) => {
2120
2126
  nodeId: e[1]
2121
2127
  }
2122
2128
  ];
2123
- }, D1 = (i, e = "en") => [
2129
+ }, I1 = (i, e = "en") => [
2124
2130
  {
2125
2131
  key: `title-${i}`,
2126
2132
  anyOf: [{ type: "string" }, { type: "null" }],
@@ -2133,13 +2139,13 @@ const S1 = $1.exports, T1 = (i) => {
2133
2139
  $ref: `${f.api.baseUrl}/schemas/file/1.json`
2134
2140
  }
2135
2141
  }
2136
- ], V1 = ({ document: i = null }) => {
2142
+ ], F1 = ({ document: i = null }) => {
2137
2143
  const e = p(), { language: t } = i || {};
2138
2144
  return {
2139
- readView: T1(e),
2140
- validation: D1(e, t)
2145
+ readView: M1(e),
2146
+ validation: I1(e, t)
2141
2147
  };
2142
- }, B1 = (i) => [
2148
+ }, H1 = (i) => [
2143
2149
  {
2144
2150
  itemId: "coverBlock",
2145
2151
  itemType: "coverBlock",
@@ -2149,7 +2155,7 @@ const S1 = $1.exports, T1 = (i) => {
2149
2155
  parentId: "0",
2150
2156
  nodeId: p()
2151
2157
  }
2152
- ], M1 = (i, e = "en") => [
2158
+ ], A1 = (i, e = "en") => [
2153
2159
  {
2154
2160
  key: `coverBlock-${i}`,
2155
2161
  defaultValue: {
@@ -2166,7 +2172,7 @@ const S1 = $1.exports, T1 = (i) => {
2166
2172
  },
2167
2173
  $ref: `${f.api.baseUrl}/schemas/coverBlock/1.json`
2168
2174
  }
2169
- ], I1 = (i) => ({
2175
+ ], P1 = (i) => ({
2170
2176
  [`data.coverBlock-${i}`]: {
2171
2177
  text: "<h1>We know communication</h1>",
2172
2178
  cover: {
@@ -2176,19 +2182,19 @@ const S1 = $1.exports, T1 = (i) => {
2176
2182
  blur: 0
2177
2183
  }
2178
2184
  }
2179
- }), F1 = ({
2185
+ }), E1 = ({
2180
2186
  includeMockData: i = !1,
2181
2187
  document: e = null,
2182
2188
  contentData: t = null
2183
2189
  } = {}) => {
2184
2190
  const a = p(), { language: n } = e || {};
2185
2191
  let s = null;
2186
- return typeof t == "function" ? s = t(a) : i && (s = I1(a)), {
2187
- readView: B1(a),
2188
- validation: M1(a, n),
2192
+ return typeof t == "function" ? s = t(a) : i && (s = P1(a)), {
2193
+ readView: H1(a),
2194
+ validation: A1(a, n),
2189
2195
  ...s && { data: s }
2190
2196
  };
2191
- }, H1 = ({ language: i = "en" } = {}) => {
2197
+ }, z1 = ({ language: i = "en" } = {}) => {
2192
2198
  const e = (t) => m.t(`components:account.documentForm.contentItems.coverBlock.${t}`, {
2193
2199
  lng: i
2194
2200
  });
@@ -2333,7 +2339,7 @@ const S1 = $1.exports, T1 = (i) => {
2333
2339
  })
2334
2340
  }
2335
2341
  ];
2336
- }, A1 = () => {
2342
+ }, Z1 = () => {
2337
2343
  const i = Array(5).fill().map(() => p());
2338
2344
  return [
2339
2345
  {
@@ -2382,7 +2388,7 @@ const S1 = $1.exports, T1 = (i) => {
2382
2388
  nodeId: i[4]
2383
2389
  }
2384
2390
  ];
2385
- }, P1 = () => ({
2391
+ }, O1 = () => ({
2386
2392
  clients: [
2387
2393
  {
2388
2394
  name: "Pernilla P.",
@@ -2394,7 +2400,7 @@ const S1 = $1.exports, T1 = (i) => {
2394
2400
  answerMethod: { accept: "signature", deny: "button" }
2395
2401
  }
2396
2402
  ]
2397
- }), E1 = (i = "en") => [
2403
+ }), U1 = (i = "en") => [
2398
2404
  { key: "senderString", anyOf: [{ type: "string" }, { type: "null" }] },
2399
2405
  { key: "receiverString", anyOf: [{ type: "string" }, { type: "null" }] },
2400
2406
  {
@@ -2402,20 +2408,20 @@ const S1 = $1.exports, T1 = (i) => {
2402
2408
  anyOf: [{ type: "string" }, { type: "null" }],
2403
2409
  defaultValue: m.t("components:document.chapters.parties.title", { lng: i })
2404
2410
  }
2405
- ], z1 = ({
2411
+ ], R1 = ({
2406
2412
  includeMockData: i = !1,
2407
2413
  document: e = null,
2408
2414
  contentData: t = null
2409
2415
  }) => {
2410
2416
  const { language: a } = e || {};
2411
2417
  let n = null;
2412
- return typeof t == "function" ? n = t() : i && (n = P1()), {
2413
- readView: A1(),
2414
- validation: E1(a),
2418
+ return typeof t == "function" ? n = t() : i && (n = O1()), {
2419
+ readView: Z1(),
2420
+ validation: U1(a),
2415
2421
  // Client / company will for now always exist on doc and in validation
2416
2422
  ...n && { data: n }
2417
2423
  };
2418
- }, Z1 = (i) => [
2424
+ }, G1 = (i) => [
2419
2425
  {
2420
2426
  itemId: "embed",
2421
2427
  itemType: "embed",
@@ -2429,7 +2435,7 @@ const S1 = $1.exports, T1 = (i) => {
2429
2435
  parentId: "0",
2430
2436
  nodeId: p()
2431
2437
  }
2432
- ], O1 = (i) => [
2438
+ ], W1 = (i) => [
2433
2439
  {
2434
2440
  key: `embed-${i}`,
2435
2441
  $ref: `${f.api.baseUrl}/schemas/embed/1.json`,
@@ -2438,16 +2444,16 @@ const S1 = $1.exports, T1 = (i) => {
2438
2444
  size: "small"
2439
2445
  }
2440
2446
  }
2441
- ], U1 = () => null, R1 = ({
2447
+ ], q1 = () => null, N1 = ({
2442
2448
  includeMockData: i = !1,
2443
2449
  document: e = null,
2444
2450
  contentData: t = null
2445
2451
  } = {}) => {
2446
2452
  const a = p();
2447
2453
  let n = null;
2448
- return typeof t == "function" ? n = t(a) : i && (n = U1()), {
2449
- readView: Z1(a),
2450
- validation: O1(a),
2454
+ return typeof t == "function" ? n = t(a) : i && (n = q1()), {
2455
+ readView: G1(a),
2456
+ validation: W1(a),
2451
2457
  ...n && { data: n }
2452
2458
  };
2453
2459
  };
@@ -2462,7 +2468,7 @@ m.loadOptions({
2462
2468
  }
2463
2469
  }
2464
2470
  });
2465
- const G1 = ({ language: i = "en" } = {}) => [
2471
+ const j1 = ({ language: i = "en" } = {}) => [
2466
2472
  {
2467
2473
  previewUrl: `
2468
2474
  <div style="position: relative;">
@@ -2756,7 +2762,7 @@ const G1 = ({ language: i = "en" } = {}) => [
2756
2762
  }
2757
2763
  })
2758
2764
  }
2759
- ], W1 = (i) => {
2765
+ ], K1 = (i) => {
2760
2766
  const e = Array(3).fill().map(() => p());
2761
2767
  return [
2762
2768
  {
@@ -2792,7 +2798,7 @@ const G1 = ({ language: i = "en" } = {}) => [
2792
2798
  nodeId: e[2]
2793
2799
  }
2794
2800
  ];
2795
- }, q1 = (i) => [
2801
+ }, Y1 = (i) => [
2796
2802
  {
2797
2803
  key: `estimatedTimeComplete-${i}`,
2798
2804
  type: "object",
@@ -2810,23 +2816,23 @@ const G1 = ({ language: i = "en" } = {}) => [
2810
2816
  }
2811
2817
  }
2812
2818
  }
2813
- ], N1 = (i) => ({
2819
+ ], Q1 = (i) => ({
2814
2820
  [`estimatedTimeComplete-${i}`]: {
2815
2821
  value: 4,
2816
2822
  unitType: "hour"
2817
2823
  }
2818
- }), j1 = ({
2824
+ }), J1 = ({
2819
2825
  includeMockData: i = !1,
2820
2826
  contentData: e = null
2821
2827
  }) => {
2822
2828
  const t = p();
2823
2829
  let a = null;
2824
- return typeof e == "function" ? a = e(t) : i && (a = N1(t)), {
2825
- readView: W1(t),
2826
- validation: q1(t),
2830
+ return typeof e == "function" ? a = e(t) : i && (a = Q1(t)), {
2831
+ readView: K1(t),
2832
+ validation: Y1(t),
2827
2833
  ...a && { data: a }
2828
2834
  };
2829
- }, K1 = () => {
2835
+ }, X1 = () => {
2830
2836
  const i = Array(3).fill().map(() => p());
2831
2837
  return [
2832
2838
  {
@@ -2860,7 +2866,7 @@ const G1 = ({ language: i = "en" } = {}) => [
2860
2866
  nodeId: i[2]
2861
2867
  }
2862
2868
  ];
2863
- }, Y1 = () => [
2869
+ }, e2 = () => [
2864
2870
  {
2865
2871
  key: "estimatedWorkDates",
2866
2872
  type: "object",
@@ -2869,10 +2875,10 @@ const G1 = ({ language: i = "en" } = {}) => [
2869
2875
  endAt: { anyOf: [{ type: "null" }, { type: "string" }] }
2870
2876
  }
2871
2877
  }
2872
- ], Q1 = () => ({
2873
- readView: K1(),
2874
- validation: Y1()
2875
- }), J1 = () => {
2878
+ ], t2 = () => ({
2879
+ readView: X1(),
2880
+ validation: e2()
2881
+ }), i2 = () => {
2876
2882
  const i = Array(5).fill().map(() => p());
2877
2883
  return [
2878
2884
  {
@@ -2938,7 +2944,7 @@ const G1 = ({ language: i = "en" } = {}) => [
2938
2944
  nodeId: i[4]
2939
2945
  }
2940
2946
  ];
2941
- }, X1 = () => [
2947
+ }, a2 = () => [
2942
2948
  {
2943
2949
  key: "extraWorkConstruction",
2944
2950
  extraWorkConstruction: {
@@ -2962,11 +2968,11 @@ const G1 = ({ language: i = "en" } = {}) => [
2962
2968
  }
2963
2969
  }
2964
2970
  }
2965
- ], e2 = () => ({
2966
- readView: J1(),
2967
- validation: X1()
2971
+ ], n2 = () => ({
2972
+ readView: i2(),
2973
+ validation: a2()
2968
2974
  // Client / company will for now always exist on doc and in validation
2969
- }), t2 = () => {
2975
+ }), s2 = () => {
2970
2976
  const i = Array(3).fill().map(() => p());
2971
2977
  return [
2972
2978
  {
@@ -3006,7 +3012,7 @@ const G1 = ({ language: i = "en" } = {}) => [
3006
3012
  nodeId: i[2]
3007
3013
  }
3008
3014
  ];
3009
- }, i2 = () => [
3015
+ }, o2 = () => [
3010
3016
  {
3011
3017
  key: "extraWorkTimeImpact",
3012
3018
  anyOf: [
@@ -3024,10 +3030,10 @@ const G1 = ({ language: i = "en" } = {}) => [
3024
3030
  }
3025
3031
  ]
3026
3032
  }
3027
- ], a2 = () => ({
3028
- readView: t2(),
3029
- validation: i2()
3030
- }), n2 = (i) => [
3033
+ ], l2 = () => ({
3034
+ readView: s2(),
3035
+ validation: o2()
3036
+ }), r2 = (i) => [
3031
3037
  {
3032
3038
  itemId: `header-${i}`,
3033
3039
  itemType: "header",
@@ -3037,14 +3043,14 @@ const G1 = ({ language: i = "en" } = {}) => [
3037
3043
  parentId: "0",
3038
3044
  nodeId: p()
3039
3045
  }
3040
- ], s2 = (i, e = null) => {
3046
+ ], c2 = (i, e = null) => {
3041
3047
  const { language: t = "en", name: a = "", theme: n } = e || {}, s = a || m.t("_common:proposal", { lng: t }).capitalize();
3042
3048
  e && (e.name = s);
3043
3049
  const {
3044
3050
  background: o,
3045
3051
  priceSummaryBackground: l,
3046
3052
  backgroundFilter: r
3047
- } = n || {}, c = l || "hsl(228, 52%, 18%)", g = it.readability(c, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
3053
+ } = n || {}, c = l || "hsl(228, 52%, 18%)", g = st.readability(c, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
3048
3054
  return [
3049
3055
  {
3050
3056
  key: `header-${i}`,
@@ -3088,7 +3094,7 @@ const G1 = ({ language: i = "en" } = {}) => [
3088
3094
  }
3089
3095
  }
3090
3096
  ];
3091
- }, o2 = (i) => ({
3097
+ }, d2 = (i) => ({
3092
3098
  [`data.header-${i}`]: {
3093
3099
  layout: "vertical",
3094
3100
  baseStyle: { textAlign: "left", textColor: "#FFFFFF" },
@@ -3118,19 +3124,19 @@ const G1 = ({ language: i = "en" } = {}) => [
3118
3124
  }
3119
3125
  ]
3120
3126
  }
3121
- }), l2 = ({
3127
+ }), p2 = ({
3122
3128
  includeMockData: i = !1,
3123
3129
  document: e = null,
3124
3130
  contentData: t = null
3125
3131
  }) => {
3126
3132
  const a = p();
3127
3133
  let n = null;
3128
- return typeof t == "function" ? n = t(a) : i && (n = o2(a)), {
3129
- readView: n2(a),
3130
- validation: s2(a, e),
3134
+ return typeof t == "function" ? n = t(a) : i && (n = d2(a)), {
3135
+ readView: r2(a),
3136
+ validation: c2(a, e),
3131
3137
  ...n && { data: n }
3132
3138
  };
3133
- }, r2 = ({ language: i = "en" } = {}) => {
3139
+ }, u2 = ({ language: i = "en" } = {}) => {
3134
3140
  const e = (t) => m.t(`components:account.documentForm.contentItems.header.${t}`, {
3135
3141
  lng: i,
3136
3142
  interpolation: { prefix: "__", suffix: "__" }
@@ -3420,7 +3426,7 @@ const G1 = ({ language: i = "en" } = {}) => [
3420
3426
  })
3421
3427
  }
3422
3428
  ];
3423
- }, c2 = () => {
3429
+ }, m2 = () => {
3424
3430
  const i = Array(2).fill().map(() => p());
3425
3431
  return [
3426
3432
  {
@@ -3443,7 +3449,7 @@ const G1 = ({ language: i = "en" } = {}) => [
3443
3449
  // uniqid(),
3444
3450
  }
3445
3451
  ];
3446
- }, d2 = (i = "en") => [
3452
+ }, h2 = (i = "en") => [
3447
3453
  {
3448
3454
  key: "multiGroupPricing-title",
3449
3455
  anyOf: [{ type: "string" }, { type: "null" }],
@@ -3452,13 +3458,13 @@ const G1 = ({ language: i = "en" } = {}) => [
3452
3458
  { lng: i }
3453
3459
  )
3454
3460
  }
3455
- ], p2 = ({ document: i = null }) => {
3461
+ ], f2 = ({ document: i = null }) => {
3456
3462
  const { language: e } = i || {};
3457
3463
  return {
3458
- readView: c2(),
3459
- validation: d2(e)
3464
+ readView: m2(),
3465
+ validation: h2(e)
3460
3466
  };
3461
- }, u2 = () => {
3467
+ }, g2 = () => {
3462
3468
  const i = Array(5).fill().map(() => p());
3463
3469
  return [
3464
3470
  {
@@ -3508,12 +3514,12 @@ const G1 = ({ language: i = "en" } = {}) => [
3508
3514
  nodeId: i[4]
3509
3515
  }
3510
3516
  ];
3511
- }, m2 = () => [
3517
+ }, C2 = () => [
3512
3518
  { key: "miscAgreements", anyOf: [{ type: "string" }, { type: null }] },
3513
3519
  { key: "notBinding", type: "boolean" }
3514
- ], h2 = () => ({
3515
- readView: u2(),
3516
- validation: m2()
3520
+ ], v2 = () => ({
3521
+ readView: g2(),
3522
+ validation: C2()
3517
3523
  });
3518
3524
  m.loadOptions({
3519
3525
  namespaces: "packageGroupTemplate",
@@ -3526,7 +3532,7 @@ m.loadOptions({
3526
3532
  }
3527
3533
  }
3528
3534
  });
3529
- const f2 = (i) => {
3535
+ const y2 = (i) => {
3530
3536
  const e = Array(2).fill().map(() => p());
3531
3537
  return [
3532
3538
  {
@@ -3551,7 +3557,7 @@ const f2 = (i) => {
3551
3557
  nodeId: e[1]
3552
3558
  }
3553
3559
  ];
3554
- }, g2 = (i, e = "en") => [
3560
+ }, x2 = (i, e = "en") => [
3555
3561
  {
3556
3562
  key: `packageGroups.${i}`,
3557
3563
  validationKey: "packageGroups",
@@ -3571,15 +3577,15 @@ const f2 = (i) => {
3571
3577
  },
3572
3578
  $ref: `${f.api.baseUrl}/schemas/packageGroups/1.json`
3573
3579
  }
3574
- ], C2 = () => null, v2 = ({
3580
+ ], w2 = () => null, b2 = ({
3575
3581
  includeMockData: i,
3576
3582
  document: e = null,
3577
3583
  contentData: t = null
3578
3584
  } = {}) => {
3579
3585
  const a = p(), { language: n } = e || {};
3580
3586
  let s = null;
3581
- typeof t == "function" ? s = t(a) : i && (s = C2());
3582
- const o = f2(a), l = g2(a, n);
3587
+ typeof t == "function" ? s = t(a) : i && (s = w2());
3588
+ const o = y2(a), l = x2(a, n);
3583
3589
  return {
3584
3590
  readView: o,
3585
3591
  validation: l,
@@ -3671,7 +3677,7 @@ m.loadOptions({
3671
3677
  }
3672
3678
  }
3673
3679
  });
3674
- const y2 = ({
3680
+ const k2 = ({
3675
3681
  language: i = "en",
3676
3682
  currency: e = "USD",
3677
3683
  _getters: t,
@@ -4028,7 +4034,7 @@ const y2 = ({
4028
4034
  }
4029
4035
  }
4030
4036
  ];
4031
- }, x2 = () => [
4037
+ }, _2 = () => [
4032
4038
  {
4033
4039
  itemId: "presentation",
4034
4040
  itemType: "presentation",
@@ -4036,11 +4042,11 @@ const y2 = ({
4036
4042
  parentId: "0",
4037
4043
  nodeId: p()
4038
4044
  }
4039
- ], w2 = () => ({
4040
- readView: x2(),
4045
+ ], L2 = () => ({
4046
+ readView: _2(),
4041
4047
  validation: []
4042
4048
  // all relevant data is either within base doc or company settings etc
4043
- }), b2 = () => [
4049
+ }), $2 = () => [
4044
4050
  {
4045
4051
  itemId: "terms",
4046
4052
  itemType: "termsDisclaimer",
@@ -4058,7 +4064,7 @@ const y2 = ({
4058
4064
  parentId: "0",
4059
4065
  nodeId: p()
4060
4066
  }
4061
- ], k2 = () => [
4067
+ ], S2 = () => [
4062
4068
  {
4063
4069
  key: "terms",
4064
4070
  anyOf: [
@@ -4066,10 +4072,10 @@ const y2 = ({
4066
4072
  { type: "null" }
4067
4073
  ]
4068
4074
  }
4069
- ], _2 = () => ({
4070
- readView: b2(),
4071
- validation: k2()
4072
- }), L2 = (i) => {
4075
+ ], T2 = () => ({
4076
+ readView: $2(),
4077
+ validation: S2()
4078
+ }), D2 = (i) => {
4073
4079
  const e = Array(2).fill().map(() => p());
4074
4080
  return [
4075
4081
  {
@@ -4091,29 +4097,29 @@ const y2 = ({
4091
4097
  nodeId: e[1]
4092
4098
  }
4093
4099
  ];
4094
- }, $2 = (i) => [
4100
+ }, V2 = (i) => [
4095
4101
  {
4096
4102
  key: `title-${i}`,
4097
4103
  anyOf: [{ type: "string" }, { type: "null" }],
4098
4104
  defaultValue: ""
4099
4105
  },
4100
4106
  { key: `content-${i}`, anyOf: [{ type: "string" }, { type: "null" }] }
4101
- ], S2 = (i) => ({
4107
+ ], B2 = (i) => ({
4102
4108
  [`data.title-${i}`]: "My custom text",
4103
4109
  [`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>"
4104
- }), T2 = ({
4110
+ }), M2 = ({
4105
4111
  includeMockData: i = !1,
4106
4112
  contentData: e = null
4107
4113
  }) => {
4108
4114
  const t = p();
4109
4115
  let a = null;
4110
- return typeof e == "function" ? a = e(t) : i && (a = S2(t)), {
4111
- readView: L2(t),
4112
- validation: $2(t),
4116
+ return typeof e == "function" ? a = e(t) : i && (a = B2(t)), {
4117
+ readView: D2(t),
4118
+ validation: V2(t),
4113
4119
  ...a && { data: a },
4114
4120
  onAddFnName: "conditionalOnAdd"
4115
4121
  };
4116
- }, D2 = (i) => [
4122
+ }, I2 = (i) => [
4117
4123
  {
4118
4124
  itemId: "videoPlayer",
4119
4125
  itemType: "videoPlayer",
@@ -4126,7 +4132,7 @@ const y2 = ({
4126
4132
  parentId: "0",
4127
4133
  nodeId: p()
4128
4134
  }
4129
- ], V2 = (i) => [
4135
+ ], F2 = (i) => [
4130
4136
  {
4131
4137
  key: `video-${i}`,
4132
4138
  $ref: `${f.api.baseUrl}/schemas/videoPlayer/1.json`,
@@ -4137,7 +4143,7 @@ const y2 = ({
4137
4143
  }
4138
4144
  }
4139
4145
  }
4140
- ], B2 = (i) => ({
4146
+ ], H2 = (i) => ({
4141
4147
  [`data.video-${i}`]: {
4142
4148
  size: "small",
4143
4149
  video: {
@@ -4146,18 +4152,18 @@ const y2 = ({
4146
4152
  id: "166JEb6qkr4"
4147
4153
  }
4148
4154
  }
4149
- }), M2 = ({
4155
+ }), A2 = ({
4150
4156
  includeMockData: i = !1,
4151
4157
  contentData: e = null
4152
4158
  }) => {
4153
4159
  const t = p();
4154
4160
  let a = null;
4155
- return typeof e == "function" ? a = e(t) : i && (a = B2(t)), {
4156
- readView: D2(t),
4157
- validation: V2(t),
4161
+ return typeof e == "function" ? a = e(t) : i && (a = H2(t)), {
4162
+ readView: I2(t),
4163
+ validation: F2(t),
4158
4164
  ...a && { data: a }
4159
4165
  };
4160
- }, I2 = ({ language: i = "en" } = {}) => [
4166
+ }, P2 = ({ language: i = "en" } = {}) => [
4161
4167
  {
4162
4168
  previewUrl: `
4163
4169
  <div style="position: relative;">
@@ -4358,35 +4364,35 @@ const y2 = ({
4358
4364
  }
4359
4365
  })
4360
4366
  }
4361
- ], O = {
4362
- titleAndText2: T2,
4363
- attachments2: V1,
4364
- pdf: ue,
4365
- packageGroup: v2,
4366
- multiGroupPricing: p2,
4367
- coverBlock: F1,
4368
- videoPlayer: M2,
4369
- embed: R1,
4370
- header: l2,
4371
- answer: me,
4372
- terms: _2,
4373
- parties: z1,
4374
- custom: he,
4367
+ ], R = {
4368
+ titleAndText2: M2,
4369
+ attachments2: F1,
4370
+ pdf: fe,
4371
+ packageGroup: b2,
4372
+ multiGroupPricing: f2,
4373
+ coverBlock: E1,
4374
+ videoPlayer: A2,
4375
+ embed: N1,
4376
+ header: p2,
4377
+ answer: ge,
4378
+ terms: T2,
4379
+ parties: R1,
4380
+ custom: Ce,
4375
4381
  // legacy
4376
- presentation: w2,
4377
- estimatedTimeCompleted: j1,
4378
- estimatedWorkStartAndEndAtText: Q1,
4379
- extraWorkConstructionPricingList: e2,
4380
- extraWorkTimeImpactText: a2,
4381
- notBinding: h2
4382
- }, U = {
4383
- coverBlock: H1,
4384
- header: r2,
4385
- packageGroup: y2,
4386
- embed: G1,
4387
- videoPlayer: I2,
4388
- custom: pe
4389
- }, F2 = {
4382
+ presentation: L2,
4383
+ estimatedTimeCompleted: J1,
4384
+ estimatedWorkStartAndEndAtText: t2,
4385
+ extraWorkConstructionPricingList: n2,
4386
+ extraWorkTimeImpactText: l2,
4387
+ notBinding: v2
4388
+ }, G = {
4389
+ coverBlock: z1,
4390
+ header: u2,
4391
+ packageGroup: k2,
4392
+ embed: j1,
4393
+ videoPlayer: P2,
4394
+ custom: he
4395
+ }, E2 = {
4390
4396
  name: "AddBlock",
4391
4397
  props: {
4392
4398
  set: {
@@ -4400,31 +4406,31 @@ const y2 = ({
4400
4406
  },
4401
4407
  render() {
4402
4408
  return this.$scopedSlots.default({
4403
- addBlock: (i) => fe({
4409
+ addBlock: (i) => ve({
4404
4410
  ...i,
4405
4411
  set: this.set,
4406
- tplGenerators: O,
4412
+ tplGenerators: R,
4407
4413
  includeMockData: this.includeMockData,
4408
4414
  emit: (...e) => this.$emit(...e)
4409
4415
  }),
4410
- getBlockPayload: (i) => ge(
4416
+ getBlockPayload: (i) => ye(
4411
4417
  i,
4412
4418
  this.set,
4413
- O,
4419
+ R,
4414
4420
  this.includeMockdata
4415
4421
  )
4416
4422
  });
4417
4423
  }
4418
- }, H2 = null, A2 = null;
4419
- var P2 = /* @__PURE__ */ d(
4420
- F2,
4421
- H2,
4422
- A2,
4424
+ }, z2 = null, Z2 = null;
4425
+ var O2 = /* @__PURE__ */ d(
4426
+ E2,
4427
+ z2,
4428
+ Z2,
4423
4429
  !1,
4424
4430
  null,
4425
4431
  null
4426
4432
  );
4427
- const X = P2.exports, E2 = {
4433
+ const ie = O2.exports, U2 = {
4428
4434
  name: "MenuBlockConvertPopover",
4429
4435
  props: {
4430
4436
  target: {
@@ -4457,22 +4463,22 @@ const X = P2.exports, E2 = {
4457
4463
  }
4458
4464
  }
4459
4465
  };
4460
- var z2 = function() {
4466
+ var R2 = function() {
4461
4467
  var e = this, t = e._self._c;
4462
4468
  return t("div", [t("div", { staticClass: "fixed inset-0 z-10", on: { click: function(a) {
4463
4469
  return a.target !== a.currentTarget ? null : e.$emit("close");
4464
4470
  } } }), 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) {
4465
4471
  return e.$emit("convert");
4466
4472
  } } }, [e._v(" " + e._s(e.$t("button")) + " ")])], 1)])], 1);
4467
- }, Z2 = [], O2 = /* @__PURE__ */ d(
4468
- E2,
4469
- z2,
4470
- Z2,
4473
+ }, G2 = [], W2 = /* @__PURE__ */ d(
4474
+ U2,
4475
+ R2,
4476
+ G2,
4471
4477
  !1,
4472
4478
  null,
4473
4479
  null
4474
4480
  );
4475
- const U2 = O2.exports, R2 = E.component("ProBadge", {
4481
+ const q2 = W2.exports, N2 = q.component("ProBadge", {
4476
4482
  name: "ProBadge",
4477
4483
  render(i) {
4478
4484
  return i(
@@ -4483,7 +4489,7 @@ const U2 = O2.exports, R2 = E.component("ProBadge", {
4483
4489
  "Pro"
4484
4490
  );
4485
4491
  }
4486
- }), G2 = {
4492
+ }), j2 = {
4487
4493
  name: "MenuBlocks",
4488
4494
  i18nOptions: {
4489
4495
  namespaces: "menuBlocks",
@@ -4554,12 +4560,12 @@ const U2 = O2.exports, R2 = E.component("ProBadge", {
4554
4560
  },
4555
4561
  components: {
4556
4562
  simplebar: _,
4557
- DragList: G,
4558
- DragItem: W,
4559
- AddBlock: X,
4563
+ DragList: N,
4564
+ DragItem: j,
4565
+ AddBlock: ie,
4560
4566
  IsPremiumPreStep: L,
4561
- ProBadge: R2,
4562
- MenuBlockConvertPopover: U2
4567
+ ProBadge: N2,
4568
+ MenuBlockConvertPopover: q2
4563
4569
  },
4564
4570
  mixins: [w],
4565
4571
  inject: {
@@ -4864,7 +4870,7 @@ const U2 = O2.exports, R2 = E.component("ProBadge", {
4864
4870
  }
4865
4871
  ];
4866
4872
  return i.forEach((e) => {
4867
- 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);
4873
+ G[e.key] && (e.subMenu = (G[e.key](this._document || {}) || []).map((t) => ({ ...t, key: e.key, locked: e.locked }))), this.tooltips[e.key] && (e.hasTooltip = !0);
4868
4874
  }), i;
4869
4875
  },
4870
4876
  availableBlocks() {
@@ -4920,7 +4926,7 @@ const U2 = O2.exports, R2 = E.component("ProBadge", {
4920
4926
  if (this.mq === "sm")
4921
4927
  return;
4922
4928
  const { tooltips: i } = this, e = (s = (n = this.$el).getRootNode) == null ? void 0 : s.call(n), a = (e == null ? void 0 : e.toString()) === "[object ShadowRoot]" ? e : document.body;
4923
- this.tippyInstances = je(this.$el, {
4929
+ this.tippyInstances = Ye(this.$el, {
4924
4930
  target: "[data-tooltip-key]",
4925
4931
  allowHTML: !0,
4926
4932
  duration: [150, 0],
@@ -4945,7 +4951,7 @@ const U2 = O2.exports, R2 = E.component("ProBadge", {
4945
4951
  i.destroy();
4946
4952
  }) : this.tippyInstances.destroy && this.tippyInstances.destroy());
4947
4953
  },
4948
- setSubMenuState: z(
4954
+ setSubMenuState: Z(
4949
4955
  function(e) {
4950
4956
  this.activeSubMenu = e;
4951
4957
  },
@@ -4988,7 +4994,7 @@ const U2 = O2.exports, R2 = E.component("ProBadge", {
4988
4994
  }
4989
4995
  }
4990
4996
  };
4991
- var W2 = function() {
4997
+ var K2 = function() {
4992
4998
  var e = this, t = e._self._c;
4993
4999
  return t("AddBlock", { attrs: { set: e.set }, on: { "block-added": function(a) {
4994
5000
  return e.$emit("block-added", a);
@@ -5031,15 +5037,15 @@ var W2 = function() {
5031
5037
  }), 1)], 1)], 1)])], 1)];
5032
5038
  } }], null, !0) })];
5033
5039
  } }]) });
5034
- }, q2 = [], N2 = /* @__PURE__ */ d(
5035
- G2,
5036
- W2,
5037
- q2,
5040
+ }, Y2 = [], Q2 = /* @__PURE__ */ d(
5041
+ j2,
5042
+ K2,
5043
+ Y2,
5038
5044
  !1,
5039
5045
  null,
5040
- "6dba95f7"
5046
+ "27720fc4"
5041
5047
  );
5042
- const j2 = N2.exports, K2 = {
5048
+ const J2 = Q2.exports, X2 = {
5043
5049
  name: "DocumentFormMenu",
5044
5050
  i18nOptions: {
5045
5051
  namespaces: "documentFormMenu",
@@ -5055,12 +5061,12 @@ const j2 = N2.exports, K2 = {
5055
5061
  }
5056
5062
  },
5057
5063
  components: {
5058
- Design: l1,
5059
- Fields: S1,
5060
- ExtensionTab: C1,
5061
- DocumentGeneralSettings: u1,
5062
- DocumentGuide: () => import("./index-CFe1BJZJ.js"),
5063
- MenuBlocks: j2,
5064
+ Design: p1,
5065
+ Fields: B1,
5066
+ ExtensionTab: w1,
5067
+ DocumentGeneralSettings: g1,
5068
+ DocumentGuide: () => import("./index-Dygy9XlG.js"),
5069
+ MenuBlocks: J2,
5064
5070
  Simplebar: _
5065
5071
  },
5066
5072
  props: {
@@ -5101,7 +5107,7 @@ const j2 = N2.exports, K2 = {
5101
5107
  data() {
5102
5108
  return {
5103
5109
  showGuide: !1,
5104
- showGuideNotification: !Z.getItem("hideFormGuideNotification"),
5110
+ showGuideNotification: !U.getItem("hideFormGuideNotification"),
5105
5111
  tab: "blocks"
5106
5112
  };
5107
5113
  },
@@ -5123,11 +5129,11 @@ const j2 = N2.exports, K2 = {
5123
5129
  },
5124
5130
  methods: {
5125
5131
  openGuide() {
5126
- this.showGuide = !0, this.showGuideNotification = !1, Z.setItem("hideFormGuideNotification", !0);
5132
+ this.showGuide = !0, this.showGuideNotification = !1, U.setItem("hideFormGuideNotification", !0);
5127
5133
  }
5128
5134
  }
5129
5135
  };
5130
- var Y2 = function() {
5136
+ var ei = function() {
5131
5137
  var e = this, t = e._self._c;
5132
5138
  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) {
5133
5139
  return e.$emit("close");
@@ -5176,21 +5182,21 @@ var Y2 = function() {
5176
5182
  }, offset: e.fixed ? 0 : e.width }, on: { input: ({ key: a, value: n }) => e.set({ key: a, value: n }) } }) : e._e()], 1)], 1), e.showGuide ? t("DocumentGuide", { on: { close: function(a) {
5177
5183
  e.showGuide = !1;
5178
5184
  } } }) : e._e()], 1)])]);
5179
- }, Q2 = [], J2 = /* @__PURE__ */ d(
5180
- K2,
5181
- Y2,
5182
- Q2,
5185
+ }, ti = [], ii = /* @__PURE__ */ d(
5186
+ X2,
5187
+ ei,
5188
+ ti,
5183
5189
  !1,
5184
5190
  null,
5185
- "aec59ec8"
5191
+ "334d1b63"
5186
5192
  );
5187
- const X2 = J2.exports, ee = (i, e, t = "$children") => {
5193
+ const ai = ii.exports, ae = (i, e, t = "$children") => {
5188
5194
  if (!i)
5189
5195
  return;
5190
5196
  e(i);
5191
5197
  const a = i[t];
5192
- !a && !Array.isArray(a) || a.forEach((n) => ee(n, e));
5193
- }, ei = {
5198
+ !a && !Array.isArray(a) || a.forEach((n) => ae(n, e));
5199
+ }, ni = {
5194
5200
  i18nOptions: {
5195
5201
  namespaces: "DocumentFormContainer",
5196
5202
  messages: {
@@ -5206,18 +5212,18 @@ const X2 = J2.exports, ee = (i, e, t = "$children") => {
5206
5212
  },
5207
5213
  name: "DocumentFormContainer",
5208
5214
  components: {
5209
- WithDimensions: Ge,
5210
- DragList: G,
5211
- DragItem: W,
5212
- DynamicChapter: We,
5213
- DocumentFormMenu: X2,
5214
- DynamicBlock: Ot,
5215
- DocumentFormViewRadio: Bt,
5216
- DocumentFormNav: $t,
5217
- DocumentDrawer: wt,
5218
- DocumentStyleContainer: qe,
5215
+ WithDimensions: qe,
5216
+ DragList: N,
5217
+ DragItem: j,
5218
+ DynamicChapter: Ne,
5219
+ DocumentFormMenu: ai,
5220
+ DynamicBlock: Wt,
5221
+ DocumentFormViewRadio: Ht,
5222
+ DocumentFormNav: Vt,
5223
+ DocumentDrawer: Lt,
5224
+ DocumentStyleContainer: je,
5219
5225
  simplebar: _,
5220
- LogoBanner: qt,
5226
+ LogoBanner: Yt,
5221
5227
  IsPremium: $
5222
5228
  },
5223
5229
  mixins: [w],
@@ -5353,7 +5359,7 @@ const X2 = J2.exports, ee = (i, e, t = "$children") => {
5353
5359
  },
5354
5360
  methods: {
5355
5361
  onAddBlockMount(i, e) {
5356
- !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]);
5362
+ !this.onAddRedis[i] || !e || (e.$el && this.$nextTick(() => ot(e.$el, { offset: 100 })), typeof e[this.onAddRedis[i]] == "function" && e[this.onAddRedis[i]](), delete this.onAddRedis[i]);
5357
5363
  },
5358
5364
  onBlockToggleVisible(i, e) {
5359
5365
  const a = [...this.readLayout].findIndex(
@@ -5377,7 +5383,7 @@ const X2 = J2.exports, ee = (i, e, t = "$children") => {
5377
5383
  const a = i.itemId.split("-")[1];
5378
5384
  this.removePackageGroup(a);
5379
5385
  } else
5380
- ee(i, (n) => {
5386
+ ae(i, (n) => {
5381
5387
  n.value && Object.values(n.value).forEach((s) => {
5382
5388
  this.removeFormKeyValue(`${s}`);
5383
5389
  let o = s.replace(
@@ -5417,7 +5423,7 @@ const X2 = J2.exports, ee = (i, e, t = "$children") => {
5417
5423
  if (e !== null && t !== null) {
5418
5424
  if (e === t)
5419
5425
  return;
5420
- const n = Ce(
5426
+ const n = xe(
5421
5427
  this.nestedReadLayout,
5422
5428
  e,
5423
5429
  t
@@ -5438,17 +5444,17 @@ const X2 = J2.exports, ee = (i, e, t = "$children") => {
5438
5444
  contentData: l
5439
5445
  });
5440
5446
  o({ validation: c, data: g });
5441
- const M = ve({ tree: r }), ae = [
5447
+ const M = we({ tree: r }), oe = [
5442
5448
  ...this.nestedReadLayout.slice(0, t),
5443
5449
  ...M,
5444
5450
  ...this.nestedReadLayout.slice(t)
5445
5451
  ];
5446
5452
  this.setFormValue({
5447
5453
  key: "template.views.read.nodes",
5448
- value: I(ae)
5454
+ value: I(oe)
5449
5455
  });
5450
- const [{ nodeId: ne }] = r;
5451
- this.onAddRedis[ne] = S;
5456
+ const [{ nodeId: le }] = r;
5457
+ this.onAddRedis[le] = S;
5452
5458
  }
5453
5459
  },
5454
5460
  shouldAnimateDrop(i) {
@@ -5456,7 +5462,7 @@ const X2 = J2.exports, ee = (i, e, t = "$children") => {
5456
5462
  }
5457
5463
  }
5458
5464
  };
5459
- var ti = function() {
5465
+ var si = function() {
5460
5466
  var e = this, t = e._self._c;
5461
5467
  return t("div", { staticClass: "h-screen overflow-auto" }, [t("div", { staticClass: "relative flex min-h-screen flex-row bg-gray-200", class: {
5462
5468
  "is-edit-view": e.isEditView,
@@ -5535,18 +5541,18 @@ var ti = function() {
5535
5541
  } } }, [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) {
5536
5542
  e.drawerState.openSection = null;
5537
5543
  } } }), t("portal-target", { attrs: { name: "drawer-content" } })], 1)], 1)]);
5538
- }, ii = [function() {
5544
+ }, oi = [function() {
5539
5545
  var i = this, e = i._self._c;
5540
5546
  return e("div", { staticClass: "drag-drop-illustration-block" }, [e("div"), e("div")]);
5541
- }], ai = /* @__PURE__ */ d(
5542
- ei,
5543
- ti,
5544
- ii,
5547
+ }], li = /* @__PURE__ */ d(
5548
+ ni,
5549
+ si,
5550
+ oi,
5545
5551
  !1,
5546
5552
  null,
5547
- "3db19ed2"
5553
+ "8032bdc2"
5548
5554
  );
5549
- const ni = ai.exports, si = {
5555
+ const ri = li.exports, ci = {
5550
5556
  name: "DocumentSend",
5551
5557
  i18nOptions: {
5552
5558
  namespaces: "documentSend",
@@ -5570,12 +5576,12 @@ const ni = ai.exports, si = {
5570
5576
  }
5571
5577
  },
5572
5578
  components: {
5573
- AddBlock: X,
5574
- Drawer: Q,
5575
- SendForm: nt,
5576
- CCheckbox: ye,
5577
- CIcon: xe,
5578
- CButton: we,
5579
+ AddBlock: ie,
5580
+ Drawer: ee,
5581
+ SendForm: lt,
5582
+ CCheckbox: K,
5583
+ CIcon: be,
5584
+ CButton: ke,
5579
5585
  IsPremium: $,
5580
5586
  IsPremiumPreStep: L
5581
5587
  },
@@ -5667,7 +5673,7 @@ const ni = ai.exports, si = {
5667
5673
  }
5668
5674
  }
5669
5675
  };
5670
- var oi = function() {
5676
+ var di = function() {
5671
5677
  var e = this, t = e._self._c;
5672
5678
  return e.mq !== "sm" || e.isOpen ? t(e.mq === "sm" ? "div" : "Drawer", { tag: "component", attrs: { placement: "right" }, model: { value: e.isOpen, callback: function(a) {
5673
5679
  e.isOpen = a;
@@ -5694,15 +5700,15 @@ var oi = function() {
5694
5700
  return a({ sectionKey: "answer", document: e._document });
5695
5701
  } } }, [e._v(" " + e._s(e.$t("signMissingAdd")) + " ")])];
5696
5702
  } }], null, !1, 1245343054) })], 1)])])], 1)]) : e._e();
5697
- }, li = [], ri = /* @__PURE__ */ d(
5698
- si,
5699
- oi,
5700
- li,
5703
+ }, pi = [], ui = /* @__PURE__ */ d(
5704
+ ci,
5705
+ di,
5706
+ pi,
5701
5707
  !1,
5702
5708
  null,
5703
- "671b8468"
5709
+ "e107ef52"
5704
5710
  );
5705
- const ci = ri.exports, di = {
5711
+ const mi = ui.exports, hi = {
5706
5712
  i18nOptions: {
5707
5713
  namespaces: "DocumentTemplateFormModal",
5708
5714
  messages: {
@@ -5731,6 +5737,11 @@ const ci = ri.exports, di = {
5731
5737
  }
5732
5738
  },
5733
5739
  name: "DocumentTemplateFormModal",
5740
+ components: {
5741
+ CCallout: ct,
5742
+ CCheckbox: K,
5743
+ CField: O
5744
+ },
5734
5745
  props: {
5735
5746
  document: {
5736
5747
  type: Object,
@@ -5845,7 +5856,7 @@ const ci = ri.exports, di = {
5845
5856
  }
5846
5857
  }
5847
5858
  };
5848
- var pi = function() {
5859
+ var fi = function() {
5849
5860
  var e = this, t = e._self._c;
5850
5861
  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) {
5851
5862
  e.name = a;
@@ -5854,24 +5865,24 @@ var pi = function() {
5854
5865
  }, 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) {
5855
5866
  e.keepClients = a;
5856
5867
  }, 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);
5857
- }, ui = [], mi = /* @__PURE__ */ d(
5858
- di,
5859
- pi,
5860
- ui,
5868
+ }, gi = [], Ci = /* @__PURE__ */ d(
5869
+ hi,
5870
+ fi,
5871
+ gi,
5861
5872
  !1,
5862
5873
  null,
5863
- "ea90dfe8"
5874
+ "f4bb8ca4"
5864
5875
  );
5865
- const te = mi.exports;
5866
- function hi(i, e, t) {
5876
+ const ne = Ci.exports;
5877
+ function vi(i, e, t) {
5867
5878
  return i === i && (t !== void 0 && (i = i <= t ? i : t), e !== void 0 && (i = i >= e ? i : e)), i;
5868
5879
  }
5869
- var fi = hi, gi = fi, F = Ke;
5870
- function Ci(i, e, t) {
5871
- 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);
5880
+ var yi = vi, xi = yi, F = Je;
5881
+ function wi(i, e, t) {
5882
+ 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), xi(F(i), e, t);
5872
5883
  }
5873
- var vi = Ci;
5874
- const yi = /* @__PURE__ */ q(vi), xi = {
5884
+ var bi = wi;
5885
+ const ki = /* @__PURE__ */ Y(bi), _i = {
5875
5886
  name: "RemainingTrialButton",
5876
5887
  components: { IsPremium: $ },
5877
5888
  i18nOptions: {
@@ -5903,10 +5914,10 @@ const yi = /* @__PURE__ */ q(vi), xi = {
5903
5914
  },
5904
5915
  mixins: [w],
5905
5916
  methods: {
5906
- clamp: yi
5917
+ clamp: ki
5907
5918
  }
5908
5919
  };
5909
- var wi = function() {
5920
+ var Li = function() {
5910
5921
  var e = this, t = e._self._c;
5911
5922
  return t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({
5912
5923
  accountType: a,
@@ -5920,29 +5931,31 @@ var wi = function() {
5920
5931
  width: e.clamp(n / o * 100, 0, 100) + "%"
5921
5932
  } })])])]) : e._e()];
5922
5933
  } }]) });
5923
- }, bi = [], ki = /* @__PURE__ */ d(
5924
- xi,
5925
- wi,
5926
- bi,
5934
+ }, $i = [], Si = /* @__PURE__ */ d(
5935
+ _i,
5936
+ Li,
5937
+ $i,
5927
5938
  !1,
5928
5939
  null,
5929
- "c0dbb5e9"
5940
+ "f079a701"
5930
5941
  );
5931
- const _i = ki.exports, V = E.observable({
5942
+ const Ti = Si.exports, V = q.observable({
5932
5943
  canEdit: !1,
5933
5944
  isForm: !0,
5934
5945
  setFormValue: null,
5935
5946
  removeFormValue: null
5936
- }), Li = {
5947
+ }), Di = {
5937
5948
  name: "DocumentForm",
5938
5949
  components: {
5939
- DocumentFormContainer: ni,
5950
+ DocumentFormContainer: ri,
5940
5951
  IsPremium: $,
5941
5952
  IsPremiumPreStep: L,
5942
- DocumentSend: ci,
5943
- RemainingTrialButton: _i
5953
+ DocumentSend: mi,
5954
+ RemainingTrialButton: Ti,
5955
+ CDropdown: P,
5956
+ CDropdownItem: E
5944
5957
  },
5945
- mixins: [ot, w],
5958
+ mixins: [rt, w],
5946
5959
  provide: () => ({ viewSettings: V }),
5947
5960
  props: {
5948
5961
  document: {
@@ -6029,7 +6042,7 @@ const _i = ki.exports, V = E.observable({
6029
6042
  },
6030
6043
  async saveAsTemplate() {
6031
6044
  this.document && this.$modal.show(
6032
- te,
6045
+ ne,
6033
6046
  {
6034
6047
  document: this.document,
6035
6048
  onSaveTemplate: this.onSaveTemplate
@@ -6046,7 +6059,7 @@ const _i = ki.exports, V = E.observable({
6046
6059
  }
6047
6060
  }
6048
6061
  };
6049
- var $i = function() {
6062
+ var Vi = function() {
6050
6063
  var e = this, t = e._self._c;
6051
6064
  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) {
6052
6065
  e.view = a;
@@ -6081,15 +6094,15 @@ var $i = function() {
6081
6094
  reminders: "data.reminders",
6082
6095
  name: "data.name"
6083
6096
  }, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "on-save-document": e.onSaveDocument } })], 1) : e._e();
6084
- }, Si = [], Ti = /* @__PURE__ */ d(
6085
- Li,
6086
- $i,
6087
- Si,
6097
+ }, Bi = [], Mi = /* @__PURE__ */ d(
6098
+ Di,
6099
+ Vi,
6100
+ Bi,
6088
6101
  !1,
6089
6102
  null,
6090
6103
  null
6091
6104
  );
6092
- const Di = Ti.exports, Vi = {
6105
+ const Ii = Mi.exports, Fi = {
6093
6106
  name: "DocumentFormRecent",
6094
6107
  i18nOptions: {
6095
6108
  namespaces: "DocumentFormRecent",
@@ -6106,7 +6119,8 @@ const Di = Ti.exports, Vi = {
6106
6119
  },
6107
6120
  components: {
6108
6121
  IsPremium: $,
6109
- IsPremiumPreStep: L
6122
+ IsPremiumPreStep: L,
6123
+ CSkeleton: dt
6110
6124
  },
6111
6125
  data() {
6112
6126
  return {
@@ -6135,7 +6149,7 @@ const Di = Ti.exports, Vi = {
6135
6149
  async fetchDocuments(i) {
6136
6150
  const e = this.query ? 180 : 90, t = {
6137
6151
  createdAt: {
6138
- $gte: this.$formatDate(be(/* @__PURE__ */ new Date(), e), "yyyy-MM-dd")
6152
+ $gte: this.$formatDate(_e(/* @__PURE__ */ new Date(), e), "yyyy-MM-dd")
6139
6153
  },
6140
6154
  // Only provide or if there is a search query to filter on
6141
6155
  ...this.query && {
@@ -6152,7 +6166,7 @@ const Di = Ti.exports, Vi = {
6152
6166
  }
6153
6167
  ]
6154
6168
  }
6155
- }, { data: a } = await ke.getAll({
6169
+ }, { data: a } = await Le.getAll({
6156
6170
  lean: !0,
6157
6171
  filter: encodeURIComponent(JSON.stringify(t)),
6158
6172
  fields: "clients,data.name,createdAt",
@@ -6162,7 +6176,7 @@ const Di = Ti.exports, Vi = {
6162
6176
  }), { items: n = [] } = a || {};
6163
6177
  return n;
6164
6178
  },
6165
- onLoadDocuments: z(async function() {
6179
+ onLoadDocuments: Z(async function() {
6166
6180
  this.isLoading = !0, this.hasItems = !0;
6167
6181
  const e = await this.fetchDocuments();
6168
6182
  (!e || !e.length) && (this.canFetchMore = !1), this.list = [...e || []], this.isLoading = !1;
@@ -6177,7 +6191,7 @@ const Di = Ti.exports, Vi = {
6177
6191
  }
6178
6192
  }
6179
6193
  };
6180
- var Bi = function() {
6194
+ var Hi = function() {
6181
6195
  var e = this, t = e._self._c;
6182
6196
  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) {
6183
6197
  e.query = a;
@@ -6204,15 +6218,15 @@ var Bi = function() {
6204
6218
  }), 0)];
6205
6219
  } }], null, !0) })];
6206
6220
  } }]) })]], 2)]);
6207
- }, Mi = [], Ii = /* @__PURE__ */ d(
6208
- Vi,
6209
- Bi,
6210
- Mi,
6221
+ }, Ai = [], Pi = /* @__PURE__ */ d(
6222
+ Fi,
6223
+ Hi,
6224
+ Ai,
6211
6225
  !1,
6212
6226
  null,
6213
- "9c78dbb6"
6227
+ "5042c114"
6214
6228
  );
6215
- const Fi = Ii.exports, Hi = /* @__PURE__ */ _e({
6229
+ const Ei = Pi.exports, zi = /* @__PURE__ */ $e({
6216
6230
  __name: "DocumentIcon",
6217
6231
  props: {
6218
6232
  isPlaceholder: { type: Boolean, default: !1 },
@@ -6224,13 +6238,13 @@ const Fi = Ii.exports, Hi = /* @__PURE__ */ _e({
6224
6238
  },
6225
6239
  emits: ["triggerOpenTemplate"],
6226
6240
  setup(i, { emit: e }) {
6227
- const t = i, a = () => e("triggerOpenTemplate"), n = Le(), s = $e(), o = y(() => s.style), l = y(() => s.staticClass), r = y(() => s.class), c = y(() => s.key), g = y(() => s.attrs), S = y(
6241
+ const t = i, a = () => e("triggerOpenTemplate"), n = Se(), s = Te(), o = y(() => s.style), l = y(() => s.staticClass), r = y(() => s.class), c = y(() => s.key), g = y(() => s.attrs), S = y(
6228
6242
  () => m.t("_common:empty", { thing: m.t("_common:template") })
6229
- ), M = y(() => Se(t.name, 60));
6230
- return { __sfc: !0, props: t, emit: e, handleClick: a, slots: n, data: s, staticStyle: o, staticClass: l, styleClass: r, key: c, attrs: g, emptyTempleTitle: S, docTempleTitle: M, BlockMedia: lt };
6243
+ ), M = y(() => De(t.name, 60));
6244
+ return { __sfc: !0, props: t, emit: e, handleClick: a, slots: n, data: s, staticStyle: o, staticClass: l, styleClass: r, key: c, attrs: g, emptyTempleTitle: S, docTempleTitle: M, BlockMedia: pt };
6231
6245
  }
6232
6246
  });
6233
- var Ai = function() {
6247
+ var Zi = function() {
6234
6248
  var e = this, t = e._self._c, a = e._self._setupProxy;
6235
6249
  return t("div", e._b({ key: a.key, staticClass: "item", class: [
6236
6250
  a.staticClass,
@@ -6243,15 +6257,15 @@ var Ai = function() {
6243
6257
  ], 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: {
6244
6258
  backgroundImage: `url(${e.thumbnail})`
6245
6259
  } }) : 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)]);
6246
- }, Pi = [], Ei = /* @__PURE__ */ d(
6247
- Hi,
6248
- Ai,
6249
- Pi,
6260
+ }, Oi = [], Ui = /* @__PURE__ */ d(
6261
+ zi,
6262
+ Zi,
6263
+ Oi,
6250
6264
  !1,
6251
6265
  null,
6252
- "b9a00284"
6266
+ "3f382eb1"
6253
6267
  );
6254
- const zi = Ei.exports, Zi = {
6268
+ const Ri = Ui.exports, Gi = {
6255
6269
  name: "HorizontalScroll",
6256
6270
  components: {
6257
6271
  Simplebar: _
@@ -6306,7 +6320,7 @@ const zi = Ei.exports, Zi = {
6306
6320
  }
6307
6321
  }
6308
6322
  };
6309
- var Oi = function() {
6323
+ var Wi = function() {
6310
6324
  var e = this, t = e._self._c;
6311
6325
  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) {
6312
6326
  return e.go(-1);
@@ -6319,16 +6333,16 @@ var Oi = function() {
6319
6333
  return e.$emit("expand");
6320
6334
  } } })];
6321
6335
  })], 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)]);
6322
- }, Ui = [], Ri = /* @__PURE__ */ d(
6323
- Zi,
6324
- Oi,
6325
- Ui,
6336
+ }, qi = [], Ni = /* @__PURE__ */ d(
6337
+ Gi,
6338
+ Wi,
6339
+ qi,
6326
6340
  !1,
6327
6341
  null,
6328
- "31e10485"
6342
+ "94f802b3"
6329
6343
  );
6330
- const Gi = Ri.exports;
6331
- function Wi(i, { availableProducts: e }) {
6344
+ const ji = Ni.exports;
6345
+ function Ki(i, { availableProducts: e }) {
6332
6346
  if (!i)
6333
6347
  throw new Error("Missing parameter templateId");
6334
6348
  const t = e, a = Object.keys(t).find((n) => {
@@ -6341,10 +6355,10 @@ function Wi(i, { availableProducts: e }) {
6341
6355
  });
6342
6356
  return a ? t[a] : null;
6343
6357
  }
6344
- async function qi(i) {
6358
+ async function Yi(i) {
6345
6359
  if (!i)
6346
6360
  throw new Error("Missing argument stripeProduct");
6347
- const e = i == null ? void 0 : i.prices[0], { data: t } = await Te.createCheckoutSession({
6361
+ const e = i == null ? void 0 : i.prices[0], { data: t } = await Ve.createCheckoutSession({
6348
6362
  items: [
6349
6363
  {
6350
6364
  stripePriceStripeId: e.stripeId,
@@ -6356,25 +6370,25 @@ async function qi(i) {
6356
6370
  }), { redirectUrl: a } = t;
6357
6371
  window.open(a, "_blank");
6358
6372
  }
6359
- function ie(i, { availableProducts: e }) {
6373
+ function se(i, { availableProducts: e }) {
6360
6374
  var n, s, o;
6361
6375
  let t = null;
6362
- const a = Wi(i.templateId, {
6376
+ const a = Ki(i.templateId, {
6363
6377
  availableProducts: e
6364
6378
  });
6365
6379
  return a && (t = {
6366
- price: R((n = a == null ? void 0 : a.prices) == null ? void 0 : n[0].amount, {
6380
+ price: W((n = a == null ? void 0 : a.prices) == null ? void 0 : n[0].amount, {
6367
6381
  currency: (s = a == null ? void 0 : a.prices) == null ? void 0 : s[0].currency
6368
6382
  }),
6369
6383
  isPurchased: ((o = i.purchaseInfo) == null ? void 0 : o.isPurchased) || !1,
6370
- onBuy: async () => qi(a)
6384
+ onBuy: async () => Yi(a)
6371
6385
  }), t;
6372
6386
  }
6373
- const Ni = {
6387
+ const Qi = {
6374
6388
  name: "GalleryTemplateModal",
6375
6389
  components: {
6376
6390
  simplebar: _,
6377
- DocumentLayout: Ne,
6391
+ DocumentLayout: Ke,
6378
6392
  IsPremium: $,
6379
6393
  IsPremiumPreStep: L
6380
6394
  },
@@ -6444,7 +6458,7 @@ const Ni = {
6444
6458
  isSuperUser: "application/isSuperUser"
6445
6459
  }),
6446
6460
  previewDocument() {
6447
- const { data: i, defaultData: e } = this.template, t = new N({
6461
+ const { data: i, defaultData: e } = this.template, t = new Q({
6448
6462
  data: {
6449
6463
  ...e,
6450
6464
  template: i,
@@ -6460,7 +6474,7 @@ const Ni = {
6460
6474
  }
6461
6475
  },
6462
6476
  created() {
6463
- this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn = De.on(
6477
+ this.privateProduct = this.product, this.loadTemplateStat(), this.product && (this.socketUnsubscribeFn = Be.on(
6464
6478
  "event",
6465
6479
  async ({ type: i, action: e, data: t }) => {
6466
6480
  var a;
@@ -6473,7 +6487,7 @@ const Ni = {
6473
6487
  isVisibleApp: !0,
6474
6488
  includePurchaseInfo: !0
6475
6489
  }, o = await this.fetchGallery(s);
6476
- this.privateProduct = ie(
6490
+ this.privateProduct = se(
6477
6491
  o[0],
6478
6492
  { availableProducts: this.stripeProducts }
6479
6493
  );
@@ -6489,7 +6503,7 @@ const Ni = {
6489
6503
  const i = this.template.id;
6490
6504
  i || (this.templateStat = null);
6491
6505
  try {
6492
- const { data: e } = await Ve.get(i);
6506
+ const { data: e } = await Me.get(i);
6493
6507
  this.templateStat = e;
6494
6508
  } catch {
6495
6509
  this.templateStat = null;
@@ -6506,11 +6520,11 @@ const Ni = {
6506
6520
  },
6507
6521
  async copyToClipboard(i) {
6508
6522
  const e = `${f.baseUrl}/template/${i}`;
6509
- await j(e) && P("info", this.$t("copyMessage"));
6523
+ await J(e) && z("info", this.$t("copyMessage"));
6510
6524
  }
6511
6525
  }
6512
6526
  };
6513
- var ji = function() {
6527
+ var Ji = function() {
6514
6528
  var a;
6515
6529
  var e = this, t = e._self._c;
6516
6530
  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: {
@@ -6533,15 +6547,15 @@ var ji = function() {
6533
6547
  } }]) }), e.allowCopyTemplateLink ? t("CButton", { attrs: { type: "none", "icon-left": "link", wide: "" }, on: { click: function(n) {
6534
6548
  return e.copyToClipboard(e.template.id);
6535
6549
  } } }, [e._v(" " + e._s(e.$t("_common:share", { thing: e.$t("_common:link") })) + " ")]) : e._e()], 2)])]);
6536
- }, Ki = [], Yi = /* @__PURE__ */ d(
6537
- Ni,
6538
- ji,
6539
- Ki,
6550
+ }, Xi = [], ea = /* @__PURE__ */ d(
6551
+ Qi,
6552
+ Ji,
6553
+ Xi,
6540
6554
  !1,
6541
6555
  null,
6542
- "a4cb4a3f"
6556
+ "bf9bb994"
6543
6557
  );
6544
- const Qi = Yi.exports, Ji = {
6558
+ const ta = ea.exports, ia = {
6545
6559
  name: "GalleryLogic",
6546
6560
  i18nOptions: {
6547
6561
  namespaces: "GalleryLogic",
@@ -6666,7 +6680,7 @@ const Qi = Yi.exports, Ji = {
6666
6680
  }
6667
6681
  },
6668
6682
  beforeCreate() {
6669
- this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", Je);
6683
+ this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", tt);
6670
6684
  },
6671
6685
  async created() {
6672
6686
  var t, a, n, s;
@@ -6701,7 +6715,7 @@ const Qi = Yi.exports, Ji = {
6701
6715
  const e = await this.fetchGallery(i);
6702
6716
  this.templateGalleryItems = (e || []).map((t) => {
6703
6717
  if (this.canPurchase && t.isPurchasable) {
6704
- const a = ie(t, {
6718
+ const a = se(t, {
6705
6719
  availableProducts: this.stripeProducts
6706
6720
  });
6707
6721
  a && (t.product = a);
@@ -6725,7 +6739,7 @@ const Qi = Yi.exports, Ji = {
6725
6739
  isVisibleApp: !0,
6726
6740
  includePurchaseInfo: !0
6727
6741
  }, t = await this.fetchGallery(e), a = (s = t == null ? void 0 : t[0]) == null ? void 0 : s.templateId;
6728
- return a ? (Be(a), new Me(a)) : null;
6742
+ return a ? (Ie(a), new Fe(a)) : null;
6729
6743
  },
6730
6744
  onUseTemplate(i) {
6731
6745
  if (!i)
@@ -6748,7 +6762,7 @@ const Qi = Yi.exports, Ji = {
6748
6762
  fortnoxCom: "/img/fortnox/apple-touch-icon-180x180.png"
6749
6763
  };
6750
6764
  this.$modal.show(
6751
- Qi,
6765
+ ta,
6752
6766
  {
6753
6767
  template: i,
6754
6768
  fetchGallery: this.fetchGallery,
@@ -6803,16 +6817,16 @@ const Qi = Yi.exports, Ji = {
6803
6817
  selectGalleryItem: this.selectGalleryItem
6804
6818
  });
6805
6819
  }
6806
- }, Xi = null, ea = null;
6807
- var ta = /* @__PURE__ */ d(
6808
- Ji,
6809
- Xi,
6810
- ea,
6820
+ }, aa = null, na = null;
6821
+ var sa = /* @__PURE__ */ d(
6822
+ ia,
6823
+ aa,
6824
+ na,
6811
6825
  !1,
6812
6826
  null,
6813
6827
  null
6814
6828
  );
6815
- const ia = ta.exports, aa = {
6829
+ const oa = sa.exports, la = {
6816
6830
  i18nOptions: {
6817
6831
  namespaces: "TemplateSelector",
6818
6832
  messages: {
@@ -6856,11 +6870,13 @@ const ia = ta.exports, aa = {
6856
6870
  },
6857
6871
  name: "TemplateSelector",
6858
6872
  components: {
6859
- HorizontalScroll: Gi,
6860
- DocumentIcon: zi,
6861
- DocumentRecent: Fi,
6862
- GalleryLogic: ia,
6863
- IsPremiumPreStep: L
6873
+ HorizontalScroll: ji,
6874
+ DocumentIcon: Ri,
6875
+ DocumentRecent: Ei,
6876
+ GalleryLogic: oa,
6877
+ IsPremiumPreStep: L,
6878
+ CDropdown: P,
6879
+ CDropdownItem: E
6864
6880
  },
6865
6881
  mixins: [w],
6866
6882
  props: {
@@ -6980,7 +6996,7 @@ const ia = ta.exports, aa = {
6980
6996
  },
6981
6997
  async saveTemplate(i) {
6982
6998
  try {
6983
- const { data: e } = i, t = Ie(e, [
6999
+ const { data: e } = i, t = He(e, [
6984
7000
  "_id",
6985
7001
  "id",
6986
7002
  "companyId",
@@ -6994,7 +7010,7 @@ const ia = ta.exports, aa = {
6994
7010
  },
6995
7011
  async openTemplateFormModal({ document: i = null, template: e = null }) {
6996
7012
  this.$modal.show(
6997
- te,
7013
+ ne,
6998
7014
  {
6999
7015
  document: i,
7000
7016
  template: e,
@@ -7011,7 +7027,7 @@ const ia = ta.exports, aa = {
7011
7027
  );
7012
7028
  },
7013
7029
  async fetchGallery(i = {}) {
7014
- const { data: e } = await Fe.get(i);
7030
+ const { data: e } = await Ae.get(i);
7015
7031
  return e;
7016
7032
  },
7017
7033
  canUseTemplate(i) {
@@ -7019,11 +7035,11 @@ const ia = ta.exports, aa = {
7019
7035
  },
7020
7036
  async copyToClipboard(i) {
7021
7037
  const e = `${f.baseUrl}/template/${i}`;
7022
- await j(e) && P("info", this.$t("copyMessage"));
7038
+ await J(e) && z("info", this.$t("copyMessage"));
7023
7039
  }
7024
7040
  }
7025
7041
  };
7026
- var na = function() {
7042
+ var ra = function() {
7027
7043
  var e = this, t = e._self._c;
7028
7044
  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 }) {
7029
7045
  return [t(e.isExpanded ? "div" : "HorizontalScroll", { tag: "component", staticClass: "template-list", class: { "is-expanded": e.isExpanded }, on: { expand: function(n) {
@@ -7078,35 +7094,33 @@ var na = function() {
7078
7094
  }, proxy: !0 }], null, !0) });
7079
7095
  }), 1)], 1)];
7080
7096
  } }], null, !1, 3414906714) })] : 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)]);
7081
- }, sa = [], oa = /* @__PURE__ */ d(
7082
- aa,
7083
- na,
7084
- sa,
7097
+ }, ca = [], da = /* @__PURE__ */ d(
7098
+ la,
7099
+ ra,
7100
+ ca,
7085
7101
  !1,
7086
7102
  null,
7087
- "3bd7c759"
7103
+ "046b633b"
7088
7104
  );
7089
- const la = oa.exports;
7090
- var ra = He, ca = Ae, da = Pe;
7091
- function pa(i, e, t) {
7105
+ const pa = da.exports;
7106
+ var ua = Pe, ma = Ee, ha = ze;
7107
+ function fa(i, e, t) {
7092
7108
  for (var a = -1, n = e.length, s = {}; ++a < n; ) {
7093
- var o = e[a], l = ra(i, o);
7094
- t(l, o) && ca(s, da(o, i), l);
7109
+ var o = e[a], l = ua(i, o);
7110
+ t(l, o) && ma(s, ha(o, i), l);
7095
7111
  }
7096
7112
  return s;
7097
7113
  }
7098
- var ua = pa, ma = ua, ha = Ee;
7099
- function fa(i, e) {
7100
- return ma(i, e, function(t, a) {
7101
- return ha(i, a);
7114
+ var ga = fa, Ca = ga, va = Ze;
7115
+ function ya(i, e) {
7116
+ return Ca(i, e, function(t, a) {
7117
+ return va(i, a);
7102
7118
  });
7103
7119
  }
7104
- var ga = fa, Ca = ga, va = tt, ya = va(function(i, e) {
7105
- return i == null ? {} : Ca(i, e);
7106
- }), xa = ya;
7107
- const wa = /* @__PURE__ */ q(xa);
7108
- E.use(st);
7109
- const ba = {
7120
+ var xa = ya, wa = xa, ba = nt, ka = ba(function(i, e) {
7121
+ return i == null ? {} : wa(i, e);
7122
+ }), _a = ka;
7123
+ const La = /* @__PURE__ */ Y(_a), $a = {
7110
7124
  name: "DocForm",
7111
7125
  i18nOptions: {
7112
7126
  namespaces: "widgetDocForm",
@@ -7120,9 +7134,9 @@ const ba = {
7120
7134
  }
7121
7135
  },
7122
7136
  components: {
7123
- TemplateSelector: la,
7124
- DocumentForm: Di,
7125
- PostSend: ut
7137
+ TemplateSelector: pa,
7138
+ DocumentForm: Ii,
7139
+ PostSend: gt
7126
7140
  },
7127
7141
  provide() {
7128
7142
  return {
@@ -7185,7 +7199,7 @@ const ba = {
7185
7199
  };
7186
7200
  },
7187
7201
  computed: {
7188
- ...ze({
7202
+ ...Oe({
7189
7203
  company: "application/company",
7190
7204
  feature: "application/feature",
7191
7205
  can: "application/can",
@@ -7218,7 +7232,7 @@ const ba = {
7218
7232
  (!this.rawDoc || (i = this.rawDoc) != null && i.__isNew) && (this.view = "templateSelect");
7219
7233
  },
7220
7234
  methods: {
7221
- ...Ze({
7235
+ ...Ue({
7222
7236
  removeFormKeyValue: h.REMOVE_FORM_KEY_VALUE,
7223
7237
  loadDocumentForm: h.LOAD_DOCUMENT2_FORM,
7224
7238
  duplicateDocumentForm: h.LOAD_DUPLICATE_DOCUMENT2_FORM,
@@ -7229,7 +7243,7 @@ const ba = {
7229
7243
  async initDoc() {
7230
7244
  if (!this.rawDoc)
7231
7245
  throw new Error("Missing initiated form document");
7232
- this.document = new N({
7246
+ this.document = new Q({
7233
7247
  data: this.rawDoc,
7234
7248
  can: this.can,
7235
7249
  getters: this.$store.getters,
@@ -7238,7 +7252,7 @@ const ba = {
7238
7252
  },
7239
7253
  async onTemplateSelect({ templateId: i, documentId: e, formData: t }) {
7240
7254
  var n;
7241
- const a = wa({ ...this.rawDoc }, [
7255
+ const a = La({ ...this.rawDoc }, [
7242
7256
  "__tempId",
7243
7257
  "externalReferences",
7244
7258
  "subscriberCompanyUserIds",
@@ -7250,7 +7264,7 @@ const ba = {
7250
7264
  _formData: a
7251
7265
  }) : await this.loadDocumentForm({
7252
7266
  templateId: i,
7253
- formData: t ? Oe(t, a) : null,
7267
+ formData: t ? Re(t, a) : null,
7254
7268
  _formData: a
7255
7269
  }), (n = a == null ? void 0 : a.data) != null && n.name && this.setDocValue({ key: "data.name", value: a.data.name }), await this.initDoc(), this.view = "editor";
7256
7270
  },
@@ -7290,20 +7304,20 @@ const ba = {
7290
7304
  }
7291
7305
  }
7292
7306
  };
7293
- var ka = function() {
7307
+ var Sa = function() {
7294
7308
  var e = this, t = e._self._c;
7295
7309
  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 }, scopedSlots: e._u([{ key: "nav-right-action", fn: function() {
7296
7310
  return [e.isEditingTemplate ? t("CButton", { staticClass: "d-nav-button position right save-template-button", staticStyle: { "min-width": "6em", "font-size": "16px" }, attrs: { loading: e.isSavingTemplate, disabled: !e.canDoActions, "icon-left": "template", type: "secondary", thinner: "", rounded: "" }, on: { click: e.onSaveTemplateClick } }, [e._v(" " + e._s(e.$t("_common:save", { thing: e.$t("_common:template") })) + " ")]) : e._e()];
7297
7311
  }, proxy: !0 }]) }) : e.view === "postSend" ? t("PostSend", { attrs: { document: e.document, "on-send-func": e.closeFunc, "on-close-func": e.closeFunc } }) : e._e()], 1);
7298
- }, _a = [], La = /* @__PURE__ */ d(
7299
- ba,
7300
- ka,
7301
- _a,
7312
+ }, Ta = [], Da = /* @__PURE__ */ d(
7313
+ $a,
7314
+ Sa,
7315
+ Ta,
7302
7316
  !1,
7303
7317
  null,
7304
- "297c06c4"
7318
+ "a10d9c03"
7305
7319
  );
7306
- const ja = La.exports;
7320
+ const tn = Da.exports;
7307
7321
  export {
7308
- ja as default
7322
+ tn as default
7309
7323
  };