jamespot-front-business 1.3.19 → 1.3.21

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.
@@ -10,7 +10,7 @@ const Qi = function(t) {
10
10
  }
11
11
  }
12
12
  ];
13
- }, ul = {
13
+ }, pl = {
14
14
  getArticleRTHandlers: Qi
15
15
  }, v = (t) => !!t && typeof t == "object" && "aborted" in t && !!t.aborted, E = (t, e) => !t || typeof t != "object" ? e ?? "GLOBAL_Technical_Error" : "errorMsg" in t && typeof t.errorMsg == "string" ? t.errorMsg : "message" in t && typeof t.message == "string" ? t.message : e ?? "GLOBAL_Technical_Error", ne = dt({
16
16
  selectId: (t) => t.id
@@ -189,7 +189,7 @@ const Qi = function(t) {
189
189
  }), gi = {
190
190
  name: "adminLogs",
191
191
  reducer: ca
192
- }, pl = gi.reducer, gl = {
192
+ }, gl = gi.reducer, fl = {
193
193
  slice: gi,
194
194
  actions: {
195
195
  ...ft.actions,
@@ -340,7 +340,7 @@ const Qi = function(t) {
340
340
  }), fi = {
341
341
  name: "animations",
342
342
  reducer: Ca
343
- }, fl = fi.reducer, ml = {
343
+ }, ml = fi.reducer, yl = {
344
344
  slice: fi,
345
345
  actions: {
346
346
  saveCurrentAnimation: ga,
@@ -372,7 +372,7 @@ const Qi = function(t) {
372
372
  W.setAll(e, i.payload.result);
373
373
  });
374
374
  }
375
- }), ba = W.getSelectors((t) => t.entities.applications), yl = {
375
+ }), ba = W.getSelectors((t) => t.entities.applications), Al = {
376
376
  slice: $t,
377
377
  actions: { fetchList: mi, ...$t.actions },
378
378
  selectors: ba
@@ -479,14 +479,14 @@ const Qi = function(t) {
479
479
  }), ha = {
480
480
  name: "assetReservation",
481
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 = {
482
+ }, Oa = (t) => t.assetReservation.configuration, Ra = (t) => t.assetReservation.bookableAsset.entities, ka = (t) => t.assetReservation.bookableAsset.loading, Da = (t) => t.assetReservation.reservation.entities, Ma = (t) => t.assetReservation.reservation.loading, xa = (t) => t.assetReservation.reservation.form, El = {
483
483
  slice: ha,
484
484
  actions: { ...At.actions, fetchBookableAsset: pe, fetchConfiguration: ge, fetchReservation: fe },
485
485
  selectors: {
486
486
  configuration: Oa,
487
487
  bookableAssetEntities: Ra,
488
- bookableAssetLoading: Da,
489
- reservationEntities: ka,
488
+ bookableAssetLoading: ka,
489
+ reservationEntities: Da,
490
490
  reservationLoading: Ma,
491
491
  reservationForm: xa
492
492
  }
@@ -563,7 +563,7 @@ const Qi = function(t) {
563
563
  } catch (r) {
564
564
  return v(r) || e(f.actions.error({ label: E(r) })), i({ error: 1, errorMsg: "Cannot fetch pads" });
565
565
  }
566
- }), Na = (t) => t.contentReport, El = {
566
+ }), Na = (t) => t.contentReport, Sl = {
567
567
  slice: _a,
568
568
  actions: {
569
569
  fetchReports: me,
@@ -770,7 +770,7 @@ const Qi = function(t) {
770
770
  }), Ba = {
771
771
  name: "bookmark",
772
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 = {
773
+ }, qa = (t) => t.bookmark.bookmarkList, $a = (t) => t.bookmark.bookmarkList.isInitialized, Va = (t) => t.bookmark.bookmarkEdit.bookmark, Ha = (t, e) => t.bookmark.bookmarkList.bookmarks.find((i) => i.targetId === e), Tl = {
774
774
  slice: Ba,
775
775
  actions: {
776
776
  fetchBookmark: $,
@@ -978,7 +978,7 @@ const Ai = (t, e, i = 500) => {
978
978
  }), Ja = {
979
979
  name: "calendar",
980
980
  reducer: Xa
981
- }, Ka = (t) => t.calendar.events, Tl = {
981
+ }, Ka = (t) => t.calendar.events, Cl = {
982
982
  slice: Ja,
983
983
  actions: {
984
984
  fetchEvents: j,
@@ -1115,7 +1115,7 @@ const Ai = (t, e, i = 500) => {
1115
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
- }, Cl = {
1118
+ }, bl = {
1119
1119
  slice: er,
1120
1120
  actions: { fetchComments: P, deleteComment: St, ...Tt.actions },
1121
1121
  selectors: {
@@ -1293,7 +1293,7 @@ const Ai = (t, e, i = 500) => {
1293
1293
  e.global.loading = "idle";
1294
1294
  });
1295
1295
  }
1296
- }), rr = (t) => t.extraBot.listAll, nr = (t) => t.extraBot.listMines, bl = {
1296
+ }), rr = (t) => t.extraBot.listAll, nr = (t) => t.extraBot.listMines, wl = {
1297
1297
  slice: Xt,
1298
1298
  actions: {
1299
1299
  fetchExtraBotListAll: J,
@@ -1362,7 +1362,7 @@ const Ai = (t, e, i = 500) => {
1362
1362
  }), dr = {
1363
1363
  name: "faq",
1364
1364
  reducer: lr
1365
- }, cr = (t) => t.faq.config, ur = (t) => t.faq.categories, wl = {
1365
+ }, cr = (t) => t.faq.config, ur = (t) => t.faq.categories, Ll = {
1366
1366
  slice: dr,
1367
1367
  actions: {
1368
1368
  fetchFaqConfig: Ie,
@@ -1458,7 +1458,7 @@ const Ai = (t, e, i = 500) => {
1458
1458
  e.action.loading = "idle";
1459
1459
  });
1460
1460
  }
1461
- }), gr = (t) => t.fileIntegrity.action, fr = (t) => t.fileIntegrity.list, Ll = {
1461
+ }), gr = (t) => t.fileIntegrity.action, fr = (t) => t.fileIntegrity.list, Il = {
1462
1462
  slice: Yt,
1463
1463
  actions: {
1464
1464
  deleteQuarantine: Re,
@@ -1473,19 +1473,19 @@ const Ai = (t, e, i = 500) => {
1473
1473
  reducers: {
1474
1474
  initHooks: (t, { payload: e }) => e
1475
1475
  }
1476
- }), yr = (t) => t.hooks, Ar = (t, e) => t.hooks[e], Er = (t, e) => !!t.hooks[e]?.hasLicense, Il = {
1476
+ }), yr = (t) => t.hooks, Ar = (t, e) => t.hooks[e], Er = (t, e) => !!t.hooks[e]?.hasLicense, vl = {
1477
1477
  slice: Qt,
1478
1478
  actions: Qt.actions,
1479
1479
  selectors: { selectHooks: yr, selectHook: Ar, hasHookLicense: Er },
1480
1480
  utils: { buildDrivesArrayFromObject: mr }
1481
- }, Dt = (t) => {
1481
+ }, kt = (t) => {
1482
1482
  const e = t.urlToJland;
1483
1483
  if (!e)
1484
1484
  return;
1485
1485
  const i = /(https:\/\/[^/]+)\/.*/g.exec(e);
1486
1486
  if (i)
1487
1487
  return i[1];
1488
- }, kt = (t, e, i) => `${i}/map/${e}/${t.uri}`, U = u("/fetchMaps", async ({ jlandUrlBase: t, retrieveAllMaps: e }, { extra: i }) => {
1488
+ }, Dt = (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,7 +1497,7 @@ const Ai = (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 = kt(c, r, t), A;
1500
+ return A.urlToJland = Dt(c, r, t), A;
1501
1501
  });
1502
1502
  n(m);
1503
1503
  }).catch((g) => {
@@ -1523,8 +1523,8 @@ const Ai = (t, e, i = 500) => {
1523
1523
  });
1524
1524
  });
1525
1525
  }
1526
- ), De = u("/unassignLicense", async ({ map: t, retrieveAllMaps: e }, { extra: i, dispatch: a }) => {
1527
- const r = i.jApi, n = Dt(t);
1526
+ ), ke = u("/unassignLicense", async ({ map: t, retrieveAllMaps: e }, { extra: i, dispatch: a }) => {
1527
+ const r = i.jApi, n = kt(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 Ai = (t, e, i = 500) => {
1536
1536
  l({ error: 1, errorMsg: "Error unassign license" });
1537
1537
  });
1538
1538
  }) : !1;
1539
- }), ke = u("/deleteLicense", async ({ map: t, retrieveAllMaps: e }, { extra: i, dispatch: a }) => {
1540
- const r = i.jApi, n = Dt(t);
1539
+ }), De = u("/deleteLicense", async ({ map: t, retrieveAllMaps: e }, { extra: i, dispatch: a }) => {
1540
+ const r = i.jApi, n = kt(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());
@@ -1550,7 +1550,7 @@ const Ai = (t, e, i = 500) => {
1550
1550
  });
1551
1551
  }) : !1;
1552
1552
  }), Y = u("/assignLicense", async ({ map: t, retrieveAllMaps: e }, { extra: i, dispatch: a }) => {
1553
- const r = Dt(t);
1553
+ const r = kt(t);
1554
1554
  if (!r)
1555
1555
  return !1;
1556
1556
  const n = i.jApi;
@@ -1595,17 +1595,17 @@ const Ai = (t, e, i = 500) => {
1595
1595
  e.loadingLicenseOperation[i.meta.arg.map.id] === "pending" && (e.loadingLicenseOperation[i.meta.arg.map.id] = void 0);
1596
1596
  }).addCase(Y.rejected, (e, i) => {
1597
1597
  e.loadingLicenseOperation[i.meta.arg.map.id] === "pending" && (e.loadingLicenseOperation[i.meta.arg.map.id] = void 0);
1598
- }).addCase(De.pending, (e, i) => {
1598
+ }).addCase(ke.pending, (e, i) => {
1599
1599
  e.loadingLicenseOperation[i.meta.arg.map.id] ??= "pending";
1600
- }).addCase(De.fulfilled, (e, i) => {
1600
+ }).addCase(ke.fulfilled, (e, i) => {
1601
1601
  e.loadingLicenseOperation[i.meta.arg.map.id] === "pending" && (e.loadingLicenseOperation[i.meta.arg.map.id] = void 0);
1602
- }).addCase(De.rejected, (e, i) => {
1602
+ }).addCase(ke.rejected, (e, i) => {
1603
1603
  e.loadingLicenseOperation[i.meta.arg.map.id] === "pending" && (e.loadingLicenseOperation[i.meta.arg.map.id] = void 0);
1604
- }).addCase(ke.pending, (e) => {
1604
+ }).addCase(De.pending, (e) => {
1605
1605
  e.loadingMapDeletion = "pending";
1606
- }).addCase(ke.fulfilled, (e) => {
1606
+ }).addCase(De.fulfilled, (e) => {
1607
1607
  e.loadingMapDeletion === "pending" && (e.loadingMapDeletion = "idle");
1608
- }).addCase(ke.rejected, (e) => {
1608
+ }).addCase(De.rejected, (e) => {
1609
1609
  e.loadingMapDeletion === "pending" && (e.loadingMapDeletion = "idle");
1610
1610
  });
1611
1611
  }
