import{A as p,k as m}from"./js/_plugin-vue_export-helper.a81c6319.js";import{c as n,a as s}from"./js/vue-router.af49358c.js";import{l as a}from"./js/index.251e7289.js";import{l as u}from"./js/index.fae5bbc8.js";import{l as c}from"./js/index.0b123ab1.js";import{m as d,T as l}from"./js/postContent.f08c6962.js";import{s as r}from"./js/index.4dbecc01.js";import{i as f}from"./js/isEmpty.e7515279.js";import{A as i}from"./js/App.5f527bb6.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";import"./js/_getTag.4d7a4b86.js";/* empty css                */import"./js/params.597cd0f5.js";import"./js/WpTable.3e09f0c1.js";import"./js/Index.3662e61b.js";import"./js/Row.d42459be.js";import"./js/RequiresUpdate.52f5acf2.js";import"./js/Index.048705a6.js";import"./js/JsonValues.870a4901.js";import"./js/SaveChanges.c85e9ba4.js";import"./js/SettingsRow.bc3a4ca9.js";import"./js/Checkbox.ec732dfe.js";import"./js/Checkmark.36fbf255.js";import"./js/LicenseKeyBar.67a3e313.js";import"./js/LogoGear.e7086274.js";import"./js/Tabs.5bdc95fd.js";import"./js/TruSeoScore.1eab6bb1.js";import"./js/Information.050096cc.js";import"./js/Slide.4392623f.js";import"./js/Portal.76dcdd17.js";import"./js/MaxCounts.12b45bab.js";import"./js/Tooltip.c4cc47a2.js";import"./js/Plus.3cb7669b.js";import"./js/Editor.5cedc7bc.js";import"./js/Blur.17ef7d02.js";import"./js/RadioToggle.cfd7da6d.js";import"./js/GoogleSearchPreview.170d666f.js";import"./js/HtmlTagsEditor.5ebef317.js";import"./js/UnfilteredHtml.ceff4936.js";import"./js/popup.b60b699f.js";import"./js/Table.fb54dbce.js";import"./js/PostTypes.9ab32454.js";import"./js/InternalOutbound.14248481.js";import"./js/RequiredPlans.5c16d60d.js";import"./js/Image.01180f39.js";import"./js/Img.6c4e3996.js";import"./js/FacebookPreview.74fc401f.js";import"./js/Profile.0d5b59ce.js";import"./js/TwitterPreview.a823113e.js";import"./js/Book.4fda1364.js";import"./js/Settings.910f29ef.js";import"./js/Build.3f9239df.js";import"./js/Redirects.cbc3caf3.js";import"./js/Index.2cc2f3a4.js";import"./js/strings.ab2d1a4c.js";import"./js/isString.a41bd70d.js";import"./js/ProBadge.c7f4f378.js";import"./js/External.bfa99ff9.js";import"./js/Exclamation.09d9f31b.js";import"./js/Gear.7e79093b.js";import"./js/Card.0a3b54f8.js";import"./js/Eye.122d2005.js";const _=()=>{f(r.state.currentPost)||r.dispatch("saveCurrentPost",r.state.currentPost)},y=()=>{document.getElementById("seedprod-builder-save").addEventListener("click",_)},g=()=>{seedprod_app.$watch("$route.name",o=>{if(o==="setup_settings_seo"){const e=n({history:s(),routes:[{path:"/",component:i}]});let t=p({data(){return{tableContext:window.aioseo.currentPost.context,screenContext:"metabox"}},mounted:()=>{setTimeout(d)},render:()=>m(i)});t=a(t),t=u(t),t=c(t),t.use(e),t.use(r),r._vm=t,e.app=t,t.config.globalProperties.$truSeo=new l,t.mount("#seedprod-preview-wrapper .seedprod-settings-page-wrapper")}},{immediate:!0})},h=()=>{const o=document.getElementById("aioseo-seedprod-common-css");o&&o.setAttribute("href",o.getAttribute("data-href"))},A=()=>{g(),h(),y()};document.addEventListener("DOMContentLoaded",()=>{seedprod_app&&seedprod_app._isMounted&&A()});
