jamespot-front-business 1.3.17 → 1.3.19

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
- import { createEntityAdapter as lt, createSlice as T, createAsyncThunk as p, combineReducers as O } from "@reduxjs/toolkit";
2
- import { jEnsure as di, Format as pt, formatImgUrl as Gi, UserLevel as Xi, WidgetsName as C, StudioApplicationStatus as dt } from "jamespot-user-api";
3
- const Ji = function(t) {
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) {
4
4
  return [
5
5
  {
6
6
  namespace: "JAMESPOT",
@@ -10,35 +10,35 @@ const Ji = function(t) {
10
10
  }
11
11
  }
12
12
  ];
13
- }, nl = {
14
- getArticleRTHandlers: Ji
15
- }, v = (t) => !!t && typeof t == "object" && "aborted" in t && !!t.aborted, E = (t, e) => !t || typeof t != "object" ? e ?? "GLOBAL_Technical_Error" : "errorMsg" in t && typeof t.errorMsg == "string" ? t.errorMsg : "message" in t && typeof t.message == "string" ? t.message : e ?? "GLOBAL_Technical_Error", ne = lt({
13
+ }, ul = {
14
+ getArticleRTHandlers: Qi
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
- }), tt = T({
17
+ }), it = T({
18
18
  name: "toasts",
19
19
  initialState: ne.getInitialState(),
20
20
  reducers: {
21
21
  addOne: ne.addOne,
22
22
  removeOne: ne.removeOne
23
23
  }
24
- }), Ki = () => Math.random().toString(16).slice(2), te = ({ id: t = Ki(), ...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
- return r(tt.actions.addOne(n)), setTimeout(() => {
27
- r(tt.actions.removeOne(t));
26
+ return r(it.actions.addOne(n)), setTimeout(() => {
27
+ r(it.actions.removeOne(t));
28
28
  }, a), t;
29
- }, Yi = {
29
+ }, Zi = {
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
- }, Qi = ne.getSelectors((t) => t.toasts), f = {
35
- slice: tt,
36
- actions: { ...Yi, ...tt.actions },
37
- selectors: Qi
38
- }, Nt = (t) => t.toISOString().slice(0, 19).replace(/T/g, " "), zi = () => {
34
+ }, ea = ne.getSelectors((t) => t.toasts), f = {
35
+ slice: it,
36
+ actions: { ...Zi, ...it.actions },
37
+ selectors: ea
38
+ }, Pt = (t) => t.toISOString().slice(0, 19).replace(/T/g, " "), ta = () => {
39
39
  const t = /* @__PURE__ */ new Date();
40
40
  return t.setMonth(t.getMonth() - 1), t;
41
- }, Zi = {
41
+ }, ia = {
42
42
  data: [],
43
43
  loading: "idle",
44
44
  page: 1,
@@ -47,23 +47,23 @@ const Ji = function(t) {
47
47
  name: "dateCreation",
48
48
  method: "between",
49
49
  value: {
50
- start: Nt(zi()),
51
- end: Nt(/* @__PURE__ */ new Date())
50
+ start: Pt(ta()),
51
+ end: Pt(/* @__PURE__ */ new Date())
52
52
  }
53
53
  }
54
54
  ],
55
55
  orders: [],
56
56
  limit: 30,
57
57
  nbResults: 0
58
- }, se = p("admin/fetchLogsNavigation", async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
58
+ }, se = u("admin/fetchLogsNavigation", async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
59
59
  try {
60
60
  return (await e.jApi.admin.logs.getLogsNavigation(t)).result;
61
61
  } catch (r) {
62
62
  return v(r) || a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot retrieve admin logs navigation" });
63
63
  }
64
- }), gt = T({
64
+ }), ft = T({
65
65
  name: "logsNavigation",
66
- initialState: Zi,
66
+ initialState: ia,
67
67
  reducers: {
68
68
  setNavigationOrder: (t, e) => {
69
69
  t.orders = [...e.payload], t.page = 1;
@@ -84,10 +84,10 @@ const Ji = function(t) {
84
84
  e.loading = "idle";
85
85
  });
86
86
  }
87
- }), Pt = (t) => t.toISOString().slice(0, 19).replace(/T/g, " "), ea = () => {
87
+ }), Ut = (t) => t.toISOString().slice(0, 19).replace(/T/g, " "), aa = () => {
88
88
  const t = /* @__PURE__ */ new Date();
89
89
  return t.setMonth(t.getMonth() - 1), t;
90
- }, ta = {
90
+ }, ra = {
91
91
  data: [],
92
92
  loading: "idle",
93
93
  page: 1,
@@ -96,23 +96,23 @@ const Ji = function(t) {
96
96
  name: "dateCreation",
97
97
  method: "between",
98
98
  value: {
99
- start: Pt(ea()),
100
- end: Pt(/* @__PURE__ */ new Date())
99
+ start: Ut(aa()),
100
+ end: Ut(/* @__PURE__ */ new Date())
101
101
  }
102
102
  }
103
103
  ],
104
104
  orders: [],
105
105
  limit: 30,
106
106
  nbResults: 0
107
- }, oe = p("admin/fetchLogsObjects", async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
107
+ }, oe = u("admin/fetchLogsObjects", async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
108
108
  try {
109
109
  return (await e.jApi.admin.logs.getLogsObjects(t)).result;
110
110
  } catch (r) {
111
111
  return v(r) || a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot retrieve admin logs Objects" });
112
112
  }
113
- }), ft = T({
113
+ }), mt = T({
114
114
  name: "logsObjects",
115
- initialState: ta,
115
+ initialState: ra,
116
116
  reducers: {
117
117
  setObjectsOrder: (t, e) => {
118
118
  t.orders = [...e.payload], t.page = 1;
@@ -133,10 +133,10 @@ const Ji = function(t) {
133
133
  e.loading = "idle";
134
134
  });
135
135
  }
136
- }), Ut = (t) => t.toISOString().slice(0, 19).replace(/T/g, " "), ia = () => {
136
+ }), Ft = (t) => t.toISOString().slice(0, 19).replace(/T/g, " "), na = () => {
137
137
  const t = /* @__PURE__ */ new Date();
138
138
  return t.setMonth(t.getMonth() - 1), t;
139
- }, aa = {
139
+ }, sa = {
140
140
  data: [],
141
141
  loading: "idle",
142
142
  page: 1,
@@ -145,23 +145,23 @@ const Ji = function(t) {
145
145
  name: "dateCreation",
146
146
  method: "between",
147
147
  value: {
148
- start: Ut(ia()),
149
- end: Ut(/* @__PURE__ */ new Date())
148
+ start: Ft(na()),
149
+ end: Ft(/* @__PURE__ */ new Date())
150
150
  }
151
151
  }
152
152
  ],
153
153
  orders: [],
154
154
  limit: 30,
155
155
  nbResults: 0
