import{_ as a}from"./js/_plugin-vue_export-helper.3febc96a.js";import{r as i,o as l,c,g as u,E as p}from"./js/vue.runtime.esm-bundler.f433d23f.js";import{l as d}from"./js/index.c9841ea4.js";import{C as m,l as _}from"./js/index.57ad6f19.js";import{l as f}from"./js/index.0b123ab1.js";import{u as h,l as A}from"./js/links.96ffe3f0.js";import"./js/translations.f6b76bbe.js";import"./js/default-i18n.41786823.js";import"./js/constants.008ef172.js";import"./js/Caret.b5c2e4ec.js";import"./js/isArrayLikeObject.7c69e632.js";const g={setup(){return{rootStore:h()}},components:{CoreAlert:m},data(){return{strings:{alert:this.$t.sprintf(this.$t.__("The options below are disabled because you are using %1$s to manage your SEO. They can be changed in the %2$sSearch Appearance menu%3$s.",this.$td),"All in One SEO",`<a href="${this.rootStore.aioseo.urls.aio.searchAppearance}" target="_blank">`,"</a>")}}}},y={class:"aioseo-divi-seo-admin-notice-container"};function b(n,t,o,e,r,x){const s=i("core-alert");return l(),c("div",y,[u(s,{innerHTML:r.strings.alert},null,8,["innerHTML"])])}const S=a(g,[["render",b]]),v=()=>{const n=document.querySelectorAll("#wrap-seo .et-tab-content");for(let t=0;t<n.length;t++){const o=document.createElement("div");o.setAttribute("id",`aioseo-divi-seo-admin-notice-container-${t}`),n[t].insertBefore(o,n[t].firstChild);let e=p({...S,name:"Standalone/DiviAdmin"});e=d(e),e=_(e),e=f(e),A(e),e.mount(`#${o.getAttribute("id")}`)}},w=()=>{const n=document.querySelectorAll('#wrap-seo input[type="text"], #wrap-seo textarea');for(let e=0;e<n.length;e++)n[e].style.pointerEvents="none",n[e].setAttribute("readonly",!0);const t=document.querySelectorAll("#wrap-seo select");for(let e=0;e<t.length;e++)t[e].style.pointerEvents="none",t[e].setAttribute("disabled",!0);const o=document.querySelectorAll("#wrap-seo .et-checkbox");for(let e=0;e<o.length;e++)o[e].setAttribute("disabled",!0),o[e].nextElementSibling.style.pointerEvents="none"},$=()=>{const n=window.aioseo.urls.aio.searchAppearance,t=document.querySelector('a[href="#wrap-seo"]');if(!n||!t)return;const o=t.cloneNode(!0);o.setAttribute("href",n),t.parentNode.replaceChild(o,t)};window.addEventListener("load",()=>{v(),w(),$()});
