@cling-se/widget 0.15.2 → 0.15.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/dist/{AddClientCallout-CSxN7XFh.js → AddClientCallout-8s5a1_CZ.js} +3 -3
  2. package/dist/{AnswerModal-DEwMlsT8.js → AnswerModal-Cnp43tGo.js} +3 -3
  3. package/dist/{AttachmentItem-R7YMKqQ2.js → AttachmentItem-BP85gcjP.js} +6 -4
  4. package/dist/{BaseDatePicker-Bd1maWgF.js → BaseDatePicker-C27CsTzy.js} +561 -557
  5. package/dist/{BaseUpload-C9Jd1JBo.js → BaseUpload-DnhS3hGx.js} +2 -2
  6. package/dist/{BlockMedia-CUCZYVdZ.js → BlockMedia-D4nhek2s.js} +1 -1
  7. package/dist/{CCallout-_k7FPbsE.js → CCallout-CQjRcxpC.js} +1 -1
  8. package/dist/{CCurrencyDropdown-DejfeYVY.js → CCurrencyDropdown-BT01qBGg.js} +24 -20
  9. package/dist/{CDropdownItem-b6ZzOnv-.js → CDropdownItem-BSPNul90.js} +1 -1
  10. package/dist/{CFormField-BjGICSv5.js → CFormField-Cz_jNazS.js} +1 -1
  11. package/dist/{CPhoneFormat-Bf2fgYtr.js → CPhoneFormat-C017AoM0.js} +1 -1
  12. package/dist/{CPriceInput-myrETXfz.js → CPriceInput-jktMjvwx.js} +20 -16
  13. package/dist/ClientAutocomplete-B3z6RPXr.js +82 -0
  14. package/dist/{ClientModal-DSmFJ9bu.js → ClientModal-DLtFhJya.js} +31 -25
  15. package/dist/{ColorPicker-B1MJicqo.js → ColorPicker-MQmVGbvm.js} +1 -1
  16. package/dist/{CompanyModal-BXs3aAYm.js → CompanyModal-Qx5xMku0.js} +4 -4
  17. package/dist/{ContentWrapper-BKWZy4Bp.js → ContentWrapper-B9NQqp2q.js} +60 -52
  18. package/dist/{CoverBlockSettings-7Ivt9zN0.js → CoverBlockSettings-Bcz_W5I3.js} +5 -5
  19. package/dist/{DocAnswer-CaoTYUNh.js → DocAnswer-BlxFv_Gc.js} +2 -2
  20. package/dist/{DocDetails-C9EEpNg2.js → DocDetails-dGcYGJpp.js} +39 -35
  21. package/dist/{DocForm-Dww8Ust9.js → DocForm-C6o_XBcW.js} +352 -320
  22. package/dist/{DocFormSend-DKAqaT50.js → DocFormSend-_prtxNIf.js} +11 -7
  23. package/dist/{DocLinks-DFUO03dk.js → DocLinks-Dp495SCS.js} +2 -2
  24. package/dist/{DocModalBase-QZosNhiK.js → DocModalBase-B0wYq3ft.js} +1 -1
  25. package/dist/{DocPrint--T278pDE.js → DocPrint-CURxofeU.js} +1 -1
  26. package/dist/{DocReceipt-CPg45_I7.js → DocReceipt-DgGcBRVH.js} +5 -3
  27. package/dist/{DocSendReminder-DQAaiUrs.js → DocSendReminder-CPty4svi.js} +1 -1
  28. package/dist/{DocTextEditor-CM1f8eMD.js → DocTextEditor-BYsXFRLg.js} +67 -63
  29. package/dist/{DocTimeline-Ce0OZgGP.js → DocTimeline-CHg1QykR.js} +7 -5
  30. package/dist/{DocumentClient-DHU-Rg3r.js → DocumentClient-CZ6N73pQ.js} +5 -5
  31. package/dist/{DocumentLayout-GYCBw2F_.js → DocumentLayout-CiszuoQc.js} +17 -13
  32. package/dist/{DocumentLogotype-Cilc0ElE.js → DocumentLogotype-BgFCWcwC.js} +17 -15
  33. package/dist/{DocumentVoided-BH8pkv85.js → DocumentVoided-DT2hhHk2.js} +1 -1
  34. package/dist/{EmbedInput-lMSVQSey.js → EmbedInput-aLmvzK1I.js} +2 -2
  35. package/dist/{EmbedSettings-D65Y2AZL.js → EmbedSettings-BZipciy9.js} +2 -2
  36. package/dist/{ErrorCallout-BBNHzuhf.js → ErrorCallout-CNxSDsr_.js} +1 -1
  37. package/dist/{FilePreviewModal-iPIuaIor.js → FilePreviewModal-DxdksQiy.js} +2 -2
  38. package/dist/{Flag-CwnrA4SV.js → Flag-3OyFDPsP.js} +1 -1
  39. package/dist/{HeaderSettings-WKUIBCfF.js → HeaderSettings-DeoSRi6O.js} +18 -14
  40. package/dist/{ImageSelectModal-BTMFM3o9.js → ImageSelectModal-DvQz2VPi.js} +13 -11
  41. package/dist/{ImageUploadWrapper-BaLjUZF5.js → ImageUploadWrapper-CNQRdHF9.js} +2 -2
  42. package/dist/{Index-CEHhYmLe.js → Index-3bD76d9q.js} +6 -6
  43. package/dist/{Index-DK3b6Cv-.js → Index-B0n1UOOA.js} +2 -2
  44. package/dist/{Index-B-UWz1IM.js → Index-B3Q09phm.js} +4 -4
  45. package/dist/{Index-Bsv15ctO.js → Index-B9_POjpY.js} +5 -5
  46. package/dist/{Index-Dv1fkHWQ.js → Index-BDCgilFk.js} +2 -2
  47. package/dist/{Index-ZKkQzVOj.js → Index-BEpKb8IR.js} +3 -3
  48. package/dist/{Index-BepvyGqo.js → Index-BIv8flFB.js} +8 -8
  49. package/dist/{Index-9PMrT3eB.js → Index-BNJ2KHKc.js} +2 -2
  50. package/dist/{Index-BBOJRRgx.js → Index-BeMeWDIf.js} +5 -5
  51. package/dist/{Index-BBTn35Kj.js → Index-BglKAnNq.js} +21 -17
  52. package/dist/{Index-rL3fz1Ew.js → Index-BiVwDgqW.js} +2 -2
  53. package/dist/{Index-BQ3kapHk.js → Index-BjdxeF4C.js} +2 -2
  54. package/dist/{Index-C6tGNKAk.js → Index-C-CE21WK.js} +5 -5
  55. package/dist/{Index-2PGn8Pnv.js → Index-CDKq7Fx6.js} +4 -4
  56. package/dist/{Index-CEaZgZqg.js → Index-CJeSVpRh.js} +2 -2
  57. package/dist/{Index-CtZMlBfK.js → Index-CPjAXBMU.js} +5 -5
  58. package/dist/{Index-B_ta4yT_.js → Index-CTk6Nh-I.js} +5 -5
  59. package/dist/{Index-B5XaBVyJ.js → Index-CTqdaykO.js} +3 -3
  60. package/dist/{Index-BUEXgHEE.js → Index-CWj2vDHc.js} +17 -15
  61. package/dist/{Index-CtQo0b8t.js → Index-CXibuEkU.js} +1 -1
  62. package/dist/{Index-GrrsUUz1.js → Index-CePHdKi2.js} +4 -4
  63. package/dist/{Index-ivhPuQy5.js → Index-Cfc0Q0AG.js} +5 -5
  64. package/dist/{Index-DrSgVUyo.js → Index-Ch5j2tqD.js} +1 -1
  65. package/dist/{Index-B51tj7qY.js → Index-CjfCyQlB.js} +4 -4
  66. package/dist/{Index-B0pgh8nR.js → Index-Cr6DlYGN.js} +2 -2
  67. package/dist/{Index-DS7xellB.js → Index-CvRNeJ4U.js} +7 -7
  68. package/dist/{Index-B-YqdbQX.js → Index-D-l3i9vY.js} +3 -3
  69. package/dist/{Index-cPIqnY80.js → Index-D1NwTUs-.js} +5 -5
  70. package/dist/{Index-DJeZiYxr.js → Index-FC1UsElU.js} +4 -4
  71. package/dist/{Index-DS1PwlDq.js → Index-PUFeH_1z.js} +4 -4
  72. package/dist/{Index-Ccx9wHcb.js → Index-S3LqU0A0.js} +9 -7
  73. package/dist/{Index-BVt3pj58.js → Index-jIIHHGh3.js} +371 -345
  74. package/dist/{Index-oKRUWCcJ.js → Index-q04Dwxrr.js} +17 -15
  75. package/dist/{Index-0aZtDWyk.js → Index-w5DWfGOc.js} +4 -4
  76. package/dist/{InputToggleRow-CJF0vwk3.js → InputToggleRow-CvHvRdsn.js} +1 -1
  77. package/dist/{ManualPopover-CEF7LMpn.js → ManualPopover-DxE-6-Sp.js} +13 -11
  78. package/dist/{MediaWrapper-CM6vWCoZ.js → MediaWrapper-DNi80fbw.js} +3 -3
  79. package/dist/{NotBindingText-Cee9yA0M.js → NotBindingText-D2rYFVxr.js} +2 -2
  80. package/dist/{PackageGroup-CFXogKPM.js → PackageGroup-6ar8HjPo.js} +5 -5
  81. package/dist/{PdfTerms-ChtDfzne.js → PdfTerms-B-lbU_6H.js} +2 -2
  82. package/dist/{PdfViewer-Cd0Jm2VB.js → PdfViewer-B5qbLLtd.js} +21 -21
  83. package/dist/{PlainHtml-CucWAcOU.js → PlainHtml-CIMtcn2F.js} +1 -1
  84. package/dist/{PriceHeader-DdMZUaq5.js → PriceHeader-BSpj_-5M.js} +6 -6
  85. package/dist/{SearchApi-knNqVduO.js → SearchApi-Cwgf52EV.js} +2 -2
  86. package/dist/{Setup-7HIAWuiK.js → Setup-CRmiH9lD.js} +1 -1
  87. package/dist/{SmartList-cSmGbybV.js → SmartList-D6AvxfSL.js} +1 -1
  88. package/dist/{TermsSettings-CAB-08E3.js → TermsSettings-DEO1O460.js} +7 -5
  89. package/dist/{ThemeColorRow-DxcMvBGq.js → ThemeColorRow-Cy1NKEIG.js} +14 -12
  90. package/dist/{ToggleBinding-CTTYdrkp.js → ToggleBinding-BvIUt1Jx.js} +8 -6
  91. package/dist/{UploadModal-CvoSMExA.js → UploadModal-C1j-GeMD.js} +2 -2
  92. package/dist/{VideoPlayerInput-X5baUH3q.js → VideoPlayerInput-BmbrquN6.js} +3 -3
  93. package/dist/{VideoPlayerSettings-DsIvpufB.js → VideoPlayerSettings-B7HpBoWX.js} +2 -2
  94. package/dist/VideoSelectModal-CeaG2tME.js +104 -0
  95. package/dist/{answerDocumentMixin-B8HB1WAX.js → answerDocumentMixin-AcDG8Byi.js} +3 -3
  96. package/dist/{debounce-B2lqFJg2.js → debounce-HJoaSvIY.js} +1 -1
  97. package/dist/{focusDrawerMixin-B2djM7ql.js → focusDrawerMixin-CBYjpEGL.js} +1 -1
  98. package/dist/{formComponentsInstall-CdjgjI6y.js → formComponentsInstall-DMoWrprH.js} +50 -40
  99. package/dist/{formDrawerState-CchCpZRc.js → formDrawerState-DYSBcjo4.js} +1 -1
  100. package/dist/{formValidationMixin-Dz9Mabvi.js → formValidationMixin-Dqlhg0R2.js} +1 -1
  101. package/dist/{index-kV9OZ5y0.js → index-CFe1BJZJ.js} +1 -1
  102. package/dist/{index-BaGtbWcA.js → index-CFwLDxbi.js} +5 -5
  103. package/dist/{index-twnaU4rC.js → index-CFx0cpeM.js} +1 -1
  104. package/dist/{index-BCrDgR_4.js → index-CKZmpLr6.js} +69 -45
  105. package/dist/{index-H1Kx9sJM.js → index-CLOsPxCh.js} +14 -12
  106. package/dist/{index-Dk6sZCYv.js → index-zzCfHTf8.js} +1 -1
  107. package/dist/index.es.js +3 -3
  108. package/dist/index.umd.js +31 -31
  109. package/dist/{main-CerYX9PA.js → main-BIwKzAN8.js} +14 -14
  110. package/dist/{mapFormMixin-Hj1Y7rVt.js → mapFormMixin-e2PJ431T.js} +1 -1
  111. package/dist/{omit-DGBewD2h.js → omit-CpamclWf.js} +1 -1
  112. package/dist/{publicSenderState-t7Gu53cA.js → publicSenderState-D-_7UwjT.js} +1 -1
  113. package/dist/style.css +2 -2
  114. package/dist/{throttle-B8hI9bkk.js → throttle-B2yMLA5N.js} +2 -2
  115. package/dist/{tinycolor-BaK26Ky-.js → tinycolor-vIxz4Xgi.js} +1 -1
  116. package/dist/{tippy.esm-BuWRbveV.js → tippy.esm-DiOYviyf.js} +57 -53
  117. package/dist/{utils-Pmm0DT8o.js → utils-CFXqaEy7.js} +1 -1
  118. package/dist/{vuedraggable.umd-Besz6Tlv.js → vuedraggable.umd-DDT8qZBI.js} +1 -1
  119. package/package.json +1 -1
  120. package/dist/ClientAutocomplete-DyXQEfcS.js +0 -78
  121. package/dist/VideoSelectModal-VMcSU3bM.js +0 -100
@@ -1,25 +1,25 @@
1
- import ne from "./AnswerModal-DEwMlsT8.js";
2
- import { o as oe } from "./index-Dk6sZCYv.js";
3
- import { w } from "./CDropdownItem-b6ZzOnv-.js";
4
- import { aY as H, g as h, n as d, c as f, b as u, d as le, aZ as re, S as ce, w as R, j as T, aE as de, aR as x, aa as p, P, h as B, ai as m, a_ as pe, a$ as ue, b0 as me, b1 as he, b2 as fe, b3 as ge, V as E, aT as G, aU as W, I as Z, b4 as I, aV as Ce, b5 as ve, K as ye, b6 as xe, f as we, k as q, b7 as be, b8 as ke, F as _e, b9 as Le, X as $e, T as y, G as Se, ba as Te, C as N, bb as De, bc as Ve, O as j, bd as Be, be as Me, aW as Ie, bf as Fe, bg as He, bh as Ae, a7 as Pe, bi as Ee, m as ze, a as Ze, bj as Oe } from "./main-CerYX9PA.js";
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";
5
5
  import { a as b, m as C } from "./vuex.esm-DKGl8mcw.js";
6
- import { s as _ } from "./Flag-CwnrA4SV.js";
7
- import { l as Ue, g as Re, W as Ge, b as We, a as qe, D as Ne } from "./DocumentLayout-GYCBw2F_.js";
8
- import { F as K, d as je } from "./tippy.esm-BuWRbveV.js";
9
- import { m as D } from "./mapFormMixin-Hj1Y7rVt.js";
10
- import { d as z, t as Ke } from "./debounce-B2lqFJg2.js";
11
- import { d as Ye } from "./vuedraggable.umd-Besz6Tlv.js";
12
- import { C as Qe, I as L, a as $, s as Je } from "./index-BCrDgR_4.js";
13
- import { C as Y } from "./CFormField-BjGICSv5.js";
14
- import { S as Xe } from "./SmartList-cSmGbybV.js";
15
- import { o as et, _ as tt } from "./omit-DGBewD2h.js";
16
- import { v as A } from "./index-twnaU4rC.js";
17
- import { t as it } from "./tinycolor-BaK26Ky-.js";
18
- import { s as v } from "./formDrawerState-CchCpZRc.js";
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
19
  import { s as at } from "./dom-CJxkno7i.js";
