asap-viewer 12.6.29 → 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.
@@ -5046,8 +5046,22 @@
5046
5046
  this.timeLapse = 0;
5047
5047
  this.disableNextButton = false;
5048
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;
5049
5064
  this.loadYT();
5050
- console.log("ITEM:", this.item);
5051
5065
  }
5052
5066
  /**
5053
5067
  * @return {?}
@@ -5114,6 +5128,82 @@
5114
5128
  }
5115
5129
  }
5116
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
+ };
5117
5207
  /**
5118
5208
  * @param {?} changes
5119
5209
  * @return {?}
@@ -5124,6 +5214,7 @@
5124
5214
  */
5125
5215
  function (changes) {
5126
5216
  if (changes['id'] || changes['item']) {
5217
+ this.resetPlayerState();
5127
5218
  this.disableNextButton = this.isAllowNext();
5128
5219
  this.loadPosterIfEmpty();
5129
5220
  this.loadOfflineVideo();
@@ -5148,10 +5239,8 @@
5148
5239
  case 1:
5149
5240
  isDownloaded = _a.sent();
5150
5241
  if (!isDownloaded) return [3 /*break*/, 3];
5151
- if (this.videoMonitor) {
5152
- clearInterval(this.videoMonitor);
5153
- }
5154
- this.player = null;
5242
+ this.clearAllTimers();
5243
+ this.destroyExternalPlayer();
5155
5244
  return [4 /*yield*/, this.offlineService.getOfflineVideoUrl(this.id)];
5156
5245
  case 2:
5157
5246
  url = _a.sent();
@@ -5173,7 +5262,7 @@
5173
5262
  }
5174
5263
  return [2 /*return*/];
5175
5264
  case 3:
5176
- if (this.item && this.item.source !== 'stream' && !this.offlineUrl && navigator.onLine) {
5265
+ if (this.item && (this.isVimeoSource() || this.isYoutubeSource()) && !this.offlineUrl && navigator.onLine) {
5177
5266
  this.initOnlinePlayer();
5178
5267
  }
5179
5268
  return [2 /*return*/];
@@ -5304,6 +5393,7 @@
5304
5393
  iframe = (/** @type {?} */ (document.querySelector('#iframe_vimeo')));
5305
5394
  if (iframe && window['Vimeo']) {
5306
5395
  try {
5396
+ this.destroyExternalPlayer();
5307
5397
  this.player = new window['Vimeo'].Player(iframe);
5308
5398
  this.player.ready().then((/**
5309
5399
  * @return {?}
@@ -5312,11 +5402,22 @@
5312
5402
  /** @type {?} */
5313
5403
  var startTime = _this.getStartTime();
5314
5404
  if (startTime > 0) {
5315
- _this.player.setCurrentTime(startTime).catch((/**
5316
- * @param {?} err
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((/**
5317
5418
  * @return {?}
5318
5419
  */
5319
- function (err) { return console.error('[VideoComponent] Erro ao setar start time no Vimeo:', err); }));
5420
+ function () { }));
5320
5421
  }
5321
5422
  }));
5322
5423
  this.player.on('play', (/**
@@ -5324,6 +5425,8 @@
5324
5425
  */
5325
5426
  function () {
5326
5427
  _this.isVimeoPlaying = true;
5428
+ _this.isVimeoBuffering = false;
5429
+ _this.hasVimeoError = false;
5327
5430
  _this.cdr.detectChanges();
5328
5431
  }));
5329
5432
  this.player.on('pause', (/**
@@ -5331,6 +5434,32 @@
5331
5434
  */
5332
5435
  function () {
5333
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;
5334
5463
  _this.cdr.detectChanges();
5335
5464
  }));
5336
5465
  this.player.on('timeupdate', (/**
@@ -5351,6 +5480,8 @@
5351
5480
  progress: videoProgress,
5352
5481
  id: _this.id
5353
5482
  };
5483
+ _this.isVimeoBuffering = false;
5484
+ _this.hasVimeoError = false;
5354
5485
  if (_this.isAllowNext()) {
5355
5486
  if (videoProgress >= 95) {
5356
5487
  _this.disableNextButton = false;
@@ -5368,6 +5499,7 @@
5368
5499
  */
5369
5500
  function () {
5370
5501
  _this.isVimeoPlaying = false;
5502
+ _this.isVimeoBuffering = false;
5371
5503
  _this.disableNextButton = false;
5372
5504
  _this.videoTime.emit({
5373
5505
  current: 100,
@@ -5409,6 +5541,7 @@
5409
5541
  var divPlayer = document.getElementById('video_player');
5410
5542
  if (divPlayer && !_this.player && !_this.offlineUrl) {
5411
5543
  clearInterval(_this.videoMonitor);
5544
+ _this.videoMonitor = null;
5412
5545
  if (_this.item.source === 'youtube' || _this.isYoutubeSource()) {
5413
5546
  if (!_this.item.poster) {
5414
5547
  _this.playYoutubeVideo();
@@ -5419,7 +5552,7 @@
5419
5552
  _this.initVimeoPlayer();
5420
5553
  }
5421
5554
  }
5422
- }), 1000);
5555
+ }), 500);
5423
5556
  };
5424
5557
  /**
5425
5558
  * @return {?}
@@ -5509,16 +5642,31 @@
5509
5642
  */
5510
5643
  function () {
5511
5644
  var _this = this;
5512
- console.log('VideoComponent: CONTENT ->', this.content);
5513
- console.log('VideoComponent: ITEM ->', this.item);
5514
5645
  this.disableNextButton = this.isAllowNext();
5515
5646
  this.loadPosterIfEmpty();
5516
- this.offlineService.isOnline$.subscribe((/**
5647
+ this.onlineSub = this.offlineService.isOnline$.subscribe((/**
5517
5648
  * @param {?} online
5518
5649
  * @return {?}
5519
5650
  */
5520
5651
  function (online) {
5652
+ /** @type {?} */
5653
+ var wasOffline = !_this.isOnline;
5521
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
+ }
5522
5670
  }));
