@cling-se/widget 0.9.27 → 0.9.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/dist/{AddClientCallout-dd99d0d5.js → AddClientCallout-ce5f5f46.js} +6 -12
  2. package/dist/{AnswerModal-6afa03a5.js → AnswerModal-3221683b.js} +37 -37
  3. package/dist/{AttachmentItem-f77592a9.js → AttachmentItem-2c1174e0.js} +3 -3
  4. package/dist/{BaseDatePicker-8a39d0c2.js → BaseDatePicker-a82aba1b.js} +654 -624
  5. package/dist/{BaseInput-dbd3178b.js → BaseInput-489bd05b.js} +1 -1
  6. package/dist/{BaseUpload-38ad6097.js → BaseUpload-dc4efbd3.js} +13 -13
  7. package/dist/{BlockMedia-843990e1.js → BlockMedia-d91bb4a5.js} +1 -1
  8. package/dist/{CCallout-c0f901a7.js → CCallout-3d3df80b.js} +2 -2
  9. package/dist/{CDropdownItem-fa88e012.js → CDropdownItem-80d6f1d6.js} +18 -16
  10. package/dist/{CField-3a437b10.js → CField-617ee7e0.js} +1 -1
  11. package/dist/{CPhoneFormat-a9139d94.js → CPhoneFormat-8e8c1862.js} +1 -1
  12. package/dist/{CSlider.vue_vue_type_style_index_0_lang-76a4be84.js → CSlider.vue_vue_type_style_index_0_lang-61beea49.js} +1 -1
  13. package/dist/{ClientAutocomplete-7cb8a2e1.js → ClientAutocomplete-2b46278b.js} +2 -2
  14. package/dist/{ClientModal-26774205.js → ClientModal-3d6a6254.js} +116 -63
  15. package/dist/{ColorPicker-98baa7d4.js → ColorPicker-b5a7c17d.js} +1 -1
  16. package/dist/{CompanyModal-897f5534.js → CompanyModal-72197be9.js} +3 -3
  17. package/dist/{ContentWrapper-e1e093b7.js → ContentWrapper-0ef2034e.js} +13 -13
  18. package/dist/{CoverBlockSettings-97d062e1.js → CoverBlockSettings-fea5025d.js} +26 -36
  19. package/dist/{DocAnswer-a8c69056.js → DocAnswer-f07000a5.js} +4 -4
  20. package/dist/{DocDetails-f092d872.js → DocDetails-fc0f6699.js} +4 -4
  21. package/dist/{DocForm-889f2750.js → DocForm-1465fccc.js} +202 -197
  22. package/dist/{DocFormSend-58b44424.js → DocFormSend-8608a153.js} +22 -23
  23. package/dist/{DocLinks-1bdb3110.js → DocLinks-2b0860fb.js} +2 -2
  24. package/dist/{DocModalBase-afd069cd.js → DocModalBase-5ccf22f3.js} +1 -1
  25. package/dist/{DocPrint-3ff914fd.js → DocPrint-1700274a.js} +1 -1
  26. package/dist/{DocReceipt-19de0274.js → DocReceipt-44197299.js} +2 -2
  27. package/dist/{DocSendReminder-23716d0b.js → DocSendReminder-af802c73.js} +1 -1
  28. package/dist/{DocTextEditor-6b614e43.js → DocTextEditor-1704fa97.js} +8 -8
  29. package/dist/{DocTimeline-df7cb5f4.js → DocTimeline-63b452ad.js} +5 -5
  30. package/dist/{DocumentClient-61d7e50f.js → DocumentClient-38e59b20.js} +7 -7
  31. package/dist/{DocumentLayout-86646c16.js → DocumentLayout-3aa5beb7.js} +143 -143
  32. package/dist/{DocumentLogotype-14929724.js → DocumentLogotype-577bc574.js} +3 -3
  33. package/dist/{DocumentVoided-a9d41411.js → DocumentVoided-8c1fde51.js} +1 -1
  34. package/dist/{EmbedInput-71fd2f2a.js → EmbedInput-a13d0bd9.js} +2 -2
  35. package/dist/{EmbedSettings-2254a7c3.js → EmbedSettings-a89ca29c.js} +3 -3
  36. package/dist/{ErrorCallout-b482d289.js → ErrorCallout-4f239204.js} +1 -1
  37. package/dist/{FilePreviewModal-1802c766.js → FilePreviewModal-4c3604dd.js} +5 -5
  38. package/dist/Flag-bc43bb0c.js +116 -0
  39. package/dist/{HeaderSettings-10cfcc90.js → HeaderSettings-c4f142e8.js} +26 -36
  40. package/dist/{ImageSelectModal-594227d6.js → ImageSelectModal-c6313667.js} +17 -18
  41. package/dist/{ImageUploadWrapper-452e463d.js → ImageUploadWrapper-58b96176.js} +2 -2
  42. package/dist/{Index-84a484ed.js → Index-183a68e0.js} +9 -9
  43. package/dist/{Index-f1afee11.js → Index-2578fbeb.js} +7 -6
  44. package/dist/{Index-be92553f.js → Index-309834c5.js} +4 -4
  45. package/dist/{Index-dceaf93a.js → Index-37404666.js} +4 -4
  46. package/dist/{Index-a7b08aa1.js → Index-3c821630.js} +2 -2
  47. package/dist/{Index-8fc860de.js → Index-445088b5.js} +6 -6
  48. package/dist/{Index-88854d18.js → Index-5009df0b.js} +18 -17
  49. package/dist/{Index-a8206849.js → Index-5176befe.js} +2 -2
  50. package/dist/{Index-d036b1fb.js → Index-523a447e.js} +2 -2
  51. package/dist/{Index-3ee432f2.js → Index-57c10afa.js} +6 -6
  52. package/dist/{Index-780a5e8f.js → Index-5bffe550.js} +2 -2
  53. package/dist/{Index-235cb5f0.js → Index-6f556e68.js} +9 -9
  54. package/dist/{Index-354b4c80.js → Index-812afc8c.js} +2 -2
  55. package/dist/{Index-225e8cef.js → Index-83f30e6e.js} +10 -10
  56. package/dist/{Index-d645b179.js → Index-8ab66f25.js} +4 -4
  57. package/dist/{Index-28ce2c21.js → Index-9587b1a0.js} +3 -3
  58. package/dist/{Index-529ba57d.js → Index-a1c30649.js} +2 -2
  59. package/dist/{Index-9fd01853.js → Index-a6919f89.js} +4 -4
  60. package/dist/{Index-2131fa69.js → Index-a6afc0fb.js} +4 -4
  61. package/dist/{Index-c1d06810.js → Index-ac8b139d.js} +7 -7
  62. package/dist/{Index-83ef778b.js → Index-b0022178.js} +4 -4
  63. package/dist/{Index-0966b580.js → Index-b11034d9.js} +8 -8
  64. package/dist/{Index-5736c4f7.js → Index-bd08a626.js} +22 -22
  65. package/dist/{Index-2564d031.js → Index-bd748f4d.js} +5 -5
  66. package/dist/{Index-0f8c36f0.js → Index-c29ce250.js} +2 -2
  67. package/dist/{Index-2621d373.js → Index-c913c838.js} +4 -4
  68. package/dist/{Index-fe07902d.js → Index-c96b800d.js} +4 -4
  69. package/dist/{Index-5d37606d.js → Index-cc632439.js} +14 -14
  70. package/dist/{Index-e361a308.js → Index-cf86c57e.js} +1 -1
  71. package/dist/{Index-ddfe7813.js → Index-daf40983.js} +13 -15
  72. package/dist/{Index-17b82242.js → Index-ea4a220f.js} +16 -16
  73. package/dist/{Index-2e9bbe9d.js → Index-ed8d3227.js} +4 -4
  74. package/dist/{Index-5921d2de.js → Index-fe4ea35d.js} +7 -7
  75. package/dist/{Index-098078af.js → Index-ffbe09d0.js} +2 -2
  76. package/dist/{InputToggleRow-04cc08de.js → InputToggleRow-7ec3607f.js} +1 -1
  77. package/dist/{IsPremiumPreStep-94901e25.js → IsPremiumPreStep-178406ae.js} +30 -31
  78. package/dist/{ManualPopover-2fb96f78.js → ManualPopover-8b6a226d.js} +1 -1
  79. package/dist/{MediaWrapper-abd398c1.js → MediaWrapper-67b73943.js} +3 -3
  80. package/dist/{NotBindingText-92aa597b.js → NotBindingText-1e509df6.js} +2 -2
  81. package/dist/{PackageGroup-ea7e992f.js → PackageGroup-1d065d95.js} +15 -15
  82. package/dist/{PdfTerms-aa7ad8cd.js → PdfTerms-f4ec7376.js} +5 -5
  83. package/dist/{PdfViewer-a0c897a2.js → PdfViewer-a54231e8.js} +2 -2
  84. package/dist/{PlainHtml-234e0e43.js → PlainHtml-ae92cb56.js} +1 -1
  85. package/dist/{PriceHeader-1b81d019.js → PriceHeader-7c0bc252.js} +13 -13
  86. package/dist/{SearchApi-953a1b13.js → SearchApi-95506360.js} +2 -2
  87. package/dist/{Setup-7928d952.js → Setup-c4a6727b.js} +1 -1
  88. package/dist/{TermsSettings-d40ea3f3.js → TermsSettings-daaccf0c.js} +7 -7
  89. package/dist/{ThemeColorRow-0a8e8f1d.js → ThemeColorRow-8aa93760.js} +3 -3
  90. package/dist/{ToggleBinding-1d872e1c.js → ToggleBinding-5ea20a6d.js} +3 -3
  91. package/dist/{UploadModal-006e32ff.js → UploadModal-471296cd.js} +3 -3
  92. package/dist/{VideoPlayerInput-d2418095.js → VideoPlayerInput-a813f371.js} +3 -3
  93. package/dist/{VideoPlayerSettings-d1fa2cde.js → VideoPlayerSettings-e4675b6c.js} +4 -4
  94. package/dist/{VideoSelectModal-84cc0824.js → VideoSelectModal-0f75c3e9.js} +24 -24
  95. package/dist/{answerDocumentMixin-a896581b.js → answerDocumentMixin-e4d38bf0.js} +3 -3
  96. package/dist/{debounce-b30e6f76.js → debounce-249438e8.js} +9 -9
  97. package/dist/{focusDrawerMixin-8b4c70e5.js → focusDrawerMixin-88ff00cf.js} +1 -1
  98. package/dist/{formComponentsInstall-07c350b0.js → formComponentsInstall-f602ecc3.js} +158 -200
  99. package/dist/{formDrawerState-e3da6074.js → formDrawerState-8a5d45a8.js} +1 -1
  100. package/dist/{formValidationMixin-05028cb3.js → formValidationMixin-4c12cbd6.js} +1 -1
  101. package/dist/{index-3197309d.js → index-02573377.js} +7 -8
  102. package/dist/index-12a0fc1b.js +171 -0
  103. package/dist/index-23806d5a.js +14 -0
  104. package/dist/{index-a03d80b9.js → index-54f4fd56.js} +9 -9
  105. package/dist/{index-8a437f3d.js → index-8a009539.js} +44 -44
  106. package/dist/{index-7300a7f5.js → index-dce39a81.js} +1 -1
  107. package/dist/index.es.js +3 -3
  108. package/dist/index.umd.js +203 -209
  109. package/dist/{main-989855f4.js → main-8fe92642.js} +9880 -9285
  110. package/dist/{mapFormMixin-e6b8b5ef.js → mapFormMixin-18916025.js} +1 -1
  111. package/dist/{publicSenderState-4d6c69b4.js → publicSenderState-8aa670bb.js} +1 -1
  112. package/dist/style.css +2 -2
  113. package/dist/{throttle-440ddd80.js → throttle-780e6241.js} +2 -2
  114. package/dist/{tinycolor-f6c2d00e.js → tinycolor-2d236fc9.js} +1 -1
  115. package/dist/{tippy.esm-75dfd42d.js → tippy.esm-27ce514a.js} +5 -5
  116. package/dist/{utils-e1c6e4eb.js → utils-9be5e71d.js} +1 -1
  117. package/dist/{vuedraggable.umd-909ba53a.js → vuedraggable.umd-455d2d1d.js} +1 -1
  118. package/package.json +1 -1
  119. package/dist/image-1b55e804.js +0 -18
  120. package/dist/index-71ec8e8e.js +0 -15
  121. package/dist/index-fe840ba4.js +0 -166
  122. package/dist/simplebar.min-1ce579b3.js +0 -71
  123. package/dist/template-641a5e0d.js +0 -535
