@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,4 +1,4 @@
1
- import { a9 as Ue, k as De, n as $e, aj as ye, P as ve } from "./main-CerYX9PA.js";
1
+ import { a9 as Ue, k as De, n as $e, aj as ye, P as ve } from "./main-BIwKzAN8.js";
2
2
  /*!
3
3
  * Compressor.js v1.1.1
4
4
  * https://fengyuanchen.github.io/compressorjs
@@ -1697,7 +1697,7 @@ const Ve = /* @__PURE__ */ De(Ye), Qe = {
1697
1697
  name: "BaseUpload",
1698
1698
  components: {
1699
1699
  FileUpload: Ve,
1700
- UploadModal: () => import("./UploadModal-CvoSMExA.js")
1700
+ UploadModal: () => import("./UploadModal-C1j-GeMD.js")
1701
1701
  },
1702
1702
  props: {
1703
1703
  // Optional function to handle any errors
@@ -1,5 +1,5 @@
1
1
  import { g as d } from "./color-TdtKxwVa.js";
2
- import { n, b as i, x as c } from "./main-CerYX9PA.js";
2
+ import { n, b as i, x as c } from "./main-BIwKzAN8.js";
3
3
  const u = {
4
4
  name: "BlockMedia",
5
5
  inject: {
@@ -1,4 +1,4 @@
1
- import { n as a, f as s } from "./main-CerYX9PA.js";
1
+ import { n as a, f as s } from "./main-BIwKzAN8.js";
2
2
  import "./CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js";
3
3
  const i = {
4
4
  name: "CCallout",
@@ -1,6 +1,6 @@
1
- import { C as t, a as l } from "./CDropdownItem-b6ZzOnv-.js";
2
- import { n as s, q as u, r } from "./main-CerYX9PA.js";
3
- import { S as c } from "./SmartList-cSmGbybV.js";
1
+ import { C as t, a as l } from "./CDropdownItem-BSPNul90.js";
2
+ import { n as s, q as u, r as i } from "./main-BIwKzAN8.js";
3
+ import { S as c } from "./SmartList-D6AvxfSL.js";
4
4
  const d = {
5
5
  AED: "United Arab Emirates Dirham",
6
6
  AFN: "Afghan Afghani",
@@ -194,21 +194,21 @@ const d = {
194
194
  get() {
195
195
  return this.value;
196
196
  },
197
- set(i) {
198
- this.$emit("input", i);
197
+ set(r) {
198
+ this.$emit("input", r);
199
199
  }
200
200
  },
201
201
  selectedValue() {
202
- return this.internalCurrency ? r(this.internalCurrency) : "";
202
+ return this.internalCurrency ? i(this.internalCurrency) : "";
203
203
  }
204
204
  },
205
205
  watch: {
206
- isCurrencyDropdownOpen(i) {
207
- this.$emit("active-change", i), i ? this.$refs.searchCurrencyInput && this.$refs.searchCurrencyInput.focus() : this.searchQuery = "";
206
+ isCurrencyDropdownOpen(r) {
207
+ this.$emit("active-change", r), r ? this.$refs.searchCurrencyInput && this.$refs.searchCurrencyInput.focus() : this.searchQuery = "";
208
208
  }
209
209
  },
210
210
  methods: {
211
- getCurrencySymbol: r
211
+ getCurrencySymbol: i
212
212
  }
213
213
  };
214
214
  var S = function() {
@@ -218,29 +218,33 @@ var S = function() {
218
218
  maxWidth: "300px"
219
219
  }, scrollable: !0, "max-height": 200 }, on: { "active-change": function(n) {
220
220
  a.isCurrencyDropdownOpen = n;
221
- } }, model: { value: a.internalCurrency, callback: function(n) {
221
+ } }, scopedSlots: a._u([{ key: "trigger", fn: function() {
222
+ return [a._t("default", function() {
223
+ return [e("CButton", { staticClass: "is-left", staticStyle: { width: "100%", "text-align": "left", "min-width": "7em" }, attrs: { "dropdown-icon": !0, raised: "" } }, [a._v(" " + a._s(a.selectedValue) + " ")])];
224
+ }, { selectedValue: a.selectedValue })];
225
+ }, proxy: !0 }, { key: "header", fn: function() {
226
+ return [e("CInput", { ref: "searchCurrencyInput", staticStyle: { "margin-bottom": "0.25em" }, attrs: { placeholder: a.$t("_common:search"), filled: "" }, model: { value: a.searchQuery, callback: function(n) {
227
+ a.searchQuery = n;
228
+ }, expression: "searchQuery" } })];
229
+ }, proxy: !0 }], null, !0), model: { value: a.internalCurrency, callback: function(n) {
222
230
  a.internalCurrency = n;
223
231
  }, expression: "internalCurrency" } }, "CDropdown", {
224
232
  position: "is-bottom-left",
225
233
  ...a.$attrs,
226
234
  ...a.$props
227
- }, !1), [a._t("default", function() {
228
- return [e("CButton", { staticClass: "is-left", staticStyle: { width: "100%", "text-align": "left", "min-width": "7em" }, attrs: { "dropdown-icon": !0, raised: "" } }, [a._v(" " + a._s(a.selectedValue) + " ")])];
229
- }, { slot: "trigger", selectedValue: a.selectedValue }), e("CInput", { ref: "searchCurrencyInput", staticStyle: { "margin-bottom": "0.25em" }, attrs: { slot: "header", placeholder: a.$t("_common:search"), filled: "" }, slot: "header", model: { value: a.searchQuery, callback: function(n) {
230
- a.searchQuery = n;
231
- }, expression: "searchQuery" } }), a._l(o, function(n) {
235
+ }, !1), a._l(o, function(n) {
232
236
  return e("CDropdownItem", { key: n, staticClass: "truncate-text", staticStyle: { "padding-right": "0.5em" }, attrs: { value: n } }, [e("div", { staticStyle: { "margin-right": "auto" } }, [a._v(a._s(n))]), e("div", { staticStyle: { opacity: "0.7" } }, [a._v(" " + a._s(a.getCurrencySymbol(n)) + " ")])]);
233
- })], 2)];
234
- } }], null, !0) });
237
+ }), 1)];
238
+ } }]) });
235
239
  }, C = [], m = /* @__PURE__ */ s(
236
240
  D,
237
241
  S,
238
242
  C,
239
243
  !1,
240
244
  null,
241
- "6508b8fc"
245
+ "961b773a"
242
246
  );
