jamespot-front-business 1.3.37 → 1.3.39

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,6 +1,6 @@
1
1
  import { createEntityAdapter as St, createSlice as C, createAsyncThunk as u, combineReducers as O } from "@reduxjs/toolkit";
2
- import { jEnsure as Ii, Format as ht, formatImgUrl as ua, UserLevel as pa, WidgetsName as T, StudioApplicationStatus as Ct, deepEqual as Tt } from "jamespot-user-api";
3
- const ga = function(t) {
2
+ import { jEnsure as Ii, Format as ht, formatImgUrl as pa, UserLevel as ga, WidgetsName as T, StudioApplicationStatus as Ct, deepEqual as Tt } from "jamespot-user-api";
3
+ const fa = function(t) {
4
4
  return [
5
5
  {
6
6
  namespace: "JAMESPOT",
@@ -10,8 +10,8 @@ const ga = function(t) {
10
10
  }
11
11
  }
12
12
  ];
13
- }, _l = {
14
- getArticleRTHandlers: ga
13
+ }, Pl = {
14
+ getArticleRTHandlers: fa
15
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", oe = St({
16
16
  selectId: (t) => t.id
17
17
  }), gt = C({
@@ -21,24 +21,24 @@ const ga = function(t) {
21
21
  addOne: oe.addOne,
22
22
  removeOne: oe.removeOne
23
23
  }
24
- }), fa = () => Math.random().toString(16).slice(2), ie = ({ id: t = fa(), ...e }, i = "success", a = 3e3) => (r) => {
24
+ }), ma = () => Math.random().toString(16).slice(2), ie = ({ id: t = ma(), ...e }, i = "success", a = 3e3) => (r) => {
25
25
  const n = { id: t, ...e, timeout: a, type: i };
26
26
  return r(gt.actions.addOne(n)), setTimeout(() => {
27
27
  r(gt.actions.removeOne(t));
28
28
  }, a), t;
29
- }, ma = {
29
+ }, ya = {
30
30
  addMessage: ie,
31
31
  success: (t, e) => ie(t, "success", e),
32
32
  warning: (t, e) => ie(t, "warning", e),
33
33
  error: (t, e) => ie(t, "error", e)
34
- }, ya = oe.getSelectors((t) => t.toasts), p = {
34
+ }, Aa = oe.getSelectors((t) => t.toasts), p = {
35
35
  slice: gt,
36
- actions: { ...ma, ...gt.actions },
37
- selectors: ya
38
- }, Qt = (t) => t.toISOString().slice(0, 19).replace(/T/g, " "), Aa = () => {
36
+ actions: { ...ya, ...gt.actions },
37
+ selectors: Aa
38
+ }, Qt = (t) => t.toISOString().slice(0, 19).replace(/T/g, " "), Sa = () => {
39
39
  const t = /* @__PURE__ */ new Date();
40
40
  return t.setMonth(t.getMonth() - 1), t;
41
- }, Sa = {
41
+ }, Ca = {
42
42
  data: [],
43
43
  loading: "idle",
44
44
  page: 1,
@@ -47,7 +47,7 @@ const ga = function(t) {
47
47
  name: "dateCreation",
48
48
  method: "between",
49
49
  value: {
50
- start: Qt(Aa()),
50
+ start: Qt(Sa()),
51
51
  end: Qt(/* @__PURE__ */ new Date())
52
52
  }
53
53
  }
@@ -61,9 +61,9 @@ const ga = function(t) {
61
61
  } catch (r) {
62
62
  return v(r) || a(p.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot retrieve admin logs navigation" });
63
63
  }
64
- }), wt = C({
64
+ }), Lt = C({
65
65
  name: "logsNavigation",
66
- initialState: Sa,
66
+ initialState: Ca,
67
67
  reducers: {
68
68
  setNavigationOrder: (t, e) => {
69
69
  t.orders = [...e.payload], t.page = 1;
@@ -84,10 +84,10 @@ const ga = function(t) {
84
84
  e.loading = "idle";
85
85
  });
86
86
  }
87
- }), zt = (t) => t.toISOString().slice(0, 19).replace(/T/g, " "), Ca = () => {
87
+ }), zt = (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
- }, Ea = {
90
+ }, Ta = {
91
91
  data: [],
92
92
  loading: "idle",
93
93
  page: 1,
@@ -96,7 +96,7 @@ const ga = function(t) {
96
96
  name: "dateCreation",
97
97
  method: "between",
98
98
  value: {
99
- start: zt(Ca()),
99
+ start: zt(Ea()),
100
100
  end: zt(/* @__PURE__ */ new Date())
101
101
  }
102
102
  }
@@ -110,9 +110,9 @@ const ga = function(t) {
110
110
  } catch (r) {
111
111
  return v(r) || a(p.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot retrieve admin logs Objects" });
112
112
  }
113
- }), Lt = C({
113
+ }), wt = C({
114
114
  name: "logsObjects",
115
- initialState: Ea,
115
+ initialState: Ta,
116
116
  reducers: {
117
117
  setObjectsOrder: (t, e) => {
118
118
  t.orders = [...e.payload], t.page = 1;
@@ -133,10 +133,10 @@ const ga = function(t) {
133
133
  e.loading = "idle";
134
134
  });
135
135
  }
136
- }), Zt = (t) => t.toISOString().slice(0, 19).replace(/T/g, " "), Ta = () => {
136
+ }), Zt = (t) => t.toISOString().slice(0, 19).replace(/T/g, " "), ba = () => {
137
137
  const t = /* @__PURE__ */ new Date();
138
138
  return t.setMonth(t.getMonth() - 1), t;
139
- }, ba = {
139
+ }, va = {
140
140
  data: [],
141
141
  loading: "idle",
142
142
  page: 1,
@@ -145,7 +145,7 @@ const ga = function(t) {
145
145
  name: "dateCreation",
146
146
  method: "between",
147
147
  value: {
148
- start: Zt(Ta()),
148
+ start: Zt(ba()),
149
149
  end: Zt(/* @__PURE__ */ new Date())
150
150
  }
151
151
  }
@@ -161,7 +161,7 @@ const ga = function(t) {
161
161
  }
162
162
  }), It = C({
163
163
  name: "logsSearch",
164
- initialState: ba,
164
+ initialState: va,
165
165
  reducers: {
166
166
  setSearchOrder: (t, e) => {
167
167
  t.orders = [...e.payload], t.page = 1;
@@ -182,32 +182,32 @@ const ga = function(t) {
182
182
  e.loading = "idle";
183
183
  });
184
184
  }
185
- }), va = (t) => t.adminLogs.logsNavigation, ha = (t) => t.adminLogs.logsObjects, wa = (t) => t.adminLogs.logsSearch, La = O({
186
- [wt.name]: wt.reducer,
185
+ }), ha = (t) => t.adminLogs.logsNavigation, La = (t) => t.adminLogs.logsObjects, wa = (t) => t.adminLogs.logsSearch, Ia = O({
187
186
  [Lt.name]: Lt.reducer,
187
+ [wt.name]: wt.reducer,
188
188
  [It.name]: It.reducer
189
189
  }), Oi = {
190
190
  name: "adminLogs",
191
- reducer: La
192
- }, Pl = Oi.reducer, Nl = {
191
+ reducer: Ia
192
+ }, Nl = Oi.reducer, Ul = {
193
193
  slice: Oi,
194
194
  actions: {
195
- ...wt.actions,
196
195
  ...Lt.actions,
196
+ ...wt.actions,
197
197
  ...It.actions,
198
198
  fetchLogsNavigation: le,
199
199
  fetchLogsObjects: de,
200
200
  fetchLogsSearch: ce
201
201
  },
202
- selectors: { selectAdminLogsNavigation: va, selectAdminLogsObjects: ha, selectAdminLogsSearch: wa }
203
- }, Ia = {
202
+ selectors: { selectAdminLogsNavigation: ha, selectAdminLogsObjects: La, selectAdminLogsSearch: wa }
203
+ }, Oa = {
204
204
  animationConfiguration: null,
205
205
  isActiveForCurrentUser: !1,
206
206
  isInitialized: !1,
207
207
  isToggleLoading: !1
208
208
  }, ei = C({
209
209
  name: "animationsList",
210
- initialState: Ia,
210
+ initialState: Oa,
211
211
  reducers: {},
212
212
  extraReducers: (t) => {
213
213
  t.addCase(X.fulfilled, (e, i) => {
@@ -235,7 +235,7 @@ const ga = function(t) {
235
235
  } catch (r) {
236
236
  return a(p.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot retrieve animation" });
237
237
  }
238
- }), Oa = u(
238
+ }), Ra = u(
239
239
  "animations/deleteCurrentAnimation",
240
240
  async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
241
241
  try {
@@ -245,7 +245,7 @@ const ga = function(t) {
245
245
  return a(p.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot delete animation" });
246
246
  }
247
247
  }
248
- ), Ra = u(
248
+ ), Ma = u(
249
249
  "animations/saveCurrentAnimation",
250
250
  async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
251
251
  try {
@@ -265,7 +265,7 @@ const ga = function(t) {
265
265
  return a(p.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot update animation" });
266
266
  }
267
267
  }
268
- ), Ma = function(t) {
268
+ ), ka = function(t) {
269
269
  return [
270
270
  {
271
271
  namespace: "ANIMATIONS",
@@ -295,12 +295,12 @@ const ga = function(t) {
295
295
  } catch (r) {
296
296
  return a(p.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot retrieve animation stats" });
297
297
  }
298
- }), ka = {
298
+ }), Da = {
299
299
  stats: [],
300
300
  loading: "idle"
301
301
  }, ti = C({
302
302
  name: "animationStats",
303
- initialState: ka,
303
+ initialState: Da,
304
304
  reducers: {},
305
305
  extraReducers: (t) => {
306
306
  t.addCase(pe.pending, (e) => {
@@ -317,12 +317,12 @@ const ga = function(t) {
317
317
  } catch (r) {
318
318
  return a(p.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot retrieve animation stats current" });
319
319
  }
320
- }), Da = {
320
+ }), ja = {
321
321
  stats: null,
322
322
  loading: "idle"
323
323
  }, ii = C({
324
324
  name: "animationStatsCurrent",
325
- initialState: Da,
325
+ initialState: ja,
326
326
  reducers: {},
327
327
  extraReducers: (t) => {
328
328
  t.addCase(ge.pending, (e) => {
@@ -333,26 +333,26 @@ const ga = function(t) {
333
333
  e.loading = "idle";
334
334
  });
335
335
  }
336
- }), ja = (t) => t.animations.animationsList.animationConfiguration, xa = (t) => t.animations.animationsList.isActiveForCurrentUser, _a = (t) => t.animations.animationsList.isToggleLoading, Pa = (t) => t.animations.animationsList.animationConfigurationApp, Na = O({
336
+ }), xa = (t) => t.animations.animationsList.animationConfiguration, _a = (t) => t.animations.animationsList.isActiveForCurrentUser, Pa = (t) => t.animations.animationsList.isToggleLoading, Na = (t) => t.animations.animationsList.animationConfigurationApp, Ua = O({
337
337
  [ei.name]: ei.reducer,
338
338
  [ti.name]: ti.reducer,
339
339
  [ii.name]: ii.reducer
340
340
  }), Ri = {
341
341
  name: "animations",
342
- reducer: Na
343
- }, Ul = Ri.reducer, Fl = {
342
+ reducer: Ua
343
+ }, Fl = Ri.reducer, Wl = {
344
344
  slice: Ri,
345
345
  actions: {
346
- saveCurrentAnimation: Ra,
346
+ saveCurrentAnimation: Ma,
347
347
  fetchCurrentAnimation: X,
348
- deleteCurrentAnimation: Oa,
348
+ deleteCurrentAnimation: Ra,
349
349
  toggleAnimationIsActive: ue,
350
350
  fetchCurrentAnimationApp: ft,
351
351
  fetchAnimationStats: pe,
352
352
  fetchAnimationStatsCurrent: ge
353
353
  },
354
- selectors: { selectCurrentAnimation: ja, isActiveAnimation: xa, isToggleLoading: _a, selectAnimationConfigurationApp: Pa },
355
- getAnimationsRTHandlers: Ma
354
+ selectors: { selectCurrentAnimation: xa, isActiveAnimation: _a, isToggleLoading: Pa, selectAnimationConfigurationApp: Na },
355
+ getAnimationsRTHandlers: ka
356
356
  }, W = St({
357
357
  selectId: (t) => t.name,
358
358
  sortComparer: (t, e) => t.label.localeCompare(e.label)
@@ -372,11 +372,11 @@ const ga = function(t) {
372
372
  W.setAll(e, i.payload.result);
373
373
  });
374
374
  }
375
- }), Ua = W.getSelectors((t) => t.entities.applications), Wl = {
375
+ }), Fa = W.getSelectors((t) => t.entities.applications), Bl = {
376
376
  slice: ai,
377
377
  actions: { fetchList: Mi, ...ai.actions },
378
- selectors: Ua
379
- }, Fa = {
378
+ selectors: Fa
379
+ }, Wa = {
380
380
  entities: [],
381
381
  loading: "idle",
382
382
  nbResults: 0
@@ -394,7 +394,7 @@ const ga = function(t) {
394
394
  }
395
395
  ), ri = C({
396
396
  name: "bookableAsset",
397
- initialState: Fa,
397
+ initialState: Wa,
398
398
  reducers: {},
399
399
  extraReducers: (t) => {
400
400
  t.addCase(fe.pending, (e) => {
@@ -408,7 +408,7 @@ const ga = function(t) {
408
408
  }), me = u(
409
409
  "AssetReservation/configuration",
410
410
  async (t, { extra: e }) => await e.jApi.assetReservation.configuration()
411
- ), Wa = {
411
+ ), Ba = {
412
412
  description: "",
413
413
  right: {
414
414
  manage: !1
@@ -421,7 +421,7 @@ const ga = function(t) {
421
421
  loading: "idle"
422
422
  }, ni = C({
423
423
  name: "configuration",
424
- initialState: Wa,
424
+ initialState: Ba,
425
425
  reducers: {},
426
426
  extraReducers: (t) => {
427
427
  t.addCase(me.pending, (e) => {
@@ -437,7 +437,7 @@ const ga = function(t) {
437
437
  date: "",
438
438
  hourStart: "",
439
439
  hourEnd: ""
440
- }, Ba = {
440
+ }, qa = {
441
441
  entities: [],
442
442
  loading: "idle",
443
443
  nbResults: 0,
@@ -451,7 +451,7 @@ const ga = function(t) {
451
451
  return await e.jApi.assetReservation.getList(i);
452
452
  }), Ot = C({
453
453
  name: "reservation",
454
- initialState: Ba,
454
+ initialState: qa,
455
455
  reducers: {
456
456
  setForm: (t, e) => {
457
457
  t.form = e.payload;
@@ -472,25 +472,25 @@ const ga = function(t) {
472
472
  e.loading = "idle";
473
473
  });
474
474
  }
475
- }), qa = O({
475
+ }), $a = O({
476
476
  [ri.name]: ri.reducer,
477
477
  [ni.name]: ni.reducer,
478
478
  [Ot.name]: Ot.reducer
479
- }), $a = {
479
+ }), Va = {
480
480
  name: "assetReservation",
481
- reducer: qa
482
- }, Va = (t) => t.assetReservation.configuration, Ha = (t) => t.assetReservation.bookableAsset.entities, Ga = (t) => t.assetReservation.bookableAsset.loading, Xa = (t) => t.assetReservation.reservation.entities, Ja = (t) => t.assetReservation.reservation.loading, Ka = (t) => t.assetReservation.reservation.form, Bl = {
483
- slice: $a,
481
+ reducer: $a
482
+ }, Ha = (t) => t.assetReservation.configuration, Ga = (t) => t.assetReservation.bookableAsset.entities, Xa = (t) => t.assetReservation.bookableAsset.loading, Ja = (t) => t.assetReservation.reservation.entities, Ka = (t) => t.assetReservation.reservation.loading, Ya = (t) => t.assetReservation.reservation.form, ql = {
483
+ slice: Va,
484
484
  actions: { ...Ot.actions, fetchBookableAsset: fe, fetchConfiguration: me, fetchReservation: ye },
485
485
  selectors: {
486
- configuration: Va,
487
- bookableAssetEntities: Ha,
488
- bookableAssetLoading: Ga,
489
- reservationEntities: Xa,
490
- reservationLoading: Ja,
491
- reservationForm: Ka
492
- }
493
- }, Ya = {
486
+ configuration: Ha,
487
+ bookableAssetEntities: Ga,
488
+ bookableAssetLoading: Xa,
489
+ reservationEntities: Ja,
490
+ reservationLoading: Ka,
491
+ reservationForm: Ya
492
+ }
493
+ }, Qa = {
494
494
  loading: "idle",
495
495
  reports: [],
496
496
  page: 1,
@@ -500,9 +500,9 @@ const ga = function(t) {
500
500
  limit: 10,
501
501
  nbResults: 0,
502
502
  pendingReports: []
503
- }, Qa = C({
503
+ }, za = C({
504
504
  name: "contentReport",
505
- initialState: Ya,
505
+ initialState: Qa,
506
506
  reducers: {
507
507
  setTab: (t, e) => {
508
508
  t.tab = e.payload, t.page = 1, t.orders = [], t.filters = [];
@@ -563,14 +563,14 @@ const ga = function(t) {
563
563
  } catch (r) {
564
564
  return v(r) || e(p.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot fetch pads" });
565
565
  }
566
- }), za = (t) => t.contentReport, ql = {
567
- slice: Qa,
566
+ }), Za = (t) => t.contentReport, $l = {
567
+ slice: za,
568
568
  actions: {
569
569
  fetchReports: Ae,
570
570
  updateStatus: Se
571
571
  },
572
- selectors: { selectContentReport: za }
573
- }, Di = 999, Za = {
572
+ selectors: { selectContentReport: Za }
573
+ }, Di = 999, er = {
574
574
  bookmarks: [],
575
575
  loading: "idle",
576
576
  status: void 0,
@@ -621,7 +621,7 @@ const ga = function(t) {
621
621
  }
622
622
  }), z = C({
623
623
  name: "bookmarkList",
624
- initialState: Za,
624
+ initialState: er,
625
625
  reducers: {
626
626
  resetAddBookmarkStatus: (t, e) => {
627
627
  t.add[e.payload] && delete t.add[e.payload];
@@ -690,7 +690,7 @@ const ga = function(t) {
690
690
  });
691
691
  });
692
692
  }
693
- }), er = function(t) {
693
+ }), tr = function(t) {
694
694
  const e = function(n, s) {
695
695
  Ii.objectIsType("bookmarkLink", n.object) ? t(s(n.object)) : t($());
696
696
  }, i = function() {
@@ -727,7 +727,7 @@ const ga = function(t) {
727
727
  handler: i
728
728
  }
729
729
  ];
730
- }, tr = {
730
+ }, ir = {
731
731
  bookmark: void 0,
732
732
  status: void 0,
733
733
  loading: "idle"
@@ -745,7 +745,7 @@ const ga = function(t) {
745
745
  }
746
746
  ), Rt = C({
747
747
  name: "bookmarkEdit",
748
- initialState: tr,
748
+ initialState: ir,
749
749
  reducers: {
750
750
  setEditBookmark: (t, e) => {
751
751
  t.bookmark = { ...e.payload };
@@ -766,14 +766,14 @@ const ga = function(t) {
766
766
  e.status = "error", e.loading = "idle";
767
767
  });
768
768
  }
769
- }), ir = O({
769
+ }), ar = O({
770
770
  [z.name]: z.reducer,
771
771
  [Rt.name]: Rt.reducer
772
- }), ar = {
772
+ }), rr = {
773
773
  name: "bookmark",
774
- reducer: ir
775
- }, rr = (t) => t.bookmark.bookmarkList, nr = (t) => t.bookmark.bookmarkList.isInitialized, sr = (t) => t.bookmark.bookmarkEdit.bookmark, or = (t, e) => t.bookmark.bookmarkList.bookmarks.find((i) => i.targetId === e), $l = {
776
- slice: ar,
774
+ reducer: ar
775
+ }, nr = (t) => t.bookmark.bookmarkList, sr = (t) => t.bookmark.bookmarkList.isInitialized, or = (t) => t.bookmark.bookmarkEdit.bookmark, lr = (t, e) => t.bookmark.bookmarkList.bookmarks.find((i) => i.targetId === e), Vl = {
776
+ slice: rr,
777
777
  actions: {
778
778
  fetchBookmark: $,
779
779
  addBookmark: Ce,
@@ -784,12 +784,12 @@ const ga = function(t) {
784
784
  ...z.actions
785
785
  },
786
786
  selectors: {
787
- bookmarkList: rr,
788
- bookmarkListIsInitialized: nr,
789
- bookmarkEditBookmark: sr,
790
- bookmarkByArticleId: or
787
+ bookmarkList: nr,
788
+ bookmarkListIsInitialized: sr,
789
+ bookmarkEditBookmark: or,
790
+ bookmarkByArticleId: lr
791
791
  },
792
- getRTHandlers: er
792
+ getRTHandlers: tr
793
793
  }, si = {
794
794
  list: [],
795
795
  statuses: ["subscribed", "unanswered"],
@@ -899,7 +899,7 @@ const ji = (t, e, i = 500) => {
899
899
  e.types = i.meta.arg, e.loading = "pending";
900
900
  });
901
901
  }
902
- }), ae = (t) => ["socialEvent", "meeting", "animatedMeeting", "recurringEvent", "recurringEventOccurrence"].includes(t), lr = function(t, e) {
902
+ }), ae = (t) => ["socialEvent", "meeting", "animatedMeeting", "recurringEvent", "recurringEventOccurrence"].includes(t), dr = function(t, e) {
903
903
  const i = function(s) {
904
904
  if (s.namespace === "JAMESPOT" && s.function === "article-create" && ae(s.object.type)) {
905
905
  if (s.object.type === "recurringEvent") {
@@ -975,13 +975,13 @@ const ji = (t, e, i = 500) => {
975
975
  handler: n
976
976
  }
977
977
  ];
978
- }, dr = O({
978
+ }, cr = O({
979
979
  [j.name]: j.reducer
980
- }), cr = {
980
+ }), ur = {
981
981
  name: "calendar",
982
- reducer: dr
983
- }, ur = (t) => t.calendar.events, Vl = {
984
- slice: cr,
982
+ reducer: cr
983
+ }, pr = (t) => t.calendar.events, Hl = {
984
+ slice: ur,
985
985
  actions: {
986
986
  fetchEvents: x,
987
987
  setDates: xi,
@@ -990,10 +990,10 @@ const ji = (t, e, i = 500) => {
990
990
  ...j.actions
991
991
  },
992
992
  selectors: {
993
- selectCalendarEvents: ur
993
+ selectCalendarEvents: pr
994
994
  },
995
- getCalendarRTHandlers: lr
996
- }, pr = {
995
+ getCalendarRTHandlers: dr
996
+ }, gr = {
997
997
  loading: "idle",
998
998
  comments: []
999
999
  }, N = u(
@@ -1020,7 +1020,7 @@ const ji = (t, e, i = 500) => {
1020
1020
  }
1021
1021
  ), kt = C({
1022
1022
  name: "commentList",
1023
- initialState: pr,
1023
+ initialState: gr,
1024
1024
  reducers: {
1025
1025
  discardComments: (t, e) => {
1026
1026
  t.comments = t.comments.filter((i) => i.idArticle !== e.payload.idArticle);
@@ -1084,7 +1084,7 @@ const ji = (t, e, i = 500) => {
1084
1084
  });
1085
1085
  });
1086
1086
  }
1087
- }), gr = function(t, e) {
1087
+ }), fr = function(t, e) {
1088
1088
  return [
1089
1089
  {
1090
1090
  namespace: "JAMESPOT",
@@ -1101,7 +1101,7 @@ const ji = (t, e, i = 500) => {
1101
1101
  }
1102
1102
  }
1103
1103
  ];
1104
- }, fr = function(t, e, i) {
1104
+ }, mr = function(t, e, i) {
1105
1105
  const a = function(r) {
1106
1106
  r.namespace === "CUSTOM-ACTION" && (r.function === "add" || r.function === "remove") && r.object.type === "sociallike" && r.object.targetId && e?.includes(r.object.targetId) && t(N({ idArticle: i }));
1107
1107
  };
@@ -1109,29 +1109,29 @@ const ji = (t, e, i = 500) => {
1109
1109
  { namespace: "CUSTOM-ACTION", function: "add", handler: a },
1110
1110
  { namespace: "CUSTOM-ACTION", function: "remove", handler: a }
1111
1111
  ] : [];
1112
- }, mr = O({
1112
+ }, yr = O({
1113
1113
  [kt.name]: kt.reducer
1114
- }), yr = {
1114
+ }), Ar = {
1115
1115
  name: "comment",
1116
- reducer: mr
1117
- }, Ar = (t, e, i = 0) => {
1116
+ reducer: yr
1117
+ }, Sr = (t, e, i = 0) => {
1118
1118
  const a = t.comment.commentList.comments.find((n) => n.idArticle === e), r = a ? [...a.list].sort((n, s) => n.id - s.id) : [];
1119
1119
  return i !== 0 ? r.slice(-i) : r;
1120
- }, Hl = {
1121
- slice: yr,
1120
+ }, Gl = {
1121
+ slice: Ar,
1122
1122
  actions: { fetchComments: N, deleteComment: Mt, ...kt.actions },
1123
1123
  selectors: {
1124
- commentList: Ar
1124
+ commentList: Sr
1125
1125
  },
1126
- getCommentRTHandlers: gr,
1127
- getCommentsLikeRTHandlers: fr
1126
+ getCommentRTHandlers: fr,
1127
+ getCommentsLikeRTHandlers: mr
1128
1128
  }, R = {
1129
1129
  route: "extra-bot",
1130
1130
  moduleName: "ExtraBotHook",
1131
1131
  configurationType: "extraBot",
1132
1132
  listLimit: 20,
1133
1133
  listDefaultPage: 1
1134
- }, Sr = {
1134
+ }, Cr = {
1135
1135
  global: {
1136
1136
  loading: "idle"
1137
1137
  },
@@ -1186,7 +1186,7 @@ const ji = (t, e, i = 500) => {
1186
1186
  } catch (s) {
1187
1187
  return v(s) || a(p.actions.error({ label: A(s) })), i({ error: 1, errorMsg: "Cannot retrieve extra bot list" });
1188
1188
  }
1189
- }), we = u(
1189
+ }), Le = u(
1190
1190
  "extraBot/toggleActivation",
1191
1191
  async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
1192
1192
  try {
@@ -1207,7 +1207,7 @@ const ji = (t, e, i = 500) => {
1207
1207
  return v(r) || a(p.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Failed to change extra bot activation" });
1208
1208
  }
1209
1209
  }
1210
- ), Le = u(
1210
+ ), we = u(
1211
1211
  "extraBot/save",
1212
1212
  async ({ extraBot: t }, { extra: e, rejectWithValue: i, dispatch: a }) => {
1213
1213
  try {
@@ -1234,12 +1234,12 @@ const ji = (t, e, i = 500) => {
1234
1234
  return v(r) || a(p.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot retrieve extra bot" });
1235
1235
  }
1236
1236
  }
1237
- ), Cr = (t, e, i, a) => {
1237
+ ), Er = (t, e, i, a) => {
1238
1238
  const r = t.listAll.data.find((s) => s.uri === e), n = t.listMines.data.find((s) => s.uri === e);
1239
1239
  r && (r[i] = a), n && (n[i] = a);
1240
1240
  }, oi = C({
1241
1241
  name: "extraBot",
1242
- initialState: Sr,
1242
+ initialState: Cr,
1243
1243
  reducers: {
1244
1244
  setListAllOrder: (t, e) => {
1245
1245
  t.listAll.orders = [...e.payload], t.listAll.page = R.listDefaultPage;
@@ -1279,33 +1279,33 @@ const ji = (t, e, i = 500) => {
1279
1279
  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";
1280
1280
  }).addCase(he.rejected, (e) => {
1281
1281
  e.listMines.loading = "idle";
1282
- }).addCase(we.pending, (e) => {
1282
+ }).addCase(Le.pending, (e) => {
1283
1283
  e.global.loading = "pending";
1284
- }).addCase(we.fulfilled, (e, i) => {
1284
+ }).addCase(Le.fulfilled, (e, i) => {
1285
1285
  e.global.loading = "idle";
1286
1286
  const a = i.payload;
1287
- Cr(e, a.uri, "enabled", a.enabled);
1288
- }).addCase(we.rejected, (e) => {
1287
+ Er(e, a.uri, "enabled", a.enabled);
1288
+ }).addCase(Le.rejected, (e) => {
1289
1289
  e.global.loading = "idle";
1290
- }).addCase(Le.pending, (e) => {
1290
+ }).addCase(we.pending, (e) => {
1291
1291
  e.global.loading = "pending";
1292
- }).addCase(Le.fulfilled, (e, i) => {
1292
+ }).addCase(we.fulfilled, (e, i) => {
1293
1293
  e.global.loading = "idle", e.formModal.open = !1;
1294
- }).addCase(Le.rejected, (e) => {
1294
+ }).addCase(we.rejected, (e) => {
1295
1295
  e.global.loading = "idle";
1296
1296
  });
1297
1297
  }
1298
- }), Er = (t) => t.extraBot.listAll, Tr = (t) => t.extraBot.listMines, Gl = {
1298
+ }), Tr = (t) => t.extraBot.listAll, br = (t) => t.extraBot.listMines, Xl = {
1299
1299
  slice: oi,
1300
1300
  actions: {
1301
1301
  fetchExtraBotListAll: J,
1302
1302
  fetchExtraBotListMines: he,
1303
- toggleExtraBotActivation: we,
1304
- saveExtraBot: Le,
1303
+ toggleExtraBotActivation: Le,
1304
+ saveExtraBot: we,
1305
1305
  ...oi.actions
1306
1306
  },
1307
- selectors: { selectExtraBotListAll: Er, selectExtraBotListMines: Tr }
1308
- }, br = {
1307
+ selectors: { selectExtraBotListAll: Tr, selectExtraBotListMines: br }
1308
+ }, vr = {
1309
1309
  loading: "idle",
1310
1310
  access: { createCategory: !1 }
1311
1311
  }, Ie = u(
@@ -1333,7 +1333,7 @@ const ji = (t, e, i = 500) => {
1333
1333
  }
1334
1334
  ), li = C({
1335
1335
  name: "config",
1336
- initialState: br,
1336
+ initialState: vr,
1337
1337
  reducers: {},
1338
1338
  extraReducers: (t) => {
1339
1339
  t.addCase(Ie.pending, (e) => {
@@ -1342,14 +1342,14 @@ const ji = (t, e, i = 500) => {
1342
1342
  e.loading == "pending" && (e.loading = "idle");
1343
1343
  });
1344
1344
  }
1345
- }), vr = {
1345
+ }), hr = {
1346
1346
  loading: "idle",
1347
1347
  categories: null
1348
1348
  }, Oe = u("faqCategories/fetch", async (t, { extra: e }) => ({
1349
1349
  categories: (await e.jApi.faq.getCategoriesList()).result.data
1350
1350
  })), di = C({
1351
1351
  name: "categories",
1352
- initialState: vr,
1352
+ initialState: hr,
1353
1353
  reducers: {},
1354
1354
  extraReducers: (t) => {
1355
1355
  t.addCase(Oe.pending, (e) => {
@@ -1358,26 +1358,26 @@ const ji = (t, e, i = 500) => {
1358
1358
  e.loading == "pending" && (e.loading = "idle");
1359
1359
  });
1360
1360
  }
1361
- }), hr = O({
1361
+ }), Lr = O({
1362
1362
  [li.name]: li.reducer,
1363
1363
  [di.name]: di.reducer
1364
1364
  }), wr = {
1365
1365
  name: "faq",
1366
- reducer: hr
1367
- }, Lr = (t) => t.faq.config, Ir = (t) => t.faq.categories, Xl = {
1366
+ reducer: Lr
1367
+ }, Ir = (t) => t.faq.config, Or = (t) => t.faq.categories, Jl = {
1368
1368
  slice: wr,
1369
1369
  actions: {
1370
1370
  fetchFaqConfig: Ie,
1371
1371
  fetchFaqCategories: Oe
1372
1372
  },
1373
1373
  selectors: {
1374
- selectFaqConfig: Lr,
1375
- selectFaqCategories: Ir
1374
+ selectFaqConfig: Ir,
1375
+ selectFaqCategories: Or
1376
1376
  }
1377
1377
  }, K = {
1378
1378
  listLimit: 50,
1379
1379
  listDefaultPage: 1
1380
- }, Or = {
1380
+ }, Rr = {
1381
1381
  list: {
1382
1382
  loading: "idle",
1383
1383
  data: [],
@@ -1427,7 +1427,7 @@ const ji = (t, e, i = 500) => {
1427
1427
  }
1428
1428
  ), ci = C({
1429
1429
  name: "fileIntegrity",
1430
- initialState: Or,
1430
+ initialState: Rr,
1431
1431
  reducers: {
1432
1432
  setListOrder: (t, e) => {
1433
1433
  t.list.orders = [...e.payload], t.list.page = K.listDefaultPage;
@@ -1460,7 +1460,7 @@ const ji = (t, e, i = 500) => {
1460
1460
  e.action.loading = "idle";
1461
1461
  });
1462
1462
  }
1463
- }), Rr = (t) => t.fileIntegrity.action, Mr = (t) => t.fileIntegrity.list, Jl = {
1463
+ }), Mr = (t) => t.fileIntegrity.action, kr = (t) => t.fileIntegrity.list, Kl = {
1464
1464
  slice: ci,
1465
1465
  actions: {
1466
1466
  deleteQuarantine: ke,
@@ -1468,18 +1468,18 @@ const ji = (t, e, i = 500) => {
1468
1468
  releaseQuarantine: Me,
1469
1469
  ...ci.actions
1470
1470
  },
1471
- selectors: { selectFileIntegrityAction: Rr, selectFileIntegrityList: Mr }
1472
- }, kr = (t) => t ? Object.keys(t).filter((e) => t[e]) : [], ui = C({
1471
+ selectors: { selectFileIntegrityAction: Mr, selectFileIntegrityList: kr }
1472
+ }, Dr = (t) => t ? Object.keys(t).filter((e) => t[e]) : [], ui = C({
1473
1473
  name: "hooks",
1474
1474
  initialState: {},
1475
1475
  reducers: {
1476
1476
  initHooks: (t, { payload: e }) => e
1477
1477
  }
1478
- }), Dr = (t) => t.hooks, jr = (t, e) => t.hooks[e], xr = (t, e) => !!t.hooks[e]?.hasLicense, Kl = {
1478
+ }), jr = (t) => t.hooks, xr = (t, e) => t.hooks[e], _r = (t, e) => !!t.hooks[e]?.hasLicense, Yl = {
1479
1479
  slice: ui,
1480
1480
  actions: ui.actions,
1481
- selectors: { selectHooks: Dr, selectHook: jr, hasHookLicense: xr },
1482
- utils: { buildDrivesArrayFromObject: kr }
1481
+ selectors: { selectHooks: jr, selectHook: xr, hasHookLicense: _r },
1482
+ utils: { buildDrivesArrayFromObject: Dr }
1483
1483
  }, Vt = (t) => {
1484
1484
  const e = t.urlToJland;
1485
1485
  if (!e)
@@ -1611,7 +1611,7 @@ const ji = (t, e, i = 500) => {
1611
1611
  e.loadingMapDeletion === "pending" && (e.loadingMapDeletion = "idle");
1612
1612
  });
1613
1613
  }
1614
- }), _r = {
1614
+ }), Pr = {
1615
1615
  title: "",
1616
1616
  type: "",
1617
1617
  flavor: "",
@@ -1620,7 +1620,7 @@ const ji = (t, e, i = 500) => {
1620
1620
  illustration: "",
1621
1621
  assignLicense: !1
1622
1622
  }, gi = {
1623
- map: { ..._r },
1623
+ map: { ...Pr },
1624
1624
  loading: "idle",
1625
1625
  status: void 0,
1626
1626
  msg: void 0
@@ -1668,20 +1668,20 @@ const ji = (t, e, i = 500) => {
1668
1668
  e.msg = i.error.message ?? void 0, e.status = "error", e.loading = "idle";
1669
1669
  });
1670
1670
  }
1671
- }), Pr = function(e) {
1671
+ }), Nr = function(e) {
1672
1672
  return e.jland.jLandMapList.maps;
1673
- }, Nr = function(e) {
1674
- return e.jland.jLandMapList.availableLicenses;
1675
1673
  }, Ur = function(e) {
1674
+ return e.jland.jLandMapList.availableLicenses;
1675
+ }, Fr = function(e) {
1676
1676
  return e.jland.mapCreate;
1677
- }, Fr = O({
1677
+ }, Wr = O({
1678
1678
  [pi.name]: pi.reducer,
1679
1679
  [Dt.name]: Dt.reducer
1680
- }), Wr = {
1680
+ }), Br = {
1681
1681
  name: "jland",
1682
- reducer: Fr
1683
- }, Yl = {
1684
- slice: Wr,
1682
+ reducer: Wr
1683
+ }, Ql = {
1684
+ slice: Br,
1685
1685
  actions: {
1686
1686
  ...Dt.actions,
1687
1687
  assignLicense: Y,
@@ -1692,12 +1692,12 @@ const ji = (t, e, i = 500) => {
1692
1692
  createMap: xe
1693
1693
  },
1694
1694
  selectors: {
1695
- selectJLandMaps: Pr,
1696
- selectJLandAvailableLicenses: Nr,
1697
- selectMapCreate: Ur
1695
+ selectJLandMaps: Nr,
1696
+ selectJLandAvailableLicenses: Ur,
1697
+ selectMapCreate: Fr
1698
1698
  },
1699
1699
  utils: { buildUrlToJland: Ht }
1700
- }, Br = {
1700
+ }, qr = {
1701
1701
  loading: "idle",
1702
1702
  pads: [],
1703
1703
  query: "",
@@ -1707,9 +1707,9 @@ const ji = (t, e, i = 500) => {
1707
1707
  orders: [],
1708
1708
  limit: 10,
1709
1709
  nbResults: 0
1710
- }, qr = C({
1710
+ }, $r = C({
1711
1711
  name: "magicPad",
1712
- initialState: Br,
1712
+ initialState: qr,
1713
1713
  reducers: {
1714
1714
  setTab: (t, e) => {
1715
1715
  t.tab = e.payload, t.page = 1, t.orders = [], t.filters = [];
@@ -1761,16 +1761,16 @@ const ji = (t, e, i = 500) => {
1761
1761
  } catch (n) {
1762
1762
  return a(p.actions.error({ label: A(n) })), i({ error: 1, errorMsg: "Cannot fetch pads" });
1763
1763
  }
1764
- }), $r = (t) => t.magicPad, Ql = {
1765
- slice: qr,
1764
+ }), Vr = (t) => t.magicPad, zl = {
1765
+ slice: $r,
1766
1766
  actions: {
1767
1767
  fetchPads: _e
1768
1768
  },
1769
- selectors: { selectMagicPad: $r }
1769
+ selectors: { selectMagicPad: Vr }
1770
1770
  }, jt = {
1771
1771
  typeMediaLibraryFolder: "mediaLibraryFolder",
1772
1772
  typeMediaLibraryFile: "mediaLibraryFile"
1773
- }, Vr = 18, Hr = 12, Gr = 18, Xr = {
1773
+ }, Hr = 18, Gr = 12, Xr = 18, Jr = {
1774
1774
  loading: "idle",
1775
1775
  nbResults: 0,
1776
1776
  query: "",
@@ -1784,7 +1784,7 @@ const ji = (t, e, i = 500) => {
1784
1784
  filesStats: { loading: !1, pager: null }
1785
1785
  }, Pi = C({
1786
1786
  name: "mediaLibrary",
1787
- initialState: Xr,
1787
+ initialState: Jr,
1788
1788
  reducers: {
1789
1789
  removeFileFromFolder(t, e) {
1790
1790
  return {
@@ -1857,7 +1857,7 @@ const ji = (t, e, i = 500) => {
1857
1857
  page: t,
1858
1858
  orders: [{ name: "title", sort: "ASC" }]
1859
1859
  };
1860
- e || (l.limit = Hr);
1860
+ e || (l.limit = Gr);
1861
1861
  try {
1862
1862
  const d = s().mediaLibrary;
1863
1863
  return l.query = i ?? d.query, await a.jApi.article.list(l, {
@@ -1872,7 +1872,7 @@ const ji = (t, e, i = 500) => {
1872
1872
  const n = {
1873
1873
  type: jt.typeMediaLibraryFile,
1874
1874
  page: e,
1875
- limit: Gr,
1875
+ limit: Xr,
1876
1876
  filters: [
1877
1877
  {
1878
1878
  name: "mediaLibraryFolderOrientedLinks",
@@ -1893,7 +1893,7 @@ const ji = (t, e, i = 500) => {
1893
1893
  const s = n().mediaLibrary, l = e ?? s.query;
1894
1894
  return await i.jApi.mediaLibrary.GetUnclassifiedFiles({
1895
1895
  page: t,
1896
- limit: Vr,
1896
+ limit: Hr,
1897
1897
  query: l
1898
1898
  });
1899
1899
  } catch (s) {
@@ -1935,7 +1935,7 @@ const ji = (t, e, i = 500) => {
1935
1935
  return a(p.actions.error({ label: A(r) })), i({ error: 1, errorMsg: "Cannot get MediaLibrary stats" });
1936
1936
  }
1937
1937
  }
1938
- ), Jr = (t) => t.mediaLibrary, Kr = (t) => t.mediaLibrary.stats, Yr = (t) => t.mediaLibrary.foldersStats, Qr = (t) => t.mediaLibrary.filesStats, zr = (t) => t.mediaLibrary.folders, Zr = (t) => t.mediaLibrary.foldersAll, en = (t) => t.mediaLibrary.folderFiles, tn = (t) => t.mediaLibrary.unclassifiedFiles, zl = Pi.reducer, Zl = {
1938
+ ), Kr = (t) => t.mediaLibrary, Yr = (t) => t.mediaLibrary.stats, Qr = (t) => t.mediaLibrary.foldersStats, zr = (t) => t.mediaLibrary.filesStats, Zr = (t) => t.mediaLibrary.folders, en = (t) => t.mediaLibrary.foldersAll, tn = (t) => t.mediaLibrary.folderFiles, an = (t) => t.mediaLibrary.unclassifiedFiles, Zl = Pi.reducer, ed = {
1939
1939
  slice: Pi,
1940
1940
  actions: {
1941
1941
  fetchMediaLibraryFolders: Pe,
@@ -1947,26 +1947,26 @@ const ji = (t, e, i = 500) => {
1947
1947
  fetchMediaLibraryFoldersStats: We
1948
1948
  },
1949
1949
  selectors: {
1950
- selectMediaLibrary: Jr,
1951
- selectMediaLibraryStats: Kr,
1952
- selectMediaLibraryFoldersStats: Yr,
1953
- selectMediaLibraryFilesStats: Qr,
1954
- selectFolders: zr,
1955
- selectFolderAll: Zr,
1956
- selectFolderFiles: en,
1957
- selectUnclassifiedFiles: tn
1950
+ selectMediaLibrary: Kr,
1951
+ selectMediaLibraryStats: Yr,
1952
+ selectMediaLibraryFoldersStats: Qr,
1953
+ selectMediaLibraryFilesStats: zr,
1954
+ selectFolders: Zr,
1955
+ selectFolderAll: en,
1956
+ selectFolderFiles: tn,
1957
+ selectUnclassifiedFiles: an
1958
1958
  }
1959
1959
  }, H = St({
1960
1960
  selectId: (t) => t.type,
1961
1961
  sortComparer: (t, e) => t.label.localeCompare(e.label)
1962
- }), an = (t, e) => {
1962
+ }), rn = (t, e) => {
1963
1963
  const i = {
1964
1964
  from: "imagestatic",
1965
1965
  size: e ?? "fitx600",
1966
1966
  uri: `icons/${t?.icon ?? "article"}-white`
1967
1967
  };
1968
- return ua(i);
1969
- }, rn = (t) => `icon-${{
1968
+ return pa(i);
1969
+ }, nn = (t) => `icon-${{
1970
1970
  actionplan: "fs-actionplan",
1971
1971
  animatedMeeting: "fs-animated_meeting",
1972
1972
  // Diapazone
@@ -2020,62 +2020,62 @@ const ji = (t, e, i = 500) => {
2020
2020
  addMany: H.addMany,
2021
2021
  setAll: H.setAll
2022
2022
  }
2023
- }), nn = H.getSelectors((t) => t.entities.models), sn = {
2024
- getModelIconSrc: an,
2025
- getModelFontAwesomeIcon: rn
2026
- }, on = (t, e) => e.map((i) => t.entities.models.entities[i]).filter((i) => !!i), ln = {
2023
+ }), sn = H.getSelectors((t) => t.entities.models), on = {
2024
+ getModelIconSrc: rn,
2025
+ getModelFontAwesomeIcon: nn
2026
+ }, ln = (t, e) => e.map((i) => t.entities.models.entities[i]).filter((i) => !!i), dn = {
2027
2027
  slice: fi,
2028
2028
  actions: { ...fi.actions },
2029
- utils: sn,
2029
+ utils: on,
2030
2030
  selectors: {
2031
- ...nn,
2032
- selectByIds: on
2031
+ ...sn,
2032
+ selectByIds: ln
2033
2033
  }
2034
- }, dn = {}, xt = C({
2034
+ }, cn = {}, xt = C({
2035
2035
  name: "statics",
2036
- initialState: dn,
2036
+ initialState: cn,
2037
2037
  reducers: {
2038
2038
  initNetworkStatics: (t, { payload: e }) => e
2039
2039
  }
2040
- }), cn = O({
2040
+ }), un = O({
2041
2041
  [xt.name]: xt.reducer
2042
- }), un = {
2042
+ }), pn = {
2043
2043
  name: "network",
2044
- reducer: cn
2045
- }, pn = (t) => t.network.statics, gn = (t) => t.network.statics.networkPublic, fn = (t) => t.network.statics.networkMe, ed = {
2046
- slice: un,
2044
+ reducer: un
2045
+ }, gn = (t) => t.network.statics, fn = (t) => t.network.statics.networkPublic, mn = (t) => t.network.statics.networkMe, td = {
2046
+ slice: pn,
2047
2047
  actions: {
2048
2048
  ...xt.actions
2049
2049
  },
2050
2050
  selectors: {
2051
- selectNetworkStatics: pn,
2052
- selectNetworkPublic: gn,
2053
- selectNetworkMe: fn
2051
+ selectNetworkStatics: gn,
2052
+ selectNetworkPublic: fn,
2053
+ selectNetworkMe: mn
2054
2054
  }
2055
- }, mn = {
2055
+ }, yn = {
2056
2056
  userAccountStatus: 0,
2057
2057
  sendAlert: 0
2058
2058
  }, Ni = C({
2059
2059
  name: "config",
2060
- initialState: mn,
2060
+ initialState: yn,
2061
2061
  reducers: {
2062
2062
  initPlatformConfig: (t, { payload: e }) => e
2063
2063
  }
2064
- }), yn = O({
2064
+ }), An = O({
2065
2065
  config: Ni.reducer
2066
- }), An = {
2066
+ }), Sn = {
2067
2067
  name: "platform",
2068
- reducer: yn
2069
- }, Sn = (t) => t.platform.config, Cn = (t) => t.platform.config.userHighlightFields, En = (t) => t.platform.config.userAccountStatus, Tn = (t) => t.platform.config.urlBase, td = {
2070
- slice: An,
2068
+ reducer: An
2069
+ }, Cn = (t) => t.platform.config, En = (t) => t.platform.config.userHighlightFields, Tn = (t) => t.platform.config.userAccountStatus, bn = (t) => t.platform.config.urlBase, id = {
2070
+ slice: Sn,
2071
2071
  actions: {
2072
2072
  ...Ni.actions
2073
2073
  },
2074
2074
  selectors: {
2075
- selectPlatformConfig: Sn,
2076
- selectUserHighlightFields: Cn,
2077
- selectUserAccountStatus: En,
2078
- selectUrlBase: Tn
2075
+ selectPlatformConfig: Cn,
2076
+ selectUserHighlightFields: En,
2077
+ selectUserAccountStatus: Tn,
2078
+ selectUrlBase: bn
2079
2079
  }
2080
2080
  }, Ui = {
2081
2081
  query: "",
@@ -2092,7 +2092,7 @@ const ji = (t, e, i = 500) => {
2092
2092
  const a = e.jApi, n = i().wedoc.tab === "my-documents" ? [{ name: "idUser", value: "0" }] : [];
2093
2093
  return await a.wedoc.getFiles({ ...Ui, filters: n, limit: 3 });
2094
2094
  }
2095
- ), bn = {
2095
+ ), vn = {
2096
2096
  entities: [],
2097
2097
  nbEntities: 0,
2098
2098
  entitiesRecent: [],
@@ -2101,9 +2101,9 @@ const ji = (t, e, i = 500) => {
2101
2101
  loadingRecent: "idle",
2102
2102
  query: "",
2103
2103
  page: 1
2104
- }, vn = C({
2104
+ }, hn = C({
2105
2105
  name: "wedoc",
2106
- initialState: bn,
2106
+ initialState: vn,
2107
2107
  reducers: {
2108
2108
  update: (t, e) => {
2109
2109
  t.entities = [
@@ -2134,8 +2134,8 @@ const ji = (t, e, i = 500) => {
2134
2134
  e.loadingRecent = "idle";
2135
2135
  });
2136
2136
  }
2137
- }), id = {
2138
- slice: vn,
2137
+ }), ad = {
2138
+ slice: hn,
2139
2139
  selectors: {
2140
2140
  getFiles: (t) => ({
2141
2141
  entities: t.wedoc.entities,
@@ -2155,13 +2155,13 @@ const ji = (t, e, i = 500) => {
2155
2155
  fetchFiles: $e,
2156
2156
  fetchRecentFiles: Ve
2157
2157
  }
2158
- }, He = u("/fetchRequest", async ({ uri: t, idUser: e }, { extra: i }) => await i.jApi.object.getAccessRequest(t, e)), hn = {
2158
+ }, He = u("/fetchRequest", async ({ uri: t, idUser: e }, { extra: i }) => await i.jApi.object.getAccessRequest(t, e)), Ln = {
2159
2159
  entities: [],
2160
2160
  nbEntities: 0,
2161
2161
  loading: "idle"
2162
2162
  }, wn = C({
2163
2163
  name: "share",
2164
- initialState: hn,
2164
+ initialState: Ln,
2165
2165
  reducers: {
2166
2166
  remove: (t, e) => {
2167
2167
  t.entities = [...t.entities.filter((i) => i.id !== e.payload)];
@@ -2176,7 +2176,7 @@ const ji = (t, e, i = 500) => {
2176
2176
  e.loading = "idle";
2177
2177
  });
2178
2178
  }
2179
- }), ad = {
2179
+ }), rd = {
2180
2180
  slice: wn,
2181
2181
  selectors: {
2182
2182
  requests: (t) => ({
@@ -2187,63 +2187,42 @@ const ji = (t, e, i = 500) => {
2187
2187
  actions: {
2188
2188
  fetchRequest: He
2189
2189
  }
2190
- }, Ln = function(t) {
2191
- return [
2192
- {
2193
- namespace: "TEAMWORK",
2194
- function: "updateTodo",
2195
- handler: function(a) {
2196
- a.namespace === "TEAMWORK" && a.function === "updateTodo" && (t(
2197
- re.actions.setTasksMessageAndStatus({ status: a.state, messages: a.messages, jobUid: a.jobUid })
2198
- ), a.state === "success" && t(re.actions.setTasks({ tasks: a.tasks, jobUid: a.jobUid })));
2199
- }
2200
- },
2201
- {
2202
- namespace: "TEAMWORK",
2203
- function: "updateDaySummary",
2204
- handler: function(a) {
2205
- a.namespace === "TEAMWORK" && a.function === "updateDaySummary" && (t(
2206
- re.actions.setDaySummaryMessageAndStatus({ status: a.state, messages: a.messages, jobUid: a.jobUid })
2207
- ), a.state === "success" && t(re.actions.setDaySummary({ summary: a.summary, jobUid: a.jobUid })));
2208
- }
2209
- }
2210
- ];
2211
2190
  }, In = {
2212
2191
  messages: [],
2213
2192
  status: "idle",
2214
- tasks: void 0,
2193
+ summary: void 0,
2215
2194
  jobUid: void 0
2216
2195
  }, _t = C({
2217
- name: "teamWorkAiTasks",
2196
+ name: "teamWorkAiDaySummary",
2218
2197
  initialState: In,
2219
2198
  reducers: {
2220
- setTasksMessageAndStatus: (t, e) => {
2199
+ setDaySummaryMessageAndStatus: (t, e) => {
2221
2200
  if (e.payload.jobUid !== t.jobUid)
2222
2201
  return;
2223
2202
  const { status: i, messages: a } = e.payload;
2224
2203
  t.status = i, t.messages = a;
2225
2204
  },
2226
- setTasks: (t, e) => {
2227
- e.payload.jobUid === t.jobUid && (t.tasks = e.payload.tasks);
2205
+ setDaySummary: (t, e) => {
2206
+ e.payload.jobUid === t.jobUid && (t.summary = e.payload.summary);
2228
2207
  },
2229
- resetTasksState: (t) => {
2230
- t.status = "idle", t.messages = [], t.jobUid = void 0, t.tasks = void 0;
2208
+ resetDaySummaryState: (t) => {
2209
+ t.status = "idle", t.messages = [], t.jobUid = void 0, t.summary = void 0;
2231
2210
  }
2232
2211
  },
2233
2212
  extraReducers: (t) => {
2234
2213
  t.addCase(Ge.pending, (e, i) => {
2235
2214
  e.status = "pending", e.messages = ["APP_TeamWork_IA_Generation_Started"];
2236
2215
  }), t.addCase(Ge.fulfilled, (e, i) => {
2237
- e.status = i.payload.state, e.messages = i.payload.messages, e.tasks = i.payload.tasks, e.jobUid = i.payload.jobUid;
2216
+ e.status = i.payload.state, e.messages = i.payload.messages, e.summary = i.payload.summary, e.jobUid = i.payload.jobUid;
2238
2217
  }), t.addCase(Ge.rejected, (e, i) => {
2239
2218
  e.status = "error", e.messages = [i.payload?.errorMsg ?? "GLOBAL_Technical_Error"];
2240
2219
  });
2241
2220
  }
2242
2221
  }), Ge = u(
2243
- "teamWork/Ai/startToDoCreation",
2222
+ "teamWork/Ai/startDaySummaryCreation",
2244
2223
  async (t, { extra: e, rejectWithValue: i, dispatch: a, signal: r }) => {
2245
2224
  try {
2246
- return (await e.jApi.teamWorkAi.generateToDo({ forceGeneration: t }, { signal: r })).result;
2225
+ return (await e.jApi.teamWorkAi.daySummary({ forceGeneration: t }, { signal: r })).result;
2247
2226
  } catch (n) {
2248
2227
  return v(n) || a(p.actions.error({ label: A(n) })), i({ error: 1, errorMsg: "APP_TEAMWORK_ToDo_Not_Sent" });
2249
2228
  }
@@ -2251,60 +2230,91 @@ const ji = (t, e, i = 500) => {
2251
2230
  ), On = {
2252
2231
  messages: [],
2253
2232
  status: "idle",
2254
- summary: void 0,
2255
- jobUid: void 0
2233
+ tasks: void 0,
2234
+ jobUid: void 0,
2235
+ uriAiTodo: void 0
2256
2236
  }, Pt = C({
2257
- name: "teamWorkAiDaySummary",
2237
+ name: "teamWorkAiTasks",
2258
2238
  initialState: On,
2259
2239
  reducers: {
2260
- setDaySummaryMessageAndStatus: (t, e) => {
2240
+ setTasksMessageAndStatus: (t, e) => {
2261
2241
  if (e.payload.jobUid !== t.jobUid)
2262
2242
  return;
2263
2243
  const { status: i, messages: a } = e.payload;
2264
2244
  t.status = i, t.messages = a;
2265
2245
  },
2266
- setDaySummary: (t, e) => {
2267
- e.payload.jobUid === t.jobUid && (t.summary = e.payload.summary);
2246
+ setTasks: (t, e) => {
2247
+ e.payload.jobUid === t.jobUid && (t.tasks = e.payload.tasks, t.uriAiTodo = e.payload.uriAiTodo);
2268
2248
  },
2269
- resetDaySummaryState: (t) => {
2270
- t.status = "idle", t.messages = [], t.jobUid = void 0, t.summary = void 0;
2249
+ resetTasksState: (t) => {
2250
+ t.status = "idle", t.messages = [], t.jobUid = void 0, t.tasks = void 0, t.uriAiTodo = void 0;
2271
2251
  }
2272
2252
  },
2273
2253
  extraReducers: (t) => {
2274
2254
  t.addCase(Xe.pending, (e, i) => {
2275
2255
  e.status = "pending", e.messages = ["APP_TeamWork_IA_Generation_Started"];
2276
2256
  }), t.addCase(Xe.fulfilled, (e, i) => {
2277
- e.status = i.payload.state, e.messages = i.payload.messages, e.summary = i.payload.summary, e.jobUid = i.payload.jobUid;
2257
+ e.status = i.payload.state, e.messages = i.payload.messages, e.tasks = i.payload.tasks, e.jobUid = i.payload.jobUid, e.uriAiTodo = i.payload.uriAiTodo;
2278
2258
  }), t.addCase(Xe.rejected, (e, i) => {
2279
2259
  e.status = "error", e.messages = [i.payload?.errorMsg ?? "GLOBAL_Technical_Error"];
2260
+ }), t.addCase(Fi.fulfilled, (e, i) => {
2261
+ e.tasks = i.payload;
2280
2262
  });
2281
2263
  }
2282
2264
  }), Xe = u(
2283
- "teamWork/Ai/startDaySummaryCreation",
2265
+ "teamWork/Ai/startToDoCreation",
2284
2266
  async (t, { extra: e, rejectWithValue: i, dispatch: a, signal: r }) => {
2285
2267
  try {
2286
- return (await e.jApi.teamWorkAi.daySummary({ forceGeneration: t }, { signal: r })).result;
2268
+ return (await e.jApi.teamWorkAi.generateToDo({ forceGeneration: t }, { signal: r })).result;
2287
2269
  } catch (n) {
2288
2270
  return v(n) || a(p.actions.error({ label: A(n) })), i({ error: 1, errorMsg: "APP_TEAMWORK_ToDo_Not_Sent" });
2289
2271
  }
2290
2272
  }
2291
- ), Rn = (t) => t.teamWork.teamWorkAiTasks, Mn = (t) => t.teamWork.teamWorkAiDaySummary, kn = O({
2292
- [_t.name]: _t.reducer,
2293
- [Pt.name]: Pt.reducer
2294
- }), Fi = {
2273
+ ), Fi = u("teamWork/Ai/setToDoDone", async (t, { extra: e, rejectWithValue: i, dispatch: a, signal: r }) => {
2274
+ try {
2275
+ return (await e.jApi.teamWorkAi.todoDone(t, { signal: r })).result;
2276
+ } catch (n) {
2277
+ return v(n) || a(p.actions.error({ label: A(n) })), i({ error: 1, errorMsg: "GLOBAL_Technical_Error" });
2278
+ }
2279
+ }), Rn = function(t) {
2280
+ return [
2281
+ {
2282
+ namespace: "TEAMWORK",
2283
+ function: "updateTodo",
2284
+ handler: function(a) {
2285
+ a.namespace === "TEAMWORK" && a.function === "updateTodo" && (t(
2286
+ re.actions.setTasksMessageAndStatus({ status: a.state, messages: a.messages, jobUid: a.jobUid })
2287
+ ), a.state === "success" && t(re.actions.setTasks({ tasks: a.tasks, jobUid: a.jobUid, uriAiTodo: a.uriAiTodo })));
2288
+ }
2289
+ },
2290
+ {
2291
+ namespace: "TEAMWORK",
2292
+ function: "updateDaySummary",
2293
+ handler: function(a) {
2294
+ a.namespace === "TEAMWORK" && a.function === "updateDaySummary" && (t(
2295
+ re.actions.setDaySummaryMessageAndStatus({ status: a.state, messages: a.messages, jobUid: a.jobUid })
2296
+ ), a.state === "success" && t(re.actions.setDaySummary({ summary: a.summary, jobUid: a.jobUid })));
2297
+ }
2298
+ }
2299
+ ];
2300
+ }, Mn = (t) => t.teamWork.teamWorkAiTasks, kn = (t) => t.teamWork.teamWorkAiDaySummary, Dn = O({
2301
+ [Pt.name]: Pt.reducer,
2302
+ [_t.name]: _t.reducer
2303
+ }), Wi = {
2295
2304
  name: "teamWork",
2296
- reducer: kn
2297
- }, rd = Fi.reducer, re = {
2298
- slice: Fi,
2305
+ reducer: Dn
2306
+ }, nd = Wi.reducer, re = {
2307
+ slice: Wi,
2299
2308
  actions: {
2300
- ..._t.actions,
2301
2309
  ...Pt.actions,
2302
- startToDoCreation: Ge,
2303
- startDaySummaryCreation: Xe
2310
+ ..._t.actions,
2311
+ startToDoCreation: Xe,
2312
+ startDaySummaryCreation: Ge,
2313
+ setToDoDone: Fi
2304
2314
  },
2305
- selectors: { selectToDoState: Rn, selectDaySummaryState: Mn },
2306
- getTeamWorkRTHandlers: Ln
2307
- }, Dn = {
2315
+ selectors: { selectToDoState: Mn, selectDaySummaryState: kn },
2316
+ getTeamWorkRTHandlers: Rn
2317
+ }, jn = {
2308
2318
  channels: void 0,
2309
2319
  loading: "idle",
2310
2320
  loadingChannelDeletion: "idle"
@@ -2338,7 +2348,7 @@ const ji = (t, e, i = 500) => {
2338
2348
  });
2339
2349
  }), mi = C({
2340
2350
  name: "channelsList",
2341
- initialState: { ...Dn },
2351
+ initialState: { ...jn },
2342
2352
  reducers: {},
2343
2353
  extraReducers: (t) => {
2344
2354
  t.addCase(Q.pending, (e) => {
@@ -2356,49 +2366,49 @@ const ji = (t, e, i = 500) => {
2356
2366
  });
2357
2367
  }
2358
2368
  });
2359
- function jn(t) {
2369
+ function xn(t) {
2360
2370
  return t.tvChannelType === "DYNAMIC" ? !!t.tvChannelBackgroundColor && !!t.tvChannelGroupTarget : t.tvChannelNumImages !== 0;
2361
2371
  }
2362
- const xn = O({
2372
+ const _n = O({
2363
2373
  [mi.name]: mi.reducer
2364
- }), _n = {
2374
+ }), Pn = {
2365
2375
  name: "tvDisplay",
2366
- reducer: xn
2367
- }, Pn = function(e) {
2376
+ reducer: _n
2377
+ }, Nn = function(e) {
2368
2378
  return e.tvDisplay.channelsList;
2369
- }, nd = {
2370
- slice: _n,
2379
+ }, sd = {
2380
+ slice: Pn,
2371
2381
  actions: {
2372
2382
  fetchChannels: Q,
2373
2383
  deleteChannel: Je
2374
2384
  },
2375
2385
  selectors: {
2376
- selectChannelsList: Pn
2386
+ selectChannelsList: Nn
2377
2387
  },
2378
2388
  utils: {
2379
- isChannelConfigured: jn
2389
+ isChannelConfigured: xn
2380
2390
  }
2381
- }, Nn = {}, Nt = C({
2391
+ }, Un = {}, Nt = C({
2382
2392
  name: "options",
2383
- initialState: Nn,
2393
+ initialState: Un,
2384
2394
  reducers: {
2385
2395
  initOptions: (t, { payload: e }) => e
2386
2396
  }
2387
- }), Un = O({
2397
+ }), Fn = O({
2388
2398
  [Nt.name]: Nt.reducer
2389
- }), Fn = {
2399
+ }), Wn = {
2390
2400
  name: "tinymce",
2391
- reducer: Un
2392
- }, Wn = (t) => t.tinymce.options.common, Bn = (t) => t.tinymce.options.extended, sd = {
2393
- slice: Fn,
2401
+ reducer: Fn
2402
+ }, Bn = (t) => t.tinymce.options.common, qn = (t) => t.tinymce.options.extended, od = {
2403
+ slice: Wn,
2394
2404
  actions: {
2395
2405
  ...Nt.actions
2396
2406
  },
2397
2407
  selectors: {
2398
- selectTinyMCECommonOptions: Wn,
2399
- selectTinyMCEExtendedOptions: Bn
2408
+ selectTinyMCECommonOptions: Bn,
2409
+ selectTinyMCEExtendedOptions: qn
2400
2410
  }
2401
- }, qn = {
2411
+ }, $n = {
2402
2412
  id: 0,
2403
2413
  mainType: "user",
2404
2414
  type: "user",
@@ -2411,17 +2421,17 @@ const xn = O({
2411
2421
  active: 1
2412
2422
  }, yi = C({
2413
2423
  name: "userCurrent",
2414
- initialState: qn,
2424
+ initialState: $n,
2415
2425
  reducers: {
2416
2426
  init: (t, { payload: e }) => e
2417
2427
  }
2418
- }), $n = (t) => t.userCurrent, Vn = (t) => t.level === pa.ADMIN, Hn = (t) => t.id !== 0, od = {
2428
+ }), Vn = (t) => t.userCurrent, Hn = (t) => t.level === ga.ADMIN, Gn = (t) => t.id !== 0, ld = {
2419
2429
  slice: yi,
2420
2430
  actions: { ...yi.actions },
2421
2431
  selectors: {
2422
- get: $n
2432
+ get: Vn
2423
2433
  },
2424
- utils: { isAdmin: Vn, isLogged: Hn }
2434
+ utils: { isAdmin: Hn, isLogged: Gn }
2425
2435
  };
2426
2436
  function Gt() {
2427
2437
  let t = "";
@@ -2429,13 +2439,13 @@ function Gt() {
2429
2439
  t += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
2430
2440
  return t;
2431
2441
  }
2432
- const Wi = "WIDGET_Check_List", Bi = "WIDGET_Check_List_Description", qi = "WIDGET_Quick_Survey", $i = "WIDGET_Quick_Survey_Text", Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2442
+ const Bi = "WIDGET_Check_List", qi = "WIDGET_Check_List_Description", $i = "WIDGET_Quick_Survey", Vi = "WIDGET_Quick_Survey_Text", Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2433
2443
  __proto__: null,
2434
- WIDGET_CHECK_LIST_DESCRIPTION: Bi,
2435
- WIDGET_CHECK_LIST_LABEL: Wi,
2436
- WIDGET_QUICK_SURVEY_DESCRIPTION: $i,
2437
- WIDGET_QUICK_SURVEY_LABEL: qi
2438
- }, Symbol.toStringTag, { value: "Module" })), Xn = {
2444
+ WIDGET_CHECK_LIST_DESCRIPTION: qi,
2445
+ WIDGET_CHECK_LIST_LABEL: Bi,
2446
+ WIDGET_QUICK_SURVEY_DESCRIPTION: Vi,
2447
+ WIDGET_QUICK_SURVEY_LABEL: $i
2448
+ }, Symbol.toStringTag, { value: "Module" })), Jn = {
2439
2449
  label: "WIDGET_Article_Attachment",
2440
2450
  description: "WIDGET_Article_Attachment_Description",
2441
2451
  name: T.ArticleAttachment,
@@ -2447,9 +2457,9 @@ const Wi = "WIDGET_Check_List", Bi = "WIDGET_Check_List_Description", qi = "WIDG
2447
2457
  useSelection: !1,
2448
2458
  useWidgets: !1
2449
2459
  }
2450
- }, Jn = {
2451
- files: []
2452
2460
  }, Kn = {
2461
+ files: []
2462
+ }, Yn = {
2453
2463
  label: "WIDGET_BUTTON",
2454
2464
  description: "WIDGET_Button_Description",
2455
2465
  name: T.ArticleButton,
@@ -2461,7 +2471,7 @@ const Wi = "WIDGET_Check_List", Bi = "WIDGET_Check_List_Description", qi = "WIDG
2461
2471
  useSelection: !1,
2462
2472
  useWidgets: !1
2463
2473
  }
2464
- }, Yn = {
2474
+ }, Qn = {
2465
2475
  text: "",
2466
2476
  openingType: "link",
2467
2477
  openingTypeLink: {
@@ -2486,11 +2496,11 @@ const Wi = "WIDGET_Check_List", Bi = "WIDGET_Check_List_Description", qi = "WIDG
2486
2496
  useSelection: !1,
2487
2497
  useWidgets: !1
2488
2498
  }
2489
- }, Qn = {
2499
+ }, zn = {
2490
2500
  files: [],
2491
2501
  gap: "4",
2492
2502
  column: "3"
2493
- }, zn = {
2503
+ }, Zn = {
2494
2504
  label: "WIDGET_Article_Image",
2495
2505
  description: "WIDGET_Article_Image_Description",
2496
2506
  name: T.ArticleImage,
@@ -2502,7 +2512,7 @@ const Wi = "WIDGET_Check_List", Bi = "WIDGET_Check_List_Description", qi = "WIDG
2502
2512
  useSelection: !1,
2503
2513
  useWidgets: !1
2504
2514
  }
2505
- }, Zn = {}, es = {
2515
+ }, es = {}, ts = {
2506
2516
  label: "WIDGET_Slider",
2507
2517
  description: "WIDGET_Slider_Description",
2508
2518
  name: T.ArticleSlider,
@@ -2514,13 +2524,13 @@ const Wi = "WIDGET_Check_List", Bi = "WIDGET_Check_List_Description", qi = "WIDG
2514
2524
  useSelection: !1,
2515
2525
  useWidgets: !1
2516
2526
  }
2517
- }, ts = {
2527
+ }, is = {
2518
2528
  slides: [],
2519
2529
  maxWidth: 800,
2520
2530
  loop: !1,
2521
2531
  useDots: !0,
2522
2532
  startAt: 0
2523
- }, is = {
2533
+ }, as = {
2524
2534
  label: "WIDGET_Text",
2525
2535
  description: "WIDGET_Text_Description",
2526
2536
  name: T.ArticleText,
@@ -2532,9 +2542,9 @@ const Wi = "WIDGET_Check_List", Bi = "WIDGET_Check_List_Description", qi = "WIDG
2532
2542
  useSelection: !1,
2533
2543
  useWidgets: !1
2534
2544
  }
2535
- }, as = {
2536
- text: ""
2537
2545
  }, rs = {
2546
+ text: ""
2547
+ }, ns = {
2538
2548
  label: "WIDGET_Title",
2539
2549
  description: "WIDGET_Title_Description",
2540
2550
  name: T.ArticleTitle,
@@ -2546,11 +2556,11 @@ const Wi = "WIDGET_Check_List", Bi = "WIDGET_Check_List_Description", qi = "WIDG
2546
2556
  useSelection: !1,
2547
2557
  useWidgets: !1
2548
2558
  }
2549
- }, ns = {
2559
+ }, ss = {
2550
2560
  text: "",
2551
2561
  heading: "h1",
2552
2562
  backgroundColor: "transparent"
2553
- }, ss = {
2563
+ }, os = {
2554
2564
  label: "WIDGET_Calendar_CalDav",
2555
2565
  description: "WIDGET_Calendar_CalDav_Text",
2556
2566
  name: T.CalendarCalDav,
@@ -2563,13 +2573,13 @@ const Wi = "WIDGET_Check_List", Bi = "WIDGET_Check_List_Description", qi = "WIDG
2563
2573
  useSelection: !0,
2564
2574
  useWidgets: !1
2565
2575
  }
2566
- }, os = {
2576
+ }, ls = {
2567
2577
  calEventsLimit: !1,
2568
2578
  calEventsLimitValue: 10,
2569
2579
  calEventsPromptStatus: "shared"
2570
- }, ls = {
2571
- label: Wi,
2572
- description: Bi,
2580
+ }, ds = {
2581
+ label: Bi,
2582
+ description: qi,
2573
2583
  name: T.CheckList,
2574
2584
  img: "/img/fast-intranet/widget-check-list.png",
2575
2585
  available: !0,
@@ -2579,10 +2589,10 @@ const Wi = "WIDGET_Check_List", Bi = "WIDGET_Check_List_Description", qi = "WIDG
2579
2589
  useSelection: !1,
2580
2590
  useWidgets: !1
2581
2591
  }
2582
- }, ds = {
2592
+ }, cs = {
2583
2593
  arr: [],
2584
2594
  edit: !1
2585
- }, cs = {
2595
+ }, us = {
2586
2596
  label: "WIDGET_Contact_CardDav",
2587
2597
  description: "WIDGET_Contact_CardDav_Text",
2588
2598
  name: T.ContactCardDav,
@@ -2595,11 +2605,11 @@ const Wi = "WIDGET_Check_List", Bi = "WIDGET_Check_List_Description", qi = "WIDG
2595
2605
  useSelection: !0,
2596
2606
  useWidgets: !1
2597
2607
  }
2598
- }, us = {
2608
+ }, ps = {
2599
2609
  contactLimit: !1,
2600
2610
  contactLimitValue: 10,
2601
2611
  contactPromptStatus: "shared"
2602
- }, ps = {
2612
+ }, gs = {
2603
2613
  label: "WIDGET_Datasource_Table",
2604
2614
  description: "WIDGET_Datasource_Table_Description",
2605
2615
  name: T.DatasourceTable,
@@ -2611,14 +2621,14 @@ const Wi = "WIDGET_Check_List", Bi = "WIDGET_Check_List_Description", qi = "WIDG
2611
2621
  useSelection: !0,
2612
2622
  useWidgets: !1
2613
2623
  }
2614
- }, gs = {
2624
+ }, fs = {
2615
2625
  tableHeadColor: "#f1f1f1",
2616
2626
  tableHeadTextColor: "#000",
2617
2627
  tableHeadIconColor: "#000",
2618
2628
  tableRowColor: "#f5f5f5",
2619
2629
  tableRowTextColor: "#000",
2620
2630
  limit: 20
2621
- }, fs = {
2631
+ }, ms = {
2622
2632
  label: "WIDGET_Email_IMAP",
2623
2633
  description: "WIDGET_Email_IMAP_Text",
2624
2634
  name: T.EmailsImap,
@@ -2631,11 +2641,11 @@ const Wi = "WIDGET_Check_List", Bi = "WIDGET_Check_List_Description", qi = "WIDG
2631
2641
  useSelection: !0,
2632
2642
  useWidgets: !1
2633
2643
  }
2634
- }, ms = {
2644
+ }, ys = {
2635
2645
  emailsLimit: !1,
2636
2646
  emailsLimitValue: 10,
2637
2647
  emailsPromptStatus: "shared"
2638
- }, ys = {
2648
+ }, As = {
2639
2649
  label: "WIDGET_Excel_Datasource_Table",
2640
2650
  description: "WIDGET_Excel_Datasource_Table_Text",
2641
2651
  name: T.ExcelDatasourceTable,
@@ -2647,14 +2657,14 @@ const Wi = "WIDGET_Check_List", Bi = "WIDGET_Check_List_Description", qi = "WIDG
2647
2657
  useSelection: !0,
2648
2658
  useWidgets: !1
2649
2659
  }
2650
- }, As = {
2660
+ }, Ss = {
2651
2661
  tableHeadColor: "#f1f1f1",
2652
2662
  tableHeadTextColor: "#000",
2653
2663
  tableHeadIconColor: "#000",
2654
2664
  tableRowColor: "#f5f5f5",
2655
2665
  tableRowTextColor: "#000",
2656
2666
  limit: 20
2657
- }, Ss = {
2667
+ }, Cs = {
2658
2668
  label: "WIDGET_Extension",
2659
2669
  description: "WIDGET_Extension_Description",
2660
2670
  name: T.Extension,
@@ -2666,9 +2676,9 @@ const Wi = "WIDGET_Check_List", Bi = "WIDGET_Check_List_Description", qi = "WIDG
2666
2676
  useSelection: !1,
2667
2677
  useWidgets: !1
2668
2678
  }
2669
- }, Cs = {
2670
- extensionName: ""
2671
2679
  }, Es = {
2680
+ extensionName: ""
2681
+ }, Ts = {
2672
2682
  label: "WIDGET_Lucca_Absence",
2673
2683
  description: "WIDGET_Lucca_Absence_Text",
2674
2684
  name: T.LuccaAbsence,
@@ -2680,9 +2690,9 @@ const Wi = "WIDGET_Check_List", Bi = "WIDGET_Check_List_Description", qi = "WIDG
2680
2690
  useSelection: !0,
2681
2691
  useWidgets: !1
2682
2692
  }
2683
- }, Ts = {
2684
- url: ""
2685
2693
  }, bs = {
2694
+ url: ""
2695
+ }, vs = {
2686
2696
  label: "WIDGET_Presence",
2687
2697
  description: "WIDGET_Presence_Text",
2688
2698
  name: T.Presence,
@@ -2694,13 +2704,13 @@ const Wi = "WIDGET_Check_List", Bi = "WIDGET_Check_List_Description", qi = "WIDG
2694
2704
  useSelection: !1,
2695
2705
  useWidgets: !1
2696
2706
  }
2697
- }, vs = {
2707
+ }, hs = {
2698
2708
  closing: !1,
2699
2709
  limit: !1,
2700
2710
  limitValue: 100
2701
- }, hs = {
2702
- label: qi,
2703
- description: $i,
2711
+ }, Ls = {
2712
+ label: $i,
2713
+ description: Vi,
2704
2714
  name: T.QuickSurvey,
2705
2715
  img: "/img/fast-intranet/widget-quick-survey.png",
2706
2716
  available: !0,
@@ -2718,7 +2728,7 @@ const Wi = "WIDGET_Check_List", Bi = "WIDGET_Check_List_Description", qi = "WIDG
2718
2728
  isClosed: !1,
2719
2729
  showResult: !1,
2720
2730
  isNotDisabled: !1
2721
- }, Ls = {
2731
+ }, Is = {
2722
2732
  label: "WIDGET_User_Profil",
2723
2733
  description: "WIDGET_User_Profil_Text",
2724
2734
  name: T.UserProfile,
@@ -2730,7 +2740,7 @@ const Wi = "WIDGET_Check_List", Bi = "WIDGET_Check_List_Description", qi = "WIDG
2730
2740
  useSelection: !0,
2731
2741
  useWidgets: !1
2732
2742
  }
2733
- }, Is = {}, Os = {
2743
+ }, Os = {}, Rs = {
2734
2744
  label: "WIDGET_Color",
2735
2745
  description: "WIDGET_Color_Text",
2736
2746
  name: T.Color,
@@ -2742,7 +2752,7 @@ const Wi = "WIDGET_Check_List", Bi = "WIDGET_Check_List_Description", qi = "WIDG
2742
2752
  useSelection: !0,
2743
2753
  useWidgets: !1
2744
2754
  }
2745
- }, Rs = {}, Ms = {
2755
+ }, Ms = {}, ks = {
2746
2756
  label: "WIDGET_Welcome",
2747
2757
  description: "WIDGET_Welcome_Text",
2748
2758
  name: T.Welcome,
@@ -2754,117 +2764,117 @@ const Wi = "WIDGET_Check_List", Bi = "WIDGET_Check_List_Description", qi = "WIDG
2754
2764
  useSelection: !0,
2755
2765
  useWidgets: !1
2756
2766
  }
2757
- }, ks = {};
2758
- function Ds(t) {
2767
+ }, Ds = {};
2768
+ function js(t) {
2759
2769
  switch (t) {
2760
2770
  default:
2761
2771
  return Ai;
2762
2772
  case "widget-article-gallery":
2763
2773
  return Ai;
2764
2774
  case "widget-article-attachment":
2765
- return Xn;
2775
+ return Jn;
2766
2776
  case "widget-presence":
2767
- return bs;
2777
+ return vs;
2768
2778
  case "widget-article-slider":
2769
- return es;
2779
+ return ts;
2770
2780
  case "widget-article-text":
2771
- return is;
2781
+ return as;
2772
2782
  case "widget-article-title":
2773
- return rs;
2783
+ return ns;
2774
2784
  case "widget-article-image":
2775
- return zn;
2785
+ return Zn;
2776
2786
  case "widget-datasource-table":
2777
- return ps;
2787
+ return gs;
2778
2788
  case "widget-excel-datasource-table":
2779
- return ys;
2789
+ return As;
2780
2790
  case "widget-article-button":
2781
- return Kn;
2791
+ return Yn;
2782
2792
  case "widget-check-list":
2783
- return ls;
2793
+ return ds;
2784
2794
  case "widget-quick-survey":
2785
- return hs;
2795
+ return Ls;
2786
2796
  case "widget-calendar-calDav":
2787
- return ss;
2797
+ return os;
2788
2798
  case "widget-contact-cardDav":
2789
- return cs;
2799
+ return us;
2790
2800
  case "widget-lucca-absence":
2791
- return Es;
2801
+ return Ts;
2792
2802
  case "widget-emails-imap":
2793
- return fs;
2803
+ return ms;
2794
2804
  case "widget-welcome":
2795
- return Ms;
2805
+ return ks;
2796
2806
  case "widget-user-profil":
2797
- return Ls;
2807
+ return Is;
2798
2808
  case "widget-extension":
2799
- return Ss;
2809
+ return Cs;
2800
2810
  case "widget-color":
2801
- return Os;
2811
+ return Rs;
2802
2812
  }
2803
2813
  }
2804
- function js(t) {
2814
+ function xs(t) {
2805
2815
  return {
2806
2816
  title: "",
2807
2817
  level: 3,
2808
- widget: xs(t)
2818
+ widget: _s(t)
2809
2819
  };
2810
2820
  }
2811
- function xs(t) {
2821
+ function _s(t) {
2812
2822
  return {
2813
2823
  uniqid: Gt(),
2814
2824
  name: t,
2815
- content: _s(t)
2825
+ content: Ps(t)
2816
2826
  };
2817
2827
  }
2818
- function _s(t) {
2828
+ function Ps(t) {
2819
2829
  switch (t) {
2820
2830
  default:
2821
2831
  case "widget-lucca-absence":
2822
2832
  return {
2823
- ...Ts
2833
+ ...bs
2824
2834
  };
2825
2835
  case "widget-article-attachment":
2826
2836
  return {
2827
- ...Jn
2837
+ ...Kn
2828
2838
  };
2829
2839
  case "widget-presence":
2830
2840
  return {
2831
- ...vs
2841
+ ...hs
2832
2842
  };
2833
2843
  case "widget-datasource-table":
2834
2844
  return {
2835
- ...gs
2845
+ ...fs
2836
2846
  };
2837
2847
  case "widget-excel-datasource-table":
2838
2848
  return {
2839
- ...As
2849
+ ...Ss
2840
2850
  };
2841
2851
  case "widget-article-slider":
2842
2852
  return {
2843
- ...ts
2853
+ ...is
2844
2854
  };
2845
2855
  case "widget-article-gallery":
2846
2856
  return {
2847
- ...Qn
2857
+ ...zn
2848
2858
  };
2849
2859
  case "widget-article-button":
2850
2860
  return {
2851
- ...Yn
2861
+ ...Qn
2852
2862
  };
2853
2863
  case "widget-article-title":
2854
2864
  return {
2855
- ...ns
2865
+ ...ss
2856
2866
  };
2857
2867
  case "widget-article-image":
2858
2868
  return {
2859
- ...Zn
2869
+ ...es
2860
2870
  };
2861
2871
  case "widget-article-text":
2862
2872
  return {
2863
- ...as
2873
+ ...rs
2864
2874
  };
2865
2875
  case "widget-check-list":
2866
2876
  return {
2867
- ...ds
2877
+ ...cs
2868
2878
  };
2869
2879
  case "widget-quick-survey":
2870
2880
  return {
@@ -2872,35 +2882,35 @@ function _s(t) {
2872
2882
  };
2873
2883
  case "widget-calendar-calDav":
2874
2884
  return {
2875
- ...os
2885
+ ...ls
2876
2886
  };
2877
2887
  case "widget-contact-cardDav":
2878
2888
  return {
2879
- ...us
2889
+ ...ps
2880
2890
  };
2881
2891
  case "widget-emails-imap":
2882
2892
  return {
2883
- ...ms
2893
+ ...ys
2884
2894
  };
2885
2895
  case "widget-welcome":
2886
2896
  return {
2887
- ...ks
2897
+ ...Ds
2888
2898
  };
2889
2899
  case "widget-user-profil":
2890
2900
  return {
2891
- ...Is
2901
+ ...Os
2892
2902
  };
2893
2903
  case "widget-extension":
2894
2904
  return {
2895
- ...Cs
2905
+ ...Es
2896
2906
  };
2897
2907
  case "widget-color":
2898
2908
  return {
2899
- ...Rs
2909
+ ...Ms
2900
2910
  };
2901
2911
  }
2902
2912
  }
2903
- const Ps = {
2913
+ const Ns = {
2904
2914
  token: void 0,
2905
2915
  ids: {},
2906
2916
  layers: {},
@@ -2918,7 +2928,7 @@ const Ps = {
2918
2928
  flushedWidgets: [],
2919
2929
  rtObjectStack: [],
2920
2930
  widgetContext: {}
2921
- }, Ns = [
2931
+ }, Us = [
2922
2932
  T.ArticleTitle,
2923
2933
  T.ArticleText,
2924
2934
  T.ArticleImage,
@@ -2927,7 +2937,7 @@ const Ps = {
2927
2937
  T.ArticleAttachment
2928
2938
  ], G = C({
2929
2939
  name: "widgets",
2930
- initialState: Ps,
2940
+ initialState: Ns,
2931
2941
  reducers: {
2932
2942
  registerWidget: (t, e) => {
2933
2943
  const { uniqid: i, widget: a, context: r } = e.payload;
@@ -2937,7 +2947,7 @@ const Ps = {
2937
2947
  loading: !1,
2938
2948
  mounted: !1,
2939
2949
  hover: !1,
2940
- empty: Ns.includes(a.widget.name),
2950
+ empty: Us.includes(a.widget.name),
2941
2951
  locked: !1
2942
2952
  }, t.widgetContext[i] = r;
2943
2953
  },
@@ -3083,7 +3093,7 @@ const Ps = {
3083
3093
  t.modal = void 0;
3084
3094
  }
3085
3095
  }
3086
- }), Us = function(t, e) {
3096
+ }), Fs = function(t, e) {
3087
3097
  return [
3088
3098
  {
3089
3099
  namespace: "WIDGET",
@@ -3138,43 +3148,43 @@ const Ps = {
3138
3148
  }
3139
3149
  }
3140
3150
  ];
3141
- }, Fs = (t) => t.widgets.token, Ws = (t) => t.widgets.modal, Bs = (t) => t.widgets.ids, qs = (t) => t.widgets.flushedWidgets, $s = (t, e) => t.widgets.states[e] ?? void 0, Vs = (t, e) => t.widgets.ids[e] ?? void 0, Hs = (t, e) => t.widgets.ids[e]?.level ?? void 0, Gs = (t, e) => t.widgets.widgetObject[e] ?? void 0, Xs = (t, e) => {
3151
+ }, Ws = (t) => t.widgets.token, Bs = (t) => t.widgets.modal, qs = (t) => t.widgets.ids, $s = (t) => t.widgets.flushedWidgets, Vs = (t, e) => t.widgets.states[e] ?? void 0, Hs = (t, e) => t.widgets.ids[e] ?? void 0, Gs = (t, e) => t.widgets.ids[e]?.level ?? void 0, Xs = (t, e) => t.widgets.widgetObject[e] ?? void 0, Js = (t, e) => {
3142
3152
  const i = t.widgets.widgetObject[e];
3143
3153
  if (i && "uri" in i)
3144
3154
  return i.uri;
3145
- }, Js = (t, e) => t.widgets.widgetObjectRights[e] ?? void 0, Ks = (t, e) => t.widgets.widgetContext[e] ?? void 0, Ys = (t, e) => t.widgets.widgetAuthor[e] ?? void 0, Qs = (t, e) => t.widgets.widgetChipCount[e] ?? 0, zs = (t, e) => t.widgets.widgetWrapperStyle[e] ?? {}, Zs = (t, e) => t.widgets.widgetTitleStyle[e] ?? {}, eo = (t, e) => t.widgets.currentEditableWidgetId === e, to = (t, e) => t.widgets.rtObjectStack.filter((i) => i.uniqid === e), ld = (t, e, i) => io.slice.actions.updateWidget({ uniqid: t, content: e, override: i ?? !1 }), io = {
3146
- const: Gn,
3147
- factory: js,
3148
- definition: Ds,
3155
+ }, Ks = (t, e) => t.widgets.widgetObjectRights[e] ?? void 0, Ys = (t, e) => t.widgets.widgetContext[e] ?? void 0, Qs = (t, e) => t.widgets.widgetAuthor[e] ?? void 0, zs = (t, e) => t.widgets.widgetChipCount[e] ?? 0, Zs = (t, e) => t.widgets.widgetWrapperStyle[e] ?? {}, eo = (t, e) => t.widgets.widgetTitleStyle[e] ?? {}, to = (t, e) => t.widgets.currentEditableWidgetId === e, io = (t, e) => t.widgets.rtObjectStack.filter((i) => i.uniqid === e), dd = (t, e, i) => ao.slice.actions.updateWidget({ uniqid: t, content: e, override: i ?? !1 }), ao = {
3156
+ const: Xn,
3157
+ factory: xs,
3158
+ definition: js,
3149
3159
  utils: {
3150
3160
  uniqid: Gt
3151
3161
  },
3152
3162
  slice: G,
3153
- getWidgetRTHandlers: Us,
3163
+ getWidgetRTHandlers: Fs,
3154
3164
  selectors: {
3155
- isActive: eo,
3156
- selectToken: Fs,
3157
- selectWidgets: Bs,
3158
- selectWidget: Vs,
3159
- selectWidgetState: $s,
3160
- selectModal: Ws,
3161
- selectWidgetObject: Gs,
3162
- selectWidgetObjectUri: Xs,
3163
- selectWidgetAuthor: Ys,
3164
- selectWidgetObjectRights: Js,
3165
- selectAllWidgetRTObject: to,
3166
- selectFlushedWidgets: qs,
3167
- selectWidgetContext: Ks,
3168
- selectWidgetLevel: Hs,
3169
- selectWidgetWrapperStyle: zs,
3170
- selectWidgetTitleStyle: Zs,
3171
- selectWidgetChipCount: Qs
3172
- }
3173
- }, ao = {
3165
+ isActive: to,
3166
+ selectToken: Ws,
3167
+ selectWidgets: qs,
3168
+ selectWidget: Hs,
3169
+ selectWidgetState: Vs,
3170
+ selectModal: Bs,
3171
+ selectWidgetObject: Xs,
3172
+ selectWidgetObjectUri: Js,
3173
+ selectWidgetAuthor: Qs,
3174
+ selectWidgetObjectRights: Ks,
3175
+ selectAllWidgetRTObject: io,
3176
+ selectFlushedWidgets: $s,
3177
+ selectWidgetContext: Ys,
3178
+ selectWidgetLevel: Gs,
3179
+ selectWidgetWrapperStyle: Zs,
3180
+ selectWidgetTitleStyle: eo,
3181
+ selectWidgetChipCount: zs
3182
+ }
3183
+ }, ro = {
3174
3184
  editors: []
3175
- }, ro = C({
3185
+ }, no = C({
3176
3186
  name: "editors",
3177
- initialState: ao,
3187
+ initialState: ro,
3178
3188
  reducers: {
3179
3189
  registerEditor: (t, e) => {
3180
3190
  const { uniqid: i, name: a, onSave: r, mode: n } = e.payload, s = r ? {
@@ -3224,11 +3234,11 @@ const Ps = {
3224
3234
  window.dispatchEvent(new Event("WidgetEditorFlushAll")), t.editors.length = 0;
3225
3235
  }
3226
3236
  }
3227
- }), no = (t) => t.editors.editors, so = (t, e) => t.editors.editors.find((i) => i.uniqid === e), dd = {
3228
- slice: ro,
3237
+ }), so = (t) => t.editors.editors, oo = (t, e) => t.editors.editors.find((i) => i.uniqid === e), cd = {
3238
+ slice: no,
3229
3239
  selectors: {
3230
- selectEditors: no,
3231
- selectEditor: so
3240
+ selectEditors: so,
3241
+ selectEditor: oo
3232
3242
  }
3233
3243
  }, P = St({
3234
3244
  selectId: (t) => `${t.targetId}-${t.type}`
@@ -3242,10 +3252,10 @@ const Ps = {
3242
3252
  clear: P.removeAll,
3243
3253
  updateOne: P.updateOne
3244
3254
  }
3245
- }), oo = P.getSelectors((t) => t.entities.socialActions), cd = {
3255
+ }), lo = P.getSelectors((t) => t.entities.socialActions), ud = {
3246
3256
  slice: Si,
3247
3257
  actions: { ...Si.actions },
3248
- selectors: oo
3258
+ selectors: lo
3249
3259
  }, mt = {
3250
3260
  ALL: "1",
3251
3261
  CUSTOM: "0"
@@ -3290,7 +3300,7 @@ const Xt = ["create", "popup", "edit", "filter", "list", "view"], o = {
3290
3300
  SENDALERTTOSUBSCRIBERS: "SENDALERTTOSUBSCRIBERS",
3291
3301
  RECEIVEACOPY: "RECEIVEACOPY",
3292
3302
  CREATIONDATE: "CREATIONDATE"
3293
- }, lo = {
3303
+ }, co = {
3294
3304
  TITLE: "title",
3295
3305
  USER: "user",
3296
3306
  PUBLISHTO: "publishTo",
@@ -3305,7 +3315,7 @@ const Xt = ["create", "popup", "edit", "filter", "list", "view"], o = {
3305
3315
  OPTIONS_EDITOR: "options_editor",
3306
3316
  TAXONOMY: "taxonomy",
3307
3317
  CONTENTTYPE: "contenttype"
3308
- }, co = [o.DESCRIPTION, o.IMAGE], ud = co, Jt = /* @__PURE__ */ new Map();
3318
+ }, uo = [o.DESCRIPTION, o.IMAGE], pd = uo, Jt = /* @__PURE__ */ new Map();
3309
3319
  Jt.set(o.IMAGE, ["list", "filter", "view"]);
3310
3320
  Jt.set(o.CODEHTML, ["list", "filter", "view"]);
3311
3321
  const q = {
@@ -3337,47 +3347,47 @@ const q = {
3337
3347
  fixed: [f.TITLE],
3338
3348
  optional: []
3339
3349
  }
3340
- }, uo = [
3350
+ }, po = [
3341
3351
  f.TITLE,
3342
3352
  f.USER,
3343
3353
  f.CREATIONDATE,
3344
3354
  o.DESCRIPTION
3345
- ], Vi = [o.DESCRIPTION], Hi = Vi, pd = [
3355
+ ], Hi = [o.DESCRIPTION], Gi = Hi, gd = [
3346
3356
  f.TITLE,
3347
3357
  f.PUBLISHTO,
3348
3358
  f.SENDALERTTOSUBSCRIBERS,
3349
3359
  f.RECEIVEACOPY,
3350
3360
  f.USER,
3351
3361
  f.CREATIONDATE
3352
- ], po = [
3362
+ ], go = [
3353
3363
  f.USER,
3354
3364
  f.TITLE
3355
- ], go = [o.CODEHTML], fo = po.concat(go).concat(Vi);
3356
- var mo = /* @__PURE__ */ ((t) => (t.Attr = "attr", t.PublishTo = "publishTo", t))(mo || {}), yo = /* @__PURE__ */ ((t) => (t.Empty = "", t.FieldTagDescription = "Field_Tag_Description", t.FieldTitleDescription = "Field_Title_Description", t.WWWDescCOM = "www.desc.com", t))(yo || {}), L = [];
3365
+ ], fo = [o.CODEHTML], mo = go.concat(fo).concat(Hi);
3366
+ var yo = /* @__PURE__ */ ((t) => (t.Attr = "attr", t.PublishTo = "publishTo", t))(yo || {}), Ao = /* @__PURE__ */ ((t) => (t.Empty = "", t.FieldTagDescription = "Field_Tag_Description", t.FieldTitleDescription = "Field_Title_Description", t.WWWDescCOM = "www.desc.com", t))(Ao || {}), w = [];
3357
3367
  for (var vt = 0; vt < 256; ++vt)
3358
- L.push((vt + 256).toString(16).slice(1));
3359
- function Ao(t, e = 0) {
3360
- return (L[t[e + 0]] + L[t[e + 1]] + L[t[e + 2]] + L[t[e + 3]] + "-" + L[t[e + 4]] + L[t[e + 5]] + "-" + L[t[e + 6]] + L[t[e + 7]] + "-" + L[t[e + 8]] + L[t[e + 9]] + "-" + L[t[e + 10]] + L[t[e + 11]] + L[t[e + 12]] + L[t[e + 13]] + L[t[e + 14]] + L[t[e + 15]]).toLowerCase();
3368
+ w.push((vt + 256).toString(16).slice(1));
3369
+ function So(t, e = 0) {
3370
+ return (w[t[e + 0]] + w[t[e + 1]] + w[t[e + 2]] + w[t[e + 3]] + "-" + w[t[e + 4]] + w[t[e + 5]] + "-" + w[t[e + 6]] + w[t[e + 7]] + "-" + w[t[e + 8]] + w[t[e + 9]] + "-" + w[t[e + 10]] + w[t[e + 11]] + w[t[e + 12]] + w[t[e + 13]] + w[t[e + 14]] + w[t[e + 15]]).toLowerCase();
3361
3371
  }
3362
- var ne, So = new Uint8Array(16);
3363
- function Co() {
3372
+ var ne, Co = new Uint8Array(16);
3373
+ function Eo() {
3364
3374
  if (!ne && (ne = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ne))
3365
3375
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
3366
- return ne(So);
3376
+ return ne(Co);
3367
3377
  }
3368
- var Eo = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
3378
+ var To = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
3369
3379
  const Ci = {
3370
- randomUUID: Eo
3380
+ randomUUID: To
3371
3381
  };
3372
3382
  function D(t, e, i) {
3373
3383
  if (Ci.randomUUID && !t)
3374
3384
  return Ci.randomUUID();
3375
3385
  t = t || {};
3376
- var a = t.random || (t.rng || Co)();
3377
- return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Ao(a);
3386
+ var a = t.random || (t.rng || Eo)();
3387
+ return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, So(a);
3378
3388
  }
3379
3389
  var B = /* @__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))(B || {});
3380
- function Gi(t) {
3390
+ function Xi(t) {
3381
3391
  const e = t, i = e.manifest, a = n(), r = {
3382
3392
  idApp: e.idApp,
3383
3393
  status: e.status,
@@ -3528,11 +3538,11 @@ function Gi(t) {
3528
3538
  isOptional: !0
3529
3539
  };
3530
3540
  else {
3531
- const w = m(b);
3532
- w && (S[w.id] = {
3533
- type: w.type,
3541
+ const L = m(b);
3542
+ L && (S[L.id] = {
3543
+ type: L.type,
3534
3544
  ...h,
3535
- properties: w.properties ?? []
3545
+ properties: L.properties ?? []
3536
3546
  });
3537
3547
  }
3538
3548
  }), S;
@@ -3549,7 +3559,7 @@ function ee(t, e = !0) {
3549
3559
  return {
3550
3560
  id: D(),
3551
3561
  type: t,
3552
- properties: vo(t),
3562
+ properties: ho(t),
3553
3563
  mandatory: !1,
3554
3564
  views: {
3555
3565
  create: e,
@@ -3566,15 +3576,15 @@ function ee(t, e = !0) {
3566
3576
  isLockedValue: !1
3567
3577
  };
3568
3578
  }
3569
- const To = {
3579
+ const bo = {
3570
3580
  type: "taxonomyOpen",
3571
3581
  id: 1,
3572
3582
  title: "Mots-clés"
3573
- }, bo = {
3583
+ }, vo = {
3574
3584
  type: "mpArticle",
3575
3585
  label: "Article"
3576
3586
  };
3577
- function vo(t) {
3587
+ function ho(t) {
3578
3588
  switch (t) {
3579
3589
  case o.TEXT:
3580
3590
  case o.DESCRIPTION:
@@ -3634,7 +3644,7 @@ function vo(t) {
3634
3644
  { propertyType: E.DESCRIPTION, value: "" },
3635
3645
  {
3636
3646
  propertyType: E.TAXONOMY,
3637
- value: { ...To }
3647
+ value: { ...bo }
3638
3648
  }
3639
3649
  ];
3640
3650
  case o.CONTENTLINK:
@@ -3643,7 +3653,7 @@ function vo(t) {
3643
3653
  { propertyType: E.DESCRIPTION, value: "" },
3644
3654
  {
3645
3655
  propertyType: E.CONTENTTYPE,
3646
- value: { ...bo }
3656
+ value: { ...vo }
3647
3657
  }
3648
3658
  ];
3649
3659
  default:
@@ -3658,7 +3668,7 @@ function I(t, e) {
3658
3668
  };
3659
3669
  return i.properties[0].value = e.label, i.properties[1].value = e.description, i;
3660
3670
  }
3661
- function Xi(t) {
3671
+ function Ji(t) {
3662
3672
  const e = [];
3663
3673
  return Object.keys(t).forEach((i) => {
3664
3674
  e.push({
@@ -3667,7 +3677,7 @@ function Xi(t) {
3667
3677
  });
3668
3678
  }), e;
3669
3679
  }
3670
- function ho(t) {
3680
+ function Lo(t) {
3671
3681
  const e = {
3672
3682
  ...ee(o.ADDFILEATTACHMENT, !1),
3673
3683
  id: t.name,
@@ -3682,24 +3692,24 @@ function wo(t) {
3682
3692
  }, i = t.properties.code;
3683
3693
  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;
3684
3694
  }
3685
- function Lo() {
3695
+ function Io() {
3686
3696
  return ee(o.IMAGE, !1);
3687
3697
  }
3688
- function Io(t) {
3698
+ function Oo(t) {
3689
3699
  const e = I(o.NUMBER, t);
3690
3700
  return e.properties[2].value = t.widget.params?.step === "0.01", e;
3691
3701
  }
3692
- function Oo(t) {
3702
+ function Ro(t) {
3693
3703
  const e = I(o.TAGS, t);
3694
3704
  return e.properties[2].value.id = +(t.widget.params?.idTaxonomy ?? 1), e;
3695
3705
  }
3696
- function Ro(t) {
3706
+ function Mo(t) {
3697
3707
  const e = I(o.SELECT, t), i = t.widget.params?.defaultValue ? {
3698
3708
  title: t.widget.options[t.widget.params?.defaultValue],
3699
3709
  value: t.widget.params?.defaultValue
3700
3710
  } : void 0, a = {
3701
3711
  // TODO : better typing
3702
- propertyOptions: Xi(t.widget.options),
3712
+ propertyOptions: Ji(t.widget.options),
3703
3713
  canSelectMultiple: t.widget.multiple === "1",
3704
3714
  userCanModifiyByComment: t.widget.params?.explain === "1",
3705
3715
  defaultSelectOption: !!t.widget.params?.defaultValue,
@@ -3707,57 +3717,57 @@ function Ro(t) {
3707
3717
  };
3708
3718
  return e.properties[2].value = a, e;
3709
3719
  }
3710
- function Ji(t) {
3720
+ function Ki(t) {
3711
3721
  const e = I(o.RADIO, t), i = {
3712
- propertyOptions: Xi(t.widget.options)
3722
+ propertyOptions: Ji(t.widget.options)
3713
3723
  };
3714
3724
  return e.properties[2].value = i, e;
3715
3725
  }
3716
- function Mo(t) {
3717
- const e = Ji(t);
3726
+ function ko(t) {
3727
+ const e = Ki(t);
3718
3728
  return e.type = o.CHECKBOX, e;
3719
3729
  }
3720
- function ko(t, e) {
3730
+ function Do(t, e) {
3721
3731
  const i = I(o.CONTENTLINK, t);
3722
3732
  i.properties[2].value.type = t.widget.params.types ?? "mpArticle";
3723
- const a = e.entities === void 0 ? void 0 : { entities: e.entities }, r = a ? ln.selectors.selectById(a, i.properties[2].value.type) : void 0;
3733
+ const a = e.entities === void 0 ? void 0 : { entities: e.entities }, r = a ? dn.selectors.selectById(a, i.properties[2].value.type) : void 0;
3724
3734
  return i.properties[2].value.label = r?.label ?? "Article", i;
3725
3735
  }
3726
- function Do(t) {
3736
+ function jo(t) {
3727
3737
  return I(o.TEXT, t);
3728
3738
  }
3729
- function jo(t) {
3739
+ function xo(t) {
3730
3740
  return I(o.DESCRIPTION, t);
3731
3741
  }
3732
- function xo(t) {
3742
+ function _o(t) {
3733
3743
  return I(o.TEXTAREAHTML, t);
3734
3744
  }
3735
- function _o(t) {
3745
+ function Po(t) {
3736
3746
  return I(o.DATE, t);
3737
3747
  }
3738
- function Po(t) {
3748
+ function No(t) {
3739
3749
  return I(o.DATETIME, t);
3740
3750
  }
3741
- function No(t) {
3751
+ function Uo(t) {
3742
3752
  return I(o.URL, t);
3743
3753
  }
3744
- function Uo(t) {
3754
+ function Fo(t) {
3745
3755
  return I(o.EMAIL, t);
3746
3756
  }
3747
- function Fo(t) {
3757
+ function Wo(t) {
3748
3758
  return I(o.TOGGLE, t);
3749
3759
  }
3750
- function Wo(t) {
3760
+ function Bo(t) {
3751
3761
  return I(o.USERLINK, t);
3752
3762
  }
3753
- function Bo(t) {
3763
+ function qo(t) {
3754
3764
  return I(o.TEXTAREA, t);
3755
3765
  }
3756
- function qo(t) {
3766
+ function $o(t) {
3757
3767
  const { manifest: e, views: i, audience: a, installFor: r } = t;
3758
3768
  return `<?xml version='1.0' encoding='utf-8'?>
3759
3769
  <Application>
3760
- ${$o(e, i, a, r, t.idApp)}
3770
+ ${Vo(e, i, a, r, t.idApp)}
3761
3771
  <Types>
3762
3772
  <objecttype
3763
3773
  label="${e.typeLabel}"
@@ -3773,14 +3783,14 @@ function qo(t) {
3773
3783
  searchtablabel="${e.typeLabel}"
3774
3784
  buttonlabel="${e.typeLabel}"
3775
3785
  extends="article">
3776
- ${Xo(t.fields)}
3777
3786
  ${Jo(t.fields)}
3787
+ ${Ko(t.fields)}
3778
3788
  </objecttype>
3779
- ${el(t)}
3789
+ ${tl(t)}
3780
3790
  </Types>
3781
3791
  </Application>`;
3782
3792
  }
3783
- function $o(t, e, i, a, r) {
3793
+ function Vo(t, e, i, a, r) {
3784
3794
  return `<Manifest>
3785
3795
  <ShowImport>true</ShowImport>
3786
3796
  <AppShortName>${r}</AppShortName>
@@ -3796,13 +3806,13 @@ function $o(t, e, i, a, r) {
3796
3806
  <Editor>Jamespot</Editor>
3797
3807
  <EditorUrl>https://www.fr.jamespot.com/</EditorUrl>
3798
3808
  <Type>${r}</Type>
3799
- ${Vo(t.display, e.list)}
3800
- ${Ho(e.filter)}
3801
- ${Go(i, a)}
3809
+ ${Ho(t.display, e.list)}
3810
+ ${Go(e.filter)}
3811
+ ${Xo(i, a)}
3802
3812
  <Order>1</Order>
3803
3813
  </Manifest>`;
3804
3814
  }
3805
- function Vo(t, e) {
3815
+ function Ho(t, e) {
3806
3816
  let i = "<AppView>solr</AppView>";
3807
3817
  if (t === Z.FLUX) return i;
3808
3818
  const a = [];
@@ -3810,7 +3820,7 @@ function Vo(t, e) {
3810
3820
  n.isUsed && ([o.IMAGE].includes(n.type) || a.push(Kt(n, r)));
3811
3821
  }), i += `<AppColumns>${a.join()}</AppColumns>`, i;
3812
3822
  }
3813
- function Ho(t) {
3823
+ function Go(t) {
3814
3824
  const e = [];
3815
3825
  return Object.entries(t).sort((i, a) => i[1].pos - a[1].pos).forEach(([i, a]) => {
3816
3826
  if (!a.isUsed)
@@ -3818,25 +3828,25 @@ function Ho(t) {
3818
3828
  [f.TITLE, o.IMAGE].includes(a.type) || e.push(Kt(a, i));
3819
3829
  }), `<AttrExposed>${e.join()}</AttrExposed>`;
3820
3830
  }
3821
- function Ki(t) {
3831
+ function Yi(t) {
3822
3832
  return t === f.TITLE ? "title" : t === f.SENDALERTTOSUBSCRIBERS ? "sendAlert" : t === f.RECEIVEACOPY ? "alertAuthor" : t === f.PUBLISHTO ? "publishTo" : t === f.USER ? "idUser" : t === f.CREATIONDATE ? "dateCreation" : t === o.DESCRIPTION ? "description" : t;
3823
3833
  }
3824
3834
  function Kt(t, e) {
3825
- return uo.includes(t.type) ? Ki(t.type) : Yt(e).toLowerCase();
3835
+ return po.includes(t.type) ? Yi(t.type) : Yt(e).toLowerCase();
3826
3836
  }
3827
- function Go(t, e) {
3837
+ function Xo(t, e) {
3828
3838
  return t === mt.ALL ? "<checkAccess>false</checkAccess>" : e.length > 0 ? `<checkAccess>true</checkAccess>
3829
3839
  <accessRightList>${e.map((i) => i.uri).join()}</accessRightList>` : "";
3830
3840
  }
3831
- function Xo(t) {
3832
- const e = t?.filter((i) => Hi.includes(i.type));
3841
+ function Jo(t) {
3842
+ const e = t?.filter((i) => Gi.includes(i.type));
3833
3843
  return e.length === 0 ? "" : `<primaryFields>${e.map((i) => Ft(i)).join("")}</primaryFields>`;
3834
3844
  }
3835
- function Jo(t) {
3836
- const i = t?.filter((n) => !Hi.includes(n.type))?.filter((n) => n.type !== o.IMAGE);
3845
+ function Ko(t) {
3846
+ const i = t?.filter((n) => !Gi.includes(n.type))?.filter((n) => n.type !== o.IMAGE);
3837
3847
  if (i.length === 0) return "";
3838
3848
  const a = i.filter(
3839
- (n) => n.type !== o.TAGS && !fo.includes(n.type)
3849
+ (n) => n.type !== o.TAGS && !mo.includes(n.type)
3840
3850
  ), r = i.filter((n) => n.type === o.TAGS);
3841
3851
  return `<custom>
3842
3852
  ${a.length > 0 ? `<articlemstable>
@@ -3848,13 +3858,13 @@ function Jo(t) {
3848
3858
  }
3849
3859
  function Ft(t) {
3850
3860
  return `<field
3851
- type="${zo(t.type)}"
3861
+ type="${Zo(t.type)}"
3852
3862
  name="${Kt(t, t.id)}"
3853
- sqlname="${Yo(t.type, t.id)}"
3863
+ sqlname="${Qo(t.type, t.id)}"
3854
3864
  ${t.properties && Ei(t.properties, E.LABEL)}
3855
3865
  ${t.properties && Ei(t.properties, E.DESCRIPTION)}
3856
3866
  mandatory="${t.type === o.TOGGLE ? "false" : t.mandatory}"
3857
- solr.type="${Qo(t.type)}"
3867
+ solr.type="${zo(t.type)}"
3858
3868
  solr.used="true"
3859
3869
  solr.indexed="true"
3860
3870
  solr.stored="true"
@@ -3863,10 +3873,10 @@ function Ft(t) {
3863
3873
  teaser="true"
3864
3874
  display="true"
3865
3875
  >
3866
- ${Ko(t.type, t.properties)}
3876
+ ${Yo(t.type, t.properties)}
3867
3877
  </field>`;
3868
3878
  }
3869
- function Ko(t, e) {
3879
+ function Yo(t, e) {
3870
3880
  switch (t) {
3871
3881
  case o.DESCRIPTION:
3872
3882
  return '<widget form="textarea"><params><param key="class" value="mceEditor"></param><param key="mention" value="1"></param></params></widget>';
@@ -3990,7 +4000,7 @@ function Ei(t, e) {
3990
4000
  }
3991
4001
  return "";
3992
4002
  }
3993
- function Yo(t, e) {
4003
+ function Qo(t, e) {
3994
4004
  switch (t) {
3995
4005
  case o.DESCRIPTION:
3996
4006
  return "Description";
@@ -4000,7 +4010,7 @@ function Yo(t, e) {
4000
4010
  return Yt(e);
4001
4011
  }
4002
4012
  }
4003
- function Qo(t) {
4013
+ function zo(t) {
4004
4014
  switch (t) {
4005
4015
  case o.DESCRIPTION:
4006
4016
  case o.TEXT:
@@ -4028,7 +4038,7 @@ function Qo(t) {
4028
4038
  return "";
4029
4039
  }
4030
4040
  }
4031
- function zo(t) {
4041
+ function Zo(t) {
4032
4042
  switch (t) {
4033
4043
  default:
4034
4044
  case o.DESCRIPTION:
@@ -4061,10 +4071,10 @@ const Yt = (t) => {
4061
4071
  let e = "";
4062
4072
  for (let i = 0; i < t.length; i++) {
4063
4073
  const a = t.charAt(i);
4064
- a >= "0" && a <= "9" ? e += Zo(Number(a)) : a >= "a" && a <= "z" && (e += a);
4074
+ a >= "0" && a <= "9" ? e += el(Number(a)) : a >= "a" && a <= "z" && (e += a);
4065
4075
  }
4066
4076
  return e;
4067
- }, Zo = (t) => {
4077
+ }, el = (t) => {
4068
4078
  let e = "", i;
4069
4079
  for (; t > 0; )
4070
4080
  i = (t - 1) % 26, e = String.fromCharCode(97 + i) + e, t = (t - i) / 26 | 0;
@@ -4075,18 +4085,18 @@ const Yt = (t) => {
4075
4085
  edit: "edit",
4076
4086
  view: "display"
4077
4087
  };
4078
- function el(t) {
4088
+ function tl(t) {
4079
4089
  let e = "";
4080
4090
  return Object.entries(t.views).forEach(([i, a]) => {
4081
4091
  if (Object.prototype.hasOwnProperty.call(Ti, i)) {
4082
4092
  const r = Object.entries(a).filter((n) => n[1].isUsed && (i !== "view" || n[0] !== "title")).sort((n, s) => n[1].pos - s[1].pos);
4083
4093
  e += `<display view="${Ti[i]}${i === "view" && t.manifest.displayContentLegacyTable ? "Disabled" : ""}" mode="${i === "view" ? "view" : "form"}">
4084
- ${r.map(([n, s]) => il(n, s)).join("")}
4094
+ ${r.map(([n, s]) => al(n, s)).join("")}
4085
4095
  </display>`;
4086
4096
  }
4087
4097
  }), e.length > 0 && (e = `<displays type="${t.idApp}">${e}</displays>`), e;
4088
4098
  }
4089
- function tl(t, e) {
4099
+ function il(t, e) {
4090
4100
  switch (e.type) {
4091
4101
  case f.TITLE:
4092
4102
  return "title";
@@ -4106,9 +4116,9 @@ function tl(t, e) {
4106
4116
  return Yt(t);
4107
4117
  }
4108
4118
  }
4109
- function il(t, e) {
4119
+ function al(t, e) {
4110
4120
  let i = "";
4111
- const a = tl(t, e);
4121
+ const a = il(t, e);
4112
4122
  if (e.isLockedValue) {
4113
4123
  const n = {
4114
4124
  ref: a,
@@ -4177,7 +4187,7 @@ function il(t, e) {
4177
4187
  function _(t) {
4178
4188
  return t < 10 ? "0" + t : t;
4179
4189
  }
4180
- const Yi = {
4190
+ const Qi = {
4181
4191
  "create-popup": "popup",
4182
4192
  create: "create",
4183
4193
  edit: "edit",
@@ -4185,8 +4195,8 @@ const Yi = {
4185
4195
  displayDisabled: "view"
4186
4196
  // appInstalled.columns => 'list' view,
4187
4197
  // appInstalled.attrExposed => 'filter' view,
4188
- }, bi = ["title", "alertAuthor", "sendAlert"], al = ["edito"];
4189
- function Qi(t, e, i) {
4198
+ }, bi = ["title", "alertAuthor", "sendAlert"], rl = ["edito"];
4199
+ function zi(t, e, i) {
4190
4200
  return Object.assign(
4191
4201
  {},
4192
4202
  ...Xt.map((a) => {
@@ -4206,12 +4216,12 @@ function Qi(t, e, i) {
4206
4216
  ));
4207
4217
  });
4208
4218
  const l = new Set(s.concat(n)), d = {
4209
- [f.CREATIONDATE]: () => ra(!1),
4219
+ [f.CREATIONDATE]: () => na(!1),
4210
4220
  [f.TITLE]: () => yt({ fixedValue: void 0 }),
4211
- [f.USER]: () => aa(!1),
4212
- [f.RECEIVEACOPY]: () => ea({ fixedValue: void 0 }),
4213
- [f.SENDALERTTOSUBSCRIBERS]: () => ta({ fixedValue: void 0 }),
4214
- [f.PUBLISHTO]: () => ia({ fixedValue: void 0 })
4221
+ [f.USER]: () => ra(!1),
4222
+ [f.RECEIVEACOPY]: () => ta({ fixedValue: void 0 }),
4223
+ [f.SENDALERTTOSUBSCRIBERS]: () => ia({ fixedValue: void 0 }),
4224
+ [f.PUBLISHTO]: () => aa({ fixedValue: void 0 })
4215
4225
  };
4216
4226
  l.forEach((y) => {
4217
4227
  const m = d[y];
@@ -4228,38 +4238,38 @@ function Qi(t, e, i) {
4228
4238
  return;
4229
4239
  let h;
4230
4240
  if (b === o.CODEHTML) {
4231
- const w = y.properties?.find(
4241
+ const L = y.properties?.find(
4232
4242
  (M) => M.propertyType === E.RICHTEXT
4233
4243
  );
4234
- w?.value && (h = w?.value);
4244
+ L?.value && (h = L?.value);
4235
4245
  }
4236
4246
  if (b === o.SELECT) {
4237
- const w = y.properties?.find(
4247
+ const L = y.properties?.find(
4238
4248
  (M) => M.propertyType === E.OPTIONS_EDITOR
4239
4249
  );
4240
4250
  if (S) {
4241
4251
  const M = t[a][y.id], te = M.properties?.find(
4242
- (ca) => ca.propertyType === E.OPTIONS_EDITOR
4243
- ), la = !!w?.value?.canSelectMultiple, da = !!te?.value?.canSelectMultiple;
4244
- la === da && (h = M.value);
4252
+ (ua) => ua.propertyType === E.OPTIONS_EDITOR
4253
+ ), da = !!L?.value?.canSelectMultiple, ca = !!te?.value?.canSelectMultiple;
4254
+ da === ca && (h = M.value);
4245
4255
  } else {
4246
- const te = !!w?.isOptionsEditorEnhanced && w?.value.defaultSelectOption ? w?.value.defaultSelectOptionValue : "";
4256
+ const te = !!L?.isOptionsEditorEnhanced && L?.value.defaultSelectOption ? L?.value.defaultSelectOptionValue : "";
4247
4257
  te && (h = te);
4248
4258
  }
4249
4259
  }
4250
4260
  if (S) {
4251
- const w = t[a][y.id];
4261
+ const L = t[a][y.id];
4252
4262
  r[y.id] = {
4253
- ...w,
4254
- properties: y.properties ?? w.properties ?? [],
4263
+ ...L,
4264
+ properties: y.properties ?? L.properties ?? [],
4255
4265
  ...h !== void 0 && { value: h },
4256
4266
  isUsed: c,
4257
- pos: e?.[a] ? m : w.pos,
4258
- isLockedValue: (h !== void 0 || w.value !== void 0) && w.isLockedValue
4267
+ pos: e?.[a] ? m : L.pos,
4268
+ isLockedValue: (h !== void 0 || L.value !== void 0) && L.isLockedValue
4259
4269
  };
4260
4270
  } else {
4261
4271
  g.push({ id: y.id, idx: m });
4262
- const w = Object.values(t[a]).filter(
4272
+ const L = Object.values(t[a]).filter(
4263
4273
  (M) => !M.isFixed && !M.isOptional
4264
4274
  ).length;
4265
4275
  r[y.id] = {
@@ -4270,14 +4280,14 @@ function Qi(t, e, i) {
4270
4280
  isLockedValue: !1,
4271
4281
  isFixed: !1,
4272
4282
  value: h ?? null,
4273
- pos: e?.[a] ? m : w + m
4283
+ pos: e?.[a] ? m : L + m
4274
4284
  };
4275
4285
  }
4276
4286
  }), e?.[a] || g.forEach((y) => {
4277
4287
  const m = r[y.id];
4278
4288
  m.pos = y.idx + 1, Object.keys(r).forEach((c) => {
4279
4289
  const S = r[c];
4280
- S && !Object.values(lo).includes(c) && c !== y.id && S.pos >= m.pos && S.pos++;
4290
+ S && !Object.values(co).includes(c) && c !== y.id && S.pos >= m.pos && S.pos++;
4281
4291
  });
4282
4292
  }), {
4283
4293
  [a]: r
@@ -4285,7 +4295,7 @@ function Qi(t, e, i) {
4285
4295
  })
4286
4296
  );
4287
4297
  }
4288
- function rl(t) {
4298
+ function nl(t) {
4289
4299
  return t.map((e) => ({
4290
4300
  id: `${e.type}/${e.id}`,
4291
4301
  uri: `${e.type}/${e.id}`,
@@ -4302,14 +4312,14 @@ function rl(t) {
4302
4312
  _url: e._url
4303
4313
  }));
4304
4314
  }
4305
- function nl(t, e, i) {
4315
+ function sl(t, e, i) {
4306
4316
  const a = t.typeModel.tables, r = t.typeModel.displays;
4307
4317
  if (!r)
4308
4318
  return;
4309
4319
  const n = /* @__PURE__ */ new Map();
4310
4320
  Object.entries(r).forEach((s) => {
4311
4321
  const [l, d] = s;
4312
- Object.keys(Yi).includes(l) && sl(
4322
+ Object.keys(Qi).includes(l) && ol(
4313
4323
  e,
4314
4324
  n,
4315
4325
  l,
@@ -4317,19 +4327,19 @@ function nl(t, e, i) {
4317
4327
  a,
4318
4328
  i
4319
4329
  );
4320
- }), ol(e, n, t.columns, a, i), ll(e, n, t.attrExposed, a, i);
4330
+ }), ll(e, n, t.columns, a, i), dl(e, n, t.attrExposed, a, i);
4321
4331
  }
4322
- function sl(t, e, i, a, r, n) {
4323
- const s = Yi[i];
4332
+ function ol(t, e, i, a, r, n) {
4333
+ const s = Qi[i];
4324
4334
  if (t.views[s] = {}, s === "view") {
4325
4335
  const [l, d] = yt({ fixedValue: void 0 });
4326
4336
  t.views[s][l] = d;
4327
4337
  }
4328
4338
  a.composants.forEach((l, d) => {
4329
4339
  let g;
4330
- if (l.name && al.includes(l.name))
4340
+ if (l.name && rl.includes(l.name))
4331
4341
  return;
4332
- const [y, m] = ul(t, e, l, r, n);
4342
+ const [y, m] = pl(t, e, l, r, n);
4333
4343
  if (y === -1 && m)
4334
4344
  switch (m.ref) {
4335
4345
  case "title": {
@@ -4340,17 +4350,17 @@ function sl(t, e, i, a, r, n) {
4340
4350
  break;
4341
4351
  }
4342
4352
  case "alertAuthor": {
4343
- const [c, S] = ea(m);
4353
+ const [c, S] = ta(m);
4344
4354
  t.views[s][c] = S;
4345
4355
  break;
4346
4356
  }
4347
4357
  case "sendAlert": {
4348
- const [c, S] = ta(m);
4358
+ const [c, S] = ia(m);
4349
4359
  t.views[s][c] = S;
4350
4360
  break;
4351
4361
  }
4352
4362
  case "publishTo": {
4353
- const [c, S] = ia(m);
4363
+ const [c, S] = aa(m);
4354
4364
  t.views[s][c] = S;
4355
4365
  break;
4356
4366
  }
@@ -4365,21 +4375,21 @@ function sl(t, e, i, a, r, n) {
4365
4375
  throw new Error(
4366
4376
  `error converting installed app to V2: created field not found in fields array: ${y}, ${m}`
4367
4377
  );
4368
- g.views[s] = !0, Zi(s, g, t, d, m);
4378
+ g.views[s] = !0, ea(s, g, t, d, m);
4369
4379
  }
4370
4380
  });
4371
4381
  }
4372
- function ol(t, e, i, a, r) {
4382
+ function ll(t, e, i, a, r) {
4373
4383
  i && Object.keys(i).forEach((n, s) => {
4374
- zi(t, e, a, "list", n, s, r);
4384
+ Zi(t, e, a, "list", n, s, r);
4375
4385
  });
4376
4386
  }
4377
- function ll(t, e, i, a, r) {
4387
+ function dl(t, e, i, a, r) {
4378
4388
  i.forEach((n, s) => {
4379
- zi(t, e, a, "filter", n, s, r);
4389
+ Zi(t, e, a, "filter", n, s, r);
4380
4390
  });
4381
4391
  }
4382
- function zi(t, e, i, a, r, n, s) {
4392
+ function Zi(t, e, i, a, r, n, s) {
4383
4393
  switch (r) {
4384
4394
  case "title": {
4385
4395
  const [l, d] = yt({ fixedValue: void 0 });
@@ -4388,35 +4398,35 @@ function zi(t, e, i, a, r, n, s) {
4388
4398
  }
4389
4399
  case "iduser":
4390
4400
  case "idUser": {
4391
- const [l, d] = aa();
4401
+ const [l, d] = ra();
4392
4402
  t.views[a][l] = d;
4393
4403
  break;
4394
4404
  }
4395
4405
  case "datecreation":
4396
4406
  case "dateCreation": {
4397
- const [l, d] = ra();
4407
+ const [l, d] = na();
4398
4408
  t.views[a][l] = d;
4399
4409
  break;
4400
4410
  }
4401
4411
  default:
4402
- dl(t, e, i, a, r, n, s);
4412
+ cl(t, e, i, a, r, n, s);
4403
4413
  break;
4404
4414
  }
4405
4415
  }
4406
- function dl(t, e, i, a, r, n, s) {
4407
- const l = cl(t, e, i, r, s), d = t.fields[l];
4416
+ function cl(t, e, i, a, r, n, s) {
4417
+ const l = ul(t, e, i, r, s), d = t.fields[l];
4408
4418
  if (!d?.views)
4409
4419
  throw new Error(`error converting installed app to V2: unable to handle ${r} in list view`);
4410
- d.views[a] = !0, Zi(a, d, t, n, void 0);
4420
+ d.views[a] = !0, ea(a, d, t, n, void 0);
4411
4421
  }
4412
- function cl(t, e, i, a, r) {
4422
+ function ul(t, e, i, a, r) {
4413
4423
  const n = e.get(a);
4414
4424
  if (n !== void 0)
4415
4425
  return n;
4416
4426
  const [s, l] = Wt(t, a, i, r);
4417
4427
  return e.set(s, l), l;
4418
4428
  }
4419
- function ul(t, e, i, a, r) {
4429
+ function pl(t, e, i, a, r) {
4420
4430
  if (i.name !== void 0 && i.element === "attr") {
4421
4431
  if (bi.includes(i.name))
4422
4432
  return [-1, { ref: i.name, fixedValue: void 0 }];
@@ -4435,7 +4445,7 @@ function ul(t, e, i, a, r) {
4435
4445
  const g = JSON.parse(d);
4436
4446
  if (g?.ref.toUpperCase() in f) {
4437
4447
  const S = g.ref.toUpperCase();
4438
- return [-1, { ...g, ref: Ki(S) }];
4448
+ return [-1, { ...g, ref: Yi(S) }];
4439
4449
  }
4440
4450
  if (bi.includes(g?.ref))
4441
4451
  return [-1, g];
@@ -4463,53 +4473,53 @@ function ul(t, e, i, a, r) {
4463
4473
  const n = e.get("image");
4464
4474
  if (n !== void 0)
4465
4475
  return [n, void 0];
4466
- const s = Lo(), l = t.fields.push(s) - 1;
4476
+ const s = Io(), l = t.fields.push(s) - 1;
4467
4477
  return e.set("image", l), [l, void 0];
4468
4478
  } 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]);
4469
4479
  }
4470
4480
  function Wt(t, e, i, a) {
4471
- const r = pl(e, i), n = gl(r), s = (function() {
4481
+ const r = gl(e, i), n = fl(r), s = (function() {
4472
4482
  switch (n) {
4473
4483
  case o.ADDFILEATTACHMENT:
4474
- return ho(r);
4484
+ return Lo(r);
4475
4485
  case o.NUMBER:
4476
- return Io(r);
4477
- case o.TAGS:
4478
4486
  return Oo(r);
4479
- case o.SELECT:
4487
+ case o.TAGS:
4480
4488
  return Ro(r);
4489
+ case o.SELECT:
4490
+ return Mo(r);
4481
4491
  case o.RADIO:
4482
- return Ji(r);
4492
+ return Ki(r);
4483
4493
  case o.CHECKBOX:
4484
- return Mo(r);
4494
+ return ko(r);
4485
4495
  case o.CONTENTLINK:
4486
- return ko(r, a);
4496
+ return Do(r, a);
4487
4497
  case o.DESCRIPTION:
4488
- return jo(r);
4489
- case o.TEXTAREAHTML:
4490
4498
  return xo(r);
4491
- case o.DATE:
4499
+ case o.TEXTAREAHTML:
4492
4500
  return _o(r);
4493
- case o.DATETIME:
4501
+ case o.DATE:
4494
4502
  return Po(r);
4495
- case o.URL:
4503
+ case o.DATETIME:
4496
4504
  return No(r);
4497
- case o.EMAIL:
4505
+ case o.URL:
4498
4506
  return Uo(r);
4499
- case o.TOGGLE:
4507
+ case o.EMAIL:
4500
4508
  return Fo(r);
4501
- case o.USERLINK:
4509
+ case o.TOGGLE:
4502
4510
  return Wo(r);
4503
- case o.TEXTAREA:
4511
+ case o.USERLINK:
4504
4512
  return Bo(r);
4513
+ case o.TEXTAREA:
4514
+ return qo(r);
4505
4515
  case o.TEXT:
4506
4516
  default:
4507
- return Do(r);
4517
+ return jo(r);
4508
4518
  }
4509
4519
  })(), l = t.fields.push(s) - 1;
4510
4520
  return [e, l];
4511
4521
  }
4512
- function pl(t, e) {
4522
+ function gl(t, e) {
4513
4523
  let i;
4514
4524
  for (let a = 0; a < e.length && !i; a++)
4515
4525
  i = e[a]?.attributes.find((r) => r.name === t);
@@ -4517,7 +4527,7 @@ function pl(t, e) {
4517
4527
  throw new Error("error converting installed app to V2: installed field not found in tables " + t);
4518
4528
  return i;
4519
4529
  }
4520
- function Zi(t, e, i, a, r) {
4530
+ function ea(t, e, i, a, r) {
4521
4531
  e.views && (e.views[t] = !0, i.views[t][e.id] = {
4522
4532
  type: e.type,
4523
4533
  properties: e.properties ?? [],
@@ -4529,7 +4539,7 @@ function Zi(t, e, i, a, r) {
4529
4539
  pos: a
4530
4540
  });
4531
4541
  }
4532
- function gl(t) {
4542
+ function fl(t) {
4533
4543
  switch (t.widget.type) {
4534
4544
  case "number":
4535
4545
  return o.NUMBER;
@@ -4585,7 +4595,7 @@ function yt(t, e = !0) {
4585
4595
  }
4586
4596
  ];
4587
4597
  }
4588
- function ea(t, e = !0) {
4598
+ function ta(t, e = !0) {
4589
4599
  return [
4590
4600
  "alertAuthor",
4591
4601
  {
@@ -4600,7 +4610,7 @@ function ea(t, e = !0) {
4600
4610
  }
4601
4611
  ];
4602
4612
  }
4603
- function ta(t, e = !0) {
4613
+ function ia(t, e = !0) {
4604
4614
  return [
4605
4615
  "sendAlert",
4606
4616
  {
@@ -4615,7 +4625,7 @@ function ta(t, e = !0) {
4615
4625
  }
4616
4626
  ];
4617
4627
  }
4618
- function ia(t, e = !0) {
4628
+ function aa(t, e = !0) {
4619
4629
  return [
4620
4630
  "publishTo",
4621
4631
  {
@@ -4630,7 +4640,7 @@ function ia(t, e = !0) {
4630
4640
  }
4631
4641
  ];
4632
4642
  }
4633
- function aa(t = !0) {
4643
+ function ra(t = !0) {
4634
4644
  return [
4635
4645
  "user",
4636
4646
  {
@@ -4645,7 +4655,7 @@ function aa(t = !0) {
4645
4655
  }
4646
4656
  ];
4647
4657
  }
4648
- function ra(t = !0) {
4658
+ function na(t = !0) {
4649
4659
  return [
4650
4660
  "dateCreation",
4651
4661
  {
@@ -4660,7 +4670,7 @@ function ra(t = !0) {
4660
4670
  }
4661
4671
  ];
4662
4672
  }
4663
- function fl(t, e, i) {
4673
+ function ml(t, e, i) {
4664
4674
  const { version: a, dateCreation: r } = t.manifest, n = t.typeModel, s = Object.assign(
4665
4675
  {},
4666
4676
  ...Xt.map((c) => ({
@@ -4691,16 +4701,16 @@ function fl(t, e, i) {
4691
4701
  fields: [],
4692
4702
  views: s,
4693
4703
  // TODO: weird cast
4694
- installFor: t.accessRightObjectList ? rl(t.accessRightObjectList) : [],
4704
+ installFor: t.accessRightObjectList ? nl(t.accessRightObjectList) : [],
4695
4705
  audience: t.checkAccess === !1 ? mt.ALL : mt.CUSTOM
4696
4706
  };
4697
- nl(t, g, i), g.views = Qi(g.views, g.syncViewFieldOrder, g.fields);
4698
- const y = ml(t.idApp, e);
4707
+ sl(t, g, i), g.views = zi(g.views, g.syncViewFieldOrder, g.fields);
4708
+ const y = yl(t.idApp, e);
4699
4709
  if (!y) return g;
4700
- const m = na(y);
4710
+ const m = sa(y);
4701
4711
  return m && (g.inWorkVersion = m), g;
4702
4712
  }
4703
- function na(t) {
4713
+ function sa(t) {
4704
4714
  if (!t.value) return;
4705
4715
  const e = JSON.parse(t.value);
4706
4716
  return e.studioVersion == 2 ? {
@@ -4713,28 +4723,28 @@ function na(t) {
4713
4723
  syncViewFieldOrder: e.syncViewFieldOrder,
4714
4724
  audience: e.audience,
4715
4725
  installFor: e.installFor
4716
- } : { ...Gi(e), status: Bt(t), migratedFrom: 1 };
4726
+ } : { ...Xi(e), status: Bt(t), migratedFrom: 1 };
4717
4727
  }
4718
4728
  function Bt(t) {
4719
4729
  return t.status === Ct.installed ? t.suspended ? V.suspended : V.installed : V.draft;
4720
4730
  }
4721
- function ml(t, e) {
4731
+ function yl(t, e) {
4722
4732
  return e.find((a) => a.idApp === t && a.status === Ct.saved);
4723
4733
  }
4724
- function yl(t, e) {
4734
+ function Al(t, e) {
4725
4735
  return !!e.find((i) => i.idApp === t && i.status === Ct.installed);
4726
4736
  }
4727
- function sa(t, e) {
4737
+ function oa(t, e) {
4728
4738
  return t.map((a) => {
4729
4739
  try {
4730
- return a.status === Ct.installed ? fl(a, t, e) : yl(a.idApp, t) ? void 0 : na(a);
4740
+ return a.status === Ct.installed ? ml(a, t, e) : Al(a.idApp, t) ? void 0 : sa(a);
4731
4741
  } catch (r) {
4732
4742
  console.error(r);
4733
4743
  return;
4734
4744
  }
4735
4745
  }).filter((a) => a !== void 0);
4736
4746
  }
4737
- const Al = {
4747
+ const Sl = {
4738
4748
  currentStudioApp: null,
4739
4749
  fetchCurrentStudioAppStatus: "idle",
4740
4750
  saveCurrentStudioAppStatus: "idle",
@@ -4743,7 +4753,7 @@ const Al = {
4743
4753
  }, Ke = u("studio/fetchCurrentStudioApp", async ({ idApp: t, status: e }, { extra: i, rejectWithValue: a, getState: r }) => {
4744
4754
  const n = i.jApi, s = { error: 1, errorMsg: "Error fetching application" };
4745
4755
  try {
4746
- const l = (await n.application.studioGet(t, e)).result, d = sa([l], r())[0];
4756
+ const l = (await n.application.studioGet(t, e)).result, d = oa([l], r())[0];
4747
4757
  return d || a(s);
4748
4758
  } catch {
4749
4759
  return a(s);
@@ -4766,7 +4776,7 @@ const Al = {
4766
4776
  const n = e.jApi, s = { error: 1, errorMsg: "Error saving application" }, l = a().studio.currentStudioApp.currentStudioApp;
4767
4777
  if (!l)
4768
4778
  return i(s);
4769
- const d = qo(l);
4779
+ const d = $o(l);
4770
4780
  try {
4771
4781
  await n.application.studioInstall(d), r(p.actions.success({ label: "APPSTUDIO_AppItem_Installed" })), t && t();
4772
4782
  return;
@@ -4775,7 +4785,7 @@ const Al = {
4775
4785
  }
4776
4786
  }), At = C({
4777
4787
  name: "currentStudioApp",
4778
- initialState: Al,
4788
+ initialState: Sl,
4779
4789
  reducers: {
4780
4790
  setCurrentApp: (t, e) => {
4781
4791
  t.currentStudioApp = e.payload;
@@ -4809,8 +4819,8 @@ const Al = {
4809
4819
  });
4810
4820
  }
4811
4821
  });
4812
- function oa(t, e, i) {
4813
- const a = t.studioVersion !== 2 ? JSON.parse(JSON.stringify(Gi(t))) : JSON.parse(JSON.stringify(t));
4822
+ function la(t, e, i) {
4823
+ const a = t.studioVersion !== 2 ? JSON.parse(JSON.stringify(Xi(t))) : JSON.parse(JSON.stringify(t));
4814
4824
  if (delete a.inWorkVersion, i)
4815
4825
  a.manifest.version = a.manifest.version + 0.1;
4816
4826
  else {
@@ -4827,7 +4837,7 @@ function oa(t, e, i) {
4827
4837
  }
4828
4838
  return [a, a.idApp];
4829
4839
  }
4830
- function Sl({ author: t, appName: e }) {
4840
+ function Cl({ author: t, appName: e }) {
4831
4841
  const i = D(), a = Object.assign(
4832
4842
  {},
4833
4843
  ...Xt.map((r) => {
@@ -4904,7 +4914,7 @@ function Sl({ author: t, appName: e }) {
4904
4914
  function se(t, e) {
4905
4915
  return t.manifest.appName > e.manifest.appName ? 1 : -1;
4906
4916
  }
4907
- const Cl = {
4917
+ const El = {
4908
4918
  loadingStudioAppsList: "idle",
4909
4919
  deleteStudioAppStatus: "idle",
4910
4920
  suspendStudioAppStatus: "idle",
@@ -4920,7 +4930,7 @@ const Cl = {
4920
4930
  const c = (await n.application.studioGet(m.idApp, m.status)).result, S = (await n.article.count(m.idApp)).result;
4921
4931
  return { ...c, articlesCount: S };
4922
4932
  })
4923
- )).map((m) => m.status === "fulfilled" ? m.value : null).reduce((m, c) => c !== null ? m.concat([c]) : m, []), y = sa(g, r());
4933
+ )).map((m) => m.status === "fulfilled" ? m.value : null).reduce((m, c) => c !== null ? m.concat([c]) : m, []), y = oa(g, r());
4924
4934
  return y.forEach(async (m) => {
4925
4935
  m.fields = vi(m.fields, l, t), m.inWorkVersion && (m.inWorkVersion.fields = vi(m.inWorkVersion.fields, l, t));
4926
4936
  }), y;
@@ -4937,7 +4947,7 @@ function vi(t, e, i) {
4937
4947
  });
4938
4948
  }
4939
4949
  const Ze = u("studio/createApp", async ({ appName: t, callback: e }, { extra: i, dispatch: a, rejectWithValue: r, getState: n }) => {
4940
- const s = i.jApi, l = n().userCurrent?.uri, { newAppId: d, newStudioApp: g } = Sl({ appName: t, ...l && { author: l } });
4950
+ const s = i.jApi, l = n().userCurrent?.uri, { newAppId: d, newStudioApp: g } = Cl({ appName: t, ...l && { author: l } });
4941
4951
  try {
4942
4952
  return await s.application.studioSave(d, JSON.stringify(g), "saved"), a(p.actions.success({ label: "APPSTUDIO_StudioApp_Created" })), a(At.actions.setCurrentApp(g)), e && e(), g;
4943
4953
  } catch (y) {
@@ -4980,7 +4990,7 @@ const Ze = u("studio/createApp", async ({ appName: t, callback: e }, { extra: i,
4980
4990
  l = l.inWorkVersion;
4981
4991
  else
4982
4992
  return r({ error: 1, errorMsg: "Error cloning application" });
4983
- const d = a().userCurrent?.uri, [g, y] = oa(l, d), m = JSON.stringify(g);
4993
+ const d = a().userCurrent?.uri, [g, y] = la(l, d), m = JSON.stringify(g);
4984
4994
  try {
4985
4995
  return await s.application.studioSave(y, m, "saved"), n(p.actions.success({ label: "APPSTUDIO_AppItem_Cloned" })), g;
4986
4996
  } catch (c) {
@@ -4990,7 +5000,7 @@ const Ze = u("studio/createApp", async ({ appName: t, callback: e }, { extra: i,
4990
5000
  const n = e.jApi, s = i().studio.studioAppsList.studioAppsList?.find((m) => m.idApp === t);
4991
5001
  if (!s || ![k.INSTALLED, k.SUSPENDED].includes(s.status))
4992
5002
  return a({ error: 1, errorMsg: "Error cloning application" });
4993
- const l = i().userCurrent?.uri, [d, g] = oa(s, l, !0), y = JSON.stringify(d);
5003
+ const l = i().userCurrent?.uri, [d, g] = la(s, l, !0), y = JSON.stringify(d);
4994
5004
  try {
4995
5005
  return await n.application.studioSave(g, y, "saved"), r(p.actions.success({ label: "APPSTUDIO_AppItem_CreateInWork" })), d;
4996
5006
  } catch (m) {
@@ -4998,7 +5008,7 @@ const Ze = u("studio/createApp", async ({ appName: t, callback: e }, { extra: i,
4998
5008
  }
4999
5009
  }), qt = C({
5000
5010
  name: "studioAppsList",
5001
- initialState: Cl,
5011
+ initialState: El,
5002
5012
  reducers: {
5003
5013
  setAppsList: (t, e) => {
5004
5014
  t.studioAppsList = [...e.payload].sort(se);
@@ -5061,21 +5071,21 @@ const Ze = u("studio/createApp", async ({ appName: t, callback: e }, { extra: i,
5061
5071
  e.createNewStudioAppStatus === "pending" && (e.createNewStudioAppStatus = "idle");
5062
5072
  });
5063
5073
  }
5064
- }), El = O({
5074
+ }), Tl = O({
5065
5075
  [qt.name]: qt.reducer,
5066
5076
  [At.name]: At.reducer
5067
5077
  });
5068
- function Tl(t) {
5078
+ function bl(t) {
5069
5079
  return t.studio.studioAppsList;
5070
5080
  }
5071
- function bl(t) {
5081
+ function vl(t) {
5072
5082
  return t.studio.currentStudioApp;
5073
5083
  }
5074
- const vl = {
5084
+ const hl = {
5075
5085
  name: "studio",
5076
- reducer: El
5077
- }, gd = {
5078
- slice: vl,
5086
+ reducer: Tl
5087
+ }, fd = {
5088
+ slice: hl,
5079
5089
  actions: {
5080
5090
  ...qt.actions,
5081
5091
  ...At.actions,
@@ -5091,17 +5101,17 @@ const vl = {
5091
5101
  createInWorkStudioApp: rt
5092
5102
  },
5093
5103
  selectors: {
5094
- selectStudioAppsList: Tl,
5095
- selectCurrentStudioApp: bl
5104
+ selectStudioAppsList: bl,
5105
+ selectCurrentStudioApp: vl
5096
5106
  },
5097
5107
  utils: {
5098
- updateViewsFromFields: Qi,
5108
+ updateViewsFromFields: zi,
5099
5109
  generateNewFormField: ee
5100
5110
  }
5101
5111
  }, $t = [{
5102
5112
  name: "name",
5103
5113
  sort: "ASC"
5104
- }], hl = {
5114
+ }], Ll = {
5105
5115
  list: {
5106
5116
  loading: "idle",
5107
5117
  data: [],
@@ -5129,7 +5139,7 @@ const vl = {
5129
5139
  tab: "my"
5130
5140
  }, hi = C({
5131
5141
  name: "visioConnect",
5132
- initialState: hl,
5142
+ initialState: Ll,
5133
5143
  reducers: {
5134
5144
  setTab: (t, e) => {
5135
5145
  t.tab = e.payload, t.list.page = 1, Tt(t.list.orders, $t) || (t.list.orders = $t), t.list.filters.length > 0 && (t.list.filters = []);
@@ -5305,7 +5315,7 @@ const vl = {
5305
5315
  return v(r) || a(p.actions.error({ label: A(r) })), e({ error: 1, errorMsg: "Cannot unarchive room" });
5306
5316
  }
5307
5317
  }
5308
- ), wl = (t) => t.visioConnect.tab, Ll = (t) => t.visioConnect.list, Il = (t) => t.visioConnect.createModal, Ol = (t) => t.visioConnect.updateModal, Rl = (t) => t.visioConnect.archive, Et = {
5318
+ ), wl = (t) => t.visioConnect.tab, Il = (t) => t.visioConnect.list, Ol = (t) => t.visioConnect.createModal, Rl = (t) => t.visioConnect.updateModal, Ml = (t) => t.visioConnect.archive, Et = {
5309
5319
  slice: hi,
5310
5320
  actions: {
5311
5321
  // archive
@@ -5320,20 +5330,20 @@ const vl = {
5320
5330
  fetchEditedPermanentRoom: ot,
5321
5331
  ...hi.actions
5322
5332
  },
5323
- selectors: { selectVisioConnectTab: wl, selectVisioConnectList: Ll, selectVisioConnectCreateModal: Il, selectVisioConnectUpdateModal: Ol, selectVisioConnectArchive: Rl }
5333
+ selectors: { selectVisioConnectTab: wl, selectVisioConnectList: Il, selectVisioConnectCreateModal: Ol, selectVisioConnectUpdateModal: Rl, selectVisioConnectArchive: Ml }
5324
5334
  }, pt = u("wall/fetchWallFilters", async (t, { extra: e, rejectWithValue: i }) => {
5325
5335
  try {
5326
5336
  return (await e.jApi.wall.getFilters()).result;
5327
5337
  } catch (a) {
5328
5338
  return i(a);
5329
5339
  }
5330
- }), wi = {
5340
+ }), Li = {
5331
5341
  filters: [],
5332
5342
  taxonomies: [],
5333
5343
  loading: "idle"
5334
- }, Li = C({
5344
+ }, wi = C({
5335
5345
  name: "wall",
5336
- initialState: wi,
5346
+ initialState: Li,
5337
5347
  reducers: {
5338
5348
  setFilters: (t, e) => {
5339
5349
  t.filters = e.payload;
@@ -5341,7 +5351,7 @@ const vl = {
5341
5351
  setLoading: (t, e) => {
5342
5352
  t.loading = e.payload;
5343
5353
  },
5344
- reset: () => wi
5354
+ reset: () => Li
5345
5355
  },
5346
5356
  extraReducers: (t) => {
5347
5357
  t.addCase(pt.pending, (e) => {
@@ -5352,74 +5362,74 @@ const vl = {
5352
5362
  e.loading = "idle";
5353
5363
  });
5354
5364
  }
5355
- }), Ml = (t) => t.wall, kl = (t) => t.wall.filters, Dl = (t) => t.wall.taxonomies, fd = {
5356
- slice: Li,
5357
- actions: { ...Li.actions, fetchWallFilters: pt },
5365
+ }), kl = (t) => t.wall, Dl = (t) => t.wall.filters, jl = (t) => t.wall.taxonomies, md = {
5366
+ slice: wi,
5367
+ actions: { ...wi.actions, fetchWallFilters: pt },
5358
5368
  selectors: {
5359
- selectWall: Ml,
5360
- selectWallFilters: kl,
5361
- selectWallFiltersTaxonomies: Dl
5369
+ selectWall: kl,
5370
+ selectWallFilters: Dl,
5371
+ selectWallFiltersTaxonomies: jl
5362
5372
  }
5363
5373
  };
5364
5374
  export {
5365
5375
  k as APP_STATUS_TYPE,
5366
5376
  mt as AUDIENCE,
5367
- Nl as AdminLogs,
5368
- Fl as Animations,
5369
- uo as AppColumnsDefaultTypes,
5377
+ Ul as AdminLogs,
5378
+ Wl as Animations,
5379
+ po as AppColumnsDefaultTypes,
5370
5380
  E as AppFieldFormPropertyTypes,
5371
5381
  Jt as AppFormBannedFromViews,
5372
- go as AppFormFieldOnlyInView,
5373
- pd as AppFormFixedList,
5382
+ fo as AppFormFieldOnlyInView,
5383
+ gd as AppFormFixedList,
5374
5384
  o as AppFormItemTypes,
5375
- po as AppFormNoAsFieldList,
5376
- fo as AppFormNonPrimaryList,
5377
- Hi as AppFormPrimaryListValues,
5378
- ud as AppFormUniqueListCheck,
5379
- Wl as Application,
5380
- _l as Article,
5381
- Bl as AssetReservation,
5382
- $l as Bookmark,
5383
- Vl as Calendar,
5384
- Hl as Comment,
5385
- ql as ContentReport,
5386
- yo as Description,
5387
- mo as Element,
5388
- lo as ExtraAppFieldsItemName,
5385
+ go as AppFormNoAsFieldList,
5386
+ mo as AppFormNonPrimaryList,
5387
+ Gi as AppFormPrimaryListValues,
5388
+ pd as AppFormUniqueListCheck,
5389
+ Bl as Application,
5390
+ Pl as Article,
5391
+ ql as AssetReservation,
5392
+ Vl as Bookmark,
5393
+ Hl as Calendar,
5394
+ Gl as Comment,
5395
+ $l as ContentReport,
5396
+ Ao as Description,
5397
+ yo as Element,
5398
+ co as ExtraAppFieldsItemName,
5389
5399
  f as ExtraAppFieldsItemViews,
5390
- Gl as ExtraBot,
5391
- Xl as Faq,
5392
- Jl as FileIntegrity,
5400
+ Xl as ExtraBot,
5401
+ Jl as Faq,
5402
+ Kl as FileIntegrity,
5393
5403
  ci as FileIntegritySlice,
5394
- Kl as Hook,
5395
- Ql as MagicPad,
5404
+ Yl as Hook,
5405
+ zl as MagicPad,
5396
5406
  q as MapExtraFieldsWithView,
5397
- Zl as MediaLibrary,
5398
- ln as Model,
5399
- ed as Network,
5400
- td as Platform,
5407
+ ed as MediaLibrary,
5408
+ dn as Model,
5409
+ td as Network,
5410
+ id as Platform,
5401
5411
  Z as STUDIO_DISPLAY,
5402
5412
  Ut as STUDIO_VIEW,
5403
- ad as Share,
5404
- cd as SocialActions,
5413
+ rd as Share,
5414
+ ud as SocialActions,
5405
5415
  V as StatusType,
5406
- nd as TVDisplay,
5416
+ sd as TVDisplay,
5407
5417
  re as TeamWork,
5408
- sd as TinyMCE,
5418
+ od as TinyMCE,
5409
5419
  p as Toast,
5410
- od as UserCurrent,
5420
+ ld as UserCurrent,
5411
5421
  Et as VisioConnect,
5412
- fd as Wall,
5413
- id as WedocApp,
5414
- io as Widget,
5415
- dd as WidgetEditor,
5416
- ma as actions,
5417
- Pl as adminLogsReducer,
5422
+ md as Wall,
5423
+ ad as WedocApp,
5424
+ ao as Widget,
5425
+ cd as WidgetEditor,
5426
+ ya as actions,
5427
+ Nl as adminLogsReducer,
5418
5428
  Oi as adminLogsSlice,
5419
- Ul as animationsReducer,
5429
+ Fl as animationsReducer,
5420
5430
  Ri as animationsSlice,
5421
5431
  ct as archivePermanentRoom,
5422
- Qa as contentReportSlice,
5432
+ za as contentReportSlice,
5423
5433
  lt as createPermanentRoom,
5424
5434
  ke as deleteQuarantine,
5425
5435
  oi as extraBotSlice,
@@ -5439,31 +5449,31 @@ export {
5439
5449
  Ae as fetchReports,
5440
5450
  st as fetchTeamworkPermanentRooms,
5441
5451
  pt as fetchWallFilters,
5442
- wi as initialState,
5443
- Yl as jland,
5444
- qr as magicPadSlice,
5445
- zl as mediaLibraryReducer,
5452
+ Li as initialState,
5453
+ Ql as jland,
5454
+ $r as magicPadSlice,
5455
+ Zl as mediaLibraryReducer,
5446
5456
  Pi as mediaLibrarySlice,
5447
5457
  Me as releaseQuarantine,
5448
- Le as saveExtraBot,
5449
- Er as selectExtraBotListAll,
5450
- Tr as selectExtraBotListMines,
5451
- Rr as selectFileIntegrityAction,
5452
- Mr as selectFileIntegrityList,
5453
- Ml as selectWall,
5454
- kl as selectWallFilters,
5455
- Dl as selectWallFiltersTaxonomies,
5458
+ we as saveExtraBot,
5459
+ Tr as selectExtraBotListAll,
5460
+ br as selectExtraBotListMines,
5461
+ Mr as selectFileIntegrityAction,
5462
+ kr as selectFileIntegrityList,
5463
+ kl as selectWall,
5464
+ Dl as selectWallFilters,
5465
+ jl as selectWallFiltersTaxonomies,
5456
5466
  yi as slice,
5457
- gd as studio,
5458
- Fi as teamWorkSlice,
5459
- rd as teamworkReducer,
5460
- we as toggleExtraBotActivation,
5467
+ fd as studio,
5468
+ Wi as teamWorkSlice,
5469
+ nd as teamworkReducer,
5470
+ Le as toggleExtraBotActivation,
5461
5471
  ut as unarchivePermanentRoom,
5462
- Cr as updateListBotProperty,
5472
+ Er as updateListBotProperty,
5463
5473
  dt as updatePermanentRoom,
5464
5474
  Se as updateStatus,
5465
- ld as updateWidgetContent,
5475
+ dd as updateWidgetContent,
5466
5476
  Xt as viewsList,
5467
5477
  hi as visioConnectSlice,
5468
- Li as wallSlice
5478
+ wi as wallSlice
5469
5479
  };