5523
5671
  this.loadOfflineVideo();
5524
5672
  if (this.id) {
@@ -5533,7 +5681,6 @@
5533
5681
  * @return {?}
5534
5682
  */
5535
5683
  function (res) {
5536
- console.log('RESPONSE', res);
5537
5684
  /** @type {?} */
5538
5685
  var check = res.data.find((/**
5539
5686
  * @param {?} item
@@ -5562,8 +5709,10 @@
5562
5709
  * @return {?}
5563
5710
  */
5564
5711
  function () {
5565
- if (this.timeLapseTimer) {
5566
- clearInterval(this.timeLapseTimer);
5712
+ this.clearAllTimers();
5713
+ this.destroyExternalPlayer();
5714
+ if (this.onlineSub) {
5715
+ this.onlineSub.unsubscribe();
5567
5716
  }
5568
5717
  };
5569
5718
  /**
@@ -5590,7 +5739,6 @@
5590
5739
  'start': Math.floor(startTime),
5591
5740
  'controls': (this.item && this.item.showVideoControl) ? 1 : 0,
5592
5741
  'showinfo': 0,
5593
- // <- This part here
5594
5742
  'playsinline': 1,
5595
5743
  'enablejsapi': 1,
5596
5744
  'poster': this.item ? this.item.poster : null,
@@ -5664,7 +5812,7 @@
5664
5812
  'notes': this.notes
5665
5813
  };
5666
5814
  this.showSaved = true;
5667
- setInterval((/**
5815
+ setTimeout((/**
5668
5816
  * @return {?}
5669
5817
  */
5670
5818
  function () {
@@ -5707,208 +5855,658 @@
5707
5855
  function () {
5708
5856
  this.event.emit();
5709
5857
  };
5858
+ // ==================== HTML5 VIDEO HANDLERS & RECOVERY ====================
5859
+ // ==================== HTML5 VIDEO HANDLERS & RECOVERY ====================
5710
5860
  /**
5711
- * @param {?} data
5861
+ * @private
5712
5862
  * @return {?}
5713
5863
  */
5714
- VideoComponent.prototype.setCurrentTime = /**
5715
- * @param {?} data
5864
+ VideoComponent.prototype.getHtml5VideoElement =
5865
+ // ==================== HTML5 VIDEO HANDLERS & RECOVERY ====================
5866
+ /**
5867
+ * @private
5716
5868
  * @return {?}
5717
5869
  */
5718
- function (data) {
5719
- console.log(data);
5720
- /** @type {?} */
5721
- var seconds = this.formatTime(data.target.currentTime);
5722
- this.currentTime = data.target.currentTime;
5723
- /** @type {?} */
5724
- var time = {
5725
- current: Math.round(data.target.currentTime),
5726
- duration: Math.round(data.target.duration),
5727
- progress: Math.round((data.target.currentTime / data.target.duration) * 100)
5728
- };
5729
- /** @type {?} */
5730
- var videoProgress = Math.round((time.current / time.duration) * 100);
5731
- if (this.isAllowNext()) {
5732
- this.disableNextButton = (videoProgress < 90);
5733
- }
5734
- else {
5735
- this.disableNextButton = false;
5736
- }
5737
- this.videoTime.emit(time);
5738
- this.seconds = seconds;
5739
- this.saveLocalTime(data.target.currentTime);
5870
+ function () {
5871
+ return (this.video && this.video.nativeElement) ? ((/** @type {?} */ (this.video.nativeElement))) : null;
5740
5872
  };
5741
5873
  /**
5742
- * @param {?} event
5874
+ * @private
5743
5875
  * @return {?}
5744
5876
  */
5745
- VideoComponent.prototype.onLoadedMetadata = /**
5746
- * @param {?} event
5877
+ VideoComponent.prototype.startStallWatchdog = /**
5878
+ * @private
5747
5879
  * @return {?}
5748
5880
  */
5749
- function (event) {
5750
- /** @type {?} */
5751
- var startTime = this.getStartTime();
5752
- if (startTime > 0) {
5753
- event.target.currentTime = startTime;
5881
+ function () {
5882
+ var _this = this;
5883
+ if (this.stallWatchdogTimer) {
5884
+ clearInterval(this.stallWatchdogTimer);
5754
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);
5755
5923
  };
5756
5924
  /**
5757
5925
  * @return {?}
5758
5926
  */
5759
- VideoComponent.prototype.getStartTime = /**
5927
+ VideoComponent.prototype.onVideoPlaying = /**
5760
5928
  * @return {?}
5761
5929
  */
5762
5930
  function () {
5763
- /** @type {?} */
5764
- var time = 0;
5765
- if (this.content && this.content.video_time) {
5766
- time = Number(this.content.video_time);
5767
- }
5768
- else if (this.content && this.content.time) {
5769
- time = Number(this.content.time);
5931
+ if (this.recoveryTimeoutTimer) {
5932
+ clearTimeout(this.recoveryTimeoutTimer);
5933
+ this.recoveryTimeoutTimer = null;
5770
5934
  }
5771
- /** @type {?} */
5772
- var localTime = localStorage.getItem('video_time_step_' + this.id);
5773
- if (localTime && Number(localTime) > time) {
5774
- time = Number(localTime);
5935
+ if (this.retryDelayTimer) {
5936
+ clearTimeout(this.retryDelayTimer);
5937
+ this.retryDelayTimer = null;
5775
5938
  }
5776
- return time;
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();
5777
5949
  };
5778
5950
  /**
5779
- * @param {?} time
5780
5951
  * @return {?}
5781
5952
  */
5782
- VideoComponent.prototype.saveLocalTime = /**
5783
- * @param {?} time
5953
+ VideoComponent.prototype.onVideoPause = /**
5784
5954
  * @return {?}
5785
5955
  */
5786
- function (time) {
5787
- if (time > 0) {
5788
- localStorage.setItem('video_time_step_' + this.id, time.toString());
5956
+ function () {
5957
+ if (this.isRecovering || this.shouldAutoResume) {
5958
+ return;
5789
5959
  }
5960
+ this.isHtml5Playing = false;
5961
+ this.isHtml5Paused = true;
5962
+ this.isBuffering = false;
5963
+ this.cdr.detectChanges();
5790
5964
  };
5791
5965
  /**
5792
- * @param {?} seconds
5793
5966
  * @return {?}
5794
5967
  */
5795
- VideoComponent.prototype.formatTime = /**
5796
- * @param {?} seconds
5968
+ VideoComponent.prototype.onVideoWaiting = /**
5797
5969
  * @return {?}
5798
5970
  */
5799
- function (seconds) {
5800
- /** @type {?} */
5801
- var second = Math.floor(seconds % 60);
5802
- second = (second >= 10) ? second : '0' + second;
5803
- return seconds.toFixed(0);
5971
+ function () {
5972
+ if (this.hasVideoError) {
5973
+ return;
5974
+ }
5975
+ this.isBuffering = true;
5976
+ this.cdr.detectChanges();
5804
5977
  };
5805
5978
  /**
5806
- * @param {?} item
5807
5979
  * @return {?}
5808
5980
  */
5809
- VideoComponent.prototype.getThumb = /**
5810
- * @param {?} item
5981
+ VideoComponent.prototype.onVideoStalled = /**
5811
5982
  * @return {?}
5812
5983
  */
5813
- function (item) {
5984
+ function () {
5814
5985
  /** @type {?} */
5815
- var url = item.changingThisBreaksApplicationSecurity.split('/');
5816
- return this.sanitizer.bypassSecurityTrustResourceUrl('https://api.sr02.twcreativs.stream/videos/thumb/' + url[4]);
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();
5817
5992
  };
5818
5993
  /**
5819
5994
  * @return {?}
5820
5995
  */
5821
- VideoComponent.prototype.goPlay = /**
5996
+ VideoComponent.prototype.onVideoCanPlay = /**
5822
5997
  * @return {?}
5823
5998
  */
5824
5999
  function () {
5825
- var _this = this;
5826
- console.log('PLAY');
5827
- this.play = true;
5828
- setTimeout((/**
5829
- * @return {?}
5830
- */
5831
- function () {
5832
- _this.video.nativeElement.play();
5833
- }), 1);
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();
5834
6014
  };
5835
6015
  /**
5836
- * @param {?} url
5837
6016
  * @return {?}
5838
6017
  */
5839
- VideoComponent.prototype.getYoutubeID = /**
5840
- * @param {?} url
6018
+ VideoComponent.prototype.onVideoSeeked = /**
5841
6019
  * @return {?}
5842
6020
  */
5843
- function (url) {
5844
- console.log('getYoutubeID url', url);
5845
- if (url) {
5846
- /** @type {?} */
5847
- var urlText = url.changingThisBreaksApplicationSecurity;
6021
+ function () {
6022
+ if (this.shouldAutoResume || this.isRecovering) {
5848
6023
  /** @type {?} */
5849
- var urlResult = '';
5850
- if (urlText.indexOf('embed') >= 0) {
5851
- urlResult = urlText.split('embed/')[1].split('?')[0];
5852
- }
5853
- else {
5854
- urlResult = url.changingThisBreaksApplicationSecurity.split('=')[1];
6024
+ var videoEl = this.getHtml5VideoElement();
6025
+ if (videoEl && videoEl.paused) {
6026
+ this.safePlayHtml5(videoEl);
5855
6027
  }
5856
- console.log('getYoutubeID ->', urlResult);
5857
- return urlResult;
5858
6028
  }
5859
6029
  };
5860
6030
  /**
5861
- * @param {?} url
5862
6031
  * @return {?}
5863
6032
  */
5864
- VideoComponent.prototype.youtubeParserID = /**
5865
- * @param {?} url
6033
+ VideoComponent.prototype.onVideoEnded = /**
5866
6034
  * @return {?}
5867
6035
  */
5868
- function (url) {
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
+ }
5869
6045
  /** @type {?} */
5870
- var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/;
6046
+ var videoEl = this.getHtml5VideoElement();
5871
6047
  /** @type {?} */
5872
- var match = url.match(regExp);
5873
- return (match && match[7].length == 11) ? match[7] : false;
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();
5874
6056
  };
5875
6057
  /**
5876
- * @param {?} url
6058
+ * @param {?} event
5877
6059
  * @return {?}
5878
6060
  */
5879
- VideoComponent.prototype.getVimeoID = /**
5880
- * @param {?} url
6061
+ VideoComponent.prototype.onVideoError = /**
6062
+ * @param {?} event
5881
6063
  * @return {?}
5882
6064
  */
5883
- function (url) {
5884
- if (!url) {
5885
- return '';
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;
5886
6079
  }
5887
- if (typeof url !== 'string') {
5888
- url = String(url);
6080
+ if (this.retryDelayTimer) {
6081
+ clearTimeout(this.retryDelayTimer);
5889
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; }
5890
6101
  /** @type {?} */
5891
- var regExp = /(?:vimeo\.com\/video\/|vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/[^\/]*\/videos\/|album\/\d+\/video\/|)|player\.vimeo\.com\/video\/)(\d+)/;
5892
- /** @type {?} */
5893
- var match = url.match(regExp);
5894
- if (match && match[1]) {
5895
- return match[1];
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++;
5896
6135
  }
5897
6136
  /** @type {?} */
5898
- var fallback = /vimeo.*?(\d{7,12})/;
5899
- /** @type {?} */
5900
- var fallbackMatch = url.match(fallback);
5901
- return (fallbackMatch && fallbackMatch[1]) ? fallbackMatch[1] : '';
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
+ }
5902
6172
  };
5903
6173
  /**
6174
+ * @private
6175
+ * @param {?} videoEl
5904
6176
  * @return {?}
5905
6177
  */
5906
- VideoComponent.prototype.toggleVimeoPlay = /**
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 = /**
5907
6484
  * @return {?}
5908
6485
  */
5909
6486
  function () {
5910
6487
  var _this = this;
5911
- if (this.player && typeof this.player.getPaused === 'function') {
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') {
5912
6510
  this.player.getPaused().then((/**
5913
6511
  * @param {?} paused
5914
6512
  * @return {?}
@@ -5940,9 +6538,9 @@
5940
6538
  VideoComponent.decorators = [
5941
6539
  { type: core.Component, args: [{
5942
6540
  selector: 'app-editor-component-video',
5943
- template: "<div class=\"p-4\" [ngStyle]=\"{'background': item.background}\">\r\n <app-editor-component-shared-title [title]=\"item.title\"></app-editor-component-shared-title>\r\n\r\n <app-editor-component-shared-subtitle [subtitle]=\"item.subTitle\"></app-editor-component-shared-subtitle>\r\n\r\n <div class=\"col-md-12\" class=\"stage-video\">\r\n\r\n <div class=\"row\">\r\n <div class=\"col-sm-12\">\r\n <div class=\"item-component-image-icon-container\" *ngIf=\"!item.source_path && !offlineUrl\">\r\n <img src=\"https://image.flaticon.com/icons/svg/1376/1376786.svg\" width=\"15%\" alt=\"\">\r\n <h3>{{ 'VideoNotCurrentlyAvailableComeBackLaterAndTryAgain' | translate }}</h3>\r\n </div>\r\n <div *ngIf=\"item.source_path || offlineUrl\">\r\n\r\n <!-- Player Offline Local -->\r\n <div class=\"media\" *ngIf=\"offlineUrl\">\r\n <video class=\"video\" controls controlsList=\"nodownload\" [src]=\"offlineUrl\" #video\r\n (timeupdate)=\"setCurrentTime($event)\" (loadedmetadata)=\"onLoadedMetadata($event)\" style=\"width: 100%; min-height: 380px; max-height: 540px; background: #000; border-radius: 8px;\">\r\n {{ 'YourBrowserDoesNotSupportHTML5Video' | translate }}\r\n </video>\r\n </div>\r\n\r\n <!-- Aviso de V\u00EDdeo Vimeo/Embed quando offline sem bin\u00E1rio direto -->\r\n <div class=\"alert alert-info my-3 text-center\" *ngIf=\"!offlineUrl && !isOnline && (item.source == 'vimeo' || item.source == 'youtube')\" style=\"border-radius: 12px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; padding: 20px;\">\r\n <i class=\"material-icons\" style=\"font-size: 32px; color: #16a34a; vertical-align: middle;\">offline_pin</i>\r\n <h5 class=\"mt-2 mb-1\" style=\"font-weight: 700;\">Aula Salva no Modo Offline</h5>\r\n <p class=\"mb-0\" style=\"font-size: 0.85rem; color: #15803d;\">\r\n A estrutura, etapas e progresso desta aula est\u00E3o armazenados localmente no seu dispositivo.\r\n <br><em>(Os players embutidos do Vimeo/YouTube funcionam com conex\u00E3o ou quando o link direto de v\u00EDdeo MP4/Stream for provido pela plataforma).</em>\r\n </p>\r\n </div>\r\n\r\n <div class=\"media\" *ngIf=\"['stream','cloudinary'].includes(item.source) && !isVimeoSource() && !isYoutubeSource() && !offlineUrl\">\r\n\r\n <div *ngIf=\"!play\" class=\"cover-video\"\r\n [style.backgroundImage]=\"(item.poster ? ('url(' + item.poster + ')' | safeUrl:'style') : false) || (item.source_path | stream:'styleThumbUrl')\">\r\n <div class=\"filter\"></div>\r\n\r\n <div *ngIf=\"!play\" class=\"real-cover\"\r\n [style.backgroundImage]=\"(item.poster ? ('url(' + item.poster + ')' | safeUrl:'style') : false) || (item.source_path | stream:'styleThumbUrl')\">\r\n </div>\r\n\r\n <div class=\"icon-play\" (click)=\"goPlay()\" role=\"button\" aria-label=\"Reproduzir v\u00EDdeo\">\r\n <svg class=\"play-svg\" viewBox=\"0 0 24 24\">\r\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\"/>\r\n </svg>\r\n </div>\r\n </div>\r\n\r\n <ng-container *ngIf=\"play\">\r\n <video class=\"video\" *ngIf=\"item.showVideoControl\" controls controlsList=\"nodownload\" #video\r\n (timeupdate)=\"setCurrentTime($event)\" (loadedmetadata)=\"onLoadedMetadata($event)\" onclick=\"this.paused ? this.play() : this.pause();\">\r\n <source [src]=\"item.source_path | stream:'link'\" type=\"video/mp4\">\r\n {{ 'YourBrowserDoesNotSupportHTML5Video' | translate }}\r\n </video>\r\n\r\n <video class=\"video\" *ngIf=\"!item.showVideoControl || item.showVideoControl == 'undefined'\"\r\n controlsList=\"nodownload\" #video (timeupdate)=\"setCurrentTime($event)\" (loadedmetadata)=\"onLoadedMetadata($event)\"\r\n onclick=\"this.paused ? this.play() : this.pause();\">\r\n <source [src]=\"item.source_path | stream:'link'\" type=\"video/mp4\">\r\n {{ 'YourBrowserDoesNotSupportHTML5Video' | translate }}\r\n </video>\r\n </ng-container>\r\n\r\n </div>\r\n\r\n <div class=\"media\" *ngIf=\"item.source === 'file' && !isVimeoSource() && !isYoutubeSource() && !offlineUrl\">\r\n <video class=\"video\" *ngIf=\"item.showVideoControl\" controls=\"true\" controlsList=\"nodownload\"\r\n poster=\"{{ item.source_path | stream:'thumb' }}\" #video (timeupdate)=\"setCurrentTime($event)\" (loadedmetadata)=\"onLoadedMetadata($event)\">\r\n <source [src]=\"item.link\" type=\"video/mp4\">\r\n {{ 'YourBrowserDoesNotSupportHTML5Video' | translate }}\r\n </video>\r\n\r\n <video class=\"video\" *ngIf=\"!item.showVideoControl || item.showVideoControl == 'undefined'\"\r\n poster=\"{{ item.source_path | stream:'thumb' }}\" SScontrolsList=\"nodownload\" #video\r\n (timeupdate)=\"setCurrentTime($event)\" (loadedmetadata)=\"onLoadedMetadata($event)\" onclick=\"this.paused ? this.play() : this.pause();\">\r\n <source [src]=\"item.link\" type=\"video/mp4\">\r\n {{ 'YourBrowserDoesNotSupportHTML5Video' | translate }}\r\n </video>\r\n </div>\r\n\r\n <div class=\"media\" *ngIf=\"(item.source == 'youtube' || item.source == 'vimeo' || isVimeoSource() || isYoutubeSource()) && !offlineUrl && isOnline\">\r\n <!-- <iframe *ngIf=\"item.source === 'vimeo'\" id=\"video_player\" [src]=\"item.link\" width=\"100%\" height=\"320px\" frameborder=\"0\" allowfullscreen></iframe> -->\r\n <div *ngIf=\"item.source == 'vimeo' || isVimeoSource()\" id=\"video_player\" class=\"vimeo-player-wrapper\" style=\"width: 100%; height: 100%; position: relative;\">\r\n <iframe [src]=\"(item.source_path || item.link) | vimeoEmbed:item?.showVideoControl | safeUrl:'resourceUrl'\" width=\"100%\" height=\"100%\"\r\n frameborder=\"0\" id=\"iframe_vimeo\" allowfullscreen allow=\"autoplay; encrypted-media\"></iframe>\r\n \r\n <!-- Overlay de Play/Pause quando controles est\u00E3o ocultos -->\r\n <div class=\"vimeo-overlay-control\" *ngIf=\"!item.showVideoControl\" (click)=\"toggleVimeoPlay()\" role=\"button\" aria-label=\"Play/Pause\">\r\n <div class=\"vimeo-overlay-button\" [class.is-playing]=\"isVimeoPlaying\">\r\n <svg *ngIf=\"!isVimeoPlaying\" class=\"vimeo-svg\" viewBox=\"0 0 24 24\">\r\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\"/>\r\n </svg>\r\n <svg *ngIf=\"isVimeoPlaying\" class=\"vimeo-svg\" viewBox=\"0 0 24 24\">\r\n <path d=\"M6 19h4V5H6v14zm8-14v14h4V5h-4z\"/>\r\n </svg>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"video\" *ngIf=\"(item.source == 'youtube' || isYoutubeSource()) && !isVimeoSource()\" id=\"video_player\">\r\n <img *ngIf=\"item.poster\" class=\"cursor-pointer\" (click)=\"playYoutubeVideo(1)\" width=\"100%\" height=\"100%\" [src]=\"item.poster\" />\r\n </div>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"item && item.button && item.button.hide\" class=\"text-center\" style=\"margin: 30px 0;\">\r\n <div *ngIf=\"item && item.allowNext && disableNextButton\" class=\"alert alert-warning mb-3 text-left d-block d-sm-none\" role=\"alert\">\r\n <i class=\"bi bi-lightbulb mr-2\"></i>\r\n Assista o v\u00EDdeo at\u00E9 o final para <strong>desbloquear o avan\u00E7o</strong>.\r\n </div>\r\n <span matTooltip=\"{{ 'ToolTipVideoComponent' | translate }}\" [matTooltipDisabled]=\"!item || !item.allowNext || !disableNextButton\">\r\n <app-editor-component-shared-button\r\n [button]=\"item.button\"\r\n [disabled]=\"item && item.allowNext ? disableNextButton : false\"\r\n (event)=\"goNext()\">\r\n </app-editor-component-shared-button>\r\n </span>\r\n </div>\r\n\r\n</div>\r\n\r\n\r\n\r\n\r\n",
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",
5944
6542
  providers: [TrailContentService],
5945
- 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)}"]
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)}"]
5946
6544
  }] }
5947
6545
  ];
5948
6546
  /** @nocollapse */
@@ -6007,13 +6605,82 @@
6007
6605
  VideoComponent.prototype.disableNextButton;
6008
6606
  /** @type {?} */
6009
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;
6010
6622
  /**
6011
6623
  * @type {?}
6012
6624
  * @private
6013
6625
  */
6014
- VideoComponent.prototype.sanitizer;
6015
- /** @type {?} */
6016
- VideoComponent.prototype._trailContentService;
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;
6677
+ /**
6678
+ * @type {?}
6679
+ * @private
6680
+ */
6681
+ VideoComponent.prototype.sanitizer;
6682
+ /** @type {?} */
6683
+ VideoComponent.prototype._trailContentService;
6017
6684
  /** @type {?} */
6018
6685
  VideoComponent.prototype.offlineService;
6019
6686
  /**
@@ -11893,186 +12560,646 @@
11893
12560
  }
11894
12561
  }
11895
12562
  }
11896
- }
11897
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
11898
- finally {
11899
- try {
11900
- if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
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
+ }
12610
+ else {
12611
+ this.form.value[step][idx].push(value);
12612
+ }
12613
+ };
12614
+ /**
12615
+ * @param {?} step
12616
+ * @return {?}
12617
+ */
12618
+ FormStepComponent.prototype.normalizeStep = /**
12619
+ * @param {?} step
12620
+ * @return {?}
12621
+ */
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;
12639
+ };
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 = [
12669
+ { type: core.Component, args: [{
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",
12672
+ providers: [TrailContentService],
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}"]
12674
+ }] }
12675
+ ];
12676
+ /** @nocollapse */
12677
+ FormStepComponent.ctorParameters = function () { return [
12678
+ { type: asapCrud.Global },
12679
+ { type: TrailContentService },
12680
+ { type: core$1.TranslateService }
12681
+ ]; };
12682
+ FormStepComponent.propDecorators = {
12683
+ item: [{ type: core.Input }],
12684
+ id: [{ type: core.Input }],
12685
+ event: [{ type: core.Output }]
12686
+ };
12687
+ return FormStepComponent;
12688
+ }());
12689
+ if (false) {
12690
+ /** @type {?} */
12691
+ FormStepComponent.prototype.item;
12692
+ /** @type {?} */
12693
+ FormStepComponent.prototype.id;
12694
+ /** @type {?} */
12695
+ FormStepComponent.prototype.event;
12696
+ /** @type {?} */
12697
+ FormStepComponent.prototype.blocked;
12698
+ /** @type {?} */
12699
+ FormStepComponent.prototype.contentId;
12700
+ /** @type {?} */
12701
+ FormStepComponent.prototype.form;
12702
+ /**
12703
+ * @type {?}
12704
+ * @private
12705
+ */
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
+ }
12749
+ /**
12750
+ * @return {?}
12751
+ */
12752
+ EditorPdfComponent.prototype.ngOnInit = /**
12753
+ * @return {?}
12754
+ */
12755
+ function () {
12756
+ this.initializeComponent();
12757
+ };
12758
+ /**
12759
+ * @param {?} changes
12760
+ * @return {?}
12761
+ */
12762
+ EditorPdfComponent.prototype.ngOnChanges = /**
12763
+ * @param {?} changes
12764
+ * @return {?}
12765
+ */
12766
+ function (changes) {
12767
+ if ((changes['item'] && !changes['item'].firstChange) || (changes['id'] && !changes['id'].firstChange)) {
12768
+ this.initializeComponent();
12769
+ }
12770
+ };
12771
+ /**
12772
+ * @return {?}
12773
+ */
12774
+ EditorPdfComponent.prototype.ngOnDestroy = /**
12775
+ * @return {?}
12776
+ */
12777
+ function () {
12778
+ this.isDestroyed = true;
12779
+ this.renderGeneration++;
12780
+ if (this.retryTimer) {
12781
+ clearTimeout(this.retryTimer);
12782
+ this.retryTimer = null;
12783
+ }
12784
+ this.destroyPdfDoc();
12785
+ };
12786
+ /**
12787
+ * @private
12788
+ * @return {?}
12789
+ */
12790
+ EditorPdfComponent.prototype.destroyPdfDoc = /**
12791
+ * @private
12792
+ * @return {?}
12793
+ */
12794
+ function () {
12795
+ if (this.pdfDoc) {
12796
+ try {
12797
+ this.pdfDoc.destroy();
12798
+ }
12799
+ catch (e) { }
12800
+ this.pdfDoc = null;
12801
+ }
12802
+ };
12803
+ /**
12804
+ * @private
12805
+ * @return {?}
12806
+ */
12807
+ EditorPdfComponent.prototype.initializeComponent = /**
12808
+ * @private
12809
+ * @return {?}
12810
+ */
12811
+ function () {
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
+ }
12821
+ };
12822
+ /**
12823
+ * @private
12824
+ * @param {?} src
12825
+ * @param {?} id
12826
+ * @return {?}
12827
+ */
12828
+ EditorPdfComponent.prototype.loadScript = /**
12829
+ * @private
12830
+ * @param {?} src
12831
+ * @param {?} id
12832
+ * @return {?}
12833
+ */
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
+ }));
12889
+ };
12890
+ /**
12891
+ * @private
12892
+ * @return {?}
12893
+ */
12894
+ EditorPdfComponent.prototype.ensurePdfJsLoaded = /**
12895
+ * @private
12896
+ * @return {?}
12897
+ */
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
+ }
12946
+ /** @type {?} */
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();
12953
+ }
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();
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*/];
13035
+ }
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*/];
11901
13040
  }
11902
- finally { if (e_1) throw e_1.error; }
11903
- }
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*/];
11904
13056
  }
11905
- }
11906
- }
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);
11907
13076
  };