@@ -1,38 +1,36 @@
1
- import { b2 as fe, b3 as ge, b4 as q, b5 as Ce, b6 as N, b7 as j, b8 as ve, b9 as ye, ba as xe, bb as we, j as K, g as m, n as c, u as Y, b as u, aA as be, c as f, C as Q, bc as _e, bd as ke, J, K as H, h as D, be as Le, bf as $e, B as Se, bg as Te, bh as De, b1 as Ve, bi as Be, P as d, Y as h, aY as y, bj as Me, bk as Ie, bl as Fe, bm as He, E as Ae, bn as Pe, d as Ee, i as L, S as ze, au as Ze, U as Oe, bo as Ue, V as A, a_ as X, a$ as ee, I as E, bp as B, b0 as Re, bq as Ge, br as I, r as We, m as qe, a as Ne, bs as je } from "./main-989855f4.js";
1
+ import { b7 as fe, b8 as ge, b9 as q, ba as Ce, bb as N, bc as j, bd as ve, be as ye, bf as xe, bg as we, j as K, g as m, n as d, v as Y, b as u, aF as be, c as f, C as Q, bh as _e, bi as ke, K as J, L as H, h as D, bj as Le, bk as $e, B as Se, bl as Te, bm as De, b6 as Ve, bn as Be, R as p, a9 as h, b1 as y, bo as Me, bp as Ie, bq as Fe, br as He, bs as Ae, bt as Pe, F as Ee, bu as ze, d as Ze, i as $, S as Oe, az as Ue, X as Re, bv as Ge, V as A, b3 as X, b4 as ee, I as E, bw as B, b5 as We, bx as qe, by as I, r as Ne, m as je, a as Ke, bz as Ye } from "./main-8fe92642.js";
2
2
  import { m as g, a as x } from "./vuex.esm-4a0fff7c.js";
3
- import "./index-8a437f3d.js";
3
+ import "./index-8a009539.js";
4
4
  import { v as F } from "./index-805c56e4.js";
5
- import { w as $ } from "./CDropdownItem-fa88e012.js";
6
- import { a as b, I as _, b as Ke, c as Ye } from "./IsPremiumPreStep-94901e25.js";
7
- import { D as Qe, l as Je, g as Xe, W as et, b as tt, a as it } from "./DocumentLayout-86646c16.js";
8
- import { s as k } from "./simplebar.min-1ce579b3.js";
9
- import { B as at } from "./BlockMedia-843990e1.js";
10
- import { d as P, t as nt } from "./debounce-b30e6f76.js";
11
- import { c as st, d as ot } from "./template-641a5e0d.js";
12
- import { a as lt } from "./tinycolor-f6c2d00e.js";
13
- import { m as S } from "./mapFormMixin-e6b8b5ef.js";
14
- import { S as rt, C as te, i as ct } from "./formComponentsInstall-07c350b0.js";
15
- import { f as dt } from "./formValidationMixin-05028cb3.js";
16
- import { s as v } from "./formDrawerState-e3da6074.js";
17
- import { F as ie, d as pt } from "./tippy.esm-75dfd42d.js";
18
- import { S as ut } from "./CSlider.vue_vue_type_style_index_0_lang-76a4be84.js";
19
- import { o as mt, d as ht } from "./vuedraggable.umd-909ba53a.js";
5
+ import { w as b } from "./CDropdownItem-80d6f1d6.js";
6
+ import { a as _, I as k, b as Qe, c as Je } from "./IsPremiumPreStep-178406ae.js";
7
+ import { D as Xe, l as et, g as tt, W as it, b as at, a as nt } from "./DocumentLayout-3aa5beb7.js";
8
+ import { s as L } from "./Flag-bc43bb0c.js";
9
+ import { B as st } from "./BlockMedia-d91bb4a5.js";
10
+ import { d as P, t as ot } from "./debounce-249438e8.js";
11
+ import { a as lt } from "./tinycolor-2d236fc9.js";
12
+ import { m as S } from "./mapFormMixin-18916025.js";
13
+ import { S as rt, C as te, i as ct } from "./formComponentsInstall-f602ecc3.js";
14
+ import { f as dt } from "./formValidationMixin-4c12cbd6.js";
15
+ import { s as v } from "./formDrawerState-8a5d45a8.js";
16
+ import { F as ie, d as pt } from "./tippy.esm-27ce514a.js";
17
+ import { S as ut } from "./CSlider.vue_vue_type_style_index_0_lang-61beea49.js";
18
+ import { o as mt, d as ht } from "./vuedraggable.umd-455d2d1d.js";
20
19
  import { s as ft } from "./dom-962579a6.js";
21
- import { o as gt } from "./index-7300a7f5.js";
22
- import Ct from "./AnswerModal-6afa03a5.js";
20
+ import { o as gt } from "./index-dce39a81.js";
21
+ import Ct from "./AnswerModal-3221683b.js";
23
22
  import "./anime.es-e284c852.js";
24
- import "./image-1b55e804.js";
25
23
  import "./color-71c20583.js";
26
- import "./BaseDatePicker-8a39d0c2.js";
27
- import "./ErrorCallout-b482d289.js";
28
- import "./AddClientCallout-dd99d0d5.js";
29
- import "./ClientAutocomplete-7cb8a2e1.js";
30
- import "./SearchApi-953a1b13.js";
31
- import "./ClientModal-26774205.js";
32
- import "./CCallout-c0f901a7.js";
33
- import "./CField-3a437b10.js";
24
+ import "./BaseDatePicker-a82aba1b.js";
25
+ import "./ErrorCallout-4f239204.js";
26
+ import "./AddClientCallout-ce5f5f46.js";
27
+ import "./ClientAutocomplete-2b46278b.js";
28
+ import "./SearchApi-95506360.js";
29
+ import "./ClientModal-3d6a6254.js";
30
+ import "./CCallout-3d3df80b.js";
31
+ import "./CField-617ee7e0.js";
34
32
  import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
35
- import "./ColorPicker-98baa7d4.js";
33
+ import "./ColorPicker-b5a7c17d.js";
36
34
  var vt = fe, yt = ge, xt = q;
37
35
  function wt(i, e, t) {
38
36
  for (var a = -1, n = e.length, s = {}; ++a < n; ) {
@@ -317,7 +315,7 @@ var G1 = function() {
317
315
  }, 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) {
318
316
  e.keepClients = a;
319
317
  }, 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);
320
- }, W1 = [], q1 = /* @__PURE__ */ c(
318
+ }, W1 = [], q1 = /* @__PURE__ */ d(
321
319
  R1,
322
320
  G1,
323
321
  W1,
@@ -369,10 +367,10 @@ function le(i, { availableProducts: e }) {
369
367
  const K1 = {
370
368
  name: "GalleryTemplateModal",
371
369
  components: {
372
- simplebar: k,
373
- DocumentLayout: Qe,
374
- IsPremium: b,
375
- IsPremiumPreStep: _
370
+ simplebar: L,
371
+ DocumentLayout: Xe,
372
+ IsPremium: _,
373
+ IsPremiumPreStep: k
376
374
  },
377
375
  props: {
378
376
  // Instance of template
@@ -529,7 +527,7 @@ var Y1 = function() {
529
527
  } }]) }), e.allowCopyTemplateLink ? t("CButton", { attrs: { type: "none", "icon-left": "admin", wide: "" }, on: { click: function(n) {
530
528
  return e.copyToClipboard(e.template.id);
531
529
  } } }, [e._v(" " + e._s(e.$t("_common:copy", { thing: e.$t("_common:link") })) + " ")]) : e._e()], 2)])]);
532
- }, Q1 = [], J1 = /* @__PURE__ */ c(
530
+ }, Q1 = [], J1 = /* @__PURE__ */ d(
533
531
  K1,
534
532
  Y1,
535
533
  Q1,
@@ -664,7 +662,7 @@ const X1 = J1.exports, e2 = {
664
662
  }
665
663
  },
666
664
  beforeCreate() {
667
- this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", Ke);
665
+ this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", Qe);
668
666
  },
669
667
  async created() {
670
668
  var t, a, n, s;
@@ -802,7 +800,7 @@ const X1 = J1.exports, e2 = {
802
800
  });
803
801
  }
804
802
  }, t2 = null, i2 = null;
805
- var a2 = /* @__PURE__ */ c(
803
+ var a2 = /* @__PURE__ */ d(
806
804
  e2,
807
805
  t2,
808
806
  i2,
@@ -819,7 +817,7 @@ const s2 = {
819
817
  inject: {
820
818
  components: {
821
819
  default: {
822
- BlockMedia: at
820
+ BlockMedia: st
823
821
  }
824
822
  }
825
823
  }
@@ -840,7 +838,7 @@ var o2 = function(e, t) {
840
838
  } }) : t.props.isPlaceholder || t.props.isAdd ? t._e() : e(t.injections.components.BlockMedia, { tag: "component", staticClass: "item-media", attrs: { media: t.props.media, preview: "" } }), t.scopedSlots.badge ? e("div", { staticClass: "absolute right-2 bottom-2" }, [t._t("badge")], 2) : t._e(), t.props.isAdd ? e("div", { staticClass: "add-button" }, [e("BaseIcon", { attrs: { size: 18, "stroke-width": 3, type: "plus" } })], 1) : t._e()], 1), e("div", { staticClass: "item-footer" }, [t.props.isAdd ? e("div", { staticClass: "item-text", staticStyle: { color: "hsl(0, 0%, 55%)" }, domProps: { textContent: t._s(
841
839
  t.parent.$t("_common:empty", { thing: t.parent.$t("_common:template") })
842
840
  ) } }) : t.props.name ? [e("div", { staticClass: "item-text", domProps: { textContent: t._s(t.$options.truncate(t.props.name, 60)) } }), t._t("default")] : t._e()], 2)]);
843
- }, l2 = [], r2 = /* @__PURE__ */ c(
841
+ }, l2 = [], r2 = /* @__PURE__ */ d(
844
842
  s2,
845
843
  o2,
846
844
  l2,
@@ -854,7 +852,7 @@ const c2 = r2.exports;
854
852
  const d2 = {
855
853
  name: "HorizontalScroll",
856
854
  components: {
857
- Simplebar: k
855
+ Simplebar: L
858
856
  },
859
857
  data() {
860
858
  return {
@@ -919,7 +917,7 @@ var p2 = function() {
919
917
  return e.$emit("expand");
920
918
  } } })];
921
919
  })], 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)]);
922
- }, u2 = [], m2 = /* @__PURE__ */ c(
920
+ }, u2 = [], m2 = /* @__PURE__ */ d(
923
921
  d2,
924
922
  p2,
925
923
  u2,
@@ -946,8 +944,8 @@ const f2 = {
946
944
  }
947
945
  },
948
946
  components: {
949
- IsPremium: b,
950
- IsPremiumPreStep: _
947
+ IsPremium: _,
948
+ IsPremiumPreStep: k
951
949
  },
