PageSourceSearch

https://patriatube.com/contact-us

html patriatube.com collected 2026-10-06 22:08:16 UTC 104,268 bytes, 2,347 lines download raw bytes

1<!DOCTYPE html>
2<html id="html" lang="pt">
3   <head>
4      <meta charset="UTF-8">
5      <title>Contate-nos | PátriaTube</title>
6      <meta name="title" content="Contate-nos | PátriaTube">
7      <meta name="description" content="PátriaTube é o sistema de rede social de vídeos voltado ao debate político, aqui você encontra o ambiente ideal de preservação dos seus direitos de livre expressão individual como cidadão. Desfrute desse ambiente que foi pensado em você.">
8      <meta name="keywords" content="patriatube, youtube, rede social conservadora, facebook, brasil, bolsonaro videos, mbl, nando moura, diego rox, presidente, defesa, exercito, força aerea, aeronáutica, fiesp, general, mourão, relações exteriores, economia, educação, pátria brasil, conservador, direita, Brasília, Havan, Luciano hang, jovem pan, pingos nos is, o antagonista, Andreazza, Felipe moura Brasil,  Olavo de Carvalho, José Nêumanne Pinto, Pânico na Pan, Emílio Surita">
9      <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
10            <meta property="fb:app_id" content="1643990952546825" />
11      <meta name="format-detection" content="telephone=no" />
12      <meta name="apple-mobile-web-app-capable" content="yes" />
13                      <link rel="canonical" href="https://patriatube.com/contact-us"/>
14            <link rel="alternate" href="https://patriatube.com?lang=english" hreflang="en" /><link rel="alternate" href="https://patriatube.com?lang=arabic" hreflang="ar" /><link rel="alternate" href="https://patriatube.com?lang=dutch" hreflang="nl" /><link rel="alternate" href="https://patriatube.com?lang=french" hreflang="fr" /><link rel="alternate" href="https://patriatube.com?lang=german" hreflang="de" /><link rel="alternate" href="https://patriatube.com?lang=russian" hreflang="ru" /><link rel="alternate" href="https://patriatube.com?lang=spanish" hreflang="es" /><link rel="alternate" href="https://patriatube.com?lang=turkish" hreflang="tr" /><link rel="alternate" href="https://patriatube.com?lang=português" hreflang="pt" /><link rel="alternate" href="https://patriatube.com?lang=hindi" hreflang="hi" /><link rel="alternate" href="https://patriatube.com?lang=chinese" hreflang="zh" /><link rel="alternate" href="https://patriatube.com?lang=urdu" hreflang="ur" /><link rel="alternate" href="https://patriatube.com?lang=indonesian" hreflang="id" /><link rel="alternate" href="https://patriatube.com?lang=croatian" hreflang="sh" /><link rel="alternate" href="https://patriatube.com?lang=hebrew" hreflang="he" /><link rel="alternate" href="https://patriatube.com?lang=bengali" hreflang="bn" /><link rel="alternate" href="https://patriatube.com?lang=japanese" hreflang="ja" /><link rel="alternate" href="https://patriatube.com?lang=portuguese" hreflang="pt" /><link rel="alternate" href="https://patriatube.com?lang=italian" hreflang="it" /><link rel="alternate" href="https://patriatube.com?lang=persian" hreflang="fa" /><link rel="alternate" href="https://patriatube.com?lang=swedish" hreflang="sv" /><link rel="alternate" href="https://patriatube.com?lang=vietnamese" hreflang="vi" /><link rel="alternate" href="https://patriatube.com?lang=danish" hreflang="da" /><link rel="alternate" href="https://patriatube.com?lang=filipino" hreflang="fil" />
15      <link rel="shortcut icon" type="image/png" href="https://patriatube.com/themes/default/img/icon.png"/>
16      <link rel="stylesheet" href="https://patriatube.com/themes/default/css/jquery-ui.min.css?version=2.2.8">
17      <link rel="stylesheet" href="https://patriatube.com/themes/default/css/jquery.tagit.css?version=2.2.8">
18      <link rel="stylesheet" href="https://patriatube.com/themes/default/css/font-awesome-4.7.0/css/font-awesome.min.css?version=2.2.8">
19      <link rel="stylesheet" href="https://patriatube.com/themes/default/css/twemoji-awesome.css?version=2.2.8">
20      <link rel="stylesheet" href="https://patriatube.com/themes/default/css/bootstrap-glyphicons.css?version=2.2.8">
21      <link rel="stylesheet" href="https://patriatube.com/themes/default/css/bootstrap.min.css?version=2.2.8">
22      <link rel="stylesheet" href="https://patriatube.com/themes/default/js/lib/sweetalert2/dist/sweetalert2.min.css?version=2.2.8">
23      <link rel="stylesheet" href="https://patriatube.com/themes/default/js/lib/notifIt/notifIt/css/notifIt.min.css?version=2.2.8">
24      <link rel="stylesheet" href="https://patriatube.com/themes/default/css/style.css?version=2.2.8" id="style-css">
25            <link rel="stylesheet" href="https://patriatube.com/themes/default/css/night-mode.css?version=2.2.8" class="night-mode-css">
26            <link rel="stylesheet" href="https://patriatube.com/themes/default/css/custom.style.css?version=2.2.8">
27      <link href="https://patriatube.com/themes/default/css/material.css?version=2.2.8" rel="stylesheet" type="text/css">
28      <link href="https://patriatube.com/themes/default/css/roboto.css?version=2.2.8" rel="stylesheet">
29      
29<script src="https://patriatube.com/themes/default/js/jquery-3.min.js?version=2.2.8"></script>
29
30      
30<script src="https://patriatube.com/themes/default/js/jquery-ui.min.js?version=2.2.8"></script>
30
31      
31<script type="text/javascript" src="https://patriatube.com/themes/default/js/jquery.form.min.js?version=2.2.8"></script>
31
32      
32<script type="text/javascript" src="https://patriatube.com/themes/default/js/tag-it.min.js?version=2.2.8"></script>
32
33            <link rel="stylesheet" href="https://patriatube.com/themes/default/player/css/mediaelementplayer.min.css?version=2.2.8" />
34      
34<script src="https://patriatube.com/themes/default/player/js/mediaelement-and-player.min.js?version=2.2.8"></script>
34
35      
35<script src="https://patriatube.com/themes/default/js/lib/sweetalert2/dist/sweetalert2.js?version=2.2.8"></script>
35
36      
36<script src="https://patriatube.com/themes/default/js/lib/notifIt/notifIt/js/notifIt.min.js?version=2.2.8"></script>
36
37      <link href="https://patriatube.com/themes/default/css/bootstrap-toggle.min.css?version=2.2.8" rel="stylesheet">
38      <link rel="stylesheet" href="https://patriatube.com/themes/default/css/bootstrap-select.min.css?version=2.2.8">
39      
39<script src="https://patriatube.com/themes/default/js/bootstrap-select.min.js?version=2.2.8"></script>
39
40      <link rel="stylesheet" href="https://patriatube.com/themes/default/css/owl.carousel.min.css?version=2.2.8">
41      
41<script src="https://patriatube.com/themes/default/js/owl.carousel.min.js?version=2.2.8"></script>
41
42            
42<script src="https://patriatube.com/themes/default/player/plugins/speed/speed.min.js?version=2.2.8"></script>
42
43      <link rel="stylesheet" href="https://patriatube.com/themes/default/player/plugins/speed/speed.min.css?version=2.2.8" />
44      
44<script src="https://patriatube.com/themes/default/player/plugins/speed/speed-i18n.js?version=2.2.8"></script>
44
45      
45<script src="https://patriatube.com/themes/default/player/plugins/jump/jump-forward.min.js?version=2.2.8"></script>
45
46      <link rel="stylesheet" href="https://patriatube.com/themes/default/player/plugins/jump/jump-forward.min.css?version=2.2.8" />
47      
47<script src="https://patriatube.com/themes/default/player/plugins/ads/ads.min.js?version=2.2.8"></script>
47
48      <link rel="stylesheet" href="https://patriatube.com/themes/default/player/plugins/ads/ads.min.css?version=2.2.8" />
49      
49<script src="https://patriatube.com/themes/default/player/plugins/ads/ads-i18n.js?version=2.2.8"></script>
49
50      
50<script src="https://patriatube.com/themes/default/player/plugins/vast/ads-vast-vpaid.js?version=2.2.8"></script>
50
51      
51<script src="https://patriatube.com/themes/default/player/plugins/quality/quality.min.js?version=2.2.8"></script>
51
52      <link rel="stylesheet" href="https://patriatube.com/themes/default/player/plugins/quality/quality.min.css?version=2.2.8" />
53      
53<script src="https://patriatube.com/themes/default/js/facebook.min.js?version=2.2.8"></script>
53
54      
54<script src="https://patriatube.com/themes/default/js/Fingerprintjs2/fingerprint2.js?version=2.2.8"></script>
54
55      
55<script src="https://patriatube.com/themes/default/js/emoji/emojionearea/dist/emojionearea.js?version=2.2.8"></script>
55
56      <link rel="stylesheet" type="text/css" href="https://patriatube.com/themes/default/js/emoji/emojionearea/dist/emojionearea.min.css?version=2.2.8"/>
57      <link rel="stylesheet" href="https://patriatube.com/themes/default/css/bootstrap-colorpicker.min.css?version=2.2.8" />
58      
58<script src="https://patriatube.com/themes/default/js/bootstrap-colorpicker.min.js?version=2.2.8"></script>
58
59      
59<script src="https://patriatube.com/themes/default/js/v1.js?version=2.2.8"></script>
59
60                  
60<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4/socket.io.js?version=2.2.8"></script>
60
61            <link rel="stylesheet" href="https://patriatube.com/themes/default/css/swiper-bundle.min.css?version=2.2.8" />
62      
62<script src="https://patriatube.com/themes/default/js/swiper-bundle.min.js?version=2.2.8"></script>
62
63      
63<script src="https://patriatube.com/themes/default/js/plupload.full.min.js?version=2.2.8"></script>
63
64      
64<script>
65         function RunLiveAgora(channelName,DIV_ID,token) {
66           var agoraAppId = '1dec1a68e7d14bb6a5d4f016efc5fb83';
67           var token = token;
68
69           var client = AgoraRTC.createClient({mode: 'live', codec: 'vp8'});
70           client.init(agoraAppId, function () {
71
72
73               client.setClientRole('audience', function() {
74             }, function(e) {
75             });
76
77             client.join(token, channelName, 0, function(uid) {
78             }, function(err) {
79             });
80             }, function (err) {
81             });
82
83             client.on('stream-added', function (evt) {
84             var stream = evt.stream;
85             var streamId = stream.getId();
86
87             client.subscribe(stream, function (err) {
88             });
89           });
90           client.on('stream-subscribed', function (evt) {
91             var video_id = $('#video-id').val();
92            if (!video_id) {
93               return false;
94            }
95             $('#'+DIV_ID).html('<div class="wow_liv_counter"><span id="live_word_'+video_id+'">Ao vivo</span> <span id="live_count_'+video_id+'"> 0</span></div><div id="live_post_comments_'+video_id+'" class="wow_liv_comments_feed user-comments"></div>');
96             var remoteStream = evt.stream;
97             remoteStream.play(DIV_ID);
98             $('#player_'+remoteStream.getId()).find('video').css('position', 'relative');
99           });
100         }
101                      var site_url = 'https://patriatube.com';
102           function PT_Ajax_Requests_File() {
103             return site_url + '/';
104           }
105           function PT_Page_Loading_File() {
106             return site_url + '/page_loading.php';
107           }
108           function OpenShareWindow(url, windowName) {
109              newwindow = window.open(url, windowName, 'height=600,width=800');
110              if (window.focus) {
111                 newwindow.focus();
112              }
113              return false;
114           }
115           function getCookie(name) {
116             var value = "; " + document.cookie;
117             var parts = value.split("; " + name + "=");
118             if (parts.length == 2) return parts.pop().split(";").shift();
119           }
120      </script>
120
121      
121<script src="https://patriatube.com/themes/default/js/header.js?version=2.2.8"></script>
121
122            
122<script src="https://imasdk.googleapis.com/js/sdkloader/ima3.js?version=2.2.8" type="text/javascript"></script>
122
123         </head>
124   
124<script type="text/javascript">
125        window.UpdateChatU = 0;
126        $(document).on('click', 'a[data-load]', function(event) {
127            if ($('#live_post_id').length > 0) {
128                    DeleteLive();
129                    window.location = $(this).attr('href');
130                    return false;
131              }
132              $('#bar_loading').show();
133                event.preventDefault();
134                var url = $(this).attr('data-load');
135                if ($('video').length > 0) {
136                  $('video')[0].pause();
137                }
138                $.ajax({
139                  url: PT_Page_Loading_File()+url,
140                  type: 'GET',
141                  dataType: 'html'
142                })
143                .done(function(data_html) {
144                  if ($(data_html).filter('#json-data').length > 0) {
145                      if (typeof(ads_) != 'undefined') {
146                        clearInterval(ads_);
147                      }
148
149                      data = JSON.parse($(data_html).filter('#json-data').val());
150
151                      (data.page == 'register' ||
152                      data.page == 'login' ||
153                      data.page == 'shorts' ||
154                      data.page == 'latest' ||
155                      data.page == 'top' ||
156                      data.page == 'trending' ||
157                      data.page == 'stock' ||
158                      data.page == 'upload-video' ||
159                      data.page == 'import-video' ||
160                      data.page == 'messages') ? $('#header_ad_').addClass('hidden') : $('#header_ad_').removeClass('hidden');
161
162                      (data.page == 'home') ? $('#home_menu_').addClass('active') : $('#home_menu_').removeClass('active');
163                      (data.page == 'history') ? $('#history_menu_').addClass('active') : $('#history_menu_').removeClass('active');
164                      (data.page == 'articles') ? $('#articles_menu_').addClass('active') : $('#articles_menu_').removeClass('active');
165                      (data.page == 'latest') ? $('#latest_menu_').addClass('active') : $('#latest_menu_').removeClass('active');
166                      (data.page == 'trending') ? $('#trending_menu_').addClass('active') : $('#trending_menu_').removeClass('active');
167                      (data.page == 'paid-videos') ? $('#paid_videos_').addClass('active') : $('#paid_videos_').removeClass('active');
168                      (data.page == 'top') ? $('#top_menu_').addClass('active') : $('#top_menu_').removeClass('active');
169                      (data.page == 'movies') ? $('#movies_menu_').addClass('active') : $('#movies_menu_').removeClass('active');
170                      (data.page == 'popular_channels') ? $('#popular_channels_menu_').addClass('active') : $('#popular_channels_menu_').removeClass('active');
171                      (data.page == 'stock') ? $('#stock_videos_menu_').addClass('active') : $('#stock_videos_menu_').removeClass('active');
172
173
174                      window.history.pushState({state:'new'},'', data.url);
175                      $('#container_content').html(data_html);
176                      $('meta[name=title]').attr('content', data.title);
177                      $('meta[name=description]').attr('content', data.description);
178                      $('meta[name=keywords]').attr('content', data.keyword);
179                      $('title').text(data.title);
180                      var main_container_class = 'main-content ';
181                      (data.page != 'login') ? main_container_class += ' container ' : main_container_class += ' welcome-page ';
182                      if (data.is_movie == true) {
183                        $('.toggle-mode').hide();
184                        $('.logo-img img').attr('src', 'https://patriatube.com/themes/default/img/logo-light.png?cache=123');
185                        (data.page == 'watch') ? main_container_class += ' movies-container ' : main_container_class += ' ';
186                      }
187                      else{
188                        if ($('#toggle-mode').prop( "checked" ) === true) {
189                          $('.logo-img img').attr('src', 'https://patriatube.com/themes/default/img/logo-light.png?cache=123');
190                        }
191                        else{
192                          $('.logo-img img').attr('src', 'https://patriatube.com/themes/default/img/logo.png?cache=123');
193                        }
194                        $('.toggle-mode').show();
195                        (data.page == 'watch') ? main_container_
195class += ' watch-container ' : main_container_class += ' ';
196                      }
197
198                      (data.page == 'movie') ? main_container_class += ' movies-container ' : main_container_class += ' ';
199                            (data.page == 'go_pro') ? main_container_class += ' p-relative ' : main_container_class += ' ';
200                      (data.page == 'home') ? main_container_class += ' home-container ' : main_container_class += ' ';
201                      $('#main-container').attr('class',main_container_class);
202
203                      (data.page == 'watch') ? $('#header_change_2').attr('class','container watch-container') : $('#header_change_2').attr('class','container');
204                      (data.page == 'watch') ? $('#header_change_3').attr('class','container watch-container') : $('#header_change_3').attr('class','container');
205                    }
206                    else{
207                      window.location.href = site_url+'/login';
208                    }
209                })
210                .fail(function() {
211                  if (typeof(getCookie('user_id')) == 'undefined') {
212                    window.location.href = site_url+'/login';
213                  }
214                  else{
215                    window.location.href = site_url+'/404';
216                  }
217                })
218                .always(function() {
219                  window.scrollTo(0,0);
220                  $('#bar_loading').delay(300).fadeOut(300);
221                  $(".video-player").hover(
222                      function(e){
223                        $('.watermark').css('display', 'block');
224                       },
225                      function(e){
226                        setTimeout(function () {
227                          if ($('.video-player:hover').length == 0) {
228                            $('.watermark').css('display', 'none');
229                          }
230                        }, 1000);
231                       }
232                  );
233                });
234
235        });
236      function load_more_sub() {
237        var id = $('.subscribers_').last().attr('data_subscriber_id');
238        var user_id = '{{ME id}}';
239        $.post(PT_Ajax_Requests_File()+'aj/user/get_more_subscribers_', {id: id,user_id:user_id}, function(data, textStatus, xhr) {
240          if (data.status == 200) {
241            if (data.html != '') {
242              $('.user_subscribers_').append(data.html);
243            }
244            else{
245              $('#user_subscribers__load').html("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='currentColor' d='M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M17,13H7V11H17V13Z' /></svg> Não há mais assinaturas");
246            }
247
248          }
249
250        });
251      }
252   </script>
252
253   <body itemscope itemtype="http://schema.org/Organization" id="pt-body">
254            <div id="pop_up_18" class="modal matdialog et_plus" data-backdrop="static" data-keyboard="false">
255         <div class="modal-dialog">
256            <div class="modal-content">
257               <div class="modal-body">
258                  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 328.863 328.863" height="120" width="120" xml:space="preserve">
259                     <g id="_x34_4-18Plus_movie">
260                        <g>
261                           <path fill="currentColor" d="M104.032,220.434V131.15H83.392V108.27h49.121v112.164H104.032z"/>
262                        </g>
263                        <g>
264                           <path fill="currentColor" d="M239.552,137.23c0,9.76-5.28,18.4-14.08,23.201c12.319,5.119,20,15.84,20,28.32c0,20.16-17.921,32.961-45.921,32.961 c-28.001,0-45.921-12.641-45.921-32.48c0-12.801,8.32-23.682,21.28-28.801c-9.44-5.281-15.52-14.24-15.52-24 c0-17.922,15.681-29.281,40.001-29.281C224.031,107.15,239.552,118.83,239.552,137.23z M180.51,186.352 c0,9.441,6.721,14.721,19.041,14.721c12.32,0,19.2-5.119,19.2-14.721c0-9.279-6.88-14.561-19.2-14.561 C187.23,171.791,180.51,177.072,180.51,186.352z M183.391,138.83c0,8.002,5.76,12.48,16.16,12.48c10.4,0,16.16-4.479,16.16-12.48 c0-8.318-5.76-12.959-16.16-12.959C189.15,125.871,183.391,130.512,183.391,138.83z"/>
265                        </g>
266                        <g>
267                           <path fill="currentColor" d="M292.864,120.932c4.735,13.975,7.137,28.592,7.137,43.5c0,74.752-60.816,135.568-135.569,135.568 S28.862,239.184,28.862,164.432c0-74.754,60.816-135.568,135.569-135.568c14.91,0,29.527,2.4,43.5,7.137V5.832 C193.817,1.963,179.24,0,164.432,0C73.765,0,0.001,73.764,0.001,164.432s73.764,164.432,164.431,164.432 S328.862,255.1,328.862,164.432c0-14.807-1.962-29.385-5.831-43.5H292.864z"/>
268                        </g>
269                        <g>
270                           <polygon fill="currentColor" points="284.659,44.111 284.659,12.582 261.987,12.582 261.987,44.111 230.647,44.111 230.647,66.781 261.987,66.781 261.987,98.309 284.659,98.309 284.659,66.781 316.186,66.781 316.186,44.111 "/>
271                        </g>
272                     </g>
273                  </svg>
274                  <h4>Observe que, se você tem menos de 18 anos, não poderá acessar este site.</h4>
275                  <p>Você tem 18 anos ou mais?</p>
276               </div>
277               <div class="modal-footer">
278                  <button class="btn btn-success matbtn" id="pop_up_18_yes">Sim</button>
279                  <button class="btn matbtn" id="pop_up_18_no">Não</button>
280               </div>
281            </div>
282         </div>
283      </div>
284      <a href="" id="link_redirect_to_page"  data-load=""></a>
285      <div id="bar_loading"></div>
286            <input type="hidden" class="main_session" value="07edd2c6f5c1518a21de793785ebfbc34ea4f594">
287            <header>
288         <nav class="navbar navbar-findcond navbar-fixed-top header-layout">
289	<div class="pt_main_hdr" id="header_change">
290		<div class="navbar-header">
291						<!--<ul class="nav navbar-nav">
292				<li>
293				   <div id="open_slide" class="pt_opn_sid_menu">
294						<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z" /></svg>
295				   </div>
296				</li>
297			</ul>-->
298						<a class="navbar-brand logo-img" href="https://patriatube.com/" itemprop="url">
299									<img itemprop="logo" src="https://patriatube.com/themes/default/img/logo-light.png?cache=123" alt="PátriaTube">
300							</a>
301			
302						<ul class="nav navbar-nav sec_lay_hdr">
303				<li class="pt_hide-from-mobile " id="latest_menu_" tooltip="Últimos videos" flow="down">
304					<a href="https://patriatube.com/videos/latest" data-load="?link1=videos&page=latest">
305						<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M3 6c-.55 0-1 .45-1 1v13c0 1.1.9 2 2 2h13c.55 0 1-.45 1-1s-.45-1-1-1H5c-.55 0-1-.45-1-1V7c0-.55-.45-1-1-1zm17-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8 12.5v-9l5.47 4.1c.27.2.27.6 0 .8L12 14.5z"/></svg>
306				    </a>
307				</li>
308				<li class="pt_hide-from-mobile " id="top_menu_" tooltip="Top vídeos" flow="down">
309					<a href="https://patriatube.com/videos/top" data-load="?link1=videos&page=top">
310						<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
310<path fill="currentColor" d="M6.4 9.2h.2c.77 0 1.4.63 1.4 1.4v7c0 .77-.63 1.4-1.4 1.4h-.2c-.77 0-1.4-.63-1.4-1.4v-7c0-.77.63-1.4 1.4-1.4zM12 5c.77 0 1.4.63 1.4 1.4v11.2c0 .77-.63 1.4-1.4 1.4-.77 0-1.4-.63-1.4-1.4V6.4c0-.77.63-1.4 1.4-1.4zm5.6 8c.77 0 1.4.63 1.4 1.4v3.2c0 .77-.63 1.4-1.4 1.4-.77 0-1.4-.63-1.4-1.4v-3.2c0-.77.63-1.4 1.4-1.4z"/></svg>
311				    </a>
312				</li>
313				<li class="pt_hide-from-mobile " id="trending_menu_" tooltip="Tendências" flow="down">
314					<a href="https://patriatube.com/videos/trending" data-load="?link1=videos&page=trending">
315						<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M16.85 6.85l1.44 1.44-4.88 4.88-3.29-3.29c-.39-.39-1.02-.39-1.41 0l-6 6.01c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L9.41 12l3.29 3.29c.39.39 1.02.39 1.41 0l5.59-5.58 1.44 1.44c.31.31.85.09.85-.35V6.5c.01-.28-.21-.5-.49-.5h-4.29c-.45 0-.67.54-.36.85z"/></svg>
316				    </a>
317				</li>
318								<li class="hide-from-mobile " id="articles_menu_" tooltip="Artigos" flow="down">
319					<a href="https://patriatube.com/articles" data-load="?link1=articles">
320						<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M20,11H4V8H20M20,15H13V13H20M20,19H13V17H20M11,19H4V13H11M20.33,4.67L18.67,3L17,4.67L15.33,3L13.67,4.67L12,3L10.33,4.67L8.67,3L7,4.67L5.33,3L3.67,4.67L2,3V19A2,2 0 0,0 4,21H20A2,2 0 0,0 22,19V3L20.33,4.67Z"/></svg>
321				    </a>
322				</li>
323												<li class="hide-from-mobile " id="movies_menu_" tooltip="Filmes" flow="down">
324					<a href="https://patriatube.com/movies" data-load="?link1=movies">
325						<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M18 4v1h-2V4c0-.55-.45-1-1-1H9c-.55 0-1 .45-1 1v1H6V4c0-.55-.45-1-1-1s-1 .45-1 1v16c0 .55.45 1 1 1s1-.45 1-1v-1h2v1c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-1h2v1c0 .55.45 1 1 1s1-.45 1-1V4c0-.55-.45-1-1-1s-1 .45-1 1zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/></svg>
326				    </a>
327				</li>
328												<li class="hide-from-mobile " id="popular_channels_menu_" tooltip="Canais Populares" flow="down">
329					<a href="https://patriatube.com/popular_channels" data-load="?link1=popular_channels">
330						<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M8 19h8c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1H8c-.55 0-1 .45-1 1v13c0 .55.45 1 1 1zm-5-2h2c.55 0 1-.45 1-1V7c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1zM18 7v9c0 .55.45 1 1 1h2c.55 0 1-.45 1-1V7c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1z"/></svg>
331				    </a>
332				</li>
333												<li class="hide-from-mobile " id="stock_videos_menu_" tooltip="Stock Videos" flow="down">
334					<a href="https://patriatube.com/videos/stock" data-load="?link1=videos&page=stock">
335						<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M17,10.5V7A1,1 0 0,0 16,6H4A1,1 0 0,0 3,7V17A1,1 0 0,0 4,18H16A1,1 0 0,0 17,17V13.5L21,17.5V6.5L17,10.5Z" /></svg>
336				    </a>
337				</li>
338												<li class="hide-from-mobile " id="stock_videos_menu_" tooltip="Shorts" flow="down">
339					<a href="https://patriatube.com/shorts" data-load="?link1=shorts&id=">
340						<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 168.071 168.071" xml:space="preserve"> <g> <g> <path opacity="0.5" style="fill: currentColor;" d="M154.932,91.819L42.473,27.483c-2.219-1.26-4.93-1.26-7.121-0.027 c-2.219,1.233-3.588,3.533-3.615,6.026L31.08,161.059c0,0,0,0,0,0.027c0,2.465,1.369,4.766,3.533,6.026 c1.123,0.63,2.355,0.959,3.615,0.959c1.205,0,2.438-0.301,3.533-0.931l113.116-63.214c2.219-1.26,3.588-3.533,3.588-6.053 c0,0,0,0,0-0.027C158.465,95.38,157.123,93.079,154.932,91.819z"></path> <g id="XMLID_15_"> <g> <path style="fill:currentColor;" d="M79.952,44.888L79.952,44.888c3.273-3.273,2.539-8.762-1.479-11.06l-7.288-4.171 c-2.75-1.572-6.212-1.109-8.452,1.128l0,0c-3.273,3.273-2.539,8.762,1.479,11.06l7.291,4.169 C74.25,47.589,77.712,47.126,79.952,44.888z"></path> <path style="fill:currentColor;" d="M133.459,65.285L99.103,45.631c-2.75-1.572-6.209-1.109-8.449,1.128l0,0 c-3.273,3.273-2.539,8.759,1.479,11.057l23.497,13.44L23.931,122.5l0.52-103.393l19.172,10.964 c2.722,1.558,6.152,1.098,8.367-1.12l0.104-0.104c3.24-3.24,2.514-8.674-1.463-10.95L21,0.948 c-2.219-1.26-4.93-1.26-7.121-0.027c-2.219,1.233-3.588,3.533-3.615,6.026L9.607,134.524c0,0,0,0,0,0.027 c0,2.465,1.369,4.766,3.533,6.026c1.123,0.63,2.355,0.959,3.615,0.959c1.205,0,2.438-0.301,3.533-0.931l113.116-63.214 c2.219-1.26,3.588-3.533,3.588-6.053c0,0,0,0,0-0.027C136.992,68.845,135.65,66.545,133.459,65.285z"></path> </g> </g> </g> </g></svg>
341				    </a>
342				</li>
343							</ul>
344						
345			<form class="navbar-form navbar-left search-header" role="search" action="https://patriatube.com/search" method="GET">
346                <div class="form-group">
347                    <input type="text" class="form-control" id="search-bar" name="keyword" placeholder="Procurar Vídeos" autocomplete="off" value=""> 
348                    					<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search" onclick="javascript:$('.search-header input').focus();"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>
349                </div>
350                <div class="search-dropdown hidden"></div>
351            </form>
352			<!--<ul class="nav navbar-nav">
353				<li class="dropdown hide-from-mobile" id="category_menu_">
354				   <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Categorias <span class="caret"></span></a>
355				   <ul class="dropdown-menu categories-drop-down" role="menu">
356				    					    <li class="hide-from-mobile">
357						   <a class="category" href="https://patriatube.com/videos/category/1" data-load="?link1=videos&page=category&id=1">Filmes &amp; Animes</a>
358						</li>
359										    <li class="hide-from-mobile">
360						   <a class="category" href="https://patriatube.com/videos/category/3" data-load="?link1=videos&page=category&id=3">Música</a>
361						</li>
362										    <li class="hide-from-mobile">
363						   <a class="category" href="https://patriatube.com/videos/category/4" data-load="?link1=videos&page=category&id=4">Animais</a>
364						</li>
365										    <li class="hide-from-mobile">
366						   <a class="category" href="https://patriatube.com/videos/category/5" data-load="?link1=videos&page=category&id=5">Esportes</a>
367						</li>
368										    <li class="hide-from-mobile">
369						   <a class="category" href="https://patriatube.com/videos/category/6" data-load="?link1=videos&page=category&id=6">Eventos e Viagens</a>
370						</li>
371										    <li class="hide-from-mobile">
372						   <a class="category" href="https://patriatube.com/videos/category/7" data-load="?link1=videos&page=category&id=7">Jogos</a>
373						</li>
374										    <li class="hide-from-mobile">
375						   <a class="category" href="https://patriatube.com/videos/category/8" data-load="?link1=videos&page=category&id=8">Pessoas &amp; Blogs</a>
376						</li>
377										    <li class="hide-from-mobile">
378						   <a class="category" href="https://patriatube.com/videos/category/9" data-load="?link1=videos&page=category&id=9">Comédia</a>
379						</li>
380										    <li class="hide-from-mobile">
381						   <a class="category" href="https://patriatube.com/videos/category/10" data-load="?link1=videos&page=category&id=10">Entretenimento</a>
382						</li>
383										    <li class="hide-from-mobile">
384						   <a class="category" href="https://patriatube.com/videos/category/11" data-load="?link1=videos&page=category&id=11">Notícias e Política</a>
385						</li>
386										    <li class="hide-from-mobile">
387						   <a class="category" href="https://patriatube.com/videos/category/12" data-load="?link1=videos&page=category&id=12">Ciência e Tecnologia</a>
388						</li>
389										    <li class="hide-from-mobile">
390						   <a class="category" href="https://patriatube.com/videos/category/13" data-load="?link1=videos&page=category&id=13">Ativismo</a>
391						</li>
392										    <li class="hide-from-mobile">
393						   <a class="category" href="https://patriatube.com/videos/category/559" data-load="?link1=videos&page=category&id=559">Defesa</a>
394						</li>
395										    <li class="hide-from-mobile">
396						   <a class="category" href="https://patriatube.com/videos/category/565" data-load="?link1=videos&page=category&id=565">Brasil</a>
397						</li>
398										    <li class="hide-from-mobile">
399						   <a class="category" href="https://patriatube.com/videos/category/567" data-load="?link1=videos&page=category&id=567">Pensamento</a>
400						</li>
401									   </ul>
402				</li>
403			</ul>-->
404		</div>
405		<ul class="nav navbar-nav navbar-right">
406						 
407			    <li class="hide-from-mobile">
408					<a href="https://patriatube.com/upload-video" class="btn upload-button" data-load="?link1=upload-video">
409						<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
409<path fill="currentColor" d="M14,13V17H10V13H7L12,8L17,13M19.35,10.03C18.67,6.59 15.64,4 12,4C9.11,4 6.6,5.64 5.35,8.03C2.34,8.36 0,10.9 0,14A6,6 0 0,0 6,20H19A5,5 0 0,0 24,15C24,12.36 21.95,10.22 19.35,10.03Z" /></svg>
410						<span class="hide-in-mobile">Enviar</span>
411					</a>
412				</li>
413						 
414			    <li class="hide-from-mobile">
415					<a href="https://patriatube.com/import-video" class="btn import-button" data-load="?link1=import-video">
416						<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M17,13L12,18L7,13H10V9H14V13M19.35,10.03C18.67,6.59 15.64,4 12,4C9.11,4 6.6,5.64 5.35,8.03C2.34,8.36 0,10.9 0,14A6,6 0 0,0 6,20H19A5,5 0 0,0 24,15C24,12.36 21.95,10.22 19.35,10.03Z" /></svg>
417						<span class="hide-in-mobile">Importar</span>
418					</a>
419				</li>
420								<li class="show-in-mobile pull-left top-header">
421				<a href="#" class="search-icon"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z" /></svg> </a>
422			</li>
423						<li class="dropdown hide-from-mobile top-header profile-nav">
424	<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
425		<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12,19.2C9.5,19.2 7.29,17.92 6,16C6.03,14 10,12.9 12,12.9C14,12.9 17.97,14 18,16C16.71,17.92 14.5,19.2 12,19.2M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z" /></svg> <span class="caret"></span>
426	</a>
427	<ul class="dropdown-menu" role="menu">
428		<li><a href="https://patriatube.com/login">Entrar</a></li>
429				<li>
430			<a href="https://patriatube.com/register">Registro</a>
431		</li>
432							<li class="divider"></li>
433			<li class="toggle-mode top-header">
434				<label class="switch">
435					Modo
436					<input type="checkbox" checked id="toggle-mode">
437					<span class="slider round">
438						<svg fill="#009da0" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" class="feather feather-bulb" style="margin: 0px 0 0 1px;"><path d="M12,6A6,6 0 0,1 18,12C18,14.22 16.79,16.16 15,17.2V19A1,1 0 0,1 14,20H10A1,1 0 0,1 9,19V17.2C7.21,16.16 6,14.22 6,12A6,6 0 0,1 12,6M14,21V22A1,1 0 0,1 13,23H11A1,1 0 0,1 10,22V21H14M20,11H23V13H20V11M1,11H4V13H1V11M13,1V4H11V1H13M4.92,3.5L7.05,5.64L5.63,7.05L3.5,4.93L4.92,3.5M16.95,5.63L19.07,3.5L20.5,4.93L18.37,7.05L16.95,5.63Z" /></svg>
439					</span>
440				</label>
441			</li>
442		   </ul>
443</li>
444		</ul>
445	</div>
446</nav>
447
448<nav class="navbar navbar-findcond navbar-fixed-top header-layout hidden search-bar">
449	<div class="navbar-header">
450		<form class="search-header-mobile" role="search" action="https://patriatube.com/search" method="GET">
451			<div class="form-group">
452				<input type="text" class="form-control" id="search-bar-mobile" name="keyword" placeholder="Procurar Vídeos" autocomplete="off" value=""> 
453			</div>
454			<div class="search-dropdown hidden"></div>
455		</form>
456	</div>
457</nav>
458
459
460<script>
461$('.search-icon').on('click', function(event) {
462	event.preventDefault();
463	$('.search-bar').toggleClass('hidden');
464});
465
466$('#open_slide').on('click', function(event) {
467	event.preventDefault();
468	$('body').toggleClass('side_open');
469});
470
471$('#search-bar').keyup(function(event) {
472	var search_value = $(this).val();
473	var search_dropdown = $('.search-dropdown');
474	if (search_value == '') {
475		search_dropdown.addClass('hidden');
476		search_dropdown.empty();
477		return false;
478	} else {
479		search_dropdown.removeClass('hidden');
480	}
481    $.post('https://patriatube.com/aj/search', {search_value: search_value}, function(data, textStatus, xhr) {
482    	if (data.status == 200) {
483    		search_dropdown.html(data.html);
484    	} else {
485	       search_dropdown.addClass('hidden');
486		   search_dropdown.empty();
487		   return false;
488    	}
489    });
490});
491
492jQuery(document).click(function(event){
493    if (!(jQuery(event.target).closest(".search-dropdown").length)) {
494        jQuery('.search-dropdown').addClass('hidden');
495    }
496});
497
498jQuery(document).click(function(event){
499    if (!(jQuery(event.target).closest("#open_slide, .yp_side_drawer").length)) {
500        jQuery('body').removeClass('side_open');
501    }
502});
503</script>
503
504         <div class="clear"></div>
505      </header>
506            <div id="main-container" class="container     main-content" >
507                  <div class="ads-placment" id="header_ad_"></div>
508            <div class="announcement-renderer">
509         
510      </div>
511            <div id="container_content">
512         <div class="wo_about_wrapper_parent">
513	<div class="wo_about_wrapper"> 
514		<div class="hero hero-overlay" style="background: #82b652;"> 
515			<div class="container">
516				<h1 class="text-center">Contate-nos</h1>
517			</div> 
518		</div>
519		<svg id="wave" viewBox="0 0 1440 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(0.000000, -564.000000)" fill="#82b652"><g id="Head-background" transform="translate(-168.000000, -346.000000)"><g id="waves-background" transform="translate(888.000000, 934.000000) scale(-1, 1) translate(-888.000000, -934.000000) translate(168.000000, 910.000000)"><path d="M0,14.60779 C101.722445,4.7613277 195.244576,-4.14113188e-14 429,-2.84217094e-14 C732,-1.97619698e-14 798,45.6756592 1089,45.6756592 C1245.83848,45.6756592 1364.64602,29.5028807 1440,14.5904096 C1440,14.60779 1440,48 1440,48 L0,48 C0,48 0.0410082206,34 0,14.60779 Z" id="Path-3-Copy"></path></g></g></g></g></svg>
520	</div>
521</div>
522<div class="col-md-3"></div>
523<form class="form-horizontal user-setting-panel contact-us-form pt_shadow pt_page_margin col-md-6 pt_forms" method="POST">
524    <div class="contact-us-alert"></div>
525		<div class="list-">
526			<!-- Text input-->
527			<div class="form-group">
528				<label class="col-md-12" for="first_name">Primeiro nome *</label>  
529				<div class="col-md-12">
530					<input id="first_name" name="first_name" type="text" class="form-control input-md">
531				</div>
532			</div>
533			<!-- Text input-->
534			<div class="form-group">
535				<label class="col-md-12" for="last_name">Último nome *</label>  
536				<div class="col-md-12">
537					<input id="last_name" name="last_name" type="text" class="form-control input-md">
538				</div>
539			</div>
540			<div class="form-group">
541				<label class="col-md-12" for="email">E-mail *</label>  
542				<div class="col-md-12">
543					<input name="email" id="email" type="text" class="form-control input-md">
544				</div>
545			</div>
546			<div class="form-group">
547				<label class="col-md-12" for="message">Mensagem *</label>  
548				<div class="col-md-12">
549					<textarea name="message" id="message" rows="5" class="form-control input-md"></textarea>
550				</div>
551			</div>
552			<div class="last-sett-btn modal-footer" style="margin: 0px -30px -10px -30px;">
553				<button type="submit" name="send" id="send" tabindex="4" class="btn btn-main setting-panel-mdbtn"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-mail"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg> Enviar</button>
554			</div>
555		</div>
556	<div class="clear"></div>
557</form>
558<div class="col-md-3"></div>
559<!-- .page-margin -->
560<script>
561	$(function() {
562		var form = $('form.contact-us-form');
563		form.ajaxForm({
564			url: 'https://patriatube.com/aj/contact_us?hash=' + $('.main_session').val(),
565			dataTyep:'json',
566			beforeSend: function() {
567				form.find('button').text("Por favor, espere..");
568			},
569			success: function(data) {
570				if (data.status == 200) {
571					$('.contact-us-alert').html($('<div>',{
572						class: "alert alert-success",
573						html: data.message
574					}));
575
576					$('.alert-success').fadeIn(300);
577				} 
578				else {
579					$('.contact-us-alert').html($('<div>',{
580						class: "alert alert-danger",
581						html: data.message
582					}));
583				}
584				form.find('button').html('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-mail"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg> Enviar');
585			}
586		});
587	});
588</script>
588
589      </div>
590      <input type="hidden" id="main-url" value="https://patriatube.com%2Fcontact-us">
591                  <div class="ads-placment" id="footer_ad_"></div>
592                  </div>
593            <footer class="pt_footer">
594         <div class="container-fluid">
595	<div class="container  phone-container">
596		<div class="footer-container">
597			<div class="footer-copyright">Direitos autorais ©  Pátria Tube. Todos os direitos reservados.</div>
598			<div class="footer-links">
599				<ul>
600											<li><a href="https://patriatube.com/terms/refund-policy" data-load="?link1=terms&type=refund-policy">Politica de Reembolso</a></li>
601										<li><a href="https://patriatube.com/terms/faqs" data-load="?link1=terms&type=faqs">FAQs</a></li>
602											<li><a href="https://patriatube.com/terms/terms" data-load="?link1=terms&type=terms">Termos de Uso</a></li>
603																<li><a href="https://patriatube.com/terms/privacy-policy" data-load="?link1=terms&type=privacy-policy">Política de Privacidade</a></li>
604																<li><a href="https://patriatube.com/terms/about-us" data-load="?link1=terms&type=about-us">Sobre Nós</a></li>
605										<li><a href="https://patriatube.com/contact-us" data-load="?link1=contact">Contate-nos</a></li>
606															<li><a href="javascript:void(0);" onclick="$('#select-language').modal('show')">Idioma</a></li>
607				</ul>
608			</div>
609		</div>
610	</div>
611</div>
612
613      </footer>
614            <!-- JS FILES -->
615            
616<script>
617  function PT_PlaylistSubscribe(user_id, type,playlist) {
618  if (!user_id || !type || !playlist) { return false; }
619  if (!$('#main-container').attr('data-logged') && $('#main-url').val()) {
620      window.location.href = PT_Ajax_Requests_File() + 'login?to=' + $('#main-url').val();
621      return false;
622  }
623  var subscribe_button = $('.subscribe-id-playlist-' + user_id);
624  if (type == 'subscribe') {
625    subscribe_button.removeClass('plist-btn-subscribe').addClass('plist-btn-subscribed');
626    subscribe_button.html('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M17.75 21.16L15 18.16L16.16 17L17.75 18.59L21.34 15L22.5 16.41L17.75 21.16M3 20V19L5 17V11C5 7.9 7.03 5.18 10 4.29V4C10 2.9 10.9 2 12 2C13.11 2 14 2.9 14 4V4.29C16.97 5.18 19 7.9 19 11V12.08L18 12C14.69 12 12 14.69 12 18C12 18.7 12.12 19.37 12.34 20H3M12 23C10.9 23 10 22.11 10 21H12.8C13.04 21.41 13.33 21.79 13.65 22.13C13.29 22.66 12.69 23 12 23Z" /></svg>');
627    subscribe_button.attr('onclick', 'PT_PlaylistSubscribe(' + user_id + ', "subscribed","'+playlist+'")');
628	subscribe_button.attr('title', 'Inscrito nas notificações da lista de reprodução');
629    $.post('https://patriatube.com/aj/playlist_subscribe', {user_id: user_id,playlist:playlist});
630  } else {
631    var html = "<small>Tem certeza de que deseja cancelar a inscrição? Esta ação não pode ser desfeita.</small>";
632    swal({
633      title: "",
634      type: "",
635      html:html,
636      showCancelButton: true,
637      cancelButtonText: "Não",
638      customClass: 'sweetalert-lg pt_add_to_list_vid',
639      confirmButtonText:'Sim'
640    }).then(function(){
641        subscribe_button.removeClass('plist-btn-subscribed').addClass('plist-btn-subscribe');
642        subscribe_button.html('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M21,19V20H3V19L5,17V11C5,7.9 7.03,5.17 10,4.29C10,4.19 10,4.1 10,4A2,2 0 0,1 12,2A2,2 0 0,1 14,4C14,4.1 14,4.19 14,4.29C16.97,5.17 19,7.9 19,11V17L21,19M14,21A2,2 0 0,1 12,23A2,2 0 0,1 10,21M19.75,3.19L18.33,4.61C20.04,6.3 21,8.6 21,11H23C23,8.07 21.84,5.25 19.75,3.19M1,11H3C3,8.6 3.96,6.3 5.67,4.61L4.25,3.19C2.16,5.25 1,8.07 1,11Z" /></svg>');
643        subscribe_button.attr('onclick', 'PT_PlaylistSubscribe(' + user_id + ', "subscribe","'+playlist+'")');
644		subscribe_button.attr('title', 'Inscreva-se para notificações');
645        $.post('https://patriatube.com/aj/playlist_subscribe', {user_id: user_id,playlist:playlist});
646
647      },function(){
648    });
649    
650  }
651  
652}
653
654function PT_Subscribe(user_id, type) {
655  if (!user_id || !type) { return false; }
656  if (!$('#main-container').attr('data-logged') && $('#main-url').val()) {
657      window.location.href = PT_Ajax_Requests_File() + 'login?to=' + $('#main-url').val();
658      return false;
659  }
660  var subscribe_button = $('.subscribe-id-' + user_id);
661  if (type == 'subscribe') {
662    subscribe_button.removeClass('btn-subscribe').addClass('btn-subscribed');
663    subscribe_button.html('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"><polyline points="20 6 9 17 4 12"></polyline></svg> Inscrito');
664    subscribe_button.attr('onclick', 'PT_Subscribe(' + user_id + ', "subscribed")');
665    $.post('https://patriatube.com/aj/subscribe', {user_id: user_id});
666  } else {
667    var html = "<small>Tem certeza de que deseja cancelar a inscrição? Esta ação não pode ser desfeita.</small>";
668    swal({
669      title: "",
670      type: "",
671      html:html,
672      showCancelButton: true,
673      cancelButtonText: "Não",
674      customClass: 'sweetalert-lg pt_add_to_list_vid',
675      confirmButtonText:'Sim'
676    }).then(function(){
677        subscribe_button.removeClass('btn-subscribed').addClass('btn-subscribe');
678        subscribe_button.html('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg> Inscrever-se');
679        subscribe_button.attr('onclick', 'PT_Subscribe(' + user_id + ', "subscribe")');
680        $.post('https://patriatube.com/aj/subscribe', {user_id: user_id});
681
682      },function(){
683    });
684  }
685  
686}
687
688function PT_Reply(comm_id, name,reply_id) {
689  if (!comm_id) { return false;}
690  var logged = $('#main-container').attr('data-logged');
691  var name   = (name) ? "@"+name+": " : '';
692  if(!logged){
693    window.location.href = "https://patriatube.com/login?to=https://patriatube.com%2Fcontact-us";
694    return false;
695  }
696  else{
697    var reply_form = $('#comm-reply-' + comm_id);
698
699    reply_form.removeClass('hidden').find('input').val(name).focus().scrollTo();
700
701    if (reply_id) {
702      reply_form.attr('data-reply-id',reply_id); 
703    }
704    
705  }
706}
707
708$(function () {
709  $(document).on('click','.load-more' , function(event) {
710    event.preventDefault();
711    var $type = $(this).attr('data-type');
712    var keyword = '';
713    if ($(this).attr('data-keyword')) {
714      keyword = $(this).attr('data-keyword');
715    }
716    var last_id = $('.video-wrapper:last').attr('data-id');
717    var sub_category = '';
718    if ($(this).attr('data-category')) {
719      var $category_id = $(this).attr('data-category');
720      sub_category = $(this).attr('data-sub-category-id');
721      $type = 'category?c_id=' + $category_id + '&sub_category='+sub_category;
722    }
723    views = 0;
724    if ($('.video-wrapper:last').attr('data-views')) {
725      var views = $('.video-wrapper:last').attr('data-views');
726      $type = $type + '?views=' + views;
727    }
728    tr_id = 0;
729    if ($('.video-wrapper:last').attr('data-tr')) {
730      var tr_id = $('.video-wrapper:last').attr('data-tr');
731      $type = $type + '?tr_id=' + tr_id;
732    }
733    user_id = 0;
734    if ($('#profile-id').val()) {
735      var user_id = $('#profile-id').val();
736    }
737    
738    data1 = {};
739    if ($type == 'top') {
740      for (var i = 0; i < $('.video-wrapper').length; i++) {
741        if ($($('.video-wrapper')[i]).attr('data-views') == views) {
742          data1[i] = $($('.video-wrapper')[i]).attr('data-views');
743        }
744      }
745    }
746    else{
747      if (views) {
748        var asdf = $('div[data-views=' + views + ']').each(function(index, el) {
749          data1[index] = $(this).attr('data-id')
750        });
751      }
752    }
753    
754    date = '';
755    category = '';
756    if ($(this).attr('data-type') == 'search') {
757      date = $(this).attr('data-by-date');
758      category = $(this).attr('data-by-category');
759    }
760
761    paid_sort = '';
762    if ($(this).attr('data-type') == 'paid_videos') {
763      paid_sort = $(this).attr('data-video-type');
764    }
765
766    if ($(this).attr('data-type') == 'video_comment') {
767      $type = 'video_comment';
768      last_id = $('.comment_info:last').attr('data-comment-id');
769    }
770
771    video_studio_ids = [];
772    video_studio_type = '';
773
774    if ($(this).attr('data-type') == 'video_studio') {
775      for (var i = 0; i < $('.video-wrapper').length; i++) {
776          video_studio_ids.push($($('.video-wrapper')[i]).attr('data-id'));
777      }
778      video_studio_type = $(this).attr('sort-type');
779    }
780
781    var channels_ids = [];
782    var sort_type = '';
783    var sort_by = '';
784
785    if ($(this).attr('data-type') == 'popular_channels') {
786      channels_ids = [];
787      last_id = $('.channels_list:last').attr('data-channel-views');
788      for (var i = 0; i < $('.channels_list').length; i++) {
789        if ($($('.channels_list')[i]).attr('data-channel-views') == last_id) {
790          channels_ids.push($($('.channels_list')[i]).attr('data-channel-id'));
791        }
792      }
793      sort_by = $(this).attr('data-sort-by');
794      sort_type = $(this).attr('data-sort-type');
795    }
796
797    $('.load-more').text("Por favor, espere..");
798    $.post('https://patriatube.com/aj/load-more/' + $type + '', {last_id: last_id, ids: data1, keyword:keyword, user_id: user_id,date:date,category:category,video_studio_ids:video_studio_ids,video_studio_type:video_studio_type,channels_ids:channels_ids,sort_type:sort_type,sort_by:sort_by,paid_sort:paid_sort}, function(data, textStatus, xhr) {
799       if (data.status == 200) {
800          if ($type == 'subscriptions' || $type == 'history' || $type == 'saved_videos' || $type == 'liked_videos' || $type == 'my_videos' || $type == 'video_studio' || $type == 'search' || $type == 'popular_channels') {
801            if ($('#video_studio_ids').length > 0) {
802              $('#video_studio_ids').attr('value',data.video_ids_);
803              $('#video_studio_ids').attr('data_by_id',data.by_ids);
804            }
805             $('.author-list').append(data.videos);
806          } else {
807            if ($type == 'video_comment') {
808              $('#comments_container').append(data.comments);
809            }else{
810              $('.videos-latest-list').append(data.videos);
811            }
812          }
813          $('.load-more').text("Mostre mais");
814       } else {
815            if ($type == 'video_comment') {
816              $('.load-more').text("Não foram encontrados mais comentários");
817            }else if($type == 'popular_channels'){
818              $('.load-more').text("Não há mais canais para mostrar");
819            }else{
820              $('.load-more').text("Não há mais vídeos para mostrar");
821            }
822       }
823       scrolled = 0;
824    });
825  });
826});
827
828
829function PT_LoadPost(category, self){
830  if (!self) { return false;}
831
832  var last_id = ($('.article-wrapper').length > 0) ? $('.article-wrapper:last').attr('data-id') : 0;
833  if (last_id && last_id > 0) {
834    $.post('https://patriatube.com/aj/load-more/articles', {last_id: last_id,cat:category}, function(data, textStatus, xhr) {
835       if (data.status == 200) {
836          $('.articles-container').append(data.posts);
837          $(self).text("Mostre mais");
838       }
839
840       else {
841          $(self).text("Não mais artigos");
842       }
843    });
844  }
845}
846
847function PT_LoadActivity(self){
848  if (!self) { return false;}
849
850  var last_id = ($('.article-wrapper').length > 0) ? $('.article-wrapper:last').attr('data-id') : 0;
851  if (last_id && last_id > 0) {
852    $.post('https://patriatube.com/aj/load-more/activity', {last_id: last_id}, function(data, textStatus, xhr) {
853       if (data.status == 200) {
854          $('.articles-container').append(data.posts);
855          $(self).text("Mostre mais");
856       }
857
858       else {
859          $(self).text("Nenhuma atividade para visualizar");
860       }
861    });
862  }
863}
864
865function PT_DeleteVideo(id, type) {
866  if (!id) {
867    return false;
868  }
869  if (!confirm("Excluir confirmação de vídeo")) {
870    return false;
871  }
872  if (type == 'edit-page') {
873    $('.btn-delete').attr('disabled', true);
874    $('.btn-delete').val("Por favor, espere..");
875  } else if (type == 'manage-page') {
876    $('#video-' + id).slideUp('200', function () {
877      $(this).remove();
878    });
879  }
880  $.post('https://patriatube.com/aj/delete-video', {id: id}, function(data, textStatus, xhr) {
881    if (data.status == 200) {
882      if (type == 'edit-page') {
883        window.location.href = 'https://patriatube.com/video_studio';
884      } 
885    }
886  });
887}
888
889function PT_DeleteActivity(id) {
890  if (!id) {
891    return false;
892  }
893  if (!confirm("Tem certeza de que deseja excluir esta atividade? Esta ação não pode ser desfeita.")) {
894    return false;
895  }
896
897  $('#activity-' + id).slideUp('200', function () {
898    $(this).remove();
899  });
900
901  $.post('https://patriatube.com/aj/delete-activity', {id: id}, function(data, textStatus, xhr) {
902  });
903}
904
905function PT_DeleteHistory(id) {
906  if (!id) {
907    return false;
908  }
909  $('#video-' + id).fadeOut('200', function () {
910    $(this).remove();
911  });
912  $.post('https://patriatube.com/aj/delete-history', {id: id});
913  Snackbar.show({text: '<div><img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHZpZXdCb3g9JzAgMCAyMCAyMCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KCTxnPgoJCTxwYXRoIGQ9J00tMi0yaDI0djI0SC0yeicgZmlsbD0nbm9uZScvPgoJCTxwYXRoIGQ9J00xMCAwQzQuNDggMCAwIDQuNDggMCAxMHM0LjQ4IDEwIDEwIDEwIDEwLTQuNDggMTAtMTBTMTUuNTIgMCAxMCAwek04IDE1bC01LTUgMS40MS0xLjQxTDggMTIuMTdsNy41OS03LjU5TDE3IDZsLTkgOXonIGZpbGw9JyMyNkJDNEUnLz4KCTwvZz4KPC9zdmc+Cg=="/> Removido do Histórico</div>'});
914}
915
916function PT_DeleteSaved(id) {
917  if (!id) {
918    return false;
919  }
920  $('#video-' + id).slideUp('200', function () {
921    $(this).remove();
922  });
923  $.post('https://patriatube.com/aj/delete-saved', {id: id});
924}
925
926function PT_AddToList(video_id){
927  if (!video_id) {
928    return false;
929  }
930
931  var name = '';
932  var desc = '';
933  var id   = video_id;
934
935  $.ajax({
936    url: 'https://patriatube.com/aj/lists',
937    type: 'GET',
938    dataType: 'json',
939    data: {type: 'list',a:'add',id:id},
940  })
941  .done(function(data) {
942    if (data.status == 200) {
943      swal({
944        title: "",
945        type: "",
946        html:data.html,
947        showCancelButton: true,
948        cancelButtonText: "Fechar",
949        customClass: 'sweetalert-lg pt_add_to_list_vid',
950        confirmButtonText:'Crie um novo'
951      }).then(function(){
952          PT_NewList();
953        },function(){
954      });
955    }
956    else{
957      swal(
958        'Error!',
959        'Something went wrong.Please try again later!',
960        'error'
961      );
962    }
963  })
964  .fail(function() {
965    console.log("error");
966  })
967  .always(function() {
968    console.log("complete");
969  });
970}
971
972function PT_ReportVideo(video_id,self){
973  if (!video_id || !self) { return false;}
974
975    var message = "";
976    self = $(self);
977    if (self.attr('data-rep') == 1) {
978      swal({
979        title: 'Denunciar este vídeo',
980        html: $('<form>').add($('<p>',{
981          text:"Por favor, escreva um resumo do que este vídeo foi sobre",
982          class:'report-message-label'
983        })).add($('<textarea>',{
984          id:'report-message',
985          rows: 4,
986          placeholder:'Mensagem'
987        })),
988        showCancelButton: true,
989        confirmButtonText: 'Enviar',
990        cancelButtonText: 'Cancelar',
991		confirmButtonClass:'btn btn-main btn-block pt_wallet_btn',
992		cancelButtonClass:"btn btn-default btn-block pt_wallet_btn",
993        customClass:'report-video-popup',
994		buttonsStyling:false,
995        animation: false,
996        preConfirm: function(name){
997          return new Promise(function(resolve,reject){
998              message = $('#report-message').val();
999              if (message.length < 1) {
1000                swal.showValidationError(
1001                  'Por favor verifique os detalhes'
1002                );
1003                reject();
1004              }
1005              else{
1006                resolve();
1007              }
1008          });
1009        },
1010        allowOutsideClick: false
1011      }).then(function(){
1012        $.ajax({
1013          url: 'https://patriatube.com/aj/report/video/report',
1014          type: 'POST',
1015          dataType: 'json',
1016          data: {id: video_id,text:message},
1017        })
1018        .done(function(data) {
1019          if (data.status == 200) {
1020            swal({
1021              title: 'Obrigado',
1022              html: 'Nós recebemos sua denúncia!'
1023            });
1024            self.find('span').text('Cancelar Denúncia');
1025            self.attr('data-rep', '0');
1026            self.addClass('active');
1027          }
1028          else if(data.status == 304){
1029            self.find('span').text('Denunciar');
1030            self.attr('data-rep', '1');
1031            self.removeClass('active');
1032            notif({
1033              msg: "Sua denúncia foi cancelada!",
1034              type: "default",
1035              fade:0,
1036              timeout:1500
1037            });
1038          }
1039        });
1040      });
1041    }
1042    else{
1043      $.ajax({
1044        url: 'https://patriatube.com/aj/report/video/cancel',
1045        type: 'POST',
1046        dataType: 'json',
1047        data: {id: video_id},
1048      })
1049      .done(function(data) {
1050        if(data.status == 304){
1051          self.find('span').text('Denunciar');
1052          self.attr('data-rep', '1');
1053          self.removeClass('active');
1054          notif({
1055            msg: "Sua denúncia foi cancelada!",
1056            type: "default",
1057            fade:0,
1058            timeout:1500
1059          });
1060        }
1061      });
1062    }  
1063}
1064
1065function PT_ReportCopyVideo(video_id,self){
1066  if (!video_id || !self) { return false;}
1067  var text1 = "Acredito de boa fé que o uso do trabalho protegido por direitos autorais descrito acima não está autorizado pelo proprietário dos direitos autorais, por seu agente ou pela lei";
1068  var text2 = "Confirmo que sou o proprietário dos direitos autorais ou estou autorizado a agir em nome do proprietário de um direito exclusivo que supostamente foi violado.";
1069  var error = "Marque as caixas de seleção abaixo se você possui os direitos autorais.";
1070  swal({
1071        title: 'Criar aviso de retirada do DMCA',
1072        html: $('<form>').add($('<p>',{
1073          text:"Descreva sua solicitação com cuidado e, tanto quanto possível, observe que solicitações falsas de DMCA podem levar ao encerramento da conta.",
1074          class:'report-message-label'
1075        })).add($('<textarea>',{
1076          id:'report-message-copy',
1077          rows: 4,
1078          placeholder:'Mensagem'
1079        })).add($('<div class="custom-control custom-radio checkbox checkbox-primary"><input type="checkbox" id="confirm_1" name="confirm_1" class="custom-control-input"><label class="custom-control-label" for="confirm_1">'+text1+'</label></div><div class="custom-control custom-radio checkbox checkbox-primary"><input type="checkbox" id="confirm_2" name="confirm_2" class="custom-control-input"><label class="custom-control-label" for="confirm_2">'+text2+'</label></div>')),
1080        showCancelButton: true,
1081        confirmButtonText: 'Enviar',
1082        cancelButtonText: 'Cancelar',
1083        customClass:'report-video-popup pt_rep_copy_vid',
1084		confirmButtonClass:'btn btn-main btn-block pt_wallet_btn',
1085		cancelButtonClass:"btn btn-default btn-block pt_wallet_btn",
1086        animation: false,
1087		buttonsStyling:false,
1088        preConfirm: function(name){
1089          return new Promise(function(resolve,reject){
1090              message = $('#report-message-copy').val();
1091              if (message.length < 1) {
1092                swal.showValidationError(
1093                  'Por favor verifique os detalhes'
1094                );
1095                reject();
1096              }
1097              else{
1098                if ($('#confirm_1').is(':not(:checked)')) {
1099                  swal.showValidationError(
1100                    error
1101                  );
1102                  reject();
1103                }
1104                else{
1105                  if ($('#confirm_2').is(':not(:checked)')) {
1106                    swal.showValidationError(
1107                      error
1108                    );
1109                    reject();
1110                  }
1111                  else{
1112                    resolve();
1113                  }
1114                }
1115              }
1116          });
1117        },
1118        allowOutsideClick: false
1119      }).then(function(){
1120        $.ajax({
1121          url: 'https://patriatube.com/aj/main/copy_report?hash=' + $('.main_session').val(),
1122          type: 'POST',
1123          dataType: 'json',
1124          data: {id: video_id,text:message},
1125        })
1126        .done(function(data) {
1127          if (data.status == 200) {
1128            swal({
1129              title: 'Obrigado',
1130              html: 'Nós recebemos sua denúncia!'
1131            });
1132          }
1133          else if(data.status == 304){
1134            self.find('span').text('Denunciar');
1135            self.attr('data-rep', '1');
1136            self.removeClass('active');
1137            notif({
1138              msg: "Sua denúncia foi cancelada!",
1139              type: "default",
1140              fade:0,
1141              timeout:1500
1142            });
1143          }
1144        });
1145      });
1146
1147}
1148
1149function PT_PLVToggle(id,self){
1150  if (!id || !self) {
1151    return false;
1152  }
1153  var self = $(self);
1154  var list = self.attr('id');
1155  $.ajax({
1156    url: 'https://patriatube.com/aj/lists',
1157    type: 'GET',
1158    dataType: 'json',
1159    data: {type: 'list',a:'tg',id:id,list:list},
1160  })
1161  .done(function(data) {
1162    if (data.status == 200 && data.code == 1) {
1163      self.find('.pt-plist-tgl_btn').html('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="green" d="M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M17,15A3,3 0 0,1 14,12A3,3 0 0,1 17,9A3,3 0 0,1 20,12A3,3 0 0,1 17,15Z" /></svg>');
1164      notif({
1165        msg: "Adicionado a " + data.name,
1166        type: "default",
1167        fade:0,
1168        timeout:1500
1169      });
1170    }
1171
1172    else if(data.status == 200 && data.code == 0){
1173      self.find('.pt-plist-tgl_btn').html('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M7,10A2,2 0 0,1 9,12A2,2 0 0,1 7,14A2,2 0 0,1 5,12A2,2 0 0,1 7,10M17,7A5,5 0 0,1 22,12A5,5 0 0,1 17,17H7A5,5 0 0,1 2,12A5,5 0 0,1 7,7H17M7,9A3,3 0 0,0 4,12A3,3 0 0,0 7,15H17A3,3 0 0,0 20,12A3,3 0 0,0 17,9H7Z" /></svg>');
1174      notif({
1175        msg: "Removido de " + data.name,
1176        type: "default",
1177        fade:0,
1178        timeout:1500
1179      });
1180    }
1181
1182    else{
1183      swal(
1184        'Error!',
1185        'Something went wrong.Please try again later!',
1186        'error'
1187      );
1188    }
1189  })
1190  .fail(function() {
1191    console.log("error");
1192  })  
1193}
1194
1195function PT_WLToggle(id,self){
1196  if (!id || !self) {
1197    return false;
1198  }
1199  var self = $(self);
1200  $.ajax({
1201    url: 'https://patriatube.com/aj/lists',
1202    type: 'GET',
1203    dataType: 'json',
1204    data: {type: 'list',a:'wl-tg',id:id},
1205  })
1206  .done(function(data) {
1207    if (data.status == 200 && data.code == 1) {
1208      self.find('.pt-plist-tgl_btn').html('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="green" d="M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M17,15A3,3 0 0,1 14,12A3,3 0 0,1 17,9A3,3 0 0,1 20,12A3,3 0 0,1 17,15Z" /></svg>');
1209      notif({
1210        msg: "Adicionado a \"Assistir depois\"",
1211        type: "default",
1212        fade:0,
1213        timeout:1500
1214      });
1215    }
1216
1217    else if(data.status == 200 && data.code == 0){
1218      self.find('.pt-plist-tgl_btn').html('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M7,10A2,2 0 0,1 9,12A2,2 0 0,1 7,14A2,2 0 0,1 5,12A2,2 0 0,1 7,10M17,7A5,5 0 0,1 22,12A5,5 0 0,1 17,17H7A5,5 0 0,1 2,12A5,5 0 0,1 7,7H17M7,9A3,3 0 0,0 4,12A3,3 0 0,0 7,15H17A3,3 0 0,0 20,12A3,3 0 0,0 17,9H7Z" /></svg>');
1219      notif({
1220        msg: "Removido de \"Assistir depois\"",
1221        type: "default",
1222        fade:0,
1223        timeout:1500
1224      });
1225    }
1226
1227    else{
1228      swal(
1229        'Error!',
1230        'Something went wrong.Please try again later!',
1231        'error'
1232      );
1233    }
1234  })
1235  .fail(function() {
1236    console.log("error");
1237  })  
1238}
1239
1240function PT_NewList(){
1241  swal({
1242    title: '',
1243    type: "",
1244    html:'<form class="form pt_forms create-new-list"><div class="create-new-list-head"><p>Criar nova playlist</p></div><div class="sa-create-list-alert"></div><div class="form-group"><input type="text" class="form-control" placeholder="Nome da playlist 0 / 30"></div><div class="form-group"><select class="form-control"><option value="1" selected="selected">Privacidade</option><option value="1">Público</option><option value="0">Privado</option></select></div><div class="form-group"><textarea name="" id="" rows="3" class="form-control optional-field" placeholder="Descrição.."></textarea></div></form>',
1245    showCancelButton: true,
1246    allowOutsideClick:false,
1247    confirmButtonText:'Criar',
1248    cancelButtonText:'Cancelar',
1249	customClass: 'pt_add_to_list_vid',
1250    preConfirm: function (email) {
1251    return new Promise(function (resolve, reject) {
1252        name     = $(".create-new-list").find('input').val();
1253        desc     = $(".create-new-list").find('textarea').val();
1254        privacy  = $(".create-new-list").find('select').val();
1255        setTimeout(function() {
1256          if (name == '') {
1257            reject('O nome da lista de reprodução é obrigatório.');
1258          }
1259          else if(privacy < 0 || privacy > 1){
1260            reject('Por favor verifique os detalhes');
1261          }
1262          else {
1263            resolve();
1264          }
1265        }, 100)
1266      })
1267    }
1268  }).then(function(){
1269    if (!name){ return;}
1270    $.ajax({
1271      url: 'https://patriatube.com/aj/lists?type=list&a=new',
1272      type: 'POST',
1273      dataType: 'json',
1274      data: {name:name,desc:desc,pr:privacy},
1275    })
1276    .done(function(data) {
1277      if (data.status == 200) {
1278        swal({
1279          title:name,
1280          text:"PlayList foi adicionado com sucesso!",
1281          type:'success'
1282        });
1283
1284        PT_Delay(function(){
1285          swal.close();
1286        },2000);
1287      }
1288      else if(data.status == 200){
1289        swal(
1290          'Error!',
1291          'Something went wrong.Please try again later!',
1292          'error'
1293        );
1294      }
1295    })
1296    .fail(function() {
1297      swal.close();
1298      console.log("error");
1299    })
1300  },
1301  function(){
1302    //Error
1303  })
1304}
1305
1306function PT_EditList(id){
1307  if (!id) {
1308    return false;
1309  }
1310  $.ajax({
1311    url: 'https://patriatube.com/aj/lists',
1312    type: 'GET',
1313    dataType: 'json',
1314    data: {type: 'list',a:'edit',id:id},
1315  })
1316  .done(function(data) {
1317    if (data.status == 200) {
1318      swal({
1319        title: '',
1320        type: "",
1321        html:data.html,
1322        showCancelButton: true,
1323        allowOutsideClick:false,
1324        confirmButtonText:'<i class="fa fa-floppy-o"></i> Salve',
1325        cancelButtonText:'Cancelar',
1326        preConfirm: function (email) {
1327        return new Promise(function (resolve, reject) {
1328            name     = $(".edit-list-form").find('input').val();
1329            desc     = $(".edit-list-form").find('textarea').val();
1330            privacy  = $(".edit-list-form").find('select').val();
1331            setTimeout(function() {
1332              if (name == '') {
1333                reject('');
1334              }
1335              else if(privacy < 0 || privacy > 1){
1336                reject('Por favor verifique os detalhes');
1337              }
1338              else {
1339                resolve();
1340              }
1341            }, 100)
1342          })
1343        }
1344      }).then(function(){
1345        if (!name){ return;}
1346        $.ajax({
1347          url: 'https://patriatube.com/aj/lists?type=list&a=update',
1348          type: 'POST',
1349          dataType: 'json',
1350          data: {name:name,desc:desc,pr:privacy,id:id},
1351        })
1352        .done(function(data) {
1353          if (data.status == 200) {
1354            swal({
1355              title:name,
1356              text:"A PlayList foi salva com sucesso!",
1357              type:'success'
1358            });
1359
1360            PT_Delay(function(){
1361              swal.close();
1362            },2000);
1363          }
1364          else if(data.status == 200){
1365            swal(
1366              'Error!',
1367              'Something went wrong.Please try again later!',
1368              'error'
1369            );
1370          }
1371        })
1372        .fail(function() {
1373          swal.close();
1374          console.log("error");
1375        })
1376      },
1377      function(){
1378        //Error
1379      })
1380    }
1381  })
1382  .fail(function() {
1383    console.log("error");
1384  })
1385}
1386
1387function PT_DeleteList(id){
1388  if (!id) { return false;}
1389  swal({
1390    title: 'Confirmação!',
1391    text: "Tem certeza de que deseja excluir esta PlayList?",
1392    type: 'warning',
1393    showCancelButton: true,
1394    confirmButtonColor: '#3085d6',
1395    cancelButtonColor: '#d33',
1396    confirmButtonText: 'Sim, exclua!'
1397  }).then(function(){
1398    $.ajax({
1399      url: 'https://patriatube.com/aj/lists',
1400      type: 'GET',
1401      dataType: 'json',
1402      data: {type: 'list',a:'delist',id:id},
1403    })
1404    .done(function(data) {
1405      if (data.status == 200) {
1406        $("[data-playlist='"+id+"']").slideUp(function(){
1407          $(this).remove();
1408        });
1409        
1410        swal({
1411          title:"Excluído!",
1412          text:data.name +  " Foi deletado!",
1413          type:"success"
1414        });
1415      }
1416      else{
1417        swal(
1418          'Error!',
1419          'Something went wrong.Please try again later!',
1420          'error'
1421        );
1422      }
1423    })
1424    .fail(function() {
1425      console.log("error");
1426    })
1427    
1428  })
1429}
1430
1431function PT_DelFromList(list_id,video_id){
1432  if (!list_id || !video_id) {
1433    return false;
1434  }
1435
1436  $.ajax({
1437    url: 'https://patriatube.com/aj/lists',
1438    type: 'GET',
1439    dataType: 'json',
1440    data: {type: 'list',a:'delvid',video_id:video_id,list_id:list_id},
1441  })
1442  .done(function(data) {
1443    if (data.status == 200) {
1444      $("[data-video-id='"+video_id+"']").slideUp(function(){
1445        $(this).remove();
1446      })
1447    }
1448    else{
1449      swal(
1450        'Error!',
1451        'Something went wrong.Please try again later!',
1452        'error'
1453      );
1454    }
1455  })
1456  .fail(function() {
1457    swal(
1458      'Error!',
1459      'Something went wrong.Please try again later!',
1460      'error'
1461    );
1462  })
1463}
1464
1465function PT_RemoveFromWL(video_id){
1466  if (!video_id) {
1467    return false;
1468  }
1469
1470  $.ajax({
1471    url: 'https://patriatube.com/aj/lists',
1472    type: 'GET',
1473    dataType: 'json',
1474    data: {type: 'list',a:'delwl',video_id:video_id},
1475  })
1476  .done(function(data) {
1477    if (data.status == 200) {
1478      $("[data-video-id='"+video_id+"']").slideUp(function(){
1479        $(this).remove();
1480      })
1481    }
1482    else{
1483      swal(
1484        'Error!',
1485        'Something went wrong.Please try again later!',
1486        'error'
1487      );
1488    }
1489  })
1490  .fail(function() {
1491    swal(
1492      'Error!',
1493      'Something went wrong.Please try again later!',
1494      'error'
1495    );
1496  })
1497}
1498
1499function PT_RVReply(text,comm_id,event,video_id){
1500  
1501  if (!text || !comm_id || !event || !video_id) {
1502    return false;
1503  }
1504  else if(event.keyCode == 13 && event.shiftKey == 0){
1505    var reply_id = 0;
1506    if($("#comm-reply-"+comm_id).attr('data-reply-id')){
1507      reply_id = $("#comm-reply-"+comm_id).attr('data-reply-id');
1508    }
1509
1510    $.ajax({
1511      url: "https://patriatube.com/aj/add-reply/video",
1512      type: 'POST',
1513      dataType: 'json',
1514      data: {text:text,id:comm_id,video_id:video_id,reply:reply_id},
1515    })
1516    .done(function(data) {
1517      if (data.status == 200) {
1518        $("#pt-comment-replies-cont-" + comm_id).append(data.html)
1519        $("#comm-reply-"+comm_id).find('input').val('').blur();
1520
1521      }
1522      $("#comment-reply-loading-renderer-"+comm_id).addClass('hidden');
1523    })
1524    .fail(function() {
1525      alert('Sorry, something went wrong: Please try again later ...');
1526    })
1527  }
1528}
1529
1530function PT_RPReply(text,comm_id,event,post_id){
1531  
1532  if (!text || !comm_id || !event || !post_id) {
1533    return false;
1534  }
1535  else if(event.keyCode == 13 && event.shiftKey == 0){
1536    var reply_id = 0;
1537    if($("#comm-reply-"+comm_id).attr('data-reply-id')){
1538      reply_id = $("#comm-reply-"+comm_id).attr('data-reply-id');
1539    }
1540
1541    $.ajax({
1542      url: "https://patriatube.com/aj/add-reply/article",
1543      type: 'POST',
1544      dataType: 'json',
1545      data: {text:text,id:comm_id,post_id:post_id,reply:reply_id},
1546    })
1547    .done(function(data) {
1548      if (data.status == 200) {
1549        $("#pt-comment-replies-cont-" + comm_id).append(data.html)
1550        $("#comm-reply-"+comm_id).find('input').val('').blur();
1551      }
1552      $("#comment-reply-loading-renderer-"+comm_id).addClass('hidden');
1553    })
1554    .fail(function() {
1555      alert('Sorry, something went wrong: Please try again later ...');
1556    })
1557  }
1558}
1559
1560function PT_RAReply(text,comm_id,event,post_id){
1561  
1562  if (!text || !comm_id || !event || !post_id) {
1563    return false;
1564  }
1565  else if(event.keyCode == 13 && event.shiftKey == 0){
1566    var reply_id = 0;
1567    if($("#comm-reply-"+comm_id).attr('data-reply-id')){
1568      reply_id = $("#comm-reply-"+comm_id).attr('data-reply-id');
1569    }
1570
1571    $.ajax({
1572      url: "https://patriatube.com/aj/add-reply/activity",
1573      type: 'POST',
1574      dataType: 'json',
1575      data: {text:text,id:comm_id,post_id:post_id,reply:reply_id},
1576    })
1577    .done(function(data) {
1578      if (data.status == 200) {
1579        $("#pt-comment-replies-cont-" + comm_id).append(data.html)
1580        $("#comm-reply-"+comm_id).find('input').val('').blur();
1581      }
1582      $("#comment-reply-loading-renderer-"+comm_id).addClass('hidden');
1583    })
1584    .fail(function() {
1585      alert('Sorry, something went wrong: Please try again later ...');
1586    })
1587  }
1588}
1589
1590function PT_DeleteReply(id) {
1591  if (!id) { return false; }
1592  if (!confirm('Tem certeza de que deseja excluir seu comentário?')) { return false; }
1593  $('#reply-' + id).slideUp('fast');
1594  $.post('https://patriatube.com/aj/delete-reply', {id: id});
1595}
1596
1597function PT_LikeComments(self,type,comment_id){
1598  if (!self || (type != 'up' && type != 'down') || !comment_id){
1599    return false;
1600  }
1601
1602  else if (!$('#main-container').attr('data-logged') && $('#main-url').val()) {
1603    window.location.href = PT_Ajax_Requests_File() + 'login?to=' + $('#main-url').val();
1604    return false;
1605  }
1606
1607  var self = $(self);
1608  $.ajax({
1609    url: 'https://patriatube.com/aj/comment-like-system/' + type,
1610    type: 'POST',
1611    dataType: 'json',
1612    data: {id:comment_id}
1613  })
1614  .done(function(data) {
1615    if (data.status == 200 && type == 'up' && data.type == 'added_like'){
1616      self.find('span').text((data.up));
1617      $('[data-comment-dislikes="'+comment_id+'"]').find('span').text((data.down));
1618      self.find('svg.feather').addClass('active');
1619      self.siblings().find('svg.feather').removeClass('active');
1620      
1621    }
1622
1623    else if (data.status == 200 && type == 'up' && data.type == 'deleted_like'){
1624      self.find('span').text((data.up));
1625      $('[data-comment-dislikes="'+comment_id+'"]').find('span').text((data.down));
1626      self.find('svg.feather').removeClass('active');
1627      self.siblings().find('svg.feather').removeClass('active');
1628    }
1629
1630    else if (data.status == 200 && type == 'down' && data.type == 'added_dislike'){
1631      self.find('span').text((data.down));
1632      self.find('svg.feather').addClass('active');
1633      $('[data-comment-likes="'+comment_id+'"]').find('span').text((data.up));
1634      self.siblings().find('svg.feather').removeClass('active');
1635    }
1636
1637    else if (data.status == 200 && type == 'down' && data.type == 'deleted_dislike'){
1638      self.find('span').text((data.down));
1639      self.find('svg.feather').removeClass('active');
1640      $('[data-comment-likes="'+comment_id+'"]').find('span').text((data.up));
1641      self.siblings().find('svg.feather').removeClass('active');
1642    }
1643
1644    else{
1645      swal(
1646         'Error!',
1647         'Something went wrong.Please try again later!',
1648         'error'
1649       );
1650    }
1651  })
1652  .fail(function() {
1653    console.log("error");
1654  })
1655}
1656
1657function PT_LikeReplies(self,type,reply_id){
1658  if (!self || (type != 'up' && type != 'down') || !reply_id){
1659    return false;
1660  }
1661
1662  else if (!$('#main-container').attr('data-logged') && $('#main-url').val()) {
1663    window.location.href = PT_Ajax_Requests_File() + 'login?to=' + $('#main-url').val();
1664    return false;
1665  }
1666
1667  var self = $(self);
1668  $.ajax({
1669    url: 'https://patriatube.com/aj/reply-like-system/' + type,
1670    type: 'POST',
1671    dataType: 'json',
1672    data: {id:reply_id}
1673  })
1674  .done(function(data) {
1675    if (data.status == 200 && type == 'up' && data.type == 'added_like'){
1676      self.find('span').text((data.up));
1677      $('[data-reply-dislikes="'+reply_id+'"]').find('span').text((data.down));
1678      self.find('svg.feather').addClass('active');
1679      self.siblings().find('svg.feather').removeClass('active');
1680      
1681    }
1682
1683    else if (data.status == 200 && type == 'up' && data.type == 'deleted_like'){
1684      self.find('span').text((data.up));
1685      $('[data-reply-dislikes="'+reply_id+'"]').find('span').text((data.down));
1686      self.find('svg.feather').removeClass('active');
1687      self.siblings().find('svg.feather').removeClass('active');
1688    }
1689
1690    else if (data.status == 200 && type == 'down' && data.type == 'added_dislike'){
1691      self.find('span').text((data.down));
1692      self.find('svg.feather').addClass('active');
1693      $('[data-reply-likes="'+reply_id+'"]').find('span').text((data.up));
1694      self.siblings().find('svg.feather').removeClass('active');
1695    }
1696
1697    else if (data.status == 200 && type == 'down' && data.type == 'deleted_dislike'){
1698      self.find('span').text((data.down));
1699      self.find('svg.feather').removeClass('active');
1700      $('[data-reply-likes="'+reply_id+'"]').find('span').text((data.up));
1701      self.siblings().find('svg.feather').removeClass('active');
1702    }
1703
1704    else{
1705      swal(
1706         'Error!',
1707         'Something went wrong.Please try again later!',
1708         'error'
1709       );
1710    }
1711  })
1712  .fail(function() {
1713    console.log("error");
1714  })
1715}
1716
1717function pt_hide_announcement(id){
1718  if (!id) { return false; }
1719  $("#announcement-"+id).slideUp('fast',function(){
1720    $(this).remove();
1721    $.post('https://patriatube.com/aj/main/hide-announcement', {id: id}, function(data, textStatus, xhr) { /* pass */ });
1722  })  
1723}
1724function pay_to_see(video_id,price,type = 'buy') {
1725  PayUsingWallet(type,'show',video_id,price);
1726  return false;
1727  
1728  $('.p_t_show_btn_').attr('disabled', 'true');
1729  
1730  if (type == 'rent') {
1731    $('.p_t_show_btn_rent').text("Por favor, espere..");
1732    $('.p_t_show_btn_rent').text("Alugar R$"+price);
1733    PT_ShowMethods('rent',video_id,price);
1734  }
1735  else{
1736    $('.p_t_show_btn_buy').text("Por favor, espere..");
1737    $('.p_t_show_btn_buy').text("Compra R$"+price);
1738    PT_ShowMethods('pay',video_id,price);
1739  }
1740  
1741  $('.p_t_show_btn_').removeAttr('disabled');
1742}
1743
1744function PT_ShowMethods(type,video_id = 0,price = 0,user_id = 0) {
1745  $.post('https://patriatube.com/aj/wallet/get_modal',{type:type,video_id:video_id,price:price,user_id:user_id}, function(data, textStatus, xhr) {
1746    if (data.status == 200) {
1747      $('.payment_method').html(data.html);
1748      $('#pay-go-pro').modal({
1749             show: true
1750            });
1751    }
1752    if (type == 'subscribe') {
1753      $('.subscribe-id-'+user_id).find('span').text("Inscrever-se");
1754      $('.subscribe-id-'+user_id).removeAttr('disabled');
1755    }
1756  });
1757}
1758
1759
1760  function PT_PurchasePkg(pkg,self,video_id,price,user_id = 0){
1761    if (!pkg || !self) {
1762      return false;
1763    }
1764
1765    $(self).text("Por favor, espere..").attr('disabled', 'true');
1766    if (pkg == 'wallet') {
1767        amount = $("#wallet_amount").val();
1768
1769      $.ajax({
1770        url: 'https://patriatube.com/aj/wallet/replenish',
1771        type: 'POST',
1772        dataType: 'json',
1773        data: {amount:amount},
1774      })
1775      .done(function(data) {
1776        if (data.status == 200) {
1777          window.location.href = data.url;
1778        }
1779        else{
1780          swal({
1781            title:"Erro!",
1782            text:"Algo deu errado Por favor, tente novamente mais tarde!",
1783            type:"error"
1784          });
1785        }
1786      })
1787      .fail(function() {
1788        swal({
1789          title:"Erro!",
1790          text:"Algo deu errado Por favor, tente novamente mais tarde!",
1791          type:"error"
1792        });
1793      });
1794    }
1795  }
1796
1797  function pay_using_iyzipay(pkg,self,video_id,price,user_id = 0) {
1798    $('.btn-iyzipay').attr('disabled','true');
1799    $('.btn-iyzipay').find('span').text("Por favor, espere..");
1800    pay_type = '';
1801    if (pkg == 'pro') {
1802      path = '/go_pro/iyzipay';
1803    }
1804    else if (pkg == 'wallet') {
1805      path = '/wallet/iyzipay';
1806      price = $("#wallet_amount").val();
1807    }
1808    else if (pkg == 'pay') {
1809      path = '/go_pro/iyzipay_pay_to_see';
1810    }
1811    else if (pkg == 'rent') {
1812      path = '/go_pro/iyzipay_pay_to_see';
1813      pay_type = 'rent';
1814    }
1815    else if (pkg == 'subscribe') {
1816      path = '/go_pro/subscribe';
1817    }
1818
1819    $.post('https://patriatube.com/aj'+path, {video_id:video_id,amount:price,user_id:user_id,pay_type:pay_type,type:'iyzipay'}, function(data) {
1820      if (data.status == 200) {
1821        $('#iyzipay_content').html('');
1822        $('#iyzipay_content').html(data.html);
1823      } else {
1824        $('.btn-iyzipay').attr('disabled', false).html("Iyzipay App not set yet.");
1825      }
1826      $('.btn-iyzipay').removeAttr('disabled');
1827      $('.btn-iyzipay').find('span').text("Iyzipay");
1828    });
1829  }
1830  function pay_using_paysera(pkg,self,video_id,price,user_id = 0) {
1831    $('.btn-paysera').attr('disabled','true');
1832    $('.btn-paysera').find('span').text("Por favor, espere..");
1833    pay_type = '';
1834    if (pkg == 'pro') {
1835      path = '/go_pro/paysera';
1836    }
1837    else if (pkg == 'wallet') {
1838      path = '/wallet/paysera';
1839      price = $("#wallet_amount").val();
1840    }
1841    else if (pkg == 'pay') {
1842      path = '/go_pro/paysera_pay_to_see';
1843    }
1844    else if (pkg == 'rent') {
1845      path = '/go_pro/paysera_pay_to_see';
1846      pay_type = 'rent';
1847    }
1848    else if (pkg == 'subscribe') {
1849      path = '/go_pro/subscribe';
1850    }
1851
1852    $.post('https://patriatube.com/aj'+path, {video_id:video_id,amount:price * 100,user_id:user_id,pay_type:pay_type,type:'paysera'}, function(data) {
1853      if (data.status == 200) {
1854        window.location.href = data.url;
1855      } else {
1856        $('.btn-paysera').attr('disabled', false).html("Paysera App not set yet.");
1857      }
1858      $('.btn-paysera').removeAttr('disabled');
1859      $('.btn-paysera').find('span').text("Paysera");
1860    });
1861  }
1862  function pay_using_razorpay(pkg,self,video_id,price,user_id = 0) {
1863    $('#razorpay_type').val(pkg);
1864    $('#razorpay_video_id').val(video_id);
1865    $('#razorpay_price').val(price);
1866    $('#razorpay_user_id').val(user_id);
1867    $("#razorpay_alert").html('');
1868    $('#pay-go-pro').modal('hide');
1869    $('#razorpay_modal_box').modal({
1870          show: true
1871      });
1872  }
1873  function SignatureRazorpay() {
1874    $('#razorpay_button').html("Por favor, espere..");
1875    $('#razorpay_button').attr('disabled','true');
1876
1877      var merchant_order_id = "111111";
1878      var card_holder_name_id = $('#razorpay_name').val();
1879      var email = $('#razorpay_email').val();
1880      var phone = $('#razorpay_phone').val();
1881      var currency_code_id = "INR";
1882
1883      if (!email || !phone || !card_holder_name_id) {
1884        $('#razorpay_alert').html("<div class='alert alert-danger'>Por favor verifique os detalhes</div>");
1885        $('#razorpay_button').html("Compra");
1886        $('#razorpay_button').removeAttr('disabled');
1887        setTimeout(function () {
1888          $('#razorpay_alert').html("");
1889        },3000);
1890      return false;
1891      }
1892
1893      video_id = $('#razorpay_video_id').val();
1894      amount = $('#razorpay_price').val();
1895      user_id = $('#razorpay_user_id').val();
1896      pay_type = '';
1897      pkg = $('#razorpay_type').val();
1898      if (pkg == 'pro') {
1899        path = '/go_pro/razorpay';
1900      }
1901      else if (pkg == 'wallet') {
1902        path = '/wallet/razorpay';
1903        amount = $("#wallet_amount").val();
1904      }
1905      else if (pkg == 'pay') {
1906        path = '/go_pro/razorpay_pay_to_see';
1907      }
1908      else if (pkg == 'rent') {
1909        path = '/go_pro/razorpay_pay_to_see';
1910        pay_type = 'rent';
1911      }
1912      else if (pkg == 'subscribe') {
1913        path = '/go_pro/subscribe_razorpay';
1914      }
1915      var merchant_total = Number(amount) * 100;
1916      
1917      var razorpay_options = {
1918          key: "",
1919          amount: merchant_total,
1920          name: "PátriaTube",
1921          description: "",
1922          image: 'https://patriatube.com/themes/default/img/logo-light.png?cache=123',
1923          netbanking: true,
1924          currency: currency_code_id,
1925          prefill: {
1926              name: card_holder_name_id,
1927              email: email,
1928              contact: phone
1929          },
1930          notes: {
1931              soolegal_order_id: merchant_order_id,
1932          },
1933          handler: function (transaction) {
1934            $.post('https://patriatube.com/aj'+path, {payment_id: transaction.razorpay_payment_id, order_id: merchant_order_id, card_holder_name_id: card_holder_name_id,  merchant_amount: merchant_total, currency: currency_code_id,video_id:video_id,user_id:user_id,pay_type:pay_type,type:'razorpay',name:name,phone:phone}, function(data) {
1935              if (data.status == 200) {
1936                window.location = data.url;
1937              } else {
1938                $('#razorpay_alert').html("<div class='alert alert-danger'>"+data.message+"</div>");
1939                setTimeout(function () {
1940                  $('#razorpay_alert').html("");
1941                },3000);
1942              }
1943              $('#razorpay_button').html("Compra");
1944              $('#razorpay_button').removeAttr('disabled');
1945            });
1946          },
1947          "modal": {
1948              "ondismiss": function () {
1949                  // code here
1950              }
1951          }
1952      };
1953      // obj        
1954      var objrzpv1 = new Razorpay(razorpay_options);
1955      objrzpv1.open();
1956  }
1957  function pay_using_cashfree(pkg,self,video_id,price,user_id = 0) {
1958    $('#cashfree_type').val(pkg);
1959    $('#cashfree_video_id').val(video_id);
1960    $('#cashfree_price').val(price);
1961    $('#cashfree_user_id').val(user_id);
1962    $("#cashfree_alert").html('');
1963    $('#pay-go-pro').modal('hide');
1964    $('#cashfree_modal_box').modal({
1965          show: true
1966      });
1967  }
1968  function InitializeCashfree() {
1969    $('#cashfree_button').html("Por favor, espere..");
1970    $('#cashfree_button').attr('disabled','true');
1971    name = $('#cashfree_name').val();
1972    phone = $('#cashfree_phone').val();
1973    email = $('#cashfree_email').val();
1974    video_id = $('#cashfree_video_id').val();
1975    amount = $('#cashfree_price').val();
1976    user_id = $('#cashfree_user_id').val();
1977    pay_type = '';
1978    pkg = $('#cashfree_type').val();
1979    if (pkg == 'pro') {
1980      path = '/go_pro/cashfree';
1981    }
1982    else if (pkg == 'wallet') {
1983      path = '/wallet/cashfree';
1984      amount = $("#wallet_amount").val();
1985    }
1986    else if (pkg == 'pay') {
1987      path = '/go_pro/cashfree_pay_to_see';
1988    }
1989    else if (pkg == 'rent') {
1990      path = '/go_pro/cashfree_pay_to_see';
1991      pay_type = 'rent';
1992    }
1993    else if (pkg == 'subscribe') {
1994      path = '/go_pro/subscribe';
1995    }
1996    $.post('https://patriatube.com/aj'+path, {email:email,video_id:video_id,amount:amount,user_id:user_id,pay_type:pay_type,type:'cashfree',name:name,phone:phone}, function(data) {
1997      if (data.status == 200) {
1998        $('body').append(data.html);
1999        document.getElementById("redirectForm").submit();
2000      } else {
2001        $('#cashfree_alert').html("<div class='alert alert-danger'>"+data.message+"</div>");
2002        setTimeout(function () {
2003          $('#cashfree_alert').html("");
2004        },3000);
2005      }
2006      $('#cashfree_button').html("Compra");
2007      $('#cashfree_button').removeAttr('disabled');
2008    });
2009  }
2010  function pay_using_paystack(pkg,self,video_id,price,user_id = 0) {
2011    $('#paystack_type').val(pkg);
2012    $('#paystack_video_id').val(video_id);
2013    $('#paystack_price').val(price);
2014    $('#paystack_user_id').val(user_id);
2015    $("#paystack_wallet_alert").html('');
2016    $('#pay-go-pro').modal('hide');
2017    $('#paystack_wallet_modal').modal({
2018          show: true
2019      });
2020  }
2021  function InitializeWalletPaystack() {
2022    $('#paystack_btn').html("Por favor, espere..");
2023      $('#paystack_btn').attr('disabled','true');
2024    email = $('#paystack_wallet_email').val();
2025    video_id = $('#paystack_video_id').val();
2026    amount = $('#paystack_price').val();
2027    user_id = $('#paystack_user_id').val();
2028    pay_type = '';
2029    pkg = $('#paystack_type').val();
2030    if (pkg == 'pro') {
2031      path = '/go_pro/paystack';
2032    }
2033    else if (pkg == 'wallet') {
2034      path = '/wallet/paystack';
2035      amount = $("#wallet_amount").val();
2036    }
2037    else if (pkg == 'pay') {
2038      path = '/go_pro/paystack_pay_to_see';
2039    }
2040    else if (pkg == 'rent') {
2041      path = '/go_pro/paystack_pay_to_see';
2042      pay_type = 'rent';
2043    }
2044    else if (pkg == 'subscribe') {
2045      path = '/go_pro/subscribe';
2046    }
2047    $.post('https://patriatube.com/aj'+path, {email:email,video_id:video_id,amount:amount,user_id:user_id,pay_type:pay_type,type:'paystack'}, function(data) {
2048      if (data.status == 200) {
2049        window.location.href = data.url;
2050      } else {
2051        $('#paystack_wallet_alert').html("<div class='alert alert-danger'>"+data.message+"</div>");
2052        setTimeout(function () {
2053          $('#paystack_wallet_alert').html("");
2054        },3000);
2055      }
2056      $('#paystack_btn').html("Compra");
2057        $('#paystack_btn').removeAttr('disabled');
2058    });
2059  }
2060
2061  function PT_OpenCheckOut(pkg,self,video_id = 0,price = 0,user_id = 0){
2062    if (!pkg || !self) {
2063      return false;
2064    }
2065    if (video_id) {
2066      $('#checkout_video_'+video_id).val(video_id);
2067    }
2068    if (price) {
2069      $('#checkout_price_'+video_id).val(price);
2070    }
2071    $('#checkout_user_id').val(user_id);
2072
2073    $(self).text("Por favor, espere..").attr('disabled', 'true');
2074
2075    $("#2checkout_alert").html('');
2076    $('#pay-go-pro').modal('hide');
2077      $('#2checkout_modal').modal({
2078            show: true
2079        });
2080      if (pkg == 'rent') {
2081        $('.checkout_pay_type').val('rent');
2082      }
2083      else{
2084        $('.checkout_pay_type').val('');
2085      }
2086  }
2087
2088
2089  function PT_PaySubscribe(user_id,self,type = '',price=0) {
2090    if (!user_id || !self) { return false; }
2091    var text = $(self).find('span').text();
2092    if (type == 'subscribe') {
2093      PayUsingWallet(type,'show',user_id,price);
2094      return;
2095      $(self).find('span').text("Por favor, espere..");
2096      $(self).attr('disabled', 'true');
2097      PT_ShowMethods('subscribe',0,0,user_id);
2098    }
2099    else{
2100      var html = "<small>Tem certeza de que deseja cancelar a inscrição? Esta ação não pode ser desfeita.</small>";
2101      swal({
2102        title: "",
2103        type: "",
2104        html:html,
2105        showCancelButton: true,
2106        cancelButtonText: "Não",
2107        customClass: 'sweetalert-lg pt_add_to_list_vid',
2108        confirmButtonText:'Sim'
2109      }).then(function(){
2110          $(self).removeClass('btn-subscribed').addClass('btn-subscribe');
2111          $(self).find('span').text("Inscrever-se");
2112          $(self).find('svg').remove();
2113          $(self).prepend('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>');
2114          $(self).attr('onclick', 'PT_PaySubscribe(' + user_id + ',this,"subscribe")');
2115          $.post('https://patriatube.com/aj/subscribe', {user_id: user_id});
2116
2117        },function(){
2118      });
2119    }
2120    $(self).removeAttr('disabled');
2121    $(self).find('span').text(text);
2122  }
2123  
2124</script>
2124
2125
2126      
2126<script type="text/javascript" src="https://patriatube.com/themes/default/js/script.js?version=2.2.8"></script>
2126
2127      
2127<script type="text/javascript" src="https://patriatube.com/themes/default/js/bootstrap.min.js?version=2.2.8"></script>
2127
2128      
2128<script src="https://patriatube.com/themes/default/js/bootstrap-toggle.min.js?version=2.2.8"></script>
2128
2129      
2129<script src="https://patriatube.com/themes/default/js/footer.js?version=2.2.8"></script>
2129
2130      <link rel="" ="">
2131      
2131<script>
2132         $(window).on("popstate", function (e) {
2133             location.reload();
2134         });
2135         $(document).ready(function(){
2136           // $('.share-video a').click(function (e) {
2137           //     e.preventDefault();
2138           // });
2139           $('.dropdown-toggle').dropdown()
2140
2141           $("#toggle-mode").change(function(event) {
2142               var mode = 'day';
2143
2144               if ($(this).prop( "checked" ) === true) {
2145                 mode = 'night';
2146                 $('<link>',{
2147                   rel:'stylesheet',
2148                   href:'https://patriatube.com/themes/default/css/night-mode.css',
2149                   class:'night-mode-css'
2150                 }).insertAfter('link#style-css');
2151                 $('.logo-img img').attr('src', 'https://patriatube.com/themes/default/img/logo-light.png?cache=123');
2152               }
2153               else{
2154                 $(".night-mode-css").remove();
2155                 $('.logo-img img').attr('src', 'https://patriatube.com/themes/default/img/logo.png?cache=123');
2156               }
2157
2158
2159               $.post('https://patriatube.com/', {mode: mode}, function(data, textStatus, xhr) { /* pass */ });
2160           });
2161
2162           $("li.toggle-mobile-mode").click(function(event) {
2163               var mode = $(this).attr('data-mode');
2164
2165               $.post('https://patriatube.com/', {mode: mode}, function(data, textStatus, xhr) {
2166                 location.reload();
2167               });
2168           });
2169         });
2170      </script>
2170
2171                  <link rel="stylesheet" type="text/css" href="https://patriatube.com/themes/default/css/cookieconsent.min.css?version=2.2.8" />
2172      
2172<script src="https://patriatube.com/themes/default/js/cookieconsent.min.js?version=2.2.8"></script>
2172
2173      
2173<script>
2174         window.addEventListener("load", function(){
2175         window.cookieconsent.initialise({
2176           "palette": {
2177             "popup": {
2178               "background": "#fff",
2179               "text": "#333"
2180             },
2181             "button": {
2182               "background": "#04abf2",
2183               "text": "#fff"
2184             }
2185           },
2186           "theme": "edgeless",
2187           "position": "right-bottom",
2188           "content": {
2189             "message": "Este site usa cookies para garantir que você obtenha a melhor experiência em nosso site.",
2190             "dismiss": "Entendi!",
2191             "link": "Saber mais",
2192             "href": "https://patriatube.com/terms/privacy-policy"
2193           }
2194         })});
2195      </script>
2195
2196            
2196<script type="text/javascript">
2197         $(document).on('click', '#pop_up_18_yes', function(event) {
2198           event.preventDefault();
2199           $.post('https://patriatube.com/aj/main/yes_18?hash=' + $('.main_session').val(), function(data, textStatus, xhr) {
2200             $('#pop_up_18').modal('hide');
2201           });
2202         });
2203
2204         $(document).on('click', '#pop_up_18_no', function(event) {
2205           event.preventDefault();
2206           $.post('https://patriatube.com/aj/main/no_18?hash=' + $('.main_session').val(), function(data, textStatus, xhr) {
2207             if (data.status == 200) {
2208               $('#pop_up_18').modal('hide');
2209               window.location.href = data.url
2210             }
2211           });
2212         });
2213
2214                  function setCookie(cname, cvalue, exdays) {
2215             var d = new Date();
2216             d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
2217             var expires = "expires="+d.toUTCString();
2218             document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
2219         }
2220
2221         function getCookie(cname) {
2222             var name = cname + "=";
2223             var ca = document.cookie.split(';');
2224             for(var i = 0; i < ca.length; i++) {
2225                 var c = ca[i];
2226                 while (c.charAt(0) == ' ') {
2227                     c = c.substring(1);
2228                 }
2229                 if (c.indexOf(name) == 0) {
2230                     return c.substring(name.length, c.length);
2231                 }
2232             }
2233             return "";
2234         }
2235                    $.ajax({
2236             url: 'https://extreme-ip-lookup.com/json/',
2237             type: 'GET',
2238             dataType: 'json'
2239           })
2240           .done(function(data) {
2241             if (data.status == 'success') {
2242               setCookie('r', window.btoa(data.continent), 1);
2243                            }
2244             else{
2245               setCookie('r', window.btoa('string'), 1);
2246                            }
2247           })
2248           .fail(function() {
2249             setCookie('r', window.btoa('string'), 1);
2250                        })
2251           .always(function() {
2252           });
2253           // $.get('https://extreme-ip-lookup.com/json/', function(data) {
2254           //   if (data.status == 'success') {
2255           //     setCookie('r', window.btoa(data.continent), 1);
2256           //                //   }
2257           //   else{
2258           //     setCookie('r', window.btoa('string'), 1);
2259           //                //   }
2260           // });
2261               </script>
2261
2262            
2262<script>
2263         var fingerprintReport = function () {
2264            Fingerprint2.get(function(components) {
2265              var murmur = Fingerprint2.x64hash128(components.map(function (pair) { return pair.value }).join(), 31)
2266              $.post('https://patriatube.com/aj/views?hash=' + $('.main_session').val()+'&type_=set', {finger: murmur}, function(data, textStatus, xhr) {
2267              });
2268            })
2269         }
2270         fingerprintReport();
2271      </script>
2271
2272            
2272<script type="text/javascript">
2273         var myTimeout;
2274
2275         function show_gif(self,gif) {
2276           if (gif && gif != '') {
2277             myTimeout = setTimeout(function() {
2278                 $(self).append('<img src="'+gif+'">');
2279             }, 1000);
2280           }
2281         }
2282
2283         function hide_gif(self) {
2284           $(self).find('img').remove();
2285           clearTimeout(myTimeout);
2286         }
2287
2288         function block_user(user_id,self,redirect = true) {
2289           $.post('https://patriatube.com/aj/user/block?hash=' + $('.main_session').val(), {user_id: user_id}, function(data, textStatus, xhr) {
2290             if (redirect == true) {
2291               location.reload();
2292             }
2293             else{
2294               $(self).find('span').text(data.message);
2295             }
2296           });
2297         }
2298      </script>
2298
2299      
2300      <div id="select-language" class="modal matdialog et_plus lang_select_modal"  data-keyboard="false">
2301         <div class="modal-dialog modal-lg">
2302            <div class="modal-content">
2303               <div class="modal-body" id="pt_language_modal">
2304					<div class="row">
2305						<div class="col-md-4">
2306							<div class="language_info">
2307								<h3>Idioma</h3>
2308								<img src="https://patriatube.com/themes/default/img/language.svg"/>
2309							</div>
2310						</div>
2311						<div class="col-md-8">
2312							<ul class="lang_modal">
2313								<li class="language_select"><a href="?lang=english" rel="nofollow" class="english">English</a></li><li class="language_select"><a href="?lang=arabic" rel="nofollow" class="arabic">Arabic</a></li><li class="language_select"><a href="?lang=dutch" rel="nofollow" class="dutch">Dutch</a></li><li class="language_select"><a href="?lang=french" rel="nofollow" class="french">French</a></li><li class="language_select"><a href="?lang=german" rel="nofollow" class="german">German</a></li><li class="language_select"><a href="?lang=russian" rel="nofollow" class="russian">Russian</a></li><li class="language_select"><a href="?lang=spanish" rel="nofollow" class="spanish">Spanish</a></li><li class="language_select"><a href="?lang=turkish" rel="nofollow" class="turkish">Turkish</a></li><li class="language_select"><a href="?lang=português" rel="nofollow" class="português">Português</a></li><li class="language_select"><a href="?lang=hindi" rel="nofollow" class="hindi">Hindi</a></li><li class="language_select"><a href="?lang=chinese" rel="nofollow" class="chinese">Chinese</a></li><li class="language_select"><a href="?lang=urdu" rel="nofollow" class="urdu">Urdu</a></li><li class="language_select"><a href="?lang=indonesian" rel="nofollow" class="indonesian">Indonesian</a></li><li class="language_select"><a href="?lang=croatian" rel="nofollow" class="croatian">Croatian</a></li><li class="language_select"><a href="?lang=hebrew" rel="nofollow" class="hebrew">Hebrew</a></li><li class="language_select"><a href="?lang=bengali" rel="nofollow" class="bengali">Bengali</a></li><li class="language_select"><a href="?lang=japanese" rel="nofollow" class="japanese">Japanese</a></li><li class="language_select"><a href="?lang=portuguese" rel="nofollow" class="portuguese">Portuguese</a></li><li class="language_select"><a href="?lang=italian" rel="nofollow" class="italian">Italian</a></li><li class="language_select"><a href="?lang=persian" rel="nofollow" class="persian">Persian</a></li><li class="language_select"><a href="?lang=swedish" rel="nofollow" class="swedish">Swedish</a></li><li class="language_select"><a href="?lang=vietnamese" rel="nofollow" class="vietnamese">Vietnamese</a></li><li class="language_select"><a href="?lang=danish" rel="nofollow" class="danish">Danish</a></li><li class="language_select"><a href="?lang=filipino" rel="nofollow" class="filipino">Filipino</a></li>							</ul>
2314						</div>
2315					</div>
2316
2317               </div>
2318            </div>
2319         </div>
2320      </div>
2321	                          <div class="modal fade matdialog" id="pay_modal_wallet" role="dialog" data-keyboard="false">
2322	<div class="modal-dialog">
2323		<div class="modal-content">
2324			<div class="modal-header">
2325				<h3 class="modal-title">Pay By Wallet<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg></span></button></h3>
2326			</div>
2327			
2328			<div class="modal-body">
2329				<div class="pay_modal_wallet_alert"></div>
2330				<p class="pay_modal_wallet_text"></p>
2331			</div>
2332			<div class="clear"></div>
2333			<div class="modal-footer">
2334				<div class="ball-pulse"><div></div><div></div><div></div></div>
2335				<button type="button" class="btn btn-main" id="pay_modal_wallet_btn">Compra</button>
2336			</div>
2337		</div>
2338	</div>
2339</div>      
2339<script type="text/javascript">
2340         function HideCard(ad_date) {
2341             setTimeout(function (argument) {
2342                $('.'+ad_date).remove();
2343             },5000);
2344          }
2345      </script>
2345
2346   </body>
2347</html>

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.