@cling-se/widget 0.13.1 → 0.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/README.md +27 -22
  2. package/dist/{AddClientCallout-fd6dc000.js → AddClientCallout-7LpWNu29.js} +11 -16
  3. package/dist/{AnswerModal-7c83d608.js → AnswerModal-DnTU4eo8.js} +1931 -1948
  4. package/dist/{AttachmentItem-468fd65c.js → AttachmentItem-DcwbrFUh.js} +15 -18
  5. package/dist/{BaseDatePicker-1975be7c.js → BaseDatePicker-BpyeJH3N.js} +139 -142
  6. package/dist/{BaseInput-2ca68242.js → BaseInput-DJreiE5M.js} +77 -56
  7. package/dist/{BaseUpload-a37ee3a3.js → BaseUpload-iosxX2-N.js} +208 -212
  8. package/dist/{BlockMedia-9fa610ce.js → BlockMedia-DnbdVEZz.js} +6 -8
  9. package/dist/{CCallout-4c253200.js → CCallout-CgviPbdr.js} +26 -16
  10. package/dist/{CDropdownItem-7e71da85.js → CDropdownItem-CTJ55d4m.js} +51 -50
  11. package/dist/{CField-823448be.js → CField-FGP7ehRq.js} +75 -58
  12. package/dist/{CPhoneFormat-54baa501.js → CPhoneFormat-8u5dmTPd.js} +5 -7
  13. package/dist/{CSlider.vue_vue_type_style_index_0_lang-ceb19661.js → CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-Dc_pbPEA.js} +6 -8
  14. package/dist/{ClientAutocomplete-186cc118.js → ClientAutocomplete-hcl0bJxO.js} +11 -13
  15. package/dist/{ClientModal-c5ee3885.js → ClientModal-B8PkUqY2.js} +25 -32
  16. package/dist/{ColorPicker-65a47379.js → ColorPicker-6AIHrfJ5.js} +5 -7
  17. package/dist/{CompanyModal-564e2b35.js → CompanyModal-H4hHfy7Y.js} +28 -30
  18. package/dist/{ContentWrapper-ac56e749.js → ContentWrapper-CHZtfhFI.js} +25 -43
  19. package/dist/{CoverBlockSettings-8949a330.js → CoverBlockSettings-etwL5N5l.js} +20 -31
  20. package/dist/{DocAnswer-2c0cb58f.js → DocAnswer-Udn1ItYd.js} +5 -12
  21. package/dist/{DocDetails-6522bb1b.js → DocDetails-BQz-is7P.js} +47 -59
  22. package/dist/{DocForm-983d41f5.js → DocForm-Cvuxr89v.js} +4869 -4944
  23. package/dist/{DocFormSend-787ce614.js → DocFormSend-Bo6YPSMr.js} +15 -33
  24. package/dist/DocLinks-DlWyanFQ.js +38 -0
  25. package/dist/{DocModalBase-60c69c7f.js → DocModalBase-BnuOPozg.js} +8 -10
  26. package/dist/{DocPrint-78c501ca.js → DocPrint-Uw8zz2tr.js} +6 -10
  27. package/dist/{DocReceipt-ac44b93f.js → DocReceipt-DsRzRjD8.js} +11 -15
  28. package/dist/{DocSendReminder-6cf2424c.js → DocSendReminder-BEEEh-L9.js} +2 -6
  29. package/dist/{DocTextEditor-81f63135.js → DocTextEditor-C-qeLSQa.js} +2509 -2529
  30. package/dist/{DocTimeline-35106a94.js → DocTimeline-Bz29bHJu.js} +26 -37
  31. package/dist/{DocumentClient-eda56a3c.js → DocumentClient-1O7wxh-X.js} +15 -22
  32. package/dist/{DocumentLayout-4005baa4.js → DocumentLayout-BrN5peVY.js} +4510 -4527
  33. package/dist/{DocumentLogotype-0d7d5080.js → DocumentLogotype-Bbas4MsY.js} +20 -22
  34. package/dist/DocumentVoided-Dy-pp_ng.js +25 -0
  35. package/dist/{EmbedInput-8c301d27.js → EmbedInput-bXXwMP4u.js} +9 -12
  36. package/dist/{EmbedSettings-05ab2762.js → EmbedSettings-BA2THNrd.js} +6 -9
  37. package/dist/ErrorCallout-Dvy9895L.js +28 -0
  38. package/dist/{FilePreviewModal-743fe489.js → FilePreviewModal-r84Ah3lE.js} +8 -14
  39. package/dist/{Flag-a6b545e0.js → Flag-CDN9A_59.js} +18 -20
  40. package/dist/{HeaderSettings-b739ddbb.js → HeaderSettings-DoDFhLcR.js} +34 -49
  41. package/dist/{ImageSelectModal-b626ef57.js → ImageSelectModal-D6ifkvIw.js} +12 -20
  42. package/dist/{ImageUploadWrapper-be047810.js → ImageUploadWrapper-K0-MmL-L.js} +356 -384
  43. package/dist/{Index-071b97c8.js → Index-3p6X7Ln-.js} +24 -26
  44. package/dist/{Index-c049a6e2.js → Index-B26J4tXQ.js} +7 -9
  45. package/dist/{Index-8f237754.js → Index-B6gB5CD3.js} +6 -8
  46. package/dist/{Index-b56a2d94.js → Index-B6u3OUGH.js} +20 -23
  47. package/dist/{Index-ecbffb52.js → Index-BN64idjX.js} +18 -31
  48. package/dist/{Index-a52df5e2.js → Index-BNGaREiU.js} +14 -21
  49. package/dist/{Index-4298f3e2.js → Index-BNeg0lcx.js} +13 -15
  50. package/dist/{Index-56e4127a.js → Index-BQVjSt_5.js} +29 -29
  51. package/dist/Index-BVNgUe07.js +21 -0
  52. package/dist/{Index-3f02e8ca.js → Index-Be-J2RvQ.js} +8 -11
  53. package/dist/{Index-848bb05c.js → Index-Btlub0dK.js} +11 -13
  54. package/dist/{Index-4f119d80.js → Index-BtzGGZEN.js} +459 -510
  55. package/dist/{Index-8ea1a895.js → Index-ByCpvqCC.js} +16 -21
  56. package/dist/{Index-5bf8b9b7.js → Index-CSg7HLqX.js} +8 -10
  57. package/dist/{Index-54f457ee.js → Index-CUZJomAi.js} +10 -12
  58. package/dist/{Index-63aea2b8.js → Index-Cj_3udAp.js} +12 -21
  59. package/dist/{Index-6b66b9ff.js → Index-CnOdi4ux.js} +4 -6
  60. package/dist/{Index-8e82da74.js → Index-DT9AWIQ2.js} +12 -15
  61. package/dist/Index-DWHl_jys.js +24 -0
  62. package/dist/{Index-fe0e805b.js → Index-Di3ibm8r.js} +51 -58
  63. package/dist/Index-Dk-kPbWy.js +52 -0
  64. package/dist/Index-Dl87oWQa.js +49 -0
  65. package/dist/{Index-a3920b7b.js → Index-DnDY3FUU.js} +9 -11
  66. package/dist/{Index-8ebe3371.js → Index-DoKh3I_O.js} +19 -26
  67. package/dist/{Index-c349151b.js → Index-DvA5sZ1U.js} +7 -9
  68. package/dist/{Index-01224b38.js → Index-DwlzPadK.js} +233 -273
  69. package/dist/{Index-b2de3af8.js → Index-ID37TIgR.js} +2 -4
  70. package/dist/Index-TPRXPN4a.js +26 -0
  71. package/dist/{Index-8cfeac73.js → Index-YdyeCcFX.js} +80 -90
  72. package/dist/{Index-97c18be1.js → Index-b0dDsObZ.js} +5 -9
  73. package/dist/{Index-caebb616.js → Index-bIYFzizT.js} +4 -6
  74. package/dist/{Index-4b09d0fa.js → Index-d5iMi4y5.js} +116 -118
  75. package/dist/{Index-ea1e223d.js → Index-oYQ9EfP9.js} +16 -18
  76. package/dist/{Index-f1bf6520.js → Index-phsroK51.js} +6 -8
  77. package/dist/{InputToggleRow-f86fdf91.js → InputToggleRow-ClHkgn7s.js} +3 -5
  78. package/dist/{ManualPopover-d7c2a780.js → ManualPopover-DrhgZvGC.js} +1 -3
  79. package/dist/{MediaWrapper-2381bc95.js → MediaWrapper-BxNEJOT7.js} +3 -6
  80. package/dist/{NotBindingText-a9eae0b2.js → NotBindingText-BhKMdYBN.js} +5 -7
  81. package/dist/{PackageGroup-95d99d03.js → PackageGroup--pDNkIMj.js} +35 -59
  82. package/dist/{PdfTerms-4a6d6067.js → PdfTerms-BL34ex7f.js} +11 -18
  83. package/dist/{PdfViewer-8d7f2143.js → PdfViewer-CPSINxc8.js} +25 -29
  84. package/dist/{PlainHtml-9d3f71d6.js → PlainHtml-Dc76U4EV.js} +5 -7
  85. package/dist/{PriceHeader-f2cb6529.js → PriceHeader-CEGF-DO3.js} +113 -130
  86. package/dist/SearchApi-D4yY2KZj.js +161 -0
  87. package/dist/{Setup-74c47337.js → Setup-BJIY_mWN.js} +9 -11
  88. package/dist/{TermsSettings-0c5a6cad.js → TermsSettings-DM4pvL-n.js} +6 -12
  89. package/dist/{ThemeColorRow-bbf4f527.js → ThemeColorRow-D7TCU3ap.js} +8 -10
  90. package/dist/{ToggleBinding-50af6f0f.js → ToggleBinding-CSgFUF6o.js} +7 -9
  91. package/dist/{UploadModal-d2757015.js → UploadModal-Cz7o7DeT.js} +16 -19
  92. package/dist/{VideoPlayerInput-cb6c91e8.js → VideoPlayerInput-Db0RRtb5.js} +6 -8
  93. package/dist/{VideoPlayerSettings-bff30628.js → VideoPlayerSettings-BgbNuWbP.js} +7 -11
  94. package/dist/{VideoSelectModal-9ec9ecfc.js → VideoSelectModal-BIKeCzUZ.js} +20 -28
  95. package/dist/{answerDocumentMixin-9368852c.js → answerDocumentMixin-Bqg9Of1S.js} +5 -5
  96. package/dist/{debounce-f8aeabc5.js → debounce-DceKdgy2.js} +3 -3
  97. package/dist/{dom-962579a6.js → dom-CPYqHOIw.js} +2 -2
  98. package/dist/{focusDrawerMixin-e2312605.js → focusDrawerMixin-Cx41U1xU.js} +1 -1
  99. package/dist/{formComponentsInstall-6894b988.js → formComponentsInstall-CWgaR4yB.js} +1198 -1171
  100. package/dist/{formDrawerState-b99be3a7.js → formDrawerState-DLCSwrgc.js} +1 -1
  101. package/dist/{formValidationMixin-a9a35060.js → formValidationMixin-CsLym0iM.js} +2 -2
  102. package/dist/{index-b2348f09.js → index-0kj8-T7-.js} +39 -44
  103. package/dist/{index-9d1ade78.js → index-4MqvoLi4.js} +3 -5
  104. package/dist/{index-96e9db00.js → index-By9c7IPL.js} +41 -59
  105. package/dist/{index-d35e9363.js → index-C16hoSRM.js} +5 -3
  106. package/dist/{index-c9186403.js → index-C6C4uskP.js} +14 -16
  107. package/dist/{IsPremiumPreStep-27645ee9.js → index-Cp7dG8Zm.js} +531 -566
  108. package/dist/index.es.js +3 -3
  109. package/dist/index.umd.js +1019 -1028
  110. package/dist/{main-b9ea9725.js → main-DBw231uy.js} +21733 -21943
  111. package/dist/{mapFormMixin-de4a37c3.js → mapFormMixin-BrtcYsT9.js} +1 -2
  112. package/dist/{vuedraggable.umd-1b113186.js → omit-DQqb9hkZ.js} +143 -133
  113. package/dist/{publicSenderState-a2c0cc9d.js → publicSenderState-BysO0Mzz.js} +1 -1
  114. package/dist/{splitpanes-ba7897bf.js → splitpanes-BHUVsCZF.js} +38 -42
  115. package/dist/style.css +2 -2
  116. package/dist/{throttle-53a6c735.js → throttle-DKrISvLg.js} +2 -2
  117. package/dist/{tinycolor-071e269c.js → tinycolor-Be3bF6zy.js} +6 -6
  118. package/dist/{tippy.esm-1b89bf69.js → tippy.esm-yjYH8SnL.js} +226 -232
  119. package/dist/{utils-44a35f52.js → utils-DP30AdJH.js} +1 -1
  120. package/package.json +2 -2
  121. package/dist/DocLinks-d6b1b080.js +0 -41
  122. package/dist/DocumentVoided-fe1bd505.js +0 -27
  123. package/dist/ErrorCallout-87033b39.js +0 -30
  124. package/dist/Index-6bfbbbd2.js +0 -61
  125. package/dist/Index-6c21af02.js +0 -28
  126. package/dist/Index-cbd0f3f6.js +0 -23
  127. package/dist/Index-f006e9fe.js +0 -26
  128. package/dist/Index-fc0516f6.js +0 -54
  129. package/dist/SearchApi-2a59cdc7.js +0 -167
  130. package/dist/index-3671e1b7.js +0 -14
  131. package/dist/index-805c56e4.js +0 -4
  132. /package/dist/{CField.vue_vue_type_style_index_0_lang-4ed993c7.js → CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js} +0 -0
  133. /package/dist/{anime.es-e284c852.js → anime.es-BrPTThYb.js} +0 -0
  134. /package/dist/{color-c1606adc.js → color-TdtKxwVa.js} +0 -0
  135. /package/dist/{i18nMessages-6b279c15.js → i18nMessages-Chz_lxGG.js} +0 -0
  136. /package/dist/{vuex.esm-4a0fff7c.js → vuex.esm-DKGl8mcw.js} +0 -0
