asap-viewer 12.6.28 → 12.6.31
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.metadata.json +1 -1
- package/bundles/asap-viewer.umd.js +1857 -614
- 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/lib/editor/components/pdf/pdf.component.js +453 -18
- package/esm2015/lib/editor/components/video/video.component.js +692 -39
- package/esm5/lib/editor/components/pdf/pdf.component.js +537 -15
- package/esm5/lib/editor/components/video/video.component.js +761 -39
- package/fesm2015/asap-viewer.js +1141 -54
- package/fesm2015/asap-viewer.js.map +1 -1
- package/fesm5/asap-viewer.js +1857 -614
- package/fesm5/asap-viewer.js.map +1 -1
- package/lib/editor/components/pdf/pdf.component.d.ts +36 -5
- package/lib/editor/components/video/video.component.d.ts +37 -1
- package/package.json +1 -1
|
@@ -5045,8 +5045,23 @@
|
|
|
5045
5045
|
this.isOnline = navigator.onLine;
|
|
5046
5046
|
this.timeLapse = 0;
|
|
5047
5047
|
this.disableNextButton = false;
|
|
5048
|
+
this.isVimeoPlaying = false;
|
|
5049
|
+
this.isVimeoBuffering = false;
|
|
5050
|
+
this.hasVimeoError = false;
|
|
5051
|
+
// HTML5 Video resilience & state
|
|
5052
|
+
this.isHtml5Playing = false;
|
|
5053
|
+
this.isHtml5Paused = false;
|
|
5054
|
+
this.isBuffering = false;
|
|
5055
|
+
this.hasVideoError = false;
|
|
5056
|
+
this.isRecovering = false;
|
|
5057
|
+
this.lastValidTime = 0;
|
|
5058
|
+
this.pendingResumeTime = 0;
|
|
5059
|
+
this.shouldAutoResume = false;
|
|
5060
|
+
this.stalledSeconds = 0;
|
|
5061
|
+
this.lastWatchdogTime = -1;
|
|
5062
|
+
this.recoveryAttempts = 0;
|
|
5063
|
+
this.MAX_RECOVERY_ATTEMPTS = 3;
|
|
5048
5064
|
this.loadYT();
|
|
5049
|
-
console.log("ITEM:", this.item);
|
|
5050
5065
|
}
|
|
5051
5066
|
/**
|
|
5052
5067
|
* @return {?}
|
|
@@ -5113,6 +5128,82 @@
|
|
|
5113
5128
|
}
|
|
5114
5129
|
}
|
|
5115
5130
|
};
|
|
5131
|
+
/**
|
|
5132
|
+
* @private
|
|
5133
|
+
* @return {?}
|
|
5134
|
+
*/
|
|
5135
|
+
VideoComponent.prototype.resetPlayerState = /**
|
|
5136
|
+
* @private
|
|
5137
|
+
* @return {?}
|
|
5138
|
+
*/
|
|
5139
|
+
function () {
|
|
5140
|
+
this.clearAllTimers();
|
|
5141
|
+
this.destroyExternalPlayer();
|
|
5142
|
+
this.play = false;
|
|
5143
|
+
this.isVimeoPlaying = false;
|
|
5144
|
+
this.isVimeoBuffering = false;
|
|
5145
|
+
this.hasVimeoError = false;
|
|
5146
|
+
this.isHtml5Playing = false;
|
|
5147
|
+
this.isHtml5Paused = false;
|
|
5148
|
+
this.isBuffering = false;
|
|
5149
|
+
this.hasVideoError = false;
|
|
5150
|
+
this.isRecovering = false;
|
|
5151
|
+
this.lastValidTime = 0;
|
|
5152
|
+
this.pendingResumeTime = 0;
|
|
5153
|
+
this.shouldAutoResume = false;
|
|
5154
|
+
this.stalledSeconds = 0;
|
|
5155
|
+
this.lastWatchdogTime = -1;
|
|
5156
|
+
this.recoveryAttempts = 0;
|
|
5157
|
+
};
|
|
5158
|
+
/**
|
|
5159
|
+
* @private
|
|
5160
|
+
* @return {?}
|
|
5161
|
+
*/
|
|
5162
|
+
VideoComponent.prototype.clearAllTimers = /**
|
|
5163
|
+
* @private
|
|
5164
|
+
* @return {?}
|
|
5165
|
+
*/
|
|
5166
|
+
function () {
|
|
5167
|
+
if (this.timeLapseTimer) {
|
|
5168
|
+
clearInterval(this.timeLapseTimer);
|
|
5169
|
+
this.timeLapseTimer = null;
|
|
5170
|
+
}
|
|
5171
|
+
if (this.videoMonitor) {
|
|
5172
|
+
clearInterval(this.videoMonitor);
|
|
5173
|
+
this.videoMonitor = null;
|
|
5174
|
+
}
|
|
5175
|
+
if (this.stallWatchdogTimer) {
|
|
5176
|
+
clearInterval(this.stallWatchdogTimer);
|
|
5177
|
+
this.stallWatchdogTimer = null;
|
|
5178
|
+
}
|
|
5179
|
+
if (this.recoveryTimeoutTimer) {
|
|
5180
|
+
clearTimeout(this.recoveryTimeoutTimer);
|
|
5181
|
+
this.recoveryTimeoutTimer = null;
|
|
5182
|
+
}
|
|
5183
|
+
if (this.retryDelayTimer) {
|
|
5184
|
+
clearTimeout(this.retryDelayTimer);
|
|
5185
|
+
this.retryDelayTimer = null;
|
|
5186
|
+
}
|
|
5187
|
+
};
|
|
5188
|
+
/**
|
|
5189
|
+
* @private
|
|
5190
|
+
* @return {?}
|
|
5191
|
+
*/
|
|
5192
|
+
VideoComponent.prototype.destroyExternalPlayer = /**
|
|
5193
|
+
* @private
|
|
5194
|
+
* @return {?}
|
|
5195
|
+
*/
|
|
5196
|
+
function () {
|
|
5197
|
+
if (this.player) {
|
|
5198
|
+
try {
|
|
5199
|
+
if (typeof this.player.destroy === 'function') {
|
|
5200
|
+
this.player.destroy();
|
|
5201
|
+
}
|
|
5202
|
+
}
|
|
5203
|
+
catch (e) { }
|
|
5204
|
+
this.player = null;
|
|
5205
|
+
}
|
|
5206
|
+
};
|
|
5116
5207
|
/**
|
|
5117
5208
|
* @param {?} changes
|
|
5118
5209
|
* @return {?}
|
|
@@ -5123,6 +5214,7 @@
|
|
|
5123
5214
|
*/
|
|
5124
5215
|
function (changes) {
|
|
5125
5216
|
if (changes['id'] || changes['item']) {
|
|
5217
|
+
this.resetPlayerState();
|
|
5126
5218
|
this.disableNextButton = this.isAllowNext();
|
|
5127
5219
|
this.loadPosterIfEmpty();
|
|
5128
5220
|
this.loadOfflineVideo();
|
|
@@ -5147,10 +5239,8 @@
|
|
|
5147
5239
|
case 1:
|
|
5148
5240
|
isDownloaded = _a.sent();
|
|
5149
5241
|
if (!isDownloaded) return [3 /*break*/, 3];
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
}
|
|
5153
|
-
this.player = null;
|
|
5242
|
+
this.clearAllTimers();
|
|
5243
|
+
this.destroyExternalPlayer();
|
|
5154
5244
|
return [4 /*yield*/, this.offlineService.getOfflineVideoUrl(this.id)];
|
|
5155
5245
|
case 2:
|
|
5156
5246
|
url = _a.sent();
|
|
@@ -5172,7 +5262,7 @@
|
|
|
5172
5262
|
}
|
|
5173
5263
|
return [2 /*return*/];
|
|
5174
5264
|
case 3:
|
|
5175
|
-
if (this.item && this.
|
|
5265
|
+
if (this.item && (this.isVimeoSource() || this.isYoutubeSource()) && !this.offlineUrl && navigator.onLine) {
|
|
5176
5266
|
this.initOnlinePlayer();
|
|
5177
5267
|
}
|
|
5178
5268
|
return [2 /*return*/];
|
|
@@ -5303,6 +5393,7 @@
|
|
|
5303
5393
|
iframe = (/** @type {?} */ (document.querySelector('#iframe_vimeo')));
|
|
5304
5394
|
if (iframe && window['Vimeo']) {
|
|
5305
5395
|
try {
|
|
5396
|
+
this.destroyExternalPlayer();
|
|
5306
5397
|
this.player = new window['Vimeo'].Player(iframe);
|
|
5307
5398
|
this.player.ready().then((/**
|
|
5308
5399
|
* @return {?}
|
|
@@ -5311,13 +5402,66 @@
|
|
|
5311
5402
|
/** @type {?} */
|
|
5312
5403
|
var startTime = _this.getStartTime();
|
|
5313
5404
|
if (startTime > 0) {
|
|
5314
|
-
_this.player.
|
|
5315
|
-
* @param {?}
|
|
5405
|
+
_this.player.getDuration().then((/**
|
|
5406
|
+
* @param {?} duration
|
|
5407
|
+
* @return {?}
|
|
5408
|
+
*/
|
|
5409
|
+
function (duration) {
|
|
5410
|
+
if (!duration || startTime < duration - 2) {
|
|
5411
|
+
_this.player.setCurrentTime(startTime).catch((/**
|
|
5412
|
+
* @param {?} err
|
|
5413
|
+
* @return {?}
|
|
5414
|
+
*/
|
|
5415
|
+
function (err) { return console.error('[VideoComponent] Erro ao setar start time no Vimeo:', err); }));
|
|
5416
|
+
}
|
|
5417
|
+
})).catch((/**
|
|
5316
5418
|
* @return {?}
|
|
5317
5419
|
*/
|
|
5318
|
-
function (
|
|
5420
|
+
function () { }));
|
|
5319
5421
|
}
|
|
5320
5422
|
}));
|
|
5423
|
+
this.player.on('play', (/**
|
|
5424
|
+
* @return {?}
|
|
5425
|
+
*/
|
|
5426
|
+
function () {
|
|
5427
|
+
_this.isVimeoPlaying = true;
|
|
5428
|
+
_this.isVimeoBuffering = false;
|
|
5429
|
+
_this.hasVimeoError = false;
|
|
5430
|
+
_this.cdr.detectChanges();
|
|
5431
|
+
}));
|
|
5432
|
+
this.player.on('pause', (/**
|
|
5433
|
+
* @return {?}
|
|
5434
|
+
*/
|
|
5435
|
+
function () {
|
|
5436
|
+
_this.isVimeoPlaying = false;
|
|
5437
|
+
_this.isVimeoBuffering = false;
|
|
5438
|
+
_this.cdr.detectChanges();
|
|
5439
|
+
}));
|
|
5440
|
+
this.player.on('bufferstart', (/**
|
|
5441
|
+
* @return {?}
|
|
5442
|
+
*/
|
|
5443
|
+
function () {
|
|
5444
|
+
_this.isVimeoBuffering = true;
|
|
5445
|
+
_this.cdr.detectChanges();
|
|
5446
|
+
}));
|
|
5447
|
+
this.player.on('bufferend', (/**
|
|
5448
|
+
* @return {?}
|
|
5449
|
+
*/
|
|
5450
|
+
function () {
|
|
5451
|
+
_this.isVimeoBuffering = false;
|
|
5452
|
+
_this.cdr.detectChanges();
|
|
5453
|
+
}));
|
|
5454
|
+
this.player.on('error', (/**
|
|
5455
|
+
* @param {?} err
|
|
5456
|
+
* @return {?}
|
|
5457
|
+
*/
|
|
5458
|
+
function (err) {
|
|
5459
|
+
console.error('[VideoComponent] Erro no player Vimeo:', err);
|
|
5460
|
+
_this.isVimeoBuffering = false;
|
|
5461
|
+
_this.isVimeoPlaying = false;
|
|
5462
|
+
_this.hasVimeoError = true;
|
|
5463
|
+
_this.cdr.detectChanges();
|
|
5464
|
+
}));
|
|
5321
5465
|
this.player.on('timeupdate', (/**
|
|
5322
5466
|
* @param {?} event
|
|
5323
5467
|
* @return {?}
|
|
@@ -5336,6 +5480,8 @@
|
|
|
5336
5480
|
progress: videoProgress,
|
|
5337
5481
|
id: _this.id
|
|
5338
5482
|
};
|
|
5483
|
+
_this.isVimeoBuffering = false;
|
|
5484
|
+
_this.hasVimeoError = false;
|
|
5339
5485
|
if (_this.isAllowNext()) {
|
|
5340
5486
|
if (videoProgress >= 95) {
|
|
5341
5487
|
_this.disableNextButton = false;
|
|
@@ -5352,6 +5498,8 @@
|
|
|
5352
5498
|
* @return {?}
|
|
5353
5499
|
*/
|
|
5354
5500
|
function () {
|
|
5501
|
+
_this.isVimeoPlaying = false;
|
|
5502
|
+
_this.isVimeoBuffering = false;
|
|
5355
5503
|
_this.disableNextButton = false;
|
|
5356
5504
|
_this.videoTime.emit({
|
|
5357
5505
|
current: 100,
|
|
@@ -5393,6 +5541,7 @@
|
|
|
5393
5541
|
var divPlayer = document.getElementById('video_player');
|
|
5394
5542
|
if (divPlayer && !_this.player && !_this.offlineUrl) {
|
|
5395
5543
|
clearInterval(_this.videoMonitor);
|
|
5544
|
+
_this.videoMonitor = null;
|
|
5396
5545
|
if (_this.item.source === 'youtube' || _this.isYoutubeSource()) {
|
|
5397
5546
|
if (!_this.item.poster) {
|
|
5398
5547
|
_this.playYoutubeVideo();
|
|
@@ -5403,7 +5552,7 @@
|
|
|
5403
5552
|
_this.initVimeoPlayer();
|
|
5404
5553
|
}
|
|
5405
5554
|
}
|
|
5406
|
-
}),
|
|
5555
|
+
}), 500);
|
|
5407
5556
|
};
|
|
5408
5557
|
/**
|
|
5409
5558
|
* @return {?}
|
|
@@ -5493,16 +5642,31 @@
|
|
|
5493
5642
|
*/
|
|
5494
5643
|
function () {
|
|
5495
5644
|
var _this = this;
|
|
5496
|
-
console.log('VideoComponent: CONTENT ->', this.content);
|
|
5497
|
-
console.log('VideoComponent: ITEM ->', this.item);
|
|
5498
5645
|
this.disableNextButton = this.isAllowNext();
|
|
5499
5646
|
this.loadPosterIfEmpty();
|
|
5500
|
-
this.offlineService.isOnline$.subscribe((/**
|
|
5647
|
+
this.onlineSub = this.offlineService.isOnline$.subscribe((/**
|
|
5501
5648
|
* @param {?} online
|
|
5502
5649
|
* @return {?}
|
|
5503
5650
|
*/
|
|
5504
5651
|
function (online) {
|
|
5652
|
+
/** @type {?} */
|
|
5653
|
+
var wasOffline = !_this.isOnline;
|
|
5505
5654
|
_this.isOnline = online;
|
|
5655
|
+
if (online && wasOffline) {
|
|
5656
|
+
if (_this.hasVideoError || _this.isBuffering || _this.isRecovering || _this.shouldAutoResume) {
|
|
5657
|
+
console.log('[VideoComponent] Conexão restabelecida! Retomando vídeo automaticamente...');
|
|
5658
|
+
_this.shouldAutoResume = true;
|
|
5659
|
+
setTimeout((/**
|
|
5660
|
+
* @return {?}
|
|
5661
|
+
*/
|
|
5662
|
+
function () {
|
|
5663
|
+
_this.attemptHtml5Recovery(true);
|
|
5664
|
+
}), 500);
|
|
5665
|
+
}
|
|
5666
|
+
else if (_this.hasVimeoError || _this.isVimeoBuffering) {
|
|
5667
|
+
_this.toggleVimeoPlay();
|
|
5668
|
+
}
|
|
5669
|
+
}
|
|
5506
5670
|
}));
|
|
5507
5671
|
this.loadOfflineVideo();
|
|
5508
5672
|
if (this.id) {
|
|
@@ -5517,7 +5681,6 @@
|
|
|
5517
5681
|
* @return {?}
|
|
5518
5682
|
*/
|
|
5519
5683
|
function (res) {
|
|
5520
|
-
console.log('RESPONSE', res);
|
|
5521
5684
|
/** @type {?} */
|
|
5522
5685
|
var check = res.data.find((/**
|
|
5523
5686
|
* @param {?} item
|
|
@@ -5546,8 +5709,10 @@
|
|
|
5546
5709
|
* @return {?}
|
|
5547
5710
|
*/
|
|
5548
5711
|
function () {
|
|
5549
|
-
|
|
5550
|
-
|
|
5712
|
+
this.clearAllTimers();
|
|
5713
|
+
this.destroyExternalPlayer();
|
|
5714
|
+
if (this.onlineSub) {
|
|
5715
|
+
this.onlineSub.unsubscribe();
|
|
5551
5716
|
}
|
|
5552
5717
|
};
|
|
5553
5718
|
/**
|
|
@@ -5574,7 +5739,6 @@
|
|
|
5574
5739
|
'start': Math.floor(startTime),
|
|
5575
5740
|
'controls': (this.item && this.item.showVideoControl) ? 1 : 0,
|
|
5576
5741
|
'showinfo': 0,
|
|
5577
|
-
// <- This part here
|
|
5578
5742
|
'playsinline': 1,
|
|
5579
5743
|
'enablejsapi': 1,
|
|
5580
5744
|
'poster': this.item ? this.item.poster : null,
|
|
@@ -5648,7 +5812,7 @@
|
|
|
5648
5812
|
'notes': this.notes
|
|
5649
5813
|
};
|
|
5650
5814
|
this.showSaved = true;
|
|
5651
|
-
|
|
5815
|
+
setTimeout((/**
|
|
5652
5816
|
* @return {?}
|
|
5653
5817
|
*/
|
|
5654
5818
|
function () {
|
|
@@ -5691,205 +5855,692 @@
|
|
|
5691
5855
|
function () {
|
|
5692
5856
|
this.event.emit();
|
|
5693
5857
|
};
|
|
5858
|
+
// ==================== HTML5 VIDEO HANDLERS & RECOVERY ====================
|
|
5859
|
+
// ==================== HTML5 VIDEO HANDLERS & RECOVERY ====================
|
|
5694
5860
|
/**
|
|
5695
|
-
* @
|
|
5861
|
+
* @private
|
|
5696
5862
|
* @return {?}
|
|
5697
5863
|
*/
|
|
5698
|
-
VideoComponent.prototype.
|
|
5699
|
-
|
|
5864
|
+
VideoComponent.prototype.getHtml5VideoElement =
|
|
5865
|
+
// ==================== HTML5 VIDEO HANDLERS & RECOVERY ====================
|
|
5866
|
+
/**
|
|
5867
|
+
* @private
|
|
5700
5868
|
* @return {?}
|
|
5701
5869
|
*/
|
|
5702
|
-
function (
|
|
5703
|
-
|
|
5704
|
-
/** @type {?} */
|
|
5705
|
-
var seconds = this.formatTime(data.target.currentTime);
|
|
5706
|
-
this.currentTime = data.target.currentTime;
|
|
5707
|
-
/** @type {?} */
|
|
5708
|
-
var time = {
|
|
5709
|
-
current: Math.round(data.target.currentTime),
|
|
5710
|
-
duration: Math.round(data.target.duration),
|
|
5711
|
-
progress: Math.round((data.target.currentTime / data.target.duration) * 100)
|
|
5712
|
-
};
|
|
5713
|
-
/** @type {?} */
|
|
5714
|
-
var videoProgress = Math.round((time.current / time.duration) * 100);
|
|
5715
|
-
if (this.isAllowNext()) {
|
|
5716
|
-
this.disableNextButton = (videoProgress < 90);
|
|
5717
|
-
}
|
|
5718
|
-
else {
|
|
5719
|
-
this.disableNextButton = false;
|
|
5720
|
-
}
|
|
5721
|
-
this.videoTime.emit(time);
|
|
5722
|
-
this.seconds = seconds;
|
|
5723
|
-
this.saveLocalTime(data.target.currentTime);
|
|
5870
|
+
function () {
|
|
5871
|
+
return (this.video && this.video.nativeElement) ? ((/** @type {?} */ (this.video.nativeElement))) : null;
|
|
5724
5872
|
};
|
|
5725
5873
|
/**
|
|
5726
|
-
* @
|
|
5874
|
+
* @private
|
|
5727
5875
|
* @return {?}
|
|
5728
5876
|
*/
|
|
5729
|
-
VideoComponent.prototype.
|
|
5730
|
-
* @
|
|
5877
|
+
VideoComponent.prototype.startStallWatchdog = /**
|
|
5878
|
+
* @private
|
|
5731
5879
|
* @return {?}
|
|
5732
5880
|
*/
|
|
5733
|
-
function (
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
event.target.currentTime = startTime;
|
|
5881
|
+
function () {
|
|
5882
|
+
var _this = this;
|
|
5883
|
+
if (this.stallWatchdogTimer) {
|
|
5884
|
+
clearInterval(this.stallWatchdogTimer);
|
|
5738
5885
|
}
|
|
5886
|
+
this.stalledSeconds = 0;
|
|
5887
|
+
this.lastWatchdogTime = -1;
|
|
5888
|
+
this.stallWatchdogTimer = setInterval((/**
|
|
5889
|
+
* @return {?}
|
|
5890
|
+
*/
|
|
5891
|
+
function () {
|
|
5892
|
+
/** @type {?} */
|
|
5893
|
+
var videoEl = _this.getHtml5VideoElement();
|
|
5894
|
+
if (!videoEl) {
|
|
5895
|
+
return;
|
|
5896
|
+
}
|
|
5897
|
+
if (videoEl.paused || videoEl.ended || _this.hasVideoError || _this.isRecovering) {
|
|
5898
|
+
_this.stalledSeconds = 0;
|
|
5899
|
+
return;
|
|
5900
|
+
}
|
|
5901
|
+
/** @type {?} */
|
|
5902
|
+
var curr = videoEl.currentTime || 0;
|
|
5903
|
+
if (_this.lastWatchdogTime >= 0 && Math.abs(curr - _this.lastWatchdogTime) < 0.1) {
|
|
5904
|
+
_this.stalledSeconds += 2;
|
|
5905
|
+
if (_this.stalledSeconds >= 2 && !_this.isBuffering) {
|
|
5906
|
+
_this.isBuffering = true;
|
|
5907
|
+
_this.cdr.detectChanges();
|
|
5908
|
+
}
|
|
5909
|
+
if (_this.stalledSeconds >= 6) {
|
|
5910
|
+
console.warn('[VideoComponent] Vídeo congelado detectado pelo watchdog em', curr, 's. Tentando recuperação...');
|
|
5911
|
+
_this.stalledSeconds = 0;
|
|
5912
|
+
_this.attemptHtml5Recovery(false);
|
|
5913
|
+
}
|
|
5914
|
+
}
|
|
5915
|
+
else {
|
|
5916
|
+
_this.stalledSeconds = 0;
|
|
5917
|
+
if (curr > 0) {
|
|
5918
|
+
_this.lastValidTime = curr;
|
|
5919
|
+
}
|
|
5920
|
+
}
|
|
5921
|
+
_this.lastWatchdogTime = curr;
|
|
5922
|
+
}), 2000);
|
|
5739
5923
|
};
|
|
5740
5924
|
/**
|
|
5741
5925
|
* @return {?}
|
|
5742
5926
|
*/
|
|
5743
|
-
VideoComponent.prototype.
|
|
5927
|
+
VideoComponent.prototype.onVideoPlaying = /**
|
|
5744
5928
|
* @return {?}
|
|
5745
5929
|
*/
|
|
5746
5930
|
function () {
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
time = Number(this.content.video_time);
|
|
5751
|
-
}
|
|
5752
|
-
else if (this.content && this.content.time) {
|
|
5753
|
-
time = Number(this.content.time);
|
|
5931
|
+
if (this.recoveryTimeoutTimer) {
|
|
5932
|
+
clearTimeout(this.recoveryTimeoutTimer);
|
|
5933
|
+
this.recoveryTimeoutTimer = null;
|
|
5754
5934
|
}
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
time = Number(localTime);
|
|
5935
|
+
if (this.retryDelayTimer) {
|
|
5936
|
+
clearTimeout(this.retryDelayTimer);
|
|
5937
|
+
this.retryDelayTimer = null;
|
|
5759
5938
|
}
|
|
5760
|
-
|
|
5939
|
+
this.isHtml5Playing = true;
|
|
5940
|
+
this.isHtml5Paused = false;
|
|
5941
|
+
this.isBuffering = false;
|
|
5942
|
+
this.hasVideoError = false;
|
|
5943
|
+
this.isRecovering = false;
|
|
5944
|
+
this.shouldAutoResume = false;
|
|
5945
|
+
this.stalledSeconds = 0;
|
|
5946
|
+
this.recoveryAttempts = 0;
|
|
5947
|
+
this.startStallWatchdog();
|
|
5948
|
+
this.cdr.detectChanges();
|
|
5761
5949
|
};
|
|
5762
5950
|
/**
|
|
5763
|
-
* @param {?} time
|
|
5764
5951
|
* @return {?}
|
|
5765
5952
|
*/
|
|
5766
|
-
VideoComponent.prototype.
|
|
5767
|
-
* @param {?} time
|
|
5953
|
+
VideoComponent.prototype.onVideoPause = /**
|
|
5768
5954
|
* @return {?}
|
|
5769
5955
|
*/
|
|
5770
|
-
function (
|
|
5771
|
-
if (
|
|
5772
|
-
|
|
5956
|
+
function () {
|
|
5957
|
+
if (this.isRecovering || this.shouldAutoResume) {
|
|
5958
|
+
return;
|
|
5773
5959
|
}
|
|
5960
|
+
this.isHtml5Playing = false;
|
|
5961
|
+
this.isHtml5Paused = true;
|
|
5962
|
+
this.isBuffering = false;
|
|
5963
|
+
this.cdr.detectChanges();
|
|
5774
5964
|
};
|
|
5775
5965
|
/**
|
|
5776
|
-
* @param {?} seconds
|
|
5777
5966
|
* @return {?}
|
|
5778
5967
|
*/
|
|
5779
|
-
VideoComponent.prototype.
|
|
5780
|
-
* @param {?} seconds
|
|
5968
|
+
VideoComponent.prototype.onVideoWaiting = /**
|
|
5781
5969
|
* @return {?}
|
|
5782
5970
|
*/
|
|
5783
|
-
function (
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5971
|
+
function () {
|
|
5972
|
+
if (this.hasVideoError) {
|
|
5973
|
+
return;
|
|
5974
|
+
}
|
|
5975
|
+
this.isBuffering = true;
|
|
5976
|
+
this.cdr.detectChanges();
|
|
5788
5977
|
};
|
|
5789
5978
|
/**
|
|
5790
|
-
* @param {?} item
|
|
5791
5979
|
* @return {?}
|
|
5792
5980
|
*/
|
|
5793
|
-
VideoComponent.prototype.
|
|
5794
|
-
* @param {?} item
|
|
5981
|
+
VideoComponent.prototype.onVideoStalled = /**
|
|
5795
5982
|
* @return {?}
|
|
5796
5983
|
*/
|
|
5797
|
-
function (
|
|
5984
|
+
function () {
|
|
5798
5985
|
/** @type {?} */
|
|
5799
|
-
var
|
|
5800
|
-
|
|
5986
|
+
var videoEl = this.getHtml5VideoElement();
|
|
5987
|
+
if (this.hasVideoError || !videoEl || videoEl.paused || videoEl.ended) {
|
|
5988
|
+
return;
|
|
5989
|
+
}
|
|
5990
|
+
this.isBuffering = true;
|
|
5991
|
+
this.cdr.detectChanges();
|
|
5801
5992
|
};
|
|
5802
5993
|
/**
|
|
5803
5994
|
* @return {?}
|
|
5804
5995
|
*/
|
|
5805
|
-
VideoComponent.prototype.
|
|
5996
|
+
VideoComponent.prototype.onVideoCanPlay = /**
|
|
5806
5997
|
* @return {?}
|
|
5807
5998
|
*/
|
|
5808
5999
|
function () {
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
6000
|
+
if (this.recoveryTimeoutTimer) {
|
|
6001
|
+
clearTimeout(this.recoveryTimeoutTimer);
|
|
6002
|
+
this.recoveryTimeoutTimer = null;
|
|
6003
|
+
}
|
|
6004
|
+
this.isBuffering = false;
|
|
6005
|
+
if (this.isRecovering || this.shouldAutoResume) {
|
|
6006
|
+
/** @type {?} */
|
|
6007
|
+
var videoEl = this.getHtml5VideoElement();
|
|
6008
|
+
if (videoEl) {
|
|
6009
|
+
this.isRecovering = false;
|
|
6010
|
+
this.safePlayHtml5(videoEl);
|
|
6011
|
+
}
|
|
6012
|
+
}
|
|
6013
|
+
this.cdr.detectChanges();
|
|
5818
6014
|
};
|
|
5819
6015
|
/**
|
|
5820
|
-
* @param {?} url
|
|
5821
6016
|
* @return {?}
|
|
5822
6017
|
*/
|
|
5823
|
-
VideoComponent.prototype.
|
|
5824
|
-
* @param {?} url
|
|
6018
|
+
VideoComponent.prototype.onVideoSeeked = /**
|
|
5825
6019
|
* @return {?}
|
|
5826
6020
|
*/
|
|
5827
|
-
function (
|
|
5828
|
-
|
|
5829
|
-
if (url) {
|
|
5830
|
-
/** @type {?} */
|
|
5831
|
-
var urlText = url.changingThisBreaksApplicationSecurity;
|
|
6021
|
+
function () {
|
|
6022
|
+
if (this.shouldAutoResume || this.isRecovering) {
|
|
5832
6023
|
/** @type {?} */
|
|
5833
|
-
var
|
|
5834
|
-
if (
|
|
5835
|
-
|
|
5836
|
-
}
|
|
5837
|
-
else {
|
|
5838
|
-
urlResult = url.changingThisBreaksApplicationSecurity.split('=')[1];
|
|
6024
|
+
var videoEl = this.getHtml5VideoElement();
|
|
6025
|
+
if (videoEl && videoEl.paused) {
|
|
6026
|
+
this.safePlayHtml5(videoEl);
|
|
5839
6027
|
}
|
|
5840
|
-
console.log('getYoutubeID ->', urlResult);
|
|
5841
|
-
return urlResult;
|
|
5842
6028
|
}
|
|
5843
6029
|
};
|
|
5844
6030
|
/**
|
|
5845
|
-
* @param {?} url
|
|
5846
6031
|
* @return {?}
|
|
5847
6032
|
*/
|
|
5848
|
-
VideoComponent.prototype.
|
|
5849
|
-
* @param {?} url
|
|
6033
|
+
VideoComponent.prototype.onVideoEnded = /**
|
|
5850
6034
|
* @return {?}
|
|
5851
6035
|
*/
|
|
5852
|
-
function (
|
|
6036
|
+
function () {
|
|
6037
|
+
this.isHtml5Playing = false;
|
|
6038
|
+
this.isHtml5Paused = true;
|
|
6039
|
+
this.isBuffering = false;
|
|
6040
|
+
this.disableNextButton = false;
|
|
6041
|
+
if (this.stallWatchdogTimer) {
|
|
6042
|
+
clearInterval(this.stallWatchdogTimer);
|
|
6043
|
+
this.stallWatchdogTimer = null;
|
|
6044
|
+
}
|
|
5853
6045
|
/** @type {?} */
|
|
5854
|
-
var
|
|
6046
|
+
var videoEl = this.getHtml5VideoElement();
|
|
5855
6047
|
/** @type {?} */
|
|
5856
|
-
var
|
|
5857
|
-
|
|
6048
|
+
var duration = videoEl && videoEl.duration ? Math.round(videoEl.duration) : 100;
|
|
6049
|
+
this.videoTime.emit({
|
|
6050
|
+
current: duration,
|
|
6051
|
+
duration: duration,
|
|
6052
|
+
progress: 100,
|
|
6053
|
+
id: this.id
|
|
6054
|
+
});
|
|
6055
|
+
this.cdr.detectChanges();
|
|
5858
6056
|
};
|
|
5859
6057
|
/**
|
|
5860
|
-
* @param {?}
|
|
6058
|
+
* @param {?} event
|
|
5861
6059
|
* @return {?}
|
|
5862
6060
|
*/
|
|
5863
|
-
VideoComponent.prototype.
|
|
5864
|
-
* @param {?}
|
|
6061
|
+
VideoComponent.prototype.onVideoError = /**
|
|
6062
|
+
* @param {?} event
|
|
5865
6063
|
* @return {?}
|
|
5866
6064
|
*/
|
|
5867
|
-
function (
|
|
5868
|
-
|
|
5869
|
-
|
|
6065
|
+
function (event) {
|
|
6066
|
+
var _this = this;
|
|
6067
|
+
console.error('[VideoComponent] Erro no elemento <video>:', event);
|
|
6068
|
+
if (this.recoveryTimeoutTimer) {
|
|
6069
|
+
clearTimeout(this.recoveryTimeoutTimer);
|
|
6070
|
+
this.recoveryTimeoutTimer = null;
|
|
6071
|
+
}
|
|
6072
|
+
this.isRecovering = false;
|
|
6073
|
+
if (!navigator.onLine) {
|
|
6074
|
+
// Sem internet no momento: mantém estado de buffering aguardando reconexão automática pelo onlineSub
|
|
6075
|
+
this.isBuffering = true;
|
|
6076
|
+
this.hasVideoError = false;
|
|
6077
|
+
this.cdr.detectChanges();
|
|
6078
|
+
return;
|
|
5870
6079
|
}
|
|
5871
|
-
if (
|
|
5872
|
-
|
|
6080
|
+
if (this.retryDelayTimer) {
|
|
6081
|
+
clearTimeout(this.retryDelayTimer);
|
|
5873
6082
|
}
|
|
6083
|
+
this.retryDelayTimer = setTimeout((/**
|
|
6084
|
+
* @return {?}
|
|
6085
|
+
*/
|
|
6086
|
+
function () {
|
|
6087
|
+
_this.attemptHtml5Recovery(false);
|
|
6088
|
+
}), 1500);
|
|
6089
|
+
};
|
|
6090
|
+
/**
|
|
6091
|
+
* @param {?=} manual
|
|
6092
|
+
* @return {?}
|
|
6093
|
+
*/
|
|
6094
|
+
VideoComponent.prototype.attemptHtml5Recovery = /**
|
|
6095
|
+
* @param {?=} manual
|
|
6096
|
+
* @return {?}
|
|
6097
|
+
*/
|
|
6098
|
+
function (manual) {
|
|
6099
|
+
var _this = this;
|
|
6100
|
+
if (manual === void 0) { manual = false; }
|
|
5874
6101
|
/** @type {?} */
|
|
5875
|
-
var
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
6102
|
+
var videoEl = this.getHtml5VideoElement();
|
|
6103
|
+
if (!videoEl) {
|
|
6104
|
+
return;
|
|
6105
|
+
}
|
|
6106
|
+
if (this.recoveryTimeoutTimer) {
|
|
6107
|
+
clearTimeout(this.recoveryTimeoutTimer);
|
|
6108
|
+
this.recoveryTimeoutTimer = null;
|
|
6109
|
+
}
|
|
6110
|
+
if (this.retryDelayTimer) {
|
|
6111
|
+
clearTimeout(this.retryDelayTimer);
|
|
6112
|
+
this.retryDelayTimer = null;
|
|
6113
|
+
}
|
|
6114
|
+
if (!manual && !navigator.onLine) {
|
|
6115
|
+
this.isBuffering = true;
|
|
6116
|
+
this.isRecovering = false;
|
|
6117
|
+
this.cdr.detectChanges();
|
|
6118
|
+
return;
|
|
6119
|
+
}
|
|
6120
|
+
if (!manual && this.recoveryAttempts >= this.MAX_RECOVERY_ATTEMPTS) {
|
|
6121
|
+
console.error('[VideoComponent] Limite de tentativas automáticas atingido. Exibindo opção de recarregar.');
|
|
6122
|
+
this.isBuffering = false;
|
|
6123
|
+
this.isRecovering = false;
|
|
6124
|
+
this.isHtml5Playing = false;
|
|
6125
|
+
this.isHtml5Paused = true;
|
|
6126
|
+
this.hasVideoError = true;
|
|
6127
|
+
this.cdr.detectChanges();
|
|
6128
|
+
return;
|
|
6129
|
+
}
|
|
6130
|
+
if (manual) {
|
|
6131
|
+
this.recoveryAttempts = 0;
|
|
6132
|
+
}
|
|
6133
|
+
else {
|
|
6134
|
+
this.recoveryAttempts++;
|
|
5880
6135
|
}
|
|
5881
6136
|
/** @type {?} */
|
|
5882
|
-
var
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
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%);width:72px;height:72px;border-radius:50%;background:rgba(18,18,18,.78);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:2.5px solid rgba(255,255,255,.9);box-shadow:0 4px 20px rgba(0,0,0,.55),0 0 0 1px rgba(0,0,0,.25);display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:transform .2s cubic-bezier(.4,0,.2,1),background-color .2s cubic-bezier(.4,0,.2,1),box-shadow .2s cubic-bezier(.4,0,.2,1),border-color .2s cubic-bezier(.4,0,.2,1)}.cover-video .icon-play .play-svg{width:30px;height:30px;margin-left:3px;fill:#fff;-webkit-filter:drop-shadow(0 2px 4px rgba(0, 0, 0, .35));filter:drop-shadow(0 2px 4px rgba(0, 0, 0, .35));transition:transform .2s}.cover-video .icon-play img{width:32px;height:32px;-webkit-filter:drop-shadow(0 2px 4px rgba(0, 0, 0, .35));filter:drop-shadow(0 2px 4px rgba(0, 0, 0, .35));pointer-events:none}.cover-video .icon-play:hover{transform:translate(-50%,-50%) scale(1.1);background:rgba(0,0,0,.92);border-color:#fff;box-shadow:0 8px 28px rgba(0,0,0,.65),0 0 14px rgba(255,255,255,.35)}.cover-video .icon-play:hover .play-svg{transform:scale(1.06)}.cover-video .icon-play:active{transform:translate(-50%,-50%) scale(.95)}.btn-video-opacity{opacity:.5}@media (max-width:575.98px){.cover-video .icon-play{width:56px;height:56px;border-width:2px}.cover-video .icon-play .play-svg{width:24px;height:24px;margin-left:2px}.cover-video .icon-play img{width:24px;height:24px}}"]
|
|
6137
|
+
var resumeTime = Math.max(this.lastValidTime, videoEl.currentTime || 0);
|
|
6138
|
+
this.pendingResumeTime = resumeTime;
|
|
6139
|
+
this.shouldAutoResume = true;
|
|
6140
|
+
this.isRecovering = true;
|
|
6141
|
+
this.isBuffering = true;
|
|
6142
|
+
this.hasVideoError = false;
|
|
6143
|
+
this.stalledSeconds = 0;
|
|
6144
|
+
this.cdr.detectChanges();
|
|
6145
|
+
// Timeout de segurança: evita ficar travado indefinidamente em "Carregando vídeo..."
|
|
6146
|
+
this.recoveryTimeoutTimer = setTimeout((/**
|
|
6147
|
+
* @return {?}
|
|
6148
|
+
*/
|
|
6149
|
+
function () {
|
|
6150
|
+
if (_this.isRecovering || (_this.isBuffering && !_this.isHtml5Playing)) {
|
|
6151
|
+
_this.isRecovering = false;
|
|
6152
|
+
if (navigator.onLine) {
|
|
6153
|
+
_this.attemptHtml5Recovery(false);
|
|
6154
|
+
}
|
|
6155
|
+
else {
|
|
6156
|
+
_this.isBuffering = false;
|
|
6157
|
+
_this.hasVideoError = true;
|
|
6158
|
+
_this.cdr.detectChanges();
|
|
6159
|
+
}
|
|
6160
|
+
}
|
|
6161
|
+
}), 8000);
|
|
6162
|
+
try {
|
|
6163
|
+
videoEl.load();
|
|
6164
|
+
}
|
|
6165
|
+
catch (err) {
|
|
6166
|
+
console.error('[VideoComponent] Erro ao recarregar vídeo:', err);
|
|
6167
|
+
this.isRecovering = false;
|
|
6168
|
+
this.isBuffering = false;
|
|
6169
|
+
this.hasVideoError = true;
|
|
6170
|
+
this.cdr.detectChanges();
|
|
6171
|
+
}
|
|
6172
|
+
};
|
|
6173
|
+
/**
|
|
6174
|
+
* @private
|
|
6175
|
+
* @param {?} videoEl
|
|
6176
|
+
* @return {?}
|
|
6177
|
+
*/
|
|
6178
|
+
VideoComponent.prototype.safePlayHtml5 = /**
|
|
6179
|
+
* @private
|
|
6180
|
+
* @param {?} videoEl
|
|
6181
|
+
* @return {?}
|
|
6182
|
+
*/
|
|
6183
|
+
function (videoEl) {
|
|
6184
|
+
var _this = this;
|
|
6185
|
+
/** @type {?} */
|
|
6186
|
+
var playPromise = videoEl.play();
|
|
6187
|
+
if (playPromise && typeof playPromise.then === 'function') {
|
|
6188
|
+
playPromise.then((/**
|
|
6189
|
+
* @return {?}
|
|
6190
|
+
*/
|
|
6191
|
+
function () {
|
|
6192
|
+
_this.isHtml5Playing = true;
|
|
6193
|
+
_this.isHtml5Paused = false;
|
|
6194
|
+
_this.isBuffering = false;
|
|
6195
|
+
_this.hasVideoError = false;
|
|
6196
|
+
_this.isRecovering = false;
|
|
6197
|
+
_this.shouldAutoResume = false;
|
|
6198
|
+
_this.startStallWatchdog();
|
|
6199
|
+
_this.cdr.detectChanges();
|
|
6200
|
+
})).catch((/**
|
|
6201
|
+
* @param {?} err
|
|
6202
|
+
* @return {?}
|
|
6203
|
+
*/
|
|
6204
|
+
function (err) {
|
|
6205
|
+
console.warn('[VideoComponent] play() bloqueado ou interrompido:', err);
|
|
6206
|
+
if (err && err.name === 'AbortError' && _this.shouldAutoResume) {
|
|
6207
|
+
// Interrompido temporariamente pelo seek/load: aguarda canplay/seeked para retomar
|
|
6208
|
+
return;
|
|
6209
|
+
}
|
|
6210
|
+
_this.isHtml5Playing = false;
|
|
6211
|
+
_this.isHtml5Paused = true;
|
|
6212
|
+
_this.isBuffering = false;
|
|
6213
|
+
_this.isRecovering = false;
|
|
6214
|
+
_this.shouldAutoResume = false;
|
|
6215
|
+
_this.cdr.detectChanges();
|
|
6216
|
+
}));
|
|
6217
|
+
}
|
|
6218
|
+
};
|
|
6219
|
+
/**
|
|
6220
|
+
* @return {?}
|
|
6221
|
+
*/
|
|
6222
|
+
VideoComponent.prototype.toggleHtml5Play = /**
|
|
6223
|
+
* @return {?}
|
|
6224
|
+
*/
|
|
6225
|
+
function () {
|
|
6226
|
+
/** @type {?} */
|
|
6227
|
+
var videoEl = this.getHtml5VideoElement();
|
|
6228
|
+
if (!videoEl) {
|
|
6229
|
+
return;
|
|
6230
|
+
}
|
|
6231
|
+
if (this.hasVideoError) {
|
|
6232
|
+
this.attemptHtml5Recovery(true);
|
|
6233
|
+
return;
|
|
6234
|
+
}
|
|
6235
|
+
// Se o vídeo está travado em buffering ou recuperando enquanto o usuário clica, força recuperação imediata
|
|
6236
|
+
if (this.isBuffering || this.isRecovering) {
|
|
6237
|
+
this.attemptHtml5Recovery(true);
|
|
6238
|
+
return;
|
|
6239
|
+
}
|
|
6240
|
+
if (videoEl.paused || videoEl.ended) {
|
|
6241
|
+
if (videoEl.ended) {
|
|
6242
|
+
videoEl.currentTime = 0;
|
|
6243
|
+
}
|
|
6244
|
+
this.shouldAutoResume = true;
|
|
6245
|
+
this.safePlayHtml5(videoEl);
|
|
6246
|
+
}
|
|
6247
|
+
else {
|
|
6248
|
+
this.shouldAutoResume = false;
|
|
6249
|
+
videoEl.pause();
|
|
6250
|
+
}
|
|
6251
|
+
};
|
|
6252
|
+
/**
|
|
6253
|
+
* @param {?} data
|
|
6254
|
+
* @return {?}
|
|
6255
|
+
*/
|
|
6256
|
+
VideoComponent.prototype.setCurrentTime = /**
|
|
6257
|
+
* @param {?} data
|
|
6258
|
+
* @return {?}
|
|
6259
|
+
*/
|
|
6260
|
+
function (data) {
|
|
6261
|
+
/** @type {?} */
|
|
6262
|
+
var target = data && data.target;
|
|
6263
|
+
if (!target || !target.duration || isNaN(target.duration) || target.duration <= 0) {
|
|
6264
|
+
return;
|
|
6265
|
+
}
|
|
6266
|
+
/** @type {?} */
|
|
6267
|
+
var curr = target.currentTime || 0;
|
|
6268
|
+
if (curr > 0) {
|
|
6269
|
+
this.lastValidTime = curr;
|
|
6270
|
+
}
|
|
6271
|
+
/** @type {?} */
|
|
6272
|
+
var seconds = this.formatTime(curr);
|
|
6273
|
+
this.currentTime = curr;
|
|
6274
|
+
/** @type {?} */
|
|
6275
|
+
var progress = Math.round((curr / target.duration) * 100);
|
|
6276
|
+
/** @type {?} */
|
|
6277
|
+
var time = {
|
|
6278
|
+
current: Math.round(curr),
|
|
6279
|
+
duration: Math.round(target.duration),
|
|
6280
|
+
progress: progress
|
|
6281
|
+
};
|
|
6282
|
+
if (this.isAllowNext()) {
|
|
6283
|
+
this.disableNextButton = (progress < 90);
|
|
6284
|
+
}
|
|
6285
|
+
else {
|
|
6286
|
+
this.disableNextButton = false;
|
|
6287
|
+
}
|
|
6288
|
+
this.videoTime.emit(time);
|
|
6289
|
+
this.seconds = seconds;
|
|
6290
|
+
this.saveLocalTime(curr);
|
|
6291
|
+
};
|
|
6292
|
+
/**
|
|
6293
|
+
* @param {?} event
|
|
6294
|
+
* @return {?}
|
|
6295
|
+
*/
|
|
6296
|
+
VideoComponent.prototype.onLoadedMetadata = /**
|
|
6297
|
+
* @param {?} event
|
|
6298
|
+
* @return {?}
|
|
6299
|
+
*/
|
|
6300
|
+
function (event) {
|
|
6301
|
+
/** @type {?} */
|
|
6302
|
+
var videoEl = event && event.target ? ((/** @type {?} */ (event.target))) : this.getHtml5VideoElement();
|
|
6303
|
+
if (!videoEl) {
|
|
6304
|
+
return;
|
|
6305
|
+
}
|
|
6306
|
+
/** @type {?} */
|
|
6307
|
+
var duration = videoEl.duration || 0;
|
|
6308
|
+
/** @type {?} */
|
|
6309
|
+
var targetTime = this.pendingResumeTime > 0 ? this.pendingResumeTime : this.getStartTime();
|
|
6310
|
+
this.pendingResumeTime = 0;
|
|
6311
|
+
/** @type {?} */
|
|
6312
|
+
var didSeek = false;
|
|
6313
|
+
if (targetTime > 0 && (!duration || targetTime < duration - 2)) {
|
|
6314
|
+
try {
|
|
6315
|
+
videoEl.currentTime = targetTime;
|
|
6316
|
+
didSeek = true;
|
|
6317
|
+
}
|
|
6318
|
+
catch (e) { }
|
|
6319
|
+
}
|
|
6320
|
+
if (!didSeek && (this.isRecovering || this.shouldAutoResume || (this.play && videoEl.paused && !this.isHtml5Paused))) {
|
|
6321
|
+
this.safePlayHtml5(videoEl);
|
|
6322
|
+
}
|
|
6323
|
+
};
|
|
6324
|
+
/**
|
|
6325
|
+
* @return {?}
|
|
6326
|
+
*/
|
|
6327
|
+
VideoComponent.prototype.getStartTime = /**
|
|
6328
|
+
* @return {?}
|
|
6329
|
+
*/
|
|
6330
|
+
function () {
|
|
6331
|
+
/** @type {?} */
|
|
6332
|
+
var time = 0;
|
|
6333
|
+
if (this.content && this.content.video_time) {
|
|
6334
|
+
time = Number(this.content.video_time);
|
|
6335
|
+
}
|
|
6336
|
+
else if (this.content && this.content.time) {
|
|
6337
|
+
time = Number(this.content.time);
|
|
6338
|
+
}
|
|
6339
|
+
/** @type {?} */
|
|
6340
|
+
var localTime = localStorage.getItem('video_time_step_' + this.id);
|
|
6341
|
+
if (localTime && Number(localTime) > time) {
|
|
6342
|
+
time = Number(localTime);
|
|
6343
|
+
}
|
|
6344
|
+
return time;
|
|
6345
|
+
};
|
|
6346
|
+
/**
|
|
6347
|
+
* @param {?} time
|
|
6348
|
+
* @return {?}
|
|
6349
|
+
*/
|
|
6350
|
+
VideoComponent.prototype.saveLocalTime = /**
|
|
6351
|
+
* @param {?} time
|
|
6352
|
+
* @return {?}
|
|
6353
|
+
*/
|
|
6354
|
+
function (time) {
|
|
6355
|
+
if (time > 0) {
|
|
6356
|
+
localStorage.setItem('video_time_step_' + this.id, time.toString());
|
|
6357
|
+
}
|
|
6358
|
+
};
|
|
6359
|
+
/**
|
|
6360
|
+
* @param {?} seconds
|
|
6361
|
+
* @return {?}
|
|
6362
|
+
*/
|
|
6363
|
+
VideoComponent.prototype.formatTime = /**
|
|
6364
|
+
* @param {?} seconds
|
|
6365
|
+
* @return {?}
|
|
6366
|
+
*/
|
|
6367
|
+
function (seconds) {
|
|
6368
|
+
/** @type {?} */
|
|
6369
|
+
var second = Math.floor(seconds % 60);
|
|
6370
|
+
second = (second >= 10) ? second : '0' + second;
|
|
6371
|
+
return seconds.toFixed(0);
|
|
6372
|
+
};
|
|
6373
|
+
/**
|
|
6374
|
+
* @param {?} item
|
|
6375
|
+
* @return {?}
|
|
6376
|
+
*/
|
|
6377
|
+
VideoComponent.prototype.getThumb = /**
|
|
6378
|
+
* @param {?} item
|
|
6379
|
+
* @return {?}
|
|
6380
|
+
*/
|
|
6381
|
+
function (item) {
|
|
6382
|
+
/** @type {?} */
|
|
6383
|
+
var url = item.changingThisBreaksApplicationSecurity.split('/');
|
|
6384
|
+
return this.sanitizer.bypassSecurityTrustResourceUrl('https://api.sr02.twcreativs.stream/videos/thumb/' + url[4]);
|
|
6385
|
+
};
|
|
6386
|
+
/**
|
|
6387
|
+
* @return {?}
|
|
6388
|
+
*/
|
|
6389
|
+
VideoComponent.prototype.goPlay = /**
|
|
6390
|
+
* @return {?}
|
|
6391
|
+
*/
|
|
6392
|
+
function () {
|
|
6393
|
+
var _this = this;
|
|
6394
|
+
this.play = true;
|
|
6395
|
+
this.shouldAutoResume = true;
|
|
6396
|
+
this.isBuffering = true;
|
|
6397
|
+
this.hasVideoError = false;
|
|
6398
|
+
this.isHtml5Paused = false;
|
|
6399
|
+
this.cdr.detectChanges();
|
|
6400
|
+
setTimeout((/**
|
|
6401
|
+
* @return {?}
|
|
6402
|
+
*/
|
|
6403
|
+
function () {
|
|
6404
|
+
/** @type {?} */
|
|
6405
|
+
var videoEl = _this.getHtml5VideoElement();
|
|
6406
|
+
if (videoEl) {
|
|
6407
|
+
_this.safePlayHtml5(videoEl);
|
|
6408
|
+
}
|
|
6409
|
+
}), 50);
|
|
6410
|
+
};
|
|
6411
|
+
/**
|
|
6412
|
+
* @param {?} url
|
|
6413
|
+
* @return {?}
|
|
6414
|
+
*/
|
|
6415
|
+
VideoComponent.prototype.getYoutubeID = /**
|
|
6416
|
+
* @param {?} url
|
|
6417
|
+
* @return {?}
|
|
6418
|
+
*/
|
|
6419
|
+
function (url) {
|
|
6420
|
+
if (url) {
|
|
6421
|
+
/** @type {?} */
|
|
6422
|
+
var urlText = url.changingThisBreaksApplicationSecurity;
|
|
6423
|
+
/** @type {?} */
|
|
6424
|
+
var urlResult = '';
|
|
6425
|
+
if (urlText.indexOf('embed') >= 0) {
|
|
6426
|
+
urlResult = urlText.split('embed/')[1].split('?')[0];
|
|
6427
|
+
}
|
|
6428
|
+
else {
|
|
6429
|
+
urlResult = url.changingThisBreaksApplicationSecurity.split('=')[1];
|
|
6430
|
+
}
|
|
6431
|
+
return urlResult;
|
|
6432
|
+
}
|
|
6433
|
+
};
|
|
6434
|
+
/**
|
|
6435
|
+
* @param {?} url
|
|
6436
|
+
* @return {?}
|
|
6437
|
+
*/
|
|
6438
|
+
VideoComponent.prototype.youtubeParserID = /**
|
|
6439
|
+
* @param {?} url
|
|
6440
|
+
* @return {?}
|
|
6441
|
+
*/
|
|
6442
|
+
function (url) {
|
|
6443
|
+
if (!url || typeof url !== 'string') {
|
|
6444
|
+
return false;
|
|
6445
|
+
}
|
|
6446
|
+
/** @type {?} */
|
|
6447
|
+
var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/;
|
|
6448
|
+
/** @type {?} */
|
|
6449
|
+
var match = url.match(regExp);
|
|
6450
|
+
return (match && match[7].length == 11) ? match[7] : false;
|
|
6451
|
+
};
|
|
6452
|
+
/**
|
|
6453
|
+
* @param {?} url
|
|
6454
|
+
* @return {?}
|
|
6455
|
+
*/
|
|
6456
|
+
VideoComponent.prototype.getVimeoID = /**
|
|
6457
|
+
* @param {?} url
|
|
6458
|
+
* @return {?}
|
|
6459
|
+
*/
|
|
6460
|
+
function (url) {
|
|
6461
|
+
if (!url) {
|
|
6462
|
+
return '';
|
|
6463
|
+
}
|
|
6464
|
+
if (typeof url !== 'string') {
|
|
6465
|
+
url = String(url);
|
|
6466
|
+
}
|
|
6467
|
+
/** @type {?} */
|
|
6468
|
+
var regExp = /(?:vimeo\.com\/video\/|vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/[^\/]*\/videos\/|album\/\d+\/video\/|)|player\.vimeo\.com\/video\/)(\d+)/;
|
|
6469
|
+
/** @type {?} */
|
|
6470
|
+
var match = url.match(regExp);
|
|
6471
|
+
if (match && match[1]) {
|
|
6472
|
+
return match[1];
|
|
6473
|
+
}
|
|
6474
|
+
/** @type {?} */
|
|
6475
|
+
var fallback = /vimeo.*?(\d{7,12})/;
|
|
6476
|
+
/** @type {?} */
|
|
6477
|
+
var fallbackMatch = url.match(fallback);
|
|
6478
|
+
return (fallbackMatch && fallbackMatch[1]) ? fallbackMatch[1] : '';
|
|
6479
|
+
};
|
|
6480
|
+
/**
|
|
6481
|
+
* @return {?}
|
|
6482
|
+
*/
|
|
6483
|
+
VideoComponent.prototype.toggleVimeoPlay = /**
|
|
6484
|
+
* @return {?}
|
|
6485
|
+
*/
|
|
6486
|
+
function () {
|
|
6487
|
+
var _this = this;
|
|
6488
|
+
if (this.hasVimeoError) {
|
|
6489
|
+
this.hasVimeoError = false;
|
|
6490
|
+
this.isVimeoBuffering = true;
|
|
6491
|
+
this.initVimeoPlayer();
|
|
6492
|
+
return;
|
|
6493
|
+
}
|
|
6494
|
+
if (!this.player) {
|
|
6495
|
+
this.initVimeoPlayer().then((/**
|
|
6496
|
+
* @return {?}
|
|
6497
|
+
*/
|
|
6498
|
+
function () {
|
|
6499
|
+
if (_this.player && typeof _this.player.play === 'function') {
|
|
6500
|
+
_this.player.play().catch((/**
|
|
6501
|
+
* @param {?} err
|
|
6502
|
+
* @return {?}
|
|
6503
|
+
*/
|
|
6504
|
+
function (err) { return console.error('[VideoComponent] Erro ao dar play no Vimeo:', err); }));
|
|
6505
|
+
}
|
|
6506
|
+
}));
|
|
6507
|
+
return;
|
|
6508
|
+
}
|
|
6509
|
+
if (typeof this.player.getPaused === 'function') {
|
|
6510
|
+
this.player.getPaused().then((/**
|
|
6511
|
+
* @param {?} paused
|
|
6512
|
+
* @return {?}
|
|
6513
|
+
*/
|
|
6514
|
+
function (paused) {
|
|
6515
|
+
if (paused) {
|
|
6516
|
+
_this.player.play().catch((/**
|
|
6517
|
+
* @param {?} err
|
|
6518
|
+
* @return {?}
|
|
6519
|
+
*/
|
|
6520
|
+
function (err) { return console.error('[VideoComponent] Erro ao dar play no Vimeo:', err); }));
|
|
6521
|
+
}
|
|
6522
|
+
else {
|
|
6523
|
+
_this.player.pause().catch((/**
|
|
6524
|
+
* @param {?} err
|
|
6525
|
+
* @return {?}
|
|
6526
|
+
*/
|
|
6527
|
+
function (err) { return console.error('[VideoComponent] Erro ao dar pause no Vimeo:', err); }));
|
|
6528
|
+
}
|
|
6529
|
+
})).catch((/**
|
|
6530
|
+
* @param {?} err
|
|
6531
|
+
* @return {?}
|
|
6532
|
+
*/
|
|
6533
|
+
function (err) {
|
|
6534
|
+
console.error('[VideoComponent] Erro ao verificar estado do Vimeo:', err);
|
|
6535
|
+
}));
|
|
6536
|
+
}
|
|
6537
|
+
};
|
|
6538
|
+
VideoComponent.decorators = [
|
|
6539
|
+
{ type: core.Component, args: [{
|
|
6540
|
+
selector: 'app-editor-component-video',
|
|
6541
|
+
template: "<div class=\"p-4\" [ngStyle]=\"{'background': item.background}\">\n <app-editor-component-shared-title [title]=\"item.title\"></app-editor-component-shared-title>\n\n <app-editor-component-shared-subtitle [subtitle]=\"item.subTitle\"></app-editor-component-shared-subtitle>\n\n <div class=\"col-md-12\" class=\"stage-video\">\n\n <div class=\"row\">\n <div class=\"col-sm-12\">\n <div class=\"item-component-image-icon-container\" *ngIf=\"!item.source_path && !offlineUrl\">\n <img src=\"https://image.flaticon.com/icons/svg/1376/1376786.svg\" width=\"15%\" alt=\"\">\n <h3>{{ 'VideoNotCurrentlyAvailableComeBackLaterAndTryAgain' | translate }}</h3>\n </div>\n <div *ngIf=\"item.source_path || offlineUrl\">\n\n <!-- Player Offline Local -->\n <div class=\"media\" *ngIf=\"offlineUrl\">\n <video class=\"video\" controls controlsList=\"nodownload\" playsinline [src]=\"offlineUrl\" #video\n (timeupdate)=\"setCurrentTime($event)\" (loadedmetadata)=\"onLoadedMetadata($event)\"\n (playing)=\"onVideoPlaying()\" (pause)=\"onVideoPause()\" (ended)=\"onVideoEnded()\"\n style=\"width: 100%; min-height: 380px; max-height: 540px; background: #000; border-radius: 8px;\">\n {{ 'YourBrowserDoesNotSupportHTML5Video' | translate }}\n </video>\n </div>\n\n <!-- Aviso de V\u00EDdeo Vimeo/Embed quando offline sem bin\u00E1rio direto -->\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;\">\n <i class=\"material-icons\" style=\"font-size: 32px; color: #16a34a; vertical-align: middle;\">offline_pin</i>\n <h5 class=\"mt-2 mb-1\" style=\"font-weight: 700;\">Aula Salva no Modo Offline</h5>\n <p class=\"mb-0\" style=\"font-size: 0.85rem; color: #15803d;\">\n A estrutura, etapas e progresso desta aula est\u00E3o armazenados localmente no seu dispositivo.\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>\n </p>\n </div>\n\n <!-- Player HTML5 Stream / Cloudinary -->\n <div class=\"media\" *ngIf=\"['stream','cloudinary'].includes(item.source) && !isVimeoSource() && !isYoutubeSource() && !offlineUrl\">\n\n <div *ngIf=\"!play\" class=\"cover-video\"\n [style.backgroundImage]=\"(item.poster ? ('url(' + item.poster + ')' | safeUrl:'style') : false) || (item.source_path | stream:'styleThumbUrl')\">\n <div class=\"filter\"></div>\n\n <div *ngIf=\"!play\" class=\"real-cover\"\n [style.backgroundImage]=\"(item.poster ? ('url(' + item.poster + ')' | safeUrl:'style') : false) || (item.source_path | stream:'styleThumbUrl')\">\n </div>\n\n <div class=\"icon-play\" (click)=\"goPlay()\" role=\"button\" aria-label=\"Reproduzir v\u00EDdeo\">\n <svg class=\"play-svg\" viewBox=\"0 0 24 24\">\n <path d=\"M8 5.14v13.72a1 1 0 0 0 1.54.84l11-6.86a1 1 0 0 0 0-1.68l-11-6.86A1 1 0 0 0 8 5.14z\"/>\n </svg>\n </div>\n </div>\n\n <div *ngIf=\"play\" class=\"html5-video-wrapper\">\n <video class=\"video\"\n [attr.controls]=\"item.showVideoControl ? '' : null\"\n controlsList=\"nodownload\"\n playsinline\n preload=\"auto\"\n #video\n (timeupdate)=\"setCurrentTime($event)\"\n (loadedmetadata)=\"onLoadedMetadata($event)\"\n (playing)=\"onVideoPlaying()\"\n (pause)=\"onVideoPause()\"\n (waiting)=\"onVideoWaiting()\"\n (stalled)=\"onVideoStalled()\"\n (canplay)=\"onVideoCanPlay()\"\n (seeked)=\"onVideoSeeked()\"\n (ended)=\"onVideoEnded()\"\n (error)=\"onVideoError($event)\">\n <source [src]=\"item.source_path | stream:'link'\" type=\"video/mp4\">\n {{ 'YourBrowserDoesNotSupportHTML5Video' | translate }}\n </video>\n\n <!-- Overlay de Play/Pause quando controles nativos est\u00E3o ocultos -->\n <div class=\"vimeo-overlay-control\"\n *ngIf=\"(!item.showVideoControl || item.showVideoControl == 'undefined') && !hasVideoError && !isBuffering\"\n (click)=\"toggleHtml5Play()\"\n role=\"button\"\n aria-label=\"Play/Pause\">\n <div class=\"vimeo-overlay-button\" [class.is-playing]=\"isHtml5Playing\">\n <svg *ngIf=\"!isHtml5Playing\" class=\"vimeo-svg\" viewBox=\"0 0 24 24\">\n <path d=\"M8 5.14v13.72a1 1 0 0 0 1.54.84l11-6.86a1 1 0 0 0 0-1.68l-11-6.86A1 1 0 0 0 8 5.14z\"/>\n </svg>\n <svg *ngIf=\"isHtml5Playing\" class=\"vimeo-svg\" viewBox=\"0 0 24 24\">\n <path d=\"M6 19h4V5H6v14zm8-14v14h4V5h-4z\"/>\n </svg>\n </div>\n </div>\n\n <!-- Overlay de Buffering / Carregamento -->\n <div class=\"video-status-overlay buffering-overlay\"\n *ngIf=\"isBuffering && !hasVideoError\"\n (click)=\"(!item.showVideoControl || item.showVideoControl == 'undefined') && toggleHtml5Play()\">\n <div class=\"video-spinner\"></div>\n <span class=\"video-status-text\">Carregando v\u00EDdeo...</span>\n </div>\n\n <!-- Overlay de Recupera\u00E7\u00E3o / Erro de Conex\u00E3o -->\n <div class=\"video-status-overlay error-overlay\" *ngIf=\"hasVideoError\">\n <div class=\"video-error-card\">\n <p class=\"video-error-msg\">O v\u00EDdeo pausou por instabilidade na conex\u00E3o.</p>\n <button type=\"button\" class=\"btn-retry-video\" (click)=\"attemptHtml5Recovery(true)\">\n <svg class=\"retry-svg\" viewBox=\"0 0 24 24\">\n <path d=\"M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z\"/>\n </svg>\n Retomar v\u00EDdeo\n </button>\n </div>\n </div>\n\n <!-- Barra fixa minimalista apenas com Play/Pause quando controles nativos est\u00E3o ocultos -->\n <div class=\"minimal-play-bar\" *ngIf=\"!item.showVideoControl || item.showVideoControl == 'undefined'\" (click)=\"$event.stopPropagation()\">\n <button type=\"button\" class=\"minimal-play-btn\" (click)=\"toggleHtml5Play()\" [attr.aria-label]=\"isHtml5Playing ? 'Pausar v\u00EDdeo' : 'Reproduzir v\u00EDdeo'\">\n <svg *ngIf=\"!isHtml5Playing\" class=\"minimal-play-svg\" viewBox=\"0 0 24 24\">\n <path d=\"M8 5.14v13.72a1 1 0 0 0 1.54.84l11-6.86a1 1 0 0 0 0-1.68l-11-6.86A1 1 0 0 0 8 5.14z\"/>\n </svg>\n <svg *ngIf=\"isHtml5Playing\" class=\"minimal-play-svg\" viewBox=\"0 0 24 24\">\n <path d=\"M6 19h4V5H6v14zm8-14v14h4V5h-4z\"/>\n </svg>\n <span>{{ isHtml5Playing ? 'Pausar' : 'Play' }}</span>\n </button>\n </div>\n </div>\n\n </div>\n\n <!-- Player HTML5 File -->\n <div class=\"media\" *ngIf=\"item.source === 'file' && !isVimeoSource() && !isYoutubeSource() && !offlineUrl\">\n <div class=\"html5-video-wrapper\">\n <video class=\"video\"\n [attr.controls]=\"item.showVideoControl ? '' : null\"\n controlsList=\"nodownload\"\n playsinline\n preload=\"auto\"\n poster=\"{{ item.source_path | stream:'thumb' }}\"\n #video\n (timeupdate)=\"setCurrentTime($event)\"\n (loadedmetadata)=\"onLoadedMetadata($event)\"\n (playing)=\"onVideoPlaying()\"\n (pause)=\"onVideoPause()\"\n (waiting)=\"onVideoWaiting()\"\n (stalled)=\"onVideoStalled()\"\n (canplay)=\"onVideoCanPlay()\"\n (seeked)=\"onVideoSeeked()\"\n (ended)=\"onVideoEnded()\"\n (error)=\"onVideoError($event)\">\n <source [src]=\"item.link\" type=\"video/mp4\">\n {{ 'YourBrowserDoesNotSupportHTML5Video' | translate }}\n </video>\n\n <!-- Overlay de Play/Pause quando controles nativos est\u00E3o ocultos -->\n <div class=\"vimeo-overlay-control\"\n *ngIf=\"(!item.showVideoControl || item.showVideoControl == 'undefined') && !hasVideoError && !isBuffering\"\n (click)=\"toggleHtml5Play()\"\n role=\"button\"\n aria-label=\"Play/Pause\">\n <div class=\"vimeo-overlay-button\" [class.is-playing]=\"isHtml5Playing\">\n <svg *ngIf=\"!isHtml5Playing\" class=\"vimeo-svg\" viewBox=\"0 0 24 24\">\n <path d=\"M8 5.14v13.72a1 1 0 0 0 1.54.84l11-6.86a1 1 0 0 0 0-1.68l-11-6.86A1 1 0 0 0 8 5.14z\"/>\n </svg>\n <svg *ngIf=\"isHtml5Playing\" class=\"vimeo-svg\" viewBox=\"0 0 24 24\">\n <path d=\"M6 19h4V5H6v14zm8-14v14h4V5h-4z\"/>\n </svg>\n </div>\n </div>\n\n <!-- Overlay de Buffering / Carregamento -->\n <div class=\"video-status-overlay buffering-overlay\"\n *ngIf=\"isBuffering && !hasVideoError\"\n (click)=\"(!item.showVideoControl || item.showVideoControl == 'undefined') && toggleHtml5Play()\">\n <div class=\"video-spinner\"></div>\n <span class=\"video-status-text\">Carregando v\u00EDdeo...</span>\n </div>\n\n <!-- Overlay de Recupera\u00E7\u00E3o / Erro de Conex\u00E3o -->\n <div class=\"video-status-overlay error-overlay\" *ngIf=\"hasVideoError\">\n <div class=\"video-error-card\">\n <p class=\"video-error-msg\">O v\u00EDdeo pausou por instabilidade na conex\u00E3o.</p>\n <button type=\"button\" class=\"btn-retry-video\" (click)=\"attemptHtml5Recovery(true)\">\n <svg class=\"retry-svg\" viewBox=\"0 0 24 24\">\n <path d=\"M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z\"/>\n </svg>\n Retomar v\u00EDdeo\n </button>\n </div>\n </div>\n\n <!-- Barra fixa minimalista apenas com Play/Pause quando controles nativos est\u00E3o ocultos -->\n <div class=\"minimal-play-bar\" *ngIf=\"!item.showVideoControl || item.showVideoControl == 'undefined'\" (click)=\"$event.stopPropagation()\">\n <button type=\"button\" class=\"minimal-play-btn\" (click)=\"toggleHtml5Play()\" [attr.aria-label]=\"isHtml5Playing ? 'Pausar v\u00EDdeo' : 'Reproduzir v\u00EDdeo'\">\n <svg *ngIf=\"!isHtml5Playing\" class=\"minimal-play-svg\" viewBox=\"0 0 24 24\">\n <path d=\"M8 5.14v13.72a1 1 0 0 0 1.54.84l11-6.86a1 1 0 0 0 0-1.68l-11-6.86A1 1 0 0 0 8 5.14z\"/>\n </svg>\n <svg *ngIf=\"isHtml5Playing\" class=\"minimal-play-svg\" viewBox=\"0 0 24 24\">\n <path d=\"M6 19h4V5H6v14zm8-14v14h4V5h-4z\"/>\n </svg>\n <span>{{ isHtml5Playing ? 'Pausar' : 'Play' }}</span>\n </button>\n </div>\n </div>\n </div>\n\n <!-- Player Vimeo / YouTube -->\n <div class=\"media\" *ngIf=\"(item.source == 'youtube' || item.source == 'vimeo' || isVimeoSource() || isYoutubeSource()) && !offlineUrl && isOnline\">\n <div *ngIf=\"item.source == 'vimeo' || isVimeoSource()\" id=\"video_player\" class=\"vimeo-player-wrapper\" style=\"width: 100%; height: 100%; position: relative;\">\n <iframe [src]=\"(item.source_path || item.link) | vimeoEmbed:item?.showVideoControl | safeUrl:'resourceUrl'\" width=\"100%\" height=\"100%\"\n frameborder=\"0\" id=\"iframe_vimeo\" allowfullscreen allow=\"autoplay; encrypted-media\"></iframe>\n\n <!-- Overlay de Play/Pause quando controles est\u00E3o ocultos -->\n <div class=\"vimeo-overlay-control\" *ngIf=\"!item.showVideoControl && !isVimeoBuffering && !hasVimeoError\" (click)=\"toggleVimeoPlay()\" role=\"button\" aria-label=\"Play/Pause\">\n <div class=\"vimeo-overlay-button\" [class.is-playing]=\"isVimeoPlaying\">\n <svg *ngIf=\"!isVimeoPlaying\" class=\"vimeo-svg\" viewBox=\"0 0 24 24\">\n <path d=\"M8 5.14v13.72a1 1 0 0 0 1.54.84l11-6.86a1 1 0 0 0 0-1.68l-11-6.86A1 1 0 0 0 8 5.14z\"/>\n </svg>\n <svg *ngIf=\"isVimeoPlaying\" class=\"vimeo-svg\" viewBox=\"0 0 24 24\">\n <path d=\"M6 19h4V5H6v14zm8-14v14h4V5h-4z\"/>\n </svg>\n </div>\n </div>\n\n <!-- Overlay de Buffering Vimeo -->\n <div class=\"video-status-overlay buffering-overlay\" *ngIf=\"isVimeoBuffering && !hasVimeoError\">\n <div class=\"video-spinner\"></div>\n <span class=\"video-status-text\">Carregando v\u00EDdeo...</span>\n </div>\n\n <!-- Overlay de Erro Vimeo -->\n <div class=\"video-status-overlay error-overlay\" *ngIf=\"hasVimeoError\">\n <div class=\"video-error-card\">\n <p class=\"video-error-msg\">O v\u00EDdeo pausou por instabilidade na conex\u00E3o.</p>\n <button type=\"button\" class=\"btn-retry-video\" (click)=\"toggleVimeoPlay()\">\n <svg class=\"retry-svg\" viewBox=\"0 0 24 24\">\n <path d=\"M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z\"/>\n </svg>\n Retomar v\u00EDdeo\n </button>\n </div>\n </div>\n\n <!-- Barra fixa minimalista apenas com Play/Pause quando controles nativos est\u00E3o ocultos -->\n <div class=\"minimal-play-bar\" *ngIf=\"!item.showVideoControl\" (click)=\"$event.stopPropagation()\">\n <button type=\"button\" class=\"minimal-play-btn\" (click)=\"toggleVimeoPlay()\" [attr.aria-label]=\"isVimeoPlaying ? 'Pausar v\u00EDdeo' : 'Reproduzir v\u00EDdeo'\">\n <svg *ngIf=\"!isVimeoPlaying\" class=\"minimal-play-svg\" viewBox=\"0 0 24 24\">\n <path d=\"M8 5.14v13.72a1 1 0 0 0 1.54.84l11-6.86a1 1 0 0 0 0-1.68l-11-6.86A1 1 0 0 0 8 5.14z\"/>\n </svg>\n <svg *ngIf=\"isVimeoPlaying\" class=\"minimal-play-svg\" viewBox=\"0 0 24 24\">\n <path d=\"M6 19h4V5H6v14zm8-14v14h4V5h-4z\"/>\n </svg>\n <span>{{ isVimeoPlaying ? 'Pausar' : 'Play' }}</span>\n </button>\n </div>\n </div>\n <div class=\"video\" *ngIf=\"(item.source == 'youtube' || isYoutubeSource()) && !isVimeoSource()\" id=\"video_player\">\n <img *ngIf=\"item.poster\" class=\"cursor-pointer\" (click)=\"playYoutubeVideo(1)\" width=\"100%\" height=\"100%\" [src]=\"item.poster\" />\n </div>\n </div>\n\n </div>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"item && item.button && item.button.hide\" class=\"text-center\" style=\"margin: 30px 0;\">\n <div *ngIf=\"item && item.allowNext && disableNextButton\" class=\"alert alert-warning mb-3 text-left d-block d-sm-none\" role=\"alert\">\n <i class=\"bi bi-lightbulb mr-2\"></i>\n Assista o v\u00EDdeo at\u00E9 o final para <strong>desbloquear o avan\u00E7o</strong>.\n </div>\n <span matTooltip=\"{{ 'ToolTipVideoComponent' | translate }}\" [matTooltipDisabled]=\"!item || !item.allowNext || !disableNextButton\">\n <app-editor-component-shared-button\n [button]=\"item.button\"\n [disabled]=\"item && item.allowNext ? disableNextButton : false\"\n (event)=\"goNext()\">\n </app-editor-component-shared-button>\n </span>\n </div>\n\n</div>\n",
|
|
6542
|
+
providers: [TrailContentService],
|
|
6543
|
+
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%);width:72px;height:72px;border-radius:50%;background:rgba(18,18,18,.78);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:2.5px solid rgba(255,255,255,.9);box-shadow:0 4px 20px rgba(0,0,0,.55),0 0 0 1px rgba(0,0,0,.25);display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:transform .2s cubic-bezier(.4,0,.2,1),background-color .2s cubic-bezier(.4,0,.2,1),box-shadow .2s cubic-bezier(.4,0,.2,1),border-color .2s cubic-bezier(.4,0,.2,1)}.cover-video .icon-play .play-svg{width:30px;height:30px;margin-left:3px;fill:#fff;-webkit-filter:drop-shadow(0 2px 4px rgba(0, 0, 0, .35));filter:drop-shadow(0 2px 4px rgba(0, 0, 0, .35));transition:transform .2s}.cover-video .icon-play img{width:32px;height:32px;-webkit-filter:drop-shadow(0 2px 4px rgba(0, 0, 0, .35));filter:drop-shadow(0 2px 4px rgba(0, 0, 0, .35));pointer-events:none}.cover-video .icon-play:hover{transform:translate(-50%,-50%) scale(1.1);background:rgba(0,0,0,.92);border-color:#fff;box-shadow:0 8px 28px rgba(0,0,0,.65),0 0 14px rgba(255,255,255,.35)}.cover-video .icon-play:hover .play-svg{transform:scale(1.06)}.cover-video .icon-play:active{transform:translate(-50%,-50%) scale(.95)}.btn-video-opacity{opacity:.5}@media (max-width:575.98px){.cover-video .icon-play{width:56px;height:56px;border-width:2px}.cover-video .icon-play .play-svg{width:24px;height:24px;margin-left:2px}.cover-video .icon-play img{width:24px;height:24px}}.vimeo-player-wrapper{position:relative;width:100%;height:100%;overflow:hidden}.vimeo-player-wrapper:hover .vimeo-overlay-control{opacity:1}.vimeo-overlay-control{position:absolute;top:0;left:0;width:100%;height:100%;z-index:25;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.02);cursor:pointer;transition:opacity .25s,background-color .25s}.vimeo-overlay-control:hover{background:rgba(0,0,0,.12)}.vimeo-overlay-control .vimeo-overlay-button{width:76px;height:76px;border-radius:50%;background:rgba(18,18,18,.82);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:2.5px solid rgba(255,255,255,.9);box-shadow:0 4px 20px rgba(0,0,0,.55),0 0 0 1px rgba(0,0,0,.25);display:flex;align-items:center;justify-content:center;transition:transform .2s cubic-bezier(.4,0,.2,1),background-color .2s cubic-bezier(.4,0,.2,1),opacity .25s}.vimeo-overlay-control .vimeo-overlay-button .vimeo-svg{width:32px;height:32px;fill:#fff;-webkit-filter:drop-shadow(0 2px 4px rgba(0, 0, 0, .35));filter:drop-shadow(0 2px 4px rgba(0, 0, 0, .35));margin-left:3px}.vimeo-overlay-control .vimeo-overlay-button.is-playing{opacity:0;transform:scale(.9)}.vimeo-overlay-control .vimeo-overlay-button.is-playing .vimeo-svg{margin-left:0}.vimeo-overlay-control .vimeo-overlay-button:hover{transform:scale(1.1);background:rgba(0,0,0,.95);border-color:#fff;box-shadow:0 8px 28px rgba(0,0,0,.65),0 0 14px rgba(255,255,255,.35)}.vimeo-overlay-control:hover .vimeo-overlay-button.is-playing{opacity:.92;transform:scale(1)}.html5-video-wrapper{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}.html5-video-wrapper video.video{width:100%;height:100%;display:block}.html5-video-wrapper:hover .vimeo-overlay-control{opacity:1}.video-status-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:30;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(10,12,16,.55);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);gap:12px;padding:16px;text-align:center}.video-status-overlay.buffering-overlay{cursor:pointer}.video-status-overlay.error-overlay{background:rgba(10,12,16,.78)}.video-spinner{width:48px;height:48px;border:4px solid rgba(255,255,255,.25);border-top-color:#fff;border-radius:50%;-webkit-animation:.85s linear infinite asap-video-spin;animation:.85s linear infinite asap-video-spin}@-webkit-keyframes asap-video-spin{to{transform:rotate(360deg)}}@keyframes asap-video-spin{to{transform:rotate(360deg)}}.video-status-text{color:#fff;font-size:14px;font-weight:600;text-shadow:0 1px 4px rgba(0,0,0,.6);letter-spacing:.2px}.video-error-card{background:rgba(24,28,36,.92);border:1px solid rgba(255,255,255,.16);border-radius:12px;padding:20px 26px;max-width:340px;box-shadow:0 10px 30px rgba(0,0,0,.45);display:flex;flex-direction:column;align-items:center;gap:14px}.video-error-msg{margin:0;color:#f1f5f9;font-size:14px;line-height:1.45;font-weight:500}.btn-retry-video{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 20px;border-radius:8px;border:none;background:#fff;color:#111827;font-size:14px;font-weight:600;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.3);transition:transform .15s,background-color .15s}.btn-retry-video .retry-svg{width:18px;height:18px;fill:currentColor}.btn-retry-video:hover{background:#e2e8f0;transform:translateY(-1px)}.btn-retry-video:active{transform:scale(.97)}.minimal-play-bar{position:absolute;left:0;right:0;bottom:0;z-index:35;display:flex;align-items:center;padding:10px 14px;background:linear-gradient(to top,rgba(0,0,0,.78) 0,rgba(0,0,0,.35) 70%,rgba(0,0,0,0) 100%);pointer-events:auto}.minimal-play-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.35);background:rgba(18,18,18,.78);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);color:#fff;font-size:13px;font-weight:600;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.35);transition:background-color .2s,transform .15s,border-color .2s}.minimal-play-btn .minimal-play-svg{width:16px;height:16px;fill:#fff}.minimal-play-btn:hover{background:rgba(0,0,0,.92);border-color:#fff;transform:translateY(-1px)}.minimal-play-btn:active{transform:scale(.96)}"]
|
|
5893
6544
|
}] }
|
|
5894
6545
|
];
|
|
5895
6546
|
/** @nocollapse */
|
|
@@ -5952,6 +6603,77 @@
|
|
|
5952
6603
|
VideoComponent.prototype.timeLapseTimer;
|
|
5953
6604
|
/** @type {?} */
|
|
5954
6605
|
VideoComponent.prototype.disableNextButton;
|
|
6606
|
+
/** @type {?} */
|
|
6607
|
+
VideoComponent.prototype.isVimeoPlaying;
|
|
6608
|
+
/** @type {?} */
|
|
6609
|
+
VideoComponent.prototype.isVimeoBuffering;
|
|
6610
|
+
/** @type {?} */
|
|
6611
|
+
VideoComponent.prototype.hasVimeoError;
|
|
6612
|
+
/** @type {?} */
|
|
6613
|
+
VideoComponent.prototype.isHtml5Playing;
|
|
6614
|
+
/** @type {?} */
|
|
6615
|
+
VideoComponent.prototype.isHtml5Paused;
|
|
6616
|
+
/** @type {?} */
|
|
6617
|
+
VideoComponent.prototype.isBuffering;
|
|
6618
|
+
/** @type {?} */
|
|
6619
|
+
VideoComponent.prototype.hasVideoError;
|
|
6620
|
+
/** @type {?} */
|
|
6621
|
+
VideoComponent.prototype.isRecovering;
|
|
6622
|
+
/**
|
|
6623
|
+
* @type {?}
|
|
6624
|
+
* @private
|
|
6625
|
+
*/
|
|
6626
|
+
VideoComponent.prototype.lastValidTime;
|
|
6627
|
+
/**
|
|
6628
|
+
* @type {?}
|
|
6629
|
+
* @private
|
|
6630
|
+
*/
|
|
6631
|
+
VideoComponent.prototype.pendingResumeTime;
|
|
6632
|
+
/**
|
|
6633
|
+
* @type {?}
|
|
6634
|
+
* @private
|
|
6635
|
+
*/
|
|
6636
|
+
VideoComponent.prototype.shouldAutoResume;
|
|
6637
|
+
/**
|
|
6638
|
+
* @type {?}
|
|
6639
|
+
* @private
|
|
6640
|
+
*/
|
|
6641
|
+
VideoComponent.prototype.stalledSeconds;
|
|
6642
|
+
/**
|
|
6643
|
+
* @type {?}
|
|
6644
|
+
* @private
|
|
6645
|
+
*/
|
|
6646
|
+
VideoComponent.prototype.lastWatchdogTime;
|
|
6647
|
+
/**
|
|
6648
|
+
* @type {?}
|
|
6649
|
+
* @private
|
|
6650
|
+
*/
|
|
6651
|
+
VideoComponent.prototype.recoveryAttempts;
|
|
6652
|
+
/**
|
|
6653
|
+
* @type {?}
|
|
6654
|
+
* @private
|
|
6655
|
+
*/
|
|
6656
|
+
VideoComponent.prototype.MAX_RECOVERY_ATTEMPTS;
|
|
6657
|
+
/**
|
|
6658
|
+
* @type {?}
|
|
6659
|
+
* @private
|
|
6660
|
+
*/
|
|
6661
|
+
VideoComponent.prototype.stallWatchdogTimer;
|
|
6662
|
+
/**
|
|
6663
|
+
* @type {?}
|
|
6664
|
+
* @private
|
|
6665
|
+
*/
|
|
6666
|
+
VideoComponent.prototype.recoveryTimeoutTimer;
|
|
6667
|
+
/**
|
|
6668
|
+
* @type {?}
|
|
6669
|
+
* @private
|
|
6670
|
+
*/
|
|
6671
|
+
VideoComponent.prototype.retryDelayTimer;
|
|
6672
|
+
/**
|
|
6673
|
+
* @type {?}
|
|
6674
|
+
* @private
|
|
6675
|
+
*/
|
|
6676
|
+
VideoComponent.prototype.onlineSub;
|
|
5955
6677
|
/**
|
|
5956
6678
|
* @type {?}
|
|
5957
6679
|
* @private
|
|
@@ -11383,36 +12105,302 @@
|
|
|
11383
12105
|
function EditorContractComponent(_trailContentService) {
|
|
11384
12106
|
this._trailContentService = _trailContentService;
|
|
11385
12107
|
this.event = new core.EventEmitter();
|
|
11386
|
-
this.blocked = false;
|
|
11387
|
-
this.readed = false;
|
|
11388
|
-
this.accept = false;
|
|
12108
|
+
this.blocked = false;
|
|
12109
|
+
this.readed = false;
|
|
12110
|
+
this.accept = false;
|
|
12111
|
+
}
|
|
12112
|
+
/**
|
|
12113
|
+
* @param {?} event
|
|
12114
|
+
* @return {?}
|
|
12115
|
+
*/
|
|
12116
|
+
EditorContractComponent.prototype.onScroll = /**
|
|
12117
|
+
* @param {?} event
|
|
12118
|
+
* @return {?}
|
|
12119
|
+
*/
|
|
12120
|
+
function (event) {
|
|
12121
|
+
if (event.target.offsetHeight + event.target.scrollTop >= event.target.scrollHeight) {
|
|
12122
|
+
this.readed = true;
|
|
12123
|
+
}
|
|
12124
|
+
};
|
|
12125
|
+
/**
|
|
12126
|
+
* @return {?}
|
|
12127
|
+
*/
|
|
12128
|
+
EditorContractComponent.prototype.ngOnInit = /**
|
|
12129
|
+
* @return {?}
|
|
12130
|
+
*/
|
|
12131
|
+
function () {
|
|
12132
|
+
this.getAnswer();
|
|
12133
|
+
};
|
|
12134
|
+
/**
|
|
12135
|
+
* @return {?}
|
|
12136
|
+
*/
|
|
12137
|
+
EditorContractComponent.prototype.getAnswer = /**
|
|
12138
|
+
* @return {?}
|
|
12139
|
+
*/
|
|
12140
|
+
function () {
|
|
12141
|
+
var _this = this;
|
|
12142
|
+
this._trailContentService.all(this.id).subscribe((/**
|
|
12143
|
+
* @param {?} res
|
|
12144
|
+
* @return {?}
|
|
12145
|
+
*/
|
|
12146
|
+
function (res) {
|
|
12147
|
+
console.log('EditorContractComponent: getAnswer: res', res);
|
|
12148
|
+
/** @type {?} */
|
|
12149
|
+
var check = res.data.find((/**
|
|
12150
|
+
* @param {?} item
|
|
12151
|
+
* @return {?}
|
|
12152
|
+
*/
|
|
12153
|
+
function (item) {
|
|
12154
|
+
return item.value.type === 'contract';
|
|
12155
|
+
}));
|
|
12156
|
+
console.log('EditorContractComponent: getAnswer: check', check);
|
|
12157
|
+
if (check) {
|
|
12158
|
+
_this.contentId = check.id;
|
|
12159
|
+
_this.accept = check.value.value;
|
|
12160
|
+
_this.blocked = true;
|
|
12161
|
+
_this.readed = true;
|
|
12162
|
+
}
|
|
12163
|
+
}));
|
|
12164
|
+
};
|
|
12165
|
+
/**
|
|
12166
|
+
* @return {?}
|
|
12167
|
+
*/
|
|
12168
|
+
EditorContractComponent.prototype.onSubmit = /**
|
|
12169
|
+
* @return {?}
|
|
12170
|
+
*/
|
|
12171
|
+
function () {
|
|
12172
|
+
var _this = this;
|
|
12173
|
+
/** @type {?} */
|
|
12174
|
+
var data = {
|
|
12175
|
+
type: 'contract',
|
|
12176
|
+
value: this.accept
|
|
12177
|
+
};
|
|
12178
|
+
console.log('onSubmit: data', data);
|
|
12179
|
+
if (this.contentId) {
|
|
12180
|
+
this._trailContentService.update(this.contentId, data).subscribe((/**
|
|
12181
|
+
* @param {?} res
|
|
12182
|
+
* @return {?}
|
|
12183
|
+
*/
|
|
12184
|
+
function (res) {
|
|
12185
|
+
_this.blocked = true;
|
|
12186
|
+
_this.goNext();
|
|
12187
|
+
console.log('onSubmit: _trailContentService.update: res', res);
|
|
12188
|
+
}));
|
|
12189
|
+
}
|
|
12190
|
+
else {
|
|
12191
|
+
this._trailContentService.save(this.id, data).subscribe((/**
|
|
12192
|
+
* @param {?} res
|
|
12193
|
+
* @return {?}
|
|
12194
|
+
*/
|
|
12195
|
+
function (res) {
|
|
12196
|
+
_this.contentId = res.data.id;
|
|
12197
|
+
_this.blocked = true;
|
|
12198
|
+
_this.goNext();
|
|
12199
|
+
console.log('onSubmit: _trailContentService.save: res', res);
|
|
12200
|
+
}));
|
|
12201
|
+
}
|
|
12202
|
+
};
|
|
12203
|
+
/**
|
|
12204
|
+
* @return {?}
|
|
12205
|
+
*/
|
|
12206
|
+
EditorContractComponent.prototype.goNext = /**
|
|
12207
|
+
* @return {?}
|
|
12208
|
+
*/
|
|
12209
|
+
function () {
|
|
12210
|
+
this.event.emit();
|
|
12211
|
+
};
|
|
12212
|
+
EditorContractComponent.decorators = [
|
|
12213
|
+
{ type: core.Component, args: [{
|
|
12214
|
+
selector: 'app-editor-component-contract',
|
|
12215
|
+
template: "<div class=\"minh-vh-75 py-5\">\r\n <app-editor-component-shared-title [title]=\"item.title\"></app-editor-component-shared-title>\r\n <app-editor-component-shared-subtitle [subtitle]=\"item.subTitle\"></app-editor-component-shared-subtitle>\r\n\r\n <!-- \u00C1rea de texto dos termos -->\r\n <div class=\"row\">\r\n <div class=\"col-sm-11 mx-auto mb-3\">\r\n <div class=\"contract-container\" id=\"contract-container\" (scroll)=\"onScroll($event)\" [innerHTML]=\"item.text.text | safe:'html'\">\r\n </div>\r\n </div>\r\n\r\n <ng-container *ngIf=\"!readed\">\r\n <div class=\"col-sm-11 mx-auto mb-3\">\r\n <p class=\"text-danger\">\r\n <strong>{{ 'ReadTheTermToTheEnd' | translate }}</strong>\r\n </p>\r\n </div>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"readed\">\r\n <div class=\"col-sm-11 mx-auto mb-3\">\r\n <fieldset>\r\n <mat-checkbox name=\"showAccept2\" [(ngModel)]=\"accept\">{{ item.acceptText }}</mat-checkbox>\r\n </fieldset>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- <ng-container *ngIf=\"item.text.length > 4000\">\r\n <div class=\"col-sm-11 mx-auto mb-3\" [class.disabled]=\"blocked || !readed\">\r\n <fieldset [disabled]=\"blocked || !readed\">\r\n <mat-checkbox [class.disabled]=\"blocked || !readed\" name=\"showAccept\" [disabled]=\"blocked || !readed\"\r\n [(ngModel)]=\"accept\">{{ item.acceptText }}</mat-checkbox>\r\n </fieldset>\r\n </div>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"item.text.length <= 4000\">\r\n <div class=\"col-sm-11 mx-auto mb-3\">\r\n <fieldset>\r\n <mat-checkbox name=\"showAccept2\" [(ngModel)]=\"accept\">{{ item.acceptText }}</mat-checkbox>\r\n </fieldset>\r\n </div>\r\n </ng-container> -->\r\n </div>\r\n\r\n <app-editor-component-shared-button [button]=\"item.button\" (event)=\"goNext()\"></app-editor-component-shared-button>\r\n\r\n</div>\r\n",
|
|
12216
|
+
providers: [TrailContentService],
|
|
12217
|
+
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}", "h2{margin-top:0}h3{margin:15px 0 25px}.contract-container{height:38vh;overflow-y:auto;padding:20px 0}@media (max-width:767px){.contract-container{text-align:left}}"]
|
|
12218
|
+
}] }
|
|
12219
|
+
];
|
|
12220
|
+
/** @nocollapse */
|
|
12221
|
+
EditorContractComponent.ctorParameters = function () { return [
|
|
12222
|
+
{ type: TrailContentService }
|
|
12223
|
+
]; };
|
|
12224
|
+
EditorContractComponent.propDecorators = {
|
|
12225
|
+
item: [{ type: core.Input }],
|
|
12226
|
+
id: [{ type: core.Input }],
|
|
12227
|
+
event: [{ type: core.Output }]
|
|
12228
|
+
};
|
|
12229
|
+
return EditorContractComponent;
|
|
12230
|
+
}());
|
|
12231
|
+
if (false) {
|
|
12232
|
+
/** @type {?} */
|
|
12233
|
+
EditorContractComponent.prototype.item;
|
|
12234
|
+
/** @type {?} */
|
|
12235
|
+
EditorContractComponent.prototype.id;
|
|
12236
|
+
/** @type {?} */
|
|
12237
|
+
EditorContractComponent.prototype.event;
|
|
12238
|
+
/** @type {?} */
|
|
12239
|
+
EditorContractComponent.prototype.blocked;
|
|
12240
|
+
/** @type {?} */
|
|
12241
|
+
EditorContractComponent.prototype.readed;
|
|
12242
|
+
/** @type {?} */
|
|
12243
|
+
EditorContractComponent.prototype.contentId;
|
|
12244
|
+
/** @type {?} */
|
|
12245
|
+
EditorContractComponent.prototype.accept;
|
|
12246
|
+
/** @type {?} */
|
|
12247
|
+
EditorContractComponent.prototype._trailContentService;
|
|
12248
|
+
}
|
|
12249
|
+
|
|
12250
|
+
/**
|
|
12251
|
+
* @fileoverview added by tsickle
|
|
12252
|
+
* Generated from: lib/material.module.ts
|
|
12253
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
12254
|
+
*/
|
|
12255
|
+
var MaterialModule = /** @class */ (function () {
|
|
12256
|
+
function MaterialModule() {
|
|
12257
|
+
}
|
|
12258
|
+
MaterialModule.decorators = [
|
|
12259
|
+
{ type: core.NgModule, args: [{
|
|
12260
|
+
exports: [
|
|
12261
|
+
autocomplete.MatAutocompleteModule,
|
|
12262
|
+
button.MatButtonModule,
|
|
12263
|
+
buttonToggle.MatButtonToggleModule,
|
|
12264
|
+
card.MatCardModule,
|
|
12265
|
+
checkbox.MatCheckboxModule,
|
|
12266
|
+
chips.MatChipsModule,
|
|
12267
|
+
datepicker.MatDatepickerModule,
|
|
12268
|
+
dialog.MatDialogModule,
|
|
12269
|
+
formField.MatFormFieldModule,
|
|
12270
|
+
expansion.MatExpansionModule,
|
|
12271
|
+
gridList.MatGridListModule,
|
|
12272
|
+
icon.MatIconModule,
|
|
12273
|
+
input.MatInputModule,
|
|
12274
|
+
list.MatListModule,
|
|
12275
|
+
menu.MatMenuModule,
|
|
12276
|
+
core$2.MatNativeDateModule,
|
|
12277
|
+
paginator.MatPaginatorModule,
|
|
12278
|
+
progressBar.MatProgressBarModule,
|
|
12279
|
+
progressSpinner.MatProgressSpinnerModule,
|
|
12280
|
+
radio.MatRadioModule,
|
|
12281
|
+
core$2.MatRippleModule,
|
|
12282
|
+
select.MatSelectModule,
|
|
12283
|
+
sidenav.MatSidenavModule,
|
|
12284
|
+
slider.MatSliderModule,
|
|
12285
|
+
slideToggle.MatSlideToggleModule,
|
|
12286
|
+
snackBar.MatSnackBarModule,
|
|
12287
|
+
sort.MatSortModule,
|
|
12288
|
+
stepper.MatStepperModule,
|
|
12289
|
+
table.MatTableModule,
|
|
12290
|
+
tabs.MatTabsModule,
|
|
12291
|
+
toolbar.MatToolbarModule,
|
|
12292
|
+
tooltip.MatTooltipModule
|
|
12293
|
+
],
|
|
12294
|
+
},] }
|
|
12295
|
+
];
|
|
12296
|
+
return MaterialModule;
|
|
12297
|
+
}());
|
|
12298
|
+
|
|
12299
|
+
/**
|
|
12300
|
+
* @fileoverview added by tsickle
|
|
12301
|
+
* Generated from: lib/editor/components/form-step/form-step.component.ts
|
|
12302
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
12303
|
+
*/
|
|
12304
|
+
var FormStepComponent = /** @class */ (function () {
|
|
12305
|
+
function FormStepComponent(global, _trailContentService, translate) {
|
|
12306
|
+
this.global = global;
|
|
12307
|
+
this._trailContentService = _trailContentService;
|
|
12308
|
+
this.translate = translate;
|
|
12309
|
+
this.event = new core.EventEmitter();
|
|
11389
12310
|
}
|
|
11390
12311
|
/**
|
|
11391
|
-
* @param {?}
|
|
12312
|
+
* @param {?} changes
|
|
11392
12313
|
* @return {?}
|
|
11393
12314
|
*/
|
|
11394
|
-
|
|
11395
|
-
* @param {?}
|
|
12315
|
+
FormStepComponent.prototype.ngOnChanges = /**
|
|
12316
|
+
* @param {?} changes
|
|
11396
12317
|
* @return {?}
|
|
11397
12318
|
*/
|
|
11398
|
-
function (
|
|
11399
|
-
|
|
11400
|
-
|
|
12319
|
+
function (changes) {
|
|
12320
|
+
var _this = this;
|
|
12321
|
+
if (changes.item && this.item) {
|
|
12322
|
+
if (this.item.steps) {
|
|
12323
|
+
this.item.steps.forEach((/**
|
|
12324
|
+
* @param {?} step
|
|
12325
|
+
* @return {?}
|
|
12326
|
+
*/
|
|
12327
|
+
function (step) {
|
|
12328
|
+
_this.normalizeStep(step);
|
|
12329
|
+
}));
|
|
12330
|
+
}
|
|
11401
12331
|
}
|
|
11402
12332
|
};
|
|
11403
12333
|
/**
|
|
11404
12334
|
* @return {?}
|
|
11405
12335
|
*/
|
|
11406
|
-
|
|
12336
|
+
FormStepComponent.prototype.ngOnInit = /**
|
|
11407
12337
|
* @return {?}
|
|
11408
12338
|
*/
|
|
11409
12339
|
function () {
|
|
11410
|
-
this.
|
|
12340
|
+
console.log('ID FORUM -<', this.id);
|
|
12341
|
+
this.generateForm();
|
|
12342
|
+
if (this.id) {
|
|
12343
|
+
this.getAnswer();
|
|
12344
|
+
}
|
|
11411
12345
|
};
|
|
11412
12346
|
/**
|
|
11413
12347
|
* @return {?}
|
|
11414
12348
|
*/
|
|
11415
|
-
|
|
12349
|
+
FormStepComponent.prototype.generateForm = /**
|
|
12350
|
+
* @return {?}
|
|
12351
|
+
*/
|
|
12352
|
+
function () {
|
|
12353
|
+
var _this = this;
|
|
12354
|
+
this.form = new forms.FormArray([]);
|
|
12355
|
+
this.item.steps.map((/**
|
|
12356
|
+
* @param {?} step
|
|
12357
|
+
* @return {?}
|
|
12358
|
+
*/
|
|
12359
|
+
function (step) {
|
|
12360
|
+
/** @type {?} */
|
|
12361
|
+
var array = new forms.FormArray([]);
|
|
12362
|
+
step.inputArray.map((/**
|
|
12363
|
+
* @param {?} i
|
|
12364
|
+
* @return {?}
|
|
12365
|
+
*/
|
|
12366
|
+
function (i) {
|
|
12367
|
+
if (i.type === 'text' || i.type === 'select') {
|
|
12368
|
+
array.push(new forms.FormControl(''));
|
|
12369
|
+
}
|
|
12370
|
+
if (i.type === 'research') {
|
|
12371
|
+
array.push(new forms.FormControl([]));
|
|
12372
|
+
}
|
|
12373
|
+
if (i.type === 'table') {
|
|
12374
|
+
/** @type {?} */
|
|
12375
|
+
var arr = new forms.FormArray([]);
|
|
12376
|
+
/** @type {?} */
|
|
12377
|
+
var lineLength = parseInt(i.lines, 10);
|
|
12378
|
+
var _loop_1 = function (k) {
|
|
12379
|
+
/** @type {?} */
|
|
12380
|
+
var tableArray = new forms.FormArray([]);
|
|
12381
|
+
i.cols.map((/**
|
|
12382
|
+
* @param {?} col
|
|
12383
|
+
* @return {?}
|
|
12384
|
+
*/
|
|
12385
|
+
function (col) {
|
|
12386
|
+
tableArray.push(new forms.FormControl(''));
|
|
12387
|
+
}));
|
|
12388
|
+
arr.push(tableArray);
|
|
12389
|
+
};
|
|
12390
|
+
for (var k = 0; k < lineLength; k++) {
|
|
12391
|
+
_loop_1(k);
|
|
12392
|
+
}
|
|
12393
|
+
array.push(arr);
|
|
12394
|
+
}
|
|
12395
|
+
}));
|
|
12396
|
+
_this.form.push(array);
|
|
12397
|
+
}));
|
|
12398
|
+
console.log('generateForm: this.form', this.form);
|
|
12399
|
+
};
|
|
12400
|
+
/**
|
|
12401
|
+
* @return {?}
|
|
12402
|
+
*/
|
|
12403
|
+
FormStepComponent.prototype.getAnswer = /**
|
|
11416
12404
|
* @return {?}
|
|
11417
12405
|
*/
|
|
11418
12406
|
function () {
|
|
@@ -11422,602 +12410,796 @@
|
|
|
11422
12410
|
* @return {?}
|
|
11423
12411
|
*/
|
|
11424
12412
|
function (res) {
|
|
11425
|
-
console.log('EditorContractComponent: getAnswer: res', res);
|
|
11426
12413
|
/** @type {?} */
|
|
11427
12414
|
var check = res.data.find((/**
|
|
11428
12415
|
* @param {?} item
|
|
11429
12416
|
* @return {?}
|
|
11430
12417
|
*/
|
|
11431
12418
|
function (item) {
|
|
11432
|
-
return item.value.type === '
|
|
12419
|
+
return item.value.type === 'form-step';
|
|
11433
12420
|
}));
|
|
11434
|
-
console.log('EditorContractComponent: getAnswer: check', check);
|
|
11435
12421
|
if (check) {
|
|
11436
12422
|
_this.contentId = check.id;
|
|
11437
|
-
_this.
|
|
11438
|
-
|
|
11439
|
-
_this.readed = true;
|
|
12423
|
+
_this.form.patchValue(check.value.value);
|
|
12424
|
+
// this.blocked = true;
|
|
11440
12425
|
}
|
|
11441
12426
|
}));
|
|
11442
12427
|
};
|
|
11443
12428
|
/**
|
|
11444
12429
|
* @return {?}
|
|
11445
12430
|
*/
|
|
11446
|
-
|
|
12431
|
+
FormStepComponent.prototype.onSubmit = /**
|
|
11447
12432
|
* @return {?}
|
|
11448
12433
|
*/
|
|
11449
12434
|
function () {
|
|
11450
12435
|
var _this = this;
|
|
11451
12436
|
/** @type {?} */
|
|
11452
12437
|
var data = {
|
|
11453
|
-
type: '
|
|
11454
|
-
value: this.
|
|
12438
|
+
type: 'form-step',
|
|
12439
|
+
value: this.form.value
|
|
11455
12440
|
};
|
|
11456
|
-
console.log('onSubmit: data', data);
|
|
11457
12441
|
if (this.contentId) {
|
|
11458
12442
|
this._trailContentService.update(this.contentId, data).subscribe((/**
|
|
11459
12443
|
* @param {?} res
|
|
11460
12444
|
* @return {?}
|
|
11461
12445
|
*/
|
|
11462
12446
|
function (res) {
|
|
12447
|
+
_this.goNext();
|
|
12448
|
+
}));
|
|
12449
|
+
}
|
|
12450
|
+
else {
|
|
12451
|
+
this._trailContentService.save(this.id, data).subscribe((/**
|
|
12452
|
+
* @param {?} res
|
|
12453
|
+
* @return {?}
|
|
12454
|
+
*/
|
|
12455
|
+
function (res) {
|
|
12456
|
+
_this.contentId = res.data.id;
|
|
11463
12457
|
_this.blocked = true;
|
|
11464
12458
|
_this.goNext();
|
|
11465
|
-
console.log('onSubmit: _trailContentService.update: res', res);
|
|
11466
12459
|
}));
|
|
11467
12460
|
}
|
|
12461
|
+
};
|
|
12462
|
+
/**
|
|
12463
|
+
* @param {?} length
|
|
12464
|
+
* @return {?}
|
|
12465
|
+
*/
|
|
12466
|
+
FormStepComponent.prototype.getArray = /**
|
|
12467
|
+
* @param {?} length
|
|
12468
|
+
* @return {?}
|
|
12469
|
+
*/
|
|
12470
|
+
function (length) {
|
|
12471
|
+
/** @type {?} */
|
|
12472
|
+
var arr = [];
|
|
12473
|
+
for (var i = 0; i < length; i++) {
|
|
12474
|
+
arr.push(i);
|
|
12475
|
+
}
|
|
12476
|
+
return arr;
|
|
12477
|
+
};
|
|
12478
|
+
/**
|
|
12479
|
+
* @return {?}
|
|
12480
|
+
*/
|
|
12481
|
+
FormStepComponent.prototype.goNext = /**
|
|
12482
|
+
* @return {?}
|
|
12483
|
+
*/
|
|
12484
|
+
function () {
|
|
12485
|
+
this.event.emit();
|
|
12486
|
+
};
|
|
12487
|
+
/**
|
|
12488
|
+
* @return {?}
|
|
12489
|
+
*/
|
|
12490
|
+
FormStepComponent.prototype.showFormError = /**
|
|
12491
|
+
* @return {?}
|
|
12492
|
+
*/
|
|
12493
|
+
function () {
|
|
12494
|
+
this.global.alert(this.translate.instant('Ops!'), this.translate.instant('FillAllRequiredFields'), 'error');
|
|
12495
|
+
};
|
|
12496
|
+
/**
|
|
12497
|
+
* @param {?} index
|
|
12498
|
+
* @return {?}
|
|
12499
|
+
*/
|
|
12500
|
+
FormStepComponent.prototype.resetForm = /**
|
|
12501
|
+
* @param {?} index
|
|
12502
|
+
* @return {?}
|
|
12503
|
+
*/
|
|
12504
|
+
function (index) {
|
|
12505
|
+
/** @type {?} */
|
|
12506
|
+
var controlArray = (/** @type {?} */ (this.form.controls[index]));
|
|
12507
|
+
controlArray.reset();
|
|
12508
|
+
};
|
|
12509
|
+
/**
|
|
12510
|
+
* @param {?} $event
|
|
12511
|
+
* @param {?} index
|
|
12512
|
+
* @param {?} input
|
|
12513
|
+
* @return {?}
|
|
12514
|
+
*/
|
|
12515
|
+
FormStepComponent.prototype.onMatRadioGroupChange = /**
|
|
12516
|
+
* @param {?} $event
|
|
12517
|
+
* @param {?} index
|
|
12518
|
+
* @param {?} input
|
|
12519
|
+
* @return {?}
|
|
12520
|
+
*/
|
|
12521
|
+
function ($event, index, input) {
|
|
12522
|
+
var e_1, _a, e_2, _b;
|
|
12523
|
+
/** @type {?} */
|
|
12524
|
+
var controlArray = (/** @type {?} */ (this.form.controls[index]));
|
|
12525
|
+
/** @type {?} */
|
|
12526
|
+
var controlArrayControls = controlArray.controls;
|
|
12527
|
+
/** @type {?} */
|
|
12528
|
+
var controlArrayControlsLength = controlArrayControls.length;
|
|
12529
|
+
/** @type {?} */
|
|
12530
|
+
var arr = __spread(this.form.value);
|
|
12531
|
+
for (var i = input + 1; i < arr[index].length; i++) {
|
|
12532
|
+
arr[index][i] = "";
|
|
12533
|
+
}
|
|
12534
|
+
this.form.setValue(arr);
|
|
12535
|
+
for (var i = 0; i < controlArrayControlsLength; i++) {
|
|
12536
|
+
if (i > input) {
|
|
12537
|
+
/** @type {?} */
|
|
12538
|
+
var control = (/** @type {?} */ (controlArrayControls[i]));
|
|
12539
|
+
if (control.controls) {
|
|
12540
|
+
try {
|
|
12541
|
+
for (var _c = (e_1 = void 0, __values(control.controls)), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
12542
|
+
var table = _d.value;
|
|
12543
|
+
/** @type {?} */
|
|
12544
|
+
var line = (/** @type {?} */ (table));
|
|
12545
|
+
if (line.controls) {
|
|
12546
|
+
try {
|
|
12547
|
+
for (var _e = (e_2 = void 0, __values(line.controls)), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
12548
|
+
var col = _f.value;
|
|
12549
|
+
col.setValidators(null);
|
|
12550
|
+
col.clearValidators();
|
|
12551
|
+
this.resetFormControlValidation(col);
|
|
12552
|
+
}
|
|
12553
|
+
}
|
|
12554
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
12555
|
+
finally {
|
|
12556
|
+
try {
|
|
12557
|
+
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
|
|
12558
|
+
}
|
|
12559
|
+
finally { if (e_2) throw e_2.error; }
|
|
12560
|
+
}
|
|
12561
|
+
}
|
|
12562
|
+
}
|
|
12563
|
+
}
|
|
12564
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
12565
|
+
finally {
|
|
12566
|
+
try {
|
|
12567
|
+
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
|
12568
|
+
}
|
|
12569
|
+
finally { if (e_1) throw e_1.error; }
|
|
12570
|
+
}
|
|
12571
|
+
}
|
|
12572
|
+
}
|
|
12573
|
+
}
|
|
12574
|
+
};
|
|
12575
|
+
/**
|
|
12576
|
+
* @private
|
|
12577
|
+
* @param {?} control
|
|
12578
|
+
* @return {?}
|
|
12579
|
+
*/
|
|
12580
|
+
FormStepComponent.prototype.resetFormControlValidation = /**
|
|
12581
|
+
* @private
|
|
12582
|
+
* @param {?} control
|
|
12583
|
+
* @return {?}
|
|
12584
|
+
*/
|
|
12585
|
+
function (control) {
|
|
12586
|
+
control.markAsPristine();
|
|
12587
|
+
control.markAsUntouched();
|
|
12588
|
+
control.updateValueAndValidity();
|
|
12589
|
+
};
|
|
12590
|
+
/**
|
|
12591
|
+
* @param {?} step
|
|
12592
|
+
* @param {?} idx
|
|
12593
|
+
* @param {?} value
|
|
12594
|
+
* @param {?} evt
|
|
12595
|
+
* @return {?}
|
|
12596
|
+
*/
|
|
12597
|
+
FormStepComponent.prototype.toggle = /**
|
|
12598
|
+
* @param {?} step
|
|
12599
|
+
* @param {?} idx
|
|
12600
|
+
* @param {?} value
|
|
12601
|
+
* @param {?} evt
|
|
12602
|
+
* @return {?}
|
|
12603
|
+
*/
|
|
12604
|
+
function (step, idx, value, evt) {
|
|
12605
|
+
/** @type {?} */
|
|
12606
|
+
var vIdx = this.form.value[step][idx].indexOf(value);
|
|
12607
|
+
if (vIdx >= 0) {
|
|
12608
|
+
this.form.value[step][idx].splice(vIdx, 1);
|
|
12609
|
+
}
|
|
11468
12610
|
else {
|
|
11469
|
-
this.
|
|
11470
|
-
* @param {?} res
|
|
11471
|
-
* @return {?}
|
|
11472
|
-
*/
|
|
11473
|
-
function (res) {
|
|
11474
|
-
_this.contentId = res.data.id;
|
|
11475
|
-
_this.blocked = true;
|
|
11476
|
-
_this.goNext();
|
|
11477
|
-
console.log('onSubmit: _trailContentService.save: res', res);
|
|
11478
|
-
}));
|
|
12611
|
+
this.form.value[step][idx].push(value);
|
|
11479
12612
|
}
|
|
11480
12613
|
};
|
|
11481
12614
|
/**
|
|
12615
|
+
* @param {?} step
|
|
11482
12616
|
* @return {?}
|
|
11483
12617
|
*/
|
|
11484
|
-
|
|
12618
|
+
FormStepComponent.prototype.normalizeStep = /**
|
|
12619
|
+
* @param {?} step
|
|
11485
12620
|
* @return {?}
|
|
11486
12621
|
*/
|
|
11487
|
-
function () {
|
|
11488
|
-
|
|
12622
|
+
function (step) {
|
|
12623
|
+
if (!step.enunciated)
|
|
12624
|
+
step.enunciated = {};
|
|
12625
|
+
if (step.inputArray) {
|
|
12626
|
+
step.inputArray.forEach((/**
|
|
12627
|
+
* @param {?} input
|
|
12628
|
+
* @return {?}
|
|
12629
|
+
*/
|
|
12630
|
+
function (input) {
|
|
12631
|
+
if (input.visibility_control_value) {
|
|
12632
|
+
if (!Array.isArray(input.visibility_control_value)) {
|
|
12633
|
+
input.visibility_control_value = [input.visibility_control_value];
|
|
12634
|
+
}
|
|
12635
|
+
}
|
|
12636
|
+
}));
|
|
12637
|
+
}
|
|
12638
|
+
return step;
|
|
11489
12639
|
};
|
|
11490
|
-
|
|
12640
|
+
Object.defineProperty(FormStepComponent.prototype, "isFormFilled", {
|
|
12641
|
+
get: /**
|
|
12642
|
+
* @return {?}
|
|
12643
|
+
*/
|
|
12644
|
+
function () {
|
|
12645
|
+
/** @type {?} */
|
|
12646
|
+
var formValue = this.form.value;
|
|
12647
|
+
/** @type {?} */
|
|
12648
|
+
var hasFill = false;
|
|
12649
|
+
for (var i = 0; i < this.item.steps.length; i++) {
|
|
12650
|
+
/** @type {?} */
|
|
12651
|
+
var step = this.item.steps[i];
|
|
12652
|
+
for (var j = 0; j < step.inputArray.length; j++) {
|
|
12653
|
+
/** @type {?} */
|
|
12654
|
+
var answer = formValue[i][j];
|
|
12655
|
+
if (answer.length) {
|
|
12656
|
+
hasFill = true;
|
|
12657
|
+
break;
|
|
12658
|
+
}
|
|
12659
|
+
}
|
|
12660
|
+
if (hasFill)
|
|
12661
|
+
break;
|
|
12662
|
+
}
|
|
12663
|
+
return hasFill;
|
|
12664
|
+
},
|
|
12665
|
+
enumerable: true,
|
|
12666
|
+
configurable: true
|
|
12667
|
+
});
|
|
12668
|
+
FormStepComponent.decorators = [
|
|
11491
12669
|
{ type: core.Component, args: [{
|
|
11492
|
-
selector: 'app-editor-component-
|
|
11493
|
-
template: "<div class=\"
|
|
12670
|
+
selector: 'app-editor-component-form-step',
|
|
12671
|
+
template: "<div [ngStyle]=\"{'background': item.background}\" class=\"p-5\">\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 <form class=\"mt-7\" [formGroup]=\"form\">\r\n <fieldset [disabled]=\"blocked\">\r\n <mat-horizontal-stepper labelPosition=\"bottom\" [linear]=\"true\">\r\n <mat-step [formArrayName]=\"i\" *ngFor=\"let step of item.steps; index as i\" [stepControl]=\"form.controls[i]\">\r\n\r\n <div class=\"mt-4\">\r\n <p class=\"enunciated\">{{ step.resume }}</p>\r\n\r\n <ng-container *ngFor=\"let input of step.inputArray; index as iInput\">\r\n\r\n <div class=\"mt-5\"\r\n *ngIf=\"(input.visibility === 'always') || (input.visibility === 'conditional' && input.visibility_control_value.includes(form.value[i][input.visibility_control]))\">\r\n <p class=\"enunciated\">{{ input.resume }}</p>\r\n\r\n <ng-container [attr.aria-label]=\"input.resume\" *ngIf=\"input.type === 'select'\">\r\n\r\n\r\n <div class=\"row\">\r\n <div class=\"col-sm-12\">\r\n <div class=\"multichoice mb-3\" *ngFor=\"let opt of input.options; index as iOpt\">\r\n <label>\r\n <input type=\"radio\" [formControlName]=\"iInput\" id=\"radio-{{iInput}}-{{iOpt}}\"\r\n [value]=\"opt.value\" [required]=\"true\" />\r\n <span class=\"p-3\">\r\n <div class=\"text\">{{ opt.value }}</div>\r\n <i class=\"fa fa-check\"></i>\r\n </span>\r\n </label>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n <!-- <div style=\"padding: 10px 0; margin-top: 10px\">\r\n <mat-radio-group (change)=\"onMatRadioGroupChange($event, i, iInput)\" [required]=\"true\"\r\n [formControlName]=\"iInput\" [attr.aria-label]=\"input.resume\">\r\n <div *ngFor=\"let opt of input.options\" class=\"mb-2\">\r\n <mat-radio-button [value]=\"opt.value\">{{ opt.value }}</mat-radio-button>\r\n </div>\r\n </mat-radio-group>\r\n </div> -->\r\n </ng-container>\r\n\r\n <ng-container [attr.aria-label]=\"input.resume\" *ngIf=\"input.type === 'research'\">\r\n <div class=\"col-sm-12 mx-auto\">\r\n <div style=\"padding: 10px 0; padding-bottom: 0; margin-top: 10px\">\r\n <div *ngFor=\"let opt of input.options\" class=\"mb-2\">\r\n <mat-checkbox [checked]=\"form?.value[i][iInput]?.includes(opt.value)\"\r\n (change)=\"toggle(i,iInput,opt.value,$event)\" [value]=\"opt.value\">{{ opt.value }}\r\n </mat-checkbox>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <table [formArrayName]=\"iInput\" class=\"table table-bordered table-striped\"\r\n *ngIf=\"input.type === 'table'\">\r\n <thead>\r\n <tr>\r\n <th *ngFor=\"let col of input.cols\">{{ col.value }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr [formArrayName]=\"iLine\"\r\n *ngFor=\"let fCol of form['controls'][i]['controls'][iInput]['controls']; index as iLine\">\r\n <td style=\"padding: 0; line-height: 35px;\" *ngFor=\"let col of input.cols; index as iCol\">\r\n <input style=\"padding: 8px; width: 100%; background: #FFF; border: none;\"\r\n [required]=\"iLine === 0\" [formControlName]=\"iCol\" type=\"text\"\r\n name=\"radio_{{iInput}}_{{iLine}}_{{iCol}}\" />\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <textarea [formControlName]=\"iInput\" *ngIf=\"input.type === 'text'\" class=\"form-control\"></textarea>\r\n </div>\r\n\r\n </ng-container>\r\n\r\n <div class=\"mt-4 text-center\" *ngIf=\"!blocked\">\r\n <ng-container *ngIf=\"form.controls[i].valid\">\r\n <button matStepperNext class=\"btn _btn-primary btn-sm\" *ngIf=\"item.steps.length !== (i+1)\"\r\n [style.color]=\"item.button.color\"\r\n [style.background-color]=\"item.button.background\">{{ 'SaveGoNext' | translate }}</button>\r\n <button (click)=\"onSubmit()\" class=\"btn _btn-primary btn-sm\" *ngIf=\"item.steps.length === (i+1)\"\r\n [disabled]=\"!isFormFilled\"\r\n [style.color]=\"item.button.color\"\r\n [style.background-color]=\"item.button.background\">{{ 'SaveFinish' | translate }}</button>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"!form.controls[i].valid\">\r\n <button (click)=\"showFormError()\" class=\"btn _btn-primary btn-sm\" *ngIf=\"item.steps.length !== (i+1)\"\r\n [style.color]=\"item.button.color\"\r\n [style.background-color]=\"item.button.background\">{{ 'SaveGoNext' | translate }}</button>\r\n <button (click)=\"showFormError()\" class=\"btn _btn-primary btn-sm\" *ngIf=\"item.steps.length === (i+1)\"\r\n [style.color]=\"item.button.color\"\r\n [style.background-color]=\"item.button.background\">{{ 'SaveFinish' | translate }}</button>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </mat-step>\r\n </mat-horizontal-stepper>\r\n </fieldset>\r\n <div class=\"text-center mt-4\" *ngIf=\"blocked\">\r\n <button (click)=\"goNext()\" class=\"btn _btn-primary btn-sm\" [style.color]=\"item.button.color\"\r\n [style.background-color]=\"item.button.background\"> {{ 'Next' | translate }}</button>\r\n </div>\r\n </form>\r\n</div>\r\n",
|
|
11494
12672
|
providers: [TrailContentService],
|
|
11495
|
-
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}", "h2{margin-top:0}h3{margin:15px 0 25px}.contract-container{height:38vh;overflow-y:auto;padding:20px 0}@media (max-width:767px){.contract-container{text-align:left}}"]
|
|
12673
|
+
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}", ".fw-bold{font-weight:600}.marcadores{padding:10px;font-weight:600}.border-none{border:none}.conditional{border:1px solid #43425d}.conditional::before{content:\"Esse campo tem visibilidade condicional\";font-size:11px;background:#43425d;color:#fff;padding:4px 8px;position:relative;float:right}::ng-deep .mat-radio-label{white-space:normal!important}::ng-deep .mat-horizontal-content-container{overflow:hidden;padding:0!important}::ng-deep .mat-step-header:hover{background-color:transparent!important}::ng-deep .mat-step-header::ng-deep .cdk-program-focused{background-color:transparent!important}::ng-deep .mat-step-header::ng-deep .cdk-mouse-focused{background-color:transparent!important}::ng-deep .mat-step-header::ng-deep .cdk-focused{background-color:transparent!important}::ng-deep .theme-dark .enunciated{color:#ccc!important;margin-bottom:20px}"]
|
|
11496
12674
|
}] }
|
|
11497
12675
|
];
|
|
11498
12676
|
/** @nocollapse */
|
|
11499
|
-
|
|
11500
|
-
{ type:
|
|
12677
|
+
FormStepComponent.ctorParameters = function () { return [
|
|
12678
|
+
{ type: asapCrud.Global },
|
|
12679
|
+
{ type: TrailContentService },
|
|
12680
|
+
{ type: core$1.TranslateService }
|
|
11501
12681
|
]; };
|
|
11502
|
-
|
|
12682
|
+
FormStepComponent.propDecorators = {
|
|
11503
12683
|
item: [{ type: core.Input }],
|
|
11504
12684
|
id: [{ type: core.Input }],
|
|
11505
12685
|
event: [{ type: core.Output }]
|
|
11506
12686
|
};
|
|
11507
|
-
return
|
|
12687
|
+
return FormStepComponent;
|
|
11508
12688
|
}());
|
|
11509
12689
|
if (false) {
|
|
11510
12690
|
/** @type {?} */
|
|
11511
|
-
|
|
11512
|
-
/** @type {?} */
|
|
11513
|
-
EditorContractComponent.prototype.id;
|
|
11514
|
-
/** @type {?} */
|
|
11515
|
-
EditorContractComponent.prototype.event;
|
|
12691
|
+
FormStepComponent.prototype.item;
|
|
11516
12692
|
/** @type {?} */
|
|
11517
|
-
|
|
12693
|
+
FormStepComponent.prototype.id;
|
|
11518
12694
|
/** @type {?} */
|
|
11519
|
-
|
|
12695
|
+
FormStepComponent.prototype.event;
|
|
11520
12696
|
/** @type {?} */
|
|
11521
|
-
|
|
12697
|
+
FormStepComponent.prototype.blocked;
|
|
11522
12698
|
/** @type {?} */
|
|
11523
|
-
|
|
12699
|
+
FormStepComponent.prototype.contentId;
|
|
11524
12700
|
/** @type {?} */
|
|
11525
|
-
|
|
11526
|
-
}
|
|
11527
|
-
|
|
11528
|
-
/**
|
|
11529
|
-
* @fileoverview added by tsickle
|
|
11530
|
-
* Generated from: lib/material.module.ts
|
|
11531
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11532
|
-
*/
|
|
11533
|
-
var MaterialModule = /** @class */ (function () {
|
|
11534
|
-
function MaterialModule() {
|
|
11535
|
-
}
|
|
11536
|
-
MaterialModule.decorators = [
|
|
11537
|
-
{ type: core.NgModule, args: [{
|
|
11538
|
-
exports: [
|
|
11539
|
-
autocomplete.MatAutocompleteModule,
|
|
11540
|
-
button.MatButtonModule,
|
|
11541
|
-
buttonToggle.MatButtonToggleModule,
|
|
11542
|
-
card.MatCardModule,
|
|
11543
|
-
checkbox.MatCheckboxModule,
|
|
11544
|
-
chips.MatChipsModule,
|
|
11545
|
-
datepicker.MatDatepickerModule,
|
|
11546
|
-
dialog.MatDialogModule,
|
|
11547
|
-
formField.MatFormFieldModule,
|
|
11548
|
-
expansion.MatExpansionModule,
|
|
11549
|
-
gridList.MatGridListModule,
|
|
11550
|
-
icon.MatIconModule,
|
|
11551
|
-
input.MatInputModule,
|
|
11552
|
-
list.MatListModule,
|
|
11553
|
-
menu.MatMenuModule,
|
|
11554
|
-
core$2.MatNativeDateModule,
|
|
11555
|
-
paginator.MatPaginatorModule,
|
|
11556
|
-
progressBar.MatProgressBarModule,
|
|
11557
|
-
progressSpinner.MatProgressSpinnerModule,
|
|
11558
|
-
radio.MatRadioModule,
|
|
11559
|
-
core$2.MatRippleModule,
|
|
11560
|
-
select.MatSelectModule,
|
|
11561
|
-
sidenav.MatSidenavModule,
|
|
11562
|
-
slider.MatSliderModule,
|
|
11563
|
-
slideToggle.MatSlideToggleModule,
|
|
11564
|
-
snackBar.MatSnackBarModule,
|
|
11565
|
-
sort.MatSortModule,
|
|
11566
|
-
stepper.MatStepperModule,
|
|
11567
|
-
table.MatTableModule,
|
|
11568
|
-
tabs.MatTabsModule,
|
|
11569
|
-
toolbar.MatToolbarModule,
|
|
11570
|
-
tooltip.MatTooltipModule
|
|
11571
|
-
],
|
|
11572
|
-
},] }
|
|
11573
|
-
];
|
|
11574
|
-
return MaterialModule;
|
|
11575
|
-
}());
|
|
11576
|
-
|
|
11577
|
-
/**
|
|
11578
|
-
* @fileoverview added by tsickle
|
|
11579
|
-
* Generated from: lib/editor/components/form-step/form-step.component.ts
|
|
11580
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11581
|
-
*/
|
|
11582
|
-
var FormStepComponent = /** @class */ (function () {
|
|
11583
|
-
function FormStepComponent(global, _trailContentService, translate) {
|
|
11584
|
-
this.global = global;
|
|
11585
|
-
this._trailContentService = _trailContentService;
|
|
11586
|
-
this.translate = translate;
|
|
11587
|
-
this.event = new core.EventEmitter();
|
|
11588
|
-
}
|
|
11589
|
-
/**
|
|
11590
|
-
* @param {?} changes
|
|
11591
|
-
* @return {?}
|
|
11592
|
-
*/
|
|
11593
|
-
FormStepComponent.prototype.ngOnChanges = /**
|
|
11594
|
-
* @param {?} changes
|
|
11595
|
-
* @return {?}
|
|
11596
|
-
*/
|
|
11597
|
-
function (changes) {
|
|
11598
|
-
var _this = this;
|
|
11599
|
-
if (changes.item && this.item) {
|
|
11600
|
-
if (this.item.steps) {
|
|
11601
|
-
this.item.steps.forEach((/**
|
|
11602
|
-
* @param {?} step
|
|
11603
|
-
* @return {?}
|
|
11604
|
-
*/
|
|
11605
|
-
function (step) {
|
|
11606
|
-
_this.normalizeStep(step);
|
|
11607
|
-
}));
|
|
11608
|
-
}
|
|
11609
|
-
}
|
|
11610
|
-
};
|
|
11611
|
-
/**
|
|
11612
|
-
* @return {?}
|
|
11613
|
-
*/
|
|
11614
|
-
FormStepComponent.prototype.ngOnInit = /**
|
|
11615
|
-
* @return {?}
|
|
11616
|
-
*/
|
|
11617
|
-
function () {
|
|
11618
|
-
console.log('ID FORUM -<', this.id);
|
|
11619
|
-
this.generateForm();
|
|
11620
|
-
if (this.id) {
|
|
11621
|
-
this.getAnswer();
|
|
11622
|
-
}
|
|
11623
|
-
};
|
|
12701
|
+
FormStepComponent.prototype.form;
|
|
11624
12702
|
/**
|
|
11625
|
-
* @
|
|
11626
|
-
|
|
11627
|
-
FormStepComponent.prototype.generateForm = /**
|
|
11628
|
-
* @return {?}
|
|
12703
|
+
* @type {?}
|
|
12704
|
+
* @private
|
|
11629
12705
|
*/
|
|
11630
|
-
|
|
11631
|
-
|
|
11632
|
-
|
|
11633
|
-
|
|
11634
|
-
|
|
11635
|
-
|
|
11636
|
-
|
|
11637
|
-
|
|
11638
|
-
|
|
11639
|
-
|
|
11640
|
-
|
|
11641
|
-
|
|
11642
|
-
|
|
11643
|
-
|
|
11644
|
-
|
|
11645
|
-
|
|
11646
|
-
|
|
11647
|
-
|
|
11648
|
-
|
|
11649
|
-
|
|
11650
|
-
|
|
11651
|
-
|
|
11652
|
-
|
|
11653
|
-
|
|
11654
|
-
|
|
11655
|
-
|
|
11656
|
-
|
|
11657
|
-
|
|
11658
|
-
|
|
11659
|
-
|
|
11660
|
-
|
|
11661
|
-
|
|
11662
|
-
|
|
11663
|
-
|
|
11664
|
-
|
|
11665
|
-
|
|
11666
|
-
|
|
11667
|
-
|
|
11668
|
-
|
|
11669
|
-
|
|
11670
|
-
|
|
11671
|
-
|
|
11672
|
-
|
|
11673
|
-
}));
|
|
11674
|
-
_this.form.push(array);
|
|
11675
|
-
}));
|
|
11676
|
-
console.log('generateForm: this.form', this.form);
|
|
11677
|
-
};
|
|
12706
|
+
FormStepComponent.prototype.global;
|
|
12707
|
+
/** @type {?} */
|
|
12708
|
+
FormStepComponent.prototype._trailContentService;
|
|
12709
|
+
/**
|
|
12710
|
+
* @type {?}
|
|
12711
|
+
* @private
|
|
12712
|
+
*/
|
|
12713
|
+
FormStepComponent.prototype.translate;
|
|
12714
|
+
}
|
|
12715
|
+
|
|
12716
|
+
/**
|
|
12717
|
+
* @fileoverview added by tsickle
|
|
12718
|
+
* Generated from: lib/editor/components/pdf/pdf.component.ts
|
|
12719
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
12720
|
+
*/
|
|
12721
|
+
var EditorPdfComponent = /** @class */ (function () {
|
|
12722
|
+
function EditorPdfComponent(global, _trailContentService, translate, sanitizer, cdr) {
|
|
12723
|
+
this.global = global;
|
|
12724
|
+
this._trailContentService = _trailContentService;
|
|
12725
|
+
this.translate = translate;
|
|
12726
|
+
this.sanitizer = sanitizer;
|
|
12727
|
+
this.cdr = cdr;
|
|
12728
|
+
this.event = new core.EventEmitter();
|
|
12729
|
+
this.listMarkerLetter = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'x', 'z'];
|
|
12730
|
+
// PDF Renderer State
|
|
12731
|
+
this.isLoadingPdf = false;
|
|
12732
|
+
this.pdfError = false;
|
|
12733
|
+
this.pdfErrorMessage = '';
|
|
12734
|
+
this.totalPages = 0;
|
|
12735
|
+
this.zoomScale = 1.0;
|
|
12736
|
+
// Fallback para iframe nativo direto (sem Google Drive Viewer) quando o servidor do PDF não libera CORS
|
|
12737
|
+
this.useNativeIframe = false;
|
|
12738
|
+
this.safeNativePdfUrl = null;
|
|
12739
|
+
this.iframeReloadCounter = 0;
|
|
12740
|
+
this.pdfDoc = null;
|
|
12741
|
+
this.renderGeneration = 0;
|
|
12742
|
+
this.isDestroyed = false;
|
|
12743
|
+
this.PDFJS_CDN_PRIMARY = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.min.js';
|
|
12744
|
+
this.PDFJS_WORKER_PRIMARY = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.min.js';
|
|
12745
|
+
this.PDFJS_CDN_FALLBACK = 'https://cdn.jsdelivr.net/npm/pdfjs-dist@3.11.174/build/pdf.min.js';
|
|
12746
|
+
this.PDFJS_WORKER_FALLBACK = 'https://cdn.jsdelivr.net/npm/pdfjs-dist@3.11.174/build/pdf.worker.min.js';
|
|
12747
|
+
this.form = new forms.FormArray([]);
|
|
12748
|
+
}
|
|
11678
12749
|
/**
|
|
11679
12750
|
* @return {?}
|
|
11680
12751
|
*/
|
|
11681
|
-
|
|
12752
|
+
EditorPdfComponent.prototype.ngOnInit = /**
|
|
11682
12753
|
* @return {?}
|
|
11683
12754
|
*/
|
|
11684
12755
|
function () {
|
|
11685
|
-
|
|
11686
|
-
this._trailContentService.all(this.id).subscribe((/**
|
|
11687
|
-
* @param {?} res
|
|
11688
|
-
* @return {?}
|
|
11689
|
-
*/
|
|
11690
|
-
function (res) {
|
|
11691
|
-
/** @type {?} */
|
|
11692
|
-
var check = res.data.find((/**
|
|
11693
|
-
* @param {?} item
|
|
11694
|
-
* @return {?}
|
|
11695
|
-
*/
|
|
11696
|
-
function (item) {
|
|
11697
|
-
return item.value.type === 'form-step';
|
|
11698
|
-
}));
|
|
11699
|
-
if (check) {
|
|
11700
|
-
_this.contentId = check.id;
|
|
11701
|
-
_this.form.patchValue(check.value.value);
|
|
11702
|
-
// this.blocked = true;
|
|
11703
|
-
}
|
|
11704
|
-
}));
|
|
12756
|
+
this.initializeComponent();
|
|
11705
12757
|
};
|
|
11706
12758
|
/**
|
|
12759
|
+
* @param {?} changes
|
|
11707
12760
|
* @return {?}
|
|
11708
12761
|
*/
|
|
11709
|
-
|
|
12762
|
+
EditorPdfComponent.prototype.ngOnChanges = /**
|
|
12763
|
+
* @param {?} changes
|
|
11710
12764
|
* @return {?}
|
|
11711
12765
|
*/
|
|
11712
|
-
function () {
|
|
11713
|
-
|
|
11714
|
-
|
|
11715
|
-
var data = {
|
|
11716
|
-
type: 'form-step',
|
|
11717
|
-
value: this.form.value
|
|
11718
|
-
};
|
|
11719
|
-
if (this.contentId) {
|
|
11720
|
-
this._trailContentService.update(this.contentId, data).subscribe((/**
|
|
11721
|
-
* @param {?} res
|
|
11722
|
-
* @return {?}
|
|
11723
|
-
*/
|
|
11724
|
-
function (res) {
|
|
11725
|
-
_this.goNext();
|
|
11726
|
-
}));
|
|
11727
|
-
}
|
|
11728
|
-
else {
|
|
11729
|
-
this._trailContentService.save(this.id, data).subscribe((/**
|
|
11730
|
-
* @param {?} res
|
|
11731
|
-
* @return {?}
|
|
11732
|
-
*/
|
|
11733
|
-
function (res) {
|
|
11734
|
-
_this.contentId = res.data.id;
|
|
11735
|
-
_this.blocked = true;
|
|
11736
|
-
_this.goNext();
|
|
11737
|
-
}));
|
|
12766
|
+
function (changes) {
|
|
12767
|
+
if ((changes['item'] && !changes['item'].firstChange) || (changes['id'] && !changes['id'].firstChange)) {
|
|
12768
|
+
this.initializeComponent();
|
|
11738
12769
|
}
|
|
11739
12770
|
};
|
|
11740
12771
|
/**
|
|
11741
|
-
* @param {?} length
|
|
11742
12772
|
* @return {?}
|
|
11743
12773
|
*/
|
|
11744
|
-
|
|
11745
|
-
* @param {?} length
|
|
12774
|
+
EditorPdfComponent.prototype.ngOnDestroy = /**
|
|
11746
12775
|
* @return {?}
|
|
11747
12776
|
*/
|
|
11748
|
-
function (
|
|
11749
|
-
|
|
11750
|
-
|
|
11751
|
-
|
|
11752
|
-
|
|
12777
|
+
function () {
|
|
12778
|
+
this.isDestroyed = true;
|
|
12779
|
+
this.renderGeneration++;
|
|
12780
|
+
if (this.retryTimer) {
|
|
12781
|
+
clearTimeout(this.retryTimer);
|
|
12782
|
+
this.retryTimer = null;
|
|
11753
12783
|
}
|
|
11754
|
-
|
|
12784
|
+
this.destroyPdfDoc();
|
|
11755
12785
|
};
|
|
11756
12786
|
/**
|
|
12787
|
+
* @private
|
|
11757
12788
|
* @return {?}
|
|
11758
12789
|
*/
|
|
11759
|
-
|
|
12790
|
+
EditorPdfComponent.prototype.destroyPdfDoc = /**
|
|
12791
|
+
* @private
|
|
11760
12792
|
* @return {?}
|
|
11761
12793
|
*/
|
|
11762
12794
|
function () {
|
|
11763
|
-
this.
|
|
12795
|
+
if (this.pdfDoc) {
|
|
12796
|
+
try {
|
|
12797
|
+
this.pdfDoc.destroy();
|
|
12798
|
+
}
|
|
12799
|
+
catch (e) { }
|
|
12800
|
+
this.pdfDoc = null;
|
|
12801
|
+
}
|
|
11764
12802
|
};
|
|
11765
12803
|
/**
|
|
12804
|
+
* @private
|
|
11766
12805
|
* @return {?}
|
|
11767
12806
|
*/
|
|
11768
|
-
|
|
12807
|
+
EditorPdfComponent.prototype.initializeComponent = /**
|
|
12808
|
+
* @private
|
|
11769
12809
|
* @return {?}
|
|
11770
12810
|
*/
|
|
11771
12811
|
function () {
|
|
11772
|
-
|
|
12812
|
+
if (this.id) {
|
|
12813
|
+
this.getAnswer(this.id);
|
|
12814
|
+
}
|
|
12815
|
+
if (this.item && this.item.url) {
|
|
12816
|
+
this.zoomScale = 1.0;
|
|
12817
|
+
this.useNativeIframe = false;
|
|
12818
|
+
this.safeNativePdfUrl = null;
|
|
12819
|
+
this.loadPdf(1);
|
|
12820
|
+
}
|
|
11773
12821
|
};
|
|
11774
12822
|
/**
|
|
11775
|
-
* @
|
|
12823
|
+
* @private
|
|
12824
|
+
* @param {?} src
|
|
12825
|
+
* @param {?} id
|
|
11776
12826
|
* @return {?}
|
|
11777
12827
|
*/
|
|
11778
|
-
|
|
11779
|
-
* @
|
|
12828
|
+
EditorPdfComponent.prototype.loadScript = /**
|
|
12829
|
+
* @private
|
|
12830
|
+
* @param {?} src
|
|
12831
|
+
* @param {?} id
|
|
11780
12832
|
* @return {?}
|
|
11781
12833
|
*/
|
|
11782
|
-
function (
|
|
11783
|
-
|
|
11784
|
-
|
|
11785
|
-
|
|
12834
|
+
function (src, id) {
|
|
12835
|
+
return new Promise((/**
|
|
12836
|
+
* @param {?} resolve
|
|
12837
|
+
* @param {?} reject
|
|
12838
|
+
* @return {?}
|
|
12839
|
+
*/
|
|
12840
|
+
function (resolve, reject) {
|
|
12841
|
+
if (typeof window !== 'undefined' && window['pdfjsLib']) {
|
|
12842
|
+
resolve(window['pdfjsLib']);
|
|
12843
|
+
return;
|
|
12844
|
+
}
|
|
12845
|
+
/** @type {?} */
|
|
12846
|
+
var existing = (/** @type {?} */ (document.getElementById(id)));
|
|
12847
|
+
if (existing) {
|
|
12848
|
+
if (window['pdfjsLib']) {
|
|
12849
|
+
resolve(window['pdfjsLib']);
|
|
12850
|
+
return;
|
|
12851
|
+
}
|
|
12852
|
+
existing.addEventListener('load', (/**
|
|
12853
|
+
* @return {?}
|
|
12854
|
+
*/
|
|
12855
|
+
function () { return resolve(window['pdfjsLib']); }));
|
|
12856
|
+
existing.addEventListener('error', (/**
|
|
12857
|
+
* @param {?} err
|
|
12858
|
+
* @return {?}
|
|
12859
|
+
*/
|
|
12860
|
+
function (err) { return reject(err); }));
|
|
12861
|
+
return;
|
|
12862
|
+
}
|
|
12863
|
+
/** @type {?} */
|
|
12864
|
+
var script = document.createElement('script');
|
|
12865
|
+
script.id = id;
|
|
12866
|
+
script.src = src;
|
|
12867
|
+
script.async = true;
|
|
12868
|
+
script.onload = (/**
|
|
12869
|
+
* @return {?}
|
|
12870
|
+
*/
|
|
12871
|
+
function () {
|
|
12872
|
+
if (window['pdfjsLib']) {
|
|
12873
|
+
resolve(window['pdfjsLib']);
|
|
12874
|
+
}
|
|
12875
|
+
else {
|
|
12876
|
+
reject(new Error('pdfjsLib não disponível após carregamento do script'));
|
|
12877
|
+
}
|
|
12878
|
+
});
|
|
12879
|
+
script.onerror = (/**
|
|
12880
|
+
* @param {?} err
|
|
12881
|
+
* @return {?}
|
|
12882
|
+
*/
|
|
12883
|
+
function (err) {
|
|
12884
|
+
script.remove();
|
|
12885
|
+
reject(err);
|
|
12886
|
+
});
|
|
12887
|
+
document.body.appendChild(script);
|
|
12888
|
+
}));
|
|
11786
12889
|
};
|
|
11787
12890
|
/**
|
|
11788
|
-
* @
|
|
11789
|
-
* @param {?} index
|
|
11790
|
-
* @param {?} input
|
|
12891
|
+
* @private
|
|
11791
12892
|
* @return {?}
|
|
11792
12893
|
*/
|
|
11793
|
-
|
|
11794
|
-
* @
|
|
11795
|
-
* @param {?} index
|
|
11796
|
-
* @param {?} input
|
|
12894
|
+
EditorPdfComponent.prototype.ensurePdfJsLoaded = /**
|
|
12895
|
+
* @private
|
|
11797
12896
|
* @return {?}
|
|
11798
12897
|
*/
|
|
11799
|
-
function (
|
|
11800
|
-
|
|
11801
|
-
|
|
11802
|
-
|
|
11803
|
-
|
|
11804
|
-
|
|
11805
|
-
|
|
11806
|
-
|
|
12898
|
+
function () {
|
|
12899
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12900
|
+
var lib, primaryErr_1, lib;
|
|
12901
|
+
return __generator(this, function (_a) {
|
|
12902
|
+
switch (_a.label) {
|
|
12903
|
+
case 0:
|
|
12904
|
+
if (typeof window !== 'undefined' && window['pdfjsLib']) {
|
|
12905
|
+
return [2 /*return*/, window['pdfjsLib']];
|
|
12906
|
+
}
|
|
12907
|
+
_a.label = 1;
|
|
12908
|
+
case 1:
|
|
12909
|
+
_a.trys.push([1, 3, , 5]);
|
|
12910
|
+
return [4 /*yield*/, this.loadScript(this.PDFJS_CDN_PRIMARY, 'asap-pdfjs-lib')];
|
|
12911
|
+
case 2:
|
|
12912
|
+
lib = _a.sent();
|
|
12913
|
+
if (lib && lib.GlobalWorkerOptions) {
|
|
12914
|
+
lib.GlobalWorkerOptions.workerSrc = this.PDFJS_WORKER_PRIMARY;
|
|
12915
|
+
}
|
|
12916
|
+
return [2 /*return*/, lib];
|
|
12917
|
+
case 3:
|
|
12918
|
+
primaryErr_1 = _a.sent();
|
|
12919
|
+
return [4 /*yield*/, this.loadScript(this.PDFJS_CDN_FALLBACK, 'asap-pdfjs-lib-fallback')];
|
|
12920
|
+
case 4:
|
|
12921
|
+
lib = _a.sent();
|
|
12922
|
+
if (lib && lib.GlobalWorkerOptions) {
|
|
12923
|
+
lib.GlobalWorkerOptions.workerSrc = this.PDFJS_WORKER_FALLBACK;
|
|
12924
|
+
}
|
|
12925
|
+
return [2 /*return*/, lib];
|
|
12926
|
+
case 5: return [2 /*return*/];
|
|
12927
|
+
}
|
|
12928
|
+
});
|
|
12929
|
+
});
|
|
12930
|
+
};
|
|
12931
|
+
/**
|
|
12932
|
+
* @private
|
|
12933
|
+
* @param {?=} forceCacheBust
|
|
12934
|
+
* @return {?}
|
|
12935
|
+
*/
|
|
12936
|
+
EditorPdfComponent.prototype.activateNativeIframe = /**
|
|
12937
|
+
* @private
|
|
12938
|
+
* @param {?=} forceCacheBust
|
|
12939
|
+
* @return {?}
|
|
12940
|
+
*/
|
|
12941
|
+
function (forceCacheBust) {
|
|
12942
|
+
if (forceCacheBust === void 0) { forceCacheBust = false; }
|
|
12943
|
+
if (!this.item || !this.item.url) {
|
|
12944
|
+
return;
|
|
12945
|
+
}
|
|
11807
12946
|
/** @type {?} */
|
|
11808
|
-
var
|
|
11809
|
-
|
|
11810
|
-
|
|
12947
|
+
var cleanUrl = String(this.item.url).split('#')[0];
|
|
12948
|
+
if (forceCacheBust) {
|
|
12949
|
+
this.iframeReloadCounter++;
|
|
12950
|
+
/** @type {?} */
|
|
12951
|
+
var sep = cleanUrl.includes('?') ? '&' : '?';
|
|
12952
|
+
cleanUrl = "" + cleanUrl + sep + "_r=" + this.iframeReloadCounter + "_" + Date.now();
|
|
11811
12953
|
}
|
|
11812
|
-
|
|
11813
|
-
|
|
11814
|
-
|
|
11815
|
-
|
|
11816
|
-
|
|
11817
|
-
|
|
11818
|
-
|
|
11819
|
-
|
|
11820
|
-
|
|
11821
|
-
|
|
11822
|
-
|
|
11823
|
-
|
|
11824
|
-
|
|
11825
|
-
|
|
11826
|
-
|
|
11827
|
-
|
|
11828
|
-
|
|
11829
|
-
|
|
11830
|
-
|
|
11831
|
-
|
|
11832
|
-
|
|
11833
|
-
|
|
11834
|
-
|
|
11835
|
-
|
|
11836
|
-
|
|
11837
|
-
|
|
11838
|
-
|
|
12954
|
+
/** @type {?} */
|
|
12955
|
+
var finalUrl = cleanUrl + "#toolbar=0&navpanes=0&scrollbar=0&view=FitH";
|
|
12956
|
+
this.useNativeIframe = true;
|
|
12957
|
+
this.isLoadingPdf = false;
|
|
12958
|
+
this.pdfError = false;
|
|
12959
|
+
this.safeNativePdfUrl = this.sanitizer.bypassSecurityTrustResourceUrl(finalUrl);
|
|
12960
|
+
this.cdr.detectChanges();
|
|
12961
|
+
};
|
|
12962
|
+
/**
|
|
12963
|
+
* @param {?=} attempt
|
|
12964
|
+
* @return {?}
|
|
12965
|
+
*/
|
|
12966
|
+
EditorPdfComponent.prototype.loadPdf = /**
|
|
12967
|
+
* @param {?=} attempt
|
|
12968
|
+
* @return {?}
|
|
12969
|
+
*/
|
|
12970
|
+
function (attempt) {
|
|
12971
|
+
if (attempt === void 0) { attempt = 1; }
|
|
12972
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12973
|
+
var pdfjsLib, loadingTask, pdf, err_1;
|
|
12974
|
+
var _this = this;
|
|
12975
|
+
return __generator(this, function (_a) {
|
|
12976
|
+
switch (_a.label) {
|
|
12977
|
+
case 0:
|
|
12978
|
+
if (!this.item || !this.item.url || this.isDestroyed) {
|
|
12979
|
+
return [2 /*return*/];
|
|
12980
|
+
}
|
|
12981
|
+
if (this.retryTimer) {
|
|
12982
|
+
clearTimeout(this.retryTimer);
|
|
12983
|
+
this.retryTimer = null;
|
|
12984
|
+
}
|
|
12985
|
+
this.isLoadingPdf = true;
|
|
12986
|
+
this.pdfError = false;
|
|
12987
|
+
this.pdfErrorMessage = '';
|
|
12988
|
+
this.totalPages = 0;
|
|
12989
|
+
this.useNativeIframe = false;
|
|
12990
|
+
this.safeNativePdfUrl = null;
|
|
12991
|
+
this.destroyPdfDoc();
|
|
12992
|
+
this.cdr.detectChanges();
|
|
12993
|
+
_a.label = 1;
|
|
12994
|
+
case 1:
|
|
12995
|
+
_a.trys.push([1, 4, , 5]);
|
|
12996
|
+
return [4 /*yield*/, this.ensurePdfJsLoaded()];
|
|
12997
|
+
case 2:
|
|
12998
|
+
pdfjsLib = _a.sent();
|
|
12999
|
+
if (this.isDestroyed) {
|
|
13000
|
+
return [2 /*return*/];
|
|
13001
|
+
}
|
|
13002
|
+
loadingTask = pdfjsLib.getDocument({
|
|
13003
|
+
url: this.item.url,
|
|
13004
|
+
withCredentials: false,
|
|
13005
|
+
cMapUrl: 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/cmaps/',
|
|
13006
|
+
cMapPacked: true
|
|
13007
|
+
});
|
|
13008
|
+
return [4 /*yield*/, loadingTask.promise];
|
|
13009
|
+
case 3:
|
|
13010
|
+
pdf = _a.sent();
|
|
13011
|
+
if (this.isDestroyed) {
|
|
13012
|
+
try {
|
|
13013
|
+
pdf.destroy();
|
|
11839
13014
|
}
|
|
13015
|
+
catch (e) { }
|
|
13016
|
+
return [2 /*return*/];
|
|
13017
|
+
}
|
|
13018
|
+
this.pdfDoc = pdf;
|
|
13019
|
+
this.totalPages = pdf.numPages;
|
|
13020
|
+
this.isLoadingPdf = false;
|
|
13021
|
+
this.pdfError = false;
|
|
13022
|
+
this.cdr.detectChanges();
|
|
13023
|
+
setTimeout((/**
|
|
13024
|
+
* @return {?}
|
|
13025
|
+
*/
|
|
13026
|
+
function () {
|
|
13027
|
+
_this.renderAllPages();
|
|
13028
|
+
}), 30);
|
|
13029
|
+
return [3 /*break*/, 5];
|
|
13030
|
+
case 4:
|
|
13031
|
+
err_1 = _a.sent();
|
|
13032
|
+
console.warn("[EditorPdfComponent] PDF.js falhou (tentativa " + attempt + "), ativando visualizador nativo direto:", err_1);
|
|
13033
|
+
if (this.isDestroyed) {
|
|
13034
|
+
return [2 /*return*/];
|
|
11840
13035
|
}
|
|
11841
|
-
|
|
11842
|
-
|
|
11843
|
-
|
|
11844
|
-
|
|
11845
|
-
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
|
13036
|
+
// Se estamos online e o fetch falhou (ex: CORS no bucket S3/OVH), ativa imediatamente o iframe nativo direto (sem Google Drive Viewer)
|
|
13037
|
+
if (navigator.onLine) {
|
|
13038
|
+
this.activateNativeIframe(false);
|
|
13039
|
+
return [2 /*return*/];
|
|
11846
13040
|
}
|
|
11847
|
-
|
|
11848
|
-
|
|
13041
|
+
if (attempt < 3) {
|
|
13042
|
+
this.retryTimer = setTimeout((/**
|
|
13043
|
+
* @return {?}
|
|
13044
|
+
*/
|
|
13045
|
+
function () {
|
|
13046
|
+
_this.loadPdf(attempt + 1);
|
|
13047
|
+
}), 1500);
|
|
13048
|
+
return [2 /*return*/];
|
|
13049
|
+
}
|
|
13050
|
+
this.isLoadingPdf = false;
|
|
13051
|
+
this.pdfError = true;
|
|
13052
|
+
this.pdfErrorMessage = 'Não foi possível carregar o documento devido à instabilidade na conexão.';
|
|
13053
|
+
this.cdr.detectChanges();
|
|
13054
|
+
return [3 /*break*/, 5];
|
|
13055
|
+
case 5: return [2 /*return*/];
|
|
11849
13056
|
}
|
|
11850
|
-
}
|
|
11851
|
-
}
|
|
13057
|
+
});
|
|
13058
|
+
});
|
|
13059
|
+
};
|
|
13060
|
+
/**
|
|
13061
|
+
* @return {?}
|
|
13062
|
+
*/
|
|
13063
|
+
EditorPdfComponent.prototype.reloadNativeIframe = /**
|
|
13064
|
+
* @return {?}
|
|
13065
|
+
*/
|
|
13066
|
+
function () {
|
|
13067
|
+
var _this = this;
|
|
13068
|
+
this.safeNativePdfUrl = null;
|
|
13069
|
+
this.cdr.detectChanges();
|
|
13070
|
+
setTimeout((/**
|
|
13071
|
+
* @return {?}
|
|
13072
|
+
*/
|
|
13073
|
+
function () {
|
|
13074
|
+
_this.activateNativeIframe(true);
|
|
13075
|
+
}), 50);
|
|
11852
13076
|
};
|
|
11853
13077
|
/**
|
|
11854
13078
|
* @private
|
|
11855
|
-
* @param {?} control
|
|
11856
13079
|
* @return {?}
|
|
11857
13080
|
*/
|
|
11858
|
-
|
|
13081
|
+
EditorPdfComponent.prototype.renderAllPages = /**
|
|
11859
13082
|
* @private
|
|
11860
|
-
* @param {?} control
|
|
11861
13083
|
* @return {?}
|
|
11862
13084
|
*/
|
|
11863
|
-
function (
|
|
11864
|
-
|
|
11865
|
-
|
|
11866
|
-
|
|
13085
|
+
function () {
|
|
13086
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13087
|
+
var currentGen, container, availableWidth, dpr, pageNum, page, baseViewport, fitScale, viewport, pageWrapper, canvas, ctx, renderContext, renderErr_1;
|
|
13088
|
+
return __generator(this, function (_a) {
|
|
13089
|
+
switch (_a.label) {
|
|
13090
|
+
case 0:
|
|
13091
|
+
if (!this.pdfDoc || !this.pdfCanvasContainer || !this.pdfCanvasContainer.nativeElement || this.isDestroyed) {
|
|
13092
|
+
return [2 /*return*/];
|
|
13093
|
+
}
|
|
13094
|
+
currentGen = ++this.renderGeneration;
|
|
13095
|
+
container = this.pdfCanvasContainer.nativeElement;
|
|
13096
|
+
container.innerHTML = '';
|
|
13097
|
+
availableWidth = Math.max((container.clientWidth || 800) - 32, 280);
|
|
13098
|
+
dpr = Math.min(window.devicePixelRatio || 1, 2);
|
|
13099
|
+
pageNum = 1;
|
|
13100
|
+
_a.label = 1;
|
|
13101
|
+
case 1:
|
|
13102
|
+
if (!(pageNum <= this.pdfDoc.numPages)) return [3 /*break*/, 7];
|
|
13103
|
+
if (this.isDestroyed || currentGen !== this.renderGeneration) {
|
|
13104
|
+
return [2 /*return*/];
|
|
13105
|
+
}
|
|
13106
|
+
_a.label = 2;
|
|
13107
|
+
case 2:
|
|
13108
|
+
_a.trys.push([2, 5, , 6]);
|
|
13109
|
+
return [4 /*yield*/, this.pdfDoc.getPage(pageNum)];
|
|
13110
|
+
case 3:
|
|
13111
|
+
page = _a.sent();
|
|
13112
|
+
if (this.isDestroyed || currentGen !== this.renderGeneration) {
|
|
13113
|
+
return [2 /*return*/];
|
|
13114
|
+
}
|
|
13115
|
+
baseViewport = page.getViewport({ scale: 1 });
|
|
13116
|
+
fitScale = (availableWidth / baseViewport.width) * this.zoomScale;
|
|
13117
|
+
viewport = page.getViewport({ scale: fitScale });
|
|
13118
|
+
pageWrapper = document.createElement('div');
|
|
13119
|
+
pageWrapper.className = 'pdf-page-wrapper';
|
|
13120
|
+
canvas = document.createElement('canvas');
|
|
13121
|
+
canvas.className = 'pdf-page-canvas';
|
|
13122
|
+
canvas.width = Math.floor(viewport.width * dpr);
|
|
13123
|
+
canvas.height = Math.floor(viewport.height * dpr);
|
|
13124
|
+
canvas.style.width = Math.floor(viewport.width) + "px";
|
|
13125
|
+
canvas.style.height = Math.floor(viewport.height) + "px";
|
|
13126
|
+
ctx = canvas.getContext('2d');
|
|
13127
|
+
if (!ctx) {
|
|
13128
|
+
return [3 /*break*/, 6];
|
|
13129
|
+
}
|
|
13130
|
+
pageWrapper.appendChild(canvas);
|
|
13131
|
+
container.appendChild(pageWrapper);
|
|
13132
|
+
renderContext = {
|
|
13133
|
+
canvasContext: ctx,
|
|
13134
|
+
viewport: viewport
|
|
13135
|
+
};
|
|
13136
|
+
if (dpr !== 1) {
|
|
13137
|
+
renderContext.transform = [dpr, 0, 0, dpr, 0, 0];
|
|
13138
|
+
}
|
|
13139
|
+
return [4 /*yield*/, page.render(renderContext).promise];
|
|
13140
|
+
case 4:
|
|
13141
|
+
_a.sent();
|
|
13142
|
+
return [3 /*break*/, 6];
|
|
13143
|
+
case 5:
|
|
13144
|
+
renderErr_1 = _a.sent();
|
|
13145
|
+
console.error("[EditorPdfComponent] Erro ao renderizar p\u00E1gina " + pageNum + ":", renderErr_1);
|
|
13146
|
+
return [3 /*break*/, 6];
|
|
13147
|
+
case 6:
|
|
13148
|
+
pageNum++;
|
|
13149
|
+
return [3 /*break*/, 1];
|
|
13150
|
+
case 7: return [2 /*return*/];
|
|
13151
|
+
}
|
|
13152
|
+
});
|
|
13153
|
+
});
|
|
11867
13154
|
};
|
|
11868
13155
|
/**
|
|
11869
|
-
* @param {?} step
|
|
11870
|
-
* @param {?} idx
|
|
11871
|
-
* @param {?} value
|
|
11872
|
-
* @param {?} evt
|
|
11873
13156
|
* @return {?}
|
|
11874
13157
|
*/
|
|
11875
|
-
|
|
11876
|
-
* @param {?} step
|
|
11877
|
-
* @param {?} idx
|
|
11878
|
-
* @param {?} value
|
|
11879
|
-
* @param {?} evt
|
|
13158
|
+
EditorPdfComponent.prototype.zoomIn = /**
|
|
11880
13159
|
* @return {?}
|
|
11881
13160
|
*/
|
|
11882
|
-
function (
|
|
11883
|
-
|
|
11884
|
-
|
|
11885
|
-
|
|
11886
|
-
this.form.value[step][idx].splice(vIdx, 1);
|
|
11887
|
-
}
|
|
11888
|
-
else {
|
|
11889
|
-
this.form.value[step][idx].push(value);
|
|
13161
|
+
function () {
|
|
13162
|
+
if (this.zoomScale < 2.0) {
|
|
13163
|
+
this.zoomScale = Math.round((this.zoomScale + 0.2) * 10) / 10;
|
|
13164
|
+
this.renderAllPages();
|
|
11890
13165
|
}
|
|
11891
13166
|
};
|
|
11892
13167
|
/**
|
|
11893
|
-
* @param {?} step
|
|
11894
13168
|
* @return {?}
|
|
11895
13169
|
*/
|
|
11896
|
-
|
|
11897
|
-
* @param {?} step
|
|
13170
|
+
EditorPdfComponent.prototype.zoomOut = /**
|
|
11898
13171
|
* @return {?}
|
|
11899
13172
|
*/
|
|
11900
|
-
function (
|
|
11901
|
-
if (
|
|
11902
|
-
|
|
11903
|
-
|
|
11904
|
-
step.inputArray.forEach((/**
|
|
11905
|
-
* @param {?} input
|
|
11906
|
-
* @return {?}
|
|
11907
|
-
*/
|
|
11908
|
-
function (input) {
|
|
11909
|
-
if (input.visibility_control_value) {
|
|
11910
|
-
if (!Array.isArray(input.visibility_control_value)) {
|
|
11911
|
-
input.visibility_control_value = [input.visibility_control_value];
|
|
11912
|
-
}
|
|
11913
|
-
}
|
|
11914
|
-
}));
|
|
13173
|
+
function () {
|
|
13174
|
+
if (this.zoomScale > 0.6) {
|
|
13175
|
+
this.zoomScale = Math.round((this.zoomScale - 0.2) * 10) / 10;
|
|
13176
|
+
this.renderAllPages();
|
|
11915
13177
|
}
|
|
11916
|
-
return step;
|
|
11917
|
-
};
|
|
11918
|
-
Object.defineProperty(FormStepComponent.prototype, "isFormFilled", {
|
|
11919
|
-
get: /**
|
|
11920
|
-
* @return {?}
|
|
11921
|
-
*/
|
|
11922
|
-
function () {
|
|
11923
|
-
/** @type {?} */
|
|
11924
|
-
var formValue = this.form.value;
|
|
11925
|
-
/** @type {?} */
|
|
11926
|
-
var hasFill = false;
|
|
11927
|
-
for (var i = 0; i < this.item.steps.length; i++) {
|
|
11928
|
-
/** @type {?} */
|
|
11929
|
-
var step = this.item.steps[i];
|
|
11930
|
-
for (var j = 0; j < step.inputArray.length; j++) {
|
|
11931
|
-
/** @type {?} */
|
|
11932
|
-
var answer = formValue[i][j];
|
|
11933
|
-
if (answer.length) {
|
|
11934
|
-
hasFill = true;
|
|
11935
|
-
break;
|
|
11936
|
-
}
|
|
11937
|
-
}
|
|
11938
|
-
if (hasFill)
|
|
11939
|
-
break;
|
|
11940
|
-
}
|
|
11941
|
-
return hasFill;
|
|
11942
|
-
},
|
|
11943
|
-
enumerable: true,
|
|
11944
|
-
configurable: true
|
|
11945
|
-
});
|
|
11946
|
-
FormStepComponent.decorators = [
|
|
11947
|
-
{ type: core.Component, args: [{
|
|
11948
|
-
selector: 'app-editor-component-form-step',
|
|
11949
|
-
template: "<div [ngStyle]=\"{'background': item.background}\" class=\"p-5\">\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 <form class=\"mt-7\" [formGroup]=\"form\">\r\n <fieldset [disabled]=\"blocked\">\r\n <mat-horizontal-stepper labelPosition=\"bottom\" [linear]=\"true\">\r\n <mat-step [formArrayName]=\"i\" *ngFor=\"let step of item.steps; index as i\" [stepControl]=\"form.controls[i]\">\r\n\r\n <div class=\"mt-4\">\r\n <p class=\"enunciated\">{{ step.resume }}</p>\r\n\r\n <ng-container *ngFor=\"let input of step.inputArray; index as iInput\">\r\n\r\n <div class=\"mt-5\"\r\n *ngIf=\"(input.visibility === 'always') || (input.visibility === 'conditional' && input.visibility_control_value.includes(form.value[i][input.visibility_control]))\">\r\n <p class=\"enunciated\">{{ input.resume }}</p>\r\n\r\n <ng-container [attr.aria-label]=\"input.resume\" *ngIf=\"input.type === 'select'\">\r\n\r\n\r\n <div class=\"row\">\r\n <div class=\"col-sm-12\">\r\n <div class=\"multichoice mb-3\" *ngFor=\"let opt of input.options; index as iOpt\">\r\n <label>\r\n <input type=\"radio\" [formControlName]=\"iInput\" id=\"radio-{{iInput}}-{{iOpt}}\"\r\n [value]=\"opt.value\" [required]=\"true\" />\r\n <span class=\"p-3\">\r\n <div class=\"text\">{{ opt.value }}</div>\r\n <i class=\"fa fa-check\"></i>\r\n </span>\r\n </label>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n <!-- <div style=\"padding: 10px 0; margin-top: 10px\">\r\n <mat-radio-group (change)=\"onMatRadioGroupChange($event, i, iInput)\" [required]=\"true\"\r\n [formControlName]=\"iInput\" [attr.aria-label]=\"input.resume\">\r\n <div *ngFor=\"let opt of input.options\" class=\"mb-2\">\r\n <mat-radio-button [value]=\"opt.value\">{{ opt.value }}</mat-radio-button>\r\n </div>\r\n </mat-radio-group>\r\n </div> -->\r\n </ng-container>\r\n\r\n <ng-container [attr.aria-label]=\"input.resume\" *ngIf=\"input.type === 'research'\">\r\n <div class=\"col-sm-12 mx-auto\">\r\n <div style=\"padding: 10px 0; padding-bottom: 0; margin-top: 10px\">\r\n <div *ngFor=\"let opt of input.options\" class=\"mb-2\">\r\n <mat-checkbox [checked]=\"form?.value[i][iInput]?.includes(opt.value)\"\r\n (change)=\"toggle(i,iInput,opt.value,$event)\" [value]=\"opt.value\">{{ opt.value }}\r\n </mat-checkbox>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <table [formArrayName]=\"iInput\" class=\"table table-bordered table-striped\"\r\n *ngIf=\"input.type === 'table'\">\r\n <thead>\r\n <tr>\r\n <th *ngFor=\"let col of input.cols\">{{ col.value }}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr [formArrayName]=\"iLine\"\r\n *ngFor=\"let fCol of form['controls'][i]['controls'][iInput]['controls']; index as iLine\">\r\n <td style=\"padding: 0; line-height: 35px;\" *ngFor=\"let col of input.cols; index as iCol\">\r\n <input style=\"padding: 8px; width: 100%; background: #FFF; border: none;\"\r\n [required]=\"iLine === 0\" [formControlName]=\"iCol\" type=\"text\"\r\n name=\"radio_{{iInput}}_{{iLine}}_{{iCol}}\" />\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <textarea [formControlName]=\"iInput\" *ngIf=\"input.type === 'text'\" class=\"form-control\"></textarea>\r\n </div>\r\n\r\n </ng-container>\r\n\r\n <div class=\"mt-4 text-center\" *ngIf=\"!blocked\">\r\n <ng-container *ngIf=\"form.controls[i].valid\">\r\n <button matStepperNext class=\"btn _btn-primary btn-sm\" *ngIf=\"item.steps.length !== (i+1)\"\r\n [style.color]=\"item.button.color\"\r\n [style.background-color]=\"item.button.background\">{{ 'SaveGoNext' | translate }}</button>\r\n <button (click)=\"onSubmit()\" class=\"btn _btn-primary btn-sm\" *ngIf=\"item.steps.length === (i+1)\"\r\n [disabled]=\"!isFormFilled\"\r\n [style.color]=\"item.button.color\"\r\n [style.background-color]=\"item.button.background\">{{ 'SaveFinish' | translate }}</button>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"!form.controls[i].valid\">\r\n <button (click)=\"showFormError()\" class=\"btn _btn-primary btn-sm\" *ngIf=\"item.steps.length !== (i+1)\"\r\n [style.color]=\"item.button.color\"\r\n [style.background-color]=\"item.button.background\">{{ 'SaveGoNext' | translate }}</button>\r\n <button (click)=\"showFormError()\" class=\"btn _btn-primary btn-sm\" *ngIf=\"item.steps.length === (i+1)\"\r\n [style.color]=\"item.button.color\"\r\n [style.background-color]=\"item.button.background\">{{ 'SaveFinish' | translate }}</button>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </mat-step>\r\n </mat-horizontal-stepper>\r\n </fieldset>\r\n <div class=\"text-center mt-4\" *ngIf=\"blocked\">\r\n <button (click)=\"goNext()\" class=\"btn _btn-primary btn-sm\" [style.color]=\"item.button.color\"\r\n [style.background-color]=\"item.button.background\"> {{ 'Next' | translate }}</button>\r\n </div>\r\n </form>\r\n</div>\r\n",
|
|
11950
|
-
providers: [TrailContentService],
|
|
11951
|
-
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}", ".fw-bold{font-weight:600}.marcadores{padding:10px;font-weight:600}.border-none{border:none}.conditional{border:1px solid #43425d}.conditional::before{content:\"Esse campo tem visibilidade condicional\";font-size:11px;background:#43425d;color:#fff;padding:4px 8px;position:relative;float:right}::ng-deep .mat-radio-label{white-space:normal!important}::ng-deep .mat-horizontal-content-container{overflow:hidden;padding:0!important}::ng-deep .mat-step-header:hover{background-color:transparent!important}::ng-deep .mat-step-header::ng-deep .cdk-program-focused{background-color:transparent!important}::ng-deep .mat-step-header::ng-deep .cdk-mouse-focused{background-color:transparent!important}::ng-deep .mat-step-header::ng-deep .cdk-focused{background-color:transparent!important}::ng-deep .theme-dark .enunciated{color:#ccc!important;margin-bottom:20px}"]
|
|
11952
|
-
}] }
|
|
11953
|
-
];
|
|
11954
|
-
/** @nocollapse */
|
|
11955
|
-
FormStepComponent.ctorParameters = function () { return [
|
|
11956
|
-
{ type: asapCrud.Global },
|
|
11957
|
-
{ type: TrailContentService },
|
|
11958
|
-
{ type: core$1.TranslateService }
|
|
11959
|
-
]; };
|
|
11960
|
-
FormStepComponent.propDecorators = {
|
|
11961
|
-
item: [{ type: core.Input }],
|
|
11962
|
-
id: [{ type: core.Input }],
|
|
11963
|
-
event: [{ type: core.Output }]
|
|
11964
13178
|
};
|
|
11965
|
-
return FormStepComponent;
|
|
11966
|
-
}());
|
|
11967
|
-
if (false) {
|
|
11968
|
-
/** @type {?} */
|
|
11969
|
-
FormStepComponent.prototype.item;
|
|
11970
|
-
/** @type {?} */
|
|
11971
|
-
FormStepComponent.prototype.id;
|
|
11972
|
-
/** @type {?} */
|
|
11973
|
-
FormStepComponent.prototype.event;
|
|
11974
|
-
/** @type {?} */
|
|
11975
|
-
FormStepComponent.prototype.blocked;
|
|
11976
|
-
/** @type {?} */
|
|
11977
|
-
FormStepComponent.prototype.contentId;
|
|
11978
|
-
/** @type {?} */
|
|
11979
|
-
FormStepComponent.prototype.form;
|
|
11980
13179
|
/**
|
|
11981
|
-
* @
|
|
11982
|
-
* @private
|
|
13180
|
+
* @return {?}
|
|
11983
13181
|
*/
|
|
11984
|
-
|
|
11985
|
-
|
|
11986
|
-
FormStepComponent.prototype._trailContentService;
|
|
11987
|
-
/**
|
|
11988
|
-
* @type {?}
|
|
11989
|
-
* @private
|
|
13182
|
+
EditorPdfComponent.prototype.resetZoom = /**
|
|
13183
|
+
* @return {?}
|
|
11990
13184
|
*/
|
|
11991
|
-
|
|
11992
|
-
|
|
11993
|
-
|
|
11994
|
-
|
|
11995
|
-
|
|
11996
|
-
|
|
11997
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11998
|
-
*/
|
|
11999
|
-
var EditorPdfComponent = /** @class */ (function () {
|
|
12000
|
-
function EditorPdfComponent(global, _trailContentService, translate, sanitizer) {
|
|
12001
|
-
this.global = global;
|
|
12002
|
-
this._trailContentService = _trailContentService;
|
|
12003
|
-
this.translate = translate;
|
|
12004
|
-
this.sanitizer = sanitizer;
|
|
12005
|
-
this.event = new core.EventEmitter();
|
|
12006
|
-
this.listMarkerLetter = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'x', 'z'];
|
|
12007
|
-
this.form = new forms.FormArray([]);
|
|
12008
|
-
}
|
|
13185
|
+
function () {
|
|
13186
|
+
if (this.zoomScale !== 1.0) {
|
|
13187
|
+
this.zoomScale = 1.0;
|
|
13188
|
+
this.renderAllPages();
|
|
13189
|
+
}
|
|
13190
|
+
};
|
|
12009
13191
|
/**
|
|
12010
13192
|
* @return {?}
|
|
12011
13193
|
*/
|
|
12012
|
-
EditorPdfComponent.prototype.
|
|
13194
|
+
EditorPdfComponent.prototype.retryLoadPdf = /**
|
|
12013
13195
|
* @return {?}
|
|
12014
13196
|
*/
|
|
12015
13197
|
function () {
|
|
12016
|
-
if (this.
|
|
12017
|
-
this.
|
|
12018
|
-
|
|
12019
|
-
|
|
12020
|
-
this.
|
|
13198
|
+
if (this.useNativeIframe) {
|
|
13199
|
+
this.reloadNativeIframe();
|
|
13200
|
+
}
|
|
13201
|
+
else {
|
|
13202
|
+
this.loadPdf(1);
|
|
12021
13203
|
}
|
|
12022
13204
|
};
|
|
12023
13205
|
/**
|
|
@@ -12045,7 +13227,6 @@
|
|
|
12045
13227
|
* @return {?}
|
|
12046
13228
|
*/
|
|
12047
13229
|
function (res) {
|
|
12048
|
-
console.log('EditorPdfComponent: getAnswer: res', res);
|
|
12049
13230
|
/** @type {?} */
|
|
12050
13231
|
var check = res.data.find((/**
|
|
12051
13232
|
* @param {?} item
|
|
@@ -12054,7 +13235,6 @@
|
|
|
12054
13235
|
function (item) {
|
|
12055
13236
|
return item.value.type === 'pdf';
|
|
12056
13237
|
}));
|
|
12057
|
-
console.log('EditorPdfComponent: getAnswer: check', check);
|
|
12058
13238
|
if (check) {
|
|
12059
13239
|
_this.contentId = check.id;
|
|
12060
13240
|
_this.accept = check.value;
|
|
@@ -12086,7 +13266,6 @@
|
|
|
12086
13266
|
type: 'pdf',
|
|
12087
13267
|
value: this.accept
|
|
12088
13268
|
};
|
|
12089
|
-
console.log('onSubmit: data', data);
|
|
12090
13269
|
if (this.contentId) {
|
|
12091
13270
|
this._trailContentService.update(this.contentId, data).subscribe((/**
|
|
12092
13271
|
* @param {?} res
|
|
@@ -12095,7 +13274,6 @@
|
|
|
12095
13274
|
function (res) {
|
|
12096
13275
|
_this.blocked = true;
|
|
12097
13276
|
_this.goNext();
|
|
12098
|
-
console.log('onSubmit: _trailContentService.update: res', res);
|
|
12099
13277
|
}));
|
|
12100
13278
|
}
|
|
12101
13279
|
else {
|
|
@@ -12107,7 +13285,6 @@
|
|
|
12107
13285
|
_this.contentId = res.data.id;
|
|
12108
13286
|
_this.blocked = true;
|
|
12109
13287
|
_this.goNext();
|
|
12110
|
-
console.log('onSubmit: _trailContentService.save: res', res);
|
|
12111
13288
|
}));
|
|
12112
13289
|
}
|
|
12113
13290
|
};
|
|
@@ -12152,9 +13329,9 @@
|
|
|
12152
13329
|
EditorPdfComponent.decorators = [
|
|
12153
13330
|
{ type: core.Component, args: [{
|
|
12154
13331
|
selector: 'app-editor-component-pdf',
|
|
12155
|
-
template: "<div class=\"p-5\" [ngStyle]=\"{ background: item.background}\">\
|
|
13332
|
+
template: "<div class=\"p-5\" [ngStyle]=\"{ background: item.background}\">\n <app-editor-component-shared-title [title]=\"item.title\"></app-editor-component-shared-title>\n\n <app-editor-component-shared-subtitle [subtitle]=\"item.subTitle\"></app-editor-component-shared-subtitle>\n\n <div class=\"item-component-pdf-icon-container\" *ngIf=\"!item?.url || item.url == ''\">\n <i class=\"material-icons\">picture_as_pdf</i>\n </div>\n\n <div class=\"pdf-viewer-shell\" *ngIf=\"item?.url\" (contextmenu)=\"$event.preventDefault()\">\n <!-- Barra de visualiza\u00E7\u00E3o limpa (modo PDF.js em canvas) -->\n <div class=\"pdf-toolbar\" *ngIf=\"!useNativeIframe && !isLoadingPdf && !pdfError && totalPages > 0\">\n <div class=\"pdf-toolbar-info\">\n <span>{{ totalPages }} {{ totalPages === 1 ? 'p\u00E1gina' : 'p\u00E1ginas' }}</span>\n </div>\n <div class=\"pdf-toolbar-zoom\">\n <button type=\"button\" class=\"pdf-zoom-btn\" (click)=\"zoomOut()\" [disabled]=\"zoomScale <= 0.6\" title=\"Diminuir zoom\">\u2212</button>\n <button type=\"button\" class=\"pdf-zoom-value\" (click)=\"resetZoom()\" title=\"Restaurar zoom\">{{ (zoomScale * 100) | number:'1.0-0' }}%</button>\n <button type=\"button\" class=\"pdf-zoom-btn\" (click)=\"zoomIn()\" [disabled]=\"zoomScale >= 2.0\" title=\"Aumentar zoom\">+</button>\n </div>\n </div>\n\n <!-- Barra de visualiza\u00E7\u00E3o limpa (modo iframe nativo direto sem Google Viewer) -->\n <div class=\"pdf-toolbar\" *ngIf=\"useNativeIframe\">\n <div class=\"pdf-toolbar-info\">\n <span>Visualiza\u00E7\u00E3o do documento</span>\n </div>\n <div class=\"pdf-toolbar-zoom\">\n <button type=\"button\" class=\"pdf-zoom-value\" (click)=\"reloadNativeIframe()\" title=\"Recarregar documento\">\n Recarregar documento\n </button>\n </div>\n </div>\n\n <!-- Estado de Carregamento -->\n <div class=\"pdf-state-box\" *ngIf=\"isLoadingPdf\">\n <div class=\"pdf-spinner\"></div>\n <p class=\"pdf-state-text\">Carregando documento...</p>\n </div>\n\n <!-- Estado de Erro com Bot\u00E3o de Recarregar -->\n <div class=\"pdf-state-box\" *ngIf=\"pdfError && !isLoadingPdf\">\n <i class=\"material-icons pdf-error-icon\">error_outline</i>\n <p class=\"pdf-state-text\">{{ pdfErrorMessage }}</p>\n <button type=\"button\" class=\"pdf-retry-btn\" (click)=\"retryLoadPdf()\">\n <i class=\"material-icons\">refresh</i>\n Recarregar documento\n </button>\n </div>\n\n <!-- Container de P\u00E1ginas Renderizadas em Canvas (quando CORS permite) -->\n <div #pdfCanvasContainer class=\"pdf-canvas-container\" [hidden]=\"useNativeIframe || isLoadingPdf || pdfError\"></div>\n\n <!-- Fallback Iframe Nativo Direto (sem Google Drive Viewer e sem toolbar de download) -->\n <iframe *ngIf=\"useNativeIframe && safeNativePdfUrl\"\n class=\"pdf-native-iframe\"\n [src]=\"safeNativePdfUrl\"\n frameborder=\"0\">\n </iframe>\n </div>\n\n <div class=\"mb-5 mt-3\" *ngIf=\"item.showAccept\">\n <fieldset [disabled]=\"blocked\">\n <mat-checkbox class=\"mat-checkbox-label\" name=\"showAccept\" [matTooltip]=\"item.acceptText\" [(ngModel)]=\"accept\">{{ item.acceptText }}\n </mat-checkbox>\n </fieldset>\n </div>\n\n <div class=\"btn-container my-4\">\n <button *ngIf=\"item.acceptText\" class=\"btn\" id=\"pdf-next\" [disabled]=\"!accept\"\n [ngStyle]=\"{color: item.button.color, background: item.button.background}\"\n (click)=\"onSubmitWithWarning()\">\n {{ item.button.text }}\n </button>\n\n <app-editor-component-shared-button [button]=\"item.button\" (event)=\"goNext()\" *ngIf=\"!item.acceptText\"></app-editor-component-shared-button>\n </div>\n\n</div>\n",
|
|
12156
13333
|
providers: [TrailContentService],
|
|
12157
|
-
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}", ".desktop{display:block}.mobile{display:none}@media (max-width:767px){.desktop{display:none}.mobile{display:flex;align-items:center;justify-content:center;flex-direction:column;height:150px;background:#f1f1f1;color:#666;padding:15px;font-size:1em;cursor:pointer}.fs-50{font-size:50px}}::ng-deep .mat-checkbox-label{white-space:pre-line!important}"]
|
|
13334
|
+
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}", ".desktop{display:block}.mobile{display:none}.pdf-viewer-shell{width:100%;border:1px solid #e2e8f0;border-radius:8px;background:#f1f5f9;overflow:hidden;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.pdf-toolbar{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;background:#1e293b;color:#f8fafc;font-size:13px;font-weight:500}.pdf-toolbar-zoom{display:flex;align-items:center;gap:6px}.pdf-zoom-btn,.pdf-zoom-value{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.2);border-radius:6px;padding:3px 10px;font-size:13px;font-weight:600;cursor:pointer;transition:background-color .15s}.pdf-zoom-btn:hover:not(:disabled),.pdf-zoom-value:hover{background:rgba(255,255,255,.24)}.pdf-zoom-btn:disabled{opacity:.4;cursor:not-allowed}.pdf-canvas-container{width:100%;height:620px;overflow:auto;padding:16px;display:flex;flex-direction:column;align-items:center;gap:16px;background:#e2e8f0;box-sizing:border-box}:host ::ng-deep .pdf-page-wrapper{display:flex;justify-content:center;flex-shrink:0}:host ::ng-deep .pdf-page-canvas{display:block;background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.15);border-radius:4px}.pdf-state-box{height:420px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;text-align:center;background:#f8fafc}.pdf-spinner{width:44px;height:44px;border:4px solid #cbd5e1;border-top-color:#334155;border-radius:50%;-webkit-animation:.85s linear infinite asap-pdf-spin;animation:.85s linear infinite asap-pdf-spin}@-webkit-keyframes asap-pdf-spin{to{transform:rotate(360deg)}}@keyframes asap-pdf-spin{to{transform:rotate(360deg)}}.pdf-error-icon{font-size:44px;color:#dc2626}.pdf-state-text{margin:0;color:#334155;font-size:15px;font-weight:500;max-width:380px}.pdf-retry-btn{display:inline-flex;align-items:center;gap:6px;padding:9px 18px;border:none;border-radius:8px;background:#1e293b;color:#fff;font-size:14px;font-weight:600;cursor:pointer;transition:background-color .2s,transform .15s}.pdf-retry-btn:hover{background:#0f172a;transform:translateY(-1px)}.pdf-retry-btn .material-icons{font-size:18px}@media (max-width:767px){.desktop{display:none}.mobile{display:flex;align-items:center;justify-content:center;flex-direction:column;height:150px;background:#f1f1f1;color:#666;padding:15px;font-size:1em;cursor:pointer}.fs-50{font-size:50px}.pdf-canvas-container{height:500px;padding:10px}}::ng-deep .mat-checkbox-label{white-space:pre-line!important}.pdf-native-iframe{width:100%;height:620px;border:none;display:block;background:#fff}"]
|
|
12158
13335
|
}] }
|
|
12159
13336
|
];
|
|
12160
13337
|
/** @nocollapse */
|
|
@@ -12162,12 +13339,14 @@
|
|
|
12162
13339
|
{ type: asapCrud.Global },
|
|
12163
13340
|
{ type: TrailContentService },
|
|
12164
13341
|
{ type: core$1.TranslateService },
|
|
12165
|
-
{ type: platformBrowser.DomSanitizer }
|
|
13342
|
+
{ type: platformBrowser.DomSanitizer },
|
|
13343
|
+
{ type: core.ChangeDetectorRef }
|
|
12166
13344
|
]; };
|
|
12167
13345
|
EditorPdfComponent.propDecorators = {
|
|
12168
13346
|
item: [{ type: core.Input }],
|
|
12169
13347
|
id: [{ type: core.Input }],
|
|
12170
|
-
event: [{ type: core.Output }]
|
|
13348
|
+
event: [{ type: core.Output }],
|
|
13349
|
+
pdfCanvasContainer: [{ type: core.ViewChild, args: ['pdfCanvasContainer', { static: false },] }]
|
|
12171
13350
|
};
|
|
12172
13351
|
return EditorPdfComponent;
|
|
12173
13352
|
}());
|
|
@@ -12179,7 +13358,7 @@
|
|
|
12179
13358
|
/** @type {?} */
|
|
12180
13359
|
EditorPdfComponent.prototype.event;
|
|
12181
13360
|
/** @type {?} */
|
|
12182
|
-
EditorPdfComponent.prototype.
|
|
13361
|
+
EditorPdfComponent.prototype.pdfCanvasContainer;
|
|
12183
13362
|
/** @type {?} */
|
|
12184
13363
|
EditorPdfComponent.prototype.contentId;
|
|
12185
13364
|
/** @type {?} */
|
|
@@ -12190,6 +13369,65 @@
|
|
|
12190
13369
|
EditorPdfComponent.prototype.listMarkerLetter;
|
|
12191
13370
|
/** @type {?} */
|
|
12192
13371
|
EditorPdfComponent.prototype.accept;
|
|
13372
|
+
/** @type {?} */
|
|
13373
|
+
EditorPdfComponent.prototype.isLoadingPdf;
|
|
13374
|
+
/** @type {?} */
|
|
13375
|
+
EditorPdfComponent.prototype.pdfError;
|
|
13376
|
+
/** @type {?} */
|
|
13377
|
+
EditorPdfComponent.prototype.pdfErrorMessage;
|
|
13378
|
+
/** @type {?} */
|
|
13379
|
+
EditorPdfComponent.prototype.totalPages;
|
|
13380
|
+
/** @type {?} */
|
|
13381
|
+
EditorPdfComponent.prototype.zoomScale;
|
|
13382
|
+
/** @type {?} */
|
|
13383
|
+
EditorPdfComponent.prototype.useNativeIframe;
|
|
13384
|
+
/** @type {?} */
|
|
13385
|
+
EditorPdfComponent.prototype.safeNativePdfUrl;
|
|
13386
|
+
/**
|
|
13387
|
+
* @type {?}
|
|
13388
|
+
* @private
|
|
13389
|
+
*/
|
|
13390
|
+
EditorPdfComponent.prototype.iframeReloadCounter;
|
|
13391
|
+
/**
|
|
13392
|
+
* @type {?}
|
|
13393
|
+
* @private
|
|
13394
|
+
*/
|
|
13395
|
+
EditorPdfComponent.prototype.pdfDoc;
|
|
13396
|
+
/**
|
|
13397
|
+
* @type {?}
|
|
13398
|
+
* @private
|
|
13399
|
+
*/
|
|
13400
|
+
EditorPdfComponent.prototype.renderGeneration;
|
|
13401
|
+
/**
|
|
13402
|
+
* @type {?}
|
|
13403
|
+
* @private
|
|
13404
|
+
*/
|
|
13405
|
+
EditorPdfComponent.prototype.isDestroyed;
|
|
13406
|
+
/**
|
|
13407
|
+
* @type {?}
|
|
13408
|
+
* @private
|
|
13409
|
+
*/
|
|
13410
|
+
EditorPdfComponent.prototype.retryTimer;
|
|
13411
|
+
/**
|
|
13412
|
+
* @type {?}
|
|
13413
|
+
* @private
|
|
13414
|
+
*/
|
|
13415
|
+
EditorPdfComponent.prototype.PDFJS_CDN_PRIMARY;
|
|
13416
|
+
/**
|
|
13417
|
+
* @type {?}
|
|
13418
|
+
* @private
|
|
13419
|
+
*/
|
|
13420
|
+
EditorPdfComponent.prototype.PDFJS_WORKER_PRIMARY;
|
|
13421
|
+
/**
|
|
13422
|
+
* @type {?}
|
|
13423
|
+
* @private
|
|
13424
|
+
*/
|
|
13425
|
+
EditorPdfComponent.prototype.PDFJS_CDN_FALLBACK;
|
|
13426
|
+
/**
|
|
13427
|
+
* @type {?}
|
|
13428
|
+
* @private
|
|
13429
|
+
*/
|
|
13430
|
+
EditorPdfComponent.prototype.PDFJS_WORKER_FALLBACK;
|
|
12193
13431
|
/**
|
|
12194
13432
|
* @type {?}
|
|
12195
13433
|
* @private
|
|
@@ -12204,6 +13442,11 @@
|
|
|
12204
13442
|
EditorPdfComponent.prototype.translate;
|
|
12205
13443
|
/** @type {?} */
|
|
12206
13444
|
EditorPdfComponent.prototype.sanitizer;
|
|
13445
|
+
/**
|
|
13446
|
+
* @type {?}
|
|
13447
|
+
* @private
|
|
13448
|
+
*/
|
|
13449
|
+
EditorPdfComponent.prototype.cdr;
|
|
12207
13450
|
}
|
|
12208
13451
|
|
|
12209
13452
|
/**
|