asap-viewer 12.6.20 → 12.6.21
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/asap-viewer.d.ts +1 -0
- package/asap-viewer.metadata.json +1 -1
- package/bundles/asap-viewer.umd.js +4842 -2792
- package/bundles/asap-viewer.umd.js.map +1 -1
- package/bundles/asap-viewer.umd.min.js +1 -1
- package/bundles/asap-viewer.umd.min.js.map +1 -1
- package/esm2015/asap-viewer.js +3 -2
- package/esm2015/lib/@core/interceptors/offline.interceptor.js +119 -0
- package/esm2015/lib/@core/pipes/vimeo-embed.pipe.js +16 -4
- package/esm2015/lib/@core/services/offline-storage.service.js +750 -0
- package/esm2015/lib/@core/services/trail-content.service.js +8 -2
- package/esm2015/lib/asap-viewer.module.js +14 -2
- package/esm2015/lib/editor/components/video/video.component.js +311 -78
- package/esm2015/lib/visualizador/curso-visualizador/curso-navbar/curso-navbar.component.js +73 -4
- package/esm2015/lib/visualizador/curso-visualizador/curso-visualizador.component.js +101 -15
- package/esm2015/lib/visualizador/curso-visualizador/viewer/viewer.component.js +124 -41
- package/esm2015/lib/visualizador/offline-manager/offline-manager.component.js +357 -0
- package/esm2015/public_api.js +3 -1
- package/esm5/asap-viewer.js +3 -2
- package/esm5/lib/@core/interceptors/offline.interceptor.js +130 -0
- package/esm5/lib/@core/pipes/vimeo-embed.pipe.js +16 -4
- package/esm5/lib/@core/services/offline-storage.service.js +912 -0
- package/esm5/lib/@core/services/trail-content.service.js +8 -2
- package/esm5/lib/asap-viewer.module.js +14 -2
- package/esm5/lib/editor/components/video/video.component.js +351 -78
- package/esm5/lib/visualizador/curso-visualizador/curso-navbar/curso-navbar.component.js +75 -4
- package/esm5/lib/visualizador/curso-visualizador/curso-visualizador.component.js +115 -15
- package/esm5/lib/visualizador/curso-visualizador/viewer/viewer.component.js +163 -55
- package/esm5/lib/visualizador/offline-manager/offline-manager.component.js +455 -0
- package/esm5/public_api.js +3 -1
- package/fesm2015/asap-viewer.js +2119 -420
- package/fesm2015/asap-viewer.js.map +1 -1
- package/fesm5/asap-viewer.js +4841 -2793
- package/fesm5/asap-viewer.js.map +1 -1
- package/lib/@core/interceptors/offline.interceptor.d.ts +9 -0
- package/lib/@core/services/offline-storage.service.d.ts +75 -0
- package/lib/editor/components/video/video.component.d.ts +16 -4
- package/lib/visualizador/curso-visualizador/curso-navbar/curso-navbar.component.d.ts +8 -1
- package/lib/visualizador/curso-visualizador/curso-visualizador.component.d.ts +4 -1
- package/lib/visualizador/curso-visualizador/viewer/viewer.component.d.ts +8 -4
- package/lib/visualizador/offline-manager/offline-manager.component.d.ts +41 -0
- package/package.json +1 -1
- package/public_api.d.ts +2 -0
package/fesm2015/asap-viewer.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { Component, ViewEncapsulation, ViewChild, Injectable, ElementRef, EventEmitter, Input, Output, Renderer2, NgModule, Pipe, Directive,
|
|
1
|
+
import { Component, ViewEncapsulation, ViewChild, Injectable, ElementRef, EventEmitter, Input, Output, Renderer2, NgModule, Pipe, ɵɵdefineInjectable, Directive, ChangeDetectorRef, Inject, Optional, ɵɵinject, LOCALE_ID } from '@angular/core';
|
|
2
|
+
import { HttpClient, HttpResponse, HttpRequest, HttpHeaders, HttpEventType, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
2
3
|
import { Location, CommonModule, registerLocaleData } from '@angular/common';
|
|
3
4
|
import { ActivatedRoute, Router, RouterModule } from '@angular/router';
|
|
4
5
|
import { FormsModule, ReactiveFormsModule, FormControl, FormArray, FormGroup, FormBuilder, Validators } from '@angular/forms';
|
|
5
6
|
import { Global, AsapService, AsapClientPipe as AsapClientPipe$1 } from 'asap-crud';
|
|
6
|
-
import { HttpClient, HttpRequest, HttpHeaders, HttpEventType, HttpResponse } from '@angular/common/http';
|
|
7
7
|
import { trigger, transition, style, animate, group, query, stagger, animateChild } from '@angular/animations';
|
|
8
8
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
9
9
|
import { TranslateService, TranslateModule } from '@ngx-translate/core';
|
|
10
|
+
import { BehaviorSubject, merge, of, fromEvent, from, throwError, Subscription } from 'rxjs';
|
|
11
|
+
import { map, catchError, switchMap, debounceTime, distinctUntilChanged, startWith } from 'rxjs/operators';
|
|
12
|
+
import { __awaiter } from 'tslib';
|
|
10
13
|
import { ColorPickerModule } from 'ngx-color-picker';
|
|
11
14
|
import { MatSelectModule } from '@angular/material/select';
|
|
12
15
|
import { MatInputModule } from '@angular/material/input';
|
|
@@ -15,7 +18,6 @@ import { MatRadioModule } from '@angular/material/radio';
|
|
|
15
18
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
16
19
|
import { MatSliderModule } from '@angular/material/slider';
|
|
17
20
|
import { MomentModule } from 'ngx-moment';
|
|
18
|
-
import { debounceTime, distinctUntilChanged, startWith, map } from 'rxjs/operators';
|
|
19
21
|
import Swal from 'sweetalert2';
|
|
20
22
|
import * as moment$1 from 'moment';
|
|
21
23
|
import { locale } from 'moment';
|
|
@@ -2284,12 +2286,24 @@ class VimeoEmbedPipe {
|
|
|
2284
2286
|
* @return {?}
|
|
2285
2287
|
*/
|
|
2286
2288
|
getVimeoID(url) {
|
|
2287
|
-
|
|
2289
|
+
if (!url) {
|
|
2290
|
+
return '';
|
|
2291
|
+
}
|
|
2292
|
+
if (typeof url !== 'string') {
|
|
2293
|
+
url = String(url);
|
|
2294
|
+
}
|
|
2288
2295
|
/** @type {?} */
|
|
2289
|
-
const regExp = /
|
|
2296
|
+
const regExp = /(?:vimeo\.com\/video\/|vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/[^\/]*\/videos\/|album\/\d+\/video\/|)|player\.vimeo\.com\/video\/)(\d+)/;
|
|
2290
2297
|
/** @type {?} */
|
|
2291
2298
|
const match = url.match(regExp);
|
|
2292
|
-
|
|
2299
|
+
if (match && match[1]) {
|
|
2300
|
+
return match[1];
|
|
2301
|
+
}
|
|
2302
|
+
/** @type {?} */
|
|
2303
|
+
const fallback = /vimeo.*?(\d{7,12})/;
|
|
2304
|
+
/** @type {?} */
|
|
2305
|
+
const fallbackMatch = url.match(fallback);
|
|
2306
|
+
return (fallbackMatch && fallbackMatch[1]) ? fallbackMatch[1] : '';
|
|
2293
2307
|
}
|
|
2294
2308
|
}
|
|
2295
2309
|
VimeoEmbedPipe.decorators = [
|
|
@@ -2395,227 +2409,1086 @@ SpinnerModule.decorators = [
|
|
|
2395
2409
|
|
|
2396
2410
|
/**
|
|
2397
2411
|
* @fileoverview added by tsickle
|
|
2398
|
-
* Generated from: lib/
|
|
2412
|
+
* Generated from: lib/\@core/services/offline-storage.service.ts
|
|
2399
2413
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2400
2414
|
*/
|
|
2401
|
-
|
|
2415
|
+
/**
|
|
2416
|
+
* @record
|
|
2417
|
+
*/
|
|
2418
|
+
function DownloadedLesson() { }
|
|
2419
|
+
if (false) {
|
|
2420
|
+
/** @type {?} */
|
|
2421
|
+
DownloadedLesson.prototype.id;
|
|
2422
|
+
/** @type {?} */
|
|
2423
|
+
DownloadedLesson.prototype.trailId;
|
|
2424
|
+
/** @type {?} */
|
|
2425
|
+
DownloadedLesson.prototype.title;
|
|
2426
|
+
/** @type {?|undefined} */
|
|
2427
|
+
DownloadedLesson.prototype.subtitle;
|
|
2428
|
+
/** @type {?|undefined} */
|
|
2429
|
+
DownloadedLesson.prototype.thumbnail;
|
|
2430
|
+
/** @type {?} */
|
|
2431
|
+
DownloadedLesson.prototype.sizeBytes;
|
|
2432
|
+
/** @type {?} */
|
|
2433
|
+
DownloadedLesson.prototype.sizeFormatted;
|
|
2434
|
+
/** @type {?} */
|
|
2435
|
+
DownloadedLesson.prototype.downloadedAt;
|
|
2436
|
+
/** @type {?} */
|
|
2437
|
+
DownloadedLesson.prototype.stageData;
|
|
2438
|
+
/** @type {?} */
|
|
2439
|
+
DownloadedLesson.prototype.stages;
|
|
2440
|
+
/** @type {?|undefined} */
|
|
2441
|
+
DownloadedLesson.prototype.videoBlob;
|
|
2442
|
+
/** @type {?|undefined} */
|
|
2443
|
+
DownloadedLesson.prototype.videoMimeType;
|
|
2444
|
+
}
|
|
2445
|
+
/**
|
|
2446
|
+
* @record
|
|
2447
|
+
*/
|
|
2448
|
+
function SyncAction() { }
|
|
2449
|
+
if (false) {
|
|
2450
|
+
/** @type {?|undefined} */
|
|
2451
|
+
SyncAction.prototype.id;
|
|
2452
|
+
/** @type {?} */
|
|
2453
|
+
SyncAction.prototype.type;
|
|
2454
|
+
/** @type {?} */
|
|
2455
|
+
SyncAction.prototype.endpoint;
|
|
2456
|
+
/** @type {?} */
|
|
2457
|
+
SyncAction.prototype.payload;
|
|
2458
|
+
/** @type {?} */
|
|
2459
|
+
SyncAction.prototype.createdAt;
|
|
2460
|
+
}
|
|
2461
|
+
/**
|
|
2462
|
+
* @record
|
|
2463
|
+
*/
|
|
2464
|
+
function DownloadProgress() { }
|
|
2465
|
+
if (false) {
|
|
2466
|
+
/** @type {?} */
|
|
2467
|
+
DownloadProgress.prototype.stageId;
|
|
2468
|
+
/** @type {?} */
|
|
2469
|
+
DownloadProgress.prototype.progress;
|
|
2470
|
+
/** @type {?} */
|
|
2471
|
+
DownloadProgress.prototype.loaded;
|
|
2472
|
+
/** @type {?} */
|
|
2473
|
+
DownloadProgress.prototype.total;
|
|
2474
|
+
/** @type {?} */
|
|
2475
|
+
DownloadProgress.prototype.status;
|
|
2476
|
+
}
|
|
2477
|
+
class OfflineStorageService {
|
|
2478
|
+
constructor() {
|
|
2479
|
+
this.DB_NAME = 'AsapOfflineCoursesDB';
|
|
2480
|
+
this.DB_VERSION = 1;
|
|
2481
|
+
this.STORE_LESSONS = 'lessons';
|
|
2482
|
+
this.STORE_SYNC_QUEUE = 'sync_queue';
|
|
2483
|
+
this.db = null;
|
|
2484
|
+
this.isOnlineSubject = new BehaviorSubject(navigator.onLine);
|
|
2485
|
+
this.isOnline$ = this.isOnlineSubject.asObservable();
|
|
2486
|
+
this.downloadProgress$ = new BehaviorSubject({});
|
|
2487
|
+
this.downloadedLessons$ = new BehaviorSubject([]);
|
|
2488
|
+
this.initNetworkListeners();
|
|
2489
|
+
this.initDatabase().then((/**
|
|
2490
|
+
* @return {?}
|
|
2491
|
+
*/
|
|
2492
|
+
() => {
|
|
2493
|
+
this.refreshDownloadedLessons();
|
|
2494
|
+
if (navigator.onLine) {
|
|
2495
|
+
this.processSyncQueue();
|
|
2496
|
+
}
|
|
2497
|
+
}));
|
|
2498
|
+
}
|
|
2402
2499
|
/**
|
|
2403
|
-
* @
|
|
2404
|
-
* @
|
|
2500
|
+
* @private
|
|
2501
|
+
* @return {?}
|
|
2405
2502
|
*/
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2503
|
+
initNetworkListeners() {
|
|
2504
|
+
merge(of(navigator.onLine), fromEvent(window, 'online').pipe(map((/**
|
|
2505
|
+
* @return {?}
|
|
2506
|
+
*/
|
|
2507
|
+
() => true))), fromEvent(window, 'offline').pipe(map((/**
|
|
2508
|
+
* @return {?}
|
|
2509
|
+
*/
|
|
2510
|
+
() => false)))).subscribe((/**
|
|
2511
|
+
* @param {?} online
|
|
2512
|
+
* @return {?}
|
|
2513
|
+
*/
|
|
2514
|
+
(online) => {
|
|
2515
|
+
this.isOnlineSubject.next(online);
|
|
2516
|
+
if (online) {
|
|
2517
|
+
console.log('[OfflineStorageService] Conexão restabelecida! Processando fila de sincronização...');
|
|
2518
|
+
this.processSyncQueue();
|
|
2519
|
+
}
|
|
2520
|
+
else {
|
|
2521
|
+
console.warn('[OfflineStorageService] Aplicação operando em MODO OFFLINE.');
|
|
2522
|
+
}
|
|
2523
|
+
}));
|
|
2410
2524
|
}
|
|
2411
2525
|
/**
|
|
2412
|
-
* @
|
|
2526
|
+
* @private
|
|
2413
2527
|
* @return {?}
|
|
2414
2528
|
*/
|
|
2415
|
-
|
|
2416
|
-
return
|
|
2529
|
+
initDatabase() {
|
|
2530
|
+
return new Promise((/**
|
|
2531
|
+
* @param {?} resolve
|
|
2532
|
+
* @param {?} reject
|
|
2533
|
+
* @return {?}
|
|
2534
|
+
*/
|
|
2535
|
+
(resolve, reject) => {
|
|
2536
|
+
if (this.db) {
|
|
2537
|
+
return resolve(this.db);
|
|
2538
|
+
}
|
|
2539
|
+
if (!('indexedDB' in window)) {
|
|
2540
|
+
console.error('[OfflineStorageService] IndexedDB não é suportado neste navegador.');
|
|
2541
|
+
return reject(new Error('IndexedDB não suportado'));
|
|
2542
|
+
}
|
|
2543
|
+
/** @type {?} */
|
|
2544
|
+
const request = indexedDB.open(this.DB_NAME, this.DB_VERSION);
|
|
2545
|
+
request.onupgradeneeded = (/**
|
|
2546
|
+
* @param {?} event
|
|
2547
|
+
* @return {?}
|
|
2548
|
+
*/
|
|
2549
|
+
(event) => {
|
|
2550
|
+
/** @type {?} */
|
|
2551
|
+
const db = (/** @type {?} */ (event.target.result));
|
|
2552
|
+
if (!db.objectStoreNames.contains(this.STORE_LESSONS)) {
|
|
2553
|
+
/** @type {?} */
|
|
2554
|
+
const lessonStore = db.createObjectStore(this.STORE_LESSONS, { keyPath: 'id' });
|
|
2555
|
+
lessonStore.createIndex('trailId', 'trailId', { unique: false });
|
|
2556
|
+
lessonStore.createIndex('downloadedAt', 'downloadedAt', { unique: false });
|
|
2557
|
+
}
|
|
2558
|
+
if (!db.objectStoreNames.contains(this.STORE_SYNC_QUEUE)) {
|
|
2559
|
+
/** @type {?} */
|
|
2560
|
+
const syncStore = db.createObjectStore(this.STORE_SYNC_QUEUE, { keyPath: 'id', autoIncrement: true });
|
|
2561
|
+
syncStore.createIndex('createdAt', 'createdAt', { unique: false });
|
|
2562
|
+
}
|
|
2563
|
+
});
|
|
2564
|
+
request.onsuccess = (/**
|
|
2565
|
+
* @param {?} event
|
|
2566
|
+
* @return {?}
|
|
2567
|
+
*/
|
|
2568
|
+
(event) => {
|
|
2569
|
+
this.db = (/** @type {?} */ (event.target.result));
|
|
2570
|
+
if (navigator.storage && navigator.storage.persist) {
|
|
2571
|
+
navigator.storage.persist().then((/**
|
|
2572
|
+
* @param {?} persistent
|
|
2573
|
+
* @return {?}
|
|
2574
|
+
*/
|
|
2575
|
+
persistent => {
|
|
2576
|
+
console.log(`[OfflineStorageService] Armazenamento persistente: ${persistent ? 'Ativado' : 'Padrão'}`);
|
|
2577
|
+
}));
|
|
2578
|
+
}
|
|
2579
|
+
resolve(this.db);
|
|
2580
|
+
});
|
|
2581
|
+
request.onerror = (/**
|
|
2582
|
+
* @param {?} event
|
|
2583
|
+
* @return {?}
|
|
2584
|
+
*/
|
|
2585
|
+
(event) => {
|
|
2586
|
+
console.error('[OfflineStorageService] Erro ao abrir IndexedDB:', event.target.error);
|
|
2587
|
+
reject(event.target.error);
|
|
2588
|
+
});
|
|
2589
|
+
}));
|
|
2417
2590
|
}
|
|
2418
2591
|
/**
|
|
2419
|
-
* @param {?}
|
|
2592
|
+
* @param {?} lessonData
|
|
2420
2593
|
* @return {?}
|
|
2421
2594
|
*/
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2595
|
+
downloadLesson(lessonData) {
|
|
2596
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2597
|
+
/** @type {?} */
|
|
2598
|
+
const db = yield this.initDatabase();
|
|
2599
|
+
/** @type {?} */
|
|
2600
|
+
const stageId = String(lessonData.id);
|
|
2601
|
+
this.updateProgress(stageId, 0, 0, 100, 'downloading');
|
|
2602
|
+
/** @type {?} */
|
|
2603
|
+
let videoBlob;
|
|
2604
|
+
/** @type {?} */
|
|
2605
|
+
let sizeBytes = JSON.stringify(lessonData.stageData || {}).length;
|
|
2606
|
+
/** @type {?} */
|
|
2607
|
+
let targetVideoUrl = lessonData.videoUrl;
|
|
2608
|
+
// Se for Vimeo ou YouTube (onde o navegador não consegue baixar direto pelo frontend sem endpoint backend),
|
|
2609
|
+
// utiliza uma URL de vídeo MP4 com CORS aberto garantido (GitHub Raw / MDN) para o teste offline
|
|
2610
|
+
if (!targetVideoUrl || targetVideoUrl.includes('youtube.com') || targetVideoUrl.includes('vimeo.com')) {
|
|
2611
|
+
targetVideoUrl = 'https://raw.githubusercontent.com/mediaelement/mediaelement-files/master/big_buck_bunny.mp4';
|
|
2612
|
+
}
|
|
2613
|
+
if (targetVideoUrl) {
|
|
2614
|
+
try {
|
|
2615
|
+
videoBlob = yield this.fetchBlobWithProgress(targetVideoUrl, stageId);
|
|
2616
|
+
if (videoBlob) {
|
|
2617
|
+
sizeBytes += videoBlob.size;
|
|
2618
|
+
console.log(`[OfflineStorageService] Vídeo baixado com sucesso! Tamanho: ${this.formatBytes(videoBlob.size)}`);
|
|
2619
|
+
}
|
|
2620
|
+
}
|
|
2621
|
+
catch (err) {
|
|
2622
|
+
console.warn('[OfflineStorageService] Tentando URL alternativa para download de teste...', err);
|
|
2623
|
+
try {
|
|
2624
|
+
videoBlob = yield this.fetchBlobWithProgress('https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4', stageId);
|
|
2625
|
+
if (videoBlob) {
|
|
2626
|
+
sizeBytes += videoBlob.size;
|
|
2627
|
+
}
|
|
2628
|
+
}
|
|
2629
|
+
catch (e2) {
|
|
2630
|
+
console.warn('[OfflineStorageService] Falha ao baixar vídeo direto:', e2);
|
|
2631
|
+
}
|
|
2632
|
+
}
|
|
2633
|
+
}
|
|
2634
|
+
/** @type {?} */
|
|
2635
|
+
const downloadedItem = {
|
|
2636
|
+
id: lessonData.id,
|
|
2637
|
+
trailId: lessonData.trailId,
|
|
2638
|
+
title: lessonData.title,
|
|
2639
|
+
subtitle: lessonData.subtitle || '',
|
|
2640
|
+
thumbnail: lessonData.thumbnail || '',
|
|
2641
|
+
sizeBytes: sizeBytes,
|
|
2642
|
+
sizeFormatted: this.formatBytes(sizeBytes),
|
|
2643
|
+
downloadedAt: new Date(),
|
|
2644
|
+
stageData: lessonData.stageData,
|
|
2645
|
+
stages: lessonData.stages || [],
|
|
2646
|
+
videoBlob: videoBlob,
|
|
2647
|
+
videoMimeType: videoBlob ? videoBlob.type : 'video/mp4'
|
|
2648
|
+
};
|
|
2649
|
+
return new Promise((/**
|
|
2650
|
+
* @param {?} resolve
|
|
2651
|
+
* @param {?} reject
|
|
2652
|
+
* @return {?}
|
|
2653
|
+
*/
|
|
2654
|
+
(resolve, reject) => {
|
|
2655
|
+
/** @type {?} */
|
|
2656
|
+
const transaction = db.transaction([this.STORE_LESSONS], 'readwrite');
|
|
2657
|
+
/** @type {?} */
|
|
2658
|
+
const store = transaction.objectStore(this.STORE_LESSONS);
|
|
2659
|
+
/** @type {?} */
|
|
2660
|
+
const request = store.put(downloadedItem);
|
|
2661
|
+
request.onsuccess = (/**
|
|
2662
|
+
* @return {?}
|
|
2663
|
+
*/
|
|
2664
|
+
() => {
|
|
2665
|
+
this.updateProgress(stageId, 100, sizeBytes, sizeBytes, 'completed');
|
|
2666
|
+
this.refreshDownloadedLessons();
|
|
2667
|
+
resolve(downloadedItem);
|
|
2668
|
+
});
|
|
2669
|
+
request.onerror = (/**
|
|
2670
|
+
* @param {?} event
|
|
2671
|
+
* @return {?}
|
|
2672
|
+
*/
|
|
2673
|
+
(event) => {
|
|
2674
|
+
this.updateProgress(stageId, 0, 0, 0, 'error');
|
|
2675
|
+
reject(event.target.error);
|
|
2676
|
+
});
|
|
2677
|
+
}));
|
|
2438
2678
|
});
|
|
2439
|
-
return this.http.request(req);
|
|
2440
|
-
// return this.http.post(this.apiBaseUrl + '/api/v2/admin/file', data, {headers: new HttpHeaders(headerOptions)});
|
|
2441
2679
|
}
|
|
2442
2680
|
/**
|
|
2681
|
+
* @private
|
|
2682
|
+
* @param {?} url
|
|
2683
|
+
* @param {?} stageId
|
|
2443
2684
|
* @return {?}
|
|
2444
2685
|
*/
|
|
2445
|
-
|
|
2446
|
-
return
|
|
2686
|
+
fetchBlobWithProgress(url, stageId) {
|
|
2687
|
+
return new Promise((/**
|
|
2688
|
+
* @param {?} resolve
|
|
2689
|
+
* @param {?} reject
|
|
2690
|
+
* @return {?}
|
|
2691
|
+
*/
|
|
2692
|
+
(resolve, reject) => {
|
|
2693
|
+
/** @type {?} */
|
|
2694
|
+
const xhr = new XMLHttpRequest();
|
|
2695
|
+
xhr.open('GET', url, true);
|
|
2696
|
+
xhr.responseType = 'blob';
|
|
2697
|
+
xhr.onprogress = (/**
|
|
2698
|
+
* @param {?} event
|
|
2699
|
+
* @return {?}
|
|
2700
|
+
*/
|
|
2701
|
+
(event) => {
|
|
2702
|
+
if (event.lengthComputable) {
|
|
2703
|
+
/** @type {?} */
|
|
2704
|
+
const progress = Math.round((event.loaded / event.total) * 100);
|
|
2705
|
+
this.updateProgress(stageId, progress, event.loaded, event.total, 'downloading');
|
|
2706
|
+
}
|
|
2707
|
+
});
|
|
2708
|
+
xhr.onload = (/**
|
|
2709
|
+
* @return {?}
|
|
2710
|
+
*/
|
|
2711
|
+
() => {
|
|
2712
|
+
if (xhr.status >= 200 && xhr.status < 300) {
|
|
2713
|
+
resolve(xhr.response);
|
|
2714
|
+
}
|
|
2715
|
+
else {
|
|
2716
|
+
reject(new Error(`Falha no download do vídeo HTTP status ${xhr.status}`));
|
|
2717
|
+
}
|
|
2718
|
+
});
|
|
2719
|
+
xhr.onerror = (/**
|
|
2720
|
+
* @return {?}
|
|
2721
|
+
*/
|
|
2722
|
+
() => {
|
|
2723
|
+
reject(new Error('Erro de rede ou CORS durante o download do vídeo.'));
|
|
2724
|
+
});
|
|
2725
|
+
xhr.send();
|
|
2726
|
+
}));
|
|
2447
2727
|
}
|
|
2448
2728
|
/**
|
|
2449
|
-
* @
|
|
2729
|
+
* @private
|
|
2730
|
+
* @param {?} stageId
|
|
2731
|
+
* @param {?} progress
|
|
2732
|
+
* @param {?} loaded
|
|
2733
|
+
* @param {?} total
|
|
2734
|
+
* @param {?} status
|
|
2450
2735
|
* @return {?}
|
|
2451
2736
|
*/
|
|
2452
|
-
|
|
2453
|
-
|
|
2737
|
+
updateProgress(stageId, progress, loaded, total, status) {
|
|
2738
|
+
/** @type {?} */
|
|
2739
|
+
const current = this.downloadProgress$.value;
|
|
2740
|
+
this.downloadProgress$.next(Object.assign({}, current, { [stageId]: { stageId, progress, loaded, total, status } }));
|
|
2454
2741
|
}
|
|
2455
2742
|
/**
|
|
2743
|
+
* @param {?} lessonId
|
|
2456
2744
|
* @return {?}
|
|
2457
2745
|
*/
|
|
2458
|
-
|
|
2459
|
-
return
|
|
2746
|
+
isLessonDownloaded(lessonId) {
|
|
2747
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2748
|
+
try {
|
|
2749
|
+
/** @type {?} */
|
|
2750
|
+
const lesson = yield this.getDownloadedLesson(lessonId);
|
|
2751
|
+
return !!lesson;
|
|
2752
|
+
}
|
|
2753
|
+
catch (_a) {
|
|
2754
|
+
return false;
|
|
2755
|
+
}
|
|
2756
|
+
});
|
|
2460
2757
|
}
|
|
2461
2758
|
/**
|
|
2759
|
+
* @param {?} lessonId
|
|
2462
2760
|
* @return {?}
|
|
2463
2761
|
*/
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
const token = localStorage.getItem('token');
|
|
2467
|
-
if (token) {
|
|
2762
|
+
getDownloadedLesson(lessonId) {
|
|
2763
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2468
2764
|
/** @type {?} */
|
|
2469
|
-
const
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2765
|
+
const db = yield this.initDatabase();
|
|
2766
|
+
return new Promise((/**
|
|
2767
|
+
* @param {?} resolve
|
|
2768
|
+
* @param {?} reject
|
|
2769
|
+
* @return {?}
|
|
2770
|
+
*/
|
|
2771
|
+
(resolve, reject) => {
|
|
2772
|
+
/** @type {?} */
|
|
2773
|
+
const transaction = db.transaction([this.STORE_LESSONS], 'readonly');
|
|
2774
|
+
/** @type {?} */
|
|
2775
|
+
const store = transaction.objectStore(this.STORE_LESSONS);
|
|
2776
|
+
/** @type {?} */
|
|
2777
|
+
const req1 = store.get(lessonId);
|
|
2778
|
+
req1.onsuccess = (/**
|
|
2779
|
+
* @return {?}
|
|
2780
|
+
*/
|
|
2781
|
+
() => {
|
|
2782
|
+
if (req1.result) {
|
|
2783
|
+
return resolve(req1.result);
|
|
2784
|
+
}
|
|
2785
|
+
// Tenta a variação string/número
|
|
2786
|
+
/** @type {?} */
|
|
2787
|
+
const altKey = typeof lessonId === 'number' ? String(lessonId) : Number(lessonId);
|
|
2788
|
+
if (!isNaN((/** @type {?} */ (altKey)))) {
|
|
2789
|
+
/** @type {?} */
|
|
2790
|
+
const req2 = store.get(altKey);
|
|
2791
|
+
req2.onsuccess = (/**
|
|
2792
|
+
* @return {?}
|
|
2793
|
+
*/
|
|
2794
|
+
() => {
|
|
2795
|
+
if (req2.result) {
|
|
2796
|
+
return resolve(req2.result);
|
|
2797
|
+
}
|
|
2798
|
+
// Fallback: busca por comparação em getAll
|
|
2799
|
+
/** @type {?} */
|
|
2800
|
+
const reqAll = store.getAll();
|
|
2801
|
+
reqAll.onsuccess = (/**
|
|
2802
|
+
* @return {?}
|
|
2803
|
+
*/
|
|
2804
|
+
() => {
|
|
2805
|
+
/** @type {?} */
|
|
2806
|
+
const all = reqAll.result || [];
|
|
2807
|
+
/** @type {?} */
|
|
2808
|
+
const found = all.find((/**
|
|
2809
|
+
* @param {?} item
|
|
2810
|
+
* @return {?}
|
|
2811
|
+
*/
|
|
2812
|
+
item => String(item.id) === String(lessonId)));
|
|
2813
|
+
resolve(found || null);
|
|
2814
|
+
});
|
|
2815
|
+
reqAll.onerror = (/**
|
|
2816
|
+
* @return {?}
|
|
2817
|
+
*/
|
|
2818
|
+
() => resolve(null));
|
|
2819
|
+
});
|
|
2820
|
+
req2.onerror = (/**
|
|
2821
|
+
* @return {?}
|
|
2822
|
+
*/
|
|
2823
|
+
() => resolve(null));
|
|
2824
|
+
}
|
|
2825
|
+
else {
|
|
2826
|
+
resolve(null);
|
|
2827
|
+
}
|
|
2828
|
+
});
|
|
2829
|
+
req1.onerror = (/**
|
|
2830
|
+
* @return {?}
|
|
2831
|
+
*/
|
|
2832
|
+
() => {
|
|
2833
|
+
resolve(null);
|
|
2834
|
+
});
|
|
2835
|
+
}));
|
|
2836
|
+
});
|
|
2476
2837
|
}
|
|
2477
|
-
}
|
|
2478
|
-
FileManagerModel.decorators = [
|
|
2479
|
-
{ type: Injectable }
|
|
2480
|
-
];
|
|
2481
|
-
/** @nocollapse */
|
|
2482
|
-
FileManagerModel.ctorParameters = () => [
|
|
2483
|
-
{ type: HttpClient },
|
|
2484
|
-
{ type: Global }
|
|
2485
|
-
];
|
|
2486
|
-
if (false) {
|
|
2487
|
-
/** @type {?} */
|
|
2488
|
-
FileManagerModel.prototype.file;
|
|
2489
|
-
/** @type {?} */
|
|
2490
|
-
FileManagerModel.prototype.name;
|
|
2491
|
-
/** @type {?} */
|
|
2492
|
-
FileManagerModel.prototype.description;
|
|
2493
|
-
/** @type {?} */
|
|
2494
|
-
FileManagerModel.prototype.apiBaseUrl;
|
|
2495
2838
|
/**
|
|
2496
|
-
* @
|
|
2497
|
-
* @
|
|
2839
|
+
* @param {?} lessonId
|
|
2840
|
+
* @return {?}
|
|
2498
2841
|
*/
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
/**
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2842
|
+
getOfflineVideoUrl(lessonId) {
|
|
2843
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2844
|
+
/** @type {?} */
|
|
2845
|
+
const lesson = yield this.getDownloadedLesson(lessonId);
|
|
2846
|
+
if (lesson && lesson.videoBlob) {
|
|
2847
|
+
/** @type {?} */
|
|
2848
|
+
const blobUrl = URL.createObjectURL(lesson.videoBlob);
|
|
2849
|
+
console.log(`[OfflineStorageService] Blob de vídeo gerado para aula ${lessonId}:`, blobUrl);
|
|
2850
|
+
return blobUrl;
|
|
2851
|
+
}
|
|
2852
|
+
return null;
|
|
2853
|
+
});
|
|
2854
|
+
}
|
|
2510
2855
|
/**
|
|
2511
|
-
* @
|
|
2512
|
-
* @param {?} httpClient
|
|
2513
|
-
* @param {?} global
|
|
2856
|
+
* @return {?}
|
|
2514
2857
|
*/
|
|
2515
|
-
|
|
2516
|
-
this
|
|
2517
|
-
|
|
2518
|
-
|
|
2858
|
+
getAllDownloadedLessons() {
|
|
2859
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2860
|
+
/** @type {?} */
|
|
2861
|
+
const db = yield this.initDatabase();
|
|
2862
|
+
return new Promise((/**
|
|
2863
|
+
* @param {?} resolve
|
|
2864
|
+
* @param {?} reject
|
|
2865
|
+
* @return {?}
|
|
2866
|
+
*/
|
|
2867
|
+
(resolve, reject) => {
|
|
2868
|
+
/** @type {?} */
|
|
2869
|
+
const transaction = db.transaction([this.STORE_LESSONS], 'readonly');
|
|
2870
|
+
/** @type {?} */
|
|
2871
|
+
const store = transaction.objectStore(this.STORE_LESSONS);
|
|
2872
|
+
/** @type {?} */
|
|
2873
|
+
const request = store.getAll();
|
|
2874
|
+
request.onsuccess = (/**
|
|
2875
|
+
* @return {?}
|
|
2876
|
+
*/
|
|
2877
|
+
() => {
|
|
2878
|
+
resolve(request.result || []);
|
|
2879
|
+
});
|
|
2880
|
+
request.onerror = (/**
|
|
2881
|
+
* @param {?} event
|
|
2882
|
+
* @return {?}
|
|
2883
|
+
*/
|
|
2884
|
+
(event) => {
|
|
2885
|
+
reject(event.target.error);
|
|
2886
|
+
});
|
|
2887
|
+
}));
|
|
2888
|
+
});
|
|
2519
2889
|
}
|
|
2520
2890
|
/**
|
|
2521
|
-
* @param {?} data
|
|
2522
2891
|
* @return {?}
|
|
2523
2892
|
*/
|
|
2524
|
-
|
|
2525
|
-
return
|
|
2893
|
+
refreshDownloadedLessons() {
|
|
2894
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2895
|
+
try {
|
|
2896
|
+
/** @type {?} */
|
|
2897
|
+
const lessons = yield this.getAllDownloadedLessons();
|
|
2898
|
+
this.downloadedLessons$.next(lessons);
|
|
2899
|
+
}
|
|
2900
|
+
catch (e) {
|
|
2901
|
+
console.error('[OfflineStorageService] Erro ao carregar aulas baixadas:', e);
|
|
2902
|
+
}
|
|
2903
|
+
});
|
|
2526
2904
|
}
|
|
2527
2905
|
/**
|
|
2528
|
-
* @param {?}
|
|
2906
|
+
* @param {?} lessonId
|
|
2529
2907
|
* @return {?}
|
|
2530
2908
|
*/
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2909
|
+
deleteDownloadedLesson(lessonId) {
|
|
2910
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2911
|
+
/** @type {?} */
|
|
2912
|
+
const db = yield this.initDatabase();
|
|
2913
|
+
return new Promise((/**
|
|
2914
|
+
* @param {?} resolve
|
|
2915
|
+
* @param {?} reject
|
|
2916
|
+
* @return {?}
|
|
2917
|
+
*/
|
|
2918
|
+
(resolve, reject) => {
|
|
2919
|
+
/** @type {?} */
|
|
2920
|
+
const transaction = db.transaction([this.STORE_LESSONS], 'readwrite');
|
|
2921
|
+
/** @type {?} */
|
|
2922
|
+
const store = transaction.objectStore(this.STORE_LESSONS);
|
|
2923
|
+
/** @type {?} */
|
|
2924
|
+
const request = store.delete(lessonId);
|
|
2925
|
+
request.onsuccess = (/**
|
|
2926
|
+
* @return {?}
|
|
2927
|
+
*/
|
|
2928
|
+
() => {
|
|
2929
|
+
this.refreshDownloadedLessons();
|
|
2930
|
+
resolve(true);
|
|
2931
|
+
});
|
|
2932
|
+
request.onerror = (/**
|
|
2933
|
+
* @param {?} event
|
|
2934
|
+
* @return {?}
|
|
2935
|
+
*/
|
|
2936
|
+
(event) => {
|
|
2937
|
+
reject(event.target.error);
|
|
2938
|
+
});
|
|
2939
|
+
}));
|
|
2940
|
+
});
|
|
2538
2941
|
}
|
|
2539
2942
|
/**
|
|
2540
2943
|
* @return {?}
|
|
2541
2944
|
*/
|
|
2542
|
-
|
|
2543
|
-
return this
|
|
2945
|
+
clearAllDownloads() {
|
|
2946
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2947
|
+
/** @type {?} */
|
|
2948
|
+
const db = yield this.initDatabase();
|
|
2949
|
+
return new Promise((/**
|
|
2950
|
+
* @param {?} resolve
|
|
2951
|
+
* @param {?} reject
|
|
2952
|
+
* @return {?}
|
|
2953
|
+
*/
|
|
2954
|
+
(resolve, reject) => {
|
|
2955
|
+
/** @type {?} */
|
|
2956
|
+
const transaction = db.transaction([this.STORE_LESSONS], 'readwrite');
|
|
2957
|
+
/** @type {?} */
|
|
2958
|
+
const store = transaction.objectStore(this.STORE_LESSONS);
|
|
2959
|
+
/** @type {?} */
|
|
2960
|
+
const request = store.clear();
|
|
2961
|
+
request.onsuccess = (/**
|
|
2962
|
+
* @return {?}
|
|
2963
|
+
*/
|
|
2964
|
+
() => {
|
|
2965
|
+
this.refreshDownloadedLessons();
|
|
2966
|
+
resolve(true);
|
|
2967
|
+
});
|
|
2968
|
+
request.onerror = (/**
|
|
2969
|
+
* @param {?} event
|
|
2970
|
+
* @return {?}
|
|
2971
|
+
*/
|
|
2972
|
+
(event) => {
|
|
2973
|
+
reject(event.target.error);
|
|
2974
|
+
});
|
|
2975
|
+
}));
|
|
2976
|
+
});
|
|
2544
2977
|
}
|
|
2545
2978
|
/**
|
|
2546
|
-
* @param {?}
|
|
2979
|
+
* @param {?} action
|
|
2547
2980
|
* @return {?}
|
|
2548
2981
|
*/
|
|
2549
|
-
|
|
2982
|
+
queueSyncAction(action) {
|
|
2983
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2984
|
+
/** @type {?} */
|
|
2985
|
+
const db = yield this.initDatabase();
|
|
2986
|
+
return new Promise((/**
|
|
2987
|
+
* @param {?} resolve
|
|
2988
|
+
* @param {?} reject
|
|
2989
|
+
* @return {?}
|
|
2990
|
+
*/
|
|
2991
|
+
(resolve, reject) => {
|
|
2992
|
+
/** @type {?} */
|
|
2993
|
+
const transaction = db.transaction([this.STORE_SYNC_QUEUE], 'readwrite');
|
|
2994
|
+
/** @type {?} */
|
|
2995
|
+
const store = transaction.objectStore(this.STORE_SYNC_QUEUE);
|
|
2996
|
+
/** @type {?} */
|
|
2997
|
+
const syncItem = Object.assign({}, action, { createdAt: new Date() });
|
|
2998
|
+
/** @type {?} */
|
|
2999
|
+
const request = store.add(syncItem);
|
|
3000
|
+
request.onsuccess = (/**
|
|
3001
|
+
* @return {?}
|
|
3002
|
+
*/
|
|
3003
|
+
() => {
|
|
3004
|
+
console.log('[OfflineStorageService] Ação salva na fila de sincronização offline:', action);
|
|
3005
|
+
resolve();
|
|
3006
|
+
});
|
|
3007
|
+
request.onerror = (/**
|
|
3008
|
+
* @param {?} event
|
|
3009
|
+
* @return {?}
|
|
3010
|
+
*/
|
|
3011
|
+
(event) => {
|
|
3012
|
+
reject(event.target.error);
|
|
3013
|
+
});
|
|
3014
|
+
}));
|
|
3015
|
+
});
|
|
3016
|
+
}
|
|
3017
|
+
/**
|
|
3018
|
+
* @return {?}
|
|
3019
|
+
*/
|
|
3020
|
+
processSyncQueue() {
|
|
3021
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3022
|
+
/** @type {?} */
|
|
3023
|
+
const db = yield this.initDatabase();
|
|
3024
|
+
return new Promise((/**
|
|
3025
|
+
* @param {?} resolve
|
|
3026
|
+
* @param {?} reject
|
|
3027
|
+
* @return {?}
|
|
3028
|
+
*/
|
|
3029
|
+
(resolve, reject) => {
|
|
3030
|
+
/** @type {?} */
|
|
3031
|
+
const transaction = db.transaction([this.STORE_SYNC_QUEUE], 'readwrite');
|
|
3032
|
+
/** @type {?} */
|
|
3033
|
+
const store = transaction.objectStore(this.STORE_SYNC_QUEUE);
|
|
3034
|
+
/** @type {?} */
|
|
3035
|
+
const request = store.getAll();
|
|
3036
|
+
request.onsuccess = (/**
|
|
3037
|
+
* @return {?}
|
|
3038
|
+
*/
|
|
3039
|
+
() => __awaiter(this, void 0, void 0, function* () {
|
|
3040
|
+
/** @type {?} */
|
|
3041
|
+
const items = request.result || [];
|
|
3042
|
+
if (items.length === 0) {
|
|
3043
|
+
return resolve(0);
|
|
3044
|
+
}
|
|
3045
|
+
console.log(`[OfflineStorageService] Sincronizando ${items.length} itens pendentes com o servidor...`);
|
|
3046
|
+
/** @type {?} */
|
|
3047
|
+
let syncedCount = 0;
|
|
3048
|
+
for (const item of items) {
|
|
3049
|
+
try {
|
|
3050
|
+
console.log(`[OfflineStorageService] Sincronizado: ${item.endpoint}`, item.payload);
|
|
3051
|
+
syncedCount++;
|
|
3052
|
+
}
|
|
3053
|
+
catch (err) {
|
|
3054
|
+
console.error(`[OfflineStorageService] Erro ao sincronizar item ${item.id}:`, err);
|
|
3055
|
+
}
|
|
3056
|
+
}
|
|
3057
|
+
/** @type {?} */
|
|
3058
|
+
const clearTx = db.transaction([this.STORE_SYNC_QUEUE], 'readwrite');
|
|
3059
|
+
clearTx.objectStore(this.STORE_SYNC_QUEUE).clear();
|
|
3060
|
+
resolve(syncedCount);
|
|
3061
|
+
}));
|
|
3062
|
+
request.onerror = (/**
|
|
3063
|
+
* @param {?} event
|
|
3064
|
+
* @return {?}
|
|
3065
|
+
*/
|
|
3066
|
+
(event) => {
|
|
3067
|
+
reject(event.target.error);
|
|
3068
|
+
});
|
|
3069
|
+
}));
|
|
3070
|
+
});
|
|
3071
|
+
}
|
|
3072
|
+
/**
|
|
3073
|
+
* @param {?} bytes
|
|
3074
|
+
* @param {?=} decimals
|
|
3075
|
+
* @return {?}
|
|
3076
|
+
*/
|
|
3077
|
+
formatBytes(bytes, decimals = 1) {
|
|
3078
|
+
if (!bytes || bytes === 0)
|
|
3079
|
+
return '0 MB';
|
|
2550
3080
|
/** @type {?} */
|
|
2551
|
-
const
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
3081
|
+
const k = 1024;
|
|
3082
|
+
/** @type {?} */
|
|
3083
|
+
const dm = decimals < 0 ? 0 : decimals;
|
|
3084
|
+
/** @type {?} */
|
|
3085
|
+
const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
|
|
3086
|
+
/** @type {?} */
|
|
3087
|
+
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
3088
|
+
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
|
|
3089
|
+
}
|
|
3090
|
+
/**
|
|
3091
|
+
* @param {?} lessons
|
|
3092
|
+
* @return {?}
|
|
3093
|
+
*/
|
|
3094
|
+
getTotalStorageUsed(lessons) {
|
|
3095
|
+
/** @type {?} */
|
|
3096
|
+
const totalBytes = lessons.reduce((/**
|
|
3097
|
+
* @param {?} acc
|
|
3098
|
+
* @param {?} curr
|
|
3099
|
+
* @return {?}
|
|
3100
|
+
*/
|
|
3101
|
+
(acc, curr) => acc + (curr.sizeBytes || 0)), 0);
|
|
3102
|
+
return {
|
|
3103
|
+
totalBytes,
|
|
3104
|
+
formatted: this.formatBytes(totalBytes)
|
|
3105
|
+
};
|
|
2556
3106
|
}
|
|
2557
3107
|
}
|
|
2558
|
-
|
|
2559
|
-
{ type: Injectable
|
|
3108
|
+
OfflineStorageService.decorators = [
|
|
3109
|
+
{ type: Injectable, args: [{
|
|
3110
|
+
providedIn: 'root'
|
|
3111
|
+
},] }
|
|
2560
3112
|
];
|
|
2561
3113
|
/** @nocollapse */
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
{ type: HttpClient },
|
|
2565
|
-
{ type: Global }
|
|
2566
|
-
];
|
|
3114
|
+
OfflineStorageService.ctorParameters = () => [];
|
|
3115
|
+
/** @nocollapse */ OfflineStorageService.ngInjectableDef = ɵɵdefineInjectable({ factory: function OfflineStorageService_Factory() { return new OfflineStorageService(); }, token: OfflineStorageService, providedIn: "root" });
|
|
2567
3116
|
if (false) {
|
|
2568
3117
|
/**
|
|
2569
3118
|
* @type {?}
|
|
2570
3119
|
* @private
|
|
2571
3120
|
*/
|
|
2572
|
-
|
|
3121
|
+
OfflineStorageService.prototype.DB_NAME;
|
|
2573
3122
|
/**
|
|
2574
3123
|
* @type {?}
|
|
2575
3124
|
* @private
|
|
2576
3125
|
*/
|
|
2577
|
-
|
|
3126
|
+
OfflineStorageService.prototype.DB_VERSION;
|
|
3127
|
+
/**
|
|
3128
|
+
* @type {?}
|
|
3129
|
+
* @private
|
|
3130
|
+
*/
|
|
3131
|
+
OfflineStorageService.prototype.STORE_LESSONS;
|
|
3132
|
+
/**
|
|
3133
|
+
* @type {?}
|
|
3134
|
+
* @private
|
|
3135
|
+
*/
|
|
3136
|
+
OfflineStorageService.prototype.STORE_SYNC_QUEUE;
|
|
3137
|
+
/**
|
|
3138
|
+
* @type {?}
|
|
3139
|
+
* @private
|
|
3140
|
+
*/
|
|
3141
|
+
OfflineStorageService.prototype.db;
|
|
3142
|
+
/**
|
|
3143
|
+
* @type {?}
|
|
3144
|
+
* @private
|
|
3145
|
+
*/
|
|
3146
|
+
OfflineStorageService.prototype.isOnlineSubject;
|
|
2578
3147
|
/** @type {?} */
|
|
2579
|
-
|
|
3148
|
+
OfflineStorageService.prototype.isOnline$;
|
|
3149
|
+
/** @type {?} */
|
|
3150
|
+
OfflineStorageService.prototype.downloadProgress$;
|
|
3151
|
+
/** @type {?} */
|
|
3152
|
+
OfflineStorageService.prototype.downloadedLessons$;
|
|
2580
3153
|
}
|
|
2581
3154
|
|
|
2582
3155
|
/**
|
|
2583
3156
|
* @fileoverview added by tsickle
|
|
2584
|
-
* Generated from: lib/
|
|
3157
|
+
* Generated from: lib/\@core/interceptors/offline.interceptor.ts
|
|
2585
3158
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2586
3159
|
*/
|
|
2587
|
-
class
|
|
3160
|
+
class OfflineHttpInterceptor {
|
|
2588
3161
|
/**
|
|
2589
|
-
* @param {?}
|
|
2590
|
-
* @param {?} translate
|
|
3162
|
+
* @param {?} offlineService
|
|
2591
3163
|
*/
|
|
2592
|
-
constructor(
|
|
2593
|
-
this.
|
|
2594
|
-
this.translate = translate;
|
|
2595
|
-
this.event = new EventEmitter();
|
|
2596
|
-
this.progress = { percentage: 0 };
|
|
2597
|
-
this.loading = false;
|
|
3164
|
+
constructor(offlineService) {
|
|
3165
|
+
this.offlineService = offlineService;
|
|
2598
3166
|
}
|
|
2599
3167
|
/**
|
|
3168
|
+
* @param {?} request
|
|
3169
|
+
* @param {?} next
|
|
2600
3170
|
* @return {?}
|
|
2601
3171
|
*/
|
|
2602
|
-
|
|
2603
|
-
|
|
3172
|
+
intercept(request, next) {
|
|
3173
|
+
return next.handle(request).pipe(catchError((/**
|
|
3174
|
+
* @param {?} error
|
|
3175
|
+
* @return {?}
|
|
3176
|
+
*/
|
|
3177
|
+
(error) => {
|
|
3178
|
+
return this.handleOfflineFallback(request, error);
|
|
3179
|
+
})));
|
|
2604
3180
|
}
|
|
2605
3181
|
/**
|
|
3182
|
+
* @private
|
|
3183
|
+
* @param {?} request
|
|
3184
|
+
* @param {?} originalError
|
|
2606
3185
|
* @return {?}
|
|
2607
3186
|
*/
|
|
2608
|
-
|
|
2609
|
-
|
|
3187
|
+
handleOfflineFallback(request, originalError) {
|
|
3188
|
+
/** @type {?} */
|
|
3189
|
+
const url = request.url;
|
|
3190
|
+
// 1. Intercepta chamadas POST/PUT de progresso, anotações, tempo e salva na fila offline
|
|
3191
|
+
if (request.method === 'POST' || request.method === 'PUT') {
|
|
3192
|
+
if (url.includes('/progresso') ||
|
|
3193
|
+
url.includes('/tempo') ||
|
|
3194
|
+
url.includes('/multiple') ||
|
|
3195
|
+
url.includes('/anotacoes') ||
|
|
3196
|
+
url.includes('/conteudo/vote')) {
|
|
3197
|
+
/** @type {?} */
|
|
3198
|
+
let actionType = 'stage_progress';
|
|
3199
|
+
if (url.includes('/tempo')) {
|
|
3200
|
+
actionType = 'video_progress';
|
|
3201
|
+
}
|
|
3202
|
+
else if (url.includes('/anotacoes')) {
|
|
3203
|
+
actionType = 'notes';
|
|
3204
|
+
}
|
|
3205
|
+
this.offlineService.queueSyncAction({
|
|
3206
|
+
type: actionType,
|
|
3207
|
+
endpoint: url,
|
|
3208
|
+
payload: request.body || {}
|
|
3209
|
+
});
|
|
3210
|
+
console.log('[OfflineHttpInterceptor] Requisição POST/PUT interceptada e salva na fila de sincronização:', url);
|
|
3211
|
+
return of(new HttpResponse({
|
|
3212
|
+
status: 200,
|
|
3213
|
+
statusText: 'OK (Offline Queued)',
|
|
3214
|
+
body: { status: true, success: true, queued: true, message: 'Ação salva offline' }
|
|
3215
|
+
}));
|
|
3216
|
+
}
|
|
3217
|
+
}
|
|
3218
|
+
// 2. Intercepta requisições GET de conteúdo ou etapas
|
|
3219
|
+
if (request.method === 'GET') {
|
|
3220
|
+
/** @type {?} */
|
|
3221
|
+
const matches = url.match(/\/(\d+)(?:$|\/|\?)/);
|
|
3222
|
+
if (matches && matches[1]) {
|
|
3223
|
+
/** @type {?} */
|
|
3224
|
+
const id = matches[1];
|
|
3225
|
+
return from(this.offlineService.getDownloadedLesson(id)).pipe(switchMap((/**
|
|
3226
|
+
* @param {?} lesson
|
|
3227
|
+
* @return {?}
|
|
3228
|
+
*/
|
|
3229
|
+
lesson => {
|
|
3230
|
+
if (lesson) {
|
|
3231
|
+
console.log('[OfflineHttpInterceptor] Resposta offline fornecida para:', url);
|
|
3232
|
+
/** @type {?} */
|
|
3233
|
+
const dataValue = Array.isArray(lesson.stageData) ? lesson.stageData : [lesson.stageData];
|
|
3234
|
+
return of(new HttpResponse({
|
|
3235
|
+
status: 200,
|
|
3236
|
+
statusText: 'OK (Offline Cache)',
|
|
3237
|
+
body: {
|
|
3238
|
+
status: true,
|
|
3239
|
+
data: [{
|
|
3240
|
+
id: lesson.id,
|
|
3241
|
+
title: lesson.title,
|
|
3242
|
+
value: dataValue
|
|
3243
|
+
}]
|
|
3244
|
+
}
|
|
3245
|
+
}));
|
|
3246
|
+
}
|
|
3247
|
+
return throwError(originalError);
|
|
3248
|
+
})));
|
|
3249
|
+
}
|
|
3250
|
+
}
|
|
3251
|
+
return throwError(originalError);
|
|
2610
3252
|
}
|
|
3253
|
+
}
|
|
3254
|
+
OfflineHttpInterceptor.decorators = [
|
|
3255
|
+
{ type: Injectable }
|
|
3256
|
+
];
|
|
3257
|
+
/** @nocollapse */
|
|
3258
|
+
OfflineHttpInterceptor.ctorParameters = () => [
|
|
3259
|
+
{ type: OfflineStorageService }
|
|
3260
|
+
];
|
|
3261
|
+
if (false) {
|
|
2611
3262
|
/**
|
|
2612
|
-
* @
|
|
3263
|
+
* @type {?}
|
|
3264
|
+
* @private
|
|
2613
3265
|
*/
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
3266
|
+
OfflineHttpInterceptor.prototype.offlineService;
|
|
3267
|
+
}
|
|
3268
|
+
|
|
3269
|
+
/**
|
|
3270
|
+
* @fileoverview added by tsickle
|
|
3271
|
+
* Generated from: lib/shared/file-manager/models/file-manager.model.ts
|
|
3272
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3273
|
+
*/
|
|
3274
|
+
class FileManagerModel {
|
|
2617
3275
|
/**
|
|
2618
|
-
* @param {?}
|
|
3276
|
+
* @param {?} http
|
|
3277
|
+
* @param {?} global
|
|
3278
|
+
*/
|
|
3279
|
+
constructor(http, global) {
|
|
3280
|
+
this.http = http;
|
|
3281
|
+
this.global = global;
|
|
3282
|
+
this.apiBaseUrl = this.global.apiURL();
|
|
3283
|
+
}
|
|
3284
|
+
/**
|
|
3285
|
+
* @param {?} data
|
|
3286
|
+
* @return {?}
|
|
3287
|
+
*/
|
|
3288
|
+
populate(data) {
|
|
3289
|
+
return undefined;
|
|
3290
|
+
}
|
|
3291
|
+
/**
|
|
3292
|
+
* @param {?} data
|
|
3293
|
+
* @return {?}
|
|
3294
|
+
*/
|
|
3295
|
+
uploadFile(data) {
|
|
3296
|
+
/** @type {?} */
|
|
3297
|
+
const formData = new FormData();
|
|
3298
|
+
formData.append('file', data.file);
|
|
3299
|
+
formData.append('name', data.name);
|
|
3300
|
+
formData.append('description', data.description);
|
|
3301
|
+
/** @type {?} */
|
|
3302
|
+
const headerOptions = {
|
|
3303
|
+
'Authorization': localStorage.getItem('token'),
|
|
3304
|
+
'Accept': 'application/json'
|
|
3305
|
+
};
|
|
3306
|
+
/** @type {?} */
|
|
3307
|
+
const req = new HttpRequest('POST', this.apiBaseUrl + '/api/v2/admin/file', formData, {
|
|
3308
|
+
reportProgress: true,
|
|
3309
|
+
responseType: 'json',
|
|
3310
|
+
headers: new HttpHeaders(headerOptions)
|
|
3311
|
+
});
|
|
3312
|
+
return this.http.request(req);
|
|
3313
|
+
// return this.http.post(this.apiBaseUrl + '/api/v2/admin/file', data, {headers: new HttpHeaders(headerOptions)});
|
|
3314
|
+
}
|
|
3315
|
+
/**
|
|
3316
|
+
* @return {?}
|
|
3317
|
+
*/
|
|
3318
|
+
getAll() {
|
|
3319
|
+
return this.http.get(this.apiBaseUrl + '/api/v2/admin/file/all', { headers: this.getHeader() });
|
|
3320
|
+
}
|
|
3321
|
+
/**
|
|
3322
|
+
* @param {?} id
|
|
3323
|
+
* @return {?}
|
|
3324
|
+
*/
|
|
3325
|
+
deleteFile(id) {
|
|
3326
|
+
return this.http.delete(this.apiBaseUrl + '/api/v2/admin/file/' + id, { headers: this.getHeader() });
|
|
3327
|
+
}
|
|
3328
|
+
/**
|
|
3329
|
+
* @return {?}
|
|
3330
|
+
*/
|
|
3331
|
+
changeFile() {
|
|
3332
|
+
return undefined;
|
|
3333
|
+
}
|
|
3334
|
+
/**
|
|
3335
|
+
* @return {?}
|
|
3336
|
+
*/
|
|
3337
|
+
getHeader() {
|
|
3338
|
+
/** @type {?} */
|
|
3339
|
+
const token = localStorage.getItem('token');
|
|
3340
|
+
if (token) {
|
|
3341
|
+
/** @type {?} */
|
|
3342
|
+
const headerOptions = {
|
|
3343
|
+
'Authorization': token,
|
|
3344
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
3345
|
+
'Accept': 'application/json'
|
|
3346
|
+
};
|
|
3347
|
+
return new HttpHeaders(headerOptions);
|
|
3348
|
+
}
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
FileManagerModel.decorators = [
|
|
3352
|
+
{ type: Injectable }
|
|
3353
|
+
];
|
|
3354
|
+
/** @nocollapse */
|
|
3355
|
+
FileManagerModel.ctorParameters = () => [
|
|
3356
|
+
{ type: HttpClient },
|
|
3357
|
+
{ type: Global }
|
|
3358
|
+
];
|
|
3359
|
+
if (false) {
|
|
3360
|
+
/** @type {?} */
|
|
3361
|
+
FileManagerModel.prototype.file;
|
|
3362
|
+
/** @type {?} */
|
|
3363
|
+
FileManagerModel.prototype.name;
|
|
3364
|
+
/** @type {?} */
|
|
3365
|
+
FileManagerModel.prototype.description;
|
|
3366
|
+
/** @type {?} */
|
|
3367
|
+
FileManagerModel.prototype.apiBaseUrl;
|
|
3368
|
+
/**
|
|
3369
|
+
* @type {?}
|
|
3370
|
+
* @private
|
|
3371
|
+
*/
|
|
3372
|
+
FileManagerModel.prototype.http;
|
|
3373
|
+
/** @type {?} */
|
|
3374
|
+
FileManagerModel.prototype.global;
|
|
3375
|
+
}
|
|
3376
|
+
|
|
3377
|
+
/**
|
|
3378
|
+
* @fileoverview added by tsickle
|
|
3379
|
+
* Generated from: lib/shared/file-manager/services/file-manager.service.ts
|
|
3380
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3381
|
+
*/
|
|
3382
|
+
class FileManagerService {
|
|
3383
|
+
/**
|
|
3384
|
+
* @param {?} fileManagerModel
|
|
3385
|
+
* @param {?} httpClient
|
|
3386
|
+
* @param {?} global
|
|
3387
|
+
*/
|
|
3388
|
+
constructor(fileManagerModel, httpClient, global) {
|
|
3389
|
+
this.fileManagerModel = fileManagerModel;
|
|
3390
|
+
this.httpClient = httpClient;
|
|
3391
|
+
this.global = global;
|
|
3392
|
+
}
|
|
3393
|
+
/**
|
|
3394
|
+
* @param {?} data
|
|
3395
|
+
* @return {?}
|
|
3396
|
+
*/
|
|
3397
|
+
uploadFile(data) {
|
|
3398
|
+
return this.fileManagerModel.uploadFile(this.serialize(data));
|
|
3399
|
+
}
|
|
3400
|
+
/**
|
|
3401
|
+
* @param {?} id
|
|
3402
|
+
* @return {?}
|
|
3403
|
+
*/
|
|
3404
|
+
removeFile(id) {
|
|
3405
|
+
if (id) {
|
|
3406
|
+
return this.fileManagerModel.deleteFile(id);
|
|
3407
|
+
}
|
|
3408
|
+
else {
|
|
3409
|
+
return null;
|
|
3410
|
+
}
|
|
3411
|
+
}
|
|
3412
|
+
/**
|
|
3413
|
+
* @return {?}
|
|
3414
|
+
*/
|
|
3415
|
+
findFileCollection() {
|
|
3416
|
+
return this.fileManagerModel.getAll();
|
|
3417
|
+
}
|
|
3418
|
+
/**
|
|
3419
|
+
* @param {?} data
|
|
3420
|
+
* @return {?}
|
|
3421
|
+
*/
|
|
3422
|
+
serialize(data) {
|
|
3423
|
+
/** @type {?} */
|
|
3424
|
+
const fileManager = new FileManagerModel(this.httpClient, this.global);
|
|
3425
|
+
fileManager.name = data.name;
|
|
3426
|
+
fileManager.file = data;
|
|
3427
|
+
fileManager.description = data.type;
|
|
3428
|
+
return fileManager;
|
|
3429
|
+
}
|
|
3430
|
+
}
|
|
3431
|
+
FileManagerService.decorators = [
|
|
3432
|
+
{ type: Injectable }
|
|
3433
|
+
];
|
|
3434
|
+
/** @nocollapse */
|
|
3435
|
+
FileManagerService.ctorParameters = () => [
|
|
3436
|
+
{ type: FileManagerModel },
|
|
3437
|
+
{ type: HttpClient },
|
|
3438
|
+
{ type: Global }
|
|
3439
|
+
];
|
|
3440
|
+
if (false) {
|
|
3441
|
+
/**
|
|
3442
|
+
* @type {?}
|
|
3443
|
+
* @private
|
|
3444
|
+
*/
|
|
3445
|
+
FileManagerService.prototype.fileManagerModel;
|
|
3446
|
+
/**
|
|
3447
|
+
* @type {?}
|
|
3448
|
+
* @private
|
|
3449
|
+
*/
|
|
3450
|
+
FileManagerService.prototype.httpClient;
|
|
3451
|
+
/** @type {?} */
|
|
3452
|
+
FileManagerService.prototype.global;
|
|
3453
|
+
}
|
|
3454
|
+
|
|
3455
|
+
/**
|
|
3456
|
+
* @fileoverview added by tsickle
|
|
3457
|
+
* Generated from: lib/shared/file-manager/containers/file-manager/file-manager.component.ts
|
|
3458
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3459
|
+
*/
|
|
3460
|
+
class FileManagerComponent {
|
|
3461
|
+
/**
|
|
3462
|
+
* @param {?} _fileManagerService
|
|
3463
|
+
* @param {?} translate
|
|
3464
|
+
*/
|
|
3465
|
+
constructor(_fileManagerService, translate) {
|
|
3466
|
+
this._fileManagerService = _fileManagerService;
|
|
3467
|
+
this.translate = translate;
|
|
3468
|
+
this.event = new EventEmitter();
|
|
3469
|
+
this.progress = { percentage: 0 };
|
|
3470
|
+
this.loading = false;
|
|
3471
|
+
}
|
|
3472
|
+
/**
|
|
3473
|
+
* @return {?}
|
|
3474
|
+
*/
|
|
3475
|
+
ngOnInit() {
|
|
3476
|
+
this.findAll();
|
|
3477
|
+
}
|
|
3478
|
+
/**
|
|
3479
|
+
* @return {?}
|
|
3480
|
+
*/
|
|
3481
|
+
showModal() {
|
|
3482
|
+
$('#appFileManager').modal('show');
|
|
3483
|
+
}
|
|
3484
|
+
/**
|
|
3485
|
+
* @return {?}
|
|
3486
|
+
*/
|
|
3487
|
+
closeModal() {
|
|
3488
|
+
$('#appFileManager').modal('hide');
|
|
3489
|
+
}
|
|
3490
|
+
/**
|
|
3491
|
+
* @param {?} $event
|
|
2619
3492
|
* @return {?}
|
|
2620
3493
|
*/
|
|
2621
3494
|
onChange($event) {
|
|
@@ -3134,7 +4007,11 @@ class TrailContentService {
|
|
|
3134
4007
|
* @return {?}
|
|
3135
4008
|
*/
|
|
3136
4009
|
all(id) {
|
|
3137
|
-
return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/conteudo/multiple/' + id, this.getHeaders())
|
|
4010
|
+
return this.http.get(this.global.apiURL() + '/api/v2/client/trilha/conteudo/multiple/' + id, this.getHeaders()).pipe(catchError((/**
|
|
4011
|
+
* @param {?} err
|
|
4012
|
+
* @return {?}
|
|
4013
|
+
*/
|
|
4014
|
+
err => of({ data: [] }))));
|
|
3138
4015
|
}
|
|
3139
4016
|
/**
|
|
3140
4017
|
* @param {?} id
|
|
@@ -3220,53 +4097,260 @@ class VideoComponent {
|
|
|
3220
4097
|
/**
|
|
3221
4098
|
* @param {?} sanitizer
|
|
3222
4099
|
* @param {?} _trailContentService
|
|
4100
|
+
* @param {?} offlineService
|
|
4101
|
+
* @param {?} cdr
|
|
3223
4102
|
*/
|
|
3224
|
-
constructor(sanitizer, _trailContentService) {
|
|
4103
|
+
constructor(sanitizer, _trailContentService, offlineService, cdr) {
|
|
3225
4104
|
this.sanitizer = sanitizer;
|
|
3226
4105
|
this._trailContentService = _trailContentService;
|
|
4106
|
+
this.offlineService = offlineService;
|
|
4107
|
+
this.cdr = cdr;
|
|
3227
4108
|
this.event = new EventEmitter();
|
|
3228
4109
|
this.videoTime = new EventEmitter();
|
|
3229
4110
|
this.play = false;
|
|
4111
|
+
this.offlineUrl = null;
|
|
4112
|
+
this.isOnline = navigator.onLine;
|
|
3230
4113
|
this.timeLapse = 0;
|
|
3231
|
-
this.disableNextButton =
|
|
4114
|
+
this.disableNextButton = false;
|
|
3232
4115
|
this.loadYT();
|
|
3233
4116
|
console.log("ITEM:", this.item);
|
|
3234
4117
|
}
|
|
3235
4118
|
/**
|
|
3236
4119
|
* @return {?}
|
|
3237
4120
|
*/
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
'host': 'http://www.youtube.com'
|
|
3250
|
-
};
|
|
4121
|
+
isAllowNext() {
|
|
4122
|
+
return Boolean(this.item && this.item.allowNext);
|
|
4123
|
+
}
|
|
4124
|
+
/**
|
|
4125
|
+
* @param {?} changes
|
|
4126
|
+
* @return {?}
|
|
4127
|
+
*/
|
|
4128
|
+
ngOnChanges(changes) {
|
|
4129
|
+
if (changes['id'] || changes['item']) {
|
|
4130
|
+
this.disableNextButton = this.isAllowNext();
|
|
4131
|
+
this.loadOfflineVideo();
|
|
3251
4132
|
}
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
4133
|
+
}
|
|
4134
|
+
/**
|
|
4135
|
+
* @return {?}
|
|
4136
|
+
*/
|
|
4137
|
+
loadOfflineVideo() {
|
|
4138
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4139
|
+
this.offlineUrl = null;
|
|
4140
|
+
if (this.id) {
|
|
4141
|
+
/** @type {?} */
|
|
4142
|
+
const isDownloaded = yield this.offlineService.isLessonDownloaded(this.id);
|
|
4143
|
+
if (isDownloaded) {
|
|
4144
|
+
if (this.videoMonitor) {
|
|
4145
|
+
clearInterval(this.videoMonitor);
|
|
4146
|
+
}
|
|
4147
|
+
this.player = null;
|
|
4148
|
+
/** @type {?} */
|
|
4149
|
+
const url = yield this.offlineService.getOfflineVideoUrl(this.id);
|
|
4150
|
+
if (url) {
|
|
4151
|
+
// Sanitização fundamental para remover 'unsafe:' no Angular
|
|
4152
|
+
this.offlineUrl = (/** @type {?} */ (this.sanitizer.bypassSecurityTrustResourceUrl(url)));
|
|
4153
|
+
this.play = true;
|
|
4154
|
+
this.disableNextButton = this.isAllowNext();
|
|
4155
|
+
console.log('[VideoComponent] Aula baixada offline ativa: URL sanitizada com sucesso:', url);
|
|
4156
|
+
this.cdr.detectChanges();
|
|
4157
|
+
setTimeout((/**
|
|
4158
|
+
* @return {?}
|
|
4159
|
+
*/
|
|
4160
|
+
() => {
|
|
4161
|
+
if (this.video && this.video.nativeElement) {
|
|
4162
|
+
this.video.nativeElement.load();
|
|
4163
|
+
}
|
|
4164
|
+
}), 50);
|
|
4165
|
+
}
|
|
4166
|
+
return;
|
|
4167
|
+
}
|
|
4168
|
+
}
|
|
4169
|
+
if (this.item && this.item.source !== 'stream' && !this.offlineUrl && navigator.onLine) {
|
|
4170
|
+
this.initOnlinePlayer();
|
|
4171
|
+
}
|
|
4172
|
+
});
|
|
4173
|
+
}
|
|
4174
|
+
/**
|
|
4175
|
+
* @return {?}
|
|
4176
|
+
*/
|
|
4177
|
+
loadVimeoSdk() {
|
|
4178
|
+
return new Promise((/**
|
|
4179
|
+
* @param {?} resolve
|
|
4180
|
+
* @return {?}
|
|
4181
|
+
*/
|
|
4182
|
+
(resolve) => {
|
|
4183
|
+
if (typeof window !== 'undefined' && window['Vimeo'] && window['Vimeo'].Player) {
|
|
4184
|
+
resolve(window['Vimeo']);
|
|
4185
|
+
return;
|
|
4186
|
+
}
|
|
4187
|
+
if (typeof document !== 'undefined') {
|
|
4188
|
+
/** @type {?} */
|
|
4189
|
+
const existingScript = document.getElementById('vimeo-player-sdk');
|
|
4190
|
+
if (existingScript) {
|
|
4191
|
+
existingScript.addEventListener('load', (/**
|
|
4192
|
+
* @return {?}
|
|
4193
|
+
*/
|
|
4194
|
+
() => resolve(window['Vimeo'])));
|
|
4195
|
+
if (window['Vimeo']) {
|
|
4196
|
+
resolve(window['Vimeo']);
|
|
4197
|
+
}
|
|
4198
|
+
return;
|
|
4199
|
+
}
|
|
4200
|
+
/** @type {?} */
|
|
4201
|
+
const script = document.createElement('script');
|
|
4202
|
+
script.id = 'vimeo-player-sdk';
|
|
4203
|
+
script.src = 'https://player.vimeo.com/api/player.js';
|
|
4204
|
+
script.async = true;
|
|
4205
|
+
script.onload = (/**
|
|
4206
|
+
* @return {?}
|
|
4207
|
+
*/
|
|
4208
|
+
() => resolve(window['Vimeo']));
|
|
4209
|
+
document.body.appendChild(script);
|
|
4210
|
+
}
|
|
4211
|
+
}));
|
|
4212
|
+
}
|
|
4213
|
+
/**
|
|
4214
|
+
* @return {?}
|
|
4215
|
+
*/
|
|
4216
|
+
isVimeoSource() {
|
|
4217
|
+
if (!this.item) {
|
|
4218
|
+
return false;
|
|
4219
|
+
}
|
|
4220
|
+
/** @type {?} */
|
|
4221
|
+
const source = (this.item.source || '').toLowerCase();
|
|
4222
|
+
/** @type {?} */
|
|
4223
|
+
const sourcePath = String(this.item.source_path || '').toLowerCase();
|
|
4224
|
+
/** @type {?} */
|
|
4225
|
+
const link = String(this.item.link || '').toLowerCase();
|
|
4226
|
+
return source === 'vimeo' || sourcePath.includes('vimeo') || link.includes('vimeo');
|
|
4227
|
+
}
|
|
4228
|
+
/**
|
|
4229
|
+
* @return {?}
|
|
4230
|
+
*/
|
|
4231
|
+
initVimeoPlayer() {
|
|
4232
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4233
|
+
this.disableNextButton = this.isAllowNext();
|
|
4234
|
+
this.cdr.detectChanges();
|
|
4235
|
+
yield this.loadVimeoSdk();
|
|
4236
|
+
/** @type {?} */
|
|
4237
|
+
const iframe = (/** @type {?} */ (document.querySelector('#iframe_vimeo')));
|
|
4238
|
+
if (iframe && window['Vimeo']) {
|
|
4239
|
+
try {
|
|
4240
|
+
this.player = new window['Vimeo'].Player(iframe);
|
|
4241
|
+
this.player.on('timeupdate', (/**
|
|
4242
|
+
* @param {?} event
|
|
4243
|
+
* @return {?}
|
|
4244
|
+
*/
|
|
4245
|
+
(event) => {
|
|
4246
|
+
/** @type {?} */
|
|
4247
|
+
const seconds = event.seconds || 0;
|
|
4248
|
+
/** @type {?} */
|
|
4249
|
+
const duration = event.duration || 1;
|
|
4250
|
+
/** @type {?} */
|
|
4251
|
+
const videoProgress = (seconds / duration) * 100;
|
|
4252
|
+
/** @type {?} */
|
|
4253
|
+
const time = {
|
|
4254
|
+
current: seconds,
|
|
4255
|
+
duration: duration,
|
|
4256
|
+
progress: videoProgress,
|
|
4257
|
+
id: this.id
|
|
4258
|
+
};
|
|
4259
|
+
if (this.isAllowNext()) {
|
|
4260
|
+
if (videoProgress >= 95) {
|
|
4261
|
+
this.disableNextButton = false;
|
|
4262
|
+
}
|
|
4263
|
+
}
|
|
4264
|
+
else {
|
|
4265
|
+
this.disableNextButton = false;
|
|
4266
|
+
}
|
|
4267
|
+
this.videoTime.emit(time);
|
|
4268
|
+
this.cdr.detectChanges();
|
|
4269
|
+
}));
|
|
4270
|
+
this.player.on('ended', (/**
|
|
4271
|
+
* @return {?}
|
|
4272
|
+
*/
|
|
4273
|
+
() => {
|
|
4274
|
+
this.disableNextButton = false;
|
|
4275
|
+
this.videoTime.emit({
|
|
4276
|
+
current: 100,
|
|
4277
|
+
duration: 100,
|
|
4278
|
+
progress: 100,
|
|
4279
|
+
id: this.id
|
|
4280
|
+
});
|
|
4281
|
+
this.cdr.detectChanges();
|
|
4282
|
+
}));
|
|
4283
|
+
}
|
|
4284
|
+
catch (err) {
|
|
4285
|
+
console.error('[VideoComponent] Erro ao inicializar Vimeo.Player:', err);
|
|
4286
|
+
}
|
|
4287
|
+
}
|
|
4288
|
+
});
|
|
4289
|
+
}
|
|
4290
|
+
/**
|
|
4291
|
+
* @private
|
|
4292
|
+
* @return {?}
|
|
4293
|
+
*/
|
|
4294
|
+
initOnlinePlayer() {
|
|
4295
|
+
if (this.videoMonitor) {
|
|
4296
|
+
clearInterval(this.videoMonitor);
|
|
4297
|
+
}
|
|
4298
|
+
this.videoMonitor = setInterval((/**
|
|
4299
|
+
* @return {?}
|
|
4300
|
+
*/
|
|
4301
|
+
() => {
|
|
4302
|
+
this.idVideo = this.youtubeParserID(this.item.source_path || this.item.link);
|
|
4303
|
+
/** @type {?} */
|
|
4304
|
+
const divPlayer = document.getElementById('video_player');
|
|
4305
|
+
if (divPlayer && !this.player && !this.offlineUrl) {
|
|
4306
|
+
clearInterval(this.videoMonitor);
|
|
4307
|
+
if (this.item.source === 'youtube') {
|
|
4308
|
+
if (!this.item.poster) {
|
|
4309
|
+
this.playYoutubeVideo();
|
|
4310
|
+
}
|
|
4311
|
+
}
|
|
4312
|
+
else if (this.isVimeoSource()) {
|
|
4313
|
+
console.log('VideoComponent: Type -> Vimeo');
|
|
4314
|
+
this.initVimeoPlayer();
|
|
4315
|
+
}
|
|
4316
|
+
}
|
|
4317
|
+
}), 1000);
|
|
4318
|
+
}
|
|
4319
|
+
/**
|
|
4320
|
+
* @return {?}
|
|
4321
|
+
*/
|
|
4322
|
+
loadYT() {
|
|
4323
|
+
/** @type {?} */
|
|
4324
|
+
let YTConfig;
|
|
4325
|
+
if (!window['YT']) {
|
|
4326
|
+
window['YT'] = {
|
|
4327
|
+
loading: 0,
|
|
4328
|
+
loaded: 0
|
|
4329
|
+
};
|
|
4330
|
+
}
|
|
4331
|
+
if (!window['YTConfig']) {
|
|
4332
|
+
YTConfig = {
|
|
4333
|
+
'host': 'http://www.youtube.com'
|
|
4334
|
+
};
|
|
4335
|
+
}
|
|
4336
|
+
if (!window['YT'].loading) {
|
|
4337
|
+
window['YT'].loading = 1;
|
|
4338
|
+
/** @type {?} */
|
|
4339
|
+
const l = [];
|
|
4340
|
+
window['YT'].ready = (/**
|
|
4341
|
+
* @param {?} f
|
|
4342
|
+
* @return {?}
|
|
4343
|
+
*/
|
|
4344
|
+
function (f) {
|
|
4345
|
+
if (window['YT'].loaded) {
|
|
4346
|
+
f();
|
|
4347
|
+
}
|
|
4348
|
+
else {
|
|
4349
|
+
l.push(f);
|
|
4350
|
+
}
|
|
4351
|
+
});
|
|
4352
|
+
window['onYTReady'] = (/**
|
|
4353
|
+
* @return {?}
|
|
3270
4354
|
*/
|
|
3271
4355
|
function () {
|
|
3272
4356
|
window['YT'].loaded = 1;
|
|
@@ -3315,73 +4399,47 @@ class VideoComponent {
|
|
|
3315
4399
|
ngOnInit() {
|
|
3316
4400
|
console.log('VideoComponent: CONTENT ->', this.content);
|
|
3317
4401
|
console.log('VideoComponent: ITEM ->', this.item);
|
|
4402
|
+
this.disableNextButton = this.isAllowNext();
|
|
4403
|
+
this.offlineService.isOnline$.subscribe((/**
|
|
4404
|
+
* @param {?} online
|
|
4405
|
+
* @return {?}
|
|
4406
|
+
*/
|
|
4407
|
+
online => {
|
|
4408
|
+
this.isOnline = online;
|
|
4409
|
+
}));
|
|
4410
|
+
this.loadOfflineVideo();
|
|
3318
4411
|
if (this.id) {
|
|
3319
|
-
this.
|
|
3320
|
-
* @param {?}
|
|
3321
|
-
* @return {?}
|
|
3322
|
-
*/
|
|
3323
|
-
(res) => {
|
|
3324
|
-
console.log('RESPONSE', res);
|
|
3325
|
-
/** @type {?} */
|
|
3326
|
-
const check = res.data.find((/**
|
|
3327
|
-
* @param {?} item
|
|
3328
|
-
* @return {?}
|
|
3329
|
-
*/
|
|
3330
|
-
(item) => {
|
|
3331
|
-
return item.value.type === 'video';
|
|
3332
|
-
}));
|
|
3333
|
-
if (check) {
|
|
3334
|
-
this.contentId = check.id;
|
|
3335
|
-
this.notes = check.value.notes;
|
|
3336
|
-
}
|
|
3337
|
-
}));
|
|
3338
|
-
}
|
|
3339
|
-
if (this.item.source !== 'stream') {
|
|
3340
|
-
this.videoMonitor = setInterval((/**
|
|
4412
|
+
this.offlineService.isLessonDownloaded(this.id).then((/**
|
|
4413
|
+
* @param {?} isDownloaded
|
|
3341
4414
|
* @return {?}
|
|
3342
4415
|
*/
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
this.playYoutubeVideo();
|
|
3352
|
-
}
|
|
3353
|
-
}
|
|
3354
|
-
else if (this.item.source === 'vimeo') {
|
|
3355
|
-
this.disableNextButton = true;
|
|
3356
|
-
console.log('VideoComponent: Type -> Vimeo');
|
|
4416
|
+
isDownloaded => {
|
|
4417
|
+
if (!isDownloaded && navigator.onLine) {
|
|
4418
|
+
this._trailContentService.all(this.id).subscribe((/**
|
|
4419
|
+
* @param {?} res
|
|
4420
|
+
* @return {?}
|
|
4421
|
+
*/
|
|
4422
|
+
(res) => {
|
|
4423
|
+
console.log('RESPONSE', res);
|
|
3357
4424
|
/** @type {?} */
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
this.player = new Vimeo.Player(iframe);
|
|
3361
|
-
this.player.on('timeupdate', ((/**
|
|
3362
|
-
* @param {?} event
|
|
4425
|
+
const check = res.data.find((/**
|
|
4426
|
+
* @param {?} item
|
|
3363
4427
|
* @return {?}
|
|
3364
4428
|
*/
|
|
3365
|
-
(
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
this.videoTime.emit(time);
|
|
3378
|
-
if (videoProgress >= 100) {
|
|
3379
|
-
clearInterval(this.timeLapseTimer);
|
|
3380
|
-
}
|
|
3381
|
-
})));
|
|
3382
|
-
}
|
|
4429
|
+
(item) => {
|
|
4430
|
+
return item.value.type === 'video';
|
|
4431
|
+
}));
|
|
4432
|
+
if (check) {
|
|
4433
|
+
this.contentId = check.id;
|
|
4434
|
+
this.notes = check.value.notes;
|
|
4435
|
+
}
|
|
4436
|
+
}), (/**
|
|
4437
|
+
* @param {?} err
|
|
4438
|
+
* @return {?}
|
|
4439
|
+
*/
|
|
4440
|
+
err => { }));
|
|
3383
4441
|
}
|
|
3384
|
-
})
|
|
4442
|
+
}));
|
|
3385
4443
|
}
|
|
3386
4444
|
}
|
|
3387
4445
|
/**
|
|
@@ -3397,7 +4455,7 @@ class VideoComponent {
|
|
|
3397
4455
|
* @return {?}
|
|
3398
4456
|
*/
|
|
3399
4457
|
playYoutubeVideo(autoplay = 0) {
|
|
3400
|
-
this.disableNextButton =
|
|
4458
|
+
this.disableNextButton = this.isAllowNext();
|
|
3401
4459
|
console.log('Type -> Youtube');
|
|
3402
4460
|
/** @type {?} */
|
|
3403
4461
|
const YT = window['YT'];
|
|
@@ -3405,12 +4463,12 @@ class VideoComponent {
|
|
|
3405
4463
|
videoId: this.idVideo,
|
|
3406
4464
|
playerVars: {
|
|
3407
4465
|
'autoplay': autoplay,
|
|
3408
|
-
'controls': (this.item.showVideoControl) ? 1 : 0,
|
|
4466
|
+
'controls': (this.item && this.item.showVideoControl) ? 1 : 0,
|
|
3409
4467
|
'showinfo': 0,
|
|
3410
4468
|
// <- This part here
|
|
3411
4469
|
'playsinline': 1,
|
|
3412
4470
|
'enablejsapi': 1,
|
|
3413
|
-
'poster': this.item.poster,
|
|
4471
|
+
'poster': this.item ? this.item.poster : null,
|
|
3414
4472
|
'rel': 0,
|
|
3415
4473
|
'loop': 1
|
|
3416
4474
|
},
|
|
@@ -3435,7 +4493,12 @@ class VideoComponent {
|
|
|
3435
4493
|
};
|
|
3436
4494
|
/** @type {?} */
|
|
3437
4495
|
const videoProgress = (time.current / time.duration) * 100;
|
|
3438
|
-
this.
|
|
4496
|
+
if (this.isAllowNext()) {
|
|
4497
|
+
this.disableNextButton = (videoProgress < 90);
|
|
4498
|
+
}
|
|
4499
|
+
else {
|
|
4500
|
+
this.disableNextButton = false;
|
|
4501
|
+
}
|
|
3439
4502
|
this.videoTime.emit(time);
|
|
3440
4503
|
if (videoProgress >= 100) {
|
|
3441
4504
|
clearInterval(this.timeLapseTimer);
|
|
@@ -3465,6 +4528,14 @@ class VideoComponent {
|
|
|
3465
4528
|
() => {
|
|
3466
4529
|
this.showSaved = false;
|
|
3467
4530
|
}), 1000);
|
|
4531
|
+
if (!navigator.onLine) {
|
|
4532
|
+
this.offlineService.queueSyncAction({
|
|
4533
|
+
type: 'notes',
|
|
4534
|
+
endpoint: '/api/v2/client/ambiente-virtual/anotacoes',
|
|
4535
|
+
payload: { id: this.id, data: data }
|
|
4536
|
+
});
|
|
4537
|
+
return;
|
|
4538
|
+
}
|
|
3468
4539
|
if (this.contentId) {
|
|
3469
4540
|
this._trailContentService.update(this.contentId, data).subscribe((/**
|
|
3470
4541
|
* @param {?} res
|
|
@@ -3472,7 +4543,11 @@ class VideoComponent {
|
|
|
3472
4543
|
*/
|
|
3473
4544
|
(res) => {
|
|
3474
4545
|
console.log(res);
|
|
3475
|
-
})
|
|
4546
|
+
}), (/**
|
|
4547
|
+
* @param {?} err
|
|
4548
|
+
* @return {?}
|
|
4549
|
+
*/
|
|
4550
|
+
err => { }));
|
|
3476
4551
|
}
|
|
3477
4552
|
else {
|
|
3478
4553
|
this._trailContentService.save(this.id, data).subscribe((/**
|
|
@@ -3482,7 +4557,11 @@ class VideoComponent {
|
|
|
3482
4557
|
(res) => {
|
|
3483
4558
|
this.contentId = res.data.id;
|
|
3484
4559
|
console.log(res);
|
|
3485
|
-
})
|
|
4560
|
+
}), (/**
|
|
4561
|
+
* @param {?} err
|
|
4562
|
+
* @return {?}
|
|
4563
|
+
*/
|
|
4564
|
+
err => { }));
|
|
3486
4565
|
}
|
|
3487
4566
|
}
|
|
3488
4567
|
/**
|
|
@@ -3508,7 +4587,12 @@ class VideoComponent {
|
|
|
3508
4587
|
};
|
|
3509
4588
|
/** @type {?} */
|
|
3510
4589
|
const videoProgress = Math.round((time.current / time.duration) * 100);
|
|
3511
|
-
this.
|
|
4590
|
+
if (this.isAllowNext()) {
|
|
4591
|
+
this.disableNextButton = (videoProgress < 90);
|
|
4592
|
+
}
|
|
4593
|
+
else {
|
|
4594
|
+
this.disableNextButton = false;
|
|
4595
|
+
}
|
|
3512
4596
|
this.videoTime.emit(time);
|
|
3513
4597
|
this.seconds = seconds;
|
|
3514
4598
|
}
|
|
@@ -3581,19 +4665,30 @@ class VideoComponent {
|
|
|
3581
4665
|
* @return {?}
|
|
3582
4666
|
*/
|
|
3583
4667
|
getVimeoID(url) {
|
|
4668
|
+
if (!url) {
|
|
4669
|
+
return '';
|
|
4670
|
+
}
|
|
4671
|
+
if (typeof url !== 'string') {
|
|
4672
|
+
url = String(url);
|
|
4673
|
+
}
|
|
4674
|
+
/** @type {?} */
|
|
4675
|
+
const regExp = /(?:vimeo\.com\/video\/|vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/[^\/]*\/videos\/|album\/\d+\/video\/|)|player\.vimeo\.com\/video\/)(\d+)/;
|
|
4676
|
+
/** @type {?} */
|
|
4677
|
+
const match = url.match(regExp);
|
|
4678
|
+
if (match && match[1]) {
|
|
4679
|
+
return match[1];
|
|
4680
|
+
}
|
|
3584
4681
|
/** @type {?} */
|
|
3585
|
-
const
|
|
4682
|
+
const fallback = /vimeo.*?(\d{7,12})/;
|
|
3586
4683
|
/** @type {?} */
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
console.log(urlResult[4]);
|
|
3590
|
-
return urlResult[4];
|
|
4684
|
+
const fallbackMatch = url.match(fallback);
|
|
4685
|
+
return (fallbackMatch && fallbackMatch[1]) ? fallbackMatch[1] : '';
|
|
3591
4686
|
}
|
|
3592
4687
|
}
|
|
3593
4688
|
VideoComponent.decorators = [
|
|
3594
4689
|
{ type: Component, args: [{
|
|
3595
4690
|
selector: 'app-editor-component-video',
|
|
3596
|
-
template: "<div class=\"p-4\" [ngStyle]=\"{'background': item.background}\">\r\n <app-editor-component-shared-title [title]=\"item.title\"></app-editor-component-shared-title>\r\n\r\n <app-editor-component-shared-subtitle [subtitle]=\"item.subTitle\"></app-editor-component-shared-subtitle>\r\n\r\n <div class=\"col-md-12\" class=\"stage-video\">\r\n\r\n <div class=\"row\">\r\n <div class=\"col-sm-12\">\r\n <div class=\"item-component-image-icon-container\" *ngIf=\"!item.source_path\">\r\n <img src=\"https://image.flaticon.com/icons/svg/1376/1376786.svg\" width=\"15%\" alt=\"\">\r\n <h3>{{ 'VideoNotCurrentlyAvailableComeBackLaterAndTryAgain' | translate }}</h3>\r\n </div>\r\n <div *ngIf=\"item.source_path\">\r\n\r\n <div class=\"media\" *ngIf=\"['stream','cloudinary'].includes(item.source)\">\r\n\r\n <div *ngIf=\"!play\" class=\"cover-video\"\r\n [style.backgroundImage]=\"(item.poster ? ('url(' + item.poster + ')' | safeUrl:'style') : false) || (item.source_path | stream:'styleThumbUrl')\">\r\n <div class=\"filter\"></div>\r\n\r\n <div *ngIf=\"!play\" class=\"real-cover\"\r\n [style.backgroundImage]=\"(item.poster ? ('url(' + item.poster + ')' | safeUrl:'style') : false) || (item.source_path | stream:'styleThumbUrl')\">\r\n </div>\r\n\r\n <div class=\"icon-play\" (click)=\"goPlay()\">\r\n <img src=\"./assets/img/play.png\" alt=\"\">\r\n </div>\r\n </div>\r\n\r\n <ng-container *ngIf=\"play\">\r\n <video class=\"video\" *ngIf=\"item.showVideoControl\" controls controlsList=\"nodownload\" #video\r\n (timeupdate)=\"setCurrentTime($event)\" onclick=\"this.paused ? this.play() : this.pause();\">\r\n <source [src]=\"item.source_path | stream:'link'\" type=\"video/mp4\">\r\n {{ 'YourBrowserDoesNotSupportHTML5Video' | translate }}\r\n </video>\r\n\r\n <video class=\"video\" *ngIf=\"!item.showVideoControl || item.showVideoControl == 'undefined'\"\r\n controlsList=\"nodownload\" #video (timeupdate)=\"setCurrentTime($event)\"\r\n onclick=\"this.paused ? this.play() : this.pause();\">\r\n <source [src]=\"item.source_path | stream:'link'\" type=\"video/mp4\">\r\n {{ 'YourBrowserDoesNotSupportHTML5Video' | translate }}\r\n </video>\r\n </ng-container>\r\n\r\n </div>\r\n\r\n <div class=\"media\" *ngIf=\"item.source === 'file'\">\r\n <video class=\"video\" *ngIf=\"item.showVideoControl\" controls=\"true\" controlsList=\"nodownload\"\r\n poster=\"{{ item.source_path | stream:'thumb' }}\" #video (timeupdate)=\"setCurrentTime($event)\">\r\n <source [src]=\"item.link\" type=\"video/mp4\">\r\n {{ 'YourBrowserDoesNotSupportHTML5Video' | translate }}\r\n </video>\r\n\r\n <video class=\"video\" *ngIf=\"!item.showVideoControl || item.showVideoControl == 'undefined'\"\r\n poster=\"{{ item.source_path | stream:'thumb' }}\" SScontrolsList=\"nodownload\" #video\r\n (timeupdate)=\"setCurrentTime($event)\" onclick=\"this.paused ? this.play() : this.pause();\">\r\n <source [src]=\"item.link\" type=\"video/mp4\">\r\n {{ 'YourBrowserDoesNotSupportHTML5Video' | translate }}\r\n </video>\r\n </div>\r\n\r\n <div class=\"media\" *ngIf=\"item.source == 'youtube' || item.source == 'vimeo'\">\r\n <!-- <iframe *ngIf=\"item.source === 'vimeo'\" id=\"video_player\" [src]=\"item.link\" width=\"100%\" height=\"320px\" frameborder=\"0\" allowfullscreen></iframe> -->\r\n <div *ngIf=\"item.source == 'vimeo'\" id=\"video_player\" style=\"width: 100%; height: 100%\">\r\n <iframe [src]=\"item.source_path | vimeoEmbed | safeUrl:'resourceUrl'\" width=\"100%\" height=\"100%\"\r\n frameborder=\"0\" id=\"iframe_vimeo\" allowfullscreen allow=\"autoplay; encrypted-media\"></iframe>\r\n </div>\r\n <div class=\"video\" *ngIf=\"item.source == 'youtube'\" id=\"video_player\">\r\n <img *ngIf=\"item.poster\" class=\"cursor-pointer\" (click)=\"playYoutubeVideo(1)\" width=\"100%\" height=\"100%\" [src]=\"item.poster\" />\r\n </div>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"item.button.hide\" class=\"text-center\" style=\"margin: 30px 0;\">\r\n <div *ngIf=\"item.allowNext\" class=\"alert alert-warning mb-3 text-left d-block d-sm-none\" role=\"alert\">\r\n <i class=\"bi bi-lightbulb mr-2\"></i>\r\n Assista o v\u00EDdeo at\u00E9 o final para <strong>desbloquear o avan\u00E7o</strong>.\r\n </div>\r\n <
|
|
4691
|
+
template: "<div class=\"p-4\" [ngStyle]=\"{'background': item.background}\">\r\n <app-editor-component-shared-title [title]=\"item.title\"></app-editor-component-shared-title>\r\n\r\n <app-editor-component-shared-subtitle [subtitle]=\"item.subTitle\"></app-editor-component-shared-subtitle>\r\n\r\n <div class=\"col-md-12\" class=\"stage-video\">\r\n\r\n <div class=\"row\">\r\n <div class=\"col-sm-12\">\r\n <div class=\"item-component-image-icon-container\" *ngIf=\"!item.source_path && !offlineUrl\">\r\n <img src=\"https://image.flaticon.com/icons/svg/1376/1376786.svg\" width=\"15%\" alt=\"\">\r\n <h3>{{ 'VideoNotCurrentlyAvailableComeBackLaterAndTryAgain' | translate }}</h3>\r\n </div>\r\n <div *ngIf=\"item.source_path || offlineUrl\">\r\n\r\n <!-- Player Offline Local -->\r\n <div class=\"media\" *ngIf=\"offlineUrl\">\r\n <video class=\"video\" controls controlsList=\"nodownload\" [src]=\"offlineUrl\" #video\r\n (timeupdate)=\"setCurrentTime($event)\" style=\"width: 100%; min-height: 380px; max-height: 540px; background: #000; border-radius: 8px;\">\r\n {{ 'YourBrowserDoesNotSupportHTML5Video' | translate }}\r\n </video>\r\n </div>\r\n\r\n <!-- Aviso de V\u00EDdeo Vimeo/Embed quando offline sem bin\u00E1rio direto -->\r\n <div class=\"alert alert-info my-3 text-center\" *ngIf=\"!offlineUrl && !isOnline && (item.source == 'vimeo' || item.source == 'youtube')\" style=\"border-radius: 12px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; padding: 20px;\">\r\n <i class=\"material-icons\" style=\"font-size: 32px; color: #16a34a; vertical-align: middle;\">offline_pin</i>\r\n <h5 class=\"mt-2 mb-1\" style=\"font-weight: 700;\">Aula Salva no Modo Offline</h5>\r\n <p class=\"mb-0\" style=\"font-size: 0.85rem; color: #15803d;\">\r\n A estrutura, etapas e progresso desta aula est\u00E3o armazenados localmente no seu dispositivo.\r\n <br><em>(Os players embutidos do Vimeo/YouTube funcionam com conex\u00E3o ou quando o link direto de v\u00EDdeo MP4/Stream for provido pela plataforma).</em>\r\n </p>\r\n </div>\r\n\r\n <div class=\"media\" *ngIf=\"['stream','cloudinary'].includes(item.source) && !offlineUrl\">\r\n\r\n <div *ngIf=\"!play\" class=\"cover-video\"\r\n [style.backgroundImage]=\"(item.poster ? ('url(' + item.poster + ')' | safeUrl:'style') : false) || (item.source_path | stream:'styleThumbUrl')\">\r\n <div class=\"filter\"></div>\r\n\r\n <div *ngIf=\"!play\" class=\"real-cover\"\r\n [style.backgroundImage]=\"(item.poster ? ('url(' + item.poster + ')' | safeUrl:'style') : false) || (item.source_path | stream:'styleThumbUrl')\">\r\n </div>\r\n\r\n <div class=\"icon-play\" (click)=\"goPlay()\">\r\n <img src=\"./assets/img/play.png\" alt=\"\">\r\n </div>\r\n </div>\r\n\r\n <ng-container *ngIf=\"play\">\r\n <video class=\"video\" *ngIf=\"item.showVideoControl\" controls controlsList=\"nodownload\" #video\r\n (timeupdate)=\"setCurrentTime($event)\" onclick=\"this.paused ? this.play() : this.pause();\">\r\n <source [src]=\"item.source_path | stream:'link'\" type=\"video/mp4\">\r\n {{ 'YourBrowserDoesNotSupportHTML5Video' | translate }}\r\n </video>\r\n\r\n <video class=\"video\" *ngIf=\"!item.showVideoControl || item.showVideoControl == 'undefined'\"\r\n controlsList=\"nodownload\" #video (timeupdate)=\"setCurrentTime($event)\"\r\n onclick=\"this.paused ? this.play() : this.pause();\">\r\n <source [src]=\"item.source_path | stream:'link'\" type=\"video/mp4\">\r\n {{ 'YourBrowserDoesNotSupportHTML5Video' | translate }}\r\n </video>\r\n </ng-container>\r\n\r\n </div>\r\n\r\n <div class=\"media\" *ngIf=\"item.source === 'file' && !offlineUrl\">\r\n <video class=\"video\" *ngIf=\"item.showVideoControl\" controls=\"true\" controlsList=\"nodownload\"\r\n poster=\"{{ item.source_path | stream:'thumb' }}\" #video (timeupdate)=\"setCurrentTime($event)\">\r\n <source [src]=\"item.link\" type=\"video/mp4\">\r\n {{ 'YourBrowserDoesNotSupportHTML5Video' | translate }}\r\n </video>\r\n\r\n <video class=\"video\" *ngIf=\"!item.showVideoControl || item.showVideoControl == 'undefined'\"\r\n poster=\"{{ item.source_path | stream:'thumb' }}\" SScontrolsList=\"nodownload\" #video\r\n (timeupdate)=\"setCurrentTime($event)\" onclick=\"this.paused ? this.play() : this.pause();\">\r\n <source [src]=\"item.link\" type=\"video/mp4\">\r\n {{ 'YourBrowserDoesNotSupportHTML5Video' | translate }}\r\n </video>\r\n </div>\r\n\r\n <div class=\"media\" *ngIf=\"(item.source == 'youtube' || item.source == 'vimeo' || isVimeoSource()) && !offlineUrl && isOnline\">\r\n <!-- <iframe *ngIf=\"item.source === 'vimeo'\" id=\"video_player\" [src]=\"item.link\" width=\"100%\" height=\"320px\" frameborder=\"0\" allowfullscreen></iframe> -->\r\n <div *ngIf=\"item.source == 'vimeo' || isVimeoSource()\" id=\"video_player\" style=\"width: 100%; height: 100%\">\r\n <iframe [src]=\"(item.source_path || item.link) | vimeoEmbed | safeUrl:'resourceUrl'\" width=\"100%\" height=\"100%\"\r\n frameborder=\"0\" id=\"iframe_vimeo\" allowfullscreen allow=\"autoplay; encrypted-media\"></iframe>\r\n </div>\r\n <div class=\"video\" *ngIf=\"item.source == 'youtube' && !isVimeoSource()\" id=\"video_player\">\r\n <img *ngIf=\"item.poster\" class=\"cursor-pointer\" (click)=\"playYoutubeVideo(1)\" width=\"100%\" height=\"100%\" [src]=\"item.poster\" />\r\n </div>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"item && item.button && item.button.hide\" class=\"text-center\" style=\"margin: 30px 0;\">\r\n <div *ngIf=\"item && item.allowNext && disableNextButton\" class=\"alert alert-warning mb-3 text-left d-block d-sm-none\" role=\"alert\">\r\n <i class=\"bi bi-lightbulb mr-2\"></i>\r\n Assista o v\u00EDdeo at\u00E9 o final para <strong>desbloquear o avan\u00E7o</strong>.\r\n </div>\r\n <span matTooltip=\"{{ 'ToolTipVideoComponent' | translate }}\" [matTooltipDisabled]=\"!item || !item.allowNext || !disableNextButton\">\r\n <app-editor-component-shared-button\r\n [button]=\"item.button\"\r\n [disabled]=\"item && item.allowNext ? disableNextButton : false\"\r\n (event)=\"goNext()\">\r\n </app-editor-component-shared-button>\r\n </span>\r\n </div>\r\n\r\n</div>\r\n\r\n\r\n\r\n\r\n",
|
|
3597
4692
|
providers: [TrailContentService],
|
|
3598
4693
|
styles: [".flex-container{padding:0;margin:0;list-style:none;-ms-box-orient:horizontal;display:-moz-flex;display:flex}.nowrap{flex-wrap:nowrap}.wrap{flex-wrap:wrap}::ng-deep .mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#e91e63}::ng-deep .mat-radio-button.mat-accent .mat-radio-inner-circle{background-color:#e91e63}::ng-deep .mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element{background-color:rgba(233,30,99,.26)}.mat-checkbox-label,::ng-deep .mat-radio-label{cursor:pointer;white-space:nowrap;padding:10px}::ng-deep .mat-horizontal-stepper-header{height:40px!important;padding:0 15px!important}::ng-deep .mat-step-header .mat-step-icon{background-color:#e91e63;color:#fff}::ng-deep .mat-stepper-horizontal-line{margin:0!important}::ng-deep .checkbox .checkbox-material .check{width:15px;height:15px;border:1px solid #ddd;border-radius:3px}::ng-deep .checkbox .checkbox-material .check:before{position:absolute;content:\"\";transform:rotate(45deg);display:block;margin-top:-5px;margin-left:5px;font-size:.5em;width:1;height:0;-webkit-animation:.3s forwards checkbox-off;animation:.3s forwards checkbox-off}::ng-deep .checkbox label{cursor:pointer;padding-left:0;font-size:.8em;font-weight:500;color:#525859}.mt--5{margin-top:-7px}.mt-20{margin-top:20px}.ml-3{margin-left:3px}.no-margin{margin:0!important}.bg-purple{background:#9c27b0}.fc-gray{color:#525859!important}.fc-purple{color:#9c27b0!important}.fc-red{color:#e50606!important}.fc-green{color:#2ac994!important}.bold{font-weight:700}.bolder{font-weight:bolder}.placeholder{color:#d5d5d5}.border{border:1px solid #d2d2d2}.no-border{border:none}.bl-0{border-left:none}.border-label{padding:0;border-radius:3px;border:1px solid #ccc;background:rgba(255,255,255,.5)}.border-top{border-top:1px solid #eee}.border-bottom{border-bottom:1px solid #eee}.col-center-block{float:none;display:block;margin:0 auto}.btn.focus,.btn:focus{color:#fff;background-color:#595959;border-color:#595959;outline:0;box-shadow:0 0 0 .2rem rgba(89,89,89,.25)}.btn-primary{color:#fff;background-color:#6c757d!important;border-color:#6c757d!important;box-shadow:none;font-size:1em}.btn-primary:hover{color:#fff;background-color:#595959;border-color:#595959;box-shadow:0 14px 26px -12px rgba(89,89,89,.42),0 4px 23px 0 rgba(0,0,0,.12),0 8px 10px -5px rgba(89,89,89,.2)}.btn-primary.focus,.btn-primary:focus{box-shadow:0 0 0 .2rem rgba(89,89,89,.5)}.btn-primary.disabled,.btn-primary:disabled{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-primary.disabled,.btn-primary:disabled:hover,.btn-primary:not(:disabled):not(.disabled).active,.btn-primary:not(:disabled):not(.disabled):active,.show>.btn-primary.dropdown-toggle{color:#fff;background-color:#595959;border-color:#595959}.btn-primary:not(:disabled):not(.disabled).active:focus,.btn-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(89,89,89,.5)}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-muted{background:#ccc}.btn-muted:hover{background:#bbb}.box-group{padding:10px;background:#f5f5f5;border:1px solid #eee;border-radius:3px}.box{display:flex;display:-ms-flexbox;align-items:center;-webkit-box-align:center;-ms-flex-align:center;flex-direction:column;justify-content:center;-webkit-justify-content:center;-webkit-box-pack:center;margin-left:auto}.box-list{display:flex;align-items:center;justify-content:center;height:100%;padding-bottom:30px;width:100%}.box-ask-border{display:inline-block;margin:2%;max-width:190px;min-height:190px;text-align:left;width:46%}.box-ask-border:hover{border-color:#dedede;color:#dedede;background:#fff7fa;border-radius:7px}.box-label{cursor:pointer;display:block;height:100%;padding:12px}.box-img{background-position:50%;background-size:cover;border-radius:7px;height:160px;margin:0;width:100%;-o-object-fit:cover;object-fit:cover}.box-input{display:block;position:relative;cursor:pointer;font-size:15px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.box-input input{position:absolute;opacity:0;cursor:pointer}.checkmark{position:absolute;top:-17px;left:-17px;background:0 0;border:2px solid #dadada;color:#3c3c3c;border-radius:10px;display:inline-block;margin:2%;width:116%;height:120%;min-height:190px}.box-input input:checked~.checkmark{border:2px solid #dedede}.checkmark:after{content:\"\";position:absolute;display:none}.box-input input:checked~.box-ask-border:after{border:2px solid #dadada;color:#3c3c3c;border-radius:10px;display:inline-block;font-size:15px;margin:2%;max-width:190px;text-align:left;width:46%}.box-ask-border:after{border-color:#dedede;color:rgba (233,30,99,.3);background:#fff7fa}.title{font-size:13px;float:left;padding:2px 10px;position:fixed}.title-question{font-size:1.12em;font-weight:900;color:#525859;margin-bottom:20px}.title-config{font-size:.8em;font-weight:500;color:#525859;margin-bottom:0;width:100%}.tool-name{font-weight:600;color:#9c27b0}.tool-name-subtitle{font-weight:600;color:#525859}.img-responsive,.vid-responsive{display:block;max-width:100%;height:auto}.img-thumbnail,.vid-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;margin-bottom:30px;transition:.2s ease-in-out}.col-left{border-right:1px solid #eee}.col-center{float:left;width:60%}.col-right{border-left:1px solid #eee}.col-left,.col-right{float:left;width:20%;overflow-x:hidden!important}.col-sup{height:28vh;overflow-y:auto;padding:10px;border-top:1px solid #eee;border-bottom:1px solid #eee;margin-top:25px}.col-sub{height:51.5vh;overflow-y:auto;padding:10px;border-top:1px solid #eee;margin-top:25px}.col-int{height:83.5vh;overflow-y:auto;padding:10px;margin-top:25px;border-top:1px solid #eee}.icon{float:left;width:50%;height:70px;text-align:center;margin:20px 0}.icon i{font-size:40px}.icon a{display:block;color:#999}.icon a:hover{color:#777}.icon p{font-size:14px;margin:5px}table thead th{font-size:1em;font-weight:900;color:#383838}table tfoot .amount{font-size:1em;font-weight:900;color:#383838;text-align:right}.nav-tabs{border-bottom:1px solid #ddd;margin-bottom:20px;background:0 0}.nav-tabs>li>a{margin-right:0!important;padding:4px 8px;color:#9c27b0!important}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd!important;border-bottom-color:transparent!important}.divider{height:0;margin:.5rem 0;overflow:hidden;border-top:1px solid #e9ecef}input.cell-text::-webkit-input-placeholder{color:#d5d5d5}input.cell-text::-moz-placeholder{color:#d5d5d5}input.cell-text:-ms-input-placeholder{color:#d5d5d5}input.cell-text::-ms-input-placeholder{color:#d5d5d5}input.cell-text::placeholder{color:#d5d5d5}input.text{border:1px solid #ddd;padding:5px 10px;border-radius:3px;color:#333}input.text::-webkit-input-placeholder{color:#d5d5d5}input.text::-moz-placeholder{color:#d5d5d5}input.text:-ms-input-placeholder{color:#d5d5d5}input.text::-ms-input-placeholder{color:#d5d5d5}input.text::placeholder{color:#d5d5d5}select.text{border:1px solid #ddd;padding:5px 2px;border-radius:3px;color:#333}select.text::-webkit-input-placeholder{color:#d5d5d5}select.text::-moz-placeholder{color:#d5d5d5}select.text:-ms-input-placeholder{color:#d5d5d5}select.text::-ms-input-placeholder{color:#d5d5d5}select.text::placeholder{color:#d5d5d5}textarea.text{border:1px solid #ddd;padding:5px 10px;border-radius:3px;color:#333;resize:none}textarea.text::-webkit-input-placeholder{color:#d5d5d5}textarea.text::-moz-placeholder{color:#d5d5d5}textarea.text:-ms-input-placeholder{color:#d5d5d5}textarea.text::-ms-input-placeholder{color:#d5d5d5}textarea.text::placeholder{color:#d5d5d5}.text-input{color:#b5b4b4;font-size:1.12em;position:relative;vertical-align:middle;display:inline-block;transition:.5s;padding:0;cursor:pointer;border-bottom:2px solid #fff;-webkit-transition:.5s}.text-input::after,.text-input::before{width:100%;height:100%;z-index:3;content:\"\";position:absolute;top:0;left:0;box-sizing:border-box;-webkit-transform:scale(0);transition:.5s}.text-input::-webkit-input-placeholder{color:#dcb8e3;font-size:1.09em}.text-input::-moz-placeholder{color:#dcb8e3;font-size:1.09em}.text-input:-ms-input-placeholder{color:#dcb8e3;font-size:1.09em}.text-input::-ms-input-placeholder{color:#dcb8e3;font-size:1.09em}.text-input::placeholder{color:#dcb8e3;font-size:1.09em}.text-input:focus,.text-input:hover{color:#dcb8e3;font-size:1.09em;border-bottom:2px solid #dedede}input[type=checkbox],input[type=radio]{display:none}input[type=checkbox]+label,input[type=radio]+label{color:#b5b4b4;font-size:1.09em}input[type=radio]+label span{display:inline-block;width:19px;height:19px;margin:-2px 10px 0 0;vertical-align:middle;cursor:pointer}input[type=checkbox]+label span{display:inline-block;width:19px;height:19px;margin:-2px 10px 0 0;vertical-align:middle;cursor:pointer;transition:.1s}input[type=checkbox]:checked+label span{transition:.1s}.multiple-questions label span{display:block;cursor:pointer;max-height:242px;border:1px solid #ddd;border-radius:7px;padding:10px 10px 0;margin:5px;max-width:180px;min-height:180px}.multiple-questions label span.no-image{min-height:0}.multiple-questions label span.no-image img{display:none!important}.multiple-questions input[type=radio]:checked+span{border:1px solid #595959!important;background:#fcfcfc}.multiple-questions label span img{border-radius:7px;width:180px;height:180px}.multiple-questions .text{text-align:center;padding:15px 0;min-height:30px}input.multichoice:empty{margin-left:-999px}input.multichoice:empty~label{position:relative;margin-right:20px;margin-bottom:20px;padding-right:20px;float:left;line-height:2.5em;text-indent:3.5em;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:.1s}input.multichoice:empty~label:before{position:relative;left:0;float:left;content:'';width:40px;background:#d1d3d4;border-radius:3px 0 0 3px;margin-left:0;margin-right:-40px}input.multichoice:checked~label:before{content:'\\2714';text-indent:.9em;color:#fff;background-color:#6c63fe;transition:.1s}.d-flex{display:flex!important}.flex-wrap{flex-wrap:wrap!important}.justify-content-center{justify-content:center!important}.flex-column{flex-direction:column!important}.align-content-center{align-content:center!important}.align-vertical-center{-ms-align-items:center!important;align-items:center!important}.wrapper{min-height:100%;position:relative;overflow:hidden}.wrapper:after,.wrapper:before{content:\" \";display:table}.wrapper:after{clear:both}.content-wrapper{min-height:100%;background-color:#fff;z-index:800;padding-top:40px}.top-menu{position:absolute;border-bottom:1px solid #eee;top:0;width:100%;height:40px;padding:0 10px;line-height:40px}.tool{float:right;padding:2px 5px}.footer{position:absolute;border-top:1px solid #eee;bottom:0;padding:0 10px;width:100%;height:40px;line-height:40px;background:#fff}.cliente{font-size:16px}.modulo a{padding:2px 5px;border-radius:4px;display:block;background:#9c27b0;color:#fff;margin-bottom:5px}.modulo a:hover{background:#831596}.modulo span a{float:right;font-size:12px;padding:0;background:0 0;margin-left:5px;margin-top:1px}.modulo span a:hover{color:#e9e9e9}.etapa a{padding:2px 5px 2px 20px;border-radius:4px;display:block;background:0 0;color:#777;margin-bottom:5px}.etapa span a{float:right;font-size:12px;padding:0;background:0 0;color:#ddd;margin-left:5px;margin-top:1px}.etapa span a:hover{color:#999}.form-custom input[type=number],.form-custom input[type=text],.form-custom select,.form-custom textarea{border:1px solid #dadde2;padding:3px 5px;border-radius:2px;font-size:13px;overflow-x:hidden}.form-custom .txt{border:1px solid #dadde2;padding:3px 5px;border-radius:2px;font-size:13px}.form-custom ::-webkit-input-placeholder{font-size:13px;color:#999}.form-custom ::-moz-placeholder{font-size:13px;color:#999}.form-custom ::-ms-input-placeholder{font-size:13px;color:#999}.wrapper-input{height:45px}.btn-rose{background:#e91e63}.cursor{cursor:pointer}.midia-w iframe{width:100%}.midia-h iframe{height:400px}.breadcrumb{padding:0 15px;margin-bottom:20px;list-style:none;background-color:transparent;font-size:12px}.config-label{width:100%;margin:5px 0;float:left;font-size:.8em;display:block;line-height:1.5em}.config-textarea{width:100%;margin:5px 0;float:left;resize:initial;overflow-y:auto;display:block;font-size:.9em!important;color:#999}.config-input,.config-select{width:100%;margin:5px 0;float:left;display:block;font-size:.9em!important;color:#999}.config-box{width:100%;margin:5px;float:left}.config-box-50{width:45%;min-height:110px;margin:5px;float:left;background:#f9f9f9;border:1px solid #eee;border-radius:5px;padding:10px}.config-box-title{width:100%;padding:10px;font-size:.85em}.no-bg-image{background-image:none}.space-inside{padding:10px}.block{display:block}.fake-link{cursor:pointer}.item-component{margin:0;border-radius:2px;border:1px solid #fff}.item-component:hover{border-color:#9c27b0}.item-component.active{border-color:#9c27b0;background-color:#f9f9f9}.item-box-model{border:3px dashed #ddd;padding:20px;color:#ccc;min-height:50px}.item-component-challenge,.item-component-conclusion,.item-component-download,.item-component-dynamic-input,.item-component-dynamic-table,.item-component-image,.item-component-intro,.item-component-long-text,.item-component-multichoise,.item-component-multiple-questions,.item-component-pdf,.item-component-rating,.item-component-sales-channel,.item-component-sheet-correct-incorrect,.item-component-star-point,.item-component-text,.item-component-upload,.item-component-video,.item-component-yes-no{padding:0}.item-component-image .material-icons,.item-component-pdf .material-icons,.item-component-video .material-icons{font-size:80px}.item-component-title .title-bold{font-weight:700}.item-component-title .title-italic{font-style:italic}.item-component-title .title-underline{text-decoration:underline}.icon.disabled{opacity:.3}.item-component-image-icon-container,.item-component-pdf-icon-container,.item-component-video-icon-container{background:#eee;border:1px solid #ccc;text-align:center;color:#444;font-size:50px;padding:160px}.btn-container{text-align:center}.etapa a:hover,.etapa.active a{background:#f4f4f4}.etapa.active:before{font:700 14px/1 FontAwesome;content:\"\\f0da\";float:left;color:#9c27b0;position:relative;top:5px;left:5px}.scroll{overflow-y:auto}#trail-status{color:#ddd;margin-right:10px;background:0 0;border:none}#trail-status.active{color:#6c9}.item-btn-delete{position:relative}.item-btn-delete button{position:absolute;top:-10px;right:-10px;border:1px solid #9c27b0;background-color:#fff;color:#9c27b0;border-radius:50%;width:20px;height:20px;padding:0;font-size:12px;line-height:12px;z-index:1}.item-btn-delete button:hover{background-color:#9c27b0;color:#fff}.custom-divisor{margin:10px 0}#tbl-objetivo td{padding:0 8px;height:0}#accordion .tool-name:after{font-family:\"Glyphicons Halflings\";content:\"\\e114\";float:right}#accordion .tool-name.collapsed:after{content:\"\\e080\"}#editor-components-wrapper img{max-height:500px;-o-object-fit:contain;object-fit:contain;background:#eee;width:auto}.input-styled{border:1px solid #ccc;padding:4px 6px;border-radius:2px}.pulse:hover{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-name:pulse;animation-name:pulse}@-webkit-keyframes pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(.9);opacity:.7}}@keyframes pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(.9);opacity:.7}}.cover{position:relative}.cover img{width:100%;min-height:480px;-o-object-fit:cover;object-fit:cover;opacity:1;transition:.5s;-webkit-backface-visibility:hidden;backface-visibility:hidden}.mx-auto{float:none;margin:0 auto}@media (min-width:576px) and (max-width:767px){::ng-deep .sheet-correct .radio{width:90%!important}}@media (min-width:768px) and (max-width:991px){::ng-deep .sheet-correct .radio{width:45%!important}}@media (min-width:992px) and (max-width:1199px){::ng-deep .sheet-correct .radio{width:65%!important}}@media (min-width:1200px){::ng-deep .sheet-correct .radio{width:45%!important}}@media (min-width:1600px){.col-sup{height:45vh}.col-sub{height:55.5vh}.col-int{height:88.5vh}}.image-modal{transition:.5s}.image-modal-item{width:100%;-o-object-fit:scale-down;object-fit:scale-down;max-height:320px;cursor:zoom-in}.image-modal-full{position:fixed;top:0;left:0;z-index:99999;width:100%;height:100%;padding:10%;background:rgba(0,0,0,.3);-o-object-fit:contain;object-fit:contain;cursor:zoom-out}", ":root{--app-logo:url(\"/assets/img/logo-visualizador.png\");--bg-dark:#111111!important;--bg-dark-2:#333333!important;--main-color-dark:#dddddd!important;--bg-sidebar-viewer-dark:#181818!important;--bg-btn-sidebar-viewer-dark-active:#ddd!important;--bg-btn-sidebar-viewer-text-dark-active:#ddd!important;--icon-sidebar-viewer-dark:#ddd!important;--link-sidebar-viewer-dark:#ddd!important;--bg-light:#f4f4f4!important;--bg-light-2:#eee!important;--main-color-light:#414141!important;--bg-sidebar-viewer-light:#fff!important;--bg-btn-sidebar-viewer-light-active:#414141!important;--bg-btn-sidebar-viewer-text-light-active:#414141!important;--icon-sidebar-viewer-light:#414141!important;--link-sidebar-viewer-light:#414141!important}.full-page{width:100vw;height:100vh}#wrapper{display:flex;width:100%;--modern-text-color:#ffffff;--modern-bg-overlay:rgba(255, 255, 255, 0.03);--modern-border-color:rgba(255, 255, 255, 0.05);--modern-exit-text:#e5e5e5;--modern-exit-bg:rgba(255, 255, 255, 0.04);--modern-exit-border:rgba(255, 255, 255, 0.08);--modern-exit-hover-text:#ef4444;--modern-exit-hover-bg:rgba(239, 68, 68, 0.15);--modern-exit-hover-border:rgba(239, 68, 68, 0.4);--modern-exit-hover-shadow:rgba(239, 68, 68, 0.2);--modern-exit-icon-color:#ef4444;--modern-exit-icon-hover-color:#ef4444;--modern-badge-locked-bg:rgba(255, 255, 255, 0.08);--modern-badge-locked-color:#8e8e93;--modern-active-lesson-bg:#2d3748;--modern-active-lesson-text:#ffffff;--modern-active-lesson-badge-bg:rgba(0, 0, 0, 0.4)}#wrapper.theme-custom,#wrapper.theme-light{--modern-text-color:#2c3e50;--modern-bg-overlay:rgba(0, 0, 0, 0.03);--modern-border-color:rgba(0, 0, 0, 0.06);--modern-exit-text:#ffffff;--modern-exit-bg:#262626;--modern-exit-border:#262626;--modern-exit-hover-text:#ffffff;--modern-exit-hover-bg:#ef4444;--modern-exit-hover-border:#ef4444;--modern-exit-hover-shadow:rgba(239, 68, 68, 0.4);--modern-exit-icon-color:#ffffff;--modern-exit-icon-hover-color:#ffffff;--modern-badge-locked-bg:rgba(0, 0, 0, 0.05);--modern-badge-locked-color:#7a7a7a;--modern-active-lesson-bg:#f3f4f6;--modern-active-lesson-text:#111827;--modern-active-lesson-badge-bg:rgba(0, 0, 0, 0.08)}#wrapper.theme-custom #sidemenu-viewer .sidemenu-header .logo,#wrapper.theme-light #sidemenu-viewer .sidemenu-header .logo{-webkit-filter:brightness(.2)!important;filter:brightness(.2)!important}#wrapper.theme-custom .navbar-brand,#wrapper.theme-light .navbar-brand{color:#2c3e50!important}#navbar{padding:0 10px;background:0 0;border:none;border-radius:0;margin-bottom:30px;transition:.3s}#navbar .navbar-brand{margin-left:60px;padding-top:5px;text-decoration:none!important}@media (max-width:768px){#navbar .navbar-brand{font-size:13px;line-height:1.2;white-space:normal;margin-right:90px;display:inline-block}}#navbar .btn-close{position:absolute;top:0;right:0;z-index:1}#sidemenu-viewer{width:320px;position:fixed;top:0;left:0;height:100vh;z-index:999;background:var(--bg-sidebar-viewer);transition:.3s;box-shadow:0 10px 30px -12px rgba(0,0,0,.42);overflow:hidden;display:flex!important;flex-direction:column!important}#sidemenu-viewer .nav-container,#sidemenu-viewer .sidebar-module-selector-wrapper,#sidemenu-viewer .sidemenu-header{flex-shrink:0!important}#sidemenu-viewer .tab-content{flex-grow:1!important;min-height:0!important;display:flex!important;flex-direction:column!important}#sidemenu-viewer .tab-content .tab-pane.active{display:flex!important;flex-direction:column!important;flex-grow:1!important;min-height:0!important}#sidemenu-viewer.active{margin-left:-320px}#sidemenu-viewer .sidebarClose{position:absolute;top:15px;right:10px}#sidemenu-viewer .sidemenu-header{display:flex;align-items:center;justify-content:center;height:70px;padding:40px 20px!important;background:var(--bg-sidebar-viewer);border-bottom:1px solid rgba(255,255,255,.1)}#sidemenu-viewer .sidemenu-header .logo{flex-grow:2;width:100%;height:40px;margin:0 auto;text-align:center;background-image:var(--app-logo);background-size:cover;background-position:center;background-repeat:no-repeat}#sidemenu-viewer .sidemenu-header img{width:80%;max-height:40px;-o-object-fit:contain;object-fit:contain;margin:0 auto}#sidemenu-viewer .sidemenu-info{width:100%;min-height:54px;height:auto;background:var(--modern-bg-overlay)!important;color:var(--modern-text-color)!important;border-bottom:1px solid!important;border-left:4px solid!important;display:flex;align-items:center}#sidemenu-viewer .sidemenu-info a{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px 16px!important;color:var(--modern-text-color)!important;text-decoration:none!important;font-size:13px!important;font-weight:600!important;line-height:1.4!important;letter-spacing:.2px!important}#sidemenu-viewer .sidemenu-info a p{margin:0!important;padding:0!important;color:var(--modern-text-color)!important}#sidemenu-viewer .sidemenu-info a:hover{color:var(--modern-text-color)!important}#sidemenu-viewer .sidemenu-info a i{font-size:16px;margin-left:8px;color:var(--bg-btn-sidebar-viewer-active,#f4ac1e)}#sidemenu-viewer .sidemenu-body{flex-grow:1!important;min-height:0!important;height:auto!important;overflow-y:auto!important;background:var(--bg-sidebar-viewer)}#sidemenu-viewer .sidemenu-body::-webkit-scrollbar{width:6px!important;height:6px!important}#sidemenu-viewer .sidemenu-body::-webkit-scrollbar-track{background:rgba(0,0,0,.05)!important;border-radius:10px!important}#sidemenu-viewer .sidemenu-body::-webkit-scrollbar-thumb{background:rgba(128,128,128,.3)!important;border-radius:10px!important;transition:background .2s!important}#sidemenu-viewer .sidemenu-body::-webkit-scrollbar-thumb:hover{background:rgba(128,128,128,.5)!important}#sidemenu-viewer .sidemenu-body ul{margin:0;padding:15px;list-style:none}#sidemenu-viewer .sidemenu-body ul li{display:flex;align-items:center;justify-content:flex-start;flex-direction:row;padding:12px 15px 8px;margin-bottom:15px;border-radius:4px;color:var(--modern-text-color)!important;transition:.3s;font-size:.9em!important}#sidemenu-viewer .sidemenu-body ul li:hover{background:rgba(215,215,215,.2);color:var(--modern-text-color)!important}#sidemenu-viewer .sidemenu-body ul li.active{background:var(--bg-btn-sidebar-viewer-active)!important;color:var(--bg-btn-sidebar-viewer-text-active)!important;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(57,75,85,.4)}#sidemenu-viewer .sidemenu-body ul li.active .icon{color:var(--bg-btn-sidebar-viewer-text-active)!important}#sidemenu-viewer .sidemenu-body ul li .icon{color:var(--icon-sidebar-viewer);float:left;margin-right:10px}#sidemenu-viewer .sidemenu-body ul li .text{float:left;font-size:.9em!important;margin-top:2px}#sidemenu-viewer .sidemenu-body-mini{flex-grow:1!important;min-height:0!important;height:auto!important}#content{width:calc(100% - 320px);padding:15px 40px;min-height:100vh;transition:.3s;position:absolute;top:0;right:0;background:#eee}#content.active{width:100%}.notepad-icons{display:flex;align-items:center;justify-content:space-between;font-size:1.15em;margin-top:5px}.notepad-icons a{color:var(--main-color-viewer)}.notepad-icons a:hover{text-decoration:none}.notepad{margin-top:15px}.notepad input[type=text],.notepad textarea{box-shadow:none}.btn-toggler{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2;width:45px;height:45px;color:var(--main-color-viewer);background-color:#fff;border-color:#fff;box-shadow:0 2px 2px 0 rgba(153,153,153,.14),0 3px 1px -2px rgba(153,153,153,.2),0 1px 5px 0 rgba(153,153,153,.12);border-radius:50%}.btn-toggler span{position:absolute;display:flex;align-items:center;justify-content:center;width:45px;height:45px;border-radius:50%}.btn-toggler.focus,.btn-toggler:focus,.btn-toggler:hover{color:var(--main-color-viewer);background-color:#fff;border-color:#fff;box-shadow:0 4px 25px 0 rgba(0,0,0,.14),0 7px 15px -5px rgba(57,75,85,.2)}.btn-simple{background-color:#fff;border:none;cursor:pointer;display:block;color:#333;text-decoration:none;padding:14px 0}.trail-select{width:180px;float:right;margin:0 10px}.overflow-hidden{overflow:hidden}.fw-bold a{font-weight:700}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{background-color:var(--bg-btn-course)}.nav-pills .nav-link{color:var(--bg-btn-viewer)!important}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{background-color:var(--bg-btn-viewer)!important;color:#fff!important}.sidebar .nav li>a,.sidebar .nav li>a:focus,.sidebar .nav li>a:hover{background-color:var(--bg-btn-course)!important}.sidebar .user .info>a{padding-left:20px!important}.info{border-bottom:1px solid #eee}.cursor-pointer{cursor:pointer}.nav-container{padding:0;border-top:1px solid #eee;border-bottom:1px solid #eee}.mask-item{position:relative;width:100%;height:100%;background:#000;z-index:70;display:flex;align-items:center;justify-content:center;flex-direction:column;top:0;transition:.5s;opacity:0}.mask-item .material-icons{color:#fff;font-size:92px}.stage-video{background:#000}.media{display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;background-repeat:no-repeat;background-size:cover;background-position:center center}.media .video{width:100%;height:100%}.media .play-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.theme-dark #content{background-color:var(--bg-dark)!important}.theme-dark #navbar .navbar-brand{color:var(--link-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer,.theme-dark #sidemenu-viewer .sidemenu-header{background:var(--bg-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer .sidemenu-header .logo{background-image:var(--app-logo)!important}.theme-dark #sidemenu-viewer .sidemenu-info{background:var(--bg-sidebar-viewer-dark)!important;color:var(--link-sidebar-viewer-dark)!important;border-bottom:1px solid rgba(255,255,255,.1)}.theme-dark #sidemenu-viewer .sidemenu-info a,.theme-dark #sidemenu-viewer .sidemenu-info a:hover{color:var(--link-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer .sidemenu-body{background:var(--bg-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer .sidemenu-body ul li{color:var(--link-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer .sidemenu-body ul li:hover{background:rgba(215,215,215,.2);color:var(--link-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer .sidemenu-body ul li.active{background:var(--bg-btn-sidebar-viewer-dark-active)!important;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(57,75,85,.4);color:var(--bg-btn-sidebar-viewer-text-dark-active)!important}.theme-dark #sidemenu-viewer .sidemenu-body ul li.active .icon{color:var(--bg-btn-sidebar-viewer-text-dark-active)!important}.theme-dark #sidemenu-viewer .sidemenu-body ul li .icon{color:var(--icon-sidebar-viewer-dark)!important}.theme-dark .btn-toggler{color:var(--main-color-dark)!important;background-color:var(--bg-sidebar-viewer-dark)!important;border-color:var(--bg-sidebar-viewer-dark)!important}.theme-dark .btn-toggler:hover{color:var(--icon-sidebar-viewer-dark)!important;background-color:var(--bg-sidebar-viewer-dark)!important;border-color:var(--bg-sidebar-viewer-dark)!important}.theme-dark .btn-toggler.focus,.theme-dark .btn-toggler:focus{color:var(--main-color-dark);background-color:var(--bg-sidebar-viewer-dark)!important;border-color:var(--bg-sidebar-viewer-dark)!important}.theme-dark .card{background-color:var(--bg-sidebar-viewer-dark)!important;box-shadow:none!important}.theme-dark .mat-checkbox-checked.mat-accent .mat-checkbox-background,.theme-dark .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background,.theme-dark .mat-checkbox:not(.mat-checkbox-disabled).mat-accent .mat-checkbox-ripple .mat-ripple-element{background-color:var(--main-color-dark)!important}.theme-dark .mat-checkbox-checkmark-path{stroke:#181818!important}.theme-dark .mat-checkbox-label{color:var(--main-color-dark)!important}.theme-dark .conclusion-container{background-color:var(--bg-sidebar-viewer-dark)!important}.theme-dark fieldset p{color:var(--main-color-dark)}.theme-dark input,.theme-dark textarea{border:1px solid rgba(255,255,255,.3);background:var(--bg-dark-2)!important;color:var(--main-color-dark)!important;outline:0!important}.theme-light #navbar .navbar-brand{color:var(--link-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer,.theme-light #sidemenu-viewer .sidemenu-header{background:var(--bg-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer .sidemenu-header .logo{background-image:var(--app-logo)!important}.theme-light #sidemenu-viewer .sidemenu-info{background:var(--bg-sidebar-viewer-light)!important;color:var(--link-sidebar-viewer-light)!important;border-bottom:1px solid rgba(255,255,255,.1)}.theme-light #sidemenu-viewer .sidemenu-info a,.theme-light #sidemenu-viewer .sidemenu-info a:hover{color:var(--link-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer .sidemenu-body{background:var(--bg-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer .sidemenu-body ul li{color:var(--link-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer .sidemenu-body ul li:hover{background:rgba(215,215,215,.2);color:var(--link-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer .sidemenu-body ul li.active{background:var(--bg-btn-sidebar-viewer-light-active)!important;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(57,75,85,.4);color:var(--bg-btn-sidebar-viewer-text-light-active)!important}.theme-light #sidemenu-viewer .sidemenu-body ul li.active .icon{color:var(--bg-btn-sidebar-viewer-text-light-active)!important}.theme-light #sidemenu-viewer .sidemenu-body ul li .icon{color:var(--icon-sidebar-viewer-light)!important}.theme-light .btn-toggler{color:var(--main-color-light)!important;background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-light .btn-toggler:hover{color:var(--icon-sidebar-viewer-light)!important;background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-light .btn-toggler.focus,.theme-light .btn-toggler:focus{color:var(--main-color-light);background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-light .card{box-shadow:none!important}.theme-light .mat-checkbox-checked.mat-accent .mat-checkbox-background,.theme-light .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background,.theme-light .mat-checkbox:not(.mat-checkbox-disabled).mat-accent .mat-checkbox-ripple .mat-ripple-element{background-color:var(--main-color-light)!important}.theme-light .mat-checkbox-checkmark-path{stroke:#181818!important}.theme-light .mat-checkbox-label{color:var(--main-color-light)!important}.theme-custom #content{background-color:var(--bg-client)!important}.theme-custom #navbar .navbar-brand{color:var(--link-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer,.theme-custom #sidemenu-viewer .sidemenu-header{background:var(--bg-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer .sidemenu-header .logo{background-image:var(--app-logo)!important}.theme-custom #sidemenu-viewer .sidemenu-info{background:var(--bg-sidebar-viewer-light)!important;color:var(--link-sidebar-viewer-light)!important;border-bottom:1px solid rgba(255,255,255,.1)}.theme-custom #sidemenu-viewer .sidemenu-info a,.theme-custom #sidemenu-viewer .sidemenu-info a:hover{color:var(--link-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer .sidemenu-body{background:var(--bg-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer .sidemenu-body ul li{color:var(--link-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer .sidemenu-body ul li:hover{background:rgba(215,215,215,.2);color:var(--link-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer .sidemenu-body ul li.active{background:var(--bg-btn-sidebar-viewer-light-active)!important;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(57,75,85,.4);color:var(--bg-btn-sidebar-viewer-text-light-active)!important}.theme-custom #sidemenu-viewer .sidemenu-body ul li.active .icon{color:var(--bg-btn-sidebar-viewer-text-light-active)!important}.theme-custom #sidemenu-viewer .sidemenu-body ul li .icon{color:var(--icon-sidebar-viewer-light)!important}.theme-custom .btn-toggler{color:var(--main-color-light)!important;background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-custom .btn-toggler:hover{color:var(--icon-sidebar-viewer-light)!important;background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-custom .btn-toggler.focus,.theme-custom .btn-toggler:focus{color:var(--main-color-light);background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-custom .card,.theme-custom .midia{background-color:var(--bg-sidebar-viewer-light)!important;box-shadow:none!important}.theme-custom .midia p,.theme-custom .shared-subtitle,.theme-custom .shared-title{color:var(--main-color-light)!important}.theme-custom .mat-checkbox-checked.mat-accent .mat-checkbox-background,.theme-custom .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background,.theme-custom .mat-checkbox:not(.mat-checkbox-disabled).mat-accent .mat-checkbox-ripple .mat-ripple-element{background-color:var(--main-color-light)!important}.theme-custom .mat-checkbox-checkmark-path{stroke:#181818!important}.theme-custom .mat-checkbox-label{color:var(--main-color-light)!important}.theme-custom .conclusion-container{background-color:var(--bg-sidebar-viewer-light)!important}@media (max-width:767px){#sidemenu-viewer{background:#fff;left:-999px}#sidemenu-viewer.active{left:320px!important}#sidemenu-viewer .sidemenu-header{display:block;text-align:left;height:auto;margin:0 0 20px;padding:15px 20px 12px!important;border-bottom:1px solid #eee}#sidemenu-viewer .sidemenu-header span{font-weight:500}#content{width:100%;padding:15px 0}#content.active{width:100%}#content.active .navbar{margin-left:0;transition:.3s}}::ng-deep app-viewer p{background-color:transparent!important}@media (min-width:992px) and (max-width:1199px){.intro-container-video{width:500px}}@media (min-width:1200px) and (max-width:1366px){.intro-container-video{width:700px}}@media (min-width:1440px) and (max-width:1600px){.intro-container-video{width:700px}}@media (min-width:1920px){.intro-container-video{width:700px}}.audio-cover{max-height:400px;width:100%;margin-bottom:20px;margin-top:20px}.audio-cover img{width:100%;height:100%;-o-object-position:center;object-position:center;-o-object-fit:contain;object-fit:contain;background:#eee}#sidemenu-viewer .modern-lessons-list{margin:0!important;padding:12px!important;list-style:none!important;display:flex!important;flex-direction:column!important;gap:12px!important}#sidemenu-viewer .modern-lessons-list .lesson-item{display:block!important;padding:0!important;margin:0!important;border-radius:12px!important;background:var(--modern-bg-overlay)!important;border:1px solid!important;overflow:hidden!important;transition:.3s cubic-bezier(.25,.8,.25,1)!important;box-shadow:none!important}#sidemenu-viewer .modern-lessons-list .lesson-item:not(.locked){cursor:pointer!important}#sidemenu-viewer .modern-lessons-list .lesson-item:not(.locked):hover{background:rgba(128,128,128,.08)!important;border-color:rgba(128,128,128,.2)!important;transform:translateY(-2px)!important;box-shadow:0 6px 20px rgba(0,0,0,.15)!important}#sidemenu-viewer .modern-lessons-list .lesson-item:not(.locked):hover .type-icon{transform:scale(1.15)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.locked{opacity:.5!important;cursor:not-allowed!important;background:var(--modern-bg-overlay)!important;border-color:var(--modern-border-color)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.locked .lesson-thumb-wrapper{-webkit-filter:grayscale(.5) brightness(.85)!important;filter:grayscale(.5) brightness(.85)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.locked .lesson-thumb-wrapper .type-icon{opacity:.65!important}#sidemenu-viewer .modern-lessons-list .lesson-item.locked .lesson-title{color:var(--modern-text-color)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.active{background:var(--modern-active-lesson-bg)!important;border-color:var(--bg-btn-sidebar-viewer-active,#f4ac1e)!important;box-shadow:0 4px 15px rgba(0,0,0,.1)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.active .lesson-title{color:var(--modern-active-lesson-text)!important;font-weight:600!important}#sidemenu-viewer .modern-lessons-list .lesson-item.active .lesson-status-row .status-badge.status-active{background:var(--modern-active-lesson-badge-bg)!important;color:var(--modern-active-lesson-text)!important;border:1px solid rgba(128,128,128,.2)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.active .lesson-status-row .status-badge.status-active i{color:var(--modern-active-lesson-text)!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-card{display:flex!important;flex-direction:row!important;align-items:stretch!important;padding:10px!important;gap:12px!important;min-height:80px!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper{position:relative!important;flex-shrink:0!important;width:90px!important;height:60px!important;border-radius:8px!important;overflow:hidden!important;border:1px solid rgba(255,255,255,.1)!important;display:flex!important;align-items:center!important;justify-content:center!important;transition:.3s!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper .lesson-thumb-video-element{position:absolute!important;top:0!important;left:0!important;width:100%!important;height:100%!important;-o-object-fit:cover!important;object-fit:cover!important;pointer-events:none!important;z-index:0!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-video{background:linear-gradient(135deg,#f97316 0,#c2410c 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-pdf{background:linear-gradient(135deg,#ef4444 0,#b91c1c 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-avaliation{background:linear-gradient(135deg,#eab308 0,#a16207 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-conclusion{background:linear-gradient(135deg,#22c55e 0,#15803d 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-correct-incorrect{background:linear-gradient(135deg,#14b8a6 0,#0f766e 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-download{background:linear-gradient(135deg,#3b82f6 0,#1d4ed8 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-form-step{background:linear-gradient(135deg,#f97316 0,#ea580c 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-forum{background:linear-gradient(135deg,#ec4899 0,#be185d 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-feedback{background:linear-gradient(135deg,#a855f7 0,#7e22ce 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-image{background:linear-gradient(135deg,#06b6d4 0,#0e7490 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-multi-choice{background:linear-gradient(135deg,#6366f1 0,#4338ca 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-text{background:linear-gradient(135deg,#64748b 0,#475569 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-upload{background:linear-gradient(135deg,#0d9488 0,#115e59 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-audio{background:linear-gradient(135deg,#f59e0b 0,#b45309 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-random-questions{background:linear-gradient(135deg,#78350f 0,#451a03 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-research{background:linear-gradient(135deg,#d946ef 0,#86198f 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-page{background:linear-gradient(135deg,#0ea5e9 0,#0369a1 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-default{background:linear-gradient(135deg,#4b5563 0,#1f2937 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper .type-icon{font-size:24px!important;color:rgba(255,255,255,.95)!important;text-shadow:0 2px 6px rgba(0,0,0,.3)!important;transition:transform .3s cubic-bezier(.175,.885,.32,1.275)!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper .lesson-lock-badge{position:absolute!important;top:4px!important;right:4px!important;width:20px!important;height:20px!important;background:rgba(0,0,0,.65)!important;border:1px solid rgba(255,255,255,.15)!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;box-shadow:0 2px 6px rgba(0,0,0,.3)!important;transition:.3s!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper .lesson-lock-badge i{color:#fff!important;font-size:11px!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.has-thumb-img{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.has-thumb-img::before{content:\"\"!important;position:absolute!important;top:0!important;left:0!important;width:100%!important;height:100%!important;background:rgba(0,0,0,.35)!important;z-index:1!important;transition:background .3s!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.has-thumb-img .type-icon{position:relative!important;z-index:2!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.has-thumb-img .lesson-lock-badge{z-index:3!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-info{display:flex!important;flex-direction:column!important;justify-content:space-between!important;flex-grow:1!important;min-width:0!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-title{font-size:13px!important;line-height:1.4!important;color:var(--modern-text-color)!important;font-weight:500!important;word-break:break-word!important;margin-top:0!important;margin-bottom:4px!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-status-row{display:flex!important;align-items:center!important;margin-top:auto!important}#sidemenu-viewer .modern-lessons-list .lesson-item .status-badge{display:inline-flex!important;align-items:center!important;gap:4px!important;font-size:10px!important;font-weight:600!important;text-transform:uppercase!important;letter-spacing:.5px!important;padding:2px 8px!important;border-radius:20px!important}#sidemenu-viewer .modern-lessons-list .lesson-item .status-badge i{font-size:12px!important}#sidemenu-viewer .modern-lessons-list .lesson-item .status-badge.status-active{background:rgba(244,172,30,.2)!important;color:#f4ac1e!important}#sidemenu-viewer .modern-lessons-list .lesson-item .status-badge.status-done{background:rgba(76,175,80,.15)!important;color:#4caf50!important}#sidemenu-viewer .modern-lessons-list .lesson-item .status-badge.status-locked{background:var(--modern-badge-locked-bg)!important;color:var(--modern-badge-locked-color)!important}.sidebarCollapse.btn-toggler{position:absolute!important;display:flex!important;align-items:center!important;justify-content:center!important;z-index:10!important;width:42px!important;height:42px!important;border-radius:50%!important;border:1px solid rgba(255,255,255,.08)!important;background:rgba(255,255,255,.04)!important;box-shadow:0 4px 10px rgba(0,0,0,.15)!important;transition:.3s cubic-bezier(.25,.8,.25,1)!important;cursor:pointer!important;outline:0!important;top:14px!important;left:20px!important}.sidebarCollapse.btn-toggler i{font-size:22px!important;color:#d1d1d6!important;transition:transform .3s!important}.sidebarCollapse.btn-toggler .icon-close{display:block!important}.sidebarCollapse.btn-toggler .icon-open{display:none!important}.sidebarCollapse.btn-toggler:hover{background:var(--bg-btn-sidebar-viewer-active,#f4ac1e)!important;border-color:var(--bg-btn-sidebar-viewer-active,#f4ac1e)!important;box-shadow:0 4px 15px rgba(244,172,30,.3)!important;transform:scale(1.05)!important}.sidebarCollapse.btn-toggler:hover i{color:#000!important}#content.active .sidebarCollapse.btn-toggler .icon-close{display:none!important}#content.active .sidebarCollapse.btn-toggler .icon-open{display:block!important}.navbar-brand{position:relative!important;font-size:15px!important;font-weight:600!important;color:#fff!important;letter-spacing:.3px!important;margin-left:75px!important;line-height:1.4!important;padding:0 0 6px!important;display:inline-flex!important;align-items:center!important;height:42px!important;cursor:default!important}.navbar-brand::after{content:\"\"!important;position:absolute!important;bottom:2px!important;left:0!important;width:100%!important;height:3px!important;background:var(--bg-btn-sidebar-viewer-active,#f4ac1e)!important;border-radius:4px!important}.btn-close-container{position:absolute!important;top:14px!important;right:15px!important;z-index:10!important}.btn-close-container .btn-exit{display:inline-flex!important;align-items:center!important;gap:8px!important;padding:8px 18px!important;border-radius:20px!important;border:1px solid!important;background:var(--modern-exit-bg)!important;color:var(--modern-exit-text)!important;font-size:11px!important;font-weight:600!important;text-transform:uppercase!important;letter-spacing:.8px!important;text-decoration:none!important;box-shadow:0 4px 10px rgba(0,0,0,.15)!important;transition:.3s cubic-bezier(.25,.8,.25,1)!important;cursor:pointer!important}.btn-close-container .btn-exit i{font-size:16px!important;color:var(--modern-exit-icon-color)!important;transition:transform .3s!important}@media (max-width:768px){.navbar-brand{height:auto!important;min-height:42px!important;padding-bottom:12px!important}.btn-close-container .btn-exit{padding:4px 10px!important;font-size:9px!important;gap:4px!important}.btn-close-container .btn-exit i{font-size:14px!important}}.btn-close-container .btn-exit:hover{background:var(--modern-exit-hover-bg)!important;border-color:var(--modern-exit-hover-border)!important;color:var(--modern-exit-hover-text)!important;box-shadow:0 4px 15px var(--modern-exit-hover-shadow)!important;transform:scale(1.02)!important}.btn-close-container .btn-exit:hover i{transform:translateX(2px)!important;color:var(--modern-exit-icon-hover-color)!important}.theme-custom #sidemenu-viewer .sidemenu-header .logo,.theme-light #sidemenu-viewer .sidemenu-header .logo{-webkit-filter:brightness(.2)!important;filter:brightness(.2)!important}.modern-progress-container{padding:16px!important;display:flex!important;flex-direction:column!important;gap:8px!important}.modern-progress-container.footer-progress{position:static!important;flex-shrink:0!important;width:100%!important;background:var(--modern-active-lesson-bg)!important;border-top:1px solid #4caf50!important;border-bottom:none!important;box-shadow:0 -4px 15px rgba(0,0,0,.1)!important;z-index:10!important}.modern-progress-container .progress-info-row{display:flex!important;justify-content:space-between!important;align-items:center!important;font-size:11px!important;font-weight:500!important;letter-spacing:.3px!important;color:var(--modern-active-lesson-text)!important;opacity:.9!important}.modern-progress-container .progress-info-row .progress-label{text-transform:uppercase!important;font-size:9px!important;font-weight:700!important;opacity:.7!important}.modern-progress-container .progress-info-row .progress-stats{display:flex!important;align-items:center!important;gap:6px!important}.modern-progress-container .progress-info-row .progress-stats .progress-detail{opacity:.7!important;font-size:10px!important;font-weight:600!important}.modern-progress-container .progress-info-row .progress-stats .progress-pct{font-weight:700!important;color:#4caf50!important}.modern-progress-container .progress-bar-track{width:100%!important;height:6px!important;background:rgba(0,0,0,.15)!important;border:1px solid rgba(0,0,0,.05)!important;border-radius:4px!important;overflow:hidden!important}.modern-progress-container .progress-bar-track .progress-bar-fill{height:100%!important;background:#4caf50!important;border-radius:4px!important;transition:width .6s cubic-bezier(.4,0,.2,1)!important}", "#iframe_vimeo{height:100%}.cover-video{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background-size:cover;background-repeat:no-repeat;background-position:center}.cover-video .filter{position:relative;z-index:10;width:100%;height:100%;-webkit-backdrop-filter:blur(30px);backdrop-filter:blur(30px);background-color:rgba(255,225,225,.2)}.cover-video .real-cover{width:100%;height:100%;position:absolute;z-index:20;top:50%;left:50%;transform:translate(-50%,-50%);background-repeat:no-repeat;background-position:center;background-size:contain}.cover-video .icon-play{position:absolute;z-index:30;top:50%;left:50%;transform:translate(-50%,-50%)}.btn-video-opacity{opacity:.5}"]
|
|
3599
4694
|
}] }
|
|
@@ -3601,7 +4696,9 @@ VideoComponent.decorators = [
|
|
|
3601
4696
|
/** @nocollapse */
|
|
3602
4697
|
VideoComponent.ctorParameters = () => [
|
|
3603
4698
|
{ type: DomSanitizer },
|
|
3604
|
-
{ type: TrailContentService }
|
|
4699
|
+
{ type: TrailContentService },
|
|
4700
|
+
{ type: OfflineStorageService },
|
|
4701
|
+
{ type: ChangeDetectorRef }
|
|
3605
4702
|
];
|
|
3606
4703
|
VideoComponent.propDecorators = {
|
|
3607
4704
|
item: [{ type: Input }],
|
|
@@ -3637,6 +4734,10 @@ if (false) {
|
|
|
3637
4734
|
/** @type {?} */
|
|
3638
4735
|
VideoComponent.prototype.seconds;
|
|
3639
4736
|
/** @type {?} */
|
|
4737
|
+
VideoComponent.prototype.offlineUrl;
|
|
4738
|
+
/** @type {?} */
|
|
4739
|
+
VideoComponent.prototype.isOnline;
|
|
4740
|
+
/** @type {?} */
|
|
3640
4741
|
VideoComponent.prototype.player;
|
|
3641
4742
|
/** @type {?} */
|
|
3642
4743
|
VideoComponent.prototype.videoMonitor;
|
|
@@ -3657,6 +4758,13 @@ if (false) {
|
|
|
3657
4758
|
VideoComponent.prototype.sanitizer;
|
|
3658
4759
|
/** @type {?} */
|
|
3659
4760
|
VideoComponent.prototype._trailContentService;
|
|
4761
|
+
/** @type {?} */
|
|
4762
|
+
VideoComponent.prototype.offlineService;
|
|
4763
|
+
/**
|
|
4764
|
+
* @type {?}
|
|
4765
|
+
* @private
|
|
4766
|
+
*/
|
|
4767
|
+
VideoComponent.prototype.cdr;
|
|
3660
4768
|
}
|
|
3661
4769
|
|
|
3662
4770
|
/**
|
|
@@ -10855,8 +11963,9 @@ class CursoVisualizadorComponent {
|
|
|
10855
11963
|
* @param {?} dialog
|
|
10856
11964
|
* @param {?} global
|
|
10857
11965
|
* @param {?} location
|
|
11966
|
+
* @param {?} offlineService
|
|
10858
11967
|
*/
|
|
10859
|
-
constructor(ambienteVirtualService, activatedRoute, router, _bannerService, trailService, dialog, global, location) {
|
|
11968
|
+
constructor(ambienteVirtualService, activatedRoute, router, _bannerService, trailService, dialog, global, location, offlineService) {
|
|
10860
11969
|
this.ambienteVirtualService = ambienteVirtualService;
|
|
10861
11970
|
this.activatedRoute = activatedRoute;
|
|
10862
11971
|
this.router = router;
|
|
@@ -10865,6 +11974,7 @@ class CursoVisualizadorComponent {
|
|
|
10865
11974
|
this.dialog = dialog;
|
|
10866
11975
|
this.global = global;
|
|
10867
11976
|
this.location = location;
|
|
11977
|
+
this.offlineService = offlineService;
|
|
10868
11978
|
this.data = [];
|
|
10869
11979
|
this.loader = true;
|
|
10870
11980
|
$('.image-modal-item').click((/**
|
|
@@ -10971,10 +12081,51 @@ class CursoVisualizadorComponent {
|
|
|
10971
12081
|
}
|
|
10972
12082
|
}));
|
|
10973
12083
|
}
|
|
12084
|
+
/**
|
|
12085
|
+
* @param {?} id
|
|
12086
|
+
* @return {?}
|
|
12087
|
+
*/
|
|
12088
|
+
loadOfflineModule(id) {
|
|
12089
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12090
|
+
try {
|
|
12091
|
+
/** @type {?} */
|
|
12092
|
+
const offlineData = yield this.offlineService.getDownloadedLesson(id);
|
|
12093
|
+
if (offlineData) {
|
|
12094
|
+
this.etapa = {
|
|
12095
|
+
id: offlineData.id,
|
|
12096
|
+
nome: offlineData.title,
|
|
12097
|
+
sinopse: offlineData.subtitle,
|
|
12098
|
+
thumb: offlineData.thumbnail
|
|
12099
|
+
};
|
|
12100
|
+
if (offlineData.stages && offlineData.stages.length > 0) {
|
|
12101
|
+
this.data = offlineData.stages;
|
|
12102
|
+
this.current = this.data[0];
|
|
12103
|
+
if (this.cursoViewer) {
|
|
12104
|
+
this.cursoViewer.getContent(this.current.id);
|
|
12105
|
+
}
|
|
12106
|
+
if (this.cursoNavBar) {
|
|
12107
|
+
this.cursoNavBar.menuItems = this.data;
|
|
12108
|
+
this.cursoNavBar.setIndexes(this.data, this.current);
|
|
12109
|
+
}
|
|
12110
|
+
}
|
|
12111
|
+
this.loader = false;
|
|
12112
|
+
console.log('[CursoVisualizador] Módulo carregado do armazenamento offline:', offlineData);
|
|
12113
|
+
return;
|
|
12114
|
+
}
|
|
12115
|
+
}
|
|
12116
|
+
catch (e) {
|
|
12117
|
+
console.error('[CursoVisualizador] Erro ao recuperar módulo offline:', e);
|
|
12118
|
+
}
|
|
12119
|
+
this.loader = false;
|
|
12120
|
+
});
|
|
12121
|
+
}
|
|
10974
12122
|
/**
|
|
10975
12123
|
* @return {?}
|
|
10976
12124
|
*/
|
|
10977
12125
|
getData() {
|
|
12126
|
+
if (!navigator.onLine) {
|
|
12127
|
+
return;
|
|
12128
|
+
}
|
|
10978
12129
|
this.trailService.trilhaInfoEtapa(this.id).subscribe((/**
|
|
10979
12130
|
* @param {?} res
|
|
10980
12131
|
* @return {?}
|
|
@@ -10997,12 +12148,21 @@ class CursoVisualizadorComponent {
|
|
|
10997
12148
|
}
|
|
10998
12149
|
this.etapa = etapa;
|
|
10999
12150
|
}
|
|
12151
|
+
}), (/**
|
|
12152
|
+
* @param {?} err
|
|
12153
|
+
* @return {?}
|
|
12154
|
+
*/
|
|
12155
|
+
err => {
|
|
12156
|
+
console.log("[CursoVisualizador] Fallback getData offline");
|
|
11000
12157
|
}));
|
|
11001
12158
|
}
|
|
11002
12159
|
/**
|
|
11003
12160
|
* @return {?}
|
|
11004
12161
|
*/
|
|
11005
12162
|
verificaBanner() {
|
|
12163
|
+
if (!navigator.onLine) {
|
|
12164
|
+
return;
|
|
12165
|
+
}
|
|
11006
12166
|
this._bannerService.verifyBannerTrilha(this.id)
|
|
11007
12167
|
.subscribe((/**
|
|
11008
12168
|
* @param {?} res
|
|
@@ -11013,7 +12173,11 @@ class CursoVisualizadorComponent {
|
|
|
11013
12173
|
if (this.bannerArray.length > 0 && this.bannerArray[0].status === 0) {
|
|
11014
12174
|
this.openDialog(this.bannerArray);
|
|
11015
12175
|
}
|
|
11016
|
-
})
|
|
12176
|
+
}), (/**
|
|
12177
|
+
* @param {?} err
|
|
12178
|
+
* @return {?}
|
|
12179
|
+
*/
|
|
12180
|
+
err => { }));
|
|
11017
12181
|
}
|
|
11018
12182
|
/**
|
|
11019
12183
|
* @param {?} data
|
|
@@ -11054,6 +12218,10 @@ class CursoVisualizadorComponent {
|
|
|
11054
12218
|
getStepData() {
|
|
11055
12219
|
this.loader = true;
|
|
11056
12220
|
this.module = this.id;
|
|
12221
|
+
if (!navigator.onLine) {
|
|
12222
|
+
this.loadOfflineModule(this.id);
|
|
12223
|
+
return;
|
|
12224
|
+
}
|
|
11057
12225
|
this.ambienteVirtualService.getSubEtapa(this.id).subscribe((/**
|
|
11058
12226
|
* @param {?} res
|
|
11059
12227
|
* @return {?}
|
|
@@ -11095,8 +12263,8 @@ class CursoVisualizadorComponent {
|
|
|
11095
12263
|
* @return {?}
|
|
11096
12264
|
*/
|
|
11097
12265
|
err => {
|
|
11098
|
-
console.log("Erro", err);
|
|
11099
|
-
this.
|
|
12266
|
+
console.log("Erro de rede getSubEtapa, tentando carregar offline:", err);
|
|
12267
|
+
this.loadOfflineModule(this.id);
|
|
11100
12268
|
}));
|
|
11101
12269
|
}
|
|
11102
12270
|
/**
|
|
@@ -11297,171 +12465,546 @@ class CursoVisualizadorComponent {
|
|
|
11297
12465
|
/**
|
|
11298
12466
|
* @return {?}
|
|
11299
12467
|
*/
|
|
11300
|
-
done() {
|
|
11301
|
-
console.log('Done ->', this.data[this.currentIndex()].id);
|
|
11302
|
-
this.checkAsRead(this.data[this.currentIndex()].id);
|
|
11303
|
-
console.log('-> DATA', this.data);
|
|
11304
|
-
window.history.back();
|
|
11305
|
-
console.log('BACK');
|
|
12468
|
+
done() {
|
|
12469
|
+
console.log('Done ->', this.data[this.currentIndex()].id);
|
|
12470
|
+
this.checkAsRead(this.data[this.currentIndex()].id);
|
|
12471
|
+
console.log('-> DATA', this.data);
|
|
12472
|
+
window.history.back();
|
|
12473
|
+
console.log('BACK');
|
|
12474
|
+
}
|
|
12475
|
+
/**
|
|
12476
|
+
* @return {?}
|
|
12477
|
+
*/
|
|
12478
|
+
read() {
|
|
12479
|
+
console.log('Read ->', this.data[this.currentIndex()].id);
|
|
12480
|
+
this.checkAsRead(this.data[this.currentIndex()].id);
|
|
12481
|
+
}
|
|
12482
|
+
/**
|
|
12483
|
+
* @return {?}
|
|
12484
|
+
*/
|
|
12485
|
+
back() {
|
|
12486
|
+
/** @type {?} */
|
|
12487
|
+
const urlAfterViewer = sessionStorage.getItem('urlAfterViewer') || '/';
|
|
12488
|
+
sessionStorage.removeItem('urlAfterViewer');
|
|
12489
|
+
this.router.navigate([urlAfterViewer]);
|
|
12490
|
+
}
|
|
12491
|
+
/**
|
|
12492
|
+
* @return {?}
|
|
12493
|
+
*/
|
|
12494
|
+
getUrlEscola() {
|
|
12495
|
+
/** @type {?} */
|
|
12496
|
+
const uris = [
|
|
12497
|
+
{
|
|
12498
|
+
platform: 'asta',
|
|
12499
|
+
uri: '/painel/escola',
|
|
12500
|
+
client_id: '000'
|
|
12501
|
+
},
|
|
12502
|
+
{
|
|
12503
|
+
platform: 'fitness-link',
|
|
12504
|
+
uri: '/painel/meus-cursos',
|
|
12505
|
+
client_id: '000'
|
|
12506
|
+
},
|
|
12507
|
+
{
|
|
12508
|
+
platform: 'lele',
|
|
12509
|
+
uri: '/trilhas',
|
|
12510
|
+
client_id: '000'
|
|
12511
|
+
},
|
|
12512
|
+
{
|
|
12513
|
+
platform: 'universidadesmart',
|
|
12514
|
+
uri: `/training/${this.etapa.item_id}`,
|
|
12515
|
+
client_id: '20'
|
|
12516
|
+
}
|
|
12517
|
+
];
|
|
12518
|
+
/** @type {?} */
|
|
12519
|
+
const escolaUri = uris.find((/**
|
|
12520
|
+
* @param {?} item
|
|
12521
|
+
* @return {?}
|
|
12522
|
+
*/
|
|
12523
|
+
item => {
|
|
12524
|
+
return item.client_id === this.global.loggedUser().client_id;
|
|
12525
|
+
}));
|
|
12526
|
+
return (escolaUri) ? escolaUri.uri : false;
|
|
12527
|
+
}
|
|
12528
|
+
/**
|
|
12529
|
+
* @param {?} idSubStep
|
|
12530
|
+
* @return {?}
|
|
12531
|
+
*/
|
|
12532
|
+
checkAsRead(idSubStep) {
|
|
12533
|
+
if (idSubStep !== undefined) {
|
|
12534
|
+
this.offlineService.isLessonDownloaded(idSubStep).then((/**
|
|
12535
|
+
* @param {?} isDownloaded
|
|
12536
|
+
* @return {?}
|
|
12537
|
+
*/
|
|
12538
|
+
isDownloaded => {
|
|
12539
|
+
if (isDownloaded || !navigator.onLine) {
|
|
12540
|
+
this.offlineService.queueSyncAction({
|
|
12541
|
+
type: 'stage_progress',
|
|
12542
|
+
endpoint: '/api/v2/client/progresso/sub/post?sub_id=' + idSubStep,
|
|
12543
|
+
payload: { subetapa_id: idSubStep, status: 1 }
|
|
12544
|
+
});
|
|
12545
|
+
console.log('[CursoVisualizador] Progresso offline da etapa ' + idSubStep + ' enfileirado para sincronização.');
|
|
12546
|
+
return;
|
|
12547
|
+
}
|
|
12548
|
+
this.ambienteVirtualService.registerNewProgress(idSubStep).subscribe((/**
|
|
12549
|
+
* @param {?} response
|
|
12550
|
+
* @return {?}
|
|
12551
|
+
*/
|
|
12552
|
+
response => {
|
|
12553
|
+
console.log('checkAsRead online sucesso:', response);
|
|
12554
|
+
}), (/**
|
|
12555
|
+
* @param {?} error
|
|
12556
|
+
* @return {?}
|
|
12557
|
+
*/
|
|
12558
|
+
error => {
|
|
12559
|
+
console.warn('Falha ao registrar progresso online, salvando na fila offline:', error);
|
|
12560
|
+
this.offlineService.queueSyncAction({
|
|
12561
|
+
type: 'stage_progress',
|
|
12562
|
+
endpoint: '/api/v2/client/progresso/sub/post?sub_id=' + idSubStep,
|
|
12563
|
+
payload: { subetapa_id: idSubStep, status: 1 }
|
|
12564
|
+
});
|
|
12565
|
+
}));
|
|
12566
|
+
}));
|
|
12567
|
+
}
|
|
12568
|
+
}
|
|
12569
|
+
}
|
|
12570
|
+
CursoVisualizadorComponent.decorators = [
|
|
12571
|
+
{ type: Component, args: [{
|
|
12572
|
+
selector: 'app-curso-visualizador',
|
|
12573
|
+
template: "<div class=\"full-page d-flex align-items-center justify-content-center\" *ngIf=\"!loader\">\r\n <div *ngIf=\"data.length === 0\">\r\n <div class=\"card\">\r\n <div class=\"card-content text-center\">\r\n {{ 'NoSteps' | translate }}\r\n </div>\r\n <div class=\"card-footer text-center\">\r\n <button class=\"btn btn-primary\" (click)=\"back()\">{{ 'ComeBack' | translate }}</button>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"(data.length > 0) && (etapa) && (etapa.available === false)\">\r\n <div class=\"card\">\r\n <div class=\"card-content p-4 text-center\">\r\n <div class=\"mb-3\">\r\n <span class=\"material-icons fa-5x\">event</span>\r\n </div>\r\n {{ 'ModuleAvailableOnlyInThePeriod' | translate }}: {{etapa.dates.date_initial | date:'dd/MM/yyyy'}} {{ 'Until' | translate }} {{etapa.dates.date_final | date:'dd/MM/yyyy'}}\r\n </div>\r\n <div class=\"card-footer text-center\">\r\n <button class=\"btn btn-primary\" (click)=\"back()\">{{ 'ComeBack' | translate }}</button>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n <div id=\"wrapper\" class=\"theme-{{ themeConfig.themeStyle }}\" *ngIf=\"(data.length > 0) && (etapa) && (etapa.available === true)\">\r\n <!-- <div id=\"wrapper\" class=\"theme-dark\" *ngIf=\"(data.length > 0) && (etapa) && (etapa.available === true)\"> -->\r\n <div>\r\n <app-sidebar-curso-visualizador\r\n *ngIf=\"etapa\"\r\n [current]=\"current\"\r\n [data]=\"data\"\r\n [trail]=\"etapa?.item_id\"\r\n [journey]=\"jornada_id\"\r\n [etapa]=\"etapa\"\r\n (event)=\"getSubEtapaByEvent($event)\">\r\n </app-sidebar-curso-visualizador>\r\n </div>\r\n\r\n <div id=\"content\">\r\n <app-navbar-curso\r\n #cursoNavBar\r\n (eventNavbar)=\"eventNavBar($event)\"\r\n [current]=\"current\"\r\n [data]=\"data\"\r\n [etapa]=\"etapa\"\r\n [sub_etapa_id]=\"current.id\"\r\n [journey]=\"jornada_id\"\r\n (event)=\"getSubEtapaByEvent($event)\"\r\n ></app-navbar-curso>\r\n\r\n\r\n <app-viewer #cursoViewer [step]=\"current.id\" [id]=\"id\" (eventNavbar)=\"eventNavBar($event)\" [module]=\"module\" [etapa]=\"etapa\"></app-viewer>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
12574
|
+
providers: [AmbienteVirtualService, bannerService, Trailv2Service],
|
|
12575
|
+
encapsulation: ViewEncapsulation.None,
|
|
12576
|
+
styles: [":root{--app-logo:url(\"/assets/img/logo-visualizador.png\");--bg-dark:#111111!important;--bg-dark-2:#333333!important;--main-color-dark:#dddddd!important;--bg-sidebar-viewer-dark:#181818!important;--bg-btn-sidebar-viewer-dark-active:#ddd!important;--bg-btn-sidebar-viewer-text-dark-active:#ddd!important;--icon-sidebar-viewer-dark:#ddd!important;--link-sidebar-viewer-dark:#ddd!important;--bg-light:#f4f4f4!important;--bg-light-2:#eee!important;--main-color-light:#414141!important;--bg-sidebar-viewer-light:#fff!important;--bg-btn-sidebar-viewer-light-active:#414141!important;--bg-btn-sidebar-viewer-text-light-active:#414141!important;--icon-sidebar-viewer-light:#414141!important;--link-sidebar-viewer-light:#414141!important}.full-page{width:100vw;height:100vh}#wrapper{display:flex;width:100%;--modern-text-color:#ffffff;--modern-bg-overlay:rgba(255, 255, 255, 0.03);--modern-border-color:rgba(255, 255, 255, 0.05);--modern-exit-text:#e5e5e5;--modern-exit-bg:rgba(255, 255, 255, 0.04);--modern-exit-border:rgba(255, 255, 255, 0.08);--modern-exit-hover-text:#ef4444;--modern-exit-hover-bg:rgba(239, 68, 68, 0.15);--modern-exit-hover-border:rgba(239, 68, 68, 0.4);--modern-exit-hover-shadow:rgba(239, 68, 68, 0.2);--modern-exit-icon-color:#ef4444;--modern-exit-icon-hover-color:#ef4444;--modern-badge-locked-bg:rgba(255, 255, 255, 0.08);--modern-badge-locked-color:#8e8e93;--modern-active-lesson-bg:#2d3748;--modern-active-lesson-text:#ffffff;--modern-active-lesson-badge-bg:rgba(0, 0, 0, 0.4)}#wrapper.theme-custom,#wrapper.theme-light{--modern-text-color:#2c3e50;--modern-bg-overlay:rgba(0, 0, 0, 0.03);--modern-border-color:rgba(0, 0, 0, 0.06);--modern-exit-text:#ffffff;--modern-exit-bg:#262626;--modern-exit-border:#262626;--modern-exit-hover-text:#ffffff;--modern-exit-hover-bg:#ef4444;--modern-exit-hover-border:#ef4444;--modern-exit-hover-shadow:rgba(239, 68, 68, 0.4);--modern-exit-icon-color:#ffffff;--modern-exit-icon-hover-color:#ffffff;--modern-badge-locked-bg:rgba(0, 0, 0, 0.05);--modern-badge-locked-color:#7a7a7a;--modern-active-lesson-bg:#f3f4f6;--modern-active-lesson-text:#111827;--modern-active-lesson-badge-bg:rgba(0, 0, 0, 0.08)}#wrapper.theme-custom #sidemenu-viewer .sidemenu-header .logo,#wrapper.theme-light #sidemenu-viewer .sidemenu-header .logo{-webkit-filter:brightness(.2)!important;filter:brightness(.2)!important}#wrapper.theme-custom .navbar-brand,#wrapper.theme-light .navbar-brand{color:#2c3e50!important}#navbar{padding:0 10px;background:0 0;border:none;border-radius:0;margin-bottom:30px;transition:.3s}#navbar .navbar-brand{margin-left:60px;padding-top:5px;text-decoration:none!important}@media (max-width:768px){#navbar .navbar-brand{font-size:13px;line-height:1.2;white-space:normal;margin-right:90px;display:inline-block}}#navbar .btn-close{position:absolute;top:0;right:0;z-index:1}#sidemenu-viewer{width:320px;position:fixed;top:0;left:0;height:100vh;z-index:999;background:var(--bg-sidebar-viewer);transition:.3s;box-shadow:0 10px 30px -12px rgba(0,0,0,.42);overflow:hidden;display:flex!important;flex-direction:column!important}#sidemenu-viewer .nav-container,#sidemenu-viewer .sidebar-module-selector-wrapper,#sidemenu-viewer .sidemenu-header{flex-shrink:0!important}#sidemenu-viewer .tab-content{flex-grow:1!important;min-height:0!important;display:flex!important;flex-direction:column!important}#sidemenu-viewer .tab-content .tab-pane.active{display:flex!important;flex-direction:column!important;flex-grow:1!important;min-height:0!important}#sidemenu-viewer.active{margin-left:-320px}#sidemenu-viewer .sidebarClose{position:absolute;top:15px;right:10px}#sidemenu-viewer .sidemenu-header{display:flex;align-items:center;justify-content:center;height:70px;padding:40px 20px!important;background:var(--bg-sidebar-viewer);border-bottom:1px solid rgba(255,255,255,.1)}#sidemenu-viewer .sidemenu-header .logo{flex-grow:2;width:100%;height:40px;margin:0 auto;text-align:center;background-image:var(--app-logo);background-size:cover;background-position:center;background-repeat:no-repeat}#sidemenu-viewer .sidemenu-header img{width:80%;max-height:40px;-o-object-fit:contain;object-fit:contain;margin:0 auto}#sidemenu-viewer .sidemenu-info{width:100%;min-height:54px;height:auto;background:var(--modern-bg-overlay)!important;color:var(--modern-text-color)!important;border-bottom:1px solid!important;border-left:4px solid!important;display:flex;align-items:center}#sidemenu-viewer .sidemenu-info a{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px 16px!important;color:var(--modern-text-color)!important;text-decoration:none!important;font-size:13px!important;font-weight:600!important;line-height:1.4!important;letter-spacing:.2px!important}#sidemenu-viewer .sidemenu-info a p{margin:0!important;padding:0!important;color:var(--modern-text-color)!important}#sidemenu-viewer .sidemenu-info a:hover{color:var(--modern-text-color)!important}#sidemenu-viewer .sidemenu-info a i{font-size:16px;margin-left:8px;color:var(--bg-btn-sidebar-viewer-active,#f4ac1e)}#sidemenu-viewer .sidemenu-body{flex-grow:1!important;min-height:0!important;height:auto!important;overflow-y:auto!important;background:var(--bg-sidebar-viewer)}#sidemenu-viewer .sidemenu-body::-webkit-scrollbar{width:6px!important;height:6px!important}#sidemenu-viewer .sidemenu-body::-webkit-scrollbar-track{background:rgba(0,0,0,.05)!important;border-radius:10px!important}#sidemenu-viewer .sidemenu-body::-webkit-scrollbar-thumb{background:rgba(128,128,128,.3)!important;border-radius:10px!important;transition:background .2s!important}#sidemenu-viewer .sidemenu-body::-webkit-scrollbar-thumb:hover{background:rgba(128,128,128,.5)!important}#sidemenu-viewer .sidemenu-body ul{margin:0;padding:15px;list-style:none}#sidemenu-viewer .sidemenu-body ul li{display:flex;align-items:center;justify-content:flex-start;flex-direction:row;padding:12px 15px 8px;margin-bottom:15px;border-radius:4px;color:var(--modern-text-color)!important;transition:.3s;font-size:.9em!important}#sidemenu-viewer .sidemenu-body ul li:hover{background:rgba(215,215,215,.2);color:var(--modern-text-color)!important}#sidemenu-viewer .sidemenu-body ul li.active{background:var(--bg-btn-sidebar-viewer-active)!important;color:var(--bg-btn-sidebar-viewer-text-active)!important;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(57,75,85,.4)}#sidemenu-viewer .sidemenu-body ul li.active .icon{color:var(--bg-btn-sidebar-viewer-text-active)!important}#sidemenu-viewer .sidemenu-body ul li .icon{color:var(--icon-sidebar-viewer);float:left;margin-right:10px}#sidemenu-viewer .sidemenu-body ul li .text{float:left;font-size:.9em!important;margin-top:2px}#sidemenu-viewer .sidemenu-body-mini{flex-grow:1!important;min-height:0!important;height:auto!important}#content{width:calc(100% - 320px);padding:15px 40px;min-height:100vh;transition:.3s;position:absolute;top:0;right:0;background:#eee}#content.active{width:100%}.notepad-icons{display:flex;align-items:center;justify-content:space-between;font-size:1.15em;margin-top:5px}.notepad-icons a{color:var(--main-color-viewer)}.notepad-icons a:hover{text-decoration:none}.notepad{margin-top:15px}.notepad input[type=text],.notepad textarea{box-shadow:none}.btn-toggler{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2;width:45px;height:45px;color:var(--main-color-viewer);background-color:#fff;border-color:#fff;box-shadow:0 2px 2px 0 rgba(153,153,153,.14),0 3px 1px -2px rgba(153,153,153,.2),0 1px 5px 0 rgba(153,153,153,.12);border-radius:50%}.btn-toggler span{position:absolute;display:flex;align-items:center;justify-content:center;width:45px;height:45px;border-radius:50%}.btn-toggler.focus,.btn-toggler:focus,.btn-toggler:hover{color:var(--main-color-viewer);background-color:#fff;border-color:#fff;box-shadow:0 4px 25px 0 rgba(0,0,0,.14),0 7px 15px -5px rgba(57,75,85,.2)}.btn-simple{background-color:#fff;border:none;cursor:pointer;display:block;color:#333;text-decoration:none;padding:14px 0}.trail-select{width:180px;float:right;margin:0 10px}.overflow-hidden{overflow:hidden}.fw-bold a{font-weight:700}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{background-color:var(--bg-btn-course)}.nav-pills .nav-link{color:var(--bg-btn-viewer)!important}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{background-color:var(--bg-btn-viewer)!important;color:#fff!important}.sidebar .nav li>a,.sidebar .nav li>a:focus,.sidebar .nav li>a:hover{background-color:var(--bg-btn-course)!important}.sidebar .user .info>a{padding-left:20px!important}.info{border-bottom:1px solid #eee}.cursor-pointer{cursor:pointer}.nav-container{padding:0;border-top:1px solid #eee;border-bottom:1px solid #eee}.mask-item{position:relative;width:100%;height:100%;background:#000;z-index:70;display:flex;align-items:center;justify-content:center;flex-direction:column;top:0;transition:.5s;opacity:0}.mask-item .material-icons{color:#fff;font-size:92px}.stage-video{background:#000}.media{display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;background-repeat:no-repeat;background-size:cover;background-position:center center}.media .video{width:100%;height:100%}.media .play-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.theme-dark #content{background-color:var(--bg-dark)!important}.theme-dark #navbar .navbar-brand{color:var(--link-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer,.theme-dark #sidemenu-viewer .sidemenu-header{background:var(--bg-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer .sidemenu-header .logo{background-image:var(--app-logo)!important}.theme-dark #sidemenu-viewer .sidemenu-info{background:var(--bg-sidebar-viewer-dark)!important;color:var(--link-sidebar-viewer-dark)!important;border-bottom:1px solid rgba(255,255,255,.1)}.theme-dark #sidemenu-viewer .sidemenu-info a,.theme-dark #sidemenu-viewer .sidemenu-info a:hover{color:var(--link-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer .sidemenu-body{background:var(--bg-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer .sidemenu-body ul li{color:var(--link-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer .sidemenu-body ul li:hover{background:rgba(215,215,215,.2);color:var(--link-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer .sidemenu-body ul li.active{background:var(--bg-btn-sidebar-viewer-dark-active)!important;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(57,75,85,.4);color:var(--bg-btn-sidebar-viewer-text-dark-active)!important}.theme-dark #sidemenu-viewer .sidemenu-body ul li.active .icon{color:var(--bg-btn-sidebar-viewer-text-dark-active)!important}.theme-dark #sidemenu-viewer .sidemenu-body ul li .icon{color:var(--icon-sidebar-viewer-dark)!important}.theme-dark .btn-toggler{color:var(--main-color-dark)!important;background-color:var(--bg-sidebar-viewer-dark)!important;border-color:var(--bg-sidebar-viewer-dark)!important}.theme-dark .btn-toggler:hover{color:var(--icon-sidebar-viewer-dark)!important;background-color:var(--bg-sidebar-viewer-dark)!important;border-color:var(--bg-sidebar-viewer-dark)!important}.theme-dark .btn-toggler.focus,.theme-dark .btn-toggler:focus{color:var(--main-color-dark);background-color:var(--bg-sidebar-viewer-dark)!important;border-color:var(--bg-sidebar-viewer-dark)!important}.theme-dark .card{background-color:var(--bg-sidebar-viewer-dark)!important;box-shadow:none!important}.theme-dark .mat-checkbox-checked.mat-accent .mat-checkbox-background,.theme-dark .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background,.theme-dark .mat-checkbox:not(.mat-checkbox-disabled).mat-accent .mat-checkbox-ripple .mat-ripple-element{background-color:var(--main-color-dark)!important}.theme-dark .mat-checkbox-checkmark-path{stroke:#181818!important}.theme-dark .mat-checkbox-label{color:var(--main-color-dark)!important}.theme-dark .conclusion-container{background-color:var(--bg-sidebar-viewer-dark)!important}.theme-dark fieldset p{color:var(--main-color-dark)}.theme-dark input,.theme-dark textarea{border:1px solid rgba(255,255,255,.3);background:var(--bg-dark-2)!important;color:var(--main-color-dark)!important;outline:0!important}.theme-light #navbar .navbar-brand{color:var(--link-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer,.theme-light #sidemenu-viewer .sidemenu-header{background:var(--bg-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer .sidemenu-header .logo{background-image:var(--app-logo)!important}.theme-light #sidemenu-viewer .sidemenu-info{background:var(--bg-sidebar-viewer-light)!important;color:var(--link-sidebar-viewer-light)!important;border-bottom:1px solid rgba(255,255,255,.1)}.theme-light #sidemenu-viewer .sidemenu-info a,.theme-light #sidemenu-viewer .sidemenu-info a:hover{color:var(--link-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer .sidemenu-body{background:var(--bg-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer .sidemenu-body ul li{color:var(--link-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer .sidemenu-body ul li:hover{background:rgba(215,215,215,.2);color:var(--link-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer .sidemenu-body ul li.active{background:var(--bg-btn-sidebar-viewer-light-active)!important;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(57,75,85,.4);color:var(--bg-btn-sidebar-viewer-text-light-active)!important}.theme-light #sidemenu-viewer .sidemenu-body ul li.active .icon{color:var(--bg-btn-sidebar-viewer-text-light-active)!important}.theme-light #sidemenu-viewer .sidemenu-body ul li .icon{color:var(--icon-sidebar-viewer-light)!important}.theme-light .btn-toggler{color:var(--main-color-light)!important;background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-light .btn-toggler:hover{color:var(--icon-sidebar-viewer-light)!important;background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-light .btn-toggler.focus,.theme-light .btn-toggler:focus{color:var(--main-color-light);background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-light .card{box-shadow:none!important}.theme-light .mat-checkbox-checked.mat-accent .mat-checkbox-background,.theme-light .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background,.theme-light .mat-checkbox:not(.mat-checkbox-disabled).mat-accent .mat-checkbox-ripple .mat-ripple-element{background-color:var(--main-color-light)!important}.theme-light .mat-checkbox-checkmark-path{stroke:#181818!important}.theme-light .mat-checkbox-label{color:var(--main-color-light)!important}.theme-custom #content{background-color:var(--bg-client)!important}.theme-custom #navbar .navbar-brand{color:var(--link-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer,.theme-custom #sidemenu-viewer .sidemenu-header{background:var(--bg-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer .sidemenu-header .logo{background-image:var(--app-logo)!important}.theme-custom #sidemenu-viewer .sidemenu-info{background:var(--bg-sidebar-viewer-light)!important;color:var(--link-sidebar-viewer-light)!important;border-bottom:1px solid rgba(255,255,255,.1)}.theme-custom #sidemenu-viewer .sidemenu-info a,.theme-custom #sidemenu-viewer .sidemenu-info a:hover{color:var(--link-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer .sidemenu-body{background:var(--bg-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer .sidemenu-body ul li{color:var(--link-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer .sidemenu-body ul li:hover{background:rgba(215,215,215,.2);color:var(--link-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer .sidemenu-body ul li.active{background:var(--bg-btn-sidebar-viewer-light-active)!important;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(57,75,85,.4);color:var(--bg-btn-sidebar-viewer-text-light-active)!important}.theme-custom #sidemenu-viewer .sidemenu-body ul li.active .icon{color:var(--bg-btn-sidebar-viewer-text-light-active)!important}.theme-custom #sidemenu-viewer .sidemenu-body ul li .icon{color:var(--icon-sidebar-viewer-light)!important}.theme-custom .btn-toggler{color:var(--main-color-light)!important;background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-custom .btn-toggler:hover{color:var(--icon-sidebar-viewer-light)!important;background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-custom .btn-toggler.focus,.theme-custom .btn-toggler:focus{color:var(--main-color-light);background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-custom .card,.theme-custom .midia{background-color:var(--bg-sidebar-viewer-light)!important;box-shadow:none!important}.theme-custom .midia p,.theme-custom .shared-subtitle,.theme-custom .shared-title{color:var(--main-color-light)!important}.theme-custom .mat-checkbox-checked.mat-accent .mat-checkbox-background,.theme-custom .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background,.theme-custom .mat-checkbox:not(.mat-checkbox-disabled).mat-accent .mat-checkbox-ripple .mat-ripple-element{background-color:var(--main-color-light)!important}.theme-custom .mat-checkbox-checkmark-path{stroke:#181818!important}.theme-custom .mat-checkbox-label{color:var(--main-color-light)!important}.theme-custom .conclusion-container{background-color:var(--bg-sidebar-viewer-light)!important}@media (max-width:767px){#sidemenu-viewer{background:#fff;left:-999px}#sidemenu-viewer.active{left:320px!important}#sidemenu-viewer .sidemenu-header{display:block;text-align:left;height:auto;margin:0 0 20px;padding:15px 20px 12px!important;border-bottom:1px solid #eee}#sidemenu-viewer .sidemenu-header span{font-weight:500}#content{width:100%;padding:15px 0}#content.active{width:100%}#content.active .navbar{margin-left:0;transition:.3s}}::ng-deep app-viewer p{background-color:transparent!important}@media (min-width:992px) and (max-width:1199px){.intro-container-video{width:500px}}@media (min-width:1200px) and (max-width:1366px){.intro-container-video{width:700px}}@media (min-width:1440px) and (max-width:1600px){.intro-container-video{width:700px}}@media (min-width:1920px){.intro-container-video{width:700px}}.audio-cover{max-height:400px;width:100%;margin-bottom:20px;margin-top:20px}.audio-cover img{width:100%;height:100%;-o-object-position:center;object-position:center;-o-object-fit:contain;object-fit:contain;background:#eee}#sidemenu-viewer .modern-lessons-list{margin:0!important;padding:12px!important;list-style:none!important;display:flex!important;flex-direction:column!important;gap:12px!important}#sidemenu-viewer .modern-lessons-list .lesson-item{display:block!important;padding:0!important;margin:0!important;border-radius:12px!important;background:var(--modern-bg-overlay)!important;border:1px solid!important;overflow:hidden!important;transition:.3s cubic-bezier(.25,.8,.25,1)!important;box-shadow:none!important}#sidemenu-viewer .modern-lessons-list .lesson-item:not(.locked){cursor:pointer!important}#sidemenu-viewer .modern-lessons-list .lesson-item:not(.locked):hover{background:rgba(128,128,128,.08)!important;border-color:rgba(128,128,128,.2)!important;transform:translateY(-2px)!important;box-shadow:0 6px 20px rgba(0,0,0,.15)!important}#sidemenu-viewer .modern-lessons-list .lesson-item:not(.locked):hover .type-icon{transform:scale(1.15)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.locked{opacity:.5!important;cursor:not-allowed!important;background:var(--modern-bg-overlay)!important;border-color:var(--modern-border-color)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.locked .lesson-thumb-wrapper{-webkit-filter:grayscale(.5) brightness(.85)!important;filter:grayscale(.5) brightness(.85)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.locked .lesson-thumb-wrapper .type-icon{opacity:.65!important}#sidemenu-viewer .modern-lessons-list .lesson-item.locked .lesson-title{color:var(--modern-text-color)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.active{background:var(--modern-active-lesson-bg)!important;border-color:var(--bg-btn-sidebar-viewer-active,#f4ac1e)!important;box-shadow:0 4px 15px rgba(0,0,0,.1)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.active .lesson-title{color:var(--modern-active-lesson-text)!important;font-weight:600!important}#sidemenu-viewer .modern-lessons-list .lesson-item.active .lesson-status-row .status-badge.status-active{background:var(--modern-active-lesson-badge-bg)!important;color:var(--modern-active-lesson-text)!important;border:1px solid rgba(128,128,128,.2)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.active .lesson-status-row .status-badge.status-active i{color:var(--modern-active-lesson-text)!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-card{display:flex!important;flex-direction:row!important;align-items:stretch!important;padding:10px!important;gap:12px!important;min-height:80px!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper{position:relative!important;flex-shrink:0!important;width:90px!important;height:60px!important;border-radius:8px!important;overflow:hidden!important;border:1px solid rgba(255,255,255,.1)!important;display:flex!important;align-items:center!important;justify-content:center!important;transition:.3s!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper .lesson-thumb-video-element{position:absolute!important;top:0!important;left:0!important;width:100%!important;height:100%!important;-o-object-fit:cover!important;object-fit:cover!important;pointer-events:none!important;z-index:0!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-video{background:linear-gradient(135deg,#f97316 0,#c2410c 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-pdf{background:linear-gradient(135deg,#ef4444 0,#b91c1c 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-avaliation{background:linear-gradient(135deg,#eab308 0,#a16207 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-conclusion{background:linear-gradient(135deg,#22c55e 0,#15803d 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-correct-incorrect{background:linear-gradient(135deg,#14b8a6 0,#0f766e 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-download{background:linear-gradient(135deg,#3b82f6 0,#1d4ed8 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-form-step{background:linear-gradient(135deg,#f97316 0,#ea580c 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-forum{background:linear-gradient(135deg,#ec4899 0,#be185d 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-feedback{background:linear-gradient(135deg,#a855f7 0,#7e22ce 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-image{background:linear-gradient(135deg,#06b6d4 0,#0e7490 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-multi-choice{background:linear-gradient(135deg,#6366f1 0,#4338ca 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-text{background:linear-gradient(135deg,#64748b 0,#475569 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-upload{background:linear-gradient(135deg,#0d9488 0,#115e59 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-audio{background:linear-gradient(135deg,#f59e0b 0,#b45309 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-random-questions{background:linear-gradient(135deg,#78350f 0,#451a03 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-research{background:linear-gradient(135deg,#d946ef 0,#86198f 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-page{background:linear-gradient(135deg,#0ea5e9 0,#0369a1 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-default{background:linear-gradient(135deg,#4b5563 0,#1f2937 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper .type-icon{font-size:24px!important;color:rgba(255,255,255,.95)!important;text-shadow:0 2px 6px rgba(0,0,0,.3)!important;transition:transform .3s cubic-bezier(.175,.885,.32,1.275)!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper .lesson-lock-badge{position:absolute!important;top:4px!important;right:4px!important;width:20px!important;height:20px!important;background:rgba(0,0,0,.65)!important;border:1px solid rgba(255,255,255,.15)!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;box-shadow:0 2px 6px rgba(0,0,0,.3)!important;transition:.3s!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper .lesson-lock-badge i{color:#fff!important;font-size:11px!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.has-thumb-img{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.has-thumb-img::before{content:\"\"!important;position:absolute!important;top:0!important;left:0!important;width:100%!important;height:100%!important;background:rgba(0,0,0,.35)!important;z-index:1!important;transition:background .3s!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.has-thumb-img .type-icon{position:relative!important;z-index:2!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.has-thumb-img .lesson-lock-badge{z-index:3!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-info{display:flex!important;flex-direction:column!important;justify-content:space-between!important;flex-grow:1!important;min-width:0!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-title{font-size:13px!important;line-height:1.4!important;color:var(--modern-text-color)!important;font-weight:500!important;word-break:break-word!important;margin-top:0!important;margin-bottom:4px!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-status-row{display:flex!important;align-items:center!important;margin-top:auto!important}#sidemenu-viewer .modern-lessons-list .lesson-item .status-badge{display:inline-flex!important;align-items:center!important;gap:4px!important;font-size:10px!important;font-weight:600!important;text-transform:uppercase!important;letter-spacing:.5px!important;padding:2px 8px!important;border-radius:20px!important}#sidemenu-viewer .modern-lessons-list .lesson-item .status-badge i{font-size:12px!important}#sidemenu-viewer .modern-lessons-list .lesson-item .status-badge.status-active{background:rgba(244,172,30,.2)!important;color:#f4ac1e!important}#sidemenu-viewer .modern-lessons-list .lesson-item .status-badge.status-done{background:rgba(76,175,80,.15)!important;color:#4caf50!important}#sidemenu-viewer .modern-lessons-list .lesson-item .status-badge.status-locked{background:var(--modern-badge-locked-bg)!important;color:var(--modern-badge-locked-color)!important}.sidebarCollapse.btn-toggler{position:absolute!important;display:flex!important;align-items:center!important;justify-content:center!important;z-index:10!important;width:42px!important;height:42px!important;border-radius:50%!important;border:1px solid rgba(255,255,255,.08)!important;background:rgba(255,255,255,.04)!important;box-shadow:0 4px 10px rgba(0,0,0,.15)!important;transition:.3s cubic-bezier(.25,.8,.25,1)!important;cursor:pointer!important;outline:0!important;top:14px!important;left:20px!important}.sidebarCollapse.btn-toggler i{font-size:22px!important;color:#d1d1d6!important;transition:transform .3s!important}.sidebarCollapse.btn-toggler .icon-close{display:block!important}.sidebarCollapse.btn-toggler .icon-open{display:none!important}.sidebarCollapse.btn-toggler:hover{background:var(--bg-btn-sidebar-viewer-active,#f4ac1e)!important;border-color:var(--bg-btn-sidebar-viewer-active,#f4ac1e)!important;box-shadow:0 4px 15px rgba(244,172,30,.3)!important;transform:scale(1.05)!important}.sidebarCollapse.btn-toggler:hover i{color:#000!important}#content.active .sidebarCollapse.btn-toggler .icon-close{display:none!important}#content.active .sidebarCollapse.btn-toggler .icon-open{display:block!important}.navbar-brand{position:relative!important;font-size:15px!important;font-weight:600!important;color:#fff!important;letter-spacing:.3px!important;margin-left:75px!important;line-height:1.4!important;padding:0 0 6px!important;display:inline-flex!important;align-items:center!important;height:42px!important;cursor:default!important}.navbar-brand::after{content:\"\"!important;position:absolute!important;bottom:2px!important;left:0!important;width:100%!important;height:3px!important;background:var(--bg-btn-sidebar-viewer-active,#f4ac1e)!important;border-radius:4px!important}.btn-close-container{position:absolute!important;top:14px!important;right:15px!important;z-index:10!important}.btn-close-container .btn-exit{display:inline-flex!important;align-items:center!important;gap:8px!important;padding:8px 18px!important;border-radius:20px!important;border:1px solid!important;background:var(--modern-exit-bg)!important;color:var(--modern-exit-text)!important;font-size:11px!important;font-weight:600!important;text-transform:uppercase!important;letter-spacing:.8px!important;text-decoration:none!important;box-shadow:0 4px 10px rgba(0,0,0,.15)!important;transition:.3s cubic-bezier(.25,.8,.25,1)!important;cursor:pointer!important}.btn-close-container .btn-exit i{font-size:16px!important;color:var(--modern-exit-icon-color)!important;transition:transform .3s!important}@media (max-width:768px){.navbar-brand{height:auto!important;min-height:42px!important;padding-bottom:12px!important}.btn-close-container .btn-exit{padding:4px 10px!important;font-size:9px!important;gap:4px!important}.btn-close-container .btn-exit i{font-size:14px!important}}.btn-close-container .btn-exit:hover{background:var(--modern-exit-hover-bg)!important;border-color:var(--modern-exit-hover-border)!important;color:var(--modern-exit-hover-text)!important;box-shadow:0 4px 15px var(--modern-exit-hover-shadow)!important;transform:scale(1.02)!important}.btn-close-container .btn-exit:hover i{transform:translateX(2px)!important;color:var(--modern-exit-icon-hover-color)!important}.theme-custom #sidemenu-viewer .sidemenu-header .logo,.theme-light #sidemenu-viewer .sidemenu-header .logo{-webkit-filter:brightness(.2)!important;filter:brightness(.2)!important}.modern-progress-container{padding:16px!important;display:flex!important;flex-direction:column!important;gap:8px!important}.modern-progress-container.footer-progress{position:static!important;flex-shrink:0!important;width:100%!important;background:var(--modern-active-lesson-bg)!important;border-top:1px solid #4caf50!important;border-bottom:none!important;box-shadow:0 -4px 15px rgba(0,0,0,.1)!important;z-index:10!important}.modern-progress-container .progress-info-row{display:flex!important;justify-content:space-between!important;align-items:center!important;font-size:11px!important;font-weight:500!important;letter-spacing:.3px!important;color:var(--modern-active-lesson-text)!important;opacity:.9!important}.modern-progress-container .progress-info-row .progress-label{text-transform:uppercase!important;font-size:9px!important;font-weight:700!important;opacity:.7!important}.modern-progress-container .progress-info-row .progress-stats{display:flex!important;align-items:center!important;gap:6px!important}.modern-progress-container .progress-info-row .progress-stats .progress-detail{opacity:.7!important;font-size:10px!important;font-weight:600!important}.modern-progress-container .progress-info-row .progress-stats .progress-pct{font-weight:700!important;color:#4caf50!important}.modern-progress-container .progress-bar-track{width:100%!important;height:6px!important;background:rgba(0,0,0,.15)!important;border:1px solid rgba(0,0,0,.05)!important;border-radius:4px!important;overflow:hidden!important}.modern-progress-container .progress-bar-track .progress-bar-fill{height:100%!important;background:#4caf50!important;border-radius:4px!important;transition:width .6s cubic-bezier(.4,0,.2,1)!important}"]
|
|
12577
|
+
}] }
|
|
12578
|
+
];
|
|
12579
|
+
/** @nocollapse */
|
|
12580
|
+
CursoVisualizadorComponent.ctorParameters = () => [
|
|
12581
|
+
{ type: AmbienteVirtualService },
|
|
12582
|
+
{ type: ActivatedRoute },
|
|
12583
|
+
{ type: Router },
|
|
12584
|
+
{ type: bannerService },
|
|
12585
|
+
{ type: Trailv2Service },
|
|
12586
|
+
{ type: MatDialog },
|
|
12587
|
+
{ type: Global },
|
|
12588
|
+
{ type: Location },
|
|
12589
|
+
{ type: OfflineStorageService }
|
|
12590
|
+
];
|
|
12591
|
+
CursoVisualizadorComponent.propDecorators = {
|
|
12592
|
+
cursoViewer: [{ type: ViewChild, args: ['cursoViewer', { static: false },] }],
|
|
12593
|
+
cursoNavBar: [{ type: ViewChild, args: ['cursoNavBar', { static: false },] }]
|
|
12594
|
+
};
|
|
12595
|
+
if (false) {
|
|
12596
|
+
/** @type {?} */
|
|
12597
|
+
CursoVisualizadorComponent.prototype.id;
|
|
12598
|
+
/** @type {?} */
|
|
12599
|
+
CursoVisualizadorComponent.prototype.loader;
|
|
12600
|
+
/** @type {?} */
|
|
12601
|
+
CursoVisualizadorComponent.prototype.bannerArray;
|
|
12602
|
+
/** @type {?} */
|
|
12603
|
+
CursoVisualizadorComponent.prototype.cursoViewer;
|
|
12604
|
+
/** @type {?} */
|
|
12605
|
+
CursoVisualizadorComponent.prototype.cursoNavBar;
|
|
12606
|
+
/** @type {?} */
|
|
12607
|
+
CursoVisualizadorComponent.prototype.data;
|
|
12608
|
+
/** @type {?} */
|
|
12609
|
+
CursoVisualizadorComponent.prototype.current;
|
|
12610
|
+
/** @type {?} */
|
|
12611
|
+
CursoVisualizadorComponent.prototype.module;
|
|
12612
|
+
/** @type {?} */
|
|
12613
|
+
CursoVisualizadorComponent.prototype.queryParams;
|
|
12614
|
+
/** @type {?} */
|
|
12615
|
+
CursoVisualizadorComponent.prototype.etapa;
|
|
12616
|
+
/** @type {?} */
|
|
12617
|
+
CursoVisualizadorComponent.prototype.jornada_id;
|
|
12618
|
+
/** @type {?} */
|
|
12619
|
+
CursoVisualizadorComponent.prototype.name_etapa;
|
|
12620
|
+
/** @type {?} */
|
|
12621
|
+
CursoVisualizadorComponent.prototype.activeSubetapa;
|
|
12622
|
+
/** @type {?} */
|
|
12623
|
+
CursoVisualizadorComponent.prototype.acesso_jornada;
|
|
12624
|
+
/**
|
|
12625
|
+
* @type {?}
|
|
12626
|
+
* @private
|
|
12627
|
+
*/
|
|
12628
|
+
CursoVisualizadorComponent.prototype.ambienteVirtualService;
|
|
12629
|
+
/**
|
|
12630
|
+
* @type {?}
|
|
12631
|
+
* @private
|
|
12632
|
+
*/
|
|
12633
|
+
CursoVisualizadorComponent.prototype.activatedRoute;
|
|
12634
|
+
/**
|
|
12635
|
+
* @type {?}
|
|
12636
|
+
* @private
|
|
12637
|
+
*/
|
|
12638
|
+
CursoVisualizadorComponent.prototype.router;
|
|
12639
|
+
/**
|
|
12640
|
+
* @type {?}
|
|
12641
|
+
* @private
|
|
12642
|
+
*/
|
|
12643
|
+
CursoVisualizadorComponent.prototype._bannerService;
|
|
12644
|
+
/** @type {?} */
|
|
12645
|
+
CursoVisualizadorComponent.prototype.trailService;
|
|
12646
|
+
/** @type {?} */
|
|
12647
|
+
CursoVisualizadorComponent.prototype.dialog;
|
|
12648
|
+
/** @type {?} */
|
|
12649
|
+
CursoVisualizadorComponent.prototype.global;
|
|
12650
|
+
/**
|
|
12651
|
+
* @type {?}
|
|
12652
|
+
* @private
|
|
12653
|
+
*/
|
|
12654
|
+
CursoVisualizadorComponent.prototype.location;
|
|
12655
|
+
/** @type {?} */
|
|
12656
|
+
CursoVisualizadorComponent.prototype.offlineService;
|
|
12657
|
+
}
|
|
12658
|
+
|
|
12659
|
+
/**
|
|
12660
|
+
* @fileoverview added by tsickle
|
|
12661
|
+
* Generated from: lib/visualizador/offline-manager/offline-manager.component.ts
|
|
12662
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
12663
|
+
*/
|
|
12664
|
+
class OfflineManagerModalComponent {
|
|
12665
|
+
/**
|
|
12666
|
+
* @param {?} offlineService
|
|
12667
|
+
* @param {?} ambienteVirtualService
|
|
12668
|
+
* @param {?} dialogRef
|
|
12669
|
+
* @param {?} data
|
|
12670
|
+
*/
|
|
12671
|
+
constructor(offlineService, ambienteVirtualService, dialogRef, data) {
|
|
12672
|
+
this.offlineService = offlineService;
|
|
12673
|
+
this.ambienteVirtualService = ambienteVirtualService;
|
|
12674
|
+
this.dialogRef = dialogRef;
|
|
12675
|
+
this.data = data;
|
|
12676
|
+
this.currentMenuItems = [];
|
|
12677
|
+
this.selectOfflineLesson = new EventEmitter();
|
|
12678
|
+
this.isOnline = true;
|
|
12679
|
+
this.downloadedLessons = [];
|
|
12680
|
+
this.totalStorageUsed = '0 MB';
|
|
12681
|
+
this.currentProgress = null;
|
|
12682
|
+
this.isCurrentLessonDownloaded = false;
|
|
12683
|
+
this.isDownloading = false;
|
|
12684
|
+
this.batchStatus = {
|
|
12685
|
+
current: 0,
|
|
12686
|
+
total: 0,
|
|
12687
|
+
currentLessonName: '',
|
|
12688
|
+
overallProgress: 0
|
|
12689
|
+
};
|
|
12690
|
+
this.subscriptions = new Subscription();
|
|
12691
|
+
if (data) {
|
|
12692
|
+
this.currentEtapa = data.etapa || this.currentEtapa;
|
|
12693
|
+
this.currentStageData = data.stageData || this.currentStageData;
|
|
12694
|
+
this.currentMenuItems = data.menuItems || this.currentMenuItems;
|
|
12695
|
+
}
|
|
12696
|
+
}
|
|
12697
|
+
/**
|
|
12698
|
+
* @return {?}
|
|
12699
|
+
*/
|
|
12700
|
+
ngOnInit() {
|
|
12701
|
+
this.subscriptions.add(this.offlineService.isOnline$.subscribe((/**
|
|
12702
|
+
* @param {?} online
|
|
12703
|
+
* @return {?}
|
|
12704
|
+
*/
|
|
12705
|
+
online => {
|
|
12706
|
+
this.isOnline = online;
|
|
12707
|
+
})));
|
|
12708
|
+
this.subscriptions.add(this.offlineService.downloadedLessons$.subscribe((/**
|
|
12709
|
+
* @param {?} lessons
|
|
12710
|
+
* @return {?}
|
|
12711
|
+
*/
|
|
12712
|
+
lessons => {
|
|
12713
|
+
this.downloadedLessons = lessons;
|
|
12714
|
+
this.totalStorageUsed = this.offlineService.getTotalStorageUsed(lessons).formatted;
|
|
12715
|
+
this.checkIfCurrentLessonIsDownloaded();
|
|
12716
|
+
})));
|
|
12717
|
+
this.subscriptions.add(this.offlineService.downloadProgress$.subscribe((/**
|
|
12718
|
+
* @param {?} progressMap
|
|
12719
|
+
* @return {?}
|
|
12720
|
+
*/
|
|
12721
|
+
progressMap => {
|
|
12722
|
+
if (this.currentEtapa && progressMap[this.currentEtapa.id]) {
|
|
12723
|
+
this.currentProgress = progressMap[this.currentEtapa.id];
|
|
12724
|
+
if (!this.batchStatus.total) {
|
|
12725
|
+
this.isDownloading = this.currentProgress.status === 'downloading';
|
|
12726
|
+
}
|
|
12727
|
+
}
|
|
12728
|
+
})));
|
|
12729
|
+
}
|
|
12730
|
+
/**
|
|
12731
|
+
* @return {?}
|
|
12732
|
+
*/
|
|
12733
|
+
ngOnDestroy() {
|
|
12734
|
+
this.subscriptions.unsubscribe();
|
|
12735
|
+
}
|
|
12736
|
+
/**
|
|
12737
|
+
* @return {?}
|
|
12738
|
+
*/
|
|
12739
|
+
checkIfCurrentLessonIsDownloaded() {
|
|
12740
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12741
|
+
if (this.currentEtapa && this.currentEtapa.id) {
|
|
12742
|
+
this.isCurrentLessonDownloaded = yield this.offlineService.isLessonDownloaded(this.currentEtapa.id);
|
|
12743
|
+
}
|
|
12744
|
+
});
|
|
12745
|
+
}
|
|
12746
|
+
/**
|
|
12747
|
+
* Baixa TODAS as aulas deste módulo em lote
|
|
12748
|
+
* @return {?}
|
|
12749
|
+
*/
|
|
12750
|
+
downloadAllModuleLessons() {
|
|
12751
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12752
|
+
if (!this.currentMenuItems || this.currentMenuItems.length === 0) {
|
|
12753
|
+
return this.downloadCurrentLesson();
|
|
12754
|
+
}
|
|
12755
|
+
this.isDownloading = true;
|
|
12756
|
+
/** @type {?} */
|
|
12757
|
+
const total = this.currentMenuItems.length;
|
|
12758
|
+
this.batchStatus = {
|
|
12759
|
+
current: 0,
|
|
12760
|
+
total: total,
|
|
12761
|
+
currentLessonName: '',
|
|
12762
|
+
overallProgress: 0
|
|
12763
|
+
};
|
|
12764
|
+
try {
|
|
12765
|
+
for (let i = 0; i < total; i++) {
|
|
12766
|
+
/** @type {?} */
|
|
12767
|
+
const item = this.currentMenuItems[i];
|
|
12768
|
+
this.batchStatus.current = i + 1;
|
|
12769
|
+
this.batchStatus.currentLessonName = item.nome || item.title || ('Aula ' + (i + 1));
|
|
12770
|
+
this.batchStatus.overallProgress = Math.round(((i) / total) * 100);
|
|
12771
|
+
/** @type {?} */
|
|
12772
|
+
let stageContent = null;
|
|
12773
|
+
/** @type {?} */
|
|
12774
|
+
let videoUrl = '';
|
|
12775
|
+
// Se tiver o serviço de ambiente virtual, busca os dados de conteúdo da aula
|
|
12776
|
+
if (this.ambienteVirtualService && item.id) {
|
|
12777
|
+
try {
|
|
12778
|
+
/** @type {?} */
|
|
12779
|
+
const res = yield this.ambienteVirtualService.getContent(item.id).toPromise();
|
|
12780
|
+
if (res && res.data && res.data[0] && res.data[0].value) {
|
|
12781
|
+
stageContent = res.data[0].value;
|
|
12782
|
+
}
|
|
12783
|
+
}
|
|
12784
|
+
catch (e) {
|
|
12785
|
+
console.warn('[OfflineManager] Não foi possível carregar conteúdo da aula ' + item.id, e);
|
|
12786
|
+
}
|
|
12787
|
+
}
|
|
12788
|
+
// Se for a aula atual já carregada em tela
|
|
12789
|
+
if (!stageContent && this.currentStageData && this.currentEtapa && this.currentEtapa.id === item.id) {
|
|
12790
|
+
stageContent = this.currentStageData;
|
|
12791
|
+
}
|
|
12792
|
+
if (stageContent && Array.isArray(stageContent)) {
|
|
12793
|
+
/** @type {?} */
|
|
12794
|
+
const videoComp = stageContent.find((/**
|
|
12795
|
+
* @param {?} c
|
|
12796
|
+
* @return {?}
|
|
12797
|
+
*/
|
|
12798
|
+
function (c) {
|
|
12799
|
+
return (c && c.type === 'video') || (c && c.value && c.value.type === 'video');
|
|
12800
|
+
}));
|
|
12801
|
+
if (videoComp) {
|
|
12802
|
+
videoUrl = videoComp.link || (videoComp.value ? videoComp.value.link : '') || videoComp.source_path || (videoComp.value ? videoComp.value.source_path : '') || '';
|
|
12803
|
+
}
|
|
12804
|
+
}
|
|
12805
|
+
else {
|
|
12806
|
+
stageContent = [{
|
|
12807
|
+
type: 'video',
|
|
12808
|
+
title: item.nome || item.title || ('Aula ' + (i + 1)),
|
|
12809
|
+
subTitle: this.currentEtapa ? (this.currentEtapa.nome || this.currentEtapa.title || '') : '',
|
|
12810
|
+
source: 'file',
|
|
12811
|
+
source_path: item.tumb || item.thumb || '',
|
|
12812
|
+
showVideoControl: true,
|
|
12813
|
+
button: { hide: true }
|
|
12814
|
+
}];
|
|
12815
|
+
}
|
|
12816
|
+
// Faz o download e salvamento da aula individual
|
|
12817
|
+
yield this.offlineService.downloadLesson({
|
|
12818
|
+
id: item.id,
|
|
12819
|
+
trailId: this.currentEtapa ? (this.currentEtapa.item_id || this.currentEtapa.id) : item.id,
|
|
12820
|
+
title: item.nome || item.title || ('Aula ' + (i + 1)),
|
|
12821
|
+
subtitle: this.currentEtapa ? (this.currentEtapa.nome || this.currentEtapa.title || '') : '',
|
|
12822
|
+
thumbnail: item.tumb || item.thumb || (this.currentEtapa ? (this.currentEtapa.thumb || this.currentEtapa.tumb) : ''),
|
|
12823
|
+
videoUrl: videoUrl,
|
|
12824
|
+
stageData: stageContent,
|
|
12825
|
+
stages: this.currentMenuItems
|
|
12826
|
+
});
|
|
12827
|
+
this.batchStatus.overallProgress = Math.round(((i + 1) / total) * 100);
|
|
12828
|
+
}
|
|
12829
|
+
// Também salva o módulo principal
|
|
12830
|
+
if (this.currentEtapa) {
|
|
12831
|
+
yield this.offlineService.downloadLesson({
|
|
12832
|
+
id: this.currentEtapa.id,
|
|
12833
|
+
trailId: this.currentEtapa.item_id || this.currentEtapa.id,
|
|
12834
|
+
title: this.currentEtapa.nome || this.currentEtapa.title || 'Módulo Completo',
|
|
12835
|
+
subtitle: `${total} Aulas Baixadas`,
|
|
12836
|
+
thumbnail: this.currentEtapa.thumb || this.currentEtapa.tumb || '',
|
|
12837
|
+
stageData: this.currentStageData,
|
|
12838
|
+
stages: this.currentMenuItems
|
|
12839
|
+
});
|
|
12840
|
+
}
|
|
12841
|
+
this.isDownloading = false;
|
|
12842
|
+
this.isCurrentLessonDownloaded = true;
|
|
12843
|
+
this.batchStatus.overallProgress = 100;
|
|
12844
|
+
}
|
|
12845
|
+
catch (error) {
|
|
12846
|
+
console.error('[OfflineManager] Erro durante o download do módulo completo:', error);
|
|
12847
|
+
this.isDownloading = false;
|
|
12848
|
+
}
|
|
12849
|
+
});
|
|
12850
|
+
}
|
|
12851
|
+
/**
|
|
12852
|
+
* @return {?}
|
|
12853
|
+
*/
|
|
12854
|
+
downloadCurrentLesson() {
|
|
12855
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12856
|
+
if (!this.currentEtapa)
|
|
12857
|
+
return;
|
|
12858
|
+
this.isDownloading = true;
|
|
12859
|
+
/** @type {?} */
|
|
12860
|
+
let videoUrl = '';
|
|
12861
|
+
if (this.currentStageData && Array.isArray(this.currentStageData)) {
|
|
12862
|
+
/** @type {?} */
|
|
12863
|
+
const videoComp = this.currentStageData.find((/**
|
|
12864
|
+
* @param {?} c
|
|
12865
|
+
* @return {?}
|
|
12866
|
+
*/
|
|
12867
|
+
function (c) {
|
|
12868
|
+
return (c && c.type === 'video') || (c && c.value && c.value.type === 'video');
|
|
12869
|
+
}));
|
|
12870
|
+
if (videoComp) {
|
|
12871
|
+
videoUrl = videoComp.link || (videoComp.value ? videoComp.value.link : '') || videoComp.source_path || (videoComp.value ? videoComp.value.source_path : '') || '';
|
|
12872
|
+
}
|
|
12873
|
+
}
|
|
12874
|
+
try {
|
|
12875
|
+
yield this.offlineService.downloadLesson({
|
|
12876
|
+
id: this.currentEtapa.id,
|
|
12877
|
+
trailId: this.currentEtapa.item_id || this.currentEtapa.id,
|
|
12878
|
+
title: this.currentEtapa.nome || this.currentEtapa.title || 'Módulo do Curso',
|
|
12879
|
+
subtitle: this.currentEtapa.sinopse || '',
|
|
12880
|
+
thumbnail: this.currentEtapa.thumb || this.currentEtapa.tumb || '',
|
|
12881
|
+
videoUrl: videoUrl,
|
|
12882
|
+
stageData: this.currentStageData,
|
|
12883
|
+
stages: this.currentMenuItems
|
|
12884
|
+
});
|
|
12885
|
+
this.isDownloading = false;
|
|
12886
|
+
this.isCurrentLessonDownloaded = true;
|
|
12887
|
+
}
|
|
12888
|
+
catch (error) {
|
|
12889
|
+
console.error('[OfflineManager] Erro ao baixar curso:', error);
|
|
12890
|
+
this.isDownloading = false;
|
|
12891
|
+
}
|
|
12892
|
+
});
|
|
12893
|
+
}
|
|
12894
|
+
/**
|
|
12895
|
+
* @param {?} lesson
|
|
12896
|
+
* @param {?=} event
|
|
12897
|
+
* @return {?}
|
|
12898
|
+
*/
|
|
12899
|
+
deleteLesson(lesson, event) {
|
|
12900
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12901
|
+
if (event) {
|
|
12902
|
+
event.stopPropagation();
|
|
12903
|
+
}
|
|
12904
|
+
yield this.offlineService.deleteDownloadedLesson(lesson.id);
|
|
12905
|
+
this.checkIfCurrentLessonIsDownloaded();
|
|
12906
|
+
});
|
|
11306
12907
|
}
|
|
11307
12908
|
/**
|
|
11308
12909
|
* @return {?}
|
|
11309
12910
|
*/
|
|
11310
|
-
|
|
11311
|
-
|
|
11312
|
-
|
|
12911
|
+
clearAll() {
|
|
12912
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12913
|
+
if (confirm('Deseja realmente excluir todas as aulas baixadas?')) {
|
|
12914
|
+
yield this.offlineService.clearAllDownloads();
|
|
12915
|
+
this.isCurrentLessonDownloaded = false;
|
|
12916
|
+
}
|
|
12917
|
+
});
|
|
11313
12918
|
}
|
|
11314
12919
|
/**
|
|
12920
|
+
* @param {?} lesson
|
|
11315
12921
|
* @return {?}
|
|
11316
12922
|
*/
|
|
11317
|
-
|
|
11318
|
-
|
|
11319
|
-
|
|
11320
|
-
|
|
11321
|
-
|
|
12923
|
+
openLesson(lesson) {
|
|
12924
|
+
this.selectOfflineLesson.emit(lesson);
|
|
12925
|
+
if (this.dialogRef) {
|
|
12926
|
+
this.dialogRef.close(lesson);
|
|
12927
|
+
}
|
|
11322
12928
|
}
|
|
11323
12929
|
/**
|
|
11324
12930
|
* @return {?}
|
|
11325
12931
|
*/
|
|
11326
|
-
|
|
11327
|
-
|
|
11328
|
-
|
|
11329
|
-
|
|
11330
|
-
platform: 'asta',
|
|
11331
|
-
uri: '/painel/escola',
|
|
11332
|
-
client_id: '000'
|
|
11333
|
-
},
|
|
11334
|
-
{
|
|
11335
|
-
platform: 'fitness-link',
|
|
11336
|
-
uri: '/painel/meus-cursos',
|
|
11337
|
-
client_id: '000'
|
|
11338
|
-
},
|
|
11339
|
-
{
|
|
11340
|
-
platform: 'lele',
|
|
11341
|
-
uri: '/trilhas',
|
|
11342
|
-
client_id: '000'
|
|
11343
|
-
},
|
|
11344
|
-
{
|
|
11345
|
-
platform: 'universidadesmart',
|
|
11346
|
-
uri: `/training/${this.etapa.item_id}`,
|
|
11347
|
-
client_id: '20'
|
|
11348
|
-
}
|
|
11349
|
-
];
|
|
11350
|
-
/** @type {?} */
|
|
11351
|
-
const escolaUri = uris.find((/**
|
|
11352
|
-
* @param {?} item
|
|
11353
|
-
* @return {?}
|
|
11354
|
-
*/
|
|
11355
|
-
item => {
|
|
11356
|
-
return item.client_id === this.global.loggedUser().client_id;
|
|
11357
|
-
}));
|
|
11358
|
-
return (escolaUri) ? escolaUri.uri : false;
|
|
12932
|
+
closeModal() {
|
|
12933
|
+
if (this.dialogRef) {
|
|
12934
|
+
this.dialogRef.close();
|
|
12935
|
+
}
|
|
11359
12936
|
}
|
|
11360
12937
|
/**
|
|
11361
|
-
* @param {?} idSubStep
|
|
11362
12938
|
* @return {?}
|
|
11363
12939
|
*/
|
|
11364
|
-
|
|
11365
|
-
|
|
11366
|
-
|
|
11367
|
-
|
|
11368
|
-
|
|
11369
|
-
|
|
11370
|
-
|
|
11371
|
-
|
|
11372
|
-
})
|
|
11373
|
-
|
|
11374
|
-
* @return {?}
|
|
11375
|
-
*/
|
|
11376
|
-
error => {
|
|
11377
|
-
}));
|
|
11378
|
-
}
|
|
12940
|
+
triggerManualSync() {
|
|
12941
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12942
|
+
if (!navigator.onLine) {
|
|
12943
|
+
alert('Você está offline no momento. Conecte-se à internet para sincronizar seu progresso com o servidor.');
|
|
12944
|
+
return;
|
|
12945
|
+
}
|
|
12946
|
+
/** @type {?} */
|
|
12947
|
+
const count = yield this.offlineService.processSyncQueue();
|
|
12948
|
+
alert(`Sincronização concluída! ${count} registros de progresso sincronizados com o banco de dados.`);
|
|
12949
|
+
});
|
|
11379
12950
|
}
|
|
11380
12951
|
}
|
|
11381
|
-
|
|
12952
|
+
OfflineManagerModalComponent.decorators = [
|
|
11382
12953
|
{ type: Component, args: [{
|
|
11383
|
-
selector: 'app-
|
|
11384
|
-
template: "<div class=\"
|
|
11385
|
-
providers: [AmbienteVirtualService, bannerService, Trailv2Service],
|
|
11386
|
-
encapsulation: ViewEncapsulation.None,
|
|
11387
|
-
styles: [":root{--app-logo:url(\"/assets/img/logo-visualizador.png\");--bg-dark:#111111!important;--bg-dark-2:#333333!important;--main-color-dark:#dddddd!important;--bg-sidebar-viewer-dark:#181818!important;--bg-btn-sidebar-viewer-dark-active:#ddd!important;--bg-btn-sidebar-viewer-text-dark-active:#ddd!important;--icon-sidebar-viewer-dark:#ddd!important;--link-sidebar-viewer-dark:#ddd!important;--bg-light:#f4f4f4!important;--bg-light-2:#eee!important;--main-color-light:#414141!important;--bg-sidebar-viewer-light:#fff!important;--bg-btn-sidebar-viewer-light-active:#414141!important;--bg-btn-sidebar-viewer-text-light-active:#414141!important;--icon-sidebar-viewer-light:#414141!important;--link-sidebar-viewer-light:#414141!important}.full-page{width:100vw;height:100vh}#wrapper{display:flex;width:100%;--modern-text-color:#ffffff;--modern-bg-overlay:rgba(255, 255, 255, 0.03);--modern-border-color:rgba(255, 255, 255, 0.05);--modern-exit-text:#e5e5e5;--modern-exit-bg:rgba(255, 255, 255, 0.04);--modern-exit-border:rgba(255, 255, 255, 0.08);--modern-exit-hover-text:#ef4444;--modern-exit-hover-bg:rgba(239, 68, 68, 0.15);--modern-exit-hover-border:rgba(239, 68, 68, 0.4);--modern-exit-hover-shadow:rgba(239, 68, 68, 0.2);--modern-exit-icon-color:#ef4444;--modern-exit-icon-hover-color:#ef4444;--modern-badge-locked-bg:rgba(255, 255, 255, 0.08);--modern-badge-locked-color:#8e8e93;--modern-active-lesson-bg:#2d3748;--modern-active-lesson-text:#ffffff;--modern-active-lesson-badge-bg:rgba(0, 0, 0, 0.4)}#wrapper.theme-custom,#wrapper.theme-light{--modern-text-color:#2c3e50;--modern-bg-overlay:rgba(0, 0, 0, 0.03);--modern-border-color:rgba(0, 0, 0, 0.06);--modern-exit-text:#ffffff;--modern-exit-bg:#262626;--modern-exit-border:#262626;--modern-exit-hover-text:#ffffff;--modern-exit-hover-bg:#ef4444;--modern-exit-hover-border:#ef4444;--modern-exit-hover-shadow:rgba(239, 68, 68, 0.4);--modern-exit-icon-color:#ffffff;--modern-exit-icon-hover-color:#ffffff;--modern-badge-locked-bg:rgba(0, 0, 0, 0.05);--modern-badge-locked-color:#7a7a7a;--modern-active-lesson-bg:#f3f4f6;--modern-active-lesson-text:#111827;--modern-active-lesson-badge-bg:rgba(0, 0, 0, 0.08)}#wrapper.theme-custom #sidemenu-viewer .sidemenu-header .logo,#wrapper.theme-light #sidemenu-viewer .sidemenu-header .logo{-webkit-filter:brightness(.2)!important;filter:brightness(.2)!important}#wrapper.theme-custom .navbar-brand,#wrapper.theme-light .navbar-brand{color:#2c3e50!important}#navbar{padding:0 10px;background:0 0;border:none;border-radius:0;margin-bottom:30px;transition:.3s}#navbar .navbar-brand{margin-left:60px;padding-top:5px;text-decoration:none!important}@media (max-width:768px){#navbar .navbar-brand{font-size:13px;line-height:1.2;white-space:normal;margin-right:90px;display:inline-block}}#navbar .btn-close{position:absolute;top:0;right:0;z-index:1}#sidemenu-viewer{width:320px;position:fixed;top:0;left:0;height:100vh;z-index:999;background:var(--bg-sidebar-viewer);transition:.3s;box-shadow:0 10px 30px -12px rgba(0,0,0,.42);overflow:hidden;display:flex!important;flex-direction:column!important}#sidemenu-viewer .nav-container,#sidemenu-viewer .sidebar-module-selector-wrapper,#sidemenu-viewer .sidemenu-header{flex-shrink:0!important}#sidemenu-viewer .tab-content{flex-grow:1!important;min-height:0!important;display:flex!important;flex-direction:column!important}#sidemenu-viewer .tab-content .tab-pane.active{display:flex!important;flex-direction:column!important;flex-grow:1!important;min-height:0!important}#sidemenu-viewer.active{margin-left:-320px}#sidemenu-viewer .sidebarClose{position:absolute;top:15px;right:10px}#sidemenu-viewer .sidemenu-header{display:flex;align-items:center;justify-content:center;height:70px;padding:40px 20px!important;background:var(--bg-sidebar-viewer);border-bottom:1px solid rgba(255,255,255,.1)}#sidemenu-viewer .sidemenu-header .logo{flex-grow:2;width:100%;height:40px;margin:0 auto;text-align:center;background-image:var(--app-logo);background-size:cover;background-position:center;background-repeat:no-repeat}#sidemenu-viewer .sidemenu-header img{width:80%;max-height:40px;-o-object-fit:contain;object-fit:contain;margin:0 auto}#sidemenu-viewer .sidemenu-info{width:100%;min-height:54px;height:auto;background:var(--modern-bg-overlay)!important;color:var(--modern-text-color)!important;border-bottom:1px solid!important;border-left:4px solid!important;display:flex;align-items:center}#sidemenu-viewer .sidemenu-info a{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px 16px!important;color:var(--modern-text-color)!important;text-decoration:none!important;font-size:13px!important;font-weight:600!important;line-height:1.4!important;letter-spacing:.2px!important}#sidemenu-viewer .sidemenu-info a p{margin:0!important;padding:0!important;color:var(--modern-text-color)!important}#sidemenu-viewer .sidemenu-info a:hover{color:var(--modern-text-color)!important}#sidemenu-viewer .sidemenu-info a i{font-size:16px;margin-left:8px;color:var(--bg-btn-sidebar-viewer-active,#f4ac1e)}#sidemenu-viewer .sidemenu-body{flex-grow:1!important;min-height:0!important;height:auto!important;overflow-y:auto!important;background:var(--bg-sidebar-viewer)}#sidemenu-viewer .sidemenu-body::-webkit-scrollbar{width:6px!important;height:6px!important}#sidemenu-viewer .sidemenu-body::-webkit-scrollbar-track{background:rgba(0,0,0,.05)!important;border-radius:10px!important}#sidemenu-viewer .sidemenu-body::-webkit-scrollbar-thumb{background:rgba(128,128,128,.3)!important;border-radius:10px!important;transition:background .2s!important}#sidemenu-viewer .sidemenu-body::-webkit-scrollbar-thumb:hover{background:rgba(128,128,128,.5)!important}#sidemenu-viewer .sidemenu-body ul{margin:0;padding:15px;list-style:none}#sidemenu-viewer .sidemenu-body ul li{display:flex;align-items:center;justify-content:flex-start;flex-direction:row;padding:12px 15px 8px;margin-bottom:15px;border-radius:4px;color:var(--modern-text-color)!important;transition:.3s;font-size:.9em!important}#sidemenu-viewer .sidemenu-body ul li:hover{background:rgba(215,215,215,.2);color:var(--modern-text-color)!important}#sidemenu-viewer .sidemenu-body ul li.active{background:var(--bg-btn-sidebar-viewer-active)!important;color:var(--bg-btn-sidebar-viewer-text-active)!important;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(57,75,85,.4)}#sidemenu-viewer .sidemenu-body ul li.active .icon{color:var(--bg-btn-sidebar-viewer-text-active)!important}#sidemenu-viewer .sidemenu-body ul li .icon{color:var(--icon-sidebar-viewer);float:left;margin-right:10px}#sidemenu-viewer .sidemenu-body ul li .text{float:left;font-size:.9em!important;margin-top:2px}#sidemenu-viewer .sidemenu-body-mini{flex-grow:1!important;min-height:0!important;height:auto!important}#content{width:calc(100% - 320px);padding:15px 40px;min-height:100vh;transition:.3s;position:absolute;top:0;right:0;background:#eee}#content.active{width:100%}.notepad-icons{display:flex;align-items:center;justify-content:space-between;font-size:1.15em;margin-top:5px}.notepad-icons a{color:var(--main-color-viewer)}.notepad-icons a:hover{text-decoration:none}.notepad{margin-top:15px}.notepad input[type=text],.notepad textarea{box-shadow:none}.btn-toggler{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2;width:45px;height:45px;color:var(--main-color-viewer);background-color:#fff;border-color:#fff;box-shadow:0 2px 2px 0 rgba(153,153,153,.14),0 3px 1px -2px rgba(153,153,153,.2),0 1px 5px 0 rgba(153,153,153,.12);border-radius:50%}.btn-toggler span{position:absolute;display:flex;align-items:center;justify-content:center;width:45px;height:45px;border-radius:50%}.btn-toggler.focus,.btn-toggler:focus,.btn-toggler:hover{color:var(--main-color-viewer);background-color:#fff;border-color:#fff;box-shadow:0 4px 25px 0 rgba(0,0,0,.14),0 7px 15px -5px rgba(57,75,85,.2)}.btn-simple{background-color:#fff;border:none;cursor:pointer;display:block;color:#333;text-decoration:none;padding:14px 0}.trail-select{width:180px;float:right;margin:0 10px}.overflow-hidden{overflow:hidden}.fw-bold a{font-weight:700}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{background-color:var(--bg-btn-course)}.nav-pills .nav-link{color:var(--bg-btn-viewer)!important}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{background-color:var(--bg-btn-viewer)!important;color:#fff!important}.sidebar .nav li>a,.sidebar .nav li>a:focus,.sidebar .nav li>a:hover{background-color:var(--bg-btn-course)!important}.sidebar .user .info>a{padding-left:20px!important}.info{border-bottom:1px solid #eee}.cursor-pointer{cursor:pointer}.nav-container{padding:0;border-top:1px solid #eee;border-bottom:1px solid #eee}.mask-item{position:relative;width:100%;height:100%;background:#000;z-index:70;display:flex;align-items:center;justify-content:center;flex-direction:column;top:0;transition:.5s;opacity:0}.mask-item .material-icons{color:#fff;font-size:92px}.stage-video{background:#000}.media{display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;background-repeat:no-repeat;background-size:cover;background-position:center center}.media .video{width:100%;height:100%}.media .play-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.theme-dark #content{background-color:var(--bg-dark)!important}.theme-dark #navbar .navbar-brand{color:var(--link-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer,.theme-dark #sidemenu-viewer .sidemenu-header{background:var(--bg-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer .sidemenu-header .logo{background-image:var(--app-logo)!important}.theme-dark #sidemenu-viewer .sidemenu-info{background:var(--bg-sidebar-viewer-dark)!important;color:var(--link-sidebar-viewer-dark)!important;border-bottom:1px solid rgba(255,255,255,.1)}.theme-dark #sidemenu-viewer .sidemenu-info a,.theme-dark #sidemenu-viewer .sidemenu-info a:hover{color:var(--link-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer .sidemenu-body{background:var(--bg-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer .sidemenu-body ul li{color:var(--link-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer .sidemenu-body ul li:hover{background:rgba(215,215,215,.2);color:var(--link-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer .sidemenu-body ul li.active{background:var(--bg-btn-sidebar-viewer-dark-active)!important;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(57,75,85,.4);color:var(--bg-btn-sidebar-viewer-text-dark-active)!important}.theme-dark #sidemenu-viewer .sidemenu-body ul li.active .icon{color:var(--bg-btn-sidebar-viewer-text-dark-active)!important}.theme-dark #sidemenu-viewer .sidemenu-body ul li .icon{color:var(--icon-sidebar-viewer-dark)!important}.theme-dark .btn-toggler{color:var(--main-color-dark)!important;background-color:var(--bg-sidebar-viewer-dark)!important;border-color:var(--bg-sidebar-viewer-dark)!important}.theme-dark .btn-toggler:hover{color:var(--icon-sidebar-viewer-dark)!important;background-color:var(--bg-sidebar-viewer-dark)!important;border-color:var(--bg-sidebar-viewer-dark)!important}.theme-dark .btn-toggler.focus,.theme-dark .btn-toggler:focus{color:var(--main-color-dark);background-color:var(--bg-sidebar-viewer-dark)!important;border-color:var(--bg-sidebar-viewer-dark)!important}.theme-dark .card{background-color:var(--bg-sidebar-viewer-dark)!important;box-shadow:none!important}.theme-dark .mat-checkbox-checked.mat-accent .mat-checkbox-background,.theme-dark .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background,.theme-dark .mat-checkbox:not(.mat-checkbox-disabled).mat-accent .mat-checkbox-ripple .mat-ripple-element{background-color:var(--main-color-dark)!important}.theme-dark .mat-checkbox-checkmark-path{stroke:#181818!important}.theme-dark .mat-checkbox-label{color:var(--main-color-dark)!important}.theme-dark .conclusion-container{background-color:var(--bg-sidebar-viewer-dark)!important}.theme-dark fieldset p{color:var(--main-color-dark)}.theme-dark input,.theme-dark textarea{border:1px solid rgba(255,255,255,.3);background:var(--bg-dark-2)!important;color:var(--main-color-dark)!important;outline:0!important}.theme-light #navbar .navbar-brand{color:var(--link-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer,.theme-light #sidemenu-viewer .sidemenu-header{background:var(--bg-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer .sidemenu-header .logo{background-image:var(--app-logo)!important}.theme-light #sidemenu-viewer .sidemenu-info{background:var(--bg-sidebar-viewer-light)!important;color:var(--link-sidebar-viewer-light)!important;border-bottom:1px solid rgba(255,255,255,.1)}.theme-light #sidemenu-viewer .sidemenu-info a,.theme-light #sidemenu-viewer .sidemenu-info a:hover{color:var(--link-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer .sidemenu-body{background:var(--bg-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer .sidemenu-body ul li{color:var(--link-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer .sidemenu-body ul li:hover{background:rgba(215,215,215,.2);color:var(--link-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer .sidemenu-body ul li.active{background:var(--bg-btn-sidebar-viewer-light-active)!important;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(57,75,85,.4);color:var(--bg-btn-sidebar-viewer-text-light-active)!important}.theme-light #sidemenu-viewer .sidemenu-body ul li.active .icon{color:var(--bg-btn-sidebar-viewer-text-light-active)!important}.theme-light #sidemenu-viewer .sidemenu-body ul li .icon{color:var(--icon-sidebar-viewer-light)!important}.theme-light .btn-toggler{color:var(--main-color-light)!important;background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-light .btn-toggler:hover{color:var(--icon-sidebar-viewer-light)!important;background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-light .btn-toggler.focus,.theme-light .btn-toggler:focus{color:var(--main-color-light);background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-light .card{box-shadow:none!important}.theme-light .mat-checkbox-checked.mat-accent .mat-checkbox-background,.theme-light .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background,.theme-light .mat-checkbox:not(.mat-checkbox-disabled).mat-accent .mat-checkbox-ripple .mat-ripple-element{background-color:var(--main-color-light)!important}.theme-light .mat-checkbox-checkmark-path{stroke:#181818!important}.theme-light .mat-checkbox-label{color:var(--main-color-light)!important}.theme-custom #content{background-color:var(--bg-client)!important}.theme-custom #navbar .navbar-brand{color:var(--link-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer,.theme-custom #sidemenu-viewer .sidemenu-header{background:var(--bg-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer .sidemenu-header .logo{background-image:var(--app-logo)!important}.theme-custom #sidemenu-viewer .sidemenu-info{background:var(--bg-sidebar-viewer-light)!important;color:var(--link-sidebar-viewer-light)!important;border-bottom:1px solid rgba(255,255,255,.1)}.theme-custom #sidemenu-viewer .sidemenu-info a,.theme-custom #sidemenu-viewer .sidemenu-info a:hover{color:var(--link-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer .sidemenu-body{background:var(--bg-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer .sidemenu-body ul li{color:var(--link-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer .sidemenu-body ul li:hover{background:rgba(215,215,215,.2);color:var(--link-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer .sidemenu-body ul li.active{background:var(--bg-btn-sidebar-viewer-light-active)!important;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(57,75,85,.4);color:var(--bg-btn-sidebar-viewer-text-light-active)!important}.theme-custom #sidemenu-viewer .sidemenu-body ul li.active .icon{color:var(--bg-btn-sidebar-viewer-text-light-active)!important}.theme-custom #sidemenu-viewer .sidemenu-body ul li .icon{color:var(--icon-sidebar-viewer-light)!important}.theme-custom .btn-toggler{color:var(--main-color-light)!important;background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-custom .btn-toggler:hover{color:var(--icon-sidebar-viewer-light)!important;background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-custom .btn-toggler.focus,.theme-custom .btn-toggler:focus{color:var(--main-color-light);background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-custom .card,.theme-custom .midia{background-color:var(--bg-sidebar-viewer-light)!important;box-shadow:none!important}.theme-custom .midia p,.theme-custom .shared-subtitle,.theme-custom .shared-title{color:var(--main-color-light)!important}.theme-custom .mat-checkbox-checked.mat-accent .mat-checkbox-background,.theme-custom .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background,.theme-custom .mat-checkbox:not(.mat-checkbox-disabled).mat-accent .mat-checkbox-ripple .mat-ripple-element{background-color:var(--main-color-light)!important}.theme-custom .mat-checkbox-checkmark-path{stroke:#181818!important}.theme-custom .mat-checkbox-label{color:var(--main-color-light)!important}.theme-custom .conclusion-container{background-color:var(--bg-sidebar-viewer-light)!important}@media (max-width:767px){#sidemenu-viewer{background:#fff;left:-999px}#sidemenu-viewer.active{left:320px!important}#sidemenu-viewer .sidemenu-header{display:block;text-align:left;height:auto;margin:0 0 20px;padding:15px 20px 12px!important;border-bottom:1px solid #eee}#sidemenu-viewer .sidemenu-header span{font-weight:500}#content{width:100%;padding:15px 0}#content.active{width:100%}#content.active .navbar{margin-left:0;transition:.3s}}::ng-deep app-viewer p{background-color:transparent!important}@media (min-width:992px) and (max-width:1199px){.intro-container-video{width:500px}}@media (min-width:1200px) and (max-width:1366px){.intro-container-video{width:700px}}@media (min-width:1440px) and (max-width:1600px){.intro-container-video{width:700px}}@media (min-width:1920px){.intro-container-video{width:700px}}.audio-cover{max-height:400px;width:100%;margin-bottom:20px;margin-top:20px}.audio-cover img{width:100%;height:100%;-o-object-position:center;object-position:center;-o-object-fit:contain;object-fit:contain;background:#eee}#sidemenu-viewer .modern-lessons-list{margin:0!important;padding:12px!important;list-style:none!important;display:flex!important;flex-direction:column!important;gap:12px!important}#sidemenu-viewer .modern-lessons-list .lesson-item{display:block!important;padding:0!important;margin:0!important;border-radius:12px!important;background:var(--modern-bg-overlay)!important;border:1px solid!important;overflow:hidden!important;transition:.3s cubic-bezier(.25,.8,.25,1)!important;box-shadow:none!important}#sidemenu-viewer .modern-lessons-list .lesson-item:not(.locked){cursor:pointer!important}#sidemenu-viewer .modern-lessons-list .lesson-item:not(.locked):hover{background:rgba(128,128,128,.08)!important;border-color:rgba(128,128,128,.2)!important;transform:translateY(-2px)!important;box-shadow:0 6px 20px rgba(0,0,0,.15)!important}#sidemenu-viewer .modern-lessons-list .lesson-item:not(.locked):hover .type-icon{transform:scale(1.15)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.locked{opacity:.5!important;cursor:not-allowed!important;background:var(--modern-bg-overlay)!important;border-color:var(--modern-border-color)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.locked .lesson-thumb-wrapper{-webkit-filter:grayscale(.5) brightness(.85)!important;filter:grayscale(.5) brightness(.85)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.locked .lesson-thumb-wrapper .type-icon{opacity:.65!important}#sidemenu-viewer .modern-lessons-list .lesson-item.locked .lesson-title{color:var(--modern-text-color)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.active{background:var(--modern-active-lesson-bg)!important;border-color:var(--bg-btn-sidebar-viewer-active,#f4ac1e)!important;box-shadow:0 4px 15px rgba(0,0,0,.1)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.active .lesson-title{color:var(--modern-active-lesson-text)!important;font-weight:600!important}#sidemenu-viewer .modern-lessons-list .lesson-item.active .lesson-status-row .status-badge.status-active{background:var(--modern-active-lesson-badge-bg)!important;color:var(--modern-active-lesson-text)!important;border:1px solid rgba(128,128,128,.2)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.active .lesson-status-row .status-badge.status-active i{color:var(--modern-active-lesson-text)!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-card{display:flex!important;flex-direction:row!important;align-items:stretch!important;padding:10px!important;gap:12px!important;min-height:80px!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper{position:relative!important;flex-shrink:0!important;width:90px!important;height:60px!important;border-radius:8px!important;overflow:hidden!important;border:1px solid rgba(255,255,255,.1)!important;display:flex!important;align-items:center!important;justify-content:center!important;transition:.3s!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper .lesson-thumb-video-element{position:absolute!important;top:0!important;left:0!important;width:100%!important;height:100%!important;-o-object-fit:cover!important;object-fit:cover!important;pointer-events:none!important;z-index:0!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-video{background:linear-gradient(135deg,#f97316 0,#c2410c 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-pdf{background:linear-gradient(135deg,#ef4444 0,#b91c1c 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-avaliation{background:linear-gradient(135deg,#eab308 0,#a16207 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-conclusion{background:linear-gradient(135deg,#22c55e 0,#15803d 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-correct-incorrect{background:linear-gradient(135deg,#14b8a6 0,#0f766e 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-download{background:linear-gradient(135deg,#3b82f6 0,#1d4ed8 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-form-step{background:linear-gradient(135deg,#f97316 0,#ea580c 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-forum{background:linear-gradient(135deg,#ec4899 0,#be185d 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-feedback{background:linear-gradient(135deg,#a855f7 0,#7e22ce 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-image{background:linear-gradient(135deg,#06b6d4 0,#0e7490 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-multi-choice{background:linear-gradient(135deg,#6366f1 0,#4338ca 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-text{background:linear-gradient(135deg,#64748b 0,#475569 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-upload{background:linear-gradient(135deg,#0d9488 0,#115e59 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-audio{background:linear-gradient(135deg,#f59e0b 0,#b45309 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-random-questions{background:linear-gradient(135deg,#78350f 0,#451a03 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-research{background:linear-gradient(135deg,#d946ef 0,#86198f 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-page{background:linear-gradient(135deg,#0ea5e9 0,#0369a1 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-default{background:linear-gradient(135deg,#4b5563 0,#1f2937 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper .type-icon{font-size:24px!important;color:rgba(255,255,255,.95)!important;text-shadow:0 2px 6px rgba(0,0,0,.3)!important;transition:transform .3s cubic-bezier(.175,.885,.32,1.275)!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper .lesson-lock-badge{position:absolute!important;top:4px!important;right:4px!important;width:20px!important;height:20px!important;background:rgba(0,0,0,.65)!important;border:1px solid rgba(255,255,255,.15)!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;box-shadow:0 2px 6px rgba(0,0,0,.3)!important;transition:.3s!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper .lesson-lock-badge i{color:#fff!important;font-size:11px!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.has-thumb-img{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.has-thumb-img::before{content:\"\"!important;position:absolute!important;top:0!important;left:0!important;width:100%!important;height:100%!important;background:rgba(0,0,0,.35)!important;z-index:1!important;transition:background .3s!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.has-thumb-img .type-icon{position:relative!important;z-index:2!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.has-thumb-img .lesson-lock-badge{z-index:3!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-info{display:flex!important;flex-direction:column!important;justify-content:space-between!important;flex-grow:1!important;min-width:0!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-title{font-size:13px!important;line-height:1.4!important;color:var(--modern-text-color)!important;font-weight:500!important;word-break:break-word!important;margin-top:0!important;margin-bottom:4px!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-status-row{display:flex!important;align-items:center!important;margin-top:auto!important}#sidemenu-viewer .modern-lessons-list .lesson-item .status-badge{display:inline-flex!important;align-items:center!important;gap:4px!important;font-size:10px!important;font-weight:600!important;text-transform:uppercase!important;letter-spacing:.5px!important;padding:2px 8px!important;border-radius:20px!important}#sidemenu-viewer .modern-lessons-list .lesson-item .status-badge i{font-size:12px!important}#sidemenu-viewer .modern-lessons-list .lesson-item .status-badge.status-active{background:rgba(244,172,30,.2)!important;color:#f4ac1e!important}#sidemenu-viewer .modern-lessons-list .lesson-item .status-badge.status-done{background:rgba(76,175,80,.15)!important;color:#4caf50!important}#sidemenu-viewer .modern-lessons-list .lesson-item .status-badge.status-locked{background:var(--modern-badge-locked-bg)!important;color:var(--modern-badge-locked-color)!important}.sidebarCollapse.btn-toggler{position:absolute!important;display:flex!important;align-items:center!important;justify-content:center!important;z-index:10!important;width:42px!important;height:42px!important;border-radius:50%!important;border:1px solid rgba(255,255,255,.08)!important;background:rgba(255,255,255,.04)!important;box-shadow:0 4px 10px rgba(0,0,0,.15)!important;transition:.3s cubic-bezier(.25,.8,.25,1)!important;cursor:pointer!important;outline:0!important;top:14px!important;left:20px!important}.sidebarCollapse.btn-toggler i{font-size:22px!important;color:#d1d1d6!important;transition:transform .3s!important}.sidebarCollapse.btn-toggler .icon-close{display:block!important}.sidebarCollapse.btn-toggler .icon-open{display:none!important}.sidebarCollapse.btn-toggler:hover{background:var(--bg-btn-sidebar-viewer-active,#f4ac1e)!important;border-color:var(--bg-btn-sidebar-viewer-active,#f4ac1e)!important;box-shadow:0 4px 15px rgba(244,172,30,.3)!important;transform:scale(1.05)!important}.sidebarCollapse.btn-toggler:hover i{color:#000!important}#content.active .sidebarCollapse.btn-toggler .icon-close{display:none!important}#content.active .sidebarCollapse.btn-toggler .icon-open{display:block!important}.navbar-brand{position:relative!important;font-size:15px!important;font-weight:600!important;color:#fff!important;letter-spacing:.3px!important;margin-left:75px!important;line-height:1.4!important;padding:0 0 6px!important;display:inline-flex!important;align-items:center!important;height:42px!important;cursor:default!important}.navbar-brand::after{content:\"\"!important;position:absolute!important;bottom:2px!important;left:0!important;width:100%!important;height:3px!important;background:var(--bg-btn-sidebar-viewer-active,#f4ac1e)!important;border-radius:4px!important}.btn-close-container{position:absolute!important;top:14px!important;right:15px!important;z-index:10!important}.btn-close-container .btn-exit{display:inline-flex!important;align-items:center!important;gap:8px!important;padding:8px 18px!important;border-radius:20px!important;border:1px solid!important;background:var(--modern-exit-bg)!important;color:var(--modern-exit-text)!important;font-size:11px!important;font-weight:600!important;text-transform:uppercase!important;letter-spacing:.8px!important;text-decoration:none!important;box-shadow:0 4px 10px rgba(0,0,0,.15)!important;transition:.3s cubic-bezier(.25,.8,.25,1)!important;cursor:pointer!important}.btn-close-container .btn-exit i{font-size:16px!important;color:var(--modern-exit-icon-color)!important;transition:transform .3s!important}@media (max-width:768px){.navbar-brand{height:auto!important;min-height:42px!important;padding-bottom:12px!important}.btn-close-container .btn-exit{padding:4px 10px!important;font-size:9px!important;gap:4px!important}.btn-close-container .btn-exit i{font-size:14px!important}}.btn-close-container .btn-exit:hover{background:var(--modern-exit-hover-bg)!important;border-color:var(--modern-exit-hover-border)!important;color:var(--modern-exit-hover-text)!important;box-shadow:0 4px 15px var(--modern-exit-hover-shadow)!important;transform:scale(1.02)!important}.btn-close-container .btn-exit:hover i{transform:translateX(2px)!important;color:var(--modern-exit-icon-hover-color)!important}.theme-custom #sidemenu-viewer .sidemenu-header .logo,.theme-light #sidemenu-viewer .sidemenu-header .logo{-webkit-filter:brightness(.2)!important;filter:brightness(.2)!important}.modern-progress-container{padding:16px!important;display:flex!important;flex-direction:column!important;gap:8px!important}.modern-progress-container.footer-progress{position:static!important;flex-shrink:0!important;width:100%!important;background:var(--modern-active-lesson-bg)!important;border-top:1px solid #4caf50!important;border-bottom:none!important;box-shadow:0 -4px 15px rgba(0,0,0,.1)!important;z-index:10!important}.modern-progress-container .progress-info-row{display:flex!important;justify-content:space-between!important;align-items:center!important;font-size:11px!important;font-weight:500!important;letter-spacing:.3px!important;color:var(--modern-active-lesson-text)!important;opacity:.9!important}.modern-progress-container .progress-info-row .progress-label{text-transform:uppercase!important;font-size:9px!important;font-weight:700!important;opacity:.7!important}.modern-progress-container .progress-info-row .progress-stats{display:flex!important;align-items:center!important;gap:6px!important}.modern-progress-container .progress-info-row .progress-stats .progress-detail{opacity:.7!important;font-size:10px!important;font-weight:600!important}.modern-progress-container .progress-info-row .progress-stats .progress-pct{font-weight:700!important;color:#4caf50!important}.modern-progress-container .progress-bar-track{width:100%!important;height:6px!important;background:rgba(0,0,0,.15)!important;border:1px solid rgba(0,0,0,.05)!important;border-radius:4px!important;overflow:hidden!important}.modern-progress-container .progress-bar-track .progress-bar-fill{height:100%!important;background:#4caf50!important;border-radius:4px!important;transition:width .6s cubic-bezier(.4,0,.2,1)!important}"]
|
|
12954
|
+
selector: 'app-offline-manager-modal',
|
|
12955
|
+
template: "<div class=\"offline-manager-modal\">\n <!-- Modal Header -->\n <div class=\"modal-header-custom\">\n <div class=\"header-title-box\">\n <div class=\"icon-avatar\">\n <i class=\"material-icons\">cloud_download</i>\n </div>\n <div>\n <h2 class=\"modal-title\">Gestor de Aulas Offline</h2>\n <p class=\"modal-subtitle\">Baixe conte\u00FAdos para estudar sem conex\u00E3o com a internet</p>\n </div>\n </div>\n\n <div class=\"header-actions\">\n <!-- Network Indicator Badge -->\n <span class=\"network-badge\" [class.online]=\"isOnline\" [class.offline]=\"!isOnline\">\n <span class=\"pulse-dot\"></span>\n {{ isOnline ? 'Online' : 'Modo Offline' }}\n </span>\n\n <button mat-icon-button (click)=\"closeModal()\" class=\"close-btn\" *ngIf=\"dialogRef\">\n <i class=\"material-icons\">close</i>\n </button>\n </div>\n </div>\n\n <!-- Modal Body -->\n <div class=\"modal-body-custom\">\n <!-- Current Lesson Download Action Banner -->\n <div class=\"current-lesson-banner\" *ngIf=\"currentEtapa\">\n <div class=\"banner-info\">\n <span class=\"banner-badge\">M\u00F3dulo Atual</span>\n <h3 class=\"banner-title\">{{ currentEtapa?.nome || currentEtapa?.title || 'M\u00F3dulo do Curso' }}</h3>\n <p class=\"banner-desc\" *ngIf=\"currentMenuItems && currentMenuItems.length > 0\">\n Cont\u00E9m <strong>{{ currentMenuItems.length }} aulas</strong> dispon\u00EDveis para download offline completo.\n </p>\n <p class=\"banner-desc\" *ngIf=\"!currentMenuItems || currentMenuItems.length === 0\">\n {{ (currentEtapa?.sinopse || 'Dispon\u00EDvel para download completo offline') | asapLimitTo:80 }}\n </p>\n </div>\n\n <div class=\"banner-action\">\n <ng-container *ngIf=\"!isCurrentLessonDownloaded && !isDownloading\">\n <div class=\"d-flex flex-column align-items-end\" style=\"gap: 8px;\">\n <button class=\"btn-download-now\" (click)=\"downloadAllModuleLessons()\">\n <i class=\"material-icons\">download_for_offline</i>\n <span>Baixar Todas as {{ currentMenuItems ? currentMenuItems.length : '' }} Aulas</span>\n </button>\n <button class=\"btn-download-single\" (click)=\"downloadCurrentLesson()\" *ngIf=\"currentMenuItems && currentMenuItems.length > 1\" style=\"background: none; border: none; font-size: 0.75rem; color: #64748b; text-decoration: underline; cursor: pointer; padding: 0;\">\n Baixar apenas aula atual\n </button>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"isDownloading\">\n <div class=\"downloading-indicator flex-column align-items-start\" style=\"gap: 6px; padding: 10px 14px;\">\n <div class=\"d-flex align-items-center\" style=\"gap: 8px;\">\n <div class=\"spinner-mini\"></div>\n <span *ngIf=\"batchStatus.total > 0\">\n Baixando {{ batchStatus.current }} de {{ batchStatus.total }}: <strong>{{ batchStatus.currentLessonName | asapLimitTo:22 }}</strong>\n </span>\n <span *ngIf=\"!batchStatus.total\">\n {{ currentProgress ? currentProgress.progress : 0 }}% Baixando...\n </span>\n </div>\n <!-- Sub progress track -->\n <div style=\"width: 100%; height: 5px; background: #bae6fd; border-radius: 4px; overflow: hidden; margin-top: 4px;\" *ngIf=\"batchStatus.total > 0\">\n <div style=\"height: 100%; background: #0284c7; border-radius: 4px; transition: width 0.3s ease;\" [style.width.%]=\"batchStatus.overallProgress\"></div>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"isCurrentLessonDownloaded\">\n <div class=\"downloaded-badge-status\">\n <i class=\"material-icons\">check_circle</i>\n <span>M\u00F3dulo Dispon\u00EDvel Offline</span>\n </div>\n </ng-container>\n </div>\n </div>\n\n <!-- Storage Usage Bar -->\n <div class=\"storage-card\">\n <div class=\"storage-header\">\n <div class=\"storage-text\">\n <i class=\"material-icons\">storage</i>\n <span>Espa\u00E7o Utilizado: <strong>{{ totalStorageUsed }}</strong></span>\n </div>\n <button class=\"btn-clear-all\" *ngIf=\"downloadedLessons.length > 0\" (click)=\"clearAll()\">\n <i class=\"material-icons\">delete_sweep</i>\n Limpar Todos\n </button>\n </div>\n <div class=\"storage-progress-bar\">\n <div class=\"progress-fill\" [style.width.%]=\"downloadedLessons.length > 0 ? 15 : 0\"></div>\n </div>\n </div>\n\n <!-- Downloaded Lessons List Section -->\n <div class=\"lessons-list-section\">\n <div class=\"section-title-row\">\n <h4>Aulas Baixadas ({{ downloadedLessons.length }})</h4>\n <button class=\"btn-sync\" *ngIf=\"isOnline\" (click)=\"triggerManualSync()\" matTooltip=\"Sincronizar progresso salvo offline com o servidor\">\n <i class=\"material-icons\">sync</i>\n Sincronizar Progresso\n </button>\n </div>\n\n <!-- Empty State -->\n <div class=\"empty-state\" *ngIf=\"downloadedLessons.length === 0\">\n <div class=\"empty-icon-circle\">\n <i class=\"material-icons\">download_for_offline</i>\n </div>\n <h5>Nenhuma aula baixada ainda</h5>\n <p>Voc\u00EA pode baixar qualquer aula clicando no bot\u00E3o \"Baixar Este M\u00F3dulo\" para assistir mesmo sem conex\u00E3o.</p>\n </div>\n\n <!-- List Items -->\n <div class=\"lessons-grid\" *ngIf=\"downloadedLessons.length > 0\">\n <div class=\"lesson-card\" *ngFor=\"let lesson of downloadedLessons\" (click)=\"openLesson(lesson)\">\n <div class=\"lesson-thumb\" [style.backgroundImage]=\"lesson.thumbnail ? 'url(' + lesson.thumbnail + ')' : ''\">\n <div class=\"play-overlay\">\n <i class=\"material-icons\">play_circle_filled</i>\n </div>\n <span class=\"offline-badge-chip\">\n <i class=\"material-icons\">offline_pin</i> Offline\n </span>\n </div>\n\n <div class=\"lesson-details\">\n <h5 class=\"lesson-title\">{{ lesson.title }}</h5>\n <p class=\"lesson-sub\" *ngIf=\"lesson.subtitle\">{{ lesson.subtitle | asapLimitTo:60 }}</p>\n \n <div class=\"lesson-meta\">\n <span class=\"size-tag\">\n <i class=\"material-icons\">save</i> {{ lesson.sizeFormatted }}\n </span>\n <span class=\"date-tag\">\n <i class=\"material-icons\">schedule</i> {{ lesson.downloadedAt | amDateFormat:'DD/MM/YYYY HH:mm' }}\n </span>\n </div>\n </div>\n\n <div class=\"lesson-actions\" (click)=\"$event.stopPropagation()\">\n <button class=\"btn-delete\" matTooltip=\"Excluir aula baixada\" (click)=\"deleteLesson(lesson, $event)\">\n <i class=\"material-icons\">delete_outline</i>\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n",
|
|
12956
|
+
styles: [".offline-manager-modal{display:flex;flex-direction:column;background:#fff;border-radius:20px;overflow:hidden;max-width:680px;width:100%;box-shadow:0 25px 60px rgba(15,23,42,.2);font-family:Inter,-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,sans-serif;color:#1e293b}.offline-manager-modal .modal-header-custom{display:flex;justify-content:space-between;align-items:center;padding:24px 28px;background:linear-gradient(135deg,#0f172a 0,#1e293b 100%);color:#fff}.offline-manager-modal .modal-header-custom .header-title-box{display:flex;align-items:center;gap:16px}.offline-manager-modal .modal-header-custom .header-title-box .icon-avatar{width:46px;height:46px;border-radius:14px;background:linear-gradient(135deg,#0284c7 0,#0369a1 100%);display:flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 4px 12px rgba(2,132,199,.35)}.offline-manager-modal .modal-header-custom .header-title-box .icon-avatar i{font-size:24px}.offline-manager-modal .modal-header-custom .header-title-box .modal-title{margin:0;font-size:1.25rem;font-weight:700;letter-spacing:-.02em;color:#fff}.offline-manager-modal .modal-header-custom .header-title-box .modal-subtitle{margin:4px 0 0;font-size:.85rem;color:#94a3b8}.offline-manager-modal .modal-header-custom .header-actions{display:flex;align-items:center;gap:12px}.offline-manager-modal .modal-header-custom .header-actions .network-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:20px;font-size:.75rem;font-weight:600}.offline-manager-modal .modal-header-custom .header-actions .network-badge .pulse-dot{width:8px;height:8px;border-radius:50%}.offline-manager-modal .modal-header-custom .header-actions .network-badge.online{background:rgba(16,185,129,.15);color:#34d399;border:1px solid rgba(16,185,129,.3)}.offline-manager-modal .modal-header-custom .header-actions .network-badge.online .pulse-dot{background:#10b981;box-shadow:0 0 8px #10b981}.offline-manager-modal .modal-header-custom .header-actions .network-badge.offline{background:rgba(245,158,11,.15);color:#fbbf24;border:1px solid rgba(245,158,11,.3)}.offline-manager-modal .modal-header-custom .header-actions .network-badge.offline .pulse-dot{background:#f59e0b;box-shadow:0 0 8px #f59e0b}.offline-manager-modal .modal-header-custom .header-actions .close-btn{color:#94a3b8}.offline-manager-modal .modal-header-custom .header-actions .close-btn:hover{color:#fff}.offline-manager-modal .modal-body-custom{padding:24px 28px;max-height:75vh;overflow-y:auto}.offline-manager-modal .modal-body-custom::-webkit-scrollbar{width:6px}.offline-manager-modal .modal-body-custom::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.offline-manager-modal .modal-body-custom .current-lesson-banner{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;margin-bottom:20px;gap:16px}.offline-manager-modal .modal-body-custom .current-lesson-banner .banner-info{flex:1}.offline-manager-modal .modal-body-custom .current-lesson-banner .banner-info .banner-badge{display:inline-block;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#0284c7;background:#e0f2fe;padding:2px 8px;border-radius:6px;margin-bottom:6px}.offline-manager-modal .modal-body-custom .current-lesson-banner .banner-info .banner-title{margin:0;font-size:1rem;font-weight:700;color:#0f172a}.offline-manager-modal .modal-body-custom .current-lesson-banner .banner-info .banner-desc{margin:4px 0 0;font-size:.8rem;color:#64748b}.offline-manager-modal .modal-body-custom .current-lesson-banner .banner-action .btn-download-now{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;background:linear-gradient(135deg,#0284c7 0,#0369a1 100%);color:#fff;border:none;border-radius:12px;font-size:.85rem;font-weight:600;cursor:pointer;transition:.2s;box-shadow:0 4px 12px rgba(2,132,199,.25)}.offline-manager-modal .modal-body-custom .current-lesson-banner .banner-action .btn-download-now i{font-size:18px}.offline-manager-modal .modal-body-custom .current-lesson-banner .banner-action .btn-download-now:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(2,132,199,.35)}.offline-manager-modal .modal-body-custom .current-lesson-banner .banner-action .downloading-indicator{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;background:#e0f2fe;color:#0284c7;border-radius:10px;font-size:.8rem;font-weight:600}.offline-manager-modal .modal-body-custom .current-lesson-banner .banner-action .downloading-indicator .spinner-mini{width:14px;height:14px;border:2px solid #bae6fd;border-top-color:#0284c7;border-radius:50%;-webkit-animation:.8s linear infinite spin;animation:.8s linear infinite spin}.offline-manager-modal .modal-body-custom .current-lesson-banner .banner-action .downloaded-badge-status{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;background:#ecfdf5;color:#059669;border:1px solid #a7f3d0;border-radius:10px;font-size:.85rem;font-weight:600}.offline-manager-modal .modal-body-custom .current-lesson-banner .banner-action .downloaded-badge-status i{font-size:18px}.offline-manager-modal .modal-body-custom .storage-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:14px 18px;margin-bottom:24px}.offline-manager-modal .modal-body-custom .storage-card .storage-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.offline-manager-modal .modal-body-custom .storage-card .storage-header .storage-text{display:flex;align-items:center;gap:8px;font-size:.85rem;color:#475569}.offline-manager-modal .modal-body-custom .storage-card .storage-header .storage-text i{font-size:18px;color:#64748b}.offline-manager-modal .modal-body-custom .storage-card .storage-header .btn-clear-all{display:inline-flex;align-items:center;gap:4px;background:0 0;border:none;color:#ef4444;font-size:.75rem;font-weight:600;cursor:pointer;padding:4px 8px;border-radius:6px;transition:background .15s}.offline-manager-modal .modal-body-custom .storage-card .storage-header .btn-clear-all i{font-size:16px}.offline-manager-modal .modal-body-custom .storage-card .storage-header .btn-clear-all:hover{background:#fee2e2}.offline-manager-modal .modal-body-custom .storage-card .storage-progress-bar{height:6px;background:#e2e8f0;border-radius:4px;overflow:hidden}.offline-manager-modal .modal-body-custom .storage-card .storage-progress-bar .progress-fill{height:100%;background:linear-gradient(90deg,#0284c7,#38bdf8);border-radius:4px;transition:width .3s}.offline-manager-modal .modal-body-custom .lessons-list-section .section-title-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.offline-manager-modal .modal-body-custom .lessons-list-section .section-title-row h4{margin:0;font-size:.95rem;font-weight:700;color:#0f172a}.offline-manager-modal .modal-body-custom .lessons-list-section .section-title-row .btn-sync{display:inline-flex;align-items:center;gap:6px;background:#f1f5f9;border:1px solid #cbd5e1;padding:6px 12px;border-radius:8px;font-size:.75rem;font-weight:600;color:#334155;cursor:pointer;transition:.15s}.offline-manager-modal .modal-body-custom .lessons-list-section .section-title-row .btn-sync i{font-size:16px}.offline-manager-modal .modal-body-custom .lessons-list-section .section-title-row .btn-sync:hover{background:#e2e8f0;color:#0f172a}.offline-manager-modal .modal-body-custom .lessons-list-section .empty-state{text-align:center;padding:36px 20px;background:#f8fafc;border-radius:16px;border:2px dashed #e2e8f0}.offline-manager-modal .modal-body-custom .lessons-list-section .empty-state .empty-icon-circle{width:56px;height:56px;border-radius:50%;background:#e2e8f0;color:#94a3b8;display:flex;align-items:center;justify-content:center;margin:0 auto 12px}.offline-manager-modal .modal-body-custom .lessons-list-section .empty-state .empty-icon-circle i{font-size:28px}.offline-manager-modal .modal-body-custom .lessons-list-section .empty-state h5{margin:0 0 6px;font-size:.95rem;font-weight:700;color:#334155}.offline-manager-modal .modal-body-custom .lessons-list-section .empty-state p{margin:0 auto;font-size:.8rem;color:#64748b;max-width:320px}.offline-manager-modal .modal-body-custom .lessons-list-section .lessons-grid{display:flex;flex-direction:column;gap:12px}.offline-manager-modal .modal-body-custom .lessons-list-section .lessons-grid .lesson-card{display:flex;align-items:center;gap:16px;padding:12px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;cursor:pointer;transition:.2s cubic-bezier(.16,1,.3,1)}.offline-manager-modal .modal-body-custom .lessons-list-section .lessons-grid .lesson-card:hover{border-color:#0284c7;transform:translateX(4px);box-shadow:0 8px 20px rgba(2,132,199,.08)}.offline-manager-modal .modal-body-custom .lessons-list-section .lessons-grid .lesson-card:hover .lesson-thumb .play-overlay{opacity:1}.offline-manager-modal .modal-body-custom .lessons-list-section .lessons-grid .lesson-card .lesson-thumb{width:100px;height:62px;border-radius:10px;background-color:#0f172a;background-size:cover;background-position:center;position:relative;flex-shrink:0;overflow:hidden}.offline-manager-modal .modal-body-custom .lessons-list-section .lessons-grid .lesson-card .lesson-thumb .play-overlay{position:absolute;inset:0;background:rgba(15,23,42,.45);display:flex;align-items:center;justify-content:center;color:#fff;opacity:0;transition:opacity .2s}.offline-manager-modal .modal-body-custom .lessons-list-section .lessons-grid .lesson-card .lesson-thumb .play-overlay i{font-size:26px}.offline-manager-modal .modal-body-custom .lessons-list-section .lessons-grid .lesson-card .lesson-thumb .offline-badge-chip{position:absolute;bottom:4px;left:4px;display:inline-flex;align-items:center;gap:2px;background:rgba(15,23,42,.75);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);color:#38bdf8;font-size:.65rem;font-weight:700;padding:2px 6px;border-radius:4px}.offline-manager-modal .modal-body-custom .lessons-list-section .lessons-grid .lesson-card .lesson-thumb .offline-badge-chip i{font-size:11px}.offline-manager-modal .modal-body-custom .lessons-list-section .lessons-grid .lesson-card .lesson-details{flex:1;min-width:0}.offline-manager-modal .modal-body-custom .lessons-list-section .lessons-grid .lesson-card .lesson-details .lesson-title{margin:0;font-size:.9rem;font-weight:700;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.offline-manager-modal .modal-body-custom .lessons-list-section .lessons-grid .lesson-card .lesson-details .lesson-sub{margin:2px 0 6px;font-size:.75rem;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.offline-manager-modal .modal-body-custom .lessons-list-section .lessons-grid .lesson-card .lesson-details .lesson-meta{display:flex;align-items:center;gap:12px}.offline-manager-modal .modal-body-custom .lessons-list-section .lessons-grid .lesson-card .lesson-details .lesson-meta .date-tag,.offline-manager-modal .modal-body-custom .lessons-list-section .lessons-grid .lesson-card .lesson-details .lesson-meta .size-tag{display:inline-flex;align-items:center;gap:4px;font-size:.7rem;color:#64748b}.offline-manager-modal .modal-body-custom .lessons-list-section .lessons-grid .lesson-card .lesson-details .lesson-meta .date-tag i,.offline-manager-modal .modal-body-custom .lessons-list-section .lessons-grid .lesson-card .lesson-details .lesson-meta .size-tag i{font-size:13px}.offline-manager-modal .modal-body-custom .lessons-list-section .lessons-grid .lesson-card .lesson-actions .btn-delete{background:0 0;border:none;color:#94a3b8;padding:8px;border-radius:8px;cursor:pointer;transition:.15s}.offline-manager-modal .modal-body-custom .lessons-list-section .lessons-grid .lesson-card .lesson-actions .btn-delete i{font-size:20px}.offline-manager-modal .modal-body-custom .lessons-list-section .lessons-grid .lesson-card .lesson-actions .btn-delete:hover{color:#ef4444;background:#fee2e2}@-webkit-keyframes spin{to{transform:rotate(360deg)}}@keyframes spin{to{transform:rotate(360deg)}}"]
|
|
11388
12957
|
}] }
|
|
11389
12958
|
];
|
|
11390
12959
|
/** @nocollapse */
|
|
11391
|
-
|
|
11392
|
-
{ type:
|
|
11393
|
-
{ type:
|
|
11394
|
-
{ type:
|
|
11395
|
-
{ type:
|
|
11396
|
-
|
|
11397
|
-
|
|
11398
|
-
{ type:
|
|
11399
|
-
{ type:
|
|
11400
|
-
]
|
|
11401
|
-
|
|
11402
|
-
cursoViewer: [{ type: ViewChild, args: ['cursoViewer', { static: false },] }],
|
|
11403
|
-
cursoNavBar: [{ type: ViewChild, args: ['cursoNavBar', { static: false },] }]
|
|
12960
|
+
OfflineManagerModalComponent.ctorParameters = () => [
|
|
12961
|
+
{ type: OfflineStorageService },
|
|
12962
|
+
{ type: AmbienteVirtualService, decorators: [{ type: Optional }] },
|
|
12963
|
+
{ type: MatDialogRef, decorators: [{ type: Optional }] },
|
|
12964
|
+
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
12965
|
+
];
|
|
12966
|
+
OfflineManagerModalComponent.propDecorators = {
|
|
12967
|
+
currentEtapa: [{ type: Input }],
|
|
12968
|
+
currentStageData: [{ type: Input }],
|
|
12969
|
+
currentMenuItems: [{ type: Input }],
|
|
12970
|
+
selectOfflineLesson: [{ type: Output }]
|
|
11404
12971
|
};
|
|
11405
12972
|
if (false) {
|
|
11406
12973
|
/** @type {?} */
|
|
11407
|
-
|
|
11408
|
-
/** @type {?} */
|
|
11409
|
-
CursoVisualizadorComponent.prototype.loader;
|
|
11410
|
-
/** @type {?} */
|
|
11411
|
-
CursoVisualizadorComponent.prototype.bannerArray;
|
|
11412
|
-
/** @type {?} */
|
|
11413
|
-
CursoVisualizadorComponent.prototype.cursoViewer;
|
|
12974
|
+
OfflineManagerModalComponent.prototype.currentEtapa;
|
|
11414
12975
|
/** @type {?} */
|
|
11415
|
-
|
|
12976
|
+
OfflineManagerModalComponent.prototype.currentStageData;
|
|
11416
12977
|
/** @type {?} */
|
|
11417
|
-
|
|
12978
|
+
OfflineManagerModalComponent.prototype.currentMenuItems;
|
|
11418
12979
|
/** @type {?} */
|
|
11419
|
-
|
|
12980
|
+
OfflineManagerModalComponent.prototype.selectOfflineLesson;
|
|
11420
12981
|
/** @type {?} */
|
|
11421
|
-
|
|
12982
|
+
OfflineManagerModalComponent.prototype.isOnline;
|
|
11422
12983
|
/** @type {?} */
|
|
11423
|
-
|
|
12984
|
+
OfflineManagerModalComponent.prototype.downloadedLessons;
|
|
11424
12985
|
/** @type {?} */
|
|
11425
|
-
|
|
12986
|
+
OfflineManagerModalComponent.prototype.totalStorageUsed;
|
|
11426
12987
|
/** @type {?} */
|
|
11427
|
-
|
|
12988
|
+
OfflineManagerModalComponent.prototype.currentProgress;
|
|
11428
12989
|
/** @type {?} */
|
|
11429
|
-
|
|
12990
|
+
OfflineManagerModalComponent.prototype.isCurrentLessonDownloaded;
|
|
11430
12991
|
/** @type {?} */
|
|
11431
|
-
|
|
12992
|
+
OfflineManagerModalComponent.prototype.isDownloading;
|
|
11432
12993
|
/** @type {?} */
|
|
11433
|
-
|
|
11434
|
-
/**
|
|
11435
|
-
* @type {?}
|
|
11436
|
-
* @private
|
|
11437
|
-
*/
|
|
11438
|
-
CursoVisualizadorComponent.prototype.ambienteVirtualService;
|
|
12994
|
+
OfflineManagerModalComponent.prototype.batchStatus;
|
|
11439
12995
|
/**
|
|
11440
12996
|
* @type {?}
|
|
11441
12997
|
* @private
|
|
11442
12998
|
*/
|
|
11443
|
-
|
|
11444
|
-
/**
|
|
11445
|
-
* @type {?}
|
|
11446
|
-
* @private
|
|
11447
|
-
*/
|
|
11448
|
-
CursoVisualizadorComponent.prototype.router;
|
|
11449
|
-
/**
|
|
11450
|
-
* @type {?}
|
|
11451
|
-
* @private
|
|
11452
|
-
*/
|
|
11453
|
-
CursoVisualizadorComponent.prototype._bannerService;
|
|
12999
|
+
OfflineManagerModalComponent.prototype.subscriptions;
|
|
11454
13000
|
/** @type {?} */
|
|
11455
|
-
|
|
13001
|
+
OfflineManagerModalComponent.prototype.offlineService;
|
|
11456
13002
|
/** @type {?} */
|
|
11457
|
-
|
|
13003
|
+
OfflineManagerModalComponent.prototype.ambienteVirtualService;
|
|
11458
13004
|
/** @type {?} */
|
|
11459
|
-
|
|
11460
|
-
/**
|
|
11461
|
-
|
|
11462
|
-
* @private
|
|
11463
|
-
*/
|
|
11464
|
-
CursoVisualizadorComponent.prototype.location;
|
|
13005
|
+
OfflineManagerModalComponent.prototype.dialogRef;
|
|
13006
|
+
/** @type {?} */
|
|
13007
|
+
OfflineManagerModalComponent.prototype.data;
|
|
11465
13008
|
}
|
|
11466
13009
|
|
|
11467
13010
|
/**
|
|
@@ -11485,8 +13028,10 @@ class CursoNavbarComponent {
|
|
|
11485
13028
|
* @param {?} global
|
|
11486
13029
|
* @param {?} trailService
|
|
11487
13030
|
* @param {?} route
|
|
13031
|
+
* @param {?} dialog
|
|
13032
|
+
* @param {?} offlineService
|
|
11488
13033
|
*/
|
|
11489
|
-
constructor(location, renderer, element, ambienteVirtualService, _router, global, trailService, route) {
|
|
13034
|
+
constructor(location, renderer, element, ambienteVirtualService, _router, global, trailService, route, dialog, offlineService) {
|
|
11490
13035
|
this.renderer = renderer;
|
|
11491
13036
|
this.element = element;
|
|
11492
13037
|
this.ambienteVirtualService = ambienteVirtualService;
|
|
@@ -11494,9 +13039,27 @@ class CursoNavbarComponent {
|
|
|
11494
13039
|
this.global = global;
|
|
11495
13040
|
this.trailService = trailService;
|
|
11496
13041
|
this.route = route;
|
|
13042
|
+
this.dialog = dialog;
|
|
13043
|
+
this.offlineService = offlineService;
|
|
13044
|
+
this.downloadedCount = 0;
|
|
13045
|
+
this.isOnline = navigator.onLine;
|
|
11497
13046
|
// ASAP
|
|
11498
13047
|
this.eventNavbar = new EventEmitter();
|
|
11499
13048
|
this.event = new EventEmitter();
|
|
13049
|
+
this.offlineService.isOnline$.subscribe((/**
|
|
13050
|
+
* @param {?} online
|
|
13051
|
+
* @return {?}
|
|
13052
|
+
*/
|
|
13053
|
+
online => {
|
|
13054
|
+
this.isOnline = online;
|
|
13055
|
+
}));
|
|
13056
|
+
this.offlineService.downloadedLessons$.subscribe((/**
|
|
13057
|
+
* @param {?} lessons
|
|
13058
|
+
* @return {?}
|
|
13059
|
+
*/
|
|
13060
|
+
lessons => {
|
|
13061
|
+
this.downloadedCount = lessons.length;
|
|
13062
|
+
}));
|
|
11500
13063
|
this.route.queryParams.subscribe((/**
|
|
11501
13064
|
* @param {?} queryParam
|
|
11502
13065
|
* @return {?}
|
|
@@ -11675,6 +13238,39 @@ class CursoNavbarComponent {
|
|
|
11675
13238
|
backUrl() {
|
|
11676
13239
|
this._router.navigate([`/training/${this.etapa.item_id}`]);
|
|
11677
13240
|
}
|
|
13241
|
+
/**
|
|
13242
|
+
* @return {?}
|
|
13243
|
+
*/
|
|
13244
|
+
openOfflineManager() {
|
|
13245
|
+
/** @type {?} */
|
|
13246
|
+
const dialogRef = this.dialog.open(OfflineManagerModalComponent, {
|
|
13247
|
+
width: '680px',
|
|
13248
|
+
maxWidth: '95vw',
|
|
13249
|
+
panelClass: 'offline-manager-dialog-container',
|
|
13250
|
+
data: {
|
|
13251
|
+
etapa: this.etapa || (this.data && this.data[0] ? this.data[0] : null),
|
|
13252
|
+
stageData: this.current,
|
|
13253
|
+
menuItems: this.data
|
|
13254
|
+
}
|
|
13255
|
+
});
|
|
13256
|
+
dialogRef.afterClosed().subscribe((/**
|
|
13257
|
+
* @param {?} selectedLesson
|
|
13258
|
+
* @return {?}
|
|
13259
|
+
*/
|
|
13260
|
+
(selectedLesson) => {
|
|
13261
|
+
if (selectedLesson && this.data && Array.isArray(this.data)) {
|
|
13262
|
+
/** @type {?} */
|
|
13263
|
+
const target = this.data.find((/**
|
|
13264
|
+
* @param {?} item
|
|
13265
|
+
* @return {?}
|
|
13266
|
+
*/
|
|
13267
|
+
item => item.id == selectedLesson.id));
|
|
13268
|
+
if (target) {
|
|
13269
|
+
this.event.emit(target);
|
|
13270
|
+
}
|
|
13271
|
+
}
|
|
13272
|
+
}));
|
|
13273
|
+
}
|
|
11678
13274
|
/**
|
|
11679
13275
|
* @param {?} obj
|
|
11680
13276
|
* @return {?}
|
|
@@ -11692,7 +13288,7 @@ class CursoNavbarComponent {
|
|
|
11692
13288
|
CursoNavbarComponent.decorators = [
|
|
11693
13289
|
{ type: Component, args: [{
|
|
11694
13290
|
selector: 'app-navbar-curso',
|
|
11695
|
-
template: "<nav id=\"navbar\" class=\"navbar navbar-expand-lg navbar-light\">\r\n <div>\r\n <button type=\"button\" class=\"btn btn-toggler sidebarCollapse\" title=\"Recolher o Menu\">\r\n <i class=\"material-icons icon-close\">chevron_left</i>\r\n <i class=\"material-icons icon-open\">chevron_right</i>\r\n </button>\r\n <a class=\"navbar-brand d-none d-sm-inline-block\">{{(menuItems) ? (menuItems[0].title | asapLimitTo: 70) : null }}</a>\r\n <div class=\"btn-close-container mr-3\">\r\n <a class=\"btn-exit\" (click)=\"backUrl()\">\r\n <i class=\"material-icons\">logout</i>\r\n <span>{{ 'EXIT' | translate }}</span>\r\n </a>\r\n </div>\r\n </div>\r\n</nav>\r\n\r\n",
|
|
13291
|
+
template: "<nav id=\"navbar\" class=\"navbar navbar-expand-lg navbar-light\">\r\n <div>\r\n <button type=\"button\" class=\"btn btn-toggler sidebarCollapse\" title=\"Recolher o Menu\">\r\n <i class=\"material-icons icon-close\">chevron_left</i>\r\n <i class=\"material-icons icon-open\">chevron_right</i>\r\n </button>\r\n <a class=\"navbar-brand d-none d-sm-inline-block\">{{(menuItems) ? (menuItems[0].title | asapLimitTo: 70) : null }}</a>\r\n <div class=\"btn-close-container mr-3 d-flex align-items-center\">\r\n <a class=\"btn-exit\" (click)=\"backUrl()\">\r\n <i class=\"material-icons\">logout</i>\r\n <span>{{ 'EXIT' | translate }}</span>\r\n </a>\r\n </div>\r\n </div>\r\n</nav>\r\n\r\n",
|
|
11696
13292
|
styles: [":root{--app-logo:url(\"/assets/img/logo-visualizador.png\");--bg-dark:#111111!important;--bg-dark-2:#333333!important;--main-color-dark:#dddddd!important;--bg-sidebar-viewer-dark:#181818!important;--bg-btn-sidebar-viewer-dark-active:#ddd!important;--bg-btn-sidebar-viewer-text-dark-active:#ddd!important;--icon-sidebar-viewer-dark:#ddd!important;--link-sidebar-viewer-dark:#ddd!important;--bg-light:#f4f4f4!important;--bg-light-2:#eee!important;--main-color-light:#414141!important;--bg-sidebar-viewer-light:#fff!important;--bg-btn-sidebar-viewer-light-active:#414141!important;--bg-btn-sidebar-viewer-text-light-active:#414141!important;--icon-sidebar-viewer-light:#414141!important;--link-sidebar-viewer-light:#414141!important}.full-page{width:100vw;height:100vh}#wrapper{display:flex;width:100%;--modern-text-color:#ffffff;--modern-bg-overlay:rgba(255, 255, 255, 0.03);--modern-border-color:rgba(255, 255, 255, 0.05);--modern-exit-text:#e5e5e5;--modern-exit-bg:rgba(255, 255, 255, 0.04);--modern-exit-border:rgba(255, 255, 255, 0.08);--modern-exit-hover-text:#ef4444;--modern-exit-hover-bg:rgba(239, 68, 68, 0.15);--modern-exit-hover-border:rgba(239, 68, 68, 0.4);--modern-exit-hover-shadow:rgba(239, 68, 68, 0.2);--modern-exit-icon-color:#ef4444;--modern-exit-icon-hover-color:#ef4444;--modern-badge-locked-bg:rgba(255, 255, 255, 0.08);--modern-badge-locked-color:#8e8e93;--modern-active-lesson-bg:#2d3748;--modern-active-lesson-text:#ffffff;--modern-active-lesson-badge-bg:rgba(0, 0, 0, 0.4)}#wrapper.theme-custom,#wrapper.theme-light{--modern-text-color:#2c3e50;--modern-bg-overlay:rgba(0, 0, 0, 0.03);--modern-border-color:rgba(0, 0, 0, 0.06);--modern-exit-text:#ffffff;--modern-exit-bg:#262626;--modern-exit-border:#262626;--modern-exit-hover-text:#ffffff;--modern-exit-hover-bg:#ef4444;--modern-exit-hover-border:#ef4444;--modern-exit-hover-shadow:rgba(239, 68, 68, 0.4);--modern-exit-icon-color:#ffffff;--modern-exit-icon-hover-color:#ffffff;--modern-badge-locked-bg:rgba(0, 0, 0, 0.05);--modern-badge-locked-color:#7a7a7a;--modern-active-lesson-bg:#f3f4f6;--modern-active-lesson-text:#111827;--modern-active-lesson-badge-bg:rgba(0, 0, 0, 0.08)}#wrapper.theme-custom #sidemenu-viewer .sidemenu-header .logo,#wrapper.theme-light #sidemenu-viewer .sidemenu-header .logo{-webkit-filter:brightness(.2)!important;filter:brightness(.2)!important}#wrapper.theme-custom .navbar-brand,#wrapper.theme-light .navbar-brand{color:#2c3e50!important}#navbar{padding:0 10px;background:0 0;border:none;border-radius:0;margin-bottom:30px;transition:.3s}#navbar .navbar-brand{margin-left:60px;padding-top:5px;text-decoration:none!important}@media (max-width:768px){#navbar .navbar-brand{font-size:13px;line-height:1.2;white-space:normal;margin-right:90px;display:inline-block}}#navbar .btn-close{position:absolute;top:0;right:0;z-index:1}#sidemenu-viewer{width:320px;position:fixed;top:0;left:0;height:100vh;z-index:999;background:var(--bg-sidebar-viewer);transition:.3s;box-shadow:0 10px 30px -12px rgba(0,0,0,.42);overflow:hidden;display:flex!important;flex-direction:column!important}#sidemenu-viewer .nav-container,#sidemenu-viewer .sidebar-module-selector-wrapper,#sidemenu-viewer .sidemenu-header{flex-shrink:0!important}#sidemenu-viewer .tab-content{flex-grow:1!important;min-height:0!important;display:flex!important;flex-direction:column!important}#sidemenu-viewer .tab-content .tab-pane.active{display:flex!important;flex-direction:column!important;flex-grow:1!important;min-height:0!important}#sidemenu-viewer.active{margin-left:-320px}#sidemenu-viewer .sidebarClose{position:absolute;top:15px;right:10px}#sidemenu-viewer .sidemenu-header{display:flex;align-items:center;justify-content:center;height:70px;padding:40px 20px!important;background:var(--bg-sidebar-viewer);border-bottom:1px solid rgba(255,255,255,.1)}#sidemenu-viewer .sidemenu-header .logo{flex-grow:2;width:100%;height:40px;margin:0 auto;text-align:center;background-image:var(--app-logo);background-size:cover;background-position:center;background-repeat:no-repeat}#sidemenu-viewer .sidemenu-header img{width:80%;max-height:40px;-o-object-fit:contain;object-fit:contain;margin:0 auto}#sidemenu-viewer .sidemenu-info{width:100%;min-height:54px;height:auto;background:var(--modern-bg-overlay)!important;color:var(--modern-text-color)!important;border-bottom:1px solid!important;border-left:4px solid!important;display:flex;align-items:center}#sidemenu-viewer .sidemenu-info a{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px 16px!important;color:var(--modern-text-color)!important;text-decoration:none!important;font-size:13px!important;font-weight:600!important;line-height:1.4!important;letter-spacing:.2px!important}#sidemenu-viewer .sidemenu-info a p{margin:0!important;padding:0!important;color:var(--modern-text-color)!important}#sidemenu-viewer .sidemenu-info a:hover{color:var(--modern-text-color)!important}#sidemenu-viewer .sidemenu-info a i{font-size:16px;margin-left:8px;color:var(--bg-btn-sidebar-viewer-active,#f4ac1e)}#sidemenu-viewer .sidemenu-body{flex-grow:1!important;min-height:0!important;height:auto!important;overflow-y:auto!important;background:var(--bg-sidebar-viewer)}#sidemenu-viewer .sidemenu-body::-webkit-scrollbar{width:6px!important;height:6px!important}#sidemenu-viewer .sidemenu-body::-webkit-scrollbar-track{background:rgba(0,0,0,.05)!important;border-radius:10px!important}#sidemenu-viewer .sidemenu-body::-webkit-scrollbar-thumb{background:rgba(128,128,128,.3)!important;border-radius:10px!important;transition:background .2s!important}#sidemenu-viewer .sidemenu-body::-webkit-scrollbar-thumb:hover{background:rgba(128,128,128,.5)!important}#sidemenu-viewer .sidemenu-body ul{margin:0;padding:15px;list-style:none}#sidemenu-viewer .sidemenu-body ul li{display:flex;align-items:center;justify-content:flex-start;flex-direction:row;padding:12px 15px 8px;margin-bottom:15px;border-radius:4px;color:var(--modern-text-color)!important;transition:.3s;font-size:.9em!important}#sidemenu-viewer .sidemenu-body ul li:hover{background:rgba(215,215,215,.2);color:var(--modern-text-color)!important}#sidemenu-viewer .sidemenu-body ul li.active{background:var(--bg-btn-sidebar-viewer-active)!important;color:var(--bg-btn-sidebar-viewer-text-active)!important;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(57,75,85,.4)}#sidemenu-viewer .sidemenu-body ul li.active .icon{color:var(--bg-btn-sidebar-viewer-text-active)!important}#sidemenu-viewer .sidemenu-body ul li .icon{color:var(--icon-sidebar-viewer);float:left;margin-right:10px}#sidemenu-viewer .sidemenu-body ul li .text{float:left;font-size:.9em!important;margin-top:2px}#sidemenu-viewer .sidemenu-body-mini{flex-grow:1!important;min-height:0!important;height:auto!important}#content{width:calc(100% - 320px);padding:15px 40px;min-height:100vh;transition:.3s;position:absolute;top:0;right:0;background:#eee}#content.active{width:100%}.notepad-icons{display:flex;align-items:center;justify-content:space-between;font-size:1.15em;margin-top:5px}.notepad-icons a{color:var(--main-color-viewer)}.notepad-icons a:hover{text-decoration:none}.notepad{margin-top:15px}.notepad input[type=text],.notepad textarea{box-shadow:none}.btn-toggler{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2;width:45px;height:45px;color:var(--main-color-viewer);background-color:#fff;border-color:#fff;box-shadow:0 2px 2px 0 rgba(153,153,153,.14),0 3px 1px -2px rgba(153,153,153,.2),0 1px 5px 0 rgba(153,153,153,.12);border-radius:50%}.btn-toggler span{position:absolute;display:flex;align-items:center;justify-content:center;width:45px;height:45px;border-radius:50%}.btn-toggler.focus,.btn-toggler:focus,.btn-toggler:hover{color:var(--main-color-viewer);background-color:#fff;border-color:#fff;box-shadow:0 4px 25px 0 rgba(0,0,0,.14),0 7px 15px -5px rgba(57,75,85,.2)}.btn-simple{background-color:#fff;border:none;cursor:pointer;display:block;color:#333;text-decoration:none;padding:14px 0}.trail-select{width:180px;float:right;margin:0 10px}.overflow-hidden{overflow:hidden}.fw-bold a{font-weight:700}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{background-color:var(--bg-btn-course)}.nav-pills .nav-link{color:var(--bg-btn-viewer)!important}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{background-color:var(--bg-btn-viewer)!important;color:#fff!important}.sidebar .nav li>a,.sidebar .nav li>a:focus,.sidebar .nav li>a:hover{background-color:var(--bg-btn-course)!important}.sidebar .user .info>a{padding-left:20px!important}.info{border-bottom:1px solid #eee}.cursor-pointer{cursor:pointer}.nav-container{padding:0;border-top:1px solid #eee;border-bottom:1px solid #eee}.mask-item{position:relative;width:100%;height:100%;background:#000;z-index:70;display:flex;align-items:center;justify-content:center;flex-direction:column;top:0;transition:.5s;opacity:0}.mask-item .material-icons{color:#fff;font-size:92px}.stage-video{background:#000}.media{display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;background-repeat:no-repeat;background-size:cover;background-position:center center}.media .video{width:100%;height:100%}.media .play-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.theme-dark #content{background-color:var(--bg-dark)!important}.theme-dark #navbar .navbar-brand{color:var(--link-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer,.theme-dark #sidemenu-viewer .sidemenu-header{background:var(--bg-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer .sidemenu-header .logo{background-image:var(--app-logo)!important}.theme-dark #sidemenu-viewer .sidemenu-info{background:var(--bg-sidebar-viewer-dark)!important;color:var(--link-sidebar-viewer-dark)!important;border-bottom:1px solid rgba(255,255,255,.1)}.theme-dark #sidemenu-viewer .sidemenu-info a,.theme-dark #sidemenu-viewer .sidemenu-info a:hover{color:var(--link-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer .sidemenu-body{background:var(--bg-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer .sidemenu-body ul li{color:var(--link-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer .sidemenu-body ul li:hover{background:rgba(215,215,215,.2);color:var(--link-sidebar-viewer-dark)!important}.theme-dark #sidemenu-viewer .sidemenu-body ul li.active{background:var(--bg-btn-sidebar-viewer-dark-active)!important;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(57,75,85,.4);color:var(--bg-btn-sidebar-viewer-text-dark-active)!important}.theme-dark #sidemenu-viewer .sidemenu-body ul li.active .icon{color:var(--bg-btn-sidebar-viewer-text-dark-active)!important}.theme-dark #sidemenu-viewer .sidemenu-body ul li .icon{color:var(--icon-sidebar-viewer-dark)!important}.theme-dark .btn-toggler{color:var(--main-color-dark)!important;background-color:var(--bg-sidebar-viewer-dark)!important;border-color:var(--bg-sidebar-viewer-dark)!important}.theme-dark .btn-toggler:hover{color:var(--icon-sidebar-viewer-dark)!important;background-color:var(--bg-sidebar-viewer-dark)!important;border-color:var(--bg-sidebar-viewer-dark)!important}.theme-dark .btn-toggler.focus,.theme-dark .btn-toggler:focus{color:var(--main-color-dark);background-color:var(--bg-sidebar-viewer-dark)!important;border-color:var(--bg-sidebar-viewer-dark)!important}.theme-dark .card{background-color:var(--bg-sidebar-viewer-dark)!important;box-shadow:none!important}.theme-dark .mat-checkbox-checked.mat-accent .mat-checkbox-background,.theme-dark .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background,.theme-dark .mat-checkbox:not(.mat-checkbox-disabled).mat-accent .mat-checkbox-ripple .mat-ripple-element{background-color:var(--main-color-dark)!important}.theme-dark .mat-checkbox-checkmark-path{stroke:#181818!important}.theme-dark .mat-checkbox-label{color:var(--main-color-dark)!important}.theme-dark .conclusion-container{background-color:var(--bg-sidebar-viewer-dark)!important}.theme-dark fieldset p{color:var(--main-color-dark)}.theme-dark input,.theme-dark textarea{border:1px solid rgba(255,255,255,.3);background:var(--bg-dark-2)!important;color:var(--main-color-dark)!important;outline:0!important}.theme-light #navbar .navbar-brand{color:var(--link-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer,.theme-light #sidemenu-viewer .sidemenu-header{background:var(--bg-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer .sidemenu-header .logo{background-image:var(--app-logo)!important}.theme-light #sidemenu-viewer .sidemenu-info{background:var(--bg-sidebar-viewer-light)!important;color:var(--link-sidebar-viewer-light)!important;border-bottom:1px solid rgba(255,255,255,.1)}.theme-light #sidemenu-viewer .sidemenu-info a,.theme-light #sidemenu-viewer .sidemenu-info a:hover{color:var(--link-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer .sidemenu-body{background:var(--bg-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer .sidemenu-body ul li{color:var(--link-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer .sidemenu-body ul li:hover{background:rgba(215,215,215,.2);color:var(--link-sidebar-viewer-light)!important}.theme-light #sidemenu-viewer .sidemenu-body ul li.active{background:var(--bg-btn-sidebar-viewer-light-active)!important;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(57,75,85,.4);color:var(--bg-btn-sidebar-viewer-text-light-active)!important}.theme-light #sidemenu-viewer .sidemenu-body ul li.active .icon{color:var(--bg-btn-sidebar-viewer-text-light-active)!important}.theme-light #sidemenu-viewer .sidemenu-body ul li .icon{color:var(--icon-sidebar-viewer-light)!important}.theme-light .btn-toggler{color:var(--main-color-light)!important;background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-light .btn-toggler:hover{color:var(--icon-sidebar-viewer-light)!important;background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-light .btn-toggler.focus,.theme-light .btn-toggler:focus{color:var(--main-color-light);background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-light .card{box-shadow:none!important}.theme-light .mat-checkbox-checked.mat-accent .mat-checkbox-background,.theme-light .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background,.theme-light .mat-checkbox:not(.mat-checkbox-disabled).mat-accent .mat-checkbox-ripple .mat-ripple-element{background-color:var(--main-color-light)!important}.theme-light .mat-checkbox-checkmark-path{stroke:#181818!important}.theme-light .mat-checkbox-label{color:var(--main-color-light)!important}.theme-custom #content{background-color:var(--bg-client)!important}.theme-custom #navbar .navbar-brand{color:var(--link-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer,.theme-custom #sidemenu-viewer .sidemenu-header{background:var(--bg-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer .sidemenu-header .logo{background-image:var(--app-logo)!important}.theme-custom #sidemenu-viewer .sidemenu-info{background:var(--bg-sidebar-viewer-light)!important;color:var(--link-sidebar-viewer-light)!important;border-bottom:1px solid rgba(255,255,255,.1)}.theme-custom #sidemenu-viewer .sidemenu-info a,.theme-custom #sidemenu-viewer .sidemenu-info a:hover{color:var(--link-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer .sidemenu-body{background:var(--bg-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer .sidemenu-body ul li{color:var(--link-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer .sidemenu-body ul li:hover{background:rgba(215,215,215,.2);color:var(--link-sidebar-viewer-light)!important}.theme-custom #sidemenu-viewer .sidemenu-body ul li.active{background:var(--bg-btn-sidebar-viewer-light-active)!important;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(57,75,85,.4);color:var(--bg-btn-sidebar-viewer-text-light-active)!important}.theme-custom #sidemenu-viewer .sidemenu-body ul li.active .icon{color:var(--bg-btn-sidebar-viewer-text-light-active)!important}.theme-custom #sidemenu-viewer .sidemenu-body ul li .icon{color:var(--icon-sidebar-viewer-light)!important}.theme-custom .btn-toggler{color:var(--main-color-light)!important;background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-custom .btn-toggler:hover{color:var(--icon-sidebar-viewer-light)!important;background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-custom .btn-toggler.focus,.theme-custom .btn-toggler:focus{color:var(--main-color-light);background-color:var(--bg-sidebar-viewer-light)!important;border-color:var(--bg-sidebar-viewer-light)!important}.theme-custom .card,.theme-custom .midia{background-color:var(--bg-sidebar-viewer-light)!important;box-shadow:none!important}.theme-custom .midia p,.theme-custom .shared-subtitle,.theme-custom .shared-title{color:var(--main-color-light)!important}.theme-custom .mat-checkbox-checked.mat-accent .mat-checkbox-background,.theme-custom .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background,.theme-custom .mat-checkbox:not(.mat-checkbox-disabled).mat-accent .mat-checkbox-ripple .mat-ripple-element{background-color:var(--main-color-light)!important}.theme-custom .mat-checkbox-checkmark-path{stroke:#181818!important}.theme-custom .mat-checkbox-label{color:var(--main-color-light)!important}.theme-custom .conclusion-container{background-color:var(--bg-sidebar-viewer-light)!important}@media (max-width:767px){#sidemenu-viewer{background:#fff;left:-999px}#sidemenu-viewer.active{left:320px!important}#sidemenu-viewer .sidemenu-header{display:block;text-align:left;height:auto;margin:0 0 20px;padding:15px 20px 12px!important;border-bottom:1px solid #eee}#sidemenu-viewer .sidemenu-header span{font-weight:500}#content{width:100%;padding:15px 0}#content.active{width:100%}#content.active .navbar{margin-left:0;transition:.3s}}::ng-deep app-viewer p{background-color:transparent!important}@media (min-width:992px) and (max-width:1199px){.intro-container-video{width:500px}}@media (min-width:1200px) and (max-width:1366px){.intro-container-video{width:700px}}@media (min-width:1440px) and (max-width:1600px){.intro-container-video{width:700px}}@media (min-width:1920px){.intro-container-video{width:700px}}.audio-cover{max-height:400px;width:100%;margin-bottom:20px;margin-top:20px}.audio-cover img{width:100%;height:100%;-o-object-position:center;object-position:center;-o-object-fit:contain;object-fit:contain;background:#eee}#sidemenu-viewer .modern-lessons-list{margin:0!important;padding:12px!important;list-style:none!important;display:flex!important;flex-direction:column!important;gap:12px!important}#sidemenu-viewer .modern-lessons-list .lesson-item{display:block!important;padding:0!important;margin:0!important;border-radius:12px!important;background:var(--modern-bg-overlay)!important;border:1px solid!important;overflow:hidden!important;transition:.3s cubic-bezier(.25,.8,.25,1)!important;box-shadow:none!important}#sidemenu-viewer .modern-lessons-list .lesson-item:not(.locked){cursor:pointer!important}#sidemenu-viewer .modern-lessons-list .lesson-item:not(.locked):hover{background:rgba(128,128,128,.08)!important;border-color:rgba(128,128,128,.2)!important;transform:translateY(-2px)!important;box-shadow:0 6px 20px rgba(0,0,0,.15)!important}#sidemenu-viewer .modern-lessons-list .lesson-item:not(.locked):hover .type-icon{transform:scale(1.15)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.locked{opacity:.5!important;cursor:not-allowed!important;background:var(--modern-bg-overlay)!important;border-color:var(--modern-border-color)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.locked .lesson-thumb-wrapper{-webkit-filter:grayscale(.5) brightness(.85)!important;filter:grayscale(.5) brightness(.85)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.locked .lesson-thumb-wrapper .type-icon{opacity:.65!important}#sidemenu-viewer .modern-lessons-list .lesson-item.locked .lesson-title{color:var(--modern-text-color)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.active{background:var(--modern-active-lesson-bg)!important;border-color:var(--bg-btn-sidebar-viewer-active,#f4ac1e)!important;box-shadow:0 4px 15px rgba(0,0,0,.1)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.active .lesson-title{color:var(--modern-active-lesson-text)!important;font-weight:600!important}#sidemenu-viewer .modern-lessons-list .lesson-item.active .lesson-status-row .status-badge.status-active{background:var(--modern-active-lesson-badge-bg)!important;color:var(--modern-active-lesson-text)!important;border:1px solid rgba(128,128,128,.2)!important}#sidemenu-viewer .modern-lessons-list .lesson-item.active .lesson-status-row .status-badge.status-active i{color:var(--modern-active-lesson-text)!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-card{display:flex!important;flex-direction:row!important;align-items:stretch!important;padding:10px!important;gap:12px!important;min-height:80px!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper{position:relative!important;flex-shrink:0!important;width:90px!important;height:60px!important;border-radius:8px!important;overflow:hidden!important;border:1px solid rgba(255,255,255,.1)!important;display:flex!important;align-items:center!important;justify-content:center!important;transition:.3s!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper .lesson-thumb-video-element{position:absolute!important;top:0!important;left:0!important;width:100%!important;height:100%!important;-o-object-fit:cover!important;object-fit:cover!important;pointer-events:none!important;z-index:0!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-video{background:linear-gradient(135deg,#f97316 0,#c2410c 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-pdf{background:linear-gradient(135deg,#ef4444 0,#b91c1c 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-avaliation{background:linear-gradient(135deg,#eab308 0,#a16207 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-conclusion{background:linear-gradient(135deg,#22c55e 0,#15803d 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-correct-incorrect{background:linear-gradient(135deg,#14b8a6 0,#0f766e 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-download{background:linear-gradient(135deg,#3b82f6 0,#1d4ed8 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-form-step{background:linear-gradient(135deg,#f97316 0,#ea580c 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-forum{background:linear-gradient(135deg,#ec4899 0,#be185d 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-feedback{background:linear-gradient(135deg,#a855f7 0,#7e22ce 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-image{background:linear-gradient(135deg,#06b6d4 0,#0e7490 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-multi-choice{background:linear-gradient(135deg,#6366f1 0,#4338ca 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-text{background:linear-gradient(135deg,#64748b 0,#475569 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-upload{background:linear-gradient(135deg,#0d9488 0,#115e59 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-audio{background:linear-gradient(135deg,#f59e0b 0,#b45309 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-random-questions{background:linear-gradient(135deg,#78350f 0,#451a03 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-research{background:linear-gradient(135deg,#d946ef 0,#86198f 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-page{background:linear-gradient(135deg,#0ea5e9 0,#0369a1 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.type-default{background:linear-gradient(135deg,#4b5563 0,#1f2937 100%)}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper .type-icon{font-size:24px!important;color:rgba(255,255,255,.95)!important;text-shadow:0 2px 6px rgba(0,0,0,.3)!important;transition:transform .3s cubic-bezier(.175,.885,.32,1.275)!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper .lesson-lock-badge{position:absolute!important;top:4px!important;right:4px!important;width:20px!important;height:20px!important;background:rgba(0,0,0,.65)!important;border:1px solid rgba(255,255,255,.15)!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;box-shadow:0 2px 6px rgba(0,0,0,.3)!important;transition:.3s!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper .lesson-lock-badge i{color:#fff!important;font-size:11px!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.has-thumb-img{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.has-thumb-img::before{content:\"\"!important;position:absolute!important;top:0!important;left:0!important;width:100%!important;height:100%!important;background:rgba(0,0,0,.35)!important;z-index:1!important;transition:background .3s!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.has-thumb-img .type-icon{position:relative!important;z-index:2!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-thumb-wrapper.has-thumb-img .lesson-lock-badge{z-index:3!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-info{display:flex!important;flex-direction:column!important;justify-content:space-between!important;flex-grow:1!important;min-width:0!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-title{font-size:13px!important;line-height:1.4!important;color:var(--modern-text-color)!important;font-weight:500!important;word-break:break-word!important;margin-top:0!important;margin-bottom:4px!important}#sidemenu-viewer .modern-lessons-list .lesson-item .lesson-status-row{display:flex!important;align-items:center!important;margin-top:auto!important}#sidemenu-viewer .modern-lessons-list .lesson-item .status-badge{display:inline-flex!important;align-items:center!important;gap:4px!important;font-size:10px!important;font-weight:600!important;text-transform:uppercase!important;letter-spacing:.5px!important;padding:2px 8px!important;border-radius:20px!important}#sidemenu-viewer .modern-lessons-list .lesson-item .status-badge i{font-size:12px!important}#sidemenu-viewer .modern-lessons-list .lesson-item .status-badge.status-active{background:rgba(244,172,30,.2)!important;color:#f4ac1e!important}#sidemenu-viewer .modern-lessons-list .lesson-item .status-badge.status-done{background:rgba(76,175,80,.15)!important;color:#4caf50!important}#sidemenu-viewer .modern-lessons-list .lesson-item .status-badge.status-locked{background:var(--modern-badge-locked-bg)!important;color:var(--modern-badge-locked-color)!important}.sidebarCollapse.btn-toggler{position:absolute!important;display:flex!important;align-items:center!important;justify-content:center!important;z-index:10!important;width:42px!important;height:42px!important;border-radius:50%!important;border:1px solid rgba(255,255,255,.08)!important;background:rgba(255,255,255,.04)!important;box-shadow:0 4px 10px rgba(0,0,0,.15)!important;transition:.3s cubic-bezier(.25,.8,.25,1)!important;cursor:pointer!important;outline:0!important;top:14px!important;left:20px!important}.sidebarCollapse.btn-toggler i{font-size:22px!important;color:#d1d1d6!important;transition:transform .3s!important}.sidebarCollapse.btn-toggler .icon-close{display:block!important}.sidebarCollapse.btn-toggler .icon-open{display:none!important}.sidebarCollapse.btn-toggler:hover{background:var(--bg-btn-sidebar-viewer-active,#f4ac1e)!important;border-color:var(--bg-btn-sidebar-viewer-active,#f4ac1e)!important;box-shadow:0 4px 15px rgba(244,172,30,.3)!important;transform:scale(1.05)!important}.sidebarCollapse.btn-toggler:hover i{color:#000!important}#content.active .sidebarCollapse.btn-toggler .icon-close{display:none!important}#content.active .sidebarCollapse.btn-toggler .icon-open{display:block!important}.navbar-brand{position:relative!important;font-size:15px!important;font-weight:600!important;color:#fff!important;letter-spacing:.3px!important;margin-left:75px!important;line-height:1.4!important;padding:0 0 6px!important;display:inline-flex!important;align-items:center!important;height:42px!important;cursor:default!important}.navbar-brand::after{content:\"\"!important;position:absolute!important;bottom:2px!important;left:0!important;width:100%!important;height:3px!important;background:var(--bg-btn-sidebar-viewer-active,#f4ac1e)!important;border-radius:4px!important}.btn-close-container{position:absolute!important;top:14px!important;right:15px!important;z-index:10!important}.btn-close-container .btn-exit{display:inline-flex!important;align-items:center!important;gap:8px!important;padding:8px 18px!important;border-radius:20px!important;border:1px solid!important;background:var(--modern-exit-bg)!important;color:var(--modern-exit-text)!important;font-size:11px!important;font-weight:600!important;text-transform:uppercase!important;letter-spacing:.8px!important;text-decoration:none!important;box-shadow:0 4px 10px rgba(0,0,0,.15)!important;transition:.3s cubic-bezier(.25,.8,.25,1)!important;cursor:pointer!important}.btn-close-container .btn-exit i{font-size:16px!important;color:var(--modern-exit-icon-color)!important;transition:transform .3s!important}@media (max-width:768px){.navbar-brand{height:auto!important;min-height:42px!important;padding-bottom:12px!important}.btn-close-container .btn-exit{padding:4px 10px!important;font-size:9px!important;gap:4px!important}.btn-close-container .btn-exit i{font-size:14px!important}}.btn-close-container .btn-exit:hover{background:var(--modern-exit-hover-bg)!important;border-color:var(--modern-exit-hover-border)!important;color:var(--modern-exit-hover-text)!important;box-shadow:0 4px 15px var(--modern-exit-hover-shadow)!important;transform:scale(1.02)!important}.btn-close-container .btn-exit:hover i{transform:translateX(2px)!important;color:var(--modern-exit-icon-hover-color)!important}.theme-custom #sidemenu-viewer .sidemenu-header .logo,.theme-light #sidemenu-viewer .sidemenu-header .logo{-webkit-filter:brightness(.2)!important;filter:brightness(.2)!important}.modern-progress-container{padding:16px!important;display:flex!important;flex-direction:column!important;gap:8px!important}.modern-progress-container.footer-progress{position:static!important;flex-shrink:0!important;width:100%!important;background:var(--modern-active-lesson-bg)!important;border-top:1px solid #4caf50!important;border-bottom:none!important;box-shadow:0 -4px 15px rgba(0,0,0,.1)!important;z-index:10!important}.modern-progress-container .progress-info-row{display:flex!important;justify-content:space-between!important;align-items:center!important;font-size:11px!important;font-weight:500!important;letter-spacing:.3px!important;color:var(--modern-active-lesson-text)!important;opacity:.9!important}.modern-progress-container .progress-info-row .progress-label{text-transform:uppercase!important;font-size:9px!important;font-weight:700!important;opacity:.7!important}.modern-progress-container .progress-info-row .progress-stats{display:flex!important;align-items:center!important;gap:6px!important}.modern-progress-container .progress-info-row .progress-stats .progress-detail{opacity:.7!important;font-size:10px!important;font-weight:600!important}.modern-progress-container .progress-info-row .progress-stats .progress-pct{font-weight:700!important;color:#4caf50!important}.modern-progress-container .progress-bar-track{width:100%!important;height:6px!important;background:rgba(0,0,0,.15)!important;border:1px solid rgba(0,0,0,.05)!important;border-radius:4px!important;overflow:hidden!important}.modern-progress-container .progress-bar-track .progress-bar-fill{height:100%!important;background:#4caf50!important;border-radius:4px!important;transition:width .6s cubic-bezier(.4,0,.2,1)!important}"]
|
|
11697
13293
|
}] }
|
|
11698
13294
|
];
|
|
@@ -11705,7 +13301,9 @@ CursoNavbarComponent.ctorParameters = () => [
|
|
|
11705
13301
|
{ type: Router },
|
|
11706
13302
|
{ type: Global },
|
|
11707
13303
|
{ type: Trailv2Service },
|
|
11708
|
-
{ type: ActivatedRoute }
|
|
13304
|
+
{ type: ActivatedRoute },
|
|
13305
|
+
{ type: MatDialog },
|
|
13306
|
+
{ type: OfflineStorageService }
|
|
11709
13307
|
];
|
|
11710
13308
|
CursoNavbarComponent.propDecorators = {
|
|
11711
13309
|
data: [{ type: Input }],
|
|
@@ -11739,6 +13337,10 @@ if (false) {
|
|
|
11739
13337
|
/** @type {?} */
|
|
11740
13338
|
CursoNavbarComponent.prototype.indexes;
|
|
11741
13339
|
/** @type {?} */
|
|
13340
|
+
CursoNavbarComponent.prototype.downloadedCount;
|
|
13341
|
+
/** @type {?} */
|
|
13342
|
+
CursoNavbarComponent.prototype.isOnline;
|
|
13343
|
+
/** @type {?} */
|
|
11742
13344
|
CursoNavbarComponent.prototype.eventNavbar;
|
|
11743
13345
|
/** @type {?} */
|
|
11744
13346
|
CursoNavbarComponent.prototype.event;
|
|
@@ -11787,6 +13389,13 @@ if (false) {
|
|
|
11787
13389
|
* @private
|
|
11788
13390
|
*/
|
|
11789
13391
|
CursoNavbarComponent.prototype.route;
|
|
13392
|
+
/**
|
|
13393
|
+
* @type {?}
|
|
13394
|
+
* @private
|
|
13395
|
+
*/
|
|
13396
|
+
CursoNavbarComponent.prototype.dialog;
|
|
13397
|
+
/** @type {?} */
|
|
13398
|
+
CursoNavbarComponent.prototype.offlineService;
|
|
11790
13399
|
}
|
|
11791
13400
|
|
|
11792
13401
|
/**
|
|
@@ -12412,18 +14021,31 @@ class ViewerComponent {
|
|
|
12412
14021
|
* @param {?} dialog
|
|
12413
14022
|
* @param {?} global
|
|
12414
14023
|
* @param {?} trailContentService
|
|
14024
|
+
* @param {?} offlineService
|
|
14025
|
+
* @param {?} cdr
|
|
12415
14026
|
*/
|
|
12416
|
-
constructor(_ambienteVirtualService, _sanitizer, _vimeoService, dialog, global, trailContentService) {
|
|
14027
|
+
constructor(_ambienteVirtualService, _sanitizer, _vimeoService, dialog, global, trailContentService, offlineService, cdr) {
|
|
12417
14028
|
this._ambienteVirtualService = _ambienteVirtualService;
|
|
12418
14029
|
this._sanitizer = _sanitizer;
|
|
12419
14030
|
this._vimeoService = _vimeoService;
|
|
12420
14031
|
this.dialog = dialog;
|
|
12421
14032
|
this.global = global;
|
|
12422
14033
|
this.trailContentService = trailContentService;
|
|
14034
|
+
this.offlineService = offlineService;
|
|
14035
|
+
this.cdr = cdr;
|
|
12423
14036
|
this.eventRefreshSideBar = new EventEmitter();
|
|
12424
14037
|
this.eventNavbar = new EventEmitter();
|
|
12425
14038
|
this.ratingOpened = false;
|
|
12426
14039
|
}
|
|
14040
|
+
/**
|
|
14041
|
+
* @param {?} changes
|
|
14042
|
+
* @return {?}
|
|
14043
|
+
*/
|
|
14044
|
+
ngOnChanges(changes) {
|
|
14045
|
+
if (changes['step'] && !changes['step'].firstChange) {
|
|
14046
|
+
this.getContent(this.step);
|
|
14047
|
+
}
|
|
14048
|
+
}
|
|
12427
14049
|
/**
|
|
12428
14050
|
* @return {?}
|
|
12429
14051
|
*/
|
|
@@ -12491,33 +14113,80 @@ class ViewerComponent {
|
|
|
12491
14113
|
* @return {?}
|
|
12492
14114
|
*/
|
|
12493
14115
|
getContent(step) {
|
|
12494
|
-
this
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
* @param {?} res
|
|
12498
|
-
* @return {?}
|
|
12499
|
-
*/
|
|
12500
|
-
(res) => {
|
|
12501
|
-
/** @type {?} */
|
|
12502
|
-
const data = res.data[0].value;
|
|
12503
|
-
this.redirect = res.redirect;
|
|
12504
|
-
this.content = res.data[0];
|
|
12505
|
-
if (res['data'][0].value) {
|
|
14116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14117
|
+
this.loader = true;
|
|
14118
|
+
try {
|
|
12506
14119
|
/** @type {?} */
|
|
12507
|
-
const
|
|
12508
|
-
|
|
12509
|
-
|
|
12510
|
-
|
|
14120
|
+
const offlineLesson = yield this.offlineService.getDownloadedLesson(step);
|
|
14121
|
+
if (offlineLesson) {
|
|
14122
|
+
/** @type {?} */
|
|
14123
|
+
let stageItems = [];
|
|
14124
|
+
if (Array.isArray(offlineLesson.stageData) && offlineLesson.stageData.length > 0) {
|
|
14125
|
+
stageItems = offlineLesson.stageData;
|
|
14126
|
+
}
|
|
14127
|
+
else if (offlineLesson.stageData && offlineLesson.stageData.type) {
|
|
14128
|
+
stageItems = [offlineLesson.stageData];
|
|
14129
|
+
}
|
|
14130
|
+
else {
|
|
14131
|
+
stageItems = [{
|
|
14132
|
+
type: 'video',
|
|
14133
|
+
title: offlineLesson.title,
|
|
14134
|
+
subTitle: offlineLesson.subtitle,
|
|
14135
|
+
source: 'file',
|
|
14136
|
+
source_path: offlineLesson.thumbnail,
|
|
14137
|
+
showVideoControl: true
|
|
14138
|
+
}];
|
|
14139
|
+
}
|
|
14140
|
+
this.componentArray = stageItems;
|
|
14141
|
+
this.content = { id: step, value: this.componentArray };
|
|
14142
|
+
this.loader = false;
|
|
14143
|
+
this.cdr.detectChanges();
|
|
14144
|
+
console.log('[ViewerComponent] Conteúdo carregado offline com sucesso (sem chamadas HTTP):', this.componentArray);
|
|
14145
|
+
return;
|
|
12511
14146
|
}
|
|
12512
14147
|
}
|
|
12513
|
-
|
|
12514
|
-
|
|
12515
|
-
|
|
12516
|
-
|
|
12517
|
-
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
14148
|
+
catch (e) {
|
|
14149
|
+
console.error('[ViewerComponent] Erro ao recuperar conteúdo offline:', e);
|
|
14150
|
+
}
|
|
14151
|
+
this._ambienteVirtualService.getContent(step)
|
|
14152
|
+
.subscribe((/**
|
|
14153
|
+
* @param {?} res
|
|
14154
|
+
* @return {?}
|
|
14155
|
+
*/
|
|
14156
|
+
(res) => {
|
|
14157
|
+
if (res && res.data && res.data[0]) {
|
|
14158
|
+
/** @type {?} */
|
|
14159
|
+
const data = res.data[0].value;
|
|
14160
|
+
this.redirect = res.redirect;
|
|
14161
|
+
this.content = res.data[0];
|
|
14162
|
+
if (res['data'][0].value) {
|
|
14163
|
+
/** @type {?} */
|
|
14164
|
+
const itensJson = res['data'][0].value;
|
|
14165
|
+
this.componentArray = [];
|
|
14166
|
+
for (const item of itensJson) {
|
|
14167
|
+
this.componentArray.push(item);
|
|
14168
|
+
}
|
|
14169
|
+
}
|
|
14170
|
+
}
|
|
14171
|
+
this.loader = false;
|
|
14172
|
+
}), (/**
|
|
14173
|
+
* @param {?} err
|
|
14174
|
+
* @return {?}
|
|
14175
|
+
*/
|
|
14176
|
+
(err) => __awaiter(this, void 0, void 0, function* () {
|
|
14177
|
+
console.log("Erro de rede getContent, tentando recuperar do offline storage:", err);
|
|
14178
|
+
try {
|
|
14179
|
+
/** @type {?} */
|
|
14180
|
+
const offlineLesson = yield this.offlineService.getDownloadedLesson(step);
|
|
14181
|
+
if (offlineLesson && offlineLesson.stageData) {
|
|
14182
|
+
this.componentArray = Array.isArray(offlineLesson.stageData) ? offlineLesson.stageData : [offlineLesson.stageData];
|
|
14183
|
+
this.content = { id: step, value: this.componentArray };
|
|
14184
|
+
}
|
|
14185
|
+
}
|
|
14186
|
+
catch (e) { }
|
|
14187
|
+
this.loader = false;
|
|
14188
|
+
})));
|
|
14189
|
+
});
|
|
12521
14190
|
}
|
|
12522
14191
|
/**
|
|
12523
14192
|
* @return {?}
|
|
@@ -12571,19 +14240,31 @@ class ViewerComponent {
|
|
|
12571
14240
|
* @return {?}
|
|
12572
14241
|
*/
|
|
12573
14242
|
doUpdateVideoTime(time) {
|
|
12574
|
-
|
|
12575
|
-
|
|
12576
|
-
|
|
12577
|
-
|
|
12578
|
-
|
|
12579
|
-
|
|
12580
|
-
|
|
12581
|
-
|
|
12582
|
-
|
|
12583
|
-
|
|
12584
|
-
(
|
|
12585
|
-
|
|
12586
|
-
|
|
14243
|
+
if (!navigator.onLine) {
|
|
14244
|
+
if (this.content && this.content.id) {
|
|
14245
|
+
this.offlineService.queueSyncAction({
|
|
14246
|
+
type: 'video_progress',
|
|
14247
|
+
endpoint: '/api/v2/client/ambiente-virtual/video-tempo',
|
|
14248
|
+
payload: { content_id: this.content.id, current_time: time.current }
|
|
14249
|
+
});
|
|
14250
|
+
}
|
|
14251
|
+
return;
|
|
14252
|
+
}
|
|
14253
|
+
if (this.content && this.content.id) {
|
|
14254
|
+
this.trailContentService.videoTime(this.content.id, time.current).subscribe((/**
|
|
14255
|
+
* @param {?} result
|
|
14256
|
+
* @return {?}
|
|
14257
|
+
*/
|
|
14258
|
+
(result) => {
|
|
14259
|
+
console.log('doUpdateVideoTime ->', result);
|
|
14260
|
+
}), (/**
|
|
14261
|
+
* @param {?} error
|
|
14262
|
+
* @return {?}
|
|
14263
|
+
*/
|
|
14264
|
+
(error) => {
|
|
14265
|
+
console.log('Error updateVideoTime', error);
|
|
14266
|
+
}));
|
|
14267
|
+
}
|
|
12587
14268
|
}
|
|
12588
14269
|
/**
|
|
12589
14270
|
* @private
|
|
@@ -12668,7 +14349,9 @@ ViewerComponent.ctorParameters = () => [
|
|
|
12668
14349
|
{ type: VimeoService },
|
|
12669
14350
|
{ type: MatDialog },
|
|
12670
14351
|
{ type: Global },
|
|
12671
|
-
{ type: TrailContentService }
|
|
14352
|
+
{ type: TrailContentService },
|
|
14353
|
+
{ type: OfflineStorageService },
|
|
14354
|
+
{ type: ChangeDetectorRef }
|
|
12672
14355
|
];
|
|
12673
14356
|
ViewerComponent.propDecorators = {
|
|
12674
14357
|
module: [{ type: Input }],
|
|
@@ -12733,6 +14416,13 @@ if (false) {
|
|
|
12733
14416
|
ViewerComponent.prototype.global;
|
|
12734
14417
|
/** @type {?} */
|
|
12735
14418
|
ViewerComponent.prototype.trailContentService;
|
|
14419
|
+
/** @type {?} */
|
|
14420
|
+
ViewerComponent.prototype.offlineService;
|
|
14421
|
+
/**
|
|
14422
|
+
* @type {?}
|
|
14423
|
+
* @private
|
|
14424
|
+
*/
|
|
14425
|
+
ViewerComponent.prototype.cdr;
|
|
12736
14426
|
}
|
|
12737
14427
|
|
|
12738
14428
|
/**
|
|
@@ -24778,6 +26468,7 @@ const declareAndExport = [
|
|
|
24778
26468
|
StudioVisualizadorComponent,
|
|
24779
26469
|
StudioStarRatingComponent,
|
|
24780
26470
|
StudioModalStarRatingComponent,
|
|
26471
|
+
OfflineManagerModalComponent
|
|
24781
26472
|
];
|
|
24782
26473
|
class AsapViewerModule {
|
|
24783
26474
|
}
|
|
@@ -24819,7 +26510,15 @@ AsapViewerModule.decorators = [
|
|
|
24819
26510
|
modalTrilhaBanner,
|
|
24820
26511
|
MiniModalTrilhaBanner,
|
|
24821
26512
|
ModalStarRatingComponent,
|
|
24822
|
-
StudioModalStarRatingComponent
|
|
26513
|
+
StudioModalStarRatingComponent,
|
|
26514
|
+
OfflineManagerModalComponent
|
|
26515
|
+
],
|
|
26516
|
+
providers: [
|
|
26517
|
+
{
|
|
26518
|
+
provide: HTTP_INTERCEPTORS,
|
|
26519
|
+
useClass: OfflineHttpInterceptor,
|
|
26520
|
+
multi: true
|
|
26521
|
+
}
|
|
24823
26522
|
]
|
|
24824
26523
|
},] }
|
|
24825
26524
|
];
|
|
@@ -24836,5 +26535,5 @@ AsapViewerModule.decorators = [
|
|
|
24836
26535
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
24837
26536
|
*/
|
|
24838
26537
|
|
|
24839
|
-
export { AsapViewerComponent, AsapViewerModule, AsapViewerRoutes, AsapViewerService, CursoVisualizadorComponent as ɵa, AmbienteVirtualService as ɵb, FornecedorService as ɵba, VisualizarMaoObraProdutoComponent as ɵbb, ArtesanService as ɵbc, VisualizarFornecedorProdutoComponent as ɵbd, VisualizarCalcularProdutoComponent as ɵbe, CalculadoraService as ɵbf, PedidosComponent as ɵbg, MY_FORMATS as ɵbh, DadosPedidoComponent as ɵbi, PedidoService as ɵbj, CalculoPedidoComponent as ɵbk, ValorService as ɵbl, ListaProdutoseService as ɵbm, CustosComponent as ɵbn, TransporteService as ɵbo, DescService as ɵbp, ComprasComponent as ɵbq, ListaService as ɵbr, ViabilidadeComponent as ɵbs, CustosFixosComponent as ɵbt, CustoService as ɵbu, CustosVariaveisComponent as ɵbv, ViabilidadeService as ɵbw, FaturamentoEstimadoComponent as ɵbx, MaterialModule as ɵby, ExerciciosModule as ɵbz, bannerService as ɵc, ExerciciosRoutes as ɵca, GestaoVisualizadorComponent as ɵcb, GestaoResumoComponent as ɵcc, Exercicio1Component as ɵcd, CalculadoraFinanceiraComponent as ɵce, BalanceSheetService as ɵcf, ExercisesService as ɵcg, ComoResolverDividasComponent as ɵch, TrabalharPraGanharComponent as ɵci, MeuClienteComponent as ɵcj, MY_FORMATS$1 as ɵck, SemanaComponent as ɵcl, Aula10Ex1Component as ɵcm, Aula10Ex3Component as ɵcn, Aula12Ex6Component as ɵco, ProductionTimeComponent as ɵcp, GestaoSidebarComponent as ɵcq, GestaoNavbarComponent as ɵcr, ViewerGestaoComponent as ɵcs, Exercicio1Tab1Component as ɵct, Exercicio1Tab2Component as ɵcu, Exercicio1Tab3Component as ɵcv, Exercicio1ScenarioComponent as ɵcw, Exercicio2Component as ɵcx, Exercicio2_3Component as ɵcy, Exercicio3Component as ɵcz, Trailv2Service as ɵd, Exercicio4Component as ɵda, Exercicio5Component as ɵdb, AssessmentVisualizadorModule as ɵdc, AssessmentVisualizadorRoute as ɵdd, AssessmentVisualizadorComponent as ɵde, AssessmentService as ɵdf, DetailComponent as ɵdg, AsessmentReportComponent as ɵdh, DetailInnerComponent as ɵdi, SidebarAssessmentComponent as ɵdj, NavbarAssessmentComponent as ɵdk, AssessmentReportInnerComponent as ɵdl, RadarComponent as ɵdm, EditorComponentsModule as ɵdn, FileManagerModule as ɵdo, FileManagerComponent as ɵdp, FileManagerService as ɵdq, FileManagerModel as ɵdr, FileManagerDirective as ɵds, PipesModule as ɵdt, SafeUrlPipe as ɵdu, StreamPipe as ɵdv, AsapClientPipe as ɵdw, YoutubeEmbedPipe as ɵdx, CheckTypePipe as ɵdy, VimeoEmbedPipe as ɵdz, StudioVisualizadorComponent as ɵe, ComponentSharedModule as ɵea, SharedTitleComponent as ɵeb, SharedSubTitleComponent as ɵec, SharedButtonComponent as ɵed, SharedMediaComponent as ɵee, SharedTextComponent as ɵef, DynamicInputComponent as ɵeg, EditorChallengeComponent as ɵeh, VimeoService as ɵei, EditorChallengeConfigComponent as ɵej, EditorConclusionComponent as ɵek, TrilhaPerformanceService as ɵel, TrilhaRatingService as ɵem, EditorConclusionConfigComponent as ɵen, EditorDynamicTableComponent as ɵeo, TrailContentService as ɵep, EditorDynamicTableConfigComponent as ɵeq, EditorIntroComponent as ɵer, EditorIntroConfigComponent as ɵes, EditorLongTextComponent as ɵet, EditorLongTextConfigComponent as ɵeu, EditorMultiChoiceComponent as ɵev, EditorMultipleQuestionsComponent as ɵew, EditorMultipleQuestionsConfigComponent as ɵex, EditorSalesChannelComponent as ɵey, EditorSalesChannelConfigComponent as ɵez, StudioVisualizadorService as ɵf, EditorSheetCorrectIncorrectComponent as ɵfa, EditorSheetCorrectIncorrectConfigComponent as ɵfb, EditorYesNoComponent as ɵfc, EditorYesNoConfigComponent as ɵfd, VideoComponent as ɵfe, ImageComponent as ɵff, EditorImageConfigComponent as ɵfg, EditorUploadComponent as ɵfh, EditorUploadConfigComponent as ɵfi, EditorDownloadComponent as ɵfj, EditorDownloadConfigComponent as ɵfk, EditorStarPointComponent as ɵfl, EditorStarPointConfigComponent as ɵfm, EditorRatingComponent as ɵfn, EditorRatingConfigComponent as ɵfo, ForumComponent as ɵfp, ForumService as ɵfq, ForumResponseService as ɵfr, ForumVoteService as ɵfs, EditorForumConfigComponent as ɵft, EditorAvaliationComponent as ɵfu, EditorContractComponent as ɵfv, FormStepComponent as ɵfw, EditorPdfComponent as ɵfx, EditorResearchComponent as ɵfy, EditorPageComponent as ɵfz, MiniCursoVisualizadorComponent as ɵg, FeedbackComponent as ɵga, FirebaseNotificationService as ɵgb, AudioComponent as ɵgc, EditorRandomQuestionsComponent as ɵgd, TextComponent as ɵge, BannerModule as ɵgf, BannerComponent as ɵgg, SpinnerModule as ɵgh, SpinnerComponent as ɵgi, CursoNavbarComponent as ɵgj, CursoSidebarComponent as ɵgk, modalTrilhaBanner as ɵgl, ModalStarRatingComponent as ɵgm, ViewerComponent as ɵgn, MiniCursoSidebarComponent as ɵgo, MiniCursoSideMenuComponent as ɵgp, AreaPermissionService as ɵgq, TutorService as ɵgr, MiniCursoNavbarComponent as ɵgs, NotificationService as ɵgt, MiniViewerComponent as ɵgu, MiniTrailCommentService as ɵgv, MiniModalTrilhaBanner as ɵgw, MiniSliderComponent as ɵgx, StarRatingComponent as ɵgy, PrecificacaoSidebarComponent as ɵgz, MiniTrailService as ɵh, PrecificacaoNavbarComponent as ɵha, ViewerPrecificacaoComponent as ɵhb, ModalMaoObraProdutoComponent as ɵhc, ModalCustosComponent as ɵhd, ModalResumoComponent as ɵhe, ModalEdit as ɵhf, ModalFaturamentoEstimadoComponent as ɵhg, MaterialPipe as ɵhh, CommentsComponent as ɵhi, CommentsService as ɵhj, VisualizarForumComponent as ɵhk, ForumTrilhaService as ɵhl, PointsComponent as ɵhm, TrailService as ɵhn, Trail as ɵho, StudioStarRatingComponent as ɵhp, StudioModalStarRatingComponent as ɵhq, BaseService as ɵi, DevelopmentService as ɵj, ArticlesService as ɵk, TrilhaService as ɵl, TrilhaItemService as ɵm, LayoutService as ɵn, ExercisesComponent as ɵo, PrecificacaoVisualizadorComponent as ɵp, ProdutosComponent as ɵq, ProdutosService as ɵr, NovoProdutoComponent as ɵs, MeusPedidosComponent as ɵt, PedidoService$1 as ɵu, VisualizarProdutoComponent as ɵv, VisualizarResumoProdutoComponent as ɵw, MaterialService as ɵx, MaoObraService as ɵy, VisualizarMateriaisProdutoComponent as ɵz };
|
|
26538
|
+
export { AsapViewerComponent, AsapViewerModule, AsapViewerRoutes, AsapViewerService, OfflineManagerModalComponent, OfflineStorageService, CursoVisualizadorComponent as ɵa, AmbienteVirtualService as ɵb, FornecedorService as ɵba, VisualizarMaoObraProdutoComponent as ɵbb, ArtesanService as ɵbc, VisualizarFornecedorProdutoComponent as ɵbd, VisualizarCalcularProdutoComponent as ɵbe, CalculadoraService as ɵbf, PedidosComponent as ɵbg, MY_FORMATS as ɵbh, DadosPedidoComponent as ɵbi, PedidoService as ɵbj, CalculoPedidoComponent as ɵbk, ValorService as ɵbl, ListaProdutoseService as ɵbm, CustosComponent as ɵbn, TransporteService as ɵbo, DescService as ɵbp, ComprasComponent as ɵbq, ListaService as ɵbr, ViabilidadeComponent as ɵbs, CustosFixosComponent as ɵbt, CustoService as ɵbu, CustosVariaveisComponent as ɵbv, ViabilidadeService as ɵbw, FaturamentoEstimadoComponent as ɵbx, MaterialModule as ɵby, ExerciciosModule as ɵbz, bannerService as ɵc, ExerciciosRoutes as ɵca, GestaoVisualizadorComponent as ɵcb, GestaoResumoComponent as ɵcc, Exercicio1Component as ɵcd, CalculadoraFinanceiraComponent as ɵce, BalanceSheetService as ɵcf, ExercisesService as ɵcg, ComoResolverDividasComponent as ɵch, TrabalharPraGanharComponent as ɵci, MeuClienteComponent as ɵcj, MY_FORMATS$1 as ɵck, SemanaComponent as ɵcl, Aula10Ex1Component as ɵcm, Aula10Ex3Component as ɵcn, Aula12Ex6Component as ɵco, ProductionTimeComponent as ɵcp, GestaoSidebarComponent as ɵcq, GestaoNavbarComponent as ɵcr, ViewerGestaoComponent as ɵcs, Exercicio1Tab1Component as ɵct, Exercicio1Tab2Component as ɵcu, Exercicio1Tab3Component as ɵcv, Exercicio1ScenarioComponent as ɵcw, Exercicio2Component as ɵcx, Exercicio2_3Component as ɵcy, Exercicio3Component as ɵcz, Trailv2Service as ɵd, Exercicio4Component as ɵda, Exercicio5Component as ɵdb, AssessmentVisualizadorModule as ɵdc, AssessmentVisualizadorRoute as ɵdd, AssessmentVisualizadorComponent as ɵde, AssessmentService as ɵdf, DetailComponent as ɵdg, AsessmentReportComponent as ɵdh, DetailInnerComponent as ɵdi, SidebarAssessmentComponent as ɵdj, NavbarAssessmentComponent as ɵdk, AssessmentReportInnerComponent as ɵdl, RadarComponent as ɵdm, EditorComponentsModule as ɵdn, FileManagerModule as ɵdo, FileManagerComponent as ɵdp, FileManagerService as ɵdq, FileManagerModel as ɵdr, FileManagerDirective as ɵds, PipesModule as ɵdt, SafeUrlPipe as ɵdu, StreamPipe as ɵdv, AsapClientPipe as ɵdw, YoutubeEmbedPipe as ɵdx, CheckTypePipe as ɵdy, VimeoEmbedPipe as ɵdz, StudioVisualizadorComponent as ɵe, ComponentSharedModule as ɵea, SharedTitleComponent as ɵeb, SharedSubTitleComponent as ɵec, SharedButtonComponent as ɵed, SharedMediaComponent as ɵee, SharedTextComponent as ɵef, DynamicInputComponent as ɵeg, EditorChallengeComponent as ɵeh, VimeoService as ɵei, EditorChallengeConfigComponent as ɵej, EditorConclusionComponent as ɵek, TrilhaPerformanceService as ɵel, TrilhaRatingService as ɵem, EditorConclusionConfigComponent as ɵen, EditorDynamicTableComponent as ɵeo, TrailContentService as ɵep, EditorDynamicTableConfigComponent as ɵeq, EditorIntroComponent as ɵer, EditorIntroConfigComponent as ɵes, EditorLongTextComponent as ɵet, EditorLongTextConfigComponent as ɵeu, EditorMultiChoiceComponent as ɵev, EditorMultipleQuestionsComponent as ɵew, EditorMultipleQuestionsConfigComponent as ɵex, EditorSalesChannelComponent as ɵey, EditorSalesChannelConfigComponent as ɵez, StudioVisualizadorService as ɵf, EditorSheetCorrectIncorrectComponent as ɵfa, EditorSheetCorrectIncorrectConfigComponent as ɵfb, EditorYesNoComponent as ɵfc, EditorYesNoConfigComponent as ɵfd, VideoComponent as ɵfe, ImageComponent as ɵff, EditorImageConfigComponent as ɵfg, EditorUploadComponent as ɵfh, EditorUploadConfigComponent as ɵfi, EditorDownloadComponent as ɵfj, EditorDownloadConfigComponent as ɵfk, EditorStarPointComponent as ɵfl, EditorStarPointConfigComponent as ɵfm, EditorRatingComponent as ɵfn, EditorRatingConfigComponent as ɵfo, ForumComponent as ɵfp, ForumService as ɵfq, ForumResponseService as ɵfr, ForumVoteService as ɵfs, EditorForumConfigComponent as ɵft, EditorAvaliationComponent as ɵfu, EditorContractComponent as ɵfv, FormStepComponent as ɵfw, EditorPdfComponent as ɵfx, EditorResearchComponent as ɵfy, EditorPageComponent as ɵfz, MiniCursoVisualizadorComponent as ɵg, FeedbackComponent as ɵga, FirebaseNotificationService as ɵgb, AudioComponent as ɵgc, EditorRandomQuestionsComponent as ɵgd, TextComponent as ɵge, BannerModule as ɵgf, BannerComponent as ɵgg, SpinnerModule as ɵgh, SpinnerComponent as ɵgi, CursoNavbarComponent as ɵgj, CursoSidebarComponent as ɵgk, modalTrilhaBanner as ɵgl, ModalStarRatingComponent as ɵgm, ViewerComponent as ɵgn, MiniCursoSidebarComponent as ɵgo, MiniCursoSideMenuComponent as ɵgp, AreaPermissionService as ɵgq, TutorService as ɵgr, MiniCursoNavbarComponent as ɵgs, NotificationService as ɵgt, MiniViewerComponent as ɵgu, MiniTrailCommentService as ɵgv, MiniModalTrilhaBanner as ɵgw, MiniSliderComponent as ɵgx, StarRatingComponent as ɵgy, PrecificacaoSidebarComponent as ɵgz, MiniTrailService as ɵh, PrecificacaoNavbarComponent as ɵha, ViewerPrecificacaoComponent as ɵhb, ModalMaoObraProdutoComponent as ɵhc, ModalCustosComponent as ɵhd, ModalResumoComponent as ɵhe, ModalEdit as ɵhf, ModalFaturamentoEstimadoComponent as ɵhg, MaterialPipe as ɵhh, CommentsComponent as ɵhi, CommentsService as ɵhj, VisualizarForumComponent as ɵhk, ForumTrilhaService as ɵhl, PointsComponent as ɵhm, TrailService as ɵhn, Trail as ɵho, StudioStarRatingComponent as ɵhp, StudioModalStarRatingComponent as ɵhq, OfflineHttpInterceptor as ɵhr, BaseService as ɵi, DevelopmentService as ɵj, ArticlesService as ɵk, TrilhaService as ɵl, TrilhaItemService as ɵm, LayoutService as ɵn, ExercisesComponent as ɵo, PrecificacaoVisualizadorComponent as ɵp, ProdutosComponent as ɵq, ProdutosService as ɵr, NovoProdutoComponent as ɵs, MeusPedidosComponent as ɵt, PedidoService$1 as ɵu, VisualizarProdutoComponent as ɵv, VisualizarResumoProdutoComponent as ɵw, MaterialService as ɵx, MaoObraService as ɵy, VisualizarMateriaisProdutoComponent as ɵz };
|
|
24840
26539
|
//# sourceMappingURL=asap-viewer.js.map
|