import{f as i,i as m,j as E,U as C,T as w,au as M,Q as l,R as P,a0 as u,v as n,P as b,M as d,r as x,ao as D,ap as B,an as L,h as A}from"./js/vendor-vue-ui.65fbb3e9.js";import{l as $}from"./js/index.22409e1b.js";import{l as j}from"./js/index.876de895.js";import{e as f,aJ as g,u as S,aK as R,m as q,ah as F,l as T}from"./js/app-core.3e3b5f4b.js";import{h as U}from"./js/helpers.fa2f0ea6.js";import{k as N}from"./js/vendor-lodash.a7229f96.js";import{P as V}from"./js/PageBuilderIntegration.0a6d25b1.js";import{_ as W}from"./js/vendor-other.ac1169a2.js";import{M as O}from"./js/Modal.239b3cc8.js";import{_ as z}from"./js/ScoreButton.f7a28f59.js";import{S as _}from"./js/LogoGear.9c1ac16a.js";import"./js/Button.60477c93.js";import"./js/_plugin-vue_export-helper.eefbdd86.js";import"./js/Input.32b40815.js";import"./js/Index.792b437f.js";import"./js/Close.3dad5b8a.js";import"./js/Pencil.b9e32152.js";import"./js/Trash.c607f240.js";import"./js/Select.b03c8501.js";import"./js/Caret.bc946270.js";import"./js/Toggle.44cb6570.js";import"./js/App.cb3038f7.js";/* empty css                */import"./js/ScrollAndHighlight.861a8e8d.js";import"./js/ScrollTo.f4df02aa.js";import"./js/LicenseKeyBar.11f3d03a.js";import"./js/vendor-phone.19272b37.js";import"./js/icon.c5b6e5f1.js";import"./js/Tabs.9d0d873c.js";import"./js/ProBadge.b0e426b0.js";import"./js/Information.ba20a904.js";import"./js/Slide.1fe27f7c.js";import"./js/Index.ce0c115a.js";import"./js/SettingsRow.d1734943.js";import"./js/Row.35464476.js";import"./js/Settings.bb11b51a.js";import"./js/Build.6fddccc8.js";import"./js/AiContent.0e60f1f9.js";let v={};const H=()=>{const o={...v},t=R();N(o,t)||(v=t,q())},Q=()=>{const{vc:o,vc_mode:t}=window;return t==="admin_frontend_editor"?o.builder.getContent():document.querySelector("#content")?.value||""},p=async()=>{S().processContent({content:Q()}).finally(()=>{H()})},G=({vc:o})=>{p(),o.events.on("shortcodeView:updated",()=>{f(p,1e3)}),o.shortcodes.on("sync",()=>{f(p,1e3)}),g().forEach(t=>{t.addEventListener("click",()=>{setTimeout(U)})})},I={__name:"LimitModifiedDate",emits:["click"],setup(o){const t={buttonTitle:W("Save (Don't Modify Date)","all-in-one-seo-pack")};return(e,s)=>(i(),m("a",{href:"#",onClick:s[0]||(s[0]=w(r=>e.$emit("click"),["prevent","exact","stop"]))},[E("p",null,C(t.buttonTitle),1)]))}},J=()=>document.querySelector("#vc_more-options")?.querySelector("ul"),K=({jQuery:o})=>{const t=(s,r,a)=>{const c=new URLSearchParams(a.data);c.get("action")==="vc_save"&&(c.set("aioseo_limit_modified_date",!0),a.data=c.toString(),o(document).off("ajaxSend",t))};new V({limitModifiedDate:{component:I,appName:"Standalone/WPBakery/LimitModifiedDate",props:{onClick:()=>{o(document).on("ajaxSend",t),g(!0)[0]?.click()}},node:{$wrapper:J(),tag:"li",attributes:{id:"aioseo-limit-modified-date-wpbakery",class:"vc_dropdown-list-item"}}}}).mount()},X={class:"aioseo-wpbakery-integration"},Y={key:2,class:"aioseo-gear-icon"},y={__name:"App",props:{isFrontendEditor:Boolean},setup(o){const t=x(!1),{currentPost:e}=M(S());return(s,r)=>(i(),m("div",X,[o.isFrontendEditor?(i(),l(n(z),{key:0,"show-score":n(F)(),score:n(e).seo_score,class:b([t.value?"aioseo-score-button--active":""]),onClick:r[0]||(r[0]=w(a=>t.value=!t.value,["prevent"]))},{icon:P(()=>[u(n(_))]),_:1},8,["show-score","score","class"])):d("",!0),o.isFrontendEditor?(i(),l(n(O),{key:1,score:n(e).seo_score,"is-open":t.value,"onUpdate:isOpen":r[1]||(r[1]=a=>t.value=a)},null,8,["score","is-open"])):d("",!0),o.isFrontendEditor?d("",!0):(i(),m("div",Y,[u(n(_))]))]))}},{vc:Z}=window,tt=()=>{const{vc_mode:o}=window,t=D({history:B(),routes:[{path:"/:pathMatch(.*)*",component:y}]});let e=L({name:"Standalone/WPBakery",data(){return{tableContext:window.aioseo.currentPost.context,screenContext:"sidebar"}},render:()=>A(y)},{isFrontendEditor:o==="admin_frontend_editor"});e=$(e),e=j(e),e.use(t),t.app=e,T(e,t),e.mount("#aioseo-wpbakery")},h=()=>{tt(),G(window),K(window)};let k=!1;Z.events.on("app.render",()=>{h(),k=!0});window.addEventListener("load",()=>{k||h()});
