@cling-se/widget 0.9.26 → 0.9.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/dist/{AddClientCallout-1d22cff1.js → AddClientCallout-ce5f5f46.js} +6 -12
  2. package/dist/{AnswerModal-7d4a4ad6.js → AnswerModal-3221683b.js} +37 -37
  3. package/dist/{AttachmentItem-fa4a7b2f.js → AttachmentItem-2c1174e0.js} +3 -3
  4. package/dist/{BaseDatePicker-bb3c9290.js → BaseDatePicker-a82aba1b.js} +654 -624
  5. package/dist/{BaseInput-d46c6aab.js → BaseInput-489bd05b.js} +1 -1
  6. package/dist/{BaseUpload-61a6ae84.js → BaseUpload-dc4efbd3.js} +13 -13
  7. package/dist/{BlockMedia-c0765d5f.js → BlockMedia-d91bb4a5.js} +1 -1
  8. package/dist/{CCallout-e9eb8421.js → CCallout-3d3df80b.js} +2 -2
  9. package/dist/{CDropdownItem-0c39e15e.js → CDropdownItem-80d6f1d6.js} +18 -16
  10. package/dist/{CField-9a36ccbe.js → CField-617ee7e0.js} +1 -1
  11. package/dist/{CPhoneFormat-14fb2bfe.js → CPhoneFormat-8e8c1862.js} +1 -1
  12. package/dist/{CSlider.vue_vue_type_style_index_0_lang-473e3473.js → CSlider.vue_vue_type_style_index_0_lang-61beea49.js} +1 -1
  13. package/dist/{ClientAutocomplete-ea948de7.js → ClientAutocomplete-2b46278b.js} +2 -2
  14. package/dist/{ClientModal-03f9a7ad.js → ClientModal-3d6a6254.js} +116 -63
  15. package/dist/{ColorPicker-9d6e8692.js → ColorPicker-b5a7c17d.js} +1 -1
  16. package/dist/{CompanyModal-9a2797e4.js → CompanyModal-72197be9.js} +3 -3
  17. package/dist/{ContentWrapper-cd0abb46.js → ContentWrapper-0ef2034e.js} +13 -13
  18. package/dist/{CoverBlockSettings-9e6926e5.js → CoverBlockSettings-fea5025d.js} +26 -36
  19. package/dist/{DocAnswer-760aca52.js → DocAnswer-f07000a5.js} +4 -4
  20. package/dist/{DocDetails-a49d9706.js → DocDetails-fc0f6699.js} +4 -4
  21. package/dist/{DocForm-9296137d.js → DocForm-1465fccc.js} +202 -197
  22. package/dist/{DocFormSend-d53627b6.js → DocFormSend-8608a153.js} +22 -23
  23. package/dist/{DocLinks-ebb434cf.js → DocLinks-2b0860fb.js} +2 -2
  24. package/dist/{DocModalBase-788ecca2.js → DocModalBase-5ccf22f3.js} +1 -1
  25. package/dist/{DocPrint-76494770.js → DocPrint-1700274a.js} +1 -1
  26. package/dist/{DocReceipt-91a22031.js → DocReceipt-44197299.js} +2 -2
  27. package/dist/{DocSendReminder-8fb4f42a.js → DocSendReminder-af802c73.js} +1 -1
  28. package/dist/{DocTextEditor-718701da.js → DocTextEditor-1704fa97.js} +8 -8
  29. package/dist/{DocTimeline-745f11ca.js → DocTimeline-63b452ad.js} +5 -5
  30. package/dist/{DocumentClient-9484dac6.js → DocumentClient-38e59b20.js} +7 -7
  31. package/dist/{DocumentLayout-b35834b7.js → DocumentLayout-3aa5beb7.js} +143 -143
  32. package/dist/{DocumentLogotype-ac609ac3.js → DocumentLogotype-577bc574.js} +3 -3
  33. package/dist/{DocumentVoided-35a08aae.js → DocumentVoided-8c1fde51.js} +1 -1
  34. package/dist/{EmbedInput-b4e82feb.js → EmbedInput-a13d0bd9.js} +2 -2
  35. package/dist/{EmbedSettings-e1a34a42.js → EmbedSettings-a89ca29c.js} +3 -3
  36. package/dist/{ErrorCallout-028c5129.js → ErrorCallout-4f239204.js} +1 -1
  37. package/dist/{FilePreviewModal-317d0164.js → FilePreviewModal-4c3604dd.js} +5 -5
  38. package/dist/Flag-bc43bb0c.js +116 -0
  39. package/dist/{HeaderSettings-6b47fc81.js → HeaderSettings-c4f142e8.js} +26 -36
  40. package/dist/{ImageSelectModal-844c6bc3.js → ImageSelectModal-c6313667.js} +17 -18
  41. package/dist/{ImageUploadWrapper-50277abb.js → ImageUploadWrapper-58b96176.js} +2 -2
  42. package/dist/{Index-7dc7112d.js → Index-183a68e0.js} +9 -9
  43. package/dist/{Index-3dab1bc2.js → Index-2578fbeb.js} +7 -6
  44. package/dist/{Index-2d053662.js → Index-309834c5.js} +4 -4
  45. package/dist/{Index-e30aeae7.js → Index-37404666.js} +4 -4
  46. package/dist/{Index-d7279e3d.js → Index-3c821630.js} +2 -2
  47. package/dist/{Index-bd96ee96.js → Index-445088b5.js} +6 -6
  48. package/dist/{Index-b2aac451.js → Index-5009df0b.js} +18 -17
  49. package/dist/{Index-ede7b036.js → Index-5176befe.js} +2 -2
  50. package/dist/{Index-7746750d.js → Index-523a447e.js} +2 -2
  51. package/dist/{Index-c4573294.js → Index-57c10afa.js} +6 -6
  52. package/dist/{Index-150fb782.js → Index-5bffe550.js} +2 -2
  53. package/dist/{Index-891aef3c.js → Index-6f556e68.js} +9 -9
  54. package/dist/{Index-19a722f7.js → Index-812afc8c.js} +2 -2
  55. package/dist/{Index-2d8c6cb4.js → Index-83f30e6e.js} +10 -10
  56. package/dist/{Index-6cf07e69.js → Index-8ab66f25.js} +4 -4
  57. package/dist/{Index-f87f5334.js → Index-9587b1a0.js} +3 -3
  58. package/dist/{Index-05284370.js → Index-a1c30649.js} +2 -2
  59. package/dist/{Index-9a60040d.js → Index-a6919f89.js} +4 -4
  60. package/dist/{Index-baae6f49.js → Index-a6afc0fb.js} +4 -4
  61. package/dist/{Index-2167f5b1.js → Index-ac8b139d.js} +7 -7
  62. package/dist/{Index-9db11c22.js → Index-b0022178.js} +4 -4
  63. package/dist/{Index-de524825.js → Index-b11034d9.js} +8 -8
  64. package/dist/{Index-3149ec57.js → Index-bd08a626.js} +22 -22
  65. package/dist/{Index-a07fdebf.js → Index-bd748f4d.js} +5 -5
  66. package/dist/{Index-80b0143a.js → Index-c29ce250.js} +2 -2
  67. package/dist/{Index-e3a4b413.js → Index-c913c838.js} +4 -4
  68. package/dist/{Index-c17f0725.js → Index-c96b800d.js} +4 -4
  69. package/dist/{Index-4372b425.js → Index-cc632439.js} +14 -14
  70. package/dist/{Index-577f50c3.js → Index-cf86c57e.js} +1 -1
  71. package/dist/{Index-95d81511.js → Index-daf40983.js} +13 -15
  72. package/dist/{Index-15208945.js → Index-ea4a220f.js} +16 -16
  73. package/dist/{Index-3806962a.js → Index-ed8d3227.js} +4 -4
  74. package/dist/{Index-7088fac5.js → Index-fe4ea35d.js} +7 -7
  75. package/dist/{Index-bbf0ffc1.js → Index-ffbe09d0.js} +2 -2
  76. package/dist/{InputToggleRow-88c816d8.js → InputToggleRow-7ec3607f.js} +1 -1
  77. package/dist/{IsPremiumPreStep-3665f985.js → IsPremiumPreStep-178406ae.js} +30 -31
  78. package/dist/{ManualPopover-db213d5f.js → ManualPopover-8b6a226d.js} +1 -1
  79. package/dist/{MediaWrapper-fd7c4863.js → MediaWrapper-67b73943.js} +3 -3
  80. package/dist/{NotBindingText-c2e4a00c.js → NotBindingText-1e509df6.js} +2 -2
  81. package/dist/{PackageGroup-d8077d12.js → PackageGroup-1d065d95.js} +15 -15
  82. package/dist/{PdfTerms-ca12cb7a.js → PdfTerms-f4ec7376.js} +5 -5
  83. package/dist/{PdfViewer-0bd06c00.js → PdfViewer-a54231e8.js} +2 -2
  84. package/dist/{PlainHtml-9326653d.js → PlainHtml-ae92cb56.js} +1 -1
  85. package/dist/{PriceHeader-b8225846.js → PriceHeader-7c0bc252.js} +13 -13
  86. package/dist/{SearchApi-2070fc66.js → SearchApi-95506360.js} +2 -2
  87. package/dist/{Setup-112a316f.js → Setup-c4a6727b.js} +1 -1
  88. package/dist/{TermsSettings-181622d1.js → TermsSettings-daaccf0c.js} +7 -7
  89. package/dist/{ThemeColorRow-7dd6979b.js → ThemeColorRow-8aa93760.js} +3 -3
  90. package/dist/{ToggleBinding-482c9df9.js → ToggleBinding-5ea20a6d.js} +3 -3
  91. package/dist/{UploadModal-fc9b0c7b.js → UploadModal-471296cd.js} +3 -3
  92. package/dist/{VideoPlayerInput-c1465b51.js → VideoPlayerInput-a813f371.js} +3 -3
  93. package/dist/{VideoPlayerSettings-a3e8a905.js → VideoPlayerSettings-e4675b6c.js} +4 -4
  94. package/dist/{VideoSelectModal-0834b28c.js → VideoSelectModal-0f75c3e9.js} +24 -24
  95. package/dist/{answerDocumentMixin-77a657f2.js → answerDocumentMixin-e4d38bf0.js} +3 -3
  96. package/dist/{debounce-7a30cd28.js → debounce-249438e8.js} +9 -9
  97. package/dist/{focusDrawerMixin-4b8dc020.js → focusDrawerMixin-88ff00cf.js} +1 -1
  98. package/dist/{formComponentsInstall-b7ccf504.js → formComponentsInstall-f602ecc3.js} +158 -200
  99. package/dist/{formDrawerState-66870f5d.js → formDrawerState-8a5d45a8.js} +1 -1
  100. package/dist/{formValidationMixin-00449d9c.js → formValidationMixin-4c12cbd6.js} +1 -1
  101. package/dist/{index-86143b34.js → index-02573377.js} +7 -8
  102. package/dist/index-12a0fc1b.js +171 -0
  103. package/dist/index-23806d5a.js +14 -0
  104. package/dist/{index-47104181.js → index-54f4fd56.js} +9 -9
  105. package/dist/{index-26b885b0.js → index-8a009539.js} +44 -44
  106. package/dist/{index-9ed00aac.js → index-dce39a81.js} +1 -1
  107. package/dist/index.es.js +3 -3
  108. package/dist/index.umd.js +203 -209
  109. package/dist/{main-046afb6a.js → main-8fe92642.js} +9885 -9286
  110. package/dist/{mapFormMixin-55374367.js → mapFormMixin-18916025.js} +1 -1
  111. package/dist/{publicSenderState-6a3c9ab7.js → publicSenderState-8aa670bb.js} +1 -1
  112. package/dist/style.css +2 -2
  113. package/dist/{throttle-c63892db.js → throttle-780e6241.js} +2 -2
  114. package/dist/{tinycolor-acb2af47.js → tinycolor-2d236fc9.js} +1 -1
  115. package/dist/{tippy.esm-33ba8b66.js → tippy.esm-27ce514a.js} +5 -5
  116. package/dist/{utils-0876161d.js → utils-9be5e71d.js} +1 -1
  117. package/dist/{vuedraggable.umd-b517a242.js → vuedraggable.umd-455d2d1d.js} +1 -1
  118. package/package.json +1 -1
  119. package/dist/image-025ccec3.js +0 -18
  120. package/dist/index-75dcd2c7.js +0 -15
  121. package/dist/index-c2b908d6.js +0 -166
  122. package/dist/simplebar.min-536ba2c3.js +0 -71
  123. package/dist/template-b0d55fd8.js +0 -535
