Notícias
Todas as notícias
Todas as notícias
Um erro ocorreu enquanto processava o modelo.
The following has evaluated to null or missing:
==> DDMFormFieldValuesMap[exclusiveArticle] [in template "20096#20121#149837" at line 26, column 40]
----
Tip: It's the final [] step that caused this error, not those before it.
----
Tip: If the failing expression is known to 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: #assign exclusiveArticleValue = DDMFo... [in template "20096#20121#149837" at line 26, column 9]
----
1<#assign _assetEntryLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") />
2<#assign _assetVocabularyService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService") />
3<#assign roleLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.RoleLocalService")/>
4<#assign resourcePermissionLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.ResourcePermissionLocalService") />
5<#assign _journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
6
7<#assign projectResultList=[] />
8<#assign vocabularies=[] />
9<#assign vocabulariesMap=[] />
10<#assign count=0 />
11<#if entries?has_content>
12 <#list entries as doc>
13 <#assign projectResult = ""/>
14
15 <#assign curEntry=_assetEntryLocalService.fetchEntry("com.liferay.journal.model.JournalArticle", doc.getClassPK())>
16
17 <#assign assetRenderer=curEntry.getAssetRenderer() />
18 <#assign linkToWebContentDisplayPage="/w/" + assetRenderer.getUrlTitle() />
19 <#assign DDMFormFieldValuesMap=assetRenderer.getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValuesMap() />
20 <#assign DDMFormFieldsReferencesMap=assetRenderer.article.DDMStructure.DDMForm.getDDMFormFieldsReferencesMap(true) />
21 <#assign categories=curEntry.getCategories() />
22
23 <#assign isExclusiveContent = true />
24 <#assign isDisplay = true>
25 <#assign exclusiveArticle =DDMFormFieldsReferencesMap['exclusiveContent'].name />
26 <#assign exclusiveArticleValue=DDMFormFieldValuesMap[exclusiveArticle][0].getValue().getString(locale)!"" />
27 <#if exclusiveArticleValue == "Opção63340520">
28 <#assign isExclusiveContent = false />
29 </#if>
30
31 <#if isExclusiveContent && !themeDisplay.isSignedIn()>
32 <#assign isDisplay = false>
33 </#if>
34
35 <!-- pegando as categorias e filtrando pela vocabularyName Segmentos e status-->
36 <#assign segmentsCategories=[] />
37 <#list categories as cat>
38 <#assign vocabularyId=cat.vocabularyId />
39 <#assign assetVocabulary=_assetVocabularyService.getVocabulary(vocabularyId) />
40 <#if assetVocabulary.name?contains("segment")>
41 <#assign segmentsCategories=segmentsCategories + [cat]>
42 </#if>
43 </#list>
44 <!-- Pegando data da noticia -->
45 <#assign yearDeliveryField=DDMFormFieldsReferencesMap['date'].name />
46 <#assign yearDeliveryOptionSelected=DDMFormFieldValuesMap[yearDeliveryField]
47 [0].getValue().getString(locale)?replace("-", "/" ) />
48 <#if yearDeliveryOptionSelected?has_content>
49<#if locale=="pt_BR">
50 <#assign yearDeliveryOptionSelected=yearDeliveryOptionSelected?date("yyyy/MM/dd")?string("dd/MM/yyyy")>
51 <#else>
52 <#assign yearDeliveryOptionSelected=yearDeliveryOptionSelected?date("yyyy/MM/dd")?string("MM/dd/yyyy")>
53 </#if>
54</#if>
55 <!-- Pegando Resumo do card -->
56 <#assign cardSummaryField=DDMFormFieldsReferencesMap['description'].name />
57 <#assign cardSummary=DDMFormFieldValuesMap[cardSummaryField][0].getValue().getString(locale) />
58
59 <!-- pegando imagem do card -->
60 <#assign urlImageValue="" />
61 <#assign altImageValue="" />
62 <#assign featuredImageField=DDMFormFieldsReferencesMap['featuredImage'].name />
63 <#assign featuredImage=DDMFormFieldValuesMap[featuredImageField]
64 [0].getValue().getString(locale) />
65 <!-- Peganddo path da imagem -->
66 <#if featuredImage !="{}">
67 <#assign cleanedJson = featuredImage?replace("\\u","\\\\u")>
68 <#assign featuredImageEvaluated = cleanedJson?eval>
69 <#assign altImageValue = featuredImageEvaluated.alt!"">
70 <#assign urlImageValue = featuredImageEvaluated.url!"">
71 </#if>
72 <#assign segmentsProductCategories="" />
73 <#list segmentsCategories as segCat>
74 <#if (segmentsCategories?size)==1>
75 <#assign segmentsProductCategories=segmentsCategories[0].getTitle(locale) />
76 <#elseif (segmentsCategories?size)==2>
77 <#list segmentsCategories as segCat>
78 <#if segCat?is_last>
79 <#if locale="pt_BR">
80 <#assign segmentsProductCategories="${segmentsProductCategories} e ${segCat.getTitle(locale)}" />
81 <#else>
82 <#assign segmentsProductCategories="${segmentsProductCategories} and ${segCat.getTitle(locale)}" />
83 </#if>
84 <#else>
85 <#assign segmentsProductCategories="${segCat.getTitle(locale)}" />
86 </#if>
87 </#list>
88 <#elseif ((segmentsCategories?size)>= 3) >
89 <#list segmentsCategories as segCat>
90 <#if segCat?is_first>
91 <#assign segmentsProductCategories="${segCat.getTitle(locale)}" />
92 <#elseif segCat_index==1>
93 <#assign segmentsProductCategories="${segmentsProductCategories}, ${segCat.getTitle(locale)}" />
94 <#elseif segCat_index==2>
95 <#assign segmentsProductCategories="${segmentsProductCategories} e ${segCat.getTitle(locale)}" />
96 <#break>
97 </#if>
98 </#list>
99 </#if>
100 </#list>
101 <#assign projectResult={
102 "title" :"${curEntry.getTitle(locale)}",
103 "cardSummary" :"${cardSummary}",
104 "date" :"${yearDeliveryOptionSelected}",
105 "segmentsProductCategories" :"${segmentsProductCategories}",
106 "urlImage" :"${urlImageValue}",
107 "altImage" :"${altImageValue}",
108 "linkToWebContentDisplayPage" :"${linkToWebContentDisplayPage}",
109 "isExclusiveContent": isExclusiveContent,
110 "isDisplay": isDisplay
111 } />
112 <#assign projectResultList +=[projectResult] />
113 </#list>
114</#if>
115<section class="b3-noticias">
116 <ul class="b3-noticias--list list-unstyled m-0 swiper-wrapper">
117 <#list projectResultList as curEntry>
118 <article class="b3-noticias--card b3-ga-card">
119 <div class="b3-noticias--image">
120 <img src="${curEntry.urlImage}" alt="${curEntry.altImage}">
121 </div>
122 <div class="b3-noticias--content">
123 <div class="b3-noticias--lead">
124 <p class="b3-noticias--tags text-sm">
125 ${curEntry.segmentsProductCategories}
126 </p>
127 <p class="b3-noticias--data text__body--small">
128 <svg width="18" height="18" viewBox="0 0 18 18" fill="none"
129 xmlns="http://www.w3.org/2000/svg">
130 <mask id="mask0_13857_914294321${count}" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="2"
131 y="0" width="14" height="16">
132 <path fill-rule="evenodd" clip-rule="evenodd"
133 d="M15.6001 3.6C15.6001 2.85 15.0001 2.25 14.2501 2.25H13.5001H13.3501V2.1V0.75H12.1501V2.1V2.25H12.0001H6.00015H5.85015V2.1V0.75H4.65015V2.1V2.25H4.50015H3.75015C3.00015 2.25 2.40015 2.85 2.40015 3.6V14.1C2.40015 14.85 3.00015 15.45 3.75015 15.45H14.2501C15.0001 15.45 15.6001 14.85 15.6001 14.1V3.6ZM14.4001 6.6V14.1V14.25H14.2501H3.75015H3.60015V14.1V6.6V6.45H3.75015H14.2501H14.4001V6.6ZM14.4001 3.6V5.1V5.25H14.2501H3.75015H3.60015V5.1V3.6V3.45H3.75015H14.2501H14.4001V3.6ZM9.60015 8.02478H8.40015V9.22478H9.60015V8.02478ZM5.40015 11.0999V12.2999H6.60015V11.0999H5.40015ZM12.6001 8.02478V9.22478H11.4001V8.02478H12.6001ZM6.60015 8.02478H5.40015V9.22478H6.60015V8.02478ZM8.40015 11.0999H9.60015V12.2999H8.40015V11.0999ZM11.4001 12.2999V11.0999H12.6001V12.2999H11.4001Z"
134 fill="black" />
135 </mask>
136 <g mask="url(#mask0_13857_914294321${count})">
137 <rect width="18" height="18" fill="#666E7A" />
138 </g>
139 </svg>
140 ${curEntry.date}
141 </p>
142 </div>
143 <div class="b3-noticias--wrapper">
144 <a href="${curEntry.linkToWebContentDisplayPage}" class="b3-noticias--texts b3-ga-button">
145 <h2 class="b3-noticias--title b3-ga-card-title body-sm mb-0">
146 <#if curEntry.isExclusiveContent>
147 <span aria-label="${locale?contains('en')?then('Exclusive for b3 customer users', 'Exclusivo para usuários b3 clientes' )}" title="${locale?contains('en')?then('Exclusive for b3 customer users', 'Exclusivo para usuários b3 clientes' )}">
148 <svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">
149 <mask id="mask0_23871_49298" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="3" y="1" width="14" height="18">
150 <path fill-rule="evenodd" clip-rule="evenodd" d="M15 7.33333C15.8333 7.33333 16.5 8 16.5 8.83333V17.1667C16.5 18 15.8333 18.6667 15 18.6667H5C4.16667 18.6667 3.5 18 3.5 17.1667V8.83333C3.5 8 4.16667 7.33333 5 7.33333H12.5H12.6667V7.16667V5.5C12.6667 4 11.5 2.83333 10 2.83333C8.58333 2.83333 7.41667 3.91667 7.33333 5.33333H6C6.08333 3.16667 7.83333 1.5 10 1.5C12.1667 1.5 14 3.33333 14 5.5V7.16667V7.33333H14.1667H15ZM15.1667 17.3333V17.1667V8.83333V8.66667H15H5H4.83333V8.83333V17.1667V17.3333H5H15H15.1667ZM11.5 13C11.5 13.8284 10.8284 14.5 10 14.5C9.17157 14.5 8.5 13.8284 8.5 13C8.5 12.1716 9.17157 11.5 10 11.5C10.8284 11.5 11.5 12.1716 11.5 13Z" fill="black"/>
151 </mask>
152 <g mask="url(#mask0_23871_49298)">
153 <rect y="0.5" width="20" height="20" fill="#666E7A"/>
154 </g>
155 </svg>
156 </span>
157 </#if>
158 ${curEntry.title}
159 </h2>
160 <p class="b3-noticias--subtitle text__body--small mb-0">
161 <#if curEntry.isDisplay>
162 ${curEntry.cardSummary}
163 </#if>
164 </p>
165 </a>
166 <a href="${curEntry.linkToWebContentDisplayPage}" class="b3-ga-button">
167 <svg class="b3-noticias--arrow" width="30" height="30" viewBox="0 0 30 30"
168 fill="none" xmlns="http://www.w3.org/2000/svg">
169 <mask id="mask0_15949_432654321${count}" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="11"
170 y="7" width="9" height="16">
171 <path
172 d="M19.625 15L12.5 7.875L11.125 9.25L16.625 14.875L16.875 15L16.625 15.125L11.125 20.75L12.5 22.125L19.625 15Z"
173 fill="#002C63" />
174 </mask>
175 <g mask="url(#mask0_15949_432654321${count})">
176 <rect width="30" height="30" fill="#0063DE" />
177 </g>
178 </svg>
179 </a>
180 </div>
181 </div>
182 </article>
183 <#assign count=count + 1 />
184 </#list>
185 </ul>
186 <button class="b3--container__btn-to-top b3-ga-button button-md">
187 <#if locale="pt_BR">
188 Ir para o topo
189 <#else>
190 Go to the top
191 </#if>
192 </button>
193
194 </div>
195</section>
196<#assign javascript_folder = themeDisplay.getPathThemeJavaScript()>
197<script src="${javascript_folder}/resultado_busca_noticias.js" data-senna-track="temporary" defer></script>
198
199<style>
200.b3-noticias {
201 position: relative;
202 overflow: hidden;
203 width: 100%;
204 max-width: 79.375rem;
205 margin: 0 auto;
206 padding-bottom: 0.75rem;
207}
208
209.b3-noticias--list {
210 display: flex;
211 gap: 1.5rem;
212 flex-wrap: wrap;
213 max-width: 79.375rem;
214}
215
216.b3-noticias--card {
217 width: 38.9375rem;
218 display: flex;
219}
220
221.b3-noticias--card {
222 display: flex;
223 align-items: center;
224 justify-content: space-between;
225 max-height: 7.75rem;
226 min-height: 7.75rem;
227 border-radius: 6px;
228 border: 1px solid var(--bg-gray-2, #E3E5E7);
229 background: var(--white, #FFF);
230 box-shadow: 0px 3px 3px 0px rgba(102, 110, 122, 0.10);
231 overflow: hidden;
232 margin-bottom: -12px;
233}
234
235.b3-noticias--image>picture>img,
236.b3-noticias--image>img {
237 height: 7.75rem;
238 width: 100%;
239 max-width: 7rem;
240 min-width: 7rem;
241 object-fit: cover;
242}
243
244.b3-noticias--image {
245 height: 7.75rem;
246 max-width: 7rem;
247 min-width: 7rem;
248 width: 100%;
249}
250
251.b3-noticias--content {
252 padding: var(--space-2, 12px);
253 height: auto;
254 display: flex;
255 flex-direction: column;
256 gap: var(--space-1, 6px);
257 background: var(--white, #FFF);
258 width: 100%;
259}
260
261.b3-noticias--tags {
262 margin-bottom: 0;
263 color: var(--text-emphasis-light, #40444d);
264 text-align: center;
265 letter-spacing: 0.0938rem;
266 text-transform: uppercase;
267 border-radius: 99px;
268 border: 2px solid var(--white, #FFF);
269 background: var(--links-interaction-dark, #FFD862);
270 padding: 0px 0.4375rem;
271 align-items: center;
272 max-width: 100%;
273 overflow: hidden;
274 text-overflow: ellipsis;
275 white-space: nowrap;
276 display: block;
277}
278
279.b3-noticias--data {
280 margin-bottom: 0;
281 color: var(--text-text-light, #666E7A);
282 text-align: right;
283 line-height: 150%;
284 padding-right: 0.625rem;
285}
286
287.b3-noticias--wrapper {
288 display: flex;
289 align-items: center;
290 justify-content: space-between;
291}
292
293.b3-noticias--texts {
294 max-width: 27.8125rem;
295}
296
297.b3-noticias--texts:hover {
298 text-decoration: none;
299}
300
301.b3-noticias--title {
302 color: var(--text-emphasis-light, #40444D);
303 line-height: 150%;
304 margin-bottom: 0.1875rem;
305 overflow: hidden;
306 text-overflow: ellipsis;
307 display: -webkit-box;
308 -webkit-line-clamp: 1;
309 -webkit-box-orient: vertical;
310}
311
312.b3-noticias--title > svg{
313 margin-bottom: 0.0938rem;
314 margin-right: 0.5rem;
315}
316
317.b3-noticias--subtitle {
318 color: var(--text-text-light, #666E7A);
319 line-height: 150%;
320 padding-right: var(--space-1, 6px);
321 overflow: hidden;
322 text-overflow: ellipsis;
323 display: -webkit-box;
324 -webkit-line-clamp: 2;
325 -webkit-box-orient: vertical;
326}
327
328.b3-noticias--lead {
329 display: flex;
330 align-items: center;
331 justify-content: space-between;
332}
333
334#b3--pagination--container ul {
335 list-style: none;
336 display: flex;
337 justify-content: flex-end;
338 align-items: center;
339 margin: 0;
340 padding: 1.25rem 3rem;
341 padding-right: 1.125rem;
342}
343
344#b3--pagination--container ul>li {
345 display: flex;
346 align-items: center;
347 justify-content: center;
348 margin: 0;
349 padding: 0;
350 width: 2.625rem;
351 height: 2.625rem;
352}
353
354#b3--pagination--container ul>li:first-child>.current,
355#b3--pagination--container ul>li:last-child>.current {
356 border: none;
357}
358
359#b3--pagination--container ul>.active>.current {
360 width: 1.875rem;
361 height: 1.875rem;
362 border-radius: 50%;
363 border: 0.125rem solid var(--brand-color-3, #00b0e6);
364 padding: 0.375rem;
365 color: var(--text-emphasis-light, #40444d);
366 font-size: 0.938rem;
367 font-style: normal;
368 font-weight: var(--font-weight-semi-bold);
369 line-height: var(--lead-font-size);
370 text-align: center;
371 display: flex;
372 justify-content: center;
373 align-items: center;
374}
375
376#b3--pagination--container .ellipse {
377 color: var(--value-36, #0063de);
378 text-align: center;
379 font-size: 0.938rem;
380 font-style: normal;
381 font-weight: 600;
382 line-height: 1.25rem;
383}
384
385#b3--pagination--container .page-link {
386 display: flex;
387 align-items: center;
388 justify-content: center;
389 border: none;
390 width: 2.625rem;
391 height: 2.625rem;
392 padding: 0.625rem;
393 margin: 0;
394 text-align: center;
395 font-size: 0.938rem;
396 font-style: normal;
397 font-weight: 600;
398 line-height: 1.25rem;
399 color: var(--brand-color-2, #0063DE);
400 background-color: transparent;
401}
402
403#b3--pagination--container .page-link:hover {
404 background-color: transparent;
405 border: none;
406}
407
408#b3--pagination--container .page-link:focus {
409 background-color: transparent;
410 border: none;
411}
412
413.b3--container__btn-to-top {
414 display: none;
415}
416
417
418@media (max-width: 1279px) {
419 .b3-noticias {
420 overflow: hidden;
421 flex-direction: column;
422 gap: var(--space-2, 12px);
423 padding: 0 1.5rem;
424 }
425
426 .b3-noticias--list {
427 flex-direction: row;
428 gap: var(--space-2, 12px);
429 }
430
431 .b3-noticias--card {
432 width: 17rem;
433 max-height: initial;
434 height: auto;
435 display: block;
436 margin-bottom: 0;
437 }
438
439 .b3-noticias--lead {
440 flex-direction: column-reverse;
441 align-items: flex-start;
442 gap: var(--space-2, 12px);
443 }
444
445 .b3-noticias--image {
446 display: none;
447 }
448
449 .b3-noticias--image>picture>img,
450 .b3-noticias--image>img {
451 height: 9.5625rem;
452 }
453
454 .b3-noticias--content {
455 gap: var(--space-2, 12px);
456 }
457
458 .b3-noticias--title {
459 font-size: 1.125rem;
460 margin-bottom: var(--space-1, 6px);
461 }
462
463 .b3-noticias--arrow {
464 display: none;
465 }
466
467 .b3-noticias--list {
468 flex-wrap: wrap;
469 }
470
471 .b3-noticias--card {
472 width: 100%;
473 }
474
475 .b3-noticias--texts {
476 max-width: 100%;
477 }
478}
479
480@media screen and (max-width: 767px) {
481 #b3--pagination--container {
482 display: none;
483 }
484
485 .b3--container__btn-to-top {
486 border-radius: 100px;
487 border: 1px solid var(--interaction-light, #0063DE);
488 display: flex;
489 width: 17rem;
490 padding: 0.4375rem 1rem;
491 justify-content: center;
492 align-items: center;
493 gap: var(--space-2, 12px);
494 background: transparent;
495 line-height: 1.375rem;
496 letter-spacing: 0.09375rem;
497 text-transform: uppercase;
498 color: var(--interaction-light, #0063DE);
499 text-align: center;
500 margin: 1.5rem auto 0.75rem auto;
501 }
502
503}
504</style>