952
950
  data() {
953
951
  return {
@@ -1036,8 +1034,8 @@ var g2 = function() {
1036
1034
  }, "&mouseleave": function(r) {
1037
1035
  e.hoverIndex = null;
1038
1036
  } } }, [t("div", { staticClass: "recent-item-name", class: { "text-gray-400": !o.data.name } }, [e._v(" " + e._s(o.data.name || e.$t("_common:untitled")) + " ")]), t("div", [e._v(e._s(e.$formatDistanceToNow(o.createdAt)))]), e.hoverIndex === l ? t("div", { staticStyle: { display: "inline-flex", "align-items": "center", position: "absolute", right: "1em", top: "50%", transform: "translateY(-50%)" } }, [t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: r }) {
1039
- return [t("CButton", { staticStyle: { "margin-left": "1em" }, attrs: { size: "small" }, nativeOn: { click: function(p) {
1040
- p.stopPropagation(), a ? e.onSaveDocumentTemplate(o._id) : r({
1037
+ return [t("CButton", { staticStyle: { "margin-left": "1em" }, attrs: { size: "small" }, nativeOn: { click: function(c) {
1038
+ c.stopPropagation(), a ? e.onSaveDocumentTemplate(o._id) : r({
1041
1039
  callback: () => e.onSaveDocumentTemplate(o._id)
1042
1040
  });
1043
1041
  } } }, [e._v(" " + e._s(e.$t("_common:saveAs", { thing: e.$t("_common:template") })) + " ")])];
@@ -1045,7 +1043,7 @@ var g2 = function() {
1045
1043
  }), 0)];
1046
1044
  } }], null, !0) })];
1047
1045
  } }]) })]], 2)]);
1048
- }, C2 = [], v2 = /* @__PURE__ */ c(
1046
+ }, C2 = [], v2 = /* @__PURE__ */ d(
1049
1047
  f2,
1050
1048
  g2,
1051
1049
  C2,
@@ -1099,13 +1097,13 @@ const x2 = {
1099
1097
  }
1100
1098
  },
1101
1099
  name: "TemplateSelector",
1102
- mixins: [$],
1100
+ mixins: [b],
1103
1101
  components: {
1104
1102
  HorizontalScroll: h2,
1105
1103
  DocumentIcon: c2,
1106
1104
  DocumentRecent: y2,
1107
1105
  GalleryLogic: n2,
1108
- IsPremiumPreStep: _
1106
+ IsPremiumPreStep: k
1109
1107
  },
1110
1108
  props: {
1111
1109
  // Used for creating documents form project/client views
@@ -1305,31 +1303,31 @@ var w2 = function() {
1305
1303
  selectCategory: o,
1306
1304
  selectGalleryItem: l
1307
1305
  }) {
1308
- return [t("div", { staticStyle: { width: "100%", "padding-bottom": "5em" } }, [t("div", { staticClass: "flex items-center w-full section-title" }, [t("div", { staticStyle: { flex: "1 1 auto" } }, [t("div", [e._v(e._s(e.$t("gallery")))]), t("div", { staticClass: "section-subtitle", domProps: { innerHTML: e._s(e.$t("gallerySubTitle")) } })]), t("CDropdown", { staticStyle: { "margin-left": "calc(0.5 * var(--rem))" }, nativeOn: { click: function(r) {
1306
+ return [t("div", { staticStyle: { width: "100%", "padding-bottom": "5em" } }, [t("div", { staticClass: "w-full section-title" }, [t("div", { staticClass: "flex justify-between items-center" }, [t("div", [e._v(e._s(e.$t("gallery")))]), t("CDropdown", { staticStyle: { "margin-left": "calc(0.5 * var(--rem))" }, nativeOn: { click: function(r) {
1309
1307
  r.stopPropagation();
1310
1308
  } } }, [t("CButton", { attrs: { slot: "trigger", size: "small", type: "none", pattern: "secondary", "icon-right": "chevron-down" }, slot: "trigger" }, [e._v(" " + e._s(s ? s.label : "") + " ")]), e._l(n, function(r) {
1311
- return t("CDropdownItem", { key: r.key, attrs: { "icon-right": s && s.key === r.key ? "check" : "" }, on: { click: function(p) {
1309
+ return t("CDropdownItem", { key: r.key, attrs: { "icon-right": s && s.key === r.key ? "check" : "" }, on: { click: function(c) {
1312
1310
  return o(r);
1313
1311
  } } }, [e._v(" " + e._s(r.label) + " ")]);
1314
- })], 2)], 1), t("HorizontalScroll", { staticClass: "template-list" }, e._l(a, function(r) {
1315
- return t("DocumentIcon", { key: r.id, staticClass: "template-item", attrs: { "is-placeholder": r.placeholder, media: { type: "image", resourceUrl: r.backgroundUrl }, name: r.name }, on: { click: function(p) {
1312
+ })], 2)], 1), t("div", { staticClass: "section-subtitle", domProps: { innerHTML: e._s(e.$t("gallerySubTitle")) } })]), t("HorizontalScroll", { staticClass: "template-list" }, e._l(a, function(r) {
1313
+ return t("DocumentIcon", { key: r.id, staticClass: "template-item", attrs: { "is-placeholder": r.placeholder, media: { type: "image", resourceUrl: r.backgroundUrl }, name: r.name }, on: { click: function(c) {
1316
1314
  r.placeholder || l(r);
1317
1315
  } } }, [r.product ? t("div", { staticClass: "p-1 text-xs font-semibold leading-none text-white border rounded shadow-lg bg-primary-500 border-primary-700/40", attrs: { slot: "badge" }, slot: "badge" }, [r.product.isPurchased ? t("BaseIcon", { attrs: { type: "check", size: "14", "stroke-width": "3" } }) : t("div", { domProps: { textContent: e._s(r.product.price) } })], 1) : e._e()]);
1318
1316
  }), 1)], 1)];
1319
- } }], null, !1, 3899545480) })] : 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)]);
1320
- }, b2 = [], _2 = /* @__PURE__ */ c(
1317
+ } }], null, !1, 4232935324) })] : 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)]);
1318
+ }, b2 = [], _2 = /* @__PURE__ */ d(
1321
1319
  x2,
1322
1320
  w2,
1323
1321
  b2,
1324
1322
  !1,
1325
1323
  null,
1326
- "093c4702",
1324
+ "b4a79da1",
1327
1325
  null,
1328
1326
  null
1329
1327
  );
1330
1328
  const k2 = _2.exports;