@@ -1,4 +1,4 @@
1
- import { n as h, Q as m } from "./main-046afb6a.js";
1
+ import { n as h, T as m } from "./main-8fe92642.js";
2
2
  function d(t, e, i) {
3
3
  this.$children.forEach((n) => {
4
4
  n.$options.componentName === t ? n.$emit(...[e].concat(i)) : d.apply(n, [t, e].concat([i]));
@@ -1,4 +1,4 @@
1
- import { X as we, j as De, n as $e, ac as ye, K as ve } from "./main-046afb6a.js";
1
+ import { Z as we, j as De, n as $e, ac as ye, L as ve } from "./main-8fe92642.js";
2
2
  /*!
3
3
  * Compressor.js v1.1.1
4
4
  * https://fengyuanchen.github.io/compressorjs
@@ -398,10 +398,10 @@ var Ge = q.ArrayBuffer, Oe = q.FileReader, X = q.URL || q.webkitURL, Ke = /\.\w+
398
398
  value: function(a) {
399
399
  var l = this, d = a.naturalWidth, c = a.naturalHeight, m = a.rotate, y = m === void 0 ? 0 : m, g = a.scaleX, _ = g === void 0 ? 1 : g, U = a.scaleY, A = U === void 0 ? 1 : U, B = this.file, T = this.image, v = this.options, S = document.createElement("canvas"), w = S.getContext("2d"), H = Math.abs(y) % 180 === 90, G = (v.resize === "contain" || v.resize === "cover") && de(v.width) && de(v.height), F = Math.max(v.maxWidth, 0) || 1 / 0, I = Math.max(v.maxHeight, 0) || 1 / 0, z = Math.max(v.minWidth, 0) || 0, W = Math.max(v.minHeight, 0) || 0, L = d / c, D = v.width, $ = v.height;
400
400
  if (H) {
401
- var Q = [I, F];
402
- F = Q[0], I = Q[1];
403
- var Z = [W, z];
404
- z = Z[0], W = Z[1];
401
+ var Z = [I, F];
402
+ F = Z[0], I = Z[1];
403
+ var Q = [W, z];
404
+ z = Q[0], W = Q[1];
405
405
  var K = [$, D];
406
406
  D = K[0], $ = K[1];
407
407
  }
@@ -1625,12 +1625,12 @@ var Ge = q.ArrayBuffer, Oe = q.FileReader, X = q.URL || q.webkitURL, Ke = /\.\w+
1625
1625
  }
1626
1626
  }
1627
1627
  }, $ = typeof navigator < "u" && /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
1628
- function Q(f) {
1628
+ function Z(f) {
1629
1629
  return function(t, r) {
1630
1630
  return ee(t, r);
1631
1631
  };
1632
1632
  }
1633
- var Z = document.head || document.getElementsByTagName("head")[0], K = {};
1633
+ var Q = document.head || document.getElementsByTagName("head")[0], K = {};
1634
1634
  function ee(f, t) {
1635
1635
  var r = $ ? t.media || "default" : f, i = K[r] || (K[r] = {
1636
1636
  ids: /* @__PURE__ */ new Set(),
@@ -1641,7 +1641,7 @@ var Ge = q.ArrayBuffer, Oe = q.FileReader, X = q.URL || q.webkitURL, Ke = /\.\w+
1641
1641
  var u = t.source;
1642
1642
  if (t.map && (u += `
1643
1643
  /*# sourceURL=` + t.map.sources[0] + " */", u += `
1644
- /*# sourceMappingURL=data:application/json;base64,` + btoa(unescape(encodeURIComponent(JSON.stringify(t.map)))) + " */"), i.element || (i.element = document.createElement("style"), i.element.type = "text/css", t.media && i.element.setAttribute("media", t.media), Z.appendChild(i.element)), "styleSheet" in i.element)
1644
+ /*# sourceMappingURL=data:application/json;base64,` + btoa(unescape(encodeURIComponent(JSON.stringify(t.map)))) + " */"), i.element || (i.element = document.createElement("style"), i.element.type = "text/css", t.media && i.element.setAttribute("media", t.media), Q.appendChild(i.element)), "styleSheet" in i.element)
1645
1645
  i.styles.push(u), i.element.styleSheet.cssText = i.styles.filter(Boolean).join(`
1646
1646
  `);
1647
1647
  else {
@@ -1650,7 +1650,7 @@ var Ge = q.ArrayBuffer, Oe = q.FileReader, X = q.URL || q.webkitURL, Ke = /\.\w+
1650
1650
  }
1651
1651
  }
1652
1652
  }
1653
- var te = Q, re = D, ie = function() {
1653
+ var te = Z, re = D, ie = function() {
1654
1654
  var t = this, r = t.$createElement, i = t._self._c || r;
1655
1655
  return i("span", { class: t.className }, [t._t("default"), t._v(" "), i("label", { attrs: { for: t.inputId || t.name } }), t._v(" "), i("input-file")], 2);
1656
1656
  }, ne = [], ae = function(t) {
@@ -1667,7 +1667,7 @@ var Ge = q.ArrayBuffer, Oe = q.FileReader, X = q.URL || q.webkitURL, Ke = /\.\w+
1667
1667
  })(Ue);
1668
1668
  var Ye = Ue.exports;
1669
1669
  const Ve = /* @__PURE__ */ De(Ye);
1670
- const Qe = {
1670
+ const Ze = {
1671
1671
  i18nOptions: {
1672
1672
  namespaces: "baseUpload",
1673
1673
  messages: {
@@ -1698,7 +1698,7 @@ const Qe = {
1698
1698
  name: "BaseUpload",
1699
1699
  components: {
1700
1700
  FileUpload: Ve,
1701
- UploadModal: () => import("./UploadModal-fc9b0c7b.js")
1701
+ UploadModal: () => import("./UploadModal-471296cd.js")
1702
1702
  },
1703
1703
  props: {
1704
1704
  // Optional function to handle any errors
@@ -1951,7 +1951,7 @@ const Qe = {
1951
1951
  }
1952
1952
  }
1953
1953
  };
1954
- var Ze = function() {
1954
+ var Qe = function() {
1955
1955
  var l, d, c;
1956
1956
  var n = this, a = n._self._c;
1957
1957
  return a("FileUpload", { ref: "upload", staticClass: "btn btn-primary white-list", attrs: { maximum: n.maximum, "custom-action": n.postAction, extensions: n.extensions, multiple: n.multiple, drop: n.drop || n.modalOpen, size: n.maxSize, thread: 1, accept: n.accept }, on: { input: function(m) {
@@ -1966,8 +1966,8 @@ var Ze = function() {
1966
1966
  n.$emit("upload-success", { response: m }), n.modalOpen = !1;
1967
1967
  } } })], 1)]), (c = n.$refs.upload) != null && c.dropActive ? a("div", { staticClass: "drop-active font-inter", staticStyle: { "pointer-events": "none" } }, [a("style", { tag: "component", attrs: { type: "text/css" } }, [n._v(" * { pointer-events: none !important; } .white-list { pointer-events: initial !important; } ")]), a("BaseIcon", { attrs: { type: "upload-cloud", size: "60" } }), n._v(" " + n._s(n.$t("dropActive")) + " ")], 1) : n._e()]) : n._e()], 2);
