@beam3_dev/api_module 0.0.215 → 0.0.216

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 B } from "uuid";
2
- import { DateTime as N } from "luxon";
3
- import { requirejs as O, widget as R } from "@widget-lab/3ddashboard-utils";
2
+ import { DateTime as I } from "luxon";
3
+ import { requirejs as $, widget as R } from "@widget-lab/3ddashboard-utils";
4
4
  function D() {
5
5
  return B();
6
6
  }
@@ -66,7 +66,7 @@ async function he(e, t = void 0, s = void 0) {
66
66
  });
67
67
  }
68
68
  async function ye(e, t = V) {
69
- let s = N.now().year;
69
+ let s = I.now().year;
70
70
  const n = e, i = [], r = (a) => {
71
71
  for (let c in a)
72
72
  i.push({ date: c, comment: a[c] });
@@ -89,11 +89,11 @@ async function ye(e, t = V) {
89
89
  } : n;
90
90
  for (let c of i)
91
91
  a.events.findIndex(
92
- (p) => p.start === N.fromISO(c.date).toISODate() && p.name === "Férié : " + c.comment
92
+ (p) => p.start === I.fromISO(c.date).toISODate() && p.name === "Férié : " + c.comment
93
93
  ) === -1 && a.events.push({
94
94
  name: "Férié : " + c.comment,
95
- start: N.fromISO(c.date).toISODate(),
96
- end: N.fromISO(c.date).toISODate(),
95
+ start: I.fromISO(c.date).toISODate(),
96
+ end: I.fromISO(c.date).toISODate(),
97
97
  color: t.b3BusinnessDays,
98
98
  timed: !1
99
99
  });
@@ -139,12 +139,12 @@ async function Se(e, t, s = !0) {
139
139
  return n === -1 ? e.events.push(t) : s ? e.events[n] = t : e.events.splice(n, 1), e.length > 0 && e.sort((i, r) => i.start - r.start), e;
140
140
  }
141
141
  function m(e, t) {
142
- O(["DS/WAFData/WAFData"], (s) => {
142
+ $(["DS/WAFData/WAFData"], (s) => {
143
143
  s.authenticatedRequest(e, t);
144
144
  });
145
145
  }
146
146
  function _e(e, t, s) {
147
- O(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
147
+ $(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
148
148
  n.draggable(e, {
149
149
  data: t,
150
150
  start: s
@@ -152,7 +152,7 @@ function _e(e, t, s) {
152
152
  });
153
153
  }
154
154
  function we(e, t = void 0) {
155
- O(["DS/TagNavigatorProxy/TagNavigatorProxy"], (s) => {
155
+ $(["DS/TagNavigatorProxy/TagNavigatorProxy"], (s) => {
156
156
  let n;
157
157
  n === void 0 && (n = s.createProxy({
158
158
  widgetId: R.id,
@@ -161,14 +161,14 @@ function we(e, t = void 0) {
161
161
  });
162
162
  }
163
163
  function Ce(e, t) {
164
- O(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
164
+ $(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
165
165
  s.droppable(e, {
166
166
  drop: t
167
167
  });
168
168
  });
169
169
  }
170
170
  async function Te(e, t = void 0, s = void 0) {
171
- await O(
171
+ await $(
172
172
  ["DS/i3DXCompassServices/i3DXCompassServices"],
173
173
  (n) => {
174
174
  (!e || e === "") && (e = R.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
@@ -183,7 +183,7 @@ async function Te(e, t = void 0, s = void 0) {
183
183
  }
184
184
  function Y() {
185
185
  let e = {};
186
- return O(["DS/PlatformAPI/PlatformAPI"], (t) => {
186
+ return $(["DS/PlatformAPI/PlatformAPI"], (t) => {
187
187
  const s = t.getTenant(), n = t.getUser(), i = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
188
188
  "com.3ds.wp.passport.cors"
189
189
  );
@@ -195,7 +195,7 @@ function Y() {
195
195
  };
196
196
  }), console.log("%cRETOUR API :", "color:blue", e), e;
197
197
  }
198
- function T(e, t = void 0, s = void 0) {
198
+ function b(e, t = void 0, s = void 0) {
199
199
  if (e.tenant) {
200
200
  const n = `https://${e.tenant}-eu1-apps.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?tenant=${e.tenant}&cors=true&xrequestedwith=xmlhttprequest`;
201
201
  m(n, {
@@ -247,8 +247,8 @@ function Oe(e, t, s) {
247
247
  },
248
248
  onComplete(r, o, a) {
249
249
  const c = JSON.parse(r), d = c.data.map((p) => {
250
- const u = p.attributes.name, l = p.id;
251
- return { name: u, id: l };
250
+ const u = p.attributes.name, f = p.id;
251
+ return { name: u, id: f };
252
252
  });
253
253
  t && t(d, c);
254
254
  },
@@ -327,12 +327,12 @@ function Ie(e, t, s = void 0, n = void 0) {
327
327
  Accept: "application/json,text/javascript,*/*"
328
328
  }
329
329
  },
330
- onComplete(l) {
331
- s && s(JSON.parse(l));
330
+ onComplete(f) {
331
+ s && s(JSON.parse(f));
332
332
  },
333
- onFailure(l, f) {
334
- const g = l;
335
- g.msg = f.errormsg, g.errCode = f.errorcode, n && n(g);
333
+ onFailure(f, l) {
334
+ const g = f;
335
+ g.msg = l.errormsg, g.errCode = l.errorcode, n && n(g);
336
336
  }
337
337
  });
338
338
  }
@@ -347,8 +347,8 @@ function q(e, t = void 0, s = void 0) {
347
347
  t && t(JSON.parse(p));
348
348
  },
349
349
  onFailure(p, u) {
350
- const l = p;
351
- l.msg = u.errormsg, l.errCode = u.errorcode, s && s(l);
350
+ const f = p;
351
+ f.msg = u.errormsg, f.errCode = u.errorcode, s && s(f);
352
352
  }
353
353
  });
354
354
  }
@@ -361,13 +361,13 @@ function Ae(e, t = void 0, s = void 0) {
361
361
  m(a, {
362
362
  opts: d,
363
363
  onComplete(p) {
364
- const u = JSON.parse(p), l = {}, f = u.groups.filter((g) => g.uri.startsWith("uuid:"));
364
+ const u = JSON.parse(p), f = {}, l = u.groups.filter((g) => g.uri.startsWith("uuid:"));
365
365
  if (i && Object.keys(i).length > 0) {
366
- const g = f.filter((S) => S.owner === i.email), h = f.filter((S) => S.members.includes(i.email)), y = g.concat(h);
367
- l.iam = y, l.UG = f, l.iamMember = h, q(
366
+ const g = l.filter((S) => S.owner === i.email), h = l.filter((S) => S.members.includes(i.email)), y = g.concat(h);
367
+ f.iam = y, f.UG = l, f.iamMember = h, q(
368
368
  e,
369
369
  (S) => {
370
- l.rules = S, t && t(l);
370
+ f.rules = S, t && t(f);
371
371
  },
372
372
  (S) => {
373
373
  s && s(S);
@@ -458,7 +458,7 @@ async function H(e, t, s) {
458
458
  });
459
459
  }
460
460
  }
461
- var I = {};
461
+ var A = {};
462
462
  function z(e, t) {
463
463
  return Object.prototype.hasOwnProperty.call(e, t);
464
464
  }
@@ -474,11 +474,11 @@ var Q = function(e, t, s, n) {
474
474
  var a = e.length;
475
475
  o > 0 && a > o && (a = o);
476
476
  for (var c = 0; c < a; ++c) {
477
- var d = e[c].replace(r, "%20"), p = d.indexOf(s), u, l, f, g;
478
- p >= 0 ? (u = d.substr(0, p), l = d.substr(p + 1)) : (u = d, l = ""), f = decodeURIComponent(u), g = decodeURIComponent(l), z(i, f) ? Array.isArray(i[f]) ? i[f].push(g) : i[f] = [i[f], g] : i[f] = g;
477
+ var d = e[c].replace(r, "%20"), p = d.indexOf(s), u, f, l, g;
478
+ p >= 0 ? (u = d.substr(0, p), f = d.substr(p + 1)) : (u = d, f = ""), l = decodeURIComponent(u), g = decodeURIComponent(f), z(i, l) ? Array.isArray(i[l]) ? i[l].push(g) : i[l] = [i[l], g] : i[l] = g;
479
479
  }
480
480
  return i;
481
- }, v = function(e) {
481
+ }, N = function(e) {
482
482
  switch (typeof e) {
483
483
  case "string":
484
484
  return e;
@@ -491,14 +491,14 @@ var Q = function(e, t, s, n) {
491
491
  }
492
492
  }, Z = function(e, t, s, n) {
493
493
  return t = t || "&", s = s || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
494
- var r = encodeURIComponent(v(i)) + s;
494
+ var r = encodeURIComponent(N(i)) + s;
495
495
  return Array.isArray(e[i]) ? e[i].map(function(o) {
496
- return r + encodeURIComponent(v(o));
497
- }).join(t) : r + encodeURIComponent(v(e[i]));
498
- }).filter(Boolean).join(t) : n ? encodeURIComponent(v(n)) + s + encodeURIComponent(v(e)) : "";
496
+ return r + encodeURIComponent(N(o));
497
+ }).join(t) : r + encodeURIComponent(N(e[i]));
498
+ }).filter(Boolean).join(t) : n ? encodeURIComponent(N(n)) + s + encodeURIComponent(N(e)) : "";
499
499
  };
500
- I.decode = I.parse = Q;
501
- I.encode = I.stringify = Z;
500
+ A.decode = A.parse = Q;
501
+ A.encode = A.stringify = Z;
502
502
  async function L(e, t = void 0, s = void 0, n = void 0) {
503
503
  const i = e.space;
504
504
  if (t === void 0) {
@@ -522,7 +522,7 @@ async function xe(e, t = void 0, s = void 0, n = void 0) {
522
522
  console.log("Le paramètre docids est obligatoire");
523
523
  return;
524
524
  }
525
- let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = I.stringify({
525
+ let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = A.stringify({
526
526
  $ids: t.toString().replace('"', "").replace("[", "").replace("]", "")
527
527
  });
528
528
  m(r, {
@@ -540,7 +540,7 @@ async function xe(e, t = void 0, s = void 0, n = void 0) {
540
540
  }
541
541
  });
542
542
  }
543
- function A(e, t = void 0, s = void 0) {
543
+ function k(e, t = void 0, s = void 0) {
544
544
  if (e.objID && e.objID !== "") {
545
545
  let n = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
546
546
  m(n, {
@@ -553,7 +553,7 @@ function A(e, t = void 0, s = void 0) {
553
553
  }
554
554
  });
555
555
  } else
556
- b(
556
+ O(
557
557
  e,
558
558
  (n) => {
559
559
  console.log("_3DSpace_get_csrf / _3DSpace_csrf", n), t && t(n);
@@ -563,7 +563,7 @@ function A(e, t = void 0, s = void 0) {
563
563
  }
564
564
  );
565
565
  }
566
- function b(e, t = void 0, s = void 0) {
566
+ function O(e, t = void 0, s = void 0) {
567
567
  if (e.space) {
568
568
  const n = e.space + "/resources/v1/application/CSRF";
569
569
  m(n, {
@@ -584,7 +584,7 @@ function b(e, t = void 0, s = void 0) {
584
584
  }
585
585
  function U(e, t = void 0, s = void 0) {
586
586
  let n = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
587
- A(
587
+ k(
588
588
  e,
589
589
  (i) => {
590
590
  m(n, {
@@ -639,7 +639,7 @@ function M(e, t, s, n, i, r = void 0, o = void 0) {
639
639
  r,
640
640
  o
641
641
  );
642
- e.token ? a() : A(
642
+ e.token ? a() : k(
643
643
  e,
644
644
  t,
645
645
  (c) => {
@@ -655,11 +655,11 @@ function ee(e, t, s, n, i, r, o = void 0, a = void 0) {
655
655
  ENO_CSRF_TOKEN: e.token
656
656
  },
657
657
  onComplete(d, p, u) {
658
- const l = JSON.parse(d).csrf, f = JSON.parse(d).data[0].dataelements, g = new FormData();
658
+ const f = JSON.parse(d).csrf, l = JSON.parse(d).data[0].dataelements, g = new FormData();
659
659
  let h;
660
660
  n instanceof Blob ? h = n : h = new Blob([n], {
661
661
  type: "text/plain"
662
- }), g.append("__fcs__jobTicket", f.ticket), g.append("file_0", h, i);
662
+ }), g.append("__fcs__jobTicket", l.ticket), g.append("file_0", h, i);
663
663
  const y = {};
664
664
  y.method = "POST", y.data = g, y.onComplete = function(S) {
665
665
  let _ = {
@@ -668,7 +668,7 @@ function ee(e, t, s, n, i, r, o = void 0, a = void 0) {
668
668
  SecurityContext: "ctx::" + e.ctx
669
669
  },
670
670
  data: JSON.stringify({
671
- csrf: l,
671
+ csrf: f,
672
672
  data: [
673
673
  {
674
674
  relateddata: {
@@ -688,20 +688,20 @@ function ee(e, t, s, n, i, r, o = void 0, a = void 0) {
688
688
  ]
689
689
  }),
690
690
  type: "json",
691
- onComplete($) {
692
- o && o($);
691
+ onComplete(T) {
692
+ o && o(T);
693
693
  },
694
- onFailure($) {
695
- a && a($);
694
+ onFailure(T) {
695
+ a && a(T);
696
696
  }
697
- }, C = e.tenant.toUpperCase();
697
+ }, w = e.tenant.toUpperCase();
698
698
  m(
699
- e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${C}&e6w-lang=en&e6w-timezone=-120&xrequestedwith=xmlhttprequest`,
699
+ e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${w}&e6w-lang=en&e6w-timezone=-120&xrequestedwith=xmlhttprequest`,
700
700
  _
701
701
  );
702
702
  }, y.onFailure = function(S) {
703
703
  a && a(S);
704
- }, y.timeout = 0, m(f.ticketURL, y);
704
+ }, y.timeout = 0, m(l.ticketURL, y);
705
705
  }
706
706
  });
707
707
  }
@@ -739,17 +739,17 @@ async function De(e, t, s, n, i = void 0, r = void 0) {
739
739
  headers: {
740
740
  ENO_CSRF_TOKEN: a
741
741
  },
742
- onComplete(p, u, l) {
743
- let f = JSON.parse(p).data[0].dataelements, g = new FormData(), h;
742
+ onComplete(p, u, f) {
743
+ let l = JSON.parse(p).data[0].dataelements, g = new FormData(), h;
744
744
  t instanceof Blob ? h = t : h = new Blob([t], {
745
745
  type: "text/plain"
746
- }), g.append("__fcs__jobTicket", f.ticket), g.append("filename", h, s);
746
+ }), g.append("__fcs__jobTicket", l.ticket), g.append("filename", h, s);
747
747
  const y = (_) => _.indexOf(".") === -1 ? _ : _.split(".").slice(0, -1).join(".");
748
748
  let S = {
749
749
  method: "POST",
750
750
  data: g,
751
751
  onComplete(_) {
752
- let C = D(), $ = {
752
+ let w = D(), T = {
753
753
  method: "POST",
754
754
  headers: {
755
755
  ENO_CSRF_TOKEN: a,
@@ -775,21 +775,21 @@ async function De(e, t, s, n, i = void 0, r = void 0) {
775
775
  }
776
776
  ]
777
777
  },
778
- tempId: C
778
+ tempId: w
779
779
  }
780
780
  ]
781
781
  }),
782
782
  type: "json",
783
- onComplete(F) {
784
- i && i(F);
783
+ onComplete(v) {
784
+ i && i(v);
785
785
  },
786
- onFailure(F) {
787
- r && r(F);
786
+ onFailure(v) {
787
+ r && r(v);
788
788
  }
789
789
  };
790
790
  m(
791
791
  o + "/resources/v1/modeler/documents/?SecurityContext=ctx::" + c,
792
- $
792
+ T
793
793
  );
794
794
  },
795
795
  onFailure(_) {
@@ -797,18 +797,18 @@ async function De(e, t, s, n, i = void 0, r = void 0) {
797
797
  },
798
798
  timeout: 0
799
799
  };
800
- m(f.ticketURL, S);
800
+ m(l.ticketURL, S);
801
801
  }
802
802
  });
803
803
  }
804
804
  }
805
- function k(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1) {
805
+ function F(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1) {
806
806
  const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
807
807
  m(a, {
808
808
  method: "GET",
809
809
  onComplete(c) {
810
810
  const d = JSON.parse(c);
811
- let p = "", u, l, f;
811
+ let p = "", u, f, l;
812
812
  if (t) {
813
813
  let g = d.collabspaces.find((h) => h.title === t);
814
814
  if (g) {
@@ -816,32 +816,32 @@ function k(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1
816
816
  let h = g.couples;
817
817
  h = h.filter(
818
818
  (y, S, _) => S === _.findIndex(
819
- (C) => C.organization.pid === y.organization.pid && C.role.pid === y.role.pid
819
+ (w) => w.organization.pid === y.organization.pid && w.role.pid === y.role.pid
820
820
  )
821
821
  ), s && (Array.isArray(s) ? s.forEach((y) => {
822
- f || h.forEach((S) => {
822
+ l || h.forEach((S) => {
823
823
  if (y === S.role.name && n === S.organization.title)
824
- f = y, l = n;
824
+ l = y, f = n;
825
825
  else if (y === S.role.name) {
826
826
  let _ = h.filter(
827
- (C) => C.role.name === y
827
+ (w) => w.role.name === y
828
828
  );
829
- _.length === 1 ? (f = _[0].role.name, l = _[0].organization.title) : r(_);
829
+ _.length === 1 ? (l = _[0].role.name, f = _[0].organization.title) : r(_);
830
830
  }
831
831
  });
832
832
  }) : h.forEach((y) => {
833
833
  if (s === y.role.name && n === y.organization.title)
834
- f = s, l = n;
834
+ l = s, f = n;
835
835
  else if (s === y.role.name) {
836
836
  let S = h.filter(
837
837
  (_) => _.role.name === s
838
838
  );
839
- S.length === 1 ? (f = S[0].role.name, l = S[0].organization.title) : r(S);
839
+ S.length === 1 ? (l = S[0].role.name, f = S[0].organization.title) : r(S);
840
840
  }
841
841
  }));
842
842
  }
843
843
  }
844
- u && l && f ? (p = f + "." + l + "." + u, i(p)) : d.preferredcredentials && o ? (p = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(p)) : r && (p = f + "." + l + "." + u, r(p));
844
+ 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));
845
845
  },
846
846
  onFailure(c, d) {
847
847
  console.warn("Erreur de récupération du contexte de sécurité. => ", {
@@ -940,14 +940,14 @@ function ne(e, t, s = void 0, n = void 0, i = void 0) {
940
940
  const d = c.data;
941
941
  c.success === !0 && (s && s(), d.forEach((p) => {
942
942
  try {
943
- const u = p.dataelements.fileName, l = p.dataelements.ticketURL;
944
- m(l, {
945
- onComplete: (f, g) => {
943
+ const u = p.dataelements.fileName, f = p.dataelements.ticketURL;
944
+ m(f, {
945
+ onComplete: (l, g) => {
946
946
  let h;
947
947
  try {
948
- h = JSON.parse(f);
948
+ h = JSON.parse(l);
949
949
  } catch {
950
- h = f.blob();
950
+ h = l.blob();
951
951
  }
952
952
  n && n({
953
953
  objectId: p.id,
@@ -956,8 +956,8 @@ function ne(e, t, s = void 0, n = void 0, i = void 0) {
956
956
  data: h
957
957
  });
958
958
  },
959
- onFailure: (f) => {
960
- console.log("error http", f);
959
+ onFailure: (l) => {
960
+ console.log("error http", l);
961
961
  }
962
962
  });
963
963
  } catch (u) {
@@ -972,7 +972,7 @@ function ne(e, t, s = void 0, n = void 0, i = void 0) {
972
972
  }
973
973
  function Le(e, t, s = void 0, n = void 0) {
974
974
  return new Promise((i) => {
975
- if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
975
+ if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
976
976
  const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
977
977
  let o = {
978
978
  method: "POST",
@@ -1003,7 +1003,7 @@ function Le(e, t, s = void 0, n = void 0) {
1003
1003
  }
1004
1004
  function Me(e, t, s, n = void 0, i = void 0) {
1005
1005
  return new Promise((r) => {
1006
- if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1006
+ if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
1007
1007
  const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
1008
1008
  let a = {
1009
1009
  method: "POST",
@@ -1035,9 +1035,9 @@ function Me(e, t, s, n = void 0, i = void 0) {
1035
1035
  }
1036
1036
  function Je(e, t, s = void 0, n = void 0) {
1037
1037
  return new Promise((i) => {
1038
- if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1038
+ if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
1039
1039
  const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
1040
- k(
1040
+ F(
1041
1041
  e.space,
1042
1042
  "ESPACE COMMUN",
1043
1043
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1076,9 +1076,9 @@ function Je(e, t, s = void 0, n = void 0) {
1076
1076
  }
1077
1077
  function Ge(e, t, s = void 0, n = void 0) {
1078
1078
  return new Promise((i) => {
1079
- if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1079
+ if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
1080
1080
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
1081
- k(
1081
+ F(
1082
1082
  e.space,
1083
1083
  "ESPACE COMMUN",
1084
1084
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1123,9 +1123,9 @@ function Ge(e, t, s = void 0, n = void 0) {
1123
1123
  }
1124
1124
  function Ee(e, t, s, n = void 0, i = void 0) {
1125
1125
  return new Promise((r) => {
1126
- if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1126
+ if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
1127
1127
  const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
1128
- k(
1128
+ F(
1129
1129
  e.space,
1130
1130
  "ESPACE COMMUN",
1131
1131
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1277,7 +1277,7 @@ async function Xe(e, t, s = void 0, n = void 0) {
1277
1277
  }
1278
1278
  function Ye(e, t, s, n = void 0, i = void 0) {
1279
1279
  const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
1280
- A(
1280
+ k(
1281
1281
  e,
1282
1282
  s,
1283
1283
  (o) => {
@@ -1301,7 +1301,7 @@ function Ye(e, t, s, n = void 0, i = void 0) {
1301
1301
  let G, E;
1302
1302
  const x = [];
1303
1303
  async function qe(e, t = void 0, s = void 0) {
1304
- e.objID && e.objID !== "" ? A(
1304
+ e.objID && e.objID !== "" ? k(
1305
1305
  e,
1306
1306
  (n) => {
1307
1307
  t && t(n);
@@ -1309,7 +1309,7 @@ async function qe(e, t = void 0, s = void 0) {
1309
1309
  (n) => {
1310
1310
  s && s(n);
1311
1311
  }
1312
- ) : (e.objID === null || e.objID === "") && b(
1312
+ ) : (e.objID === null || e.objID === "") && O(
1313
1313
  e,
1314
1314
  (n) => {
1315
1315
  t && t({ rep: n, msg: "Pas d'objID, ou invalide" });
@@ -1407,16 +1407,16 @@ function Qe(e, t, s = void 0, n = void 0) {
1407
1407
  Accept: "application/json"
1408
1408
  },
1409
1409
  data: JSON.stringify(u),
1410
- onComplete(l) {
1411
- JSON.parse(l);
1412
- const f = {};
1410
+ onComplete(f) {
1411
+ JSON.parse(f);
1412
+ const l = {};
1413
1413
  setTimeout(() => {
1414
1414
  L(
1415
1415
  e,
1416
1416
  o,
1417
1417
  (g) => {
1418
1418
  const h = g.data[0].dataelements.title, y = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", S = g.data[0].relateddata.ownerInfo[0].dataelements.name;
1419
- f.name = h, f.ext = y, f.createBy = S, t.info = { ...f }, re(
1419
+ l.name = h, l.ext = y, l.createBy = S, t.info = { ...l }, re(
1420
1420
  e,
1421
1421
  t,
1422
1422
  (_) => {
@@ -1434,9 +1434,9 @@ function Qe(e, t, s = void 0, n = void 0) {
1434
1434
  );
1435
1435
  }, 2e3);
1436
1436
  },
1437
- onFailure(l, f) {
1438
- const g = l;
1439
- g.msg = f.errormsg, g.errCode = f.errorcode, console.log("❌ sendDirectMessage => ", g), n && n(g);
1437
+ onFailure(f, l) {
1438
+ const g = f;
1439
+ g.msg = l.errormsg, g.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", g), n && n(g);
1440
1440
  }
1441
1441
  });
1442
1442
  }
@@ -1518,8 +1518,8 @@ function re(e, t, s = void 0, n = void 0) {
1518
1518
  s(u);
1519
1519
  },
1520
1520
  onFailure(p, u) {
1521
- const l = p;
1522
- l.msg = u.errormsg, l.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", l), n && n(l), console.log("Erreur de recuperation d'id du doc et des tags", p);
1521
+ const f = p;
1522
+ f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f), n && n(f), console.log("Erreur de recuperation d'id du doc et des tags", p);
1523
1523
  }
1524
1524
  });
1525
1525
  }
@@ -1554,8 +1554,8 @@ function Ze(e, t, s = void 0, n = void 0) {
1554
1554
  s && s(p);
1555
1555
  },
1556
1556
  onFailure(p, u) {
1557
- const l = p;
1558
- l.msg = u.errormsg, l.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", l), n && n(l);
1557
+ const f = p;
1558
+ f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f), n && n(f);
1559
1559
  }
1560
1560
  });
1561
1561
  }
@@ -1582,7 +1582,7 @@ function et(e, t = "", s = void 0, n = void 0) {
1582
1582
  }
1583
1583
  });
1584
1584
  }
1585
- async function w(e, t = void 0, s = void 0) {
1585
+ async function C(e, t = void 0, s = void 0) {
1586
1586
  const n = e.space + "/api/index/tk";
1587
1587
  return m(n, {
1588
1588
  onComplete(i, r, o) {
@@ -1606,7 +1606,7 @@ function tt(e, t = void 0, s = void 0) {
1606
1606
  start: 0
1607
1607
  }
1608
1608
  };
1609
- w(e, (r) => {
1609
+ C(e, (r) => {
1610
1610
  m(n, {
1611
1611
  method: "POST",
1612
1612
  headers: {
@@ -1635,7 +1635,7 @@ function nt(e, t = void 0, s = void 0) {
1635
1635
  maxNbOfCommonElements: "5"
1636
1636
  }
1637
1637
  };
1638
- w(e, (r) => {
1638
+ C(e, (r) => {
1639
1639
  m(n, {
1640
1640
  method: "POST",
1641
1641
  headers: {
@@ -1662,7 +1662,7 @@ function st(e, t = void 0, s = void 0) {
1662
1662
  limit: `/limit/${e.limit ? e.limit : 500}`,
1663
1663
  page: `/page/${e.page ? e.page : "1"}`
1664
1664
  }, i = `${n.base}${n.uri}${n.limit}${n.page}`, r = [];
1665
- w(e, (o) => {
1665
+ C(e, (o) => {
1666
1666
  m(i, {
1667
1667
  method: "GET",
1668
1668
  headers: {
@@ -1670,21 +1670,21 @@ function st(e, t = void 0, s = void 0) {
1670
1670
  },
1671
1671
  onComplete(a, c, d) {
1672
1672
  const u = JSON.parse(a).result;
1673
- let l = 0;
1674
- u.forEach((f) => {
1673
+ let f = 0;
1674
+ u.forEach((l) => {
1675
1675
  const g = {
1676
- description: f.description,
1677
- id: f.id,
1678
- title: f.title,
1679
- owner: f.owner,
1680
- role: f.role,
1681
- access: f.access
1676
+ description: l.description,
1677
+ id: l.id,
1678
+ title: l.title,
1679
+ owner: l.owner,
1680
+ role: l.role,
1681
+ access: l.access
1682
1682
  };
1683
1683
  ce(
1684
1684
  e,
1685
- f.id,
1685
+ l.id,
1686
1686
  (h) => {
1687
- l++, g.members = h, r.push(g), l === u.length && t && t(r);
1687
+ f++, g.members = h, r.push(g), f === u.length && t && t(r);
1688
1688
  },
1689
1689
  (h) => s(h)
1690
1690
  );
@@ -1705,7 +1705,7 @@ function ce(e, t, s, n) {
1705
1705
  community_id: t
1706
1706
  }
1707
1707
  };
1708
- w(e, (o) => {
1708
+ C(e, (o) => {
1709
1709
  m(i, {
1710
1710
  method: "POST",
1711
1711
  headers: {
@@ -1729,7 +1729,7 @@ function it(e, t = void 0, s = void 0) {
1729
1729
  const n = "YXdA5x4DSUKtlAi2wmnyTA";
1730
1730
  e.commu_id || (e.commu_id = n);
1731
1731
  const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
1732
- w(e, (r) => {
1732
+ C(e, (r) => {
1733
1733
  m(i, {
1734
1734
  method: "GET",
1735
1735
  headers: {
@@ -1769,7 +1769,7 @@ function at(e, t, s = void 0, n = void 0) {
1769
1769
  d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), n && n(p), c.id_msg = "";
1770
1770
  }
1771
1771
  ), d === !1 && setTimeout(() => {
1772
- d === !1 && w(e, (p) => {
1772
+ d === !1 && C(e, (p) => {
1773
1773
  m(o, {
1774
1774
  method: "POST",
1775
1775
  headers: {
@@ -1779,13 +1779,13 @@ function at(e, t, s = void 0, n = void 0) {
1779
1779
  },
1780
1780
  data: JSON.stringify(a),
1781
1781
  type: "json",
1782
- onComplete(u, l, f) {
1782
+ onComplete(u, f, l) {
1783
1783
  const g = u;
1784
- g.reponse = JSON.parse(f.response), g.status = f.status, s && s(g), c.id_msg = g.result.id, P(e, c);
1784
+ g.reponse = JSON.parse(l.response), g.status = l.status, s && s(g), c.id_msg = g.result.id, P(e, c);
1785
1785
  },
1786
- onFailure(u, l, f) {
1786
+ onFailure(u, f, l) {
1787
1787
  const g = u;
1788
- g.msg = l.errormsg, g.status = l.status, n && n(g);
1788
+ g.msg = f.errormsg, g.status = f.status, n && n(g);
1789
1789
  }
1790
1790
  });
1791
1791
  });
@@ -1793,7 +1793,7 @@ function at(e, t, s = void 0, n = void 0) {
1793
1793
  }
1794
1794
  function de(e, t, s, n) {
1795
1795
  const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
1796
- w(e, (r) => {
1796
+ C(e, (r) => {
1797
1797
  m(i, {
1798
1798
  method: "GET",
1799
1799
  headers: {
@@ -1803,13 +1803,13 @@ function de(e, t, s, n) {
1803
1803
  onComplete(o) {
1804
1804
  const a = JSON.parse(o), c = [];
1805
1805
  a.result.forEach((u) => {
1806
- u.users = u.users.sort((l, f) => l.login.localeCompare(f.login)), u.users.length === t.length && c.push(u);
1806
+ u.users = u.users.sort((f, l) => f.login.localeCompare(l.login)), u.users.length === t.length && c.push(u);
1807
1807
  });
1808
1808
  const d = t.sort(), p = c.find((u) => {
1809
- const l = [];
1810
- return u.users.forEach((f) => {
1811
- l.push(f.login);
1812
- }), JSON.stringify(l) === JSON.stringify(d);
1809
+ const f = [];
1810
+ return u.users.forEach((l) => {
1811
+ f.push(l.login);
1812
+ }), JSON.stringify(f) === JSON.stringify(d);
1813
1813
  });
1814
1814
  s && p !== void 0 ? s(p) : (n || p === void 0) && n(p);
1815
1815
  },
@@ -1836,7 +1836,7 @@ function P(e, t, s = void 0, n = void 0) {
1836
1836
  parentCommentUri: null,
1837
1837
  richMessage: t.msg
1838
1838
  };
1839
- console.log("_3dSwym_sendDirectMessageData url ", r), w(e, (a) => {
1839
+ console.log("_3dSwym_sendDirectMessageData url ", r), C(e, (a) => {
1840
1840
  m(r, {
1841
1841
  method: "POST",
1842
1842
  headers: {
@@ -1881,7 +1881,7 @@ function ot(e, t, s = void 0, n = void 0) {
1881
1881
  // 1 publier, 0 non publier
1882
1882
  }
1883
1883
  };
1884
- w(e, (c) => {
1884
+ C(e, (c) => {
1885
1885
  const d = {
1886
1886
  "Content-type": "application/json;charset=UTF-8",
1887
1887
  Accept: "application/json",
@@ -1892,13 +1892,13 @@ function ot(e, t, s = void 0, n = void 0) {
1892
1892
  headers: d,
1893
1893
  data: JSON.stringify(a),
1894
1894
  type: "json",
1895
- onComplete(p, u, l) {
1896
- const f = JSON.parse(p);
1897
- f.status = l.status, f.response = l.response, s && s(f);
1895
+ onComplete(p, u, f) {
1896
+ const l = JSON.parse(p);
1897
+ l.status = f.status, l.response = f.response, s && s(l);
1898
1898
  },
1899
- onFailure(p, u, l) {
1900
- const f = p;
1901
- f.status = u.status, f.response = u.errormsg, n && n(f);
1899
+ onFailure(p, u, f) {
1900
+ const l = p;
1901
+ l.status = u.status, l.response = u.errormsg, n && n(l);
1902
1902
  }
1903
1903
  });
1904
1904
  });
@@ -1943,7 +1943,7 @@ function rt(e, t = void 0, s = void 0) {
1943
1943
  // 1 publier, 0 brouillon
1944
1944
  }
1945
1945
  };
1946
- w(e, (o) => {
1946
+ C(e, (o) => {
1947
1947
  if (!o)
1948
1948
  throw new Error(
1949
1949
  `☠️ token n'est pas disponible pour cette requête : ${n.base + n.uri}`,
@@ -1964,13 +1964,13 @@ function rt(e, t = void 0, s = void 0) {
1964
1964
  typeof u.response == "string" && (u.response = JSON.parse(u.response)), u.status = p.status, t && t(u);
1965
1965
  },
1966
1966
  onFailure(c, d, p) {
1967
- const u = JSON.parse(d), l = JSON.parse(c), f = new Error(
1967
+ const u = JSON.parse(d), f = JSON.parse(c), l = new Error(
1968
1968
  `Erreur sur cette requête : ${n.base + n.uri}`,
1969
1969
  {
1970
- cause: { head: u, rep: l }
1970
+ cause: { head: u, rep: f }
1971
1971
  }
1972
1972
  );
1973
- s && s(f);
1973
+ s && s(l);
1974
1974
  }
1975
1975
  };
1976
1976
  m(n.base + n.uri, a);
@@ -1983,7 +1983,7 @@ function ct(e, t, s = void 0, n = void 0) {
1983
1983
  ideationIds: [t.idee_id]
1984
1984
  }
1985
1985
  };
1986
- w(e, (o) => {
1986
+ C(e, (o) => {
1987
1987
  m(i, {
1988
1988
  method: "POST",
1989
1989
  headers: {
@@ -2014,7 +2014,7 @@ function dt(e, t = void 0, s = void 0) {
2014
2014
  id: e.idPost
2015
2015
  }
2016
2016
  };
2017
- w(e, (r) => {
2017
+ C(e, (r) => {
2018
2018
  m(n, {
2019
2019
  method: "POST",
2020
2020
  headers: {
@@ -2072,43 +2072,54 @@ function pt(e, t, s) {
2072
2072
  }
2073
2073
  function ut(e, t, s = void 0, n = void 0) {
2074
2074
  const { space: i } = e;
2075
- let { community_id: r, limit: o, page: a } = t;
2076
- const c = [], d = 1;
2077
- let p = !1, u = 2;
2078
- a || (a = d), o || (o = 100);
2075
+ let { community_id: r, limit: o, page: a, search: c } = t;
2076
+ const d = [], p = 1;
2077
+ let u = !1, f = 2;
2078
+ a || (a = p), o || (o = 100);
2079
2079
  const l = {
2080
2080
  uri: "/api/idea/list",
2081
2081
  comId: `/community_id/${r}`,
2082
2082
  limit: `/limit/${o}`,
2083
2083
  page: `/page/${a}`
2084
2084
  };
2085
- let f = `${i}${l.uri}${l.comId}${l.limit}${l.page}`;
2086
- w(e, (g) => {
2087
- const h = (y) => {
2088
- m(y, {
2085
+ let g = `${i}${l.uri}${l.comId}${l.limit}${l.page}`;
2086
+ C(e, (h) => {
2087
+ const y = (S) => {
2088
+ m(S, {
2089
2089
  method: "GET",
2090
2090
  headers: {
2091
- "X-DS-SWYM-CSRFTOKEN": g.result.ServerToken
2091
+ "X-DS-SWYM-CSRFTOKEN": h.result.ServerToken
2092
2092
  },
2093
- onComplete(S) {
2094
- const _ = { response: JSON.parse(S) };
2095
- if (u = Math.ceil(Number(_.response.nb_result) / 100), S && u >= a) {
2096
- if (a++, c.push(_.response.result), u < a)
2093
+ onComplete(_) {
2094
+ const w = { response: JSON.parse(_) };
2095
+ if (f = Math.ceil(Number(w.response.nb_result) / 100), _ && f >= a) {
2096
+ if (a++, f < a)
2097
2097
  return;
2098
- l.page = `/page/${a}`, y = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, h(y);
2098
+ if (l.page = `/page/${a}`, S = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
2099
+ d.push(w.response.result);
2100
+ else {
2101
+ const T = w.response.result.find(
2102
+ (v) => v.title.includes(c)
2103
+ );
2104
+ if (T) {
2105
+ s(T);
2106
+ return;
2107
+ }
2108
+ }
2109
+ y(S);
2099
2110
  }
2100
- if (s && u <= a) {
2101
- p = !0, s(c);
2111
+ if (s && f <= a) {
2112
+ u = !0, s(d);
2102
2113
  return;
2103
2114
  }
2104
2115
  },
2105
- onFailure(S, _) {
2106
- const C = S;
2107
- C.status = _.status, C.response = _.errormsg, n && n(C);
2116
+ onFailure(_, w) {
2117
+ const T = _;
2118
+ T.status = w.status, T.response = w.errormsg, n && n(T);
2108
2119
  }
2109
2120
  });
2110
2121
  };
2111
- p || h(f);
2122
+ u || y(g);
2112
2123
  });
2113
2124
  }
2114
2125
  function ue(e) {
@@ -2188,7 +2199,7 @@ function ue(e) {
2188
2199
  }
2189
2200
  function lt(e, t = void 0, s = void 0) {
2190
2201
  const n = e.space + "/api/user/getcurrent/";
2191
- w(e, (i) => {
2202
+ C(e, (i) => {
2192
2203
  m(n, {
2193
2204
  method: "GET",
2194
2205
  headers: {
@@ -2207,7 +2218,7 @@ function lt(e, t = void 0, s = void 0) {
2207
2218
  }
2208
2219
  function ft(e, t, s = void 0, n = void 0) {
2209
2220
  const i = e.space + "/api/user/find/login/" + t;
2210
- w(
2221
+ C(
2211
2222
  e,
2212
2223
  (r) => {
2213
2224
  m(i, {
@@ -2226,14 +2237,14 @@ function ft(e, t, s = void 0, n = void 0) {
2226
2237
  );
2227
2238
  }
2228
2239
  function mt(e, t = void 0, s = void 0) {
2229
- e.tenant && T(e, (n) => {
2240
+ e.tenant && b(e, (n) => {
2230
2241
  console.log("serviceUrls", n);
2231
2242
  const i = n.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2232
2243
  return t && t(i), i;
2233
2244
  });
2234
2245
  }
2235
2246
  function gt(e, t = void 0, s = void 0) {
2236
- e.tenant && T(e, (n) => {
2247
+ e.tenant && b(e, (n) => {
2237
2248
  console.log("serviceUrls", n);
2238
2249
  const i = n.services.find((a) => a.id === "3dpassport")?.url, r = n.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
2239
2250
  m(o, {
@@ -2265,7 +2276,7 @@ function ht(e, t = void 0, s = void 0) {
2265
2276
  }
2266
2277
  }
2267
2278
  async function yt(e, t, s = void 0, n = void 0) {
2268
- e.tenant && T(e, (i) => {
2279
+ e.tenant && b(e, (i) => {
2269
2280
  const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
2270
2281
  fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
2271
2282
  method: "POST"
@@ -2277,7 +2288,7 @@ async function yt(e, t, s = void 0, n = void 0) {
2277
2288
  });
2278
2289
  }
2279
2290
  async function St(e, t, s = void 0, n = void 0) {
2280
- e.tenant && T(e, (i) => {
2291
+ e.tenant && b(e, (i) => {
2281
2292
  const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
2282
2293
  fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
2283
2294
  method: "GET"
@@ -2313,7 +2324,7 @@ async function wt(e, t, s, n = void 0, i = void 0) {
2313
2324
  }
2314
2325
  }
2315
2326
  async function Ct(e, t, s, n, i = void 0, r = void 0) {
2316
- e.tenant && T(e, (o) => {
2327
+ e.tenant && b(e, (o) => {
2317
2328
  o.services.find((c) => c.id === "businessprocess")?.url + "";
2318
2329
  const a = e.tenant.toLowerCase();
2319
2330
  fetch(
@@ -2329,7 +2340,7 @@ async function Ct(e, t, s, n, i = void 0, r = void 0) {
2329
2340
  });
2330
2341
  }
2331
2342
  async function Tt(e, t, s, n, i, r = void 0, o = void 0) {
2332
- e.tenant && T(e, (a) => {
2343
+ e.tenant && b(e, (a) => {
2333
2344
  a.services.find((d) => d.id === "businessprocess")?.url + "";
2334
2345
  const c = e.tenant.toLowerCase();
2335
2346
  fetch(
@@ -2345,7 +2356,7 @@ async function Tt(e, t, s, n, i, r = void 0, o = void 0) {
2345
2356
  });
2346
2357
  }
2347
2358
  async function bt(e, t, s, n = void 0, i = void 0) {
2348
- e.tenant && T(e, (r) => {
2359
+ e.tenant && b(e, (r) => {
2349
2360
  r.services.find((a) => a.id === "businessprocess")?.url + "";
2350
2361
  const o = e.tenant.toLowerCase();
2351
2362
  fetch(
@@ -2361,7 +2372,7 @@ async function bt(e, t, s, n = void 0, i = void 0) {
2361
2372
  });
2362
2373
  }
2363
2374
  async function Ot(e, t, s, n, i, r = void 0, o = void 0) {
2364
- e.tenant && T(e, (a) => {
2375
+ e.tenant && b(e, (a) => {
2365
2376
  a.services.find((d) => d.id === "businessprocess")?.url + "";
2366
2377
  const c = e.tenant.toLowerCase();
2367
2378
  fetch(
@@ -2377,7 +2388,7 @@ async function Ot(e, t, s, n, i, r = void 0, o = void 0) {
2377
2388
  });
2378
2389
  }
2379
2390
  async function $t(e, t, s, n, i = void 0, r = void 0) {
2380
- e.tenant && T(e, (o) => {
2391
+ e.tenant && b(e, (o) => {
2381
2392
  o.services.find((c) => c.id === "businessprocess")?.url + "";
2382
2393
  const a = e.tenant.toLowerCase();
2383
2394
  fetch(
@@ -2398,11 +2409,11 @@ function vt(e) {
2398
2409
  }
2399
2410
  function Nt(e, t = void 0, s = void 0) {
2400
2411
  return console.log("credentials", e), new Promise((n) => {
2401
- if (e.token === "" && b(e), !e.space || e.space === "") {
2412
+ if (e.token === "" && O(e), !e.space || e.space === "") {
2402
2413
  const o = Y();
2403
2414
  console.log("platformeInfo", o);
2404
2415
  }
2405
- k(
2416
+ F(
2406
2417
  e,
2407
2418
  "Common space",
2408
2419
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -2413,7 +2424,7 @@ function Nt(e, t = void 0, s = void 0) {
2413
2424
  },
2414
2425
  !0
2415
2426
  );
2416
- const i = N.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
2427
+ const i = I.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
2417
2428
  m(r, {
2418
2429
  onComplete(o) {
2419
2430
  if (Array.isArray(JSON.parse(o))) {
@@ -2482,17 +2493,17 @@ export {
2482
2493
  Re as _3DSpace_Update_Doc,
2483
2494
  Be as _3DSpace_bookmark_addSubsciptions,
2484
2495
  Ke as _3DSpace_bookmark_newWorkspace,
2485
- b as _3DSpace_csrf,
2496
+ O as _3DSpace_csrf,
2486
2497
  J as _3DSpace_download_doc,
2487
2498
  te as _3DSpace_download_multidoc,
2488
2499
  M as _3DSpace_file_update,
2489
2500
  ee as _3DSpace_file_update_csr,
2490
2501
  Pe as _3DSpace_file_url_csr,
2491
- A as _3DSpace_get_csrf,
2502
+ k as _3DSpace_get_csrf,
2492
2503
  L as _3DSpace_get_docInfo,
2493
2504
  ne as _3DSpace_get_downloadTicket_multidoc,
2494
2505
  xe as _3DSpace_get_multiDocInfo,
2495
- k as _3DSpace_get_securityContexts,
2506
+ F as _3DSpace_get_securityContexts,
2496
2507
  U as _3DSpace_get_ticket,
2497
2508
  Ee as _3DSpace_lifecycle_changeRevision,
2498
2509
  Me as _3DSpace_lifecycle_changeState,
@@ -2510,7 +2521,7 @@ export {
2510
2521
  it as _3DSwym_getIdeaStatusMaturity,
2511
2522
  ce as _3DSwym_getMembersCommunity,
2512
2523
  dt as _3DSwym_getOneIdea,
2513
- w as _3DSwym_get_Token,
2524
+ C as _3DSwym_get_Token,
2514
2525
  lt as _3DSwym_get_currentUser,
2515
2526
  ft as _3DSwym_get_findUser,
2516
2527
  rt as _3DSwym_postIdea,
@@ -2531,7 +2542,7 @@ export {
2531
2542
  Ct as _Iterop_runProcess,
2532
2543
  Y as _getPlateformInfos,
2533
2544
  Te as _getPlatformServices,
2534
- T as _getServiceUrl,
2545
+ b as _getServiceUrl,
2535
2546
  be as _getServiceUrl_3DPassport,
2536
2547
  mt as _getServiceUrl_Iterop,
2537
2548
  m as _httpCallAuthenticated,