20
- import { S as st, i as nt } from "./formComponentsInstall-CdjgjI6y.js";
21
- import { f as ot } from "./formValidationMixin-Dz9Mabvi.js";
22
- import { B as lt } from "./BlockMedia-CUCZYVdZ.js";
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
23
  const rt = {
24
24
  name: "DocumentPostSendStep",
25
25
  mixins: [w],
@@ -96,7 +96,7 @@ const rt = {
96
96
  body: { isAccepted: !0 },
97
97
  checksum: a
98
98
  }), await this.sendDocument({ id: i }), this.onSend()) : (this.$modal.show(
99
- ne,
99
+ se,
100
100
  {
101
101
  _document: this.document,
102
102
  fullScreen: this.modalHeight === "100%",
@@ -105,12 +105,12 @@ const rt = {
105
105
  // actions intended mirror public requests made in accept/bankId modals
106
106
  // defined here in order to keep it DRY and avoiding account module actions defined in answer modals
107
107
  senderActions: {
108
- answer: (async function({ body: n }) {
108
+ answer: (async function({ body: s }) {
109
109
  var o;
110
110
  return this.answerDocument({
111
111
  id: i,
112
112
  publicId: e.publicDocumentId,
113
- body: n,
113
+ body: s,
114
114
  checksum: (o = this.document._doc) == null ? void 0 : o.checksum
115
115
  });
116
116
  }).bind(this),
@@ -129,8 +129,8 @@ const rt = {
129
129
  },
130
130
  {
131
131
  cancel: () => {
132
- var s;
133
- return (s = this.onCancelFunc) == null ? void 0 : s.call(this);
132
+ var n;
133
+ return (n = this.onCancelFunc) == null ? void 0 : n.call(this);
134
134
  }
135
135
  }
136
136
  ), !0);
@@ -508,7 +508,7 @@ const qt = Wt.exports, Nt = {
508
508
  this.elementWidth = e.width, this.elementHeight = e.height;
509
509
  const t = i.type === "touchstart", a = t ? i.touches[0] : i;
510
510
  this.clientX = a.clientX, this.clientY = a.clientY;
511
- const s = t ? "touchmove" : "mousemove", n = t ? "touchend" : "mouseup", o = (r) => {
511
+ const n = t ? "touchmove" : "mousemove", s = t ? "touchend" : "mouseup", o = (r) => {
512
512
  t || r.preventDefault();
513
513
  const c = t ? r.touches[0] : r;
514
514
  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(
@@ -519,9 +519,9 @@ const qt = Wt.exports, Nt = {
519
519
  this.windowWidth - this.elementWidth
520
520
  )}px`;
521
521
  }, l = () => {
522
- document.removeEventListener(s, o), document.removeEventListener(n, l);
522
+ document.removeEventListener(n, o), document.removeEventListener(s, l);
523
523
  };
524
- document.addEventListener(s, o), document.addEventListener(n, l);
524
+ document.addEventListener(n, o), document.addEventListener(s, l);
525
525
  }
526
526
  },
527
527
  render() {
@@ -559,7 +559,7 @@ var Xt = function() {
559
559
  return [t("div", { staticClass: "popup", staticStyle: { position: "fixed", width: "280px", "border-radius": "calc(0.5 * var(--rem))", padding: "1em 1em 3em 1em", "font-size": "14px", "background-color": "white", "min-height": "400px", "box-shadow": "0 5px 30px -5px rgb(0, 0, 0, 0.2)", "z-index": "1000" }, style: {
560
560
  top: "70px",
561
561
  left: `${e.offset + 15}px`
562
- } }, [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(s) {
562
+ } }, [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) {
563
563
  return e.$emit("close");
564
564
  } } }), t("CButton", { staticStyle: { position: "absolute", right: "calc(2.25 * var(--rem))", top: "0", cursor: "grab" }, attrs: { icon: "handle", size: "small", type: "none", pattern: "tertiary", circle: "" }, on: { mousedown: a, touchstart: a } }), t("div", { staticStyle: { "font-weight": "700", "font-size": "1.5em", "margin-bottom": "calc(1 * var(--rem))" } }, [e._v(" " + e._s(e.title) + " ")]), e._t("default")], 2)])];
565
565
  } }], null, !0) })], 1);
@@ -658,8 +658,8 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
658
658
  weight: t
659
659
  }
660
660
  },
661
- onInput: ({ family: a, weight: s, options: n = [] }) => {
662
- this.update(i, a), Ue(a), t != s && this.update("fontWeight", s), this.fontWeightOptions = n;
661
+ onInput: ({ family: a, weight: n, options: s = [] }) => {
662
+ this.update(i, a), Ue(a), t != n && this.update("fontWeight", n), this.fontWeightOptions = s;
663
663
  }
664
664
  }
665
665
  ]
@@ -677,7 +677,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
677
677
  value: t || "",
678
678
  type: "number",
679
679
  minValue: 0,
680
- onInput: (s) => this.update(i, `${s}${a}`)
680
+ onInput: (n) => this.update(i, `${n}${a}`)
681
681
  },
682
682
  select: {
683
683
  value: t || "px",
@@ -695,7 +695,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
695
695
  { value: 72, label: 72 },
696
696
  { value: 96, label: 96 }
697
697
  ],
698
- onInput: (s) => this.update(i, `${s}px`)
698
+ onInput: (n) => this.update(i, `${n}px`)
699
699
  }
700
700
  }
701
701
  },
@@ -707,7 +707,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
707
707
  max: 100,
708
708
  value: t
709
709
  },
710
- onInput: (s) => this.update(i, `${s}${a}`)
710
+ onInput: (n) => this.update(i, `${n}${a}`)
711
711
  }
712
712
  ]
713
713
  };
@@ -877,7 +877,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
877
877
  value: t || "",
878
878
  type: "number",
879
879
  minValue: 0,
880
- onInput: (s) => this.update(i, `${s}${a}`)
880
+ onInput: (n) => this.update(i, `${n}${a}`)
881
881
  },
882
882
  select: {
883
883
  value: t || "px",
@@ -887,7 +887,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
887
887
  { value: 900, label: 900 },
888
888
  { value: 1080, label: 1080 }
889
889
  ],
890
- onInput: (s) => this.update(i, `${s}px`)
890
+ onInput: (n) => this.update(i, `${n}px`)
891
891
  }
892
892
  }
893
893
  },
@@ -900,7 +900,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
900
900
  step: 10,
901
901
  value: t
902
902
  },
903
- onInput: (s) => this.update(i, `${s}${a}`)
903
+ onInput: (n) => this.update(i, `${n}${a}`)
904
904
  }
905
905
  ]
906
906
  };
@@ -946,7 +946,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
946
946
  };
947
947
  },
948
948
  border: ([i, e, t]) => {
949
- const a = i.value === "solid", [, s] = k(e.value), n = [
949
+ const a = i.value === "solid", [, n] = k(e.value), s = [
950
950
  {
951
951
  label: this.$t("border"),
952
952
  inputs: [
@@ -965,7 +965,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
965
965
  {
966
966
  component: "input",
967
967
  props: {
968
- value: s,
968
+ value: n,
969
969
  type: "number",
970
970
  minValue: 0
971
971
  }
@@ -973,15 +973,15 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
973
973
  {
974
974
  component: "step",
975
975
  props: {
976
- value: s
976
+ value: n
977
977
  },
978
978
  onIncrease: () => this.update(
979
979
  e.key,
980
- `${parseFloat(s || 0) + 1}px`
980
+ `${parseFloat(n || 0) + 1}px`
981
981
  ),
982
982
  onDecrease: () => this.update(
983
983
  e.key,
984
- `${parseFloat(s || 0) - 1}px`
984
+ `${parseFloat(n || 0) - 1}px`
985
985
  )
986
986
  }
987
987
  ]
@@ -1006,7 +1006,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
1006
1006
  value: a ? `${e.value} ${t.value}` : "none",
1007
1007
  width: "220px",
1008
1008
  popup: {
1009
- inputs: n
1009
+ inputs: s
1010
1010
  }
1011
1011
  }
1012
1012
  }
@@ -1023,8 +1023,8 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
1023
1023
  h2: e,
1024
1024
  h3: t,
1025
1025
  blockquote: a,
1026
- p: s,
1027
- '[data-typography="title"]': n
1026
+ p: n,
1027
+ '[data-typography="title"]': s
1028
1028
  } = this.css || {};
1029
1029
  return [
1030
1030
  {
@@ -1038,7 +1038,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
1038
1038
  // calc(2.5 * var(--rem))
1039
1039
  fontWeight: 800,
1040
1040
  // 900
1041
- ...n
1041
+ ...s
1042
1042
  }
1043
1043
  },
1044
1044
  {
@@ -1107,7 +1107,7 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
1107
1107
  style: {
1108
1108
  fontFamily: "Inter",
1109
1109
  fontSize: "16px",
1110
- ...s
1110
+ ...n
1111
1111
  }
1112
1112
  }
1113
1113
  ];
@@ -1115,9 +1115,9 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
1115
1115
  activeItemOptions() {
1116
1116
  if (!this.activeItem)
1117
1117
  return [];
1118
- const { selector: i, category: e, style: t = {} } = this.activeItem, a = u(this.css, i) || {}, s = (n) => a[n] || t[n];
1119
- return this[e].map(({ option: n, key: o }, l) => {
1120
- const r = this.definitionOptions[n], c = Array.isArray(o) ? o.map((g) => ({ key: g, value: s(g) })) : { key: o, value: s(o) };
1118
+ const { selector: i, category: e, style: t = {} } = this.activeItem, a = u(this.css, i) || {}, n = (s) => a[s] || t[s];
1119
+ return this[e].map(({ option: s, key: o }, l) => {
1120
+ const r = this.definitionOptions[s], c = Array.isArray(o) ? o.map((g) => ({ key: g, value: n(g) })) : { key: o, value: n(o) };
1121
1121
  return r(c, l);
1122
1122
  });
1123
1123
  }
@@ -1137,10 +1137,10 @@ const J = t1.exports, i1 = /([\d+.]*)(.*)/, k = (i) => (i || "").match(i1), a1 =
1137
1137
  }
1138
1138
  }
1139
1139
  };
1140
- var s1 = function() {
1140
+ var n1 = function() {
1141
1141
  var e = this, t = e._self._c;
1142
1142
  return t("div", [t("div", { staticStyle: { padding: "calc(0.5 * var(--rem))", position: "relative" } }, [t("div", { staticStyle: { "padding-left": "calc(0.75 * var(--rem))", "font-size": "14px", color: "hsl(0, 0%, 30%)", "padding-bottom": "3px" } }, [e._v(" " + e._s(e.$t("typography")) + " ")]), e._l(e.typography, function(a) {
1143
- return t("div", { key: a.label, staticClass: "list-option", on: { click: function(s) {
1143
+ return t("div", { key: a.label, staticClass: "list-option", on: { click: function(n) {
1144
1144
  e.activeItem = a;
1145
1145
  } } }, [t("div", { style: {
1146
1146
  fontSize: a.fontSize,
@@ -1150,16 +1150,16 @@ var s1 = function() {
1150
1150
  lineHeight: 1
1151
1151
  } }, [e._v(" " + e._s(a.label) + " ")]), t("div", { staticStyle: { color: "hsl(0, 0%, 45%)", "font-weight": "500", "font-size": "13px", "padding-top": "5px" } }, [e._v(" " + e._s(a.style.fontFamily) + " " + e._s(a.style.fontSize) + " ")])]);
1152
1152
  })], 2), t("div", { staticStyle: { height: "1px", "background-color": "hsl(0, 0%, 88%)", margin: "calc(0.5 * var(--rem)) calc(1 * var(--rem))" } }), t("div", { staticStyle: { padding: "calc(0.75 * var(--rem))" } }, [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("section_plural")) + " ")]), e._l(e.sections, function(a) {
1153
- return t("div", { key: a.label, staticClass: "list-option", on: { click: function(s) {
1153
+ return t("div", { key: a.label, staticClass: "list-option", on: { click: function(n) {
1154
1154
  e.activeItem = a;
1155
1155
  } } }, [t("div", { staticStyle: { "font-size": "1.075em", "font-weight": "500" } }, [e._v(" " + e._s(a.label) + " ")]), t("div", { staticStyle: { color: "hsl(0, 0%, 45%)", "font-weight": "500", "font-size": "13px", "padding-top": "5px" } }, [e._v(" #000000 ")])]);
1156
- })], 2), e.activeItem ? t("DragWindow", { attrs: { title: e.activeItem.label, offset: e.offset }, on: { close: () => e.activeItem = null } }, e._l(e.activeItemOptions, function(a, s) {
1157
- return t("FormInputRow", { key: s, attrs: { label: a.label, inputs: a.inputs } });
1156
+ })], 2), e.activeItem ? t("DragWindow", { attrs: { title: e.activeItem.label, offset: e.offset }, on: { close: () => e.activeItem = null } }, e._l(e.activeItemOptions, function(a, n) {
1157
+ return t("FormInputRow", { key: n, attrs: { label: a.label, inputs: a.inputs } });
1158
1158
  }), 1) : e._e()], 1);
1159
- }, n1 = [], o1 = /* @__PURE__ */ d(
1159
+ }, s1 = [], o1 = /* @__PURE__ */ d(
1160
1160
  a1,
1161
- s1,
1162
1161
  n1,
1162
+ s1,
1163
1163
  !1,
1164
1164
  null,
1165
1165
  "83027693"
@@ -1500,12 +1500,12 @@ const l1 = o1.exports, r1 = {
1500
1500
  };
1501
1501
  var c1 = function() {
1502
1502
  var e = this, t = e._self._c;
1503
- return t("div", { staticStyle: { height: "100%", padding: "1em" } }, [e._l(e.options, function(a, s) {
1504
- return t("FormInputRow", { key: s, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } });
1503
+ return t("div", { staticStyle: { height: "100%", padding: "1em" } }, [e._l(e.options, function(a, n) {
1504
+ return t("FormInputRow", { key: n, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } });
1505
1505
  }), e.showDragWindow ? t("DragWindow", { attrs: { offset: e.offset, title: e.$t("pricing.title") }, on: { close: function(a) {
1506
1506
  e.showDragWindow = !1;
1507
- } } }, [e._l(e.priceOptions, function(a, s) {
1508
- return [a.type === "divider" ? t("div", { key: s, staticClass: "divider" }) : t("FormInputRow", { key: s, attrs: { label: a.label, "info-tooltip": a.infoTooltip, inputs: a.inputs } })];
1507
+ } } }, [e._l(e.priceOptions, function(a, n) {
1508
+ 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
1509
  })], 2) : e._e()], 2);
1510
1510
  }, d1 = [], p1 = /* @__PURE__ */ d(
1511
1511
  r1,
@@ -1660,11 +1660,11 @@ const u1 = p1.exports, m1 = {
1660
1660
  );
1661
1661
  if (!e)
1662
1662
  return;
1663
- const { service: t, type: a, typeId: s } = e, { data: n } = await T.getExternalReferenceDetails(
1663
+ const { service: t, type: a, typeId: n } = e, { data: s } = await T.getExternalReferenceDetails(
1664
1664
  t,
1665
- { type: a, typeId: s }
1665
+ { type: a, typeId: n }
1666
1666
  );
1667
- i !== this.dealType ? this.typeDetails = { ...n, type: i } : this.dealDetails = n;
1667
+ i !== this.dealType ? this.typeDetails = { ...s, type: i } : this.dealDetails = s;
1668
1668
  } catch {
1669
1669
  i !== this.dealType ? this.typeDetails = null : this.dealDetails = null;
1670
1670
  } finally {
@@ -1673,25 +1673,25 @@ const u1 = p1.exports, m1 = {
1673
1673
  },
1674
1674
  removeReference(i = this.dealType) {
1675
1675
  const e = this.externalReferences.find(
1676
- (n) => n.service === this.activeCrm && n.type === i
1676
+ (s) => s.service === this.activeCrm && s.type === i
1677
1677
  );
1678
1678
  if (!e)
1679
1679
  return;
1680
- const { service: t, type: a, typeId: s } = e;
1681
- !t || !a || !s || (this.externalReferences = this.externalReferences.filter(
1682
- (n) => !(n.service === t && n.type === a && n.typeId === s)
1680
+ const { service: t, type: a, typeId: n } = e;
1681
+ !t || !a || !n || (this.externalReferences = this.externalReferences.filter(
1682
+ (s) => !(s.service === t && s.type === a && s.typeId === n)
1683
1683
  ), i !== this.dealType ? this.typeDetails = null : this.dealDetails = null);
1684
1684
  },
1685
1685
  async suggestClients() {
1686
- var s;
1686
+ var n;
1687
1687
  const { service: i, type: e, typeId: t } = this.currentExternalDeal, { data: a } = await T.suggestClients(i, {
1688
1688
  type: e,
1689
1689
  typeId: t
1690
1690
  });
1691
1691
  if (Array.isArray(a) && a.length) {
1692
- const n = (s = this._document) == null ? void 0 : s.defaultAnswerMethod, o = a.map((l) => ({
1692
+ const s = (n = this._document) == null ? void 0 : n.defaultAnswerMethod, o = a.map((l) => ({
1693
1693
  ...de(),
1694
- ...n && { answerMethod: n },
1694
+ ...s && { answerMethod: s },
1695
1695
  ...l
1696
1696
  }));
1697
1697
  this.clients = [...this.clients || [], ...o];
@@ -1704,8 +1704,8 @@ const u1 = p1.exports, m1 = {
1704
1704
  });
1705
1705
  },
1706
1706
  addArticle(i) {
1707
- var a, s;
1708
- const [e] = ((s = (a = this._document) == null ? void 0 : a.packageGroups) == null ? void 0 : s.packages) || [];
1707
+ var a, n;
1708
+ const [e] = ((n = (a = this._document) == null ? void 0 : a.packageGroups) == null ? void 0 : n.packages) || [];
1709
1709
  if (!(e != null && e.packageId))
1710
1710
  return;
1711
1711
  const t = x({
@@ -1722,11 +1722,13 @@ const u1 = p1.exports, m1 = {
1722
1722
  };
1723
1723
  var h1 = function() {
1724
1724
  var e = this, t = e._self._c;
1725
- return t("div", { staticStyle: { "font-size": "13px", "padding-left": "calc(0.5 * var(--rem))", "padding-right": "calc(0.5 * var(--rem))", "padding-bottom": "calc(4 * var(--rem))" } }, [e.allAuthenticatedCRMs.length > 1 ? t("CDropdown", { staticStyle: { position: "absolute", right: "calc(0.5 * var(--rem))", top: "calc(0.5 * var(--rem))" }, attrs: { position: "is-bottom-left" } }, [t("CButton", { attrs: { slot: "trigger", size: "small", circle: "", type: "none", pattern: "tertiary", icon: "more-vertical" }, slot: "trigger" }), e._l(e.allAuthenticatedCRMs, function(a) {
1726
- return t("CDropdownItem", { key: a, attrs: { type: e.activeCrm === a ? "primary" : "secondary", size: "small" }, on: { click: function(s) {
1725
+ return t("div", { staticStyle: { "font-size": "13px", "padding-left": "calc(0.5 * var(--rem))", "padding-right": "calc(0.5 * var(--rem))", "padding-bottom": "calc(4 * var(--rem))" } }, [e.allAuthenticatedCRMs.length > 1 ? t("CDropdown", { staticStyle: { position: "absolute", right: "calc(0.5 * var(--rem))", top: "calc(0.5 * var(--rem))" }, attrs: { position: "is-bottom-left" }, scopedSlots: e._u([{ key: "trigger", fn: function() {
1726
+ return [t("CButton", { attrs: { size: "small", circle: "", type: "none", pattern: "tertiary", icon: "more-vertical" } })];
1727
+ }, proxy: !0 }], null, !1, 1198894702) }, e._l(e.allAuthenticatedCRMs, function(a) {
1728
+ return t("CDropdownItem", { key: a, attrs: { type: e.activeCrm === a ? "primary" : "secondary", size: "small" }, on: { click: function(n) {
1727
1729
  e.activeCrm = a;
1728
1730
  } } }, [e._v(" " + e._s(a.capitalize()) + " ")]);
1729
- })], 2) : e._e(), e.isLoading && !e.dealDetails ? t("div", { staticClass: "flex w-full items-center justify-center", staticStyle: { "padding-top": "calc(2 * var(--rem))" } }, [t("Spinner", { attrs: { size: "24", color: "grey" } })], 1) : e.activeCrm ? [t("div", { staticStyle: { padding: "0 calc(0.5 * var(--rem)) calc(2 * var(--rem))" } }, [t("div", { staticStyle: { "font-weight": "500", "font-size": "16px" } }, [e._v(" " + e._s(e.activeCrm.capitalize()) + " ")]), e.typeDetails ? t("div", [t("div", { staticClass: "x-hint" }, [t("div", { staticClass: "flex w-full" }, [t("div", { domProps: { textContent: e._s(
1731
+ }), 1) : e._e(), e.isLoading && !e.dealDetails ? t("div", { staticClass: "flex w-full items-center justify-center", staticStyle: { "padding-top": "calc(2 * var(--rem))" } }, [t("Spinner", { attrs: { size: "24", color: "grey" } })], 1) : e.activeCrm ? [t("div", { staticStyle: { padding: "0 calc(0.5 * var(--rem)) calc(2 * var(--rem))" } }, [t("div", { staticStyle: { "font-weight": "500", "font-size": "16px" } }, [e._v(" " + e._s(e.activeCrm.capitalize()) + " ")]), e.typeDetails ? t("div", [t("div", { staticClass: "x-hint" }, [t("div", { staticClass: "flex w-full" }, [t("div", { domProps: { textContent: e._s(
1730
1732
  e.$t("referenceTo", {
1731
1733
  crm: e.activeCrm.capitalize(),
1732
1734
  type: e.$t(`type.${e.typeDetails.type}`)
@@ -1744,10 +1746,12 @@ var h1 = function() {
1744
1746
  }, select: function(a) {
1745
1747
  return e.useSearchResult(a);
1746
1748
  } }, scopedSlots: e._u([{ key: "default", fn: function({ option: a }) {
1747
- return t("div", { staticStyle: { "line-height": "1.5" } }, [t("div", { staticStyle: { "font-weight": "500" } }, [e._v(e._s(a.name))]), t("div", { staticClass: "text-gray-600", staticStyle: { "font-size": "14px" } }, [e._v(" " + e._s(a.externalReference.type.capitalize()) + " " + e._s(a.externalReference.typeId) + " "), a.value && a.currency ? [e._v(" · " + e._s(e.priceFormat(a.value, { showZero: !1, currency: a.currency })) + " ")] : e._e()], 2)]);
1748
- } }]), model: { value: e.searchQuery, callback: function(a) {
1749
+ return [t("div", { staticStyle: { "line-height": "1.5" } }, [t("div", { staticStyle: { "font-weight": "500" } }, [e._v(e._s(a.name))]), t("div", { staticClass: "text-gray-600", staticStyle: { "font-size": "14px" } }, [e._v(" " + e._s(a.externalReference.type.capitalize()) + " " + e._s(a.externalReference.typeId) + " "), a.value && a.currency ? [e._v(" · " + e._s(e.priceFormat(a.value, { showZero: !1, currency: a.currency })) + " ")] : e._e()], 2)])];
1750
+ } }, { key: "empty", fn: function() {
1751
+ return [e._v(" " + e._s(e.$t("_common:noResults")) + " ")];
1752
+ }, proxy: !0 }]), model: { value: e.searchQuery, callback: function(a) {
1749
1753
  e.searchQuery = a;
1750
- }, expression: "searchQuery" } }, [t("template", { slot: "empty" }, [e._v(" " + e._s(e.$t("_common:noResults")) + " ")])], 2)], 1)], 2), e.showDealProducts ? t("div", [t("div", { staticStyle: { padding: "0 calc(0.5 * var(--rem)) calc(1 * var(--rem))" } }, [t("div", { staticStyle: { "font-weight": "500" } }, [e._v(" " + e._s(e.$t("productsTitle")) + " "), t("CIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: "Use a product by drag & dropping a product to a package.", expression: `
1754
+ }, expression: "searchQuery" } })], 1)], 2), e.showDealProducts ? t("div", [t("div", { staticStyle: { padding: "0 calc(0.5 * var(--rem)) calc(1 * var(--rem))" } }, [t("div", { staticStyle: { "font-weight": "500" } }, [e._v(" " + e._s(e.$t("productsTitle")) + " "), t("CIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: "Use a product by drag & dropping a product to a package.", expression: `
1751
1755
  'Use a product by drag & dropping a product to a package.'
1752
1756
  ` }], attrs: { type: "info", size: "13" } })], 1), t("div", { staticClass: "text-gray-600", domProps: { textContent: e._s(
1753
1757
  e.$t("productsText", {
@@ -1759,7 +1763,7 @@ var h1 = function() {
1759
1763
  pull: "clone",
1760
1764
  put: !1
1761
1765
  }, clone: e.cloneArticle } }, e._l(e.dealDetails.articles, function(a) {
1762
- return t("div", { key: a._uniqueId, staticStyle: { padding: "calc(0.5 * var(--rem))", "line-height": "1", "margin-bottom": "calc(0.5 * var(--rem))", "box-shadow": "0 1px 3px rgb(0, 0, 0, 0.3)", background: "white", "border-radius": "3px", cursor: "grab", "user-select": "none" }, on: { click: function(s) {
1766
+ return t("div", { key: a._uniqueId, staticStyle: { padding: "calc(0.5 * var(--rem))", "line-height": "1", "margin-bottom": "calc(0.5 * var(--rem))", "box-shadow": "0 1px 3px rgb(0, 0, 0, 0.3)", background: "white", "border-radius": "3px", cursor: "grab", "user-select": "none" }, on: { click: function(n) {
1763
1767
  return e.addArticle(a);
1764
1768
  } } }, [t("div", { staticStyle: { "font-weight": "500", "padding-bottom": "4px", "font-size": "14px" }, domProps: { textContent: e._s(a.name) } }), t("div", { staticClass: "text-gray-600", staticStyle: { "font-size": "12px" } }, [e._v(" " + e._s(e.priceFormat(a.price || 0, { showZero: !1, currency: a.currency || "USD" })) + " · " + e._s(a.quantity || 0) + "x "), a.vat !== null ? [e._v(" · " + e._s(e._document.$t("vat").capitalize()) + " " + e._s(a.vat) + "% ")] : e._e()], 2)]);
1765
1769
  }), 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);
@@ -1769,7 +1773,7 @@ var h1 = function() {
1769
1773
  f1,
1770
1774
  !1,
1771
1775
  null,
1772
- "1f5d45eb"
1776
+ "0c00e6a6"
1773
1777
  );
1774
1778
  const C1 = g1.exports, v1 = {
1775
1779
  name: "FieldsModal",
@@ -1954,7 +1958,7 @@ const b1 = w1.exports, k1 = {
1954
1958
  options() {
1955
1959
  const { fields: i, usedFields: e } = this._document;
1956
1960
  return Object.keys(i).map((t) => {
1957
- const a = i[t], { service: s, inputDisabled: n, virtual: o = !1 } = a.meta || {}, l = this.crmService && s === this.crmService ? a.meta.service : null;
1961
+ const a = i[t], { service: n, inputDisabled: s, virtual: o = !1 } = a.meta || {}, l = this.crmService && n === this.crmService ? a.meta.service : null;
1958
1962
  return {
1959
1963
  ...a,
1960
1964
  id: t,
@@ -1962,7 +1966,7 @@ const b1 = w1.exports, k1 = {
1962
1966
  onInput: (r) => this.updateValue(a.key, r),
1963
1967
  usedCount: e[a.key] || 0,
1964
1968
  crm: l,
1965
- inputDisabled: n || l,
1969
+ inputDisabled: s || l,
1966
1970
  virtual: o
1967
1971
  };
1968
1972
  });
@@ -1993,7 +1997,7 @@ const b1 = w1.exports, k1 = {
1993
1997
  ...a,
1994
1998
  // Filter out previous service fields if switching connected crm
1995
1999
  ...Object.entries(((t = (e = this._document) == null ? void 0 : e.data) == null ? void 0 : t.fields) || {}).reduce(
1996
- (s, [n, o]) => o != null && o.meta.service && o.meta.service !== i ? s : { ...s, [n]: o },
2000
+ (n, [s, o]) => o != null && o.meta.service && o.meta.service !== i ? n : { ...n, [s]: o },
1997
2001
  {}
1998
2002
  )
1999
2003
  });
@@ -2044,17 +2048,17 @@ var _1 = function() {
2044
2048
  return t("div", { staticStyle: { padding: "1em" } }, [t("div", { staticStyle: { margin: "15px 0" } }, [t("div", { staticStyle: { "font-size": "16px", "font-weight": "600" }, domProps: { textContent: e._s(e.$t("title")) } }), t("div", { staticStyle: { color: "hsl(0, 0%, 35%)" }, domProps: { textContent: e._s(e.$t("description")) } })]), t("CInput", { attrs: { placeholder: e.$t("_common:search"), filled: "", size: "small" }, model: { value: e.query, callback: function(a) {
2045
2049
  e.query = a;
2046
2050
  }, expression: "query" } }), e.query ? t("div", { staticStyle: { "margin-top": "15px", "padding-top": "15px", "border-top": "1px solid hsl(0, 0%, 88%)" } }, [t("SmartList", { attrs: { items: e.options, "filter-method": e.filterMethod, query: e.query }, scopedSlots: e._u([{ key: "default", fn: function({ items: a }) {
2047
- return t("div", {}, [a.length ? e._l(a, function(s, n) {
2048
- return t("div", { key: n, staticClass: "field-parent flex w-full items-center" }, [t("div", { staticClass: "field-container", staticStyle: { position: "relative", flex: "1 1 auto" } }, [t("CField", { staticStyle: { width: "100%" }, attrs: { label: " ", "label-position": "inside" } }, [t("span", { staticClass: "drag-label", attrs: { draggable: "" }, domProps: { textContent: e._s(s.label) }, on: { dragstart: (o) => e.onDragStart(o, s) } }), t("CInput", { staticStyle: { width: "100%" }, attrs: { value: s.value, disabled: s.inputDisabled, filled: "", size: "small" }, on: { blur: function(o) {
2051
+ return [t("div", [a.length ? e._l(a, function(n, s) {
2052
+ return t("div", { key: s, staticClass: "field-parent flex w-full items-center" }, [t("div", { staticClass: "field-container", staticStyle: { position: "relative", flex: "1 1 auto" } }, [t("CField", { staticStyle: { width: "100%" }, attrs: { label: " ", "label-position": "inside" } }, [t("span", { staticClass: "drag-label", attrs: { draggable: "" }, domProps: { textContent: e._s(n.label) }, on: { dragstart: (o) => e.onDragStart(o, n) } }), t("CInput", { staticStyle: { width: "100%" }, attrs: { value: n.value, disabled: n.inputDisabled, filled: "", size: "small" }, on: { blur: function(o) {
2049
2053
  var l;
2050
- return s.onInput(((l = o == null ? void 0 : o.target) == null ? void 0 : l.value) || "");
2051
- } } })], 1), t("div", { staticClass: "field-actions" }, [!s.inputDisabled && !s.virtual ? t("CButton", { staticStyle: { width: "30px", height: "30px", "border-radius": "3px" }, attrs: { icon: "edit", size: "small", type: "none", pattern: "tertiary" }, on: { click: function(o) {
2052
- return e.openFieldModal({ existingFieldId: s.id });
2054
+ return n.onInput(((l = o == null ? void 0 : o.target) == null ? void 0 : l.value) || "");
2055
+ } } })], 1), t("div", { staticClass: "field-actions" }, [!n.inputDisabled && !n.virtual ? t("CButton", { staticStyle: { width: "30px", height: "30px", "border-radius": "3px" }, attrs: { icon: "edit", size: "small", type: "none", pattern: "tertiary" }, on: { click: function(o) {
2056
+ return e.openFieldModal({ existingFieldId: n.id });
2053
2057
  } } }) : e._e(), t("CButton", { staticStyle: { width: "30px", height: "30px", "border-radius": "3px" }, attrs: { icon: "copy", size: "small", type: "none", pattern: "secondary" }, on: { click: function(o) {
2054
- return e.onCopyField(`{{${s.key}}}`);
2058
+ return e.onCopyField(`{{${n.key}}}`);
2055
2059
  } } })], 1)], 1)]);
2056
- }) : t("div", { staticStyle: { "text-align": "center" } }, [e._v(" " + e._s(e.$t("_common:noResults")) + " ")])], 2);
2057
- } }], null, !1, 1639279928) })], 1) : t("div", { staticStyle: { "padding-top": "20px" } }, [t("div", { staticClass: "flex w-full justify-end", staticStyle: { "margin-top": "0.5em", "margin-bottom": "0.5em" } }, [t("CButton", { staticStyle: { "font-size": "13px", "margin-left": "2px" }, attrs: { type: "none", pattern: "secondary", size: "small" }, domProps: { textContent: e._s(e.$t("_common:add", { thing: e.$t("_common:field") })) }, on: { click: e.openFieldModal } })], 1), e._l([
2060
+ }) : t("div", { staticStyle: { "text-align": "center" } }, [e._v(" " + e._s(e.$t("_common:noResults")) + " ")])], 2)];
2061
+ } }], null, !1, 4102404724) })], 1) : t("div", { staticStyle: { "padding-top": "20px" } }, [t("div", { staticClass: "flex w-full justify-end", staticStyle: { "margin-top": "0.5em", "margin-bottom": "0.5em" } }, [t("CButton", { staticStyle: { "font-size": "13px", "margin-left": "2px" }, attrs: { type: "none", pattern: "secondary", size: "small" }, domProps: { textContent: e._s(e.$t("_common:add", { thing: e.$t("_common:field") })) }, on: { click: e.openFieldModal } })], 1), e._l([
2058
2062
  {
2059
2063
  label: e.$t("usedFields"),
2060
2064
  defaultOpen: !0,
@@ -2072,17 +2076,17 @@ var _1 = function() {
2072
2076
  defaultOpen: !e.usedFields.length,
2073
2077
  items: e.unUsedFields
2074
2078
  }
2075
- ], function(a, s) {
2076
- return t("CAccordion", { key: s, staticStyle: { "border-top": "1px solid hsl(0, 0%, 88%)" }, attrs: { "default-open": a.defaultOpen }, scopedSlots: e._u([{ key: "trigger", fn: function({ expanded: n }) {
2077
- return t("div", { staticClass: "list-button" }, [t("span", [t("span", { domProps: { textContent: e._s(a.label) } }), t("span", { staticStyle: { opacity: "0.45", "padding-left": "0.5em" }, domProps: { textContent: e._s(a.items.length) } })]), t("CIcon", { staticStyle: { transition: "200ms" }, style: { transform: `rotate(${n ? "180deg" : "0deg"})` }, attrs: { type: "chevron-down", size: "15" } })], 1);
2078
- } }], null, !0) }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [a.items.length ? e._l(a.items, function(n, o) {
2079
- return t("div", { key: o, staticClass: "field-parent flex w-full items-center" }, [t("div", { staticClass: "field-container", staticStyle: { position: "relative", flex: "1 1 auto" } }, [t("CField", { staticStyle: { width: "100%" }, attrs: { label: " ", "label-position": "inside" } }, [t("span", { staticClass: "drag-label", attrs: { draggable: "" }, domProps: { textContent: e._s(n.label) }, on: { dragstart: (l) => e.onDragStart(l, n) } }), t("CInput", { staticStyle: { width: "100%" }, attrs: { value: n.value, disabled: n.inputDisabled, filled: "", size: "small" }, on: { blur: function(l) {
2079
+ ], function(a, n) {
2080
+ return t("CAccordion", { key: n, staticStyle: { "border-top": "1px solid hsl(0, 0%, 88%)" }, attrs: { "default-open": a.defaultOpen }, scopedSlots: e._u([{ key: "trigger", fn: function({ expanded: s }) {
2081
+ return [t("div", { staticClass: "list-button" }, [t("span", [t("span", { domProps: { textContent: e._s(a.label) } }), t("span", { staticStyle: { opacity: "0.45", "padding-left": "0.5em" }, domProps: { textContent: e._s(a.items.length) } })]), t("CIcon", { staticStyle: { transition: "200ms" }, style: { transform: `rotate(${s ? "180deg" : "0deg"})` }, attrs: { type: "chevron-down", size: "15" } })], 1)];
2082
+ } }], null, !0) }, [t("div", { staticStyle: { "padding-bottom": "2em" } }, [a.items.length ? e._l(a.items, function(s, o) {
2083
+ return t("div", { key: o, staticClass: "field-parent flex w-full items-center" }, [t("div", { staticClass: "field-container", staticStyle: { position: "relative", flex: "1 1 auto" } }, [t("CField", { staticStyle: { width: "100%" }, attrs: { label: " ", "label-position": "inside" } }, [t("span", { staticClass: "drag-label", attrs: { draggable: "" }, domProps: { textContent: e._s(s.label) }, on: { dragstart: (l) => e.onDragStart(l, s) } }), t("CInput", { staticStyle: { width: "100%" }, attrs: { value: s.value, disabled: s.inputDisabled, filled: "", size: "small" }, on: { blur: function(l) {
2080
2084
  var r;
2081
- return n.onInput(((r = l == null ? void 0 : l.target) == null ? void 0 : r.value) || "");
2082
- } } })], 1), t("div", { staticClass: "field-actions" }, [!n.inputDisabled && !n.virtual ? t("CButton", { staticStyle: { width: "30px", height: "30px", "border-radius": "3px" }, attrs: { icon: "edit", size: "small", type: "none", pattern: "tertiary" }, on: { click: function(l) {
2083
- return e.openFieldModal({ existingFieldId: n.id });
2085
+ return s.onInput(((r = l == null ? void 0 : l.target) == null ? void 0 : r.value) || "");
2086
+ } } })], 1), t("div", { staticClass: "field-actions" }, [!s.inputDisabled && !s.virtual ? t("CButton", { staticStyle: { width: "30px", height: "30px", "border-radius": "3px" }, attrs: { icon: "edit", size: "small", type: "none", pattern: "tertiary" }, on: { click: function(l) {
2087
+ return e.openFieldModal({ existingFieldId: s.id });
2084
2088
  } } }) : e._e(), t("CButton", { staticStyle: { width: "30px", height: "30px", "border-radius": "3px" }, attrs: { icon: "copy", size: "small", type: "none", pattern: "secondary" }, on: { click: function(l) {
2085
- return e.onCopyField(`{{${n.key}}}`);
2089
+ return e.onCopyField(`{{${s.key}}}`);
2086
2090
  } } })], 1)], 1)]);
2087
2091
  }) : t("div", { staticStyle: { "font-size": "13px", "text-align": "center", "user-select": "none", padding: "0.5em", "border-radius": "0.25em", opacity: "0.5" }, domProps: { textContent: e._s(e.$t("noResults")) } })], 2)]);
2088
2092
  })], 2)], 1);
@@ -2092,7 +2096,7 @@ var _1 = function() {
2092
2096
  L1,
2093
2097
  !1,
2094
2098
  null,
2095
- "0d2bdff3"
2099
+ "4f611d41"
2096
2100
  );
2097
2101
  const S1 = $1.exports, T1 = (i) => {
2098
2102
  const e = Array(2).fill().map(() => p());
@@ -2177,12 +2181,12 @@ const S1 = $1.exports, T1 = (i) => {
2177
2181
  document: e = null,
2178
2182
  contentData: t = null
2179
2183
  } = {}) => {
2180
- const a = p(), { language: s } = e || {};
2181
- let n = null;
2182
- return typeof t == "function" ? n = t(a) : i && (n = I1(a)), {
2184
+ const a = p(), { language: n } = e || {};
2185
+ let s = null;
2186
+ return typeof t == "function" ? s = t(a) : i && (s = I1(a)), {
2183
2187
  readView: B1(a),
2184
- validation: M1(a, s),
2185
- ...n && { data: n }
2188
+ validation: M1(a, n),
2189
+ ...s && { data: s }
2186
2190
  };
2187
2191
  }, H1 = ({ language: i = "en" } = {}) => {
2188
2192
  const e = (t) => m.t(`components:account.documentForm.contentItems.coverBlock.${t}`, {
@@ -2404,12 +2408,12 @@ const S1 = $1.exports, T1 = (i) => {
2404
2408
  contentData: t = null
2405
2409
  }) => {
2406
2410
  const { language: a } = e || {};
2407
- let s = null;
2408
- return typeof t == "function" ? s = t() : i && (s = P1()), {
2411
+ let n = null;
2412
+ return typeof t == "function" ? n = t() : i && (n = P1()), {
2409
2413
  readView: A1(),
2410
2414
  validation: E1(a),
2411
2415
  // Client / company will for now always exist on doc and in validation
2412
- ...s && { data: s }
2416
+ ...n && { data: n }
2413
2417
  };
2414
2418
  }, Z1 = (i) => [
2415
2419
  {
@@ -2440,11 +2444,11 @@ const S1 = $1.exports, T1 = (i) => {
2440
2444
  contentData: t = null
2441
2445
  } = {}) => {
2442
2446
  const a = p();
2443
- let s = null;
2444
- return typeof t == "function" ? s = t(a) : i && (s = U1()), {
2447
+ let n = null;
2448
+ return typeof t == "function" ? n = t(a) : i && (n = U1()), {
2445
2449
  readView: Z1(a),
2446
2450
  validation: O1(a),
2447
- ...s && { data: s }
2451
+ ...n && { data: n }
2448
2452
  };
2449
2453
  };
2450
2454
  m.loadOptions({
@@ -3023,7 +3027,7 @@ const G1 = ({ language: i = "en" } = {}) => [
3023
3027
  ], a2 = () => ({
3024
3028
  readView: t2(),
3025
3029
  validation: i2()
3026
- }), s2 = (i) => [
3030
+ }), n2 = (i) => [
3027
3031
  {
3028
3032
  itemId: `header-${i}`,
3029
3033
  itemType: "header",
@@ -3033,14 +3037,14 @@ const G1 = ({ language: i = "en" } = {}) => [
3033
3037
  parentId: "0",
3034
3038
  nodeId: p()
3035
3039
  }
3036
- ], n2 = (i, e = null) => {
3037
- const { language: t = "en", name: a = "", theme: s } = e || {}, n = a || m.t("_common:proposal", { lng: t }).capitalize();
3038
- e && (e.name = n);
3040
+ ], s2 = (i, e = null) => {
3041
+ const { language: t = "en", name: a = "", theme: n } = e || {}, s = a || m.t("_common:proposal", { lng: t }).capitalize();
3042
+ e && (e.name = s);
3039
3043
  const {
3040
3044
  background: o,
3041
3045
  priceSummaryBackground: l,
3042
3046
  backgroundFilter: r
3043
- } = s || {}, c = l || "hsl(228, 52%, 18%)", g = it.readability(c, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
3047
+ } = n || {}, c = l || "hsl(228, 52%, 18%)", g = it.readability(c, "#fff") < 1.8 ? "#111111" : "#FFFFFF";
3044
3048
  return [
3045
3049
  {
3046
3050
  key: `header-${i}`,
@@ -3071,7 +3075,7 @@ const G1 = ({ language: i = "en" } = {}) => [
3071
3075
  },
3072
3076
  value: {
3073
3077
  preText: "",
3074
- documentName: `<p data-typography="title">${n}</p>`,
3078
+ documentName: `<p data-typography="title">${s}</p>`,
3075
3079
  postText: m.t("components:document.chapters.header.postText", {
3076
3080
  lng: t,
3077
3081
  interpolation: { prefix: "__", suffix: "__" }
@@ -3120,11 +3124,11 @@ const G1 = ({ language: i = "en" } = {}) => [
3120
3124
  contentData: t = null
3121
3125
  }) => {
3122
3126
  const a = p();
3123
- let s = null;
3124
- return typeof t == "function" ? s = t(a) : i && (s = o2(a)), {
3125
- readView: s2(a),
3126
- validation: n2(a, e),
3127
- ...s && { data: s }
3127
+ let n = null;
3128
+ return typeof t == "function" ? n = t(a) : i && (n = o2(a)), {
3129
+ readView: n2(a),
3130
+ validation: s2(a, e),
3131
+ ...n && { data: n }
3128
3132
  };
3129
3133
  }, r2 = ({ language: i = "en" } = {}) => {
3130
3134
  const e = (t) => m.t(`components:account.documentForm.contentItems.header.${t}`, {
@@ -3572,14 +3576,14 @@ const f2 = (i) => {
3572
3576
  document: e = null,
3573
3577
  contentData: t = null
3574
3578
  } = {}) => {
3575
- const a = p(), { language: s } = e || {};
3576
- let n = null;
3577
- typeof t == "function" ? n = t(a) : i && (n = C2());
3578
- const o = f2(a), l = g2(a, s);
3579
+ const a = p(), { language: n } = e || {};
3580
+ let s = null;
3581
+ typeof t == "function" ? s = t(a) : i && (s = C2());
3582
+ const o = f2(a), l = g2(a, n);
3579
3583
  return {
3580
3584
  readView: o,
3581
3585
  validation: l,
3582
- ...n && { data: n }
3586
+ ...s && { data: s }
3583
3587
  };
3584
3588
  };
3585
3589
  m.loadOptions({
@@ -3673,7 +3677,7 @@ const y2 = ({
3673
3677
  _getters: t,
3674
3678
  allArticles: a = []
3675
3679
  } = {}) => {
3676
- const s = u(t, "settings/defaultVatRate") || null, n = !u(t, "settings/hidePriceOnNewlyAddedArticles"), o = (l) => m.t(`packageGroupContentItems:${l}`, { lng: i });
3680
+ const n = u(t, "settings/defaultVatRate") || null, s = !u(t, "settings/hidePriceOnNewlyAddedArticles"), o = (l) => m.t(`packageGroupContentItems:${l}`, { lng: i });
3677
3681
  return [
3678
3682
  {
3679
3683
  previewUrl: `
@@ -3741,8 +3745,8 @@ const y2 = ({
3741
3745
  articles: [
3742
3746
  ...a,
3743
3747
  x({
3744
- vat: s,
3745
- showPrice: n,
3748
+ vat: n,
3749
+ showPrice: s,
3746
3750
  currency: e,
3747
3751
  packageId: r,
3748
3752
  name: o("single.art"),
@@ -3870,16 +3874,16 @@ const y2 = ({
3870
3874
  articles: [
3871
3875
  ...a,
3872
3876
  x({
3873
- vat: s,
3874
- showPrice: n,
3877
+ vat: n,
3878
+ showPrice: s,
3875
3879
  currency: e,
3876
3880
  packageId: r[0],
3877
3881
  name: o("radio.artA"),
3878
3882
  price: 1e5
3879
3883
  }),
3880
3884
  x({
3881
- vat: s,
3882
- showPrice: n,
3885
+ vat: n,
3886
+ showPrice: s,
3883
3887
  currency: e,
3884
3888
  packageId: r[1],
3885
3889
  name: o("radio.artB"),
@@ -4004,16 +4008,16 @@ const y2 = ({
4004
4008
  articles: [
4005
4009
  ...a,
4006
4010
  x({
4007
- vat: s,
4008
- showPrice: n,
4011
+ vat: n,
4012
+ showPrice: s,
4009
4013
  currency: e,
4010
4014
  packageId: r[0],
4011
4015
  name: o("checkbox.artBase"),
4012
4016
  price: 1e5
4013
4017
  }),
4014
4018
  x({
4015
- vat: s,
4016
- showPrice: n,
4019
+ vat: n,
4020
+ showPrice: s,
4017
4021
  currency: e,
4018
4022
  packageId: r[1],
4019
4023
  name: o("checkbox.artOption"),
@@ -4446,8 +4450,8 @@ const X = P2.exports, E2 = {
4446
4450
  immediate: !0,
4447
4451
  handler(i) {
4448
4452
  i && this.$nextTick(() => {
4449
- const { top: e, left: t, width: a, height: s } = i.getBoundingClientRect();
4450
- this.$refs.popover.style.top = `${e + s}px`, this.$refs.popover.style.left = `${t + a + 10}px`;
4453
+ const { top: e, left: t, width: a, height: n } = i.getBoundingClientRect();
4454
+ this.$refs.popover.style.top = `${e + n}px`, this.$refs.popover.style.left = `${t + a + 10}px`;
4451
4455
  });
4452
4456
  }
4453
4457
  }
@@ -4899,7 +4903,7 @@ const U2 = O2.exports, R2 = E.component("ProBadge", {
4899
4903
  if (i.locked)
4900
4904
  return t();
4901
4905
  if (!this.canUseBlocks) {
4902
- const a = this.availableBlocks.findIndex((s) => s.key === i.key);
4906
+ const a = this.availableBlocks.findIndex((n) => n.key === i.key);
4903
4907
  return this.showConvertEditableDialogTarget = this.$refs.blockItem[a].$el, this.showConvertEditableDialog = !0, !1;
4904
4908
  }
4905
4909
  return e({
@@ -4912,10 +4916,10 @@ const U2 = O2.exports, R2 = E.component("ProBadge", {
4912
4916
  ["_id", "id"].forEach((i) => this.removeValue(`template.${i}`)), this.set({ key: "template.views.read.isEditable", value: !0 }), this.showConvertEditableDialog = !1;
4913
4917
  },
4914
4918
  createTooltips() {
4915
- var s, n;
4919
+ var n, s;
4916
4920
  if (this.mq === "sm")
4917
4921
  return;
4918
- const { tooltips: i } = this, e = (n = (s = this.$el).getRootNode) == null ? void 0 : n.call(s), a = (e == null ? void 0 : e.toString()) === "[object ShadowRoot]" ? e : document.body;
4922
+ 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;
4919
4923
  this.tippyInstances = je(this.$el, {
4920
4924
  target: "[data-tooltip-key]",
4921
4925
  allowHTML: !0,
@@ -4988,8 +4992,8 @@ var W2 = function() {
4988
4992
  var e = this, t = e._self._c;
4989
4993
  return t("AddBlock", { attrs: { set: e.set }, on: { "block-added": function(a) {
4990
4994
  return e.$emit("block-added", a);
4991
- } }, scopedSlots: e._u([{ key: "default", fn: function({ addBlock: a, getBlockPayload: s }) {
4992
- return [t("IsPremiumPreStep", { attrs: { feature: "documentBlocks" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: n }) {
4995
+ } }, scopedSlots: e._u([{ key: "default", fn: function({ addBlock: a, getBlockPayload: n }) {
4996
+ return [t("IsPremiumPreStep", { attrs: { feature: "documentBlocks" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
4993
4997
  return [t("div", { on: { "&mouseleave": function(o) {
4994
4998
  return e.onMouseleaveDrawer.apply(null, arguments);
4995
4999
  } } }, [!e.canUseBlocks && e.showConvertEditableDialog ? t("MenuBlockConvertPopover", { attrs: { target: e.showConvertEditableDialogTarget }, on: { convert: e.deSyncTemplate, close: function(o) {
@@ -4998,7 +5002,7 @@ var W2 = function() {
4998
5002
  { data: e.primaryBlocks },
4999
5003
  { data: e.secondaryBlocks }
5000
5004
  ], function(o, l) {
5001
- return t("div", { key: l }, [l > 0 ? t("div", { staticStyle: { height: "1px", "background-color": "hsl(0, 0%, 88%)", margin: "calc(1 * var(--rem))" } }) : e._e(), t("DragList", { attrs: { group: { name: "blocks", pull: "clone", put: !1 }, "get-child-payload": (r) => s(
5005
+ return t("div", { key: l }, [l > 0 ? t("div", { staticStyle: { height: "1px", "background-color": "hsl(0, 0%, 88%)", margin: "calc(1 * var(--rem))" } }) : e._e(), t("DragList", { attrs: { group: { name: "blocks", pull: "clone", put: !1 }, "get-child-payload": (r) => n(
5002
5006
  e.getSectionKey({ data: o.data, index: r })
5003
5007
  ), "drop-placeholder": {
5004
5008
  className: "drag-drop-menu-placeholder"
@@ -5016,14 +5020,14 @@ var W2 = function() {
5016
5020
  !1
5017
5021
  ), [t("CButton", { ref: "blockItem", refInFor: !0, staticClass: "option-row is-thinner is-left", class: {
5018
5022
  "sub-menu-active": r.key === e.activeSubMenuKey
5019
- }, 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: n }) } }, [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("CIcon", { staticStyle: { color: "hsl(205, 10%, 65%)" }, attrs: { type: "chevron-right", size: "14" } }) : e._e()], 1)])], 1)]);
5023
+ }, 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("CIcon", { staticStyle: { color: "hsl(205, 10%, 65%)" }, attrs: { type: "chevron-right", size: "14" } }) : e._e()], 1)])], 1)]);
5020
5024
  }), 1)], 1);
5021
5025
  }), 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) {
5022
5026
  e.subMenuToShow = e.activeSubMenu;
5023
5027
  }, "&mouseleave": function(o) {
5024
5028
  e.subMenuToShow = null;
5025
- } } }, [t("simplebar", { staticClass: "h-full py-4 pl-3", attrs: { "data-simplebar-auto-hide": "false" } }, [t("DragList", { attrs: { group: { name: "blocks", pull: "clone", put: !1 }, "get-child-payload": (o) => e.getSubMenuPayload({ index: o, getBlockPayload: s }), "drop-placeholder": { className: "drag-drop-menu-placeholder" }, "get-ghost-parent": e.getGhostParent, "non-drag-area-selector": ".no-drag", "drag-handle-selector": ".drag-item", "group-name": "document-blocks", "ghost-class": "drag-drop-ghost", behaviour: "copy" } }, e._l(e.activeSubMenu, function(o, l) {
5026
- return t("DragItem", { key: o.key + l, staticClass: "px-1.5", class: { "drag-item": !o.locked && e.canUseBlocks } }, [t("div", { staticClass: "relative" }, [t("div", { staticClass: "drag-item-preview", domProps: { innerHTML: e._s(o.previewUrl) }, on: { click: (r) => e.onUseBlock({ block: o, addBlock: a, openUpgradeModal: n }) } }), o.locked ? t("ProBadge", { staticClass: "absolute bottom-2 right-4" }) : e._e()], 1)]);
5029
+ } } }, [t("simplebar", { staticClass: "h-full py-4 pl-3", attrs: { "data-simplebar-auto-hide": "false" } }, [t("DragList", { attrs: { group: { name: "blocks", pull: "clone", put: !1 }, "get-child-payload": (o) => e.getSubMenuPayload({ index: o, getBlockPayload: n }), "drop-placeholder": { className: "drag-drop-menu-placeholder" }, "get-ghost-parent": e.getGhostParent, "non-drag-area-selector": ".no-drag", "drag-handle-selector": ".drag-item", "group-name": "document-blocks", "ghost-class": "drag-drop-ghost", behaviour: "copy" } }, e._l(e.activeSubMenu, function(o, l) {
5030
+ return t("DragItem", { key: o.key + l, staticClass: "px-1.5", class: { "drag-item": !o.locked && e.canUseBlocks } }, [t("div", { staticClass: "relative" }, [t("div", { staticClass: "drag-item-preview", domProps: { innerHTML: e._s(o.previewUrl) }, on: { click: (r) => e.onUseBlock({ block: o, addBlock: a, openUpgradeModal: s }) } }), o.locked ? t("ProBadge", { staticClass: "absolute bottom-2 right-4" }) : e._e()], 1)]);
5027
5031
  }), 1)], 1)], 1)])], 1)];
5028
5032
  } }], null, !0) })];
5029
5033
  } }]) });
@@ -5055,7 +5059,7 @@ const j2 = N2.exports, K2 = {
5055
5059
  Fields: S1,
5056
5060
  ExtensionTab: C1,
5057
5061
  DocumentGeneralSettings: u1,
5058
- DocumentGuide: () => import("./index-kV9OZ5y0.js"),
5062
+ DocumentGuide: () => import("./index-CFe1BJZJ.js"),
5059
5063
  MenuBlocks: j2,
5060
5064
  Simplebar: _
5061
5065
  },
@@ -5149,7 +5153,9 @@ var Y2 = function() {
5149
5153
  e.tab = "generalSettings";
5150
5154
  } } }, [t("CIcon", { 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) {
5151
5155
  e.onAddedBlock(a), e.fixed && e.$emit("close");
5152
- } } }, [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: "h-full w-full" }, [e.tab === "design" ? t("Design", { attrs: { _document: e.state, _value: {
5156
+ } }, scopedSlots: e._u([{ key: "footer", fn: function() {
5157
+ return [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))" } }, [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)];
5158
+ }, proxy: !0 }], null, !1, 1503450817) }) : t("div", { staticClass: "menu-container" }, [t("Simplebar", { staticClass: "h-full w-full" }, [e.tab === "design" ? t("Design", { attrs: { _document: e.state, _value: {
5153
5159
  css: "data.css"
5154
5160
  }, set: e.set, offset: e.fixed ? 0 : e.width } }) : e.tab === "fields" ? t("Fields", { attrs: { _document: e.state, "crm-service": e.extensionTabType, _value: {
5155
5161
  css: "data.css"
@@ -5157,7 +5163,7 @@ var Y2 = function() {
5157
5163
  externalReferences: "externalReferences",
5158
5164
  clients: "clients",
5159
5165
  articles: "articles"
5160
- } }, on: { input: ({ key: a, value: s }) => e.set({ key: a, value: s }) } }) : e._e(), e.tab === "generalSettings" ? t("DocumentGeneralSettings", { class: { "!top-0 rounded-sm": e.isLegacyTemplate }, attrs: { _document: e.state, _value: {
5166
+ } }, on: { input: ({ key: a, value: n }) => e.set({ key: a, value: n }) } }) : e._e(), e.tab === "generalSettings" ? t("DocumentGeneralSettings", { class: { "!top-0 rounded-sm": e.isLegacyTemplate }, attrs: { _document: e.state, _value: {
5161
5167
  term: "data.terms",
5162
5168
  series: "docNumber.series",
5163
5169
  tags: "tags",
@@ -5167,7 +5173,7 @@ var Y2 = function() {
5167
5173
  useVat: "data.formSettings.useVat",
5168
5174
  vatType: "data.formSettings.vatType",
5169
5175
  rounding: "data.formSettings.rounding"
5170
- }, offset: e.fixed ? 0 : e.width }, on: { input: ({ key: a, value: s }) => e.set({ key: a, value: s }) } }) : e._e()], 1)], 1), e.showGuide ? t("DocumentGuide", { on: { close: function(a) {
5176
+ }, 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) {
5171
5177
  e.showGuide = !1;
5172
5178
  } } }) : e._e()], 1)])]);
5173
5179
  }, Q2 = [], J2 = /* @__PURE__ */ d(
@@ -5176,14 +5182,14 @@ var Y2 = function() {
5176
5182
  Q2,
5177
5183
  !1,
5178
5184
  null,
5179
- "a591711d"
5185
+ "aec59ec8"
5180
5186
  );
5181
5187
  const X2 = J2.exports, ee = (i, e, t = "$children") => {
5182
5188
  if (!i)
5183
5189
  return;
5184
5190
  e(i);
5185
5191
  const a = i[t];
5186
- !a && !Array.isArray(a) || a.forEach((s) => ee(s, e));
5192
+ !a && !Array.isArray(a) || a.forEach((n) => ee(n, e));
5187
5193
  }, ei = {
5188
5194
  i18nOptions: {
5189
5195
  namespaces: "DocumentFormContainer",
@@ -5316,29 +5322,29 @@ const X2 = J2.exports, ee = (i, e, t = "$children") => {
5316
5322
  var e, t;
5317
5323
  i && (Object.keys(((t = (e = this._document._doc) == null ? void 0 : e.data) == null ? void 0 : t.packageGroups) || []).forEach(
5318
5324
  (a) => {
5319
- this._document._doc.data.packageGroups[a].packages.forEach((n, o) => {
5325
+ this._document._doc.data.packageGroups[a].packages.forEach((s, o) => {
5320
5326
  this.setFormValue({
5321
5327
  key: `data.packageGroups.${a}.packages[${o}].data.prices.currency`,
5322
5328
  value: i
5323
5329
  });
5324
5330
  });
5325
5331
  }
5326
- ), this._document.allArticles.forEach((a, s) => {
5327
- const n = `articles[${s}].currency`;
5328
- this.setFormValue({ key: n, value: i });
5332
+ ), this._document.allArticles.forEach((a, n) => {
5333
+ const s = `articles[${n}].currency`;
5334
+ this.setFormValue({ key: s, value: i });
5329
5335
  }));
5330
5336
  },
5331
5337
  async externalReferences(i) {
5332
5338
  await Promise.all(
5333
5339
  (i || []).map(async ({ service: e, type: t, typeId: a }) => {
5334
5340
  if (t && a && e && this.$store.getters["settings/isAuthenticatedCRM"](e)) {
5335
- const { data: s } = await T.getFields(
5341
+ const { data: n } = await T.getFields(
5336
5342
  e,
5337
5343
  { type: t, typeId: a, populated: !0 }
5338
5344
  );
5339
5345
  this.setFormValue({
5340
5346
  key: "data.fields",
5341
- value: { ...this._document.fields, ...s }
5347
+ value: { ...this._document.fields, ...n }
5342
5348
  });
5343
5349
  }
5344
5350
  })
@@ -5351,7 +5357,7 @@ const X2 = J2.exports, ee = (i, e, t = "$children") => {
5351
5357
  },
5352
5358
  onBlockToggleVisible(i, e) {
5353
5359
  const a = [...this.readLayout].findIndex(
5354
- (s) => s.nodeId === i.nodeId
5360
+ (n) => n.nodeId === i.nodeId
5355
5361
  );
5356
5362
  a !== -1 && this.setFormValue({
5357
5363
  key: `template.views.read.nodes[${a}].isVisible`,
@@ -5371,10 +5377,10 @@ const X2 = J2.exports, ee = (i, e, t = "$children") => {
5371
5377
  const a = i.itemId.split("-")[1];
5372
5378
  this.removePackageGroup(a);
5373
5379
  } else
5374
- ee(i, (s) => {
5375
- s.value && Object.values(s.value).forEach((n) => {
5376
- this.removeFormKeyValue(`${n}`);
5377
- let o = n.replace(
5380
+ ee(i, (n) => {
5381
+ n.value && Object.values(n.value).forEach((s) => {
5382
+ this.removeFormKeyValue(`${s}`);
5383
+ let o = s.replace(
5378
5384
  /^data.(?!properties)/g,
5379
5385
  "data.properties."
5380
5386
  );
@@ -5385,8 +5391,8 @@ const X2 = J2.exports, ee = (i, e, t = "$children") => {
5385
5391
  });
5386
5392
  }, "children");
5387
5393
  I([this.nestedReadLayout[e]]).forEach((a) => {
5388
- const s = this.readLayout.findIndex((n) => n.nodeId === a.nodeId);
5389
- this.removeFormValue(`template.views.read.nodes[${s}]`);
5394
+ const n = this.readLayout.findIndex((s) => s.nodeId === a.nodeId);
5395
+ this.removeFormValue(`template.views.read.nodes[${n}]`);
5390
5396
  });
5391
5397
  },
5392
5398
  removePackageGroup(i) {
@@ -5395,7 +5401,7 @@ const X2 = J2.exports, ee = (i, e, t = "$children") => {
5395
5401
  this.setFormValue({
5396
5402
  key: "articles",
5397
5403
  value: u(this._document, "_doc.articles", []).filter(
5398
- ({ packageId: s }) => s !== a.packageId
5404
+ ({ packageId: n }) => n !== a.packageId
5399
5405
  )
5400
5406
  });
5401
5407
  });
@@ -5411,23 +5417,23 @@ const X2 = J2.exports, ee = (i, e, t = "$children") => {
5411
5417
  if (e !== null && t !== null) {
5412
5418
  if (e === t)
5413
5419
  return;
5414
- const s = Ce(
5420
+ const n = Ce(
5415
5421
  this.nestedReadLayout,
5416
5422
  e,
5417
5423
  t
5418
5424
  );
5419
5425
  this.setFormValue({
5420
5426
  key: "template.views.read.nodes",
5421
- value: I(s)
5427
+ value: I(n)
5422
5428
  });
5423
5429
  } else if (!e && t !== null) {
5424
- const { sectionKey: s, createNewSection: n, addValidation: o, contentData: l } = a, {
5430
+ const { sectionKey: n, createNewSection: s, addValidation: o, contentData: l } = a, {
5425
5431
  readView: r,
5426
5432
  validation: c,
5427
5433
  data: g,
5428
5434
  onAddFnName: S = "onAdd"
5429
- } = n({
5430
- sectionKey: s,
5435
+ } = s({
5436
+ sectionKey: n,
5431
5437
  document: this._document,
5432
5438
  contentData: l
5433
5439
  });
@@ -5441,8 +5447,8 @@ const X2 = J2.exports, ee = (i, e, t = "$children") => {
5441
5447
  key: "template.views.read.nodes",
5442
5448
  value: I(ae)
5443
5449
  });
5444
- const [{ nodeId: se }] = r;
5445
- this.onAddRedis[se] = S;
5450
+ const [{ nodeId: ne }] = r;
5451
+ this.onAddRedis[ne] = S;
5446
5452
  }
5447
5453
  },
5448
5454
  shouldAnimateDrop(i) {
@@ -5455,20 +5461,26 @@ var ti = function() {
5455
5461
  return t("div", { staticClass: "h-screen overflow-auto" }, [t("div", { staticClass: "relative flex min-h-screen flex-row bg-gray-200", class: {
5456
5462
  "is-edit-view": e.isEditView,
5457
5463
  "is-empty-list": !e.nestedReadLayout.length
5458
- } }, [t("DocumentFormNav", { attrs: { close: e.close } }, [t("div", { staticClass: "relative flex w-full items-center space-x-4", attrs: { slot: "left" }, slot: "left" }, [t("div", { staticClass: "rounded-md bg-gray-300 sm:bg-transparent" }, [e.close ? t("CButton", { staticClass: "d-nav-button position left close h-[2.25em] w-[2.25em] text-base backdrop-blur-[25px]", attrs: { "icon-props": { size: e.mq === "sm" ? 16 : 20 }, size: "normal", icon: "x", type: "none", pattern: "tertiary" }, on: { click: e.close } }) : e._e()], 1), e.goBack && e.mq !== "sm" ? t("CButton", { staticClass: "mr-2 h-[2.25em] w-[2.25em] backdrop-blur-[25px]", attrs: { "icon-props": { size: e.mq === "sm" ? 16 : 20 }, type: "none", pattern: "tertiary", icon: "arrow-left" }, on: { click: e.goBack } }) : e._e(), t("div", { staticClass: "relative hidden rounded-md bg-gray-300 sm:flex sm:bg-transparent" }, [t("CButton", { staticStyle: { width: "36px", height: "36px", "padding-left": "14px", "padding-right": "14px" }, attrs: { size: "normal", type: "none", pattern: "tertiary", "icon-props": { size: 20 }, thinner: "", icon: "sidebar" }, on: { click: function(a) {
5459
- return a.stopPropagation(), e.drawerState.toggleLeft.apply(null, arguments);
5460
- } } })], 1), e._t("nav-left")], 2), t("div", { staticClass: "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) {
5461
- return e.$emit("update:view", a);
5462
- } } }), !e.isEditView && !["sm", "md", "lg"].includes(e.mq) ? t("div", { staticClass: "absolute inline-flex h-9 cursor-pointer space-x-2 rounded-md bg-gray-300 p-1 backdrop-blur-lg backdrop-saturate-[180%]", staticStyle: { left: "calc(100% + calc(1.25 * var(--rem)))" } }, e._l(["desktop", "tablet", "mobile"], function(a) {
5463
- return t("div", { key: a, staticClass: "pointer inline-flex select-none items-center justify-center rounded-md p-[10px] font-semibold text-gray-700 transition duration-150 ease-linear", style: e.previewDevice === a && {
5464
- boxShadow: "0 1px 1px rgba(0, 0, 0, 0.2)",
5465
- backgroundColor: "hsl(0, 0%, 100%)",
5466
- color: "hsl(0, 0%, 7%)"
5467
- }, on: { click: function(s) {
5468
- e.previewDevice = a;
5469
- } } }, [t("CIcon", { attrs: { type: a, size: "16" } })], 1);
5470
- }), 0) : e._e()], 1), e._t("nav-right", null, { slot: "right" })], 2), t("DocumentFormMenu", { directives: [{ name: "show", rawName: "v-show", value: e.drawerState.showLeft, expression: "drawerState.showLeft" }], attrs: { state: e._document, "on-added-block": ({ nodeId: a, onAddFnName: s = "onAdd" }) => {
5471
- e.onAddRedis[a] = s;
5464
+ } }, [t("DocumentFormNav", { attrs: { close: e.close }, scopedSlots: e._u([{ key: "left", fn: function() {
5465
+ return [t("div", { staticClass: "relative flex w-full items-center space-x-4" }, [t("div", { staticClass: "rounded-md bg-gray-300 sm:bg-transparent" }, [e.close ? t("CButton", { staticClass: "d-nav-button position left close h-[2.25em] w-[2.25em] text-base backdrop-blur-[25px]", attrs: { "icon-props": { size: e.mq === "sm" ? 16 : 20 }, size: "normal", icon: "x", type: "none", pattern: "tertiary" }, on: { click: e.close } }) : e._e()], 1), e.goBack && e.mq !== "sm" ? t("CButton", { staticClass: "mr-2 h-[2.25em] w-[2.25em] backdrop-blur-[25px]", attrs: { "icon-props": { size: e.mq === "sm" ? 16 : 20 }, type: "none", pattern: "tertiary", icon: "arrow-left" }, on: { click: e.goBack } }) : e._e(), t("div", { staticClass: "relative hidden rounded-md bg-gray-300 sm:flex sm:bg-transparent" }, [t("CButton", { staticStyle: { width: "36px", height: "36px", "padding-left": "14px", "padding-right": "14px" }, attrs: { size: "normal", type: "none", pattern: "tertiary", "icon-props": { size: 20 }, thinner: "", icon: "sidebar" }, on: { click: function(a) {
5466
+ return a.stopPropagation(), e.drawerState.toggleLeft.apply(null, arguments);
5467
+ } } })], 1), e._t("nav-left")], 2)];
5468
+ }, proxy: !0 }, { key: "center", fn: function() {
5469
+ return [t("div", { staticClass: "relative" }, [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) {
5470
+ return e.$emit("update:view", a);
5471
+ } } }), !e.isEditView && !["sm", "md", "lg"].includes(e.mq) ? t("div", { staticClass: "absolute inline-flex h-9 cursor-pointer space-x-2 rounded-md bg-gray-300 p-1 backdrop-blur-lg backdrop-saturate-[180%]", staticStyle: { left: "calc(100% + calc(1.25 * var(--rem)))" } }, e._l(["desktop", "tablet", "mobile"], function(a) {
5472
+ return t("div", { key: a, staticClass: "pointer inline-flex select-none items-center justify-center rounded-md p-[10px] font-semibold text-gray-700 transition duration-150 ease-linear", style: e.previewDevice === a && {
5473
+ boxShadow: "0 1px 1px rgba(0, 0, 0, 0.2)",
5474
+ backgroundColor: "hsl(0, 0%, 100%)",
5475
+ color: "hsl(0, 0%, 7%)"
5476
+ }, on: { click: function(n) {
5477
+ e.previewDevice = a;
5478
+ } } }, [t("CIcon", { attrs: { type: a, size: "16" } })], 1);
5479
+ }), 0) : e._e()], 1)];
5480
+ }, proxy: !0 }, { key: "right", fn: function() {
5481
+ return [e._t("nav-right")];
5482
+ }, proxy: !0 }], null, !0) }), t("DocumentFormMenu", { directives: [{ name: "show", rawName: "v-show", value: e.drawerState.showLeft, expression: "drawerState.showLeft" }], attrs: { state: e._document, "on-added-block": ({ nodeId: a, onAddFnName: n = "onAdd" }) => {
5483
+ e.onAddRedis[a] = n;
5472
5484
  }, set: e.setFormValue, "remove-value": e.removeFormValue, template: e.docTemplate, fixed: e.drawerState.isFixed, "can-use-blocks": e.isTemplateEditable, "is-legacy-template": e.isLegacyTemplate, width: e.sidebarWidth }, on: { close: function(a) {
5473
5485
  e.drawerState.showLeft = !1;
5474
5486
  } } }), t("div", { ref: "scroll-body", staticClass: "doc-scroll-container flex w-full justify-center", class: {
@@ -5484,12 +5496,12 @@ var ti = function() {
5484
5496
  e.isEditView && "mx-auto min-h-full w-[1200px] max-w-full overflow-hidden rounded-md px-0 shadow-[0_20px_35px_-8px_hsla(0,0%,0%,0.27)] md:max-w-[90%]"
5485
5497
  ] }, [!e.nestedReadLayout.length && !e.isFixedSidebar ? t("div", { staticClass: "drag-drop-empty-list is-placeholder text-gray-400" }, [t("div", { staticStyle: { position: "relative" } }, [e._m(0), t("svg", { staticClass: "drag-drop-illustration", attrs: { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 50 50" } }, [t("path", { staticClass: "drag-drop-illustration-finger", attrs: { d: "M8 0a4 4 0 00-2.7 1C4.6 1.6 4 2.7 4 4v21.4c-.4.2-.8.2-1.7 1A7.2 7.2 0 000 31.8c0 2 .8 3.8 1 4.5L4 42s-.1 0 0 0c1.4 3.1 4.5 5 8 5h9c5 0 9-4 9-9V22c0-.8-.1-2-.7-3-.5-1-1.7-2-3.3-2-1 0-2 .4-2.6.9 0-.3-.1-.7-.3-1-.6-1-1.7-1.9-3.1-1.9a4 4 0 00-2.7 1c-.6-1.1-1.7-2-3.3-2-.8 0-1.4.2-2 .6V4a4 4 0 00-4-4z", fill: "#000", "fill-rule": "nonzero" } }), t("path", { staticClass: "drag-drop-illustration-grabbing", attrs: { transform: "translate(0 11)", d: "M14 1c-.8 0-1.8.2-2.6.8l-.9 1a4 4 0 00-5.2.2C4.6 3.6 4 4.7 4 5.9V14c-1.7.7-4 3-4 7 0 2.2.9 4.2 1 4.5L3.9 31c1.5 3.1 4.6 5 8 5H21c5 0 9-4 9-9V9c0-4.4-2.5-5-4-5-.7 0-1.5.1-2.3.7C23 2.5 21.4 2 20 2c-1 0-2 .3-2.6.8l-.6-.9A4 4 0 0014 1z", fill: "#000", "fill-rule": "nonzero" } })])]), t("div", { staticClass: "text-center", staticStyle: { "max-width": "22ch" }, domProps: { innerHTML: e._s(e.$t("emptyBlockPlaceholderLarge")) } })]) : e._e(), t(e.isEditView ? "div" : "simplebar", { tag: "component", staticClass: "h-full w-full" }, [t("WithDimensions", { attrs: { "provide-device": !0 }, on: { width: function(a) {
5486
5498
  e.parentSize.width = a;
5487
- } }, scopedSlots: e._u([{ key: "default", fn: function({ width: a, height: s }) {
5488
- var n, o;
5489
- return t("DocumentStyleContainer", { staticClass: "relative h-full w-full", style: {
5499
+ } }, scopedSlots: e._u([{ key: "default", fn: function({ width: a, height: n }) {
5500
+ var s, o;
5501
+ return [t("DocumentStyleContainer", { staticClass: "relative h-full w-full", style: {
5490
5502
  "--vw": `${a / 100}px`,
5491
- "--vh": `clamp(7.5px, ${s / 100}px, ${e.isEditView ? 7.5 : 9}px)`
5492
- }, attrs: { "heading-color": e.headingColor, "input-style": ((o = (n = e._document) == null ? void 0 : n.data) == null ? void 0 : o.css) || null } }, [e.nestedReadLayout ? t("DragList", { staticClass: "drag-list", attrs: { handle: ".NO-SELECTOR", "drop-placeholder": { className: "drag-drop-placeholder" }, "should-animate-drop": e.shouldAnimateDrop, group: "blocks", "ghost-class": "drag-drop-ghost", "drag-class": "is-dragged", "group-name": "document-blocks", "non-drag-area-selector": ".no-drag", "drag-handle-selector": ".drag-item" }, on: { "drag-start": function(l) {
5503
+ "--vh": `clamp(7.5px, ${n / 100}px, ${e.isEditView ? 7.5 : 9}px)`
5504
+ }, attrs: { "heading-color": e.headingColor, "input-style": ((o = (s = e._document) == null ? void 0 : s.data) == null ? void 0 : o.css) || null } }, [e.nestedReadLayout ? t("DragList", { staticClass: "drag-list", attrs: { handle: ".NO-SELECTOR", "drop-placeholder": { className: "drag-drop-placeholder" }, "should-animate-drop": e.shouldAnimateDrop, group: "blocks", "ghost-class": "drag-drop-ghost", "drag-class": "is-dragged", "group-name": "document-blocks", "non-drag-area-selector": ".no-drag", "drag-handle-selector": ".drag-item" }, on: { "drag-start": function(l) {
5493
5505
  e.isDragging = !0;
5494
5506
  }, "drag-end": function(l) {
5495
5507
  e.isDragging = !1;
@@ -5517,7 +5529,7 @@ var ti = function() {
5517
5529
  }, children: l.children, "parent-size": e.parentSize, "is-visible": l.isVisible, "on-input": ({ key: c, value: g, options: S }) => e.setFormValue({ key: c, value: g, options: S }), "on-remove": ({ key: c }) => e.removeFormValue(c), "on-mount": (c) => e.onAddBlockMount(l.nodeId, c) } })], 1)], 1);
5518
5530
  }), 1) : e._e(), e.canShowBanner ? t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ isProLike: l }) {
5519
5531
  return [!e.isEditView && !l ? t("LogoBanner", { attrs: { position: "sticky" } }) : e._e()];
5520
- } }], null, !0) }) : e._e()], 1);
5532
+ } }], null, !0) }) : e._e()], 1)];
5521
5533
  } }]) })], 1)], 1)]), t("DocumentDrawer", { key: "settingsDrawer", attrs: { id: "settingsDrawer", open: !!e.drawerState.openSection, fixed: !0, position: "right" }, on: { "update:open": function(a) {
5522
5534
  e.drawerState.openSection = null;
5523
5535
  } } }, [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) {
@@ -5532,9 +5544,9 @@ var ti = function() {
5532
5544
  ii,
5533
5545
  !1,
5534
5546
  null,
5535
- "3168d720"
5547
+ "3db19ed2"
5536
5548
  );
5537
- const si = ai.exports, ni = {
5549
+ const ni = ai.exports, si = {
5538
5550
  name: "DocumentSend",
5539
5551
  i18nOptions: {
5540
5552
  namespaces: "documentSend",
@@ -5560,7 +5572,7 @@ const si = ai.exports, ni = {
5560
5572
  components: {
5561
5573
  AddBlock: X,
5562
5574
  Drawer: Q,
5563
- SendForm: st,
5575
+ SendForm: nt,
5564
5576
  CCheckbox: ye,
5565
5577
  CIcon: xe,
5566
5578
  CButton: we,
@@ -5663,28 +5675,32 @@ var oi = function() {
5663
5675
  "is-fullscreen": e.mq === "sm"
5664
5676
  } }, [t("CButton", { staticStyle: { position: "absolute", right: "1em", top: "1em", "z-index": "99" }, attrs: { circle: "", icon: "x", pattern: "secondary" }, on: { click: function(a) {
5665
5677
  e.isOpen = !1;
5666
- } } }), t("SendForm", { attrs: { _document: e._document, _value: e._value, "set-form-value": e.setFormValue, "remove-form-value": e.removeFormValue, "on-save-document": e.onSaveDoc, "use-scroll": "" } }, [e.hasAnswerBlock ? e._e() : t("div", { key: "1", staticClass: "mb-8 flex rounded-lg border border-red-200 bg-red-50 p-3" }, [t("div", [t("CIcon", { staticClass: "-mt-1 text-red-600", attrs: { type: "error", size: "18" } })], 1), t("div", [t("div", { staticClass: "pl-2" }, [t("div", { staticClass: "text-sm font-semibold text-red-600", domProps: { textContent: e._s(e.$t("signMissingTitle")) } }), t("div", { staticClass: "mb-4 text-sm text-red-600 text-opacity-80" }, [e._v(" " + e._s(e.$t("signMissingText")) + " ")])]), t("AddBlock", { attrs: { set: e.setFormValue }, scopedSlots: e._u([{ key: "default", fn: function({ addBlock: a }) {
5667
- return [t("CButton", { staticClass: "is-left", attrs: { type: "secondary", size: "small" }, on: { click: function(s) {
5678
+ } } }), t("SendForm", { attrs: { _document: e._document, _value: e._value, "set-form-value": e.setFormValue, "remove-form-value": e.removeFormValue, "on-save-document": e.onSaveDoc, "use-scroll": "" }, scopedSlots: e._u([{ key: "send", fn: function() {
5679
+ return [e.isPublicForm ? t("CButton", { staticStyle: { height: "48px" }, attrs: { type: "secondary", wide: "" }, on: { click: e.onSaveDocument } }, [e._v(" " + e._s(e.$t("signupToSend")) + " ")]) : e._e()];
5680
+ }, proxy: !0 }, { key: "footer", fn: function() {
5681
+ return [t("label", { staticClass: "text-gray-600", staticStyle: { display: "inline-flex", "align-items": "center", cursor: "pointer", "user-select": "none", "font-size": "12px", "font-weight": "500", "padding-top": "calc(1 * var(--rem))" }, attrs: { for: "checkbox-save-as-temp" } }, [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateTemplate: a }) {
5682
+ return [t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: n }) {
5683
+ return [t("div", { staticClass: "flex items-center", on: { click: (s) => e.onClickSaveAsTemplate({
5684
+ event: s,
5685
+ can: a,
5686
+ open: n
5687
+ }) } }, [t("CCheckbox", { attrs: { id: "checkbox-save-as-temp", size: "small", type: "secondary" }, model: { value: e.saveTemplate, callback: function(s) {
5688
+ e.saveTemplate = s;
5689
+ }, expression: "saveTemplate" } }), t("div", { staticStyle: { "padding-left": "0.5em" } }, [e._v(" " + e._s(e.$t("saveDocAsTemplate")) + " "), t("CIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.saveTemplateTooltip, expression: "saveTemplateTooltip" }], attrs: { type: "info", size: "15" } })], 1)], 1)];
5690
+ } }], null, !0) })];
5691
+ } }], null, !1, 4212506376) })], 1)];
5692
+ }, proxy: !0 }], null, !1, 4264192666) }, [e.hasAnswerBlock ? e._e() : t("div", { key: "1", staticClass: "mb-8 flex rounded-lg border border-red-200 bg-red-50 p-3" }, [t("div", [t("CIcon", { staticClass: "-mt-1 text-red-600", attrs: { type: "error", size: "18" } })], 1), t("div", [t("div", { staticClass: "pl-2" }, [t("div", { staticClass: "text-sm font-semibold text-red-600", domProps: { textContent: e._s(e.$t("signMissingTitle")) } }), t("div", { staticClass: "mb-4 text-sm text-red-600 text-opacity-80" }, [e._v(" " + e._s(e.$t("signMissingText")) + " ")])]), t("AddBlock", { attrs: { set: e.setFormValue }, scopedSlots: e._u([{ key: "default", fn: function({ addBlock: a }) {
5693
+ return [t("CButton", { staticClass: "is-left", attrs: { type: "secondary", size: "small" }, on: { click: function(n) {
5668
5694
  return a({ sectionKey: "answer", document: e._document });
5669
5695
  } } }, [e._v(" " + e._s(e.$t("signMissingAdd")) + " ")])];
5670
- } }], null, !1, 1245343054) })], 1)]), e.isPublicForm ? t("CButton", { staticStyle: { height: "48px" }, attrs: { slot: "send", type: "secondary", wide: "" }, on: { click: e.onSaveDocument }, slot: "send" }, [e._v(" " + e._s(e.$t("signupToSend")) + " ")]) : e._e(), t("label", { staticClass: "text-gray-600", staticStyle: { display: "inline-flex", "align-items": "center", cursor: "pointer", "user-select": "none", "font-size": "12px", "font-weight": "500", "padding-top": "calc(1 * var(--rem))" }, attrs: { slot: "footer", for: "checkbox-save-as-temp" }, slot: "footer" }, [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateTemplate: a }) {
5671
- return [t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
5672
- return [t("div", { staticClass: "flex items-center", on: { click: (n) => e.onClickSaveAsTemplate({
5673
- event: n,
5674
- can: a,
5675
- open: s
5676
- }) } }, [t("CCheckbox", { attrs: { id: "checkbox-save-as-temp", size: "small", type: "secondary" }, model: { value: e.saveTemplate, callback: function(n) {
5677
- e.saveTemplate = n;
5678
- }, expression: "saveTemplate" } }), t("div", { staticStyle: { "padding-left": "0.5em" } }, [e._v(" " + e._s(e.$t("saveDocAsTemplate")) + " "), t("CIcon", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.saveTemplateTooltip, expression: "saveTemplateTooltip" }], attrs: { type: "info", size: "15" } })], 1)], 1)];
5679
- } }], null, !0) })];
5680
- } }], null, !1, 3857209736) })], 1)], 1)], 1)]) : e._e();
5696
+ } }], null, !1, 1245343054) })], 1)])])], 1)]) : e._e();
5681
5697
  }, li = [], ri = /* @__PURE__ */ d(
5682
- ni,
5698
+ si,
5683
5699
  oi,
5684
5700
  li,
5685
5701
  !1,
5686
5702
  null,
5687
- "ded1afc1"
5703
+ "671b8468"
5688
5704
  );
