import{f as d,i as m,j as e,Y as f,aD as _,P as l,M as c,U as w,ap as g}from"./js/vendor-vue-ui.02763c14.js";import{l as h}from"./js/index.01468dbf.js";import{l as P}from"./js/index.aa890c6d.js";import{l as S}from"./js/index.0d80c2c2.js";import{j as n,am as x,Y as k,u as E,an as b,p as y,l as B}from"./js/app-core.82d0a9b8.js";import{_ as L}from"./js/_plugin-vue_export-helper.eefbdd86.js";import{_ as v}from"./js/vendor-other.2cdd5822.js";import"./js/Button.b03184b6.js";import"./js/Input.07427c66.js";import"./js/Index.ab3a7ebe.js";import"./js/Close.ed64f0a2.js";import"./js/Pencil.b091de6b.js";import"./js/Trash.9c01fca5.js";import"./js/Select.30909b5d.js";import"./js/Caret.1dd03f59.js";import"./js/Toggle.a8bd36f4.js";import"./js/vendor-datetime.430013a3.js";import"./js/vendor-lodash.f9514987.js";const D="all-in-one-seo-pack",M={emits:["standalone-update-post"],setup(){return{postEditorStore:E()}},data(){return{strings:{label:v("Don't update the modified date",D)}}},watch:{"postEditorStore.currentPost.limit_modified_date"(t){window.aioseoBus.$emit("standalone-update-post",{limit_modified_date:t})}},computed:{canShowSvg(){return n()&&this.postEditorStore.currentPost.limit_modified_date}},methods:{addLimitModifiedDateAttribute(){n()&&window.wp.data.dispatch("core/editor").editPost({aioseo_limit_modified_date:this.postEditorStore.currentPost.limit_modified_date})},isClassicEditor:k,isWooCommerceProduct:x,isBlockEditor:n}},A={key:0},C={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"},I={class:"components-checkbox-control__label",for:"aioseo-limit-modified-date-input"};function V(t,o,r,s,u,i){return s.postEditorStore.currentPost.id?(d(),m("div",A,[e("span",{class:l({"components-checkbox-control__input-container--block-editor":i.isBlockEditor()})},[f(e("input",{id:"aioseo-limit-modified-date-input",class:l({"components-checkbox-control__input":i.isBlockEditor()}),type:"checkbox","onUpdate:modelValue":o[0]||(o[0]=a=>s.postEditorStore.currentPost.limit_modified_date=a),onChange:o[1]||(o[1]=(...a)=>i.addLimitModifiedDateAttribute&&i.addLimitModifiedDateAttribute(...a))},null,34),[[_,s.postEditorStore.currentPost.limit_modified_date]]),i.canShowSvg?(d(),m("svg",C,[...o[2]||(o[2]=[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)])])):c("",!0)],2),e("label",I,w(u.strings.label),1)])):c("",!0)}const N=L(M,[["render",V]]);if(n()&&window.wp){const{createElement:t}=window.wp.element,{registerPlugin:o}=window.wp.plugins,r=window.wp?.editor?.PluginPostStatusInfo||window.wp?.editPost?.PluginPostStatusInfo;o("aioseo-limit-modified-date",{render:()=>t(r,{},t("div",{id:"aioseo-limit-modified-date"}))})}const p=()=>{let t=g({...N,name:"Standalone/LimitModifiedDate"});t=h(t),t=P(t),t=S(t),B(t),t.mount("#aioseo-limit-modified-date")};b()&&window.aioseo&&window.aioseo.currentPost&&window.aioseo.currentPost.context==="post"&&(document.getElementById("aioseo-limit-modified-date")?p():(y("#aioseo-limit-modified-date","aioseoLimitModifiedDate"),document.addEventListener("animationstart",function(o){o.animationName==="aioseoLimitModifiedDate"&&p()},{passive:!0})));
