jQuery.template("Tmpl-snowflake-query",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="snowflake-query-dialog" class="clearfix">   '),typeof IsCommunityAppEnabled!="undefined"&&IsCommunityAppEnabled!=null&&(typeof IsCommunityAppEnabled=="function"?IsCommunityAppEnabled.call($item):IsCommunityAppEnabled)?(__.push("  <p>   "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/snowflake-query.htm","Please use the query below to get the selected data in Snowflake:"))),__.push("  <\/p>  ")):!0&&(__.push("  <p>   "),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/snowflake-query.htm","Please use the query below to get the selected data in Snowflake. You need to request access to {schema} on Snowflake Data Marketplace in order for it to work.",{schema:Listing.Name})),__.push('  <\/p>  <div class="snowflake-card '),typeof(Listing.Provider==="ThirdParty"&&typeof Listing.Tag!="undefined")!="undefined"&&(Listing.Provider==="ThirdParty"&&typeof Listing.Tag!="undefined")!=null&&(typeof(Listing.Provider==="ThirdParty"&&typeof Listing.Tag!="undefined")=="function"?(Listing.Provider==="ThirdParty"&&typeof Listing.Tag!="undefined").call($item):Listing.Provider==="ThirdParty"&&typeof Listing.Tag!="undefined")&&(__.push("external tag-"),typeof Listing.Tag.toLowerCase!="undefined"&&Listing.Tag.toLowerCase!=null&&__.push($.encode(Listing.Tag.toLowerCase())),__.push("")),__.push('">   <span class="logo" '),typeof Listing.IconBase64!="undefined"&&Listing.IconBase64!=null&&(typeof Listing.IconBase64=="function"?Listing.IconBase64.call($item):Listing.IconBase64)&&(__.push(' style="background-image: url('),typeof Listing.IconBase64!="undefined"&&Listing.IconBase64!=null&&__.push($.encode(typeof Listing.IconBase64=="function"?Listing.IconBase64.call($item):Listing.IconBase64)),__.push(');" ')),__.push(">"),typeof(Listing.Provider==="ThirdParty")!="undefined"&&Listing.Provider==="ThirdParty"!=null&&(typeof(Listing.Provider==="ThirdParty")=="function"?(Listing.Provider==="ThirdParty").call($item):Listing.Provider==="ThirdParty")?(__.push(""),typeof Listing.Tag!="undefined"&&Listing.Tag!=null&&__.push($.encode(typeof Listing.Tag=="function"?Listing.Tag.call($item):Listing.Tag)),__.push("")):!0&&__.push("Knoema"),__.push("<\/span>   <h3>"),typeof Listing.Name!="undefined"&&Listing.Name!=null&&__.push($.encode(typeof Listing.Name=="function"?Listing.Name.call($item):Listing.Name)),__.push("<\/h3>   "),typeof Listing.Description!="undefined"&&Listing.Description!=null&&(typeof Listing.Description=="function"?Listing.Description.call($item):Listing.Description)&&(__.push("   <p>    "),typeof Listing.Description!="undefined"&&Listing.Description!=null&&__.push($.encode(typeof Listing.Description=="function"?Listing.Description.call($item):Listing.Description)),__.push("   <\/p>   ")),__.push('   <a class="listing-url" href="'),typeof Listing.Url!="undefined"&&Listing.Url!=null&&__.push($.encode(typeof Listing.Url=="function"?Listing.Url.call($item):Listing.Url)),__.push('" target="_blank">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/snowflake-query.htm","Open Listing"))),__.push("<\/a>  <\/div>  ")),__.push('  <div class="query-column">   <textarea readonly="readonly" class="snippet-text"><\/textarea>  <\/div> <\/div>');return __})