Um erro ocorreu enquanto processava o modelo.
The following has evaluated to null or missing:
==> LinkBreadcrumbPagInicial  [in template "20116#20152#101044" at line 840, column 52]

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