관리-도구
편집 파일: wpbakery.f24fhtrp.js
import{g as k,o as s,c,a as y,C as u,G as h,u as n,E as f,t as M,b as p,Y as C,X as R,k as g,l as $,Q as V,h as F}from"./js/runtime-dom.esm-bundler.h3clfjuw.js";import{c as T,b as U}from"./js/vue-router.eypfdvl5.js";import{e as P,l as x}from"./js/index.nd8elblc.js";import{l as B}from"./js/index.kaabvvzj.js";import{e as v,y as j,c as D,I as q}from"./js/index.ba51ghj9.js";import{d as w,a as W}from"./js/Caret.dwp6xpza.js";import{l as I,m as N,i as O}from"./js/postSlug.ms4f44w2.js";import{i as z}from"./js/isEqual.dwjbg1yu.js";import"./js/translations.b896ab1m.js";import{l as G}from"./js/index.moogjen0.js";import{_ as Q}from"./js/default-i18n.hohxoesu.js";import{M as H}from"./js/Modal.o0a6nlic.js";import{_ as X}from"./js/ScoreButton.erl7ixj3.js";import{S as b}from"./js/LogoGear.gxsz2m6s.js";import"./js/_plugin-vue_export-helper.oebm7xum.js";import"./js/helpers.lwqbledo.js";import"./js/metabox.y83zoorm.js";import"./js/cleanForSlug.dzbbaoug.js";import"./js/toString.oppn28a8.js";import"./js/_baseTrim.ohbpllmu.js";import"./js/_stringToArray.mpukyt2g.js";import"./js/_baseSet.ipousrvi.js";import"./js/regex.bekpgw04.js";import"./js/_baseIsEqual.j7gru8tk.js";import"./js/_getTag.fx9iqlmr.js";import"./js/App.levbhvl8.js";/* empty css */import"./js/LicenseKeyBar.gh3b5rkr.js";import"./js/ScrollTo.ntqtkazp.js";import"./js/params.k8e95b6q.js";import"./js/allowed.o46uhc7o.js";import"./js/constants.hcfrsngk.js";import"./js/SettingsRow.d9u0swi1.js";import"./js/Row.h4gujlzc.js";import"./js/Checkbox.cv4w58s0.js";import"./js/Checkmark.d5kkjaf5.js";import"./js/Tabs.opo0ypfq.js";import"./js/TruSeoScore.das28gz4.js";import"./js/ProBadge.e32os6n3.js";import"./js/Information.djrr3pec.js";import"./js/Ellipse.mhzh8c2h.js";import"./js/Slide.dop8j51m.js";import"./js/Index.kqt70nj0.js";import"./js/MaxCounts.h4dewttr.js";import"./js/Tags.mkuonlme.js";import"./js/debounce.mrkkoh0r.js";import"./js/toNumber.i3xpxrn8.js";import"./js/toFinite.fa15x3ow.js";import"./js/Tooltip.i4md1nj9.js";import"./js/Statistics.l9vto0az.js";import"./js/Plus.e1tf1dpc.js";import"./js/Eye.jbr17b06.js";import"./js/RadioToggle.cler7vn3.js";import"./js/GoogleSearchPreview.mmblg2b4.js";import"./js/HtmlTagsEditor.irue4ytl.js";import"./js/Editor.ipgvvrs0.js";import"./js/_baseClone.n1l9l19s.js";import"./js/_arrayEach.n8ou32wp.js";import"./js/UnfilteredHtml.o4azp64h.js";import"./js/popup.dv3t4x6w.js";import"./js/SetupWizardStore.hjajzbq0.js";import"./js/datetime.hyfm7zez.js";import"./js/license.ij9c7ra4.js";import"./js/upperFirst.bgyeasim.js";import"./js/Mobile.livanyta.js";import"./js/Settings.m4k6ojy4.js";import"./js/TableOfContentsStore.hhb2k7dx.js";import"./js/vue3-apexcharts.n0h2b4pa.js";import"./js/ConnectCta.kd4ryk1u.js";import"./js/GoogleSearchConsole.gq5vl5zt.js";import"./js/Index.jq0lth54.js";import"./js/Blur.mu93d3e2.js";import"./js/Graph.chc9u9ci.js";import"./js/numbers.busvl4mt.js";import"./js/WpTable.i82lv9f1.js";import"./js/Table.bzjzsap0.js";import"./js/RequiredPlans.fcb8z72b.js";import"./js/addons.eq04tz3m.js";import"./js/PostTypes.pd67gy5m.js";import"./js/External.lyui8nzf.js";import"./js/InternalOutbound.gq4sspcu.js";import"./js/Image.j9h9tyqk.js";import"./js/FacebookPreview.gt9tcl43.js";import"./js/Img.cncschi2.js";import"./js/Profile.t9aiulue.js";import"./js/ImageUploader.l2gqgn6z.js";import"./js/TwitterPreview.liy9u0my.js";import"./js/Book.f6lktglp.js";import"./js/Build.mjaxpub4.js";import"./js/Redirects.nw8rq81b.js";import"./js/Index.j04s6syt.js";import"./js/JsonValues.g6ep3o3z.js";import"./js/Url.e5jo61ge.js";import"./js/External.h5te4wqm.js";import"./js/escapeRegExp.o0mkkk5c.js";import"./js/Exclamation.f0pmbpi9.js";import"./js/Gear.dx9icaxx.js";import"./js/date.ozs95ujh.js";import"./js/DatePicker.hz9n2i3u.js";import"./js/Calendar.fbofsn3b.js";import"./js/pick.e9wcosvf.js";import"./js/Card.0q0mr1wq.js";import"./js/Upsell.l3r393es.js";let S={};const Y=()=>{const o={...S},t=I();z(o,t)||(S=t,N())},J=()=>{const o=v();o.saveCurrentPost(o.currentPost).then(()=>{j().fetch()})},K=()=>{var e;const{vc:o,vc_mode:t}=window;return t==="admin_frontend_editor"?o.builder.getContent():((e=document.querySelector("#content"))==null?void 0:e.value)||""},l=async()=>{v().processContent({content:K()}).finally(()=>{Y()})},Z=({vc:o})=>{l(),o.events.on("shortcodeView:updated",()=>{w(l,1e3)}),o.shortcodes.on("sync",()=>{w(l,1e3)}),["#vc_button-update","#vc_button-save-draft","#vc_button-save-as-pending"].forEach(t=>{var e;(e=document.querySelector(t))==null||e.addEventListener("click",J)})},tt={class:"aioseo-limit-modified-date-wpbakery"},ot={key:0,class:"aioseo-limit-modified-date-wpbakery__options"},et={__name:"App",props:{buttonTitle:String,buttonEvent:String},setup(o){const t=k(!1),e=o,a=()=>{t.value=!1,P.emit(e.buttonEvent)};return(r,m)=>(s(),c("div",tt,[y("div",{class:"aioseo-limit-modified-date-wpbakery__toggle",onClick:m[0]||(m[0]=f(d=>t.value=!t.value,["prevent"]))},[u(n(W),{class:h({rotated:t.value})},null,8,["class"])]),t.value?(s(),c("div",ot,[y("div",{class:"aioseo-limit-modified-date-wpbakery__option",onClick:f(a,["prevent"])},M(e.buttonTitle),1)])):p("",!0)]))}},i={id:"aioseo-limit-modified-date-wpbakery",param:"aioseo_limit_modified_date",event:"save-limit-modified-date",title:Q("Update (Don't Modify Date)","all-in-one-seo-pack"),flag:!1},_=()=>document.getElementById("vc_button-update"),it=()=>{if(document.getElementById(i.id))return;const o=document.createElement("div");o.id=i.id,_().insertAdjacentElement("afterend",o);let t=C({...et,name:"Standalone/WPBakery/LimitModifiedDate"},{buttonTitle:i.title,buttonEvent:i.event});t=x(t),t=B(t),t=G(t),D(t),t.mount(`#${i.id}`)},rt=o=>{o(document).on("ajaxSend",function(t,e,a){const r=new URLSearchParams(a.data);r.get("action")!=="vc_save"||!i.flag||(r.set(i.param,!0),a.data=r.toString())}),P.on(i.event,()=>{i.flag=!0,_().click(),setTimeout(()=>{i.flag=!1})})},nt=({jQuery:o})=>{_()&&(it(),rt(o))},st={class:"aioseo-wpbakery-integration"},at={key:2,class:"aioseo-gear-icon"},E={__name:"App",props:{isFrontendEditor:Boolean},setup(o){const t=k(!1),{currentPost:e}=q(v());return(a,r)=>{const m=R("scroll-to");return s(),c("div",st,[o.isFrontendEditor?(s(),g(n(X),{key:0,"show-score":n(O)(),score:n(e).seo_score,class:h([t.value?"aioseo-score-button--active":""]),onClick:r[0]||(r[0]=f(d=>t.value=!t.value,["prevent"]))},{icon:$(()=>[u(n(b))]),_:1},8,["show-score","score","class"])):p("",!0),o.isFrontendEditor?(s(),g(n(H),{key:1,score:n(e).seo_score,"is-open":t.value,"onUpdate:isOpen":r[1]||(r[1]=d=>t.value=d)},null,8,["score","is-open"])):p("",!0),o.isFrontendEditor?p("",!0):V((s(),c("div",at,[u(n(b))])),[[m,{el:"#aioseo-settings",offset:-150}]])])}}},{vc:mt}=window,pt=()=>{const{vc_mode:o}=window,t=T({history:U(),routes:[{path:"/",component:E}]});let e=C({name:"Standalone/WPBakery",data(){return{tableContext:window.aioseo.currentPost.context,screenContext:"sidebar"}},render:()=>F(E)},{isFrontendEditor:o==="admin_frontend_editor"});e=x(e),e=B(e),e.use(t),t.app=e,D(e,t),e.mount("#aioseo-wpbakery")},A=()=>{pt(),Z(window),nt(window)};let L=!1;mt.events.on("app.render",()=>{A(),L=!0});window.addEventListener("load",()=>{L||A()});