@beam3_dev/api_module 0.0.304 → 0.0.305

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 A } from "@widget-lab/3ddashboard-utils";
3
+ import { requirejs as $, widget as L } from "@widget-lab/3ddashboard-utils";
4
4
  function Y() {
5
5
  return V();
6
6
  }
@@ -34,7 +34,7 @@ const z = {
34
34
  b3Edit8: "#616161",
35
35
  b3Edit9: "#795548"
36
36
  };
37
- async function Ne(e, t = void 0, n = void 0) {
37
+ async function xe(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 Ne(e, t = void 0, n = void 0) {
50
50
  n && n(i), console.error("Erreur : " + i);
51
51
  });
52
52
  }
53
- async function xe(e, t = void 0, n = void 0) {
53
+ async function Ie(e, t = void 0, n = void 0) {
54
54
  e = encodeURIComponent(e), await fetch(
55
55
  "https://api-adresse.data.gouv.fr/search/?q=" + e + "&limit=15",
56
56
  {
@@ -65,7 +65,7 @@ async function xe(e, t = void 0, n = void 0) {
65
65
  n && n(s), console.error("Erreur : " + s);
66
66
  });
67
67
  }
68
- async function Ie(e, t = z) {
68
+ async function Ne(e, t = z) {
69
69
  let n = O.now().year;
70
70
  const s = e, i = [], r = (o) => {
71
71
  for (let c in o)
@@ -155,23 +155,23 @@ function Re(e, t = void 0) {
155
155
  $(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
156
156
  let s;
157
157
  s === void 0 && (s = n.createProxy({
158
- widgetId: A.id,
158
+ widgetId: L.id,
159
159
  filteringMode: "WithFilteringServices"
160
160
  }), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
161
161
  });
162
162
  }
163
- function De(e, t) {
163
+ function je(e, t) {
164
164
  $(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
165
165
  n.droppable(e, {
166
166
  drop: t
167
167
  });
168
168
  });
169
169
  }
170
- async function je(e, t = void 0, n = void 0) {
170
+ async function De(e, t = void 0, n = void 0) {
171
171
  await $(
172
172
  ["DS/i3DXCompassServices/i3DXCompassServices"],
173
173
  (s) => {
174
- (!e || e === "") && (e = A.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
174
+ (!e || e === "") && (e = L.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
175
175
  s.getPlatformServices({
176
176
  platformId: e,
177
177
  onComplete: t,
@@ -209,7 +209,7 @@ function ke(e, t = void 0, n = void 0) {
209
209
  });
210
210
  }
211
211
  }
212
- function P(e, t = void 0, n = void 0) {
212
+ function M(e, t = void 0, n = void 0) {
213
213
  if (console.log("_getServiceUrl"), e.tenant) {
214
214
  const s = `https://${e.tenant.toLowerCase()}-eu1-compass.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?platform=${e.tenant.toUpperCase()}&cors=true&xrequestedwith=xmlhttprequest`;
215
215
  m(s, {
@@ -296,7 +296,7 @@ function Le(e, t, n = void 0, s = void 0) {
296
296
  }
297
297
  });
298
298
  }
299
- const D = {
299
+ const j = {
300
300
  "Content-Type": "application/json",
301
301
  Accept: "application/json,text/javascript,*/*"
302
302
  };
@@ -317,7 +317,7 @@ function Me(e, t, n = void 0, s = void 0) {
317
317
  };
318
318
  m(o, {
319
319
  method: "POST",
320
- headers: D,
320
+ headers: j,
321
321
  data: JSON.stringify(c),
322
322
  onComplete(d) {
323
323
  n && n(JSON.parse(d));
@@ -401,7 +401,7 @@ function Ke(e, t) {
401
401
  method: "DELETE"
402
402
  });
403
403
  }
404
- function Be(e, t, n, s = void 0, i = void 0) {
404
+ function qe(e, t, n, s = void 0, i = void 0) {
405
405
  const { space: r, tenant: a } = e, o = {
406
406
  URITI: "/3drdfpersist/resources/v1/template-instances",
407
407
  URIUGr: "/3drdfpersist/resources/v1/usersgroup",
@@ -412,7 +412,7 @@ function Be(e, t, n, s = void 0, i = void 0) {
412
412
  OPTsTenant: `tenant=dstenant:${a}`
413
413
  }, c = n, d = `${r}${o.URIUGr}/${t}`, u = JSON.stringify(c);
414
414
  m(d, {
415
- headers: D,
415
+ headers: j,
416
416
  method: "PATCH",
417
417
  data: u,
418
418
  type: "json",
@@ -424,11 +424,11 @@ function Be(e, t, n, s = void 0, i = void 0) {
424
424
  }
425
425
  });
426
426
  }
427
- function qe(e, t, n, s = void 0, i = void 0) {
427
+ function Be(e, t, n, s = void 0, i = void 0) {
428
428
  const { space: r } = e, o = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
429
429
  m(o, {
430
430
  method: "PATCH",
431
- headers: D,
431
+ headers: j,
432
432
  data: JSON.stringify(n),
433
433
  type: "json",
434
434
  onComplete(d) {
@@ -511,7 +511,7 @@ var se = function(e, t, n, s) {
511
511
  };
512
512
  I.decode = I.parse = se;
513
513
  I.encode = I.stringify = ie;
514
- async function L(e, t = void 0, n = void 0, s = void 0) {
514
+ async function J(e, t = void 0, n = void 0, s = void 0) {
515
515
  const i = e.space;
516
516
  if (t === void 0) {
517
517
  console.log("Le paramètre docid est obligatoire");
@@ -565,7 +565,7 @@ function U(e, t = void 0, n = void 0) {
565
565
  }
566
566
  });
567
567
  } else
568
- T(
568
+ b(
569
569
  e,
570
570
  (s) => {
571
571
  console.log("_3DSpace_get_csrf / _3DSpace_csrf", s), e.token = s, t && t(e);
@@ -575,7 +575,7 @@ function U(e, t = void 0, n = void 0) {
575
575
  }
576
576
  );
577
577
  }
578
- function T(e, t = void 0, n = void 0) {
578
+ function b(e, t = void 0, n = void 0) {
579
579
  if (e.space) {
580
580
  const s = e.space + "/resources/v1/application/CSRF";
581
581
  m(s, {
@@ -594,7 +594,7 @@ function T(e, t = void 0, n = void 0) {
594
594
  } else
595
595
  n && n("ERROR : url du 3DSpace non défini.");
596
596
  }
597
- function j(e, t = void 0, n = void 0) {
597
+ function D(e, t = void 0, n = void 0) {
598
598
  let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
599
599
  U(
600
600
  e,
@@ -640,7 +640,7 @@ function We(e, t, n = void 0, s = void 0, i = void 0) {
640
640
  }
641
641
  });
642
642
  }
643
- function M(e, t, n, s, i, r = void 0, a = void 0) {
643
+ function G(e, t, n, s, i, r = void 0, a = void 0) {
644
644
  const o = () => ae(
645
645
  e,
646
646
  t,
@@ -786,14 +786,14 @@ async function Ye(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
786
786
  p && m(d, {
787
787
  method: "GET",
788
788
  headers: {
789
- ENO_CSRF_TOKEN: e.token,
789
+ //"x-ds-csrftoken": csrftoken,
790
790
  Accept: "application/json"
791
791
  },
792
792
  onComplete(l, h, g) {
793
793
  try {
794
794
  if (l = JSON.parse(l), l?.ticket) {
795
795
  const { ticket: _, actionurl: y, jobticket: w } = l;
796
- n instanceof Blob || (n = new Blob([n], { type: "text/plain" })), J(
796
+ K(
797
797
  { dataelements: { ticket: _, ticketURL: y } },
798
798
  n,
799
799
  t,
@@ -801,14 +801,12 @@ async function Ye(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
801
801
  const R = new DOMParser().parseFromString(
802
802
  S,
803
803
  "text/html"
804
- ).body.firstChild.querySelector("input").getAttributeNode("value").value, E = `https://${a.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(
805
- o
806
- )}/contents?receipt=${encodeURIComponent(R)}`;
807
- let X = /(?:\.([^.]+))?$/.exec(t)[1];
808
- const W = JSON.stringify({
804
+ ).body.firstChild.querySelector("input").getAttributeNode("value").value, k = `https://${a.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(o)}/contents?receipt=${encodeURIComponent(R)}`;
805
+ let W = /(?:\.([^.]+))?$/.exec(t)[1];
806
+ const v = JSON.stringify({
809
807
  actions: [],
810
808
  businessobj: {
811
- description: "",
809
+ description: e?.description ? e?.description : "",
812
810
  file: t,
813
811
  fullnameowner: "",
814
812
  icon: "",
@@ -816,30 +814,27 @@ async function Ye(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
816
814
  modified: "",
817
815
  owner: {},
818
816
  thumbnail: "",
819
- title: X ? t.split(".").slice(0, -1).join(".") : t,
817
+ title: W ? t.split(".").slice(0, -1).join(".") : t,
820
818
  type: {}
821
819
  },
822
820
  collabspace: o
823
821
  });
824
- m(E, {
822
+ m(k, {
825
823
  method: "POST",
826
824
  headers: {
827
825
  Accept: "application/json",
828
826
  "Content-Type": "application/json;charset=UTF-8",
829
827
  "X-DS-CSRFTOKEN": p
830
828
  },
831
- data: W,
829
+ data: v,
832
830
  type: "json",
833
- onComplete(N, Ce, Te) {
834
- console.log(
835
- "_3DSpace_Upload_Doc | pushFileInFcs | onComplete",
836
- N
837
- ), s && s(N);
831
+ onComplete(N, Ce, be) {
832
+ s && s(N);
838
833
  },
839
834
  onFailure(N) {
840
- console.error(
835
+ console.warn(
841
836
  "_3DSpace_Upload_Doc | pushFileInFcs | onFailure",
842
- N
837
+ { url: k, bodyRequest: v, err: N }
843
838
  ), i && i(N);
844
839
  }
845
840
  });
@@ -848,7 +843,7 @@ async function Ye(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
848
843
  console.warn("pushFileInFcs", S), i && i(S);
849
844
  },
850
845
  (S) => {
851
- r && r(S);
846
+ r && r({ fileName: t, progress: S });
852
847
  }
853
848
  );
854
849
  }
@@ -871,12 +866,12 @@ async function Ye(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
871
866
  );
872
867
  }
873
868
  async function ze(e, t, n, s = void 0, i = void 0) {
874
- e.space, e.token, e.ctx, L(
869
+ e.space, e.token, e.ctx, J(
875
870
  e,
876
871
  t,
877
872
  (r) => {
878
873
  const a = r.data[0].relateddata.files[0].id, o = r.data[0].relateddata.files[0].dataelements.title;
879
- M(
874
+ G(
880
875
  e,
881
876
  t,
882
877
  a,
@@ -900,7 +895,7 @@ async function He(e, t, n, s, i = void 0, r = void 0) {
900
895
  e,
901
896
  (a) => {
902
897
  a?.items >= 1 && a.data.forEach((o) => {
903
- J(
898
+ K(
904
899
  o,
905
900
  t,
906
901
  n,
@@ -951,11 +946,12 @@ function oe(e, t = void 0, n = void 0) {
951
946
  } else
952
947
  console.log("Error de credentials", e);
953
948
  }
954
- function J(e, t, n, s = void 0, i = void 0, r = void 0) {
949
+ function K(e, t, n, s = void 0, i = void 0, r = void 0) {
950
+ console.log("pushFileInFcs", { fcs__jobTicket: e, fileData: t, fileName: n });
955
951
  let a = new FormData();
956
952
  t instanceof Blob || (t = new Blob([t], {
957
953
  type: "text/plain"
958
- })), a.append("__fcs__jobTicket", e.dataelements.ticket), a.append("file_0", t, n);
954
+ })), a.append("__fcs__jobTicket", e.dataelements.ticket), a.append("file-name", n), a.append("file_0", t, n), a.append("file-title", n), a.append("file-description", n);
959
955
  let o = e.dataelements.ticketURL;
960
956
  const c = new XMLHttpRequest();
961
957
  c.open("POST", o, !0), c.upload.onprogress = function(d) {
@@ -1065,7 +1061,7 @@ function F(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, a = !1
1065
1061
  }
1066
1062
  });
1067
1063
  }
1068
- async function G(e, t = void 0, n = void 0) {
1064
+ async function q(e, t = void 0, n = void 0) {
1069
1065
  return (!e.objID || e.objID === "") && (console.warn(
1070
1066
  "_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
1071
1067
  ), n && n(
@@ -1081,7 +1077,7 @@ async function G(e, t = void 0, n = void 0) {
1081
1077
  console.log("☠️ error => ", s);
1082
1078
  }
1083
1079
  ), new Promise((s, i) => {
1084
- j(
1080
+ D(
1085
1081
  e,
1086
1082
  (r) => {
1087
1083
  e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((a) => a.blob()).then((a) => {
@@ -1186,7 +1182,7 @@ function de(e, t, n = void 0, s = void 0, i = void 0) {
1186
1182
  }
1187
1183
  function Qe(e, t, n = void 0, s = void 0) {
1188
1184
  return new Promise((i) => {
1189
- if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
1185
+ if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1190
1186
  const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
1191
1187
  let a = {
1192
1188
  method: "POST",
@@ -1217,7 +1213,7 @@ function Qe(e, t, n = void 0, s = void 0) {
1217
1213
  }
1218
1214
  function Ze(e, t, n, s = void 0, i = void 0) {
1219
1215
  return new Promise((r) => {
1220
- if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
1216
+ if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1221
1217
  const a = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
1222
1218
  let o = {
1223
1219
  method: "POST",
@@ -1249,7 +1245,7 @@ function Ze(e, t, n, s = void 0, i = void 0) {
1249
1245
  }
1250
1246
  function et(e, t, n = void 0, s = void 0) {
1251
1247
  return new Promise((i) => {
1252
- if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
1248
+ if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1253
1249
  const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
1254
1250
  F(
1255
1251
  e.space,
@@ -1290,7 +1286,7 @@ function et(e, t, n = void 0, s = void 0) {
1290
1286
  }
1291
1287
  function tt(e, t, n = void 0, s = void 0) {
1292
1288
  return new Promise((i) => {
1293
- if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
1289
+ if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1294
1290
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
1295
1291
  F(
1296
1292
  e.space,
@@ -1337,7 +1333,7 @@ function tt(e, t, n = void 0, s = void 0) {
1337
1333
  }
1338
1334
  function nt(e, t, n, s = void 0, i = void 0) {
1339
1335
  return new Promise((r) => {
1340
- if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
1336
+ if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1341
1337
  const a = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
1342
1338
  F(
1343
1339
  e.space,
@@ -1510,7 +1506,7 @@ function ot(e, t = void 0, n = void 0) {
1510
1506
  });
1511
1507
  }
1512
1508
  function rt(e, t, n, s) {
1513
- j(
1509
+ D(
1514
1510
  e.space,
1515
1511
  t,
1516
1512
  (i) => {
@@ -1528,7 +1524,7 @@ function rt(e, t, n, s) {
1528
1524
  }
1529
1525
  async function ct(e, t, n = void 0, s = void 0) {
1530
1526
  return new Promise((i) => {
1531
- j(e, t, (r) => {
1527
+ D(e, t, (r) => {
1532
1528
  m(r, {
1533
1529
  onComplete: (a, o, c) => (i(JSON.parse(a)), n && n(JSON.parse(a), o, c), i),
1534
1530
  onFailure: (a, o, c) => {
@@ -1545,7 +1541,7 @@ function dt(e, t, n, s = void 0, i = void 0) {
1545
1541
  (a) => {
1546
1542
  console.log("_3DSpace_get_csrf | onDone | data", a);
1547
1543
  const o = a.datas.relateddata.files[0].id, c = a.datas.relateddata.files[0].dataelements.title;
1548
- M(
1544
+ G(
1549
1545
  e,
1550
1546
  n,
1551
1547
  o,
@@ -1564,8 +1560,8 @@ function dt(e, t, n, s = void 0, i = void 0) {
1564
1560
  }
1565
1561
  );
1566
1562
  }
1567
- let K, B;
1568
- const k = [];
1563
+ let B, E;
1564
+ const A = [];
1569
1565
  async function ut(e, t = void 0, n = void 0) {
1570
1566
  e.objID && e.objID !== "" ? U(
1571
1567
  e,
@@ -1575,7 +1571,7 @@ async function ut(e, t = void 0, n = void 0) {
1575
1571
  (s) => {
1576
1572
  n && n(s);
1577
1573
  }
1578
- ) : (e.objID === null || e.objID === "") && T(
1574
+ ) : (e.objID === null || e.objID === "") && b(
1579
1575
  e,
1580
1576
  (s) => {
1581
1577
  t && t({ rep: s, msg: "Pas d'objID, ou invalide" });
@@ -1586,7 +1582,7 @@ async function ut(e, t = void 0, n = void 0) {
1586
1582
  );
1587
1583
  }
1588
1584
  async function pt(e, t = void 0, n = void 0) {
1589
- console.log("getDatasByTenant (getDocuments)", e), await G(
1585
+ console.log("getDatasByTenant (getDocuments)", e), await q(
1590
1586
  e,
1591
1587
  (s) => {
1592
1588
  const i = {};
@@ -1604,11 +1600,11 @@ function lt(e, t = void 0, n = void 0) {
1604
1600
  return;
1605
1601
  }
1606
1602
  e.objIds.forEach((i, r) => {
1607
- G(
1603
+ q(
1608
1604
  e,
1609
1605
  i.objID,
1610
1606
  (a) => {
1611
- 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);
1607
+ s.push({ [i.name]: a }), i.name === "dbProjets" && (B = a.affaires.map((o) => o.objectID), pe(e, E)), r === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
1612
1608
  }
1613
1609
  );
1614
1610
  });
@@ -1616,10 +1612,10 @@ function lt(e, t = void 0, n = void 0) {
1616
1612
  function pe(e, t, n = void 0, s = void 0) {
1617
1613
  ce(
1618
1614
  e,
1619
- K,
1615
+ B,
1620
1616
  (i) => {
1621
1617
  const r = [...t];
1622
- r.find((a) => a.objectID === i.objectId).data = i.data, B = r, k.push(i.data), n && n(k);
1618
+ r.find((a) => a.objectID === i.objectId).data = i.data, E = r, A.push(i.data), n && n(A);
1623
1619
  },
1624
1620
  (i) => {
1625
1621
  s && (s(i), console.log(i));
@@ -1633,7 +1629,7 @@ const le = "FA35FB9B177A280065800EA0000F599C", fe = [
1633
1629
  "usersgroup",
1634
1630
  "3dplan",
1635
1631
  "dashboard"
1636
- ], q = {
1632
+ ], X = {
1637
1633
  how: "ds6w:how",
1638
1634
  what: "ds6w:what",
1639
1635
  when: "ds6w:when",
@@ -1659,7 +1655,7 @@ function ft(e, t, n = void 0, s = void 0) {
1659
1655
  uri: `pid://${a}`
1660
1656
  }
1661
1657
  ],
1662
- predicate: q[o],
1658
+ predicate: X[o],
1663
1659
  object: {
1664
1660
  literal: c
1665
1661
  }
@@ -1677,7 +1673,7 @@ function ft(e, t, n = void 0, s = void 0) {
1677
1673
  JSON.parse(f);
1678
1674
  const l = {};
1679
1675
  setTimeout(() => {
1680
- L(
1676
+ J(
1681
1677
  e,
1682
1678
  a,
1683
1679
  (h) => {
@@ -1802,7 +1798,7 @@ function mt(e, t, n = void 0, s = void 0) {
1802
1798
  uri: `pid://${i}`
1803
1799
  }
1804
1800
  ],
1805
- predicate: q[r],
1801
+ predicate: X[r],
1806
1802
  object: {
1807
1803
  literal: a
1808
1804
  }
@@ -2029,7 +2025,7 @@ function wt(e, t, n = void 0, s = void 0) {
2029
2025
  _e(
2030
2026
  c.users,
2031
2027
  (p) => {
2032
- p !== void 0 && (d.id_msg = p.id, u = !0, v(e, d));
2028
+ p !== void 0 && (d.id_msg = p.id, u = !0, P(e, d));
2033
2029
  },
2034
2030
  (p) => {
2035
2031
  u = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), d.id_msg = "";
@@ -2047,7 +2043,7 @@ function wt(e, t, n = void 0, s = void 0) {
2047
2043
  type: "json",
2048
2044
  onComplete(f, l, h) {
2049
2045
  const g = f;
2050
- g.reponse = JSON.parse(h.response), g.status = h.status, n && n(g), d.id_msg = g.result.id, v(e, d);
2046
+ g.reponse = JSON.parse(h.response), g.status = h.status, n && n(g), d.id_msg = g.result.id, P(e, d);
2051
2047
  },
2052
2048
  onFailure(f, l, h) {
2053
2049
  const g = f;
@@ -2086,7 +2082,7 @@ function _e(e, t, n, s) {
2086
2082
  });
2087
2083
  });
2088
2084
  }
2089
- function v(e, t, n = void 0, s = void 0) {
2085
+ function P(e, t, n = void 0, s = void 0) {
2090
2086
  const i = {
2091
2087
  base: e._3DSwym,
2092
2088
  uri: "/api/community",
@@ -2169,7 +2165,7 @@ function Ct(e, t, n = void 0, s = void 0) {
2169
2165
  });
2170
2166
  });
2171
2167
  }
2172
- function Tt(e, t = void 0, n = void 0) {
2168
+ function bt(e, t = void 0, n = void 0) {
2173
2169
  const s = { base: e.space, uri: "/api/idea/add" };
2174
2170
  if (!Array.isArray(e.swymCommunities)) {
2175
2171
  const a = "☠️ swymCommunities doit être un tableau d'objets de communautés";
@@ -2242,7 +2238,7 @@ function Tt(e, t = void 0, n = void 0) {
2242
2238
  m(s.base + s.uri, o);
2243
2239
  });
2244
2240
  }
2245
- function bt(e, t, n = void 0, s = void 0) {
2241
+ function Tt(e, t, n = void 0, s = void 0) {
2246
2242
  const i = `${e.space}/api/idea/delete`, r = {
2247
2243
  params: {
2248
2244
  community_id: t.community_id,
@@ -2342,7 +2338,7 @@ function $t(e, t, n) {
2342
2338
  };
2343
2339
  m(p.base + p.uri, l);
2344
2340
  }
2345
- function Nt(e, t, n = void 0, s = void 0) {
2341
+ function xt(e, t, n = void 0, s = void 0) {
2346
2342
  const { _3DSwym: i } = e;
2347
2343
  let { community_id: r, limit: a, page: o, search: c } = t;
2348
2344
  const d = [], u = 1;
@@ -2368,11 +2364,11 @@ function Nt(e, t, n = void 0, s = void 0) {
2368
2364
  if (o++, l.page = `/page/${o}`, y = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
2369
2365
  d.push(S.response.result);
2370
2366
  else {
2371
- const b = S.response.result.find(
2367
+ const T = S.response.result.find(
2372
2368
  (R) => R.title.includes(c)
2373
2369
  );
2374
- if (b) {
2375
- n(b);
2370
+ if (T) {
2371
+ n(T);
2376
2372
  return;
2377
2373
  }
2378
2374
  }
@@ -2384,8 +2380,8 @@ function Nt(e, t, n = void 0, s = void 0) {
2384
2380
  }
2385
2381
  },
2386
2382
  onFailure(w, S) {
2387
- const b = w;
2388
- b.status = S.status, b.response = S.errormsg, s && s(b);
2383
+ const T = w;
2384
+ T.status = S.status, T.response = S.errormsg, s && s(T);
2389
2385
  }
2390
2386
  });
2391
2387
  };
@@ -2467,7 +2463,7 @@ function Se(e) {
2467
2463
  <p>
2468
2464
  </p>` : e;
2469
2465
  }
2470
- function xt(e, t = void 0, n = void 0) {
2466
+ function It(e, t = void 0, n = void 0) {
2471
2467
  const { tenant: s, _3DSwym: i, _3DSwym_token: r, community_id: a, idea_id: o } = e;
2472
2468
  if (s && i && r && a && o) {
2473
2469
  const c = `${i}/api/idea/forward`;
@@ -2500,7 +2496,7 @@ function xt(e, t = void 0, n = void 0) {
2500
2496
  credentials: e
2501
2497
  });
2502
2498
  }
2503
- function It(e, t = void 0, n = void 0) {
2499
+ function Nt(e, t = void 0, n = void 0) {
2504
2500
  return new Promise((s, i) => {
2505
2501
  try {
2506
2502
  let r;
@@ -2578,13 +2574,13 @@ function Ft(e, t = void 0, n = void 0) {
2578
2574
  m(o, d);
2579
2575
  }
2580
2576
  function Rt(e, t = void 0, n = void 0) {
2581
- e.tenant && P(e, (s) => {
2577
+ e.tenant && M(e, (s) => {
2582
2578
  const i = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2583
2579
  return t && t(i), i;
2584
2580
  });
2585
2581
  }
2586
- function Dt(e, t = void 0, n = void 0) {
2587
- console.log("_Iterop_Auth_CAS"), e.tenant && P(e, (s) => {
2582
+ function jt(e, t = void 0, n = void 0) {
2583
+ console.log("_Iterop_Auth_CAS"), e.tenant && M(e, (s) => {
2588
2584
  console.log("serviceUrls", s);
2589
2585
  const i = s.services.find(
2590
2586
  (o) => o.id === "3dpassport"
@@ -2605,7 +2601,7 @@ function Dt(e, t = void 0, n = void 0) {
2605
2601
  });
2606
2602
  });
2607
2603
  }
2608
- function jt(e, t = void 0, n = void 0) {
2604
+ function Dt(e, t = void 0, n = void 0) {
2609
2605
  if (e.tenant) {
2610
2606
  const s = e.tenant.toLowerCase();
2611
2607
  fetch(`https://api.uixhome.fr/${s}/iterop/jwtuser`, {
@@ -2760,7 +2756,7 @@ async function Kt(e, t, n, s = void 0, i = void 0) {
2760
2756
  });
2761
2757
  }
2762
2758
  }
2763
- async function Bt(e, t, n, s, i, r = void 0, a = void 0) {
2759
+ async function qt(e, t, n, s, i, r = void 0, a = void 0) {
2764
2760
  if (e.tenant) {
2765
2761
  const o = e.tenant.toLowerCase();
2766
2762
  fetch(
@@ -2775,7 +2771,7 @@ async function Bt(e, t, n, s, i, r = void 0, a = void 0) {
2775
2771
  });
2776
2772
  }
2777
2773
  }
2778
- async function qt(e, t, n, s, i = void 0, r = void 0) {
2774
+ async function Bt(e, t, n, s, i = void 0, r = void 0) {
2779
2775
  if (e.tenant) {
2780
2776
  const a = e.tenant.toLowerCase();
2781
2777
  fetch(
@@ -2813,7 +2809,7 @@ function Xt(e) {
2813
2809
  }
2814
2810
  function Wt(e, t = void 0, n = void 0) {
2815
2811
  return console.log("credentials", e), new Promise((s) => {
2816
- if (e.token === "" && T(e), !e.space || e.space === "") {
2812
+ if (e.token === "" && b(e), !e.space || e.space === "") {
2817
2813
  const a = Z();
2818
2814
  console.log("platformeInfo", a);
2819
2815
  }
@@ -2898,18 +2894,18 @@ export {
2898
2894
  Ye as _3DSpace_Upload_File,
2899
2895
  at as _3DSpace_bookmark_addSubsciptions,
2900
2896
  it as _3DSpace_bookmark_newWorkspace,
2901
- T as _3DSpace_csrf,
2902
- G as _3DSpace_download_doc,
2897
+ b as _3DSpace_csrf,
2898
+ q as _3DSpace_download_doc,
2903
2899
  ce as _3DSpace_download_multidoc,
2904
- M as _3DSpace_file_update,
2900
+ G as _3DSpace_file_update,
2905
2901
  ae as _3DSpace_file_update_csr,
2906
2902
  We as _3DSpace_file_url_csr,
2907
2903
  U as _3DSpace_get_csrf,
2908
- L as _3DSpace_get_docInfo,
2904
+ J as _3DSpace_get_docInfo,
2909
2905
  de as _3DSpace_get_downloadTicket_multidoc,
2910
2906
  Xe as _3DSpace_get_multiDocInfo,
2911
2907
  F as _3DSpace_get_securityContexts,
2912
- j as _3DSpace_get_ticket,
2908
+ D as _3DSpace_get_ticket,
2913
2909
  nt as _3DSpace_lifecycle_changeRevision,
2914
2910
  Ze as _3DSpace_lifecycle_changeState,
2915
2911
  et as _3DSpace_lifecycle_getGraph,
@@ -2917,50 +2913,50 @@ export {
2917
2913
  Qe as _3DSpace_lifecycle_getNextStates,
2918
2914
  st as _3DSpace_lifecycle_getRevisions,
2919
2915
  Ve as _3DSpace_put_docInfo,
2920
- xt as _3DSwym_ForwardIdea,
2916
+ It as _3DSwym_ForwardIdea,
2921
2917
  Ft as _3DSwym_addComment,
2922
2918
  wt as _3DSwym_buildDirectMessage,
2923
- bt as _3DSwym_deleteIdea,
2919
+ Tt as _3DSwym_deleteIdea,
2924
2920
  $t as _3DSwym_editIdea,
2925
2921
  _e as _3DSwym_findCommunityToInstantMSG,
2926
2922
  yt as _3DSwym_getAllCommunities,
2927
- Nt as _3DSwym_getAllListIdeas,
2923
+ xt as _3DSwym_getAllListIdeas,
2928
2924
  gt as _3DSwym_getAllNews,
2929
2925
  _t as _3DSwym_getFamiliarPeople,
2930
2926
  St as _3DSwym_getIdeaStatusMaturity,
2931
2927
  ge as _3DSwym_getMembersCommunity,
2932
2928
  Ot as _3DSwym_getOneIdea,
2933
2929
  C as _3DSwym_get_Token,
2934
- It as _3DSwym_get_currentUser,
2930
+ Nt as _3DSwym_get_currentUser,
2935
2931
  Ut as _3DSwym_get_findUser,
2936
- Tt as _3DSwym_postIdea,
2932
+ bt as _3DSwym_postIdea,
2937
2933
  Ct as _3DSwym_postIdeaTemplate,
2938
- v as _3DSwym_sendMessageData,
2934
+ P as _3DSwym_sendMessageData,
2939
2935
  Le as _AppMngt_get_info_user,
2940
2936
  Pe as _AppMngt_get_users,
2941
2937
  Pt as _Iterop_AddOrRemoveRows,
2942
- Dt as _Iterop_Auth_CAS,
2938
+ jt as _Iterop_Auth_CAS,
2943
2939
  Kt as _Iterop_GetOneDependencyTable,
2944
2940
  Et as _Iterop_GetOneList,
2945
- Bt as _Iterop_PatchDependencyTable,
2946
- qt as _Iterop_PutDependencyTable,
2941
+ qt as _Iterop_PatchDependencyTable,
2942
+ Bt as _Iterop_PutDependencyTable,
2947
2943
  Lt as _Iterop_businessTableSearchInRows,
2948
2944
  Jt as _Iterop_createBusinessTable,
2949
2945
  kt as _Iterop_getAllBusinessTables,
2950
2946
  vt as _Iterop_getOneBusinessTable,
2951
2947
  At as _Iterop_getOneBusinessTableRows,
2952
- jt as _Iterop_jwtUser,
2948
+ Dt as _Iterop_jwtUser,
2953
2949
  Gt as _Iterop_runProcess,
2954
2950
  Mt as _Iterop_updateBusinessTable,
2955
2951
  ke as _getMe,
2956
2952
  Z as _getPlateformInfos,
2957
- je as _getPlatformServices,
2958
- P as _getServiceUrl,
2953
+ De as _getPlatformServices,
2954
+ M as _getServiceUrl,
2959
2955
  ve as _getServiceUrl_3DPassport,
2960
2956
  Rt as _getServiceUrl_Iterop,
2961
2957
  m as _httpCallAuthenticated,
2962
2958
  Fe as _setDraggable,
2963
- De as _setDroppable,
2959
+ je as _setDroppable,
2964
2960
  Re as _setupTagger,
2965
2961
  ft as addTagToDoc,
2966
2962
  H as chunkArray,
@@ -2969,13 +2965,13 @@ export {
2969
2965
  Me as createUserGroups,
2970
2966
  pe as dataMixing,
2971
2967
  Ke as deleteUserGroups,
2972
- xe as findAdresse,
2968
+ Ie as findAdresse,
2973
2969
  ot as getAllContextSecurity,
2974
2970
  te as getCSRFToken,
2975
- Ne as getCommunes,
2971
+ xe as getCommunes,
2976
2972
  Je as getComplementUG,
2977
2973
  rt as getDataFrom3DSpace,
2978
- Ie as getDataFromGouvFr,
2974
+ Ne as getDataFromGouvFr,
2979
2975
  pt as getDatasByTenant,
2980
2976
  lt as getDatasFrom3DSpace,
2981
2977
  ct as getDownloadDocument,
@@ -2983,8 +2979,8 @@ export {
2983
2979
  Ge as getUserGroupsList,
2984
2980
  ee as getUsersGroupRules,
2985
2981
  ut as get_3DSpace_csrf,
2986
- Be as patchUserGroups,
2987
- qe as patchUserGroupsControl,
2982
+ qe as patchUserGroups,
2983
+ Be as patchUserGroupsControl,
2988
2984
  dt as pushDataIn3DSpace,
2989
2985
  Ee as readUserGroupControl,
2990
2986
  mt as removeTagToDoc,