1968
1968
  }, et = [], tt = /* @__PURE__ */ $e(
1969
- Qe,
1970
1969
  Ze,
1970
+ Qe,
1971
1971
  et,
1972
1972
  !1,
1973
1973
  null,
@@ -1,4 +1,4 @@
1
- import { n as s, b as i } from "./main-046afb6a.js";
1
+ import { n as s, b as i } from "./main-8fe92642.js";
2
2
  import { g as d } from "./color-71c20583.js";
3
3
  const n = {
4
4
  name: "BlockMedia",
@@ -1,5 +1,5 @@
1
- import { n as s, d as a } from "./main-046afb6a.js";
2
- import "./CSlider.vue_vue_type_style_index_0_lang-473e3473.js";
1
+ import { n as s, d as a } from "./main-8fe92642.js";
2
+ import "./CSlider.vue_vue_type_style_index_0_lang-61beea49.js";
3
3
  const i = {
4
4
  name: "CCallout",
5
5
  components: {
@@ -1,5 +1,5 @@
1
- import { V as f, j as m, n as p } from "./main-046afb6a.js";
2
- class v {
1
+ import { V as f, j as m, n as p } from "./main-8fe92642.js";
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);
5
5
  }
@@ -30,7 +30,7 @@ class v {
30
30
  return this.initialized ? (window.removeEventListener("resize", this._handler, { passive: !0 }), this._initialized = !1, this) : this;
31
31
  }
32
32
  }
33
- const b = new v().init(), c = new f({ data: { windowSize: b } }), g = {
33
+ const v = new b().init(), c = new f({ data: { windowSize: v } }), y = {
34
34
  computed: {
35
35
  windowWidth() {
36
36
  return c.windowSize.width;
@@ -63,7 +63,7 @@ const b = new v().init(), c = new f({ data: { windowSize: b } }), g = {
63
63
  *[tabindex]:not([tabindex="-1"]),
64
64
  *[contenteditable]`) : null;
65
65
  let u;
66
- const y = (t, { value: e = !0 }) => {
66
+ const g = (t, { value: e = !0 }) => {
67
67
  if (e) {
68
68
  let i = r(t), o = r(t, !0);
69
69
  i && i.length > 0 && (u = (s) => {
@@ -75,7 +75,7 @@ const y = (t, { value: e = !0 }) => {
75
75
  }, w = (t) => {
76
76
  t.removeEventListener("keydown", u);
77
77
  }, _ = {
78
- bind: y,
78
+ bind: g,
79
79
  unbind: w
80
80
  };
81
81
  var h = { exports: {} };
@@ -88,8 +88,8 @@ var h = { exports: {} };
88
88
  }
89
89
  t.exports = e.default;
90
90
  })(h, h.exports);
91
- var C = h.exports;
92
- const x = /* @__PURE__ */ m(C), z = x();
91
+ var x = h.exports;
92
+ const C = /* @__PURE__ */ m(x), T = C();
93
93
  function M(t, e) {
94
94
  return e.split(".").reduce((o, s) => o ? o[s] : null, t);
95
95
  }
@@ -111,7 +111,7 @@ const B = ["escape", "outside"], S = {
111
111
  directives: {
112
112
  trapFocus: _
113
113
  },
114
- mixins: [g],
114
+ mixins: [y],
115
115
  props: {
116
116
  value: {
117
117
  type: [String, Number, Boolean, Object, Array, Function],
@@ -266,7 +266,9 @@ const B = ["escape", "outside"], S = {
266
266
  }
267
267
  },
268
268
  mounted() {
269
- typeof window < "u" && (this.getRootElm().addEventListener("click", this.clickedOutside), document.addEventListener("keyup", this.keyPress)), this.appendToBody && (this.$data._bodyEl = k(this.$refs.dropdownMenu), this.updateAppendToBody());
269
+ typeof window < "u" && (this.getRootElm().addEventListener("click", this.clickedOutside), document.addEventListener("keyup", this.keyPress)), this.appendToBody && (this.$data._bodyEl = k(this.$refs.dropdownMenu), this.$data._bodyEl.style.zIndex = Number(
270
+ window.getComputedStyle(this.$el).getPropertyValue("--app-z-index")
271
+ ) + 9999, this.isMobileModal && this.$data._bodyEl.appendChild(this.$refs.mobileBackground), this.updateAppendToBody());
270
272
  },
271
273
  beforeDestroy() {
272
274
  typeof window < "u" && (this.getRootElm().removeEventListener("click", this.clickedOutside), document.removeEventListener("keyup", this.keyPress)), this.appendToBody && $(this.$data._bodyEl);
@@ -375,7 +377,7 @@ const B = ["escape", "outside"], S = {
375
377
  };
376
378
  var A = function() {
377
379
  var e = this, i = e._self._c;
378
- return i("div", { ref: "dropdown", staticClass: "dropdown dropdown-menu-animation", class: e.rootClasses }, [e.inline ? e._e() : i("div", { ref: "trigger", staticClass: "dropdown-trigger", attrs: { role: "button", "aria-haspopup": "true" }, on: { click: e.toggle, mouseenter: e.checkHoverable } }, [e._t("trigger", null, { active: e.isActive })], 2), i("transition", { attrs: { name: "fade-in" } }, [e.isMobileModal ? i("div", { directives: [{ name: "show", rawName: "v-show", value: e.isActive, expression: "isActive" }], staticClass: "background", attrs: { "aria-hidden": !e.isActive } }) : e._e()]), i("transition", { attrs: { name: e.isMobileModal ? "slide-in-bottom" : e.animation } }, [i("div", { directives: [{ name: "trap-focus", rawName: "v-trap-focus", value: e.trapFocus, expression: "trapFocus" }, { name: "show", rawName: "v-show", value: !e.disabled && (e.isActive || e.isHoverable) || e.inline, expression: "(!disabled && (isActive || isHoverable)) || inline" }], ref: "dropdownMenu", staticClass: "dropdown-menu", style: {
380
+ return i("div", { ref: "dropdown", staticClass: "dropdown dropdown-menu-animation", class: e.rootClasses }, [e.inline ? e._e() : i("div", { ref: "trigger", staticClass: "dropdown-trigger", attrs: { role: "button", "aria-haspopup": "true" }, on: { click: e.toggle, mouseenter: e.checkHoverable } }, [e._t("trigger", null, { active: e.isActive })], 2), i("transition", { attrs: { name: "fade-in" } }, [e.isMobileModal ? i("div", { directives: [{ name: "show", rawName: "v-show", value: e.isActive, expression: "isActive" }], ref: "mobileBackground", staticClass: "fixed inset-0 bg-black/40 z-40", attrs: { "aria-hidden": !e.isActive } }) : e._e()]), i("transition", { attrs: { name: e.isMobileModal ? "slide-in-bottom" : e.animation } }, [i("div", { directives: [{ name: "trap-focus", rawName: "v-trap-focus", value: e.trapFocus, expression: "trapFocus" }, { name: "show", rawName: "v-show", value: !e.disabled && (e.isActive || e.isHoverable) || e.inline, expression: "(!disabled && (isActive || isHoverable)) || inline" }], ref: "dropdownMenu", staticClass: "dropdown-menu", style: {
379
381
  ...e.style,
380
382
  ...e.menuStyling
381
383
  }, attrs: { "aria-hidden": !e.isActive } }, [e.isActive ? [e._t("header"), i("div", { staticClass: "dropdown-content", class: `${e.uniquePopoverClass}`, style: e.contentStyle, attrs: { role: e.ariaRole } }, [e.isMobileModal && e.mobileLabel ? e._t("mobileLabel", function() {
@@ -510,24 +512,24 @@ const E = {
510
512
  var I = function() {
511
513
  var e = this, i = e._self._c;
512
514
  return e.separator ? i("hr", { staticClass: "dropdown-divider" }) : !e.custom && !e.hasLink ? i(e.to && !e.disabled ? "router-link" : "a", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.tooltipItem, expression: "tooltipItem" }], tag: "component", staticClass: "dropdown-item truncate-text", class: [e.anchorClasses, `is-${e.type}`], attrs: { to: e.to, role: e.ariaRoleItem, tabindex: e.isFocusable ? 0 : null }, on: { click: e.selectItem } }, [e.iconLeft ? i("BaseIcon", e._b({ staticClass: "icon dropdown-item-icon", attrs: { type: e.iconLeft } }, "BaseIcon", { size: 18, ...e.iconProps }, !1)) : e._e(), e._t("default"), e.toggle ? i("CSwitch", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.tooltipItem, expression: "tooltipItem" }], staticStyle: { display: "inline-flex", "pointer-events": "none", position: "absolute", right: "0", top: "50%", transform: "translateY(-50%)", "margin-right": "0" }, attrs: { value: e.value, size: "tiny", type: "success" } }) : e._e(), e.iconRight ? i("BaseIcon", e._b({ staticClass: "icon dropdown-item-icon is-right", attrs: { type: e.iconRight || "chevron-up-down" } }, "BaseIcon", { size: 18, ...e.iconProps }, !1)) : e._e()], 2) : i("div", { staticClass: "truncate-text", class: [e.itemClasses, `is-${e.type}`], attrs: { role: e.ariaRoleItem, tabindex: e.isFocusable ? 0 : null }, on: { click: e.selectItem } }, [e.iconLeft ? i("BaseIcon", e._b({ staticClass: "icon dropdown-item-icon", attrs: { type: e.iconLeft } }, "BaseIcon", { size: 18, ...e.iconProps }, !1)) : e._e(), e._t("default"), e.iconRight ? i("BaseIcon", e._b({ staticClass: "icon dropdown-item-icon is-right", attrs: { type: e.iconRight } }, "BaseIcon", { size: 18, ...e.iconProps }, !1)) : e._e()], 2);
513
- }, R = [], T = /* @__PURE__ */ p(
515
+ }, z = [], P = /* @__PURE__ */ p(
514
516
  E,
515
517
  I,
516
- R,
518
+ z,
517
519
  !1,
518
520
  null,
519
521
  null,
520
522
  null,
521
523
  null
522
524
  );
523
- const j = T.exports;
525
+ const N = P.exports;
524
526
  export {
525
527
  H as C,
526
- j as a,
528
+ N as a,
527
529
  D as b,
528
530
  k as c,
529
531
  M as g,
530
- z as i,
532
+ T as i,
531
533
  $ as r,
532
- g as w
534
+ y as w
533
535
  };
@@ -1,4 +1,4 @@
1
- import { n } from "./main-046afb6a.js";
1
+ import { n } from "./main-8fe92642.js";
2
2
  import "./CField.vue_vue_type_style_index_0_lang-4ed993c7.js";
3
3
  const l = {
4
4
  name: "CFieldBody",
@@ -1,4 +1,4 @@
1
- import { s as e, t as n, n as o } from "./main-046afb6a.js";
1
+ import { t as e, u as n, n as o } from "./main-8fe92642.js";
2
2
  const r = {
3
3
  name: "CPhoneFormat",
4
4
  props: {
@@ -1,4 +1,4 @@
1
- import { n as s, ah as r } from "./main-046afb6a.js";
1
+ import { n as s, aj as r } from "./main-8fe92642.js";
2
2
  const o = {
3
3
  name: "SmartList",
4
4
  props: {
@@ -1,5 +1,5 @@
1
- import { S as o } from "./SearchApi-2070fc66.js";
2
- import { n as l, w as c } from "./main-046afb6a.js";
1
+ import { S as o } from "./SearchApi-95506360.js";
2
+ import { n as l, w as c } from "./main-8fe92642.js";
3
3
  const i = {
4
4
  i18nOptions: {
5
5
  namespaces: "components",
@@ -1,37 +1,37 @@
1
- import { A as p, T as h, I as v, n as u, U as y, c as C, b as d, g as c, W as b, w as _ } from "./main-046afb6a.js";
2
- import { m as f, b as $, a as w } from "./vuex.esm-4a0fff7c.js";
3
- import { w as x } from "./CDropdownItem-0c39e15e.js";
4
- import { C as k } from "./ClientAutocomplete-ea948de7.js";
5
- import { v as s } from "./index-805c56e4.js";
6
- import "./SearchApi-2070fc66.js";
7
- import "./debounce-7a30cd28.js";
8
- function g(n) {
9
- if (typeof n > "u")
1
+ import { A as u, W as v, I as y, n as p, X as C, c as b, b as d, g as c, Y as _, w as $ } from "./main-8fe92642.js";
2
+ import { m as f, b as w, a as x } from "./vuex.esm-4a0fff7c.js";
3
+ import { w as g } from "./CDropdownItem-80d6f1d6.js";
4
+ import { C as k } from "./ClientAutocomplete-2b46278b.js";
5
+ import { v as r } from "./index-805c56e4.js";
6
+ import "./SearchApi-95506360.js";
7
+ import "./debounce-249438e8.js";
8
+ function h(a) {
9
+ if (typeof a > "u")
10
10
  throw Error("Missing param inputParam");
11
- let e = n;
11
+ let e = a;
12
12
  Number.isInteger(e) && (e = e.toString());
13
13
  let t = 0;
14
- const i = e.length, a = i % 2;
15
- let o, r;
16
- for (o = 0; o < i; o += 1)
17
- r = parseInt(e.charAt(o), 10), o % 2 === a && (r *= 2), r > 9 && (r -= 9), t += r;
14
+ const i = e.length, n = i % 2;
15
+ let s, o;
16
+ for (s = 0; s < i; s += 1)
17
+ o = parseInt(e.charAt(s), 10), s % 2 === n && (o *= 2), o > 9 && (o -= 9), t += o;
18
18
  return t % 10 === 0;
19
19
  }
20
- function m(n) {
21
- let e = n.replace(/ /g, "");
22
- return e = e.replace(/-/g, ""), !g(e) || (e = [e.slice(0, 6), "-", e.slice(6)].join(""), !e.match(/^(\d{6})-(\d{4})$/)) ? !1 : e;
20
+ function m(a) {
21
+ let e = a.replace(/ /g, "");
22
+ return e = e.replace(/-/g, ""), !h(e) || (e = [e.slice(0, 6), "-", e.slice(6)].join(""), !e.match(/^(\d{6})-(\d{4})$/)) ? !1 : e;
23
23
  }
24
- function l(n) {
25
- if (typeof n > "u" || n === null || n === "")
24
+ function l(a) {
25
+ if (typeof a > "u" || a === null || a === "")
26
26
  return !1;
27
- let e = n.trim().replace(/[^0-9]+/g, "");
27
+ let e = a.trim().replace(/[^0-9]+/g, "");
28
28
  if (e.length !== 10 && e.length !== 12)
29
29
  return !1;
30
30
  if (e.length === 10) {
31
- const a = e.substring(0, 2), o = (/* @__PURE__ */ new Date()).getFullYear(), r = parseInt(o.toString().substring(2, 2), 10);
32
- parseInt(a, 10) === 19 || parseInt(a, 10) === 20 || (parseInt(a, 10) >= 0 && parseInt(a, 10) <= r ? e = `20${e}` : e = `19${e}`);
31
+ const n = e.substring(0, 2), s = (/* @__PURE__ */ new Date()).getFullYear(), o = parseInt(s.toString().substring(2, 2), 10);
32
+ parseInt(n, 10) === 19 || parseInt(n, 10) === 20 || (parseInt(n, 10) >= 0 && parseInt(n, 10) <= o ? e = `20${e}` : e = `19${e}`);
33
33
  }
34
- return (/* @__PURE__ */ new Date()).getFullYear() - parseInt(e.substring(0, 4), 10) < 16 ? !1 : g(e.substring(2)) ? e : !1;
34
+ return (/* @__PURE__ */ new Date()).getFullYear() - parseInt(e.substring(0, 4), 10) < 16 ? !1 : h(e.substring(2)) ? e : !1;
35
35
  }
36
36
  const S = {
37
37
  sv: {
@@ -149,7 +149,7 @@ const S = {
149
149
  }
150
150
  }
151
151
  };
152
- const { mapFields: N } = p({
152
+ const { mapFields: N } = u({
153
153
  getterType: "forms/getField",
154
154
  mutationType: "forms/updateField"
155
155
  }), I = {
@@ -160,9 +160,9 @@ const { mapFields: N } = p({
160
160
  },
161
161
  components: {
162
162
  ClientAutocomplete: k,
163
- Animation: h
163
+ Animation: v
164
164
  },
165
- mixins: [x],
165
+ mixins: [g],
166
166
  props: {
167
167
  requireReference: {
168
168
  type: Boolean,
@@ -213,32 +213,32 @@ const { mapFields: N } = p({
213
213
  }
214
214
  },
215
215
  reference: {
216
- required: s.requiredIf((e) => e.requireReference && !e.isIndivid)
216
+ required: r.requiredIf((e) => e.requireReference && !e.isIndivid)
217
217
  },
218
218
  email: {
219
- email: s.email
219
+ email: r.email
220
220
  }
221
221
  } : {
222
222
  name: {
223
- required: s.required
223
+ required: r.required
224
224
  },
225
225
  orgNo: {
226
- required: s.requiredIf((e) => e.type === "company")
226
+ required: r.requiredIf((e) => e.type === "company")
227
227
  },
228
228
  cellphone: {
229
- required: s.requiredIf((e) => !e.isIndivid)
229
+ required: r.requiredIf((e) => !e.isIndivid)
230
230
  },
231
231
  reference: {
232
- required: s.requiredIf((e) => !e.isIndivid)
232
+ required: r.requiredIf((e) => !e.isIndivid)
233
233
  },
234
234
  email: {
235
- required: s.requiredIf((e) => !e.isIndivid)
235
+ required: r.requiredIf((e) => !e.isIndivid)
236
236
  }
237
237
  };
238
238
  },
239
239
  watch: {
240
- type(n) {
241
- v.setItem("defaultClientType", n);
240
+ type(a) {
241
+ y.setItem("defaultClientType", a);
242
242
  }
243
243
  },
244
244
  computed: {
@@ -290,9 +290,9 @@ const { mapFields: N } = p({
290
290
  get() {
291
291
  return this.realOrgNo;
292
292
  },
293
- set(n) {
294
- const e = this.isIndivid ? l(n) : m(n) || l(n);
295
- return this.validateOrgNo && e ? (this.realOrgNo = e, !0) : (this.realOrgNo = n, !0);
293
+ set(a) {
294
+ const e = this.isIndivid ? l(a) : m(a) || l(a);
295
+ return this.validateOrgNo && e ? (this.realOrgNo = e, !0) : (this.realOrgNo = a, !0);
296
296
  }
297
297
  },
298
298
  isIndivid() {
@@ -333,7 +333,7 @@ var F = function() {
333
333
  }, "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) {
334
334
  return t("CDropdownItem", { key: i, attrs: { "icon-left": i === "signee" ? "pen-tool" : "eye", "icon-props": {
335
335
  stroke: "hsl(0, 0%, 50%)"
336
- } }, on: { click: function(a) {
336
+ } }, on: { click: function(n) {
337
337
  return e.$emit("update:document-role", i);
338
338
  } } }, [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`)) + " ")])])]);