1331
1329
  const L2 = (i) => {
1332
- const e = Array(2).fill().map(() => d());
1330
+ const e = Array(2).fill().map(() => p());
1333
1331
  return [
1334
1332
  {
1335
1333
  itemId: "attachments2",
@@ -1360,7 +1358,7 @@ const L2 = (i) => {
1360
1358
  }
1361
1359
  }
1362
1360
  ], S2 = ({ document: i = null }) => {
1363
- const e = d(), { language: t } = i || {};
1361
+ const e = p(), { language: t } = i || {};
1364
1362
  return {
1365
1363
  readView: L2(e),
1366
1364
  validation: $2(e, t)
@@ -1371,14 +1369,14 @@ const L2 = (i) => {
1371
1369
  itemType: "presentation",
1372
1370
  value: null,
1373
1371
  parentId: "0",
1374
- nodeId: d()
1372
+ nodeId: p()
1375
1373
  }
1376
1374
  ], D2 = () => ({
1377
1375
  readView: T2(),
1378
1376
  validation: []
1379
1377
  // all relevant data is either within base doc or company settings etc
1380
1378
  }), V2 = () => {
1381
- const i = Array(2).fill().map(() => d());
1379
+ const i = Array(2).fill().map(() => p());
1382
1380
  return [
1383
1381
  {
1384
1382
  itemId: "multiGroupPricing",
@@ -1428,7 +1426,7 @@ const L2 = (i) => {
1428
1426
  file: "data.terms.file"
1429
1427
  },
1430
1428
  parentId: "0",
1431
- nodeId: d()
1429
+ nodeId: p()
1432
1430
  }
1433
1431
  ], F2 = () => [
1434
1432
  {
@@ -1442,7 +1440,7 @@ const L2 = (i) => {
1442
1440
  readView: I2(),
1443
1441
  validation: F2()
1444
1442
  }), A2 = () => {
1445
- const i = Array(5).fill().map(() => d());
1443
+ const i = Array(5).fill().map(() => p());
1446
1444
  return [
1447
1445
  {
1448
1446
  itemId: "parties",
@@ -1514,7 +1512,7 @@ const L2 = (i) => {
1514
1512
  ...n && { data: n }
1515
1513
  };
1516
1514
  }, Z2 = (i) => {
1517
- const e = Array(3).fill().map(() => d());
1515
+ const e = Array(3).fill().map(() => p());
1518
1516
  return [
1519
1517
  {
1520
1518
  itemId: "estimatedTime",
@@ -1569,7 +1567,7 @@ const L2 = (i) => {
1569
1567
  unitType: "hour"
1570
1568
  }
1571
1569
  }), R2 = ({ includeMockData: i = !1, contentData: e = null }) => {
1572
- const t = d();
1570
+ const t = p();
1573
1571
  let a = null;
1574
1572
  return typeof e == "function" ? a = e(t) : i && (a = U2(t)), {
1575
1573
  readView: Z2(t),
@@ -1577,7 +1575,7 @@ const L2 = (i) => {
1577
1575
  ...a && { data: a }
1578
1576
  };
1579
1577
  }, G2 = () => {
1580
- const i = Array(3).fill().map(() => d());
1578
+ const i = Array(3).fill().map(() => p());
1581
1579
  return [
1582
1580
  {
1583
1581
  itemId: "estimatedTime",
@@ -1623,7 +1621,7 @@ const L2 = (i) => {
1623
1621
  readView: G2(),
1624
1622
  validation: W2()
1625
1623
  }), N2 = () => {
1626
- const i = Array(5).fill().map(() => d());
1624
+ const i = Array(5).fill().map(() => p());
1627
1625
  return [
1628
1626
  {
1629
1627
  itemId: "extraWorkConstructionPricingList",
@@ -1717,7 +1715,7 @@ const L2 = (i) => {
1717
1715
  validation: j2()
1718
1716
  // Client / company will for now always exist on doc and in validation
1719
1717
  }), Y2 = () => {
1720
- const i = Array(3).fill().map(() => d());
1718
+ const i = Array(3).fill().map(() => p());
1721
1719
  return [
1722
1720
  {
1723
1721
  itemId: "extraWorkTimeImpact",
@@ -1784,7 +1782,7 @@ const L2 = (i) => {
1784
1782
  readView: Y2(),
1785
1783
  validation: Q2()
1786
1784
  }), X2 = () => {
1787
- const i = Array(5).fill().map(() => d());
1785
+ const i = Array(5).fill().map(() => p());
1788
1786
  return [
1789
1787
  {
1790
1788
  itemId: "misc",
@@ -1843,7 +1841,7 @@ const L2 = (i) => {
1843
1841
  readView: X2(),
1844
1842
  validation: ei()
1845
1843
  }), ii = (i) => {
1846
- const e = Array(2).fill().map(() => d());
1844
+ const e = Array(2).fill().map(() => p());
1847
1845
  return [
1848
1846
  {
1849
1847
  itemId: "titleAndText2",
@@ -1871,7 +1869,7 @@ const L2 = (i) => {
1871
1869
  [`data.title-${i}`]: "My custom text",
1872
1870
  [`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>"
1873
1871
  }), si = ({ includeMockData: i = !1, contentData: e = null }) => {
1874
- const t = d();
1872
+ const t = p();
1875
1873
  let a = null;
1876
1874
  return typeof e == "function" ? a = e(t) : i && (a = ni(t)), {
1877
1875
  readView: ii(t),
@@ -1887,7 +1885,7 @@ const L2 = (i) => {
1887
1885
  coverBlock: `data.coverBlock-${i}`
1888
1886
  },
1889
1887
  parentId: "0",
1890
- nodeId: d()
1888
+ nodeId: p()
1891
1889
  }
1892
1890
  ], li = (i, e = "en") => [
1893
1891
  {
@@ -1917,7 +1915,7 @@ const L2 = (i) => {
1917
1915
  }
1918
1916
  }
1919
1917
  }), ci = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
1920
- const a = d(), { language: n } = e || {};
1918
+ const a = p(), { language: n } = e || {};
1921
1919
  let s = null;
1922
1920
  return typeof t == "function" ? s = t(a) : i && (s = ri(a)), {
1923
1921
  readView: oi(a),
@@ -2077,7 +2075,7 @@ const L2 = (i) => {
2077
2075
  header: `data.header-${i}`
2078
2076
  },
2079
2077
  parentId: "0",
2080
- nodeId: d()
2078
+ nodeId: p()
2081
2079
  }
2082
2080
  ], ui = (i, e = null) => {
2083
2081
  const {
@@ -2090,7 +2088,7 @@ const L2 = (i) => {
2090
2088
  background: o,
2091
2089
  priceSummaryBackground: l,
2092
2090
  backgroundFilter: r
2093
- } = n || {}, p = l || "hsl(228, 52%, 18%)", C = lt.readability(p, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
2091
+ } = n || {}, c = l || "hsl(228, 52%, 18%)", C = lt.readability(c, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
2094
2092
  return [
2095
2093
  {
2096
2094
  key: `header-${i}`,
@@ -2117,7 +2115,7 @@ const L2 = (i) => {
2117
2115
  size: 70,
2118
2116
  media: {
2119
2117
  type: "color",
2120
- backgroundColor: p
2118
+ backgroundColor: c
2121
2119
  },
2122
2120
  value: {
2123
2121
  preText: "",
@@ -2162,7 +2160,7 @@ const L2 = (i) => {
2162
2160
  ]
2163
2161
  }
2164
2162
  }), hi = ({ includeMockData: i = !1, document: e = null, contentData: t = null }) => {
2165
- const a = d();
2163
+ const a = p();
2166
2164
  let n = null;
2167
2165
  return typeof t == "function" ? n = t(a) : i && (n = mi(a)), {
2168
2166
  readView: pi(a),
@@ -2470,7 +2468,7 @@ h.loadOptions({
2470
2468
  }
2471
2469
  });
2472
2470
  const gi = (i) => {
2473
- const e = Array(2).fill().map(() => d());
2471
+ const e = Array(2).fill().map(() => p());
2474
2472
  return [
2475
2473
  {
2476
2474
  itemId: `packageGroup-${i}`,
@@ -2515,7 +2513,7 @@ const gi = (i) => {
2515
2513
  $ref: `${f.api.baseUrl}/schemas/packageGroups/1.json`
2516
2514
  }
2517
2515
  ], vi = () => null, yi = ({ includeMockData: i, document: e = null, contentData: t = null } = {}) => {
2518
- const a = d(), { language: n } = e || {};
2516
+ const a = p(), { language: n } = e || {};
2519
2517
  let s = null;
2520
2518
  typeof t == "function" ? s = t(a) : i && (s = vi());
2521
2519
  const o = gi(a), l = Ci(a, n);
@@ -2661,7 +2659,7 @@ const xi = ({
2661
2659
  </div>
2662
2660
  `,
2663
2661
  contentData: (l) => {
2664
- const r = d();
2662
+ const r = p();
2665
2663
  return {
2666
2664
  [`data.packageGroups.${l}`]: {
2667
2665
  type: "single",
@@ -2779,7 +2777,7 @@ const xi = ({
2779
2777
  </div>
2780
2778
  `,
2781
2779
  contentData: (l) => {
2782
- const r = Array(2).fill().map(() => d());
2780
+ const r = Array(2).fill().map(() => p());
2783
2781
  return {
2784
2782
  [`data.packageGroups.${l}`]: {
2785
2783
  type: "radio",
@@ -2913,7 +2911,7 @@ const xi = ({
2913
2911
  </div>
2914
2912
  `,
2915
2913
  contentData: (l) => {
2916
- const r = Array(2).fill().map(() => d());
2914
+ const r = Array(2).fill().map(() => p());
2917
2915
  return {
2918
2916
  [`data.packageGroups.${l}`]: {
2919
2917
  type: "checkbox",
@@ -2979,7 +2977,7 @@ const xi = ({
2979
2977
  "!!": { var: `data.embed-${i}.embed.src` }
2980
2978
  },
2981
2979
  parentId: "0",
2982
- nodeId: d()
2980
+ nodeId: p()
2983
2981
  }
2984
2982
  ], bi = (i) => [
2985
2983
  {
@@ -2991,7 +2989,7 @@ const xi = ({
2991
2989
  }
2992
2990
  }
2993
2991
  ], _i = () => null, ki = ({ includeMockData: i = !1, document: e = null, contentData: t = null } = {}) => {
2994
- const a = d();
2992
+ const a = p();
2995
2993
  let n = null;
2996
2994
  return typeof t == "function" ? n = t(a) : i && (n = _i()), {
2997
2995
  readView: wi(a),
@@ -3313,7 +3311,7 @@ const Li = ({ language: i = "en" } = {}) => [
3313
3311
  "!!": { var: `data.video-${i}.video.url` }
3314
3312
  },
3315
3313
  parentId: "0",
3316
- nodeId: d()
3314
+ nodeId: p()
3317
3315
  }
3318
3316
  ], Si = (i) => [
3319
3317
  {
@@ -3336,7 +3334,7 @@ const Li = ({ language: i = "en" } = {}) => [
3336
3334
  }
3337
3335
  }
3338
3336
  }), Di = ({ includeMockData: i = !1, contentData: e = null }) => {
3339
- const t = d();
3337
+ const t = p();
3340
3338
  let a = null;
3341
3339
  return typeof e == "function" ? a = e(t) : i && (a = Ti(t)), {
3342
3340
  readView: $i(t),
@@ -3547,17 +3545,17 @@ const Li = ({ language: i = "en" } = {}) => [
3547
3545
  ], G = {
3548
3546
  titleAndText2: si,
3549
3547
  attachments2: S2,
3550
- pdf: Me,
3548
+ pdf: Ie,
3551
3549
  packageGroup: yi,
3552
3550
  multiGroupPricing: M2,
3553
3551
  coverBlock: ci,
3554
3552
  videoPlayer: Di,
3555
3553
  embed: ki,
3556
3554
  header: hi,
3557
- answer: Ie,
3555
+ answer: Fe,
3558
3556
  terms: H2,
3559
3557
  parties: z2,
3560
- custom: ot,
3558
+ custom: He,
3561
3559
  // legacy
3562
3560
  presentation: D2,
3563
3561
  estimatedTimeCompleted: R2,
@@ -3571,7 +3569,7 @@ const Li = ({ language: i = "en" } = {}) => [
3571
3569
  packageGroup: xi,
3572
3570
  embed: Li,
3573
3571
  videoPlayer: Vi,
3574
- custom: st
3572
+ custom: Me
3575
3573
  }, Bi = {
3576
3574
  name: "AddBlock",
3577
3575
  props: {
@@ -3586,14 +3584,14 @@ const Li = ({ language: i = "en" } = {}) => [
3586
3584
  },
3587
3585
  render() {
3588
3586
  return this.$scopedSlots.default({
3589
- addBlock: (i) => Fe({
3587
+ addBlock: (i) => Ae({
3590
3588
  ...i,
3591
3589
  set: this.set,
3592
3590
  tplGenerators: G,
3593
3591
  includeMockData: this.includeMockData,
3594
3592
  emit: (...e) => this.$emit(...e)
3595
3593
  }),
3596
- getBlockPayload: (i) => He(
3594
+ getBlockPayload: (i) => Pe(
3597
3595
  i,
3598
3596
  this.set,
3599
3597
  G,
@@ -3602,7 +3600,7 @@ const Li = ({ language: i = "en" } = {}) => [
3602
3600
  });
3603
3601
  }
3604
3602
  }, Mi = null, Ii = null;
3605
- var Fi = /* @__PURE__ */ c(
3603
+ var Fi = /* @__PURE__ */ d(
3606
3604
  Bi,
3607
3605
  Mi,
3608
3606
  Ii,
@@ -3672,7 +3670,7 @@ var Ai = function() {
3672
3670
  boxShadow: e.boxShadow,
3673
3671
  ...e.contentStyle
3674
3672
  } }, [e._t("default")], 2)]) : e._e()])], 1);
3675
- }, Pi = [], Ei = /* @__PURE__ */ c(
3673
+ }, Pi = [], Ei = /* @__PURE__ */ d(
3676
3674
  Hi,
3677
3675
  Ai,
3678
3676
  Pi,
@@ -3710,18 +3708,18 @@ const zi = {
3710
3708
  AddBlock: re,
3711
3709
  Drawer: ce,
3712
3710
  SendForm: rt,
3713
- CCheckbox: Ae,
3714
- BaseIcon: Pe,
3715
- CButton: Ee,
3716
- IsPremium: b,
3717
- IsPremiumPreStep: _
3711
+ CCheckbox: Ee,
3712
+ BaseIcon: ze,
3713
+ CButton: Ze,
3714
+ IsPremium: _,
3715
+ IsPremiumPreStep: k
3718
3716
  },
3719
3717
  mixins: [
3720
3718
  S([], {
3721
3719
  useEmit: !1,
3722
3720
  setFnName: "setFormValue"
3723
3721
  }),
3724
- $
3722
+ b
3725
3723
  ],
3726
3724
  props: {
3727
3725
  setFormValue: {
@@ -3827,7 +3825,7 @@ var Zi = function() {
3827
3825
  }, expression: "saveTemplate" } }), t("div", { staticStyle: { "padding-left": "0.5em" } }, [e._v(" " + e._s(e.$t("saveDocAsTemplate")) + " "), t("BaseIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.saveTemplateTooltip, expression: "saveTemplateTooltip" }], attrs: { type: "info", size: "15" } })], 1)], 1)];
3828
3826
  } }], null, !0) })];
3829
3827
  } }], null, !1, 2049373406) })], 1)], 1)], 1)]) : e._e();
3830
- }, Oi = [], Ui = /* @__PURE__ */ c(
3828
+ }, Oi = [], Ui = /* @__PURE__ */ d(
3831
3829
  zi,
3832
3830
  Zi,
3833
3831
  Oi,
@@ -3855,19 +3853,23 @@ const Ri = Ui.exports, Gi = {
3855
3853
  onDragMouseDown(i) {
3856
3854
  i.preventDefault(), this.windowWidth = window.innerWidth, this.windowHeight = window.innerHeight;
3857
3855
  const e = this.$el.getBoundingClientRect();
3858
- this.elementWidth = e.width, this.elementHeight = e.height, this.clientX = i.clientX, this.clientY = i.clientY, document.addEventListener("mousemove", this.elementDrag), document.addEventListener("mouseup", this.removeListeners);
3859
- },
3860
- elementDrag(i) {
3861
- i.preventDefault(), this.movementX = this.clientX - i.clientX, this.movementY = this.clientY - i.clientY, this.clientX = i.clientX, this.clientY = i.clientY, this.$el.style.top = `${Math.max(
3862
- this.$el.offsetTop - this.movementY,
3863
- 0
3864
- )}px`, this.$el.style.left = `${Math.min(
3865
- this.$el.offsetLeft - this.movementX,
3866
- this.windowWidth - this.elementWidth
3867
- )}px`;
3868
- },
3869
- removeListeners() {
3870
- document.removeEventListener("mousemove", this.elementDrag), document.removeEventListener("mouseup", this.removeListeners);
3856
+ this.elementWidth = e.width, this.elementHeight = e.height;
3857
+ const t = i.type === "touchstart", a = t ? i.touches[0] : i;
3858
+ this.clientX = a.clientX, this.clientY = a.clientY;
3859
+ const n = t ? "touchmove" : "mousemove", s = t ? "touchend" : "mouseup", o = (r) => {
3860
+ t || r.preventDefault();
3861
+ const c = t ? r.touches[0] : r;
3862
+ this.movementX = this.clientX - c.clientX, this.movementY = this.clientY - c.clientY, this.clientX = c.clientX, this.clientY = c.clientY, this.$el.style.top = `${Math.max(
3863
+ this.$el.offsetTop - this.movementY,
3864
+ 0
3865
+ )}px`, this.$el.style.left = `${Math.min(
3866
+ this.$el.offsetLeft - this.movementX,
3867
+ this.windowWidth - this.elementWidth
3868
+ )}px`;
3869
+ }, l = () => {
3870
+ document.removeEventListener(n, o), document.removeEventListener(s, l);
3871
+ };
3872
+ document.addEventListener(n, o), document.addEventListener(s, l);
3871
3873
  }
3872
3874
  },
3873
3875
  render() {
@@ -3876,7 +3878,7 @@ const Ri = Ui.exports, Gi = {
3876
3878
  });
3877
3879
  }
3878
3880
  }, Wi = null, qi = null;
3879
- var Ni = /* @__PURE__ */ c(
3881
+ var Ni = /* @__PURE__ */ d(
3880
3882
  Gi,
3881
3883
  Wi,
3882
3884
  qi,
@@ -3910,15 +3912,15 @@ var Yi = function() {
3910
3912
  left: `${e.offset + 15}px`
3911
3913
  } }, [t("div", { staticStyle: { position: "relative", height: "100%", width: "100%" } }, [t("CButton", { staticStyle: { position: "absolute", right: "0", top: "0" }, attrs: { icon: "x", size: "small", type: "none", pattern: "tertiary", circle: "" }, on: { click: function(n) {
3912
3914
  return e.$emit("close");
3913
- } } }), 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 } }), 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)])];
3915
+ } } }), 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)])];
3914
3916
  } }], null, !0) })], 1);
