Your IP : 216.73.217.154


Current Path : /home/ereika83/public_html/wp-content/plugins/edit-flow/blocks/dist/
Upload File :
Current File : /home/ereika83/public_html/wp-content/plugins/edit-flow/blocks/dist/custom-status.build.js

!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t,e){t.exports=React},function(t,e,n){"use strict";n.r(e);var r=n(0),o=n.n(r),i=(n(2),n(4),wp.i18n.__),u=wp.editPost.PluginPostStatusInfo,s=wp.plugins.registerPlugin,a=wp.data,l=a.subscribe,c=a.dispatch,d=a.select,f=a.withSelect,p=a.withDispatch,v=wp.compose.compose,b=wp.components.SelectControl,m=window.EditFlowCustomStatuses.map(function(t){return{label:t.name,value:t.slug}}),w=null;function y(t){t&&t.children<1&&(t.innerText===i("Save Draft")||t.innerText===i("Save as Pending"))&&(t.innerText=i("Save"))}l(function(){d("core/editor").getCurrentPostId()&&(d("core/editor").isCleanNewPost()&&c("core/editor").editPost({status:ef_default_custom_status}),y(document.querySelector(".editor-post-save-draft")),null===w&&window.MutationObserver&&d("core/editor").isSavingPost()&&(w=function(t){if(!t)return null;var e=new MutationObserver(function(t){var e=!0,n=!1,r=void 0;try{for(var o,i=t[Symbol.iterator]();!(e=(o=i.next()).done);e=!0){var u=o.value,s=!0,a=!1,l=void 0;try{for(var c,d=u.addedNodes[Symbol.iterator]();!(s=(c=d.next()).done);s=!0){var f=c.value;y(f)}}catch(t){a=!0,l=t}finally{try{s||null==d.return||d.return()}finally{if(a)throw l}}}}catch(t){n=!0,r=t}finally{try{e||null==i.return||i.return()}finally{if(n)throw r}}});return e.observe(t,{childList:!0}),e}(document.querySelector(".edit-post-header__settings"))))});s("edit-flow-custom-status",{icon:"edit-flow",render:v(f(function(t){return{status:t("core/editor").getEditedPostAttribute("status")}}),p(function(t){return{onUpdate:function(e){t("core/editor").editPost({status:e})}}}))(function(t){var e=t.onUpdate,n=t.status;return o.a.createElement(u,{className:"edit-flow-extended-post-status edit-flow-extended-post-status-".concat(n)},o.a.createElement("h4",null,i("publish"!==n?"Extended Post Status":"Extended Post Status Disabled.","edit-flow")),"publish"!==n?o.a.createElement(b,{label:"",value:n,options:m,onChange:e}):null,o.a.createElement("small",{className:"edit-flow-extended-post-status-note"},i("publish"!==n?"Note: this will override all status settings above.":"To select a custom status, please unpublish the content first.","edit-flow")))})})},function(t,e){},,function(t,e){}]);
//# sourceMappingURL=custom-status.build.js.map