339
339
  })], 2) : e._e(), t("CButton", { attrs: { type: "secondary", pattern: "tertiary", size: "small", "icon-left": "arrow-right" }, on: { click: function(i) {
@@ -379,7 +379,7 @@ var F = function() {
379
379
  }, "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) {
380
380
  return t("CDropdownItem", { key: i, attrs: { "icon-left": i === "signee" ? "pen-tool" : "eye", "icon-props": {
381
381
  stroke: "hsl(0, 0%, 50%)"
382
- } }, on: { click: function(a) {
382
+ } }, on: { click: function(n) {
383
383
  return e.$emit("update:document-role", i);
384
384
  } } }, [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`)) + " ")])])]);
385
385
  })], 2)], 1) : e._e(), e.answerMethod ? t("div", { staticClass: "dropdown-field-wrapper" }, [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", wide: "" }, slot: "trigger" }, [t("div", { staticStyle: { "line-height": "1.25", padding: "4px 0" } }, [t("div", [e._v(e._s(e.$t(`signMethod.${e.answerMethod.accept}.title`)))]), t("div", { staticClass: "truncate", staticStyle: { "font-size": "12px", opacity: "0.7" } }, [e._v(" " + e._s(e.$t(`signMethod.${e.answerMethod.accept}.content`)) + " ")])])]), e._l([
@@ -387,14 +387,14 @@ var F = function() {
387
387
  "signature",
388
388
  "inPerson"
389
389
  ], function(i) {
390
- return t("CDropdownItem", { key: i, on: { click: function(a) {
390
+ return t("CDropdownItem", { key: i, on: { click: function(n) {
391
391
  return e.$emit("update:answer-method", {
392
392
  ...e.answerMethod,
393
393
  accept: i
394
394
  });
395
395
  } } }, [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`)) + " ")])])]);
