@beam3_dev/api_module 0.0.308 → 0.0.310

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,53 @@ 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=500`, 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 = {
398
+ infoError: u,
399
+ fonction: "getUserGroupsList()",
400
+ catch: new Error("Erreur sur la fonction getUserGroupsList()", {
401
+ cause: u
402
+ })
403
+ };
404
+ n(f);
396
405
  }
397
406
  }
398
407
  function Ke(e, t) {
@@ -410,17 +419,17 @@ function qe(e, t, n, s = void 0, i = void 0) {
410
419
  nexURImem: "/members",
411
420
  OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
412
421
  OPTsTenant: `tenant=dstenant:${a}`
413
- }, c = n, d = `${r}${o.URIUGr}/${t}`, u = JSON.stringify(c);
422
+ }, c = n, d = `${r}${o.URIUGr}/${t}`, p = JSON.stringify(c);
414
423
  m(d, {
415
424
  headers: j,
416
425
  method: "PATCH",
417
- data: u,
426
+ data: p,
418
427
  type: "json",
419
- onComplete(p) {
420
- s && s(p);
428
+ onComplete(u) {
429
+ s && s(u);
421
430
  },
422
- onFailure(p) {
423
- i && i(p);
431
+ onFailure(u) {
432
+ i && i(u);
424
433
  }
425
434
  });
426
435
  }
@@ -470,7 +479,7 @@ async function te(e, t, n) {
470
479
  });
471
480
  }
472
481
  }
473
- var I = {};
482
+ var U = {};
474
483
  function ne(e, t) {
475
484
  return Object.prototype.hasOwnProperty.call(e, t);
476
485
  }
@@ -486,8 +495,8 @@ var se = function(e, t, n, s) {
486
495
  var o = e.length;
487
496
  a > 0 && o > a && (o = a);
488
497
  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;
498
+ var d = e[c].replace(r, "%20"), p = d.indexOf(n), u, f, l, g;
499
+ 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
500
  }
492
501
  return i;
493
502
  }, x = function(e) {
@@ -509,8 +518,8 @@ var se = function(e, t, n, s) {
509
518
  }).join(t) : r + encodeURIComponent(x(e[i]));
510
519
  }).filter(Boolean).join(t) : s ? encodeURIComponent(x(s)) + n + encodeURIComponent(x(e)) : "";
511
520
  };
512
- I.decode = I.parse = se;
513
- I.encode = I.stringify = ie;
521
+ U.decode = U.parse = se;
522
+ U.encode = U.stringify = ie;
514
523
  async function J(e, t = void 0, n = void 0, s = void 0) {
515
524
  const i = e.space;
516
525
  if (t === void 0) {
@@ -534,7 +543,7 @@ async function Xe(e, t = void 0, n = void 0, s = void 0) {
534
543
  console.log("Le paramètre docids est obligatoire");
535
544
  return;
536
545
  }
537
- let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, a = I.stringify({
546
+ let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, a = U.stringify({
538
547
  $ids: t.toString().replace('"', "").replace("[", "").replace("]", "")
539
548
  });
540
549
  m(r, {
@@ -544,15 +553,15 @@ async function Xe(e, t = void 0, n = void 0, s = void 0) {
544
553
  },
545
554
  data: a,
546
555
  onComplete(o, c, d) {
547
- const u = JSON.parse(o);
548
- n && n(u);
556
+ const p = JSON.parse(o);
557
+ n && n(p);
549
558
  },
550
559
  onFailure(o) {
551
560
  s && s(o);
552
561
  }
553
562
  });
554
563
  }
555
- function U(e, t = void 0, n = void 0) {
564
+ function N(e, t = void 0, n = void 0) {
556
565
  if (e.objID && e.objID !== "") {
557
566
  let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
558
567
  m(s, {
@@ -596,7 +605,7 @@ function b(e, t = void 0, n = void 0) {
596
605
  }
597
606
  function D(e, t = void 0, n = void 0) {
598
607
  let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
599
- U(
608
+ N(
600
609
  e,
601
610
  (i) => {
602
611
  m(s, {
@@ -651,7 +660,7 @@ function G(e, t, n, s, i, r = void 0, a = void 0) {
651
660
  r,
652
661
  a
653
662
  );
654
- e.token ? o() : U(
663
+ e.token ? o() : N(
655
664
  e,
656
665
  t,
657
666
  (c) => {
@@ -677,15 +686,15 @@ function ae(e, t, n, s, i, r, a = void 0, o = void 0) {
677
686
  }
678
687
  }),
679
688
  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], {
689
+ onComplete(d, p, u) {
690
+ const f = d.csrf, l = d.data[0].dataelements, g = new FormData();
691
+ let h;
692
+ s instanceof Blob ? h = s : h = new Blob([s], {
684
693
  type: "text/plain"
685
- }), h.append(l.ticketparamname, l.ticket), h.append("file_0", g, i);
694
+ }), g.append(l.ticketparamname, l.ticket), g.append("file_0", h, i);
686
695
  const _ = {};
687
- _.method = "POST", _.data = h, _.onComplete = function(y) {
688
- let w = {
696
+ _.method = "POST", _.data = g, _.onComplete = function(S) {
697
+ let y = {
689
698
  method: "PUT",
690
699
  headers: {
691
700
  SecurityContext: "ctx::" + e.ctx
@@ -699,7 +708,7 @@ function ae(e, t, n, s, i, r, a = void 0, o = void 0) {
699
708
  {
700
709
  dataelements: {
701
710
  title: i,
702
- receipt: y
711
+ receipt: S
703
712
  },
704
713
  updateAction: "REVISE"
705
714
  }
@@ -711,19 +720,19 @@ function ae(e, t, n, s, i, r, a = void 0, o = void 0) {
711
720
  ]
712
721
  }),
713
722
  type: "json",
714
- onComplete(S) {
715
- a && a(S);
723
+ onComplete(w) {
724
+ a && a(w);
716
725
  },
717
- onFailure(S) {
718
- o && o(S);
726
+ onFailure(w) {
727
+ o && o(w);
719
728
  }
720
729
  };
721
730
  e.tenant.toUpperCase(), m(
722
731
  e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${e.tenant.toUpperCase()}&e6w-lang=fr&e6w-timezone=-60&xrequestedwith=xmlhttprequest`,
