import{as as a,f as i,i as c,a0 as l,ap as p}from"./js/vendor-vue-ui.02763c14.js";import{l as u}from"./js/index.01468dbf.js";import{l as m}from"./js/index.aa890c6d.js";import{l as d}from"./js/index.0d80c2c2.js";import{b as f,l as _}from"./js/app-core.82d0a9b8.js";import{C as b}from"./js/Index.ab3a7ebe.js";import{_ as A}from"./js/_plugin-vue_export-helper.eefbdd86.js";import{a as y,_ as h}from"./js/vendor-other.2cdd5822.js";import"./js/Button.b03184b6.js";import"./js/Input.07427c66.js";import"./js/Pencil.b091de6b.js";import"./js/Trash.9c01fca5.js";import"./js/Select.30909b5d.js";import"./js/Caret.1dd03f59.js";import"./js/Close.ed64f0a2.js";import"./js/Toggle.a8bd36f4.js";import"./js/vendor-datetime.430013a3.js";import"./js/vendor-lodash.f9514987.js";const g="all-in-one-seo-pack",S={setup(){return{rootStore:f()}},components:{CoreAlert:b},data(){return{strings:{alert:y(h("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 i(),c("div",w,[l(s,{innerHTML:r.strings.alert},null,8,["innerHTML"])])}const x=A(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=p({...x,name:"Standalone/DiviAdmin"});e=u(e),e=m(e),e=d(e),_(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()});
