mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 12:51:09 +02:00
112 lines
No EOL
13 KiB
JavaScript
112 lines
No EOL
13 KiB
JavaScript
(function() {
|
|
var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
|
|
templates['saved_premiumshell'] = template({"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
|
return "<div class=\"pkt_ext_suggestedtag_detail pkt_ext_suggestedtag_detail_loading\">\n <h4 data-l10n-id=\"pocket-panel-saved-suggested-tags\"></h4>\n <div class=\"pkt_ext_loadingspinner\"><div></div></div>\n <ul class=\"pkt_ext_cf\">\n </ul>\n</div>\n\n<hr/>\n";
|
|
},"useData":true});
|
|
templates['saved_shell'] = template({"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
|
var helper;
|
|
|
|
return "<div class=\"pkt_ext_initload\">\n <div class=\"pkt_ext_logo\"></div>\n <div class=\"pkt_ext_topdetail\">\n <h2 data-l10n-id=\"pocket-panel-saved-saving-tags\"></h2>\n </div>\n <div class=\"pkt_ext_loadingspinner\"><div></div></div>\n</div>\n<div class=\"pkt_ext_detail\">\n <div class=\"pkt_ext_logo\"></div>\n <div class=\"pkt_ext_topdetail\">\n <h2></h2>\n <h3 class=\"pkt_ext_errordetail\"></h3>\n <nav class=\"pkt_ext_item_actions pkt_ext_cf\">\n <ul>\n <li><a class=\"pkt_ext_removeitem\" href=\"#\" data-l10n-id=\"pocket-panel-saved-remove-page\"></a></li>\n <li class=\"pkt_ext_actions_separator\"></li>\n <li><a class=\"pkt_ext_openpocket\" href=\"https://"
|
|
+ this.escapeExpression(((helper = (helper = helpers.pockethost || (depth0 != null ? depth0.pockethost : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0,{"name":"pockethost","hash":{},"data":data}) : helper)))
|
|
+ "/a?src=ff_ext_saved\" target=\"_blank\" data-l10n-id=\"pocket-panel-signup-view-list\"></a></li>\n </ul>\n </nav>\n </div>\n <div class=\"pkt_ext_tag_detail pkt_ext_cf\">\n <div class=\"pkt_ext_tag_input_wrapper\">\n <div class=\"pkt_ext_tag_input_blocker\"></div>\n <input class=\"pkt_ext_tag_input\" type=\"text\" data-l10n-id=\"pocket-panel-saved-add-tags\">\n </div>\n <a href=\"#\" class=\"pkt_ext_btn pkt_ext_btn_disabled\" data-l10n-id=\"pocket-panel-saved-save-tags\"></a>\n </div>\n <div class=\"pkt_ext_edit_msg_container\">\n <p class=\"pkt_ext_edit_msg\"></p>\n </div>\n</div>\n\n<div class=\"pkt_ext_subshell\">\n <div class=\"pkt_ext_item_recs\"></div>\n</div>\n";
|
|
},"useData":true});
|
|
templates['signup_shell'] = template({"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
|
var helper, alias1=helpers.helperMissing, alias2="function", alias3=this.escapeExpression;
|
|
|
|
return "<div class=\"pkt_ext_introdetail pkt_ext_introdetailstoryboard\">\n <div class=\"pkt_ext_introstory pkt_ext_introstoryone\">\n <div class=\"pkt_ext_introstory_text\">\n <p class=\"pkt_ext_tagline\" data-l10n-id=\"pocket-panel-signup-tagline-story-one\"></p>\n </div>\n <div class=\"pkt_ext_introstoryone_img\"></div>\n </div>\n <div class=\"pkt_ext_introstorydivider\"></div>\n <div class=\"pkt_ext_introstory pkt_ext_introstorytwo\">\n <div class=\"pkt_ext_introstory_text\">\n <p class=\"pkt_ext_tagline\" data-l10n-id=\"pocket-panel-signup-tagline-story-two\"></p>\n <p><a class=\"pkt_ext_learnmore\" href=\"https://"
|
|
+ alias3(((helper = (helper = helpers.pockethost || (depth0 != null ? depth0.pockethost : depth0)) != null ? helper : alias1),(typeof helper === alias2 ? helper.call(depth0,{"name":"pockethost","hash":{},"data":data}) : helper)))
|
|
+ "/firefox_learnmore?utm_campaign="
|
|
+ alias3(((helper = (helper = helpers.utmCampaign || (depth0 != null ? depth0.utmCampaign : depth0)) != null ? helper : alias1),(typeof helper === alias2 ? helper.call(depth0,{"name":"utmCampaign","hash":{},"data":data}) : helper)))
|
|
+ "&utm_source="
|
|
+ alias3(((helper = (helper = helpers.utmSource || (depth0 != null ? depth0.utmSource : depth0)) != null ? helper : alias1),(typeof helper === alias2 ? helper.call(depth0,{"name":"utmSource","hash":{},"data":data}) : helper)))
|
|
+ "&s=ffi\" target=\"_blank\" data-l10n-id=\"pocket-panel-signup-learn-more\"></a></p>\n </div>\n <div class=\"pkt_ext_introstorytwo_img\"></div>\n </div>\n</div>\n<div class=\"pkt_ext_signupdetail\">\n <h4 data-l10n-id=\"pocket-panel-signup-signup-cta\"></h4>\n <p class=\"btn-container\"><a href=\"https://"
|
|
+ alias3(((helper = (helper = helpers.pockethost || (depth0 != null ? depth0.pockethost : depth0)) != null ? helper : alias1),(typeof helper === alias2 ? helper.call(depth0,{"name":"pockethost","hash":{},"data":data}) : helper)))
|
|
+ "/ff_signup?utm_campaign="
|
|
+ alias3(((helper = (helper = helpers.utmCampaign || (depth0 != null ? depth0.utmCampaign : depth0)) != null ? helper : alias1),(typeof helper === alias2 ? helper.call(depth0,{"name":"utmCampaign","hash":{},"data":data}) : helper)))
|
|
+ "&utm_source="
|
|
+ alias3(((helper = (helper = helpers.utmSource || (depth0 != null ? depth0.utmSource : depth0)) != null ? helper : alias1),(typeof helper === alias2 ? helper.call(depth0,{"name":"utmSource","hash":{},"data":data}) : helper)))
|
|
+ "&s=ffi\" target=\"_blank\" class=\"btn signup-btn-firefox\"><span class=\"logo\"></span><span class=\"text\" data-l10n-id=\"pocket-panel-signup-signup-firefox\"></span></a></p>\n <p class=\"btn-container\"><a href=\"https://"
|
|
+ alias3(((helper = (helper = helpers.pockethost || (depth0 != null ? depth0.pockethost : depth0)) != null ? helper : alias1),(typeof helper === alias2 ? helper.call(depth0,{"name":"pockethost","hash":{},"data":data}) : helper)))
|
|
+ "/signup?utm_campaign="
|
|
+ alias3(((helper = (helper = helpers.utmCampaign || (depth0 != null ? depth0.utmCampaign : depth0)) != null ? helper : alias1),(typeof helper === alias2 ? helper.call(depth0,{"name":"utmCampaign","hash":{},"data":data}) : helper)))
|
|
+ "&utm_source="
|
|
+ alias3(((helper = (helper = helpers.utmSource || (depth0 != null ? depth0.utmSource : depth0)) != null ? helper : alias1),(typeof helper === alias2 ? helper.call(depth0,{"name":"utmSource","hash":{},"data":data}) : helper)))
|
|
+ "&force=email&src=extension&s=ffi\" target=\"_blank\" class=\"btn btn-secondary signup-btn-email signup-btn-initstate\" data-l10n-id=\"pocket-panel-signup-signup-email\"></a></p>\n <p class=\"alreadyhave\"><span data-l10n-id=\"pocket-panel-signup-already-have\"></span> <a class=\"pkt_ext_login\" href=\"https://"
|
|
+ alias3(((helper = (helper = helpers.pockethost || (depth0 != null ? depth0.pockethost : depth0)) != null ? helper : alias1),(typeof helper === alias2 ? helper.call(depth0,{"name":"pockethost","hash":{},"data":data}) : helper)))
|
|
+ "/login?utm_campaign="
|
|
+ alias3(((helper = (helper = helpers.utmCampaign || (depth0 != null ? depth0.utmCampaign : depth0)) != null ? helper : alias1),(typeof helper === alias2 ? helper.call(depth0,{"name":"utmCampaign","hash":{},"data":data}) : helper)))
|
|
+ "&utm_source="
|
|
+ alias3(((helper = (helper = helpers.utmSource || (depth0 != null ? depth0.utmSource : depth0)) != null ? helper : alias1),(typeof helper === alias2 ? helper.call(depth0,{"name":"utmSource","hash":{},"data":data}) : helper)))
|
|
+ "&src=extension&s=ffi\" target=\"_blank\" data-l10n-id=\"pocket-panel-signup-login\"></a>.</p>\n</div>\n";
|
|
},"useData":true});
|
|
templates['home_shell'] = template({"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
|
var helper;
|
|
|
|
return "<div class=\"pkt_ext_wrapperhome\">\n <div class=\"pkt_ext_home\">\n <div class=\"pkt_ext_header\">\n <div class=\"pkt_ext_logo\"></div>\n <a class=\"pkt_ext_mylist\" href=\"https://"
|
|
+ this.escapeExpression(((helper = (helper = helpers.pockethost || (depth0 != null ? depth0.pockethost : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0,{"name":"pockethost","hash":{},"data":data}) : helper)))
|
|
+ "/a?src=ff_ext_home\" target=\"_blank\">\n <span class=\"pkt_ext_mylist_icon\"></span>\n <span data-l10n-id=\"pocket-panel-home-my-list\"></span>\n </a>\n </div>\n <div class=\"pkt_ext_hr\"></div>\n <div class=\"pkt_ext_detail\">\n <h2 data-l10n-id=\"pocket-panel-home-welcome-back\"></h2>\n <p data-l10n-id=\"pocket-panel-home-paragraph\"></p>\n <div class=\"pkt_ext_more\"></div>\n </div>\n </div>\n</div>\n";
|
|
},"useData":true});
|
|
templates['popular_topics'] = template({"1":function(depth0,helpers,partials,data) {
|
|
var stack1, alias1=this.lambda, alias2=this.escapeExpression;
|
|
|
|
return " <li>\n <a class=\"pkt_ext_topic\" href=\"https://"
|
|
+ alias2(alias1(((stack1 = (data && data.root)) && stack1.pockethost), depth0))
|
|
+ "/explore/"
|
|
+ alias2(alias1((depth0 != null ? depth0.topic : depth0), depth0))
|
|
+ "?utm_source="
|
|
+ alias2(alias1(((stack1 = (data && data.root)) && stack1.utmsource), depth0))
|
|
+ "\">\n "
|
|
+ alias2(alias1((depth0 != null ? depth0.title : depth0), depth0))
|
|
+ "\n <span class=\"pkt_ext_chevron_right\"></span>\n </a>\n </li>\n";
|
|
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
|
var stack1, helper, alias1=helpers.helperMissing, alias2="function", alias3=this.escapeExpression;
|
|
|
|
return "<h3 data-l10n-id=\"pocket-panel-home-explore-popular-topics\"></h3>\n<ul>\n"
|
|
+ ((stack1 = helpers.each.call(depth0,(depth0 != null ? depth0.topics : depth0),{"name":"each","hash":{},"fn":this.program(1, data, 0),"inverse":this.noop,"data":data})) != null ? stack1 : "")
|
|
+ "</ul>\n<a class=\"pkt_ext_discover\" href=\"https://"
|
|
+ alias3(((helper = (helper = helpers.pockethost || (depth0 != null ? depth0.pockethost : depth0)) != null ? helper : alias1),(typeof helper === alias2 ? helper.call(depth0,{"name":"pockethost","hash":{},"data":data}) : helper)))
|
|
+ "/explore?utm_source="
|
|
+ alias3(((helper = (helper = helpers.utmsource || (depth0 != null ? depth0.utmsource : depth0)) != null ? helper : alias1),(typeof helper === alias2 ? helper.call(depth0,{"name":"utmsource","hash":{},"data":data}) : helper)))
|
|
+ "\" data-l10n-id=\"pocket-panel-home-discover-more\"></a>\n";
|
|
},"useData":true});
|
|
templates['explore_more'] = template({"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
|
var helper, alias1=helpers.helperMissing, alias2="function", alias3=this.escapeExpression;
|
|
|
|
return "<a class=\"pkt_ext_discover\" href=\"https://"
|
|
+ alias3(((helper = (helper = helpers.pockethost || (depth0 != null ? depth0.pockethost : depth0)) != null ? helper : alias1),(typeof helper === alias2 ? helper.call(depth0,{"name":"pockethost","hash":{},"data":data}) : helper)))
|
|
+ "/explore?utm_source="
|
|
+ alias3(((helper = (helper = helpers.utmsource || (depth0 != null ? depth0.utmsource : depth0)) != null ? helper : alias1),(typeof helper === alias2 ? helper.call(depth0,{"name":"utmsource","hash":{},"data":data}) : helper)))
|
|
+ "\" data-l10n-id=\"pocket-panel-home-explore-more\"></a>\n";
|
|
},"useData":true});
|
|
templates['item_recs'] = template({"1":function(depth0,helpers,partials,data) {
|
|
return " <h4>Similar Stories</h4>\n";
|
|
},"3":function(depth0,helpers,partials,data) {
|
|
return " <h4>Similar Story</h4>\n";
|
|
},"5":function(depth0,helpers,partials,data) {
|
|
var stack1, alias1=this.lambda, alias2=this.escapeExpression;
|
|
|
|
return " <li>\n <a href=\""
|
|
+ alias2(alias1(((stack1 = (depth0 != null ? depth0.item : depth0)) != null ? stack1.resolved_url : stack1), depth0))
|
|
+ "\" class=\"pkt_ext_item_recs_link\" target=\"_blank\">\n\n"
|
|
+ ((stack1 = helpers['if'].call(depth0,((stack1 = (depth0 != null ? depth0.item : depth0)) != null ? stack1.encodedThumbURL : stack1),{"name":"if","hash":{},"fn":this.program(6, data, 0),"inverse":this.noop,"data":data})) != null ? stack1 : "")
|
|
+ "\n <p class=\"rec-title\">"
|
|
+ alias2(alias1(((stack1 = (depth0 != null ? depth0.item : depth0)) != null ? stack1.title : stack1), depth0))
|
|
+ "</p>\n <p class=\"rec-source\">"
|
|
+ alias2(alias1(((stack1 = ((stack1 = (depth0 != null ? depth0.item : depth0)) != null ? stack1.domain_metadata : stack1)) != null ? stack1.name : stack1), depth0))
|
|
+ "</p>\n </a>\n </li>\n";
|
|
},"6":function(depth0,helpers,partials,data) {
|
|
var stack1;
|
|
|
|
return " <img class=\"rec-thumb\" src=\"https://img-getpocket.cdn.mozilla.net/80x80/filters:format(jpeg):quality(60):no_upscale():strip_exif()/"
|
|
+ this.escapeExpression(this.lambda(((stack1 = (depth0 != null ? depth0.item : depth0)) != null ? stack1.encodedThumbURL : stack1), depth0))
|
|
+ "\" />\n";
|
|
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
|
var stack1;
|
|
|
|
return "<header>\n"
|
|
+ ((stack1 = helpers['if'].call(depth0,((stack1 = (depth0 != null ? depth0.recommendations : depth0)) != null ? stack1['1'] : stack1),{"name":"if","hash":{},"fn":this.program(1, data, 0),"inverse":this.program(3, data, 0),"data":data})) != null ? stack1 : "")
|
|
+ " <a class=\"pkt_ext_learn_more\" target=\"_blank\" href=\"https://getpocket.com/story_recommendations_learn_more\">Learn more</a>\n</header>\n\n<ol>\n"
|
|
+ ((stack1 = helpers.each.call(depth0,(depth0 != null ? depth0.recommendations : depth0),{"name":"each","hash":{},"fn":this.program(5, data, 0),"inverse":this.noop,"data":data})) != null ? stack1 : "")
|
|
+ "</ol>\n";
|
|
},"useData":true});
|
|
})(); |