5689
5705
  const ci = ri.exports, di = {
5690
5706
  i18nOptions: {
@@ -5894,13 +5910,15 @@ var wi = function() {
5894
5910
  var e = this, t = e._self._c;
5895
5911
  return t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({
5896
5912
  accountType: a,
5897
- trialDaysLeft: s,
5898
- openUpgradeModal: n,
5913
+ trialDaysLeft: n,
5914
+ openUpgradeModal: s,
5899
5915
  initialFreePremiumDays: o
5900
5916
  }) {
5901
- return [a === "trial" && e.mq !== "sm" ? t("v-popover", { attrs: { "popover-inner-class": "bg-white rounded-md shadow-xl" } }, [t("div", { staticClass: "relative mr-2 flex h-9 cursor-pointer select-none flex-col justify-center rounded-md bg-gray-200/50 px-2 text-xs font-semibold backdrop-blur-lg backdrop-saturate-150" }, [t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$tc("_common:day", { count: s })) + " " + e._s(e.$t("button")) + " ")]), t("div", { staticClass: "absolute bottom-1 left-2 right-2 h-[3px] rounded-full bg-gray-300 ring-1 ring-white/10" }, [t("div", { staticClass: "to-primary-600 absolute h-full rounded-full bg-gradient-to-r from-green-500 via-emerald-500", style: {
5902
- width: e.clamp(s / o * 100, 0, 100) + "%"
5903
- } })])]), t("div", { staticClass: "w-56 p-4 text-sm", attrs: { slot: "popover" }, slot: "popover" }, [t("div", { staticClass: "font-semibold" }, [e._v(" " + e._s(e.$t("title.1")) + " "), t("span", { staticClass: "bg-primary-100 border-primary-200 text-primary-800 inline-flex rounded-md border px-1.5 py-[3px] text-xs leading-none" }, [e._v(e._s(e.$t("title.2")))]), e._v(" " + e._s(e.$t("title.3", { trialDaysLeft: s })) + ". ")]), t("div", { staticClass: "text-sm text-gray-600" }, [e._v(" " + e._s(e.$t("title.4")) + " "), t("span", { staticClass: "inline-flex rounded-md border border-gray-300 bg-gray-200 px-1.5 py-[3px] text-xs font-semibold leading-none text-gray-600" }, [e._v(e._s(e.$t("title.5")))]), e._v(". ")]), t("div", { staticClass: "mt-5" }, [t("CButton", { directives: [{ name: "close-popover", rawName: "v-close-popover" }], attrs: { type: "secondary", size: "small", "icon-right": "arrow-right" }, on: { click: n } }, [e._v(" " + e._s(e.$t("actionButton")) + " ")])], 1)])]) : e._e()];
5917
+ return [a === "trial" && e.mq !== "sm" ? t("v-popover", { attrs: { "popover-inner-class": "bg-white rounded-md shadow-xl" }, scopedSlots: e._u([{ key: "popover", fn: function() {
5918
+ return [t("div", { staticClass: "w-56 p-4 text-sm" }, [t("div", { staticClass: "font-semibold" }, [e._v(" " + e._s(e.$t("title.1")) + " "), t("span", { staticClass: "bg-primary-100 border-primary-200 text-primary-800 inline-flex rounded-md border px-1.5 py-[3px] text-xs leading-none" }, [e._v(e._s(e.$t("title.2")))]), e._v(" " + e._s(e.$t("title.3", { trialDaysLeft: n })) + ". ")]), t("div", { staticClass: "text-sm text-gray-600" }, [e._v(" " + e._s(e.$t("title.4")) + " "), t("span", { staticClass: "inline-flex rounded-md border border-gray-300 bg-gray-200 px-1.5 py-[3px] text-xs font-semibold leading-none text-gray-600" }, [e._v(e._s(e.$t("title.5")))]), e._v(". ")]), t("div", { staticClass: "mt-5" }, [t("CButton", { directives: [{ name: "close-popover", rawName: "v-close-popover" }], attrs: { type: "secondary", size: "small", "icon-right": "arrow-right" }, on: { click: s } }, [e._v(" " + e._s(e.$t("actionButton")) + " ")])], 1)])];
5919
+ }, proxy: !0 }], null, !0) }, [t("div", { staticClass: "relative mr-2 flex h-9 cursor-pointer select-none flex-col justify-center rounded-md bg-gray-200/50 px-2 text-xs font-semibold backdrop-blur-lg backdrop-saturate-150" }, [t("div", { staticClass: "text-gray-600" }, [e._v(" " + e._s(e.$tc("_common:day", { count: n })) + " " + e._s(e.$t("button")) + " ")]), t("div", { staticClass: "absolute bottom-1 left-2 right-2 h-[3px] rounded-full bg-gray-300 ring-1 ring-white/10" }, [t("div", { staticClass: "to-primary-600 absolute h-full rounded-full bg-gradient-to-r from-green-500 via-emerald-500", style: {
5920
+ width: e.clamp(n / o * 100, 0, 100) + "%"
5921
+ } })])])]) : e._e()];
5904
5922
  } }]) });
