jQuery.template("search-panel",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="search-panel">   <div id="search-title" class="section">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/similar/search-panel.htm","Filter"))),__.push('<\/div>   <div id="region-filter" class="section">    <b>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/similar/search-panel.htm","Regions"))),__.push("<\/b>    <ul>     "),typeof isSameRegion!="undefined"&&isSameRegion!=null&&(typeof isSameRegion=="function"?isSameRegion.call($item):isSameRegion)?(__.push('     <li>      <label for="same-region">       <input name="region" id="same-region" type="radio" checked="checked"/>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/similar/search-panel.htm","Same region"))),__.push('<\/label><\/li>     <li>      <label for="all-region">       <input name="region" id="all-region" type="radio" />'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/similar/search-panel.htm","All regions"))),__.push("<\/label><\/li>     ")):!0&&(__.push('     <li>      <label for="same-region">       <input name="region" id="same-region" type="radio" />'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/similar/search-panel.htm","Same region"))),__.push('<\/label><\/li>     <li>      <label for="all-region">       <input name="region" id="all-region" type="radio" checked="checked" />'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/similar/search-panel.htm","All regions"))),__.push("<\/label><\/li>     ")),__.push('    <\/ul>   <\/div>     <div id="scope-filter" class="section">    <b>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/similar/search-panel.htm","Scope"))),__.push('<\/b>    <ul>     <li>      <label for="same-dataset">       <input name="dataset" id="same-dataset" type="radio" />'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/similar/search-panel.htm","Same dataset"))),__.push('<\/label><\/li>     <li>      <label for="all-dataset">       <input name="dataset" id="all-dataset" type="radio" checked="checked" />'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/similar/search-panel.htm","World data atlas"))),__.push('<\/label><\/li>    <\/ul>   <\/div>     <div class="section">    <b>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/similar/search-panel.htm","Themes"))),__.push('<\/b>    <ul id="theme-list"><\/ul>   <\/div>      <div class="section">    <b>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/similar/search-panel.htm","Terms"))),__.push('<\/b>    <ul id="term-list"><\/ul>   <\/div>  <\/div>');return __});jQuery.template("term-list",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push(""),typeof selected!="undefined"&&selected!=null&&(typeof selected=="function"?selected.call($item):selected)&&(__.push('  <li>   <label>    <input class="term-item" type="checkbox" value="'),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push('" checked="checked" />    '),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push("   <\/label>  <\/li>  ")),__.push("");return __});jQuery.template("theme-list",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push(""),typeof selected!="undefined"&&selected!=null&&(typeof selected=="function"?selected.call($item):selected)&&(__.push('  <li>   <label>    <input class="theme-item" type="checkbox" value="'),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push('" checked="checked" />    '),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push("   <\/label>  <\/li>  ")),__.push("");return __});jQuery.template("timeseries",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="similar-search-result-item">   <div class="edit-pane">    <h3 class="item-title" title="'),typeof item.title!="undefined"&&item.title!=null&&__.push($.encode(typeof item.title=="function"?item.title.call($item):item.title)),__.push('">'),typeof Knoema.Utils.truncateText!="undefined"&&Knoema.Utils.truncateText!=null&&__.push($.encode(Knoema.Utils.truncateText(item.title,380,"Arial","12pt","bold"))),__.push('<\/h3>    <span class="sub-title">R = '),typeof item.correlation!="undefined"&&item.correlation!=null&&__.push($.encode(typeof item.correlation=="function"?item.correlation.call($item):item.correlation)),__.push(", PC = "),typeof item.proCyclicality!="undefined"&&item.proCyclicality!=null&&__.push($.encode(typeof item.proCyclicality=="function"?item.proCyclicality.call($item):item.proCyclicality)),__.push(", "),typeof item.lag!="undefined"&&item.lag!=null&&__.push($.encode(typeof item.lag=="function"?item.lag.call($item):item.lag)),__.push(" "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/similar/timeseries.htm","year(s)"))),__.push('<\/span>   <\/div>   <div class="visualization" data-order-index="'),typeof index!="undefined"&&index!=null&&__.push($.encode(typeof index=="function"?index.call($item):index)),__.push('" data-dataset-id="'),typeof item.dataset.id!="undefined"&&item.dataset.id!=null&&__.push($.encode(typeof item.dataset.id=="function"?item.dataset.id.call($item):item.dataset.id)),__.push('" data-region-key="'),typeof item.geoDimentionKey!="undefined"&&item.geoDimentionKey!=null&&__.push($.encode(typeof item.geoDimentionKey=="function"?item.geoDimentionKey.call($item):item.geoDimentionKey)),__.push('" data-timeseries-id="'),typeof item.timeSeriesKey!="undefined"&&item.timeSeriesKey!=null&&__.push($.encode(typeof item.timeSeriesKey=="function"?item.timeSeriesKey.call($item):item.timeSeriesKey)),__.push('"><\/div>   <button type="button" class="ui-button ui-button-text-only add-similar-series" role="button" aria-disabled="false">    <span class="ui-button-text">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search/similar/timeseries.htm","Add to Playground"))),__.push("<\/span>   <\/button>  <\/div>");return __})