jQuery.template("Tmpl-dataset-detail-column",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="dataset-detail-column-dialog dialog" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-detail-column.htm","Detail Column"))),__.push('">   <div class="form">    <div class="detail-column-validation-message"><\/div>    <br />    <label for="column-name">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-detail-column.htm","Name:"))),__.push('<\/label>    <span id="column-name">'),typeof column.name!="undefined"&&column.name!=null&&__.push($.encode(typeof column.name=="function"?column.name.call($item):column.name)),__.push('<\/span><br /><br />    <label for="column-type">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-detail-column.htm","Type:"))),__.push('<\/label>    <span id="column-type">'),typeof column.type!="undefined"&&column.type!=null&&__.push($.encode(typeof column.type=="function"?column.type.call($item):column.type)),__.push('<\/span><br /><br />    <input id="column-hidden" type="checkbox"'),typeof column.hidden!="undefined"&&column.hidden!=null&&(typeof column.hidden=="function"?column.hidden.call($item):column.hidden)?__.push(" checked"):!0&&__.push(" unchecked"),__.push('/>    <label for="column-hidden">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-detail-column.htm","Hidden"))),__.push("<\/label><br /><br />    "),typeof(column.type==="Date")!="undefined"&&column.type==="Date"!=null&&(typeof(column.type==="Date")=="function"?(column.type==="Date").call($item):column.type==="Date")&&(__.push('    <input id="column-datelabel" type="checkbox"'),typeof column.dateLabel!="undefined"&&column.dateLabel!=null&&(typeof column.dateLabel=="function"?column.dateLabel.call($item):column.dateLabel)?__.push(" checked"):!0&&__.push(" unchecked"),__.push('/>    <label for="column-datelabel">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-detail-column.htm","Date Label"))),__.push("<\/label>    ")),__.push("    "),typeof!editSimpleMode!="undefined"&&!editSimpleMode!=null&&(typeof!editSimpleMode=="function"?(!editSimpleMode).call($item):!editSimpleMode)&&(__.push('    <label for="column-locale">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-detail-column.htm","Locale:"))),__.push('<\/label>    <select id="column-locale">     '),typeof Knoema.Utils.keys!="undefined"&&Knoema.Utils.keys!=null&&$.each(Knoema.Utils.keys(langs).reverse(),function(n,loc){with(this)__.push("      <option      "),typeof(column.locale==loc)!="undefined"&&column.locale==loc!=null&&(typeof(column.locale==loc)=="function"?(column.locale==loc).call($item):column.locale==loc)&&__.push("       selected      "),__.push('      value="'),typeof loc!="undefined"&&loc!=null&&__.push($.encode(typeof loc=="function"?loc.call($item):loc)),__.push('">'),typeof langs[loc]!="undefined"&&langs[loc]!=null&&__.push($.encode(typeof langs[loc]=="function"?langs[loc].call($item):langs[loc])),__.push("<\/option>     ")}),__.push('    <\/select>    <br /><br />    <label for="base-column">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-detail-column.htm","Base Column:"))),__.push('<\/label>    <select id="base-column">     '),typeof columns!="undefined"&&columns!=null&&$.each(typeof columns=="function"?columns.call($item):columns,function(n,col){with(this)__.push("      "),typeof(col.key==-1||col.key!=column.key&&col.linkedTo==-1)!="undefined"&&(col.key==-1||col.key!=column.key&&col.linkedTo==-1)!=null&&(typeof(col.key==-1||col.key!=column.key&&col.linkedTo==-1)=="function"?(col.key==-1||col.key!=column.key&&col.linkedTo==-1).call($item):col.key==-1||col.key!=column.key&&col.linkedTo==-1)&&(__.push("       <option       "),typeof(column.linkedTo!=null&&column.linkedTo==col.key)!="undefined"&&(column.linkedTo!=null&&column.linkedTo==col.key)!=null&&(typeof(column.linkedTo!=null&&column.linkedTo==col.key)=="function"?(column.linkedTo!=null&&column.linkedTo==col.key).call($item):column.linkedTo!=null&&column.linkedTo==col.key)&&__.push("        selected       "),__.push('       value="'),typeof col.key!="undefined"&&col.key!=null&&__.push($.encode(typeof col.key=="function"?col.key.call($item):col.key)),__.push('">'),typeof col.name!="undefined"&&col.name!=null&&__.push($.encode(typeof col.name=="function"?col.name.call($item):col.name)),__.push("<\/option>      ")),__.push("     ")}),__.push("    <\/select>    <br /><br />    ")),__.push("   <\/div>  <\/div>");return __});jQuery.template("Tmpl-dataset-detail-column-row",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<tr>   <td class="column-n">'),typeof number!="undefined"&&number!=null&&__.push($.encode(typeof number=="function"?number.call($item):number)),__.push('<\/td>   <td class="column-state">    '),typeof(column.refreshStatus==="Deleted")!="undefined"&&column.refreshStatus==="Deleted"!=null&&(typeof(column.refreshStatus==="Deleted")=="function"?(column.refreshStatus==="Deleted").call($item):column.refreshStatus==="Deleted")?__.push('     <i class="fa fa-minus-circle" title="Deleted" aria-hidden="true"><\/i>    '):!0&&(__.push("     "),typeof(column.refreshStatus==="New")!="undefined"&&column.refreshStatus==="New"!=null&&(typeof(column.refreshStatus==="New")=="function"?(column.refreshStatus==="New").call($item):column.refreshStatus==="New")?__.push('      <i class="fa fa-plus-circle" title="New" aria-hidden="true"><\/i>     '):!0&&__.push('      <i class="fa fa-check-circle" title="Existing" aria-hidden="true"><\/i>     '),__.push("    ")),__.push('   <\/td>   <td class="column-name">    '),typeof isEditable!="undefined"&&isEditable!=null&&(typeof isEditable=="function"?isEditable.call($item):isEditable)?(__.push('     <a href="#" class="edit-detail-column" data-column-index="'),typeof(number-1)!="undefined"&&number-1!=null&&__.push($.encode(typeof(number-1)=="function"?(number-1).call($item):number-1)),__.push('">'),typeof column.name!="undefined"&&column.name!=null&&__.push($.encode(typeof column.name=="function"?column.name.call($item):column.name)),__.push("<\/a>    ")):!0&&(__.push("     "),typeof column.name!="undefined"&&column.name!=null&&__.push($.encode(typeof column.name=="function"?column.name.call($item):column.name)),__.push("    ")),__.push('   <\/td>   <td class="column-common">'),typeof column.status!="undefined"&&column.status!=null&&__.push($.encode(typeof column.status=="function"?column.status.call($item):column.status)),__.push('<\/td>   <td class="column-common">'),typeof(column.hidden?"Yes":"No")!="undefined"&&(column.hidden?"Yes":"No")!=null&&__.push($.encode(typeof(column.hidden?"Yes":"No")=="function"?(column.hidden?"Yes":"No").call($item):column.hidden?"Yes":"No")),__.push('<\/td>   <td class="column-common">'),typeof column.type!="undefined"&&column.type!=null&&__.push($.encode(typeof column.type=="function"?column.type.call($item):column.type)),__.push('<\/td>   <td class="column-common">'),typeof(column.type==="Date"&&column.name!=="Date"?column.dateLabel?"Yes":"No":"n/a")!="undefined"&&(column.type==="Date"&&column.name!=="Date"?column.dateLabel?"Yes":"No":"n/a")!=null&&__.push($.encode(typeof(column.type==="Date"&&column.name!=="Date"?column.dateLabel?"Yes":"No":"n/a")=="function"?(column.type==="Date"&&column.name!=="Date"?column.dateLabel?"Yes":"No":"n/a").call($item):column.type==="Date"&&column.name!=="Date"?column.dateLabel?"Yes":"No":"n/a")),__.push('<\/td>   <td class="column-locale">'),typeof column.locale!="undefined"&&column.locale!=null&&__.push($.encode(typeof column.locale=="function"?column.locale.call($item):column.locale)),__.push("<\/td>  <\/tr>");return __})