jamespot-front-business 1.3.14 → 1.3.15

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,5 +1,5 @@
1
1
  import { createEntityAdapter as lt, createSlice as T, createAsyncThunk as p, combineReducers as O } from "@reduxjs/toolkit";
2
- import { jEnsure as ci, Format as gt, formatImgUrl as Gi, UserLevel as Xi, WidgetsName as b, StudioApplicationStatus as dt } from "jamespot-user-api";
2
+ import { jEnsure as di, Format as pt, formatImgUrl as Gi, UserLevel as Xi, WidgetsName as C, StudioApplicationStatus as dt } from "jamespot-user-api";
3
3
  const Ji = function(t) {
4
4
  return [
5
5
  {
@@ -12,7 +12,7 @@ const Ji = function(t) {
12
12
  ];
13
13
  }, nl = {
14
14
  getArticleRTHandlers: Ji
15
- }, v = (t) => !!t && typeof t == "object" && "aborted" in t && !!t.aborted, A = (t, e) => !t || typeof t != "object" ? e ?? "GLOBAL_Technical_Error" : "errorMsg" in t && typeof t.errorMsg == "string" ? t.errorMsg : "message" in t && typeof t.message == "string" ? t.message : e ?? "GLOBAL_Technical_Error", ne = lt({
15
+ }, v = (t) => !!t && typeof t == "object" && "aborted" in t && !!t.aborted, E = (t, e) => !t || typeof t != "object" ? e ?? "GLOBAL_Technical_Error" : "errorMsg" in t && typeof t.errorMsg == "string" ? t.errorMsg : "message" in t && typeof t.message == "string" ? t.message : e ?? "GLOBAL_Technical_Error", ne = lt({
16
16
  selectId: (t) => t.id
17
17
  }), tt = T({
18
18
  name: "toasts",
@@ -31,11 +31,11 @@ const Ji = function(t) {
31
31
  success: (t, e) => te(t, "success", e),
32
32
  warning: (t, e) => te(t, "warning", e),
33
33
  error: (t, e) => te(t, "error", e)
34
- }, Qi = ne.getSelectors((t) => t.toasts), m = {
34
+ }, Qi = ne.getSelectors((t) => t.toasts), f = {
35
35
  slice: tt,
36
36
  actions: { ...Yi, ...tt.actions },
37
37
  selectors: Qi
38
- }, Pt = (t) => t.toISOString().slice(0, 19).replace(/T/g, " "), zi = () => {
38
+ }, Nt = (t) => t.toISOString().slice(0, 19).replace(/T/g, " "), zi = () => {
39
39
  const t = /* @__PURE__ */ new Date();
40
40
  return t.setMonth(t.getMonth() - 1), t;
41
41
  }, Zi = {
@@ -47,8 +47,8 @@ const Ji = function(t) {
47
47
  name: "dateCreation",
48
48
  method: "between",
49
49
  value: {
50
- start: Pt(zi()),
51
- end: Pt(/* @__PURE__ */ new Date())
50
+ start: Nt(zi()),
51
+ end: Nt(/* @__PURE__ */ new Date())
52
52
  }
53
53
  }
54
54
  ],
@@ -59,9 +59,9 @@ const Ji = function(t) {
59
59
  try {
60
60
  return (await e.jApi.admin.logs.getLogsNavigation(t)).result;
61
61
  } catch (r) {
62
- return v(r) || a(m.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot retrieve admin logs navigation" });
62
+ return v(r) || a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot retrieve admin logs navigation" });
63
63
  }
64
- }), ft = T({
64
+ }), gt = T({
65
65
  name: "logsNavigation",
66
66
  initialState: Zi,
67
67
  reducers: {
@@ -84,7 +84,7 @@ const Ji = function(t) {
84
84
  e.loading = "idle";
85
85
  });
86
86
  }
87
- }), Ut = (t) => t.toISOString().slice(0, 19).replace(/T/g, " "), ea = () => {
87
+ }), Pt = (t) => t.toISOString().slice(0, 19).replace(/T/g, " "), ea = () => {
88
88
  const t = /* @__PURE__ */ new Date();
89
89
  return t.setMonth(t.getMonth() - 1), t;
90
90
  }, ta = {
@@ -96,8 +96,8 @@ const Ji = function(t) {
96
96
  name: "dateCreation",
97
97
  method: "between",
98
98
  value: {
99
- start: Ut(ea()),
100
- end: Ut(/* @__PURE__ */ new Date())
99
+ start: Pt(ea()),
100
+ end: Pt(/* @__PURE__ */ new Date())
101
101
  }
102
102
  }
103
103
  ],
@@ -108,9 +108,9 @@ const Ji = function(t) {
108
108
  try {
109
109
  return (await e.jApi.admin.logs.getLogsObjects(t)).result;
110
110
  } catch (r) {
111
- return v(r) || a(m.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot retrieve admin logs Objects" });
111
+ return v(r) || a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot retrieve admin logs Objects" });
112
112
  }
113
- }), mt = T({
113
+ }), ft = T({
114
114
  name: "logsObjects",
115
115
  initialState: ta,
116
116
  reducers: {
@@ -133,7 +133,7 @@ const Ji = function(t) {
133
133
  e.loading = "idle";
134
134
  });
135
135
  }
136
- }), Ft = (t) => t.toISOString().slice(0, 19).replace(/T/g, " "), ia = () => {
136
+ }), Ut = (t) => t.toISOString().slice(0, 19).replace(/T/g, " "), ia = () => {
137
137
  const t = /* @__PURE__ */ new Date();
138
138
  return t.setMonth(t.getMonth() - 1), t;
139
139
  }, aa = {
@@ -145,8 +145,8 @@ const Ji = function(t) {
145
145
  name: "dateCreation",
146
146
  method: "between",
147
147
  value: {
148
- start: Ft(ia()),
149
- end: Ft(/* @__PURE__ */ new Date())
148
+ start: Ut(ia()),
149
+ end: Ut(/* @__PURE__ */ new Date())
150
150
  }
151
151
  }
152
152
  ],
@@ -157,9 +157,9 @@ const Ji = function(t) {
157
157
  try {
158
158
  return (await e.jApi.admin.logs.getLogsSearch(t)).result;
159
159
  } catch (r) {
160
- return v(r) || a(m.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot retrieve admin logs Search" });
160
+ return v(r) || a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot retrieve admin logs Search" });
161
161
  }
162
- }), yt = T({
162
+ }), mt = T({
163
163
  name: "logsSearch",
164
164
  initialState: aa,
165
165
  reducers: {
@@ -183,18 +183,18 @@ const Ji = function(t) {
183
183
  });
184
184
  }
185
185
  }), ra = (t) => t.adminLogs.logsNavigation, na = (t) => t.adminLogs.logsObjects, sa = (t) => t.adminLogs.logsSearch, oa = O({
186
+ [gt.name]: gt.reducer,
186
187
  [ft.name]: ft.reducer,
187
- [mt.name]: mt.reducer,
188
- [yt.name]: yt.reducer
189
- }), ui = {
188
+ [mt.name]: mt.reducer
189
+ }), ci = {
190
190
  name: "adminLogs",
191
191
  reducer: oa
192
- }, sl = ui.reducer, ol = {
193
- slice: ui,
192
+ }, sl = ci.reducer, ol = {
193
+ slice: ci,
194
194
  actions: {
195
+ ...gt.actions,
195
196
  ...ft.actions,
196
197
  ...mt.actions,
197
- ...yt.actions,
198
198
  fetchLogsNavigation: se,
199
199
  fetchLogsObjects: oe,
200
200
  fetchLogsSearch: le
@@ -205,12 +205,12 @@ const Ji = function(t) {
205
205
  isActiveForCurrentUser: !1,
206
206
  isInitialized: !1,
207
207
  isToggleLoading: !1
208
- }, Bt = T({
208
+ }, Ft = T({
209
209
  name: "animationsList",
210
210
  initialState: la,
211
211
  reducers: {},
212
212
  extraReducers: (t) => {
213
- t.addCase(J.fulfilled, (e, i) => {
213
+ t.addCase(X.fulfilled, (e, i) => {
214
214
  e.isActiveForCurrentUser = i.payload.isActiveForCurrentUser, e.animationConfiguration = i.payload.animationConfiguration, e.isInitialized = i.payload.isInitialized;
215
215
  }), t.addCase(it.fulfilled, (e, i) => {
216
216
  e.animationConfigurationApp = i.payload;
@@ -222,18 +222,18 @@ const Ji = function(t) {
222
222
  e.isActiveForCurrentUser = !e.isActiveForCurrentUser, e.isToggleLoading = !1;
223
223
  });
224
224
  }
225
- }), J = p("animations/fetchCurrentAnimation", async (t, { extra: e, rejectWithValue: i, dispatch: a, signal: r }) => {
225
+ }), X = p("animations/fetchCurrentAnimation", async (t, { extra: e, rejectWithValue: i, dispatch: a, signal: r }) => {
226
226
  try {
227
227
  const n = (await e.jApi.animations.GetCurrentAnimation({ signal: r })).result, s = (await e.jApi.animations.GetAnimationActive({ signal: r })).result;
228
228
  return { animationConfiguration: n, isActiveForCurrentUser: s, isInitialized: !0 };
229
229
  } catch (n) {
230
- return v(n) || a(m.actions.error({ label: A(n) })), i({ error: 1, errorMsg: "Cannot retrieve animation" });
230
+ return v(n) || a(f.actions.error({ label: E(n) })), i({ error: 1, errorMsg: "Cannot retrieve animation" });
231
231
  }
232
232
  }), it = p("animations/fetchCurrentAnimationApp", async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
233
233
  try {
234
234
  return (await e.jApi.animations.GetCurrentAnimationApp()).result;
235
235
  } catch (r) {
236
- return a(m.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot retrieve animation" });
236
+ return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot retrieve animation" });
237
237
  }
238
238
  }), da = p(
239
239
  "animations/deleteCurrentAnimation",
@@ -242,7 +242,7 @@ const Ji = function(t) {
242
242
  await e.jApi.animations.DeleteAnimation();
243
243
  return;
244
244
  } catch (r) {
245
- return a(m.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot delete animation" });
245
+ return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot delete animation" });
246
246
  }
247
247
  }
248
248
  ), ca = p(
@@ -252,7 +252,7 @@ const Ji = function(t) {
252
252
  await e.jApi.animations.SaveAnimationConfiguration(t);
253
253
  return;
254
254
  } catch (r) {
255
- return a(m.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot update animation" });
255
+ return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot update animation" });
256
256
  }
257
257
  }
258
258
  ), de = p(
@@ -262,7 +262,7 @@ const Ji = function(t) {
262
262
  await e.jApi.animations.ToggleAnimationActive();
263
263
  return;
264
264
  } catch (r) {
265
- return a(m.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot update animation" });
265
+ return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot update animation" });
266
266
  }
267
267
  }
268
268
  ), ua = function(t) {
@@ -271,21 +271,21 @@ const Ji = function(t) {
271
271
  namespace: "ANIMATIONS",
272
272
  function: "add",
273
273
  handler: function(r) {
274
- r.namespace === "ANIMATIONS" && r.function === "add" && (t(J()), t(it()));
274
+ r.namespace === "ANIMATIONS" && r.function === "add" && (t(X()), t(it()));
275
275
  }
276
276
  },
277
277
  {
278
278
  namespace: "ANIMATIONS",
279
279
  function: "delete",
280
280
  handler: function(r) {
281
- r.namespace === "ANIMATIONS" && r.function === "delete" && (t(J()), t(it()));
281
+ r.namespace === "ANIMATIONS" && r.function === "delete" && (t(X()), t(it()));
282
282
  }
283
283
  },
284
284
  {
285
285
  namespace: "ANIMATIONS",
286
286
  function: "toggle",
287
287
  handler: function(r) {
288
- r.namespace === "ANIMATIONS" && r.function === "toggle" && t(J());
288
+ r.namespace === "ANIMATIONS" && r.function === "toggle" && t(X());
289
289
  }
290
290
  }
291
291
  ];
@@ -293,12 +293,12 @@ const Ji = function(t) {
293
293
  try {
294
294
  return (await e.jApi.animations.GetAnimationStats(t)).result.data;
295
295
  } catch (r) {
296
- return a(m.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot retrieve animation stats" });
296
+ return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot retrieve animation stats" });
297
297
  }
298
298
  }), pa = {
299
299
  stats: [],
300
300
  loading: "idle"
301
- }, Wt = T({
301
+ }, Bt = T({
302
302
  name: "animationStats",
303
303
  initialState: pa,
304
304
  reducers: {},
@@ -315,12 +315,12 @@ const Ji = function(t) {
315
315
  try {
316
316
  return (await e.jApi.animations.GetAnimationStatsCurrent(t)).result;
317
317
  } catch (r) {
318
- return a(m.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot retrieve animation stats current" });
318
+ return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot retrieve animation stats current" });
319
319
  }
320
320
  }), ga = {
321
321
  stats: null,
322
322
  loading: "idle"
323
- }, qt = T({
323
+ }, Wt = T({
324
324
  name: "animationStatsCurrent",
325
325
  initialState: ga,
326
326
  reducers: {},
@@ -334,17 +334,17 @@ const Ji = function(t) {
334
334
  });
335
335
  }
336
336
  }), fa = (t) => t.animations.animationsList.animationConfiguration, ma = (t) => t.animations.animationsList.isActiveForCurrentUser, ya = (t) => t.animations.animationsList.isToggleLoading, Aa = (t) => t.animations.animationsList.animationConfigurationApp, Ea = O({
337
+ [Ft.name]: Ft.reducer,
337
338
  [Bt.name]: Bt.reducer,
338
- [Wt.name]: Wt.reducer,
339
- [qt.name]: qt.reducer
340
- }), pi = {
339
+ [Wt.name]: Wt.reducer
340
+ }), ui = {
341
341
  name: "animations",
342
342
  reducer: Ea
343
- }, ll = pi.reducer, dl = {
344
- slice: pi,
343
+ }, ll = ui.reducer, dl = {
344
+ slice: ui,
345
345
  actions: {
346
346
  saveCurrentAnimation: ca,
347
- fetchCurrentAnimation: J,
347
+ fetchCurrentAnimation: X,
348
348
  deleteCurrentAnimation: da,
349
349
  toggleAnimationIsActive: de,
350
350
  fetchCurrentAnimationApp: it,
@@ -353,28 +353,28 @@ const Ji = function(t) {
353
353
  },
354
354
  selectors: { selectCurrentAnimation: fa, isActiveAnimation: ma, isToggleLoading: ya, selectAnimationConfigurationApp: Aa },
355
355
  getAnimationsRTHandlers: ua
356
- }, W = lt({
356
+ }, B = lt({
357
357
  selectId: (t) => t.name,
358
358
  sortComparer: (t, e) => t.label.localeCompare(e.label)
359
- }), gi = p(
359
+ }), pi = p(
360
360
  "application/fetch",
361
361
  async (t, { extra: e }) => await e.jApi.application.list()
362
- ), $t = T({
362
+ ), qt = T({
363
363
  name: "applications",
364
- initialState: W.getInitialState(),
364
+ initialState: B.getInitialState(),
365
365
  reducers: {
366
- addOne: W.addOne,
367
- addMany: W.addMany,
368
- setAll: W.setAll
366
+ addOne: B.addOne,
367
+ addMany: B.addMany,
368
+ setAll: B.setAll
369
369
  },
370
370
  extraReducers: (t) => {
371
- t.addCase(gi.fulfilled, (e, i) => {
372
- W.setAll(e, i.payload.result);
371
+ t.addCase(pi.fulfilled, (e, i) => {
372
+ B.setAll(e, i.payload.result);
373
373
  });
374
374
  }
375
- }), Sa = W.getSelectors((t) => t.entities.applications), cl = {
376
- slice: $t,
377
- actions: { fetchList: gi, ...$t.actions },
375
+ }), Sa = B.getSelectors((t) => t.entities.applications), cl = {
376
+ slice: qt,
377
+ actions: { fetchList: pi, ...qt.actions },
378
378
  selectors: Sa
379
379
  }, Ta = {
380
380
  entities: [],
@@ -392,7 +392,7 @@ const Ji = function(t) {
392
392
  format: "raw-list"
393
393
  });
394
394
  }
395
- ), Vt = T({
395
+ ), $t = T({
396
396
  name: "bookableAsset",
397
397
  initialState: Ta,
398
398
  reducers: {},
@@ -419,7 +419,7 @@ const Ji = function(t) {
419
419
  bookingClosingTime: "24:00",
420
420
  lastBookingSchedule: "24:00",
421
421
  loading: "idle"
422
- }, Ht = T({
422
+ }, Vt = T({
423
423
  name: "configuration",
424
424
  initialState: Ca,
425
425
  reducers: {},
@@ -433,7 +433,7 @@ const Ji = function(t) {
433
433
  e.loading = "idle";
434
434
  });
435
435
  }
436
- }), fi = {
436
+ }), gi = {
437
437
  date: "",
438
438
  hourStart: "",
439
439
  hourEnd: ""
@@ -441,7 +441,7 @@ const Ji = function(t) {
441
441
  entities: [],
442
442
  loading: "idle",
443
443
  nbResults: 0,
444
- form: fi
444
+ form: gi
445
445
  }, fe = p("Reservation/fetchReservation", async (t, { extra: e }) => {
446
446
  const i = {
447
447
  format: "raw-list",
@@ -449,7 +449,7 @@ const Ji = function(t) {
449
449
  viewMode: t === "history" ? "history" : void 0
450
450
  };
451
451
  return await e.jApi.assetReservation.getList(i);
452
- }), At = T({
452
+ }), yt = T({
453
453
  name: "reservation",
454
454
  initialState: ba,
455
455
  reducers: {
@@ -457,7 +457,7 @@ const Ji = function(t) {
457
457
  t.form = e.payload;
458
458
  },
459
459
  resetForm: (t) => {
460
- t.form = fi;
460
+ t.form = gi;
461
461
  },
462
462
  removeReservation: (t, e) => {
463
463
  t.entities = t.entities.filter((i) => i.id !== e.payload);
@@ -473,15 +473,15 @@ const Ji = function(t) {
473
473
  });
474
474
  }
475
475
  }), La = O({
476
+ [$t.name]: $t.reducer,
476
477
  [Vt.name]: Vt.reducer,
477
- [Ht.name]: Ht.reducer,
478
- [At.name]: At.reducer
478
+ [yt.name]: yt.reducer
479
479
  }), wa = {
480
480
  name: "assetReservation",
481
481
  reducer: La
482
482
  }, Ia = (t) => t.assetReservation.configuration, va = (t) => t.assetReservation.bookableAsset.entities, ha = (t) => t.assetReservation.bookableAsset.loading, Oa = (t) => t.assetReservation.reservation.entities, Ra = (t) => t.assetReservation.reservation.loading, Da = (t) => t.assetReservation.reservation.form, ul = {
483
483
  slice: wa,
484
- actions: { ...At.actions, fetchBookableAsset: pe, fetchConfiguration: ge, fetchReservation: fe },
484
+ actions: { ...yt.actions, fetchBookableAsset: pe, fetchConfiguration: ge, fetchReservation: fe },
485
485
  selectors: {
486
486
  configuration: Ia,
487
487
  bookableAssetEntities: va,
@@ -554,14 +554,14 @@ const Ji = function(t) {
554
554
  limit: n.limit
555
555
  })).result;
556
556
  } catch (l) {
557
- return v(l) || a(m.actions.error({ label: A(l) })), e({ error: 1, errorMsg: "Cannot fetch pads" });
557
+ return v(l) || a(f.actions.error({ label: E(l) })), e({ error: 1, errorMsg: "Cannot fetch pads" });
558
558
  }
559
559
  }
560
560
  ), ye = p("contentReport/updateStatus", async (t, { dispatch: e, rejectWithValue: i, extra: a }) => {
561
561
  try {
562
- return await a.jApi.contentReport.updateStatus(t), e(m.actions.success({ label: "GLOBAL_Successfully_Saved" })), !0;
562
+ return await a.jApi.contentReport.updateStatus(t), e(f.actions.success({ label: "GLOBAL_Successfully_Saved" })), !0;
563
563
  } catch (r) {
564
- return v(r) || e(m.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot fetch pads" });
564
+ return v(r) || e(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot fetch pads" });
565
565
  }
566
566
  }), xa = (t) => t.contentReport, pl = {
567
567
  slice: Ma,
@@ -582,23 +582,23 @@ const Ji = function(t) {
582
582
  status: void 0
583
583
  },
584
584
  delete: {}
585
- }, V = p("bookmarkList/fetchbookmarkList", async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
585
+ }, $ = p("bookmarkList/fetchbookmarkList", async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
586
586
  const r = { limit: 999 };
587
587
  try {
588
588
  return await e.jApi.bookmark.getFormattedList(r, "raw-list");
589
589
  } catch (n) {
590
- return a(m.actions.error({ label: A(n) })), i({ error: 1, errorMsg: "Cannot retrieve bookmarks" });
590
+ return a(f.actions.error({ label: E(n) })), i({ error: 1, errorMsg: "Cannot retrieve bookmarks" });
591
591
  }
592
592
  }), Ae = p("bookmarkList/addBookmark", async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
593
593
  try {
594
- return ci.isBookmarkLink(t) ? await e.jApi.bookmark.addFormattedLink(
594
+ return di.isBookmarkLink(t) ? await e.jApi.bookmark.addFormattedLink(
595
595
  t.targetId,
596
596
  t.targetType,
597
597
  "raw-list"
598
598
  ) : await e.jApi.bookmark.addBookmark(t);
599
599
  } catch (r) {
600
- const n = A(r);
601
- return a(m.actions.error({ label: n })), i({ error: 1, errorMsg: "Error saving bookmark" });
600
+ const n = E(r);
601
+ return a(f.actions.error({ label: n })), i({ error: 1, errorMsg: "Error saving bookmark" });
602
602
  }
603
603
  }), Ee = p(
604
604
  "bookmarkList/moveBookmark",
@@ -607,7 +607,7 @@ const Ji = function(t) {
607
607
  await a.jApi.bookmark.move(t.id, e.id, i);
608
608
  return;
609
609
  } catch (s) {
610
- return n(m.actions.error({ label: A(s) })), r({ error: 1, errorMsg: "Error moving bookmark" });
610
+ return n(f.actions.error({ label: E(s) })), r({ error: 1, errorMsg: "Error moving bookmark" });
611
611
  }
612
612
  }
613
613
  ), Se = p("bookmarkList/deleteBookmark", async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
@@ -615,9 +615,9 @@ const Ji = function(t) {
615
615
  await e.jApi.bookmark.delete(t.id);
616
616
  return;
617
617
  } catch (r) {
618
- return a(m.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Error deleting bookmark" });
618
+ return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Error deleting bookmark" });
619
619
  }
620
- }), Z = T({
620
+ }), z = T({
621
621
  name: "bookmarkList",
622
622
  initialState: ja,
623
623
  reducers: {
@@ -643,11 +643,11 @@ const Ji = function(t) {
643
643
  }
644
644
  },
645
645
  extraReducers: (t) => {
646
- t.addCase(V.pending, (e) => {
646
+ t.addCase($.pending, (e) => {
647
647
  e.loading = "pending", e.status = void 0;
648
- }).addCase(V.fulfilled, (e, i) => {
648
+ }).addCase($.fulfilled, (e, i) => {
649
649
  e.loading = "idle", e.bookmarks = i.payload.result.data, e.nbResults = i.payload.result.cnt, e.isInitialized = !0, e.status = "success";
650
- }).addCase(V.rejected, (e) => {
650
+ }).addCase($.rejected, (e) => {
651
651
  e.loading = "idle", e.status = "error";
652
652
  }).addCase(Ae.pending, (e, i) => {
653
653
  i.meta.arg.requestId && (e.add[i.meta.arg.requestId] = {
@@ -690,13 +690,13 @@ const Ji = function(t) {
690
690
  }
691
691
  }), _a = function(t) {
692
692
  const e = function(n, s) {
693
- ci.objectIsType("bookmarkLink", n.object) ? t(s(n.object)) : t(V());
693
+ di.objectIsType("bookmarkLink", n.object) ? t(s(n.object)) : t($());
694
694
  }, i = function() {
695
- t(V());
695
+ t($());
696
696
  }, a = function(n) {
697
- (n.namespace === "BOOKMARKS" || n.namespace === "CUSTOM-ACTION") && n.function === "add" && e(n, Z.actions.addBookmarkRT);
697
+ (n.namespace === "BOOKMARKS" || n.namespace === "CUSTOM-ACTION") && n.function === "add" && e(n, z.actions.addBookmarkRT);
698
698
  }, r = (n) => {
699
- (n.namespace === "BOOKMARKS" && n.function === "delete" || n.namespace === "CUSTOM-ACTION" && n.function === "remove") && e(n, Z.actions.deleteBookmarkRT);
699
+ (n.namespace === "BOOKMARKS" && n.function === "delete" || n.namespace === "CUSTOM-ACTION" && n.function === "remove") && e(n, z.actions.deleteBookmarkRT);
700
700
  };
701
701
  return [
702
702
  {
@@ -741,7 +741,7 @@ const Ji = function(t) {
741
741
  return i({ error: 2, errorMsg: "Error saving bookmark" });
742
742
  }
743
743
  }
744
- ), Et = T({
744
+ ), At = T({
745
745
  name: "bookmarkEdit",
746
746
  initialState: Na,
747
747
  reducers: {
@@ -765,21 +765,21 @@ const Ji = function(t) {
765
765
  });
766
766
  }
767
767
  }), Pa = O({
768
- [Z.name]: Z.reducer,
769
- [Et.name]: Et.reducer
768
+ [z.name]: z.reducer,
769
+ [At.name]: At.reducer
770
770
  }), Ua = {
771
771
  name: "bookmark",
772
772
  reducer: Pa
773
773
  }, Fa = (t) => t.bookmark.bookmarkList, Ba = (t) => t.bookmark.bookmarkList.isInitialized, Wa = (t) => t.bookmark.bookmarkEdit.bookmark, qa = (t, e) => t.bookmark.bookmarkList.bookmarks.find((i) => i.targetId === e), gl = {
774
774
  slice: Ua,
775
775
  actions: {
776
- fetchBookmark: V,
776
+ fetchBookmark: $,
777
777
  addBookmark: Ae,
778
778
  moveBookmark: Ee,
779
779
  deleteBookmark: Se,
780
780
  editBookmark: Te,
781
- ...Et.actions,
782
- ...Z.actions
781
+ ...At.actions,
782
+ ...z.actions
783
783
  },
784
784
  selectors: {
785
785
  bookmarkList: Fa,
@@ -788,16 +788,16 @@ const Ji = function(t) {
788
788
  bookmarkByArticleId: qa
789
789
  },
790
790
  getRTHandlers: _a
791
- }, Gt = {
791
+ }, Ht = {
792
792
  list: [],
793
793
  statuses: ["subscribed", "unanswered"],
794
794
  loading: "idle",
795
795
  types: [],
796
796
  pendingStatusChanges: []
797
797
  };
798
- let ut = null;
799
- const mi = (t, e, i = 500) => {
800
- ut && clearTimeout(ut), ut = setTimeout(() => {
798
+ let ct = null;
799
+ const fi = (t, e, i = 500) => {
800
+ ct && clearTimeout(ct), ct = setTimeout(() => {
801
801
  t(j(e));
802
802
  }, i);
803
803
  }, j = p("calendarEvents/fetchEvents", async (t, { extra: e, rejectWithValue: i, dispatch: a, signal: r, getState: n }) => {
@@ -820,9 +820,9 @@ const mi = (t, e, i = 500) => {
820
820
  signal: r
821
821
  })).result;
822
822
  } catch (d) {
823
- return v(d) || a(m.actions.error({ label: A(d) })), i({ error: 1, errorMsg: "Cannot retrieve events" });
823
+ return v(d) || a(f.actions.error({ label: E(d) })), i({ error: 1, errorMsg: "Cannot retrieve events" });
824
824
  }
825
- }), yi = p("calendarEvents/setDates", async (t, { dispatch: e }) => (mi(e, { dates: t }), !0)), Ai = p("calendarEvents/setTypes", async (t, { dispatch: e }) => (mi(e, { types: t }), !0)), Ce = p("calendarEvents/changeResponse", async (t, { dispatch: e, extra: i, signal: a, rejectWithValue: r }) => {
825
+ }), mi = p("calendarEvents/setDates", async (t, { dispatch: e }) => (fi(e, { dates: t }), !0)), yi = p("calendarEvents/setTypes", async (t, { dispatch: e }) => (fi(e, { types: t }), !0)), Ce = p("calendarEvents/changeResponse", async (t, { dispatch: e, extra: i, signal: a, rejectWithValue: r }) => {
826
826
  try {
827
827
  return t.status === "unknown" ? await i.jApi.global.removeAction(
828
828
  {
@@ -839,13 +839,13 @@ const mi = (t, e, i = 500) => {
839
839
  value: t.status
840
840
  },
841
841
  { signal: a }
842
- ), e(m.actions.success({ label: "GLOBAL_Successfully_Saved" })), !0;
842
+ ), e(f.actions.success({ label: "GLOBAL_Successfully_Saved" })), !0;
843
843
  } catch (n) {
844
- return v(n) || e(m.actions.error({ label: A(n) })), r({ error: 1, errorMsg: "Cannot change response" });
844
+ return v(n) || e(f.actions.error({ label: E(n) })), r({ error: 1, errorMsg: "Cannot change response" });
845
845
  }
846
846
  }), x = T({
847
847
  name: "events",
848
- initialState: Gt,
848
+ initialState: Ht,
849
849
  reducers: {
850
850
  addEvent: (t, e) => {
851
851
  t.list = [e.payload, ...t.list];
@@ -856,7 +856,7 @@ const mi = (t, e, i = 500) => {
856
856
  updateEvent: (t, e) => {
857
857
  t.list = t.list.map((i) => i.uri === e.payload.uri ? e.payload : i);
858
858
  },
859
- reset: () => Gt
859
+ reset: () => Ht
860
860
  },
861
861
  extraReducers: (t) => {
862
862
  t.addCase(j.pending, (e, i) => {
@@ -891,9 +891,9 @@ const mi = (t, e, i = 500) => {
891
891
  (n) => n.requestId !== i.meta.requestId
892
892
  );
893
893
  }
894
- }).addCase(yi.pending, (e, i) => {
894
+ }).addCase(mi.pending, (e, i) => {
895
895
  e.dates = { start: i.meta.arg.start, end: i.meta.arg.end }, e.loading = "pending";
896
- }).addCase(Ai.pending, (e, i) => {
896
+ }).addCase(yi.pending, (e, i) => {
897
897
  e.types = i.meta.arg, e.loading = "pending";
898
898
  });
899
899
  }
@@ -910,7 +910,7 @@ const mi = (t, e, i = 500) => {
910
910
  ).then((l) => {
911
911
  (!("hideFromCalendar" in l.result) || !l.result.hideFromCalendar) && t(x.actions.addEvent(l.result));
912
912
  }).catch((l) => {
913
- t(m.actions.error({ label: A(l) }));
913
+ t(f.actions.error({ label: E(l) }));
914
914
  });
915
915
  }
916
916
  }, a = function(s) {
@@ -933,7 +933,7 @@ const mi = (t, e, i = 500) => {
933
933
  ).then((l) => {
934
934
  "hideFromCalendar" in l.result && l.result.hideFromCalendar ? t(x.actions.removeEvent({ uri: s.object.uri })) : t(x.actions.updateEvent(l.result));
935
935
  }).catch((l) => {
936
- t(m.actions.error({ label: A(l) }));
936
+ t(f.actions.error({ label: E(l) }));
937
937
  });
938
938
  }
939
939
  }, n = function(s) {
@@ -943,7 +943,7 @@ const mi = (t, e, i = 500) => {
943
943
  ).then((l) => {
944
944
  t(x.actions.updateEvent(l.result));
945
945
  }).catch((l) => {
946
- t(m.actions.error({ label: A(l) }));
946
+ t(f.actions.error({ label: E(l) }));
947
947
  });
948
948
  };
949
949
  return [
@@ -982,8 +982,8 @@ const mi = (t, e, i = 500) => {
982
982
  slice: Ha,
983
983
  actions: {
984
984
  fetchEvents: j,
985
- setDates: yi,
986
- setTypes: Ai,
985
+ setDates: mi,
986
+ setTypes: yi,
987
987
  changeResponse: Ce,
988
988
  ...x.actions
989
989
  },
@@ -1004,19 +1004,19 @@ const mi = (t, e, i = 500) => {
1004
1004
  });
1005
1005
  return { idArticle: t.idArticle, list: r.result };
1006
1006
  } catch (r) {
1007
- return a(m.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot retrieve comments" });
1007
+ return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot retrieve comments" });
1008
1008
  }
1009
1009
  }
1010
- ), St = p(
1010
+ ), Et = p(
1011
1011
  "commentList/deleteComment",
1012
1012
  async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
1013
1013
  try {
1014
1014
  return await e.jApi.article.deleteComment(t.idComment), !0;
1015
1015
  } catch (r) {
1016
- return a(m.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot delete comment" });
1016
+ return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot delete comment" });
1017
1017
  }
1018
1018
  }
1019
- ), Tt = T({
1019
+ ), St = T({
1020
1020
  name: "commentList",
1021
1021
  initialState: Xa,
1022
1022
  reducers: {
@@ -1066,14 +1066,14 @@ const mi = (t, e, i = 500) => {
1066
1066
  ];
1067
1067
  }).addCase(P.rejected, (e) => {
1068
1068
  e.loading = "idle";
1069
- }).addCase(St.pending, (e, i) => {
1069
+ }).addCase(Et.pending, (e, i) => {
1070
1070
  e.comments = e.comments.map((a) => a.idArticle !== i.meta.arg.idArticle ? a : {
1071
1071
  ...a,
1072
1072
  list: a.list.map(
1073
1073
  (r) => r.id === i.meta.arg.idComment ? { ...r, pending: !0 } : r
1074
1074
  )
1075
1075
  });
1076
- }).addCase(St.rejected, (e, i) => {
1076
+ }).addCase(Et.rejected, (e, i) => {
1077
1077
  e.comments = e.comments.map((a) => a.idArticle !== i.meta.arg.idArticle ? a : {
1078
1078
  ...a,
1079
1079
  list: a.list.map(
@@ -1108,7 +1108,7 @@ const mi = (t, e, i = 500) => {
1108
1108
  { namespace: "CUSTOM-ACTION", function: "remove", handler: a }
1109
1109
  ] : [];
1110
1110
  }, Ya = O({
1111
- [Tt.name]: Tt.reducer
1111
+ [St.name]: St.reducer
1112
1112
  }), Qa = {
1113
1113
  name: "comment",
1114
1114
  reducer: Ya
@@ -1117,13 +1117,13 @@ const mi = (t, e, i = 500) => {
1117
1117
  return i !== 0 ? r.slice(-i) : r;
1118
1118
  }, ml = {
1119
1119
  slice: Qa,
1120
- actions: { fetchComments: P, deleteComment: St, ...Tt.actions },
1120
+ actions: { fetchComments: P, deleteComment: Et, ...St.actions },
1121
1121
  selectors: {
1122
1122
  commentList: za
1123
1123
  },
1124
1124
  getCommentRTHandlers: Ja,
1125
1125
  getCommentsLikeRTHandlers: Ka
1126
- }, D = {
1126
+ }, R = {
1127
1127
  route: "extra-bot",
1128
1128
  moduleName: "ExtraBotHook",
1129
1129
  configurationType: "extraBot",
@@ -1136,18 +1136,18 @@ const mi = (t, e, i = 500) => {
1136
1136
  listAll: {
1137
1137
  loading: "idle",
1138
1138
  data: [],
1139
- limit: D.listLimit,
1139
+ limit: R.listLimit,
1140
1140
  nbResults: 0,
1141
- page: D.listDefaultPage,
1141
+ page: R.listDefaultPage,
1142
1142
  filters: [],
1143
1143
  orders: []
1144
1144
  },
1145
1145
  listMines: {
1146
1146
  loading: "idle",
1147
1147
  data: [],
1148
- limit: D.listLimit,
1148
+ limit: R.listLimit,
1149
1149
  nbResults: 0,
1150
- page: D.listDefaultPage,
1150
+ page: R.listDefaultPage,
1151
1151
  filters: [],
1152
1152
  orders: []
1153
1153
  },
@@ -1157,7 +1157,7 @@ const mi = (t, e, i = 500) => {
1157
1157
  type: "all",
1158
1158
  extraBot: void 0
1159
1159
  }
1160
- }, K = p(
1160
+ }, J = p(
1161
1161
  "extraBot/fetchAll",
1162
1162
  async (t, { extra: e, rejectWithValue: i, dispatch: a, getState: r }) => {
1163
1163
  const n = r().extraBot.listAll;
@@ -1169,7 +1169,7 @@ const mi = (t, e, i = 500) => {
1169
1169
  orders: n.orders
1170
1170
  })).result;
1171
1171
  } catch (s) {
1172
- return v(s) || a(m.actions.error({ label: A(s) })), i({ error: 1, errorMsg: "Cannot retrieve extra bot list" });
1172
+ return v(s) || a(f.actions.error({ label: E(s) })), i({ error: 1, errorMsg: "Cannot retrieve extra bot list" });
1173
1173
  }
1174
1174
  }
1175
1175
  ), be = p("extraBot/fetchMines", async (t, { extra: e, rejectWithValue: i, dispatch: a, getState: r }) => {
@@ -1182,7 +1182,7 @@ const mi = (t, e, i = 500) => {
1182
1182
  orders: n.orders
1183
1183
  })).result;
1184
1184
  } catch (s) {
1185
- return v(s) || a(m.actions.error({ label: A(s) })), i({ error: 1, errorMsg: "Cannot retrieve extra bot list" });
1185
+ return v(s) || a(f.actions.error({ label: E(s) })), i({ error: 1, errorMsg: "Cannot retrieve extra bot list" });
1186
1186
  }
1187
1187
  }), Le = p(
1188
1188
  "extraBot/toggleActivation",
@@ -1190,69 +1190,69 @@ const mi = (t, e, i = 500) => {
1190
1190
  try {
1191
1191
  const r = !t.enabled, n = (await e.jApi.article.update(
1192
1192
  { ...t, enabled: r },
1193
- { format: gt.VIEW }
1193
+ { format: pt.VIEW }
1194
1194
  )).result;
1195
1195
  return n.enabled !== t.enabled ? (a(
1196
- m.actions.success({
1196
+ f.actions.success({
1197
1197
  label: r ? "APP_ExtraBot_Toast_ActivationSuccess" : "APP_ExtraBot_Toast_DeactivationSuccess"
1198
1198
  })
1199
- ), a(K())) : a(
1200
- m.actions.error({
1199
+ ), a(J())) : a(
1200
+ f.actions.error({
1201
1201
  label: "APP_ExtraBot_Toast_FailedToChangeActivation"
1202
1202
  })
1203
1203
  ), n;
1204
1204
  } catch (r) {
1205
- return v(r) || a(m.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Failed to change extra bot activation" });
1205
+ return v(r) || a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Failed to change extra bot activation" });
1206
1206
  }
1207
1207
  }
1208
1208
  ), we = p(
1209
1209
  "extraBot/save",
1210
1210
  async ({ extraBot: t }, { extra: e, rejectWithValue: i, dispatch: a }) => {
1211
1211
  try {
1212
- const r = { ...t, type: D.configurationType, publishTo: "" };
1212
+ const r = { ...t, type: R.configurationType, publishTo: "" };
1213
1213
  let n, s;
1214
1214
  if (delete r.avatar, t.uri)
1215
1215
  n = (await e.jApi.article.update(
1216
1216
  r,
1217
1217
  {
1218
- format: gt.VIEW
1218
+ format: pt.VIEW
1219
1219
  }
1220
1220
  )).result, s = (await e.jApi.extraBot.updateBot(n.uri)).result;
1221
1221
  else {
1222
1222
  if (n = (await e.jApi.article.create(
1223
1223
  { ...r },
1224
- { format: gt.VIEW }
1224
+ { format: pt.VIEW }
1225
1225
  )).result[0], !n)
1226
1226
  throw new Error("ExtraBot configuration creation failed");
1227
1227
  s = (await e.jApi.extraBot.createBot(n.uri)).result, n._user = s;
1228
1228
  }
1229
1229
  const l = t.uri ? "APP_ExtraBot_Toast_SaveEdit" : "APP_ExtraBot_Toast_SaveCreate";
1230
- return a(m.actions.success({ label: l })), n;
1230
+ return a(f.actions.success({ label: l })), n;
1231
1231
  } catch (r) {
1232
- return v(r) || a(m.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot retrieve extra bot" });
1232
+ return v(r) || a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot retrieve extra bot" });
1233
1233
  }
1234
1234
  }
1235
1235
  ), er = (t, e, i, a) => {
1236
1236
  const r = t.listAll.data.find((s) => s.uri === e), n = t.listMines.data.find((s) => s.uri === e);
1237
1237
  r && (r[i] = a), n && (n[i] = a);
1238
- }, Xt = T({
1238
+ }, Gt = T({
1239
1239
  name: "extraBot",
1240
1240
  initialState: Za,
1241
1241
  reducers: {
1242
1242
  setListAllOrder: (t, e) => {
1243
- t.listAll.orders = [...e.payload], t.listAll.page = D.listDefaultPage;
1243
+ t.listAll.orders = [...e.payload], t.listAll.page = R.listDefaultPage;
1244
1244
  },
1245
1245
  setListAllFilter: (t, e) => {
1246
- t.listAll.filters = [...e.payload], t.listAll.page = D.listDefaultPage;
1246
+ t.listAll.filters = [...e.payload], t.listAll.page = R.listDefaultPage;
1247
1247
  },
1248
1248
  setListAllPage: (t, e) => {
1249
1249
  t.listAll.page = e.payload;
1250
1250
  },
1251
1251
  setListMinesOrder: (t, e) => {
1252
- t.listMines.orders = [...e.payload], t.listMines.page = D.listDefaultPage;
1252
+ t.listMines.orders = [...e.payload], t.listMines.page = R.listDefaultPage;
1253
1253
  },
1254
1254
  setListMinesFilter: (t, e) => {
1255
- t.listMines.filters = [...e.payload], t.listMines.page = D.listDefaultPage;
1255
+ t.listMines.filters = [...e.payload], t.listMines.page = R.listDefaultPage;
1256
1256
  },
1257
1257
  setListMinesPage: (t, e) => {
1258
1258
  t.listMines.page = e.payload;
@@ -1265,16 +1265,16 @@ const mi = (t, e, i = 500) => {
1265
1265
  }
1266
1266
  },
1267
1267
  extraReducers: (t) => {
1268
- t.addCase(K.pending, (e) => {
1268
+ t.addCase(J.pending, (e) => {
1269
1269
  e.listAll.loading = "pending";
1270
- }).addCase(K.fulfilled, (e, i) => {
1271
- e.listAll.data = i.payload.data, e.listAll.nbResults = i.payload.cnt, e.listAll.limit = i.payload.limit ?? D.listLimit, e.listAll.page = i.payload.page, e.listAll.loading = "idle";
1272
- }).addCase(K.rejected, (e) => {
1270
+ }).addCase(J.fulfilled, (e, i) => {
1271
+ e.listAll.data = i.payload.data, e.listAll.nbResults = i.payload.cnt, e.listAll.limit = i.payload.limit ?? R.listLimit, e.listAll.page = i.payload.page, e.listAll.loading = "idle";
1272
+ }).addCase(J.rejected, (e) => {
1273
1273
  e.listAll.loading = "idle";
1274
1274
  }).addCase(be.pending, (e) => {
1275
1275
  e.listMines.loading = "pending";
1276
1276
  }).addCase(be.fulfilled, (e, i) => {
1277
- e.listMines.data = i.payload.data, e.listMines.nbResults = i.payload.cnt, e.listMines.limit = i.payload.limit ?? D.listLimit, e.listMines.page = i.payload.page, e.listMines.loading = "idle";
1277
+ e.listMines.data = i.payload.data, e.listMines.nbResults = i.payload.cnt, e.listMines.limit = i.payload.limit ?? R.listLimit, e.listMines.page = i.payload.page, e.listMines.loading = "idle";
1278
1278
  }).addCase(be.rejected, (e) => {
1279
1279
  e.listMines.loading = "idle";
1280
1280
  }).addCase(Le.pending, (e) => {
@@ -1294,13 +1294,13 @@ const mi = (t, e, i = 500) => {
1294
1294
  });
1295
1295
  }
1296
1296
  }), tr = (t) => t.extraBot.listAll, ir = (t) => t.extraBot.listMines, yl = {
1297
- slice: Xt,
1297
+ slice: Gt,
1298
1298
  actions: {
1299
- fetchExtraBotListAll: K,
1299
+ fetchExtraBotListAll: J,
1300
1300
  fetchExtraBotListMines: be,
1301
1301
  toggleExtraBotActivation: Le,
1302
1302
  saveExtraBot: we,
1303
- ...Xt.actions
1303
+ ...Gt.actions
1304
1304
  },
1305
1305
  selectors: { selectExtraBotListAll: tr, selectExtraBotListMines: ir }
1306
1306
  }, ar = {
@@ -1329,7 +1329,7 @@ const mi = (t, e, i = 500) => {
1329
1329
  throw i;
1330
1330
  }
1331
1331
  }
1332
- ), Jt = T({
1332
+ ), Xt = T({
1333
1333
  name: "config",
1334
1334
  initialState: ar,
1335
1335
  reducers: {},
@@ -1345,7 +1345,7 @@ const mi = (t, e, i = 500) => {
1345
1345
  categories: null
1346
1346
  }, ve = p("faqCategories/fetch", async (t, { extra: e }) => ({
1347
1347
  categories: (await e.jApi.faq.getCategoriesList()).result.data
1348
- })), Kt = T({
1348
+ })), Jt = T({
1349
1349
  name: "categories",
1350
1350
  initialState: rr,
1351
1351
  reducers: {},
@@ -1357,8 +1357,8 @@ const mi = (t, e, i = 500) => {
1357
1357
  });
1358
1358
  }
1359
1359
  }), nr = O({
1360
- [Jt.name]: Jt.reducer,
1361
- [Kt.name]: Kt.reducer
1360
+ [Xt.name]: Xt.reducer,
1361
+ [Jt.name]: Jt.reducer
1362
1362
  }), sr = {
1363
1363
  name: "faq",
1364
1364
  reducer: nr
@@ -1372,16 +1372,16 @@ const mi = (t, e, i = 500) => {
1372
1372
  selectFaqConfig: or,
1373
1373
  selectFaqCategories: lr
1374
1374
  }
1375
- }, Y = {
1375
+ }, K = {
1376
1376
  listLimit: 50,
1377
1377
  listDefaultPage: 1
1378
1378
  }, dr = {
1379
1379
  list: {
1380
1380
  loading: "idle",
1381
1381
  data: [],
1382
- limit: Y.listLimit,
1382
+ limit: K.listLimit,
1383
1383
  nbResults: 0,
1384
- page: Y.listDefaultPage,
1384
+ page: K.listDefaultPage,
1385
1385
  filters: [],
1386
1386
  orders: [
1387
1387
  {
@@ -1403,7 +1403,7 @@ const mi = (t, e, i = 500) => {
1403
1403
  orders: n.orders
1404
1404
  })).result;
1405
1405
  } catch (s) {
1406
- return v(s) || a(m.actions.error({ label: A(s) })), i({ error: 1, errorMsg: "Cannot retrieve file integrity list" });
1406
+ return v(s) || a(f.actions.error({ label: E(s) })), i({ error: 1, errorMsg: "Cannot retrieve file integrity list" });
1407
1407
  }
1408
1408
  }), Oe = p(
1409
1409
  "fileIntegrity/releaseQuarantine",
@@ -1411,7 +1411,7 @@ const mi = (t, e, i = 500) => {
1411
1411
  try {
1412
1412
  return (await e.jApi.fileIntegrity.release(t)).result;
1413
1413
  } catch (r) {
1414
- return v(r) || a(m.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot release quarantined file" });
1414
+ return v(r) || a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot release quarantined file" });
1415
1415
  }
1416
1416
  }
1417
1417
  ), Re = p(
@@ -1420,18 +1420,18 @@ const mi = (t, e, i = 500) => {
1420
1420
  try {
1421
1421
  return (await e.jApi.fileIntegrity.delete(t)).result;
1422
1422
  } catch (r) {
1423
- return v(r) || a(m.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot delete quarantined file" });
1423
+ return v(r) || a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot delete quarantined file" });
1424
1424
  }
1425
1425
  }
1426
- ), Yt = T({
1426
+ ), Kt = T({
1427
1427
  name: "fileIntegrity",
1428
1428
  initialState: dr,
1429
1429
  reducers: {
1430
1430
  setListOrder: (t, e) => {
1431
- t.list.orders = [...e.payload], t.list.page = Y.listDefaultPage;
1431
+ t.list.orders = [...e.payload], t.list.page = K.listDefaultPage;
1432
1432
  },
1433
1433
  setListFilter: (t, e) => {
1434
- t.list.filters = [...e.payload], t.list.page = Y.listDefaultPage;
1434
+ t.list.filters = [...e.payload], t.list.page = K.listDefaultPage;
1435
1435
  },
1436
1436
  setListPage: (t, e) => {
1437
1437
  t.list.page = e.payload;
@@ -1441,7 +1441,7 @@ const mi = (t, e, i = 500) => {
1441
1441
  t.addCase(he.pending, (e) => {
1442
1442
  e.list.loading = "pending";
1443
1443
  }).addCase(he.fulfilled, (e, i) => {
1444
- e.list.data = i.payload.data, e.list.nbResults = i.payload.cnt, e.list.limit = i.payload.limit ?? Y.listLimit, e.list.page = i.payload.page, e.list.loading = "idle";
1444
+ e.list.data = i.payload.data, e.list.nbResults = i.payload.cnt, e.list.limit = i.payload.limit ?? K.listLimit, e.list.page = i.payload.page, e.list.loading = "idle";
1445
1445
  }).addCase(he.rejected, (e) => {
1446
1446
  e.list.loading = "idle";
1447
1447
  }).addCase(Oe.pending, (e) => {
@@ -1459,33 +1459,33 @@ const mi = (t, e, i = 500) => {
1459
1459
  });
1460
1460
  }
1461
1461
  }), cr = (t) => t.fileIntegrity.action, ur = (t) => t.fileIntegrity.list, El = {
1462
- slice: Yt,
1462
+ slice: Kt,
1463
1463
  actions: {
1464
1464
  deleteQuarantine: Re,
1465
1465
  fetchFileIntegrityList: he,
1466
1466
  releaseQuarantine: Oe,
1467
- ...Yt.actions
1467
+ ...Kt.actions
1468
1468
  },
1469
1469
  selectors: { selectFileIntegrityAction: cr, selectFileIntegrityList: ur }
1470
- }, pr = (t) => t ? Object.keys(t).filter((e) => t[e]) : [], Qt = T({
1470
+ }, pr = (t) => t ? Object.keys(t).filter((e) => t[e]) : [], Yt = T({
1471
1471
  name: "hooks",
1472
1472
  initialState: {},
1473
1473
  reducers: {
1474
1474
  initHooks: (t, { payload: e }) => e
1475
1475
  }
1476
1476
  }), gr = (t) => t.hooks, fr = (t, e) => t.hooks[e], mr = (t, e) => !!t.hooks[e]?.hasLicense, Sl = {
1477
- slice: Qt,
1478
- actions: Qt.actions,
1477
+ slice: Yt,
1478
+ actions: Yt.actions,
1479
1479
  selectors: { selectHooks: gr, selectHook: fr, hasHookLicense: mr },
1480
1480
  utils: { buildDrivesArrayFromObject: pr }
1481
- }, Dt = (t) => {
1481
+ }, Rt = (t) => {
1482
1482
  const e = t.urlToJland;
1483
1483
  if (!e)
1484
1484
  return;
1485
1485
  const i = /(https:\/\/[^/]+)\/.*/g.exec(e);
1486
1486
  if (i)
1487
1487
  return i[1];
1488
- }, kt = (t, e, i) => `${i}/map/${e}/${t.uri}`, U = p("/fetchMaps", async ({ jlandUrlBase: t, retrieveAllMaps: e }, { extra: i }) => {
1488
+ }, Dt = (t, e, i) => `${i}/map/${e}/${t.uri}`, U = p("/fetchMaps", async ({ jlandUrlBase: t, retrieveAllMaps: e }, { extra: i }) => {
1489
1489
  const a = i.jApi, r = await a.network.getHostname();
1490
1490
  return await new Promise((n, s) => {
1491
1491
  const l = {
@@ -1495,11 +1495,11 @@ const mi = (t, e, i = 500) => {
1495
1495
  format: "raw-list",
1496
1496
  formatExtension: ["licenses"]
1497
1497
  })).then((g) => {
1498
- const f = g.result.data.map((c) => {
1499
- const E = { ...c };
1500
- return E.urlToJland = kt(c, r, t), E;
1498
+ const m = g.result.data.map((c) => {
1499
+ const A = { ...c };
1500
+ return A.urlToJland = Dt(c, r, t), A;
1501
1501
  });
1502
- n(f);
1502
+ n(m);
1503
1503
  }).catch((g) => {
1504
1504
  g.error && s(g), s({ error: 1, errorMsg: "Error retrieving maps" });
1505
1505
  });
@@ -1524,7 +1524,7 @@ const mi = (t, e, i = 500) => {
1524
1524
  });
1525
1525
  }
1526
1526
  ), De = p("/unassignLicense", async ({ map: t, retrieveAllMaps: e }, { extra: i, dispatch: a }) => {
1527
- const r = i.jApi, n = Dt(t);
1527
+ const r = i.jApi, n = Rt(t);
1528
1528
  return n ? await new Promise((s, l) => {
1529
1529
  r.admin.license.unAssignLicense(t.uri).then((d) => {
1530
1530
  d.result && (a(F()), a(U({ jlandUrlBase: n, retrieveAllMaps: e }))), s(d.result);
@@ -1537,7 +1537,7 @@ const mi = (t, e, i = 500) => {
1537
1537
  });
1538
1538
  }) : !1;
1539
1539
  }), ke = p("/deleteLicense", async ({ map: t, retrieveAllMaps: e }, { extra: i, dispatch: a }) => {
1540
- const r = i.jApi, n = Dt(t);
1540
+ const r = i.jApi, n = Rt(t);
1541
1541
  return n ? await new Promise((s, l) => {
1542
1542
  r.article.delete(t.id).then((d) => {
1543
1543
  s(d.result), a(U({ jlandUrlBase: n, retrieveAllMaps: e })), a(F());
@@ -1549,8 +1549,8 @@ const mi = (t, e, i = 500) => {
1549
1549
  l({ error: 1, errorMsg: d.errorMsg + "" });
1550
1550
  });
1551
1551
  }) : !1;
1552
- }), Q = p("/assignLicense", async ({ map: t, retrieveAllMaps: e }, { extra: i, dispatch: a }) => {
1553
- const r = Dt(t);
1552
+ }), Y = p("/assignLicense", async ({ map: t, retrieveAllMaps: e }, { extra: i, dispatch: a }) => {
1553
+ const r = Rt(t);
1554
1554
  if (!r)
1555
1555
  return !1;
1556
1556
  const n = i.jApi;
@@ -1565,7 +1565,7 @@ const mi = (t, e, i = 500) => {
1565
1565
  l({ error: 1, errorMsg: "Error assign license" });
1566
1566
  });
1567
1567
  });
1568
- }), zt = T({
1568
+ }), Qt = T({
1569
1569
  name: "jLandMapList",
1570
1570
  initialState: {
1571
1571
  maps: [],
@@ -1589,11 +1589,11 @@ const mi = (t, e, i = 500) => {
1589
1589
  e.loadingAvailableLicenses === "pending" && (e.loadingAvailableLicenses = "idle", e.availableLicenses = i.payload);
1590
1590
  }).addCase(F.rejected, (e) => {
1591
1591
  e.loadingAvailableLicenses === "pending" && (e.loadingAvailableLicenses = "idle");
1592
- }).addCase(Q.pending, (e, i) => {
1592
+ }).addCase(Y.pending, (e, i) => {
1593
1593
  e.loadingLicenseOperation[i.meta.arg.map.id] ??= "pending";
1594
- }).addCase(Q.fulfilled, (e, i) => {
1594
+ }).addCase(Y.fulfilled, (e, i) => {
1595
1595
  e.loadingLicenseOperation[i.meta.arg.map.id] === "pending" && (e.loadingLicenseOperation[i.meta.arg.map.id] = void 0);
1596
- }).addCase(Q.rejected, (e, i) => {
1596
+ }).addCase(Y.rejected, (e, i) => {
1597
1597
  e.loadingLicenseOperation[i.meta.arg.map.id] === "pending" && (e.loadingLicenseOperation[i.meta.arg.map.id] = void 0);
1598
1598
  }).addCase(De.pending, (e, i) => {
1599
1599
  e.loadingLicenseOperation[i.meta.arg.map.id] ??= "pending";
@@ -1617,7 +1617,7 @@ const mi = (t, e, i = 500) => {
1617
1617
  audience: [],
1618
1618
  illustration: "",
1619
1619
  assignLicense: !1
1620
- }, Zt = {
1620
+ }, zt = {
1621
1621
  map: { ...yr },
1622
1622
  loading: "idle",
1623
1623
  status: void 0,
@@ -1641,21 +1641,21 @@ const mi = (t, e, i = 500) => {
1641
1641
  const g = d.result[0] ? { ...d.result[0], urlToJland: void 0 } : void 0;
1642
1642
  if (t.assignLicense && g !== void 0) {
1643
1643
  const y = await n.network.getHostname();
1644
- g.urlToJland = kt(g, y, e), a(Q({ map: g, retrieveAllMaps: !1 }));
1644
+ g.urlToJland = Dt(g, y, e), a(Y({ map: g, retrieveAllMaps: !1 }));
1645
1645
  }
1646
1646
  s(d.result);
1647
1647
  }).catch(() => {
1648
1648
  l({ error: 1, errorMsg: "Error assign license" });
1649
1649
  });
1650
1650
  });
1651
- }), Ct = T({
1651
+ }), Tt = T({
1652
1652
  name: "mapCreate",
1653
- initialState: Zt,
1653
+ initialState: zt,
1654
1654
  reducers: {
1655
1655
  setMap: (t, e) => {
1656
1656
  t.map = e.payload;
1657
1657
  },
1658
- resetCreateMapState: () => Zt
1658
+ resetCreateMapState: () => zt
1659
1659
  },
1660
1660
  extraReducers: (t) => {
1661
1661
  t.addCase(Me.pending, (e) => {
@@ -1673,16 +1673,16 @@ const mi = (t, e, i = 500) => {
1673
1673
  }, Sr = function(e) {
1674
1674
  return e.jland.mapCreate;
1675
1675
  }, Tr = O({
1676
- [zt.name]: zt.reducer,
1677
- [Ct.name]: Ct.reducer
1676
+ [Qt.name]: Qt.reducer,
1677
+ [Tt.name]: Tt.reducer
1678
1678
  }), Cr = {
1679
1679
  name: "jland",
1680
1680
  reducer: Tr
1681
1681
  }, Tl = {
1682
1682
  slice: Cr,
1683
1683
  actions: {
1684
- ...Ct.actions,
1685
- assignLicense: Q,
1684
+ ...Tt.actions,
1685
+ assignLicense: Y,
1686
1686
  unassignLicense: De,
1687
1687
  deleteJlandMap: ke,
1688
1688
  fetchJLandMaps: U,
@@ -1694,7 +1694,7 @@ const mi = (t, e, i = 500) => {
1694
1694
  selectJLandAvailableLicenses: Er,
1695
1695
  selectMapCreate: Sr
1696
1696
  },
1697
- utils: { buildUrlToJland: kt }
1697
+ utils: { buildUrlToJland: Dt }
1698
1698
  }, br = {
1699
1699
  loading: "idle",
1700
1700
  pads: [],
@@ -1757,7 +1757,7 @@ const mi = (t, e, i = 500) => {
1757
1757
  }
1758
1758
  )).result;
1759
1759
  } catch (n) {
1760
- return a(m.actions.error({ label: A(n) })), i({ error: 1, errorMsg: "Cannot fetch pads" });
1760
+ return a(f.actions.error({ label: E(n) })), i({ error: 1, errorMsg: "Cannot fetch pads" });
1761
1761
  }
1762
1762
  }), wr = (t) => t.magicPad, Cl = {
1763
1763
  slice: Lr,
@@ -1765,7 +1765,7 @@ const mi = (t, e, i = 500) => {
1765
1765
  fetchPads: xe
1766
1766
  },
1767
1767
  selectors: { selectMagicPad: wr }
1768
- }, bt = {
1768
+ }, Ct = {
1769
1769
  typeMediaLibraryFolder: "mediaLibraryFolder",
1770
1770
  typeMediaLibraryFile: "mediaLibraryFile"
1771
1771
  }, Ir = 18, vr = 12, hr = 18, Or = {
@@ -1780,7 +1780,7 @@ const mi = (t, e, i = 500) => {
1780
1780
  stats: null,
1781
1781
  foldersStats: { loading: !1, pager: null },
1782
1782
  filesStats: { loading: !1, pager: null }
1783
- }, Ei = T({
1783
+ }, Ai = T({
1784
1784
  name: "mediaLibrary",
1785
1785
  initialState: Or,
1786
1786
  reducers: {
@@ -1851,7 +1851,7 @@ const mi = (t, e, i = 500) => {
1851
1851
  }
1852
1852
  }), je = p("MediaLibrary/fetchMediaLibraryFolders", async ({ page: t = 1, noLimit: e = !1, query: i }, { extra: a, rejectWithValue: r, dispatch: n, getState: s }) => {
1853
1853
  const l = {
1854
- type: bt.typeMediaLibraryFolder,
1854
+ type: Ct.typeMediaLibraryFolder,
1855
1855
  page: t,
1856
1856
  orders: [{ name: "title", sort: "ASC" }]
1857
1857
  };
@@ -1862,19 +1862,19 @@ const mi = (t, e, i = 500) => {
1862
1862
  format: "raw-list"
1863
1863
  });
1864
1864
  } catch (d) {
1865
- return n(m.actions.error({ label: A(d) })), r({ error: 1, errorMsg: "Cannot retrieve folders" });
1865
+ return n(f.actions.error({ label: E(d) })), r({ error: 1, errorMsg: "Cannot retrieve folders" });
1866
1866
  }
1867
1867
  }), _e = p(
1868
1868
  "MediaLibrary/fetchFolderFiles",
1869
1869
  async ({ folderId: t, page: e }, { extra: i, rejectWithValue: a, dispatch: r }) => {
1870
1870
  const n = {
1871
- type: bt.typeMediaLibraryFile,
1871
+ type: Ct.typeMediaLibraryFile,
1872
1872
  page: e,
1873
1873
  limit: hr,
1874
1874
  filters: [
1875
1875
  {
1876
1876
  name: "mediaLibraryFolderOrientedLinks",
1877
- value: { targetId: t, targetType: bt.typeMediaLibraryFolder }
1877
+ value: { targetId: t, targetType: Ct.typeMediaLibraryFolder }
1878
1878
  }
1879
1879
  ],
1880
1880
  format: "raw-list",
@@ -1883,7 +1883,7 @@ const mi = (t, e, i = 500) => {
1883
1883
  try {
1884
1884
  return await i.jApi.article.list(n);
1885
1885
  } catch (s) {
1886
- return r(m.actions.error({ label: A(s) })), a({ error: 1, errorMsg: `Cannot retrieve files for folder ${t}` });
1886
+ return r(f.actions.error({ label: E(s) })), a({ error: 1, errorMsg: `Cannot retrieve files for folder ${t}` });
1887
1887
  }
1888
1888
  }
1889
1889
  ), Ne = p("MediaLibrary/fetchMediaLibraryUnclassifiedFiles", async ({ page: t, query: e }, { extra: i, rejectWithValue: a, dispatch: r, getState: n }) => {
@@ -1895,7 +1895,7 @@ const mi = (t, e, i = 500) => {
1895
1895
  query: l
1896
1896
  });
1897
1897
  } catch (s) {
1898
- return r(m.actions.error({ label: A(s) })), a({ error: 1, errorMsg: "Cannot retrieve UnclassifiedFiles" });
1898
+ return r(f.actions.error({ label: E(s) })), a({ error: 1, errorMsg: "Cannot retrieve UnclassifiedFiles" });
1899
1899
  }
1900
1900
  }), Pe = p(
1901
1901
  "MediaLibrary/fetchMediaLibraryConfig",
@@ -1903,7 +1903,7 @@ const mi = (t, e, i = 500) => {
1903
1903
  try {
1904
1904
  return await e.jApi.mediaLibrary.getAccess();
1905
1905
  } catch (r) {
1906
- return a(m.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot get MediaLibrary Config" });
1906
+ return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot get MediaLibrary Config" });
1907
1907
  }
1908
1908
  }
1909
1909
  ), Ue = p(
@@ -1912,7 +1912,7 @@ const mi = (t, e, i = 500) => {
1912
1912
  try {
1913
1913
  return await a.jApi.mediaLibrary.getFoldersStatsList(e, i, t);
1914
1914
  } catch (s) {
1915
- return n(m.actions.error({ label: A(s) })), r({ error: 1, errorMsg: "Cannot get MediaLibrary folders stats" });
1915
+ return n(f.actions.error({ label: E(s) })), r({ error: 1, errorMsg: "Cannot get MediaLibrary folders stats" });
1916
1916
  }
1917
1917
  }
1918
1918
  ), Fe = p(
@@ -1921,7 +1921,7 @@ const mi = (t, e, i = 500) => {
1921
1921
  try {
1922
1922
  return await a.jApi.mediaLibrary.getFilesStatsList(e, i, t);
1923
1923
  } catch (s) {
1924
- return n(m.actions.error({ label: A(s) })), r({ error: 1, errorMsg: "Cannot get MediaLibrary files stats" });
1924
+ return n(f.actions.error({ label: E(s) })), r({ error: 1, errorMsg: "Cannot get MediaLibrary files stats" });
1925
1925
  }
1926
1926
  }
1927
1927
  ), Be = p(
@@ -1930,11 +1930,11 @@ const mi = (t, e, i = 500) => {
1930
1930
  try {
1931
1931
  return await e.jApi.mediaLibrary.getStats();
1932
1932
  } catch (r) {
1933
- return a(m.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot get MediaLibrary stats" });
1933
+ return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot get MediaLibrary stats" });
1934
1934
  }
1935
1935
  }
1936
- ), Rr = (t) => t.mediaLibrary, Dr = (t) => t.mediaLibrary.stats, kr = (t) => t.mediaLibrary.foldersStats, Mr = (t) => t.mediaLibrary.filesStats, xr = (t) => t.mediaLibrary.folders, jr = (t) => t.mediaLibrary.foldersAll, _r = (t) => t.mediaLibrary.folderFiles, Nr = (t) => t.mediaLibrary.unclassifiedFiles, bl = Ei.reducer, Ll = {
1937
- slice: Ei,
1936
+ ), Rr = (t) => t.mediaLibrary, Dr = (t) => t.mediaLibrary.stats, kr = (t) => t.mediaLibrary.foldersStats, Mr = (t) => t.mediaLibrary.filesStats, xr = (t) => t.mediaLibrary.folders, jr = (t) => t.mediaLibrary.foldersAll, _r = (t) => t.mediaLibrary.folderFiles, Nr = (t) => t.mediaLibrary.unclassifiedFiles, bl = Ai.reducer, Ll = {
1937
+ slice: Ai,
1938
1938
  actions: {
1939
1939
  fetchMediaLibraryFolders: je,
1940
1940
  fetchFolderFiles: _e,
@@ -1954,7 +1954,7 @@ const mi = (t, e, i = 500) => {
1954
1954
  selectFolderFiles: _r,
1955
1955
  selectUnclassifiedFiles: Nr
1956
1956
  }
1957
- }, G = lt({
1957
+ }, H = lt({
1958
1958
  selectId: (t) => t.type,
1959
1959
  sortComparer: (t, e) => t.label.localeCompare(e.label)
1960
1960
  }), Pr = (t, e) => {
@@ -2010,40 +2010,40 @@ const mi = (t, e, i = 500) => {
2010
2010
  "weDoc-pptx": "file-powerpoint",
2011
2011
  wiki: "fs-wiki",
2012
2012
  workgroup: "fs-workgroup"
2013
- }[t] ?? t}`, ei = T({
2013
+ }[t] ?? t}`, Zt = T({
2014
2014
  name: "models",
2015
- initialState: G.getInitialState(),
2015
+ initialState: H.getInitialState(),
2016
2016
  reducers: {
2017
- addOne: G.addOne,
2018
- addMany: G.addMany,
2019
- setAll: G.setAll
2017
+ addOne: H.addOne,
2018
+ addMany: H.addMany,
2019
+ setAll: H.setAll
2020
2020
  }
2021
- }), Fr = G.getSelectors((t) => t.entities.models), Br = {
2021
+ }), Fr = H.getSelectors((t) => t.entities.models), Br = {
2022
2022
  getModelIconSrc: Pr,
2023
2023
  getModelFontAwesomeIcon: Ur
2024
2024
  }, Wr = (t, e) => e.map((i) => t.entities.models.entities[i]).filter((i) => !!i), qr = {
2025
- slice: ei,
2026
- actions: { ...ei.actions },
2025
+ slice: Zt,
2026
+ actions: { ...Zt.actions },
2027
2027
  utils: Br,
2028
2028
  selectors: {
2029
2029
  ...Fr,
2030
2030
  selectByIds: Wr
2031
2031
  }
2032
- }, $r = {}, Lt = T({
2032
+ }, $r = {}, bt = T({
2033
2033
  name: "statics",
2034
2034
  initialState: $r,
2035
2035
  reducers: {
2036
2036
  initNetworkStatics: (t, { payload: e }) => e
2037
2037
  }
2038
2038
  }), Vr = O({
2039
- [Lt.name]: Lt.reducer
2039
+ [bt.name]: bt.reducer
2040
2040
  }), Hr = {
2041
2041
  name: "network",
2042
2042
  reducer: Vr
2043
2043
  }, Gr = (t) => t.network.statics, Xr = (t) => t.network.statics.networkPublic, Jr = (t) => t.network.statics.networkMe, wl = {
2044
2044
  slice: Hr,
2045
2045
  actions: {
2046
- ...Lt.actions
2046
+ ...bt.actions
2047
2047
  },
2048
2048
  selectors: {
2049
2049
  selectNetworkStatics: Gr,
@@ -2053,21 +2053,21 @@ const mi = (t, e, i = 500) => {
2053
2053
  }, Kr = {
2054
2054
  userAccountStatus: 0,
2055
2055
  sendAlert: 0
2056
- }, Si = T({
2056
+ }, Ei = T({
2057
2057
  name: "config",
2058
2058
  initialState: Kr,
2059
2059
  reducers: {
2060
2060
  initPlatformConfig: (t, { payload: e }) => e
2061
2061
  }
2062
2062
  }), Yr = O({
2063
- config: Si.reducer
2063
+ config: Ei.reducer
2064
2064
  }), Qr = {
2065
2065
  name: "platform",
2066
2066
  reducer: Yr
2067
2067
  }, zr = (t) => t.platform.config, Zr = (t) => t.platform.config.userHighlightFields, en = (t) => t.platform.config.userAccountStatus, tn = (t) => t.platform.config.urlBase, Il = {
2068
2068
  slice: Qr,
2069
2069
  actions: {
2070
- ...Si.actions
2070
+ ...Ei.actions
2071
2071
  },
2072
2072
  selectors: {
2073
2073
  selectPlatformConfig: zr,
@@ -2075,7 +2075,7 @@ const mi = (t, e, i = 500) => {
2075
2075
  selectUserAccountStatus: en,
2076
2076
  selectUrlBase: tn
2077
2077
  }
2078
- }, Ti = {
2078
+ }, Si = {
2079
2079
  query: "",
2080
2080
  filters: [],
2081
2081
  limit: 20,
@@ -2083,12 +2083,12 @@ const mi = (t, e, i = 500) => {
2083
2083
  page: 1
2084
2084
  }, We = p("/fetchFiles", async ({ page: t, query: e, sort: i }, { extra: a, getState: r }) => {
2085
2085
  const n = a.jApi, s = r(), l = s.wedoc.tab === "my-documents" ? [{ name: "idUser", value: "0" }] : [], d = [{ name: "dateCreation", sort: i }], g = e !== s.wedoc.query ? 1 : t;
2086
- return await n.wedoc.getFiles({ ...Ti, filters: l, query: e, orders: d, page: g, limit: 12 });
2086
+ return await n.wedoc.getFiles({ ...Si, filters: l, query: e, orders: d, page: g, limit: 12 });
2087
2087
  }), qe = p(
2088
2088
  "/fetchRecentFiles",
2089
2089
  async (t, { extra: e, getState: i }) => {
2090
2090
  const a = e.jApi, n = i().wedoc.tab === "my-documents" ? [{ name: "idUser", value: "0" }] : [];
2091
- return await a.wedoc.getFiles({ ...Ti, filters: n, limit: 3 });
2091
+ return await a.wedoc.getFiles({ ...Si, filters: n, limit: 3 });
2092
2092
  }
2093
2093
  ), an = {
2094
2094
  entities: [],
@@ -2198,19 +2198,19 @@ const mi = (t, e, i = 500) => {
2198
2198
  }
2199
2199
  },
2200
2200
  extraReducers: (t) => {
2201
- t.addCase(wt.fulfilled, (e, i) => {
2201
+ t.addCase(Lt.fulfilled, (e, i) => {
2202
2202
  i.payload ? e.status = "processing" : e.status = "error";
2203
- }), t.addCase(wt.rejected, (e, i) => {
2203
+ }), t.addCase(Lt.rejected, (e, i) => {
2204
2204
  e.status = "error", e.message = i.payload?.errorMsg ?? "GLOBAL_Technical_Error";
2205
2205
  });
2206
2206
  }
2207
- }), wt = p(
2207
+ }), Lt = p(
2208
2208
  "teamWork/startToDoCreation",
2209
2209
  async (t, { extra: e, rejectWithValue: i, dispatch: a, signal: r }) => {
2210
2210
  try {
2211
2211
  return (await e.jApi.teamWork.aiGeneratedToDo({ signal: r })).result;
2212
2212
  } catch (n) {
2213
- return v(n) || a(m.actions.error({ label: A(n) })), i({ error: 1, errorMsg: "APP_TEAMWORK_ToDo_Not_Sent" });
2213
+ return v(n) || a(f.actions.error({ label: E(n) })), i({ error: 1, errorMsg: "APP_TEAMWORK_ToDo_Not_Sent" });
2214
2214
  }
2215
2215
  }
2216
2216
  ), ln = function(t) {
@@ -2225,14 +2225,14 @@ const mi = (t, e, i = 500) => {
2225
2225
  ];
2226
2226
  }, dn = (t) => t.teamWork.teamWorkToDo, cn = O({
2227
2227
  [at.name]: at.reducer
2228
- }), Ci = {
2228
+ }), Ti = {
2229
2229
  name: "teamWork",
2230
2230
  reducer: cn
2231
- }, Ol = Ci.reducer, Rl = {
2232
- slice: Ci,
2231
+ }, Ol = Ti.reducer, Rl = {
2232
+ slice: Ti,
2233
2233
  actions: {
2234
2234
  ...at.actions,
2235
- startToDoCreation: wt
2235
+ startToDoCreation: Lt
2236
2236
  },
2237
2237
  selectors: { selectToDoState: dn },
2238
2238
  getTeamWorkRTHandlers: ln
@@ -2240,7 +2240,7 @@ const mi = (t, e, i = 500) => {
2240
2240
  channels: void 0,
2241
2241
  loading: "idle",
2242
2242
  loadingChannelDeletion: "idle"
2243
- }, z = p(
2243
+ }, Q = p(
2244
2244
  "/fetchChannels",
2245
2245
  async (t, { extra: e }) => {
2246
2246
  const i = t ?? 1, a = e.jApi;
@@ -2263,21 +2263,21 @@ const mi = (t, e, i = 500) => {
2263
2263
  const a = e.jApi;
2264
2264
  return await new Promise((r, n) => {
2265
2265
  a.article.delete(t.id).then((s) => {
2266
- r(s.result), i(z());
2266
+ r(s.result), i(Q());
2267
2267
  }).catch((s) => {
2268
2268
  n({ error: s.error ?? 1, errorMsg: s.errorMsg ?? "Error deleting channel" });
2269
2269
  });
2270
2270
  });
2271
- }), ti = T({
2271
+ }), ei = T({
2272
2272
  name: "channelsList",
2273
2273
  initialState: { ...un },
2274
2274
  reducers: {},
2275
2275
  extraReducers: (t) => {
2276
- t.addCase(z.pending, (e) => {
2276
+ t.addCase(Q.pending, (e) => {
2277
2277
  e.loading === "idle" && (e.loading = "pending");
2278
- }).addCase(z.fulfilled, (e, i) => {
2278
+ }).addCase(Q.fulfilled, (e, i) => {
2279
2279
  e.loading === "pending" && (e.loading = "idle", e.channels = i.payload);
2280
- }).addCase(z.rejected, (e) => {
2280
+ }).addCase(Q.rejected, (e) => {
2281
2281
  e.loading === "pending" && (e.loading = "idle");
2282
2282
  }).addCase(Ve.pending, (e) => {
2283
2283
  e.loadingChannelDeletion = "pending";
@@ -2292,7 +2292,7 @@ function pn(t) {
2292
2292
  return t.tvChannelType === "DYNAMIC" ? !!t.tvChannelBackgroundColor && !!t.tvChannelGroupTarget : t.tvChannelNumImages !== 0;
2293
2293
  }
2294
2294
  const gn = O({
2295
- [ti.name]: ti.reducer
2295
+ [ei.name]: ei.reducer
2296
2296
  }), fn = {
2297
2297
  name: "tvDisplay",
2298
2298
  reducer: gn
@@ -2301,7 +2301,7 @@ const gn = O({
2301
2301
  }, Dl = {
2302
2302
  slice: fn,
2303
2303
  actions: {
2304
- fetchChannels: z,
2304
+ fetchChannels: Q,
2305
2305
  deleteChannel: Ve
2306
2306
  },
2307
2307
  selectors: {
@@ -2310,21 +2310,21 @@ const gn = O({
2310
2310
  utils: {
2311
2311
  isChannelConfigured: pn
2312
2312
  }
2313
- }, yn = {}, It = T({
2313
+ }, yn = {}, wt = T({
2314
2314
  name: "options",
2315
2315
  initialState: yn,
2316
2316
  reducers: {
2317
2317
  initOptions: (t, { payload: e }) => e
2318
2318
  }
2319
2319
  }), An = O({
2320
- [It.name]: It.reducer
2320
+ [wt.name]: wt.reducer
2321
2321
  }), En = {
2322
2322
  name: "tinymce",
2323
2323
  reducer: An
2324
2324
  }, Sn = (t) => t.tinymce.options.common, Tn = (t) => t.tinymce.options.extended, kl = {
2325
2325
  slice: En,
2326
2326
  actions: {
2327
- ...It.actions
2327
+ ...wt.actions
2328
2328
  },
2329
2329
  selectors: {
2330
2330
  selectTinyMCECommonOptions: Sn,
@@ -2341,36 +2341,36 @@ const gn = O({
2341
2341
  dateModified: "",
2342
2342
  level: 0,
2343
2343
  active: 1
2344
- }, ii = T({
2344
+ }, ti = T({
2345
2345
  name: "userCurrent",
2346
2346
  initialState: Cn,
2347
2347
  reducers: {
2348
2348
  init: (t, { payload: e }) => e
2349
2349
  }
2350
2350
  }), bn = (t) => t.userCurrent, Ln = (t) => t.level === Xi.ADMIN, wn = (t) => t.id !== 0, Ml = {
2351
- slice: ii,
2352
- actions: { ...ii.actions },
2351
+ slice: ti,
2352
+ actions: { ...ti.actions },
2353
2353
  selectors: {
2354
2354
  get: bn
2355
2355
  },
2356
2356
  utils: { isAdmin: Ln, isLogged: wn }
2357
2357
  };
2358
- function Mt() {
2358
+ function kt() {
2359
2359
  let t = "";
2360
2360
  for (let e = 0; e < 16; e++)
2361
2361
  t += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
2362
2362
  return t;
2363
2363
  }
2364
- const bi = "WIDGET_Check_List", Li = "WIDGET_Check_List_Description", wi = "WIDGET_Quick_Survey", Ii = "WIDGET_Quick_Survey_Text", In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2364
+ const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDGET_Quick_Survey", wi = "WIDGET_Quick_Survey_Text", In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2365
2365
  __proto__: null,
2366
- WIDGET_CHECK_LIST_DESCRIPTION: Li,
2367
- WIDGET_CHECK_LIST_LABEL: bi,
2368
- WIDGET_QUICK_SURVEY_DESCRIPTION: Ii,
2369
- WIDGET_QUICK_SURVEY_LABEL: wi
2366
+ WIDGET_CHECK_LIST_DESCRIPTION: bi,
2367
+ WIDGET_CHECK_LIST_LABEL: Ci,
2368
+ WIDGET_QUICK_SURVEY_DESCRIPTION: wi,
2369
+ WIDGET_QUICK_SURVEY_LABEL: Li
2370
2370
  }, Symbol.toStringTag, { value: "Module" })), vn = {
2371
2371
  label: "WIDGET_Article_Attachment",
2372
2372
  description: "WIDGET_Article_Attachment_Description",
2373
- name: b.ArticleAttachment,
2373
+ name: C.ArticleAttachment,
2374
2374
  img: "/img/article-widget-thumbnail/widget_thumbnail_files.png",
2375
2375
  available: !0,
2376
2376
  panel: {
@@ -2384,7 +2384,7 @@ const bi = "WIDGET_Check_List", Li = "WIDGET_Check_List_Description", wi = "WIDG
2384
2384
  }, On = {
2385
2385
  label: "WIDGET_BUTTON",
2386
2386
  description: "WIDGET_Button_Description",
2387
- name: b.ArticleButton,
2387
+ name: C.ArticleButton,
2388
2388
  img: "/img/article-widget-thumbnail/widget_thumbnail_button.png",
2389
2389
  available: !0,
2390
2390
  panel: {
@@ -2406,10 +2406,10 @@ const bi = "WIDGET_Check_List", Li = "WIDGET_Check_List_Description", wi = "WIDG
2406
2406
  backgroundColor: "#4dbf96",
2407
2407
  buttonSize: "lg",
2408
2408
  borderRadius: "4"
2409
- }, ai = {
2409
+ }, ii = {
2410
2410
  label: "WIDGET_Article_Gallery",
2411
2411
  description: "WIDGET_Article_Gallery_Description",
2412
- name: b.ArticleGallery,
2412
+ name: C.ArticleGallery,
2413
2413
  img: "/img/article-widget-thumbnail/widget_thumbnail_slider.png",
2414
2414
  available: !0,
2415
2415
  panel: {
@@ -2425,7 +2425,7 @@ const bi = "WIDGET_Check_List", Li = "WIDGET_Check_List_Description", wi = "WIDG
2425
2425
  }, kn = {
2426
2426
  label: "WIDGET_Article_Image",
2427
2427
  description: "WIDGET_Article_Image_Description",
2428
- name: b.ArticleImage,
2428
+ name: C.ArticleImage,
2429
2429
  img: "/img/article-widget-thumbnail/widget_thumbnail_illustration.png",
2430
2430
  available: !0,
2431
2431
  panel: {
@@ -2437,7 +2437,7 @@ const bi = "WIDGET_Check_List", Li = "WIDGET_Check_List_Description", wi = "WIDG
2437
2437
  }, Mn = {}, xn = {
2438
2438
  label: "WIDGET_Slider",
2439
2439
  description: "WIDGET_Slider_Description",
2440
- name: b.ArticleSlider,
2440
+ name: C.ArticleSlider,
2441
2441
  img: "/img/article-widget-thumbnail/widget_thumbnail_slider.png",
2442
2442
  available: !0,
2443
2443
  panel: {
@@ -2455,7 +2455,7 @@ const bi = "WIDGET_Check_List", Li = "WIDGET_Check_List_Description", wi = "WIDG
2455
2455
  }, _n = {
2456
2456
  label: "WIDGET_Text",
2457
2457
  description: "WIDGET_Text_Description",
2458
- name: b.ArticleText,
2458
+ name: C.ArticleText,
2459
2459
  img: "/img/article-widget-thumbnail/widget_thumbnail_text.png",
2460
2460
  available: !0,
2461
2461
  panel: {
@@ -2469,7 +2469,7 @@ const bi = "WIDGET_Check_List", Li = "WIDGET_Check_List_Description", wi = "WIDG
2469
2469
  }, Pn = {
2470
2470
  label: "WIDGET_Title",
2471
2471
  description: "WIDGET_Title_Description",
2472
- name: b.ArticleTitle,
2472
+ name: C.ArticleTitle,
2473
2473
  img: "/img/article-widget-thumbnail/widget_thumbnail_title.png",
2474
2474
  available: !0,
2475
2475
  panel: {
@@ -2485,7 +2485,7 @@ const bi = "WIDGET_Check_List", Li = "WIDGET_Check_List_Description", wi = "WIDG
2485
2485
  }, Fn = {
2486
2486
  label: "WIDGET_Calendar_CalDav",
2487
2487
  description: "WIDGET_Calendar_CalDav_Text",
2488
- name: b.CalendarCalDav,
2488
+ name: C.CalendarCalDav,
2489
2489
  img: "/img/fast-intranet/widget-calendar-calDav.png",
2490
2490
  available: !0,
2491
2491
  displayLevel: [1, 3],
@@ -2500,9 +2500,9 @@ const bi = "WIDGET_Check_List", Li = "WIDGET_Check_List_Description", wi = "WIDG
2500
2500
  calEventsLimitValue: 10,
2501
2501
  calEventsPromptStatus: "shared"
2502
2502
  }, Wn = {
2503
- label: bi,
2504
- description: Li,
2505
- name: b.CheckList,
2503
+ label: Ci,
2504
+ description: bi,
2505
+ name: C.CheckList,
2506
2506
  img: "/img/fast-intranet/widget-check-list.png",
2507
2507
  available: !0,
2508
2508
  panel: {
@@ -2517,7 +2517,7 @@ const bi = "WIDGET_Check_List", Li = "WIDGET_Check_List_Description", wi = "WIDG
2517
2517
  }, $n = {
2518
2518
  label: "WIDGET_Contact_CardDav",
2519
2519
  description: "WIDGET_Contact_CardDav_Text",
2520
- name: b.ContactCardDav,
2520
+ name: C.ContactCardDav,
2521
2521
  img: "/img/fast-intranet/widget-contact-cardDav.png",
2522
2522
  available: !0,
2523
2523
  displayLevel: [1, 3],
@@ -2534,7 +2534,7 @@ const bi = "WIDGET_Check_List", Li = "WIDGET_Check_List_Description", wi = "WIDG
2534
2534
  }, Hn = {
2535
2535
  label: "WIDGET_Datasource_Table",
2536
2536
  description: "WIDGET_Datasource_Table_Description",
2537
- name: b.DatasourceTable,
2537
+ name: C.DatasourceTable,
2538
2538
  img: "/img/fast-intranet/widget-datasource-table.png",
2539
2539
  available: !0,
2540
2540
  panel: {
@@ -2553,7 +2553,7 @@ const bi = "WIDGET_Check_List", Li = "WIDGET_Check_List_Description", wi = "WIDG
2553
2553
  }, Xn = {
2554
2554
  label: "WIDGET_Email_IMAP",
2555
2555
  description: "WIDGET_Email_IMAP_Text",
2556
- name: b.EmailsImap,
2556
+ name: C.EmailsImap,
2557
2557
  img: "/img/fast-intranet/widget-emails-imap.png",
2558
2558
  available: !0,
2559
2559
  displayLevel: [1, 2, 3],
@@ -2570,7 +2570,7 @@ const bi = "WIDGET_Check_List", Li = "WIDGET_Check_List_Description", wi = "WIDG
2570
2570
  }, Kn = {
2571
2571
  label: "WIDGET_Excel_Datasource_Table",
2572
2572
  description: "WIDGET_Excel_Datasource_Table_Text",
2573
- name: b.ExcelDatasourceTable,
2573
+ name: C.ExcelDatasourceTable,
2574
2574
  img: "/img/fast-intranet/widget-excel-datasource-table.png",
2575
2575
  available: !0,
2576
2576
  panel: {
@@ -2589,7 +2589,7 @@ const bi = "WIDGET_Check_List", Li = "WIDGET_Check_List_Description", wi = "WIDG
2589
2589
  }, Qn = {
2590
2590
  label: "WIDGET_Extension",
2591
2591
  description: "WIDGET_Extension_Description",
2592
- name: b.Extension,
2592
+ name: C.Extension,
2593
2593
  img: "/img/article-widget-thumbnail/widget-extension.png",
2594
2594
  available: !0,
2595
2595
  panel: {
@@ -2603,7 +2603,7 @@ const bi = "WIDGET_Check_List", Li = "WIDGET_Check_List_Description", wi = "WIDG
2603
2603
  }, Zn = {
2604
2604
  label: "WIDGET_Lucca_Absence",
2605
2605
  description: "WIDGET_Lucca_Absence_Text",
2606
- name: b.LuccaAbsence,
2606
+ name: C.LuccaAbsence,
2607
2607
  img: "/img/fast-intranet/widget-lucca-absence.png",
2608
2608
  available: !0,
2609
2609
  panel: {
@@ -2617,7 +2617,7 @@ const bi = "WIDGET_Check_List", Li = "WIDGET_Check_List_Description", wi = "WIDG
2617
2617
  }, ts = {
2618
2618
  label: "WIDGET_Presence",
2619
2619
  description: "WIDGET_Presence_Text",
2620
- name: b.Presence,
2620
+ name: C.Presence,
2621
2621
  img: "/img/fast-intranet/widget-presence.png",
2622
2622
  available: !0,
2623
2623
  panel: {
@@ -2631,9 +2631,9 @@ const bi = "WIDGET_Check_List", Li = "WIDGET_Check_List_Description", wi = "WIDG
2631
2631
  limit: !1,
2632
2632
  limitValue: 100
2633
2633
  }, as = {
2634
- label: wi,
2635
- description: Ii,
2636
- name: b.QuickSurvey,
2634
+ label: Li,
2635
+ description: wi,
2636
+ name: C.QuickSurvey,
2637
2637
  img: "/img/fast-intranet/widget-quick-survey.png",
2638
2638
  available: !0,
2639
2639
  panel: {
@@ -2653,7 +2653,7 @@ const bi = "WIDGET_Check_List", Li = "WIDGET_Check_List_Description", wi = "WIDG
2653
2653
  }, ns = {
2654
2654
  label: "WIDGET_User_Profil",
2655
2655
  description: "WIDGET_User_Profil_Text",
2656
- name: b.UserProfile,
2656
+ name: C.UserProfile,
2657
2657
  img: "/img/fast-intranet/widget-user-profil.png",
2658
2658
  available: !0,
2659
2659
  panel: {
@@ -2665,7 +2665,7 @@ const bi = "WIDGET_Check_List", Li = "WIDGET_Check_List_Description", wi = "WIDG
2665
2665
  }, ss = {}, os = {
2666
2666
  label: "WIDGET_Color",
2667
2667
  description: "WIDGET_Color_Text",
2668
- name: b.Color,
2668
+ name: C.Color,
2669
2669
  img: "/img/fast-intranet/widget-color.png",
2670
2670
  available: !0,
2671
2671
  panel: {
@@ -2677,7 +2677,7 @@ const bi = "WIDGET_Check_List", Li = "WIDGET_Check_List_Description", wi = "WIDG
2677
2677
  }, ls = {}, ds = {
2678
2678
  label: "WIDGET_Welcome",
2679
2679
  description: "WIDGET_Welcome_Text",
2680
- name: b.Welcome,
2680
+ name: C.Welcome,
2681
2681
  img: "/img/fast-intranet/widget-welcome.png",
2682
2682
  available: !0,
2683
2683
  panel: {
@@ -2690,9 +2690,9 @@ const bi = "WIDGET_Check_List", Li = "WIDGET_Check_List_Description", wi = "WIDG
2690
2690
  function us(t) {
2691
2691
  switch (t) {
2692
2692
  default:
2693
- return ai;
2693
+ return ii;
2694
2694
  case "widget-article-gallery":
2695
- return ai;
2695
+ return ii;
2696
2696
  case "widget-article-attachment":
2697
2697
  return vn;
2698
2698
  case "widget-presence":
@@ -2742,7 +2742,7 @@ function ps(t) {
2742
2742
  }
2743
2743
  function gs(t) {
2744
2744
  return {
2745
- uniqid: Mt(),
2745
+ uniqid: kt(),
2746
2746
  name: t,
2747
2747
  content: fs(t)
2748
2748
  };
@@ -2851,13 +2851,13 @@ const ms = {
2851
2851
  rtObjectStack: [],
2852
2852
  widgetContext: {}
2853
2853
  }, ys = [
2854
- b.ArticleTitle,
2855
- b.ArticleText,
2856
- b.ArticleImage,
2857
- b.ArticleButton,
2858
- b.ArticleSlider,
2859
- b.ArticleAttachment
2860
- ], X = T({
2854
+ C.ArticleTitle,
2855
+ C.ArticleText,
2856
+ C.ArticleImage,
2857
+ C.ArticleButton,
2858
+ C.ArticleSlider,
2859
+ C.ArticleAttachment
2860
+ ], G = T({
2861
2861
  name: "widgets",
2862
2862
  initialState: ms,
2863
2863
  reducers: {
@@ -2926,7 +2926,7 @@ const ms = {
2926
2926
  t.ids[i] && (t.ids[i] = Object.assign({ ...t.ids[i], ...e.payload }));
2927
2927
  },
2928
2928
  registerLayer: (t, e) => {
2929
- const i = Mt(), a = { ...t.ids[e.payload.uniqid] };
2929
+ const i = kt(), a = { ...t.ids[e.payload.uniqid] };
2930
2930
  a.widget && (t.ids[e.payload.uniqid] && a.widget.layers ? t.ids[e.payload.uniqid] = Object.assign({
2931
2931
  ...t.ids[e.payload.uniqid],
2932
2932
  widget: {
@@ -3022,7 +3022,7 @@ const ms = {
3022
3022
  function: "widget-presence-response",
3023
3023
  handler: function(s) {
3024
3024
  s.namespace === "WIDGET" && s.function === "widget-presence-response" && s.data?.uniqid === e && t(
3025
- X.actions.registerWidgetRTObject({
3025
+ G.actions.registerWidgetRTObject({
3026
3026
  uniqid: s.data.uniqid,
3027
3027
  object: s.data.object,
3028
3028
  fn: s.function
@@ -3035,7 +3035,7 @@ const ms = {
3035
3035
  function: "check-list-response",
3036
3036
  handler: function(s) {
3037
3037
  s.namespace === "WIDGET" && s.function === "check-list-response" && s.data?.uniqid === e && t(
3038
- X.actions.registerWidgetRTObject({
3038
+ G.actions.registerWidgetRTObject({
3039
3039
  uniqid: s.data.uniqid,
3040
3040
  object: s.data.object,
3041
3041
  fn: s.function
@@ -3048,7 +3048,7 @@ const ms = {
3048
3048
  function: "widget-update",
3049
3049
  handler: function(s) {
3050
3050
  s.namespace === "WIDGET" && s.function === "widget-update" && s.data?.uniqid === e && t(
3051
- X.actions.registerWidgetRTObject({
3051
+ G.actions.registerWidgetRTObject({
3052
3052
  uniqid: s.data.uniqid,
3053
3053
  object: s.data.object,
3054
3054
  fn: s.function
@@ -3061,7 +3061,7 @@ const ms = {
3061
3061
  function: "widget-quick-survey-response",
3062
3062
  handler: function(s) {
3063
3063
  s.namespace === "WIDGET" && s.function === "widget-quick-survey-response" && s.data?.uniqid === e && t(
3064
- X.actions.registerWidgetRTObject({
3064
+ G.actions.registerWidgetRTObject({
3065
3065
  uniqid: s.data.uniqid,
3066
3066
  object: s.data.object,
3067
3067
  fn: s.function
@@ -3079,9 +3079,9 @@ const ms = {
3079
3079
  factory: ps,
3080
3080
  definition: us,
3081
3081
  utils: {
3082
- uniqid: Mt
3082
+ uniqid: kt
3083
3083
  },
3084
- slice: X,
3084
+ slice: G,
3085
3085
  getWidgetRTHandlers: As,
3086
3086
  selectors: {
3087
3087
  isActive: xs,
@@ -3164,7 +3164,7 @@ const ms = {
3164
3164
  }
3165
3165
  }, N = lt({
3166
3166
  selectId: (t) => `${t.targetId}-${t.type}`
3167
- }), ri = T({
3167
+ }), ai = T({
3168
3168
  name: "socialActions",
3169
3169
  initialState: N.getInitialState(),
3170
3170
  reducers: {
@@ -3175,24 +3175,24 @@ const ms = {
3175
3175
  updateOne: N.updateOne
3176
3176
  }
3177
3177
  }), Bs = N.getSelectors((t) => t.entities.socialActions), _l = {
3178
- slice: ri,
3179
- actions: { ...ri.actions },
3178
+ slice: ai,
3179
+ actions: { ...ai.actions },
3180
3180
  selectors: Bs
3181
3181
  }, rt = {
3182
3182
  ALL: "1",
3183
3183
  CUSTOM: "0"
3184
- }, H = {
3184
+ }, V = {
3185
3185
  draft: "draft",
3186
3186
  installed: "installed",
3187
3187
  suspended: "suspended"
3188
3188
  }, k = {
3189
- DRAFT: H.draft,
3190
- INSTALLED: H.installed,
3191
- SUSPENDED: H.suspended
3189
+ DRAFT: V.draft,
3190
+ INSTALLED: V.installed,
3191
+ SUSPENDED: V.suspended
3192
3192
  }, nt = {
3193
3193
  SOLR: "1",
3194
3194
  NOT_SOLR: "0"
3195
- }, xt = ["create", "popup", "edit", "filter", "list", "view"], o = {
3195
+ }, Mt = ["create", "popup", "edit", "filter", "list", "view"], o = {
3196
3196
  IMAGE: "IMAGE",
3197
3197
  DESCRIPTION: "DESCRIPTION",
3198
3198
  TEXT: "TEXT",
@@ -3235,10 +3235,10 @@ const ms = {
3235
3235
  OPTIONS_EDITOR: "options_editor",
3236
3236
  TAXONOMY: "taxonomy",
3237
3237
  CONTENTTYPE: "contenttype"
3238
- }, qs = [o.DESCRIPTION, o.IMAGE], Nl = qs, jt = /* @__PURE__ */ new Map();
3239
- jt.set(o.IMAGE, ["list", "filter", "view"]);
3240
- jt.set(o.CODEHTML, ["list", "filter", "view"]);
3241
- const $ = {
3238
+ }, qs = [o.DESCRIPTION, o.IMAGE], Nl = qs, xt = /* @__PURE__ */ new Map();
3239
+ xt.set(o.IMAGE, ["list", "filter", "view"]);
3240
+ xt.set(o.CODEHTML, ["list", "filter", "view"]);
3241
+ const q = {
3242
3242
  create: {
3243
3243
  fixed: [u.TITLE],
3244
3244
  optional: [
@@ -3272,7 +3272,7 @@ const $ = {
3272
3272
  u.USER,
3273
3273
  u.CREATIONDATE,
3274
3274
  o.DESCRIPTION
3275
- ], vi = [o.DESCRIPTION], hi = vi, Pl = [
3275
+ ], Ii = [o.DESCRIPTION], vi = Ii, Pl = [
3276
3276
  u.TITLE,
3277
3277
  u.PUBLISHTO,
3278
3278
  u.SENDALERTTOSUBSCRIBERS,
@@ -3282,10 +3282,10 @@ const $ = {
3282
3282
  ], Vs = [
3283
3283
  u.USER,
3284
3284
  u.TITLE
3285
- ], Hs = [o.CODEHTML], Gs = Vs.concat(Hs).concat(vi);
3285
+ ], Hs = [o.CODEHTML], Gs = Vs.concat(Hs).concat(Ii);
3286
3286
  var Xs = /* @__PURE__ */ ((t) => (t.Attr = "attr", t.PublishTo = "publishTo", t))(Xs || {}), Js = /* @__PURE__ */ ((t) => (t.Empty = "", t.FieldTagDescription = "Field_Tag_Description", t.FieldTitleDescription = "Field_Title_Description", t.WWWDescCOM = "www.desc.com", t))(Js || {}), I = [];
3287
- for (var pt = 0; pt < 256; ++pt)
3288
- I.push((pt + 256).toString(16).slice(1));
3287
+ for (var ut = 0; ut < 256; ++ut)
3288
+ I.push((ut + 256).toString(16).slice(1));
3289
3289
  function Ks(t, e = 0) {
3290
3290
  return (I[t[e + 0]] + I[t[e + 1]] + I[t[e + 2]] + I[t[e + 3]] + "-" + I[t[e + 4]] + I[t[e + 5]] + "-" + I[t[e + 6]] + I[t[e + 7]] + "-" + I[t[e + 8]] + I[t[e + 9]] + "-" + I[t[e + 10]] + I[t[e + 11]] + I[t[e + 12]] + I[t[e + 13]] + I[t[e + 14]] + I[t[e + 15]]).toLowerCase();
3291
3291
  }
@@ -3296,18 +3296,18 @@ function Qs() {
3296
3296
  return ae(Ys);
3297
3297
  }
3298
3298
  var zs = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
3299
- const ni = {
3299
+ const ri = {
3300
3300
  randomUUID: zs
3301
3301
  };
3302
3302
  function M(t, e, i) {
3303
- if (ni.randomUUID && !t)
3304
- return ni.randomUUID();
3303
+ if (ri.randomUUID && !t)
3304
+ return ri.randomUUID();
3305
3305
  t = t || {};
3306
3306
  var a = t.random || (t.rng || Qs)();
3307
3307
  return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Ks(a);
3308
3308
  }
3309
- var q = /* @__PURE__ */ ((t) => (t.TITLE = "TITLE", t.IMAGE = "IMAGE", t.DESCRIPTION = "DESCRIPTION", t.IDUSER = "IDUSER", t.PUBLISHTO = "PUBLISHTO", t.SENDALERTTOSUBSCRIBERS = "SENDALERTTOSUBSCRIBERS", t.RECEIVEACOPY = "RECEIVEACOPY", t.TEXT = "TEXT", t.TEXTAREA = "TEXTAREA", t.TEXTAREAHTML = "TEXTAREAHTML", t.DATE = "DATE", t.DATETIME = "DATETIME", t.RANGE = "RANGE", t.NUMBER = "NUMBER", t.URL = "URL", t.EMAIL = "EMAIL", t.SELECT = "SELECT", t.CHECKBOX = "CHECKBOX", t.TOGGLE = "TOGGLE", t.RADIO = "RADIO", t.TAGS = "TAGS", t.ADDFILEATTACHMENT = "ADDFILEATTACHMENT", t.AUDIENCE = "AUDIENCE", t.CODEHTML = "CODEHTML", t.DATECREATION = "DATECREATION", t.USERLINK = "USERLINK", t.CONTENTLINK = "CONTENTLINK", t))(q || {});
3310
- function Oi(t) {
3309
+ var W = /* @__PURE__ */ ((t) => (t.TITLE = "TITLE", t.IMAGE = "IMAGE", t.DESCRIPTION = "DESCRIPTION", t.IDUSER = "IDUSER", t.PUBLISHTO = "PUBLISHTO", t.SENDALERTTOSUBSCRIBERS = "SENDALERTTOSUBSCRIBERS", t.RECEIVEACOPY = "RECEIVEACOPY", t.TEXT = "TEXT", t.TEXTAREA = "TEXTAREA", t.TEXTAREAHTML = "TEXTAREAHTML", t.DATE = "DATE", t.DATETIME = "DATETIME", t.RANGE = "RANGE", t.NUMBER = "NUMBER", t.URL = "URL", t.EMAIL = "EMAIL", t.SELECT = "SELECT", t.CHECKBOX = "CHECKBOX", t.TOGGLE = "TOGGLE", t.RADIO = "RADIO", t.TAGS = "TAGS", t.ADDFILEATTACHMENT = "ADDFILEATTACHMENT", t.AUDIENCE = "AUDIENCE", t.CODEHTML = "CODEHTML", t.DATECREATION = "DATECREATION", t.USERLINK = "USERLINK", t.CONTENTLINK = "CONTENTLINK", t))(W || {});
3310
+ function hi(t) {
3311
3311
  const e = t, i = e.manifest, a = n(), r = {
3312
3312
  idApp: e.idApp,
3313
3313
  status: e.status,
@@ -3335,14 +3335,14 @@ function Oi(t) {
3335
3335
  };
3336
3336
  function n() {
3337
3337
  const c = [];
3338
- for (const E of e.form.formItems) {
3339
- const C = s(E.type);
3338
+ for (const A of e.form.formItems) {
3339
+ const b = s(A.type);
3340
3340
  c.push({
3341
- id: E.id,
3342
- type: C,
3343
- properties: l(E.properties ?? {}),
3344
- mandatory: E.mandatory ?? !1,
3345
- views: E.views,
3341
+ id: A.id,
3342
+ type: b,
3343
+ properties: l(A.properties ?? {}),
3344
+ mandatory: A.mandatory ?? !1,
3345
+ views: A.views,
3346
3346
  isActive: !0,
3347
3347
  isFixed: !1,
3348
3348
  isOptional: !1,
@@ -3355,21 +3355,21 @@ function Oi(t) {
3355
3355
  return o[c];
3356
3356
  }
3357
3357
  function l(c) {
3358
- const E = [], C = c.options && Object.prototype.hasOwnProperty.call(c, "hasDefaultValue"), L = {
3358
+ const A = [], b = c.options && Object.prototype.hasOwnProperty.call(c, "hasDefaultValue"), L = {
3359
3359
  isRequired: c.mandatory ?? !1,
3360
- ...C && { isOptionsEditorEnhanced: !0 }
3360
+ ...b && { isOptionsEditorEnhanced: !0 }
3361
3361
  };
3362
- return c.labels && (E.push({
3362
+ return c.labels && (A.push({
3363
3363
  propertyType: S.LABEL,
3364
3364
  value: c.labels.label?.content ?? "",
3365
3365
  ...L
3366
- }), E.push({
3366
+ }), A.push({
3367
3367
  propertyType: S.DESCRIPTION,
3368
3368
  value: c.labels.description?.content ?? "",
3369
3369
  ...L
3370
- })), c.options && E.push({
3370
+ })), c.options && A.push({
3371
3371
  propertyType: S.OPTIONS_EDITOR,
3372
- value: C ? {
3372
+ value: b ? {
3373
3373
  propertyOptions: d(c.options ?? []),
3374
3374
  defaultSelectOptionValue: c.defaultValue,
3375
3375
  defaultSelectOption: c.hasDefaultValue ?? !1,
@@ -3377,33 +3377,33 @@ function Oi(t) {
3377
3377
  userCanModifiyByComment: c.explain ?? !1
3378
3378
  } : { propertyOptions: d(c.options ?? []) },
3379
3379
  ...L
3380
- }), c.code && E.push({
3380
+ }), c.code && A.push({
3381
3381
  propertyType: S.RICHTEXT,
3382
3382
  value: { html: c.code.html, text: c.code.text },
3383
3383
  ...L
3384
- }), Object.prototype.hasOwnProperty.call(c, "digits") && E.push({
3384
+ }), Object.prototype.hasOwnProperty.call(c, "digits") && A.push({
3385
3385
  propertyType: S.CHECKBOX,
3386
3386
  value: c.digits ?? !1,
3387
3387
  checkBoxOptions: [{ label: "APPSTUDIO_FormEditProps_Digits", value: c.digits }],
3388
3388
  ...L
3389
- }), Object.prototype.hasOwnProperty.call(c, "taxonomy") && E.push({
3389
+ }), Object.prototype.hasOwnProperty.call(c, "taxonomy") && A.push({
3390
3390
  propertyType: S.TAXONOMY,
3391
3391
  value: c.taxonomy ?? "",
3392
3392
  ...L
3393
- }), Object.prototype.hasOwnProperty.call(c, "contentType") && E.push({
3393
+ }), Object.prototype.hasOwnProperty.call(c, "contentType") && A.push({
3394
3394
  propertyType: S.CONTENTTYPE,
3395
3395
  value: c.contentType ?? "",
3396
3396
  ...L
3397
- }), E;
3397
+ }), A;
3398
3398
  }
3399
3399
  function d(c) {
3400
- const E = [];
3401
- for (const C of c)
3402
- E.push({
3403
- title: C.label,
3404
- value: C.value
3400
+ const A = [];
3401
+ for (const b of c)
3402
+ A.push({
3403
+ title: b.label,
3404
+ value: b.value
3405
3405
  });
3406
- return E;
3406
+ return A;
3407
3407
  }
3408
3408
  function g() {
3409
3409
  return {
@@ -3416,66 +3416,66 @@ function Oi(t) {
3416
3416
  };
3417
3417
  }
3418
3418
  function y(c) {
3419
- const E = {};
3420
- return c.forEach((C) => {
3419
+ const A = {};
3420
+ return c.forEach((b) => {
3421
3421
  const L = {
3422
3422
  isUsed: !0,
3423
3423
  isFixed: !1,
3424
3424
  isOptional: !1,
3425
3425
  properties: [],
3426
3426
  pos: 0,
3427
- isLockedValue: !!C.fixedValue || !1,
3428
- value: C.fixedValue ?? ""
3427
+ isLockedValue: !!b.fixedValue || !1,
3428
+ value: b.fixedValue ?? ""
3429
3429
  };
3430
- if (C.ref === q.TITLE)
3431
- E[M()] = {
3430
+ if (b.ref === W.TITLE)
3431
+ A[M()] = {
3432
3432
  ...L,
3433
3433
  type: u.TITLE,
3434
3434
  isFixed: !0
3435
3435
  };
3436
- else if (C.ref === q.IDUSER)
3437
- E[M()] = {
3436
+ else if (b.ref === W.IDUSER)
3437
+ A[M()] = {
3438
3438
  ...L,
3439
3439
  type: u.USER,
3440
3440
  isFixed: !0
3441
3441
  };
3442
- else if (C.ref === q.PUBLISHTO)
3443
- E[M()] = {
3442
+ else if (b.ref === W.PUBLISHTO)
3443
+ A[M()] = {
3444
3444
  ...L,
3445
3445
  type: u.PUBLISHTO,
3446
3446
  isOptional: !0
3447
3447
  };
3448
- else if (C.ref === q.SENDALERTTOSUBSCRIBERS)
3449
- E[M()] = {
3448
+ else if (b.ref === W.SENDALERTTOSUBSCRIBERS)
3449
+ A[M()] = {
3450
3450
  ...L,
3451
3451
  type: u.SENDALERTTOSUBSCRIBERS,
3452
3452
  isOptional: !0
3453
3453
  };
3454
- else if (C.ref === q.RECEIVEACOPY)
3455
- E[M()] = {
3454
+ else if (b.ref === W.RECEIVEACOPY)
3455
+ A[M()] = {
3456
3456
  ...L,
3457
3457
  type: u.RECEIVEACOPY,
3458
3458
  isOptional: !0
3459
3459
  };
3460
3460
  else {
3461
- const w = f(C);
3462
- w && (E[w.id] = {
3461
+ const w = m(b);
3462
+ w && (A[w.id] = {
3463
3463
  type: w.type,
3464
3464
  ...L,
3465
3465
  properties: w.properties ?? []
3466
3466
  });
3467
3467
  }
3468
- }), E;
3468
+ }), A;
3469
3469
  }
3470
- function f(c) {
3471
- const E = e.form.formItems.find(
3472
- (C) => c.ref === C.id || c.ref === C.name
3470
+ function m(c) {
3471
+ const A = e.form.formItems.find(
3472
+ (b) => c.ref === b.id || c.ref === b.name
3473
3473
  );
3474
- return E ? a.find((C) => C.id === E.id) : null;
3474
+ return A ? a.find((b) => b.id === A.id) : null;
3475
3475
  }
3476
3476
  return r;
3477
3477
  }
3478
- function ee(t, e = !0) {
3478
+ function Z(t, e = !0) {
3479
3479
  return {
3480
3480
  id: M(),
3481
3481
  type: t,
@@ -3582,13 +3582,13 @@ function to(t) {
3582
3582
  }
3583
3583
  function h(t, e) {
3584
3584
  const i = {
3585
- ...ee(t, !1),
3585
+ ...Z(t, !1),
3586
3586
  id: e.name,
3587
3587
  mandatory: e.mandatory
3588
3588
  };
3589
3589
  return i.properties[0].value = e.label, i.properties[1].value = e.description, i;
3590
3590
  }
3591
- function Ri(t) {
3591
+ function Oi(t) {
3592
3592
  const e = [];
3593
3593
  return Object.keys(t).forEach((i) => {
3594
3594
  e.push({
@@ -3599,7 +3599,7 @@ function Ri(t) {
3599
3599
  }
3600
3600
  function io(t) {
3601
3601
  const e = {
3602
- ...ee(o.ADDFILEATTACHMENT, !1),
3602
+ ...Z(o.ADDFILEATTACHMENT, !1),
3603
3603
  id: t.name,
3604
3604
  mandatory: t.mandatory
3605
3605
  };
@@ -3607,13 +3607,13 @@ function io(t) {
3607
3607
  }
3608
3608
  function ao(t) {
3609
3609
  const e = {
3610
- ...ee(o.CODEHTML, !1),
3610
+ ...Z(o.CODEHTML, !1),
3611
3611
  id: t.name
3612
3612
  }, i = t.properties.code;
3613
3613
  return typeof i == "object" && i?.html && typeof i.html == "string" ? e.properties[0].value = i.html : typeof i == "string" && (e.properties[0].value = i), e;
3614
3614
  }
3615
3615
  function ro() {
3616
- return ee(o.IMAGE, !1);
3616
+ return Z(o.IMAGE, !1);
3617
3617
  }
3618
3618
  function no(t) {
3619
3619
  const e = h(o.NUMBER, t);
@@ -3629,7 +3629,7 @@ function oo(t) {
3629
3629
  value: t.widget.params?.defaultValue
3630
3630
  } : void 0, a = {
3631
3631
  // TODO : better typing
3632
- propertyOptions: Ri(t.widget.options),
3632
+ propertyOptions: Oi(t.widget.options),
3633
3633
  canSelectMultiple: t.widget.multiple === "1",
3634
3634
  userCanModifiyByComment: t.widget.params?.explain === "1",
3635
3635
  defaultSelectOption: !!t.widget.params?.defaultValue,
@@ -3637,14 +3637,14 @@ function oo(t) {
3637
3637
  };
3638
3638
  return e.properties[2].value = a, e;
3639
3639
  }
3640
- function Di(t) {
3640
+ function Ri(t) {
3641
3641
  const e = h(o.RADIO, t), i = {
3642
- propertyOptions: Ri(t.widget.options)
3642
+ propertyOptions: Oi(t.widget.options)
3643
3643
  };
3644
3644
  return e.properties[2].value = i, e;
3645
3645
  }
3646
3646
  function lo(t) {
3647
- const e = Di(t);
3647
+ const e = Ri(t);
3648
3648
  return e.type = o.CHECKBOX, e;
3649
3649
  }
3650
3650
  function co(t, e) {
@@ -3737,7 +3737,7 @@ function Lo(t, e) {
3737
3737
  let i = "<AppView>solr</AppView>";
3738
3738
  const a = [];
3739
3739
  return Object.entries(e).sort((r, n) => r[1].pos - n[1].pos).forEach(([r, n]) => {
3740
- n.isUsed && ([o.IMAGE].includes(n.type) || a.push(_t(n, r)));
3740
+ n.isUsed && ([o.IMAGE].includes(n.type) || a.push(jt(n, r)));
3741
3741
  }), i += `<AppColumns>${a.join()}</AppColumns>`, i;
3742
3742
  }
3743
3743
  return "";
@@ -3747,44 +3747,44 @@ function wo(t) {
3747
3747
  return Object.entries(t).sort((i, a) => i[1].pos - a[1].pos).forEach(([i, a]) => {
3748
3748
  if (!a.isUsed)
3749
3749
  return;
3750
- [u.TITLE, o.IMAGE].includes(a.type) || e.push(_t(a, i));
3750
+ [u.TITLE, o.IMAGE].includes(a.type) || e.push(jt(a, i));
3751
3751
  }), `<AttrExposed>${e.join()}</AttrExposed>`;
3752
3752
  }
3753
- function ki(t) {
3753
+ function Di(t) {
3754
3754
  return t === u.TITLE ? "title" : t === u.SENDALERTTOSUBSCRIBERS ? "sendAlert" : t === u.RECEIVEACOPY ? "alertAuthor" : t === u.PUBLISHTO ? "publishTo" : t === u.USER ? "idUser" : t === u.CREATIONDATE ? "dateCreation" : t === o.DESCRIPTION ? "description" : t;
3755
3755
  }
3756
- function _t(t, e) {
3757
- return $s.includes(t.type) ? ki(t.type) : Nt(e).toLowerCase();
3756
+ function jt(t, e) {
3757
+ return $s.includes(t.type) ? Di(t.type) : _t(e).toLowerCase();
3758
3758
  }
3759
3759
  function Io(t, e) {
3760
3760
  return t === rt.ALL ? "<checkAccess>false</checkAccess>" : e.length > 0 ? `<checkAccess>true</checkAccess>
3761
3761
  <accessRightList>${e.map((i) => i.uri).join()}</accessRightList>` : "";
3762
3762
  }
3763
3763
  function vo(t) {
3764
- const e = t?.filter((i) => hi.includes(i.type));
3765
- return e.length === 0 ? "" : `<primaryFields>${e.map((i) => vt(i)).join("")}</primaryFields>`;
3764
+ const e = t?.filter((i) => vi.includes(i.type));
3765
+ return e.length === 0 ? "" : `<primaryFields>${e.map((i) => It(i)).join("")}</primaryFields>`;
3766
3766
  }
3767
3767
  function ho(t) {
3768
- const i = t?.filter((n) => !hi.includes(n.type))?.filter((n) => n.type !== o.IMAGE);
3768
+ const i = t?.filter((n) => !vi.includes(n.type))?.filter((n) => n.type !== o.IMAGE);
3769
3769
  if (i.length === 0) return "";
3770
3770
  const a = i.filter(
3771
3771
  (n) => n.type !== o.TAGS && !Gs.includes(n.type)
3772
3772
  ), r = i.filter((n) => n.type === o.TAGS);
3773
3773
  return `<custom>
3774
3774
  ${a.length > 0 ? `<articlemstable>
3775
- ${a.map((n) => vt(n)).join("")}
3775
+ ${a.map((n) => It(n)).join("")}
3776
3776
  </articlemstable>` : ""}
3777
3777
  ${r.length > 0 ? `<linkstable tablename="tag_links" sqlNameColumn="name" sqlSrcIdColumn="srcId" sqlSrcTypeColumn="srcType" sqlTargetIdColumn="targetId" sqlTargetTypeColumn="targetType">
3778
- ${r.map((n) => vt(n)).join("")}
3778
+ ${r.map((n) => It(n)).join("")}
3779
3779
  </linkstable>` : ""}</custom>`;
3780
3780
  }
3781
- function vt(t) {
3781
+ function It(t) {
3782
3782
  return `<field
3783
3783
  type="${ko(t.type)}"
3784
- name="${_t(t, t.id)}"
3784
+ name="${jt(t, t.id)}"
3785
3785
  sqlname="${Ro(t.type, t.id)}"
3786
- ${t.properties && si(t.properties, S.LABEL)}
3787
- ${t.properties && si(t.properties, S.DESCRIPTION)}
3786
+ ${t.properties && ni(t.properties, S.LABEL)}
3787
+ ${t.properties && ni(t.properties, S.DESCRIPTION)}
3788
3788
  mandatory="${t.type === o.TOGGLE ? "false" : t.mandatory}"
3789
3789
  solr.type="${Do(t.type)}"
3790
3790
  solr.used="true"
@@ -3914,7 +3914,7 @@ function Oo(t, e) {
3914
3914
  return "";
3915
3915
  }
3916
3916
  }
3917
- function si(t, e) {
3917
+ function ni(t, e) {
3918
3918
  const i = t?.find((a) => a.propertyType === e);
3919
3919
  if (i) {
3920
3920
  const a = i.value.replaceAll('"', "&quot;");
@@ -3929,7 +3929,7 @@ function Ro(t, e) {
3929
3929
  case u.USER:
3930
3930
  return "IdUser";
3931
3931
  default:
3932
- return Nt(e);
3932
+ return _t(e);
3933
3933
  }
3934
3934
  }
3935
3935
  function Do(t) {
@@ -3989,7 +3989,7 @@ function ko(t) {
3989
3989
  return "float";
3990
3990
  }
3991
3991
  }
3992
- const Nt = (t) => {
3992
+ const _t = (t) => {
3993
3993
  let e = "";
3994
3994
  for (let i = 0; i < t.length; i++) {
3995
3995
  const a = t.charAt(i);
@@ -4001,7 +4001,7 @@ const Nt = (t) => {
4001
4001
  for (; t > 0; )
4002
4002
  i = (t - 1) % 26, e = String.fromCharCode(97 + i) + e, t = (t - i) / 26 | 0;
4003
4003
  return e;
4004
- }, oi = {
4004
+ }, si = {
4005
4005
  create: "create",
4006
4006
  popup: "create-popup",
4007
4007
  edit: "edit",
@@ -4010,9 +4010,9 @@ const Nt = (t) => {
4010
4010
  function xo(t) {
4011
4011
  let e = "";
4012
4012
  return Object.entries(t.views).forEach(([i, a]) => {
4013
- if (Object.prototype.hasOwnProperty.call(oi, i)) {
4013
+ if (Object.prototype.hasOwnProperty.call(si, i)) {
4014
4014
  const r = Object.entries(a).filter((n) => n[1].isUsed && (i !== "view" || n[0] !== "title")).sort((n, s) => n[1].pos - s[1].pos);
4015
- e += `<display view="${oi[i]}${i === "view" && t.manifest.displayContentLegacyTable ? "Disabled" : ""}" mode="${i === "view" ? "view" : "form"}">
4015
+ e += `<display view="${si[i]}${i === "view" && t.manifest.displayContentLegacyTable ? "Disabled" : ""}" mode="${i === "view" ? "view" : "form"}">
4016
4016
  ${r.map(([n, s]) => _o(n, s)).join("")}
4017
4017
  </display>`;
4018
4018
  }
@@ -4035,7 +4035,7 @@ function jo(t, e) {
4035
4035
  case o.DESCRIPTION:
4036
4036
  return "description";
4037
4037
  default:
4038
- return Nt(t);
4038
+ return _t(t);
4039
4039
  }
4040
4040
  }
4041
4041
  function _o(t, e) {
@@ -4109,7 +4109,7 @@ function _o(t, e) {
4109
4109
  function _(t) {
4110
4110
  return t < 10 ? "0" + t : t;
4111
4111
  }
4112
- const Mi = {
4112
+ const ki = {
4113
4113
  "create-popup": "popup",
4114
4114
  create: "create",
4115
4115
  edit: "edit",
@@ -4117,82 +4117,82 @@ const Mi = {
4117
4117
  displayDisabled: "view"
4118
4118
  // appInstalled.columns => 'list' view,
4119
4119
  // appInstalled.attrExposed => 'filter' view,
4120
- }, li = ["title", "alertAuthor", "sendAlert"], No = ["edito"];
4121
- function xi(t, e, i) {
4120
+ }, oi = ["title", "alertAuthor", "sendAlert"], No = ["edito"];
4121
+ function Mi(t, e, i) {
4122
4122
  return Object.assign(
4123
4123
  {},
4124
- ...xt.map((a) => {
4124
+ ...Mt.map((a) => {
4125
4125
  const r = {};
4126
4126
  let n = [];
4127
- $[a]?.optional !== void 0 && (n = n.concat(
4128
- $[a]?.optional ?? []
4127
+ q[a]?.optional !== void 0 && (n = n.concat(
4128
+ q[a]?.optional ?? []
4129
4129
  ));
4130
4130
  let s = [];
4131
- $[a]?.fixed !== void 0 && (s = s.concat($[a]?.fixed ?? [])), Object.entries(t[a]).forEach(([y, f]) => {
4132
- f.isFixed && (r[y] = f, s.splice(
4133
- s.findIndex((c) => c === f.type),
4131
+ q[a]?.fixed !== void 0 && (s = s.concat(q[a]?.fixed ?? [])), Object.entries(t[a]).forEach(([y, m]) => {
4132
+ m.isFixed && (r[y] = m, s.splice(
4133
+ s.findIndex((c) => c === m.type),
4134
4134
  1
4135
- )), f.isOptional && (r[y] = f, n.splice(
4136
- n.findIndex((c) => c === f.type),
4135
+ )), m.isOptional && (r[y] = m, n.splice(
4136
+ n.findIndex((c) => c === m.type),
4137
4137
  1
4138
4138
  ));
4139
4139
  });
4140
4140
  const l = new Set(s.concat(n)), d = {
4141
- [u.CREATIONDATE]: () => Bi(!1),
4141
+ [u.CREATIONDATE]: () => Fi(!1),
4142
4142
  [u.TITLE]: () => st({ fixedValue: void 0 }),
4143
- [u.USER]: () => Fi(!1),
4144
- [u.RECEIVEACOPY]: () => Ni({ fixedValue: void 0 }),
4145
- [u.SENDALERTTOSUBSCRIBERS]: () => Pi({ fixedValue: void 0 }),
4146
- [u.PUBLISHTO]: () => Ui({ fixedValue: void 0 })
4143
+ [u.USER]: () => Ui(!1),
4144
+ [u.RECEIVEACOPY]: () => _i({ fixedValue: void 0 }),
4145
+ [u.SENDALERTTOSUBSCRIBERS]: () => Ni({ fixedValue: void 0 }),
4146
+ [u.PUBLISHTO]: () => Pi({ fixedValue: void 0 })
4147
4147
  };
4148
4148
  l.forEach((y) => {
4149
- const f = d[y];
4150
- if (f) {
4151
- const [c, E] = f();
4152
- r[c] = E;
4149
+ const m = d[y];
4150
+ if (m) {
4151
+ const [c, A] = m();
4152
+ r[c] = A;
4153
4153
  } else
4154
4154
  console.error("ExtraAppFieldsItemViews does not have this field type: " + y);
4155
4155
  });
4156
4156
  const g = [];
4157
- return i.forEach((y, f) => {
4158
- const c = y.views[a], E = Object.keys(t[a]).includes(y.id), C = y.type;
4159
- if (jt.get(C)?.includes(a))
4157
+ return i.forEach((y, m) => {
4158
+ const c = y.views[a], A = Object.keys(t[a]).includes(y.id), b = y.type;
4159
+ if (xt.get(b)?.includes(a))
4160
4160
  return;
4161
4161
  let L;
4162
- if (C === o.CODEHTML) {
4162
+ if (b === o.CODEHTML) {
4163
4163
  const w = y.properties?.find(
4164
- (R) => R.propertyType === S.RICHTEXT
4164
+ (D) => D.propertyType === S.RICHTEXT
4165
4165
  );
4166
4166
  w?.value && (L = w?.value);
4167
4167
  }
4168
- if (C === o.SELECT) {
4168
+ if (b === o.SELECT) {
4169
4169
  const w = y.properties?.find(
4170
- (R) => R.propertyType === S.OPTIONS_EDITOR
4170
+ (D) => D.propertyType === S.OPTIONS_EDITOR
4171
4171
  );
4172
- if (E) {
4173
- const R = t[a][y.id], B = R.properties?.find(
4172
+ if (A) {
4173
+ const D = t[a][y.id], ee = D.properties?.find(
4174
4174
  (Hi) => Hi.propertyType === S.OPTIONS_EDITOR
4175
- ), ct = !!w?.value?.canSelectMultiple, Vi = !!B?.value?.canSelectMultiple;
4176
- ct === Vi && (L = R.value);
4175
+ ), $i = !!w?.value?.canSelectMultiple, Vi = !!ee?.value?.canSelectMultiple;
4176
+ $i === Vi && (L = D.value);
4177
4177
  } else {
4178
- const B = !!w?.isOptionsEditorEnhanced && w?.value.defaultSelectOption ? w?.value.defaultSelectOptionValue : "";
4179
- B && (L = B);
4178
+ const ee = !!w?.isOptionsEditorEnhanced && w?.value.defaultSelectOption ? w?.value.defaultSelectOptionValue : "";
4179
+ ee && (L = ee);
4180
4180
  }
4181
4181
  }
4182
- if (E) {
4182
+ if (A) {
4183
4183
  const w = t[a][y.id];
4184
4184
  r[y.id] = {
4185
4185
  ...w,
4186
4186
  properties: y.properties ?? w.properties ?? [],
4187
4187
  ...L !== void 0 && { value: L },
4188
4188
  isUsed: c,
4189
- pos: e?.[a] ? f : w.pos,
4189
+ pos: e?.[a] ? m : w.pos,
4190
4190
  isLockedValue: (L !== void 0 || w.value !== void 0) && w.isLockedValue
4191
4191
  };
4192
4192
  } else {
4193
- g.push({ id: y.id, idx: f });
4193
+ g.push({ id: y.id, idx: m });
4194
4194
  const w = Object.values(t[a]).filter(
4195
- (R) => !R.isFixed && !R.isOptional
4195
+ (D) => !D.isFixed && !D.isOptional
4196
4196
  ).length;
4197
4197
  r[y.id] = {
4198
4198
  type: y.type,
@@ -4202,14 +4202,14 @@ function xi(t, e, i) {
4202
4202
  isLockedValue: !1,
4203
4203
  isFixed: !1,
4204
4204
  value: L ?? null,
4205
- pos: e?.[a] ? f : w + f
4205
+ pos: e?.[a] ? m : w + m
4206
4206
  };
4207
4207
  }
4208
4208
  }), e?.[a] || g.forEach((y) => {
4209
- const f = r[y.id];
4210
- f.pos = y.idx + 1, Object.keys(r).forEach((c) => {
4211
- const E = r[c];
4212
- E && !Object.values(Ws).includes(c) && c !== y.id && E.pos >= f.pos && E.pos++;
4209
+ const m = r[y.id];
4210
+ m.pos = y.idx + 1, Object.keys(r).forEach((c) => {
4211
+ const A = r[c];
4212
+ A && !Object.values(Ws).includes(c) && c !== y.id && A.pos >= m.pos && A.pos++;
4213
4213
  });
4214
4214
  }), {
4215
4215
  [a]: r
@@ -4241,7 +4241,7 @@ function Uo(t, e, i) {
4241
4241
  const n = /* @__PURE__ */ new Map();
4242
4242
  Object.entries(r).forEach((s) => {
4243
4243
  const [l, d] = s;
4244
- Object.keys(Mi).includes(l) && Fo(
4244
+ Object.keys(ki).includes(l) && Fo(
4245
4245
  e,
4246
4246
  n,
4247
4247
  l,
@@ -4252,7 +4252,7 @@ function Uo(t, e, i) {
4252
4252
  }), Bo(e, n, t.columns, a, i), Wo(e, n, t.attrExposed, a, i);
4253
4253
  }
4254
4254
  function Fo(t, e, i, a, r, n) {
4255
- const s = Mi[i];
4255
+ const s = ki[i];
4256
4256
  if (t.views[s] = {}, s === "view") {
4257
4257
  const [l, d] = st({ fixedValue: void 0 });
4258
4258
  t.views[s][l] = d;
@@ -4261,68 +4261,75 @@ function Fo(t, e, i, a, r, n) {
4261
4261
  let g;
4262
4262
  if (l.name && No.includes(l.name))
4263
4263
  return;
4264
- const [y, f] = Vo(t, e, l, r, n);
4265
- if (y === -1 && f)
4266
- switch (f.ref) {
4267
- case "title":
4264
+ const [y, m] = Vo(t, e, l, r, n);
4265
+ if (y === -1 && m)
4266
+ switch (m.ref) {
4267
+ case "title": {
4268
4268
  if (s === "view")
4269
4269
  break;
4270
- const [c, E] = st(f);
4271
- t.views[s][c] = E;
4270
+ const [c, A] = st(m);
4271
+ t.views[s][c] = A;
4272
4272
  break;
4273
- case "alertAuthor":
4274
- const [C, L] = Ni(f);
4275
- t.views[s][C] = L;
4273
+ }
4274
+ case "alertAuthor": {
4275
+ const [c, A] = _i(m);
4276
+ t.views[s][c] = A;
4276
4277
  break;
4277
- case "sendAlert":
4278
- const [w, R] = Pi(f);
4279
- t.views[s][w] = R;
4278
+ }
4279
+ case "sendAlert": {
4280
+ const [c, A] = Ni(m);
4281
+ t.views[s][c] = A;
4280
4282
  break;
4281
- case "publishTo":
4282
- const [B, ct] = Ui(f);
4283
- t.views[s][B] = ct;
4283
+ }
4284
+ case "publishTo": {
4285
+ const [c, A] = Pi(m);
4286
+ t.views[s][c] = A;
4284
4287
  break;
4288
+ }
4285
4289
  /* istanbul ignore next */
4286
4290
  /* can't generate a ref going here with createOrGetField */
4287
4291
  default:
4288
- console.error("fixed field info with unsupported ref ", f);
4292
+ console.error("fixed field info with unsupported ref ", m);
4289
4293
  break;
4290
4294
  }
4291
4295
  else if (y !== -1) {
4292
4296
  if (g = t.fields[y], !g?.views)
4293
4297
  throw new Error(
4294
- `error converting installed app to V2: created field not found in fields array: ${y}, ${f}`
4298
+ `error converting installed app to V2: created field not found in fields array: ${y}, ${m}`
4295
4299
  );
4296
- g.views[s] = !0, _i(s, g, t, d, f);
4300
+ g.views[s] = !0, ji(s, g, t, d, m);
4297
4301
  }
4298
4302
  });
4299
4303
  }
4300
4304
  function Bo(t, e, i, a, r) {
4301
4305
  i && Object.keys(i).forEach((n, s) => {
4302
- ji(t, e, a, "list", n, s, r);
4306
+ xi(t, e, a, "list", n, s, r);
4303
4307
  });
4304
4308
  }
4305
4309
  function Wo(t, e, i, a, r) {
4306
4310
  i.forEach((n, s) => {
4307
- ji(t, e, a, "filter", n, s, r);
4311
+ xi(t, e, a, "filter", n, s, r);
4308
4312
  });
4309
4313
  }
4310
- function ji(t, e, i, a, r, n, s) {
4314
+ function xi(t, e, i, a, r, n, s) {
4311
4315
  switch (r) {
4312
- case "title":
4316
+ case "title": {
4313
4317
  const [l, d] = st({ fixedValue: void 0 });
4314
4318
  t.views[a][l] = d;
4315
4319
  break;
4320
+ }
4316
4321
  case "iduser":
4317
- case "idUser":
4318
- const [g, y] = Fi();
4319
- t.views[a][g] = y;
4322
+ case "idUser": {
4323
+ const [l, d] = Ui();
4324
+ t.views[a][l] = d;
4320
4325
  break;
4326
+ }
4321
4327
  case "datecreation":
4322
- case "dateCreation":
4323
- const [f, c] = Bi();
4324
- t.views[a][f] = c;
4328
+ case "dateCreation": {
4329
+ const [l, d] = Fi();
4330
+ t.views[a][l] = d;
4325
4331
  break;
4332
+ }
4326
4333
  default:
4327
4334
  qo(t, e, i, a, r, n, s);
4328
4335
  break;
@@ -4332,23 +4339,23 @@ function qo(t, e, i, a, r, n, s) {
4332
4339
  const l = $o(t, e, i, r, s), d = t.fields[l];
4333
4340
  if (!d?.views)
4334
4341
  throw new Error(`error converting installed app to V2: unable to handle ${r} in list view`);
4335
- d.views[a] = !0, _i(a, d, t, n, void 0);
4342
+ d.views[a] = !0, ji(a, d, t, n, void 0);
4336
4343
  }
4337
4344
  function $o(t, e, i, a, r) {
4338
4345
  const n = e.get(a);
4339
4346
  if (n !== void 0)
4340
4347
  return n;
4341
- const [s, l] = ht(t, a, i, r);
4348
+ const [s, l] = vt(t, a, i, r);
4342
4349
  return e.set(s, l), l;
4343
4350
  }
4344
4351
  function Vo(t, e, i, a, r) {
4345
4352
  if (i.name !== void 0 && i.element === "attr") {
4346
- if (li.includes(i.name))
4353
+ if (oi.includes(i.name))
4347
4354
  return [-1, { ref: i.name, fixedValue: void 0 }];
4348
4355
  const n = e.get(i.name);
4349
4356
  if (n !== void 0)
4350
4357
  return [n, void 0];
4351
- const [s, l] = ht(t, i.name, a, r);
4358
+ const [s, l] = vt(t, i.name, a, r);
4352
4359
  return e.set(s, l), [l, void 0];
4353
4360
  } else if (i.element === "html") {
4354
4361
  const n = i.html;
@@ -4359,16 +4366,16 @@ function Vo(t, e, i, a, r) {
4359
4366
  try {
4360
4367
  const g = JSON.parse(d);
4361
4368
  if (g?.ref.toUpperCase() in u) {
4362
- const E = g.ref.toUpperCase();
4363
- return [-1, { ...g, ref: ki(E) }];
4369
+ const A = g.ref.toUpperCase();
4370
+ return [-1, { ...g, ref: Di(A) }];
4364
4371
  }
4365
- if (li.includes(g?.ref))
4372
+ if (oi.includes(g?.ref))
4366
4373
  return [-1, g];
4367
4374
  const y = e.get(g?.ref);
4368
4375
  if (y !== void 0)
4369
4376
  return [y, g];
4370
- const [f, c] = ht(t, g.ref, a, r);
4371
- return e.set(f, c), [c, g];
4377
+ const [m, c] = vt(t, g.ref, a, r);
4378
+ return e.set(m, c), [c, g];
4372
4379
  } catch {
4373
4380
  return console.error("error while parsing studio installed fixed attr in a view: json parsing failed"), [-1, void 0];
4374
4381
  }
@@ -4377,8 +4384,8 @@ function Vo(t, e, i, a, r) {
4377
4384
  const s = n.indexOf("<JAMESPOT.STUDIO.CODEHTML>") + 26, l = n.indexOf("</JAMESPOT.STUDIO.CODEHTML>"), d = n.substring(s, l), g = JSON.parse(d), y = e.get(g?.name);
4378
4385
  if (y !== void 0)
4379
4386
  return [y, void 0];
4380
- const f = ao(g), c = t.fields.push(f) - 1;
4381
- return e.set(f.id, c), [c, void 0];
4387
+ const m = ao(g), c = t.fields.push(m) - 1;
4388
+ return e.set(m.id, c), [c, void 0];
4382
4389
  } catch {
4383
4390
  return console.error("error while parsing studio installed codehtml attr in a view: json parsing failed"), [-1, void 0];
4384
4391
  }
@@ -4392,7 +4399,7 @@ function Vo(t, e, i, a, r) {
4392
4399
  return e.set("image", l), [l, void 0];
4393
4400
  } else return i.element === "publishTo" ? [-1, { ref: "publishTo", fixedValue: void 0 }] : (console.error("error while parsing studio installed attr in a view: unknown attr :O"), [-1, void 0]);
4394
4401
  }
4395
- function ht(t, e, i, a) {
4402
+ function vt(t, e, i, a) {
4396
4403
  const r = Ho(e, i), n = Go(r), s = (function() {
4397
4404
  switch (n) {
4398
4405
  case o.ADDFILEATTACHMENT:
@@ -4404,7 +4411,7 @@ function ht(t, e, i, a) {
4404
4411
  case o.SELECT:
4405
4412
  return oo(r);
4406
4413
  case o.RADIO:
4407
- return Di(r);
4414
+ return Ri(r);
4408
4415
  case o.CHECKBOX:
4409
4416
  return lo(r);
4410
4417
  case o.CONTENTLINK:
@@ -4442,7 +4449,7 @@ function Ho(t, e) {
4442
4449
  throw new Error("error converting installed app to V2: installed field not found in tables " + t);
4443
4450
  return i;
4444
4451
  }
4445
- function _i(t, e, i, a, r) {
4452
+ function ji(t, e, i, a, r) {
4446
4453
  e.views && (e.views[t] = !0, i.views[t][e.id] = {
4447
4454
  type: e.type,
4448
4455
  properties: e.properties ?? [],
@@ -4510,7 +4517,7 @@ function st(t, e = !0) {
4510
4517
  }
4511
4518
  ];
4512
4519
  }
4513
- function Ni(t, e = !0) {
4520
+ function _i(t, e = !0) {
4514
4521
  return [
4515
4522
  "alertAuthor",
4516
4523
  {
@@ -4525,7 +4532,7 @@ function Ni(t, e = !0) {
4525
4532
  }
4526
4533
  ];
4527
4534
  }
4528
- function Pi(t, e = !0) {
4535
+ function Ni(t, e = !0) {
4529
4536
  return [
4530
4537
  "sendAlert",
4531
4538
  {
@@ -4540,7 +4547,7 @@ function Pi(t, e = !0) {
4540
4547
  }
4541
4548
  ];
4542
4549
  }
4543
- function Ui(t, e = !0) {
4550
+ function Pi(t, e = !0) {
4544
4551
  return [
4545
4552
  "publishTo",
4546
4553
  {
@@ -4555,7 +4562,7 @@ function Ui(t, e = !0) {
4555
4562
  }
4556
4563
  ];
4557
4564
  }
4558
- function Fi(t = !0) {
4565
+ function Ui(t = !0) {
4559
4566
  return [
4560
4567
  "user",
4561
4568
  {
@@ -4570,7 +4577,7 @@ function Fi(t = !0) {
4570
4577
  }
4571
4578
  ];
4572
4579
  }
4573
- function Bi(t = !0) {
4580
+ function Fi(t = !0) {
4574
4581
  return [
4575
4582
  "dateCreation",
4576
4583
  {
@@ -4588,12 +4595,12 @@ function Bi(t = !0) {
4588
4595
  function Xo(t, e, i) {
4589
4596
  const { version: a, dateCreation: r } = t.manifest, n = t.typeModel, s = Object.assign(
4590
4597
  {},
4591
- ...xt.map((f) => ({
4592
- [f]: {}
4598
+ ...Mt.map((m) => ({
4599
+ [m]: {}
4593
4600
  }))
4594
4601
  ), l = t, d = {
4595
4602
  idApp: t.idApp,
4596
- status: Ot(t),
4603
+ status: ht(t),
4597
4604
  studioVersion: 2,
4598
4605
  manifest: {
4599
4606
  appShortName: t.label,
@@ -4618,29 +4625,29 @@ function Xo(t, e, i) {
4618
4625
  installFor: t.accessRightObjectList ? Po(t.accessRightObjectList) : [],
4619
4626
  audience: t.checkAccess === !1 ? rt.ALL : rt.CUSTOM
4620
4627
  };
4621
- Uo(t, d, i), d.views = xi(d.views, d.syncViewFieldOrder, d.fields);
4628
+ Uo(t, d, i), d.views = Mi(d.views, d.syncViewFieldOrder, d.fields);
4622
4629
  const g = Jo(t.idApp, e);
4623
4630
  if (!g) return d;
4624
- const y = Wi(g);
4631
+ const y = Bi(g);
4625
4632
  return y && (d.inWorkVersion = y), d;
4626
4633
  }
4627
- function Wi(t) {
4634
+ function Bi(t) {
4628
4635
  if (!t.value) return;
4629
4636
  const e = JSON.parse(t.value);
4630
4637
  return e.studioVersion == 2 ? {
4631
4638
  idApp: t.idApp,
4632
4639
  studioVersion: 2,
4633
- status: Ot(t),
4640
+ status: ht(t),
4634
4641
  manifest: e.manifest,
4635
4642
  fields: e.fields,
4636
4643
  views: e.views,
4637
4644
  syncViewFieldOrder: e.syncViewFieldOrder,
4638
4645
  audience: e.audience,
4639
4646
  installFor: e.installFor
4640
- } : { ...Oi(e), status: Ot(t), migratedFrom: 1 };
4647
+ } : { ...hi(e), status: ht(t), migratedFrom: 1 };
4641
4648
  }
4642
- function Ot(t) {
4643
- return t.status === dt.installed ? t.suspended ? H.suspended : H.installed : H.draft;
4649
+ function ht(t) {
4650
+ return t.status === dt.installed ? t.suspended ? V.suspended : V.installed : V.draft;
4644
4651
  }
4645
4652
  function Jo(t, e) {
4646
4653
  return e.find((a) => a.idApp === t && a.status === dt.saved);
@@ -4648,10 +4655,10 @@ function Jo(t, e) {
4648
4655
  function Ko(t, e) {
4649
4656
  return !!e.find((i) => i.idApp === t && i.status === dt.installed);
4650
4657
  }
4651
- function qi(t, e) {
4658
+ function Wi(t, e) {
4652
4659
  return t.map((a) => {
4653
4660
  try {
4654
- return a.status === dt.installed ? Xo(a, t, e) : Ko(a.idApp, t) ? void 0 : Wi(a);
4661
+ return a.status === dt.installed ? Xo(a, t, e) : Ko(a.idApp, t) ? void 0 : Bi(a);
4655
4662
  } catch (r) {
4656
4663
  console.error(r);
4657
4664
  return;
@@ -4667,7 +4674,7 @@ const Yo = {
4667
4674
  }, He = p("studio/fetchCurrentStudioApp", async ({ idApp: t, status: e }, { extra: i, rejectWithValue: a, getState: r }) => {
4668
4675
  const n = i.jApi, s = { error: 1, errorMsg: "Error fetching application" };
4669
4676
  try {
4670
- const l = (await n.application.studioGet(t, e)).result, d = qi([l], r())[0];
4677
+ const l = (await n.application.studioGet(t, e)).result, d = Wi([l], r())[0];
4671
4678
  return d || a(s);
4672
4679
  } catch {
4673
4680
  return a(s);
@@ -4680,10 +4687,10 @@ const Yo = {
4680
4687
  return i(s);
4681
4688
  const d = JSON.stringify(l);
4682
4689
  try {
4683
- await n.application.studioSave(l.idApp, d, "saved"), r(m.actions.success({ label: "APPSTUDIO_AppItem_Edition_Saved" }));
4690
+ await n.application.studioSave(l.idApp, d, "saved"), r(f.actions.success({ label: "APPSTUDIO_AppItem_Edition_Saved" }));
4684
4691
  return;
4685
4692
  } catch (g) {
4686
- return r(m.actions.error({ label: A(g) })), i(s);
4693
+ return r(f.actions.error({ label: E(g) })), i(s);
4687
4694
  }
4688
4695
  }
4689
4696
  ), Xe = p("studio/installApp", async ({ callback: t }, { extra: e, rejectWithValue: i, getState: a, dispatch: r }) => {
@@ -4692,10 +4699,10 @@ const Yo = {
4692
4699
  return i(s);
4693
4700
  const d = Co(l);
4694
4701
  try {
4695
- await n.application.studioInstall(d), r(m.actions.success({ label: "APPSTUDIO_AppItem_Installed" })), t && t();
4702
+ await n.application.studioInstall(d), r(f.actions.success({ label: "APPSTUDIO_AppItem_Installed" })), t && t();
4696
4703
  return;
4697
4704
  } catch (g) {
4698
- return r(m.actions.error({ label: A(g) })), i(s);
4705
+ return r(f.actions.error({ label: E(g) })), i(s);
4699
4706
  }
4700
4707
  }), ot = T({
4701
4708
  name: "currentStudioApp",
@@ -4733,8 +4740,8 @@ const Yo = {
4733
4740
  });
4734
4741
  }
4735
4742
  });
4736
- function $i(t, e, i) {
4737
- const a = t.studioVersion !== 2 ? JSON.parse(JSON.stringify(Oi(t))) : JSON.parse(JSON.stringify(t));
4743
+ function qi(t, e, i) {
4744
+ const a = t.studioVersion !== 2 ? JSON.parse(JSON.stringify(hi(t))) : JSON.parse(JSON.stringify(t));
4738
4745
  if (delete a.inWorkVersion, i)
4739
4746
  a.manifest.version = a.manifest.version + 0.1;
4740
4747
  else {
@@ -4754,9 +4761,9 @@ function $i(t, e, i) {
4754
4761
  function Qo({ author: t, appName: e }) {
4755
4762
  const i = M(), a = Object.assign(
4756
4763
  {},
4757
- ...xt.map((r) => {
4764
+ ...Mt.map((r) => {
4758
4765
  const n = {};
4759
- return $[r]?.fixed.forEach((s, l) => {
4766
+ return q[r]?.fixed.forEach((s, l) => {
4760
4767
  n[M()] = {
4761
4768
  type: s,
4762
4769
  properties: [],
@@ -4767,7 +4774,7 @@ function Qo({ author: t, appName: e }) {
4767
4774
  value: null,
4768
4775
  pos: l
4769
4776
  };
4770
- }), $[r]?.optional.forEach((s, l) => {
4777
+ }), q[r]?.optional.forEach((s, l) => {
4771
4778
  n[M()] = {
4772
4779
  type: s,
4773
4780
  properties: [],
@@ -4839,19 +4846,19 @@ const zo = {
4839
4846
  const n = e.jApi;
4840
4847
  try {
4841
4848
  const { result: s } = await n.application.studioList(), l = await n.taxonomy.list(), g = (await Promise.allSettled(
4842
- s.map(async (f) => {
4843
- const c = (await n.application.studioGet(f.idApp, f.status)).result, E = (await n.article.count(f.idApp)).result;
4844
- return { ...c, articlesCount: E };
4849
+ s.map(async (m) => {
4850
+ const c = (await n.application.studioGet(m.idApp, m.status)).result, A = (await n.article.count(m.idApp)).result;
4851
+ return { ...c, articlesCount: A };
4845
4852
  })
4846
- )).map((f) => f.status === "fulfilled" ? f.value : null).reduce((f, c) => c !== null ? f.concat([c]) : f, []), y = qi(g, r());
4847
- return y.forEach(async (f) => {
4848
- f.fields = di(f.fields, l, t), f.inWorkVersion && (f.inWorkVersion.fields = di(f.inWorkVersion.fields, l, t));
4853
+ )).map((m) => m.status === "fulfilled" ? m.value : null).reduce((m, c) => c !== null ? m.concat([c]) : m, []), y = Wi(g, r());
4854
+ return y.forEach(async (m) => {
4855
+ m.fields = li(m.fields, l, t), m.inWorkVersion && (m.inWorkVersion.fields = li(m.inWorkVersion.fields, l, t));
4849
4856
  }), y;
4850
4857
  } catch (s) {
4851
- throw console.error(s), a(m.actions.error({ label: A(s) })), i({ error: 1, errorMsg: "Error retrieving applications" });
4858
+ throw console.error(s), a(f.actions.error({ label: E(s) })), i({ error: 1, errorMsg: "Error retrieving applications" });
4852
4859
  }
4853
4860
  });
4854
- function di(t, e, i) {
4861
+ function li(t, e, i) {
4855
4862
  return t.map((a) => {
4856
4863
  if (a.type !== o.TAGS)
4857
4864
  return a;
@@ -4862,26 +4869,26 @@ function di(t, e, i) {
4862
4869
  const Ke = p("studio/createApp", async ({ appName: t, callback: e }, { extra: i, dispatch: a, rejectWithValue: r, getState: n }) => {
4863
4870
  const s = i.jApi, l = n().userCurrent?.uri, { newAppId: d, newStudioApp: g } = Qo({ appName: t, ...l && { author: l } });
4864
4871
  try {
4865
- return await s.application.studioSave(d, JSON.stringify(g), "saved"), a(m.actions.success({ label: "APPSTUDIO_StudioApp_Created" })), a(ot.actions.setCurrentApp(g)), e && e(), g;
4872
+ return await s.application.studioSave(d, JSON.stringify(g), "saved"), a(f.actions.success({ label: "APPSTUDIO_StudioApp_Created" })), a(ot.actions.setCurrentApp(g)), e && e(), g;
4866
4873
  } catch (y) {
4867
- throw a(m.actions.error({ label: A(y) })), r({ error: 1, errorMsg: "Error creating application" });
4874
+ throw a(f.actions.error({ label: E(y) })), r({ error: 1, errorMsg: "Error creating application" });
4868
4875
  }
4869
4876
  }), Ye = p("studio/deleteApp", async ({ idApp: t, status: e }, { extra: i, rejectWithValue: a, dispatch: r }) => {
4870
4877
  const n = i.jApi;
4871
4878
  try {
4872
4879
  const s = await n.application.studioDelete(t, e);
4873
- return r(m.actions.success({ label: "APPSTUDIO_StudioApp_Deleted" })), s;
4880
+ return r(f.actions.success({ label: "APPSTUDIO_StudioApp_Deleted" })), s;
4874
4881
  } catch (s) {
4875
- return r(m.actions.error({ label: A(s) })), a({ error: 1, errorMsg: "Error deleting application" });
4882
+ return r(f.actions.error({ label: E(s) })), a({ error: 1, errorMsg: "Error deleting application" });
4876
4883
  }
4877
4884
  }), Qe = p(
4878
4885
  "studio/suspendStudioApp",
4879
4886
  async ({ idApp: t }, { extra: e, rejectWithValue: i, dispatch: a }) => {
4880
4887
  const r = e.jApi;
4881
4888
  try {
4882
- await r.application.studioSuspend(t), a(m.actions.success({ label: "APPSTUDIO_AppItem_Suspended" }));
4889
+ await r.application.studioSuspend(t), a(f.actions.success({ label: "APPSTUDIO_AppItem_Suspended" }));
4883
4890
  } catch (n) {
4884
- throw a(m.actions.error({ label: A(n) })), i({ error: 1, errorMsg: "Error suspending application" });
4891
+ throw a(f.actions.error({ label: E(n) })), i({ error: 1, errorMsg: "Error suspending application" });
4885
4892
  }
4886
4893
  }
4887
4894
  ), ze = p(
@@ -4889,9 +4896,9 @@ const Ke = p("studio/createApp", async ({ appName: t, callback: e }, { extra: i,
4889
4896
  async ({ idApp: t }, { extra: e, rejectWithValue: i, dispatch: a }) => {
4890
4897
  const r = e.jApi;
4891
4898
  try {
4892
- await r.application.studioRestart(t), a(m.actions.success({ label: "APPSTUDIO_AppItem_Restarted" }));
4899
+ await r.application.studioRestart(t), a(f.actions.success({ label: "APPSTUDIO_AppItem_Restarted" }));
4893
4900
  } catch (n) {
4894
- throw a(m.actions.error({ label: A(n) })), i({ error: 1, errorMsg: "Error restarting application" });
4901
+ throw a(f.actions.error({ label: E(n) })), i({ error: 1, errorMsg: "Error restarting application" });
4895
4902
  }
4896
4903
  }
4897
4904
  ), Ze = p("studio/cloneStudioApp", async ({ idApp: t, inWork: e }, { extra: i, getState: a, rejectWithValue: r, dispatch: n }) => {
@@ -4903,23 +4910,23 @@ const Ke = p("studio/createApp", async ({ appName: t, callback: e }, { extra: i,
4903
4910
  l = l.inWorkVersion;
4904
4911
  else
4905
4912
  return r({ error: 1, errorMsg: "Error cloning application" });
4906
- const d = a().userCurrent?.uri, [g, y] = $i(l, d), f = JSON.stringify(g);
4913
+ const d = a().userCurrent?.uri, [g, y] = qi(l, d), m = JSON.stringify(g);
4907
4914
  try {
4908
- return await s.application.studioSave(y, f, "saved"), n(m.actions.success({ label: "APPSTUDIO_AppItem_Cloned" })), g;
4915
+ return await s.application.studioSave(y, m, "saved"), n(f.actions.success({ label: "APPSTUDIO_AppItem_Cloned" })), g;
4909
4916
  } catch (c) {
4910
- return n(m.actions.error({ label: A(c) })), r({ error: 1, errorMsg: "Error cloning application" });
4917
+ return n(f.actions.error({ label: E(c) })), r({ error: 1, errorMsg: "Error cloning application" });
4911
4918
  }
4912
4919
  }), et = p("studio/createInWorkStudioApp", async ({ idApp: t }, { extra: e, getState: i, rejectWithValue: a, dispatch: r }) => {
4913
- const n = e.jApi, s = i().studio.studioAppsList.studioAppsList?.find((f) => f.idApp === t);
4920
+ const n = e.jApi, s = i().studio.studioAppsList.studioAppsList?.find((m) => m.idApp === t);
4914
4921
  if (!s || ![k.INSTALLED, k.SUSPENDED].includes(s.status))
4915
4922
  return a({ error: 1, errorMsg: "Error cloning application" });
4916
- const l = i().userCurrent?.uri, [d, g] = $i(s, l, !0), y = JSON.stringify(d);
4923
+ const l = i().userCurrent?.uri, [d, g] = qi(s, l, !0), y = JSON.stringify(d);
4917
4924
  try {
4918
- return await n.application.studioSave(g, y, "saved"), r(m.actions.success({ label: "APPSTUDIO_AppItem_CreateInWork" })), d;
4919
- } catch (f) {
4920
- return r(m.actions.error({ label: A(f) })), a({ error: 1, errorMsg: "Error creating in work version for application" });
4925
+ return await n.application.studioSave(g, y, "saved"), r(f.actions.success({ label: "APPSTUDIO_AppItem_CreateInWork" })), d;
4926
+ } catch (m) {
4927
+ return r(f.actions.error({ label: E(m) })), a({ error: 1, errorMsg: "Error creating in work version for application" });
4921
4928
  }
4922
- }), Rt = T({
4929
+ }), Ot = T({
4923
4930
  name: "studioAppsList",
4924
4931
  initialState: zo,
4925
4932
  reducers: {
@@ -4985,7 +4992,7 @@ const Ke = p("studio/createApp", async ({ appName: t, callback: e }, { extra: i,
4985
4992
  });
4986
4993
  }
4987
4994
  }), Zo = O({
4988
- [Rt.name]: Rt.reducer,
4995
+ [Ot.name]: Ot.reducer,
4989
4996
  [ot.name]: ot.reducer
4990
4997
  });
4991
4998
  function el(t) {
@@ -5000,7 +5007,7 @@ const il = {
5000
5007
  }, Ul = {
5001
5008
  slice: il,
5002
5009
  actions: {
5003
- ...Rt.actions,
5010
+ ...Ot.actions,
5004
5011
  ...ot.actions,
5005
5012
  fetchStudioAppsList: Je,
5006
5013
  deleteStudioApp: Ye,
@@ -5018,8 +5025,8 @@ const il = {
5018
5025
  selectCurrentStudioApp: tl
5019
5026
  },
5020
5027
  utils: {
5021
- updateViewsFromFields: xi,
5022
- generateNewFormField: ee
5028
+ updateViewsFromFields: Mi,
5029
+ generateNewFormField: Z
5023
5030
  }
5024
5031
  };
5025
5032
  export {
@@ -5029,13 +5036,13 @@ export {
5029
5036
  dl as Animations,
5030
5037
  $s as AppColumnsDefaultTypes,
5031
5038
  S as AppFieldFormPropertyTypes,
5032
- jt as AppFormBannedFromViews,
5039
+ xt as AppFormBannedFromViews,
5033
5040
  Hs as AppFormFieldOnlyInView,
5034
5041
  Pl as AppFormFixedList,
5035
5042
  o as AppFormItemTypes,
5036
5043
  Vs as AppFormNoAsFieldList,
5037
5044
  Gs as AppFormNonPrimaryList,
5038
- hi as AppFormPrimaryListValues,
5045
+ vi as AppFormPrimaryListValues,
5039
5046
  Nl as AppFormUniqueListCheck,
5040
5047
  cl as Application,
5041
5048
  nl as Article,
@@ -5051,10 +5058,10 @@ export {
5051
5058
  yl as ExtraBot,
5052
5059
  Al as Faq,
5053
5060
  El as FileIntegrity,
5054
- Yt as FileIntegritySlice,
5061
+ Kt as FileIntegritySlice,
5055
5062
  Sl as Hook,
5056
5063
  Cl as MagicPad,
5057
- $ as MapExtraFieldsWithView,
5064
+ q as MapExtraFieldsWithView,
5058
5065
  Ll as MediaLibrary,
5059
5066
  qr as Model,
5060
5067
  wl as Network,
@@ -5062,24 +5069,24 @@ export {
5062
5069
  nt as STUDIO_VIEW,
5063
5070
  hl as Share,
5064
5071
  _l as SocialActions,
5065
- H as StatusType,
5072
+ V as StatusType,
5066
5073
  Dl as TVDisplay,
5067
5074
  Rl as TeamWork,
5068
5075
  kl as TinyMCE,
5069
- m as Toast,
5076
+ f as Toast,
5070
5077
  Ml as UserCurrent,
5071
5078
  vl as WedocApp,
5072
5079
  _s as Widget,
5073
5080
  jl as WidgetEditor,
5074
5081
  Yi as actions,
5075
5082
  sl as adminLogsReducer,
5076
- ui as adminLogsSlice,
5083
+ ci as adminLogsSlice,
5077
5084
  ll as animationsReducer,
5078
- pi as animationsSlice,
5085
+ ui as animationsSlice,
5079
5086
  Ma as contentReportSlice,
5080
5087
  Re as deleteQuarantine,
5081
- Xt as extraBotSlice,
5082
- K as fetchExtraBotListAll,
5088
+ Gt as extraBotSlice,
5089
+ J as fetchExtraBotListAll,
5083
5090
  be as fetchExtraBotListMines,
5084
5091
  he as fetchFileIntegrityList,
5085
5092
  _e as fetchFolderFiles,
@@ -5094,20 +5101,20 @@ export {
5094
5101
  Tl as jland,
5095
5102
  Lr as magicPadSlice,
5096
5103
  bl as mediaLibraryReducer,
5097
- Ei as mediaLibrarySlice,
5104
+ Ai as mediaLibrarySlice,
5098
5105
  Oe as releaseQuarantine,
5099
5106
  we as saveExtraBot,
5100
5107
  tr as selectExtraBotListAll,
5101
5108
  ir as selectExtraBotListMines,
5102
5109
  cr as selectFileIntegrityAction,
5103
5110
  ur as selectFileIntegrityList,
5104
- ii as slice,
5111
+ ti as slice,
5105
5112
  Ul as studio,
5106
- Ci as teamWorkSlice,
5113
+ Ti as teamWorkSlice,
5107
5114
  Ol as teamworkReducer,
5108
5115
  Le as toggleExtraBotActivation,
5109
5116
  er as updateListBotProperty,
5110
5117
  ye as updateStatus,
5111
5118
  xl as updateWidgetContent,
5112
- xt as viewsList
5119
+ Mt as viewsList
5113
5120
  };