3915
- }, Qi = [], Ji = /* @__PURE__ */ c(
3917
+ }, Qi = [], Ji = /* @__PURE__ */ d(
3916
3918
  Ki,
3917
3919
  Yi,
3918
3920
  Qi,
3919
3921
  !1,
3920
3922
  null,
3921
- "58649fd0",
3923
+ "8029d5ea",
3922
3924
  null,
3923
3925
  null
3924
3926
  );
@@ -4011,7 +4013,7 @@ const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
4011
4013
  }
4012
4014
  },
4013
4015
  onInput: ({ family: a, weight: n, options: s = [] }) => {
4014
- this.update(i, a), Je(a), t != n && this.update("fontWeight", n), this.fontWeightOptions = s;
4016
+ this.update(i, a), et(a), t != n && this.update("fontWeight", n), this.fontWeightOptions = s;
4015
4017
  }
4016
4018
  }
4017
4019
  ]
@@ -4469,15 +4471,15 @@ const Xi = /([\d+.]*)(.*)/, w = (i) => (i || "").match(Xi), ea = {
4469
4471
  return [];
4470
4472
  const { selector: i, category: e, style: t = {} } = this.activeItem, a = u(this.css, i) || {}, n = (s) => a[s] || t[s];
4471
4473
  return this[e].map(({ option: s, key: o }, l) => {
4472
- const r = this.definitionOptions[s], p = Array.isArray(o) ? o.map((C) => ({ key: C, value: n(C) })) : { key: o, value: n(o) };
4473
- return r(p, l);
4474
+ const r = this.definitionOptions[s], c = Array.isArray(o) ? o.map((C) => ({ key: C, value: n(C) })) : { key: o, value: n(o) };
4475
+ return r(c, l);
4474
4476
  });
4475
4477
  }
4476
4478
  },
4477
4479
  watch: {
4478
4480
  async activeItem(i) {
4479
4481
  const e = u(i, "style.fontFamily");
4480
- e && (this.fontWeightOptions = await Xe(e));
4482
+ e && (this.fontWeightOptions = await tt(e));
4481
4483
  }
4482
4484
  },
4483
4485
  methods: {
@@ -4508,7 +4510,7 @@ var ta = function() {
4508
4510
  })], 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) {
4509
4511
  return t("FormInputRow", { key: n, attrs: { label: a.label, inputs: a.inputs } });
4510
4512
  }), 1) : e._e()], 1);
4511
- }, ia = [], aa = /* @__PURE__ */ c(
4513
+ }, ia = [], aa = /* @__PURE__ */ d(
4512
4514
  ea,
4513
4515
  ta,
4514
4516
  ia,
@@ -4617,7 +4619,7 @@ const sa = {
4617
4619
  submit() {
4618
4620
  if (this.$v.$touch(), this.$v.$invalid)
4619
4621
  return;
4620
- const i = this.existingFieldId || d();
4622
+ const i = this.existingFieldId || p();
4621
4623
  this.set({
4622
4624
  key: `data.fields.${i}`,
4623
4625
  value: {
@@ -4645,7 +4647,7 @@ var oa = function() {
4645
4647
  }, 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) {
4646
4648
  e.$set(e.form, "value", a);
4647
4649
  }, 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)]);
4648
- }, la = [], ra = /* @__PURE__ */ c(
4650
+ }, la = [], ra = /* @__PURE__ */ d(
4649
4651
  sa,
4650
4652
  oa,
4651
4653
  la,
@@ -4681,7 +4683,7 @@ const da = {
4681
4683
  name: "DocumentFormFields",
4682
4684
  components: {
4683
4685
  SmartList: ut,
4684
- CAccordion: Ye,
4686
+ CAccordion: Je,
4685
4687
  CField: te
4686
4688
  },
4687
4689
  mixins: [S()],
@@ -4738,7 +4740,7 @@ const da = {
4738
4740
  async handler(i) {
4739
4741
  var e, t;
4740
4742
  if (this.isEditingTemplate && i) {
4741
- const { data: a } = await L.getFields(i);
4743
+ const { data: a } = await $.getFields(i);
4742
4744
  this.updateValue("data.fields", {
4743
4745
  // crmFields added first in order to not override same service values
4744
4746
  ...a,
@@ -4837,7 +4839,7 @@ var pa = function() {
4837
4839
  } } })], 1)], 1)]);
4838
4840
  }) : 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)]);
4839
4841
  })], 2)], 1);
4840
- }, ua = [], ma = /* @__PURE__ */ c(
4842
+ }, ua = [], ma = /* @__PURE__ */ d(
4841
4843
  da,
4842
4844
  pa,
4843
4845
  ua,
@@ -4892,7 +4894,7 @@ const fa = {
4892
4894
  name: "ExtensionTab",
4893
4895
  components: {
4894
4896
  draggable: ht,
4895
- Spinner: ze
4897
+ Spinner: Oe
4896
4898
  },
4897
4899
  mixins: [S(["externalReferences", "clients", "articles"])],
4898
4900
  data() {
@@ -4957,7 +4959,7 @@ const fa = {
4957
4959
  this.searchResults = [];
4958
4960
  return;
4959
4961
  }
4960
- const { data: t } = await L.search(this.activeCrm, {
4962
+ const { data: t } = await $.search(this.activeCrm, {
4961
4963
  query: i,
4962
4964
  type: "deal"
4963
4965
  });
@@ -4995,7 +4997,7 @@ const fa = {
4995
4997
  );
4996
4998
  if (!e)
4997
4999
  return;
4998
- const { service: t, type: a, typeId: n } = e, { data: s } = await L.getExternalReferenceDetails(
5000
+ const { service: t, type: a, typeId: n } = e, { data: s } = await $.getExternalReferenceDetails(
4999
5001
  t,
5000
5002
  { type: a, typeId: n }
5001
5003
  );
@@ -5019,13 +5021,13 @@ const fa = {
5019
5021
  },
5020
5022
  async suggestClients() {
5021
5023
  var n;
5022
- const { service: i, type: e, typeId: t } = this.currentExternalDeal, { data: a } = await L.suggestClients(i, {
5024
+ const { service: i, type: e, typeId: t } = this.currentExternalDeal, { data: a } = await $.suggestClients(i, {
5023
5025
  type: e,
5024
5026
  typeId: t
5025
5027
  });
5026
5028
  if (Array.isArray(a) && a.length) {
5027
5029
  const s = (n = this._document) == null ? void 0 : n.defaultAnswerMethod, o = a.map((l) => ({
5028
- ...Ze(),
5030
+ ...Ue(),
5029
5031
  ...s && { answerMethod: s },
5030
5032
  ...l
5031
5033
  }));
@@ -5098,7 +5100,7 @@ var ga = function() {
5098
5100
  return e.addArticle(a);
5099
5101
  } } }, [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)]);
5100
5102
  }), 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("BaseIcon", { 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 flex-col items-center justify-center w-full text-center", staticStyle: { "padding-top": "calc(1 * var(--rem))" } }, [t("BaseIcon", { 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);
5101
- }, Ca = [], va = /* @__PURE__ */ c(
5103
+ }, Ca = [], va = /* @__PURE__ */ d(
5102
5104
  fa,
5103
5105
  ga,
5104
5106
  Ca,
@@ -5239,7 +5241,7 @@ const xa = {
5239
5241
  vatTypes() {
5240
5242
  var e;
5241
5243
  const i = ["vat"];
5242
- return ((e = Oe[f.brand]) == null ? void 0 : e.defaultRegion) === "US" && i.push("tax"), i;
5244
+ return ((e = Re[f.brand]) == null ? void 0 : e.defaultRegion) === "US" && i.push("tax"), i;
5243
5245
  },
5244
5246
  options() {
5245
5247
  return [
@@ -5272,7 +5274,7 @@ const xa = {
5272
5274
  component: "select",
5273
5275
  props: {
5274
5276
  value: this.language,
5275
- options: Ue.map((i) => ({
5277
+ options: Ge.map((i) => ({
5276
5278
  value: i,
5277
5279
  label: this.$t(`iso:language.${i}`)
5278
5280
  })).sort((i, e) => i.label.localeCompare(e.label))
@@ -5454,7 +5456,7 @@ var wa = function() {
5454
5456
  } } }, [e._l(e.priceOptions, function(a, n) {
5455
5457
  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 } })];
5456
5458
  })], 2) : e._e()], 2);
5457
- }, ba = [], _a = /* @__PURE__ */ c(
5459
+ }, ba = [], _a = /* @__PURE__ */ d(
5458
5460
  xa,
5459
5461
  wa,
5460
5462
  ba,
@@ -5504,7 +5506,7 @@ var $a = function() {
5504
5506
  } } }), 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 p-4 text-sm -translate-y-1/2 bg-white rounded-lg shadow-xl w-52" }, [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) {
5505
5507
  return e.$emit("convert");
5506
5508
  } } }, [e._v(" " + e._s(e.$t("button")) + " ")])], 1)])], 1);
