@beam3_dev/api_module 0.0.331 → 0.0.334

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
@@ -35,19 +35,19 @@ const z = {
35
35
  b3Edit9: "#795548"
36
36
  };
37
37
  async function Ue(e, n = void 0, t = void 0) {
38
- const s = parseInt(e);
38
+ const i = 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/" + i,
41
41
  {
42
42
  method: "GET",
43
43
  headers: {
44
44
  Accept: "application/json"
45
45
  }
46
46
  }
47
- ).then((i) => i.json()).then((i) => {
48
- n && n(i);
49
- }).catch((i) => {
50
- t && t(i), console.error("Erreur : " + i);
47
+ ).then((s) => s.json()).then((s) => {
48
+ n && n(s);
49
+ }).catch((s) => {
50
+ t && t(s), console.error("Erreur : " + s);
51
51
  });
52
52
  }
53
53
  async function xe(e, n = void 0, t = void 0) {
@@ -59,17 +59,17 @@ async function xe(e, n = void 0, t = void 0) {
59
59
  Accept: "application/json"
60
60
  }
61
61
  }
62
- ).then((s) => s.json()).then((s) => {
63
- n && n(s);
64
- }).catch((s) => {
65
- t && t(s), console.error("Erreur : " + s);
62
+ ).then((i) => i.json()).then((i) => {
63
+ n && n(i);
64
+ }).catch((i) => {
65
+ t && t(i), console.error("Erreur : " + i);
66
66
  });
67
67
  }
