Um erro ocorreu enquanto processava o modelo.
The following has evaluated to null or missing:
==> TituloImprimirCartao  [in template "20116#20152#5095658" at line 1106, column 44]

----
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: ${TituloImprimirCartao}  [in template "20116#20152#5095658" at line 1106, column 42]
----
1<script type="text/javascript"> 
2    $(function(){ 
3        df.loader.open(); 
4    }); 
5</script> 
6 
7<style> 
8body #av-container #modal .av-modal-content .av-modal-body{padding-bottom: 15px !important;} 
9.newsProgramaAmigoBox.disabled label:before{background-color: #e2e2e2;} 
10.show-calendar {max-width: 150% !important; margin-top: 0px !important;} 
11.content-pd #cadastre-se .btn-cadastrar-amigos-meus-pontos{ margin-top: 15px;} 
12.content-pd #cadastre-se .logo-programa-amigo-meus-pontos{border-right:1px solid #c3c3c3;} 
13.content-pd #cadastre-se .logo-programa-amigo-meus-pontos img{max-width: 100%; height: auto;} 
14.content-pd #cadastre-se .fomulario-cadatro-amigo-meus-pontos h2{ font-weight: 700; padding: 15px; padding-top: 0;margin-top: 0; margin-bottom: 10px;} 
15.logo-programa-amigo-meus-pontos-modal{padding-left: 0;} 
16.logo-programa-amigo-meus-pontos-modal img{max-width: 100%; height: auto;} 
17.modal-pontos{text-align: left !important; margin-bottom: 30px !important;} 
18@media (max-width: 768px) { 
19    .av-modal-content .av-modal-body .text {overflow-y: scroll; max-height: 60vh;} 
20    .content-pd #cadastre-se .fomulario-cadatro-amigo-meus-pontos h2{ text-align: center;} 
21
22#meus-pontos-resgatar-pontos .containerpickerpontos .daterangepicker{position: relative;margin-top: -495px;margin-bottom: 180px;} 
23 
24#meus-pontos-solicitar .formulario .form-group .ico-svg-calendario { cursor: pointer; } 
25 
26#av-container #content-informativo-pontos .busca_passagem.containerpickerpontos .daterangepicker{top:-202px!important;} 
27#av-container #content-informativo-pontos .busca_passagem.containerpickerpontos .daterangepicker.single{width: auto!important;max-width: initial;left: -15px!important;margin-left: 25px!important;} 
28#av-container #content-informativo-pontos .busca_passagem.containerpickerpontos .daterangepicker.single .calendar{width: 50%!important;} 
29#av-container #content-informativo-pontos .busca_passagem.containerpickerpontos .daterangepicker.single .calendar.right{display:block!important} 
30#av-container #content-informativo-pontos .busca_passagem.containerpickerpontos .daterangepicker.single .calendar.left .next{display:none} 
31#av-container #area-logada .contents .area-logada-content .meus-pontos-vazio h3{color: #fff;font-size: 34px;max-width: initial;} 
32@media (max-width: 768px) { 
33    #av-container #area-logada .contents .area-logada-content .meus-pontos-vazio h3{font-size: 21px;padding-top: 0;} 
34    #cartao-ver-modal #cartao-ver-modal-back { margin-top: 10px; } 
35    #cartao-ver-modal {position: relative !important;} 
36
37@media (max-width: 1199px) { 
38    #av-container #area-logada .contents .area-logada-content .meus-pontos-vazio h3{font-size: 25px;margin-top: 0;} 
39
40 
41/* CR-518316 */ 
42@media (max-width: 320px) and (min-width: 0px){ 
43  #cartao-ver-modal{ 
44    margin-left: -30px!important; 
45
46
47/* Fim - CR-518316 */ 
48 
49/* CR-518305 */ 
50@media (max-width: 320px) and (min-width: 0px){ 
51  #divCartaoMobile{ 
52    margin-left: -15px!important; 
53
54
55/* Fim - CR-518305 */ 
56 
57</style> 
58 
59<script type="text/javascript"> 
60 
61    if ($("link[data-css='cssarea-logada']").length === 0) { 
62        $('<link>').attr({ 
63            "href": "/o/avianca-theme/css/area-logada.min.css", 
64            "rel" : "stylesheet", 
65            "data-css" : "cssarea-logada" 
66        }) 
67        .appendTo('head'); 
68    }; 
69 
70    if ($("link[data-css='cssmeus-pontos']").length === 0) { 
71        $('<link>').attr({ 
72             "href": "/o/avianca-theme/css/meus-pontos.min.css", 
73             "rel" : "stylesheet", 
74             "data-css" : "cssmeus-pontos" 
75        }) 
76        .appendTo('head'); 
77    }; 
78    if ($("link[data-css='cssmeus-pontos-imprimir-cartao']").length === 0) { 
79        $('<link>').attr({ 
80             "href": "/o/avianca-theme/css/meus-pontos-imprimir-cartao.min.css", 
81             "rel" : "stylesheet", 
82             "data-css" : "cssmeus-pontos-imprimir-cartao" 
83        }) 
84        .appendTo('head'); 
85    }; 
86    if ($("link[data-css='cssmeus-pontos-resgatar-pontos']").length === 0) { 
87        $('<link>').attr({ 
88             "href": "/o/avianca-theme/css/meus-pontos-resgatar-pontos.min.css", 
89             "rel" : "stylesheet", 
90             "data-css" : "cssmeus-pontos-resgatar-pontos" 
91        }) 
92        .appendTo('head'); 
93    }; 
94    if ($("link[data-css='cssmeus-pontos-acumulados']").length === 0) { 
95        $('<link>').attr({ 
96             "href": "/o/avianca-theme/css/meus-pontos-acumulados.min.css", 
97             "rel" : "stylesheet", 
98             "data-css" : "cssmeus-pontos-acumulados" 
99        }) 
100        .appendTo('head'); 
101    }; 
102 
103    if ($("link[data-css='cssmeus-pontos-solicitar']").length === 0) { 
104        $('<link>').attr({ 
105             "href": "/o/avianca-theme/css/meus-pontos-solicitar.min.css", 
106             "rel" : "stylesheet", 
107             "data-css" : "cssmeus-pontos-solicitar" 
108        }) 
109        .appendTo('head'); 
110    }; 
111    if ($("link[data-css='cssinformativo-menu']").length === 0) { 
112        $('<link>').attr({ 
113             "href": "/o/avianca-theme/css/informativo-menu.min.css", 
114             "rel" : "stylesheet", 
115             "data-css" : "cssinformativo-menu" 
116        }) 
117        .appendTo('head'); 
118    }; 
119        if ($("link[data-css='cssarea-logada-gerenciar-reserva']").length === 0) { 
120        $('<link>').attr({ 
121             "href": "/o/avianca-theme/css/area-logada-gerenciar-reserva.min.css", 
122             "rel" : "stylesheet", 
123             "data-css" : "cssarea-logada-gerenciar-reserva" 
124        }) 
125        .appendTo('head'); 
126    }; 
127    if ($("link[data-css='cssmeus-pontos-debitados']").length === 0) { 
128        $('<link>').attr({ 
129             "href": "/o/avianca-theme/css/meus-pontos-debitados.min.css", 
130             "rel" : "stylesheet", 
131             "data-css" : "cssmeus-pontos-debitados" 
132        }) 
133        .appendTo('head'); 
134    }; 
135        if ($("link[data-css='meus-pontos-imprimir-cartao-ver']").length === 0) { 
136        $('<link>').attr({ 
137             "href": "/o/avianca-theme/css/meus-pontos-imprimir-cartao-ver.min.css", 
138             "rel" : "stylesheet", 
139             "data-css" : "cssmeus-pontos-imprimir-cartao-ver" 
140        }) 
141        .appendTo('head'); 
142    }; 
143 
144</script> 
145 
146 
147<#---------------------------------------------------- Start Functions -----> 
148<#function get_friendly_url page> 
149<#-- 
150Split the string to just get the page layout id , groupID and if its a private layout 
151--> 
152    <#assign x = 0> 
153<#-- 
154Remove Escaping caracters 
155--> 
156    <#assign page = page?replace("(\n)+", "/",'r')?replace("(\t)+", "/",'r')> 
157    <#list page?split("//") as main_item> 
158        <#if main_item != ""> 
159            <#list main_item?split("@") as item> 
160                <#if x == 0> 
161                    <#assign linkPageId = item?number> 
162                </#if> 
163                <#if x == 1> 
164                    <#if item == "private"> 
165                        <#assign linkPrivate = "true"> 
166                    <#else> 
167                        <#assign linkPrivate = "false"> 
168                    </#if> 
169                </#if> 
170                <#if x == 2> 
171                    <#assign linkGroupId = item?number> 
172                </#if> 
173                <#assign x = x + 1> 
174            </#list> 
175            <#break> 
176        </#if> 
177    </#list> 
178 
179    <#assign layoutLocalService = staticUtil["com.liferay.portal.kernel.service.LayoutLocalServiceUtil"]> 
180 
181    <#if linkPrivate??> 
182        <#if linkPrivate == "true"> 
183            <#assign pageLayout = layoutLocalService.getLayout(linkGroupId, true, linkPageId)> 
184        <#else> 
185            <#assign pageLayout = layoutLocalService.getLayout(linkGroupId, false, linkPageId)> 
186        </#if> 
187 
188    <#-- get Friendly URL --> 
189        <#assign portalUtil = staticUtil["com.liferay.portal.kernel.util.PortalUtil"]> 
190        <#assign friendly_page_link = portalUtil.getLayoutFriendlyURL(pageLayout, themeDisplay)> 
191    </#if> 
192 
193    <#return friendly_page_link> 
194</#function> 
195 
196 
197 
198<#---------------------------------------------------- End Functions -----> 
199 
200<#attempt> 
201 
202   <#assign IPGeocoder_service=serviceLocator.findService("com.liferay.ip.geocoder.IPGeocoder")> 
203   <#assign portalUtil=staticUtil[ "com.liferay.portal.kernel.util.PortalUtil"]> 
204 
205   <#if portalUtil.getHttpServletRequest(renderRequest).getHeader("X-Real-IP")?? && portalUtil.getHttpServletRequest(renderRequest).getHeader("X-Real-IP") !=""> 
206       <#assign ip=portalUtil.getHttpServletRequest(renderRequest).getHeader("X-Real-IP")?split(":")[0]> 
207   <#else> 
208       <#assign ip=portalUtil.getHttpServletRequest(renderRequest).getRemoteAddr()> 
209   </#if> 
210   <#assign ip_info = IPGeocoder_service.getIPInfo(ip)> 
211   <#assign c_DDL_State_Mapping= 80413> 
212   <#assign c_DDL_City_Mapping= 80416> 
213   <#-- Get Customer Geolocation State --> 
214   <#assign c_city_citydescription=""> 
215   <#assign c_stateid=""> 
216   <#assign c_city_origemiata=""> 
217   <#assign c_city_iatadescription=""> 
218   <#assign c_statedescription=""> 
219   <#assign c_stateid_by_city=""> 
220   <#assign c_origemiata=""> 
221   <#assign c_iatadescription=""> 
222 
223 
224   <#if ip_info.getCity()??> 
225       <#assign c_Client_city = ip_info.getCity()> 
226       <#if cityFinder.findByDescription(c_Client_city)?? && cityFinder.findByDescription(c_Client_city) != ""> 
227           <#assign city_check = cityFinder.findByDescription(c_Client_city)> 
228           <#assign c_stateid_by_city = city_check.stateId> 
229           <#assign c_city_origemiata = city_check.iataOrigem> 
230           <#assign c_city_iatadescription = city_check.iataDescription> 
231           <#assign c_city_citydescription = city_check.description> 
232       <#else> 
233           <#if ip_info.getCity()?? && ip_info.getCity()!=""> 
234               <#assign DDLRecordLocalService= serviceLocator.findService( "com.liferay.dynamic.data.lists.service.DDLRecordSetLocalService")> 
235               <#assign recordset= DDLRecordLocalService.getDDLRecordSet(c_DDL_City_Mapping)> 
236               <#list recordset.getRecords() as records> 
237                   <#assign fields= records.getDDMFormValues().getDDMFormFieldValues()> 
238                   <#list fields as field> 
239                        
240                       <#if field.getName()="citydescription"> 
241                           <#assign c_city_citydescription= field.getValue().getString(locale)> 
242                       </#if> 
243                       <#if field.getName()="stateid"> 
244                           <#assign c_stateid_by_city= field.getValue().getString(locale)> 
245                       </#if> 
246                       <#if field.getName()="origemiata"> 
247                           <#assign c_city_origemiata= field.getValue().getString(locale)> 
248                       </#if> 
249                       <#if field.getName()="iatadescription"> 
250                           <#assign c_city_iatadescription= field.getValue().getString(locale)> 
251                       </#if> 
252                   </#list> 
253                   <#if c_city_citydescription= ip_info.getCity()> 
254                       <#break> 
255                   <#else> 
256                       <#assign c_city_citydescription=""> 
257                       <#assign c_stateid_by_city=""> 
258                       <#assign c_city_origemiata=""> 
259                       <#assign c_city_iatadescription=""> 
260                   </#if> 
261               </#list> 
262           </#if> 
263 
264       </#if> 
265   <#else> 
266           <#assign city_check = ""> 
267           <#assign c_stateid_by_city =""> 
268           <#assign c_city_origemiata = ""> 
269           <#assign c_city_iatadescription = ""> 
270           <#assign c_city_citydescription = ""> 
271   </#if> 
272   <#if ip_info.getRegionName()??> 
273       <#assign c_Client_State=ip_info.getRegionName()> 
274       <#if regionFinder.findByDescription(c_Client_State)?? && regionFinder.findByDescription(c_Client_State) !="">  
275           <#assign state_check = regionFinder.findByDescription(c_Client_State)> 
276           <#assign c_stateid = state_check.stateId> 
277           <#assign c_origemiata = state_check.iataOrigem> 
278           <#assign c_iatadescription = state_check.iataDescription> 
279           <#assign c_statedescription = state_check.description> 
280       <#else> 
281           <#assign c_Client_city = c_city_citydescription> 
282           <#assign c_Client_State = ""> 
283 
284           <#if ip_info.getRegionName()?? && ip_info.getRegionName()!=""> 
285               <#assign DDLRecordLocalService= serviceLocator.findService( "com.liferay.dynamic.data.lists.service.DDLRecordSetLocalService")> 
286               <#assign recordset= DDLRecordLocalService.getDDLRecordSet(c_DDL_State_Mapping)> 
287               <#list recordset.getRecords() as records> 
288                   <#assign fields= records.getDDMFormValues().getDDMFormFieldValues()> 
289 
290                   <#list fields as field> 
291                       <#if field.getName()="statedescription"> 
292                           <#assign c_statedescription= field.getValue().getString(locale)> 
293                       </#if> 
294                       <#if field.getName()="stateid"> 
295                           <#assign c_stateid= field.getValue().getString(locale)> 
296                       </#if> 
297                       <#if field.getName()="origemiata"> 
298                           <#assign c_origemiata= field.getValue().getString(locale)> 
299                       </#if> 
300                       <#if field.getName()="iatadescription"> 
301                           <#assign c_iatadescription= field.getValue().getString(locale)> 
302                       </#if> 
303                   </#list> 
304                       <#if c_statedescription= ip_info.getRegionName()> 
305                           <#break> 
306                       <#else> 
307                           <#assign c_statedescription=""> 
308                           <#assign c_stateid=""> 
309                           <#assign c_origemiata=""> 
310                           <#assign c_iatadescription=""> 
311                       </#if> 
312               </#list> 
313           </#if> 
314        
315       </#if> 
316   <#else> 
317       <#assign state_check = ""> 
318       <#assign c_stateid = ""> 
319       <#assign c_origemiata =""> 
320       <#assign c_iatadescription =""> 
321       <#assign c_statedescription =""> 
322   </#if> 
323 
324   <#-- Set Geolocation IATA code and description --> 
325   <#if c_city_origemiata != ""> 
326       <#assign c_geolocation_iata= c_city_origemiata> 
327       <#assign c_geolocation_iatadesc= c_city_iatadescription> 
328       <#assign c_Client_State= c_stateid_by_city> 
329   <#elseif c_origemiata != ""> 
330       <#assign c_geolocation_iata= c_origemiata> 
331       <#assign c_geolocation_iatadesc= c_iatadescription> 
332       <#assign c_Client_State= c_stateid> 
333   <#else> 
334       <#assign c_geolocation_iata= ""> 
335       <#assign c_geolocation_iatadesc= ""> 
336       <#assign c_Client_State= ""> 
337   </#if> 
338 
339<#recover> 
340 
341   <#assign c_geolocation_iata = "" > 
342   <#assign c_geolocation_iatadesc = ""> 
343   <#assign c_Client_State= ""> 
344    
345</#attempt>  
346 
347<#assign DDLRecordLocalService = serviceLocator.findService("com.liferay.dynamic.data.lists.service.DDLRecordSetLocalService")> 
348<#assign records = DDLRecordLocalService.getDDLRecordSet(101129)> 
349<#list records.getRecords() as record> 
350    <#assign fields = record.getDDMFormValues().getDDMFormFieldValues()> 
351    <#list fields as field> 
352        <#if field.getName() == "MedBronze"> 
353            <input type="hidden" id="${field.getValue().getString(locale)}" value="MedBronze" /> 
354        </#if> 
355        <#if field.getName() == "MedSilver"> 
356            <input type="hidden" id="${field.getValue().getString(locale)}" value="MedSilver" /> 
357        </#if> 
358        <#if field.getName() == "MedGold"> 
359            <input type="hidden" id="${field.getValue().getString(locale)}" value="MedGold" /> 
360        </#if> 
361        <#if field.getName() == "MedDiamond"> 
362            <input type="hidden" id="${field.getValue().getString(locale)}" value="MedDiamond" /> 
363        </#if> 
364    </#list> 
365</#list> 
366 
367 
368<#setting locale="${locale}" > 
369 
370<#-- Pega dados dos conteúdos e estruturas para montar os textos dinâmicos --> 
371<#if entries?has_content> 
372    <#assign listaSelectAerea = []> 
373    <#list entries as curEntry> 
374 
375        <#assign rootElement = saxReaderUtil.read(curEntry.getAssetRenderer().getArticle().getContentByLocale(locale)).getRootElement()> 
376 
377        <#list rootElement.elements() as dynamicElement> 
378        <#-- objetos de Meus Pontos --> 
379            <#if dynamicElement.attributeValue("name") == "TextNumAmigo"> 
380                <#assign TextNumAmigo = dynamicElement.element('dynamic-content').getText()> 
381            </#if> 
382            <#if dynamicElement.attributeValue("name") == "TituloNivel"> 
383                <#assign TituloNivel = dynamicElement.element('dynamic-content').getText()> 
384            </#if> 
385            <#if dynamicElement.attributeValue("name") == "TituloPontos"> 
386                <#assign TituloPontos = dynamicElement.element('dynamic-content').getText()> 
387            </#if> 
388            <#if dynamicElement.attributeValue("name") == "TituloTabelaExplicacao"> 
389                <#assign TituloTabelaExplicacao = dynamicElement.element('dynamic-content').getText()> 
390            </#if> 
391            <#if dynamicElement.attributeValue("name") == "PontosQualificaveis"> 
392                <#assign PontosQualificaveis = dynamicElement.element('dynamic-content').getText()> 
393            </#if> 
394            <#if dynamicElement.attributeValue("name") == "TextPontos"> 
395                <#assign TextPontos = dynamicElement.element('dynamic-content').getText()> 
396            </#if> 
397            <#if dynamicElement.attributeValue("name") == "Data"> 
398                <#assign Data = dynamicElement.element('dynamic-content').getText()> 
399            </#if> 
400            <#if dynamicElement.attributeValue("name") == "PontosAExpirar"> 
401                <#assign PontosAExpirar = dynamicElement.element('dynamic-content').getText()> 
402            </#if> 
403            <#if dynamicElement.attributeValue("name") == "PontosQualificaveis"> 
404                <#assign PontosQualificaveis = dynamicElement.element('dynamic-content').getText()> 
405            </#if> 
406            <#if dynamicElement.attributeValue("name") == "LabelButtonTabelaExplicacao"> 
407                <#assign LabelButtonTabelaExplicacao = dynamicElement.element('dynamic-content').getText()> 
408            </#if> 
409            <#if dynamicElement.attributeValue("name") == "TextoCartao"> 
410                <#assign TextoCartao = dynamicElement.element('dynamic-content').getText()> 
411            </#if> 
412            <#if dynamicElement.attributeValue("name") == "TituloImprimirCartao"> 
413                <#assign TituloImprimirCartao = dynamicElement.element('dynamic-content').getText()> 
414            </#if> 
415            <#if dynamicElement.attributeValue("name") == "LabelBotaoCartao"> 
416                <#assign LabelBotaoCartao = dynamicElement.element('dynamic-content').getText()> 
417            </#if> 
418            <#if dynamicElement.attributeValue("name") == "TituloResgatarPontos"> 
419                <#assign TituloResgatarPontos = dynamicElement.element('dynamic-content').getText()> 
420            </#if> 
421            <#if dynamicElement.attributeValue("name") == "TextoPontos"> 
422                <#assign TextoPontos = dynamicElement.element('dynamic-content').getText()> 
423            </#if> 
424            <#if dynamicElement.attributeValue("name") == "TextoLinkModal"> 
425                <#assign TextoLinkModal = dynamicElement.element('dynamic-content').getText()> 
426            </#if> 
427            <#if dynamicElement.attributeValue("name") == "DataDaAtividadeLabel"> 
428                <#assign DataDaAtividadeLabel = dynamicElement.element('dynamic-content').getText()> 
429            </#if> 
430            <#if dynamicElement.attributeValue("name") == "TextoPontosAcumulados"> 
431                <#assign TextoPontosAcumulados = dynamicElement.element('dynamic-content').getText()> 
432            </#if> 
433            <#if dynamicElement.attributeValue("name") == "VooLabel"> 
434                <#assign VooLabel = dynamicElement.element('dynamic-content').getText()> 
435            </#if> 
436            <#if dynamicElement.attributeValue("name") == "PontosAcumuladosLabel"> 
437                <#assign PontosAcumuladosLabel = dynamicElement.element('dynamic-content').getText()> 
438            </#if> 
439            <#if dynamicElement.attributeValue("name") == "DescricaoLabel"> 
440                <#assign DescricaoLabel = dynamicElement.element('dynamic-content').getText()> 
441            </#if> 
442            <#if dynamicElement.attributeValue("name") == "TituloSolicitarPontos"> 
443                <#assign TituloSolicitarPontos = dynamicElement.element('dynamic-content').getText()> 
444            </#if> 
445            <#if dynamicElement.attributeValue("name") == "TextoSolicitarPontos"> 
446                <#assign TextoSolicitarPontos = dynamicElement.element('dynamic-content').getText()> 
447            </#if> 
448            <#if dynamicElement.attributeValue("name") == "TituloPontosDebitados"> 
449                <#assign TituloPontosDebitados = dynamicElement.element('dynamic-content').getText()> 
450            </#if> 
451            <#if dynamicElement.attributeValue("name") == "TextoPontosDebitados"> 
452                <#assign TextoPontosDebitados = dynamicElement.element('dynamic-content').getText()> 
453            </#if> 
454            <#if dynamicElement.attributeValue("name") == "TextoLinkModal1"> 
455                <#assign TextoLinkModal1 = dynamicElement.element('dynamic-content').getText()> 
456            </#if> 
457            <#if dynamicElement.attributeValue("name") == "DataDeAtividade"> 
458                <#assign DataDeAtividade = dynamicElement.element('dynamic-content').getText()> 
459            </#if> 
460            <#if dynamicElement.attributeValue("name") == "Voo"> 
461                <#assign Voo = dynamicElement.element('dynamic-content').getText()> 
462            </#if> 
463            <#if dynamicElement.attributeValue("name") == "Voo"> 
464                <#assign Voo = dynamicElement.element('dynamic-content').getText()> 
465            </#if> 
466            <#if dynamicElement.attributeValue("name") == "Descricao"> 
467                <#assign Descricao = dynamicElement.element('dynamic-content').getText()> 
468            </#if> 
469            <#if dynamicElement.attributeValue("name") == "PontosAcumulados1"> 
470                <#assign PontosAcumulados1 = dynamicElement.element('dynamic-content').getText()> 
471            </#if> 
472            <#if dynamicElement.attributeValue("name") == "TituloPontosAcumulados"> 
473                <#assign TituloPontosAcumulados = dynamicElement.element('dynamic-content').getText()> 
474            </#if> 
475            <#if dynamicElement.attributeValue("name") == "Imagem6jnq"> 
476                <#assign Imagem6jnq = dynamicElement.element('dynamic-content').getText()> 
477            </#if> 
478            <#if dynamicElement.attributeValue("name") == "Classe"> 
479                <#assign Classe = dynamicElement.element('dynamic-content').getText()> 
480            </#if> 
481            <#if dynamicElement.attributeValue("name") == "ClasseVoada"> 
482                <#assign ClasseVoada = dynamicElement.element('dynamic-content').getText()> 
483            </#if> 
484            <#if dynamicElement.attributeValue("name") == "NdoBilhete"> 
485                <#assign NdoBilhete = dynamicElement.element('dynamic-content').getText()> 
486            </#if> 
487            <#if dynamicElement.attributeValue("name") == "Atividade"> 
488                <#assign Atividade = dynamicElement.element('dynamic-content').getText()> 
489            </#if> 
490            <#if dynamicElement.attributeValue("name") == "PontosQualificaveisModal"> 
491                <#assign PontosQualificaveisModal = dynamicElement.element('dynamic-content').getText()> 
492            </#if> 
493            <#if dynamicElement.attributeValue("name") == "PrimeiroNome"> 
494                <#assign PrimeiroNome = dynamicElement.element('dynamic-content').getText()> 
495            </#if> 
496            <#if dynamicElement.attributeValue("name") == "UltimoNome"> 
497                <#assign UltimoNome = dynamicElement.element('dynamic-content').getText()> 
498            </#if> 
499            <#if dynamicElement.attributeValue("name") == "NomeDaCompanhiaAerea"> 
500                <#assign NomeDaCompanhiaAerea = dynamicElement.element('dynamic-content').getText()> 
501            </#if> 
502            <#if dynamicElement.attributeValue("name") == "ListaCompanhiaAerea"> 
503                <#assign ListaCompanhiaAerea = dynamicElement.element('dynamic-content').getText()> 
504                <#assign listaSelectAerea = listaSelectAerea+[ListaCompanhiaAerea]> 
505            </#if> 
506            <#if dynamicElement.attributeValue("name") == "NumeroDoVoo"> 
507                <#assign NumeroDoVoo = dynamicElement.element('dynamic-content').getText()> 
508            </#if> 
509            <#if dynamicElement.attributeValue("name") == "TooltipNumeroDoVoo"> 
510                <#assign TooltipNumeroDoVoo = dynamicElement.element('dynamic-content').getText()> 
511            </#if> 
512            <#if dynamicElement.attributeValue("name") == "DataDoVoo"> 
513                <#assign DataDoVoo = dynamicElement.element('dynamic-content').getText()> 
514            </#if> 
515            <#if dynamicElement.attributeValue("name") == "Origem"> 
516                <#assign Origem = dynamicElement.element('dynamic-content').getText()> 
517            </#if> 
518            <#if dynamicElement.attributeValue("name") == "Destino"> 
519                <#assign Destino = dynamicElement.element('dynamic-content').getText()> 
520            </#if> 
521            <#if dynamicElement.attributeValue("name") == "SobrenomeBilhete"> 
522                <#assign SobrenomeBilhete = dynamicElement.element('dynamic-content').getText()> 
523            </#if> 
524            <#if dynamicElement.attributeValue("name") == "NomeBilhete"> 
525                <#assign NomeBilhete = dynamicElement.element('dynamic-content').getText()> 
526            </#if> 
527            <#if dynamicElement.attributeValue("name") == "NumeroDoBilhete"> 
528                <#assign NumeroDoBilhete = dynamicElement.element('dynamic-content').getText()> 
529            </#if> 
530            <#if dynamicElement.attributeValue("name") == "TooltipNumeroDoBilhete"> 
531                <#assign TooltipNumeroDoBilhete = dynamicElement.element('dynamic-content').getText()> 
532            </#if> 
533            <#if dynamicElement.attributeValue("name") == "ImagemTooltipNumeroDoBilhete"> 
534                <#assign ImagemTooltipNumeroDoBilhete = dynamicElement.element('dynamic-content').getText()> 
535            </#if> 
536            <#if dynamicElement.attributeValue("name") == "Localizador"> 
537                <#assign Localizador = dynamicElement.element('dynamic-content').getText()> 
538            </#if> 
539            <#if dynamicElement.attributeValue("name") == "TooltipLocalizador"> 
540                <#assign TooltipLocalizador = dynamicElement.element('dynamic-content').getText()> 
541            </#if> 
542            <#if dynamicElement.attributeValue("name") == "LabelButtonSolicitarPontos"> 
543                <#assign LabelButtonSolicitarPontos = dynamicElement.element('dynamic-content').getText()> 
544            </#if> 
545            <#if dynamicElement.attributeValue("name") == "CartaoImagem"> 
546                <#assign CartaoImagem = dynamicElement.element('dynamic-content').getText()> 
547            </#if> 
548            <#if dynamicElement.attributeValue("name") == "ImagemTooltipNumeroDeVoo"> 
549                <#assign ImagemTooltipNumeroDeVoo = dynamicElement.element('dynamic-content').getText()> 
550            </#if> 
551            <#if dynamicElement.attributeValue("name") == "SufixoGold"> 
552                <#assign SufixoGold = dynamicElement.element('dynamic-content').getText()> 
553            </#if> 
554            <#if dynamicElement.attributeValue("name") == "SufixoSilver"> 
555                <#assign SufixoSilver = dynamicElement.element('dynamic-content').getText()> 
556            </#if> 
557            <#if dynamicElement.attributeValue("name") == "SufixoDiamond"> 
558                <#assign SufixoDiamond = dynamicElement.element('dynamic-content').getText()> 
559            </#if> 
560            <#if dynamicElement.attributeValue("name") == "SufixoBronze"> 
561                <#assign SufixoBronze = dynamicElement.element('dynamic-content').getText()> 
562            </#if> 
563            <#if dynamicElement.attributeValue("name") =="ImagemCartaoBronze"> 
564                <#assign ImagemCartaoBronze = dynamicElement.element('dynamic-content').getText()> 
565            </#if> 
566            <#if dynamicElement.attributeValue("name") =="ImagemCartaoSilver"> 
567                <#assign ImagemCartaoSilver = dynamicElement.element('dynamic-content').getText()> 
568            </#if> 
569            <#if dynamicElement.attributeValue("name") =="ImagemCartaoDiamond"> 
570                <#assign ImagemCartaoDiamond = dynamicElement.element('dynamic-content').getText()> 
571            </#if> 
572 
573 
574        <#-- New objects --> 
575 
576            <#if dynamicElement.attributeValue("name") =="LabelBreadcrumbPagInicial"> 
577                <#assign LabelBreadcrumbPagInicial = dynamicElement.element('dynamic-content').getText()> 
578            </#if> 
579            <#if dynamicElement.attributeValue("name") =="LabelBreadcrumbMeusPontos"> 
580                <#assign LabelBreadcrumbMeusPontos = dynamicElement.element('dynamic-content').getText()> 
581            </#if> 
582            <#if dynamicElement.attributeValue("name") =="LabelAbaSupEsqMeusPontos"> 
583                <#assign LabelAbaSupEsqMeusPontos = dynamicElement.element('dynamic-content').getText()> 
584            </#if> 
585            <#if dynamicElement.attributeValue("name") =="LabelAbaSupDirMeusDados"> 
586                <#assign LabelAbaSupDirMeusDados = dynamicElement.element('dynamic-content').getText()> 
587            </#if> 
588            <#if dynamicElement.attributeValue("name") =="LabelMeusPontos"> 
589                <#assign LabelMeusPontos = dynamicElement.element('dynamic-content').getText()> 
590            </#if> 
591            <#if dynamicElement.attributeValue("name") =="LabelAbaMeusPontosLinkVoltar"> 
592                <#assign LabelAbaMeusPontosLinkVoltar = dynamicElement.element('dynamic-content').getText()> 
593            </#if>            
594            <#if dynamicElement.attributeValue("name") =="LabelAbaLatMeusPontosDtExibPontos"> 
595                <#assign LabelAbaLatMeusPontosDtExibPontos = dynamicElement.element('dynamic-content').getText()> 
596            </#if> 
597            <#if dynamicElement.attributeValue("name") =="TxtAbaLatImpCartaoVerCartao"> 
598                <#assign TxtAbaLatImpCartaoVerCartao = dynamicElement.element('dynamic-content').getText()> 
599            </#if> 
600            <#if dynamicElement.attributeValue("name") =="TxtAbaLatImpCartaoImprimirCartao"> 
601                <#assign TxtAbaLatImpCartaoImprimirCartao = dynamicElement.element('dynamic-content').getText()> 
602            </#if> 
603            <#if dynamicElement.attributeValue("name") =="AlterarHorario"> 
604                <#assign AlterarHorario = dynamicElement.element('dynamic-content').getText()> 
605            </#if> 
606            <#if dynamicElement.attributeValue("name") =="PontosAcumuladosPlaceholder"> 
607                <#assign PontosAcumuladosPlaceholder = dynamicElement.element('dynamic-content').getText()> 
608            </#if> 
609            <#if dynamicElement.attributeValue("name") =="LabelFiltroPontosDebitadosMob"> 
610                <#assign LabelFiltroPontosDebitadosMob = dynamicElement.element('dynamic-content').getText()> 
611            </#if> 
612            <#if dynamicElement.attributeValue("name") =="PontosDebitadosPlaceholderMob"> 
613                <#assign PontosDebitadosPlaceholderMob = dynamicElement.element('dynamic-content').getText()> 
614            </#if>             
615            <#if dynamicElement.attributeValue("name") =="LinkAnteriorPontosAcumulados"> 
616                <#assign LinkAnteriorPontosAcumulados = dynamicElement.element('dynamic-content').getText()> 
617            </#if> 
618            <#if dynamicElement.attributeValue("name") =="LinkProximoPontosAcumulados"> 
619                <#assign LinkProximoPontosAcumulados = dynamicElement.element('dynamic-content').getText()> 
620            </#if> 
621            <#if dynamicElement.attributeValue("name") =="LinkAnteriorPontosDebitados"> 
622                <#assign LinkAnteriorPontosDebitados = dynamicElement.element('dynamic-content').getText()> 
623            </#if> 
624            <#if dynamicElement.attributeValue("name") =="LinkProximoPontosDebitados"> 
625                <#assign LinkProximoPontosDebitados = dynamicElement.element('dynamic-content').getText()> 
626            </#if> 
627            <#if dynamicElement.attributeValue("name") =="TxtCamposObrigatorios"> 
628                <#assign TxtCamposObrigatorios = dynamicElement.element('dynamic-content').getText()> 
629            </#if> 
630            <#if dynamicElement.attributeValue("name") =="LabelAbaLateralEsq"> 
631                <#assign LabelAbaLateralEsq = dynamicElement.element('dynamic-content').getText()> 
632            </#if> 
633            <#if dynamicElement.attributeValue("name") =="LabelAbaLateralEsqImprimirCartao"> 
634                <#assign LabelAbaLateralEsqImprimirCartao = dynamicElement.element('dynamic-content').getText()> 
635            </#if> 
636            <#if dynamicElement.attributeValue("name") =="LabelAbaLateralEsqResgatarPontos"> 
637                <#assign LabelAbaLateralEsqResgatarPontos = dynamicElement.element('dynamic-content').getText()> 
638            </#if> 
639            <#if dynamicElement.attributeValue("name") =="LabelAbaLateralEsqPontosAcumulados"> 
640                <#assign LabelAbaLateralEsqPontosAcumulados = dynamicElement.element('dynamic-content').getText()> 
641            </#if> 
642            <#if dynamicElement.attributeValue("name") =="LabelAbaLateralEsqPontosDebitados"> 
643                <#assign LabelAbaLateralEsqPontosDebitados = dynamicElement.element('dynamic-content').getText()> 
644            </#if> 
645            <#if dynamicElement.attributeValue("name") =="LabelAbaLateralEsqSolicitarPontos"> 
646                <#assign LabelAbaLateralEsqSolicitarPontos = dynamicElement.element('dynamic-content').getText()> 
647            </#if> 
648            <#if dynamicElement.attributeValue("name") =="LabelAbaLateralEsqProgramaAmigo"> 
649                <#assign LabelAbaLateralEsqProgramaAmigo = dynamicElement.element('dynamic-content').getText()> 
650            </#if> 
651            <#if dynamicElement.attributeValue("name") =="TxtAbaSuperiorMeusDados"> 
652                <#assign TxtAbaSuperiorMeusDados = dynamicElement.element('dynamic-content').getText()> 
653            </#if> 
654            <#if dynamicElement.attributeValue("name") =="TxtLinkVoltarVerCartao"> 
655                <#assign TxtLinkVoltarVerCartao = dynamicElement.element('dynamic-content').getText()> 
656            </#if> 
657            <#if dynamicElement.attributeValue("name") =="TxtLinkVoltarImprimirCartao"> 
658                <#assign TxtLinkVoltarImprimirCartao = dynamicElement.element('dynamic-content').getText()> 
659            </#if> 
660            <#if dynamicElement.attributeValue("name") =="TxtAbaLateralMeusPontosFaltam"> 
661                <#assign TxtAbaLateralMeusPontosFaltam = dynamicElement.element('dynamic-content').getText()> 
662            </#if> 
663            <#if dynamicElement.attributeValue("name") =="TxtAbaLateralMeusPontosPontos"> 
664                <#assign TxtAbaLateralMeusPontosPontos = dynamicElement.element('dynamic-content').getText()> 
665            </#if> 
666            <#if dynamicElement.attributeValue("name") =="TxtAbaLateralMeusPontosParaNivel"> 
667                <#assign TxtAbaLateralMeusPontosParaNivel = dynamicElement.element('dynamic-content').getText()> 
668            </#if> 
669            <#if dynamicElement.attributeValue("name") =="TxtAbaLateralMeusPontosQtdAtual"> 
670                <#assign TxtAbaLateralMeusPontosQtdAtual = dynamicElement.element('dynamic-content').getText()> 
671            </#if> 
672            <#if dynamicElement.attributeValue("name") =="TxtAbaLateralMeusPontosDtUpdatePontos"> 
673                <#assign TxtAbaLateralMeusPontosDtUpdatePontos = dynamicElement.element('dynamic-content').getText()> 
674            </#if> 
675            <#if dynamicElement.attributeValue("name") =="PaginacaoPontosFirst"> 
676                <#assign PaginacaoPontosFirst = dynamicElement.element('dynamic-content').getText()> 
677            </#if> 
678            <#if dynamicElement.attributeValue("name") =="PaginacaoPontosPrevious"> 
679                <#assign PaginacaoPontosPrevious = dynamicElement.element('dynamic-content').getText()> 
680            </#if> 
681            <#if dynamicElement.attributeValue("name") =="PaginacaoPontosNext"> 
682                <#assign PaginacaoPontosNext = dynamicElement.element('dynamic-content').getText()> 
683            </#if> 
684            <#if dynamicElement.attributeValue("name") =="PaginacaoPontosLast"> 
685                <#assign PaginacaoPontosLast = dynamicElement.element('dynamic-content').getText()> 
686            </#if> 
687            <#if dynamicElement.attributeValue("name") =="LabelAtividades"> 
688                <#assign LabelAtividades = dynamicElement.element('dynamic-content').getText()> 
689            </#if> 
690            <#if dynamicElement.attributeValue("name") =="MsgCampoObrigatorio"> 
691                <#assign MsgCampoObrigatorio = dynamicElement.element('dynamic-content').getText()> 
692            </#if> 
693            <#if dynamicElement.attributeValue("name") =="MsgCampoInvalido"> 
694                <#assign MsgCampoInvalido = dynamicElement.element('dynamic-content').getText()> 
695            </#if>           
696             <#if dynamicElement.attributeValue("name") =="LinkAbaLatProgramaAmigo"> 
697                <#assign LinkAbaLatProgramaAmigo = dynamicElement.element('dynamic-content').getText()> 
698            </#if> 
699            <#if dynamicElement.attributeValue("name") == "LinkBreadcrumbPagInicial"> 
700                <#assign LinkBreadcrumbPagInicial = get_friendly_url(dynamicElement.element('dynamic-content').getText())> 
701            </#if> 
702            <#if dynamicElement.attributeValue("name") == "LinkBreadcrumbMeusPontos"> 
703                <#assign LinkBreadcrumbMeusPontos = get_friendly_url(dynamicElement.element('dynamic-content').getText())> 
704            </#if> 
705 
706        <#-- fm objetos de Meus Pontos --> 
707 
708 
709            <#if dynamicElement.attributeValue("name") == "TitlePassagens"> 
710                <#assign TitlePassagens = dynamicElement.element('dynamic-content').getText()> 
711            </#if> 
712            <#if dynamicElement.attributeValue("name") == "IdaEVolta"> 
713                <#assign IdaEVolta = dynamicElement.element('dynamic-content').getText()> 
714            </#if> 
715            <#if dynamicElement.attributeValue("name") == "SoIda"> 
716                <#assign SoIda = dynamicElement.element('dynamic-content').getText()> 
717            </#if> 
718            <#if dynamicElement.attributeValue("name") == "BuscasRecentes"> 
719                <#assign BuscasRecentes = dynamicElement.element('dynamic-content').getText()> 
720            </#if> 
721            <#if dynamicElement.attributeValue("name") == "BuscasRecentesPlaceholder"> 
722                <#assign BuscasRecentesPlaceholder = dynamicElement.element('dynamic-content').getText()> 
723            </#if> 
724            <#if dynamicElement.attributeValue("name") == "Origem"> 
725                <#assign Origem = dynamicElement.element('dynamic-content').getText()> 
726            </#if> 
727            <#if dynamicElement.attributeValue("name") == "OrigemPlaceholder"> 
728                <#assign OrigemPlaceholder = dynamicElement.element('dynamic-content').getText()> 
729            </#if> 
730            <#if dynamicElement.attributeValue("name") == "Destino"> 
731                <#assign Destino = dynamicElement.element('dynamic-content').getText()> 
732            </#if> 
733            <#if dynamicElement.attributeValue("name") == "DestinoPlaceholder"> 
734                <#assign DestinoPlaceholder = dynamicElement.element('dynamic-content').getText()> 
735            </#if> 
736            <#if dynamicElement.attributeValue("name") == "DataDeIda"> 
737                <#assign DataDeIda = dynamicElement.element('dynamic-content').getText()> 
738            </#if> 
739            <#if dynamicElement.attributeValue("name") == "DataDeVolta"> 
740                <#assign DataDeVolta = dynamicElement.element('dynamic-content').getText()> 
741            </#if> 
742            <#if dynamicElement.attributeValue("name") == "DataDeIdaPlaceholder"> 
743                <#assign DataDeIdaPlaceholder = dynamicElement.element('dynamic-content').getText()> 
744            </#if> 
745            <#if dynamicElement.attributeValue("name") == "ListHorarios"> 
746                <#assign ListHorarios = dynamicElement.element('dynamic-content').getText()> 
747            </#if> 
748            <#if dynamicElement.attributeValue("name") == "Adultos"> 
749                <#assign Adultos = dynamicElement.element('dynamic-content').getText()> 
750            </#if> 
751            <#if dynamicElement.attributeValue("name") == "AdultosPlaceholder"> 
752                <#assign AdultosPlaceholder = dynamicElement.element('dynamic-content').getText()> 
753            </#if> 
754            <#if dynamicElement.attributeValue("name") == "Crianca"> 
755                <#assign Crianca = dynamicElement.element('dynamic-content').getText()> 
756            </#if> 
757            <#if dynamicElement.attributeValue("name") == "TextoCriancas"> 
758                <#assign TextoCriancas = dynamicElement.element('dynamic-content').getText()> 
759            </#if> 
760            <#if dynamicElement.attributeValue("name") == "CriancasPlaceholder"> 
761                <#assign CriancasPlaceholder = dynamicElement.element('dynamic-content').getText()> 
762            </#if> 
763            <#if dynamicElement.attributeValue("name") == "textoInforBebe"> 
764                <#assign textoInforBebe = dynamicElement.element('dynamic-content').getText()> 
765            </#if> 
766            <#if dynamicElement.attributeValue("name") == "Cabine"> 
767                <#assign Cabine = dynamicElement.element('dynamic-content').getText()> 
768            </#if> 
769            <#if dynamicElement.attributeValue("name") == "CabinePlaceholder"> 
770                <#assign CabinePlaceholder = dynamicElement.element('dynamic-content').getText()> 
771            </#if> 
772            <#if dynamicElement.attributeValue("name") == "UtilizarPontosLabel"> 
773                <#assign UtilizarPontosLabel = dynamicElement.element('dynamic-content').getText()> 
774            </#if> 
775            <#if dynamicElement.attributeValue("name") == "MaisDe9Passageiros"> 
776                <#assign MaisDe9Passageiros = dynamicElement.element('dynamic-content').getText()> 
777            </#if> 
778            <#if dynamicElement.attributeValue("name") == "LabelBotao"> 
779                <#assign LabelBotao = dynamicElement.element('dynamic-content').getText()> 
780            </#if> 
781            <#if dynamicElement.attributeValue("name") == "Bebe"> 
782                <#assign Bebe = dynamicElement.element('dynamic-content').getText()> 
783            </#if> 
784            <#if dynamicElement.attributeValue("name") == "BebesPlaceholder"> 
785                <#assign BebesPlaceholder = dynamicElement.element('dynamic-content').getText()> 
786            </#if> 
787            <#if dynamicElement.attributeValue("name") == "TextoErroP5CrianEAdultos"> 
788                <#assign TextoErroP5CrianEAdultos = dynamicElement.element('dynamic-content').getText()> 
789            </#if> 
790            <#if dynamicElement.attributeValue("name") == "TextoDataIda"> 
791                <#assign TextoDataIda = dynamicElement.element('dynamic-content').getText()> 
792            </#if> 
793            <#if dynamicElement.attributeValue("name") == "TextoDataVolta"> 
794                <#assign TextoDataVolta = dynamicElement.element('dynamic-content').getText()> 
795            </#if> 
796 
797            <#if dynamicElement.attributeValue("name") == "usarPontosRes"> 
798                <#assign usarPontosRes = dynamicElement.element('dynamic-content').getText()> 
799            </#if> 
800            <#if dynamicElement.attributeValue("name") == "datasFlexRes"> 
801                <#assign datasFlexRes = dynamicElement.element('dynamic-content').getText()> 
802            </#if> 
803 
804 
805 
806            <#-- objetos de NÃO AMIGO --> 
807            <#if dynamicElement.attributeValue("name") == "TextoBannerMeusPontos"> 
808                <#assign TextoBannerMeusPontos = dynamicElement.element('dynamic-content').getText()> 
809            </#if> 
810            <#if dynamicElement.attributeValue("name") == "ImagemBannerDesktopMeusPontos"> 
811                <#assign ImagemBannerDesktopMeusPontos = dynamicElement.element('dynamic-content').getText()> 
812                <#if ImagemBannerDesktopMeusPontos?? && ImagemBannerDesktopMeusPontos != ""> 
813                    <#assign imgAltBannerDesktop = dynamicElement.element('dynamic-content')?string?split('alt value "')[1]?split('"]')[0]> 
814                </#if> 
815            </#if> 
816            <#if dynamicElement.attributeValue("name") == "ImagemBannerMobileMeusPontos"> 
817                <#assign ImagemBannerMobileMeusPontos = dynamicElement.element('dynamic-content').getText()> 
818                <#if ImagemBannerMobileMeusPontos?? && ImagemBannerMobileMeusPontos != ""> 
819                    <#assign imgAltBannerMobile = dynamicElement.element('dynamic-content')?string?split('alt value "')[1]?split('"]')[0]> 
820                </#if> 
821            </#if> 
822 
823            <#if dynamicElement.attributeValue("name") == "DesejoParticipar"> 
824                <#assign DesejoParticipar = dynamicElement.element('dynamic-content').getText()> 
825            </#if> 
826            <#if dynamicElement.attributeValue("name") == "participarCheckado"> 
827                <#assign participarCheckado = dynamicElement.element('dynamic-content').getText()> 
828            </#if> 
829            <#if dynamicElement.attributeValue("name") == "ReceberNovidadesDoProgramaAmigo"> 
830                <#assign ReceberNovidadesDoProgramaAmigo = dynamicElement.element('dynamic-content').getText()> 
831            </#if> 
832            <#if dynamicElement.attributeValue("name") == "ReceberCheckado"> 
833                <#assign ReceberCheckado = dynamicElement.element('dynamic-content').getText()> 
834            </#if> 
835            <#if dynamicElement.attributeValue("name") == "BotaoCadastrar"> 
836                <#assign BotaoCadastrar = dynamicElement.element('dynamic-content').getText()> 
837            </#if> 
838            <#if dynamicElement.attributeValue("name") == "BotaoCadastrarMobile"> 
839                <#assign BotaoCadastrarMobile = dynamicElement.element('dynamic-content').getText()> 
840            </#if> 
841            <#if dynamicElement.attributeValue("name") == "tituloFormularioAmigo"> 
842                <#assign tituloFormularioAmigo = dynamicElement.element('dynamic-content').getText()> 
843            </#if> 
844            <#if dynamicElement.attributeValue("name") == "logoAmigoFormulario"> 
845                <#assign logoAmigoFormulario = dynamicElement.element('dynamic-content').getText()> 
846            </#if> 
847            <#if dynamicElement.attributeValue("name") == "mensagemSucessoCadastrarAmigo"> 
848                <#assign mensagemSucessoCadastrarAmigo = dynamicElement.element('dynamic-content').getText()> 
849            </#if> 
850            <#if dynamicElement.attributeValue("name") == "mensagemErroCadastrarAmigo"> 
851                <#assign mensagemErroCadastrarAmigo = dynamicElement.element('dynamic-content').getText()> 
852            </#if> 
853 
854             
855 
856 
857            <#if dynamicElement.attributeValue("name") == "TituloTextoSuperior"> 
858                <#assign TituloTextoSuperior = dynamicElement.element('dynamic-content').getText()> 
859            </#if> 
860            <#if dynamicElement.attributeValue("name") == "TextoSuperior"> 
861                <#assign TextoSuperior = dynamicElement.element('dynamic-content').getText()> 
862            </#if> 
863            <#if dynamicElement.attributeValue("name") == "LabelBotaoTextoSuperior"> 
864                <#assign LabelBotaoTextoSuperior = dynamicElement.element('dynamic-content').getText()> 
865            </#if> 
866            <#if dynamicElement.attributeValue("name") == "LinkBotaoSuperior"> 
867                <#assign LinkBotaoSuperior = dynamicElement.element('dynamic-content').getText()> 
868            </#if> 
869            <#if dynamicElement.attributeValue("name") == "ImagemSuperior"> 
870                <#assign ImagemSuperior = dynamicElement.element('dynamic-content').getText()> 
871                <#if ImagemSuperior?? && ImagemSuperior != ""> 
872                    <#assign imgAltSuperior = dynamicElement.element('dynamic-content')?string?split('alt value "')[1]?split('"]')[0]> 
873                </#if> 
874            </#if> 
875 
876            <#if dynamicElement.attributeValue("name") == "TituloTextoMeio"> 
877                <#assign TituloTextoMeio = dynamicElement.element('dynamic-content').getText()> 
878            </#if> 
879            <#if dynamicElement.attributeValue("name") == "TextoMeio"> 
880                <#assign TextoMeio = dynamicElement.element('dynamic-content').getText()> 
881            </#if> 
882            <#if dynamicElement.attributeValue("name") == "LabelBotaoTextoMeio"> 
883                <#assign LabelBotaoTextoMeio = dynamicElement.element('dynamic-content').getText()> 
884            </#if> 
885            <#if dynamicElement.attributeValue("name") == "LinkBotaoMeio"> 
886                <#assign LinkBotaoMeio = dynamicElement.element('dynamic-content').getText()> 
887            </#if> 
888            <#if dynamicElement.attributeValue("name") == "ImagemMeio"> 
889                <#assign ImagemMeio = dynamicElement.element('dynamic-content').getText()> 
890                <#if ImagemMeio?? && ImagemMeio != ""> 
891                    <#assign imgAltMeio = dynamicElement.element('dynamic-content')?string?split('alt value "')[1]?split('"]')[0]> 
892                </#if> 
893            </#if> 
894 
895            <#if dynamicElement.attributeValue("name") == "TituloTextoInferior"> 
896                <#assign TituloTextoInferior = dynamicElement.element('dynamic-content').getText()> 
897            </#if> 
898            <#if dynamicElement.attributeValue("name") == "TextoInferior"> 
899                <#assign TextoInferior = dynamicElement.element('dynamic-content').getText()> 
900            </#if> 
901            <#if dynamicElement.attributeValue("name") == "LabelBotaoTextoInferior"> 
902                <#assign LabelBotaoTextoInferior = dynamicElement.element('dynamic-content').getText()> 
903            </#if> 
904            <#if dynamicElement.attributeValue("name") == "LinkBotaoInferior"> 
905                <#assign LinkBotaoInferior = dynamicElement.element('dynamic-content').getText()> 
906            </#if> 
907            <#if dynamicElement.attributeValue("name") == "ImagemInferior"> 
908                <#assign ImagemInferior = dynamicElement.element('dynamic-content').getText()> 
909                <#if ImagemInferior?? && ImagemInferior != ""> 
910                    <#assign imgAltInferior = dynamicElement.element('dynamic-content')?string?split('alt value "')[1]?split('"]')[0]> 
911                </#if> 
912            </#if> 
913 
914            <#if dynamicElement.attributeValue("name") == "LabelBotaoCadastro"> 
915                <#assign LabelBotaoCadastro = dynamicElement.element('dynamic-content').getText()> 
916            </#if> 
917            <#if dynamicElement.attributeValue("name") == "LinkBotaoCadastro"> 
918                <#assign LinkBotaoCadastro = get_friendly_url(dynamicElement.element('dynamic-content').getText())> 
919 
920            </#if> 
921 
922        </#list> 
923    </#list> 
924</#if> 
925 
926<div class="av-breadcrumb hidden-xs"> 
927    <div class="container"> 
928        <ul class="row"> 
929            <li class="first pull-left"><a href="${LinkBreadcrumbPagInicial}" class="fz-12">${LabelBreadcrumbPagInicial}</a></li> 
930            <li class="last pull-left"><a href="${LinkBreadcrumbMeusPontos}" class="fz-12">${LabelBreadcrumbMeusPontos}</a></li> 
931        </ul> 
932    </div> 
933</div> 
934<div style="padding-top: 20px; background-color: #f4f4f4;"> 
935 
936<div id="area-logada" class="container"> 
937    <nav class="row hidden-xs"> 
938       <a href="#informativo" class="col-xs-6 lnk-pontos informativo hashCheck">${LabelAbaSupEsqMeusPontos}</a> 
939       <a href="#dados" id="meusDadosPage" onclick="location.href='/meus-dados'" class="col-xs-6 lnk-dados dados hashCheck">${LabelAbaSupDirMeusDados}</a> 
940    </nav> 
941    <div class="row" style="background-color: white"> 
942       <div class="container contents"> 
943          <div class="area-logada-content row" id="content-informativo-pontos"> 
944             <h3 class="container-fluid header toggler-header"> 
945                <span>${LabelMeusPontos}</span> 
946                <span class="dropdown"></span> 
947             </h3> 
948             <div class="content toggler-content"> 
949                <div class="meus-pontos" id="meusPontosContent" style="display: none;"> 
950                   <div class="container-fluid content-pd"> 
951                      <div class="col-xs-12 av-back visible-xs" hidden="hidden"> 
952                         <span class="glyphicon glyphicon-chevron-left pull-left"></span> 
953                         <p class="fz-12 pull-left">${LabelAbaMeusPontosLinkVoltar}</p> 
954                      </div> 
955                      <div id="conteudo-cartao"> 
956                         <div class="col-xs-12 col-sm-8 content-info-menu pull-right" data-change="1" hidden="hidden"> 
957                            <div id="meus-pontos"> 
958                               <div class="col-xs-12"> 
959                                  <!-- Meu número amigo --> 
960                                  <div class="row"> 
961                                     <div class="row"> 
962                                        <div class="numero-amigo numAmigo"> 
963                                           <div class="col-xs-12"> 
964                                              <div class="circulos"> 
965                                                 <em></em><em></em><em></em> 
966                                              </div> 
967                                           </div> 
968                                           <strong>${TextNumAmigo}</strong> N/A 
969                                        </div> 
970                                     </div> 
971                                  </div> 
972                                  <!-- Para alterar a cor de acordo com o nível, utilize classe gold, bronze, diamond ou silver apenas na <div> abaixo --> 
973                                  <div class="bronze" id="divMedalha"> 
974                                     <!-- Você é nível Gold --> 
975                                     <div class="row"> 
976                                        <div class="content-pontos nivel"> 
977                                           <span class="medalha"></span> 
978                                           <h4 class="color" id="tituloNivel">${TituloNivel}</h4> 
979                                           <p id="qtdPontosRestantes">${TxtAbaLateralMeusPontosFaltam}<br class="visible-xs"> ${TxtAbaLateralMeusPontosParaNivel}</p> 
980                                        </div> 
981                                     </div> 
982                                     <!-- Meus pontos --> 
983                                     <div class="row"> 
984                                        <div class="content-pontos"> 
985                                           <h4>${TituloPontos}</h4> 
986                                           <hr/> 
987                                           <strong style="display: block;text-align: center;">${TextPontos}</strong> 
988                                           <h4 class="color" id="qtdPontosAtual">${TxtAbaLateralMeusPontosQtdAtual}</h4> 
989                                           <p id="dtExibicaoPontos">${TxtAbaLateralMeusPontosDtUpdatePontos}</p> 
990                                        </div> 
991                                     </div> 
992                                     <!-- Tabela de explicação expirada --> 
993                                     <div class="row" id="tabelaPontosExpirar"> 
994                                        <div class="content-pontos tabela-explicacao"> 
995                                           <h4>${TituloTabelaExplicacao}</h4> 
996                                           <hr/> 
997                                           <!-- Tabela --> 
998                                           <div class="tbl"> 
999                                              <div class="row"> 
1000                                                 <div class="col-xs-12 title"> 
1001                                                    <div class="col-xs-8"> 
1002                                                       <div class="row"> 
1003                                                          ${Data} 
1004                                                       </div> 
1005                                                    </div> 
1006                                                    <div class="col-xs-4"> 
1007                                                       <div class="row"> 
1008                                                          ${PontosAExpirar} 
1009                                                       </div> 
1010                                                    </div> 
1011                                                 </div> 
1012                                                 <div class="col-xs-12" id="tierShow1"> 
1013                                                    <div class="col-xs-8"> 
1014                                                       <div class="row"> 
1015                                                       </div> 
1016                                                    </div> 
1017                                                    <div class="col-xs-4"> 
1018                                                       <div class="row"> 
1019                                                       </div> 
1020                                                    </div> 
1021                                                 </div> 
1022                                                 <div class="col-xs-12" id="tierShow2"> 
1023                                                    <div class="col-xs-8"> 
1024                                                       <div class="row"> 
1025                                                       </div> 
1026                                                    </div> 
1027                                                    <div class="col-xs-4"> 
1028                                                       <div class="row"> 
1029                                                       </div> 
1030                                                    </div> 
1031                                                 </div> 
1032                                                 <div class="col-xs-12" id="tierShow3"> 
1033                                                    <div class="col-xs-8"> 
1034                                                       <div class="row"> 
1035                                                       </div> 
1036                                                    </div> 
1037                                                    <div class="col-xs-4"> 
1038                                                       <div class="row"> 
1039                                                       </div> 
1040                                                    </div> 
1041                                                 </div> 
1042                                              </div> 
1043                                           </div> 
1044                                           <div class="tbl tbl-todos hidden"> 
1045                                              <div class="row"> 
1046                                                 <div class="col-xs-12 title"> 
1047                                                    <div class="col-xs-6"> 
1048                                                       <div class="row"> 
1049                                                          ${Data} 
1050                                                       </div> 
1051                                                    </div> 
1052                                                    <div class="col-xs-4"> 
1053                                                       <div class="row"> 
1054                                                          ${PontosAExpirar} 
1055                                                       </div> 
1056                                                    </div> 
1057                                                 </div> 
1058                                              </div> 
1059                                              <div class="text"> 
1060                                                 <div class="row" id="fullTiers"> 
1061                                                    <div class="col-xs-12"> 
1062                                                       <div class="col-xs-6"> 
1063                                                          <div class="row"> 
1064                                                             N/A 
1065                                                          </div> 
1066                                                       </div> 
1067                                                       <div class="col-xs-4"> 
1068                                                          <div class="row"> 
1069                                                             N/A 
1070                                                          </div> 
1071                                                       </div> 
1072                                                    </div> 
1073                                                 </div> 
1074                                              </div> 
1075                                           </div> 
1076                                           <a class="more-offer red-btn" id="buttonSeeAllPointsToExpiry">${LabelButtonTabelaExplicacao}</a> 
1077                                        </div> 
1078                                     </div> 
1079                                     <!-- Pontos Qualificáveis --> 
1080                                     <div class="row"> 
1081                                        <div class="content-pontos pontos-qualificaveis"> 
1082                                           <h4>${PontosQualificaveis}</h4> 
1083                                           <hr/> 
1084                                           <!-- Tabela --> 
1085                                           <div class="tbl"> 
1086                                              <div class="row"> 
1087                                                 <div class="col-xs-9"> 
1088                                                    ${PontosQualificaveis} 
1089                                                 </div> 
1090                                                 <div class="col-xs-3" id="sumAwardPoints"> 
1091
1092                                                 </div> 
1093                                              </div> 
1094                                           </div> 
1095                                        </div> 
1096                                     </div> 
1097                                  </div> 
1098                               </div> 
1099                            </div> 
1100                         </div> 
1101                         <!-- Imprimir Cartão--> 
1102                         <div class="col-xs-12 col-sm-8 content-info-menu pull-right" hidden="hidden" data-change="2"> 
1103                            <div id="meus-pontos-imprimir-cartao"> 
1104                               <div class="col-xs-12  hidden-xs hidden-sm"> 
1105                                  <div class="row"> 
1106                                     <h4>${TituloImprimirCartao}</h4> 
1107                                     <p>${TextoCartao}</p> 
1108                                     <!-- Cartão --> 
1109                                     <div class="cartao gold"> 
1110                                        <img src="${CartaoImagem}" class="imgCartao" alt="Imagem cartão" title="Imagem cartão"> 
1111                                        <div class="cliente dadosCliente" > 
1112                                        </div> 
1113                                     </div> 
1114                                     <!-- Imprimir --> 
1115                                     <div class="print-desk hidden-xs"> 
1116                                        <div class="row"> 
1117                                           <div class="col-sm-10 col-md-12 col-lg-12"> 
1118                                              <a onclick="printCard()" class="more-offer red-btn">${LabelBotaoCartao}</a> 
1119                                           </div> 
1120                                        </div> 
1121                                     </div> 
1122                                  </div> 
1123                               </div> 
1124                               <div class="col-xs-12 visible-xs visible-sm"> 
1125                                  <div class="row"> 
1126                                    <div id="cartao-sem-modal"> 
1127                                      <h4>${TituloImprimirCartao}</h4> 
1128                                      <p>${TextoCartao}</p> 
1129                                       <!-- Cartão --> 
1130                                       <div class="cartao mobile gold" id="divCartaoMobile"> 
1131                                          <img src="${CartaoImagem}" class="imgCartao" alt="Imagem cartão" title="Imagem cartão"> 
1132                                          <div class="cliente dadosCliente"> 
1133                                          </div> 
1134                                       </div> 
1135                                       <div class="links"> 
1136                                          <p><a href="javascript:;" id="bt-ver-cartao">${TxtAbaLatImpCartaoVerCartao}</a></p> 
1137                                          <!-- Imprimir --> 
1138                                          <p><a href="javascript:;" onclick="printCard()" id="bt-imprimir-cartao">${TxtAbaLatImpCartaoImprimirCartao}</a></p> 
1139                                       </div> 
1140                                    </div>                                     
1141                                     <div id="cartao-ver-modal"> 
1142                                     </div> 
1143                                  </div> 
1144                               </div> 
1145                            </div> 
1146                         </div> 
1147                         <!-- Resgatar Pontos --> 
1148                         <div class="col-xs-12 col-sm-8 content-info-menu pull-right" hidden="hidden" data-change="3"> 
1149                            <div id="meus-pontos-resgatar-pontos"> 
1150                               <div class="col-xs-12"> 
1151                                  <div class="row"> 
1152                                     <div class="col-xs-12"> 
1153                                        <div class="row"> 
1154                                           <h4 role="heading" aria-level="4">${TituloResgatarPontos}</h4> 
1155                                           <p class="pto">${TextoPontos}</p> 
1156                                        </div> 
1157                                     </div> 
1158                                  </div> 
1159                                  <div class="row"> 
1160                                     <form action="#" method="post" class="busca_passagem containerpickerpontos formulario lojinha-form"> 
1161                                        <div class="row"> 
1162                                           <div class="col-xs-12 col-sm-6 pr"> 
1163                                              <div class="ad-toggle pull-left"> 
1164                                                 <fieldset> 
1165                                                    <p> 
1166                                                       <input id="idaevolta" type="radio" name="tipoPassagem" value="idaevolta" checked="checked" /> 
1167                                                       <label for="idaevolta">${IdaEVolta}</label> 
1168                                                       <input id="soida" type="radio" name="tipoPassagem" value="soida" /> 
1169                                                       <label for="soida">${SoIda}</label> 
1170                                                    </p> 
1171                                                 </fieldset> 
1172                                              </div> 
1173                                           </div> 
1174                                           <div class="col-xs-12 col-sm-6 pl"> 
1175                                              <div class="form-group select busca-recent"> 
1176                                                 <div class="content-select"> 
1177                                                    <div class="row"> 
1178                                                       <label for="buscasRecentes" class="fz-14 hide">${BuscasRecentes}</label> 
1179                                                       <div class="text-input"> 
1180                                                          <input type="text" name="buscasRecentes" id="buscasRecentes" class="form-control txt-center" placeholder="${BuscasRecentesPlaceholder}"> 
1181                                                          <span class="current-value fz-14 tal fwb" data-value="">${BuscasRecentes}</span> 
1182                                                          <span class="ico glyphicon glyphicon-chevron-down"></span> 
1183                                                          <span class="ico glyphicon glyphicon-chevron-up"></span> 
1184                                                          <div class="dropdown col-xs-12"> 
1185                                                             <ul class="row recent-searches"> 
1186                                                             </ul> 
1187                                                          </div> 
1188                                                       </div> 
1189                                                    </div> 
1190                                                 </div> 
1191                                              </div> 
1192                                           </div> 
1193                                        </div> 
1194                                        <div class="row"> 
1195                                           <div class="col-xs-12 col-sm-6 pr"> 
1196                                              <div class="row"> 
1197                                                 <div class="col-xs-12"> 
1198                                                    <div class="form-group select filtered-select"> 
1199                                                       <div class="content-select"> 
1200                                                          <div class="row"> 
1201                                                             <label for="origemPassagem" class="fz-14">${Origem}</label> 
1202                                                             <div class="text-input" id="dv-origem"> 
1203                                                                <input type="text" name="origemPassagem" id="origemPassagem" class="form-control txt-center" value="<#if c_geolocation_iatadesc?? && c_geolocation_iatadesc != "">${c_geolocation_iatadesc} - ${c_geolocation_iata}</#if>" data-iatacode="${c_geolocation_iata}" placeholder="<#if c_geolocation_iatadesc?? && c_geolocation_iatadesc != "">${c_geolocation_iatadesc} - ${c_geolocation_iata}<#else>${OrigemPlaceholder}</#if>"> 
1204                                                                <span class="current-value fz-20 tac" id="sp-origem" data-iatacode="${c_geolocation_iata}" data-value="${c_geolocation_iata}"><#if c_geolocation_iatadesc ?? && c_geolocation_iatadesc != "">${c_geolocation_iatadesc} - ${c_geolocation_iata}<#else>${OrigemPlaceholder}</#if></span> 
1205                                                                <span class="ico glyphicon glyphicon-chevron-down"></span> 
1206                                                                <span class="ico glyphicon glyphicon-chevron-up"></span> 
1207                                                                <div class="dropdown col-xs-12"> 
1208                                                                   <ul class="row origem-passagem-pontos" style="height: 200px; overflow:auto"> 
1209                                                                   </ul> 
1210                                                                </div> 
1211                                                             </div> 
1212                                                          </div> 
1213                                                       </div> 
1214                                                    </div> 
1215                                                 </div> 
1216                                              </div> 
1217                                           </div> 
1218                                           <div class="col-xs-12 col-sm-6 pl"> 
1219                                              <div class="row"> 
1220                                                 <div class="col-xs-12"> 
1221                                                    <div class="form-group select filtered-select"> 
1222                                                       <div class="content-select"> 
1223                                                          <div class="row"> 
1224                                                             <label for="destinodesk" class="fz-14" alt="destino" title="Destino">${Destino}</label> 
1225                                                             <div class="text-input" id="dv-destino"> 
1226                                                                <input type="text" name="destino" id="destinodesk"  data-destinationId="" class="form-control txt-center" placeholder="${DestinoPlaceholder}"> 
1227                                                                <span class="current-value fz-20 tac" id="sp-destino" data-value="">${DestinoPlaceholder}</span> 
1228                                                                <span class="ico glyphicon glyphicon-chevron-down"></span> 
1229                                                                <span class="ico glyphicon glyphicon-chevron-up"></span> 
1230                                                                <div class="dropdown col-xs-12"> 
1231                                                                   <ul class="row destino-passagem-pontos" style="height: 200px; overflow:auto"> 
1232                                                                   </ul> 
1233                                                                </div> 
1234                                                             </div> 
1235                                                          </div> 
1236                                                       </div> 
1237                                                    </div> 
1238                                                 </div> 
1239                                              </div> 
1240                                           </div> 
1241                                           <div class="col-xs-12 col-sm-12"> 
1242                                              <div class="row"> 
1243                                                 <div class="col-xs-12 daterange noresize"> 
1244                                                    <div class="row"> 
1245                                                       <div class="col-xs-12 col-sm-6 pr" id="dateidaPassagemContent"> 
1246                                                          <div class="form-group date"> 
1247                                                             <div class="row"> 
1248                                                                <label for="dateidaPassagem">${DataDeIda}</label> 
1249                                                                <input type="text" id="dateidaPassagem" name="dateidaPassagem" class="form-control txt-center" placeholder="dd/mm/aaaa" disabled="disabled"> 
1250                                                                <span class="ico ico-svg-calendario"></span> 
1251                                                             </div> 
1252                                                          </div> 
1253                                                          <div class="av-info-field date-change col-xs-12 col-sm-6 pr" id="horarioIda"> 
1254                                                             <div class="row"> 
1255                                                                <div class="col-xs-12"> 
1256                                                                   <input type="hidden" name="horario-ida-volta" id="horario-ida-volta" /> 
1257                                                                   <p class="fz-12">${ListHorarios} <strong>${TextoDataIda}</strong> <a href="#" class="tdu">${AlterarHorario}</a></p> 
1258                                                                </div> 
1259                                                             </div> 
1260                                                             <div class="row"> 
1261                                                                <ul class="col-xs-12 options ida" hidden="hidden"> 
1262                                                                </ul> 
1263                                                             </div> 
1264                                                          </div> 
1265                                                       </div> 
1266                                                       <div class="col-xs-12 col-sm-6 pl" id="datevoltaPassagemContent"> 
1267                                                          <div class="form-group date"> 
1268                                                             <div class="row"> 
1269                                                                <label for="datevoltaPassagem">${DataDeVolta}</label> 
1270                                                                <input type="text" id="datevoltaPassagem" name="datevoltaPassagem" class="form-control txt-center" placeholder="${DataDeIdaPlaceholder}" disabled="disabled"> 
1271                                                                <span class="ico ico-svg-calendario"></span> 
1272                                                             </div> 
1273                                                          </div> 
1274                                                          <div class="av-info-field date-change col-xs-12 col-sm-6 pl" id="horarioVolta"> 
1275                                                             <div class="row"> 
1276                                                                <div class="col-xs-12"> 
1277                                                                   <input type="hidden" name="horario-voo-volta" id="horario-voo-volta" /> 
1278                                                                   <p class="fz-12">${ListHorarios} <strong>${TextoDataVolta}</strong> <a href="#" class="tdu">${AlterarHorario}</a></p> 
1279                                                                </div> 
1280                                                             </div> 
1281                                                             <div class="row"> 
1282                                                                <ul class="col-xs-12 options volta" hidden="hidden"> 
1283                                                                </ul> 
1284                                                             </div> 
1285                                                          </div> 
1286                                                       </div> 
1287                                                    </div> 
1288                                                 </div> 
1289                                              </div> 
1290                                           </div> 
1291                                           <div class="col-xs-12 col-sm-6 pr content-qtd pad-passengers-my-points"> 
1292                                              <div class="row"> 
1293                                                 <div class="col-xs-4"> 
1294                                                    <div class="row"> 
1295                                                       <div class="col-xs-12"> 
1296                                                          <div class="form-group select"> 
1297                                                             <div class="content-select"> 
1298                                                                <div class="row"> 
1299                                                                   <label for="adultosPassagem" class="fz-14" alt="adultosPassagem" title="${Adultos}">${Adultos}</label> 
1300                                                                   <div class="text-input"> 
1301                                                                      <input type="tel" data-max="4" name="adultosPassagem" id="adultosPassagem" value="1" class="form-control txt-center" placeholder="${AdultosPlaceholder}"> 
1302                                                                      <span class="current-value fz-20 tac cur-value-adultos" data-value="1">1</span> 
1303                                                                      <span class="ico glyphicon glyphicon-chevron-down"></span> 
1304                                                                      <span class="ico glyphicon glyphicon-chevron-up"></span> 
1305                                                                      <div class="dropdown col-xs-12"> 
1306                                                                         <ul class="row lista-adultos"> 
1307                                                                            <#list entries as entry> 
1308                                                                                <#assign renderer = entry.getAssetRenderer()> 
1309                                                                                <#assign className = renderer.getClassName()> 
1310                                                                                <#assign className2 = 'com.liferay.journal.model.JournalArticle'> 
1311                                                                                <#if className == className2> 
1312                                                                                    <#assign journalArticle = renderer.getArticle()> 
1313                                                                                    <#assign document = saxReaderUtil.read(journalArticle.getContent())> 
1314                                                                                    <#assign rootElement = document.getRootElement()> 
1315                                                                                    <#list rootElement.elements() as dynamicElement> 
1316                                                                                        <#if dynamicElement.attributeValue("name") = "NROADULTOS"> 
1317                                                                                            <#assign qtdAdultos=dynamicElement.element("dynamic-content").getText()?number> 
1318                                                                                            <#list 1..qtdAdultos as qtd> 
1319                                                                                            <li><a href="javascript:;" class="fz-20 tac" data-value="${qtd}">${qtd}</a></li> 
1320                                                                                            </#list> 
1321                                                                                        </#if> 
1322                                                                                    </#list> 
1323                                                                                </#if> 
1324                                                                            </#list> 
1325                                                                         </ul> 
1326                                                                      </div> 
1327                                                                   </div> 
1328                                                                </div> 
1329                                                             </div> 
1330                                                          </div> 
1331                                                       </div> 
1332                                                    </div> 
1333                                                 </div> 
1334                                                 <div class="col-xs-4"> 
1335                                                    <div class="row"> 
1336                                                       <div class="col-xs-12"> 
1337                                                          <div class="form-group select"> 
1338                                                             <div class="content-select"> 
1339                                                                <div class="row"> 
1340                                                                   <label for="criancas" class="fz-14" alt="${Crianca}" title="${Crianca}">${Crianca}</label> 
1341                                                                   <div class="text-input"> 
1342                                                                      <input type="tel" data-min="3" name="criancasPassagem" id="criancas" value="0" class="form-control txt-center" placeholder="${CriancasPlaceholder}"> 
1343                                                                      <span class="current-value fz-20 tac cur-value-criancas" data-value="0">0</span> 
1344                                                                      <span class="ico glyphicon glyphicon-chevron-down"></span> 
1345                                                                      <span class="ico glyphicon glyphicon-chevron-up"></span> 
1346                                                                      <div class="dropdown col-xs-12"> 
1347                                                                         <ul class="row lista-criancas"> 
1348                                                                            <#list entries as entry> 
1349                                                                                <#assign renderer = entry.getAssetRenderer()> 
1350                                                                                <#assign className = renderer.getClassName()> 
1351                                                                                <#assign className2 = 'com.liferay.journal.model.JournalArticle'> 
1352                                                                                <#if className == className2> 
1353                                                                                    <#assign journalArticle = renderer.getArticle()> 
1354                                                                                    <#assign document = saxReaderUtil.read(journalArticle.getContent())> 
1355                                                                                    <#assign rootElement = document.getRootElement()> 
1356                                                                                    <#list rootElement.elements() as dynamicElement> 
1357                                                                                        <#if dynamicElement.attributeValue("name") = "NROCRIANCA"> 
1358                                                                                            <#assign qtdCriancas=dynamicElement.element("dynamic-content").getText()?number> 
1359                                                                                            <#list 0..qtdCriancas as qtd> 
1360                                                                                            <li><a href="javascript:;" class="fz-20 tac" data-value="${qtd}">${qtd}</a></li> 
1361                                                                                            </#list> 
1362                                                                                        </#if> 
1363                                                                                    </#list> 
1364                                                                                </#if> 
1365                                                                            </#list> 
1366                                                                         </ul> 
1367                                                                      </div> 
1368                                                                   </div> 
1369                                                                </div> 
1370                                                             </div> 
1371                                                          </div> 
1372                                                          <div class="av-info-field col-xs-12"> 
1373                                                             <div class="row"> 
1374                                                                <p class="fz-12">${TextoCriancas}</p> 
1375                                                             </div> 
1376                                                          </div> 
1377                                                       </div> 
1378                                                    </div> 
1379                                                 </div> 
1380                                                 <div class="col-xs-4"> 
1381                                                    <div class="row"> 
1382                                                       <div class="col-xs-12"> 
1383                                                          <div class="form-group select"> 
1384                                                             <div class="content-select"> 
1385                                                                <div class="row"> 
1386                                                                   <label for="bebes" class="fz-14">${Bebe}</label> 
1387                                                                   <div class="text-input"> 
1388                                                                      <input type="tel" data-min="2" data-max="4" name="bebesPassagem" id="bebes" value="0" class="form-control txt-center" placeholder="${BebesPlaceholder}"> 
1389                                                                      <span class="current-value fz-20 tac cur-value-bebes" data-value="0">0</span> 
1390                                                                      <span class="ico glyphicon glyphicon-chevron-down"></span> 
1391                                                                      <span class="ico glyphicon glyphicon-chevron-up"></span> 
1392                                                                      <div class="dropdown col-xs-12"> 
1393                                                                         <ul class="row lista-bebes"> 
1394                                                                         </ul> 
1395                                                                      </div> 
1396                                                                   </div> 
1397                                                                </div> 
1398                                                             </div> 
1399                                                          </div> 
1400                                                          <div class="av-info-field col-xs-12"> 
1401                                                             <div class="row"> 
1402                                                                <p class="fz-12">${textoInforBebe}</p> 
1403                                                             </div> 
1404                                                          </div> 
1405                                                       </div> 
1406                                                    </div> 
1407                                                 </div> 
1408                                                 <div class="col-xs-12 error-field-qtd" hidden="hidden"> 
1409                                                    <p class="fz-12"> 
1410                                                       ${TextoErroP5CrianEAdultos} 
1411                                                    </p> 
1412                                                 </div> 
1413                                              </div> 
1414                                           </div> 
1415                                           <div class="col-xs-12 col-sm-6 pl"> 
1416                                              <div class="row"> 
1417                                                 <div class="col-xs-12"> 
1418                                                    <div class="form-group select"> 
1419                                                       <div class="content-select"> 
1420                                                          <div class="row"> 
1421                                                             <label for="cabinePassagem" class="fz-14">${Cabine}</label> 
1422                                                             <div class="text-input" id="dv-cabine"> 
1423                                                                <input type="text" name="cabinePassagem" id="cabinePassagem" class="form-control txt-center" placeholder="${CabinePlaceholder}"> 
1424                                                                <span class="current-value fz-20 tac cur-value-cabine" data-value="">${CabinePlaceholder}</span> 
1425                                                                <span class="ico glyphicon glyphicon-chevron-down"></span> 
1426                                                                <span class="ico glyphicon glyphicon-chevron-up"></span> 
1427                                                                <div class="dropdown col-xs-12"> 
1428                                                                   <ul class="row cabines"> 
1429                                                                   </ul> 
1430                                                                </div> 
1431                                                             </div> 
1432                                                          </div> 
1433                                                       </div> 
1434                                                    </div> 
1435                                                 </div> 
1436                                              </div> 
1437                                           </div> 
1438                                        </div> 
1439                                        <div class="row"> 
1440                                           <div class="col-xs-12 col-sm-6 last-elements"> 
1441                                              <div class="row"> 
1442                                                 <div class="form-group checkbox" <#if usarPontosRes != "true">style="height: 20px;"</#if>> 
1443                                                    <#if usarPontosRes == "true"> 
1444                                                    <div class="row"> 
1445                                                       <input type="checkbox" checked="true" name="pontosPassagem" id="pontosPassagem" tabindex="51"> 
1446                                                       <label for="pontosPassagem" tabindex="51"><span class="ico-svg-correct"></span>${UtilizarPontosLabel}</label> 
1447                                                    </div> 
1448                                                    </#if> 
1449                                                 </div> 
1450                                                 ${MaisDe9Passageiros} 
1451                                              </div> 
1452                                           </div> 
1453                                           <div class="col-xs-12 col-sm-6 pl last-elements"> 
1454                                             <button type="button" name="buttonPassagem" id="btn-buscar-pontos" class="red-btn col-xs-12" alt="${LabelBotao}" title="${LabelBotao}" role="button" tabindex="51">${LabelBotao}</button> 
1455                                           </div> 
1456                                        </div> 
1457                                     </form> 
1458                                  </div> 
1459                               </div> 
1460                            </div> 
1461                         </div> 
1462                         <!-- Pontos Acumulados --> 
1463                         <div class="col-xs-12 col-sm-8 content-info-menu pull-right" hidden="hidden" data-change="4"> 
1464                            <div class="meus-pontos-acumulados"> 
1465                               <div class="col-xs-12 hidden-xs"> 
1466                                  <div class="row"> 
1467                                     <h4>${TituloPontosAcumulados}</h4> 
1468                                  </div> 
1469                                  <div class="resumida"> 
1470                                     <div class="row" id="pointsAccumulatedInf"> 
1471                                        <p>${TextoPontosAcumulados} ${LabelAtividades} - <strong><a href="#" class="tbl-detalhada">${TextoLinkModal}</a></strong></p> 
1472                                     </div> 
1473                                     <!-- Tabela --> 
1474                                     <div class="tbl" id="pointsAccumulatedData"> 
1475                                        <!-- Título --> 
1476                                        <div class="row line title"> 
1477                                           <div class="col-sm-3 col-md-3 col-lg-2"> 
1478                                              <div class="row"> 
1479                                                 ${DataDaAtividadeLabel} 
1480                                              </div> 
1481                                           </div> 
1482                                           <div class="col-sm-3 col-md-3 col-lg-2"> 
1483                                              <div class="row"> 
1484                                                 ${VooLabel} 
1485                                              </div> 
1486                                           </div> 
1487                                           <div class="col-sm-3 col-md-3 col-lg-6"> 
1488                                              <div class="row"> 
1489                                                 ${DescricaoLabel} 
1490                                              </div> 
1491                                           </div> 
1492                                           <div class="col-sm-3 col-md-3 col-lg-2"> 
1493                                              <div class="row"> 
1494                                                 ${PontosAcumuladosLabel} 
1495                                              </div> 
1496                                           </div> 
1497                                        </div> 
1498                                        <!-- Dados --> 
1499                                        <div class="row line"> 
1500                                           <div class="col-sm-3 col-md-3 col-lg-2"> 
1501                                              <div class="row tl"> 
1502                                                 N/A 
1503                                              </div> 
1504                                           </div> 
1505                                           <div class="col-sm-3 col-md-3 col-lg-2"> 
1506                                              <div class="row"> 
1507                                                 N/A 
1508                                              </div> 
1509                                           </div> 
1510                                           <div class="col-sm-3 col-md-3 col-lg-6"> 
1511                                              <div class="row tl"> 
1512                                                 N/A 
1513                                              </div> 
1514                                           </div> 
1515                                           <div class="col-sm-3 col-md-3 col-lg-2"> 
1516                                              <div class="row"> 
1517                                                 N/A 
1518                                              </div> 
1519                                           </div> 
1520                                        </div> 
1521                                     </div> 
1522                                     <!-- Paginação --> 
1523                                     <div class="row"> 
1524                                        <ul class="av-pagination" id="paginationAccumulated"> 
1525                                        </ul> 
1526                                     </div> 
1527                                  </div> 
1528                                  <div class="detalhada hidden"> 
1529                                     <!-- Fechar --> 
1530                                     <div class="av-close"></div> 
1531                                     <!-- Tabela --> 
1532                                     <div class="tbl tl"> 
1533                                        <!-- Título --> 
1534                                        <div class="row line title"> 
1535                                           <!-- Título --> 
1536                                           <div class="col-sm-1"> 
1537                                              <div class="row"> 
1538                                                 ${DataDaAtividadeLabel} 
1539                                              </div> 
1540                                           </div> 
1541                                           <div class="col-sm-1"> 
1542                                              <div class="row"> 
1543                                                 ${VooLabel} 
1544                                              </div> 
1545                                           </div> 
1546                                           <div class="col-sm-1"> 
1547                                              <div class="row"> 
1548                                                 ${Classe} 
1549                                              </div> 
1550                                           </div> 
1551                                           <div class="col-sm-1"> 
1552                                              <div class="row"> 
1553                                                 ${ClasseVoada} 
1554                                              </div> 
1555                                           </div> 
1556                                           <div class="col-sm-1"> 
1557                                              <div class="row"> 
1558                                                 ${NdoBilhete} 
1559                                              </div> 
1560                                           </div> 
1561                                           <div class="col-sm-1"> 
1562                                              <div class="row"> 
1563                                                 ${Atividade} 
1564                                              </div> 
1565                                           </div> 
1566                                           <div class="col-sm-1"> 
1567                                              <div class="row"> 
1568                                                 ${DescricaoLabel} 
1569                                              </div> 
1570                                           </div> 
1571                                           <div class="col-sm-1"> 
1572                                              <div class="row"> 
1573                                                 ${PontosAcumuladosLabel} 
1574                                              </div> 
1575                                           </div> 
1576                                           <div class="col-sm-1"> 
1577                                              <div class="row"> 
1578                                                 ${PontosQualificaveisModal} 
1579                                              </div> 
1580                                           </div> 
1581                                        </div> 
1582                                        <!-- Dados --> 
1583                                        <div class="row line" id="detailPointsAccumulated"> 
1584                                           <div class="col-sm-1 col-md-1 col-lg-1"> 
1585                                              <div class="row tl"> 
1586                                                 N/A 
1587                                              </div> 
1588                                           </div> 
1589                                           <div class="col-sm-1 col-md-1 col-lg-1"> 
1590                                              <div class="row"> 
1591                                                 N/A 
1592                                              </div> 
1593                                           </div> 
1594                                           <div class="col-sm-1 col-md-1 col-lg-1"> 
1595                                              <div class="row"> 
1596                                                 N/A 
1597                                              </div> 
1598                                           </div> 
1599                                           <div class="col-sm-1 col-md-1 col-lg-1"> 
1600                                              <div class="row"> 
1601                                                 N/A 
1602                                              </div> 
1603                                           </div> 
1604                                           <div class="col-sm-1 col-md-1 col-lg-1"> 
1605                                              <div class="row"> 
1606                                                 N/A 
1607                                              </div> 
1608                                           </div> 
1609                                           <div class="col-sm-1 col-md-1 col-lg-1"> 
1610                                              <div class="row"> 
1611                                                 N/A 
1612                                              </div> 
1613                                           </div> 
1614                                           <div class="col-sm-1 col-md-1 col-lg-1"> 
1615                                              <div class="row tl"> 
1616                                                 N/A 
1617                                              </div> 
1618                                           </div> 
1619                                           <div class="col-sm-1 col-md-1 col-lg-1"> 
1620                                              <div class="row"> 
1621                                                 N/A 
1622                                              </div> 
1623                                           </div> 
1624                                           <div class="col-sm-1 col-md-1 col-lg-1"> 
1625                                              <div class="row"> 
1626                                                 N/A 
1627                                              </div> 
1628                                           </div> 
1629                                        </div> 
1630                                     </div> 
1631                                     <!-- Paginação --> 
1632                                     <div class="row"> 
1633                                        <ul class="av-pagination" id="paginationAccumulatedDetail"> 
1634                                        </ul> 
1635                                     </div> 
1636                                  </div> 
1637                               </div> 
1638                               <div class="col-xs-12 col-sm-12 visible-xs"> 
1639                                  <div class="row"> 
1640                                     <h4>${TituloPontosAcumulados}</h4> 
1641                                  </div> 
1642                                  <!-- Meu número amigo --> 
1643                                  <div class="row"> 
1644                                     <div class="row"> 
1645                                        <div class="numero-amigo numAmigo"> 
1646                                           <div class="col-xs-12"> 
1647                                              <div class="circulos"> 
1648                                                 <em></em><em></em><em></em> 
1649                                              </div> 
1650                                           </div> 
1651                                           <strong>${TextNumAmigo}</strong> N/A 
1652                                        </div> 
1653                                     </div> 
1654                                  </div> 
1655                                  <!-- Filtros --> 
1656                                  <div class="row"> 
1657                                     <div class="filtros"> 
1658                                        <div class="filtros-in"> 
1659                                           <!-- Formulário --> 
1660                                           <form action="#" method="post"> 
1661                                              <div class="col-xs-12"> 
1662                                                 <!-- Origem --> 
1663                                                 <div class="form-group select"> 
1664                                                    <div class="content-select"> 
1665                                                       <div class="row"> 
1666                                                          <div class="text-input"> 
1667                                                             <label for="field-name-1" style="display: none">${TituloPontosAcumulados}</label> 
1668                                                             <input type="text" name="field-name-1" id="field-name-1" class="form-control txt-center" placeholder="${PontosAcumuladosPlaceholder}" value="Pontos Acumulados"> 
1669                                                             <span class="current-value fz-20 tac" data-value="1">${TituloPontosAcumulados}</span> 
1670                                                             <span class="ico glyphicon glyphicon-chevron-down"></span> 
1671                                                             <span class="ico glyphicon glyphicon-chevron-up"></span> 
1672                                                             <div class="dropdown col-xs-12"> 
1673                                                                <ul class="row"> 
1674                                                                   <li><a href="#" class="fz-20 tac" data-value="${VooLabel}">${VooLabel}</a></li> 
1675                                                                   <li><a href="#" class="fz-20 tac" data-value="${Classe}">${Classe}</a></li> 
1676                                                                   <li><a href="#" class="fz-20 tac" data-value="${ClasseVoada}">${ClasseVoada}</a></li> 
1677                                                                   <li><a href="#" class="fz-20 tac" data-value="${NdoBilhete}">${NdoBilhete}</a></li> 
1678                                                                   <li><a href="#" class="fz-20 tac" data-value="${Atividade}">${Atividade}</a></li> 
1679                                                                   <li><a href="#" class="fz-20 tac" data-value="${DescricaoLabel}">${DescricaoLabel}</a></li> 
1680                                                                   <li><a href="#" class="fz-20 tac" data-value="${PontosAcumuladosLabel}">${PontosAcumuladosLabel}</a></li> 
1681                                                                   <li><a href="#" class="fz-20 tac" data-value="${PontosQualificaveisModal}">${PontosQualificaveisModal}</a></li> 
1682                                                                </ul> 
1683                                                             </div> 
1684                                                          </div> 
1685                                                       </div> 
1686                                                    </div> 
1687                                                 </div> 
1688                                              </div> 
1689                                           </form> 
1690                                        </div> 
1691                                     </div> 
1692                                  </div> 
1693                                  <!-- Pontos Acumulados --> 
1694                                  <!-- Tabela --> 
1695                                  <div class="tbl" id="detailPointsAccumulatedMobile"> 
1696                                     <!-- Dados --> 
1697                                     <div class="row line"> 
1698                                        <div class="col-sm-3 col-md-3 col-lg-2"> 
1699                                           <div class="row tl"> 
1700
1701                                           </div> 
1702                                        </div> 
1703                                        <div class="col-sm-3 col-md-3 col-lg-2"> 
1704                                           <div class="row"> 
1705
1706                                           </div> 
1707                                        </div> 
1708                                        <div class="col-sm-3 col-md-3 col-lg-6"> 
1709                                           <div class="row tl"> 
1710
1711                                           </div> 
1712                                        </div> 
1713                                        <div class="col-sm-3 col-md-3 col-lg-2"> 
1714                                           <div class="row"> 
1715
1716                                           </div> 
1717                                        </div> 
1718                                     </div> 
1719                                  </div> 
1720                                  <!-- Paginação - mobile --> 
1721                                  <div class="row"> 
1722                                     <div class="col-xs-12"> 
1723                                        <div class="row"> 
1724                                           <div class="row av-pagination-mobile"> 
1725                                              <div class="col-xs-6 hidden-sm hidden-lg hidden-md"> 
1726                                                 <a href="#" class="more-offer" data-action="previous" data-target="detailPointsAccumulatedMobile" style="display: none;"><span class="glyphicon glyphicon-chevron-left"></span>${LinkAnteriorPontosAcumulados}</a> 
1727                                              </div> 
1728                                              <div class="col-xs-6 hidden-sm hidden-lg hidden-md"> 
1729                                                 <a href="#" class="more-offer" data-action="next" data-target="detailPointsAccumulatedMobile" style="display: none;">${LinkProximoPontosAcumulados}<span class="glyphicon glyphicon-chevron-right"></span></a> 
1730                                              </div> 
1731                                           </div> 
1732                                        </div> 
1733                                     </div> 
1734                                  </div> 
1735                               </div> 
1736                            </div> 
1737                         </div> 
1738                         <!-- Pontos Debitados --> 
1739                         <div class="col-xs-12 col-sm-8 content-info-menu pull-right" hidden="hidden" data-change="5"> 
1740                            <div class="meus-pontos-acumulados"> 
1741                               <div class="col-xs-12 hidden-xs"> 
1742                                  <div class="row"> 
1743                                     <h4>${TituloPontosDebitados}</h4> 
1744                                  </div> 
1745                                  <!-- Tabela Resumida --> 
1746                                  <div class="resumida"> 
1747                                     <div class="row" id="pointsDebitadedInf"> 
1748                                        <p>${TextoPontosDebitados} ${LabelAtividades} - <strong><a href="#" class="tbl-detalhada">${TextoLinkModal1}</a></strong></p> 
1749                                     </div> 
1750                                     <!-- Tabela --> 
1751                                     <div class="tbl" id="pointsDebitadedData"> 
1752                                        <!-- Título --> 
1753                                        <div class="row line title"> 
1754                                           <div class="col-sm-3 col-md-3 col-lg-2"> 
1755                                              <div class="row"> 
1756                                                 ${DataDeAtividade} 
1757                                              </div> 
1758                                           </div> 
1759                                           <div class="col-sm-3 col-md-3 col-lg-2"> 
1760                                              <div class="row"> 
1761                                                 ${Voo} 
1762                                              </div> 
1763                                           </div> 
1764                                           <div class="col-sm-3 col-md-3 col-lg-6"> 
1765                                              <div class="row"> 
1766                                                 ${Descricao} 
1767                                              </div> 
1768                                           </div> 
1769                                           <div class="col-sm-3 col-md-3 col-lg-2"> 
1770                                              <div class="row"> 
1771                                                 ${TituloPontosDebitados} 
1772                                              </div> 
1773                                           </div> 
1774                                        </div> 
1775                                        <!-- Dados --> 
1776                                        <div class="row line"> 
1777                                           <div class="col-sm-3 col-md-3 col-lg-2"> 
1778                                              <div class="row tl"> 
1779                                                 N/A 
1780                                              </div> 
1781                                           </div> 
1782                                           <div class="col-sm-3 col-md-3 col-lg-2"> 
1783                                              <div class="row"> 
1784                                                 N/A 
1785                                              </div> 
1786                                           </div> 
1787                                           <div class="col-sm-3 col-md-3 col-lg-6"> 
1788                                              <div class="row tl"> 
1789                                                 N/A 
1790                                              </div> 
1791                                           </div> 
1792                                           <div class="col-sm-3 col-md-3 col-lg-2"> 
1793                                              <div class="row"> 
1794                                                 N/A 
1795                                              </div> 
1796                                           </div> 
1797                                        </div> 
1798                                     </div> 
1799                                     <!-- Paginação --> 
1800                                     <div class="row"> 
1801                                        <ul class="av-pagination" id="paginationDebitaded"> 
1802                                        </ul> 
1803                                     </div> 
1804                                  </div> 
1805                                  <!-- Tabela Detalhada --> 
1806                                  <div class="detalhada hidden"> 
1807                                     <!-- Fechar --> 
1808                                     <div class="av-close"></div> 
1809                                     <!-- Tabela --> 
1810                                     <div class="tbl tl"> 
1811                                        <!-- Título --> 
1812                                        <div class="row line title"> 
1813                                           <!-- Título --> 
1814                                           <div class="col-sm-2 col-md-1 col-lg-1"> 
1815                                              <div class="row"> 
1816                                                 ${DataDeAtividade} 
1817                                              </div> 
1818                                           </div> 
1819                                           <div class="col-sm-1 col-md-1 col-lg-1"> 
1820                                              <div class="row"> 
1821                                                 ${VooLabel} 
1822                                              </div> 
1823                                           </div> 
1824                                           <div class="col-sm-1 col-md-1 col-lg-1"> 
1825                                              <div class="row"> 
1826                                                 ${Classe} 
1827                                              </div> 
1828                                           </div> 
1829                                           <div class="col-sm-2 col-md-1 col-lg-1"> 
1830                                              <div class="row"> 
1831                                                 ${Atividade} 
1832                                              </div> 
1833                                           </div> 
1834                                           <div class="col-sm-2 col-md-1 col-lg-1"> 
1835                                              <div class="row"> 
1836                                                 ${DescricaoLabel} 
1837                                              </div> 
1838                                           </div> 
1839                                           <div class="col-sm-2 col-md-1 col-lg-1"> 
1840                                              <div class="row"> 
1841                                                 ${TituloPontosDebitados} 
1842                                              </div> 
1843                                           </div> 
1844                                        </div> 
1845                                        <!-- Dados --> 
1846                                        <div class="row line" id="detailPointsDebitaded"> 
1847                                           <div class="col-sm-2 col-md-1 col-lg-1"> 
1848                                              <div class="row tl"> 
1849                                                 N/A 
1850                                              </div> 
1851                                           </div> 
1852                                           <div class="col-sm-1 col-md-1 col-lg-1"> 
1853                                              <div class="row"> 
1854                                                 N/A 
1855                                              </div> 
1856                                           </div> 
1857                                           <div class="col-sm-1 col-md-1 col-lg-1"> 
1858                                              <div class="row"> 
1859                                                 N/A 
1860                                              </div> 
1861                                           </div> 
1862                                           <div class="col-sm-2 col-md-1 col-lg-1"> 
1863                                              <div class="row"> 
1864                                                 N/A 
1865                                              </div> 
1866                                           </div> 
1867                                           <div class="col-sm-2 col-md-1 col-lg-1"> 
1868                                              <div class="row"> 
1869                                                 N/A 
1870                                              </div> 
1871                                           </div> 
1872                                           <div class="col-sm-2 col-md-1 col-lg-1"> 
1873                                              <div class="row"> 
1874                                                 N/A 
1875                                              </div> 
1876                                           </div> 
1877                                        </div> 
1878                                     </div> 
1879                                     <!-- Paginação --> 
1880                                     <div class="row"> 
1881                                        <ul class="av-pagination" id="paginationDebitadedDetail"> 
1882                                        </ul> 
1883                                     </div> 
1884                                  </div> 
1885                               </div> 
1886                               <div class="col-xs-12 col-sm-6 visible-xs"> 
1887                                  <div class="row"> 
1888                                     <h4>${TituloPontosDebitados}</h4> 
1889                                  </div> 
1890                                  <!-- Meu número amigo --> 
1891                                  <div class="row"> 
1892                                     <div class="row"> 
1893                                        <div class="numero-amigo numAmigo"> 
1894                                           <div class="col-xs-12"> 
1895                                              <div class="circulos"> 
1896                                                 <em></em><em></em><em></em> 
1897                                              </div> 
1898                                           </div> 
1899                                           <strong>${TextNumAmigo}</strong> N/A 
1900                                        </div> 
1901                                     </div> 
1902                                  </div> 
1903                                  <!-- Filtros --> 
1904                                  <div class="row"> 
1905                                     <div class="filtros"> 
1906                                        <div class="filtros-in"> 
1907                                           <!-- Formulário --> 
1908                                           <form action="#" method="post"> 
1909                                              <div class="col-xs-12"> 
1910                                                 <!-- Origem --> 
1911                                                 <div class="form-group select"> 
1912                                                    <div class="content-select"> 
1913                                                       <div class="row"> 
1914                                                          <div class="text-input"> 
1915                                                             <label for="field-name-2" style="display: none;">${LabelFiltroPontosDebitadosMob}</label> 
1916                                                             <input type="text" name="field-name-2" id="field-name-2" class="form-control txt-center" placeholder="${PontosDebitadosPlaceholderMob}" value="Pontos Debitados"> 
1917                                                             <span class="current-value fz-20 tac" data-value="1">${PontosDebitadosPlaceholderMob}</span> 
1918                                                             <span class="ico glyphicon glyphicon-chevron-down"></span> 
1919                                                             <span class="ico glyphicon glyphicon-chevron-up"></span> 
1920                                                             <div class="dropdown col-xs-12"> 
1921                                                                <ul class="row"> 
1922                                                                   <li><a href="#" class="fz-20 tac" data-value="${VooLabel}">${VooLabel}</a></li> 
1923                                                                   <li><a href="#" class="fz-20 tac" data-value="${Classe}">${Classe}</a></li> 
1924                                                                   <li><a href="#" class="fz-20 tac" data-value="${Atividade}">${Atividade}</a></li> 
1925                                                                   <li><a href="#" class="fz-20 tac" data-value="${DescricaoLabel}">${DescricaoLabel}</a></li> 
1926                                                                </ul> 
1927                                                             </div> 
1928                                                          </div> 
1929                                                       </div> 
1930                                                    </div> 
1931                                                 </div> 
1932                                              </div> 
1933                                           </form> 
1934                                        </div> 
1935                                     </div> 
1936                                  </div> 
1937                                  <!-- Pontos Debitados --> 
1938                                  <!-- Tabela --> 
1939                                  <div class="tbl" id="detailPointsDebitadedMobile"> 
1940                                     <!-- Título --> 
1941                                     <div class="row line title"> 
1942                                        <div class="col-sm-3 col-md-3 col-lg-2"> 
1943                                           <div class="row"> 
1944                                              ${DataDeAtividade} 
1945                                           </div> 
1946                                        </div> 
1947                                        <div class="col-sm-3 col-md-3 col-lg-2"> 
1948                                           <div class="row"> 
1949                                              ${Voo} 
1950                                           </div> 
1951                                        </div> 
1952                                        <div class="col-sm-3 col-md-3 col-lg-6"> 
1953                                           <div class="row"> 
1954                                              ${Descricao} 
1955                                           </div> 
1956                                        </div> 
1957                                        <div class="col-sm-3 col-md-3 col-lg-2"> 
1958                                           <div class="row"> 
1959                                              ${TituloPontosDebitados} 
1960                                           </div> 
1961                                        </div> 
1962                                     </div> 
1963                                     <!-- Dados --> 
1964                                     <div class="row line"> 
1965                                        <div class="col-sm-3 col-md-3 col-lg-2"> 
1966                                           <div class="row tl"> 
1967                                              N/A 
1968                                           </div> 
1969                                        </div> 
1970                                        <div class="col-sm-3 col-md-3 col-lg-2"> 
1971                                           <div class="row"> 
1972                                              N/A 
1973                                           </div> 
1974                                        </div> 
1975                                        <div class="col-sm-3 col-md-3 col-lg-6"> 
1976                                           <div class="row tl"> 
1977                                              N/A 
1978                                           </div> 
1979                                        </div> 
1980                                        <div class="col-sm-3 col-md-3 col-lg-2"> 
1981                                           <div class="row"> 
1982                                              N/A 
1983                                           </div> 
1984                                        </div> 
1985                                     </div> 
1986                                  </div> 
1987                                  <!-- Paginação - mobile --> 
1988                                  <div class="row"> 
1989                                     <div class="col-xs-12"> 
1990                                        <div class="row"> 
1991                                           <div class="row av-pagination-mobile"> 
1992                                              <div class="col-xs-6 hidden-sm hidden-lg hidden-md"> 
1993                                                 <a href="#" class="more-offer" data-action="previous" data-target="detailPointsDebitadedMobile" style="display: none;"><span class="glyphicon glyphicon-chevron-left"></span>${LinkAnteriorPontosDebitados}</a> 
1994                                              </div> 
1995                                              <div class="col-xs-6 hidden-sm hidden-lg hidden-md"> 
1996                                                 <a href="#" class="more-offer" data-action="next" data-target="detailPointsDebitadedMobile" style="display: none;">${LinkProximoPontosDebitados}<span class="glyphicon glyphicon-chevron-right"></span></a> 
1997                                              </div> 
1998                                           </div> 
1999                                        </div> 
2000                                     </div> 
2001                                  </div> 
2002                               </div> 
2003                            </div> 
2004                         </div> 
2005                         <!-- Solicitar Pontos --> 
2006                         <div class="col-xs-12 col-sm-8 content-info-menu pull-right" hidden="hidden" data-change="6"> 
2007                            <div id="meus-pontos-solicitar"> 
2008                               <div class="col-xs-12"> 
2009                                  <h4>${TituloSolicitarPontos}</h4> 
2010                                  <div class="solicitar-txt"> 
2011                                     <img src="${Imagem6jnq}" alt="Solicitar Pontos" title="Solicitar Pontos"> 
2012                                     <p>${TextoSolicitarPontos}</p> 
2013                                  </div> 
2014                                  <!-- Formulário --> 
2015                                  <div class="formulario"> 
2016                                     <form action="#" method="post"> 
2017                                        <div class="col-xs-12 col-sm-12"> 
2018                                           <div class="row"> 
2019                                              <!-- Primeiro nome --> 
2020                                              <div class="col-xs-12 col-sm-6"> 
2021                                                 <div class="row pr"> 
2022                                                    <div class="form-group"> 
2023                                                       <div class="row"> 
2024                                                          <label for="primeiro-nome">${PrimeiroNome}</label> 
2025                                                          <input type="text" id="primeiro-nome" disabled="true" value="N/A" name="primeiro-nome" class="form-control txt-center"> 
2026                                                       </div> 
2027                                                    </div> 
2028                                                 </div> 
2029                                              </div> 
2030                                              <!-- Último nome --> 
2031                                              <div class="col-xs-12 col-sm-6"> 
2032                                                 <div class="row pl"> 
2033                                                    <div class="form-group"> 
2034                                                       <div class="row"> 
2035                                                          <label for="ultimo-nome">${UltimoNome}</label> 
2036                                                          <input type="text" id="ultimo-nome" disabled="true" value="N/A" name="ultimo-nome" class="form-control txt-center"> 
2037                                                       </div> 
2038                                                    </div> 
2039                                                 </div> 
2040                                              </div> 
2041                                           </div> 
2042                                        </div> 
2043                                        <div class="col-xs-12 col-sm-12"> 
2044                                           <div class="row"> 
2045                                              <!-- Nome da Companhia aérea* --> 
2046                                              <div class="col-xs-12 col-sm-4"> 
2047                                                 <div class="row"> 
2048                                                    <div class="form-group select"> 
2049                                                       <div class="content-select"> 
2050                                                          <div class="row"> 
2051                                                             <label for="nome-companhia-aerea" class="fz-14">${NomeDaCompanhiaAerea} *</label> 
2052                                                             <div class="text-input"> 
2053                                                                <input type="text" name="nome-companhia-aerea"  value="" id="nome-companhia-aerea" class="form-control txt-center search-field" placeholder="${OrigemPlaceholder}"> 
2054                                                                <span class="current-value fz-20 tac" data-value="1">${OrigemPlaceholder}</span> 
2055                                                                <span class="ico glyphicon glyphicon-chevron-down"></span> 
2056                                                                <span class="ico glyphicon glyphicon-chevron-up"></span> 
2057                                                                <div class="dropdown col-xs-12"> 
2058                                                                   <ul class="row"> 
2059                                                                      <#assign countMTD = 0> 
2060                                                                      <#list listaSelectAerea as itensMTD> 
2061                                                                      <#assign countMTD++> 
2062                                                                      <li><a href="javascript:;" class="fz-20 tac" data-value="${itensMTD}">${itensMTD}</a></li> 
2063                                                                      </#list> 
2064                                                                   </ul> 
2065                                                                </div> 
2066                                                             </div> 
2067                                                          </div> 
2068                                                       </div> 
2069                                                    </div> 
2070                                                 </div> 
2071                                              </div> 
2072                                              <!-- Número do Vôo* --> 
2073                                              <div class="col-xs-12 col-sm-4"> 
2074                                                 <div class="row  plr"> 
2075                                                    <div class="form-group ico"> 
2076                                                       <div class="row"> 
2077                                                          <label for="numero-voo">${NumeroDoVoo} *</label> 
2078                                                          <input type="text" maxlength="4" id="numero-voo" name="numero-voo" class="form-control txt-center"> 
2079                                                          <span class="ico ico-duvida-red hover-left"> 
2080                                                             <div class="content-hover"> 
2081                                                                <img src="${ImagemTooltipNumeroDeVoo}" alt="Número do Bilhete" title="Número do Bilhete"> 
2082                                                                <p>${TooltipNumeroDoVoo}</p> 
2083                                                             </div> 
2084                                                          </span> 
2085                                                       </div> 
2086                                                    </div> 
2087                                                 </div> 
2088                                              </div> 
2089                                              <!-- Data do Vôo --> 
2090                                              <div class="col-xs-12 col-sm-4 content-date" id="rotaDateVoo1"> 
2091                                                 <div class="row"> 
2092                                                    <div class="form-group date"> 
2093                                                       <div class="row"> 
2094                                                          <label for="datavoo">${DataDoVoo} *</label> 
2095                                                          <input type="text" id="datavoo" name="datavoo" class="form-control txt-center" placeholder="dd/mm/aaaa"> 
2096                                                          <span class="ico ico-svg-calendario"></span> 
2097                                                       </div> 
2098                                                    </div> 
2099                                                 </div> 
2100                                              </div> 
2101                                           </div> 
2102                                        </div> 
2103                                        <div class="col-xs-12 col-sm-12"> 
2104                                           <div class="row"> 
2105                                              <!-- Origem* --> 
2106                                              <div class="col-xs-12 col-sm-6"> 
2107                                                 <div class="row pr"> 
2108                                                    <div class="form-group select filtered-select"> 
2109                                                       <div class="content-select"> 
2110                                                          <div class="row"> 
2111                                                             <label for="origemMeusPontos" class="fz-14">${Origem}* </label> 
2112                                                                <div class="text-input" id="dvOrigem"> 
2113                                                                    <input type="text" name="origemMeusPontos"  id="origemMeusPontos" class="form-control txt-center  search-field" value="" placeholder="${OrigemPlaceholder}"> 
2114                                                                    <span class="current-value fz-20 tac" id="spOrigem" data-value="1">${OrigemPlaceholder}</span> 
2115                                                                    <span class="ico glyphicon glyphicon-chevron-down"></span> 
2116                                                                    <span class="ico glyphicon glyphicon-chevron-up"></span> 
2117                                                                    <div class="dropdown col-xs-12"> 
2118                                                                       <ul class="row" id="origemSolicitarPontos" style="height: 200px; overflow:auto"> 
2119                                                                       </ul> 
2120                                                                    </div> 
2121                                                                </div> 
2122                                                          </div> 
2123                                                       </div> 
2124                                                    </div> 
2125                                                 </div> 
2126                                              </div> 
2127                                              <!-- Destino* --> 
2128                                              <div class="col-xs-12 col-sm-6"> 
2129                                                 <div class="row pl"> 
2130                                                    <div class="form-group select filtered-select"> 
2131                                                       <div class="content-select"> 
2132                                                          <div class="row"> 
2133                                                             <label for="destinoMeusPontos" class="fz-14">${Destino}* </label> 
2134                                                             <div class="text-input" id="dvDestino"> 
2135                                                                <input type="text" name="destinoMeusPontos"  id="destinoMeusPontos" class="form-control txt-center search-field" placeholder="${DestinoPlaceholder}"> 
2136                                                                <span class="current-value fz-20 tac" id="spDestino" data-value="1">${DestinoPlaceholder}</span> 
2137                                                                <span class="ico glyphicon glyphicon-chevron-down"></span> 
2138                                                                <span class="ico glyphicon glyphicon-chevron-up"></span> 
2139                                                                <div class="dropdown col-xs-12"> 
2140                                                                   <ul class="row" id="destinoSolicitarPontos" style="height: 200px; overflow:auto"> 
2141                                                                   </ul> 
2142                                                                </div> 
2143                                                             </div> 
2144                                                          </div> 
2145                                                       </div> 
2146                                                    </div> 
2147                                                 </div> 
2148                                              </div> 
2149                                           </div> 
2150                                        </div> 
2151                                        <div class="col-xs-12 col-sm-12"> 
2152                                           <div class="row"> 
2153                                              <!-- Sobrenome como está no Bilhete* --> 
2154                                              <div class="col-xs-12 col-sm-6"> 
2155                                                 <div class="row pr"> 
2156                                                    <div class="form-group"> 
2157                                                       <div class="row"> 
2158                                                          <label for="sobrenome-bilhete">${SobrenomeBilhete} *</label> 
2159                                                          <input type="text" id="sobrenome-bilhete"  maxlength="50" name="sobrenome-bilhete" class="form-control txt-center"> 
2160                                                       </div> 
2161                                                    </div> 
2162                                                 </div> 
2163                                              </div> 
2164                                              <!-- Nome como está no Bilhete* --> 
2165                                              <div class="col-xs-12 col-sm-6"> 
2166                                                 <div class="row pl"> 
2167                                                    <div class="form-group"> 
2168                                                       <div class="row"> 
2169                                                          <label for="nome-bilhete">${NomeBilhete} *</label> 
2170                                                          <input type="text" id="nome-bilhete" maxlength="50" name="nome-bilhete" class="form-control txt-center"> 
2171                                                       </div> 
2172                                                    </div> 
2173                                                 </div> 
2174                                              </div> 
2175                                           </div> 
2176                                        </div> 
2177                                        <div class="col-xs-12 col-sm-12"> 
2178                                           <div class="row"> 
2179                                              <!-- Número do Bilhete* --> 
2180                                              <div class="col-xs-12 col-sm-6"> 
2181                                                 <div class="row pr"> 
2182                                                    <div class="form-group ico"> 
2183                                                       <div class="row"> 
2184                                                          <label for="numero-bilhete">${NumeroDoBilhete} *</label> 
2185                                                          <input type="text" id="numero-bilhete" maxlength="13" name="numero-bilhete" class="form-control txt-center"> 
2186                                                          <span class="ico ico-duvida-red hover-left"> 
2187                                                             <div class="content-hover"> 
2188                                                                <img src="${ImagemTooltipNumeroDoBilhete}" alt="Número do Bilhete" title="Número do Bilhete"> 
2189                                                                <p>${TooltipNumeroDoBilhete}</p> 
2190                                                             </div> 
2191                                                          </span> 
2192                                                       </div> 
2193                                                    </div> 
2194                                                 </div> 
2195                                              </div> 
2196                                              <!-- Localizador --> 
2197                                              <div class="col-xs-12 col-sm-6" style="z-index:2;"> 
2198                                                 <div class="row pl"> 
2199                                                    <div class="form-group ico"> 
2200                                                       <div class="row"> 
2201                                                          <label for="localizador">${Localizador}</label> 
2202                                                          <input type="text" id="localizador" name="localizador" maxlength="6" class="form-control txt-center" placeholder="E.G. AZ6E7G"> 
2203                                                          <span class="ico ico-duvida-red hover-left"> 
2204                                                             <div class="content-hover" style="z-index:10;"> 
2205                                                                <p>${TooltipLocalizador}</p> 
2206                                                             </div> 
2207                                                          </span> 
2208                                                       </div> 
2209                                                    </div> 
2210                                                 </div> 
2211                                              </div> 
2212                                           </div> 
2213                                        </div> 
2214                                        <!-- *Campos obrigatórios --> 
2215                                        <div class="col-xs-12 col-sm-12"> 
2216                                           <div class="row"> 
2217                                              <p class="campos-obrigatorios">${TxtCamposObrigatorios}</p> 
2218                                           </div> 
2219                                        </div> 
2220                                        <!-- Enviar --> 
2221                                        <div class="col-xs-12 col-sm-12"> 
2222                                           <div class="row"> 
2223                                              <div class="col-xs-12 col-sm-4 pull-right"> 
2224                                                 <div class="row"> 
2225                                                    <button type="button" id="solicitarPontos"class="red-btn">${LabelButtonSolicitarPontos}</button> 
2226                                                 </div> 
2227                                              </div> 
2228                                           </div> 
2229                                        </div> 
2230                                     </form> 
2231                                  </div> 
2232                               </div> 
2233                            </div> 
2234                         </div> 
2235                      </div> 
2236                      <!-- Menu --> 
2237                      <div class="col-xs-12 col-sm-4 pull-left"> 
2238                         <ul class="row menu-informativo"> 
2239                            <li class="col-xs-12 hidden-xs selected"> 
2240                               <a href="meus-pontos.html" data-change="1" alt="${LabelAbaLateralEsq}" title="${LabelAbaLateralEsq}">${LabelAbaLateralEsq}<span class="glyphicon glyphicon-chevron-right pull-right visible-xs"></span></a> 
2241                            </li> 
2242                            <li class="col-xs-12 visible-xs"> 
2243                               <a href="meus-pontos.html" data-change="1" alt="${LabelAbaLateralEsq}" title="${LabelAbaLateralEsq}">${LabelAbaLateralEsq}<span class="glyphicon glyphicon-chevron-right pull-right visible-xs"></span></a> 
2244                            </li> 
2245                            <li class="col-xs-12"> 
2246                               <a href=javascrip:; data-change="2" alt="${LabelAbaLateralEsqImprimirCartao}" title="${LabelAbaLateralEsqImprimirCartao}">${LabelAbaLateralEsqImprimirCartao}<span class="glyphicon glyphicon-chevron-right pull-right visible-xs"></span></a> 
2247                            </li> 
2248                            <li class="col-xs-12"> 
2249                               <a href=javascrip:; data-change="3" id="linkResgatarPontos" alt="${LabelAbaLateralEsqResgatarPontos}" title="${LabelAbaLateralEsqResgatarPontos}">${LabelAbaLateralEsqResgatarPontos}<span class="glyphicon glyphicon-chevron-right pull-right visible-xs"></span></a> 
2250                            </li> 
2251                            <li class="col-xs-12"> 
2252                               <a href=javascrip:; data-change="4" id="linkPontosAcumulados" alt="${LabelAbaLateralEsqPontosAcumulados}" title="${LabelAbaLateralEsqPontosAcumulados}">${LabelAbaLateralEsqPontosAcumulados}<span class="glyphicon glyphicon-chevron-right pull-right visible-xs"></span></a> 
2253                            </li> 
2254                            <li class="col-xs-12"> 
2255                               <a href=javascrip:; data-change="5" id="linkPontosDebitados" alt="${LabelAbaLateralEsqPontosDebitados}" title="${LabelAbaLateralEsqPontosDebitados}">${LabelAbaLateralEsqPontosDebitados}<span class="glyphicon glyphicon-chevron-right pull-right visible-xs"></span></a> 
2256                            </li> 
2257                            <li class="col-xs-12"> 
2258                               <a href=javascrip:; data-change="6" alt="${LabelAbaLateralEsqSolicitarPontos}" title="${LabelAbaLateralEsqSolicitarPontos}">${LabelAbaLateralEsqSolicitarPontos}<span class="glyphicon glyphicon-chevron-right pull-right visible-xs"></span></a> 
2259                            </li> 
2260                            <li class="col-xs-12"> 
2261                               <a href="#" id="linkProgamaAmigo" alt="${LabelAbaLateralEsqProgramaAmigo}" title="${LabelAbaLateralEsqProgramaAmigo}">${LabelAbaLateralEsqProgramaAmigo}<span class="glyphicon glyphicon-chevron-right pull-right visible-xs"></span></a> 
2262                            </li> 
2263                         </ul> 
2264                      </div> 
2265                   </div> 
2266                </div> 
2267                <div class="meus-pontos-vazio hidden"> 
2268                   <div class="container-fluid banner"> 
2269                      <div class="row"> 
2270                         <!-- Banner Desktop --> 
2271                         <div class="col-xs-12 hidden-xs"> 
2272                            <div class="row"> 
2273                               <img src="${ImagemBannerDesktopMeusPontos}" alt="${imgAltBannerDesktop}" title="${imgAltBannerDesktop}" class="img-responsive" style="width: 100%" /> 
2274                            </div> 
2275                            <div class="info container"> 
2276                                <h3 tabindex="50">${TextoBannerMeusPontos}</h3> 
2277                            </div> 
2278                         </div> 
2279                         <div class="col-xs-12 hidden-sm hidden-md hidden-lg"> 
2280                            <!-- Banner Mobile --> 
2281                            <div class="row"> 
2282                               <img src="${ImagemBannerMobileMeusPontos}" alt="${imgAltBannerMobile}" title="${imgAltBannerMobile}" class="av-img-responsive" /> 
2283                            </div> 
2284                            <div class="info container"> 
2285                                <h3 tabindex="50">${TextoBannerMeusPontos}</h3> 
2286                            </div> 
2287                         </div> 
2288                      </div> 
2289                   </div> 
2290                   <!-- Bloco Superior --> 
2291                   <div class="container-fluid content-pd"> 
2292                      <div class="row"> 
2293 
2294                         
2295                        <div id="cadastre-se"> 
2296                            <div class="col-xs-12 col-sm-12 fomulario-cadatro-amigo-meus-pontos"> 
2297                                <div class="row"> 
2298                                    <h2 class="col-xs-12">${tituloFormularioAmigo}</h2> 
2299                                    <div class="col-xs-12 hidden-xs col-sm-2 logo-programa-amigo-meus-pontos">  
2300                                        <img alt="Logo Amigo" title="Logo Amigo" src="${logoAmigoFormulario}" class="amigo-ico" tabindex="400">  
2301                                    </div> 
2302                                    <div class="col-xs-12 col-sm-10"> <!-- Check Desejo receber comunicações --> 
2303                                        <div class="row"> 
2304                                             
2305                                                <div class="col-xs-12 col-sm-12"> <!-- Check Desejo receber comunicações --> 
2306                                                    <div class="row"> 
2307                                                        <div class="form-group checkbox receber-informacoes"> 
2308                                                            <input type="checkbox" tabindex="100" aria-label='${DesejoParticipar}' name="queroParticipar" id="queroParticipar" data-form="comunicado"> 
2309                                                            <label for="queroParticipar" tabindex="100"><span class="ico-svg-correct"></span> 
2310                                                                ${DesejoParticipar} 
2311                                                            </label> 
2312                                                        </div> 
2313                                                    </div> 
2314                                                </div> 
2315                                             
2316                                                <div class="col-xs-12 col-sm-12"> <!-- Check Desejo receber comunicações --> 
2317                                                    <div class="row"> 
2318                                                        <div class="form-group checkbox receber-informacoes newsProgramaAmigoBox disabled"> 
2319                                                            <input type="checkbox" tabindex="100" aria-label='${ReceberNovidadesDoProgramaAmigo}' name="newsProgramaAmigo" id="newsProgramaAmigo" data-form="comunicado"> 
2320                                                            <label for="newsProgramaAmigo" tabindex="100"><span class="ico-svg-correct"></span> 
2321                                                                ${ReceberNovidadesDoProgramaAmigo} 
2322                                                            </label> 
2323                                                        </div> 
2324                                                    </div> 
2325                                                </div> 
2326      
2327                                        </div> 
2328                                    </div> 
2329                                    <div class="col-xs-12 col-sm-3 pull-right btn-cadastrar-amigos-meus-pontos"> 
2330                                        <div class="row btn-cadastrar"> 
2331                                                <div class="col-xs-12 hidden-sm hidden-md hidden-lg"> 
2332                                                    <button class="red-btn col-xs-12 disabled" disabled="disabled" role="button" tabindex="100">${BotaoCadastrarMobile}<!-- CADASTRAR --></button> 
2333                                                </div> 
2334                                            <div class="hidden-xs col-sm-12 col-md-12 col-lg-12"> 
2335                                                <button class="pull-right red-btn col-sm-6 col-md-6 col-lg-6 disabled" disabled="disabled" role="button" tabindex="100" > 
2336                                                        ${BotaoCadastrar} 
2337                                                </button> 
2338                                            </div> 
2339                                        </div> 
2340                                    </div> 
2341                                </div> 
2342                            </div> 
2343                            <input id="hdnSocialType" type="hidden"/> 
2344                            <input id="hdnSocialId" type="hidden"/> 
2345                            <input id="hdnSocialEmail" type="hidden"/> 
2346                        </div> 
2347                      </div> 
2348                   </div> 
2349                </div> 
2350             </div> 
2351          </div> 
2352          <div class="area-logada-content row show" id="content-dados" style="visibility: visible;"> 
2353             <h3 class="container-fluid header toggler-header toggler-header-collapsed" role="heading" aria-level="2"> 
2354                <span>${TxtAbaSuperiorMeusDados}</span> 
2355                <span class="dropdown"></span> 
2356             </h3> 
2357             <div class="toggler-content-wrapper"> 
2358                <div class="content toggler-content toggler-content-collapsed" style="margin-top: -3445px;"> 
2359                </div> 
2360             </div> 
2361          </div> 
2362       </div> 
2363    </div> 
2364</div> 
2365<input type="hidden" id="nomeAmigo" value="" /> 
2366<input type="hidden" id="numeCartao" value="" /> 
2367<input type="hidden" id="valCartao" value="" /> 
2368<input type="hidden" id="compaAerea" value="" /> 
2369<script> 
2370 
2371$(function(){ 
2372 
2373    var msgModalBodyAmigo = "<div class='row'><div class='col-md-4 col-xs-6' style='margin: 0 auto; float: initial;''><button type='button' class='red-btn' id='btOK'>OK</button></div></div>"; 
2374    var defaultLanguage = Liferay.ThemeDisplay.getLanguageId().split('_')[0]; 
2375    var meusDados = { 
2376 
2377      init: function() { 
2378        this._objCustomer = {}; 
2379        console.log("meusDados iniciado ... "); 
2380        this.onSubmit();  
2381      }, 
2382      onSubmit: function() { 
2383        console.debug("Function onSubmit loaded."); 
2384        $("#cadastre-se").find('.btn-cadastrar-amigos-meus-pontos').on('click', 'button', function(event) { 
2385          console.log("Event click in #buttonSubmit executed."); 
2386          event.stopImmediatePropagation(); 
2387          event.preventDefault(); 
2388          $(this).attr('disabled','disabled').addClass('disabled'); 
2389          $("#newsProgramaAmigo").attr("disabled", 'disabled'); 
2390          $("#queroParticipar").attr("disabled", 'disabled'); 
2391          if(store.get('accessToken')) { 
2392            df.loader.open(); 
2393            setTimeout(function(){ 
2394                  var  jsonCustomer =   meusDados.captureForm(); 
2395                  var updateCustomer = services.updateCustomer(meusDados.getCustomerTokenLocal(),jsonCustomer); 
2396                  console.log(updateCustomer); 
2397                  if(updateCustomer.returnCode == 0) { 
2398                      console.log(updateCustomer); 
2399                      df.openModal('<div class="col-xs-5 logo-programa-amigo-meus-pontos-modal"><img alt="Logo Amigo" title="Logo Amigo" src="${logoAmigoFormulario}" class="amigo-ico" tabindex="400"></div><h3 class="title modal-pontos col-xs-7">${mensagemSucessoCadastrarAmigo}</h3>', msgModalBodyAmigo); 
2400                  } else { 
2401                      df.openModal('<div class="col-xs-5 logo-programa-amigo-meus-pontos-modal"><img alt="Logo Amigo" title="Logo Amigo" src="${logoAmigoFormulario}" class="amigo-ico" tabindex="400"></div><h3 class="title modal-pontos col-xs-7">'+ updateCustomer.returnMessage +'</h3>', msgModalBodyAmigo); 
2402
2403                  df.loader.close(); 
2404            },300); 
2405          } else { 
2406              store.set("referrer", "/" + defaultLanguage + "/meus-pontos"); 
2407              location.href = "/" + defaultLanguage + "/login-avianca"; 
2408
2409        }); 
2410      }, 
2411      captureForm: function() { 
2412        var obj = meusDados._objCustomer; 
2413         
2414        var _termsConditionsLoyalty = $("#queroParticipar").is(":checked"); 
2415 
2416        obj.termsConditionsLoyalty = _termsConditionsLoyalty; 
2417 
2418        if (_termsConditionsLoyalty === true) { 
2419                var _optinEmailProgramaAmigo = $("#newsProgramaAmigo").is(":checked"); 
2420                obj.optinEmailProgramaAmigo = _optinEmailProgramaAmigo; 
2421            
2422
2423        return obj; 
2424      }, 
2425       
2426      getCustomerTokenLocal: function(){ 
2427         
2428          var token = store.get('accessToken'); 
2429          return token; 
2430      }, 
2431    }; 
2432 
2433(function(){ 
2434    YUI().use('aui-modal', 'aui-toggler', 'aui-node', 'node-event-simulate', 'aui-form-validator', function(Y){ 
2435            meusDados.init(); 
2436    }); 
2437})(); 
2438 
2439    var participarCheckado = "${participarCheckado}"; 
2440    var ReceberCheckado = "${ReceberCheckado}"; 
2441     
2442    if(participarCheckado == "true") { 
2443      $("#queroParticipar").prop("checked", true).change(); 
2444      $('.btn-cadastrar-amigos-meus-pontos button').removeClass("disabled"); 
2445      $('.btn-cadastrar-amigos-meus-pontos button').removeAttr("disabled", 'disabled'); 
2446      $("#newsProgramaAmigo").removeAttr("disabled", 'disabled'); 
2447      $(".newsProgramaAmigoBox").removeClass("disabled"); 
2448    } else { 
2449      $("#queroParticipar").prop("checked", false).change(); 
2450      $("#newsProgramaAmigo").attr("disabled", 'disabled'); 
2451      $("#newsProgramaAmigo").prop("checked", false).change(); 
2452      $(".newsProgramaAmigoBox").addClass("disabled"); 
2453
2454     
2455    if(ReceberCheckado == "true") { 
2456      $("#newsProgramaAmigo").prop("checked", true).change(); 
2457    }else { 
2458      $("#newsProgramaAmigo").prop("checked", false).change(); 
2459
2460    $(".checkbox.receber-informacoes #queroParticipar").on('change', function(){ 
2461        if($(".checkbox.receber-informacoes #queroParticipar").is(":checked")){ 
2462            $('.btn-cadastrar-amigos-meus-pontos button').removeClass("disabled"); 
2463            $('.btn-cadastrar-amigos-meus-pontos button').removeAttr("disabled", 'disabled'); 
2464            $("#newsProgramaAmigo").removeAttr("disabled", 'disabled'); 
2465            $(".newsProgramaAmigoBox").removeClass("disabled"); 
2466        } else { 
2467            $('.btn-cadastrar-amigos-meus-pontos button').addClass("disabled"); 
2468            $('.btn-cadastrar-amigos-meus-pontos button').attr("disabled", 'disabled'); 
2469            $("#newsProgramaAmigo").attr("disabled", 'disabled'); 
2470            $("#newsProgramaAmigo").prop("checked", false).change(); 
2471            $(".newsProgramaAmigoBox").addClass("disabled"); 
2472
2473    }); 
2474 
2475     
2476     
2477 
2478    <#-- ativa ou não Datas flexíveis no calendário --> 
2479 
2480    <#if datasFlexRes != "true"> 
2481    $(function(){ 
2482        $('.containerpickerpontos .daterange').on('click', function(){ 
2483            setTimeout(function(){ 
2484                var checkFlexP = $('.containerpickerpontos .daterangepicker .form-group.checkbox'); 
2485 
2486                if(checkFlexP.is(':visible')){ 
2487                    checkFlexP.hide(); 
2488
2489            },300); 
2490        }); 
2491    }); 
2492    </#if> 
2493    <#-- / --> 
2494 
2495    var msgModalBody = "<div class='row'><div class='col-md-3 col-xs-6' style='margin: 0 auto; float: initial;''><button type='button' class='red-btn' id='btOK'>OK</button></div></div>"; 
2496     
2497    $(document).on('click', '#btOK', function(){ 
2498        $("#av-container #modal .av-modal-content .av-modal-header .close").click(); 
2499    }); 
2500     
2501    var dateFormatLocale = ((Liferay.ThemeDisplay.getLanguageId() === 'en_US')? 'MM/DD/YYYY': 'DD/MM/YYYY'); 
2502 
2503    $('#bt-ver-cartao').click(function(){ 
2504        $('#cartao-ver-modal').html('<div class="col-xs-12 col-sm-12 av-back visible-xs visible-sm" id="cartao-ver-modal-back"><span class="glyphicon glyphicon-chevron-left pull-left"></span><p class="fz-12 pull-left">${TxtLinkVoltarVerCartao}</p></div><div style="clear:both;"></div><div class="' + $('#divCartaoMobile').attr('class') + '">' + $('#divCartaoMobile').html() + '</div>'); 
2505        $('#cartao-ver-modal').show(); 
2506        $('#cartao-sem-modal').hide(); 
2507        $('#cartao-sem-modal').closest("#conteudo-cartao").siblings(".av-back").removeClass("visible-xs").addClass("hidden"); 
2508        $('.menu-informativo').css("display", "none"); 
2509    }); 
2510    $('#bt-imprimir-cartao').click(function(){ 
2511        $('#cartao-ver-modal').html('<div class="col-xs-12 col-sm-12 av-back visible-xs visible-sm" id="cartao-ver-modal-back"><span class="glyphicon glyphicon-chevron-left pull-left"></span><p class="fz-12 pull-left">${TxtLinkVoltarImprimirCartao}</p></div><div style="clear:both;"></div><div class="' + $('#divCartaoMobile').attr('class') + '">' + $('#divCartaoMobile').html() + '</div>'); 
2512        $('#cartao-ver-modal').show(); 
2513        $('.menu-informativo').css("display", "none"); 
2514    }); 
2515    $('#cartao-ver-modal').on('click', '#cartao-ver-modal-back', function(){ 
2516        $('#cartao-ver-modal').hide(); 
2517        $('.menu-informativo').css("display", "block"); 
2518        $('#cartao-sem-modal').show(); 
2519        $('#cartao-sem-modal').closest("#conteudo-cartao").siblings(".av-back").addClass("visible-xs").removeClass("hidden"); 
2520    }); 
2521    $('#linkResgatarPontos').click(function(){ 
2522        if (Liferay.Browser.isMobile()) { 
2523            location.href=window.location.protocol+"//"+window.location.host+'/busca-de-passagem-mobile?usePoints=true'; 
2524            df.loader.open(); 
2525            return false; 
2526
2527    }); 
2528    if (!Liferay.Browser.isMobile()) { 
2529        $('div[data-change=1]').removeAttr('hidden'); 
2530    } else { 
2531        $('#linkResgatarPontos').attr('data-change','');         
2532
2533    var time = setTimeout(function(){ 
2534        window.open(window.location.protocol+"//"+window.location.host, '_self'); 
2535    }, 90000); 
2536    if(Liferay.ThemeDisplay.isSignedIn()){ 
2537        var accessToken = store.get("accessToken"); 
2538        if(accessToken !== null){ 
2539            user = services.getCustomerAccount(accessToken); 
2540            if(user.payload !== undefined && user.payload.termsConditionsLoyalty !== undefined && user.payload.flyerId !== undefined){               
2541                if(user.payload.termsConditionsLoyalty && (user.payload.flyerId > 0)){ 
2542                    balance = services.getCheckBalance(accessToken); 
2543                    tiers = services.getTierPoints(accessToken); 
2544                    infoClient = services.getCustomerAccount(accessToken); 
2545                    NA = "N/A"; 
2546                    firstName = store.get("firstName"); 
2547                    surName = store.get("lastName"); 
2548                    nomeAmigo = firstName+" "+surName; 
2549                    $("#nomeAmigo").attr("value",nomeAmigo); 
2550 
2551                    $("#primeiro-nome").attr("value",firstName); 
2552                    $("#ultimo-nome").attr("value",surName); 
2553 
2554                    $(".dadosCliente").append("<h5>"+nomeAmigo+"</h5>"); 
2555 
2556                    if(infoClient.returnCode == "0"){ 
2557                        numeCartao = infoClient.payload.flyerId; 
2558 
2559                        $(".numAmigo").html("<div class='col-xs-12'>"+ 
2560                            "<div class='circulos'><em></em><em></em><em></em></div></div>"+ 
2561                            "<strong>${TextNumAmigo} </strong>"+numeCartao); 
2562 
2563                        $("#numeCartao").attr("value",numeCartao); 
2564                        $(".dadosCliente").append("<p class='fwb'>"+numeCartao+"</p>"); 
2565
2566 
2567                    if(balance.returnCode == "0"){ 
2568                        dados = balance.payload; 
2569                        now = new Date(); 
2570                        hojeFormatoUSServices = now.getFullYear()+""+((now.getMonth()+1) <10 ? "0"+(now.getMonth()+1) : (now.getMonth()+1)) +""+((now.getDate()<10 ? "0"+now.getDate() : now.getDate())); 
2571                        dataInicioUSService = dados.enrolmentDate.split("/"); 
2572                        dataInicioUSService = dataInicioUSService[0]+""+dataInicioUSService[1]+""+dataInicioUSService[2]; 
2573                        activities = services.getActivities(accessToken, dataInicioUSService, hojeFormatoUSServices); 
2574 
2575                        valCartao = dados.expireDateOnCard; 
2576                        compaAerea = "Airline Code: O6"; 
2577 
2578                        $(".imgCartao").css("width","530px"); 
2579                        $("#divCartaoMobile .imgCartao").css("width","100%"); 
2580                        if($("#"+dados.cardType).val() == "MedBronze"){ 
2581                            $("#divMedalha").attr("class","bronze"); 
2582                            $("#tituloNivel").html("${TituloNivel} ${SufixoBronze}"); 
2583                            $(".imgCartao").attr("src","${ImagemCartaoBronze}"); 
2584                            valCartao = ""; 
2585                            $(".dadosCliente").append("<p>"+compaAerea+"</p>"); 
2586
2587                        else if($("#"+dados.cardType).val() == "MedSilver"){ 
2588                            $("#divMedalha").attr("class","silver"); 
2589                            $("#tituloNivel").html("${TituloNivel} ${SufixoSilver}"); 
2590                            $(".imgCartao").attr("src","${ImagemCartaoSilver}"); 
2591                            $(".dadosCliente").append("<p>VAL "+valCartao+" "+compaAerea+"</p>"); 
2592
2593                        else if($("#"+dados.cardType).val() ==  "MedGold"){ 
2594                            $("#divMedalha").attr("class","gold"); 
2595                            $("#tituloNivel").html("${TituloNivel} ${SufixoGold}"); 
2596                            $(".imgCartao").attr("src","${CartaoImagem}"); 
2597                            $(".dadosCliente").append("<p>VAL "+valCartao+" "+compaAerea+"</p>"); 
2598
2599                        else if($("#"+dados.cardType).val() == "MedDiamond"){ 
2600                            $("#divMedalha").attr("class","diamond"); 
2601                            $("#tituloNivel").html("${TituloNivel} ${SufixoDiamond}"); 
2602                            $(".imgCartao").attr("src","${ImagemCartaoDiamond}"); 
2603                            $(".dadosCliente").append("<p>VAL "+valCartao+" "+compaAerea+"</p>"); 
2604
2605                        else{ 
2606                            $("#divMedalha").attr("class","bronze"); 
2607                            $("#tituloNivel").html("${TituloNivel} ${SufixoBronze}"); 
2608                            $(".imgCartao").attr("src","${ImagemCartaoBronze}"); 
2609                            valCartao = ""; 
2610                            $(".dadosCliente").append("<p>"+compaAerea+"</p>"); 
2611
2612 
2613 
2614                        $("#valCartao").attr("value",valCartao); 
2615                        $("#compaAerea").attr("value",compaAerea); 
2616 
2617                        var medalhaAtual = $("#"+dados.cardType).val(); 
2618 
2619                        if(medalhaAtual == "MedBronze"){ 
2620                            $("#qtdPontosRestantes").html("${TxtAbaLateralMeusPontosFaltam} <b>"+toMoeda(dados.milesUntilNextLevel)+"</b> ${TxtAbaLateralMeusPontosPontos}<br class='visible-xs'> ${TxtAbaLateralMeusPontosParaNivel} ${SufixoSilver}"); 
2621                        }else if(medalhaAtual == "MedSilver"){ 
2622                            $("#qtdPontosRestantes").html("${TxtAbaLateralMeusPontosFaltam} <b>"+toMoeda(dados.milesUntilNextLevel)+"</b> ${TxtAbaLateralMeusPontosPontos}<br class='visible-xs'> ${TxtAbaLateralMeusPontosParaNivel} ${SufixoGold}"); 
2623                        }else if(medalhaAtual == "MedGold"){ 
2624                            $("#qtdPontosRestantes").html("${TxtAbaLateralMeusPontosFaltam} <b>"+toMoeda(dados.milesUntilNextLevel)+"</b> ${TxtAbaLateralMeusPontosPontos}<br class='visible-xs'> ${TxtAbaLateralMeusPontosParaNivel} ${SufixoDiamond}"); 
2625                        }else if(medalhaAtual == "MedDiamond"){ 
2626                            $("#qtdPontosRestantes").html(""); 
2627
2628 
2629                        $("#qtdPontosAtual").html(toMoeda(dados.totalMiles)+" ${TxtAbaLateralMeusPontosQtdAtual}"); 
2630     
2631                            $("#dtExibicaoPontos").html("${TxtAbaLateralMeusPontosDtUpdatePontos}" + moment().format(dateFormatLocale)); 
2632     
2633                        if(tiers.returnCode == "0" && tiers.payload.tiers !== undefined && tiers.payload.tiers.length > 0){ 
2634                            dadosTiers = tiers.payload.tiers; 
2635                            cont = 0 
2636                            for(i=0; i <=(dadosTiers.length -1); i++){ 
2637                                if(cont <= 2){ 
2638                                    if(dadosTiers[i].expireYear !==undefined && dadosTiers[i].expireYear !==null && dadosTiers[i].expireYear !==""){ 
2639                                        dateFormated = dadosTiers[i].expireYear.split("/"); 
2640                                        dateFormated = dateFormated[2]+"/"+dateFormated[1]+"/"+dateFormated[0]; 
2641                                        $("#tierShow"+(cont+1)).html("<div class='col-xs-8'>"+ 
2642                                            "<div class='row'>"+dateFormated+ 
2643                                            "</div></div>"+ 
2644                                            "<div class='col-xs-4'><div class='row'>"+toMoeda(dadosTiers[i].expirePoints)+ 
2645                                            "</div></div>"); 
2646                                            cont++; 
2647
2648 
2649
2650                                if(i == 0){ 
2651                                    if(dadosTiers[i].expireYear !==undefined && dadosTiers[i].expireYear !==null && dadosTiers[i].expireYear !==""){ 
2652                                        dateFormated = dadosTiers[i].expireYear.split("/"); 
2653                                        dateFormated = dateFormated[2]+"/"+dateFormated[1]+"/"+dateFormated[0]; 
2654                                        $("#fullTiers").html("<div class='col-xs-12'><div class='col-xs-6'><div class='row'>" 
2655                                        +dateFormated+ 
2656                                        "</div></div><div class='col-xs-4'><div class='row'>" 
2657                                        +toMoeda(dadosTiers[i].expirePoints)+ 
2658                                        "</div></div></div>"); 
2659
2660
2661                                else{ 
2662                                    if(dadosTiers[i].expireYear !==undefined && dadosTiers[i].expireYear !==null && dadosTiers[i].expireYear !==""){ 
2663                                        dateFormated = dadosTiers[i].expireYear.split("/"); 
2664                                        dateFormated = dateFormated[2]+"/"+dateFormated[1]+"/"+dateFormated[0]; 
2665                                        $("#fullTiers").html($("#fullTiers").html()+"<div class='col-xs-12'><div class='col-xs-6'><div class='row'>" 
2666                                        +dateFormated+ 
2667                                        "</div></div><div class='col-xs-4'><div class='row'>" 
2668                                        +toMoeda(dadosTiers[i].expirePoints)+ 
2669                                        "</div></div></div>"); 
2670
2671
2672
2673                            $("#tabelaPontosExpirar").show(); 
2674
2675                        else{ 
2676                            $("#tabelaPontosExpirar").hide(); 
2677
2678 
2679                        if(activities.returnCode == "0" && activities.payload !== undefined && activities.payload.length > 0){ 
2680                            dadosActivitie = activities.payload; 
2681 
2682                            htmlAccumulated ="<div class='row line title' data-page=''>"+ 
2683                                "<div class='col-sm-3 col-md-3 col-lg-2'><div class='row'>${DataDaAtividadeLabel}"+ 
2684                                "</div></div><div class='col-sm-3 col-md-3 col-lg-2'><div class='row'>${VooLabel}"+ 
2685                                "</div></div><div class='col-sm-3 col-md-3 col-lg-6'><div class='row'>${DescricaoLabel}"+ 
2686                                "</div></div><div class='col-sm-3 col-md-3 col-lg-2'><div class='row'>${PontosAcumuladosLabel}"+ 
2687                                "</div></div>"+ 
2688                                "</div>"; 
2689 
2690                            htmlDebitaded ="<div class='row line title'>"+ 
2691                                "<div class='col-sm-3 col-md-3 col-lg-2'><div class='row'>${DataDeAtividade}"+ 
2692                                "</div></div><div class='col-sm-3 col-md-3 col-lg-2'><div class='row'>${Voo}"+ 
2693                                "</div></div><div class='col-sm-3 col-md-3 col-lg-6'><div class='row'>${Descricao}"+ 
2694                                "</div></div><div class='col-sm-3 col-md-3 col-lg-2'><div class='row'>${TituloPontosDebitados}"+ 
2695                                "</div></div>"+ 
2696                                "</div>"; 
2697                            $("#pointsAccumulatedData").html(""); 
2698                            $("#detailPointsAccumulated").html(""); 
2699                            $("#detailPointsAccumulatedMobile").html(""); 
2700                            $("#pointsDebitadedData").html(""); 
2701                            $("#detailPointsDebitaded").html(""); 
2702                            $("#detailPointsDebitadedMobile").html(""); 
2703 
2704                            sumAwardPoints = 0; 
2705                            countItensPerPageAcu = 0; 
2706                            countItensPerPageDeb = 0; 
2707                            countPageAcu = 1; 
2708                            countPageDeb = 1; 
2709 
2710                            divsAccumulated = ""; 
2711                            divAtualAccumulated = ""; 
2712 
2713                            divsAccumulatedDetail = ""; 
2714                            divsDebitadedDetail = ""; 
2715 
2716                            divsDebitaded = ""; 
2717                            divAtualDebitaded = ""; 
2718                             
2719                            divsDebitadedDetailMobile = ""; 
2720                             
2721                            divsAccumulatedDetailMobile = ""; 
2722 
2723 
2724                            for(i = 0; i <= (dadosActivitie.length-1); i++){ 
2725                                dateFormated = dadosActivitie[i].activityDate.split("/"); 
2726                                dateFormated = dateFormated[2]+"/"+dateFormated[1]+"/"+dateFormated[0]; 
2727 
2728 
2729                                if(parseInt(dadosActivitie[i].awardPoints) > 0 && parseInt(dadosActivitie[i].redeemedPoints) == 0){ 
2730                                    if(countItensPerPageAcu == 0){ 
2731                                        divsAccumulated = "<div id='accumulatedPage_"+countPageAcu+"'>"; 
2732                                        divsAccumulatedDetail = "<div id='accumulatedPageDetail_"+countPageAcu+"'>"; 
2733                                        divsAccumulatedDetailMobile = "<div id='accumulatedPageDetailMobile_"+countPageAcu+"'>" 
2734
2735                                    if(countItensPerPageAcu > 0 && countItensPerPageAcu%10 == 0){ 
2736                                        divsAccumulated+=divAtualAccumulated+"</div>"; 
2737                                        divAtualAccumulated=""; 
2738 
2739                                        divsAccumulatedDetail+=$("#detailPointsAccumulated").html()+"</div>"; 
2740                                        divsAccumulatedDetailMobile+=$("#detailPointsAccumulatedMobile").html()+"</div>"; 
2741                                        $("#detailPointsAccumulated").html(""); 
2742                                        $("#detailPointsAccumulatedMobile").html(""); 
2743 
2744                                        countPageAcu++; 
2745 
2746                                        divsAccumulated += "<div id='accumulatedPage_"+countPageAcu+"'>"; 
2747                                        divsAccumulatedDetail +=  "<div id='accumulatedPageDetail_"+countPageAcu+"'>"; 
2748                                        divsAccumulatedDetailMobile += "<div id='accumulatedPageDetailMobile_"+countPageAcu+"'>" 
2749                                        $('.av-pagination-mobile a[data-target="detailPointsAccumulatedMobile"][data-action="next"]').show(); 
2750
2751 
2752                                    countItensPerPageAcu++; 
2753                                    sumAwardPoints = sumAwardPoints+parseInt(dadosActivitie[i].awardPoints); 
2754 
2755                                    /*Pontos acumulados*/ 
2756                                    divAtualAccumulated +="<div class='row line'>"+ 
2757                                        "<div class='col-sm-3 col-md-3 col-lg-2'><div class='row tl'>"+dateFormated+ 
2758                                        "</div></div><div class='col-sm-3 col-md-3 col-lg-2'><div class='row'>"+(dadosActivitie[i].flightNumber !== undefined ? dadosActivitie[i].flightNumber : "-")+ 
2759                                        "</div></div><div class='col-sm-3 col-md-3 col-lg-6'><div class='row tl'>"+dadosActivitie[i].definition+ 
2760                                        "</div></div><div class='col-sm-3 col-md-3 col-lg-2'><div class='row'>"+toMoeda(dadosActivitie[i].awardPoints)+ 
2761                                        "</div></div>"+ 
2762                                        "</div>"; 
2763 
2764                                    $("#detailPointsAccumulated").html($("#detailPointsAccumulated").html()+"<div class='row line'><div class='col-sm-1 col-md-1 col-lg-1'><div class='row tl'>"+dateFormated+ 
2765                                        "</div></div><div class='col-sm-1 col-md-1 col-lg-1'><div class='row'>"+(dadosActivitie[i].flightNumber !== undefined ? dadosActivitie[i].flightNumber : "-")+ 
2766                                        "</div></div><div class='col-sm-1 col-md-1 col-lg-1'><div class='row'>"+(dadosActivitie[i].classCode !== undefined ? dadosActivitie[i].classCode : "-")+ 
2767                                        "</div></div><div class='col-sm-1 col-md-1 col-lg-1'><div class='row'>"+(dadosActivitie[i].flownClass !== undefined ? dadosActivitie[i].flownClass : "-")+ 
2768                                        "</div></div><div class='col-sm-1 col-md-1 col-lg-1'><div class='row'>"+(dadosActivitie[i].ticketnumber !== undefined ? dadosActivitie[i].ticketnumber : "-")+ 
2769                                        "</div></div><div class='col-sm-1 col-md-1 col-lg-1'><div class='row'>"+(dadosActivitie[i].activity !== undefined ? dadosActivitie[i].activity : "-")+ 
2770                                        "</div></div><div class='col-sm-1 col-md-1 col-lg-1'><div class='row'>"+(dadosActivitie[i].definition !== undefined ? dadosActivitie[i].definition : "-")+ 
2771                                        "</div></div><div class='col-sm-1 col-md-1 col-lg-1'><div class='row'>"+(dadosActivitie[i].awardPoints !== undefined ? dadosActivitie[i].awardPoints : "-")+ 
2772                                        "</div></div><div class='col-sm-1 col-md-1 col-lg-1'><div class='row'>"+(dadosActivitie[i].tierPoints !== undefined ? dadosActivitie[i].tierPoints : "-")+ 
2773                                        "</div>"); 
2774 
2775                                    $("#detailPointsAccumulatedMobile").html($("#detailPointsAccumulatedMobile").html()+"<div class='row line'><div class='col-xs-6 col-sm-1 col-md-1 col-lg-1'><div class='row tl'><b>"+dateFormated+ 
2776                                        "</b> </div></div><div class='col-xs-6 col-sm-1 col-md-1 col-lg-1 tr'><div class='row'>"+(dadosActivitie[i].awardPoints !== undefined ? dadosActivitie[i].awardPoints : "-")+ 
2777                                        "</div></div><div class='col-xs-6 col-sm-1 col-md-1 col-lg-1'  style='display: none;' data-value-id='${VooLabel}'><div class='row'>"+(dadosActivitie[i].flightNumber !== undefined ? dadosActivitie[i].flightNumber : "-")+ 
2778                                        "</div></div><div class='col-xs-6 col-sm-1 col-md-1 col-lg-1'  style='display: none;' data-value-id='${Classe}'><div class='row'>"+(dadosActivitie[i].classCode !== undefined ? dadosActivitie[i].classCode : "-")+ 
2779                                        "</div></div><div class='col-xs-6 col-sm-1 col-md-1 col-lg-1'  style='display: none;' data-value-id='${ClasseVoada}'><div class='row'>"+(dadosActivitie[i].flownClass !== undefined ? dadosActivitie[i].flownClass : "-")+ 
2780                                        "</div></div><div class='col-xs-6 col-sm-1 col-md-1 col-lg-1'  style='display: none;' data-value-id='${NdoBilhete}'><div class='row'>"+(dadosActivitie[i].ticketnumber !== undefined ? dadosActivitie[i].ticketnumber : "-")+ 
2781                                        "</div></div><div class='col-xs-6 col-sm-1 col-md-1 col-lg-1'  style='display: none;' data-value-id='${Atividade}'><div class='row'>"+(dadosActivitie[i].activity !== undefined ? dadosActivitie[i].activity : "-")+ 
2782                                        "</div></div><div class='col-xs-6 col-sm-1 col-md-1 col-lg-1' data-value-id='${DescricaoLabel}'><div class='row'>"+(dadosActivitie[i].definition !== undefined ? dadosActivitie[i].definition : "-")+ 
2783                                        "</div></div><div class='col-xs-6 col-sm-1 col-md-1 col-lg-1'  style='display: none;' data-value-id='${PontosQualificaveisModal}'><div class='row'>"+(dadosActivitie[i].tierPoints !== undefined ? dadosActivitie[i].tierPoints : "-")+ 
2784                                        "</div>"); 
2785
2786 
2787                                if(parseInt(dadosActivitie[i].awardPoints) == 0 && parseInt(dadosActivitie[i].redeemedPoints) < 0){ 
2788                                    if(countItensPerPageDeb == 0){ 
2789                                        divsDebitaded = "<div id='debitadedPage_"+countPageDeb+"'>"; 
2790                                        divsDebitadedDetail = "<div id='debitadedPageDetail_"+countPageDeb+"'>"; 
2791                                        divsDebitadedDetailMobile = "<div id='debitadedPageDetailMobile_"+countPageDeb+"'>"; 
2792
2793                                    if(countItensPerPageDeb > 0 && countItensPerPageDeb%10 == 0){ 
2794                                        divsDebitaded+=divAtualDebitaded+"</div>"; 
2795                                        divAtualDebitaded=""; 
2796 
2797                                        divsDebitadedDetail += $("#detailPointsDebitaded").html()+"</div>"; 
2798                                        divsDebitadedDetailMobile += $("#detailPointsDebitadedMobile").html()+"</div>"; 
2799                                        $("#detailPointsDebitaded").html(""); 
2800                                        $("#detailPointsDebitadedMobile").html(""); 
2801 
2802                                        countPageDeb++; 
2803 
2804                                        divsDebitaded += "<div id='debitadedPage_"+countPageDeb+"'>"; 
2805                                        divsDebitadedDetail += "<div id='debitadedPageDetail_"+countPageDeb+"'>"; 
2806                                        divsDebitadedDetailMobile += "<div id='debitadedPageDetailMobile_"+countPageDeb+"'>"; 
2807                                        $('.av-pagination-mobile a[data-target="detailPointsDebitadedMobile"][data-action="next"]').show(); 
2808
2809 
2810                                    countItensPerPageDeb++; 
2811 
2812                                    /*Pontos debitados*/ 
2813                                    divAtualDebitaded += "<div class='row line'><div class='col-sm-3 col-md-3 col-lg-2'><div class='row tl'>"+dateFormated+ 
2814                                        "</div></div><div class='col-sm-3 col-md-3 col-lg-2'><div class='row'>"+(dadosActivitie[i].flightNumber !== undefined ? dadosActivitie[i].flightNumber : "N/A")+ 
2815                                        "</div></div><div class='col-sm-3 col-md-3 col-lg-6'><div class='row tl'>"+dadosActivitie[i].definition+ 
2816                                        "</div></div><div class='col-sm-3 col-md-3 col-lg-2'><div class='row'>"+toMoeda(dadosActivitie[i].redeemedPoints)+ 
2817                                        "</div></div>"+ 
2818                                        "</div>"; 
2819 
2820                                    $("#detailPointsDebitaded").html($("#detailPointsDebitaded").html()+"<div class='row line'><div class='col-sm-2 col-md-1 col-lg-1'><div class='row tl'>"+dateFormated+ 
2821                                        "</div></div><div class='col-sm-1 col-md-1 col-lg-1'><div class='row'>"+(dadosActivitie[i].flightNumber !== undefined ? dadosActivitie[i].flightNumber : "-")+ 
2822                                        "</div></div><div class='col-sm-1 col-md-1 col-lg-1'><div class='row'>"+(dadosActivitie[i].classCode !== undefined ? dadosActivitie[i].classCode : "-")+ 
2823                                        "</div></div><div class='col-sm-2 col-md-1 col-lg-1'><div class='row'>"+(dadosActivitie[i].activity !== undefined ? dadosActivitie[i].activity : "-")+ 
2824                                        "</div></div><div class='col-sm-2 col-md-1 col-lg-1'><div class='row'>"+(dadosActivitie[i].definition !== undefined ? dadosActivitie[i].definition : "-")+ 
2825                                        "</div></div><div class='col-sm-2 col-md-1 col-lg-1'><div class='row'>"+toMoeda(dadosActivitie[i].redeemedPoints)+ 
2826                                        "</div>"); 
2827 
2828                                    $("#detailPointsDebitadedMobile").html($("#detailPointsDebitadedMobile").html()+"<div class='row line'><div class='col-xs-6 col-sm-1 col-md-1 col-lg-1'><div class='row tl'><b>"+dateFormated+ 
2829                                        "</b></div></div><div class='col-xs-6 col-sm-1 col-md-1 col-lg-1 tr'><div class='row'>"+toMoeda(dadosActivitie[i].redeemedPoints)+ 
2830                                        "</div></div><div class='col-xs-6 col-sm-1 col-md-1 col-lg-1'  style='display: none;' data-value-id='${VooLabel}'><div class='row'>"+(dadosActivitie[i].flightNumber !== undefined ? dadosActivitie[i].flightNumber : "-")+ 
2831                                        "</div></div><div class='col-xs-6 col-sm-1 col-md-1 col-lg-1'  style='display: none;' data-value-id='${Classe}'><div class='row'>"+(dadosActivitie[i].classCode !== undefined ? dadosActivitie[i].classCode : "-")+ 
2832                                        "</div></div><div class='col-xs-6 col-sm-1 col-md-1 col-lg-1'  style='display: none;' data-value-id='${Atividade}'><div class='row'>"+(dadosActivitie[i].activity !== undefined ? dadosActivitie[i].activity : "-")+ 
2833                                        "</div></div><div class='col-xs-6 col-sm-1 col-md-1 col-lg-1' data-value-id='${DescricaoLabel}'><div class='row'>"+(dadosActivitie[i].definition !== undefined ? dadosActivitie[i].definition : "-")+ 
2834                                        "</div>"); 
2835
2836 
2837
2838 
2839                            $("#paginationAccumulated").html("<li class='first'><a href='javascript:;' data-action='first'> ← ${PaginacaoPontosFirst} </a> </li>"+ 
2840                                                             "<li class='prev'> <a href='javascript:;' data-action='previous'> ${PaginacaoPontosPrevious} </a> </li>"+ 
2841                                                             "<li class='next'> <a href='javascript:;' data-action='next'> ${PaginacaoPontosNext} </a> </li>"+ 
2842                                                             "<li class='last'> <a href='javascript:;' data-action='last'> ${PaginacaoPontosLast} → </a> </li>"); 
2843 
2844                            $("#paginationAccumulatedDetail").html("<li class='first'><a href='javascript:;' data-action='first'> ← ${PaginacaoPontosFirst} </a> </li>"+ 
2845                                                             "<li class='prev'> <a href='javascript:;' data-action='previous'> ${PaginacaoPontosPrevious} </a> </li>"+ 
2846                                                             "<li class='next'> <a href='javascript:;' data-action='next'> ${PaginacaoPontosNext} </a> </li>"+ 
2847                                                             "<li class='last'> <a href='javascript:;' data-action='last'> ${PaginacaoPontosLast} → </a> </li>"); 
2848 
2849                            $("#paginationDebitaded").html("<li class='first'><a href='javascript:;' data-action='first'> ← ${PaginacaoPontosFirst} </a> </li>"+ 
2850                                                             "<li class='prev'> <a href='javascript:;' data-action='previous'> ${PaginacaoPontosPrevious} </a> </li>"+ 
2851                                                             "<li class='next'> <a href='javascript:;' data-action='next'> ${PaginacaoPontosNext} </a> </li>"+ 
2852                                                             "<li class='last'> <a href='javascript:;' data-action='last'> ${PaginacaoPontosLast} → </a> </li>"); 
2853 
2854                            $("#paginationDebitadedDetail").html("<li class='first'><a href='javascript:;' data-action='first'> ← ${PaginacaoPontosFirst} </a> </li>"+ 
2855                                                             "<li class='prev'> <a href='javascript:;' data-action='previous'> ${PaginacaoPontosPrevious} </a> </li>"+ 
2856                                                             "<li class='next'> <a href='javascript:;' data-action='next'> ${PaginacaoPontosNext} </a> </li>"+ 
2857                                                             "<li class='last'> <a href='javascript:;' data-action='last'> ${PaginacaoPontosLast} → </a> </li>"); 
2858 
2859                            $("#sumAwardPoints").html(toMoeda(dados.statusMiles));  
2860                             
2861                            if(Liferay.Browser.isFirefox()) 
2862                                $("#sumAwardPoints").css("word-wrap", "break-word"); 
2863 
2864                            $("#pointsAccumulatedData").html(htmlAccumulated+divsAccumulated+divAtualAccumulated+"</div>"); 
2865                            $("#detailPointsAccumulated").html(divsAccumulatedDetail+$("#detailPointsAccumulated").html()+"</div>"); 
2866                            $("#detailPointsAccumulatedMobile").html(divsAccumulatedDetailMobile+$("#detailPointsAccumulatedMobile").html()+"</div>"); 
2867 
2868                            $("#pointsDebitadedData").html(htmlDebitaded+divsDebitaded+divAtualDebitaded+"</div>"); 
2869                            $("#detailPointsDebitaded").html(divsDebitadedDetail+$("#detailPointsDebitaded").html()+"</div>"); 
2870                            $("#detailPointsDebitadedMobile").html(divsDebitadedDetailMobile+$("#detailPointsDebitadedMobile").html()+"</div>"); 
2871 
2872                            if(countItensPerPageAcu == 0){ 
2873                                $("#pointsAccumulatedInf").html("<p>${TextoPontosAcumulados} "+(countItensPerPageAcu)+" ${PaginacaoPontosLast}"); 
2874                                $("#pointsAccumulatedData").hide(); 
2875                                $("#paginationAccumulated").hide(); 
2876
2877                            else{ 
2878                                $("#pointsAccumulatedInf").html("<p>${TextoPontosAcumulados} "+(countItensPerPageAcu)+" ${LabelAtividades} - <strong>"+ 
2879                                "<a class='tbl-detalhada'>${TextoLinkModal}</a></strong></p>"); 
2880
2881 
2882                            if(countItensPerPageDeb == 0){ 
2883                                $("#pointsDebitadedInf").html("<p>${TextoPontosDebitados} "+(countItensPerPageDeb)+" ${LabelAtividades}"); 
2884                                $("#pointsDebitadedData").hide(); 
2885                                $("#paginationDebitaded").hide(); 
2886 
2887                            }else{ 
2888                                $("#pointsDebitadedInf").html("<p>${TextoPontosDebitados} "+(countItensPerPageDeb)+" ${LabelAtividades} - <strong>"+ 
2889                                    "<a class='tbl-detalhada'>${TextoLinkModal1}</a></strong></p>"); 
2890
2891 
2892                            for (i = 1; i <= countPageAcu; i++) { 
2893                                $('<li class="page-num"><a href="javascript:;" data-action="'+i+'">'+i+'</a></li>').insertBefore($('#paginationAccumulated .next')); 
2894                                $('<li class="page-num"><a href="javascript:;" data-action="'+i+'">'+i+'</a></li>').insertBefore($('#paginationAccumulatedDetail .next')); 
2895 
2896                                $("#accumulatedPage_"+i).hide(); 
2897                                $("#accumulatedPageDetail_"+i).hide(); 
2898                                $("#accumulatedPageDetailMobile_"+i).hide(); 
2899 
2900
2901                            for (i = 1; i <= countPageDeb; i++) { 
2902                                $('<li class="page-num"><a href="javascript:;" data-action="'+i+'">'+i+'</a></li>').insertBefore($('#paginationDebitaded .next')); 
2903                                $('<li class="page-num"><a href="javascript:;" data-action="'+i+'">'+i+'</a></li>').insertBefore($('#paginationDebitadedDetail .next')); 
2904 
2905                                $("#debitadedPage_"+i).hide(); 
2906                                $("#debitadedPageDetail_"+i).hide(); 
2907                                $("#debitadedPageDetailMobile_"+i).hide(); 
2908
2909 
2910                            $("#accumulatedPage_1").show(); 
2911                            $('#paginationAccumulated li a[data-action="1"]').parent().addClass('pg-active'); 
2912 
2913                            $("#accumulatedPageDetail_1").show(); 
2914                            $('#paginationAccumulatedDetail li a[data-action="1"]').parent().addClass('pg-active'); 
2915 
2916                            $("#accumulatedPageDetailMobile_1").show(); 
2917                            $("#debitadedPageDetailMobile_1").show(); 
2918 
2919                            $("#debitadedPage_1").show(); 
2920                            $('#paginationDebitaded li a[data-action="1"]').parent().addClass('pg-active'); 
2921 
2922                            $("#debitadedPageDetail_1").show(); 
2923                            $('#paginationDebitadedDetail li a[data-action="1"]').parent().addClass('pg-active'); 
2924 
2925                            friendlyPagesAccumulated(); 
2926                            friendlyPagesAccumulatedDetail(); 
2927                            friendlyPagesDebitated(); 
2928                            friendlyPagesDebitatedDetail(); 
2929 
2930                            $('#paginationAccumulated a').on('click', function(e){ 
2931                                e.preventDefault(); 
2932                                toPage = $(this).attr('data-action'), 
2933                                actualPage  = $('#paginationAccumulated .pg-active a').attr('data-action'); 
2934                                if(toPage == 'first' && parseInt(actualPage) > 1){ 
2935                                    var actualPage = 1; 
2936                                }else if(toPage == 'previous' && parseInt(actualPage) > 1){ 
2937                                    var actualPage = parseInt(actualPage) - 1; 
2938                                }else if(toPage == 'next' && parseInt(actualPage) < parseInt(countPageAcu)){ 
2939                                    var actualPage = parseInt(actualPage) + 1; 
2940                                }else if(toPage == 'last' && parseInt(actualPage) < parseInt(countPageAcu)){ 
2941                                    var actualPage = countPageAcu; 
2942                                }else if(!isNaN(toPage)){ 
2943                                    var actualPage = toPage; 
2944                                }else{ 
2945                                    return false; 
2946
2947 
2948 
2949                                $('#paginationAccumulated li').removeClass('pg-active'); 
2950                                for (i = 1; i <= countPageAcu; i++) { 
2951                                    $("#accumulatedPage_"+i).hide(); 
2952
2953 
2954 
2955                                $('#paginationAccumulated li a[data-action="'+ actualPage +'"]').parent().addClass('pg-active'); 
2956                                $("#accumulatedPage_"+actualPage).show(); 
2957 
2958                                friendlyPagesAccumulated(); 
2959                            }); 
2960 
2961                            $('#paginationAccumulatedDetail a').on('click', function(e){ 
2962                                e.preventDefault(); 
2963                                toPage = $(this).attr('data-action'), 
2964                                actualPage  = $('#paginationAccumulatedDetail .pg-active a').attr('data-action'); 
2965                                if(toPage == 'first' && parseInt(actualPage) > 1){ 
2966                                    var actualPage = 1; 
2967                                }else if(toPage == 'previous' && parseInt(actualPage) > 1){ 
2968                                    var actualPage = parseInt(actualPage) - 1; 
2969                                }else if(toPage == 'next' && parseInt(actualPage) < parseInt(countPageAcu)){ 
2970                                    var actualPage = parseInt(actualPage) + 1; 
2971                                }else if(toPage == 'last' && parseInt(actualPage) < parseInt(countPageAcu)){ 
2972                                    var actualPage = countPageAcu; 
2973                                }else if(!isNaN(toPage)){ 
2974                                    var actualPage = toPage; 
2975                                }else{ 
2976                                    return false; 
2977
2978 
2979 
2980                                $('#paginationAccumulatedDetail li').removeClass('pg-active'); 
2981                                for (i = 1; i <= countPageAcu; i++) { 
2982                                    $("#accumulatedPageDetail_"+i).hide(); 
2983
2984 
2985 
2986                                $('#paginationAccumulatedDetail li a[data-action="'+ actualPage +'"]').parent().addClass('pg-active'); 
2987                                $("#accumulatedPageDetail_"+actualPage).show(); 
2988                                friendlyPagesAccumulatedDetail(); 
2989                            }); 
2990 
2991                            $('#paginationDebitaded a').on('click', function(e){ 
2992                                e.preventDefault(); 
2993                                toPage = $(this).attr('data-action'), 
2994                                actualPage  = $('#paginationDebitaded .pg-active a').attr('data-action'); 
2995                                if(toPage == 'first' && parseInt(actualPage) > 1){ 
2996                                    var actualPage = 1; 
2997                                }else if(toPage == 'previous' && parseInt(actualPage) > 1){ 
2998                                    var actualPage = parseInt(actualPage) - 1; 
2999                                }else if(toPage == 'next' && parseInt(actualPage) < parseInt(countPageDeb)){ 
3000                                    var actualPage = parseInt(actualPage) + 1; 
3001                                }else if(toPage == 'last' && parseInt(actualPage) < parseInt(countPageDeb)){ 
3002                                    var actualPage = countPageDeb; 
3003                                }else if(!isNaN(toPage)){ 
3004                                    var actualPage = toPage; 
3005                                }else{ 
3006                                    return false; 
3007
3008 
3009 
3010                                $('#paginationDebitaded li').removeClass('pg-active'); 
3011                                for (i = 1; i <= countPageDeb; i++) { 
3012                                    $("#debitadedPage_"+i).hide(); 
3013
3014 
3015 
3016                                $('#paginationDebitaded li a[data-action="'+ actualPage +'"]').parent().addClass('pg-active'); 
3017                                $("#debitadedPage_"+actualPage).show(); 
3018                                friendlyPagesDebitated(); 
3019                            }); 
3020 
3021                            $('#paginationDebitadedDetail a').on('click', function(e){ 
3022                                e.preventDefault(); 
3023                                toPage = $(this).attr('data-action'), 
3024                                actualPage  = $('#paginationDebitadedDetail .pg-active a').attr('data-action'); 
3025                                if(toPage == 'first' && parseInt(actualPage) > 1){ 
3026                                    var actualPage = 1; 
3027                                }else if(toPage == 'previous' && parseInt(actualPage) > 1){ 
3028                                    var actualPage = parseInt(actualPage) - 1; 
3029                                }else if(toPage == 'next' && parseInt(actualPage) < parseInt(countPageDeb)){ 
3030                                    var actualPage = parseInt(actualPage) + 1; 
3031                                }else if(toPage == 'last' && parseInt(actualPage) < parseInt(countPageDeb)){ 
3032                                    var actualPage = countPageDeb; 
3033                                }else if(!isNaN(toPage)){ 
3034                                    var actualPage = toPage; 
3035                                }else{ 
3036                                    return false; 
3037
3038 
3039 
3040                                $('#paginationDebitadedDetail li').removeClass('pg-active'); 
3041                                for (i = 1; i <= countPageDeb; i++) { 
3042                                    $("#debitadedPageDetail_"+i).hide(); 
3043
3044 
3045 
3046                                $('#paginationDebitadedDetail li a[data-action="'+ actualPage +'"]').parent().addClass('pg-active'); 
3047                                $("#debitadedPageDetail_"+actualPage).show(); 
3048                                friendlyPagesDebitatedDetail(); 
3049                            }); 
3050 
3051                            $('.av-pagination-mobile a[data-target="detailPointsAccumulatedMobile"]').on('click', function(e){ 
3052                                e.preventDefault(); 
3053                                toPage = $(this).attr('data-action'), 
3054                                actualPage  = $('#paginationAccumulatedDetail .pg-active a').attr('data-action'); 
3055                                if(toPage == 'previous' && parseInt(actualPage) > 1){ 
3056                                    var actualPage = parseInt(actualPage) - 1; 
3057                                }else if(toPage == 'next' && parseInt(actualPage) < parseInt(countPageAcu)){ 
3058                                    var actualPage = parseInt(actualPage) + 1; 
3059                                }else{ 
3060                                    return false; 
3061
3062 
3063                                if (parseInt(actualPage) <= 1) { 
3064                                    $('.av-pagination-mobile a[data-target="detailPointsAccumulatedMobile"][data-action="previous"]').hide(); 
3065                                } else { 
3066                                    $('.av-pagination-mobile a[data-target="detailPointsAccumulatedMobile"][data-action="previous"]').show(); 
3067
3068 
3069                                if (parseInt(actualPage) >= parseInt(countPageAcu)) { 
3070                                    $('.av-pagination-mobile a[data-target="detailPointsAccumulatedMobile"][data-action="next"]').hide(); 
3071                                } else { 
3072                                    $('.av-pagination-mobile a[data-target="detailPointsAccumulatedMobile"][data-action="next"]').show(); 
3073
3074 
3075 
3076                                $('#paginationAccumulatedDetail li').removeClass('pg-active'); 
3077                                for (i = 1; i <= countPageAcu; i++) { 
3078                                    $("#accumulatedPageDetailMobile_"+i).hide(); 
3079
3080 
3081 
3082                                $('#paginationAccumulatedDetail li a[data-action="'+ actualPage +'"]').parent().addClass('pg-active'); 
3083                                $("#accumulatedPageDetailMobile_"+actualPage).show(); 
3084                            }); 
3085 
3086                            $('.av-pagination-mobile a[data-target="detailPointsDebitadedMobile"]').on('click', function(e){ 
3087                                e.preventDefault(); 
3088                                toPage = $(this).attr('data-action'), 
3089                                actualPage  = $('#paginationDebitadedDetail .pg-active a').attr('data-action'); 
3090                                if(toPage == 'previous' && parseInt(actualPage) > 1){ 
3091                                    var actualPage = parseInt(actualPage) - 1; 
3092                                }else if(toPage == 'next' && parseInt(actualPage) < parseInt(countPageDeb)){ 
3093                                    var actualPage = parseInt(actualPage) + 1; 
3094                                }else{ 
3095                                    return false; 
3096
3097 
3098                                if (parseInt(actualPage) <= 1) { 
3099                                    $('.av-pagination-mobile a[data-target="detailPointsDebitadedMobile"][data-action="previous"]').hide(); 
3100                                } else { 
3101                                    $('.av-pagination-mobile a[data-target="detailPointsDebitadedMobile"][data-action="previous"]').show(); 
3102
3103 
3104                                if (parseInt(actualPage) >= parseInt(countPageDeb)) { 
3105                                    $('.av-pagination-mobile a[data-target="detailPointsDebitadedMobile"][data-action="next"]').hide(); 
3106                                } else { 
3107                                    $('.av-pagination-mobile a[data-target="detailPointsDebitadedMobile"][data-action="next"]').show(); 
3108
3109 
3110 
3111                                $('#paginationDebitadedDetail li').removeClass('pg-active'); 
3112                                for (i = 1; i <= countPageDeb; i++) { 
3113                                    $("#debitadedPageDetailMobile_"+i).hide(); 
3114
3115 
3116 
3117                                $('#paginationDebitadedDetail li a[data-action="'+ actualPage +'"]').parent().addClass('pg-active'); 
3118                                $("#debitadedPageDetailMobile_"+actualPage).show(); 
3119                            }); 
3120                            $("#linkResgatarPontos").show(); 
3121                            $("#linkPontosAcumulados").show(); 
3122                            $("#linkPontosDebitados").show(); 
3123
3124                        else{ 
3125                            $("#linkResgatarPontos").hide(); 
3126                            $("#linkPontosAcumulados").hide(); 
3127                            $("#linkPontosDebitados").hide(); 
3128
3129 
3130
3131                    else{ 
3132                        $("#meusPontosContent").hide(); 
3133                        $(".meus-pontos-vazio").removeClass('hidden'); 
3134                        clearInterval(time); 
3135
3136 
3137                    $("#solicitarPontos").click(function(){ 
3138                        df.loader.open();    
3139                        setTimeout(function(){           
3140                            primeiroNome = $("#primeiro-nome").val(); 
3141                            ultimoNome = $("#ultimo-nome").val(); 
3142                            companhiaArea = $("#nome-companhia-aerea").val(); 
3143                            numeroVoo = $("#numero-voo").val(); 
3144                            dataVoo = $("#datavoo").val(); 
3145                            origem = $("#origemMeusPontos").val(); 
3146                            destino = $("#destinoMeusPontos").val(); 
3147                            sobrenomeBilhete = $("#sobrenome-bilhete").val(); 
3148                            nomeBilhete =  $("#sobrenome-bilhete").val() + "/" +$("#nome-bilhete").val(); 
3149                            numeroBilhete = $("#numero-bilhete").val(); 
3150                            localizador = $("#localizador").val(); 
3151 
3152                            submeter = true; 
3153                             $("#nome-companhia-aerea").closest('.row').find(".form-validator-stack").remove(); 
3154                             $("#nome-companhia-aerea").removeClass("error-field").closest('.form-group').removeClass('has-error'); 
3155                             $("#numero-voo").closest('.row').find(".form-validator-stack").remove(); 
3156                             $("#numero-voo").removeClass("error-field").closest('.form-group').removeClass('has-error'); 
3157                             $("#datavoo").closest('.row').find(".form-validator-stack").remove(); 
3158                             $("#datavoo").removeClass("error-field").closest('.form-group').removeClass('has-error'); 
3159                             $("#sobrenome-bilhete").closest('.row').find(".form-validator-stack").remove(); 
3160                             $("#sobrenome-bilhete").removeClass("error-field").closest('.form-group').removeClass('has-error'); 
3161                             $("#nome-bilhete").closest('.row').find(".form-validator-stack").remove(); 
3162                             $("#nome-bilhete").removeClass("error-field").closest('.form-group').removeClass('has-error'); 
3163                             $("#numero-bilhete").closest('.row').find(".form-validator-stack").remove(); 
3164                             $("#numero-bilhete").removeClass("error-field").closest('.form-group').removeClass('has-error'); 
3165                             $("#origemMeusPontos").closest('.row').find(".form-validator-stack").remove(); 
3166                             $("#origemMeusPontos").removeClass("error-field").closest('.form-group').removeClass('has-error'); 
3167                             $("#destinoMeusPontos").closest('.row').find(".form-validator-stack").remove(); 
3168                             $("#destinoMeusPontos").removeClass("error-field").closest('.form-group').removeClass('has-error'); 
3169                             $("#localizador").closest('.row').find(".form-validator-stack").remove(); 
3170                             $("#localizador").removeClass("error-field").closest('.form-group').removeClass('has-error'); 
3171 
3172                            if(nullOrUndefined(companhiaArea)){ 
3173                                $("#nome-companhia-aerea").closest('.row').append("<div class='form-validator-stack help-block erro-email' id='emailHelper'><div rolenbilheteCheckin='alert' class='email'>${MsgCampoObrigatorio}</div></div>"); 
3174                                $("#nome-companhia-aerea").addClass("error-field").closest('.form-group').addClass('has-error'); 
3175                                submeter = false; 
3176
3177                            if(nullOrUndefined(numeroVoo)){ 
3178                                $("#numero-voo").closest('.row').append("<div class='form-validator-stack help-block erro-email' id='emailHelper'><div rolenbilheteCheckin='alert' class='email'>${MsgCampoObrigatorio}</div></div>"); 
3179                                $("#numero-voo").addClass("error-field").closest('.form-group').addClass('has-error'); 
3180                                submeter = false; 
3181
3182                            else{ 
3183                                var regex = new RegExp('^\\d+$');; 
3184                                if(!regex.test(numeroVoo)) { 
3185                                    $("#numero-voo").closest('.row').append("<div class='form-validator-stack help-block erro-email' id='emailHelper'><div rolenbilheteCheckin='alert' class='email'>${MsgCampoInvalido}</div></div>"); 
3186                                    $("#numero-voo").addClass("error-field").closest('.form-group').addClass('has-error'); 
3187                                    submeter = false; 
3188
3189
3190 
3191                            if(nullOrUndefined(dataVoo)){ 
3192                                $("#datavoo").closest('.row').append("<div class='form-validator-stack help-block erro-email' id='emailHelper'><div rolenbilheteCheckin='alert' class='email'>${MsgCampoObrigatorio}</div></div>"); 
3193                                $("#datavoo").addClass("error-field").closest('.form-group').addClass('has-error'); 
3194                                submeter = false; 
3195
3196                            if(nullOrUndefined(sobrenomeBilhete)){ 
3197                                $("#sobrenome-bilhete").closest('.row').append("<div class='form-validator-stack help-block erro-email' id='emailHelper'><div rolenbilheteCheckin='alert' class='email'>${MsgCampoObrigatorio}</div></div>"); 
3198                                $("#sobrenome-bilhete").addClass("error-field").closest('.form-group').addClass('has-error'); 
3199                                submeter = false; 
3200
3201                            if(nullOrUndefined(nomeBilhete)){ 
3202                                $("#nome-bilhete").closest('.row').append("<div class='form-validator-stack help-block erro-email' id='emailHelper'><div rolenbilheteCheckin='alert' class='email'>${MsgCampoObrigatorio}</div></div>"); 
3203                                $("#nome-bilhete").addClass("error-field").closest('.form-group').addClass('has-error'); 
3204                                submeter = false; 
3205
3206                            if(nullOrUndefined(numeroBilhete)){ 
3207                                $("#numero-bilhete").closest('.row').append("<div class='form-validator-stack help-block erro-email' id='emailHelper'><div rolenbilheteCheckin='alert' class='email'>${MsgCampoObrigatorio}</div></div>"); 
3208                                $("#numero-bilhete").addClass("error-field").closest('.form-group').addClass('has-error'); 
3209                                submeter = false; 
3210
3211 
3212                            if(nullOrUndefined(origem)){ 
3213                                $("#origemMeusPontos").closest('.row').append("<div class='form-validator-stack help-block erro-email' id='emailHelper'><div rolenbilheteCheckin='alert' class='email'>${MsgCampoObrigatorio}</div></div>"); 
3214                                $("#origemMeusPontos").addClass("error-field").closest('.form-group').addClass('has-error'); 
3215                                submeter = false; 
3216
3217                            if(nullOrUndefined(destino)){ 
3218                                $("#destinoMeusPontos").closest('.row').append("<div class='form-validator-stack help-block erro-email' id='emailHelper'><div rolenbilheteCheckin='alert' class='email'>${MsgCampoObrigatorio}</div></div>"); 
3219                                $("#destinoMeusPontos").addClass("error-field").closest('.form-group').addClass('has-error'); 
3220                                submeter = false; 
3221
3222 
3223                            if(nullOrUndefined(localizador)) 
3224                                localizador = ""; 
3225                            else{ 
3226                                nomeFilter = /^[a-z0-9A-Z]{1,6}$/; 
3227                                if(!nomeFilter.test(localizador)) { 
3228                                    $("#localizador").closest('.row').append("<div class='form-validator-stack help-block erro-email' id='emailHelper'><div rolenbilheteCheckin='alert' class='email'>${MsgCampoInvalido}</div></div>"); 
3229                                    $("#localizador").addClass("error-field").closest('.form-group').addClass('has-error'); 
3230                                    submeter = false; 
3231
3232
3233 
3234                            if(submeter){ 
3235                                dataVoo = dataVoo.split("/"); 
3236                                dataVoo = dataVoo[2]+"/"+dataVoo[1]+"/"+dataVoo[0]; 
3237                                compAr = ""; 
3238                                numVoo = ""; 
3239                                if(numeroVoo.length == 6){ 
3240                                    numeroVoo.split(""); 
3241                                    compAr = (numeroVoo[0]+numeroVoo[1]); 
3242                                    numVoo = (numeroVoo[2]+numeroVoo[3]+numeroVoo[4]+numeroVoo[5]); 
3243
3244                                else{ 
3245                                    try{ 
3246                                     
3247                                        compAr = companhiaArea.split("(")[1].split(")")[0]; 
3248                                    }catch(err){ 
3249                                        compAr = ""; 
3250                                        console.log("Companhia sem iata"); 
3251
3252                                    numVoo = numeroVoo; 
3253
3254                                /*destino = destino.split("-"); 
3255                                ld = destino.length; 
3256                                destino = destino[ld-1].trim(); 
3257 
3258                                origem = origem.split("-"); 
3259                                lo = origem.length; 
3260                                origem = origem[lo-1].trim();*/ 
3261                                dados = { 
3262                                 "company": compAr, 
3263                                 "destination":destino, 
3264                                 "flightDate":dataVoo, 
3265                                 "flightNumber":numVoo, 
3266                                 "name":primeiroNome, 
3267                                 "origin":origem, 
3268                                 "pnr":localizador, 
3269                                 "surname":ultimoNome, 
3270                                 "ticketNumber":numeroBilhete, 
3271                                 "ticketedName":nomeBilhete 
3272
3273                                 
3274                                try{ 
3275                                    retornoRetro = services.requestPoints(accessToken, dados); 
3276                                    if (retornoRetro.status === true) { 
3277                                        df.openModal('<h3 class="title">'+ retornoRetro.response.payload.processStatus +'</h3>', msgModalBody); 
3278                                    } else { 
3279                                        df.openModal('<h3 class="title">'+ response.data.returnMessage +'</h3>', msgModalBody); 
3280
3281                                }catch(err){ 
3282                                    console.log(err); 
3283                                }    
3284                     
3285                                df.loader.close(); 
3286                            }else{ 
3287                                df.loader.close(); 
3288
3289                        },200);  
3290 
3291                    }); 
3292                     
3293                    $("#buttonSeeAllPointsToExpiry").click(function(){ 
3294                        setTimeout(function(){ 
3295                            $("#av-container #modal .av-modal-content .av-modal-body .text").css("width","100%"); 
3296                        },200); 
3297                    }); 
3298                     
3299                    setTimeout(function(){ 
3300                        $(".modal-body").css("height","380px"); 
3301                        $('#field-name-1').change(function(){ 
3302                            $("#detailPointsAccumulatedMobile div[data-value-id]").hide(); 
3303                            $("#detailPointsAccumulatedMobile div[data-value-id='"+$(this).val()+"']").show(); 
3304                        }); 
3305                        $('#field-name-2').change(function(){ 
3306                            $("#detailPointsDebitadedMobile div[data-value-id]").hide(); 
3307                            $("#detailPointsDebitadedMobile div[data-value-id='"+$(this).val()+"']").show(); 
3308                        }); 
3309                         
3310                        if(Liferay.Browser.isMobile()){                          
3311                            $("#av-container #meusPontosContent #meus-pontos-imprimir-cartao .cartao.mobile").css("width", "100%").css("height","inherit"); 
3312                            $("#av-container #meusPontosContent #meus-pontos-imprimir-cartao .cartao.mobile img").css("width", "100%"); 
3313                            $("#av-container #meus-pontos-imprimir-cartao .cartao.mobile .cliente").css("padding-bottom", "23px");  
3314
3315                        else{ 
3316                            $("#av-container #meus-pontos-solicitar .formulario .form-group #localizador + .ico-duvida-red .content-hover").css("top","-85px").css("left","-95px"); 
3317
3318                         
3319                        loadAirports(accessToken); 
3320                         
3321                    },2000); 
3322                     
3323                    $("#meusPontosContent").show(); 
3324                     
3325                    clearInterval(time); 
3326                     
3327
3328                else{ 
3329                    $("#meusPontosContent").hide(); 
3330                    $(".meus-pontos-vazio").removeClass('hidden'); 
3331                    df.loader.close(); 
3332                    clearInterval(time); 
3333
3334 
3335
3336            else{ 
3337                $("#meusPontosContent").hide(); 
3338                $(".meus-pontos-vazio").removeClass('hidden'); 
3339                df.loader.close(); 
3340                clearInterval(time); 
3341
3342
3343        else{ 
3344            $("#meusPontosContent").hide(); 
3345            $(".meus-pontos-vazio").removeClass('hidden'); 
3346            df.loader.close(); 
3347            clearInterval(time); 
3348
3349
3350    else{ 
3351        $("#meusPontosContent").remove(); 
3352        home = window.location.protocol+"//"+window.location.host+"/login-avianca"; 
3353        window.open(home, '_self'); 
3354
3355 
3356    if (Liferay.ThemeDisplay.getLanguageId() == 'en_US') { 
3357        var placeDate = "MM/DD/YYYY"; 
3358    } else { 
3359        var placeDate = "DD/MM/YYYY"; 
3360
3361    $("#datavoo").attr('placeholder', placeDate); 
3362 
3363}); 
3364 
3365$("#meusDadosPage").click(function(){ 
3366    df.loader.open(); 
3367}); 
3368 
3369$("#linkProgamaAmigo").click(function(){ 
3370    window.open("${LinkAbaLatProgramaAmigo}", '_blank'); 
3371}); 
3372 
3373function loadAirports(accessToken){ 
3374    airports = services.getAirportsRequestPoints(accessToken, Liferay.ThemeDisplay.getLanguageId()); 
3375     
3376    if(airports.returnCode == "0"){ 
3377        for(i = 0; i < airports.payload.length; i++){ 
3378            $("#origemSolicitarPontos").append("<li><a href='javascript:;' class='fz-20 tac' data-value='"+airports.payload[i].value+"'>"+airports.payload[i].label+" - "+airports.payload[i].value+"</a></li>"); 
3379            $("#destinoSolicitarPontos").append("<li><a href='javascript:;' class='fz-20 tac' data-value='"+airports.payload[i].value+"'>"+airports.payload[i].label+" - "+airports.payload[i].value+"</a></li>"); 
3380
3381    }        
3382    df.loader.close(); 
3383
3384 
3385function friendlyPagesAccumulated(){ 
3386    var fpActual = parseInt($('#paginationAccumulated li.pg-active').find('a').attr('data-action')); 
3387 
3388    $('#paginationAccumulated .page-num').hide(); 
3389    $('#paginationAccumulated .dots').remove(); 
3390 
3391    $('#paginationAccumulated .page-num').eq(0).show(); 
3392    $('#paginationAccumulated li a[data-action="'+ countPageAcu +'"]').parent().show(); 
3393 
3394    if(fpActual > 3 && fpActual < (parseInt(countPageAcu) - 2)){ 
3395        var fpActual1 = fpActual - 1, 
3396            fpActual2 = fpActual + 1; 
3397 
3398        $('<li class="dots"> <a href="javascript:;" data-action="not"> ... </a> </li>').insertBefore($('#paginationAccumulated li a[data-action="'+ (fpActual - 1) +'"]').parent()); 
3399        $('<li class="dots"> <a href="javascript:;" data-action="not"> ... </a> </li>').insertBefore($('#paginationAccumulated li a[data-action="'+ countPageAcu +'"]').parent()); 
3400        $('#paginationAccumulated .page-num').slice(fpActual1, fpActual2).show(); 
3401    }else if(fpActual > (parseInt(countPageAcu) - 4)){ 
3402        var fpActual1 = fpActual - 2; 
3403 
3404        if(fpActual >= 3){ 
3405            $('<li class="dots"> <a href="javascript:;" data-action="not"> ... </a> </li>').insertBefore($('#paginationAccumulated li a[data-action="'+ (fpActual - 2) +'"]').parent()); 
3406
3407 
3408        $('#paginationAccumulated .page-num').slice(fpActual1, countPageAcu).show(); 
3409    }else if(fpActual <= 3){ 
3410        $('#paginationAccumulated .page-num').slice(0, (fpActual) + 1).show(); 
3411        $('<li class="dots"> <a href="javascript:;" data-action="not"> ... </a> </li>').insertBefore($('#paginationAccumulated li a[data-action="'+ countPageAcu +'"]').parent()); 
3412
3413
3414 
3415function friendlyPagesAccumulatedDetail(){ 
3416    var fpActual = parseInt($('#paginationAccumulatedDetail li.pg-active').find('a').attr('data-action')); 
3417 
3418    $('#paginationAccumulatedDetail .page-num').hide(); 
3419    $('#paginationAccumulatedDetail .dots').remove(); 
3420 
3421    $('#paginationAccumulatedDetail .page-num').eq(0).show(); 
3422    $('#paginationAccumulatedDetail li a[data-action="'+ countPageAcu +'"]').parent().show(); 
3423 
3424    if(fpActual > 3 && fpActual < (parseInt(countPageAcu) - 2)){ 
3425        var fpActual1 = fpActual - 1, 
3426            fpActual2 = fpActual + 1; 
3427 
3428        $('<li class="dots"> <a href="javascript:;" data-action="not"> ... </a> </li>').insertBefore($('#paginationAccumulatedDetail li a[data-action="'+ (fpActual - 1) +'"]').parent()); 
3429        $('<li class="dots"> <a href="javascript:;" data-action="not"> ... </a> </li>').insertBefore($('#paginationAccumulatedDetail li a[data-action="'+ countPageAcu +'"]').parent()); 
3430        $('#paginationAccumulatedDetail .page-num').slice(fpActual1, fpActual2).show(); 
3431    }else if(fpActual > (parseInt(countPageAcu) - 4)){ 
3432        var fpActual1 = fpActual - 2; 
3433 
3434        if(fpActual >= 3){ 
3435            $('<li class="dots"> <a href="javascript:;" data-action="not"> ... </a> </li>').insertBefore($('#paginationAccumulatedDetail li a[data-action="'+ (fpActual - 2) +'"]').parent()); 
3436
3437 
3438        $('#paginationAccumulatedDetail .page-num').slice(fpActual1, countPageAcu).show(); 
3439    }else if(fpActual <= 3){ 
3440        $('#paginationAccumulatedDetail .page-num').slice(0, (fpActual) + 1).show(); 
3441        $('<li class="dots"> <a href="javascript:;" data-action="not"> ... </a> </li>').insertBefore($('#paginationAccumulatedDetail li a[data-action="'+ countPageAcu +'"]').parent()); 
3442
3443
3444 
3445function friendlyPagesDebitated(){ 
3446    var fpActual = parseInt($('#paginationDebitaded li.pg-active').find('a').attr('data-action')); 
3447 
3448    $('#paginationDebitaded .page-num').hide(); 
3449    $('#paginationDebitaded .dots').remove(); 
3450 
3451    $('#paginationDebitaded .page-num').eq(0).show(); 
3452    $('#paginationDebitaded li a[data-action="'+ countPageDeb +'"]').parent().show(); 
3453 
3454    if(fpActual > 4 && fpActual < (parseInt(countPageDeb) - 3)){ 
3455        var fpActual1 = fpActual - 2, 
3456            fpActual2 = fpActual + 1; 
3457 
3458        $('<li class="dots"> <a href="javascript:;" data-action="not"> ... </a> </li>').insertBefore($('#paginationDebitaded li a[data-action="'+ (fpActual - 1) +'"]').parent()); 
3459        $('<li class="dots"> <a href="javascript:;" data-action="not"> ... </a> </li>').insertBefore($('#paginationDebitaded li a[data-action="'+ countPageDeb +'"]').parent()); 
3460        $('#paginationDebitaded .page-num').slice(fpActual1, fpActual2).show(); 
3461    }else if(fpActual > (parseInt(countPageDeb) - 4)){ 
3462        var fpActual1 = fpActual - 2; 
3463 
3464        if(fpActual >= 4){ 
3465            $('<li class="dots"> <a href="javascript:;" data-action="not"> ... </a> </li>').insertBefore($('#paginationDebitaded li a[data-action="'+ (fpActual - 2) +'"]').parent()); 
3466
3467 
3468        $('#paginationDebitaded .page-num').slice(fpActual1, countPageDeb).show(); 
3469    }else if(fpActual <= 4){ 
3470        $('#paginationDebitaded .page-num').slice(0, (fpActual) + 1).show(); 
3471        $('<li class="dots"> <a href="javascript:;" data-action="not"> ... </a> </li>').insertBefore($('#paginationDebitaded li a[data-action="'+ countPageDeb +'"]').parent()); 
3472
3473
3474 
3475function friendlyPagesDebitatedDetail(){ 
3476    var fpActual = parseInt($('#paginationDebitadedDetail li.pg-active').find('a').attr('data-action')); 
3477 
3478    $('#paginationDebitadedDetail .page-num').hide(); 
3479    $('#paginationDebitadedDetail .dots').remove(); 
3480 
3481    $('#paginationDebitadedDetail .page-num').eq(0).show(); 
3482    $('#paginationDebitadedDetail li a[data-action="'+ countPageDeb +'"]').parent().show(); 
3483 
3484    if(fpActual > 4 && fpActual < (parseInt(countPageDeb) - 3)){ 
3485        var fpActual1 = fpActual - 2, 
3486            fpActual2 = fpActual + 1; 
3487 
3488        $('<li class="dots"> <a href="javascript:;" data-action="not"> ... </a> </li>').insertBefore($('#paginationDebitadedDetail li a[data-action="'+ (fpActual - 1) +'"]').parent()); 
3489        $('<li class="dots"> <a href="javascript:;" data-action="not"> ... </a> </li>').insertBefore($('#paginationDebitadedDetail li a[data-action="'+ countPageDeb +'"]').parent()); 
3490        $('#paginationDebitadedDetail .page-num').slice(fpActual1, fpActual2).show(); 
3491    }else if(fpActual > (parseInt(countPageDeb) - 4)){ 
3492        var fpActual1 = fpActual - 2; 
3493 
3494        if(fpActual >= 4){ 
3495            $('<li class="dots"> <a href="javascript:;" data-action="not"> ... </a> </li>').insertBefore($('#paginationDebitadedDetail li a[data-action="'+ (fpActual - 2) +'"]').parent()); 
3496
3497 
3498        $('#paginationDebitadedDetail .page-num').slice(fpActual1, countPageDeb).show(); 
3499    }else if(fpActual <= 4){ 
3500        $('#paginationDebitadedDetail .page-num').slice(0, (fpActual) + 1).show(); 
3501        $('<li class="dots"> <a href="javascript:;" data-action="not"> ... </a> </li>').insertBefore($('#paginationDebitadedDetail li a[data-action="'+ countPageDeb +'"]').parent()); 
3502
3503
3504function printCard() { 
3505    nomeAmigo = $("#nomeAmigo").val(); 
3506    numeCartao = $("#numeCartao").val(); 
3507    valCartao = $("#valCartao").val(); 
3508    compaAerea = $("#compaAerea").val(); 
3509    pathImg = $(".imgCartao").attr("src"); 
3510    urlImpressao = window.location.protocol+"//"+window.location.host+"/pt/meus-pontos-imprimir-cartao?nomeAmigo="+nomeAmigo+ 
3511    "&numeCartao="+numeCartao+"&valCartao="+valCartao+"&compaAerea="+compaAerea+"&pathImg="+pathImg; 
3512 
3513    window.open(urlImpressao, '_blank'); 
3514}; 
3515 
3516function toMoeda(num){ 
3517    x = 0; 
3518    if(num < 0){ 
3519        num = Math.abs(num); 
3520        x = 1; 
3521
3522 
3523    if(isNaN(num)) 
3524        num = "0"; 
3525 
3526    num = Math.floor((num*100+0.5)/100).toString(); 
3527    for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++) 
3528        num = num.substring(0,num.length-(4*i+3))+'.' 
3529            +num.substring(num.length-(4*i+3)); 
3530 
3531    ret = num; 
3532 
3533    if (x == 1) 
3534        ret = ' - ' + ret; 
3535 
3536    return ret; 
3537
3538 
3539function nullOrUndefined(campo){ 
3540    if(campo == undefined || campo == null || campo == "") 
3541        return true; 
3542    else 
3543        return false; 
3544
3545 
3546var area_logada = { 
3547    init: function(Y){ 
3548        console.log('init'); 
3549        this.bind_links(Y); 
3550        this.build_togglers(Y); 
3551        /*this.init_validators(Y);*/ 
3552        /*this.init_resize(Y);*/ 
3553       /* this.init_programa(Y);*/ 
3554        this.init_tbl(Y); 
3555        this.modal(Y); 
3556        Y.all('.area-logada-content').setStyle('visibility', 'visible'); 
3557        this.datepicker2(true, '#rotaDateVoo1 .date', '#rotaDateVoo1'); 
3558    }, 
3559    build_togglers: function(Y){ 
3560        Y.all('#area-logada .area-logada-content').each(function(){ 
3561            toggler('#'+this.get('id')); 
3562        }); 
3563        function toggler(target){ 
3564            new Y.TogglerDelegate( 
3565
3566                animated: true, 
3567                closeAllOnExpand: true, 
3568                container: target, 
3569                content: '.content', 
3570                expanded: false, 
3571                header: '.header', 
3572                transition: { 
3573                  duration: 0.2, 
3574                  easing: 'cubic-bezier(0, 0.1, 0, 1)' 
3575
3576
3577            ); 
3578
3579    }, 
3580    bind_links: function(Y){ 
3581        this.bind_nav(Y); 
3582        this.bind_headers(Y); 
3583    }, 
3584    bind_nav: function(Y){ 
3585        var links = Y.all('#area-logada nav a'), current; 
3586 
3587        Y.one('#area-logada nav').delegate('click', clickHandler, 'a'); 
3588 
3589        function clickHandler(e){ 
3590            var id = this.attr('href').match(/#.+/)[0]; 
3591            id = id.substr(1, id.length); 
3592            console.log('show content: ', id); 
3593            area_logada.show_content(Y, id); 
3594            e.preventDefault(); 
3595            links.removeClass('selected'); 
3596            current = this; 
3597            current.addClass('selected'); 
3598            return false; 
3599
3600    }, 
3601    bind_headers: function(Y){ 
3602        var links = {}, current; 
3603 
3604        Y.all('#area-logada nav a').each(function(){ 
3605            var id = this.get('href').match(/#+.*/)[0]; 
3606            links[id.substr(1,id.length)] = this; 
3607        }); 
3608 
3609        Y.one('#area-logada').delegate('click', clickHandler, '.toggler-header'); 
3610        Y.one('#area-logada .area-logada-content:first-child .toggler-header').simulate('click'); 
3611        Y.one('#area-logada .area-logada-content:first-child .toggler-header').removeClass('toggler-header-collapsed').addClass('toggler-header-expanded'); 
3612        Y.one('#area-logada .area-logada-content:first-child .toggler-content').removeClass('toggler-content-collapsed').addClass('toggler-content-expanded'); 
3613 
3614 
3615        function clickHandler(e){ 
3616            var header = this.get('parentNode'), granParent = header.get('parentNode'), 
3617                index = [].indexOf.call(granParent._node.children, header._node), 
3618                target = header.get('id').replace('content-', '').replace('-pontos', ''); 
3619 
3620            Y.one('#area-logada nav a[href="#'+target+'"]').simulate('click'); 
3621
3622    }, 
3623    show_content: function(Y, id){ 
3624        var id = "#content-"+id+"-pontos"; 
3625        Y.all('#area-logada .area-logada-content').removeClass('show'); 
3626        console.log('show content') 
3627        Y.one(id).addClass('show'); 
3628    }, 
3629    init_validators: function(Y){ 
3630        var scope = {} 
3631        scope = { 
3632            area_logada: function(){ 
3633                var fieldStrings, rules; 
3634                fieldStrings = { 
3635                    nome: { 
3636                        required: '${MsgCampoObrigatorio}' 
3637                    }, 
3638                    cpf: { 
3639                        required: '${MsgCampoObrigatorio}' 
3640                    }, 
3641                    email: { 
3642                        required: '${MsgCampoObrigatorio}', 
3643                        email: 'E-mail inválido' 
3644                    }, 
3645                    telefone: { 
3646                        required: '${MsgCampoObrigatorio}' 
3647
3648                }; 
3649                rules = { 
3650                    nome: { 
3651                        required: true 
3652                    }, 
3653                    cpf: { 
3654                        required: true 
3655                    }, 
3656                    email: { 
3657                        email: true, 
3658                        required: true 
3659                    }, 
3660                    telefone: { 
3661                        required: true 
3662
3663                }; 
3664                this.build('#form-faleconosco', fieldStrings, rules); 
3665            }, 
3666            consulta: function(){ 
3667                var fieldStrings, rules; 
3668                fieldStrings = { 
3669                    protocolo: { 
3670                        required: '${MsgCampoObrigatorio}' 
3671                    }, 
3672                    cpf: { 
3673                        required: '${MsgCampoObrigatorio}' 
3674                    }, 
3675                    captcha: { 
3676                        required: '${MsgCampoObrigatorio}' 
3677
3678                }; 
3679                rules = { 
3680                    protocolo: { 
3681                        required: true 
3682                    }, 
3683                    cpf: { 
3684                        required: true 
3685                    }, 
3686                    captcha: { 
3687                        required: true 
3688
3689
3690                this.build('#form-consulta', fieldStrings, rules); 
3691            }, 
3692            build: function(id, fieldStrings, rules){ 
3693                return new Y.FormValidator( 
3694
3695                    boundingBox: id, 
3696                    fieldStrings: fieldStrings, 
3697                    rules: rules 
3698
3699                ); 
3700
3701
3702        scope.area_logada(); 
3703        scope.consulta(); 
3704        return scope; 
3705    }, 
3706    init_resize: function(Y){ 
3707        Y.on('resize', function(){ 
3708            alignMobileList(); 
3709        }); 
3710 
3711        alignMobileList(); 
3712 
3713        function alignMobileList(){ 
3714            var winW = Y.one('window').width(); 
3715            if(winW < 768){ 
3716                [].slice.call(document.querySelectorAll('.toggler-header')).map(function(h2){ 
3717                    if( h2.querySelector('span') ) { 
3718                        var span = h2.querySelector('span'), h2H = h2.clientHeight, spanH = span.clientHeight, 
3719                        top = ~~(h2H - spanH)*.5; 
3720                        span.style.top = (top / 2)+'px'; 
3721
3722                }); 
3723
3724
3725    }, 
3726    init_programa: function(Y){ 
3727        Y.one('#check-programa').on("click", function() { 
3728          if (Y.one('#programa-formulario').hasClass('hidden')) { 
3729            Y.one('#programa-formulario').removeClass('hidden') 
3730            Y.one('.botao-confirmar').addClass('active') 
3731
3732          else{ 
3733            Y.one('#programa-formulario').addClass('hidden'); 
3734            Y.one('.botao-confirmar').removeClass('active') 
3735
3736        }); 
3737 
3738        Y.one('#btn-programa').on("click", function() { 
3739            Y.one('.programa-amigo .instrucoes-programa').hide(); 
3740            Y.one('.programa-amigo .foto').hide(); 
3741            Y.one('.programa-amigo .sucesso-programa').removeClass('hidden'); 
3742            $('html,body').animate({ 
3743                scrollTop: $('.programa-amigo').offset().top - 20 
3744            },'slow'); 
3745        }); 
3746    }, 
3747    init_tbl: function(Y){ 
3748        /*Abrir*/ 
3749        Y.on("click", function() { 
3750            this.ancestor('.content-info-menu').one('.resumida').addClass('hidden'); 
3751            this.ancestor('.content-info-menu').one('.detalhada').removeClass('hidden'); 
3752            this.ancestor('.content-info-menu').removeClass('col-sm-8').setStyle('max-width', '100%'); 
3753            Y.one('#av-container #content-informativo-pontos .menu-informativo').addClass('hidden'); 
3754        }, '.meus-pontos-acumulados .tbl-detalhada'); 
3755 
3756        /*Fechar*/ 
3757        Y.on("click", function() { 
3758            this.ancestor('.content-info-menu').one('.resumida').removeClass('hidden'); 
3759            this.ancestor('.content-info-menu').one('.detalhada').addClass('hidden'); 
3760            this.ancestor('.content-info-menu').addClass('col-sm-8').setStyle('max-width', '640px'); 
3761             Y.one('#av-container #content-informativo-pontos .menu-informativo').removeClass('hidden'); 
3762        }, '.meus-pontos-acumulados .av-close'); 
3763    }, 
3764    modal: function(Y) { 
3765        var content = Y.one('#meus-pontos .tabela-explicacao .tbl-todos').getHTML(); 
3766 
3767        /*var modal = new Y.Modal({ 
3768            bodyContent: content, 
3769            centered: true, 
3770            modal: true, 
3771            render: '#modal', 
3772            visible: false, 
3773            zIndex: 1100, 
3774            width: 640, 
3775            height: 380, 
3776            resizable: false 
3777        }).render();*/ 
3778 
3779        Y.one('#meus-pontos .more-offer').on('click',function() { 
3780            /*modal.show();*/ 
3781            df.openModal('', content, 1); 
3782        }); 
3783    }, 
3784    datepicker2: function(single, obj, container) { 
3785        moment.locale(Liferay.ThemeDisplay.getLanguageId());  
3786 
3787        $(obj).daterangepicker({ 
3788            locale: { 
3789                format: dateFormatLocale 
3790            }, 
3791            "autoApply": true, 
3792            startDate: moment(), 
3793            maxDate: moment(), 
3794            singleDatePicker: single, 
3795            "parentEl": container 
3796        }); 
3797 
3798        $(obj).on('apply.daterangepicker', function(ev, picker) { 
3799            var closeDateInput = $(this).closest('form'); 
3800 
3801            closeDateInput.find('#rotaDateVoo1 #datavoo').val(picker.startDate.format(dateFormatLocale)); 
3802        }); 
3803 
3804        $('#rotaDateVoo1 #datavoo').on('blur', function(){ 
3805            var dateVoo = $(this).val(); 
3806 
3807            if(functions.checkValNotNullEmptyUndefined(dateVoo)){ 
3808                $(obj).data('daterangepicker').setStartDate(dateVoo); 
3809                $(obj).data('daterangepicker').setEndDate(dateVoo); 
3810
3811        }); 
3812 
3813        $(obj).on('show.daterangepicker', function(ev, picker) { 
3814            var closeDateInput = $(this).closest('form'); 
3815            var labelData = closeDateInput.find('label[for="datavoo"]').text(); 
3816 
3817            if(!Liferay.Browser.isMobile()){ 
3818                $('html, body').animate({scrollTop: closeDateInput.offset().top}); 
3819
3820             
3821            closeDateInput.find('.daterangepicker .header-name p').text(labelData); 
3822        }); 
3823 
3824
3825}; 
3826 
3827(function(){ 
3828    YUI().use('aui-modal', 'aui-toggler', 'aui-node', 'node-event-simulate', 'aui-form-validator', function(Y){ 
3829        if( Y.one('#area-logada') ) { 
3830            area_logada.init(Y); 
3831
3832    }); 
3833})(); 
3834 
3835var bgg = { 
3836    init: function(Y) { 
3837        bgg.toggle_juridico(Y); 
3838        bgg.toggle_menu(Y); 
3839    }, 
3840    toggle_juridico: function(Y) { 
3841        /*console.log( 'start', Y.one(window).width() );*/ 
3842        Y.on('click', function(e){ 
3843            if( window.innerWidth >= 760 ) { 
3844                this.ancestor('.more-info').one('.open-more-info').toggleView(); 
3845                this.ancestor('.more-info').one('.glyphicon-chevron-up').toggleView(); 
3846                this.ancestor('.more-info').one('.glyphicon-chevron-down').toggleView(); 
3847                e.preventDefault(); 
3848
3849        }, '#content-informativo-pontos .more-info a'); 
3850    }, 
3851    toggle_menu: function(Y) { 
3852        /*console.log( 'start', Y.one(window).width() );*/ 
3853        Y.on('click', function(e){ 
3854            if( window.innerWidth >= 760 ) { 
3855                Y.all('#content-informativo-pontos .menu-informativo li').removeClass('selected'); 
3856                this.ancestor('li').addClass('selected'); 
3857                Y.all('#content-informativo-pontos .content-info-menu').hide(); 
3858                Y.one('#content-informativo-pontos .content-info-menu[data-change="'+this.getAttribute('data-change')+'"]').show(); 
3859                e.preventDefault(); 
3860
3861            else 
3862
3863                Y.all('#av-container #area-logada .area-logada-content h2').hide(); 
3864                Y.all('#av-container #content-informativo-pontos .menu-informativo').hide(); 
3865                Y.all('#content-informativo-pontos .content-info-menu').hide(); 
3866                Y.one('#content-informativo-pontos .content-info-menu[data-change="'+this.getAttribute('data-change')+'"]').show(); 
3867                Y.all('#area-logada .area-logada-content .av-back').show(); 
3868                e.preventDefault(); 
3869
3870 
3871            Y.on('click', function(){ 
3872                Y.all('#av-container #area-logada .area-logada-content h2').show(); 
3873                Y.all('#av-container #content-informativo-pontos .menu-informativo').show(); 
3874                Y.all('#content-informativo-pontos .content-info-menu').hide(); 
3875                /*Y.one('#content-informativo-pontos .content-info-menu[data-change="'+this.getAttribute('data-change')+'"]').hide();*/ 
3876                Y.all('#area-logada .area-logada-content .av-back').hide(); 
3877            }, '#area-logada .area-logada-content .av-back'); 
3878        }, '#content-informativo-pontos .menu-informativo li a'); 
3879
3880}; 
3881 
3882(function(){ 
3883    YUI().use('node', 'aui-io-request', 'aui-selector', function(Y){ 
3884        if( Y.one('#content-informativo-pontos') ) 
3885            bgg.init(Y); 
3886    }); 
3887})(); 
3888 
3889setTimeout(function(){ 
3890    var valHash = location.hash; 
3891    var valHashLength = valHash.length; 
3892 
3893    valHash = valHash.substring(1, valHashLength); 
3894 
3895    if($(".hashCheck").hasClass(valHash)) { 
3896 
3897        $(".hashCheck").removeClass('selected'); 
3898        $(".area-logada-content").removeClass('show'); 
3899        $(".lnk-pontos").attr('href', location.hash).addClass('selected') 
3900        $("#content-"+valHash).addClass('show'); 
3901
3902}, 1000); 
3903 
3904    $("#pontosPassagem").prop( "checked",true ); 
3905 
3906 
3907 
3908</script>