5507
- }, Sa = [], Ta = /* @__PURE__ */ c(
5509
+ }, Sa = [], Ta = /* @__PURE__ */ d(
5508
5510
  La,
5509
5511
  $a,
5510
5512
  Sa,
@@ -5596,11 +5598,11 @@ const Va = A.component("ProBadge", {
5596
5598
  }
5597
5599
  },
5598
5600
  components: {
5599
- simplebar: k,
5601
+ simplebar: L,
5600
5602
  DragList: X,
5601
5603
  DragItem: ee,
5602
5604
  AddBlock: re,
5603
- IsPremiumPreStep: _,
5605
+ IsPremiumPreStep: k,
5604
5606
  ProBadge: Va,
5605
5607
  MenuBlockConvertPopover: Da
5606
5608
  },
@@ -5631,7 +5633,7 @@ const Va = A.component("ProBadge", {
5631
5633
  default: () => ({ isPublicForm: !1 })
5632
5634
  }
5633
5635
  },
5634
- mixins: [$],
5636
+ mixins: [b],
5635
5637
  data() {
5636
5638
  return {
5637
5639
  subMenuToShow: null,
@@ -6053,9 +6055,9 @@ var Ma = function() {
6053
6055
  return t("DragItem", { key: r.key, class: { "drag-item": e.canDrag } }, [t("div", e._b(
6054
6056
  { class: {
6055
6057
  "no-drag": r.disabled || r.locked || !e.canUseBlocks
6056
- }, on: { "&mouseover": function(p) {
6058
+ }, on: { "&mouseover": function(c) {
6057
6059
  e.subMenuToShow = !r.disabled && e.canDrag && r.subMenu || null;
6058
- }, "&mouseleave": function(p) {
6060
+ }, "&mouseleave": function(c) {
6059
6061
  e.subMenuToShow = null;
6060
6062
  } } },
6061
6063
  "div",
@@ -6063,7 +6065,7 @@ var Ma = function() {
6063
6065
  !1
6064
6066
  ), [t("CButton", { ref: "blockItem", refInFor: !0, staticClass: "option-row is-thinner is-left", class: {
6065
6067
  "sub-menu-active": r.key === e.activeSubMenuKey
6066
- }, staticStyle: { "padding-left": "1.5em", "padding-right": "2em", "border-radius": "0", "font-size": "14px", "border-color": "transparent" }, attrs: { disabled: r.disabled, wide: "", pattern: "secondary" }, on: { click: (p) => e.onUseBlock({ block: r, addBlock: a, openUpgradeModal: s }) } }, [t("div", { staticClass: "flex items-center", staticStyle: { width: "230px" } }, [t("div", { staticClass: "flex items-center", staticStyle: { width: "initial", flex: "1 1 auto" } }, [t("div", { staticClass: "option-image", domProps: { innerHTML: e._s(r.icon) } }), t("div", { staticClass: "option-title" }, [e._v(" " + e._s(e.$t(`blocks.${r.key}`)) + " ")])]), r.locked ? t("ProBadge") : !e.fixed && r.subMenu ? t("BaseIcon", { staticStyle: { color: "hsl(205, 10%, 65%)" }, attrs: { type: "chevron-right", size: "14" } }) : e._e()], 1)])], 1)]);
6068
+ }, staticStyle: { "padding-left": "1.5em", "padding-right": "2em", "border-radius": "0", "font-size": "14px", "border-color": "transparent" }, attrs: { disabled: r.disabled, wide: "", pattern: "secondary" }, on: { click: (c) => e.onUseBlock({ block: r, addBlock: a, openUpgradeModal: s }) } }, [t("div", { staticClass: "flex items-center", staticStyle: { width: "230px" } }, [t("div", { staticClass: "flex items-center", staticStyle: { width: "initial", flex: "1 1 auto" } }, [t("div", { staticClass: "option-image", domProps: { innerHTML: e._s(r.icon) } }), t("div", { staticClass: "option-title" }, [e._v(" " + e._s(e.$t(`blocks.${r.key}`)) + " ")])]), r.locked ? t("ProBadge") : !e.fixed && r.subMenu ? t("BaseIcon", { staticStyle: { color: "hsl(205, 10%, 65%)" }, attrs: { type: "chevron-right", size: "14" } }) : e._e()], 1)])], 1)]);
6067
6069
  }), 1)], 1);
6068
6070
  }), e._t("footer")], 2), t("transition", { attrs: { name: "slide-right" } }, [t("div", { directives: [{ name: "show", rawName: "v-show", value: e.activeSubMenu, expression: "activeSubMenu" }], staticClass: "submenu", on: { "&mouseover": function(o) {
6069
6071
  e.subMenuToShow = e.activeSubMenu;
@@ -6074,7 +6076,7 @@ var Ma = function() {
6074
6076
  }), 1)], 1)], 1)])], 1)];
6075
6077
  } }], null, !0) })];
6076
6078
  } }]) });
6077
- }, Ia = [], Fa = /* @__PURE__ */ c(
6079
+ }, Ia = [], Fa = /* @__PURE__ */ d(
6078
6080
  Ba,
6079
6081
  Ma,
6080
6082
  Ia,
@@ -6105,9 +6107,9 @@ const Aa = {
6105
6107
  Fields: ha,
6106
6108
  ExtensionTab: ya,
6107
6109
  DocumentGeneralSettings: ka,
6108
- DocumentGuide: () => import("./index-3197309d.js"),
6110
+ DocumentGuide: () => import("./index-02573377.js"),
6109
6111
  MenuBlocks: Ha,
6110
- Simplebar: k
6112
+ Simplebar: L
6111
6113
  },
6112
6114
  props: {
6113
6115
  state: {
@@ -6197,9 +6199,11 @@ var Pa = function() {
6197
6199
  }
6198
6200
  ] }, [t("BaseIcon", { staticStyle: { color: "white" }, attrs: { type: e.extensionTabType, size: "14" } })], 1)]) : e._e(), t("div", { staticClass: "tab-item ml-[2px]", class: { "is-active": e.tab === "generalSettings" }, on: { click: function(a) {
6199
6201
  e.tab = "generalSettings";
6200
- } } }, [t("BaseIcon", { staticStyle: {}, attrs: { type: "cog", size: "16" } })], 1)]), e.tab === "blocks" ? t("MenuBlocks", { attrs: { _document: e.state, set: e.set, "remove-value": e.removeValue, fixed: e.fixed, "can-use-blocks": e.canUseBlocks }, on: { "block-added": e.onAddedBlock } }, [t("div", { staticStyle: { flex: "1 1 auto", display: "flex", "flex-direction": "column", "justify-content": "flex-end", "align-items": "flex-start", padding: "calc(1 * var(--rem))" }, attrs: { slot: "footer" }, slot: "footer" }, [t("CButton", { staticStyle: { position: "relative" }, attrs: { "icon-left": "help", type: "none", pattern: "secondary", size: "small" }, on: { click: e.openGuide } }, [e._v(" " + e._s(e.$t("guideButton")) + " "), e.showGuideNotification ? t("div", { staticClass: "circle-pulse" }) : e._e()])], 1)]) : t("div", { staticClass: "menu-container" }, [t("Simplebar", { staticClass: "w-full h-full" }, [e.tab === "design" ? t("Design", { attrs: { _document: e.state, _value: {
6202
+ } } }, [t("BaseIcon", { staticStyle: {}, attrs: { type: "cog", size: "16" } })], 1)]), e.tab === "blocks" ? t("MenuBlocks", { attrs: { _document: e.state, set: e.set, "remove-value": e.removeValue, fixed: e.fixed, "can-use-blocks": e.canUseBlocks }, on: { "block-added": function(a) {
6203
+ e.onAddedBlock(a), e.fixed && e.$emit("close");
6204
+ } } }, [t("div", { staticStyle: { flex: "1 1 auto", display: "flex", "flex-direction": "column", "justify-content": "flex-end", "align-items": "flex-start", padding: "calc(1 * var(--rem))" }, attrs: { slot: "footer" }, slot: "footer" }, [t("CButton", { staticStyle: { position: "relative" }, attrs: { "icon-left": "help", type: "none", pattern: "secondary", size: "small" }, on: { click: e.openGuide } }, [e._v(" " + e._s(e.$t("guideButton")) + " "), e.showGuideNotification ? t("div", { staticClass: "circle-pulse" }) : e._e()])], 1)]) : t("div", { staticClass: "menu-container" }, [t("Simplebar", { staticClass: "w-full h-full" }, [e.tab === "design" ? t("Design", { attrs: { _document: e.state, _value: {
6201
6205
  css: "data.css"
6202
- }, set: e.set, offset: e.width } }) : e.tab === "fields" ? t("Fields", { attrs: { _document: e.state, "crm-service": e.extensionTabType, _value: {
6206
+ }, set: e.set, offset: e.fixed ? 0 : e.width } }) : e.tab === "fields" ? t("Fields", { attrs: { _document: e.state, "crm-service": e.extensionTabType, _value: {
6203
6207
  css: "data.css"
6204
6208
  }, set: e.set } }) : e.tab === "extension" ? t("ExtensionTab", { attrs: { _document: e.state, _value: {
6205
6209
  externalReferences: "externalReferences",
@@ -6215,16 +6219,16 @@ var Pa = function() {
6215
6219
  useVat: "data.formSettings.useVat",
6216
6220
  vatType: "data.formSettings.vatType",
6217
6221
  rounding: "data.formSettings.rounding"
6218
- }, offset: 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) {
6222
+ }, 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) {
6219
6223
  e.showGuide = !1;
6220
6224
  } } }) : e._e()], 1)])]);
6221
- }, Ea = [], za = /* @__PURE__ */ c(
6225
+ }, Ea = [], za = /* @__PURE__ */ d(
6222
6226
  Aa,
6223
6227
  Pa,
6224
6228
  Ea,
6225
6229
  !1,
6226
6230
  null,
6227
- "0e0165ab",
6231
+ "670ad23f",
6228
6232
  null,
6229
6233
  null
6230
6234
  );
@@ -6272,7 +6276,7 @@ var Ua = function() {
6272
6276
  } } }, [t("BaseIcon", { attrs: { type: "chevron-down", size: "16" } })], 1)]), t("div", { staticClass: "control-button remove", on: { click: function(a) {
6273
6277
  return e.$emit("remove");
6274
6278
  } } }, [t("BaseIcon", { attrs: { type: "x", size: "16" } })], 1)]) : e._e()], 2);
6275
- }, Ra = [], Ga = /* @__PURE__ */ c(
6279
+ }, Ra = [], Ga = /* @__PURE__ */ d(
6276
6280
  Oa,
6277
6281
  Ua,
6278
6282
  Ra,
@@ -6370,7 +6374,7 @@ var Na = function() {
6370
6374
  }, remove: function(a) {
6371
6375
  return e.$emit("remove");
6372
6376
  } } }, [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)]);
6373
- }, ja = [], Ka = /* @__PURE__ */ c(
6377
+ }, ja = [], Ka = /* @__PURE__ */ d(
6374
6378
  qa,
6375
6379
  Na,
6376
6380
  ja,
@@ -6384,7 +6388,7 @@ const Ya = Ka.exports;
6384
6388
  const Qa = {
6385
6389
  name: "DocumentDrawer",
6386
6390
  components: {
6387
- simplebar: k,
6391
+ simplebar: L,
6388
6392
  Drawer: ce
6389
6393
  },
6390
6394
  props: {
@@ -6419,7 +6423,7 @@ var Ja = function() {
6419
6423
  padding: "calc(2.5 * var(--rem)) calc(1 * var(--rem)) calc(6 * var(--rem)) calc(1 * var(--rem))",
6420
6424
  ...e.fixedStyle
6421
6425
  } }, [e._t("default")], 2)])])]) : e._e()], 1);
6422
- }, Xa = [], en = /* @__PURE__ */ c(
6426
+ }, Xa = [], en = /* @__PURE__ */ d(
6423
6427
  Qa,
6424
6428
  Ja,
6425
6429
  Xa,
@@ -6450,7 +6454,7 @@ var nn = function() {
6450
6454
  } } }, [e.small ? t("BaseIcon", { attrs: { type: "edit", size: "18" } }) : [e._v(e._s(e.$t("edit")))]], 2), t("div", { staticClass: "nav-toggle-button", class: { active: e.value === "preview" }, attrs: { "data-onboarding": "preview-button" }, on: { click: function(a) {
6451
6455
  e.value === "edit" && e.$emit("input", "preview");
6452
6456
  } } }, [e.small ? t("BaseIcon", { attrs: { type: "eye", size: "18" } }) : [e._v(e._s(e.$t("preview")))]], 2)]);