396
396
  })], 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)]);
397
- }, z = [], M = /* @__PURE__ */ u(
397
+ }, z = [], M = /* @__PURE__ */ p(
398
398
  I,
399
399
  F,
400
400
  z,
@@ -404,18 +404,44 @@ var F = function() {
404
404
  null,
405
405
  null
406
406
  );
407
- const R = M.exports, { mapFields: O } = p({
407
+ const R = M.exports, { mapFields: O } = u({
408
408
  getterType: "forms/getField",
409
409
  mutationType: "forms/updateField"
410
410
  }), q = {
411
411
  name: "ClientModal",
412
412
  i18nOptions: {
413
- namespaces: "components",
414
- keyPrefix: "account.documentForm.clients"
413
+ namespaces: "clientModal",
414
+ messages: {
415
+ en: {
416
+ unsavedDialog: {
417
+ title: "Unsaved changes",
418
+ message: "Are you sure you want to cancel?",
419
+ cancel: "No",
420
+ submit: "Yes"
421
+ },
422
+ removeDialog: {
423
+ title: "Remove recipient",
424
+ message: "Would you like to remove recipient from the document?"
425
+ }
426
+ },
427
+ sv: {
428
+ unsavedDialog: {
429
+ title: "Osparade ändringar",
430
+ message: "Är du säker på att du vill avbryta?",
431
+ cancel: "Stanna kvar",
432
+ submit: "Ja, stäng"
433
+ },
434
+ removeDialog: {
435
+ title: "Ta bort mottagare",
436
+ message: "Vill du ta bort mottagaren från dokumentet?"
437
+ }
438
+ }
439
+ }
415
440
  },
416
441
  components: {
417
442
  FormClient: R
418
443
  },
444
+ mixins: [g],
419
445
  props: {
420
446
  documentClientIndex: {
421
447
  type: Number,
@@ -437,6 +463,10 @@ const R = M.exports, { mapFields: O } = p({
437
463
  type: Function,
438
464
  required: !0
439
465
  },
466
+ removeFormValue: {
467
+ type: Function,
468
+ required: !0
469
+ },
440
470
  // Optional prop if this modal is mounted from public form
441
471
  isPublicForm: {
442
472
  type: Boolean,
@@ -461,8 +491,8 @@ const R = M.exports, { mapFields: O } = p({
461
491
  ...O({
462
492
  endCustomer: "endCustomer"
463
493
  }),
464
- ...$("forms", {
465
- formData: (n) => n.document2
494
+ ...w("forms", {
495
+ formData: (a) => a.document2
466
496
  }),
467
497
  ...f({
468
498
  can: "application/can",
@@ -470,17 +500,20 @@ const R = M.exports, { mapFields: O } = p({
470
500
  defaultClientType: "endCustomers/defaultClientType"
471
501
  }),
472
502
  validateOrgNo() {
473
- return !!(this.feature("bankId") || this.isPublicForm && y[C.brand].defaultRegion === "SE");
503
+ return !!(this.feature("bankId") || this.isPublicForm && C[b.brand].defaultRegion === "SE");
504
+ },
505
+ existsOnDocument() {
506
+ return !!d(this.formData, `clients[${this.documentClientIndex}]`);
474
507
  }
475
508
  },
476
509
  created() {
477
510
  this.forceExpand && (this.showMore = !0);
478
- const n = d(
511
+ const a = d(
479
512
  this.formData,
480
513
  `clients[${this.documentClientIndex}]`,
481
514
  {}
482
515
  );
483
- this.loadForm(n), ["endCustomer", "storedNewClient"].forEach(
516
+ this.loadForm(a), ["endCustomer", "storedNewClient"].forEach(
484
517
  (e) => this.$watch(e, {
485
518
  deep: !0,
486
519
  handler() {
@@ -490,31 +523,51 @@ const R = M.exports, { mapFields: O } = p({
490
523
  );
491
524
  },
492
525
  methods: {
493
- ...w({
526
+ ...x({
494
527
  saveClient: c.FORM_SUBMIT_ENDCUSTOMER,
495
528
  showMessage: c.SHOW_MESSAGE
496
529
  }),
497
- loadForm(n = {}) {
498
- this.storedNewClient = Object.assign(this.storedNewClient, n), this.endCustomer = b({
530
+ loadForm(a = {}) {
531
+ this.storedNewClient = Object.assign(this.storedNewClient, a), this.endCustomer = _({
499
532
  type: this.defaultClientType(),
500
- ...n
533
+ ...a
501
534
  });
502
535
  },
503
536
  async onSave() {
504
537
  this.isLoading = !0;
505
- let n = d(this.endCustomer, "id");
538
+ let a = d(this.endCustomer, "id");
506
539
  if (!this.isPublicForm) {
507
540
  let e = !1;
508
- this.endCustomer && (this.endCustomer.id ? this.can("endCustomers", "modify", this.endCustomer.id) && (e = !0) : this.can("endCustomers", "create") && (e = !0)), e && (n = await this.saveClient());
541
+ this.endCustomer && (this.endCustomer.id ? this.can("endCustomers", "modify", this.endCustomer.id) && (e = !0) : this.can("endCustomers", "create") && (e = !0)), e && (a = await this.saveClient());
509
542
  }
510
543
  this.setFormValue({
511
544
  key: `clients[${this.documentClientIndex}]`,
512
- value: _(
513
- { ...this.endCustomer, ...n && { id: n } },
545
+ value: $(
546
+ { ...this.endCustomer, ...a && { id: a } },
514
547
  { ...this.storedNewClient, signOrder: this.signOrder }
515
548
  )
516
549
  }), this.$emit("close"), this.isLoading = !1;
517
550
  },
551
+ removeClient() {
552
+ this.showMessage({
553
+ displayType: "dialog",
554
+ type: "danger",
555
+ title: this.$t("removeDialog.title"),
556
+ message: this.$t("removeDialog.message"),
557
+ actions: {
558
+ cancel: {
559
+ text: this.$t("_common:cancel"),
560
+ callback: "cancel"
561
+ },
562
+ submit: {
563
+ text: this.$t("_common:remove"),
564
+ callback: () => {
565
+ this.removeFormValue(`clients[${this.documentClientIndex}]`), this.$emit("close");
566
+ }
567
+ }
568
+ }
569
+ });
570
+ },
518
571
  close() {
519
572
  return !this.hasChanged || !this.showMore ? this.$emit("close") : this.showMessage({
520
573
  displayType: "dialog",
@@ -539,7 +592,7 @@ var A = function() {
539
592
  var e = this, t = e._self._c;
540
593
  return t("div", { staticClass: "font-primary bg-black bg-opacity-10 fixed inset-0 sm:py-4 z-[1000] grid place-items-center overflow-auto max-sm:w-full max-sm:min-h-full max-sm:block max-sm:overflow-auto", on: { "&click": function(i) {
541
594
  return i.target !== i.currentTarget ? null : e.close.apply(null, arguments);
542
- } } }, [t("div", { staticClass: "relative flex flex-col items-center p-10 mx-auto text-lg bg-white rounded-xl max-sm:w-full max-sm:h-initial max-sm:min-h-full max-sm:rounded-none" }, [t("CButton", { staticClass: "absolute z-2 top-4 right-4", class: e.showMore ? "" : "sm:!hidden", attrs: { pattern: "tertiary", type: "none", circle: "", icon: "x" }, on: { click: e.close } }), t("FormClient", { staticClass: "max-w-full p-0", class: [e.showMore ? "w-[520px]" : "w-[360px]"], attrs: { "search-enabled": !0, "require-reference": !1, "simple-form": !e.showMore, "input-focus-on-mount": e.inputFocusOnMount, "document-role": e.storedNewClient.documentRole, "answer-method": e.storedNewClient.answerMethod, "validate-org-no": e.validateOrgNo, "is-public-form": e.isPublicForm }, on: { "update:documentRole": function(i) {
595
+ } } }, [t("div", { staticClass: "relative flex flex-col items-center p-10 max-sm:pt-16 mx-auto text-lg bg-white rounded-xl max-sm:w-full max-sm:h-initial max-sm:min-h-full max-sm:rounded-none" }, [t("CButton", { staticClass: "absolute z-2 top-4 right-4", class: e.showMore ? "" : "sm:!hidden", attrs: { pattern: "tertiary", type: "none", circle: "", icon: "x" }, on: { click: e.close } }), t("FormClient", { staticClass: "max-w-full p-0", class: [e.showMore ? "w-[520px]" : "w-[360px]"], attrs: { "search-enabled": !0, "require-reference": !1, "simple-form": !e.showMore, "input-focus-on-mount": e.inputFocusOnMount, "document-role": e.storedNewClient.documentRole, "answer-method": e.storedNewClient.answerMethod, "validate-org-no": e.validateOrgNo, "is-public-form": e.isPublicForm }, on: { "update:documentRole": function(i) {
543
596
  return e.$set(e.storedNewClient, "documentRole", i);
544
597
  }, "update:document-role": function(i) {
545
598
  return e.$set(e.storedNewClient, "documentRole", i);
@@ -551,18 +604,18 @@ var A = function() {
551
604
  return e.loadForm(i);
552
605
  }, submit: e.onSave, "show-more": function(i) {
553
606
  e.showMore = !0;
554
- } } })], 1)]);
555
- }, B = [], P = /* @__PURE__ */ u(
607
+ } } }), 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)]);
608
+ }, D = [], B = /* @__PURE__ */ p(
556
609
  q,
557
610
  A,
558
- B,
611
+ D,
559
612
  !1,
560
613
  null,
561
614
  null,
562
615
  null,
563
616
  null
564
617
  );
565
- const U = P.exports;
618
+ const U = B.exports;
566
619
  export {
567
620
  U as default
568
621
  };
@@ -1,4 +1,4 @@
1
- import { X as ht, n as bt } from "./main-046afb6a.js";
1
+ import { Z as ht, n as bt } from "./main-8fe92642.js";
2
2
  var vt = { exports: {} };
3
3
  (function(gt, Ct) {
4
4
  (function(c, i) {
@@ -1,7 +1,7 @@
1
- import { A as r, g as i, n as l } from "./main-046afb6a.js";
2
- import { w as c } from "./CDropdownItem-0c39e15e.js";
1
+ import { A as r, g as i, n as l } from "./main-8fe92642.js";
2
+ import { w as c } from "./CDropdownItem-80d6f1d6.js";
3
3
  import { m as p, b as o, a as d } from "./vuex.esm-4a0fff7c.js";
4
- import { s as n, a as u } from "./publicSenderState-6a3c9ab7.js";
4
+ import { s as n, a as u } from "./publicSenderState-8aa670bb.js";
5
5
  import { v as m } from "./index-805c56e4.js";
6
6
  const { mapFields: f } = r({
7
7
  getterType: "forms/getField",