723
- w
732
+ y
724
733
  );
725
- }, _.onFailure = function(y) {
726
- o && o(y);
734
+ }, _.onFailure = function(S) {
735
+ o && o(S);
727
736
  }, _.timeout = 0, m(l.ticketURL, _);
728
737
  }
729
738
  });
@@ -779,27 +788,27 @@ async function Ye(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
779
788
  `https://${a.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/session?tenant=${a.toUpperCase()}&xrequestedwith=xmlhttprequest`,
780
789
  {
781
790
  method: "GET",
782
- onComplete(u) {
791
+ onComplete(p) {
783
792
  try {
784
- u = JSON.parse(u);
785
- const { csrftoken: p, isadmin: f } = u;
786
- p && m(d, {
793
+ p = JSON.parse(p);
794
+ const { csrftoken: u, isadmin: f } = p;
795
+ u && m(d, {
787
796
  method: "GET",
788
797
  headers: {
789
798
  //"x-ds-csrftoken": csrftoken,
790
799
  Accept: "application/json"
791
800
  },
792
- onComplete(l, h, g) {
801
+ onComplete(l, g, h) {
793
802
  try {
794
803
  if (l = JSON.parse(l), l?.ticket) {
795
- const { ticket: _, actionurl: y, jobticket: w } = l;
804
+ const { ticket: _, actionurl: S, jobticket: y } = l;
796
805
  K(
797
- { dataelements: { ticket: _, ticketURL: y } },
806
+ { dataelements: { ticket: _, ticketURL: S } },
798
807
  n,
799
808
  t,
800
- (S) => {
809
+ (w) => {
801
810
  const R = new DOMParser().parseFromString(
802
- S,
811
+ w,
803
812
  "text/html"
804
813
  ).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
814
  let W = /(?:\.([^.]+))?$/.exec(t)[1];
@@ -824,26 +833,26 @@ async function Ye(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
824
833
  headers: {
825
834
  Accept: "application/json",
826
835
  "Content-Type": "application/json;charset=UTF-8",
827
- "X-DS-CSRFTOKEN": p
836
+ "X-DS-CSRFTOKEN": u
828
837
  },
829
838
  data: v,
830
839
  type: "json",
831
- onComplete(N, Ce, be) {
832
- s && s(N);
840
+ onComplete(I, Ce, be) {
841
+ s && s(I);
833
842
  },
834
- onFailure(N) {
843
+ onFailure(I) {
835
844
  console.warn(
836
845
  "_3DSpace_Upload_Doc | pushFileInFcs | onFailure",
837
- { url: k, bodyRequest: v, err: N }
838
- ), i && i(N);
846
+ { url: k, bodyRequest: v, err: I }
847
+ ), i && i(I);
839
848
  }
840
849
  });
841
850
  },
842
- (S) => {
843
- console.warn("pushFileInFcs", S), i && i(S);
851
+ (w) => {
852
+ console.warn("pushFileInFcs", w), i && i(w);
844
853
  },
845
- (S) => {
846
- r && r({ fileName: t, progress: S });
854
+ (w) => {
855
+ r && r({ fileName: t, progress: w });
847
856
  }
848
857
  );
849
858
  }
@@ -859,8 +868,8 @@ async function Ye(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
859
868
  i && i();
860
869
  }
861
870
  },
862
- onFailure(u) {
863
- i && i(u);
871
+ onFailure(p) {
872
+ i && i(p);
864
873
  }
865
874
  }
866
875
  );
@@ -956,8 +965,8 @@ function K(e, t, n, s = void 0, i = void 0, r = void 0) {
956
965
  const c = new XMLHttpRequest();
957
966
  c.open("POST", o, !0), c.upload.onprogress = function(d) {
958
967
  if (d.lengthComputable) {
959
- const u = d.loaded / d.total * 100;
960
- r && r(u);
968
+ const p = d.loaded / d.total * 100;
969
+ r && r(p);
961
970
  }
962
971
  }, c.onload = function() {
963
972
  c.status === 200 ? s && s(c.responseText.replace(/[\n\r]/g, "")) : i && i(c.statusText);
@@ -1018,40 +1027,40 @@ function F(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, a = !1
1018
1027
  method: "GET",
1019
1028
  onComplete(c) {
1020
1029
  const d = JSON.parse(c);
1021
- let u = "", p, f, l;
1030
+ let p = "", u, f, l;
1022
1031
  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
1032
+ let g = d.collabspaces.find((h) => h.title === t);
1033
+ if (g) {
1034
+ u = t;
1035
+ let h = g.couples;
1036
+ h = h.filter(
1037
+ (_, S, y) => S === y.findIndex(
1038
+ (w) => w.organization.pid === _.organization.pid && w.role.pid === _.role.pid
1030
1039
  )
1031
1040
  ), n && (Array.isArray(n) ? n.forEach((_) => {
1032
- l || g.forEach((y) => {
1033
- if (_ === y.role.name && s === y.organization.title)
1041
+ l || h.forEach((S) => {
1042
+ if (_ === S.role.name && s === S.organization.title)
1034
1043
  l = _, f = s;
1035
- else if (_ === y.role.name) {
1036
- let w = g.filter(
1037
- (S) => S.role.name === _
1044
+ else if (_ === S.role.name) {
1045
+ let y = h.filter(
1046
+ (w) => w.role.name === _
1038
1047
  );
1039
- w.length === 1 ? (l = w[0].role.name, f = w[0].organization.title) : r(w);
1048
+ y.length === 1 ? (l = y[0].role.name, f = y[0].organization.title) : r(y);
1040
1049
  }
1041
1050
  });
1042
- }) : g.forEach((_) => {
1051
+ }) : h.forEach((_) => {
1043
1052
  if (n === _.role.name && s === _.organization.title)
1044
1053
  l = n, f = s;
1045
1054
  else if (n === _.role.name) {
1046
- let y = g.filter(
1047
- (w) => w.role.name === n
1055
+ let S = h.filter(
1056
+ (y) => y.role.name === n
1048
1057
  );
1049
- y.length === 1 ? (l = y[0].role.name, f = y[0].organization.title) : r(y);
1058
+ S.length === 1 ? (l = S[0].role.name, f = S[0].organization.title) : r(S);
1050
1059
  }
1051
1060
  }));
1052
1061
  }
1053
1062
  }
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));
1063
+ 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
1064
  },
1056
1065
  onFailure(c, d) {
1057
1066
  console.warn("Erreur de récupération du contexte de sécurité. => ", {
@@ -1148,30 +1157,30 @@ function de(e, t, n = void 0, s = void 0, i = void 0) {
1148
1157
  type: "json",
1149
1158
  onComplete(c) {
1150
1159
  const d = c.data;
1151
- c.success === !0 && (n && n(), d.forEach((u) => {
1160
+ c.success === !0 && (n && n(), d.forEach((p) => {
1152
1161
  try {
1153
- const p = u.dataelements.fileName, f = u.dataelements.ticketURL;
1162
+ const u = p.dataelements.fileName, f = p.dataelements.ticketURL;
1154
1163
  m(f, {
1155
- onComplete: (l, h) => {
1156
- let g;
1164
+ onComplete: (l, g) => {
1165
+ let h;
1157
1166
  try {
1158
- g = JSON.parse(l);
1167
+ h = JSON.parse(l);
1159
1168
  } catch {
1160
- g = l.blob();
1169
+ h = l.blob();
1161
1170
  }
1162
1171
  s && s({
1163
- objectId: u.id,
1164
- headers: h,
1165
- fileName: p,
1166
- data: g
1172
+ objectId: p.id,
1173
+ headers: g,
1174
+ fileName: u,
1175
+ data: h
1167
1176
  });
1168
1177
  },
1169
1178
  onFailure: (l) => {
1170
1179
  console.log("error http", l);
1171
1180
  }
1172
1181
  });
1173
- } catch (p) {
1174
- console.log(p), i && i(p);
1182
+ } catch (u) {
1183
+ console.log(u), i && i(u);
1175
1184
  }
1176
1185
  }));
1177
1186
  },
@@ -1397,14 +1406,14 @@ function st(e, t, n = void 0, s = void 0) {
1397
1406
  const { tenant: a, ctx: o, space: c } = e;
1398
1407
  (!a || !o || !c) && r({ error: "Erreur de credentials", tenant: a, ctx: o, space: c });
1399
1408
  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;
1409
+ let p;
1401
1410
  await ue(e).then(
1402
- (f) => u = f?.SecurityContext
1411
+ (f) => p = f?.SecurityContext
1403
1412
  );
1404
- let p = {
1413
+ let u = {
1405
1414
  method: "POST",
1406
1415
  headers: {
1407
- securitycontext: "ctx::" + u,
1416
+ securitycontext: "ctx::" + p,
1408
1417
  Accept: "application/json",
1409
1418
  "Content-Type": "application/json"
1410
1419
  },
@@ -1424,7 +1433,7 @@ function st(e, t, n = void 0, s = void 0) {
1424
1433
  s && s(f), r(f);
1425
1434
  }
1426
1435
  };
1427
- m(d, p);
1436
+ m(d, u);
1428
1437
  });
1429
1438
  }
1430
1439
  function it(e, t, n, s, i = void 0, r = void 0) {
@@ -1440,7 +1449,7 @@ function it(e, t, n, s, i = void 0, r = void 0) {
1440
1449
  items: []
1441
1450
  };
1442
1451
  t && (d.parentId = t), d.items.push(c);
1443
- let u = {
1452
+ let p = {
1444
1453
  method: "POST",
1445
1454
  headers: {
1446
1455
  Accept: "application/json",
@@ -1450,14 +1459,14 @@ function it(e, t, n, s, i = void 0, r = void 0) {
1450
1459
  },
1451
1460
  data: JSON.stringify(d),
1452
1461
  type: "json",
1453
- onComplete(p) {
1454
- i && i(p);
1462
+ onComplete(u) {
1463
+ i && i(u);
1455
1464
  },
1456
- onFailure(p) {
1457
- r && r(p);
1465
+ onFailure(u) {
1466
+ r && r(u);
1458
1467
  }
1459
1468
  };
1460
- m(o, u);
1469
+ m(o, p);
1461
1470
  });
1462
1471
  }
1463
1472
  function at(e, t, n, s, i = void 0, r = void 0) {
@@ -1536,7 +1545,7 @@ async function ct(e, t, n = void 0, s = void 0) {
1536
1545
  }
1537
1546
  function dt(e, t, n, s = void 0, i = void 0) {
1538
1547
  const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
1539
- e = { ...e, objID: n }, U(
1548
+ e = { ...e, objID: n }, N(
1540
1549
  e,
1541
1550
  (a) => {
1542
1551
  console.log("_3DSpace_get_csrf | onDone | data", a);
@@ -1563,7 +1572,7 @@ function dt(e, t, n, s = void 0, i = void 0) {
1563
1572
  let B, E;
1564
1573
  const A = [];
1565
1574
  async function ut(e, t = void 0, n = void 0) {
1566
- e.objID && e.objID !== "" ? U(
1575
+ e.objID && e.objID !== "" ? N(
1567
1576
  e,
1568
1577
  (s) => {
1569
1578
  t && t(s);
@@ -1647,7 +1656,7 @@ function ft(e, t, n = void 0, s = void 0) {
1647
1656
  uri: "/resources/6w/tags",
1648
1657
  otpCTX: "SecurityContext=preferred",
1649
1658
  optTenant: `tenant=${r}`
1650
- }, u = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
1659
+ }, p = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, u = {
1651
1660
  tag: [
1652
1661
  {
1653
1662
  subject: [
@@ -1662,13 +1671,13 @@ function ft(e, t, n = void 0, s = void 0) {
1662
1671
  }
1663
1672
  ]
1664
1673
  };
1665
- m(u, {
1674
+ m(p, {
1666
1675
  method: "PUT",
1667
1676
  headers: {
1668
1677
  "Content-Type": "application/json",
1669
1678
  Accept: "application/json"
1670
1679
  },
1671
- data: JSON.stringify(p),
1680
+ data: JSON.stringify(u),
1672
1681
  onComplete(f) {
1673
1682
  JSON.parse(f);
1674
1683
  const l = {};
@@ -1676,33 +1685,33 @@ function ft(e, t, n = void 0, s = void 0) {
1676
1685
  J(
1677
1686
  e,
1678
1687
  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(
1688
+ (g) => {
1689
+ 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;
1690
+ l.name = h, l.ext = _, l.createBy = S, t.info = { ...l }, ge(
1682
1691
  e,
1683
1692
  t,
1684
- (w) => {
1685
- n && n(w);
1693
+ (y) => {
1694
+ n && n(y);
1686
1695
  },
1687
- (w) => {
1688
- s && s(w);
1696
+ (y) => {
1697
+ s && s(y);
1689
1698
  }
1690
1699
  );
1691
1700
  },
1692
- (h, g) => {
1693
- const _ = h;
1694
- _.msg = g.errormsg, _.errCode = g.errorcode, console.log("❌ sendDirectMessage => ", _), s && s(_);
1701
+ (g, h) => {
1702
+ const _ = g;
1703
+ _.msg = h.errormsg, _.errCode = h.errorcode, console.log("❌ sendDirectMessage => ", _), s && s(_);
1695
1704
  }
1696
1705
  );
1697
1706
  }, 2e3);
1698
1707
  },
1699
1708
  onFailure(f, l) {
1700
- const h = f;
1701
- h.msg = l.errormsg, h.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", h), s && s(h);
1709
+ const g = f;
1710
+ g.msg = l.errormsg, g.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", g), s && s(g);
1702
1711
  }
1703
1712
  });
1704
1713
  }
1705
- function he(e, t, n = void 0, s = void 0) {
1714
+ function ge(e, t, n = void 0, s = void 0) {
1706
1715
  console.log("obj ", t);
1707
1716
  const i = t.info.name, r = {
1708
1717
  baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
@@ -1775,13 +1784,13 @@ function he(e, t, n = void 0, s = void 0) {
1775
1784
  method: "POST",
1776
1785
  headers: o,
1777
1786
  data: JSON.stringify(d),
1778
- onComplete(u) {
1779
- const p = JSON.parse(u);
1780
- n(p);
1787
+ onComplete(p) {
1788
+ const u = JSON.parse(p);
1789
+ n(u);
1781
1790
  },
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);
1791
+ onFailure(p, u) {
1792
+ const f = p;
1793
+ 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
1794
  }
1786
1795
  });
1787
1796
  }
@@ -1812,16 +1821,16 @@ function mt(e, t, n = void 0, s = void 0) {
1812
1821
  "Content-Type": "application/json",
1813
1822
  Accept: "application/json,text/javascript,*/*"
1814
1823
  },
1815
- onComplete(u) {
1816
- n && n(u);
1824
+ onComplete(p) {
1825
+ n && n(p);
1817
1826
  },
1818
- onFailure(u, p) {
1819
- const f = u;
1820
- f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f);
1827
+ onFailure(p, u) {
1828
+ const f = p;
1829
+ f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f);
1821
1830
  }
1822
1831
  });
1823
1832
  }
1824
- function ht(e, t = "", n = void 0, s = void 0) {
1833
+ function gt(e, t = "", n = void 0, s = void 0) {
1825
1834
  const { space: i } = e;
1826
1835
  if (t === "")
1827
1836
  return;
@@ -1838,9 +1847,9 @@ function ht(e, t = "", n = void 0, s = void 0) {
1838
1847
  onComplete(d) {
1839
1848
  n && n(JSON.parse(d));
1840
1849
  },
1841
- onFailure(d, u) {
1842
- const p = d;
1843
- p.msg = u.error, s && s(p);
1850
+ onFailure(d, p) {
1851
+ const u = d;
1852
+ u.msg = p.error, s && s(u);
1844
1853
  }
1845
1854
  });
1846
1855
  }
@@ -1857,7 +1866,7 @@ async function C(e, t = void 0, n = void 0) {
1857
1866
  }
1858
1867
  });
1859
1868
  }
1860
- function gt(e, t = void 0, n = void 0) {
1869
+ function ht(e, t = void 0, n = void 0) {
1861
1870
  const s = `${e._3DSwym}/api/exalead/whatsnew`, i = {
1862
1871
  params: {
1863
1872
  community_id: null,
@@ -1931,10 +1940,10 @@ function yt(e, t = void 0, n = void 0) {
1931
1940
  "X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
1932
1941
  },
1933
1942
  onComplete(o, c, d) {
1934
- const p = JSON.parse(o).result;
1943
+ const u = JSON.parse(o).result;
1935
1944
  let f = 0;
1936
- p.forEach((l) => {
1937
- const h = {
1945
+ u.forEach((l) => {
1946
+ const g = {
1938
1947
  description: l.description,
1939
1948
  id: l.id,
1940
1949
  title: l.title,
@@ -1942,13 +1951,13 @@ function yt(e, t = void 0, n = void 0) {
1942
1951
  role: l.role,
1943
1952
  access: l.access
1944
1953
  };
1945
- ge(
1954
+ he(
1946
1955
  e,
1947
1956
  l.id,
1948
- (g) => {
1949
- f++, h.members = g, r.push(h), f === p.length && t && t(r);
1957
+ (h) => {
1958
+ f++, g.members = h, r.push(g), f === u.length && t && t(r);
1950
1959
  },
1951
- (g) => n(g)
1960
+ (h) => n(h)
1952
1961
  );
1953
1962
  });
1954
1963
  },
@@ -1959,7 +1968,7 @@ function yt(e, t = void 0, n = void 0) {
1959
1968
  });
1960
1969
  });
1961
1970
  }
1962
- function ge(e, t, n, s) {
1971
+ function he(e, t, n, s) {
1963
1972
  const i = `${e._3DSwym}/api/community/listmembers`, r = {
1964
1973
  params: {
1965
1974
  page: e.page ? e.page : 1,
@@ -2021,33 +2030,33 @@ function wt(e, t, n = void 0, s = void 0) {
2021
2030
  senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
2022
2031
  msg: ye(t.msg)
2023
2032
  };
2024
- let u = !1;
2033
+ let p = !1;
2025
2034
  _e(
2026
2035
  c.users,
2027
- (p) => {
2028
- p !== void 0 && (d.id_msg = p.id, u = !0, P(e, d));
2036
+ (u) => {
2037
+ u !== void 0 && (d.id_msg = u.id, p = !0, P(e, d));
2029
2038
  },
2030
- (p) => {
2031
- u = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), d.id_msg = "";
2039
+ (u) => {
2040
+ p = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", u), s && s(u), d.id_msg = "";
2032
2041
  }
2033
- ), u === !1 && setTimeout(() => {
2034
- u === !1 && C(e, (p) => {
2042
+ ), p === !1 && setTimeout(() => {
2043
+ p === !1 && C(e, (u) => {
2035
2044
  m(o, {
2036
2045
  method: "POST",
2037
2046
  headers: {
2038
2047
  "Content-Type": "application/json",
2039
2048
  Accept: "application/json",
2040
- "X-DS-SWYM-CSRFTOKEN": p.result.ServerToken
2049
+ "X-DS-SWYM-CSRFTOKEN": u.result.ServerToken
2041
2050
  },
2042
2051
  data: JSON.stringify(c),
2043
2052
  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);
2053
+ onComplete(f, l, g) {
2054
+ const h = f;
2055
+ h.reponse = JSON.parse(g.response), h.status = g.status, n && n(h), d.id_msg = h.result.id, P(e, d);
2047
2056
  },
2048
- onFailure(f, l, h) {
2049
- const g = f;
2050
- g.msg = l.errormsg, g.status = l.status, s && s(g);
2057
+ onFailure(f, l, g) {
2058
+ const h = f;
2059
+ h.msg = l.errormsg, h.status = l.status, s && s(h);
2051
2060
  }
2052
2061
  });
2053
2062
  });
@@ -2064,16 +2073,16 @@ function _e(e, t, n, s) {
2064
2073
  },
2065
2074
  onComplete(a) {
2066
2075
  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);
2076
+ o.result.forEach((u) => {
2077
+ u.users = u.users.sort((f, l) => f.login.localeCompare(l.login)), u.users.length === t.length && c.push(u);
2069
2078
  });
2070
- const d = t.sort(), u = c.find((p) => {
2079
+ const d = t.sort(), p = c.find((u) => {
2071
2080
  const f = [];
2072
- return p.users.forEach((l) => {
2081
+ return u.users.forEach((l) => {
2073
2082
  f.push(l.login);
2074
2083
  }), JSON.stringify(f) === JSON.stringify(d);
2075
2084
  });
2076
- n && u !== void 0 ? n(u) : (s || u === void 0) && s(u);
2085
+ n && p !== void 0 ? n(p) : (s || p === void 0) && s(p);
2077
2086
  },
2078
2087
  onFailure(a) {
2079
2088
  const o = a;
@@ -2108,13 +2117,13 @@ function P(e, t, n = void 0, s = void 0) {
2108
2117
  },
2109
2118
  data: JSON.stringify(a),
2110
2119
  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);
2120
+ onComplete(c, d, p) {
2121
+ const u = c;
2122
+ u.status = p.status, u.response = JSON.parse(p.response), console.log("✅ _3dSwym_sendDirectMessageData => ", u), n && n(u);
2114
2123
  },
2115
2124
  onFailure(c, d) {
2116
- const u = c;
2117
- u.msg = d.errormsg, u.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", u), s && s(u);
2125
+ const p = c;
2126
+ p.msg = d.errormsg, p.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", p), s && s(p);
2118
2127
  }
2119
2128
  });
2120
2129
  });
@@ -2154,13 +2163,13 @@ function Ct(e, t, n = void 0, s = void 0) {
2154
2163
  headers: d,
2155
2164
  data: JSON.stringify(o),
2156
2165
  type: "json",
2157
- onComplete(u, p, f) {
2158
- const l = JSON.parse(u);
2166
+ onComplete(p, u, f) {
2167
+ const l = JSON.parse(p);
2159
2168
  l.status = f.status, l.response = f.response, n && n(l);
2160
2169
  },
2161
- onFailure(u, p, f) {
2162
- const l = u;
2163
- l.status = p.status, l.response = p.errormsg, s && s(l);
2170
+ onFailure(p, u, f) {
2171
+ const l = p;
2172
+ l.status = u.status, l.response = u.errormsg, s && s(l);
2164
2173
  }
2165
2174
  });
2166
2175
  });
@@ -2221,15 +2230,15 @@ function bt(e, t = void 0, n = void 0) {
2221
2230
  },
2222
2231
  method: "POST",
2223
2232
  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);
2233
+ onComplete(c, d, p) {
2234
+ const u = { response: c };
2235
+ typeof u.response == "string" && (u.response = JSON.parse(u.response)), u.status = p.status, t && t(u);
2227
2236
  },
2228
- onFailure(c, d, u) {
2229
- const p = JSON.parse(d), f = JSON.parse(c), l = new Error(
2237
+ onFailure(c, d, p) {
2238
+ const u = JSON.parse(d), f = JSON.parse(c), l = new Error(
2230
2239
  `Erreur sur cette requête : ${s.base + s.uri}`,
2231
2240
  {
2232
- cause: { head: p, rep: f }
2241
+ cause: { head: u, rep: f }
2233
2242
  }
2234
2243
  );
2235
2244
  n && n(l);
@@ -2259,8 +2268,8 @@ function Tt(e, t, n = void 0, s = void 0) {
2259
2268
  n && n(o);
2260
2269
  },
2261
2270
  onFailure(o, c, d) {
2262
- const u = o;
2263
- u.status = c.status, u.response = c.errormsg, s && s(u);
2271
+ const p = o;
2272
+ p.status = c.status, p.response = c.errormsg, s && s(p);
2264
2273
  }
2265
2274
  });
2266
2275
  });
@@ -2302,8 +2311,8 @@ function $t(e, t, n) {
2302
2311
  community_id: o,
2303
2312
  status_comment: c,
2304
2313
  status_id: d,
2305
- message: u
2306
- } = e, p = {
2314
+ message: p
2315
+ } = e, u = {
2307
2316
  base: `${s}`,
2308
2317
  uri: "/api/idea/edit"
2309
2318
  }, l = {
@@ -2321,50 +2330,50 @@ function $t(e, t, n) {
2321
2330
  community_id: o,
2322
2331
  status_comment: c,
2323
2332
  status_id: d,
2324
- message: u,
2333
+ message: p,
2325
2334
  published: "1"
2326
2335
  }
2327
2336
  }),
2328
2337
  type: "json",
2329
- onComplete(h, g, _) {
2330
- const y = {
2331
- response: typeof h == "string" ? JSON.parse(h) : h
2338
+ onComplete(g, h, _) {
2339
+ const S = {
2340
+ response: typeof g == "string" ? JSON.parse(g) : g
2332
2341
  };
2333
- y.status = _.status, t && t(y);
2342
+ S.status = _.status, t && t(S);
2334
2343
  },
2335
- onFailure(h) {
2336
- n && n(h);
2344
+ onFailure(g) {
2345
+ n && n(g);
2337
2346
  }
2338
2347
  };
2339
- m(p.base + p.uri, l);
2348
+ m(u.base + u.uri, l);
2340
2349
  }
2341
2350
  function xt(e, t, n = void 0, s = void 0) {
2342
2351
  const { _3DSwym: i } = e;
2343
2352
  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);
2353
+ const d = [], p = 1;
2354
+ let u = !1, f = 2;
2355
+ o || (o = p), a || (a = 100);
2347
2356
  const l = {
2348
2357
  uri: "/api/idea/list",
2349
2358
  comId: `/community_id/${r}`,
2350
2359
  limit: `/limit/${a}`,
2351
2360
  page: `/page/${o}`
2352
2361
  };
2353
- let h = `${i}${l.uri}${l.comId}${l.limit}${l.page}`;
2354
- C(e, (g) => {
2355
- const _ = (y) => {
2356
- m(y, {
2362
+ let g = `${i}${l.uri}${l.comId}${l.limit}${l.page}`;
2363
+ C(e, (h) => {
2364
+ const _ = (S) => {
2365
+ m(S, {
2357
2366
  method: "GET",
2358
2367
  headers: {
2359
- "X-DS-SWYM-CSRFTOKEN": g.result.ServerToken
2368
+ "X-DS-SWYM-CSRFTOKEN": h.result.ServerToken
2360
2369
  },
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);
2370
+ onComplete(y) {
2371
+ const w = { response: JSON.parse(y) };
2372
+ if (f = Math.ceil(Number(w.response.nb_result) / 100), y && f >= o) {
2373
+ if (o++, l.page = `/page/${o}`, S = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
2374
+ d.push(w.response.result);
2366
2375
  else {
2367
- const T = S.response.result.find(
2376
+ const T = w.response.result.find(
2368
2377
  (R) => R.title.includes(c)
2369
2378
  );
2370
2379
  if (T) {
@@ -2373,19 +2382,19 @@ function xt(e, t, n = void 0, s = void 0) {
2373
2382
  }
2374
2383
  }
2375
2384
  if (n && f < o && !c) {
2376
- p = !0, n(d);
2385
+ u = !0, n(d);
2377
2386
  return;
2378
2387
  }
2379
- _(y);
2388
+ _(S);
2380
2389
  }
2381
2390
  },
2382
- onFailure(w, S) {
2383
- const T = w;
2384
- T.status = S.status, T.response = S.errormsg, s && s(T);
2391
+ onFailure(y, w) {
2392
+ const T = y;
2393
+ T.status = w.status, T.response = w.errormsg, s && s(T);
2385
2394
  }
2386
2395
  });
2387
2396
  };
2388
- p || _(h);
2397
+ u || _(g);
2389
2398
  });
2390
2399
  }
2391
2400
  function Se(e) {
@@ -2463,7 +2472,7 @@ function Se(e) {
2463
2472
  <p>
2464
2473
  </p>` : e;
2465
2474
  }
2466
- function It(e, t = void 0, n = void 0) {
2475
+ function Ut(e, t = void 0, n = void 0) {
2467
2476
  const { tenant: s, _3DSwym: i, _3DSwym_token: r, community_id: a, idea_id: o } = e;
2468
2477
  if (s && i && r && a && o) {
2469
2478
  const c = `${i}/api/idea/forward`;
@@ -2483,9 +2492,9 @@ function It(e, t = void 0, n = void 0) {
2483
2492
  onComplete(d) {
2484
2493
  t && t(d);
2485
2494
  },
2486
- onFailure(d, u) {
2487
- const p = d;
2488
- p.status = u.status, p.response = u.errormsg, n && n(p);
2495
+ onFailure(d, p) {
2496
+ const u = d;
2497
+ u.status = p.status, u.response = p.errormsg, n && n(u);
2489
2498
  }
2490
2499
  });
2491
2500
  } else
@@ -2496,7 +2505,7 @@ function It(e, t = void 0, n = void 0) {
2496
2505
  credentials: e
2497
2506
  });
2498
2507
  }
2499
- function Nt(e, t = void 0, n = void 0) {
2508
+ function It(e, t = void 0, n = void 0) {
2500
2509
  return new Promise((s, i) => {
2501
2510
  try {
2502
2511
  let r;
@@ -2505,15 +2514,15 @@ function Nt(e, t = void 0, n = void 0) {
2505
2514
  console.log("_3DSwym_get_currentUser | url", a), m(a, {
2506
2515
  method: "GET",
2507
2516
  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 = {};
2517
+ let p = o.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, "");
2518
+ p = p.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, ""), console.log("result", p);
2519
+ let u = {};
2511
2520
  try {
2512
- p = JSON.parse(u);
2521
+ u = JSON.parse(p);
2513
2522
  } catch (f) {
2514
2523
  i("ERROR | _3DSwym_get_currentUser => JSON.Parse()", f);
2515
2524
  }
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);
2525
+ 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
2526
  },
2518
2527
  onFailure(o) {
2519
2528
  i("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", o);
@@ -2526,7 +2535,7 @@ function Nt(e, t = void 0, n = void 0) {
2526
2535
  }
2527
2536
  });
2528
2537
  }
2529
- function Ut(e, t, n = void 0, s = void 0) {
2538
+ function Nt(e, t, n = void 0, s = void 0) {
2530
2539
  const i = e.space + "/api/user/find/login/" + t;
2531
2540
  C(
2532
2541
  e,
@@ -2561,14 +2570,14 @@ function Ft(e, t = void 0, n = void 0) {
2561
2570
  },
2562
2571
  data: JSON.stringify({ richMessage: a }),
2563
2572
  type: "json",
2564
- onComplete(u, p, f) {
2573
+ onComplete(p, u, f) {
2565
2574
  const l = {
2566
- response: typeof u == "string" ? JSON.parse(u) : u
2575
+ response: typeof p == "string" ? JSON.parse(p) : p
2567
2576
  };
2568
2577
  l.status = f.status, t && t(l);
2569
2578
  },
2570
- onFailure(u) {
2571
- n && n(u);
2579
+ onFailure(p) {
2580
+ n && n(p);
2572
2581
  }
2573
2582
  };
2574
2583
  m(o, d);
@@ -2900,7 +2909,7 @@ export {
2900
2909
  G as _3DSpace_file_update,
2901
2910
  ae as _3DSpace_file_update_csr,
2902
2911
  We as _3DSpace_file_url_csr,
2903
- U as _3DSpace_get_csrf,
2912
+ N as _3DSpace_get_csrf,
2904
2913
  J as _3DSpace_get_docInfo,
2905
2914
  de as _3DSpace_get_downloadTicket_multidoc,
2906
2915
  Xe as _3DSpace_get_multiDocInfo,
@@ -2913,7 +2922,7 @@ export {
2913
2922
  Qe as _3DSpace_lifecycle_getNextStates,
2914
2923
  st as _3DSpace_lifecycle_getRevisions,
2915
2924
  Ve as _3DSpace_put_docInfo,
2916
- It as _3DSwym_ForwardIdea,
2925
+ Ut as _3DSwym_ForwardIdea,
2917
2926
  Ft as _3DSwym_addComment,
2918
2927
  wt as _3DSwym_buildDirectMessage,
2919
2928
  Tt as _3DSwym_deleteIdea,
@@ -2921,14 +2930,14 @@ export {
2921
2930
  _e as _3DSwym_findCommunityToInstantMSG,
2922
2931
  yt as _3DSwym_getAllCommunities,
2923
2932
  xt as _3DSwym_getAllListIdeas,
2924
- gt as _3DSwym_getAllNews,
2933
+ ht as _3DSwym_getAllNews,
2925
2934
  _t as _3DSwym_getFamiliarPeople,
2926
2935
  St as _3DSwym_getIdeaStatusMaturity,
2927
- ge as _3DSwym_getMembersCommunity,
2936
+ he as _3DSwym_getMembersCommunity,
2928
2937
  Ot as _3DSwym_getOneIdea,
2929
2938
  C as _3DSwym_get_Token,
2930
- Nt as _3DSwym_get_currentUser,
2931
- Ut as _3DSwym_get_findUser,
2939
+ It as _3DSwym_get_currentUser,
2940
+ Nt as _3DSwym_get_findUser,
2932
2941
  bt as _3DSwym_postIdea,
2933
2942
  Ct as _3DSwym_postIdeaTemplate,
2934
2943
  P as _3DSwym_sendMessageData,
@@ -2965,17 +2974,17 @@ export {
2965
2974
  Me as createUserGroups,
2966
2975
  pe as dataMixing,
2967
2976
  Ke as deleteUserGroups,
2968
- Ie as findAdresse,
2977
+ Ue as findAdresse,
2969
2978
  ot as getAllContextSecurity,
2970
2979
  te as getCSRFToken,
2971
2980
  xe as getCommunes,
2972
2981
  Je as getComplementUG,
2973
2982
  rt as getDataFrom3DSpace,
2974
- Ne as getDataFromGouvFr,
2983
+ Ie as getDataFromGouvFr,
2975
2984
  pt as getDatasByTenant,
2976
2985
  lt as getDatasFrom3DSpace,
2977
2986
  ct as getDownloadDocument,
2978
- ht as getInfoDocTags,
2987
+ gt as getInfoDocTags,
2979
2988
  Ge as getUserGroupsList,
2980
2989
  ee as getUsersGroupRules,
2981
2990
  ut as get_3DSpace_csrf,
@@ -2985,6 +2994,6 @@ export {
2985
2994
  Ee as readUserGroupControl,
2986
2995
  mt as removeTagToDoc,
2987
2996
  Xt as sayHello,
2988
- Ue as updateEvent
2997
+ Ne as updateEvent
2989
2998
  };
2990
2999
  //# sourceMappingURL=wb3Api.js.map