import{n as u,V as _}from"./js/vueComponentNormalizer.87056a83.js";import"./js/index.02c35f2a.js";import{e as f}from"./js/elemLoaded.b1f6e29c.js";import{i as a,s as p}from"./js/helpers.a4115088.js";import{S as w}from"./js/Standalone.13c0aa99.js";import{a as h}from"./js/index.0f8634bc.js";import"./js/client.93f15631.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(l){var o=t.currentPost.limit_modified_date,s=l.target,m=!!s.checked;if(Array.isArray(o)){var r=null,n=t._i(o,r);s.checked?n<0&&t.$set(t.currentPost,"limit_modified_date",o.concat([r])):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",m)},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(){!a()||window.wp.data.dispatch("core/editor").editPost({aioseo_limit_modified_date:this.currentPost.limit_modified_date})}},computed:{canShowSvg(){return a()&&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(a()&&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})));
