eservices-core 1.3.39 → 1.3.41

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.
@@ -1,11 +1,11 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('*{--extra-fast:.1s;--fast:.2s;--medium:.3s;box-sizing:border-box;--primary: #3949ab }html,body,#app{height:100%}body{margin:0}ul{text-align:left}.flex{display:flex}.flex_column{display:flex;flex-direction:column}.flex_center{display:flex;align-items:center;justify-content:center}.flex_full,.flex_grow{flex-grow:1}.flex-align_center{align-items:center}.grid{display:grid}.grid-center{display:grid;place-content:center}.link{text-decoration:var(--link-decoration);color:var(--link-color)}.link_hover-underline:hover,.link_hover_underline:hover{text-decoration:underline}.link_full{position:absolute;height:100%;width:100%;left:0;top:0}.text_sm{font-weight:400;font-size:12px;line-height:16px}.text_md{font-size:14px;line-height:20px}.text_lg{font-size:16px;line-height:24px}.text_size_xxl{font-size:18px;line-height:25px}.text_bold{font-weight:600}.text_nowrap{white-space:nowrap}.text_right{text-align:right}.text_center{text-align:center}.text_size_sm{font-size:12px;line-height:130%}.text_size_md{font-size:14px;line-height:140%}.text_error{color:red}.text_overflow{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.title_sm{font-weight:600;font-size:16px;line-height:24px}.title_md{font-weight:600;font-size:24px;line-height:32px}.title_lg{font-weight:700;font-size:32px;line-height:48px}.title_xxl,.title_xl{font-weight:700;font-size:48px;line-height:64px}.cursor_pointer{cursor:pointer}.cursor_default{cursor:default}button{outline:none;-webkit-user-select:none;user-select:none;transition:background-color .2s}.button{display:flex;align-items:center;justify-content:center;outline:none}.button_main{background-color:var(--button-background);color:var(--button-color)}.button_main:focus{background-color:var(--button-background-active)}.button_main:active{background-color:var(--button-background-active)}.button_white{background-color:var(--white);color:var(--main)}.button_sm{height:30px;width:130px}.button_shadow{box-shadow:0 2px 4px #00000040}.button_lg{font-weight:600;font-size:16px;line-height:24px;padding:12px 0;height:50px;width:200px}.button_disabled{background-color:var(--gray-1)}.button_resolve{background-color:var(--main);color:var(--white);border-radius:2px}.button_reject{border:1px solid var(--color-dark);border-radius:2px}.button_md{height:30px;padding:0 10px;min-width:80px}.button_disabled{background-color:var(--button-disabled-background-color);cursor:pointer!important}.color_main,.color__text_main{color:var(--main)}.color__text_black{color:var(--black-1)}.color__text_gray{color:var(--text-gray)}.color__text_red,.color_red{color:var(--red)}.color__text_white{color:var(--white)}.background_orange{background-color:var(--orange)}.background_red{background-color:var(--red)}.color_dark{color:var(--dark)}.color_light{color:var(--light)}.move-vertical-enter-active,.move-vertical-leave-active{transition:transform .5s ease}.move-vertical-enter-from,.move-vertical-leave-to{transform:translateY(-10px)}.move-horizontal-enter-active,.move-horizontal-leave-active{transition:transform .5s}.move-horizontal-enter-from,.move-horizontal-leave-to{transform:translate(-40px)}.modal-vertical-enter-active,.modal-vertical-leave-active,.modal-default{transition:transform var(--medium)}.modal-vertical-enter-active .modal-default,.modal-vertical-leave-active .modal-default{transform:translateY(-100px)}.move-vertical-fast-enter-active,.move-vertical-fast-leave-active{transition:transform var(--fast) ease}.move-vertical-fast-enter-from,.move-vertical-fast-leave-to{transform:translateY(-20px)}.slide-up-enter-active,.slide-up-leave-active{transition:transform var(--fast) ease,opacity var(--fast)}.slide-up-enter-from,.slide-up-leave-to{transform:translateY(20px);opacity:0}.opacity-enter-active,.opacity-leave-active{transition:opacity var(--fast) ease}.opacity-enter-from,.opacity-leave-to{opacity:0}.list-move,.list-enter-active,.list-leave-active{transition:all .5s ease}.list-enter-from,.list-leave-to{opacity:0;transform:translate(30px)}.list-leave-active{position:absolute}.modal-default{background-color:var(--white);position:relative;z-index:1;width:auto;background:var(--white);border-radius:var(--border-radius)}.modal-default__head{background-color:var(--black-1);text-align:center;padding:5px 0;border-radius:6px 6px 0 0}.modal-default__body{gap:20px;padding:0 15px}.modal-default__foot{padding:30px 0;display:flex;justify-content:center}.hint-tooltip{display:block;z-index:222;margin:auto;pointer-events:none;box-shadow:0 0 0 9999px #00000080}.tooltip-help-circle-in,.tooltip-help-circle-out{border-radius:50%}.tooltip-help-undefined{border-radius:50px}.tooltip-card{position:fixed;z-index:315;display:flex;flex-direction:column;width:480px;height:fit-content;margin:auto;border-radius:10px;background-color:var(--hint-background);cursor:default}.tooltip-card__foot{display:flex;justify-content:space-between;align-items:center;background-color:var(--hint-background-navigation);border-radius:10px;padding:20px}.tooltip-card__foot-current{font-weight:600;font-size:20px;line-height:24px;color:var(--white)}.tooltip-card__body{position:relative;display:flex;flex-direction:column;gap:8px;padding:20px 20px 10px}.tooltip-card__body-title{font-weight:700;font-size:20px;line-height:24px;color:var(--white)}.tooltip-card__body-text{font-size:16px;line-height:24px;color:var(--white)}.tooltip-card__foot-button_back{background-color:var(--main-1)}.tooltip-card__foot-button_next{background-color:var(--hint)}.tooltip-card__body-close{position:absolute;right:22px;top:12px;width:20px;height:16px;opacity:.3;cursor:pointer}.tooltip-card__body-close:hover{opacity:1}.tooltip-card__body-close:before,.tooltip-card__body-close:after{position:absolute;left:15px;content:" ";height:21px;width:2px;background-color:#fff}.tooltip-card__body-close:before{transform:rotate(45deg)}.tooltip-card__body-close:after{transform:rotate(-45deg)}.tooltip-card-container-wrap{pointer-events:none;position:absolute;left:0;top:0;z-index:123132;height:100%;width:100%}.tooltip-card-container-wrap>div{height:100%;width:100%;display:flex;justify-content:center;align-items:center}.tester-box-tooltip{pointer-events:all}.position_relative{position:relative}.position_absolute{position:absolute}.gap_5{gap:5px}.gap_10{gap:10px}.gap_15{gap:15px}.gap_20{gap:20px}.margin-0,.margin_0{margin:0}.widget-input{background-color:var(--input-background);border:var(--input-border);border-radius:var(--input-border-radius);color:var(--input-color)}.widget-input:disabled{background-color:var(--input-background-disabled);border:var(--input-border-disabled)}.widget-input[error=true]{border:var(--input-border-error)}.widget-input::placeholder{color:var(--input-placeholder-color)}.widget-input:disabled::placeholder{color:var(--input-placeholder-color-disabled)}.input_error{border:1px solid red!important}.input_size_md{height:var(--input-height)}.input-title{font-size:12px;line-height:16px;color:#667085;margin:4px 0}.widget-table{border-collapse:collapse}.widget-table_mini p{margin:0}.list-cell-link>a{position:absolute;left:0;top:0;z-index:1;height:100%;width:100%;cursor:pointer}.list-cell-link>p{font-weight:500}.widget-table__cell{padding:0 20px;font-weight:400;font-size:14px;line-height:19px;color:#4f4f4f}.widget-table-cell_use{cursor:pointer}.widget-table-cell_select{width:min-content}.table-cell-toggle{--border-color: black;position:relative;display:grid;place-content:center;border:1px solid var(--border-color);height:15px;aspect-ratio:1 / 1;border-radius:50%}.table-cell-toggle_active:after{content:"";border-radius:50%;background-color:var(--border-color);height:9px;aspect-ratio:1/1}.widget-table-cell_number{text-align:right}.overflow_auto{overflow:auto}.overflow_hidden{overflow:hidden}.padding_5{padding:5px}.padding_10{padding:10px}.padding_0{padding:0}.padding_15{padding:15px}.padding_20{padding:20px}.es-list-container{overflow:auto}.radius_5{border-radius:5px}.radius_10{border-radius:10px}.radius_15{border-radius:15px}.radius_20{border-radius:20px}.widget-table__head-cell[data-v-25198f4a]{padding:18px;text-align:start}.widget-table__head-label[data-v-25198f4a]{font-weight:600;font-size:14px;line-height:19px}[dir=rtl] .icon[data-v-e287c8d9]{transform:scaleX(-1)}.widget-spinner[data-v-0ef9ae88],.widget-spinner[data-v-0ef9ae88]:after{border-radius:50%;width:14px;height:14px}.widget-spinner[data-v-0ef9ae88]{font-size:2px;position:relative;text-indent:-9999em;border-top:1.1em solid rgba(255,255,255,.2);border-right:1.1em solid rgba(255,255,255,.2);border-bottom:1.1em solid rgba(255,255,255,.2);border-left:1.1em solid #ffffff;transform:translateZ(0);animation:spinnerAnimation-0ef9ae88 1.1s infinite linear}@keyframes spinnerAnimation-0ef9ae88{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.widget-button[data-v-450dc564]{position:relative}.widget-button-spinner[data-v-450dc564]{position:absolute;top:0;bottom:0;left:5px;margin:auto}.widget-multi-button-wrap[data-v-a8d711d1]{--button-size: 40px;max-height:var(--button-size);z-index:1;width:fit-content}.widget-multi-button[data-v-a8d711d1]{grid-template-columns:1fr var(--button-size);background-color:var(--primary);grid-template-rows:var(--button-size);transition:var(--fast)}.widget-multi-button_active[data-v-a8d711d1]{grid-template-rows:calc(var(--button-size) * var(--7025434e))}.widget-multi-button-body[data-v-a8d711d1]{min-width:80px}.widget-multi-button-body-label[data-v-a8d711d1]{padding:10px 10px 10px 20px;color:#fff;transition:background-color var(--fast)}.widget-multi-button-body-label[data-v-a8d711d1]:hover{background-color:#223296}.widget-multi-button-side[data-v-a8d711d1]{height:var(--button-size);transition:transform var(--fast),background-color var(--fast);color:#fff}.widget-multi-button-side_active[data-v-a8d711d1]{transform:rotate(180deg)}.widget-multi-button-side[data-v-a8d711d1]:hover{background-color:#223296}tr[data-v-344a8cc1]{border:1px solid #F3F4FC;height:30px}th[data-v-344a8cc1],td[data-v-344a8cc1]{position:relative;padding:0 11px}th[data-v-344a8cc1]{text-align:left}p[data-v-344a8cc1]{margin:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.widget-list-head-cell[data-v-bf495d6a]{padding:0 0 0 10px;display:flex}.widget-list-head-cell[data-v-bf495d6a]:hover{box-shadow:0 -1px #e7f2ff}.list-head-cell-label[data-v-bf495d6a]{padding:5px 0;white-space:nowrap;cursor:pointer}.head-cell-order[data-v-bf495d6a]{position:absolute;inset-inline-end:22px;inset-block:0 0;margin:auto;font-size:14px;height:14px}.head-cell-order_down[data-v-bf495d6a]{transform:rotate(180deg)}.head-cell-resize[data-v-bf495d6a]{padding:3px 10px;cursor:col-resize;transition:background-color .1s}.head-cell-resize[data-v-bf495d6a]:hover{background-color:#f5f5f5}.head-cell-resize[data-v-bf495d6a]:after{content:"";margin:auto;width:1px;height:100%;display:block;background-color:#d2d2d2}.widget-list-head[data-v-ccffc6bd]{position:sticky;top:-1px;z-index:1}.test-block[data-v-ccffc6bd]{position:absolute;z-index:2;display:none;height:calc(100% + 1px);place-content:center;inset-block-start:-1px;padding-inline:10px;background-color:#e7f2ff;-webkit-user-select:none;user-select:none;white-space:nowrap}.widget-list-head th[data-v-ccffc6bd]{position:sticky;top:0;z-index:2;-webkit-user-select:none;user-select:none}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- import { reactive as M, defineComponent as $, openBlock as y, createElementBlock as _, Fragment as ie, renderList as we, createElementVNode as C, toDisplayString as ge, h as L, ref as V, onMounted as He, createBlock as x, resolveDynamicComponent as Bt, mergeProps as Et, useSlots as Kt, computed as Ee, createVNode as ke, normalizeClass as Re, createCommentVNode as oe, unref as B, normalizeStyle as _t, renderSlot as zt, useCssVars as Yt, withCtx as vt, createTextVNode as Tt, withModifiers as Jt, pushScopeId as Ht, popScopeId as Xt, inject as Qt, provide as Zt, readonly as en } from "vue";
3
- import { utils as ee, FormField as qe, Form as St } from "jenesius-vue-form";
2
+ import { reactive as M, defineComponent as k, openBlock as y, createElementBlock as _, Fragment as ie, renderList as we, createElementVNode as C, toDisplayString as ge, h as L, ref as q, onMounted as He, createBlock as x, resolveDynamicComponent as Bt, mergeProps as Et, useSlots as Kt, computed as Ee, createVNode as ke, normalizeClass as Re, createCommentVNode as oe, unref as B, normalizeStyle as _t, renderSlot as zt, useCssVars as Yt, withCtx as vt, createTextVNode as Tt, withModifiers as Jt, pushScopeId as Ht, popScopeId as Xt, inject as Qt, provide as Zt, readonly as en } from "vue";
3
+ import { utils as ee, FormField as Ge, Form as St } from "jenesius-vue-form";
4
4
  import { RouterLink as tn } from "vue-router";
5
5
  import Xe from "debug";
6
6
  import nn from "date-and-time";
7
7
  /*!
8
- * eservices-core v1.3.39
8
+ * eservices-core v1.3.41
9
9
  * (c) 2023 ESERVICES
10
10
  */
11
11
  function rn(n, e) {
@@ -138,9 +138,12 @@ const At = class E extends Error {
138
138
  static MetadataEntityIsNotAvailable(e) {
139
139
  return new E(`Metadata for the ${e} is not currently available.`);
140
140
  }
141
+ static RequestTookToLong() {
142
+ return new E("The request took too long to complete. Try again later.");
143
+ }
141
144
  };
142
145
  At.ID = 0;
143
- let q = At;
146
+ let V = At;
144
147
  const cn = "Please try again later or submit a feedback if problem doesn't go.";
145
148
  class ln {
146
149
  static getClientData() {
@@ -332,7 +335,7 @@ const te = class N extends D {
332
335
  const t = Number.parseInt(localStorage.getItem(N.CURRENT_CONTEXT_KEY) || "");
333
336
  !Number.isNaN(t) && this.validateContextId(Number(t)) ? this.setCurrentContext(t) : this.setCurrentContext(Number(e.id));
334
337
  } catch {
335
- un.add("error", q.ApiNotAvailable().message);
338
+ un.add("error", V.ApiNotAvailable().message);
336
339
  }
337
340
  }
338
341
  loadCustomerData() {
@@ -386,7 +389,7 @@ function pn(n) {
386
389
  }
387
390
  function p(n, e = {}) {
388
391
  return ft.isFront && (e.headers || (e.headers = {}), e.headers["Context-Id"] = ft.contextId), e.redirect = "manual", fetch(n, e).then((t) => t.type === "opaqueredirect" ? void window.location.replace("/auth") : t).catch(() => {
389
- throw q.ApiNotAvailable();
392
+ throw V.ApiNotAvailable();
390
393
  }).then((t) => pn(t).then((r) => {
391
394
  if (!t.ok)
392
395
  throw r;
@@ -618,13 +621,13 @@ const _n = function() {
618
621
  error: l
619
622
  };
620
623
  }();
621
- function Gr() {
624
+ function qr() {
622
625
  return _n;
623
626
  }
624
627
  class b {
625
628
  static parseError(e) {
626
629
  let t = e.errors ? Object.values(e.errors).map((r) => r[0]) : null;
627
- throw q.AuthServiceError(e.title, t);
630
+ throw V.AuthServiceError(e.title, t);
628
631
  }
629
632
  /**
630
633
  * @deprecated
@@ -657,7 +660,7 @@ class b {
657
660
  }
658
661
  static parseProcessAnswer(e) {
659
662
  if (e.statusCode > 4)
660
- throw q.UndefinedError(e.statusName.replace(/([A-Z][a-z])/g, " $1").replace(/(\d)/g, " $1"));
663
+ throw V.UndefinedError(e.statusName.replace(/([A-Z][a-z])/g, " $1").replace(/(\d)/g, " $1"));
661
664
  return e;
662
665
  }
663
666
  static startRegistrationProcess(e) {
@@ -711,7 +714,7 @@ class b {
711
714
  }
712
715
  static parseLoginProcessAnswer(e) {
713
716
  if (e.statusCode > 3)
714
- throw q.UndefinedError(e.statusName.replace(/([A-Z][a-z])/g, " $1").replace(/(\d)/g, " $1"));
717
+ throw V.UndefinedError(e.statusName.replace(/([A-Z][a-z])/g, " $1").replace(/(\d)/g, " $1"));
715
718
  return e;
716
719
  }
717
720
  }
@@ -902,7 +905,7 @@ const Lt = class le {
902
905
  }
903
906
  };
904
907
  Lt.url = "/close-api/communications";
905
- let qr = Lt;
908
+ let Gr = Lt;
906
909
  class Br {
907
910
  static async getDefaultView(e) {
908
911
  return p("/close-api/views/" + e, {
@@ -952,7 +955,7 @@ const Pt = class Ae {
952
955
  };
953
956
  Pt.url = "/close-api/views/process-wizard";
954
957
  let Ve = Pt;
955
- const Cn = { class: "widget-table__head" }, bn = { class: "widget-table__head-label margin_0 text_overflow" }, An = /* @__PURE__ */ $({
958
+ const Cn = { class: "widget-table__head" }, bn = { class: "widget-table__head-label margin_0 text_overflow" }, An = /* @__PURE__ */ k({
956
959
  __name: "widget-table-head",
957
960
  props: {
958
961
  config: {}
@@ -1059,14 +1062,14 @@ function Pn(n, e, t) {
1059
1062
  break;
1060
1063
  }
1061
1064
  case "multi-select": {
1062
- u.push(L(qe, {
1065
+ u.push(L(Ge, {
1063
1066
  type: "single-checkbox",
1064
1067
  modelValue: e.selected
1065
1068
  })), l(gt.bind(null, t, !0));
1066
1069
  break;
1067
1070
  }
1068
1071
  case "select": {
1069
- u.push(L(qe, {
1072
+ u.push(L(Ge, {
1070
1073
  type: "single-radio",
1071
1074
  modelValue: e.selected
1072
1075
  })), l(gt.bind(null, t, !1));
@@ -1107,7 +1110,7 @@ const Dn = {
1107
1110
  selected: Boolean
1108
1111
  },
1109
1112
  setup: xt
1110
- }, xn = ["colspan"], yt = /* @__PURE__ */ $({
1113
+ }, xn = ["colspan"], yt = /* @__PURE__ */ k({
1111
1114
  __name: "widget-table-form",
1112
1115
  props: {
1113
1116
  rowLength: {},
@@ -1117,7 +1120,7 @@ const Dn = {
1117
1120
  },
1118
1121
  emits: ["save", "close"],
1119
1122
  setup(n, { emit: e }) {
1120
- const t = V();
1123
+ const t = q();
1121
1124
  return He(() => {
1122
1125
  setTimeout(() => {
1123
1126
  t.value && t.value.scrollIntoView({ block: "nearest", inline: "nearest", behavior: "smooth" });
@@ -1145,10 +1148,10 @@ const Dn = {
1145
1148
  */
1146
1149
  LOCALSTORAGE_CURRENT_CONTEXT_KEY: "CurrentContext",
1147
1150
  LOCALSTORAGE_LANGUAGE_KEY: "CurrentLanguage",
1148
- DELAY_SOCKET_RECONNECT: 100,
1151
+ DELAY_SOCKET_RECONNECT: 1e3,
1149
1152
  PROVIDE_NAME_METADATA: "provide-metadata-config",
1150
1153
  TIME_TO_LIVE_SOCKET_REQUEST: 1e4
1151
- }, Un = { class: "widget-table" }, mt = "update:selectedRows", Kr = /* @__PURE__ */ $({
1154
+ }, Un = { class: "widget-table" }, mt = "update:selectedRows", Kr = /* @__PURE__ */ k({
1152
1155
  __name: "widget-table",
1153
1156
  props: {
1154
1157
  array: {},
@@ -1208,7 +1211,7 @@ const Dn = {
1208
1211
  ])
1209
1212
  ]));
1210
1213
  }
1211
- }), Mn = /* @__PURE__ */ $({
1214
+ }), Mn = /* @__PURE__ */ k({
1212
1215
  __name: "widget-spinner",
1213
1216
  props: {
1214
1217
  color: { default: "#fff" }
@@ -1220,7 +1223,7 @@ const Dn = {
1220
1223
  }, null, 4));
1221
1224
  }
1222
1225
  });
1223
- const nt = /* @__PURE__ */ K(Mn, [["__scopeId", "data-v-0ef9ae88"]]), jn = { class: "widget-button" }, Wn = /* @__PURE__ */ $({
1226
+ const nt = /* @__PURE__ */ K(Mn, [["__scopeId", "data-v-0ef9ae88"]]), jn = { class: "widget-button" }, Wn = /* @__PURE__ */ k({
1224
1227
  __name: "widget-button",
1225
1228
  props: {
1226
1229
  wait: { type: Boolean }
@@ -1235,7 +1238,7 @@ const nt = /* @__PURE__ */ K(Mn, [["__scopeId", "data-v-0ef9ae88"]]), jn = { cla
1235
1238
  ]));
1236
1239
  }
1237
1240
  });
1238
- const zr = /* @__PURE__ */ K(Wn, [["__scopeId", "data-v-450dc564"]]), Fn = { class: "widget-multi-button-wrap position_relative cursor_pointer" }, Vn = { class: "widget-multi-button-body grid" }, Gn = ["onClick"], qn = { class: "widget-multi-button-side-wrap" }, Bn = /* @__PURE__ */ $({
1241
+ const zr = /* @__PURE__ */ K(Wn, [["__scopeId", "data-v-450dc564"]]), Fn = { class: "widget-multi-button-wrap position_relative cursor_pointer" }, Vn = { class: "widget-multi-button-body grid" }, qn = ["onClick"], Gn = { class: "widget-multi-button-side-wrap" }, Bn = /* @__PURE__ */ k({
1239
1242
  __name: "widget-multi-button",
1240
1243
  props: {
1241
1244
  label: {},
@@ -1275,9 +1278,9 @@ const zr = /* @__PURE__ */ K(Wn, [["__scopeId", "data-v-450dc564"]]), Fn = { cla
1275
1278
  onClick: (f) => {
1276
1279
  i(a.callback), o(!1);
1277
1280
  }
1278
- }, ge(a.label), 9, Gn))), 128))
1281
+ }, ge(a.label), 9, qn))), 128))
1279
1282
  ]),
1280
- C("div", qn, [
1283
+ C("div", Gn, [
1281
1284
  C("div", {
1282
1285
  class: Re(["grid-center widget-multi-button-side", t.active ? "widget-multi-button-side_active" : null]),
1283
1286
  onClick: s[1] || (s[1] = (a) => o())
@@ -1300,7 +1303,7 @@ const zr = /* @__PURE__ */ K(Wn, [["__scopeId", "data-v-450dc564"]]), Fn = { cla
1300
1303
  ]));
1301
1304
  }
1302
1305
  });
1303
- const Yr = /* @__PURE__ */ K(Bn, [["__scopeId", "data-v-a8d711d1"]]), Kn = { class: "widget-loader flex flex-align_center gap_10 padding_15" }, zn = { class: "text_md" }, Jr = /* @__PURE__ */ $({
1306
+ const Yr = /* @__PURE__ */ K(Bn, [["__scopeId", "data-v-a8d711d1"]]), Kn = { class: "widget-loader flex flex-align_center gap_10 padding_15" }, zn = { class: "text_md" }, Jr = /* @__PURE__ */ k({
1304
1307
  __name: "widget-loader",
1305
1308
  props: {
1306
1309
  label: {}
@@ -1314,7 +1317,7 @@ const Yr = /* @__PURE__ */ K(Bn, [["__scopeId", "data-v-a8d711d1"]]), Kn = { cla
1314
1317
  C("span", zn, ge(e.label), 1)
1315
1318
  ]));
1316
1319
  }
1317
- }), Yn = ["alt", "src"], Hr = /* @__PURE__ */ $({
1320
+ }), Yn = ["alt", "src"], Hr = /* @__PURE__ */ k({
1318
1321
  __name: "widget-image",
1319
1322
  props: {
1320
1323
  src: {},
@@ -1322,7 +1325,7 @@ const Yr = /* @__PURE__ */ K(Bn, [["__scopeId", "data-v-a8d711d1"]]), Kn = { cla
1322
1325
  default: {}
1323
1326
  },
1324
1327
  setup(n) {
1325
- const e = n, t = V();
1328
+ const e = n, t = q();
1326
1329
  return He(() => {
1327
1330
  t.value && (t.value.src = e.src), t.value.onerror = function() {
1328
1331
  e.default && (t.value.src = e.default);
@@ -1342,7 +1345,7 @@ const Yr = /* @__PURE__ */ K(Bn, [["__scopeId", "data-v-a8d711d1"]]), Kn = { cla
1342
1345
  },
1343
1346
  setup: xt
1344
1347
  };
1345
- const Hn = /* @__PURE__ */ K(Jn, [["__scopeId", "data-v-344a8cc1"]]), Xn = (n) => (Ht("data-v-bf495d6a"), n = n(), Xt(), n), Qn = { class: "widget-list-head-cell" }, Zn = /* @__PURE__ */ Xn(() => /* @__PURE__ */ C("div", { class: "head-cell-resize" }, null, -1)), er = /* @__PURE__ */ $({
1348
+ const Hn = /* @__PURE__ */ K(Jn, [["__scopeId", "data-v-344a8cc1"]]), Xn = (n) => (Ht("data-v-bf495d6a"), n = n(), Xt(), n), Qn = { class: "widget-list-head-cell" }, Zn = /* @__PURE__ */ Xn(() => /* @__PURE__ */ C("div", { class: "head-cell-resize" }, null, -1)), er = /* @__PURE__ */ k({
1346
1349
  __name: "widget-list-head-cell",
1347
1350
  props: {
1348
1351
  title: {},
@@ -1363,7 +1366,7 @@ const Hn = /* @__PURE__ */ K(Jn, [["__scopeId", "data-v-344a8cc1"]]), Xn = (n) =
1363
1366
  class: "head-cell-content flex_grow",
1364
1367
  style: _t({ "min-width": r.minWidth, "max-width": r.maxWidth, width: r.width })
1365
1368
  }, [
1366
- r.type === "multi-select" ? (y(), x(B(qe), {
1369
+ r.type === "multi-select" ? (y(), x(B(Ge), {
1367
1370
  key: 0,
1368
1371
  type: "single-checkbox",
1369
1372
  onClick: i[0] || (i[0] = Jt((o) => e("select"), ["stop", "prevent"]))
@@ -1387,7 +1390,7 @@ const Hn = /* @__PURE__ */ K(Jn, [["__scopeId", "data-v-344a8cc1"]]), Xn = (n) =
1387
1390
  ]));
1388
1391
  }
1389
1392
  });
1390
- const tr = /* @__PURE__ */ K(er, [["__scopeId", "data-v-bf495d6a"]]), nr = /* @__PURE__ */ $({
1393
+ const tr = /* @__PURE__ */ K(er, [["__scopeId", "data-v-bf495d6a"]]), nr = /* @__PURE__ */ k({
1391
1394
  __name: "widget-list-head",
1392
1395
  props: {
1393
1396
  config: {},
@@ -1395,7 +1398,7 @@ const tr = /* @__PURE__ */ K(er, [["__scopeId", "data-v-bf495d6a"]]), nr = /* @_
1395
1398
  },
1396
1399
  emits: ["update:config", "update:order", "select"],
1397
1400
  setup(n, { emit: e }) {
1398
- const t = n, r = V(), i = V();
1401
+ const t = n, r = q(), i = q();
1399
1402
  He(() => {
1400
1403
  function a(h, m) {
1401
1404
  let c = -1;
@@ -1430,17 +1433,17 @@ const tr = /* @__PURE__ */ K(er, [["__scopeId", "data-v-bf495d6a"]]), nr = /* @_
1430
1433
  r.value.addEventListener("pointerdown", function(m) {
1431
1434
  var at;
1432
1435
  function c(A) {
1433
- return A.screenX + v - O;
1436
+ return A.screenX + v - $;
1434
1437
  }
1435
- const w = r.value, d = [...w.children].filter((A) => A.localName === "th"), v = ((at = w.offsetParent) == null ? void 0 : at.scrollLeft) || 0, k = d.map((A) => A.clientWidth), Y = g(m.target), O = w.getBoundingClientRect().left, j = c(m), S = a(k, j), rt = k.slice(0, S).reduce((A, R) => A + R, 0), it = j - rt, Me = w.offsetWidth, se = d[S].clientWidth;
1438
+ const w = r.value, d = [...w.children].filter((A) => A.localName === "th"), v = ((at = w.offsetParent) == null ? void 0 : at.scrollLeft) || 0, O = d.map((A) => A.clientWidth), Y = g(m.target), $ = w.getBoundingClientRect().left, j = c(m), S = a(O, j), rt = O.slice(0, S).reduce((A, R) => A + R, 0), it = j - rt, Me = w.offsetWidth, se = d[S].clientWidth;
1436
1439
  if (t.config[S].type === "multi-select")
1437
1440
  return;
1438
- console.group("START"), console.log(), console.log("Start screenX", m.screenX), console.log("Widths", k), console.log("max width", Me), console.log("Start Position", j), console.log("Position From", S), console.log("Start Position", S), console.log("Global offset (Отступ самой таблицы от края экрана)", O), console.log("Del", it), console.groupEnd(), i.value.innerText = d[S].textContent || "", i.value.style.display = "grid", i.value.style.width = se + "px", i.value.style.cursor = "grabbing", f(rt), T(se), document.addEventListener("pointermove", st, { passive: !0 }), document.addEventListener("pointerup", ot);
1441
+ console.group("START"), console.log(), console.log("Start screenX", m.screenX), console.log("Widths", O), console.log("max width", Me), console.log("Start Position", j), console.log("Position From", S), console.log("Start Position", S), console.log("Global offset (Отступ самой таблицы от края экрана)", $), console.log("Del", it), console.groupEnd(), i.value.innerText = d[S].textContent || "", i.value.style.display = "grid", i.value.style.width = se + "px", i.value.style.cursor = "grabbing", f(rt), T(se), document.addEventListener("pointermove", st, { passive: !0 }), document.addEventListener("pointerup", ot);
1439
1442
  function ot(A) {
1440
1443
  if (console.group("END"), document.removeEventListener("pointermove", st), document.removeEventListener("pointerup", ot), Y && (t.config[S].width = i.value.style.width, t.config[S].minWidth = i.value.style.width, t.config[S].maxWidth = i.value.style.width, o(t.config)), !Y) {
1441
- const R = A.screenX + v - O;
1444
+ const R = A.screenX + v - $;
1442
1445
  console.log("ENP Position", R);
1443
- const ve = u(k, R);
1446
+ const ve = u(O, R);
1444
1447
  if (console.log(S, "->", ve), ve !== S) {
1445
1448
  const ae = t.config[S], je = t.config;
1446
1449
  je.splice(S, 1), je.splice(ve, 0, ae), o(je);
@@ -1457,7 +1460,7 @@ const tr = /* @__PURE__ */ K(er, [["__scopeId", "data-v-bf495d6a"]]), nr = /* @_
1457
1460
  T(ae);
1458
1461
  return;
1459
1462
  }
1460
- let R = A.screenX + v - O - it;
1463
+ let R = A.screenX + v - $ - it;
1461
1464
  R < 0 && (R = 0), R + se > Me && (R = Me - se), f(R);
1462
1465
  }
1463
1466
  });
@@ -1499,7 +1502,7 @@ const tr = /* @__PURE__ */ K(er, [["__scopeId", "data-v-bf495d6a"]]), nr = /* @_
1499
1502
  ], 512));
1500
1503
  }
1501
1504
  });
1502
- const rr = /* @__PURE__ */ K(nr, [["__scopeId", "data-v-ccffc6bd"]]), ir = { class: "widget-list" }, or = { class: "widget-list-body position_relative" }, sr = 50, Xr = /* @__PURE__ */ $({
1505
+ const rr = /* @__PURE__ */ K(nr, [["__scopeId", "data-v-ccffc6bd"]]), ir = { class: "widget-list" }, or = { class: "widget-list-body position_relative" }, sr = 50, Xr = /* @__PURE__ */ k({
1503
1506
  __name: "widget-list",
1504
1507
  props: {
1505
1508
  array: {},
@@ -1578,12 +1581,12 @@ function Qr(n) {
1578
1581
  return t;
1579
1582
  }
1580
1583
  function Be(n) {
1581
- return typeof n == "string" ? Ge(n) : ar(n) ? Ge(n.message) : Ge(I.DEFAULT_ERROR_MESSAGE);
1584
+ return typeof n == "string" ? qe(n) : ar(n) ? qe(n.message) : qe(I.DEFAULT_ERROR_MESSAGE);
1582
1585
  }
1583
1586
  function ar(n) {
1584
1587
  return !!(typeof n == "object" && n !== null && Object.hasOwnProperty.call(n, "message"));
1585
1588
  }
1586
- function Ge(n) {
1589
+ function qe(n) {
1587
1590
  return {
1588
1591
  message: n
1589
1592
  };
@@ -1682,7 +1685,7 @@ function ii(n, e, t) {
1682
1685
  }
1683
1686
  }
1684
1687
  function oi() {
1685
- const n = V(null);
1688
+ const n = q(null);
1686
1689
  function e(t) {
1687
1690
  n.value = t;
1688
1691
  }
@@ -1700,7 +1703,13 @@ const dr = function() {
1700
1703
  const r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
1701
1704
  setInterval(() => {
1702
1705
  Array.from(r).forEach((c) => {
1703
- m(c) && (J("Handler for event %s requestId %d was expired", c.event, c.requestId), r.delete(c));
1706
+ m(c) && (J("Handler for event %s requestId %d was expired", c.event, c.requestId), c.requestId ? l({
1707
+ requestId: c.requestId,
1708
+ event: "request-error",
1709
+ data: {
1710
+ message: V.RequestTookToLong().message
1711
+ }
1712
+ }) : r.delete(c));
1704
1713
  });
1705
1714
  }, 1e3), setInterval(() => {
1706
1715
  (!e || e.readyState === 3) && s();
@@ -1725,7 +1734,9 @@ const dr = function() {
1725
1734
  return;
1726
1735
  }
1727
1736
  console.log(`%cInitializing sockets: %c${t}`, "color: purple", "color: black"), e = new WebSocket(t), e.onclose = function(c) {
1728
- J("Connection to server was stopped: %d %s", c.code, c.reason);
1737
+ J("Connection to server was stopped: %d %s", c.code, c.reason), r.forEach((w) => {
1738
+ w.guaranteedAnswer && w.serializeString && i.add(w.serializeString);
1739
+ });
1729
1740
  }, e.onopen = function() {
1730
1741
  console.log("Socket was %cconnected.", "color: green"), [...i.values()].forEach((c) => {
1731
1742
  a(c), i.delete(c);
@@ -1759,21 +1770,23 @@ const dr = function() {
1759
1770
  return e && (e == null ? void 0 : e.readyState) === 1;
1760
1771
  }
1761
1772
  function g(c, w, d) {
1762
- const v = ++n, k = JSON.stringify({
1773
+ const v = ++n, O = JSON.stringify({
1763
1774
  requestId: v,
1764
1775
  event: c,
1765
1776
  data: w,
1766
1777
  contextId: P.contextId,
1767
1778
  url: window.location.href
1768
1779
  });
1769
- return T() ? a(k) : (i.add(k), J("Socket is not connected. Message was send to save-queue")), new Promise((Y, O) => {
1780
+ return T() ? a(O) : (i.add(O), J("Socket is not connected. Message was send to save-queue")), new Promise((Y, $) => {
1770
1781
  h({
1771
1782
  event: c,
1772
1783
  requestId: v,
1773
1784
  once: !0,
1785
+ guaranteedAnswer: !0,
1786
+ serializeString: O,
1774
1787
  callback: (j, S) => {
1775
1788
  if (J("Promise was resolve with next data:", j), fr(S))
1776
- return void O(j);
1789
+ return void $(j);
1777
1790
  d && d(j, S), Y(j);
1778
1791
  },
1779
1792
  timeToLive: I.TIME_TO_LIVE_SOCKET_REQUEST
@@ -1807,7 +1820,7 @@ const dr = function() {
1807
1820
  function si(n, e) {
1808
1821
  const t = M([]);
1809
1822
  let r = 0;
1810
- const i = V(!1);
1823
+ const i = q(!1);
1811
1824
  function o() {
1812
1825
  if (i.value)
1813
1826
  return Promise.reject("The process has already started.");
@@ -1909,14 +1922,14 @@ function li(n, e) {
1909
1922
  const r = t();
1910
1923
  return Promise.resolve().then(() => {
1911
1924
  if (!n.name)
1912
- throw q.EntityWithoutName(n);
1925
+ throw V.EntityWithoutName(n);
1913
1926
  return Ke(n.name, r);
1914
1927
  }).then(Mt).then((i) => (i.hasOwnProperty("Version") && (n.version = i.Version), n.setValues(i), i)).catch(re());
1915
1928
  }, n.save = () => {
1916
1929
  const r = t();
1917
1930
  return Promise.resolve().then(() => {
1918
1931
  if (!n.name)
1919
- throw q.EntityWithoutName(n);
1932
+ throw V.EntityWithoutName(n);
1920
1933
  return Ut(n.name, {
1921
1934
  id: r.id,
1922
1935
  values: n.changes,
@@ -1988,7 +2001,7 @@ function Er(n) {
1988
2001
  function ui(n, e = {}) {
1989
2002
  if (!n)
1990
2003
  return Qt(I.PROVIDE_NAME_METADATA);
1991
- const t = V(null), r = Ee(() => t.value ? Ye.getByKey(t.value) : null);
2004
+ const t = q(null), r = Ee(() => t.value ? Ye.getByKey(t.value) : null);
1992
2005
  Zt(I.PROVIDE_NAME_METADATA, r);
1993
2006
  function i() {
1994
2007
  if (!n)
@@ -2298,12 +2311,12 @@ class gi {
2298
2311
  });
2299
2312
  }
2300
2313
  }
2301
- class Gt {
2314
+ class qt {
2302
2315
  static get url() {
2303
2316
  return "/close-api/rules-validation/";
2304
2317
  }
2305
2318
  static validate(e, t) {
2306
- return p(Gt.url + e, {
2319
+ return p(qt.url + e, {
2307
2320
  method: "POST",
2308
2321
  body: JSON.stringify(t)
2309
2322
  });
@@ -2369,7 +2382,7 @@ class de {
2369
2382
  }).then((r) => {
2370
2383
  if (r && r.status === 1)
2371
2384
  return r;
2372
- throw Array.isArray(r.notes) ? new Error(r.notes[0]) : q.ApiNotAvailable();
2385
+ throw Array.isArray(r.notes) ? new Error(r.notes[0]) : V.ApiNotAvailable();
2373
2386
  });
2374
2387
  }
2375
2388
  static parseMetadataField(e) {
@@ -2435,14 +2448,14 @@ class Ei {
2435
2448
  return p(i);
2436
2449
  }
2437
2450
  }
2438
- var qt = (n, e, t) => {
2451
+ var Gt = (n, e, t) => {
2439
2452
  if (!e.has(n))
2440
2453
  throw TypeError("Cannot " + t);
2441
- }, W = (n, e, t) => (qt(n, e, "read from private field"), t ? t.call(n) : e.get(n)), H = (n, e, t) => {
2454
+ }, W = (n, e, t) => (Gt(n, e, "read from private field"), t ? t.call(n) : e.get(n)), H = (n, e, t) => {
2442
2455
  if (e.has(n))
2443
2456
  throw TypeError("Cannot add the same private member more than once");
2444
2457
  e instanceof WeakSet ? e.add(n) : e.set(n, t);
2445
- }, X = (n, e, t, r) => (qt(n, e, "write to private field"), r ? r.call(n, t) : e.set(n, t), t), Ie, fe, Oe, $e, pe, he, Je;
2458
+ }, X = (n, e, t, r) => (Gt(n, e, "write to private field"), r ? r.call(n, t) : e.set(n, t), t), Ie, fe, Oe, $e, pe, he, Je;
2446
2459
  const Q = "_______LIST_______ROW_______INDEX________NAME_______", Ue = class F extends D {
2447
2460
  constructor(e) {
2448
2461
  super(), this.LIST_ROW_KEY = 1, H(this, Ie, void 0), this.array = [], H(this, fe, []), H(this, Oe, []), H(this, $e, new Proxy({}, {
@@ -2625,7 +2638,7 @@ Ue.EVENT_CONFIG_UPDATE = "list-config:update";
2625
2638
  Ue.EVENT_ORDER_UPDATE = "list-order:update";
2626
2639
  Ue.EVENT_FILTERS_UPDATE = "list-filters:update";
2627
2640
  function _i(n) {
2628
- const e = V(""), t = Ee(() => {
2641
+ const e = q(""), t = Ee(() => {
2629
2642
  const r = e.value.toLowerCase();
2630
2643
  return B(n).filter((i) => e.value.length ? Object.values(i).join().toLowerCase().includes(r) : !0);
2631
2644
  });
@@ -2680,7 +2693,7 @@ function Ti(n, e, t) {
2680
2693
  wait: null
2681
2694
  });
2682
2695
  let o = [], l = null;
2683
- const s = V(null);
2696
+ const s = q(null);
2684
2697
  function a() {
2685
2698
  s.value = o.find((d) => d.name === l) || null;
2686
2699
  }
@@ -2709,13 +2722,13 @@ function Ti(n, e, t) {
2709
2722
  label: v.title,
2710
2723
  name: v.stepName,
2711
2724
  number: v.number,
2712
- fields: v.frontendEntity.objectTypes.reduce((k, Y) => (Y.properties.forEach((O) => {
2713
- k.push({
2714
- name: O.name,
2715
- label: O.title,
2716
- type: O.refEntityName || O.dataType
2725
+ fields: v.frontendEntity.objectTypes.reduce((O, Y) => (Y.properties.forEach(($) => {
2726
+ O.push({
2727
+ name: $.name,
2728
+ label: $.title,
2729
+ type: $.refEntityName || $.dataType
2717
2730
  });
2718
- }), k), [])
2731
+ }), O), [])
2719
2732
  }));
2720
2733
  }).then((d) => (i.wait = !1, d));
2721
2734
  }
@@ -2776,7 +2789,7 @@ const Ci = {
2776
2789
  };
2777
2790
  export {
2778
2791
  fi as Communication,
2779
- q as CoreError,
2792
+ V as CoreError,
2780
2793
  U as Filter,
2781
2794
  P as Manager,
2782
2795
  ze as NotificationSystem,
@@ -2795,7 +2808,7 @@ export {
2795
2808
  re as catchUniversal,
2796
2809
  Qe as clickOutside,
2797
2810
  ln as clientService,
2798
- qr as communicationService,
2811
+ Gr as communicationService,
2799
2812
  Ei as configurationService,
2800
2813
  I as constants,
2801
2814
  be as dataService,
@@ -2819,7 +2832,7 @@ export {
2819
2832
  ii as prettyValueFieldByEntity,
2820
2833
  Ve as processWizardService,
2821
2834
  ue as request,
2822
- Gt as ruleValidationService,
2835
+ qt as ruleValidationService,
2823
2836
  ye as t,
2824
2837
  ri as throttle,
2825
2838
  Ke as universalEntityRead,
@@ -2830,7 +2843,7 @@ export {
2830
2843
  si as useListEntity,
2831
2844
  _i as useListSearch,
2832
2845
  vi as useListSelect,
2833
- Gr as useLogger,
2846
+ qr as useLogger,
2834
2847
  ai as useManagerState,
2835
2848
  ui as useMetadata,
2836
2849
  z as useSocket,