11908
13077
  /**
11909
13078
  * @private
11910
- * @param {?} control
11911
13079
  * @return {?}
11912
13080
  */
11913
- FormStepComponent.prototype.resetFormControlValidation = /**
13081
+ EditorPdfComponent.prototype.renderAllPages = /**
11914
13082
  * @private
11915
- * @param {?} control
11916
13083
  * @return {?}
11917
13084
  */
11918
- function (control) {
11919
- control.markAsPristine();
11920
- control.markAsUntouched();
11921
- control.updateValueAndValidity();
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
+ });
11922
13154
  };
11923
13155
  /**
11924
- * @param {?} step
11925
- * @param {?} idx
11926
- * @param {?} value
11927
- * @param {?} evt
11928
13156
  * @return {?}
11929
13157
  */
11930
- FormStepComponent.prototype.toggle = /**
11931
- * @param {?} step
11932
- * @param {?} idx
11933
- * @param {?} value
11934
- * @param {?} evt
13158
+ EditorPdfComponent.prototype.zoomIn = /**
11935
13159
  * @return {?}
11936
13160
  */
11937
- function (step, idx, value, evt) {
11938
- /** @type {?} */
11939
- var vIdx = this.form.value[step][idx].indexOf(value);
11940
- if (vIdx >= 0) {
11941
- this.form.value[step][idx].splice(vIdx, 1);
11942
- }
11943
- else {
11944
- 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();
11945
13165
  }
11946
13166
  };
