@beam3_dev/api_module 0.0.88 → 0.0.90

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
@@ -68,8 +68,8 @@ async function re(e, t = void 0, s = void 0) {
68
68
  async function ce(e, t = L) {
69
69
  let s = N.now().year;
70
70
  const n = e, i = [], c = (a) => {
71
- for (let o in a)
72
- i.push({ date: o, comment: a[o] });
71
+ for (let r in a)
72
+ i.push({ date: r, comment: a[r] });
73
73
  };
74
74
  for (let a = s; a <= s + 1; a++)
75
75
  await fetch(
@@ -80,20 +80,20 @@ async function ce(e, t = L) {
80
80
  Accept: "application/json"
81
81
  }
82
82
  }
83
- ).then((o) => o.json()).then((o) => {
84
- c(o);
85
- }).catch((o) => console.error("Erreur : " + o));
83
+ ).then((r) => r.json()).then((r) => {
84
+ c(r);
85
+ }).catch((r) => console.error("Erreur : " + r));
86
86
  return (() => {
87
87
  const a = n.length === 0 ? {
88
88
  events: []
89
89
  } : n;
90
- for (let o of i)
90
+ for (let r of i)
91
91
  a.events.findIndex(
92
- (l) => l.start === N.fromISO(o.date).toISODate() && l.name === "Férié : " + o.comment
92
+ (l) => l.start === N.fromISO(r.date).toISODate() && l.name === "Férié : " + r.comment
93
93
  ) === -1 && a.events.push({
94
- name: "Férié : " + o.comment,
95
- start: N.fromISO(o.date).toISODate(),
96
- end: N.fromISO(o.date).toISODate(),
94
+ name: "Férié : " + r.comment,
95
+ start: N.fromISO(r.date).toISODate(),
96
+ end: N.fromISO(r.date).toISODate(),
97
97
  color: t.b3BusinnessDays,
98
98
  timed: !1
99
99
  });
@@ -169,42 +169,42 @@ function ge(e, t, s) {
169
169
  "Content-Type": "application/json",
170
170
  Accept: "application/json"
171
171
  },
172
- onComplete(c, r, a) {
173
- const o = JSON.parse(c), d = o.data.map((l) => {
172
+ onComplete(c, o, a) {
173
+ const r = JSON.parse(c), d = r.data.map((l) => {
174
174
  const p = l.attributes.name, u = l.id;
175
175
  return { name: p, id: u };
176
176
  });
177
- t && t(d, o);
177
+ t && t(d, r);
178
178
  },
179
- onFailure(c, r) {
179
+ onFailure(c, o) {
180
180
  const a = c;
181
- a.msg = r.errormsg, a.errCode = r.errorcode, s && s(a);
181
+ a.msg = o.errormsg, a.errCode = o.errorcode, s && s(a);
182
182
  }
183
183
  });
184
184
  }
185
185
  function he(e, t = void 0, s = void 0) {
186
186
  let n = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
187
187
  m(n, {
188
- onComplete(i, c, r) {
188
+ onComplete(i, c, o) {
189
189
  const a = JSON.parse(i);
190
190
  console.log("_AppMngt_get_users => ", a), t && t(a);
191
191
  },
192
192
  onFailure(i, c) {
193
- const r = i;
194
- r.msg = c.errormsg, r.errCode = c.errorcode, s && s(r);
193
+ const o = i;
194
+ o.msg = c.errormsg, o.errCode = c.errorcode, s && s(o);
195
195
  }
196
196
  });
197
197
  }
198
198
  function Se(e, t, s = void 0, n = void 0) {
199
199
  let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
200
200
  m(i, {
201
- onComplete(c, r, a) {
202
- const o = JSON.parse(c);
203
- s && s(o);
201
+ onComplete(c, o, a) {
202
+ const r = JSON.parse(c);
203
+ s && s(r);
204
204
  },
205
- onFailure(c, r) {
205
+ onFailure(c, o) {
206
206
  const a = c;
207
- a.msg = r.errormsg, a.errCode = r.errorcode, n && n(a);
207
+ a.msg = o.errormsg, a.errCode = o.errorcode, n && n(a);
208
208
  }
209
209
  });
210
210
  }
@@ -215,7 +215,7 @@ const D = {
215
215
  function _e(e, t, s = void 0, n = void 0) {
216
216
  const { space: i, currentUser: c } = e, a = `${i}${{
217
217
  URIUGr: "/3drdfpersist/resources/v1/usersgroup"
218
- }.URIUGr}`, o = {
218
+ }.URIUGr}`, r = {
219
219
  groups: [
220
220
  {
221
221
  title: t.title,
@@ -230,7 +230,7 @@ function _e(e, t, s = void 0, n = void 0) {
230
230
  m(a, {
231
231
  method: "POST",
232
232
  headers: D,
233
- data: JSON.stringify(o),
233
+ data: JSON.stringify(r),
234
234
  onComplete(d) {
235
235
  s && s(JSON.parse(d));
236
236
  },
@@ -242,7 +242,7 @@ function _e(e, t, s = void 0, n = void 0) {
242
242
  });
243
243
  }
244
244
  function ye(e, t, s = void 0, n = void 0) {
245
- const { space: i, tenant: c } = e, r = i, a = `/3drdfpersist/v1/resources/${t}`, o = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${c}`, d = `${r}${a}${o}`;
245
+ const { space: i, tenant: c } = e, o = i, a = `/3drdfpersist/v1/resources/${t}`, r = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${c}`, d = `${o}${a}${r}`;
246
246
  m(d, {
247
247
  opts: {
248
248
  method: "GET",
@@ -261,12 +261,12 @@ function ye(e, t, s = void 0, n = void 0) {
261
261
  });
262
262
  }
263
263
  function J(e, t = void 0, s = void 0) {
264
- const { space: n, tenant: i } = e, c = n, r = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, o = {
264
+ const { space: n, tenant: i } = e, c = n, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, r = {
265
265
  method: "GET",
266
266
  Accept: "application/json,*/*,test/javascript"
267
- }, d = `${c}${r}${a}`;
267
+ }, d = `${c}${o}${a}`;
268
268
  m(d, {
269
- OPTsH: o,
269
+ OPTsH: r,
270
270
  onComplete(l) {
271
271
  t && t(JSON.parse(l));
272
272
  },
@@ -314,15 +314,15 @@ function Ce(e, t) {
314
314
  });
315
315
  }
316
316
  function Te(e, t, s, n = void 0, i = void 0) {
317
- const { space: c, tenant: r } = e, a = {
317
+ const { space: c, tenant: o } = e, a = {
318
318
  URITI: "/3drdfpersist/resources/v1/template-instances",
319
319
  URIUGr: "/3drdfpersist/resources/v1/usersgroup",
320
320
  nextURICh: "/characteristics",
321
321
  nextURIGr: "/group",
322
322
  nexURImem: "/members",
323
323
  OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
324
- OPTsTenant: `tenant=dstenant:${r}`
325
- }, o = s, d = `${c}${a.URIUGr}/${t}`, l = JSON.stringify(o);
324
+ OPTsTenant: `tenant=dstenant:${o}`
325
+ }, r = s, d = `${c}${a.URIUGr}/${t}`, l = JSON.stringify(r);
326
326
  m(d, {
327
327
  headers: D,
328
328
  method: "PATCH",
@@ -352,8 +352,8 @@ function Oe(e, t, s, n = void 0, i = void 0) {
352
352
  });
353
353
  }
354
354
  function Ne(e, t, s = void 0, n = void 0) {
355
- const { space: i } = e, r = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
356
- m(r, {
355
+ const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
356
+ m(o, {
357
357
  opts: {
358
358
  method: "GET",
359
359
  headers: {
@@ -376,8 +376,8 @@ async function E(e, t, s) {
376
376
  onComplete(i) {
377
377
  i = JSON.parse(i), t && t(i.csrf);
378
378
  },
379
- onFailure(i, c, r) {
380
- s && s({ error: i, headers: c, xhr: r });
379
+ onFailure(i, c, o) {
380
+ s && s({ error: i, headers: c, xhr: o });
381
381
  }
382
382
  });
383
383
  }
@@ -390,12 +390,12 @@ async function G(e, t = void 0, s = void 0, n = void 0) {
390
390
  }
391
391
  const c = i + `/resources/v1/modeler/documents/${t}`;
392
392
  m(c, {
393
- onComplete(r, a, o) {
394
- const d = JSON.parse(r);
393
+ onComplete(o, a, r) {
394
+ const d = JSON.parse(o);
395
395
  s && s(d);
396
396
  },
397
- onFailure(r) {
398
- n && n(r);
397
+ onFailure(o) {
398
+ n && n(o);
399
399
  }
400
400
  });
401
401
  }
@@ -403,7 +403,7 @@ function k(e, t = void 0, s = void 0) {
403
403
  if (e.objID && e.objID !== "") {
404
404
  let n = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
405
405
  m(n, {
406
- onComplete(i, c, r) {
406
+ onComplete(i, c, o) {
407
407
  const a = JSON.parse(i);
408
408
  e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
409
409
  },
@@ -426,15 +426,15 @@ function T(e, t = void 0, s = void 0) {
426
426
  if (e.space) {
427
427
  const n = e.space + "/resources/v1/application/CSRF";
428
428
  m(n, {
429
- onComplete(i, c, r) {
429
+ onComplete(i, c, o) {
430
430
  const a = JSON.parse(i);
431
431
  t && t(a.csrf.value);
432
432
  },
433
- onFailure(i, c, r) {
433
+ onFailure(i, c, o) {
434
434
  s && s({
435
435
  response: i,
436
436
  headers: c,
437
- xhr: r
437
+ xhr: o
438
438
  });
439
439
  }
440
440
  });
@@ -455,8 +455,8 @@ function A(e, t = void 0, s = void 0) {
455
455
  const a = JSON.parse(c).data[0].dataelements.ticketURL;
456
456
  t && t(a);
457
457
  },
458
- onFailure(c, r) {
459
- console.warn("☠️ error => ", c, r), s && s(c, r);
458
+ onFailure(c, o) {
459
+ console.warn("☠️ error => ", c, o), s && s(c, o);
460
460
  }
461
461
  });
462
462
  },
@@ -472,22 +472,22 @@ function be(e, t, s, n = void 0, i = void 0) {
472
472
  headers: {
473
473
  ENO_CSRF_TOKEN: s
474
474
  },
475
- onComplete(r) {
476
- let a = JSON.parse(r);
475
+ onComplete(o) {
476
+ let a = JSON.parse(o);
477
477
  if (console.log("☠️ info => ", a), a.success === !0)
478
478
  try {
479
- const o = a.data[0].dataelements.ticketURL;
480
- n && n(o);
481
- } catch (o) {
482
- i && i(o);
479
+ const r = a.data[0].dataelements.ticketURL;
480
+ n && n(r);
481
+ } catch (r) {
482
+ i && i(r);
483
483
  }
484
484
  },
485
- onFailure(r) {
486
- i && i(r);
485
+ onFailure(o) {
486
+ i && i(o);
487
487
  }
488
488
  });
489
489
  }
490
- function K(e, t, s, n, i, c = void 0, r = void 0) {
490
+ function K(e, t, s, n, i, c = void 0, o = void 0) {
491
491
  k(
492
492
  e,
493
493
  t,
@@ -500,14 +500,14 @@ function K(e, t, s, n, i, c = void 0, r = void 0) {
500
500
  i,
501
501
  a.csrf.value,
502
502
  c,
503
- r
503
+ o
504
504
  );
505
505
  }
506
506
  );
507
507
  }
508
- function X(e, t, s, n, i, c, r = void 0, a = void 0) {
509
- const o = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
510
- m(o, {
508
+ function X(e, t, s, n, i, c, o = void 0, a = void 0) {
509
+ const r = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
510
+ m(r, {
511
511
  method: "PUT",
512
512
  headers: {
513
513
  ENO_CSRF_TOKEN: c
@@ -540,7 +540,7 @@ function X(e, t, s, n, i, c, r = void 0, a = void 0) {
540
540
  }),
541
541
  type: "json",
542
542
  onComplete(y) {
543
- r && r(y);
543
+ o && o(y);
544
544
  },
545
545
  onFailure(y) {
546
546
  a && a(y);
@@ -557,13 +557,13 @@ function X(e, t, s, n, i, c, r = void 0, a = void 0) {
557
557
  });
558
558
  }
559
559
  async function ke(e, t, s, n, i = void 0, c = void 0) {
560
- const r = e.space, a = e.token, o = e.ctx, d = new FormData(), l = new Blob([JSON.stringify(t)], {
560
+ const o = e.space, a = e.token, r = e.ctx, d = new FormData(), l = new Blob([JSON.stringify(t)], {
561
561
  type: "text/plain"
562
562
  }), p = {
563
- url_Ticket: `${r}/resources/v1/modeler/documents/files/CheckinTicket`,
564
- url_Post: `${r}/resources/v1/modeler/documents/?SecurityContext=ctx::${o}`
563
+ url_Ticket: `${o}/resources/v1/modeler/documents/files/CheckinTicket`,
564
+ url_Post: `${o}/resources/v1/modeler/documents/?SecurityContext=ctx::${r}`
565
565
  };
566
- if (!r && r !== "") {
566
+ if (!o && o !== "") {
567
567
  console.log("le store._3DSpace est vide");
568
568
  return;
569
569
  }
@@ -579,7 +579,7 @@ async function ke(e, t, s, n, i = void 0, c = void 0) {
579
579
  method: "POST",
580
580
  data: d,
581
581
  onComplete(C) {
582
- if (o !== "" && a !== "") {
582
+ if (r !== "" && a !== "") {
583
583
  const F = {
584
584
  method: "POST",
585
585
  headers: {
@@ -611,7 +611,7 @@ async function ke(e, t, s, n, i = void 0, c = void 0) {
611
611
  onComplete: _,
612
612
  onFailure: y
613
613
  };
614
- o !== "" && m(p.url_Post, F);
614
+ r !== "" && m(p.url_Post, F);
615
615
  } else
616
616
  console.warn("le store est vide");
617
617
  },
@@ -628,12 +628,12 @@ async function ke(e, t, s, n, i = void 0, c = void 0) {
628
628
  }
629
629
  });
630
630
  }
631
- function b(e, t = void 0, s = void 0, n = void 0, i = void 0, c = void 0, r = !1) {
631
+ function b(e, t = void 0, s = void 0, n = void 0, i = void 0, c = void 0, o = !1) {
632
632
  const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
633
633
  m(a, {
634
634
  method: "GET",
635
- onComplete(o) {
636
- const d = JSON.parse(o);
635
+ onComplete(r) {
636
+ const d = JSON.parse(r);
637
637
  let l = "", p, u, f;
638
638
  if (t) {
639
639
  let g = d.collabspaces.find((h) => h.title === t);
@@ -667,11 +667,11 @@ function b(e, t = void 0, s = void 0, n = void 0, i = void 0, c = void 0, r = !1
667
667
  }));
668
668
  }
669
669
  }
670
- p && u && f ? (l = f + "." + u + "." + p, i(l)) : d.preferredcredentials && r ? (l = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(l)) : c && (l = f + "." + u + "." + p, c(l));
670
+ p && u && f ? (l = f + "." + u + "." + p, i(l)) : d.preferredcredentials && o ? (l = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(l)) : c && (l = f + "." + u + "." + p, c(l));
671
671
  },
672
- onFailure(o, d) {
672
+ onFailure(r, d) {
673
673
  console.log("Erreur de récupération du contexte de sécurité. => ", {
674
- err: o,
674
+ err: r,
675
675
  headers: d
676
676
  });
677
677
  }
@@ -702,22 +702,22 @@ async function I(e, t = void 0, s = void 0) {
702
702
  Accept: "application/json"
703
703
  },
704
704
  onComplete(a) {
705
- let o;
705
+ let r;
706
706
  try {
707
- o = JSON.parse(a);
707
+ r = JSON.parse(a);
708
708
  } catch {
709
- o = a;
709
+ r = a;
710
710
  }
711
- t && t(o), n(o);
711
+ t && t(r), n(r);
712
712
  },
713
- onFailure(a, o, d) {
713
+ onFailure(a, r, d) {
714
714
  s && (console.log("error http", a), s({
715
715
  msg: JSON.parse(a),
716
- headers: o,
716
+ headers: r,
717
717
  xhr: d
718
718
  }), i({
719
719
  msg: JSON.parse(a),
720
- headers: o,
720
+ headers: r,
721
721
  xhr: d
722
722
  }));
723
723
  }
@@ -733,33 +733,33 @@ async function W(e, t, s = void 0, n = void 0) {
733
733
  let i = [];
734
734
  if (typeof t < "u" && Array.isArray(t) && t?.length > 0) {
735
735
  for (let a = 0; a < t.length; a += 80) {
736
- const o = t.slice(a, a + 80);
737
- i.push(o);
736
+ const r = t.slice(a, a + 80);
737
+ i.push(r);
738
738
  }
739
- const r = (a) => {
739
+ const o = (a) => {
740
740
  V(
741
741
  e,
742
742
  i[a],
743
743
  () => {
744
- a++, a < i.length && r(a);
744
+ a++, a < i.length && o(a);
745
745
  },
746
- (o) => {
747
- s && s(o);
746
+ (r) => {
747
+ s && s(r);
748
748
  }
749
749
  );
750
750
  };
751
- r(0);
751
+ o(0);
752
752
  } else
753
753
  console.warn("La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."), n && n("La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini.");
754
754
  }
755
755
  function V(e, t, s = void 0, n = void 0, i = void 0) {
756
756
  const c = [];
757
- t.forEach((o) => {
757
+ t.forEach((r) => {
758
758
  c.push({
759
- id: o
759
+ id: r
760
760
  });
761
761
  });
762
- let r = JSON.stringify({
762
+ let o = JSON.stringify({
763
763
  csrf: {
764
764
  name: "ENO_CSRF_TOKEN",
765
765
  value: e.token
@@ -769,11 +769,11 @@ function V(e, t, s = void 0, n = void 0, i = void 0) {
769
769
  const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
770
770
  m(a, {
771
771
  method: "PUT",
772
- data: r,
772
+ data: o,
773
773
  type: "json",
774
- onComplete(o) {
775
- const d = o.data;
776
- o.success === !0 && (s && s(), d.forEach((l) => {
774
+ onComplete(r) {
775
+ const d = r.data;
776
+ r.success === !0 && (s && s(), d.forEach((l) => {
777
777
  try {
778
778
  const p = l.dataelements.fileName, u = l.dataelements.ticketURL;
779
779
  m(u, {
@@ -793,8 +793,8 @@ function V(e, t, s = void 0, n = void 0, i = void 0) {
793
793
  }
794
794
  }));
795
795
  },
796
- onFailure(o) {
797
- console.log(o), i && i(o);
796
+ onFailure(r) {
797
+ console.log(r), i && i(r);
798
798
  }
799
799
  });
800
800
  }
@@ -812,7 +812,7 @@ function Fe(e, t, s = void 0, n = void 0) {
812
812
  console.log("onError =>", a);
813
813
  }
814
814
  );
815
- let r = {
815
+ let o = {
816
816
  method: "POST",
817
817
  headers: {
818
818
  SecurityContext: "ctx::" + e.ctx,
@@ -833,22 +833,22 @@ function Fe(e, t, s = void 0, n = void 0) {
833
833
  n && n(a);
834
834
  }
835
835
  };
836
- m(c, r);
836
+ m(c, o);
837
837
  }
838
838
  });
839
839
  }
840
840
  function De(e, t, s, n = void 0, i = void 0) {
841
841
  return new Promise((c) => {
842
842
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
843
- const r = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
843
+ const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
844
844
  b(
845
845
  e.space,
846
846
  "ESPACE COMMUN",
847
847
  ["VPLMProjectLeader", "VPLMCreator"],
848
848
  void 0,
849
- (o) => e.ctx = o,
850
- (o) => {
851
- console.log("onError =>", o);
849
+ (r) => e.ctx = r,
850
+ (r) => {
851
+ console.log("onError =>", r);
852
852
  }
853
853
  );
854
854
  let a = {
@@ -866,14 +866,14 @@ function De(e, t, s, n = void 0, i = void 0) {
866
866
  }]
867
867
  }),
868
868
  type: "json",
869
- onComplete(o) {
870
- n && n(o);
869
+ onComplete(r) {
870
+ n && n(r);
871
871
  },
872
- onFailure(o) {
873
- i && i(o);
872
+ onFailure(r) {
873
+ i && i(r);
874
874
  }
875
875
  };
876
- m(r, a);
876
+ m(o, a);
877
877
  }
878
878
  });
879
879
  }
@@ -891,7 +891,7 @@ function Ae(e, t, s = void 0, n = void 0) {
891
891
  console.log("onError =>", a);
892
892
  }
893
893
  );
894
- let r = {
894
+ let o = {
895
895
  method: "POST",
896
896
  headers: {
897
897
  securitycontext: "ctx::" + e.ctx,
@@ -912,7 +912,7 @@ function Ae(e, t, s = void 0, n = void 0) {
912
912
  n && n(a);
913
913
  }
914
914
  };
915
- m(c, r);
915
+ m(c, o);
916
916
  }
917
917
  });
918
918
  }
@@ -930,7 +930,7 @@ function $e(e, t, s = void 0, n = void 0) {
930
930
  console.log("onError =>", a);
931
931
  }
932
932
  );
933
- let r = {
933
+ let o = {
934
934
  method: "POST",
935
935
  headers: {
936
936
  SecurityContext: "ctx::" + e.ctx,
@@ -957,22 +957,22 @@ function $e(e, t, s = void 0, n = void 0) {
957
957
  n && n(a);
958
958
  }
959
959
  };
960
- m(c, r);
960
+ m(c, o);
961
961
  }
962
962
  });
963
963
  }
964
964
  function Ue(e, t, s, n = void 0, i = void 0) {
965
965
  return new Promise((c) => {
966
966
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
967
- const r = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
967
+ const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
968
968
  b(
969
969
  e.space,
970
970
  "ESPACE COMMUN",
971
971
  ["VPLMProjectLeader", "VPLMCreator"],
972
972
  void 0,
973
- (o) => e.ctx = o,
974
- (o) => {
975
- console.log("onError =>", o);
973
+ (r) => e.ctx = r,
974
+ (r) => {
975
+ console.log("onError =>", r);
976
976
  }
977
977
  );
978
978
  let a = {
@@ -995,14 +995,14 @@ function Ue(e, t, s, n = void 0, i = void 0) {
995
995
  notificationTimeout: 600
996
996
  }),
997
997
  type: "json",
998
- onComplete(o) {
999
- n && n(o);
998
+ onComplete(r) {
999
+ n && n(r);
1000
1000
  },
1001
- onFailure(o) {
1002
- i && i(o);
1001
+ onFailure(r) {
1002
+ i && i(r);
1003
1003
  }
1004
1004
  };
1005
- m(r, a);
1005
+ m(o, a);
1006
1006
  }
1007
1007
  });
1008
1008
  }
@@ -1011,11 +1011,10 @@ function je(e, t, s = void 0, n = void 0) {
1011
1011
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
1012
1012
  const c = N.now().ts;
1013
1013
  `${e.space}`, m(`https://eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e._platformId}`, {
1014
- onComplete(r) {
1015
- if (Array.isArray(JSON.parse(r))) {
1016
- oResponse = JSON.parse(r)[0];
1017
- const a = `${oResponse.service[0].url}/search?xrequestedwith=xmlhttprequest&tenant=${e._platformId}&timestamp=${c}`;
1018
- m(a, {
1014
+ onComplete(o) {
1015
+ if (Array.isArray(JSON.parse(o))) {
1016
+ const r = `${JSON.parse(o)[0].services[0].url}/search?xrequestedwith=xmlhttprequest&tenant=${e._platformId}&timestamp=${c}`;
1017
+ m(r, {
1019
1018
  method: "POST",
1020
1019
  headers: {
1021
1020
  Accept: "application/json",
@@ -1050,17 +1049,17 @@ function je(e, t, s = void 0, n = void 0) {
1050
1049
  tenant: e._platformId
1051
1050
  }),
1052
1051
  type: "json",
1053
- onComplete(o) {
1054
- s && s(o);
1052
+ onComplete(d) {
1053
+ s && s(d);
1055
1054
  },
1056
- onFailure(o) {
1057
- n && n(o);
1055
+ onFailure(d) {
1056
+ n && n(d);
1058
1057
  }
1059
1058
  });
1060
1059
  }
1061
1060
  },
1062
- onFailure(r) {
1063
- n && n(r);
1061
+ onFailure(o) {
1062
+ n && n(o);
1064
1063
  }
1065
1064
  }), JSON.stringify({
1066
1065
  csrf: {
@@ -1095,12 +1094,12 @@ function Re(e, t = void 0, s = void 0) {
1095
1094
  Accept: "application/json,text/javascript,*/*",
1096
1095
  "Content-Type": "application/ds-json"
1097
1096
  },
1098
- onComplete(c, r) {
1097
+ onComplete(c, o) {
1099
1098
  const a = JSON.parse(c);
1100
- t && t(a, r);
1099
+ t && t(a, o);
1101
1100
  },
1102
- onFailure(c, r, a) {
1103
- s && s({ response: c, headers: r, xhr: a });
1101
+ onFailure(c, o, a) {
1102
+ s && s({ response: c, headers: o, xhr: a });
1104
1103
  }
1105
1104
  });
1106
1105
  }
@@ -1125,9 +1124,9 @@ async function ve(e, t, s = void 0, n = void 0) {
1125
1124
  return new Promise((i) => {
1126
1125
  A(e, t, (c) => {
1127
1126
  m(c, {
1128
- onComplete: (r, a, o) => (i(JSON.parse(r)), s && s(JSON.parse(r), a, o), i),
1129
- onFailure: (r, a, o) => {
1130
- n && n(r, a, o), console.log(r, a?.errormsg);
1127
+ onComplete: (o, a, r) => (i(JSON.parse(o)), s && s(JSON.parse(o), a, r), i),
1128
+ onFailure: (o, a, r) => {
1129
+ n && n(o, a, r), console.log(o, a?.errormsg);
1131
1130
  }
1132
1131
  });
1133
1132
  });
@@ -1138,14 +1137,14 @@ function Pe(e, t, s, n = void 0, i = void 0) {
1138
1137
  k(
1139
1138
  e,
1140
1139
  s,
1141
- (r) => {
1142
- const a = r.data[0].relateddata.files[0].id, o = r.data[0].dataelements.secondaryTitle !== "" ? r.data[0].dataelements.secondaryTitle : r.data[0].dataelements.title;
1140
+ (o) => {
1141
+ const a = o.data[0].relateddata.files[0].id, r = o.data[0].dataelements.secondaryTitle !== "" ? o.data[0].dataelements.secondaryTitle : o.data[0].dataelements.title;
1143
1142
  K(
1144
1143
  e,
1145
1144
  s,
1146
1145
  a,
1147
1146
  c,
1148
- o,
1147
+ r,
1149
1148
  (d) => {
1150
1149
  n && n(d);
1151
1150
  },
@@ -1199,8 +1198,8 @@ function Le(e, t = void 0, s = void 0) {
1199
1198
  I(
1200
1199
  e,
1201
1200
  i.objID,
1202
- (r) => {
1203
- n.push({ [i.name]: r }), i.name === "dbProjets" && (v = r.affaires.map((a) => a.objectID), B(e, P)), c === e.objIds.length - 1 && (t && t(n), delete e.objIds, delete e.datas);
1201
+ (o) => {
1202
+ n.push({ [i.name]: o }), i.name === "dbProjets" && (v = o.affaires.map((a) => a.objectID), B(e, P)), c === e.objIds.length - 1 && (t && t(n), delete e.objIds, delete e.datas);
1204
1203
  }
1205
1204
  );
1206
1205
  });
@@ -1211,7 +1210,7 @@ function B(e, t, s = void 0, n = void 0) {
1211
1210
  v,
1212
1211
  (i) => {
1213
1212
  const c = [...t];
1214
- c.find((r) => r.objectID === i.objectId).data = i.data, P = c, $.push(i.data), s && s($);
1213
+ c.find((o) => o.objectID === i.objectId).data = i.data, P = c, $.push(i.data), s && s($);
1215
1214
  },
1216
1215
  (i) => {
1217
1216
  n && (n(i), console.log(i));
@@ -1239,7 +1238,7 @@ const Y = "FA35FB9B177A280065800EA0000F599C", q = [
1239
1238
  tag: "testTag"
1240
1239
  };
1241
1240
  function Je(e, t, s = void 0, n = void 0) {
1242
- const { space: i, tenant: c } = e, { objId: r, pred: a, tag: o } = t, d = {
1241
+ const { space: i, tenant: c } = e, { objId: o, pred: a, tag: r } = t, d = {
1243
1242
  uri: "/resources/6w/tags",
1244
1243
  otpCTX: "SecurityContext=preferred",
1245
1244
  optTenant: `tenant=${c}`
@@ -1248,12 +1247,12 @@ function Je(e, t, s = void 0, n = void 0) {
1248
1247
  {
1249
1248
  subject: [
1250
1249
  {
1251
- uri: `pid://${r}`
1250
+ uri: `pid://${o}`
1252
1251
  }
1253
1252
  ],
1254
1253
  predicate: x[a],
1255
1254
  object: {
1256
- literal: o
1255
+ literal: r
1257
1256
  }
1258
1257
  }
1259
1258
  ]
@@ -1271,7 +1270,7 @@ function Je(e, t, s = void 0, n = void 0) {
1271
1270
  setTimeout(() => {
1272
1271
  G(
1273
1272
  e,
1274
- r,
1273
+ o,
1275
1274
  (g) => {
1276
1275
  const h = g.data[0].dataelements.title, S = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", _ = g.data[0].relateddata.ownerInfo[0].dataelements.name;
1277
1276
  f.name = h, f.ext = S, f.createBy = _, t.info = { ...f }, z(
@@ -1303,14 +1302,14 @@ function z(e, t, s = void 0, n = void 0) {
1303
1302
  const i = t.info.name, c = {
1304
1303
  baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
1305
1304
  uri: "/federated/search"
1306
- }, r = `${c.baseUrl}${c.uri}`, a = {
1305
+ }, o = `${c.baseUrl}${c.uri}`, a = {
1307
1306
  "Content-Type": "application/json",
1308
1307
  Accept: "application/json,text/javascript,*/*"
1309
- }, o = R(), d = {
1308
+ }, r = R(), d = {
1310
1309
  with_indexing_date: !0,
1311
1310
  with_synthesis: !0,
1312
1311
  with_nls: !1,
1313
- label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${o}`,
1312
+ label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${r}`,
1314
1313
  locale: "fr",
1315
1314
  select_predicate: [
1316
1315
  "ds6w:label",
@@ -1367,7 +1366,7 @@ function z(e, t, s = void 0, n = void 0) {
1367
1366
  }
1368
1367
  }
1369
1368
  };
1370
- console.log("dataPattern => ", d), m(r, {
1369
+ console.log("dataPattern => ", d), m(o, {
1371
1370
  method: "POST",
1372
1371
  headers: a,
1373
1372
  data: JSON.stringify(d),
@@ -1382,11 +1381,11 @@ function z(e, t, s = void 0, n = void 0) {
1382
1381
  });
1383
1382
  }
1384
1383
  function Ee(e, t, s = void 0, n = void 0) {
1385
- const { objId: i, pred: c, tag: r } = t, a = {
1384
+ const { objId: i, pred: c, tag: o } = t, a = {
1386
1385
  uri: "/resources/6w/tags",
1387
1386
  otpCTX: "SecurityContext=preferred",
1388
1387
  optTenant: `tenant=${e.tenant}`
1389
- }, o = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
1388
+ }, r = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
1390
1389
  tag: [
1391
1390
  {
1392
1391
  subject: [
@@ -1396,12 +1395,12 @@ function Ee(e, t, s = void 0, n = void 0) {
1396
1395
  ],
1397
1396
  predicate: x[c],
1398
1397
  object: {
1399
- literal: r
1398
+ literal: o
1400
1399
  }
1401
1400
  }
1402
1401
  ]
1403
1402
  };
1404
- m(o, {
1403
+ m(r, {
1405
1404
  method: "DELETE",
1406
1405
  data: JSON.stringify(d),
1407
1406
  headers: {
@@ -1423,14 +1422,14 @@ function Ge(e, t = "", s = void 0, n = void 0) {
1423
1422
  return;
1424
1423
  const c = {
1425
1424
  uri: "/resources/v1/modeler/documents"
1426
- }, r = {
1425
+ }, o = {
1427
1426
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
1428
1427
  Accept: "application/json,text/javascript,*/*"
1429
- }, a = `${i}${c.uri}`, o = `$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=${t}`;
1428
+ }, a = `${i}${c.uri}`, r = `$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=${t}`;
1430
1429
  m(a, {
1431
1430
  method: "POST",
1432
- headers: r,
1433
- data: o,
1431
+ headers: o,
1432
+ data: r,
1434
1433
  onComplete(d) {
1435
1434
  s && s(JSON.parse(d));
1436
1435
  },
@@ -1443,7 +1442,7 @@ function Ge(e, t = "", s = void 0, n = void 0) {
1443
1442
  async function w(e, t = void 0, s = void 0) {
1444
1443
  const n = e.space + "/api/index/tk";
1445
1444
  return m(n, {
1446
- onComplete(i, c, r) {
1445
+ onComplete(i, c, o) {
1447
1446
  const a = JSON.parse(i);
1448
1447
  if (t)
1449
1448
  return t(a), e.token = a?.result?.ServerToken;
@@ -1474,11 +1473,11 @@ function Ke(e, t = void 0, s = void 0) {
1474
1473
  },
1475
1474
  data: JSON.stringify(i),
1476
1475
  type: "json",
1477
- onComplete(r, a) {
1478
- t && t(r, a);
1476
+ onComplete(o, a) {
1477
+ t && t(o, a);
1479
1478
  },
1480
- onFailure(r, a) {
1481
- s && s(r, a);
1479
+ onFailure(o, a) {
1480
+ s && s(o, a);
1482
1481
  }
1483
1482
  });
1484
1483
  });
@@ -1503,12 +1502,12 @@ function Xe(e, t = void 0, s = void 0) {
1503
1502
  },
1504
1503
  data: JSON.stringify(i),
1505
1504
  type: "json",
1506
- onComplete(r, a) {
1507
- const o = r.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
1508
- t && t(o, r);
1505
+ onComplete(o, a) {
1506
+ const r = o.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
1507
+ t && t(r, o);
1509
1508
  },
1510
- onFailure(r, a) {
1511
- s && s(r, a);
1509
+ onFailure(o, a) {
1510
+ s && s(o, a);
1512
1511
  }
1513
1512
  });
1514
1513
  });
@@ -1520,13 +1519,13 @@ function We(e, t = void 0, s = void 0) {
1520
1519
  limit: `/limit/${e.limit ? e.limit : 128}`,
1521
1520
  page: `/page/${e.page ? e.page : "1"}`
1522
1521
  }, i = `${n.base}${n.uri}${n.limit}${n.page}`, c = [];
1523
- w(e, (r) => {
1522
+ w(e, (o) => {
1524
1523
  m(i, {
1525
1524
  method: "GET",
1526
1525
  headers: {
1527
- "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1526
+ "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1528
1527
  },
1529
- onComplete(a, o, d) {
1528
+ onComplete(a, r, d) {
1530
1529
  const p = JSON.parse(a).result;
1531
1530
  let u = 0;
1532
1531
  p.forEach((f) => {
@@ -1548,9 +1547,9 @@ function We(e, t = void 0, s = void 0) {
1548
1547
  );
1549
1548
  });
1550
1549
  },
1551
- onFailure(a, o) {
1550
+ onFailure(a, r) {
1552
1551
  const d = a;
1553
- d.status = o.status, d.response = o.errormsg, s && s(d);
1552
+ d.status = r.status, d.response = r.errormsg, s && s(d);
1554
1553
  }
1555
1554
  });
1556
1555
  });
@@ -1563,22 +1562,22 @@ function Q(e, t, s, n) {
1563
1562
  community_id: t
1564
1563
  }
1565
1564
  };
1566
- w(e, (r) => {
1565
+ w(e, (o) => {
1567
1566
  m(i, {
1568
1567
  method: "POST",
1569
1568
  headers: {
1570
1569
  "Content-type": "application/json;charset=UTF-8",
1571
1570
  Accept: "application/json",
1572
- "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1571
+ "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1573
1572
  },
1574
1573
  data: JSON.stringify(c),
1575
1574
  type: "json",
1576
- onComplete(a, o, d) {
1575
+ onComplete(a, r, d) {
1577
1576
  s && s(a);
1578
1577
  },
1579
- onFailure(a, o) {
1578
+ onFailure(a, r) {
1580
1579
  const d = a;
1581
- d.status = o.status, d.response = o.errormsg, n && n(d);
1580
+ d.status = r.status, d.response = r.errormsg, n && n(d);
1582
1581
  }
1583
1582
  });
1584
1583
  });
@@ -1595,13 +1594,13 @@ function Ve(e, t = void 0, s = void 0) {
1595
1594
  Accept: "application/json",
1596
1595
  "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
1597
1596
  },
1598
- onComplete(r) {
1599
- const a = JSON.parse(r);
1597
+ onComplete(o) {
1598
+ const a = JSON.parse(o);
1600
1599
  t && t(a);
1601
1600
  },
1602
- onFailure(r, a) {
1603
- const o = r;
1604
- o.status = a.status, o.response = a.errormsg, s && s(o);
1601
+ onFailure(o, a) {
1602
+ const r = o;
1603
+ r.status = a.status, r.response = a.errormsg, s && s(r);
1605
1604
  }
1606
1605
  });
1607
1606
  });
@@ -1609,9 +1608,9 @@ function Ve(e, t = void 0, s = void 0) {
1609
1608
  function Be(e, t, s = void 0, n = void 0) {
1610
1609
  const { listAllContacts: i, currentUser: c } = e;
1611
1610
  console.log("__listAllContacts", i.hits);
1612
- const r = `${e.space}/api/directmessages`, a = {
1611
+ const o = `${e.space}/api/directmessages`, a = {
1613
1612
  users: [c.login].concat(t.receipt)
1614
- }, o = {
1613
+ }, r = {
1615
1614
  id_msg: "",
1616
1615
  senderId: e.currentUser.login,
1617
1616
  senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
@@ -1621,14 +1620,14 @@ function Be(e, t, s = void 0, n = void 0) {
1621
1620
  Z(
1622
1621
  a.users,
1623
1622
  (l) => {
1624
- l !== void 0 && (o.id_msg = l.id, d = !0, U(e, o));
1623
+ l !== void 0 && (r.id_msg = l.id, d = !0, U(e, r));
1625
1624
  },
1626
1625
  (l) => {
1627
- d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), n && n(l), o.id_msg = "";
1626
+ d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), n && n(l), r.id_msg = "";
1628
1627
  }
1629
1628
  ), d === !1 && setTimeout(() => {
1630
1629
  d === !1 && w(e, (l) => {
1631
- m(r, {
1630
+ m(o, {
1632
1631
  method: "POST",
1633
1632
  headers: {
1634
1633
  "Content-Type": "application/json",
@@ -1639,7 +1638,7 @@ function Be(e, t, s = void 0, n = void 0) {
1639
1638
  type: "json",
1640
1639
  onComplete(p, u, f) {
1641
1640
  const g = p;
1642
- g.reponse = JSON.parse(f.response), g.status = f.status, s && s(g), o.id_msg = g.result.id, U(e, o);
1641
+ g.reponse = JSON.parse(f.response), g.status = f.status, s && s(g), r.id_msg = g.result.id, U(e, r);
1643
1642
  },
1644
1643
  onFailure(p, u, f) {
1645
1644
  const g = p;
@@ -1658,12 +1657,12 @@ function Z(e, t, s, n) {
1658
1657
  Accept: "application/json,text/javascript,*/*",
1659
1658
  "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
1660
1659
  },
1661
- onComplete(r) {
1662
- const a = JSON.parse(r), o = [];
1660
+ onComplete(o) {
1661
+ const a = JSON.parse(o), r = [];
1663
1662
  a.result.forEach((p) => {
1664
- p.users = p.users.sort((u, f) => u.login.localeCompare(f.login)), p.users.length === t.length && o.push(p);
1663
+ p.users = p.users.sort((u, f) => u.login.localeCompare(f.login)), p.users.length === t.length && r.push(p);
1665
1664
  });
1666
- const d = t.sort(), l = o.find((p) => {
1665
+ const d = t.sort(), l = r.find((p) => {
1667
1666
  const u = [];
1668
1667
  return p.users.forEach((f) => {
1669
1668
  u.push(f.login);
@@ -1671,8 +1670,8 @@ function Z(e, t, s, n) {
1671
1670
  });
1672
1671
  s && l !== void 0 ? s(l) : (n || l === void 0) && n(l);
1673
1672
  },
1674
- onFailure(r) {
1675
- const a = r;
1673
+ onFailure(o) {
1674
+ const a = o;
1676
1675
  a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), n && n(a);
1677
1676
  }
1678
1677
  });
@@ -1684,7 +1683,7 @@ function U(e, t, s = void 0, n = void 0) {
1684
1683
  uri: "/api/community",
1685
1684
  id_msg: `${t.id_msg}`,
1686
1685
  endUri: "/instantmessages"
1687
- }, c = `${i.base}${i.uri}/${i.id_msg}${i.endUri}`, r = {
1686
+ }, c = `${i.base}${i.uri}/${i.id_msg}${i.endUri}`, o = {
1688
1687
  author: { login: t.senderId, displayName: t.senderName },
1689
1688
  accessState: null,
1690
1689
  commentUri: null,
@@ -1702,14 +1701,14 @@ function U(e, t, s = void 0, n = void 0) {
1702
1701
  Accept: "application/json",
1703
1702
  "X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
1704
1703
  },
1705
- data: JSON.stringify(r),
1704
+ data: JSON.stringify(o),
1706
1705
  type: "json",
1707
- onComplete(o, d, l) {
1708
- const p = o;
1706
+ onComplete(r, d, l) {
1707
+ const p = r;
1709
1708
  p.status = l.status, p.response = JSON.parse(l.response), console.log("✅ _3dSwym_sendDirectMessageData => ", p), s && s(p);
1710
1709
  },
1711
- onFailure(o, d) {
1712
- const l = o;
1710
+ onFailure(r, d) {
1711
+ const l = r;
1713
1712
  l.msg = d.errormsg, l.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", l), n && n(l);
1714
1713
  }
1715
1714
  });
@@ -1734,14 +1733,14 @@ const te = {
1734
1733
  };
1735
1734
  function Ye(e, t, s = void 0, n = void 0) {
1736
1735
  const i = `${e.space}/api/idea/add`, c = e.swymCommunities.find(
1737
- (o) => o.id === t.community_id
1738
- ), r = e.swymCommunities.find(
1739
- (o) => o.title.toLowerCase() === t.community_title.toLowerCase()
1736
+ (r) => r.id === t.community_id
1737
+ ), o = e.swymCommunities.find(
1738
+ (r) => r.title.toLowerCase() === t.community_title.toLowerCase()
1740
1739
  ), a = {
1741
1740
  params: {
1742
1741
  title: t.title,
1743
1742
  // String, le nom de l'affaire
1744
- community_id: c?.id !== void 0 ? c.id : r.id,
1743
+ community_id: c?.id !== void 0 ? c.id : o.id,
1745
1744
  // String, l'id de la communauté
1746
1745
  message: ne(t.text_html),
1747
1746
  // STRING => le contenue du message doit être au format HTML
@@ -1749,11 +1748,11 @@ function Ye(e, t, s = void 0, n = void 0) {
1749
1748
  // 1 publier, 0 non publier
1750
1749
  }
1751
1750
  };
1752
- w(e, (o) => {
1751
+ w(e, (r) => {
1753
1752
  const d = {
1754
1753
  "Content-type": "application/json;charset=UTF-8",
1755
1754
  Accept: "application/json",
1756
- "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1755
+ "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1757
1756
  };
1758
1757
  m(i, {
1759
1758
  method: "POST",
@@ -1778,22 +1777,22 @@ function qe(e, t, s = void 0, n = void 0) {
1778
1777
  ideationIds: [t.idee_id]
1779
1778
  }
1780
1779
  };
1781
- w(e, (r) => {
1780
+ w(e, (o) => {
1782
1781
  m(i, {
1783
1782
  method: "POST",
1784
1783
  headers: {
1785
1784
  "Content-type": "application/json;charset=UTF-8",
1786
1785
  Accept: "application/json",
1787
- "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1786
+ "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1788
1787
  },
1789
1788
  data: JSON.stringify(c),
1790
1789
  type: "json",
1791
- onComplete(a, o, d) {
1790
+ onComplete(a, r, d) {
1792
1791
  s && s(a);
1793
1792
  },
1794
- onFailure(a, o, d) {
1793
+ onFailure(a, r, d) {
1795
1794
  const l = a;
1796
- l.status = o.status, l.response = o.errormsg, n && n(l);
1795
+ l.status = r.status, l.response = r.errormsg, n && n(l);
1797
1796
  }
1798
1797
  });
1799
1798
  });
@@ -1801,7 +1800,7 @@ function qe(e, t, s = void 0, n = void 0) {
1801
1800
  function He(e, t = "", s = void 0, n = void 0) {
1802
1801
  const i = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
1803
1802
  t === "" && (t = i);
1804
- const c = `${e.space}/api/idea/get`, r = {
1803
+ const c = `${e.space}/api/idea/get`, o = {
1805
1804
  params: {
1806
1805
  id: t
1807
1806
  }
@@ -1814,14 +1813,14 @@ function He(e, t = "", s = void 0, n = void 0) {
1814
1813
  Accept: "application/json",
1815
1814
  "X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
1816
1815
  },
1817
- data: JSON.stringify(r),
1816
+ data: JSON.stringify(o),
1818
1817
  type: "json",
1819
- onComplete(o) {
1820
- const d = o;
1818
+ onComplete(r) {
1819
+ const d = r;
1821
1820
  d.msg = d.result.message, s && s(d);
1822
1821
  },
1823
- onFailure(o) {
1824
- const d = o;
1822
+ onFailure(r) {
1823
+ const d = r;
1825
1824
  d.status = headers.status, d.response = headers.errormsg, n && n(d);
1826
1825
  }
1827
1826
  });
@@ -1833,19 +1832,19 @@ function ze(e, t = te, s = void 0, n = void 0) {
1833
1832
  comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
1834
1833
  limit: `/limit/${t.limit ? t.limit : 10}`
1835
1834
  }, c = `${e.space}${i.uri}${i.comId}${i.limit}`;
1836
- w(e, (r) => {
1835
+ w(e, (o) => {
1837
1836
  m(c, {
1838
1837
  method: "GET",
1839
1838
  headers: {
1840
- "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1839
+ "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1841
1840
  },
1842
1841
  onComplete(a) {
1843
- const o = JSON.parse(a);
1844
- s && s(o);
1842
+ const r = JSON.parse(a);
1843
+ s && s(r);
1845
1844
  },
1846
- onFailure(a, o) {
1845
+ onFailure(a, r) {
1847
1846
  const d = a;
1848
- d.status = o.status, d.response = o.errormsg, n && n(d);
1847
+ d.status = r.status, d.response = r.errormsg, n && n(d);
1849
1848
  }
1850
1849
  });
1851
1850
  });
@@ -1933,13 +1932,13 @@ function Qe(e, t = void 0, s = void 0) {
1933
1932
  headers: {
1934
1933
  "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
1935
1934
  },
1936
- onComplete(c, r, a) {
1937
- const o = JSON.parse(c);
1938
- t && t(o.result);
1935
+ onComplete(c, o, a) {
1936
+ const r = JSON.parse(c);
1937
+ t && t(r.result);
1939
1938
  },
1940
- onFailure(c, r, a) {
1941
- const o = { erreur: JSON.parse(c), headers: r, xhr: a };
1942
- s && s(o);
1939
+ onFailure(c, o, a) {
1940
+ const r = { erreur: JSON.parse(c), headers: o, xhr: a };
1941
+ s && s(r);
1943
1942
  }
1944
1943
  });
1945
1944
  });
@@ -1952,12 +1951,12 @@ function Ze(e, t, s = void 0, n = void 0) {
1952
1951
  m(i, {
1953
1952
  method: "GET",
1954
1953
  headers: { "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken },
1955
- onComplete(r, a, o) {
1956
- const d = JSON.parse(r);
1954
+ onComplete(o, a, r) {
1955
+ const d = JSON.parse(o);
1957
1956
  s && s(d);
1958
1957
  },
1959
- onFailure(r) {
1960
- n && n(r);
1958
+ onFailure(o) {
1959
+ n && n(o);
1961
1960
  }
1962
1961
  });
1963
1962
  },