import{_ as a,c as i}from"./js/_plugin-vue_export-helper.BLXtEB-G.js";import{l as c}from"./js/index.DQR9DFri.js";import{l}from"./js/index.CdwEuUIl.js";import{l as u}from"./js/index.3BJ3ZnWB.js";import{u as p,l as m}from"./js/links.C572zDFG.js";import{C as d}from"./js/Caret.CGwYaMo_.js";import{v as f,o as _,c as A,B as b}from"./js/runtime-core.esm-bundler.DMBo7TXk.js";import"./js/translations.Buvln_cw.js";import"./js/default-i18n.Bd0Z306Z.js";import"./js/constants.B6ynd7gz.js";import"./js/helpers.D5tYIqKS.js";const h={setup(){return{rootStore:p()}},components:{CoreAlert:d},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 g(o,t,n,e,r,x){const s=f("core-alert");return _(),A("div",y,[b(s,{innerHTML:r.strings.alert},null,8,["innerHTML"])])}const S=a(h,[["render",g]]),v=()=>{const o=document.querySelectorAll("#wrap-seo .et-tab-content");for(let t=0;t<o.length;t++){const n=document.createElement("div");n.setAttribute("id",`aioseo-divi-seo-admin-notice-container-${t}`),o[t].insertBefore(n,o[t].firstChild);let e=i({...S,name:"Standalone/DiviAdmin"});e=c(e),e=l(e),e=u(e),m(e),e.mount(`#${n.getAttribute("id")}`)}},w=()=>{const o=document.querySelectorAll('#wrap-seo input[type="text"], #wrap-seo textarea');for(const e of o)e.style.pointerEvents="none",e.setAttribute("readonly",!0);const t=document.querySelectorAll("#wrap-seo select");for(const e of t)e.style.pointerEvents="none",e.setAttribute("disabled",!0);const n=document.querySelectorAll("#wrap-seo .et-checkbox");for(const e of n)e.setAttribute("disabled",!0),e.nextElementSibling.style.pointerEvents="none"},$=()=>{const o=window.aioseo.urls.aio.searchAppearance,t=document.querySelector('a[href="#wrap-seo"]');if(!o||!t)return;const n=t.cloneNode(!0);n.setAttribute("href",o),t.parentNode.replaceChild(n,t)};window.addEventListener("load",()=>{v(),w(),$()});