11947
13167
  /**
11948
- * @param {?} step
11949
13168
  * @return {?}
11950
13169
  */
11951
- FormStepComponent.prototype.normalizeStep = /**
11952
- * @param {?} step
13170
+ EditorPdfComponent.prototype.zoomOut = /**
11953
13171
  * @return {?}
11954
13172
  */
11955
- function (step) {
11956
- if (!step.enunciated)
11957
- step.enunciated = {};
11958
- if (step.inputArray) {
11959
- step.inputArray.forEach((/**
11960
- * @param {?} input
11961
- * @return {?}
11962
- */
11963
- function (input) {
11964
- if (input.visibility_control_value) {
11965
- if (!Array.isArray(input.visibility_control_value)) {
11966
- input.visibility_control_value = [input.visibility_control_value];
11967
- }
11968
- }
11969
- }));
13173
+ function () {
13174
+ if (this.zoomScale > 0.6) {
13175
+ this.zoomScale = Math.round((this.zoomScale - 0.2) * 10) / 10;
13176
+ this.renderAllPages();
11970
13177
  }
11971
- return step;
11972
- };
11973
- Object.defineProperty(FormStepComponent.prototype, "isFormFilled", {
11974
- get: /**
11975
- * @return {?}
11976
- */
11977
- function () {
11978
- /** @type {?} */
11979
- var formValue = this.form.value;
11980
- /** @type {?} */
11981
- var hasFill = false;
11982
- for (var i = 0; i < this.item.steps.length; i++) {
11983
- /** @type {?} */
11984
- var step = this.item.steps[i];
11985
- for (var j = 0; j < step.inputArray.length; j++) {
11986
- /** @type {?} */
11987
- var answer = formValue[i][j];
11988
- if (answer.length) {
11989
- hasFill = true;
11990
- break;
11991
- }
11992
- }
11993
- if (hasFill)
11994
- break;
11995
- }
11996
- return hasFill;
11997
- },
11998
- enumerable: true,
11999
- configurable: true
12000
- });
12001
- FormStepComponent.decorators = [
12002
- { type: core.Component, args: [{
12003
- selector: 'app-editor-component-form-step',
12004
- 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",
12005
- providers: [TrailContentService],
12006
- 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}"]
12007
- }] }
12008
- ];
12009
- /** @nocollapse */
12010
- FormStepComponent.ctorParameters = function () { return [
12011
- { type: asapCrud.Global },
12012
- { type: TrailContentService },
12013
- { type: core$1.TranslateService }
12014
- ]; };
12015
- FormStepComponent.propDecorators = {
12016
- item: [{ type: core.Input }],
12017
- id: [{ type: core.Input }],
12018
- event: [{ type: core.Output }]
12019
13178
  };
12020
- return FormStepComponent;
12021
- }());
12022
- if (false) {
12023
- /** @type {?} */
12024
- FormStepComponent.prototype.item;
12025
- /** @type {?} */
12026
- FormStepComponent.prototype.id;
12027
- /** @type {?} */
12028
- FormStepComponent.prototype.event;
12029
- /** @type {?} */
12030
- FormStepComponent.prototype.blocked;
12031
- /** @type {?} */
12032
- FormStepComponent.prototype.contentId;
12033
- /** @type {?} */
12034
- FormStepComponent.prototype.form;
12035
13179
  /**
12036
- * @type {?}
12037
- * @private
13180
+ * @return {?}
12038
13181
  */
12039
- FormStepComponent.prototype.global;
12040
- /** @type {?} */
12041
- FormStepComponent.prototype._trailContentService;
12042
- /**
12043
- * @type {?}
12044
- * @private
13182
+ EditorPdfComponent.prototype.resetZoom = /**
13183
+ * @return {?}
12045
13184
  */
12046
- FormStepComponent.prototype.translate;
12047
- }
12048
-
12049
- /**
12050
- * @fileoverview added by tsickle
12051
- * Generated from: lib/editor/components/pdf/pdf.component.ts
12052
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
12053
- */
12054
- var EditorPdfComponent = /** @class */ (function () {
12055
- function EditorPdfComponent(global, _trailContentService, translate, sanitizer) {
12056
- this.global = global;
12057
- this._trailContentService = _trailContentService;
12058
- this.translate = translate;
12059
- this.sanitizer = sanitizer;
12060
- this.event = new core.EventEmitter();
12061
- 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'];
12062
- this.form = new forms.FormArray([]);
12063
- }
13185
+ function () {
13186
+ if (this.zoomScale !== 1.0) {
13187
+ this.zoomScale = 1.0;
13188
+ this.renderAllPages();
13189
+ }
13190
+ };
12064
13191
  /**
12065
13192
  * @return {?}
12066
13193
  */
12067
- EditorPdfComponent.prototype.ngOnInit = /**
13194
+ EditorPdfComponent.prototype.retryLoadPdf = /**
12068
13195
  * @return {?}
12069
13196
  */
12070
13197
  function () {
12071
- if (this.id) {
12072
- this.getAnswer(this.id);
12073
- /** @type {?} */
12074
- var url = (this.item.url);
12075
- this.innerPDF = this.sanitizer.bypassSecurityTrustHtml("<object style=\"height:600px;width:100%\" data=\"" + url + "#toolbar=0&navpanes=0&scrollbar=0\" type=\"application/pdf\" class=\"embed-responsive-item\">\n <iframe frameborder=\"0\" style=\"height:600px;width:100%\" src=\"https://drive.google.com/viewerng/viewer?embedded=true&url=" + encodeURIComponent(url) + "\" class=\"embed-responsive-item\"></iframe>\n </object> \n ");
13198
+ if (this.useNativeIframe) {
13199
+ this.reloadNativeIframe();
13200
+ }
13201
+ else {
13202
+ this.loadPdf(1);
12076
13203
  }
12077
13204
  };
12078
13205
  /**
@@ -12100,7 +13227,6 @@
12100
13227
  * @return {?}
12101
13228
  */
12102
13229
  function (res) {
12103
- console.log('EditorPdfComponent: getAnswer: res', res);
12104
13230
  /** @type {?} */
12105
13231
  var check = res.data.find((/**
12106
13232
  * @param {?} item
@@ -12109,7 +13235,6 @@
12109
13235
  function (item) {
12110
13236
  return item.value.type === 'pdf';
12111
13237
  }));
12112
- console.log('EditorPdfComponent: getAnswer: check', check);
12113
13238
  if (check) {
12114
13239
  _this.contentId = check.id;
12115
13240
  _this.accept = check.value;
@@ -12141,7 +13266,6 @@
12141
13266
  type: 'pdf',
12142
13267
  value: this.accept
12143
13268
  };
12144
- console.log('onSubmit: data', data);
12145
13269
  if (this.contentId) {
12146
13270
  this._trailContentService.update(this.contentId, data).subscribe((/**
12147
13271
  * @param {?} res
@@ -12150,7 +13274,6 @@
12150
13274
  function (res) {
12151
13275
  _this.blocked = true;
12152
13276
  _this.goNext();
12153
- console.log('onSubmit: _trailContentService.update: res', res);
12154
13277
  }));
12155
13278
  }
12156
13279
  else {
@@ -12162,7 +13285,6 @@
12162
13285
  _this.contentId = res.data.id;
12163
13286
  _this.blocked = true;
12164
13287
  _this.goNext();
12165
- console.log('onSubmit: _trailContentService.save: res', res);
12166
13288
  }));
12167
13289
  }
12168
13290
  };
@@ -12207,9 +13329,9 @@
12207
13329
  EditorPdfComponent.decorators = [
12208
13330
  { type: core.Component, args: [{
12209
13331
  selector: 'app-editor-component-pdf',
12210
- template: "<div class=\"p-5\" [ngStyle]=\"{ background: item.background}\">\r\n <app-editor-component-shared-title [title]=\"item.title\"></app-editor-component-shared-title>\r\n\r\n<app-editor-component-shared-subtitle [subtitle]=\"item.subTitle\"></app-editor-component-shared-subtitle>\r\n\r\n<div class=\"item-component-pdf-icon-container\" *ngIf=\"item.url == ''\">\r\n <i class=\"material-icons\">picture_as_pdf</i>\r\n</div>\r\n\r\n<div class=\"\">\r\n <ng-container *ngIf=\"item?.url\">\r\n <div [innerHTML]=\"innerPDF\"></div>\r\n </ng-container>\r\n</div>\r\n\r\n<div class=\"mb-5 mt-3\" *ngIf=\"item.showAccept\">\r\n <fieldset [disabled]=\"blocked\">\r\n <mat-checkbox class=\"mat-checkbox-label\" name=\"showAccept\" [matTooltip]=\"item.acceptText\" [(ngModel)]=\"accept\">{{ item.acceptText }}\r\n </mat-checkbox>\r\n </fieldset>\r\n</div>\r\n\r\n<div class=\"btn-container my-4\">\r\n <button *ngIf=\"item.acceptText\" class=\"btn\" id=\"pdf-next\" [disabled]=\"!accept\"\r\n [ngStyle]=\"{color: item.button.color, background: item.button.background}\"\r\n (click)=\"onSubmitWithWarning()\">\r\n {{ item.button.text }}\r\n </button>\r\n\r\n <app-editor-component-shared-button [button]=\"item.button\" (event)=\"goNext()\" *ngIf=\"!item.acceptText\"></app-editor-component-shared-button>\r\n</div>\r\n\r\n</div>",
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",
12211
13333
  providers: [TrailContentService],
12212
- 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}"]
12213
13335
  }] }
12214
13336
  ];
12215
13337
  /** @nocollapse */
@@ -12217,12 +13339,14 @@
12217
13339
  { type: asapCrud.Global },
12218
13340
  { type: TrailContentService },
12219
13341
  { type: core$1.TranslateService },
12220
- { type: platformBrowser.DomSanitizer }
13342
+ { type: platformBrowser.DomSanitizer },
13343
+ { type: core.ChangeDetectorRef }
12221
13344
  ]; };
12222
13345
  EditorPdfComponent.propDecorators = {
12223
13346
  item: [{ type: core.Input }],
12224
13347
  id: [{ type: core.Input }],
12225
- event: [{ type: core.Output }]
13348
+ event: [{ type: core.Output }],
13349
+ pdfCanvasContainer: [{ type: core.ViewChild, args: ['pdfCanvasContainer', { static: false },] }]
12226
13350
  };
12227
13351
  return EditorPdfComponent;
12228
13352
  }());
@@ -12234,7 +13358,7 @@
12234
13358
  /** @type {?} */
12235
13359
  EditorPdfComponent.prototype.event;
12236
13360
  /** @type {?} */
12237
- EditorPdfComponent.prototype.innerPDF;
13361
+ EditorPdfComponent.prototype.pdfCanvasContainer;
12238
13362
  /** @type {?} */
12239
13363
  EditorPdfComponent.prototype.contentId;
12240
13364
  /** @type {?} */
@@ -12245,6 +13369,65 @@
12245
13369
  EditorPdfComponent.prototype.listMarkerLetter;
12246
13370
  /** @type {?} */
12247
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;
12248
13431
  /**
12249
13432
  * @type {?}
12250
13433
  * @private
@@ -12259,6 +13442,11 @@
12259
13442
  EditorPdfComponent.prototype.translate;
12260
13443
  /** @type {?} */
12261
13444
  EditorPdfComponent.prototype.sanitizer;
13445
+ /**
13446
+ * @type {?}
13447
+ * @private
13448
+ */
13449
+ EditorPdfComponent.prototype.cdr;
12262
13450
  }
12263
13451
 
12264
13452
  /**