-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the TUMBR wiki! ebpackJsonp([8],{0:function(e,t,i){i(1319),i(1453),i(1454),i(1455),i(1456),i(1457),i(1458),i(1459),i(1460),i(1461),i(1462),i(1463),i(1464),e.exports=i(1465)},289:function(e,t,i){"use strict";var s=i(8),o=i(3),n=i(187),a=new n({setUpSelector:function(e){e.on("change",o.bind(this.__select_change,this))},__select_change:function(e){var t=s(e.currentTarget);this.__update_select(t)},__update_select:function(e){var t=e.siblings("label");t.text(e.find(":selected").text())}});e.exports=a},935:function(e,t,i){"use strict";var s=i(3),o=i(8),n=i(214),a=i(136),r=i(936),l=i(939),u=i(940),p=n.extend({name:"EmbedManager",harnessCollection:{},harnessRequests:{},requestID:0,currentlyPlaying:null,initialize:function(){return r.on("embed*",s.bind(this._handleMessage,this)),this.listenTo(a,"CrtControl:playerCreated",this.createCrtHarness),this.on("harnessCreated",this.__onHarnessCreated),this},createCrtHarness:function(e){e.on("ready",s.bind(function(){var t=e.$el.attr("id");t in this.harnessCollection||(this.harnessCollection[t]=new u(e,t),this.trigger("harnessCreated",this.harnessCollection[t]))},this)),e.on("teardown",s.bind(function(){var t=e.$el.attr("id");this.currentlyPlaying===this.harnessCollection[t]&&(this.currentlyPlaying=null),delete this.harnessCollection[t]},this))},createHarness:function(e){e.embedID in this.harnessCollection?this.harnessCollection[e.embedID].channel.setWindow(e.source):(this.harnessCollection[e.embedID]=new l(e),this.trigger("harnessCreated",this.harnessCollection[e.embedID]))},getHarness:function(e){var t=o.Deferred();return this.harnessCollection[e]?t.resolve(this.harnessCollection[e]):(t.requestID=++this.requestID,t.embedID=e,this.harnessRequests[t.requestID]=t),t.promise()},_handleMessage:function(e){var t,i=/^(embed-.+?):(.+?):(.+?):_syn$/,s=JSON.parse(e.data);s&&s.method&&(t=s.method.match(i))&&(s.embedID=t[1],s.service=t[2],s.postID=t[3],s.source=e.source,this.createHarness(s))},__onHarnessCreated:function(e){s.forEach(this.harnessRequests,s.bind(function(t){t.embedID===e.getData().embedID&&(t.resolve(e),delete this.harnessRequests[t.requestID])},this)),this.listenTo(e,"stateChange",this.__onHarnessStateChange)},__onHarnessStateChange:function(e,t){"playing"===e||"focus"===e?(this.currentlyPlaying&&this.currentlyPlaying!==t&&this.currentlyPlaying.pause(),this.currentlyPlaying=t):this.currentlyPlaying===t&&(this.currentlyPlaying=null)}});e.exports=new p},939:function(e,t,i){"use strict";var s=i(8),o=i(3),n=i(214),a=i(936),r=i(136),l=i(138),u="autoplaying",p=n.extend({name:"MediaEmbedHarness",$post:null,channel:null,watcher:null,_data:{service:"",embedID:"",postID:"",source:""},videoState:"",initialize:function(e){e.embedID&&(this._data=o.pick(e,o.keys(this._data)),this.$iframe=s("#"+this._data.embedID),this.iframe=this.$iframe.get(0),this.$post=this.$iframe.closest(".post"),this.post=this.$post.get(0),this.postId=this.$post.data("post-id"),this.isPinned=this.$post.data("is-pinned"),this.channel=new a({namespace:this._data.embedID+":"+this._data.service+":"+this._data.postID,window:this._data.source}),this.channel.on_connection(o.bind(function(){this.channel.listen_to("stateChanged",this.__onStateChange,this),this.channel.listen_to("playerReady",this.__autoplayPinnedPost,this),this.channel.listen_to("heightChanged",this.__onHeightChange,this)},this)),this._setupWatcher())},__autoplayPinnedPost:function(){this.isPinned&&this.autoplay()},autoplay:function(){this.channel&&this.channel.send("autoplay")},play:function(){this.channel&&this.channel.send("play")},pause:function(){this.channel&&this.channel.send("pause")},getState:function(){this.channel.call("getState").then(function(e,t){return t})},getData:function(){return this._data},_setupWatcher:function(){this.post&&(this.watcher=l.create(this.post,-52),this.watcher.fullyEnterViewport(o.bind(function(){this.videoState===u&&this.autoplay(),this.trigger("fullyEnterViewport")},this)),this.watcher.partiallyExitViewport(o.bind(function(){this.trigger("partiallyExitViewport")},this)),this.watcher.exitViewport(o.bind(function(){this.trigger("exitViewport")},this)))},onStateChange:function(e){this.videoState=e;var t={loggingData:o.extend({},o.omit(this._data,"source"),{state:e})};t.loggingData.postID&&"null"!==t.loggingData.postID||(t.loggingData.postID=this.postId?this.postId.toString():""),this.trigger("stateChange",e,this),r.trigger("post:embed:stateChange",t)},onHeightChange:function(e){this.$iframe.parent().addBack().height(e)}});e.exports=p},940:function(e,t,i){"use strict";var s=i(8),o=i(939),n=o.extend({player:{},$post:{},initialize:function(e,t){this.player=e,this.post=this.player.$el.closest(".post")[0],this.$post=s(this.post),this._data={},this.data.embedID=t,this.data.service="tumblr",this.data.postID=this.$post.data("post-id"),this.connected=!0,this.setupWatcher(),this.listenTo(this.player,"change:paused",this.__onStateChange),this.listenTo(this.player,"change:autoplay",this.__onStateChange)},play:function(){var e=this.getState();"autoplaying"===e?this.player.restart():"playing"!==e&&this.player.play({onDock:!0})},pause:function(){"paused"!==this.getState()&&this.player.pause()},getState:function(){var e=this.player.get("paused"),t=this.player.get("autoplay");return e?"paused":t?"autoplaying":"playing"},__onStateChange:function(){var e=this.getState();o.prototype.__onStateChange.call(this,e)}});e.exports=n},1319:function(e,t,i){"use strict";var s=i(1320);i(1452),s.start()},1320:function(e,t,i){"use strict";var s=i(8),o=i(3),n=i(180),a=i(129),r=i(5),l=i(136),u=i(182),p=i(945),d=i(1321),c=i(236),h=i(1348),m=i(935),=i(224),f=i(826),g=i(1351),b=i(1354),v=i(1365),y=i(1373),w=i(1377),k=i(1381),x=i(1383),C=i(1387),S=i(1388),T=i(1390),$=i(1395),A=i(1415),P=i(1115),E=i(1426),F=i(1428),I=i(1439),j=i(1442),L=i(1444),M=i(1445),D=i(1446),R=i(1448),O=r.extend({logs:function(){return o.union([i(1451)],r.prototype.logs.apply(this))},routes:{"dashboard(/)":"dashboard","dashboard/blog/:blog_name":"dashboard","dashboard/blog/:blog_name/:post_id":"dashboard","dashboard/:page(/:hash)(/)":"dashboard","(blog/:channel_id/)new/post-it-forward(/)":"postItForward","(blog/:channel_id/)new/:type(/)":"newPost","(blog/:channel_id/)followers":"followers","(blog/:channel_id/)followers/page/:page_id":"followers","edit/:id(/)":"editPost","reblog/:id/:key(/)":"reblogPost",inbox:"inbox","blog/:tumblelog(/:subsection)":"blogTumblelog",likes:"likes","liked/by/:user(/*subpage)":"likedBy","followed/by/:user(/*subpage)":"followedBy","tagged/:tag(/*subpage)":"tagged",following:"following","message/:blog_name":"message","blogpack/:blogpack_id(/*subpage)":"blogpack"},initialize:function(){this.header=,this.footer=f,this.crtControl=p,this.mediaEmbedManager=m,this.user=u(),this.abuseForm=new d,a.has("Components/NotificationPoller")&&(this.toastr=new F,this.notificationPoller=new I),n.bool("promotion_flow")&&(this.promoteDrawer=new $),n.bool("reblog_graphs")&&v(o.bind(function(e){this.reblogGraph=new e},this)),a.has("Components/PostFormBuilder")&&(this.postFormBuilder=new c),this.mobileAppBanner=new A({type:"download-banner",attachTo:'[prima-component="MobileAppBanner"]'}),this.mobileAppBanner.render(),this.dashboardLoginCheck=new M,this.dashboardLoginCheck.run()},setup:function(){this.keycommandGuide=new h,this.elevator=new g,n.bool("right_column_dashboard_ad")&&(n.bool("standalone_darla")||(this.yamPlusAd=new P),this.sidebarAd=new j)},dashboard:function(){var e=this;if(this.setup(),this.avatarManager=new C,n.bool("show_onboarding_tour_guide")){var t=n.bool("onboarding_tag_bingo"),i="onboarding:tag_bingo_interstitial:completed";y(function(s){e.tourGuide=new s({wait:t,waitEvent:i,tumblelogName:e.user.get("primary")})})}a.has("Components/WebExtensionCta")&&R(function(t){e.webExtensionCta=new t}),this.remnant_ad=new w,this.takeover_banner=new k,this.recommended_blog=new x,this.standaloneAd=new E,this.dfpAd=new D,this.adblockCookie=new L,this.listenTo(l,"Dashboard:should_hide_posts_on_unfollow",o.bind(function(){l.trigger("Dashboard:hide_posts_on_unfollow")},this)),n.bool("rapid_like_recommendation")&&(this.rapidRecommendations=T()),this.initializeRecommendedBlogs(),n.bool("abp_detection")&&this.detectAdBlockPlus()},postItForward:function(e){return n.bool("post_it_forward")?(this.setup(),this.avatarManager=new C,void(this.postFormBuilder&&l.trigger("postForms:open",{updateURL:!1,postFormType:c.containerType("inline"),postType:"photo",tags:["PostItForward"],showPhotoBooth:"postitforward-watermark"}))):this.newPost(e)},newPost:function(e,t){this.setup(),this.avatarManager=new C,this.postFormBuilder&&l.trigger("postForms:open",{updateURL:!1,postFormType:c.containerType("inline"),postType:t})},editPost:function(e){this.setup(),this.avatarManager=new C,this.postFormBuilder&&l.trigger("postForms:open",{updateURL:!1,postFormType:c.containerType("modal"),detached:!0,editId:e})},reblogPost:function(e,t){this.setup(),this.avatarManager=new C,this.postFormBuilder&&l.trigger("postForms:open",{updateURL:!1,postFormType:c.containerType("modal"),reblogId:e,reblogKey:t})},inbox:function(){this.setup(),this.avatarManager=new C},blogTumblelog:function(e,t){this.setup(),"queue"!==t&&(this.avatarManager=new C)},likes:function(){this.setup(),this.avatarManager=new C,this.initializeRecommendedBlogs()},followers:function(e){this.followers=new S({viewOptions:{blogName:e}})},likedBy:function(e){this.setup(),this.avatarManager=new C,this.initializeRecommendedBlogs()},followedBy:function(e){this.setup(),this.avatarManager=new C,this.initializeRecommendedBlogs()},tagged:function(e){this.setup(),this.avatarManager=new C,s("#tagged_actions_display").hasClass("is_featured_tag")||this.initializeRecommendedBlogs()},following:function(){this.setup(),this.avatarManager=new C},blogpack:function(){this.setup(),this.avatarManager=new C},initializeRecommendedBlogs:function(){var e=new b({el:".controls_section.follow_list",exploreLink:!0});return e.getView()},detectAdBlockPlus:function(){l.trigger("ads-interaction:abp-detection-"+window.Tumblr.ABP)},message:function(e){this.setup(),o.defer(function(){l.trigger("messaging:conversation:open:name",e,"permalink")}),history.replaceState({},null,"/dashboard")}});e.exports=O},1321:function(e,t,i){"use strict";var s=i(214),o=i(136),n=i(831),a=i(1322),r=s.extend({name:"AbuseForm",initialize:function(){this.drawerManager=n(),this.bindEvents()},bindEvents:function(){this.listenTo(o,"abuseform:open",this.open),this.listenTo(o,"abuseform:close",this.close)},close:function(){this.drawerManager.close()},open:function(e){this.drawerManager.isSuspended()||(this.drawerManager.isOpen()?this.drawerManager.replace(a,e):this.drawerManager.open(a,e))}});e.exports=r},1322:function(e,t,i){"use strict";var s=i(8),o=i(3),n=i(129),a=i(136),r=i(191),l=i(180),u=i(1323),p=i(1328),d=i(1330),c=i(1332),h=i(1341),m=i(1342),=i(1343),f=i(1345),g=i(1346),b=i(1347),v=i(1052),y=i(1340),w=u.extend({templates:{layout:f,success:g,error:b},className:"abuse-form",survey:y,initialize:function(e){if(e=e||{},u.prototype.initialize.call(this,e),this.set("mobileMode",e.mobileMode||!1),this.listenTo(a,"drawer:close",this.teardown),this.contexts=w.CONTEXTS,e.mode)switch(this.mode=e.mode,this.mode){case"standalone":var t=e.formType;e.formType&&this.survey[t]&&"start"!==t||(t="abuse"),this.set("surveyStep",t);break;case"blogcard":this.set("surveyStep","start"),this.tumblelog=new r({name:e.tumblelog}),this.posts=this.getBlogcardPosts();break;case"post":this.set("surveyStep","start"),this.tumblelog=new r({name:e.post.get("tumblelog_name")}),this.posts=[{id:e.post.get("post_id"),rootId:e.post.get("root_id"),postUrl:e.post.get("post_url")}],this.embedCode=e.post.get("embed_code");break;case"message":this.set("surveyStep","start"),this.sender=e.sender&&new r({name:e.sender}),this.tumblelog=new r({name:e.post.get("tumblelog-name")}),this.posts=[{id:e.post.get("id"),rootId:e.post.get("root_id"),postUrl:e.post.get("post_url")}];break;default:this.mode="standalone",this.set("surveyStep","abuse")}else this.mode="standalone",this.set("surveyStep","abuse");this.fillTemplateAttributes()},teardown:function(){s("body").removeClass("abuseform-open"),this.selfDestroyTimer&&(clearTimeout(this.selfDestroyTimer),this.selfDestroyTimer=null)},fillTemplateAttributes:function(){var e=n.get("Components/AbuseForm")||{};if(this.set("nativeApp",e.native_app||!1),this.templateAttributes.Flags=l,this.templateAttributes.recaptcha=e.recaptcha,this.templateAttributes.email=e.email,this.templateAttributes.lang=e.lang,this.templateAttributes.languageNotice=e.language_notice,this.templateAttributes.formToken=e.form_token,this.templateAttributes.safesearch=s(".nsfw_filter_enabled").length,this.templateAttributes.tumblelog=this.tumblelog,this.templateAttributes.posts=this.posts,this.templateAttributes.mode=this.mode,this.templateAttributes.hideTitles="standalone"===this.mode,this.templateAttributes.inNativeApp=!!this.get("nativeApp"),this.templateAttributes.prefillFields=e.prefill_fields,this.templateAttributes.prefillFields){if(o.delay(function(){a.trigger("drawerform:validation:trigger")}),this.templateAttributes.prefillFields.urlreporting){var t=this.templateAttributes.prefillFields.urlreporting,i=v.isUrl(t);i||(this.templateAttributes.prefillFields.urlreporting="")}if(this.templateAttributes.prefillFields.email){var r=this.templateAttributes.prefillFields.email,u=v.isEmail(r);u||(this.templateAttributes.prefillFields.email="")}}this.tumblelog&&(this.templateAttributes.tumblelogUrl=this.tumblelog.get("url")),this.templateAttributes.sender=this.sender,this.templateAttributes.supportsFileChooser=this.supportsFileChooser()},getBlogcardPosts:function(){var e=this.tumblelog.get("highlighted_post"),t=[];return o.each(e,function(e){e=s(e),t.push({id:e.data("id"),rootId:e.data("root_id"),postUrl:e.data("json").share_popover_data.post_url})},this),t},getFlaggedContent:function(){switch(this.mode){case"post":case"message":return s('.post[data-post-id="'+this.posts[0].id+'"]').first();case"blogcard":var e=s(".indash_header_wrapper.tumblelog_name"+this.tumblelog).first();return 0===e.find(".recent_posts").length&&(e=e.closest(".popover")),e}},hideFlaggedContent:function(){var e=this.getFlaggedContent();e&&e.addClass("is_flagged")},displaySuccessMessage:function(){this.templateAttributes.customSuccessMessage=!1,this.survey[this.get("surveyStep")].customSuccessMessage&&(this.templateAttributes.customSuccessMessage=this.survey[this.get("surveyStep")].customSuccessMessage),this.templateAttributes.alternativeResponseText=this.get("surveyStep").indexOf("someoneelse")>=0,this.$el.html(this.templates.success(this.templateAttributes)),a.trigger("drawer:disableCloseConfirmation"),this.selfDestroyTimer&&clearTimeout(this.selfDestroyTimer),this.selfDestroyTimer=setTimeout(function(){a.trigger("abuseform:close"),a.trigger("Kraken:abuseform:close")},15e3)},displayErrorMessage:function(e){this.removeErrorMessage(),this.errorMessage=s(this.templates.error(o.extend(this.templateAttributes,{errors:e}))),this.errorMessage.appendTo(this.$surveyStep)},removeErrorMessage:function(){this.errorMessage&&(this.errorMessage.remove(),this.errorMessage=null)},getPlatform:function(){return this.get("nativeApp")?this.get("nativeApp"):this.get("mobileMode")?"mobileweb":"web"},logSubmission:function(e){e=e||{},e.reason||(e.reason=this.get("surveyStep")),e.blocked=this.get("blockFlagSet"),e.platform=this.getPlatform(),a.trigger("Kraken:abuseform:submitted",{loggingData:e}),this.get("blockFlagSet")&&a.trigger("Kraken:blocks:block_added",{loggingData:{from:"abuseform"}})},render:function(){return this.$el.append(this.templates.layout(this.templateAttributes)),this.$surveyContainer=this.$(".survey"),this.$surveyStep=this.$(".survey-step"),s("body").addClass("abuseform-open"),this.header=new p({title:this.survey[this.get("surveyStep")].title,description:this.survey[this.get("surveyStep")].description,inNativeApp:this.templateAttributes.inNativeApp}),this.header.render().$el.insertBefore(this.$surveyContainer),"standalone"!==this.mode&&(this.contentPreview=new d({abuseform:this}),this.contentPreview.render().$el.insertAfter(this.$surveyContainer)),this.formView=new h({el:this.$surveyStep,abuseform:this,recaptcha:this.templateAttributes.recaptcha}),this.navigation=new _({abuseform:this}),this.dynamicfields=new m({el:this.$surveyContainer,abuseform:this}),this.surveyView=new c({el:this.$surveyContainer,abuseform:this}),this.surveyView.displaySurveyStep(this.get("surveyStep")),this}});e.exports=w},1323:function(e,t,i){"use strict";var s=i(1324);e.exports=s},1324:function(e,t,i){"use strict";var s=i(8),o=i(219),n=i(130),a=i(230),r=i(136),l=i(1325),u=i(1326),p=i(1327),d=o.extend({mixins:[a],templateAttributes:{:n,formKey:s("#tumblr_form_key").attr("content")},initialize:function(e){e=e||{},this.set("complete",!1),this.fieldValidation=new u({el:this.$el}),this.imageUpload=new l({el:this.$el}),this.errortags=new p({mobileMode:"undefined"!=typeof e.mobileMode&&e.mobileMode}),this._bindEvents()},_bindEvents:function(){this.listenTo(r,"drawer:close",this._teardown),this.listenTo(r,"drawerform:validation",this._updateCompleteStatus)},_updateCompleteStatus:function(e){this.set("complete",e.status)},_teardown:function(){this.fieldValidation.remove(),this.imageUpload.remove(),this.errortags.remove()},isAndroidKitKatWebView:function(e){if(null==e)return!1;e=e.toLowerCase();var t=e.indexOf("android 4.4")!==-1,i=e.indexOf("version/")!==-1;return t&&i},supportsFileChooser:function(){return!this.isAndroidKitKatWebView(navigator.userAgent)}});e.exports=d},1325:function(e,t,i){"use strict";var s=i(8),o=i(3),n=i(130),a=i(219),r=i(136),l=15e6,u=a.extend({events:{"change .image-upload":"onImageUploadClick","click .btn-remove-uploaded":"onRemoveImageClick"},onImageUploadClick:function(e){var t=e.currentTarget;if(this.imageUploadEl=s(".image-upload-input"),this.imagePreviewEl=s(".image-upload-preview"),t.files&&t.files[0]){if(t.files[0].size>l)return r.trigger("drawerform:errortag:show",{field:this.imageUploadEl,text:n("File is too big.")}),void s(t).replaceWith(s(t).val("").clone(!0));r.trigger("drawerform:errortag:remove",{field:this.imageUploadEl}),this.imageUploadEl.addClass("hidden");var i=new FileReader;i.readAsDataURL(t.files[0]),i.onload=o.bind(function(e){this.imagePreviewEl.removeClass("hidden"),e.target.result&&e.target.result.length?(this.imagePreviewEl.find("img").attr("src",e.target.result),this.imagePreviewEl.addClass("shown")):this.imageUploadEl.removeClass("hidden")},this)}},onRemoveImageClick:function(e){e.preventDefault();var t=s(".image-upload-input input");t.replaceWith(t.val("").clone(!0)),s(".image-upload-input input").trigger("change"),this.imagePreviewEl.removeClass("shown"),this.imageUploadEl.removeClass("hidden")}});e.exports=u},1326:function(e,t,i){"use strict";var s=i(8),o=i(3),n=i(130),a=i(219),r=i(136),l=i(1052),u=5e3,p=a.extend({events:{'change [data-validate-input="dropdown"]':"fieldValidationHandler",'keyup [data-validate-input="email"]':"fieldValidationHandler",'blur [data-validate-input="email"]':"fieldValidationHandler",'keyup [data-validate-input="text"]':"fieldValidationHandler",'blur [data-validate-input="text"]':"fieldValidationHandler",'keyup [data-validate-input="url"]':"fieldValidationHandler",'blur [data-validate-input="url"]':"fieldValidationHandler",'change [data-validate-input="file"]':"fieldValidationHandler",'change [data-validate-input="checkbox"]':"validateAllFields"},validationErrorMessages:{email:"We gotta write you back, though",url:"Invalid URL"},initialize:function(){this.listenTo(r,"drawerform:validation:trigger",this.validateAllFields)},validateAllFields:function(){var e=s("[data-validate-input]"),t=e.length>0;o.each(e,function(e){var i=s(e),o=i.data("validate-input"),n=i.val(),a=i.prop("required");if(!this.isFieldValid(n,o,a))return t=!1,!1},this),r.trigger("drawerform:validation",{status:t})},fieldValidationHandler:function(e){var t=s(e.target),i=t.val().trim(),o=t.data("validate-input"),a=t.prop("required");this.isFieldValid(i,o,a)?(t.hasClass("error")&&t.removeClass("error"),r.trigger("drawerform:errortag:remove",{field:t}),"focusout"===e.type&&"url"===o&&i.length&&0!==i.indexOf("http")&&s(e.target).val("http://"+i)):"focusout"===e.type&&(t.addClass("error"),r.trigger("drawerform:errortag:show",{field:t,text:n(this.validationErrorMessages[o])})),this.validateAllFields()},isFieldValid:function(e,t,i){var s;if(i="undefined"!=typeof i&&i,l.isBlank(e))return!i;switch(t){case"email":s=l.isEmail(e);break;case"text":s=l.maxLength(e,u);break;case"file":s=!0;break;case"dropdown":s=!0;break;case"url":s=l.isUrl(e);break;case"checkbox":s=this.isAtLeastOneChecked()}return s},isAtLeastOneChecked:function(){var e=s('input[type="checkbox"]:checked');return e.length>0}});e.exports=p},1327:function(e,t,i){"use strict";var s=i(8),o=i(3),n=i(130),a=i(230),r=i(219),l=i(136),u=i(235),p=r.extend({mixins:[a],el:".form-container",defaultText:"A few details, please",initialize:function(e){this.set("mobileMode",!("undefined"==typeof e||!e.mobileMode)&&e.mobileMode),this.errorTags={},this.listenTo(l,"drawerform:errortag:show",this.showErrorTag),this.listenTo(l,"drawerform:errortag:remove",this.removeErrorTag),this.listenTo(l,"drawerform:errortag:removeall",this.removeAllErrorTags)},showErrorTag:function(e){if("undefined"!=typeof e&&e.field){var t=e.field,i=e.text||n(this.defaultText),a=t.attr("name");if(!this.errorTags[a])if(this.errorTags[a]=s("
'+(null==(t=(e.text,'',""))?"":__t)+"
":''+(null==(t=(e.text))?"":__t)+"
",__p+=" "}),__p+=" "):__p+=description?" "+(null==(t=(description))?"":__t)+" ":inNativeApp?" "+(null==(t=("Seeing something you shouldn't? This is the place to tell us about it."))?"":__t)+" ":" "+(null==(t=("Seeing something you shouldn't? This is the place to tell us about it. %1$sLearn more%2$s about how we handle these matters and what you can do to help.",'',""))?"":__t)+" ",__p+=""+(null==(t=(e.text,'',""))?"":__t)+"
":""+(null==(t=(e.text))?"":__t)+"
",__p+=" "):"link"!==e.type||inNativeApp?"highlight"===e.type&&(__p+=''+(null==(t=(e.text))?"":__t)+"
"):__p+=' <a href="'+(null==(__t=e.href)?"":__t)+'" target="_blank">'+(null==(t=(e.text))?"":__t)+" ",__p+=""+(null==(t=(e.text,'',""))?"":__t)+"
":""+e((e.text))+"
",__p+=" "):"input"===e.type?(__p+=" ",__p+=e.optional===!0?''+(null==(t=(e.text,'',""))?"":__t)+"
":''+(null==(t=(e.text))?"":__t)+"
",__p+=" "}),__p+=" "):__p+=''+__e(customSuccessMessage)+"
",__p+=" "):__p+=alternativeResponseText?''+e(("Thanks for bringing this to our attention. We're looking into it."))+"
":''+e(("It may take us a day or two, but we're on the case and we'll get back to you as quickly as we can."))+'
'+e(("Also: We know it's tempting to submit the same thing a few times in hopes that it'll get addressed sooner, but really it just clogs up our system and makes it harder for us to respond quickly. We're kind of like an elevator button."))+"
",__p+="- '+e(("Navigation"))+'
-
'+e(("Scroll down"))+'J
-
'+e(("Scroll up"))+'K
-
'+e(("Back to the top"))+'.
-
'+e(("Like a post"))+'L
-
'+e(("Share a post"))+'S
-
'+e(("View a post's notes"))+'N
-
'+e(("Open a post's blog"))+'enter
-
'+e(("Follow a recommended blog"))+'F
-
'+e(("Reject a recommended blog"))+'X
-
'+e(("Search Tumblr"))+'/
-
'+e(("Switch between your blogs"))+''+__e(zOption)+'+ tab
- '+e(("Posting"))+'
-
'+e(("Compose a new post"))+''+__e(zOption)+'+ C
-
'+e(("Fast reblog a post"))+''+__e(option)+'+ R
-
'+e(("Add a post to your queue"))+''+__e(option)+'+ E
- '+e(("Composing"))+'
-
'+e(("Bold"))+''+__e(meta)+'+ B
-
'+e(("Italic"))+''+__e(meta)+'+ I
-
'+e(("Headline"))+''+__e(meta)+'+ '+__e(shift)+'+ 2
-
'+e(("Link"))+''+__e(meta)+'+ K
-
'+e(("Strikethrough"))+''+__e(meta)+'+ '+__e(shift)+'+ 6
-
'+e(("Ordered list"))+''+__e(meta)+'+ '+__e(shift)+'+ 7
-
'+e(("Unordered list"))+''+__e(meta)+'+ '+__e(shift)+'+ 8
-
'+e(("Blockquote"))+''+__e(meta)+'+ '+__e(shift)+'+ 9
-
'+e(("Remove formatting"))+''+__e(meta)+'+ '+__e(shift)+'+ 0
-
'+e(("Preformatted text"))+''+__e(meta)+'+ '+__e(shift)+'+ X
-
'+e(("Superscript"))+''+__e(meta)+'+ .
-
'+e(("Subscript"))+''+__e(meta)+'+ ,
-
'+e(("Small"))+''+__e(meta)+'+ '+__e(shift)+'+ -
-
'+e(("Insert photo"))+''+__e(meta)+'+ '+__e(shift)+'+ P
-
'+e(("Insert video"))+''+__e(meta)+'+ '+__e(shift)+'+ M
-
'+e(("Insert horizontal line"))+''+__e(meta)+'+ '+__e(shift)+'+ L
-
'+e(("Insert read-more link"))+''+__e(meta)+'+ '+__e(shift)+'+ K
-
'+e(("Insert GIF"))+''+__e(meta)+'+ '+__e(shift)+'+ G
'+__e(sponsored?"Sponsored":title)+'
'+e(("Some more blogs:"))+'
'+__e(title)+':
- ';for(var i=0;i<postCount;i++)__p+='
- '+(null==(__t=model.posts[i].html)?"":__t)+" ";__p+="
'+e(("Don't have a login? Contact your brand specialist."))+"
";return p}.toString()).apply(void 0,_values(_imports))},1399:function(e,t,i){"use strict";var s=i(8),o=i(130),n=i(219),a=i(136),r=i(1400),l=n.extend({className:"footer-form",events:{"click .avatar-container .title":"toggle","click .avatar-list .plus-button":"goback"},initialize:function(e){return e=e||{},this.templateAttributes={:o},this},goback:function(){a.trigger("promotiondrawer:view:back")},render:function(){return this.$el.html(r(this.templateAttributes)),this.$el.find(".avatar-content").hide(),this},toggle:function(){s(".avatar-content").toggle("slow")}});e.exports=l},1400:function(module,exports,webpack_require){var _=webpack_require(3),_imports="undefined"!=typeof ?.templateSettings.imports:{},keys=.keys,values=.values;module.exports=Function(_keys(imports),"return "+function(obj){obj||(obj={});var __t,__p="",__e=.escape;with(obj)__p+=''+e(("None of the last 10 posts on this blog are eligible to be sponsored, please enter the ID or URL for the post you wish to sponsor."))+'