jQuery.template("Tmpl-components-tab-component",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="component-block '),typeof properties.additionalClass!="undefined"&&properties.additionalClass!=null&&__.push($.encode(typeof properties.additionalClass=="function"?properties.additionalClass.call($item):properties.additionalClass)),__.push('">  '),typeof properties.showTitle!="undefined"&&properties.showTitle!=null&&(typeof properties.showTitle=="function"?properties.showTitle.call($item):properties.showTitle)&&(__.push('   <div class="component-block-header">    <h2 class="component-block-header-title">'),typeof properties.name!="undefined"&&properties.name!=null&&__.push($.encode(typeof properties.name=="function"?properties.name.call($item):properties.name)),__.push("<\/h2>    "),typeof(properties.tabs&&properties.tabs.length>1)!="undefined"&&(properties.tabs&&properties.tabs.length>1)!=null&&(typeof(properties.tabs&&properties.tabs.length>1)=="function"?(properties.tabs&&properties.tabs.length>1).call($item):properties.tabs&&properties.tabs.length>1)&&(__.push("     "),typeof properties.tabs!="undefined"&&properties.tabs!=null&&$.each(typeof properties.tabs=="function"?properties.tabs.call($item):properties.tabs,function(i,tab){with(this)__.push('      <span class="component-block-header-btn '),typeof(i===properties.activeTab)!="undefined"&&i===properties.activeTab!=null&&(typeof(i===properties.activeTab)=="function"?(i===properties.activeTab).call($item):i===properties.activeTab)&&__.push("active"),__.push('" data-component-index="'),typeof i!="undefined"&&i!=null&&__.push($.encode(typeof i=="function"?i.call($item):i)),__.push('">'),typeof tab.name!="undefined"&&tab.name!=null&&__.push($.encode(typeof tab.name=="function"?tab.name.call($item):tab.name)),__.push("<\/span>     ")}),__.push("    ")),__.push("   <\/div>  ")),__.push('  <div class="component-block-content"><\/div> <\/div>');return __});jQuery.template("Tmpl-components-warning",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="warning-component">  <div class="warning-component-logo"><\/div>  <div class="warning-component-text">   '),typeof warningText!="undefined"&&warningText!=null&&(typeof warningText=="function"?warningText.call($item):warningText)?(__.push("    "),typeof warningText!="undefined"&&warningText!=null&&__.push($.encode(typeof warningText=="function"?warningText.call($item):warningText)),__.push("   ")):!0&&(__.push("    "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/components/warning.htm","Sorry, something is wrong."))),__.push("   ")),__.push("  <\/div> <\/div>");return __});jQuery.template("Tmpl-components-widget-slider",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="component-widget-content">  <div class="component-block-content-slider"><\/div>  '),typeof showSliderBtns!="undefined"&&showSliderBtns!=null&&(typeof showSliderBtns=="function"?showSliderBtns.call($item):showSliderBtns)&&(__.push('  <div class="component-slider-btns component-control">   <div class="slider-btn btn-prev"><<\/div>   <div class="slider-status"><span class="slider-active-item item-number">1<\/span>/<span class="item-number">'),typeof itemsCount!="undefined"&&itemsCount!=null&&__.push($.encode(typeof itemsCount=="function"?itemsCount.call($item):itemsCount)),__.push('<\/span><\/div>   <div class="slider-btn btn-next">><\/div>  <\/div>  ')),__.push(" <\/div>");return __});jQuery.template("Tmpl-components-widget-list",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="component-widget-content">  <div class="component-block-content-list"><\/div>  '),typeof showSeeAll!="undefined"&&showSeeAll!=null&&(typeof showSeeAll=="function"?showSeeAll.call($item):showSeeAll)&&(__.push('  <div class="component-block-content-footer">   <a class="component-block-content-footer-see-all" href="'),typeof seeAllLink!="undefined"&&seeAllLink!=null&&__.push($.encode(typeof seeAllLink=="function"?seeAllLink.call($item):seeAllLink)),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/components/widget-list.htm","See all"))),__.push("<\/a>  <\/div>  ")),__.push(" <\/div>");return __});jQuery.template("Tmpl-components-resource-list",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push(""),typeof(resources&&resources.length>0)!="undefined"&&(resources&&resources.length>0)!=null&&(typeof(resources&&resources.length>0)=="function"?(resources&&resources.length>0).call($item):resources&&resources.length>0)&&(__.push("  "),typeof resources!="undefined"&&resources!=null&&$.each(typeof resources=="function"?resources.call($item):resources,function(n,resource){with(this)__.push('  <div class="component-block-item '),typeof showThumbnails!="undefined"&&showThumbnails!=null&&(typeof showThumbnails=="function"?showThumbnails.call($item):showThumbnails)&&__.push("with-thumbnails"),__.push('">   <div class="component-block-item-img">    <div class="component-block-item-thumbnail" style="background-image: url('),typeof resource.thumbnailUrl!="undefined"&&resource.thumbnailUrl!=null&&__.push($.encode(typeof resource.thumbnailUrl=="function"?resource.thumbnailUrl.call($item):resource.thumbnailUrl)),__.push(')"><\/div>   <\/div>   <div class="component-block-item-text">    <a class="component-block-item-title with-nowrap" href="'),typeof resource.resourceUrl!="undefined"&&resource.resourceUrl!=null&&__.push($.encode(typeof resource.resourceUrl=="function"?resource.resourceUrl.call($item):resource.resourceUrl)),__.push('" title="'),typeof resource.title!="undefined"&&resource.title!=null&&__.push($.encode(typeof resource.title=="function"?resource.title.call($item):resource.title)),__.push('">     '),typeof resource.title!="undefined"&&resource.title!=null&&__.push($.encode(typeof resource.title=="function"?resource.title.call($item):resource.title)),__.push("    <\/a>    "),typeof showThumbnails!="undefined"&&showThumbnails!=null&&(typeof showThumbnails=="function"?showThumbnails.call($item):showThumbnails)?(__.push("     "),typeof resource.rawDescription!="undefined"&&resource.rawDescription!=null&&(typeof resource.rawDescription=="function"?resource.rawDescription.call($item):resource.rawDescription)&&(__.push('      <div class="component-block-item-description">'),typeof resource.rawDescription!="undefined"&&resource.rawDescription!=null&&__.push($.encode(typeof resource.rawDescription=="function"?resource.rawDescription.call($item):resource.rawDescription)),__.push("<\/div>     ")),__.push("    ")):!0&&(__.push("     "),typeof(resource.source&&resource.source.localizedName)!="undefined"&&(resource.source&&resource.source.localizedName)!=null&&(typeof(resource.source&&resource.source.localizedName)=="function"?(resource.source&&resource.source.localizedName).call($item):resource.source&&resource.source.localizedName)&&(__.push('      <div class="component-block-item-source">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/components/resource-list.htm","Source:"))),__.push(' <a href="'),typeof resource.source.url!="undefined"&&resource.source.url!=null&&__.push($.encode(typeof resource.source.url=="function"?resource.source.url.call($item):resource.source.url)),__.push('" class="source-link" title="'),typeof resource.source.localizedName!="undefined"&&resource.source.localizedName!=null&&__.push($.encode(typeof resource.source.localizedName=="function"?resource.source.localizedName.call($item):resource.source.localizedName)),__.push('">'),typeof resource.source.localizedName!="undefined"&&resource.source.localizedName!=null&&__.push($.encode(typeof resource.source.localizedName=="function"?resource.source.localizedName.call($item):resource.source.localizedName)),__.push("<\/a><\/div>     ")),__.push("    ")),__.push('    <div class="component-block-item-date">'),typeof resource.dateString!="undefined"&&resource.dateString!=null&&__.push($.encode(typeof resource.dateString=="function"?resource.dateString.call($item):resource.dateString)),__.push("<\/div>   <\/div>  <\/div>  ")}),__.push(" ")),__.push("");return __});jQuery.template("Tmpl-components-component-empty",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="component-block-empty '),typeof addtionalClass!="undefined"&&addtionalClass!=null&&__.push($.encode(typeof addtionalClass=="function"?addtionalClass.call($item):addtionalClass)),__.push('">  '),typeof description!="undefined"&&description!=null&&$.each(typeof description=="function"?description.call($item):description,function(n,desc){with(this)__.push('   <p class="component-block-empty-desc">'),typeof desc!="undefined"&&desc!=null&&__.push(typeof desc=="function"?desc.call($item):desc),__.push("<\/p>  ")}),__.push('  <div class="component-block-empty-ico"><\/div> <\/div>');return __});jQuery.template("Tmpl-components-update-alert-list",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push(""),typeof(alerts&&alerts.length>0)!="undefined"&&(alerts&&alerts.length>0)!=null&&(typeof(alerts&&alerts.length>0)=="function"?(alerts&&alerts.length>0).call($item):alerts&&alerts.length>0)&&(__.push("  "),typeof alerts!="undefined"&&alerts!=null&&$.each(typeof alerts=="function"?alerts.call($item):alerts,function(n,alert){with(this)__.push('  <div class="component-block-item update-alert">   <div class="component-block-item-text">    <div class="component-block-item-title">     <a href="'),typeof alert.datasetLink!="undefined"&&alert.datasetLink!=null&&__.push($.encode(typeof alert.datasetLink=="function"?alert.datasetLink.call($item):alert.datasetLink)),__.push('" title="'),typeof alert.indicator!="undefined"&&alert.indicator!=null&&__.push($.encode(typeof alert.indicator=="function"?alert.indicator.call($item):alert.indicator)),__.push('">'),typeof alert.indicator!="undefined"&&alert.indicator!=null&&__.push($.encode(typeof alert.indicator=="function"?alert.indicator.call($item):alert.indicator)),__.push('<\/a>     <span class="update-condition"> '),typeof alert.conditionText!="undefined"&&alert.conditionText!=null&&__.push($.encode(typeof alert.conditionText=="function"?alert.conditionText.call($item):alert.conditionText)),__.push(" "),typeof alert.value!="undefined"&&alert.value!=null&&__.push($.encode(typeof alert.value=="function"?alert.value.call($item):alert.value)),__.push(" "),typeof alert.unit!="undefined"&&alert.unit!=null&&__.push($.encode(typeof alert.unit=="function"?alert.unit.call($item):alert.unit)),__.push('<\/span>    <\/div>    <div class="update-alert-item-points">     '),typeof(alert.points&&alert.points.length>0)!="undefined"&&(alert.points&&alert.points.length>0)!=null&&(typeof(alert.points&&alert.points.length>0)=="function"?(alert.points&&alert.points.length>0).call($item):alert.points&&alert.points.length>0)&&(__.push("      "),typeof alert.points!="undefined"&&alert.points!=null&&$.each(typeof alert.points=="function"?alert.points.call($item):alert.points,function(i,point){with(this)__.push('       <div class="update-alert-item-points-text '),typeof(i===0)!="undefined"&&i===0!=null&&(typeof(i===0)=="function"?(i===0).call($item):i===0)&&__.push("with-bg"),__.push('">        <strong>'),typeof point.value!="undefined"&&point.value!=null&&__.push($.encode(typeof point.value=="function"?point.value.call($item):point.value)),__.push("<\/strong> "),typeof alert.unit!="undefined"&&alert.unit!=null&&__.push($.encode(typeof alert.unit=="function"?alert.unit.call($item):alert.unit)),__.push(" "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/components/update-alert-list.htm","in"))),__.push(" <strong>"),typeof point.date!="undefined"&&point.date!=null&&__.push($.encode(typeof point.date=="function"?point.date.call($item):point.date)),__.push("<\/strong>       <\/div>      ")}),__.push("      "),typeof(alert.morePoints&&alert.morePoints!==0)!="undefined"&&(alert.morePoints&&alert.morePoints!==0)!=null&&(typeof(alert.morePoints&&alert.morePoints!==0)=="function"?(alert.morePoints&&alert.morePoints!==0).call($item):alert.morePoints&&alert.morePoints!==0)&&(__.push('       <div class="update-alert-item-points-text sub-text">        '),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/components/update-alert-list.htm","and {morePoints} more results",{morePoints:alert.morePoints})),__.push("       <\/div>      ")),__.push("     ")),__.push("    <\/div>    "),typeof(alert.datasetSource&&alert.datasetSource)!="undefined"&&(alert.datasetSource&&alert.datasetSource)!=null&&(typeof(alert.datasetSource&&alert.datasetSource)=="function"?(alert.datasetSource&&alert.datasetSource).call($item):alert.datasetSource&&alert.datasetSource)&&(__.push('     <div class="component-block-item-source">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/components/update-alert-list.htm","Source:"))),__.push(' <a href="'),typeof alert.datasetSourceUrl!="undefined"&&alert.datasetSourceUrl!=null&&__.push($.encode(typeof alert.datasetSourceUrl=="function"?alert.datasetSourceUrl.call($item):alert.datasetSourceUrl)),__.push('" class="source-link" title="'),typeof alert.datasetSource!="undefined"&&alert.datasetSource!=null&&__.push($.encode(typeof alert.datasetSource=="function"?alert.datasetSource.call($item):alert.datasetSource)),__.push('">'),typeof alert.datasetSource!="undefined"&&alert.datasetSource!=null&&__.push($.encode(typeof alert.datasetSource=="function"?alert.datasetSource.call($item):alert.datasetSource)),__.push("<\/a><\/div>    ")),__.push("    "),typeof alert.updated!="undefined"&&alert.updated!=null&&(typeof alert.updated=="function"?alert.updated.call($item):alert.updated)&&(__.push('     <div class="update-alert-item-date">'),typeof(alert.points&&alert.points.length>1)!="undefined"&&(alert.points&&alert.points.length>1)!=null&&(typeof(alert.points&&alert.points.length>1)=="function"?(alert.points&&alert.points.length>1).call($item):alert.points&&alert.points.length>1)?(__.push(""),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/components/update-alert-list.htm","Data alerts from"))),__.push("")):!0&&(__.push(""),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/components/update-alert-list.htm","Data alert from"))),__.push("")),__.push(" "),typeof alert.updated!="undefined"&&alert.updated!=null&&__.push($.encode(typeof alert.updated=="function"?alert.updated.call($item):alert.updated)),__.push("<\/div>    ")),__.push("   <\/div>  <\/div>  ")}),__.push(" ")),__.push("");return __});jQuery.template("Tmpl-components-follow-list",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push(""),typeof(resources&&resources.length>0)!="undefined"&&(resources&&resources.length>0)!=null&&(typeof(resources&&resources.length>0)=="function"?(resources&&resources.length>0).call($item):resources&&resources.length>0)&&(__.push("  "),typeof resources!="undefined"&&resources!=null&&$.each(typeof resources=="function"?resources.call($item):resources,function(n,resource){with(this)__.push('  <div class="component-block-item with-thumbnails follow-item '),typeof(resource.type==="Dataset")!="undefined"&&resource.type==="Dataset"!=null&&(typeof(resource.type==="Dataset")=="function"?(resource.type==="Dataset").call($item):resource.type==="Dataset")&&__.push("dataset"),__.push('">   <div class="component-block-item-img">    <div class="component-block-item-thumbnail" style="background-image: url('),typeof resource.thumbnailUrl!="undefined"&&resource.thumbnailUrl!=null&&__.push($.encode(typeof resource.thumbnailUrl=="function"?resource.thumbnailUrl.call($item):resource.thumbnailUrl)),__.push(')"><\/div>   <\/div>   <div class="component-block-item-text">    <a class="component-block-item-title with-nowrap" href="'),typeof resource.resourceUrl!="undefined"&&resource.resourceUrl!=null&&__.push($.encode(typeof resource.resourceUrl=="function"?resource.resourceUrl.call($item):resource.resourceUrl)),__.push('" title="'),typeof resource.title!="undefined"&&resource.title!=null&&__.push($.encode(typeof resource.title=="function"?resource.title.call($item):resource.title)),__.push('">     '),typeof resource.title!="undefined"&&resource.title!=null&&__.push($.encode(typeof resource.title=="function"?resource.title.call($item):resource.title)),__.push("    <\/a>    "),typeof(resource.source&&resource.source.localizedName)!="undefined"&&(resource.source&&resource.source.localizedName)!=null&&(typeof(resource.source&&resource.source.localizedName)=="function"?(resource.source&&resource.source.localizedName).call($item):resource.source&&resource.source.localizedName)&&(__.push('     <div class="component-block-item-source">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/components/follow-list.htm","Source:"))),__.push(' <a href="'),typeof resource.source.url!="undefined"&&resource.source.url!=null&&__.push($.encode(typeof resource.source.url=="function"?resource.source.url.call($item):resource.source.url)),__.push('" class="source-link" title="'),typeof resource.source.localizedName!="undefined"&&resource.source.localizedName!=null&&__.push($.encode(typeof resource.source.localizedName=="function"?resource.source.localizedName.call($item):resource.source.localizedName)),__.push('">'),typeof resource.source.localizedName!="undefined"&&resource.source.localizedName!=null&&__.push($.encode(typeof resource.source.localizedName=="function"?resource.source.localizedName.call($item):resource.source.localizedName)),__.push("<\/a><\/div>    ")),__.push('    <div class="component-block-item-date">'),typeof resource.dateString!="undefined"&&resource.dateString!=null&&__.push($.encode(typeof resource.dateString=="function"?resource.dateString.call($item):resource.dateString)),__.push("<\/div>   <\/div>   "),typeof(resource.rawDescription&&viewType==="slider")!="undefined"&&(resource.rawDescription&&viewType==="slider")!=null&&(typeof(resource.rawDescription&&viewType==="slider")=="function"?(resource.rawDescription&&viewType==="slider").call($item):resource.rawDescription&&viewType==="slider")&&(__.push('    <div class="component-block-item-description">'),typeof resource.rawDescription!="undefined"&&resource.rawDescription!=null&&__.push($.encode(typeof resource.rawDescription=="function"?resource.rawDescription.call($item):resource.rawDescription)),__.push("<\/div>   ")),__.push("  <\/div>  ")}),__.push(" ")),__.push("");return __})