import{_ as a}from"./js/_plugin-vue_export-helper.4292a25a.js";import{r as i,o as l,c,d as u,E as p}from"./js/vue.runtime.esm-bundler.1bf81f69.js";import{l as d}from"./js/index.f62253a4.js";import{C as m,l as _}from"./js/index.cd7fac8b.js";import{l as f}from"./js/index.0b123ab1.js";import{u as h,l as A}from"./js/links.4e9269a4.js";import"./js/translations.f6b76bbe.js";import"./js/default-i18n.41786823.js";import"./js/constants.a78fc4cb.js";import"./js/Caret.0b57d359.js";import"./js/isArrayLikeObject.76f0d098.js";const y={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>")}}}},b={class:"aioseo-divi-seo-admin-notice-container"};function g(n,t,o,e,r,x){const s=i("core-alert");return l(),c("div",b,[u(s,{innerHTML:r.strings.alert},null,8,["innerHTML"])])}const S=a(y,[["render",g]]),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(),$()});
