0% found this document useful (0 votes)
6 views5 pages

F

The document contains JavaScript code that defines a set of templates for rendering navigation components in a web application. It includes functions for creating different types of navigation containers such as top, side, and combined navigation, as well as user menu areas and content sections. The code is structured to dynamically generate HTML based on user preferences and settings.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views5 pages

F

The document contains JavaScript code that defines a set of templates for rendering navigation components in a web application. It includes functions for creating different types of navigation containers such as top, side, and combined navigation, as well as user menu areas and content sections. The code is structured to dynamically generate HTML based on user preferences and settings.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

// This file was automatically generated from sidebar-web.soy.

// Please don't edit this file by hand.

if (typeof templates_templateContainerBcsTxPseNavigation == 'undefined') { var


templates_templateContainerBcsTxPseNavigation = {}; }

templates_templateContainerBcsTxPseNavigation.templateContainerBcsTxPseNavigation =
function(opt_data, opt_ignored) {
var output = '';
var layoutType__soy3 = (opt_data.item.preferences.layoutType.value == 'fixed') ?
'container' : (opt_data.item.preferences.layoutType.value == 'fluid') ? 'container-
fluid' : '';
var navbarType__soy9 = opt_data.item.preferences.stickyNavbar.value == 'true' ?
'fixed-top' : 'static-top';
output += (opt_data.item.preferences.viewType.value ==
'TopNavigationContainer') ?
templates_templateContainerBcsTxPseNavigation.TopNavigationContainer({item:
opt_data.item, layoutType: layoutType__soy3, navbarType: navbarType__soy9}) :
(opt_data.item.preferences.viewType.value == 'SideNavigationContainer') ?
templates_templateContainerBcsTxPseNavigation.SideNavigationContainer(opt_data) :
(opt_data.item.preferences.viewType.value == 'TopSideNavigationContainer') ?
templates_templateContainerBcsTxPseNavigation.TopSideNavigationContainer({item:
opt_data.item, layoutType: layoutType__soy3, navbarType: navbarType__soy9}) : '';
return output;
};

templates_templateContainerBcsTxPseNavigation.TopNavigationContainer =
function(opt_data, opt_ignored) {
var output = '';
var navbarSelector__soy25 = '#' + soy.$$escapeHtml(opt_data.item.name) + '-
navbar-collapse';
output += '<nav class="navbar navbar-light bg-white navbar-expand-md ' + soy.$
$escapeHtml(opt_data.navbarType) + ' bp-container bp-NavigationContainer bp-ui-
dragRoot" data-pid="' + soy.$$escapeHtml(opt_data.item.name) + '"
role="navigation"><div class="' + soy.$$escapeHtml(opt_data.layoutType) + '"><div
class="navbar-header">' +
templates_templateContainerBcsTxPseNavigation.NavbarToggler({collapseTargetSelector
: navbarSelector__soy25}) +
templates_templateContainerBcsTxPseNavigation.NavbarBrand({item: opt_data.item,
areaId: 0}) + '</div><div id="' + soy.$$escapeHtml(opt_data.item.name) + '-navbar-
collapse" class="collapse navbar-collapse rb-navbar-links">' +
templates_templateContainerBcsTxPseNavigation.UserMenuArea({showInMobile: false,
item: opt_data.item, areaId: 1}) +
templates_templateContainerBcsTxPseNavigation.TopNavigationArea({item:
opt_data.item, areaId: 2, mobileUserAreaId: 3}) + '</div></div></nav>';
return output;
};

templates_templateContainerBcsTxPseNavigation.SideNavigationContainer =
function(opt_data, opt_ignored) {
return '<div class="page-container bp-container bp-NavigationContainer bp-ui-
dragRoot" data-pid="' + soy.$$escapeHtml(opt_data.item.name) + '"><div class="row
rb-row-content rb-row-content-left">' +
templates_templateContainerBcsTxPseNavigation.SidebarArea({item: opt_data.item,
areaId: 0, mobileUserAreaId: 1}) +
templates_templateContainerBcsTxPseNavigation.ContentArea({item: opt_data.item,
areaId: 2}) + '</div></div>';
};

