import{n as l,V as u}from"./js/_plugin-vue2_normalizer.61652a7c.js";import"./js/index.3c70e00e.js";import{e as _}from"./js/elemLoaded.9a6eb745.js";import{s as p}from"./js/attachments.6af710f9.js";import{S as f}from"./js/Standalone.7784fb5a.js";import{i as r,s as w}from"./js/index.ec9852b3.js";import"./js/client.e62d6c37.js";import"./js/_commonjsHelpers.f84db168.js";import"./js/translations.c394afe3.js";import"./js/default-i18n.3a91e0e5.js";import"./js/Caret.19b10233.js";import"./js/helpers.de7566d0.js";import"./js/constants.0d8c074c.js";import"./js/isArrayLikeObject.9b4b678d.js";import"./js/portal-vue.esm.98f2e05b.js";import"./js/cleanForSlug.51ef7354.js";import"./js/html.14f2a8b9.js";import"./js/vuex.esm.8fdeb4b6.js";const h={mixins:[f],data(){return{strings:{label:this.$t.__("Don't update the modified date",this.$td)}}},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"(i){this.$bus.$emit("standalone-update-post",{limit_modified_date:i})}}};var P=function(){var t=this,e=t._self._c;return t.currentPost.id?e("div",[e("span",{staticClass:"components-checkbox-control__input-container"},[e("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,c=!!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",c)},t.addLimitModifiedDateAttribute]}}),t.canShowSvg?e("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"}},[e("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()]),e("label",{staticClass:"components-checkbox-control__label",attrs:{for:"aioseo-limit-modified-date-input"}},[t._v(t._s(t.strings.label))])]):t._e()},g=[],v=l(h,P,g,!1,null,null,null,null);const x=v.exports;if(r()&&window.wp){const{createElement:i}=window.wp.element,{registerPlugin:t}=window.wp.plugins,{PluginPostStatusInfo:e}=window.wp.editPost;t("aioseo-limit-modified-date",{render:()=>i(e,{},i("div",{id:"aioseo-limit-modified-date"}))})}const d=()=>{new u({store:w,render:i=>i(x)}).$mount("#aioseo-limit-modified-date")};p()&&window.aioseo&&window.aioseo.currentPost&&window.aioseo.currentPost.context==="post"&&(document.getElementById("aioseo-limit-modified-date")?d():(_("#aioseo-limit-modified-date","aioseoLimitModifiedDate"),document.addEventListener("animationstart",function(t){t.animationName==="aioseoLimitModifiedDate"&&d()},{passive:!0})));