243
- const R = m.exports;
247
+ const y = m.exports;
244
248
  export {
245
- R as C
249
+ y as C
246
250
  };
@@ -1,4 +1,4 @@
1
- import { V as f, k as m, n as p } from "./main-CerYX9PA.js";
1
+ import { V as f, k as m, n as p } from "./main-BIwKzAN8.js";
2
2
  class b {
3
3
  constructor({ defaults: e = { width: 800, height: 600 }, delay: i = 50 } = {}) {
4
4
  this._width = e.width, this._height = e.height, this._delay = i, this._timer = null, this._initialized = !1, this._handler = this._handleResize.bind(this);
@@ -1,4 +1,4 @@
1
- import { n as i, U as l } from "./main-CerYX9PA.js";
1
+ import { n as i, U as l } from "./main-BIwKzAN8.js";
2
2
  import "./CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js";
3
3
  const n = {
4
4
  name: "CFieldBody",
@@ -1,4 +1,4 @@
1
- import { u as e, v as o, n } from "./main-CerYX9PA.js";
1
+ import { u as e, v as o, n } from "./main-BIwKzAN8.js";
2
2
  const r = {
3
3
  name: "CPhoneFormat",
4
4
  props: {
@@ -1,10 +1,10 @@
1
- import { C as s } from "./CCurrencyDropdown-DejfeYVY.js";
2
- import { n as i, q as u, r as a } from "./main-CerYX9PA.js";
3
- const l = {
1
+ import { C as i } from "./CCurrencyDropdown-BT01qBGg.js";
2
+ import { n as s, q as u, r as a } from "./main-BIwKzAN8.js";
3
+ const o = {
4
4
  name: "CPriceInput",
5
5
  components: {
6
6
  CInput: u,
7
- CCurrencyDropdown: s
7
+ CCurrencyDropdown: i
8
8
  },
9
9
  props: {
10
10
  value: {
@@ -87,26 +87,30 @@ const l = {
87
87
  }
88
88
  }
89
89
  };
90
- var o = function() {
90
+ var c = function() {
91
91
  var e = this, r = e._self._c;
92
- return r("CInput", e._g(e._b({ key: e.internalCurrency + e.priceType, ref: "priceInput", style: e.isCurrencyDropdownOpen && { zIndex: 99 }, attrs: { size: e.$attrs.size, placeholder: e.$attrs.placeholder, type: "number" }, model: { value: e.internalValue, callback: function(n) {
92
+ return r("CInput", e._g(e._b({ key: e.internalCurrency + e.priceType, ref: "priceInput", style: e.isCurrencyDropdownOpen && { zIndex: 99 }, attrs: { size: e.$attrs.size, placeholder: e.$attrs.placeholder, type: "number" }, scopedSlots: e._u([{ key: "prefix", fn: function() {
93
+ return [e.$slots.prefix ? r("div", [e._t("prefix")], 2) : e._e()];
94
+ }, proxy: !0 }, { key: "suffix", fn: function() {
95
+ return [e.$slots.suffix ? r("div", [e._t("suffix")], 2) : r("div", [e.showCurrencyDropdown ? r("CCurrencyDropdown", { on: { "active-change": function(n) {
96
+ e.isCurrencyDropdownOpen = n;
97
+ } }, scopedSlots: e._u([{ key: "default", fn: function({ selectedValue: n }) {
98
+ return [r("CButton", { staticClass: "is-thinner", staticStyle: { "padding-left": "0.5em", "padding-right": "0.5em", "border-radius": "0.25em" }, attrs: { size: e.$attrs.size, type: "none", pattern: "tertiary" } }, [e._v(" " + e._s(n) + " ")])];
99
+ } }], null, !1, 1723986040), model: { value: e.internalCurrency, callback: function(n) {
100
+ e.internalCurrency = n;
101
+ }, expression: "internalCurrency" } }) : r("div", [e._v(e._s(e.suffixValue))])], 1)];
102
+ }, proxy: !0 }], null, !0), model: { value: e.internalValue, callback: function(n) {
93
103
  e.internalValue = n;
94
- }, expression: "internalValue" } }, "CInput", { ...e.$attrs, ...e.$props }, !1), e.eventListeners), [e.$slots.prefix ? r("div", { attrs: { slot: "prefix" }, slot: "prefix" }, [e._t("prefix")], 2) : e._e(), e.$slots.suffix ? r("div", { attrs: { slot: "suffix" }, slot: "suffix" }, [e._t("suffix")], 2) : r("template", { slot: "suffix" }, [e.showCurrencyDropdown ? r("CCurrencyDropdown", { on: { "active-change": function(n) {
95
- e.isCurrencyDropdownOpen = n;
96
- } }, scopedSlots: e._u([{ key: "default", fn: function({ selectedValue: n }) {
97
- return [r("CButton", { staticClass: "is-thinner", staticStyle: { "padding-left": "0.5em", "padding-right": "0.5em", "border-radius": "0.25em" }, attrs: { size: e.$attrs.size, type: "none", pattern: "tertiary" } }, [e._v(" " + e._s(n) + " ")])];
98
- } }], null, !1, 1723986040), model: { value: e.internalCurrency, callback: function(n) {
99
- e.internalCurrency = n;
100
- }, expression: "internalCurrency" } }) : r("div", [e._v(e._s(e.suffixValue))])], 1)], 2);
101
- }, p = [], c = /* @__PURE__ */ i(
102
- l,
104
+ }, expression: "internalValue" } }, "CInput", { ...e.$attrs, ...e.$props }, !1), e.eventListeners));
105
+ }, p = [], l = /* @__PURE__ */ s(
103
106
  o,
107
+ c,
104
108
  p,
105
109
  !1,
106
110
  null,
107
111
  null
108
112
  );
109
- const y = c.exports;
113
+ const y = l.exports;
110
114
  export {
111
115
  y as C
112
116
  };
@@ -0,0 +1,82 @@
1
+ import { S as o } from "./SearchApi-Cwgf52EV.js";
2
+ import { n as c, y as l } from "./main-BIwKzAN8.js";
3
+ const i = {
4
+ i18nOptions: {
5
+ namespaces: "components",
6
+ keyPrefix: "account.documentForm.clients"
7
+ },
8
+ name: "ClientAutocomplete",
9
+ components: {
10
+ SearchApi: o
11
+ },
12
+ props: {
13
+ searchEnabled: {
14
+ type: Boolean,
15
+ default: !0
16
+ },
17
+ showLoading: {
18
+ type: Boolean,
19
+ default: !1
20
+ },
21
+ showEmpty: {
22
+ type: Boolean,
23
+ default: !1
24
+ },
25
+ filled: {
26
+ type: Boolean,
27
+ default: !1
28
+ }
29
+ },
30
+ data() {
31
+ return {
32
+ convertToNewClient: l,
33
+ results: [],
34
+ // results when searching for existing endCustomer
35
+ searchQuery: ""
36
+ // query used to search for endCustomers
37
+ };
38
+ },
39
+ methods: {
40
+ search(s, e) {
41
+ this.$emit("input", e), this.searchEnabled && (this.searchQuery = e, s({
42
+ q: e,
43
+ cb: ({ endCustomer: r }) => {
44
+ this.results = r;
45
+ }
46
+ }));
47
+ }
48
+ }
49
+ };
50
+ var u = function() {
51
+ var e = this, r = e._self._c;
52
+ return r("SearchApi", { attrs: { "custom-search": { endCustomer: !0 } }, scopedSlots: e._u([{ key: "default", fn: function({ fetch: n, isLoading: a }) {
53
+ return [r("CAutocomplete", e._b({ attrs: { data: e.results, loading: e.showLoading && a, filled: e.filled, expanded: "", "keep-first": "" }, on: { typing: function(t) {
54
+ return e.search(n, t);
55
+ }, select: function(t) {
56
+ e.$emit("setClient", e.convertToNewClient(t));
57
+ } }, scopedSlots: e._u([{ key: "default", fn: function({ option: t }) {
58
+ return [r("div", { staticStyle: { "line-height": "1.5" } }, [r("div", { staticStyle: { "font-weight": "500" } }, [e._v(e._s(t.name || t.email))]), r("div", { staticClass: "text-gray-600", staticStyle: { "font-size": "14px" } }, [e._v(" " + e._s(t.reference ? `${t.reference} · ` : "") + " " + e._s(t.workStreet || t.street || " ") + " ")])])];
59
+ } }, { key: "footer", fn: function() {
60
+ return [e.searchEnabled && e.showEmpty ? r("div", [e.searchQuery && !e.results.length ? r("CButton", { staticStyle: { "font-weight": "600" }, attrs: { type: "secondary", pattern: "tertiary", size: "small" }, on: { click: function(t) {
61
+ return e.$emit("add");
62
+ } } }, [e._v(" " + e._s(e.$t("_common:add")) + " ")]) : e._e()], 1) : e._e()];
63
+ }, proxy: !0 }, { key: "empty", fn: function() {
64
+ return [e.searchEnabled && e.showEmpty ? r("div", [e._v(" " + e._s(e.$t("search.empty")) + " " + e._s(e.searchQuery) + " ")]) : e._e()];
65
+ }, proxy: !0 }], null, !0) }, "CAutocomplete", {
66
+ placeholder: e.$t("search.placeholder"),
67
+ ...e.$attrs,
68
+ ...e.$props
69
+ }, !1))];
70
+ } }]) });
71
+ }, f = [], d = /* @__PURE__ */ c(
72
+ i,
73
+ u,
74
+ f,
75
+ !1,
76
+ null,
77
+ "84b5a2c0"
78
+ );
79
+ const h = d.exports;
80
+ export {
81
+ h as C
82
+ };
@@ -1,9 +1,9 @@
1
- import { C as v } from "./ClientAutocomplete-DyXQEfcS.js";
2
- import { E as p, ad as y, I as C, n as u, b as l, d as b, c as _, g as c, ae as $, y as w } from "./main-CerYX9PA.js";
3
- import { w as f } from "./CDropdownItem-b6ZzOnv-.js";
4
- import { v as r } from "./index-twnaU4rC.js";
5
- import { m as g, b as x, a as k } from "./vuex.esm-DKGl8mcw.js";
6
- import { o as N } from "./omit-DGBewD2h.js";
1
+ import { C as v } from "./ClientAutocomplete-B3z6RPXr.js";
2
+ import { E as u, ad as y, I as C, n as p, b as l, d as b, c as _, g as c, ae as $, y as x } from "./main-BIwKzAN8.js";
3
+ import { w as f } from "./CDropdownItem-BSPNul90.js";
4
+ import { v as r } from "./index-CFx0cpeM.js";
5
+ import { m as g, b as w, a as k } from "./vuex.esm-DKGl8mcw.js";
6
+ import { o as N } from "./omit-CpamclWf.js";
7
7
  function h(a) {
8
8
  if (typeof a > "u")
9
9
  throw Error("Missing param inputParam");
@@ -35,7 +35,7 @@ function d(a) {
35
35
  }
36
36
  return (/* @__PURE__ */ new Date()).getFullYear() - parseInt(e.substring(0, 4), 10) < 16 ? !1 : h(e.substring(2)) ? e : !1;
37
37
  }
38
- const I = {
38
+ const S = {
39
39
  sv: {
40
40
  title: "Mottagare",
41
41
  updateButton: "Spara mottagare",
@@ -150,14 +150,14 @@ const I = {
150
150
  }
151
151
  }
152
152
  }
153
- }, { mapFields: S } = p({
153
+ }, { mapFields: I } = u({
154
154
  getterType: "forms/getField",
155
155
  mutationType: "forms/updateField"
156
156
  }), F = {
157
157
  name: "FormClient",
158
158
  i18nOptions: {
159
159
  namespaces: "formClient",
160
- messages: I
160
+ messages: S
161
161
  },
162
162
  components: {
163
163
  ClientAutocomplete: v,
@@ -242,7 +242,7 @@ const I = {
242
242
  };
243
243
  },
244
244
  computed: {
245
- ...S({
245
+ ...I({
246
246
  id: "endCustomer.id",
247
247
  type: "endCustomer.customerType",
248
248
  name: "endCustomer.name",
@@ -333,15 +333,17 @@ var M = function() {
333
333
  e.cellphoneRegion = i;
334
334
  } }, model: { value: e.cellphone, callback: function(i) {
335
335
  e.cellphone = i;
336
- }, expression: "cellphone" } }), e.documentRole ? t("CDropdown", { staticStyle: { "margin-bottom": "calc(1 * var(--rem))" }, attrs: { expanded: "" } }, [t("CButton", { staticClass: "is-left", staticStyle: { width: "100%" }, attrs: { slot: "trigger", "dropdown-icon": !0, "icon-props": {
337
- stroke: "hsl(0, 0%, 50%)"
338
- }, "icon-left": e.documentRole === "signee" ? "pen-tool" : "eye", type: "none", pattern: "secondary" }, slot: "trigger" }, [t("div", { staticStyle: { "line-height": "1.25", padding: "4px 0" } }, [t("div", [e._v(" " + e._s(e.$t(`_common:documentRole.${e.documentRole}.description`)) + " ")]), t("div", { staticStyle: { "font-size": "12px", opacity: "0.7" } }, [e._v(" " + e._s(e.$t(`_common:documentRole.${e.documentRole}.label`)) + " ")])])]), e._l(["signee", "recipient", "approver"], function(i) {
336
+ }, expression: "cellphone" } }), e.documentRole ? t("CDropdown", { staticStyle: { "margin-bottom": "calc(1 * var(--rem))" }, attrs: { expanded: "" }, scopedSlots: e._u([{ key: "trigger", fn: function() {
337
+ return [t("CButton", { staticClass: "is-left", staticStyle: { width: "100%" }, attrs: { "dropdown-icon": !0, "icon-props": {
338
+ stroke: "hsl(0, 0%, 50%)"
339
+ }, "icon-left": e.documentRole === "signee" ? "pen-tool" : "eye", type: "none", pattern: "secondary" } }, [t("div", { staticStyle: { "line-height": "1.25", padding: "4px 0" } }, [t("div", [e._v(" " + e._s(e.$t(`_common:documentRole.${e.documentRole}.description`)) + " ")]), t("div", { staticStyle: { "font-size": "12px", opacity: "0.7" } }, [e._v(" " + e._s(e.$t(`_common:documentRole.${e.documentRole}.label`)) + " ")])])])];
340
+ }, proxy: !0 }], null, !1, 251902115) }, e._l(["signee", "recipient", "approver"], function(i) {
339
341
  return t("CDropdownItem", { key: i, attrs: { "icon-left": i === "signee" ? "pen-tool" : "eye", "icon-props": {
340
342
  stroke: "hsl(0, 0%, 50%)"
341
343
  } }, on: { click: function(n) {
342
344
  return e.$emit("update:document-role", i);
343
345
  } } }, [t("div", { staticStyle: { "line-height": "1.25", padding: "4px 0" } }, [t("div", [e._v(e._s(e.$t(`_common:documentRole.${i}.description`)))]), t("div", { staticStyle: { "font-size": "12px", opacity: "0.7" } }, [e._v(" " + e._s(e.$t(`_common:documentRole.${i}.label`)) + " ")])])]);
344
- })], 2) : e._e(), t("CButton", { attrs: { type: "secondary", pattern: "tertiary", size: "small", "icon-left": "arrow-right" }, on: { click: function(i) {
346
+ }), 1) : e._e(), t("CButton", { attrs: { type: "secondary", pattern: "tertiary", size: "small", "icon-left": "arrow-right" }, on: { click: function(i) {
345
347
  return e.$emit("show-more");
346
348
  } } }, [e._v(" " + e._s(e.$t("showMore").capitalize()) + " ")]), t("CButton", { staticClass: "mt-4", staticStyle: { padding: "16px", "border-radius": "8px", height: "100%", "font-size": "14px", "font-weight": "600", "box-shadow": "0 2px 4px -1px rgba(0, 0, 0, 0.1)" }, attrs: { loading: e.isPosting, "native-type": "submit", type: "secondary", wide: "", size: "medium" } }, [e._v(" " + e._s(e.$t("updateButton")) + " ")])], 1) : t("div", { class: { "column-only": e.windowWidth <= 600 } }, [t("div", { staticClass: "flex items-center justify-center", staticStyle: { "margin-bottom": "calc(2.5 * var(--rem))" } }, [t("div", { staticClass: "type-toggle" }, [t("div", { staticClass: "type-toggle-button", class: { active: e.type === "individual" }, on: { click: function(i) {
347
349
  e.type = "individual";
@@ -379,31 +381,35 @@ var M = function() {
379
381
  e.workZip = i;
380
382
  }, expression: "workZip" } })], 1), t("CField", { attrs: { expanded: "" } }, [t("CInput", { ref: "workCity", attrs: { placeholder: e.$t("_common:city").capitalize(), expanded: "" }, model: { value: e.workCity, callback: function(i) {
381
383
  e.workCity = i;
382
- }, expression: "workCity" } })], 1)], 1)], 1) : e._e()]), e.documentRole || e.answerMethod ? t("CField", { staticClass: "flex pt-4", attrs: { grouped: "" } }, [e.documentRole ? t("div", { staticClass: "dropdown-field-wrapper flex min-w-0 flex-col" }, [t("div", { staticClass: "my-1 text-sm text-gray-600" }, [e._v(" " + e._s(e.$t("_common:documentRole.title")) + " ")]), t("CDropdown", { staticStyle: { "margin-bottom": "calc(1 * var(--rem))" }, attrs: { expanded: "" } }, [t("CButton", { staticClass: "is-left", attrs: { slot: "trigger", "dropdown-icon": !0, "icon-props": {
383
- stroke: "hsl(0, 0%, 50%)"
384
- }, "icon-left": e.documentRole === "signee" ? "pen-tool" : "eye", type: "none", pattern: "secondary", expanded: "" }, slot: "trigger" }, [t("div", { staticClass: "py-1 leading-5" }, [t("div", [e._v(" " + e._s(e.$t(`_common:documentRole.${e.documentRole}.description`)) + " ")]), t("div", { staticClass: "text-xs opacity-70" }, [e._v(" " + e._s(e.$t(`_common:documentRole.${e.documentRole}.label`)) + " ")])])]), e._l(["signee", "recipient", "approver"], function(i) {
384
+ }, expression: "workCity" } })], 1)], 1)], 1) : e._e()]), e.documentRole || e.answerMethod ? t("CField", { staticClass: "flex pt-4", attrs: { grouped: "" } }, [e.documentRole ? t("div", { staticClass: "dropdown-field-wrapper flex min-w-0 flex-col" }, [t("div", { staticClass: "my-1 text-sm text-gray-600" }, [e._v(" " + e._s(e.$t("_common:documentRole.title")) + " ")]), t("CDropdown", { staticStyle: { "margin-bottom": "calc(1 * var(--rem))" }, attrs: { expanded: "" }, scopedSlots: e._u([{ key: "trigger", fn: function() {
385
+ return [t("CButton", { staticClass: "is-left", attrs: { "dropdown-icon": !0, "icon-props": {
386
+ stroke: "hsl(0, 0%, 50%)"
387
+ }, "icon-left": e.documentRole === "signee" ? "pen-tool" : "eye", type: "none", pattern: "secondary", expanded: "" } }, [t("div", { staticClass: "py-1 leading-5" }, [t("div", [e._v(" " + e._s(e.$t(`_common:documentRole.${e.documentRole}.description`)) + " ")]), t("div", { staticClass: "text-xs opacity-70" }, [e._v(" " + e._s(e.$t(`_common:documentRole.${e.documentRole}.label`)) + " ")])])])];
388
+ }, proxy: !0 }], null, !1, 3591348405) }, e._l(["signee", "recipient", "approver"], function(i) {
385
389
  return t("CDropdownItem", { key: i, attrs: { "icon-left": i === "signee" ? "pen-tool" : "eye", "icon-props": {
386
390
  stroke: "hsl(0, 0%, 50%)"
387
391
  } }, on: { click: function(n) {
388
392
  return e.$emit("update:document-role", i);
389
393
  } } }, [t("div", { staticStyle: { "line-height": "1.25", padding: "4px 0" } }, [t("div", [e._v(e._s(e.$t(`_common:documentRole.${i}.description`)))]), t("div", { staticStyle: { "font-size": "12px", opacity: "0.7" } }, [e._v(" " + e._s(e.$t(`_common:documentRole.${i}.label`)) + " ")])])]);
390
- })], 2)], 1) : e._e(), e.answerMethod ? t("div", { staticClass: "dropdown-field-wrapper flex min-w-0 flex-col" }, [t("div", { staticClass: "my-1 text-sm text-gray-600" }, [e._v(" " + e._s(e.$t("_common:signMethod.title")) + " ")]), t("CDropdown", { staticStyle: { "margin-bottom": "calc(1 * var(--rem))" }, attrs: { expanded: "" } }, [t("CButton", { staticClass: "is-left", attrs: { slot: "trigger", "dropdown-icon": !0, type: "none", pattern: "secondary", expanded: "" }, slot: "trigger" }, [t("div", { staticClass: "max-w-[calc(16_*_var(--rem))] py-1 leading-5" }, [t("div", [e._v(e._s(e.$t(`signMethod.${e.answerMethod.accept}.title`)))]), t("div", { staticClass: "truncate text-xs opacity-70" }, [e._v(" " + e._s(e.$t(`signMethod.${e.answerMethod.accept}.content`)) + " ")])])]), e._l(e.signOptions, function(i) {
394
+ }), 1)], 1) : e._e(), e.answerMethod ? t("div", { staticClass: "dropdown-field-wrapper flex min-w-0 flex-col" }, [t("div", { staticClass: "my-1 text-sm text-gray-600" }, [e._v(" " + e._s(e.$t("_common:signMethod.title")) + " ")]), t("CDropdown", { staticStyle: { "margin-bottom": "calc(1 * var(--rem))" }, attrs: { expanded: "" }, scopedSlots: e._u([{ key: "trigger", fn: function() {
395
+ return [t("CButton", { staticClass: "is-left", attrs: { "dropdown-icon": !0, type: "none", pattern: "secondary", expanded: "" } }, [t("div", { staticClass: "max-w-[calc(16_*_var(--rem))] py-1 leading-5" }, [t("div", [e._v(e._s(e.$t(`signMethod.${e.answerMethod.accept}.title`)))]), t("div", { staticClass: "truncate text-xs opacity-70" }, [e._v(" " + e._s(e.$t(`signMethod.${e.answerMethod.accept}.content`)) + " ")])])])];
396
+ }, proxy: !0 }], null, !1, 2465514337) }, e._l(e.signOptions, function(i) {
391
397
  return t("CDropdownItem", { key: i, on: { click: function(n) {
392
398
  return e.$emit("update:answer-method", {
393
399
  ...e.answerMethod,
394
400
  accept: i
395
401
  });
396
402
  } } }, [t("div", { staticStyle: { "line-height": "1.25", padding: "4px 0" } }, [t("div", [e._v(e._s(e.$t(`signMethod.${i}.title`)))]), t("div", { staticClass: "max-w-[calc(12_*_var(--rem))] truncate", staticStyle: { "font-size": "12px", opacity: "0.7", "text-wrap": "wrap" } }, [e._v(" " + e._s(e.$t(`signMethod.${i}.content`)) + " ")])])]);
397
- })], 2)], 1) : e._e()]) : e._e(), t("div", { staticStyle: { "margin-top": "calc(3 * var(--rem))" } }, [t("CButton", { staticStyle: { padding: "16px", "border-radius": "8px", height: "100%", "font-size": "14px", "font-weight": "600", "box-shadow": "0 2px 4px -1px rgba(0, 0, 0, 0.1)" }, attrs: { loading: e.isPosting, type: "secondary", wide: "" }, on: { click: e.validateForm } }, [e._v(e._s(e.$t("updateButton")))])], 1)], 1)]);
398
- }, z = [], O = /* @__PURE__ */ u(
403
+ }), 1)], 1) : e._e()]) : e._e(), t("div", { staticStyle: { "margin-top": "calc(3 * var(--rem))" } }, [t("CButton", { staticStyle: { padding: "16px", "border-radius": "8px", height: "100%", "font-size": "14px", "font-weight": "600", "box-shadow": "0 2px 4px -1px rgba(0, 0, 0, 0.1)" }, attrs: { loading: e.isPosting, type: "secondary", wide: "" }, on: { click: e.validateForm } }, [e._v(e._s(e.$t("updateButton")))])], 1)], 1)]);
404
+ }, z = [], O = /* @__PURE__ */ p(
399
405
  F,
400
406
  M,
401
407
  z,
402
408
  !1,
403
409
  null,
404
- "99750061"
410
+ "12f94211"
405
411
  );
