@beam3_dev/api_module 0.0.308 → 0.0.309

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.
package/dist/wb3Api.js CHANGED
@@ -50,7 +50,7 @@ async function xe(e, t = void 0, n = void 0) {
50
50
  n && n(i), console.error("Erreur : " + i);
51
51
  });
52
52
  }
53
- async function Ie(e, t = void 0, n = void 0) {
53
+ async function Ue(e, t = void 0, n = void 0) {
54
54
  e = encodeURIComponent(e), await fetch(
55
55
  "https://api-adresse.data.gouv.fr/search/?q=" + e + "&limit=15",
56
56
  {
@@ -65,7 +65,7 @@ async function Ie(e, t = void 0, n = void 0) {
65
65
  n && n(s), console.error("Erreur : " + s);
66
66
  });
67
67
  }
68
- async function Ne(e, t = z) {
68
+ async function Ie(e, t = z) {
69
69
  let n = O.now().year;
70
70
  const s = e, i = [], r = (o) => {
71
71
  for (let c in o)
@@ -89,7 +89,7 @@ async function Ne(e, t = z) {
89
89
  } : s;
90
90
  for (let c of i)
91
91
  o.events.findIndex(
92
- (u) => u.start === O.fromISO(c.date).toISODate() && u.name === "Férié : " + c.comment
92
+ (p) => p.start === O.fromISO(c.date).toISODate() && p.name === "Férié : " + c.comment
93
93
  ) === -1 && o.events.push({
94
94
  name: "Férié : " + c.comment,
95
95
  start: O.fromISO(c.date).toISODate(),
@@ -134,7 +134,7 @@ function Q(e, t, n) {
134
134
  };
135
135
  o(r);
136
136
  }
137
- async function Ue(e, t, n = !0) {
137
+ async function Ne(e, t, n = !0) {
138
138
  const s = e.events.findIndex((i) => i.uuid === t.uuid);
139
139
  return s === -1 ? e.events.push(t) : n ? e.events[s] = t : e.events.splice(s, 1), e.length > 0 && e.sort((i, r) => i.start - r.start), e;
140
140
  }
@@ -258,9 +258,9 @@ function Ae(e, t, n) {
258
258
  Accept: "application/json"
259
259
  },
260
260
  onComplete(r, a, o) {
261
- const c = JSON.parse(r), d = c.data.map((u) => {
262
- const p = u.attributes.name, f = u.id;
263
- return { name: p, id: f };
261
+ const c = JSON.parse(r), d = c.data.map((p) => {
262
+ const u = p.attributes.name, f = p.id;
263
+ return { name: u, id: f };
264
264
  });
265
265
  t && t(d, c);
266
266
  },
@@ -322,10 +322,10 @@ function Me(e, t, n = void 0, s = void 0) {
322
322
  onComplete(d) {
323
323
  n && n(JSON.parse(d));
324
324
  },
325
- onFailure(d, u) {
325
+ onFailure(d, p) {
326
326
  console.log(d);
327
- const p = d;
328
- p.msg = u.errormsg, p.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", p), s && s(p);
327
+ const u = d;
328
+ u.msg = p.errormsg, u.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", u), s && s(u);
329
329
  }
330
330
  });
331
331
  }
@@ -343,8 +343,8 @@ function Je(e, t, n = void 0, s = void 0) {
343
343
  n && n(JSON.parse(f));
344
344
  },
345
345
  onFailure(f, l) {
346
- const h = f;
347
- h.msg = l.errormsg, h.errCode = l.errorcode, s && s(h);
346
+ const g = f;
347
+ g.msg = l.errormsg, g.errCode = l.errorcode, s && s(g);
348
348
  }
349
349
  });
350
350
  }
@@ -355,44 +355,47 @@ function ee(e, t = void 0, n = void 0) {
355
355
  }, d = `${r}${a}${o}`;
356
356
  m(d, {
357
357
  OPTsH: c,
358
- onComplete(u) {
359
- t && t(JSON.parse(u));
358
+ onComplete(p) {
359
+ t && t(JSON.parse(p));
360
360
  },
361
- onFailure(u, p) {
362
- const f = u;
363
- f.msg = p.errormsg, f.errCode = p.errorcode, n && n(f);
361
+ onFailure(p, u) {
362
+ const f = p;
363
+ f.function = "getUsersGroupRules()", f.msg = u.errormsg, f.errCode = u.errorcode, n && n(f);
364
364
  }
365
365
  });
366
366
  }
367
367
  function Ge(e, t = void 0, n = void 0) {
368
- const { _usersgroup: s, currentUser: i } = e, o = `${s}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility`, d = { method: "GET", headers: {
368
+ const { _usersgroup: s, currentUser: i } = e, c = `${s}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility&top=100`, p = { method: "GET", headers: {
369
369
  "Content-Type": "application/json",
370
370
  Accept: "application/json,text/javascript,*/*"
371
371
  } };
372
372
  try {
373
- m(o, {
374
- opts: d,
373
+ m(c, {
374
+ opts: p,
375
375
  onComplete(u) {
376
- const p = JSON.parse(u), f = {}, l = p.groups.filter((h) => h.uri.startsWith("uuid:"));
376
+ const f = JSON.parse(u), l = {}, g = f.groups.filter((h) => h.uri.startsWith("uuid:"));
377
377
  if (i && Object.keys(i).length > 0) {
378
- const h = l.filter((y) => y.owner === i.email), g = l.filter((y) => y.members.includes(i.email)), _ = h.concat(g);
379
- f.iam = _, f.UG = l, f.iamMember = g, ee(
378
+ const h = g.filter((y) => y.owner === i.email), _ = g.filter((y) => y.members.includes(i.email)), S = h.concat(_);
379
+ l.iam = S, l.UG = g, l.iamMember = _, l.all = f, ee(
380
380
  e,
381
381
  (y) => {
382
- f.rules = y, t && t(f);
382
+ l.rules = y, t && t(l);
383
383
  },
384
384
  (y) => {
385
- n && n(y);
385
+ y.function += ", getUserGroupsList()", n && n(y);
386
386
  }
387
387
  );
388
388
  }
389
389
  },
390
- onFailure(u) {
391
- n && n(u);
390
+ onFailure(u, f) {
391
+ const l = u;
392
+ l.function = "getUserGroupsList()", l.msg = f.errormsg, l.errCode = f.errorcode, n && n(l);
392
393
  }
393
394
  });
394
395
  } catch (u) {
395
396
  console.log(u);
397
+ const f = { infoError: u, fonction: "getUserGroupsList()", catch: new Error("Erreur sur la fonction getUserGroupsList()", { cause: u }) };
398
+ n(f);
396
399
  }
397
400
  }
398
401
  function Ke(e, t) {
@@ -410,17 +413,17 @@ function qe(e, t, n, s = void 0, i = void 0) {
410
413
  nexURImem: "/members",
411
414
  OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
412
415
  OPTsTenant: `tenant=dstenant:${a}`
413
- }, c = n, d = `${r}${o.URIUGr}/${t}`, u = JSON.stringify(c);
416
+ }, c = n, d = `${r}${o.URIUGr}/${t}`, p = JSON.stringify(c);
414
417
  m(d, {
415
418
  headers: j,
416
419
  method: "PATCH",
417
- data: u,
420
+ data: p,
418
421
  type: "json",
419
- onComplete(p) {
420
- s && s(p);
422
+ onComplete(u) {
423
+ s && s(u);
421
424
  },
422
- onFailure(p) {
423
- i && i(p);
425
+ onFailure(u) {
426
+ i && i(u);
424
427
  }
425
428
  });
426
429
  }
@@ -470,7 +473,7 @@ async function te(e, t, n) {
470
473
  });
471
474
  }
472
475
  }
473
- var I = {};
476
+ var U = {};
474
477
  function ne(e, t) {
475
478
  return Object.prototype.hasOwnProperty.call(e, t);
476
479
  }
@@ -486,8 +489,8 @@ var se = function(e, t, n, s) {
486
489
  var o = e.length;
487
490
  a > 0 && o > a && (o = a);
488
491
  for (var c = 0; c < o; ++c) {
489
- var d = e[c].replace(r, "%20"), u = d.indexOf(n), p, f, l, h;
490
- u >= 0 ? (p = d.substr(0, u), f = d.substr(u + 1)) : (p = d, f = ""), l = decodeURIComponent(p), h = decodeURIComponent(f), ne(i, l) ? Array.isArray(i[l]) ? i[l].push(h) : i[l] = [i[l], h] : i[l] = h;
492
+ var d = e[c].replace(r, "%20"), p = d.indexOf(n), u, f, l, g;
493
+ p >= 0 ? (u = d.substr(0, p), f = d.substr(p + 1)) : (u = d, f = ""), l = decodeURIComponent(u), g = decodeURIComponent(f), ne(i, l) ? Array.isArray(i[l]) ? i[l].push(g) : i[l] = [i[l], g] : i[l] = g;
491
494
  }
492
495
  return i;
493
496
  }, x = function(e) {
@@ -509,8 +512,8 @@ var se = function(e, t, n, s) {
509
512
  }).join(t) : r + encodeURIComponent(x(e[i]));
510
513
  }).filter(Boolean).join(t) : s ? encodeURIComponent(x(s)) + n + encodeURIComponent(x(e)) : "";
511
514
  };
512
- I.decode = I.parse = se;
513
- I.encode = I.stringify = ie;
515
+ U.decode = U.parse = se;
516
+ U.encode = U.stringify = ie;
514
517
  async function J(e, t = void 0, n = void 0, s = void 0) {
515
518
  const i = e.space;
516
519
  if (t === void 0) {
@@ -534,7 +537,7 @@ async function Xe(e, t = void 0, n = void 0, s = void 0) {
534
537
  console.log("Le paramètre docids est obligatoire");
535
538
  return;
536
539
  }
537
- let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, a = I.stringify({
540
+ let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, a = U.stringify({
538
541
  $ids: t.toString().replace('"', "").replace("[", "").replace("]", "")
539
542
  });
540
543
  m(r, {
@@ -544,15 +547,15 @@ async function Xe(e, t = void 0, n = void 0, s = void 0) {
544
547
  },
545
548
  data: a,
546
549
  onComplete(o, c, d) {
547
- const u = JSON.parse(o);
548
- n && n(u);
550
+ const p = JSON.parse(o);
551
+ n && n(p);
549
552
  },
550
553
  onFailure(o) {
551
554
  s && s(o);
552
555
  }
553
556
  });
554
557
  }
555
- function U(e, t = void 0, n = void 0) {
558
+ function N(e, t = void 0, n = void 0) {
556
559
  if (e.objID && e.objID !== "") {
557
560
  let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
558
561
  m(s, {
@@ -596,7 +599,7 @@ function b(e, t = void 0, n = void 0) {
596
599
  }
597
600
  function D(e, t = void 0, n = void 0) {
598
601
  let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
599
- U(
602
+ N(
600
603
  e,
601
604
  (i) => {
602
605
  m(s, {
@@ -651,7 +654,7 @@ function G(e, t, n, s, i, r = void 0, a = void 0) {
651
654
  r,
652
655
  a
653
656
  );
654
- e.token ? o() : U(
657
+ e.token ? o() : N(
655
658
  e,
656
659
  t,
657
660
  (c) => {
@@ -677,15 +680,15 @@ function ae(e, t, n, s, i, r, a = void 0, o = void 0) {
677
680
  }
678
681
  }),
679
682
  type: "json",
680
- onComplete(d, u, p) {
681
- const f = d.csrf, l = d.data[0].dataelements, h = new FormData();
682
- let g;
683
- s instanceof Blob ? g = s : g = new Blob([s], {
683
+ onComplete(d, p, u) {
684
+ const f = d.csrf, l = d.data[0].dataelements, g = new FormData();
685
+ let h;
686
+ s instanceof Blob ? h = s : h = new Blob([s], {
684
687
  type: "text/plain"
685
- }), h.append(l.ticketparamname, l.ticket), h.append("file_0", g, i);
688
+ }), g.append(l.ticketparamname, l.ticket), g.append("file_0", h, i);
686
689
  const _ = {};
687
- _.method = "POST", _.data = h, _.onComplete = function(y) {
688
- let w = {
690
+ _.method = "POST", _.data = g, _.onComplete = function(S) {
691
+ let y = {
689
692
  method: "PUT",
690
693
  headers: {
691
694
  SecurityContext: "ctx::" + e.ctx
@@ -699,7 +702,7 @@ function ae(e, t, n, s, i, r, a = void 0, o = void 0) {
699
702
  {
700
703
  dataelements: {
701
704
  title: i,
702
- receipt: y
705
+ receipt: S
703
706
  },
704
707
  updateAction: "REVISE"
705
708
  }
@@ -711,19 +714,19 @@ function ae(e, t, n, s, i, r, a = void 0, o = void 0) {
711
714
  ]
712
715
  }),
713
716
  type: "json",
714
- onComplete(S) {
715
- a && a(S);
717
+ onComplete(w) {
718
+ a && a(w);
716
719
  },
717
- onFailure(S) {
718
- o && o(S);
720
+ onFailure(w) {
721
+ o && o(w);
719
722
  }
720
723
  };
721
724
  e.tenant.toUpperCase(), m(
722
725
  e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${e.tenant.toUpperCase()}&e6w-lang=fr&e6w-timezone=-60&xrequestedwith=xmlhttprequest`,
723
- w
726
+ y
724
727
  );
725
- }, _.onFailure = function(y) {
726
- o && o(y);
728
+ }, _.onFailure = function(S) {
729
+ o && o(S);
727
730
  }, _.timeout = 0, m(l.ticketURL, _);
728
731
  }
729
732
  });
@@ -779,27 +782,27 @@ async function Ye(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
779
782
  `https://${a.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/session?tenant=${a.toUpperCase()}&xrequestedwith=xmlhttprequest`,
780
783
  {
781
784
  method: "GET",
782
- onComplete(u) {
785
+ onComplete(p) {
783
786
  try {
784
- u = JSON.parse(u);
785
- const { csrftoken: p, isadmin: f } = u;
786
- p && m(d, {
787
+ p = JSON.parse(p);
788
+ const { csrftoken: u, isadmin: f } = p;
789
+ u && m(d, {
787
790
  method: "GET",
788
791
  headers: {
789
792
  //"x-ds-csrftoken": csrftoken,
790
793
  Accept: "application/json"
791
794
  },
792
- onComplete(l, h, g) {
795
+ onComplete(l, g, h) {
793
796
  try {
794
797
  if (l = JSON.parse(l), l?.ticket) {
795
- const { ticket: _, actionurl: y, jobticket: w } = l;
798
+ const { ticket: _, actionurl: S, jobticket: y } = l;
796
799
  K(
797
- { dataelements: { ticket: _, ticketURL: y } },
800
+ { dataelements: { ticket: _, ticketURL: S } },
798
801
  n,
799
802
  t,
800
- (S) => {
803
+ (w) => {
801
804
  const R = new DOMParser().parseFromString(
802
- S,
805
+ w,
803
806
  "text/html"
804
807
  ).body.firstChild.querySelector("input").getAttributeNode("value").value, k = `https://${a.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(o)}/contents?receipt=${encodeURIComponent(R)}`;
805
808
  let W = /(?:\.([^.]+))?$/.exec(t)[1];
@@ -824,26 +827,26 @@ async function Ye(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
824
827
  headers: {
825
828
  Accept: "application/json",
826
829
  "Content-Type": "application/json;charset=UTF-8",
827
- "X-DS-CSRFTOKEN": p
830
+ "X-DS-CSRFTOKEN": u
828
831
  },
829
832
  data: v,
830
833
  type: "json",
831
- onComplete(N, Ce, be) {
832
- s && s(N);
834
+ onComplete(I, Ce, be) {
835
+ s && s(I);
833
836
  },
834
- onFailure(N) {
837
+ onFailure(I) {
835
838
  console.warn(
836
839
  "_3DSpace_Upload_Doc | pushFileInFcs | onFailure",
837
- { url: k, bodyRequest: v, err: N }
838
- ), i && i(N);
840
+ { url: k, bodyRequest: v, err: I }
841
+ ), i && i(I);
839
842
  }
840
843
  });
841
844
  },
842
- (S) => {
843
- console.warn("pushFileInFcs", S), i && i(S);
845
+ (w) => {
846
+ console.warn("pushFileInFcs", w), i && i(w);
844
847
  },
845
- (S) => {
846
- r && r({ fileName: t, progress: S });
848
+ (w) => {
849
+ r && r({ fileName: t, progress: w });
847
850
  }
848
851
  );
849
852
  }
@@ -859,8 +862,8 @@ async function Ye(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
859
862
  i && i();
860
863
  }
861
864
  },
862
- onFailure(u) {
863
- i && i(u);
865
+ onFailure(p) {
866
+ i && i(p);
864
867
  }
865
868
  }
866
869
  );
@@ -956,8 +959,8 @@ function K(e, t, n, s = void 0, i = void 0, r = void 0) {
956
959
  const c = new XMLHttpRequest();
957
960
  c.open("POST", o, !0), c.upload.onprogress = function(d) {
958
961
  if (d.lengthComputable) {
959
- const u = d.loaded / d.total * 100;
960
- r && r(u);
962
+ const p = d.loaded / d.total * 100;
963
+ r && r(p);
961
964
  }
962
965
  }, c.onload = function() {
963
966
  c.status === 200 ? s && s(c.responseText.replace(/[\n\r]/g, "")) : i && i(c.statusText);
@@ -1018,40 +1021,40 @@ function F(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, a = !1
1018
1021
  method: "GET",
1019
1022
  onComplete(c) {
1020
1023
  const d = JSON.parse(c);
1021
- let u = "", p, f, l;
1024
+ let p = "", u, f, l;
1022
1025
  if (t) {
1023
- let h = d.collabspaces.find((g) => g.title === t);
1024
- if (h) {
1025
- p = t;
1026
- let g = h.couples;
1027
- g = g.filter(
1028
- (_, y, w) => y === w.findIndex(
1029
- (S) => S.organization.pid === _.organization.pid && S.role.pid === _.role.pid
1026
+ let g = d.collabspaces.find((h) => h.title === t);
1027
+ if (g) {
1028
+ u = t;
1029
+ let h = g.couples;
1030
+ h = h.filter(
1031
+ (_, S, y) => S === y.findIndex(
1032
+ (w) => w.organization.pid === _.organization.pid && w.role.pid === _.role.pid
1030
1033
  )
1031
1034
  ), n && (Array.isArray(n) ? n.forEach((_) => {
1032
- l || g.forEach((y) => {
1033
- if (_ === y.role.name && s === y.organization.title)
1035
+ l || h.forEach((S) => {
1036
+ if (_ === S.role.name && s === S.organization.title)
1034
1037
  l = _, f = s;
1035
- else if (_ === y.role.name) {
1036
- let w = g.filter(
1037
- (S) => S.role.name === _
1038
+ else if (_ === S.role.name) {
1039
+ let y = h.filter(
1040
+ (w) => w.role.name === _
1038
1041
  );
1039
- w.length === 1 ? (l = w[0].role.name, f = w[0].organization.title) : r(w);
1042
+ y.length === 1 ? (l = y[0].role.name, f = y[0].organization.title) : r(y);
1040
1043
  }
1041
1044
  });
1042
- }) : g.forEach((_) => {
1045
+ }) : h.forEach((_) => {
1043
1046
  if (n === _.role.name && s === _.organization.title)
1044
1047
  l = n, f = s;
1045
1048
  else if (n === _.role.name) {
1046
- let y = g.filter(
1047
- (w) => w.role.name === n
1049
+ let S = h.filter(
1050
+ (y) => y.role.name === n
1048
1051
  );
1049
- y.length === 1 ? (l = y[0].role.name, f = y[0].organization.title) : r(y);
1052
+ S.length === 1 ? (l = S[0].role.name, f = S[0].organization.title) : r(S);
1050
1053
  }
1051
1054
  }));
1052
1055
  }
1053
1056
  }
1054
- p && f && l ? (u = l + "." + f + "." + p, i(u)) : d.preferredcredentials && a ? (u = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(u)) : r && (u = l + "." + f + "." + p, r(u));
1057
+ u && f && l ? (p = l + "." + f + "." + u, i(p)) : d.preferredcredentials && a ? (p = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(p)) : r && (p = l + "." + f + "." + u, r(p));
1055
1058
  },
1056
1059
  onFailure(c, d) {
1057
1060
  console.warn("Erreur de récupération du contexte de sécurité. => ", {
@@ -1148,30 +1151,30 @@ function de(e, t, n = void 0, s = void 0, i = void 0) {
1148
1151
  type: "json",
1149
1152
  onComplete(c) {
1150
1153
  const d = c.data;
1151
- c.success === !0 && (n && n(), d.forEach((u) => {
1154
+ c.success === !0 && (n && n(), d.forEach((p) => {
1152
1155
  try {
1153
- const p = u.dataelements.fileName, f = u.dataelements.ticketURL;
1156
+ const u = p.dataelements.fileName, f = p.dataelements.ticketURL;
1154
1157
  m(f, {
1155
- onComplete: (l, h) => {
1156
- let g;
1158
+ onComplete: (l, g) => {
1159
+ let h;
1157
1160
  try {
1158
- g = JSON.parse(l);
1161
+ h = JSON.parse(l);
1159
1162
  } catch {
1160
- g = l.blob();
1163
+ h = l.blob();
1161
1164
  }
1162
1165
  s && s({
1163
- objectId: u.id,
1164
- headers: h,
1165
- fileName: p,
1166
- data: g
1166
+ objectId: p.id,
1167
+ headers: g,
1168
+ fileName: u,
1169
+ data: h
1167
1170
  });
1168
1171
  },
1169
1172
  onFailure: (l) => {
1170
1173
  console.log("error http", l);
1171
1174
  }
1172
1175
  });
1173
- } catch (p) {
1174
- console.log(p), i && i(p);
1176
+ } catch (u) {
1177
+ console.log(u), i && i(u);
1175
1178
  }
1176
1179
  }));
1177
1180
  },
@@ -1397,14 +1400,14 @@ function st(e, t, n = void 0, s = void 0) {
1397
1400
  const { tenant: a, ctx: o, space: c } = e;
1398
1401
  (!a || !o || !c) && r({ error: "Erreur de credentials", tenant: a, ctx: o, space: c });
1399
1402
  const d = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=1&withAttributes=1&withCopyFrom=1&tenant=${e.tenant.toUpperCase()}&xrequestedwith=xmlhttprequest`;
1400
- let u;
1403
+ let p;
1401
1404
  await ue(e).then(
1402
- (f) => u = f?.SecurityContext
1405
+ (f) => p = f?.SecurityContext
1403
1406
  );
1404
- let p = {
1407
+ let u = {
1405
1408
  method: "POST",
1406
1409
  headers: {
1407
- securitycontext: "ctx::" + u,
1410
+ securitycontext: "ctx::" + p,
1408
1411
  Accept: "application/json",
1409
1412
  "Content-Type": "application/json"
1410
1413
  },
@@ -1424,7 +1427,7 @@ function st(e, t, n = void 0, s = void 0) {
1424
1427
  s && s(f), r(f);
1425
1428
  }
1426
1429
  };
1427
- m(d, p);
1430
+ m(d, u);
1428
1431
  });
1429
1432
  }
1430
1433
  function it(e, t, n, s, i = void 0, r = void 0) {
@@ -1440,7 +1443,7 @@ function it(e, t, n, s, i = void 0, r = void 0) {
1440
1443
  items: []
1441
1444
  };
1442
1445
  t && (d.parentId = t), d.items.push(c);
1443
- let u = {
1446
+ let p = {
1444
1447
  method: "POST",
1445
1448
  headers: {
1446
1449
  Accept: "application/json",
@@ -1450,14 +1453,14 @@ function it(e, t, n, s, i = void 0, r = void 0) {
1450
1453
  },
1451
1454
  data: JSON.stringify(d),
1452
1455
  type: "json",
1453
- onComplete(p) {
1454
- i && i(p);
1456
+ onComplete(u) {
1457
+ i && i(u);
1455
1458
  },
1456
- onFailure(p) {
1457
- r && r(p);
1459
+ onFailure(u) {
1460
+ r && r(u);
1458
1461
  }
1459
1462
  };
1460
- m(o, u);
1463
+ m(o, p);
1461
1464
  });
1462
1465
  }
1463
1466
  function at(e, t, n, s, i = void 0, r = void 0) {
@@ -1536,7 +1539,7 @@ async function ct(e, t, n = void 0, s = void 0) {
1536
1539
  }
1537
1540
  function dt(e, t, n, s = void 0, i = void 0) {
1538
1541
  const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
1539
- e = { ...e, objID: n }, U(
1542
+ e = { ...e, objID: n }, N(
1540
1543
  e,
1541
1544
  (a) => {
1542
1545
  console.log("_3DSpace_get_csrf | onDone | data", a);
@@ -1563,7 +1566,7 @@ function dt(e, t, n, s = void 0, i = void 0) {
1563
1566
  let B, E;
1564
1567
  const A = [];
1565
1568
  async function ut(e, t = void 0, n = void 0) {
1566
- e.objID && e.objID !== "" ? U(
1569
+ e.objID && e.objID !== "" ? N(
1567
1570
  e,
1568
1571
  (s) => {
1569
1572
  t && t(s);
@@ -1647,7 +1650,7 @@ function ft(e, t, n = void 0, s = void 0) {
1647
1650
  uri: "/resources/6w/tags",
1648
1651
  otpCTX: "SecurityContext=preferred",
1649
1652
  optTenant: `tenant=${r}`
1650
- }, u = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
1653
+ }, p = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, u = {
1651
1654
  tag: [
1652
1655
  {
1653
1656
  subject: [
@@ -1662,13 +1665,13 @@ function ft(e, t, n = void 0, s = void 0) {
1662
1665
  }
1663
1666
  ]
1664
1667
  };
1665
- m(u, {
1668
+ m(p, {
1666
1669
  method: "PUT",
1667
1670
  headers: {
1668
1671
  "Content-Type": "application/json",
1669
1672
  Accept: "application/json"
1670
1673
  },
1671
- data: JSON.stringify(p),
1674
+ data: JSON.stringify(u),
1672
1675
  onComplete(f) {
1673
1676
  JSON.parse(f);
1674
1677
  const l = {};
@@ -1676,33 +1679,33 @@ function ft(e, t, n = void 0, s = void 0) {
1676
1679
  J(
1677
1680
  e,
1678
1681
  a,
1679
- (h) => {
1680
- const g = h.data[0].dataelements.title, _ = h.data[0].dataelements.fileExtension !== void 0 ? h.data[0].dataelements.fileExtension : "", y = h.data[0].relateddata.ownerInfo[0].dataelements.name;
1681
- l.name = g, l.ext = _, l.createBy = y, t.info = { ...l }, he(
1682
+ (g) => {
1683
+ const h = g.data[0].dataelements.title, _ = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", S = g.data[0].relateddata.ownerInfo[0].dataelements.name;
1684
+ l.name = h, l.ext = _, l.createBy = S, t.info = { ...l }, ge(
1682
1685
  e,
1683
1686
  t,
1684
- (w) => {
1685
- n && n(w);
1687
+ (y) => {
1688
+ n && n(y);
1686
1689
  },
1687
- (w) => {
1688
- s && s(w);
1690
+ (y) => {
1691
+ s && s(y);
1689
1692
  }
1690
1693
  );
1691
1694
  },
1692
- (h, g) => {
1693
- const _ = h;
1694
- _.msg = g.errormsg, _.errCode = g.errorcode, console.log("❌ sendDirectMessage => ", _), s && s(_);
1695
+ (g, h) => {
1696
+ const _ = g;
1697
+ _.msg = h.errormsg, _.errCode = h.errorcode, console.log("❌ sendDirectMessage => ", _), s && s(_);
1695
1698
  }
1696
1699
  );
1697
1700
  }, 2e3);
1698
1701
  },
1699
1702
  onFailure(f, l) {
1700
- const h = f;
1701
- h.msg = l.errormsg, h.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", h), s && s(h);
1703
+ const g = f;
1704
+ g.msg = l.errormsg, g.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", g), s && s(g);
1702
1705
  }
1703
1706
  });
1704
1707
  }
1705
- function he(e, t, n = void 0, s = void 0) {
1708
+ function ge(e, t, n = void 0, s = void 0) {
1706
1709
  console.log("obj ", t);
1707
1710
  const i = t.info.name, r = {
1708
1711
  baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
@@ -1775,13 +1778,13 @@ function he(e, t, n = void 0, s = void 0) {
1775
1778
  method: "POST",
1776
1779
  headers: o,
1777
1780
  data: JSON.stringify(d),
1778
- onComplete(u) {
1779
- const p = JSON.parse(u);
1780
- n(p);
1781
+ onComplete(p) {
1782
+ const u = JSON.parse(p);
1783
+ n(u);
1781
1784
  },
1782
- onFailure(u, p) {
1783
- const f = u;
1784
- f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f), console.log("Erreur de recuperation d'id du doc et des tags", u);
1785
+ onFailure(p, u) {
1786
+ const f = p;
1787
+ f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f), console.log("Erreur de recuperation d'id du doc et des tags", p);
1785
1788
  }
1786
1789
  });
1787
1790
  }
@@ -1812,16 +1815,16 @@ function mt(e, t, n = void 0, s = void 0) {
1812
1815
  "Content-Type": "application/json",
1813
1816
  Accept: "application/json,text/javascript,*/*"
1814
1817
  },
1815
- onComplete(u) {
1816
- n && n(u);
1818
+ onComplete(p) {
1819
+ n && n(p);
1817
1820
  },
1818
- onFailure(u, p) {
1819
- const f = u;
1820
- f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f);
1821
+ onFailure(p, u) {
1822
+ const f = p;
1823
+ f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f);
1821
1824
  }
1822
1825
  });
1823
1826
  }
1824
- function ht(e, t = "", n = void 0, s = void 0) {
1827
+ function gt(e, t = "", n = void 0, s = void 0) {
1825
1828
  const { space: i } = e;
1826
1829
  if (t === "")
1827
1830
  return;
@@ -1838,9 +1841,9 @@ function ht(e, t = "", n = void 0, s = void 0) {
1838
1841
  onComplete(d) {
1839
1842
  n && n(JSON.parse(d));
1840
1843
  },
1841
- onFailure(d, u) {
1842
- const p = d;
1843
- p.msg = u.error, s && s(p);
1844
+ onFailure(d, p) {
1845
+ const u = d;
1846
+ u.msg = p.error, s && s(u);
1844
1847
  }
1845
1848
  });
1846
1849
  }
@@ -1857,7 +1860,7 @@ async function C(e, t = void 0, n = void 0) {
1857
1860
  }
1858
1861
  });
1859
1862
  }
1860
- function gt(e, t = void 0, n = void 0) {
1863
+ function ht(e, t = void 0, n = void 0) {
1861
1864
  const s = `${e._3DSwym}/api/exalead/whatsnew`, i = {
1862
1865
  params: {
1863
1866
  community_id: null,
@@ -1931,10 +1934,10 @@ function yt(e, t = void 0, n = void 0) {
1931
1934
  "X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
1932
1935
  },
1933
1936
  onComplete(o, c, d) {
1934
- const p = JSON.parse(o).result;
1937
+ const u = JSON.parse(o).result;
1935
1938
  let f = 0;
1936
- p.forEach((l) => {
1937
- const h = {
1939
+ u.forEach((l) => {
1940
+ const g = {
1938
1941
  description: l.description,
1939
1942
  id: l.id,
1940
1943
  title: l.title,
@@ -1942,13 +1945,13 @@ function yt(e, t = void 0, n = void 0) {
1942
1945
  role: l.role,
1943
1946
  access: l.access
1944
1947
  };
1945
- ge(
1948
+ he(
1946
1949
  e,
1947
1950
  l.id,
1948
- (g) => {
1949
- f++, h.members = g, r.push(h), f === p.length && t && t(r);
1951
+ (h) => {
1952
+ f++, g.members = h, r.push(g), f === u.length && t && t(r);
1950
1953
  },
1951
- (g) => n(g)
1954
+ (h) => n(h)
1952
1955
  );
1953
1956
  });
1954
1957
  },
@@ -1959,7 +1962,7 @@ function yt(e, t = void 0, n = void 0) {
1959
1962
  });
1960
1963
  });
1961
1964
  }
1962
- function ge(e, t, n, s) {
1965
+ function he(e, t, n, s) {
1963
1966
  const i = `${e._3DSwym}/api/community/listmembers`, r = {
1964
1967
  params: {
1965
1968
  page: e.page ? e.page : 1,
@@ -2021,33 +2024,33 @@ function wt(e, t, n = void 0, s = void 0) {
2021
2024
  senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
2022
2025
  msg: ye(t.msg)
2023
2026
  };
2024
- let u = !1;
2027
+ let p = !1;
2025
2028
  _e(
2026
2029
  c.users,
2027
- (p) => {
2028
- p !== void 0 && (d.id_msg = p.id, u = !0, P(e, d));
2030
+ (u) => {
2031
+ u !== void 0 && (d.id_msg = u.id, p = !0, P(e, d));
2029
2032
  },
2030
- (p) => {
2031
- u = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), d.id_msg = "";
2033
+ (u) => {
2034
+ p = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", u), s && s(u), d.id_msg = "";
2032
2035
  }
2033
- ), u === !1 && setTimeout(() => {
2034
- u === !1 && C(e, (p) => {
2036
+ ), p === !1 && setTimeout(() => {
2037
+ p === !1 && C(e, (u) => {
2035
2038
  m(o, {
2036
2039
  method: "POST",
2037
2040
  headers: {
2038
2041
  "Content-Type": "application/json",
2039
2042
  Accept: "application/json",
2040
- "X-DS-SWYM-CSRFTOKEN": p.result.ServerToken
2043
+ "X-DS-SWYM-CSRFTOKEN": u.result.ServerToken
2041
2044
  },
2042
2045
  data: JSON.stringify(c),
2043
2046
  type: "json",
2044
- onComplete(f, l, h) {
2045
- const g = f;
2046
- g.reponse = JSON.parse(h.response), g.status = h.status, n && n(g), d.id_msg = g.result.id, P(e, d);
2047
+ onComplete(f, l, g) {
2048
+ const h = f;
2049
+ h.reponse = JSON.parse(g.response), h.status = g.status, n && n(h), d.id_msg = h.result.id, P(e, d);
2047
2050
  },
2048
- onFailure(f, l, h) {
2049
- const g = f;
2050
- g.msg = l.errormsg, g.status = l.status, s && s(g);
2051
+ onFailure(f, l, g) {
2052
+ const h = f;
2053
+ h.msg = l.errormsg, h.status = l.status, s && s(h);
2051
2054
  }
2052
2055
  });
2053
2056
  });
@@ -2064,16 +2067,16 @@ function _e(e, t, n, s) {
2064
2067
  },
2065
2068
  onComplete(a) {
2066
2069
  const o = JSON.parse(a), c = [];
2067
- o.result.forEach((p) => {
2068
- p.users = p.users.sort((f, l) => f.login.localeCompare(l.login)), p.users.length === t.length && c.push(p);
2070
+ o.result.forEach((u) => {
2071
+ u.users = u.users.sort((f, l) => f.login.localeCompare(l.login)), u.users.length === t.length && c.push(u);
2069
2072
  });
2070
- const d = t.sort(), u = c.find((p) => {
2073
+ const d = t.sort(), p = c.find((u) => {
2071
2074
  const f = [];
2072
- return p.users.forEach((l) => {
2075
+ return u.users.forEach((l) => {
2073
2076
  f.push(l.login);
2074
2077
  }), JSON.stringify(f) === JSON.stringify(d);
2075
2078
  });
2076
- n && u !== void 0 ? n(u) : (s || u === void 0) && s(u);
2079
+ n && p !== void 0 ? n(p) : (s || p === void 0) && s(p);
2077
2080
  },
2078
2081
  onFailure(a) {
2079
2082
  const o = a;
@@ -2108,13 +2111,13 @@ function P(e, t, n = void 0, s = void 0) {
2108
2111
  },
2109
2112
  data: JSON.stringify(a),
2110
2113
  type: "json",
2111
- onComplete(c, d, u) {
2112
- const p = c;
2113
- p.status = u.status, p.response = JSON.parse(u.response), console.log("✅ _3dSwym_sendDirectMessageData => ", p), n && n(p);
2114
+ onComplete(c, d, p) {
2115
+ const u = c;
2116
+ u.status = p.status, u.response = JSON.parse(p.response), console.log("✅ _3dSwym_sendDirectMessageData => ", u), n && n(u);
2114
2117
  },
2115
2118
  onFailure(c, d) {
2116
- const u = c;
2117
- u.msg = d.errormsg, u.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", u), s && s(u);
2119
+ const p = c;
2120
+ p.msg = d.errormsg, p.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", p), s && s(p);
2118
2121
  }
2119
2122
  });
2120
2123
  });
@@ -2154,13 +2157,13 @@ function Ct(e, t, n = void 0, s = void 0) {
2154
2157
  headers: d,
2155
2158
  data: JSON.stringify(o),
2156
2159
  type: "json",
2157
- onComplete(u, p, f) {
2158
- const l = JSON.parse(u);
2160
+ onComplete(p, u, f) {
2161
+ const l = JSON.parse(p);
2159
2162
  l.status = f.status, l.response = f.response, n && n(l);
2160
2163
  },
2161
- onFailure(u, p, f) {
2162
- const l = u;
2163
- l.status = p.status, l.response = p.errormsg, s && s(l);
2164
+ onFailure(p, u, f) {
2165
+ const l = p;
2166
+ l.status = u.status, l.response = u.errormsg, s && s(l);
2164
2167
  }
2165
2168
  });
2166
2169
  });
@@ -2221,15 +2224,15 @@ function bt(e, t = void 0, n = void 0) {
2221
2224
  },
2222
2225
  method: "POST",
2223
2226
  data: JSON.stringify(r),
2224
- onComplete(c, d, u) {
2225
- const p = { response: c };
2226
- typeof p.response == "string" && (p.response = JSON.parse(p.response)), p.status = u.status, t && t(p);
2227
+ onComplete(c, d, p) {
2228
+ const u = { response: c };
2229
+ typeof u.response == "string" && (u.response = JSON.parse(u.response)), u.status = p.status, t && t(u);
2227
2230
  },
2228
- onFailure(c, d, u) {
2229
- const p = JSON.parse(d), f = JSON.parse(c), l = new Error(
2231
+ onFailure(c, d, p) {
2232
+ const u = JSON.parse(d), f = JSON.parse(c), l = new Error(
2230
2233
  `Erreur sur cette requête : ${s.base + s.uri}`,
2231
2234
  {
2232
- cause: { head: p, rep: f }
2235
+ cause: { head: u, rep: f }
2233
2236
  }
2234
2237
  );
2235
2238
  n && n(l);
@@ -2259,8 +2262,8 @@ function Tt(e, t, n = void 0, s = void 0) {
2259
2262
  n && n(o);
2260
2263
  },
2261
2264
  onFailure(o, c, d) {
2262
- const u = o;
2263
- u.status = c.status, u.response = c.errormsg, s && s(u);
2265
+ const p = o;
2266
+ p.status = c.status, p.response = c.errormsg, s && s(p);
2264
2267
  }
2265
2268
  });
2266
2269
  });
@@ -2302,8 +2305,8 @@ function $t(e, t, n) {
2302
2305
  community_id: o,
2303
2306
  status_comment: c,
2304
2307
  status_id: d,
2305
- message: u
2306
- } = e, p = {
2308
+ message: p
2309
+ } = e, u = {
2307
2310
  base: `${s}`,
2308
2311
  uri: "/api/idea/edit"
2309
2312
  }, l = {
@@ -2321,50 +2324,50 @@ function $t(e, t, n) {
2321
2324
  community_id: o,
2322
2325
  status_comment: c,
2323
2326
  status_id: d,
2324
- message: u,
2327
+ message: p,
2325
2328
  published: "1"
2326
2329
  }
2327
2330
  }),
2328
2331
  type: "json",
2329
- onComplete(h, g, _) {
2330
- const y = {
2331
- response: typeof h == "string" ? JSON.parse(h) : h
2332
+ onComplete(g, h, _) {
2333
+ const S = {
2334
+ response: typeof g == "string" ? JSON.parse(g) : g
2332
2335
  };
2333
- y.status = _.status, t && t(y);
2336
+ S.status = _.status, t && t(S);
2334
2337
  },
2335
- onFailure(h) {
2336
- n && n(h);
2338
+ onFailure(g) {
2339
+ n && n(g);
2337
2340
  }
2338
2341
  };
2339
- m(p.base + p.uri, l);
2342
+ m(u.base + u.uri, l);
2340
2343
  }
2341
2344
  function xt(e, t, n = void 0, s = void 0) {
2342
2345
  const { _3DSwym: i } = e;
2343
2346
  let { community_id: r, limit: a, page: o, search: c } = t;
2344
- const d = [], u = 1;
2345
- let p = !1, f = 2;
2346
- o || (o = u), a || (a = 100);
2347
+ const d = [], p = 1;
2348
+ let u = !1, f = 2;
2349
+ o || (o = p), a || (a = 100);
2347
2350
  const l = {
2348
2351
  uri: "/api/idea/list",
2349
2352
  comId: `/community_id/${r}`,
2350
2353
  limit: `/limit/${a}`,
2351
2354
  page: `/page/${o}`
2352
2355
  };
2353
- let h = `${i}${l.uri}${l.comId}${l.limit}${l.page}`;
2354
- C(e, (g) => {
2355
- const _ = (y) => {
2356
- m(y, {
2356
+ let g = `${i}${l.uri}${l.comId}${l.limit}${l.page}`;
2357
+ C(e, (h) => {
2358
+ const _ = (S) => {
2359
+ m(S, {
2357
2360
  method: "GET",
2358
2361
  headers: {
2359
- "X-DS-SWYM-CSRFTOKEN": g.result.ServerToken
2362
+ "X-DS-SWYM-CSRFTOKEN": h.result.ServerToken
2360
2363
  },
2361
- onComplete(w) {
2362
- const S = { response: JSON.parse(w) };
2363
- if (f = Math.ceil(Number(S.response.nb_result) / 100), w && f >= o) {
2364
- if (o++, l.page = `/page/${o}`, y = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
2365
- d.push(S.response.result);
2364
+ onComplete(y) {
2365
+ const w = { response: JSON.parse(y) };
2366
+ if (f = Math.ceil(Number(w.response.nb_result) / 100), y && f >= o) {
2367
+ if (o++, l.page = `/page/${o}`, S = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
2368
+ d.push(w.response.result);
2366
2369
  else {
2367
- const T = S.response.result.find(
2370
+ const T = w.response.result.find(
2368
2371
  (R) => R.title.includes(c)
2369
2372
  );
2370
2373
  if (T) {
@@ -2373,19 +2376,19 @@ function xt(e, t, n = void 0, s = void 0) {
2373
2376
  }
2374
2377
  }
2375
2378
  if (n && f < o && !c) {
2376
- p = !0, n(d);
2379
+ u = !0, n(d);
2377
2380
  return;
2378
2381
  }
2379
- _(y);
2382
+ _(S);
2380
2383
  }
2381
2384
  },
2382
- onFailure(w, S) {
2383
- const T = w;
2384
- T.status = S.status, T.response = S.errormsg, s && s(T);
2385
+ onFailure(y, w) {
2386
+ const T = y;
2387
+ T.status = w.status, T.response = w.errormsg, s && s(T);
2385
2388
  }
2386
2389
  });
2387
2390
  };
2388
- p || _(h);
2391
+ u || _(g);
2389
2392
  });
2390
2393
  }
2391
2394
  function Se(e) {
@@ -2463,7 +2466,7 @@ function Se(e) {
2463
2466
  <p>
2464
2467
  </p>` : e;
2465
2468
  }
2466
- function It(e, t = void 0, n = void 0) {
2469
+ function Ut(e, t = void 0, n = void 0) {
2467
2470
  const { tenant: s, _3DSwym: i, _3DSwym_token: r, community_id: a, idea_id: o } = e;
2468
2471
  if (s && i && r && a && o) {
2469
2472
  const c = `${i}/api/idea/forward`;
@@ -2483,9 +2486,9 @@ function It(e, t = void 0, n = void 0) {
2483
2486
  onComplete(d) {
2484
2487
  t && t(d);
2485
2488
  },
2486
- onFailure(d, u) {
2487
- const p = d;
2488
- p.status = u.status, p.response = u.errormsg, n && n(p);
2489
+ onFailure(d, p) {
2490
+ const u = d;
2491
+ u.status = p.status, u.response = p.errormsg, n && n(u);
2489
2492
  }
2490
2493
  });
2491
2494
  } else
@@ -2496,7 +2499,7 @@ function It(e, t = void 0, n = void 0) {
2496
2499
  credentials: e
2497
2500
  });
2498
2501
  }
2499
- function Nt(e, t = void 0, n = void 0) {
2502
+ function It(e, t = void 0, n = void 0) {
2500
2503
  return new Promise((s, i) => {
2501
2504
  try {
2502
2505
  let r;
@@ -2505,15 +2508,15 @@ function Nt(e, t = void 0, n = void 0) {
2505
2508
  console.log("_3DSwym_get_currentUser | url", a), m(a, {
2506
2509
  method: "GET",
2507
2510
  onComplete(o, c, d) {
2508
- let u = o.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, "");
2509
- u = u.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, ""), console.log("result", u);
2510
- let p = {};
2511
+ let p = o.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, "");
2512
+ p = p.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, ""), console.log("result", p);
2513
+ let u = {};
2511
2514
  try {
2512
- p = JSON.parse(u);
2515
+ u = JSON.parse(p);
2513
2516
  } catch (f) {
2514
2517
  i("ERROR | _3DSwym_get_currentUser => JSON.Parse()", f);
2515
2518
  }
2516
- console.log(p), p.first_name = p?.firstName ? p.firstName : "", p.last_name = p?.lastName ? p.lastName : "", console.log("_3DSwym_get_currentUser | info", p), r = p, s(p);
2519
+ console.log(u), u.first_name = u?.firstName ? u.firstName : "", u.last_name = u?.lastName ? u.lastName : "", console.log("_3DSwym_get_currentUser | info", u), r = u, s(u);
2517
2520
  },
2518
2521
  onFailure(o) {
2519
2522
  i("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", o);
@@ -2526,7 +2529,7 @@ function Nt(e, t = void 0, n = void 0) {
2526
2529
  }
2527
2530
  });
2528
2531
  }
2529
- function Ut(e, t, n = void 0, s = void 0) {
2532
+ function Nt(e, t, n = void 0, s = void 0) {
2530
2533
  const i = e.space + "/api/user/find/login/" + t;
2531
2534
  C(
2532
2535
  e,
@@ -2561,14 +2564,14 @@ function Ft(e, t = void 0, n = void 0) {
2561
2564
  },
2562
2565
  data: JSON.stringify({ richMessage: a }),
2563
2566
  type: "json",
2564
- onComplete(u, p, f) {
2567
+ onComplete(p, u, f) {
2565
2568
  const l = {
2566
- response: typeof u == "string" ? JSON.parse(u) : u
2569
+ response: typeof p == "string" ? JSON.parse(p) : p
2567
2570
  };
2568
2571
  l.status = f.status, t && t(l);
2569
2572
  },
2570
- onFailure(u) {
2571
- n && n(u);
2573
+ onFailure(p) {
2574
+ n && n(p);
2572
2575
  }
2573
2576
  };
2574
2577
  m(o, d);
@@ -2900,7 +2903,7 @@ export {
2900
2903
  G as _3DSpace_file_update,
2901
2904
  ae as _3DSpace_file_update_csr,
2902
2905
  We as _3DSpace_file_url_csr,
2903
- U as _3DSpace_get_csrf,
2906
+ N as _3DSpace_get_csrf,
2904
2907
  J as _3DSpace_get_docInfo,
2905
2908
  de as _3DSpace_get_downloadTicket_multidoc,
2906
2909
  Xe as _3DSpace_get_multiDocInfo,
@@ -2913,7 +2916,7 @@ export {
2913
2916
  Qe as _3DSpace_lifecycle_getNextStates,
2914
2917
  st as _3DSpace_lifecycle_getRevisions,
2915
2918
  Ve as _3DSpace_put_docInfo,
2916
- It as _3DSwym_ForwardIdea,
2919
+ Ut as _3DSwym_ForwardIdea,
2917
2920
  Ft as _3DSwym_addComment,
2918
2921
  wt as _3DSwym_buildDirectMessage,
2919
2922
  Tt as _3DSwym_deleteIdea,
@@ -2921,14 +2924,14 @@ export {
2921
2924
  _e as _3DSwym_findCommunityToInstantMSG,
2922
2925
  yt as _3DSwym_getAllCommunities,
2923
2926
  xt as _3DSwym_getAllListIdeas,
2924
- gt as _3DSwym_getAllNews,
2927
+ ht as _3DSwym_getAllNews,
2925
2928
  _t as _3DSwym_getFamiliarPeople,
2926
2929
  St as _3DSwym_getIdeaStatusMaturity,
2927
- ge as _3DSwym_getMembersCommunity,
2930
+ he as _3DSwym_getMembersCommunity,
2928
2931
  Ot as _3DSwym_getOneIdea,
2929
2932
  C as _3DSwym_get_Token,
2930
- Nt as _3DSwym_get_currentUser,
2931
- Ut as _3DSwym_get_findUser,
2933
+ It as _3DSwym_get_currentUser,
2934
+ Nt as _3DSwym_get_findUser,
2932
2935
  bt as _3DSwym_postIdea,
2933
2936
  Ct as _3DSwym_postIdeaTemplate,
2934
2937
  P as _3DSwym_sendMessageData,
@@ -2965,17 +2968,17 @@ export {
2965
2968
  Me as createUserGroups,
2966
2969
  pe as dataMixing,
2967
2970
  Ke as deleteUserGroups,
2968
- Ie as findAdresse,
2971
+ Ue as findAdresse,
2969
2972
  ot as getAllContextSecurity,
2970
2973
  te as getCSRFToken,
2971
2974
  xe as getCommunes,
2972
2975
  Je as getComplementUG,
2973
2976
  rt as getDataFrom3DSpace,
2974
- Ne as getDataFromGouvFr,
2977
+ Ie as getDataFromGouvFr,
2975
2978
  pt as getDatasByTenant,
2976
2979
  lt as getDatasFrom3DSpace,
2977
2980
  ct as getDownloadDocument,
2978
- ht as getInfoDocTags,
2981
+ gt as getInfoDocTags,
2979
2982
  Ge as getUserGroupsList,
2980
2983
  ee as getUsersGroupRules,
2981
2984
  ut as get_3DSpace_csrf,
@@ -2985,6 +2988,6 @@ export {
2985
2988
  Ee as readUserGroupControl,
2986
2989
  mt as removeTagToDoc,
2987
2990
  Xt as sayHello,
2988
- Ue as updateEvent
2991
+ Ne as updateEvent
2989
2992
  };
2990
2993
  //# sourceMappingURL=wb3Api.js.map