5905
5923
  }, bi = [], ki = /* @__PURE__ */ d(
5906
5924
  xi,
@@ -5908,7 +5926,7 @@ var wi = function() {
5908
5926
  bi,
5909
5927
  !1,
5910
5928
  null,
5911
- "748c3983"
5929
+ "c0dbb5e9"
5912
5930
  );
5913
5931
  const _i = ki.exports, V = E.observable({
5914
5932
  canEdit: !1,
@@ -5918,7 +5936,7 @@ const _i = ki.exports, V = E.observable({
5918
5936
  }), Li = {
5919
5937
  name: "DocumentForm",
5920
5938
  components: {
5921
- DocumentFormContainer: si,
5939
+ DocumentFormContainer: ni,
5922
5940
  IsPremium: $,
5923
5941
  IsPremiumPreStep: L,
5924
5942
  DocumentSend: ci,
@@ -6032,26 +6050,30 @@ var $i = function() {
6032
6050
  var e = this, t = e._self._c;
6033
6051
  return e.document ? t("div", { staticClass: "flex w-screen flex-col bg-white" }, [t("DocumentFormContainer", { attrs: { _document: e.document, view: e.view, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "remove-form-key-value": e.removeDocKeyValue, close: e.close, "go-back": e.goBack, "can-show-banner": e.canShowBanner }, on: { "update:view": function(a) {
6034
6052
  e.view = a;
6035
- } } }, [t("template", { slot: "nav-right" }, [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateDocument: a, canCreateTemplate: s }) {
6036
- return [t("IsPremiumPreStep", { attrs: { feature: "documents" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: n }) {
6037
- return [t("div", { key: e.canDoActions, staticClass: "inline-flex flex-1 justify-end space-x-5" }, [t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: o }) {
6038
- return [t("div", { staticClass: "rounded-md bg-gray-300 sm:bg-transparent" }, [t("CDropdown", { attrs: { disabled: !e.canDoActions } }, [t("CButton", { staticClass: "d-nav-button position right", staticStyle: { width: "36px", height: "36px", "padding-left": "14px", "padding-right": "14px" }, attrs: { slot: "trigger", "icon-props": {
6039
- size: e.mq === "sm" ? 16 : 20,
6040
- strokeWidth: 2
6041
- }, size: "medium", type: "none", pattern: "tertiary", thinner: "", icon: "save" }, slot: "trigger" }), t("CDropdownItem", { attrs: { "icon-props": { stroke: "hsl(205, 100%, 50%)" }, "icon-left": "save" }, on: { click: function(l) {
6042
- a || e.document.id ? e.submitSave() : n({ callback: e.submitSave });
6043
- } } }, [e._v(" " + e._s(e.$t("_common:save", { thing: e.$t("_common:document").toLowerCase() })) + " ")]), t("CDropdownItem", { attrs: { disabled: e.isLoading, "icon-left": "template-color" }, on: { click: function(l) {
6044
- s ? e.saveAsTemplate() : o({
6045
- callback: e.saveAsTemplate
6046
- });
6047
- } } }, [e._v(" " + e._s(e.$t("_common:saveAs", { thing: e.$t("_common:template") })) + " ")])], 1)], 1)];
6048
- } }], null, !0) }), e._t("nav-right-action", function() {
6049
- return [t("RemainingTrialButton"), t("div", { staticClass: "buttons has-addons whitespace-nowrap" }, [t("CButton", { ref: "sendButton", staticClass: "d-nav-button position right !h-full", class: e.mq === "sm" && "w-9", attrs: { disabled: !e.canDoActions, loading: e.isLoading, "data-onboarding": "send-button", size: "small", type: "secondary", icon: e.mq === "sm" ? "send" : "", label: e.mq === "sm" ? "" : e.$t("_common:reviewSend") }, on: { click: function(o) {
6050
- a || !e.doConsumeQuota || e.document.id ? e.openSendModal() : n({ callback: e.openSendModal });
6051
- } } })], 1)];
6052
- })], 2)];
6053
- } }], null, !0) })];
6054
- } }], null, !1, 1102381206) })], 1)], 2), t("DocumentSend", { ref: "documentSend", attrs: { _document: e.document, _value: {
6053
+ } }, scopedSlots: e._u([{ key: "nav-right", fn: function() {
6054
+ return [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateDocument: a, canCreateTemplate: n }) {
6055
+ return [t("IsPremiumPreStep", { attrs: { feature: "documents" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
6056
+ return [t("div", { key: e.canDoActions, staticClass: "inline-flex flex-1 justify-end space-x-5" }, [t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: o }) {
6057
+ return [t("div", { staticClass: "rounded-md bg-gray-300 sm:bg-transparent" }, [t("CDropdown", { attrs: { disabled: !e.canDoActions }, scopedSlots: e._u([{ key: "trigger", fn: function() {
6058
+ return [t("CButton", { staticClass: "d-nav-button position right", staticStyle: { width: "36px", height: "36px", "padding-left": "14px", "padding-right": "14px" }, attrs: { "icon-props": {
6059
+ size: e.mq === "sm" ? 16 : 20,
6060
+ strokeWidth: 2
6061
+ }, size: "medium", type: "none", pattern: "tertiary", thinner: "", icon: "save" } })];
6062
+ }, proxy: !0 }], null, !0) }, [t("CDropdownItem", { attrs: { "icon-props": { stroke: "hsl(205, 100%, 50%)" }, "icon-left": "save" }, on: { click: function(l) {
6063
+ a || e.document.id ? e.submitSave() : s({ callback: e.submitSave });
6064
+ } } }, [e._v(" " + e._s(e.$t("_common:save", { thing: e.$t("_common:document").toLowerCase() })) + " ")]), t("CDropdownItem", { attrs: { disabled: e.isLoading, "icon-left": "template-color" }, on: { click: function(l) {
6065
+ n ? e.saveAsTemplate() : o({
6066
+ callback: e.saveAsTemplate
6067
+ });
6068
+ } } }, [e._v(" " + e._s(e.$t("_common:saveAs", { thing: e.$t("_common:template") })) + " ")])], 1)], 1)];
6069
+ } }], null, !0) }), e._t("nav-right-action", function() {
6070
+ return [t("RemainingTrialButton"), t("div", { staticClass: "buttons has-addons whitespace-nowrap" }, [t("CButton", { ref: "sendButton", staticClass: "d-nav-button position right !h-full", class: e.mq === "sm" && "w-9", attrs: { disabled: !e.canDoActions, loading: e.isLoading, "data-onboarding": "send-button", size: "small", type: "secondary", icon: e.mq === "sm" ? "send" : "", label: e.mq === "sm" ? "" : e.$t("_common:reviewSend") }, on: { click: function(o) {
6071
+ a || !e.doConsumeQuota || e.document.id ? e.openSendModal() : s({ callback: e.openSendModal });
6072
+ } } })], 1)];
6073
+ })], 2)];
6074
+ } }], null, !0) })];
6075
+ } }], null, !1, 989398557) })];
6076
+ }, proxy: !0 }], null, !1, 3195184598) }), t("DocumentSend", { ref: "documentSend", attrs: { _document: e.document, _value: {
6055
6077
  expiresAt: "data.expiresAt",
6056
6078
  personalMessage: "data.personalMessage",
6057
6079
  defaultAnswerMethod: "data.defaultAnswerMethod",
@@ -6122,8 +6144,8 @@ const Di = Ti.exports, Vi = {
6122
6144
  {
6123
6145
  clients: {
6124
6146
  $elemMatch: {
6125
- $or: ["name", "email", "socialNo", "orgNo"].map((n) => ({
6126
- [n]: { $regex: this.query, $options: "i" }
6147
+ $or: ["name", "email", "socialNo", "orgNo"].map((s) => ({
6148
+ [s]: { $regex: this.query, $options: "i" }
6127
6149
  }))
6128
6150
  }
6129
6151
  }
@@ -6137,8 +6159,8 @@ const Di = Ti.exports, Vi = {
6137
6159
  skip: i || 0,
6138
6160
  sort: "-createdAt",
6139
6161
  limit: 10
6140
- }), { items: s = [] } = a || {};
6141
- return s;
6162
+ }), { items: n = [] } = a || {};
6163
+ return n;
6142
6164
  },
6143
6165
  onLoadDocuments: z(async function() {
6144
6166
  this.isLoading = !0, this.hasItems = !0;
@@ -6161,11 +6183,11 @@ var Bi = function() {
6161
6183
  e.query = a;
6162
6184
  }, expression: "query" } }) : e._e()], 2), t("div", { staticClass: "recent-list" }, [e.isLoading && !e.list.length ? e._l(3, function(a) {
6163
6185
  return t("div", { key: a, staticClass: "recent-item placeholder" }, [t("CSkeleton", { staticClass: "recent-item-name", attrs: { width: "60%" } }), t("CSkeleton", { attrs: { width: "35%" } })], 1);
6164
- }) : !e.isLoading && !e.query && !e.list.length ? t("div", { staticClass: "rounded-md border border-gray-200 bg-gray-100 p-4 text-center text-gray-400", staticStyle: { "font-size": "15px" } }, [e._v(" " + e._s(e.$t("emptyPlaceholder")) + " ")]) : e.query && !e.isLoading && !e.list.length ? t("div", { staticClass: "text-center text-gray-400", staticStyle: { padding: "1em" } }, [e._v(" " + e._s(e.$t("noResults")) + " ")]) : [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateTemplate: a, canUseTemplate: s }) {
6165
- return [t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: n }) {
6186
+ }) : !e.isLoading && !e.query && !e.list.length ? t("div", { staticClass: "rounded-md border border-gray-200 bg-gray-100 p-4 text-center text-gray-400", staticStyle: { "font-size": "15px" } }, [e._v(" " + e._s(e.$t("emptyPlaceholder")) + " ")]) : e.query && !e.isLoading && !e.list.length ? t("div", { staticClass: "text-center text-gray-400", staticStyle: { padding: "1em" } }, [e._v(" " + e._s(e.$t("noResults")) + " ")]) : [t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateTemplate: a, canUseTemplate: n }) {
6187
+ return [t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
6166
6188
  return [t("div", e._l(e.list, function(o, l) {
6167
6189
  return t("div", { key: o._id, staticClass: "recent-item", on: { click: function(r) {
6168
- s ? e.onUseDocTemplate(o._id) : n({
6190
+ n ? e.onUseDocTemplate(o._id) : s({
6169
6191
  callback: () => e.onUseDocTemplate(o._id)
6170
6192
  });
6171
6193
  }, "&mouseover": function(r) {
@@ -6202,10 +6224,10 @@ const Fi = Ii.exports, Hi = /* @__PURE__ */ _e({
6202
6224
  },
6203
6225
  emits: ["triggerOpenTemplate"],
6204
6226
  setup(i, { emit: e }) {
6205
- const t = i, a = () => e("triggerOpenTemplate"), s = Le(), n = $e(), o = y(() => n.style), l = y(() => n.staticClass), r = y(() => n.class), c = y(() => n.key), g = y(() => n.attrs), S = y(
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(
6206
6228
  () => m.t("_common:empty", { thing: m.t("_common:template") })
6207
6229
  ), M = y(() => Se(t.name, 60));
6208
- return { __sfc: !0, props: t, emit: e, handleClick: a, slots: s, data: n, staticStyle: o, staticClass: l, styleClass: r, key: c, attrs: g, emptyTempleTitle: S, docTempleTitle: M, BlockMedia: lt };
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 };
6209
6231
  }
6210
6232
  });
6211
6233
  var Ai = function() {
@@ -6259,10 +6281,10 @@ const zi = Ei.exports, Zi = {
6259
6281
  },
6260
6282
  methods: {
6261
6283
  go(i) {
6262
- var s, n;
6284
+ var n, s;
6263
6285
  if (!this.$refs.container)
6264
6286
  return;
6265
- const e = (i > 0 ? 1 : -1) * (this.$refs.container.offsetWidth / 2), t = (n = (s = this.$refs) == null ? void 0 : s.list) == null ? void 0 : n.scrollElement;
6287
+ const e = (i > 0 ? 1 : -1) * (this.$refs.container.offsetWidth / 2), t = (s = (n = this.$refs) == null ? void 0 : n.list) == null ? void 0 : s.scrollElement;
6266
6288
  if (!t)
6267
6289
  return;
6268
6290
  const { scrollLeft: a } = t;
@@ -6274,8 +6296,8 @@ const zi = Ei.exports, Zi = {
6274
6296
  },
6275
6297
  scrollHandler() {
6276
6298
  clearTimeout(this.scrollTimer), this.scrollTimer = setTimeout(() => {
6277
- var s, n;
6278
- const i = (n = (s = this.$refs) == null ? void 0 : s.list) == null ? void 0 : n.scrollElement;
6299
+ var n, s;
6300
+ const i = (s = (n = this.$refs) == null ? void 0 : n.list) == null ? void 0 : s.scrollElement;
6279
6301
  if (!i)
6280
6302
  return;
6281
6303
  const { scrollWidth: e, scrollLeft: t, offsetWidth: a } = i;
@@ -6309,13 +6331,13 @@ const Gi = Ri.exports;
6309
6331
  function Wi(i, { availableProducts: e }) {
6310
6332
  if (!i)
6311
6333
  throw new Error("Missing parameter templateId");
6312
- const t = e, a = Object.keys(t).find((s) => {
6334
+ const t = e, a = Object.keys(t).find((n) => {
6313
6335
  var o;
6314
- const n = u(
6315
- t[s],
6336
+ const s = u(
6337
+ t[n],
6316
6338
  "metadata.companyPurchase"
6317
6339
  );
6318
- return (n == null ? void 0 : n.type) === "template" && ((o = n == null ? void 0 : n.data) == null ? void 0 : o.id) === i;
6340
+ return (s == null ? void 0 : s.type) === "template" && ((o = s == null ? void 0 : s.data) == null ? void 0 : o.id) === i;
6319
6341
  });
6320
6342
  return a ? t[a] : null;
6321
6343
  }
@@ -6335,14 +6357,14 @@ async function qi(i) {
6335
6357
  window.open(a, "_blank");
6336
6358
  }
6337
6359
  function ie(i, { availableProducts: e }) {
6338
- var s, n, o;
6360
+ var n, s, o;
6339
6361
  let t = null;
6340
6362
  const a = Wi(i.templateId, {
6341
6363
  availableProducts: e
6342
6364
  });
6343
6365
  return a && (t = {
6344
- price: R((s = a == null ? void 0 : a.prices) == null ? void 0 : s[0].amount, {
6345
- currency: (n = a == null ? void 0 : a.prices) == null ? void 0 : n[0].currency
6366
+ price: R((n = a == null ? void 0 : a.prices) == null ? void 0 : n[0].amount, {
6367
+ currency: (s = a == null ? void 0 : a.prices) == null ? void 0 : s[0].currency
6346
6368
  }),
6347
6369
  isPurchased: ((o = i.purchaseInfo) == null ? void 0 : o.isPurchased) || !1,
6348
6370
  onBuy: async () => qi(a)
@@ -6443,14 +6465,14 @@ const Ni = {
6443
6465
  async ({ type: i, action: e, data: t }) => {
6444
6466
  var a;
6445
6467
  if (i === "companyPurchase" && e === "applied" && (t == null ? void 0 : t.type) === "template") {
6446
- const s = (a = t == null ? void 0 : t.data) == null ? void 0 : a.id;
6447
- if (s !== this.template.id)
6468
+ const n = (a = t == null ? void 0 : t.data) == null ? void 0 : a.id;
6469
+ if (n !== this.template.id)
6448
6470
  return;
6449
- const n = {
6450
- templateId: s,
6471
+ const s = {
6472
+ templateId: n,
6451
6473
  isVisibleApp: !0,
6452
6474
  includePurchaseInfo: !0
6453
- }, o = await this.fetchGallery(n);
6475
+ }, o = await this.fetchGallery(s);
6454
6476
  this.privateProduct = ie(
6455
6477
  o[0],
6456
6478
  { availableProducts: this.stripeProducts }
@@ -6495,20 +6517,20 @@ var ji = function() {
6495
6517
  backgroundImage: `url(${e.meta.author.avatar})`
6496
6518
  } }), t("div", { staticStyle: { "margin-left": "0.5em" } }, [t("div", { staticStyle: { "font-weight": "500" } }, [e._v(e._s(e.meta.author.name))]), t("div", { staticStyle: { "font-weight": "400", "font-size": "14px" } }, [e.meta.author.templatesCount ? [e._v(" " + e._s(e.meta.author.templatesCount) + " " + e._s(e.$t("_common:template", { count: e.meta.author.templatesCount })) + " ")] : [e._v(e._s(e.$t("_common:template").capitalize()))]], 2)])]) : e._e()]), t("div", { staticStyle: { "padding-bottom": "2em" } }, [e.product ? [e.privateProduct.isPurchased ? t("div", { staticClass: "mb-5 flex items-center gap-2 rounded-full border border-gray-300 bg-gray-300/60 p-1 text-sm" }, [t("div", { staticClass: "bg-primary-500 flex h-5 w-5 items-center justify-center rounded-full" }, [t("CIcon", { staticClass: "text-white", attrs: { type: "check", size: "12" } })], 1), t("div", { staticClass: "text-xs font-medium text-gray-700", domProps: { textContent: e._s(
6497
6519
  e.$t("_common:purchased", { thing: e.$t("_common:template") })
6498
- ) } })]) : t("CButton", { staticClass: "!justify-start !px-4 text-left", staticStyle: { "margin-bottom": "0.5em" }, attrs: { type: "secondary", wide: "" }, on: { click: e.buyTemplate } }, [t("div", [e._v(" " + e._s(e.$t("_common:buy", { thing: e.$t("_common:template") })) + " ")]), t("div", { staticClass: "bg-primary-400/80 border-primary-600/60 absolute right-2 top-1/2 -translate-y-1/2 rounded-md border px-2 py-1.5 text-sm leading-none text-white", domProps: { textContent: e._s(e.privateProduct.price) } })])] : e._e(), t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canUseTemplate: s }) {
6499
- return [t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: n }) {
6520
+ ) } })]) : t("CButton", { staticClass: "!justify-start !px-4 text-left", staticStyle: { "margin-bottom": "0.5em" }, attrs: { type: "secondary", wide: "" }, on: { click: e.buyTemplate } }, [t("div", [e._v(" " + e._s(e.$t("_common:buy", { thing: e.$t("_common:template") })) + " ")]), t("div", { staticClass: "bg-primary-400/80 border-primary-600/60 absolute right-2 top-1/2 -translate-y-1/2 rounded-md border px-2 py-1.5 text-sm leading-none text-white", domProps: { textContent: e._s(e.privateProduct.price) } })])] : e._e(), t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canUseTemplate: n }) {
6521
+ return [t("IsPremiumPreStep", { attrs: { feature: "useDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
6500
6522
  return [!e.product || e.privateProduct.isPurchased ? t("CButton", { staticStyle: { "margin-bottom": "0.5em" }, attrs: { disabled: e.product ? !e.privateProduct.isPurchased : !1, type: "secondary", wide: "" }, on: { click: function(o) {
6501
- e.isPublicForm || s ? e.useSelectedTemplate() : n({ callback: e.useSelectedTemplate });
6523
+ e.isPublicForm || n ? e.useSelectedTemplate() : s({ callback: e.useSelectedTemplate });
6502
6524
  } } }, [e._v(" " + e._s(e.$t("_common:use", { thing: e.$t("_common:template") })) + " ")]) : e._e()];
6503
6525
  } }], null, !0) })];
6504
- } }]) }), t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateTemplate: s }) {
6505
- return [t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: n }) {
6526
+ } }]) }), t("IsPremium", { scopedSlots: e._u([{ key: "default", fn: function({ canCreateTemplate: n }) {
6527
+ return [t("IsPremiumPreStep", { attrs: { feature: "saveDocTemplate" }, scopedSlots: e._u([{ key: "default", fn: function({ onClick: s }) {
6506
6528
  var o;
6507
6529
  return [(e.product ? (o = e.product) != null && o.isPurchased : e.showSave) ? t("CButton", { staticStyle: { "margin-bottom": "0.5em" }, attrs: { loading: e.isLoading, type: e.didSave ? "success" : "none", "icon-left": e.didSave ? "check" : void 0, wide: "" }, on: { click: function(l) {
6508
- e.didSave || (e.isPublicForm || s ? e.saveAsTemplate() : n({ callback: e.saveAsTemplate }));
6530
+ e.didSave || (e.isPublicForm || n ? e.saveAsTemplate() : s({ callback: e.saveAsTemplate }));
6509
6531
  } } }, [e._v(" " + e._s(e.didSave ? e.$t("_common:savedThing", { thing: e.$t("_common:template") }) : e.$t("_common:saveAs", { thing: e.$t("_common:template") })) + " ")]) : e._e()];
6510
6532
  } }], null, !0) })];
6511
- } }]) }), e.allowCopyTemplateLink ? t("CButton", { attrs: { type: "none", "icon-left": "link", wide: "" }, on: { click: function(s) {
6533
+ } }]) }), e.allowCopyTemplateLink ? t("CButton", { attrs: { type: "none", "icon-left": "link", wide: "" }, on: { click: function(n) {
6512
6534
  return e.copyToClipboard(e.template.id);
6513
6535
  } } }, [e._v(" " + e._s(e.$t("_common:share", { thing: e.$t("_common:link") })) + " ")]) : e._e()], 2)])]);
