@beam3_dev/api_module 0.0.352 → 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,8 +144,8 @@ 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
  });
@@ -153,11 +153,11 @@ function Ne(e, n, t) {
153
153
  }
154
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
163
  function ke(e, n) {
@@ -170,9 +170,9 @@ function ke(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,69 +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, n = void 0, t = void 0) {
702
- return new Promise((i, s) => {
701
+ function ze(e) {
702
+ return new Promise((n, t) => {
703
703
  if (e.objID && e.objID !== "") {
704
- let r = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
705
- m(r, {
706
- onComplete(o, a, c) {
707
- const d = JSON.parse(o);
708
- e.success = !0, e.csrf = d?.csrf?.value, e.datas = d?.data[0], i(e);
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
709
  },
710
- onFailure(o) {
711
- s({ success: !1, credentials: e, error: o });
710
+ onFailure(i) {
711
+ t({ success: !1, credentials: e, error: i });
712
712
  }
713
713
  });
714
714
  } else
715
715
  b(
716
716
  e,
717
- (r) => {
718
- e.success = !0, e.csrf = r, i(e);
717
+ (s) => {
718
+ e.success = !0, e.csrf = s, n(e);
719
719
  },
720
- (r) => {
721
- s({ success: !1, credentials: e, error: r });
720
+ (s) => {
721
+ t({ success: !1, credentials: e, error: s });
722
722
  }
723
723
  );
724
724
  });
725
725
  }
726
726
  function b(e, n = void 0, t = void 0) {
727
727
  if (e.space) {
728
- const i = e.space + "/resources/v1/application/CSRF";
729
- m(i, {
730
- onComplete(s, r, o) {
731
- 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);
732
732
  n && n(a.csrf.value);
733
733
  },
734
- onFailure(s, r, o) {
734
+ onFailure(i, r, o) {
735
735
  t && t({
736
- response: s,
736
+ response: i,
737
737
  headers: r,
738
738
  xhr: o
739
739
  });
@@ -743,11 +743,11 @@ function b(e, n = void 0, t = void 0) {
743
743
  t && t("ERROR : url du 3DSpace non défini.");
744
744
  }
745
745
  function j(e, n = void 0, t = void 0) {
746
- 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`;
747
747
  N(
748
748
  e,
749
- (s) => {
750
- m(i, {
749
+ (i) => {
750
+ m(s, {
751
751
  method: "PUT",
752
752
  headers: {
753
753
  ENO_CSRF_TOKEN: e.token
@@ -761,12 +761,12 @@ function j(e, n = void 0, t = void 0) {
761
761
  }
762
762
  });
763
763
  },
764
- (s) => {
765
- console.warn("_3DSpace_get_ticket / error => ", s), t && t(s);
764
+ (i) => {
765
+ console.warn("_3DSpace_get_ticket / error => ", i), t && t(i);
766
766
  }
767
767
  );
768
768
  }
769
- function He(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) {
770
770
  const r = `${e.space}/resources/v1/modeler/documents/${n}/files/DownloadTicket`;
771
771
  t || (t = e.token), m(r, {
772
772
  method: "PUT",
@@ -778,23 +778,23 @@ function He(e, n, t = void 0, i = void 0, s = void 0) {
778
778
  if (console.log("☠️ info => ", a), a.success === !0)
779
779
  try {
780
780
  const c = a.data[0].dataelements.ticketURL;
781
- i && i(c);
782
- } catch (c) {
783
781
  s && s(c);
782
+ } catch (c) {
783
+ i && i(c);
784
784
  }
785
785
  },
786
786
  onFailure(o) {
787
- s && s(o);
787
+ i && i(o);
788
788
  }
789
789
  });
790
790
  }
791
- 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) {
792
792
  const a = () => oe(
793
793
  e,
794
794
  n,
795
795
  t,
796
- i,
797
796
  s,
797
+ i,
798
798
  e.token,
799
799
  r,
800
800
  o
@@ -810,7 +810,7 @@ function G(e, n, t, i, s, r = void 0, o = void 0) {
810
810
  }
811
811
  );
812
812
  }
813
- 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) {
814
814
  const c = e.space + `/resources/v1/modeler/documents/files/CheckinTicket?tenant=${e.tenant.toUpperCase()}&e6w-lang=fr&e6w-timezone=-60&xrequestedwith=xmlhttprequest`;
815
815
  m(c, {
816
816
  method: "PUT",
@@ -828,9 +828,9 @@ function oe(e, n, t, i, s, r, o = void 0, a = void 0) {
828
828
  onComplete(d, u, p) {
829
829
  const f = d.csrf, l = d.data[0].dataelements, g = new FormData();
830
830
  let h;
831
- i instanceof Blob ? h = i : h = new Blob([i], {
831
+ s instanceof Blob ? h = s : h = new Blob([s], {
832
832
  type: "text/plain"
833
- }), 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);
834
834
  const y = {};
835
835
  y.method = "POST", y.data = g, y.onComplete = function(S) {
836
836
  let w = {
@@ -846,7 +846,7 @@ function oe(e, n, t, i, s, r, o = void 0, a = void 0) {
846
846
  files: [
847
847
  {
848
848
  dataelements: {
849
- title: s,
849
+ title: i,
850
850
  receipt: S
851
851
  },
852
852
  updateAction: "REVISE"
@@ -876,11 +876,11 @@ function oe(e, n, t, i, s, r, o = void 0, a = void 0) {
876
876
  }
877
877
  });
878
878
  }
879
- async function Qe(e, n, t = void 0, i = void 0) {
879
+ async function Qe(e, n, t = void 0, s = void 0) {
880
880
  e.space, e.token, e.ctx;
881
- const s = e?.description, r = e?.title;
881
+ const i = e?.description, r = e?.title;
882
882
  if (!n) {
883
- console.warn("Error: docId undefined"), i && i("Error: docId undefined");
883
+ console.warn("Error: docId undefined"), s && s("Error: docId undefined");
884
884
  return;
885
885
  }
886
886
  let o = `${e.space}/resources/v1/modeler/documents/${n}`;
@@ -888,7 +888,7 @@ async function Qe(e, n, t = void 0, i = void 0) {
888
888
  data: [
889
889
  {
890
890
  dataelements: {
891
- description: s,
891
+ description: i,
892
892
  title: r
893
893
  }
894
894
  }
@@ -905,18 +905,18 @@ async function Qe(e, n, t = void 0, i = void 0) {
905
905
  t && t(c);
906
906
  },
907
907
  onFailure(c) {
908
- i && i(c);
908
+ s && s(c);
909
909
  }
910
910
  });
911
911
  }
912
- async function Ze(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) {
913
913
  let { tenant: o, cs_name: a } = e;
914
914
  if (!o && !a) {
915
- s && s("Credentials undefined");
915
+ i && i("Credentials undefined");
916
916
  return;
917
917
  }
918
918
  if (!n && !t) {
919
- s && s("Définition du fichier undefined");
919
+ i && i("Définition du fichier undefined");
920
920
  return;
921
921
  }
922
922
  const c = T.now().ts;
@@ -979,18 +979,18 @@ async function Ze(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0)
979
979
  data: D,
980
980
  type: "json",
981
981
  onComplete(F, Ce, be) {
982
- i && i(F);
982
+ s && s(F);
983
983
  },
984
984
  onFailure(F) {
985
985
  console.warn(
986
986
  "_3DSpace_Upload_Doc | pushFileInFcs | onFailure",
987
987
  { url: v, bodyRequest: D, err: F }
988
- ), s && s(F);
988
+ ), i && i(F);
989
989
  }
990
990
  });
991
991
  },
992
992
  (_) => {
993
- console.warn("pushFileInFcs", _), s && s(_);
993
+ console.warn("pushFileInFcs", _), i && i(_);
994
994
  },
995
995
  (_) => {
996
996
  r && r({ fileName: n, progress: _ });
@@ -998,24 +998,24 @@ async function Ze(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0)
998
998
  );
999
999
  }
1000
1000
  } catch (y) {
1001
- s && s(y);
1001
+ i && i(y);
1002
1002
  }
1003
1003
  },
1004
1004
  onFailure(l) {
1005
- console.warn("_3DSpace_Upload_Doc | onFailure"), s && s(l);
1005
+ console.warn("_3DSpace_Upload_Doc | onFailure"), i && i(l);
1006
1006
  }
1007
1007
  });
1008
1008
  } catch {
1009
- s && s();
1009
+ i && i();
1010
1010
  }
1011
1011
  },
1012
1012
  onFailure(u) {
1013
- s && s(u);
1013
+ i && i(u);
1014
1014
  }
1015
1015
  }
1016
1016
  );
1017
1017
  }
1018
- async function et(e, n, t, i = void 0, s = void 0) {
1018
+ async function et(e, n, t, s = void 0, i = void 0) {
1019
1019
  e.space, e.token, e.ctx, M(
1020
1020
  e,
1021
1021
  n,
@@ -1028,19 +1028,19 @@ async function et(e, n, t, i = void 0, s = void 0) {
1028
1028
  t,
1029
1029
  a,
1030
1030
  (c) => {
1031
- i && i(c);
1031
+ s && s(c);
1032
1032
  },
1033
1033
  (c) => {
1034
- s && s(c);
1034
+ i && i(c);
1035
1035
  }
1036
1036
  );
1037
1037
  },
1038
1038
  (r) => {
1039
- s && s(r);
1039
+ i && i(r);
1040
1040
  }
1041
1041
  );
1042
1042
  }
1043
- async function tt(e, n, t, i, s = void 0, r = void 0) {
1043
+ async function tt(e, n, t, s, i = void 0, r = void 0) {
1044
1044
  ae(
1045
1045
  e,
1046
1046
  (o) => {
@@ -1054,9 +1054,9 @@ async function tt(e, n, t, i, s = void 0, r = void 0) {
1054
1054
  e,
1055
1055
  c,
1056
1056
  t,
1057
- i,
1057
+ s,
1058
1058
  (d) => {
1059
- d?.data.length ? s && s(d) : r && r({
1059
+ d?.data.length ? i && i(d) : r && r({
1060
1060
  success: !1,
1061
1061
  msg: "Erreur lors de la mise en ralation entre la document et le fichier"
1062
1062
  });
@@ -1073,8 +1073,8 @@ async function tt(e, n, t, i, s = void 0, r = void 0) {
1073
1073
  }
1074
1074
  function ae(e, n = void 0, t = void 0) {
1075
1075
  if (e?.space && e.token && e.ctx) {
1076
- let i = `${e.space}/resources/v1/modeler/documents/files/CheckinTicket`;
1077
- m(i, {
1076
+ let s = `${e.space}/resources/v1/modeler/documents/files/CheckinTicket`;
1077
+ m(s, {
1078
1078
  method: "PUT",
1079
1079
  headers: {
1080
1080
  ENO_CSRF_TOKEN: e.token,
@@ -1082,21 +1082,21 @@ function ae(e, n = void 0, t = void 0) {
1082
1082
  "Content-Type": "application/json",
1083
1083
  SecurityContext: e.ctx
1084
1084
  },
1085
- onComplete(s, r, o) {
1085
+ onComplete(i, r, o) {
1086
1086
  try {
1087
- s = JSON.parse(s);
1087
+ i = JSON.parse(i);
1088
1088
  } catch {
1089
1089
  }
1090
- n && n(s);
1090
+ n && n(i);
1091
1091
  },
1092
- onFailure(s) {
1093
- t && t(s);
1092
+ onFailure(i) {
1093
+ t && t(i);
1094
1094
  }
1095
1095
  });
1096
1096
  } else
1097
1097
  console.log("Error de credentials", e);
1098
1098
  }
1099
- 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) {
1100
1100
  console.log("pushFileInFcs", { fcs__jobTicket: e, fileData: n, fileName: t });
1101
1101
  let o = new FormData();
1102
1102
  n instanceof Blob || (n = new Blob([n], {
@@ -1110,12 +1110,12 @@ function B(e, n, t, i = void 0, s = void 0, r = void 0) {
1110
1110
  r && r(u);
1111
1111
  }
1112
1112
  }, c.onload = function() {
1113
- 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);
1114
1114
  }, c.onerror = function() {
1115
- s && s(c.statusText);
1115
+ i && i(c.statusText);
1116
1116
  }, c.send(o);
1117
1117
  }
1118
- 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) {
1119
1119
  console.log("relatedDocAndFile", { credentials: e, receipt: n, filename: t });
1120
1120
  const o = (d) => d.indexOf(".") === -1 ? d : d.split(".").slice(0, -1).join(".");
1121
1121
  let a = "temp_" + T.now().ts, c = e.space + "/resources/v1/modeler/documents/?e6w-lang=fr&e6w-timezone=-120&xrequestedwith=xmlhttprequest";
@@ -1133,7 +1133,7 @@ function re(e, n, t, i = void 0, s = void 0, r = void 0) {
1133
1133
  type: "Document",
1134
1134
  dataelements: {
1135
1135
  title: o(t),
1136
- description: i
1136
+ description: s
1137
1137
  },
1138
1138
  relateddata: {
1139
1139
  files: [
@@ -1155,14 +1155,14 @@ function re(e, n, t, i = void 0, s = void 0, r = void 0) {
1155
1155
  d = JSON.parse(d);
1156
1156
  } catch {
1157
1157
  }
1158
- s && s(d);
1158
+ i && i(d);
1159
1159
  },
1160
1160
  onFailure(d) {
1161
1161
  r && r(d);
1162
1162
  }
1163
1163
  });
1164
1164
  }
1165
- function I(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) {
1166
1166
  const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
1167
1167
  m(a, {
1168
1168
  method: "GET",
@@ -1180,8 +1180,8 @@ function I(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0, o = !1
1180
1180
  )
1181
1181
  ), t && (Array.isArray(t) ? t.forEach((y) => {
1182
1182
  l || h.forEach((S) => {
1183
- if (y === S.role.name && i === S.organization.title)
1184
- l = y, f = i;
1183
+ if (y === S.role.name && s === S.organization.title)
1184
+ l = y, f = s;
1185
1185
  else if (y === S.role.name) {
1186
1186
  let w = h.filter(
1187
1187
  (_) => _.role.name === y
@@ -1190,8 +1190,8 @@ function I(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0, o = !1
1190
1190
  }
1191
1191
  });
1192
1192
  }) : h.forEach((y) => {
1193
- if (t === y.role.name && i === y.organization.title)
1194
- l = t, f = i;
1193
+ if (t === y.role.name && s === y.organization.title)
1194
+ l = t, f = s;
1195
1195
  else if (t === y.role.name) {
1196
1196
  let S = h.filter(
1197
1197
  (w) => w.role.name === t
@@ -1201,7 +1201,7 @@ function I(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0, o = !1
1201
1201
  }));
1202
1202
  }
1203
1203
  }
1204
- 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));
1205
1205
  },
1206
1206
  onFailure(c, d) {
1207
1207
  console.warn("Erreur de récupération du contexte de sécurité. => ", {
@@ -1220,13 +1220,13 @@ async function E(e, n = void 0, t = void 0) {
1220
1220
  "_3DSpace_download_doc() / Le paramètre space est obligatoire"
1221
1221
  ), t && t("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) && te(
1222
1222
  e,
1223
- (i) => {
1224
- e.token = i;
1223
+ (s) => {
1224
+ e.token = s;
1225
1225
  },
1226
- (i) => {
1227
- console.log("☠️ error => ", i);
1226
+ (s) => {
1227
+ console.log("☠️ error => ", s);
1228
1228
  }
1229
- ), new Promise((i, s) => {
1229
+ ), new Promise((s, i) => {
1230
1230
  j(
1231
1231
  e,
1232
1232
  (r) => {
@@ -1242,14 +1242,14 @@ async function E(e, n = void 0, t = void 0) {
1242
1242
  } catch {
1243
1243
  a = o;
1244
1244
  }
1245
- n && typeof n == "function" && n(a), i(a);
1245
+ n && typeof n == "function" && n(a), s(a);
1246
1246
  },
1247
1247
  onFailure(o, a, c) {
1248
1248
  t && (console.log("error http", o), t({
1249
1249
  msg: JSON.parse(o),
1250
1250
  headers: a,
1251
1251
  xhr: c
1252
- }), s({
1252
+ }), i({
1253
1253
  msg: JSON.parse(o),
1254
1254
  headers: a,
1255
1255
  xhr: c
@@ -1258,12 +1258,12 @@ async function E(e, n = void 0, t = void 0) {
1258
1258
  });
1259
1259
  },
1260
1260
  (r) => {
1261
- 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);
1262
1262
  }
1263
1263
  );
1264
1264
  });
1265
1265
  }
1266
- async function ce(e, n, t = void 0, i = void 0) {
1266
+ async function ce(e, n, t = void 0, s = void 0) {
1267
1267
  typeof n < "u" && Array.isArray(n) && n?.length > 0 ? H({
1268
1268
  credentials: e,
1269
1269
  myArray: n,
@@ -1273,11 +1273,11 @@ async function ce(e, n, t = void 0, i = void 0) {
1273
1273
  t && t(r);
1274
1274
  }) : (console.warn(
1275
1275
  "La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
1276
- ), i && i(
1276
+ ), s && s(
1277
1277
  "La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
1278
1278
  ));
1279
1279
  }
1280
- 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) {
1281
1281
  const r = [];
1282
1282
  n.forEach((c) => {
1283
1283
  r.push({
@@ -1309,7 +1309,7 @@ function de(e, n, t = void 0, i = void 0, s = void 0) {
1309
1309
  } catch {
1310
1310
  h = l.blob();
1311
1311
  }
1312
- i && i({
1312
+ s && s({
1313
1313
  objectId: u.id,
1314
1314
  headers: g,
1315
1315
  fileName: p,
@@ -1321,17 +1321,17 @@ function de(e, n, t = void 0, i = void 0, s = void 0) {
1321
1321
  }
1322
1322
  });
1323
1323
  } catch (p) {
1324
- console.log(p), s && s(p);
1324
+ console.log(p), i && i(p);
1325
1325
  }
1326
1326
  }));
1327
1327
  },
1328
1328
  onFailure(c) {
1329
- console.log(c), s && s(c);
1329
+ console.log(c), i && i(c);
1330
1330
  }
1331
1331
  });
1332
1332
  }
1333
- function nt(e, n, t = void 0, i = void 0) {
1334
- return new Promise((s) => {
1333
+ function nt(e, n, t = void 0, s = void 0) {
1334
+ return new Promise((i) => {
1335
1335
  if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
1336
1336
  const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
1337
1337
  let o = {
@@ -1354,14 +1354,14 @@ function nt(e, n, t = void 0, i = void 0) {
1354
1354
  t && t(a);
1355
1355
  },
1356
1356
  onFailure(a) {
1357
- i && i(a);
1357
+ s && s(a);
1358
1358
  }
1359
1359
  };
1360
1360
  m(r, o);
1361
1361
  }
1362
1362
  });
1363
1363
  }
1364
- function st(e, n, t, i = void 0, s = void 0) {
1364
+ function st(e, n, t, s = void 0, i = void 0) {
1365
1365
  return new Promise((r) => {
1366
1366
  if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
1367
1367
  const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
@@ -1383,18 +1383,18 @@ function st(e, n, t, i = void 0, s = void 0) {
1383
1383
  }),
1384
1384
  type: "json",
1385
1385
  onComplete(c) {
1386
- i && i(c);
1386
+ s && s(c);
1387
1387
  },
1388
1388
  onFailure(c) {
1389
- s && s(c);
1389
+ i && i(c);
1390
1390
  }
1391
1391
  };
1392
1392
  m(o, a);
1393
1393
  }
1394
1394
  });
1395
1395
  }
1396
- function it(e, n, t = void 0, i = void 0) {
1397
- return new Promise((s) => {
1396
+ function it(e, n, t = void 0, s = void 0) {
1397
+ return new Promise((i) => {
1398
1398
  if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
1399
1399
  const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
1400
1400
  I(
@@ -1427,15 +1427,15 @@ function it(e, n, t = void 0, i = void 0) {
1427
1427
  t && t(a);
1428
1428
  },
1429
1429
  onFailure(a) {
1430
- i && i(a);
1430
+ s && s(a);
1431
1431
  }
1432
1432
  };
1433
1433
  m(r, o);
1434
1434
  }
1435
1435
  });
1436
1436
  }
1437
- function ot(e, n, t = void 0, i = void 0) {
1438
- return new Promise((s) => {
1437
+ function ot(e, n, t = void 0, s = void 0) {
1438
+ return new Promise((i) => {
1439
1439
  if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
1440
1440
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
1441
1441
  I(
@@ -1474,14 +1474,14 @@ function ot(e, n, t = void 0, i = void 0) {
1474
1474
  t && t(a);
1475
1475
  },
1476
1476
  onFailure(a) {
1477
- i && i(a);
1477
+ s && s(a);
1478
1478
  }
1479
1479
  };
1480
1480
  m(r, o);
1481
1481
  }
1482
1482
  });
1483
1483
  }
1484
- function at(e, n, t, i = void 0, s = void 0) {
1484
+ function at(e, n, t, s = void 0, i = void 0) {
1485
1485
  return new Promise((r) => {
1486
1486
  if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
1487
1487
  const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
@@ -1518,10 +1518,10 @@ function at(e, n, t, i = void 0, s = void 0) {
1518
1518
  }),
1519
1519
  type: "json",
1520
1520
  onComplete(c) {
1521
- i && i(c);
1521
+ s && s(c);
1522
1522
  },
1523
1523
  onFailure(c) {
1524
- s && s(c);
1524
+ i && i(c);
1525
1525
  }
1526
1526
  };
1527
1527
  m(o, a);
@@ -1530,8 +1530,8 @@ function at(e, n, t, i = void 0, s = void 0) {
1530
1530
  }
1531
1531
  function ue(e) {
1532
1532
  return new Promise((n, t) => {
1533
- const i = `${e.space}/resources/pno/person/getsecuritycontext&tenant=${e.tenant.toUpperCase()}&xrequestedwith=xmlhttprequest`;
1534
- m(i, {
1533
+ const s = `${e.space}/resources/pno/person/getsecuritycontext&tenant=${e.tenant.toUpperCase()}&xrequestedwith=xmlhttprequest`;
1534
+ m(s, {
1535
1535
  method: "GET",
1536
1536
  onComplete(r) {
1537
1537
  n(r);
@@ -1542,8 +1542,8 @@ function ue(e) {
1542
1542
  });
1543
1543
  });
1544
1544
  }
1545
- function rt(e, n, t = void 0, i = void 0) {
1546
- return new Promise(async (s, r) => {
1545
+ function rt(e, n, t = void 0, s = void 0) {
1546
+ return new Promise(async (i, r) => {
1547
1547
  const { tenant: o, ctx: a, space: c } = e;
1548
1548
  (!o || !a || !c) && r({ error: "Erreur de credentials", tenant: o, ctx: a, space: c });
1549
1549
  const d = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=1&withAttributes=1&withCopyFrom=1&tenant=${e.tenant.toUpperCase()}&xrequestedwith=xmlhttprequest`;
@@ -1568,10 +1568,10 @@ function rt(e, n, t = void 0, i = void 0) {
1568
1568
  }),
1569
1569
  type: "json",
1570
1570
  onComplete(f) {
1571
- t && t(f), s(f);
1571
+ t && t(f), i(f);
1572
1572
  },
1573
1573
  onFailure(f) {
1574
- i && i(f), r(f);
1574
+ s && s(f), r(f);
1575
1575
  }
1576
1576
  };
1577
1577
  m(d, p);
@@ -1579,21 +1579,21 @@ function rt(e, n, t = void 0, i = void 0) {
1579
1579
  }
1580
1580
  function ct(e) {
1581
1581
  return new Promise((n, t) => {
1582
- const { _fedSearch: i, currentTenant: s, ctx: r } = e;
1582
+ const { _fedSearch: s, currentTenant: i, ctx: r } = e;
1583
1583
  r || t({
1584
1584
  success: !1,
1585
1585
  msg: "getBookmarksRoot: ctx is missing in credentials"
1586
- }), i || t({
1586
+ }), s || t({
1587
1587
  success: !1,
1588
1588
  msg: "getBookmarksRoot: _fedSearch is missing in credentials"
1589
- }), s || t({
1589
+ }), i || t({
1590
1590
  success: !1,
1591
1591
  msg: "getBookmarksRoot: currentTenant is missing in credentials"
1592
1592
  });
1593
1593
  const o = {
1594
- base: i,
1594
+ base: s,
1595
1595
  uri: "/search",
1596
- opt: `?tenant=${s}`
1596
+ opt: `?tenant=${i}`
1597
1597
  }, a = {
1598
1598
  select_predicate: [
1599
1599
  "ds6w:label",
@@ -1628,7 +1628,7 @@ function ct(e) {
1628
1628
  select_file: ["icon", "thumbnail_2d"],
1629
1629
  query: 'flattenedtaxonomies:"types/Workspace"',
1630
1630
  locale: "fr",
1631
- tenant: s,
1631
+ tenant: i,
1632
1632
  source: ["3dspace"],
1633
1633
  indexmode: "true",
1634
1634
  login: {
@@ -1663,8 +1663,8 @@ function ct(e) {
1663
1663
  });
1664
1664
  }
1665
1665
  function dt(e, n) {
1666
- return new Promise((t, i) => {
1667
- const s = `${e.space}/resources/v1/FolderManagement/Folder/${n}/folderTree?tenant=${e.tenant.toUpperCase()}`, r = {
1666
+ return new Promise((t, s) => {
1667
+ const i = `${e.space}/resources/v1/FolderManagement/Folder/${n}/folderTree?tenant=${e.tenant.toUpperCase()}`, r = {
1668
1668
  expandList: "",
1669
1669
  isRoot: "",
1670
1670
  isPersonalFolder: !1,
@@ -1675,7 +1675,7 @@ function dt(e, n) {
1675
1675
  nextStart: 0,
1676
1676
  refine: ""
1677
1677
  };
1678
- m(s, {
1678
+ m(i, {
1679
1679
  method: "POST",
1680
1680
  headers: {
1681
1681
  Accept: "application/json",
@@ -1690,16 +1690,15 @@ function dt(e, n) {
1690
1690
  },
1691
1691
  onFailure(o, a, c) {
1692
1692
  const d = {};
1693
- if (d.error = o, d.headers = a, d.xhr = c, onError)
1694
- 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);
1695
1694
  }
1696
1695
  });
1697
1696
  });
1698
1697
  }
1699
1698
  function ut(e, n) {
1700
- return new Promise((t, i) => {
1701
- const s = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark/${n}?$mask=dsbks:BksMask.Items`;
1702
- m(s, {
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, {
1703
1702
  headers: {
1704
1703
  SecurityContext: `ctx::${e.ctx}`
1705
1704
  },
@@ -1713,18 +1712,18 @@ function ut(e, n) {
1713
1712
  t(o);
1714
1713
  },
1715
1714
  onFailure(r) {
1716
- i(r);
1715
+ s(r);
1717
1716
  }
1718
1717
  });
1719
1718
  });
1720
1719
  }
1721
- function pt(e, n, t, i, s = void 0, r = void 0) {
1720
+ function pt(e, n, t, s, i = void 0, r = void 0) {
1722
1721
  return new Promise((o) => {
1723
1722
  const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
1724
1723
  let c = {
1725
1724
  attributes: {
1726
1725
  title: t,
1727
- description: i,
1726
+ description: s,
1728
1727
  inheritedAccess: "no"
1729
1728
  }
1730
1729
  }, d = {
@@ -1742,7 +1741,7 @@ function pt(e, n, t, i, s = void 0, r = void 0) {
1742
1741
  data: JSON.stringify(d),
1743
1742
  type: "json",
1744
1743
  onComplete(p) {
1745
- s && s(p);
1744
+ i && i(p);
1746
1745
  },
1747
1746
  onFailure(p) {
1748
1747
  r && r(p);
@@ -1751,7 +1750,7 @@ function pt(e, n, t, i, s = void 0, r = void 0) {
1751
1750
  m(a, u);
1752
1751
  });
1753
1752
  }
1754
- function lt(e, n, t, i, s = void 0, r = void 0) {
1753
+ function lt(e, n, t, s, i = void 0, r = void 0) {
1755
1754
  return console.log("credentials", e), new Promise((o) => {
1756
1755
  `${e.space}`, JSON.stringify({
1757
1756
  csrf: {
@@ -1766,7 +1765,7 @@ function lt(e, n, t, i, s = void 0, r = void 0) {
1766
1765
  id: n,
1767
1766
  dataelements: {
1768
1767
  personList: t,
1769
- eventsList: i
1768
+ eventsList: s
1770
1769
  },
1771
1770
  tenant: e.tenant
1772
1771
  }
@@ -1776,12 +1775,12 @@ function lt(e, n, t, i, s = void 0, r = void 0) {
1776
1775
  }
1777
1776
  //!SECTION
1778
1777
  function ft(e, n = void 0, t = void 0) {
1779
- const i = {
1778
+ const s = {
1780
1779
  base: `${e.space}`,
1781
1780
  uri: "/resources/bps/cspaces",
1782
1781
  optTenant: `tenant=${e.tenant}`
1783
- }, s = `${i.base}${i.uri}?${i.optTenant}`;
1784
- m(s, {
1782
+ }, i = `${s.base}${s.uri}?${s.optTenant}`;
1783
+ m(i, {
1785
1784
  method: "GET",
1786
1785
  headers: {
1787
1786
  Accept: "application/json,text/javascript,*/*",
@@ -1796,36 +1795,36 @@ function ft(e, n = void 0, t = void 0) {
1796
1795
  }
1797
1796
  });
1798
1797
  }
1799
- function mt(e, n, t, i) {
1798
+ function mt(e, n, t, s) {
1800
1799
  j(
1801
1800
  e.space,
1802
1801
  n,
1803
- (s) => {
1804
- m(s, {
1802
+ (i) => {
1803
+ m(i, {
1805
1804
  header: { ENO_CSRF_TOKEN: e.token },
1806
1805
  onComplete: (r) => {
1807
1806
  t && t(r);
1808
1807
  },
1809
1808
  onFailure: (r) => {
1810
- console.log("error http", r), i && i(r);
1809
+ console.log("error http", r), s && s(r);
1811
1810
  }
1812
1811
  });
1813
1812
  }
1814
1813
  );
1815
1814
  }
1816
- async function gt(e, n, t = void 0, i = void 0) {
1817
- return new Promise((s) => {
1815
+ async function gt(e, n, t = void 0, s = void 0) {
1816
+ return new Promise((i) => {
1818
1817
  j(e, n, (r) => {
1819
1818
  m(r, {
1820
- 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),
1821
1820
  onFailure: (o, a, c) => {
1822
- i && i(o, a, c), console.log(o, a?.errormsg);
1821
+ s && s(o, a, c), console.log(o, a?.errormsg);
1823
1822
  }
1824
1823
  });
1825
1824
  });
1826
1825
  });
1827
1826
  }
1828
- function ht(e, n, t, i = void 0, s = void 0) {
1827
+ function ht(e, n, t, s = void 0, i = void 0) {
1829
1828
  const r = new Blob([JSON.stringify(n)], { type: "text/plain" });
1830
1829
  e = { ...e, objID: t }, N(
1831
1830
  e,
@@ -1839,15 +1838,15 @@ function ht(e, n, t, i = void 0, s = void 0) {
1839
1838
  r,
1840
1839
  c,
1841
1840
  (d) => {
1842
- i && i(d);
1841
+ s && s(d);
1843
1842
  },
1844
1843
  (d) => {
1845
- s && s(d);
1844
+ i && i(d);
1846
1845
  }
1847
1846
  );
1848
1847
  },
1849
1848
  (o) => {
1850
- 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);
1851
1850
  }
1852
1851
  );
1853
1852
  }
@@ -1856,60 +1855,60 @@ const A = [];
1856
1855
  async function yt(e, n = void 0, t = void 0) {
1857
1856
  e.objID && e.objID !== "" ? N(
1858
1857
  e,
1859
- (i) => {
1860
- n && n(i);
1858
+ (s) => {
1859
+ n && n(s);
1861
1860
  },
1862
- (i) => {
1863
- t && t(i);
1861
+ (s) => {
1862
+ t && t(s);
1864
1863
  }
1865
1864
  ) : (e.objID === null || e.objID === "") && b(
1866
1865
  e,
1867
- (i) => {
1868
- n && n({ rep: i, msg: "Pas d'objID, ou invalide" });
1866
+ (s) => {
1867
+ n && n({ rep: s, msg: "Pas d'objID, ou invalide" });
1869
1868
  },
1870
- (i) => {
1871
- 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 });
1872
1871
  }
1873
1872
  );
1874
1873
  }
1875
1874
  async function _t(e, n = void 0, t = void 0) {
1876
1875
  console.log("getDatasByTenant (getDocuments)", e), await E(
1877
1876
  e,
1878
- (i) => {
1879
- const s = {};
1880
- 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);
1881
1880
  },
1882
- (i) => {
1883
- t && t?.(i);
1881
+ (s) => {
1882
+ t && t?.(s);
1884
1883
  }
1885
1884
  );
1886
1885
  }
1887
1886
  function St(e, n = void 0, t = void 0) {
1888
- const i = [];
1887
+ const s = [];
1889
1888
  if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
1890
1889
  console.warn("la liste est vide ou n'est pas un tableau");
1891
1890
  return;
1892
1891
  }
1893
- e.objIds.forEach((s, r) => {
1892
+ e.objIds.forEach((i, r) => {
1894
1893
  E(
1895
1894
  e,
1896
- s.objID,
1895
+ i.objID,
1897
1896
  (o) => {
1898
- 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);
1899
1898
  }
1900
1899
  );
1901
1900
  });
1902
1901
  }
1903
- function pe(e, n, t = void 0, i = void 0) {
1902
+ function pe(e, n, t = void 0, s = void 0) {
1904
1903
  ce(
1905
1904
  e,
1906
1905
  K,
1907
- (s) => {
1906
+ (i) => {
1908
1907
  const r = [...n];
1909
- 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);
1910
1909
  },
1911
- (s) => {
1912
- i && (i(s), console.log(s));
1910
+ (i) => {
1911
+ s && (s(i), console.log(i));
1913
1912
  }
1914
1913
  );
1915
1914
  }
@@ -1933,12 +1932,12 @@ const le = "FA35FB9B177A280065800EA0000F599C", fe = [
1933
1932
  order_by: "desc",
1934
1933
  tag: "testTag"
1935
1934
  };
1936
- function wt(e, n, t = void 0, i = void 0) {
1937
- 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 = {
1938
1937
  uri: "/resources/6w/tags",
1939
1938
  otpCTX: "SecurityContext=preferred",
1940
1939
  optTenant: `tenant=${r}`
1941
- }, u = `${s}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
1940
+ }, u = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
1942
1941
  tag: [
1943
1942
  {
1944
1943
  subject: [
@@ -1976,26 +1975,26 @@ function wt(e, n, t = void 0, i = void 0) {
1976
1975
  t && t(w);
1977
1976
  },
1978
1977
  (w) => {
1979
- i && i(w);
1978
+ s && s(w);
1980
1979
  }
1981
1980
  );
1982
1981
  },
1983
1982
  (g, h) => {
1984
1983
  const y = g;
1985
- 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);
1986
1985
  }
1987
1986
  );
1988
1987
  }, 2e3);
1989
1988
  },
1990
1989
  onFailure(f, l) {
1991
1990
  const g = f;
1992
- 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);
1993
1992
  }
1994
1993
  });
1995
1994
  }
1996
- function ge(e, n, t = void 0, i = void 0) {
1995
+ function ge(e, n, t = void 0, s = void 0) {
1997
1996
  console.log("obj ", n);
1998
- const s = n.info.name, r = {
1997
+ const i = n.info.name, r = {
1999
1998
  baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
2000
1999
  uri: "/federated/search"
2001
2000
  }, o = `${r.baseUrl}${r.uri}`, a = {
@@ -2033,7 +2032,7 @@ function ge(e, n, t = void 0, i = void 0) {
2033
2032
  ],
2034
2033
  with_synthesis_hierarchical: !0,
2035
2034
  select_file: ["icon", "thumbnail_2d"],
2036
- query: s,
2035
+ query: i,
2037
2036
  specific_source_parameter: {
2038
2037
  "3dspace": {
2039
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)'
@@ -2072,12 +2071,12 @@ function ge(e, n, t = void 0, i = void 0) {
2072
2071
  },
2073
2072
  onFailure(u, p) {
2074
2073
  const f = u;
2075
- 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);
2076
2075
  }
2077
2076
  });
2078
2077
  }
2079
- function Ct(e, n, t = void 0, i = void 0) {
2080
- 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 = {
2081
2080
  uri: "/resources/6w/tags",
2082
2081
  otpCTX: "SecurityContext=preferred",
2083
2082
  optTenant: `tenant=${e.tenant}`
@@ -2086,7 +2085,7 @@ function Ct(e, n, t = void 0, i = void 0) {
2086
2085
  {
2087
2086
  subject: [
2088
2087
  {
2089
- uri: `pid://${s}`
2088
+ uri: `pid://${i}`
2090
2089
  }
2091
2090
  ],
2092
2091
  predicate: X[r],
@@ -2108,12 +2107,12 @@ function Ct(e, n, t = void 0, i = void 0) {
2108
2107
  },
2109
2108
  onFailure(u, p) {
2110
2109
  const f = u;
2111
- 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);
2112
2111
  }
2113
2112
  });
2114
2113
  }
2115
- function bt(e, n = "", t = void 0, i = void 0) {
2116
- const { space: s } = e;
2114
+ function bt(e, n = "", t = void 0, s = void 0) {
2115
+ const { space: i } = e;
2117
2116
  if (n === "")
2118
2117
  return;
2119
2118
  const r = {
@@ -2121,7 +2120,7 @@ function bt(e, n = "", t = void 0, i = void 0) {
2121
2120
  }, o = {
2122
2121
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
2123
2122
  Accept: "application/json,text/javascript,*/*"
2124
- }, 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}`;
2125
2124
  m(a, {
2126
2125
  method: "POST",
2127
2126
  headers: o,
@@ -2131,25 +2130,25 @@ function bt(e, n = "", t = void 0, i = void 0) {
2131
2130
  },
2132
2131
  onFailure(d, u) {
2133
2132
  const p = d;
2134
- p.msg = u.error, i && i(p);
2133
+ p.msg = u.error, s && s(p);
2135
2134
  }
2136
2135
  });
2137
2136
  }
2138
2137
  async function C(e, n = void 0, t = void 0) {
2139
- const i = e._3DSwym + "/api/index/tk";
2140
- return m(i, {
2141
- onComplete(s, r, o) {
2142
- 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);
2143
2142
  if (n)
2144
2143
  return n(a), e.token = a?.result?.ServerToken;
2145
2144
  },
2146
- onFailure(s) {
2147
- t && t(s);
2145
+ onFailure(i) {
2146
+ t && t(i);
2148
2147
  }
2149
2148
  });
2150
2149
  }
2151
2150
  function Ot(e, n = void 0, t = void 0) {
2152
- const i = `${e._3DSwym}/api/exalead/whatsnew`, s = {
2151
+ const s = `${e._3DSwym}/api/exalead/whatsnew`, i = {
2153
2152
  params: {
2154
2153
  community_id: null,
2155
2154
  hash_key: null,
@@ -2160,14 +2159,14 @@ function Ot(e, n = void 0, t = void 0) {
2160
2159
  }
2161
2160
  };
2162
2161
  C(e, (r) => {
2163
- m(i, {
2162
+ m(s, {
2164
2163
  method: "POST",
2165
2164
  headers: {
2166
2165
  "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
2167
2166
  "Content-type": "application/json;charset=UTF-8",
2168
2167
  Accept: "application/json"
2169
2168
  },
2170
- data: JSON.stringify(s),
2169
+ data: JSON.stringify(i),
2171
2170
  type: "json",
2172
2171
  onComplete(o, a) {
2173
2172
  n && n(o, a);
@@ -2179,7 +2178,7 @@ function Ot(e, n = void 0, t = void 0) {
2179
2178
  });
2180
2179
  }
2181
2180
  function Tt(e, n = void 0, t = void 0) {
2182
- const i = `${e._3DSwym}/api/Recommendation/getpeoplefamiliartocurrentuser`, s = {
2181
+ const s = `${e._3DSwym}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
2183
2182
  params: {
2184
2183
  idsToFilterArr: [],
2185
2184
  mode: "offline",
@@ -2189,14 +2188,14 @@ function Tt(e, n = void 0, t = void 0) {
2189
2188
  }
2190
2189
  };
2191
2190
  C(e, (r) => {
2192
- m(i, {
2191
+ m(s, {
2193
2192
  method: "POST",
2194
2193
  headers: {
2195
2194
  "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
2196
2195
  "Content-type": "application/json;charset=UTF-8",
2197
2196
  Accept: "application/json"
2198
2197
  },
2199
- data: JSON.stringify(s),
2198
+ data: JSON.stringify(i),
2200
2199
  type: "json",
2201
2200
  onComplete(o, a) {
2202
2201
  const c = o.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
@@ -2209,14 +2208,14 @@ function Tt(e, n = void 0, t = void 0) {
2209
2208
  });
2210
2209
  }
2211
2210
  function $t(e, n = void 0, t = void 0) {
2212
- const i = {
2211
+ const s = {
2213
2212
  base: e._3DSwym,
2214
2213
  uri: "/api/community/listmycommunities",
2215
2214
  limit: `/limit/${e.limit ? e.limit : 500}`,
2216
2215
  page: `/page/${e.page ? e.page : "1"}`
2217
- }, s = `${i.base}${i.uri}${i.limit}${i.page}`, r = [];
2216
+ }, i = `${s.base}${s.uri}${s.limit}${s.page}`, r = [];
2218
2217
  C(e, (o) => {
2219
- m(s, {
2218
+ m(i, {
2220
2219
  method: "GET",
2221
2220
  headers: {
2222
2221
  "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
@@ -2250,8 +2249,8 @@ function $t(e, n = void 0, t = void 0) {
2250
2249
  });
2251
2250
  });
2252
2251
  }
2253
- function he(e, n, t, i) {
2254
- const s = `${e._3DSwym}/api/community/listmembers`, r = {
2252
+ function he(e, n, t, s) {
2253
+ const i = `${e._3DSwym}/api/community/listmembers`, r = {
2255
2254
  params: {
2256
2255
  page: e.page ? e.page : 1,
2257
2256
  limit: e.limit ? e.limit : 50,
@@ -2259,7 +2258,7 @@ function he(e, n, t, i) {
2259
2258
  }
2260
2259
  };
2261
2260
  C(e, (o) => {
2262
- m(s, {
2261
+ m(i, {
2263
2262
  method: "POST",
2264
2263
  headers: {
2265
2264
  "Content-type": "application/json;charset=UTF-8",
@@ -2273,17 +2272,17 @@ function he(e, n, t, i) {
2273
2272
  },
2274
2273
  onFailure(a, c) {
2275
2274
  const d = a;
2276
- d.status = c.status, d.response = c.errormsg, i && i(d);
2275
+ d.status = c.status, d.response = c.errormsg, s && s(d);
2277
2276
  }
2278
2277
  });
2279
2278
  });
2280
2279
  }
2281
2280
  function xt(e, n = void 0, t = void 0) {
2282
- const i = "YXdA5x4DSUKtlAi2wmnyTA";
2283
- e.commu_id || (e.commu_id = i);
2284
- const s = `${e._3DSwym}/api/v2/communities/${e.commu_id}/ideas/statuses`;
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`;
2285
2284
  C(e, (r) => {
2286
- m(s, {
2285
+ m(i, {
2287
2286
  method: "GET",
2288
2287
  headers: {
2289
2288
  "Content-type": "application/json;charset=UTF-8",
@@ -2301,9 +2300,9 @@ function xt(e, n = void 0, t = void 0) {
2301
2300
  });
2302
2301
  });
2303
2302
  }
2304
- function Ut(e, n, t = void 0, i = void 0) {
2305
- const { listAllContacts: s, currentUser: r, _3DSwym: o } = e;
2306
- 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);
2307
2306
  const a = `${o}/api/directmessages`, c = {
2308
2307
  users: [r.login].concat(n.receipt)
2309
2308
  }, d = {
@@ -2319,7 +2318,7 @@ function Ut(e, n, t = void 0, i = void 0) {
2319
2318
  p !== void 0 && (d.id_msg = p.id, u = !0, P(e, d));
2320
2319
  },
2321
2320
  (p) => {
2322
- 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 = "";
2323
2322
  }
2324
2323
  ), u === !1 && setTimeout(() => {
2325
2324
  u === !1 && C(e, (p) => {
@@ -2338,16 +2337,16 @@ function Ut(e, n, t = void 0, i = void 0) {
2338
2337
  },
2339
2338
  onFailure(f, l, g) {
2340
2339
  const h = f;
2341
- h.msg = l.errormsg, h.status = l.status, i && i(h);
2340
+ h.msg = l.errormsg, h.status = l.status, s && s(h);
2342
2341
  }
2343
2342
  });
2344
2343
  });
2345
2344
  }, 500);
2346
2345
  }
2347
- function ye(e, n, t, i) {
2348
- 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`;
2349
2348
  C(e, (r) => {
2350
- m(s, {
2349
+ m(i, {
2351
2350
  method: "GET",
2352
2351
  headers: {
2353
2352
  Accept: "application/json,text/javascript,*/*",
@@ -2364,22 +2363,22 @@ function ye(e, n, t, i) {
2364
2363
  f.push(l.login);
2365
2364
  }), JSON.stringify(f) === JSON.stringify(d);
2366
2365
  });
2367
- 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);
2368
2367
  },
2369
2368
  onFailure(o) {
2370
2369
  const a = o;
2371
- 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);
2372
2371
  }
2373
2372
  });
2374
2373
  });
2375
2374
  }
2376
- function P(e, n, t = void 0, i = void 0) {
2377
- const s = {
2375
+ function P(e, n, t = void 0, s = void 0) {
2376
+ const i = {
2378
2377
  base: e._3DSwym,
2379
2378
  uri: "/api/community",
2380
2379
  id_msg: `${n.id_msg}`,
2381
2380
  endUri: "/instantmessages"
2382
- }, r = `${s.base}${s.uri}/${s.id_msg}${s.endUri}`, o = {
2381
+ }, r = `${i.base}${i.uri}/${i.id_msg}${i.endUri}`, o = {
2383
2382
  author: { login: n.senderId, displayName: n.senderName },
2384
2383
  accessState: null,
2385
2384
  commentUri: null,
@@ -2405,7 +2404,7 @@ function P(e, n, t = void 0, i = void 0) {
2405
2404
  },
2406
2405
  onFailure(c, d) {
2407
2406
  const u = c;
2408
- 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);
2409
2408
  }
2410
2409
  });
2411
2410
  });
@@ -2417,8 +2416,8 @@ function _e(e) {
2417
2416
  <hr/>
2418
2417
  <p><u>envoyer :</u>Le <b>${n} à ${t}</b></p>`;
2419
2418
  }
2420
- function Rt(e, n, t = void 0, i = void 0) {
2421
- 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(
2422
2421
  (c) => c.id === n.community_id
2423
2422
  ), o = e.swymCommunities.find(
2424
2423
  (c) => c.title.toLowerCase() === n.community_title.toLowerCase()
@@ -2440,7 +2439,7 @@ function Rt(e, n, t = void 0, i = void 0) {
2440
2439
  Accept: "application/json",
2441
2440
  "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
2442
2441
  };
2443
- m(s, {
2442
+ m(i, {
2444
2443
  method: "POST",
2445
2444
  headers: d,
2446
2445
  data: JSON.stringify(a),
@@ -2451,16 +2450,16 @@ function Rt(e, n, t = void 0, i = void 0) {
2451
2450
  },
2452
2451
  onFailure(u, p, f) {
2453
2452
  const l = u;
2454
- l.status = p.status, l.response = p.errormsg, i && i(l);
2453
+ l.status = p.status, l.response = p.errormsg, s && s(l);
2455
2454
  }
2456
2455
  });
2457
2456
  });
2458
2457
  }
2459
2458
  function Ft(e, n = void 0, t = void 0) {
2460
- const i = { base: e.space, uri: "/api/idea/add" };
2459
+ const s = { base: e.space, uri: "/api/idea/add" };
2461
2460
  if (!Array.isArray(e.swymCommunities)) {
2462
2461
  const o = "☠️ swymCommunities doit être un tableau d'objets de communautés";
2463
- 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}`, {
2464
2463
  cause: o
2465
2464
  });
2466
2465
  }
@@ -2468,19 +2467,19 @@ function Ft(e, n = void 0, t = void 0) {
2468
2467
  (o) => o.id === e.community_id
2469
2468
  ) === -1) {
2470
2469
  const o = "la communauté n'existe pas dans la liste des communautés du Swym";
2471
- 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}`, {
2472
2471
  cause: o
2473
2472
  });
2474
2473
  }
2475
2474
  if (e.community_id && e.community_id === "") {
2476
2475
  const o = "☠️ community_id doit être un String qui contient l'id de la communauté dans laquelle on souhaite publier l'idée.";
2477
- 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}`, {
2478
2477
  cause: o
2479
2478
  });
2480
2479
  }
2481
2480
  if (e.title && e.title === "") {
2482
2481
  const o = "☠️ title doit être un String.";
2483
- 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}`, {
2484
2483
  cause: o
2485
2484
  });
2486
2485
  }
@@ -2499,7 +2498,7 @@ function Ft(e, n = void 0, t = void 0) {
2499
2498
  C(e, (o) => {
2500
2499
  if (!o)
2501
2500
  throw new Error(
2502
- `☠️ 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}`,
2503
2502
  {
2504
2503
  cause: o
2505
2504
  }
@@ -2518,7 +2517,7 @@ function Ft(e, n = void 0, t = void 0) {
2518
2517
  },
2519
2518
  onFailure(c, d, u) {
2520
2519
  const p = JSON.parse(d), f = JSON.parse(c), l = new Error(
2521
- `Erreur sur cette requête : ${i.base + i.uri}`,
2520
+ `Erreur sur cette requête : ${s.base + s.uri}`,
2522
2521
  {
2523
2522
  cause: { head: p, rep: f }
2524
2523
  }
@@ -2526,18 +2525,18 @@ function Ft(e, n = void 0, t = void 0) {
2526
2525
  t && t(l);
2527
2526
  }
2528
2527
  };
2529
- m(i.base + i.uri, a);
2528
+ m(s.base + s.uri, a);
2530
2529
  });
2531
2530
  }
2532
- function Nt(e, n, t = void 0, i = void 0) {
2533
- 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 = {
2534
2533
  params: {
2535
2534
  community_id: n.community_id,
2536
2535
  ideationIds: [n.idee_id]
2537
2536
  }
2538
2537
  };
2539
2538
  C(e, (o) => {
2540
- m(s, {
2539
+ m(i, {
2541
2540
  method: "POST",
2542
2541
  headers: {
2543
2542
  "Content-type": "application/json;charset=UTF-8",
@@ -2551,13 +2550,13 @@ function Nt(e, n, t = void 0, i = void 0) {
2551
2550
  },
2552
2551
  onFailure(a, c, d) {
2553
2552
  const u = a;
2554
- u.status = c.status, u.response = c.errormsg, i && i(u);
2553
+ u.status = c.status, u.response = c.errormsg, s && s(u);
2555
2554
  }
2556
2555
  });
2557
2556
  });
2558
2557
  }
2559
2558
  function It(e, n = void 0, t = void 0) {
2560
- const { _3DSwym: i, _3DSwym_token: s } = e, r = `${i}/api/idea/get`;
2559
+ const { _3DSwym: s, _3DSwym_token: i } = e, r = `${s}/api/idea/get`;
2561
2560
  if (e.idPost === "") {
2562
2561
  const a = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
2563
2562
  throw new Error(`Erreur sur cette requête : ${r}`, { cause: a });
@@ -2572,7 +2571,7 @@ function It(e, n = void 0, t = void 0) {
2572
2571
  headers: {
2573
2572
  "Content-type": "application/json;charset=UTF-8",
2574
2573
  Accept: "application/json",
2575
- "X-DS-SWYM-CSRFTOKEN": s
2574
+ "X-DS-SWYM-CSRFTOKEN": i
2576
2575
  },
2577
2576
  data: JSON.stringify(o),
2578
2577
  onComplete(a) {
@@ -2586,8 +2585,8 @@ function It(e, n = void 0, t = void 0) {
2586
2585
  }
2587
2586
  function kt(e, n, t) {
2588
2587
  const {
2589
- _3DSwym: i,
2590
- _3DSwym_token: s,
2588
+ _3DSwym: s,
2589
+ _3DSwym_token: i,
2591
2590
  idPost: r,
2592
2591
  title: o,
2593
2592
  community_id: a,
@@ -2595,14 +2594,14 @@ function kt(e, n, t) {
2595
2594
  status_id: d,
2596
2595
  message: u
2597
2596
  } = e, p = {
2598
- base: `${i}`,
2597
+ base: `${s}`,
2599
2598
  uri: "/api/idea/edit"
2600
2599
  }, l = {
2601
2600
  method: "POST",
2602
2601
  headers: {
2603
2602
  "Content-type": "application/json;charset=UTF-8",
2604
2603
  Accept: "application/json",
2605
- "X-DS-SWYM-CSRFTOKEN": s
2604
+ "X-DS-SWYM-CSRFTOKEN": i
2606
2605
  },
2607
2606
  data: JSON.stringify({
2608
2607
  params: {
@@ -2629,8 +2628,8 @@ function kt(e, n, t) {
2629
2628
  };
2630
2629
  m(p.base + p.uri, l);
2631
2630
  }
2632
- function jt(e, n, t = void 0, i = void 0) {
2633
- const { _3DSwym: s } = e;
2631
+ function jt(e, n, t = void 0, s = void 0) {
2632
+ const { _3DSwym: i } = e;
2634
2633
  let { community_id: r, limit: o, page: a, search: c } = n;
2635
2634
  const d = [], u = 1;
2636
2635
  let p = !1, f = 2;
@@ -2641,7 +2640,7 @@ function jt(e, n, t = void 0, i = void 0) {
2641
2640
  limit: `/limit/${o}`,
2642
2641
  page: `/page/${a}`
2643
2642
  };
2644
- let g = `${s}${l.uri}${l.comId}${l.limit}${l.page}`;
2643
+ let g = `${i}${l.uri}${l.comId}${l.limit}${l.page}`;
2645
2644
  C(e, (h) => {
2646
2645
  const y = (S) => {
2647
2646
  m(S, {
@@ -2652,7 +2651,7 @@ function jt(e, n, t = void 0, i = void 0) {
2652
2651
  onComplete(w) {
2653
2652
  const _ = { response: JSON.parse(w) };
2654
2653
  if (f = Math.ceil(Number(_.response.nb_result) / 100), w && f >= a) {
2655
- 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)
2656
2655
  d.push(_.response.result);
2657
2656
  else {
2658
2657
  const O = _.response.result.find(
@@ -2672,7 +2671,7 @@ function jt(e, n, t = void 0, i = void 0) {
2672
2671
  },
2673
2672
  onFailure(w, _) {
2674
2673
  const O = w;
2675
- O.status = _.status, O.response = _.errormsg, i && i(O);
2674
+ O.status = _.status, O.response = _.errormsg, s && s(O);
2676
2675
  }
2677
2676
  });
2678
2677
  };
@@ -2755,9 +2754,9 @@ function Se(e) {
2755
2754
  </p>` : e;
2756
2755
  }
2757
2756
  function vt(e, n = void 0, t = void 0) {
2758
- const { tenant: i, _3DSwym: s, _3DSwym_token: r, community_id: o, idea_id: a } = e;
2759
- if (i && s && r && o && a) {
2760
- const c = `${s}/api/idea/forward`;
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`;
2761
2760
  m(c, {
2762
2761
  method: "POST",
2763
2762
  headers: {
@@ -2766,8 +2765,8 @@ function vt(e, n = void 0, t = void 0) {
2766
2765
  "X-DS-SWYM-CSRFTOKEN": r
2767
2766
  },
2768
2767
  data: JSON.stringify({
2769
- community_uri: `swym:prd:${i.toUpperCase()}:community:${o}`,
2770
- 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}`,
2771
2770
  timeout: 3e4
2772
2771
  }),
2773
2772
  type: "json",
@@ -2788,7 +2787,7 @@ function vt(e, n = void 0, t = void 0) {
2788
2787
  });
2789
2788
  }
2790
2789
  function Dt(e, n = void 0, t = void 0) {
2791
- return new Promise((i, s) => {
2790
+ return new Promise((s, i) => {
2792
2791
  try {
2793
2792
  let r;
2794
2793
  if (e._3DDashboard) {
@@ -2802,27 +2801,27 @@ function Dt(e, n = void 0, t = void 0) {
2802
2801
  try {
2803
2802
  p = JSON.parse(u);
2804
2803
  } catch (f) {
2805
- s("ERROR | _3DSwym_get_currentUser => JSON.Parse()", f);
2804
+ i("ERROR | _3DSwym_get_currentUser => JSON.Parse()", f);
2806
2805
  }
2807
- 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);
2808
2807
  },
2809
2808
  onFailure(a) {
2810
- s("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", a);
2809
+ i("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", a);
2811
2810
  }
2812
2811
  });
2813
2812
  }
2814
- 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");
2815
2814
  } catch (r) {
2816
- s("ERROR | _3DSwym_get_currentUser => ", r);
2815
+ i("ERROR | _3DSwym_get_currentUser => ", r);
2817
2816
  }
2818
2817
  });
2819
2818
  }
2820
- function At(e, n, t = void 0, i = void 0) {
2821
- 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;
2822
2821
  C(
2823
2822
  e,
2824
2823
  (r) => {
2825
- m(s, {
2824
+ m(i, {
2826
2825
  method: "GET",
2827
2826
  headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
2828
2827
  onComplete(o, a, c) {
@@ -2830,25 +2829,25 @@ function At(e, n, t = void 0, i = void 0) {
2830
2829
  t && t(d);
2831
2830
  },
2832
2831
  onFailure(o) {
2833
- i && i(o);
2832
+ s && s(o);
2834
2833
  }
2835
2834
  });
2836
2835
  },
2837
- i
2836
+ s
2838
2837
  );
2839
2838
  }
2840
2839
  function Pt(e, n = void 0, t = void 0) {
2841
2840
  const {
2842
- _3DSwym: i,
2843
- _3DSwym_token: s,
2841
+ _3DSwym: s,
2842
+ _3DSwym_token: i,
2844
2843
  subjectUri: r,
2845
2844
  richMessage: o
2846
- } = e, a = `${i}/commentproxy/subjects/${r}/comments`, d = {
2845
+ } = e, a = `${s}/commentproxy/subjects/${r}/comments`, d = {
2847
2846
  method: "POST",
2848
2847
  headers: {
2849
2848
  "Content-type": "application/json;charset=UTF-8",
2850
2849
  Accept: "application/json",
2851
- "X-DS-SWYM-CSRFTOKEN": s
2850
+ "X-DS-SWYM-CSRFTOKEN": i
2852
2851
  },
2853
2852
  data: JSON.stringify({ richMessage: o }),
2854
2853
  type: "json",
@@ -2865,16 +2864,16 @@ function Pt(e, n = void 0, t = void 0) {
2865
2864
  m(a, d);
2866
2865
  }
2867
2866
  function Lt(e, n = void 0, t = void 0) {
2868
- e.tenant && J(e, (i) => {
2869
- const s = i.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2870
- return n && n(s), s;
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;
2871
2870
  });
2872
2871
  }
2873
2872
  function Jt(e, n = void 0, t = void 0) {
2874
- e.tenant ? J(e, (i) => {
2875
- const s = i.services.find(
2873
+ e.tenant ? J(e, (s) => {
2874
+ const i = s.services.find(
2876
2875
  (a) => a.id === "3dpassport"
2877
- )?.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`;
2878
2877
  m(o, {
2879
2878
  async onComplete(a) {
2880
2879
  const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
@@ -2892,32 +2891,32 @@ function Jt(e, n = void 0, t = void 0) {
2892
2891
  }
2893
2892
  function Mt(e, n = void 0, t = void 0) {
2894
2893
  if (e.tenant) {
2895
- const i = e.tenant.toLowerCase();
2896
- fetch(`https://api.uixhome.fr/${i}/iterop/jwtuser`, {
2894
+ const s = e.tenant.toLowerCase();
2895
+ fetch(`https://api.uixhome.fr/${s}/iterop/jwtuser`, {
2897
2896
  method: "POST"
2898
- }).then((s) => s.json()).then((s) => {
2899
- n && n(s);
2900
- }).catch((s) => {
2901
- t && t(s);
2897
+ }).then((i) => i.json()).then((i) => {
2898
+ n && n(i);
2899
+ }).catch((i) => {
2900
+ t && t(i);
2902
2901
  });
2903
2902
  }
2904
2903
  }
2905
- async function Gt(e, n, t = void 0, i = void 0) {
2904
+ async function Gt(e, n, t = void 0, s = void 0) {
2906
2905
  if (e.tenant) {
2907
- const s = e.tenant.toLowerCase();
2906
+ const i = e.tenant.toLowerCase();
2908
2907
  fetch(
2909
- `https://api.uixhome.fr/${s}/iterop/repository/data/tables?t=${n}`,
2908
+ `https://api.uixhome.fr/${i}/iterop/repository/data/tables?t=${n}`,
2910
2909
  {
2911
2910
  method: "GET"
2912
2911
  }
2913
2912
  ).then((r) => r.json()).then((r) => {
2914
2913
  t && t(r);
2915
2914
  }).catch((r) => {
2916
- i && i(r);
2915
+ s && s(r);
2917
2916
  });
2918
2917
  }
2919
2918
  }
2920
- function Bt(e, n, t, i = void 0, s = void 0) {
2919
+ function Bt(e, n, t, s = void 0, i = void 0) {
2921
2920
  if (e.tenant) {
2922
2921
  const r = e.tenant.toLowerCase();
2923
2922
  fetch(
@@ -2926,13 +2925,13 @@ function Bt(e, n, t, i = void 0, s = void 0) {
2926
2925
  method: "POST"
2927
2926
  }
2928
2927
  ).then((o) => o.json()).then((o) => {
2929
- i && i(o);
2930
- }).catch((o) => {
2931
2928
  s && s(o);
2929
+ }).catch((o) => {
2930
+ i && i(o);
2932
2931
  });
2933
2932
  }
2934
2933
  }
2935
- async function Et(e, n, t, i = void 0, s = void 0) {
2934
+ async function Et(e, n, t, s = void 0, i = void 0) {
2936
2935
  if (e.tenant) {
2937
2936
  const r = e.tenant.toLowerCase();
2938
2937
  fetch(
@@ -2944,32 +2943,32 @@ async function Et(e, n, t, i = void 0, s = void 0) {
2944
2943
  }
2945
2944
  }
2946
2945
  ).then((o) => o.json()).then((o) => {
2947
- i && i(o);
2948
- }).catch((o) => {
2949
2946
  s && s(o);
2947
+ }).catch((o) => {
2948
+ i && i(o);
2950
2949
  });
2951
2950
  }
2952
2951
  }
2953
- async function Kt(e, n, t, i, s = void 0, r = void 0) {
2952
+ async function Kt(e, n, t, s, i = void 0, r = void 0) {
2954
2953
  if (e.tenant) {
2955
2954
  const o = e.tenant.toLowerCase();
2956
2955
  fetch(
2957
- `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}`,
2958
2957
  {
2959
2958
  method: "POST"
2960
2959
  }
2961
2960
  ).then((a) => a.json()).then((a) => {
2962
- s && s(a);
2961
+ i && i(a);
2963
2962
  }).catch((a) => {
2964
- r && r(a, t, i);
2963
+ r && r(a, t, s);
2965
2964
  });
2966
2965
  }
2967
2966
  }
2968
- async function qt(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) {
2969
2968
  if (e.tenant) {
2970
2969
  const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${t}?t=${n}&c=${encodeURIComponent(
2971
- i
2972
- )}&b=${encodeURIComponent(s)}`;
2970
+ s
2971
+ )}&b=${encodeURIComponent(i)}`;
2973
2972
  fetch(a, {
2974
2973
  method: "POST"
2975
2974
  }).then((c) => c.json()).then((c) => {
@@ -2978,21 +2977,21 @@ async function qt(e, n, t, i, s, r = void 0, o = void 0) {
2978
2977
  o && o({
2979
2978
  error: c,
2980
2979
  tableId: t,
2981
- columns: i,
2982
- body: s
2980
+ columns: s,
2981
+ body: i
2983
2982
  });
2984
2983
  });
2985
2984
  }
2986
2985
  }
2987
- async function Xt(e, n, t, i, s = void 0, r = void 0) {
2986
+ async function Xt(e, n, t, s, i = void 0, r = void 0) {
2988
2987
  if (e.tenant) {
2989
2988
  const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${t}?t=${n}&b=${encodeURIComponent(
2990
- i
2989
+ s
2991
2990
  )}`;
2992
2991
  fetch(o, {
2993
2992
  method: "POST"
2994
2993
  }).then((a) => a.json()).then((a) => {
2995
- s && s(a);
2994
+ i && i(a);
2996
2995
  }).catch((a) => {
2997
2996
  r && r({
2998
2997
  error: a,
@@ -3001,7 +3000,7 @@ async function Xt(e, n, t, i, s = void 0, r = void 0) {
3001
3000
  });
3002
3001
  }
3003
3002
  }
3004
- async function Wt(e, n, t, i = void 0, s = void 0) {
3003
+ async function Wt(e, n, t, s = void 0, i = void 0) {
3005
3004
  if (e.tenant) {
3006
3005
  const r = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/create/?t=${n}&b=${encodeURIComponent(
3007
3006
  t
@@ -3009,31 +3008,31 @@ async function Wt(e, n, t, i = void 0, s = void 0) {
3009
3008
  fetch(r, {
3010
3009
  method: "POST"
3011
3010
  }).then((o) => o.json()).then((o) => {
3012
- i && i(o);
3011
+ s && s(o);
3013
3012
  }).catch((o) => {
3014
- s && s({
3013
+ i && i({
3015
3014
  error: o,
3016
3015
  url: r
3017
3016
  });
3018
3017
  });
3019
3018
  }
3020
3019
  }
3021
- async function Vt(e, n, t, i, s = void 0, r = void 0) {
3020
+ async function Vt(e, n, t, s, i = void 0, r = void 0) {
3022
3021
  if (e.tenant) {
3023
3022
  const o = e.tenant.toLowerCase();
3024
3023
  fetch(
3025
- `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}`,
3026
3025
  {
3027
3026
  method: "POST"
3028
3027
  }
3029
3028
  ).then((a) => a.json()).then((a) => {
3030
- console.log("_Iterop_runProcess : OK"), s && s(a);
3029
+ console.log("_Iterop_runProcess : OK"), i && i(a);
3031
3030
  }).catch((a) => {
3032
3031
  r && r(a);
3033
3032
  });
3034
3033
  }
3035
3034
  }
3036
- async function Yt(e, n, t, i = void 0, s = void 0) {
3035
+ async function Yt(e, n, t, s = void 0, i = void 0) {
3037
3036
  if (console.log("_Iterop_GetOneDependencyTable | Run"), e.tenant) {
3038
3037
  const r = e.tenant.toLowerCase();
3039
3038
  fetch(
@@ -3042,17 +3041,17 @@ async function Yt(e, n, t, i = void 0, s = void 0) {
3042
3041
  method: "POST"
3043
3042
  }
3044
3043
  ).then((o) => o.json()).then((o) => {
3045
- i && i(o);
3046
- }).catch((o) => {
3047
3044
  s && s(o);
3045
+ }).catch((o) => {
3046
+ i && i(o);
3048
3047
  });
3049
3048
  }
3050
3049
  }
3051
- async function zt(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) {
3052
3051
  if (e.tenant) {
3053
3052
  const a = e.tenant.toLowerCase();
3054
3053
  fetch(
3055
- `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}`,
3056
3055
  {
3057
3056
  method: "POST"
3058
3057
  }
@@ -3063,23 +3062,23 @@ async function zt(e, n, t, i, s, r = void 0, o = void 0) {
3063
3062
  });
3064
3063
  }
3065
3064
  }
3066
- async function Ht(e, n, t, i, s = void 0, r = void 0) {
3065
+ async function Ht(e, n, t, s, i = void 0, r = void 0) {
3067
3066
  if (e.tenant) {
3068
3067
  const o = e.tenant.toLowerCase();
3069
3068
  fetch(
3070
- `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}`,
3071
3070
  {
3072
3071
  method: "POST"
3073
3072
  }
3074
3073
  ).then((a) => a.json()).then((a) => {
3075
- s && s(a);
3074
+ i && i(a);
3076
3075
  }).catch((a) => {
3077
3076
  r && r(a);
3078
3077
  });
3079
3078
  }
3080
3079
  }
3081
3080
  //!SECTION
3082
- async function Qt(e, n, t, i = void 0, s = void 0) {
3081
+ async function Qt(e, n, t, s = void 0, i = void 0) {
3083
3082
  if (e.tenant) {
3084
3083
  const r = e.tenant.toLowerCase();
3085
3084
  fetch(
@@ -3088,9 +3087,9 @@ async function Qt(e, n, t, i = void 0, s = void 0) {
3088
3087
  method: "POST"
3089
3088
  }
3090
3089
  ).then((o) => o.json()).then((o) => {
3091
- i && i(o);
3092
- }).catch((o) => {
3093
3090
  s && s(o);
3091
+ }).catch((o) => {
3092
+ i && i(o);
3094
3093
  });
3095
3094
  }
3096
3095
  }
@@ -3100,7 +3099,7 @@ function Zt(e) {
3100
3099
  return console.log(n), n;
3101
3100
  }
3102
3101
  function en(e, n = void 0, t = void 0) {
3103
- return console.log("credentials", e), new Promise((i) => {
3102
+ return console.log("credentials", e), new Promise((s) => {
3104
3103
  if (e.token === "" && b(e), !e.space || e.space === "") {
3105
3104
  const o = Z();
3106
3105
  console.log("platformeInfo", o);
@@ -3116,7 +3115,7 @@ function en(e, n = void 0, t = void 0) {
3116
3115
  },
3117
3116
  !0
3118
3117
  );
3119
- 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}`;
3120
3119
  m(r, {
3121
3120
  onComplete(o) {
3122
3121
  if (Array.isArray(JSON.parse(o))) {
@@ -3132,7 +3131,7 @@ function en(e, n = void 0, t = void 0) {
3132
3131
  data: JSON.stringify({
3133
3132
  with_indexing_date: !0,
3134
3133
  with_nls: !1,
3135
- label: `3DSearch-${s}`,
3134
+ label: `3DSearch-${i}`,
3136
3135
  locale: "en",
3137
3136
  select_predicate: [
3138
3137
  "ds6w:label",