@beam3_dev/api_module 0.0.340 → 0.0.341

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
@@ -34,7 +34,7 @@ const z = {
34
34
  b3Edit8: "#616161",
35
35
  b3Edit9: "#795548"
36
36
  };
37
- async function Ue(e, n = void 0, t = void 0) {
37
+ async function xe(e, n = void 0, t = void 0) {
38
38
  const i = parseInt(e);
39
39
  await fetch(
40
40
  "https://apicarto.ign.fr/api/codes-postaux/communes/" + i,
@@ -50,7 +50,7 @@ async function Ue(e, n = void 0, t = void 0) {
50
50
  t && t(s), console.error("Erreur : " + s);
51
51
  });
52
52
  }
53
- async function xe(e, n = void 0, t = void 0) {
53
+ async function Ie(e, n = void 0, t = void 0) {
54
54
  e = encodeURIComponent(e), await fetch(
55
55
  "https://api-adresse.data.gouv.fr/search/?q=" + e + "&limit=15",
56
56
  {
@@ -67,13 +67,13 @@ async function xe(e, n = void 0, t = void 0) {
67
67
  }
68
68
  async function Ne(e, n = z) {
69
69
  let t = T.now().year;
70
- const i = e, s = [], r = (a) => {
71
- for (let c in a)
72
- s.push({ date: c, comment: a[c] });
70
+ const i = e, s = [], r = (o) => {
71
+ for (let c in o)
72
+ s.push({ date: c, comment: o[c] });
73
73
  };
74
- for (let a = t; a <= t + 1; a++)
74
+ for (let o = t; o <= t + 1; o++)
75
75
  await fetch(
76
- "https://calendrier.api.gouv.fr/jours-feries/metropole/" + a + ".json",
76
+ "https://calendrier.api.gouv.fr/jours-feries/metropole/" + o + ".json",
77
77
  {
78
78
  method: "GET",
79
79
  headers: {
@@ -84,30 +84,30 @@ async function Ne(e, n = z) {
84
84
  r(c);
85
85
  }).catch((c) => console.error("Erreur : " + c));
86
86
  return (() => {
87
- const a = i.length === 0 ? {
87
+ const o = i.length === 0 ? {
88
88
  events: []
89
89
  } : i;
90
90
  for (let c of s)
91
- a.events.findIndex(
91
+ o.events.findIndex(
92
92
  (u) => u.start === T.fromISO(c.date).toISODate() && u.name === "Férié : " + c.comment
93
- ) === -1 && a.events.push({
93
+ ) === -1 && o.events.push({
94
94
  name: "Férié : " + c.comment,
95
95
  start: T.fromISO(c.date).toISODate(),
96
96
  end: T.fromISO(c.date).toISODate(),
97
97
  color: n.b3BusinnessDays,
98
98
  timed: !1
99
99
  });
100
- return a;
100
+ return o;
101
101
  })();
102
102
  }
103
103
  function H(e, n, t) {
104
- const { credentials: i, myArray: s, chunk: r, fn_to_call: o } = e, a = [];
104
+ const { credentials: i, myArray: s, chunk: r, fn_to_call: a } = e, o = [];
105
105
  for (let c = 0; c < s.length; c += r) {
106
106
  const d = s.slice(c, c + r);
107
- a.push(d);
107
+ o.push(d);
108
108
  }
109
109
  Q(
110
- { credentials: i, chunks: a, initLoop: 0, fn: o },
110
+ { credentials: i, chunks: o, initLoop: 0, fn: a },
111
111
  (c) => {
112
112
  n && n(c);
113
113
  },
@@ -117,12 +117,12 @@ function H(e, n, t) {
117
117
  );
118
118
  }
119
119
  function Q(e, n, t) {
120
- const { credentials: i, chunks: s, initLoop: r, fn: o } = e, a = (c) => {
121
- o(
120
+ const { credentials: i, chunks: s, initLoop: r, fn: a } = e, o = (c) => {
121
+ a(
122
122
  i,
123
123
  s[c],
124
124
  () => {
125
- c++, c < s.length && a(c);
125
+ c++, c < s.length && o(c);
126
126
  },
127
127
  (d) => {
128
128
  n && n(d);
@@ -132,9 +132,9 @@ function Q(e, n, t) {
132
132
  }
133
133
  );
134
134
  };
135
- a(r);
135
+ o(r);
136
136
  }
137
- async function Ie(e, n, t = !0) {
137
+ async function Re(e, n, t = !0) {
138
138
  const i = e.events.findIndex((s) => s.uuid === n.uuid);
139
139
  return i === -1 ? e.events.push(n) : t ? e.events[i] = n : e.events.splice(i, 1), e.length > 0 && e.sort((s, r) => s.start - r.start), e;
140
140
  }
@@ -143,7 +143,7 @@ function m(e, n) {
143
143
  t.authenticatedRequest(e, n);
144
144
  });
145
145
  }
146
- function Re(e, n, t) {
146
+ function Fe(e, n, t) {
147
147
  $(["DS/DataDragAndDrop/DataDragAndDrop"], (i) => {
148
148
  i.draggable(e, {
149
149
  data: n,
@@ -151,7 +151,7 @@ function Re(e, n, t) {
151
151
  });
152
152
  });
153
153
  }
154
- function Fe(e, n = void 0) {
154
+ function ke(e, n = void 0) {
155
155
  $(["DS/TagNavigatorProxy/TagNavigatorProxy"], (t) => {
156
156
  let i;
157
157
  i === void 0 && (i = t.createProxy({
@@ -195,7 +195,7 @@ function Z() {
195
195
  };
196
196
  }), e;
197
197
  }
198
- function ke(e, n = void 0, t = void 0) {
198
+ function De(e, n = void 0, t = void 0) {
199
199
  if (e.tenant) {
200
200
  const i = `https://${e.tenant}-eu1.iam.3dexperience.3ds.com/api/authenticated/user/me?xrequestedwith=xmlhttprequest`;
201
201
  m(i, {
@@ -216,8 +216,8 @@ function J(e, n = void 0, t = void 0) {
216
216
  onComplete(s) {
217
217
  const r = typeof s == "string" ? JSON.parse(s) : s;
218
218
  if (r && "platforms" in r) {
219
- const o = r.platforms.find((a) => a.id === e.tenant.toUpperCase());
220
- n && o ? n(o) : t && t("_getServiceUrl return listServiceUrl = undefined");
219
+ const a = r.platforms.find((o) => o.id === e.tenant.toUpperCase());
220
+ n && a ? n(a) : t && t("_getServiceUrl return listServiceUrl = undefined");
221
221
  } else
222
222
  t && t("_getServiceUrl return oResponse = undefined");
223
223
  },
@@ -234,8 +234,8 @@ function Ae(e, n = void 0, t = void 0) {
234
234
  onComplete(s) {
235
235
  const r = JSON.parse(s);
236
236
  if (Array.isArray(r) && r.length > 0) {
237
- const o = `${r[0].services[0].url}`;
238
- n && n(o);
237
+ const a = `${r[0].services[0].url}`;
238
+ n && n(a);
239
239
  }
240
240
  },
241
241
  onFailure(s) {
@@ -244,7 +244,7 @@ function Ae(e, n = void 0, t = void 0) {
244
244
  });
245
245
  }
246
246
  }
247
- function De(e, n = void 0, t = void 0) {
247
+ function Pe(e, n = void 0, t = void 0) {
248
248
  if (e.tenant) {
249
249
  const i = `https://eu1-registry.3dexperience.3ds.com/api/v1/platform/instance?id=${e.tenant.toLowerCase()}`;
250
250
  m(i, {
@@ -258,7 +258,7 @@ function De(e, n = void 0, t = void 0) {
258
258
  });
259
259
  }
260
260
  }
261
- function Pe(e, n, t) {
261
+ function Le(e, n, t) {
262
262
  const i = {
263
263
  base: `${e.space}`,
264
264
  uri: "/resources/AppsMngt/api/custom/applications",
@@ -271,51 +271,51 @@ function Pe(e, n, t) {
271
271
  "Content-Type": "application/json",
272
272
  Accept: "application/json"
273
273
  },
274
- onComplete(r, o, a) {
274
+ onComplete(r, a, o) {
275
275
  const c = JSON.parse(r), d = c.data.map((u) => {
276
276
  const p = u.attributes.name, f = u.id;
277
277
  return { name: p, id: f };
278
278
  });
279
279
  n && n(d, c);
280
280
  },
281
- onFailure(r, o) {
282
- const a = r;
283
- a.msg = o.errormsg, a.errCode = o.errorcode, t && t(a);
281
+ onFailure(r, a) {
282
+ const o = r;
283
+ o.msg = a.errormsg, o.errCode = a.errorcode, t && t(o);
284
284
  }
285
285
  });
286
286
  }
287
- function Le(e, n = void 0, t = void 0) {
287
+ function Je(e, n = void 0, t = void 0) {
288
288
  let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
289
289
  m(i, {
290
- onComplete(s, r, o) {
291
- const a = JSON.parse(s);
292
- console.log("_AppMngt_get_users => ", a), n && n(a);
290
+ onComplete(s, r, a) {
291
+ const o = JSON.parse(s);
292
+ console.log("_AppMngt_get_users => ", o), n && n(o);
293
293
  },
294
294
  onFailure(s, r) {
295
- const o = s;
296
- o.msg = r.errormsg, o.errCode = r.errorcode, t && t(o);
295
+ const a = s;
296
+ a.msg = r.errormsg, a.errCode = r.errorcode, t && t(a);
297
297
  }
298
298
  });
299
299
  }
300
- function Je(e, n, t = void 0, i = void 0) {
300
+ function Me(e, n, t = void 0, i = void 0) {
301
301
  let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${n}`;
302
302
  m(s, {
303
- onComplete(r, o, a) {
303
+ onComplete(r, a, o) {
304
304
  const c = JSON.parse(r);
305
305
  t && t(c);
306
306
  },
307
- onFailure(r, o) {
308
- const a = r;
309
- a.msg = o.errormsg, a.errCode = o.errorcode, i && i(a);
307
+ onFailure(r, a) {
308
+ const o = r;
309
+ o.msg = a.errormsg, o.errCode = a.errorcode, i && i(o);
310
310
  }
311
311
  });
312
312
  }
313
- const N = {
313
+ const I = {
314
314
  "Content-Type": "application/json",
315
315
  Accept: "application/json,text/javascript,*/*"
316
316
  };
317
- function Me(e, n, t = void 0, i = void 0) {
318
- const { space: s, currentUser: r } = e, a = `${s}${{
317
+ function Ge(e, n, t = void 0, i = void 0) {
318
+ const { space: s, currentUser: r } = e, o = `${s}${{
319
319
  URIUGr: "/3drdfpersist/resources/v1/usersgroup"
320
320
  }.URIUGr}`, c = {
321
321
  groups: [
@@ -329,9 +329,9 @@ function Me(e, n, t = void 0, i = void 0) {
329
329
  }
330
330
  ]
331
331
  };
332
- m(a, {
332
+ m(o, {
333
333
  method: "POST",
334
- headers: N,
334
+ headers: I,
335
335
  data: JSON.stringify(c),
336
336
  onComplete(d) {
337
337
  t && t(JSON.parse(d));
@@ -343,8 +343,8 @@ function Me(e, n, t = void 0, i = void 0) {
343
343
  }
344
344
  });
345
345
  }
346
- function Ge(e, n, t = void 0, i = void 0) {
347
- const { space: s, tenant: r } = e, o = s, a = `/3drdfpersist/v1/resources/${n}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${o}${a}${c}`;
346
+ function Be(e, n, t = void 0, i = void 0) {
347
+ const { space: s, tenant: r } = e, a = s, o = `/3drdfpersist/v1/resources/${n}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${a}${o}${c}`;
348
348
  m(d, {
349
349
  opts: {
350
350
  method: "GET",
@@ -363,10 +363,10 @@ function Ge(e, n, t = void 0, i = void 0) {
363
363
  });
364
364
  }
365
365
  function ee(e, n = void 0, t = void 0) {
366
- const { _usersgroup: i, tenant: s } = e, r = i, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${s}`, c = {
366
+ const { _usersgroup: i, tenant: s } = e, r = i, a = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", o = `?tenant=dstenant:${s}`, c = {
367
367
  method: "GET",
368
368
  Accept: "application/json,*/*,test/javascript"
369
- }, d = `${r}${o}${a}`;
369
+ }, d = `${r}${a}${o}`;
370
370
  m(d, {
371
371
  OPTsH: c,
372
372
  onComplete(u) {
@@ -378,10 +378,10 @@ function ee(e, n = void 0, t = void 0) {
378
378
  }
379
379
  });
380
380
  }
381
- function Be(e, n = void 0, t = void 0) {
381
+ function Ee(e, n = void 0, t = void 0) {
382
382
  const { _usersgroup: i, currentUser: s, numMax: r } = e;
383
383
  r || (r = 50);
384
- const o = "/3drdfpersist/resources/v1/usersgroup", a = "?select=uri,title,owner,members", c = `&top=${r}`, d = `${i}${o}${a}${c}`, p = { method: "GET", headers: {
384
+ const a = "/3drdfpersist/resources/v1/usersgroup", o = "?select=uri,title,owner,members", c = `&top=${r}`, d = `${i}${a}${o}${c}`, p = { method: "GET", headers: {
385
385
  "Content-Type": "application/json",
386
386
  Accept: "application/json,text/javascript,*/*"
387
387
  } };
@@ -420,7 +420,7 @@ function Be(e, n = void 0, t = void 0) {
420
420
  t(l);
421
421
  }
422
422
  }
423
- function Ee(e, n, t) {
423
+ function Ke(e, n, t) {
424
424
  const { _usersgroup: i, list_uris: s } = e;
425
425
  if (!s || s.length === 0) {
426
426
  t({ msg: "getUserGroupsByURIList: lists_uri is empty or undefined" });
@@ -430,20 +430,20 @@ function Ee(e, n, t) {
430
430
  baseUrl: i,
431
431
  uri: "/3drdfpersist/resources/v1/usersgroup/groups",
432
432
  opt: "?select=uri,title,owner,members"
433
- }, o = `${r.baseUrl}${r.uri}${r.opt}`, a = {
433
+ }, a = `${r.baseUrl}${r.uri}${r.opt}`, o = {
434
434
  method: "POST",
435
- headers: N,
435
+ headers: I,
436
436
  data: JSON.stringify({ groups: s })
437
437
  };
438
438
  try {
439
- m(o, {
440
- ...a,
439
+ m(a, {
440
+ ...o,
441
441
  onComplete(c) {
442
442
  n && n(JSON.parse(c));
443
443
  },
444
444
  onFailure(c, d) {
445
445
  const u = {
446
- sendOptions: a,
446
+ sendOptions: o,
447
447
  error: new Error("Erreur sur la fonction getUserGroupsByURIList()", {
448
448
  cause: c
449
449
  }),
@@ -455,7 +455,7 @@ function Ee(e, n, t) {
455
455
  });
456
456
  } catch (c) {
457
457
  const d = {
458
- sendOptions: a,
458
+ sendOptions: o,
459
459
  infoError: c,
460
460
  fonction: "getUserGroupsByURIList()",
461
461
  error: new Error("Erreur sur la fonction getUserGroupsByURIList()", {
@@ -465,7 +465,7 @@ function Ee(e, n, t) {
465
465
  t && t(d);
466
466
  }
467
467
  }
468
- function Ke(e, n, t) {
468
+ function qe(e, n, t) {
469
469
  const { _usersgroup: i, list_emails: s } = e;
470
470
  if (!s || s.length === 0) {
471
471
  t({
@@ -477,14 +477,14 @@ function Ke(e, n, t) {
477
477
  baseUrl: i,
478
478
  uri: "/3drdfpersist/resources/v1/usersgroup/users/locate",
479
479
  opt: "?person_ident=email"
480
- }, o = `${r.baseUrl}${r.uri}${r.opt}`, a = {
480
+ }, a = `${r.baseUrl}${r.uri}${r.opt}`, o = {
481
481
  method: "POST",
482
- headers: N,
482
+ headers: I,
483
483
  data: JSON.stringify({ users: s })
484
484
  };
485
485
  try {
486
- m(o, {
487
- ...a,
486
+ m(a, {
487
+ ...o,
488
488
  onComplete(c) {
489
489
  if (n) {
490
490
  const d = JSON.parse(c);
@@ -493,7 +493,7 @@ function Ke(e, n, t) {
493
493
  },
494
494
  onFailure(c, d) {
495
495
  const u = {
496
- sendOptions: a,
496
+ sendOptions: o,
497
497
  error: new Error(
498
498
  "Erreur sur la fonction getUserGroupsByEmailList()",
499
499
  {
@@ -508,7 +508,7 @@ function Ke(e, n, t) {
508
508
  });
509
509
  } catch (c) {
510
510
  const d = {
511
- sendOptions: a,
511
+ sendOptions: o,
512
512
  infoError: c,
513
513
  fonction: "getUserGroupsByEmailList()",
514
514
  error: new Error("Erreur sur la fonction getUserGroupsByEmailList()", {
@@ -518,24 +518,24 @@ function Ke(e, n, t) {
518
518
  t && t(d);
519
519
  }
520
520
  }
521
- function qe(e, n) {
521
+ function Xe(e, n) {
522
522
  const { space: t } = e, s = `${t}/3drdfpersist/resources/v1/usersgroup/${n}`;
523
523
  m(s, {
524
524
  method: "DELETE"
525
525
  });
526
526
  }
527
- function Xe(e, n, t, i = void 0, s = void 0) {
528
- const { space: r, tenant: o } = e, a = {
527
+ function We(e, n, t, i = void 0, s = void 0) {
528
+ const { space: r, tenant: a } = e, o = {
529
529
  URITI: "/3drdfpersist/resources/v1/template-instances",
530
530
  URIUGr: "/3drdfpersist/resources/v1/usersgroup",
531
531
  nextURICh: "/characteristics",
532
532
  nextURIGr: "/group",
533
533
  nexURImem: "/members",
534
534
  OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
535
- OPTsTenant: `tenant=dstenant:${o}`
536
- }, c = t, d = `${r}${a.URIUGr}/${n}`, u = JSON.stringify(c);
535
+ OPTsTenant: `tenant=dstenant:${a}`
536
+ }, c = t, d = `${r}${o.URIUGr}/${n}`, u = JSON.stringify(c);
537
537
  m(d, {
538
- headers: N,
538
+ headers: I,
539
539
  method: "PATCH",
540
540
  data: u,
541
541
  type: "json",
@@ -547,11 +547,11 @@ function Xe(e, n, t, i = void 0, s = void 0) {
547
547
  }
548
548
  });
549
549
  }
550
- function We(e, n, t, i = void 0, s = void 0) {
551
- const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${n}/sharing`;
552
- m(a, {
550
+ function Ve(e, n, t, i = void 0, s = void 0) {
551
+ const { space: r } = e, o = `${r}/3drdfpersist/resources/v1/usersgroup/${n}/sharing`;
552
+ m(o, {
553
553
  method: "PATCH",
554
- headers: N,
554
+ headers: I,
555
555
  data: JSON.stringify(t),
556
556
  type: "json",
557
557
  onComplete(d) {
@@ -562,9 +562,9 @@ function We(e, n, t, i = void 0, s = void 0) {
562
562
  }
563
563
  });
564
564
  }
565
- function Ve(e, n, t = void 0, i = void 0) {
566
- const { space: s } = e, o = `${s}/3drdfpersist/resources/v1/usersgroup/${n}/sharing`;
567
- m(o, {
565
+ function Ye(e, n, t = void 0, i = void 0) {
566
+ const { space: s } = e, a = `${s}/3drdfpersist/resources/v1/usersgroup/${n}/sharing`;
567
+ m(a, {
568
568
  opts: {
569
569
  method: "GET",
570
570
  headers: {
@@ -587,8 +587,8 @@ async function te(e, n, t) {
587
587
  onComplete(s) {
588
588
  s = JSON.parse(s), n && n(s.csrf);
589
589
  },
590
- onFailure(s, r, o) {
591
- t && t({ error: s, headers: r, xhr: o });
590
+ onFailure(s, r, a) {
591
+ t && t({ error: s, headers: r, xhr: a });
592
592
  }
593
593
  });
594
594
  }
@@ -604,11 +604,11 @@ var se = function(e, n, t, i) {
604
604
  return s;
605
605
  var r = /\+/g;
606
606
  e = e.split(n);
607
- var o = 1e3;
608
- i && typeof i.maxKeys == "number" && (o = i.maxKeys);
609
- var a = e.length;
610
- o > 0 && a > o && (a = o);
611
- for (var c = 0; c < a; ++c) {
607
+ var a = 1e3;
608
+ i && typeof i.maxKeys == "number" && (a = i.maxKeys);
609
+ var o = e.length;
610
+ a > 0 && o > a && (o = a);
611
+ for (var c = 0; c < o; ++c) {
612
612
  var d = e[c].replace(r, "%20"), u = d.indexOf(t), p, f, l, g;
613
613
  u >= 0 ? (p = d.substr(0, u), f = d.substr(u + 1)) : (p = d, f = ""), l = decodeURIComponent(p), g = decodeURIComponent(f), ne(s, l) ? Array.isArray(s[l]) ? s[l].push(g) : s[l] = [s[l], g] : s[l] = g;
614
614
  }
@@ -627,8 +627,8 @@ var se = function(e, n, t, i) {
627
627
  }, ie = function(e, n, t, i) {
628
628
  return n = n || "&", t = t || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(s) {
629
629
  var r = encodeURIComponent(U(s)) + t;
630
- return Array.isArray(e[s]) ? e[s].map(function(o) {
631
- return r + encodeURIComponent(U(o));
630
+ return Array.isArray(e[s]) ? e[s].map(function(a) {
631
+ return r + encodeURIComponent(U(a));
632
632
  }).join(n) : r + encodeURIComponent(U(e[s]));
633
633
  }).filter(Boolean).join(n) : i ? encodeURIComponent(U(i)) + t + encodeURIComponent(U(e)) : "";
634
634
  };
@@ -642,22 +642,22 @@ async function M(e, n = void 0, t = void 0, i = void 0) {
642
642
  }
643
643
  const r = s + `/resources/v1/modeler/documents/${n}`;
644
644
  m(r, {
645
- onComplete(o, a, c) {
646
- const d = JSON.parse(o);
645
+ onComplete(a, o, c) {
646
+ const d = JSON.parse(a);
647
647
  t && t(d);
648
648
  },
649
- onFailure(o) {
650
- i && i(o);
649
+ onFailure(a) {
650
+ i && i(a);
651
651
  }
652
652
  });
653
653
  }
654
- async function Ye(e, n = void 0, t = void 0, i = void 0) {
654
+ async function oe(e, n = void 0, t = void 0, i = void 0) {
655
655
  const s = e.space;
656
656
  if (n === void 0) {
657
657
  console.log("Le paramètre docids est obligatoire");
658
658
  return;
659
659
  }
660
- let r = `${s}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = x.stringify({
660
+ let r = `${s}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, a = x.stringify({
661
661
  $ids: n.toString().replace('"', "").replace("[", "").replace("]", "")
662
662
  });
663
663
  m(r, {
@@ -665,13 +665,13 @@ async function Ye(e, n = void 0, t = void 0, i = void 0) {
665
665
  headers: {
666
666
  "Content-Type": "application/x-www-form-urlencoded"
667
667
  },
668
- data: o,
669
- onComplete(a, c, d) {
670
- const u = JSON.parse(a);
668
+ data: a,
669
+ onComplete(o, c, d) {
670
+ const u = JSON.parse(o);
671
671
  t && t(u);
672
672
  },
673
- onFailure(a) {
674
- i && i(a);
673
+ onFailure(o) {
674
+ i && i(o);
675
675
  }
676
676
  });
677
677
  }
@@ -679,16 +679,16 @@ function R(e, n = void 0, t = void 0) {
679
679
  if (e.objID && e.objID !== "") {
680
680
  let i = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
681
681
  m(i, {
682
- onComplete(s, r, o) {
683
- const a = JSON.parse(s);
684
- e.success = !0, e.token = a?.csrf?.value, e.datas = a?.data[0], n && n(e);
682
+ onComplete(s, r, a) {
683
+ const o = JSON.parse(s);
684
+ e.success = !0, e.token = o?.csrf?.value, e.datas = o?.data[0], n && n(e);
685
685
  },
686
686
  onFailure(s) {
687
687
  t && t(s);
688
688
  }
689
689
  });
690
690
  } else
691
- O(
691
+ b(
692
692
  e,
693
693
  (i) => {
694
694
  console.log("_3DSpace_get_csrf / _3DSpace_csrf", i), e.token = i, n && n(e);
@@ -698,26 +698,26 @@ function R(e, n = void 0, t = void 0) {
698
698
  }
699
699
  );
700
700
  }
701
- function O(e, n = void 0, t = void 0) {
701
+ function b(e, n = void 0, t = void 0) {
702
702
  if (e.space) {
703
703
  const i = e.space + "/resources/v1/application/CSRF";
704
704
  m(i, {
705
- onComplete(s, r, o) {
706
- const a = JSON.parse(s);
707
- n && n(a.csrf.value);
705
+ onComplete(s, r, a) {
706
+ const o = JSON.parse(s);
707
+ n && n(o.csrf.value);
708
708
  },
709
- onFailure(s, r, o) {
709
+ onFailure(s, r, a) {
710
710
  t && t({
711
711
  response: s,
712
712
  headers: r,
713
- xhr: o
713
+ xhr: a
714
714
  });
715
715
  }
716
716
  });
717
717
  } else
718
718
  t && t("ERROR : url du 3DSpace non défini.");
719
719
  }
720
- function v(e, n = void 0, t = void 0) {
720
+ function j(e, n = void 0, t = void 0) {
721
721
  let i = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
722
722
  R(
723
723
  e,
@@ -727,12 +727,12 @@ function v(e, n = void 0, t = void 0) {
727
727
  headers: {
728
728
  ENO_CSRF_TOKEN: e.token
729
729
  },
730
- onComplete(r, o) {
730
+ onComplete(r, a) {
731
731
  const c = JSON.parse(r).data[0].dataelements.ticketURL;
732
- n && n(c, o);
732
+ n && n(c, a);
733
733
  },
734
- onFailure(r, o) {
735
- console.warn("☠️ error => ", r, o), t && t(r, o);
734
+ onFailure(r, a) {
735
+ console.warn("☠️ error => ", r, a), t && t(r, a);
736
736
  }
737
737
  });
738
738
  },
@@ -748,23 +748,23 @@ function ze(e, n, t = void 0, i = void 0, s = void 0) {
748
748
  headers: {
749
749
  ENO_CSRF_TOKEN: t
750
750
  },
751
- onComplete(o) {
752
- let a = JSON.parse(o);
753
- if (console.log("☠️ info => ", a), a.success === !0)
751
+ onComplete(a) {
752
+ let o = JSON.parse(a);
753
+ if (console.log("☠️ info => ", o), o.success === !0)
754
754
  try {
755
- const c = a.data[0].dataelements.ticketURL;
755
+ const c = o.data[0].dataelements.ticketURL;
756
756
  i && i(c);
757
757
  } catch (c) {
758
758
  s && s(c);
759
759
  }
760
760
  },
761
- onFailure(o) {
762
- s && s(o);
761
+ onFailure(a) {
762
+ s && s(a);
763
763
  }
764
764
  });
765
765
  }
766
- function G(e, n, t, i, s, r = void 0, o = void 0) {
767
- const a = () => oe(
766
+ function G(e, n, t, i, s, r = void 0, a = void 0) {
767
+ const o = () => ae(
768
768
  e,
769
769
  n,
770
770
  t,
@@ -772,20 +772,20 @@ function G(e, n, t, i, s, r = void 0, o = void 0) {
772
772
  s,
773
773
  e.token,
774
774
  r,
775
- o
775
+ a
776
776
  );
777
- e.token ? a() : R(
777
+ e.token ? o() : R(
778
778
  e,
779
779
  n,
780
780
  (c) => {
781
781
  console.log(
782
782
  "_3DSpace_file_update | _3DSpace_get_csrf| onDone | result",
783
783
  c
784
- ), e.token = c, a();
784
+ ), e.token = c, o();
785
785
  }
786
786
  );
787
787
  }
788
- function oe(e, n, t, i, s, r, o = void 0, a = void 0) {
788
+ function ae(e, n, t, i, s, r, a = void 0, o = void 0) {
789
789
  const c = e.space + `/resources/v1/modeler/documents/files/CheckinTicket?tenant=${e.tenant.toUpperCase()}&e6w-lang=fr&e6w-timezone=-60&xrequestedwith=xmlhttprequest`;
790
790
  m(c, {
791
791
  method: "PUT",
@@ -835,10 +835,10 @@ function oe(e, n, t, i, s, r, o = void 0, a = void 0) {
835
835
  }),
836
836
  type: "json",
837
837
  onComplete(_) {
838
- o && o(_);
838
+ a && a(_);
839
839
  },
840
840
  onFailure(_) {
841
- a && a(_);
841
+ o && o(_);
842
842
  }
843
843
  };
844
844
  e.tenant.toUpperCase(), m(
@@ -846,7 +846,7 @@ function oe(e, n, t, i, s, r, o = void 0, a = void 0) {
846
846
  w
847
847
  );
848
848
  }, y.onFailure = function(S) {
849
- a && a(S);
849
+ o && o(S);
850
850
  }, y.timeout = 0, m(l.ticketURL, y);
851
851
  }
852
852
  });
@@ -858,8 +858,8 @@ async function He(e, n, t = void 0, i = void 0) {
858
858
  console.warn("Error: docId undefined"), i && i("Error: docId undefined");
859
859
  return;
860
860
  }
861
- let o = `${e.space}/resources/v1/modeler/documents/${n}`;
862
- const a = JSON.stringify({
861
+ let a = `${e.space}/resources/v1/modeler/documents/${n}`;
862
+ const o = JSON.stringify({
863
863
  data: [
864
864
  {
865
865
  dataelements: {
@@ -869,12 +869,12 @@ async function He(e, n, t = void 0, i = void 0) {
869
869
  }
870
870
  ]
871
871
  });
872
- m(o, {
872
+ m(a, {
873
873
  method: "PUT",
874
874
  headers: {
875
875
  ENO_CSRF_TOKEN: e.token
876
876
  },
877
- data: a,
877
+ data: o,
878
878
  type: "json",
879
879
  onComplete(c) {
880
880
  t && t(c);
@@ -885,8 +885,8 @@ async function He(e, n, t = void 0, i = void 0) {
885
885
  });
886
886
  }
887
887
  async function Qe(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0) {
888
- let { tenant: o, cs_name: a } = e;
889
- if (!o && !a) {
888
+ let { tenant: a, cs_name: o } = e;
889
+ if (!a && !o) {
890
890
  s && s("Credentials undefined");
891
891
  return;
892
892
  }
@@ -895,11 +895,11 @@ async function Qe(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0)
895
895
  return;
896
896
  }
897
897
  const c = T.now().ts;
898
- let d = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(
899
- a
900
- )}/ticket?id=${c}&tenant=${o.toUpperCase()}&xrequestedwith=xmlhttprequest`;
898
+ let d = `https://${a.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(
899
+ o
900
+ )}/ticket?id=${c}&tenant=${a.toUpperCase()}&xrequestedwith=xmlhttprequest`;
901
901
  m(
902
- `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/session?tenant=${o.toUpperCase()}&xrequestedwith=xmlhttprequest`,
902
+ `https://${a.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/session?tenant=${a.toUpperCase()}&xrequestedwith=xmlhttprequest`,
903
903
  {
904
904
  method: "GET",
905
905
  onComplete(u) {
@@ -921,12 +921,12 @@ async function Qe(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0)
921
921
  t,
922
922
  n,
923
923
  (_) => {
924
- const j = new DOMParser().parseFromString(
924
+ const k = new DOMParser().parseFromString(
925
925
  _,
926
926
  "text/html"
927
- ).body.firstChild.querySelector("input").getAttributeNode("value").value, k = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(a)}/contents?receipt=${encodeURIComponent(j)}`;
927
+ ).body.firstChild.querySelector("input").getAttributeNode("value").value, v = `https://${a.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(o)}/contents?receipt=${encodeURIComponent(k)}`;
928
928
  let W = /(?:\.([^.]+))?$/.exec(n)[1];
929
- const A = JSON.stringify({
929
+ const D = JSON.stringify({
930
930
  actions: [],
931
931
  businessobj: {
932
932
  description: e?.description ? e?.description : "",
@@ -940,25 +940,25 @@ async function Qe(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0)
940
940
  title: W ? n.split(".").slice(0, -1).join(".") : n,
941
941
  type: {}
942
942
  },
943
- collabspace: a
943
+ collabspace: o
944
944
  });
945
- m(k, {
945
+ m(v, {
946
946
  method: "POST",
947
947
  headers: {
948
948
  Accept: "application/json",
949
949
  "Content-Type": "application/json;charset=UTF-8",
950
950
  "X-DS-CSRFTOKEN": p
951
951
  },
952
- data: A,
952
+ data: D,
953
953
  type: "json",
954
- onComplete(I, Ce, Oe) {
955
- i && i(I);
954
+ onComplete(N, be, Oe) {
955
+ i && i(N);
956
956
  },
957
- onFailure(I) {
957
+ onFailure(N) {
958
958
  console.warn(
959
959
  "_3DSpace_Upload_Doc | pushFileInFcs | onFailure",
960
- { url: k, bodyRequest: A, err: I }
961
- ), s && s(I);
960
+ { url: v, bodyRequest: D, err: N }
961
+ ), s && s(N);
962
962
  }
963
963
  });
964
964
  },
@@ -993,13 +993,13 @@ async function Ze(e, n, t, i = void 0, s = void 0) {
993
993
  e,
994
994
  n,
995
995
  (r) => {
996
- const o = r.data[0].relateddata.files[0].id, a = r.data[0].relateddata.files[0].dataelements.title;
996
+ const a = r.data[0].relateddata.files[0].id, o = r.data[0].relateddata.files[0].dataelements.title;
997
997
  G(
998
998
  e,
999
999
  n,
1000
- o,
1001
- t,
1002
1000
  a,
1001
+ t,
1002
+ o,
1003
1003
  (c) => {
1004
1004
  i && i(c);
1005
1005
  },
@@ -1014,16 +1014,16 @@ async function Ze(e, n, t, i = void 0, s = void 0) {
1014
1014
  );
1015
1015
  }
1016
1016
  async function et(e, n, t, i, s = void 0, r = void 0) {
1017
- ae(
1017
+ re(
1018
1018
  e,
1019
- (o) => {
1020
- o?.items >= 1 && o.data.forEach((a) => {
1019
+ (a) => {
1020
+ a?.items >= 1 && a.data.forEach((o) => {
1021
1021
  B(
1022
- a,
1022
+ o,
1023
1023
  n,
1024
1024
  t,
1025
1025
  (c) => {
1026
- re(
1026
+ ce(
1027
1027
  e,
1028
1028
  c,
1029
1029
  t,
@@ -1041,10 +1041,10 @@ async function et(e, n, t, i, s = void 0, r = void 0) {
1041
1041
  );
1042
1042
  });
1043
1043
  },
1044
- (o) => console.warn(o)
1044
+ (a) => console.warn(a)
1045
1045
  );
1046
1046
  }
1047
- function ae(e, n = void 0, t = void 0) {
1047
+ function re(e, n = void 0, t = void 0) {
1048
1048
  if (e?.space && e.token && e.ctx) {
1049
1049
  let i = `${e.space}/resources/v1/modeler/documents/files/CheckinTicket`;
1050
1050
  m(i, {
@@ -1055,7 +1055,7 @@ function ae(e, n = void 0, t = void 0) {
1055
1055
  "Content-Type": "application/json",
1056
1056
  SecurityContext: e.ctx
1057
1057
  },
1058
- onComplete(s, r, o) {
1058
+ onComplete(s, r, a) {
1059
1059
  try {
1060
1060
  s = JSON.parse(s);
1061
1061
  } catch {
@@ -1071,13 +1071,13 @@ function ae(e, n = void 0, t = void 0) {
1071
1071
  }
1072
1072
  function B(e, n, t, i = void 0, s = void 0, r = void 0) {
1073
1073
  console.log("pushFileInFcs", { fcs__jobTicket: e, fileData: n, fileName: t });
1074
- let o = new FormData();
1074
+ let a = new FormData();
1075
1075
  n instanceof Blob || (n = new Blob([n], {
1076
1076
  type: "text/plain"
1077
- })), o.append("__fcs__jobTicket", e.dataelements.ticket), o.append("file-name", t), o.append("file_0", n, t), o.append("file-title", t), o.append("file-description", t);
1078
- let a = e.dataelements.ticketURL;
1077
+ })), a.append("__fcs__jobTicket", e.dataelements.ticket), a.append("file-name", t), a.append("file_0", n, t), a.append("file-title", t), a.append("file-description", t);
1078
+ let o = e.dataelements.ticketURL;
1079
1079
  const c = new XMLHttpRequest();
1080
- c.open("POST", a, !0), c.upload.onprogress = function(d) {
1080
+ c.open("POST", o, !0), c.upload.onprogress = function(d) {
1081
1081
  if (d.lengthComputable) {
1082
1082
  const u = d.loaded / d.total * 100;
1083
1083
  r && r(u);
@@ -1086,12 +1086,12 @@ function B(e, n, t, i = void 0, s = void 0, r = void 0) {
1086
1086
  c.status === 200 ? i && i(c.responseText.replace(/[\n\r]/g, "")) : s && s(c.statusText);
1087
1087
  }, c.onerror = function() {
1088
1088
  s && s(c.statusText);
1089
- }, c.send(o);
1089
+ }, c.send(a);
1090
1090
  }
1091
- function re(e, n, t, i = void 0, s = void 0, r = void 0) {
1091
+ function ce(e, n, t, i = void 0, s = void 0, r = void 0) {
1092
1092
  console.log("relatedDocAndFile", { credentials: e, receipt: n, filename: t });
1093
- const o = (d) => d.indexOf(".") === -1 ? d : d.split(".").slice(0, -1).join(".");
1094
- let a = "temp_" + T.now().ts, c = e.space + "/resources/v1/modeler/documents/?e6w-lang=fr&e6w-timezone=-120&xrequestedwith=xmlhttprequest";
1093
+ const a = (d) => d.indexOf(".") === -1 ? d : d.split(".").slice(0, -1).join(".");
1094
+ let o = "temp_" + T.now().ts, c = e.space + "/resources/v1/modeler/documents/?e6w-lang=fr&e6w-timezone=-120&xrequestedwith=xmlhttprequest";
1095
1095
  m(c, {
1096
1096
  method: "POST",
1097
1097
  headers: {
@@ -1105,7 +1105,7 @@ function re(e, n, t, i = void 0, s = void 0, r = void 0) {
1105
1105
  {
1106
1106
  type: "Document",
1107
1107
  dataelements: {
1108
- title: o(t),
1108
+ title: a(t),
1109
1109
  description: i
1110
1110
  },
1111
1111
  relateddata: {
@@ -1119,7 +1119,7 @@ function re(e, n, t, i = void 0, s = void 0, r = void 0) {
1119
1119
  }
1120
1120
  ]
1121
1121
  },
1122
- tempId: a
1122
+ tempId: o
1123
1123
  }
1124
1124
  ]
1125
1125
  }),
@@ -1135,9 +1135,9 @@ function re(e, n, t, i = void 0, s = void 0, r = void 0) {
1135
1135
  }
1136
1136
  });
1137
1137
  }
1138
- function F(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0, o = !1) {
1139
- const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
1140
- m(a, {
1138
+ function F(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0, a = !1) {
1139
+ const o = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
1140
+ m(o, {
1141
1141
  method: "GET",
1142
1142
  onComplete(c) {
1143
1143
  const d = JSON.parse(c);
@@ -1174,7 +1174,7 @@ function F(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0, o = !1
1174
1174
  }));
1175
1175
  }
1176
1176
  }
1177
- p && f && l ? (u = l + "." + f + "." + p, s(u)) : d.preferredcredentials && o ? (u = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, s(u)) : r && (u = l + "." + f + "." + p, r(u));
1177
+ p && f && l ? (u = l + "." + f + "." + p, s(u)) : d.preferredcredentials && a ? (u = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, s(u)) : r && (u = l + "." + f + "." + p, r(u));
1178
1178
  },
1179
1179
  onFailure(c, d) {
1180
1180
  console.warn("Erreur de récupération du contexte de sécurité. => ", {
@@ -1200,31 +1200,31 @@ async function E(e, n = void 0, t = void 0) {
1200
1200
  console.log("☠️ error => ", i);
1201
1201
  }
1202
1202
  ), new Promise((i, s) => {
1203
- v(
1203
+ j(
1204
1204
  e,
1205
1205
  (r) => {
1206
- e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
1207
- n && n(o);
1208
- }).catch((o) => {
1209
- t && t(o);
1206
+ e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((a) => a.blob()).then((a) => {
1207
+ n && n(a);
1208
+ }).catch((a) => {
1209
+ t && t(a);
1210
1210
  })) : m(r, {
1211
- onComplete(o) {
1212
- let a;
1211
+ onComplete(a) {
1212
+ let o;
1213
1213
  try {
1214
- a = JSON.parse(o);
1214
+ o = JSON.parse(a);
1215
1215
  } catch {
1216
- a = o;
1216
+ o = a;
1217
1217
  }
1218
- n && typeof n == "function" && n(a), i(a);
1218
+ n && typeof n == "function" && n(o), i(o);
1219
1219
  },
1220
- onFailure(o, a, c) {
1221
- t && (console.log("error http", o), t({
1222
- msg: JSON.parse(o),
1223
- headers: a,
1220
+ onFailure(a, o, c) {
1221
+ t && (console.log("error http", a), t({
1222
+ msg: JSON.parse(a),
1223
+ headers: o,
1224
1224
  xhr: c
1225
1225
  }), s({
1226
- msg: JSON.parse(o),
1227
- headers: a,
1226
+ msg: JSON.parse(a),
1227
+ headers: o,
1228
1228
  xhr: c
1229
1229
  }));
1230
1230
  }
@@ -1236,12 +1236,12 @@ async function E(e, n = void 0, t = void 0) {
1236
1236
  );
1237
1237
  });
1238
1238
  }
1239
- async function ce(e, n, t = void 0, i = void 0) {
1239
+ async function de(e, n, t = void 0, i = void 0) {
1240
1240
  typeof n < "u" && Array.isArray(n) && n?.length > 0 ? H({
1241
1241
  credentials: e,
1242
1242
  myArray: n,
1243
1243
  chunk: 80,
1244
- fn_to_call: de
1244
+ fn_to_call: ue
1245
1245
  }, (r) => {
1246
1246
  t && t(r);
1247
1247
  }) : (console.warn(
@@ -1250,24 +1250,24 @@ async function ce(e, n, t = void 0, i = void 0) {
1250
1250
  "La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
1251
1251
  ));
1252
1252
  }
1253
- function de(e, n, t = void 0, i = void 0, s = void 0) {
1253
+ function ue(e, n, t = void 0, i = void 0, s = void 0) {
1254
1254
  const r = [];
1255
1255
  n.forEach((c) => {
1256
1256
  r.push({
1257
1257
  id: c
1258
1258
  });
1259
1259
  });
1260
- let o = JSON.stringify({
1260
+ let a = JSON.stringify({
1261
1261
  csrf: {
1262
1262
  name: "ENO_CSRF_TOKEN",
1263
1263
  value: e.token
1264
1264
  },
1265
1265
  data: r
1266
1266
  });
1267
- const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
1268
- m(a, {
1267
+ const o = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
1268
+ m(o, {
1269
1269
  method: "PUT",
1270
- data: o,
1270
+ data: a,
1271
1271
  type: "json",
1272
1272
  onComplete(c) {
1273
1273
  const d = c.data;
@@ -1305,9 +1305,9 @@ function de(e, n, t = void 0, i = void 0, s = void 0) {
1305
1305
  }
1306
1306
  function tt(e, n, t = void 0, i = void 0) {
1307
1307
  return new Promise((s) => {
1308
- if (e.token === "" && O(e), n !== void 0 && n !== "" && n !== null) {
1308
+ if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
1309
1309
  const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
1310
- let o = {
1310
+ let a = {
1311
1311
  method: "POST",
1312
1312
  headers: {
1313
1313
  SecurityContext: "ctx::" + e.ctx,
@@ -1323,22 +1323,22 @@ function tt(e, n, t = void 0, i = void 0) {
1323
1323
  ]
1324
1324
  }),
1325
1325
  type: "json",
1326
- onComplete(a) {
1327
- t && t(a);
1326
+ onComplete(o) {
1327
+ t && t(o);
1328
1328
  },
1329
- onFailure(a) {
1330
- i && i(a);
1329
+ onFailure(o) {
1330
+ i && i(o);
1331
1331
  }
1332
1332
  };
1333
- m(r, o);
1333
+ m(r, a);
1334
1334
  }
1335
1335
  });
1336
1336
  }
1337
1337
  function nt(e, n, t, i = void 0, s = void 0) {
1338
1338
  return new Promise((r) => {
1339
- if (e.token === "" && O(e), n !== void 0 && n !== "" && n !== null) {
1340
- const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
1341
- let a = {
1339
+ if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
1340
+ const a = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
1341
+ let o = {
1342
1342
  method: "POST",
1343
1343
  headers: {
1344
1344
  SecurityContext: "ctx::" + e.ctx,
@@ -1362,25 +1362,25 @@ function nt(e, n, t, i = void 0, s = void 0) {
1362
1362
  s && s(c);
1363
1363
  }
1364
1364
  };
1365
- m(o, a);
1365
+ m(a, o);
1366
1366
  }
1367
1367
  });
1368
1368
  }
1369
1369
  function st(e, n, t = void 0, i = void 0) {
1370
1370
  return new Promise((s) => {
1371
- if (e.token === "" && O(e), n !== void 0 && n !== "" && n !== null) {
1371
+ if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
1372
1372
  const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
1373
1373
  F(
1374
1374
  e.space,
1375
1375
  "ESPACE COMMUN",
1376
1376
  ["VPLMProjectLeader", "VPLMCreator"],
1377
1377
  void 0,
1378
- (a) => e.ctx = a,
1379
- (a) => {
1380
- console.log("onError =>", a);
1378
+ (o) => e.ctx = o,
1379
+ (o) => {
1380
+ console.log("onError =>", o);
1381
1381
  }
1382
1382
  );
1383
- let o = {
1383
+ let a = {
1384
1384
  method: "POST",
1385
1385
  headers: {
1386
1386
  securitycontext: "ctx::" + e.ctx,
@@ -1396,32 +1396,32 @@ function st(e, n, t = void 0, i = void 0) {
1396
1396
  ]
1397
1397
  }),
1398
1398
  type: "json",
1399
- onComplete(a) {
1400
- t && t(a);
1399
+ onComplete(o) {
1400
+ t && t(o);
1401
1401
  },
1402
- onFailure(a) {
1403
- i && i(a);
1402
+ onFailure(o) {
1403
+ i && i(o);
1404
1404
  }
1405
1405
  };
1406
- m(r, o);
1406
+ m(r, a);
1407
1407
  }
1408
1408
  });
1409
1409
  }
1410
1410
  function it(e, n, t = void 0, i = void 0) {
1411
1411
  return new Promise((s) => {
1412
- if (e.token === "" && O(e), n !== void 0 && n !== "" && n !== null) {
1412
+ if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
1413
1413
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
1414
1414
  F(
1415
1415
  e.space,
1416
1416
  "ESPACE COMMUN",
1417
1417
  ["VPLMProjectLeader", "VPLMCreator"],
1418
1418
  void 0,
1419
- (a) => e.ctx = a,
1420
- (a) => {
1421
- console.log("onError =>", a);
1419
+ (o) => e.ctx = o,
1420
+ (o) => {
1421
+ console.log("onError =>", o);
1422
1422
  }
1423
1423
  );
1424
- let o = {
1424
+ let a = {
1425
1425
  method: "POST",
1426
1426
  headers: {
1427
1427
  SecurityContext: "ctx::" + e.ctx,
@@ -1443,21 +1443,21 @@ function it(e, n, t = void 0, i = void 0) {
1443
1443
  ]
1444
1444
  }),
1445
1445
  type: "json",
1446
- onComplete(a) {
1447
- t && t(a);
1446
+ onComplete(o) {
1447
+ t && t(o);
1448
1448
  },
1449
- onFailure(a) {
1450
- i && i(a);
1449
+ onFailure(o) {
1450
+ i && i(o);
1451
1451
  }
1452
1452
  };
1453
- m(r, o);
1453
+ m(r, a);
1454
1454
  }
1455
1455
  });
1456
1456
  }
1457
1457
  function ot(e, n, t, i = void 0, s = void 0) {
1458
1458
  return new Promise((r) => {
1459
- if (e.token === "" && O(e), n !== void 0 && n !== "" && n !== null) {
1460
- const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
1459
+ if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
1460
+ const a = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
1461
1461
  F(
1462
1462
  e.space,
1463
1463
  "ESPACE COMMUN",
@@ -1468,7 +1468,7 @@ function ot(e, n, t, i = void 0, s = void 0) {
1468
1468
  console.log("onError =>", c);
1469
1469
  }
1470
1470
  );
1471
- let a = {
1471
+ let o = {
1472
1472
  method: "POST",
1473
1473
  headers: {
1474
1474
  securitycontext: "ctx::" + e.ctx,
@@ -1497,11 +1497,11 @@ function ot(e, n, t, i = void 0, s = void 0) {
1497
1497
  s && s(c);
1498
1498
  }
1499
1499
  };
1500
- m(o, a);
1500
+ m(a, o);
1501
1501
  }
1502
1502
  });
1503
1503
  }
1504
- function ue(e) {
1504
+ function pe(e) {
1505
1505
  return new Promise((n, t) => {
1506
1506
  const i = `${e.space}/resources/pno/person/getsecuritycontext&tenant=${e.tenant.toUpperCase()}&xrequestedwith=xmlhttprequest`;
1507
1507
  m(i, {
@@ -1517,11 +1517,11 @@ function ue(e) {
1517
1517
  }
1518
1518
  function at(e, n, t = void 0, i = void 0) {
1519
1519
  return new Promise(async (s, r) => {
1520
- const { tenant: o, ctx: a, space: c } = e;
1521
- (!o || !a || !c) && r({ error: "Erreur de credentials", tenant: o, ctx: a, space: c });
1520
+ const { tenant: a, ctx: o, space: c } = e;
1521
+ (!a || !o || !c) && r({ error: "Erreur de credentials", tenant: a, ctx: o, space: c });
1522
1522
  const d = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=1&withAttributes=1&withCopyFrom=1&tenant=${e.tenant.toUpperCase()}&xrequestedwith=xmlhttprequest`;
1523
1523
  let u;
1524
- await ue(e).then(
1524
+ await pe(e).then(
1525
1525
  (f) => u = f?.SecurityContext
1526
1526
  );
1527
1527
  let p = {
@@ -1550,9 +1550,50 @@ function at(e, n, t = void 0, i = void 0) {
1550
1550
  m(d, p);
1551
1551
  });
1552
1552
  }
1553
- function rt(e, n, t, i, s = void 0, r = void 0) {
1554
- return new Promise((o) => {
1555
- const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
1553
+ function rt(e, n, t = void 0, i = void 0) {
1554
+ return new Promise((s, r) => {
1555
+ const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark/${n}?$mask=dsbks:BksMask.Items`;
1556
+ m(a, {
1557
+ headers: {
1558
+ SecurityContext: `ctx::${e.ctx}`
1559
+ },
1560
+ onComplete: (o) => {
1561
+ let c;
1562
+ try {
1563
+ c = JSON.parse(o);
1564
+ } catch {
1565
+ c = o;
1566
+ }
1567
+ if (typeof c == "object") {
1568
+ let d = c?.member[0]?.items?.member;
1569
+ if (d) {
1570
+ const u = d.map((p) => {
1571
+ if (p?.referencedObject?.identifier)
1572
+ return p.referencedObject.identifier;
1573
+ });
1574
+ u.length && oe(host, u, (p) => {
1575
+ console.log("_3dspace_get_multiDocInfo Response : ", {
1576
+ ...p
1577
+ }), p?.data.length && p.data.forEach((l) => {
1578
+ let g = d.find(
1579
+ (h) => h.referencedObject.identifier === l.identifier
1580
+ );
1581
+ g && (g.referencedObject.dataelements = l.dataelements);
1582
+ });
1583
+ });
1584
+ }
1585
+ }
1586
+ return t && t(c), s = c, s;
1587
+ },
1588
+ onFailure(o) {
1589
+ return i && i(o), r = o, r;
1590
+ }
1591
+ });
1592
+ });
1593
+ }
1594
+ function ct(e, n, t, i, s = void 0, r = void 0) {
1595
+ return new Promise((a) => {
1596
+ const o = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
1556
1597
  let c = {
1557
1598
  attributes: {
1558
1599
  title: t,
@@ -1580,11 +1621,11 @@ function rt(e, n, t, i, s = void 0, r = void 0) {
1580
1621
  r && r(p);
1581
1622
  }
1582
1623
  };
1583
- m(a, u);
1624
+ m(o, u);
1584
1625
  });
1585
1626
  }
1586
- function ct(e, n, t, i, s = void 0, r = void 0) {
1587
- return console.log("credentials", e), new Promise((o) => {
1627
+ function dt(e, n, t, i, s = void 0, r = void 0) {
1628
+ return console.log("credentials", e), new Promise((a) => {
1588
1629
  `${e.space}`, JSON.stringify({
1589
1630
  csrf: {
1590
1631
  name: "ENO_CSRF_TOKEN",
@@ -1607,7 +1648,7 @@ function ct(e, n, t, i, s = void 0, r = void 0) {
1607
1648
  });
1608
1649
  }
1609
1650
  //!SECTION
1610
- function dt(e, n = void 0, t = void 0) {
1651
+ function ut(e, n = void 0, t = void 0) {
1611
1652
  const i = {
1612
1653
  base: `${e.space}`,
1613
1654
  uri: "/resources/bps/cspaces",
@@ -1619,17 +1660,17 @@ function dt(e, n = void 0, t = void 0) {
1619
1660
  Accept: "application/json,text/javascript,*/*",
1620
1661
  "Content-Type": "application/ds-json"
1621
1662
  },
1622
- onComplete(r, o) {
1623
- const a = JSON.parse(r);
1624
- n && n(a, o);
1663
+ onComplete(r, a) {
1664
+ const o = JSON.parse(r);
1665
+ n && n(o, a);
1625
1666
  },
1626
- onFailure(r, o, a) {
1627
- t && t({ response: r, headers: o, xhr: a });
1667
+ onFailure(r, a, o) {
1668
+ t && t({ response: r, headers: a, xhr: o });
1628
1669
  }
1629
1670
  });
1630
1671
  }
1631
- function ut(e, n, t, i) {
1632
- v(
1672
+ function pt(e, n, t, i) {
1673
+ j(
1633
1674
  e.space,
1634
1675
  n,
1635
1676
  (s) => {
@@ -1645,29 +1686,29 @@ function ut(e, n, t, i) {
1645
1686
  }
1646
1687
  );
1647
1688
  }
1648
- async function pt(e, n, t = void 0, i = void 0) {
1689
+ async function lt(e, n, t = void 0, i = void 0) {
1649
1690
  return new Promise((s) => {
1650
- v(e, n, (r) => {
1691
+ j(e, n, (r) => {
1651
1692
  m(r, {
1652
- onComplete: (o, a, c) => (s(JSON.parse(o)), t && t(JSON.parse(o), a, c), s),
1653
- onFailure: (o, a, c) => {
1654
- i && i(o, a, c), console.log(o, a?.errormsg);
1693
+ onComplete: (a, o, c) => (s(JSON.parse(a)), t && t(JSON.parse(a), o, c), s),
1694
+ onFailure: (a, o, c) => {
1695
+ i && i(a, o, c), console.log(a, o?.errormsg);
1655
1696
  }
1656
1697
  });
1657
1698
  });
1658
1699
  });
1659
1700
  }
1660
- function lt(e, n, t, i = void 0, s = void 0) {
1701
+ function ft(e, n, t, i = void 0, s = void 0) {
1661
1702
  const r = new Blob([JSON.stringify(n)], { type: "text/plain" });
1662
1703
  e = { ...e, objID: t }, R(
1663
1704
  e,
1664
- (o) => {
1665
- console.log("_3DSpace_get_csrf | onDone | data", o);
1666
- const a = o.datas.relateddata.files[0].id, c = o.datas.relateddata.files[0].dataelements.title;
1705
+ (a) => {
1706
+ console.log("_3DSpace_get_csrf | onDone | data", a);
1707
+ const o = a.datas.relateddata.files[0].id, c = a.datas.relateddata.files[0].dataelements.title;
1667
1708
  G(
1668
1709
  e,
1669
1710
  t,
1670
- a,
1711
+ o,
1671
1712
  r,
1672
1713
  c,
1673
1714
  (d) => {
@@ -1678,14 +1719,14 @@ function lt(e, n, t, i = void 0, s = void 0) {
1678
1719
  }
1679
1720
  );
1680
1721
  },
1681
- (o) => {
1682
- console.log("En cas d'erreur nous avons :", o), alert("Erreur lors de la sauvegarde, Veuillez réessayez"), s && s(o);
1722
+ (a) => {
1723
+ console.log("En cas d'erreur nous avons :", a), alert("Erreur lors de la sauvegarde, Veuillez réessayez"), s && s(a);
1683
1724
  }
1684
1725
  );
1685
1726
  }
1686
1727
  let K, q;
1687
- const D = [];
1688
- async function ft(e, n = void 0, t = void 0) {
1728
+ const A = [];
1729
+ async function mt(e, n = void 0, t = void 0) {
1689
1730
  e.objID && e.objID !== "" ? R(
1690
1731
  e,
1691
1732
  (i) => {
@@ -1694,7 +1735,7 @@ async function ft(e, n = void 0, t = void 0) {
1694
1735
  (i) => {
1695
1736
  t && t(i);
1696
1737
  }
1697
- ) : (e.objID === null || e.objID === "") && O(
1738
+ ) : (e.objID === null || e.objID === "") && b(
1698
1739
  e,
1699
1740
  (i) => {
1700
1741
  n && n({ rep: i, msg: "Pas d'objID, ou invalide" });
@@ -1704,7 +1745,7 @@ async function ft(e, n = void 0, t = void 0) {
1704
1745
  }
1705
1746
  );
1706
1747
  }
1707
- async function mt(e, n = void 0, t = void 0) {
1748
+ async function gt(e, n = void 0, t = void 0) {
1708
1749
  console.log("getDatasByTenant (getDocuments)", e), await E(
1709
1750
  e,
1710
1751
  (i) => {
@@ -1716,7 +1757,7 @@ async function mt(e, n = void 0, t = void 0) {
1716
1757
  }
1717
1758
  );
1718
1759
  }
1719
- function gt(e, n = void 0, t = void 0) {
1760
+ function ht(e, n = void 0, t = void 0) {
1720
1761
  const i = [];
1721
1762
  if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
1722
1763
  console.warn("la liste est vide ou n'est pas un tableau");
@@ -1726,26 +1767,26 @@ function gt(e, n = void 0, t = void 0) {
1726
1767
  E(
1727
1768
  e,
1728
1769
  s.objID,
1729
- (o) => {
1730
- i.push({ [s.name]: o }), s.name === "dbProjets" && (K = o.affaires.map((a) => a.objectID), pe(e, q)), r === e.objIds.length - 1 && (n && n(i), delete e.objIds, delete e.datas);
1770
+ (a) => {
1771
+ i.push({ [s.name]: a }), s.name === "dbProjets" && (K = a.affaires.map((o) => o.objectID), le(e, q)), r === e.objIds.length - 1 && (n && n(i), delete e.objIds, delete e.datas);
1731
1772
  }
1732
1773
  );
1733
1774
  });
1734
1775
  }
1735
- function pe(e, n, t = void 0, i = void 0) {
1736
- ce(
1776
+ function le(e, n, t = void 0, i = void 0) {
1777
+ de(
1737
1778
  e,
1738
1779
  K,
1739
1780
  (s) => {
1740
1781
  const r = [...n];
1741
- r.find((o) => o.objectID === s.objectId).data = s.data, q = r, D.push(s.data), t && t(D);
1782
+ r.find((a) => a.objectID === s.objectId).data = s.data, q = r, A.push(s.data), t && t(A);
1742
1783
  },
1743
1784
  (s) => {
1744
1785
  i && (i(s), console.log(s));
1745
1786
  }
1746
1787
  );
1747
1788
  }
1748
- const le = "FA35FB9B177A280065800EA0000F599C", fe = [
1789
+ const fe = "FA35FB9B177A280065800EA0000F599C", me = [
1749
1790
  "swym",
1750
1791
  "3dspace",
1751
1792
  "drive",
@@ -1759,14 +1800,14 @@ const le = "FA35FB9B177A280065800EA0000F599C", fe = [
1759
1800
  where: "ds6w:where",
1760
1801
  who: "ds6w:who",
1761
1802
  why: "ds6w:why"
1762
- }, me = {
1763
- objId: le,
1803
+ }, ge = {
1804
+ objId: fe,
1764
1805
  pred: "who",
1765
1806
  order_by: "desc",
1766
1807
  tag: "testTag"
1767
1808
  };
1768
- function ht(e, n, t = void 0, i = void 0) {
1769
- const { space: s, tenant: r } = e, { objId: o, pred: a, tag: c } = n, d = {
1809
+ function yt(e, n, t = void 0, i = void 0) {
1810
+ const { space: s, tenant: r } = e, { objId: a, pred: o, tag: c } = n, d = {
1770
1811
  uri: "/resources/6w/tags",
1771
1812
  otpCTX: "SecurityContext=preferred",
1772
1813
  optTenant: `tenant=${r}`
@@ -1775,10 +1816,10 @@ function ht(e, n, t = void 0, i = void 0) {
1775
1816
  {
1776
1817
  subject: [
1777
1818
  {
1778
- uri: `pid://${o}`
1819
+ uri: `pid://${a}`
1779
1820
  }
1780
1821
  ],
1781
- predicate: X[a],
1822
+ predicate: X[o],
1782
1823
  object: {
1783
1824
  literal: c
1784
1825
  }
@@ -1798,10 +1839,10 @@ function ht(e, n, t = void 0, i = void 0) {
1798
1839
  setTimeout(() => {
1799
1840
  M(
1800
1841
  e,
1801
- o,
1842
+ a,
1802
1843
  (g) => {
1803
1844
  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;
1804
- l.name = h, l.ext = y, l.createBy = S, n.info = { ...l }, ge(
1845
+ l.name = h, l.ext = y, l.createBy = S, n.info = { ...l }, he(
1805
1846
  e,
1806
1847
  n,
1807
1848
  (w) => {
@@ -1825,12 +1866,12 @@ function ht(e, n, t = void 0, i = void 0) {
1825
1866
  }
1826
1867
  });
1827
1868
  }
1828
- function ge(e, n, t = void 0, i = void 0) {
1869
+ function he(e, n, t = void 0, i = void 0) {
1829
1870
  console.log("obj ", n);
1830
1871
  const s = n.info.name, r = {
1831
1872
  baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
1832
1873
  uri: "/federated/search"
1833
- }, o = `${r.baseUrl}${r.uri}`, a = {
1874
+ }, a = `${r.baseUrl}${r.uri}`, o = {
1834
1875
  "Content-Type": "application/json",
1835
1876
  Accept: "application/json,text/javascript,*/*"
1836
1877
  }, c = Y(), d = {
@@ -1875,7 +1916,7 @@ function ge(e, n, t = void 0, i = void 0) {
1875
1916
  }
1876
1917
  },
1877
1918
  select_exclude_synthesis: ["ds6w:what/ds6w:topic"],
1878
- order_by: me.order_by,
1919
+ order_by: ge.order_by,
1879
1920
  order_field: "relevance",
1880
1921
  select_snippets: [
1881
1922
  "ds6w:snippet",
@@ -1886,7 +1927,7 @@ function ge(e, n, t = void 0, i = void 0) {
1886
1927
  ],
1887
1928
  nresults: 40,
1888
1929
  start: "0",
1889
- source: fe,
1930
+ source: me,
1890
1931
  tenant: e.tenant,
1891
1932
  login: {
1892
1933
  "3dspace": {
@@ -1894,9 +1935,9 @@ function ge(e, n, t = void 0, i = void 0) {
1894
1935
  }
1895
1936
  }
1896
1937
  };
1897
- console.log("dataPattern => ", d), m(o, {
1938
+ console.log("dataPattern => ", d), m(a, {
1898
1939
  method: "POST",
1899
- headers: a,
1940
+ headers: o,
1900
1941
  data: JSON.stringify(d),
1901
1942
  onComplete(u) {
1902
1943
  const p = JSON.parse(u);
@@ -1908,12 +1949,12 @@ function ge(e, n, t = void 0, i = void 0) {
1908
1949
  }
1909
1950
  });
1910
1951
  }
1911
- function yt(e, n, t = void 0, i = void 0) {
1912
- const { objId: s, pred: r, tag: o } = n, a = {
1952
+ function _t(e, n, t = void 0, i = void 0) {
1953
+ const { objId: s, pred: r, tag: a } = n, o = {
1913
1954
  uri: "/resources/6w/tags",
1914
1955
  otpCTX: "SecurityContext=preferred",
1915
1956
  optTenant: `tenant=${e.tenant}`
1916
- }, c = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
1957
+ }, c = `${e.space}${o.uri}?${o.otpCTX}&${o.optTenant}`, d = {
1917
1958
  tag: [
1918
1959
  {
1919
1960
  subject: [
@@ -1923,7 +1964,7 @@ function yt(e, n, t = void 0, i = void 0) {
1923
1964
  ],
1924
1965
  predicate: X[r],
1925
1966
  object: {
1926
- literal: o
1967
+ literal: a
1927
1968
  }
1928
1969
  }
1929
1970
  ]
@@ -1944,19 +1985,19 @@ function yt(e, n, t = void 0, i = void 0) {
1944
1985
  }
1945
1986
  });
1946
1987
  }
1947
- function _t(e, n = "", t = void 0, i = void 0) {
1988
+ function St(e, n = "", t = void 0, i = void 0) {
1948
1989
  const { space: s } = e;
1949
1990
  if (n === "")
1950
1991
  return;
1951
1992
  const r = {
1952
1993
  uri: "/resources/v1/modeler/documents"
1953
- }, o = {
1994
+ }, a = {
1954
1995
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
1955
1996
  Accept: "application/json,text/javascript,*/*"
1956
- }, a = `${s}${r.uri}`, c = `$include=none,lockerInfo,ownerInfo,originatorInfo,files,ownerInfo,originatorInfo&$fields=none,title,name,typeNLS,collabSpaceTitle,revision,isLatestRevision,files,lockStatus,lockerInfo.name,lockerInfo.firstname,lockerInfo.lastname,owner,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,stateNLS,modified,policy,state,organizationTitle,originator,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname,hasModifyAccess,fileExtension,files.name,files.title,files.revision,files.locker,ownerInfo,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,originatorInfo,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname&$ids=${n}`;
1957
- m(a, {
1997
+ }, o = `${s}${r.uri}`, c = `$include=none,lockerInfo,ownerInfo,originatorInfo,files,ownerInfo,originatorInfo&$fields=none,title,name,typeNLS,collabSpaceTitle,revision,isLatestRevision,files,lockStatus,lockerInfo.name,lockerInfo.firstname,lockerInfo.lastname,owner,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,stateNLS,modified,policy,state,organizationTitle,originator,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname,hasModifyAccess,fileExtension,files.name,files.title,files.revision,files.locker,ownerInfo,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,originatorInfo,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname&$ids=${n}`;
1998
+ m(o, {
1958
1999
  method: "POST",
1959
- headers: o,
2000
+ headers: a,
1960
2001
  data: c,
1961
2002
  onComplete(d) {
1962
2003
  t && t(JSON.parse(d));
@@ -1970,17 +2011,17 @@ function _t(e, n = "", t = void 0, i = void 0) {
1970
2011
  async function C(e, n = void 0, t = void 0) {
1971
2012
  const i = e._3DSwym + "/api/index/tk";
1972
2013
  return m(i, {
1973
- onComplete(s, r, o) {
1974
- const a = JSON.parse(s);
2014
+ onComplete(s, r, a) {
2015
+ const o = JSON.parse(s);
1975
2016
  if (n)
1976
- return n(a), e.token = a?.result?.ServerToken;
2017
+ return n(o), e.token = o?.result?.ServerToken;
1977
2018
  },
1978
2019
  onFailure(s) {
1979
2020
  t && t(s);
1980
2021
  }
1981
2022
  });
1982
2023
  }
1983
- function St(e, n = void 0, t = void 0) {
2024
+ function wt(e, n = void 0, t = void 0) {
1984
2025
  const i = `${e._3DSwym}/api/exalead/whatsnew`, s = {
1985
2026
  params: {
1986
2027
  community_id: null,
@@ -2001,16 +2042,16 @@ function St(e, n = void 0, t = void 0) {
2001
2042
  },
2002
2043
  data: JSON.stringify(s),
2003
2044
  type: "json",
2004
- onComplete(o, a) {
2005
- n && n(o, a);
2045
+ onComplete(a, o) {
2046
+ n && n(a, o);
2006
2047
  },
2007
- onFailure(o, a) {
2008
- t && t(o, a);
2048
+ onFailure(a, o) {
2049
+ t && t(a, o);
2009
2050
  }
2010
2051
  });
2011
2052
  });
2012
2053
  }
2013
- function wt(e, n = void 0, t = void 0) {
2054
+ function Ct(e, n = void 0, t = void 0) {
2014
2055
  const i = `${e._3DSwym}/api/Recommendation/getpeoplefamiliartocurrentuser`, s = {
2015
2056
  params: {
2016
2057
  idsToFilterArr: [],
@@ -2030,31 +2071,31 @@ function wt(e, n = void 0, t = void 0) {
2030
2071
  },
2031
2072
  data: JSON.stringify(s),
2032
2073
  type: "json",
2033
- onComplete(o, a) {
2034
- const c = o.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
2035
- n && n(c, o);
2074
+ onComplete(a, o) {
2075
+ const c = a.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
2076
+ n && n(c, a);
2036
2077
  },
2037
- onFailure(o, a) {
2038
- t && t(o, a);
2078
+ onFailure(a, o) {
2079
+ t && t(a, o);
2039
2080
  }
2040
2081
  });
2041
2082
  });
2042
2083
  }
2043
- function Ct(e, n = void 0, t = void 0) {
2084
+ function bt(e, n = void 0, t = void 0) {
2044
2085
  const i = {
2045
2086
  base: e._3DSwym,
2046
2087
  uri: "/api/community/listmycommunities",
2047
2088
  limit: `/limit/${e.limit ? e.limit : 500}`,
2048
2089
  page: `/page/${e.page ? e.page : "1"}`
2049
2090
  }, s = `${i.base}${i.uri}${i.limit}${i.page}`, r = [];
2050
- C(e, (o) => {
2091
+ C(e, (a) => {
2051
2092
  m(s, {
2052
2093
  method: "GET",
2053
2094
  headers: {
2054
- "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
2095
+ "X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
2055
2096
  },
2056
- onComplete(a, c, d) {
2057
- const p = JSON.parse(a).result;
2097
+ onComplete(o, c, d) {
2098
+ const p = JSON.parse(o).result;
2058
2099
  let f = 0;
2059
2100
  p.forEach((l) => {
2060
2101
  const g = {
@@ -2065,7 +2106,7 @@ function Ct(e, n = void 0, t = void 0) {
2065
2106
  role: l.role,
2066
2107
  access: l.access
2067
2108
  };
2068
- he(
2109
+ ye(
2069
2110
  e,
2070
2111
  l.id,
2071
2112
  (h) => {
@@ -2075,14 +2116,14 @@ function Ct(e, n = void 0, t = void 0) {
2075
2116
  );
2076
2117
  });
2077
2118
  },
2078
- onFailure(a, c) {
2079
- const d = a;
2119
+ onFailure(o, c) {
2120
+ const d = o;
2080
2121
  d.status = c.status, d.response = c.errormsg, t && t(d);
2081
2122
  }
2082
2123
  });
2083
2124
  });
2084
2125
  }
2085
- function he(e, n, t, i) {
2126
+ function ye(e, n, t, i) {
2086
2127
  const s = `${e._3DSwym}/api/community/listmembers`, r = {
2087
2128
  params: {
2088
2129
  page: e.page ? e.page : 1,
@@ -2090,21 +2131,21 @@ function he(e, n, t, i) {
2090
2131
  community_id: n
2091
2132
  }
2092
2133
  };
2093
- C(e, (o) => {
2134
+ C(e, (a) => {
2094
2135
  m(s, {
2095
2136
  method: "POST",
2096
2137
  headers: {
2097
2138
  "Content-type": "application/json;charset=UTF-8",
2098
2139
  Accept: "application/json",
2099
- "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
2140
+ "X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
2100
2141
  },
2101
2142
  data: JSON.stringify(r),
2102
2143
  type: "json",
2103
- onComplete(a, c, d) {
2104
- t && t(a);
2144
+ onComplete(o, c, d) {
2145
+ t && t(o);
2105
2146
  },
2106
- onFailure(a, c) {
2107
- const d = a;
2147
+ onFailure(o, c) {
2148
+ const d = o;
2108
2149
  d.status = c.status, d.response = c.errormsg, i && i(d);
2109
2150
  }
2110
2151
  });
@@ -2122,30 +2163,30 @@ function Ot(e, n = void 0, t = void 0) {
2122
2163
  Accept: "application/json",
2123
2164
  "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
2124
2165
  },
2125
- onComplete(o) {
2126
- const a = JSON.parse(o);
2127
- n && n(a);
2166
+ onComplete(a) {
2167
+ const o = JSON.parse(a);
2168
+ n && n(o);
2128
2169
  },
2129
- onFailure(o, a) {
2130
- const c = o;
2131
- c.status = a.status, c.response = a.errormsg, t && t(c);
2170
+ onFailure(a, o) {
2171
+ const c = a;
2172
+ c.status = o.status, c.response = o.errormsg, t && t(c);
2132
2173
  }
2133
2174
  });
2134
2175
  });
2135
2176
  }
2136
- function bt(e, n, t = void 0, i = void 0) {
2137
- const { listAllContacts: s, currentUser: r, _3DSwym: o } = e;
2177
+ function Tt(e, n, t = void 0, i = void 0) {
2178
+ const { listAllContacts: s, currentUser: r, _3DSwym: a } = e;
2138
2179
  console.log("__listAllContacts", s.hits);
2139
- const a = `${o}/api/directmessages`, c = {
2180
+ const o = `${a}/api/directmessages`, c = {
2140
2181
  users: [r.login].concat(n.receipt)
2141
2182
  }, d = {
2142
2183
  id_msg: "",
2143
2184
  senderId: e.currentUser.login,
2144
2185
  senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
2145
- msg: _e(n.msg)
2186
+ msg: Se(n.msg)
2146
2187
  };
2147
2188
  let u = !1;
2148
- ye(
2189
+ _e(
2149
2190
  c.users,
2150
2191
  (p) => {
2151
2192
  p !== void 0 && (d.id_msg = p.id, u = !0, P(e, d));
@@ -2155,7 +2196,7 @@ function bt(e, n, t = void 0, i = void 0) {
2155
2196
  }
2156
2197
  ), u === !1 && setTimeout(() => {
2157
2198
  u === !1 && C(e, (p) => {
2158
- m(a, {
2199
+ m(o, {
2159
2200
  method: "POST",
2160
2201
  headers: {
2161
2202
  "Content-Type": "application/json",
@@ -2176,7 +2217,7 @@ function bt(e, n, t = void 0, i = void 0) {
2176
2217
  });
2177
2218
  }, 500);
2178
2219
  }
2179
- function ye(e, n, t, i) {
2220
+ function _e(e, n, t, i) {
2180
2221
  const s = `${e._3DSwym}/api/directmessages/lite?with_favorites=false`;
2181
2222
  C(e, (r) => {
2182
2223
  m(s, {
@@ -2185,9 +2226,9 @@ function ye(e, n, t, i) {
2185
2226
  Accept: "application/json,text/javascript,*/*",
2186
2227
  "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
2187
2228
  },
2188
- onComplete(o) {
2189
- const a = JSON.parse(o), c = [];
2190
- a.result.forEach((p) => {
2229
+ onComplete(a) {
2230
+ const o = JSON.parse(a), c = [];
2231
+ o.result.forEach((p) => {
2191
2232
  p.users = p.users.sort((f, l) => f.login.localeCompare(l.login)), p.users.length === n.length && c.push(p);
2192
2233
  });
2193
2234
  const d = n.sort(), u = c.find((p) => {
@@ -2198,9 +2239,9 @@ function ye(e, n, t, i) {
2198
2239
  });
2199
2240
  t && u !== void 0 ? t(u) : (i || u === void 0) && i(u);
2200
2241
  },
2201
- onFailure(o) {
2202
- const a = o;
2203
- a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), i && i(a);
2242
+ onFailure(a) {
2243
+ const o = a;
2244
+ o.msg = headers.errormsg, o.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", o), i && i(o);
2204
2245
  }
2205
2246
  });
2206
2247
  });
@@ -2211,7 +2252,7 @@ function P(e, n, t = void 0, i = void 0) {
2211
2252
  uri: "/api/community",
2212
2253
  id_msg: `${n.id_msg}`,
2213
2254
  endUri: "/instantmessages"
2214
- }, r = `${s.base}${s.uri}/${s.id_msg}${s.endUri}`, o = {
2255
+ }, r = `${s.base}${s.uri}/${s.id_msg}${s.endUri}`, a = {
2215
2256
  author: { login: n.senderId, displayName: n.senderName },
2216
2257
  accessState: null,
2217
2258
  commentUri: null,
@@ -2221,15 +2262,15 @@ function P(e, n, t = void 0, i = void 0) {
2221
2262
  parentCommentUri: null,
2222
2263
  richMessage: n.msg
2223
2264
  };
2224
- console.log("_3dSwym_sendDirectMessageData url ", r), C(e, (a) => {
2265
+ console.log("_3dSwym_sendDirectMessageData url ", r), C(e, (o) => {
2225
2266
  m(r, {
2226
2267
  method: "POST",
2227
2268
  headers: {
2228
2269
  "Content-Type": "application/json",
2229
2270
  Accept: "application/json",
2230
- "X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
2271
+ "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
2231
2272
  },
2232
- data: JSON.stringify(o),
2273
+ data: JSON.stringify(a),
2233
2274
  type: "json",
2234
2275
  onComplete(c, d, u) {
2235
2276
  const p = c;
@@ -2242,25 +2283,25 @@ function P(e, n, t = void 0, i = void 0) {
2242
2283
  });
2243
2284
  });
2244
2285
  }
2245
- function _e(e) {
2286
+ function Se(e) {
2246
2287
  const n = (/* @__PURE__ */ new Date()).toLocaleDateString(), t = (/* @__PURE__ */ new Date()).toLocaleTimeString();
2247
2288
  return `<p>${e} </p>
2248
2289
  <br/>
2249
2290
  <hr/>
2250
2291
  <p><u>envoyer :</u>Le <b>${n} à ${t}</b></p>`;
2251
2292
  }
2252
- function Tt(e, n, t = void 0, i = void 0) {
2293
+ function $t(e, n, t = void 0, i = void 0) {
2253
2294
  const s = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
2254
2295
  (c) => c.id === n.community_id
2255
- ), o = e.swymCommunities.find(
2296
+ ), a = e.swymCommunities.find(
2256
2297
  (c) => c.title.toLowerCase() === n.community_title.toLowerCase()
2257
- ), a = {
2298
+ ), o = {
2258
2299
  params: {
2259
2300
  title: n.title,
2260
2301
  // String, le nom de l'affaire
2261
- community_id: r?.id !== void 0 ? r.id : o.id,
2302
+ community_id: r?.id !== void 0 ? r.id : a.id,
2262
2303
  // String, l'id de la communauté
2263
- message: Se(n.text_html),
2304
+ message: we(n.text_html),
2264
2305
  // STRING => le contenue du message doit être au format HTML
2265
2306
  published: 1
2266
2307
  // 1 publier, 0 non publier
@@ -2275,7 +2316,7 @@ function Tt(e, n, t = void 0, i = void 0) {
2275
2316
  m(s, {
2276
2317
  method: "POST",
2277
2318
  headers: d,
2278
- data: JSON.stringify(a),
2319
+ data: JSON.stringify(o),
2279
2320
  type: "json",
2280
2321
  onComplete(u, p, f) {
2281
2322
  const l = JSON.parse(u);
@@ -2288,32 +2329,32 @@ function Tt(e, n, t = void 0, i = void 0) {
2288
2329
  });
2289
2330
  });
2290
2331
  }
2291
- function $t(e, n = void 0, t = void 0) {
2332
+ function Ut(e, n = void 0, t = void 0) {
2292
2333
  const i = { base: e.space, uri: "/api/idea/add" };
2293
2334
  if (!Array.isArray(e.swymCommunities)) {
2294
- const o = "☠️ swymCommunities doit être un tableau d'objets de communautés";
2335
+ const a = "☠️ swymCommunities doit être un tableau d'objets de communautés";
2295
2336
  throw new Error(`Erreur sur cette requête : ${i.base + i.uri}`, {
2296
- cause: o
2337
+ cause: a
2297
2338
  });
2298
2339
  }
2299
2340
  if (e.swymCommunities.findIndex(
2300
- (o) => o.id === e.community_id
2341
+ (a) => a.id === e.community_id
2301
2342
  ) === -1) {
2302
- const o = "la communauté n'existe pas dans la liste des communautés du Swym";
2343
+ const a = "la communauté n'existe pas dans la liste des communautés du Swym";
2303
2344
  throw new Error(`Erreur sur cette requête : ${i.base + i.uri}`, {
2304
- cause: o
2345
+ cause: a
2305
2346
  });
2306
2347
  }
2307
2348
  if (e.community_id && e.community_id === "") {
2308
- const o = "☠️ community_id doit être un String qui contient l'id de la communauté dans laquelle on souhaite publier l'idée.";
2349
+ const a = "☠️ community_id doit être un String qui contient l'id de la communauté dans laquelle on souhaite publier l'idée.";
2309
2350
  throw new Error(`Erreur sur cette requête : ${i.base + i.uri}`, {
2310
- cause: o
2351
+ cause: a
2311
2352
  });
2312
2353
  }
2313
2354
  if (e.title && e.title === "") {
2314
- const o = "☠️ title doit être un String.";
2355
+ const a = "☠️ title doit être un String.";
2315
2356
  throw new Error(`Erreur sur cette requête : ${i.base + i.uri}`, {
2316
- cause: o
2357
+ cause: a
2317
2358
  });
2318
2359
  }
2319
2360
  const r = {
@@ -2328,19 +2369,19 @@ function $t(e, n = void 0, t = void 0) {
2328
2369
  // 1 publier, 0 brouillon
2329
2370
  }
2330
2371
  };
2331
- C(e, (o) => {
2332
- if (!o)
2372
+ C(e, (a) => {
2373
+ if (!a)
2333
2374
  throw new Error(
2334
2375
  `☠️ token n'est pas disponible pour cette requête : ${i.base + i.uri}`,
2335
2376
  {
2336
- cause: o
2377
+ cause: a
2337
2378
  }
2338
2379
  );
2339
- const a = {
2380
+ const o = {
2340
2381
  headers: {
2341
2382
  "Content-type": "application/json;charset=UTF-8",
2342
2383
  Accept: "application/json",
2343
- "X-DS-SWYM-CSRFTOKEN": o?.result?.ServerToken
2384
+ "X-DS-SWYM-CSRFTOKEN": a?.result?.ServerToken
2344
2385
  },
2345
2386
  method: "POST",
2346
2387
  data: JSON.stringify(r),
@@ -2358,43 +2399,43 @@ function $t(e, n = void 0, t = void 0) {
2358
2399
  t && t(l);
2359
2400
  }
2360
2401
  };
2361
- m(i.base + i.uri, a);
2402
+ m(i.base + i.uri, o);
2362
2403
  });
2363
2404
  }
2364
- function Ut(e, n, t = void 0, i = void 0) {
2405
+ function xt(e, n, t = void 0, i = void 0) {
2365
2406
  const s = `${e.space}/api/idea/delete`, r = {
2366
2407
  params: {
2367
2408
  community_id: n.community_id,
2368
2409
  ideationIds: [n.idee_id]
2369
2410
  }
2370
2411
  };
2371
- C(e, (o) => {
2412
+ C(e, (a) => {
2372
2413
  m(s, {
2373
2414
  method: "POST",
2374
2415
  headers: {
2375
2416
  "Content-type": "application/json;charset=UTF-8",
2376
2417
  Accept: "application/json",
2377
- "X-DS-SWYM-CSRFTOKEN": o?.result?.ServerToken
2418
+ "X-DS-SWYM-CSRFTOKEN": a?.result?.ServerToken
2378
2419
  },
2379
2420
  data: JSON.stringify(r),
2380
2421
  type: "json",
2381
- onComplete(a, c, d) {
2382
- t && t(a);
2422
+ onComplete(o, c, d) {
2423
+ t && t(o);
2383
2424
  },
2384
- onFailure(a, c, d) {
2385
- const u = a;
2425
+ onFailure(o, c, d) {
2426
+ const u = o;
2386
2427
  u.status = c.status, u.response = c.errormsg, i && i(u);
2387
2428
  }
2388
2429
  });
2389
2430
  });
2390
2431
  }
2391
- function xt(e, n = void 0, t = void 0) {
2432
+ function It(e, n = void 0, t = void 0) {
2392
2433
  const { _3DSwym: i, _3DSwym_token: s } = e, r = `${i}/api/idea/get`;
2393
2434
  if (e.idPost === "") {
2394
- const a = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
2395
- throw new Error(`Erreur sur cette requête : ${r}`, { cause: a });
2435
+ const o = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
2436
+ throw new Error(`Erreur sur cette requête : ${r}`, { cause: o });
2396
2437
  }
2397
- const o = {
2438
+ const a = {
2398
2439
  params: {
2399
2440
  id: e.idPost
2400
2441
  }
@@ -2406,12 +2447,12 @@ function xt(e, n = void 0, t = void 0) {
2406
2447
  Accept: "application/json",
2407
2448
  "X-DS-SWYM-CSRFTOKEN": s
2408
2449
  },
2409
- data: JSON.stringify(o),
2410
- onComplete(a) {
2411
- a = typeof a == "string" ? JSON.parse(a) : a, n && n({ response: a });
2450
+ data: JSON.stringify(a),
2451
+ onComplete(o) {
2452
+ o = typeof o == "string" ? JSON.parse(o) : o, n && n({ response: o });
2412
2453
  },
2413
- onFailure(a) {
2414
- const c = a;
2454
+ onFailure(o) {
2455
+ const c = o;
2415
2456
  c.status = headers.status, c.response = headers.errormsg, t && t(c);
2416
2457
  }
2417
2458
  });
@@ -2421,8 +2462,8 @@ function Nt(e, n, t) {
2421
2462
  _3DSwym: i,
2422
2463
  _3DSwym_token: s,
2423
2464
  idPost: r,
2424
- title: o,
2425
- community_id: a,
2465
+ title: a,
2466
+ community_id: o,
2426
2467
  status_comment: c,
2427
2468
  status_id: d,
2428
2469
  message: u
@@ -2440,8 +2481,8 @@ function Nt(e, n, t) {
2440
2481
  params: {
2441
2482
  out: "false",
2442
2483
  id: r,
2443
- title: o,
2444
- community_id: a,
2484
+ title: a,
2485
+ community_id: o,
2445
2486
  status_comment: c,
2446
2487
  status_id: d,
2447
2488
  message: u,
@@ -2461,17 +2502,17 @@ function Nt(e, n, t) {
2461
2502
  };
2462
2503
  m(p.base + p.uri, l);
2463
2504
  }
2464
- function It(e, n, t = void 0, i = void 0) {
2505
+ function Rt(e, n, t = void 0, i = void 0) {
2465
2506
  const { _3DSwym: s } = e;
2466
- let { community_id: r, limit: o, page: a, search: c } = n;
2507
+ let { community_id: r, limit: a, page: o, search: c } = n;
2467
2508
  const d = [], u = 1;
2468
2509
  let p = !1, f = 2;
2469
- a || (a = u), o || (o = 100);
2510
+ o || (o = u), a || (a = 100);
2470
2511
  const l = {
2471
2512
  uri: "/api/idea/list",
2472
2513
  comId: `/community_id/${r}`,
2473
- limit: `/limit/${o}`,
2474
- page: `/page/${a}`
2514
+ limit: `/limit/${a}`,
2515
+ page: `/page/${o}`
2475
2516
  };
2476
2517
  let g = `${s}${l.uri}${l.comId}${l.limit}${l.page}`;
2477
2518
  C(e, (h) => {
@@ -2483,19 +2524,19 @@ function It(e, n, t = void 0, i = void 0) {
2483
2524
  },
2484
2525
  onComplete(w) {
2485
2526
  const _ = { response: JSON.parse(w) };
2486
- if (f = Math.ceil(Number(_.response.nb_result) / 100), w && f >= a) {
2487
- if (a++, l.page = `/page/${a}`, S = `${s}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
2527
+ if (f = Math.ceil(Number(_.response.nb_result) / 100), w && f >= o) {
2528
+ if (o++, l.page = `/page/${o}`, S = `${s}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
2488
2529
  d.push(_.response.result);
2489
2530
  else {
2490
- const b = _.response.result.find(
2491
- (j) => j.title.includes(c)
2531
+ const O = _.response.result.find(
2532
+ (k) => k.title.includes(c)
2492
2533
  );
2493
- if (b) {
2494
- t(b);
2534
+ if (O) {
2535
+ t(O);
2495
2536
  return;
2496
2537
  }
2497
2538
  }
2498
- if (t && f < a && !c) {
2539
+ if (t && f < o && !c) {
2499
2540
  p = !0, t(d);
2500
2541
  return;
2501
2542
  }
@@ -2503,15 +2544,15 @@ function It(e, n, t = void 0, i = void 0) {
2503
2544
  }
2504
2545
  },
2505
2546
  onFailure(w, _) {
2506
- const b = w;
2507
- b.status = _.status, b.response = _.errormsg, i && i(b);
2547
+ const O = w;
2548
+ O.status = _.status, O.response = _.errormsg, i && i(O);
2508
2549
  }
2509
2550
  });
2510
2551
  };
2511
2552
  p || y(g);
2512
2553
  });
2513
2554
  }
2514
- function Se(e) {
2555
+ function we(e) {
2515
2556
  return !e || e === "" ? `<h2><u>INFORMATIONS AFFAIRE :</u></h2>
2516
2557
  <p><u>|⚠️<em> Merci de respecter l&#39;écriture des tags, en MAJUSCULES, nom complet, pas de caractères</em></u></p>
2517
2558
  <p><u><em>|spéciaux, séparation par &#34;_&#34; si besoin !</em></u></p>
@@ -2586,9 +2627,9 @@ function Se(e) {
2586
2627
  <p>
2587
2628
  </p>` : e;
2588
2629
  }
2589
- function Rt(e, n = void 0, t = void 0) {
2590
- const { tenant: i, _3DSwym: s, _3DSwym_token: r, community_id: o, idea_id: a } = e;
2591
- if (i && s && r && o && a) {
2630
+ function Ft(e, n = void 0, t = void 0) {
2631
+ const { tenant: i, _3DSwym: s, _3DSwym_token: r, community_id: a, idea_id: o } = e;
2632
+ if (i && s && r && a && o) {
2592
2633
  const c = `${s}/api/idea/forward`;
2593
2634
  m(c, {
2594
2635
  method: "POST",
@@ -2598,8 +2639,8 @@ function Rt(e, n = void 0, t = void 0) {
2598
2639
  "X-DS-SWYM-CSRFTOKEN": r
2599
2640
  },
2600
2641
  data: JSON.stringify({
2601
- community_uri: `swym:prd:${i.toUpperCase()}:community:${o}`,
2602
- content_uri: `swym:prd:${i.toUpperCase()}:idea:${a}`,
2642
+ community_uri: `swym:prd:${i.toUpperCase()}:community:${a}`,
2643
+ content_uri: `swym:prd:${i.toUpperCase()}:idea:${o}`,
2603
2644
  timeout: 3e4
2604
2645
  }),
2605
2646
  type: "json",
@@ -2619,16 +2660,16 @@ function Rt(e, n = void 0, t = void 0) {
2619
2660
  credentials: e
2620
2661
  });
2621
2662
  }
2622
- function Ft(e, n = void 0, t = void 0) {
2663
+ function kt(e, n = void 0, t = void 0) {
2623
2664
  return new Promise((i, s) => {
2624
2665
  try {
2625
2666
  let r;
2626
2667
  if (e._3DDashboard) {
2627
- const o = e._3DDashboard + "/api/users/current";
2628
- m(o, {
2668
+ const a = e._3DDashboard + "/api/users/current";
2669
+ m(a, {
2629
2670
  method: "GET",
2630
- onComplete(a, c, d) {
2631
- let u = a.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, "");
2671
+ onComplete(o, c, d) {
2672
+ let u = o.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, "");
2632
2673
  u = u.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, "");
2633
2674
  let p = {};
2634
2675
  try {
@@ -2638,8 +2679,8 @@ function Ft(e, n = void 0, t = void 0) {
2638
2679
  }
2639
2680
  p.first_name = p?.firstName ? p.firstName : "", p.last_name = p?.lastName ? p.lastName : "", r = p, i(p);
2640
2681
  },
2641
- onFailure(a) {
2642
- s("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", a);
2682
+ onFailure(o) {
2683
+ s("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", o);
2643
2684
  }
2644
2685
  });
2645
2686
  }
@@ -2657,12 +2698,12 @@ function jt(e, n, t = void 0, i = void 0) {
2657
2698
  m(s, {
2658
2699
  method: "GET",
2659
2700
  headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
2660
- onComplete(o, a, c) {
2661
- const d = JSON.parse(o);
2701
+ onComplete(a, o, c) {
2702
+ const d = JSON.parse(a);
2662
2703
  t && t(d);
2663
2704
  },
2664
- onFailure(o) {
2665
- i && i(o);
2705
+ onFailure(a) {
2706
+ i && i(a);
2666
2707
  }
2667
2708
  });
2668
2709
  },
@@ -2674,15 +2715,15 @@ function vt(e, n = void 0, t = void 0) {
2674
2715
  _3DSwym: i,
2675
2716
  _3DSwym_token: s,
2676
2717
  subjectUri: r,
2677
- richMessage: o
2678
- } = e, a = `${i}/commentproxy/subjects/${r}/comments`, d = {
2718
+ richMessage: a
2719
+ } = e, o = `${i}/commentproxy/subjects/${r}/comments`, d = {
2679
2720
  method: "POST",
2680
2721
  headers: {
2681
2722
  "Content-type": "application/json;charset=UTF-8",
2682
2723
  Accept: "application/json",
2683
2724
  "X-DS-SWYM-CSRFTOKEN": s
2684
2725
  },
2685
- data: JSON.stringify({ richMessage: o }),
2726
+ data: JSON.stringify({ richMessage: a }),
2686
2727
  type: "json",
2687
2728
  onComplete(u, p, f) {
2688
2729
  const l = {
@@ -2694,9 +2735,9 @@ function vt(e, n = void 0, t = void 0) {
2694
2735
  t && t(u);
2695
2736
  }
2696
2737
  };
2697
- m(a, d);
2738
+ m(o, d);
2698
2739
  }
2699
- function kt(e, n = void 0, t = void 0) {
2740
+ function Dt(e, n = void 0, t = void 0) {
2700
2741
  e.tenant && J(e, (i) => {
2701
2742
  const s = i.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2702
2743
  return n && n(s), s;
@@ -2705,24 +2746,24 @@ function kt(e, n = void 0, t = void 0) {
2705
2746
  function At(e, n = void 0, t = void 0) {
2706
2747
  e.tenant ? J(e, (i) => {
2707
2748
  const s = i.services.find(
2708
- (a) => a.id === "3dpassport"
2709
- )?.url, r = i.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${s}/login/?cors=false&service=${r}/auth/cas`;
2710
- m(o, {
2711
- async onComplete(a) {
2712
- const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
2749
+ (o) => o.id === "3dpassport"
2750
+ )?.url, r = i.services.find((o) => o.id === "businessprocess")?.url + "/api/v2", a = `${s}/login/?cors=false&service=${r}/auth/cas`;
2751
+ m(a, {
2752
+ async onComplete(o) {
2753
+ const c = typeof o == "string" ? JSON.parse(o)?.x3ds_service_redirect_url : o?.x3ds_service_redirect_url;
2713
2754
  await fetch(c, {
2714
2755
  method: "POST"
2715
2756
  }).then((d) => d.json()).then(async (d) => {
2716
2757
  n && n(d?.token);
2717
2758
  });
2718
2759
  },
2719
- onFailure(a) {
2720
- t && t(a);
2760
+ onFailure(o) {
2761
+ t && t(o);
2721
2762
  }
2722
2763
  });
2723
2764
  }) : t && t("No tenant");
2724
2765
  }
2725
- function Dt(e, n = void 0, t = void 0) {
2766
+ function Pt(e, n = void 0, t = void 0) {
2726
2767
  if (e.tenant) {
2727
2768
  const i = e.tenant.toLowerCase();
2728
2769
  fetch(`https://api.uixhome.fr/${i}/iterop/jwtuser`, {
@@ -2734,7 +2775,7 @@ function Dt(e, n = void 0, t = void 0) {
2734
2775
  });
2735
2776
  }
2736
2777
  }
2737
- async function Pt(e, n, t = void 0, i = void 0) {
2778
+ async function Lt(e, n, t = void 0, i = void 0) {
2738
2779
  if (e.tenant) {
2739
2780
  const s = e.tenant.toLowerCase();
2740
2781
  fetch(
@@ -2749,7 +2790,7 @@ async function Pt(e, n, t = void 0, i = void 0) {
2749
2790
  });
2750
2791
  }
2751
2792
  }
2752
- function Lt(e, n, t, i = void 0, s = void 0) {
2793
+ function Jt(e, n, t, i = void 0, s = void 0) {
2753
2794
  if (e.tenant) {
2754
2795
  const r = e.tenant.toLowerCase();
2755
2796
  fetch(
@@ -2757,14 +2798,14 @@ function Lt(e, n, t, i = void 0, s = void 0) {
2757
2798
  {
2758
2799
  method: "POST"
2759
2800
  }
2760
- ).then((o) => o.json()).then((o) => {
2761
- i && i(o);
2762
- }).catch((o) => {
2763
- s && s(o);
2801
+ ).then((a) => a.json()).then((a) => {
2802
+ i && i(a);
2803
+ }).catch((a) => {
2804
+ s && s(a);
2764
2805
  });
2765
2806
  }
2766
2807
  }
2767
- async function Jt(e, n, t, i = void 0, s = void 0) {
2808
+ async function Mt(e, n, t, i = void 0, s = void 0) {
2768
2809
  if (e.tenant) {
2769
2810
  const r = e.tenant.toLowerCase();
2770
2811
  fetch(
@@ -2775,39 +2816,39 @@ async function Jt(e, n, t, i = void 0, s = void 0) {
2775
2816
  "Access-Control-Allow-Origin": "*"
2776
2817
  }
2777
2818
  }
2778
- ).then((o) => o.json()).then((o) => {
2779
- i && i(o);
2780
- }).catch((o) => {
2781
- s && s(o);
2819
+ ).then((a) => a.json()).then((a) => {
2820
+ i && i(a);
2821
+ }).catch((a) => {
2822
+ s && s(a);
2782
2823
  });
2783
2824
  }
2784
2825
  }
2785
- async function Mt(e, n, t, i, s = void 0, r = void 0) {
2826
+ async function Gt(e, n, t, i, s = void 0, r = void 0) {
2786
2827
  if (e.tenant) {
2787
- const o = e.tenant.toLowerCase();
2828
+ const a = e.tenant.toLowerCase();
2788
2829
  fetch(
2789
- `https://api.uixhome.fr/${o}/iterop/businesstable/patch/rows/${t}/?t=${n}&b=${i}`,
2830
+ `https://api.uixhome.fr/${a}/iterop/businesstable/patch/rows/${t}/?t=${n}&b=${i}`,
2790
2831
  {
2791
2832
  method: "POST"
2792
2833
  }
2793
- ).then((a) => a.json()).then((a) => {
2794
- s && s(a);
2795
- }).catch((a) => {
2796
- r && r(a, t, i);
2834
+ ).then((o) => o.json()).then((o) => {
2835
+ s && s(o);
2836
+ }).catch((o) => {
2837
+ r && r(o, t, i);
2797
2838
  });
2798
2839
  }
2799
2840
  }
2800
- async function Gt(e, n, t, i, s, r = void 0, o = void 0) {
2841
+ async function Bt(e, n, t, i, s, r = void 0, a = void 0) {
2801
2842
  if (e.tenant) {
2802
- const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${t}?t=${n}&c=${encodeURIComponent(
2843
+ const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${t}?t=${n}&c=${encodeURIComponent(
2803
2844
  i
2804
2845
  )}&b=${encodeURIComponent(s)}`;
2805
- fetch(a, {
2846
+ fetch(o, {
2806
2847
  method: "POST"
2807
2848
  }).then((c) => c.json()).then((c) => {
2808
- c.url = a, r && r(c);
2849
+ c.url = o, r && r(c);
2809
2850
  }).catch((c) => {
2810
- o && o({
2851
+ a && a({
2811
2852
  error: c,
2812
2853
  tableId: t,
2813
2854
  columns: i,
@@ -2816,56 +2857,56 @@ async function Gt(e, n, t, i, s, r = void 0, o = void 0) {
2816
2857
  });
2817
2858
  }
2818
2859
  }
2819
- async function Bt(e, n, t, i, s = void 0, r = void 0) {
2860
+ async function Et(e, n, t, i, s = void 0, r = void 0) {
2820
2861
  if (e.tenant) {
2821
- const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${t}?t=${n}&b=${encodeURIComponent(
2862
+ const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${t}?t=${n}&b=${encodeURIComponent(
2822
2863
  i
2823
2864
  )}`;
2824
- fetch(o, {
2865
+ fetch(a, {
2825
2866
  method: "POST"
2826
- }).then((a) => a.json()).then((a) => {
2827
- s && s(a);
2828
- }).catch((a) => {
2867
+ }).then((o) => o.json()).then((o) => {
2868
+ s && s(o);
2869
+ }).catch((o) => {
2829
2870
  r && r({
2830
- error: a,
2831
- url: o
2871
+ error: o,
2872
+ url: a
2832
2873
  });
2833
2874
  });
2834
2875
  }
2835
2876
  }
2836
- async function Et(e, n, t, i = void 0, s = void 0) {
2877
+ async function Kt(e, n, t, i = void 0, s = void 0) {
2837
2878
  if (e.tenant) {
2838
2879
  const r = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/create/?t=${n}&b=${encodeURIComponent(
2839
2880
  t
2840
2881
  )}`;
2841
2882
  fetch(r, {
2842
2883
  method: "POST"
2843
- }).then((o) => o.json()).then((o) => {
2844
- i && i(o);
2845
- }).catch((o) => {
2884
+ }).then((a) => a.json()).then((a) => {
2885
+ i && i(a);
2886
+ }).catch((a) => {
2846
2887
  s && s({
2847
- error: o,
2888
+ error: a,
2848
2889
  url: r
2849
2890
  });
2850
2891
  });
2851
2892
  }
2852
2893
  }
2853
- async function Kt(e, n, t, i, s = void 0, r = void 0) {
2894
+ async function qt(e, n, t, i, s = void 0, r = void 0) {
2854
2895
  if (e.tenant) {
2855
- const o = e.tenant.toLowerCase();
2896
+ const a = e.tenant.toLowerCase();
2856
2897
  fetch(
2857
- `https://api.uixhome.fr/${o}/iterop/runtime/processes/${t}?t=${n}&b=${i}`,
2898
+ `https://api.uixhome.fr/${a}/iterop/runtime/processes/${t}?t=${n}&b=${i}`,
2858
2899
  {
2859
2900
  method: "POST"
2860
2901
  }
2861
- ).then((a) => a.json()).then((a) => {
2862
- console.log("_Iterop_runProcess : OK"), s && s(a);
2863
- }).catch((a) => {
2864
- r && r(a);
2902
+ ).then((o) => o.json()).then((o) => {
2903
+ console.log("_Iterop_runProcess : OK"), s && s(o);
2904
+ }).catch((o) => {
2905
+ r && r(o);
2865
2906
  });
2866
2907
  }
2867
2908
  }
2868
- async function qt(e, n, t, i = void 0, s = void 0) {
2909
+ async function Xt(e, n, t, i = void 0, s = void 0) {
2869
2910
  if (console.log("_Iterop_GetOneDependencyTable | Run"), e.tenant) {
2870
2911
  const r = e.tenant.toLowerCase();
2871
2912
  fetch(
@@ -2873,45 +2914,45 @@ async function qt(e, n, t, i = void 0, s = void 0) {
2873
2914
  {
2874
2915
  method: "POST"
2875
2916
  }
2876
- ).then((o) => o.json()).then((o) => {
2877
- i && i(o);
2878
- }).catch((o) => {
2879
- s && s(o);
2917
+ ).then((a) => a.json()).then((a) => {
2918
+ i && i(a);
2919
+ }).catch((a) => {
2920
+ s && s(a);
2880
2921
  });
2881
2922
  }
2882
2923
  }
2883
- async function Xt(e, n, t, i, s, r = void 0, o = void 0) {
2924
+ async function Wt(e, n, t, i, s, r = void 0, a = void 0) {
2884
2925
  if (e.tenant) {
2885
- const a = e.tenant.toLowerCase();
2926
+ const o = e.tenant.toLowerCase();
2886
2927
  fetch(
2887
- `https://api.uixhome.fr/${a}/iterop/dependencytable/patch/${t}/?t=${n}&cli=${i}&b=${s}`,
2928
+ `https://api.uixhome.fr/${o}/iterop/dependencytable/patch/${t}/?t=${n}&cli=${i}&b=${s}`,
2888
2929
  {
2889
2930
  method: "POST"
2890
2931
  }
2891
2932
  ).then((c) => c.json()).then((c) => {
2892
2933
  r && r(c);
2893
2934
  }).catch((c) => {
2894
- o && o(c);
2935
+ a && a(c);
2895
2936
  });
2896
2937
  }
2897
2938
  }
2898
- async function Wt(e, n, t, i, s = void 0, r = void 0) {
2939
+ async function Vt(e, n, t, i, s = void 0, r = void 0) {
2899
2940
  if (e.tenant) {
2900
- const o = e.tenant.toLowerCase();
2941
+ const a = e.tenant.toLowerCase();
2901
2942
  fetch(
2902
- `https://api.uixhome.fr/${o}/iterop/dependencytable/put/${t}/?t=${n}&b=${i}`,
2943
+ `https://api.uixhome.fr/${a}/iterop/dependencytable/put/${t}/?t=${n}&b=${i}`,
2903
2944
  {
2904
2945
  method: "POST"
2905
2946
  }
2906
- ).then((a) => a.json()).then((a) => {
2907
- s && s(a);
2908
- }).catch((a) => {
2909
- r && r(a);
2947
+ ).then((o) => o.json()).then((o) => {
2948
+ s && s(o);
2949
+ }).catch((o) => {
2950
+ r && r(o);
2910
2951
  });
2911
2952
  }
2912
2953
  }
2913
2954
  //!SECTION
2914
- async function Vt(e, n, t, i = void 0, s = void 0) {
2955
+ async function Yt(e, n, t, i = void 0, s = void 0) {
2915
2956
  if (e.tenant) {
2916
2957
  const r = e.tenant.toLowerCase();
2917
2958
  fetch(
@@ -2919,42 +2960,42 @@ async function Vt(e, n, t, i = void 0, s = void 0) {
2919
2960
  {
2920
2961
  method: "POST"
2921
2962
  }
2922
- ).then((o) => o.json()).then((o) => {
2923
- i && i(o);
2924
- }).catch((o) => {
2925
- s && s(o);
2963
+ ).then((a) => a.json()).then((a) => {
2964
+ i && i(a);
2965
+ }).catch((a) => {
2966
+ s && s(a);
2926
2967
  });
2927
2968
  }
2928
2969
  }
2929
2970
  //!SECTION
2930
- function Yt(e) {
2971
+ function zt(e) {
2931
2972
  const n = "Hello " + e;
2932
2973
  return console.log(n), n;
2933
2974
  }
2934
- function zt(e, n = void 0, t = void 0) {
2975
+ function Ht(e, n = void 0, t = void 0) {
2935
2976
  return console.log("credentials", e), new Promise((i) => {
2936
- if (e.token === "" && O(e), !e.space || e.space === "") {
2937
- const o = Z();
2938
- console.log("platformeInfo", o);
2977
+ if (e.token === "" && b(e), !e.space || e.space === "") {
2978
+ const a = Z();
2979
+ console.log("platformeInfo", a);
2939
2980
  }
2940
2981
  F(
2941
2982
  e,
2942
2983
  "Common space",
2943
2984
  ["VPLMProjectLeader", "VPLMCreator"],
2944
2985
  void 0,
2945
- (o) => e.ctx = o,
2946
- (o) => {
2947
- console.log("onError =>", o);
2986
+ (a) => e.ctx = a,
2987
+ (a) => {
2988
+ console.log("onError =>", a);
2948
2989
  },
2949
2990
  !0
2950
2991
  );
2951
2992
  const s = T.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
2952
2993
  m(r, {
2953
- onComplete(o) {
2954
- if (Array.isArray(JSON.parse(o))) {
2955
- const a = JSON.parse(o);
2956
- console.log("serviceId=3dsearch", a);
2957
- const c = `${a[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
2994
+ onComplete(a) {
2995
+ if (Array.isArray(JSON.parse(a))) {
2996
+ const o = JSON.parse(a);
2997
+ console.log("serviceId=3dsearch", o);
2998
+ const c = `${o[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
2958
2999
  m(c, {
2959
3000
  method: "POST",
2960
3001
  headers: {
@@ -3004,32 +3045,33 @@ function zt(e, n = void 0, t = void 0) {
3004
3045
  });
3005
3046
  }
3006
3047
  },
3007
- onFailure(o) {
3008
- t && t(o);
3048
+ onFailure(a) {
3049
+ t && t(a);
3009
3050
  }
3010
3051
  });
3011
3052
  });
3012
3053
  }
3013
3054
  export {
3014
3055
  Y as UUID,
3015
- zt as _3DSearch_usersGroup,
3056
+ Ht as _3DSearch_usersGroup,
3016
3057
  et as _3DSpace_Create_Doc,
3017
3058
  Ze as _3DSpace_Update_Doc,
3018
3059
  Qe as _3DSpace_Upload_File,
3019
- ct as _3DSpace_bookmark_addSubsciptions,
3020
- rt as _3DSpace_bookmark_newWorkspace,
3021
- O as _3DSpace_csrf,
3060
+ dt as _3DSpace_bookmark_addSubsciptions,
3061
+ rt as _3DSpace_bookmark_getChildren,
3062
+ ct as _3DSpace_bookmark_newWorkspace,
3063
+ b as _3DSpace_csrf,
3022
3064
  E as _3DSpace_download_doc,
3023
- ce as _3DSpace_download_multidoc,
3065
+ de as _3DSpace_download_multidoc,
3024
3066
  G as _3DSpace_file_update,
3025
- oe as _3DSpace_file_update_csr,
3067
+ ae as _3DSpace_file_update_csr,
3026
3068
  ze as _3DSpace_file_url_csr,
3027
3069
  R as _3DSpace_get_csrf,
3028
3070
  M as _3DSpace_get_docInfo,
3029
- de as _3DSpace_get_downloadTicket_multidoc,
3030
- Ye as _3DSpace_get_multiDocInfo,
3071
+ ue as _3DSpace_get_downloadTicket_multidoc,
3072
+ oe as _3DSpace_get_multiDocInfo,
3031
3073
  F as _3DSpace_get_securityContexts,
3032
- v as _3DSpace_get_ticket,
3074
+ j as _3DSpace_get_ticket,
3033
3075
  ot as _3DSpace_lifecycle_changeRevision,
3034
3076
  nt as _3DSpace_lifecycle_changeState,
3035
3077
  st as _3DSpace_lifecycle_getGraph,
@@ -3037,81 +3079,81 @@ export {
3037
3079
  tt as _3DSpace_lifecycle_getNextStates,
3038
3080
  at as _3DSpace_lifecycle_getRevisions,
3039
3081
  He as _3DSpace_put_docInfo,
3040
- Rt as _3DSwym_ForwardIdea,
3082
+ Ft as _3DSwym_ForwardIdea,
3041
3083
  vt as _3DSwym_addComment,
3042
- bt as _3DSwym_buildDirectMessage,
3043
- Ut as _3DSwym_deleteIdea,
3084
+ Tt as _3DSwym_buildDirectMessage,
3085
+ xt as _3DSwym_deleteIdea,
3044
3086
  Nt as _3DSwym_editIdea,
3045
- ye as _3DSwym_findCommunityToInstantMSG,
3046
- Ct as _3DSwym_getAllCommunities,
3047
- It as _3DSwym_getAllListIdeas,
3048
- St as _3DSwym_getAllNews,
3049
- wt as _3DSwym_getFamiliarPeople,
3087
+ _e as _3DSwym_findCommunityToInstantMSG,
3088
+ bt as _3DSwym_getAllCommunities,
3089
+ Rt as _3DSwym_getAllListIdeas,
3090
+ wt as _3DSwym_getAllNews,
3091
+ Ct as _3DSwym_getFamiliarPeople,
3050
3092
  Ot as _3DSwym_getIdeaStatusMaturity,
3051
- he as _3DSwym_getMembersCommunity,
3052
- xt as _3DSwym_getOneIdea,
3093
+ ye as _3DSwym_getMembersCommunity,
3094
+ It as _3DSwym_getOneIdea,
3053
3095
  C as _3DSwym_get_Token,
3054
- Ft as _3DSwym_get_currentUser,
3096
+ kt as _3DSwym_get_currentUser,
3055
3097
  jt as _3DSwym_get_findUser,
3056
- $t as _3DSwym_postIdea,
3057
- Tt as _3DSwym_postIdeaTemplate,
3098
+ Ut as _3DSwym_postIdea,
3099
+ $t as _3DSwym_postIdeaTemplate,
3058
3100
  P as _3DSwym_sendMessageData,
3059
- Je as _AppMngt_get_info_user,
3060
- Le as _AppMngt_get_users,
3061
- Mt as _Iterop_AddOrRemoveRows,
3101
+ Me as _AppMngt_get_info_user,
3102
+ Je as _AppMngt_get_users,
3103
+ Gt as _Iterop_AddOrRemoveRows,
3062
3104
  At as _Iterop_Auth_CAS,
3063
- qt as _Iterop_GetOneDependencyTable,
3064
- Vt as _Iterop_GetOneList,
3065
- Xt as _Iterop_PatchDependencyTable,
3066
- Wt as _Iterop_PutDependencyTable,
3067
- Gt as _Iterop_businessTableSearchInRows,
3068
- Et as _Iterop_createBusinessTable,
3069
- Pt as _Iterop_getAllBusinessTables,
3070
- Lt as _Iterop_getOneBusinessTable,
3071
- Jt as _Iterop_getOneBusinessTableRows,
3072
- Dt as _Iterop_jwtUser,
3073
- Kt as _Iterop_runProcess,
3074
- Bt as _Iterop_updateBusinessTable,
3075
- De as _Registry_getServicesUrl,
3076
- ke as _getMe,
3105
+ Xt as _Iterop_GetOneDependencyTable,
3106
+ Yt as _Iterop_GetOneList,
3107
+ Wt as _Iterop_PatchDependencyTable,
3108
+ Vt as _Iterop_PutDependencyTable,
3109
+ Bt as _Iterop_businessTableSearchInRows,
3110
+ Kt as _Iterop_createBusinessTable,
3111
+ Lt as _Iterop_getAllBusinessTables,
3112
+ Jt as _Iterop_getOneBusinessTable,
3113
+ Mt as _Iterop_getOneBusinessTableRows,
3114
+ Pt as _Iterop_jwtUser,
3115
+ qt as _Iterop_runProcess,
3116
+ Et as _Iterop_updateBusinessTable,
3117
+ Pe as _Registry_getServicesUrl,
3118
+ De as _getMe,
3077
3119
  Z as _getPlateformInfos,
3078
3120
  ve as _getPlatformServices,
3079
3121
  J as _getServiceUrl,
3080
3122
  Ae as _getServiceUrl_3DPassport,
3081
- kt as _getServiceUrl_Iterop,
3123
+ Dt as _getServiceUrl_Iterop,
3082
3124
  m as _httpCallAuthenticated,
3083
- Re as _setDraggable,
3125
+ Fe as _setDraggable,
3084
3126
  je as _setDroppable,
3085
- Fe as _setupTagger,
3086
- ht as addTagToDoc,
3127
+ ke as _setupTagger,
3128
+ yt as addTagToDoc,
3087
3129
  H as chunkArray,
3088
- Pe as compass_getListAdditionalApps,
3130
+ Le as compass_getListAdditionalApps,
3089
3131
  z as couleurs,
3090
- Me as createUserGroups,
3091
- pe as dataMixing,
3092
- qe as deleteUserGroups,
3093
- xe as findAdresse,
3094
- dt as getAllContextSecurity,
3132
+ Ge as createUserGroups,
3133
+ le as dataMixing,
3134
+ Xe as deleteUserGroups,
3135
+ Ie as findAdresse,
3136
+ ut as getAllContextSecurity,
3095
3137
  te as getCSRFToken,
3096
- Ue as getCommunes,
3097
- Ge as getComplementUG,
3098
- ut as getDataFrom3DSpace,
3138
+ xe as getCommunes,
3139
+ Be as getComplementUG,
3140
+ pt as getDataFrom3DSpace,
3099
3141
  Ne as getDataFromGouvFr,
3100
- mt as getDatasByTenant,
3101
- gt as getDatasFrom3DSpace,
3102
- pt as getDownloadDocument,
3103
- _t as getInfoDocTags,
3104
- Ke as getUserGroupsByEmailList,
3105
- Ee as getUserGroupsByURIList,
3106
- Be as getUserGroupsList,
3142
+ gt as getDatasByTenant,
3143
+ ht as getDatasFrom3DSpace,
3144
+ lt as getDownloadDocument,
3145
+ St as getInfoDocTags,
3146
+ qe as getUserGroupsByEmailList,
3147
+ Ke as getUserGroupsByURIList,
3148
+ Ee as getUserGroupsList,
3107
3149
  ee as getUsersGroupRules,
3108
- ft as get_3DSpace_csrf,
3109
- Xe as patchUserGroups,
3110
- We as patchUserGroupsControl,
3111
- lt as pushDataIn3DSpace,
3112
- Ve as readUserGroupControl,
3113
- yt as removeTagToDoc,
3114
- Yt as sayHello,
3115
- Ie as updateEvent
3150
+ mt as get_3DSpace_csrf,
3151
+ We as patchUserGroups,
3152
+ Ve as patchUserGroupsControl,
3153
+ ft as pushDataIn3DSpace,
3154
+ Ye as readUserGroupControl,
3155
+ _t as removeTagToDoc,
3156
+ zt as sayHello,
3157
+ Re as updateEvent
3116
3158
  };
3117
3159
  //# sourceMappingURL=wb3Api.js.map