@beam3_dev/api_module 0.0.265 → 0.0.267

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/wb3Api.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { v4 as K } from "uuid";
2
- import { DateTime as b } from "luxon";
2
+ import { DateTime as O } from "luxon";
3
3
  import { requirejs as $, widget as A } from "@widget-lab/3ddashboard-utils";
4
4
  function B() {
5
5
  return K();
@@ -34,10 +34,10 @@ const W = {
34
34
  b3Edit8: "#616161",
35
35
  b3Edit9: "#795548"
36
36
  };
37
- async function _e(e, t = void 0, n = void 0) {
38
- const s = parseInt(e);
37
+ async function _e(e, t = void 0, s = void 0) {
38
+ const n = parseInt(e);
39
39
  await fetch(
40
- "https://apicarto.ign.fr/api/codes-postaux/communes/" + s,
40
+ "https://apicarto.ign.fr/api/codes-postaux/communes/" + n,
41
41
  {
42
42
  method: "GET",
43
43
  headers: {
@@ -47,10 +47,10 @@ async function _e(e, t = void 0, n = void 0) {
47
47
  ).then((i) => i.json()).then((i) => {
48
48
  t && t(i);
49
49
  }).catch((i) => {
50
- n && n(i), console.error("Erreur : " + i);
50
+ s && s(i), console.error("Erreur : " + i);
51
51
  });
52
52
  }
53
- async function Se(e, t = void 0, n = void 0) {
53
+ async function Se(e, t = void 0, s = void 0) {
54
54
  e = encodeURIComponent(e), await fetch(
55
55
  "https://api-adresse.data.gouv.fr/search/?q=" + e + "&limit=15",
56
56
  {
@@ -59,19 +59,19 @@ async function Se(e, t = void 0, n = void 0) {
59
59
  Accept: "application/json"
60
60
  }
61
61
  }
62
- ).then((s) => s.json()).then((s) => {
63
- t && t(s);
64
- }).catch((s) => {
65
- n && n(s), console.error("Erreur : " + s);
62
+ ).then((n) => n.json()).then((n) => {
63
+ t && t(n);
64
+ }).catch((n) => {
65
+ s && s(n), console.error("Erreur : " + n);
66
66
  });
67
67
  }
68
68
  async function we(e, t = W) {
69
- let n = b.now().year;
70
- const s = e, i = [], r = (a) => {
69
+ let s = O.now().year;
70
+ const n = e, i = [], r = (a) => {
71
71
  for (let c in a)
72
72
  i.push({ date: c, comment: a[c] });
73
73
  };
74
- for (let a = n; a <= n + 1; a++)
74
+ for (let a = s; a <= s + 1; a++)
75
75
  await fetch(
76
76
  "https://calendrier.api.gouv.fr/jours-feries/metropole/" + a + ".json",
77
77
  {
@@ -84,42 +84,42 @@ async function we(e, t = W) {
84
84
  r(c);
85
85
  }).catch((c) => console.error("Erreur : " + c));
86
86
  return (() => {
87
- const a = s.length === 0 ? {
87
+ const a = n.length === 0 ? {
88
88
  events: []
89
- } : s;
89
+ } : n;
90
90
  for (let c of i)
91
91
  a.events.findIndex(
92
- (u) => u.start === b.fromISO(c.date).toISODate() && u.name === "Férié : " + c.comment
92
+ (u) => u.start === O.fromISO(c.date).toISODate() && u.name === "Férié : " + c.comment
93
93
  ) === -1 && a.events.push({
94
94
  name: "Férié : " + c.comment,
95
- start: b.fromISO(c.date).toISODate(),
96
- end: b.fromISO(c.date).toISODate(),
95
+ start: O.fromISO(c.date).toISODate(),
96
+ end: O.fromISO(c.date).toISODate(),
97
97
  color: t.b3BusinnessDays,
98
98
  timed: !1
99
99
  });
100
100
  return a;
101
101
  })();
102
102
  }
103
- function X(e, t, n) {
104
- const { credentials: s, myArray: i, chunk: r, fn_to_call: o } = e, a = [];
103
+ function X(e, t, s) {
104
+ const { credentials: n, myArray: i, chunk: r, fn_to_call: o } = e, a = [];
105
105
  for (let c = 0; c < i.length; c += r) {
106
106
  const d = i.slice(c, c + r);
107
107
  a.push(d);
108
108
  }
109
109
  V(
110
- { credentials: s, chunks: a, initLoop: 0, fn: o },
110
+ { credentials: n, chunks: a, initLoop: 0, fn: o },
111
111
  (c) => {
112
112
  t && t(c);
113
113
  },
114
114
  (c) => {
115
- n && n(c);
115
+ s && s(c);
116
116
  }
117
117
  );
118
118
  }
119
- function V(e, t, n) {
120
- const { credentials: s, chunks: i, initLoop: r, fn: o } = e, a = (c) => {
119
+ function V(e, t, s) {
120
+ const { credentials: n, chunks: i, initLoop: r, fn: o } = e, a = (c) => {
121
121
  o(
122
- s,
122
+ n,
123
123
  i[c],
124
124
  () => {
125
125
  c++, c < i.length && a(c);
@@ -128,54 +128,54 @@ function V(e, t, n) {
128
128
  t && t(d);
129
129
  },
130
130
  (d) => {
131
- n && n(d);
131
+ s && s(d);
132
132
  }
133
133
  );
134
134
  };
135
135
  a(r);
136
136
  }
137
- async function Ce(e, t, n = !0) {
138
- const s = e.events.findIndex((i) => i.uuid === t.uuid);
139
- return s === -1 ? e.events.push(t) : n ? e.events[s] = t : e.events.splice(s, 1), e.length > 0 && e.sort((i, r) => i.start - r.start), e;
137
+ async function Ce(e, t, s = !0) {
138
+ const n = e.events.findIndex((i) => i.uuid === t.uuid);
139
+ return n === -1 ? e.events.push(t) : s ? e.events[n] = t : e.events.splice(n, 1), e.length > 0 && e.sort((i, r) => i.start - r.start), e;
140
140
  }
141
141
  function m(e, t) {
142
- $(["DS/WAFData/WAFData"], (n) => {
143
- n.authenticatedRequest(e, t);
142
+ $(["DS/WAFData/WAFData"], (s) => {
143
+ s.authenticatedRequest(e, t);
144
144
  });
145
145
  }
146
- function Te(e, t, n) {
147
- $(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
148
- s.draggable(e, {
146
+ function Te(e, t, s) {
147
+ $(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
148
+ n.draggable(e, {
149
149
  data: t,
150
- start: n
150
+ start: s
151
151
  });
152
152
  });
153
153
  }
154
- function Oe(e, t = void 0) {
155
- $(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
156
- let s;
157
- s === void 0 && (s = n.createProxy({
154
+ function be(e, t = void 0) {
155
+ $(["DS/TagNavigatorProxy/TagNavigatorProxy"], (s) => {
156
+ let n;
157
+ n === void 0 && (n = s.createProxy({
158
158
  widgetId: A.id,
159
159
  filteringMode: "WithFilteringServices"
160
- }), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
160
+ }), t !== void 0 && n.addEvent("onFilterSubjectsChange", t)), n.setSubjectsTags(e);
161
161
  });
162
162
  }
163
- function be(e, t) {
164
- $(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
165
- n.droppable(e, {
163
+ function Oe(e, t) {
164
+ $(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
165
+ s.droppable(e, {
166
166
  drop: t
167
167
  });
168
168
  });
169
169
  }
170
- async function $e(e, t = void 0, n = void 0) {
170
+ async function $e(e, t = void 0, s = void 0) {
171
171
  await $(
172
172
  ["DS/i3DXCompassServices/i3DXCompassServices"],
173
- (s) => {
173
+ (n) => {
174
174
  (!e || e === "") && (e = A.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
175
- s.getPlatformServices({
175
+ n.getPlatformServices({
176
176
  platformId: e,
177
177
  onComplete: t,
178
- onFailure: n
178
+ onFailure: s
179
179
  })
180
180
  );
181
181
  }
@@ -184,41 +184,41 @@ async function $e(e, t = void 0, n = void 0) {
184
184
  function Y() {
185
185
  let e = {};
186
186
  return $(["DS/PlatformAPI/PlatformAPI"], (t) => {
187
- const n = t.getTenant(), s = t.getUser(), i = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
187
+ const s = t.getTenant(), n = t.getUser(), i = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
188
188
  "com.3ds.wp.passport.cors"
189
189
  );
190
190
  e = {
191
- tenant: n,
192
- user: s,
191
+ tenant: s,
192
+ user: n,
193
193
  appsConfiguration: i,
194
194
  appConf: r
195
195
  };
196
196
  }), console.log("%cRETOUR API :", "color:blue", e), e;
197
197
  }
198
- function x(e, t = void 0, n = void 0) {
198
+ function x(e, t = void 0, s = void 0) {
199
199
  if (e.tenant) {
200
- const s = `https://${e.tenant}-eu1-apps.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?tenant=${e.tenant}&cors=true&xrequestedwith=xmlhttprequest`;
201
- m(s, {
200
+ const n = `https://${e.tenant}-eu1-apps.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?tenant=${e.tenant}&cors=true&xrequestedwith=xmlhttprequest`;
201
+ m(n, {
202
202
  onComplete(i) {
203
203
  const r = typeof i == "string" ? JSON.parse(i) : i;
204
204
  if (r && "platforms" in r) {
205
205
  const o = r.platforms.find(
206
206
  (a) => a.id === e.tenant.toUpperCase()
207
207
  );
208
- t && o ? t(o) : n && n("_getServiceUrl return listServiceUrl = undefined");
208
+ t && o ? t(o) : s && s("_getServiceUrl return listServiceUrl = undefined");
209
209
  } else
210
- n && n("_getServiceUrl return oResponse = undefined");
210
+ s && s("_getServiceUrl return oResponse = undefined");
211
211
  },
212
212
  onFailure(i) {
213
- n && n(i);
213
+ s && s(i);
214
214
  }
215
215
  });
216
216
  }
217
217
  }
218
- function Ne(e, t = void 0, n = void 0) {
218
+ function Ne(e, t = void 0, s = void 0) {
219
219
  if (e.tenant) {
220
- const s = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
221
- m(s, {
220
+ const n = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
221
+ m(n, {
222
222
  onComplete(i) {
223
223
  const r = JSON.parse(i);
224
224
  if (console.log("serviceId=3dpassport", r), Array.isArray(r) && r.length > 0) {
@@ -227,18 +227,18 @@ function Ne(e, t = void 0, n = void 0) {
227
227
  }
228
228
  },
229
229
  onFailure(i) {
230
- n && n(i);
230
+ s && s(i);
231
231
  }
232
232
  });
233
233
  }
234
234
  }
235
- function Ie(e, t, n) {
236
- const s = {
235
+ function Ie(e, t, s) {
236
+ const n = {
237
237
  base: `${e.space}`,
238
238
  uri: "/resources/AppsMngt/api/custom/applications",
239
239
  option: `?filter=${e.tenant}`
240
240
  // facultatif
241
- }, i = `${s.base}${s.uri}${s.option}`;
241
+ }, i = `${n.base}${n.uri}${n.option}`;
242
242
  m(i, {
243
243
  method: "GET",
244
244
  headers: {
@@ -254,41 +254,41 @@ function Ie(e, t, n) {
254
254
  },
255
255
  onFailure(r, o) {
256
256
  const a = r;
257
- a.msg = o.errormsg, a.errCode = o.errorcode, n && n(a);
257
+ a.msg = o.errormsg, a.errCode = o.errorcode, s && s(a);
258
258
  }
259
259
  });
260
260
  }
261
- function Fe(e, t = void 0, n = void 0) {
262
- let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
263
- m(s, {
261
+ function Fe(e, t = void 0, s = void 0) {
262
+ let n = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
263
+ m(n, {
264
264
  onComplete(i, r, o) {
265
265
  const a = JSON.parse(i);
266
266
  console.log("_AppMngt_get_users => ", a), t && t(a);
267
267
  },
268
268
  onFailure(i, r) {
269
269
  const o = i;
270
- o.msg = r.errormsg, o.errCode = r.errorcode, n && n(o);
270
+ o.msg = r.errormsg, o.errCode = r.errorcode, s && s(o);
271
271
  }
272
272
  });
273
273
  }
274
- function Re(e, t, n = void 0, s = void 0) {
274
+ function Ue(e, t, s = void 0, n = void 0) {
275
275
  let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
276
276
  m(i, {
277
277
  onComplete(r, o, a) {
278
278
  const c = JSON.parse(r);
279
- n && n(c);
279
+ s && s(c);
280
280
  },
281
281
  onFailure(r, o) {
282
282
  const a = r;
283
- a.msg = o.errormsg, a.errCode = o.errorcode, s && s(a);
283
+ a.msg = o.errormsg, a.errCode = o.errorcode, n && n(a);
284
284
  }
285
285
  });
286
286
  }
287
- const U = {
287
+ const R = {
288
288
  "Content-Type": "application/json",
289
289
  Accept: "application/json,text/javascript,*/*"
290
290
  };
291
- function Ue(e, t, n = void 0, s = void 0) {
291
+ function Re(e, t, s = void 0, n = void 0) {
292
292
  const { space: i, currentUser: r } = e, a = `${i}${{
293
293
  URIUGr: "/3drdfpersist/resources/v1/usersgroup"
294
294
  }.URIUGr}`, c = {
@@ -305,19 +305,19 @@ function Ue(e, t, n = void 0, s = void 0) {
305
305
  };
306
306
  m(a, {
307
307
  method: "POST",
308
- headers: U,
308
+ headers: R,
309
309
  data: JSON.stringify(c),
310
310
  onComplete(d) {
311
- n && n(JSON.parse(d));
311
+ s && s(JSON.parse(d));
312
312
  },
313
313
  onFailure(d, u) {
314
314
  console.log(d);
315
315
  const p = d;
316
- p.msg = u.errormsg, p.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", p), s && s(p);
316
+ p.msg = u.errormsg, p.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", p), n && n(p);
317
317
  }
318
318
  });
319
319
  }
320
- function je(e, t, n = void 0, s = void 0) {
320
+ function ke(e, t, s = void 0, n = void 0) {
321
321
  const { space: i, tenant: r } = e, o = i, a = `/3drdfpersist/v1/resources/${t}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${o}${a}${c}`;
322
322
  m(d, {
323
323
  opts: {
@@ -328,16 +328,16 @@ function je(e, t, n = void 0, s = void 0) {
328
328
  }
329
329
  },
330
330
  onComplete(f) {
331
- n && n(JSON.parse(f));
331
+ s && s(JSON.parse(f));
332
332
  },
333
333
  onFailure(f, l) {
334
334
  const g = f;
335
- g.msg = l.errormsg, g.errCode = l.errorcode, s && s(g);
335
+ g.msg = l.errormsg, g.errCode = l.errorcode, n && n(g);
336
336
  }
337
337
  });
338
338
  }
339
- function q(e, t = void 0, n = void 0) {
340
- const { space: s, tenant: i } = e, r = s, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, c = {
339
+ function q(e, t = void 0, s = void 0) {
340
+ const { space: n, tenant: i } = e, r = n, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, c = {
341
341
  method: "GET",
342
342
  Accept: "application/json,*/*,test/javascript"
343
343
  }, d = `${r}${o}${a}`;
@@ -348,12 +348,12 @@ function q(e, t = void 0, n = void 0) {
348
348
  },
349
349
  onFailure(u, p) {
350
350
  const f = u;
351
- f.msg = p.errormsg, f.errCode = p.errorcode, n && n(f);
351
+ f.msg = p.errormsg, f.errCode = p.errorcode, s && s(f);
352
352
  }
353
353
  });
354
354
  }
355
- function ke(e, t = void 0, n = void 0) {
356
- const { space: s, currentUser: i } = e, a = `${s}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility`, d = { method: "GET", headers: {
355
+ function je(e, t = void 0, s = void 0) {
356
+ const { space: n, currentUser: i } = e, a = `${n}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility`, d = { method: "GET", headers: {
357
357
  "Content-Type": "application/json",
358
358
  Accept: "application/json,text/javascript,*/*"
359
359
  } };
@@ -370,13 +370,13 @@ function ke(e, t = void 0, n = void 0) {
370
370
  f.rules = _, t && t(f);
371
371
  },
372
372
  (_) => {
373
- n && n(_);
373
+ s && s(_);
374
374
  }
375
375
  );
376
376
  }
377
377
  },
378
378
  onFailure(u) {
379
- n && n(u);
379
+ s && s(u);
380
380
  }
381
381
  });
382
382
  } catch (u) {
@@ -384,12 +384,12 @@ function ke(e, t = void 0, n = void 0) {
384
384
  }
385
385
  }
386
386
  function ve(e, t) {
387
- const { space: n } = e, i = `${n}/3drdfpersist/resources/v1/usersgroup/${t}`;
387
+ const { space: s } = e, i = `${s}/3drdfpersist/resources/v1/usersgroup/${t}`;
388
388
  m(i, {
389
389
  method: "DELETE"
390
390
  });
391
391
  }
392
- function Ae(e, t, n, s = void 0, i = void 0) {
392
+ function Ae(e, t, s, n = void 0, i = void 0) {
393
393
  const { space: r, tenant: o } = e, a = {
394
394
  URITI: "/3drdfpersist/resources/v1/template-instances",
395
395
  URIUGr: "/3drdfpersist/resources/v1/usersgroup",
@@ -398,36 +398,36 @@ function Ae(e, t, n, s = void 0, i = void 0) {
398
398
  nexURImem: "/members",
399
399
  OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
400
400
  OPTsTenant: `tenant=dstenant:${o}`
401
- }, c = n, d = `${r}${a.URIUGr}/${t}`, u = JSON.stringify(c);
401
+ }, c = s, d = `${r}${a.URIUGr}/${t}`, u = JSON.stringify(c);
402
402
  m(d, {
403
- headers: U,
403
+ headers: R,
404
404
  method: "PATCH",
405
405
  data: u,
406
406
  type: "json",
407
407
  onComplete(p) {
408
- s && s(p);
408
+ n && n(p);
409
409
  },
410
410
  onFailure(p) {
411
411
  i && i(p);
412
412
  }
413
413
  });
414
414
  }
415
- function xe(e, t, n, s = void 0, i = void 0) {
415
+ function xe(e, t, s, n = void 0, i = void 0) {
416
416
  const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
417
417
  m(a, {
418
418
  method: "PATCH",
419
- headers: U,
420
- data: JSON.stringify(n),
419
+ headers: R,
420
+ data: JSON.stringify(s),
421
421
  type: "json",
422
422
  onComplete(d) {
423
- s && s(d);
423
+ n && n(d);
424
424
  },
425
425
  onFailure(d) {
426
426
  i && i(d);
427
427
  }
428
428
  });
429
429
  }
430
- function Pe(e, t, n = void 0, s = void 0) {
430
+ function De(e, t, s = void 0, n = void 0) {
431
431
  const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
432
432
  m(o, {
433
433
  opts: {
@@ -438,22 +438,22 @@ function Pe(e, t, n = void 0, s = void 0) {
438
438
  }
439
439
  },
440
440
  onComplete(d) {
441
- n && n(JSON.parse(d));
441
+ s && s(JSON.parse(d));
442
442
  },
443
443
  onFailure(d) {
444
- s && s(d);
444
+ n && n(d);
445
445
  }
446
446
  });
447
447
  }
448
- async function H(e, t, n) {
448
+ async function H(e, t, s) {
449
449
  if (e.space) {
450
- const s = `${e.space}/resources/v1/application/CSRF`;
451
- m(s, {
450
+ const n = `${e.space}/resources/v1/application/CSRF`;
451
+ m(n, {
452
452
  onComplete(i) {
453
453
  i = JSON.parse(i), t && t(i.csrf);
454
454
  },
455
455
  onFailure(i, r, o) {
456
- n && n({ error: i, headers: r, xhr: o });
456
+ s && s({ error: i, headers: r, xhr: o });
457
457
  }
458
458
  });
459
459
  }
@@ -462,19 +462,19 @@ var I = {};
462
462
  function z(e, t) {
463
463
  return Object.prototype.hasOwnProperty.call(e, t);
464
464
  }
465
- var Q = function(e, t, n, s) {
466
- t = t || "&", n = n || "=";
465
+ var Q = function(e, t, s, n) {
466
+ t = t || "&", s = s || "=";
467
467
  var i = {};
468
468
  if (typeof e != "string" || e.length === 0)
469
469
  return i;
470
470
  var r = /\+/g;
471
471
  e = e.split(t);
472
472
  var o = 1e3;
473
- s && typeof s.maxKeys == "number" && (o = s.maxKeys);
473
+ n && typeof n.maxKeys == "number" && (o = n.maxKeys);
474
474
  var a = e.length;
475
475
  o > 0 && a > o && (a = o);
476
476
  for (var c = 0; c < a; ++c) {
477
- var d = e[c].replace(r, "%20"), u = d.indexOf(n), p, f, l, g;
477
+ var d = e[c].replace(r, "%20"), u = d.indexOf(s), p, f, l, g;
478
478
  u >= 0 ? (p = d.substr(0, u), f = d.substr(u + 1)) : (p = d, f = ""), l = decodeURIComponent(p), g = decodeURIComponent(f), z(i, l) ? Array.isArray(i[l]) ? i[l].push(g) : i[l] = [i[l], g] : i[l] = g;
479
479
  }
480
480
  return i;
@@ -489,17 +489,17 @@ var Q = function(e, t, n, s) {
489
489
  default:
490
490
  return "";
491
491
  }
492
- }, Z = function(e, t, n, s) {
493
- return t = t || "&", n = n || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
494
- var r = encodeURIComponent(N(i)) + n;
492
+ }, Z = function(e, t, s, n) {
493
+ return t = t || "&", s = s || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
494
+ var r = encodeURIComponent(N(i)) + s;
495
495
  return Array.isArray(e[i]) ? e[i].map(function(o) {
496
496
  return r + encodeURIComponent(N(o));
497
497
  }).join(t) : r + encodeURIComponent(N(e[i]));
498
- }).filter(Boolean).join(t) : s ? encodeURIComponent(N(s)) + n + encodeURIComponent(N(e)) : "";
498
+ }).filter(Boolean).join(t) : n ? encodeURIComponent(N(n)) + s + encodeURIComponent(N(e)) : "";
499
499
  };
500
500
  I.decode = I.parse = Q;
501
501
  I.encode = I.stringify = Z;
502
- async function P(e, t = void 0, n = void 0, s = void 0) {
502
+ async function D(e, t = void 0, s = void 0, n = void 0) {
503
503
  const i = e.space;
504
504
  if (t === void 0) {
505
505
  console.log("Le paramètre docid est obligatoire");
@@ -509,14 +509,14 @@ async function P(e, t = void 0, n = void 0, s = void 0) {
509
509
  m(r, {
510
510
  onComplete(o, a, c) {
511
511
  const d = JSON.parse(o);
512
- n && n(d);
512
+ s && s(d);
513
513
  },
514
514
  onFailure(o) {
515
- s && s(o);
515
+ n && n(o);
516
516
  }
517
517
  });
518
518
  }
519
- async function De(e, t = void 0, n = void 0, s = void 0) {
519
+ async function Pe(e, t = void 0, s = void 0, n = void 0) {
520
520
  const i = e.space;
521
521
  if (t === void 0) {
522
522
  console.log("Le paramètre docids est obligatoire");
@@ -533,46 +533,46 @@ async function De(e, t = void 0, n = void 0, s = void 0) {
533
533
  data: o,
534
534
  onComplete(a, c, d) {
535
535
  const u = JSON.parse(a);
536
- n && n(u);
536
+ s && s(u);
537
537
  },
538
538
  onFailure(a) {
539
- s && s(a);
539
+ n && n(a);
540
540
  }
541
541
  });
542
542
  }
543
- function F(e, t = void 0, n = void 0) {
543
+ function F(e, t = void 0, s = void 0) {
544
544
  if (e.objID && e.objID !== "") {
545
- let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
546
- m(s, {
545
+ let n = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
546
+ m(n, {
547
547
  onComplete(i, r, o) {
548
548
  const a = JSON.parse(i);
549
549
  e.success = !0, e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
550
550
  },
551
551
  onFailure(i) {
552
- n && n(i);
552
+ s && s(i);
553
553
  }
554
554
  });
555
555
  } else
556
- O(
556
+ b(
557
557
  e,
558
- (s) => {
559
- console.log("_3DSpace_get_csrf / _3DSpace_csrf", s), t && t(s);
558
+ (n) => {
559
+ console.log("_3DSpace_get_csrf / _3DSpace_csrf", n), t && t(n);
560
560
  },
561
- (s) => {
562
- n && n(s);
561
+ (n) => {
562
+ s && s(n);
563
563
  }
564
564
  );
565
565
  }
566
- function O(e, t = void 0, n = void 0) {
566
+ function b(e, t = void 0, s = void 0) {
567
567
  if (e.space) {
568
- const s = e.space + "/resources/v1/application/CSRF";
569
- m(s, {
568
+ const n = e.space + "/resources/v1/application/CSRF";
569
+ m(n, {
570
570
  onComplete(i, r, o) {
571
571
  const a = JSON.parse(i);
572
572
  t && t(a.csrf.value);
573
573
  },
574
574
  onFailure(i, r, o) {
575
- n && n({
575
+ s && s({
576
576
  response: i,
577
577
  headers: r,
578
578
  xhr: o
@@ -580,14 +580,14 @@ function O(e, t = void 0, n = void 0) {
580
580
  }
581
581
  });
582
582
  } else
583
- n && n("ERROR : url du 3DSpace non défini.");
583
+ s && s("ERROR : url du 3DSpace non défini.");
584
584
  }
585
- function j(e, t = void 0, n = void 0) {
586
- let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
585
+ function k(e, t = void 0, s = void 0) {
586
+ let n = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
587
587
  F(
588
588
  e,
589
589
  (i) => {
590
- m(s, {
590
+ m(n, {
591
591
  method: "PUT",
592
592
  headers: {
593
593
  ENO_CSRF_TOKEN: e.token
@@ -597,28 +597,28 @@ function j(e, t = void 0, n = void 0) {
597
597
  t && t(c, o);
598
598
  },
599
599
  onFailure(r, o) {
600
- console.warn("☠️ error => ", r, o), n && n(r, o);
600
+ console.warn("☠️ error => ", r, o), s && s(r, o);
601
601
  }
602
602
  });
603
603
  },
604
604
  (i) => {
605
- console.warn("_3DSpace_get_ticket / error => ", i), n && n(i);
605
+ console.warn("_3DSpace_get_ticket / error => ", i), s && s(i);
606
606
  }
607
607
  );
608
608
  }
609
- function Le(e, t, n = void 0, s = void 0, i = void 0) {
609
+ function Le(e, t, s = void 0, n = void 0, i = void 0) {
610
610
  const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
611
- n || (n = e.token), m(r, {
611
+ s || (s = e.token), m(r, {
612
612
  method: "PUT",
613
613
  headers: {
614
- ENO_CSRF_TOKEN: n
614
+ ENO_CSRF_TOKEN: s
615
615
  },
616
616
  onComplete(o) {
617
617
  let a = JSON.parse(o);
618
618
  if (console.log("☠️ info => ", a), a.success === !0)
619
619
  try {
620
620
  const c = a.data[0].dataelements.ticketURL;
621
- s && s(c);
621
+ n && n(c);
622
622
  } catch (c) {
623
623
  i && i(c);
624
624
  }
@@ -628,12 +628,12 @@ function Le(e, t, n = void 0, s = void 0, i = void 0) {
628
628
  }
629
629
  });
630
630
  }
631
- function D(e, t, n, s, i, r = void 0, o = void 0) {
631
+ function P(e, t, s, n, i, r = void 0, o = void 0) {
632
632
  const a = () => ee(
633
633
  e,
634
634
  t,
635
- n,
636
635
  s,
636
+ n,
637
637
  i,
638
638
  e.token,
639
639
  r,
@@ -647,7 +647,7 @@ function D(e, t, n, s, i, r = void 0, o = void 0) {
647
647
  }
648
648
  );
649
649
  }
650
- function ee(e, t, n, s, i, r, o = void 0, a = void 0) {
650
+ function ee(e, t, s, n, i, r, o = void 0, a = void 0) {
651
651
  const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
652
652
  m(c, {
653
653
  method: "PUT",
@@ -657,7 +657,7 @@ function ee(e, t, n, s, i, r, o = void 0, a = void 0) {
657
657
  onComplete(d, u, p) {
658
658
  const f = JSON.parse(d).csrf, l = JSON.parse(d).data[0].dataelements, g = new FormData();
659
659
  let h;
660
- s instanceof Blob ? h = s : h = new Blob([s], {
660
+ n instanceof Blob ? h = n : h = new Blob([n], {
661
661
  type: "text/plain"
662
662
  }), g.append("__fcs__jobTicket", l.ticket), g.append("file_0", h, i);
663
663
  const y = {};
@@ -705,7 +705,7 @@ function ee(e, t, n, s, i, r, o = void 0, a = void 0) {
705
705
  }
706
706
  });
707
707
  }
708
- async function Me(e, t, n = void 0, s = void 0) {
708
+ async function Me(e, t, s = void 0, n = void 0) {
709
709
  e.space, e.token, e.ctx;
710
710
  const i = e?.description, r = e?.title;
711
711
  let o = `${e.space}/resources/v1/modeler/documents/${t}`;
@@ -727,27 +727,27 @@ async function Me(e, t, n = void 0, s = void 0) {
727
727
  data: a,
728
728
  type: "json",
729
729
  onComplete(c) {
730
- n && n(c);
730
+ s && s(c);
731
731
  },
732
732
  onFailure(c) {
733
- s && s(c);
733
+ n && n(c);
734
734
  }
735
735
  });
736
736
  }
737
- async function Je(e, t, n, s = void 0, i = void 0) {
738
- e.space, e.token, e.ctx, P(
737
+ async function Je(e, t, s, n = void 0, i = void 0) {
738
+ e.space, e.token, e.ctx, D(
739
739
  e,
740
740
  t,
741
741
  (r) => {
742
742
  const o = r.data[0].relateddata.files[0].id, a = r.data[0].dataelements.secondaryTitle && r.data[0].dataelements.secondaryTitle !== "" ? r.data[0].dataelements.secondaryTitle : r.data[0].dataelements.title;
743
- D(
743
+ P(
744
744
  e,
745
745
  t,
746
746
  o,
747
- n,
747
+ s,
748
748
  a,
749
749
  (c) => {
750
- s && s(c);
750
+ n && n(c);
751
751
  },
752
752
  (c) => {
753
753
  i && i(c);
@@ -759,7 +759,7 @@ async function Je(e, t, n, s = void 0, i = void 0) {
759
759
  }
760
760
  );
761
761
  }
762
- async function Ge(e, t, n, s, i = void 0, r = void 0) {
762
+ async function Ge(e, t, s, n, i = void 0, r = void 0) {
763
763
  te(
764
764
  e,
765
765
  (o) => {
@@ -767,13 +767,13 @@ async function Ge(e, t, n, s, i = void 0, r = void 0) {
767
767
  ne(
768
768
  a,
769
769
  t,
770
- n,
770
+ s,
771
771
  (c) => {
772
772
  se(
773
773
  e,
774
774
  c,
775
- n,
776
775
  s,
776
+ n,
777
777
  (d) => {
778
778
  d?.data.length ? i && i(d) : r && r({
779
779
  success: !1,
@@ -790,10 +790,10 @@ async function Ge(e, t, n, s, i = void 0, r = void 0) {
790
790
  (o) => console.warn(o)
791
791
  );
792
792
  }
793
- function te(e, t = void 0, n = void 0) {
793
+ function te(e, t = void 0, s = void 0) {
794
794
  if (e?.space && e.token && e.ctx) {
795
- let s = `${e.space}/resources/v1/modeler/documents/files/CheckinTicket`;
796
- m(s, {
795
+ let n = `${e.space}/resources/v1/modeler/documents/files/CheckinTicket`;
796
+ m(n, {
797
797
  method: "PUT",
798
798
  headers: {
799
799
  ENO_CSRF_TOKEN: e.token,
@@ -809,33 +809,33 @@ function te(e, t = void 0, n = void 0) {
809
809
  t && t(i);
810
810
  },
811
811
  onFailure(i) {
812
- n && n(i);
812
+ s && s(i);
813
813
  }
814
814
  });
815
815
  } else
816
816
  console.log("Error de credentials", e);
817
817
  }
818
- function ne(e, t, n, s = void 0, i = void 0) {
818
+ function ne(e, t, s, n = void 0, i = void 0) {
819
819
  let r = new FormData();
820
820
  t instanceof Blob || (t = new Blob([t], {
821
821
  type: "text/plain"
822
- })), r.append("__fcs__jobTicket", e.dataelements.ticket), r.append("file_0", t, n);
822
+ })), r.append("__fcs__jobTicket", e.dataelements.ticket), r.append("file_0", t, s);
823
823
  let o = e.dataelements.ticketURL;
824
824
  m(o, {
825
825
  method: "POST",
826
826
  data: r,
827
827
  onComplete(a) {
828
- s && s(a.replace(/[\n\r]/g, ""));
828
+ n && n(a.replace(/[\n\r]/g, ""));
829
829
  },
830
830
  onFailure(a) {
831
831
  i && i(a);
832
832
  }
833
833
  });
834
834
  }
835
- function se(e, t, n, s = void 0, i = void 0, r = void 0) {
836
- console.log("relatedDocAndFile", { credentials: e, receipt: t, filename: n });
835
+ function se(e, t, s, n = void 0, i = void 0, r = void 0) {
836
+ console.log("relatedDocAndFile", { credentials: e, receipt: t, filename: s });
837
837
  const o = (d) => d.indexOf(".") === -1 ? d : d.split(".").slice(0, -1).join(".");
838
- let a = "temp_" + b.now().ts, c = e.space + "/resources/v1/modeler/documents/?e6w-lang=fr&e6w-timezone=-120&xrequestedwith=xmlhttprequest";
838
+ let a = "temp_" + O.now().ts, c = e.space + "/resources/v1/modeler/documents/?e6w-lang=fr&e6w-timezone=-120&xrequestedwith=xmlhttprequest";
839
839
  m(c, {
840
840
  method: "POST",
841
841
  headers: {
@@ -849,14 +849,14 @@ function se(e, t, n, s = void 0, i = void 0, r = void 0) {
849
849
  {
850
850
  type: "Document",
851
851
  dataelements: {
852
- title: o(n),
853
- description: s
852
+ title: o(s),
853
+ description: n
854
854
  },
855
855
  relateddata: {
856
856
  files: [
857
857
  {
858
858
  dataelements: {
859
- title: n,
859
+ title: s,
860
860
  receipt: `${t}
861
861
  `
862
862
  }
@@ -879,7 +879,7 @@ function se(e, t, n, s = void 0, i = void 0, r = void 0) {
879
879
  }
880
880
  });
881
881
  }
882
- function R(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1) {
882
+ function U(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1) {
883
883
  const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
884
884
  m(a, {
885
885
  method: "GET",
@@ -895,10 +895,10 @@ function R(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1
895
895
  (y, _, S) => _ === S.findIndex(
896
896
  (C) => C.organization.pid === y.organization.pid && C.role.pid === y.role.pid
897
897
  )
898
- ), n && (Array.isArray(n) ? n.forEach((y) => {
898
+ ), s && (Array.isArray(s) ? s.forEach((y) => {
899
899
  l || h.forEach((_) => {
900
- if (y === _.role.name && s === _.organization.title)
901
- l = y, f = s;
900
+ if (y === _.role.name && n === _.organization.title)
901
+ l = y, f = n;
902
902
  else if (y === _.role.name) {
903
903
  let S = h.filter(
904
904
  (C) => C.role.name === y
@@ -907,11 +907,11 @@ function R(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1
907
907
  }
908
908
  });
909
909
  }) : h.forEach((y) => {
910
- if (n === y.role.name && s === y.organization.title)
911
- l = n, f = s;
912
- else if (n === y.role.name) {
910
+ if (s === y.role.name && n === y.organization.title)
911
+ l = s, f = n;
912
+ else if (s === y.role.name) {
913
913
  let _ = h.filter(
914
- (S) => S.role.name === n
914
+ (S) => S.role.name === s
915
915
  );
916
916
  _.length === 1 ? (l = _[0].role.name, f = _[0].organization.title) : r(_);
917
917
  }
@@ -928,29 +928,29 @@ function R(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1
928
928
  }
929
929
  });
930
930
  }
931
- async function L(e, t = void 0, n = void 0) {
931
+ async function L(e, t = void 0, s = void 0) {
932
932
  return (!e.objID || e.objID === "") && (console.warn(
933
933
  "_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
934
- ), n && n(
934
+ ), s && s(
935
935
  "_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
936
936
  )), (e.space === "" || !e.space) && (console.warn(
937
937
  "_3DSpace_download_doc() / Le paramètre space est obligatoire"
938
- ), n && n("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) && H(
938
+ ), s && s("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) && H(
939
939
  e,
940
- (s) => {
941
- e.token = s;
940
+ (n) => {
941
+ e.token = n;
942
942
  },
943
- (s) => {
944
- console.log("☠️ error => ", s);
943
+ (n) => {
944
+ console.log("☠️ error => ", n);
945
945
  }
946
- ), new Promise((s, i) => {
947
- j(
946
+ ), new Promise((n, i) => {
947
+ k(
948
948
  e,
949
949
  (r) => {
950
950
  e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
951
951
  t && t(o);
952
952
  }).catch((o) => {
953
- n && n(o);
953
+ s && s(o);
954
954
  })) : m(r, {
955
955
  onComplete(o) {
956
956
  let a;
@@ -959,10 +959,10 @@ async function L(e, t = void 0, n = void 0) {
959
959
  } catch {
960
960
  a = o;
961
961
  }
962
- t && typeof t == "function" && t(a), s(a);
962
+ t && typeof t == "function" && t(a), n(a);
963
963
  },
964
964
  onFailure(o, a, c) {
965
- n && (console.log("error http", o), n({
965
+ s && (console.log("error http", o), s({
966
966
  msg: JSON.parse(o),
967
967
  headers: a,
968
968
  xhr: c
@@ -975,26 +975,26 @@ async function L(e, t = void 0, n = void 0) {
975
975
  });
976
976
  },
977
977
  (r) => {
978
- n && n(r), console.log("*_3dspace_download_doc / error file URL *", r), i(r);
978
+ s && s(r), console.log("*_3dspace_download_doc / error file URL *", r), i(r);
979
979
  }
980
980
  );
981
981
  });
982
982
  }
983
- async function ie(e, t, n = void 0, s = void 0) {
983
+ async function ie(e, t, s = void 0, n = void 0) {
984
984
  typeof t < "u" && Array.isArray(t) && t?.length > 0 ? X({
985
985
  credentials: e,
986
986
  myArray: t,
987
987
  chunk: 80,
988
988
  fn_to_call: ae
989
989
  }, (r) => {
990
- n && n(r);
990
+ s && s(r);
991
991
  }) : (console.warn(
992
992
  "La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
993
- ), s && s(
993
+ ), n && n(
994
994
  "La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
995
995
  ));
996
996
  }
997
- function ae(e, t, n = void 0, s = void 0, i = void 0) {
997
+ function ae(e, t, s = void 0, n = void 0, i = void 0) {
998
998
  const r = [];
999
999
  t.forEach((c) => {
1000
1000
  r.push({
@@ -1015,7 +1015,7 @@ function ae(e, t, n = void 0, s = void 0, i = void 0) {
1015
1015
  type: "json",
1016
1016
  onComplete(c) {
1017
1017
  const d = c.data;
1018
- c.success === !0 && (n && n(), d.forEach((u) => {
1018
+ c.success === !0 && (s && s(), d.forEach((u) => {
1019
1019
  try {
1020
1020
  const p = u.dataelements.fileName, f = u.dataelements.ticketURL;
1021
1021
  m(f, {
@@ -1026,7 +1026,7 @@ function ae(e, t, n = void 0, s = void 0, i = void 0) {
1026
1026
  } catch {
1027
1027
  h = l.blob();
1028
1028
  }
1029
- s && s({
1029
+ n && n({
1030
1030
  objectId: u.id,
1031
1031
  headers: g,
1032
1032
  fileName: p,
@@ -1047,9 +1047,9 @@ function ae(e, t, n = void 0, s = void 0, i = void 0) {
1047
1047
  }
1048
1048
  });
1049
1049
  }
1050
- function Ee(e, t, n = void 0, s = void 0) {
1050
+ function Ee(e, t, s = void 0, n = void 0) {
1051
1051
  return new Promise((i) => {
1052
- if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
1052
+ if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1053
1053
  const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
1054
1054
  let o = {
1055
1055
  method: "POST",
@@ -1068,19 +1068,19 @@ function Ee(e, t, n = void 0, s = void 0) {
1068
1068
  }),
1069
1069
  type: "json",
1070
1070
  onComplete(a) {
1071
- n && n(a);
1071
+ s && s(a);
1072
1072
  },
1073
1073
  onFailure(a) {
1074
- s && s(a);
1074
+ n && n(a);
1075
1075
  }
1076
1076
  };
1077
1077
  m(r, o);
1078
1078
  }
1079
1079
  });
1080
1080
  }
1081
- function Ke(e, t, n, s = void 0, i = void 0) {
1081
+ function Ke(e, t, s, n = void 0, i = void 0) {
1082
1082
  return new Promise((r) => {
1083
- if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
1083
+ if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1084
1084
  const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
1085
1085
  let a = {
1086
1086
  method: "POST",
@@ -1094,13 +1094,13 @@ function Ke(e, t, n, s = void 0, i = void 0) {
1094
1094
  data: [
1095
1095
  {
1096
1096
  id: t,
1097
- nextState: n
1097
+ nextState: s
1098
1098
  }
1099
1099
  ]
1100
1100
  }),
1101
1101
  type: "json",
1102
1102
  onComplete(c) {
1103
- s && s(c);
1103
+ n && n(c);
1104
1104
  },
1105
1105
  onFailure(c) {
1106
1106
  i && i(c);
@@ -1110,11 +1110,11 @@ function Ke(e, t, n, s = void 0, i = void 0) {
1110
1110
  }
1111
1111
  });
1112
1112
  }
1113
- function Be(e, t, n = void 0, s = void 0) {
1113
+ function Be(e, t, s = void 0, n = void 0) {
1114
1114
  return new Promise((i) => {
1115
- if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
1115
+ if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1116
1116
  const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
1117
- R(
1117
+ U(
1118
1118
  e.space,
1119
1119
  "ESPACE COMMUN",
1120
1120
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1141,21 +1141,21 @@ function Be(e, t, n = void 0, s = void 0) {
1141
1141
  }),
1142
1142
  type: "json",
1143
1143
  onComplete(a) {
1144
- n && n(a);
1144
+ s && s(a);
1145
1145
  },
1146
1146
  onFailure(a) {
1147
- s && s(a);
1147
+ n && n(a);
1148
1148
  }
1149
1149
  };
1150
1150
  m(r, o);
1151
1151
  }
1152
1152
  });
1153
1153
  }
1154
- function We(e, t, n = void 0, s = void 0) {
1154
+ function We(e, t, s = void 0, n = void 0) {
1155
1155
  return new Promise((i) => {
1156
- if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
1156
+ if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1157
1157
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
1158
- R(
1158
+ U(
1159
1159
  e.space,
1160
1160
  "ESPACE COMMUN",
1161
1161
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1188,21 +1188,21 @@ function We(e, t, n = void 0, s = void 0) {
1188
1188
  }),
1189
1189
  type: "json",
1190
1190
  onComplete(a) {
1191
- n && n(a);
1191
+ s && s(a);
1192
1192
  },
1193
1193
  onFailure(a) {
1194
- s && s(a);
1194
+ n && n(a);
1195
1195
  }
1196
1196
  };
1197
1197
  m(r, o);
1198
1198
  }
1199
1199
  });
1200
1200
  }
1201
- function Xe(e, t, n, s = void 0, i = void 0) {
1201
+ function Xe(e, t, s, n = void 0, i = void 0) {
1202
1202
  return new Promise((r) => {
1203
- if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
1203
+ if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1204
1204
  const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
1205
- R(
1205
+ U(
1206
1206
  e.space,
1207
1207
  "ESPACE COMMUN",
1208
1208
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1224,9 +1224,9 @@ function Xe(e, t, n, s = void 0, i = void 0) {
1224
1224
  data: [
1225
1225
  {
1226
1226
  physicalid: t,
1227
- proposedRevision: n,
1227
+ proposedRevision: s,
1228
1228
  modifiedAttributes: {
1229
- revision: n
1229
+ revision: s
1230
1230
  }
1231
1231
  }
1232
1232
  ],
@@ -1235,7 +1235,7 @@ function Xe(e, t, n, s = void 0, i = void 0) {
1235
1235
  }),
1236
1236
  type: "json",
1237
1237
  onComplete(c) {
1238
- s && s(c);
1238
+ n && n(c);
1239
1239
  },
1240
1240
  onFailure(c) {
1241
1241
  i && i(c);
@@ -1245,13 +1245,13 @@ function Xe(e, t, n, s = void 0, i = void 0) {
1245
1245
  }
1246
1246
  });
1247
1247
  }
1248
- function Ve(e, t, n, s, i = void 0, r = void 0) {
1248
+ function Ve(e, t, s, n, i = void 0, r = void 0) {
1249
1249
  return new Promise((o) => {
1250
1250
  const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
1251
1251
  let c = {
1252
1252
  attributes: {
1253
- title: n,
1254
- description: s,
1253
+ title: s,
1254
+ description: n,
1255
1255
  inheritedAccess: "no"
1256
1256
  }
1257
1257
  }, d = {
@@ -1278,7 +1278,7 @@ function Ve(e, t, n, s, i = void 0, r = void 0) {
1278
1278
  m(a, u);
1279
1279
  });
1280
1280
  }
1281
- function Ye(e, t, n, s, i = void 0, r = void 0) {
1281
+ function Ye(e, t, s, n, i = void 0, r = void 0) {
1282
1282
  return console.log("credentials", e), new Promise((o) => {
1283
1283
  `${e.space}`, JSON.stringify({
1284
1284
  csrf: {
@@ -1292,8 +1292,8 @@ function Ye(e, t, n, s, i = void 0, r = void 0) {
1292
1292
  relId: t,
1293
1293
  id: t,
1294
1294
  dataelements: {
1295
- personList: n,
1296
- eventsList: s
1295
+ personList: s,
1296
+ eventsList: n
1297
1297
  },
1298
1298
  tenant: e.tenant
1299
1299
  }
@@ -1302,12 +1302,12 @@ function Ye(e, t, n, s, i = void 0, r = void 0) {
1302
1302
  });
1303
1303
  }
1304
1304
  //!SECTION
1305
- function qe(e, t = void 0, n = void 0) {
1306
- const s = {
1305
+ function qe(e, t = void 0, s = void 0) {
1306
+ const n = {
1307
1307
  base: `${e.space}`,
1308
1308
  uri: "/resources/bps/cspaces",
1309
1309
  optTenant: `tenant=${e.tenant}`
1310
- }, i = `${s.base}${s.uri}?${s.optTenant}`;
1310
+ }, i = `${n.base}${n.uri}?${n.optTenant}`;
1311
1311
  m(i, {
1312
1312
  method: "GET",
1313
1313
  headers: {
@@ -1319,54 +1319,54 @@ function qe(e, t = void 0, n = void 0) {
1319
1319
  t && t(a, o);
1320
1320
  },
1321
1321
  onFailure(r, o, a) {
1322
- n && n({ response: r, headers: o, xhr: a });
1322
+ s && s({ response: r, headers: o, xhr: a });
1323
1323
  }
1324
1324
  });
1325
1325
  }
1326
- function He(e, t, n, s) {
1327
- j(
1326
+ function He(e, t, s, n) {
1327
+ k(
1328
1328
  e.space,
1329
1329
  t,
1330
1330
  (i) => {
1331
1331
  m(i, {
1332
1332
  header: { ENO_CSRF_TOKEN: e.token },
1333
1333
  onComplete: (r) => {
1334
- n && n(r);
1334
+ s && s(r);
1335
1335
  },
1336
1336
  onFailure: (r) => {
1337
- console.log("error http", r), s && s(r);
1337
+ console.log("error http", r), n && n(r);
1338
1338
  }
1339
1339
  });
1340
1340
  }
1341
1341
  );
1342
1342
  }
1343
- async function ze(e, t, n = void 0, s = void 0) {
1343
+ async function ze(e, t, s = void 0, n = void 0) {
1344
1344
  return new Promise((i) => {
1345
- j(e, t, (r) => {
1345
+ k(e, t, (r) => {
1346
1346
  m(r, {
1347
- onComplete: (o, a, c) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, c), i),
1347
+ onComplete: (o, a, c) => (i(JSON.parse(o)), s && s(JSON.parse(o), a, c), i),
1348
1348
  onFailure: (o, a, c) => {
1349
- s && s(o, a, c), console.log(o, a?.errormsg);
1349
+ n && n(o, a, c), console.log(o, a?.errormsg);
1350
1350
  }
1351
1351
  });
1352
1352
  });
1353
1353
  });
1354
1354
  }
1355
- function Qe(e, t, n, s = void 0, i = void 0) {
1355
+ function Qe(e, t, s, n = void 0, i = void 0) {
1356
1356
  const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
1357
1357
  F(
1358
1358
  e,
1359
- n,
1359
+ s,
1360
1360
  (o) => {
1361
1361
  const a = o.data[0].relateddata.files[0].id, c = o.data[0].dataelements.secondaryTitle !== "" ? o.data[0].dataelements.secondaryTitle : o.data[0].dataelements.title;
1362
- D(
1362
+ P(
1363
1363
  e,
1364
- n,
1364
+ s,
1365
1365
  a,
1366
1366
  r,
1367
1367
  c,
1368
1368
  (d) => {
1369
- s && s(d);
1369
+ n && n(d);
1370
1370
  },
1371
1371
  (d) => {
1372
1372
  i && i(d);
@@ -1376,40 +1376,40 @@ function Qe(e, t, n, s = void 0, i = void 0) {
1376
1376
  );
1377
1377
  }
1378
1378
  let M, J;
1379
- const k = [];
1380
- async function Ze(e, t = void 0, n = void 0) {
1379
+ const j = [];
1380
+ async function Ze(e, t = void 0, s = void 0) {
1381
1381
  e.objID && e.objID !== "" ? F(
1382
1382
  e,
1383
- (s) => {
1384
- t && t(s);
1383
+ (n) => {
1384
+ t && t(n);
1385
1385
  },
1386
- (s) => {
1387
- n && n(s);
1386
+ (n) => {
1387
+ s && s(n);
1388
1388
  }
1389
- ) : (e.objID === null || e.objID === "") && O(
1389
+ ) : (e.objID === null || e.objID === "") && b(
1390
1390
  e,
1391
- (s) => {
1392
- t && t({ rep: s, msg: "Pas d'objID, ou invalide" });
1391
+ (n) => {
1392
+ t && t({ rep: n, msg: "Pas d'objID, ou invalide" });
1393
1393
  },
1394
- (s) => {
1395
- n && n({ msg: "Pas d'objID et erreur sur le Space", err: s });
1394
+ (n) => {
1395
+ s && s({ msg: "Pas d'objID et erreur sur le Space", err: n });
1396
1396
  }
1397
1397
  );
1398
1398
  }
1399
- async function et(e, t = void 0, n = void 0) {
1399
+ async function et(e, t = void 0, s = void 0) {
1400
1400
  console.log("getDatasByTenant (getDocuments)", e), await L(
1401
1401
  e,
1402
- (s) => {
1402
+ (n) => {
1403
1403
  const i = {};
1404
- i.obj = s, console.log("getDatasByTenant (getDocuments) _datas", i), t && t?.(i);
1404
+ i.obj = n, console.log("getDatasByTenant (getDocuments) _datas", i), t && t?.(i);
1405
1405
  },
1406
- (s) => {
1407
- n && n?.(s);
1406
+ (n) => {
1407
+ s && s?.(n);
1408
1408
  }
1409
1409
  );
1410
1410
  }
1411
- function tt(e, t = void 0, n = void 0) {
1412
- const s = [];
1411
+ function tt(e, t = void 0, s = void 0) {
1412
+ const n = [];
1413
1413
  if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
1414
1414
  console.warn("la liste est vide ou n'est pas un tableau");
1415
1415
  return;
@@ -1419,21 +1419,21 @@ function tt(e, t = void 0, n = void 0) {
1419
1419
  e,
1420
1420
  i.objID,
1421
1421
  (o) => {
1422
- s.push({ [i.name]: o }), i.name === "dbProjets" && (M = o.affaires.map((a) => a.objectID), oe(e, J)), r === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
1422
+ n.push({ [i.name]: o }), i.name === "dbProjets" && (M = o.affaires.map((a) => a.objectID), oe(e, J)), r === e.objIds.length - 1 && (t && t(n), delete e.objIds, delete e.datas);
1423
1423
  }
1424
1424
  );
1425
1425
  });
1426
1426
  }
1427
- function oe(e, t, n = void 0, s = void 0) {
1427
+ function oe(e, t, s = void 0, n = void 0) {
1428
1428
  ie(
1429
1429
  e,
1430
1430
  M,
1431
1431
  (i) => {
1432
1432
  const r = [...t];
1433
- r.find((o) => o.objectID === i.objectId).data = i.data, J = r, k.push(i.data), n && n(k);
1433
+ r.find((o) => o.objectID === i.objectId).data = i.data, J = r, j.push(i.data), s && s(j);
1434
1434
  },
1435
1435
  (i) => {
1436
- s && (s(i), console.log(i));
1436
+ n && (n(i), console.log(i));
1437
1437
  }
1438
1438
  );
1439
1439
  }
@@ -1457,7 +1457,7 @@ const re = "FA35FB9B177A280065800EA0000F599C", ce = [
1457
1457
  order_by: "desc",
1458
1458
  tag: "testTag"
1459
1459
  };
1460
- function nt(e, t, n = void 0, s = void 0) {
1460
+ function nt(e, t, s = void 0, n = void 0) {
1461
1461
  const { space: i, tenant: r } = e, { objId: o, pred: a, tag: c } = t, d = {
1462
1462
  uri: "/resources/6w/tags",
1463
1463
  otpCTX: "SecurityContext=preferred",
@@ -1488,7 +1488,7 @@ function nt(e, t, n = void 0, s = void 0) {
1488
1488
  JSON.parse(f);
1489
1489
  const l = {};
1490
1490
  setTimeout(() => {
1491
- P(
1491
+ D(
1492
1492
  e,
1493
1493
  o,
1494
1494
  (g) => {
@@ -1497,27 +1497,27 @@ function nt(e, t, n = void 0, s = void 0) {
1497
1497
  e,
1498
1498
  t,
1499
1499
  (S) => {
1500
- n && n(S);
1500
+ s && s(S);
1501
1501
  },
1502
1502
  (S) => {
1503
- s && s(S);
1503
+ n && n(S);
1504
1504
  }
1505
1505
  );
1506
1506
  },
1507
1507
  (g, h) => {
1508
1508
  const y = g;
1509
- y.msg = h.errormsg, y.errCode = h.errorcode, console.log("❌ sendDirectMessage => ", y), s && s(y);
1509
+ y.msg = h.errormsg, y.errCode = h.errorcode, console.log("❌ sendDirectMessage => ", y), n && n(y);
1510
1510
  }
1511
1511
  );
1512
1512
  }, 2e3);
1513
1513
  },
1514
1514
  onFailure(f, l) {
1515
1515
  const g = f;
1516
- g.msg = l.errormsg, g.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", g), s && s(g);
1516
+ g.msg = l.errormsg, g.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", g), n && n(g);
1517
1517
  }
1518
1518
  });
1519
1519
  }
1520
- function ue(e, t, n = void 0, s = void 0) {
1520
+ function ue(e, t, s = void 0, n = void 0) {
1521
1521
  console.log("obj ", t);
1522
1522
  const i = t.info.name, r = {
1523
1523
  baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
@@ -1592,15 +1592,15 @@ function ue(e, t, n = void 0, s = void 0) {
1592
1592
  data: JSON.stringify(d),
1593
1593
  onComplete(u) {
1594
1594
  const p = JSON.parse(u);
1595
- n(p);
1595
+ s(p);
1596
1596
  },
1597
1597
  onFailure(u, p) {
1598
1598
  const f = u;
1599
- f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f), console.log("Erreur de recuperation d'id du doc et des tags", u);
1599
+ f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), n && n(f), console.log("Erreur de recuperation d'id du doc et des tags", u);
1600
1600
  }
1601
1601
  });
1602
1602
  }
1603
- function st(e, t, n = void 0, s = void 0) {
1603
+ function st(e, t, s = void 0, n = void 0) {
1604
1604
  const { objId: i, pred: r, tag: o } = t, a = {
1605
1605
  uri: "/resources/6w/tags",
1606
1606
  otpCTX: "SecurityContext=preferred",
@@ -1628,15 +1628,15 @@ function st(e, t, n = void 0, s = void 0) {
1628
1628
  Accept: "application/json,text/javascript,*/*"
1629
1629
  },
1630
1630
  onComplete(u) {
1631
- n && n(u);
1631
+ s && s(u);
1632
1632
  },
1633
1633
  onFailure(u, p) {
1634
1634
  const f = u;
1635
- f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f);
1635
+ f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), n && n(f);
1636
1636
  }
1637
1637
  });
1638
1638
  }
1639
- function it(e, t = "", n = void 0, s = void 0) {
1639
+ function it(e, t = "", s = void 0, n = void 0) {
1640
1640
  const { space: i } = e;
1641
1641
  if (t === "")
1642
1642
  return;
@@ -1651,29 +1651,29 @@ function it(e, t = "", n = void 0, s = void 0) {
1651
1651
  headers: o,
1652
1652
  data: c,
1653
1653
  onComplete(d) {
1654
- n && n(JSON.parse(d));
1654
+ s && s(JSON.parse(d));
1655
1655
  },
1656
1656
  onFailure(d, u) {
1657
1657
  const p = d;
1658
- p.msg = u.error, s && s(p);
1658
+ p.msg = u.error, n && n(p);
1659
1659
  }
1660
1660
  });
1661
1661
  }
1662
- async function w(e, t = void 0, n = void 0) {
1663
- const s = e._3DSwym + "/api/index/tk";
1664
- return m(s, {
1662
+ async function w(e, t = void 0, s = void 0) {
1663
+ const n = e._3DSwym + "/api/index/tk";
1664
+ return m(n, {
1665
1665
  onComplete(i, r, o) {
1666
1666
  const a = JSON.parse(i);
1667
1667
  if (t)
1668
1668
  return t(a), e.token = a?.result?.ServerToken;
1669
1669
  },
1670
1670
  onFailure(i) {
1671
- n && n(i);
1671
+ s && s(i);
1672
1672
  }
1673
1673
  });
1674
1674
  }
1675
- function at(e, t = void 0, n = void 0) {
1676
- const s = `${e._3DSwym}/api/exalead/whatsnew`, i = {
1675
+ function at(e, t = void 0, s = void 0) {
1676
+ const n = `${e._3DSwym}/api/exalead/whatsnew`, i = {
1677
1677
  params: {
1678
1678
  community_id: null,
1679
1679
  hash_key: null,
@@ -1684,7 +1684,7 @@ function at(e, t = void 0, n = void 0) {
1684
1684
  }
1685
1685
  };
1686
1686
  w(e, (r) => {
1687
- m(s, {
1687
+ m(n, {
1688
1688
  method: "POST",
1689
1689
  headers: {
1690
1690
  "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
@@ -1697,13 +1697,13 @@ function at(e, t = void 0, n = void 0) {
1697
1697
  t && t(o, a);
1698
1698
  },
1699
1699
  onFailure(o, a) {
1700
- n && n(o, a);
1700
+ s && s(o, a);
1701
1701
  }
1702
1702
  });
1703
1703
  });
1704
1704
  }
1705
- function ot(e, t = void 0, n = void 0) {
1706
- const s = `${e._3DSwym}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
1705
+ function ot(e, t = void 0, s = void 0) {
1706
+ const n = `${e._3DSwym}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
1707
1707
  params: {
1708
1708
  idsToFilterArr: [],
1709
1709
  mode: "offline",
@@ -1713,7 +1713,7 @@ function ot(e, t = void 0, n = void 0) {
1713
1713
  }
1714
1714
  };
1715
1715
  w(e, (r) => {
1716
- m(s, {
1716
+ m(n, {
1717
1717
  method: "POST",
1718
1718
  headers: {
1719
1719
  "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
@@ -1727,18 +1727,18 @@ function ot(e, t = void 0, n = void 0) {
1727
1727
  t && t(c, o);
1728
1728
  },
1729
1729
  onFailure(o, a) {
1730
- n && n(o, a);
1730
+ s && s(o, a);
1731
1731
  }
1732
1732
  });
1733
1733
  });
1734
1734
  }
1735
- function rt(e, t = void 0, n = void 0) {
1736
- const s = {
1735
+ function rt(e, t = void 0, s = void 0) {
1736
+ const n = {
1737
1737
  base: e._3DSwym,
1738
1738
  uri: "/api/community/listmycommunities",
1739
1739
  limit: `/limit/${e.limit ? e.limit : 500}`,
1740
1740
  page: `/page/${e.page ? e.page : "1"}`
1741
- }, i = `${s.base}${s.uri}${s.limit}${s.page}`, r = [];
1741
+ }, i = `${n.base}${n.uri}${n.limit}${n.page}`, r = [];
1742
1742
  w(e, (o) => {
1743
1743
  m(i, {
1744
1744
  method: "GET",
@@ -1763,18 +1763,18 @@ function rt(e, t = void 0, n = void 0) {
1763
1763
  (h) => {
1764
1764
  f++, g.members = h, r.push(g), f === p.length && t && t(r);
1765
1765
  },
1766
- (h) => n(h)
1766
+ (h) => s(h)
1767
1767
  );
1768
1768
  });
1769
1769
  },
1770
1770
  onFailure(a, c) {
1771
1771
  const d = a;
1772
- d.status = c.status, d.response = c.errormsg, n && n(d);
1772
+ d.status = c.status, d.response = c.errormsg, s && s(d);
1773
1773
  }
1774
1774
  });
1775
1775
  });
1776
1776
  }
1777
- function pe(e, t, n, s) {
1777
+ function pe(e, t, s, n) {
1778
1778
  const i = `${e._3DSwym}/api/community/listmembers`, r = {
1779
1779
  params: {
1780
1780
  page: e.page ? e.page : 1,
@@ -1793,18 +1793,18 @@ function pe(e, t, n, s) {
1793
1793
  data: JSON.stringify(r),
1794
1794
  type: "json",
1795
1795
  onComplete(a, c, d) {
1796
- n && n(a);
1796
+ s && s(a);
1797
1797
  },
1798
1798
  onFailure(a, c) {
1799
1799
  const d = a;
1800
- d.status = c.status, d.response = c.errormsg, s && s(d);
1800
+ d.status = c.status, d.response = c.errormsg, n && n(d);
1801
1801
  }
1802
1802
  });
1803
1803
  });
1804
1804
  }
1805
- function ct(e, t = void 0, n = void 0) {
1806
- const s = "YXdA5x4DSUKtlAi2wmnyTA";
1807
- e.commu_id || (e.commu_id = s);
1805
+ function ct(e, t = void 0, s = void 0) {
1806
+ const n = "YXdA5x4DSUKtlAi2wmnyTA";
1807
+ e.commu_id || (e.commu_id = n);
1808
1808
  const i = `${e._3DSwym}/api/v2/communities/${e.commu_id}/ideas/statuses`;
1809
1809
  w(e, (r) => {
1810
1810
  m(i, {
@@ -1820,12 +1820,12 @@ function ct(e, t = void 0, n = void 0) {
1820
1820
  },
1821
1821
  onFailure(o, a) {
1822
1822
  const c = o;
1823
- c.status = a.status, c.response = a.errormsg, n && n(c);
1823
+ c.status = a.status, c.response = a.errormsg, s && s(c);
1824
1824
  }
1825
1825
  });
1826
1826
  });
1827
1827
  }
1828
- function dt(e, t, n = void 0, s = void 0) {
1828
+ function dt(e, t, s = void 0, n = void 0) {
1829
1829
  const { listAllContacts: i, currentUser: r, _3DSwym: o } = e;
1830
1830
  console.log("__listAllContacts", i.hits);
1831
1831
  const a = `${o}/api/directmessages`, c = {
@@ -1843,7 +1843,7 @@ function dt(e, t, n = void 0, s = void 0) {
1843
1843
  p !== void 0 && (d.id_msg = p.id, u = !0, v(e, d));
1844
1844
  },
1845
1845
  (p) => {
1846
- u = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), d.id_msg = "";
1846
+ u = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), n && n(p), d.id_msg = "";
1847
1847
  }
1848
1848
  ), u === !1 && setTimeout(() => {
1849
1849
  u === !1 && w(e, (p) => {
@@ -1858,17 +1858,17 @@ function dt(e, t, n = void 0, s = void 0) {
1858
1858
  type: "json",
1859
1859
  onComplete(f, l, g) {
1860
1860
  const h = f;
1861
- h.reponse = JSON.parse(g.response), h.status = g.status, n && n(h), d.id_msg = h.result.id, v(e, d);
1861
+ h.reponse = JSON.parse(g.response), h.status = g.status, s && s(h), d.id_msg = h.result.id, v(e, d);
1862
1862
  },
1863
1863
  onFailure(f, l, g) {
1864
1864
  const h = f;
1865
- h.msg = l.errormsg, h.status = l.status, s && s(h);
1865
+ h.msg = l.errormsg, h.status = l.status, n && n(h);
1866
1866
  }
1867
1867
  });
1868
1868
  });
1869
1869
  }, 500);
1870
1870
  }
1871
- function le(e, t, n, s) {
1871
+ function le(e, t, s, n) {
1872
1872
  const i = `${e._3DSwym}/api/directmessages/lite?with_favorites=false`;
1873
1873
  w(e, (r) => {
1874
1874
  m(i, {
@@ -1888,16 +1888,16 @@ function le(e, t, n, s) {
1888
1888
  f.push(l.login);
1889
1889
  }), JSON.stringify(f) === JSON.stringify(d);
1890
1890
  });
1891
- n && u !== void 0 ? n(u) : (s || u === void 0) && s(u);
1891
+ s && u !== void 0 ? s(u) : (n || u === void 0) && n(u);
1892
1892
  },
1893
1893
  onFailure(o) {
1894
1894
  const a = o;
1895
- a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), s && s(a);
1895
+ a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), n && n(a);
1896
1896
  }
1897
1897
  });
1898
1898
  });
1899
1899
  }
1900
- function v(e, t, n = void 0, s = void 0) {
1900
+ function v(e, t, s = void 0, n = void 0) {
1901
1901
  const i = {
1902
1902
  base: e._3DSwym,
1903
1903
  uri: "/api/community",
@@ -1925,23 +1925,23 @@ function v(e, t, n = void 0, s = void 0) {
1925
1925
  type: "json",
1926
1926
  onComplete(c, d, u) {
1927
1927
  const p = c;
1928
- p.status = u.status, p.response = JSON.parse(u.response), console.log("✅ _3dSwym_sendDirectMessageData => ", p), n && n(p);
1928
+ p.status = u.status, p.response = JSON.parse(u.response), console.log("✅ _3dSwym_sendDirectMessageData => ", p), s && s(p);
1929
1929
  },
1930
1930
  onFailure(c, d) {
1931
1931
  const u = c;
1932
- u.msg = d.errormsg, u.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", u), s && s(u);
1932
+ u.msg = d.errormsg, u.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", u), n && n(u);
1933
1933
  }
1934
1934
  });
1935
1935
  });
1936
1936
  }
1937
1937
  function fe(e) {
1938
- const t = (/* @__PURE__ */ new Date()).toLocaleDateString(), n = (/* @__PURE__ */ new Date()).toLocaleTimeString();
1938
+ const t = (/* @__PURE__ */ new Date()).toLocaleDateString(), s = (/* @__PURE__ */ new Date()).toLocaleTimeString();
1939
1939
  return `<p>${e} </p>
1940
1940
  <br/>
1941
1941
  <hr/>
1942
- <p><u>envoyer :</u>Le <b>${t} à ${n}</b></p>`;
1942
+ <p><u>envoyer :</u>Le <b>${t} à ${s}</b></p>`;
1943
1943
  }
1944
- function ut(e, t, n = void 0, s = void 0) {
1944
+ function ut(e, t, s = void 0, n = void 0) {
1945
1945
  const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
1946
1946
  (c) => c.id === t.community_id
1947
1947
  ), o = e.swymCommunities.find(
@@ -1971,20 +1971,20 @@ function ut(e, t, n = void 0, s = void 0) {
1971
1971
  type: "json",
1972
1972
  onComplete(u, p, f) {
1973
1973
  const l = JSON.parse(u);
1974
- l.status = f.status, l.response = f.response, n && n(l);
1974
+ l.status = f.status, l.response = f.response, s && s(l);
1975
1975
  },
1976
1976
  onFailure(u, p, f) {
1977
1977
  const l = u;
1978
- l.status = p.status, l.response = p.errormsg, s && s(l);
1978
+ l.status = p.status, l.response = p.errormsg, n && n(l);
1979
1979
  }
1980
1980
  });
1981
1981
  });
1982
1982
  }
1983
- function pt(e, t = void 0, n = void 0) {
1984
- const s = { base: e.space, uri: "/api/idea/add" };
1983
+ function pt(e, t = void 0, s = void 0) {
1984
+ const n = { base: e.space, uri: "/api/idea/add" };
1985
1985
  if (!Array.isArray(e.swymCommunities)) {
1986
1986
  const o = "☠️ swymCommunities doit être un tableau d'objets de communautés";
1987
- throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
1987
+ throw new Error(`Erreur sur cette requête : ${n.base + n.uri}`, {
1988
1988
  cause: o
1989
1989
  });
1990
1990
  }
@@ -1992,19 +1992,19 @@ function pt(e, t = void 0, n = void 0) {
1992
1992
  (o) => o.id === e.community_id
1993
1993
  ) === -1) {
1994
1994
  const o = "la communauté n'existe pas dans la liste des communautés du Swym";
1995
- throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
1995
+ throw new Error(`Erreur sur cette requête : ${n.base + n.uri}`, {
1996
1996
  cause: o
1997
1997
  });
1998
1998
  }
1999
1999
  if (e.community_id && e.community_id === "") {
2000
2000
  const o = "☠️ community_id doit être un String qui contient l'id de la communauté dans laquelle on souhaite publier l'idée.";
2001
- throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
2001
+ throw new Error(`Erreur sur cette requête : ${n.base + n.uri}`, {
2002
2002
  cause: o
2003
2003
  });
2004
2004
  }
2005
2005
  if (e.title && e.title === "") {
2006
2006
  const o = "☠️ title doit être un String.";
2007
- throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
2007
+ throw new Error(`Erreur sur cette requête : ${n.base + n.uri}`, {
2008
2008
  cause: o
2009
2009
  });
2010
2010
  }
@@ -2023,7 +2023,7 @@ function pt(e, t = void 0, n = void 0) {
2023
2023
  w(e, (o) => {
2024
2024
  if (!o)
2025
2025
  throw new Error(
2026
- `☠️ token n'est pas disponible pour cette requête : ${s.base + s.uri}`,
2026
+ `☠️ token n'est pas disponible pour cette requête : ${n.base + n.uri}`,
2027
2027
  {
2028
2028
  cause: o
2029
2029
  }
@@ -2042,18 +2042,18 @@ function pt(e, t = void 0, n = void 0) {
2042
2042
  },
2043
2043
  onFailure(c, d, u) {
2044
2044
  const p = JSON.parse(d), f = JSON.parse(c), l = new Error(
2045
- `Erreur sur cette requête : ${s.base + s.uri}`,
2045
+ `Erreur sur cette requête : ${n.base + n.uri}`,
2046
2046
  {
2047
2047
  cause: { head: p, rep: f }
2048
2048
  }
2049
2049
  );
2050
- n && n(l);
2050
+ s && s(l);
2051
2051
  }
2052
2052
  };
2053
- m(s.base + s.uri, a);
2053
+ m(n.base + n.uri, a);
2054
2054
  });
2055
2055
  }
2056
- function lt(e, t, n = void 0, s = void 0) {
2056
+ function lt(e, t, s = void 0, n = void 0) {
2057
2057
  const i = `${e.space}/api/idea/delete`, r = {
2058
2058
  params: {
2059
2059
  community_id: t.community_id,
@@ -2071,17 +2071,17 @@ function lt(e, t, n = void 0, s = void 0) {
2071
2071
  data: JSON.stringify(r),
2072
2072
  type: "json",
2073
2073
  onComplete(a, c, d) {
2074
- n && n(a);
2074
+ s && s(a);
2075
2075
  },
2076
2076
  onFailure(a, c, d) {
2077
2077
  const u = a;
2078
- u.status = c.status, u.response = c.errormsg, s && s(u);
2078
+ u.status = c.status, u.response = c.errormsg, n && n(u);
2079
2079
  }
2080
2080
  });
2081
2081
  });
2082
2082
  }
2083
- function ft(e, t = void 0, n = void 0) {
2084
- const { _3DSwym: s, _3DSwym_token: i } = e, r = `${s}/api/idea/get`;
2083
+ function ft(e, t = void 0, s = void 0) {
2084
+ const { _3DSwym: n, _3DSwym_token: i } = e, r = `${n}/api/idea/get`;
2085
2085
  if (e.idPost === "") {
2086
2086
  const a = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
2087
2087
  throw new Error(`Erreur sur cette requête : ${r}`, { cause: a });
@@ -2104,13 +2104,13 @@ function ft(e, t = void 0, n = void 0) {
2104
2104
  },
2105
2105
  onFailure(a) {
2106
2106
  const c = a;
2107
- c.status = headers.status, c.response = headers.errormsg, n && n(c);
2107
+ c.status = headers.status, c.response = headers.errormsg, s && s(c);
2108
2108
  }
2109
2109
  });
2110
2110
  }
2111
- function mt(e, t, n) {
2111
+ function mt(e, t, s) {
2112
2112
  const {
2113
- _3DSwym: s,
2113
+ _3DSwym: n,
2114
2114
  _3DSwym_token: i,
2115
2115
  idPost: r,
2116
2116
  title: o,
@@ -2119,7 +2119,7 @@ function mt(e, t, n) {
2119
2119
  status_id: d,
2120
2120
  message: u
2121
2121
  } = e, p = {
2122
- base: `${s}`,
2122
+ base: `${n}`,
2123
2123
  uri: "/api/idea/edit"
2124
2124
  }, l = {
2125
2125
  method: "POST",
@@ -2148,12 +2148,12 @@ function mt(e, t, n) {
2148
2148
  _.status = y.status, t && t(_);
2149
2149
  },
2150
2150
  onFailure(g) {
2151
- n && n(g);
2151
+ s && s(g);
2152
2152
  }
2153
2153
  };
2154
2154
  m(p.base + p.uri, l);
2155
2155
  }
2156
- function gt(e, t, n = void 0, s = void 0) {
2156
+ function gt(e, t, s = void 0, n = void 0) {
2157
2157
  const { _3DSwym: i } = e;
2158
2158
  let { community_id: r, limit: o, page: a, search: c } = t;
2159
2159
  const d = [], u = 1;
@@ -2183,12 +2183,12 @@ function gt(e, t, n = void 0, s = void 0) {
2183
2183
  (E) => E.title.includes(c)
2184
2184
  );
2185
2185
  if (T) {
2186
- n(T);
2186
+ s(T);
2187
2187
  return;
2188
2188
  }
2189
2189
  }
2190
- if (n && f < a && !c) {
2191
- p = !0, n(d);
2190
+ if (s && f < a && !c) {
2191
+ p = !0, s(d);
2192
2192
  return;
2193
2193
  }
2194
2194
  y(_);
@@ -2196,7 +2196,7 @@ function gt(e, t, n = void 0, s = void 0) {
2196
2196
  },
2197
2197
  onFailure(S, C) {
2198
2198
  const T = S;
2199
- T.status = C.status, T.response = C.errormsg, s && s(T);
2199
+ T.status = C.status, T.response = C.errormsg, n && n(T);
2200
2200
  }
2201
2201
  });
2202
2202
  };
@@ -2278,9 +2278,9 @@ function me(e) {
2278
2278
  <p>
2279
2279
  </p>` : e;
2280
2280
  }
2281
- function ht(e, t = void 0, n = void 0) {
2282
- const { tenant: s, _3DSwym: i, _3DSwym_token: r, community_id: o, idea_id: a } = e;
2283
- if (s && i && r && o && a) {
2281
+ function ht(e, t = void 0, s = void 0) {
2282
+ const { tenant: n, _3DSwym: i, _3DSwym_token: r, community_id: o, idea_id: a } = e;
2283
+ if (n && i && r && o && a) {
2284
2284
  const c = `${i}/api/idea/forward`;
2285
2285
  m(c, {
2286
2286
  method: "POST",
@@ -2290,8 +2290,8 @@ function ht(e, t = void 0, n = void 0) {
2290
2290
  "X-DS-SWYM-CSRFTOKEN": r
2291
2291
  },
2292
2292
  data: JSON.stringify({
2293
- community_uri: `swym:prd:${s.toUpperCase()}:community:${o}`,
2294
- content_uri: `swym:prd:${s.toUpperCase()}:idea:${a}`,
2293
+ community_uri: `swym:prd:${n.toUpperCase()}:community:${o}`,
2294
+ content_uri: `swym:prd:${n.toUpperCase()}:idea:${a}`,
2295
2295
  timeout: 3e4
2296
2296
  }),
2297
2297
  type: "json",
@@ -2300,22 +2300,22 @@ function ht(e, t = void 0, n = void 0) {
2300
2300
  },
2301
2301
  onFailure(d, u) {
2302
2302
  const p = d;
2303
- p.status = u.status, p.response = u.errormsg, n && n(p);
2303
+ p.status = u.status, p.response = u.errormsg, s && s(p);
2304
2304
  }
2305
2305
  });
2306
2306
  } else
2307
- n && n({
2307
+ s && s({
2308
2308
  status: "error",
2309
2309
  msg: "Credentials incomplet !",
2310
2310
  attend: "tenant, _3DSwym , _3DSwym_token, community_id, idea_id",
2311
2311
  credentials: e
2312
2312
  });
2313
2313
  }
2314
- function yt(e, t = void 0, n = void 0) {
2315
- return new Promise((s, i) => {
2314
+ function yt(e, t = void 0, s = void 0) {
2315
+ return new Promise((n, i) => {
2316
2316
  try {
2317
2317
  const { _3DDashboard: r, _3DSwym: o } = e;
2318
- let a = null;
2318
+ let a;
2319
2319
  if (o) {
2320
2320
  const c = e._3DSwym + "/api/user/getcurrent/";
2321
2321
  w(e, (d) => {
@@ -2325,15 +2325,7 @@ function yt(e, t = void 0, n = void 0) {
2325
2325
  "X-DS-SWYM-CSRFTOKEN": d.result.ServerToken
2326
2326
  },
2327
2327
  onComplete(u, p, f) {
2328
- const l = JSON.parse(u);
2329
- t && t(l.result), a = l.result;
2330
- },
2331
- onFailure(u, p, f) {
2332
- const l = { erreur: JSON.parse(u), headers: p, xhr: f };
2333
- n && n(l), n && console.error(
2334
- "ERROR | _3DSwym_get_currentUser => _3dswym_get_version | onFailure",
2335
- u
2336
- );
2328
+ a = JSON.parse(u).result;
2337
2329
  }
2338
2330
  });
2339
2331
  });
@@ -2344,23 +2336,17 @@ function yt(e, t = void 0, n = void 0) {
2344
2336
  method: "GET",
2345
2337
  onComplete(d, u, p) {
2346
2338
  const f = JSON.parse(d);
2347
- t && t(f), f.first_name = f.firstName, f.last_name = f.lastName, a = f;
2348
- },
2349
- onFailure(d, u, p) {
2350
- const f = { erreur: JSON.parse(d), headers: u, xhr: p };
2351
- n && n(f), n && console.error(
2352
- "ERROR | _3DSwym_get_currentUser => _3dswym_get_version | onFailure",
2353
- d
2354
- );
2339
+ f.first_name = f.firstName, f.last_name = f.lastName, a = f;
2355
2340
  }
2356
2341
  });
2357
2342
  }
2358
- a ? s(a) : i("ERROR | _3DSwym_get_currentUser => CURRENT_USER is null");
2359
- } catch {
2343
+ a ? n(a) : i("ERROR | _3DSwym_get_currentUser => CURRENT_USER is null");
2344
+ } catch (r) {
2345
+ i("ERROR | _3DSwym_get_currentUser => ", r);
2360
2346
  }
2361
2347
  });
2362
2348
  }
2363
- function _t(e, t, n = void 0, s = void 0) {
2349
+ function _t(e, t, s = void 0, n = void 0) {
2364
2350
  const i = e.space + "/api/user/find/login/" + t;
2365
2351
  w(
2366
2352
  e,
@@ -2370,23 +2356,23 @@ function _t(e, t, n = void 0, s = void 0) {
2370
2356
  headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
2371
2357
  onComplete(o, a, c) {
2372
2358
  const d = JSON.parse(o);
2373
- n && n(d);
2359
+ s && s(d);
2374
2360
  },
2375
2361
  onFailure(o) {
2376
- s && s(o);
2362
+ n && n(o);
2377
2363
  }
2378
2364
  });
2379
2365
  },
2380
- s
2366
+ n
2381
2367
  );
2382
2368
  }
2383
- function St(e, t = void 0, n = void 0) {
2369
+ function St(e, t = void 0, s = void 0) {
2384
2370
  const {
2385
- _3DSwym: s,
2371
+ _3DSwym: n,
2386
2372
  _3DSwym_token: i,
2387
2373
  subjectUri: r,
2388
2374
  richMessage: o
2389
- } = e, a = `${s}/commentproxy/subjects/${r}/comments`, d = {
2375
+ } = e, a = `${n}/commentproxy/subjects/${r}/comments`, d = {
2390
2376
  method: "POST",
2391
2377
  headers: {
2392
2378
  "Content-type": "application/json;charset=UTF-8",
@@ -2402,22 +2388,22 @@ function St(e, t = void 0, n = void 0) {
2402
2388
  l.status = f.status, t && t(l);
2403
2389
  },
2404
2390
  onFailure(u) {
2405
- n && n(u);
2391
+ s && s(u);
2406
2392
  }
2407
2393
  };
2408
2394
  m(a, d);
2409
2395
  }
2410
- function wt(e, t = void 0, n = void 0) {
2411
- e.tenant && x(e, (s) => {
2412
- const i = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2396
+ function wt(e, t = void 0, s = void 0) {
2397
+ e.tenant && x(e, (n) => {
2398
+ const i = n.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2413
2399
  return t && t(i), i;
2414
2400
  });
2415
2401
  }
2416
- function Ct(e, t = void 0, n = void 0) {
2417
- e.tenant && x(e, (s) => {
2418
- const i = s.services.find(
2402
+ function Ct(e, t = void 0, s = void 0) {
2403
+ e.tenant && x(e, (n) => {
2404
+ const i = n.services.find(
2419
2405
  (a) => a.id === "3dpassport"
2420
- )?.url, r = s.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
2406
+ )?.url, r = n.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
2421
2407
  m(o, {
2422
2408
  async onComplete(a) {
2423
2409
  const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
@@ -2428,24 +2414,24 @@ function Ct(e, t = void 0, n = void 0) {
2428
2414
  });
2429
2415
  },
2430
2416
  onFailure(a) {
2431
- n && n(a);
2417
+ s && s(a);
2432
2418
  }
2433
2419
  });
2434
2420
  });
2435
2421
  }
2436
- function Tt(e, t = void 0, n = void 0) {
2422
+ function Tt(e, t = void 0, s = void 0) {
2437
2423
  if (e.tenant) {
2438
- const s = e.tenant.toLowerCase();
2439
- fetch(`https://api.uixhome.fr/${s}/iterop/jwtuser`, {
2424
+ const n = e.tenant.toLowerCase();
2425
+ fetch(`https://api.uixhome.fr/${n}/iterop/jwtuser`, {
2440
2426
  method: "POST"
2441
2427
  }).then((i) => i.json()).then((i) => {
2442
2428
  t && t(i);
2443
2429
  }).catch((i) => {
2444
- n && n(i);
2430
+ s && s(i);
2445
2431
  });
2446
2432
  }
2447
2433
  }
2448
- async function Ot(e, t, n = void 0, s = void 0) {
2434
+ async function bt(e, t, s = void 0, n = void 0) {
2449
2435
  if (e.tenant) {
2450
2436
  const i = e.tenant.toLowerCase();
2451
2437
  fetch(
@@ -2454,61 +2440,61 @@ async function Ot(e, t, n = void 0, s = void 0) {
2454
2440
  method: "GET"
2455
2441
  }
2456
2442
  ).then((r) => r.json()).then((r) => {
2457
- n && n(r);
2458
- }).catch((r) => {
2459
2443
  s && s(r);
2444
+ }).catch((r) => {
2445
+ n && n(r);
2460
2446
  });
2461
2447
  }
2462
2448
  }
2463
- async function bt(e, t, n, s = void 0, i = void 0) {
2449
+ async function Ot(e, t, s, n = void 0, i = void 0) {
2464
2450
  if (e.tenant) {
2465
2451
  const r = e.tenant.toLowerCase();
2466
2452
  fetch(
2467
- `https://api.uixhome.fr/${r}/iterop/businesstable/one/${n}?t=${t}`,
2453
+ `https://api.uixhome.fr/${r}/iterop/businesstable/one/${s}?t=${t}`,
2468
2454
  {
2469
2455
  method: "POST"
2470
2456
  }
2471
2457
  ).then((o) => o.json()).then((o) => {
2472
- s && s(o);
2458
+ n && n(o);
2473
2459
  }).catch((o) => {
2474
2460
  i && i(o);
2475
2461
  });
2476
2462
  }
2477
2463
  }
2478
- async function $t(e, t, n, s = void 0, i = void 0) {
2464
+ async function $t(e, t, s, n = void 0, i = void 0) {
2479
2465
  if (e.tenant) {
2480
2466
  const r = e.tenant.toLowerCase();
2481
2467
  fetch(
2482
- `https://api.uixhome.fr/${r}/iterop/businesstable/rows/${n}/?t=${t}`,
2468
+ `https://api.uixhome.fr/${r}/iterop/businesstable/rows/${s}/?t=${t}`,
2483
2469
  {
2484
2470
  method: "POST"
2485
2471
  }
2486
2472
  ).then((o) => o.json()).then((o) => {
2487
- s && s(o);
2473
+ n && n(o);
2488
2474
  }).catch((o) => {
2489
2475
  i && i(o);
2490
2476
  });
2491
2477
  }
2492
2478
  }
2493
- async function Nt(e, t, n, s, i = void 0, r = void 0) {
2479
+ async function Nt(e, t, s, n, i = void 0, r = void 0) {
2494
2480
  if (e.tenant) {
2495
2481
  const o = e.tenant.toLowerCase();
2496
2482
  fetch(
2497
- `https://api.uixhome.fr/${o}/iterop/businesstable/patch/rows/${n}/?t=${t}&b=${s}`,
2483
+ `https://api.uixhome.fr/${o}/iterop/businesstable/patch/rows/${s}/?t=${t}&b=${n}`,
2498
2484
  {
2499
2485
  method: "POST"
2500
2486
  }
2501
2487
  ).then((a) => a.json()).then((a) => {
2502
2488
  i && i(a);
2503
2489
  }).catch((a) => {
2504
- r && r(a, n, s);
2490
+ r && r(a, s, n);
2505
2491
  });
2506
2492
  }
2507
2493
  }
2508
- async function It(e, t, n, s, i, r = void 0, o = void 0) {
2494
+ async function It(e, t, s, n, i, r = void 0, o = void 0) {
2509
2495
  if (e.tenant) {
2510
- const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${n}?t=${t}&c=${encodeURIComponent(
2511
- s
2496
+ const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${s}?t=${t}&c=${encodeURIComponent(
2497
+ n
2512
2498
  )}&b=${encodeURIComponent(i)}`;
2513
2499
  fetch(a, {
2514
2500
  method: "POST"
@@ -2517,17 +2503,17 @@ async function It(e, t, n, s, i, r = void 0, o = void 0) {
2517
2503
  }).catch((c) => {
2518
2504
  o && o({
2519
2505
  error: c,
2520
- tableId: n,
2521
- columns: s,
2506
+ tableId: s,
2507
+ columns: n,
2522
2508
  body: i
2523
2509
  });
2524
2510
  });
2525
2511
  }
2526
2512
  }
2527
- async function Ft(e, t, n, s, i = void 0, r = void 0) {
2513
+ async function Ft(e, t, s, n, i = void 0, r = void 0) {
2528
2514
  if (e.tenant) {
2529
- const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${n}?t=${t}&b=${encodeURIComponent(
2530
- s
2515
+ const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${s}?t=${t}&b=${encodeURIComponent(
2516
+ n
2531
2517
  )}`;
2532
2518
  fetch(o, {
2533
2519
  method: "POST"
@@ -2541,15 +2527,15 @@ async function Ft(e, t, n, s, i = void 0, r = void 0) {
2541
2527
  });
2542
2528
  }
2543
2529
  }
2544
- async function Rt(e, t, n, s = void 0, i = void 0) {
2530
+ async function Ut(e, t, s, n = void 0, i = void 0) {
2545
2531
  if (e.tenant) {
2546
2532
  const r = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/create/?t=${t}&b=${encodeURIComponent(
2547
- n
2533
+ s
2548
2534
  )}`;
2549
2535
  fetch(r, {
2550
2536
  method: "POST"
2551
2537
  }).then((o) => o.json()).then((o) => {
2552
- s && s(o);
2538
+ n && n(o);
2553
2539
  }).catch((o) => {
2554
2540
  i && i({
2555
2541
  error: o,
@@ -2558,11 +2544,11 @@ async function Rt(e, t, n, s = void 0, i = void 0) {
2558
2544
  });
2559
2545
  }
2560
2546
  }
2561
- async function Ut(e, t, n, s, i = void 0, r = void 0) {
2547
+ async function Rt(e, t, s, n, i = void 0, r = void 0) {
2562
2548
  if (e.tenant) {
2563
2549
  const o = e.tenant.toLowerCase();
2564
2550
  fetch(
2565
- `https://api.uixhome.fr/${o}/iterop/runtime/processes/${n}?t=${t}&b=${s}`,
2551
+ `https://api.uixhome.fr/${o}/iterop/runtime/processes/${s}?t=${t}&b=${n}`,
2566
2552
  {
2567
2553
  method: "POST"
2568
2554
  }
@@ -2573,26 +2559,26 @@ async function Ut(e, t, n, s, i = void 0, r = void 0) {
2573
2559
  });
2574
2560
  }
2575
2561
  }
2576
- async function jt(e, t, n, s = void 0, i = void 0) {
2562
+ async function kt(e, t, s, n = void 0, i = void 0) {
2577
2563
  if (console.log("_Iterop_GetOneDependencyTable | Run"), e.tenant) {
2578
2564
  const r = e.tenant.toLowerCase();
2579
2565
  fetch(
2580
- `https://api.uixhome.fr/${r}/iterop/dependencytable/one/${n}/?t=${t}`,
2566
+ `https://api.uixhome.fr/${r}/iterop/dependencytable/one/${s}/?t=${t}`,
2581
2567
  {
2582
2568
  method: "POST"
2583
2569
  }
2584
2570
  ).then((o) => o.json()).then((o) => {
2585
- s && s(o);
2571
+ n && n(o);
2586
2572
  }).catch((o) => {
2587
2573
  i && i(o);
2588
2574
  });
2589
2575
  }
2590
2576
  }
2591
- async function kt(e, t, n, s, i, r = void 0, o = void 0) {
2577
+ async function jt(e, t, s, n, i, r = void 0, o = void 0) {
2592
2578
  if (e.tenant) {
2593
2579
  const a = e.tenant.toLowerCase();
2594
2580
  fetch(
2595
- `https://api.uixhome.fr/${a}/iterop/dependencytable/patch/${n}/?t=${t}&cli=${s}&b=${i}`,
2581
+ `https://api.uixhome.fr/${a}/iterop/dependencytable/patch/${s}/?t=${t}&cli=${n}&b=${i}`,
2596
2582
  {
2597
2583
  method: "POST"
2598
2584
  }
@@ -2603,11 +2589,11 @@ async function kt(e, t, n, s, i, r = void 0, o = void 0) {
2603
2589
  });
2604
2590
  }
2605
2591
  }
2606
- async function vt(e, t, n, s, i = void 0, r = void 0) {
2592
+ async function vt(e, t, s, n, i = void 0, r = void 0) {
2607
2593
  if (e.tenant) {
2608
2594
  const o = e.tenant.toLowerCase();
2609
2595
  fetch(
2610
- `https://api.uixhome.fr/${o}/iterop/dependencytable/put/${n}/?t=${t}&b=${s}`,
2596
+ `https://api.uixhome.fr/${o}/iterop/dependencytable/put/${s}/?t=${t}&b=${n}`,
2611
2597
  {
2612
2598
  method: "POST"
2613
2599
  }
@@ -2619,16 +2605,16 @@ async function vt(e, t, n, s, i = void 0, r = void 0) {
2619
2605
  }
2620
2606
  }
2621
2607
  //!SECTION
2622
- async function At(e, t, n, s = void 0, i = void 0) {
2608
+ async function At(e, t, s, n = void 0, i = void 0) {
2623
2609
  if (e.tenant) {
2624
2610
  const r = e.tenant.toLowerCase();
2625
2611
  fetch(
2626
- `https://api.uixhome.fr/${r}/iterop/list/one/${n}/?t=${t}`,
2612
+ `https://api.uixhome.fr/${r}/iterop/list/one/${s}/?t=${t}`,
2627
2613
  {
2628
2614
  method: "POST"
2629
2615
  }
2630
2616
  ).then((o) => o.json()).then((o) => {
2631
- s && s(o);
2617
+ n && n(o);
2632
2618
  }).catch((o) => {
2633
2619
  i && i(o);
2634
2620
  });
@@ -2639,13 +2625,13 @@ function xt(e) {
2639
2625
  const t = "Hello " + e;
2640
2626
  return console.log(t), t;
2641
2627
  }
2642
- function Pt(e, t = void 0, n = void 0) {
2643
- return console.log("credentials", e), new Promise((s) => {
2644
- if (e.token === "" && O(e), !e.space || e.space === "") {
2628
+ function Dt(e, t = void 0, s = void 0) {
2629
+ return console.log("credentials", e), new Promise((n) => {
2630
+ if (e.token === "" && b(e), !e.space || e.space === "") {
2645
2631
  const o = Y();
2646
2632
  console.log("platformeInfo", o);
2647
2633
  }
2648
- R(
2634
+ U(
2649
2635
  e,
2650
2636
  "Common space",
2651
2637
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -2656,7 +2642,7 @@ function Pt(e, t = void 0, n = void 0) {
2656
2642
  },
2657
2643
  !0
2658
2644
  );
2659
- const i = b.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
2645
+ const i = O.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
2660
2646
  m(r, {
2661
2647
  onComplete(o) {
2662
2648
  if (Array.isArray(JSON.parse(o))) {
@@ -2707,36 +2693,36 @@ function Pt(e, t = void 0, n = void 0) {
2707
2693
  t && t(d);
2708
2694
  },
2709
2695
  onFailure(d) {
2710
- n && n(d);
2696
+ s && s(d);
2711
2697
  }
2712
2698
  });
2713
2699
  }
2714
2700
  },
2715
2701
  onFailure(o) {
2716
- n && n(o);
2702
+ s && s(o);
2717
2703
  }
2718
2704
  });
2719
2705
  });
2720
2706
  }
2721
2707
  export {
2722
2708
  B as UUID,
2723
- Pt as _3DSearch_usersGroup,
2709
+ Dt as _3DSearch_usersGroup,
2724
2710
  Ge as _3DSpace_Create_Doc,
2725
2711
  Je as _3DSpace_Update_Doc,
2726
2712
  Ye as _3DSpace_bookmark_addSubsciptions,
2727
2713
  Ve as _3DSpace_bookmark_newWorkspace,
2728
- O as _3DSpace_csrf,
2714
+ b as _3DSpace_csrf,
2729
2715
  L as _3DSpace_download_doc,
2730
2716
  ie as _3DSpace_download_multidoc,
2731
- D as _3DSpace_file_update,
2717
+ P as _3DSpace_file_update,
2732
2718
  ee as _3DSpace_file_update_csr,
2733
2719
  Le as _3DSpace_file_url_csr,
2734
2720
  F as _3DSpace_get_csrf,
2735
- P as _3DSpace_get_docInfo,
2721
+ D as _3DSpace_get_docInfo,
2736
2722
  ae as _3DSpace_get_downloadTicket_multidoc,
2737
- De as _3DSpace_get_multiDocInfo,
2738
- R as _3DSpace_get_securityContexts,
2739
- j as _3DSpace_get_ticket,
2723
+ Pe as _3DSpace_get_multiDocInfo,
2724
+ U as _3DSpace_get_securityContexts,
2725
+ k as _3DSpace_get_ticket,
2740
2726
  Xe as _3DSpace_lifecycle_changeRevision,
2741
2727
  Ke as _3DSpace_lifecycle_changeState,
2742
2728
  Be as _3DSpace_lifecycle_getGraph,
@@ -2762,21 +2748,21 @@ export {
2762
2748
  pt as _3DSwym_postIdea,
2763
2749
  ut as _3DSwym_postIdeaTemplate,
2764
2750
  v as _3DSwym_sendMessageData,
2765
- Re as _AppMngt_get_info_user,
2751
+ Ue as _AppMngt_get_info_user,
2766
2752
  Fe as _AppMngt_get_users,
2767
2753
  Nt as _Iterop_AddOrRemoveRows,
2768
2754
  Ct as _Iterop_Auth_CAS,
2769
- jt as _Iterop_GetOneDependencyTable,
2755
+ kt as _Iterop_GetOneDependencyTable,
2770
2756
  At as _Iterop_GetOneList,
2771
- kt as _Iterop_PatchDependencyTable,
2757
+ jt as _Iterop_PatchDependencyTable,
2772
2758
  vt as _Iterop_PutDependencyTable,
2773
2759
  It as _Iterop_businessTableSearchInRows,
2774
- Rt as _Iterop_createBusinessTable,
2775
- Ot as _Iterop_getAllBusinessTables,
2776
- bt as _Iterop_getOneBusinessTable,
2760
+ Ut as _Iterop_createBusinessTable,
2761
+ bt as _Iterop_getAllBusinessTables,
2762
+ Ot as _Iterop_getOneBusinessTable,
2777
2763
  $t as _Iterop_getOneBusinessTableRows,
2778
2764
  Tt as _Iterop_jwtUser,
2779
- Ut as _Iterop_runProcess,
2765
+ Rt as _Iterop_runProcess,
2780
2766
  Ft as _Iterop_updateBusinessTable,
2781
2767
  Y as _getPlateformInfos,
2782
2768
  $e as _getPlatformServices,
@@ -2785,33 +2771,33 @@ export {
2785
2771
  wt as _getServiceUrl_Iterop,
2786
2772
  m as _httpCallAuthenticated,
2787
2773
  Te as _setDraggable,
2788
- be as _setDroppable,
2789
- Oe as _setupTagger,
2774
+ Oe as _setDroppable,
2775
+ be as _setupTagger,
2790
2776
  nt as addTagToDoc,
2791
2777
  X as chunkArray,
2792
2778
  Ie as compass_getListAdditionalApps,
2793
2779
  W as couleurs,
2794
- Ue as createUserGroups,
2780
+ Re as createUserGroups,
2795
2781
  oe as dataMixing,
2796
2782
  ve as deleteUserGroups,
2797
2783
  Se as findAdresse,
2798
2784
  qe as getAllContextSecurity,
2799
2785
  H as getCSRFToken,
2800
2786
  _e as getCommunes,
2801
- je as getComplementUG,
2787
+ ke as getComplementUG,
2802
2788
  He as getDataFrom3DSpace,
2803
2789
  we as getDataFromGouvFr,
2804
2790
  et as getDatasByTenant,
2805
2791
  tt as getDatasFrom3DSpace,
2806
2792
  ze as getDownloadDocument,
2807
2793
  it as getInfoDocTags,
2808
- ke as getUserGroupsList,
2794
+ je as getUserGroupsList,
2809
2795
  q as getUsersGroupRules,
2810
2796
  Ze as get_3DSpace_csrf,
2811
2797
  Ae as patchUserGroups,
2812
2798
  xe as patchUserGroupsControl,
2813
2799
  Qe as pushDataIn3DSpace,
2814
- Pe as readUserGroupControl,
2800
+ De as readUserGroupControl,
2815
2801
  st as removeTagToDoc,
2816
2802
  xt as sayHello,
2817
2803
  Ce as updateEvent