@@ -1641,7 +1641,7 @@ const Ai = (t, e, i = 500) => {
1641
1641
  const g = d.result[0] ? { ...d.result[0], urlToJland: void 0 } : void 0;
1642
1642
  if (t.assignLicense && g !== void 0) {
1643
1643
  const y = await n.network.getHostname();
1644
- g.urlToJland = kt(g, y, e), a(Y({ map: g, retrieveAllMaps: !1 }));
1644
+ g.urlToJland = Dt(g, y, e), a(Y({ map: g, retrieveAllMaps: !1 }));
1645
1645
  }
1646
1646
  s(d.result);
1647
1647
  }).catch(() => {
@@ -1678,13 +1678,13 @@ const Ai = (t, e, i = 500) => {
1678
1678
  }), Lr = {
1679
1679
  name: "jland",
1680
1680
  reducer: wr
1681
- }, vl = {
1681
+ }, hl = {
1682
1682
  slice: Lr,
1683
1683
  actions: {
1684
1684
  ...Ct.actions,
1685
1685
  assignLicense: Y,
1686
- unassignLicense: De,
1687
- deleteJlandMap: ke,
1686
+ unassignLicense: ke,
1687
+ deleteJlandMap: De,
1688
1688
  fetchJLandMaps: U,
1689
1689
  fetchJLandAvailableLicenses: F,
1690
1690
  createMap: Me
@@ -1694,7 +1694,7 @@ const Ai = (t, e, i = 500) => {
1694
1694
  selectJLandAvailableLicenses: Cr,
1695
1695
  selectMapCreate: br
1696
1696
  },
1697
- utils: { buildUrlToJland: kt }
1697
+ utils: { buildUrlToJland: Dt }
1698
1698
  }, Ir = {
1699
1699
  loading: "idle",
1700
1700
  pads: [],
@@ -1759,7 +1759,7 @@ const Ai = (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
- }), hr = (t) => t.magicPad, hl = {
1762
+ }), hr = (t) => t.magicPad, Ol = {
1763
1763
  slice: vr,
1764
1764
  actions: {
1765
1765
  fetchPads: xe
@@ -1768,7 +1768,7 @@ const Ai = (t, e, i = 500) => {
1768
1768
  }, bt = {
1769
1769
  typeMediaLibraryFolder: "mediaLibraryFolder",
1770
1770
  typeMediaLibraryFile: "mediaLibraryFile"
1771
- }, Or = 18, Rr = 12, Dr = 18, kr = {
1771
+ }, Or = 18, Rr = 12, kr = 18, Dr = {
1772
1772
  loading: "idle",
1773
1773
  nbResults: 0,
1774
1774
  query: "",
@@ -1782,7 +1782,7 @@ const Ai = (t, e, i = 500) => {
1782
1782
  filesStats: { loading: !1, pager: null }
1783
1783
  }, Ti = T({
1784
1784
  name: "mediaLibrary",
1785
- initialState: kr,
1785
+ initialState: Dr,
1786
1786
  reducers: {
1787
1787
  removeFileFromFolder(t, e) {
1788
1788
  return {
@@ -1870,7 +1870,7 @@ const Ai = (t, e, i = 500) => {
1870
1870
  const n = {
1871
1871
  type: bt.typeMediaLibraryFile,
1872
1872
  page: e,
1873
- limit: Dr,
1873
+ limit: kr,
1874
1874
  filters: [
1875
1875
  {
1876
1876
  name: "mediaLibraryFolderOrientedLinks",
@@ -1933,7 +1933,7 @@ const Ai = (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
- ), 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 = {
1936
+ ), Mr = (t) => t.mediaLibrary, xr = (t) => t.mediaLibrary.stats, jr = (t) => t.mediaLibrary.foldersStats, _r = (t) => t.mediaLibrary.filesStats, Nr = (t) => t.mediaLibrary.folders, Pr = (t) => t.mediaLibrary.foldersAll, Ur = (t) => t.mediaLibrary.folderFiles, Fr = (t) => t.mediaLibrary.unclassifiedFiles, Rl = Ti.reducer, kl = {
1937
1937
  slice: Ti,
1938
1938
  actions: {
1939
1939
  fetchMediaLibraryFolders: je,
@@ -2064,7 +2064,7 @@ const Ai = (t, e, i = 500) => {
2064
2064
  }), en = {
2065
2065
  name: "platform",
2066
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 = {
2067
+ }, tn = (t) => t.platform.config, an = (t) => t.platform.config.userHighlightFields, rn = (t) => t.platform.config.userAccountStatus, nn = (t) => t.platform.config.urlBase, Ml = {
2068
2068
  slice: en,
2069
2069
  actions: {
2070
2070
  ...Ci.actions
@@ -2132,7 +2132,7 @@ const Ai = (t, e, i = 500) => {
2132
2132
  e.loadingRecent = "idle";
2133
2133
  });
2134
2134
  }
2135
- }), Ml = {
2135
+ }), xl = {
2136
2136
  slice: on,
2137
2137
  selectors: {
2138
2138
  getFiles: (t) => ({
@@ -2174,7 +2174,7 @@ const Ai = (t, e, i = 500) => {
2174
2174
  e.loading = "idle";
2175
2175
  });
2176
2176
  }
2177
- }), xl = {
2177
+ }), jl = {
2178
2178
  slice: dn,
2179
2179
  selectors: {
2180
2180
  requests: (t) => ({
@@ -2186,49 +2186,64 @@ const Ai = (t, e, i = 500) => {
2186
2186
  fetchRequest: $e
2187
2187
  }
2188
2188
  }, cn = {
2189
- message: void 0,
2190
- status: "idle"
2189
+ messages: [],
2190
+ status: "idle",
2191
+ tasks: void 0,
2192
+ jobUid: void 0
2191
2193
  }, rt = T({
2192
- name: "teamWorkToDo",
2194
+ name: "teamWorkAiTasks",
2193
2195
  initialState: cn,
2194
2196
  reducers: {
2195
2197
  setMessageAndStatus: (t, e) => {
2196
- const { status: i, message: a } = e.payload;
2197
- t.status = i, t.message = a;
2198
+ if (e.payload.jobUid !== t.jobUid)
2199
+ return;
2200
+ const { status: i, messages: a } = e.payload;
2201
+ t.status = i, t.messages = a;
2202
+ },
2203
+ setTasks: (t, e) => {
2204
+ e.payload.jobUid === t.jobUid && (t.tasks = e.payload.tasks);
2198
2205
  }
2199
2206
  },
2200
2207
  extraReducers: (t) => {
2201
2208
  t.addCase(Lt.fulfilled, (e, i) => {
2202
- i.payload ? e.status = "processing" : e.status = "error";
2209
+ e.status = i.payload.state, e.messages = i.payload.messages, e.tasks = i.payload.tasks, e.jobUid = i.payload.jobUid;
2203
2210
  }), t.addCase(Lt.rejected, (e, i) => {
2204
- e.status = "error", e.message = i.payload?.errorMsg ?? "GLOBAL_Technical_Error";
2211
+ e.status = "error", e.messages = [i.payload?.errorMsg ?? "GLOBAL_Technical_Error"];
2205
2212
  });
2206
2213
  }
2207
2214
  }), Lt = u(
2208
- "teamWork/startToDoCreation",
2215
+ "teamWork/Ai/startToDoCreation",
2209
2216
  async (t, { extra: e, rejectWithValue: i, dispatch: a, signal: r }) => {
2210
2217
  try {
2211
- return (await e.jApi.teamWork.aiGeneratedToDo({ signal: r })).result;
2218
+ return (await e.jApi.teamWorkAi.generateToDo({ forceGeneration: t }, { signal: r })).result;
2212
2219
  } catch (n) {
2213
2220
  return v(n) || a(f.actions.error({ label: E(n) })), i({ error: 1, errorMsg: "APP_TEAMWORK_ToDo_Not_Sent" });
2214
2221
  }
2215
2222
  }
2216
2223
  ), un = function(t) {
2224
+ const e = function(i) {
2225
+ i.namespace === "TEAMWORK" && i.function === "updateTodo" && (t(
2226
+ rt.actions.setMessageAndStatus({ status: i.state, messages: i.messages, jobUid: i.jobUid })
2227
+ ), i.state === "success" && t(fn.actions.setTasks({ tasks: i.tasks, jobUid: i.jobUid })));
2228
+ };
2217
2229
  return [
2218
2230
  {
2219
2231
  namespace: "TEAMWORK",
2220
- function: "update",
2221
- handler: function(i) {
2222
- i.namespace === "TEAMWORK" && i.function === "update" && t(rt.actions.setMessageAndStatus({ status: i.state, message: i.msg }));
2223
- }
2232
+ function: "updateTodo",
2233
+ handler: e
2234
+ },
2235
+ {
2236
+ namespace: "TEAMWORK",
2237
+ function: "updateNotifSummary",
2238
+ handler: e
2224
2239
  }
2225
2240
  ];
2226
- }, pn = (t) => t.teamWork.teamWorkToDo, gn = O({
2241
+ }, pn = (t) => t.teamWork.teamWorkAiTasks, gn = O({
2227
2242
  [rt.name]: rt.reducer
2228
2243
  }), wi = {
2229
2244
  name: "teamWork",
2230
2245
  reducer: gn
2231
- }, jl = wi.reducer, _l = {
2246
+ }, _l = wi.reducer, fn = {
2232
2247
  slice: wi,
2233
2248
  actions: {
2234
2249
  ...rt.actions,
@@ -2236,7 +2251,7 @@ const Ai = (t, e, i = 500) => {
2236
2251
  },
2237
2252
  selectors: { selectToDoState: pn },
2238
2253
  getTeamWorkRTHandlers: un
2239
- }, fn = {
2254
+ }, mn = {
2240
2255
  channels: void 0,
2241
2256
  loading: "idle",
2242
2257
  loadingChannelDeletion: "idle"
@@ -2270,7 +2285,7 @@ const Ai = (t, e, i = 500) => {
2270
2285
  });
2271
2286
  }), ti = T({
2272
2287
  name: "channelsList",
2273
- initialState: { ...fn },
2288
+ initialState: { ...mn },
2274
2289
  reducers: {},
2275
2290
  extraReducers: (t) => {
2276
2291
  t.addCase(Q.pending, (e) => {
@@ -2288,49 +2303,49 @@ const Ai = (t, e, i = 500) => {
2288
2303
  });
2289
2304
  }
2290
2305
  });
2291
- function mn(t) {
2306
+ function yn(t) {
2292
2307
  return t.tvChannelType === "DYNAMIC" ? !!t.tvChannelBackgroundColor && !!t.tvChannelGroupTarget : t.tvChannelNumImages !== 0;
2293
2308
  }
2294
- const yn = O({
2309
+ const An = O({
2295
2310
  [ti.name]: ti.reducer
2296
- }), An = {
2311
+ }), En = {
2297
2312
  name: "tvDisplay",
2298
- reducer: yn
2299
- }, En = function(e) {
2313
+ reducer: An
2314
+ }, Sn = function(e) {
2300
2315
  return e.tvDisplay.channelsList;
2301
2316
  }, Nl = {
2302
- slice: An,
2317
+ slice: En,
2303
2318
  actions: {
2304
2319
  fetchChannels: Q,
2305
2320
  deleteChannel: Ve
2306
2321
  },
2307
2322
  selectors: {
2308
- selectChannelsList: En
2323
+ selectChannelsList: Sn
2309
2324
  },
2310
2325
  utils: {
2311
- isChannelConfigured: mn
2326
+ isChannelConfigured: yn
2312
2327
  }
2313
- }, Sn = {}, It = T({
2328
+ }, Tn = {}, It = T({
2314
2329
  name: "options",
2315
- initialState: Sn,
2330
+ initialState: Tn,
2316
2331
  reducers: {
2317
2332
  initOptions: (t, { payload: e }) => e
2318
2333
  }
2319
- }), Tn = O({
2334
+ }), Cn = O({
2320
2335
  [It.name]: It.reducer
2321
- }), Cn = {
2336
+ }), bn = {
2322
2337
  name: "tinymce",
2323
- reducer: Tn
2324
- }, bn = (t) => t.tinymce.options.common, wn = (t) => t.tinymce.options.extended, Pl = {
2325
- slice: Cn,
2338
+ reducer: Cn
2339
+ }, wn = (t) => t.tinymce.options.common, Ln = (t) => t.tinymce.options.extended, Pl = {
2340
+ slice: bn,
2326
2341
  actions: {
2327
2342
  ...It.actions
2328
2343
  },
2329
2344
  selectors: {
2330
- selectTinyMCECommonOptions: bn,
2331
- selectTinyMCEExtendedOptions: wn
2345
+ selectTinyMCECommonOptions: wn,
2346
+ selectTinyMCEExtendedOptions: Ln
2332
2347
  }
2333
- }, Ln = {
2348
+ }, In = {
2334
2349
  id: 0,
2335
2350
  mainType: "user",
2336
2351
  type: "user",
@@ -2343,17 +2358,17 @@ const yn = O({
2343
2358
  active: 1
2344
2359
  }, ii = T({
2345
2360
  name: "userCurrent",
2346
- initialState: Ln,
2361
+ initialState: In,
2347
2362
  reducers: {
2348
2363
  init: (t, { payload: e }) => e
2349
2364
  }
2350
- }), In = (t) => t.userCurrent, vn = (t) => t.level === Yi.ADMIN, hn = (t) => t.id !== 0, Ul = {
2365
+ }), vn = (t) => t.userCurrent, hn = (t) => t.level === Yi.ADMIN, On = (t) => t.id !== 0, Ul = {
2351
2366
  slice: ii,
2352
2367
  actions: { ...ii.actions },
2353
2368
  selectors: {
2354
- get: In
2369
+ get: vn
2355
2370
  },
2356
- utils: { isAdmin: vn, isLogged: hn }
2371
+ utils: { isAdmin: hn, isLogged: On }
2357
2372
  };
2358
2373
  function Mt() {
2359
2374
  let t = "";
@@ -2361,13 +2376,13 @@ function Mt() {
2361
2376
  t += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
2362
2377
  return t;
2363
2378
  }
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({
2379
+ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDGET_Quick_Survey", hi = "WIDGET_Quick_Survey_Text", Rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2365
2380
  __proto__: null,
2366
2381
  WIDGET_CHECK_LIST_DESCRIPTION: Ii,
2367
2382
  WIDGET_CHECK_LIST_LABEL: Li,
2368
2383
  WIDGET_QUICK_SURVEY_DESCRIPTION: hi,
2369
2384
  WIDGET_QUICK_SURVEY_LABEL: vi
2370
- }, Symbol.toStringTag, { value: "Module" })), Rn = {
2385
+ }, Symbol.toStringTag, { value: "Module" })), kn = {
2371
2386
  label: "WIDGET_Article_Attachment",
2372
2387
  description: "WIDGET_Article_Attachment_Description",
2373
2388
  name: C.ArticleAttachment,
@@ -2381,7 +2396,7 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2381
2396
  }
2382
2397
  }, Dn = {
2383
2398
  files: []
2384
- }, kn = {
2399
+ }, Mn = {
2385
2400
  label: "WIDGET_BUTTON",
2386
2401
  description: "WIDGET_Button_Description",
2387
2402
  name: C.ArticleButton,
@@ -2393,7 +2408,7 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2393
2408
  useSelection: !1,
2394
2409
  useWidgets: !1
2395
2410
  }
2396
- }, Mn = {
2411
+ }, xn = {
2397
2412
  text: "",
2398
2413
  openingType: "link",
2399
2414
  openingTypeLink: {
@@ -2418,11 +2433,11 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2418
2433
  useSelection: !1,
2419
2434
  useWidgets: !1
2420
2435
  }
2421
- }, xn = {
2436
+ }, jn = {
2422
2437
  files: [],
2423
2438
  gap: "4",
2424
2439
  column: "3"
2425
- }, jn = {
2440
+ }, _n = {
2426
2441
  label: "WIDGET_Article_Image",
2427
2442
  description: "WIDGET_Article_Image_Description",
2428
2443
  name: C.ArticleImage,
@@ -2434,7 +2449,7 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2434
2449
  useSelection: !1,
2435
2450
  useWidgets: !1
2436
2451
  }
2437
- }, _n = {}, Nn = {
2452
+ }, Nn = {}, Pn = {
2438
2453
  label: "WIDGET_Slider",
2439
2454
  description: "WIDGET_Slider_Description",
2440
2455
  name: C.ArticleSlider,
@@ -2446,13 +2461,13 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2446
2461
  useSelection: !1,
2447
2462
  useWidgets: !1
2448
2463
  }
2449
- }, Pn = {
2464
+ }, Un = {
2450
2465
  slides: [],
2451
2466
  maxWidth: 800,
2452
2467
  loop: !1,
2453
2468
  useDots: !0,
2454
2469
  startAt: 0
2455
- }, Un = {
2470
+ }, Fn = {
2456
2471
  label: "WIDGET_Text",
2457
2472
  description: "WIDGET_Text_Description",
2458
2473
  name: C.ArticleText,
@@ -2464,9 +2479,9 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2464
2479
  useSelection: !1,
2465
2480
  useWidgets: !1
2466
2481
  }
2467
- }, Fn = {
2468
- text: ""
2469
2482
  }, Wn = {
2483
+ text: ""
2484
+ }, Bn = {
2470
2485
  label: "WIDGET_Title",
2471
2486
  description: "WIDGET_Title_Description",
2472
2487
  name: C.ArticleTitle,
@@ -2478,11 +2493,11 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2478
2493
  useSelection: !1,
2479
2494
  useWidgets: !1
2480
2495
  }
2481
- }, Bn = {
2496
+ }, qn = {
2482
2497
  text: "",
2483
2498
  heading: "h1",
2484
2499
  backgroundColor: "transparent"
2485
- }, qn = {
2500
+ }, $n = {
2486
2501
  label: "WIDGET_Calendar_CalDav",
2487
2502
  description: "WIDGET_Calendar_CalDav_Text",
2488
2503
  name: C.CalendarCalDav,
@@ -2495,11 +2510,11 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2495
2510
  useSelection: !0,
2496
2511
  useWidgets: !1
2497
2512
  }
2498
- }, $n = {
2513
+ }, Vn = {
2499
2514
  calEventsLimit: !1,
2500
2515
  calEventsLimitValue: 10,
2501
2516
  calEventsPromptStatus: "shared"
2502
- }, Vn = {
2517
+ }, Hn = {
2503
2518
  label: Li,
2504
2519
  description: Ii,
2505
2520
  name: C.CheckList,
@@ -2511,10 +2526,10 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2511
2526
  useSelection: !1,
2512
2527
  useWidgets: !1
2513
2528
  }
2514
- }, Hn = {
2529
+ }, Gn = {
2515
2530
  arr: [],
2516
2531
  edit: !1
2517
- }, Gn = {
2532
+ }, Xn = {
2518
2533
  label: "WIDGET_Contact_CardDav",
2519
2534
  description: "WIDGET_Contact_CardDav_Text",
2520
2535
  name: C.ContactCardDav,
@@ -2527,11 +2542,11 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2527
2542
  useSelection: !0,
2528
2543
  useWidgets: !1
2529
2544
  }
2530
- }, Xn = {
2545
+ }, Jn = {
2531
2546
  contactLimit: !1,
2532
2547
  contactLimitValue: 10,
2533
2548
  contactPromptStatus: "shared"
2534
- }, Jn = {
2549
+ }, Kn = {
2535
2550
  label: "WIDGET_Datasource_Table",
2536
2551
  description: "WIDGET_Datasource_Table_Description",
2537
2552
  name: C.DatasourceTable,
@@ -2543,14 +2558,14 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2543
2558
  useSelection: !0,
2544
2559
  useWidgets: !1
2545
2560
  }
2546
- }, Kn = {
2561
+ }, Yn = {
2547
2562
  tableHeadColor: "#f1f1f1",
2548
2563
  tableHeadTextColor: "#000",
2549
2564
  tableHeadIconColor: "#000",
2550
2565
  tableRowColor: "#f5f5f5",
2551
2566
  tableRowTextColor: "#000",
2552
2567
  limit: 20
2553
- }, Yn = {
2568
+ }, Qn = {
2554
2569
  label: "WIDGET_Email_IMAP",
2555
2570
  description: "WIDGET_Email_IMAP_Text",
2556
2571
  name: C.EmailsImap,
@@ -2563,11 +2578,11 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2563
2578
  useSelection: !0,
2564
2579
  useWidgets: !1
2565
2580
  }
2566
- }, Qn = {
2581
+ }, zn = {
2567
2582
  emailsLimit: !1,
2568
2583
  emailsLimitValue: 10,
2569
2584
  emailsPromptStatus: "shared"
2570
- }, zn = {
2585
+ }, Zn = {
2571
2586
  label: "WIDGET_Excel_Datasource_Table",
2572
2587
  description: "WIDGET_Excel_Datasource_Table_Text",
2573
2588
  name: C.ExcelDatasourceTable,
@@ -2579,14 +2594,14 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2579
2594
  useSelection: !0,
2580
2595
  useWidgets: !1
2581
2596
  }
2582
- }, Zn = {
2597
+ }, es = {
2583
2598
  tableHeadColor: "#f1f1f1",
2584
2599
  tableHeadTextColor: "#000",
2585
2600
  tableHeadIconColor: "#000",
2586
2601
  tableRowColor: "#f5f5f5",
2587
2602
  tableRowTextColor: "#000",
2588
2603
  limit: 20
2589
- }, es = {
2604
+ }, ts = {
2590
2605
  label: "WIDGET_Extension",
2591
2606
  description: "WIDGET_Extension_Description",
2592
2607
  name: C.Extension,
@@ -2598,9 +2613,9 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2598
2613
  useSelection: !1,
2599
2614
  useWidgets: !1
2600
2615
  }
2601
- }, ts = {
2602
- extensionName: ""
2603
2616
  }, is = {
2617
+ extensionName: ""
2618
+ }, as = {
2604
2619
  label: "WIDGET_Lucca_Absence",
2605
2620
  description: "WIDGET_Lucca_Absence_Text",
2606
2621
  name: C.LuccaAbsence,
@@ -2612,9 +2627,9 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2612
2627
  useSelection: !0,
2613
2628
  useWidgets: !1
2614
2629
  }
2615
- }, as = {
2616
- url: ""
2617
2630
  }, rs = {
2631
+ url: ""
2632
+ }, ns = {
2618
2633
  label: "WIDGET_Presence",
2619
2634
  description: "WIDGET_Presence_Text",
2620
2635
  name: C.Presence,
@@ -2626,11 +2641,11 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2626
2641
  useSelection: !1,
2627
2642
  useWidgets: !1
2628
2643
  }
2629
- }, ns = {
2644
+ }, ss = {
2630
2645
  closing: !1,
2631
2646
  limit: !1,
2632
2647
  limitValue: 100
2633
- }, ss = {
2648
+ }, os = {
2634
2649
  label: vi,
2635
2650
  description: hi,
2636
2651
  name: C.QuickSurvey,
@@ -2642,7 +2657,7 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2642
2657
  useSelection: !1,
2643
2658
  useWidgets: !1
2644
2659
  }
2645
- }, os = {
2660
+ }, ls = {
2646
2661
  arr: [],
2647
2662
  open: !1,
2648
2663
  multi: !1,
@@ -2650,7 +2665,7 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2650
2665
  isClosed: !1,
2651
2666
  showResult: !1,
2652
2667
  isNotDisabled: !1
2653
- }, ls = {
2668
+ }, ds = {
2654
2669
  label: "WIDGET_User_Profil",
2655
2670
  description: "WIDGET_User_Profil_Text",
2656
2671
  name: C.UserProfile,
@@ -2662,7 +2677,7 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2662
2677
  useSelection: !0,
2663
2678
  useWidgets: !1
2664
2679
  }
