import{_ as a}from"./js/_plugin-vue_export-helper.5bcc150c.js";import{x as i,o as c,c as l,z as u,P as p}from"./js/vue.runtime.esm-bundler.308f2021.js";import{l as d}from"./js/index.a56340a2.js";import{C as m,l as _}from"./js/index.fadde3df.js";import{l as f}from"./js/index.0b123ab1.js";import{u as A,l as y}from"./js/links.bbde6535.js";import"./js/translations.6e7b2383.js";import"./js/default-i18n.3881921e.js";import"./js/constants.b87c371e.js";import"./js/Caret.baea7fe0.js";import"./js/isArrayLikeObject.965a2149.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()});
