1(function () { 2 'use strict'; 3 4 if (window.SabinNoticiaUrls) return; 5 6 function _root() { 7 return typeof window.g_LumisRootPath === 'string' ? window.g_LumisRootPath.replace(/\/$/, '') : ''; 8 } 9 10 function _buildUrl(pageId, lumI, extraParams) { 11 var qs = new URLSearchParams(); 12 qs.set('lumPageId', pageId); 13 qs.set('lumI', lumI); 14 Object.keys(extraParams).forEach(function (k) { 15 qs.set(k, extraParams[k]); 16 }); 17 return _root() + '/main.jsp?' + qs.toString(); 18 } 19 20 window.SabinNoticiaUrls = { 21 /** 22 * Link para a página de detalhe de uma notÃcia/artigo. 23 * @param {string} itemId - ID do item (lumItemId) 24 * @param {string} categoryTitle - Nome da categoria (para breadcrumb e SEO) 25 */ 26 newsDetail: function (itemId, categoryTitle) { 27 if (!itemId) return '#'; 28 return _buildUrl( 29 '2C9280849E26AB16019E2816907F44E4', 30 'br.com.sabin.institucional.service.noticias.details', 31 { categoryTitle: categoryTitle || '', lumItemId: itemId } 32 ); 33 }, 34 35 /** 36 * Link para a página de detalhe de um autor. 37 * @param {string} authorId - ID do autor 38 * @param {string} authorTitle - Nome do autor 39 */ 40 authorDetail: function (authorId, authorTitle) { 41 if (!authorId) return '#'; 42 return _buildUrl( 43 '2C9280849E3B288C019E3C653EDB12E6', 44 'br.com.sabin.institucional.service.noticias.autoresDetails', 45 { authorTitle: authorTitle || '', itemId: authorId } 46 ); 47 }, 48 49 /** 50 * Link para a página de detalhe de uma categoria. 51 * @param {string} categoryId - ID da categoria 52 * @param {string} categoryTitle - Nome da categoria 53 */ 54 categoryDetail: function (categoryId, categoryTitle) { 55 if (!categoryId) return '#'; 56 return _buildUrl( 57 '2C9280849E3B288C019E3BDC0FF60DB0', 58 'br.com.sabin.institucional.service.noticias.categoriasDetails', 59 { itemId: categoryId, categoryTitle: categoryTitle || '' } 60 ); 61 } 62 }; 63})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.