@beam3_dev/api_module 0.0.351 → 0.0.355

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 xe(e, n = void 0, t = void 0) {
38
- const i = parseInt(e);
38
+ const s = parseInt(e);
39
39
  await fetch(
40
- "https://apicarto.ign.fr/api/codes-postaux/communes/" + i,
40
+ "https://apicarto.ign.fr/api/codes-postaux/communes/" + s,
41
41
  {
42
42
  method: "GET",
43
43
  headers: {
44
44
  Accept: "application/json"
45
45
  }
46
46
  }
47
- ).then((s) => s.json()).then((s) => {
48
- n && n(s);
49
- }).catch((s) => {
50
- t && t(s), console.error("Erreur : " + s);
47
+ ).then((i) => i.json()).then((i) => {
48
+ n && n(i);
49
+ }).catch((i) => {
50
+ t && t(i), console.error("Erreur : " + i);
51
51
  });
52
52
  }
53
53
  async function Ue(e, n = void 0, t = void 0) {
@@ -59,17 +59,17 @@ async function Ue(e, n = void 0, t = void 0) {
59
59
  Accept: "application/json"
60
60
  }
61
61
  }
62
- ).then((i) => i.json()).then((i) => {
63
- n && n(i);
64
- }).catch((i) => {
65
- t && t(i), console.error("Erreur : " + i);
62
+ ).then((s) => s.json()).then((s) => {
63
+ n && n(s);
64
+ }).catch((s) => {
65
+ t && t(s), console.error("Erreur : " + s);
66
66
  });
67
67
  }
