diff options
Diffstat (limited to 'plugins/jetpack/_inc/build/masterbar/tracks-events.min.js')
-rw-r--r-- | plugins/jetpack/_inc/build/masterbar/tracks-events.min.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/jetpack/_inc/build/masterbar/tracks-events.min.js b/plugins/jetpack/_inc/build/masterbar/tracks-events.min.js index 2beb0bb9..665a78a3 100644 --- a/plugins/jetpack/_inc/build/masterbar/tracks-events.min.js +++ b/plugins/jetpack/_inc/build/masterbar/tracks-events.min.js @@ -1,3 +1,3 @@ /* Do not modify this file directly. It is compiled from other files. */ /*globals jQuery, JSON */ -!function(a){function e(a,e){try{return JSON.parse(a)}catch(a){return e}}var i={"wp-admin-bar-blog":"my_sites","wp-admin-bar-newdash":"reader","wp-admin-bar-ab-new-post":"write_button","wp-admin-bar-my-account":"my_account","wp-admin-bar-notes":"notifications","wp-admin-bar-switch-site":"my_sites_switch_site","wp-admin-bar-blog-info":"my_sites_blog_info","wp-admin-bar-site-view":"my_sites_view_site","wp-admin-bar-blog-stats":"my_sites_blog_stats","wp-admin-bar-activity":"my_sites_activity","wp-admin-bar-plan":"my_sites_plan","wp-admin-bar-plan-badge":"my_sites_plan_badge","wp-admin-bar-edit-page":"my_sites_manage_site_pages","wp-admin-bar-new-page-badge":"my_sites_manage_add_page","wp-admin-bar-edit-post":"my_sites_manage_blog_posts","wp-admin-bar-new-post-badge":"my_sites_manage_add_new_post","wp-admin-bar-edit-attachment":"my_sites_manage_media","wp-admin-bar-new-attachment-badge":"my_sites_manage_add_media","wp-admin-bar-comments":"my_sites_manage_comments","wp-admin-bar-edit-testimonial":"my_sites_manage_testimonials","wp-admin-bar-new-testimonial":"my_sites_manage_add_testimonial","wp-admin-bar-edit-portfolio":"my_sites_manage_portfolio","wp-admin-bar-new-portfolio":"my_sites_manage_add_portfolio","wp-admin-bar-themes":"my_sites_personalize_themes","wp-admin-bar-cmz":"my_sites_personalize_themes_customize","wp-admin-bar-sharing":"my_sites_configure_sharing","wp-admin-bar-people":"my_sites_configure_people","wp-admin-bar-people-add":"my_sites_configure_people_add_button","wp-admin-bar-plugins":"my_sites_configure_plugins","wp-admin-bar-plugins-add":"my_sites_configure_manage_plugins","wp-admin-bar-blog-settings":"my_sites_configure_settings","wp-admin-bar-followed-sites":"reader_followed_sites","wp-admin-bar-reader-followed-sites-manage":"reader_manage_followed_sites","wp-admin-bar-discover-discover":"reader_discover","wp-admin-bar-discover-search":"reader_search","wp-admin-bar-discover-recommended-blogs":"reader_recommendations","wp-admin-bar-my-activity-my-likes":"reader_my_likes","wp-admin-bar-user-info":"my_account_user_name","wp-admin-bar-my-profile":"my_account_profile_my_profile","wp-admin-bar-account-settings":"my_account_profile_account_settings","wp-admin-bar-billing":"my_account_profile_manage_purchases","wp-admin-bar-security":"my_account_profile_security","wp-admin-bar-notifications":"my_account_profile_notifications","wp-admin-bar-get-apps":"my_account_special_get_apps","wp-admin-bar-next-steps":"my_account_special_next_steps","wp-admin-bar-help":"my_account_special_help"},t={openSite:function(a){return{clicked:"masterbar_notifications_panel_site",site_id:a.siteId}},openPost:function(a){return{clicked:"masterbar_notifications_panel_post",site_id:a.siteId,post_id:a.postId}},openComment:function(a){return{clicked:"masterbar_notifications_panel_comment",site_id:a.siteId,post_id:a.postId,comment_id:a.commentId}}};a(document).ready(function(){a(".mb-trackable .ab-item:not(div),#wp-admin-bar-notes .ab-item,#wp-admin-bar-user-info .ab-item,.mb-trackable .ab-secondary").on("click touchstart",function(e){if(window.jpTracksAJAX&&"function"==typeof window.jpTracksAJAX.record_ajax_event){var t=a(e.target),n=t.closest("li");if(t.is("a")||(t=t.closest("a")),n&&t){var s=t.attr("ID")||n.attr("ID");if(i.hasOwnProperty(s)){var r={clicked:i[s]};n.hasClass("menupop")?window.jpTracksAJAX.record_ajax_event("masterbar_click","click",r):(e.preventDefault(),window.jpTracksAJAX.record_ajax_event("masterbar_click","click",r).always(function(){window.location=t.attr("href")}))}}}})}),a(window).on("message",function(a){if(window.jpTracksAJAX&&"function"==typeof window.jpTracksAJAX.record_ajax_event){var i=!a.data&&a.originalEvent.data?a.originalEvent:a;if("https://widgets.wp.com"===i.origin){var n="string"==typeof i.data?e(i.data,{}):i.data;if("notesIframeMessage"===n.type){var s=t[n.action];s&&window.jpTracksAJAX.record_ajax_event("masterbar_click","click",s(n))}}}})}(jQuery);
\ No newline at end of file +!function(a){var e={"wp-admin-bar-blog":"my_sites","wp-admin-bar-newdash":"reader","wp-admin-bar-ab-new-post":"write_button","wp-admin-bar-my-account":"my_account","wp-admin-bar-notes":"notifications","wp-admin-bar-switch-site":"my_sites_switch_site","wp-admin-bar-blog-info":"my_sites_blog_info","wp-admin-bar-site-view":"my_sites_view_site","wp-admin-bar-blog-stats":"my_sites_blog_stats","wp-admin-bar-activity":"my_sites_activity","wp-admin-bar-plan":"my_sites_plan","wp-admin-bar-plan-badge":"my_sites_plan_badge","wp-admin-bar-edit-page":"my_sites_manage_site_pages","wp-admin-bar-new-page-badge":"my_sites_manage_add_page","wp-admin-bar-edit-post":"my_sites_manage_blog_posts","wp-admin-bar-new-post-badge":"my_sites_manage_add_new_post","wp-admin-bar-edit-attachment":"my_sites_manage_media","wp-admin-bar-new-attachment-badge":"my_sites_manage_add_media","wp-admin-bar-comments":"my_sites_manage_comments","wp-admin-bar-edit-testimonial":"my_sites_manage_testimonials","wp-admin-bar-new-testimonial":"my_sites_manage_add_testimonial","wp-admin-bar-edit-portfolio":"my_sites_manage_portfolio","wp-admin-bar-new-portfolio":"my_sites_manage_add_portfolio","wp-admin-bar-themes":"my_sites_personalize_themes","wp-admin-bar-cmz":"my_sites_personalize_themes_customize","wp-admin-bar-sharing":"my_sites_configure_sharing","wp-admin-bar-people":"my_sites_configure_people","wp-admin-bar-people-add":"my_sites_configure_people_add_button","wp-admin-bar-plugins":"my_sites_configure_plugins","wp-admin-bar-plugins-add":"my_sites_configure_manage_plugins","wp-admin-bar-blog-settings":"my_sites_configure_settings","wp-admin-bar-followed-sites":"reader_followed_sites","wp-admin-bar-reader-followed-sites-manage":"reader_manage_followed_sites","wp-admin-bar-discover-discover":"reader_discover","wp-admin-bar-discover-search":"reader_search","wp-admin-bar-discover-recommended-blogs":"reader_recommendations","wp-admin-bar-my-activity-my-likes":"reader_my_likes","wp-admin-bar-user-info":"my_account_user_name","wp-admin-bar-my-profile":"my_account_profile_my_profile","wp-admin-bar-account-settings":"my_account_profile_account_settings","wp-admin-bar-billing":"my_account_profile_manage_purchases","wp-admin-bar-security":"my_account_profile_security","wp-admin-bar-notifications":"my_account_profile_notifications","wp-admin-bar-get-apps":"my_account_special_get_apps","wp-admin-bar-next-steps":"my_account_special_next_steps","wp-admin-bar-help":"my_account_special_help"},i={openSite:function(a){return{clicked:"masterbar_notifications_panel_site",site_id:a.siteId}},openPost:function(a){return{clicked:"masterbar_notifications_panel_post",site_id:a.siteId,post_id:a.postId}},openComment:function(a){return{clicked:"masterbar_notifications_panel_comment",site_id:a.siteId,post_id:a.postId,comment_id:a.commentId}}};a(document).ready(function(){a(".mb-trackable .ab-item:not(div),#wp-admin-bar-notes .ab-item,#wp-admin-bar-user-info .ab-item,.mb-trackable .ab-secondary").on("click touchstart",function(i){if(window.jpTracksAJAX&&"function"==typeof window.jpTracksAJAX.record_ajax_event){var t=a(i.target),n=t.closest("li");if(t.is("a")||(t=t.closest("a")),n&&t){var s=t.attr("ID")||n.attr("ID");if(e.hasOwnProperty(s)){var r={clicked:e[s]};n.hasClass("menupop")?window.jpTracksAJAX.record_ajax_event("masterbar_click","click",r):(i.preventDefault(),window.jpTracksAJAX.record_ajax_event("masterbar_click","click",r).always(function(){window.location=t.attr("href")}))}}}})}),a(window).on("message",function(a){if(window.jpTracksAJAX&&"function"==typeof window.jpTracksAJAX.record_ajax_event){var e=!a.data&&a.originalEvent.data?a.originalEvent:a;if("https://widgets.wp.com"===e.origin){var t="string"==typeof e.data?function(a,e){try{return JSON.parse(a)}catch(a){return e}}(e.data,{}):e.data;if("notesIframeMessage"===t.type){var n=i[t.action];n&&window.jpTracksAJAX.record_ajax_event("masterbar_click","click",n(t))}}}})}(jQuery);
\ No newline at end of file |