관리-도구
편집 파일: wpbakery.kril7o71.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 j}from"./js/runtime-dom.esm-bundler.h3clfjuw.js";import{c as F,b as T}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.npoectbv.js";import{b as v,C as U,l as D,P as q}from"./js/index.jlplx4ex.js";import{d as w,a as W}from"./js/Caret.hnvbzqgq.js";import{j as N,m as O,t as z}from"./js/postSlug.iva7u65b.js";import{i as G}from"./js/isEqual.czpd1uhn.js";import"./js/translations.b896ab1m.js";import{l as I}from"./js/index.moogjen0.js";import{_ as Q}from"./js/default-i18n.hohxoesu.js";import{M as H}from"./js/Modal.5q89rtzx.js";import{_ as X}from"./js/ScoreButton.br7jqlck.js";import{S as b}from"./js/LogoGear.gxsz2m6s.js";import"./js/_plugin-vue_export-helper.oebm7xum.js";import"./js/helpers.cti0cl6i.js";import"./js/metabox.imp54zfh.js";import"./js/cleanForSlug.i05mvw2m.js";import"./js/toString.fflnj7pf.js";import"./js/_baseTrim.ohbpllmu.js";import"./js/_stringToArray.mpukyt2g.js";import"./js/_baseSet.c1i96bqt.js";import"./js/_baseIsEqual.h4qr0q1d.js";import"./js/_getTag.fj45ivwn.js";import"./js/App.fk02nb60.js";/* empty css */import"./js/LicenseKeyBar.hjx3oj2j.js";import"./js/ScrollTo.ntqtkazp.js";import"./js/params.k8e95b6q.js";import"./js/allowed.oev11igf.js";import"./js/constants.hcfrsngk.js";import"./js/SettingsRow.1l1umqn0.js";import"./js/Row.o0q8mn7y.js";import"./js/Checkbox.fww0datn.js";import"./js/Checkmark.d5kkjaf5.js";import"./js/Tabs.jvzsqe7o.js";import"./js/TruSeoScore.kirz7zix.js";import"./js/ProBadge.ab6jhp8x.js";import"./js/Information.djrr3pec.js";import"./js/Ellipse.mhzh8c2h.js";import"./js/Slide.dop8j51m.js";import"./js/Index.lexckf3q.js";import"./js/MaxCounts.h4dewttr.js";import"./js/Tags.bchklxw9.js";import"./js/debounce.nun852aa.js";import"./js/toNumber.j7ix6obd.js";import"./js/toFinite.m12yy0up.js";import"./js/Tooltip.jx4casvt.js";import"./js/Statistics.l9vto0az.js";import"./js/Plus.e1tf1dpc.js";import"./js/Eye.jbr17b06.js";import"./js/RadioToggle.h9afcyfi.js";import"./js/GoogleSearchPreview.j1gqkkrz.js";import"./js/HtmlTagsEditor.lf2fbwqe.js";import"./js/Editor.fji40euo.js";import"./js/_baseClone.j5qc2kco.js";import"./js/_arrayEach.n8ou32wp.js";import"./js/UnfilteredHtml.d5n2qgzt.js";import"./js/popup.by9shv56.js";import"./js/license.d8rszxb2.js";import"./js/upperFirst.c4ega9c0.js";import"./js/Mobile.livanyta.js";import"./js/vue3-apexcharts.n0h2b4pa.js";import"./js/ConnectCta.dramn71a.js";import"./js/GoogleSearchConsole.gxgbuztl.js";import"./js/Index.h6ka6vtn.js";import"./js/Blur.f3nyx4yc.js";import"./js/Graph.nl8drpov.js";import"./js/numbers.busvl4mt.js";import"./js/WpTable.iid7bkmr.js";import"./js/Table.dpnj7vzp.js";import"./js/RequiredPlans.kyt85n6a.js";import"./js/addons.b0mmvdz0.js";import"./js/PostTypes.pd67gy5m.js";import"./js/External.lyui8nzf.js";import"./js/InternalOutbound.gq4sspcu.js";import"./js/Image.es2mqda0.js";import"./js/FacebookPreview.jawxccqo.js";import"./js/Img.iuunu5c1.js";import"./js/Profile.t9aiulue.js";import"./js/ImageUploader.lcptj1on.js";import"./js/TwitterPreview.vqtawrbw.js";import"./js/Book.f6lktglp.js";import"./js/Settings.cshbxeez.js";import"./js/Build.mjaxpub4.js";import"./js/Redirects.gg0zdho6.js";import"./js/Index.gz5681uw.js";import"./js/JsonValues.g6ep3o3z.js";import"./js/Url.ejc0l7wu.js";import"./js/External.h5te4wqm.js";import"./js/escapeRegExp.745lls71.js";import"./js/Exclamation.f0pmbpi9.js";import"./js/Gear.dx9icaxx.js";import"./js/date.hhdpx3z9.js";import"./js/DatePicker.o51dzq1p.js";import"./js/Calendar.fbofsn3b.js";import"./js/pick.i0imowk1.js";import"./js/Card.m3lmtg1o.js";import"./js/Upsell.niv97kks.js";let S={};const Y=()=>{const o={...S},t=N();G(o,t)||(S=t,O())},J=()=>{const o=v();o.saveCurrentPost(o.currentPost).then(()=>{U().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=I(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(z)(),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=F({history:T(),routes:[{path:"/",component:E}]});let e=C({name:"Standalone/WPBakery",data(){return{tableContext:window.aioseo.currentPost.context,screenContext:"sidebar"}},render:()=>j(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()});