406
- const R = O.exports, { mapFields: q } = p({
412
+ const R = O.exports, { mapFields: q } = u({
407
413
  getterType: "forms/getField",
408
414
  mutationType: "forms/updateField"
409
415
  }), A = {
@@ -496,7 +502,7 @@ const R = O.exports, { mapFields: q } = p({
496
502
  ...q({
497
503
  endCustomer: "endCustomer"
498
504
  }),
499
- ...x("forms", {
505
+ ...w("forms", {
500
506
  formData: (a) => a.document2
501
507
  }),
502
508
  ...g({
@@ -548,7 +554,7 @@ const R = O.exports, { mapFields: q } = p({
548
554
  }
549
555
  this.setFormValue({
550
556
  key: `clients[${this.documentClientIndex}]`,
551
- value: w(
557
+ value: x(
552
558
  { ...this.endCustomer, ...a && { id: a } },
553
559
  { ...this.storedNewClient, signOrder: this.signOrder }
554
560
  )
@@ -611,7 +617,7 @@ var D = function() {
611
617
  }, submit: e.onSave, "show-more": function(i) {
612
618
  e.showMore = !0;
613
619
  } } }), e.existsOnDocument && e.mq === "sm" ? t("CButton", { staticClass: "mt-4 text-sm", attrs: { type: "danger", pattern: "secondary", wide: "" }, on: { click: e.removeClient } }, [e._v(" " + e._s(e.$t("_common:remove")) + " ")]) : e._e()], 1)]);
614
- }, B = [], E = /* @__PURE__ */ u(
620
+ }, B = [], E = /* @__PURE__ */ p(
615
621
  A,
616
622
  D,
617
623
  B,
@@ -1,4 +1,4 @@
1
- import { a9 as ht, n as bt } from "./main-CerYX9PA.js";
1
+ import { a9 as ht, n as bt } from "./main-BIwKzAN8.js";
2
2
  var vt = { exports: {} };
3
3
  (function(gt, Ct) {
4
4
  (function(c, i) {
@@ -1,8 +1,8 @@
1
- import { w as r } from "./CDropdownItem-b6ZzOnv-.js";
2
- import { E as l, g as s, n as c } from "./main-CerYX9PA.js";
3
- import { v as o } from "./index-twnaU4rC.js";
1
+ import { w as r } from "./CDropdownItem-BSPNul90.js";
2
+ import { E as l, g as s, n as c } from "./main-BIwKzAN8.js";
3
+ import { v as o } from "./index-CFx0cpeM.js";
4
4
  import { m as p, b as n, a as d } from "./vuex.esm-DKGl8mcw.js";
5
- import { s as m, a as u } from "./publicSenderState-t7Gu53cA.js";
5
+ import { s as m, a as u } from "./publicSenderState-D-_7UwjT.js";
6
6
  const { mapFields: f } = l({
7
7
  getterType: "forms/getField",
8
8
  mutationType: "forms/updateField"