2665
- }, ds = {}, cs = {
2680
+ }, cs = {}, us = {
2666
2681
  label: "WIDGET_Color",
2667
2682
  description: "WIDGET_Color_Text",
2668
2683
  name: C.Color,
@@ -2674,7 +2689,7 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2674
2689
  useSelection: !0,
2675
2690
  useWidgets: !1
2676
2691
  }
2677
- }, us = {}, ps = {
2692
+ }, ps = {}, gs = {
2678
2693
  label: "WIDGET_Welcome",
2679
2694
  description: "WIDGET_Welcome_Text",
2680
2695
  name: C.Welcome,
@@ -2686,73 +2701,73 @@ const Li = "WIDGET_Check_List", Ii = "WIDGET_Check_List_Description", vi = "WIDG
2686
2701
  useSelection: !0,
2687
2702
  useWidgets: !1
2688
2703
  }
2689
- }, gs = {};
2690
- function fs(t) {
2704
+ }, fs = {};
2705
+ function ms(t) {
2691
2706
  switch (t) {
2692
2707
  default:
2693
2708
  return ai;
2694
2709
  case "widget-article-gallery":
2695
2710
  return ai;
2696
2711
  case "widget-article-attachment":
2697
- return Rn;
2712
+ return kn;
2698
2713
  case "widget-presence":
2699
- return rs;
2714
+ return ns;
2700
2715
  case "widget-article-slider":
2701
- return Nn;
2716
+ return Pn;
2702
2717
  case "widget-article-text":
2703
- return Un;
2718
+ return Fn;
2704
2719
  case "widget-article-title":
2705
- return Wn;
2720
+ return Bn;
2706
2721
  case "widget-article-image":
2707
- return jn;
2722
+ return _n;
2708
2723
  case "widget-datasource-table":
2709
- return Jn;
2724
+ return Kn;
2710
2725
  case "widget-excel-datasource-table":
2711
- return zn;
2726
+ return Zn;
2712
2727
  case "widget-article-button":
2713
- return kn;
2728
+ return Mn;
2714
2729
  case "widget-check-list":
2715
- return Vn;
2730
+ return Hn;
2716
2731
  case "widget-quick-survey":
2717
- return ss;
2732
+ return os;
2718
2733
  case "widget-calendar-calDav":
2719
- return qn;
2734
+ return $n;
2720
2735
  case "widget-contact-cardDav":
2721
- return Gn;
2736
+ return Xn;
2722
2737
  case "widget-lucca-absence":
2723
- return is;
2738
+ return as;
2724
2739
  case "widget-emails-imap":
2725
- return Yn;
2740
+ return Qn;
2726
2741
  case "widget-welcome":
2727
- return ps;
2742
+ return gs;
2728
2743
  case "widget-user-profil":
2729
- return ls;
2744
+ return ds;
2730
2745
  case "widget-extension":
2731
- return es;
2746
+ return ts;
2732
2747
  case "widget-color":
2733
- return cs;
2748
+ return us;
2734
2749
  }
2735
2750
  }
