import{c as a}from"./js/runtime-dom.esm-bundler.dc49ee3e.js";import{l as i}from"./js/index.20093c86.js";import{l as c}from"./js/index.3030e086.js";import{l}from"./js/index.d80c2c2c.js";import{a as p,l as u}from"./js/index.317ad629.js";import{C as m}from"./js/Index.2a391835.js";import"./js/translations.e71e2202.js";import{_ as d}from"./js/_plugin-vue_export-helper.eefbdd86.js";import{a as f,_}from"./js/default-i18n.65d58dd6.js";import{a6 as A,o as b,c as y,l as h}from"./js/runtime-core.esm-bundler.ce5add0b.js";import"./js/Button.9a301412.js";import"./js/Input.f04bee4d.js";import"./js/Pencil.d82df6a1.js";import"./js/Trash.87a7d946.js";import"./js/Select.69906a74.js";import"./js/Caret.cd869c5d.js";import"./js/Close.ccd53ef3.js";import"./js/Toggle.11571651.js";import"./js/helpers.633a054c.js";const g="all-in-one-seo-pack",S={setup(){return{rootStore:p()}},components:{CoreAlert:m},data(){return{strings:{alert:f(_("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.",g),"All in One SEO",`<a href="${this.rootStore.aioseo.urls.aio.searchAppearance}" target="_blank">`,"</a>")}}}},w={class:"aioseo-divi-seo-admin-notice-container"};function v(o,t,n,e,r,L){const s=A("core-alert");return b(),y("div",w,[h(s,{innerHTML:r.strings.alert},null,8,["innerHTML"])])}const x=d(S,[["render",v]]),E=()=>{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=a({...x,name:"Standalone/DiviAdmin"});e=i(e),e=c(e),e=l(e),u(e),e.mount(`#${n.getAttribute("id")}`)}},$=()=>{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"},k=()=>{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",()=>{E(),$(),k()});