68
68
  async function Re(e, n = z) {
69
69
  let t = T.now().year;
70
- const i = e, s = [], r = (a) => {
70
+ const s = e, i = [], r = (a) => {
71
71
  for (let c in a)
72
- s.push({ date: c, comment: a[c] });
72
+ i.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 Re(e, n = z) {
84
84
  r(c);
85
85
  }).catch((c) => console.error("Erreur : " + c));
86
86
  return (() => {
87
- const a = i.length === 0 ? {
87
+ const a = s.length === 0 ? {
88
88
  events: []
89
- } : i;
90
- for (let c of s)
89
+ } : s;
90
+ for (let c of i)
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 Re(e, n = z) {
101
101
  })();
102
102
  }
103
103
  function H(e, n, t) {
104
- const { credentials: i, myArray: s, chunk: r, fn_to_call: o } = e, a = [];
105
- for (let c = 0; c < s.length; c += r) {
106
- const d = s.slice(c, c + r);
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);
107
107
  a.push(d);
108
108
  }
109
109
  Q(
110
- { credentials: i, chunks: a, initLoop: 0, fn: o },
110
+ { credentials: s, 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: i, chunks: s, initLoop: r, fn: o } = e, a = (c) => {
120
+ const { credentials: s, chunks: i, initLoop: r, fn: o } = e, a = (c) => {
121
121
  o(
122
- i,
123
- s[c],
122
+ s,
123
+ i[c],
124
124
  () => {
125
- c++, c < s.length && a(c);
125
+ c++, c < i.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 Fe(e, n, t = !0) {
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;
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;
140
140
  }
141
141
  function m(e, n) {
142
142
  $(["DS/WAFData/WAFData"], (t) => {
@@ -144,23 +144,23 @@ function m(e, n) {
144
144
  });
145
145
  }
146
146
  function Ne(e, n, t) {
147
- $(["DS/DataDragAndDrop/DataDragAndDrop"], (i) => {
148
- i.draggable(e, {
147
+ $(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
148
+ s.draggable(e, {
149
149
  data: n,
150
150
  start: t
151
151
  });
152
152
  });
153
153
  }
154
- function ke(e, n = void 0) {
154
+ function Ie(e, n = void 0) {
155
155
  $(["DS/TagNavigatorProxy/TagNavigatorProxy"], (t) => {
156
- let i;
157
- i === void 0 && (i = t.createProxy({
156
+ let s;
157
+ s === void 0 && (s = t.createProxy({
158
158
  widgetId: L.id,
159
159
  filteringMode: "WithFilteringServices"
160
- }), n !== void 0 && i.addEvent("onFilterSubjectsChange", n)), i.setSubjectsTags(e);
160
+ }), n !== void 0 && s.addEvent("onFilterSubjectsChange", n)), s.setSubjectsTags(e);
161
161
  });
162
162
  }
163
- function Ie(e, n) {
163
+ function ke(e, n) {
164
164
  $(["DS/DataDragAndDrop/DataDragAndDrop"], (t) => {
165
165
  t.droppable(e, {
166
166
  drop: n
@@ -170,9 +170,9 @@ function Ie(e, n) {
170
170
  async function je(e, n = void 0, t = void 0) {
171
171
  await $(
172
172
  ["DS/i3DXCompassServices/i3DXCompassServices"],
173
- (i) => {
173
+ (s) => {
174
174
  (!e || e === "") && (e = L.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), n && n(
175
- i.getPlatformServices({
175
+ s.getPlatformServices({
176
176
  platformId: e,
177
177
  onComplete: n,
178
178
  onFailure: t
@@ -184,88 +184,88 @@ async function je(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(), i = n.getUser(), s = n.getAllApplicationConfigurations(), r = n.getApplicationConfiguration(
187
+ const t = n.getTenant(), s = n.getUser(), i = n.getAllApplicationConfigurations(), r = n.getApplicationConfiguration(
188
188
  "com.3ds.wp.passport.cors"
189
189
  );
190
190
  e = {
191
191
  tenant: t,
192
- user: i,
193
- appsConfiguration: s,
192
+ user: s,
193
+ appsConfiguration: i,
194
194
  appConf: r
195
195
  };
196
196
  }), e;
197
197
  }
198
198
  function ve(e, n = void 0, t = void 0) {
199
199
  if (e.tenant) {
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;
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;
204
204
  r && "fields" in r ? n && n(r.fields) : t && t("_getMe return not find properties fields");
205
205
  },
206
- onFailure(s) {
207
- t && t("_getMe return error", s);
206
+ onFailure(i) {
207
+ t && t("_getMe return error", i);
208
208
  }
209
209
  });
210
210
  }
211
211
  }
212
212
  function J(e, n = void 0, t = void 0) {
213
213
  if (e.tenant) {
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;
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;
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(s) {
225
- t && t(s);
224
+ onFailure(i) {
225
+ t && t(i);
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 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);
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);
236
236
  if (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(s) {
242
- t && t(s);
241
+ onFailure(i) {
242
+ t && t(i);
243
243
  }
244
244
  });
245
245
  }
246
246
  }
247
247
  function Ae(e, n = void 0, t = void 0) {
248
248
  if (e.tenant) {
249
- const i = `https://eu1-registry.3dexperience.3ds.com/api/v1/platform/instance?id=${e.tenant.toLowerCase()}`;
250
- m(i, {
249
+ const s = `https://eu1-registry.3dexperience.3ds.com/api/v1/platform/instance?id=${e.tenant.toLowerCase()}`;
250
+ m(s, {
251
251
  type: "json",
252
- onComplete(s) {
253
- n && n(s);
252
+ onComplete(i) {
253
+ n && n(i);
254
254
  },
255
- onFailure(s) {
256
- t && t(s);
255
+ onFailure(i) {
256
+ t && t(i);
257
257
  }
258
258
  });
259
259
  }
260
260
  }
261
261
  function Pe(e, n, t) {
262
- const i = {
262
+ const s = {
263
263
  base: `${e.space}`,
264
264
  uri: "/resources/AppsMngt/api/custom/applications",
265
265
  option: `?filter=${e.tenant}`
266
266
  // facultatif
267
- }, s = `${i.base}${i.uri}${i.option}`;
268
- m(s, {
267
+ }, i = `${s.base}${s.uri}${s.option}`;
268
+ m(i, {
269
269
  method: "GET",
270
270
  headers: {
271
271
  "Content-Type": "application/json",
@@ -285,28 +285,28 @@ function Pe(e, n, t) {
285
285
  });
286
286
  }
287
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);
288
+ let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
289
+ m(s, {
290
+ onComplete(i, r, o) {
291
+ const a = JSON.parse(i);
292
292
  console.log("_AppMngt_get_users => ", a), n && n(a);
293
293
  },
294
- onFailure(s, r) {
295
- const o = s;
294
+ onFailure(i, r) {
295
+ const o = i;
296
296
  o.msg = r.errormsg, o.errCode = r.errorcode, t && t(o);
297
297
  }
298
298
  });
299
299
  }
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, {
300
+ function Je(e, n, t = void 0, s = void 0) {
301
+ let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${n}`;
302
+ m(i, {
303
303
  onComplete(r, o, a) {
304
304
  const c = JSON.parse(r);
305
305
  t && t(c);
306
306
  },
307
307
  onFailure(r, o) {
308
308
  const a = r;
309
- a.msg = o.errormsg, a.errCode = o.errorcode, i && i(a);
309
+ a.msg = o.errormsg, a.errCode = o.errorcode, s && s(a);
310
310
  }
311
311
  });
312
312
  }
@@ -314,8 +314,8 @@ const R = {
314
314
  "Content-Type": "application/json",
315
315
  Accept: "application/json,text/javascript,*/*"
316
316
  };
317
- function Me(e, n, t = void 0, i = void 0) {
318
- const { space: s, currentUser: r } = e, a = `${s}${{
317
+ function Me(e, n, t = void 0, s = void 0) {
318
+ const { space: i, currentUser: r } = e, a = `${i}${{
319
319
  URIUGr: "/3drdfpersist/resources/v1/usersgroup"
320
320
  }.URIUGr}`, c = {
321
321
  groups: [
@@ -339,12 +339,12 @@ function Me(e, n, t = void 0, i = void 0) {
339
339
  onFailure(d, u) {
340
340
  console.log(d);
341
341
  const p = d;
342
- p.msg = u.errormsg, p.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", p), i && i(p);
342
+ p.msg = u.errormsg, p.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", p), s && s(p);
343
343
  }
344
344
  });
345
345
  }
346
- function Ge(e, n, t = void 0, i = void 0) {
347
- const { space: s, tenant: r } = e, o = s, a = `/3drdfpersist/v1/resources/${n}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${o}${a}${c}`;
346
+ function Ge(e, n, t = void 0, s = void 0) {
347
+ 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}`;
348
348
  m(d, {
349
349
  opts: {
350
350
  method: "GET",
@@ -358,12 +358,12 @@ function Ge(e, n, t = void 0, i = void 0) {
358
358
  },
359
359
  onFailure(f, l) {
360
360
  const g = f;
361
- g.msg = l.errormsg, g.errCode = l.errorcode, i && i(g);
361
+ g.msg = l.errormsg, g.errCode = l.errorcode, s && s(g);
362
362
  }
363
363
  });
364
364
  }
365
365
  function ee(e, n = void 0, t = void 0) {
366
- const { _usersgroup: i, tenant: s } = e, r = i, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${s}`, c = {
366
+ const { _usersgroup: s, tenant: i } = e, r = s, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, c = {
367
367
  method: "GET",
368
368
  Accept: "application/json,*/*,test/javascript"
369
369
  }, d = `${r}${o}${a}`;
@@ -379,9 +379,9 @@ function ee(e, n = void 0, t = void 0) {
379
379
  });
380
380
  }
381
381
  function Be(e, n = void 0, t = void 0) {
382
- const { _usersgroup: i, currentUser: s, numMax: r } = e;
382
+ const { _usersgroup: s, currentUser: i, numMax: r } = e;
383
383
  r || (r = 50);
384
- const o = "/3drdfpersist/resources/v1/usersgroup", a = "?select=uri,title,owner,members", c = `&top=${r}`, d = `${i}${o}${a}${c}`, p = { method: "GET", headers: {
384
+ const o = "/3drdfpersist/resources/v1/usersgroup", a = "?select=uri,title,owner,members", c = `&top=${r}`, d = `${s}${o}${a}${c}`, p = { method: "GET", headers: {
385
385
  "Content-Type": "application/json",
386
386
  Accept: "application/json,text/javascript,*/*"
387
387
  } };
@@ -390,8 +390,8 @@ function Be(e, n = void 0, t = void 0) {
390
390
  opts: p,
391
391
  onComplete(f) {
392
392
  const l = JSON.parse(f), g = {}, h = l.groups.filter((y) => y.uri.startsWith("uuid:"));
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);
393
+ if (i && Object.keys(i).length > 0) {
394
+ const y = h.filter((_) => _.owner === i.email), S = h.filter((_) => _.members.includes(i.email)), w = y.concat(S);
395
395
  g.iam = w, g.UG = h, g.iamMember = S, ee(
396
396
  e,
397
397
  (_) => {
@@ -421,19 +421,19 @@ function Be(e, n = void 0, t = void 0) {
421
421
  }
422
422
  }
423
423
  function Ee(e, n, t) {
424
- const { _usersgroup: i, list_uris: s } = e;
425
- if (!s || s.length === 0) {
424
+ const { _usersgroup: s, list_uris: i } = e;
425
+ if (!i || i.length === 0) {
426
426
  t({ msg: "getUserGroupsByURIList: lists_uri is empty or undefined" });
427
427
  return;
428
428
  }
429
429
  const r = {
430
- baseUrl: i,
430
+ baseUrl: s,
431
431
  uri: "/3drdfpersist/resources/v1/usersgroup/groups",
432
432
  opt: "?select=uri,title,owner,members"
433
433
  }, o = `${r.baseUrl}${r.uri}${r.opt}`, a = {
434
434
  method: "POST",
435
435
  headers: R,
436
- data: JSON.stringify({ groups: s })
436
+ data: JSON.stringify({ groups: i })
437
437
  };
438
438
  try {
439
439
  m(o, {
@@ -466,21 +466,21 @@ function Ee(e, n, t) {
466
466
  }
467
467
  }
468
468
  function Ke(e, n, t) {
469
- const { _usersgroup: i, list_emails: s } = e;
470
- if (!s || s.length === 0) {
469
+ const { _usersgroup: s, list_emails: i } = e;
470
+ if (!i || i.length === 0) {
471
471
  t({
472
472
  msg: "getUserGroupsByEmailList: lists_email is empty or undefined"
473
473
  });
474
474
  return;
475
475
  }
476
476
  const r = {
477
- baseUrl: i,
477
+ baseUrl: s,
478
478
  uri: "/3drdfpersist/resources/v1/usersgroup/users/locate",
479
479
  opt: "?person_ident=email"
480
480
  }, o = `${r.baseUrl}${r.uri}${r.opt}`, a = {
481
481
  method: "POST",
482
482
  headers: R,
483
- data: JSON.stringify({ users: s })
483
+ data: JSON.stringify({ users: i })
484
484
  };
485
485
  try {
486
486
  m(o, {
@@ -519,12 +519,12 @@ function Ke(e, n, t) {
519
519
  }
520
520
  }
521
521
  function qe(e, n) {
522
- const { space: t } = e, s = `${t}/3drdfpersist/resources/v1/usersgroup/${n}`;
523
- m(s, {
522
+ const { space: t } = e, i = `${t}/3drdfpersist/resources/v1/usersgroup/${n}`;
523
+ m(i, {
524
524
  method: "DELETE"
525
525
  });
526
526
  }
527
- function Xe(e, n, t, i = void 0, s = void 0) {
527
+ function Xe(e, n, t, s = void 0, i = void 0) {
528
528
  const { space: r, tenant: o } = e, a = {
529
529
  URITI: "/3drdfpersist/resources/v1/template-instances",
530
530
  URIUGr: "/3drdfpersist/resources/v1/usersgroup",
@@ -540,14 +540,14 @@ function Xe(e, n, t, i = void 0, s = void 0) {
540
540
  data: u,
541
541
  type: "json",
542
542
  onComplete(p) {
543
- i && i(p);
543
+ s && s(p);
544
544
  },
545
545
  onFailure(p) {
546
- s && s(p);
546
+ i && i(p);
547
547
  }
548
548
  });
549
549
  }
550
- function We(e, n, t, i = void 0, s = void 0) {
550
+ function We(e, n, t, s = void 0, i = void 0) {
551
551
  const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${n}/sharing`;
552
552
  m(a, {
553
553
  method: "PATCH",
@@ -555,15 +555,15 @@ function We(e, n, t, i = void 0, s = void 0) {
555
555
  data: JSON.stringify(t),
556
556
  type: "json",
557
557
  onComplete(d) {
558
- i && i(d);
558
+ s && s(d);
559
559
  },
560
560
  onFailure(d) {
561
- s && s(d);
561
+ i && i(d);
562
562
  }
563
563
  });
564
564
  }
565
- function Ve(e, n, t = void 0, i = void 0) {
566
- const { space: s } = e, o = `${s}/3drdfpersist/resources/v1/usersgroup/${n}/sharing`;
565
+ function Ve(e, n, t = void 0, s = void 0) {
566
+ const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${n}/sharing`;
567
567
  m(o, {
568
568
  opts: {
569
569
  method: "GET",
@@ -576,19 +576,19 @@ function Ve(e, n, t = void 0, i = void 0) {
576
576
  t && t(JSON.parse(d));
577
577
  },
578
578
  onFailure(d) {
579
- i && i(d);
579
+ s && s(d);
580
580
  }
581
581
  });
582
582
  }
583
583
  async function te(e, n, t) {
584
584
  if (e.space) {
585
- const i = `${e.space}/resources/v1/application/CSRF`;
586
- m(i, {
587
- onComplete(s) {
588
- s = JSON.parse(s), n && n(s.csrf);
585
+ const s = `${e.space}/resources/v1/application/CSRF`;
586
+ m(s, {
587
+ onComplete(i) {
588
+ i = JSON.parse(i), n && n(i.csrf);
589
589
  },
590
- onFailure(s, r, o) {
591
- t && t({ error: s, headers: r, xhr: o });
590
+ onFailure(i, r, o) {
591
+ t && t({ error: i, headers: r, xhr: o });
592
592
  }
593
593
  });
594
594
  }
@@ -597,22 +597,22 @@ var U = {};
597
597
  function ne(e, n) {
598
598
  return Object.prototype.hasOwnProperty.call(e, n);
599
599
  }
600
- var se = function(e, n, t, i) {
600
+ var se = function(e, n, t, s) {
601
601
  n = n || "&", t = t || "=";
602
- var s = {};
602
+ var i = {};
603
603
  if (typeof e != "string" || e.length === 0)
604
- return s;
604
+ return i;
605
605
  var r = /\+/g;
606
606
  e = e.split(n);
607
607
  var o = 1e3;
608
- i && typeof i.maxKeys == "number" && (o = i.maxKeys);
608
+ s && typeof s.maxKeys == "number" && (o = s.maxKeys);
609
609
  var a = e.length;
610
610
  o > 0 && a > o && (a = o);
611
611
  for (var c = 0; c < a; ++c) {
612
612
  var d = e[c].replace(r, "%20"), u = d.indexOf(t), p, f, 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;
613
+ 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;
614
614
  }
615
- return s;
615
+ return i;
616
616
  }, x = function(e) {
617
617
  switch (typeof e) {
618
618
  case "string":
@@ -624,40 +624,40 @@ var se = function(e, n, t, i) {
624
624
  default:
625
625
  return "";
626
626
  }
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(x(s)) + t;
630
- return Array.isArray(e[s]) ? e[s].map(function(o) {
627
+ }, ie = function(e, n, t, s) {
628
+ return n = n || "&", t = t || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
629
+ var r = encodeURIComponent(x(i)) + t;
630
+ return Array.isArray(e[i]) ? e[i].map(function(o) {
631
631
  return r + encodeURIComponent(x(o));
632
- }).join(n) : r + encodeURIComponent(x(e[s]));
633
- }).filter(Boolean).join(n) : i ? encodeURIComponent(x(i)) + t + encodeURIComponent(x(e)) : "";
632
+ }).join(n) : r + encodeURIComponent(x(e[i]));
633
+ }).filter(Boolean).join(n) : s ? encodeURIComponent(x(s)) + t + encodeURIComponent(x(e)) : "";
634
634
  };
635
635
  U.decode = U.parse = se;
636
636
  U.encode = U.stringify = ie;
637
- async function M(e, n = void 0, t = void 0, i = void 0) {
638
- const s = e.space;
637
+ async function M(e, n = void 0, t = void 0, s = void 0) {
638
+ const i = e.space;
639
639
  if (n === void 0) {
640
640
  console.log("Le paramètre docid est obligatoire");
641
641
  return;
642
642
  }
643
- const r = s + `/resources/v1/modeler/documents/${n}`;
643
+ const r = i + `/resources/v1/modeler/documents/${n}`;
644
644
  m(r, {
645
645
  onComplete(o, a, c) {
646
646
  const d = JSON.parse(o);
647
647
  t && t(d);
648
648
  },
649
649
  onFailure(o) {
650
- i && i(o);
650
+ s && s(o);
651
651
  }
652
652
  });
653
653
  }
654
- async function Ye(e, n = void 0, t = void 0, i = void 0) {
655
- const s = e.space;
654
+ async function Ye(e, n = void 0, t = void 0, s = void 0) {
655
+ const i = e.space;
656
656
  if (n === void 0) {
657
657
  console.log("Le paramètre docids est obligatoire");
658
658
  return;
659
659
  }
660
- let r = `${s}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = U.stringify({
660
+ let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = U.stringify({
661
661
  $ids: n.toString().replace('"', "").replace("[", "").replace("]", "")
662
662
  });
663
663
  m(r, {
@@ -671,44 +671,69 @@ async function Ye(e, n = void 0, t = void 0, i = void 0) {
671
671
  t && t(u);
672
672
  },
673
673
  onFailure(a) {
674
- i && i(a);
674
+ s && s(a);
675
675
  }
676
676
  });
677
677
  }
678
678
  function N(e, n = void 0, t = void 0) {
679
679
  if (e.objID && e.objID !== "") {
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);
680
+ let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
681
+ m(s, {
682
+ onComplete(i, r, o) {
683
+ const a = JSON.parse(i);
684
684
  e.success = !0, e.token = a?.csrf?.value, e.datas = a?.data[0], n && n(e);
685
685
  },
686
- onFailure(s) {
687
- t && t(s);
686
+ onFailure(i) {
687
+ t && t(i);
688
688
  }
689
689
  });
690
690
  } else
691
691
  b(
692
692
  e,
693
- (i) => {
694
- console.log("_3DSpace_get_csrf / _3DSpace_csrf", i), e.token = i, n && n(e);
693
+ (s) => {
694
+ console.log("_3DSpace_get_csrf / _3DSpace_csrf", s), e.token = s, n && n(e);
695
695
  },
696
- (i) => {
697
- t && t(i);
696
+ (s) => {
697
+ t && t(s);
698
698
  }
699
699
  );
700
700
  }
701
+ function ze(e) {
702
+ return new Promise((n, t) => {
703
+ if (e.objID && e.objID !== "") {
704
+ let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
705
+ m(s, {
706
+ onComplete(i, r, o) {
707
+ const a = JSON.parse(i);
708
+ e.success = !0, e.csrf = a?.csrf?.value, e.datas = a?.data[0], n(e);
709
+ },
710
+ onFailure(i) {
711
+ t({ success: !1, credentials: e, error: i });
712
+ }
713
+ });
714
+ } else
715
+ b(
716
+ e,
717
+ (s) => {
718
+ e.success = !0, e.csrf = s, n(e);
719
+ },
720
+ (s) => {
721
+ t({ success: !1, credentials: e, error: s });
722
+ }
723
+ );
724
+ });
725
+ }
701
726
  function b(e, n = void 0, t = void 0) {
702
727
  if (e.space) {
703
- const i = e.space + "/resources/v1/application/CSRF";
704
- m(i, {
705
- onComplete(s, r, o) {
706
- const a = JSON.parse(s);
728
+ const s = e.space + "/resources/v1/application/CSRF";
729
+ m(s, {
730
+ onComplete(i, r, o) {
731
+ const a = JSON.parse(i);
707
732
  n && n(a.csrf.value);
708
733
  },
709
- onFailure(s, r, o) {
734
+ onFailure(i, r, o) {
710
735
  t && t({
711
- response: s,
736
+ response: i,
712
737
  headers: r,
713
738
  xhr: o
714
739
  });
@@ -718,11 +743,11 @@ function b(e, n = void 0, t = void 0) {
718
743
  t && t("ERROR : url du 3DSpace non défini.");
719
744
  }
720
745
  function j(e, n = void 0, t = void 0) {
721
- let i = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
746
+ let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
722
747
  N(
723
748
  e,
724
- (s) => {
725
- m(i, {
749
+ (i) => {
750
+ m(s, {
726
751
  method: "PUT",
727
752
  headers: {
728
753
  ENO_CSRF_TOKEN: e.token
@@ -736,12 +761,12 @@ function j(e, n = void 0, t = void 0) {
736
761
  }
737
762
  });
738
763
  },
739
- (s) => {
740
- console.warn("_3DSpace_get_ticket / error => ", s), t && t(s);
764
+ (i) => {
765
+ console.warn("_3DSpace_get_ticket / error => ", i), t && t(i);
741
766
  }
742
767
  );
743
768
  }
744
- function ze(e, n, t = void 0, i = void 0, s = void 0) {
769
+ function He(e, n, t = void 0, s = void 0, i = void 0) {
745
770
  const r = `${e.space}/resources/v1/modeler/documents/${n}/files/DownloadTicket`;
746
771
  t || (t = e.token), m(r, {
747
772
  method: "PUT",
@@ -753,23 +778,23 @@ function ze(e, n, t = void 0, i = void 0, s = void 0) {
753
778
  if (console.log("☠️ info => ", a), a.success === !0)
754
779
  try {
755
780
  const c = a.data[0].dataelements.ticketURL;
756
- i && i(c);
757
- } catch (c) {
758
781
  s && s(c);
782
+ } catch (c) {
783
+ i && i(c);
759
784
  }
760
785
  },
761
786
  onFailure(o) {
762
- s && s(o);
787
+ i && i(o);
763
788
  }
764
789
  });
765
790
  }
766
- function G(e, n, t, i, s, r = void 0, o = void 0) {
791
+ function G(e, n, t, s, i, r = void 0, o = void 0) {
767
792
  const a = () => oe(
768
793
  e,
769
794
  n,
770
795
  t,
771
- i,
772
796
  s,
797
+ i,
773
798
  e.token,
774
799
  r,
775
800
  o
@@ -785,7 +810,7 @@ function G(e, n, t, i, s, r = void 0, o = void 0) {
785
810
  }
786
811
  );
787
812
  }
788
- function oe(e, n, t, i, s, r, o = void 0, a = void 0) {
813
+ function oe(e, n, t, s, i, r, o = void 0, a = void 0) {
789
814
  const c = e.space + `/resources/v1/modeler/documents/files/CheckinTicket?tenant=${e.tenant.toUpperCase()}&e6w-lang=fr&e6w-timezone=-60&xrequestedwith=xmlhttprequest`;
790
815
  m(c, {
791
816
  method: "PUT",
@@ -803,9 +828,9 @@ function oe(e, n, t, i, s, r, o = void 0, a = void 0) {
803
828
  onComplete(d, u, p) {
804
829
  const f = d.csrf, l = d.data[0].dataelements, g = new FormData();
805
830
  let h;
806
- i instanceof Blob ? h = i : h = new Blob([i], {
831
+ s instanceof Blob ? h = s : h = new Blob([s], {
807
832
  type: "text/plain"
808
- }), g.append(l.ticketparamname, l.ticket), g.append("file_0", h, s);
833
+ }), g.append(l.ticketparamname, l.ticket), g.append("file_0", h, i);
809
834
  const y = {};
810
835
  y.method = "POST", y.data = g, y.onComplete = function(S) {
811
836
  let w = {
@@ -821,7 +846,7 @@ function oe(e, n, t, i, s, r, o = void 0, a = void 0) {
821
846
  files: [
822
847
  {
823
848
  dataelements: {
824
- title: s,
849
+ title: i,
825
850
  receipt: S
826
851
  },
827
852
  updateAction: "REVISE"
@@ -851,11 +876,11 @@ function oe(e, n, t, i, s, r, o = void 0, a = void 0) {
851
876
  }
852
877
  });
853
878
  }
854
- async function He(e, n, t = void 0, i = void 0) {
879
+ async function Qe(e, n, t = void 0, s = void 0) {
855
880
  e.space, e.token, e.ctx;
856
- const s = e?.description, r = e?.title;
881
+ const i = e?.description, r = e?.title;
857
882
  if (!n) {
858
- console.warn("Error: docId undefined"), i && i("Error: docId undefined");
883
+ console.warn("Error: docId undefined"), s && s("Error: docId undefined");
859
884
  return;
860
885
  }
861
886
  let o = `${e.space}/resources/v1/modeler/documents/${n}`;
@@ -863,7 +888,7 @@ async function He(e, n, t = void 0, i = void 0) {
863
888
  data: [
864
889
  {
865
890
  dataelements: {
866
- description: s,
891
+ description: i,
867
892
  title: r
868
893
  }
869
894
  }
@@ -880,18 +905,18 @@ async function He(e, n, t = void 0, i = void 0) {
880
905
  t && t(c);
881
906
  },
882
907
  onFailure(c) {
883
- i && i(c);
908
+ s && s(c);
884
909
  }
885
910
  });
886
911
  }
887
- async function Qe(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0) {
912
+ async function Ze(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0) {
888
913
  let { tenant: o, cs_name: a } = e;
889
914
  if (!o && !a) {
890
- s && s("Credentials undefined");
915
+ i && i("Credentials undefined");
891
916
  return;
892
917
  }
893
918
  if (!n && !t) {
894
- s && s("Définition du fichier undefined");
919
+ i && i("Définition du fichier undefined");
895
920
  return;
896
921
  }
897
922
  const c = T.now().ts;
@@ -921,12 +946,12 @@ async function Qe(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0)
921
946
  t,
922
947
  n,
923
948
  (_) => {
924
- const I = new DOMParser().parseFromString(
949
+ const k = new DOMParser().parseFromString(
925
950
  _,
926
951
  "text/html"
927
952
  ).body.firstChild.querySelector("input").getAttributeNode("value").value, v = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(
928
953
  a
929
- )}/contents?receipt=${encodeURIComponent(I)}`;
954
+ )}/contents?receipt=${encodeURIComponent(k)}`;
930
955
  let W = /(?:\.([^.]+))?$/.exec(n)[1];
931
956
  const D = JSON.stringify({
932
957
  actions: [],
@@ -954,18 +979,18 @@ async function Qe(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0)
954
979
  data: D,
955
980
  type: "json",
956
981
  onComplete(F, Ce, be) {
957
- i && i(F);
982
+ s && s(F);
958
983
  },
959
984
  onFailure(F) {
960
985
  console.warn(
961
986
  "_3DSpace_Upload_Doc | pushFileInFcs | onFailure",
962
987
  { url: v, bodyRequest: D, err: F }
963
- ), s && s(F);
988
+ ), i && i(F);
964
989
  }
965
990
  });
966
991
  },
967
992
  (_) => {
968
- console.warn("pushFileInFcs", _), s && s(_);
993
+ console.warn("pushFileInFcs", _), i && i(_);
969
994
  },
970
995
  (_) => {
971
996
  r && r({ fileName: n, progress: _ });
@@ -973,24 +998,24 @@ async function Qe(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0)
973
998
  );
974
999
  }
975
1000
  } catch (y) {
976
- s && s(y);
1001
+ i && i(y);
977
1002
  }
978
1003
  },
979
1004
  onFailure(l) {
980
- console.warn("_3DSpace_Upload_Doc | onFailure"), s && s(l);
1005
+ console.warn("_3DSpace_Upload_Doc | onFailure"), i && i(l);
981
1006
  }
982
1007
  });
983
1008
  } catch {
984
- s && s();
1009
+ i && i();
985
1010
  }
986
1011
  },
987
1012
  onFailure(u) {
988
- s && s(u);
1013
+ i && i(u);
989
1014
  }
990
1015
  }
991
1016
  );
992
1017
  }
993
- async function Ze(e, n, t, i = void 0, s = void 0) {
1018
+ async function et(e, n, t, s = void 0, i = void 0) {
994
1019
  e.space, e.token, e.ctx, M(
995
1020
  e,
996
1021
  n,
@@ -1003,19 +1028,19 @@ async function Ze(e, n, t, i = void 0, s = void 0) {
1003
1028
  t,
1004
1029
  a,
1005
1030
  (c) => {
1006
- i && i(c);
1031
+ s && s(c);
1007
1032
  },
1008
1033
  (c) => {
1009
- s && s(c);
1034
+ i && i(c);
1010
1035
  }
1011
1036
  );
1012
1037
  },
1013
1038
  (r) => {
1014
- s && s(r);
1039
+ i && i(r);
1015
1040
  }
1016
1041
  );
1017
1042
  }
1018
- async function et(e, n, t, i, s = void 0, r = void 0) {
1043
+ async function tt(e, n, t, s, i = void 0, r = void 0) {
1019
1044
  ae(
1020
1045
  e,
1021
1046
  (o) => {
@@ -1029,9 +1054,9 @@ async function et(e, n, t, i, s = void 0, r = void 0) {
1029
1054
  e,
1030
1055
  c,
1031
1056
  t,
1032
- i,
1057
+ s,
1033
1058
  (d) => {
1034
- d?.data.length ? s && s(d) : r && r({
1059
+ d?.data.length ? i && i(d) : r && r({
1035
1060
  success: !1,
1036
1061
  msg: "Erreur lors de la mise en ralation entre la document et le fichier"
1037
1062
  });
@@ -1048,8 +1073,8 @@ async function et(e, n, t, i, s = void 0, r = void 0) {
1048
1073
  }
1049
1074
  function ae(e, n = void 0, t = void 0) {
1050
1075
  if (e?.space && e.token && e.ctx) {
1051
- let i = `${e.space}/resources/v1/modeler/documents/files/CheckinTicket`;
1052
- m(i, {
1076
+ let s = `${e.space}/resources/v1/modeler/documents/files/CheckinTicket`;
1077
+ m(s, {
1053
1078
  method: "PUT",
1054
1079
  headers: {
1055
1080
  ENO_CSRF_TOKEN: e.token,
@@ -1057,21 +1082,21 @@ function ae(e, n = void 0, t = void 0) {
1057
1082
  "Content-Type": "application/json",
1058
1083
  SecurityContext: e.ctx
1059
1084
  },
1060
- onComplete(s, r, o) {
1085
+ onComplete(i, r, o) {
1061
1086
  try {
1062
- s = JSON.parse(s);
1087
+ i = JSON.parse(i);
1063
1088
  } catch {
1064
1089
  }
1065
- n && n(s);
1090
+ n && n(i);
1066
1091
  },
1067
- onFailure(s) {
1068
- t && t(s);
1092
+ onFailure(i) {
1093
+ t && t(i);
1069
1094
  }
1070
1095
  });
1071
1096
  } else
1072
1097
  console.log("Error de credentials", e);
1073
1098
  }
1074
- function B(e, n, t, i = void 0, s = void 0, r = void 0) {
1099
+ function B(e, n, t, s = void 0, i = void 0, r = void 0) {
1075
1100
  console.log("pushFileInFcs", { fcs__jobTicket: e, fileData: n, fileName: t });
1076
1101
  let o = new FormData();
1077
1102
  n instanceof Blob || (n = new Blob([n], {
@@ -1085,12 +1110,12 @@ function B(e, n, t, i = void 0, s = void 0, r = void 0) {
1085
1110
  r && r(u);
1086
1111
  }
1087
1112
  }, c.onload = function() {
1088
- c.status === 200 ? i && i(c.responseText.replace(/[\n\r]/g, "")) : s && s(c.statusText);
1113
+ c.status === 200 ? s && s(c.responseText.replace(/[\n\r]/g, "")) : i && i(c.statusText);
1089
1114
  }, c.onerror = function() {
1090
- s && s(c.statusText);
1115
+ i && i(c.statusText);
1091
1116
  }, c.send(o);
1092
1117
  }
1093
- function re(e, n, t, i = void 0, s = void 0, r = void 0) {
1118
+ function re(e, n, t, s = void 0, i = void 0, r = void 0) {
1094
1119
  console.log("relatedDocAndFile", { credentials: e, receipt: n, filename: t });
1095
1120
  const o = (d) => d.indexOf(".") === -1 ? d : d.split(".").slice(0, -1).join(".");
1096
1121
  let a = "temp_" + T.now().ts, c = e.space + "/resources/v1/modeler/documents/?e6w-lang=fr&e6w-timezone=-120&xrequestedwith=xmlhttprequest";
@@ -1108,7 +1133,7 @@ function re(e, n, t, i = void 0, s = void 0, r = void 0) {
1108
1133
  type: "Document",
1109
1134
  dataelements: {
1110
1135
  title: o(t),
1111
- description: i
1136
+ description: s
1112
1137
  },
1113
1138
  relateddata: {
1114
1139
  files: [
@@ -1130,14 +1155,14 @@ function re(e, n, t, i = void 0, s = void 0, r = void 0) {
1130
1155
  d = JSON.parse(d);
1131
1156
  } catch {
1132
1157
  }
1133
- s && s(d);
1158
+ i && i(d);
1134
1159
  },
1135
1160
  onFailure(d) {
1136
1161
  r && r(d);
1137
1162
  }
1138
1163
  });
1139
1164
  }
1140
- function k(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0, o = !1) {
1165
+ function I(e, n = void 0, t = void 0, s = void 0, i = void 0, r = void 0, o = !1) {
1141
1166
  const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
1142
1167
  m(a, {
1143
1168
  method: "GET",
@@ -1155,8 +1180,8 @@ function k(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0, o = !1
1155
1180
  )
1156
1181
  ), t && (Array.isArray(t) ? t.forEach((y) => {
1157
1182
  l || h.forEach((S) => {
1158
- if (y === S.role.name && i === S.organization.title)
1159
- l = y, f = i;
1183
+ if (y === S.role.name && s === S.organization.title)
1184
+ l = y, f = s;
1160
1185
  else if (y === S.role.name) {
1161
1186
  let w = h.filter(
1162
1187
  (_) => _.role.name === y
@@ -1165,8 +1190,8 @@ function k(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0, o = !1
1165
1190
  }
1166
1191
  });
1167
1192
  }) : h.forEach((y) => {
1168
- if (t === y.role.name && i === y.organization.title)
1169
- l = t, f = i;
1193
+ if (t === y.role.name && s === y.organization.title)
1194
+ l = t, f = s;
1170
1195
  else if (t === y.role.name) {
1171
1196
  let S = h.filter(
1172
1197
  (w) => w.role.name === t
@@ -1176,7 +1201,7 @@ function k(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0, o = !1
1176
1201
  }));
1177
1202
  }
1178
1203
  }
1179
- 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));
1204
+ 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));
1180
1205
  },
1181
1206
  onFailure(c, d) {
1182
1207
  console.warn("Erreur de récupération du contexte de sécurité. => ", {
@@ -1195,13 +1220,13 @@ async function E(e, n = void 0, t = void 0) {
1195
1220
  "_3DSpace_download_doc() / Le paramètre space est obligatoire"
1196
1221
  ), t && t("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) && te(
1197
1222
  e,
1198
- (i) => {
1199
- e.token = i;
1223
+ (s) => {
1224
+ e.token = s;
1200
1225
  },
1201
- (i) => {
1202
- console.log("☠️ error => ", i);
1226
+ (s) => {
1227
+ console.log("☠️ error => ", s);
1203
1228
  }
1204
- ), new Promise((i, s) => {
1229
+ ), new Promise((s, i) => {
1205
1230
  j(
1206
1231
  e,
1207
1232
  (r) => {
@@ -1217,14 +1242,14 @@ async function E(e, n = void 0, t = void 0) {
1217
1242
  } catch {
1218
1243
  a = o;
1219
1244
  }
1220
- n && typeof n == "function" && n(a), i(a);
1245
+ n && typeof n == "function" && n(a), s(a);
1221
1246
  },
1222
1247
  onFailure(o, a, c) {
1223
1248
  t && (console.log("error http", o), t({
1224
1249
  msg: JSON.parse(o),
1225
1250
  headers: a,
1226
1251
  xhr: c
1227
- }), s({
1252
+ }), i({
1228
1253
  msg: JSON.parse(o),
1229
1254
  headers: a,
1230
1255
  xhr: c
@@ -1233,12 +1258,12 @@ async function E(e, n = void 0, t = void 0) {
1233
1258
  });
1234
1259
  },
1235
1260
  (r) => {
1236
- t && t(r), console.log("*_3dspace_download_doc / error file URL *", r), s(r);
1261
+ t && t(r), console.log("*_3dspace_download_doc / error file URL *", r), i(r);
1237
1262
  }
1238
1263
  );
1239
1264
  });
1240
1265
  }
1241
- async function ce(e, n, t = void 0, i = void 0) {
1266
+ async function ce(e, n, t = void 0, s = void 0) {
1242
1267
  typeof n < "u" && Array.isArray(n) && n?.length > 0 ? H({
1243
1268
  credentials: e,
1244
1269
  myArray: n,
@@ -1248,11 +1273,11 @@ async function ce(e, n, t = void 0, i = void 0) {
1248
1273
  t && t(r);
1249
1274
  }) : (console.warn(
1250
1275
  "La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
1251
- ), i && i(
1276
+ ), s && s(
1252
1277
  "La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
1253
1278
  ));
1254
1279
  }
1255
- function de(e, n, t = void 0, i = void 0, s = void 0) {
1280
+ function de(e, n, t = void 0, s = void 0, i = void 0) {
1256
1281
  const r = [];
1257
1282
  n.forEach((c) => {
1258
1283
  r.push({
@@ -1284,7 +1309,7 @@ function de(e, n, t = void 0, i = void 0, s = void 0) {
1284
1309
  } catch {
1285
1310
  h = l.blob();
1286
1311
  }
1287
- i && i({
1312
+ s && s({
1288
1313
  objectId: u.id,
1289
1314
  headers: g,
1290
1315
  fileName: p,
@@ -1296,17 +1321,17 @@ function de(e, n, t = void 0, i = void 0, s = void 0) {
1296
1321
  }
1297
1322
  });
1298
1323
  } catch (p) {
1299
- console.log(p), s && s(p);
1324
+ console.log(p), i && i(p);
1300
1325
  }
1301
1326
  }));
1302
1327
  },
1303
1328
  onFailure(c) {
1304
- console.log(c), s && s(c);
1329
+ console.log(c), i && i(c);
1305
1330
  }
1306
1331
  });
1307
1332
  }
1308
- function tt(e, n, t = void 0, i = void 0) {
1309
- return new Promise((s) => {
1333
+ function nt(e, n, t = void 0, s = void 0) {
1334
+ return new Promise((i) => {
1310
1335
  if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
1311
1336
  const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
1312
1337
  let o = {
@@ -1329,14 +1354,14 @@ function tt(e, n, t = void 0, i = void 0) {
1329
1354
  t && t(a);
1330
1355
  },
1331
1356
  onFailure(a) {
1332
- i && i(a);
1357
+ s && s(a);
1333
1358
  }
1334
1359
  };
1335
1360
  m(r, o);
1336
1361
  }
1337
1362
  });
1338
1363
  }
1339
- function nt(e, n, t, i = void 0, s = void 0) {
1364
+ function st(e, n, t, s = void 0, i = void 0) {
1340
1365
  return new Promise((r) => {
1341
1366
  if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
1342
1367
  const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
@@ -1358,21 +1383,21 @@ function nt(e, n, t, i = void 0, s = void 0) {
1358
1383
  }),
1359
1384
  type: "json",
1360
1385
  onComplete(c) {
1361
- i && i(c);
1386
+ s && s(c);
1362
1387
  },
1363
1388
  onFailure(c) {
1364
- s && s(c);
1389
+ i && i(c);
1365
1390
  }
1366
1391
  };
1367
1392
  m(o, a);
1368
1393
  }
1369
1394
  });
1370
1395
  }
1371
- function st(e, n, t = void 0, i = void 0) {
1372
- return new Promise((s) => {
1396
+ function it(e, n, t = void 0, s = void 0) {
1397
+ return new Promise((i) => {
1373
1398
  if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
1374
1399
  const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
1375
- k(
1400
+ I(
1376
1401
  e.space,
1377
1402
  "ESPACE COMMUN",
1378
1403
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1402,18 +1427,18 @@ function st(e, n, t = void 0, i = void 0) {
1402
1427
  t && t(a);
1403
1428
  },
1404
1429
  onFailure(a) {
1405
- i && i(a);
1430
+ s && s(a);
1406
1431
  }
1407
1432
  };
1408
1433
  m(r, o);
1409
1434
  }
1410
1435
  });
1411
1436
  }
1412
- function it(e, n, t = void 0, i = void 0) {
1413
- return new Promise((s) => {
1437
+ function ot(e, n, t = void 0, s = void 0) {
1438
+ return new Promise((i) => {
1414
1439
  if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
1415
1440
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
1416
- k(
1441
+ I(
1417
1442
  e.space,
1418
1443
  "ESPACE COMMUN",
1419
1444
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1449,18 +1474,18 @@ function it(e, n, t = void 0, i = void 0) {
1449
1474
  t && t(a);
1450
1475
  },
1451
1476
  onFailure(a) {
1452
- i && i(a);
1477
+ s && s(a);
1453
1478
  }
1454
1479
  };
1455
1480
  m(r, o);
1456
1481
  }
1457
1482
  });
1458
1483
  }
1459
- function ot(e, n, t, i = void 0, s = void 0) {
1484
+ function at(e, n, t, s = void 0, i = void 0) {
1460
1485
  return new Promise((r) => {
1461
1486
  if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
1462
1487
  const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
1463
- k(
1488
+ I(
1464
1489
  e.space,
1465
1490
  "ESPACE COMMUN",
1466
1491
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1493,10 +1518,10 @@ function ot(e, n, t, i = void 0, s = void 0) {
1493
1518
  }),
1494
1519
  type: "json",
1495
1520
  onComplete(c) {
1496
- i && i(c);
1521
+ s && s(c);
1497
1522
  },
1498
1523
  onFailure(c) {
1499
- s && s(c);
1524
+ i && i(c);
1500
1525
  }
1501
1526
  };
1502
1527
  m(o, a);
@@ -1505,8 +1530,8 @@ function ot(e, n, t, i = void 0, s = void 0) {
1505
1530
  }
1506
1531
  function ue(e) {
1507
1532
  return new Promise((n, t) => {
1508
- const i = `${e.space}/resources/pno/person/getsecuritycontext&tenant=${e.tenant.toUpperCase()}&xrequestedwith=xmlhttprequest`;
1509
- m(i, {
1533
+ const s = `${e.space}/resources/pno/person/getsecuritycontext&tenant=${e.tenant.toUpperCase()}&xrequestedwith=xmlhttprequest`;
1534
+ m(s, {
1510
1535
  method: "GET",
1511
1536
  onComplete(r) {
1512
1537
  n(r);
@@ -1517,8 +1542,8 @@ function ue(e) {
1517
1542
  });
1518
1543
  });
1519
1544
  }
1520
- function at(e, n, t = void 0, i = void 0) {
1521
- return new Promise(async (s, r) => {
1545
+ function rt(e, n, t = void 0, s = void 0) {
1546
+ return new Promise(async (i, r) => {
1522
1547
  const { tenant: o, ctx: a, space: c } = e;
1523
1548
  (!o || !a || !c) && r({ error: "Erreur de credentials", tenant: o, ctx: a, space: c });
1524
1549
  const d = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=1&withAttributes=1&withCopyFrom=1&tenant=${e.tenant.toUpperCase()}&xrequestedwith=xmlhttprequest`;
@@ -1543,23 +1568,32 @@ function at(e, n, t = void 0, i = void 0) {
1543
1568
  }),
1544
1569
  type: "json",
1545
1570
  onComplete(f) {
1546
- t && t(f), s(f);
1571
+ t && t(f), i(f);
1547
1572
  },
1548
1573
  onFailure(f) {
1549
- i && i(f), r(f);
1574
+ s && s(f), r(f);
1550
1575
  }
1551
1576
  };
1552
1577
  m(d, p);
1553
1578
  });
1554
1579
  }
1555
- function rt(e) {
1580
+ function ct(e) {
1556
1581
  return new Promise((n, t) => {
1557
- const { _fedSearch: i, currentTenant: s, ctx: r } = e;
1558
- r || t({ success: !1, msg: "getBookmarksRoot: ctx is missing in credentials" }), i || t({ success: !1, msg: "getBookmarksRoot: _fedSearch is missing in credentials" }), s || t({ success: !1, msg: "getBookmarksRoot: currentTenant is missing in credentials" });
1582
+ const { _fedSearch: s, currentTenant: i, ctx: r } = e;
1583
+ r || t({
1584
+ success: !1,
1585
+ msg: "getBookmarksRoot: ctx is missing in credentials"
1586
+ }), s || t({
1587
+ success: !1,
1588
+ msg: "getBookmarksRoot: _fedSearch is missing in credentials"
1589
+ }), i || t({
1590
+ success: !1,
1591
+ msg: "getBookmarksRoot: currentTenant is missing in credentials"
1592
+ });
1559
1593
  const o = {
1560
- base: i,
1594
+ base: s,
1561
1595
  uri: "/search",
1562
- opt: `?tenant=${s}`
1596
+ opt: `?tenant=${i}`
1563
1597
  }, a = {
1564
1598
  select_predicate: [
1565
1599
  "ds6w:label",
@@ -1594,7 +1628,7 @@ function rt(e) {
1594
1628
  select_file: ["icon", "thumbnail_2d"],
1595
1629
  query: 'flattenedtaxonomies:"types/Workspace"',
1596
1630
  locale: "fr",
1597
- tenant: s,
1631
+ tenant: i,
1598
1632
  source: ["3dspace"],
1599
1633
  indexmode: "true",
1600
1634
  login: {
@@ -1628,9 +1662,9 @@ function rt(e) {
1628
1662
  });
1629
1663
  });
1630
1664
  }
1631
- function ct(e, n) {
1632
- return new Promise((t, i) => {
1633
- const s = `${e.space}/resources/v1/FolderManagement/Folder/${n}/folderTree?tenant=${e.tenant.toUpperCase()}`, r = {
1665
+ function dt(e, n) {
1666
+ return new Promise((t, s) => {
1667
+ const i = `${e.space}/resources/v1/FolderManagement/Folder/${n}/folderTree?tenant=${e.tenant.toUpperCase()}`, r = {
1634
1668
  expandList: "",
1635
1669
  isRoot: "",
1636
1670
  isPersonalFolder: !1,
@@ -1641,7 +1675,7 @@ function ct(e, n) {
1641
1675
  nextStart: 0,
1642
1676
  refine: ""
1643
1677
  };
1644
- m(s, {
1678
+ m(i, {
1645
1679
  method: "POST",
1646
1680
  headers: {
1647
1681
  Accept: "application/json",
@@ -1656,16 +1690,15 @@ function ct(e, n) {
1656
1690
  },
1657
1691
  onFailure(o, a, c) {
1658
1692
  const d = {};
1659
- if (d.error = o, d.headers = a, d.xhr = c, onError)
1660
- throw onError(d), console.log("Coucou dans enfant"), new Error("Coucou dans enfant", { cause: o });
1693
+ d.error = o, d.headers = a, d.xhr = c, s(d);
1661
1694
  }
1662
1695
  });
1663
1696
  });
1664
1697
  }
1665
- function dt(e, n) {
1666
- return new Promise((t, i) => {
1667
- const s = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark/${n}?$mask=dsbks:BksMask.Items`;
1668
- m(s, {
1698
+ function ut(e, n) {
1699
+ return new Promise((t, s) => {
1700
+ const i = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark/${n}?$mask=dsbks:BksMask.Items`;
1701
+ m(i, {
1669
1702
  headers: {
1670
1703
  SecurityContext: `ctx::${e.ctx}`
1671
1704
  },
@@ -1679,18 +1712,18 @@ function dt(e, n) {
1679
1712
  t(o);
1680
1713
  },
1681
1714
  onFailure(r) {
1682
- i(r);
1715
+ s(r);
1683
1716
  }
1684
1717
  });
1685
1718
  });
1686
1719
  }
1687
- function ut(e, n, t, i, s = void 0, r = void 0) {
1720
+ function pt(e, n, t, s, i = void 0, r = void 0) {
1688
1721
  return new Promise((o) => {
1689
1722
  const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
1690
1723
  let c = {
1691
1724
  attributes: {
1692
1725
  title: t,
1693
- description: i,
1726
+ description: s,
1694
1727
  inheritedAccess: "no"
1695
1728
  }
1696
1729
  }, d = {
@@ -1708,7 +1741,7 @@ function ut(e, n, t, i, s = void 0, r = void 0) {
1708
1741
  data: JSON.stringify(d),
1709
1742
  type: "json",
1710
1743
  onComplete(p) {
1711
- s && s(p);
1744
+ i && i(p);
1712
1745
  },
1713
1746
  onFailure(p) {
1714
1747
  r && r(p);
@@ -1717,7 +1750,7 @@ function ut(e, n, t, i, s = void 0, r = void 0) {
1717
1750
  m(a, u);
1718
1751
  });
1719
1752
  }
1720
- function pt(e, n, t, i, s = void 0, r = void 0) {
1753
+ function lt(e, n, t, s, i = void 0, r = void 0) {
1721
1754
  return console.log("credentials", e), new Promise((o) => {
1722
1755
  `${e.space}`, JSON.stringify({
1723
1756
  csrf: {
@@ -1732,7 +1765,7 @@ function pt(e, n, t, i, s = void 0, r = void 0) {
1732
1765
  id: n,
1733
1766
  dataelements: {
1734
1767
  personList: t,
1735
- eventsList: i
1768
+ eventsList: s
1736
1769
  },
1737
1770
  tenant: e.tenant
1738
1771
  }
@@ -1741,13 +1774,13 @@ function pt(e, n, t, i, s = void 0, r = void 0) {
1741
1774
  });
1742
1775
  }
1743
1776
  //!SECTION
1744
- function lt(e, n = void 0, t = void 0) {
1745
- const i = {
1777
+ function ft(e, n = void 0, t = void 0) {
1778
+ const s = {
1746
1779
  base: `${e.space}`,
1747
1780
  uri: "/resources/bps/cspaces",
1748
1781
  optTenant: `tenant=${e.tenant}`
1749
- }, s = `${i.base}${i.uri}?${i.optTenant}`;
1750
- m(s, {
1782
+ }, i = `${s.base}${s.uri}?${s.optTenant}`;
1783
+ m(i, {
1751
1784
  method: "GET",
1752
1785
  headers: {
1753
1786
  Accept: "application/json,text/javascript,*/*",
@@ -1762,36 +1795,36 @@ function lt(e, n = void 0, t = void 0) {
1762
1795
  }
1763
1796
  });
1764
1797
  }
1765
- function ft(e, n, t, i) {
1798
+ function mt(e, n, t, s) {
1766
1799
  j(
1767
1800
  e.space,
1768
1801
  n,
1769
- (s) => {
1770
- m(s, {
1802
+ (i) => {
1803
+ m(i, {
1771
1804
  header: { ENO_CSRF_TOKEN: e.token },
1772
1805
  onComplete: (r) => {
1773
1806
  t && t(r);
1774
1807
  },
1775
1808
  onFailure: (r) => {
1776
- console.log("error http", r), i && i(r);
1809
+ console.log("error http", r), s && s(r);
1777
1810
  }
1778
1811
  });
1779
1812
  }
1780
1813
  );
1781
1814
  }
1782
- async function mt(e, n, t = void 0, i = void 0) {
1783
- return new Promise((s) => {
1815
+ async function gt(e, n, t = void 0, s = void 0) {
1816
+ return new Promise((i) => {
1784
1817
  j(e, n, (r) => {
1785
1818
  m(r, {
1786
- onComplete: (o, a, c) => (s(JSON.parse(o)), t && t(JSON.parse(o), a, c), s),
1819
+ onComplete: (o, a, c) => (i(JSON.parse(o)), t && t(JSON.parse(o), a, c), i),
1787
1820
  onFailure: (o, a, c) => {
1788
- i && i(o, a, c), console.log(o, a?.errormsg);
1821
+ s && s(o, a, c), console.log(o, a?.errormsg);
1789
1822
  }
1790
1823
  });
1791
1824
  });
1792
1825
  });
1793
1826
  }
1794
- function gt(e, n, t, i = void 0, s = void 0) {
1827
+ function ht(e, n, t, s = void 0, i = void 0) {
1795
1828
  const r = new Blob([JSON.stringify(n)], { type: "text/plain" });
1796
1829
  e = { ...e, objID: t }, N(
1797
1830
  e,
@@ -1805,77 +1838,77 @@ function gt(e, n, t, i = void 0, s = void 0) {
1805
1838
  r,
1806
1839
  c,
1807
1840
  (d) => {
1808
- i && i(d);
1841
+ s && s(d);
1809
1842
  },
1810
1843
  (d) => {
1811
- s && s(d);
1844
+ i && i(d);
1812
1845
  }
1813
1846
  );
1814
1847
  },
1815
1848
  (o) => {
1816
- console.log("En cas d'erreur nous avons :", o), alert("Erreur lors de la sauvegarde, Veuillez réessayez"), s && s(o);
1849
+ console.log("En cas d'erreur nous avons :", o), alert("Erreur lors de la sauvegarde, Veuillez réessayez"), i && i(o);
1817
1850
  }
1818
1851
  );
1819
1852
  }
1820
1853
  let K, q;
1821
1854
  const A = [];
1822
- async function ht(e, n = void 0, t = void 0) {
1855
+ async function yt(e, n = void 0, t = void 0) {
1823
1856
  e.objID && e.objID !== "" ? N(
1824
1857
  e,
1825
- (i) => {
1826
- n && n(i);
1858
+ (s) => {
1859
+ n && n(s);
1827
1860
  },
1828
- (i) => {
1829
- t && t(i);
1861
+ (s) => {
1862
+ t && t(s);
1830
1863
  }
1831
1864
  ) : (e.objID === null || e.objID === "") && b(
1832
1865
  e,
1833
- (i) => {
1834
- n && n({ rep: i, msg: "Pas d'objID, ou invalide" });
1866
+ (s) => {
1867
+ n && n({ rep: s, msg: "Pas d'objID, ou invalide" });
1835
1868
  },
1836
- (i) => {
1837
- t && t({ msg: "Pas d'objID et erreur sur le Space", err: i });
1869
+ (s) => {
1870
+ t && t({ msg: "Pas d'objID et erreur sur le Space", err: s });
1838
1871
  }
1839
1872
  );
1840
1873
  }
1841
- async function yt(e, n = void 0, t = void 0) {
1874
+ async function _t(e, n = void 0, t = void 0) {
1842
1875
  console.log("getDatasByTenant (getDocuments)", e), await E(
1843
1876
  e,
1844
- (i) => {
1845
- const s = {};
1846
- s.obj = i, console.log("getDatasByTenant (getDocuments) _datas", s), n && n?.(s);
1877
+ (s) => {
1878
+ const i = {};
1879
+ i.obj = s, console.log("getDatasByTenant (getDocuments) _datas", i), n && n?.(i);
1847
1880
  },
1848
- (i) => {
1849
- t && t?.(i);
1881
+ (s) => {
1882
+ t && t?.(s);
1850
1883
  }
1851
1884
  );
1852
1885
  }
1853
- function _t(e, n = void 0, t = void 0) {
1854
- const i = [];
1886
+ function St(e, n = void 0, t = void 0) {
1887
+ const s = [];
1855
1888
  if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
1856
1889
  console.warn("la liste est vide ou n'est pas un tableau");
1857
1890
  return;
1858
1891
  }
1859
- e.objIds.forEach((s, r) => {
1892
+ e.objIds.forEach((i, r) => {
1860
1893
  E(
1861
1894
  e,
1862
- s.objID,
1895
+ i.objID,
1863
1896
  (o) => {
1864
- 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);
1897
+ 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);
1865
1898
  }
1866
1899
  );
1867
1900
  });
1868
1901
  }
1869
- function pe(e, n, t = void 0, i = void 0) {
1902
+ function pe(e, n, t = void 0, s = void 0) {
1870
1903
  ce(
1871
1904
  e,
1872
1905
  K,
1873
- (s) => {
1906
+ (i) => {
1874
1907
  const r = [...n];
1875
- r.find((o) => o.objectID === s.objectId).data = s.data, q = r, A.push(s.data), t && t(A);
1908
+ r.find((o) => o.objectID === i.objectId).data = i.data, q = r, A.push(i.data), t && t(A);
1876
1909
  },
1877
- (s) => {
1878
- i && (i(s), console.log(s));
1910
+ (i) => {
1911
+ s && (s(i), console.log(i));
1879
1912
  }
1880
1913
  );
1881
1914
  }
@@ -1899,12 +1932,12 @@ const le = "FA35FB9B177A280065800EA0000F599C", fe = [
1899
1932
  order_by: "desc",
1900
1933
  tag: "testTag"
1901
1934
  };
1902
- function St(e, n, t = void 0, i = void 0) {
1903
- const { space: s, tenant: r } = e, { objId: o, pred: a, tag: c } = n, d = {
1935
+ function wt(e, n, t = void 0, s = void 0) {
1936
+ const { space: i, tenant: r } = e, { objId: o, pred: a, tag: c } = n, d = {
1904
1937
  uri: "/resources/6w/tags",
1905
1938
  otpCTX: "SecurityContext=preferred",
1906
1939
  optTenant: `tenant=${r}`
1907
- }, u = `${s}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
1940
+ }, u = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
1908
1941
  tag: [
1909
1942
  {
1910
1943
  subject: [
@@ -1942,26 +1975,26 @@ function St(e, n, t = void 0, i = void 0) {
1942
1975
  t && t(w);
1943
1976
  },
1944
1977
  (w) => {
1945
- i && i(w);
1978
+ s && s(w);
1946
1979
  }
1947
1980
  );
1948
1981
  },
1949
1982
  (g, h) => {
1950
1983
  const y = g;
1951
- y.msg = h.errormsg, y.errCode = h.errorcode, console.log("❌ sendDirectMessage => ", y), i && i(y);
1984
+ y.msg = h.errormsg, y.errCode = h.errorcode, console.log("❌ sendDirectMessage => ", y), s && s(y);
1952
1985
  }
1953
1986
  );
1954
1987
  }, 2e3);
1955
1988
  },
1956
1989
  onFailure(f, l) {
1957
1990
  const g = f;
1958
- g.msg = l.errormsg, g.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", g), i && i(g);
1991
+ g.msg = l.errormsg, g.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", g), s && s(g);
1959
1992
  }
1960
1993
  });
1961
1994
  }
1962
- function ge(e, n, t = void 0, i = void 0) {
1995
+ function ge(e, n, t = void 0, s = void 0) {
1963
1996
  console.log("obj ", n);
1964
- const s = n.info.name, r = {
1997
+ const i = n.info.name, r = {
1965
1998
  baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
1966
1999
  uri: "/federated/search"
1967
2000
  }, o = `${r.baseUrl}${r.uri}`, a = {
@@ -1999,7 +2032,7 @@ function ge(e, n, t = void 0, i = void 0) {
1999
2032
  ],
2000
2033
  with_synthesis_hierarchical: !0,
2001
2034
  select_file: ["icon", "thumbnail_2d"],
2002
- query: s,
2035
+ query: i,
2003
2036
  specific_source_parameter: {
2004
2037
  "3dspace": {
2005
2038
  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)'
@@ -2038,12 +2071,12 @@ function ge(e, n, t = void 0, i = void 0) {
2038
2071
  },
2039
2072
  onFailure(u, p) {
2040
2073
  const f = u;
2041
- 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);
2074
+ 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);
2042
2075
  }
2043
2076
  });
2044
2077
  }
2045
- function wt(e, n, t = void 0, i = void 0) {
2046
- const { objId: s, pred: r, tag: o } = n, a = {
2078
+ function Ct(e, n, t = void 0, s = void 0) {
2079
+ const { objId: i, pred: r, tag: o } = n, a = {
2047
2080
  uri: "/resources/6w/tags",
2048
2081
  otpCTX: "SecurityContext=preferred",
2049
2082
  optTenant: `tenant=${e.tenant}`
@@ -2052,7 +2085,7 @@ function wt(e, n, t = void 0, i = void 0) {
2052
2085
  {
2053
2086
  subject: [
2054
2087
  {
2055
- uri: `pid://${s}`
2088
+ uri: `pid://${i}`
2056
2089
  }
2057
2090
  ],
2058
2091
  predicate: X[r],
@@ -2074,12 +2107,12 @@ function wt(e, n, t = void 0, i = void 0) {
2074
2107
  },
2075
2108
  onFailure(u, p) {
2076
2109
  const f = u;
2077
- f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), i && i(f);
2110
+ f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f);
2078
2111
  }
2079
2112
  });
2080
2113
  }
2081
- function Ct(e, n = "", t = void 0, i = void 0) {
2082
- const { space: s } = e;
2114
+ function bt(e, n = "", t = void 0, s = void 0) {
2115
+ const { space: i } = e;
2083
2116
  if (n === "")
2084
2117
  return;
2085
2118
  const r = {
@@ -2087,7 +2120,7 @@ function Ct(e, n = "", t = void 0, i = void 0) {
2087
2120
  }, o = {
2088
2121
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
2089
2122
  Accept: "application/json,text/javascript,*/*"
2090
- }, 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}`;
2123
+ }, 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}`;
2091
2124
  m(a, {
2092
2125
  method: "POST",
2093
2126
  headers: o,
@@ -2097,25 +2130,25 @@ function Ct(e, n = "", t = void 0, i = void 0) {
2097
2130
  },
2098
2131
  onFailure(d, u) {
2099
2132
  const p = d;
2100
- p.msg = u.error, i && i(p);
2133
+ p.msg = u.error, s && s(p);
2101
2134
  }
2102
2135
  });
2103
2136
  }
2104
2137
  async function C(e, n = void 0, t = void 0) {
2105
- const i = e._3DSwym + "/api/index/tk";
2106
- return m(i, {
2107
- onComplete(s, r, o) {
2108
- const a = JSON.parse(s);
2138
+ const s = e._3DSwym + "/api/index/tk";
2139
+ return m(s, {
2140
+ onComplete(i, r, o) {
2141
+ const a = JSON.parse(i);
2109
2142
  if (n)
2110
2143
  return n(a), e.token = a?.result?.ServerToken;
2111
2144
  },
2112
- onFailure(s) {
2113
- t && t(s);
2145
+ onFailure(i) {
2146
+ t && t(i);
2114
2147
  }
2115
2148
  });
2116
2149
  }
2117
- function bt(e, n = void 0, t = void 0) {
2118
- const i = `${e._3DSwym}/api/exalead/whatsnew`, s = {
2150
+ function Ot(e, n = void 0, t = void 0) {
2151
+ const s = `${e._3DSwym}/api/exalead/whatsnew`, i = {
2119
2152
  params: {
2120
2153
  community_id: null,
2121
2154
  hash_key: null,
@@ -2126,14 +2159,14 @@ function bt(e, n = void 0, t = void 0) {
2126
2159
  }
2127
2160
  };
2128
2161
  C(e, (r) => {
2129
- m(i, {
2162
+ m(s, {
2130
2163
  method: "POST",
2131
2164
  headers: {
2132
2165
  "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
2133
2166
  "Content-type": "application/json;charset=UTF-8",
2134
2167
  Accept: "application/json"
2135
2168
  },
2136
- data: JSON.stringify(s),
2169
+ data: JSON.stringify(i),
2137
2170
  type: "json",
2138
2171
  onComplete(o, a) {
2139
2172
  n && n(o, a);
@@ -2144,8 +2177,8 @@ function bt(e, n = void 0, t = void 0) {
2144
2177
  });
2145
2178
  });
2146
2179
  }
2147
- function Ot(e, n = void 0, t = void 0) {
2148
- const i = `${e._3DSwym}/api/Recommendation/getpeoplefamiliartocurrentuser`, s = {
2180
+ function Tt(e, n = void 0, t = void 0) {
2181
+ const s = `${e._3DSwym}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
2149
2182
  params: {
2150
2183
  idsToFilterArr: [],
2151
2184
  mode: "offline",
@@ -2155,14 +2188,14 @@ function Ot(e, n = void 0, t = void 0) {
2155
2188
  }
2156
2189
  };
2157
2190
  C(e, (r) => {
2158
- m(i, {
2191
+ m(s, {
2159
2192
  method: "POST",
2160
2193
  headers: {
2161
2194
  "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
2162
2195
  "Content-type": "application/json;charset=UTF-8",
2163
2196
  Accept: "application/json"
2164
2197
  },
2165
- data: JSON.stringify(s),
2198
+ data: JSON.stringify(i),
2166
2199
  type: "json",
2167
2200
  onComplete(o, a) {
2168
2201
  const c = o.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
@@ -2174,15 +2207,15 @@ function Ot(e, n = void 0, t = void 0) {
2174
2207
  });
2175
2208
  });
2176
2209
  }
2177
- function Tt(e, n = void 0, t = void 0) {
2178
- const i = {
2210
+ function $t(e, n = void 0, t = void 0) {
2211
+ const s = {
2179
2212
  base: e._3DSwym,
2180
2213
  uri: "/api/community/listmycommunities",
2181
2214
  limit: `/limit/${e.limit ? e.limit : 500}`,
2182
2215
  page: `/page/${e.page ? e.page : "1"}`
2183
- }, s = `${i.base}${i.uri}${i.limit}${i.page}`, r = [];
2216
+ }, i = `${s.base}${s.uri}${s.limit}${s.page}`, r = [];
2184
2217
  C(e, (o) => {
2185
- m(s, {
2218
+ m(i, {
2186
2219
  method: "GET",
2187
2220
  headers: {
2188
2221
  "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
@@ -2216,8 +2249,8 @@ function Tt(e, n = void 0, t = void 0) {
2216
2249
  });
2217
2250
  });
2218
2251
  }
2219
- function he(e, n, t, i) {
2220
- const s = `${e._3DSwym}/api/community/listmembers`, r = {
2252
+ function he(e, n, t, s) {
2253
+ const i = `${e._3DSwym}/api/community/listmembers`, r = {
2221
2254
  params: {
2222
2255
  page: e.page ? e.page : 1,
2223
2256
  limit: e.limit ? e.limit : 50,
@@ -2225,7 +2258,7 @@ function he(e, n, t, i) {
2225
2258
  }
2226
2259
  };
2227
2260
  C(e, (o) => {
2228
- m(s, {
2261
+ m(i, {
2229
2262
  method: "POST",
2230
2263
  headers: {
2231
2264
  "Content-type": "application/json;charset=UTF-8",
@@ -2239,17 +2272,17 @@ function he(e, n, t, i) {
2239
2272
  },
2240
2273
  onFailure(a, c) {
2241
2274
  const d = a;
2242
- d.status = c.status, d.response = c.errormsg, i && i(d);
2275
+ d.status = c.status, d.response = c.errormsg, s && s(d);
2243
2276
  }
2244
2277
  });
2245
2278
  });
2246
2279
  }
2247
- function $t(e, n = void 0, t = void 0) {
2248
- const i = "YXdA5x4DSUKtlAi2wmnyTA";
2249
- e.commu_id || (e.commu_id = i);
2250
- const s = `${e._3DSwym}/api/v2/communities/${e.commu_id}/ideas/statuses`;
2280
+ function xt(e, n = void 0, t = void 0) {
2281
+ const s = "YXdA5x4DSUKtlAi2wmnyTA";
2282
+ e.commu_id || (e.commu_id = s);
2283
+ const i = `${e._3DSwym}/api/v2/communities/${e.commu_id}/ideas/statuses`;
2251
2284
  C(e, (r) => {
2252
- m(s, {
2285
+ m(i, {
2253
2286
  method: "GET",
2254
2287
  headers: {
2255
2288
  "Content-type": "application/json;charset=UTF-8",
@@ -2267,9 +2300,9 @@ function $t(e, n = void 0, t = void 0) {
2267
2300
  });
2268
2301
  });
2269
2302
  }
2270
- function xt(e, n, t = void 0, i = void 0) {
2271
- const { listAllContacts: s, currentUser: r, _3DSwym: o } = e;
2272
- console.log("__listAllContacts", s.hits);
2303
+ function Ut(e, n, t = void 0, s = void 0) {
2304
+ const { listAllContacts: i, currentUser: r, _3DSwym: o } = e;
2305
+ console.log("__listAllContacts", i.hits);
2273
2306
  const a = `${o}/api/directmessages`, c = {
2274
2307
  users: [r.login].concat(n.receipt)
2275
2308
  }, d = {
@@ -2285,7 +2318,7 @@ function xt(e, n, t = void 0, i = void 0) {
2285
2318
  p !== void 0 && (d.id_msg = p.id, u = !0, P(e, d));
2286
2319
  },
2287
2320
  (p) => {
2288
- u = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), i && i(p), d.id_msg = "";
2321
+ u = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), d.id_msg = "";
2289
2322
  }
2290
2323
  ), u === !1 && setTimeout(() => {
2291
2324
  u === !1 && C(e, (p) => {
@@ -2304,16 +2337,16 @@ function xt(e, n, t = void 0, i = void 0) {
2304
2337
  },
2305
2338
  onFailure(f, l, g) {
2306
2339
  const h = f;
2307
- h.msg = l.errormsg, h.status = l.status, i && i(h);
2340
+ h.msg = l.errormsg, h.status = l.status, s && s(h);
2308
2341
  }
2309
2342
  });
2310
2343
  });
2311
2344
  }, 500);
2312
2345
  }
2313
- function ye(e, n, t, i) {
2314
- const s = `${e._3DSwym}/api/directmessages/lite?with_favorites=false`;
2346
+ function ye(e, n, t, s) {
2347
+ const i = `${e._3DSwym}/api/directmessages/lite?with_favorites=false`;
2315
2348
  C(e, (r) => {
2316
- m(s, {
2349
+ m(i, {
2317
2350
  method: "GET",
2318
2351
  headers: {
2319
2352
  Accept: "application/json,text/javascript,*/*",
@@ -2330,22 +2363,22 @@ function ye(e, n, t, i) {
2330
2363
  f.push(l.login);
2331
2364
  }), JSON.stringify(f) === JSON.stringify(d);
2332
2365
  });
2333
- t && u !== void 0 ? t(u) : (i || u === void 0) && i(u);
2366
+ t && u !== void 0 ? t(u) : (s || u === void 0) && s(u);
2334
2367
  },
2335
2368
  onFailure(o) {
2336
2369
  const a = o;
2337
- a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), i && i(a);
2370
+ a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), s && s(a);
2338
2371
  }
2339
2372
  });
2340
2373
  });
2341
2374
  }
2342
- function P(e, n, t = void 0, i = void 0) {
2343
- const s = {
2375
+ function P(e, n, t = void 0, s = void 0) {
2376
+ const i = {
2344
2377
  base: e._3DSwym,
2345
2378
  uri: "/api/community",
2346
2379
  id_msg: `${n.id_msg}`,
2347
2380
  endUri: "/instantmessages"
2348
- }, r = `${s.base}${s.uri}/${s.id_msg}${s.endUri}`, o = {
2381
+ }, r = `${i.base}${i.uri}/${i.id_msg}${i.endUri}`, o = {
2349
2382
  author: { login: n.senderId, displayName: n.senderName },
2350
2383
  accessState: null,
2351
2384
  commentUri: null,
@@ -2371,7 +2404,7 @@ function P(e, n, t = void 0, i = void 0) {
2371
2404
  },
2372
2405
  onFailure(c, d) {
2373
2406
  const u = c;
2374
- u.msg = d.errormsg, u.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", u), i && i(u);
2407
+ u.msg = d.errormsg, u.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", u), s && s(u);
2375
2408
  }
2376
2409
  });
2377
2410
  });
@@ -2383,8 +2416,8 @@ function _e(e) {
2383
2416
  <hr/>
2384
2417
  <p><u>envoyer :</u>Le <b>${n} à ${t}</b></p>`;
2385
2418
  }
2386
- function Ut(e, n, t = void 0, i = void 0) {
2387
- const s = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
2419
+ function Rt(e, n, t = void 0, s = void 0) {
2420
+ const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
2388
2421
  (c) => c.id === n.community_id
2389
2422
  ), o = e.swymCommunities.find(
2390
2423
  (c) => c.title.toLowerCase() === n.community_title.toLowerCase()
@@ -2406,7 +2439,7 @@ function Ut(e, n, t = void 0, i = void 0) {
2406
2439
  Accept: "application/json",
2407
2440
  "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
2408
2441
  };
2409
- m(s, {
2442
+ m(i, {
2410
2443
  method: "POST",
2411
2444
  headers: d,
2412
2445
  data: JSON.stringify(a),
@@ -2417,16 +2450,16 @@ function Ut(e, n, t = void 0, i = void 0) {
2417
2450
  },
2418
2451
  onFailure(u, p, f) {
2419
2452
  const l = u;
2420
- l.status = p.status, l.response = p.errormsg, i && i(l);
2453
+ l.status = p.status, l.response = p.errormsg, s && s(l);
2421
2454
  }
2422
2455
  });
2423
2456
  });
2424
2457
  }
2425
- function Rt(e, n = void 0, t = void 0) {
2426
- const i = { base: e.space, uri: "/api/idea/add" };
2458
+ function Ft(e, n = void 0, t = void 0) {
2459
+ const s = { base: e.space, uri: "/api/idea/add" };
2427
2460
  if (!Array.isArray(e.swymCommunities)) {
2428
2461
  const o = "☠️ swymCommunities doit être un tableau d'objets de communautés";
2429
- throw new Error(`Erreur sur cette requête : ${i.base + i.uri}`, {
2462
+ throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
2430
2463
  cause: o
2431
2464
  });
2432
2465
  }
@@ -2434,19 +2467,19 @@ function Rt(e, n = void 0, t = void 0) {
2434
2467
  (o) => o.id === e.community_id
2435
2468
  ) === -1) {
2436
2469
  const o = "la communauté n'existe pas dans la liste des communautés du Swym";
2437
- throw new Error(`Erreur sur cette requête : ${i.base + i.uri}`, {
2470
+ throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
2438
2471
  cause: o
2439
2472
  });
2440
2473
  }
2441
2474
  if (e.community_id && e.community_id === "") {
2442
2475
  const o = "☠️ community_id doit être un String qui contient l'id de la communauté dans laquelle on souhaite publier l'idée.";
2443
- throw new Error(`Erreur sur cette requête : ${i.base + i.uri}`, {
2476
+ throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
2444
2477
  cause: o
2445
2478
  });
2446
2479
  }
2447
2480
  if (e.title && e.title === "") {
2448
2481
  const o = "☠️ title doit être un String.";
2449
- throw new Error(`Erreur sur cette requête : ${i.base + i.uri}`, {
2482
+ throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
2450
2483
  cause: o
2451
2484
  });
2452
2485
  }
@@ -2465,7 +2498,7 @@ function Rt(e, n = void 0, t = void 0) {
2465
2498
  C(e, (o) => {
2466
2499
  if (!o)
2467
2500
  throw new Error(
2468
- `☠️ token n'est pas disponible pour cette requête : ${i.base + i.uri}`,
2501
+ `☠️ token n'est pas disponible pour cette requête : ${s.base + s.uri}`,
2469
2502
  {
2470
2503
  cause: o
2471
2504
  }
@@ -2484,7 +2517,7 @@ function Rt(e, n = void 0, t = void 0) {
2484
2517
  },
2485
2518
  onFailure(c, d, u) {
2486
2519
  const p = JSON.parse(d), f = JSON.parse(c), l = new Error(
2487
- `Erreur sur cette requête : ${i.base + i.uri}`,
2520
+ `Erreur sur cette requête : ${s.base + s.uri}`,
2488
2521
  {
2489
2522
  cause: { head: p, rep: f }
2490
2523
  }
@@ -2492,18 +2525,18 @@ function Rt(e, n = void 0, t = void 0) {
2492
2525
  t && t(l);
2493
2526
  }
2494
2527
  };
2495
- m(i.base + i.uri, a);
2528
+ m(s.base + s.uri, a);
2496
2529
  });
2497
2530
  }
2498
- function Ft(e, n, t = void 0, i = void 0) {
2499
- const s = `${e.space}/api/idea/delete`, r = {
2531
+ function Nt(e, n, t = void 0, s = void 0) {
2532
+ const i = `${e.space}/api/idea/delete`, r = {
2500
2533
  params: {
2501
2534
  community_id: n.community_id,
2502
2535
  ideationIds: [n.idee_id]
2503
2536
  }
2504
2537
  };
2505
2538
  C(e, (o) => {
2506
- m(s, {
2539
+ m(i, {
2507
2540
  method: "POST",
2508
2541
  headers: {
2509
2542
  "Content-type": "application/json;charset=UTF-8",
@@ -2517,13 +2550,13 @@ function Ft(e, n, t = void 0, i = void 0) {
2517
2550
  },
2518
2551
  onFailure(a, c, d) {
2519
2552
  const u = a;
2520
- u.status = c.status, u.response = c.errormsg, i && i(u);
2553
+ u.status = c.status, u.response = c.errormsg, s && s(u);
2521
2554
  }
2522
2555
  });
2523
2556
  });
2524
2557
  }
2525
- function Nt(e, n = void 0, t = void 0) {
2526
- const { _3DSwym: i, _3DSwym_token: s } = e, r = `${i}/api/idea/get`;
2558
+ function It(e, n = void 0, t = void 0) {
2559
+ const { _3DSwym: s, _3DSwym_token: i } = e, r = `${s}/api/idea/get`;
2527
2560
  if (e.idPost === "") {
2528
2561
  const a = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
2529
2562
  throw new Error(`Erreur sur cette requête : ${r}`, { cause: a });
@@ -2538,7 +2571,7 @@ function Nt(e, n = void 0, t = void 0) {
2538
2571
  headers: {
2539
2572
  "Content-type": "application/json;charset=UTF-8",
2540
2573
  Accept: "application/json",
2541
- "X-DS-SWYM-CSRFTOKEN": s
2574
+ "X-DS-SWYM-CSRFTOKEN": i
2542
2575
  },
2543
2576
  data: JSON.stringify(o),
2544
2577
  onComplete(a) {
@@ -2552,8 +2585,8 @@ function Nt(e, n = void 0, t = void 0) {
2552
2585
  }
2553
2586
  function kt(e, n, t) {
2554
2587
  const {
2555
- _3DSwym: i,
2556
- _3DSwym_token: s,
2588
+ _3DSwym: s,
2589
+ _3DSwym_token: i,
2557
2590
  idPost: r,
2558
2591
  title: o,
2559
2592
  community_id: a,
@@ -2561,14 +2594,14 @@ function kt(e, n, t) {
2561
2594
  status_id: d,
2562
2595
  message: u
2563
2596
  } = e, p = {
2564
- base: `${i}`,
2597
+ base: `${s}`,
2565
2598
  uri: "/api/idea/edit"
2566
2599
  }, l = {
2567
2600
  method: "POST",
2568
2601
  headers: {
2569
2602
  "Content-type": "application/json;charset=UTF-8",
2570
2603
  Accept: "application/json",
2571
- "X-DS-SWYM-CSRFTOKEN": s
2604
+ "X-DS-SWYM-CSRFTOKEN": i
2572
2605
  },
2573
2606
  data: JSON.stringify({
2574
2607
  params: {
@@ -2595,8 +2628,8 @@ function kt(e, n, t) {
2595
2628
  };
2596
2629
  m(p.base + p.uri, l);
2597
2630
  }
2598
- function It(e, n, t = void 0, i = void 0) {
2599
- const { _3DSwym: s } = e;
2631
+ function jt(e, n, t = void 0, s = void 0) {
2632
+ const { _3DSwym: i } = e;
2600
2633
  let { community_id: r, limit: o, page: a, search: c } = n;
2601
2634
  const d = [], u = 1;
2602
2635
  let p = !1, f = 2;
@@ -2607,7 +2640,7 @@ function It(e, n, t = void 0, i = void 0) {
2607
2640
  limit: `/limit/${o}`,
2608
2641
  page: `/page/${a}`
2609
2642
  };
2610
- let g = `${s}${l.uri}${l.comId}${l.limit}${l.page}`;
2643
+ let g = `${i}${l.uri}${l.comId}${l.limit}${l.page}`;
2611
2644
  C(e, (h) => {
2612
2645
  const y = (S) => {
2613
2646
  m(S, {
@@ -2618,11 +2651,11 @@ function It(e, n, t = void 0, i = void 0) {
2618
2651
  onComplete(w) {
2619
2652
  const _ = { response: JSON.parse(w) };
2620
2653
  if (f = Math.ceil(Number(_.response.nb_result) / 100), w && f >= a) {
2621
- if (a++, l.page = `/page/${a}`, S = `${s}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
2654
+ if (a++, l.page = `/page/${a}`, S = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
2622
2655
  d.push(_.response.result);
2623
2656
  else {
2624
2657
  const O = _.response.result.find(
2625
- (I) => I.title.includes(c)
2658
+ (k) => k.title.includes(c)
2626
2659
  );
2627
2660
  if (O) {
2628
2661
  t(O);
@@ -2638,7 +2671,7 @@ function It(e, n, t = void 0, i = void 0) {
2638
2671
  },
2639
2672
  onFailure(w, _) {
2640
2673
  const O = w;
2641
- O.status = _.status, O.response = _.errormsg, i && i(O);
2674
+ O.status = _.status, O.response = _.errormsg, s && s(O);
2642
2675
  }
2643
2676
  });
2644
2677
  };
@@ -2720,10 +2753,10 @@ function Se(e) {
2720
2753
  <p>
2721
2754
  </p>` : e;
2722
2755
  }
2723
- function jt(e, n = void 0, t = void 0) {
2724
- const { tenant: i, _3DSwym: s, _3DSwym_token: r, community_id: o, idea_id: a } = e;
2725
- if (i && s && r && o && a) {
2726
- const c = `${s}/api/idea/forward`;
2756
+ function vt(e, n = void 0, t = void 0) {
2757
+ const { tenant: s, _3DSwym: i, _3DSwym_token: r, community_id: o, idea_id: a } = e;
2758
+ if (s && i && r && o && a) {
2759
+ const c = `${i}/api/idea/forward`;
2727
2760
  m(c, {
2728
2761
  method: "POST",
2729
2762
  headers: {
@@ -2732,8 +2765,8 @@ function jt(e, n = void 0, t = void 0) {
2732
2765
  "X-DS-SWYM-CSRFTOKEN": r
2733
2766
  },
2734
2767
  data: JSON.stringify({
2735
- community_uri: `swym:prd:${i.toUpperCase()}:community:${o}`,
2736
- content_uri: `swym:prd:${i.toUpperCase()}:idea:${a}`,
2768
+ community_uri: `swym:prd:${s.toUpperCase()}:community:${o}`,
2769
+ content_uri: `swym:prd:${s.toUpperCase()}:idea:${a}`,
2737
2770
  timeout: 3e4
2738
2771
  }),
2739
2772
  type: "json",
@@ -2753,8 +2786,8 @@ function jt(e, n = void 0, t = void 0) {
2753
2786
  credentials: e
2754
2787
  });
2755
2788
  }
2756
- function vt(e, n = void 0, t = void 0) {
2757
- return new Promise((i, s) => {
2789
+ function Dt(e, n = void 0, t = void 0) {
2790
+ return new Promise((s, i) => {
2758
2791
  try {
2759
2792
  let r;
2760
2793
  if (e._3DDashboard) {
@@ -2768,27 +2801,27 @@ function vt(e, n = void 0, t = void 0) {
2768
2801
  try {
2769
2802
  p = JSON.parse(u);
2770
2803
  } catch (f) {
2771
- s("ERROR | _3DSwym_get_currentUser => JSON.Parse()", f);
2804
+ i("ERROR | _3DSwym_get_currentUser => JSON.Parse()", f);
2772
2805
  }
2773
- p.first_name = p?.firstName ? p.firstName : "", p.last_name = p?.lastName ? p.lastName : "", r = p, i(p);
2806
+ p.first_name = p?.firstName ? p.firstName : "", p.last_name = p?.lastName ? p.lastName : "", r = p, s(p);
2774
2807
  },
2775
2808
  onFailure(a) {
2776
- s("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", a);
2809
+ i("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", a);
2777
2810
  }
2778
2811
  });
2779
2812
  }
2780
- r ? i(r) : s("ERROR | _3DSwym_get_currentUser => CURRENT_USER is null");
2813
+ r ? s(r) : i("ERROR | _3DSwym_get_currentUser => CURRENT_USER is null");
2781
2814
  } catch (r) {
2782
- s("ERROR | _3DSwym_get_currentUser => ", r);
2815
+ i("ERROR | _3DSwym_get_currentUser => ", r);
2783
2816
  }
2784
2817
  });
2785
2818
  }
2786
- function Dt(e, n, t = void 0, i = void 0) {
2787
- const s = e.space + "/api/user/find/login/" + n;
2819
+ function At(e, n, t = void 0, s = void 0) {
2820
+ const i = e.space + "/api/user/find/login/" + n;
2788
2821
  C(
2789
2822
  e,
2790
2823
  (r) => {
2791
- m(s, {
2824
+ m(i, {
2792
2825
  method: "GET",
2793
2826
  headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
2794
2827
  onComplete(o, a, c) {
@@ -2796,25 +2829,25 @@ function Dt(e, n, t = void 0, i = void 0) {
2796
2829
  t && t(d);
2797
2830
  },
2798
2831
  onFailure(o) {
2799
- i && i(o);
2832
+ s && s(o);
2800
2833
  }
2801
2834
  });
2802
2835
  },
2803
- i
2836
+ s
2804
2837
  );
2805
2838
  }
2806
- function At(e, n = void 0, t = void 0) {
2839
+ function Pt(e, n = void 0, t = void 0) {
2807
2840
  const {
2808
- _3DSwym: i,
2809
- _3DSwym_token: s,
2841
+ _3DSwym: s,
2842
+ _3DSwym_token: i,
2810
2843
  subjectUri: r,
2811
2844
  richMessage: o
2812
- } = e, a = `${i}/commentproxy/subjects/${r}/comments`, d = {
2845
+ } = e, a = `${s}/commentproxy/subjects/${r}/comments`, d = {
2813
2846
  method: "POST",
2814
2847
  headers: {
2815
2848
  "Content-type": "application/json;charset=UTF-8",
2816
2849
  Accept: "application/json",
2817
- "X-DS-SWYM-CSRFTOKEN": s
2850
+ "X-DS-SWYM-CSRFTOKEN": i
2818
2851
  },
2819
2852
  data: JSON.stringify({ richMessage: o }),
2820
2853
  type: "json",
@@ -2830,17 +2863,17 @@ function At(e, n = void 0, t = void 0) {
2830
2863
  };
2831
2864
  m(a, d);
2832
2865
  }
2833
- function Pt(e, n = void 0, t = void 0) {
2834
- e.tenant && J(e, (i) => {
2835
- const s = i.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2836
- return n && n(s), s;
2866
+ function Lt(e, n = void 0, t = void 0) {
2867
+ e.tenant && J(e, (s) => {
2868
+ const i = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2869
+ return n && n(i), i;
2837
2870
  });
2838
2871
  }
2839
- function Lt(e, n = void 0, t = void 0) {
2840
- e.tenant ? J(e, (i) => {
2841
- const s = i.services.find(
2872
+ function Jt(e, n = void 0, t = void 0) {
2873
+ e.tenant ? J(e, (s) => {
2874
+ const i = s.services.find(
2842
2875
  (a) => a.id === "3dpassport"
2843
- )?.url, r = i.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${s}/login/?cors=false&service=${r}/auth/cas`;
2876
+ )?.url, r = s.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?cors=false&service=${r}/auth/cas`;
2844
2877
  m(o, {
2845
2878
  async onComplete(a) {
2846
2879
  const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
@@ -2856,34 +2889,34 @@ function Lt(e, n = void 0, t = void 0) {
2856
2889
  });
2857
2890
  }) : t && t("No tenant");
2858
2891
  }
2859
- function Jt(e, n = void 0, t = void 0) {
2892
+ function Mt(e, n = void 0, t = void 0) {
2860
2893
  if (e.tenant) {
2861
- const i = e.tenant.toLowerCase();
2862
- fetch(`https://api.uixhome.fr/${i}/iterop/jwtuser`, {
2894
+ const s = e.tenant.toLowerCase();
2895
+ fetch(`https://api.uixhome.fr/${s}/iterop/jwtuser`, {
2863
2896
  method: "POST"
2864
- }).then((s) => s.json()).then((s) => {
2865
- n && n(s);
2866
- }).catch((s) => {
2867
- t && t(s);
2897
+ }).then((i) => i.json()).then((i) => {
2898
+ n && n(i);
2899
+ }).catch((i) => {
2900
+ t && t(i);
2868
2901
  });
2869
2902
  }
2870
2903
  }
2871
- async function Mt(e, n, t = void 0, i = void 0) {
2904
+ async function Gt(e, n, t = void 0, s = void 0) {
2872
2905
  if (e.tenant) {
2873
- const s = e.tenant.toLowerCase();
2906
+ const i = e.tenant.toLowerCase();
2874
2907
  fetch(
2875
- `https://api.uixhome.fr/${s}/iterop/repository/data/tables?t=${n}`,
2908
+ `https://api.uixhome.fr/${i}/iterop/repository/data/tables?t=${n}`,
2876
2909
  {
2877
2910
  method: "GET"
2878
2911
  }
2879
2912
  ).then((r) => r.json()).then((r) => {
2880
2913
  t && t(r);
2881
2914
  }).catch((r) => {
2882
- i && i(r);
2915
+ s && s(r);
2883
2916
  });
2884
2917
  }
2885
2918
  }
2886
- function Gt(e, n, t, i = void 0, s = void 0) {
2919
+ function Bt(e, n, t, s = void 0, i = void 0) {
2887
2920
  if (e.tenant) {
2888
2921
  const r = e.tenant.toLowerCase();
2889
2922
  fetch(
@@ -2892,13 +2925,13 @@ function Gt(e, n, t, i = void 0, s = void 0) {
2892
2925
  method: "POST"
2893
2926
  }
2894
2927
  ).then((o) => o.json()).then((o) => {
2895
- i && i(o);
2896
- }).catch((o) => {
2897
2928
  s && s(o);
2929
+ }).catch((o) => {
2930
+ i && i(o);
2898
2931
  });
2899
2932
  }
2900
2933
  }
2901
- async function Bt(e, n, t, i = void 0, s = void 0) {
2934
+ async function Et(e, n, t, s = void 0, i = void 0) {
2902
2935
  if (e.tenant) {
2903
2936
  const r = e.tenant.toLowerCase();
2904
2937
  fetch(
@@ -2910,32 +2943,32 @@ async function Bt(e, n, t, i = void 0, s = void 0) {
2910
2943
  }
2911
2944
  }
2912
2945
  ).then((o) => o.json()).then((o) => {
2913
- i && i(o);
2914
- }).catch((o) => {
2915
2946
  s && s(o);
2947
+ }).catch((o) => {
2948
+ i && i(o);
2916
2949
  });
2917
2950
  }
2918
2951
  }
2919
- async function Et(e, n, t, i, s = void 0, r = void 0) {
2952
+ async function Kt(e, n, t, s, i = void 0, r = void 0) {
2920
2953
  if (e.tenant) {
2921
2954
  const o = e.tenant.toLowerCase();
2922
2955
  fetch(
2923
- `https://api.uixhome.fr/${o}/iterop/businesstable/patch/rows/${t}/?t=${n}&b=${i}`,
2956
+ `https://api.uixhome.fr/${o}/iterop/businesstable/patch/rows/${t}/?t=${n}&b=${s}`,
2924
2957
  {
2925
2958
  method: "POST"
2926
2959
  }
2927
2960
  ).then((a) => a.json()).then((a) => {
2928
- s && s(a);
2961
+ i && i(a);
2929
2962
  }).catch((a) => {
2930
- r && r(a, t, i);
2963
+ r && r(a, t, s);
2931
2964
  });
2932
2965
  }
2933
2966
  }
2934
- async function Kt(e, n, t, i, s, r = void 0, o = void 0) {
2967
+ async function qt(e, n, t, s, i, r = void 0, o = void 0) {
2935
2968
  if (e.tenant) {
2936
2969
  const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${t}?t=${n}&c=${encodeURIComponent(
2937
- i
2938
- )}&b=${encodeURIComponent(s)}`;
2970
+ s
2971
+ )}&b=${encodeURIComponent(i)}`;
2939
2972
  fetch(a, {
2940
2973
  method: "POST"
2941
2974
  }).then((c) => c.json()).then((c) => {
@@ -2944,21 +2977,21 @@ async function Kt(e, n, t, i, s, r = void 0, o = void 0) {
2944
2977
  o && o({
2945
2978
  error: c,
2946
2979
  tableId: t,
2947
- columns: i,
2948
- body: s
2980
+ columns: s,
2981
+ body: i
2949
2982
  });
2950
2983
  });
2951
2984
  }
2952
2985
  }
2953
- async function qt(e, n, t, i, s = void 0, r = void 0) {
2986
+ async function Xt(e, n, t, s, i = void 0, r = void 0) {
2954
2987
  if (e.tenant) {
2955
2988
  const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${t}?t=${n}&b=${encodeURIComponent(
2956
- i
2989
+ s
2957
2990
  )}`;
2958
2991
  fetch(o, {
2959
2992
  method: "POST"
2960
2993
  }).then((a) => a.json()).then((a) => {
2961
- s && s(a);
2994
+ i && i(a);
2962
2995
  }).catch((a) => {
2963
2996
  r && r({
2964
2997
  error: a,
@@ -2967,7 +3000,7 @@ async function qt(e, n, t, i, s = void 0, r = void 0) {
2967
3000
  });
2968
3001
  }
2969
3002
  }
2970
- async function Xt(e, n, t, i = void 0, s = void 0) {
3003
+ async function Wt(e, n, t, s = void 0, i = void 0) {
2971
3004
  if (e.tenant) {
2972
3005
  const r = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/create/?t=${n}&b=${encodeURIComponent(
2973
3006
  t
@@ -2975,31 +3008,31 @@ async function Xt(e, n, t, i = void 0, s = void 0) {
2975
3008
  fetch(r, {
2976
3009
  method: "POST"
2977
3010
  }).then((o) => o.json()).then((o) => {
2978
- i && i(o);
3011
+ s && s(o);
2979
3012
  }).catch((o) => {
2980
- s && s({
3013
+ i && i({
2981
3014
  error: o,
2982
3015
  url: r
2983
3016
  });
2984
3017
  });
2985
3018
  }
2986
3019
  }
2987
- async function Wt(e, n, t, i, s = void 0, r = void 0) {
3020
+ async function Vt(e, n, t, s, i = void 0, r = void 0) {
2988
3021
  if (e.tenant) {
2989
3022
  const o = e.tenant.toLowerCase();
2990
3023
  fetch(
2991
- `https://api.uixhome.fr/${o}/iterop/runtime/processes/${t}?t=${n}&b=${i}`,
3024
+ `https://api.uixhome.fr/${o}/iterop/runtime/processes/${t}?t=${n}&b=${s}`,
2992
3025
  {
2993
3026
  method: "POST"
2994
3027
  }
2995
3028
  ).then((a) => a.json()).then((a) => {
2996
- console.log("_Iterop_runProcess : OK"), s && s(a);
3029
+ console.log("_Iterop_runProcess : OK"), i && i(a);
2997
3030
  }).catch((a) => {
2998
3031
  r && r(a);
2999
3032
  });
3000
3033
  }
3001
3034
  }
3002
- async function Vt(e, n, t, i = void 0, s = void 0) {
3035
+ async function Yt(e, n, t, s = void 0, i = void 0) {
3003
3036
  if (console.log("_Iterop_GetOneDependencyTable | Run"), e.tenant) {
3004
3037
  const r = e.tenant.toLowerCase();
3005
3038
  fetch(
@@ -3008,17 +3041,17 @@ async function Vt(e, n, t, i = void 0, s = void 0) {
3008
3041
  method: "POST"
3009
3042
  }
3010
3043
  ).then((o) => o.json()).then((o) => {
3011
- i && i(o);
3012
- }).catch((o) => {
3013
3044
  s && s(o);
3045
+ }).catch((o) => {
3046
+ i && i(o);
3014
3047
  });
3015
3048
  }
3016
3049
  }
3017
- async function Yt(e, n, t, i, s, r = void 0, o = void 0) {
3050
+ async function zt(e, n, t, s, i, r = void 0, o = void 0) {
3018
3051
  if (e.tenant) {
3019
3052
  const a = e.tenant.toLowerCase();
3020
3053
  fetch(
3021
- `https://api.uixhome.fr/${a}/iterop/dependencytable/patch/${t}/?t=${n}&cli=${i}&b=${s}`,
3054
+ `https://api.uixhome.fr/${a}/iterop/dependencytable/patch/${t}/?t=${n}&cli=${s}&b=${i}`,
3022
3055
  {
3023
3056
  method: "POST"
3024
3057
  }
@@ -3029,23 +3062,23 @@ async function Yt(e, n, t, i, s, r = void 0, o = void 0) {
3029
3062
  });
3030
3063
  }
3031
3064
  }
3032
- async function zt(e, n, t, i, s = void 0, r = void 0) {
3065
+ async function Ht(e, n, t, s, i = void 0, r = void 0) {
3033
3066
  if (e.tenant) {
3034
3067
  const o = e.tenant.toLowerCase();
3035
3068
  fetch(
3036
- `https://api.uixhome.fr/${o}/iterop/dependencytable/put/${t}/?t=${n}&b=${i}`,
3069
+ `https://api.uixhome.fr/${o}/iterop/dependencytable/put/${t}/?t=${n}&b=${s}`,
3037
3070
  {
3038
3071
  method: "POST"
3039
3072
  }
3040
3073
  ).then((a) => a.json()).then((a) => {
3041
- s && s(a);
3074
+ i && i(a);
3042
3075
  }).catch((a) => {
3043
3076
  r && r(a);
3044
3077
  });
3045
3078
  }
3046
3079
  }
3047
3080
  //!SECTION
3048
- async function Ht(e, n, t, i = void 0, s = void 0) {
3081
+ async function Qt(e, n, t, s = void 0, i = void 0) {
3049
3082
  if (e.tenant) {
3050
3083
  const r = e.tenant.toLowerCase();
3051
3084
  fetch(
@@ -3054,24 +3087,24 @@ async function Ht(e, n, t, i = void 0, s = void 0) {
3054
3087
  method: "POST"
3055
3088
  }
3056
3089
  ).then((o) => o.json()).then((o) => {
3057
- i && i(o);
3058
- }).catch((o) => {
3059
3090
  s && s(o);
3091
+ }).catch((o) => {
3092
+ i && i(o);
3060
3093
  });
3061
3094
  }
3062
3095
  }
3063
3096
  //!SECTION
3064
- function Qt(e) {
3097
+ function Zt(e) {
3065
3098
  const n = "Hello " + e;
3066
3099
  return console.log(n), n;
3067
3100
  }
3068
- function Zt(e, n = void 0, t = void 0) {
3069
- return console.log("credentials", e), new Promise((i) => {
3101
+ function en(e, n = void 0, t = void 0) {
3102
+ return console.log("credentials", e), new Promise((s) => {
3070
3103
  if (e.token === "" && b(e), !e.space || e.space === "") {
3071
3104
  const o = Z();
3072
3105
  console.log("platformeInfo", o);
3073
3106
  }
3074
- k(
3107
+ I(
3075
3108
  e,
3076
3109
  "Common space",
3077
3110
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -3082,7 +3115,7 @@ function Zt(e, n = void 0, t = void 0) {
3082
3115
  },
3083
3116
  !0
3084
3117
  );
3085
- const s = T.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
3118
+ const i = T.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
3086
3119
  m(r, {
3087
3120
  onComplete(o) {
3088
3121
  if (Array.isArray(JSON.parse(o))) {
@@ -3098,7 +3131,7 @@ function Zt(e, n = void 0, t = void 0) {
3098
3131
  data: JSON.stringify({
3099
3132
  with_indexing_date: !0,
3100
3133
  with_nls: !1,
3101
- label: `3DSearch-${s}`,
3134
+ label: `3DSearch-${i}`,
3102
3135
  locale: "en",
3103
3136
  select_predicate: [
3104
3137
  "ds6w:label",
@@ -3146,81 +3179,82 @@ function Zt(e, n = void 0, t = void 0) {
3146
3179
  }
3147
3180
  export {
3148
3181
  Y as UUID,
3149
- Zt as _3DSearch_usersGroup,
3150
- et as _3DSpace_Create_Doc,
3151
- Ze as _3DSpace_Update_Doc,
3152
- Qe as _3DSpace_Upload_File,
3153
- pt as _3DSpace_bookmark_addSubsciptions,
3154
- dt as _3DSpace_bookmark_getItems,
3155
- ct as _3DSpace_bookmark_getSubSignets,
3156
- ut as _3DSpace_bookmark_newWorkspace,
3182
+ en as _3DSearch_usersGroup,
3183
+ tt as _3DSpace_Create_Doc,
3184
+ et as _3DSpace_Update_Doc,
3185
+ Ze as _3DSpace_Upload_File,
3186
+ lt as _3DSpace_bookmark_addSubsciptions,
3187
+ ut as _3DSpace_bookmark_getItems,
3188
+ dt as _3DSpace_bookmark_getSubSignets,
3189
+ pt as _3DSpace_bookmark_newWorkspace,
3157
3190
  b as _3DSpace_csrf,
3158
3191
  E as _3DSpace_download_doc,
3159
3192
  ce as _3DSpace_download_multidoc,
3160
3193
  G as _3DSpace_file_update,
3161
3194
  oe as _3DSpace_file_update_csr,
3162
- ze as _3DSpace_file_url_csr,
3163
- rt as _3DSpace_getBookmarksRoot,
3195
+ He as _3DSpace_file_url_csr,
3196
+ ct as _3DSpace_getBookmarksRoot,
3197
+ ze as _3DSpace_get_CSRF,
3164
3198
  N as _3DSpace_get_csrf,
3165
3199
  M as _3DSpace_get_docInfo,
3166
3200
  de as _3DSpace_get_downloadTicket_multidoc,
3167
3201
  Ye as _3DSpace_get_multiDocInfo,
3168
- k as _3DSpace_get_securityContexts,
3202
+ I as _3DSpace_get_securityContexts,
3169
3203
  j as _3DSpace_get_ticket,
3170
- ot as _3DSpace_lifecycle_changeRevision,
3171
- nt as _3DSpace_lifecycle_changeState,
3172
- st as _3DSpace_lifecycle_getGraph,
3173
- it as _3DSpace_lifecycle_getNextRevision,
3174
- tt as _3DSpace_lifecycle_getNextStates,
3175
- at as _3DSpace_lifecycle_getRevisions,
3176
- He as _3DSpace_put_docInfo,
3177
- jt as _3DSwym_ForwardIdea,
3178
- At as _3DSwym_addComment,
3179
- xt as _3DSwym_buildDirectMessage,
3180
- Ft as _3DSwym_deleteIdea,
3204
+ at as _3DSpace_lifecycle_changeRevision,
3205
+ st as _3DSpace_lifecycle_changeState,
3206
+ it as _3DSpace_lifecycle_getGraph,
3207
+ ot as _3DSpace_lifecycle_getNextRevision,
3208
+ nt as _3DSpace_lifecycle_getNextStates,
3209
+ rt as _3DSpace_lifecycle_getRevisions,
3210
+ Qe as _3DSpace_put_docInfo,
3211
+ vt as _3DSwym_ForwardIdea,
3212
+ Pt as _3DSwym_addComment,
3213
+ Ut as _3DSwym_buildDirectMessage,
3214
+ Nt as _3DSwym_deleteIdea,
3181
3215
  kt as _3DSwym_editIdea,
3182
3216
  ye as _3DSwym_findCommunityToInstantMSG,
3183
- Tt as _3DSwym_getAllCommunities,
3184
- It as _3DSwym_getAllListIdeas,
3185
- bt as _3DSwym_getAllNews,
3186
- Ot as _3DSwym_getFamiliarPeople,
3187
- $t as _3DSwym_getIdeaStatusMaturity,
3217
+ $t as _3DSwym_getAllCommunities,
3218
+ jt as _3DSwym_getAllListIdeas,
3219
+ Ot as _3DSwym_getAllNews,
3220
+ Tt as _3DSwym_getFamiliarPeople,
3221
+ xt as _3DSwym_getIdeaStatusMaturity,
3188
3222
  he as _3DSwym_getMembersCommunity,
3189
- Nt as _3DSwym_getOneIdea,
3223
+ It as _3DSwym_getOneIdea,
3190
3224
  C as _3DSwym_get_Token,
3191
- vt as _3DSwym_get_currentUser,
3192
- Dt as _3DSwym_get_findUser,
3193
- Rt as _3DSwym_postIdea,
3194
- Ut as _3DSwym_postIdeaTemplate,
3225
+ Dt as _3DSwym_get_currentUser,
3226
+ At as _3DSwym_get_findUser,
3227
+ Ft as _3DSwym_postIdea,
3228
+ Rt as _3DSwym_postIdeaTemplate,
3195
3229
  P as _3DSwym_sendMessageData,
3196
3230
  Je as _AppMngt_get_info_user,
3197
3231
  Le as _AppMngt_get_users,
3198
- Et as _Iterop_AddOrRemoveRows,
3199
- Lt as _Iterop_Auth_CAS,
3200
- Vt as _Iterop_GetOneDependencyTable,
3201
- Ht as _Iterop_GetOneList,
3202
- Yt as _Iterop_PatchDependencyTable,
3203
- zt as _Iterop_PutDependencyTable,
3204
- Kt as _Iterop_businessTableSearchInRows,
3205
- Xt as _Iterop_createBusinessTable,
3206
- Mt as _Iterop_getAllBusinessTables,
3207
- Gt as _Iterop_getOneBusinessTable,
3208
- Bt as _Iterop_getOneBusinessTableRows,
3209
- Jt as _Iterop_jwtUser,
3210
- Wt as _Iterop_runProcess,
3211
- qt as _Iterop_updateBusinessTable,
3232
+ Kt as _Iterop_AddOrRemoveRows,
3233
+ Jt as _Iterop_Auth_CAS,
3234
+ Yt as _Iterop_GetOneDependencyTable,
3235
+ Qt as _Iterop_GetOneList,
3236
+ zt as _Iterop_PatchDependencyTable,
3237
+ Ht as _Iterop_PutDependencyTable,
3238
+ qt as _Iterop_businessTableSearchInRows,
3239
+ Wt as _Iterop_createBusinessTable,
3240
+ Gt as _Iterop_getAllBusinessTables,
3241
+ Bt as _Iterop_getOneBusinessTable,
3242
+ Et as _Iterop_getOneBusinessTableRows,
3243
+ Mt as _Iterop_jwtUser,
3244
+ Vt as _Iterop_runProcess,
3245
+ Xt as _Iterop_updateBusinessTable,
3212
3246
  Ae as _Registry_getServicesUrl,
3213
3247
  ve as _getMe,
3214
3248
  Z as _getPlateformInfos,
3215
3249
  je as _getPlatformServices,
3216
3250
  J as _getServiceUrl,
3217
3251
  De as _getServiceUrl_3DPassport,
3218
- Pt as _getServiceUrl_Iterop,
3252
+ Lt as _getServiceUrl_Iterop,
3219
3253
  m as _httpCallAuthenticated,
3220
3254
  Ne as _setDraggable,
3221
- Ie as _setDroppable,
3222
- ke as _setupTagger,
3223
- St as addTagToDoc,
3255
+ ke as _setDroppable,
3256
+ Ie as _setupTagger,
3257
+ wt as addTagToDoc,
3224
3258
  H as chunkArray,
3225
3259
  Pe as compass_getListAdditionalApps,
3226
3260
  z as couleurs,
@@ -3228,27 +3262,27 @@ export {
3228
3262
  pe as dataMixing,
3229
3263
  qe as deleteUserGroups,
3230
3264
  Ue as findAdresse,
3231
- lt as getAllContextSecurity,
3265
+ ft as getAllContextSecurity,
3232
3266
  te as getCSRFToken,
3233
3267
  xe as getCommunes,
3234
3268
  Ge as getComplementUG,
3235
- ft as getDataFrom3DSpace,
3269
+ mt as getDataFrom3DSpace,
3236
3270
  Re as getDataFromGouvFr,
3237
- yt as getDatasByTenant,
3238
- _t as getDatasFrom3DSpace,
3239
- mt as getDownloadDocument,
3240
- Ct as getInfoDocTags,
3271
+ _t as getDatasByTenant,
3272
+ St as getDatasFrom3DSpace,
3273
+ gt as getDownloadDocument,
3274
+ bt as getInfoDocTags,
3241
3275
  Ke as getUserGroupsByEmailList,
3242
3276
  Ee as getUserGroupsByURIList,
3243
3277
  Be as getUserGroupsList,
3244
3278
  ee as getUsersGroupRules,
3245
- ht as get_3DSpace_csrf,
3279
+ yt as get_3DSpace_csrf,
3246
3280
  Xe as patchUserGroups,
3247
3281
  We as patchUserGroupsControl,
3248
- gt as pushDataIn3DSpace,
3282
+ ht as pushDataIn3DSpace,
3249
3283
  Ve as readUserGroupControl,
3250
- wt as removeTagToDoc,
3251
- Qt as sayHello,
3284
+ Ct as removeTagToDoc,
3285
+ Zt as sayHello,
3252
3286
  Fe as updateEvent
3253
3287
  };
3254
3288
  //# sourceMappingURL=wb3Api.js.map