import{c as a}from"./js/runtime-dom.esm-bundler.f6259c83.js";import{l as i}from"./js/index.7c01c5f2.js";import{l as c}from"./js/index.e8c482d5.js";import{l}from"./js/index.d80c2c2c.js";import{a as p,m as u}from"./js/index.ed1fc0db.js";import{C as m}from"./js/Index.504e4ac6.js";import"./js/translations.d159963e.js";import{_ as d}from"./js/_plugin-vue_export-helper.eefbdd86.js";import{s as f,_}from"./js/default-i18n.20001971.js";import{a6 as A,o as b,c as y,m as h}from"./js/runtime-core.esm-bundler.4f558f23.js";import"./js/Button.e237bb50.js";import"./js/Input.d9e61fc6.js";import"./js/Pencil.b89246dd.js";import"./js/Trash.263ee9c7.js";import"./js/Select.4ddf605b.js";import"./js/Caret.b694929e.js";import"./js/Close.8fb798f7.js";import"./js/Toggle.61ecb096.js";import"./js/helpers.2a6f0df7.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()});
