import{c as a}from"./js/runtime-dom.esm-bundler.dc49ee3e.js";import{l as i}from"./js/index.b24095c1.js";import{l as c}from"./js/index.6dbf4bd7.js";import{l}from"./js/index.d80c2c2c.js";import{a as p,m as u}from"./js/index.e0fdfdc6.js";import{C as m}from"./js/Index.2a391835.js";import"./js/translations.5e539ab1.js";import{_ as d}from"./js/_plugin-vue_export-helper.eefbdd86.js";import{s as f,_}from"./js/default-i18n.368c2d5c.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.277f0e3d.js";import"./js/Input.94feb999.js";import"./js/Pencil.d82df6a1.js";import"./js/Trash.87a7d946.js";import"./js/Select.2339c1ce.js";import"./js/Caret.cd869c5d.js";import"./js/Close.ccd53ef3.js";import"./js/Toggle.78d1886d.js";import"./js/helpers.b1696305.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()});
