import{_ as a}from"./js/_plugin-vue_export-helper.abeb2ae0.js";import{x as i,o as c,c as l,C as u,Y as p}from"./js/vue.runtime.esm-bundler.4a881941.js";import{l as d}from"./js/index.683fda17.js";import{C as m,l as _}from"./js/index.e978df4e.js";import{l as f}from"./js/index.0b123ab1.js";import{u as A,l as y}from"./js/links.125d59c9.js";import"./js/translations.6e7b2383.js";import"./js/default-i18n.3881921e.js";import"./js/constants.238e5b7b.js";import"./js/Caret.02d7c74a.js";import"./js/isArrayLikeObject.ab8f4241.js";const b={setup(){return{rootStore:A()}},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>")}}}},h={class:"aioseo-divi-seo-admin-notice-container"};function g(n,t,o,e,r,$){const s=i("core-alert");return c(),l("div",h,[u(s,{innerHTML:r.strings.alert},null,8,["innerHTML"])])}const S=a(b,[["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),y(e),e.mount(`#${o.getAttribute("id")}`)}},w=()=>{const n=document.querySelectorAll('#wrap-seo input[type="text"], #wrap-seo textarea');for(const e of n)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 o=document.querySelectorAll("#wrap-seo .et-checkbox");for(const e of o)e.setAttribute("disabled",!0),e.nextElementSibling.style.pointerEvents="none"},x=()=>{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(),x()});
