!function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t){!function(){e.exports=this.jQuery}()},function(e,t,n){"use strict";n.r(t);var a,r,o=n(0),i=n.n(o);window.ampPostMetaBox=(a=i.a,r={data:{canonical:!1,previewLink:"",enabled:!0,canSupport:!0,statusInputName:"",l10n:{ampPreviewBtnLabel:""}},toggleSpeed:200,previewBtnSelector:"#post-preview",ampPreviewBtnSelector:"#amp-post-preview",boot:function(e){r.data=e,a(document).ready((function(){r.statusRadioInputs=a('[name="'+r.data.statusInputName+'"]'),r.data.enabled&&!r.data.canonical&&r.addPreviewButton(),r.listen()}))},listen:function(){a(r.ampPreviewBtnSelector).on("click.amp-post-preview",(function(e){e.preventDefault(),r.onAmpPreviewButtonClick()})),r.statusRadioInputs.prop("disabled",!0),a('.edit-amp-status, [href="#amp_status"]').click((function(e){e.preventDefault(),r.statusRadioInputs.prop("disabled",!1),r.toggleAmpStatus(a(e.target))})),a('#submitpost input[type="submit"]').on("click",(function(){a(r.ampPreviewBtnSelector).addClass("disabled")}))},addPreviewButton:function(){var e=a(r.previewBtnSelector);e.clone().insertAfter(e).prop({href:r.data.previewLink,id:r.ampPreviewBtnSelector.replace("#","")}).text(r.data.l10n.ampPreviewBtnLabel).parent().addClass("has-amp-preview")},onAmpPreviewButtonClick:function(){var e=a("<input>").prop({type:"hidden",name:"amp-preview",value:"do-preview"}).insertAfter(r.ampPreviewBtnSelector);a(r.previewBtnSelector).click(),e.remove()},toggleAmpStatus:function(e){var t=a("#amp-status-select"),n=a(".edit-amp-status"),o=t.data("amp-status");e.hasClass("button-cancel")||(o=r.statusRadioInputs.filter(":checked").val());var i=a("#amp-status-"+o);n.fadeToggle(r.toggleSpeed,(function(){n.is(":visible")?n.focus():t.find('input[type="radio"]').first().focus()})),t.slideToggle(r.toggleSpeed),r.data.canSupport&&(t.data("amp-status",o),i.prop("checked",!0),a(".amp-status-text").text(i.next().text()))}})}]);