6453
- }, sn = [], on = /* @__PURE__ */ c(
6457
+ }, sn = [], on = /* @__PURE__ */ d(
6454
6458
  an,
6455
6459
  nn,
6456
6460
  sn,
@@ -6483,7 +6487,7 @@ var cn = function() {
6483
6487
  return t("div", { staticClass: "z-50 flex justify-end bottom-0 left-0 right-0 pb-[10px] px-[10px] pointer-events-none", class: e.position }, [t("a", { staticClass: "pointer-events-auto inline-flex items-center h-8 pl-1.5 pr-2 border rounded-md bg-black/80 border-white/30", attrs: { href: `https://${e.$t(
6484
6488
  "_common:brand.domain"
6485
6489
  )}?utm_source=document&utm_medium=logo-banner`, target: "_blank" } }, [t("div", { staticClass: "w-5 h-5 mr-2 overflow-hidden bg-white rounded" }, [t("img", { staticClass: "w-full h-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")) + " ")])])]);
6486
- }, dn = [], pn = /* @__PURE__ */ c(
6490
+ }, dn = [], pn = /* @__PURE__ */ d(
6487
6491
  rn,
6488
6492
  cn,
6489
6493
  dn,
@@ -6500,7 +6504,7 @@ const mn = {
6500
6504
  var hn = function() {
6501
6505
  var e = this, t = e._self._c;
6502
6506
  return t("div", { staticClass: "DocumentFormNav py-2 px-2 md:px-6 fixed left-0 top-0 right-0 z-[98]" }, [t("div", { staticClass: "flex" }, [t("div", { staticClass: "inline-flex items-center flex-grow" }, [e._t("left")], 2), t("div", { staticClass: "inline-flex items-center justify-center flex-auto" }, [e._t("center")], 2), t("div", { staticClass: "inline-flex items-center justify-end flex-grow" }, [e._t("right")], 2)])]);
6503
- }, fn = [], gn = /* @__PURE__ */ c(
6507
+ }, fn = [], gn = /* @__PURE__ */ d(
6504
6508
  mn,
6505
6509
  hn,
6506
6510
  fn,
@@ -6533,19 +6537,19 @@ const pe = (i, e, t = "$children") => {
6533
6537
  },
6534
6538
  name: "DocumentFormContainer",
6535
6539
  components: {
6536
- WithDimensions: et,
6540
+ WithDimensions: it,
6537
6541
  DragList: X,
6538
6542
  DragItem: ee,
6539
- DynamicChapter: tt,
6543
+ DynamicChapter: at,
6540
6544
  DocumentFormMenu: Za,
6541
6545
  DynamicBlock: Ya,
6542
6546
  DocumentFormViewRadio: ln,
6543
6547
  DocumentFormNav: Cn,
6544
6548
  DocumentDrawer: tn,
6545
- DocumentStyleContainer: it,
6546
- simplebar: k,
6549
+ DocumentStyleContainer: nt,
6550
+ simplebar: L,
6547
6551
  LogoBanner: un,
6548
- IsPremium: b
6552
+ IsPremium: _
6549
6553
  },
6550
6554
  props: {
6551
6555
  _document: {
@@ -6582,7 +6586,7 @@ const pe = (i, e, t = "$children") => {
6582
6586
  default: !0
6583
6587
  }
6584
6588
  },
6585
- mixins: [$],
6589
+ mixins: [b],
6586
6590
  data() {
6587
6591
  return {
6588
6592
  drawerState: v,
@@ -6665,7 +6669,7 @@ const pe = (i, e, t = "$children") => {
6665
6669
  await Promise.all(
6666
6670
  (i || []).map(async ({ service: e, type: t, typeId: a }) => {
6667
6671
  if (t && a && e && this.$store.getters["settings/isAuthenticatedCRM"](e)) {
6668
- const { data: n } = await L.getFields(
6672
+ const { data: n } = await $.getFields(
6669
6673
  e,
6670
6674
  { type: t, typeId: a, populated: !0 }
6671
6675
  );
@@ -6744,7 +6748,7 @@ const pe = (i, e, t = "$children") => {
6744
6748
  if (e !== null && t !== null) {
6745
6749
  if (e === t)
6746
6750
  return;
6747
- const n = Re(
6751
+ const n = We(
6748
6752
  this.nestedReadLayout,
6749
6753
  e,
6750
6754
  t
@@ -6756,7 +6760,7 @@ const pe = (i, e, t = "$children") => {
6756
6760
  } else if (!e && t !== null) {
6757
6761
  const { sectionKey: n, createNewSection: s, addValidation: o, contentData: l } = a, {
6758
6762
  readView: r,
6759
- validation: p,
6763
+ validation: c,
6760
6764
  data: C,
6761
6765
  onAddFnName: V = "onAdd"
6762
6766
  } = s({
@@ -6764,8 +6768,8 @@ const pe = (i, e, t = "$children") => {
6764
6768
  document: this._document,
6765
6769
  contentData: l
6766
6770
  });
6767
- o({ validation: p, data: C });
6768
- const ue = Ge({ tree: r }), me = [
6771
+ o({ validation: c, data: C });
6772
+ const ue = qe({ tree: r }), me = [
6769
6773
  ...this.nestedReadLayout.slice(0, t),
6770
6774
  ...ue,
6771
6775
  ...this.nestedReadLayout.slice(t)
@@ -6796,9 +6800,9 @@ var yn = function() {
6796
6800
  "device-offset": e.isEditView
6797
6801
  }, style: e.drawerState.showLeft && !e.drawerState.isFixed && {
6798
6802
  marginLeft: `${e.sidebarWidth}px`
6799
- } }, [t("DocumentFormNav", { style: {
6803
+ } }, [t("DocumentFormNav", { style: !e.drawerState.isFixed && {
6800
6804
  marginLeft: e.drawerState.showLeft ? `${e.sidebarWidth}px` : 0
6801
- }, attrs: { close: e.close } }, [t("div", { staticClass: "flex items-center w-full", staticStyle: { position: "relative" }, attrs: { slot: "left" }, slot: "left" }, [e.close ? t("CButton", { staticClass: "d-nav-button position left close", staticStyle: { "font-size": "16px", height: "2.25em", width: "2.25em", "flex-shrink": "0", "margin-right": "0.5em", "background-color": "hsla(240, 10%, 94%, 0.35)" }, attrs: { "icon-props": { size: 20 }, size: "normal", icon: "x", circle: "", type: "none", pattern: "tertiary" }, on: { click: e.close } }) : e._e(), e.goBack ? t("CButton", { staticClass: "mr-2", staticStyle: { "background-color": "hsla(240, 10%, 94%, 0.35)" }, attrs: { circle: "", type: "none", pattern: "tertiary", icon: "arrow-left" }, on: { click: e.goBack } }) : e._e(), t("div", { staticClass: "relative" }, [t("CButton", { staticStyle: { "font-size": "16px", height: "2.5em", width: "2.5em", "background-color": "hsla(240, 10%, 94%, 0.35)" }, attrs: { circle: "", type: "none", pattern: "tertiary", icon: "sidebar" }, on: { click: function(a) {
6805
+ }, attrs: { close: e.close } }, [t("div", { staticClass: "flex items-center w-full", staticStyle: { position: "relative" }, attrs: { slot: "left" }, slot: "left" }, [e.close ? t("CButton", { staticClass: "d-nav-button position left close", staticStyle: { "font-size": "16px", height: "2.25em", width: "2.25em", "flex-shrink": "0", "margin-right": "0.5em", "background-color": "hsla(240, 10%, 94%, 0.35)" }, attrs: { "icon-props": { size: 20 }, size: "normal", icon: "x", circle: "", type: "none", pattern: "tertiary" }, on: { click: e.close } }) : e._e(), e.goBack && e.mq !== "sm" ? t("CButton", { staticClass: "mr-2", staticStyle: { "background-color": "hsla(240, 10%, 94%, 0.35)" }, attrs: { circle: "", type: "none", pattern: "tertiary", icon: "arrow-left" }, on: { click: e.goBack } }) : e._e(), t("div", { staticClass: "relative" }, [t("CButton", { staticStyle: { "font-size": "16px", height: "2.5em", width: "2.5em", "background-color": "hsla(240, 10%, 94%, 0.35)" }, attrs: { circle: "", type: "none", pattern: "tertiary", icon: "sidebar" }, on: { click: function(a) {
6802
6806
  return a.stopPropagation(), e.drawerState.toggleLeft.apply(null, arguments);
6803
6807
  } } }), t("transition", { attrs: { name: "fade-bounce", appear: "" } }, [!e.nestedReadLayout.length && e.isFixedSidebar ? t("div", { staticClass: "absolute w-64 p-3 text-base font-semibold leading-snug text-white translate-y-2 rounded-lg shadow-lg bg-primary-500 -left-3/4 top-full" }, [e._v(" " + e._s(e.$t("emptyBlockPlaceholderSmall")) + " "), t("svg", { staticClass: "absolute top-0 -translate-y-full text-primary-500 left-10", attrs: { width: "16", height: "6", xmlns: "http://www.w3.org/2000/svg" } }, [t("path", { attrs: { d: "M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z", fill: "currentColor" } })])]) : e._e()])], 1), e._t("nav-left")], 2), t("div", { staticStyle: { position: "relative" }, attrs: { slot: "center" }, slot: "center" }, [t("DocumentFormViewRadio", { directives: [{ name: "show", rawName: "v-show", value: e.nestedReadLayout.length, expression: "nestedReadLayout.length" }], attrs: { small: e.mq === "sm", value: e.view }, on: { input: function(a) {
6804
6808
  return e.$emit("update:view", a);
@@ -6840,19 +6844,19 @@ var yn = function() {
6840
6844
  {
6841
6845
  "drag-item": e.canMove
6842
6846
  }
6843
- ] }, [t("DynamicBlock", { ref: l.nodeId, refInFor: !0, attrs: { "is-dragging": e.isDragging, "is-edit-view": e.isEditView, "can-move": e.canMove, "block-type": l.itemType, "is-visible": l.isVisible, "show-edit-button": !!l.showEditButton }, on: { remove: function(p) {
6847
+ ] }, [t("DynamicBlock", { ref: l.nodeId, refInFor: !0, attrs: { "is-dragging": e.isDragging, "is-edit-view": e.isEditView, "can-move": e.canMove, "block-type": l.itemType, "is-visible": l.isVisible, "show-edit-button": !!l.showEditButton }, on: { remove: function(c) {
6844
6848
  return e.onBlockRemove(l, r);
6845
- }, move: function(p) {
6846
- return e.onBlockMove(p, r);
6847
- }, edit: function(p) {
6848
- e.drawerState.openSection = p;
6849
- }, "toggle-visible": function(p) {
6850
- return e.onBlockToggleVisible(l, p);
6849
+ }, move: function(c) {
6850
+ return e.onBlockMove(c, r);
6851
+ }, edit: function(c) {
6852
+ e.drawerState.openSection = c;
6853
+ }, "toggle-visible": function(c) {
6854
+ return e.onBlockToggleVisible(l, c);
6851
6855
  } } }, [t("DynamicChapter", { attrs: { "component-name": l.componentName, "component-props": {
6852
6856
  ...l.props,
6853
6857
  _document: e._document,
6854
6858
  _value: l.value
6855
- }, children: l.children, "parent-size": e.parentSize, "is-visible": l.isVisible, "on-input": ({ key: p, value: C, options: V }) => e.setFormValue({ key: p, value: C, options: V }), "on-remove": ({ key: p }) => e.removeFormValue(p), "on-mount": (p) => e.onAddBlockMount(l.nodeId, p) } })], 1)], 1);
6859
+ }, children: l.children, "parent-size": e.parentSize, "is-visible": l.isVisible, "on-input": ({ key: c, value: C, options: V }) => e.setFormValue({ key: c, value: C, options: V }), "on-remove": ({ key: c }) => e.removeFormValue(c), "on-mount": (c) => e.onAddBlockMount(l.nodeId, c) } })], 1)], 1);
6856
6860
  }), 1) : e._e(), e.canShowBanner ? t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ isProLike: l }) {
6857
6861
  return [!e.isEditView && !l ? t("LogoBanner", { attrs: { position: "sticky" } }) : e._e()];
6858
6862
  } }], null, !0) }) : e._e()], 1);
@@ -6864,13 +6868,13 @@ var yn = function() {
6864
6868
  }, xn = [function() {
6865
6869
  var i = this, e = i._self._c;
6866
6870
  return e("div", { staticClass: "drag-drop-illustration-block" }, [e("div"), e("div")]);
6867
- }], wn = /* @__PURE__ */ c(
6871
+ }], wn = /* @__PURE__ */ d(
6868
6872
  vn,
6869
6873
  yn,
6870
6874
  xn,
6871
6875
  !1,
6872
6876
  null,
6873
- "7bbc9812",
6877
+ "d761f136",
6874
6878
  null,
6875
6879
  null
6876
6880
  );
@@ -6878,7 +6882,7 @@ const bn = wn.exports;
6878
6882
  function _n(i, e, t) {
6879
6883
  return i === i && (t !== void 0 && (i = i <= t ? i : t), e !== void 0 && (i = i >= e ? i : e)), i;
6880
6884
  }
6881
- var kn = _n, Ln = kn, M = nt;
6885
+ var kn = _n, Ln = kn, M = ot;
6882
6886
  function $n(i, e, t) {
6883
6887
  return t === void 0 && (t = e, e = void 0), t !== void 0 && (t = M(t), t = t === t ? t : 0), e !== void 0 && (e = M(e), e = e === e ? e : 0), Ln(M(i), e, t);
6884
6888
  }
@@ -6886,7 +6890,7 @@ var Sn = $n;
6886
6890
  const Tn = /* @__PURE__ */ K(Sn);
6887
6891
  const Dn = {
6888
6892
  name: "RemainingTrialButton",
6889
- components: { IsPremium: b },
6893
+ components: { IsPremium: _ },
6890
6894
  i18nOptions: {
6891
6895
  namespace: "RemainingTrialButton",
6892
6896
  messages: {
@@ -6914,6 +6918,7 @@ const Dn = {
6914
6918
  }
6915
6919
  }
6916
6920
  },
6921
+ mixins: [b],
6917
6922
  methods: {
6918
6923
  clamp: Tn
6919
6924
  }
@@ -6926,17 +6931,17 @@ var Vn = function() {
6926
6931
  openUpgradeModal: s,
6927
6932
  initialFreePremiumDays: o
6928
6933
  }) {
6929
- return [a === "trial" ? t("v-popover", { attrs: { "popover-inner-class": "bg-white rounded-md shadow-xl" } }, [t("div", { staticClass: "relative flex flex-col justify-center px-2 mr-2 text-xs font-semibold rounded-md cursor-pointer select-none bg-gray-200/50 h-9 backdrop-blur-lg backdrop-saturate-150" }, [t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$tc("_common:day", { count: n })) + " " + e._s(e.$t("button")) + " ")]), t("div", { staticClass: "h-[3px] bg-gray-300 absolute bottom-1 left-2 right-2 rounded-full ring-1 ring-white/10" }, [t("div", { staticClass: "absolute h-full rounded-full bg-gradient-to-r from-green-500 via-emerald-500 to-primary-600", style: {
6934
+ return [a === "trial" && e.mq !== "sm" ? t("v-popover", { attrs: { "popover-inner-class": "bg-white rounded-md shadow-xl" } }, [t("div", { staticClass: "relative flex flex-col justify-center px-2 mr-2 text-xs font-semibold rounded-md cursor-pointer select-none bg-gray-200/50 h-9 backdrop-blur-lg backdrop-saturate-150" }, [t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$tc("_common:day", { count: n })) + " " + e._s(e.$t("button")) + " ")]), t("div", { staticClass: "h-[3px] bg-gray-300 absolute bottom-1 left-2 right-2 rounded-full ring-1 ring-white/10" }, [t("div", { staticClass: "absolute h-full rounded-full bg-gradient-to-r from-green-500 via-emerald-500 to-primary-600", style: {
6930
6935
  width: e.clamp(n / o * 100, 0, 100) + "%"
6931
6936
  } })])]), t("div", { staticClass: "p-4 text-sm w-56", attrs: { slot: "popover" }, slot: "popover" }, [t("div", { staticClass: "font-semibold" }, [e._v(" " + e._s(e.$t("title.1")) + " "), t("span", { staticClass: "inline-flex py-[3px] px-1.5 leading-none bg-primary-100 border border-primary-200 text-primary-800 rounded-md text-xs" }, [e._v(e._s(e.$t("title.2")))]), e._v(" " + e._s(e.$t("title.3", { trialDaysLeft: n })) + ". ")]), t("div", { staticClass: "text-sm text-gray-600" }, [e._v(" " + e._s(e.$t("title.4")) + " "), t("span", { staticClass: "inline-flex py-[3px] px-1.5 leading-none bg-gray-200 border border-gray-300 text-gray-600 rounded-md text-xs font-semibold" }, [e._v(e._s(e.$t("title.5")))]), e._v(". ")]), t("div", { staticClass: "mt-5" }, [t("CButton", { directives: [{ name: "close-popover", rawName: "v-close-popover" }], attrs: { type: "secondary", size: "small", "icon-right": "arrow-right" }, on: { click: s } }, [e._v(" " + e._s(e.$t("actionButton")) + " ")])], 1)])]) : e._e()];
6932
6937
  } }]) });
6933
- }, Bn = [], Mn = /* @__PURE__ */ c(
6938
+ }, Bn = [], Mn = /* @__PURE__ */ d(
6934
6939
  Dn,
6935
6940
  Vn,
6936
6941
  Bn,
6937
6942
  !1,
6938
6943
  null,
6939
- "a8e48834",
6944
+ "ef060cb6",
6940
6945
  null,
6941
6946
  null
6942
6947
  );
@@ -6949,8 +6954,8 @@ const In = Mn.exports, T = A.observable({
6949
6954
  name: "DocumentForm",
6950
6955
  components: {
6951
6956
  DocumentFormContainer: bn,
6952
- IsPremium: b,
6953
- IsPremiumPreStep: _,
6957
+ IsPremium: _,
6958
+ IsPremiumPreStep: k,
6954
6959
  DocumentSend: Ri,
6955
6960
  RemainingTrialButton: In
6956
6961
  },
@@ -7086,7 +7091,7 @@ var Hn = function() {
7086
7091
  reminders: "data.reminders",
7087
7092
  name: "data.name"
7088
7093
  }, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "on-save-document": e.onSaveDocument } })], 1) : e._e();
7089
- }, An = [], Pn = /* @__PURE__ */ c(
7094
+ }, An = [], Pn = /* @__PURE__ */ d(
7090
7095
  Fn,
7091
7096
  Hn,
7092
7097
  An,
@@ -7099,7 +7104,7 @@ var Hn = function() {
7099
7104
  const En = Pn.exports;
7100
7105
  const zn = {
7101
7106
  name: "DocumentPostSendStep",
7102
- mixins: [$],
7107
+ mixins: [b],
7103
7108
  i18nOptions: {
7104
7109
  namespaces: "PostDocumentSend",
7105
7110
  messages: {
@@ -7220,7 +7225,7 @@ const zn = {
7220
7225
  var Zn = function() {
7221
7226
  var e = this, t = e._self._c;
7222
7227
  return t("div", { staticClass: "font-inter root" }, [t("div", { staticClass: "container" }, [t("div", { staticClass: "icon-wrapper" }, [t("BaseIcon", { 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)]);
7223
- }, On = [], Un = /* @__PURE__ */ c(
7228
+ }, On = [], Un = /* @__PURE__ */ d(
7224
7229
  zn,
7225
7230
  Zn,
7226
7231
  On,
@@ -7235,7 +7240,7 @@ A.use(ct);
7235
7240
  const Gn = {
7236
7241
  name: "DocForm",
7237
7242
  mixins: [
7238
- We([
7243
+ Ne([
7239
7244
  "closeFunc",
7240
7245
  "beforeSave",
7241
7246
  "beforeSend",
@@ -7279,7 +7284,7 @@ const Gn = {
7279
7284
  };
7280
7285
  },
7281
7286
  computed: {
7282
- ...qe({
7287
+ ...je({
7283
7288
  company: "application/company",
7284
7289
  feature: "application/feature",
7285
7290
  can: "application/can",
@@ -7308,7 +7313,7 @@ const Gn = {
7308
7313
  (!this.rawDoc || (i = this.rawDoc) != null && i.__isNew) && (this.view = "templateSelect");
7309
7314
  },
7310
7315
  methods: {
7311
- ...Ne({
7316
+ ...Ke({
7312
7317
  removeFormKeyValue: m.REMOVE_FORM_KEY_VALUE,
7313
7318
  loadDocumentForm: m.LOAD_DOCUMENT2_FORM,
7314
7319
  duplicateDocumentForm: m.LOAD_DUPLICATE_DOCUMENT2_FORM,
@@ -7339,7 +7344,7 @@ const Gn = {
7339
7344
  _formData: a
7340
7345
  }) : await this.loadDocumentForm({
7341
7346
  templateId: i,
7342
- formData: t ? je(t, a) : null,
7347
+ formData: t ? Ye(t, a) : null,
7343
7348
  _formData: a
7344
7349
  }), (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";
7345
7350
  },
@@ -7383,7 +7388,7 @@ const Gn = {
7383
7388
  var Wn = function() {
7384
7389
  var e = this, t = e._self._c;
7385
7390
  return t("div", { staticClass: "flex flex-col w-full h-full" }, [e.view === "templateSelect" ? t("div", { staticClass: "flex flex-col w-full h-full" }, [t("div", { staticClass: "relative flex items-center justify-center h-16 border-b border-gray-200" }, [t("CButton", { staticClass: "absolute -translate-y-1/2 top-1/2 left-4", attrs: { icon: "x", circle: "" }, on: { click: e.close } }), t("div", [e._v(e._s(e.$t("selectNavTitle")))])], 1), t("TemplateSelector", { staticClass: "min-h-0 body-scroll", attrs: { "on-use-template": e.onTemplateSelect, "show-gallery": e.feature("templateGallery"), "show-gallery-template-author": !1, "gallery-category": e.galleryCategory, "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-document": e.onSaveDocument, "is-loading": e.isPosting, close: e.close, "go-back": e.document.id ? null : e.goBack, "can-show-banner": !1 } }) : t("PostSend", { attrs: { document: e.document, "on-send-func": e.close, "on-close-func": e.close } })], 1);
7386
- }, qn = [], Nn = /* @__PURE__ */ c(
7391
+ }, qn = [], Nn = /* @__PURE__ */ d(
7387
7392
  Gn,
7388
7393
  Wn,
7389
7394
  qn,
@@ -7393,7 +7398,7 @@ var Wn = function() {
7393
7398
  null,
7394
7399
  null
7395
7400
  );
7396
- const Ds = Nn.exports;
7401
+ const Ss = Nn.exports;
7397
7402
  export {
7398
- Ds as default
7403
+ Ss as default
7399
7404
  };