68
68
  async function Ie(e, n = z) {
69
69
  let t = T.now().year;
70
- const s = e, i = [], r = (a) => {
70
+ const i = e, s = [], r = (a) => {
71
71
  for (let c in a)
72
- i.push({ date: c, comment: a[c] });
72
+ s.push({ date: c, comment: a[c] });
73
73
  };
74
74
  for (let a = t; a <= t + 1; a++)
75
75
  await fetch(
@@ -84,10 +84,10 @@ async function Ie(e, n = z) {
84
84
  r(c);
85
85
  }).catch((c) => console.error("Erreur : " + c));
86
86
  return (() => {
87
- const a = s.length === 0 ? {
87
+ const a = i.length === 0 ? {
88
88
  events: []
89
- } : s;
90
- for (let c of i)
89
+ } : i;
90
+ for (let c of s)
91
91
  a.events.findIndex(
92
92
  (u) => u.start === T.fromISO(c.date).toISODate() && u.name === "Férié : " + c.comment
93
93
  ) === -1 && a.events.push({
@@ -101,13 +101,13 @@ async function Ie(e, n = z) {
101
101
  })();
102
102
  }
103
103
  function H(e, n, t) {
104
- const { credentials: s, myArray: i, chunk: r, fn_to_call: o } = e, a = [];
105
- for (let c = 0; c < i.length; c += r) {
106
- const d = i.slice(c, c + r);
104
+ const { credentials: i, myArray: s, chunk: r, fn_to_call: o } = e, a = [];
105
+ for (let c = 0; c < s.length; c += r) {
106
+ const d = s.slice(c, c + r);
107
107
  a.push(d);
108
108
  }
109
109
  Q(
110
- { credentials: s, chunks: a, initLoop: 0, fn: o },
110
+ { credentials: i, chunks: a, initLoop: 0, fn: o },
111
111
  (c) => {
112
112
  n && n(c);
113
113
  },
@@ -117,12 +117,12 @@ function H(e, n, t) {
117
117
  );
118
118
  }
119
119
  function Q(e, n, t) {
120
- const { credentials: s, chunks: i, initLoop: r, fn: o } = e, a = (c) => {
120
+ const { credentials: i, chunks: s, initLoop: r, fn: o } = e, a = (c) => {
121
121
  o(
122
- s,
123
- i[c],
122
+ i,
123
+ s[c],
124
124
  () => {
125
- c++, c < i.length && a(c);
125
+ c++, c < s.length && a(c);
126
126
  },
127
127
  (d) => {
128
128
  n && n(d);
@@ -135,8 +135,8 @@ function Q(e, n, t) {
135
135
  a(r);
136
136
  }
137
137
  async function Ne(e, n, t = !0) {
138
- const s = e.events.findIndex((i) => i.uuid === n.uuid);
139
- return s === -1 ? e.events.push(n) : t ? e.events[s] = n : e.events.splice(s, 1), e.length > 0 && e.sort((i, r) => i.start - r.start), e;
138
+ const i = e.events.findIndex((s) => s.uuid === n.uuid);
139
+ return i === -1 ? e.events.push(n) : t ? e.events[i] = n : e.events.splice(i, 1), e.length > 0 && e.sort((s, r) => s.start - r.start), e;
140
140
  }
141
141
  function m(e, n) {
142
142
  $(["DS/WAFData/WAFData"], (t) => {
@@ -144,8 +144,8 @@ function m(e, n) {
144
144
  });
145
145
  }
146
146
  function Re(e, n, t) {
147
- $(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
148
- s.draggable(e, {
147
+ $(["DS/DataDragAndDrop/DataDragAndDrop"], (i) => {
148
+ i.draggable(e, {
149
149
  data: n,
150
150
  start: t
151
151
  });
@@ -153,26 +153,26 @@ function Re(e, n, t) {
153
153
  }
154
154
  function Fe(e, n = void 0) {
155
155
  $(["DS/TagNavigatorProxy/TagNavigatorProxy"], (t) => {
156
- let s;
157
- s === void 0 && (s = t.createProxy({
156
+ let i;
157
+ i === void 0 && (i = t.createProxy({
158
158
  widgetId: L.id,
159
159
  filteringMode: "WithFilteringServices"
160
- }), n !== void 0 && s.addEvent("onFilterSubjectsChange", n)), s.setSubjectsTags(e);
160
+ }), n !== void 0 && i.addEvent("onFilterSubjectsChange", n)), i.setSubjectsTags(e);
161
161
  });
162
162
  }
163
- function je(e, n) {
163
+ function ve(e, n) {
164
164
  $(["DS/DataDragAndDrop/DataDragAndDrop"], (t) => {
165
165
  t.droppable(e, {
166
166
  drop: n
167
167
  });
168
168
  });
169
169
  }
170
- async function ke(e, n = void 0, t = void 0) {
170
+ async function je(e, n = void 0, t = void 0) {
171
171
  await $(
172
172
  ["DS/i3DXCompassServices/i3DXCompassServices"],
173
- (s) => {
173
+ (i) => {
174
174
  (!e || e === "") && (e = L.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), n && n(
175
- s.getPlatformServices({
175
+ i.getPlatformServices({
176
176
  platformId: e,
177
177
  onComplete: n,
178
178
  onFailure: t
@@ -184,74 +184,88 @@ async function ke(e, n = void 0, t = void 0) {
184
184
  function Z() {
185
185
  let e = {};
186
186
  return $(["DS/PlatformAPI/PlatformAPI"], (n) => {
187
- const t = n.getTenant(), s = n.getUser(), i = n.getAllApplicationConfigurations(), r = n.getApplicationConfiguration(
187
+ const t = n.getTenant(), i = n.getUser(), s = n.getAllApplicationConfigurations(), r = n.getApplicationConfiguration(
188
188
  "com.3ds.wp.passport.cors"
189
189
  );
190
190
  e = {
191
191
  tenant: t,
192
- user: s,
193
- appsConfiguration: i,
192
+ user: i,
193
+ appsConfiguration: s,
194
194
  appConf: r
195
195
  };
196
196
  }), console.log("%cRETOUR API :", "color:blue", e), e;
197
197
  }
198
- function ve(e, n = void 0, t = void 0) {
198
+ function ke(e, n = void 0, t = void 0) {
199
199
  if (e.tenant) {
200
- const s = `https://${e.tenant}-eu1.iam.3dexperience.3ds.com/api/authenticated/user/me?xrequestedwith=xmlhttprequest`;
201
- m(s, {
202
- onComplete(i) {
203
- const r = typeof i == "string" ? JSON.parse(i) : i;
200
+ const i = `https://${e.tenant}-eu1.iam.3dexperience.3ds.com/api/authenticated/user/me?xrequestedwith=xmlhttprequest`;
201
+ m(i, {
202
+ onComplete(s) {
203
+ const r = typeof s == "string" ? JSON.parse(s) : s;
204
204
  r && "fields" in r ? n && n(r.fields) : t && t("_getMe return not find properties fields");
205
205
  },
206
- onFailure(i) {
207
- t && t("_getMe return error", i);
206
+ onFailure(s) {
207
+ t && t("_getMe return error", s);
208
208
  }
209
209
  });
210
210
  }
211
211
  }
212
212
  function J(e, n = void 0, t = void 0) {
213
213
  if (console.log("_getServiceUrl"), e.tenant) {
214
- const s = `https://${e.tenant.toLowerCase()}-eu1-compass.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?platform=${e.tenant.toUpperCase()}&cors=true&xrequestedwith=xmlhttprequest`;
215
- m(s, {
216
- onComplete(i) {
217
- const r = typeof i == "string" ? JSON.parse(i) : i;
214
+ const i = `https://${e.tenant.toLowerCase()}-eu1-compass.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?platform=${e.tenant.toUpperCase()}&cors=true&xrequestedwith=xmlhttprequest`;
215
+ m(i, {
216
+ onComplete(s) {
217
+ const r = typeof s == "string" ? JSON.parse(s) : s;
218
218
  if (r && "platforms" in r) {
219
219
  const o = r.platforms.find((a) => a.id === e.tenant.toUpperCase());
220
220
  n && o ? n(o) : t && t("_getServiceUrl return listServiceUrl = undefined");
221
221
  } else
222
222
  t && t("_getServiceUrl return oResponse = undefined");
223
223
  },
224
- onFailure(i) {
225
- t && t(i);
224
+ onFailure(s) {
225
+ t && t(s);
226
226
  }
227
227
  });
228
228
  }
229
229
  }
230
230
  function De(e, n = void 0, t = void 0) {
231
231
  if (e.tenant) {
232
- const s = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
233
- m(s, {
234
- onComplete(i) {
235
- const r = JSON.parse(i);
232
+ const i = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
233
+ m(i, {
234
+ onComplete(s) {
235
+ const r = JSON.parse(s);
236
236
  if (console.log("serviceId=3dpassport", r), Array.isArray(r) && r.length > 0) {
237
237
  const o = `${r[0].services[0].url}`;
238
238
  n && n(o);
239
239
  }
240
240
  },
241
- onFailure(i) {
242
- t && t(i);
241
+ onFailure(s) {
242
+ t && t(s);
243
243
  }
244
244
  });
245
245
  }
246
246
  }
247
- function Ae(e, n, t) {
248
- const s = {
247
+ function Ae(e, n = void 0, t = void 0) {
248
+ if (e.tenant) {
249
+ const i = `https://eu1-registry.3dexperience.3ds.com/api/v1/platform/instance?id=${e.tenant.toLowerCase()}`;
250
+ m(i, {
251
+ type: "json",
252
+ onComplete(s) {
253
+ n && n(s);
254
+ },
255
+ onFailure(s) {
256
+ t && t(s);
257
+ }
258
+ });
259
+ }
260
+ }
261
+ function Pe(e, n, t) {
262
+ const i = {
249
263
  base: `${e.space}`,
250
264
  uri: "/resources/AppsMngt/api/custom/applications",
251
265
  option: `?filter=${e.tenant}`
252
266
  // facultatif
253
- }, i = `${s.base}${s.uri}${s.option}`;
254
- m(i, {
267
+ }, s = `${i.base}${i.uri}${i.option}`;
268
+ m(s, {
255
269
  method: "GET",
256
270
  headers: {
257
271
  "Content-Type": "application/json",
@@ -270,29 +284,29 @@ function Ae(e, n, t) {
270
284
  }
271
285
  });
272
286
  }
273
- function Pe(e, n = void 0, t = void 0) {
274
- let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
275
- m(s, {
276
- onComplete(i, r, o) {
277
- const a = JSON.parse(i);
287
+ function Le(e, n = void 0, t = void 0) {
288
+ let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
289
+ m(i, {
290
+ onComplete(s, r, o) {
291
+ const a = JSON.parse(s);
278
292
  console.log("_AppMngt_get_users => ", a), n && n(a);
279
293
  },
280
- onFailure(i, r) {
281
- const o = i;
294
+ onFailure(s, r) {
295
+ const o = s;
282
296
  o.msg = r.errormsg, o.errCode = r.errorcode, t && t(o);
283
297
  }
284
298
  });
285
299
  }
286
- function Le(e, n, t = void 0, s = void 0) {
287
- let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${n}`;
288
- m(i, {
300
+ function Je(e, n, t = void 0, i = void 0) {
301
+ let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${n}`;
302
+ m(s, {
289
303
  onComplete(r, o, a) {
290
304
  const c = JSON.parse(r);
291
305
  t && t(c);
292
306
  },
293
307
  onFailure(r, o) {
294
308
  const a = r;
295
- a.msg = o.errormsg, a.errCode = o.errorcode, s && s(a);
309
+ a.msg = o.errormsg, a.errCode = o.errorcode, i && i(a);
296
310
  }
297
311
  });
298
312
  }
@@ -300,8 +314,8 @@ const I = {
300
314
  "Content-Type": "application/json",
301
315
  Accept: "application/json,text/javascript,*/*"
302
316
  };
303
- function Je(e, n, t = void 0, s = void 0) {
304
- const { space: i, currentUser: r } = e, a = `${i}${{
317
+ function Me(e, n, t = void 0, i = void 0) {
318
+ const { space: s, currentUser: r } = e, a = `${s}${{
305
319
  URIUGr: "/3drdfpersist/resources/v1/usersgroup"
306
320
  }.URIUGr}`, c = {
307
321
  groups: [
@@ -325,12 +339,12 @@ function Je(e, n, t = void 0, s = void 0) {
325
339
  onFailure(d, u) {
326
340
  console.log(d);
327
341
  const p = d;
328
- p.msg = u.errormsg, p.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", p), s && s(p);
342
+ p.msg = u.errormsg, p.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", p), i && i(p);
329
343
  }
330
344
  });
331
345
  }
332
- function Me(e, n, t = void 0, s = void 0) {
333
- 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}`;
346
+ function Ge(e, n, t = void 0, i = void 0) {
347
+ const { space: s, tenant: r } = e, o = s, a = `/3drdfpersist/v1/resources/${n}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${o}${a}${c}`;
334
348
  m(d, {
335
349
  opts: {
336
350
  method: "GET",
@@ -344,12 +358,12 @@ function Me(e, n, t = void 0, s = void 0) {
344
358
  },
345
359
  onFailure(f, l) {
346
360
  const g = f;
347
- g.msg = l.errormsg, g.errCode = l.errorcode, s && s(g);
361
+ g.msg = l.errormsg, g.errCode = l.errorcode, i && i(g);
348
362
  }
349
363
  });
350
364
  }
351
365
  function ee(e, n = void 0, t = void 0) {
352
- const { _usersgroup: s, tenant: i } = e, r = s, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, c = {
366
+ const { _usersgroup: i, tenant: s } = e, r = i, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${s}`, c = {
353
367
  method: "GET",
354
368
  Accept: "application/json,*/*,test/javascript"
355
369
  }, d = `${r}${o}${a}`;
@@ -364,10 +378,10 @@ function ee(e, n = void 0, t = void 0) {
364
378
  }
365
379
  });
366
380
  }
367
- function Ge(e, n = void 0, t = void 0) {
368
- const { _usersgroup: s, currentUser: i, numMax: r } = e;
381
+ function Be(e, n = void 0, t = void 0) {
382
+ const { _usersgroup: i, currentUser: s, numMax: r } = e;
369
383
  r || (r = 50);
370
- const o = "/3drdfpersist/resources/v1/usersgroup", a = "?select=uri,title,owner,members", c = `&top=${r}`, d = `${s}${o}${a}${c}`, p = { method: "GET", headers: {
384
+ const o = "/3drdfpersist/resources/v1/usersgroup", a = "?select=uri,title,owner,members", c = `&top=${r}`, d = `${i}${o}${a}${c}`, p = { method: "GET", headers: {
371
385
  "Content-Type": "application/json",
372
386
  Accept: "application/json,text/javascript,*/*"
373
387
  } };
@@ -376,8 +390,8 @@ function Ge(e, n = void 0, t = void 0) {
376
390
  opts: p,
377
391
  onComplete(f) {
378
392
  const l = JSON.parse(f), g = {}, h = l.groups.filter((y) => y.uri.startsWith("uuid:"));
379
- if (i && Object.keys(i).length > 0) {
380
- const y = h.filter((_) => _.owner === i.email), S = h.filter((_) => _.members.includes(i.email)), w = y.concat(S);
393
+ if (s && Object.keys(s).length > 0) {
394
+ const y = h.filter((_) => _.owner === s.email), S = h.filter((_) => _.members.includes(s.email)), w = y.concat(S);
381
395
  g.iam = w, g.UG = h, g.iamMember = S, ee(
382
396
  e,
383
397
  (_) => {
@@ -407,19 +421,19 @@ function Ge(e, n = void 0, t = void 0) {
407
421
  }
408
422
  }
409
423
  function Ee(e, n, t) {
410
- const { _usersgroup: s, list_uris: i } = e;
411
- if (!i || i.length === 0) {
424
+ const { _usersgroup: i, list_uris: s } = e;
425
+ if (!s || s.length === 0) {
412
426
  t({ msg: "getUserGroupsByURIList: lists_uri is empty or undefined" });
413
427
  return;
414
428
  }
415
429
  const r = {
416
- baseUrl: s,
430
+ baseUrl: i,
417
431
  uri: "/3drdfpersist/resources/v1/usersgroup/groups",
418
432
  opt: "?select=uri,title,owner,members"
419
433
  }, o = `${r.baseUrl}${r.uri}${r.opt}`, a = {
420
434
  method: "POST",
421
435
  headers: I,
422
- data: JSON.stringify({ groups: i })
436
+ data: JSON.stringify({ groups: s })
423
437
  };
424
438
  try {
425
439
  m(o, {
@@ -451,22 +465,22 @@ function Ee(e, n, t) {
451
465
  t && t(d);
452
466
  }
453
467
  }
454
- function Be(e, n, t) {
455
- const { _usersgroup: s, list_emails: i } = e;
456
- if (!i || i.length === 0) {
468
+ function Ke(e, n, t) {
469
+ const { _usersgroup: i, list_emails: s } = e;
470
+ if (!s || s.length === 0) {
457
471
  t({
458
472
  msg: "getUserGroupsByEmailList: lists_email is empty or undefined"
459
473
  });
460
474
  return;
461
475
  }
462
476
  const r = {
463
- baseUrl: s,
477
+ baseUrl: i,
464
478
  uri: "/3drdfpersist/resources/v1/usersgroup/users/locate",
465
479
  opt: "?person_ident=email"
466
480
  }, o = `${r.baseUrl}${r.uri}${r.opt}`, a = {
467
481
  method: "POST",
468
482
  headers: I,
469
- data: JSON.stringify({ users: i })
483
+ data: JSON.stringify({ users: s })
470
484
  };
471
485
  try {
472
486
  m(o, {
@@ -504,13 +518,13 @@ function Be(e, n, t) {
504
518
  t && t(d);
505
519
  }
506
520
  }
507
- function Ke(e, n) {
508
- const { space: t } = e, i = `${t}/3drdfpersist/resources/v1/usersgroup/${n}`;
509
- m(i, {
521
+ function qe(e, n) {
522
+ const { space: t } = e, s = `${t}/3drdfpersist/resources/v1/usersgroup/${n}`;
523
+ m(s, {
510
524
  method: "DELETE"
511
525
  });
512
526
  }
513
- function qe(e, n, t, s = void 0, i = void 0) {
527
+ function Xe(e, n, t, i = void 0, s = void 0) {
514
528
  const { space: r, tenant: o } = e, a = {
515
529
  URITI: "/3drdfpersist/resources/v1/template-instances",
516
530
  URIUGr: "/3drdfpersist/resources/v1/usersgroup",
@@ -526,14 +540,14 @@ function qe(e, n, t, s = void 0, i = void 0) {
526
540
  data: u,
527
541
  type: "json",
528
542
  onComplete(p) {
529
- s && s(p);
543
+ i && i(p);
530
544
  },
531
545
  onFailure(p) {
532
- i && i(p);
546
+ s && s(p);
533
547
  }
534
548
  });
535
549
  }
536
- function Xe(e, n, t, s = void 0, i = void 0) {
550
+ function We(e, n, t, i = void 0, s = void 0) {
537
551
  const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${n}/sharing`;
538
552
  m(a, {
539
553
  method: "PATCH",
@@ -541,15 +555,15 @@ function Xe(e, n, t, s = void 0, i = void 0) {
541
555
  data: JSON.stringify(t),
542
556
  type: "json",
543
557
  onComplete(d) {
544
- s && s(d);
558
+ i && i(d);
545
559
  },
546
560
  onFailure(d) {
547
- i && i(d);
561
+ s && s(d);
548
562
  }
549
563
  });
550
564
  }
551
- function We(e, n, t = void 0, s = void 0) {
552
- const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${n}/sharing`;
565
+ function Ve(e, n, t = void 0, i = void 0) {
566
+ const { space: s } = e, o = `${s}/3drdfpersist/resources/v1/usersgroup/${n}/sharing`;
553
567
  m(o, {
554
568
  opts: {
555
569
  method: "GET",
@@ -562,19 +576,19 @@ function We(e, n, t = void 0, s = void 0) {
562
576
  t && t(JSON.parse(d));
563
577
  },
564
578
  onFailure(d) {
565
- s && s(d);
579
+ i && i(d);
566
580
  }
567
581
  });
568
582
  }
569
583
  async function te(e, n, t) {
570
584
  if (e.space) {
571
- const s = `${e.space}/resources/v1/application/CSRF`;
572
- m(s, {
573
- onComplete(i) {
574
- i = JSON.parse(i), n && n(i.csrf);
585
+ const i = `${e.space}/resources/v1/application/CSRF`;
586
+ m(i, {
587
+ onComplete(s) {
588
+ s = JSON.parse(s), n && n(s.csrf);
575
589
  },
576
- onFailure(i, r, o) {
577
- t && t({ error: i, headers: r, xhr: o });
590
+ onFailure(s, r, o) {
591
+ t && t({ error: s, headers: r, xhr: o });
578
592
  }
579
593
  });
580
594
  }
@@ -583,22 +597,22 @@ var x = {};
583
597
  function ne(e, n) {
584
598
  return Object.prototype.hasOwnProperty.call(e, n);
585
599
  }
586
- var se = function(e, n, t, s) {
600
+ var se = function(e, n, t, i) {
587
601
  n = n || "&", t = t || "=";
588
- var i = {};
602
+ var s = {};
589
603
  if (typeof e != "string" || e.length === 0)
590
- return i;
604
+ return s;
591
605
  var r = /\+/g;
592
606
  e = e.split(n);
593
607
  var o = 1e3;
594
- s && typeof s.maxKeys == "number" && (o = s.maxKeys);
608
+ i && typeof i.maxKeys == "number" && (o = i.maxKeys);
595
609
  var a = e.length;
596
610
  o > 0 && a > o && (a = o);
597
611
  for (var c = 0; c < a; ++c) {
598
612
  var d = e[c].replace(r, "%20"), u = d.indexOf(t), p, f, l, g;
599
- u >= 0 ? (p = d.substr(0, u), f = d.substr(u + 1)) : (p = d, f = ""), l = decodeURIComponent(p), g = decodeURIComponent(f), ne(i, l) ? Array.isArray(i[l]) ? i[l].push(g) : i[l] = [i[l], g] : i[l] = g;
613
+ u >= 0 ? (p = d.substr(0, u), f = d.substr(u + 1)) : (p = d, f = ""), l = decodeURIComponent(p), g = decodeURIComponent(f), ne(s, l) ? Array.isArray(s[l]) ? s[l].push(g) : s[l] = [s[l], g] : s[l] = g;
600
614
  }
601
- return i;
615
+ return s;
602
616
  }, U = function(e) {
603
617
  switch (typeof e) {
604
618
  case "string":
@@ -610,40 +624,40 @@ var se = function(e, n, t, s) {
610
624
  default:
611
625
  return "";
612
626
  }
613
- }, ie = function(e, n, t, s) {
614
- return n = n || "&", t = t || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
615
- var r = encodeURIComponent(U(i)) + t;
616
- return Array.isArray(e[i]) ? e[i].map(function(o) {
627
+ }, ie = function(e, n, t, i) {
628
+ return n = n || "&", t = t || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(s) {
629
+ var r = encodeURIComponent(U(s)) + t;
630
+ return Array.isArray(e[s]) ? e[s].map(function(o) {
617
631
  return r + encodeURIComponent(U(o));
618
- }).join(n) : r + encodeURIComponent(U(e[i]));
619
- }).filter(Boolean).join(n) : s ? encodeURIComponent(U(s)) + t + encodeURIComponent(U(e)) : "";
632
+ }).join(n) : r + encodeURIComponent(U(e[s]));
633
+ }).filter(Boolean).join(n) : i ? encodeURIComponent(U(i)) + t + encodeURIComponent(U(e)) : "";
620
634
  };
621
635
  x.decode = x.parse = se;
622
636
  x.encode = x.stringify = ie;
623
- async function M(e, n = void 0, t = void 0, s = void 0) {
624
- const i = e.space;
637
+ async function M(e, n = void 0, t = void 0, i = void 0) {
638
+ const s = e.space;
625
639
  if (n === void 0) {
626
640
  console.log("Le paramètre docid est obligatoire");
627
641
  return;
628
642
  }
629
- const r = i + `/resources/v1/modeler/documents/${n}`;
643
+ const r = s + `/resources/v1/modeler/documents/${n}`;
630
644
  m(r, {
631
645
  onComplete(o, a, c) {
632
646
  const d = JSON.parse(o);
633
647
  t && t(d);
634
648
  },
635
649
  onFailure(o) {
636
- s && s(o);
650
+ i && i(o);
637
651
  }
638
652
  });
639
653
  }
640
- async function Ve(e, n = void 0, t = void 0, s = void 0) {
641
- const i = e.space;
654
+ async function Ye(e, n = void 0, t = void 0, i = void 0) {
655
+ const s = e.space;
642
656
  if (n === void 0) {
643
657
  console.log("Le paramètre docids est obligatoire");
644
658
  return;
645
659
  }
646
- let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = x.stringify({
660
+ let r = `${s}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = x.stringify({
647
661
  $ids: n.toString().replace('"', "").replace("[", "").replace("]", "")
648
662
  });
649
663
  m(r, {
@@ -657,44 +671,44 @@ async function Ve(e, n = void 0, t = void 0, s = void 0) {
657
671
  t && t(u);
658
672
  },
659
673
  onFailure(a) {
660
- s && s(a);
674
+ i && i(a);
661
675
  }
662
676
  });
663
677
  }
664
678
  function R(e, n = void 0, t = void 0) {
665
679
  if (e.objID && e.objID !== "") {
666
- let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
667
- m(s, {
668
- onComplete(i, r, o) {
669
- const a = JSON.parse(i);
680
+ let i = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
681
+ m(i, {
682
+ onComplete(s, r, o) {
683
+ const a = JSON.parse(s);
670
684
  e.success = !0, e.token = a?.csrf?.value, e.datas = a?.data[0], n && n(e);
671
685
  },
672
- onFailure(i) {
673
- t && t(i);
686
+ onFailure(s) {
687
+ t && t(s);
674
688
  }
675
689
  });
676
690
  } else
677
691
  O(
678
692
  e,
679
- (s) => {
680
- console.log("_3DSpace_get_csrf / _3DSpace_csrf", s), e.token = s, n && n(e);
693
+ (i) => {
694
+ console.log("_3DSpace_get_csrf / _3DSpace_csrf", i), e.token = i, n && n(e);
681
695
  },
682
- (s) => {
683
- t && t(s);
696
+ (i) => {
697
+ t && t(i);
684
698
  }
685
699
  );
686
700
  }
687
701
  function O(e, n = void 0, t = void 0) {
688
702
  if (e.space) {
689
- const s = e.space + "/resources/v1/application/CSRF";
690
- m(s, {
691
- onComplete(i, r, o) {
692
- const a = JSON.parse(i);
703
+ const i = e.space + "/resources/v1/application/CSRF";
704
+ m(i, {
705
+ onComplete(s, r, o) {
706
+ const a = JSON.parse(s);
693
707
  n && n(a.csrf.value);
694
708
  },
695
- onFailure(i, r, o) {
709
+ onFailure(s, r, o) {
696
710
  t && t({
697
- response: i,
711
+ response: s,
698
712
  headers: r,
699
713
  xhr: o
700
714
  });
@@ -703,12 +717,12 @@ function O(e, n = void 0, t = void 0) {
703
717
  } else
704
718
  t && t("ERROR : url du 3DSpace non défini.");
705
719
  }
706
- function k(e, n = void 0, t = void 0) {
707
- let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
720
+ function j(e, n = void 0, t = void 0) {
721
+ let i = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
708
722
  R(
709
723
  e,
710
- (i) => {
711
- m(s, {
724
+ (s) => {
725
+ m(i, {
712
726
  method: "PUT",
713
727
  headers: {
714
728
  ENO_CSRF_TOKEN: e.token
@@ -722,12 +736,12 @@ function k(e, n = void 0, t = void 0) {
722
736
  }
723
737
  });
724
738
  },
725
- (i) => {
726
- console.warn("_3DSpace_get_ticket / error => ", i), t && t(i);
739
+ (s) => {
740
+ console.warn("_3DSpace_get_ticket / error => ", s), t && t(s);
727
741
  }
728
742
  );
729
743
  }
730
- function Ye(e, n, t = void 0, s = void 0, i = void 0) {
744
+ function ze(e, n, t = void 0, i = void 0, s = void 0) {
731
745
  const r = `${e.space}/resources/v1/modeler/documents/${n}/files/DownloadTicket`;
732
746
  t || (t = e.token), m(r, {
733
747
  method: "PUT",
@@ -739,23 +753,23 @@ function Ye(e, n, t = void 0, s = void 0, i = void 0) {
739
753
  if (console.log("☠️ info => ", a), a.success === !0)
740
754
  try {
741
755
  const c = a.data[0].dataelements.ticketURL;
742
- s && s(c);
743
- } catch (c) {
744
756
  i && i(c);
757
+ } catch (c) {
758
+ s && s(c);
745
759
  }
746
760
  },
747
761
  onFailure(o) {
748
- i && i(o);
762
+ s && s(o);
749
763
  }
750
764
  });
751
765
  }
752
- function G(e, n, t, s, i, r = void 0, o = void 0) {
766
+ function G(e, n, t, i, s, r = void 0, o = void 0) {
753
767
  const a = () => oe(
754
768
  e,
755
769
  n,
756
770
  t,
757
- s,
758
771
  i,
772
+ s,
759
773
  e.token,
760
774
  r,
761
775
  o
@@ -771,7 +785,7 @@ function G(e, n, t, s, i, r = void 0, o = void 0) {
771
785
  }
772
786
  );
773
787
  }
774
- function oe(e, n, t, s, i, r, o = void 0, a = void 0) {
788
+ function oe(e, n, t, i, s, r, o = void 0, a = void 0) {
775
789
  const c = e.space + `/resources/v1/modeler/documents/files/CheckinTicket?tenant=${e.tenant.toUpperCase()}&e6w-lang=fr&e6w-timezone=-60&xrequestedwith=xmlhttprequest`;
776
790
  m(c, {
777
791
  method: "PUT",
@@ -789,9 +803,9 @@ function oe(e, n, t, s, i, r, o = void 0, a = void 0) {
789
803
  onComplete(d, u, p) {
790
804
  const f = d.csrf, l = d.data[0].dataelements, g = new FormData();
791
805
  let h;
792
- s instanceof Blob ? h = s : h = new Blob([s], {
806
+ i instanceof Blob ? h = i : h = new Blob([i], {
793
807
  type: "text/plain"
794
- }), g.append(l.ticketparamname, l.ticket), g.append("file_0", h, i);
808
+ }), g.append(l.ticketparamname, l.ticket), g.append("file_0", h, s);
795
809
  const y = {};
796
810
  y.method = "POST", y.data = g, y.onComplete = function(S) {
797
811
  let w = {
@@ -807,7 +821,7 @@ function oe(e, n, t, s, i, r, o = void 0, a = void 0) {
807
821
  files: [
808
822
  {
809
823
  dataelements: {
810
- title: i,
824
+ title: s,
811
825
  receipt: S
812
826
  },
813
827
  updateAction: "REVISE"
@@ -837,11 +851,11 @@ function oe(e, n, t, s, i, r, o = void 0, a = void 0) {
837
851
  }
838
852
  });
839
853
  }
840
- async function ze(e, n, t = void 0, s = void 0) {
854
+ async function He(e, n, t = void 0, i = void 0) {
841
855
  e.space, e.token, e.ctx;
842
- const i = e?.description, r = e?.title;
856
+ const s = e?.description, r = e?.title;
843
857
  if (!n) {
844
- console.warn("Error: docId undefined"), s && s("Error: docId undefined");
858
+ console.warn("Error: docId undefined"), i && i("Error: docId undefined");
845
859
  return;
846
860
  }
847
861
  let o = `${e.space}/resources/v1/modeler/documents/${n}`;
@@ -849,7 +863,7 @@ async function ze(e, n, t = void 0, s = void 0) {
849
863
  data: [
850
864
  {
851
865
  dataelements: {
852
- description: i,
866
+ description: s,
853
867
  title: r
854
868
  }
855
869
  }
@@ -866,18 +880,18 @@ async function ze(e, n, t = void 0, s = void 0) {
866
880
  t && t(c);
867
881
  },
868
882
  onFailure(c) {
869
- s && s(c);
883
+ i && i(c);
870
884
  }
871
885
  });
872
886
  }
873
- async function He(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0) {
887
+ async function Qe(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0) {
874
888
  let { tenant: o, cs_name: a } = e;
875
889
  if (!o && !a) {
876
- i && i("Credentials undefined");
890
+ s && s("Credentials undefined");
877
891
  return;
878
892
  }
879
893
  if (!n && !t) {
880
- i && i("Définition du fichier undefined");
894
+ s && s("Définition du fichier undefined");
881
895
  return;
882
896
  }
883
897
  const c = T.now().ts;
@@ -902,15 +916,15 @@ async function He(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0)
902
916
  try {
903
917
  if (l = JSON.parse(l), l?.ticket) {
904
918
  const { ticket: y, actionurl: S, jobticket: w } = l;
905
- E(
919
+ B(
906
920
  { dataelements: { ticket: y, ticketURL: S } },
907
921
  t,
908
922
  n,
909
923
  (_) => {
910
- const j = new DOMParser().parseFromString(
924
+ const v = new DOMParser().parseFromString(
911
925
  _,
912
926
  "text/html"
913
- ).body.firstChild.querySelector("input").getAttributeNode("value").value, v = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(a)}/contents?receipt=${encodeURIComponent(j)}`;
927
+ ).body.firstChild.querySelector("input").getAttributeNode("value").value, k = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(a)}/contents?receipt=${encodeURIComponent(v)}`;
914
928
  let W = /(?:\.([^.]+))?$/.exec(n)[1];
915
929
  const D = JSON.stringify({
916
930
  actions: [],
@@ -928,7 +942,7 @@ async function He(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0)
928
942
  },
929
943
  collabspace: a
930
944
  });
931
- m(v, {
945
+ m(k, {
932
946
  method: "POST",
933
947
  headers: {
934
948
  Accept: "application/json",
@@ -938,18 +952,18 @@ async function He(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0)
938
952
  data: D,
939
953
  type: "json",
940
954
  onComplete(N, Ce, Oe) {
941
- s && s(N);
955
+ i && i(N);
942
956
  },
943
957
  onFailure(N) {
944
958
  console.warn(
945
959
  "_3DSpace_Upload_Doc | pushFileInFcs | onFailure",
946
- { url: v, bodyRequest: D, err: N }
947
- ), i && i(N);
960
+ { url: k, bodyRequest: D, err: N }
961
+ ), s && s(N);
948
962
  }
949
963
  });
950
964
  },
951
965
  (_) => {
952
- console.warn("pushFileInFcs", _), i && i(_);
966
+ console.warn("pushFileInFcs", _), s && s(_);
953
967
  },
954
968
  (_) => {
955
969
  r && r({ fileName: n, progress: _ });
@@ -957,24 +971,24 @@ async function He(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0)
957
971
  );
958
972
  }
959
973
  } catch (y) {
960
- i && i(y);
974
+ s && s(y);
961
975
  }
962
976
  },
963
977
  onFailure(l) {
964
- console.warn("_3DSpace_Upload_Doc | onFailure"), i && i(l);
978
+ console.warn("_3DSpace_Upload_Doc | onFailure"), s && s(l);
965
979
  }
966
980
  });
967
981
  } catch {
968
- i && i();
982
+ s && s();
969
983
  }
970
984
  },
971
985
  onFailure(u) {
972
- i && i(u);
986
+ s && s(u);
973
987
  }
974
988
  }
975
989
  );
976
990
  }
977
- async function Qe(e, n, t, s = void 0, i = void 0) {
991
+ async function Ze(e, n, t, i = void 0, s = void 0) {
978
992
  e.space, e.token, e.ctx, M(
979
993
  e,
980
994
  n,
@@ -987,24 +1001,24 @@ async function Qe(e, n, t, s = void 0, i = void 0) {
987
1001
  t,
988
1002
  a,
989
1003
  (c) => {
990
- s && s(c);
1004
+ i && i(c);
991
1005
  },
992
1006
  (c) => {
993
- i && i(c);
1007
+ s && s(c);
994
1008
  }
995
1009
  );
996
1010
  },
997
1011
  (r) => {
998
- i && i(r);
1012
+ s && s(r);
999
1013
  }
1000
1014
  );
1001
1015
  }
1002
- async function Ze(e, n, t, s, i = void 0, r = void 0) {
1016
+ async function et(e, n, t, i, s = void 0, r = void 0) {
1003
1017
  ae(
1004
1018
  e,
1005
1019
  (o) => {
1006
1020
  o?.items >= 1 && o.data.forEach((a) => {
1007
- E(
1021
+ B(
1008
1022
  a,
1009
1023
  n,
1010
1024
  t,
@@ -1013,9 +1027,9 @@ async function Ze(e, n, t, s, i = void 0, r = void 0) {
1013
1027
  e,
1014
1028
  c,
1015
1029
  t,
1016
- s,
1030
+ i,
1017
1031
  (d) => {
1018
- d?.data.length ? i && i(d) : r && r({
1032
+ d?.data.length ? s && s(d) : r && r({
1019
1033
  success: !1,
1020
1034
  msg: "Erreur lors de la mise en ralation entre la document et le fichier"
1021
1035
  });
@@ -1032,8 +1046,8 @@ async function Ze(e, n, t, s, i = void 0, r = void 0) {
1032
1046
  }
1033
1047
  function ae(e, n = void 0, t = void 0) {
1034
1048
  if (e?.space && e.token && e.ctx) {
1035
- let s = `${e.space}/resources/v1/modeler/documents/files/CheckinTicket`;
1036
- m(s, {
1049
+ let i = `${e.space}/resources/v1/modeler/documents/files/CheckinTicket`;
1050
+ m(i, {
1037
1051
  method: "PUT",
1038
1052
  headers: {
1039
1053
  ENO_CSRF_TOKEN: e.token,
@@ -1041,21 +1055,21 @@ function ae(e, n = void 0, t = void 0) {
1041
1055
  "Content-Type": "application/json",
1042
1056
  SecurityContext: e.ctx
1043
1057
  },
1044
- onComplete(i, r, o) {
1058
+ onComplete(s, r, o) {
1045
1059
  try {
1046
- i = JSON.parse(i);
1060
+ s = JSON.parse(s);
1047
1061
  } catch {
1048
1062
  }
1049
- n && n(i);
1063
+ n && n(s);
1050
1064
  },
1051
- onFailure(i) {
1052
- t && t(i);
1065
+ onFailure(s) {
1066
+ t && t(s);
1053
1067
  }
1054
1068
  });
1055
1069
  } else
1056
1070
  console.log("Error de credentials", e);
1057
1071
  }
1058
- function E(e, n, t, s = void 0, i = void 0, r = void 0) {
1072
+ function B(e, n, t, i = void 0, s = void 0, r = void 0) {
1059
1073
  console.log("pushFileInFcs", { fcs__jobTicket: e, fileData: n, fileName: t });
1060
1074
  let o = new FormData();
1061
1075
  n instanceof Blob || (n = new Blob([n], {
@@ -1069,12 +1083,12 @@ function E(e, n, t, s = void 0, i = void 0, r = void 0) {
1069
1083
  r && r(u);
1070
1084
  }
1071
1085
  }, c.onload = function() {
1072
- c.status === 200 ? s && s(c.responseText.replace(/[\n\r]/g, "")) : i && i(c.statusText);
1086
+ c.status === 200 ? i && i(c.responseText.replace(/[\n\r]/g, "")) : s && s(c.statusText);
1073
1087
  }, c.onerror = function() {
1074
- i && i(c.statusText);
1088
+ s && s(c.statusText);
1075
1089
  }, c.send(o);
1076
1090
  }
1077
- function re(e, n, t, s = void 0, i = void 0, r = void 0) {
1091
+ function re(e, n, t, i = void 0, s = void 0, r = void 0) {
1078
1092
  console.log("relatedDocAndFile", { credentials: e, receipt: n, filename: t });
1079
1093
  const o = (d) => d.indexOf(".") === -1 ? d : d.split(".").slice(0, -1).join(".");
1080
1094
  let a = "temp_" + T.now().ts, c = e.space + "/resources/v1/modeler/documents/?e6w-lang=fr&e6w-timezone=-120&xrequestedwith=xmlhttprequest";
@@ -1092,7 +1106,7 @@ function re(e, n, t, s = void 0, i = void 0, r = void 0) {
1092
1106
  type: "Document",
1093
1107
  dataelements: {
1094
1108
  title: o(t),
1095
- description: s
1109
+ description: i
1096
1110
  },
1097
1111
  relateddata: {
1098
1112
  files: [
@@ -1114,14 +1128,14 @@ function re(e, n, t, s = void 0, i = void 0, r = void 0) {
1114
1128
  d = JSON.parse(d);
1115
1129
  } catch {
1116
1130
  }
1117
- i && i(d);
1131
+ s && s(d);
1118
1132
  },
1119
1133
  onFailure(d) {
1120
1134
  r && r(d);
1121
1135
  }
1122
1136
  });
1123
1137
  }
1124
- function F(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0, o = !1) {
1138
+ function F(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0, o = !1) {
1125
1139
  const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
1126
1140
  m(a, {
1127
1141
  method: "GET",
@@ -1139,8 +1153,8 @@ function F(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0, o = !1
1139
1153
  )
1140
1154
  ), t && (Array.isArray(t) ? t.forEach((y) => {
1141
1155
  l || h.forEach((S) => {
1142
- if (y === S.role.name && s === S.organization.title)
1143
- l = y, f = s;
1156
+ if (y === S.role.name && i === S.organization.title)
1157
+ l = y, f = i;
1144
1158
  else if (y === S.role.name) {
1145
1159
  let w = h.filter(
1146
1160
  (_) => _.role.name === y
@@ -1149,8 +1163,8 @@ function F(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0, o = !1
1149
1163
  }
1150
1164
  });
1151
1165
  }) : h.forEach((y) => {
1152
- if (t === y.role.name && s === y.organization.title)
1153
- l = t, f = s;
1166
+ if (t === y.role.name && i === y.organization.title)
1167
+ l = t, f = i;
1154
1168
  else if (t === y.role.name) {
1155
1169
  let S = h.filter(
1156
1170
  (w) => w.role.name === t
@@ -1160,7 +1174,7 @@ function F(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0, o = !1
1160
1174
  }));
1161
1175
  }
1162
1176
  }
1163
- p && f && l ? (u = l + "." + f + "." + p, i(u)) : d.preferredcredentials && o ? (u = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(u)) : r && (u = l + "." + f + "." + p, r(u));
1177
+ p && f && l ? (u = l + "." + f + "." + p, s(u)) : d.preferredcredentials && o ? (u = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, s(u)) : r && (u = l + "." + f + "." + p, r(u));
1164
1178
  },
1165
1179
  onFailure(c, d) {
1166
1180
  console.warn("Erreur de récupération du contexte de sécurité. => ", {
@@ -1170,7 +1184,7 @@ function F(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0, o = !1
1170
1184
  }
1171
1185
  });
1172
1186
  }
1173
- async function B(e, n = void 0, t = void 0) {
1187
+ async function E(e, n = void 0, t = void 0) {
1174
1188
  return (!e.objID || e.objID === "") && (console.warn(
1175
1189
  "_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
1176
1190
  ), t && t(
@@ -1179,14 +1193,14 @@ async function B(e, n = void 0, t = void 0) {
1179
1193
  "_3DSpace_download_doc() / Le paramètre space est obligatoire"
1180
1194
  ), t && t("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) && te(
1181
1195
  e,
1182
- (s) => {
1183
- e.token = s;
1196
+ (i) => {
1197
+ e.token = i;
1184
1198
  },
1185
- (s) => {
1186
- console.log("☠️ error => ", s);
1199
+ (i) => {
1200
+ console.log("☠️ error => ", i);
1187
1201
  }
1188
- ), new Promise((s, i) => {
1189
- k(
1202
+ ), new Promise((i, s) => {
1203
+ j(
1190
1204
  e,
1191
1205
  (r) => {
1192
1206
  e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
@@ -1201,14 +1215,14 @@ async function B(e, n = void 0, t = void 0) {
1201
1215
  } catch {
1202
1216
  a = o;
1203
1217
  }
1204
- n && typeof n == "function" && n(a), s(a);
1218
+ n && typeof n == "function" && n(a), i(a);
1205
1219
  },
1206
1220
  onFailure(o, a, c) {
1207
1221
  t && (console.log("error http", o), t({
1208
1222
  msg: JSON.parse(o),
1209
1223
  headers: a,
1210
1224
  xhr: c
1211
- }), i({
1225
+ }), s({
1212
1226
  msg: JSON.parse(o),
1213
1227
  headers: a,
1214
1228
  xhr: c
@@ -1217,12 +1231,12 @@ async function B(e, n = void 0, t = void 0) {
1217
1231
  });
1218
1232
  },
1219
1233
  (r) => {
1220
- t && t(r), console.log("*_3dspace_download_doc / error file URL *", r), i(r);
1234
+ t && t(r), console.log("*_3dspace_download_doc / error file URL *", r), s(r);
1221
1235
  }
1222
1236
  );
1223
1237
  });
1224
1238
  }
1225
- async function ce(e, n, t = void 0, s = void 0) {
1239
+ async function ce(e, n, t = void 0, i = void 0) {
1226
1240
  typeof n < "u" && Array.isArray(n) && n?.length > 0 ? H({
1227
1241
  credentials: e,
1228
1242
  myArray: n,
@@ -1232,11 +1246,11 @@ async function ce(e, n, t = void 0, s = void 0) {
1232
1246
  t && t(r);
1233
1247
  }) : (console.warn(
1234
1248
  "La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
1235
- ), s && s(
1249
+ ), i && i(
1236
1250
  "La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
1237
1251
  ));
1238
1252
  }
1239
- function de(e, n, t = void 0, s = void 0, i = void 0) {
1253
+ function de(e, n, t = void 0, i = void 0, s = void 0) {
1240
1254
  const r = [];
1241
1255
  n.forEach((c) => {
1242
1256
  r.push({
@@ -1268,7 +1282,7 @@ function de(e, n, t = void 0, s = void 0, i = void 0) {
1268
1282
  } catch {
1269
1283
  h = l.blob();
1270
1284
  }
1271
- s && s({
1285
+ i && i({
1272
1286
  objectId: u.id,
1273
1287
  headers: g,
1274
1288
  fileName: p,
@@ -1280,17 +1294,17 @@ function de(e, n, t = void 0, s = void 0, i = void 0) {
1280
1294
  }
1281
1295
  });
1282
1296
  } catch (p) {
1283
- console.log(p), i && i(p);
1297
+ console.log(p), s && s(p);
1284
1298
  }
1285
1299
  }));
1286
1300
  },
1287
1301
  onFailure(c) {
1288
- console.log(c), i && i(c);
1302
+ console.log(c), s && s(c);
1289
1303
  }
1290
1304
  });
1291
1305
  }
1292
- function et(e, n, t = void 0, s = void 0) {
1293
- return new Promise((i) => {
1306
+ function tt(e, n, t = void 0, i = void 0) {
1307
+ return new Promise((s) => {
1294
1308
  if (e.token === "" && O(e), n !== void 0 && n !== "" && n !== null) {
1295
1309
  const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
1296
1310
  let o = {
@@ -1313,14 +1327,14 @@ function et(e, n, t = void 0, s = void 0) {
1313
1327
  t && t(a);
1314
1328
  },
1315
1329
  onFailure(a) {
1316
- s && s(a);
1330
+ i && i(a);
1317
1331
  }
1318
1332
  };
1319
1333
  m(r, o);
1320
1334
  }
1321
1335
  });
1322
1336
  }
1323
- function tt(e, n, t, s = void 0, i = void 0) {
1337
+ function nt(e, n, t, i = void 0, s = void 0) {
1324
1338
  return new Promise((r) => {
1325
1339
  if (e.token === "" && O(e), n !== void 0 && n !== "" && n !== null) {
1326
1340
  const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
@@ -1342,18 +1356,18 @@ function tt(e, n, t, s = void 0, i = void 0) {
1342
1356
  }),
1343
1357
  type: "json",
1344
1358
  onComplete(c) {
1345
- s && s(c);
1359
+ i && i(c);
1346
1360
  },
1347
1361
  onFailure(c) {
1348
- i && i(c);
1362
+ s && s(c);
1349
1363
  }
1350
1364
  };
1351
1365
  m(o, a);
1352
1366
  }
1353
1367
  });
1354
1368
  }
1355
- function nt(e, n, t = void 0, s = void 0) {
1356
- return new Promise((i) => {
1369
+ function st(e, n, t = void 0, i = void 0) {
1370
+ return new Promise((s) => {
1357
1371
  if (e.token === "" && O(e), n !== void 0 && n !== "" && n !== null) {
1358
1372
  const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
1359
1373
  F(
@@ -1386,15 +1400,15 @@ function nt(e, n, t = void 0, s = void 0) {
1386
1400
  t && t(a);
1387
1401
  },
1388
1402
  onFailure(a) {
1389
- s && s(a);
1403
+ i && i(a);
1390
1404
  }
1391
1405
  };
1392
1406
  m(r, o);
1393
1407
  }
1394
1408
  });
1395
1409
  }
1396
- function st(e, n, t = void 0, s = void 0) {
1397
- return new Promise((i) => {
1410
+ function it(e, n, t = void 0, i = void 0) {
1411
+ return new Promise((s) => {
1398
1412
  if (e.token === "" && O(e), n !== void 0 && n !== "" && n !== null) {
1399
1413
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
1400
1414
  F(
@@ -1433,14 +1447,14 @@ function st(e, n, t = void 0, s = void 0) {
1433
1447
  t && t(a);
1434
1448
  },
1435
1449
  onFailure(a) {
1436
- s && s(a);
1450
+ i && i(a);
1437
1451
  }
1438
1452
  };
1439
1453
  m(r, o);
1440
1454
  }
1441
1455
  });
1442
1456
  }
1443
- function it(e, n, t, s = void 0, i = void 0) {
1457
+ function ot(e, n, t, i = void 0, s = void 0) {
1444
1458
  return new Promise((r) => {
1445
1459
  if (e.token === "" && O(e), n !== void 0 && n !== "" && n !== null) {
1446
1460
  const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
@@ -1477,10 +1491,10 @@ function it(e, n, t, s = void 0, i = void 0) {
1477
1491
  }),
1478
1492
  type: "json",
1479
1493
  onComplete(c) {
1480
- s && s(c);
1494
+ i && i(c);
1481
1495
  },
1482
1496
  onFailure(c) {
1483
- i && i(c);
1497
+ s && s(c);
1484
1498
  }
1485
1499
  };
1486
1500
  m(o, a);
@@ -1489,8 +1503,8 @@ function it(e, n, t, s = void 0, i = void 0) {
1489
1503
  }
1490
1504
  function ue(e) {
1491
1505
  return new Promise((n, t) => {
1492
- const s = `${e.space}/resources/pno/person/getsecuritycontext&tenant=${e.tenant.toUpperCase()}&xrequestedwith=xmlhttprequest`;
1493
- m(s, {
1506
+ const i = `${e.space}/resources/pno/person/getsecuritycontext&tenant=${e.tenant.toUpperCase()}&xrequestedwith=xmlhttprequest`;
1507
+ m(i, {
1494
1508
  method: "GET",
1495
1509
  onComplete(r) {
1496
1510
  n(r);
@@ -1501,8 +1515,8 @@ function ue(e) {
1501
1515
  });
1502
1516
  });
1503
1517
  }
1504
- function ot(e, n, t = void 0, s = void 0) {
1505
- return new Promise(async (i, r) => {
1518
+ function at(e, n, t = void 0, i = void 0) {
1519
+ return new Promise(async (s, r) => {
1506
1520
  const { tenant: o, ctx: a, space: c } = e;
1507
1521
  (!o || !a || !c) && r({ error: "Erreur de credentials", tenant: o, ctx: a, space: c });
1508
1522
  const d = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=1&withAttributes=1&withCopyFrom=1&tenant=${e.tenant.toUpperCase()}&xrequestedwith=xmlhttprequest`;
@@ -1527,22 +1541,22 @@ function ot(e, n, t = void 0, s = void 0) {
1527
1541
  }),
1528
1542
  type: "json",
1529
1543
  onComplete(f) {
1530
- t && t(f), i(f);
1544
+ t && t(f), s(f);
1531
1545
  },
1532
1546
  onFailure(f) {
1533
- s && s(f), r(f);
1547
+ i && i(f), r(f);
1534
1548
  }
1535
1549
  };
1536
1550
  m(d, p);
1537
1551
  });
1538
1552
  }
1539
- function at(e, n, t, s, i = void 0, r = void 0) {
1553
+ function rt(e, n, t, i, s = void 0, r = void 0) {
1540
1554
  return new Promise((o) => {
1541
1555
  const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
1542
1556
  let c = {
1543
1557
  attributes: {
1544
1558
  title: t,
1545
- description: s,
1559
+ description: i,
1546
1560
  inheritedAccess: "no"
1547
1561
  }
1548
1562
  }, d = {
@@ -1560,7 +1574,7 @@ function at(e, n, t, s, i = void 0, r = void 0) {
1560
1574
  data: JSON.stringify(d),
1561
1575
  type: "json",
1562
1576
  onComplete(p) {
1563
- i && i(p);
1577
+ s && s(p);
1564
1578
  },
1565
1579
  onFailure(p) {
1566
1580
  r && r(p);
@@ -1569,7 +1583,7 @@ function at(e, n, t, s, i = void 0, r = void 0) {
1569
1583
  m(a, u);
1570
1584
  });
1571
1585
  }
1572
- function rt(e, n, t, s, i = void 0, r = void 0) {
1586
+ function ct(e, n, t, i, s = void 0, r = void 0) {
1573
1587
  return console.log("credentials", e), new Promise((o) => {
1574
1588
  `${e.space}`, JSON.stringify({
1575
1589
  csrf: {
@@ -1584,7 +1598,7 @@ function rt(e, n, t, s, i = void 0, r = void 0) {
1584
1598
  id: n,
1585
1599
  dataelements: {
1586
1600
  personList: t,
1587
- eventsList: s
1601
+ eventsList: i
1588
1602
  },
1589
1603
  tenant: e.tenant
1590
1604
  }
@@ -1593,13 +1607,13 @@ function rt(e, n, t, s, i = void 0, r = void 0) {
1593
1607
  });
1594
1608
  }
1595
1609
  //!SECTION
1596
- function ct(e, n = void 0, t = void 0) {
1597
- const s = {
1610
+ function dt(e, n = void 0, t = void 0) {
1611
+ const i = {
1598
1612
  base: `${e.space}`,
1599
1613
  uri: "/resources/bps/cspaces",
1600
1614
  optTenant: `tenant=${e.tenant}`
1601
- }, i = `${s.base}${s.uri}?${s.optTenant}`;
1602
- m(i, {
1615
+ }, s = `${i.base}${i.uri}?${i.optTenant}`;
1616
+ m(s, {
1603
1617
  method: "GET",
1604
1618
  headers: {
1605
1619
  Accept: "application/json,text/javascript,*/*",
@@ -1614,36 +1628,36 @@ function ct(e, n = void 0, t = void 0) {
1614
1628
  }
1615
1629
  });
1616
1630
  }
1617
- function dt(e, n, t, s) {
1618
- k(
1631
+ function ut(e, n, t, i) {
1632
+ j(
1619
1633
  e.space,
1620
1634
  n,
1621
- (i) => {
1622
- m(i, {
1635
+ (s) => {
1636
+ m(s, {
1623
1637
  header: { ENO_CSRF_TOKEN: e.token },
1624
1638
  onComplete: (r) => {
1625
1639
  t && t(r);
1626
1640
  },
1627
1641
  onFailure: (r) => {
1628
- console.log("error http", r), s && s(r);
1642
+ console.log("error http", r), i && i(r);
1629
1643
  }
1630
1644
  });
1631
1645
  }
1632
1646
  );
1633
1647
  }
1634
- async function ut(e, n, t = void 0, s = void 0) {
1635
- return new Promise((i) => {
1636
- k(e, n, (r) => {
1648
+ async function pt(e, n, t = void 0, i = void 0) {
1649
+ return new Promise((s) => {
1650
+ j(e, n, (r) => {
1637
1651
  m(r, {
1638
- onComplete: (o, a, c) => (i(JSON.parse(o)), t && t(JSON.parse(o), a, c), i),
1652
+ onComplete: (o, a, c) => (s(JSON.parse(o)), t && t(JSON.parse(o), a, c), s),
1639
1653
  onFailure: (o, a, c) => {
1640
- s && s(o, a, c), console.log(o, a?.errormsg);
1654
+ i && i(o, a, c), console.log(o, a?.errormsg);
1641
1655
  }
1642
1656
  });
1643
1657
  });
1644
1658
  });
1645
1659
  }
1646
- function pt(e, n, t, s = void 0, i = void 0) {
1660
+ function lt(e, n, t, i = void 0, s = void 0) {
1647
1661
  const r = new Blob([JSON.stringify(n)], { type: "text/plain" });
1648
1662
  e = { ...e, objID: t }, R(
1649
1663
  e,
@@ -1657,77 +1671,77 @@ function pt(e, n, t, s = void 0, i = void 0) {
1657
1671
  r,
1658
1672
  c,
1659
1673
  (d) => {
1660
- s && s(d);
1674
+ i && i(d);
1661
1675
  },
1662
1676
  (d) => {
1663
- i && i(d);
1677
+ s && s(d);
1664
1678
  }
1665
1679
  );
1666
1680
  },
1667
1681
  (o) => {
1668
- console.log("En cas d'erreur nous avons :", o), alert("Erreur lors de la sauvegarde, Veuillez réessayez"), i && i(o);
1682
+ console.log("En cas d'erreur nous avons :", o), alert("Erreur lors de la sauvegarde, Veuillez réessayez"), s && s(o);
1669
1683
  }
1670
1684
  );
1671
1685
  }
1672
1686
  let K, q;
1673
1687
  const A = [];
1674
- async function lt(e, n = void 0, t = void 0) {
1688
+ async function ft(e, n = void 0, t = void 0) {
1675
1689
  e.objID && e.objID !== "" ? R(
1676
1690
  e,
1677
- (s) => {
1678
- n && n(s);
1691
+ (i) => {
1692
+ n && n(i);
1679
1693
  },
1680
- (s) => {
1681
- t && t(s);
1694
+ (i) => {
1695
+ t && t(i);
1682
1696
  }
1683
1697
  ) : (e.objID === null || e.objID === "") && O(
1684
1698
  e,
1685
- (s) => {
1686
- n && n({ rep: s, msg: "Pas d'objID, ou invalide" });
1699
+ (i) => {
1700
+ n && n({ rep: i, msg: "Pas d'objID, ou invalide" });
1687
1701
  },
1688
- (s) => {
1689
- t && t({ msg: "Pas d'objID et erreur sur le Space", err: s });
1702
+ (i) => {
1703
+ t && t({ msg: "Pas d'objID et erreur sur le Space", err: i });
1690
1704
  }
1691
1705
  );
1692
1706
  }
1693
- async function ft(e, n = void 0, t = void 0) {
1694
- console.log("getDatasByTenant (getDocuments)", e), await B(
1707
+ async function mt(e, n = void 0, t = void 0) {
1708
+ console.log("getDatasByTenant (getDocuments)", e), await E(
1695
1709
  e,
1696
- (s) => {
1697
- const i = {};
1698
- i.obj = s, console.log("getDatasByTenant (getDocuments) _datas", i), n && n?.(i);
1710
+ (i) => {
1711
+ const s = {};
1712
+ s.obj = i, console.log("getDatasByTenant (getDocuments) _datas", s), n && n?.(s);
1699
1713
  },
1700
- (s) => {
1701
- t && t?.(s);
1714
+ (i) => {
1715
+ t && t?.(i);
1702
1716
  }
1703
1717
  );
1704
1718
  }
1705
- function mt(e, n = void 0, t = void 0) {
1706
- const s = [];
1719
+ function gt(e, n = void 0, t = void 0) {
1720
+ const i = [];
1707
1721
  if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
1708
1722
  console.warn("la liste est vide ou n'est pas un tableau");
1709
1723
  return;
1710
1724
  }
1711
- e.objIds.forEach((i, r) => {
1712
- B(
1725
+ e.objIds.forEach((s, r) => {
1726
+ E(
1713
1727
  e,
1714
- i.objID,
1728
+ s.objID,
1715
1729
  (o) => {
1716
- s.push({ [i.name]: o }), i.name === "dbProjets" && (K = o.affaires.map((a) => a.objectID), pe(e, q)), r === e.objIds.length - 1 && (n && n(s), delete e.objIds, delete e.datas);
1730
+ i.push({ [s.name]: o }), s.name === "dbProjets" && (K = o.affaires.map((a) => a.objectID), pe(e, q)), r === e.objIds.length - 1 && (n && n(i), delete e.objIds, delete e.datas);
1717
1731
  }
1718
1732
  );
1719
1733
  });
1720
1734
  }
1721
- function pe(e, n, t = void 0, s = void 0) {
1735
+ function pe(e, n, t = void 0, i = void 0) {
1722
1736
  ce(
1723
1737
  e,
1724
1738
  K,
1725
- (i) => {
1739
+ (s) => {
1726
1740
  const r = [...n];
1727
- r.find((o) => o.objectID === i.objectId).data = i.data, q = r, A.push(i.data), t && t(A);
1741
+ r.find((o) => o.objectID === s.objectId).data = s.data, q = r, A.push(s.data), t && t(A);
1728
1742
  },
1729
- (i) => {
1730
- s && (s(i), console.log(i));
1743
+ (s) => {
1744
+ i && (i(s), console.log(s));
1731
1745
  }
1732
1746
  );
1733
1747
  }
@@ -1751,12 +1765,12 @@ const le = "FA35FB9B177A280065800EA0000F599C", fe = [
1751
1765
  order_by: "desc",
1752
1766
  tag: "testTag"
1753
1767
  };
1754
- function gt(e, n, t = void 0, s = void 0) {
1755
- const { space: i, tenant: r } = e, { objId: o, pred: a, tag: c } = n, d = {
1768
+ function ht(e, n, t = void 0, i = void 0) {
1769
+ const { space: s, tenant: r } = e, { objId: o, pred: a, tag: c } = n, d = {
1756
1770
  uri: "/resources/6w/tags",
1757
1771
  otpCTX: "SecurityContext=preferred",
1758
1772
  optTenant: `tenant=${r}`
1759
- }, u = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
1773
+ }, u = `${s}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
1760
1774
  tag: [
1761
1775
  {
1762
1776
  subject: [
@@ -1794,26 +1808,26 @@ function gt(e, n, t = void 0, s = void 0) {
1794
1808
  t && t(w);
1795
1809
  },
1796
1810
  (w) => {
1797
- s && s(w);
1811
+ i && i(w);
1798
1812
  }
1799
1813
  );
1800
1814
  },
1801
1815
  (g, h) => {
1802
1816
  const y = g;
1803
- y.msg = h.errormsg, y.errCode = h.errorcode, console.log("❌ sendDirectMessage => ", y), s && s(y);
1817
+ y.msg = h.errormsg, y.errCode = h.errorcode, console.log("❌ sendDirectMessage => ", y), i && i(y);
1804
1818
  }
1805
1819
  );
1806
1820
  }, 2e3);
1807
1821
  },
1808
1822
  onFailure(f, l) {
1809
1823
  const g = f;
1810
- g.msg = l.errormsg, g.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", g), s && s(g);
1824
+ g.msg = l.errormsg, g.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", g), i && i(g);
1811
1825
  }
1812
1826
  });
1813
1827
  }
1814
- function ge(e, n, t = void 0, s = void 0) {
1828
+ function ge(e, n, t = void 0, i = void 0) {
1815
1829
  console.log("obj ", n);
1816
- const i = n.info.name, r = {
1830
+ const s = n.info.name, r = {
1817
1831
  baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
1818
1832
  uri: "/federated/search"
1819
1833
  }, o = `${r.baseUrl}${r.uri}`, a = {
@@ -1851,7 +1865,7 @@ function ge(e, n, t = void 0, s = void 0) {
1851
1865
  ],
1852
1866
  with_synthesis_hierarchical: !0,
1853
1867
  select_file: ["icon", "thumbnail_2d"],
1854
- query: i,
1868
+ query: s,
1855
1869
  specific_source_parameter: {
1856
1870
  "3dspace": {
1857
1871
  additional_query: ' AND NOT (owner:"ENOVIA_CLOUD" OR owner:"Service Creator" OR owner:"Corporate" OR owner:"User Agent" OR owner:"SLMInstallerAdmin" OR owner:"Creator" OR owner:"VPLMAdminUser") AND (ds6w_58_islastrevisionperstate:true OR NOT listoffields:ds6w_58_islastrevisionperstate)'
@@ -1890,12 +1904,12 @@ function ge(e, n, t = void 0, s = void 0) {
1890
1904
  },
1891
1905
  onFailure(u, p) {
1892
1906
  const f = u;
1893
- 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);
1907
+ f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), i && i(f), console.log("Erreur de recuperation d'id du doc et des tags", u);
1894
1908
  }
1895
1909
  });
1896
1910
  }
1897
- function ht(e, n, t = void 0, s = void 0) {
1898
- const { objId: i, pred: r, tag: o } = n, a = {
1911
+ function yt(e, n, t = void 0, i = void 0) {
1912
+ const { objId: s, pred: r, tag: o } = n, a = {
1899
1913
  uri: "/resources/6w/tags",
1900
1914
  otpCTX: "SecurityContext=preferred",
1901
1915
  optTenant: `tenant=${e.tenant}`
@@ -1904,7 +1918,7 @@ function ht(e, n, t = void 0, s = void 0) {
1904
1918
  {
1905
1919
  subject: [
1906
1920
  {
1907
- uri: `pid://${i}`
1921
+ uri: `pid://${s}`
1908
1922
  }
1909
1923
  ],
1910
1924
  predicate: X[r],
@@ -1926,12 +1940,12 @@ function ht(e, n, t = void 0, s = void 0) {
1926
1940
  },
1927
1941
  onFailure(u, p) {
1928
1942
  const f = u;
1929
- f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f);
1943
+ f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), i && i(f);
1930
1944
  }
1931
1945
  });
1932
1946
  }
1933
- function yt(e, n = "", t = void 0, s = void 0) {
1934
- const { space: i } = e;
1947
+ function _t(e, n = "", t = void 0, i = void 0) {
1948
+ const { space: s } = e;
1935
1949
  if (n === "")
1936
1950
  return;
1937
1951
  const r = {
@@ -1939,7 +1953,7 @@ function yt(e, n = "", t = void 0, s = void 0) {
1939
1953
  }, o = {
1940
1954
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
1941
1955
  Accept: "application/json,text/javascript,*/*"
1942
- }, 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}`;
1956
+ }, a = `${s}${r.uri}`, c = `$include=none,lockerInfo,ownerInfo,originatorInfo,files,ownerInfo,originatorInfo&$fields=none,title,name,typeNLS,collabSpaceTitle,revision,isLatestRevision,files,lockStatus,lockerInfo.name,lockerInfo.firstname,lockerInfo.lastname,owner,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,stateNLS,modified,policy,state,organizationTitle,originator,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname,hasModifyAccess,fileExtension,files.name,files.title,files.revision,files.locker,ownerInfo,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,originatorInfo,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname&$ids=${n}`;
1943
1957
  m(a, {
1944
1958
  method: "POST",
1945
1959
  headers: o,
@@ -1949,25 +1963,25 @@ function yt(e, n = "", t = void 0, s = void 0) {
1949
1963
  },
1950
1964
  onFailure(d, u) {
1951
1965
  const p = d;
1952
- p.msg = u.error, s && s(p);
1966
+ p.msg = u.error, i && i(p);
1953
1967
  }
1954
1968
  });
1955
1969
  }
1956
1970
  async function C(e, n = void 0, t = void 0) {
1957
- const s = e._3DSwym + "/api/index/tk";
1958
- return m(s, {
1959
- onComplete(i, r, o) {
1960
- const a = JSON.parse(i);
1971
+ const i = e._3DSwym + "/api/index/tk";
1972
+ return m(i, {
1973
+ onComplete(s, r, o) {
1974
+ const a = JSON.parse(s);
1961
1975
  if (n)
1962
1976
  return n(a), e.token = a?.result?.ServerToken;
1963
1977
  },
1964
- onFailure(i) {
1965
- t && t(i);
1978
+ onFailure(s) {
1979
+ t && t(s);
1966
1980
  }
1967
1981
  });
1968
1982
  }
1969
- function _t(e, n = void 0, t = void 0) {
1970
- const s = `${e._3DSwym}/api/exalead/whatsnew`, i = {
1983
+ function St(e, n = void 0, t = void 0) {
1984
+ const i = `${e._3DSwym}/api/exalead/whatsnew`, s = {
1971
1985
  params: {
1972
1986
  community_id: null,
1973
1987
  hash_key: null,
@@ -1978,14 +1992,14 @@ function _t(e, n = void 0, t = void 0) {
1978
1992
  }
1979
1993
  };
1980
1994
  C(e, (r) => {
1981
- m(s, {
1995
+ m(i, {
1982
1996
  method: "POST",
1983
1997
  headers: {
1984
1998
  "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
1985
1999
  "Content-type": "application/json;charset=UTF-8",
1986
2000
  Accept: "application/json"
1987
2001
  },
1988
- data: JSON.stringify(i),
2002
+ data: JSON.stringify(s),
1989
2003
  type: "json",
1990
2004
  onComplete(o, a) {
1991
2005
  n && n(o, a);
@@ -1996,8 +2010,8 @@ function _t(e, n = void 0, t = void 0) {
1996
2010
  });
1997
2011
  });
1998
2012
  }
1999
- function St(e, n = void 0, t = void 0) {
2000
- const s = `${e._3DSwym}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
2013
+ function wt(e, n = void 0, t = void 0) {
2014
+ const i = `${e._3DSwym}/api/Recommendation/getpeoplefamiliartocurrentuser`, s = {
2001
2015
  params: {
2002
2016
  idsToFilterArr: [],
2003
2017
  mode: "offline",
@@ -2007,14 +2021,14 @@ function St(e, n = void 0, t = void 0) {
2007
2021
  }
2008
2022
  };
2009
2023
  C(e, (r) => {
2010
- m(s, {
2024
+ m(i, {
2011
2025
  method: "POST",
2012
2026
  headers: {
2013
2027
  "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
2014
2028
  "Content-type": "application/json;charset=UTF-8",
2015
2029
  Accept: "application/json"
2016
2030
  },
2017
- data: JSON.stringify(i),
2031
+ data: JSON.stringify(s),
2018
2032
  type: "json",
2019
2033
  onComplete(o, a) {
2020
2034
  const c = o.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
@@ -2026,15 +2040,15 @@ function St(e, n = void 0, t = void 0) {
2026
2040
  });
2027
2041
  });
2028
2042
  }
2029
- function wt(e, n = void 0, t = void 0) {
2030
- const s = {
2043
+ function Ct(e, n = void 0, t = void 0) {
2044
+ const i = {
2031
2045
  base: e._3DSwym,
2032
2046
  uri: "/api/community/listmycommunities",
2033
2047
  limit: `/limit/${e.limit ? e.limit : 500}`,
2034
2048
  page: `/page/${e.page ? e.page : "1"}`
2035
- }, i = `${s.base}${s.uri}${s.limit}${s.page}`, r = [];
2049
+ }, s = `${i.base}${i.uri}${i.limit}${i.page}`, r = [];
2036
2050
  C(e, (o) => {
2037
- m(i, {
2051
+ m(s, {
2038
2052
  method: "GET",
2039
2053
  headers: {
2040
2054
  "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
@@ -2068,8 +2082,8 @@ function wt(e, n = void 0, t = void 0) {
2068
2082
  });
2069
2083
  });
2070
2084
  }
2071
- function he(e, n, t, s) {
2072
- const i = `${e._3DSwym}/api/community/listmembers`, r = {
2085
+ function he(e, n, t, i) {
2086
+ const s = `${e._3DSwym}/api/community/listmembers`, r = {
2073
2087
  params: {
2074
2088
  page: e.page ? e.page : 1,
2075
2089
  limit: e.limit ? e.limit : 50,
@@ -2077,7 +2091,7 @@ function he(e, n, t, s) {
2077
2091
  }
2078
2092
  };
2079
2093
  C(e, (o) => {
2080
- m(i, {
2094
+ m(s, {
2081
2095
  method: "POST",
2082
2096
  headers: {
2083
2097
  "Content-type": "application/json;charset=UTF-8",
@@ -2091,17 +2105,17 @@ function he(e, n, t, s) {
2091
2105
  },
2092
2106
  onFailure(a, c) {
2093
2107
  const d = a;
2094
- d.status = c.status, d.response = c.errormsg, s && s(d);
2108
+ d.status = c.status, d.response = c.errormsg, i && i(d);
2095
2109
  }
2096
2110
  });
2097
2111
  });
2098
2112
  }
2099
- function Ct(e, n = void 0, t = void 0) {
2100
- const s = "YXdA5x4DSUKtlAi2wmnyTA";
2101
- e.commu_id || (e.commu_id = s);
2102
- const i = `${e._3DSwym}/api/v2/communities/${e.commu_id}/ideas/statuses`;
2113
+ function Ot(e, n = void 0, t = void 0) {
2114
+ const i = "YXdA5x4DSUKtlAi2wmnyTA";
2115
+ e.commu_id || (e.commu_id = i);
2116
+ const s = `${e._3DSwym}/api/v2/communities/${e.commu_id}/ideas/statuses`;
2103
2117
  C(e, (r) => {
2104
- m(i, {
2118
+ m(s, {
2105
2119
  method: "GET",
2106
2120
  headers: {
2107
2121
  "Content-type": "application/json;charset=UTF-8",
@@ -2119,9 +2133,9 @@ function Ct(e, n = void 0, t = void 0) {
2119
2133
  });
2120
2134
  });
2121
2135
  }
2122
- function Ot(e, n, t = void 0, s = void 0) {
2123
- const { listAllContacts: i, currentUser: r, _3DSwym: o } = e;
2124
- console.log("__listAllContacts", i.hits);
2136
+ function bt(e, n, t = void 0, i = void 0) {
2137
+ const { listAllContacts: s, currentUser: r, _3DSwym: o } = e;
2138
+ console.log("__listAllContacts", s.hits);
2125
2139
  const a = `${o}/api/directmessages`, c = {
2126
2140
  users: [r.login].concat(n.receipt)
2127
2141
  }, d = {
@@ -2137,7 +2151,7 @@ function Ot(e, n, t = void 0, s = void 0) {
2137
2151
  p !== void 0 && (d.id_msg = p.id, u = !0, P(e, d));
2138
2152
  },
2139
2153
  (p) => {
2140
- u = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), d.id_msg = "";
2154
+ u = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), i && i(p), d.id_msg = "";
2141
2155
  }
2142
2156
  ), u === !1 && setTimeout(() => {
2143
2157
  u === !1 && C(e, (p) => {
@@ -2156,16 +2170,16 @@ function Ot(e, n, t = void 0, s = void 0) {
2156
2170
  },
2157
2171
  onFailure(f, l, g) {
2158
2172
  const h = f;
2159
- h.msg = l.errormsg, h.status = l.status, s && s(h);
2173
+ h.msg = l.errormsg, h.status = l.status, i && i(h);
2160
2174
  }
2161
2175
  });
2162
2176
  });
2163
2177
  }, 500);
2164
2178
  }
2165
- function ye(e, n, t, s) {
2166
- const i = `${e._3DSwym}/api/directmessages/lite?with_favorites=false`;
2179
+ function ye(e, n, t, i) {
2180
+ const s = `${e._3DSwym}/api/directmessages/lite?with_favorites=false`;
2167
2181
  C(e, (r) => {
2168
- m(i, {
2182
+ m(s, {
2169
2183
  method: "GET",
2170
2184
  headers: {
2171
2185
  Accept: "application/json,text/javascript,*/*",
@@ -2182,22 +2196,22 @@ function ye(e, n, t, s) {
2182
2196
  f.push(l.login);
2183
2197
  }), JSON.stringify(f) === JSON.stringify(d);
2184
2198
  });
2185
- t && u !== void 0 ? t(u) : (s || u === void 0) && s(u);
2199
+ t && u !== void 0 ? t(u) : (i || u === void 0) && i(u);
2186
2200
  },
2187
2201
  onFailure(o) {
2188
2202
  const a = o;
2189
- a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), s && s(a);
2203
+ a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), i && i(a);
2190
2204
  }
2191
2205
  });
2192
2206
  });
2193
2207
  }
2194
- function P(e, n, t = void 0, s = void 0) {
2195
- const i = {
2208
+ function P(e, n, t = void 0, i = void 0) {
2209
+ const s = {
2196
2210
  base: e._3DSwym,
2197
2211
  uri: "/api/community",
2198
2212
  id_msg: `${n.id_msg}`,
2199
2213
  endUri: "/instantmessages"
2200
- }, r = `${i.base}${i.uri}/${i.id_msg}${i.endUri}`, o = {
2214
+ }, r = `${s.base}${s.uri}/${s.id_msg}${s.endUri}`, o = {
2201
2215
  author: { login: n.senderId, displayName: n.senderName },
2202
2216
  accessState: null,
2203
2217
  commentUri: null,
@@ -2223,7 +2237,7 @@ function P(e, n, t = void 0, s = void 0) {
2223
2237
  },
2224
2238
  onFailure(c, d) {
2225
2239
  const u = c;
2226
- u.msg = d.errormsg, u.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", u), s && s(u);
2240
+ u.msg = d.errormsg, u.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", u), i && i(u);
2227
2241
  }
2228
2242
  });
2229
2243
  });
@@ -2235,8 +2249,8 @@ function _e(e) {
2235
2249
  <hr/>
2236
2250
  <p><u>envoyer :</u>Le <b>${n} à ${t}</b></p>`;
2237
2251
  }
2238
- function bt(e, n, t = void 0, s = void 0) {
2239
- const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
2252
+ function Tt(e, n, t = void 0, i = void 0) {
2253
+ const s = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
2240
2254
  (c) => c.id === n.community_id
2241
2255
  ), o = e.swymCommunities.find(
2242
2256
  (c) => c.title.toLowerCase() === n.community_title.toLowerCase()
@@ -2258,7 +2272,7 @@ function bt(e, n, t = void 0, s = void 0) {
2258
2272
  Accept: "application/json",
2259
2273
  "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
2260
2274
  };
2261
- m(i, {
2275
+ m(s, {
2262
2276
  method: "POST",
2263
2277
  headers: d,
2264
2278
  data: JSON.stringify(a),
@@ -2269,16 +2283,16 @@ function bt(e, n, t = void 0, s = void 0) {
2269
2283
  },
2270
2284
  onFailure(u, p, f) {
2271
2285
  const l = u;
2272
- l.status = p.status, l.response = p.errormsg, s && s(l);
2286
+ l.status = p.status, l.response = p.errormsg, i && i(l);
2273
2287
  }
2274
2288
  });
2275
2289
  });
2276
2290
  }
2277
- function Tt(e, n = void 0, t = void 0) {
2278
- const s = { base: e.space, uri: "/api/idea/add" };
2291
+ function $t(e, n = void 0, t = void 0) {
2292
+ const i = { base: e.space, uri: "/api/idea/add" };
2279
2293
  if (!Array.isArray(e.swymCommunities)) {
2280
2294
  const o = "☠️ swymCommunities doit être un tableau d'objets de communautés";
2281
- throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
2295
+ throw new Error(`Erreur sur cette requête : ${i.base + i.uri}`, {
2282
2296
  cause: o
2283
2297
  });
2284
2298
  }
@@ -2286,19 +2300,19 @@ function Tt(e, n = void 0, t = void 0) {
2286
2300
  (o) => o.id === e.community_id
2287
2301
  ) === -1) {
2288
2302
  const o = "la communauté n'existe pas dans la liste des communautés du Swym";
2289
- throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
2303
+ throw new Error(`Erreur sur cette requête : ${i.base + i.uri}`, {
2290
2304
  cause: o
2291
2305
  });
2292
2306
  }
2293
2307
  if (e.community_id && e.community_id === "") {
2294
2308
  const o = "☠️ community_id doit être un String qui contient l'id de la communauté dans laquelle on souhaite publier l'idée.";
2295
- throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
2309
+ throw new Error(`Erreur sur cette requête : ${i.base + i.uri}`, {
2296
2310
  cause: o
2297
2311
  });
2298
2312
  }
2299
2313
  if (e.title && e.title === "") {
2300
2314
  const o = "☠️ title doit être un String.";
2301
- throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
2315
+ throw new Error(`Erreur sur cette requête : ${i.base + i.uri}`, {
2302
2316
  cause: o
2303
2317
  });
2304
2318
  }
@@ -2317,7 +2331,7 @@ function Tt(e, n = void 0, t = void 0) {
2317
2331
  C(e, (o) => {
2318
2332
  if (!o)
2319
2333
  throw new Error(
2320
- `☠️ token n'est pas disponible pour cette requête : ${s.base + s.uri}`,
2334
+ `☠️ token n'est pas disponible pour cette requête : ${i.base + i.uri}`,
2321
2335
  {
2322
2336
  cause: o
2323
2337
  }
@@ -2336,7 +2350,7 @@ function Tt(e, n = void 0, t = void 0) {
2336
2350
  },
2337
2351
  onFailure(c, d, u) {
2338
2352
  const p = JSON.parse(d), f = JSON.parse(c), l = new Error(
2339
- `Erreur sur cette requête : ${s.base + s.uri}`,
2353
+ `Erreur sur cette requête : ${i.base + i.uri}`,
2340
2354
  {
2341
2355
  cause: { head: p, rep: f }
2342
2356
  }
@@ -2344,18 +2358,18 @@ function Tt(e, n = void 0, t = void 0) {
2344
2358
  t && t(l);
2345
2359
  }
2346
2360
  };
2347
- m(s.base + s.uri, a);
2361
+ m(i.base + i.uri, a);
2348
2362
  });
2349
2363
  }
2350
- function $t(e, n, t = void 0, s = void 0) {
2351
- const i = `${e.space}/api/idea/delete`, r = {
2364
+ function Ut(e, n, t = void 0, i = void 0) {
2365
+ const s = `${e.space}/api/idea/delete`, r = {
2352
2366
  params: {
2353
2367
  community_id: n.community_id,
2354
2368
  ideationIds: [n.idee_id]
2355
2369
  }
2356
2370
  };
2357
2371
  C(e, (o) => {
2358
- m(i, {
2372
+ m(s, {
2359
2373
  method: "POST",
2360
2374
  headers: {
2361
2375
  "Content-type": "application/json;charset=UTF-8",
@@ -2369,13 +2383,13 @@ function $t(e, n, t = void 0, s = void 0) {
2369
2383
  },
2370
2384
  onFailure(a, c, d) {
2371
2385
  const u = a;
2372
- u.status = c.status, u.response = c.errormsg, s && s(u);
2386
+ u.status = c.status, u.response = c.errormsg, i && i(u);
2373
2387
  }
2374
2388
  });
2375
2389
  });
2376
2390
  }
2377
- function Ut(e, n = void 0, t = void 0) {
2378
- const { _3DSwym: s, _3DSwym_token: i } = e, r = `${s}/api/idea/get`;
2391
+ function xt(e, n = void 0, t = void 0) {
2392
+ const { _3DSwym: i, _3DSwym_token: s } = e, r = `${i}/api/idea/get`;
2379
2393
  if (e.idPost === "") {
2380
2394
  const a = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
2381
2395
  throw new Error(`Erreur sur cette requête : ${r}`, { cause: a });
@@ -2390,7 +2404,7 @@ function Ut(e, n = void 0, t = void 0) {
2390
2404
  headers: {
2391
2405
  "Content-type": "application/json;charset=UTF-8",
2392
2406
  Accept: "application/json",
2393
- "X-DS-SWYM-CSRFTOKEN": i
2407
+ "X-DS-SWYM-CSRFTOKEN": s
2394
2408
  },
2395
2409
  data: JSON.stringify(o),
2396
2410
  onComplete(a) {
@@ -2402,10 +2416,10 @@ function Ut(e, n = void 0, t = void 0) {
2402
2416
  }
2403
2417
  });
2404
2418
  }
2405
- function xt(e, n, t) {
2419
+ function It(e, n, t) {
2406
2420
  const {
2407
- _3DSwym: s,
2408
- _3DSwym_token: i,
2421
+ _3DSwym: i,
2422
+ _3DSwym_token: s,
2409
2423
  idPost: r,
2410
2424
  title: o,
2411
2425
  community_id: a,
@@ -2413,14 +2427,14 @@ function xt(e, n, t) {
2413
2427
  status_id: d,
2414
2428
  message: u
2415
2429
  } = e, p = {
2416
- base: `${s}`,
2430
+ base: `${i}`,
2417
2431
  uri: "/api/idea/edit"
2418
2432
  }, l = {
2419
2433
  method: "POST",
2420
2434
  headers: {
2421
2435
  "Content-type": "application/json;charset=UTF-8",
2422
2436
  Accept: "application/json",
2423
- "X-DS-SWYM-CSRFTOKEN": i
2437
+ "X-DS-SWYM-CSRFTOKEN": s
2424
2438
  },
2425
2439
  data: JSON.stringify({
2426
2440
  params: {
@@ -2447,8 +2461,8 @@ function xt(e, n, t) {
2447
2461
  };
2448
2462
  m(p.base + p.uri, l);
2449
2463
  }
2450
- function It(e, n, t = void 0, s = void 0) {
2451
- const { _3DSwym: i } = e;
2464
+ function Nt(e, n, t = void 0, i = void 0) {
2465
+ const { _3DSwym: s } = e;
2452
2466
  let { community_id: r, limit: o, page: a, search: c } = n;
2453
2467
  const d = [], u = 1;
2454
2468
  let p = !1, f = 2;
@@ -2459,7 +2473,7 @@ function It(e, n, t = void 0, s = void 0) {
2459
2473
  limit: `/limit/${o}`,
2460
2474
  page: `/page/${a}`
2461
2475
  };
2462
- let g = `${i}${l.uri}${l.comId}${l.limit}${l.page}`;
2476
+ let g = `${s}${l.uri}${l.comId}${l.limit}${l.page}`;
2463
2477
  C(e, (h) => {
2464
2478
  const y = (S) => {
2465
2479
  m(S, {
@@ -2470,11 +2484,11 @@ function It(e, n, t = void 0, s = void 0) {
2470
2484
  onComplete(w) {
2471
2485
  const _ = { response: JSON.parse(w) };
2472
2486
  if (f = Math.ceil(Number(_.response.nb_result) / 100), w && f >= a) {
2473
- if (a++, l.page = `/page/${a}`, S = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
2487
+ if (a++, l.page = `/page/${a}`, S = `${s}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
2474
2488
  d.push(_.response.result);
2475
2489
  else {
2476
2490
  const b = _.response.result.find(
2477
- (j) => j.title.includes(c)
2491
+ (v) => v.title.includes(c)
2478
2492
  );
2479
2493
  if (b) {
2480
2494
  t(b);
@@ -2490,7 +2504,7 @@ function It(e, n, t = void 0, s = void 0) {
2490
2504
  },
2491
2505
  onFailure(w, _) {
2492
2506
  const b = w;
2493
- b.status = _.status, b.response = _.errormsg, s && s(b);
2507
+ b.status = _.status, b.response = _.errormsg, i && i(b);
2494
2508
  }
2495
2509
  });
2496
2510
  };
@@ -2572,10 +2586,10 @@ function Se(e) {
2572
2586
  <p>
2573
2587
  </p>` : e;
2574
2588
  }
2575
- function Nt(e, n = void 0, t = void 0) {
2576
- const { tenant: s, _3DSwym: i, _3DSwym_token: r, community_id: o, idea_id: a } = e;
2577
- if (s && i && r && o && a) {
2578
- const c = `${i}/api/idea/forward`;
2589
+ function Rt(e, n = void 0, t = void 0) {
2590
+ const { tenant: i, _3DSwym: s, _3DSwym_token: r, community_id: o, idea_id: a } = e;
2591
+ if (i && s && r && o && a) {
2592
+ const c = `${s}/api/idea/forward`;
2579
2593
  m(c, {
2580
2594
  method: "POST",
2581
2595
  headers: {
@@ -2584,8 +2598,8 @@ function Nt(e, n = void 0, t = void 0) {
2584
2598
  "X-DS-SWYM-CSRFTOKEN": r
2585
2599
  },
2586
2600
  data: JSON.stringify({
2587
- community_uri: `swym:prd:${s.toUpperCase()}:community:${o}`,
2588
- content_uri: `swym:prd:${s.toUpperCase()}:idea:${a}`,
2601
+ community_uri: `swym:prd:${i.toUpperCase()}:community:${o}`,
2602
+ content_uri: `swym:prd:${i.toUpperCase()}:idea:${a}`,
2589
2603
  timeout: 3e4
2590
2604
  }),
2591
2605
  type: "json",
@@ -2605,42 +2619,42 @@ function Nt(e, n = void 0, t = void 0) {
2605
2619
  credentials: e
2606
2620
  });
2607
2621
  }
2608
- function Rt(e, n = void 0, t = void 0) {
2609
- return new Promise((s, i) => {
2622
+ function Ft(e, n = void 0, t = void 0) {
2623
+ return new Promise((i, s) => {
2610
2624
  try {
2611
2625
  let r;
2612
2626
  if (e._3DDashboard) {
2613
2627
  const o = e._3DDashboard + "/api/users/current";
2614
- console.log("_3DSwym_get_currentUser | url", o), m(o, {
2628
+ m(o, {
2615
2629
  method: "GET",
2616
2630
  onComplete(a, c, d) {
2617
2631
  let u = a.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, "");
2618
- u = u.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, ""), console.log("result", u);
2632
+ u = u.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, "");
2619
2633
  let p = {};
2620
2634
  try {
2621
2635
  p = JSON.parse(u);
2622
2636
  } catch (f) {
2623
- i("ERROR | _3DSwym_get_currentUser => JSON.Parse()", f);
2637
+ s("ERROR | _3DSwym_get_currentUser => JSON.Parse()", f);
2624
2638
  }
2625
- console.log(p), p.first_name = p?.firstName ? p.firstName : "", p.last_name = p?.lastName ? p.lastName : "", console.log("_3DSwym_get_currentUser | info", p), r = p, s(p);
2639
+ p.first_name = p?.firstName ? p.firstName : "", p.last_name = p?.lastName ? p.lastName : "", r = p, i(p);
2626
2640
  },
2627
2641
  onFailure(a) {
2628
- i("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", a);
2642
+ s("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", a);
2629
2643
  }
2630
2644
  });
2631
2645
  }
2632
- r ? s(r) : i("ERROR | _3DSwym_get_currentUser => CURRENT_USER is null");
2646
+ r ? i(r) : s("ERROR | _3DSwym_get_currentUser => CURRENT_USER is null");
2633
2647
  } catch (r) {
2634
- i("ERROR | _3DSwym_get_currentUser => ", r);
2648
+ s("ERROR | _3DSwym_get_currentUser => ", r);
2635
2649
  }
2636
2650
  });
2637
2651
  }
2638
- function Ft(e, n, t = void 0, s = void 0) {
2639
- const i = e.space + "/api/user/find/login/" + n;
2652
+ function vt(e, n, t = void 0, i = void 0) {
2653
+ const s = e.space + "/api/user/find/login/" + n;
2640
2654
  C(
2641
2655
  e,
2642
2656
  (r) => {
2643
- m(i, {
2657
+ m(s, {
2644
2658
  method: "GET",
2645
2659
  headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
2646
2660
  onComplete(o, a, c) {
@@ -2648,25 +2662,25 @@ function Ft(e, n, t = void 0, s = void 0) {
2648
2662
  t && t(d);
2649
2663
  },
2650
2664
  onFailure(o) {
2651
- s && s(o);
2665
+ i && i(o);
2652
2666
  }
2653
2667
  });
2654
2668
  },
2655
- s
2669
+ i
2656
2670
  );
2657
2671
  }
2658
2672
  function jt(e, n = void 0, t = void 0) {
2659
2673
  const {
2660
- _3DSwym: s,
2661
- _3DSwym_token: i,
2674
+ _3DSwym: i,
2675
+ _3DSwym_token: s,
2662
2676
  subjectUri: r,
2663
2677
  richMessage: o
2664
- } = e, a = `${s}/commentproxy/subjects/${r}/comments`, d = {
2678
+ } = e, a = `${i}/commentproxy/subjects/${r}/comments`, d = {
2665
2679
  method: "POST",
2666
2680
  headers: {
2667
2681
  "Content-type": "application/json;charset=UTF-8",
2668
2682
  Accept: "application/json",
2669
- "X-DS-SWYM-CSRFTOKEN": i
2683
+ "X-DS-SWYM-CSRFTOKEN": s
2670
2684
  },
2671
2685
  data: JSON.stringify({ richMessage: o }),
2672
2686
  type: "json",
@@ -2683,20 +2697,18 @@ function jt(e, n = void 0, t = void 0) {
2683
2697
  m(a, d);
2684
2698
  }
2685
2699
  function kt(e, n = void 0, t = void 0) {
2686
- e.tenant && J(e, (s) => {
2687
- const i = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2688
- return n && n(i), i;
2700
+ e.tenant && J(e, (i) => {
2701
+ const s = i.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2702
+ return n && n(s), s;
2689
2703
  });
2690
2704
  }
2691
- function vt(e, n = void 0, t = void 0) {
2692
- console.log("_Iterop_Auth_CAS"), e.tenant && J(e, (s) => {
2693
- console.log("serviceUrls", s);
2694
- const i = s.services.find(
2705
+ function Dt(e, n = void 0, t = void 0) {
2706
+ e.tenant ? J(e, (i) => {
2707
+ const s = i.services.find(
2695
2708
  (a) => a.id === "3dpassport"
2696
- )?.url, r = s.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?cors=false&service=${r}/auth/cas`;
2709
+ )?.url, r = i.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${s}/login/?cors=false&service=${r}/auth/cas`;
2697
2710
  m(o, {
2698
2711
  async onComplete(a) {
2699
- console.log("response", a);
2700
2712
  const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
2701
2713
  await fetch(c, {
2702
2714
  method: "POST"
@@ -2708,36 +2720,36 @@ function vt(e, n = void 0, t = void 0) {
2708
2720
  t && t(a);
2709
2721
  }
2710
2722
  });
2711
- });
2723
+ }) : t && t("No tenant");
2712
2724
  }
2713
- function Dt(e, n = void 0, t = void 0) {
2725
+ function At(e, n = void 0, t = void 0) {
2714
2726
  if (e.tenant) {
2715
- const s = e.tenant.toLowerCase();
2716
- fetch(`https://api.uixhome.fr/${s}/iterop/jwtuser`, {
2727
+ const i = e.tenant.toLowerCase();
2728
+ fetch(`https://api.uixhome.fr/${i}/iterop/jwtuser`, {
2717
2729
  method: "POST"
2718
- }).then((i) => i.json()).then((i) => {
2719
- n && n(i);
2720
- }).catch((i) => {
2721
- t && t(i);
2730
+ }).then((s) => s.json()).then((s) => {
2731
+ n && n(s);
2732
+ }).catch((s) => {
2733
+ t && t(s);
2722
2734
  });
2723
2735
  }
2724
2736
  }
2725
- async function At(e, n, t = void 0, s = void 0) {
2737
+ async function Pt(e, n, t = void 0, i = void 0) {
2726
2738
  if (e.tenant) {
2727
- const i = e.tenant.toLowerCase();
2739
+ const s = e.tenant.toLowerCase();
2728
2740
  fetch(
2729
- `https://api.uixhome.fr/${i}/iterop/repository/data/tables?t=${n}`,
2741
+ `https://api.uixhome.fr/${s}/iterop/repository/data/tables?t=${n}`,
2730
2742
  {
2731
2743
  method: "GET"
2732
2744
  }
2733
2745
  ).then((r) => r.json()).then((r) => {
2734
2746
  t && t(r);
2735
2747
  }).catch((r) => {
2736
- s && s(r);
2748
+ i && i(r);
2737
2749
  });
2738
2750
  }
2739
2751
  }
2740
- function Pt(e, n, t, s = void 0, i = void 0) {
2752
+ function Lt(e, n, t, i = void 0, s = void 0) {
2741
2753
  if (e.tenant) {
2742
2754
  const r = e.tenant.toLowerCase();
2743
2755
  fetch(
@@ -2746,13 +2758,13 @@ function Pt(e, n, t, s = void 0, i = void 0) {
2746
2758
  method: "POST"
2747
2759
  }
2748
2760
  ).then((o) => o.json()).then((o) => {
2749
- s && s(o);
2750
- }).catch((o) => {
2751
2761
  i && i(o);
2762
+ }).catch((o) => {
2763
+ s && s(o);
2752
2764
  });
2753
2765
  }
2754
2766
  }
2755
- async function Lt(e, n, t, s = void 0, i = void 0) {
2767
+ async function Jt(e, n, t, i = void 0, s = void 0) {
2756
2768
  if (e.tenant) {
2757
2769
  const r = e.tenant.toLowerCase();
2758
2770
  fetch(
@@ -2761,32 +2773,32 @@ async function Lt(e, n, t, s = void 0, i = void 0) {
2761
2773
  method: "POST"
2762
2774
  }
2763
2775
  ).then((o) => o.json()).then((o) => {
2764
- s && s(o);
2765
- }).catch((o) => {
2766
2776
  i && i(o);
2777
+ }).catch((o) => {
2778
+ s && s(o);
2767
2779
  });
2768
2780
  }
2769
2781
  }
2770
- async function Jt(e, n, t, s, i = void 0, r = void 0) {
2782
+ async function Mt(e, n, t, i, s = void 0, r = void 0) {
2771
2783
  if (e.tenant) {
2772
2784
  const o = e.tenant.toLowerCase();
2773
2785
  fetch(
2774
- `https://api.uixhome.fr/${o}/iterop/businesstable/patch/rows/${t}/?t=${n}&b=${s}`,
2786
+ `https://api.uixhome.fr/${o}/iterop/businesstable/patch/rows/${t}/?t=${n}&b=${i}`,
2775
2787
  {
2776
2788
  method: "POST"
2777
2789
  }
2778
2790
  ).then((a) => a.json()).then((a) => {
2779
- i && i(a);
2791
+ s && s(a);
2780
2792
  }).catch((a) => {
2781
- r && r(a, t, s);
2793
+ r && r(a, t, i);
2782
2794
  });
2783
2795
  }
2784
2796
  }
2785
- async function Mt(e, n, t, s, i, r = void 0, o = void 0) {
2797
+ async function Gt(e, n, t, i, s, r = void 0, o = void 0) {
2786
2798
  if (e.tenant) {
2787
2799
  const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${t}?t=${n}&c=${encodeURIComponent(
2788
- s
2789
- )}&b=${encodeURIComponent(i)}`;
2800
+ i
2801
+ )}&b=${encodeURIComponent(s)}`;
2790
2802
  fetch(a, {
2791
2803
  method: "POST"
2792
2804
  }).then((c) => c.json()).then((c) => {
@@ -2795,21 +2807,21 @@ async function Mt(e, n, t, s, i, r = void 0, o = void 0) {
2795
2807
  o && o({
2796
2808
  error: c,
2797
2809
  tableId: t,
2798
- columns: s,
2799
- body: i
2810
+ columns: i,
2811
+ body: s
2800
2812
  });
2801
2813
  });
2802
2814
  }
2803
2815
  }
2804
- async function Gt(e, n, t, s, i = void 0, r = void 0) {
2816
+ async function Bt(e, n, t, i, s = void 0, r = void 0) {
2805
2817
  if (e.tenant) {
2806
2818
  const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${t}?t=${n}&b=${encodeURIComponent(
2807
- s
2819
+ i
2808
2820
  )}`;
2809
2821
  fetch(o, {
2810
2822
  method: "POST"
2811
2823
  }).then((a) => a.json()).then((a) => {
2812
- i && i(a);
2824
+ s && s(a);
2813
2825
  }).catch((a) => {
2814
2826
  r && r({
2815
2827
  error: a,
@@ -2818,7 +2830,7 @@ async function Gt(e, n, t, s, i = void 0, r = void 0) {
2818
2830
  });
2819
2831
  }
2820
2832
  }
2821
- async function Et(e, n, t, s = void 0, i = void 0) {
2833
+ async function Et(e, n, t, i = void 0, s = void 0) {
2822
2834
  if (e.tenant) {
2823
2835
  const r = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/create/?t=${n}&b=${encodeURIComponent(
2824
2836
  t
@@ -2826,31 +2838,31 @@ async function Et(e, n, t, s = void 0, i = void 0) {
2826
2838
  fetch(r, {
2827
2839
  method: "POST"
2828
2840
  }).then((o) => o.json()).then((o) => {
2829
- s && s(o);
2841
+ i && i(o);
2830
2842
  }).catch((o) => {
2831
- i && i({
2843
+ s && s({
2832
2844
  error: o,
2833
2845
  url: r
2834
2846
  });
2835
2847
  });
2836
2848
  }
2837
2849
  }
2838
- async function Bt(e, n, t, s, i = void 0, r = void 0) {
2850
+ async function Kt(e, n, t, i, s = void 0, r = void 0) {
2839
2851
  if (e.tenant) {
2840
2852
  const o = e.tenant.toLowerCase();
2841
2853
  fetch(
2842
- `https://api.uixhome.fr/${o}/iterop/runtime/processes/${t}?t=${n}&b=${s}`,
2854
+ `https://api.uixhome.fr/${o}/iterop/runtime/processes/${t}?t=${n}&b=${i}`,
2843
2855
  {
2844
2856
  method: "POST"
2845
2857
  }
2846
2858
  ).then((a) => a.json()).then((a) => {
2847
- console.log("_Iterop_runProcess : OK"), i && i(a);
2859
+ console.log("_Iterop_runProcess : OK"), s && s(a);
2848
2860
  }).catch((a) => {
2849
2861
  r && r(a);
2850
2862
  });
2851
2863
  }
2852
2864
  }
2853
- async function Kt(e, n, t, s = void 0, i = void 0) {
2865
+ async function qt(e, n, t, i = void 0, s = void 0) {
2854
2866
  if (console.log("_Iterop_GetOneDependencyTable | Run"), e.tenant) {
2855
2867
  const r = e.tenant.toLowerCase();
2856
2868
  fetch(
@@ -2859,17 +2871,17 @@ async function Kt(e, n, t, s = void 0, i = void 0) {
2859
2871
  method: "POST"
2860
2872
  }
2861
2873
  ).then((o) => o.json()).then((o) => {
2862
- s && s(o);
2863
- }).catch((o) => {
2864
2874
  i && i(o);
2875
+ }).catch((o) => {
2876
+ s && s(o);
2865
2877
  });
2866
2878
  }
2867
2879
  }
2868
- async function qt(e, n, t, s, i, r = void 0, o = void 0) {
2880
+ async function Xt(e, n, t, i, s, r = void 0, o = void 0) {
2869
2881
  if (e.tenant) {
2870
2882
  const a = e.tenant.toLowerCase();
2871
2883
  fetch(
2872
- `https://api.uixhome.fr/${a}/iterop/dependencytable/patch/${t}/?t=${n}&cli=${s}&b=${i}`,
2884
+ `https://api.uixhome.fr/${a}/iterop/dependencytable/patch/${t}/?t=${n}&cli=${i}&b=${s}`,
2873
2885
  {
2874
2886
  method: "POST"
2875
2887
  }
@@ -2880,23 +2892,23 @@ async function qt(e, n, t, s, i, r = void 0, o = void 0) {
2880
2892
  });
2881
2893
  }
2882
2894
  }
2883
- async function Xt(e, n, t, s, i = void 0, r = void 0) {
2895
+ async function Wt(e, n, t, i, s = void 0, r = void 0) {
2884
2896
  if (e.tenant) {
2885
2897
  const o = e.tenant.toLowerCase();
2886
2898
  fetch(
2887
- `https://api.uixhome.fr/${o}/iterop/dependencytable/put/${t}/?t=${n}&b=${s}`,
2899
+ `https://api.uixhome.fr/${o}/iterop/dependencytable/put/${t}/?t=${n}&b=${i}`,
2888
2900
  {
2889
2901
  method: "POST"
2890
2902
  }
2891
2903
  ).then((a) => a.json()).then((a) => {
2892
- i && i(a);
2904
+ s && s(a);
2893
2905
  }).catch((a) => {
2894
2906
  r && r(a);
2895
2907
  });
2896
2908
  }
2897
2909
  }
2898
2910
  //!SECTION
2899
- async function Wt(e, n, t, s = void 0, i = void 0) {
2911
+ async function Vt(e, n, t, i = void 0, s = void 0) {
2900
2912
  if (e.tenant) {
2901
2913
  const r = e.tenant.toLowerCase();
2902
2914
  fetch(
@@ -2905,19 +2917,19 @@ async function Wt(e, n, t, s = void 0, i = void 0) {
2905
2917
  method: "POST"
2906
2918
  }
2907
2919
  ).then((o) => o.json()).then((o) => {
2908
- s && s(o);
2909
- }).catch((o) => {
2910
2920
  i && i(o);
2921
+ }).catch((o) => {
2922
+ s && s(o);
2911
2923
  });
2912
2924
  }
2913
2925
  }
2914
2926
  //!SECTION
2915
- function Vt(e) {
2927
+ function Yt(e) {
2916
2928
  const n = "Hello " + e;
2917
2929
  return console.log(n), n;
2918
2930
  }
2919
- function Yt(e, n = void 0, t = void 0) {
2920
- return console.log("credentials", e), new Promise((s) => {
2931
+ function zt(e, n = void 0, t = void 0) {
2932
+ return console.log("credentials", e), new Promise((i) => {
2921
2933
  if (e.token === "" && O(e), !e.space || e.space === "") {
2922
2934
  const o = Z();
2923
2935
  console.log("platformeInfo", o);
@@ -2933,7 +2945,7 @@ function Yt(e, n = void 0, t = void 0) {
2933
2945
  },
2934
2946
  !0
2935
2947
  );
2936
- const i = T.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
2948
+ const s = T.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
2937
2949
  m(r, {
2938
2950
  onComplete(o) {
2939
2951
  if (Array.isArray(JSON.parse(o))) {
@@ -2949,7 +2961,7 @@ function Yt(e, n = void 0, t = void 0) {
2949
2961
  data: JSON.stringify({
2950
2962
  with_indexing_date: !0,
2951
2963
  with_nls: !1,
2952
- label: `3DSearch-${i}`,
2964
+ label: `3DSearch-${s}`,
2953
2965
  locale: "en",
2954
2966
  select_predicate: [
2955
2967
  "ds6w:label",
@@ -2997,105 +3009,106 @@ function Yt(e, n = void 0, t = void 0) {
2997
3009
  }
2998
3010
  export {
2999
3011
  Y as UUID,
3000
- Yt as _3DSearch_usersGroup,
3001
- Ze as _3DSpace_Create_Doc,
3002
- Qe as _3DSpace_Update_Doc,
3003
- He as _3DSpace_Upload_File,
3004
- rt as _3DSpace_bookmark_addSubsciptions,
3005
- at as _3DSpace_bookmark_newWorkspace,
3012
+ zt as _3DSearch_usersGroup,
3013
+ et as _3DSpace_Create_Doc,
3014
+ Ze as _3DSpace_Update_Doc,
3015
+ Qe as _3DSpace_Upload_File,
3016
+ ct as _3DSpace_bookmark_addSubsciptions,
3017
+ rt as _3DSpace_bookmark_newWorkspace,
3006
3018
  O as _3DSpace_csrf,
3007
- B as _3DSpace_download_doc,
3019
+ E as _3DSpace_download_doc,
3008
3020
  ce as _3DSpace_download_multidoc,
3009
3021
  G as _3DSpace_file_update,
3010
3022
  oe as _3DSpace_file_update_csr,
3011
- Ye as _3DSpace_file_url_csr,
3023
+ ze as _3DSpace_file_url_csr,
3012
3024
  R as _3DSpace_get_csrf,
3013
3025
  M as _3DSpace_get_docInfo,
3014
3026
  de as _3DSpace_get_downloadTicket_multidoc,
3015
- Ve as _3DSpace_get_multiDocInfo,
3027
+ Ye as _3DSpace_get_multiDocInfo,
3016
3028
  F as _3DSpace_get_securityContexts,
3017
- k as _3DSpace_get_ticket,
3018
- it as _3DSpace_lifecycle_changeRevision,
3019
- tt as _3DSpace_lifecycle_changeState,
3020
- nt as _3DSpace_lifecycle_getGraph,
3021
- st as _3DSpace_lifecycle_getNextRevision,
3022
- et as _3DSpace_lifecycle_getNextStates,
3023
- ot as _3DSpace_lifecycle_getRevisions,
3024
- ze as _3DSpace_put_docInfo,
3025
- Nt as _3DSwym_ForwardIdea,
3029
+ j as _3DSpace_get_ticket,
3030
+ ot as _3DSpace_lifecycle_changeRevision,
3031
+ nt as _3DSpace_lifecycle_changeState,
3032
+ st as _3DSpace_lifecycle_getGraph,
3033
+ it as _3DSpace_lifecycle_getNextRevision,
3034
+ tt as _3DSpace_lifecycle_getNextStates,
3035
+ at as _3DSpace_lifecycle_getRevisions,
3036
+ He as _3DSpace_put_docInfo,
3037
+ Rt as _3DSwym_ForwardIdea,
3026
3038
  jt as _3DSwym_addComment,
3027
- Ot as _3DSwym_buildDirectMessage,
3028
- $t as _3DSwym_deleteIdea,
3029
- xt as _3DSwym_editIdea,
3039
+ bt as _3DSwym_buildDirectMessage,
3040
+ Ut as _3DSwym_deleteIdea,
3041
+ It as _3DSwym_editIdea,
3030
3042
  ye as _3DSwym_findCommunityToInstantMSG,
3031
- wt as _3DSwym_getAllCommunities,
3032
- It as _3DSwym_getAllListIdeas,
3033
- _t as _3DSwym_getAllNews,
3034
- St as _3DSwym_getFamiliarPeople,
3035
- Ct as _3DSwym_getIdeaStatusMaturity,
3043
+ Ct as _3DSwym_getAllCommunities,
3044
+ Nt as _3DSwym_getAllListIdeas,
3045
+ St as _3DSwym_getAllNews,
3046
+ wt as _3DSwym_getFamiliarPeople,
3047
+ Ot as _3DSwym_getIdeaStatusMaturity,
3036
3048
  he as _3DSwym_getMembersCommunity,
3037
- Ut as _3DSwym_getOneIdea,
3049
+ xt as _3DSwym_getOneIdea,
3038
3050
  C as _3DSwym_get_Token,
3039
- Rt as _3DSwym_get_currentUser,
3040
- Ft as _3DSwym_get_findUser,
3041
- Tt as _3DSwym_postIdea,
3042
- bt as _3DSwym_postIdeaTemplate,
3051
+ Ft as _3DSwym_get_currentUser,
3052
+ vt as _3DSwym_get_findUser,
3053
+ $t as _3DSwym_postIdea,
3054
+ Tt as _3DSwym_postIdeaTemplate,
3043
3055
  P as _3DSwym_sendMessageData,
3044
- Le as _AppMngt_get_info_user,
3045
- Pe as _AppMngt_get_users,
3046
- Jt as _Iterop_AddOrRemoveRows,
3047
- vt as _Iterop_Auth_CAS,
3048
- Kt as _Iterop_GetOneDependencyTable,
3049
- Wt as _Iterop_GetOneList,
3050
- qt as _Iterop_PatchDependencyTable,
3051
- Xt as _Iterop_PutDependencyTable,
3052
- Mt as _Iterop_businessTableSearchInRows,
3056
+ Je as _AppMngt_get_info_user,
3057
+ Le as _AppMngt_get_users,
3058
+ Mt as _Iterop_AddOrRemoveRows,
3059
+ Dt as _Iterop_Auth_CAS,
3060
+ qt as _Iterop_GetOneDependencyTable,
3061
+ Vt as _Iterop_GetOneList,
3062
+ Xt as _Iterop_PatchDependencyTable,
3063
+ Wt as _Iterop_PutDependencyTable,
3064
+ Gt as _Iterop_businessTableSearchInRows,
3053
3065
  Et as _Iterop_createBusinessTable,
3054
- At as _Iterop_getAllBusinessTables,
3055
- Pt as _Iterop_getOneBusinessTable,
3056
- Lt as _Iterop_getOneBusinessTableRows,
3057
- Dt as _Iterop_jwtUser,
3058
- Bt as _Iterop_runProcess,
3059
- Gt as _Iterop_updateBusinessTable,
3060
- ve as _getMe,
3066
+ Pt as _Iterop_getAllBusinessTables,
3067
+ Lt as _Iterop_getOneBusinessTable,
3068
+ Jt as _Iterop_getOneBusinessTableRows,
3069
+ At as _Iterop_jwtUser,
3070
+ Kt as _Iterop_runProcess,
3071
+ Bt as _Iterop_updateBusinessTable,
3072
+ Ae as _Registry_getServicesUrl,
3073
+ ke as _getMe,
3061
3074
  Z as _getPlateformInfos,
3062
- ke as _getPlatformServices,
3075
+ je as _getPlatformServices,
3063
3076
  J as _getServiceUrl,
3064
3077
  De as _getServiceUrl_3DPassport,
3065
3078
  kt as _getServiceUrl_Iterop,
3066
3079
  m as _httpCallAuthenticated,
3067
3080
  Re as _setDraggable,
3068
- je as _setDroppable,
3081
+ ve as _setDroppable,
3069
3082
  Fe as _setupTagger,
3070
- gt as addTagToDoc,
3083
+ ht as addTagToDoc,
3071
3084
  H as chunkArray,
3072
- Ae as compass_getListAdditionalApps,
3085
+ Pe as compass_getListAdditionalApps,
3073
3086
  z as couleurs,
3074
- Je as createUserGroups,
3087
+ Me as createUserGroups,
3075
3088
  pe as dataMixing,
3076
- Ke as deleteUserGroups,
3089
+ qe as deleteUserGroups,
3077
3090
  xe as findAdresse,
3078
- ct as getAllContextSecurity,
3091
+ dt as getAllContextSecurity,
3079
3092
  te as getCSRFToken,
3080
3093
  Ue as getCommunes,
3081
- Me as getComplementUG,
3082
- dt as getDataFrom3DSpace,
3094
+ Ge as getComplementUG,
3095
+ ut as getDataFrom3DSpace,
3083
3096
  Ie as getDataFromGouvFr,
3084
- ft as getDatasByTenant,
3085
- mt as getDatasFrom3DSpace,
3086
- ut as getDownloadDocument,
3087
- yt as getInfoDocTags,
3088
- Be as getUserGroupsByEmailList,
3097
+ mt as getDatasByTenant,
3098
+ gt as getDatasFrom3DSpace,
3099
+ pt as getDownloadDocument,
3100
+ _t as getInfoDocTags,
3101
+ Ke as getUserGroupsByEmailList,
3089
3102
  Ee as getUserGroupsByURIList,
3090
- Ge as getUserGroupsList,
3103
+ Be as getUserGroupsList,
3091
3104
  ee as getUsersGroupRules,
3092
- lt as get_3DSpace_csrf,
3093
- qe as patchUserGroups,
3094
- Xe as patchUserGroupsControl,
3095
- pt as pushDataIn3DSpace,
3096
- We as readUserGroupControl,
3097
- ht as removeTagToDoc,
3098
- Vt as sayHello,
3105
+ ft as get_3DSpace_csrf,
3106
+ Xe as patchUserGroups,
3107
+ We as patchUserGroupsControl,
3108
+ lt as pushDataIn3DSpace,
3109
+ Ve as readUserGroupControl,
3110
+ yt as removeTagToDoc,
3111
+ Yt as sayHello,
3099
3112
  Ne as updateEvent
3100
3113
  };
3101
3114
  //# sourceMappingURL=wb3Api.js.map