sass-cms-template-common 0.0.9 → 0.0.11
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/index.d.ts +401 -185
- package/dist/index.js +2096 -1185
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts +140 -0
- package/dist/server.js +2 -2
- package/dist/{services-Zx1IiHhX.js → services-BLy9bEvH.js} +474 -170
- package/dist/services-BLy9bEvH.js.map +1 -0
- package/package.json +1 -1
- package/dist/services-Zx1IiHhX.js.map +0 -1
|
@@ -1,52 +1,182 @@
|
|
|
1
1
|
//#region src/lib/theme/variables.ts
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
2
|
+
function e(e) {
|
|
3
|
+
return e.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
4
|
+
}
|
|
5
|
+
function t(t, n) {
|
|
6
|
+
let r = {}, i = {}, a = {};
|
|
7
|
+
return Object.keys(n).forEach((o) => {
|
|
8
|
+
let s = `--cms-${t ? `${t}-` : ""}${e(String(o))}`, c = n[o];
|
|
9
|
+
r[o] = `var(${s}, ${c.light})`, i[s] = c.light, a[s] = c.dark;
|
|
10
|
+
}), {
|
|
11
|
+
values: r,
|
|
12
|
+
light: i,
|
|
13
|
+
dark: a
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function n(t, n) {
|
|
17
|
+
let r = {}, i = {}, a = {};
|
|
18
|
+
return Object.keys(n).forEach((o) => {
|
|
19
|
+
let s = `--cms-${t}-${e(String(o))}`, { bg: c, on: l } = n[o];
|
|
20
|
+
r[o] = {
|
|
21
|
+
bg: `var(${s}-bg, ${c.light})`,
|
|
22
|
+
on: `var(${s}-on, ${l.light})`
|
|
23
|
+
}, i[`${s}-bg`] = c.light, i[`${s}-on`] = l.light, a[`${s}-bg`] = c.dark, a[`${s}-on`] = l.dark;
|
|
24
|
+
}), {
|
|
25
|
+
values: r,
|
|
26
|
+
light: i,
|
|
27
|
+
dark: a
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
var r = t("", {
|
|
31
|
+
primary: {
|
|
32
|
+
light: "#0067C4",
|
|
33
|
+
dark: "#0067C4"
|
|
34
|
+
},
|
|
35
|
+
primaryHover: {
|
|
36
|
+
light: "#005CAF",
|
|
37
|
+
dark: "#2F7BD1"
|
|
38
|
+
},
|
|
39
|
+
primaryDisabled: {
|
|
40
|
+
light: "#1D1B201A",
|
|
41
|
+
dark: "#FFFFFF1A"
|
|
42
|
+
},
|
|
43
|
+
secondary: {
|
|
44
|
+
light: "#D8E2FF",
|
|
45
|
+
dark: "#2C4678"
|
|
46
|
+
},
|
|
47
|
+
secondaryHover: {
|
|
48
|
+
light: "#E1E2EA",
|
|
49
|
+
dark: "#2E3140"
|
|
50
|
+
},
|
|
51
|
+
onSecondaryContainer: {
|
|
52
|
+
light: "#2C4678",
|
|
53
|
+
dark: "#D8E2FF"
|
|
54
|
+
},
|
|
55
|
+
secondaryStrong: {
|
|
56
|
+
light: "#455E91",
|
|
57
|
+
dark: "#8FA8D8"
|
|
58
|
+
},
|
|
59
|
+
controlBorder: {
|
|
60
|
+
light: "#727784",
|
|
61
|
+
dark: "#8E9199"
|
|
62
|
+
},
|
|
63
|
+
controlText: {
|
|
64
|
+
light: "#000000",
|
|
65
|
+
dark: "#E1E2E9"
|
|
66
|
+
},
|
|
67
|
+
controlHoverBg: {
|
|
68
|
+
light: "#F9F9FF",
|
|
69
|
+
dark: "#1D2024"
|
|
70
|
+
},
|
|
71
|
+
whiteBtnBorder: {
|
|
72
|
+
light: "#DDDDDD",
|
|
73
|
+
dark: "#43474E"
|
|
74
|
+
},
|
|
75
|
+
whiteBtnText: {
|
|
76
|
+
light: "#515253",
|
|
77
|
+
dark: "#C4C6CF"
|
|
78
|
+
},
|
|
79
|
+
iconButtonHoverBg: {
|
|
80
|
+
light: "#E6E6E6",
|
|
81
|
+
dark: "#2A2D33"
|
|
82
|
+
},
|
|
83
|
+
iconButtonIcon: {
|
|
84
|
+
light: "#929193",
|
|
85
|
+
dark: "#A9AEB8"
|
|
86
|
+
},
|
|
87
|
+
menuSurface: {
|
|
88
|
+
light: "#ECEDF6",
|
|
89
|
+
dark: "#2A2C31"
|
|
90
|
+
},
|
|
91
|
+
menuItemActive: {
|
|
92
|
+
light: "#E1E2EB",
|
|
93
|
+
dark: "#34363B"
|
|
94
|
+
},
|
|
95
|
+
surfaceHover: {
|
|
96
|
+
light: "#E3E2E6",
|
|
97
|
+
dark: "#34363B"
|
|
98
|
+
},
|
|
99
|
+
alphabetIdle: {
|
|
100
|
+
light: "#B4BEDA",
|
|
101
|
+
dark: "#5A6478"
|
|
102
|
+
},
|
|
103
|
+
alphabetIdleSoft: {
|
|
104
|
+
light: "rgba(180, 190, 218, 0.12)",
|
|
105
|
+
dark: "rgba(140, 150, 180, 0.14)"
|
|
106
|
+
},
|
|
107
|
+
alphabetLetter: {
|
|
108
|
+
light: "#191C20",
|
|
109
|
+
dark: "#E1E2E9"
|
|
110
|
+
},
|
|
111
|
+
alphabetLetterDisabled: {
|
|
112
|
+
light: "#C4C6CF",
|
|
113
|
+
dark: "#43474E"
|
|
114
|
+
},
|
|
115
|
+
textStrong: {
|
|
116
|
+
light: "#191C22",
|
|
117
|
+
dark: "#E4E2E6"
|
|
118
|
+
},
|
|
119
|
+
textNav: {
|
|
120
|
+
light: "#414752",
|
|
121
|
+
dark: "#C4C6CF"
|
|
122
|
+
},
|
|
123
|
+
textMuted: {
|
|
124
|
+
light: "#94A2AA",
|
|
125
|
+
dark: "#8A929C"
|
|
126
|
+
},
|
|
127
|
+
link: {
|
|
128
|
+
light: "#004F99",
|
|
129
|
+
dark: "#9ECAFF"
|
|
130
|
+
},
|
|
131
|
+
danger: {
|
|
132
|
+
light: "#BA1A1A",
|
|
133
|
+
dark: "#DE3730"
|
|
134
|
+
},
|
|
135
|
+
dangerHover: {
|
|
136
|
+
light: "#93000A",
|
|
137
|
+
dark: "#FF6B5E"
|
|
138
|
+
},
|
|
139
|
+
success: {
|
|
140
|
+
light: "#1E8E3E",
|
|
141
|
+
dark: "#4CD97B"
|
|
142
|
+
},
|
|
143
|
+
border: {
|
|
144
|
+
light: "#C1C6D4",
|
|
145
|
+
dark: "#3A3E46"
|
|
146
|
+
},
|
|
147
|
+
avatarBg: {
|
|
148
|
+
light: "#F2F6FC",
|
|
149
|
+
dark: "#282A2F"
|
|
150
|
+
},
|
|
151
|
+
avatarBorder: {
|
|
152
|
+
light: "#DEE2E6",
|
|
153
|
+
dark: "#43474E"
|
|
154
|
+
},
|
|
155
|
+
surface: {
|
|
156
|
+
light: "#FFFFFF",
|
|
157
|
+
dark: "#282A2F"
|
|
158
|
+
}
|
|
159
|
+
}), i = {
|
|
160
|
+
...r.values,
|
|
31
161
|
white: "#FFFFFF"
|
|
32
|
-
},
|
|
162
|
+
}, a = {
|
|
33
163
|
sm: "8px",
|
|
34
164
|
md: "10px",
|
|
35
165
|
lg: "14px",
|
|
36
166
|
xl: "28px",
|
|
37
167
|
dialog: "24px",
|
|
38
168
|
pill: "999px"
|
|
39
|
-
},
|
|
169
|
+
}, o = {
|
|
40
170
|
button: "0 1px 2px rgba(0, 0, 0, 0.10)",
|
|
41
171
|
menu: "0px 1px 3px 0px rgba(0, 0, 0, 0.30), 0px 4px 8px 3px rgba(0, 0, 0, 0.15)",
|
|
42
172
|
menuSoft: "0 10px 30px rgba(0, 0, 0, 0.18)",
|
|
43
173
|
menuDropdown: "0px 4px 4px 0px rgba(0, 0, 0, 0.30), 0px 8px 12px 6px rgba(0, 0, 0, 0.15)",
|
|
44
174
|
flyout: "0px 8px 16px rgba(0, 0, 0, 0.18)"
|
|
45
|
-
},
|
|
175
|
+
}, s = {
|
|
46
176
|
buttonHeight: 40,
|
|
47
177
|
buttonHeightSm: 34,
|
|
48
178
|
searchHeight: 48
|
|
49
|
-
},
|
|
179
|
+
}, c = {
|
|
50
180
|
surface: "#2E2E2E",
|
|
51
181
|
onSurface: "#FFFFFF",
|
|
52
182
|
onSurfaceMuted: "#C7C7C7",
|
|
@@ -59,7 +189,7 @@ var e = {
|
|
|
59
189
|
onSurfaceSoft: "#F0F0F7",
|
|
60
190
|
versionChipBg: "#F0F0F71A",
|
|
61
191
|
separator: "#F0F0F7B3"
|
|
62
|
-
},
|
|
192
|
+
}, l = {
|
|
63
193
|
success: {
|
|
64
194
|
bg: "#92F7B7",
|
|
65
195
|
on: "#002112"
|
|
@@ -76,71 +206,205 @@ var e = {
|
|
|
76
206
|
bg: "#D8E2FF",
|
|
77
207
|
on: "#001551"
|
|
78
208
|
}
|
|
79
|
-
},
|
|
209
|
+
}, u = {
|
|
80
210
|
active: {
|
|
81
|
-
bg:
|
|
82
|
-
|
|
211
|
+
bg: {
|
|
212
|
+
light: "#D6F4DE",
|
|
213
|
+
dark: "#0F3D22"
|
|
214
|
+
},
|
|
215
|
+
on: {
|
|
216
|
+
light: "#1D6B2E",
|
|
217
|
+
dark: "#7FE0A0"
|
|
218
|
+
}
|
|
83
219
|
},
|
|
84
220
|
generating: {
|
|
85
|
-
bg:
|
|
86
|
-
|
|
221
|
+
bg: {
|
|
222
|
+
light: "#DCE3FF",
|
|
223
|
+
dark: "#1E2A52"
|
|
224
|
+
},
|
|
225
|
+
on: {
|
|
226
|
+
light: "#001551",
|
|
227
|
+
dark: "#B7C9FF"
|
|
228
|
+
}
|
|
87
229
|
},
|
|
88
230
|
assigned: {
|
|
89
|
-
bg:
|
|
90
|
-
|
|
231
|
+
bg: {
|
|
232
|
+
light: "#EADDFF",
|
|
233
|
+
dark: "#2C2249"
|
|
234
|
+
},
|
|
235
|
+
on: {
|
|
236
|
+
light: "#4F378A",
|
|
237
|
+
dark: "#D9C6FF"
|
|
238
|
+
}
|
|
91
239
|
},
|
|
92
240
|
discarded: {
|
|
93
|
-
bg:
|
|
94
|
-
|
|
241
|
+
bg: {
|
|
242
|
+
light: "#ECEDF6",
|
|
243
|
+
dark: "#2A2C31"
|
|
244
|
+
},
|
|
245
|
+
on: {
|
|
246
|
+
light: "#43474E",
|
|
247
|
+
dark: "#C4C6CF"
|
|
248
|
+
}
|
|
95
249
|
}
|
|
96
|
-
},
|
|
250
|
+
}, d = n("state", u).values, f = {
|
|
97
251
|
active: {
|
|
98
|
-
bg:
|
|
99
|
-
|
|
252
|
+
bg: {
|
|
253
|
+
light: "#92F7B7",
|
|
254
|
+
dark: "#0F3D22"
|
|
255
|
+
},
|
|
256
|
+
on: {
|
|
257
|
+
light: "#002112",
|
|
258
|
+
dark: "#92F7B7"
|
|
259
|
+
}
|
|
100
260
|
},
|
|
101
261
|
inactive: {
|
|
102
|
-
bg:
|
|
103
|
-
|
|
262
|
+
bg: {
|
|
263
|
+
light: "#E1E2E9",
|
|
264
|
+
dark: "#2E3035"
|
|
265
|
+
},
|
|
266
|
+
on: {
|
|
267
|
+
light: "#002112",
|
|
268
|
+
dark: "#C4C6CF"
|
|
269
|
+
}
|
|
104
270
|
}
|
|
105
|
-
},
|
|
106
|
-
assigned: {
|
|
107
|
-
bg: e.secondary,
|
|
108
|
-
on: e.onSecondaryContainer
|
|
109
|
-
},
|
|
271
|
+
}, p = n("user-status", f).values, m = n("notification", {
|
|
110
272
|
pending: {
|
|
111
|
-
bg:
|
|
112
|
-
|
|
273
|
+
bg: {
|
|
274
|
+
light: "#FFE2D5",
|
|
275
|
+
dark: "#3A1D12"
|
|
276
|
+
},
|
|
277
|
+
on: {
|
|
278
|
+
light: "#B3300A",
|
|
279
|
+
dark: "#FFB59B"
|
|
280
|
+
}
|
|
113
281
|
},
|
|
114
282
|
system: {
|
|
115
|
-
bg:
|
|
116
|
-
|
|
283
|
+
bg: {
|
|
284
|
+
light: "#DCEFE0",
|
|
285
|
+
dark: "#123021"
|
|
286
|
+
},
|
|
287
|
+
on: {
|
|
288
|
+
light: "#11663B",
|
|
289
|
+
dark: "#8FD9A8"
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
editorialOpportunity: {
|
|
293
|
+
bg: {
|
|
294
|
+
light: "#3162E0",
|
|
295
|
+
dark: "#3B6FF0"
|
|
296
|
+
},
|
|
297
|
+
on: {
|
|
298
|
+
light: "#FFFFFF",
|
|
299
|
+
dark: "#FFFFFF"
|
|
300
|
+
}
|
|
117
301
|
}
|
|
118
|
-
},
|
|
302
|
+
}), h = {
|
|
303
|
+
assigned: {
|
|
304
|
+
bg: i.secondary,
|
|
305
|
+
on: i.onSecondaryContainer
|
|
306
|
+
},
|
|
307
|
+
...m.values
|
|
308
|
+
}, g = t("editorial-opportunity", {
|
|
309
|
+
accent: {
|
|
310
|
+
light: "#3162E0",
|
|
311
|
+
dark: "#3B6FF0"
|
|
312
|
+
},
|
|
313
|
+
text: {
|
|
314
|
+
light: "#2B65BE",
|
|
315
|
+
dark: "#A9C4FF"
|
|
316
|
+
},
|
|
317
|
+
topicBg: {
|
|
318
|
+
light: "#ECEDF5",
|
|
319
|
+
dark: "#262A33"
|
|
320
|
+
},
|
|
321
|
+
topicBorder: {
|
|
322
|
+
light: "#C4C6CE",
|
|
323
|
+
dark: "#43474E"
|
|
324
|
+
},
|
|
325
|
+
trending: {
|
|
326
|
+
light: "#83521A",
|
|
327
|
+
dark: "#E5B87A"
|
|
328
|
+
}
|
|
329
|
+
}), _ = g.values, v = {
|
|
119
330
|
high: {
|
|
120
|
-
bg:
|
|
121
|
-
|
|
331
|
+
bg: {
|
|
332
|
+
light: "#D7F5DD",
|
|
333
|
+
dark: "#0F3D22"
|
|
334
|
+
},
|
|
335
|
+
on: {
|
|
336
|
+
light: "#0D5B2B",
|
|
337
|
+
dark: "#7FE0A0"
|
|
338
|
+
}
|
|
122
339
|
},
|
|
123
340
|
medium: {
|
|
124
|
-
bg:
|
|
125
|
-
|
|
341
|
+
bg: {
|
|
342
|
+
light: "#FFF0C8",
|
|
343
|
+
dark: "#3A2E05"
|
|
344
|
+
},
|
|
345
|
+
on: {
|
|
346
|
+
light: "#6B4D00",
|
|
347
|
+
dark: "#FFD98A"
|
|
348
|
+
}
|
|
126
349
|
},
|
|
127
350
|
low: {
|
|
128
|
-
bg:
|
|
129
|
-
|
|
351
|
+
bg: {
|
|
352
|
+
light: "#E7E8EE",
|
|
353
|
+
dark: "#2A2C31"
|
|
354
|
+
},
|
|
355
|
+
on: {
|
|
356
|
+
light: "#43474E",
|
|
357
|
+
dark: "#C4C6CF"
|
|
358
|
+
}
|
|
130
359
|
}
|
|
131
|
-
},
|
|
360
|
+
}, y = n("confidence", v).values, b = {
|
|
132
361
|
like: "#1E8E3E",
|
|
133
362
|
dislike: "#D93025"
|
|
134
|
-
},
|
|
135
|
-
rss:
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
363
|
+
}, x = t("source", {
|
|
364
|
+
rss: {
|
|
365
|
+
light: "#FB923C",
|
|
366
|
+
dark: "#FB923C"
|
|
367
|
+
},
|
|
368
|
+
gtrends: {
|
|
369
|
+
light: "#4285F4",
|
|
370
|
+
dark: "#6BA0F8"
|
|
371
|
+
},
|
|
372
|
+
sconsole: {
|
|
373
|
+
light: "#0F9D58",
|
|
374
|
+
dark: "#34C77B"
|
|
375
|
+
},
|
|
376
|
+
x: {
|
|
377
|
+
light: "#111111",
|
|
378
|
+
dark: "#E1E2E9"
|
|
379
|
+
}
|
|
380
|
+
}), S = x.values;
|
|
381
|
+
function C() {
|
|
382
|
+
return {
|
|
383
|
+
light: {
|
|
384
|
+
...r.light,
|
|
385
|
+
...n("state", u).light,
|
|
386
|
+
...n("user-status", f).light,
|
|
387
|
+
...m.light,
|
|
388
|
+
...g.light,
|
|
389
|
+
...n("confidence", v).light,
|
|
390
|
+
...x.light
|
|
391
|
+
},
|
|
392
|
+
dark: {
|
|
393
|
+
...r.dark,
|
|
394
|
+
...n("state", u).dark,
|
|
395
|
+
...n("user-status", f).dark,
|
|
396
|
+
...m.dark,
|
|
397
|
+
...g.dark,
|
|
398
|
+
...n("confidence", v).dark,
|
|
399
|
+
...x.dark
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
var w = {
|
|
140
404
|
roboto: "\"Roboto\",\"Helvetica\",\"Arial\",sans-serif",
|
|
141
405
|
productSans: "\"Product Sans\",\"Roboto\",\"Helvetica\",\"Arial\",sans-serif",
|
|
142
406
|
mono: "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace"
|
|
143
|
-
},
|
|
407
|
+
}, T = {
|
|
144
408
|
"000.000": "The user is already logged in",
|
|
145
409
|
"000.001": "The user does not exist",
|
|
146
410
|
"000.002": "The user will be disabled after 3 invalid login attempts.",
|
|
@@ -217,13 +481,21 @@ var e = {
|
|
|
217
481
|
"010.012": "The resource is locked by another user",
|
|
218
482
|
"015.001": "The video already exists",
|
|
219
483
|
"015.011": "An error occurred in the service",
|
|
484
|
+
"030.000": "The Copilot service is not configured",
|
|
485
|
+
"030.001": "The Copilot service returned an error",
|
|
486
|
+
"030.002": "No response from the Copilot service",
|
|
487
|
+
"030.003": "Action not supported by Copilot",
|
|
488
|
+
"030.004": "The opportunity identifier is missing",
|
|
489
|
+
"030.005": "The writer to assign is missing",
|
|
490
|
+
"030.006": "The Copilot service does not exist at the configured address",
|
|
491
|
+
"030.007": "The Copilot site of the publication is not valid",
|
|
220
492
|
"999.000": "The request does not have the expected format",
|
|
221
493
|
"999.001a": "The request has an error that was not captured. Contact your Administrator and detail the steps you followed",
|
|
222
494
|
"999.002a": "An error occurred in the service",
|
|
223
495
|
"999.003a": "CMS internal error. Please contact your Administrator",
|
|
224
496
|
"999.006a": "Login failed",
|
|
225
497
|
"999.009a": "Maximum number of pins exceeded"
|
|
226
|
-
},
|
|
498
|
+
}, E = {
|
|
227
499
|
"000.000": "El usuario ya se encuentra logueado",
|
|
228
500
|
"000.001": "El usuario no existe",
|
|
229
501
|
"000.002": "El usuario será deshabilitado luego de 3 intentos de inicio de sesión no válidos.",
|
|
@@ -300,13 +572,21 @@ var e = {
|
|
|
300
572
|
"010.012": "El recurso está bloqueado por otro usuario",
|
|
301
573
|
"015.001": "El vídeo ya existe",
|
|
302
574
|
"015.011": "Se produjo un error en el servicio",
|
|
575
|
+
"030.000": "El servicio Copilot no está configurado",
|
|
576
|
+
"030.001": "El servicio Copilot devolvió un error",
|
|
577
|
+
"030.002": "No hay respuesta del servicio Copilot",
|
|
578
|
+
"030.003": "Acción no soportada por Copilot",
|
|
579
|
+
"030.004": "Falta el identificador de la oportunidad",
|
|
580
|
+
"030.005": "Falta el redactor a asignar",
|
|
581
|
+
"030.006": "El servicio Copilot no existe en la dirección configurada",
|
|
582
|
+
"030.007": "El sitio Copilot de la publicación no es válido",
|
|
303
583
|
"999.000": "El requerimiento no cuenta con el formato esperado",
|
|
304
584
|
"999.001a": "El requerimiento tiene un error que no se capturó. Comuniquese con su Administrador y detalle los pasos que siguió",
|
|
305
585
|
"999.002a": "Se produjo un error en el servicio",
|
|
306
586
|
"999.003a": "Error interno de CMS. Comuniquese con su administrador",
|
|
307
587
|
"999.006a": "Falló el login",
|
|
308
588
|
"999.009a": "Supero el máximo de pines"
|
|
309
|
-
},
|
|
589
|
+
}, D = {
|
|
310
590
|
"000.000": "O usuário já está logado",
|
|
311
591
|
"000.001": "O usuário não existe",
|
|
312
592
|
"000.002": "O usuário será desabilitado após 3 tentativas de login inválidas.",
|
|
@@ -383,44 +663,26 @@ var e = {
|
|
|
383
663
|
"010.012": "O recurso está bloqueado por outro usuário",
|
|
384
664
|
"015.001": "O vídeo já existe",
|
|
385
665
|
"015.011": "Ocorreu um erro no serviço",
|
|
666
|
+
"030.000": "O serviço Copilot não está configurado",
|
|
667
|
+
"030.001": "O serviço Copilot retornou um erro",
|
|
668
|
+
"030.002": "Sem resposta do serviço Copilot",
|
|
669
|
+
"030.003": "Ação não suportada pelo Copilot",
|
|
670
|
+
"030.004": "Falta o identificador da oportunidade",
|
|
671
|
+
"030.005": "Falta o redator a atribuir",
|
|
672
|
+
"030.006": "O serviço Copilot não existe no endereço configurado",
|
|
673
|
+
"030.007": "O site Copilot da publicação não é válido",
|
|
386
674
|
"999.000": "A solicitação não tem o formato esperado",
|
|
387
675
|
"999.001a": "O pedido tem um erro que não foi capturado. Entre em contato com seu administrador e detalhe as etapas que você seguiu",
|
|
388
676
|
"999.002a": "Ocorreu um erro no serviço",
|
|
389
677
|
"999.003a": "Erro interno do CMS. Entre em contato com seu administrador",
|
|
390
678
|
"999.006a": "Falha no login",
|
|
391
679
|
"999.009a": "Número máximo de pinos excedido"
|
|
392
|
-
},
|
|
393
|
-
es:
|
|
394
|
-
en:
|
|
395
|
-
pt:
|
|
396
|
-
},
|
|
397
|
-
|
|
398
|
-
"000.001",
|
|
399
|
-
"000.015",
|
|
400
|
-
"003.008",
|
|
401
|
-
"008.004",
|
|
402
|
-
"000.018",
|
|
403
|
-
"999.000",
|
|
404
|
-
"009.002",
|
|
405
|
-
"004.004",
|
|
406
|
-
"008.018",
|
|
407
|
-
"000.007",
|
|
408
|
-
"000.008",
|
|
409
|
-
"000.009",
|
|
410
|
-
"000.010",
|
|
411
|
-
"000.011",
|
|
412
|
-
"000.012",
|
|
413
|
-
"000.013",
|
|
414
|
-
"000.027",
|
|
415
|
-
"002.001",
|
|
416
|
-
"002.003",
|
|
417
|
-
"002.004",
|
|
418
|
-
"003.004",
|
|
419
|
-
"004.003",
|
|
420
|
-
"006.002",
|
|
421
|
-
"999.009a"
|
|
422
|
-
]);
|
|
423
|
-
function _(e) {
|
|
680
|
+
}, O = {
|
|
681
|
+
es: E,
|
|
682
|
+
en: T,
|
|
683
|
+
pt: D
|
|
684
|
+
}, k = new Set(/* @__PURE__ */ "000.005,000.001,000.015,003.008,008.004,000.018,999.000,009.002,004.004,008.018,030.003,030.004,030.005,000.007,000.008,000.009,000.010,000.011,000.012,000.013,000.027,002.001,002.003,002.004,003.004,004.003,006.002,999.009a".split(","));
|
|
685
|
+
function A(e) {
|
|
424
686
|
if (e == null) return;
|
|
425
687
|
if (Array.isArray(e)) {
|
|
426
688
|
let t = e.find((e) => e != null && e !== "");
|
|
@@ -429,68 +691,81 @@ function _(e) {
|
|
|
429
691
|
let t = String(e);
|
|
430
692
|
return t === "" ? void 0 : t;
|
|
431
693
|
}
|
|
432
|
-
function
|
|
433
|
-
let n =
|
|
694
|
+
function ee(e, t = "es") {
|
|
695
|
+
let n = A(e);
|
|
434
696
|
if (!n) return;
|
|
435
|
-
let r =
|
|
436
|
-
return r[n] ?? r[`${n}a`] ??
|
|
697
|
+
let r = O[t] ?? T;
|
|
698
|
+
return r[n] ?? r[`${n}a`] ?? T[n] ?? T[`${n}a`];
|
|
437
699
|
}
|
|
438
|
-
function
|
|
439
|
-
let t =
|
|
440
|
-
return t &&
|
|
700
|
+
function te(e) {
|
|
701
|
+
let t = A(e);
|
|
702
|
+
return t && k.has(t) ? "warning" : "error";
|
|
441
703
|
}
|
|
442
704
|
//#endregion
|
|
443
705
|
//#region src/lib/utils/site-selector.ts
|
|
444
|
-
var
|
|
445
|
-
function
|
|
706
|
+
var j = i.menuSurface, M = i.secondary, N = i.surface, P = "bluestack-es";
|
|
707
|
+
function F(e) {
|
|
446
708
|
return e.flatMap((e) => e.publications);
|
|
447
709
|
}
|
|
448
|
-
function
|
|
449
|
-
return
|
|
710
|
+
function I(e, t) {
|
|
711
|
+
return F(e).find((e) => String(e.id) === t);
|
|
450
712
|
}
|
|
451
|
-
function
|
|
452
|
-
return
|
|
713
|
+
function L(e, t) {
|
|
714
|
+
return F(e).find((e) => String(e.id) === t)?.description ?? "Seleccionar publicación";
|
|
453
715
|
}
|
|
454
|
-
function
|
|
455
|
-
let t =
|
|
716
|
+
function R(e) {
|
|
717
|
+
let t = F(e)[0];
|
|
456
718
|
return t ? String(t.id) : "1";
|
|
457
719
|
}
|
|
458
|
-
function
|
|
720
|
+
function z(e) {
|
|
459
721
|
let t = Number(e);
|
|
460
722
|
return Number.isFinite(t) && t > 0 ? t : 1;
|
|
461
723
|
}
|
|
462
724
|
//#endregion
|
|
463
725
|
//#region src/lib/utils/site-time.ts
|
|
464
|
-
function
|
|
726
|
+
function B(e) {
|
|
465
727
|
if (!e) return 0;
|
|
466
728
|
let t = String(e).trim().replace(/^(GMT|UTC)/i, "").trim().match(/^([+-]?)(\d{1,2})(?::(\d{2}))?$/);
|
|
467
729
|
if (!t) return 0;
|
|
468
730
|
let n = t[1] === "-" ? -1 : 1, r = Number(t[2]), i = t[3] ? Number(t[3]) : 0;
|
|
469
731
|
return n * (r * 60 + i);
|
|
470
732
|
}
|
|
471
|
-
function
|
|
472
|
-
return e +
|
|
733
|
+
function V(e, t) {
|
|
734
|
+
return e + B(t) * 6e4;
|
|
473
735
|
}
|
|
474
|
-
var
|
|
736
|
+
var H = {
|
|
475
737
|
day: "2-digit",
|
|
476
738
|
month: "2-digit",
|
|
477
739
|
year: "numeric",
|
|
478
740
|
hour: "2-digit",
|
|
479
741
|
minute: "2-digit"
|
|
480
742
|
};
|
|
481
|
-
function
|
|
482
|
-
let i =
|
|
743
|
+
function U(e, t, n, r = H) {
|
|
744
|
+
let i = V(e, t);
|
|
483
745
|
return new Intl.DateTimeFormat(n, {
|
|
484
746
|
...r,
|
|
485
747
|
timeZone: "UTC"
|
|
486
748
|
}).format(i);
|
|
487
749
|
}
|
|
488
|
-
function
|
|
489
|
-
return
|
|
750
|
+
function W(e, t, n = H) {
|
|
751
|
+
return U(Date.now(), e, t, n);
|
|
752
|
+
}
|
|
753
|
+
//#endregion
|
|
754
|
+
//#region src/lib/utils/permissions.ts
|
|
755
|
+
function G(e, t) {
|
|
756
|
+
if (!e) return !1;
|
|
757
|
+
if (e.isAdmin) return !0;
|
|
758
|
+
let n = t.toUpperCase();
|
|
759
|
+
return n === "ALL_VIEWS" ? !0 : (e.operations ?? []).some((e) => typeof e?.name == "string" && e.name.toUpperCase() === n);
|
|
760
|
+
}
|
|
761
|
+
function K(e, t) {
|
|
762
|
+
if (!t || t.isAdmin) return e;
|
|
763
|
+
let n = new Set((t.operations ?? []).map((e) => typeof e?.name == "string" ? e.name.toUpperCase() : "").filter(Boolean));
|
|
764
|
+
return e.filter((e) => n.has(`${e.module.toUpperCase()}_VIEW`));
|
|
490
765
|
}
|
|
491
766
|
//#endregion
|
|
492
767
|
//#region src/lib/services/auth.ts
|
|
493
|
-
var
|
|
768
|
+
var q = class {
|
|
494
769
|
props;
|
|
495
770
|
authentication;
|
|
496
771
|
constructor(e) {
|
|
@@ -541,7 +816,7 @@ var P = class {
|
|
|
541
816
|
return console.error("[/auth/create]", e), Promise.reject(e);
|
|
542
817
|
}
|
|
543
818
|
};
|
|
544
|
-
},
|
|
819
|
+
}, J = class {
|
|
545
820
|
props;
|
|
546
821
|
authentication;
|
|
547
822
|
constructor(e) {
|
|
@@ -561,7 +836,7 @@ var P = class {
|
|
|
561
836
|
return console.error("[/dashboard/notification]", e), Promise.reject(e);
|
|
562
837
|
}
|
|
563
838
|
};
|
|
564
|
-
},
|
|
839
|
+
}, Y = class {
|
|
565
840
|
props;
|
|
566
841
|
authentication;
|
|
567
842
|
constructor(e) {
|
|
@@ -699,7 +974,7 @@ var P = class {
|
|
|
699
974
|
return console.error("[/profile/twoFactor/showOtc]", e), Promise.reject(e);
|
|
700
975
|
}
|
|
701
976
|
};
|
|
702
|
-
},
|
|
977
|
+
}, X = class {
|
|
703
978
|
props;
|
|
704
979
|
authentication;
|
|
705
980
|
constructor(e) {
|
|
@@ -719,7 +994,7 @@ var P = class {
|
|
|
719
994
|
return console.error("[/publications/default]", e), Promise.reject(e);
|
|
720
995
|
}
|
|
721
996
|
};
|
|
722
|
-
},
|
|
997
|
+
}, Z = class {
|
|
723
998
|
props;
|
|
724
999
|
authentication;
|
|
725
1000
|
constructor(e) {
|
|
@@ -732,7 +1007,7 @@ var P = class {
|
|
|
732
1007
|
return console.error("[/sites/get]", e), Promise.reject(e);
|
|
733
1008
|
}
|
|
734
1009
|
};
|
|
735
|
-
},
|
|
1010
|
+
}, Q = class {
|
|
736
1011
|
props;
|
|
737
1012
|
constructor(e) {
|
|
738
1013
|
this.props = e;
|
|
@@ -834,7 +1109,7 @@ var P = class {
|
|
|
834
1109
|
}
|
|
835
1110
|
}
|
|
836
1111
|
};
|
|
837
|
-
},
|
|
1112
|
+
}, ne = (e) => btoa(e), re = class {
|
|
838
1113
|
props;
|
|
839
1114
|
authentication;
|
|
840
1115
|
constructor(e) {
|
|
@@ -843,7 +1118,7 @@ var P = class {
|
|
|
843
1118
|
authParams = () => {
|
|
844
1119
|
let { token: e, browserId: t, publication: n, siteName: r, project: i } = this.authentication;
|
|
845
1120
|
return {
|
|
846
|
-
token:
|
|
1121
|
+
token: ne(e),
|
|
847
1122
|
browserId: t,
|
|
848
1123
|
publication: n,
|
|
849
1124
|
siteName: r,
|
|
@@ -872,7 +1147,7 @@ var P = class {
|
|
|
872
1147
|
...n ?? {}
|
|
873
1148
|
}
|
|
874
1149
|
});
|
|
875
|
-
},
|
|
1150
|
+
}, ie = class {
|
|
876
1151
|
props;
|
|
877
1152
|
authentication;
|
|
878
1153
|
constructor(e) {
|
|
@@ -902,7 +1177,7 @@ var P = class {
|
|
|
902
1177
|
...t
|
|
903
1178
|
});
|
|
904
1179
|
};
|
|
905
|
-
},
|
|
1180
|
+
}, ae = class {
|
|
906
1181
|
props;
|
|
907
1182
|
authentication;
|
|
908
1183
|
constructor(e) {
|
|
@@ -925,7 +1200,7 @@ var P = class {
|
|
|
925
1200
|
return console.error("[/audios/adminConfiguration]", e), Promise.reject(e);
|
|
926
1201
|
}
|
|
927
1202
|
};
|
|
928
|
-
},
|
|
1203
|
+
}, oe = class {
|
|
929
1204
|
props;
|
|
930
1205
|
authentication;
|
|
931
1206
|
constructor(e) {
|
|
@@ -961,7 +1236,7 @@ var P = class {
|
|
|
961
1236
|
return console.error("[/categories/test]", e), Promise.reject(e);
|
|
962
1237
|
}
|
|
963
1238
|
};
|
|
964
|
-
},
|
|
1239
|
+
}, se = class {
|
|
965
1240
|
props;
|
|
966
1241
|
authentication;
|
|
967
1242
|
constructor(e) {
|
|
@@ -1004,7 +1279,35 @@ var P = class {
|
|
|
1004
1279
|
return console.error("[/ckeditor/audioCode]", e), Promise.reject(e);
|
|
1005
1280
|
}
|
|
1006
1281
|
};
|
|
1007
|
-
},
|
|
1282
|
+
}, ce = class {
|
|
1283
|
+
props;
|
|
1284
|
+
authentication;
|
|
1285
|
+
constructor(e) {
|
|
1286
|
+
this.props = e, this.authentication = e.authentication;
|
|
1287
|
+
}
|
|
1288
|
+
getOpportunities = async (e = {}) => {
|
|
1289
|
+
try {
|
|
1290
|
+
return (await this.props.axiosApi.post("/copilot/opportunities", {
|
|
1291
|
+
authentication: this.authentication,
|
|
1292
|
+
filters: e
|
|
1293
|
+
})).data;
|
|
1294
|
+
} catch (e) {
|
|
1295
|
+
return console.error("[/copilot/opportunities]", e), Promise.reject(e);
|
|
1296
|
+
}
|
|
1297
|
+
};
|
|
1298
|
+
executeAction = async (e) => {
|
|
1299
|
+
try {
|
|
1300
|
+
return (await this.props.axiosApi.post("/copilot/actions", {
|
|
1301
|
+
authentication: this.authentication,
|
|
1302
|
+
action: e.action,
|
|
1303
|
+
opportunity_id: e.opportunityId,
|
|
1304
|
+
...e.userExternalId !== void 0 && { user_external_id: e.userExternalId }
|
|
1305
|
+
})).data;
|
|
1306
|
+
} catch (e) {
|
|
1307
|
+
return console.error("[/copilot/actions]", e), Promise.reject(e);
|
|
1308
|
+
}
|
|
1309
|
+
};
|
|
1310
|
+
}, le = class {
|
|
1008
1311
|
props;
|
|
1009
1312
|
authentication;
|
|
1010
1313
|
constructor(e) {
|
|
@@ -1170,7 +1473,7 @@ var P = class {
|
|
|
1170
1473
|
return console.error("[/comments/user/get]", e), Promise.reject(e);
|
|
1171
1474
|
}
|
|
1172
1475
|
};
|
|
1173
|
-
},
|
|
1476
|
+
}, ue = class {
|
|
1174
1477
|
props;
|
|
1175
1478
|
authentication;
|
|
1176
1479
|
constructor(e) {
|
|
@@ -1246,7 +1549,7 @@ var P = class {
|
|
|
1246
1549
|
return console.error("[/contributions/paymentGateways/get]", e), Promise.reject(e);
|
|
1247
1550
|
}
|
|
1248
1551
|
};
|
|
1249
|
-
},
|
|
1552
|
+
}, de = class {
|
|
1250
1553
|
props;
|
|
1251
1554
|
authentication;
|
|
1252
1555
|
constructor(e) {
|
|
@@ -1302,7 +1605,7 @@ var P = class {
|
|
|
1302
1605
|
return console.error("[/sections/update]", e), Promise.reject(e);
|
|
1303
1606
|
}
|
|
1304
1607
|
};
|
|
1305
|
-
},
|
|
1608
|
+
}, fe = class {
|
|
1306
1609
|
props;
|
|
1307
1610
|
authentication;
|
|
1308
1611
|
constructor(e) {
|
|
@@ -1588,7 +1891,7 @@ var P = class {
|
|
|
1588
1891
|
return console.error("[/productivityPlan/reviewr/detail]", e), Promise.reject(e);
|
|
1589
1892
|
}
|
|
1590
1893
|
};
|
|
1591
|
-
},
|
|
1894
|
+
}, pe = class {
|
|
1592
1895
|
props;
|
|
1593
1896
|
authentication;
|
|
1594
1897
|
constructor(e) {
|
|
@@ -1611,7 +1914,7 @@ var P = class {
|
|
|
1611
1914
|
return console.error("[/events/get]", e), Promise.reject(e);
|
|
1612
1915
|
}
|
|
1613
1916
|
};
|
|
1614
|
-
},
|
|
1917
|
+
}, me = class {
|
|
1615
1918
|
props;
|
|
1616
1919
|
authentication;
|
|
1617
1920
|
constructor(e) {
|
|
@@ -1637,7 +1940,7 @@ var P = class {
|
|
|
1637
1940
|
return console.error("[/fileExplorer/getFolders]", e), Promise.reject(e);
|
|
1638
1941
|
}
|
|
1639
1942
|
};
|
|
1640
|
-
},
|
|
1943
|
+
}, he = class {
|
|
1641
1944
|
props;
|
|
1642
1945
|
authentication;
|
|
1643
1946
|
constructor(e) {
|
|
@@ -1653,7 +1956,7 @@ var P = class {
|
|
|
1653
1956
|
return console.error("[/updateCDN]", e), Promise.reject(e);
|
|
1654
1957
|
}
|
|
1655
1958
|
};
|
|
1656
|
-
},
|
|
1959
|
+
}, ge = class {
|
|
1657
1960
|
props;
|
|
1658
1961
|
authentication;
|
|
1659
1962
|
constructor(e) {
|
|
@@ -1849,7 +2152,7 @@ var P = class {
|
|
|
1849
2152
|
return console.error("[/images/ckeditor/getImageComparation]", e), Promise.reject(e);
|
|
1850
2153
|
}
|
|
1851
2154
|
};
|
|
1852
|
-
},
|
|
2155
|
+
}, _e = class {
|
|
1853
2156
|
props;
|
|
1854
2157
|
authentication;
|
|
1855
2158
|
constructor(e) {
|
|
@@ -2422,7 +2725,7 @@ var P = class {
|
|
|
2422
2725
|
return console.error("[/news/searchConsole/inspection]", e), Promise.reject(e);
|
|
2423
2726
|
}
|
|
2424
2727
|
};
|
|
2425
|
-
},
|
|
2728
|
+
}, ve = class {
|
|
2426
2729
|
props;
|
|
2427
2730
|
authentication;
|
|
2428
2731
|
constructor(e) {
|
|
@@ -2452,7 +2755,7 @@ var P = class {
|
|
|
2452
2755
|
return console.error("[/notification/topics]", e), Promise.reject(e);
|
|
2453
2756
|
}
|
|
2454
2757
|
};
|
|
2455
|
-
},
|
|
2758
|
+
}, ye = class {
|
|
2456
2759
|
props;
|
|
2457
2760
|
authentication;
|
|
2458
2761
|
constructor(e) {
|
|
@@ -2528,7 +2831,7 @@ var P = class {
|
|
|
2528
2831
|
return console.error("[/people/adminConfiguration]", e), Promise.reject(e);
|
|
2529
2832
|
}
|
|
2530
2833
|
};
|
|
2531
|
-
},
|
|
2834
|
+
}, be = class {
|
|
2532
2835
|
props;
|
|
2533
2836
|
authentication;
|
|
2534
2837
|
constructor(e) {
|
|
@@ -2742,7 +3045,7 @@ var P = class {
|
|
|
2742
3045
|
return console.error("[/polls/publish/now]", e), Promise.reject(e);
|
|
2743
3046
|
}
|
|
2744
3047
|
};
|
|
2745
|
-
},
|
|
3048
|
+
}, xe = class {
|
|
2746
3049
|
props;
|
|
2747
3050
|
authentication;
|
|
2748
3051
|
constructor(e) {
|
|
@@ -2910,7 +3213,7 @@ var P = class {
|
|
|
2910
3213
|
return console.error("[/recipes/publish/schedule]", e), Promise.reject(e);
|
|
2911
3214
|
}
|
|
2912
3215
|
};
|
|
2913
|
-
},
|
|
3216
|
+
}, Se = class {
|
|
2914
3217
|
props;
|
|
2915
3218
|
authentication;
|
|
2916
3219
|
constructor(e) {
|
|
@@ -3006,7 +3309,7 @@ var P = class {
|
|
|
3006
3309
|
return console.error("[/users/actions/resetMfa]", e), Promise.reject(e);
|
|
3007
3310
|
}
|
|
3008
3311
|
};
|
|
3009
|
-
},
|
|
3312
|
+
}, Ce = class {
|
|
3010
3313
|
props;
|
|
3011
3314
|
authentication;
|
|
3012
3315
|
constructor(e) {
|
|
@@ -3063,7 +3366,7 @@ var P = class {
|
|
|
3063
3366
|
return console.error("[/zones/order]", e), Promise.reject(e);
|
|
3064
3367
|
}
|
|
3065
3368
|
};
|
|
3066
|
-
},
|
|
3369
|
+
}, we = class {
|
|
3067
3370
|
props;
|
|
3068
3371
|
authentication;
|
|
3069
3372
|
constructor(e) {
|
|
@@ -3096,7 +3399,7 @@ var P = class {
|
|
|
3096
3399
|
return console.error("[/workpaper/status]", e), Promise.reject(e);
|
|
3097
3400
|
}
|
|
3098
3401
|
};
|
|
3099
|
-
},
|
|
3402
|
+
}, Te = class {
|
|
3100
3403
|
props;
|
|
3101
3404
|
authentication;
|
|
3102
3405
|
constructor(e) {
|
|
@@ -3140,7 +3443,7 @@ var P = class {
|
|
|
3140
3443
|
return console.error("[/vods/playlist/create]", e), Promise.reject(e);
|
|
3141
3444
|
}
|
|
3142
3445
|
};
|
|
3143
|
-
},
|
|
3446
|
+
}, Ee = class {
|
|
3144
3447
|
props;
|
|
3145
3448
|
authentication;
|
|
3146
3449
|
constructor(e) {
|
|
@@ -3502,7 +3805,7 @@ var P = class {
|
|
|
3502
3805
|
return console.error("[/videos/nativos/download]", e), Promise.reject(e);
|
|
3503
3806
|
}
|
|
3504
3807
|
};
|
|
3505
|
-
},
|
|
3808
|
+
}, De = class {
|
|
3506
3809
|
props;
|
|
3507
3810
|
authentication;
|
|
3508
3811
|
constructor(e) {
|
|
@@ -3619,7 +3922,7 @@ var P = class {
|
|
|
3619
3922
|
return console.error("[/trivias/edit/inline]", e), Promise.reject(e);
|
|
3620
3923
|
}
|
|
3621
3924
|
};
|
|
3622
|
-
},
|
|
3925
|
+
}, Oe = class {
|
|
3623
3926
|
props;
|
|
3624
3927
|
authentication;
|
|
3625
3928
|
constructor(e) {
|
|
@@ -3635,7 +3938,7 @@ var P = class {
|
|
|
3635
3938
|
return console.error("[/transcribe/get]", e), Promise.reject(e);
|
|
3636
3939
|
}
|
|
3637
3940
|
};
|
|
3638
|
-
},
|
|
3941
|
+
}, ke = class {
|
|
3639
3942
|
props;
|
|
3640
3943
|
authentication;
|
|
3641
3944
|
constructor(e) {
|
|
@@ -3741,7 +4044,7 @@ var P = class {
|
|
|
3741
4044
|
return console.error("[/tags/changeStatus]", e), Promise.reject(e);
|
|
3742
4045
|
}
|
|
3743
4046
|
};
|
|
3744
|
-
},
|
|
4047
|
+
}, Ae = class {
|
|
3745
4048
|
props;
|
|
3746
4049
|
authentication;
|
|
3747
4050
|
publications;
|
|
@@ -3750,28 +4053,29 @@ var P = class {
|
|
|
3750
4053
|
sites;
|
|
3751
4054
|
auth;
|
|
3752
4055
|
constructor(e) {
|
|
3753
|
-
this.props = e, this.authentication = e.authentication, this.publications = new
|
|
4056
|
+
this.props = e, this.authentication = e.authentication, this.publications = new X(e), this.profileServices = new Y(e), this.dashboard = new J(e), this.sites = new Z(e), this.auth = new q(e);
|
|
3754
4057
|
}
|
|
3755
4058
|
getDefaultPublication = () => this.publications.getDefaultPublication();
|
|
3756
4059
|
getProfile = () => this.profileServices.getProfile();
|
|
3757
4060
|
getCountNotifications = async () => await this.dashboard.countNotifications();
|
|
3758
4061
|
getNotifications = async () => await this.dashboard.getNotifications();
|
|
3759
4062
|
getSitesAndPublications = async () => {
|
|
3760
|
-
let [e, t, n] = await Promise.all([
|
|
4063
|
+
let [e, t, n, r] = await Promise.all([
|
|
3761
4064
|
this.sites.getSites(),
|
|
3762
4065
|
this.publications.getPublications(),
|
|
3763
|
-
this.auth.getModulesAvailable()
|
|
4066
|
+
this.auth.getModulesAvailable(),
|
|
4067
|
+
this.auth.getPermissions().catch(() => null)
|
|
3764
4068
|
]);
|
|
3765
4069
|
return {
|
|
3766
4070
|
sites: e.sites.map((e) => ({
|
|
3767
4071
|
title: e.title,
|
|
3768
4072
|
publications: t.publications.filter((t) => t.site === e.name)
|
|
3769
4073
|
})).filter((e) => e.publications.length > 0),
|
|
3770
|
-
modules: n.modules
|
|
4074
|
+
modules: K(n.modules, r)
|
|
3771
4075
|
};
|
|
3772
4076
|
};
|
|
3773
4077
|
};
|
|
3774
4078
|
//#endregion
|
|
3775
|
-
export {
|
|
4079
|
+
export { te as $, Q as A, B, le as C, ae as D, oe as E, q as F, j as G, P as H, K as I, F as J, I as K, G as L, X as M, Y as N, ie as O, J as P, A as Q, U as R, ue as S, se as T, N as U, V, M as W, z as X, R as Y, ee as Z, he as _, p as _t, Ee as a, y as at, fe as b, Ce as c, c as ct, $ as d, h as dt, D as et, be as f, a as ft, ge as g, d as gt, _e as h, S as ht, De as i, i as it, Z as j, re as k, Se as l, w as lt, ve as m, s as mt, ke as n, T as nt, Te as o, _ as ot, ye as p, o as pt, L as q, Oe as r, C as rt, we as s, l as st, Ae as t, E as tt, xe as u, b as ut, me as v, ce as w, de as x, pe as y, W as z };
|
|
3776
4080
|
|
|
3777
|
-
//# sourceMappingURL=services-
|
|
4081
|
+
//# sourceMappingURL=services-BLy9bEvH.js.map
|