import{n as u,V as _}from"./js/vueComponentNormalizer.87056a83.js";import"./js/index.652636d3.js";import{e as f}from"./js/elemLoaded.b1f6e29c.js";import{s as p}from"./js/helpers.aa477dea.js";import{S as w}from"./js/Standalone.f29e6756.js";import{i as r}from"./js/context.04ada340.js";import{s as h}from"./js/index.8900b7f9.js";import"./js/client.94d919c5.js";import"./js/_commonjsHelpers.f40d732e.js";import"./js/default-i18n.abde8d59.js";import"./js/constants.7cd698f2.js";import"./js/isArrayLikeObject.a4a9229a.js";import"./js/cleanForSlug.f1163528.js";var v=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.currentPost.id?i("div",[i("span",{staticClass:"components-checkbox-control__input-container"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.currentPost.limit_modified_date,expression:"currentPost.limit_modified_date"}],staticClass:"components-checkbox-control__input",attrs:{id:"aioseo-limit-modified-date-input",type:"checkbox"},domProps:{checked:Array.isArray(t.currentPost.limit_modified_date)?t._i(t.currentPost.limit_modified_date,null)>-1:t.currentPost.limit_modified_date},on:{change:[function(m){var o=t.currentPost.limit_modified_date,a=m.target,l=!!a.checked;if(Array.isArray(o)){var s=null,n=t._i(o,s);a.checked?n<0&&t.$set(t.currentPost,"limit_modified_date",o.concat([s])):n>-1&&t.$set(t.currentPost,"limit_modified_date",o.slice(0,n).concat(o.slice(n+1)))}else t.$set(t.currentPost,"limit_modified_date",l)},t.addLimitModifiedDateAttribute]}}),t.canShowSvg?i("svg",{staticClass:"components-checkbox-control__checked",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false"}},[i("path",{attrs:{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}})]):t._e()]),i("label",{staticClass:"components-checkbox-control__label",attrs:{for:"aioseo-limit-modified-date-input"}},[t._v(t._s(t.strings.label))])]):t._e()},P=[];const g={mixins:[w],data(){return{strings:{label:"Don't update the modified date"}}},methods:{addLimitModifiedDateAttribute(){!r()||window.wp.data.dispatch("core/editor").editPost({aioseo_limit_modified_date:this.currentPost.limit_modified_date})}},computed:{canShowSvg(){return r()&&this.currentPost.limit_modified_date}},watch:{"currentPost.limit_modified_date"(t){this.$bus.$emit("standalone-update-post",{limit_modified_date:t})}}},d={};var x=u(g,v,P,!1,y,null,null,null);function y(t){for(let e in d)this[e]=d[e]}var b=function(){return x.exports}();if(r()&&window.wp){const{createElement:t}=window.wp.element,{registerPlugin:e}=window.wp.plugins,{PluginPostStatusInfo:i}=window.wp.editPost;e("aioseo-limit-modified-date",{render:()=>t(i,{},t("div",{id:"aioseo-limit-modified-date"}))})}const c=()=>{new _({store:h,render:t=>t(b)}).$mount("#aioseo-limit-modified-date")};p()&&window.aioseo&&window.aioseo.currentPost&&window.aioseo.currentPost.context==="post"&&(document.getElementById("aioseo-limit-modified-date")?c():(f("#aioseo-limit-modified-date","aioseoLimitModifiedDate"),document.addEventListener("animationstart",function(e){e.animationName==="aioseoLimitModifiedDate"&&c()},{passive:!0})));