156
- }, le = p("admin/fetchLogsSearch", async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
156
+ }, le = u("admin/fetchLogsSearch", async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
157
157
  try {
158
158
  return (await e.jApi.admin.logs.getLogsSearch(t)).result;
159
159
  } catch (r) {
160
160
  return v(r) || a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot retrieve admin logs Search" });
161
161
  }
162
- }), mt = T({
162
+ }), yt = T({
163
163
  name: "logsSearch",
164
- initialState: aa,
164
+ initialState: sa,
165
165
  reducers: {
166
166
  setSearchOrder: (t, e) => {
167
167
  t.orders = [...e.payload], t.page = 1;
@@ -182,37 +182,37 @@ const Ji = function(t) {
182
182
  e.loading = "idle";
183
183
  });
184
184
  }
185
- }), ra = (t) => t.adminLogs.logsNavigation, na = (t) => t.adminLogs.logsObjects, sa = (t) => t.adminLogs.logsSearch, oa = O({
186
- [gt.name]: gt.reducer,
185
+ }), oa = (t) => t.adminLogs.logsNavigation, la = (t) => t.adminLogs.logsObjects, da = (t) => t.adminLogs.logsSearch, ca = O({
187
186
  [ft.name]: ft.reducer,
188
- [mt.name]: mt.reducer
189
- }), ci = {
187
+ [mt.name]: mt.reducer,
188
+ [yt.name]: yt.reducer
189
+ }), gi = {
190
190
  name: "adminLogs",
191
- reducer: oa
192
- }, sl = ci.reducer, ol = {
193
- slice: ci,
191
+ reducer: ca
192
+ }, pl = gi.reducer, gl = {
193
+ slice: gi,
194
194
  actions: {
195
- ...gt.actions,
196
195
  ...ft.actions,
197
196
  ...mt.actions,
197
+ ...yt.actions,
198
198
  fetchLogsNavigation: se,
199
199
  fetchLogsObjects: oe,
200
200
  fetchLogsSearch: le
201
201
  },
202
- selectors: { selectAdminLogsNavigation: ra, selectAdminLogsObjects: na, selectAdminLogsSearch: sa }
203
- }, la = {
202
+ selectors: { selectAdminLogsNavigation: oa, selectAdminLogsObjects: la, selectAdminLogsSearch: da }
203
+ }, ua = {
204
204
  animationConfiguration: null,
205
205
  isActiveForCurrentUser: !1,
206
206
  isInitialized: !1,
207
207
  isToggleLoading: !1
208
- }, Ft = T({
208
+ }, Wt = T({
209
209
  name: "animationsList",
210
- initialState: la,
210
+ initialState: ua,
211
211
  reducers: {},
212
212
  extraReducers: (t) => {
213
213
  t.addCase(X.fulfilled, (e, i) => {
214
214
  e.isActiveForCurrentUser = i.payload.isActiveForCurrentUser, e.animationConfiguration = i.payload.animationConfiguration, e.isInitialized = i.payload.isInitialized;
215
- }), t.addCase(it.fulfilled, (e, i) => {
215
+ }), t.addCase(at.fulfilled, (e, i) => {
216
216
  e.animationConfigurationApp = i.payload;
217
217
  }), t.addCase(de.pending, (e) => {
218
218
  e.isToggleLoading = !0, e.isActiveForCurrentUser = !e.isActiveForCurrentUser;
@@ -222,20 +222,20 @@ const Ji = function(t) {
222
222
  e.isActiveForCurrentUser = !e.isActiveForCurrentUser, e.isToggleLoading = !1;
223
223
  });
224
224
  }
225
- }), X = p("animations/fetchCurrentAnimation", async (t, { extra: e, rejectWithValue: i, dispatch: a, signal: r }) => {
225
+ }), X = u("animations/fetchCurrentAnimation", async (t, { extra: e, rejectWithValue: i, dispatch: a, signal: r }) => {
226
226
  try {
227
227
  const n = (await e.jApi.animations.GetCurrentAnimation({ signal: r })).result, s = (await e.jApi.animations.GetAnimationActive({ signal: r })).result;
228
228
  return { animationConfiguration: n, isActiveForCurrentUser: s, isInitialized: !0 };
229
229
  } catch (n) {
230
230
  return v(n) || a(f.actions.error({ label: E(n) })), i({ error: 1, errorMsg: "Cannot retrieve animation" });
231
231
  }
232
- }), it = p("animations/fetchCurrentAnimationApp", async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
232
+ }), at = u("animations/fetchCurrentAnimationApp", async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
233
233
  try {
234
234
  return (await e.jApi.animations.GetCurrentAnimationApp()).result;
235
235
  } catch (r) {
236
236
  return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot retrieve animation" });
237
237
  }
238
- }), da = p(
238
+ }), pa = u(
239
239
  "animations/deleteCurrentAnimation",
240
240
  async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
241
241
  try {
@@ -245,7 +245,7 @@ const Ji = function(t) {
245
245
  return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot delete animation" });
246
246
  }
247
247
  }
248
- ), ca = p(
248
+ ), ga = u(
249
249
  "animations/saveCurrentAnimation",
250
250
  async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
251
251
  try {
@@ -255,7 +255,7 @@ const Ji = function(t) {
255
255
  return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot update animation" });
256
256
  }
257
257
  }
258
- ), de = p(
258
+ ), de = u(
259
259
  "animations/toggleAnimationIsActive",
260
260
  async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
261
261
  try {
@@ -265,20 +265,20 @@ const Ji = function(t) {
265
265
  return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot update animation" });
266
266
  }
267
267
  }
268
- ), ua = function(t) {
268
+ ), fa = function(t) {
269
269
  return [
270
270
  {
271
271
  namespace: "ANIMATIONS",
272
272
  function: "add",
273
273
  handler: function(r) {
274
- r.namespace === "ANIMATIONS" && r.function === "add" && (t(X()), t(it()));
274
+ r.namespace === "ANIMATIONS" && r.function === "add" && (t(X()), t(at()));
275
275
  }
276
276
  },
277
277
  {
278
278
  namespace: "ANIMATIONS",
279
279
  function: "delete",
280
280
  handler: function(r) {
281
- r.namespace === "ANIMATIONS" && r.function === "delete" && (t(X()), t(it()));
281
+ r.namespace === "ANIMATIONS" && r.function === "delete" && (t(X()), t(at()));
282
282
  }
283
283
  },
284
284
  {
@@ -289,18 +289,18 @@ const Ji = function(t) {
289
289
  }
290
290
  }
291
291
  ];
292
- }, ce = p("animations/fetchAnimationStats", async ({ name: t }, { extra: e, rejectWithValue: i, dispatch: a }) => {
292
+ }, ce = u("animations/fetchAnimationStats", async ({ name: t }, { extra: e, rejectWithValue: i, dispatch: a }) => {
293
293
  try {
294
294
  return (await e.jApi.animations.GetAnimationStats(t)).result.data;
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
- }), pa = {
298
+ }), ma = {
299
299
  stats: [],
300
300
  loading: "idle"
301
301
  }, Bt = T({
302
302
  name: "animationStats",
303
- initialState: pa,
303
+ initialState: ma,
304
304
  reducers: {},
305
305
  extraReducers: (t) => {
306
306
  t.addCase(ce.pending, (e) => {
@@ -311,18 +311,18 @@ const Ji = function(t) {
311
311
  e.loading = "idle";
312
312
  });
313
313
  }
314
- }), ue = p("animations/fetchAnimationStatsCurrent", async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
314
+ }), ue = u("animations/fetchAnimationStatsCurrent", async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
315
315
  try {
316
316
  return (await e.jApi.animations.GetAnimationStatsCurrent(t)).result;
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
- }), ga = {
320
+ }), ya = {
321
321
  stats: null,
322
322
  loading: "idle"
323
- }, Wt = T({
323
+ }, qt = T({
324
324
  name: "animationStatsCurrent",
325
- initialState: ga,
325
+ initialState: ya,
326
326
  reducers: {},
327
327
  extraReducers: (t) => {
328
328
  t.addCase(ue.pending, (e) => {
@@ -333,54 +333,54 @@ const Ji = function(t) {
333
333
  e.loading = "idle";
334
334
  });
335
335
  }
336
- }), fa = (t) => t.animations.animationsList.animationConfiguration, ma = (t) => t.animations.animationsList.isActiveForCurrentUser, ya = (t) => t.animations.animationsList.isToggleLoading, Aa = (t) => t.animations.animationsList.animationConfigurationApp, Ea = O({
337
- [Ft.name]: Ft.reducer,
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({
337
+ [Wt.name]: Wt.reducer,
338
338
  [Bt.name]: Bt.reducer,
339
- [Wt.name]: Wt.reducer
340
- }), ui = {
339
+ [qt.name]: qt.reducer
340
+ }), fi = {
341
341
  name: "animations",
342
- reducer: Ea
343
- }, ll = ui.reducer, dl = {
344
- slice: ui,
342
+ reducer: Ca
343
+ }, fl = fi.reducer, ml = {
344
+ slice: fi,
345
345
  actions: {
346
- saveCurrentAnimation: ca,
346
+ saveCurrentAnimation: ga,
347
347
  fetchCurrentAnimation: X,
348
- deleteCurrentAnimation: da,
348
+ deleteCurrentAnimation: pa,
349
349
  toggleAnimationIsActive: de,
350
- fetchCurrentAnimationApp: it,
350
+ fetchCurrentAnimationApp: at,
351
351
  fetchAnimationStats: ce,
352
352
  fetchAnimationStatsCurrent: ue
353
353
  },
354
- selectors: { selectCurrentAnimation: fa, isActiveAnimation: ma, isToggleLoading: ya, selectAnimationConfigurationApp: Aa },
355
- getAnimationsRTHandlers: ua
356
- }, B = lt({
354
+ selectors: { selectCurrentAnimation: Aa, isActiveAnimation: Ea, isToggleLoading: Sa, selectAnimationConfigurationApp: Ta },
355
+ getAnimationsRTHandlers: fa
356
+ }, W = dt({
357
357
  selectId: (t) => t.name,
358
358
  sortComparer: (t, e) => t.label.localeCompare(e.label)
359
- }), pi = p(
359
+ }), mi = u(
360
360
  "application/fetch",
361
361
  async (t, { extra: e }) => await e.jApi.application.list()
362
- ), qt = T({
362
+ ), $t = T({
363
363
  name: "applications",
364
- initialState: B.getInitialState(),
364
+ initialState: W.getInitialState(),
365
365
  reducers: {
366
- addOne: B.addOne,
367
- addMany: B.addMany,
368
- setAll: B.setAll
366
+ addOne: W.addOne,
367
+ addMany: W.addMany,
368
+ setAll: W.setAll
369
369
  },
370
370
  extraReducers: (t) => {
371
- t.addCase(pi.fulfilled, (e, i) => {
372
- B.setAll(e, i.payload.result);
371
+ t.addCase(mi.fulfilled, (e, i) => {
372
+ W.setAll(e, i.payload.result);
373
373
  });
374
374
  }
375
- }), Sa = B.getSelectors((t) => t.entities.applications), cl = {
376
- slice: qt,
377
- actions: { fetchList: pi, ...qt.actions },
378
- selectors: Sa
379
- }, Ta = {
375
+ }), ba = W.getSelectors((t) => t.entities.applications), yl = {
376
+ slice: $t,
377
+ actions: { fetchList: mi, ...$t.actions },
378
+ selectors: ba
379
+ }, wa = {
380
380
  entities: [],
381
381
  loading: "idle",
382
382
  nbResults: 0
383
- }, pe = p(
383
+ }, pe = u(
384
384
  "BookableAsset/fetchBookableAsset",
385
385
  async (t, { extra: e }) => {
386
386
  const i = {
@@ -392,9 +392,9 @@ const Ji = function(t) {
392
392
  format: "raw-list"
393
393
  });
394
394
  }
395
- ), $t = T({
395
+ ), Vt = T({
396
396
  name: "bookableAsset",
397
- initialState: Ta,
397
+ initialState: wa,
398
398
  reducers: {},
399
399
  extraReducers: (t) => {
400
400
  t.addCase(pe.pending, (e) => {
@@ -405,10 +405,10 @@ const Ji = function(t) {
405
405
  e.loading = "idle";
406
406
  });
407
407
  }
408
- }), ge = p(
408
+ }), ge = u(
409
409
  "AssetReservation/configuration",
410
410
  async (t, { extra: e }) => await e.jApi.assetReservation.configuration()
411
- ), Ca = {
411
+ ), La = {
412
412
  description: "",
413
413
  right: {
414
414
  manage: !1
@@ -419,9 +419,9 @@ const Ji = function(t) {
419
419
  bookingClosingTime: "24:00",
420
420
  lastBookingSchedule: "24:00",
421
421
  loading: "idle"
422
- }, Vt = T({
422
+ }, Ht = T({
423
423
  name: "configuration",
424
- initialState: Ca,
424
+ initialState: La,
425
425
  reducers: {},
426
426
  extraReducers: (t) => {
427
427
  t.addCase(ge.pending, (e) => {
@@ -433,31 +433,31 @@ const Ji = function(t) {
433
433
  e.loading = "idle";
434
434
  });
435
435
  }
436
- }), gi = {
436
+ }), yi = {
437
437
  date: "",
438
438
  hourStart: "",
439
439
  hourEnd: ""
440
- }, ba = {
440
+ }, Ia = {
441
441
  entities: [],
442
442
  loading: "idle",
443
443
  nbResults: 0,
444
- form: gi
445
- }, fe = p("Reservation/fetchReservation", async (t, { extra: e }) => {
444
+ form: yi
445
+ }, fe = u("Reservation/fetchReservation", async (t, { extra: e }) => {
446
446
  const i = {
447
447
  format: "raw-list",
448
448
  limit: 50,
449
449
  viewMode: t === "history" ? "history" : void 0
450
450
  };
451
451
  return await e.jApi.assetReservation.getList(i);
452
- }), yt = T({
452
+ }), At = T({
453
453
  name: "reservation",
454
- initialState: ba,
454
+ initialState: Ia,
455
455
  reducers: {
456
456
  setForm: (t, e) => {
457
457
  t.form = e.payload;
458
458
  },
459
459
  resetForm: (t) => {
460
- t.form = gi;
460
+ t.form = yi;
461
461
  },
462
462
  removeReservation: (t, e) => {
463
463
  t.entities = t.entities.filter((i) => i.id !== e.payload);
@@ -472,25 +472,25 @@ const Ji = function(t) {
472
472
  e.loading = "idle";
473
473
  });
474
474
  }
475
- }), La = O({
476
- [$t.name]: $t.reducer,
475
+ }), va = O({
477
476
  [Vt.name]: Vt.reducer,
478
- [yt.name]: yt.reducer
479
- }), wa = {
477
+ [Ht.name]: Ht.reducer,
478
+ [At.name]: At.reducer
479
+ }), ha = {
480
480
  name: "assetReservation",
481
- reducer: La
482
- }, Ia = (t) => t.assetReservation.configuration, va = (t) => t.assetReservation.bookableAsset.entities, ha = (t) => t.assetReservation.bookableAsset.loading, Oa = (t) => t.assetReservation.reservation.entities, Ra = (t) => t.assetReservation.reservation.loading, Da = (t) => t.assetReservation.reservation.form, ul = {
483
- slice: wa,
484
- actions: { ...yt.actions, fetchBookableAsset: pe, fetchConfiguration: ge, fetchReservation: fe },
481
+ reducer: va
482
+ }, Oa = (t) => t.assetReservation.configuration, Ra = (t) => t.assetReservation.bookableAsset.entities, Da = (t) => t.assetReservation.bookableAsset.loading, ka = (t) => t.assetReservation.reservation.entities, Ma = (t) => t.assetReservation.reservation.loading, xa = (t) => t.assetReservation.reservation.form, Al = {
483
+ slice: ha,
484
+ actions: { ...At.actions, fetchBookableAsset: pe, fetchConfiguration: ge, fetchReservation: fe },
485
485
  selectors: {
486
- configuration: Ia,
487
- bookableAssetEntities: va,
488
- bookableAssetLoading: ha,
489
- reservationEntities: Oa,
490
- reservationLoading: Ra,
491
- reservationForm: Da
492
- }
493
- }, ka = {
486
+ configuration: Oa,
487
+ bookableAssetEntities: Ra,
488
+ bookableAssetLoading: Da,
489
+ reservationEntities: ka,
490
+ reservationLoading: Ma,
491
+ reservationForm: xa
492
+ }
493
+ }, ja = {
494
494
  loading: "idle",
495
495
  reports: [],
496
496
  page: 1,
@@ -500,9 +500,9 @@ const Ji = function(t) {
500
500
  limit: 10,
501
501
  nbResults: 0,
502
502
  pendingReports: []
503
- }, Ma = T({
503
+ }, _a = T({
504
504
  name: "contentReport",
505
- initialState: ka,
505
+ initialState: ja,
506
506
  reducers: {
507
507
  setTab: (t, e) => {
508
508
  t.tab = e.payload, t.page = 1, t.orders = [], t.filters = [];
@@ -541,7 +541,7 @@ const Ji = function(t) {
541
541
  ));
542
542
  });
543
543
  }
544
- }), me = p(
544
+ }), me = u(
545
545
  "contentReport/fetchReports",
546
546
  async (t, { rejectWithValue: e, extra: i, dispatch: a, getState: r }) => {
547
547
  const n = r().contentReport, s = r().userCurrent?.id;
@@ -557,20 +557,20 @@ const Ji = function(t) {
557
557
  return v(l) || a(f.actions.error({ label: E(l) })), e({ error: 1, errorMsg: "Cannot fetch pads" });
558
558
  }
559
559
  }
560
- ), ye = p("contentReport/updateStatus", async (t, { dispatch: e, rejectWithValue: i, extra: a }) => {
560
+ ), ye = u("contentReport/updateStatus", async (t, { dispatch: e, rejectWithValue: i, extra: a }) => {
561
561
  try {
562
562
  return await a.jApi.contentReport.updateStatus(t), e(f.actions.success({ label: "GLOBAL_Successfully_Saved" })), !0;
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
- }), xa = (t) => t.contentReport, pl = {
567
- slice: Ma,
566
+ }), Na = (t) => t.contentReport, El = {
567
+ slice: _a,
568
568
  actions: {
569
569
  fetchReports: me,
570
570
  updateStatus: ye
571
571
  },
572
- selectors: { selectContentReport: xa }
573
- }, ja = {
572
+ selectors: { selectContentReport: Na }
573
+ }, Pa = {
574
574
  bookmarks: [],
575
575
  loading: "idle",
576
576
  status: void 0,
@@ -582,16 +582,16 @@ const Ji = function(t) {
582
582
  status: void 0
583
583
  },
584
584
  delete: {}
585
- }, $ = p("bookmarkList/fetchbookmarkList", async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
585
+ }, $ = u("bookmarkList/fetchbookmarkList", async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
586
586
  const r = { limit: 999 };
587
587
  try {
588
588
  return await e.jApi.bookmark.getFormattedList(r, "raw-list");
589
589
  } catch (n) {
590
590
  return a(f.actions.error({ label: E(n) })), i({ error: 1, errorMsg: "Cannot retrieve bookmarks" });
591
591
  }
592
- }), Ae = p("bookmarkList/addBookmark", async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
592
+ }), Ae = u("bookmarkList/addBookmark", async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
593
593
  try {
594
- return di.isBookmarkLink(t) ? await e.jApi.bookmark.addFormattedLink(
594
+ return pi.isBookmarkLink(t) ? await e.jApi.bookmark.addFormattedLink(
595
595
  t.targetId,
596
596
  t.targetType,
597
597
  "raw-list"
@@ -600,7 +600,7 @@ const Ji = function(t) {
600
600
  const n = E(r);
601
601
  return a(f.actions.error({ label: n })), i({ error: 1, errorMsg: "Error saving bookmark" });
602
602
  }
603
- }), Ee = p(
603
+ }), Ee = u(
604
604
  "bookmarkList/moveBookmark",
605
605
  async ({ bookmark: t, bookmarkReference: e, position: i }, { extra: a, rejectWithValue: r, dispatch: n }) => {
606
606
  try {
@@ -610,7 +610,7 @@ const Ji = function(t) {
610
610
  return n(f.actions.error({ label: E(s) })), r({ error: 1, errorMsg: "Error moving bookmark" });
611
611
  }
612
612
  }
613
- ), Se = p("bookmarkList/deleteBookmark", async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
613
+ ), Se = u("bookmarkList/deleteBookmark", async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
614
614
  try {
615
615
  await e.jApi.bookmark.delete(t.id);
616
616
  return;
@@ -619,7 +619,7 @@ const Ji = function(t) {
619
619
  }
620
620
  }), z = T({
621
621
  name: "bookmarkList",
622
- initialState: ja,
622
+ initialState: Pa,
623
623
  reducers: {
624
624
  resetAddBookmarkStatus: (t, e) => {
625
625
  t.add[e.payload] && delete t.add[e.payload];
@@ -688,9 +688,9 @@ const Ji = function(t) {
688
688
  });
689
689
  });
690
690
  }
691
- }), _a = function(t) {
691
+ }), Ua = function(t) {
692
692
  const e = function(n, s) {
693
- di.objectIsType("bookmarkLink", n.object) ? t(s(n.object)) : t($());
693
+ pi.objectIsType("bookmarkLink", n.object) ? t(s(n.object)) : t($());
694
694
  }, i = function() {
695
695
  t($());
696
696
  }, a = function(n) {
@@ -725,11 +725,11 @@ const Ji = function(t) {
725
725
  handler: i
726
726
  }
727
727
  ];
728
- }, Na = {
728
+ }, Fa = {
729
729
  bookmark: void 0,
730
730
  status: void 0,
731
731
  loading: "idle"
732
- }, Te = p(
732
+ }, Te = u(
733
733
  "bookmarkEdit/editBookmark",
734
734
  async (t, { extra: e, rejectWithValue: i }) => {
735
735
  if (!t.id)
@@ -741,9 +741,9 @@ const Ji = function(t) {
741
741
  return i({ error: 2, errorMsg: "Error saving bookmark" });
742
742
  }
743
743
  }
744
- ), At = T({
744
+ ), Et = T({
745
745
  name: "bookmarkEdit",
746
- initialState: Na,
746
+ initialState: Fa,
747
747
  reducers: {
748
748
  setEditBookmark: (t, e) => {
749
749
  t.bookmark = { ...e.payload };
@@ -764,43 +764,43 @@ const Ji = function(t) {
764
764
  e.status = "error", e.loading = "idle";
765
765
  });
766
766
  }
767
- }), Pa = O({
767
+ }), Wa = O({
768
768
  [z.name]: z.reducer,
769
- [At.name]: At.reducer
770
- }), Ua = {
769
+ [Et.name]: Et.reducer
770
+ }), Ba = {
771
771
  name: "bookmark",
772
- reducer: Pa
773
- }, Fa = (t) => t.bookmark.bookmarkList, Ba = (t) => t.bookmark.bookmarkList.isInitialized, Wa = (t) => t.bookmark.bookmarkEdit.bookmark, qa = (t, e) => t.bookmark.bookmarkList.bookmarks.find((i) => i.targetId === e), gl = {
774
- slice: Ua,
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), Sl = {
774
+ slice: Ba,
775
775
  actions: {
776
776
  fetchBookmark: $,
777
777
  addBookmark: Ae,
778
778
  moveBookmark: Ee,
779
779
  deleteBookmark: Se,
780
780
  editBookmark: Te,
781
- ...At.actions,
781
+ ...Et.actions,
782
782
  ...z.actions
783
783
  },
784
784
  selectors: {
785
- bookmarkList: Fa,
786
- bookmarkListIsInitialized: Ba,
787
- bookmarkEditBookmark: Wa,
788
- bookmarkByArticleId: qa
785
+ bookmarkList: qa,
786
+ bookmarkListIsInitialized: $a,
787
+ bookmarkEditBookmark: Va,
788
+ bookmarkByArticleId: Ha
789
789
  },
790
- getRTHandlers: _a
791
- }, Ht = {
790
+ getRTHandlers: Ua
791
+ }, Gt = {
792
792
  list: [],
793
793
  statuses: ["subscribed", "unanswered"],
794
794
  loading: "idle",
795
795
  types: [],
796
796
  pendingStatusChanges: []
797
797
  };
798
- let ct = null;
799
- const fi = (t, e, i = 500) => {
800
- ct && clearTimeout(ct), ct = setTimeout(() => {
798
+ let ut = null;
799
+ const Ai = (t, e, i = 500) => {
800
+ ut && clearTimeout(ut), ut = setTimeout(() => {
801
801
  t(j(e));
802
802
  }, i);
803
- }, j = p("calendarEvents/fetchEvents", async (t, { extra: e, rejectWithValue: i, dispatch: a, signal: r, getState: n }) => {
803
+ }, j = u("calendarEvents/fetchEvents", async (t, { extra: e, rejectWithValue: i, dispatch: a, signal: r, getState: n }) => {
804
804
  const s = n().calendar.events;
805
805
  if (!t.dates && !s.dates)
806
806
  return i({ error: 1, errorMsg: "Dates must be set" });
@@ -822,7 +822,7 @@ const fi = (t, e, i = 500) => {
822
822
  } catch (d) {
823
823
  return v(d) || a(f.actions.error({ label: E(d) })), i({ error: 1, errorMsg: "Cannot retrieve events" });
824
824
  }
825
- }), mi = p("calendarEvents/setDates", async (t, { dispatch: e }) => (fi(e, { dates: t }), !0)), yi = p("calendarEvents/setTypes", async (t, { dispatch: e }) => (fi(e, { types: t }), !0)), Ce = p("calendarEvents/changeResponse", async (t, { dispatch: e, extra: i, signal: a, rejectWithValue: r }) => {
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 }) => {
826
826
  try {
827
827
  return t.status === "unknown" ? await i.jApi.global.removeAction(
828
828
  {
@@ -845,7 +845,7 @@ const fi = (t, e, i = 500) => {
845
845
  }
846
846
  }), x = T({
847
847
  name: "events",
848
- initialState: Ht,
848
+ initialState: Gt,
849
849
  reducers: {
850
850
  addEvent: (t, e) => {
851
851
  t.list = [e.payload, ...t.list];
@@ -856,7 +856,7 @@ const fi = (t, e, i = 500) => {
856
856
  updateEvent: (t, e) => {
857
857
  t.list = t.list.map((i) => i.uri === e.payload.uri ? e.payload : i);
858
858
  },
859
- reset: () => Ht
859
+ reset: () => Gt
860
860
  },
861
861
  extraReducers: (t) => {
862
862
  t.addCase(j.pending, (e, i) => {
@@ -891,13 +891,13 @@ const fi = (t, e, i = 500) => {
891
891
  (n) => n.requestId !== i.meta.requestId
892
892
  );
893
893
  }
894
- }).addCase(mi.pending, (e, i) => {
894
+ }).addCase(Ei.pending, (e, i) => {
895
895
  e.dates = { start: i.meta.arg.start, end: i.meta.arg.end }, e.loading = "pending";
896
- }).addCase(yi.pending, (e, i) => {
896
+ }).addCase(Si.pending, (e, i) => {
897
897
  e.types = i.meta.arg, e.loading = "pending";
898
898
  });
899
899
  }
900
- }), ie = (t) => ["socialEvent", "meeting", "animatedMeeting", "recurringEvent", "recurringEventOccurrence"].includes(t), $a = function(t, e) {
900
+ }), ie = (t) => ["socialEvent", "meeting", "animatedMeeting", "recurringEvent", "recurringEventOccurrence"].includes(t), Ga = function(t, e) {
901
901
  const i = function(s) {
902
902
  if (s.namespace === "JAMESPOT" && s.function === "article-create" && ie(s.object.type)) {
903
903
  if (s.object.type === "recurringEvent") {
@@ -973,28 +973,28 @@ const fi = (t, e, i = 500) => {
973
973
  handler: n
974
974
  }
975
975
  ];
976
- }, Va = O({
976
+ }, Xa = O({
977
977
  [x.name]: x.reducer
978
- }), Ha = {
978
+ }), Ja = {
979
979
  name: "calendar",
980
- reducer: Va
981
- }, Ga = (t) => t.calendar.events, fl = {
982
- slice: Ha,
980
+ reducer: Xa
981
+ }, Ka = (t) => t.calendar.events, Tl = {
982
+ slice: Ja,
983
983
  actions: {
984
984
  fetchEvents: j,
985
- setDates: mi,
986
- setTypes: yi,
985
+ setDates: Ei,
986
+ setTypes: Si,
987
987
  changeResponse: Ce,
988
988
  ...x.actions
989
989
  },
990
990
  selectors: {
991
- selectCalendarEvents: Ga
991
+ selectCalendarEvents: Ka
992
992
  },
993
- getCalendarRTHandlers: $a
994
- }, Xa = {
993
+ getCalendarRTHandlers: Ga
994
+ }, Ya = {
995
995
  loading: "idle",
996
996
  comments: []
997
- }, P = p(
997
+ }, P = u(
998
998
  "commentList/fetchCommentList",
999
999
  async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
1000
1000
  try {
@@ -1007,7 +1007,7 @@ const fi = (t, e, i = 500) => {
1007
1007
  return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot retrieve comments" });
1008
1008
  }
1009
1009
  }
1010
- ), Et = p(
1010
+ ), St = u(
1011
1011
  "commentList/deleteComment",
1012
1012
  async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
1013
1013
  try {
@@ -1016,9 +1016,9 @@ const fi = (t, e, i = 500) => {
1016
1016
  return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot delete comment" });
1017
1017
  }
1018
1018
  }
1019
- ), St = T({
1019
+ ), Tt = T({
1020
1020
  name: "commentList",
1021
- initialState: Xa,
1021
+ initialState: Ya,
1022
1022
  reducers: {
1023
1023
  discardComments: (t, e) => {
1024
1024
  t.comments = t.comments.filter((i) => i.idArticle !== e.payload.idArticle);
@@ -1066,14 +1066,14 @@ const fi = (t, e, i = 500) => {
1066
1066
  ];
1067
1067
  }).addCase(P.rejected, (e) => {
1068
1068
  e.loading = "idle";
1069
- }).addCase(Et.pending, (e, i) => {
1069
+ }).addCase(St.pending, (e, i) => {
1070
1070
  e.comments = e.comments.map((a) => a.idArticle !== i.meta.arg.idArticle ? a : {
1071
1071
  ...a,
1072
1072
  list: a.list.map(
1073
1073
  (r) => r.id === i.meta.arg.idComment ? { ...r, pending: !0 } : r
1074
1074
  )
1075
1075
  });
1076
- }).addCase(Et.rejected, (e, i) => {
1076
+ }).addCase(St.rejected, (e, i) => {
1077
1077
  e.comments = e.comments.map((a) => a.idArticle !== i.meta.arg.idArticle ? a : {
1078
1078
  ...a,
1079
1079
  list: a.list.map(
@@ -1082,7 +1082,7 @@ const fi = (t, e, i = 500) => {
1082
1082
  });
1083
1083
  });
1084
1084
  }
1085
- }), Ja = function(t, e) {
1085
+ }), Qa = function(t, e) {
1086
1086
  return [
1087
1087
  {
1088
1088
  namespace: "JAMESPOT",
@@ -1099,7 +1099,7 @@ const fi = (t, e, i = 500) => {
1099
1099
  }
1100
1100
  }
1101
1101
  ];
1102
- }, Ka = function(t, e, i) {
1102
+ }, za = function(t, e, i) {
1103
1103
  const a = function(r) {
1104
1104
  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
1105
  };
@@ -1107,29 +1107,29 @@ const fi = (t, e, i = 500) => {
1107
1107
  { namespace: "CUSTOM-ACTION", function: "add", handler: a },
1108
1108
  { namespace: "CUSTOM-ACTION", function: "remove", handler: a }
1109
1109
  ] : [];
1110
- }, Ya = O({
1111
- [St.name]: St.reducer
1112
- }), Qa = {
1110
+ }, Za = O({
1111
+ [Tt.name]: Tt.reducer
1112
+ }), er = {
1113
1113
  name: "comment",
1114
- reducer: Ya
1115
- }, za = (t, e, i = 0) => {
1114
+ reducer: Za
1115
+ }, tr = (t, e, i = 0) => {
1116
1116
  const a = t.comment.commentList.comments.find((n) => n.idArticle === e), r = a ? [...a.list].sort((n, s) => n.id - s.id) : [];
1117
1117
  return i !== 0 ? r.slice(-i) : r;
1118
- }, ml = {
1119
- slice: Qa,
1120
- actions: { fetchComments: P, deleteComment: Et, ...St.actions },
1118
+ }, Cl = {
1119
+ slice: er,
1120
+ actions: { fetchComments: P, deleteComment: St, ...Tt.actions },
1121
1121
  selectors: {
1122
- commentList: za
1122
+ commentList: tr
1123
1123
  },
1124
- getCommentRTHandlers: Ja,
1125
- getCommentsLikeRTHandlers: Ka
1124
+ getCommentRTHandlers: Qa,
1125
+ getCommentsLikeRTHandlers: za
1126
1126
  }, R = {
1127
1127
  route: "extra-bot",
1128
1128
  moduleName: "ExtraBotHook",
1129
1129
  configurationType: "extraBot",
1130
1130
  listLimit: 20,
1131
1131
  listDefaultPage: 1
1132
- }, Za = {
1132
+ }, ir = {
1133
1133
  global: {
1134
1134
  loading: "idle"
1135
1135
  },
@@ -1157,7 +1157,7 @@ const fi = (t, e, i = 500) => {
1157
1157
  type: "all",
1158
1158
  extraBot: void 0
1159
1159
  }
1160
- }, J = p(
1160
+ }, J = u(
1161
1161
  "extraBot/fetchAll",
1162
1162
  async (t, { extra: e, rejectWithValue: i, dispatch: a, getState: r }) => {
1163
1163
  const n = r().extraBot.listAll;
@@ -1172,7 +1172,7 @@ const fi = (t, e, i = 500) => {
1172
1172
  return v(s) || a(f.actions.error({ label: E(s) })), i({ error: 1, errorMsg: "Cannot retrieve extra bot list" });
1173
1173
  }
1174
1174
  }
1175
- ), be = p("extraBot/fetchMines", async (t, { extra: e, rejectWithValue: i, dispatch: a, getState: r }) => {
1175
+ ), be = u("extraBot/fetchMines", async (t, { extra: e, rejectWithValue: i, dispatch: a, getState: r }) => {
1176
1176
  const n = r().extraBot.listMines;
1177
1177
  try {
1178
1178
  return (await e.jApi.extraBot.list("mines", {
@@ -1184,13 +1184,13 @@ const fi = (t, e, i = 500) => {
1184
1184
  } catch (s) {
1185
1185
  return v(s) || a(f.actions.error({ label: E(s) })), i({ error: 1, errorMsg: "Cannot retrieve extra bot list" });
1186
1186
  }
1187
- }), Le = p(
1187
+ }), we = u(
1188
1188
  "extraBot/toggleActivation",
1189
1189
  async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
1190
1190
  try {
1191
1191
  const r = !t.enabled, n = (await e.jApi.article.update(
1192
1192
  { ...t, enabled: r },
1193
- { format: pt.VIEW }
1193
+ { format: gt.VIEW }
1194
1194
  )).result;
1195
1195
  return n.enabled !== t.enabled ? (a(
1196
1196
  f.actions.success({
@@ -1205,7 +1205,7 @@ const fi = (t, e, i = 500) => {
1205
1205
  return v(r) || a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Failed to change extra bot activation" });
1206
1206
  }
1207
1207
  }
1208
- ), we = p(
1208
+ ), Le = u(
1209
1209
  "extraBot/save",
1210
1210
  async ({ extraBot: t }, { extra: e, rejectWithValue: i, dispatch: a }) => {
1211
1211
  try {
@@ -1215,13 +1215,13 @@ const fi = (t, e, i = 500) => {
1215
1215
  n = (await e.jApi.article.update(
1216
1216
  r,
1217
1217
  {
1218
- format: pt.VIEW
1218
+ format: gt.VIEW
1219
1219
  }
1220
1220
  )).result, s = (await e.jApi.extraBot.updateBot(n.uri)).result;
1221
1221
  else {
1222
1222
  if (n = (await e.jApi.article.create(
1223
1223
  { ...r },
1224
- { format: pt.VIEW }
1224
+ { format: gt.VIEW }
1225
1225
  )).result[0], !n)
1226
1226
  throw new Error("ExtraBot configuration creation failed");
1227
1227
  s = (await e.jApi.extraBot.createBot(n.uri)).result, n._user = s;
@@ -1232,12 +1232,12 @@ const fi = (t, e, i = 500) => {
1232
1232
  return v(r) || a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot retrieve extra bot" });
1233
1233
  }
1234
1234
  }
1235
- ), er = (t, e, i, a) => {
1235
+ ), ar = (t, e, i, a) => {
1236
1236
  const r = t.listAll.data.find((s) => s.uri === e), n = t.listMines.data.find((s) => s.uri === e);
1237
1237
  r && (r[i] = a), n && (n[i] = a);
1238
- }, Gt = T({
1238
+ }, Xt = T({
1239
1239
  name: "extraBot",
1240
- initialState: Za,
1240
+ initialState: ir,
1241
1241
  reducers: {
1242
1242
  setListAllOrder: (t, e) => {
1243
1243
  t.listAll.orders = [...e.payload], t.listAll.page = R.listDefaultPage;
@@ -1277,36 +1277,36 @@ const fi = (t, e, i = 500) => {
1277
1277
  e.listMines.data = i.payload.data, e.listMines.nbResults = i.payload.cnt, e.listMines.limit = i.payload.limit ?? R.listLimit, e.listMines.page = i.payload.page, e.listMines.loading = "idle";
1278
1278
  }).addCase(be.rejected, (e) => {
1279
1279
  e.listMines.loading = "idle";
1280
- }).addCase(Le.pending, (e) => {
1280
+ }).addCase(we.pending, (e) => {
1281
1281
  e.global.loading = "pending";
1282
- }).addCase(Le.fulfilled, (e, i) => {
1282
+ }).addCase(we.fulfilled, (e, i) => {
1283
1283
  e.global.loading = "idle";
1284
1284
  const a = i.payload;
1285
- er(e, a.uri, "enabled", a.enabled);
1286
- }).addCase(Le.rejected, (e) => {
1285
+ ar(e, a.uri, "enabled", a.enabled);
1286
+ }).addCase(we.rejected, (e) => {
1287
1287
  e.global.loading = "idle";
1288
- }).addCase(we.pending, (e) => {
1288
+ }).addCase(Le.pending, (e) => {
1289
1289
  e.global.loading = "pending";
1290
- }).addCase(we.fulfilled, (e, i) => {
1290
+ }).addCase(Le.fulfilled, (e, i) => {
1291
1291
  e.global.loading = "idle", e.formModal.open = !1;
1292
- }).addCase(we.rejected, (e) => {
1292
+ }).addCase(Le.rejected, (e) => {
1293
1293
  e.global.loading = "idle";
1294
1294
  });
1295
1295
  }
1296
- }), tr = (t) => t.extraBot.listAll, ir = (t) => t.extraBot.listMines, yl = {
1297
- slice: Gt,
1296
+ }), rr = (t) => t.extraBot.listAll, nr = (t) => t.extraBot.listMines, bl = {
1297
+ slice: Xt,
1298
1298
  actions: {
1299
1299
  fetchExtraBotListAll: J,
1300
1300
  fetchExtraBotListMines: be,
1301
- toggleExtraBotActivation: Le,
1302
- saveExtraBot: we,
1303
- ...Gt.actions
1301
+ toggleExtraBotActivation: we,
1302
+ saveExtraBot: Le,
1303
+ ...Xt.actions
1304
1304
  },
1305
- selectors: { selectExtraBotListAll: tr, selectExtraBotListMines: ir }
1306
- }, ar = {
1305
+ selectors: { selectExtraBotListAll: rr, selectExtraBotListMines: nr }
1306
+ }, sr = {
1307
1307
  loading: "idle",
1308
1308
  access: { createCategory: !1 }
1309
- }, Ie = p(
1309
+ }, Ie = u(
1310
1310
  "faqConfig/fetch",
1311
1311
  async (t, { extra: e }) => {
1312
1312
  try {
@@ -1329,9 +1329,9 @@ const fi = (t, e, i = 500) => {
1329
1329
  throw i;
1330
1330
  }
1331
1331
  }
1332
- ), Xt = T({
1332
+ ), Jt = T({
1333
1333
  name: "config",
1334
- initialState: ar,
1334
+ initialState: sr,
1335
1335
  reducers: {},
1336
1336
  extraReducers: (t) => {
1337
1337
  t.addCase(Ie.pending, (e) => {
@@ -1340,14 +1340,14 @@ const fi = (t, e, i = 500) => {
1340
1340
  e.loading == "pending" && (e.loading = "idle");
1341
1341
  });
1342
1342
  }
1343
- }), rr = {
1343
+ }), or = {
1344
1344
  loading: "idle",
1345
1345
  categories: null
1346
- }, ve = p("faqCategories/fetch", async (t, { extra: e }) => ({
1346
+ }, ve = u("faqCategories/fetch", async (t, { extra: e }) => ({
1347
1347
  categories: (await e.jApi.faq.getCategoriesList()).result.data
1348
- })), Jt = T({
1348
+ })), Kt = T({
1349
1349
  name: "categories",
1350
- initialState: rr,
1350
+ initialState: or,
1351
1351
  reducers: {},
1352
1352
  extraReducers: (t) => {
1353
1353
  t.addCase(ve.pending, (e) => {
@@ -1356,26 +1356,26 @@ const fi = (t, e, i = 500) => {
1356
1356
  e.loading == "pending" && (e.loading = "idle");
1357
1357
  });
1358
1358
  }
1359
- }), nr = O({
1360
- [Xt.name]: Xt.reducer,
1361
- [Jt.name]: Jt.reducer
1362
- }), sr = {
1359
+ }), lr = O({
1360
+ [Jt.name]: Jt.reducer,
1361
+ [Kt.name]: Kt.reducer
1362
+ }), dr = {
1363
1363
  name: "faq",
1364
- reducer: nr
1365
- }, or = (t) => t.faq.config, lr = (t) => t.faq.categories, Al = {
1366
- slice: sr,
1364
+ reducer: lr
1365
+ }, cr = (t) => t.faq.config, ur = (t) => t.faq.categories, wl = {
1366
+ slice: dr,
1367
1367
  actions: {
1368
1368
  fetchFaqConfig: Ie,
1369
1369
  fetchFaqCategories: ve
1370
1370
  },
1371
1371
  selectors: {
1372
- selectFaqConfig: or,
1373
- selectFaqCategories: lr
1372
+ selectFaqConfig: cr,
1373
+ selectFaqCategories: ur
1374
1374
  }
1375
1375
  }, K = {
1376
1376
  listLimit: 50,
1377
1377
  listDefaultPage: 1
1378
- }, dr = {
1378
+ }, pr = {
1379
1379
  list: {
1380
1380
  loading: "idle",
1381
1381
  data: [],
@@ -1393,7 +1393,7 @@ const fi = (t, e, i = 500) => {
1393
1393
  action: {
1394
1394
  loading: "idle"
1395
1395
  }
1396
- }, he = p("fileIntegrity/fetchAll", async (t, { extra: e, rejectWithValue: i, dispatch: a, getState: r }) => {
1396
+ }, he = u("fileIntegrity/fetchAll", async (t, { extra: e, rejectWithValue: i, dispatch: a, getState: r }) => {
1397
1397
  const n = r().fileIntegrity.list;
1398
1398
  try {
1399
1399
  return (await e.jApi.fileIntegrity.list({
@@ -1405,7 +1405,7 @@ const fi = (t, e, i = 500) => {
1405
1405
  } catch (s) {
1406
1406
  return v(s) || a(f.actions.error({ label: E(s) })), i({ error: 1, errorMsg: "Cannot retrieve file integrity list" });
1407
1407
  }
1408
- }), Oe = p(
1408
+ }), Oe = u(
1409
1409
  "fileIntegrity/releaseQuarantine",
1410
1410
  async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
1411
1411
  try {
@@ -1414,7 +1414,7 @@ const fi = (t, e, i = 500) => {
1414
1414
  return v(r) || a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot release quarantined file" });
1415
1415
  }
1416
1416
  }
1417
- ), Re = p(
1417
+ ), Re = u(
1418
1418
  "fileIntegrity/deleteQuarantine",
1419
1419
  async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
1420
1420
  try {
@@ -1423,9 +1423,9 @@ const fi = (t, e, i = 500) => {
1423
1423
  return v(r) || a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot delete quarantined file" });
1424
1424
  }
1425
1425
  }
1426
- ), Kt = T({
1426
+ ), Yt = T({
1427
1427
  name: "fileIntegrity",
1428
- initialState: dr,
1428
+ initialState: pr,
1429
1429
  reducers: {
1430
1430
  setListOrder: (t, e) => {
1431
1431
  t.list.orders = [...e.payload], t.list.page = K.listDefaultPage;
@@ -1458,34 +1458,34 @@ const fi = (t, e, i = 500) => {
1458
1458
  e.action.loading = "idle";
1459
1459
  });
1460
1460
  }
1461
- }), cr = (t) => t.fileIntegrity.action, ur = (t) => t.fileIntegrity.list, El = {
1462
- slice: Kt,
1461
+ }), gr = (t) => t.fileIntegrity.action, fr = (t) => t.fileIntegrity.list, Ll = {
1462
+ slice: Yt,
1463
1463
  actions: {
1464
1464
  deleteQuarantine: Re,
1465
1465
  fetchFileIntegrityList: he,
1466
1466
  releaseQuarantine: Oe,
1467
- ...Kt.actions
1467
+ ...Yt.actions
1468
1468
  },
1469
- selectors: { selectFileIntegrityAction: cr, selectFileIntegrityList: ur }
1470
- }, pr = (t) => t ? Object.keys(t).filter((e) => t[e]) : [], Yt = T({
1469
+ selectors: { selectFileIntegrityAction: gr, selectFileIntegrityList: fr }
1470
+ }, mr = (t) => t ? Object.keys(t).filter((e) => t[e]) : [], Qt = T({
1471
1471
  name: "hooks",
1472
1472
  initialState: {},
1473
1473
  reducers: {
1474
1474
  initHooks: (t, { payload: e }) => e
1475
1475
  }
1476
- }), gr = (t) => t.hooks, fr = (t, e) => t.hooks[e], mr = (t, e) => !!t.hooks[e]?.hasLicense, Sl = {
1477
- slice: Yt,
1478
- actions: Yt.actions,
1479
- selectors: { selectHooks: gr, selectHook: fr, hasHookLicense: mr },
1480
- utils: { buildDrivesArrayFromObject: pr }
1481
- }, Rt = (t) => {
1476
+ }), yr = (t) => t.hooks, Ar = (t, e) => t.hooks[e], Er = (t, e) => !!t.hooks[e]?.hasLicense, Il = {
1477
+ slice: Qt,
1478
+ actions: Qt.actions,
1479
+ selectors: { selectHooks: yr, selectHook: Ar, hasHookLicense: Er },
1480
+ utils: { buildDrivesArrayFromObject: mr }
1481
+ }, Dt = (t) => {
1482
1482
  const e = t.urlToJland;
1483
1483
  if (!e)
1484
1484
  return;
1485
1485
  const i = /(https:\/\/[^/]+)\/.*/g.exec(e);
1486
1486
  if (i)
1487
1487
  return i[1];
1488
- }, Dt = (t, e, i) => `${i}/map/${e}/${t.uri}`, U = p("/fetchMaps", async ({ jlandUrlBase: t, retrieveAllMaps: e }, { extra: i }) => {
1488
+ }, kt = (t, e, i) => `${i}/map/${e}/${t.uri}`, U = u("/fetchMaps", async ({ jlandUrlBase: t, retrieveAllMaps: e }, { extra: i }) => {
1489
1489
  const a = i.jApi, r = await a.network.getHostname();
1490
1490
  return await new Promise((n, s) => {
1491
1491
  const l = {
@@ -1497,14 +1497,14 @@ const fi = (t, e, i = 500) => {
1497
1497
  })).then((g) => {
1498
1498
  const m = g.result.data.map((c) => {
1499
1499
  const A = { ...c };
1500
- return A.urlToJland = Dt(c, r, t), A;
1500
+ return A.urlToJland = kt(c, r, t), A;
1501
1501
  });
1502
1502
  n(m);
1503
1503
  }).catch((g) => {
1504
1504
  g.error && s(g), s({ error: 1, errorMsg: "Error retrieving maps" });
1505
1505
  });
1506
1506
  });
1507
- }), F = p(
1507
+ }), F = u(
1508
1508
  "/fetchAvailableLicenses",
1509
1509
  async (t, { extra: e }) => {
1510
1510
  const i = e.jApi;
@@ -1523,8 +1523,8 @@ const fi = (t, e, i = 500) => {
1523
1523
  });
1524
1524
  });
1525
1525
  }
1526
- ), De = p("/unassignLicense", async ({ map: t, retrieveAllMaps: e }, { extra: i, dispatch: a }) => {
1527
- const r = i.jApi, n = Rt(t);
1526
+ ), De = u("/unassignLicense", async ({ map: t, retrieveAllMaps: e }, { extra: i, dispatch: a }) => {
1527
+ const r = i.jApi, n = Dt(t);
1528
1528
  return n ? await new Promise((s, l) => {
1529
1529
  r.admin.license.unAssignLicense(t.uri).then((d) => {
1530
1530
  d.result && (a(F()), a(U({ jlandUrlBase: n, retrieveAllMaps: e }))), s(d.result);
@@ -1536,8 +1536,8 @@ const fi = (t, e, i = 500) => {
1536
1536
  l({ error: 1, errorMsg: "Error unassign license" });
1537
1537
  });
1538
1538
  }) : !1;
1539
- }), ke = p("/deleteLicense", async ({ map: t, retrieveAllMaps: e }, { extra: i, dispatch: a }) => {
1540
- const r = i.jApi, n = Rt(t);
1539
+ }), ke = u("/deleteLicense", async ({ map: t, retrieveAllMaps: e }, { extra: i, dispatch: a }) => {
1540
+ const r = i.jApi, n = Dt(t);
1541
1541
  return n ? await new Promise((s, l) => {
1542
1542
  r.article.delete(t.id).then((d) => {
1543
1543
  s(d.result), a(U({ jlandUrlBase: n, retrieveAllMaps: e })), a(F());
@@ -1549,8 +1549,8 @@ const fi = (t, e, i = 500) => {
1549
1549
  l({ error: 1, errorMsg: d.errorMsg + "" });
1550
1550
  });
1551
1551
  }) : !1;
1552
- }), Y = p("/assignLicense", async ({ map: t, retrieveAllMaps: e }, { extra: i, dispatch: a }) => {
1553
- const r = Rt(t);
1552
+ }), Y = u("/assignLicense", async ({ map: t, retrieveAllMaps: e }, { extra: i, dispatch: a }) => {
1553
+ const r = Dt(t);
1554
1554
  if (!r)
1555
1555
  return !1;
1556
1556
  const n = i.jApi;
@@ -1565,7 +1565,7 @@ const fi = (t, e, i = 500) => {
1565
1565
  l({ error: 1, errorMsg: "Error assign license" });
1566
1566
  });
1567
1567
  });
1568
- }), Qt = T({
1568
+ }), zt = T({
1569
1569
  name: "jLandMapList",
1570
1570
  initialState: {
1571
1571
  maps: [],
@@ -1609,7 +1609,7 @@ const fi = (t, e, i = 500) => {
1609
1609
  e.loadingMapDeletion === "pending" && (e.loadingMapDeletion = "idle");
1610
1610
  });
1611
1611
  }
1612
- }), yr = {
1612
+ }), Sr = {
1613
1613
  title: "",
1614
1614
  type: "",
1615
1615
  flavor: "",
@@ -1617,12 +1617,12 @@ const fi = (t, e, i = 500) => {
1617
1617
  audience: [],
1618
1618
  illustration: "",
1619
1619
  assignLicense: !1
1620
- }, zt = {
1621
- map: { ...yr },
1620
+ }, Zt = {
1621
+ map: { ...Sr },
1622
1622
  loading: "idle",
1623
1623
  status: void 0,
1624
1624
  msg: void 0
1625
- }, Me = p("mapCreate/create", async ({ map: t, jlandUrlBase: e }, { extra: i, dispatch: a }) => {
1625
+ }, Me = u("mapCreate/create", async ({ map: t, jlandUrlBase: e }, { extra: i, dispatch: a }) => {
1626
1626
  const r = {
1627
1627
  title: t.title,
1628
1628
  publishTo: t.audience.reduce((s, l, d, g) => (l.uri && (s += l.uri, d < g.length - 1 && (s += ",")), s), ""),
@@ -1641,21 +1641,21 @@ const fi = (t, e, i = 500) => {
1641
1641
  const g = d.result[0] ? { ...d.result[0], urlToJland: void 0 } : void 0;
1642
1642
  if (t.assignLicense && g !== void 0) {
1643
1643
  const y = await n.network.getHostname();
1644
- g.urlToJland = Dt(g, y, e), a(Y({ map: g, retrieveAllMaps: !1 }));
1644
+ g.urlToJland = kt(g, y, e), a(Y({ map: g, retrieveAllMaps: !1 }));
1645
1645
  }
1646
1646
  s(d.result);
1647
1647
  }).catch(() => {
1648
1648
  l({ error: 1, errorMsg: "Error assign license" });
1649
1649
  });
1650
1650
  });
1651
- }), Tt = T({
1651
+ }), Ct = T({
1652
1652
  name: "mapCreate",
1653
- initialState: zt,
1653
+ initialState: Zt,
1654
1654
  reducers: {
1655
1655
  setMap: (t, e) => {
1656
1656
  t.map = e.payload;
1657
1657
  },
1658
- resetCreateMapState: () => zt
1658
+ resetCreateMapState: () => Zt
1659
1659
  },
1660
1660
  extraReducers: (t) => {
1661
1661
  t.addCase(Me.pending, (e) => {
@@ -1666,22 +1666,22 @@ const fi = (t, e, i = 500) => {
1666
1666
  e.msg = i.error.message ?? void 0, e.status = "error", e.loading = "idle";
1667
1667
  });
1668
1668
  }
1669
- }), Ar = function(e) {
1669
+ }), Tr = function(e) {
1670
1670
  return e.jland.jLandMapList.maps;
1671
- }, Er = function(e) {
1671
+ }, Cr = function(e) {
1672
1672
  return e.jland.jLandMapList.availableLicenses;
1673
- }, Sr = function(e) {
1673
+ }, br = function(e) {
1674
1674
  return e.jland.mapCreate;
1675
- }, Tr = O({
1676
- [Qt.name]: Qt.reducer,
1677
- [Tt.name]: Tt.reducer
1678
- }), Cr = {
1675
+ }, wr = O({
1676
+ [zt.name]: zt.reducer,
1677
+ [Ct.name]: Ct.reducer
1678
+ }), Lr = {
1679
1679
  name: "jland",
1680
- reducer: Tr
1681
- }, Tl = {
1682
- slice: Cr,
1680
+ reducer: wr
1681
+ }, vl = {
1682
+ slice: Lr,
1683
1683
  actions: {
1684
- ...Tt.actions,
1684
+ ...Ct.actions,
1685
1685
  assignLicense: Y,
1686
1686
  unassignLicense: De,
1687
1687
  deleteJlandMap: ke,
@@ -1690,12 +1690,12 @@ const fi = (t, e, i = 500) => {
1690
1690
  createMap: Me
1691
1691
  },
1692
1692
  selectors: {
1693
- selectJLandMaps: Ar,
1694
- selectJLandAvailableLicenses: Er,
1695
- selectMapCreate: Sr
1693
+ selectJLandMaps: Tr,
1694
+ selectJLandAvailableLicenses: Cr,
1695
+ selectMapCreate: br
1696
1696
  },
1697
- utils: { buildUrlToJland: Dt }
1698
- }, br = {
1697
+ utils: { buildUrlToJland: kt }
1698
+ }, Ir = {
1699
1699
  loading: "idle",
1700
1700
  pads: [],
1701
1701
  query: "",
@@ -1705,9 +1705,9 @@ const fi = (t, e, i = 500) => {
1705
1705
  orders: [],
1706
1706
  limit: 10,
1707
1707
  nbResults: 0
1708
- }, Lr = T({
1708
+ }, vr = T({
1709
1709
  name: "magicPad",
1710
- initialState: br,
1710
+ initialState: Ir,
1711
1711
  reducers: {
1712
1712
  setTab: (t, e) => {
1713
1713
  t.tab = e.payload, t.page = 1, t.orders = [], t.filters = [];
@@ -1732,7 +1732,7 @@ const fi = (t, e, i = 500) => {
1732
1732
  e.loading == "pending" && (e.loading = "idle");
1733
1733
  });
1734
1734
  }
1735
- }), xe = p("magicPad/fetchPads", async (t, { extra: e, rejectWithValue: i, dispatch: a, getState: r }) => {
1735
+ }), xe = u("magicPad/fetchPads", async (t, { extra: e, rejectWithValue: i, dispatch: a, getState: r }) => {
1736
1736
  try {
1737
1737
  const n = r().magicPad, s = n.page, l = n.query, d = [
1738
1738
  ...n.filters,
@@ -1759,16 +1759,16 @@ const fi = (t, e, i = 500) => {
1759
1759
  } catch (n) {
1760
1760
  return a(f.actions.error({ label: E(n) })), i({ error: 1, errorMsg: "Cannot fetch pads" });
1761
1761
  }
1762
- }), wr = (t) => t.magicPad, Cl = {
1763
- slice: Lr,
1762
+ }), hr = (t) => t.magicPad, hl = {
1763
+ slice: vr,
1764
1764
  actions: {
1765
1765
  fetchPads: xe
1766
1766
  },
1767
- selectors: { selectMagicPad: wr }
1768
- }, Ct = {
1767
+ selectors: { selectMagicPad: hr }
1768
+ }, bt = {
1769
1769
  typeMediaLibraryFolder: "mediaLibraryFolder",
1770
1770
  typeMediaLibraryFile: "mediaLibraryFile"
1771
- }, Ir = 18, vr = 12, hr = 18, Or = {
1771
+ }, Or = 18, Rr = 12, Dr = 18, kr = {
1772
1772
  loading: "idle",
1773
1773
  nbResults: 0,
1774
1774
  query: "",
@@ -1780,9 +1780,9 @@ const fi = (t, e, i = 500) => {
1780
1780
  stats: null,
1781
1781
  foldersStats: { loading: !1, pager: null },
1782
1782
  filesStats: { loading: !1, pager: null }
1783
- }, Ai = T({
1783
+ }, Ti = T({
1784
1784
  name: "mediaLibrary",
1785
- initialState: Or,
1785
+ initialState: kr,
1786
1786
  reducers: {
1787
1787
  removeFileFromFolder(t, e) {
1788
1788
  return {
@@ -1829,11 +1829,11 @@ const fi = (t, e, i = 500) => {
1829
1829
  e.loading = "idle", e.mediaLibraryAccess = !1;
1830
1830
  }).addCase(Pe.pending, (e) => {
1831
1831
  e.loading = "pending", e.mediaLibraryAccess = !1;
1832
- }).addCase(Be.fulfilled, (e, i) => {
1832
+ }).addCase(We.fulfilled, (e, i) => {
1833
1833
  e.loading = "idle", e.stats = { ...i.payload?.result };
1834
- }).addCase(Be.rejected, (e) => {
1834
+ }).addCase(We.rejected, (e) => {
1835
1835
  e.loading = "idle", e.stats = null;
1836
- }).addCase(Be.pending, (e) => {
1836
+ }).addCase(We.pending, (e) => {
1837
1837
  e.loading = "pending";
1838
1838
  }).addCase(Ue.fulfilled, (e, i) => {
1839
1839
  e.foldersStats = { loading: !1, pager: i.payload?.result };
@@ -1849,13 +1849,13 @@ const fi = (t, e, i = 500) => {
1849
1849
  e.filesStats.loading = !0;
1850
1850
  });
1851
1851
  }
1852
- }), je = p("MediaLibrary/fetchMediaLibraryFolders", async ({ page: t = 1, noLimit: e = !1, query: i }, { extra: a, rejectWithValue: r, dispatch: n, getState: s }) => {
1852
+ }), je = u("MediaLibrary/fetchMediaLibraryFolders", async ({ page: t = 1, noLimit: e = !1, query: i }, { extra: a, rejectWithValue: r, dispatch: n, getState: s }) => {
1853
1853
  const l = {
1854
- type: Ct.typeMediaLibraryFolder,
1854
+ type: bt.typeMediaLibraryFolder,
1855
1855
  page: t,
1856
1856
  orders: [{ name: "title", sort: "ASC" }]
1857
1857
  };
1858
- e || (l.limit = vr);
1858
+ e || (l.limit = Rr);
1859
1859
  try {
1860
1860
  const d = s().mediaLibrary;
1861
1861
  return l.query = i ?? d.query, await a.jApi.article.list(l, {
@@ -1864,17 +1864,17 @@ const fi = (t, e, i = 500) => {
1864
1864
  } catch (d) {
1865
1865
  return n(f.actions.error({ label: E(d) })), r({ error: 1, errorMsg: "Cannot retrieve folders" });
1866
1866
  }
1867
- }), _e = p(
1867
+ }), _e = u(
1868
1868
  "MediaLibrary/fetchFolderFiles",
1869
1869
  async ({ folderId: t, page: e }, { extra: i, rejectWithValue: a, dispatch: r }) => {
1870
1870
  const n = {
1871
- type: Ct.typeMediaLibraryFile,
1871
+ type: bt.typeMediaLibraryFile,
1872
1872
  page: e,
1873
- limit: hr,
1873
+ limit: Dr,
1874
1874
  filters: [
1875
1875
  {
1876
1876
  name: "mediaLibraryFolderOrientedLinks",
1877
- value: { targetId: t, targetType: Ct.typeMediaLibraryFolder }
1877
+ value: { targetId: t, targetType: bt.typeMediaLibraryFolder }
1878
1878
  }
1879
1879
  ],
1880
1880
  format: "raw-list",
@@ -1886,18 +1886,18 @@ const fi = (t, e, i = 500) => {
1886
1886
  return r(f.actions.error({ label: E(s) })), a({ error: 1, errorMsg: `Cannot retrieve files for folder ${t}` });
1887
1887
  }
1888
1888
  }
1889
- ), Ne = p("MediaLibrary/fetchMediaLibraryUnclassifiedFiles", async ({ page: t, query: e }, { extra: i, rejectWithValue: a, dispatch: r, getState: n }) => {
1889
+ ), Ne = u("MediaLibrary/fetchMediaLibraryUnclassifiedFiles", async ({ page: t, query: e }, { extra: i, rejectWithValue: a, dispatch: r, getState: n }) => {
1890
1890
  try {
1891
1891
  const s = n().mediaLibrary, l = e ?? s.query;
1892
1892
  return await i.jApi.mediaLibrary.GetUnclassifiedFiles({
1893
1893
  page: t,
1894
- limit: Ir,
1894
+ limit: Or,
1895
1895
  query: l
1896
1896
  });
1897
1897
  } catch (s) {
1898
1898
  return r(f.actions.error({ label: E(s) })), a({ error: 1, errorMsg: "Cannot retrieve UnclassifiedFiles" });
1899
1899
  }
1900
- }), Pe = p(
1900
+ }), Pe = u(
1901
1901
  "MediaLibrary/fetchMediaLibraryConfig",
1902
1902
  async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
1903
1903
  try {
@@ -1906,7 +1906,7 @@ const fi = (t, e, i = 500) => {
1906
1906
  return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot get MediaLibrary Config" });
1907
1907
  }
1908
1908
  }
1909
- ), Ue = p(
1909
+ ), Ue = u(
1910
1910
  "MediaLibrary/fetchMediaLibraryFoldersStats",
1911
1911
  async ({ page: t, filters: e, orders: i }, { extra: a, rejectWithValue: r, dispatch: n }) => {
1912
1912
  try {
@@ -1915,7 +1915,7 @@ const fi = (t, e, i = 500) => {
1915
1915
  return n(f.actions.error({ label: E(s) })), r({ error: 1, errorMsg: "Cannot get MediaLibrary folders stats" });
1916
1916
  }
1917
1917
  }
1918
- ), Fe = p(
1918
+ ), Fe = u(
1919
1919
  "MediaLibrary/fetchMediaLibraryFilesStats",
1920
1920
  async ({ page: t, filters: e, orders: i }, { extra: a, rejectWithValue: r, dispatch: n }) => {
1921
1921
  try {
@@ -1924,7 +1924,7 @@ const fi = (t, e, i = 500) => {
1924
1924
  return n(f.actions.error({ label: E(s) })), r({ error: 1, errorMsg: "Cannot get MediaLibrary files stats" });
1925
1925
  }
1926
1926
  }
1927
- ), Be = p(
1927
+ ), We = u(
1928
1928
  "MediaLibrary/fetchMediaLibraryStats",
1929
1929
  async (t, { extra: e, rejectWithValue: i, dispatch: a }) => {
1930
1930
  try {
@@ -1933,38 +1933,38 @@ const fi = (t, e, i = 500) => {
1933
1933
  return a(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot get MediaLibrary stats" });
1934
1934
  }
1935
1935
  }
1936
- ), Rr = (t) => t.mediaLibrary, Dr = (t) => t.mediaLibrary.stats, kr = (t) => t.mediaLibrary.foldersStats, Mr = (t) => t.mediaLibrary.filesStats, xr = (t) => t.mediaLibrary.folders, jr = (t) => t.mediaLibrary.foldersAll, _r = (t) => t.mediaLibrary.folderFiles, Nr = (t) => t.mediaLibrary.unclassifiedFiles, bl = Ai.reducer, Ll = {
1937
- slice: Ai,
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, Ol = Ti.reducer, Rl = {
1937
+ slice: Ti,
1938
1938
  actions: {
1939
1939
  fetchMediaLibraryFolders: je,
1940
1940
  fetchFolderFiles: _e,
1941
1941
  fetchMediaLibraryUnclassifiedFiles: Ne,
1942
1942
  fetchMediaLibraryConfig: Pe,
1943
- fetchMediaLibraryStats: Be,
1943
+ fetchMediaLibraryStats: We,
1944
1944
  fetchMediaLibraryFilesStats: Fe,
1945
1945
  fetchMediaLibraryFoldersStats: Ue
1946
1946
  },
1947
1947
  selectors: {
1948
- selectMediaLibrary: Rr,
1949
- selectMediaLibraryStats: Dr,
1950
- selectMediaLibraryFoldersStats: kr,
1951
- selectMediaLibraryFilesStats: Mr,
1952
- selectFolders: xr,
1953
- selectFolderAll: jr,
1954
- selectFolderFiles: _r,
1955
- selectUnclassifiedFiles: Nr
1956
- }
1957
- }, H = lt({
1948
+ selectMediaLibrary: Mr,
1949
+ selectMediaLibraryStats: xr,
1950
+ selectMediaLibraryFoldersStats: jr,
1951
+ selectMediaLibraryFilesStats: _r,
1952
+ selectFolders: Nr,
1953
+ selectFolderAll: Pr,
1954
+ selectFolderFiles: Ur,
1955
+ selectUnclassifiedFiles: Fr
1956
+ }
1957
+ }, H = dt({
1958
1958
  selectId: (t) => t.type,
1959
1959
  sortComparer: (t, e) => t.label.localeCompare(e.label)
1960
- }), Pr = (t, e) => {
1960
+ }), Wr = (t, e) => {
1961
1961
  const i = {
1962
1962
  from: "imagestatic",
1963
1963
  size: e ?? "fitx600",
1964
1964
  uri: `icons/${t?.icon ?? "article"}-white`
1965
1965
  };
1966
- return Gi(i);
1967
- }, Ur = (t) => `icon-${{
1966
+ return Ki(i);
1967
+ }, Br = (t) => `icon-${{
1968
1968
  actionplan: "fs-actionplan",
1969
1969
  animatedMeeting: "fs-animated_meeting",
1970
1970
  // Diapazone
@@ -2010,7 +2010,7 @@ const fi = (t, e, i = 500) => {
2010
2010
  "weDoc-pptx": "file-powerpoint",
2011
2011
  wiki: "fs-wiki",
2012
2012
  workgroup: "fs-workgroup"
2013
- }[t] ?? t}`, Zt = T({
2013
+ }[t] ?? t}`, ei = T({
2014
2014
  name: "models",
2015
2015
  initialState: H.getInitialState(),
2016
2016
  reducers: {
@@ -2018,79 +2018,79 @@ const fi = (t, e, i = 500) => {
2018
2018
  addMany: H.addMany,
2019
2019
  setAll: H.setAll
2020
2020
  }
2021
- }), Fr = H.getSelectors((t) => t.entities.models), Br = {
2022
- getModelIconSrc: Pr,
2023
- getModelFontAwesomeIcon: Ur
2024
- }, Wr = (t, e) => e.map((i) => t.entities.models.entities[i]).filter((i) => !!i), qr = {
2025
- slice: Zt,
2026
- actions: { ...Zt.actions },
2027
- utils: Br,
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 = {
2025
+ slice: ei,
2026
+ actions: { ...ei.actions },
2027
+ utils: $r,
2028
2028
  selectors: {
2029
- ...Fr,
2030
- selectByIds: Wr
2029
+ ...qr,
2030
+ selectByIds: Vr
2031
2031
  }
2032
- }, $r = {}, bt = T({
2032
+ }, Gr = {}, wt = T({
2033
2033
  name: "statics",
2034
- initialState: $r,
2034
+ initialState: Gr,
2035
2035
  reducers: {
2036
2036
  initNetworkStatics: (t, { payload: e }) => e
2037
2037
  }
2038
- }), Vr = O({
2039
- [bt.name]: bt.reducer
2040
- }), Hr = {
2038
+ }), Xr = O({
2039
+ [wt.name]: wt.reducer
2040
+ }), Jr = {
2041
2041
  name: "network",
2042
- reducer: Vr
2043
- }, Gr = (t) => t.network.statics, Xr = (t) => t.network.statics.networkPublic, Jr = (t) => t.network.statics.networkMe, wl = {
2044
- slice: Hr,
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,
2045
2045
  actions: {
2046
- ...bt.actions
2046
+ ...wt.actions
2047
2047
  },
2048
2048
  selectors: {
2049
- selectNetworkStatics: Gr,
2050
- selectNetworkPublic: Xr,
2051
- selectNetworkMe: Jr
2049
+ selectNetworkStatics: Kr,
2050
+ selectNetworkPublic: Yr,
2051
+ selectNetworkMe: Qr
2052
2052
  }
2053
- }, Kr = {
2053
+ }, zr = {
2054
2054
  userAccountStatus: 0,
2055
2055
  sendAlert: 0
2056
- }, Ei = T({
2056
+ }, Ci = T({
2057
2057
  name: "config",
2058
- initialState: Kr,
2058
+ initialState: zr,
2059
2059
  reducers: {
2060
2060
  initPlatformConfig: (t, { payload: e }) => e
2061
2061
  }
2062
- }), Yr = O({
2063
- config: Ei.reducer
2064
- }), Qr = {
2062
+ }), Zr = O({
2063
+ config: Ci.reducer
2064
+ }), en = {
2065
2065
  name: "platform",
2066
- reducer: Yr
2067
- }, zr = (t) => t.platform.config, Zr = (t) => t.platform.config.userHighlightFields, en = (t) => t.platform.config.userAccountStatus, tn = (t) => t.platform.config.urlBase, Il = {
2068
- slice: Qr,
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, kl = {
2068
+ slice: en,
2069
2069
  actions: {
2070
- ...Ei.actions
2070
+ ...Ci.actions
2071
2071
  },
2072
2072
  selectors: {
2073
- selectPlatformConfig: zr,
2074
- selectUserHighlightFields: Zr,
2075
- selectUserAccountStatus: en,
2076
- selectUrlBase: tn
2073
+ selectPlatformConfig: tn,
2074
+ selectUserHighlightFields: an,
2075
+ selectUserAccountStatus: rn,
2076
+ selectUrlBase: nn
2077
2077
  }
2078
- }, Si = {
2078
+ }, bi = {
2079
2079
  query: "",
2080
2080
  filters: [],
2081
2081
  limit: 20,
2082
2082
  orders: [{ name: "dateCreation", sort: "DESC" }],
2083
2083
  page: 1
2084
- }, We = p("/fetchFiles", async ({ page: t, query: e, sort: i }, { extra: a, getState: r }) => {
2084
+ }, Be = u("/fetchFiles", async ({ page: t, query: e, sort: i }, { extra: a, getState: r }) => {
2085
2085
  const n = a.jApi, s = r(), l = s.wedoc.tab === "my-documents" ? [{ name: "idUser", value: "0" }] : [], d = [{ name: "dateCreation", sort: i }], g = e !== s.wedoc.query ? 1 : t;
2086
- return await n.wedoc.getFiles({ ...Si, filters: l, query: e, orders: d, page: g, limit: 12 });
2087
- }), qe = p(
2086
+ return await n.wedoc.getFiles({ ...bi, filters: l, query: e, orders: d, page: g, limit: 12 });
2087
+ }), qe = u(
2088
2088
  "/fetchRecentFiles",
2089
2089
  async (t, { extra: e, getState: i }) => {
2090
2090
  const a = e.jApi, n = i().wedoc.tab === "my-documents" ? [{ name: "idUser", value: "0" }] : [];
2091
- return await a.wedoc.getFiles({ ...Si, filters: n, limit: 3 });
2091
+ return await a.wedoc.getFiles({ ...bi, filters: n, limit: 3 });
2092
2092
  }
2093
- ), an = {
2093
+ ), sn = {
2094
2094
  entities: [],
2095
2095
  nbEntities: 0,
2096
2096
  entitiesRecent: [],
@@ -2099,9 +2099,9 @@ const fi = (t, e, i = 500) => {
2099
2099
  loadingRecent: "idle",
2100
2100
  query: "",
2101
2101
  page: 1
2102
- }, rn = T({
2102
+ }, on = T({
2103
2103
  name: "wedoc",
2104
- initialState: an,
2104
+ initialState: sn,
2105
2105
  reducers: {
2106
2106
  update: (t, e) => {
2107
2107
  t.entities = [
@@ -2118,11 +2118,11 @@ const fi = (t, e, i = 500) => {
2118
2118
  }
2119
2119
  },
2120
2120
  extraReducers: (t) => {
2121
- t.addCase(We.pending, (e) => {
2121
+ t.addCase(Be.pending, (e) => {
2122
2122
  e.loading = "pending";
2123
- }).addCase(We.fulfilled, (e, i) => {
2123
+ }).addCase(Be.fulfilled, (e, i) => {
2124
2124
  e.loading = "idle", e.entities = i.payload.result.data, e.nbEntities = i.payload.result.cnt, e.page = i.payload.result.page;
2125
- }).addCase(We.rejected, (e) => {
2125
+ }).addCase(Be.rejected, (e) => {
2126
2126
  e.loading = "idle";
2127
2127
  }).addCase(qe.pending, (e) => {
2128
2128
  e.loadingRecent = "pending";
@@ -2132,8 +2132,8 @@ const fi = (t, e, i = 500) => {
2132
2132
  e.loadingRecent = "idle";
2133
2133
  });
2134
2134
  }
2135
- }), vl = {
2136
- slice: rn,
2135
+ }), Ml = {
2136
+ slice: on,
2137
2137
  selectors: {
2138
2138
  getFiles: (t) => ({
2139
2139
  entities: t.wedoc.entities,
@@ -2150,16 +2150,16 @@ const fi = (t, e, i = 500) => {
2150
2150
  })
2151
2151
  },
2152
2152
  actions: {
2153
- fetchFiles: We,
2153
+ fetchFiles: Be,
2154
2154
  fetchRecentFiles: qe
2155
2155
  }
2156
- }, $e = p("/fetchRequest", async ({ uri: t, idUser: e }, { extra: i }) => await i.jApi.object.getAccessRequest(t, e)), nn = {
2156
+ }, $e = u("/fetchRequest", async ({ uri: t, idUser: e }, { extra: i }) => await i.jApi.object.getAccessRequest(t, e)), ln = {
2157
2157
  entities: [],
2158
2158
  nbEntities: 0,
2159
2159
  loading: "idle"
2160
- }, sn = T({
2160
+ }, dn = T({
2161
2161
  name: "share",
2162
- initialState: nn,
2162
+ initialState: ln,
2163
2163
  reducers: {
2164
2164
  remove: (t, e) => {
2165
2165
  t.entities = [...t.entities.filter((i) => i.id !== e.payload)];
@@ -2174,8 +2174,8 @@ const fi = (t, e, i = 500) => {
2174
2174
  e.loading = "idle";
2175
2175
  });
2176
2176
  }
2177
- }), hl = {
2178
- slice: sn,
2177
+ }), xl = {
2178
+ slice: dn,
2179
2179
  selectors: {
2180
2180
  requests: (t) => ({
2181
2181
  loading: t.share.loading,
@@ -2185,12 +2185,12 @@ const fi = (t, e, i = 500) => {
2185
2185
  actions: {
2186
2186
  fetchRequest: $e
2187
2187
  }
2188
- }, on = {
2188
+ }, cn = {
2189
2189
  message: void 0,
2190
2190
  status: "idle"
2191
- }, at = T({
2191
+ }, rt = T({
2192
2192
  name: "teamWorkToDo",
2193
- initialState: on,
2193
+ initialState: cn,
2194
2194
  reducers: {
2195
2195
  setMessageAndStatus: (t, e) => {
2196
2196
  const { status: i, message: a } = e.payload;
@@ -2204,7 +2204,7 @@ const fi = (t, e, i = 500) => {
2204
2204
  e.status = "error", e.message = i.payload?.errorMsg ?? "GLOBAL_Technical_Error";
2205
2205
  });
2206
2206
  }
2207
- }), Lt = p(
2207
+ }), Lt = u(
2208
2208
  "teamWork/startToDoCreation",
2209
2209
  async (t, { extra: e, rejectWithValue: i, dispatch: a, signal: r }) => {
2210
2210
  try {
@@ -2213,34 +2213,34 @@ const fi = (t, e, i = 500) => {
2213
2213
  return v(n) || a(f.actions.error({ label: E(n) })), i({ error: 1, errorMsg: "APP_TEAMWORK_ToDo_Not_Sent" });
2214
2214
  }
2215
2215
  }
2216
- ), ln = function(t) {
2216
+ ), un = function(t) {
2217
2217
  return [
2218
2218
  {
2219
2219
  namespace: "TEAMWORK",
2220
2220
  function: "update",
2221
2221
  handler: function(i) {
2222
- i.namespace === "TEAMWORK" && i.function === "update" && t(at.actions.setMessageAndStatus({ status: i.state, message: i.msg }));
2222
+ i.namespace === "TEAMWORK" && i.function === "update" && t(rt.actions.setMessageAndStatus({ status: i.state, message: i.msg }));
2223
2223
  }
2224
2224
  }
2225
2225
  ];
2226
- }, dn = (t) => t.teamWork.teamWorkToDo, cn = O({
2227
- [at.name]: at.reducer
2228
- }), Ti = {
2226
+ }, pn = (t) => t.teamWork.teamWorkToDo, gn = O({
2227
+ [rt.name]: rt.reducer
2228
+ }), wi = {
2229
2229
  name: "teamWork",
2230
- reducer: cn
2231
- }, Ol = Ti.reducer, Rl = {
2232
- slice: Ti,
2230
+ reducer: gn
2231
+ }, jl = wi.reducer, _l = {
2232
+ slice: wi,
2233
2233
  actions: {
2234
- ...at.actions,
2234
+ ...rt.actions,
2235
2235
  startToDoCreation: Lt
2236
2236
  },
2237
- selectors: { selectToDoState: dn },
2238
- getTeamWorkRTHandlers: ln
2239
- }, un = {
2237
+ selectors: { selectToDoState: pn },
2238
+ getTeamWorkRTHandlers: un
2239
+ }, fn = {
2240
2240
  channels: void 0,
2241
2241
  loading: "idle",
2242
2242
  loadingChannelDeletion: "idle"
2243
- }, Q = p(
2243
+ }, Q = u(
2244
2244
  "/fetchChannels",
2245
2245
  async (t, { extra: e }) => {
2246
2246
  const i = t ?? 1, a = e.jApi;
@@ -2259,7 +2259,7 @@ const fi = (t, e, i = 500) => {
2259
2259
  });
2260
2260
  });
2261
2261
  }
2262
- ), Ve = p("/deleteChannel", async ({ channel: t }, { extra: e, dispatch: i }) => {
2262
+ ), Ve = u("/deleteChannel", async ({ channel: t }, { extra: e, dispatch: i }) => {
2263
2263
  const a = e.jApi;
2264
2264
  return await new Promise((r, n) => {
2265
2265
  a.article.delete(t.id).then((s) => {
@@ -2268,9 +2268,9 @@ const fi = (t, e, i = 500) => {
2268
2268
  n({ error: s.error ?? 1, errorMsg: s.errorMsg ?? "Error deleting channel" });
2269
2269
  });
2270
2270
  });
2271
- }), ei = T({
2271
+ }), ti = T({
2272
2272
  name: "channelsList",
2273
- initialState: { ...un },
2273
+ initialState: { ...fn },
2274
2274
  reducers: {},
2275
2275
  extraReducers: (t) => {
2276
2276
  t.addCase(Q.pending, (e) => {
@@ -2288,49 +2288,49 @@ const fi = (t, e, i = 500) => {
2288
2288
  });
2289
2289
  }
2290
2290
  });
2291
- function pn(t) {
2291
+ function mn(t) {
2292
2292
  return t.tvChannelType === "DYNAMIC" ? !!t.tvChannelBackgroundColor && !!t.tvChannelGroupTarget : t.tvChannelNumImages !== 0;
2293
2293
  }
2294
- const gn = O({
2295
- [ei.name]: ei.reducer
2296
- }), fn = {
2294
+ const yn = O({
2295
+ [ti.name]: ti.reducer
2296
+ }), An = {
2297
2297
  name: "tvDisplay",
2298
- reducer: gn
2299
- }, mn = function(e) {
2298
+ reducer: yn
2299
+ }, En = function(e) {
2300
2300
  return e.tvDisplay.channelsList;
2301
- }, Dl = {
2302
- slice: fn,
2301
+ }, Nl = {
2302
+ slice: An,
2303
2303
  actions: {
2304
2304
  fetchChannels: Q,
2305
2305
  deleteChannel: Ve
2306
2306
  },
2307
2307
  selectors: {
2308
- selectChannelsList: mn
2308
+ selectChannelsList: En
2309
2309
  },
2310
2310
  utils: {
2311
- isChannelConfigured: pn
2311
+ isChannelConfigured: mn
2312
2312
  }
2313
- }, yn = {}, wt = T({
2313
+ }, Sn = {}, It = T({
2314
2314
  name: "options",
2315
- initialState: yn,
2315
+ initialState: Sn,
2316
2316
  reducers: {
2317
2317
  initOptions: (t, { payload: e }) => e
2318
2318
  }
2319
- }), An = O({
2320
- [wt.name]: wt.reducer
2321
- }), En = {
2319
+ }), Tn = O({
2320
+ [It.name]: It.reducer
2321
+ }), Cn = {
2322
2322
  name: "tinymce",
2323
- reducer: An
2324
- }, Sn = (t) => t.tinymce.options.common, Tn = (t) => t.tinymce.options.extended, kl = {
2325
- slice: En,
2323
+ reducer: Tn
2324
+ }, bn = (t) => t.tinymce.options.common, wn = (t) => t.tinymce.options.extended, Pl = {
2325
+ slice: Cn,
2326
2326
  actions: {
2327
- ...wt.actions
2327
+ ...It.actions
2328
2328
  },
2329
2329
  selectors: {
2330
- selectTinyMCECommonOptions: Sn,
2331
- selectTinyMCEExtendedOptions: Tn
2330
+ selectTinyMCECommonOptions: bn,
2331
+ selectTinyMCEExtendedOptions: wn
2332
2332
  }
2333
- }, Cn = {
2333
+ }, Ln = {
2334
2334
  id: 0,
2335
2335
  mainType: "user",
2336
2336
  type: "user",
@@ -2341,33 +2341,33 @@ const gn = O({
2341
2341
  dateModified: "",
2342
2342
  level: 0,
2343
2343
  active: 1
2344
- }, ti = T({
2344
+ }, ii = T({
2345
2345
  name: "userCurrent",
2346
- initialState: Cn,
2346
+ initialState: Ln,
2347
2347
  reducers: {
2348
2348
  init: (t, { payload: e }) => e
2349
2349
  }
2350
- }), bn = (t) => t.userCurrent, Ln = (t) => t.level === Xi.ADMIN, wn = (t) => t.id !== 0, Ml = {
2351
- slice: ti,
2352
- actions: { ...ti.actions },
2350
+ }), In = (t) => t.userCurrent, vn = (t) => t.level === Yi.ADMIN, hn = (t) => t.id !== 0, Ul = {
2351
+ slice: ii,
2352
+ actions: { ...ii.actions },
2353
2353
  selectors: {
2354
- get: bn
2354
+ get: In
2355
2355
  },
2356
- utils: { isAdmin: Ln, isLogged: wn }
2356
+ utils: { isAdmin: vn, isLogged: hn }
2357
2357
  };
2358
- function kt() {
2358
+ function Mt() {
2359
2359
  let t = "";
2360
2360
  for (let e = 0; e < 16; e++)
2361
2361
  t += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
2362
2362
  return t;
2363
2363
  }
2364
- const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDGET_Quick_Survey", wi = "WIDGET_Quick_Survey_Text", In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2364
+ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDGET_Quick_Survey", hi = "WIDGET_Quick_Survey_Text", On = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2365
2365
  __proto__: null,
2366
- WIDGET_CHECK_LIST_DESCRIPTION: bi,
2367
- WIDGET_CHECK_LIST_LABEL: Ci,
2368
- WIDGET_QUICK_SURVEY_DESCRIPTION: wi,
2369
- WIDGET_QUICK_SURVEY_LABEL: Li
2370
- }, Symbol.toStringTag, { value: "Module" })), vn = {
2366
+ WIDGET_CHECK_LIST_DESCRIPTION: Ii,
2367
+ WIDGET_CHECK_LIST_LABEL: Li,
2368
+ WIDGET_QUICK_SURVEY_DESCRIPTION: hi,
2369
+ WIDGET_QUICK_SURVEY_LABEL: vi
2370
+ }, Symbol.toStringTag, { value: "Module" })), Rn = {
2371
2371
  label: "WIDGET_Article_Attachment",
2372
2372
  description: "WIDGET_Article_Attachment_Description",
2373
2373
  name: C.ArticleAttachment,
@@ -2379,9 +2379,9 @@ const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDG
2379
2379
  useSelection: !1,
2380
2380
  useWidgets: !1
2381
2381
  }
2382
- }, hn = {
2382
+ }, Dn = {
2383
2383
  files: []
2384
- }, On = {
2384
+ }, kn = {
2385
2385
  label: "WIDGET_BUTTON",
2386
2386
  description: "WIDGET_Button_Description",
2387
2387
  name: C.ArticleButton,
@@ -2393,7 +2393,7 @@ const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDG
2393
2393
  useSelection: !1,
2394
2394
  useWidgets: !1
2395
2395
  }
2396
- }, Rn = {
2396
+ }, Mn = {
2397
2397
  text: "",
2398
2398
  openingType: "link",
2399
2399
  openingTypeLink: {
@@ -2406,7 +2406,7 @@ const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDG
2406
2406
  backgroundColor: "#4dbf96",
2407
2407
  buttonSize: "lg",
2408
2408
  borderRadius: "4"
2409
- }, ii = {
2409
+ }, ai = {
2410
2410
  label: "WIDGET_Article_Gallery",
2411
2411
  description: "WIDGET_Article_Gallery_Description",
2412
2412
  name: C.ArticleGallery,
@@ -2418,11 +2418,11 @@ const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDG
2418
2418
  useSelection: !1,
2419
2419
  useWidgets: !1
2420
2420
  }
2421
- }, Dn = {
2421
+ }, xn = {
2422
2422
  files: [],
2423
2423
  gap: "4",
2424
2424
  column: "3"
2425
- }, kn = {
2425
+ }, jn = {
2426
2426
  label: "WIDGET_Article_Image",
2427
2427
  description: "WIDGET_Article_Image_Description",
2428
2428
  name: C.ArticleImage,
@@ -2434,7 +2434,7 @@ const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDG
2434
2434
  useSelection: !1,
2435
2435
  useWidgets: !1
2436
2436
  }
2437
- }, Mn = {}, xn = {
2437
+ }, _n = {}, Nn = {
2438
2438
  label: "WIDGET_Slider",
2439
2439
  description: "WIDGET_Slider_Description",
2440
2440
  name: C.ArticleSlider,
@@ -2446,13 +2446,13 @@ const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDG
2446
2446
  useSelection: !1,
2447
2447
  useWidgets: !1
2448
2448
  }
2449
- }, jn = {
2449
+ }, Pn = {
2450
2450
  slides: [],
2451
2451
  maxWidth: 800,
2452
2452
  loop: !1,
2453
2453
  useDots: !0,
2454
2454
  startAt: 0
2455
- }, _n = {
2455
+ }, Un = {
2456
2456
  label: "WIDGET_Text",
2457
2457
  description: "WIDGET_Text_Description",
2458
2458
  name: C.ArticleText,
@@ -2464,9 +2464,9 @@ const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDG
2464
2464
  useSelection: !1,
2465
2465
  useWidgets: !1
2466
2466
  }
2467
- }, Nn = {
2467
+ }, Fn = {
2468
2468
  text: ""
2469
- }, Pn = {
2469
+ }, Wn = {
2470
2470
  label: "WIDGET_Title",
2471
2471
  description: "WIDGET_Title_Description",
2472
2472
  name: C.ArticleTitle,
@@ -2478,11 +2478,11 @@ const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDG
2478
2478
  useSelection: !1,
2479
2479
  useWidgets: !1
2480
2480
  }
2481
- }, Un = {
2481
+ }, Bn = {
2482
2482
  text: "",
2483
2483
  heading: "h1",
2484
2484
  backgroundColor: "transparent"
2485
- }, Fn = {
2485
+ }, qn = {
2486
2486
  label: "WIDGET_Calendar_CalDav",
2487
2487
  description: "WIDGET_Calendar_CalDav_Text",
2488
2488
  name: C.CalendarCalDav,
@@ -2495,13 +2495,13 @@ const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDG
2495
2495
  useSelection: !0,
2496
2496
  useWidgets: !1
2497
2497
  }
2498
- }, Bn = {
2498
+ }, $n = {
2499
2499
  calEventsLimit: !1,
2500
2500
  calEventsLimitValue: 10,
2501
2501
  calEventsPromptStatus: "shared"
2502
- }, Wn = {
2503
- label: Ci,
2504
- description: bi,
2502
+ }, Vn = {
2503
+ label: Li,
2504
+ description: Ii,
2505
2505
  name: C.CheckList,
2506
2506
  img: "/img/fast-intranet/widget-check-list.png",
2507
2507
  available: !0,
@@ -2511,10 +2511,10 @@ const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDG
2511
2511
  useSelection: !1,
2512
2512
  useWidgets: !1
2513
2513
  }
2514
- }, qn = {
2514
+ }, Hn = {
2515
2515
  arr: [],
2516
2516
  edit: !1
2517
- }, $n = {
2517
+ }, Gn = {
2518
2518
  label: "WIDGET_Contact_CardDav",
2519
2519
  description: "WIDGET_Contact_CardDav_Text",
2520
2520
  name: C.ContactCardDav,
@@ -2527,11 +2527,11 @@ const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDG
2527
2527
  useSelection: !0,
2528
2528
  useWidgets: !1
2529
2529
  }
2530
- }, Vn = {
2530
+ }, Xn = {
2531
2531
  contactLimit: !1,
2532
2532
  contactLimitValue: 10,
2533
2533
  contactPromptStatus: "shared"
2534
- }, Hn = {
2534
+ }, Jn = {
2535
2535
  label: "WIDGET_Datasource_Table",
2536
2536
  description: "WIDGET_Datasource_Table_Description",
2537
2537
  name: C.DatasourceTable,
@@ -2543,14 +2543,14 @@ const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDG
2543
2543
  useSelection: !0,
2544
2544
  useWidgets: !1
2545
2545
  }
2546
- }, Gn = {
2546
+ }, Kn = {
2547
2547
  tableHeadColor: "#f1f1f1",
2548
2548
  tableHeadTextColor: "#000",
2549
2549
  tableHeadIconColor: "#000",
2550
2550
  tableRowColor: "#f5f5f5",
2551
2551
  tableRowTextColor: "#000",
2552
2552
  limit: 20
2553
- }, Xn = {
2553
+ }, Yn = {
2554
2554
  label: "WIDGET_Email_IMAP",
2555
2555
  description: "WIDGET_Email_IMAP_Text",
2556
2556
  name: C.EmailsImap,
@@ -2563,11 +2563,11 @@ const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDG
2563
2563
  useSelection: !0,
2564
2564
  useWidgets: !1
2565
2565
  }
2566
- }, Jn = {
2566
+ }, Qn = {
2567
2567
  emailsLimit: !1,
2568
2568
  emailsLimitValue: 10,
2569
2569
  emailsPromptStatus: "shared"
2570
- }, Kn = {
2570
+ }, zn = {
2571
2571
  label: "WIDGET_Excel_Datasource_Table",
2572
2572
  description: "WIDGET_Excel_Datasource_Table_Text",
2573
2573
  name: C.ExcelDatasourceTable,
@@ -2579,14 +2579,14 @@ const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDG
2579
2579
  useSelection: !0,
2580
2580
  useWidgets: !1
2581
2581
  }
2582
- }, Yn = {
2582
+ }, Zn = {
2583
2583
  tableHeadColor: "#f1f1f1",
2584
2584
  tableHeadTextColor: "#000",
2585
2585
  tableHeadIconColor: "#000",
2586
2586
  tableRowColor: "#f5f5f5",
2587
2587
  tableRowTextColor: "#000",
2588
2588
  limit: 20
2589
- }, Qn = {
2589
+ }, es = {
2590
2590
  label: "WIDGET_Extension",
2591
2591
  description: "WIDGET_Extension_Description",
2592
2592
  name: C.Extension,
@@ -2598,9 +2598,9 @@ const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDG
2598
2598
  useSelection: !1,
2599
2599
  useWidgets: !1
2600
2600
  }
2601
- }, zn = {
2601
+ }, ts = {
2602
2602
  extensionName: ""
2603
- }, Zn = {
2603
+ }, is = {
2604
2604
  label: "WIDGET_Lucca_Absence",
2605
2605
  description: "WIDGET_Lucca_Absence_Text",
2606
2606
  name: C.LuccaAbsence,
@@ -2612,9 +2612,9 @@ const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDG
2612
2612
  useSelection: !0,
2613
2613
  useWidgets: !1
2614
2614
  }
2615
- }, es = {
2615
+ }, as = {
2616
2616
  url: ""
2617
- }, ts = {
2617
+ }, rs = {
2618
2618
  label: "WIDGET_Presence",
2619
2619
  description: "WIDGET_Presence_Text",
2620
2620
  name: C.Presence,
@@ -2626,13 +2626,13 @@ const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDG
2626
2626
  useSelection: !1,
2627
2627
  useWidgets: !1
2628
2628
  }
2629
- }, is = {
2629
+ }, ns = {
2630
2630
  closing: !1,
2631
2631
  limit: !1,
2632
2632
  limitValue: 100
2633
- }, as = {
2634
- label: Li,
2635
- description: wi,
2633
+ }, ss = {
2634
+ label: vi,
2635
+ description: hi,
2636
2636
  name: C.QuickSurvey,
2637
2637
  img: "/img/fast-intranet/widget-quick-survey.png",
2638
2638
  available: !0,
@@ -2642,7 +2642,7 @@ const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDG
2642
2642
  useSelection: !1,
2643
2643
  useWidgets: !1
2644
2644
  }
2645
- }, rs = {
2645
+ }, os = {
2646
2646
  arr: [],
2647
2647
  open: !1,
2648
2648
  multi: !1,
@@ -2650,7 +2650,7 @@ const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDG
2650
2650
  isClosed: !1,
2651
2651
  showResult: !1,
2652
2652
  isNotDisabled: !1
2653
- }, ns = {
2653
+ }, ls = {
2654
2654
  label: "WIDGET_User_Profil",
2655
2655
  description: "WIDGET_User_Profil_Text",
2656
2656
  name: C.UserProfile,
@@ -2662,7 +2662,7 @@ const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDG
2662
2662
  useSelection: !0,
2663
2663
  useWidgets: !1
2664
2664
  }
2665
- }, ss = {}, os = {
2665
+ }, ds = {}, cs = {
2666
2666
  label: "WIDGET_Color",
2667
2667
  description: "WIDGET_Color_Text",
2668
2668
  name: C.Color,
@@ -2674,7 +2674,7 @@ const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDG
2674
2674
  useSelection: !0,
2675
2675
  useWidgets: !1
2676
2676
  }
2677
- }, ls = {}, ds = {
2677
+ }, us = {}, ps = {
2678
2678
  label: "WIDGET_Welcome",
2679
2679
  description: "WIDGET_Welcome_Text",
2680
2680
  name: C.Welcome,
@@ -2686,153 +2686,153 @@ const Ci = "WIDGET_Check_List", bi = "WIDGET_Check_List_Description", Li = "WIDG
2686
2686
  useSelection: !0,
2687
2687
  useWidgets: !1
2688
2688
  }
2689
- }, cs = {};
2690
- function us(t) {
2689
+ }, gs = {};
2690
+ function fs(t) {
2691
2691
  switch (t) {
2692
2692
  default:
2693
- return ii;
2693
+ return ai;
2694
2694
  case "widget-article-gallery":
2695
- return ii;
2695
+ return ai;
2696
2696
  case "widget-article-attachment":
2697
- return vn;
2697
+ return Rn;
2698
2698
  case "widget-presence":
2699
- return ts;
2699
+ return rs;
2700
2700
  case "widget-article-slider":
2701
- return xn;
2701
+ return Nn;
2702
2702
  case "widget-article-text":
2703
- return _n;
2703
+ return Un;
2704
2704
  case "widget-article-title":
2705
- return Pn;
2705
+ return Wn;
2706
2706
  case "widget-article-image":
2707
- return kn;
2707
+ return jn;
2708
2708
  case "widget-datasource-table":
2709
- return Hn;
2709
+ return Jn;
2710
2710
  case "widget-excel-datasource-table":
2711
- return Kn;
2711
+ return zn;
2712
2712
  case "widget-article-button":
2713
- return On;
2713
+ return kn;
2714
2714
  case "widget-check-list":
2715
- return Wn;
2715
+ return Vn;
2716
2716
  case "widget-quick-survey":
2717
- return as;
2717
+ return ss;
2718
2718
  case "widget-calendar-calDav":
2719
- return Fn;
2719
+ return qn;
2720
2720
  case "widget-contact-cardDav":
2721
- return $n;
2721
+ return Gn;
2722
2722
  case "widget-lucca-absence":
2723
- return Zn;
2723
+ return is;
2724
2724
  case "widget-emails-imap":
2725
- return Xn;
2725
+ return Yn;
2726
2726
  case "widget-welcome":
2727
- return ds;
2727
+ return ps;
2728
2728
  case "widget-user-profil":
2729
- return ns;
2729
+ return ls;
2730
2730
  case "widget-extension":
2731
- return Qn;
2731
+ return es;
2732
2732
  case "widget-color":
2733
- return os;
2733
+ return cs;
2734
2734
  }
2735
2735
  }
2736
- function ps(t) {
2736
+ function ms(t) {
2737
2737
  return {
2738
2738
  title: "",
2739
2739
  level: 3,
2740
- widget: gs(t)
2740
+ widget: ys(t)
2741
2741
  };
2742
2742
  }
2743
- function gs(t) {
2743
+ function ys(t) {
2744
2744
  return {
2745
- uniqid: kt(),
2745
+ uniqid: Mt(),
2746
2746
  name: t,
2747
- content: fs(t)
2747
+ content: As(t)
2748
2748
  };
2749
2749
  }
2750
- function fs(t) {
2750
+ function As(t) {
2751
2751
  switch (t) {
2752
2752
  default:
2753
2753
  case "widget-lucca-absence":
2754
2754
  return {
2755
- ...es
2755
+ ...as
2756
2756
  };
2757
2757
  case "widget-article-attachment":
2758
2758
  return {
2759
- ...hn
2759
+ ...Dn
2760
2760
  };
2761
2761
  case "widget-presence":
2762
2762
  return {
2763
- ...is
2763
+ ...ns
2764
2764
  };
2765
2765
  case "widget-datasource-table":
2766
2766
  return {
2767
- ...Gn
2767
+ ...Kn
2768
2768
  };
2769
2769
  case "widget-excel-datasource-table":
2770
2770
  return {
2771
- ...Yn
2771
+ ...Zn
2772
2772
  };
2773
2773
  case "widget-article-slider":
2774
2774
  return {
2775
- ...jn
2775
+ ...Pn
2776
2776
  };
2777
2777
  case "widget-article-gallery":
2778
2778
  return {
2779
- ...Dn
2779
+ ...xn
2780
2780
  };
2781
2781
  case "widget-article-button":
2782
2782
  return {
2783
- ...Rn
2783
+ ...Mn
2784
2784
  };
2785
2785
  case "widget-article-title":
2786
2786
  return {
2787
- ...Un
2787
+ ...Bn
2788
2788
  };
2789
2789
  case "widget-article-image":
2790
2790
  return {
2791
- ...Mn
2791
+ ..._n
2792
2792
  };
2793
2793
  case "widget-article-text":
2794
2794
  return {
2795
- ...Nn
2795
+ ...Fn
2796
2796
  };
2797
2797
  case "widget-check-list":
2798
2798
  return {
2799
- ...qn
2799
+ ...Hn
2800
2800
  };
2801
2801
  case "widget-quick-survey":
2802
2802
  return {
2803
- ...rs
2803
+ ...os
2804
2804
  };
2805
2805
  case "widget-calendar-calDav":
2806
2806
  return {
2807
- ...Bn
2807
+ ...$n
2808
2808
  };
2809
2809
  case "widget-contact-cardDav":
2810
2810
  return {
2811
- ...Vn
2811
+ ...Xn
2812
2812
  };
2813
2813
  case "widget-emails-imap":
2814
2814
  return {
2815
- ...Jn
2815
+ ...Qn
2816
2816
  };
2817
2817
  case "widget-welcome":
2818
2818
  return {
2819
- ...cs
2819
+ ...gs
2820
2820
  };
2821
2821
  case "widget-user-profil":
2822
2822
  return {
2823
- ...ss
2823
+ ...ds
2824
2824
  };
2825
2825
  case "widget-extension":
2826
2826
  return {
2827
- ...zn
2827
+ ...ts
2828
2828
  };
2829
2829
  case "widget-color":
2830
2830
  return {
2831
- ...ls
2831
+ ...us
2832
2832
  };
2833
2833
  }
2834
2834
  }
2835
- const ms = {
2835
+ const Es = {
2836
2836
  token: void 0,
2837
2837
  ids: {},
2838
2838
  layers: {},
@@ -2850,7 +2850,7 @@ const ms = {
2850
2850
  flushedWidgets: [],
2851
2851
  rtObjectStack: [],
2852
2852
  widgetContext: {}
2853
- }, ys = [
2853
+ }, Ss = [
2854
2854
  C.ArticleTitle,
2855
2855
  C.ArticleText,
2856
2856
  C.ArticleImage,
@@ -2859,7 +2859,7 @@ const ms = {
2859
2859
  C.ArticleAttachment
2860
2860
  ], G = T({
2861
2861
  name: "widgets",
2862
- initialState: ms,
2862
+ initialState: Es,
2863
2863
  reducers: {
2864
2864
  registerWidget: (t, e) => {
2865
2865
  const { uniqid: i, widget: a, context: r } = e.payload;
@@ -2869,7 +2869,7 @@ const ms = {
2869
2869
  loading: !1,
2870
2870
  mounted: !1,
2871
2871
  hover: !1,
2872
- empty: ys.includes(a.widget.name),
2872
+ empty: Ss.includes(a.widget.name),
2873
2873
  locked: !1
2874
2874
  }, t.widgetContext[i] = r;
2875
2875
  },
@@ -2926,7 +2926,7 @@ const ms = {
2926
2926
  t.ids[i] && (t.ids[i] = Object.assign({ ...t.ids[i], ...e.payload }));
2927
2927
  },
2928
2928
  registerLayer: (t, e) => {
2929
- const i = kt(), a = { ...t.ids[e.payload.uniqid] };
2929
+ const i = Mt(), a = { ...t.ids[e.payload.uniqid] };
2930
2930
  a.widget && (t.ids[e.payload.uniqid] && a.widget.layers ? t.ids[e.payload.uniqid] = Object.assign({
2931
2931
  ...t.ids[e.payload.uniqid],
2932
2932
  widget: {
@@ -3015,7 +3015,7 @@ const ms = {
3015
3015
  t.modal = void 0;
3016
3016
  }
3017
3017
  }
3018
- }), As = function(t, e) {
3018
+ }), Ts = function(t, e) {
3019
3019
  return [
3020
3020
  {
3021
3021
  namespace: "WIDGET",
@@ -3070,43 +3070,43 @@ const ms = {
3070
3070
  }
3071
3071
  }
3072
3072
  ];
3073
- }, Es = (t) => t.widgets.token, Ss = (t) => t.widgets.modal, Ts = (t) => t.widgets.ids, Cs = (t) => t.widgets.flushedWidgets, bs = (t, e) => t.widgets.states[e] ?? void 0, Ls = (t, e) => t.widgets.ids[e] ?? void 0, ws = (t, e) => t.widgets.ids[e]?.level ?? void 0, Is = (t, e) => t.widgets.widgetObject[e] ?? void 0, vs = (t, e) => {
3073
+ }, Cs = (t) => t.widgets.token, bs = (t) => t.widgets.modal, ws = (t) => t.widgets.ids, Ls = (t) => t.widgets.flushedWidgets, Is = (t, e) => t.widgets.states[e] ?? void 0, vs = (t, e) => t.widgets.ids[e] ?? void 0, hs = (t, e) => t.widgets.ids[e]?.level ?? void 0, Os = (t, e) => t.widgets.widgetObject[e] ?? void 0, Rs = (t, e) => {
3074
3074
  const i = t.widgets.widgetObject[e];
3075
3075
  if (i && "uri" in i)
3076
3076
  return i.uri;
3077
- }, hs = (t, e) => t.widgets.widgetObjectRights[e] ?? void 0, Os = (t, e) => t.widgets.widgetContext[e] ?? void 0, Rs = (t, e) => t.widgets.widgetAuthor[e] ?? void 0, Ds = (t, e) => t.widgets.widgetChipCount[e] ?? 0, ks = (t, e) => t.widgets.widgetWrapperStyle[e] ?? {}, Ms = (t, e) => t.widgets.widgetTitleStyle[e] ?? {}, xs = (t, e) => t.widgets.currentEditableWidgetId === e, js = (t, e) => t.widgets.rtObjectStack.filter((i) => i.uniqid === e), xl = (t, e, i) => _s.slice.actions.updateWidget({ uniqid: t, content: e, override: i ?? !1 }), _s = {
3078
- const: In,
3079
- factory: ps,
3080
- definition: us,
3077
+ }, Ds = (t, e) => t.widgets.widgetObjectRights[e] ?? void 0, ks = (t, e) => t.widgets.widgetContext[e] ?? void 0, Ms = (t, e) => t.widgets.widgetAuthor[e] ?? void 0, xs = (t, e) => t.widgets.widgetChipCount[e] ?? 0, js = (t, e) => t.widgets.widgetWrapperStyle[e] ?? {}, _s = (t, e) => t.widgets.widgetTitleStyle[e] ?? {}, Ns = (t, e) => t.widgets.currentEditableWidgetId === e, Ps = (t, e) => t.widgets.rtObjectStack.filter((i) => i.uniqid === e), Fl = (t, e, i) => Us.slice.actions.updateWidget({ uniqid: t, content: e, override: i ?? !1 }), Us = {
3078
+ const: On,
3079
+ factory: ms,
3080
+ definition: fs,
3081
3081
  utils: {
3082
- uniqid: kt
3082
+ uniqid: Mt
3083
3083
  },
3084
3084
  slice: G,
3085
- getWidgetRTHandlers: As,
3085
+ getWidgetRTHandlers: Ts,
3086
3086
  selectors: {
3087
- isActive: xs,
3088
- selectToken: Es,
3089
- selectWidgets: Ts,
3090
- selectWidget: Ls,
3091
- selectWidgetState: bs,
3092
- selectModal: Ss,
3093
- selectWidgetObject: Is,
3094
- selectWidgetObjectUri: vs,
3095
- selectWidgetAuthor: Rs,
3096
- selectWidgetObjectRights: hs,
3097
- selectAllWidgetRTObject: js,
3098
- selectFlushedWidgets: Cs,
3099
- selectWidgetContext: Os,
3100
- selectWidgetLevel: ws,
3101
- selectWidgetWrapperStyle: ks,
3102
- selectWidgetTitleStyle: Ms,
3103
- selectWidgetChipCount: Ds
3104
- }
3105
- }, Ns = {
3087
+ isActive: Ns,
3088
+ selectToken: Cs,
3089
+ selectWidgets: ws,
3090
+ selectWidget: vs,
3091
+ selectWidgetState: Is,
3092
+ selectModal: bs,
3093
+ selectWidgetObject: Os,
3094
+ selectWidgetObjectUri: Rs,
3095
+ selectWidgetAuthor: Ms,
3096
+ selectWidgetObjectRights: Ds,
3097
+ selectAllWidgetRTObject: Ps,
3098
+ selectFlushedWidgets: Ls,
3099
+ selectWidgetContext: ks,
3100
+ selectWidgetLevel: hs,
3101
+ selectWidgetWrapperStyle: js,
3102
+ selectWidgetTitleStyle: _s,
3103
+ selectWidgetChipCount: xs
3104
+ }
3105
+ }, Fs = {
3106
3106
  editors: []
3107
- }, Ps = T({
3107
+ }, Ws = T({
3108
3108
  name: "editors",
3109
- initialState: Ns,
3109
+ initialState: Fs,
3110
3110
  reducers: {
3111
3111
  registerEditor: (t, e) => {
3112
3112
  const { uniqid: i, name: a, onSave: r, mode: n } = e.payload, s = r ? {
@@ -3156,15 +3156,15 @@ const ms = {
3156
3156
  window.dispatchEvent(new Event("WidgetEditorFlushAll")), t.editors.length = 0;
3157
3157
  }
3158
3158
  }
3159
- }), Us = (t) => t.editors.editors, Fs = (t, e) => t.editors.editors.find((i) => i.uniqid === e), jl = {
3160
- slice: Ps,
3159
+ }), Bs = (t) => t.editors.editors, qs = (t, e) => t.editors.editors.find((i) => i.uniqid === e), Wl = {
3160
+ slice: Ws,
3161
3161
  selectors: {
3162
- selectEditors: Us,
3163
- selectEditor: Fs
3162
+ selectEditors: Bs,
3163
+ selectEditor: qs
3164
3164
  }
3165
- }, N = lt({
3165
+ }, N = dt({
3166
3166
  selectId: (t) => `${t.targetId}-${t.type}`
3167
- }), ai = T({
3167
+ }), ri = T({
3168
3168
  name: "socialActions",
3169
3169
  initialState: N.getInitialState(),
3170
3170
  reducers: {
@@ -3174,11 +3174,11 @@ const ms = {
3174
3174
  clear: N.removeAll,
3175
3175
  updateOne: N.updateOne
3176
3176
  }
3177
- }), Bs = N.getSelectors((t) => t.entities.socialActions), _l = {
3178
- slice: ai,
3179
- actions: { ...ai.actions },
3180
- selectors: Bs
3181
- }, rt = {
3177
+ }), $s = N.getSelectors((t) => t.entities.socialActions), Bl = {
3178
+ slice: ri,
3179
+ actions: { ...ri.actions },
3180
+ selectors: $s
3181
+ }, nt = {
3182
3182
  ALL: "1",
3183
3183
  CUSTOM: "0"
3184
3184
  }, V = {
@@ -3189,10 +3189,10 @@ const ms = {
3189
3189
  DRAFT: V.draft,
3190
3190
  INSTALLED: V.installed,
3191
3191
  SUSPENDED: V.suspended
3192
- }, nt = {
3192
+ }, st = {
3193
3193
  SOLR: "1",
3194
3194
  NOT_SOLR: "0"
3195
- }, Mt = ["create", "popup", "edit", "filter", "list", "view"], o = {
3195
+ }, xt = ["create", "popup", "edit", "filter", "list", "view"], o = {
3196
3196
  IMAGE: "IMAGE",
3197
3197
  DESCRIPTION: "DESCRIPTION",
3198
3198
  TEXT: "TEXT",
@@ -3213,14 +3213,14 @@ const ms = {
3213
3213
  USERLINK: "USERLINK",
3214
3214
  CONTENTLINK: "CONTENTLINK",
3215
3215
  RANGE: "RANGE"
3216
- }, u = {
3216
+ }, p = {
3217
3217
  TITLE: "TITLE",
3218
3218
  USER: "USER",
3219
3219
  PUBLISHTO: "PUBLISHTO",
3220
3220
  SENDALERTTOSUBSCRIBERS: "SENDALERTTOSUBSCRIBERS",
3221
3221
  RECEIVEACOPY: "RECEIVEACOPY",
3222
3222
  CREATIONDATE: "CREATIONDATE"
3223
- }, Ws = {
3223
+ }, Vs = {
3224
3224
  TITLE: "title",
3225
3225
  USER: "user",
3226
3226
  PUBLISHTO: "publishTo",
@@ -3235,79 +3235,79 @@ const ms = {
3235
3235
  OPTIONS_EDITOR: "options_editor",
3236
3236
  TAXONOMY: "taxonomy",
3237
3237
  CONTENTTYPE: "contenttype"
3238
- }, qs = [o.DESCRIPTION, o.IMAGE], Nl = qs, xt = /* @__PURE__ */ new Map();
3239
- xt.set(o.IMAGE, ["list", "filter", "view"]);
3240
- xt.set(o.CODEHTML, ["list", "filter", "view"]);
3238
+ }, Hs = [o.DESCRIPTION, o.IMAGE], ql = Hs, jt = /* @__PURE__ */ new Map();
3239
+ jt.set(o.IMAGE, ["list", "filter", "view"]);
3240
+ jt.set(o.CODEHTML, ["list", "filter", "view"]);
3241
3241
  const q = {
3242
3242
  create: {
3243
- fixed: [u.TITLE],
3243
+ fixed: [p.TITLE],
3244
3244
  optional: [
3245
- u.PUBLISHTO,
3246
- u.SENDALERTTOSUBSCRIBERS,
3247
- u.RECEIVEACOPY
3245
+ p.PUBLISHTO,
3246
+ p.SENDALERTTOSUBSCRIBERS,
3247
+ p.RECEIVEACOPY
3248
3248
  ]
3249
3249
  },
3250
3250
  popup: {
3251
- fixed: [u.TITLE],
3252
- optional: [u.PUBLISHTO]
3251
+ fixed: [p.TITLE],
3252
+ optional: [p.PUBLISHTO]
3253
3253
  },
3254
3254
  edit: {
3255
- fixed: [u.TITLE],
3256
- optional: [u.PUBLISHTO]
3255
+ fixed: [p.TITLE],
3256
+ optional: [p.PUBLISHTO]
3257
3257
  },
3258
3258
  list: {
3259
- fixed: [u.TITLE, u.USER],
3260
- optional: [u.CREATIONDATE]
3259
+ fixed: [p.TITLE, p.USER],
3260
+ optional: [p.CREATIONDATE]
3261
3261
  },
3262
3262
  filter: {
3263
- fixed: [u.TITLE, u.USER],
3264
- optional: [u.CREATIONDATE]
3263
+ fixed: [p.TITLE, p.USER],
3264
+ optional: [p.CREATIONDATE]
3265
3265
  },
3266
3266
  view: {
3267
- fixed: [u.TITLE],
3267
+ fixed: [p.TITLE],
3268
3268
  optional: []
3269
3269
  }
3270
- }, $s = [
3271
- u.TITLE,
3272
- u.USER,
3273
- u.CREATIONDATE,
3270
+ }, Gs = [
3271
+ p.TITLE,
3272
+ p.USER,
3273
+ p.CREATIONDATE,
3274
3274
  o.DESCRIPTION
3275
- ], Ii = [o.DESCRIPTION], vi = Ii, Pl = [
3276
- u.TITLE,
3277
- u.PUBLISHTO,
3278
- u.SENDALERTTOSUBSCRIBERS,
3279
- u.RECEIVEACOPY,
3280
- u.USER,
3281
- u.CREATIONDATE
3282
- ], Vs = [
3283
- u.USER,
3284
- u.TITLE
3285
- ], Hs = [o.CODEHTML], Gs = Vs.concat(Hs).concat(Ii);
3286
- var Xs = /* @__PURE__ */ ((t) => (t.Attr = "attr", t.PublishTo = "publishTo", t))(Xs || {}), Js = /* @__PURE__ */ ((t) => (t.Empty = "", t.FieldTagDescription = "Field_Tag_Description", t.FieldTitleDescription = "Field_Title_Description", t.WWWDescCOM = "www.desc.com", t))(Js || {}), I = [];
3287
- for (var ut = 0; ut < 256; ++ut)
3288
- I.push((ut + 256).toString(16).slice(1));
3289
- function Ks(t, e = 0) {
3275
+ ], Oi = [o.DESCRIPTION], Ri = Oi, $l = [
3276
+ p.TITLE,
3277
+ p.PUBLISHTO,
3278
+ p.SENDALERTTOSUBSCRIBERS,
3279
+ p.RECEIVEACOPY,
3280
+ p.USER,
3281
+ p.CREATIONDATE
3282
+ ], Xs = [
3283
+ p.USER,
3284
+ p.TITLE
3285
+ ], Js = [o.CODEHTML], Ks = Xs.concat(Js).concat(Oi);
3286
+ var Ys = /* @__PURE__ */ ((t) => (t.Attr = "attr", t.PublishTo = "publishTo", t))(Ys || {}), Qs = /* @__PURE__ */ ((t) => (t.Empty = "", t.FieldTagDescription = "Field_Tag_Description", t.FieldTitleDescription = "Field_Title_Description", t.WWWDescCOM = "www.desc.com", t))(Qs || {}), I = [];
3287
+ for (var pt = 0; pt < 256; ++pt)
3288
+ I.push((pt + 256).toString(16).slice(1));
3289
+ function zs(t, e = 0) {
3290
3290
  return (I[t[e + 0]] + I[t[e + 1]] + I[t[e + 2]] + I[t[e + 3]] + "-" + I[t[e + 4]] + I[t[e + 5]] + "-" + I[t[e + 6]] + I[t[e + 7]] + "-" + I[t[e + 8]] + I[t[e + 9]] + "-" + I[t[e + 10]] + I[t[e + 11]] + I[t[e + 12]] + I[t[e + 13]] + I[t[e + 14]] + I[t[e + 15]]).toLowerCase();
3291
3291
  }
3292
- var ae, Ys = new Uint8Array(16);
3293
- function Qs() {
3292
+ var ae, Zs = new Uint8Array(16);
3293
+ function eo() {
3294
3294
  if (!ae && (ae = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ae))
3295
3295
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
3296
- return ae(Ys);
3296
+ return ae(Zs);
3297
3297
  }
3298
- var zs = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
3299
- const ri = {
3300
- randomUUID: zs
3298
+ var to = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
3299
+ const ni = {
3300
+ randomUUID: to
3301
3301
  };
3302
3302
  function M(t, e, i) {
3303
- if (ri.randomUUID && !t)
3304
- return ri.randomUUID();
3303
+ if (ni.randomUUID && !t)
3304
+ return ni.randomUUID();
3305
3305
  t = t || {};
3306
- var a = t.random || (t.rng || Qs)();
3307
- return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Ks(a);
3306
+ var a = t.random || (t.rng || eo)();
3307
+ return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, zs(a);
3308
3308
  }
3309
- var W = /* @__PURE__ */ ((t) => (t.TITLE = "TITLE", t.IMAGE = "IMAGE", t.DESCRIPTION = "DESCRIPTION", t.IDUSER = "IDUSER", t.PUBLISHTO = "PUBLISHTO", t.SENDALERTTOSUBSCRIBERS = "SENDALERTTOSUBSCRIBERS", t.RECEIVEACOPY = "RECEIVEACOPY", t.TEXT = "TEXT", t.TEXTAREA = "TEXTAREA", t.TEXTAREAHTML = "TEXTAREAHTML", t.DATE = "DATE", t.DATETIME = "DATETIME", t.RANGE = "RANGE", t.NUMBER = "NUMBER", t.URL = "URL", t.EMAIL = "EMAIL", t.SELECT = "SELECT", t.CHECKBOX = "CHECKBOX", t.TOGGLE = "TOGGLE", t.RADIO = "RADIO", t.TAGS = "TAGS", t.ADDFILEATTACHMENT = "ADDFILEATTACHMENT", t.AUDIENCE = "AUDIENCE", t.CODEHTML = "CODEHTML", t.DATECREATION = "DATECREATION", t.USERLINK = "USERLINK", t.CONTENTLINK = "CONTENTLINK", t))(W || {});
3310
- function hi(t) {
3309
+ 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 || {});
3310
+ function Di(t) {
3311
3311
  const e = t, i = e.manifest, a = n(), r = {
3312
3312
  idApp: e.idApp,
3313
3313
  status: e.status,
@@ -3355,18 +3355,18 @@ function hi(t) {
3355
3355
  return o[c];
3356
3356
  }
3357
3357
  function l(c) {
3358
- const A = [], b = c.options && Object.prototype.hasOwnProperty.call(c, "hasDefaultValue"), L = {
3358
+ const A = [], b = c.options && Object.prototype.hasOwnProperty.call(c, "hasDefaultValue"), w = {
3359
3359
  isRequired: c.mandatory ?? !1,
3360
3360
  ...b && { isOptionsEditorEnhanced: !0 }
3361
3361
  };
3362
3362
  return c.labels && (A.push({
3363
3363
  propertyType: S.LABEL,
3364
3364
  value: c.labels.label?.content ?? "",
3365
- ...L
3365
+ ...w
3366
3366
  }), A.push({
3367
3367
  propertyType: S.DESCRIPTION,
3368
3368
  value: c.labels.description?.content ?? "",
3369
- ...L
3369
+ ...w
3370
3370
  })), c.options && A.push({
3371
3371
  propertyType: S.OPTIONS_EDITOR,
3372
3372
  value: b ? {
@@ -3376,24 +3376,24 @@ function hi(t) {
3376
3376
  canSelectMultiple: c.multiple ?? !1,
3377
3377
  userCanModifiyByComment: c.explain ?? !1
3378
3378
  } : { propertyOptions: d(c.options ?? []) },
3379
- ...L
3379
+ ...w
3380
3380
  }), c.code && A.push({
3381
3381
  propertyType: S.RICHTEXT,
3382
3382
  value: { html: c.code.html, text: c.code.text },
3383
- ...L
3383
+ ...w
3384
3384
  }), Object.prototype.hasOwnProperty.call(c, "digits") && A.push({
3385
3385
  propertyType: S.CHECKBOX,
3386
3386
  value: c.digits ?? !1,
3387
3387
  checkBoxOptions: [{ label: "APPSTUDIO_FormEditProps_Digits", value: c.digits }],
3388
- ...L
3388
+ ...w
3389
3389
  }), Object.prototype.hasOwnProperty.call(c, "taxonomy") && A.push({
3390
3390
  propertyType: S.TAXONOMY,
3391
3391
  value: c.taxonomy ?? "",
3392
- ...L
3392
+ ...w
3393
3393
  }), Object.prototype.hasOwnProperty.call(c, "contentType") && A.push({
3394
3394
  propertyType: S.CONTENTTYPE,
3395
3395
  value: c.contentType ?? "",
3396
- ...L
3396
+ ...w
3397
3397
  }), A;
3398
3398
  }
3399
3399
  function d(c) {
@@ -3418,7 +3418,7 @@ function hi(t) {
3418
3418
  function y(c) {
3419
3419
  const A = {};
3420
3420
  return c.forEach((b) => {
3421
- const L = {
3421
+ const w = {
3422
3422
  isUsed: !0,
3423
3423
  isFixed: !1,
3424
3424
  isOptional: !1,
@@ -3427,42 +3427,42 @@ function hi(t) {
3427
3427
  isLockedValue: !!b.fixedValue || !1,
3428
3428
  value: b.fixedValue ?? ""
3429
3429
  };
3430
- if (b.ref === W.TITLE)
3430
+ if (b.ref === B.TITLE)
3431
3431
  A[M()] = {
3432
- ...L,
3433
- type: u.TITLE,
3432
+ ...w,
3433
+ type: p.TITLE,
3434
3434
  isFixed: !0
3435
3435
  };
3436
- else if (b.ref === W.IDUSER)
3436
+ else if (b.ref === B.IDUSER)
3437
3437
  A[M()] = {
3438
- ...L,
3439
- type: u.USER,
3438
+ ...w,
3439
+ type: p.USER,
3440
3440
  isFixed: !0
3441
3441
  };
3442
- else if (b.ref === W.PUBLISHTO)
3442
+ else if (b.ref === B.PUBLISHTO)
3443
3443
  A[M()] = {
3444
- ...L,
3445
- type: u.PUBLISHTO,
3444
+ ...w,
3445
+ type: p.PUBLISHTO,
3446
3446
  isOptional: !0
3447
3447
  };
3448
- else if (b.ref === W.SENDALERTTOSUBSCRIBERS)
3448
+ else if (b.ref === B.SENDALERTTOSUBSCRIBERS)
3449
3449
  A[M()] = {
3450
- ...L,
3451
- type: u.SENDALERTTOSUBSCRIBERS,
3450
+ ...w,
3451
+ type: p.SENDALERTTOSUBSCRIBERS,
3452
3452
  isOptional: !0
3453
3453
  };
3454
- else if (b.ref === W.RECEIVEACOPY)
3454
+ else if (b.ref === B.RECEIVEACOPY)
3455
3455
  A[M()] = {
3456
- ...L,
3457
- type: u.RECEIVEACOPY,
3456
+ ...w,
3457
+ type: p.RECEIVEACOPY,
3458
3458
  isOptional: !0
3459
3459
  };
3460
3460
  else {
3461
- const w = m(b);
3462
- w && (A[w.id] = {
3463
- type: w.type,
3464
- ...L,
3465
- properties: w.properties ?? []
3461
+ const L = m(b);
3462
+ L && (A[L.id] = {
3463
+ type: L.type,
3464
+ ...w,
3465
+ properties: L.properties ?? []
3466
3466
  });
3467
3467
  }
3468
3468
  }), A;
@@ -3479,7 +3479,7 @@ function Z(t, e = !0) {
3479
3479
  return {
3480
3480
  id: M(),
3481
3481
  type: t,
3482
- properties: to(t),
3482
+ properties: ro(t),
3483
3483
  mandatory: !1,
3484
3484
  views: {
3485
3485
  create: e,
@@ -3496,15 +3496,15 @@ function Z(t, e = !0) {
3496
3496
  isLockedValue: !1
3497
3497
  };
3498
3498
  }
3499
- const Zs = {
3499
+ const io = {
3500
3500
  type: "taxonomyOpen",
3501
3501
  id: 1,
3502
3502
  title: "Mots-clés"
3503
- }, eo = {
3503
+ }, ao = {
3504
3504
  type: "mpArticle",
3505
3505
  label: "Article"
3506
3506
  };
3507
- function to(t) {
3507
+ function ro(t) {
3508
3508
  switch (t) {
3509
3509
  case o.TEXT:
3510
3510
  case o.DESCRIPTION:
@@ -3564,7 +3564,7 @@ function to(t) {
3564
3564
  { propertyType: S.DESCRIPTION, value: "" },
3565
3565
  {
3566
3566
  propertyType: S.TAXONOMY,
3567
- value: { ...Zs }
3567
+ value: { ...io }
3568
3568
  }
3569
3569
  ];
3570
3570
  case o.CONTENTLINK:
@@ -3573,7 +3573,7 @@ function to(t) {
3573
3573
  { propertyType: S.DESCRIPTION, value: "" },
3574
3574
  {
3575
3575
  propertyType: S.CONTENTTYPE,
3576
- value: { ...eo }
3576
+ value: { ...ao }
3577
3577
  }
3578
3578
  ];
3579
3579
  default:
@@ -3588,7 +3588,7 @@ function h(t, e) {
3588
3588
  };
3589
3589
  return i.properties[0].value = e.label, i.properties[1].value = e.description, i;
3590
3590
  }
3591
- function Oi(t) {
3591
+ function ki(t) {
3592
3592
  const e = [];
3593
3593
  return Object.keys(t).forEach((i) => {
3594
3594
  e.push({
@@ -3597,7 +3597,7 @@ function Oi(t) {
3597
3597
  });
3598
3598
  }), e;
3599
3599
  }
3600
- function io(t) {
3600
+ function no(t) {
3601
3601
  const e = {
3602
3602
  ...Z(o.ADDFILEATTACHMENT, !1),
3603
3603
  id: t.name,
@@ -3605,31 +3605,31 @@ function io(t) {
3605
3605
  };
3606
3606
  return e.properties[0].value = t.label, e;
3607
3607
  }
3608
- function ao(t) {
3608
+ function so(t) {
3609
3609
  const e = {
3610
3610
  ...Z(o.CODEHTML, !1),
3611
3611
  id: t.name
3612
3612
  }, i = t.properties.code;
3613
3613
  return typeof i == "object" && i?.html && typeof i.html == "string" ? e.properties[0].value = i.html : typeof i == "string" && (e.properties[0].value = i), e;
3614
3614
  }
3615
- function ro() {
3615
+ function oo() {
3616
3616
  return Z(o.IMAGE, !1);
3617
3617
  }
3618
- function no(t) {
3618
+ function lo(t) {
3619
3619
  const e = h(o.NUMBER, t);
3620
3620
  return e.properties[2].value = t.widget.params?.step === "0.01", e;
3621
3621
  }
3622
- function so(t) {
3622
+ function co(t) {
3623
3623
  const e = h(o.TAGS, t);
3624
3624
  return e.properties[2].value.id = +(t.widget.params?.idTaxonomy ?? 1), e;
3625
3625
  }
3626
- function oo(t) {
3626
+ function uo(t) {
3627
3627
  const e = h(o.SELECT, t), i = t.widget.params?.defaultValue ? {
3628
3628
  title: t.widget.options[t.widget.params?.defaultValue],
3629
3629
  value: t.widget.params?.defaultValue
3630
3630
  } : void 0, a = {
3631
3631
  // TODO : better typing
3632
- propertyOptions: Oi(t.widget.options),
3632
+ propertyOptions: ki(t.widget.options),
3633
3633
  canSelectMultiple: t.widget.multiple === "1",
3634
3634
  userCanModifiyByComment: t.widget.params?.explain === "1",
3635
3635
  defaultSelectOption: !!t.widget.params?.defaultValue,
@@ -3637,57 +3637,57 @@ function oo(t) {
3637
3637
  };
3638
3638
  return e.properties[2].value = a, e;
3639
3639
  }
3640
- function Ri(t) {
3640
+ function Mi(t) {
3641
3641
  const e = h(o.RADIO, t), i = {
3642
- propertyOptions: Oi(t.widget.options)
3642
+ propertyOptions: ki(t.widget.options)
3643
3643
  };
3644
3644
  return e.properties[2].value = i, e;
3645
3645
  }
3646
- function lo(t) {
3647
- const e = Ri(t);
3646
+ function po(t) {
3647
+ const e = Mi(t);
3648
3648
  return e.type = o.CHECKBOX, e;
3649
3649
  }
3650
- function co(t, e) {
3650
+ function go(t, e) {
3651
3651
  const i = h(o.CONTENTLINK, t);
3652
3652
  i.properties[2].value.type = t.widget.params.types ?? "mpArticle";
3653
- const a = e.entities === void 0 ? void 0 : { entities: e.entities }, r = a ? qr.selectors.selectById(a, i.properties[2].value.type) : void 0;
3653
+ const a = e.entities === void 0 ? void 0 : { entities: e.entities }, r = a ? Hr.selectors.selectById(a, i.properties[2].value.type) : void 0;
3654
3654
  return i.properties[2].value.label = r?.label ?? "Article", i;
3655
3655
  }
3656
- function uo(t) {
3656
+ function fo(t) {
3657
3657
  return h(o.TEXT, t);
3658
3658
  }
3659
- function po(t) {
3659
+ function mo(t) {
3660
3660
  return h(o.DESCRIPTION, t);
3661
3661
  }
3662
- function go(t) {
3662
+ function yo(t) {
3663
3663
  return h(o.TEXTAREAHTML, t);
3664
3664
  }
3665
- function fo(t) {
3665
+ function Ao(t) {
3666
3666
  return h(o.DATE, t);
3667
3667
  }
3668
- function mo(t) {
3668
+ function Eo(t) {
3669
3669
  return h(o.DATETIME, t);
3670
3670
  }
3671
- function yo(t) {
3671
+ function So(t) {
3672
3672
  return h(o.URL, t);
3673
3673
  }
3674
- function Ao(t) {
3674
+ function To(t) {
3675
3675
  return h(o.EMAIL, t);
3676
3676
  }
3677
- function Eo(t) {
3677
+ function Co(t) {
3678
3678
  return h(o.TOGGLE, t);
3679
3679
  }
3680
- function So(t) {
3680
+ function bo(t) {
3681
3681
  return h(o.USERLINK, t);
3682
3682
  }
3683
- function To(t) {
3683
+ function wo(t) {
3684
3684
  return h(o.TEXTAREA, t);
3685
3685
  }
3686
- function Co(t) {
3686
+ function Lo(t) {
3687
3687
  const { manifest: e, views: i, audience: a, installFor: r } = t;
3688
3688
  return `<?xml version='1.0' encoding='utf-8'?>
3689
3689
  <Application>
3690
- ${bo(e, i, a, r, t.idApp)}
3690
+ ${Io(e, i, a, r, t.idApp)}
3691
3691
  <Types>
3692
3692
  <objecttype
3693
3693
  label="${e.typeLabel}"
@@ -3703,14 +3703,14 @@ function Co(t) {
3703
3703
  searchtablabel="${e.typeLabel}"
3704
3704
  buttonlabel="${e.typeLabel}"
3705
3705
  extends="article">
3706
- ${vo(t.fields)}
3707
- ${ho(t.fields)}
3706
+ ${Ro(t.fields)}
3707
+ ${Do(t.fields)}
3708
3708
  </objecttype>
3709
- ${xo(t)}
3709
+ ${No(t)}
3710
3710
  </Types>
3711
3711
  </Application>`;
3712
3712
  }
3713
- function bo(t, e, i, a, r) {
3713
+ function Io(t, e, i, a, r) {
3714
3714
  return `<Manifest>
3715
3715
  <ShowImport>true</ShowImport>
3716
3716
  <AppShortName>${r}</AppShortName>
@@ -3726,67 +3726,67 @@ function bo(t, e, i, a, r) {
3726
3726
  <Editor>Jamespot</Editor>
3727
3727
  <EditorUrl>https://www.fr.jamespot.com/</EditorUrl>
3728
3728
  <Type>${r}</Type>
3729
- ${Lo(t.viewSolr, e.list)}
3730
- ${wo(e.filter)}
3731
- ${Io(i, a)}
3729
+ ${vo(t.viewSolr, e.list)}
3730
+ ${ho(e.filter)}
3731
+ ${Oo(i, a)}
3732
3732
  <Order>1</Order>
3733
3733
  </Manifest>`;
3734
3734
  }
3735
- function Lo(t, e) {
3736
- if (t === nt.SOLR) {
3735
+ function vo(t, e) {
3736
+ if (t === st.SOLR) {
3737
3737
  let i = "<AppView>solr</AppView>";
3738
3738
  const a = [];
3739
3739
  return Object.entries(e).sort((r, n) => r[1].pos - n[1].pos).forEach(([r, n]) => {
3740
- n.isUsed && ([o.IMAGE].includes(n.type) || a.push(jt(n, r)));
3740
+ n.isUsed && ([o.IMAGE].includes(n.type) || a.push(_t(n, r)));
3741
3741
  }), i += `<AppColumns>${a.join()}</AppColumns>`, i;
3742
3742
  }
3743
3743
  return "";
3744
3744
  }
3745
- function wo(t) {
3745
+ function ho(t) {
3746
3746
  const e = [];
3747
3747
  return Object.entries(t).sort((i, a) => i[1].pos - a[1].pos).forEach(([i, a]) => {
3748
3748
  if (!a.isUsed)
3749
3749
  return;
3750
- [u.TITLE, o.IMAGE].includes(a.type) || e.push(jt(a, i));
3750
+ [p.TITLE, o.IMAGE].includes(a.type) || e.push(_t(a, i));
3751
3751
  }), `<AttrExposed>${e.join()}</AttrExposed>`;
3752
3752
  }
3753
- function Di(t) {
3754
- return t === u.TITLE ? "title" : t === u.SENDALERTTOSUBSCRIBERS ? "sendAlert" : t === u.RECEIVEACOPY ? "alertAuthor" : t === u.PUBLISHTO ? "publishTo" : t === u.USER ? "idUser" : t === u.CREATIONDATE ? "dateCreation" : t === o.DESCRIPTION ? "description" : t;
3753
+ function xi(t) {
3754
+ 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;
3755
3755
  }
3756
- function jt(t, e) {
3757
- return $s.includes(t.type) ? Di(t.type) : _t(e).toLowerCase();
3756
+ function _t(t, e) {
3757
+ return Gs.includes(t.type) ? xi(t.type) : Nt(e).toLowerCase();
3758
3758
  }
3759
- function Io(t, e) {
3760
- return t === rt.ALL ? "<checkAccess>false</checkAccess>" : e.length > 0 ? `<checkAccess>true</checkAccess>
3759
+ function Oo(t, e) {
3760
+ return t === nt.ALL ? "<checkAccess>false</checkAccess>" : e.length > 0 ? `<checkAccess>true</checkAccess>
3761
3761
  <accessRightList>${e.map((i) => i.uri).join()}</accessRightList>` : "";
3762
3762
  }
3763
- function vo(t) {
3764
- const e = t?.filter((i) => vi.includes(i.type));
3765
- return e.length === 0 ? "" : `<primaryFields>${e.map((i) => It(i)).join("")}</primaryFields>`;
3763
+ function Ro(t) {
3764
+ const e = t?.filter((i) => Ri.includes(i.type));
3765
+ return e.length === 0 ? "" : `<primaryFields>${e.map((i) => vt(i)).join("")}</primaryFields>`;
3766
3766
  }
3767
- function ho(t) {
3768
- const i = t?.filter((n) => !vi.includes(n.type))?.filter((n) => n.type !== o.IMAGE);
3767
+ function Do(t) {
3768
+ const i = t?.filter((n) => !Ri.includes(n.type))?.filter((n) => n.type !== o.IMAGE);
3769
3769
  if (i.length === 0) return "";
3770
3770
  const a = i.filter(
3771
- (n) => n.type !== o.TAGS && !Gs.includes(n.type)
3771
+ (n) => n.type !== o.TAGS && !Ks.includes(n.type)
3772
3772
  ), r = i.filter((n) => n.type === o.TAGS);
3773
3773
  return `<custom>
3774
3774
  ${a.length > 0 ? `<articlemstable>
3775
- ${a.map((n) => It(n)).join("")}
3775
+ ${a.map((n) => vt(n)).join("")}
3776
3776
  </articlemstable>` : ""}
3777
3777
  ${r.length > 0 ? `<linkstable tablename="tag_links" sqlNameColumn="name" sqlSrcIdColumn="srcId" sqlSrcTypeColumn="srcType" sqlTargetIdColumn="targetId" sqlTargetTypeColumn="targetType">
3778
- ${r.map((n) => It(n)).join("")}
3778
+ ${r.map((n) => vt(n)).join("")}
3779
3779
  </linkstable>` : ""}</custom>`;
3780
3780
  }
3781
- function It(t) {
3781
+ function vt(t) {
3782
3782
  return `<field
3783
- type="${ko(t.type)}"
3784
- name="${jt(t, t.id)}"
3785
- sqlname="${Ro(t.type, t.id)}"
3786
- ${t.properties && ni(t.properties, S.LABEL)}
3787
- ${t.properties && ni(t.properties, S.DESCRIPTION)}
3783
+ type="${jo(t.type)}"
3784
+ name="${_t(t, t.id)}"
3785
+ sqlname="${Mo(t.type, t.id)}"
3786
+ ${t.properties && si(t.properties, S.LABEL)}
3787
+ ${t.properties && si(t.properties, S.DESCRIPTION)}
3788
3788
  mandatory="${t.type === o.TOGGLE ? "false" : t.mandatory}"
3789
- solr.type="${Do(t.type)}"
3789
+ solr.type="${xo(t.type)}"
3790
3790
  solr.used="true"
3791
3791
  solr.indexed="true"
3792
3792
  solr.stored="true"
@@ -3795,10 +3795,10 @@ function It(t) {
3795
3795
  teaser="true"
3796
3796
  display="true"
3797
3797
  >
3798
- ${Oo(t.type, t.properties)}
3798
+ ${ko(t.type, t.properties)}
3799
3799
  </field>`;
3800
3800
  }
3801
- function Oo(t, e) {
3801
+ function ko(t, e) {
3802
3802
  switch (t) {
3803
3803
  case o.DESCRIPTION:
3804
3804
  return '<widget form="textarea"><params><param key="class" value="mceEditor"></param><param key="mention" value="1"></param></params></widget>';
@@ -3881,7 +3881,7 @@ function Oo(t, e) {
3881
3881
  return '<widget form="url"></widget>';
3882
3882
  case o.EMAIL:
3883
3883
  return '<widget form="email"></widget>';
3884
- case u.USER:
3884
+ case p.USER:
3885
3885
  return '<widget form="idUser"></widget>';
3886
3886
  case o.USERLINK:
3887
3887
  return `<widget form="uri">
@@ -3914,7 +3914,7 @@ function Oo(t, e) {
3914
3914
  return "";
3915
3915
  }
3916
3916
  }
3917
- function ni(t, e) {
3917
+ function si(t, e) {
3918
3918
  const i = t?.find((a) => a.propertyType === e);
3919
3919
  if (i) {
3920
3920
  const a = i.value.replaceAll('"', "&quot;");
@@ -3922,17 +3922,17 @@ function ni(t, e) {
3922
3922
  }
3923
3923
  return "";
3924
3924
  }
3925
- function Ro(t, e) {
3925
+ function Mo(t, e) {
3926
3926
  switch (t) {
3927
3927
  case o.DESCRIPTION:
3928
3928
  return "Description";
3929
- case u.USER:
3929
+ case p.USER:
3930
3930
  return "IdUser";
3931
3931
  default:
3932
- return _t(e);
3932
+ return Nt(e);
3933
3933
  }
3934
3934
  }
3935
- function Do(t) {
3935
+ function xo(t) {
3936
3936
  switch (t) {
3937
3937
  case o.DESCRIPTION:
3938
3938
  case o.TEXT:
@@ -3948,7 +3948,7 @@ function Do(t) {
3948
3948
  case o.DATE:
3949
3949
  case o.DATETIME:
3950
3950
  return "date";
3951
- case u.USER:
3951
+ case p.USER:
3952
3952
  return "integer";
3953
3953
  case o.SELECT:
3954
3954
  case o.RADIO:
@@ -3960,7 +3960,7 @@ function Do(t) {
3960
3960
  return "";
3961
3961
  }
3962
3962
  }
3963
- function ko(t) {
3963
+ function jo(t) {
3964
3964
  switch (t) {
3965
3965
  default:
3966
3966
  case o.DESCRIPTION:
@@ -3973,7 +3973,7 @@ function ko(t) {
3973
3973
  case o.URL:
3974
3974
  case o.EMAIL:
3975
3975
  case o.ADDFILEATTACHMENT:
3976
- case u.USER:
3976
+ case p.USER:
3977
3977
  case o.USERLINK:
3978
3978
  case o.CONTENTLINK:
3979
3979
  return "text";
@@ -3989,58 +3989,58 @@ function ko(t) {
3989
3989
  return "float";
3990
3990
  }
3991
3991
  }
3992
- const _t = (t) => {
3992
+ const Nt = (t) => {
3993
3993
  let e = "";
3994
3994
  for (let i = 0; i < t.length; i++) {
3995
3995
  const a = t.charAt(i);
3996
- a >= "0" && a <= "9" ? e += Mo(Number(a)) : a >= "a" && a <= "z" && (e += a);
3996
+ a >= "0" && a <= "9" ? e += _o(Number(a)) : a >= "a" && a <= "z" && (e += a);
3997
3997
  }
3998
3998
  return e;
3999
- }, Mo = (t) => {
3999
+ }, _o = (t) => {
4000
4000
  let e = "", i;
4001
4001
  for (; t > 0; )
4002
4002
  i = (t - 1) % 26, e = String.fromCharCode(97 + i) + e, t = (t - i) / 26 | 0;
4003
4003
  return e;
4004
- }, si = {
4004
+ }, oi = {
4005
4005
  create: "create",
4006
4006
  popup: "create-popup",
4007
4007
  edit: "edit",
4008
4008
  view: "display"
4009
4009
  };
4010
- function xo(t) {
4010
+ function No(t) {
4011
4011
  let e = "";
4012
4012
  return Object.entries(t.views).forEach(([i, a]) => {
4013
- if (Object.prototype.hasOwnProperty.call(si, i)) {
4013
+ if (Object.prototype.hasOwnProperty.call(oi, i)) {
4014
4014
  const r = Object.entries(a).filter((n) => n[1].isUsed && (i !== "view" || n[0] !== "title")).sort((n, s) => n[1].pos - s[1].pos);
4015
- e += `<display view="${si[i]}${i === "view" && t.manifest.displayContentLegacyTable ? "Disabled" : ""}" mode="${i === "view" ? "view" : "form"}">
4016
- ${r.map(([n, s]) => _o(n, s)).join("")}
4015
+ e += `<display view="${oi[i]}${i === "view" && t.manifest.displayContentLegacyTable ? "Disabled" : ""}" mode="${i === "view" ? "view" : "form"}">
4016
+ ${r.map(([n, s]) => Uo(n, s)).join("")}
4017
4017
  </display>`;
4018
4018
  }
4019
4019
  }), e.length > 0 && (e = `<displays type="${t.idApp}">${e}</displays>`), e;
4020
4020
  }
4021
- function jo(t, e) {
4021
+ function Po(t, e) {
4022
4022
  switch (e.type) {
4023
- case u.TITLE:
4023
+ case p.TITLE:
4024
4024
  return "title";
4025
- case u.SENDALERTTOSUBSCRIBERS:
4025
+ case p.SENDALERTTOSUBSCRIBERS:
4026
4026
  return "sendAlert";
4027
- case u.RECEIVEACOPY:
4027
+ case p.RECEIVEACOPY:
4028
4028
  return "alertAuthor";
4029
- case u.PUBLISHTO:
4029
+ case p.PUBLISHTO:
4030
4030
  return "publishTo";
4031
- case u.USER:
4031
+ case p.USER:
4032
4032
  return "idUser";
4033
- case u.CREATIONDATE:
4033
+ case p.CREATIONDATE:
4034
4034
  return "dateCreation";
4035
4035
  case o.DESCRIPTION:
4036
4036
  return "description";
4037
4037
  default:
4038
- return _t(t);
4038
+ return Nt(t);
4039
4039
  }
4040
4040
  }
4041
- function _o(t, e) {
4041
+ function Uo(t, e) {
4042
4042
  let i = "";
4043
- const a = jo(t, e);
4043
+ const a = Po(t, e);
4044
4044
  if (e.isLockedValue) {
4045
4045
  const n = {
4046
4046
  ref: a,
@@ -4048,10 +4048,10 @@ function _o(t, e) {
4048
4048
  };
4049
4049
  if (i += `<html><![CDATA[ <!-- <JAMESPOT.STUDIO.FIXED>${JSON.stringify(
4050
4050
  n
4051
- )}</JAMESPOT.STUDIO.FIXED> -->`, e.type === u.PUBLISHTO) {
4051
+ )}</JAMESPOT.STUDIO.FIXED> -->`, e.type === p.PUBLISHTO) {
4052
4052
  const s = e.value.map((l) => l.uri).join(",");
4053
4053
  i += `<input type="hidden" name="publishTo" value="${s}">`;
4054
- } else if (e.type === u.USER || e.type === o.USERLINK || e.type === o.CONTENTLINK)
4054
+ } else if (e.type === p.USER || e.type === o.USERLINK || e.type === o.CONTENTLINK)
4055
4055
  i += `<input type="hidden" name="${a}[]" value=${JSON.stringify(e.value.uri)}>`;
4056
4056
  else if (e.type === o.SELECT)
4057
4057
  e.properties.find(
@@ -4077,7 +4077,7 @@ function _o(t, e) {
4077
4077
  s.getFullYear()
4078
4078
  ].join("/")} ${_(s.getHours())}:${_(s.getMinutes())}:${_(s.getSeconds())}`;
4079
4079
  i += '<input type="hidden" name="' + a + '" value="' + l + '">';
4080
- } else e.type === o.TAGS ? i += `<input type="hidden" name="${a}" value="${e.value?.map((s) => s.uri)?.join(",")}">` : e.type === o.DESCRIPTION || e.type === o.TEXTAREAHTML ? i += `<input type="hidden" name="${a}" value="${e.value}">` : e.type === u.RECEIVEACOPY ? e.value && (i += '<input type="hidden" name="alertAuthor[jamespot]"><input type="hidden" ng-model="form.alertAuthor" name="alertAuthor[]" value="1">') : e.type === u.SENDALERTTOSUBSCRIBERS ? e.value && (i += '<input type="hidden" name="sendAlert[jamespot]"><input type="hidden" ng-model="form.sendAlert" name="sendAlert[]" value="1">') : i += `<input type="hidden" name="${a}" value="${e.value}">`;
4080
+ } else e.type === o.TAGS ? i += `<input type="hidden" name="${a}" value="${e.value?.map((s) => s.uri)?.join(",")}">` : e.type === o.DESCRIPTION || e.type === o.TEXTAREAHTML ? i += `<input type="hidden" name="${a}" value="${e.value}">` : e.type === p.RECEIVEACOPY ? e.value && (i += '<input type="hidden" name="alertAuthor[jamespot]"><input type="hidden" ng-model="form.alertAuthor" name="alertAuthor[]" value="1">') : e.type === p.SENDALERTTOSUBSCRIBERS ? e.value && (i += '<input type="hidden" name="sendAlert[jamespot]"><input type="hidden" ng-model="form.sendAlert" name="sendAlert[]" value="1">') : i += `<input type="hidden" name="${a}" value="${e.value}">`;
4081
4081
  i += "]]></html>";
4082
4082
  } else
4083
4083
  switch (e.type) {
@@ -4097,7 +4097,7 @@ function _o(t, e) {
4097
4097
  case o.IMAGE:
4098
4098
  i += "<image />";
4099
4099
  break;
4100
- case u.PUBLISHTO:
4100
+ case p.PUBLISHTO:
4101
4101
  i += "<publishTo />";
4102
4102
  break;
4103
4103
  default:
@@ -4109,7 +4109,7 @@ function _o(t, e) {
4109
4109
  function _(t) {
4110
4110
  return t < 10 ? "0" + t : t;
4111
4111
  }
4112
- const ki = {
4112
+ const ji = {
4113
4113
  "create-popup": "popup",
4114
4114
  create: "create",
4115
4115
  edit: "edit",
@@ -4117,11 +4117,11 @@ const ki = {
4117
4117
  displayDisabled: "view"
4118
4118
  // appInstalled.columns => 'list' view,
4119
4119
  // appInstalled.attrExposed => 'filter' view,
4120
- }, oi = ["title", "alertAuthor", "sendAlert"], No = ["edito"];
4121
- function Mi(t, e, i) {
4120
+ }, li = ["title", "alertAuthor", "sendAlert"], Fo = ["edito"];
4121
+ function _i(t, e, i) {
4122
4122
  return Object.assign(
4123
4123
  {},
4124
- ...Mt.map((a) => {
4124
+ ...xt.map((a) => {
4125
4125
  const r = {};
4126
4126
  let n = [];
4127
4127
  q[a]?.optional !== void 0 && (n = n.concat(
@@ -4138,12 +4138,12 @@ function Mi(t, e, i) {
4138
4138
  ));
4139
4139
  });
4140
4140
  const l = new Set(s.concat(n)), d = {
4141
- [u.CREATIONDATE]: () => Fi(!1),
4142
- [u.TITLE]: () => st({ fixedValue: void 0 }),
4143
- [u.USER]: () => Ui(!1),
4144
- [u.RECEIVEACOPY]: () => _i({ fixedValue: void 0 }),
4145
- [u.SENDALERTTOSUBSCRIBERS]: () => Ni({ fixedValue: void 0 }),
4146
- [u.PUBLISHTO]: () => Pi({ fixedValue: void 0 })
4141
+ [p.CREATIONDATE]: () => qi(!1),
4142
+ [p.TITLE]: () => ot({ fixedValue: void 0 }),
4143
+ [p.USER]: () => Bi(!1),
4144
+ [p.RECEIVEACOPY]: () => Ui({ fixedValue: void 0 }),
4145
+ [p.SENDALERTTOSUBSCRIBERS]: () => Fi({ fixedValue: void 0 }),
4146
+ [p.PUBLISHTO]: () => Wi({ fixedValue: void 0 })
4147
4147
  };
4148
4148
  l.forEach((y) => {
4149
4149
  const m = d[y];
@@ -4156,42 +4156,42 @@ function Mi(t, e, i) {
4156
4156
  const g = [];
4157
4157
  return i.forEach((y, m) => {
4158
4158
  const c = y.views[a], A = Object.keys(t[a]).includes(y.id), b = y.type;
4159
- if (xt.get(b)?.includes(a))
4159
+ if (jt.get(b)?.includes(a))
4160
4160
  return;
4161
- let L;
4161
+ let w;
4162
4162
  if (b === o.CODEHTML) {
4163
- const w = y.properties?.find(
4163
+ const L = y.properties?.find(
4164
4164
  (D) => D.propertyType === S.RICHTEXT
4165
4165
  );
4166
- w?.value && (L = w?.value);
4166
+ L?.value && (w = L?.value);
4167
4167
  }
4168
4168
  if (b === o.SELECT) {
4169
- const w = y.properties?.find(
4169
+ const L = y.properties?.find(
4170
4170
  (D) => D.propertyType === S.OPTIONS_EDITOR
4171
4171
  );
4172
4172
  if (A) {
4173
4173
  const D = t[a][y.id], ee = D.properties?.find(
4174
- (Hi) => Hi.propertyType === S.OPTIONS_EDITOR
4175
- ), $i = !!w?.value?.canSelectMultiple, Vi = !!ee?.value?.canSelectMultiple;
4176
- $i === Vi && (L = D.value);
4174
+ (Ji) => Ji.propertyType === S.OPTIONS_EDITOR
4175
+ ), Gi = !!L?.value?.canSelectMultiple, Xi = !!ee?.value?.canSelectMultiple;
4176
+ Gi === Xi && (w = D.value);
4177
4177
  } else {
4178
- const ee = !!w?.isOptionsEditorEnhanced && w?.value.defaultSelectOption ? w?.value.defaultSelectOptionValue : "";
4179
- ee && (L = ee);
4178
+ const ee = !!L?.isOptionsEditorEnhanced && L?.value.defaultSelectOption ? L?.value.defaultSelectOptionValue : "";
4179
+ ee && (w = ee);
4180
4180
  }
4181
4181
  }
4182
4182
  if (A) {
4183
- const w = t[a][y.id];
4183
+ const L = t[a][y.id];
4184
4184
  r[y.id] = {
4185
- ...w,
4186
- properties: y.properties ?? w.properties ?? [],
4187
- ...L !== void 0 && { value: L },
4185
+ ...L,
4186
+ properties: y.properties ?? L.properties ?? [],
4187
+ ...w !== void 0 && { value: w },
4188
4188
  isUsed: c,
4189
- pos: e?.[a] ? m : w.pos,
4190
- isLockedValue: (L !== void 0 || w.value !== void 0) && w.isLockedValue
4189
+ pos: e?.[a] ? m : L.pos,
4190
+ isLockedValue: (w !== void 0 || L.value !== void 0) && L.isLockedValue
4191
4191
  };
4192
4192
  } else {
4193
4193
  g.push({ id: y.id, idx: m });
4194
- const w = Object.values(t[a]).filter(
4194
+ const L = Object.values(t[a]).filter(
4195
4195
  (D) => !D.isFixed && !D.isOptional
4196
4196
  ).length;
4197
4197
  r[y.id] = {
@@ -4201,15 +4201,15 @@ function Mi(t, e, i) {
4201
4201
  isOptional: !1,
4202
4202
  isLockedValue: !1,
4203
4203
  isFixed: !1,
4204
- value: L ?? null,
4205
- pos: e?.[a] ? m : w + m
4204
+ value: w ?? null,
4205
+ pos: e?.[a] ? m : L + m
4206
4206
  };
4207
4207
  }
4208
4208
  }), e?.[a] || g.forEach((y) => {
4209
4209
  const m = r[y.id];
4210
4210
  m.pos = y.idx + 1, Object.keys(r).forEach((c) => {
4211
4211
  const A = r[c];
4212
- A && !Object.values(Ws).includes(c) && c !== y.id && A.pos >= m.pos && A.pos++;
4212
+ A && !Object.values(Vs).includes(c) && c !== y.id && A.pos >= m.pos && A.pos++;
4213
4213
  });
4214
4214
  }), {
4215
4215
  [a]: r
@@ -4217,7 +4217,7 @@ function Mi(t, e, i) {
4217
4217
  })
4218
4218
  );
4219
4219
  }
4220
- function Po(t) {
4220
+ function Wo(t) {
4221
4221
  return t.map((e) => ({
4222
4222
  id: `${e.type}/${e.id}`,
4223
4223
  uri: `${e.type}/${e.id}`,
@@ -4234,14 +4234,14 @@ function Po(t) {
4234
4234
  _url: e._url
4235
4235
  }));
4236
4236
  }
4237
- function Uo(t, e, i) {
4237
+ function Bo(t, e, i) {
4238
4238
  const a = t.typeModel.tables, r = t.typeModel.displays;
4239
4239
  if (!r)
4240
4240
  return;
4241
4241
  const n = /* @__PURE__ */ new Map();
4242
4242
  Object.entries(r).forEach((s) => {
4243
4243
  const [l, d] = s;
4244
- Object.keys(ki).includes(l) && Fo(
4244
+ Object.keys(ji).includes(l) && qo(
4245
4245
  e,
4246
4246
  n,
4247
4247
  l,
@@ -4249,40 +4249,40 @@ function Uo(t, e, i) {
4249
4249
  a,
4250
4250
  i
4251
4251
  );
4252
- }), Bo(e, n, t.columns, a, i), Wo(e, n, t.attrExposed, a, i);
4252
+ }), $o(e, n, t.columns, a, i), Vo(e, n, t.attrExposed, a, i);
4253
4253
  }
4254
- function Fo(t, e, i, a, r, n) {
4255
- const s = ki[i];
4254
+ function qo(t, e, i, a, r, n) {
4255
+ const s = ji[i];
4256
4256
  if (t.views[s] = {}, s === "view") {
4257
- const [l, d] = st({ fixedValue: void 0 });
4257
+ const [l, d] = ot({ fixedValue: void 0 });
4258
4258
  t.views[s][l] = d;
4259
4259
  }
4260
4260
  a.composants.forEach((l, d) => {
4261
4261
  let g;
4262
- if (l.name && No.includes(l.name))
4262
+ if (l.name && Fo.includes(l.name))
4263
4263
  return;
4264
- const [y, m] = Vo(t, e, l, r, n);
4264
+ const [y, m] = Xo(t, e, l, r, n);
4265
4265
  if (y === -1 && m)
4266
4266
  switch (m.ref) {
4267
4267
  case "title": {
4268
4268
  if (s === "view")
4269
4269
  break;
4270
- const [c, A] = st(m);
4270
+ const [c, A] = ot(m);
4271
4271
  t.views[s][c] = A;
4272
4272
  break;
4273
4273
  }
4274
4274
  case "alertAuthor": {
4275
- const [c, A] = _i(m);
4275
+ const [c, A] = Ui(m);
4276
4276
  t.views[s][c] = A;
4277
4277
  break;
4278
4278
  }
4279
4279
  case "sendAlert": {
4280
- const [c, A] = Ni(m);
4280
+ const [c, A] = Fi(m);
4281
4281
  t.views[s][c] = A;
4282
4282
  break;
4283
4283
  }
4284
4284
  case "publishTo": {
4285
- const [c, A] = Pi(m);
4285
+ const [c, A] = Wi(m);
4286
4286
  t.views[s][c] = A;
4287
4287
  break;
4288
4288
  }
@@ -4297,65 +4297,65 @@ function Fo(t, e, i, a, r, n) {
4297
4297
  throw new Error(
4298
4298
  `error converting installed app to V2: created field not found in fields array: ${y}, ${m}`
4299
4299
  );
4300
- g.views[s] = !0, ji(s, g, t, d, m);
4300
+ g.views[s] = !0, Pi(s, g, t, d, m);
4301
4301
  }
4302
4302
  });
4303
4303
  }
4304
- function Bo(t, e, i, a, r) {
4304
+ function $o(t, e, i, a, r) {
4305
4305
  i && Object.keys(i).forEach((n, s) => {
4306
- xi(t, e, a, "list", n, s, r);
4306
+ Ni(t, e, a, "list", n, s, r);
4307
4307
  });
4308
4308
  }
4309
- function Wo(t, e, i, a, r) {
4309
+ function Vo(t, e, i, a, r) {
4310
4310
  i.forEach((n, s) => {
4311
- xi(t, e, a, "filter", n, s, r);
4311
+ Ni(t, e, a, "filter", n, s, r);
4312
4312
  });
4313
4313
  }
4314
- function xi(t, e, i, a, r, n, s) {
4314
+ function Ni(t, e, i, a, r, n, s) {
4315
4315
  switch (r) {
4316
4316
  case "title": {
4317
- const [l, d] = st({ fixedValue: void 0 });
4317
+ const [l, d] = ot({ fixedValue: void 0 });
4318
4318
  t.views[a][l] = d;
4319
4319
  break;
4320
4320
  }
4321
4321
  case "iduser":
4322
4322
  case "idUser": {
4323
- const [l, d] = Ui();
4323
+ const [l, d] = Bi();
4324
4324
  t.views[a][l] = d;
4325
4325
  break;
4326
4326
  }
4327
4327
  case "datecreation":
4328
4328
  case "dateCreation": {
4329
- const [l, d] = Fi();
4329
+ const [l, d] = qi();
4330
4330
  t.views[a][l] = d;
4331
4331
  break;
4332
4332
  }
4333
4333
  default:
4334
- qo(t, e, i, a, r, n, s);
4334
+ Ho(t, e, i, a, r, n, s);
4335
4335
  break;
4336
4336
  }
4337
4337
  }
4338
- function qo(t, e, i, a, r, n, s) {
4339
- const l = $o(t, e, i, r, s), d = t.fields[l];
4338
+ function Ho(t, e, i, a, r, n, s) {
4339
+ const l = Go(t, e, i, r, s), d = t.fields[l];
4340
4340
  if (!d?.views)
4341
4341
  throw new Error(`error converting installed app to V2: unable to handle ${r} in list view`);
4342
- d.views[a] = !0, ji(a, d, t, n, void 0);
4342
+ d.views[a] = !0, Pi(a, d, t, n, void 0);
4343
4343
  }
4344
- function $o(t, e, i, a, r) {
4344
+ function Go(t, e, i, a, r) {
4345
4345
  const n = e.get(a);
4346
4346
  if (n !== void 0)
4347
4347
  return n;
4348
- const [s, l] = vt(t, a, i, r);
4348
+ const [s, l] = ht(t, a, i, r);
4349
4349
  return e.set(s, l), l;
4350
4350
  }
4351
- function Vo(t, e, i, a, r) {
4351
+ function Xo(t, e, i, a, r) {
4352
4352
  if (i.name !== void 0 && i.element === "attr") {
4353
- if (oi.includes(i.name))
4353
+ if (li.includes(i.name))
4354
4354
  return [-1, { ref: i.name, fixedValue: void 0 }];
4355
4355
  const n = e.get(i.name);
4356
4356
  if (n !== void 0)
4357
4357
  return [n, void 0];
4358
- const [s, l] = vt(t, i.name, a, r);
4358
+ const [s, l] = ht(t, i.name, a, r);
4359
4359
  return e.set(s, l), [l, void 0];
4360
4360
  } else if (i.element === "html") {
4361
4361
  const n = i.html;
@@ -4365,16 +4365,16 @@ function Vo(t, e, i, a, r) {
4365
4365
  const s = n.indexOf("<JAMESPOT.STUDIO.FIXED>") + 23, l = n.indexOf("</JAMESPOT.STUDIO.FIXED>"), d = n.substring(s, l);
4366
4366
  try {
4367
4367
  const g = JSON.parse(d);
4368
- if (g?.ref.toUpperCase() in u) {
4368
+ if (g?.ref.toUpperCase() in p) {
4369
4369
  const A = g.ref.toUpperCase();
4370
- return [-1, { ...g, ref: Di(A) }];
4370
+ return [-1, { ...g, ref: xi(A) }];
4371
4371
  }
4372
- if (oi.includes(g?.ref))
4372
+ if (li.includes(g?.ref))
4373
4373
  return [-1, g];
4374
4374
  const y = e.get(g?.ref);
4375
4375
  if (y !== void 0)
4376
4376
  return [y, g];
4377
- const [m, c] = vt(t, g.ref, a, r);
4377
+ const [m, c] = ht(t, g.ref, a, r);
4378
4378
  return e.set(m, c), [c, g];
4379
4379
  } catch {
4380
4380
  return console.error("error while parsing studio installed fixed attr in a view: json parsing failed"), [-1, void 0];
@@ -4384,7 +4384,7 @@ function Vo(t, e, i, a, r) {
4384
4384
  const s = n.indexOf("<JAMESPOT.STUDIO.CODEHTML>") + 26, l = n.indexOf("</JAMESPOT.STUDIO.CODEHTML>"), d = n.substring(s, l), g = JSON.parse(d), y = e.get(g?.name);
4385
4385
  if (y !== void 0)
4386
4386
  return [y, void 0];
4387
- const m = ao(g), c = t.fields.push(m) - 1;
4387
+ const m = so(g), c = t.fields.push(m) - 1;
4388
4388
  return e.set(m.id, c), [c, void 0];
4389
4389
  } catch {
4390
4390
  return console.error("error while parsing studio installed codehtml attr in a view: json parsing failed"), [-1, void 0];
@@ -4395,53 +4395,53 @@ function Vo(t, e, i, a, r) {
4395
4395
  const n = e.get("image");
4396
4396
  if (n !== void 0)
4397
4397
  return [n, void 0];
4398
- const s = ro(), l = t.fields.push(s) - 1;
4398
+ const s = oo(), l = t.fields.push(s) - 1;
4399
4399
  return e.set("image", l), [l, void 0];
4400
4400
  } else return i.element === "publishTo" ? [-1, { ref: "publishTo", fixedValue: void 0 }] : (console.error("error while parsing studio installed attr in a view: unknown attr :O"), [-1, void 0]);
4401
4401
  }
4402
- function vt(t, e, i, a) {
4403
- const r = Ho(e, i), n = Go(r), s = (function() {
4402
+ function ht(t, e, i, a) {
4403
+ const r = Jo(e, i), n = Ko(r), s = (function() {
4404
4404
  switch (n) {
4405
4405
  case o.ADDFILEATTACHMENT:
4406
- return io(r);
4407
- case o.NUMBER:
4408
4406
  return no(r);
4407
+ case o.NUMBER:
4408
+ return lo(r);
4409
4409
  case o.TAGS:
4410
- return so(r);
4410
+ return co(r);
4411
4411
  case o.SELECT:
4412
- return oo(r);
4412
+ return uo(r);
4413
4413
  case o.RADIO:
4414
- return Ri(r);
4414
+ return Mi(r);
4415
4415
  case o.CHECKBOX:
4416
- return lo(r);
4416
+ return po(r);
4417
4417
  case o.CONTENTLINK:
4418
- return co(r, a);
4418
+ return go(r, a);
4419
4419
  case o.DESCRIPTION:
4420
- return po(r);
4420
+ return mo(r);
4421
4421
  case o.TEXTAREAHTML:
4422
- return go(r);
4422
+ return yo(r);
4423
4423
  case o.DATE:
4424
- return fo(r);
4424
+ return Ao(r);
4425
4425
  case o.DATETIME:
4426
- return mo(r);
4426
+ return Eo(r);
4427
4427
  case o.URL:
4428
- return yo(r);
4428
+ return So(r);
4429
4429
  case o.EMAIL:
4430
- return Ao(r);
4430
+ return To(r);
4431
4431
  case o.TOGGLE:
4432
- return Eo(r);
4432
+ return Co(r);
4433
4433
  case o.USERLINK:
4434
- return So(r);
4434
+ return bo(r);
4435
4435
  case o.TEXTAREA:
4436
- return To(r);
4436
+ return wo(r);
4437
4437
  case o.TEXT:
4438
4438
  default:
4439
- return uo(r);
4439
+ return fo(r);
4440
4440
  }
4441
4441
  })(), l = t.fields.push(s) - 1;
4442
4442
  return [e, l];
4443
4443
  }
4444
- function Ho(t, e) {
4444
+ function Jo(t, e) {
4445
4445
  let i;
4446
4446
  for (let a = 0; a < e.length && !i; a++)
4447
4447
  i = e[a]?.attributes.find((r) => r.name === t);
@@ -4449,7 +4449,7 @@ function Ho(t, e) {
4449
4449
  throw new Error("error converting installed app to V2: installed field not found in tables " + t);
4450
4450
  return i;
4451
4451
  }
4452
- function ji(t, e, i, a, r) {
4452
+ function Pi(t, e, i, a, r) {
4453
4453
  e.views && (e.views[t] = !0, i.views[t][e.id] = {
4454
4454
  type: e.type,
4455
4455
  properties: e.properties ?? [],
@@ -4461,7 +4461,7 @@ function ji(t, e, i, a, r) {
4461
4461
  pos: a
4462
4462
  });
4463
4463
  }
4464
- function Go(t) {
4464
+ function Ko(t) {
4465
4465
  switch (t.widget.type) {
4466
4466
  case "number":
4467
4467
  return o.NUMBER;
@@ -4502,11 +4502,11 @@ function Go(t) {
4502
4502
  "error converting installed app to V2: installed field type not recognized for field " + t.name + ":" + JSON.stringify(t)
4503
4503
  );
4504
4504
  }
4505
- function st(t, e = !0) {
4505
+ function ot(t, e = !0) {
4506
4506
  return [
4507
4507
  "title",
4508
4508
  {
4509
- type: u.TITLE,
4509
+ type: p.TITLE,
4510
4510
  properties: [],
4511
4511
  isUsed: e,
4512
4512
  isOptional: !1,
@@ -4517,11 +4517,11 @@ function st(t, e = !0) {
4517
4517
  }
4518
4518
  ];
4519
4519
  }
4520
- function _i(t, e = !0) {
4520
+ function Ui(t, e = !0) {
4521
4521
  return [
4522
4522
  "alertAuthor",
4523
4523
  {
4524
- type: u.RECEIVEACOPY,
4524
+ type: p.RECEIVEACOPY,
4525
4525
  properties: [],
4526
4526
  isUsed: e,
4527
4527
  isOptional: !0,
@@ -4532,11 +4532,11 @@ function _i(t, e = !0) {
4532
4532
  }
4533
4533
  ];
4534
4534
  }
4535
- function Ni(t, e = !0) {
4535
+ function Fi(t, e = !0) {
4536
4536
  return [
4537
4537
  "sendAlert",
4538
4538
  {
4539
- type: u.SENDALERTTOSUBSCRIBERS,
4539
+ type: p.SENDALERTTOSUBSCRIBERS,
4540
4540
  properties: [],
4541
4541
  isUsed: e,
4542
4542
  isOptional: !0,
@@ -4547,11 +4547,11 @@ function Ni(t, e = !0) {
4547
4547
  }
4548
4548
  ];
4549
4549
  }
4550
- function Pi(t, e = !0) {
4550
+ function Wi(t, e = !0) {
4551
4551
  return [
4552
4552
  "publishTo",
4553
4553
  {
4554
- type: u.PUBLISHTO,
4554
+ type: p.PUBLISHTO,
4555
4555
  properties: [],
4556
4556
  isUsed: e,
4557
4557
  isOptional: !0,
@@ -4562,11 +4562,11 @@ function Pi(t, e = !0) {
4562
4562
  }
4563
4563
  ];
4564
4564
  }
4565
- function Ui(t = !0) {
4565
+ function Bi(t = !0) {
4566
4566
  return [
4567
4567
  "user",
4568
4568
  {
4569
- type: u.USER,
4569
+ type: p.USER,
4570
4570
  properties: [],
4571
4571
  isUsed: t,
4572
4572
  isOptional: !1,
@@ -4577,11 +4577,11 @@ function Ui(t = !0) {
4577
4577
  }
4578
4578
  ];
4579
4579
  }
4580
- function Fi(t = !0) {
4580
+ function qi(t = !0) {
4581
4581
  return [
4582
4582
  "dateCreation",
4583
4583
  {
4584
- type: u.CREATIONDATE,
4584
+ type: p.CREATIONDATE,
4585
4585
  properties: [],
4586
4586
  isUsed: t,
4587
4587
  isOptional: !0,
@@ -4592,15 +4592,15 @@ function Fi(t = !0) {
4592
4592
  }
4593
4593
  ];
4594
4594
  }
4595
- function Xo(t, e, i) {
4595
+ function Yo(t, e, i) {
4596
4596
  const { version: a, dateCreation: r } = t.manifest, n = t.typeModel, s = Object.assign(
4597
4597
  {},
4598
- ...Mt.map((m) => ({
4598
+ ...xt.map((m) => ({
4599
4599
  [m]: {}
4600
4600
  }))
4601
4601
  ), l = t, d = {
4602
4602
  idApp: t.idApp,
4603
- status: ht(t),
4603
+ status: Ot(t),
4604
4604
  studioVersion: 2,
4605
4605
  manifest: {
4606
4606
  appShortName: t.label,
@@ -4614,7 +4614,7 @@ function Xo(t, e, i) {
4614
4614
  checkAccess: !1,
4615
4615
  accessRightList: "",
4616
4616
  attrExposed: [],
4617
- viewSolr: t.view ? nt.SOLR : nt.NOT_SOLR,
4617
+ viewSolr: t.view ? st.SOLR : st.NOT_SOLR,
4618
4618
  typeLabel: n.typeLabel,
4619
4619
  articlesCount: t.articlesCount ?? 0,
4620
4620
  displayContentLegacyTable: !!l?.typeModel?.displays?.displayDisabled
@@ -4622,64 +4622,64 @@ function Xo(t, e, i) {
4622
4622
  fields: [],
4623
4623
  views: s,
4624
4624
  // TODO: weird cast
4625
- installFor: t.accessRightObjectList ? Po(t.accessRightObjectList) : [],
4626
- audience: t.checkAccess === !1 ? rt.ALL : rt.CUSTOM
4625
+ installFor: t.accessRightObjectList ? Wo(t.accessRightObjectList) : [],
4626
+ audience: t.checkAccess === !1 ? nt.ALL : nt.CUSTOM
4627
4627
  };
4628
- Uo(t, d, i), d.views = Mi(d.views, d.syncViewFieldOrder, d.fields);
4629
- const g = Jo(t.idApp, e);
4628
+ Bo(t, d, i), d.views = _i(d.views, d.syncViewFieldOrder, d.fields);
4629
+ const g = Qo(t.idApp, e);
4630
4630
  if (!g) return d;
4631
- const y = Bi(g);
4631
+ const y = $i(g);
4632
4632
  return y && (d.inWorkVersion = y), d;
4633
4633
  }
4634
- function Bi(t) {
4634
+ function $i(t) {
4635
4635
  if (!t.value) return;
4636
4636
  const e = JSON.parse(t.value);
4637
4637
  return e.studioVersion == 2 ? {
4638
4638
  idApp: t.idApp,
4639
4639
  studioVersion: 2,
4640
- status: ht(t),
4640
+ status: Ot(t),
4641
4641
  manifest: e.manifest,
4642
4642
  fields: e.fields,
4643
4643
  views: e.views,
4644
4644
  syncViewFieldOrder: e.syncViewFieldOrder,
4645
4645
  audience: e.audience,
4646
4646
  installFor: e.installFor
4647
- } : { ...hi(e), status: ht(t), migratedFrom: 1 };
4647
+ } : { ...Di(e), status: Ot(t), migratedFrom: 1 };
4648
4648
  }
4649
- function ht(t) {
4650
- return t.status === dt.installed ? t.suspended ? V.suspended : V.installed : V.draft;
4649
+ function Ot(t) {
4650
+ return t.status === ct.installed ? t.suspended ? V.suspended : V.installed : V.draft;
4651
4651
  }
4652
- function Jo(t, e) {
4653
- return e.find((a) => a.idApp === t && a.status === dt.saved);
4652
+ function Qo(t, e) {
4653
+ return e.find((a) => a.idApp === t && a.status === ct.saved);
4654
4654
  }
4655
- function Ko(t, e) {
4656
- return !!e.find((i) => i.idApp === t && i.status === dt.installed);
4655
+ function zo(t, e) {
4656
+ return !!e.find((i) => i.idApp === t && i.status === ct.installed);
4657
4657
  }
4658
- function Wi(t, e) {
4658
+ function Vi(t, e) {
4659
4659
  return t.map((a) => {
4660
4660
  try {
4661
- return a.status === dt.installed ? Xo(a, t, e) : Ko(a.idApp, t) ? void 0 : Bi(a);
4661
+ return a.status === ct.installed ? Yo(a, t, e) : zo(a.idApp, t) ? void 0 : $i(a);
4662
4662
  } catch (r) {
4663
4663
  console.error(r);
4664
4664
  return;
4665
4665
  }
4666
4666
  }).filter((a) => a !== void 0);
4667
4667
  }
4668
- const Yo = {
4668
+ const Zo = {
4669
4669
  currentStudioApp: null,
4670
4670
  fetchCurrentStudioAppStatus: "idle",
4671
4671
  saveCurrentStudioAppStatus: "idle",
4672
4672
  installStudioAppStatus: "idle",
4673
4673
  hasChanged: !1
4674
- }, He = p("studio/fetchCurrentStudioApp", async ({ idApp: t, status: e }, { extra: i, rejectWithValue: a, getState: r }) => {
4674
+ }, He = u("studio/fetchCurrentStudioApp", async ({ idApp: t, status: e }, { extra: i, rejectWithValue: a, getState: r }) => {
4675
4675
  const n = i.jApi, s = { error: 1, errorMsg: "Error fetching application" };
4676
4676
  try {
4677
- const l = (await n.application.studioGet(t, e)).result, d = Wi([l], r())[0];
4677
+ const l = (await n.application.studioGet(t, e)).result, d = Vi([l], r())[0];
4678
4678
  return d || a(s);
4679
4679
  } catch {
4680
4680
  return a(s);
4681
4681
  }
4682
- }), Ge = p(
4682
+ }), Ge = u(
4683
4683
  "studio/saveCurrentStudioApp",
4684
4684
  async (t, { extra: e, rejectWithValue: i, getState: a, dispatch: r }) => {
4685
4685
  const n = e.jApi, s = { error: 1, errorMsg: "Error saving application" }, l = a().studio.currentStudioApp.currentStudioApp;
@@ -4693,20 +4693,20 @@ const Yo = {
4693
4693
  return r(f.actions.error({ label: E(g) })), i(s);
4694
4694
  }
4695
4695
  }
4696
- ), Xe = p("studio/installApp", async ({ callback: t }, { extra: e, rejectWithValue: i, getState: a, dispatch: r }) => {
4696
+ ), Xe = u("studio/installApp", async ({ callback: t }, { extra: e, rejectWithValue: i, getState: a, dispatch: r }) => {
4697
4697
  const n = e.jApi, s = { error: 1, errorMsg: "Error saving application" }, l = a().studio.currentStudioApp.currentStudioApp;
4698
4698
  if (!l)
4699
4699
  return i(s);
4700
- const d = Co(l);
4700
+ const d = Lo(l);
4701
4701
  try {
4702
4702
  await n.application.studioInstall(d), r(f.actions.success({ label: "APPSTUDIO_AppItem_Installed" })), t && t();
4703
4703
  return;
4704
4704
  } catch (g) {
4705
4705
  return r(f.actions.error({ label: E(g) })), i(s);
4706
4706
  }
4707
- }), ot = T({
4707
+ }), lt = T({
4708
4708
  name: "currentStudioApp",
4709
- initialState: Yo,
4709
+ initialState: Zo,
4710
4710
  reducers: {
4711
4711
  setCurrentApp: (t, e) => {
4712
4712
  t.currentStudioApp = e.payload;
@@ -4740,8 +4740,8 @@ const Yo = {
4740
4740
  });
4741
4741
  }
4742
4742
  });
4743
- function qi(t, e, i) {
4744
- const a = t.studioVersion !== 2 ? JSON.parse(JSON.stringify(hi(t))) : JSON.parse(JSON.stringify(t));
4743
+ function Hi(t, e, i) {
4744
+ const a = t.studioVersion !== 2 ? JSON.parse(JSON.stringify(Di(t))) : JSON.parse(JSON.stringify(t));
4745
4745
  if (delete a.inWorkVersion, i)
4746
4746
  a.manifest.version = a.manifest.version + 0.1;
4747
4747
  else {
@@ -4758,10 +4758,10 @@ function qi(t, e, i) {
4758
4758
  }
4759
4759
  return [a, a.idApp];
4760
4760
  }
4761
- function Qo({ author: t, appName: e }) {
4761
+ function el({ author: t, appName: e }) {
4762
4762
  const i = M(), a = Object.assign(
4763
4763
  {},
4764
- ...Mt.map((r) => {
4764
+ ...xt.map((r) => {
4765
4765
  const n = {};
4766
4766
  return q[r]?.fixed.forEach((s, l) => {
4767
4767
  n[M()] = {
@@ -4810,7 +4810,7 @@ function Qo({ author: t, appName: e }) {
4810
4810
  },
4811
4811
  version: 0.1,
4812
4812
  dateCreation: (/* @__PURE__ */ new Date()).toISOString(),
4813
- viewSolr: nt.SOLR,
4813
+ viewSolr: st.SOLR,
4814
4814
  checkAccess: !1,
4815
4815
  accessRightList: "",
4816
4816
  attrExposed: [],
@@ -4826,7 +4826,7 @@ function Qo({ author: t, appName: e }) {
4826
4826
  },
4827
4827
  fields: [],
4828
4828
  views: a,
4829
- audience: rt.CUSTOM,
4829
+ audience: nt.CUSTOM,
4830
4830
  installFor: []
4831
4831
  }
4832
4832
  };
@@ -4834,7 +4834,7 @@ function Qo({ author: t, appName: e }) {
4834
4834
  function re(t, e) {
4835
4835
  return t.manifest.appName > e.manifest.appName ? 1 : -1;
4836
4836
  }
4837
- const zo = {
4837
+ const tl = {
4838
4838
  loadingStudioAppsList: "idle",
4839
4839
  deleteStudioAppStatus: "idle",
4840
4840
  suspendStudioAppStatus: "idle",
@@ -4842,7 +4842,7 @@ const zo = {
4842
4842
  cloneStudioAppStatus: "idle",
4843
4843
  createInWorkAppStatus: "idle",
4844
4844
  createNewStudioAppStatus: "idle"
4845
- }, Je = p("studio/appsList", async (t, { extra: e, rejectWithValue: i, dispatch: a, getState: r }) => {
4845
+ }, Je = u("studio/appsList", async (t, { extra: e, rejectWithValue: i, dispatch: a, getState: r }) => {
4846
4846
  const n = e.jApi;
4847
4847
  try {
4848
4848
  const { result: s } = await n.application.studioList(), l = await n.taxonomy.list(), g = (await Promise.allSettled(
@@ -4850,15 +4850,15 @@ const zo = {
4850
4850
  const c = (await n.application.studioGet(m.idApp, m.status)).result, A = (await n.article.count(m.idApp)).result;
4851
4851
  return { ...c, articlesCount: A };
4852
4852
  })
4853
- )).map((m) => m.status === "fulfilled" ? m.value : null).reduce((m, c) => c !== null ? m.concat([c]) : m, []), y = Wi(g, r());
4853
+ )).map((m) => m.status === "fulfilled" ? m.value : null).reduce((m, c) => c !== null ? m.concat([c]) : m, []), y = Vi(g, r());
4854
4854
  return y.forEach(async (m) => {
4855
- m.fields = li(m.fields, l, t), m.inWorkVersion && (m.inWorkVersion.fields = li(m.inWorkVersion.fields, l, t));
4855
+ m.fields = di(m.fields, l, t), m.inWorkVersion && (m.inWorkVersion.fields = di(m.inWorkVersion.fields, l, t));
4856
4856
  }), y;
4857
4857
  } catch (s) {
4858
4858
  throw console.error(s), a(f.actions.error({ label: E(s) })), i({ error: 1, errorMsg: "Error retrieving applications" });
4859
4859
  }
4860
4860
  });
4861
- function li(t, e, i) {
4861
+ function di(t, e, i) {
4862
4862
  return t.map((a) => {
4863
4863
  if (a.type !== o.TAGS)
4864
4864
  return a;
@@ -4866,14 +4866,14 @@ function li(t, e, i) {
4866
4866
  return s && n && (n.value.title = i.formatMessage({ id: s.title }), n.value.type = s.type), r;
4867
4867
  });
4868
4868
  }
4869
- const Ke = p("studio/createApp", async ({ appName: t, callback: e }, { extra: i, dispatch: a, rejectWithValue: r, getState: n }) => {
4870
- const s = i.jApi, l = n().userCurrent?.uri, { newAppId: d, newStudioApp: g } = Qo({ appName: t, ...l && { author: l } });
4869
+ const Ke = u("studio/createApp", async ({ appName: t, callback: e }, { extra: i, dispatch: a, rejectWithValue: r, getState: n }) => {
4870
+ const s = i.jApi, l = n().userCurrent?.uri, { newAppId: d, newStudioApp: g } = el({ appName: t, ...l && { author: l } });
4871
4871
  try {
4872
- return await s.application.studioSave(d, JSON.stringify(g), "saved"), a(f.actions.success({ label: "APPSTUDIO_StudioApp_Created" })), a(ot.actions.setCurrentApp(g)), e && e(), g;
4872
+ 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;
4873
4873
  } catch (y) {
4874
4874
  throw a(f.actions.error({ label: E(y) })), r({ error: 1, errorMsg: "Error creating application" });
4875
4875
  }
4876
- }), Ye = p("studio/deleteApp", async ({ idApp: t, status: e }, { extra: i, rejectWithValue: a, dispatch: r }) => {
4876
+ }), Ye = u("studio/deleteApp", async ({ idApp: t, status: e }, { extra: i, rejectWithValue: a, dispatch: r }) => {
4877
4877
  const n = i.jApi;
4878
4878
  try {
4879
4879
  const s = await n.application.studioDelete(t, e);
@@ -4881,7 +4881,7 @@ const Ke = p("studio/createApp", async ({ appName: t, callback: e }, { extra: i,
4881
4881
  } catch (s) {
4882
4882
  return r(f.actions.error({ label: E(s) })), a({ error: 1, errorMsg: "Error deleting application" });
4883
4883
  }
4884
- }), Qe = p(
4884
+ }), Qe = u(
4885
4885
  "studio/suspendStudioApp",
4886
4886
  async ({ idApp: t }, { extra: e, rejectWithValue: i, dispatch: a }) => {
4887
4887
  const r = e.jApi;
@@ -4891,7 +4891,7 @@ const Ke = p("studio/createApp", async ({ appName: t, callback: e }, { extra: i,
4891
4891
  throw a(f.actions.error({ label: E(n) })), i({ error: 1, errorMsg: "Error suspending application" });
4892
4892
  }
4893
4893
  }
4894
- ), ze = p(
4894
+ ), ze = u(
4895
4895
  "studio/restartStudioApp",
4896
4896
  async ({ idApp: t }, { extra: e, rejectWithValue: i, dispatch: a }) => {
4897
4897
  const r = e.jApi;
@@ -4901,7 +4901,7 @@ const Ke = p("studio/createApp", async ({ appName: t, callback: e }, { extra: i,
4901
4901
  throw a(f.actions.error({ label: E(n) })), i({ error: 1, errorMsg: "Error restarting application" });
4902
4902
  }
4903
4903
  }
4904
- ), Ze = p("studio/cloneStudioApp", async ({ idApp: t, inWork: e }, { extra: i, getState: a, rejectWithValue: r, dispatch: n }) => {
4904
+ ), Ze = u("studio/cloneStudioApp", async ({ idApp: t, inWork: e }, { extra: i, getState: a, rejectWithValue: r, dispatch: n }) => {
4905
4905
  const s = i.jApi;
4906
4906
  let l = a().studio.studioAppsList.studioAppsList?.find((c) => c.idApp === t);
4907
4907
  if (!l) return r({ error: 1, errorMsg: "Error cloning application" });
@@ -4910,25 +4910,25 @@ const Ke = p("studio/createApp", async ({ appName: t, callback: e }, { extra: i,
4910
4910
  l = l.inWorkVersion;
4911
4911
  else
4912
4912
  return r({ error: 1, errorMsg: "Error cloning application" });
4913
- const d = a().userCurrent?.uri, [g, y] = qi(l, d), m = JSON.stringify(g);
4913
+ const d = a().userCurrent?.uri, [g, y] = Hi(l, d), m = JSON.stringify(g);
4914
4914
  try {
4915
4915
  return await s.application.studioSave(y, m, "saved"), n(f.actions.success({ label: "APPSTUDIO_AppItem_Cloned" })), g;
4916
4916
  } catch (c) {
4917
4917
  return n(f.actions.error({ label: E(c) })), r({ error: 1, errorMsg: "Error cloning application" });
4918
4918
  }
4919
- }), et = p("studio/createInWorkStudioApp", async ({ idApp: t }, { extra: e, getState: i, rejectWithValue: a, dispatch: r }) => {
4919
+ }), et = u("studio/createInWorkStudioApp", async ({ idApp: t }, { extra: e, getState: i, rejectWithValue: a, dispatch: r }) => {
4920
4920
  const n = e.jApi, s = i().studio.studioAppsList.studioAppsList?.find((m) => m.idApp === t);
4921
4921
  if (!s || ![k.INSTALLED, k.SUSPENDED].includes(s.status))
4922
4922
  return a({ error: 1, errorMsg: "Error cloning application" });
4923
- const l = i().userCurrent?.uri, [d, g] = qi(s, l, !0), y = JSON.stringify(d);
4923
+ const l = i().userCurrent?.uri, [d, g] = Hi(s, l, !0), y = JSON.stringify(d);
4924
4924
  try {
4925
4925
  return await n.application.studioSave(g, y, "saved"), r(f.actions.success({ label: "APPSTUDIO_AppItem_CreateInWork" })), d;
4926
4926
  } catch (m) {
4927
4927
  return r(f.actions.error({ label: E(m) })), a({ error: 1, errorMsg: "Error creating in work version for application" });
4928
4928
  }
4929
- }), Ot = T({
4929
+ }), Rt = T({
4930
4930
  name: "studioAppsList",
4931
- initialState: zo,
4931
+ initialState: tl,
4932
4932
  reducers: {
4933
4933
  setAppsList: (t, e) => {
4934
4934
  t.studioAppsList = [...e.payload].sort(re);
@@ -4991,24 +4991,24 @@ const Ke = p("studio/createApp", async ({ appName: t, callback: e }, { extra: i,
4991
4991
  e.createNewStudioAppStatus === "pending" && (e.createNewStudioAppStatus = "idle");
4992
4992
  });
4993
4993
  }
4994
- }), Zo = O({
4995
- [Ot.name]: Ot.reducer,
4996
- [ot.name]: ot.reducer
4994
+ }), il = O({
4995
+ [Rt.name]: Rt.reducer,
4996
+ [lt.name]: lt.reducer
4997
4997
  });
4998
- function el(t) {
4998
+ function al(t) {
4999
4999
  return t.studio.studioAppsList;
5000
5000
  }
5001
- function tl(t) {
5001
+ function rl(t) {
5002
5002
  return t.studio.currentStudioApp;
5003
5003
  }
5004
- const il = {
5004
+ const nl = {
5005
5005
  name: "studio",
5006
- reducer: Zo
5007
- }, Ul = {
5008
- slice: il,
5006
+ reducer: il
5007
+ }, Vl = {
5008
+ slice: nl,
5009
5009
  actions: {
5010
- ...Ot.actions,
5011
- ...ot.actions,
5010
+ ...Rt.actions,
5011
+ ...lt.actions,
5012
5012
  fetchStudioAppsList: Je,
5013
5013
  deleteStudioApp: Ye,
5014
5014
  suspendStudioApp: Qe,
@@ -5021,71 +5021,111 @@ const il = {
5021
5021
  createInWorkStudioApp: et
5022
5022
  },
5023
5023
  selectors: {
5024
- selectStudioAppsList: el,
5025
- selectCurrentStudioApp: tl
5024
+ selectStudioAppsList: al,
5025
+ selectCurrentStudioApp: rl
5026
5026
  },
5027
5027
  utils: {
5028
- updateViewsFromFields: Mi,
5028
+ updateViewsFromFields: _i,
5029
5029
  generateNewFormField: Z
5030
5030
  }
5031
+ }, tt = u("wall/fetchWallFilters", async (t, { extra: e, rejectWithValue: i }) => {
5032
+ try {
5033
+ return (await e.jApi.wall.getFilters()).result;
5034
+ } catch (a) {
5035
+ return i(a);
5036
+ }
5037
+ }), ci = {
5038
+ filters: [],
5039
+ taxonomies: [],
5040
+ loading: "idle"
5041
+ }, ui = T({
5042
+ name: "wall",
5043
+ initialState: ci,
5044
+ reducers: {
5045
+ setFilters: (t, e) => {
5046
+ t.filters = e.payload;
5047
+ },
5048
+ setLoading: (t, e) => {
5049
+ t.loading = e.payload;
5050
+ },
5051
+ reset: () => ci
5052
+ },
5053
+ extraReducers: (t) => {
5054
+ t.addCase(tt.pending, (e) => {
5055
+ e.loading = "pending";
5056
+ }), t.addCase(tt.fulfilled, (e, i) => {
5057
+ e.loading = "idle", e.filters = i.payload.filterList, e.taxonomies = i.payload.taxonomies;
5058
+ }), t.addCase(tt.rejected, (e) => {
5059
+ e.loading = "idle";
5060
+ });
5061
+ }
5062
+ }), sl = (t) => t.wall, ol = (t) => t.wall.filters, ll = (t) => t.wall.taxonomies, Hl = {
5063
+ slice: ui,
5064
+ actions: { ...ui.actions, fetchWallFilters: tt },
5065
+ selectors: {
5066
+ selectWall: sl,
5067
+ selectWallFilters: ol,
5068
+ selectWallFiltersTaxonomies: ll
5069
+ }
5031
5070
  };
5032
5071
  export {
5033
5072
  k as APP_STATUS_TYPE,
5034
- rt as AUDIENCE,
5035
- ol as AdminLogs,
5036
- dl as Animations,
5037
- $s as AppColumnsDefaultTypes,
5073
+ nt as AUDIENCE,
5074
+ gl as AdminLogs,
5075
+ ml as Animations,
5076
+ Gs as AppColumnsDefaultTypes,
5038
5077
  S as AppFieldFormPropertyTypes,
5039
- xt as AppFormBannedFromViews,
5040
- Hs as AppFormFieldOnlyInView,
5041
- Pl as AppFormFixedList,
5078
+ jt as AppFormBannedFromViews,
5079
+ Js as AppFormFieldOnlyInView,
5080
+ $l as AppFormFixedList,
5042
5081
  o as AppFormItemTypes,
5043
- Vs as AppFormNoAsFieldList,
5044
- Gs as AppFormNonPrimaryList,
5045
- vi as AppFormPrimaryListValues,
5046
- Nl as AppFormUniqueListCheck,
5047
- cl as Application,
5048
- nl as Article,
5049
- ul as AssetReservation,
5050
- gl as Bookmark,
5051
- fl as Calendar,
5052
- ml as Comment,
5053
- pl as ContentReport,
5054
- Js as Description,
5055
- Xs as Element,
5056
- Ws as ExtraAppFieldsItemName,
5057
- u as ExtraAppFieldsItemViews,
5058
- yl as ExtraBot,
5059
- Al as Faq,
5060
- El as FileIntegrity,
5061
- Kt as FileIntegritySlice,
5062
- Sl as Hook,
5063
- Cl as MagicPad,
5082
+ Xs as AppFormNoAsFieldList,
5083
+ Ks as AppFormNonPrimaryList,
5084
+ Ri as AppFormPrimaryListValues,
5085
+ ql as AppFormUniqueListCheck,
5086
+ yl as Application,
5087
+ ul as Article,
5088
+ Al as AssetReservation,
5089
+ Sl as Bookmark,
5090
+ Tl as Calendar,
5091
+ Cl as Comment,
5092
+ El as ContentReport,
5093
+ Qs as Description,
5094
+ Ys as Element,
5095
+ Vs as ExtraAppFieldsItemName,
5096
+ p as ExtraAppFieldsItemViews,
5097
+ bl as ExtraBot,
5098
+ wl as Faq,
5099
+ Ll as FileIntegrity,
5100
+ Yt as FileIntegritySlice,
5101
+ Il as Hook,
5102
+ hl as MagicPad,
5064
5103
  q as MapExtraFieldsWithView,
5065
- Ll as MediaLibrary,
5066
- qr as Model,
5067
- wl as Network,
5068
- Il as Platform,
5069
- nt as STUDIO_VIEW,
5070
- hl as Share,
5071
- _l as SocialActions,
5104
+ Rl as MediaLibrary,
5105
+ Hr as Model,
5106
+ Dl as Network,
5107
+ kl as Platform,
5108
+ st as STUDIO_VIEW,
5109
+ xl as Share,
5110
+ Bl as SocialActions,
5072
5111
  V as StatusType,
5073
- Dl as TVDisplay,
5074
- Rl as TeamWork,
5075
- kl as TinyMCE,
5112
+ Nl as TVDisplay,
5113
+ _l as TeamWork,
5114
+ Pl as TinyMCE,
5076
5115
  f as Toast,
5077
- Ml as UserCurrent,
5078
- vl as WedocApp,
5079
- _s as Widget,
5080
- jl as WidgetEditor,
5081
- Yi as actions,
5082
- sl as adminLogsReducer,
5083
- ci as adminLogsSlice,
5084
- ll as animationsReducer,
5085
- ui as animationsSlice,
5086
- Ma as contentReportSlice,
5116
+ Ul as UserCurrent,
5117
+ Hl as Wall,
5118
+ Ml as WedocApp,
5119
+ Us as Widget,
5120
+ Wl as WidgetEditor,
5121
+ Zi as actions,
5122
+ pl as adminLogsReducer,
5123
+ gi as adminLogsSlice,
5124
+ fl as animationsReducer,
5125
+ fi as animationsSlice,
5126
+ _a as contentReportSlice,
5087
5127
  Re as deleteQuarantine,
5088
- Gt as extraBotSlice,
5128
+ Xt as extraBotSlice,
5089
5129
  J as fetchExtraBotListAll,
5090
5130
  be as fetchExtraBotListMines,
5091
5131
  he as fetchFileIntegrityList,
@@ -5094,27 +5134,33 @@ export {
5094
5134
  Fe as fetchMediaLibraryFilesStats,
5095
5135
  je as fetchMediaLibraryFolders,
5096
5136
  Ue as fetchMediaLibraryFoldersStats,
5097
- Be as fetchMediaLibraryStats,
5137
+ We as fetchMediaLibraryStats,
5098
5138
  Ne as fetchMediaLibraryUnclassifiedFiles,
5099
5139
  xe as fetchPads,
5100
5140
  me as fetchReports,
5101
- Tl as jland,
5102
- Lr as magicPadSlice,
5103
- bl as mediaLibraryReducer,
5104
- Ai as mediaLibrarySlice,
5141
+ tt as fetchWallFilters,
5142
+ ci as initialState,
5143
+ vl as jland,
5144
+ vr as magicPadSlice,
5145
+ Ol as mediaLibraryReducer,
5146
+ Ti as mediaLibrarySlice,
5105
5147
  Oe as releaseQuarantine,
5106
- we as saveExtraBot,
5107
- tr as selectExtraBotListAll,
5108
- ir as selectExtraBotListMines,
5109
- cr as selectFileIntegrityAction,
5110
- ur as selectFileIntegrityList,
5111
- ti as slice,
5112
- Ul as studio,
5113
- Ti as teamWorkSlice,
5114
- Ol as teamworkReducer,
5115
- Le as toggleExtraBotActivation,
5116
- er as updateListBotProperty,
5148
+ Le as saveExtraBot,
5149
+ rr as selectExtraBotListAll,
5150
+ nr as selectExtraBotListMines,
5151
+ gr as selectFileIntegrityAction,
5152
+ fr as selectFileIntegrityList,
5153
+ sl as selectWall,
5154
+ ol as selectWallFilters,
5155
+ ll as selectWallFiltersTaxonomies,
5156
+ ii as slice,
5157
+ Vl as studio,
5158
+ wi as teamWorkSlice,
5159
+ jl as teamworkReducer,
5160
+ we as toggleExtraBotActivation,
5161
+ ar as updateListBotProperty,
5117
5162
  ye as updateStatus,
5118
- xl as updateWidgetContent,
5119
- Mt as viewsList
5163
+ Fl as updateWidgetContent,
5164
+ xt as viewsList,
5165
+ ui as wallSlice
5120
5166
  };