jamespot-front-business 1.3.28 → 1.3.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { createEntityAdapter as dt, createSlice as T, createAsyncThunk as u, combineReducers as O } from "@reduxjs/toolkit";
2
- import { jEnsure as pi, Format as gt, formatImgUrl as Ki, UserLevel as Yi, WidgetsName as C, StudioApplicationStatus as ct } from "jamespot-user-api";
3
- const Qi = function(t) {
2
+ import { jEnsure as pi, Format as gt, formatImgUrl as Yi, UserLevel as Qi, WidgetsName as C, StudioApplicationStatus as ct } from "jamespot-user-api";
3
+ const zi = function(t) {
4
4
  return [
5
5
  {
6
6
  namespace: "JAMESPOT",
@@ -10,8 +10,8 @@ const Qi = function(t) {
10
10
  }
11
11
  }
12
12
  ];
13
- }, pl = {
14
- getArticleRTHandlers: Qi
13
+ }, gl = {
14
+ getArticleRTHandlers: zi
15
15
  }, v = (t) => !!t && typeof t == "object" && "aborted" in t && !!t.aborted, E = (t, e) => !t || typeof t != "object" ? e ?? "GLOBAL_Technical_Error" : "errorMsg" in t && typeof t.errorMsg == "string" ? t.errorMsg : "message" in t && typeof t.message == "string" ? t.message : e ?? "GLOBAL_Technical_Error", ne = dt({
16
16
  selectId: (t) => t.id
17
17
  }), it = T({
@@ -21,24 +21,24 @@ const Qi = function(t) {
21
21
  addOne: ne.addOne,
22
22
  removeOne: ne.removeOne
23
23
  }
24
- }), zi = () => Math.random().toString(16).slice(2), te = ({ id: t = zi(), ...e }, i = "success", a = 3e3) => (r) => {
24
+ }), Zi = () => Math.random().toString(16).slice(2), te = ({ id: t = Zi(), ...e }, i = "success", a = 3e3) => (r) => {
25
25
  const n = { id: t, ...e, timeout: a, type: i };
26
26
  return r(it.actions.addOne(n)), setTimeout(() => {
27
27
  r(it.actions.removeOne(t));
28
28
  }, a), t;
29
- }, Zi = {
29
+ }, ea = {
30
30
  addMessage: te,
31
31
  success: (t, e) => te(t, "success", e),
32
32
  warning: (t, e) => te(t, "warning", e),
33
33
  error: (t, e) => te(t, "error", e)
34
- }, ea = ne.getSelectors((t) => t.toasts), f = {
34
+ }, ta = ne.getSelectors((t) => t.toasts), f = {
35
35
  slice: it,
36
- actions: { ...Zi, ...it.actions },
37
- selectors: ea
38
- }, Pt = (t) => t.toISOString().slice(0, 19).replace(/T/g, " "), ta = () => {
36
+ actions: { ...ea, ...it.actions },
37
+ selectors: ta
38
+ }, Pt = (t) => t.toISOString().slice(0, 19).replace(/T/g, " "), ia = () => {
39
39
  const t = /* @__PURE__ */ new Date();
40
40
  return t.setMonth(t.getMonth() - 1), t;
41
- }, ia = {
41
+ }, aa = {
42
42
  data: [],
43
43
  loading: "idle",
44
44
  page: 1,
@@ -47,7 +47,7 @@ const Qi = function(t) {
47
47
  name: "dateCreation",
48
48
  method: "between",
49
49
  value: {
50
- start: Pt(ta()),
50
+ start: Pt(ia()),
51
51
  end: Pt(/* @__PURE__ */ new Date())
52
52
  }
53
53
  }
@@ -63,7 +63,7 @@ const Qi = function(t) {
63
63
  }
64
64
  }), ft = T({
65
65
  name: "logsNavigation",
66
- initialState: ia,
66
+ initialState: aa,
67
67
  reducers: {
68
68
  setNavigationOrder: (t, e) => {
69
69
  t.orders = [...e.payload], t.page = 1;
@@ -84,10 +84,10 @@ const Qi = function(t) {
84
84
  e.loading = "idle";
85
85
  });
86
86
  }
87
- }), Ut = (t) => t.toISOString().slice(0, 19).replace(/T/g, " "), aa = () => {
87
+ }), Ut = (t) => t.toISOString().slice(0, 19).replace(/T/g, " "), ra = () => {
88
88
  const t = /* @__PURE__ */ new Date();
89
89
  return t.setMonth(t.getMonth() - 1), t;
90
- }, ra = {
90
+ }, na = {
91
91
  data: [],
92
92
  loading: "idle",
93
93
  page: 1,
@@ -96,7 +96,7 @@ const Qi = function(t) {
96
96
  name: "dateCreation",
97
97
  method: "between",
98
98
  value: {
99
- start: Ut(aa()),
99
+ start: Ut(ra()),
100
100
  end: Ut(/* @__PURE__ */ new Date())
101
101
  }
102
102
  }
@@ -112,7 +112,7 @@ const Qi = function(t) {
112
112
  }
113
113
  }), mt = T({
114
114
  name: "logsObjects",
115
- initialState: ra,
115
+ initialState: na,
116
116
  reducers: {
117
117
  setObjectsOrder: (t, e) => {
118
118
  t.orders = [...e.payload], t.page = 1;
@@ -133,10 +133,10 @@ const Qi = function(t) {
133
133
  e.loading = "idle";
134
134
  });
135
135
  }
136
- }), Ft = (t) => t.toISOString().slice(0, 19).replace(/T/g, " "), na = () => {
136
+ }), Ft = (t) => t.toISOString().slice(0, 19).replace(/T/g, " "), sa = () => {
137
137
  const t = /* @__PURE__ */ new Date();
138
138
  return t.setMonth(t.getMonth() - 1), t;
139
- }, sa = {
139
+ }, oa = {
140
140
  data: [],
141
141
  loading: "idle",
142
142
  page: 1,
@@ -145,7 +145,7 @@ const Qi = function(t) {
145
145
  name: "dateCreation",
146
146
  method: "between",
147
147
  value: {
148
- start: Ft(na()),
148
+ start: Ft(sa()),
149
149
  end: Ft(/* @__PURE__ */ new Date())
150
150
  }
151
151
  }
@@ -161,7 +161,7 @@ const Qi = function(t) {
161
161
  }
162
162
  }), yt = T({
163
163
  name: "logsSearch",
164
- initialState: sa,
164
+ initialState: oa,
165
165
  reducers: {
166
166
  setSearchOrder: (t, e) => {
167
167
  t.orders = [...e.payload], t.page = 1;
@@ -182,14 +182,14 @@ const Qi = function(t) {
182
182
  e.loading = "idle";
183
183
  });
184
184
  }
185
- }), oa = (t) => t.adminLogs.logsNavigation, la = (t) => t.adminLogs.logsObjects, da = (t) => t.adminLogs.logsSearch, ca = O({
185
+ }), la = (t) => t.adminLogs.logsNavigation, da = (t) => t.adminLogs.logsObjects, ca = (t) => t.adminLogs.logsSearch, ua = O({
186
186
  [ft.name]: ft.reducer,
187
187
  [mt.name]: mt.reducer,
188
188
  [yt.name]: yt.reducer
189
189
  }), gi = {
190
190
  name: "adminLogs",
191
- reducer: ca
192
- }, gl = gi.reducer, fl = {
191
+ reducer: ua
192
+ }, fl = gi.reducer, ml = {
193
193
  slice: gi,
194
194
  actions: {
195
195
  ...ft.actions,
@@ -199,15 +199,15 @@ const Qi = function(t) {
199
199
  fetchLogsObjects: oe,
200
200
  fetchLogsSearch: le
201
201
  },
202
- selectors: { selectAdminLogsNavigation: oa, selectAdminLogsObjects: la, selectAdminLogsSearch: da }
203
- }, ua = {
202
+ selectors: { selectAdminLogsNavigation: la, selectAdminLogsObjects: da, selectAdminLogsSearch: ca }
203
+ }, pa = {
204
204
  animationConfiguration: null,
205
205
  isActiveForCurrentUser: !1,
206
206
  isInitialized: !1,
207
207
  isToggleLoading: !1
208
208
  }, Wt = T({
209
209
  name: "animationsList",
210
- initialState: ua,
210
+ initialState: pa,
211
211
  reducers: {},
212
212
  extraReducers: (t) => {
213
213
  t.addCase(X.fulfilled, (e, i) => {
@@ -235,7 +235,7 @@ const Qi = function(t) {
235
235
  } catch (r) {
236
236
  return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot retrieve animation" });
237
237
  }
238
- }), pa = u(
238
+ }), ga = u(
239
239
  "animations/deleteCurrentAnimation",
240
240
  async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
241
241
  try {
@@ -245,7 +245,7 @@ const Qi = function(t) {
245
245
  return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot delete animation" });
246
246
  }
247
247
  }
248
- ), ga = u(
248
+ ), fa = u(
249
249
  "animations/saveCurrentAnimation",
250
250
  async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
251
251
  try {
@@ -265,7 +265,7 @@ const Qi = function(t) {
265
265
  return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot update animation" });
266
266
  }
267
267
  }
268
- ), fa = function(t) {
268
+ ), ma = function(t) {
269
269
  return [
270
270
  {
271
271
  namespace: "ANIMATIONS",
@@ -295,12 +295,12 @@ const Qi = function(t) {
295
295
  } catch (r) {
296
296
  return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot retrieve animation stats" });
297
297
  }
298
- }), ma = {
298
+ }), ya = {
299
299
  stats: [],
300
300
  loading: "idle"
301
301
  }, Bt = T({
302
302
  name: "animationStats",
303
- initialState: ma,
303
+ initialState: ya,
304
304
  reducers: {},
305
305
  extraReducers: (t) => {
306
306
  t.addCase(ce.pending, (e) => {
@@ -317,12 +317,12 @@ const Qi = function(t) {
317
317
  } catch (r) {
318
318
  return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot retrieve animation stats current" });
319
319
  }
320
- }), ya = {
320
+ }), Aa = {
321
321
  stats: null,
322
322
  loading: "idle"
323
323
  }, qt = T({
324
324
  name: "animationStatsCurrent",
325
- initialState: ya,
325
+ initialState: Aa,
326
326
  reducers: {},
327
327
  extraReducers: (t) => {
328
328
  t.addCase(ue.pending, (e) => {
@@ -333,26 +333,26 @@ const Qi = function(t) {
333
333
  e.loading = "idle";
334
334
  });
335
335
  }
336
- }), Aa = (t) => t.animations.animationsList.animationConfiguration, Ea = (t) => t.animations.animationsList.isActiveForCurrentUser, Sa = (t) => t.animations.animationsList.isToggleLoading, Ta = (t) => t.animations.animationsList.animationConfigurationApp, Ca = O({
336
+ }), Ea = (t) => t.animations.animationsList.animationConfiguration, Sa = (t) => t.animations.animationsList.isActiveForCurrentUser, Ta = (t) => t.animations.animationsList.isToggleLoading, Ca = (t) => t.animations.animationsList.animationConfigurationApp, ba = O({
337
337
  [Wt.name]: Wt.reducer,
338
338
  [Bt.name]: Bt.reducer,
339
339
  [qt.name]: qt.reducer
340
340
  }), fi = {
341
341
  name: "animations",
342
- reducer: Ca
343
- }, ml = fi.reducer, yl = {
342
+ reducer: ba
343
+ }, yl = fi.reducer, Al = {
344
344
  slice: fi,
345
345
  actions: {
346
- saveCurrentAnimation: ga,
346
+ saveCurrentAnimation: fa,
347
347
  fetchCurrentAnimation: X,
348
- deleteCurrentAnimation: pa,
348
+ deleteCurrentAnimation: ga,
349
349
  toggleAnimationIsActive: de,
350
350
  fetchCurrentAnimationApp: at,
351
351
  fetchAnimationStats: ce,
352
352
  fetchAnimationStatsCurrent: ue
353
353
  },
354
- selectors: { selectCurrentAnimation: Aa, isActiveAnimation: Ea, isToggleLoading: Sa, selectAnimationConfigurationApp: Ta },
355
- getAnimationsRTHandlers: fa
354
+ selectors: { selectCurrentAnimation: Ea, isActiveAnimation: Sa, isToggleLoading: Ta, selectAnimationConfigurationApp: Ca },
355
+ getAnimationsRTHandlers: ma
356
356
  }, W = dt({
357
357
  selectId: (t) => t.name,
358
358
  sortComparer: (t, e) => t.label.localeCompare(e.label)
@@ -372,11 +372,11 @@ const Qi = function(t) {
372
372
  W.setAll(e, i.payload.result);
373
373
  });
374
374
  }
375
- }), ba = W.getSelectors((t) => t.entities.applications), Al = {
375
+ }), wa = W.getSelectors((t) => t.entities.applications), El = {
376
376
  slice: $t,
377
377
  actions: { fetchList: mi, ...$t.actions },
378
- selectors: ba
379
- }, wa = {
378
+ selectors: wa
379
+ }, La = {
380
380
  entities: [],
381
381
  loading: "idle",
382
382
  nbResults: 0
@@ -394,7 +394,7 @@ const Qi = function(t) {
394
394
  }
395
395
  ), Vt = T({
396
396
  name: "bookableAsset",
397
- initialState: wa,
397
+ initialState: La,
398
398
  reducers: {},
399
399
  extraReducers: (t) => {
400
400
  t.addCase(pe.pending, (e) => {
@@ -408,7 +408,7 @@ const Qi = function(t) {
408
408
  }), ge = u(
409
409
  "AssetReservation/configuration",
410
410
  async (t, { extra: e }) => await e.jApi.assetReservation.configuration()
411
- ), La = {
411
+ ), Ia = {
412
412
  description: "",
413
413
  right: {
414
414
  manage: !1
@@ -421,7 +421,7 @@ const Qi = function(t) {
421
421
  loading: "idle"
422
422
  }, Ht = T({
423
423
  name: "configuration",
424
- initialState: La,
424
+ initialState: Ia,
425
425
  reducers: {},
426
426
  extraReducers: (t) => {
427
427
  t.addCase(ge.pending, (e) => {
@@ -437,7 +437,7 @@ const Qi = function(t) {
437
437
  date: "",
438
438
  hourStart: "",
439
439
  hourEnd: ""
440
- }, Ia = {
440
+ }, va = {
441
441
  entities: [],
442
442
  loading: "idle",
443
443
  nbResults: 0,
@@ -451,7 +451,7 @@ const Qi = function(t) {
451
451
  return await e.jApi.assetReservation.getList(i);
452
452
  }), At = T({
453
453
  name: "reservation",
454
- initialState: Ia,
454
+ initialState: va,
455
455
  reducers: {
456
456
  setForm: (t, e) => {
457
457
  t.form = e.payload;
@@ -472,25 +472,25 @@ const Qi = function(t) {
472
472
  e.loading = "idle";
473
473
  });
474
474
  }
475
- }), va = O({
475
+ }), ha = O({
476
476
  [Vt.name]: Vt.reducer,
477
477
  [Ht.name]: Ht.reducer,
478
478
  [At.name]: At.reducer
479
- }), ha = {
479
+ }), Oa = {
480
480
  name: "assetReservation",
481
- reducer: va
482
- }, Oa = (t) => t.assetReservation.configuration, Ra = (t) => t.assetReservation.bookableAsset.entities, ka = (t) => t.assetReservation.bookableAsset.loading, Da = (t) => t.assetReservation.reservation.entities, Ma = (t) => t.assetReservation.reservation.loading, xa = (t) => t.assetReservation.reservation.form, El = {
483
- slice: ha,
481
+ reducer: ha
482
+ }, Ra = (t) => t.assetReservation.configuration, ka = (t) => t.assetReservation.bookableAsset.entities, Da = (t) => t.assetReservation.bookableAsset.loading, Ma = (t) => t.assetReservation.reservation.entities, xa = (t) => t.assetReservation.reservation.loading, ja = (t) => t.assetReservation.reservation.form, Sl = {
483
+ slice: Oa,
484
484
  actions: { ...At.actions, fetchBookableAsset: pe, fetchConfiguration: ge, fetchReservation: fe },
485
485
  selectors: {
486
- configuration: Oa,
487
- bookableAssetEntities: Ra,
488
- bookableAssetLoading: ka,
489
- reservationEntities: Da,
490
- reservationLoading: Ma,
491
- reservationForm: xa
492
- }
493
- }, ja = {
486
+ configuration: Ra,
487
+ bookableAssetEntities: ka,
488
+ bookableAssetLoading: Da,
489
+ reservationEntities: Ma,
490
+ reservationLoading: xa,
491
+ reservationForm: ja
492
+ }
493
+ }, _a = {
494
494
  loading: "idle",
495
495
  reports: [],
496
496
  page: 1,
@@ -500,9 +500,9 @@ const Qi = function(t) {
500
500
  limit: 10,
501
501
  nbResults: 0,
502
502
  pendingReports: []
503
- }, _a = T({
503
+ }, Na = T({
504
504
  name: "contentReport",
505
- initialState: ja,
505
+ initialState: _a,
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 Qi = function(t) {
563
563
  } catch (r) {
564
564
  return v(r) || e(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot fetch pads" });
565
565
  }
566
- }), Na = (t) => t.contentReport, Sl = {
567
- slice: _a,
566
+ }), Pa = (t) => t.contentReport, Tl = {
567
+ slice: Na,
568
568
  actions: {
569
569
  fetchReports: me,
570
570
  updateStatus: ye
571
571
  },
572
- selectors: { selectContentReport: Na }
573
- }, Pa = {
572
+ selectors: { selectContentReport: Pa }
573
+ }, Ai = 999, Ua = {
574
574
  bookmarks: [],
575
575
  loading: "idle",
576
576
  status: void 0,
@@ -581,9 +581,11 @@ const Qi = function(t) {
581
581
  loading: "idle",
582
582
  status: void 0
583
583
  },
584
- delete: {}
584
+ delete: {},
585
+ perPage: Ai,
586
+ page: 1
585
587
  }, $ = u("bookmarkList/fetchbookmarkList", async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
586
- const r = { limit: 999 };
588
+ const r = { limit: Ai };
587
589
  try {
588
590
  return await e.jApi.bookmark.getFormattedList(r, "raw-list");
589
591
  } catch (n) {
@@ -619,7 +621,7 @@ const Qi = function(t) {
619
621
  }
620
622
  }), z = T({
621
623
  name: "bookmarkList",
622
- initialState: Pa,
624
+ initialState: Ua,
623
625
  reducers: {
624
626
  resetAddBookmarkStatus: (t, e) => {
625
627
  t.add[e.payload] && delete t.add[e.payload];
@@ -688,7 +690,7 @@ const Qi = function(t) {
688
690
  });
689
691
  });
690
692
  }
691
- }), Ua = function(t) {
693
+ }), Fa = function(t) {
692
694
  const e = function(n, s) {
693
695
  pi.objectIsType("bookmarkLink", n.object) ? t(s(n.object)) : t($());
694
696
  }, i = function() {
@@ -725,7 +727,7 @@ const Qi = function(t) {
725
727
  handler: i
726
728
  }
727
729
  ];
728
- }, Fa = {
730
+ }, Wa = {
729
731
  bookmark: void 0,
730
732
  status: void 0,
731
733
  loading: "idle"
@@ -743,7 +745,7 @@ const Qi = function(t) {
743
745
  }
744
746
  ), Et = T({
745
747
  name: "bookmarkEdit",
746
- initialState: Fa,
748
+ initialState: Wa,
747
749
  reducers: {
748
750
  setEditBookmark: (t, e) => {
749
751
  t.bookmark = { ...e.payload };
@@ -764,14 +766,14 @@ const Qi = function(t) {
764
766
  e.status = "error", e.loading = "idle";
765
767
  });
766
768
  }
767
- }), Wa = O({
769
+ }), Ba = O({
768
770
  [z.name]: z.reducer,
769
771
  [Et.name]: Et.reducer
770
- }), Ba = {
772
+ }), qa = {
771
773
  name: "bookmark",
772
- reducer: Wa
773
- }, qa = (t) => t.bookmark.bookmarkList, $a = (t) => t.bookmark.bookmarkList.isInitialized, Va = (t) => t.bookmark.bookmarkEdit.bookmark, Ha = (t, e) => t.bookmark.bookmarkList.bookmarks.find((i) => i.targetId === e), Tl = {
774
- slice: Ba,
774
+ reducer: Ba
775
+ }, $a = (t) => t.bookmark.bookmarkList, Va = (t) => t.bookmark.bookmarkList.isInitialized, Ha = (t) => t.bookmark.bookmarkEdit.bookmark, Ga = (t, e) => t.bookmark.bookmarkList.bookmarks.find((i) => i.targetId === e), Cl = {
776
+ slice: qa,
775
777
  actions: {
776
778
  fetchBookmark: $,
777
779
  addBookmark: Ae,
@@ -782,12 +784,12 @@ const Qi = function(t) {
782
784
  ...z.actions
783
785
  },
784
786
  selectors: {
785
- bookmarkList: qa,
786
- bookmarkListIsInitialized: $a,
787
- bookmarkEditBookmark: Va,
788
- bookmarkByArticleId: Ha
787
+ bookmarkList: $a,
788
+ bookmarkListIsInitialized: Va,
789
+ bookmarkEditBookmark: Ha,
790
+ bookmarkByArticleId: Ga
789
791
  },
790
- getRTHandlers: Ua
792
+ getRTHandlers: Fa
791
793
  }, Gt = {
792
794
  list: [],
793
795
  statuses: ["subscribed", "unanswered"],
@@ -796,7 +798,7 @@ const Qi = function(t) {
796
798
  pendingStatusChanges: []
797
799
  };
798
800
  let ut = null;
799
- const Ai = (t, e, i = 500) => {
801
+ const Ei = (t, e, i = 500) => {
800
802
  ut && clearTimeout(ut), ut = setTimeout(() => {
801
803
  t(j(e));
802
804
  }, i);
@@ -822,7 +824,7 @@ const Ai = (t, e, i = 500) => {
822
824
  } catch (d) {
823
825
  return v(d) || a(f.actions.error({ label: E(d) })), i({ error: 1, errorMsg: "Cannot retrieve events" });
824
826
  }
825
- }), Ei = u("calendarEvents/setDates", async (t, { dispatch: e }) => (Ai(e, { dates: t }), !0)), Si = u("calendarEvents/setTypes", async (t, { dispatch: e }) => (Ai(e, { types: t }), !0)), Ce = u("calendarEvents/changeResponse", async (t, { dispatch: e, extra: i, signal: a, rejectWithValue: r }) => {
827
+ }), Si = u("calendarEvents/setDates", async (t, { dispatch: e }) => (Ei(e, { dates: t }), !0)), Ti = u("calendarEvents/setTypes", async (t, { dispatch: e }) => (Ei(e, { types: t }), !0)), Ce = u("calendarEvents/changeResponse", async (t, { dispatch: e, extra: i, signal: a, rejectWithValue: r }) => {
826
828
  try {
827
829
  return t.status === "unknown" ? await i.jApi.global.removeAction(
828
830
  {
@@ -891,13 +893,13 @@ const Ai = (t, e, i = 500) => {
891
893
  (n) => n.requestId !== i.meta.requestId
892
894
  );
893
895
  }
894
- }).addCase(Ei.pending, (e, i) => {
895
- e.dates = { start: i.meta.arg.start, end: i.meta.arg.end }, e.loading = "pending";
896
896
  }).addCase(Si.pending, (e, i) => {
897
+ e.dates = { start: i.meta.arg.start, end: i.meta.arg.end }, e.loading = "pending";
898
+ }).addCase(Ti.pending, (e, i) => {
897
899
  e.types = i.meta.arg, e.loading = "pending";
898
900
  });
899
901
  }
900
- }), ie = (t) => ["socialEvent", "meeting", "animatedMeeting", "recurringEvent", "recurringEventOccurrence"].includes(t), Ga = function(t, e) {
902
+ }), ie = (t) => ["socialEvent", "meeting", "animatedMeeting", "recurringEvent", "recurringEventOccurrence"].includes(t), Xa = function(t, e) {
901
903
  const i = function(s) {
902
904
  if (s.namespace === "JAMESPOT" && s.function === "article-create" && ie(s.object.type)) {
903
905
  if (s.object.type === "recurringEvent") {
@@ -973,25 +975,25 @@ const Ai = (t, e, i = 500) => {
973
975
  handler: n
974
976
  }
975
977
  ];
976
- }, Xa = O({
978
+ }, Ja = O({
977
979
  [x.name]: x.reducer
978
- }), Ja = {
980
+ }), Ka = {
979
981
  name: "calendar",
980
- reducer: Xa
981
- }, Ka = (t) => t.calendar.events, Cl = {
982
- slice: Ja,
982
+ reducer: Ja
983
+ }, Ya = (t) => t.calendar.events, bl = {
984
+ slice: Ka,
983
985
  actions: {
984
986
  fetchEvents: j,
985
- setDates: Ei,
986
- setTypes: Si,
987
+ setDates: Si,
988
+ setTypes: Ti,
987
989
  changeResponse: Ce,
988
990
  ...x.actions
989
991
  },
990
992
  selectors: {
991
- selectCalendarEvents: Ka
993
+ selectCalendarEvents: Ya
992
994
  },
993
- getCalendarRTHandlers: Ga
994
- }, Ya = {
995
+ getCalendarRTHandlers: Xa
996
+ }, Qa = {
995
997
  loading: "idle",
996
998
  comments: []
997
999
  }, P = u(
@@ -1018,7 +1020,7 @@ const Ai = (t, e, i = 500) => {
1018
1020
  }
1019
1021
  ), Tt = T({
1020
1022
  name: "commentList",
1021
- initialState: Ya,
1023
+ initialState: Qa,
1022
1024
  reducers: {
1023
1025
  discardComments: (t, e) => {
1024
1026
  t.comments = t.comments.filter((i) => i.idArticle !== e.payload.idArticle);
@@ -1082,7 +1084,7 @@ const Ai = (t, e, i = 500) => {
1082
1084
  });
1083
1085
  });
1084
1086
  }
1085
- }), Qa = function(t, e) {
1087
+ }), za = function(t, e) {
1086
1088
  return [
1087
1089
  {
1088
1090
  namespace: "JAMESPOT",
@@ -1099,7 +1101,7 @@ const Ai = (t, e, i = 500) => {
1099
1101
  }
1100
1102
  }
1101
1103
  ];
1102
- }, za = function(t, e, i) {
1104
+ }, Za = function(t, e, i) {
1103
1105
  const a = function(r) {
1104
1106
  r.namespace === "CUSTOM-ACTION" && (r.function === "add" || r.function === "remove") && r.object.type === "sociallike" && r.object.targetId && e?.includes(r.object.targetId) && t(P({ idArticle: i }));
1105
1107
  };
@@ -1107,29 +1109,29 @@ const Ai = (t, e, i = 500) => {
1107
1109
  { namespace: "CUSTOM-ACTION", function: "add", handler: a },
1108
1110
  { namespace: "CUSTOM-ACTION", function: "remove", handler: a }
1109
1111
  ] : [];
1110
- }, Za = O({
1112
+ }, er = O({
1111
1113
  [Tt.name]: Tt.reducer
1112
- }), er = {
1114
+ }), tr = {
1113
1115
  name: "comment",
1114
- reducer: Za
1115
- }, tr = (t, e, i = 0) => {
1116
+ reducer: er
1117
+ }, ir = (t, e, i = 0) => {
1116
1118
  const a = t.comment.commentList.comments.find((n) => n.idArticle === e), r = a ? [...a.list].sort((n, s) => n.id - s.id) : [];
1117
1119
  return i !== 0 ? r.slice(-i) : r;
1118
- }, bl = {
1119
- slice: er,
1120
+ }, wl = {
1121
+ slice: tr,
1120
1122
  actions: { fetchComments: P, deleteComment: St, ...Tt.actions },
1121
1123
  selectors: {
1122
- commentList: tr
1124
+ commentList: ir
1123
1125
  },
1124
- getCommentRTHandlers: Qa,
1125
- getCommentsLikeRTHandlers: za
1126
+ getCommentRTHandlers: za,
1127
+ getCommentsLikeRTHandlers: Za
1126
1128
  }, R = {
1127
1129
  route: "extra-bot",
1128
1130
  moduleName: "ExtraBotHook",
1129
1131
  configurationType: "extraBot",
1130
1132
  listLimit: 20,
1131
1133
  listDefaultPage: 1
1132
- }, ir = {
1134
+ }, ar = {
1133
1135
  global: {
1134
1136
  loading: "idle"
1135
1137
  },
@@ -1232,12 +1234,12 @@ const Ai = (t, e, i = 500) => {
1232
1234
  return v(r) || a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot retrieve extra bot" });
1233
1235
  }
1234
1236
  }
1235
- ), ar = (t, e, i, a) => {
1237
+ ), rr = (t, e, i, a) => {
1236
1238
  const r = t.listAll.data.find((s) => s.uri === e), n = t.listMines.data.find((s) => s.uri === e);
1237
1239
  r && (r[i] = a), n && (n[i] = a);
1238
1240
  }, Xt = T({
1239
1241
  name: "extraBot",
1240
- initialState: ir,
1242
+ initialState: ar,
1241
1243
  reducers: {
1242
1244
  setListAllOrder: (t, e) => {
1243
1245
  t.listAll.orders = [...e.payload], t.listAll.page = R.listDefaultPage;
@@ -1282,7 +1284,7 @@ const Ai = (t, e, i = 500) => {
1282
1284
  }).addCase(we.fulfilled, (e, i) => {
1283
1285
  e.global.loading = "idle";
1284
1286
  const a = i.payload;
1285
- ar(e, a.uri, "enabled", a.enabled);
1287
+ rr(e, a.uri, "enabled", a.enabled);
1286
1288
  }).addCase(we.rejected, (e) => {
1287
1289
  e.global.loading = "idle";
1288
1290
  }).addCase(Le.pending, (e) => {
@@ -1293,7 +1295,7 @@ const Ai = (t, e, i = 500) => {
1293
1295
  e.global.loading = "idle";
1294
1296
  });
1295
1297
  }
1296
- }), rr = (t) => t.extraBot.listAll, nr = (t) => t.extraBot.listMines, wl = {
1298
+ }), nr = (t) => t.extraBot.listAll, sr = (t) => t.extraBot.listMines, Ll = {
1297
1299
  slice: Xt,
1298
1300
  actions: {
1299
1301
  fetchExtraBotListAll: J,
@@ -1302,8 +1304,8 @@ const Ai = (t, e, i = 500) => {
1302
1304
  saveExtraBot: Le,
1303
1305
  ...Xt.actions
1304
1306
  },
1305
- selectors: { selectExtraBotListAll: rr, selectExtraBotListMines: nr }
1306
- }, sr = {
1307
+ selectors: { selectExtraBotListAll: nr, selectExtraBotListMines: sr }
1308
+ }, or = {
1307
1309
  loading: "idle",
1308
1310
  access: { createCategory: !1 }
1309
1311
  }, Ie = u(
@@ -1331,7 +1333,7 @@ const Ai = (t, e, i = 500) => {
1331
1333
  }
1332
1334
  ), Jt = T({
1333
1335
  name: "config",
1334
- initialState: sr,
1336
+ initialState: or,
1335
1337
  reducers: {},
1336
1338
  extraReducers: (t) => {
1337
1339
  t.addCase(Ie.pending, (e) => {
@@ -1340,14 +1342,14 @@ const Ai = (t, e, i = 500) => {
1340
1342
  e.loading == "pending" && (e.loading = "idle");
1341
1343
  });
1342
1344
  }
1343
- }), or = {
1345
+ }), lr = {
1344
1346
  loading: "idle",
1345
1347
  categories: null
1346
1348
  }, ve = u("faqCategories/fetch", async (t, { extra: e }) => ({
1347
1349
  categories: (await e.jApi.faq.getCategoriesList()).result.data
1348
1350
  })), Kt = T({
1349
1351
  name: "categories",
1350
- initialState: or,
1352
+ initialState: lr,
1351
1353
  reducers: {},
1352
1354
  extraReducers: (t) => {
1353
1355
  t.addCase(ve.pending, (e) => {
@@ -1356,26 +1358,26 @@ const Ai = (t, e, i = 500) => {
1356
1358
  e.loading == "pending" && (e.loading = "idle");
1357
1359
  });
1358
1360
  }
1359
- }), lr = O({
1361
+ }), dr = O({
1360
1362
  [Jt.name]: Jt.reducer,
1361
1363
  [Kt.name]: Kt.reducer
1362
- }), dr = {
1364
+ }), cr = {
1363
1365
  name: "faq",
1364
- reducer: lr
1365
- }, cr = (t) => t.faq.config, ur = (t) => t.faq.categories, Ll = {
1366
- slice: dr,
1366
+ reducer: dr
1367
+ }, ur = (t) => t.faq.config, pr = (t) => t.faq.categories, Il = {
1368
+ slice: cr,
1367
1369
  actions: {
1368
1370
  fetchFaqConfig: Ie,
1369
1371
  fetchFaqCategories: ve
1370
1372
  },
1371
1373
  selectors: {
1372
- selectFaqConfig: cr,
1373
- selectFaqCategories: ur
1374
+ selectFaqConfig: ur,
1375
+ selectFaqCategories: pr
1374
1376
  }
1375
1377
  }, K = {
1376
1378
  listLimit: 50,
1377
1379
  listDefaultPage: 1
1378
- }, pr = {
1380
+ }, gr = {
1379
1381
  list: {
1380
1382
  loading: "idle",
1381
1383
  data: [],
@@ -1425,7 +1427,7 @@ const Ai = (t, e, i = 500) => {
1425
1427
  }
1426
1428
  ), Yt = T({
1427
1429
  name: "fileIntegrity",
1428
- initialState: pr,
1430
+ initialState: gr,
1429
1431
  reducers: {
1430
1432
  setListOrder: (t, e) => {
1431
1433
  t.list.orders = [...e.payload], t.list.page = K.listDefaultPage;
@@ -1458,7 +1460,7 @@ const Ai = (t, e, i = 500) => {
1458
1460
  e.action.loading = "idle";
1459
1461
  });
1460
1462
  }
1461
- }), gr = (t) => t.fileIntegrity.action, fr = (t) => t.fileIntegrity.list, Il = {
1463
+ }), fr = (t) => t.fileIntegrity.action, mr = (t) => t.fileIntegrity.list, vl = {
1462
1464
  slice: Yt,
1463
1465
  actions: {
1464
1466
  deleteQuarantine: Re,
@@ -1466,18 +1468,18 @@ const Ai = (t, e, i = 500) => {
1466
1468
  releaseQuarantine: Oe,
1467
1469
  ...Yt.actions
1468
1470
  },
1469
- selectors: { selectFileIntegrityAction: gr, selectFileIntegrityList: fr }
1470
- }, mr = (t) => t ? Object.keys(t).filter((e) => t[e]) : [], Qt = T({
1471
+ selectors: { selectFileIntegrityAction: fr, selectFileIntegrityList: mr }
1472
+ }, yr = (t) => t ? Object.keys(t).filter((e) => t[e]) : [], Qt = T({
1471
1473
  name: "hooks",
1472
1474
  initialState: {},
1473
1475
  reducers: {
1474
1476
  initHooks: (t, { payload: e }) => e
1475
1477
  }
1476
- }), yr = (t) => t.hooks, Ar = (t, e) => t.hooks[e], Er = (t, e) => !!t.hooks[e]?.hasLicense, vl = {
1478
+ }), Ar = (t) => t.hooks, Er = (t, e) => t.hooks[e], Sr = (t, e) => !!t.hooks[e]?.hasLicense, hl = {
1477
1479
  slice: Qt,
1478
1480
  actions: Qt.actions,
1479
- selectors: { selectHooks: yr, selectHook: Ar, hasHookLicense: Er },
1480
- utils: { buildDrivesArrayFromObject: mr }
1481
+ selectors: { selectHooks: Ar, selectHook: Er, hasHookLicense: Sr },
1482
+ utils: { buildDrivesArrayFromObject: yr }
1481
1483
  }, kt = (t) => {
1482
1484
  const e = t.urlToJland;
1483
1485
  if (!e)
@@ -1609,7 +1611,7 @@ const Ai = (t, e, i = 500) => {
1609
1611
  e.loadingMapDeletion === "pending" && (e.loadingMapDeletion = "idle");
1610
1612
  });
1611
1613
  }
1612
- }), Sr = {
1614
+ }), Tr = {
1613
1615
  title: "",
1614
1616
  type: "",
1615
1617
  flavor: "",
@@ -1618,7 +1620,7 @@ const Ai = (t, e, i = 500) => {
1618
1620
  illustration: "",
1619
1621
  assignLicense: !1
1620
1622
  }, Zt = {
1621
- map: { ...Sr },
1623
+ map: { ...Tr },
1622
1624
  loading: "idle",
1623
1625
  status: void 0,
1624
1626
  msg: void 0
@@ -1666,20 +1668,20 @@ const Ai = (t, e, i = 500) => {
1666
1668
  e.msg = i.error.message ?? void 0, e.status = "error", e.loading = "idle";
1667
1669
  });
1668
1670
  }
1669
- }), Tr = function(e) {
1671
+ }), Cr = function(e) {
1670
1672
  return e.jland.jLandMapList.maps;
1671
- }, Cr = function(e) {
1672
- return e.jland.jLandMapList.availableLicenses;
1673
1673
  }, br = function(e) {
1674
+ return e.jland.jLandMapList.availableLicenses;
1675
+ }, wr = function(e) {
1674
1676
  return e.jland.mapCreate;
1675
- }, wr = O({
1677
+ }, Lr = O({
1676
1678
  [zt.name]: zt.reducer,
1677
1679
  [Ct.name]: Ct.reducer
1678
- }), Lr = {
1680
+ }), Ir = {
1679
1681
  name: "jland",
1680
- reducer: wr
1681
- }, hl = {
1682
- slice: Lr,
1682
+ reducer: Lr
1683
+ }, Ol = {
1684
+ slice: Ir,
1683
1685
  actions: {
1684
1686
  ...Ct.actions,
1685
1687
  assignLicense: Y,
@@ -1690,12 +1692,12 @@ const Ai = (t, e, i = 500) => {
1690
1692
  createMap: Me
1691
1693
  },
1692
1694
  selectors: {
1693
- selectJLandMaps: Tr,
1694
- selectJLandAvailableLicenses: Cr,
1695
- selectMapCreate: br
1695
+ selectJLandMaps: Cr,
1696
+ selectJLandAvailableLicenses: br,
1697
+ selectMapCreate: wr
1696
1698
  },
1697
1699
  utils: { buildUrlToJland: Dt }
1698
- }, Ir = {
1700
+ }, vr = {
1699
1701
  loading: "idle",
1700
1702
  pads: [],
1701
1703
  query: "",
@@ -1705,9 +1707,9 @@ const Ai = (t, e, i = 500) => {
1705
1707
  orders: [],
1706
1708
  limit: 10,
1707
1709
  nbResults: 0
1708
- }, vr = T({
1710
+ }, hr = T({
1709
1711
  name: "magicPad",
1710
- initialState: Ir,
1712
+ initialState: vr,
1711
1713
  reducers: {
1712
1714
  setTab: (t, e) => {
1713
1715
  t.tab = e.payload, t.page = 1, t.orders = [], t.filters = [];
@@ -1759,16 +1761,16 @@ const Ai = (t, e, i = 500) => {
1759
1761
  } catch (n) {
1760
1762
  return a(f.actions.error({ label: E(n) })), i({ error: 1, errorMsg: "Cannot fetch pads" });
1761
1763
  }
1762
- }), hr = (t) => t.magicPad, Ol = {
1763
- slice: vr,
1764
+ }), Or = (t) => t.magicPad, Rl = {
1765
+ slice: hr,
1764
1766
  actions: {
1765
1767
  fetchPads: xe
1766
1768
  },
1767
- selectors: { selectMagicPad: hr }
1769
+ selectors: { selectMagicPad: Or }
1768
1770
  }, bt = {
1769
1771
  typeMediaLibraryFolder: "mediaLibraryFolder",
1770
1772
  typeMediaLibraryFile: "mediaLibraryFile"
1771
- }, Or = 18, Rr = 12, kr = 18, Dr = {
1773
+ }, Rr = 18, kr = 12, Dr = 18, Mr = {
1772
1774
  loading: "idle",
1773
1775
  nbResults: 0,
1774
1776
  query: "",
@@ -1780,9 +1782,9 @@ const Ai = (t, e, i = 500) => {
1780
1782
  stats: null,
1781
1783
  foldersStats: { loading: !1, pager: null },
1782
1784
  filesStats: { loading: !1, pager: null }
1783
- }, Ti = T({
1785
+ }, Ci = T({
1784
1786
  name: "mediaLibrary",
1785
- initialState: Dr,
1787
+ initialState: Mr,
1786
1788
  reducers: {
1787
1789
  removeFileFromFolder(t, e) {
1788
1790
  return {
@@ -1855,7 +1857,7 @@ const Ai = (t, e, i = 500) => {
1855
1857
  page: t,
1856
1858
  orders: [{ name: "title", sort: "ASC" }]
1857
1859
  };
1858
- e || (l.limit = Rr);
1860
+ e || (l.limit = kr);
1859
1861
  try {
1860
1862
  const d = s().mediaLibrary;
1861
1863
  return l.query = i ?? d.query, await a.jApi.article.list(l, {
@@ -1870,7 +1872,7 @@ const Ai = (t, e, i = 500) => {
1870
1872
  const n = {
1871
1873
  type: bt.typeMediaLibraryFile,
1872
1874
  page: e,
1873
- limit: kr,
1875
+ limit: Dr,
1874
1876
  filters: [
1875
1877
  {
1876
1878
  name: "mediaLibraryFolderOrientedLinks",
@@ -1891,7 +1893,7 @@ const Ai = (t, e, i = 500) => {
1891
1893
  const s = n().mediaLibrary, l = e ?? s.query;
1892
1894
  return await i.jApi.mediaLibrary.GetUnclassifiedFiles({
1893
1895
  page: t,
1894
- limit: Or,
1896
+ limit: Rr,
1895
1897
  query: l
1896
1898
  });
1897
1899
  } catch (s) {
@@ -1933,8 +1935,8 @@ const Ai = (t, e, i = 500) => {
1933
1935
  return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot get MediaLibrary stats" });
1934
1936
  }
1935
1937
  }
1936
- ), Mr = (t) => t.mediaLibrary, xr = (t) => t.mediaLibrary.stats, jr = (t) => t.mediaLibrary.foldersStats, _r = (t) => t.mediaLibrary.filesStats, Nr = (t) => t.mediaLibrary.folders, Pr = (t) => t.mediaLibrary.foldersAll, Ur = (t) => t.mediaLibrary.folderFiles, Fr = (t) => t.mediaLibrary.unclassifiedFiles, Rl = Ti.reducer, kl = {
1937
- slice: Ti,
1938
+ ), xr = (t) => t.mediaLibrary, jr = (t) => t.mediaLibrary.stats, _r = (t) => t.mediaLibrary.foldersStats, Nr = (t) => t.mediaLibrary.filesStats, Pr = (t) => t.mediaLibrary.folders, Ur = (t) => t.mediaLibrary.foldersAll, Fr = (t) => t.mediaLibrary.folderFiles, Wr = (t) => t.mediaLibrary.unclassifiedFiles, kl = Ci.reducer, Dl = {
1939
+ slice: Ci,
1938
1940
  actions: {
1939
1941
  fetchMediaLibraryFolders: je,
1940
1942
  fetchFolderFiles: _e,
@@ -1945,26 +1947,26 @@ const Ai = (t, e, i = 500) => {
1945
1947
  fetchMediaLibraryFoldersStats: Ue
1946
1948
  },
1947
1949
  selectors: {
1948
- selectMediaLibrary: Mr,
1949
- selectMediaLibraryStats: xr,
1950
- selectMediaLibraryFoldersStats: jr,
1951
- selectMediaLibraryFilesStats: _r,
1952
- selectFolders: Nr,
1953
- selectFolderAll: Pr,
1954
- selectFolderFiles: Ur,
1955
- selectUnclassifiedFiles: Fr
1950
+ selectMediaLibrary: xr,
1951
+ selectMediaLibraryStats: jr,
1952
+ selectMediaLibraryFoldersStats: _r,
1953
+ selectMediaLibraryFilesStats: Nr,
1954
+ selectFolders: Pr,
1955
+ selectFolderAll: Ur,
1956
+ selectFolderFiles: Fr,
1957
+ selectUnclassifiedFiles: Wr
1956
1958
  }
1957
1959
  }, H = dt({
1958
1960
  selectId: (t) => t.type,
1959
1961
  sortComparer: (t, e) => t.label.localeCompare(e.label)
1960
- }), Wr = (t, e) => {
1962
+ }), Br = (t, e) => {
1961
1963
  const i = {
1962
1964
  from: "imagestatic",
1963
1965
  size: e ?? "fitx600",
1964
1966
  uri: `icons/${t?.icon ?? "article"}-white`
1965
1967
  };
1966
- return Ki(i);
1967
- }, Br = (t) => `icon-${{
1968
+ return Yi(i);
1969
+ }, qr = (t) => `icon-${{
1968
1970
  actionplan: "fs-actionplan",
1969
1971
  animatedMeeting: "fs-animated_meeting",
1970
1972
  // Diapazone
@@ -2018,64 +2020,64 @@ const Ai = (t, e, i = 500) => {
2018
2020
  addMany: H.addMany,
2019
2021
  setAll: H.setAll
2020
2022
  }
2021
- }), qr = H.getSelectors((t) => t.entities.models), $r = {
2022
- getModelIconSrc: Wr,
2023
- getModelFontAwesomeIcon: Br
2024
- }, Vr = (t, e) => e.map((i) => t.entities.models.entities[i]).filter((i) => !!i), Hr = {
2023
+ }), $r = H.getSelectors((t) => t.entities.models), Vr = {
2024
+ getModelIconSrc: Br,
2025
+ getModelFontAwesomeIcon: qr
2026
+ }, Hr = (t, e) => e.map((i) => t.entities.models.entities[i]).filter((i) => !!i), Gr = {
2025
2027
  slice: ei,
2026
2028
  actions: { ...ei.actions },
2027
- utils: $r,
2029
+ utils: Vr,
2028
2030
  selectors: {
2029
- ...qr,
2030
- selectByIds: Vr
2031
+ ...$r,
2032
+ selectByIds: Hr
2031
2033
  }
2032
- }, Gr = {}, wt = T({
2034
+ }, Xr = {}, wt = T({
2033
2035
  name: "statics",
2034
- initialState: Gr,
2036
+ initialState: Xr,
2035
2037
  reducers: {
2036
2038
  initNetworkStatics: (t, { payload: e }) => e
2037
2039
  }
2038
- }), Xr = O({
2040
+ }), Jr = O({
2039
2041
  [wt.name]: wt.reducer
2040
- }), Jr = {
2042
+ }), Kr = {
2041
2043
  name: "network",
2042
- reducer: Xr
2043
- }, Kr = (t) => t.network.statics, Yr = (t) => t.network.statics.networkPublic, Qr = (t) => t.network.statics.networkMe, Dl = {
2044
- slice: Jr,
2044
+ reducer: Jr
2045
+ }, Yr = (t) => t.network.statics, Qr = (t) => t.network.statics.networkPublic, zr = (t) => t.network.statics.networkMe, Ml = {
2046
+ slice: Kr,
2045
2047
  actions: {
2046
2048
  ...wt.actions
2047
2049
  },
2048
2050
  selectors: {
2049
- selectNetworkStatics: Kr,
2050
- selectNetworkPublic: Yr,
2051
- selectNetworkMe: Qr
2051
+ selectNetworkStatics: Yr,
2052
+ selectNetworkPublic: Qr,
2053
+ selectNetworkMe: zr
2052
2054
  }
2053
- }, zr = {
2055
+ }, Zr = {
2054
2056
  userAccountStatus: 0,
2055
2057
  sendAlert: 0
2056
- }, Ci = T({
2058
+ }, bi = T({
2057
2059
  name: "config",
2058
- initialState: zr,
2060
+ initialState: Zr,
2059
2061
  reducers: {
2060
2062
  initPlatformConfig: (t, { payload: e }) => e
2061
2063
  }
2062
- }), Zr = O({
2063
- config: Ci.reducer
2064
- }), en = {
2064
+ }), en = O({
2065
+ config: bi.reducer
2066
+ }), tn = {
2065
2067
  name: "platform",
2066
- reducer: Zr
2067
- }, tn = (t) => t.platform.config, an = (t) => t.platform.config.userHighlightFields, rn = (t) => t.platform.config.userAccountStatus, nn = (t) => t.platform.config.urlBase, Ml = {
2068
- slice: en,
2068
+ reducer: en
2069
+ }, an = (t) => t.platform.config, rn = (t) => t.platform.config.userHighlightFields, nn = (t) => t.platform.config.userAccountStatus, sn = (t) => t.platform.config.urlBase, xl = {
2070
+ slice: tn,
2069
2071
  actions: {
2070
- ...Ci.actions
2072
+ ...bi.actions
2071
2073
  },
2072
2074
  selectors: {
2073
- selectPlatformConfig: tn,
2074
- selectUserHighlightFields: an,
2075
- selectUserAccountStatus: rn,
2076
- selectUrlBase: nn
2075
+ selectPlatformConfig: an,
2076
+ selectUserHighlightFields: rn,
2077
+ selectUserAccountStatus: nn,
2078
+ selectUrlBase: sn
2077
2079
  }
2078
- }, bi = {
2080
+ }, wi = {
2079
2081
  query: "",
2080
2082
  filters: [],
2081
2083
  limit: 20,
@@ -2083,14 +2085,14 @@ const Ai = (t, e, i = 500) => {
2083
2085
  page: 1
2084
2086
  }, Be = u("/fetchFiles", async ({ page: t, query: e, sort: i }, { extra: a, getState: r }) => {
2085
2087
  const n = a.jApi, s = r(), l = s.wedoc.tab === "my-documents" ? [{ name: "idUser", value: "0" }] : [], d = [{ name: "dateCreation", sort: i }], g = e !== s.wedoc.query ? 1 : t;
2086
- return await n.wedoc.getFiles({ ...bi, filters: l, query: e, orders: d, page: g, limit: 12 });
2088
+ return await n.wedoc.getFiles({ ...wi, filters: l, query: e, orders: d, page: g, limit: 12 });
2087
2089
  }), qe = u(
2088
2090
  "/fetchRecentFiles",
2089
2091
  async (t, { extra: e, getState: i }) => {
2090
2092
  const a = e.jApi, n = i().wedoc.tab === "my-documents" ? [{ name: "idUser", value: "0" }] : [];
2091
- return await a.wedoc.getFiles({ ...bi, filters: n, limit: 3 });
2093
+ return await a.wedoc.getFiles({ ...wi, filters: n, limit: 3 });
2092
2094
  }
2093
- ), sn = {
2095
+ ), on = {
2094
2096
  entities: [],
2095
2097
  nbEntities: 0,
2096
2098
  entitiesRecent: [],
@@ -2099,9 +2101,9 @@ const Ai = (t, e, i = 500) => {
2099
2101
  loadingRecent: "idle",
2100
2102
  query: "",
2101
2103
  page: 1
2102
- }, on = T({
2104
+ }, ln = T({
2103
2105
  name: "wedoc",
2104
- initialState: sn,
2106
+ initialState: on,
2105
2107
  reducers: {
2106
2108
  update: (t, e) => {
2107
2109
  t.entities = [
@@ -2132,8 +2134,8 @@ const Ai = (t, e, i = 500) => {
2132
2134
  e.loadingRecent = "idle";
2133
2135
  });
2134
2136
  }
2135
- }), xl = {
2136
- slice: on,
2137
+ }), jl = {
2138
+ slice: ln,
2137
2139
  selectors: {
2138
2140
  getFiles: (t) => ({
2139
2141
  entities: t.wedoc.entities,
@@ -2153,13 +2155,13 @@ const Ai = (t, e, i = 500) => {
2153
2155
  fetchFiles: Be,
2154
2156
  fetchRecentFiles: qe
2155
2157
  }
2156
- }, $e = u("/fetchRequest", async ({ uri: t, idUser: e }, { extra: i }) => await i.jApi.object.getAccessRequest(t, e)), ln = {
2158
+ }, $e = u("/fetchRequest", async ({ uri: t, idUser: e }, { extra: i }) => await i.jApi.object.getAccessRequest(t, e)), dn = {
2157
2159
  entities: [],
2158
2160
  nbEntities: 0,
2159
2161
  loading: "idle"
2160
- }, dn = T({
2162
+ }, cn = T({
2161
2163
  name: "share",
2162
- initialState: ln,
2164
+ initialState: dn,
2163
2165
  reducers: {
2164
2166
  remove: (t, e) => {
2165
2167
  t.entities = [...t.entities.filter((i) => i.id !== e.payload)];
@@ -2174,8 +2176,8 @@ const Ai = (t, e, i = 500) => {
2174
2176
  e.loading = "idle";
2175
2177
  });
2176
2178
  }
2177
- }), jl = {
2178
- slice: dn,
2179
+ }), _l = {
2180
+ slice: cn,
2179
2181
  selectors: {
2180
2182
  requests: (t) => ({
2181
2183
  loading: t.share.loading,
@@ -2185,14 +2187,14 @@ const Ai = (t, e, i = 500) => {
2185
2187
  actions: {
2186
2188
  fetchRequest: $e
2187
2189
  }
2188
- }, cn = {
2190
+ }, un = {
2189
2191
  messages: [],
2190
2192
  status: "idle",
2191
2193
  tasks: void 0,
2192
2194
  jobUid: void 0
2193
2195
  }, rt = T({
2194
2196
  name: "teamWorkAiTasks",
2195
- initialState: cn,
2197
+ initialState: un,
2196
2198
  reducers: {
2197
2199
  setMessageAndStatus: (t, e) => {
2198
2200
  if (e.payload.jobUid !== t.jobUid)
@@ -2220,11 +2222,11 @@ const Ai = (t, e, i = 500) => {
2220
2222
  return v(n) || a(f.actions.error({ label: E(n) })), i({ error: 1, errorMsg: "APP_TEAMWORK_ToDo_Not_Sent" });
2221
2223
  }
2222
2224
  }
2223
- ), un = function(t) {
2225
+ ), pn = function(t) {
2224
2226
  const e = function(i) {
2225
2227
  i.namespace === "TEAMWORK" && i.function === "updateTodo" && (t(
2226
2228
  rt.actions.setMessageAndStatus({ status: i.state, messages: i.messages, jobUid: i.jobUid })
2227
- ), i.state === "success" && t(fn.actions.setTasks({ tasks: i.tasks, jobUid: i.jobUid })));
2229
+ ), i.state === "success" && t(mn.actions.setTasks({ tasks: i.tasks, jobUid: i.jobUid })));
2228
2230
  };
2229
2231
  return [
2230
2232
  {
@@ -2238,20 +2240,20 @@ const Ai = (t, e, i = 500) => {
2238
2240
  handler: e
2239
2241
  }
2240
2242
  ];
2241
- }, pn = (t) => t.teamWork.teamWorkAiTasks, gn = O({
2243
+ }, gn = (t) => t.teamWork.teamWorkAiTasks, fn = O({
2242
2244
  [rt.name]: rt.reducer
2243
- }), wi = {
2245
+ }), Li = {
2244
2246
  name: "teamWork",
2245
- reducer: gn
2246
- }, _l = wi.reducer, fn = {
2247
- slice: wi,
2247
+ reducer: fn
2248
+ }, Nl = Li.reducer, mn = {
2249
+ slice: Li,
2248
2250
  actions: {
2249
2251
  ...rt.actions,
2250
2252
  startToDoCreation: Lt
2251
2253
  },
2252
- selectors: { selectToDoState: pn },
2253
- getTeamWorkRTHandlers: un
2254
- }, mn = {
2254
+ selectors: { selectToDoState: gn },
2255
+ getTeamWorkRTHandlers: pn
2256
+ }, yn = {
2255
2257
  channels: void 0,
2256
2258
  loading: "idle",
2257
2259
  loadingChannelDeletion: "idle"
@@ -2285,7 +2287,7 @@ const Ai = (t, e, i = 500) => {
2285
2287
  });
2286
2288
  }), ti = T({
2287
2289
  name: "channelsList",
2288
- initialState: { ...mn },
2290
+ initialState: { ...yn },
2289
2291
  reducers: {},
2290
2292
  extraReducers: (t) => {
2291
2293
  t.addCase(Q.pending, (e) => {
@@ -2303,49 +2305,49 @@ const Ai = (t, e, i = 500) => {
2303
2305
  });
2304
2306
  }
2305
2307
  });
2306
- function yn(t) {
2308
+ function An(t) {
2307
2309
  return t.tvChannelType === "DYNAMIC" ? !!t.tvChannelBackgroundColor && !!t.tvChannelGroupTarget : t.tvChannelNumImages !== 0;
2308
2310
  }
2309
- const An = O({
2311
+ const En = O({
2310
2312
  [ti.name]: ti.reducer
2311
- }), En = {
2313
+ }), Sn = {
2312
2314
  name: "tvDisplay",
2313
- reducer: An
2314
- }, Sn = function(e) {
2315
+ reducer: En
2316
+ }, Tn = function(e) {
2315
2317
  return e.tvDisplay.channelsList;
2316
- }, Nl = {
2317
- slice: En,
2318
+ }, Pl = {
2319
+ slice: Sn,
2318
2320
  actions: {
2319
2321
  fetchChannels: Q,
2320
2322
  deleteChannel: Ve
2321
2323
  },
2322
2324
  selectors: {
2323
- selectChannelsList: Sn
2325
+ selectChannelsList: Tn
2324
2326
  },
2325
2327
  utils: {
2326
- isChannelConfigured: yn
2328
+ isChannelConfigured: An
2327
2329
  }
2328
- }, Tn = {}, It = T({
2330
+ }, Cn = {}, It = T({
2329
2331
  name: "options",
2330
- initialState: Tn,
2332
+ initialState: Cn,
2331
2333
  reducers: {
2332
2334
  initOptions: (t, { payload: e }) => e
2333
2335
  }
2334
- }), Cn = O({
2336
+ }), bn = O({
2335
2337
  [It.name]: It.reducer
2336
- }), bn = {
2338
+ }), wn = {
2337
2339
  name: "tinymce",
2338
- reducer: Cn
2339
- }, wn = (t) => t.tinymce.options.common, Ln = (t) => t.tinymce.options.extended, Pl = {
2340
- slice: bn,
2340
+ reducer: bn
2341
+ }, Ln = (t) => t.tinymce.options.common, In = (t) => t.tinymce.options.extended, Ul = {
2342
+ slice: wn,
2341
2343
  actions: {
2342
2344
  ...It.actions
2343
2345
  },
2344
2346
  selectors: {
2345
- selectTinyMCECommonOptions: wn,
2346
- selectTinyMCEExtendedOptions: Ln
2347
+ selectTinyMCECommonOptions: Ln,
2348
+ selectTinyMCEExtendedOptions: In
2347
2349
  }
2348
- }, In = {
2350
+ }, vn = {
2349
2351
  id: 0,
2350
2352
  mainType: "user",
2351
2353
  type: "user",
@@ -2358,17 +2360,17 @@ const An = O({
2358
2360
  active: 1
2359
2361
  }, ii = T({
2360
2362
  name: "userCurrent",
2361
- initialState: In,
2363
+ initialState: vn,
2362
2364
  reducers: {
2363
2365
  init: (t, { payload: e }) => e
2364
2366
  }
2365
- }), vn = (t) => t.userCurrent, hn = (t) => t.level === Yi.ADMIN, On = (t) => t.id !== 0, Ul = {
2367
+ }), hn = (t) => t.userCurrent, On = (t) => t.level === Qi.ADMIN, Rn = (t) => t.id !== 0, Fl = {
2366
2368
  slice: ii,
2367
2369
  actions: { ...ii.actions },
2368
2370
  selectors: {
2369
- get: vn
2371
+ get: hn
2370
2372
  },
2371
- utils: { isAdmin: hn, isLogged: On }
2373
+ utils: { isAdmin: On, isLogged: Rn }
2372
2374
  };
2373
2375
  function Mt() {
2374
2376
  let t = "";
@@ -2376,13 +2378,13 @@ function Mt() {
2376
2378
  t += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
2377
2379
  return t;
2378
2380
  }
2379
- const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDGET_Quick_Survey", hi = "WIDGET_Quick_Survey_Text", Rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2381
+ const Ii = "WIDGET_Check_List", vi = "WIDGET_Check_List_Description", hi = "WIDGET_Quick_Survey", Oi = "WIDGET_Quick_Survey_Text", kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2380
2382
  __proto__: null,
2381
- WIDGET_CHECK_LIST_DESCRIPTION: Ii,
2382
- WIDGET_CHECK_LIST_LABEL: Li,
2383
- WIDGET_QUICK_SURVEY_DESCRIPTION: hi,
2384
- WIDGET_QUICK_SURVEY_LABEL: vi
2385
- }, Symbol.toStringTag, { value: "Module" })), kn = {
2383
+ WIDGET_CHECK_LIST_DESCRIPTION: vi,
2384
+ WIDGET_CHECK_LIST_LABEL: Ii,
2385
+ WIDGET_QUICK_SURVEY_DESCRIPTION: Oi,
2386
+ WIDGET_QUICK_SURVEY_LABEL: hi
2387
+ }, Symbol.toStringTag, { value: "Module" })), Dn = {
2386
2388
  label: "WIDGET_Article_Attachment",
2387
2389
  description: "WIDGET_Article_Attachment_Description",
2388
2390
  name: C.ArticleAttachment,
@@ -2394,9 +2396,9 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2394
2396
  useSelection: !1,
2395
2397
  useWidgets: !1
2396
2398
  }
2397
- }, Dn = {
2398
- files: []
2399
2399
  }, Mn = {
2400
+ files: []
2401
+ }, xn = {
2400
2402
  label: "WIDGET_BUTTON",
2401
2403
  description: "WIDGET_Button_Description",
2402
2404
  name: C.ArticleButton,
@@ -2408,7 +2410,7 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2408
2410
  useSelection: !1,
2409
2411
  useWidgets: !1
2410
2412
  }
2411
- }, xn = {
2413
+ }, jn = {
2412
2414
  text: "",
2413
2415
  openingType: "link",
2414
2416
  openingTypeLink: {
@@ -2433,11 +2435,11 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2433
2435
  useSelection: !1,
2434
2436
  useWidgets: !1
2435
2437
  }
2436
- }, jn = {
2438
+ }, _n = {
2437
2439
  files: [],
2438
2440
  gap: "4",
2439
2441
  column: "3"
2440
- }, _n = {
2442
+ }, Nn = {
2441
2443
  label: "WIDGET_Article_Image",
2442
2444
  description: "WIDGET_Article_Image_Description",
2443
2445
  name: C.ArticleImage,
@@ -2449,7 +2451,7 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2449
2451
  useSelection: !1,
2450
2452
  useWidgets: !1
2451
2453
  }
2452
- }, Nn = {}, Pn = {
2454
+ }, Pn = {}, Un = {
2453
2455
  label: "WIDGET_Slider",
2454
2456
  description: "WIDGET_Slider_Description",
2455
2457
  name: C.ArticleSlider,
@@ -2461,13 +2463,13 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2461
2463
  useSelection: !1,
2462
2464
  useWidgets: !1
2463
2465
  }
2464
- }, Un = {
2466
+ }, Fn = {
2465
2467
  slides: [],
2466
2468
  maxWidth: 800,
2467
2469
  loop: !1,
2468
2470
  useDots: !0,
2469
2471
  startAt: 0
2470
- }, Fn = {
2472
+ }, Wn = {
2471
2473
  label: "WIDGET_Text",
2472
2474
  description: "WIDGET_Text_Description",
2473
2475
  name: C.ArticleText,
@@ -2479,9 +2481,9 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2479
2481
  useSelection: !1,
2480
2482
  useWidgets: !1
2481
2483
  }
2482
- }, Wn = {
2483
- text: ""
2484
2484
  }, Bn = {
2485
+ text: ""
2486
+ }, qn = {
2485
2487
  label: "WIDGET_Title",
2486
2488
  description: "WIDGET_Title_Description",
2487
2489
  name: C.ArticleTitle,
@@ -2493,11 +2495,11 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2493
2495
  useSelection: !1,
2494
2496
  useWidgets: !1
2495
2497
  }
2496
- }, qn = {
2498
+ }, $n = {
2497
2499
  text: "",
2498
2500
  heading: "h1",
2499
2501
  backgroundColor: "transparent"
2500
- }, $n = {
2502
+ }, Vn = {
2501
2503
  label: "WIDGET_Calendar_CalDav",
2502
2504
  description: "WIDGET_Calendar_CalDav_Text",
2503
2505
  name: C.CalendarCalDav,
@@ -2510,13 +2512,13 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2510
2512
  useSelection: !0,
2511
2513
  useWidgets: !1
2512
2514
  }
2513
- }, Vn = {
2515
+ }, Hn = {
2514
2516
  calEventsLimit: !1,
2515
2517
  calEventsLimitValue: 10,
2516
2518
  calEventsPromptStatus: "shared"
2517
- }, Hn = {
2518
- label: Li,
2519
- description: Ii,
2519
+ }, Gn = {
2520
+ label: Ii,
2521
+ description: vi,
2520
2522
  name: C.CheckList,
2521
2523
  img: "/img/fast-intranet/widget-check-list.png",
2522
2524
  available: !0,
@@ -2526,10 +2528,10 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2526
2528
  useSelection: !1,
2527
2529
  useWidgets: !1
2528
2530
  }
2529
- }, Gn = {
2531
+ }, Xn = {
2530
2532
  arr: [],
2531
2533
  edit: !1
2532
- }, Xn = {
2534
+ }, Jn = {
2533
2535
  label: "WIDGET_Contact_CardDav",
2534
2536
  description: "WIDGET_Contact_CardDav_Text",
2535
2537
  name: C.ContactCardDav,
@@ -2542,11 +2544,11 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2542
2544
  useSelection: !0,
2543
2545
  useWidgets: !1
2544
2546
  }
2545
- }, Jn = {
2547
+ }, Kn = {
2546
2548
  contactLimit: !1,
2547
2549
  contactLimitValue: 10,
2548
2550
  contactPromptStatus: "shared"
2549
- }, Kn = {
2551
+ }, Yn = {
2550
2552
  label: "WIDGET_Datasource_Table",
2551
2553
  description: "WIDGET_Datasource_Table_Description",
2552
2554
  name: C.DatasourceTable,
@@ -2558,14 +2560,14 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2558
2560
  useSelection: !0,
2559
2561
  useWidgets: !1
2560
2562
  }
2561
- }, Yn = {
2563
+ }, Qn = {
2562
2564
  tableHeadColor: "#f1f1f1",
2563
2565
  tableHeadTextColor: "#000",
2564
2566
  tableHeadIconColor: "#000",
2565
2567
  tableRowColor: "#f5f5f5",
2566
2568
  tableRowTextColor: "#000",
2567
2569
  limit: 20
2568
- }, Qn = {
2570
+ }, zn = {
2569
2571
  label: "WIDGET_Email_IMAP",
2570
2572
  description: "WIDGET_Email_IMAP_Text",
2571
2573
  name: C.EmailsImap,
@@ -2578,11 +2580,11 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2578
2580
  useSelection: !0,
2579
2581
  useWidgets: !1
2580
2582
  }
2581
- }, zn = {
2583
+ }, Zn = {
2582
2584
  emailsLimit: !1,
2583
2585
  emailsLimitValue: 10,
2584
2586
  emailsPromptStatus: "shared"
2585
- }, Zn = {
2587
+ }, es = {
2586
2588
  label: "WIDGET_Excel_Datasource_Table",
2587
2589
  description: "WIDGET_Excel_Datasource_Table_Text",
2588
2590
  name: C.ExcelDatasourceTable,
@@ -2594,14 +2596,14 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2594
2596
  useSelection: !0,
2595
2597
  useWidgets: !1
2596
2598
  }
2597
- }, es = {
2599
+ }, ts = {
2598
2600
  tableHeadColor: "#f1f1f1",
2599
2601
  tableHeadTextColor: "#000",
2600
2602
  tableHeadIconColor: "#000",
2601
2603
  tableRowColor: "#f5f5f5",
2602
2604
  tableRowTextColor: "#000",
2603
2605
  limit: 20
2604
- }, ts = {
2606
+ }, is = {
2605
2607
  label: "WIDGET_Extension",
2606
2608
  description: "WIDGET_Extension_Description",
2607
2609
  name: C.Extension,
@@ -2613,9 +2615,9 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2613
2615
  useSelection: !1,
2614
2616
  useWidgets: !1
2615
2617
  }
2616
- }, is = {
2617
- extensionName: ""
2618
2618
  }, as = {
2619
+ extensionName: ""
2620
+ }, rs = {
2619
2621
  label: "WIDGET_Lucca_Absence",
2620
2622
  description: "WIDGET_Lucca_Absence_Text",
2621
2623
  name: C.LuccaAbsence,
@@ -2627,9 +2629,9 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2627
2629
  useSelection: !0,
2628
2630
  useWidgets: !1
2629
2631
  }
2630
- }, rs = {
2631
- url: ""
2632
2632
  }, ns = {
2633
+ url: ""
2634
+ }, ss = {
2633
2635
  label: "WIDGET_Presence",
2634
2636
  description: "WIDGET_Presence_Text",
2635
2637
  name: C.Presence,
@@ -2641,13 +2643,13 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2641
2643
  useSelection: !1,
2642
2644
  useWidgets: !1
2643
2645
  }
2644
- }, ss = {
2646
+ }, os = {
2645
2647
  closing: !1,
2646
2648
  limit: !1,
2647
2649
  limitValue: 100
2648
- }, os = {
2649
- label: vi,
2650
- description: hi,
2650
+ }, ls = {
2651
+ label: hi,
2652
+ description: Oi,
2651
2653
  name: C.QuickSurvey,
2652
2654
  img: "/img/fast-intranet/widget-quick-survey.png",
2653
2655
  available: !0,
@@ -2657,7 +2659,7 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2657
2659
  useSelection: !1,
2658
2660
  useWidgets: !1
2659
2661
  }
2660
- }, ls = {
2662
+ }, ds = {
2661
2663
  arr: [],
2662
2664
  open: !1,
2663
2665
  multi: !1,
@@ -2665,7 +2667,7 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2665
2667
  isClosed: !1,
2666
2668
  showResult: !1,
2667
2669
  isNotDisabled: !1
2668
- }, ds = {
2670
+ }, cs = {
2669
2671
  label: "WIDGET_User_Profil",
2670
2672
  description: "WIDGET_User_Profil_Text",
2671
2673
  name: C.UserProfile,
@@ -2677,7 +2679,7 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2677
2679
  useSelection: !0,
2678
2680
  useWidgets: !1
2679
2681
  }
2680
- }, cs = {}, us = {
2682
+ }, us = {}, ps = {
2681
2683
  label: "WIDGET_Color",
2682
2684
  description: "WIDGET_Color_Text",
2683
2685
  name: C.Color,
@@ -2689,7 +2691,7 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2689
2691
  useSelection: !0,
2690
2692
  useWidgets: !1
2691
2693
  }
2692
- }, ps = {}, gs = {
2694
+ }, gs = {}, fs = {
2693
2695
  label: "WIDGET_Welcome",
2694
2696
  description: "WIDGET_Welcome_Text",
2695
2697
  name: C.Welcome,
@@ -2701,153 +2703,153 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2701
2703
  useSelection: !0,
2702
2704
  useWidgets: !1
2703
2705
  }
2704
- }, fs = {};
2705
- function ms(t) {
2706
+ }, ms = {};
2707
+ function ys(t) {
2706
2708
  switch (t) {
2707
2709
  default:
2708
2710
  return ai;
2709
2711
  case "widget-article-gallery":
2710
2712
  return ai;
2711
2713
  case "widget-article-attachment":
2712
- return kn;
2714
+ return Dn;
2713
2715
  case "widget-presence":
2714
- return ns;
2716
+ return ss;
2715
2717
  case "widget-article-slider":
2716
- return Pn;
2718
+ return Un;
2717
2719
  case "widget-article-text":
2718
- return Fn;
2720
+ return Wn;
2719
2721
  case "widget-article-title":
2720
- return Bn;
2722
+ return qn;
2721
2723
  case "widget-article-image":
2722
- return _n;
2724
+ return Nn;
2723
2725
  case "widget-datasource-table":
2724
- return Kn;
2726
+ return Yn;
2725
2727
  case "widget-excel-datasource-table":
2726
- return Zn;
2728
+ return es;
2727
2729
  case "widget-article-button":
2728
- return Mn;
2730
+ return xn;
2729
2731
  case "widget-check-list":
2730
- return Hn;
2732
+ return Gn;
2731
2733
  case "widget-quick-survey":
2732
- return os;
2734
+ return ls;
2733
2735
  case "widget-calendar-calDav":
2734
- return $n;
2736
+ return Vn;
2735
2737
  case "widget-contact-cardDav":
2736
- return Xn;
2738
+ return Jn;
2737
2739
  case "widget-lucca-absence":
2738
- return as;
2740
+ return rs;
2739
2741
  case "widget-emails-imap":
2740
- return Qn;
2742
+ return zn;
2741
2743
  case "widget-welcome":
2742
- return gs;
2744
+ return fs;
2743
2745
  case "widget-user-profil":
2744
- return ds;
2746
+ return cs;
2745
2747
  case "widget-extension":
2746
- return ts;
2748
+ return is;
2747
2749
  case "widget-color":
2748
- return us;
2750
+ return ps;
2749
2751
  }
2750
2752
  }
2751
- function ys(t) {
2753
+ function As(t) {
2752
2754
  return {
2753
2755
  title: "",
2754
2756
  level: 3,
2755
- widget: As(t)
2757
+ widget: Es(t)
2756
2758
  };
2757
2759
  }
2758
- function As(t) {
2760
+ function Es(t) {
2759
2761
  return {
2760
2762
  uniqid: Mt(),
2761
2763
  name: t,
2762
- content: Es(t)
2764
+ content: Ss(t)
2763
2765
  };
2764
2766
  }
2765
- function Es(t) {
2767
+ function Ss(t) {
2766
2768
  switch (t) {
2767
2769
  default:
2768
2770
  case "widget-lucca-absence":
2769
2771
  return {
2770
- ...rs
2772
+ ...ns
2771
2773
  };
2772
2774
  case "widget-article-attachment":
2773
2775
  return {
2774
- ...Dn
2776
+ ...Mn
2775
2777
  };
2776
2778
  case "widget-presence":
2777
2779
  return {
2778
- ...ss
2780
+ ...os
2779
2781
  };
2780
2782
  case "widget-datasource-table":
2781
2783
  return {
2782
- ...Yn
2784
+ ...Qn
2783
2785
  };
2784
2786
  case "widget-excel-datasource-table":
2785
2787
  return {
2786
- ...es
2788
+ ...ts
2787
2789
  };
2788
2790
  case "widget-article-slider":
2789
2791
  return {
2790
- ...Un
2792
+ ...Fn
2791
2793
  };
2792
2794
  case "widget-article-gallery":
2793
2795
  return {
2794
- ...jn
2796
+ ..._n
2795
2797
  };
2796
2798
  case "widget-article-button":
2797
2799
  return {
2798
- ...xn
2800
+ ...jn
2799
2801
  };
2800
2802
  case "widget-article-title":
2801
2803
  return {
2802
- ...qn
2804
+ ...$n
2803
2805
  };
2804
2806
  case "widget-article-image":
2805
2807
  return {
2806
- ...Nn
2808
+ ...Pn
2807
2809
  };
2808
2810
  case "widget-article-text":
2809
2811
  return {
2810
- ...Wn
2812
+ ...Bn
2811
2813
  };
2812
2814
  case "widget-check-list":
2813
2815
  return {
2814
- ...Gn
2816
+ ...Xn
2815
2817
  };
2816
2818
  case "widget-quick-survey":
2817
2819
  return {
2818
- ...ls
2820
+ ...ds
2819
2821
  };
2820
2822
  case "widget-calendar-calDav":
2821
2823
  return {
2822
- ...Vn
2824
+ ...Hn
2823
2825
  };
2824
2826
  case "widget-contact-cardDav":
2825
2827
  return {
2826
- ...Jn
2828
+ ...Kn
2827
2829
  };
2828
2830
  case "widget-emails-imap":
2829
2831
  return {
2830
- ...zn
2832
+ ...Zn
2831
2833
  };
2832
2834
  case "widget-welcome":
2833
2835
  return {
2834
- ...fs
2836
+ ...ms
2835
2837
  };
2836
2838
  case "widget-user-profil":
2837
2839
  return {
2838
- ...cs
2840
+ ...us
2839
2841
  };
2840
2842
  case "widget-extension":
2841
2843
  return {
2842
- ...is
2844
+ ...as
2843
2845
  };
2844
2846
  case "widget-color":
2845
2847
  return {
2846
- ...ps
2848
+ ...gs
2847
2849
  };
2848
2850
  }
2849
2851
  }
2850
- const Ss = {
2852
+ const Ts = {
2851
2853
  token: void 0,
2852
2854
  ids: {},
2853
2855
  layers: {},
@@ -2865,7 +2867,7 @@ const Ss = {
2865
2867
  flushedWidgets: [],
2866
2868
  rtObjectStack: [],
2867
2869
  widgetContext: {}
2868
- }, Ts = [
2870
+ }, Cs = [
2869
2871
  C.ArticleTitle,
2870
2872
  C.ArticleText,
2871
2873
  C.ArticleImage,
@@ -2874,7 +2876,7 @@ const Ss = {
2874
2876
  C.ArticleAttachment
2875
2877
  ], G = T({
2876
2878
  name: "widgets",
2877
- initialState: Ss,
2879
+ initialState: Ts,
2878
2880
  reducers: {
2879
2881
  registerWidget: (t, e) => {
2880
2882
  const { uniqid: i, widget: a, context: r } = e.payload;
@@ -2884,7 +2886,7 @@ const Ss = {
2884
2886
  loading: !1,
2885
2887
  mounted: !1,
2886
2888
  hover: !1,
2887
- empty: Ts.includes(a.widget.name),
2889
+ empty: Cs.includes(a.widget.name),
2888
2890
  locked: !1
2889
2891
  }, t.widgetContext[i] = r;
2890
2892
  },
@@ -3030,7 +3032,7 @@ const Ss = {
3030
3032
  t.modal = void 0;
3031
3033
  }
3032
3034
  }
3033
- }), Cs = function(t, e) {
3035
+ }), bs = function(t, e) {
3034
3036
  return [
3035
3037
  {
3036
3038
  namespace: "WIDGET",
@@ -3085,43 +3087,43 @@ const Ss = {
3085
3087
  }
3086
3088
  }
3087
3089
  ];
3088
- }, bs = (t) => t.widgets.token, ws = (t) => t.widgets.modal, Ls = (t) => t.widgets.ids, Is = (t) => t.widgets.flushedWidgets, vs = (t, e) => t.widgets.states[e] ?? void 0, hs = (t, e) => t.widgets.ids[e] ?? void 0, Os = (t, e) => t.widgets.ids[e]?.level ?? void 0, Rs = (t, e) => t.widgets.widgetObject[e] ?? void 0, ks = (t, e) => {
3090
+ }, ws = (t) => t.widgets.token, Ls = (t) => t.widgets.modal, Is = (t) => t.widgets.ids, vs = (t) => t.widgets.flushedWidgets, hs = (t, e) => t.widgets.states[e] ?? void 0, Os = (t, e) => t.widgets.ids[e] ?? void 0, Rs = (t, e) => t.widgets.ids[e]?.level ?? void 0, ks = (t, e) => t.widgets.widgetObject[e] ?? void 0, Ds = (t, e) => {
3089
3091
  const i = t.widgets.widgetObject[e];
3090
3092
  if (i && "uri" in i)
3091
3093
  return i.uri;
3092
- }, Ds = (t, e) => t.widgets.widgetObjectRights[e] ?? void 0, Ms = (t, e) => t.widgets.widgetContext[e] ?? void 0, xs = (t, e) => t.widgets.widgetAuthor[e] ?? void 0, js = (t, e) => t.widgets.widgetChipCount[e] ?? 0, _s = (t, e) => t.widgets.widgetWrapperStyle[e] ?? {}, Ns = (t, e) => t.widgets.widgetTitleStyle[e] ?? {}, Ps = (t, e) => t.widgets.currentEditableWidgetId === e, Us = (t, e) => t.widgets.rtObjectStack.filter((i) => i.uniqid === e), Fl = (t, e, i) => Fs.slice.actions.updateWidget({ uniqid: t, content: e, override: i ?? !1 }), Fs = {
3093
- const: Rn,
3094
- factory: ys,
3095
- definition: ms,
3094
+ }, Ms = (t, e) => t.widgets.widgetObjectRights[e] ?? void 0, xs = (t, e) => t.widgets.widgetContext[e] ?? void 0, js = (t, e) => t.widgets.widgetAuthor[e] ?? void 0, _s = (t, e) => t.widgets.widgetChipCount[e] ?? 0, Ns = (t, e) => t.widgets.widgetWrapperStyle[e] ?? {}, Ps = (t, e) => t.widgets.widgetTitleStyle[e] ?? {}, Us = (t, e) => t.widgets.currentEditableWidgetId === e, Fs = (t, e) => t.widgets.rtObjectStack.filter((i) => i.uniqid === e), Wl = (t, e, i) => Ws.slice.actions.updateWidget({ uniqid: t, content: e, override: i ?? !1 }), Ws = {
3095
+ const: kn,
3096
+ factory: As,
3097
+ definition: ys,
3096
3098
  utils: {
3097
3099
  uniqid: Mt
3098
3100
  },
3099
3101
  slice: G,
3100
- getWidgetRTHandlers: Cs,
3102
+ getWidgetRTHandlers: bs,
3101
3103
  selectors: {
3102
- isActive: Ps,
3103
- selectToken: bs,
3104
- selectWidgets: Ls,
3105
- selectWidget: hs,
3106
- selectWidgetState: vs,
3107
- selectModal: ws,
3108
- selectWidgetObject: Rs,
3109
- selectWidgetObjectUri: ks,
3110
- selectWidgetAuthor: xs,
3111
- selectWidgetObjectRights: Ds,
3112
- selectAllWidgetRTObject: Us,
3113
- selectFlushedWidgets: Is,
3114
- selectWidgetContext: Ms,
3115
- selectWidgetLevel: Os,
3116
- selectWidgetWrapperStyle: _s,
3117
- selectWidgetTitleStyle: Ns,
3118
- selectWidgetChipCount: js
3119
- }
3120
- }, Ws = {
3104
+ isActive: Us,
3105
+ selectToken: ws,
3106
+ selectWidgets: Is,
3107
+ selectWidget: Os,
3108
+ selectWidgetState: hs,
3109
+ selectModal: Ls,
3110
+ selectWidgetObject: ks,
3111
+ selectWidgetObjectUri: Ds,
3112
+ selectWidgetAuthor: js,
3113
+ selectWidgetObjectRights: Ms,
3114
+ selectAllWidgetRTObject: Fs,
3115
+ selectFlushedWidgets: vs,
3116
+ selectWidgetContext: xs,
3117
+ selectWidgetLevel: Rs,
3118
+ selectWidgetWrapperStyle: Ns,
3119
+ selectWidgetTitleStyle: Ps,
3120
+ selectWidgetChipCount: _s
3121
+ }
3122
+ }, Bs = {
3121
3123
  editors: []
3122
- }, Bs = T({
3124
+ }, qs = T({
3123
3125
  name: "editors",
3124
- initialState: Ws,
3126
+ initialState: Bs,
3125
3127
  reducers: {
3126
3128
  registerEditor: (t, e) => {
3127
3129
  const { uniqid: i, name: a, onSave: r, mode: n } = e.payload, s = r ? {
@@ -3171,11 +3173,11 @@ const Ss = {
3171
3173
  window.dispatchEvent(new Event("WidgetEditorFlushAll")), t.editors.length = 0;
3172
3174
  }
3173
3175
  }
3174
- }), qs = (t) => t.editors.editors, $s = (t, e) => t.editors.editors.find((i) => i.uniqid === e), Wl = {
3175
- slice: Bs,
3176
+ }), $s = (t) => t.editors.editors, Vs = (t, e) => t.editors.editors.find((i) => i.uniqid === e), Bl = {
3177
+ slice: qs,
3176
3178
  selectors: {
3177
- selectEditors: qs,
3178
- selectEditor: $s
3179
+ selectEditors: $s,
3180
+ selectEditor: Vs
3179
3181
  }
3180
3182
  }, N = dt({
3181
3183
  selectId: (t) => `${t.targetId}-${t.type}`
@@ -3189,10 +3191,10 @@ const Ss = {
3189
3191
  clear: N.removeAll,
3190
3192
  updateOne: N.updateOne
3191
3193
  }
3192
- }), Vs = N.getSelectors((t) => t.entities.socialActions), Bl = {
3194
+ }), Hs = N.getSelectors((t) => t.entities.socialActions), ql = {
3193
3195
  slice: ri,
3194
3196
  actions: { ...ri.actions },
3195
- selectors: Vs
3197
+ selectors: Hs
3196
3198
  }, nt = {
3197
3199
  ALL: "1",
3198
3200
  CUSTOM: "0"
@@ -3235,7 +3237,7 @@ const Ss = {
3235
3237
  SENDALERTTOSUBSCRIBERS: "SENDALERTTOSUBSCRIBERS",
3236
3238
  RECEIVEACOPY: "RECEIVEACOPY",
3237
3239
  CREATIONDATE: "CREATIONDATE"
3238
- }, Hs = {
3240
+ }, Gs = {
3239
3241
  TITLE: "title",
3240
3242
  USER: "user",
3241
3243
  PUBLISHTO: "publishTo",
@@ -3250,7 +3252,7 @@ const Ss = {
3250
3252
  OPTIONS_EDITOR: "options_editor",
3251
3253
  TAXONOMY: "taxonomy",
3252
3254
  CONTENTTYPE: "contenttype"
3253
- }, Gs = [o.DESCRIPTION, o.IMAGE], ql = Gs, jt = /* @__PURE__ */ new Map();
3255
+ }, Xs = [o.DESCRIPTION, o.IMAGE], $l = Xs, jt = /* @__PURE__ */ new Map();
3254
3256
  jt.set(o.IMAGE, ["list", "filter", "view"]);
3255
3257
  jt.set(o.CODEHTML, ["list", "filter", "view"]);
3256
3258
  const q = {
@@ -3282,47 +3284,47 @@ const q = {
3282
3284
  fixed: [p.TITLE],
3283
3285
  optional: []
3284
3286
  }
3285
- }, Xs = [
3287
+ }, Js = [
3286
3288
  p.TITLE,
3287
3289
  p.USER,
3288
3290
  p.CREATIONDATE,
3289
3291
  o.DESCRIPTION
3290
- ], Oi = [o.DESCRIPTION], Ri = Oi, $l = [
3292
+ ], Ri = [o.DESCRIPTION], ki = Ri, Vl = [
3291
3293
  p.TITLE,
3292
3294
  p.PUBLISHTO,
3293
3295
  p.SENDALERTTOSUBSCRIBERS,
3294
3296
  p.RECEIVEACOPY,
3295
3297
  p.USER,
3296
3298
  p.CREATIONDATE
3297
- ], Js = [
3299
+ ], Ks = [
3298
3300
  p.USER,
3299
3301
  p.TITLE
3300
- ], Ks = [o.CODEHTML], Ys = Js.concat(Ks).concat(Oi);
3301
- var Qs = /* @__PURE__ */ ((t) => (t.Attr = "attr", t.PublishTo = "publishTo", t))(Qs || {}), zs = /* @__PURE__ */ ((t) => (t.Empty = "", t.FieldTagDescription = "Field_Tag_Description", t.FieldTitleDescription = "Field_Title_Description", t.WWWDescCOM = "www.desc.com", t))(zs || {}), I = [];
3302
+ ], Ys = [o.CODEHTML], Qs = Ks.concat(Ys).concat(Ri);
3303
+ var zs = /* @__PURE__ */ ((t) => (t.Attr = "attr", t.PublishTo = "publishTo", t))(zs || {}), Zs = /* @__PURE__ */ ((t) => (t.Empty = "", t.FieldTagDescription = "Field_Tag_Description", t.FieldTitleDescription = "Field_Title_Description", t.WWWDescCOM = "www.desc.com", t))(Zs || {}), I = [];
3302
3304
  for (var pt = 0; pt < 256; ++pt)
3303
3305
  I.push((pt + 256).toString(16).slice(1));
3304
- function Zs(t, e = 0) {
3306
+ function eo(t, e = 0) {
3305
3307
  return (I[t[e + 0]] + I[t[e + 1]] + I[t[e + 2]] + I[t[e + 3]] + "-" + I[t[e + 4]] + I[t[e + 5]] + "-" + I[t[e + 6]] + I[t[e + 7]] + "-" + I[t[e + 8]] + I[t[e + 9]] + "-" + I[t[e + 10]] + I[t[e + 11]] + I[t[e + 12]] + I[t[e + 13]] + I[t[e + 14]] + I[t[e + 15]]).toLowerCase();
3306
3308
  }
3307
- var ae, eo = new Uint8Array(16);
3308
- function to() {
3309
+ var ae, to = new Uint8Array(16);
3310
+ function io() {
3309
3311
  if (!ae && (ae = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ae))
3310
3312
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
3311
- return ae(eo);
3313
+ return ae(to);
3312
3314
  }
3313
- var io = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
3315
+ var ao = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
3314
3316
  const ni = {
3315
- randomUUID: io
3317
+ randomUUID: ao
3316
3318
  };
3317
3319
  function M(t, e, i) {
3318
3320
  if (ni.randomUUID && !t)
3319
3321
  return ni.randomUUID();
3320
3322
  t = t || {};
3321
- var a = t.random || (t.rng || to)();
3322
- return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Zs(a);
3323
+ var a = t.random || (t.rng || io)();
3324
+ return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, eo(a);
3323
3325
  }
3324
3326
  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 || {});
3325
- function ki(t) {
3327
+ function Di(t) {
3326
3328
  const e = t, i = e.manifest, a = n(), r = {
3327
3329
  idApp: e.idApp,
3328
3330
  status: e.status,
@@ -3494,7 +3496,7 @@ function Z(t, e = !0) {
3494
3496
  return {
3495
3497
  id: M(),
3496
3498
  type: t,
3497
- properties: no(t),
3499
+ properties: so(t),
3498
3500
  mandatory: !1,
3499
3501
  views: {
3500
3502
  create: e,
@@ -3511,15 +3513,15 @@ function Z(t, e = !0) {
3511
3513
  isLockedValue: !1
3512
3514
  };
3513
3515
  }
3514
- const ao = {
3516
+ const ro = {
3515
3517
  type: "taxonomyOpen",
3516
3518
  id: 1,
3517
3519
  title: "Mots-clés"
3518
- }, ro = {
3520
+ }, no = {
3519
3521
  type: "mpArticle",
3520
3522
  label: "Article"
3521
3523
  };
3522
- function no(t) {
3524
+ function so(t) {
3523
3525
  switch (t) {
3524
3526
  case o.TEXT:
3525
3527
  case o.DESCRIPTION:
@@ -3579,7 +3581,7 @@ function no(t) {
3579
3581
  { propertyType: S.DESCRIPTION, value: "" },
3580
3582
  {
3581
3583
  propertyType: S.TAXONOMY,
3582
- value: { ...ao }
3584
+ value: { ...ro }
3583
3585
  }
3584
3586
  ];
3585
3587
  case o.CONTENTLINK:
@@ -3588,7 +3590,7 @@ function no(t) {
3588
3590
  { propertyType: S.DESCRIPTION, value: "" },
3589
3591
  {
3590
3592
  propertyType: S.CONTENTTYPE,
3591
- value: { ...ro }
3593
+ value: { ...no }
3592
3594
  }
3593
3595
  ];
3594
3596
  default:
@@ -3603,7 +3605,7 @@ function h(t, e) {
3603
3605
  };
3604
3606
  return i.properties[0].value = e.label, i.properties[1].value = e.description, i;
3605
3607
  }
3606
- function Di(t) {
3608
+ function Mi(t) {
3607
3609
  const e = [];
3608
3610
  return Object.keys(t).forEach((i) => {
3609
3611
  e.push({
@@ -3612,7 +3614,7 @@ function Di(t) {
3612
3614
  });
3613
3615
  }), e;
3614
3616
  }
3615
- function so(t) {
3617
+ function oo(t) {
3616
3618
  const e = {
3617
3619
  ...Z(o.ADDFILEATTACHMENT, !1),
3618
3620
  id: t.name,
@@ -3620,31 +3622,31 @@ function so(t) {
3620
3622
  };
3621
3623
  return e.properties[0].value = t.label, e;
3622
3624
  }
3623
- function oo(t) {
3625
+ function lo(t) {
3624
3626
  const e = {
3625
3627
  ...Z(o.CODEHTML, !1),
3626
3628
  id: t.name
3627
3629
  }, i = t.properties.code;
3628
3630
  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;
3629
3631
  }
3630
- function lo() {
3632
+ function co() {
3631
3633
  return Z(o.IMAGE, !1);
3632
3634
  }
3633
- function co(t) {
3635
+ function uo(t) {
3634
3636
  const e = h(o.NUMBER, t);
3635
3637
  return e.properties[2].value = t.widget.params?.step === "0.01", e;
3636
3638
  }
3637
- function uo(t) {
3639
+ function po(t) {
3638
3640
  const e = h(o.TAGS, t);
3639
3641
  return e.properties[2].value.id = +(t.widget.params?.idTaxonomy ?? 1), e;
3640
3642
  }
3641
- function po(t) {
3643
+ function go(t) {
3642
3644
  const e = h(o.SELECT, t), i = t.widget.params?.defaultValue ? {
3643
3645
  title: t.widget.options[t.widget.params?.defaultValue],
3644
3646
  value: t.widget.params?.defaultValue
3645
3647
  } : void 0, a = {
3646
3648
  // TODO : better typing
3647
- propertyOptions: Di(t.widget.options),
3649
+ propertyOptions: Mi(t.widget.options),
3648
3650
  canSelectMultiple: t.widget.multiple === "1",
3649
3651
  userCanModifiyByComment: t.widget.params?.explain === "1",
3650
3652
  defaultSelectOption: !!t.widget.params?.defaultValue,
@@ -3652,57 +3654,57 @@ function po(t) {
3652
3654
  };
3653
3655
  return e.properties[2].value = a, e;
3654
3656
  }
3655
- function Mi(t) {
3657
+ function xi(t) {
3656
3658
  const e = h(o.RADIO, t), i = {
3657
- propertyOptions: Di(t.widget.options)
3659
+ propertyOptions: Mi(t.widget.options)
3658
3660
  };
3659
3661
  return e.properties[2].value = i, e;
3660
3662
  }
3661
- function go(t) {
3662
- const e = Mi(t);
3663
+ function fo(t) {
3664
+ const e = xi(t);
3663
3665
  return e.type = o.CHECKBOX, e;
3664
3666
  }
3665
- function fo(t, e) {
3667
+ function mo(t, e) {
3666
3668
  const i = h(o.CONTENTLINK, t);
3667
3669
  i.properties[2].value.type = t.widget.params.types ?? "mpArticle";
3668
- const a = e.entities === void 0 ? void 0 : { entities: e.entities }, r = a ? Hr.selectors.selectById(a, i.properties[2].value.type) : void 0;
3670
+ const a = e.entities === void 0 ? void 0 : { entities: e.entities }, r = a ? Gr.selectors.selectById(a, i.properties[2].value.type) : void 0;
3669
3671
  return i.properties[2].value.label = r?.label ?? "Article", i;
3670
3672
  }
3671
- function mo(t) {
3673
+ function yo(t) {
3672
3674
  return h(o.TEXT, t);
3673
3675
  }
3674
- function yo(t) {
3676
+ function Ao(t) {
3675
3677
  return h(o.DESCRIPTION, t);
3676
3678
  }
3677
- function Ao(t) {
3679
+ function Eo(t) {
3678
3680
  return h(o.TEXTAREAHTML, t);
3679
3681
  }
3680
- function Eo(t) {
3682
+ function So(t) {
3681
3683
  return h(o.DATE, t);
3682
3684
  }
3683
- function So(t) {
3685
+ function To(t) {
3684
3686
  return h(o.DATETIME, t);
3685
3687
  }
3686
- function To(t) {
3688
+ function Co(t) {
3687
3689
  return h(o.URL, t);
3688
3690
  }
3689
- function Co(t) {
3691
+ function bo(t) {
3690
3692
  return h(o.EMAIL, t);
3691
3693
  }
3692
- function bo(t) {
3694
+ function wo(t) {
3693
3695
  return h(o.TOGGLE, t);
3694
3696
  }
3695
- function wo(t) {
3697
+ function Lo(t) {
3696
3698
  return h(o.USERLINK, t);
3697
3699
  }
3698
- function Lo(t) {
3700
+ function Io(t) {
3699
3701
  return h(o.TEXTAREA, t);
3700
3702
  }
3701
- function Io(t) {
3703
+ function vo(t) {
3702
3704
  const { manifest: e, views: i, audience: a, installFor: r } = t;
3703
3705
  return `<?xml version='1.0' encoding='utf-8'?>
3704
3706
  <Application>
3705
- ${vo(e, i, a, r, t.idApp)}
3707
+ ${ho(e, i, a, r, t.idApp)}
3706
3708
  <Types>
3707
3709
  <objecttype
3708
3710
  label="${e.typeLabel}"
@@ -3718,14 +3720,14 @@ function Io(t) {
3718
3720
  searchtablabel="${e.typeLabel}"
3719
3721
  buttonlabel="${e.typeLabel}"
3720
3722
  extends="article">
3721
- ${ko(t.fields)}
3722
3723
  ${Do(t.fields)}
3724
+ ${Mo(t.fields)}
3723
3725
  </objecttype>
3724
- ${Po(t)}
3726
+ ${Uo(t)}
3725
3727
  </Types>
3726
3728
  </Application>`;
3727
3729
  }
3728
- function vo(t, e, i, a, r) {
3730
+ function ho(t, e, i, a, r) {
3729
3731
  return `<Manifest>
3730
3732
  <ShowImport>true</ShowImport>
3731
3733
  <AppShortName>${r}</AppShortName>
@@ -3741,13 +3743,13 @@ function vo(t, e, i, a, r) {
3741
3743
  <Editor>Jamespot</Editor>
3742
3744
  <EditorUrl>https://www.fr.jamespot.com/</EditorUrl>
3743
3745
  <Type>${r}</Type>
3744
- ${ho(t.viewSolr, e.list)}
3745
- ${Oo(e.filter)}
3746
- ${Ro(i, a)}
3746
+ ${Oo(t.viewSolr, e.list)}
3747
+ ${Ro(e.filter)}
3748
+ ${ko(i, a)}
3747
3749
  <Order>1</Order>
3748
3750
  </Manifest>`;
3749
3751
  }
3750
- function ho(t, e) {
3752
+ function Oo(t, e) {
3751
3753
  if (t === st.SOLR) {
3752
3754
  let i = "<AppView>solr</AppView>";
3753
3755
  const a = [];
@@ -3757,7 +3759,7 @@ function ho(t, e) {
3757
3759
  }
3758
3760
  return "";
3759
3761
  }
3760
- function Oo(t) {
3762
+ function Ro(t) {
3761
3763
  const e = [];
3762
3764
  return Object.entries(t).sort((i, a) => i[1].pos - a[1].pos).forEach(([i, a]) => {
3763
3765
  if (!a.isUsed)
@@ -3765,25 +3767,25 @@ function Oo(t) {
3765
3767
  [p.TITLE, o.IMAGE].includes(a.type) || e.push(_t(a, i));
3766
3768
  }), `<AttrExposed>${e.join()}</AttrExposed>`;
3767
3769
  }
3768
- function xi(t) {
3770
+ function ji(t) {
3769
3771
  return t === p.TITLE ? "title" : t === p.SENDALERTTOSUBSCRIBERS ? "sendAlert" : t === p.RECEIVEACOPY ? "alertAuthor" : t === p.PUBLISHTO ? "publishTo" : t === p.USER ? "idUser" : t === p.CREATIONDATE ? "dateCreation" : t === o.DESCRIPTION ? "description" : t;
3770
3772
  }
3771
3773
  function _t(t, e) {
3772
- return Xs.includes(t.type) ? xi(t.type) : Nt(e).toLowerCase();
3774
+ return Js.includes(t.type) ? ji(t.type) : Nt(e).toLowerCase();
3773
3775
  }
3774
- function Ro(t, e) {
3776
+ function ko(t, e) {
3775
3777
  return t === nt.ALL ? "<checkAccess>false</checkAccess>" : e.length > 0 ? `<checkAccess>true</checkAccess>
3776
3778
  <accessRightList>${e.map((i) => i.uri).join()}</accessRightList>` : "";
3777
3779
  }
3778
- function ko(t) {
3779
- const e = t?.filter((i) => Ri.includes(i.type));
3780
+ function Do(t) {
3781
+ const e = t?.filter((i) => ki.includes(i.type));
3780
3782
  return e.length === 0 ? "" : `<primaryFields>${e.map((i) => vt(i)).join("")}</primaryFields>`;
3781
3783
  }
3782
- function Do(t) {
3783
- const i = t?.filter((n) => !Ri.includes(n.type))?.filter((n) => n.type !== o.IMAGE);
3784
+ function Mo(t) {
3785
+ const i = t?.filter((n) => !ki.includes(n.type))?.filter((n) => n.type !== o.IMAGE);
3784
3786
  if (i.length === 0) return "";
3785
3787
  const a = i.filter(
3786
- (n) => n.type !== o.TAGS && !Ys.includes(n.type)
3788
+ (n) => n.type !== o.TAGS && !Qs.includes(n.type)
3787
3789
  ), r = i.filter((n) => n.type === o.TAGS);
3788
3790
  return `<custom>
3789
3791
  ${a.length > 0 ? `<articlemstable>
@@ -3795,13 +3797,13 @@ function Do(t) {
3795
3797
  }
3796
3798
  function vt(t) {
3797
3799
  return `<field
3798
- type="${_o(t.type)}"
3800
+ type="${No(t.type)}"
3799
3801
  name="${_t(t, t.id)}"
3800
- sqlname="${xo(t.type, t.id)}"
3802
+ sqlname="${jo(t.type, t.id)}"
3801
3803
  ${t.properties && si(t.properties, S.LABEL)}
3802
3804
  ${t.properties && si(t.properties, S.DESCRIPTION)}
3803
3805
  mandatory="${t.type === o.TOGGLE ? "false" : t.mandatory}"
3804
- solr.type="${jo(t.type)}"
3806
+ solr.type="${_o(t.type)}"
3805
3807
  solr.used="true"
3806
3808
  solr.indexed="true"
3807
3809
  solr.stored="true"
@@ -3810,10 +3812,10 @@ function vt(t) {
3810
3812
  teaser="true"
3811
3813
  display="true"
3812
3814
  >
3813
- ${Mo(t.type, t.properties)}
3815
+ ${xo(t.type, t.properties)}
3814
3816
  </field>`;
3815
3817
  }
3816
- function Mo(t, e) {
3818
+ function xo(t, e) {
3817
3819
  switch (t) {
3818
3820
  case o.DESCRIPTION:
3819
3821
  return '<widget form="textarea"><params><param key="class" value="mceEditor"></param><param key="mention" value="1"></param></params></widget>';
@@ -3937,7 +3939,7 @@ function si(t, e) {
3937
3939
  }
3938
3940
  return "";
3939
3941
  }
3940
- function xo(t, e) {
3942
+ function jo(t, e) {
3941
3943
  switch (t) {
3942
3944
  case o.DESCRIPTION:
3943
3945
  return "Description";
@@ -3947,7 +3949,7 @@ function xo(t, e) {
3947
3949
  return Nt(e);
3948
3950
  }
3949
3951
  }
3950
- function jo(t) {
3952
+ function _o(t) {
3951
3953
  switch (t) {
3952
3954
  case o.DESCRIPTION:
3953
3955
  case o.TEXT:
@@ -3975,7 +3977,7 @@ function jo(t) {
3975
3977
  return "";
3976
3978
  }
3977
3979
  }
3978
- function _o(t) {
3980
+ function No(t) {
3979
3981
  switch (t) {
3980
3982
  default:
3981
3983
  case o.DESCRIPTION:
@@ -4008,10 +4010,10 @@ const Nt = (t) => {
4008
4010
  let e = "";
4009
4011
  for (let i = 0; i < t.length; i++) {
4010
4012
  const a = t.charAt(i);
4011
- a >= "0" && a <= "9" ? e += No(Number(a)) : a >= "a" && a <= "z" && (e += a);
4013
+ a >= "0" && a <= "9" ? e += Po(Number(a)) : a >= "a" && a <= "z" && (e += a);
4012
4014
  }
4013
4015
  return e;
4014
- }, No = (t) => {
4016
+ }, Po = (t) => {
4015
4017
  let e = "", i;
4016
4018
  for (; t > 0; )
4017
4019
  i = (t - 1) % 26, e = String.fromCharCode(97 + i) + e, t = (t - i) / 26 | 0;
@@ -4022,18 +4024,18 @@ const Nt = (t) => {
4022
4024
  edit: "edit",
4023
4025
  view: "display"
4024
4026
  };
4025
- function Po(t) {
4027
+ function Uo(t) {
4026
4028
  let e = "";
4027
4029
  return Object.entries(t.views).forEach(([i, a]) => {
4028
4030
  if (Object.prototype.hasOwnProperty.call(oi, i)) {
4029
4031
  const r = Object.entries(a).filter((n) => n[1].isUsed && (i !== "view" || n[0] !== "title")).sort((n, s) => n[1].pos - s[1].pos);
4030
4032
  e += `<display view="${oi[i]}${i === "view" && t.manifest.displayContentLegacyTable ? "Disabled" : ""}" mode="${i === "view" ? "view" : "form"}">
4031
- ${r.map(([n, s]) => Fo(n, s)).join("")}
4033
+ ${r.map(([n, s]) => Wo(n, s)).join("")}
4032
4034
  </display>`;
4033
4035
  }
4034
4036
  }), e.length > 0 && (e = `<displays type="${t.idApp}">${e}</displays>`), e;
4035
4037
  }
4036
- function Uo(t, e) {
4038
+ function Fo(t, e) {
4037
4039
  switch (e.type) {
4038
4040
  case p.TITLE:
4039
4041
  return "title";
@@ -4053,9 +4055,9 @@ function Uo(t, e) {
4053
4055
  return Nt(t);
4054
4056
  }
4055
4057
  }
4056
- function Fo(t, e) {
4058
+ function Wo(t, e) {
4057
4059
  let i = "";
4058
- const a = Uo(t, e);
4060
+ const a = Fo(t, e);
4059
4061
  if (e.isLockedValue) {
4060
4062
  const n = {
4061
4063
  ref: a,
@@ -4124,7 +4126,7 @@ function Fo(t, e) {
4124
4126
  function _(t) {
4125
4127
  return t < 10 ? "0" + t : t;
4126
4128
  }
4127
- const ji = {
4129
+ const _i = {
4128
4130
  "create-popup": "popup",
4129
4131
  create: "create",
4130
4132
  edit: "edit",
@@ -4132,8 +4134,8 @@ const ji = {
4132
4134
  displayDisabled: "view"
4133
4135
  // appInstalled.columns => 'list' view,
4134
4136
  // appInstalled.attrExposed => 'filter' view,
4135
- }, li = ["title", "alertAuthor", "sendAlert"], Wo = ["edito"];
4136
- function _i(t, e, i) {
4137
+ }, li = ["title", "alertAuthor", "sendAlert"], Bo = ["edito"];
4138
+ function Ni(t, e, i) {
4137
4139
  return Object.assign(
4138
4140
  {},
4139
4141
  ...xt.map((a) => {
@@ -4153,12 +4155,12 @@ function _i(t, e, i) {
4153
4155
  ));
4154
4156
  });
4155
4157
  const l = new Set(s.concat(n)), d = {
4156
- [p.CREATIONDATE]: () => qi(!1),
4158
+ [p.CREATIONDATE]: () => $i(!1),
4157
4159
  [p.TITLE]: () => ot({ fixedValue: void 0 }),
4158
- [p.USER]: () => Bi(!1),
4159
- [p.RECEIVEACOPY]: () => Ui({ fixedValue: void 0 }),
4160
- [p.SENDALERTTOSUBSCRIBERS]: () => Fi({ fixedValue: void 0 }),
4161
- [p.PUBLISHTO]: () => Wi({ fixedValue: void 0 })
4160
+ [p.USER]: () => qi(!1),
4161
+ [p.RECEIVEACOPY]: () => Fi({ fixedValue: void 0 }),
4162
+ [p.SENDALERTTOSUBSCRIBERS]: () => Wi({ fixedValue: void 0 }),
4163
+ [p.PUBLISHTO]: () => Bi({ fixedValue: void 0 })
4162
4164
  };
4163
4165
  l.forEach((y) => {
4164
4166
  const m = d[y];
@@ -4186,9 +4188,9 @@ function _i(t, e, i) {
4186
4188
  );
4187
4189
  if (A) {
4188
4190
  const k = t[a][y.id], ee = k.properties?.find(
4189
- (Ji) => Ji.propertyType === S.OPTIONS_EDITOR
4190
- ), Gi = !!L?.value?.canSelectMultiple, Xi = !!ee?.value?.canSelectMultiple;
4191
- Gi === Xi && (w = k.value);
4191
+ (Ki) => Ki.propertyType === S.OPTIONS_EDITOR
4192
+ ), Xi = !!L?.value?.canSelectMultiple, Ji = !!ee?.value?.canSelectMultiple;
4193
+ Xi === Ji && (w = k.value);
4192
4194
  } else {
4193
4195
  const ee = !!L?.isOptionsEditorEnhanced && L?.value.defaultSelectOption ? L?.value.defaultSelectOptionValue : "";
4194
4196
  ee && (w = ee);
@@ -4224,7 +4226,7 @@ function _i(t, e, i) {
4224
4226
  const m = r[y.id];
4225
4227
  m.pos = y.idx + 1, Object.keys(r).forEach((c) => {
4226
4228
  const A = r[c];
4227
- A && !Object.values(Hs).includes(c) && c !== y.id && A.pos >= m.pos && A.pos++;
4229
+ A && !Object.values(Gs).includes(c) && c !== y.id && A.pos >= m.pos && A.pos++;
4228
4230
  });
4229
4231
  }), {
4230
4232
  [a]: r
@@ -4232,7 +4234,7 @@ function _i(t, e, i) {
4232
4234
  })
4233
4235
  );
4234
4236
  }
4235
- function Bo(t) {
4237
+ function qo(t) {
4236
4238
  return t.map((e) => ({
4237
4239
  id: `${e.type}/${e.id}`,
4238
4240
  uri: `${e.type}/${e.id}`,
@@ -4249,14 +4251,14 @@ function Bo(t) {
4249
4251
  _url: e._url
4250
4252
  }));
4251
4253
  }
4252
- function qo(t, e, i) {
4254
+ function $o(t, e, i) {
4253
4255
  const a = t.typeModel.tables, r = t.typeModel.displays;
4254
4256
  if (!r)
4255
4257
  return;
4256
4258
  const n = /* @__PURE__ */ new Map();
4257
4259
  Object.entries(r).forEach((s) => {
4258
4260
  const [l, d] = s;
4259
- Object.keys(ji).includes(l) && $o(
4261
+ Object.keys(_i).includes(l) && Vo(
4260
4262
  e,
4261
4263
  n,
4262
4264
  l,
@@ -4264,19 +4266,19 @@ function qo(t, e, i) {
4264
4266
  a,
4265
4267
  i
4266
4268
  );
4267
- }), Vo(e, n, t.columns, a, i), Ho(e, n, t.attrExposed, a, i);
4269
+ }), Ho(e, n, t.columns, a, i), Go(e, n, t.attrExposed, a, i);
4268
4270
  }
4269
- function $o(t, e, i, a, r, n) {
4270
- const s = ji[i];
4271
+ function Vo(t, e, i, a, r, n) {
4272
+ const s = _i[i];
4271
4273
  if (t.views[s] = {}, s === "view") {
4272
4274
  const [l, d] = ot({ fixedValue: void 0 });
4273
4275
  t.views[s][l] = d;
4274
4276
  }
4275
4277
  a.composants.forEach((l, d) => {
4276
4278
  let g;
4277
- if (l.name && Wo.includes(l.name))
4279
+ if (l.name && Bo.includes(l.name))
4278
4280
  return;
4279
- const [y, m] = Jo(t, e, l, r, n);
4281
+ const [y, m] = Ko(t, e, l, r, n);
4280
4282
  if (y === -1 && m)
4281
4283
  switch (m.ref) {
4282
4284
  case "title": {
@@ -4287,17 +4289,17 @@ function $o(t, e, i, a, r, n) {
4287
4289
  break;
4288
4290
  }
4289
4291
  case "alertAuthor": {
4290
- const [c, A] = Ui(m);
4292
+ const [c, A] = Fi(m);
4291
4293
  t.views[s][c] = A;
4292
4294
  break;
4293
4295
  }
4294
4296
  case "sendAlert": {
4295
- const [c, A] = Fi(m);
4297
+ const [c, A] = Wi(m);
4296
4298
  t.views[s][c] = A;
4297
4299
  break;
4298
4300
  }
4299
4301
  case "publishTo": {
4300
- const [c, A] = Wi(m);
4302
+ const [c, A] = Bi(m);
4301
4303
  t.views[s][c] = A;
4302
4304
  break;
4303
4305
  }
@@ -4312,21 +4314,21 @@ function $o(t, e, i, a, r, n) {
4312
4314
  throw new Error(
4313
4315
  `error converting installed app to V2: created field not found in fields array: ${y}, ${m}`
4314
4316
  );
4315
- g.views[s] = !0, Pi(s, g, t, d, m);
4317
+ g.views[s] = !0, Ui(s, g, t, d, m);
4316
4318
  }
4317
4319
  });
4318
4320
  }
4319
- function Vo(t, e, i, a, r) {
4321
+ function Ho(t, e, i, a, r) {
4320
4322
  i && Object.keys(i).forEach((n, s) => {
4321
- Ni(t, e, a, "list", n, s, r);
4323
+ Pi(t, e, a, "list", n, s, r);
4322
4324
  });
4323
4325
  }
4324
- function Ho(t, e, i, a, r) {
4326
+ function Go(t, e, i, a, r) {
4325
4327
  i.forEach((n, s) => {
4326
- Ni(t, e, a, "filter", n, s, r);
4328
+ Pi(t, e, a, "filter", n, s, r);
4327
4329
  });
4328
4330
  }
4329
- function Ni(t, e, i, a, r, n, s) {
4331
+ function Pi(t, e, i, a, r, n, s) {
4330
4332
  switch (r) {
4331
4333
  case "title": {
4332
4334
  const [l, d] = ot({ fixedValue: void 0 });
@@ -4335,35 +4337,35 @@ function Ni(t, e, i, a, r, n, s) {
4335
4337
  }
4336
4338
  case "iduser":
4337
4339
  case "idUser": {
4338
- const [l, d] = Bi();
4340
+ const [l, d] = qi();
4339
4341
  t.views[a][l] = d;
4340
4342
  break;
4341
4343
  }
4342
4344
  case "datecreation":
4343
4345
  case "dateCreation": {
4344
- const [l, d] = qi();
4346
+ const [l, d] = $i();
4345
4347
  t.views[a][l] = d;
4346
4348
  break;
4347
4349
  }
4348
4350
  default:
4349
- Go(t, e, i, a, r, n, s);
4351
+ Xo(t, e, i, a, r, n, s);
4350
4352
  break;
4351
4353
  }
4352
4354
  }
4353
- function Go(t, e, i, a, r, n, s) {
4354
- const l = Xo(t, e, i, r, s), d = t.fields[l];
4355
+ function Xo(t, e, i, a, r, n, s) {
4356
+ const l = Jo(t, e, i, r, s), d = t.fields[l];
4355
4357
  if (!d?.views)
4356
4358
  throw new Error(`error converting installed app to V2: unable to handle ${r} in list view`);
4357
- d.views[a] = !0, Pi(a, d, t, n, void 0);
4359
+ d.views[a] = !0, Ui(a, d, t, n, void 0);
4358
4360
  }
4359
- function Xo(t, e, i, a, r) {
4361
+ function Jo(t, e, i, a, r) {
4360
4362
  const n = e.get(a);
4361
4363
  if (n !== void 0)
4362
4364
  return n;
4363
4365
  const [s, l] = ht(t, a, i, r);
4364
4366
  return e.set(s, l), l;
4365
4367
  }
4366
- function Jo(t, e, i, a, r) {
4368
+ function Ko(t, e, i, a, r) {
4367
4369
  if (i.name !== void 0 && i.element === "attr") {
4368
4370
  if (li.includes(i.name))
4369
4371
  return [-1, { ref: i.name, fixedValue: void 0 }];
@@ -4382,7 +4384,7 @@ function Jo(t, e, i, a, r) {
4382
4384
  const g = JSON.parse(d);
4383
4385
  if (g?.ref.toUpperCase() in p) {
4384
4386
  const A = g.ref.toUpperCase();
4385
- return [-1, { ...g, ref: xi(A) }];
4387
+ return [-1, { ...g, ref: ji(A) }];
4386
4388
  }
4387
4389
  if (li.includes(g?.ref))
4388
4390
  return [-1, g];
@@ -4399,7 +4401,7 @@ function Jo(t, e, i, a, r) {
4399
4401
  const s = n.indexOf("<JAMESPOT.STUDIO.CODEHTML>") + 26, l = n.indexOf("</JAMESPOT.STUDIO.CODEHTML>"), d = n.substring(s, l), g = JSON.parse(d), y = e.get(g?.name);
4400
4402
  if (y !== void 0)
4401
4403
  return [y, void 0];
4402
- const m = oo(g), c = t.fields.push(m) - 1;
4404
+ const m = lo(g), c = t.fields.push(m) - 1;
4403
4405
  return e.set(m.id, c), [c, void 0];
4404
4406
  } catch {
4405
4407
  return console.error("error while parsing studio installed codehtml attr in a view: json parsing failed"), [-1, void 0];
@@ -4410,53 +4412,53 @@ function Jo(t, e, i, a, r) {
4410
4412
  const n = e.get("image");
4411
4413
  if (n !== void 0)
4412
4414
  return [n, void 0];
4413
- const s = lo(), l = t.fields.push(s) - 1;
4415
+ const s = co(), l = t.fields.push(s) - 1;
4414
4416
  return e.set("image", l), [l, void 0];
4415
4417
  } 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]);
4416
4418
  }
4417
4419
  function ht(t, e, i, a) {
4418
- const r = Ko(e, i), n = Yo(r), s = (function() {
4420
+ const r = Yo(e, i), n = Qo(r), s = (function() {
4419
4421
  switch (n) {
4420
4422
  case o.ADDFILEATTACHMENT:
4421
- return so(r);
4423
+ return oo(r);
4422
4424
  case o.NUMBER:
4423
- return co(r);
4424
- case o.TAGS:
4425
4425
  return uo(r);
4426
- case o.SELECT:
4426
+ case o.TAGS:
4427
4427
  return po(r);
4428
+ case o.SELECT:
4429
+ return go(r);
4428
4430
  case o.RADIO:
4429
- return Mi(r);
4431
+ return xi(r);
4430
4432
  case o.CHECKBOX:
4431
- return go(r);
4433
+ return fo(r);
4432
4434
  case o.CONTENTLINK:
4433
- return fo(r, a);
4435
+ return mo(r, a);
4434
4436
  case o.DESCRIPTION:
4435
- return yo(r);
4436
- case o.TEXTAREAHTML:
4437
4437
  return Ao(r);
4438
- case o.DATE:
4438
+ case o.TEXTAREAHTML:
4439
4439
  return Eo(r);
4440
- case o.DATETIME:
4440
+ case o.DATE:
4441
4441
  return So(r);
4442
- case o.URL:
4442
+ case o.DATETIME:
4443
4443
  return To(r);
4444
- case o.EMAIL:
4444
+ case o.URL:
4445
4445
  return Co(r);
4446
- case o.TOGGLE:
4446
+ case o.EMAIL:
4447
4447
  return bo(r);
4448
- case o.USERLINK:
4448
+ case o.TOGGLE:
4449
4449
  return wo(r);
4450
- case o.TEXTAREA:
4450
+ case o.USERLINK:
4451
4451
  return Lo(r);
4452
+ case o.TEXTAREA:
4453
+ return Io(r);
4452
4454
  case o.TEXT:
4453
4455
  default:
4454
- return mo(r);
4456
+ return yo(r);
4455
4457
  }
4456
4458
  })(), l = t.fields.push(s) - 1;
4457
4459
  return [e, l];
4458
4460
  }
4459
- function Ko(t, e) {
4461
+ function Yo(t, e) {
4460
4462
  let i;
4461
4463
  for (let a = 0; a < e.length && !i; a++)
4462
4464
  i = e[a]?.attributes.find((r) => r.name === t);
@@ -4464,7 +4466,7 @@ function Ko(t, e) {
4464
4466
  throw new Error("error converting installed app to V2: installed field not found in tables " + t);
4465
4467
  return i;
4466
4468
  }
4467
- function Pi(t, e, i, a, r) {
4469
+ function Ui(t, e, i, a, r) {
4468
4470
  e.views && (e.views[t] = !0, i.views[t][e.id] = {
4469
4471
  type: e.type,
4470
4472
  properties: e.properties ?? [],
@@ -4476,7 +4478,7 @@ function Pi(t, e, i, a, r) {
4476
4478
  pos: a
4477
4479
  });
4478
4480
  }
4479
- function Yo(t) {
4481
+ function Qo(t) {
4480
4482
  switch (t.widget.type) {
4481
4483
  case "number":
4482
4484
  return o.NUMBER;
@@ -4532,7 +4534,7 @@ function ot(t, e = !0) {
4532
4534
  }
4533
4535
  ];
4534
4536
  }
4535
- function Ui(t, e = !0) {
4537
+ function Fi(t, e = !0) {
4536
4538
  return [
4537
4539
  "alertAuthor",
4538
4540
  {
@@ -4547,7 +4549,7 @@ function Ui(t, e = !0) {
4547
4549
  }
4548
4550
  ];
4549
4551
  }
4550
- function Fi(t, e = !0) {
4552
+ function Wi(t, e = !0) {
4551
4553
  return [
4552
4554
  "sendAlert",
4553
4555
  {
@@ -4562,7 +4564,7 @@ function Fi(t, e = !0) {
4562
4564
  }
4563
4565
  ];
4564
4566
  }
4565
- function Wi(t, e = !0) {
4567
+ function Bi(t, e = !0) {
4566
4568
  return [
4567
4569
  "publishTo",
4568
4570
  {
@@ -4577,7 +4579,7 @@ function Wi(t, e = !0) {
4577
4579
  }
4578
4580
  ];
4579
4581
  }
4580
- function Bi(t = !0) {
4582
+ function qi(t = !0) {
4581
4583
  return [
4582
4584
  "user",
4583
4585
  {
@@ -4592,7 +4594,7 @@ function Bi(t = !0) {
4592
4594
  }
4593
4595
  ];
4594
4596
  }
4595
- function qi(t = !0) {
4597
+ function $i(t = !0) {
4596
4598
  return [
4597
4599
  "dateCreation",
4598
4600
  {
@@ -4607,7 +4609,7 @@ function qi(t = !0) {
4607
4609
  }
4608
4610
  ];
4609
4611
  }
4610
- function Qo(t, e, i) {
4612
+ function zo(t, e, i) {
4611
4613
  const { version: a, dateCreation: r } = t.manifest, n = t.typeModel, s = Object.assign(
4612
4614
  {},
4613
4615
  ...xt.map((m) => ({
@@ -4637,16 +4639,16 @@ function Qo(t, e, i) {
4637
4639
  fields: [],
4638
4640
  views: s,
4639
4641
  // TODO: weird cast
4640
- installFor: t.accessRightObjectList ? Bo(t.accessRightObjectList) : [],
4642
+ installFor: t.accessRightObjectList ? qo(t.accessRightObjectList) : [],
4641
4643
  audience: t.checkAccess === !1 ? nt.ALL : nt.CUSTOM
4642
4644
  };
4643
- qo(t, d, i), d.views = _i(d.views, d.syncViewFieldOrder, d.fields);
4644
- const g = zo(t.idApp, e);
4645
+ $o(t, d, i), d.views = Ni(d.views, d.syncViewFieldOrder, d.fields);
4646
+ const g = Zo(t.idApp, e);
4645
4647
  if (!g) return d;
4646
- const y = $i(g);
4648
+ const y = Vi(g);
4647
4649
  return y && (d.inWorkVersion = y), d;
4648
4650
  }
4649
- function $i(t) {
4651
+ function Vi(t) {
4650
4652
  if (!t.value) return;
4651
4653
  const e = JSON.parse(t.value);
4652
4654
  return e.studioVersion == 2 ? {
@@ -4659,28 +4661,28 @@ function $i(t) {
4659
4661
  syncViewFieldOrder: e.syncViewFieldOrder,
4660
4662
  audience: e.audience,
4661
4663
  installFor: e.installFor
4662
- } : { ...ki(e), status: Ot(t), migratedFrom: 1 };
4664
+ } : { ...Di(e), status: Ot(t), migratedFrom: 1 };
4663
4665
  }
4664
4666
  function Ot(t) {
4665
4667
  return t.status === ct.installed ? t.suspended ? V.suspended : V.installed : V.draft;
4666
4668
  }
4667
- function zo(t, e) {
4669
+ function Zo(t, e) {
4668
4670
  return e.find((a) => a.idApp === t && a.status === ct.saved);
4669
4671
  }
4670
- function Zo(t, e) {
4672
+ function el(t, e) {
4671
4673
  return !!e.find((i) => i.idApp === t && i.status === ct.installed);
4672
4674
  }
4673
- function Vi(t, e) {
4675
+ function Hi(t, e) {
4674
4676
  return t.map((a) => {
4675
4677
  try {
4676
- return a.status === ct.installed ? Qo(a, t, e) : Zo(a.idApp, t) ? void 0 : $i(a);
4678
+ return a.status === ct.installed ? zo(a, t, e) : el(a.idApp, t) ? void 0 : Vi(a);
4677
4679
  } catch (r) {
4678
4680
  console.error(r);
4679
4681
  return;
4680
4682
  }
4681
4683
  }).filter((a) => a !== void 0);
4682
4684
  }
4683
- const el = {
4685
+ const tl = {
4684
4686
  currentStudioApp: null,
4685
4687
  fetchCurrentStudioAppStatus: "idle",
4686
4688
  saveCurrentStudioAppStatus: "idle",
@@ -4689,7 +4691,7 @@ const el = {
4689
4691
  }, He = u("studio/fetchCurrentStudioApp", async ({ idApp: t, status: e }, { extra: i, rejectWithValue: a, getState: r }) => {
4690
4692
  const n = i.jApi, s = { error: 1, errorMsg: "Error fetching application" };
4691
4693
  try {
4692
- const l = (await n.application.studioGet(t, e)).result, d = Vi([l], r())[0];
4694
+ const l = (await n.application.studioGet(t, e)).result, d = Hi([l], r())[0];
4693
4695
  return d || a(s);
4694
4696
  } catch {
4695
4697
  return a(s);
@@ -4712,7 +4714,7 @@ const el = {
4712
4714
  const n = e.jApi, s = { error: 1, errorMsg: "Error saving application" }, l = a().studio.currentStudioApp.currentStudioApp;
4713
4715
  if (!l)
4714
4716
  return i(s);
4715
- const d = Io(l);
4717
+ const d = vo(l);
4716
4718
  try {
4717
4719
  await n.application.studioInstall(d), r(f.actions.success({ label: "APPSTUDIO_AppItem_Installed" })), t && t();
4718
4720
  return;
@@ -4721,7 +4723,7 @@ const el = {
4721
4723
  }
4722
4724
  }), lt = T({
4723
4725
  name: "currentStudioApp",
4724
- initialState: el,
4726
+ initialState: tl,
4725
4727
  reducers: {
4726
4728
  setCurrentApp: (t, e) => {
4727
4729
  t.currentStudioApp = e.payload;
@@ -4755,8 +4757,8 @@ const el = {
4755
4757
  });
4756
4758
  }
4757
4759
  });
4758
- function Hi(t, e, i) {
4759
- const a = t.studioVersion !== 2 ? JSON.parse(JSON.stringify(ki(t))) : JSON.parse(JSON.stringify(t));
4760
+ function Gi(t, e, i) {
4761
+ const a = t.studioVersion !== 2 ? JSON.parse(JSON.stringify(Di(t))) : JSON.parse(JSON.stringify(t));
4760
4762
  if (delete a.inWorkVersion, i)
4761
4763
  a.manifest.version = a.manifest.version + 0.1;
4762
4764
  else {
@@ -4773,7 +4775,7 @@ function Hi(t, e, i) {
4773
4775
  }
4774
4776
  return [a, a.idApp];
4775
4777
  }
4776
- function tl({ author: t, appName: e }) {
4778
+ function il({ author: t, appName: e }) {
4777
4779
  const i = M(), a = Object.assign(
4778
4780
  {},
4779
4781
  ...xt.map((r) => {
@@ -4849,7 +4851,7 @@ function tl({ author: t, appName: e }) {
4849
4851
  function re(t, e) {
4850
4852
  return t.manifest.appName > e.manifest.appName ? 1 : -1;
4851
4853
  }
4852
- const il = {
4854
+ const al = {
4853
4855
  loadingStudioAppsList: "idle",
4854
4856
  deleteStudioAppStatus: "idle",
4855
4857
  suspendStudioAppStatus: "idle",
@@ -4865,7 +4867,7 @@ const il = {
4865
4867
  const c = (await n.application.studioGet(m.idApp, m.status)).result, A = (await n.article.count(m.idApp)).result;
4866
4868
  return { ...c, articlesCount: A };
4867
4869
  })
4868
- )).map((m) => m.status === "fulfilled" ? m.value : null).reduce((m, c) => c !== null ? m.concat([c]) : m, []), y = Vi(g, r());
4870
+ )).map((m) => m.status === "fulfilled" ? m.value : null).reduce((m, c) => c !== null ? m.concat([c]) : m, []), y = Hi(g, r());
4869
4871
  return y.forEach(async (m) => {
4870
4872
  m.fields = di(m.fields, l, t), m.inWorkVersion && (m.inWorkVersion.fields = di(m.inWorkVersion.fields, l, t));
4871
4873
  }), y;
@@ -4882,7 +4884,7 @@ function di(t, e, i) {
4882
4884
  });
4883
4885
  }
4884
4886
  const Ke = u("studio/createApp", async ({ appName: t, callback: e }, { extra: i, dispatch: a, rejectWithValue: r, getState: n }) => {
4885
- const s = i.jApi, l = n().userCurrent?.uri, { newAppId: d, newStudioApp: g } = tl({ appName: t, ...l && { author: l } });
4887
+ const s = i.jApi, l = n().userCurrent?.uri, { newAppId: d, newStudioApp: g } = il({ appName: t, ...l && { author: l } });
4886
4888
  try {
4887
4889
  return await s.application.studioSave(d, JSON.stringify(g), "saved"), a(f.actions.success({ label: "APPSTUDIO_StudioApp_Created" })), a(lt.actions.setCurrentApp(g)), e && e(), g;
4888
4890
  } catch (y) {
@@ -4925,7 +4927,7 @@ const Ke = u("studio/createApp", async ({ appName: t, callback: e }, { extra: i,
4925
4927
  l = l.inWorkVersion;
4926
4928
  else
4927
4929
  return r({ error: 1, errorMsg: "Error cloning application" });
4928
- const d = a().userCurrent?.uri, [g, y] = Hi(l, d), m = JSON.stringify(g);
4930
+ const d = a().userCurrent?.uri, [g, y] = Gi(l, d), m = JSON.stringify(g);
4929
4931
  try {
4930
4932
  return await s.application.studioSave(y, m, "saved"), n(f.actions.success({ label: "APPSTUDIO_AppItem_Cloned" })), g;
4931
4933
  } catch (c) {
@@ -4935,7 +4937,7 @@ const Ke = u("studio/createApp", async ({ appName: t, callback: e }, { extra: i,
4935
4937
  const n = e.jApi, s = i().studio.studioAppsList.studioAppsList?.find((m) => m.idApp === t);
4936
4938
  if (!s || ![D.INSTALLED, D.SUSPENDED].includes(s.status))
4937
4939
  return a({ error: 1, errorMsg: "Error cloning application" });
4938
- const l = i().userCurrent?.uri, [d, g] = Hi(s, l, !0), y = JSON.stringify(d);
4940
+ const l = i().userCurrent?.uri, [d, g] = Gi(s, l, !0), y = JSON.stringify(d);
4939
4941
  try {
4940
4942
  return await n.application.studioSave(g, y, "saved"), r(f.actions.success({ label: "APPSTUDIO_AppItem_CreateInWork" })), d;
4941
4943
  } catch (m) {
@@ -4943,7 +4945,7 @@ const Ke = u("studio/createApp", async ({ appName: t, callback: e }, { extra: i,
4943
4945
  }
4944
4946
  }), Rt = T({
4945
4947
  name: "studioAppsList",
4946
- initialState: il,
4948
+ initialState: al,
4947
4949
  reducers: {
4948
4950
  setAppsList: (t, e) => {
4949
4951
  t.studioAppsList = [...e.payload].sort(re);
@@ -5006,21 +5008,21 @@ const Ke = u("studio/createApp", async ({ appName: t, callback: e }, { extra: i,
5006
5008
  e.createNewStudioAppStatus === "pending" && (e.createNewStudioAppStatus = "idle");
5007
5009
  });
5008
5010
  }
5009
- }), al = O({
5011
+ }), rl = O({
5010
5012
  [Rt.name]: Rt.reducer,
5011
5013
  [lt.name]: lt.reducer
5012
5014
  });
5013
- function rl(t) {
5015
+ function nl(t) {
5014
5016
  return t.studio.studioAppsList;
5015
5017
  }
5016
- function nl(t) {
5018
+ function sl(t) {
5017
5019
  return t.studio.currentStudioApp;
5018
5020
  }
5019
- const sl = {
5021
+ const ol = {
5020
5022
  name: "studio",
5021
- reducer: al
5022
- }, Vl = {
5023
- slice: sl,
5023
+ reducer: rl
5024
+ }, Hl = {
5025
+ slice: ol,
5024
5026
  actions: {
5025
5027
  ...Rt.actions,
5026
5028
  ...lt.actions,
@@ -5036,11 +5038,11 @@ const sl = {
5036
5038
  createInWorkStudioApp: et
5037
5039
  },
5038
5040
  selectors: {
5039
- selectStudioAppsList: rl,
5040
- selectCurrentStudioApp: nl
5041
+ selectStudioAppsList: nl,
5042
+ selectCurrentStudioApp: sl
5041
5043
  },
5042
5044
  utils: {
5043
- updateViewsFromFields: _i,
5045
+ updateViewsFromFields: Ni,
5044
5046
  generateNewFormField: Z
5045
5047
  }
5046
5048
  }, tt = u("wall/fetchWallFilters", async (t, { extra: e, rejectWithValue: i }) => {
@@ -5074,71 +5076,71 @@ const sl = {
5074
5076
  e.loading = "idle";
5075
5077
  });
5076
5078
  }
5077
- }), ol = (t) => t.wall, ll = (t) => t.wall.filters, dl = (t) => t.wall.taxonomies, Hl = {
5079
+ }), ll = (t) => t.wall, dl = (t) => t.wall.filters, cl = (t) => t.wall.taxonomies, Gl = {
5078
5080
  slice: ui,
5079
5081
  actions: { ...ui.actions, fetchWallFilters: tt },
5080
5082
  selectors: {
5081
- selectWall: ol,
5082
- selectWallFilters: ll,
5083
- selectWallFiltersTaxonomies: dl
5083
+ selectWall: ll,
5084
+ selectWallFilters: dl,
5085
+ selectWallFiltersTaxonomies: cl
5084
5086
  }
5085
5087
  };
5086
5088
  export {
5087
5089
  D as APP_STATUS_TYPE,
5088
5090
  nt as AUDIENCE,
5089
- fl as AdminLogs,
5090
- yl as Animations,
5091
- Xs as AppColumnsDefaultTypes,
5091
+ ml as AdminLogs,
5092
+ Al as Animations,
5093
+ Js as AppColumnsDefaultTypes,
5092
5094
  S as AppFieldFormPropertyTypes,
5093
5095
  jt as AppFormBannedFromViews,
5094
- Ks as AppFormFieldOnlyInView,
5095
- $l as AppFormFixedList,
5096
+ Ys as AppFormFieldOnlyInView,
5097
+ Vl as AppFormFixedList,
5096
5098
  o as AppFormItemTypes,
5097
- Js as AppFormNoAsFieldList,
5098
- Ys as AppFormNonPrimaryList,
5099
- Ri as AppFormPrimaryListValues,
5100
- ql as AppFormUniqueListCheck,
5101
- Al as Application,
5102
- pl as Article,
5103
- El as AssetReservation,
5104
- Tl as Bookmark,
5105
- Cl as Calendar,
5106
- bl as Comment,
5107
- Sl as ContentReport,
5108
- zs as Description,
5109
- Qs as Element,
5110
- Hs as ExtraAppFieldsItemName,
5099
+ Ks as AppFormNoAsFieldList,
5100
+ Qs as AppFormNonPrimaryList,
5101
+ ki as AppFormPrimaryListValues,
5102
+ $l as AppFormUniqueListCheck,
5103
+ El as Application,
5104
+ gl as Article,
5105
+ Sl as AssetReservation,
5106
+ Cl as Bookmark,
5107
+ bl as Calendar,
5108
+ wl as Comment,
5109
+ Tl as ContentReport,
5110
+ Zs as Description,
5111
+ zs as Element,
5112
+ Gs as ExtraAppFieldsItemName,
5111
5113
  p as ExtraAppFieldsItemViews,
5112
- wl as ExtraBot,
5113
- Ll as Faq,
5114
- Il as FileIntegrity,
5114
+ Ll as ExtraBot,
5115
+ Il as Faq,
5116
+ vl as FileIntegrity,
5115
5117
  Yt as FileIntegritySlice,
5116
- vl as Hook,
5117
- Ol as MagicPad,
5118
+ hl as Hook,
5119
+ Rl as MagicPad,
5118
5120
  q as MapExtraFieldsWithView,
5119
- kl as MediaLibrary,
5120
- Hr as Model,
5121
- Dl as Network,
5122
- Ml as Platform,
5121
+ Dl as MediaLibrary,
5122
+ Gr as Model,
5123
+ Ml as Network,
5124
+ xl as Platform,
5123
5125
  st as STUDIO_VIEW,
5124
- jl as Share,
5125
- Bl as SocialActions,
5126
+ _l as Share,
5127
+ ql as SocialActions,
5126
5128
  V as StatusType,
5127
- Nl as TVDisplay,
5128
- fn as TeamWork,
5129
- Pl as TinyMCE,
5129
+ Pl as TVDisplay,
5130
+ mn as TeamWork,
5131
+ Ul as TinyMCE,
5130
5132
  f as Toast,
5131
- Ul as UserCurrent,
5132
- Hl as Wall,
5133
- xl as WedocApp,
5134
- Fs as Widget,
5135
- Wl as WidgetEditor,
5136
- Zi as actions,
5137
- gl as adminLogsReducer,
5133
+ Fl as UserCurrent,
5134
+ Gl as Wall,
5135
+ jl as WedocApp,
5136
+ Ws as Widget,
5137
+ Bl as WidgetEditor,
5138
+ ea as actions,
5139
+ fl as adminLogsReducer,
5138
5140
  gi as adminLogsSlice,
5139
- ml as animationsReducer,
5141
+ yl as animationsReducer,
5140
5142
  fi as animationsSlice,
5141
- _a as contentReportSlice,
5143
+ Na as contentReportSlice,
5142
5144
  Re as deleteQuarantine,
5143
5145
  Xt as extraBotSlice,
5144
5146
  J as fetchExtraBotListAll,
@@ -5155,27 +5157,27 @@ export {
5155
5157
  me as fetchReports,
5156
5158
  tt as fetchWallFilters,
5157
5159
  ci as initialState,
5158
- hl as jland,
5159
- vr as magicPadSlice,
5160
- Rl as mediaLibraryReducer,
5161
- Ti as mediaLibrarySlice,
5160
+ Ol as jland,
5161
+ hr as magicPadSlice,
5162
+ kl as mediaLibraryReducer,
5163
+ Ci as mediaLibrarySlice,
5162
5164
  Oe as releaseQuarantine,
5163
5165
  Le as saveExtraBot,
5164
- rr as selectExtraBotListAll,
5165
- nr as selectExtraBotListMines,
5166
- gr as selectFileIntegrityAction,
5167
- fr as selectFileIntegrityList,
5168
- ol as selectWall,
5169
- ll as selectWallFilters,
5170
- dl as selectWallFiltersTaxonomies,
5166
+ nr as selectExtraBotListAll,
5167
+ sr as selectExtraBotListMines,
5168
+ fr as selectFileIntegrityAction,
5169
+ mr as selectFileIntegrityList,
5170
+ ll as selectWall,
5171
+ dl as selectWallFilters,
5172
+ cl as selectWallFiltersTaxonomies,
5171
5173
  ii as slice,
5172
- Vl as studio,
5173
- wi as teamWorkSlice,
5174
- _l as teamworkReducer,
5174
+ Hl as studio,
5175
+ Li as teamWorkSlice,
5176
+ Nl as teamworkReducer,
5175
5177
  we as toggleExtraBotActivation,
5176
- ar as updateListBotProperty,
5178
+ rr as updateListBotProperty,
5177
5179
  ye as updateStatus,
5178
- Fl as updateWidgetContent,
5180
+ Wl as updateWidgetContent,
5179
5181
  xt as viewsList,
5180
5182
  ui as wallSlice
5181
5183
  };