jQuery.template("dialog",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="geocoding-dialog">   '),typeof popup!="undefined"&&popup!=null&&(typeof popup=="function"?popup.call($item):popup)?(__.push("    <h1>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/geocoding/dialog.htm","Geocoding"))),__.push("<\/h1>   ")):!0&&(__.push("    <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/geocoding/dialog.htm","Your data has been successfully uploaded. To visualize data you need to add geo coordinates to the dimension members. Please select the dimension and click Geocode button."))),__.push("<\/p>   ")),__.push('   <div class="geocoding-container"><\/div>   '),typeof popup!="undefined"&&popup!=null&&(typeof popup=="function"?popup.call($item):popup)?(__.push('    <button class="ui-button apply">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/geocoding/dialog.htm","OK"))),__.push("<\/button>   ")):typeof addToMapButton!="undefined"&&addToMapButton!=null&&(typeof addToMapButton=="function"?addToMapButton.call($item):addToMapButton)&&(__.push('    <button class="ui-button add-layer-btn">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/geocoding/dialog.htm","Add to map"))),__.push("<\/button>   ")),__.push("  <\/div>");return __});jQuery.template("progress",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="geocoding">  <div>   <label for="dimensions">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/geocoding/progress.htm","Dimension"))),__.push('<\/label>   <select id="dimensions" class="dimensions">    '),typeof dimensions!="undefined"&&dimensions!=null&&$.each(typeof dimensions=="function"?dimensions.call($item):dimensions,function(n,dimension){with(this)__.push('     <option value="'),typeof dimension.id!="undefined"&&dimension.id!=null&&__.push($.encode(typeof dimension.id=="function"?dimension.id.call($item):dimension.id)),__.push('" data-is-geo="'),typeof dimension.isGeo!="undefined"&&dimension.isGeo!=null&&__.push($.encode(typeof dimension.isGeo=="function"?dimension.isGeo.call($item):dimension.isGeo)),__.push('">'),typeof dimension.name!="undefined"&&dimension.name!=null&&__.push($.encode(typeof dimension.name=="function"?dimension.name.call($item):dimension.name)),__.push("<\/option>    ")}),__.push('   <\/select>   <button class="ui-button geocode">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/geocoding/progress.htm","Geocode"))),__.push('<\/button>   <button class="ui-button remove">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/geocoding/progress.htm","Remove geocoding"))),__.push('<\/button>  <\/div>   <div class="progress">   <div class="total">    <div class="current"><\/div>   <\/div>   <div class="status"><\/div>  <\/div>   <div class="results"><\/div> <\/div>');return __})