@@ -1,118 +1,14 @@
1
- import { m as c } from "./mapFormMixin-de4a37c3.js";
2
- import { B as l } from "./BlockMedia-9fa610ce.js";
3
- import { n, b as r, v as d, a7 as m } from "./main-b9ea9725.js";
4
- import { T as u } from "./DocTextEditor-81f63135.js";
5
- import { i as p } from "./i18nMessages-6b279c15.js";
6
- import { t as _ } from "./tinycolor-071e269c.js";
7
- import { s as y } from "./dom-962579a6.js";
8
- import "./color-c1606adc.js";
9
- import "./tippy.esm-1b89bf69.js";
10
- import "./ColorPicker-65a47379.js";
11
- import "./DocumentLayout-4005baa4.js";
12
- import "./debounce-f8aeabc5.js";
13
- import "./CDropdownItem-7e71da85.js";
14
- import "./CSlider.vue_vue_type_style_index_0_lang-ceb19661.js";
15
- import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
16
- import "./ManualPopover-d7c2a780.js";
17
- const h = {
18
- name: "SummaryTop",
19
- i18nOptions: {
20
- namespaces: "summaryTop",
21
- messages: p
22
- },
23
- components: {
24
- TextEditor: u,
25
- DocumentLogotype: () => import("./DocumentLogotype-0d7d5080.js")
26
- },
27
- inject: ["parentSize"],
28
- mixins: [c([])],
29
- props: {
30
- showLogo: {
31
- type: Boolean,
32
- default: !0
33
- },
34
- logotype: {
35
- type: String,
36
- default: null
37
- },
38
- companyLogotype: {
39
- type: String,
40
- default: null
41
- },
42
- senderName: {
43
- type: String,
44
- default: null
45
- },
46
- docName: {
47
- type: String,
48
- default: null
49
- },
50
- docType: {
51
- type: String,
52
- required: !0
53
- },
54
- docNumber: {
55
- type: [Number, String],
56
- default: null
57
- },
58
- sentAt: {
59
- type: [String, Number],
60
- default: null
61
- // required: true,
62
- },
63
- expiresAt: {
64
- type: String,
65
- default: null
66
- },
67
- estimatedTime: {
68
- type: String,
69
- default: null
70
- },
71
- validator: {
72
- type: Object,
73
- default: () => ({})
74
- },
75
- hasHover: {
76
- type: Boolean,
77
- default: !1
78
- }
79
- },
80
- computed: {
81
- logotypeListeners() {
82
- return {
83
- ...this.$listeners,
84
- input: (i) => this.$emit("update:logotype", i)
85
- };
86
- }
87
- }
88
- };
89
- var v = function() {
90
- var t = this, e = t._self._c;
91
- return e("section", { staticClass: "summary-top flex w-full justify-center" }, [e("div", { staticClass: "doc-summary-top-wrapper" }, [e("div", { staticClass: "doc-summary-top-wrapper__background" }), e("div", { staticClass: "flex w-full justify-between", staticStyle: { "margin-bottom": "calc(2.5 * var(--rem))" } }, [t.showLogo && (t.logotype || t.companyLogotype) || t.canEdit ? e("DocumentLogotype", t._g({ attrs: { value: t.logotype, "show-logo": t.showLogo, "company-logotype": t.companyLogotype, "has-hover": t.hasHover } }, t.logotypeListeners)) : e("div", { staticClass: "company-name" }, [t._v(" " + t._s(t.senderName) + " ")]), e("div", { staticClass: "top-right-text-wrapper" }, [t.sentAt ? e("div", [t._v(t._s(t.$formatDate(t.sentAt)))]) : t._e(), t.docNumber ? e("div", [t._v(" #" + t._s(t.docNumber) + " ")]) : t._e()])], 1), e("div", { staticClass: "title-text" }, [t.canEdit ? e("TextEditor", { ref: "editor", staticClass: "no-drag", staticStyle: { "will-change": "opacity" }, attrs: { value: t.docName, placeholder: t.$t("name.placeholder"), extensions: {
92
- bulletList: !1,
93
- heading: [1, 2, 3],
94
- bold: !1,
95
- link: !1,
96
- underline: !1,
97
- blockquote: !0,
98
- table: !1
99
- }, unstyled: "", static: "" }, on: { input: function(s) {
100
- return t.$emit("update:doc-name", s);
101
- } } }) : e("div", { staticClass: "quill-custom", domProps: { innerHTML: t._s(t.docName) } })], 1), e("div", { staticClass: "flex w-full justify-between" }, [t.expiresAt ? e("div", { staticClass: "data-group" }, [e("div", { staticClass: "label-text caps" }, [t._v(t._s(t._document.$t("replyBy")))]), e("div", { staticClass: "data-text" }, [t._v(t._s(t.$formatDate(t.expiresAt)))])]) : t._e(), t.docType !== "document" ? e("div", { staticClass: "data-group" }, [e("div", { staticClass: "label-text caps" }, [t._v(" " + t._s(t._document.$t("document").capitalize()) + " ")]), e("div", { staticClass: "data-text" }, [t._v(" " + t._s(t._document.$t(`series.${t.docType}`).capitalize()) + " ")])]) : t._e(), t.parentSize.width >= 576 ? [t.estimatedTime ? e("div", { staticClass: "data-group" }, [e("div", { staticClass: "label-text caps" }, [t._v(t._s(t.$t("estimatedTime")))]), e("div", { staticClass: "data-text" }, [t._v(" " + t._s(t._document.$t("approx")) + " " + t._s(t.estimatedTime) + " ")])]) : t._e()] : t._e()], 2)])]);
102
- }, g = [], f = /* @__PURE__ */ n(
103
- h,
104
- v,
105
- g,
106
- !1,
107
- null,
108
- "4e2c274a",
109
- null,
110
- null
111
- );
112
- const S = f.exports;
113
- const b = {
1
+ import { m as c } from "./mapFormMixin-BrtcYsT9.js";
2
+ import { B as l } from "./BlockMedia-DnbdVEZz.js";
3
+ import { b as r, u as d, n, Z as m } from "./main-DBw231uy.js";
4
+ import { t as u } from "./tinycolor-Be3bF6zy.js";
5
+ import { s as p } from "./dom-CPYqHOIw.js";
6
+ import { T as y } from "./DocTextEditor-C-qeLSQa.js";
7
+ import { i as h } from "./i18nMessages-Chz_lxGG.js";
8
+ const _ = {
114
9
  name: "SummaryBottom",
115
10
  mixins: [c([])],
11
+ inject: ["parentSize"],
116
12
  props: {
117
13
  base: {
118
14
  type: Object,
@@ -135,11 +31,10 @@ const b = {
135
31
  required: !0
136
32
  }
137
33
  },
138
- inject: ["parentSize"],
139
34
  data() {
140
35
  return {
141
36
  get: r,
142
- tinycolor: _
37
+ tinycolor: u
143
38
  };
144
39
  },
145
40
  computed: {
@@ -206,11 +101,11 @@ const b = {
206
101
  priceFormat: d,
207
102
  scrollToPricing() {
208
103
  const i = document.querySelector("#price");
209
- i && y(i);
104
+ i && p(i);
210
105
  }
211
106
  }
212
107
  };
213
- var x = function() {
108
+ var v = function() {
214
109
  var t = this, e = t._self._c;
215
110
  return e("section", { staticClass: "summary-bottom-root" }, [e("div", { staticClass: "summary-bottom", style: [
216
111
  {
@@ -227,22 +122,112 @@ var x = function() {
227
122
  sm: t.isSmallScreen
228
123
  }
229
124
  ], staticStyle: { position: "relative" } }, [e("div", { staticClass: "flex w-full flex-col", class: [{ "fixed-price-type-string": t.isSmallScreen }], staticStyle: { "background-color": "hsl(224, 57%, 39%)" }, style: [t.backgroundSecondary] }, [e("div", { staticClass: "price-type-string data-text" }, [t._v(" " + t._s(t.priceTypeString) + " ")]), t.isSmallScreen ? t._e() : e("div", { staticClass: "price-deduction-text" }, [t._v(" " + t._s(t.priceDeductionVatString) + " ")])]), t.priceType.some((s) => ["openAcc", "openAccMaxPrice"].includes(s)) ? e("div", { staticClass: "open-acc-wrapper" }, [t.openAccMaxPrice ? e("div", { staticClass: "open-acc-item" }, [e("div", [t._v(" " + t._s(t._document.$t("price.maxPrice").capitalize()) + " " + t._s(t._document.$t("vat.exVat", { thing: t._document.$t(`vat.${t.vatType}`) })) + ": ")]), e("div", [t._v(t._s(t.priceFormat(t.openAccMaxPrice, { currency: t.currency })))])]) : t._e(), e("div", { staticClass: "open-acc-link" }, [t._v(" " + t._s(t._document.$t("see").capitalize()) + " "), e("span", { staticStyle: { color: "inherit", cursor: "pointer" }, on: { click: t.scrollToPricing } }, [e("u", [t._v(t._s(t._document.$t("price.price_plural")))])]), t._v(" " + t._s(t._document.$t("summaryBottom.forDetails")) + " ")])]) : e("div", { staticClass: "flex w-full items-center", class: [{ "justify-end": !t.isSmallScreen }] }, [e("div", { staticClass: "data-text", staticStyle: { "font-size": "calc(2 * var(--rem))", "font-weight": "900", "letter-spacing": "1px", "line-height": "1", "padding-bottom": "calc(0.3 * var(--rem))" } }, [t._v(" " + t._s(t.priceType.includes("approx") ? t._document.$t("approx").capitalize() : "") + " " + t._s(t.priceFormat(t.priceTotal, { currency: t.currency, decimals: 2, hideZeroDecimals: !0 })) + " ")])]), t.isSmallScreen ? e("div", { staticClass: "label-text caps price-deduction-text", staticStyle: { "margin-top": "4px" } }, [t._v(" " + t._s(t.priceDeductionVatString) + " ")]) : t._e()])])]);
125
+ }, g = [], f = /* @__PURE__ */ n(
126
+ _,
127
+ v,
128
+ g,
129
+ !1,
130
+ null,
131
+ "625c1189"
132
+ );
133
+ const S = f.exports, x = {
134
+ name: "SummaryTop",
135
+ i18nOptions: {
136
+ namespaces: "summaryTop",
137
+ messages: h
138
+ },
139
+ components: {
140
+ TextEditor: y,
141
+ DocumentLogotype: () => import("./DocumentLogotype-Bbas4MsY.js")
142
+ },
143
+ mixins: [c([])],
144
+ inject: ["parentSize"],
145
+ props: {
146
+ showLogo: {
147
+ type: Boolean,
148
+ default: !0
149
+ },
150
+ logotype: {
151
+ type: String,
152
+ default: null
153
+ },
154
+ companyLogotype: {
155
+ type: String,
156
+ default: null
157
+ },
158
+ senderName: {
159
+ type: String,
160
+ default: null
161
+ },
162
+ docName: {
163
+ type: String,
164
+ default: null
165
+ },
166
+ docType: {
167
+ type: String,
168
+ required: !0
169
+ },
170
+ docNumber: {
171
+ type: [Number, String],
172
+ default: null
173
+ },
174
+ sentAt: {
175
+ type: [String, Number],
176
+ default: null
177
+ // required: true,
178
+ },
179
+ expiresAt: {
180
+ type: String,
181
+ default: null
182
+ },
183
+ estimatedTime: {
184
+ type: String,
185
+ default: null
186
+ },
187
+ validator: {
188
+ type: Object,
189
+ default: () => ({})
190
+ },
191
+ hasHover: {
192
+ type: Boolean,
193
+ default: !1
194
+ }
195
+ },
196
+ computed: {
197
+ logotypeListeners() {
198
+ return {
199
+ ...this.$listeners,
200
+ input: (i) => this.$emit("update:logotype", i)
201
+ };
202
+ }
203
+ }
204
+ };
205
+ var b = function() {
206
+ var t = this, e = t._self._c;
207
+ return e("section", { staticClass: "summary-top flex w-full justify-center" }, [e("div", { staticClass: "doc-summary-top-wrapper" }, [e("div", { staticClass: "doc-summary-top-wrapper__background" }), e("div", { staticClass: "flex w-full justify-between", staticStyle: { "margin-bottom": "calc(2.5 * var(--rem))" } }, [t.showLogo && (t.logotype || t.companyLogotype) || t.canEdit ? e("DocumentLogotype", t._g({ attrs: { value: t.logotype, "show-logo": t.showLogo, "company-logotype": t.companyLogotype, "has-hover": t.hasHover } }, t.logotypeListeners)) : e("div", { staticClass: "company-name" }, [t._v(" " + t._s(t.senderName) + " ")]), e("div", { staticClass: "top-right-text-wrapper" }, [t.sentAt ? e("div", [t._v(t._s(t.$formatDate(t.sentAt)))]) : t._e(), t.docNumber ? e("div", [t._v(" #" + t._s(t.docNumber) + " ")]) : t._e()])], 1), e("div", { staticClass: "title-text" }, [t.canEdit ? e("TextEditor", { ref: "editor", staticClass: "no-drag", staticStyle: { "will-change": "opacity" }, attrs: { value: t.docName, placeholder: t.$t("name.placeholder"), extensions: {
208
+ bulletList: !1,
209
+ heading: [1, 2, 3],
210
+ bold: !1,
211
+ link: !1,
212
+ underline: !1,
213
+ blockquote: !0,
214
+ table: !1
215
+ }, unstyled: "", static: "" }, on: { input: function(s) {
216
+ return t.$emit("update:doc-name", s);
217
+ } } }) : e("div", { staticClass: "quill-custom", domProps: { innerHTML: t._s(t.docName) } })], 1), e("div", { staticClass: "flex w-full justify-between" }, [t.expiresAt ? e("div", { staticClass: "data-group" }, [e("div", { staticClass: "label-text caps" }, [t._v(t._s(t._document.$t("replyBy")))]), e("div", { staticClass: "data-text" }, [t._v(t._s(t.$formatDate(t.expiresAt)))])]) : t._e(), t.docType !== "document" ? e("div", { staticClass: "data-group" }, [e("div", { staticClass: "label-text caps" }, [t._v(" " + t._s(t._document.$t("document").capitalize()) + " ")]), e("div", { staticClass: "data-text" }, [t._v(" " + t._s(t._document.$t(`series.${t.docType}`).capitalize()) + " ")])]) : t._e(), t.parentSize.width >= 576 ? [t.estimatedTime ? e("div", { staticClass: "data-group" }, [e("div", { staticClass: "label-text caps" }, [t._v(t._s(t.$t("estimatedTime")))]), e("div", { staticClass: "data-text" }, [t._v(" " + t._s(t._document.$t("approx")) + " " + t._s(t.estimatedTime) + " ")])]) : t._e()] : t._e()], 2)])]);
230
218
  }, C = [], $ = /* @__PURE__ */ n(
231
- b,
232
219
  x,
220
+ b,
233
221
  C,
234
222
  !1,
235
223
  null,
236
- "5da858b8",
237
- null,
238
- null
224
+ "29bec6e5"
239
225
  );
240
- const w = $.exports;
241
- const T = {
226
+ const w = $.exports, T = {
242
227
  name: "PriceHeader",
243
228
  components: {
244
- SummaryTop: S,
245
- SummaryBottom: w,
229
+ SummaryTop: w,
230
+ SummaryBottom: S,
246
231
  BlockMedia: l
247
232
  },
248
233
  mixins: [
@@ -346,11 +331,9 @@ var k = function() {
346
331
  A,
347
332
  !1,
348
333
  null,
349
- "7bb7b998",
350
- null,
351
- null
334
+ "e3b73dd6"
352
335
  );
353
- const Z = B.exports;
336
+ const D = B.exports;
354
337
  export {
355
- Z as default
338
+ D as default
356
339
  };
@@ -0,0 +1,161 @@
1
+ import { g as u, p as h, i as f, j as d, n as m } from "./main-DBw231uy.js";
2
+ import { d as p } from "./debounce-DceKdgy2.js";
3
+ import { m as y, a as g } from "./vuex.esm-DKGl8mcw.js";
4
+ const A = {
5
+ name: "SearchApi",
6
+ props: {
7
+ customSearch: {
8
+ type: Object,
9
+ default: () => ({})
10
+ }
11
+ },
12
+ data() {
13
+ return {
14
+ defaultSearch: {
15
+ project: !0,
16
+ user: !0,
17
+ endCustomer: !1,
18
+ article: !1,
19
+ extensionArticle: !1,
20
+ // Articles in any authenticated CRM
21
+ document: !1
22
+ },
23
+ hasLoadedUsers: !1,
24
+ isLoading: !1,
25
+ emptyQuery: null,
26
+ // String to track last query that was empty, if a new query starts with this string we do not have to search again
27
+ hasSearchedAll: !1
28
+ // Helper to keep track when some search types have not yet searched due min query length
29
+ };
30
+ },
31
+ computed: {
32
+ ...y({
33
+ allUsers: "companyUsers/all",
34
+ allAuthenticatedCRMs: "settings/allAuthenticatedCRMs",
35
+ can: "application/can"
36
+ }),
37
+ typesToFetch() {
38
+ return Object.keys(this.customSearch).length ? Object.keys(this.customSearch).filter(
39
+ (t) => this.customSearch[t]
40
+ ) : Object.keys(this.defaultSearch).filter(
41
+ (t) => this.defaultSearch[t]
42
+ );
43
+ }
44
+ },
45
+ methods: {
46
+ ...g({
47
+ loadUsers: u.LOAD_COMPANY_USERS
48
+ }),
49
+ canFetchType(t) {
50
+ return t === "endCustomer" ? this.can("endCustomers", "read") : t === "user" ? this.can("users", "modify") : !0;
51
+ },
52
+ async fetch({ query: t, start: s = null, end: a = null }) {
53
+ const e = this.typesToFetch.reduce(
54
+ (n, c) => ({ ...n, [c]: [] }),
55
+ {}
56
+ ), r = t.toLowerCase();
57
+ if (this.emptyQuery && r && r.startsWith(this.emptyQuery) || (this.emptyQuery = null, this.hasSearchedAll = !0, !r))
58
+ return e;
59
+ try {
60
+ const n = [], c = Object.keys(this.defaultSearch);
61
+ (this.typesToFetch || []).forEach((l) => {
62
+ c.includes(l) && n.push(
63
+ (async () => {
64
+ let o = [];
65
+ l === "document" ? o = await this.fetchDocuments(r, s, a) : l === "user" ? o = await this.fetchUsers(r, s, a) : l === "extensionArticle" ? o = await this.fetchExtensionArticles(r, s, a) : o = await this.fetchType(l, r, s, a), e[l] = o;
66
+ })()
67
+ );
68
+ }), await Promise.all(n);
69
+ } finally {
70
+ this.isLoading = !1;
71
+ }
72
+ return Object.keys(e).every(
73
+ (n) => e[n].length === 0
74
+ ) && this.hasSearchedAll && (this.emptyQuery = r), e;
75
+ },
76
+ async fetchType(t, s, a, e) {
77
+ if (!this.canFetchType(t))
78
+ return [];
79
+ const { data: r } = await h("search", {
80
+ type: t,
81
+ query: s,
82
+ ...a !== null && e !== null && { start: a, end: e }
83
+ });
84
+ return r;
85
+ },
86
+ async fetchUsers(t, s, a) {
87
+ if (!this.canFetchType("user"))
88
+ return [];
89
+ this.hasLoadedUsers || (await this.loadUsers(), this.hasLoadedUsers = !0);
90
+ const r = Object.values(this.allUsers).filter((i) => !!(i.fullName && i.fullName.toLowerCase().includes(t) || i.email && i.email.toLowerCase().includes(t)));
91
+ return s !== null && a !== null ? r.slice(s, a) : r;
92
+ },
93
+ async fetchDocuments(t, s, a) {
94
+ const e = t.replace(/[-[\]{}()*+?.,\\/^$|#]/g, "\\$&"), r = {
95
+ $or: [
96
+ { "data.name": { $regex: e, $options: "i" } },
97
+ { "docNumber.value": { $regex: e, $options: "i" } },
98
+ {
99
+ clients: {
100
+ $elemMatch: {
101
+ $or: ["name", "email", "socialNo", "orgNo"].map((c) => ({
102
+ [c]: { $regex: e, $options: "i" }
103
+ }))
104
+ }
105
+ }
106
+ }
107
+ ]
108
+ }, { data: i } = await f("/document", {
109
+ params: {
110
+ lean: !0,
111
+ filter: encodeURIComponent(JSON.stringify(r)),
112
+ fields: "clients,data.name,projectId,docNumber,createdAt",
113
+ ...s !== null && a !== null && { skip: s, limit: a - s }
114
+ }
115
+ }), { items: n = [] } = i || {};
116
+ return n;
117
+ },
118
+ async fetchExtensionArticles(t) {
119
+ const s = [];
120
+ return await Promise.all(
121
+ this.allAuthenticatedCRMs.map(async (a) => {
122
+ try {
123
+ if (a === "pipedrive" && t.length < 2) {
124
+ this.hasSearchedAll = !1;
125
+ return;
126
+ }
127
+ const { data: e } = await d.search(a, {
128
+ query: t,
129
+ type: "article"
130
+ });
131
+ e && Array.isArray(e) && s.push(...e);
132
+ } catch {
133
+ }
134
+ })
135
+ ), s;
136
+ },
137
+ triggerSearch: p(async function({ q: s, cb: a, start: e, end: r }) {
138
+ this.isLoading = !0;
139
+ const i = await this.fetch({ query: s, start: e, end: r });
140
+ return this.isLoading = !1, a(i);
141
+ }, 500)
142
+ },
143
+ render() {
144
+ return this.$scopedSlots.default({
145
+ fetch: ({ q: t, cb: s, start: a = null, end: e = null }) => (this.isLoading = !0, this.triggerSearch({ q: t, cb: s, start: a, end: e })),
146
+ isLoading: this.isLoading
147
+ });
148
+ }
149
+ }, S = null, w = null;
150
+ var L = /* @__PURE__ */ m(
151
+ A,
152
+ S,
153
+ w,
154
+ !1,
155
+ null,
156
+ null
157
+ );
158
+ const $ = L.exports;
159
+ export {
160
+ $ as S
161
+ };
@@ -1,5 +1,5 @@
1
- import { n as s, c as o, e as c } from "./main-b9ea9725.js";
2
- const l = {
1
+ import { n as s, c as o, e as c } from "./main-DBw231uy.js";
2
+ const i = {
3
3
  name: "Setup",
4
4
  props: {
5
5
  partnerName: {
@@ -27,23 +27,21 @@ const l = {
27
27
  window.removeEventListener("message", this.onReceiveMessage);
28
28
  },
29
29
  methods: {
30
- onReceiveMessage({ data: e, origin: n, source: r }) {
30
+ onReceiveMessage({ data: e, origin: r, source: n }) {
31
31
  var t;
32
- n === this.baseAppUrl && ((e == null ? void 0 : e.type) === "channelPartnerConnect" && (r == null || r.postMessage({ type: "readyForPartnerConnect" }, n)), (e == null ? void 0 : e.type) === "partnerUserConnect" && (c.trigger("account:userConnect", e == null ? void 0 : e.value), (t = this.closeFunc) == null || t.call(this)));
32
+ r === this.baseAppUrl && ((e == null ? void 0 : e.type) === "channelPartnerConnect" && (n == null || n.postMessage({ type: "readyForPartnerConnect" }, r)), (e == null ? void 0 : e.type) === "partnerUserConnect" && (c.trigger("account:userConnect", e == null ? void 0 : e.value), (t = this.closeFunc) == null || t.call(this)));
33
33
  }
34
34
  }
35
35
  };
36
- var i = function() {
37
- var n = this, r = n._self._c;
38
- return r("iframe", { staticClass: "h-full w-full", attrs: { title: "Partner Connect", src: n.iframeUrl, frameborder: "0" } });
39
- }, p = [], a = /* @__PURE__ */ s(
40
- l,
36
+ var p = function() {
37
+ var r = this, n = r._self._c;
38
+ return n("iframe", { staticClass: "h-full w-full", attrs: { title: "Partner Connect", src: r.iframeUrl, frameborder: "0" } });
39
+ }, l = [], a = /* @__PURE__ */ s(
41
40
  i,
42
41
  p,
42
+ l,
43
43
  !1,
44
44
  null,
45
- null,
46
- null,
47
45
  null
48
46
  );
49
47
  const m = a.exports;
@@ -1,10 +1,6 @@
1
- import { f as m, B as o, n as v } from "./main-b9ea9725.js";
2
- import { m as c } from "./mapFormMixin-de4a37c3.js";
3
- import g from "./Index-a52df5e2.js";
4
- import "./DocModalBase-60c69c7f.js";
5
- import "./DocumentLayout-4005baa4.js";
6
- import "./debounce-f8aeabc5.js";
7
- import "./CDropdownItem-7e71da85.js";
1
+ import { i as m, B as o, n as v } from "./main-DBw231uy.js";
2
+ import { m as c } from "./mapFormMixin-BrtcYsT9.js";
3
+ import g from "./Index-BNGaREiU.js";
8
4
  const p = {
9
5
  i18nOptions: {
10
6
  namespaces: "terms",
@@ -98,11 +94,9 @@ var u = function() {
98
94
  h,
99
95
  !1,
100
96
  null,
101
- "ca7e6a3c",
102
- null,
103
- null
97
+ "f7bd188e"
104
98
  );
105
- const S = f.exports;
99
+ const y = f.exports;
106
100
  export {
107
- S as default
101
+ y as default
108
102
  };
@@ -1,11 +1,11 @@
1
- import { h as n } from "./color-c1606adc.js";
2
- import { C as l } from "./ColorPicker-65a47379.js";
3
- import { M as s } from "./ManualPopover-d7c2a780.js";
4
- import { n as a } from "./main-b9ea9725.js";
1
+ import { C as n } from "./ColorPicker-6AIHrfJ5.js";
2
+ import { M as s } from "./ManualPopover-DrhgZvGC.js";
3
+ import { h as a } from "./color-TdtKxwVa.js";
4
+ import { n as l } from "./main-DBw231uy.js";
5
5
  const i = {
6
6
  name: "ThemeColorRow",
7
7
  components: {
8
- ColorPicker: l,
8
+ ColorPicker: n,
9
9
  ManualPopover: s
10
10
  },
11
11
  props: {
@@ -32,7 +32,7 @@ const i = {
32
32
  return this.value;
33
33
  },
34
34
  set(o) {
35
- this.$emit("change", n(o.hsl));
35
+ this.$emit("change", a(o.hsl));
36
36
  }
37
37
  }
38
38
  },
@@ -49,15 +49,13 @@ var c = function() {
49
49
  })], 2), t("ColorPicker", e._b({ ref: "colorPicker", attrs: { slot: "popover" }, slot: "popover", model: { value: e.internalValue, callback: function(r) {
50
50
  e.internalValue = r;
51
51
  }, expression: "internalValue" } }, "ColorPicker", e.pickerOptions, !1))], 1)], 1);
52
- }, p = [], u = /* @__PURE__ */ a(
52
+ }, p = [], u = /* @__PURE__ */ l(
53
53
  i,
54
54
  c,
55
55
  p,
56
56
  !1,
57
57
  null,
58
- "525021e0",
59
- null,
60
- null
58
+ "6aae00b4"
61
59
  );
62
60
  const h = u.exports;
63
61
  export {
@@ -1,7 +1,7 @@
1
- import { m as i } from "./mapFormMixin-de4a37c3.js";
2
- import { I as t } from "./InputToggleRow-f86fdf91.js";
3
- import { n as l } from "./main-b9ea9725.js";
4
- const s = {
1
+ import { m as i } from "./mapFormMixin-BrtcYsT9.js";
2
+ import { I as t } from "./InputToggleRow-ClHkgn7s.js";
3
+ import { n as s } from "./main-DBw231uy.js";
4
+ const a = {
5
5
  name: "ToggleBinding",
6
6
  i18nOptions: {
7
7
  namespaces: "ToggleBinding",
@@ -19,19 +19,17 @@ const s = {
19
19
  },
20
20
  mixins: [i(["notBinding"])]
21
21
  };
22
- var a = function() {
22
+ var l = function() {
23
23
  var n = this, e = n._self._c;
24
24
  return e("div", [e("InputToggleRow", { attrs: { "display-value": n.notBinding, label: n.$t("label") } }, [e("CSwitch", { attrs: { slot: "toggle" }, slot: "toggle", model: { value: n.notBinding, callback: function(o) {
25
25
  n.notBinding = o;
26
26
  }, expression: "notBinding" } })], 1)], 1);
27
- }, r = [], g = /* @__PURE__ */ l(
28
- s,
27
+ }, r = [], g = /* @__PURE__ */ s(
29
28
  a,
29
+ l,
30
30
  r,
31
31
  !1,
32
32
  null,
33
- null,
34
- null,
35
33
  null
36
34
  );
37
35
  const _ = g.exports;