@beam3_dev/api_module 0.0.224 → 0.0.225

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/wb3Api.js CHANGED
@@ -34,10 +34,10 @@ const V = {
34
34
  b3Edit8: "#616161",
35
35
  b3Edit9: "#795548"
36
36
  };
37
- async function ge(e, n = void 0, s = void 0) {
38
- const t = parseInt(e);
37
+ async function ge(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/" + t,
40
+ "https://apicarto.ign.fr/api/codes-postaux/communes/" + n,
41
41
  {
42
42
  method: "GET",
43
43
  headers: {
@@ -45,12 +45,12 @@ async function ge(e, n = void 0, s = void 0) {
45
45
  }
46
46
  }
47
47
  ).then((i) => i.json()).then((i) => {
48
- n && n(i);
48
+ t && t(i);
49
49
  }).catch((i) => {
50
50
  s && s(i), console.error("Erreur : " + i);
51
51
  });
52
52
  }
53
- async function he(e, n = void 0, s = void 0) {
53
+ async function he(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,15 +59,15 @@ async function he(e, n = void 0, s = void 0) {
59
59
  Accept: "application/json"
60
60
  }
61
61
  }
62
- ).then((t) => t.json()).then((t) => {
63
- n && n(t);
64
- }).catch((t) => {
65
- s && s(t), console.error("Erreur : " + t);
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
- async function ye(e, n = V) {
68
+ async function ye(e, t = V) {
69
69
  let s = N.now().year;
70
- const t = e, i = [], r = (a) => {
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
  };
@@ -84,9 +84,9 @@ async function ye(e, n = V) {
84
84
  r(c);
85
85
  }).catch((c) => console.error("Erreur : " + c));
86
86
  return (() => {
87
- const a = t.length === 0 ? {
87
+ const a = n.length === 0 ? {
88
88
  events: []
89
- } : t;
89
+ } : n;
90
90
  for (let c of i)
91
91
  a.events.findIndex(
92
92
  (p) => p.start === N.fromISO(c.date).toISODate() && p.name === "Férié : " + c.comment
@@ -94,38 +94,38 @@ async function ye(e, n = V) {
94
94
  name: "Férié : " + c.comment,
95
95
  start: N.fromISO(c.date).toISODate(),
96
96
  end: N.fromISO(c.date).toISODate(),
97
- color: n.b3BusinnessDays,
97
+ color: t.b3BusinnessDays,
98
98
  timed: !1
99
99
  });
100
100
  return a;
101
101
  })();
102
102
  }
103
- function W(e, n, s) {
104
- const { credentials: t, myArray: i, chunk: r, fn_to_call: o } = e, a = [];
103
+ function W(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
  X(
110
- { credentials: t, chunks: a, initLoop: 0, fn: o },
110
+ { credentials: n, chunks: a, initLoop: 0, fn: o },
111
111
  (c) => {
112
- n && n(c);
112
+ t && t(c);
113
113
  },
114
114
  (c) => {
115
115
  s && s(c);
116
116
  }
117
117
  );
118
118
  }
119
- function X(e, n, s) {
120
- const { credentials: t, chunks: i, initLoop: r, fn: o } = e, a = (c) => {
119
+ function X(e, t, s) {
120
+ const { credentials: n, chunks: i, initLoop: r, fn: o } = e, a = (c) => {
121
121
  o(
122
- t,
122
+ n,
123
123
  i[c],
124
124
  () => {
125
125
  c++, c < i.length && a(c);
126
126
  },
127
127
  (d) => {
128
- n && n(d);
128
+ t && t(d);
129
129
  },
130
130
  (d) => {
131
131
  s && s(d);
@@ -134,47 +134,47 @@ function X(e, n, s) {
134
134
  };
135
135
  a(r);
136
136
  }
137
- async function Se(e, n, s = !0) {
138
- const t = e.events.findIndex((i) => i.uuid === n.uuid);
139
- return t === -1 ? e.events.push(n) : s ? e.events[t] = n : e.events.splice(t, 1), e.length > 0 && e.sort((i, r) => i.start - r.start), e;
137
+ async function Se(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
- function m(e, n) {
141
+ function m(e, t) {
142
142
  $(["DS/WAFData/WAFData"], (s) => {
143
- s.authenticatedRequest(e, n);
143
+ s.authenticatedRequest(e, t);
144
144
  });
145
145
  }
146
- function _e(e, n, s) {
147
- $(["DS/DataDragAndDrop/DataDragAndDrop"], (t) => {
148
- t.draggable(e, {
149
- data: n,
146
+ function _e(e, t, s) {
147
+ $(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
148
+ n.draggable(e, {
149
+ data: t,
150
150
  start: s
151
151
  });
152
152
  });
153
153
  }
154
- function we(e, n = void 0) {
154
+ function we(e, t = void 0) {
155
155
  $(["DS/TagNavigatorProxy/TagNavigatorProxy"], (s) => {
156
- let t;
157
- t === void 0 && (t = s.createProxy({
156
+ let n;
157
+ n === void 0 && (n = s.createProxy({
158
158
  widgetId: R.id,
159
159
  filteringMode: "WithFilteringServices"
160
- }), n !== void 0 && t.addEvent("onFilterSubjectsChange", n)), t.setSubjectsTags(e);
160
+ }), t !== void 0 && n.addEvent("onFilterSubjectsChange", t)), n.setSubjectsTags(e);
161
161
  });
162
162
  }
163
- function Ce(e, n) {
163
+ function Ce(e, t) {
164
164
  $(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
165
165
  s.droppable(e, {
166
- drop: n
166
+ drop: t
167
167
  });
168
168
  });
169
169
  }
170
- async function Te(e, n = void 0, s = void 0) {
170
+ async function Te(e, t = void 0, s = void 0) {
171
171
  await $(
172
172
  ["DS/i3DXCompassServices/i3DXCompassServices"],
173
- (t) => {
174
- (!e || e === "") && (e = R.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), n && n(
175
- t.getPlatformServices({
173
+ (n) => {
174
+ (!e || e === "") && (e = R.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
175
+ n.getPlatformServices({
176
176
  platformId: e,
177
- onComplete: n,
177
+ onComplete: t,
178
178
  onFailure: s
179
179
  })
180
180
  );
@@ -183,29 +183,29 @@ async function Te(e, n = void 0, s = void 0) {
183
183
  }
184
184
  function Y() {
185
185
  let e = {};
186
- return $(["DS/PlatformAPI/PlatformAPI"], (n) => {
187
- const s = n.getTenant(), t = n.getUser(), i = n.getAllApplicationConfigurations(), r = n.getApplicationConfiguration(
186
+ return $(["DS/PlatformAPI/PlatformAPI"], (t) => {
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
191
  tenant: s,
192
- user: t,
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 b(e, n = void 0, s = void 0) {
198
+ function b(e, t = void 0, s = void 0) {
199
199
  if (e.tenant) {
200
- const t = `https://${e.tenant}-eu1-apps.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?tenant=${e.tenant}&cors=true&xrequestedwith=xmlhttprequest`;
201
- m(t, {
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
- n && o ? n(o) : s && s("_getServiceUrl return listServiceUrl = undefined");
208
+ t && o ? t(o) : s && s("_getServiceUrl return listServiceUrl = undefined");
209
209
  } else
210
210
  s && s("_getServiceUrl return oResponse = undefined");
211
211
  },
@@ -215,15 +215,15 @@ function b(e, n = void 0, s = void 0) {
215
215
  });
216
216
  }
217
217
  }
218
- function be(e, n = void 0, s = void 0) {
218
+ function be(e, t = void 0, s = void 0) {
219
219
  if (e.tenant) {
220
- const t = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
221
- m(t, {
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) {
225
225
  const o = `${r[0].services[0].url}`;
226
- n && n(o);
226
+ t && t(o);
227
227
  }
228
228
  },
229
229
  onFailure(i) {
@@ -232,13 +232,13 @@ function be(e, n = void 0, s = void 0) {
232
232
  });
233
233
  }
234
234
  }
235
- function Oe(e, n, s) {
236
- const t = {
235
+ function Oe(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 = `${t.base}${t.uri}${t.option}`;
241
+ }, i = `${n.base}${n.uri}${n.option}`;
242
242
  m(i, {
243
243
  method: "GET",
244
244
  headers: {
@@ -250,7 +250,7 @@ function Oe(e, n, s) {
250
250
  const u = p.attributes.name, f = p.id;
251
251
  return { name: u, id: f };
252
252
  });
253
- n && n(d, c);
253
+ t && t(d, c);
254
254
  },
255
255
  onFailure(r, o) {
256
256
  const a = r;
@@ -258,12 +258,12 @@ function Oe(e, n, s) {
258
258
  }
259
259
  });
260
260
  }
261
- function $e(e, n = void 0, s = void 0) {
262
- let t = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
263
- m(t, {
261
+ function $e(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
- console.log("_AppMngt_get_users => ", a), n && n(a);
266
+ console.log("_AppMngt_get_users => ", a), t && t(a);
267
267
  },
268
268
  onFailure(i, r) {
269
269
  const o = i;
@@ -271,8 +271,8 @@ function $e(e, n = void 0, s = void 0) {
271
271
  }
272
272
  });
273
273
  }
274
- function Ie(e, n, s = void 0, t = void 0) {
275
- let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${n}`;
274
+ function Ie(e, t, s = void 0, n = void 0) {
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);
@@ -280,7 +280,7 @@ function Ie(e, n, s = void 0, t = void 0) {
280
280
  },
281
281
  onFailure(r, o) {
282
282
  const a = r;
283
- a.msg = o.errormsg, a.errCode = o.errorcode, t && t(a);
283
+ a.msg = o.errormsg, a.errCode = o.errorcode, n && n(a);
284
284
  }
285
285
  });
286
286
  }
@@ -288,18 +288,18 @@ const F = {
288
288
  "Content-Type": "application/json",
289
289
  Accept: "application/json,text/javascript,*/*"
290
290
  };
291
- function ve(e, n, s = void 0, t = void 0) {
291
+ function ve(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 = {
295
295
  groups: [
296
296
  {
297
- title: n.title,
298
- description: n.description,
299
- members: n.members || [r.email, "samuel.mureau@beam3.fr"],
297
+ title: t.title,
298
+ description: t.description,
299
+ members: t.members || [r.email, "samuel.mureau@beam3.fr"],
300
300
  pending_members: [],
301
- sharing: n.sharing,
302
- visibility: n.visibility
301
+ sharing: t.sharing,
302
+ visibility: t.visibility
303
303
  }
304
304
  ]
305
305
  };
@@ -313,12 +313,12 @@ function ve(e, n, s = void 0, t = void 0) {
313
313
  onFailure(d, p) {
314
314
  console.log(d);
315
315
  const u = d;
316
- u.msg = p.errormsg, u.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", u), t && t(u);
316
+ u.msg = p.errormsg, u.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", u), n && n(u);
317
317
  }
318
318
  });
319
319
  }
320
- function Ne(e, n, s = void 0, t = void 0) {
321
- const { space: i, tenant: r } = e, o = i, a = `/3drdfpersist/v1/resources/${n}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${o}${a}${c}`;
320
+ function Ne(e, t, s = void 0, n = void 0) {
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: {
324
324
  method: "GET",
@@ -332,19 +332,19 @@ function Ne(e, n, s = void 0, t = void 0) {
332
332
  },
333
333
  onFailure(f, l) {
334
334
  const g = f;
335
- g.msg = l.errormsg, g.errCode = l.errorcode, t && t(g);
335
+ g.msg = l.errormsg, g.errCode = l.errorcode, n && n(g);
336
336
  }
337
337
  });
338
338
  }
339
- function q(e, n = void 0, s = void 0) {
340
- const { space: t, tenant: i } = e, r = t, 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}`;
344
344
  m(d, {
345
345
  OPTsH: c,
346
346
  onComplete(p) {
347
- n && n(JSON.parse(p));
347
+ t && t(JSON.parse(p));
348
348
  },
349
349
  onFailure(p, u) {
350
350
  const f = p;
@@ -352,8 +352,8 @@ function q(e, n = void 0, s = void 0) {
352
352
  }
353
353
  });
354
354
  }
355
- function ke(e, n = void 0, s = void 0) {
356
- const { space: t, currentUser: i } = e, a = `${t}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility`, d = { method: "GET", headers: {
355
+ function ke(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
  } };
@@ -367,7 +367,7 @@ function ke(e, n = void 0, s = void 0) {
367
367
  f.iam = y, f.UG = l, f.iamMember = h, q(
368
368
  e,
369
369
  (S) => {
370
- f.rules = S, n && n(f);
370
+ f.rules = S, t && t(f);
371
371
  },
372
372
  (S) => {
373
373
  s && s(S);
@@ -383,13 +383,13 @@ function ke(e, n = void 0, s = void 0) {
383
383
  console.log(p);
384
384
  }
385
385
  }
386
- function Ae(e, n) {
387
- const { space: s } = e, i = `${s}/3drdfpersist/resources/v1/usersgroup/${n}`;
386
+ function Ae(e, 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 je(e, n, s, t = void 0, i = void 0) {
392
+ function je(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,37 +398,37 @@ function je(e, n, s, t = 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 = s, d = `${r}${a.URIUGr}/${n}`, p = JSON.stringify(c);
401
+ }, c = s, d = `${r}${a.URIUGr}/${t}`, p = JSON.stringify(c);
402
402
  m(d, {
403
403
  headers: F,
404
404
  method: "PATCH",
405
405
  data: p,
406
406
  type: "json",
407
407
  onComplete(u) {
408
- t && t(u);
408
+ n && n(u);
409
409
  },
410
410
  onFailure(u) {
411
411
  i && i(u);
412
412
  }
413
413
  });
414
414
  }
415
- function Fe(e, n, s, t = void 0, i = void 0) {
416
- const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${n}/sharing`;
415
+ function Fe(e, t, s, n = void 0, i = void 0) {
416
+ const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
417
417
  m(a, {
418
418
  method: "PATCH",
419
419
  headers: F,
420
420
  data: JSON.stringify(s),
421
421
  type: "json",
422
422
  onComplete(d) {
423
- t && t(d);
423
+ n && n(d);
424
424
  },
425
425
  onFailure(d) {
426
426
  i && i(d);
427
427
  }
428
428
  });
429
429
  }
430
- function Ue(e, n, s = void 0, t = void 0) {
431
- const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${n}/sharing`;
430
+ function Ue(e, t, s = void 0, n = void 0) {
431
+ const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
432
432
  m(o, {
433
433
  opts: {
434
434
  method: "GET",
@@ -441,16 +441,16 @@ function Ue(e, n, s = void 0, t = void 0) {
441
441
  s && s(JSON.parse(d));
442
442
  },
443
443
  onFailure(d) {
444
- t && t(d);
444
+ n && n(d);
445
445
  }
446
446
  });
447
447
  }
448
- async function H(e, n, s) {
448
+ async function H(e, t, s) {
449
449
  if (e.space) {
450
- const t = `${e.space}/resources/v1/application/CSRF`;
451
- m(t, {
450
+ const n = `${e.space}/resources/v1/application/CSRF`;
451
+ m(n, {
452
452
  onComplete(i) {
453
- i = JSON.parse(i), n && n(i.csrf);
453
+ i = JSON.parse(i), t && t(i.csrf);
454
454
  },
455
455
  onFailure(i, r, o) {
456
456
  s && s({ error: i, headers: r, xhr: o });
@@ -459,18 +459,18 @@ async function H(e, n, s) {
459
459
  }
460
460
  }
461
461
  var k = {};
462
- function z(e, n) {
463
- return Object.prototype.hasOwnProperty.call(e, n);
462
+ function z(e, t) {
463
+ return Object.prototype.hasOwnProperty.call(e, t);
464
464
  }
465
- var Q = function(e, n, s, t) {
466
- n = n || "&", s = s || "=";
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
- e = e.split(n);
471
+ e = e.split(t);
472
472
  var o = 1e3;
473
- t && typeof t.maxKeys == "number" && (o = t.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) {
@@ -489,41 +489,41 @@ var Q = function(e, n, s, t) {
489
489
  default:
490
490
  return "";
491
491
  }
492
- }, Z = function(e, n, s, t) {
493
- return n = n || "&", s = s || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
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
494
  var r = encodeURIComponent(v(i)) + s;
495
495
  return Array.isArray(e[i]) ? e[i].map(function(o) {
496
496
  return r + encodeURIComponent(v(o));
497
- }).join(n) : r + encodeURIComponent(v(e[i]));
498
- }).filter(Boolean).join(n) : t ? encodeURIComponent(v(t)) + s + encodeURIComponent(v(e)) : "";
497
+ }).join(t) : r + encodeURIComponent(v(e[i]));
498
+ }).filter(Boolean).join(t) : n ? encodeURIComponent(v(n)) + s + encodeURIComponent(v(e)) : "";
499
499
  };
500
500
  k.decode = k.parse = Q;
501
501
  k.encode = k.stringify = Z;
502
- async function L(e, n = void 0, s = void 0, t = void 0) {
502
+ async function L(e, t = void 0, s = void 0, n = void 0) {
503
503
  const i = e.space;
504
- if (n === void 0) {
504
+ if (t === void 0) {
505
505
  console.log("Le paramètre docid est obligatoire");
506
506
  return;
507
507
  }
508
- const r = i + `/resources/v1/modeler/documents/${n}`;
508
+ const r = i + `/resources/v1/modeler/documents/${t}`;
509
509
  m(r, {
510
510
  onComplete(o, a, c) {
511
511
  const d = JSON.parse(o);
512
512
  s && s(d);
513
513
  },
514
514
  onFailure(o) {
515
- t && t(o);
515
+ n && n(o);
516
516
  }
517
517
  });
518
518
  }
519
- async function xe(e, n = void 0, s = void 0, t = void 0) {
519
+ async function xe(e, t = void 0, s = void 0, n = void 0) {
520
520
  const i = e.space;
521
- if (n === void 0) {
521
+ if (t === void 0) {
522
522
  console.log("Le paramètre docids est obligatoire");
523
523
  return;
524
524
  }
525
525
  let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = k.stringify({
526
- $ids: n.toString().replace('"', "").replace("[", "").replace("]", "")
526
+ $ids: t.toString().replace('"', "").replace("[", "").replace("]", "")
527
527
  });
528
528
  m(r, {
529
529
  method: "POST",
@@ -536,17 +536,17 @@ async function xe(e, n = void 0, s = void 0, t = void 0) {
536
536
  s && s(p);
537
537
  },
538
538
  onFailure(a) {
539
- t && t(a);
539
+ n && n(a);
540
540
  }
541
541
  });
542
542
  }
543
- function A(e, n = void 0, s = void 0) {
543
+ function A(e, t = void 0, s = void 0) {
544
544
  if (e.objID && e.objID !== "") {
545
- let t = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
546
- m(t, {
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
- e.token = a?.csrf?.value, e.datas = a?.data[0], n && n(e);
549
+ e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
550
550
  },
551
551
  onFailure(i) {
552
552
  s && s(i);
@@ -555,21 +555,21 @@ function A(e, n = void 0, s = void 0) {
555
555
  } else
556
556
  O(
557
557
  e,
558
- (t) => {
559
- console.log("_3DSpace_get_csrf / _3DSpace_csrf", t), n && n(t);
558
+ (n) => {
559
+ console.log("_3DSpace_get_csrf / _3DSpace_csrf", n), t && t(n);
560
560
  },
561
- (t) => {
562
- s && s(t);
561
+ (n) => {
562
+ s && s(n);
563
563
  }
564
564
  );
565
565
  }
566
- function O(e, n = void 0, s = void 0) {
566
+ function O(e, t = void 0, s = void 0) {
567
567
  if (e.space) {
568
- const t = e.space + "/resources/v1/application/CSRF";
569
- m(t, {
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
- n && n(a.csrf.value);
572
+ t && t(a.csrf.value);
573
573
  },
574
574
  onFailure(i, r, o) {
575
575
  s && s({
@@ -582,19 +582,19 @@ function O(e, n = void 0, s = void 0) {
582
582
  } else
583
583
  s && s("ERROR : url du 3DSpace non défini.");
584
584
  }
585
- function U(e, n = void 0, s = void 0) {
586
- let t = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
585
+ function U(e, t = void 0, s = void 0) {
586
+ let n = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
587
587
  A(
588
588
  e,
589
589
  (i) => {
590
- m(t, {
590
+ m(n, {
591
591
  method: "PUT",
592
592
  headers: {
593
593
  ENO_CSRF_TOKEN: e.token
594
594
  },
595
595
  onComplete(r, o) {
596
596
  const c = JSON.parse(r).data[0].dataelements.ticketURL;
597
- n && n(c, o);
597
+ t && t(c, o);
598
598
  },
599
599
  onFailure(r, o) {
600
600
  console.warn("☠️ error => ", r, o), s && s(r, o);
@@ -606,8 +606,8 @@ function U(e, n = void 0, s = void 0) {
606
606
  }
607
607
  );
608
608
  }
609
- function Pe(e, n, s, t = void 0, i = void 0) {
610
- const r = `${e.space}/resources/v1/modeler/documents/${n}/files/DownloadTicket`;
609
+ function Pe(e, t, s, n = void 0, i = void 0) {
610
+ const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
611
611
  s || (s = e.token), m(r, {
612
612
  method: "PUT",
613
613
  headers: {
@@ -618,7 +618,7 @@ function Pe(e, n, s, t = void 0, i = void 0) {
618
618
  if (console.log("☠️ info => ", a), a.success === !0)
619
619
  try {
620
620
  const c = a.data[0].dataelements.ticketURL;
621
- t && t(c);
621
+ n && n(c);
622
622
  } catch (c) {
623
623
  i && i(c);
624
624
  }
@@ -628,12 +628,12 @@ function Pe(e, n, s, t = void 0, i = void 0) {
628
628
  }
629
629
  });
630
630
  }
631
- function M(e, n, s, t, i, r = void 0, o = void 0) {
631
+ function M(e, t, s, n, i, r = void 0, o = void 0) {
632
632
  const a = () => ee(
633
633
  e,
634
- n,
635
- s,
636
634
  t,
635
+ s,
636
+ n,
637
637
  i,
638
638
  e.token,
639
639
  r,
@@ -641,14 +641,14 @@ function M(e, n, s, t, i, r = void 0, o = void 0) {
641
641
  );
642
642
  e.token ? a() : A(
643
643
  e,
644
- n,
644
+ t,
645
645
  (c) => {
646
646
  e.token = c.csrf.value, a();
647
647
  }
648
648
  );
649
649
  }
650
- function ee(e, n, s, t, i, r, o = void 0, a = void 0) {
651
- const c = e.space + `/resources/v1/modeler/documents/${n}/files/CheckinTicket`;
650
+ function ee(e, t, s, n, i, r, o = void 0, a = void 0) {
651
+ const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
652
652
  m(c, {
653
653
  method: "PUT",
654
654
  headers: {
@@ -657,7 +657,7 @@ function ee(e, n, s, t, i, r, o = void 0, a = void 0) {
657
657
  onComplete(d, p, u) {
658
658
  const f = JSON.parse(d).csrf, l = JSON.parse(d).data[0].dataelements, g = new FormData();
659
659
  let h;
660
- t instanceof Blob ? h = t : h = new Blob([t], {
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 = {};
@@ -682,7 +682,7 @@ function ee(e, n, s, t, i, r, o = void 0, a = void 0) {
682
682
  }
683
683
  ]
684
684
  },
685
- id: n,
685
+ id: t,
686
686
  updateAction: "NONE"
687
687
  }
688
688
  ]
@@ -705,20 +705,20 @@ function ee(e, n, s, t, i, r, o = void 0, a = void 0) {
705
705
  }
706
706
  });
707
707
  }
708
- async function Re(e, n, s, t = void 0, i = void 0) {
708
+ async function Re(e, t, s, n = void 0, i = void 0) {
709
709
  e.space, e.token, e.ctx, L(
710
710
  e,
711
- n,
711
+ t,
712
712
  (r) => {
713
713
  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;
714
714
  M(
715
715
  e,
716
- n,
716
+ t,
717
717
  o,
718
718
  s,
719
719
  a,
720
720
  (c) => {
721
- t && t(c);
721
+ n && n(c);
722
722
  },
723
723
  (c) => {
724
724
  i && i(c);
@@ -730,7 +730,7 @@ async function Re(e, n, s, t = void 0, i = void 0) {
730
730
  }
731
731
  );
732
732
  }
733
- async function De(e, n, s, t, i = void 0, r = void 0) {
733
+ async function De(e, t, s, n, i = void 0, r = void 0) {
734
734
  const o = e.space, a = e.token, c = e.ctx;
735
735
  if (o !== "") {
736
736
  let d = `${o}/resources/v1/modeler/documents/files/CheckinTicket`;
@@ -741,7 +741,7 @@ async function De(e, n, s, t, i = void 0, r = void 0) {
741
741
  },
742
742
  onComplete(p, u, f) {
743
743
  let l = JSON.parse(p).data[0].dataelements, g = new FormData(), h;
744
- n instanceof Blob ? h = n : h = new Blob([n], {
744
+ t instanceof Blob ? h = t : h = new Blob([t], {
745
745
  type: "text/plain"
746
746
  }), g.append("__fcs__jobTicket", l.ticket), g.append("filename", h, s);
747
747
  const y = (_) => _.indexOf(".") === -1 ? _ : _.split(".").slice(0, -1).join(".");
@@ -762,7 +762,7 @@ async function De(e, n, s, t, i = void 0, r = void 0) {
762
762
  type: "Document",
763
763
  dataelements: {
764
764
  title: y(s),
765
- description: t,
765
+ description: n,
766
766
  policy: "Document Release"
767
767
  },
768
768
  relateddata: {
@@ -802,17 +802,17 @@ async function De(e, n, s, t, i = void 0, r = void 0) {
802
802
  });
803
803
  }
804
804
  }
805
- function j(e, n = void 0, s = void 0, t = void 0, i = void 0, r = void 0, o = !1) {
805
+ function j(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1) {
806
806
  const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
807
807
  m(a, {
808
808
  method: "GET",
809
809
  onComplete(c) {
810
810
  const d = JSON.parse(c);
811
811
  let p = "", u, f, l;
812
- if (n) {
813
- let g = d.collabspaces.find((h) => h.title === n);
812
+ if (t) {
813
+ let g = d.collabspaces.find((h) => h.title === t);
814
814
  if (g) {
815
- u = n;
815
+ u = t;
816
816
  let h = g.couples;
817
817
  h = h.filter(
818
818
  (y, S, _) => S === _.findIndex(
@@ -820,8 +820,8 @@ function j(e, n = void 0, s = void 0, t = void 0, i = void 0, r = void 0, o = !1
820
820
  )
821
821
  ), s && (Array.isArray(s) ? s.forEach((y) => {
822
822
  l || h.forEach((S) => {
823
- if (y === S.role.name && t === S.organization.title)
824
- l = y, f = t;
823
+ if (y === S.role.name && n === S.organization.title)
824
+ l = y, f = n;
825
825
  else if (y === S.role.name) {
826
826
  let _ = h.filter(
827
827
  (w) => w.role.name === y
@@ -830,8 +830,8 @@ function j(e, n = void 0, s = void 0, t = void 0, i = void 0, r = void 0, o = !1
830
830
  }
831
831
  });
832
832
  }) : h.forEach((y) => {
833
- if (s === y.role.name && t === y.organization.title)
834
- l = s, f = t;
833
+ if (s === y.role.name && n === y.organization.title)
834
+ l = s, f = n;
835
835
  else if (s === y.role.name) {
836
836
  let S = h.filter(
837
837
  (_) => _.role.name === s
@@ -851,7 +851,7 @@ function j(e, n = void 0, s = void 0, t = void 0, i = void 0, r = void 0, o = !1
851
851
  }
852
852
  });
853
853
  }
854
- async function J(e, n = void 0, s = void 0) {
854
+ async function J(e, t = void 0, s = void 0) {
855
855
  return (!e.objID || e.objID === "") && (console.warn(
856
856
  "_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
857
857
  ), s && s(
@@ -860,18 +860,18 @@ async function J(e, n = void 0, s = void 0) {
860
860
  "_3DSpace_download_doc() / Le paramètre space est obligatoire"
861
861
  ), s && s("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) && H(
862
862
  e,
863
- (t) => {
864
- e.token = t;
863
+ (n) => {
864
+ e.token = n;
865
865
  },
866
- (t) => {
867
- console.log("☠️ error => ", t);
866
+ (n) => {
867
+ console.log("☠️ error => ", n);
868
868
  }
869
- ), new Promise((t, i) => {
869
+ ), new Promise((n, i) => {
870
870
  U(
871
871
  e,
872
872
  (r) => {
873
873
  e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
874
- n && n(o);
874
+ t && t(o);
875
875
  }).catch((o) => {
876
876
  s && s(o);
877
877
  })) : m(r, {
@@ -882,7 +882,7 @@ async function J(e, n = void 0, s = void 0) {
882
882
  } catch {
883
883
  a = o;
884
884
  }
885
- n && typeof n == "function" && n(a), t(a);
885
+ t && typeof t == "function" && t(a), n(a);
886
886
  },
887
887
  onFailure(o, a, c) {
888
888
  s && (console.log("error http", o), s({
@@ -903,23 +903,23 @@ async function J(e, n = void 0, s = void 0) {
903
903
  );
904
904
  });
905
905
  }
906
- async function te(e, n, s = void 0, t = void 0) {
907
- typeof n < "u" && Array.isArray(n) && n?.length > 0 ? W({
906
+ async function te(e, t, s = void 0, n = void 0) {
907
+ typeof t < "u" && Array.isArray(t) && t?.length > 0 ? W({
908
908
  credentials: e,
909
- myArray: n,
909
+ myArray: t,
910
910
  chunk: 80,
911
911
  fn_to_call: ne
912
912
  }, (r) => {
913
913
  s && s(r);
914
914
  }) : (console.warn(
915
915
  "La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
916
- ), t && t(
916
+ ), n && n(
917
917
  "La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
918
918
  ));
919
919
  }
920
- function ne(e, n, s = void 0, t = void 0, i = void 0) {
920
+ function ne(e, t, s = void 0, n = void 0, i = void 0) {
921
921
  const r = [];
922
- n.forEach((c) => {
922
+ t.forEach((c) => {
923
923
  r.push({
924
924
  id: c
925
925
  });
@@ -949,7 +949,7 @@ function ne(e, n, s = void 0, t = void 0, i = void 0) {
949
949
  } catch {
950
950
  h = l.blob();
951
951
  }
952
- t && t({
952
+ n && n({
953
953
  objectId: p.id,
954
954
  headers: g,
955
955
  fileName: u,
@@ -970,9 +970,9 @@ function ne(e, n, s = void 0, t = void 0, i = void 0) {
970
970
  }
971
971
  });
972
972
  }
973
- function Le(e, n, s = void 0, t = void 0) {
973
+ function Le(e, t, s = void 0, n = void 0) {
974
974
  return new Promise((i) => {
975
- if (e.token === "" && O(e), n !== void 0 && n !== "" && n !== null) {
975
+ if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
976
976
  const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
977
977
  let o = {
978
978
  method: "POST",
@@ -985,7 +985,7 @@ function Le(e, n, s = void 0, t = void 0) {
985
985
  data: JSON.stringify({
986
986
  data: [
987
987
  {
988
- id: n
988
+ id: t
989
989
  }
990
990
  ]
991
991
  }),
@@ -994,16 +994,16 @@ function Le(e, n, s = void 0, t = void 0) {
994
994
  s && s(a);
995
995
  },
996
996
  onFailure(a) {
997
- t && t(a);
997
+ n && n(a);
998
998
  }
999
999
  };
1000
1000
  m(r, o);
1001
1001
  }
1002
1002
  });
1003
1003
  }
1004
- function Me(e, n, s, t = void 0, i = void 0) {
1004
+ function Me(e, t, s, n = void 0, i = void 0) {
1005
1005
  return new Promise((r) => {
1006
- if (e.token === "" && O(e), n !== void 0 && n !== "" && n !== null) {
1006
+ if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
1007
1007
  const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
1008
1008
  let a = {
1009
1009
  method: "POST",
@@ -1016,14 +1016,14 @@ function Me(e, n, s, t = void 0, i = void 0) {
1016
1016
  data: JSON.stringify({
1017
1017
  data: [
1018
1018
  {
1019
- id: n,
1019
+ id: t,
1020
1020
  nextState: s
1021
1021
  }
1022
1022
  ]
1023
1023
  }),
1024
1024
  type: "json",
1025
1025
  onComplete(c) {
1026
- t && t(c);
1026
+ n && n(c);
1027
1027
  },
1028
1028
  onFailure(c) {
1029
1029
  i && i(c);
@@ -1033,9 +1033,9 @@ function Me(e, n, s, t = void 0, i = void 0) {
1033
1033
  }
1034
1034
  });
1035
1035
  }
1036
- function Je(e, n, s = void 0, t = void 0) {
1036
+ function Je(e, t, s = void 0, n = void 0) {
1037
1037
  return new Promise((i) => {
1038
- if (e.token === "" && O(e), n !== void 0 && n !== "" && n !== null) {
1038
+ if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
1039
1039
  const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
1040
1040
  j(
1041
1041
  e.space,
@@ -1058,7 +1058,7 @@ function Je(e, n, s = void 0, t = void 0) {
1058
1058
  data: JSON.stringify({
1059
1059
  graphRequests: [
1060
1060
  {
1061
- id: n
1061
+ id: t
1062
1062
  }
1063
1063
  ]
1064
1064
  }),
@@ -1067,16 +1067,16 @@ function Je(e, n, s = void 0, t = void 0) {
1067
1067
  s && s(a);
1068
1068
  },
1069
1069
  onFailure(a) {
1070
- t && t(a);
1070
+ n && n(a);
1071
1071
  }
1072
1072
  };
1073
1073
  m(r, o);
1074
1074
  }
1075
1075
  });
1076
1076
  }
1077
- function Ge(e, n, s = void 0, t = void 0) {
1077
+ function Ge(e, t, s = void 0, n = void 0) {
1078
1078
  return new Promise((i) => {
1079
- if (e.token === "" && O(e), n !== void 0 && n !== "" && n !== null) {
1079
+ if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
1080
1080
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
1081
1081
  j(
1082
1082
  e.space,
@@ -1100,10 +1100,10 @@ function Ge(e, n, s = void 0, t = void 0) {
1100
1100
  data: [
1101
1101
  {
1102
1102
  "attribute[PLMReference.V_versionComment]": null,
1103
- physicalid: n,
1103
+ physicalid: t,
1104
1104
  type: "Document",
1105
1105
  tenant: e.tenant,
1106
- objectId: n,
1106
+ objectId: t,
1107
1107
  policy: "Document Release",
1108
1108
  availableSemantic: ["E", "LAST", "NEW", "DUP"]
1109
1109
  }
@@ -1114,16 +1114,16 @@ function Ge(e, n, s = void 0, t = void 0) {
1114
1114
  s && s(a);
1115
1115
  },
1116
1116
  onFailure(a) {
1117
- t && t(a);
1117
+ n && n(a);
1118
1118
  }
1119
1119
  };
1120
1120
  m(r, o);
1121
1121
  }
1122
1122
  });
1123
1123
  }
1124
- function Ee(e, n, s, t = void 0, i = void 0) {
1124
+ function Ee(e, t, s, n = void 0, i = void 0) {
1125
1125
  return new Promise((r) => {
1126
- if (e.token === "" && O(e), n !== void 0 && n !== "" && n !== null) {
1126
+ if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
1127
1127
  const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
1128
1128
  j(
1129
1129
  e.space,
@@ -1146,7 +1146,7 @@ function Ee(e, n, s, t = void 0, i = void 0) {
1146
1146
  data: JSON.stringify({
1147
1147
  data: [
1148
1148
  {
1149
- physicalid: n,
1149
+ physicalid: t,
1150
1150
  proposedRevision: s,
1151
1151
  modifiedAttributes: {
1152
1152
  revision: s
@@ -1158,7 +1158,7 @@ function Ee(e, n, s, t = void 0, i = void 0) {
1158
1158
  }),
1159
1159
  type: "json",
1160
1160
  onComplete(c) {
1161
- t && t(c);
1161
+ n && n(c);
1162
1162
  },
1163
1163
  onFailure(c) {
1164
1164
  i && i(c);
@@ -1168,19 +1168,19 @@ function Ee(e, n, s, t = void 0, i = void 0) {
1168
1168
  }
1169
1169
  });
1170
1170
  }
1171
- function Ke(e, n, s, t, i = void 0, r = void 0) {
1171
+ function Ke(e, t, s, n, i = void 0, r = void 0) {
1172
1172
  return new Promise((o) => {
1173
1173
  const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
1174
1174
  let c = {
1175
1175
  attributes: {
1176
1176
  title: s,
1177
- description: t,
1177
+ description: n,
1178
1178
  inheritedAccess: "no"
1179
1179
  }
1180
1180
  }, d = {
1181
1181
  items: []
1182
1182
  };
1183
- n && (d.parentId = n), d.items.push(c);
1183
+ t && (d.parentId = t), d.items.push(c);
1184
1184
  let p = {
1185
1185
  method: "POST",
1186
1186
  headers: {
@@ -1201,7 +1201,7 @@ function Ke(e, n, s, t, i = void 0, r = void 0) {
1201
1201
  m(a, p);
1202
1202
  });
1203
1203
  }
1204
- function Be(e, n, s, t, i = void 0, r = void 0) {
1204
+ function Be(e, t, s, n, i = void 0, r = void 0) {
1205
1205
  return console.log("credentials", e), new Promise((o) => {
1206
1206
  `${e.space}`, JSON.stringify({
1207
1207
  csrf: {
@@ -1212,11 +1212,11 @@ function Be(e, n, s, t, i = void 0, r = void 0) {
1212
1212
  {
1213
1213
  type: "Workspace",
1214
1214
  cestamp: "businessobject",
1215
- relId: n,
1216
- id: n,
1215
+ relId: t,
1216
+ id: t,
1217
1217
  dataelements: {
1218
1218
  personList: s,
1219
- eventsList: t
1219
+ eventsList: n
1220
1220
  },
1221
1221
  tenant: e.tenant
1222
1222
  }
@@ -1225,12 +1225,12 @@ function Be(e, n, s, t, i = void 0, r = void 0) {
1225
1225
  });
1226
1226
  }
1227
1227
  //!SECTION
1228
- function Ve(e, n = void 0, s = void 0) {
1229
- const t = {
1228
+ function Ve(e, t = void 0, s = void 0) {
1229
+ const n = {
1230
1230
  base: `${e.space}`,
1231
1231
  uri: "/resources/bps/cspaces",
1232
1232
  optTenant: `tenant=${e.tenant}`
1233
- }, i = `${t.base}${t.uri}?${t.optTenant}`;
1233
+ }, i = `${n.base}${n.uri}?${n.optTenant}`;
1234
1234
  m(i, {
1235
1235
  method: "GET",
1236
1236
  headers: {
@@ -1239,17 +1239,17 @@ function Ve(e, n = void 0, s = void 0) {
1239
1239
  },
1240
1240
  onComplete(r, o) {
1241
1241
  const a = JSON.parse(r);
1242
- n && n(a, o);
1242
+ t && t(a, o);
1243
1243
  },
1244
1244
  onFailure(r, o, a) {
1245
1245
  s && s({ response: r, headers: o, xhr: a });
1246
1246
  }
1247
1247
  });
1248
1248
  }
1249
- function We(e, n, s, t) {
1249
+ function We(e, t, s, n) {
1250
1250
  U(
1251
1251
  e.space,
1252
- n,
1252
+ t,
1253
1253
  (i) => {
1254
1254
  m(i, {
1255
1255
  header: { ENO_CSRF_TOKEN: e.token },
@@ -1257,26 +1257,26 @@ function We(e, n, s, t) {
1257
1257
  s && s(r);
1258
1258
  },
1259
1259
  onFailure: (r) => {
1260
- console.log("error http", r), t && t(r);
1260
+ console.log("error http", r), n && n(r);
1261
1261
  }
1262
1262
  });
1263
1263
  }
1264
1264
  );
1265
1265
  }
1266
- async function Xe(e, n, s = void 0, t = void 0) {
1266
+ async function Xe(e, t, s = void 0, n = void 0) {
1267
1267
  return new Promise((i) => {
1268
- U(e, n, (r) => {
1268
+ U(e, t, (r) => {
1269
1269
  m(r, {
1270
1270
  onComplete: (o, a, c) => (i(JSON.parse(o)), s && s(JSON.parse(o), a, c), i),
1271
1271
  onFailure: (o, a, c) => {
1272
- t && t(o, a, c), console.log(o, a?.errormsg);
1272
+ n && n(o, a, c), console.log(o, a?.errormsg);
1273
1273
  }
1274
1274
  });
1275
1275
  });
1276
1276
  });
1277
1277
  }
1278
- function Ye(e, n, s, t = void 0, i = void 0) {
1279
- const r = new Blob([JSON.stringify(n)], { type: "text/plain" });
1278
+ function Ye(e, t, s, n = void 0, i = void 0) {
1279
+ const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
1280
1280
  A(
1281
1281
  e,
1282
1282
  s,
@@ -1289,7 +1289,7 @@ function Ye(e, n, s, t = void 0, i = void 0) {
1289
1289
  r,
1290
1290
  c,
1291
1291
  (d) => {
1292
- t && t(d);
1292
+ n && n(d);
1293
1293
  },
1294
1294
  (d) => {
1295
1295
  i && i(d);
@@ -1300,39 +1300,39 @@ function Ye(e, n, s, t = void 0, i = void 0) {
1300
1300
  }
1301
1301
  let G, E;
1302
1302
  const x = [];
1303
- async function qe(e, n = void 0, s = void 0) {
1303
+ async function qe(e, t = void 0, s = void 0) {
1304
1304
  e.objID && e.objID !== "" ? A(
1305
1305
  e,
1306
- (t) => {
1307
- n && n(t);
1306
+ (n) => {
1307
+ t && t(n);
1308
1308
  },
1309
- (t) => {
1310
- s && s(t);
1309
+ (n) => {
1310
+ s && s(n);
1311
1311
  }
1312
1312
  ) : (e.objID === null || e.objID === "") && O(
1313
1313
  e,
1314
- (t) => {
1315
- n && n({ rep: t, msg: "Pas d'objID, ou invalide" });
1314
+ (n) => {
1315
+ t && t({ rep: n, msg: "Pas d'objID, ou invalide" });
1316
1316
  },
1317
- (t) => {
1318
- s && s({ msg: "Pas d'objID et erreur sur le Space", err: t });
1317
+ (n) => {
1318
+ s && s({ msg: "Pas d'objID et erreur sur le Space", err: n });
1319
1319
  }
1320
1320
  );
1321
1321
  }
1322
- async function He(e, n = void 0, s = void 0) {
1322
+ async function He(e, t = void 0, s = void 0) {
1323
1323
  console.log("getDatasByTenant (getDocuments)", e), await J(
1324
1324
  e,
1325
- (t) => {
1325
+ (n) => {
1326
1326
  const i = {};
1327
- i.obj = t, console.log("getDatasByTenant (getDocuments) _datas", i), n && n?.(i);
1327
+ i.obj = n, console.log("getDatasByTenant (getDocuments) _datas", i), t && t?.(i);
1328
1328
  },
1329
- (t) => {
1330
- s && s?.(t);
1329
+ (n) => {
1330
+ s && s?.(n);
1331
1331
  }
1332
1332
  );
1333
1333
  }
1334
- function ze(e, n = void 0, s = void 0) {
1335
- const t = [];
1334
+ function ze(e, t = void 0, s = void 0) {
1335
+ const n = [];
1336
1336
  if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
1337
1337
  console.warn("la liste est vide ou n'est pas un tableau");
1338
1338
  return;
@@ -1342,21 +1342,21 @@ function ze(e, n = void 0, s = void 0) {
1342
1342
  e,
1343
1343
  i.objID,
1344
1344
  (o) => {
1345
- t.push({ [i.name]: o }), i.name === "dbProjets" && (G = o.affaires.map((a) => a.objectID), se(e, E)), r === e.objIds.length - 1 && (n && n(t), delete e.objIds, delete e.datas);
1345
+ n.push({ [i.name]: o }), i.name === "dbProjets" && (G = o.affaires.map((a) => a.objectID), se(e, E)), r === e.objIds.length - 1 && (t && t(n), delete e.objIds, delete e.datas);
1346
1346
  }
1347
1347
  );
1348
1348
  });
1349
1349
  }
1350
- function se(e, n, s = void 0, t = void 0) {
1350
+ function se(e, t, s = void 0, n = void 0) {
1351
1351
  te(
1352
1352
  e,
1353
1353
  G,
1354
1354
  (i) => {
1355
- const r = [...n];
1355
+ const r = [...t];
1356
1356
  r.find((o) => o.objectID === i.objectId).data = i.data, E = r, x.push(i.data), s && s(x);
1357
1357
  },
1358
1358
  (i) => {
1359
- t && (t(i), console.log(i));
1359
+ n && (n(i), console.log(i));
1360
1360
  }
1361
1361
  );
1362
1362
  }
@@ -1380,8 +1380,8 @@ const ie = "FA35FB9B177A280065800EA0000F599C", ae = [
1380
1380
  order_by: "desc",
1381
1381
  tag: "testTag"
1382
1382
  };
1383
- function Qe(e, n, s = void 0, t = void 0) {
1384
- const { space: i, tenant: r } = e, { objId: o, pred: a, tag: c } = n, d = {
1383
+ function Qe(e, t, s = void 0, n = void 0) {
1384
+ const { space: i, tenant: r } = e, { objId: o, pred: a, tag: c } = t, d = {
1385
1385
  uri: "/resources/6w/tags",
1386
1386
  otpCTX: "SecurityContext=preferred",
1387
1387
  optTenant: `tenant=${r}`
@@ -1416,33 +1416,33 @@ function Qe(e, n, s = void 0, t = void 0) {
1416
1416
  o,
1417
1417
  (g) => {
1418
1418
  const h = g.data[0].dataelements.title, y = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", S = g.data[0].relateddata.ownerInfo[0].dataelements.name;
1419
- l.name = h, l.ext = y, l.createBy = S, n.info = { ...l }, re(
1419
+ l.name = h, l.ext = y, l.createBy = S, t.info = { ...l }, re(
1420
1420
  e,
1421
- n,
1421
+ t,
1422
1422
  (_) => {
1423
1423
  s && s(_);
1424
1424
  },
1425
1425
  (_) => {
1426
- t && t(_);
1426
+ n && n(_);
1427
1427
  }
1428
1428
  );
1429
1429
  },
1430
1430
  (g, h) => {
1431
1431
  const y = g;
1432
- y.msg = h.errormsg, y.errCode = h.errorcode, console.log("❌ sendDirectMessage => ", y), t && t(y);
1432
+ y.msg = h.errormsg, y.errCode = h.errorcode, console.log("❌ sendDirectMessage => ", y), n && n(y);
1433
1433
  }
1434
1434
  );
1435
1435
  }, 2e3);
1436
1436
  },
1437
1437
  onFailure(f, l) {
1438
1438
  const g = f;
1439
- g.msg = l.errormsg, g.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", g), t && t(g);
1439
+ g.msg = l.errormsg, g.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", g), n && n(g);
1440
1440
  }
1441
1441
  });
1442
1442
  }
1443
- function re(e, n, s = void 0, t = void 0) {
1444
- console.log("obj ", n);
1445
- const i = n.info.name, r = {
1443
+ function re(e, t, s = void 0, n = void 0) {
1444
+ console.log("obj ", t);
1445
+ const i = t.info.name, r = {
1446
1446
  baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
1447
1447
  uri: "/federated/search"
1448
1448
  }, o = `${r.baseUrl}${r.uri}`, a = {
@@ -1519,12 +1519,12 @@ function re(e, n, s = void 0, t = void 0) {
1519
1519
  },
1520
1520
  onFailure(p, u) {
1521
1521
  const f = p;
1522
- f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f), t && t(f), console.log("Erreur de recuperation d'id du doc et des tags", p);
1522
+ f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f), n && n(f), console.log("Erreur de recuperation d'id du doc et des tags", p);
1523
1523
  }
1524
1524
  });
1525
1525
  }
1526
- function Ze(e, n, s = void 0, t = void 0) {
1527
- const { objId: i, pred: r, tag: o } = n, a = {
1526
+ function Ze(e, t, s = void 0, n = void 0) {
1527
+ const { objId: i, pred: r, tag: o } = t, a = {
1528
1528
  uri: "/resources/6w/tags",
1529
1529
  otpCTX: "SecurityContext=preferred",
1530
1530
  optTenant: `tenant=${e.tenant}`
@@ -1555,20 +1555,20 @@ function Ze(e, n, s = void 0, t = void 0) {
1555
1555
  },
1556
1556
  onFailure(p, u) {
1557
1557
  const f = p;
1558
- f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f), t && t(f);
1558
+ f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f), n && n(f);
1559
1559
  }
1560
1560
  });
1561
1561
  }
1562
- function et(e, n = "", s = void 0, t = void 0) {
1562
+ function et(e, t = "", s = void 0, n = void 0) {
1563
1563
  const { space: i } = e;
1564
- if (n === "")
1564
+ if (t === "")
1565
1565
  return;
1566
1566
  const r = {
1567
1567
  uri: "/resources/v1/modeler/documents"
1568
1568
  }, o = {
1569
1569
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
1570
1570
  Accept: "application/json,text/javascript,*/*"
1571
- }, a = `${i}${r.uri}`, c = `$include=none,lockerInfo,ownerInfo,originatorInfo,files,ownerInfo,originatorInfo&$fields=none,title,name,typeNLS,collabSpaceTitle,revision,isLatestRevision,files,lockStatus,lockerInfo.name,lockerInfo.firstname,lockerInfo.lastname,owner,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,stateNLS,modified,policy,state,organizationTitle,originator,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname,hasModifyAccess,fileExtension,files.name,files.title,files.revision,files.locker,ownerInfo,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,originatorInfo,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname&$ids=${n}`;
1571
+ }, a = `${i}${r.uri}`, c = `$include=none,lockerInfo,ownerInfo,originatorInfo,files,ownerInfo,originatorInfo&$fields=none,title,name,typeNLS,collabSpaceTitle,revision,isLatestRevision,files,lockStatus,lockerInfo.name,lockerInfo.firstname,lockerInfo.lastname,owner,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,stateNLS,modified,policy,state,organizationTitle,originator,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname,hasModifyAccess,fileExtension,files.name,files.title,files.revision,files.locker,ownerInfo,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,originatorInfo,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname&$ids=${t}`;
1572
1572
  m(a, {
1573
1573
  method: "POST",
1574
1574
  headers: o,
@@ -1578,25 +1578,25 @@ function et(e, n = "", s = void 0, t = void 0) {
1578
1578
  },
1579
1579
  onFailure(d, p) {
1580
1580
  const u = d;
1581
- u.msg = p.error, t && t(u);
1581
+ u.msg = p.error, n && n(u);
1582
1582
  }
1583
1583
  });
1584
1584
  }
1585
- async function C(e, n = void 0, s = void 0) {
1586
- const t = e.space + "/api/index/tk";
1587
- return m(t, {
1585
+ async function C(e, t = void 0, s = void 0) {
1586
+ const n = e.space + "/api/index/tk";
1587
+ return m(n, {
1588
1588
  onComplete(i, r, o) {
1589
1589
  const a = JSON.parse(i);
1590
- if (n)
1591
- return n(a), e.token = a?.result?.ServerToken;
1590
+ if (t)
1591
+ return t(a), e.token = a?.result?.ServerToken;
1592
1592
  },
1593
1593
  onFailure(i) {
1594
1594
  s && s(i);
1595
1595
  }
1596
1596
  });
1597
1597
  }
1598
- function tt(e, n = void 0, s = void 0) {
1599
- const t = `${e.space}/api/exalead/whatsnew`, i = {
1598
+ function tt(e, t = void 0, s = void 0) {
1599
+ const n = `${e.space}/api/exalead/whatsnew`, i = {
1600
1600
  params: {
1601
1601
  community_id: null,
1602
1602
  hash_key: null,
@@ -1607,7 +1607,7 @@ function tt(e, n = void 0, s = void 0) {
1607
1607
  }
1608
1608
  };
1609
1609
  C(e, (r) => {
1610
- m(t, {
1610
+ m(n, {
1611
1611
  method: "POST",
1612
1612
  headers: {
1613
1613
  "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
@@ -1617,7 +1617,7 @@ function tt(e, n = void 0, s = void 0) {
1617
1617
  data: JSON.stringify(i),
1618
1618
  type: "json",
1619
1619
  onComplete(o, a) {
1620
- n && n(o, a);
1620
+ t && t(o, a);
1621
1621
  },
1622
1622
  onFailure(o, a) {
1623
1623
  s && s(o, a);
@@ -1625,8 +1625,8 @@ function tt(e, n = void 0, s = void 0) {
1625
1625
  });
1626
1626
  });
1627
1627
  }
1628
- function nt(e, n = void 0, s = void 0) {
1629
- const t = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
1628
+ function nt(e, t = void 0, s = void 0) {
1629
+ const n = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
1630
1630
  params: {
1631
1631
  idsToFilterArr: [],
1632
1632
  mode: "offline",
@@ -1636,7 +1636,7 @@ function nt(e, n = void 0, s = void 0) {
1636
1636
  }
1637
1637
  };
1638
1638
  C(e, (r) => {
1639
- m(t, {
1639
+ m(n, {
1640
1640
  method: "POST",
1641
1641
  headers: {
1642
1642
  "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
@@ -1647,7 +1647,7 @@ function nt(e, n = void 0, s = void 0) {
1647
1647
  type: "json",
1648
1648
  onComplete(o, a) {
1649
1649
  const c = o.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
1650
- n && n(c, o);
1650
+ t && t(c, o);
1651
1651
  },
1652
1652
  onFailure(o, a) {
1653
1653
  s && s(o, a);
@@ -1655,13 +1655,13 @@ function nt(e, n = void 0, s = void 0) {
1655
1655
  });
1656
1656
  });
1657
1657
  }
1658
- function st(e, n = void 0, s = void 0) {
1659
- const t = {
1658
+ function st(e, t = void 0, s = void 0) {
1659
+ const n = {
1660
1660
  base: e.space,
1661
1661
  uri: "/api/community/listmycommunities",
1662
1662
  limit: `/limit/${e.limit ? e.limit : 500}`,
1663
1663
  page: `/page/${e.page ? e.page : "1"}`
1664
- }, i = `${t.base}${t.uri}${t.limit}${t.page}`, r = [];
1664
+ }, i = `${n.base}${n.uri}${n.limit}${n.page}`, r = [];
1665
1665
  C(e, (o) => {
1666
1666
  m(i, {
1667
1667
  method: "GET",
@@ -1684,7 +1684,7 @@ function st(e, n = void 0, s = void 0) {
1684
1684
  e,
1685
1685
  l.id,
1686
1686
  (h) => {
1687
- f++, g.members = h, r.push(g), f === u.length && n && n(r);
1687
+ f++, g.members = h, r.push(g), f === u.length && t && t(r);
1688
1688
  },
1689
1689
  (h) => s(h)
1690
1690
  );
@@ -1697,12 +1697,12 @@ function st(e, n = void 0, s = void 0) {
1697
1697
  });
1698
1698
  });
1699
1699
  }
1700
- function ce(e, n, s, t) {
1700
+ function ce(e, t, s, n) {
1701
1701
  const i = `${e.space}/api/community/listmembers`, r = {
1702
1702
  params: {
1703
1703
  page: e.page ? e.page : 1,
1704
1704
  limit: e.limit ? e.limit : 50,
1705
- community_id: n
1705
+ community_id: t
1706
1706
  }
1707
1707
  };
1708
1708
  C(e, (o) => {
@@ -1720,14 +1720,14 @@ function ce(e, n, s, t) {
1720
1720
  },
1721
1721
  onFailure(a, c) {
1722
1722
  const d = a;
1723
- d.status = c.status, d.response = c.errormsg, t && t(d);
1723
+ d.status = c.status, d.response = c.errormsg, n && n(d);
1724
1724
  }
1725
1725
  });
1726
1726
  });
1727
1727
  }
1728
- function it(e, n = void 0, s = void 0) {
1729
- const t = "YXdA5x4DSUKtlAi2wmnyTA";
1730
- e.commu_id || (e.commu_id = t);
1728
+ function it(e, t = void 0, s = void 0) {
1729
+ const n = "YXdA5x4DSUKtlAi2wmnyTA";
1730
+ e.commu_id || (e.commu_id = n);
1731
1731
  const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
1732
1732
  C(e, (r) => {
1733
1733
  m(i, {
@@ -1739,7 +1739,7 @@ function it(e, n = void 0, s = void 0) {
1739
1739
  },
1740
1740
  onComplete(o) {
1741
1741
  const a = JSON.parse(o);
1742
- n && n(a);
1742
+ t && t(a);
1743
1743
  },
1744
1744
  onFailure(o, a) {
1745
1745
  const c = o;
@@ -1748,16 +1748,16 @@ function it(e, n = void 0, s = void 0) {
1748
1748
  });
1749
1749
  });
1750
1750
  }
1751
- function at(e, n, s = void 0, t = void 0) {
1751
+ function at(e, t, s = void 0, n = void 0) {
1752
1752
  const { listAllContacts: i, currentUser: r } = e;
1753
1753
  console.log("__listAllContacts", i.hits);
1754
1754
  const o = `${e.space}/api/directmessages`, a = {
1755
- users: [r.login].concat(n.receipt)
1755
+ users: [r.login].concat(t.receipt)
1756
1756
  }, c = {
1757
1757
  id_msg: "",
1758
1758
  senderId: e.currentUser.login,
1759
1759
  senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
1760
- msg: pe(n.msg)
1760
+ msg: pe(t.msg)
1761
1761
  };
1762
1762
  let d = !1;
1763
1763
  de(
@@ -1766,7 +1766,7 @@ function at(e, n, s = void 0, t = void 0) {
1766
1766
  p !== void 0 && (c.id_msg = p.id, d = !0, P(e, c));
1767
1767
  },
1768
1768
  (p) => {
1769
- d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), t && t(p), c.id_msg = "";
1769
+ d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), n && n(p), c.id_msg = "";
1770
1770
  }
1771
1771
  ), d === !1 && setTimeout(() => {
1772
1772
  d === !1 && C(e, (p) => {
@@ -1785,13 +1785,13 @@ function at(e, n, s = void 0, t = void 0) {
1785
1785
  },
1786
1786
  onFailure(u, f, l) {
1787
1787
  const g = u;
1788
- g.msg = f.errormsg, g.status = f.status, t && t(g);
1788
+ g.msg = f.errormsg, g.status = f.status, n && n(g);
1789
1789
  }
1790
1790
  });
1791
1791
  });
1792
1792
  }, 500);
1793
1793
  }
1794
- function de(e, n, s, t) {
1794
+ function de(e, t, s, n) {
1795
1795
  const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
1796
1796
  C(e, (r) => {
1797
1797
  m(i, {
@@ -1803,38 +1803,38 @@ function de(e, n, s, t) {
1803
1803
  onComplete(o) {
1804
1804
  const a = JSON.parse(o), c = [];
1805
1805
  a.result.forEach((u) => {
1806
- u.users = u.users.sort((f, l) => f.login.localeCompare(l.login)), u.users.length === n.length && c.push(u);
1806
+ u.users = u.users.sort((f, l) => f.login.localeCompare(l.login)), u.users.length === t.length && c.push(u);
1807
1807
  });
1808
- const d = n.sort(), p = c.find((u) => {
1808
+ const d = t.sort(), p = c.find((u) => {
1809
1809
  const f = [];
1810
1810
  return u.users.forEach((l) => {
1811
1811
  f.push(l.login);
1812
1812
  }), JSON.stringify(f) === JSON.stringify(d);
1813
1813
  });
1814
- s && p !== void 0 ? s(p) : (t || p === void 0) && t(p);
1814
+ s && p !== void 0 ? s(p) : (n || p === void 0) && n(p);
1815
1815
  },
1816
1816
  onFailure(o) {
1817
1817
  const a = o;
1818
- a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), t && t(a);
1818
+ a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), n && n(a);
1819
1819
  }
1820
1820
  });
1821
1821
  });
1822
1822
  }
1823
- function P(e, n, s = void 0, t = void 0) {
1823
+ function P(e, t, s = void 0, n = void 0) {
1824
1824
  const i = {
1825
1825
  base: e.space,
1826
1826
  uri: "/api/community",
1827
- id_msg: `${n.id_msg}`,
1827
+ id_msg: `${t.id_msg}`,
1828
1828
  endUri: "/instantmessages"
1829
1829
  }, r = `${i.base}${i.uri}/${i.id_msg}${i.endUri}`, o = {
1830
- author: { login: n.senderId, displayName: n.senderName },
1830
+ author: { login: t.senderId, displayName: t.senderName },
1831
1831
  accessState: null,
1832
1832
  commentUri: null,
1833
1833
  comments: null,
1834
1834
  endorsements: null,
1835
1835
  moderationState: null,
1836
1836
  parentCommentUri: null,
1837
- richMessage: n.msg
1837
+ richMessage: t.msg
1838
1838
  };
1839
1839
  console.log("_3dSwym_sendDirectMessageData url ", r), C(e, (a) => {
1840
1840
  m(r, {
@@ -1852,30 +1852,30 @@ function P(e, n, s = void 0, t = void 0) {
1852
1852
  },
1853
1853
  onFailure(c, d) {
1854
1854
  const p = c;
1855
- p.msg = d.errormsg, p.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", p), t && t(p);
1855
+ p.msg = d.errormsg, p.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", p), n && n(p);
1856
1856
  }
1857
1857
  });
1858
1858
  });
1859
1859
  }
1860
1860
  function pe(e) {
1861
- const n = (/* @__PURE__ */ new Date()).toLocaleDateString(), s = (/* @__PURE__ */ new Date()).toLocaleTimeString();
1861
+ const t = (/* @__PURE__ */ new Date()).toLocaleDateString(), s = (/* @__PURE__ */ new Date()).toLocaleTimeString();
1862
1862
  return `<p>${e} </p>
1863
1863
  <br/>
1864
1864
  <hr/>
1865
- <p><u>envoyer :</u>Le <b>${n} à ${s}</b></p>`;
1865
+ <p><u>envoyer :</u>Le <b>${t} à ${s}</b></p>`;
1866
1866
  }
1867
- function ot(e, n, s = void 0, t = void 0) {
1867
+ function ot(e, t, s = void 0, n = void 0) {
1868
1868
  const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
1869
- (c) => c.id === n.community_id
1869
+ (c) => c.id === t.community_id
1870
1870
  ), o = e.swymCommunities.find(
1871
- (c) => c.title.toLowerCase() === n.community_title.toLowerCase()
1871
+ (c) => c.title.toLowerCase() === t.community_title.toLowerCase()
1872
1872
  ), a = {
1873
1873
  params: {
1874
- title: n.title,
1874
+ title: t.title,
1875
1875
  // String, le nom de l'affaire
1876
1876
  community_id: r?.id !== void 0 ? r.id : o.id,
1877
1877
  // String, l'id de la communauté
1878
- message: ue(n.text_html),
1878
+ message: ue(t.text_html),
1879
1879
  // STRING => le contenue du message doit être au format HTML
1880
1880
  published: 1
1881
1881
  // 1 publier, 0 non publier
@@ -1898,16 +1898,16 @@ function ot(e, n, s = void 0, t = void 0) {
1898
1898
  },
1899
1899
  onFailure(p, u, f) {
1900
1900
  const l = p;
1901
- l.status = u.status, l.response = u.errormsg, t && t(l);
1901
+ l.status = u.status, l.response = u.errormsg, n && n(l);
1902
1902
  }
1903
1903
  });
1904
1904
  });
1905
1905
  }
1906
- function rt(e, n = void 0, s = void 0) {
1907
- const t = { base: e.space, uri: "/api/idea/add" };
1906
+ function rt(e, t = void 0, s = void 0) {
1907
+ const n = { base: e.space, uri: "/api/idea/add" };
1908
1908
  if (!Array.isArray(e.swymCommunities)) {
1909
1909
  const o = "☠️ swymCommunities doit être un tableau d'objets de communautés";
1910
- throw new Error(`Erreur sur cette requête : ${t.base + t.uri}`, {
1910
+ throw new Error(`Erreur sur cette requête : ${n.base + n.uri}`, {
1911
1911
  cause: o
1912
1912
  });
1913
1913
  }
@@ -1915,19 +1915,19 @@ function rt(e, n = void 0, s = void 0) {
1915
1915
  (o) => o.id === e.community_id
1916
1916
  ) === -1) {
1917
1917
  const o = "la communauté n'existe pas dans la liste des communautés du Swym";
1918
- throw new Error(`Erreur sur cette requête : ${t.base + t.uri}`, {
1918
+ throw new Error(`Erreur sur cette requête : ${n.base + n.uri}`, {
1919
1919
  cause: o
1920
1920
  });
1921
1921
  }
1922
1922
  if (e.community_id && e.community_id === "") {
1923
1923
  const o = "☠️ community_id doit être un String qui contient l'id de la communauté dans laquelle on souhaite publier l'idée.";
1924
- throw new Error(`Erreur sur cette requête : ${t.base + t.uri}`, {
1924
+ throw new Error(`Erreur sur cette requête : ${n.base + n.uri}`, {
1925
1925
  cause: o
1926
1926
  });
1927
1927
  }
1928
1928
  if (e.title && e.title === "") {
1929
1929
  const o = "☠️ title doit être un String.";
1930
- throw new Error(`Erreur sur cette requête : ${t.base + t.uri}`, {
1930
+ throw new Error(`Erreur sur cette requête : ${n.base + n.uri}`, {
1931
1931
  cause: o
1932
1932
  });
1933
1933
  }
@@ -1946,7 +1946,7 @@ function rt(e, n = void 0, s = void 0) {
1946
1946
  C(e, (o) => {
1947
1947
  if (!o)
1948
1948
  throw new Error(
1949
- `☠️ token n'est pas disponible pour cette requête : ${t.base + t.uri}`,
1949
+ `☠️ token n'est pas disponible pour cette requête : ${n.base + n.uri}`,
1950
1950
  {
1951
1951
  cause: o
1952
1952
  }
@@ -1961,11 +1961,11 @@ function rt(e, n = void 0, s = void 0) {
1961
1961
  data: JSON.stringify(r),
1962
1962
  onComplete(c, d, p) {
1963
1963
  const u = { response: c };
1964
- typeof u.response == "string" && (u.response = JSON.parse(u.response)), u.status = p.status, n && n(u);
1964
+ typeof u.response == "string" && (u.response = JSON.parse(u.response)), u.status = p.status, t && t(u);
1965
1965
  },
1966
1966
  onFailure(c, d, p) {
1967
1967
  const u = JSON.parse(d), f = JSON.parse(c), l = new Error(
1968
- `Erreur sur cette requête : ${t.base + t.uri}`,
1968
+ `Erreur sur cette requête : ${n.base + n.uri}`,
1969
1969
  {
1970
1970
  cause: { head: u, rep: f }
1971
1971
  }
@@ -1973,14 +1973,14 @@ function rt(e, n = void 0, s = void 0) {
1973
1973
  s && s(l);
1974
1974
  }
1975
1975
  };
1976
- m(t.base + t.uri, a);
1976
+ m(n.base + n.uri, a);
1977
1977
  });
1978
1978
  }
1979
- function ct(e, n, s = void 0, t = void 0) {
1979
+ function ct(e, t, s = void 0, n = void 0) {
1980
1980
  const i = `${e.space}/api/idea/delete`, r = {
1981
1981
  params: {
1982
- community_id: n.community_id,
1983
- ideationIds: [n.idee_id]
1982
+ community_id: t.community_id,
1983
+ ideationIds: [t.idee_id]
1984
1984
  }
1985
1985
  };
1986
1986
  C(e, (o) => {
@@ -1998,16 +1998,16 @@ function ct(e, n, s = void 0, t = void 0) {
1998
1998
  },
1999
1999
  onFailure(a, c, d) {
2000
2000
  const p = a;
2001
- p.status = c.status, p.response = c.errormsg, t && t(p);
2001
+ p.status = c.status, p.response = c.errormsg, n && n(p);
2002
2002
  }
2003
2003
  });
2004
2004
  });
2005
2005
  }
2006
- function dt(e, n = void 0, s = void 0) {
2007
- const t = `${e.space}/api/idea/get`;
2006
+ function dt(e, t = void 0, s = void 0) {
2007
+ const n = `${e.space}/api/idea/get`;
2008
2008
  if (e.idPost === "") {
2009
2009
  const r = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
2010
- throw new Error(`Erreur sur cette requête : ${t}`, { cause: r });
2010
+ throw new Error(`Erreur sur cette requête : ${n}`, { cause: r });
2011
2011
  }
2012
2012
  const i = {
2013
2013
  params: {
@@ -2015,7 +2015,7 @@ function dt(e, n = void 0, s = void 0) {
2015
2015
  }
2016
2016
  };
2017
2017
  C(e, (r) => {
2018
- m(t, {
2018
+ m(n, {
2019
2019
  method: "POST",
2020
2020
  headers: {
2021
2021
  "Content-type": "application/json;charset=UTF-8",
@@ -2024,7 +2024,7 @@ function dt(e, n = void 0, s = void 0) {
2024
2024
  },
2025
2025
  data: JSON.stringify(i),
2026
2026
  onComplete(o) {
2027
- n && n({ response: o });
2027
+ t && t({ response: o });
2028
2028
  },
2029
2029
  onFailure(o) {
2030
2030
  const a = o;
@@ -2033,8 +2033,8 @@ function dt(e, n = void 0, s = void 0) {
2033
2033
  });
2034
2034
  });
2035
2035
  }
2036
- function pt(e, n, s) {
2037
- const t = {
2036
+ function pt(e, t, s) {
2037
+ const n = {
2038
2038
  base: `${e.space}/api/idea/edit`,
2039
2039
  uri: "/api/idea/edit"
2040
2040
  }, i = {
@@ -2061,18 +2061,18 @@ function pt(e, n, s) {
2061
2061
  const p = {
2062
2062
  response: typeof a == "string" ? JSON.parse(a) : a
2063
2063
  };
2064
- p.status = d.status, n && n(p);
2064
+ p.status = d.status, t && t(p);
2065
2065
  },
2066
2066
  onFailure(a) {
2067
2067
  s && s(a);
2068
2068
  }
2069
2069
  };
2070
- m(t.base + t.uri, o);
2070
+ m(n.base + n.uri, o);
2071
2071
  });
2072
2072
  }
2073
- function ut(e, n, s = void 0, t = void 0) {
2073
+ function ut(e, t, s = void 0, n = void 0) {
2074
2074
  const { space: i } = e;
2075
- let { community_id: r, limit: o, page: a, search: c } = n;
2075
+ let { community_id: r, limit: o, page: a, search: c } = t;
2076
2076
  const d = [], p = 1;
2077
2077
  let u = !1, f = 2;
2078
2078
  a || (a = p), o || (o = 100);
@@ -2113,7 +2113,7 @@ function ut(e, n, s = void 0, t = void 0) {
2113
2113
  },
2114
2114
  onFailure(_, w) {
2115
2115
  const T = _;
2116
- T.status = w.status, T.response = w.errormsg, t && t(T);
2116
+ T.status = w.status, T.response = w.errormsg, n && n(T);
2117
2117
  }
2118
2118
  });
2119
2119
  };
@@ -2195,17 +2195,17 @@ function ue(e) {
2195
2195
  <p>
2196
2196
  </p>` : e;
2197
2197
  }
2198
- function lt(e, n = void 0, s = void 0) {
2199
- const t = e.space + "/api/user/getcurrent/";
2198
+ function lt(e, t = void 0, s = void 0) {
2199
+ const n = e.space + "/api/user/getcurrent/";
2200
2200
  C(e, (i) => {
2201
- m(t, {
2201
+ m(n, {
2202
2202
  method: "GET",
2203
2203
  headers: {
2204
2204
  "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
2205
2205
  },
2206
2206
  onComplete(r, o, a) {
2207
2207
  const c = JSON.parse(r);
2208
- n && n(c.result);
2208
+ t && t(c.result);
2209
2209
  },
2210
2210
  onFailure(r, o, a) {
2211
2211
  const c = { erreur: JSON.parse(r), headers: o, xhr: a };
@@ -2214,8 +2214,8 @@ function lt(e, n = void 0, s = void 0) {
2214
2214
  });
2215
2215
  });
2216
2216
  }
2217
- function ft(e, n, s = void 0, t = void 0) {
2218
- const i = e.space + "/api/user/find/login/" + n;
2217
+ function ft(e, t, s = void 0, n = void 0) {
2218
+ const i = e.space + "/api/user/find/login/" + t;
2219
2219
  C(
2220
2220
  e,
2221
2221
  (r) => {
@@ -2227,32 +2227,29 @@ function ft(e, n, s = void 0, t = void 0) {
2227
2227
  s && s(d);
2228
2228
  },
2229
2229
  onFailure(o) {
2230
- t && t(o);
2230
+ n && n(o);
2231
2231
  }
2232
2232
  });
2233
2233
  },
2234
- t
2234
+ n
2235
2235
  );
2236
2236
  }
2237
- function mt(e, n = void 0, s = void 0) {
2238
- e.tenant && b(e, (t) => {
2239
- console.log("serviceUrls", t);
2240
- const i = t.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2241
- return n && n(i), i;
2237
+ function mt(e, t = void 0, s = void 0) {
2238
+ e.tenant && b(e, (n) => {
2239
+ const i = n.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2240
+ return t && t(i), i;
2242
2241
  });
2243
2242
  }
2244
- function gt(e, n = void 0, s = void 0) {
2245
- e.tenant && b(e, (t) => {
2246
- console.log("serviceUrls", t);
2247
- const i = t.services.find((a) => a.id === "3dpassport")?.url, r = t.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
2243
+ function gt(e, t = void 0, s = void 0) {
2244
+ e.tenant && b(e, (n) => {
2245
+ const i = n.services.find((a) => a.id === "3dpassport")?.url, r = n.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
2248
2246
  m(o, {
2249
2247
  async onComplete(a) {
2250
- console.log("response", a);
2251
2248
  const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
2252
2249
  await fetch(c, {
2253
2250
  method: "POST"
2254
2251
  }).then((d) => d.json()).then(async (d) => {
2255
- n && n(d?.token);
2252
+ t && t(d?.token);
2256
2253
  });
2257
2254
  },
2258
2255
  onFailure(a) {
@@ -2261,83 +2258,83 @@ function gt(e, n = void 0, s = void 0) {
2261
2258
  });
2262
2259
  });
2263
2260
  }
2264
- function ht(e, n = void 0, s = void 0) {
2261
+ function ht(e, t = void 0, s = void 0) {
2265
2262
  if (e.tenant) {
2266
- const t = e.tenant.toLowerCase();
2267
- fetch(`https://api.uixhome.fr/${t}/iterop/jwtuser`, {
2263
+ const n = e.tenant.toLowerCase();
2264
+ fetch(`https://api.uixhome.fr/${n}/iterop/jwtuser`, {
2268
2265
  method: "POST"
2269
2266
  }).then((i) => i.json()).then((i) => {
2270
- n && n(i);
2267
+ t && t(i);
2271
2268
  }).catch((i) => {
2272
2269
  s && s(i);
2273
2270
  });
2274
2271
  }
2275
2272
  }
2276
- async function yt(e, n, s = void 0, t = void 0) {
2273
+ async function yt(e, t, s = void 0, n = void 0) {
2277
2274
  e.tenant && b(e, (i) => {
2278
2275
  const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
2279
- fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${n}&s=${o}`, {
2276
+ fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
2280
2277
  method: "POST"
2281
2278
  }).then((c) => c.json()).then((c) => {
2282
2279
  s && s(c);
2283
2280
  }).catch((c) => {
2284
- t && t(c);
2281
+ n && n(c);
2285
2282
  });
2286
2283
  });
2287
2284
  }
2288
- async function St(e, n, s = void 0, t = void 0) {
2285
+ async function St(e, t, s = void 0, n = void 0) {
2289
2286
  e.tenant && b(e, (i) => {
2290
2287
  const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
2291
- fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${n}&s=${o}`, {
2288
+ fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
2292
2289
  method: "GET"
2293
2290
  }).then((c) => c.json()).then((c) => {
2294
2291
  s && s(c);
2295
2292
  }).catch((c) => {
2296
- t && t(c);
2293
+ n && n(c);
2297
2294
  });
2298
2295
  });
2299
2296
  }
2300
- async function _t(e, n, s, t = void 0, i = void 0) {
2297
+ async function _t(e, t, s, n = void 0, i = void 0) {
2301
2298
  if (e.tenant) {
2302
2299
  const r = e.tenant.toLowerCase();
2303
- fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/${s}?t=${n}`, {
2300
+ fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/${s}?t=${t}`, {
2304
2301
  method: "POST"
2305
2302
  }).then((o) => o.json()).then((o) => {
2306
- t && t(o);
2303
+ n && n(o);
2307
2304
  }).catch((o) => {
2308
2305
  i && i(o);
2309
2306
  });
2310
2307
  }
2311
2308
  }
2312
- async function wt(e, n, s, t = void 0, i = void 0) {
2309
+ async function wt(e, t, s, n = void 0, i = void 0) {
2313
2310
  if (e.tenant) {
2314
2311
  const r = e.tenant.toLowerCase();
2315
- fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/rows/${s}/?t=${n}`, {
2312
+ fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/rows/${s}/?t=${t}`, {
2316
2313
  method: "POST"
2317
2314
  }).then((o) => o.json()).then((o) => {
2318
- t && t(o);
2315
+ n && n(o);
2319
2316
  }).catch((o) => {
2320
2317
  i && i(o);
2321
2318
  });
2322
2319
  }
2323
2320
  }
2324
- async function Ct(e, n, s, t, i = void 0, r = void 0) {
2321
+ async function Ct(e, t, s, n, i = void 0, r = void 0) {
2325
2322
  e.tenant && b(e, (o) => {
2326
2323
  o.services.find((c) => c.id === "businessprocess")?.url + "";
2327
2324
  const a = e.tenant.toLowerCase();
2328
- fetch(`https://api.uixhome.fr/${a}/iterop/businesstable/patch/rows/${s}/?t=${n}&b=${t}`, {
2325
+ fetch(`https://api.uixhome.fr/${a}/iterop/businesstable/patch/rows/${s}/?t=${t}&b=${n}`, {
2329
2326
  method: "POST"
2330
2327
  }).then((c) => c.json()).then((c) => {
2331
2328
  i && i(c);
2332
2329
  }).catch((c) => {
2333
- r && r(c, s, t);
2330
+ r && r(c, s, n);
2334
2331
  });
2335
2332
  });
2336
2333
  }
2337
- async function Tt(e, n, s, t, i, r = void 0, o = void 0) {
2334
+ async function Tt(e, t, s, n, i, r = void 0, o = void 0) {
2338
2335
  if (e.tenant) {
2339
- const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${s}?t=${n}&c=${encodeURIComponent(
2340
- t
2336
+ const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${s}?t=${t}&c=${encodeURIComponent(
2337
+ n
2341
2338
  )}&b=${encodeURIComponent(i)}`;
2342
2339
  fetch(a, {
2343
2340
  method: "POST"
@@ -2347,21 +2344,21 @@ async function Tt(e, n, s, t, i, r = void 0, o = void 0) {
2347
2344
  o && o({
2348
2345
  error: c,
2349
2346
  tableId: s,
2350
- columns: t,
2347
+ columns: n,
2351
2348
  body: i
2352
2349
  });
2353
2350
  });
2354
2351
  }
2355
2352
  }
2356
- async function bt(e, n, s, t, i = void 0, r = void 0) {
2353
+ async function bt(e, t, s, n, i = void 0, r = void 0) {
2357
2354
  if (e.tenant) {
2358
- const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${s}?t=${n}&b=${encodeURIComponent(
2359
- t
2355
+ const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${s}?t=${t}&b=${encodeURIComponent(
2356
+ n
2360
2357
  )}`;
2361
2358
  fetch(o, {
2362
2359
  method: "POST"
2363
2360
  }).then((a) => a.json()).then((a) => {
2364
- console.log("_Iterop_updateBusinessTable | _Iterop_businessTableSearchInRows | fetch | onDone", t), i && i(a);
2361
+ i && i(a);
2365
2362
  }).catch((a) => {
2366
2363
  r && r({
2367
2364
  error: a,
@@ -2370,12 +2367,12 @@ async function bt(e, n, s, t, i = void 0, r = void 0) {
2370
2367
  });
2371
2368
  }
2372
2369
  }
2373
- async function Ot(e, n, s, t, i = void 0, r = void 0) {
2370
+ async function Ot(e, t, s, n, i = void 0, r = void 0) {
2374
2371
  e.tenant && b(e, (o) => {
2375
2372
  o.services.find((c) => c.id === "businessprocess")?.url + "";
2376
2373
  const a = e.tenant.toLowerCase();
2377
2374
  fetch(
2378
- `https://api.uixhome.fr/${a}/iterop/runtime/processes/${s}?t=${n}&b=${t}`,
2375
+ `https://api.uixhome.fr/${a}/iterop/runtime/processes/${s}?t=${t}&b=${n}`,
2379
2376
  {
2380
2377
  method: "POST"
2381
2378
  }
@@ -2386,28 +2383,28 @@ async function Ot(e, n, s, t, i = void 0, r = void 0) {
2386
2383
  });
2387
2384
  });
2388
2385
  }
2389
- async function $t(e, n, s, t = void 0, i = void 0) {
2386
+ async function $t(e, t, s, n = void 0, i = void 0) {
2390
2387
  e.tenant && b(e, (r) => {
2391
2388
  r.services.find((a) => a.id === "businessprocess")?.url + "";
2392
2389
  const o = e.tenant.toLowerCase();
2393
2390
  fetch(
2394
- `https://api.uixhome.fr/${o}/iterop/dependencytable/one/${s}/?t=${n}`,
2391
+ `https://api.uixhome.fr/${o}/iterop/dependencytable/one/${s}/?t=${t}`,
2395
2392
  {
2396
2393
  method: "POST"
2397
2394
  }
2398
2395
  ).then((a) => a.json()).then((a) => {
2399
- t && t(a);
2396
+ n && n(a);
2400
2397
  }).catch((a) => {
2401
2398
  i && i(a);
2402
2399
  });
2403
2400
  });
2404
2401
  }
2405
- async function It(e, n, s, t, i, r = void 0, o = void 0) {
2402
+ async function It(e, t, s, n, i, r = void 0, o = void 0) {
2406
2403
  e.tenant && b(e, (a) => {
2407
2404
  a.services.find((d) => d.id === "businessprocess")?.url + "";
2408
2405
  const c = e.tenant.toLowerCase();
2409
2406
  fetch(
2410
- `https://api.uixhome.fr/${c}/iterop/dependencytable/patch/${s}/?t=${n}&cli=${t}&b=${i}`,
2407
+ `https://api.uixhome.fr/${c}/iterop/dependencytable/patch/${s}/?t=${t}&cli=${n}&b=${i}`,
2411
2408
  {
2412
2409
  method: "POST"
2413
2410
  }
@@ -2418,12 +2415,12 @@ async function It(e, n, s, t, i, r = void 0, o = void 0) {
2418
2415
  });
2419
2416
  });
2420
2417
  }
2421
- async function vt(e, n, s, t, i = void 0, r = void 0) {
2418
+ async function vt(e, t, s, n, i = void 0, r = void 0) {
2422
2419
  e.tenant && b(e, (o) => {
2423
2420
  o.services.find((c) => c.id === "businessprocess")?.url + "";
2424
2421
  const a = e.tenant.toLowerCase();
2425
2422
  fetch(
2426
- `https://api.uixhome.fr/${a}/iterop/dependencytable/put/${s}/?t=${n}&b=${t}`,
2423
+ `https://api.uixhome.fr/${a}/iterop/dependencytable/put/${s}/?t=${t}&b=${n}`,
2427
2424
  {
2428
2425
  method: "POST"
2429
2426
  }
@@ -2435,16 +2432,16 @@ async function vt(e, n, s, t, i = void 0, r = void 0) {
2435
2432
  });
2436
2433
  }
2437
2434
  //!SECTION
2438
- async function Nt(e, n, s, t = void 0, i = void 0) {
2435
+ async function Nt(e, t, s, n = void 0, i = void 0) {
2439
2436
  if (e.tenant) {
2440
2437
  const r = e.tenant.toLowerCase();
2441
2438
  fetch(
2442
- `https://api.uixhome.fr/${r}/iterop/list/one/${s}/?t=${n}`,
2439
+ `https://api.uixhome.fr/${r}/iterop/list/one/${s}/?t=${t}`,
2443
2440
  {
2444
2441
  method: "POST"
2445
2442
  }
2446
2443
  ).then((o) => o.json()).then((o) => {
2447
- t && t(o);
2444
+ n && n(o);
2448
2445
  }).catch((o) => {
2449
2446
  i && i(o);
2450
2447
  });
@@ -2452,11 +2449,11 @@ async function Nt(e, n, s, t = void 0, i = void 0) {
2452
2449
  }
2453
2450
  //!SECTION
2454
2451
  function kt(e) {
2455
- const n = "Hello " + e;
2456
- return console.log(n), n;
2452
+ const t = "Hello " + e;
2453
+ return console.log(t), t;
2457
2454
  }
2458
- function At(e, n = void 0, s = void 0) {
2459
- return console.log("credentials", e), new Promise((t) => {
2455
+ function At(e, t = void 0, s = void 0) {
2456
+ return console.log("credentials", e), new Promise((n) => {
2460
2457
  if (e.token === "" && O(e), !e.space || e.space === "") {
2461
2458
  const o = Y();
2462
2459
  console.log("platformeInfo", o);
@@ -2520,7 +2517,7 @@ function At(e, n = void 0, s = void 0) {
2520
2517
  }),
2521
2518
  type: "json",
2522
2519
  onComplete(d) {
2523
- n && n(d);
2520
+ t && t(d);
2524
2521
  },
2525
2522
  onFailure(d) {
2526
2523
  s && s(d);