jQuery.template("Tmpl-transformation-manager",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="transformation-mananger">  <div class="tsm-left">   '),typeof(frequencies&&frequencies.length>0)!="undefined"&&(frequencies&&frequencies.length>0)!=null&&(typeof(frequencies&&frequencies.length>0)=="function"?(frequencies&&frequencies.length>0).call($item):frequencies&&frequencies.length>0)&&(__.push('   <div class="tsm-control time-aggregation">    <div class="tsm-control-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/transformation-manager.htm","Frequency"))),__.push('<\/div>    <div class="tsm-control-value">     '),typeof frequencies!="undefined"&&frequencies!=null&&$.each(typeof frequencies=="function"?frequencies.call($item):frequencies,function(n,freq){with(this)__.push('     <div class="tsm-control-btn'),typeof(selectedFrequencies&&selectedFrequencies.indexOf(freq)!==-1)!="undefined"&&(selectedFrequencies&&selectedFrequencies.indexOf(freq)!==-1)!=null&&(typeof(selectedFrequencies&&selectedFrequencies.indexOf(freq)!==-1)=="function"?(selectedFrequencies&&selectedFrequencies.indexOf(freq)!==-1).call($item):selectedFrequencies&&selectedFrequencies.indexOf(freq)!==-1)&&__.push(" active"),__.push('" data-frequency="'),typeof freq!="undefined"&&freq!=null&&__.push($.encode(typeof freq=="function"?freq.call($item):freq)),__.push('">'),typeof freq!="undefined"&&freq!=null&&__.push($.encode(typeof freq=="function"?freq.call($item):freq)),__.push("<\/div>     ")}),__.push("    <\/div>   <\/div>   ")),__.push('   <div class="tsm-control transformations">    <div class="tsm-control-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/transformation-manager.htm","Transformation"))),__.push('<\/div>    <div class="tsm-control-value">     <div class="tsm-control-select">      <div class="tsm-control-select-value"><\/div>      <div class="tsm-control-select-list">       <div class="time-aggregation-select">        <div class="tsm-control-select-item item-title">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/transformation-manager.htm","Aggregations"))),__.push("<\/div>        "),typeof timeAggregations!="undefined"&&timeAggregations!=null&&$.each(typeof timeAggregations=="function"?timeAggregations.call($item):timeAggregations,function(n,timeAggr){with(this)__.push('        <div class="tsm-control-select-item time-aggr" data-key="'),typeof timeAggr.key!="undefined"&&timeAggr.key!=null&&__.push($.encode(typeof timeAggr.key=="function"?timeAggr.key.call($item):timeAggr.key)),__.push('" data-type="'),typeof timeAggr.type!="undefined"&&timeAggr.type!=null&&__.push($.encode(typeof timeAggr.type=="function"?timeAggr.type.call($item):timeAggr.type)),__.push('">'),typeof timeAggr.name!="undefined"&&timeAggr.name!=null&&__.push($.encode(typeof timeAggr.name=="function"?timeAggr.name.call($item):timeAggr.name)),__.push("<\/div>        ")}),__.push('        <div class="tsm-control-select-item item-title"><\/div>       <\/div>       <div class="transformation-select">        <div class="tsm-control-select-item item-title">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/transformation-manager.htm","Transformations"))),__.push("<\/div>        "),typeof transformations!="undefined"&&transformations!=null&&$.each(typeof transformations=="function"?transformations.call($item):transformations,function(n,transform){with(this)__.push('        <div class="tsm-control-select-item transform" data-key="'),typeof transform.key!="undefined"&&transform.key!=null&&__.push($.encode(typeof transform.key=="function"?transform.key.call($item):transform.key)),__.push('">'),typeof transform.name!="undefined"&&transform.name!=null&&__.push($.encode(typeof transform.name=="function"?transform.name.call($item):transform.name)),__.push("<\/div>        ")}),__.push('       <\/div>      <\/div>     <\/div>     <input class="transformation-value'),typeof!selectedTransformation.withValue!="undefined"&&!selectedTransformation.withValue!=null&&(typeof!selectedTransformation.withValue=="function"?(!selectedTransformation.withValue).call($item):!selectedTransformation.withValue)&&__.push(" hide"),__.push('" type="number" min="0" value="'),typeof transformationValue!="undefined"&&transformationValue!=null&&__.push($.encode(typeof transformationValue=="function"?transformationValue.call($item):transformationValue)),__.push('" />    <\/div>   <\/div>  <\/div>  '),typeof(useDateRangePresets&&dateRangePresets&&dateRangePresets.length>0)!="undefined"&&(useDateRangePresets&&dateRangePresets&&dateRangePresets.length>0)!=null&&(typeof(useDateRangePresets&&dateRangePresets&&dateRangePresets.length>0)=="function"?(useDateRangePresets&&dateRangePresets&&dateRangePresets.length>0).call($item):useDateRangePresets&&dateRangePresets&&dateRangePresets.length>0)&&(__.push('  <div class="tsm-right">   <div class="tsm-control time-range-preset">    <div class="tsm-control-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/transformation-manager.htm","Time period"))),__.push('<\/div>    <div class="tsm-control-value">     '),typeof dateRangePresets!="undefined"&&dateRangePresets!=null&&$.each(typeof dateRangePresets=="function"?dateRangePresets.call($item):dateRangePresets,function(n,preset){with(this)__.push('     <div class="tsm-control-btn'),typeof(preset.key===selectedDateRangePreset.key)!="undefined"&&preset.key===selectedDateRangePreset.key!=null&&(typeof(preset.key===selectedDateRangePreset.key)=="function"?(preset.key===selectedDateRangePreset.key).call($item):preset.key===selectedDateRangePreset.key)&&__.push(" active"),__.push('" data-key="'),typeof preset.key!="undefined"&&preset.key!=null&&__.push($.encode(typeof preset.key=="function"?preset.key.call($item):preset.key)),__.push('">'),typeof preset.key!="undefined"&&preset.key!=null&&__.push($.encode(typeof preset.key=="function"?preset.key.call($item):preset.key)),__.push("<\/div>     ")}),__.push("    <\/div>   <\/div>  <\/div>  ")),__.push(" <\/div>");return __})