@beam3_dev/api_module 0.0.326 → 0.0.327

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
@@ -89,7 +89,7 @@ async function Ie(e, n = z) {
89
89
  } : s;
90
90
  for (let c of i)
91
91
  a.events.findIndex(
92
- (p) => p.start === O.fromISO(c.date).toISODate() && p.name === "Férié : " + c.comment
92
+ (u) => u.start === O.fromISO(c.date).toISODate() && u.name === "Férié : " + c.comment
93
93
  ) === -1 && a.events.push({
94
94
  name: "Férié : " + c.comment,
95
95
  start: O.fromISO(c.date).toISODate(),
@@ -258,9 +258,9 @@ function Ae(e, n, t) {
258
258
  Accept: "application/json"
259
259
  },
260
260
  onComplete(r, o, a) {
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 };
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 };
264
264
  });
265
265
  n && n(d, c);
266
266
  },
@@ -296,7 +296,7 @@ function Le(e, n, t = void 0, s = void 0) {
296
296
  }
297
297
  });
298
298
  }
299
- const j = {
299
+ const R = {
300
300
  "Content-Type": "application/json",
301
301
  Accept: "application/json,text/javascript,*/*"
302
302
  };
@@ -317,15 +317,15 @@ function Me(e, n, t = void 0, s = void 0) {
317
317
  };
318
318
  m(a, {
319
319
  method: "POST",
320
- headers: j,
320
+ headers: R,
321
321
  data: JSON.stringify(c),
322
322
  onComplete(d) {
323
323
  t && t(JSON.parse(d));
324
324
  },
325
- onFailure(d, p) {
325
+ onFailure(d, u) {
326
326
  console.log(d);
327
- const u = d;
328
- u.msg = p.errormsg, u.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", u), s && s(u);
327
+ const p = d;
328
+ p.msg = u.errormsg, p.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", p), s && s(p);
329
329
  }
330
330
  });
331
331
  }
@@ -355,25 +355,25 @@ function ee(e, n = void 0, t = void 0) {
355
355
  }, d = `${r}${o}${a}`;
356
356
  m(d, {
357
357
  OPTsH: c,
358
- onComplete(p) {
359
- n && n(JSON.parse(p));
358
+ onComplete(u) {
359
+ n && n(JSON.parse(u));
360
360
  },
361
- onFailure(p, u) {
362
- const f = p;
363
- f.function = "getUsersGroupRules()", f.msg = u.errormsg, f.errCode = u.errorcode, t && t(f);
361
+ onFailure(u, p) {
362
+ const f = u;
363
+ f.function = "getUsersGroupRules()", f.msg = p.errormsg, f.errCode = p.errorcode, t && t(f);
364
364
  }
365
365
  });
366
366
  }
367
367
  function Ge(e, n = void 0, t = void 0) {
368
368
  const { _usersgroup: s, currentUser: i, numMax: r } = e;
369
369
  r || (r = 50);
370
- const o = "/3drdfpersist/resources/v1/usersgroup", a = "?select=uri,title,owner,members", c = `&top=${r}`, d = `${s}${o}${a}${c}`, u = { method: "GET", headers: {
370
+ const o = "/3drdfpersist/resources/v1/usersgroup", a = "?select=uri,title,owner,members", c = `&top=${r}`, d = `${s}${o}${a}${c}`, p = { method: "GET", headers: {
371
371
  "Content-Type": "application/json",
372
372
  Accept: "application/json,text/javascript,*/*"
373
373
  } };
374
374
  try {
375
375
  m(d, {
376
- opts: u,
376
+ opts: p,
377
377
  onComplete(f) {
378
378
  const l = JSON.parse(f), g = {}, h = l.groups.filter((y) => y.uri.startsWith("uuid:"));
379
379
  if (i && Object.keys(i).length > 0) {
@@ -413,44 +413,42 @@ function Be(e, n, t) {
413
413
  return;
414
414
  }
415
415
  const o = {
416
- "Content-Type": "application/json"
417
- }, a = {
418
416
  baseUrl: s,
419
417
  uri: "/3drdfpersist/resources/v1/usersgroup/groups",
420
418
  opt: "?select=uri,members"
421
- }, c = `${a.baseUrl}${a.uri}`, d = JSON.stringify({ groups: i }), p = {
419
+ }, a = `${o.baseUrl}${o.uri}`, c = {
422
420
  method: "POST",
423
- headers: o,
424
- data: d
421
+ headers: R,
422
+ data: JSON.stringify({ groups: i })
425
423
  };
426
424
  try {
427
- m(c, {
428
- options: p,
429
- onComplete(u) {
430
- n && n(u);
425
+ m(a, {
426
+ ...c,
427
+ onComplete(d) {
428
+ n && n(d);
431
429
  },
432
- onFailure(u, f) {
433
- const l = {
434
- sendOptions: p,
430
+ onFailure(d, u) {
431
+ const p = {
432
+ sendOptions: c,
435
433
  error: new Error("Erreur sur la fonction getUserGroupsByURIList()", {
436
- cause: u
434
+ cause: d
437
435
  }),
438
- msg: f,
436
+ msg: u,
439
437
  fonction: "getUserGroupsByURIList()"
440
438
  };
441
- t && t(l);
439
+ t && t(p);
442
440
  }
443
441
  });
444
- } catch (u) {
445
- const f = {
446
- sendOptions: p,
447
- infoError: u,
442
+ } catch (d) {
443
+ const u = {
444
+ sendOptions: c,
445
+ infoError: d,
448
446
  fonction: "getUserGroupsByURIList()",
449
447
  error: new Error("Erreur sur la fonction getUserGroupsByURIList()", {
450
- cause: u
448
+ cause: d
451
449
  })
452
450
  };
453
- t && t(f);
451
+ t && t(u);
454
452
  }
455
453
  }
456
454
  function Ke(e, n) {
@@ -468,17 +466,17 @@ function Ee(e, n, t, s = void 0, i = void 0) {
468
466
  nexURImem: "/members",
469
467
  OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
470
468
  OPTsTenant: `tenant=dstenant:${o}`
471
- }, c = t, d = `${r}${a.URIUGr}/${n}`, p = JSON.stringify(c);
469
+ }, c = t, d = `${r}${a.URIUGr}/${n}`, u = JSON.stringify(c);
472
470
  m(d, {
473
- headers: j,
471
+ headers: R,
474
472
  method: "PATCH",
475
- data: p,
473
+ data: u,
476
474
  type: "json",
477
- onComplete(u) {
478
- s && s(u);
475
+ onComplete(p) {
476
+ s && s(p);
479
477
  },
480
- onFailure(u) {
481
- i && i(u);
478
+ onFailure(p) {
479
+ i && i(p);
482
480
  }
483
481
  });
484
482
  }
@@ -486,7 +484,7 @@ function qe(e, n, t, s = void 0, i = void 0) {
486
484
  const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${n}/sharing`;
487
485
  m(a, {
488
486
  method: "PATCH",
489
- headers: j,
487
+ headers: R,
490
488
  data: JSON.stringify(t),
491
489
  type: "json",
492
490
  onComplete(d) {
@@ -544,8 +542,8 @@ var se = function(e, n, t, s) {
544
542
  var a = e.length;
545
543
  o > 0 && a > o && (a = o);
546
544
  for (var c = 0; c < a; ++c) {
547
- var d = e[c].replace(r, "%20"), p = d.indexOf(t), u, f, l, g;
548
- 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;
545
+ var d = e[c].replace(r, "%20"), u = d.indexOf(t), p, f, l, g;
546
+ u >= 0 ? (p = d.substr(0, u), f = d.substr(u + 1)) : (p = d, f = ""), l = decodeURIComponent(p), g = decodeURIComponent(f), ne(i, l) ? Array.isArray(i[l]) ? i[l].push(g) : i[l] = [i[l], g] : i[l] = g;
549
547
  }
550
548
  return i;
551
549
  }, U = function(e) {
@@ -602,15 +600,15 @@ async function We(e, n = void 0, t = void 0, s = void 0) {
602
600
  },
603
601
  data: o,
604
602
  onComplete(a, c, d) {
605
- const p = JSON.parse(a);
606
- t && t(p);
603
+ const u = JSON.parse(a);
604
+ t && t(u);
607
605
  },
608
606
  onFailure(a) {
609
607
  s && s(a);
610
608
  }
611
609
  });
612
610
  }
613
- function R(e, n = void 0, t = void 0) {
611
+ function N(e, n = void 0, t = void 0) {
614
612
  if (e.objID && e.objID !== "") {
615
613
  let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
616
614
  m(s, {
@@ -654,7 +652,7 @@ function b(e, n = void 0, t = void 0) {
654
652
  }
655
653
  function k(e, n = void 0, t = void 0) {
656
654
  let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
657
- R(
655
+ N(
658
656
  e,
659
657
  (i) => {
660
658
  m(s, {
@@ -709,7 +707,7 @@ function G(e, n, t, s, i, r = void 0, o = void 0) {
709
707
  r,
710
708
  o
711
709
  );
712
- e.token ? a() : R(
710
+ e.token ? a() : N(
713
711
  e,
714
712
  n,
715
713
  (c) => {
@@ -735,7 +733,7 @@ function oe(e, n, t, s, i, r, o = void 0, a = void 0) {
735
733
  }
736
734
  }),
737
735
  type: "json",
738
- onComplete(d, p, u) {
736
+ onComplete(d, u, p) {
739
737
  const f = d.csrf, l = d.data[0].dataelements, g = new FormData();
740
738
  let h;
741
739
  s instanceof Blob ? h = s : h = new Blob([s], {
@@ -837,11 +835,11 @@ async function ze(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0)
837
835
  `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/session?tenant=${o.toUpperCase()}&xrequestedwith=xmlhttprequest`,
838
836
  {
839
837
  method: "GET",
840
- onComplete(p) {
838
+ onComplete(u) {
841
839
  try {
842
- p = JSON.parse(p);
843
- const { csrftoken: u, isadmin: f } = p;
844
- u && m(d, {
840
+ u = JSON.parse(u);
841
+ const { csrftoken: p, isadmin: f } = u;
842
+ p && m(d, {
845
843
  method: "GET",
846
844
  headers: {
847
845
  //"x-ds-csrftoken": csrftoken,
@@ -856,10 +854,10 @@ async function ze(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0)
856
854
  t,
857
855
  n,
858
856
  (_) => {
859
- const F = new DOMParser().parseFromString(
857
+ const j = new DOMParser().parseFromString(
860
858
  _,
861
859
  "text/html"
862
- ).body.firstChild.querySelector("input").getAttributeNode("value").value, D = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(a)}/contents?receipt=${encodeURIComponent(F)}`;
860
+ ).body.firstChild.querySelector("input").getAttributeNode("value").value, D = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(a)}/contents?receipt=${encodeURIComponent(j)}`;
863
861
  let W = /(?:\.([^.]+))?$/.exec(n)[1];
864
862
  const v = JSON.stringify({
865
863
  actions: [],
@@ -882,7 +880,7 @@ async function ze(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0)
882
880
  headers: {
883
881
  Accept: "application/json",
884
882
  "Content-Type": "application/json;charset=UTF-8",
885
- "X-DS-CSRFTOKEN": u
883
+ "X-DS-CSRFTOKEN": p
886
884
  },
887
885
  data: v,
888
886
  type: "json",
@@ -917,8 +915,8 @@ async function ze(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0)
917
915
  i && i();
918
916
  }
919
917
  },
920
- onFailure(p) {
921
- i && i(p);
918
+ onFailure(u) {
919
+ i && i(u);
922
920
  }
923
921
  }
924
922
  );
@@ -1014,8 +1012,8 @@ function B(e, n, t, s = void 0, i = void 0, r = void 0) {
1014
1012
  const c = new XMLHttpRequest();
1015
1013
  c.open("POST", a, !0), c.upload.onprogress = function(d) {
1016
1014
  if (d.lengthComputable) {
1017
- const p = d.loaded / d.total * 100;
1018
- r && r(p);
1015
+ const u = d.loaded / d.total * 100;
1016
+ r && r(u);
1019
1017
  }
1020
1018
  }, c.onload = function() {
1021
1019
  c.status === 200 ? s && s(c.responseText.replace(/[\n\r]/g, "")) : i && i(c.statusText);
@@ -1070,17 +1068,17 @@ function re(e, n, t, s = void 0, i = void 0, r = void 0) {
1070
1068
  }
1071
1069
  });
1072
1070
  }
1073
- function N(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0, o = !1) {
1071
+ function F(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0, o = !1) {
1074
1072
  const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
1075
1073
  m(a, {
1076
1074
  method: "GET",
1077
1075
  onComplete(c) {
1078
1076
  const d = JSON.parse(c);
1079
- let p = "", u, f, l;
1077
+ let u = "", p, f, l;
1080
1078
  if (n) {
1081
1079
  let g = d.collabspaces.find((h) => h.title === n);
1082
1080
  if (g) {
1083
- u = n;
1081
+ p = n;
1084
1082
  let h = g.couples;
1085
1083
  h = h.filter(
1086
1084
  (y, S, w) => S === w.findIndex(
@@ -1109,7 +1107,7 @@ function N(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0, o = !1
1109
1107
  }));
1110
1108
  }
1111
1109
  }
1112
- u && f && l ? (p = l + "." + f + "." + u, i(p)) : d.preferredcredentials && o ? (p = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(p)) : r && (p = l + "." + f + "." + u, r(p));
1110
+ p && f && l ? (u = l + "." + f + "." + p, i(u)) : d.preferredcredentials && o ? (u = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(u)) : r && (u = l + "." + f + "." + p, r(u));
1113
1111
  },
1114
1112
  onFailure(c, d) {
1115
1113
  console.warn("Erreur de récupération du contexte de sécurité. => ", {
@@ -1206,9 +1204,9 @@ function de(e, n, t = void 0, s = void 0, i = void 0) {
1206
1204
  type: "json",
1207
1205
  onComplete(c) {
1208
1206
  const d = c.data;
1209
- c.success === !0 && (t && t(), d.forEach((p) => {
1207
+ c.success === !0 && (t && t(), d.forEach((u) => {
1210
1208
  try {
1211
- const u = p.dataelements.fileName, f = p.dataelements.ticketURL;
1209
+ const p = u.dataelements.fileName, f = u.dataelements.ticketURL;
1212
1210
  m(f, {
1213
1211
  onComplete: (l, g) => {
1214
1212
  let h;
@@ -1218,9 +1216,9 @@ function de(e, n, t = void 0, s = void 0, i = void 0) {
1218
1216
  h = l.blob();
1219
1217
  }
1220
1218
  s && s({
1221
- objectId: p.id,
1219
+ objectId: u.id,
1222
1220
  headers: g,
1223
- fileName: u,
1221
+ fileName: p,
1224
1222
  data: h
1225
1223
  });
1226
1224
  },
@@ -1228,8 +1226,8 @@ function de(e, n, t = void 0, s = void 0, i = void 0) {
1228
1226
  console.log("error http", l);
1229
1227
  }
1230
1228
  });
1231
- } catch (u) {
1232
- console.log(u), i && i(u);
1229
+ } catch (p) {
1230
+ console.log(p), i && i(p);
1233
1231
  }
1234
1232
  }));
1235
1233
  },
@@ -1305,7 +1303,7 @@ function tt(e, n, t = void 0, s = void 0) {
1305
1303
  return new Promise((i) => {
1306
1304
  if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
1307
1305
  const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
1308
- N(
1306
+ F(
1309
1307
  e.space,
1310
1308
  "ESPACE COMMUN",
1311
1309
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1346,7 +1344,7 @@ function nt(e, n, t = void 0, s = void 0) {
1346
1344
  return new Promise((i) => {
1347
1345
  if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
1348
1346
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
1349
- N(
1347
+ F(
1350
1348
  e.space,
1351
1349
  "ESPACE COMMUN",
1352
1350
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1393,7 +1391,7 @@ function st(e, n, t, s = void 0, i = void 0) {
1393
1391
  return new Promise((r) => {
1394
1392
  if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
1395
1393
  const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
1396
- N(
1394
+ F(
1397
1395
  e.space,
1398
1396
  "ESPACE COMMUN",
1399
1397
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1455,14 +1453,14 @@ function it(e, n, t = void 0, s = void 0) {
1455
1453
  const { tenant: o, ctx: a, space: c } = e;
1456
1454
  (!o || !a || !c) && r({ error: "Erreur de credentials", tenant: o, ctx: a, space: c });
1457
1455
  const d = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=1&withAttributes=1&withCopyFrom=1&tenant=${e.tenant.toUpperCase()}&xrequestedwith=xmlhttprequest`;
1458
- let p;
1456
+ let u;
1459
1457
  await ue(e).then(
1460
- (f) => p = f?.SecurityContext
1458
+ (f) => u = f?.SecurityContext
1461
1459
  );
1462
- let u = {
1460
+ let p = {
1463
1461
  method: "POST",
1464
1462
  headers: {
1465
- securitycontext: "ctx::" + p,
1463
+ securitycontext: "ctx::" + u,
1466
1464
  Accept: "application/json",
1467
1465
  "Content-Type": "application/json"
1468
1466
  },
@@ -1482,7 +1480,7 @@ function it(e, n, t = void 0, s = void 0) {
1482
1480
  s && s(f), r(f);
1483
1481
  }
1484
1482
  };
1485
- m(d, u);
1483
+ m(d, p);
1486
1484
  });
1487
1485
  }
1488
1486
  function ot(e, n, t, s, i = void 0, r = void 0) {
@@ -1498,7 +1496,7 @@ function ot(e, n, t, s, i = void 0, r = void 0) {
1498
1496
  items: []
1499
1497
  };
1500
1498
  n && (d.parentId = n), d.items.push(c);
1501
- let p = {
1499
+ let u = {
1502
1500
  method: "POST",
1503
1501
  headers: {
1504
1502
  Accept: "application/json",
@@ -1508,14 +1506,14 @@ function ot(e, n, t, s, i = void 0, r = void 0) {
1508
1506
  },
1509
1507
  data: JSON.stringify(d),
1510
1508
  type: "json",
1511
- onComplete(u) {
1512
- i && i(u);
1509
+ onComplete(p) {
1510
+ i && i(p);
1513
1511
  },
1514
- onFailure(u) {
1515
- r && r(u);
1512
+ onFailure(p) {
1513
+ r && r(p);
1516
1514
  }
1517
1515
  };
1518
- m(a, p);
1516
+ m(a, u);
1519
1517
  });
1520
1518
  }
1521
1519
  function at(e, n, t, s, i = void 0, r = void 0) {
@@ -1594,7 +1592,7 @@ async function dt(e, n, t = void 0, s = void 0) {
1594
1592
  }
1595
1593
  function ut(e, n, t, s = void 0, i = void 0) {
1596
1594
  const r = new Blob([JSON.stringify(n)], { type: "text/plain" });
1597
- e = { ...e, objID: t }, R(
1595
+ e = { ...e, objID: t }, N(
1598
1596
  e,
1599
1597
  (o) => {
1600
1598
  console.log("_3DSpace_get_csrf | onDone | data", o);
@@ -1621,7 +1619,7 @@ function ut(e, n, t, s = void 0, i = void 0) {
1621
1619
  let E, q;
1622
1620
  const A = [];
1623
1621
  async function pt(e, n = void 0, t = void 0) {
1624
- e.objID && e.objID !== "" ? R(
1622
+ e.objID && e.objID !== "" ? N(
1625
1623
  e,
1626
1624
  (s) => {
1627
1625
  n && n(s);
@@ -1705,7 +1703,7 @@ function mt(e, n, t = void 0, s = void 0) {
1705
1703
  uri: "/resources/6w/tags",
1706
1704
  otpCTX: "SecurityContext=preferred",
1707
1705
  optTenant: `tenant=${r}`
1708
- }, p = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, u = {
1706
+ }, u = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
1709
1707
  tag: [
1710
1708
  {
1711
1709
  subject: [
@@ -1720,13 +1718,13 @@ function mt(e, n, t = void 0, s = void 0) {
1720
1718
  }
1721
1719
  ]
1722
1720
  };
1723
- m(p, {
1721
+ m(u, {
1724
1722
  method: "PUT",
1725
1723
  headers: {
1726
1724
  "Content-Type": "application/json",
1727
1725
  Accept: "application/json"
1728
1726
  },
1729
- data: JSON.stringify(u),
1727
+ data: JSON.stringify(p),
1730
1728
  onComplete(f) {
1731
1729
  JSON.parse(f);
1732
1730
  const l = {};
@@ -1833,13 +1831,13 @@ function ge(e, n, t = void 0, s = void 0) {
1833
1831
  method: "POST",
1834
1832
  headers: a,
1835
1833
  data: JSON.stringify(d),
1836
- onComplete(p) {
1837
- const u = JSON.parse(p);
1838
- t(u);
1834
+ onComplete(u) {
1835
+ const p = JSON.parse(u);
1836
+ t(p);
1839
1837
  },
1840
- onFailure(p, u) {
1841
- const f = p;
1842
- 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);
1838
+ onFailure(u, p) {
1839
+ const f = u;
1840
+ 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);
1843
1841
  }
1844
1842
  });
1845
1843
  }
@@ -1870,12 +1868,12 @@ function gt(e, n, t = void 0, s = void 0) {
1870
1868
  "Content-Type": "application/json",
1871
1869
  Accept: "application/json,text/javascript,*/*"
1872
1870
  },
1873
- onComplete(p) {
1874
- t && t(p);
1871
+ onComplete(u) {
1872
+ t && t(u);
1875
1873
  },
1876
- onFailure(p, u) {
1877
- const f = p;
1878
- f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f);
1874
+ onFailure(u, p) {
1875
+ const f = u;
1876
+ f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f);
1879
1877
  }
1880
1878
  });
1881
1879
  }
@@ -1896,9 +1894,9 @@ function ht(e, n = "", t = void 0, s = void 0) {
1896
1894
  onComplete(d) {
1897
1895
  t && t(JSON.parse(d));
1898
1896
  },
1899
- onFailure(d, p) {
1900
- const u = d;
1901
- u.msg = p.error, s && s(u);
1897
+ onFailure(d, u) {
1898
+ const p = d;
1899
+ p.msg = u.error, s && s(p);
1902
1900
  }
1903
1901
  });
1904
1902
  }
@@ -1989,9 +1987,9 @@ function St(e, n = void 0, t = void 0) {
1989
1987
  "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1990
1988
  },
1991
1989
  onComplete(a, c, d) {
1992
- const u = JSON.parse(a).result;
1990
+ const p = JSON.parse(a).result;
1993
1991
  let f = 0;
1994
- u.forEach((l) => {
1992
+ p.forEach((l) => {
1995
1993
  const g = {
1996
1994
  description: l.description,
1997
1995
  id: l.id,
@@ -2004,7 +2002,7 @@ function St(e, n = void 0, t = void 0) {
2004
2002
  e,
2005
2003
  l.id,
2006
2004
  (h) => {
2007
- f++, g.members = h, r.push(g), f === u.length && n && n(r);
2005
+ f++, g.members = h, r.push(g), f === p.length && n && n(r);
2008
2006
  },
2009
2007
  (h) => t(h)
2010
2008
  );
@@ -2079,23 +2077,23 @@ function Ct(e, n, t = void 0, s = void 0) {
2079
2077
  senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
2080
2078
  msg: _e(n.msg)
2081
2079
  };
2082
- let p = !1;
2080
+ let u = !1;
2083
2081
  ye(
2084
2082
  c.users,
2085
- (u) => {
2086
- u !== void 0 && (d.id_msg = u.id, p = !0, P(e, d));
2083
+ (p) => {
2084
+ p !== void 0 && (d.id_msg = p.id, u = !0, P(e, d));
2087
2085
  },
2088
- (u) => {
2089
- p = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", u), s && s(u), d.id_msg = "";
2086
+ (p) => {
2087
+ u = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), d.id_msg = "";
2090
2088
  }
2091
- ), p === !1 && setTimeout(() => {
2092
- p === !1 && C(e, (u) => {
2089
+ ), u === !1 && setTimeout(() => {
2090
+ u === !1 && C(e, (p) => {
2093
2091
  m(a, {
2094
2092
  method: "POST",
2095
2093
  headers: {
2096
2094
  "Content-Type": "application/json",
2097
2095
  Accept: "application/json",
2098
- "X-DS-SWYM-CSRFTOKEN": u.result.ServerToken
2096
+ "X-DS-SWYM-CSRFTOKEN": p.result.ServerToken
2099
2097
  },
2100
2098
  data: JSON.stringify(c),
2101
2099
  type: "json",
@@ -2122,16 +2120,16 @@ function ye(e, n, t, s) {
2122
2120
  },
2123
2121
  onComplete(o) {
2124
2122
  const a = JSON.parse(o), c = [];
2125
- a.result.forEach((u) => {
2126
- u.users = u.users.sort((f, l) => f.login.localeCompare(l.login)), u.users.length === n.length && c.push(u);
2123
+ a.result.forEach((p) => {
2124
+ p.users = p.users.sort((f, l) => f.login.localeCompare(l.login)), p.users.length === n.length && c.push(p);
2127
2125
  });
2128
- const d = n.sort(), p = c.find((u) => {
2126
+ const d = n.sort(), u = c.find((p) => {
2129
2127
  const f = [];
2130
- return u.users.forEach((l) => {
2128
+ return p.users.forEach((l) => {
2131
2129
  f.push(l.login);
2132
2130
  }), JSON.stringify(f) === JSON.stringify(d);
2133
2131
  });
2134
- t && p !== void 0 ? t(p) : (s || p === void 0) && s(p);
2132
+ t && u !== void 0 ? t(u) : (s || u === void 0) && s(u);
2135
2133
  },
2136
2134
  onFailure(o) {
2137
2135
  const a = o;
@@ -2166,13 +2164,13 @@ function P(e, n, t = void 0, s = void 0) {
2166
2164
  },
2167
2165
  data: JSON.stringify(o),
2168
2166
  type: "json",
2169
- onComplete(c, d, p) {
2170
- const u = c;
2171
- u.status = p.status, u.response = JSON.parse(p.response), console.log("✅ _3dSwym_sendDirectMessageData => ", u), t && t(u);
2167
+ onComplete(c, d, u) {
2168
+ const p = c;
2169
+ p.status = u.status, p.response = JSON.parse(u.response), console.log("✅ _3dSwym_sendDirectMessageData => ", p), t && t(p);
2172
2170
  },
2173
2171
  onFailure(c, d) {
2174
- const p = c;
2175
- p.msg = d.errormsg, p.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", p), s && s(p);
2172
+ const u = c;
2173
+ u.msg = d.errormsg, u.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", u), s && s(u);
2176
2174
  }
2177
2175
  });
2178
2176
  });
@@ -2212,13 +2210,13 @@ function bt(e, n, t = void 0, s = void 0) {
2212
2210
  headers: d,
2213
2211
  data: JSON.stringify(a),
2214
2212
  type: "json",
2215
- onComplete(p, u, f) {
2216
- const l = JSON.parse(p);
2213
+ onComplete(u, p, f) {
2214
+ const l = JSON.parse(u);
2217
2215
  l.status = f.status, l.response = f.response, t && t(l);
2218
2216
  },
2219
- onFailure(p, u, f) {
2220
- const l = p;
2221
- l.status = u.status, l.response = u.errormsg, s && s(l);
2217
+ onFailure(u, p, f) {
2218
+ const l = u;
2219
+ l.status = p.status, l.response = p.errormsg, s && s(l);
2222
2220
  }
2223
2221
  });
2224
2222
  });
@@ -2279,15 +2277,15 @@ function Tt(e, n = void 0, t = void 0) {
2279
2277
  },
2280
2278
  method: "POST",
2281
2279
  data: JSON.stringify(r),
2282
- onComplete(c, d, p) {
2283
- const u = { response: c };
2284
- typeof u.response == "string" && (u.response = JSON.parse(u.response)), u.status = p.status, n && n(u);
2280
+ onComplete(c, d, u) {
2281
+ const p = { response: c };
2282
+ typeof p.response == "string" && (p.response = JSON.parse(p.response)), p.status = u.status, n && n(p);
2285
2283
  },
2286
- onFailure(c, d, p) {
2287
- const u = JSON.parse(d), f = JSON.parse(c), l = new Error(
2284
+ onFailure(c, d, u) {
2285
+ const p = JSON.parse(d), f = JSON.parse(c), l = new Error(
2288
2286
  `Erreur sur cette requête : ${s.base + s.uri}`,
2289
2287
  {
2290
- cause: { head: u, rep: f }
2288
+ cause: { head: p, rep: f }
2291
2289
  }
2292
2290
  );
2293
2291
  t && t(l);
@@ -2317,8 +2315,8 @@ function Ot(e, n, t = void 0, s = void 0) {
2317
2315
  t && t(a);
2318
2316
  },
2319
2317
  onFailure(a, c, d) {
2320
- const p = a;
2321
- p.status = c.status, p.response = c.errormsg, s && s(p);
2318
+ const u = a;
2319
+ u.status = c.status, u.response = c.errormsg, s && s(u);
2322
2320
  }
2323
2321
  });
2324
2322
  });
@@ -2360,8 +2358,8 @@ function Ut(e, n, t) {
2360
2358
  community_id: a,
2361
2359
  status_comment: c,
2362
2360
  status_id: d,
2363
- message: p
2364
- } = e, u = {
2361
+ message: u
2362
+ } = e, p = {
2365
2363
  base: `${s}`,
2366
2364
  uri: "/api/idea/edit"
2367
2365
  }, l = {
@@ -2379,7 +2377,7 @@ function Ut(e, n, t) {
2379
2377
  community_id: a,
2380
2378
  status_comment: c,
2381
2379
  status_id: d,
2382
- message: p,
2380
+ message: u,
2383
2381
  published: "1"
2384
2382
  }
2385
2383
  }),
@@ -2394,14 +2392,14 @@ function Ut(e, n, t) {
2394
2392
  t && t(g);
2395
2393
  }
2396
2394
  };
2397
- m(u.base + u.uri, l);
2395
+ m(p.base + p.uri, l);
2398
2396
  }
2399
2397
  function xt(e, n, t = void 0, s = void 0) {
2400
2398
  const { _3DSwym: i } = e;
2401
2399
  let { community_id: r, limit: o, page: a, search: c } = n;
2402
- const d = [], p = 1;
2403
- let u = !1, f = 2;
2404
- a || (a = p), o || (o = 100);
2400
+ const d = [], u = 1;
2401
+ let p = !1, f = 2;
2402
+ a || (a = u), o || (o = 100);
2405
2403
  const l = {
2406
2404
  uri: "/api/idea/list",
2407
2405
  comId: `/community_id/${r}`,
@@ -2423,7 +2421,7 @@ function xt(e, n, t = void 0, s = void 0) {
2423
2421
  d.push(_.response.result);
2424
2422
  else {
2425
2423
  const T = _.response.result.find(
2426
- (F) => F.title.includes(c)
2424
+ (j) => j.title.includes(c)
2427
2425
  );
2428
2426
  if (T) {
2429
2427
  t(T);
@@ -2431,7 +2429,7 @@ function xt(e, n, t = void 0, s = void 0) {
2431
2429
  }
2432
2430
  }
2433
2431
  if (t && f < a && !c) {
2434
- u = !0, t(d);
2432
+ p = !0, t(d);
2435
2433
  return;
2436
2434
  }
2437
2435
  y(S);
@@ -2443,7 +2441,7 @@ function xt(e, n, t = void 0, s = void 0) {
2443
2441
  }
2444
2442
  });
2445
2443
  };
2446
- u || y(g);
2444
+ p || y(g);
2447
2445
  });
2448
2446
  }
2449
2447
  function Se(e) {
@@ -2541,9 +2539,9 @@ function It(e, n = void 0, t = void 0) {
2541
2539
  onComplete(d) {
2542
2540
  n && n(d);
2543
2541
  },
2544
- onFailure(d, p) {
2545
- const u = d;
2546
- u.status = p.status, u.response = p.errormsg, t && t(u);
2542
+ onFailure(d, u) {
2543
+ const p = d;
2544
+ p.status = u.status, p.response = u.errormsg, t && t(p);
2547
2545
  }
2548
2546
  });
2549
2547
  } else
@@ -2563,15 +2561,15 @@ function Rt(e, n = void 0, t = void 0) {
2563
2561
  console.log("_3DSwym_get_currentUser | url", o), m(o, {
2564
2562
  method: "GET",
2565
2563
  onComplete(a, c, d) {
2566
- let p = a.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, "");
2567
- p = p.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, ""), console.log("result", p);
2568
- let u = {};
2564
+ let u = a.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, "");
2565
+ u = u.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, ""), console.log("result", u);
2566
+ let p = {};
2569
2567
  try {
2570
- u = JSON.parse(p);
2568
+ p = JSON.parse(u);
2571
2569
  } catch (f) {
2572
2570
  i("ERROR | _3DSwym_get_currentUser => JSON.Parse()", f);
2573
2571
  }
2574
- 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);
2572
+ 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);
2575
2573
  },
2576
2574
  onFailure(a) {
2577
2575
  i("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", a);
@@ -2619,14 +2617,14 @@ function Ft(e, n = void 0, t = void 0) {
2619
2617
  },
2620
2618
  data: JSON.stringify({ richMessage: o }),
2621
2619
  type: "json",
2622
- onComplete(p, u, f) {
2620
+ onComplete(u, p, f) {
2623
2621
  const l = {
2624
- response: typeof p == "string" ? JSON.parse(p) : p
2622
+ response: typeof u == "string" ? JSON.parse(u) : u
2625
2623
  };
2626
2624
  l.status = f.status, n && n(l);
2627
2625
  },
2628
- onFailure(p) {
2629
- t && t(p);
2626
+ onFailure(u) {
2627
+ t && t(u);
2630
2628
  }
2631
2629
  };
2632
2630
  m(a, d);
@@ -2871,7 +2869,7 @@ function Vt(e, n = void 0, t = void 0) {
2871
2869
  const o = Z();
2872
2870
  console.log("platformeInfo", o);
2873
2871
  }
2874
- N(
2872
+ F(
2875
2873
  e,
2876
2874
  "Common space",
2877
2875
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -2958,11 +2956,11 @@ export {
2958
2956
  G as _3DSpace_file_update,
2959
2957
  oe as _3DSpace_file_update_csr,
2960
2958
  Ve as _3DSpace_file_url_csr,
2961
- R as _3DSpace_get_csrf,
2959
+ N as _3DSpace_get_csrf,
2962
2960
  J as _3DSpace_get_docInfo,
2963
2961
  de as _3DSpace_get_downloadTicket_multidoc,
2964
2962
  We as _3DSpace_get_multiDocInfo,
2965
- N as _3DSpace_get_securityContexts,
2963
+ F as _3DSpace_get_securityContexts,
2966
2964
  k as _3DSpace_get_ticket,
2967
2965
  st as _3DSpace_lifecycle_changeRevision,
2968
2966
  et as _3DSpace_lifecycle_changeState,