2736
- function ms(t) {
2751
+ function ys(t) {
2737
2752
  return {
2738
2753
  title: "",
2739
2754
  level: 3,
2740
- widget: ys(t)
2755
+ widget: As(t)
2741
2756
  };
2742
2757
  }
2743
- function ys(t) {
2758
+ function As(t) {
2744
2759
  return {
2745
2760
  uniqid: Mt(),
2746
2761
  name: t,
2747
- content: As(t)
2762
+ content: Es(t)
2748
2763
  };
2749
2764
  }
2750
- function As(t) {
2765
+ function Es(t) {
2751
2766
  switch (t) {
2752
2767
  default:
2753
2768
  case "widget-lucca-absence":
2754
2769
  return {
2755
- ...as
2770
+ ...rs
2756
2771
  };
2757
2772
  case "widget-article-attachment":
2758
2773
  return {
@@ -2760,79 +2775,79 @@ function As(t) {
2760
2775
  };
2761
2776
  case "widget-presence":
2762
2777
  return {
2763
- ...ns
2778
+ ...ss
2764
2779
  };
2765
2780
  case "widget-datasource-table":
2766
2781
  return {
2767
- ...Kn
2782
+ ...Yn
2768
2783
  };
2769
2784
  case "widget-excel-datasource-table":
2770
2785
  return {
2771
- ...Zn
2786
+ ...es
2772
2787
  };
2773
2788
  case "widget-article-slider":
2774
2789
  return {
2775
- ...Pn
2790
+ ...Un
2776
2791
  };
2777
2792
  case "widget-article-gallery":
2778
2793
  return {
2779
- ...xn
2794
+ ...jn
2780
2795
  };
2781
2796
  case "widget-article-button":
2782
2797
  return {
2783
- ...Mn
2798
+ ...xn
2784
2799
  };
2785
2800
  case "widget-article-title":
2786
2801
  return {
2787
- ...Bn
2802
+ ...qn
2788
2803
  };
2789
2804
  case "widget-article-image":
2790
2805
  return {
2791
- ..._n
2806
+ ...Nn
2792
2807
  };
2793
2808
  case "widget-article-text":
2794
2809
  return {
2795
- ...Fn
2810
+ ...Wn
2796
2811
  };
2797
2812
  case "widget-check-list":
2798
2813
  return {
2799
- ...Hn
2814
+ ...Gn
2800
2815
  };
2801
2816
  case "widget-quick-survey":
2802
2817
  return {
2803
- ...os
2818
+ ...ls
2804
2819
  };
2805
2820
  case "widget-calendar-calDav":
2806
2821
  return {
2807
- ...$n
2822
+ ...Vn
2808
2823
  };
2809
2824
  case "widget-contact-cardDav":
2810
2825
  return {
2811
- ...Xn
2826
+ ...Jn
2812
2827
  };
2813
2828
  case "widget-emails-imap":
2814
2829
  return {
2815
- ...Qn
2830
+ ...zn
2816
2831
  };
2817
2832
  case "widget-welcome":
2818
2833
  return {
2819
- ...gs
2834
+ ...fs
2820
2835
  };
2821
2836
  case "widget-user-profil":
2822
2837
  return {
2823
- ...ds
2838
+ ...cs
2824
2839
  };
2825
2840
  case "widget-extension":
2826
2841
  return {
2827
- ...ts
2842
+ ...is
2828
2843
  };
2829
2844
  case "widget-color":
2830
2845
  return {
2831
- ...us
2846
+ ...ps
2832
2847
  };
2833
2848
  }
2834
2849
  }
2835
- const Es = {
2850
+ const Ss = {
2836
2851
  token: void 0,
2837
2852
  ids: {},
2838
2853
  layers: {},
@@ -2850,7 +2865,7 @@ const Es = {
2850
2865
  flushedWidgets: [],
2851
2866
  rtObjectStack: [],
2852
2867
  widgetContext: {}
2853
- }, Ss = [
2868
+ }, Ts = [
2854
2869
  C.ArticleTitle,
2855
2870
  C.ArticleText,
2856
2871
  C.ArticleImage,
@@ -2859,7 +2874,7 @@ const Es = {
2859
2874
  C.ArticleAttachment
2860
2875
  ], G = T({
2861
2876
  name: "widgets",
2862
- initialState: Es,
2877
+ initialState: Ss,
2863
2878
  reducers: {
2864
2879
  registerWidget: (t, e) => {
2865
2880
  const { uniqid: i, widget: a, context: r } = e.payload;
@@ -2869,7 +2884,7 @@ const Es = {
2869
2884
  loading: !1,
2870
2885
  mounted: !1,
2871
2886
  hover: !1,
2872
- empty: Ss.includes(a.widget.name),
2887
+ empty: Ts.includes(a.widget.name),
2873
2888
  locked: !1
2874
2889
  }, t.widgetContext[i] = r;
2875
2890
  },
@@ -3015,7 +3030,7 @@ const Es = {
3015
3030
  t.modal = void 0;
3016
3031
  }
3017
3032
  }
3018
- }), Ts = function(t, e) {
3033
+ }), Cs = function(t, e) {
3019
3034
  return [
3020
3035
  {
3021
3036
  namespace: "WIDGET",
@@ -3070,43 +3085,43 @@ const Es = {
3070
3085
  }
3071
3086
  }
3072
3087
  ];
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) => {
3088
+ }, bs = (t) => t.widgets.token, ws = (t) => t.widgets.modal, Ls = (t) => t.widgets.ids, Is = (t) => t.widgets.flushedWidgets, vs = (t, e) => t.widgets.states[e] ?? void 0, hs = (t, e) => t.widgets.ids[e] ?? void 0, Os = (t, e) => t.widgets.ids[e]?.level ?? void 0, Rs = (t, e) => t.widgets.widgetObject[e] ?? void 0, ks = (t, e) => {
3074
3089
  const i = t.widgets.widgetObject[e];
3075
3090
  if (i && "uri" in i)
3076
3091
  return i.uri;
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,
3092
+ }, Ds = (t, e) => t.widgets.widgetObjectRights[e] ?? void 0, Ms = (t, e) => t.widgets.widgetContext[e] ?? void 0, xs = (t, e) => t.widgets.widgetAuthor[e] ?? void 0, js = (t, e) => t.widgets.widgetChipCount[e] ?? 0, _s = (t, e) => t.widgets.widgetWrapperStyle[e] ?? {}, Ns = (t, e) => t.widgets.widgetTitleStyle[e] ?? {}, Ps = (t, e) => t.widgets.currentEditableWidgetId === e, Us = (t, e) => t.widgets.rtObjectStack.filter((i) => i.uniqid === e), Fl = (t, e, i) => Fs.slice.actions.updateWidget({ uniqid: t, content: e, override: i ?? !1 }), Fs = {
3093
+ const: Rn,
3094
+ factory: ys,
3095
+ definition: ms,
3081
3096
  utils: {
3082
3097
  uniqid: Mt
3083
3098
  },
3084
3099
  slice: G,
3085
- getWidgetRTHandlers: Ts,
3100
+ getWidgetRTHandlers: Cs,
3086
3101
  selectors: {
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,
3102
+ isActive: Ps,
3103
+ selectToken: bs,
3104
+ selectWidgets: Ls,
3105
+ selectWidget: hs,
3106
+ selectWidgetState: vs,
3107
+ selectModal: ws,
3108
+ selectWidgetObject: Rs,
3109
+ selectWidgetObjectUri: ks,
3110
+ selectWidgetAuthor: xs,
3096
3111
  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 = {
3112
+ selectAllWidgetRTObject: Us,
3113
+ selectFlushedWidgets: Is,
3114
+ selectWidgetContext: Ms,
3115
+ selectWidgetLevel: Os,
3116
+ selectWidgetWrapperStyle: _s,
3117
+ selectWidgetTitleStyle: Ns,
3118
+ selectWidgetChipCount: js
3119
+ }
3120
+ }, Ws = {
3106
3121
  editors: []
3107
- }, Ws = T({
3122
+ }, Bs = T({
3108
3123
  name: "editors",
3109
- initialState: Fs,
3124
+ initialState: Ws,
3110
3125
  reducers: {
3111
3126
  registerEditor: (t, e) => {
3112
3127
  const { uniqid: i, name: a, onSave: r, mode: n } = e.payload, s = r ? {
@@ -3156,11 +3171,11 @@ const Es = {
3156
3171
  window.dispatchEvent(new Event("WidgetEditorFlushAll")), t.editors.length = 0;
3157
3172
  }
3158
3173
  }
3159
- }), Bs = (t) => t.editors.editors, qs = (t, e) => t.editors.editors.find((i) => i.uniqid === e), Wl = {
3160
- slice: Ws,
3174
+ }), qs = (t) => t.editors.editors, $s = (t, e) => t.editors.editors.find((i) => i.uniqid === e), Wl = {
3175
+ slice: Bs,
3161
3176
  selectors: {
3162
- selectEditors: Bs,
3163
- selectEditor: qs
3177
+ selectEditors: qs,
3178
+ selectEditor: $s
3164
3179
  }
3165
3180
  }, N = dt({
3166
3181
  selectId: (t) => `${t.targetId}-${t.type}`
@@ -3174,10 +3189,10 @@ const Es = {
3174
3189
  clear: N.removeAll,
3175
3190
  updateOne: N.updateOne
3176
3191
  }
3177
- }), $s = N.getSelectors((t) => t.entities.socialActions), Bl = {
3192
+ }), Vs = N.getSelectors((t) => t.entities.socialActions), Bl = {
3178
3193
  slice: ri,
3179
3194
  actions: { ...ri.actions },
3180
- selectors: $s
3195
+ selectors: Vs
3181
3196
  }, nt = {
3182
3197
  ALL: "1",
3183
3198
  CUSTOM: "0"
@@ -3185,7 +3200,7 @@ const Es = {
3185
3200
  draft: "draft",
3186
3201
  installed: "installed",
3187
3202
  suspended: "suspended"
3188
- }, k = {
3203
+ }, D = {
3189
3204
  DRAFT: V.draft,
3190
3205
  INSTALLED: V.installed,
3191
3206
  SUSPENDED: V.suspended
@@ -3220,7 +3235,7 @@ const Es = {
3220
3235
  SENDALERTTOSUBSCRIBERS: "SENDALERTTOSUBSCRIBERS",
3221
3236
  RECEIVEACOPY: "RECEIVEACOPY",
3222
3237
  CREATIONDATE: "CREATIONDATE"
3223
- }, Vs = {
3238
+ }, Hs = {
3224
3239
  TITLE: "title",
3225
3240
  USER: "user",
3226
3241
  PUBLISHTO: "publishTo",
@@ -3235,7 +3250,7 @@ const Es = {
3235
3250
  OPTIONS_EDITOR: "options_editor",
3236
3251
  TAXONOMY: "taxonomy",
3237
3252
  CONTENTTYPE: "contenttype"
3238
- }, Hs = [o.DESCRIPTION, o.IMAGE], ql = Hs, jt = /* @__PURE__ */ new Map();
3253
+ }, Gs = [o.DESCRIPTION, o.IMAGE], ql = Gs, jt = /* @__PURE__ */ new Map();
3239
3254
  jt.set(o.IMAGE, ["list", "filter", "view"]);
3240
3255
  jt.set(o.CODEHTML, ["list", "filter", "view"]);
3241
3256
  const q = {
@@ -3267,7 +3282,7 @@ const q = {
3267
3282
  fixed: [p.TITLE],
3268
3283
  optional: []
3269
3284
  }
3270
- }, Gs = [
3285
+ }, Xs = [
3271
3286
  p.TITLE,
3272
3287
  p.USER,
3273
3288
  p.CREATIONDATE,
@@ -3279,35 +3294,35 @@ const q = {
3279
3294
  p.RECEIVEACOPY,
3280
3295
  p.USER,
3281
3296
  p.CREATIONDATE
3282
- ], Xs = [
3297
+ ], Js = [
3283
3298
  p.USER,
3284
3299
  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 = [];
3300
+ ], Ks = [o.CODEHTML], Ys = Js.concat(Ks).concat(Oi);
3301
+ var Qs = /* @__PURE__ */ ((t) => (t.Attr = "attr", t.PublishTo = "publishTo", t))(Qs || {}), zs = /* @__PURE__ */ ((t) => (t.Empty = "", t.FieldTagDescription = "Field_Tag_Description", t.FieldTitleDescription = "Field_Title_Description", t.WWWDescCOM = "www.desc.com", t))(zs || {}), I = [];
3287
3302
  for (var pt = 0; pt < 256; ++pt)
3288
3303
  I.push((pt + 256).toString(16).slice(1));
3289
- function zs(t, e = 0) {
3304
+ function Zs(t, e = 0) {
3290
3305
  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
3306
  }
3292
- var ae, Zs = new Uint8Array(16);
3293
- function eo() {
3307
+ var ae, eo = new Uint8Array(16);
3308
+ function to() {
3294
3309
  if (!ae && (ae = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ae))
3295
3310
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
3296
- return ae(Zs);
3311
+ return ae(eo);
3297
3312
  }
3298
- var to = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
3313
+ var io = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
3299
3314
  const ni = {
3300
- randomUUID: to
3315
+ randomUUID: io
3301
3316
  };
3302
3317
  function M(t, e, i) {
3303
3318
  if (ni.randomUUID && !t)
3304
3319
  return ni.randomUUID();
3305
3320
  t = t || {};
3306
- var a = t.random || (t.rng || eo)();
3307
- return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, zs(a);
3321
+ var a = t.random || (t.rng || to)();
3322
+ return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Zs(a);
3308
3323
  }
3309
3324
  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) {
3325
+ function ki(t) {
3311
3326
  const e = t, i = e.manifest, a = n(), r = {
3312
3327
  idApp: e.idApp,
3313
3328
  status: e.status,
@@ -3479,7 +3494,7 @@ function Z(t, e = !0) {
3479
3494
  return {
3480
3495
  id: M(),
3481
3496
  type: t,
3482
- properties: ro(t),
3497
+ properties: no(t),
3483
3498
  mandatory: !1,
3484
3499
  views: {
3485
3500
  create: e,
@@ -3496,15 +3511,15 @@ function Z(t, e = !0) {
3496
3511
  isLockedValue: !1
3497
3512
  };
3498
3513
  }
3499
- const io = {
3514
+ const ao = {
3500
3515
  type: "taxonomyOpen",
3501
3516
  id: 1,
3502
3517
  title: "Mots-clés"
3503
- }, ao = {
3518
+ }, ro = {
3504
3519
  type: "mpArticle",
3505
3520
  label: "Article"
3506
3521
  };
3507
- function ro(t) {
3522
+ function no(t) {
3508
3523
  switch (t) {
3509
3524
  case o.TEXT:
3510
3525
  case o.DESCRIPTION:
@@ -3564,7 +3579,7 @@ function ro(t) {
3564
3579
  { propertyType: S.DESCRIPTION, value: "" },
3565
3580
  {
3566
3581
  propertyType: S.TAXONOMY,
3567
- value: { ...io }
3582
+ value: { ...ao }
3568
3583
  }
3569
3584
  ];
3570
3585
  case o.CONTENTLINK:
@@ -3573,7 +3588,7 @@ function ro(t) {
3573
3588
  { propertyType: S.DESCRIPTION, value: "" },
3574
3589
  {
3575
3590
  propertyType: S.CONTENTTYPE,
3576
- value: { ...ao }
3591
+ value: { ...ro }
3577
3592
  }
3578
3593
  ];
3579
3594
  default:
@@ -3588,7 +3603,7 @@ function h(t, e) {
3588
3603
  };
3589
3604
  return i.properties[0].value = e.label, i.properties[1].value = e.description, i;
3590
3605
  }
3591
- function ki(t) {
3606
+ function Di(t) {
3592
3607
  const e = [];
3593
3608
  return Object.keys(t).forEach((i) => {
3594
3609
  e.push({
@@ -3597,7 +3612,7 @@ function ki(t) {
3597
3612
  });
3598
3613
  }), e;
3599
3614
  }
3600
- function no(t) {
3615
+ function so(t) {
3601
3616
  const e = {
3602
3617
  ...Z(o.ADDFILEATTACHMENT, !1),
3603
3618
  id: t.name,
@@ -3605,31 +3620,31 @@ function no(t) {
3605
3620
  };
3606
3621
  return e.properties[0].value = t.label, e;
3607
3622
  }
3608
- function so(t) {
3623
+ function oo(t) {
3609
3624
  const e = {
3610
3625
  ...Z(o.CODEHTML, !1),
3611
3626
  id: t.name
3612
3627
  }, i = t.properties.code;
3613
3628
  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
3629
  }
3615
- function oo() {
3630
+ function lo() {
3616
3631
  return Z(o.IMAGE, !1);
3617
3632
  }
3618
- function lo(t) {
3633
+ function co(t) {
3619
3634
  const e = h(o.NUMBER, t);
3620
3635
  return e.properties[2].value = t.widget.params?.step === "0.01", e;
3621
3636
  }
3622
- function co(t) {
3637
+ function uo(t) {
3623
3638
  const e = h(o.TAGS, t);
3624
3639
  return e.properties[2].value.id = +(t.widget.params?.idTaxonomy ?? 1), e;
3625
3640
  }
3626
- function uo(t) {
3641
+ function po(t) {
3627
3642
  const e = h(o.SELECT, t), i = t.widget.params?.defaultValue ? {
3628
3643
  title: t.widget.options[t.widget.params?.defaultValue],
3629
3644
  value: t.widget.params?.defaultValue
3630
3645
  } : void 0, a = {
3631
3646
  // TODO : better typing
3632
- propertyOptions: ki(t.widget.options),
3647
+ propertyOptions: Di(t.widget.options),
3633
3648
  canSelectMultiple: t.widget.multiple === "1",
3634
3649
  userCanModifiyByComment: t.widget.params?.explain === "1",
3635
3650
  defaultSelectOption: !!t.widget.params?.defaultValue,
@@ -3639,55 +3654,55 @@ function uo(t) {
3639
3654
  }
3640
3655
  function Mi(t) {
3641
3656
  const e = h(o.RADIO, t), i = {
3642
- propertyOptions: ki(t.widget.options)
3657
+ propertyOptions: Di(t.widget.options)
3643
3658
  };
3644
3659
  return e.properties[2].value = i, e;
3645
3660
  }
3646
- function po(t) {
3661
+ function go(t) {
3647
3662
  const e = Mi(t);
3648
3663
  return e.type = o.CHECKBOX, e;
3649
3664
  }
3650
- function go(t, e) {
3665
+ function fo(t, e) {
3651
3666
  const i = h(o.CONTENTLINK, t);
3652
3667
  i.properties[2].value.type = t.widget.params.types ?? "mpArticle";
3653
3668
  const a = e.entities === void 0 ? void 0 : { entities: e.entities }, r = a ? Hr.selectors.selectById(a, i.properties[2].value.type) : void 0;
3654
3669
  return i.properties[2].value.label = r?.label ?? "Article", i;
3655
3670
  }
3656
- function fo(t) {
3671
+ function mo(t) {
3657
3672
  return h(o.TEXT, t);
3658
3673
  }
3659
- function mo(t) {
3674
+ function yo(t) {
3660
3675
  return h(o.DESCRIPTION, t);
3661
3676
  }
3662
- function yo(t) {
3677
+ function Ao(t) {
3663
3678
  return h(o.TEXTAREAHTML, t);
3664
3679
  }
3665
- function Ao(t) {
3680
+ function Eo(t) {
3666
3681
  return h(o.DATE, t);
3667
3682
  }
3668
- function Eo(t) {
3683
+ function So(t) {
3669
3684
  return h(o.DATETIME, t);
3670
3685
  }
3671
- function So(t) {
3686
+ function To(t) {
3672
3687
  return h(o.URL, t);
3673
3688
  }
3674
- function To(t) {
3689
+ function Co(t) {
3675
3690
  return h(o.EMAIL, t);
3676
3691
  }
3677
- function Co(t) {
3692
+ function bo(t) {
3678
3693
  return h(o.TOGGLE, t);
3679
3694
  }
3680
- function bo(t) {
3695
+ function wo(t) {
3681
3696
  return h(o.USERLINK, t);
3682
3697
  }
3683
- function wo(t) {
3698
+ function Lo(t) {
3684
3699
  return h(o.TEXTAREA, t);
3685
3700
  }
3686
- function Lo(t) {
3701
+ function Io(t) {
3687
3702
  const { manifest: e, views: i, audience: a, installFor: r } = t;
3688
3703
  return `<?xml version='1.0' encoding='utf-8'?>
3689
3704
  <Application>
3690
- ${Io(e, i, a, r, t.idApp)}
3705
+ ${vo(e, i, a, r, t.idApp)}
3691
3706
  <Types>
3692
3707
  <objecttype
3693
3708
  label="${e.typeLabel}"
@@ -3703,14 +3718,14 @@ function Lo(t) {
3703
3718
  searchtablabel="${e.typeLabel}"
3704
3719
  buttonlabel="${e.typeLabel}"
3705
3720
  extends="article">
3706
- ${Ro(t.fields)}
3721
+ ${ko(t.fields)}
3707
3722
  ${Do(t.fields)}
3708
3723
  </objecttype>
3709
- ${No(t)}
3724
+ ${Po(t)}
3710
3725
  </Types>
3711
3726
  </Application>`;
3712
3727
  }
3713
- function Io(t, e, i, a, r) {
3728
+ function vo(t, e, i, a, r) {
3714
3729
  return `<Manifest>
3715
3730
  <ShowImport>true</ShowImport>
3716
3731
  <AppShortName>${r}</AppShortName>
@@ -3726,13 +3741,13 @@ function Io(t, e, i, a, r) {
3726
3741
  <Editor>Jamespot</Editor>
3727
3742
  <EditorUrl>https://www.fr.jamespot.com/</EditorUrl>
3728
3743
  <Type>${r}</Type>
3729
- ${vo(t.viewSolr, e.list)}
3730
- ${ho(e.filter)}
3731
- ${Oo(i, a)}
3744
+ ${ho(t.viewSolr, e.list)}
3745
+ ${Oo(e.filter)}
3746
+ ${Ro(i, a)}
3732
3747
  <Order>1</Order>
3733
3748
  </Manifest>`;
3734
3749
  }
3735
- function vo(t, e) {
3750
+ function ho(t, e) {
3736
3751
  if (t === st.SOLR) {
3737
3752
  let i = "<AppView>solr</AppView>";
3738
3753
  const a = [];
@@ -3742,7 +3757,7 @@ function vo(t, e) {
3742
3757
  }
3743
3758
  return "";
3744
3759
  }
3745
- function ho(t) {
3760
+ function Oo(t) {
3746
3761
  const e = [];
3747
3762
  return Object.entries(t).sort((i, a) => i[1].pos - a[1].pos).forEach(([i, a]) => {
3748
3763
  if (!a.isUsed)
@@ -3754,13 +3769,13 @@ function xi(t) {
3754
3769
  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
3770
  }
3756
3771
  function _t(t, e) {
3757
- return Gs.includes(t.type) ? xi(t.type) : Nt(e).toLowerCase();
3772
+ return Xs.includes(t.type) ? xi(t.type) : Nt(e).toLowerCase();
3758
3773
  }
3759
- function Oo(t, e) {
3774
+ function Ro(t, e) {
3760
3775
  return t === nt.ALL ? "<checkAccess>false</checkAccess>" : e.length > 0 ? `<checkAccess>true</checkAccess>
3761
3776
  <accessRightList>${e.map((i) => i.uri).join()}</accessRightList>` : "";
3762
3777
  }
3763
- function Ro(t) {
3778
+ function ko(t) {
3764
3779
  const e = t?.filter((i) => Ri.includes(i.type));
3765
3780
  return e.length === 0 ? "" : `<primaryFields>${e.map((i) => vt(i)).join("")}</primaryFields>`;
3766
3781
  }
@@ -3768,7 +3783,7 @@ function Do(t) {
3768
3783
  const i = t?.filter((n) => !Ri.includes(n.type))?.filter((n) => n.type !== o.IMAGE);
3769
3784
  if (i.length === 0) return "";
3770
3785
  const a = i.filter(
3771
- (n) => n.type !== o.TAGS && !Ks.includes(n.type)
3786
+ (n) => n.type !== o.TAGS && !Ys.includes(n.type)
3772
3787
  ), r = i.filter((n) => n.type === o.TAGS);
3773
3788
  return `<custom>
3774
3789
  ${a.length > 0 ? `<articlemstable>
@@ -3780,13 +3795,13 @@ function Do(t) {
3780
3795
  }
3781
3796
  function vt(t) {
3782
3797
  return `<field
3783
- type="${jo(t.type)}"
3798
+ type="${_o(t.type)}"
3784
3799
  name="${_t(t, t.id)}"
3785
- sqlname="${Mo(t.type, t.id)}"
3800
+ sqlname="${xo(t.type, t.id)}"
3786
3801
  ${t.properties && si(t.properties, S.LABEL)}
3787
3802
  ${t.properties && si(t.properties, S.DESCRIPTION)}
3788
3803
  mandatory="${t.type === o.TOGGLE ? "false" : t.mandatory}"
3789
- solr.type="${xo(t.type)}"
3804
+ solr.type="${jo(t.type)}"
3790
3805
  solr.used="true"
3791
3806
  solr.indexed="true"
3792
3807
  solr.stored="true"
@@ -3795,10 +3810,10 @@ function vt(t) {
3795
3810
  teaser="true"
3796
3811
  display="true"
3797
3812
  >
3798
- ${ko(t.type, t.properties)}
3813
+ ${Mo(t.type, t.properties)}
3799
3814
  </field>`;
3800
3815
  }
3801
- function ko(t, e) {
3816
+ function Mo(t, e) {
3802
3817
  switch (t) {
3803
3818
  case o.DESCRIPTION:
3804
3819
  return '<widget form="textarea"><params><param key="class" value="mceEditor"></param><param key="mention" value="1"></param></params></widget>';
@@ -3922,7 +3937,7 @@ function si(t, e) {
3922
3937
  }
3923
3938
  return "";
3924
3939
  }
3925
- function Mo(t, e) {
3940
+ function xo(t, e) {
3926
3941
  switch (t) {
3927
3942
  case o.DESCRIPTION:
3928
3943
  return "Description";
@@ -3932,7 +3947,7 @@ function Mo(t, e) {
3932
3947
  return Nt(e);
3933
3948
  }
3934
3949
  }
3935
- function xo(t) {
3950
+ function jo(t) {
3936
3951
  switch (t) {
3937
3952
  case o.DESCRIPTION:
3938
3953
  case o.TEXT:
@@ -3960,7 +3975,7 @@ function xo(t) {
3960
3975
  return "";
3961
3976
  }
3962
3977
  }
3963
- function jo(t) {
3978
+ function _o(t) {
3964
3979
  switch (t) {
3965
3980
  default:
3966
3981
  case o.DESCRIPTION:
@@ -3993,10 +4008,10 @@ const Nt = (t) => {
3993
4008
  let e = "";
3994
4009
  for (let i = 0; i < t.length; i++) {
3995
4010
  const a = t.charAt(i);
3996
- a >= "0" && a <= "9" ? e += _o(Number(a)) : a >= "a" && a <= "z" && (e += a);
4011
+ a >= "0" && a <= "9" ? e += No(Number(a)) : a >= "a" && a <= "z" && (e += a);
3997
4012
  }
3998
4013
  return e;
3999
- }, _o = (t) => {
4014
+ }, No = (t) => {
4000
4015
  let e = "", i;
4001
4016
  for (; t > 0; )
4002
4017
  i = (t - 1) % 26, e = String.fromCharCode(97 + i) + e, t = (t - i) / 26 | 0;
@@ -4007,18 +4022,18 @@ const Nt = (t) => {
4007
4022
  edit: "edit",
4008
4023
  view: "display"
4009
4024
  };
4010
- function No(t) {
4025
+ function Po(t) {
4011
4026
  let e = "";
4012
4027
  return Object.entries(t.views).forEach(([i, a]) => {
4013
4028
  if (Object.prototype.hasOwnProperty.call(oi, i)) {
4014
4029
  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
4030
  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("")}
4031
+ ${r.map(([n, s]) => Fo(n, s)).join("")}
4017
4032
  </display>`;
4018
4033
  }
4019
4034
  }), e.length > 0 && (e = `<displays type="${t.idApp}">${e}</displays>`), e;
4020
4035
  }
4021
- function Po(t, e) {
4036
+ function Uo(t, e) {
4022
4037
  switch (e.type) {
4023
4038
  case p.TITLE:
4024
4039
  return "title";
@@ -4038,9 +4053,9 @@ function Po(t, e) {
4038
4053
  return Nt(t);
4039
4054
  }
4040
4055
  }
4041
- function Uo(t, e) {
4056
+ function Fo(t, e) {
4042
4057
  let i = "";
4043
- const a = Po(t, e);
4058
+ const a = Uo(t, e);
4044
4059
  if (e.isLockedValue) {
4045
4060
  const n = {
4046
4061
  ref: a,
@@ -4117,7 +4132,7 @@ const ji = {
4117
4132
  displayDisabled: "view"
4118
4133
  // appInstalled.columns => 'list' view,
4119
4134
  // appInstalled.attrExposed => 'filter' view,
4120
- }, li = ["title", "alertAuthor", "sendAlert"], Fo = ["edito"];
4135
+ }, li = ["title", "alertAuthor", "sendAlert"], Wo = ["edito"];
4121
4136
  function _i(t, e, i) {
4122
4137
  return Object.assign(
4123
4138
  {},
@@ -4161,19 +4176,19 @@ function _i(t, e, i) {
4161
4176
  let w;
4162
4177
  if (b === o.CODEHTML) {
4163
4178
  const L = y.properties?.find(
4164
- (D) => D.propertyType === S.RICHTEXT
4179
+ (k) => k.propertyType === S.RICHTEXT
4165
4180
  );
4166
4181
  L?.value && (w = L?.value);
4167
4182
  }
4168
4183
  if (b === o.SELECT) {
4169
4184
  const L = y.properties?.find(
4170
- (D) => D.propertyType === S.OPTIONS_EDITOR
4185
+ (k) => k.propertyType === S.OPTIONS_EDITOR
4171
4186
  );
4172
4187
  if (A) {
4173
- const D = t[a][y.id], ee = D.properties?.find(
4188
+ const k = t[a][y.id], ee = k.properties?.find(
4174
4189
  (Ji) => Ji.propertyType === S.OPTIONS_EDITOR
4175
4190
  ), Gi = !!L?.value?.canSelectMultiple, Xi = !!ee?.value?.canSelectMultiple;
4176
- Gi === Xi && (w = D.value);
4191
+ Gi === Xi && (w = k.value);
4177
4192
  } else {
4178
4193
  const ee = !!L?.isOptionsEditorEnhanced && L?.value.defaultSelectOption ? L?.value.defaultSelectOptionValue : "";
4179
4194
  ee && (w = ee);
@@ -4192,7 +4207,7 @@ function _i(t, e, i) {
4192
4207
  } else {
4193
4208
  g.push({ id: y.id, idx: m });
4194
4209
  const L = Object.values(t[a]).filter(
4195
- (D) => !D.isFixed && !D.isOptional
4210
+ (k) => !k.isFixed && !k.isOptional
4196
4211
  ).length;
4197
4212
  r[y.id] = {
4198
4213
  type: y.type,
@@ -4209,7 +4224,7 @@ function _i(t, e, i) {
4209
4224
  const m = r[y.id];
4210
4225
  m.pos = y.idx + 1, Object.keys(r).forEach((c) => {
4211
4226
  const A = r[c];
4212
- A && !Object.values(Vs).includes(c) && c !== y.id && A.pos >= m.pos && A.pos++;
4227
+ A && !Object.values(Hs).includes(c) && c !== y.id && A.pos >= m.pos && A.pos++;
4213
4228
  });
4214
4229
  }), {
4215
4230
  [a]: r
@@ -4217,7 +4232,7 @@ function _i(t, e, i) {
4217
4232
  })
4218
4233
  );
4219
4234
  }
4220
- function Wo(t) {
4235
+ function Bo(t) {
4221
4236
  return t.map((e) => ({
4222
4237
  id: `${e.type}/${e.id}`,
4223
4238
  uri: `${e.type}/${e.id}`,
@@ -4234,14 +4249,14 @@ function Wo(t) {
4234
4249
  _url: e._url
4235
4250
  }));
4236
4251
  }
4237
- function Bo(t, e, i) {
4252
+ function qo(t, e, i) {
4238
4253
  const a = t.typeModel.tables, r = t.typeModel.displays;
4239
4254
  if (!r)
4240
4255
  return;
4241
4256
  const n = /* @__PURE__ */ new Map();
4242
4257
  Object.entries(r).forEach((s) => {
4243
4258
  const [l, d] = s;
4244
- Object.keys(ji).includes(l) && qo(
4259
+ Object.keys(ji).includes(l) && $o(
4245
4260
  e,
4246
4261
  n,
4247
4262
  l,
@@ -4249,9 +4264,9 @@ function Bo(t, e, i) {
4249
4264
  a,
4250
4265
  i
4251
4266
  );
4252
- }), $o(e, n, t.columns, a, i), Vo(e, n, t.attrExposed, a, i);
4267
+ }), Vo(e, n, t.columns, a, i), Ho(e, n, t.attrExposed, a, i);
4253
4268
  }
4254
- function qo(t, e, i, a, r, n) {
4269
+ function $o(t, e, i, a, r, n) {
4255
4270
  const s = ji[i];
4256
4271
  if (t.views[s] = {}, s === "view") {
4257
4272
  const [l, d] = ot({ fixedValue: void 0 });
@@ -4259,9 +4274,9 @@ function qo(t, e, i, a, r, n) {
4259
4274
  }
4260
4275
  a.composants.forEach((l, d) => {
4261
4276
  let g;
4262
- if (l.name && Fo.includes(l.name))
4277
+ if (l.name && Wo.includes(l.name))
4263
4278
  return;
4264
- const [y, m] = Xo(t, e, l, r, n);
4279
+ const [y, m] = Jo(t, e, l, r, n);
4265
4280
  if (y === -1 && m)
4266
4281
  switch (m.ref) {
4267
4282
  case "title": {
@@ -4301,12 +4316,12 @@ function qo(t, e, i, a, r, n) {
4301
4316
  }
4302
4317
  });
4303
4318
  }
4304
- function $o(t, e, i, a, r) {
4319
+ function Vo(t, e, i, a, r) {
4305
4320
  i && Object.keys(i).forEach((n, s) => {
4306
4321
  Ni(t, e, a, "list", n, s, r);
4307
4322
  });
4308
4323
  }
4309
- function Vo(t, e, i, a, r) {
4324
+ function Ho(t, e, i, a, r) {
4310
4325
  i.forEach((n, s) => {
4311
4326
  Ni(t, e, a, "filter", n, s, r);
4312
4327
  });
@@ -4331,24 +4346,24 @@ function Ni(t, e, i, a, r, n, s) {
4331
4346
  break;
4332
4347
  }
4333
4348
  default:
4334
- Ho(t, e, i, a, r, n, s);
4349
+ Go(t, e, i, a, r, n, s);
4335
4350
  break;
4336
4351
  }
4337
4352
  }
4338
- function Ho(t, e, i, a, r, n, s) {
4339
- const l = Go(t, e, i, r, s), d = t.fields[l];
4353
+ function Go(t, e, i, a, r, n, s) {
4354
+ const l = Xo(t, e, i, r, s), d = t.fields[l];
4340
4355
  if (!d?.views)
4341
4356
  throw new Error(`error converting installed app to V2: unable to handle ${r} in list view`);
4342
4357
  d.views[a] = !0, Pi(a, d, t, n, void 0);
4343
4358
  }
4344
- function Go(t, e, i, a, r) {
4359
+ function Xo(t, e, i, a, r) {
4345
4360
  const n = e.get(a);
4346
4361
  if (n !== void 0)
4347
4362
  return n;
4348
4363
  const [s, l] = ht(t, a, i, r);
4349
4364
  return e.set(s, l), l;
4350
4365
  }
4351
- function Xo(t, e, i, a, r) {
4366
+ function Jo(t, e, i, a, r) {
4352
4367
  if (i.name !== void 0 && i.element === "attr") {
4353
4368
  if (li.includes(i.name))
4354
4369
  return [-1, { ref: i.name, fixedValue: void 0 }];
@@ -4384,7 +4399,7 @@ function Xo(t, e, i, a, r) {
4384
4399
  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
4400
  if (y !== void 0)
4386
4401
  return [y, void 0];
4387
- const m = so(g), c = t.fields.push(m) - 1;
4402
+ const m = oo(g), c = t.fields.push(m) - 1;
4388
4403
  return e.set(m.id, c), [c, void 0];
4389
4404
  } catch {
4390
4405
  return console.error("error while parsing studio installed codehtml attr in a view: json parsing failed"), [-1, void 0];
@@ -4395,53 +4410,53 @@ function Xo(t, e, i, a, r) {
4395
4410
  const n = e.get("image");
4396
4411
  if (n !== void 0)
4397
4412
  return [n, void 0];
4398
- const s = oo(), l = t.fields.push(s) - 1;
4413
+ const s = lo(), l = t.fields.push(s) - 1;
4399
4414
  return e.set("image", l), [l, void 0];
4400
4415
  } 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
4416
  }
4402
4417
  function ht(t, e, i, a) {
4403
- const r = Jo(e, i), n = Ko(r), s = (function() {
4418
+ const r = Ko(e, i), n = Yo(r), s = (function() {
4404
4419
  switch (n) {
4405
4420
  case o.ADDFILEATTACHMENT:
4406
- return no(r);
4421
+ return so(r);
4407
4422
  case o.NUMBER:
4408
- return lo(r);
4409
- case o.TAGS:
4410
4423
  return co(r);
4411
- case o.SELECT:
4424
+ case o.TAGS:
4412
4425
  return uo(r);
4426
+ case o.SELECT:
4427
+ return po(r);
4413
4428
  case o.RADIO:
4414
4429
  return Mi(r);
4415
4430
  case o.CHECKBOX:
4416
- return po(r);
4431
+ return go(r);
4417
4432
  case o.CONTENTLINK:
4418
- return go(r, a);
4433
+ return fo(r, a);
4419
4434
  case o.DESCRIPTION:
4420
- return mo(r);
4421
- case o.TEXTAREAHTML:
4422
4435
  return yo(r);
4423
- case o.DATE:
4436
+ case o.TEXTAREAHTML:
4424
4437
  return Ao(r);
4425
- case o.DATETIME:
4438
+ case o.DATE:
4426
4439
  return Eo(r);
4427
- case o.URL:
4440
+ case o.DATETIME:
4428
4441
  return So(r);
4429
- case o.EMAIL:
4442
+ case o.URL:
4430
4443
  return To(r);
4431
- case o.TOGGLE:
4444
+ case o.EMAIL:
4432
4445
  return Co(r);
4433
- case o.USERLINK:
4446
+ case o.TOGGLE:
4434
4447
  return bo(r);
4435
- case o.TEXTAREA:
4448
+ case o.USERLINK:
4436
4449
  return wo(r);
4450
+ case o.TEXTAREA:
4451
+ return Lo(r);
4437
4452
  case o.TEXT:
4438
4453
  default:
4439
- return fo(r);
4454
+ return mo(r);
4440
4455
  }
4441
4456
  })(), l = t.fields.push(s) - 1;
4442
4457
  return [e, l];
4443
4458
  }
4444
- function Jo(t, e) {
4459
+ function Ko(t, e) {
4445
4460
  let i;
4446
4461
  for (let a = 0; a < e.length && !i; a++)
4447
4462
  i = e[a]?.attributes.find((r) => r.name === t);
@@ -4461,7 +4476,7 @@ function Pi(t, e, i, a, r) {
4461
4476
  pos: a
4462
4477
  });
4463
4478
  }
4464
- function Ko(t) {
4479
+ function Yo(t) {
4465
4480
  switch (t.widget.type) {
4466
4481
  case "number":
4467
4482
  return o.NUMBER;
@@ -4592,7 +4607,7 @@ function qi(t = !0) {
4592
4607
  }
4593
4608
  ];
4594
4609
  }
4595
- function Yo(t, e, i) {
4610
+ function Qo(t, e, i) {
4596
4611
  const { version: a, dateCreation: r } = t.manifest, n = t.typeModel, s = Object.assign(
4597
4612
  {},
4598
4613
  ...xt.map((m) => ({
@@ -4622,11 +4637,11 @@ function Yo(t, e, i) {
4622
4637
  fields: [],
4623
4638
  views: s,
4624
4639
  // TODO: weird cast
4625
- installFor: t.accessRightObjectList ? Wo(t.accessRightObjectList) : [],
4640
+ installFor: t.accessRightObjectList ? Bo(t.accessRightObjectList) : [],
4626
4641
  audience: t.checkAccess === !1 ? nt.ALL : nt.CUSTOM
4627
4642
  };
4628
- Bo(t, d, i), d.views = _i(d.views, d.syncViewFieldOrder, d.fields);
4629
- const g = Qo(t.idApp, e);
4643
+ qo(t, d, i), d.views = _i(d.views, d.syncViewFieldOrder, d.fields);
4644
+ const g = zo(t.idApp, e);
4630
4645
  if (!g) return d;
4631
4646
  const y = $i(g);
4632
4647
  return y && (d.inWorkVersion = y), d;
@@ -4644,28 +4659,28 @@ function $i(t) {
4644
4659
  syncViewFieldOrder: e.syncViewFieldOrder,
4645
4660
  audience: e.audience,
4646
4661
  installFor: e.installFor
4647
- } : { ...Di(e), status: Ot(t), migratedFrom: 1 };
4662
+ } : { ...ki(e), status: Ot(t), migratedFrom: 1 };
4648
4663
  }
4649
4664
  function Ot(t) {
4650
4665
  return t.status === ct.installed ? t.suspended ? V.suspended : V.installed : V.draft;
4651
4666
  }
4652
- function Qo(t, e) {
4667
+ function zo(t, e) {
4653
4668
  return e.find((a) => a.idApp === t && a.status === ct.saved);
4654
4669
  }
4655
- function zo(t, e) {
4670
+ function Zo(t, e) {
4656
4671
  return !!e.find((i) => i.idApp === t && i.status === ct.installed);
4657
4672
  }
4658
4673
  function Vi(t, e) {
4659
4674
  return t.map((a) => {
4660
4675
  try {
4661
- return a.status === ct.installed ? Yo(a, t, e) : zo(a.idApp, t) ? void 0 : $i(a);
4676
+ return a.status === ct.installed ? Qo(a, t, e) : Zo(a.idApp, t) ? void 0 : $i(a);
4662
4677
  } catch (r) {
4663
4678
  console.error(r);
4664
4679
  return;
4665
4680
  }
4666
4681
  }).filter((a) => a !== void 0);
4667
4682
  }
4668
- const Zo = {
4683
+ const el = {
4669
4684
  currentStudioApp: null,
4670
4685
  fetchCurrentStudioAppStatus: "idle",
4671
4686
  saveCurrentStudioAppStatus: "idle",
@@ -4697,7 +4712,7 @@ const Zo = {
4697
4712
  const n = e.jApi, s = { error: 1, errorMsg: "Error saving application" }, l = a().studio.currentStudioApp.currentStudioApp;
4698
4713
  if (!l)
4699
4714
  return i(s);
4700
- const d = Lo(l);
4715
+ const d = Io(l);
4701
4716
  try {
4702
4717
  await n.application.studioInstall(d), r(f.actions.success({ label: "APPSTUDIO_AppItem_Installed" })), t && t();
4703
4718
  return;
@@ -4706,7 +4721,7 @@ const Zo = {
4706
4721
  }
4707
4722
  }), lt = T({
4708
4723
  name: "currentStudioApp",
4709
- initialState: Zo,
4724
+ initialState: el,
4710
4725
  reducers: {
4711
4726
  setCurrentApp: (t, e) => {
4712
4727
  t.currentStudioApp = e.payload;
@@ -4741,12 +4756,12 @@ const Zo = {
4741
4756
  }
4742
4757
  });
4743
4758
  function Hi(t, e, i) {
4744
- const a = t.studioVersion !== 2 ? JSON.parse(JSON.stringify(Di(t))) : JSON.parse(JSON.stringify(t));
4759
+ const a = t.studioVersion !== 2 ? JSON.parse(JSON.stringify(ki(t))) : JSON.parse(JSON.stringify(t));
4745
4760
  if (delete a.inWorkVersion, i)
4746
4761
  a.manifest.version = a.manifest.version + 0.1;
4747
4762
  else {
4748
4763
  const r = M(), n = `${t.manifest.appName} Copie`;
4749
- a.idApp = r, a.status = k.DRAFT, a.manifest = {
4764
+ a.idApp = r, a.status = D.DRAFT, a.manifest = {
4750
4765
  ...a.manifest,
4751
4766
  appName: n,
4752
4767
  appShortName: n,
@@ -4758,7 +4773,7 @@ function Hi(t, e, i) {
4758
4773
  }
4759
4774
  return [a, a.idApp];
4760
4775
  }
4761
- function el({ author: t, appName: e }) {
4776
+ function tl({ author: t, appName: e }) {
4762
4777
  const i = M(), a = Object.assign(
4763
4778
  {},
4764
4779
  ...xt.map((r) => {
@@ -4794,7 +4809,7 @@ function el({ author: t, appName: e }) {
4794
4809
  newAppId: i,
4795
4810
  newStudioApp: {
4796
4811
  idApp: i,
4797
- status: k.DRAFT,
4812
+ status: D.DRAFT,
4798
4813
  author: t ?? "",
4799
4814
  studioVersion: 2,
4800
4815
  manifest: {
@@ -4834,7 +4849,7 @@ function el({ author: t, appName: e }) {
4834
4849
  function re(t, e) {
4835
4850
  return t.manifest.appName > e.manifest.appName ? 1 : -1;
4836
4851
  }
4837
- const tl = {
4852
+ const il = {
4838
4853
  loadingStudioAppsList: "idle",
4839
4854
  deleteStudioAppStatus: "idle",
4840
4855
  suspendStudioAppStatus: "idle",
@@ -4867,7 +4882,7 @@ function di(t, e, i) {
4867
4882
  });
4868
4883
  }
4869
4884
  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 } });
4885
+ const s = i.jApi, l = n().userCurrent?.uri, { newAppId: d, newStudioApp: g } = tl({ appName: t, ...l && { author: l } });
4871
4886
  try {
4872
4887
  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
4888
  } catch (y) {
@@ -4918,7 +4933,7 @@ const Ke = u("studio/createApp", async ({ appName: t, callback: e }, { extra: i,
4918
4933
  }
4919
4934
  }), et = u("studio/createInWorkStudioApp", async ({ idApp: t }, { extra: e, getState: i, rejectWithValue: a, dispatch: r }) => {
4920
4935
  const n = e.jApi, s = i().studio.studioAppsList.studioAppsList?.find((m) => m.idApp === t);
4921
- if (!s || ![k.INSTALLED, k.SUSPENDED].includes(s.status))
4936
+ if (!s || ![D.INSTALLED, D.SUSPENDED].includes(s.status))
4922
4937
  return a({ error: 1, errorMsg: "Error cloning application" });
4923
4938
  const l = i().userCurrent?.uri, [d, g] = Hi(s, l, !0), y = JSON.stringify(d);
4924
4939
  try {
@@ -4928,7 +4943,7 @@ const Ke = u("studio/createApp", async ({ appName: t, callback: e }, { extra: i,
4928
4943
  }
4929
4944
  }), Rt = T({
4930
4945
  name: "studioAppsList",
4931
- initialState: tl,
4946
+ initialState: il,
4932
4947
  reducers: {
4933
4948
  setAppsList: (t, e) => {
4934
4949
  t.studioAppsList = [...e.payload].sort(re);
@@ -4947,7 +4962,7 @@ const Ke = u("studio/createApp", async ({ appName: t, callback: e }, { extra: i,
4947
4962
  e.deleteStudioAppStatus === "pending" && (e.deleteStudioAppStatus = "idle"), e.studioAppsList = e.studioAppsList?.reduce((a, r) => {
4948
4963
  const { idApp: n } = i.meta.arg;
4949
4964
  let { status: s } = i.meta.arg;
4950
- return s === k.INSTALLED && (s = k.SUSPENDED), r.idApp === n && r.status === s ? r.inWorkVersion && r.status === k.SUSPENDED ? (r.inWorkVersion.status = k.DRAFT, [...a, r.inWorkVersion]) : a : (r.inWorkVersion?.idApp === n && r.inWorkVersion?.status === s && delete r.inWorkVersion, [...a, r]);
4965
+ return s === D.INSTALLED && (s = D.SUSPENDED), r.idApp === n && r.status === s ? r.inWorkVersion && r.status === D.SUSPENDED ? (r.inWorkVersion.status = D.DRAFT, [...a, r.inWorkVersion]) : a : (r.inWorkVersion?.idApp === n && r.inWorkVersion?.status === s && delete r.inWorkVersion, [...a, r]);
4951
4966
  }, []) ?? [];
4952
4967
  }).addCase(Ye.rejected, (e) => {
4953
4968
  e.deleteStudioAppStatus === "pending" && (e.deleteStudioAppStatus = "idle");
@@ -4956,7 +4971,7 @@ const Ke = u("studio/createApp", async ({ appName: t, callback: e }, { extra: i,
4956
4971
  }).addCase(Qe.fulfilled, (e, i) => {
4957
4972
  e.suspendStudioAppStatus === "pending" && (e.suspendStudioAppStatus = "idle"), e.studioAppsList = e.studioAppsList?.map((a) => {
4958
4973
  const { idApp: r } = i.meta.arg;
4959
- return a.idApp === r && (a.status = k.SUSPENDED), a;
4974
+ return a.idApp === r && (a.status = D.SUSPENDED), a;
4960
4975
  }) ?? [];
4961
4976
  }).addCase(Qe.rejected, (e) => {
4962
4977
  e.suspendStudioAppStatus === "pending" && (e.suspendStudioAppStatus = "idle");
@@ -4965,7 +4980,7 @@ const Ke = u("studio/createApp", async ({ appName: t, callback: e }, { extra: i,
4965
4980
  }).addCase(ze.fulfilled, (e, i) => {
4966
4981
  e.restartStudioAppStatus === "pending" && (e.restartStudioAppStatus = "idle"), e.studioAppsList = e.studioAppsList?.map((a) => {
4967
4982
  const { idApp: r } = i.meta.arg;
4968
- return a.idApp === r && (a.status = k.INSTALLED), a;
4983
+ return a.idApp === r && (a.status = D.INSTALLED), a;
4969
4984
  }) ?? [];
4970
4985
  }).addCase(ze.rejected, (e) => {
4971
4986
  e.restartStudioAppStatus === "pending" && (e.restartStudioAppStatus = "idle");
@@ -4991,21 +5006,21 @@ const Ke = u("studio/createApp", async ({ appName: t, callback: e }, { extra: i,
4991
5006
  e.createNewStudioAppStatus === "pending" && (e.createNewStudioAppStatus = "idle");
4992
5007
  });
4993
5008
  }
4994
- }), il = O({
5009
+ }), al = O({
4995
5010
  [Rt.name]: Rt.reducer,
4996
5011
  [lt.name]: lt.reducer
4997
5012
  });
4998
- function al(t) {
5013
+ function rl(t) {
4999
5014
  return t.studio.studioAppsList;
5000
5015
  }
5001
- function rl(t) {
5016
+ function nl(t) {
5002
5017
  return t.studio.currentStudioApp;
5003
5018
  }
5004
- const nl = {
5019
+ const sl = {
5005
5020
  name: "studio",
5006
- reducer: il
5021
+ reducer: al
5007
5022
  }, Vl = {
5008
- slice: nl,
5023
+ slice: sl,
5009
5024
  actions: {
5010
5025
  ...Rt.actions,
5011
5026
  ...lt.actions,
@@ -5021,8 +5036,8 @@ const nl = {
5021
5036
  createInWorkStudioApp: et
5022
5037
  },
5023
5038
  selectors: {
5024
- selectStudioAppsList: al,
5025
- selectCurrentStudioApp: rl
5039
+ selectStudioAppsList: rl,
5040
+ selectCurrentStudioApp: nl
5026
5041
  },
5027
5042
  utils: {
5028
5043
  updateViewsFromFields: _i,
@@ -5059,69 +5074,69 @@ const nl = {
5059
5074
  e.loading = "idle";
5060
5075
  });
5061
5076
  }
5062
- }), sl = (t) => t.wall, ol = (t) => t.wall.filters, ll = (t) => t.wall.taxonomies, Hl = {
5077
+ }), ol = (t) => t.wall, ll = (t) => t.wall.filters, dl = (t) => t.wall.taxonomies, Hl = {
5063
5078
  slice: ui,
5064
5079
  actions: { ...ui.actions, fetchWallFilters: tt },
5065
5080
  selectors: {
5066
- selectWall: sl,
5067
- selectWallFilters: ol,
5068
- selectWallFiltersTaxonomies: ll
5081
+ selectWall: ol,
5082
+ selectWallFilters: ll,
5083
+ selectWallFiltersTaxonomies: dl
5069
5084
  }
5070
5085
  };
5071
5086
  export {
5072
- k as APP_STATUS_TYPE,
5087
+ D as APP_STATUS_TYPE,
5073
5088
  nt as AUDIENCE,
5074
- gl as AdminLogs,
5075
- ml as Animations,
5076
- Gs as AppColumnsDefaultTypes,
5089
+ fl as AdminLogs,
5090
+ yl as Animations,
5091
+ Xs as AppColumnsDefaultTypes,
5077
5092
  S as AppFieldFormPropertyTypes,
5078
5093
  jt as AppFormBannedFromViews,
5079
- Js as AppFormFieldOnlyInView,
5094
+ Ks as AppFormFieldOnlyInView,
5080
5095
  $l as AppFormFixedList,
5081
5096
  o as AppFormItemTypes,
5082
- Xs as AppFormNoAsFieldList,
5083
- Ks as AppFormNonPrimaryList,
5097
+ Js as AppFormNoAsFieldList,
5098
+ Ys as AppFormNonPrimaryList,
5084
5099
  Ri as AppFormPrimaryListValues,
5085
5100
  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,
5101
+ Al as Application,
5102
+ pl as Article,
5103
+ El as AssetReservation,
5104
+ Tl as Bookmark,
5105
+ Cl as Calendar,
5106
+ bl as Comment,
5107
+ Sl as ContentReport,
5108
+ zs as Description,
5109
+ Qs as Element,
5110
+ Hs as ExtraAppFieldsItemName,
5096
5111
  p as ExtraAppFieldsItemViews,
5097
- bl as ExtraBot,
5098
- wl as Faq,
5099
- Ll as FileIntegrity,
5112
+ wl as ExtraBot,
5113
+ Ll as Faq,
5114
+ Il as FileIntegrity,
5100
5115
  Yt as FileIntegritySlice,
5101
- Il as Hook,
5102
- hl as MagicPad,
5116
+ vl as Hook,
5117
+ Ol as MagicPad,
5103
5118
  q as MapExtraFieldsWithView,
5104
- Rl as MediaLibrary,
5119
+ kl as MediaLibrary,
5105
5120
  Hr as Model,
5106
5121
  Dl as Network,
5107
- kl as Platform,
5122
+ Ml as Platform,
5108
5123
  st as STUDIO_VIEW,
5109
- xl as Share,
5124
+ jl as Share,
5110
5125
  Bl as SocialActions,
5111
5126
  V as StatusType,
5112
5127
  Nl as TVDisplay,
5113
- _l as TeamWork,
5128
+ fn as TeamWork,
5114
5129
  Pl as TinyMCE,
5115
5130
  f as Toast,
5116
5131
  Ul as UserCurrent,
5117
5132
  Hl as Wall,
5118
- Ml as WedocApp,
5119
- Us as Widget,
5133
+ xl as WedocApp,
5134
+ Fs as Widget,
5120
5135
  Wl as WidgetEditor,
5121
5136
  Zi as actions,
5122
- pl as adminLogsReducer,
5137
+ gl as adminLogsReducer,
5123
5138
  gi as adminLogsSlice,
5124
- fl as animationsReducer,
5139
+ ml as animationsReducer,
5125
5140
  fi as animationsSlice,
5126
5141
  _a as contentReportSlice,
5127
5142
  Re as deleteQuarantine,
@@ -5140,9 +5155,9 @@ export {
5140
5155
  me as fetchReports,
5141
5156
  tt as fetchWallFilters,
5142
5157
  ci as initialState,
5143
- vl as jland,
5158
+ hl as jland,
5144
5159
  vr as magicPadSlice,
5145
- Ol as mediaLibraryReducer,
5160
+ Rl as mediaLibraryReducer,
5146
5161
  Ti as mediaLibrarySlice,
5147
5162
  Oe as releaseQuarantine,
5148
5163
  Le as saveExtraBot,
@@ -5150,13 +5165,13 @@ export {
5150
5165
  nr as selectExtraBotListMines,
5151
5166
  gr as selectFileIntegrityAction,
5152
5167
  fr as selectFileIntegrityList,
5153
- sl as selectWall,
5154
- ol as selectWallFilters,
5155
- ll as selectWallFiltersTaxonomies,
5168
+ ol as selectWall,
5169
+ ll as selectWallFilters,
5170
+ dl as selectWallFiltersTaxonomies,
5156
5171
  ii as slice,
5157
5172
  Vl as studio,
5158
5173
  wi as teamWorkSlice,
5159
- jl as teamworkReducer,
5174
+ _l as teamworkReducer,
5160
5175
  we as toggleExtraBotActivation,
5161
5176
  ar as updateListBotProperty,
5162
5177
  ye as updateStatus,