import{_ as u,o as d,c as r,a as e,H as f,O as _,f as m,t as w,A as h}from"./js/_plugin-vue_export-helper.a81c6319.js";import{l as g}from"./js/index.251e7289.js";import{l as b}from"./js/index.fae5bbc8.js";import{l as x}from"./js/index.0b123ab1.js";import{e as P}from"./js/elemLoaded.9a6eb745.js";import{s as k}from"./js/postContent.f08c6962.js";import{S as v}from"./js/Standalone.f58ac731.js";import{i as s,s as l}from"./js/index.4dbecc01.js";import"./js/client.e7a26247.js";import"./js/_commonjsHelpers.f84db168.js";import"./js/vuex.esm-bundler.55d3d5b3.js";import"./js/default-i18n.0e8bc810.js";import"./js/helpers.51e5fd9c.js";import"./js/constants.e56e1512.js";import"./js/Caret.19bf2275.js";import"./js/cleanForSlug.d16f1e3a.js";import"./js/html.a669733f.js";const y={emits:["standalone-update-post"],mixins:[v],data(){return{strings:{label:this.$t.__("Don't update the modified date",this.$td)}}},methods:{addLimitModifiedDateAttribute(){s()&&window.wp.data.dispatch("core/editor").editPost({aioseo_limit_modified_date:this.currentPost.limit_modified_date})}},computed:{canShowSvg(){return s()&&this.currentPost.limit_modified_date}},watch:{"currentPost.limit_modified_date"(t){this.$bus.$emit("standalone-update-post",{limit_modified_date:t})}}},L={key:0},A={class:"components-checkbox-control__input-container"},B={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",role:"img",class:"components-checkbox-control__checked","aria-hidden":"true",focusable:"false"},D=e("path",{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"},null,-1),M=[D],S={class:"components-checkbox-control__label",for:"aioseo-limit-modified-date-input"};function C(t,o,a,V,p,i){return t.currentPost.id?(d(),r("div",L,[e("span",A,[f(e("input",{id:"aioseo-limit-modified-date-input",class:"components-checkbox-control__input",type:"checkbox","onUpdate:modelValue":o[0]||(o[0]=n=>t.currentPost.limit_modified_date=n),onChange:o[1]||(o[1]=(...n)=>i.addLimitModifiedDateAttribute&&i.addLimitModifiedDateAttribute(...n))},null,544),[[_,t.currentPost.limit_modified_date]]),i.canShowSvg?(d(),r("svg",B,M)):m("",!0)]),e("label",S,w(p.strings.label),1)])):m("",!0)}const E=u(y,[["render",C]]);if(s()&&window.wp){const{createElement:t}=window.wp.element,{registerPlugin:o}=window.wp.plugins,{PluginPostStatusInfo:a}=window.wp.editPost;o("aioseo-limit-modified-date",{render:()=>t(a,{},t("div",{id:"aioseo-limit-modified-date"}))})}const c=()=>{let t=h(E);t=g(t),t=b(t),t=x(t),l._vm=t,t.use(l),t.mount("#aioseo-limit-modified-date")};k()&&window.aioseo&&window.aioseo.currentPost&&window.aioseo.currentPost.context==="post"&&(document.getElementById("aioseo-limit-modified-date")?c():(P("#aioseo-limit-modified-date","aioseoLimitModifiedDate"),document.addEventListener("animationstart",function(o){o.animationName==="aioseoLimitModifiedDate"&&c()},{passive:!0})));