templates_templateContainerBcsTxPseNavigation.TopSideNavigationContainer =
function(opt_data, opt_ignored) {
var output = '';
var sidebarSelector__soy66 = '#nav-sidebar-collapse';
var contentOutlineClass__soy68 = opt_data.item.preferences.stickyNavbar.value ==
'true' ? 'sticky-top-outline' : '';
output += '<div class="bcs-tx-topside-menu-container bp-container-pse page-
container bp-container bp-NavigationContainer bp-ui-dragRoot" data-pid="' + soy.$
$escapeHtml(opt_data.item.name) + '"><!-- top navbar --><div class="navbar navbar-
light bg-white navbar-expand-md ' + soy.$$escapeHtml(opt_data.navbarType) + ' rb-
navbar-top d-print-block" role="navigation"><div class="' + soy.$
$escapeHtml(opt_data.layoutType) + ' text-right p-0"><div class="navbar-header
text-left">' +
templates_templateContainerBcsTxPseNavigation.NavbarToggler({collapseTargetSelector
: sidebarSelector__soy66}) +
templates_templateContainerBcsTxPseNavigation.NavbarBrand({item: opt_data.item,
areaId: 0}) + '</div>' +
templates_templateContainerBcsTxPseNavigation.UserMenuArea({showInMobile: false,
item: opt_data.item, areaId: 1}) + '</div></div><!-- side navbar and content --
><div class="bcs-row-content ' + soy.$$escapeHtml(contentOutlineClass__soy68) +
'"><div class="container-fluid rb-row-content bcs-content-container bcs-content-
container-pse">' + templates_templateContainerBcsTxPseNavigation.ContentArea({item:
opt_data.item, areaId: 4}) + '</div></div></div>';
return output;
};

templates_templateContainerBcsTxPseNavigation.NavbarBrand = function(opt_data,
opt_ignored) {
var output = '<div class="navbar-brand navbar-brand-pse rb-brand --area bp-
area">';
if (! (opt_data.item.preferences.loadChildren &&
opt_data.item.preferences.loadChildren.value == 'false') && opt_data.item.children)
{
var childList97 = opt_data.item.children;
var childListLen97 = childList97.length;
for (var childIndex97 = 0; childIndex97 < childListLen97; childIndex97++) {
var childData97 = childList97[childIndex97];
output += (parseInt(childData97.preferences.area.value,10) ==
opt_data.areaId) ? soy.$$filterNoAutoescape("") : '';
}
}
output += '</div>';
return output;
};

templates_templateContainerBcsTxPseNavigation.NavbarToggler = function(opt_data,
opt_ignored) {
return '<button class="navbar-toggler d-print-none" type="button" data-
toggle="collapse" data-target="' + soy.$
$escapeHtml(opt_data.collapseTargetSelector) + '" aria-controls="' + soy.$
$escapeHtml(opt_data.collapseTargetSelector) + '" aria-expanded="false" aria-
label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>';
};
templates_templateContainerBcsTxPseNavigation.UserMenuArea = function(opt_data,
opt_ignored) {
var output = '';
var hiddenClass__soy111 = opt_data.showInMobile == false ? 'd-none d-md-flex' :
'd-block d-md-none';
var cardLockName__soy112 = opt_data.item.preferences.cardLockPageName.value;
output += '<div class="nav navbar-nav navbar-right rb-notifications-area --area
bp-area ' + soy.$$escapeHtml(hiddenClass__soy111) + ' no-margin d-print-none"><div
class="btn-card-lock d-none d-md-block"><button id="cardLockBtn" class="btn-bcs
bcs-alert light d-none" title="' + soy.$$escapeHtml(cardLockName__soy112) + '"><i
class="icon-bcs icon-alert-1"></i>' + soy.$$escapeHtml(cardLockName__soy112) +
'</button></div>';
if (! (opt_data.item.preferences.loadChildren &&
opt_data.item.preferences.loadChildren.value == 'false') && opt_data.item.children)
{
var childList122 = opt_data.item.children;
var childListLen122 = childList122.length;
for (var childIndex122 = 0; childIndex122 < childListLen122; childIndex122++) {
var childData122 = childList122[childIndex122];
output += (parseInt(childData122.preferences.area.value,10) ==
opt_data.areaId) ? soy.$$filterNoAutoescape("") : '';
}
}
output += '</div>';
return output;
};