6514
6536
  }, Ki = [], Yi = /* @__PURE__ */ d(
@@ -6647,13 +6669,13 @@ const Qi = Yi.exports, Ji = {
6647
6669
  this.$store.hasModule("stripe") || this.$store.registerModuleState("stripe", Je);
6648
6670
  },
6649
6671
  async created() {
6650
- var t, a, s, n;
6672
+ var t, a, n, s;
6651
6673
  this.canPurchase && await this.loadPrices();
6652
6674
  let i = this.galleryCategory;
6653
6675
  !i && ((a = (t = this.$route) == null ? void 0 : t.query) != null && a.list) && ([i] = this.$route.query.list.split(",")), i && (this.activeCategory = this.allCategories.find(
6654
6676
  ({ key: o }) => o === i
6655
6677
  )), await this.loadTemplateGallery();
6656
- const e = (n = (s = this.$route) == null ? void 0 : s.query) == null ? void 0 : n.id;
6678
+ const e = (s = (n = this.$route) == null ? void 0 : n.query) == null ? void 0 : s.id;
6657
6679
  if (e)
6658
6680
  try {
6659
6681
  const o = this.templateGalleryItems.find(
@@ -6696,13 +6718,13 @@ const Qi = Yi.exports, Ji = {
6696
6718
  }
6697
6719
  },
6698
6720
  async getGalleryTemplate(i) {
6699
- var n;
6721
+ var s;
6700
6722
  const e = {
6701
6723
  _id: i,
6702
6724
  populate: "templateId",
6703
6725
  isVisibleApp: !0,
6704
6726
  includePurchaseInfo: !0
6705
- }, t = await this.fetchGallery(e), a = (n = t == null ? void 0 : t[0]) == null ? void 0 : n.templateId;
6727
+ }, t = await this.fetchGallery(e), a = (s = t == null ? void 0 : t[0]) == null ? void 0 : s.templateId;
6706
6728
  return a ? (Be(a), new Me(a)) : null;
6707
6729
  },
6708
6730
  onUseTemplate(i) {
@@ -7001,69 +7023,77 @@ const ia = ta.exports, aa = {
7001
7023
  }
7002
7024
  }
7003
7025
  };
7004
- var sa = function() {
7026
+ var na = function() {
7005
7027
  var e = this, t = e._self._c;
7006
7028
  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 }) {
7007
- return [t(e.isExpanded ? "div" : "HorizontalScroll", { tag: "component", staticClass: "template-list", class: { "is-expanded": e.isExpanded }, on: { expand: function(s) {
7029
+ return [t(e.isExpanded ? "div" : "HorizontalScroll", { tag: "component", staticClass: "template-list", class: { "is-expanded": e.isExpanded }, on: { expand: function(n) {
7008
7030
  e.isExpanded = !0;
7009
- } } }, e._l(e.myTemplates, function(s) {
7010
- return t("DocumentIcon", { key: s.id, staticClass: "template-item", attrs: { "is-add": s.id === "empty", "is-placeholder": s.placeholder, media: s.defaultMedia || e.fallbackMedia, thumbnail: s.thumbnailUrl, name: s.name }, on: { triggerOpenTemplate: function(n) {
7011
- s.placeholder || (e.canUseTemplate(s) ? e.select({ templateId: s.id }) : a());
7012
- } } }, [e.canUseTemplate(s) ? !s.doConsumeDocumentQuota && !s.placeholder ? t("div", { staticClass: "bg-primary-500 border-primary-600 inline-flex h-5 items-center rounded border px-1.5 text-[11px] font-semibold capitalize leading-none text-white shadow-sm", attrs: { slot: "badge" }, slot: "badge" }, [e._v(" " + e._s(e.$t("_common:free")) + " ")]) : e._e() : t("div", { staticClass: "inline-flex h-5 items-center gap-1 rounded border border-gray-300 bg-gray-200 px-1 leading-none text-gray-500/90 shadow-sm", attrs: { slot: "badge" }, slot: "badge" }, [t("CIcon", { attrs: { type: "lock", size: "12", "stroke-width": "2.5" } }), t("div", { staticClass: "text-[11px] font-semibold" }, [e._v("Pro")])], 1), s.onModify === "create" && !s.doConsumeDocumentQuota ? t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
7031
+ } } }, e._l(e.myTemplates, function(n) {
7032
+ return t("DocumentIcon", { key: n.id, staticClass: "template-item", attrs: { "is-add": n.id === "empty", "is-placeholder": n.placeholder, media: n.defaultMedia || e.fallbackMedia, thumbnail: n.thumbnailUrl, name: n.name }, on: { triggerOpenTemplate: function(s) {
7033
+ n.placeholder || (e.canUseTemplate(n) ? e.select({ templateId: n.id }) : a());
7034
+ } }, scopedSlots: e._u([{ key: "badge", fn: function() {
7035
+ return [e.canUseTemplate(n) ? !n.doConsumeDocumentQuota && !n.placeholder ? t("div", { staticClass: "bg-primary-500 border-primary-600 inline-flex h-5 items-center rounded border px-1.5 text-[11px] font-semibold capitalize leading-none text-white shadow-sm" }, [e._v(" " + e._s(e.$t("_common:free")) + " ")]) : e._e() : t("div", { staticClass: "inline-flex h-5 items-center gap-1 rounded border border-gray-300 bg-gray-200 px-1 leading-none text-gray-500/90 shadow-sm" }, [t("CIcon", { attrs: { type: "lock", size: "12", "stroke-width": "2.5" } }), t("div", { staticClass: "text-[11px] font-semibold" }, [e._v("Pro")])], 1)];
7036
+ }, proxy: !0 }], null, !0) }, [n.onModify === "create" && !n.doConsumeDocumentQuota ? t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
7013
7037
  content: e.$t("icon.freeTooltip"),
7014
7038
  placement: "bottom"
7015
7039
  }, expression: `{
7016
7040
  content: $t('icon.freeTooltip'),
7017
7041
  placement: 'bottom'
7018
- }` }], staticStyle: { top: "-8px", right: "-4px" }, attrs: { icon: "info", type: "none", pattern: "tertiary", size: "small" }, nativeOn: { click: function(n) {
7019
- n.stopPropagation();
7020
- } } }) : t("CDropdown", { staticStyle: { top: "-8px", right: "-4px" }, attrs: { "append-to-body": "" }, nativeOn: { click: function(n) {
7021
- n.stopPropagation();
7022
- } } }, [t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("icon.tooltip"), expression: "$t('icon.tooltip')" }], attrs: { slot: "trigger", icon: "more-vertical", type: "none", pattern: "tertiary", size: "small" }, slot: "trigger" }), e.onEditTemplate ? t("CDropdownItem", { attrs: { "icon-left": "template-color" }, on: { click: function(n) {
7023
- return e.onEditTemplate(s.id);
7024
- } } }, [e._v(" " + e._s(e.$t("_common:edit", { thing: e.$t("_common:template") })) + " ")]) : e._e(), t("CDropdownItem", { attrs: { "icon-props": { size: 16 }, "icon-left": "edit" }, on: { click: function(n) {
7025
- return e.openTemplateFormModal({ template: s });
7026
- } } }, [e._v(" " + e._s(e.$t("_common:change", { thing: e.$t("_common:name") })) + " ")]), t("CDropdownItem", { attrs: { separator: "" } }), t("CDropdownItem", { attrs: { "icon-props": { size: 16 }, "icon-left": "link" }, on: { click: function(n) {
7027
- return e.copyToClipboard(s.id);
7028
- } } }, [e._v(" " + e._s(e.$t("_common:share", { thing: e.$t("_common:link") })) + " ")]), t("CDropdownItem", { attrs: { separator: "" } }), t("CDropdownItem", { attrs: { "icon-props": { size: 16, stroke: "hsl(360, 100%, 60%)" }, "icon-left": "trash" }, on: { click: function(n) {
7029
- return e.removeTemplate({ template: s });
7042
+ }` }], staticStyle: { top: "-8px", right: "-4px" }, attrs: { icon: "info", type: "none", pattern: "tertiary", size: "small" }, nativeOn: { click: function(s) {
7043
+ s.stopPropagation();
7044
+ } } }) : t("CDropdown", { staticStyle: { top: "-8px", right: "-4px" }, attrs: { "append-to-body": "" }, nativeOn: { click: function(s) {
7045
+ s.stopPropagation();
7046
+ } }, scopedSlots: e._u([{ key: "trigger", fn: function() {
7047
+ return [t("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("icon.tooltip"), expression: "$t('icon.tooltip')" }], attrs: { icon: "more-vertical", type: "none", pattern: "tertiary", size: "small" } })];
7048
+ }, proxy: !0 }], null, !0) }, [e.onEditTemplate ? t("CDropdownItem", { attrs: { "icon-left": "template-color" }, on: { click: function(s) {
7049
+ return e.onEditTemplate(n.id);
7050
+ } } }, [e._v(" " + e._s(e.$t("_common:edit", { thing: e.$t("_common:template") })) + " ")]) : e._e(), t("CDropdownItem", { attrs: { "icon-props": { size: 16 }, "icon-left": "edit" }, on: { click: function(s) {
7051
+ return e.openTemplateFormModal({ template: n });
7052
+ } } }, [e._v(" " + e._s(e.$t("_common:change", { thing: e.$t("_common:name") })) + " ")]), t("CDropdownItem", { attrs: { separator: "" } }), t("CDropdownItem", { attrs: { "icon-props": { size: 16 }, "icon-left": "link" }, on: { click: function(s) {
7053
+ return e.copyToClipboard(n.id);
7054
+ } } }, [e._v(" " + e._s(e.$t("_common:share", { thing: e.$t("_common:link") })) + " ")]), t("CDropdownItem", { attrs: { separator: "" } }), t("CDropdownItem", { attrs: { "icon-props": { size: 16, stroke: "hsl(360, 100%, 60%)" }, "icon-left": "trash" }, on: { click: function(s) {
7055
+ return e.removeTemplate({ template: n });
7030
7056
  } } }, [e._v(" " + e._s(e.$t("_common:remove")) + " ")])], 1)], 1);
7031
7057
  }), 1)];
7032
7058
  } }]) })], 1), e.showGallery ? [t("GalleryLogic", { attrs: { "fetch-gallery": e.fetchGallery, "use-template": e.select, "show-template-author": e.showGalleryTemplateAuthor, "modal-props": e.galleryModalProps, "gallery-category": e.galleryCategory }, scopedSlots: e._u([{ key: "default", fn: function({
7033
7059
  galleryItems: a,
7034
- categories: s,
7035
- activeCategory: n,
7060
+ categories: n,
7061
+ activeCategory: s,
7036
7062
  selectCategory: o,
7037
7063
  selectGalleryItem: l
7038
7064
  }) {
7039
7065
  return [t("div", { staticStyle: { width: "100%", "padding-bottom": "5em" } }, [t("div", { staticClass: "section-title w-full" }, [t("div", { staticClass: "flex items-center justify-between" }, [t("div", [e._v(e._s(e.$t("gallery")))]), t("CDropdown", { staticStyle: { "margin-left": "calc(0.5 * var(--rem))" }, nativeOn: { click: function(r) {
7040
7066
  r.stopPropagation();
7041
- } } }, [t("CButton", { attrs: { slot: "trigger", size: "small", type: "none", pattern: "secondary", "icon-right": "chevron-down" }, slot: "trigger" }, [e._v(" " + e._s(n ? n.label : "") + " ")]), e._l(s, function(r) {
7042
- return t("CDropdownItem", { key: r.key, attrs: { "icon-right": n && n.key === r.key ? "check" : "" }, on: { click: function(c) {
7067
+ } }, scopedSlots: e._u([{ key: "trigger", fn: function() {
7068
+ return [t("CButton", { attrs: { size: "small", type: "none", pattern: "secondary", "icon-right": "chevron-down" } }, [e._v(" " + e._s(s ? s.label : "") + " ")])];
7069
+ }, proxy: !0 }], null, !0) }, e._l(n, function(r) {
7070
+ return t("CDropdownItem", { key: r.key, attrs: { "icon-right": s && s.key === r.key ? "check" : "" }, on: { click: function(c) {
7043
7071
  return o(r);
7044
7072
  } } }, [e._v(" " + e._s(r.label) + " ")]);
7045
- })], 2)], 1), t("div", { staticClass: "section-subtitle", domProps: { innerHTML: e._s(e.$t("gallerySubTitle")) } })]), t("HorizontalScroll", { staticClass: "template-list" }, e._l(a, function(r) {
7073
+ }), 1)], 1), t("div", { staticClass: "section-subtitle", domProps: { innerHTML: e._s(e.$t("gallerySubTitle")) } })]), t("HorizontalScroll", { staticClass: "template-list" }, e._l(a, function(r) {
7046
7074
  return t("DocumentIcon", { key: r.id, staticClass: "template-item", attrs: { "is-placeholder": r.placeholder, media: { type: "image", resourceUrl: r.backgroundUrl }, name: r.name }, on: { triggerOpenTemplate: function(c) {
7047
7075
  r.placeholder || l(r);
7048
- } } }, [r.product ? t("div", { staticClass: "bg-primary-500 border-primary-700/40 rounded border p-1 text-xs font-semibold leading-none text-white shadow-lg", attrs: { slot: "badge" }, slot: "badge" }, [r.product.isPurchased ? t("CIcon", { attrs: { type: "check", size: "14", "stroke-width": "3" } }) : t("div", { domProps: { textContent: e._s(r.product.price) } })], 1) : e._e()]);
7076
+ } }, scopedSlots: e._u([{ key: "badge", fn: function() {
7077
+ return [r.product ? t("div", { staticClass: "bg-primary-500 border-primary-700/40 rounded border p-1 text-xs font-semibold leading-none text-white shadow-lg" }, [r.product.isPurchased ? t("CIcon", { attrs: { type: "check", size: "14", "stroke-width": "3" } }) : t("div", { domProps: { textContent: e._s(r.product.price) } })], 1) : e._e()];
7078
+ }, proxy: !0 }], null, !0) });
7049
7079
  }), 1)], 1)];
7050
- } }], null, !1, 2475160184) })] : e._e(), t("DocumentRecent", { staticStyle: { width: "100%", "padding-bottom": "5em" }, on: { "use-doc-template": e.select, "save-template": e.openTemplateFormModal } }, [t("div", { staticClass: "section-title", staticStyle: { flex: "1 1 auto", "padding-bottom": "0.5em" } }, [t("div", [e._v(e._s(e.$t("recent")))]), t("div", { staticClass: "section-subtitle" }, [e._v(" " + e._s(e.$t("recentSubTitle")) + " ")])])])], 2)]);
7051
- }, na = [], oa = /* @__PURE__ */ d(
7080
+ } }], 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(
7052
7082
  aa,
7053
- sa,
7054
7083
  na,
7084
+ sa,
7055
7085
  !1,
7056
7086
  null,
7057
- "6422a84b"
7087
+ "3bd7c759"
7058
7088
  );
7059
7089
  const la = oa.exports;
7060
7090
  var ra = He, ca = Ae, da = Pe;
7061
7091
  function pa(i, e, t) {
7062
- for (var a = -1, s = e.length, n = {}; ++a < s; ) {
7092
+ for (var a = -1, n = e.length, s = {}; ++a < n; ) {
7063
7093
  var o = e[a], l = ra(i, o);
7064
- t(l, o) && ca(n, da(o, i), l);
7094
+ t(l, o) && ca(s, da(o, i), l);
7065
7095
  }
7066
- return n;
7096
+ return s;
7067
7097
  }
7068
7098
  var ua = pa, ma = ua, ha = Ee;
7069
7099
  function fa(i, e) {
@@ -7075,7 +7105,7 @@ var ga = fa, Ca = ga, va = tt, ya = va(function(i, e) {
7075
7105
  return i == null ? {} : Ca(i, e);
7076
7106
  }), xa = ya;
7077
7107
  const wa = /* @__PURE__ */ q(xa);
7078
- E.use(nt);
7108
+ E.use(st);
7079
7109
  const ba = {
7080
7110
  name: "DocForm",
7081
7111
  i18nOptions: {
@@ -7164,8 +7194,8 @@ const ba = {
7164
7194
  docById: "documents2/byId"
7165
7195
  }),
7166
7196
  canDoActions() {
7167
- var i, e, t, a, s, n;
7168
- return !!((n = (s = (a = (t = (e = (i = this.document) == null ? void 0 : i._template) == null ? void 0 : e._data) == null ? void 0 : t.views) == null ? void 0 : a.read) == null ? void 0 : s.nodes) != null && n.length);
7197
+ var i, e, t, a, n, s;
7198
+ return !!((s = (n = (a = (t = (e = (i = this.document) == null ? void 0 : i._template) == null ? void 0 : e._data) == null ? void 0 : t.views) == null ? void 0 : a.read) == null ? void 0 : n.nodes) != null && s.length);
7169
7199
  }
7170
7200
  },
7171
7201
  watch: {
@@ -7207,7 +7237,7 @@ const ba = {
7207
7237
  });
7208
7238
  },
7209
7239
  async onTemplateSelect({ templateId: i, documentId: e, formData: t }) {
7210
- var s;
7240
+ var n;
7211
7241
  const a = wa({ ...this.rawDoc }, [
7212
7242
  "__tempId",
7213
7243
  "externalReferences",
@@ -7222,7 +7252,7 @@ const ba = {
7222
7252
  templateId: i,
7223
7253
  formData: t ? Oe(t, a) : null,
7224
7254
  _formData: a
7225
- }), (s = a == null ? void 0 : a.data) != null && s.name && this.setDocValue({ key: "data.name", value: a.data.name }), await this.initDoc(), this.view = "editor";
7255
+ }), (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";
7226
7256
  },
7227
7257
  setDocValue({ key: i, value: e }) {
7228
7258
  return this.setFormValue({ key: i, value: e });
@@ -7240,7 +7270,7 @@ const ba = {
7240
7270
  }), typeof this.closeFunc == "function" && await this.closeFunc(), this.isSavingTemplate = !1;
7241
7271
  },
7242
7272
  async onSaveDocument({ doSend: i = !1 } = {}) {
7243
- var n;
7273
+ var s;
7244
7274
  let e;
7245
7275
  if (typeof this.beforeSave == "function" && (e = await this.beforeSave(this.document)), i && typeof this.beforeSend == "function" && (e = await this.beforeSend(this.document)), e)
7246
7276
  return;
@@ -7248,8 +7278,8 @@ const ba = {
7248
7278
  if (!t)
7249
7279
  return;
7250
7280
  const a = this.docById(t);
7251
- let s;
7252
- i && (s = !!(a != null && a.senderClient) || this.isManualDelivery(a)), s ? (this.document = a, this.view = "postSend") : (n = this.closeFunc) == null || n.call(this);
7281
+ let n;
7282
+ i && (n = !!(a != null && a.senderClient) || this.isManualDelivery(a)), n ? (this.document = a, this.view = "postSend") : (s = this.closeFunc) == null || s.call(this);
7253
7283
  },
7254
7284
  goBack() {
7255
7285
  this.view = "templateSelect", this.setDocValue({ key: "__isNew", value: !0 });
@@ -7262,14 +7292,16 @@ const ba = {
7262
7292
  };
7263
7293
  var ka = function() {
7264
7294
  var e = this, t = e._self._c;
7265
- return t("div", { staticClass: "flex h-full w-full flex-col" }, [e.view === "templateSelect" ? t("div", { staticClass: "flex h-full w-full flex-col" }, [t("div", { staticClass: "relative flex h-16 items-center justify-center border-b border-gray-200" }, [e.closeFunc ? t("CButton", { staticClass: "absolute left-4 top-1/2 -translate-y-1/2", attrs: { icon: "x", circle: "" }, on: { click: e.closeFunc } }) : e._e(), t("div", [e._v(e._s(e.$t("selectNavTitle")))])], 1), t("TemplateSelector", { staticClass: "body-scroll min-h-0", attrs: { "on-use-template": e.onTemplateSelect, "show-gallery": e.feature("templateGallery"), "show-gallery-template-author": !1, "gallery-category": e.galleryCategory, "on-save-template": e.onSaveTemplate, "include-partner-templates": "" } })], 1) : e.view === "editor" ? t("DocumentForm", { attrs: { document: e.document, "set-doc-value": e.setDocValue, "set-form-value": e.setFormValue, "remove-doc-value": e.removeDocValue, "remove-doc-key-value": e.removeDocKeyValue, "on-save-template": e.onSaveTemplate, "on-save-document": e.onSaveDocument, "is-loading": e.isPosting, close: e.closeFunc, "go-back": !e.document.id && e.showBackButton ? e.goBack : null, "can-show-banner": !1 } }, [e.isEditingTemplate ? t("CButton", { staticClass: "d-nav-button position right save-template-button", staticStyle: { "min-width": "6em", "font-size": "16px" }, attrs: { slot: "nav-right-action", loading: e.isSavingTemplate, disabled: !e.canDoActions, "icon-left": "template", type: "secondary", thinner: "", rounded: "" }, on: { click: e.onSaveTemplateClick }, slot: "nav-right-action" }, [e._v(" " + e._s(e.$t("_common:save", { thing: e.$t("_common:template") })) + " ")]) : e._e()], 1) : e.view === "postSend" ? t("PostSend", { attrs: { document: e.document, "on-send-func": e.closeFunc, "on-close-func": e.closeFunc } }) : e._e()], 1);
7295
+ 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
+ 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
+ }, proxy: !0 }]) }) : e.view === "postSend" ? t("PostSend", { attrs: { document: e.document, "on-send-func": e.closeFunc, "on-close-func": e.closeFunc } }) : e._e()], 1);
7266
7298
  }, _a = [], La = /* @__PURE__ */ d(
7267
7299
  ba,
7268
7300
  ka,
7269
7301
  _a,
7270
7302
  !1,
7271
7303
  null,
7272
- "2c3d4461"
7304
+ "297c06c4"
7273
7305
  );
7274
7306
  const ja = La.exports;
7275
7307
  export {