@beam3_dev/api_module 0.0.288 → 0.0.289

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
@@ -1,6 +1,6 @@
1
1
  import { v4 as V } from "uuid";
2
2
  import { DateTime as O } from "luxon";
3
- import { requirejs as $, widget as v } from "@widget-lab/3ddashboard-utils";
3
+ import { requirejs as $, widget as A } from "@widget-lab/3ddashboard-utils";
4
4
  function Y() {
5
5
  return V();
6
6
  }
@@ -34,7 +34,7 @@ const H = {
34
34
  b3Edit8: "#616161",
35
35
  b3Edit9: "#795548"
36
36
  };
37
- async function $e(e, t = void 0, n = void 0) {
37
+ async function Ne(e, t = void 0, n = void 0) {
38
38
  const s = parseInt(e);
39
39
  await fetch(
40
40
  "https://apicarto.ign.fr/api/codes-postaux/communes/" + s,
@@ -50,7 +50,7 @@ async function $e(e, t = void 0, n = void 0) {
50
50
  n && n(i), console.error("Erreur : " + i);
51
51
  });
52
52
  }
53
- async function Ne(e, t = void 0, n = void 0) {
53
+ async function xe(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
  {
@@ -155,12 +155,12 @@ function Ue(e, t = void 0) {
155
155
  $(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
156
156
  let s;
157
157
  s === void 0 && (s = n.createProxy({
158
- widgetId: v.id,
158
+ widgetId: A.id,
159
159
  filteringMode: "WithFilteringServices"
160
160
  }), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
161
161
  });
162
162
  }
163
- function xe(e, t) {
163
+ function je(e, t) {
164
164
  $(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
165
165
  n.droppable(e, {
166
166
  drop: t
@@ -171,7 +171,7 @@ async function ke(e, t = void 0, n = void 0) {
171
171
  await $(
172
172
  ["DS/i3DXCompassServices/i3DXCompassServices"],
173
173
  (s) => {
174
- (!e || e === "") && (e = v.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
174
+ (!e || e === "") && (e = A.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
175
175
  s.getPlatformServices({
176
176
  platformId: e,
177
177
  onComplete: t,
@@ -195,7 +195,7 @@ function Z() {
195
195
  };
196
196
  }), console.log("%cRETOUR API :", "color:blue", e), e;
197
197
  }
198
- function je(e, t = void 0, n = void 0) {
198
+ function ve(e, t = void 0, n = void 0) {
199
199
  if (e.tenant) {
200
200
  const s = `https://${e.tenant}-eu1.iam.3dexperience.3ds.com/api/authenticated/user/me?xrequestedwith=xmlhttprequest`;
201
201
  m(s, {
@@ -272,7 +272,7 @@ function Ae(e, t, n) {
272
272
  }
273
273
  });
274
274
  }
275
- function ve(e, t = void 0, n = void 0) {
275
+ function Pe(e, t = void 0, n = void 0) {
276
276
  let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
277
277
  m(s, {
278
278
  onComplete(i, r, a) {
@@ -285,7 +285,7 @@ function ve(e, t = void 0, n = void 0) {
285
285
  }
286
286
  });
287
287
  }
288
- function Pe(e, t, n = void 0, s = void 0) {
288
+ function Le(e, t, n = void 0, s = void 0) {
289
289
  let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
290
290
  m(i, {
291
291
  onComplete(r, a, o) {
@@ -298,11 +298,11 @@ function Pe(e, t, n = void 0, s = void 0) {
298
298
  }
299
299
  });
300
300
  }
301
- const k = {
301
+ const j = {
302
302
  "Content-Type": "application/json",
303
303
  Accept: "application/json,text/javascript,*/*"
304
304
  };
305
- function Le(e, t, n = void 0, s = void 0) {
305
+ function Me(e, t, n = void 0, s = void 0) {
306
306
  const { space: i, currentUser: r } = e, o = `${i}${{
307
307
  URIUGr: "/3drdfpersist/resources/v1/usersgroup"
308
308
  }.URIUGr}`, c = {
@@ -319,7 +319,7 @@ function Le(e, t, n = void 0, s = void 0) {
319
319
  };
320
320
  m(o, {
321
321
  method: "POST",
322
- headers: k,
322
+ headers: j,
323
323
  data: JSON.stringify(c),
324
324
  onComplete(d) {
325
325
  n && n(JSON.parse(d));
@@ -331,7 +331,7 @@ function Le(e, t, n = void 0, s = void 0) {
331
331
  }
332
332
  });
333
333
  }
334
- function Me(e, t, n = void 0, s = void 0) {
334
+ function Je(e, t, n = void 0, s = void 0) {
335
335
  const { space: i, tenant: r } = e, a = i, o = `/3drdfpersist/v1/resources/${t}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${a}${o}${c}`;
336
336
  m(d, {
337
337
  opts: {
@@ -366,7 +366,7 @@ function ee(e, t = void 0, n = void 0) {
366
366
  }
367
367
  });
368
368
  }
369
- function Je(e, t = void 0, n = void 0) {
369
+ function Ge(e, t = void 0, n = void 0) {
370
370
  const { space: 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: {
371
371
  "Content-Type": "application/json",
372
372
  Accept: "application/json,text/javascript,*/*"
@@ -377,14 +377,14 @@ function Je(e, t = void 0, n = void 0) {
377
377
  onComplete(u) {
378
378
  const p = JSON.parse(u), f = {}, l = p.groups.filter((h) => h.uri.startsWith("uuid:"));
379
379
  if (i && Object.keys(i).length > 0) {
380
- const h = l.filter((y) => y.owner === i.email), g = l.filter((y) => y.members.includes(i.email)), _ = h.concat(g);
381
- f.iam = _, f.UG = l, f.iamMember = g, ee(
380
+ const h = l.filter((_) => _.owner === i.email), g = l.filter((_) => _.members.includes(i.email)), y = h.concat(g);
381
+ f.iam = y, f.UG = l, f.iamMember = g, ee(
382
382
  e,
383
- (y) => {
384
- f.rules = y, t && t(f);
383
+ (_) => {
384
+ f.rules = _, t && t(f);
385
385
  },
386
- (y) => {
387
- n && n(y);
386
+ (_) => {
387
+ n && n(_);
388
388
  }
389
389
  );
390
390
  }
@@ -397,13 +397,13 @@ function Je(e, t = void 0, n = void 0) {
397
397
  console.log(u);
398
398
  }
399
399
  }
400
- function Ge(e, t) {
400
+ function Ke(e, t) {
401
401
  const { space: n } = e, i = `${n}/3drdfpersist/resources/v1/usersgroup/${t}`;
402
402
  m(i, {
403
403
  method: "DELETE"
404
404
  });
405
405
  }
406
- function Ke(e, t, n, s = void 0, i = void 0) {
406
+ function Be(e, t, n, s = void 0, i = void 0) {
407
407
  const { space: r, tenant: a } = e, o = {
408
408
  URITI: "/3drdfpersist/resources/v1/template-instances",
409
409
  URIUGr: "/3drdfpersist/resources/v1/usersgroup",
@@ -414,7 +414,7 @@ function Ke(e, t, n, s = void 0, i = void 0) {
414
414
  OPTsTenant: `tenant=dstenant:${a}`
415
415
  }, c = n, d = `${r}${o.URIUGr}/${t}`, u = JSON.stringify(c);
416
416
  m(d, {
417
- headers: k,
417
+ headers: j,
418
418
  method: "PATCH",
419
419
  data: u,
420
420
  type: "json",
@@ -426,11 +426,11 @@ function Ke(e, t, n, s = void 0, i = void 0) {
426
426
  }
427
427
  });
428
428
  }
429
- function Be(e, t, n, s = void 0, i = void 0) {
429
+ function qe(e, t, n, s = void 0, i = void 0) {
430
430
  const { space: r } = e, o = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
431
431
  m(o, {
432
432
  method: "PATCH",
433
- headers: k,
433
+ headers: j,
434
434
  data: JSON.stringify(n),
435
435
  type: "json",
436
436
  onComplete(d) {
@@ -472,7 +472,7 @@ async function te(e, t, n) {
472
472
  });
473
473
  }
474
474
  }
475
- var F = {};
475
+ var x = {};
476
476
  function ne(e, t) {
477
477
  return Object.prototype.hasOwnProperty.call(e, t);
478
478
  }
@@ -511,8 +511,8 @@ var se = function(e, t, n, s) {
511
511
  }).join(t) : r + encodeURIComponent(N(e[i]));
512
512
  }).filter(Boolean).join(t) : s ? encodeURIComponent(N(s)) + n + encodeURIComponent(N(e)) : "";
513
513
  };
514
- F.decode = F.parse = se;
515
- F.encode = F.stringify = ie;
514
+ x.decode = x.parse = se;
515
+ x.encode = x.stringify = ie;
516
516
  async function L(e, t = void 0, n = void 0, s = void 0) {
517
517
  const i = e.space;
518
518
  if (t === void 0) {
@@ -530,13 +530,13 @@ async function L(e, t = void 0, n = void 0, s = void 0) {
530
530
  }
531
531
  });
532
532
  }
533
- async function qe(e, t = void 0, n = void 0, s = void 0) {
533
+ async function Xe(e, t = void 0, n = void 0, s = void 0) {
534
534
  const i = e.space;
535
535
  if (t === void 0) {
536
536
  console.log("Le paramètre docids est obligatoire");
537
537
  return;
538
538
  }
539
- let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, a = F.stringify({
539
+ let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, a = x.stringify({
540
540
  $ids: t.toString().replace('"', "").replace("[", "").replace("]", "")
541
541
  });
542
542
  m(r, {
@@ -554,7 +554,7 @@ async function qe(e, t = void 0, n = void 0, s = void 0) {
554
554
  }
555
555
  });
556
556
  }
557
- function I(e, t = void 0, n = void 0) {
557
+ function F(e, t = void 0, n = void 0) {
558
558
  if (e.objID && e.objID !== "") {
559
559
  let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
560
560
  m(s, {
@@ -596,9 +596,9 @@ function b(e, t = void 0, n = void 0) {
596
596
  } else
597
597
  n && n("ERROR : url du 3DSpace non défini.");
598
598
  }
599
- function j(e, t = void 0, n = void 0) {
599
+ function k(e, t = void 0, n = void 0) {
600
600
  let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
601
- I(
601
+ F(
602
602
  e,
603
603
  (i) => {
604
604
  m(s, {
@@ -620,7 +620,7 @@ function j(e, t = void 0, n = void 0) {
620
620
  }
621
621
  );
622
622
  }
623
- function Xe(e, t, n = void 0, s = void 0, i = void 0) {
623
+ function We(e, t, n = void 0, s = void 0, i = void 0) {
624
624
  const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
625
625
  n || (n = e.token), m(r, {
626
626
  method: "PUT",
@@ -653,7 +653,7 @@ function M(e, t, n, s, i, r = void 0, a = void 0) {
653
653
  r,
654
654
  a
655
655
  );
656
- e.token ? o() : I(
656
+ e.token ? o() : F(
657
657
  e,
658
658
  t,
659
659
  (c) => {
@@ -674,8 +674,8 @@ function ae(e, t, n, s, i, r, a = void 0, o = void 0) {
674
674
  s instanceof Blob ? g = s : g = new Blob([s], {
675
675
  type: "text/plain"
676
676
  }), h.append("__fcs__jobTicket", l.ticket), h.append("file_0", g, i);
677
- const _ = {};
678
- _.method = "POST", _.data = h, _.onComplete = function(y) {
677
+ const y = {};
678
+ y.method = "POST", y.data = h, y.onComplete = function(_) {
679
679
  let S = {
680
680
  method: "PUT",
681
681
  headers: {
@@ -690,7 +690,7 @@ function ae(e, t, n, s, i, r, a = void 0, o = void 0) {
690
690
  {
691
691
  dataelements: {
692
692
  title: i,
693
- receipt: y
693
+ receipt: _
694
694
  },
695
695
  updateAction: "REVISE"
696
696
  }
@@ -713,13 +713,13 @@ function ae(e, t, n, s, i, r, a = void 0, o = void 0) {
713
713
  e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${w}&e6w-lang=en&e6w-timezone=-120&xrequestedwith=xmlhttprequest`,
714
714
  S
715
715
  );
716
- }, _.onFailure = function(y) {
717
- o && o(y);
718
- }, _.timeout = 0, m(l.ticketURL, _);
716
+ }, y.onFailure = function(_) {
717
+ o && o(_);
718
+ }, y.timeout = 0, m(l.ticketURL, y);
719
719
  }
720
720
  });
721
721
  }
722
- async function We(e, t, n = void 0, s = void 0) {
722
+ async function Ve(e, t, n = void 0, s = void 0) {
723
723
  e.space, e.token, e.ctx;
724
724
  const i = e?.description, r = e?.title;
725
725
  let a = `${e.space}/resources/v1/modeler/documents/${t}`;
@@ -748,7 +748,7 @@ async function We(e, t, n = void 0, s = void 0) {
748
748
  }
749
749
  });
750
750
  }
751
- async function Ve(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0) {
751
+ async function Ye(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0) {
752
752
  let { tenant: a, cs_name: o } = e;
753
753
  if (!a && !o) {
754
754
  i && i("Credentials undefined");
@@ -779,17 +779,17 @@ async function Ve(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
779
779
  onComplete(l, h, g) {
780
780
  try {
781
781
  if (l = JSON.parse(l), l?.ticket) {
782
- const { ticket: _, actionurl: y, jobticket: S } = l;
782
+ const { ticket: y, actionurl: _, jobticket: S } = l;
783
783
  J(
784
- { dataelements: { ticket: _, ticketURL: y } },
784
+ { dataelements: { ticket: y, ticketURL: _ } },
785
785
  n,
786
786
  t,
787
787
  (w) => {
788
- const U = new DOMParser().parseFromString(
788
+ const R = new DOMParser().parseFromString(
789
789
  w,
790
790
  "text/html"
791
- ).body.firstChild.querySelector("input").getAttributeNode("value").value, q = `https://${a.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${o}/contents?receipt=${encodeURIComponent(
792
- U
791
+ ).body.firstChild.querySelector("input").getAttributeNode("value").value, E = `https://${a.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${o}/contents?receipt=${encodeURIComponent(
792
+ R
793
793
  )}`;
794
794
  let X = /(?:\.([^.]+))?$/.exec(t)[1];
795
795
  const W = JSON.stringify({
@@ -808,7 +808,7 @@ async function Ve(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
808
808
  },
809
809
  collabspace: o
810
810
  });
811
- m(q, {
811
+ m(E, {
812
812
  method: "POST",
813
813
  headers: {
814
814
  Accept: "application/json",
@@ -817,13 +817,13 @@ async function Ve(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
817
817
  },
818
818
  data: W,
819
819
  type: "json",
820
- onComplete(x, we, Ce) {
821
- s && s(x);
820
+ onComplete(U, Ce, Te) {
821
+ s && s(U);
822
822
  },
823
- onFailure(x) {
823
+ onFailure(U) {
824
824
  console.warn(
825
825
  "_3DSpace_Upload_Doc | pushFileInFcs | onFailure"
826
- ), i && i(x);
826
+ ), i && i(U);
827
827
  }
828
828
  });
829
829
  },
@@ -835,8 +835,8 @@ async function Ve(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
835
835
  }
836
836
  );
837
837
  }
838
- } catch (_) {
839
- i && i(_);
838
+ } catch (y) {
839
+ i && i(y);
840
840
  }
841
841
  },
842
842
  onFailure(l) {
@@ -853,7 +853,7 @@ async function Ve(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
853
853
  }
854
854
  );
855
855
  }
856
- async function Ye(e, t, n, s = void 0, i = void 0) {
856
+ async function He(e, t, n, s = void 0, i = void 0) {
857
857
  e.space, e.token, e.ctx, L(
858
858
  e,
859
859
  t,
@@ -878,7 +878,7 @@ async function Ye(e, t, n, s = void 0, i = void 0) {
878
878
  }
879
879
  );
880
880
  }
881
- async function He(e, t, n, s, i = void 0, r = void 0) {
881
+ async function ze(e, t, n, s, i = void 0, r = void 0) {
882
882
  oe(
883
883
  e,
884
884
  (a) => {
@@ -999,7 +999,7 @@ function re(e, t, n, s = void 0, i = void 0, r = void 0) {
999
999
  }
1000
1000
  });
1001
1001
  }
1002
- function R(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, a = !1) {
1002
+ function I(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, a = !1) {
1003
1003
  const o = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
1004
1004
  m(o, {
1005
1005
  method: "GET",
@@ -1012,28 +1012,28 @@ function R(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, a = !1
1012
1012
  p = t;
1013
1013
  let g = h.couples;
1014
1014
  g = g.filter(
1015
- (_, y, S) => y === S.findIndex(
1016
- (w) => w.organization.pid === _.organization.pid && w.role.pid === _.role.pid
1015
+ (y, _, S) => _ === S.findIndex(
1016
+ (w) => w.organization.pid === y.organization.pid && w.role.pid === y.role.pid
1017
1017
  )
1018
- ), n && (Array.isArray(n) ? n.forEach((_) => {
1019
- l || g.forEach((y) => {
1020
- if (_ === y.role.name && s === y.organization.title)
1021
- l = _, f = s;
1022
- else if (_ === y.role.name) {
1018
+ ), n && (Array.isArray(n) ? n.forEach((y) => {
1019
+ l || g.forEach((_) => {
1020
+ if (y === _.role.name && s === _.organization.title)
1021
+ l = y, f = s;
1022
+ else if (y === _.role.name) {
1023
1023
  let S = g.filter(
1024
- (w) => w.role.name === _
1024
+ (w) => w.role.name === y
1025
1025
  );
1026
1026
  S.length === 1 ? (l = S[0].role.name, f = S[0].organization.title) : r(S);
1027
1027
  }
1028
1028
  });
1029
- }) : g.forEach((_) => {
1030
- if (n === _.role.name && s === _.organization.title)
1029
+ }) : g.forEach((y) => {
1030
+ if (n === y.role.name && s === y.organization.title)
1031
1031
  l = n, f = s;
1032
- else if (n === _.role.name) {
1033
- let y = g.filter(
1032
+ else if (n === y.role.name) {
1033
+ let _ = g.filter(
1034
1034
  (S) => S.role.name === n
1035
1035
  );
1036
- y.length === 1 ? (l = y[0].role.name, f = y[0].organization.title) : r(y);
1036
+ _.length === 1 ? (l = _[0].role.name, f = _[0].organization.title) : r(_);
1037
1037
  }
1038
1038
  }));
1039
1039
  }
@@ -1064,7 +1064,7 @@ async function G(e, t = void 0, n = void 0) {
1064
1064
  console.log("☠️ error => ", s);
1065
1065
  }
1066
1066
  ), new Promise((s, i) => {
1067
- j(
1067
+ k(
1068
1068
  e,
1069
1069
  (r) => {
1070
1070
  e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((a) => a.blob()).then((a) => {
@@ -1167,7 +1167,7 @@ function de(e, t, n = void 0, s = void 0, i = void 0) {
1167
1167
  }
1168
1168
  });
1169
1169
  }
1170
- function ze(e, t, n = void 0, s = void 0) {
1170
+ function Qe(e, t, n = void 0, s = void 0) {
1171
1171
  return new Promise((i) => {
1172
1172
  if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1173
1173
  const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
@@ -1198,7 +1198,7 @@ function ze(e, t, n = void 0, s = void 0) {
1198
1198
  }
1199
1199
  });
1200
1200
  }
1201
- function Qe(e, t, n, s = void 0, i = void 0) {
1201
+ function Ze(e, t, n, s = void 0, i = void 0) {
1202
1202
  return new Promise((r) => {
1203
1203
  if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1204
1204
  const a = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
@@ -1230,11 +1230,11 @@ function Qe(e, t, n, s = void 0, i = void 0) {
1230
1230
  }
1231
1231
  });
1232
1232
  }
1233
- function Ze(e, t, n = void 0, s = void 0) {
1233
+ function et(e, t, n = void 0, s = void 0) {
1234
1234
  return new Promise((i) => {
1235
1235
  if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1236
1236
  const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
1237
- R(
1237
+ I(
1238
1238
  e.space,
1239
1239
  "ESPACE COMMUN",
1240
1240
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1271,11 +1271,11 @@ function Ze(e, t, n = void 0, s = void 0) {
1271
1271
  }
1272
1272
  });
1273
1273
  }
1274
- function et(e, t, n = void 0, s = void 0) {
1274
+ function tt(e, t, n = void 0, s = void 0) {
1275
1275
  return new Promise((i) => {
1276
1276
  if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1277
1277
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
1278
- R(
1278
+ I(
1279
1279
  e.space,
1280
1280
  "ESPACE COMMUN",
1281
1281
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1318,11 +1318,11 @@ function et(e, t, n = void 0, s = void 0) {
1318
1318
  }
1319
1319
  });
1320
1320
  }
1321
- function tt(e, t, n, s = void 0, i = void 0) {
1321
+ function nt(e, t, n, s = void 0, i = void 0) {
1322
1322
  return new Promise((r) => {
1323
1323
  if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1324
1324
  const a = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
1325
- R(
1325
+ I(
1326
1326
  e.space,
1327
1327
  "ESPACE COMMUN",
1328
1328
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1365,7 +1365,54 @@ function tt(e, t, n, s = void 0, i = void 0) {
1365
1365
  }
1366
1366
  });
1367
1367
  }
1368
- function nt(e, t, n, s, i = void 0, r = void 0) {
1368
+ function ue(e) {
1369
+ return new Promise((t, n) => {
1370
+ const s = `${e.space}/resources/pno/person/getsecuritycontext&tenant=${e.tenant.toUpperCase()}&xrequestedwith=xmlhttprequest`;
1371
+ m(s, {
1372
+ method: "GET",
1373
+ onComplete(r) {
1374
+ t(r);
1375
+ },
1376
+ onFailure(r) {
1377
+ n(r);
1378
+ }
1379
+ });
1380
+ });
1381
+ }
1382
+ function st(e, t, n = void 0, s = void 0) {
1383
+ return new Promise(async (i, r) => {
1384
+ const { tenant: a, ctx: o, space: c } = e;
1385
+ (!a || !o || !c) && r({ error: "Erreur de credentials", tenant: a, ctx: o, space: c });
1386
+ const d = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=1&withAttributes=1&withCopyFrom=1&tenant=${e.tenant.toUpperCase()}&xrequestedwith=xmlhttprequest`;
1387
+ let u;
1388
+ await ue(e).then((f) => u = f?.SecurityContext);
1389
+ let p = {
1390
+ method: "POST",
1391
+ headers: {
1392
+ securitycontext: "ctx::" + u,
1393
+ Accept: "application/json",
1394
+ "Content-Type": "application/json"
1395
+ },
1396
+ data: JSON.stringify({
1397
+ graphRequests: [
1398
+ {
1399
+ id: t,
1400
+ attributes: ["revision", "policy"]
1401
+ }
1402
+ ]
1403
+ }),
1404
+ type: "json",
1405
+ onComplete(f) {
1406
+ n && n(f), i(f);
1407
+ },
1408
+ onFailure(f) {
1409
+ s && s(f), r(f);
1410
+ }
1411
+ };
1412
+ m(d, p);
1413
+ });
1414
+ }
1415
+ function it(e, t, n, s, i = void 0, r = void 0) {
1369
1416
  return new Promise((a) => {
1370
1417
  const o = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
1371
1418
  let c = {
@@ -1398,7 +1445,7 @@ function nt(e, t, n, s, i = void 0, r = void 0) {
1398
1445
  m(o, u);
1399
1446
  });
1400
1447
  }
1401
- function st(e, t, n, s, i = void 0, r = void 0) {
1448
+ function at(e, t, n, s, i = void 0, r = void 0) {
1402
1449
  return console.log("credentials", e), new Promise((a) => {
1403
1450
  `${e.space}`, JSON.stringify({
1404
1451
  csrf: {
@@ -1422,7 +1469,7 @@ function st(e, t, n, s, i = void 0, r = void 0) {
1422
1469
  });
1423
1470
  }
1424
1471
  //!SECTION
1425
- function it(e, t = void 0, n = void 0) {
1472
+ function ot(e, t = void 0, n = void 0) {
1426
1473
  const s = {
1427
1474
  base: `${e.space}`,
1428
1475
  uri: "/resources/bps/cspaces",
@@ -1443,8 +1490,8 @@ function it(e, t = void 0, n = void 0) {
1443
1490
  }
1444
1491
  });
1445
1492
  }
1446
- function at(e, t, n, s) {
1447
- j(
1493
+ function rt(e, t, n, s) {
1494
+ k(
1448
1495
  e.space,
1449
1496
  t,
1450
1497
  (i) => {
@@ -1460,9 +1507,9 @@ function at(e, t, n, s) {
1460
1507
  }
1461
1508
  );
1462
1509
  }
1463
- async function ot(e, t, n = void 0, s = void 0) {
1510
+ async function ct(e, t, n = void 0, s = void 0) {
1464
1511
  return new Promise((i) => {
1465
- j(e, t, (r) => {
1512
+ k(e, t, (r) => {
1466
1513
  m(r, {
1467
1514
  onComplete: (a, o, c) => (i(JSON.parse(a)), n && n(JSON.parse(a), o, c), i),
1468
1515
  onFailure: (a, o, c) => {
@@ -1472,9 +1519,9 @@ async function ot(e, t, n = void 0, s = void 0) {
1472
1519
  });
1473
1520
  });
1474
1521
  }
1475
- function rt(e, t, n, s = void 0, i = void 0) {
1522
+ function dt(e, t, n, s = void 0, i = void 0) {
1476
1523
  const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
1477
- I(
1524
+ F(
1478
1525
  e,
1479
1526
  n,
1480
1527
  (a) => {
@@ -1496,9 +1543,9 @@ function rt(e, t, n, s = void 0, i = void 0) {
1496
1543
  );
1497
1544
  }
1498
1545
  let K, B;
1499
- const D = [];
1500
- async function ct(e, t = void 0, n = void 0) {
1501
- e.objID && e.objID !== "" ? I(
1546
+ const v = [];
1547
+ async function ut(e, t = void 0, n = void 0) {
1548
+ e.objID && e.objID !== "" ? F(
1502
1549
  e,
1503
1550
  (s) => {
1504
1551
  t && t(s);
@@ -1516,7 +1563,7 @@ async function ct(e, t = void 0, n = void 0) {
1516
1563
  }
1517
1564
  );
1518
1565
  }
1519
- async function dt(e, t = void 0, n = void 0) {
1566
+ async function pt(e, t = void 0, n = void 0) {
1520
1567
  console.log("getDatasByTenant (getDocuments)", e), await G(
1521
1568
  e,
1522
1569
  (s) => {
@@ -1528,7 +1575,7 @@ async function dt(e, t = void 0, n = void 0) {
1528
1575
  }
1529
1576
  );
1530
1577
  }
1531
- function ut(e, t = void 0, n = void 0) {
1578
+ function lt(e, t = void 0, n = void 0) {
1532
1579
  const s = [];
1533
1580
  if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
1534
1581
  console.warn("la liste est vide ou n'est pas un tableau");
@@ -1539,45 +1586,45 @@ function ut(e, t = void 0, n = void 0) {
1539
1586
  e,
1540
1587
  i.objID,
1541
1588
  (a) => {
1542
- s.push({ [i.name]: a }), i.name === "dbProjets" && (K = a.affaires.map((o) => o.objectID), ue(e, B)), r === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
1589
+ s.push({ [i.name]: a }), i.name === "dbProjets" && (K = a.affaires.map((o) => o.objectID), pe(e, B)), r === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
1543
1590
  }
1544
1591
  );
1545
1592
  });
1546
1593
  }
1547
- function ue(e, t, n = void 0, s = void 0) {
1594
+ function pe(e, t, n = void 0, s = void 0) {
1548
1595
  ce(
1549
1596
  e,
1550
1597
  K,
1551
1598
  (i) => {
1552
1599
  const r = [...t];
1553
- r.find((a) => a.objectID === i.objectId).data = i.data, B = r, D.push(i.data), n && n(D);
1600
+ r.find((a) => a.objectID === i.objectId).data = i.data, B = r, v.push(i.data), n && n(v);
1554
1601
  },
1555
1602
  (i) => {
1556
1603
  s && (s(i), console.log(i));
1557
1604
  }
1558
1605
  );
1559
1606
  }
1560
- const pe = "FA35FB9B177A280065800EA0000F599C", le = [
1607
+ const le = "FA35FB9B177A280065800EA0000F599C", fe = [
1561
1608
  "swym",
1562
1609
  "3dspace",
1563
1610
  "drive",
1564
1611
  "usersgroup",
1565
1612
  "3dplan",
1566
1613
  "dashboard"
1567
- ], E = {
1614
+ ], q = {
1568
1615
  how: "ds6w:how",
1569
1616
  what: "ds6w:what",
1570
1617
  when: "ds6w:when",
1571
1618
  where: "ds6w:where",
1572
1619
  who: "ds6w:who",
1573
1620
  why: "ds6w:why"
1574
- }, fe = {
1575
- objId: pe,
1621
+ }, me = {
1622
+ objId: le,
1576
1623
  pred: "who",
1577
1624
  order_by: "desc",
1578
1625
  tag: "testTag"
1579
1626
  };
1580
- function pt(e, t, n = void 0, s = void 0) {
1627
+ function ft(e, t, n = void 0, s = void 0) {
1581
1628
  const { space: i, tenant: r } = e, { objId: a, pred: o, tag: c } = t, d = {
1582
1629
  uri: "/resources/6w/tags",
1583
1630
  otpCTX: "SecurityContext=preferred",
@@ -1590,7 +1637,7 @@ function pt(e, t, n = void 0, s = void 0) {
1590
1637
  uri: `pid://${a}`
1591
1638
  }
1592
1639
  ],
1593
- predicate: E[o],
1640
+ predicate: q[o],
1594
1641
  object: {
1595
1642
  literal: c
1596
1643
  }
@@ -1612,8 +1659,8 @@ function pt(e, t, n = void 0, s = void 0) {
1612
1659
  e,
1613
1660
  a,
1614
1661
  (h) => {
1615
- 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;
1616
- l.name = g, l.ext = _, l.createBy = y, t.info = { ...l }, me(
1662
+ const g = h.data[0].dataelements.title, y = h.data[0].dataelements.fileExtension !== void 0 ? h.data[0].dataelements.fileExtension : "", _ = h.data[0].relateddata.ownerInfo[0].dataelements.name;
1663
+ l.name = g, l.ext = y, l.createBy = _, t.info = { ...l }, he(
1617
1664
  e,
1618
1665
  t,
1619
1666
  (S) => {
@@ -1625,8 +1672,8 @@ function pt(e, t, n = void 0, s = void 0) {
1625
1672
  );
1626
1673
  },
1627
1674
  (h, g) => {
1628
- const _ = h;
1629
- _.msg = g.errormsg, _.errCode = g.errorcode, console.log("❌ sendDirectMessage => ", _), s && s(_);
1675
+ const y = h;
1676
+ y.msg = g.errormsg, y.errCode = g.errorcode, console.log("❌ sendDirectMessage => ", y), s && s(y);
1630
1677
  }
1631
1678
  );
1632
1679
  }, 2e3);
@@ -1637,7 +1684,7 @@ function pt(e, t, n = void 0, s = void 0) {
1637
1684
  }
1638
1685
  });
1639
1686
  }
1640
- function me(e, t, n = void 0, s = void 0) {
1687
+ function he(e, t, n = void 0, s = void 0) {
1641
1688
  console.log("obj ", t);
1642
1689
  const i = t.info.name, r = {
1643
1690
  baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
@@ -1687,7 +1734,7 @@ function me(e, t, n = void 0, s = void 0) {
1687
1734
  }
1688
1735
  },
1689
1736
  select_exclude_synthesis: ["ds6w:what/ds6w:topic"],
1690
- order_by: fe.order_by,
1737
+ order_by: me.order_by,
1691
1738
  order_field: "relevance",
1692
1739
  select_snippets: [
1693
1740
  "ds6w:snippet",
@@ -1698,7 +1745,7 @@ function me(e, t, n = void 0, s = void 0) {
1698
1745
  ],
1699
1746
  nresults: 40,
1700
1747
  start: "0",
1701
- source: le,
1748
+ source: fe,
1702
1749
  tenant: e.tenant,
1703
1750
  login: {
1704
1751
  "3dspace": {
@@ -1720,7 +1767,7 @@ function me(e, t, n = void 0, s = void 0) {
1720
1767
  }
1721
1768
  });
1722
1769
  }
1723
- function lt(e, t, n = void 0, s = void 0) {
1770
+ function mt(e, t, n = void 0, s = void 0) {
1724
1771
  const { objId: i, pred: r, tag: a } = t, o = {
1725
1772
  uri: "/resources/6w/tags",
1726
1773
  otpCTX: "SecurityContext=preferred",
@@ -1733,7 +1780,7 @@ function lt(e, t, n = void 0, s = void 0) {
1733
1780
  uri: `pid://${i}`
1734
1781
  }
1735
1782
  ],
1736
- predicate: E[r],
1783
+ predicate: q[r],
1737
1784
  object: {
1738
1785
  literal: a
1739
1786
  }
@@ -1756,7 +1803,7 @@ function lt(e, t, n = void 0, s = void 0) {
1756
1803
  }
1757
1804
  });
1758
1805
  }
1759
- function ft(e, t = "", n = void 0, s = void 0) {
1806
+ function ht(e, t = "", n = void 0, s = void 0) {
1760
1807
  const { space: i } = e;
1761
1808
  if (t === "")
1762
1809
  return;
@@ -1792,7 +1839,7 @@ async function C(e, t = void 0, n = void 0) {
1792
1839
  }
1793
1840
  });
1794
1841
  }
1795
- function mt(e, t = void 0, n = void 0) {
1842
+ function gt(e, t = void 0, n = void 0) {
1796
1843
  const s = `${e._3DSwym}/api/exalead/whatsnew`, i = {
1797
1844
  params: {
1798
1845
  community_id: null,
@@ -1822,7 +1869,7 @@ function mt(e, t = void 0, n = void 0) {
1822
1869
  });
1823
1870
  });
1824
1871
  }
1825
- function ht(e, t = void 0, n = void 0) {
1872
+ function yt(e, t = void 0, n = void 0) {
1826
1873
  const s = `${e._3DSwym}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
1827
1874
  params: {
1828
1875
  idsToFilterArr: [],
@@ -1852,7 +1899,7 @@ function ht(e, t = void 0, n = void 0) {
1852
1899
  });
1853
1900
  });
1854
1901
  }
1855
- function gt(e, t = void 0, n = void 0) {
1902
+ function _t(e, t = void 0, n = void 0) {
1856
1903
  const s = {
1857
1904
  base: e._3DSwym,
1858
1905
  uri: "/api/community/listmycommunities",
@@ -1877,7 +1924,7 @@ function gt(e, t = void 0, n = void 0) {
1877
1924
  role: l.role,
1878
1925
  access: l.access
1879
1926
  };
1880
- he(
1927
+ ge(
1881
1928
  e,
1882
1929
  l.id,
1883
1930
  (g) => {
@@ -1894,7 +1941,7 @@ function gt(e, t = void 0, n = void 0) {
1894
1941
  });
1895
1942
  });
1896
1943
  }
1897
- function he(e, t, n, s) {
1944
+ function ge(e, t, n, s) {
1898
1945
  const i = `${e._3DSwym}/api/community/listmembers`, r = {
1899
1946
  params: {
1900
1947
  page: e.page ? e.page : 1,
@@ -1922,7 +1969,7 @@ function he(e, t, n, s) {
1922
1969
  });
1923
1970
  });
1924
1971
  }
1925
- function _t(e, t = void 0, n = void 0) {
1972
+ function St(e, t = void 0, n = void 0) {
1926
1973
  const s = "YXdA5x4DSUKtlAi2wmnyTA";
1927
1974
  e.commu_id || (e.commu_id = s);
1928
1975
  const i = `${e._3DSwym}/api/v2/communities/${e.commu_id}/ideas/statuses`;
@@ -1945,7 +1992,7 @@ function _t(e, t = void 0, n = void 0) {
1945
1992
  });
1946
1993
  });
1947
1994
  }
1948
- function yt(e, t, n = void 0, s = void 0) {
1995
+ function wt(e, t, n = void 0, s = void 0) {
1949
1996
  const { listAllContacts: i, currentUser: r, _3DSwym: a } = e;
1950
1997
  console.log("__listAllContacts", i.hits);
1951
1998
  const o = `${a}/api/directmessages`, c = {
@@ -1957,10 +2004,10 @@ function yt(e, t, n = void 0, s = void 0) {
1957
2004
  msg: _e(t.msg)
1958
2005
  };
1959
2006
  let u = !1;
1960
- ge(
2007
+ ye(
1961
2008
  c.users,
1962
2009
  (p) => {
1963
- p !== void 0 && (d.id_msg = p.id, u = !0, A(e, d));
2010
+ p !== void 0 && (d.id_msg = p.id, u = !0, D(e, d));
1964
2011
  },
1965
2012
  (p) => {
1966
2013
  u = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), d.id_msg = "";
@@ -1978,7 +2025,7 @@ function yt(e, t, n = void 0, s = void 0) {
1978
2025
  type: "json",
1979
2026
  onComplete(f, l, h) {
1980
2027
  const g = f;
1981
- g.reponse = JSON.parse(h.response), g.status = h.status, n && n(g), d.id_msg = g.result.id, A(e, d);
2028
+ g.reponse = JSON.parse(h.response), g.status = h.status, n && n(g), d.id_msg = g.result.id, D(e, d);
1982
2029
  },
1983
2030
  onFailure(f, l, h) {
1984
2031
  const g = f;
@@ -1988,7 +2035,7 @@ function yt(e, t, n = void 0, s = void 0) {
1988
2035
  });
1989
2036
  }, 500);
1990
2037
  }
1991
- function ge(e, t, n, s) {
2038
+ function ye(e, t, n, s) {
1992
2039
  const i = `${e._3DSwym}/api/directmessages/lite?with_favorites=false`;
1993
2040
  C(e, (r) => {
1994
2041
  m(i, {
@@ -2017,7 +2064,7 @@ function ge(e, t, n, s) {
2017
2064
  });
2018
2065
  });
2019
2066
  }
2020
- function A(e, t, n = void 0, s = void 0) {
2067
+ function D(e, t, n = void 0, s = void 0) {
2021
2068
  const i = {
2022
2069
  base: e._3DSwym,
2023
2070
  uri: "/api/community",
@@ -2061,7 +2108,7 @@ function _e(e) {
2061
2108
  <hr/>
2062
2109
  <p><u>envoyer :</u>Le <b>${t} à ${n}</b></p>`;
2063
2110
  }
2064
- function St(e, t, n = void 0, s = void 0) {
2111
+ function Ct(e, t, n = void 0, s = void 0) {
2065
2112
  const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
2066
2113
  (c) => c.id === t.community_id
2067
2114
  ), a = e.swymCommunities.find(
@@ -2072,7 +2119,7 @@ function St(e, t, n = void 0, s = void 0) {
2072
2119
  // String, le nom de l'affaire
2073
2120
  community_id: r?.id !== void 0 ? r.id : a.id,
2074
2121
  // String, l'id de la communauté
2075
- message: ye(t.text_html),
2122
+ message: Se(t.text_html),
2076
2123
  // STRING => le contenue du message doit être au format HTML
2077
2124
  published: 1
2078
2125
  // 1 publier, 0 non publier
@@ -2100,7 +2147,7 @@ function St(e, t, n = void 0, s = void 0) {
2100
2147
  });
2101
2148
  });
2102
2149
  }
2103
- function wt(e, t = void 0, n = void 0) {
2150
+ function Tt(e, t = void 0, n = void 0) {
2104
2151
  const s = { base: e.space, uri: "/api/idea/add" };
2105
2152
  if (!Array.isArray(e.swymCommunities)) {
2106
2153
  const a = "☠️ swymCommunities doit être un tableau d'objets de communautés";
@@ -2173,7 +2220,7 @@ function wt(e, t = void 0, n = void 0) {
2173
2220
  m(s.base + s.uri, o);
2174
2221
  });
2175
2222
  }
2176
- function Ct(e, t, n = void 0, s = void 0) {
2223
+ function bt(e, t, n = void 0, s = void 0) {
2177
2224
  const i = `${e.space}/api/idea/delete`, r = {
2178
2225
  params: {
2179
2226
  community_id: t.community_id,
@@ -2200,7 +2247,7 @@ function Ct(e, t, n = void 0, s = void 0) {
2200
2247
  });
2201
2248
  });
2202
2249
  }
2203
- function Tt(e, t = void 0, n = void 0) {
2250
+ function Ot(e, t = void 0, n = void 0) {
2204
2251
  const { _3DSwym: s, _3DSwym_token: i } = e, r = `${s}/api/idea/get`;
2205
2252
  if (e.idPost === "") {
2206
2253
  const o = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
@@ -2228,7 +2275,7 @@ function Tt(e, t = void 0, n = void 0) {
2228
2275
  }
2229
2276
  });
2230
2277
  }
2231
- function bt(e, t, n) {
2278
+ function $t(e, t, n) {
2232
2279
  const {
2233
2280
  _3DSwym: s,
2234
2281
  _3DSwym_token: i,
@@ -2261,11 +2308,11 @@ function bt(e, t, n) {
2261
2308
  }
2262
2309
  }),
2263
2310
  type: "json",
2264
- onComplete(h, g, _) {
2265
- const y = {
2311
+ onComplete(h, g, y) {
2312
+ const _ = {
2266
2313
  response: typeof h == "string" ? JSON.parse(h) : h
2267
2314
  };
2268
- y.status = _.status, t && t(y);
2315
+ _.status = y.status, t && t(_);
2269
2316
  },
2270
2317
  onFailure(h) {
2271
2318
  n && n(h);
@@ -2273,7 +2320,7 @@ function bt(e, t, n) {
2273
2320
  };
2274
2321
  m(p.base + p.uri, l);
2275
2322
  }
2276
- function Ot(e, t, n = void 0, s = void 0) {
2323
+ function Nt(e, t, n = void 0, s = void 0) {
2277
2324
  const { _3DSwym: i } = e;
2278
2325
  let { community_id: r, limit: a, page: o, search: c } = t;
2279
2326
  const d = [], u = 1;
@@ -2287,8 +2334,8 @@ function Ot(e, t, n = void 0, s = void 0) {
2287
2334
  };
2288
2335
  let h = `${i}${l.uri}${l.comId}${l.limit}${l.page}`;
2289
2336
  C(e, (g) => {
2290
- const _ = (y) => {
2291
- m(y, {
2337
+ const y = (_) => {
2338
+ m(_, {
2292
2339
  method: "GET",
2293
2340
  headers: {
2294
2341
  "X-DS-SWYM-CSRFTOKEN": g.result.ServerToken
@@ -2296,11 +2343,11 @@ function Ot(e, t, n = void 0, s = void 0) {
2296
2343
  onComplete(S) {
2297
2344
  const w = { response: JSON.parse(S) };
2298
2345
  if (f = Math.ceil(Number(w.response.nb_result) / 100), S && f >= o) {
2299
- if (o++, l.page = `/page/${o}`, y = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
2346
+ if (o++, l.page = `/page/${o}`, _ = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
2300
2347
  d.push(w.response.result);
2301
2348
  else {
2302
2349
  const T = w.response.result.find(
2303
- (U) => U.title.includes(c)
2350
+ (R) => R.title.includes(c)
2304
2351
  );
2305
2352
  if (T) {
2306
2353
  n(T);
@@ -2311,7 +2358,7 @@ function Ot(e, t, n = void 0, s = void 0) {
2311
2358
  p = !0, n(d);
2312
2359
  return;
2313
2360
  }
2314
- _(y);
2361
+ y(_);
2315
2362
  }
2316
2363
  },
2317
2364
  onFailure(S, w) {
@@ -2320,10 +2367,10 @@ function Ot(e, t, n = void 0, s = void 0) {
2320
2367
  }
2321
2368
  });
2322
2369
  };
2323
- p || _(h);
2370
+ p || y(h);
2324
2371
  });
2325
2372
  }
2326
- function ye(e) {
2373
+ function Se(e) {
2327
2374
  return !e || e === "" ? `<h2><u>INFORMATIONS AFFAIRE :</u></h2>
2328
2375
  <p><u>|⚠️<em> Merci de respecter l&#39;écriture des tags, en MAJUSCULES, nom complet, pas de caractères</em></u></p>
2329
2376
  <p><u><em>|spéciaux, séparation par &#34;_&#34; si besoin !</em></u></p>
@@ -2398,7 +2445,7 @@ function ye(e) {
2398
2445
  <p>
2399
2446
  </p>` : e;
2400
2447
  }
2401
- function $t(e, t = void 0, n = void 0) {
2448
+ function xt(e, t = void 0, n = void 0) {
2402
2449
  const { tenant: s, _3DSwym: i, _3DSwym_token: r, community_id: a, idea_id: o } = e;
2403
2450
  if (s && i && r && a && o) {
2404
2451
  const c = `${i}/api/idea/forward`;
@@ -2431,7 +2478,7 @@ function $t(e, t = void 0, n = void 0) {
2431
2478
  credentials: e
2432
2479
  });
2433
2480
  }
2434
- function Nt(e, t = void 0, n = void 0) {
2481
+ function Ft(e, t = void 0, n = void 0) {
2435
2482
  return new Promise((s, i) => {
2436
2483
  try {
2437
2484
  let r;
@@ -2461,7 +2508,7 @@ function Nt(e, t = void 0, n = void 0) {
2461
2508
  }
2462
2509
  });
2463
2510
  }
2464
- function Ft(e, t, n = void 0, s = void 0) {
2511
+ function It(e, t, n = void 0, s = void 0) {
2465
2512
  const i = e.space + "/api/user/find/login/" + t;
2466
2513
  C(
2467
2514
  e,
@@ -2481,7 +2528,7 @@ function Ft(e, t, n = void 0, s = void 0) {
2481
2528
  s
2482
2529
  );
2483
2530
  }
2484
- function It(e, t = void 0, n = void 0) {
2531
+ function Rt(e, t = void 0, n = void 0) {
2485
2532
  const {
2486
2533
  _3DSwym: s,
2487
2534
  _3DSwym_token: i,
@@ -2508,13 +2555,13 @@ function It(e, t = void 0, n = void 0) {
2508
2555
  };
2509
2556
  m(o, d);
2510
2557
  }
2511
- function Rt(e, t = void 0, n = void 0) {
2558
+ function Ut(e, t = void 0, n = void 0) {
2512
2559
  e.tenant && P(e, (s) => {
2513
2560
  const i = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2514
2561
  return t && t(i), i;
2515
2562
  });
2516
2563
  }
2517
- function Ut(e, t = void 0, n = void 0) {
2564
+ function jt(e, t = void 0, n = void 0) {
2518
2565
  e.tenant && P(e, (s) => {
2519
2566
  const i = s.services.find(
2520
2567
  (o) => o.id === "3dpassport"
@@ -2534,7 +2581,7 @@ function Ut(e, t = void 0, n = void 0) {
2534
2581
  });
2535
2582
  });
2536
2583
  }
2537
- function xt(e, t = void 0, n = void 0) {
2584
+ function kt(e, t = void 0, n = void 0) {
2538
2585
  if (e.tenant) {
2539
2586
  const s = e.tenant.toLowerCase();
2540
2587
  fetch(`https://api.uixhome.fr/${s}/iterop/jwtuser`, {
@@ -2546,7 +2593,7 @@ function xt(e, t = void 0, n = void 0) {
2546
2593
  });
2547
2594
  }
2548
2595
  }
2549
- async function kt(e, t, n = void 0, s = void 0) {
2596
+ async function vt(e, t, n = void 0, s = void 0) {
2550
2597
  if (e.tenant) {
2551
2598
  const i = e.tenant.toLowerCase();
2552
2599
  fetch(
@@ -2561,7 +2608,7 @@ async function kt(e, t, n = void 0, s = void 0) {
2561
2608
  });
2562
2609
  }
2563
2610
  }
2564
- async function jt(e, t, n, s = void 0, i = void 0) {
2611
+ async function Dt(e, t, n, s = void 0, i = void 0) {
2565
2612
  if (e.tenant) {
2566
2613
  const r = e.tenant.toLowerCase();
2567
2614
  fetch(
@@ -2576,7 +2623,7 @@ async function jt(e, t, n, s = void 0, i = void 0) {
2576
2623
  });
2577
2624
  }
2578
2625
  }
2579
- async function Dt(e, t, n, s = void 0, i = void 0) {
2626
+ async function At(e, t, n, s = void 0, i = void 0) {
2580
2627
  if (e.tenant) {
2581
2628
  const r = e.tenant.toLowerCase();
2582
2629
  fetch(
@@ -2591,7 +2638,7 @@ async function Dt(e, t, n, s = void 0, i = void 0) {
2591
2638
  });
2592
2639
  }
2593
2640
  }
2594
- async function At(e, t, n, s, i = void 0, r = void 0) {
2641
+ async function Pt(e, t, n, s, i = void 0, r = void 0) {
2595
2642
  if (e.tenant) {
2596
2643
  const a = e.tenant.toLowerCase();
2597
2644
  fetch(
@@ -2606,7 +2653,7 @@ async function At(e, t, n, s, i = void 0, r = void 0) {
2606
2653
  });
2607
2654
  }
2608
2655
  }
2609
- async function vt(e, t, n, s, i, r = void 0, a = void 0) {
2656
+ async function Lt(e, t, n, s, i, r = void 0, a = void 0) {
2610
2657
  if (e.tenant) {
2611
2658
  const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${n}?t=${t}&c=${encodeURIComponent(
2612
2659
  s
@@ -2625,7 +2672,7 @@ async function vt(e, t, n, s, i, r = void 0, a = void 0) {
2625
2672
  });
2626
2673
  }
2627
2674
  }
2628
- async function Pt(e, t, n, s, i = void 0, r = void 0) {
2675
+ async function Mt(e, t, n, s, i = void 0, r = void 0) {
2629
2676
  if (e.tenant) {
2630
2677
  const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${n}?t=${t}&b=${encodeURIComponent(
2631
2678
  s
@@ -2642,7 +2689,7 @@ async function Pt(e, t, n, s, i = void 0, r = void 0) {
2642
2689
  });
2643
2690
  }
2644
2691
  }
2645
- async function Lt(e, t, n, s = void 0, i = void 0) {
2692
+ async function Jt(e, t, n, s = void 0, i = void 0) {
2646
2693
  if (e.tenant) {
2647
2694
  const r = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/create/?t=${t}&b=${encodeURIComponent(
2648
2695
  n
@@ -2659,7 +2706,7 @@ async function Lt(e, t, n, s = void 0, i = void 0) {
2659
2706
  });
2660
2707
  }
2661
2708
  }
2662
- async function Mt(e, t, n, s, i = void 0, r = void 0) {
2709
+ async function Gt(e, t, n, s, i = void 0, r = void 0) {
2663
2710
  if (e.tenant) {
2664
2711
  const a = e.tenant.toLowerCase();
2665
2712
  fetch(
@@ -2674,7 +2721,7 @@ async function Mt(e, t, n, s, i = void 0, r = void 0) {
2674
2721
  });
2675
2722
  }
2676
2723
  }
2677
- async function Jt(e, t, n, s = void 0, i = void 0) {
2724
+ async function Kt(e, t, n, s = void 0, i = void 0) {
2678
2725
  if (console.log("_Iterop_GetOneDependencyTable | Run"), e.tenant) {
2679
2726
  const r = e.tenant.toLowerCase();
2680
2727
  fetch(
@@ -2689,7 +2736,7 @@ async function Jt(e, t, n, s = void 0, i = void 0) {
2689
2736
  });
2690
2737
  }
2691
2738
  }
2692
- async function Gt(e, t, n, s, i, r = void 0, a = void 0) {
2739
+ async function Bt(e, t, n, s, i, r = void 0, a = void 0) {
2693
2740
  if (e.tenant) {
2694
2741
  const o = e.tenant.toLowerCase();
2695
2742
  fetch(
@@ -2704,7 +2751,7 @@ async function Gt(e, t, n, s, i, r = void 0, a = void 0) {
2704
2751
  });
2705
2752
  }
2706
2753
  }
2707
- async function Kt(e, t, n, s, i = void 0, r = void 0) {
2754
+ async function qt(e, t, n, s, i = void 0, r = void 0) {
2708
2755
  if (e.tenant) {
2709
2756
  const a = e.tenant.toLowerCase();
2710
2757
  fetch(
@@ -2720,7 +2767,7 @@ async function Kt(e, t, n, s, i = void 0, r = void 0) {
2720
2767
  }
2721
2768
  }
2722
2769
  //!SECTION
2723
- async function Bt(e, t, n, s = void 0, i = void 0) {
2770
+ async function Et(e, t, n, s = void 0, i = void 0) {
2724
2771
  if (e.tenant) {
2725
2772
  const r = e.tenant.toLowerCase();
2726
2773
  fetch(
@@ -2736,17 +2783,17 @@ async function Bt(e, t, n, s = void 0, i = void 0) {
2736
2783
  }
2737
2784
  }
2738
2785
  //!SECTION
2739
- function Et(e) {
2786
+ function Xt(e) {
2740
2787
  const t = "Hello " + e;
2741
2788
  return console.log(t), t;
2742
2789
  }
2743
- function qt(e, t = void 0, n = void 0) {
2790
+ function Wt(e, t = void 0, n = void 0) {
2744
2791
  return console.log("credentials", e), new Promise((s) => {
2745
2792
  if (e.token === "" && b(e), !e.space || e.space === "") {
2746
2793
  const a = Z();
2747
2794
  console.log("platformeInfo", a);
2748
2795
  }
2749
- R(
2796
+ I(
2750
2797
  e,
2751
2798
  "Common space",
2752
2799
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -2821,102 +2868,103 @@ function qt(e, t = void 0, n = void 0) {
2821
2868
  }
2822
2869
  export {
2823
2870
  Y as UUID,
2824
- qt as _3DSearch_usersGroup,
2825
- He as _3DSpace_Create_Doc,
2826
- Ye as _3DSpace_Update_Doc,
2827
- Ve as _3DSpace_Upload_File,
2828
- st as _3DSpace_bookmark_addSubsciptions,
2829
- nt as _3DSpace_bookmark_newWorkspace,
2871
+ Wt as _3DSearch_usersGroup,
2872
+ ze as _3DSpace_Create_Doc,
2873
+ He as _3DSpace_Update_Doc,
2874
+ Ye as _3DSpace_Upload_File,
2875
+ at as _3DSpace_bookmark_addSubsciptions,
2876
+ it as _3DSpace_bookmark_newWorkspace,
2830
2877
  b as _3DSpace_csrf,
2831
2878
  G as _3DSpace_download_doc,
2832
2879
  ce as _3DSpace_download_multidoc,
2833
2880
  M as _3DSpace_file_update,
2834
2881
  ae as _3DSpace_file_update_csr,
2835
- Xe as _3DSpace_file_url_csr,
2836
- I as _3DSpace_get_csrf,
2882
+ We as _3DSpace_file_url_csr,
2883
+ F as _3DSpace_get_csrf,
2837
2884
  L as _3DSpace_get_docInfo,
2838
2885
  de as _3DSpace_get_downloadTicket_multidoc,
2839
- qe as _3DSpace_get_multiDocInfo,
2840
- R as _3DSpace_get_securityContexts,
2841
- j as _3DSpace_get_ticket,
2842
- tt as _3DSpace_lifecycle_changeRevision,
2843
- Qe as _3DSpace_lifecycle_changeState,
2844
- Ze as _3DSpace_lifecycle_getGraph,
2845
- et as _3DSpace_lifecycle_getNextRevision,
2846
- ze as _3DSpace_lifecycle_getNextStates,
2847
- We as _3DSpace_put_docInfo,
2848
- $t as _3DSwym_ForwardIdea,
2849
- It as _3DSwym_addComment,
2850
- yt as _3DSwym_buildDirectMessage,
2851
- Ct as _3DSwym_deleteIdea,
2852
- bt as _3DSwym_editIdea,
2853
- ge as _3DSwym_findCommunityToInstantMSG,
2854
- gt as _3DSwym_getAllCommunities,
2855
- Ot as _3DSwym_getAllListIdeas,
2856
- mt as _3DSwym_getAllNews,
2857
- ht as _3DSwym_getFamiliarPeople,
2858
- _t as _3DSwym_getIdeaStatusMaturity,
2859
- he as _3DSwym_getMembersCommunity,
2860
- Tt as _3DSwym_getOneIdea,
2886
+ Xe as _3DSpace_get_multiDocInfo,
2887
+ I as _3DSpace_get_securityContexts,
2888
+ k as _3DSpace_get_ticket,
2889
+ nt as _3DSpace_lifecycle_changeRevision,
2890
+ Ze as _3DSpace_lifecycle_changeState,
2891
+ et as _3DSpace_lifecycle_getGraph,
2892
+ tt as _3DSpace_lifecycle_getNextRevision,
2893
+ Qe as _3DSpace_lifecycle_getNextStates,
2894
+ st as _3DSpace_lifecycle_getRevisions,
2895
+ Ve as _3DSpace_put_docInfo,
2896
+ xt as _3DSwym_ForwardIdea,
2897
+ Rt as _3DSwym_addComment,
2898
+ wt as _3DSwym_buildDirectMessage,
2899
+ bt as _3DSwym_deleteIdea,
2900
+ $t as _3DSwym_editIdea,
2901
+ ye as _3DSwym_findCommunityToInstantMSG,
2902
+ _t as _3DSwym_getAllCommunities,
2903
+ Nt as _3DSwym_getAllListIdeas,
2904
+ gt as _3DSwym_getAllNews,
2905
+ yt as _3DSwym_getFamiliarPeople,
2906
+ St as _3DSwym_getIdeaStatusMaturity,
2907
+ ge as _3DSwym_getMembersCommunity,
2908
+ Ot as _3DSwym_getOneIdea,
2861
2909
  C as _3DSwym_get_Token,
2862
- Nt as _3DSwym_get_currentUser,
2863
- Ft as _3DSwym_get_findUser,
2864
- wt as _3DSwym_postIdea,
2865
- St as _3DSwym_postIdeaTemplate,
2866
- A as _3DSwym_sendMessageData,
2867
- Pe as _AppMngt_get_info_user,
2868
- ve as _AppMngt_get_users,
2869
- At as _Iterop_AddOrRemoveRows,
2870
- Ut as _Iterop_Auth_CAS,
2871
- Jt as _Iterop_GetOneDependencyTable,
2872
- Bt as _Iterop_GetOneList,
2873
- Gt as _Iterop_PatchDependencyTable,
2874
- Kt as _Iterop_PutDependencyTable,
2875
- vt as _Iterop_businessTableSearchInRows,
2876
- Lt as _Iterop_createBusinessTable,
2877
- kt as _Iterop_getAllBusinessTables,
2878
- jt as _Iterop_getOneBusinessTable,
2879
- Dt as _Iterop_getOneBusinessTableRows,
2880
- xt as _Iterop_jwtUser,
2881
- Mt as _Iterop_runProcess,
2882
- Pt as _Iterop_updateBusinessTable,
2883
- je as _getMe,
2910
+ Ft as _3DSwym_get_currentUser,
2911
+ It as _3DSwym_get_findUser,
2912
+ Tt as _3DSwym_postIdea,
2913
+ Ct as _3DSwym_postIdeaTemplate,
2914
+ D as _3DSwym_sendMessageData,
2915
+ Le as _AppMngt_get_info_user,
2916
+ Pe as _AppMngt_get_users,
2917
+ Pt as _Iterop_AddOrRemoveRows,
2918
+ jt as _Iterop_Auth_CAS,
2919
+ Kt as _Iterop_GetOneDependencyTable,
2920
+ Et as _Iterop_GetOneList,
2921
+ Bt as _Iterop_PatchDependencyTable,
2922
+ qt as _Iterop_PutDependencyTable,
2923
+ Lt as _Iterop_businessTableSearchInRows,
2924
+ Jt as _Iterop_createBusinessTable,
2925
+ vt as _Iterop_getAllBusinessTables,
2926
+ Dt as _Iterop_getOneBusinessTable,
2927
+ At as _Iterop_getOneBusinessTableRows,
2928
+ kt as _Iterop_jwtUser,
2929
+ Gt as _Iterop_runProcess,
2930
+ Mt as _Iterop_updateBusinessTable,
2931
+ ve as _getMe,
2884
2932
  Z as _getPlateformInfos,
2885
2933
  ke as _getPlatformServices,
2886
2934
  P as _getServiceUrl,
2887
2935
  De as _getServiceUrl_3DPassport,
2888
- Rt as _getServiceUrl_Iterop,
2936
+ Ut as _getServiceUrl_Iterop,
2889
2937
  m as _httpCallAuthenticated,
2890
2938
  Re as _setDraggable,
2891
- xe as _setDroppable,
2939
+ je as _setDroppable,
2892
2940
  Ue as _setupTagger,
2893
- pt as addTagToDoc,
2941
+ ft as addTagToDoc,
2894
2942
  z as chunkArray,
2895
2943
  Ae as compass_getListAdditionalApps,
2896
2944
  H as couleurs,
2897
- Le as createUserGroups,
2898
- ue as dataMixing,
2899
- Ge as deleteUserGroups,
2900
- Ne as findAdresse,
2901
- it as getAllContextSecurity,
2945
+ Me as createUserGroups,
2946
+ pe as dataMixing,
2947
+ Ke as deleteUserGroups,
2948
+ xe as findAdresse,
2949
+ ot as getAllContextSecurity,
2902
2950
  te as getCSRFToken,
2903
- $e as getCommunes,
2904
- Me as getComplementUG,
2905
- at as getDataFrom3DSpace,
2951
+ Ne as getCommunes,
2952
+ Je as getComplementUG,
2953
+ rt as getDataFrom3DSpace,
2906
2954
  Fe as getDataFromGouvFr,
2907
- dt as getDatasByTenant,
2908
- ut as getDatasFrom3DSpace,
2909
- ot as getDownloadDocument,
2910
- ft as getInfoDocTags,
2911
- Je as getUserGroupsList,
2955
+ pt as getDatasByTenant,
2956
+ lt as getDatasFrom3DSpace,
2957
+ ct as getDownloadDocument,
2958
+ ht as getInfoDocTags,
2959
+ Ge as getUserGroupsList,
2912
2960
  ee as getUsersGroupRules,
2913
- ct as get_3DSpace_csrf,
2914
- Ke as patchUserGroups,
2915
- Be as patchUserGroupsControl,
2916
- rt as pushDataIn3DSpace,
2961
+ ut as get_3DSpace_csrf,
2962
+ Be as patchUserGroups,
2963
+ qe as patchUserGroupsControl,
2964
+ dt as pushDataIn3DSpace,
2917
2965
  Ee as readUserGroupControl,
2918
- lt as removeTagToDoc,
2919
- Et as sayHello,
2966
+ mt as removeTagToDoc,
2967
+ Xt as sayHello,
2920
2968
  Ie as updateEvent
2921
2969
  };
2922
2970
  //# sourceMappingURL=wb3Api.js.map