templates_templateContainerBcsTxPseNavigation.TopNavigationArea =
function(opt_data, opt_ignored) {
var output = '<div class="nav navbar-nav rb-nav-top --area bp-area">' +
templates_templateContainerBcsTxPseNavigation.OffScreen({contentElementId: 'rb-
content'});
if (! (opt_data.item.preferences.loadChildren &&
opt_data.item.preferences.loadChildren.value == 'false') && opt_data.item.children)
{
var childList135 = opt_data.item.children;
var childListLen135 = childList135.length;
for (var childIndex135 = 0; childIndex135 < childListLen135; childIndex135++) {
var childData135 = childList135[childIndex135];
output += (parseInt(childData135.preferences.area.value,10) ==
opt_data.areaId) ? soy.$$filterNoAutoescape("") : '';
}
}
output += '</div>' +
templates_templateContainerBcsTxPseNavigation.UserMenuArea({showInMobile: true,
item: opt_data.item, areaId: opt_data.mobileUserAreaId});
return output;
};

templates_templateContainerBcsTxPseNavigation.SidebarArea = function(opt_data,
opt_ignored) {
var output = '';
var sidebarColumnClasses__soy147 =
opt_data.item.preferences.sidebarColumnClasses.value;
output += '<div class="rb-sidebar ' + soy.$
$escapeHtml(sidebarColumnClasses__soy147) + ' d-print-none" role="navigation"><div
class="rb-sidebar-area --area bp-area">' +
templates_templateContainerBcsTxPseNavigation.OffScreen({contentElementId: 'rb-
content'});
if (! (opt_data.item.preferences.loadChildren &&
opt_data.item.preferences.loadChildren.value == 'false') && opt_data.item.children)
{
var childList155 = opt_data.item.children;
var childListLen155 = childList155.length;
for (var childIndex155 = 0; childIndex155 < childListLen155; childIndex155++) {
var childData155 = childList155[childIndex155];
output += (parseInt(childData155.preferences.area.value,10) ==
opt_data.areaId) ? soy.$$filterNoAutoescape("") : '';
}
}
output += '</div>' +
templates_templateContainerBcsTxPseNavigation.UserMenuArea({showInMobile: true,
item: opt_data.item, areaId: opt_data.mobileUserAreaId}) + '</div>';
return output;
};

templates_templateContainerBcsTxPseNavigation.ContentArea = function(opt_data,
opt_ignored) {
var output = '';
var contentColumnClasses__soy168 =
opt_data.item.preferences.contentColumnClasses.value;
output += '<div id="rb-content" class="rb-content ' + soy.$
$escapeHtml(contentColumnClasses__soy168) + ' --area bp-area">';
if (! (opt_data.item.preferences.loadChildren &&
opt_data.item.preferences.loadChildren.value == 'false') && opt_data.item.children)
{
var childList174 = opt_data.item.children;
var childListLen174 = childList174.length;
for (var childIndex174 = 0; childIndex174 < childListLen174; childIndex174++) {
var childData174 = childList174[childIndex174];
output += (parseInt(childData174.preferences.area.value,10) ==
opt_data.areaId) ? soy.$$filterNoAutoescape("") : '';
}
}
output += templates_templateContainerBcsTxPseNavigation.FooterArea(null) +
'</div>';
return output;
};

templates_templateContainerBcsTxPseNavigation.OffScreen = function(opt_data,
opt_ignored) {
return '<a href="#' + soy.$$escapeHtml(opt_data.contentElementId) + '"
class="skiplinks">Skip to Content</a>';
};

templates_templateContainerBcsTxPseNavigation.FooterArea = function(opt_data,
opt_ignored) {
return '<footer id="bcs-footer" class="row-table d-print-none"><div
class="footer-container col-cell"><div class="row-table info"><div class="bcs-
footer-priv-copyright col-cell"><span>Copyright � 2017 Banco Caja
Social</span></div><div class="bcs-footer-phone-section"><div class="bcs-footer-
priv-icon"><i class="icon-bcs icon-call-3"></i><span>L�nea Amiga</span></div><div
class="bcs-footer-priv-phones"><div>Desde celular:
<span>#233</span></div><div>Bogot�: <span>601 54 26446</span></div><div>Desde el
resto del Pa�s: <span>01 8000 910
038</span></div></div></div></div></div></footer>';
};

You might also like