관리-도구
편집 파일: avada.j3jj17as.js
import"./js/translations.b896ab1m.js";import{g as A,y as N,o as d,c as u,C as v,l as j,u as n,G as g,E as S,a as r,t as D,b as L,Y as B,h as $,k as G}from"./js/runtime-dom.esm-bundler.h3clfjuw.js";import{c as U,b as z}from"./js/vue-router.eypfdvl5.js";import{e as c,l as k}from"./js/index.nd8elblc.js";import{l as x}from"./js/index.kaabvvzj.js";import{e as f,y as H,I as q,c as M}from"./js/index.ba51ghj9.js";import{d as w,a as Y}from"./js/Caret.dwp6xpza.js";import{d as J,m as K,i as O}from"./js/postSlug.ms4f44w2.js";import{i as Q}from"./js/isEqual.dwjbg1yu.js";import{_ as F}from"./js/ScoreButton.erl7ixj3.js";import{S as X}from"./js/LogoGear.gxsz2m6s.js";import{_ as R,a as Z,i as tt}from"./js/default-i18n.hohxoesu.js";import{_ as ot}from"./js/App.levbhvl8.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";/* 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 y={};const et=()=>{const t={...y},o=J();Q(t,o)||(y=o,K())},it=()=>{const t=f();t.saveCurrentPost(t.currentPost).then(()=>{H().fetch()})},E=async()=>{const{FusionApp:t,fusionBuilderGetContent:o,FusionPageBuilderApp:e}=window;e==null||e.builderToShortcodes();const s=(t==null?void 0:t.getPost("post_content"))||o("content")||"";f().processContent({content:s}).finally(()=>{et()})},st=()=>{const{FusionApp:t}=window;t==null||t.set("hasChange",!0)},nt=()=>{var e;if(!((e=window.FusionApp||window.FusionPageBuilderApp)!=null&&e.builderActive))return;E();const t=window.FusionEvents||window.FusionPageBuilderEvents||{},o=["fusion-app-setup","fusion-history-save-step","fusion-element-added","fusion-element-removed","fusion-element-cloned","fusion-content-changed","fusion-post_title-changed"].join(" ");t.on(o,()=>{w(E,1e3)}),t.on("fusion-app-saved",()=>{w(it,100)}),t.on("fusion-sidebar-toggled",s=>{c.emit("fusionSidebarToggled",s)}),c.on("postSettingsUpdated",st)},rt={class:"aioseo-avada-integration"},at={__name:"Button",setup(t){const o=A(!1),{currentPost:e}=q(f()),s=()=>{o.value=!o.value;const{FusionApp:i}=window;o.value?(document.body.classList.add("aioseo-avada-sidebar--active"),i.sidebarView.panelIsOpen()&&i.sidebarView.closeSidebar()):document.body.classList.remove("aioseo-avada-sidebar--active")};return N(()=>{o.value=document.body.classList.contains("aioseo-avada-sidebar--active"),c.on("fusionSidebarToggled",i=>{i&&(o.value=!1,document.body.classList.remove("aioseo-avada-sidebar--active"))})}),(i,h)=>(d(),u("div",rt,[v(n(F),{"show-score":n(O)(),score:n(e).seo_score,class:g([o.value?"aioseo-score-button--active":""]),onClick:S(s,["prevent"])},{icon:j(()=>[v(n(X))]),_:1},8,["show-score","score","class"])]))}},dt={class:"aioseo-limit-modified-date-avada"},ct={key:0,class:"aioseo-limit-modified-date-avada__options"},mt={__name:"LimitModifiedDate",props:{buttonTitle:String,buttonEvent:String,buttonDisabled:Boolean},setup(t){const o=A(!1),e=t,s=()=>{e.buttonDisabled||(o.value=!o.value)},i=()=>{o.value=!1,c.emit(e.buttonEvent)};return(h,yt)=>(d(),u("div",dt,[r("div",{class:g(["aioseo-limit-modified-date-avada__toggle",{"aioseo-limit-modified-date-avada__toggle--disabled":e.buttonDisabled}]),onClick:S(s,["prevent"])},[v(n(Y),{class:g({rotated:o.value})},null,8,["class"])],2),o.value?(d(),u("div",ct,[r("div",{class:"aioseo-limit-modified-date-avada__option",onClick:S(i,["prevent"])},D(e.buttonTitle),1)])):L("",!0)]))}},a={id:"aioseo-limit-modified-date-avada",param:"aioseo_limit_modified_date",event:"save-limit-modified-date",title:R("Save (Don't Modify Date)","all-in-one-seo-pack")},pt=()=>{const{FusionApp:t}=window;c.on(a.event,()=>{t.data.query[a.param]=!0,t.savePostContent(),delete t.data.query[a.param]})},lt=()=>{pt()};let m=null,p=null,l=null;const _="#fusion-builder-aioseo-button",b="#fusion-builder-aioseo-lmd",C=({id:t,component:o,name:e,data:s})=>{let i=B({name:`Standalone/Avada/${e}`,render:()=>$(o)},s||{});return i=k(i),i=x(i),M(i),i.mount(t),i},P=t=>{const o=document.createElement("div");return o.id=t.replace("#",""),o.className="aioseo-toolbar-item",o},V=()=>{const t=document.querySelector(".fusion-builder-live-toolbar"),o=t.querySelector(".aioseo-toolbar-item")===null;if(t.querySelector(_)||(t.insertAdjacentElement("beforeend",P(_)),m==null||m.unmount(),m=C({id:_,component:at,name:"Button"})),!t.querySelector(b)){const e=t.querySelector(".fusion-builder-save-page");e.insertAdjacentElement("afterend",P(b)),p==null||p.unmount(),p=C({id:b,component:mt,name:"LimitModifiedDate",data:{buttonTitle:a.title,buttonEvent:a.event,buttonDisabled:e.getAttribute("data-disabled")==="true"}})}o&&(l==null||l.disconnect(),l=ut())},ut=()=>{const t=new MutationObserver(()=>{V()});return t.observe(document.querySelector(".fusion-builder-live-toolbar"),{childList:!0,subtree:!0}),t},vt=()=>{V()},ft={class:"edit-post-sidebar aioseo-avada-sidebar"},_t={class:"aioseo-avada-sidebar__header"},bt={class:"aioseo-avada-sidebar__header-title"},gt={class:"aioseo-avada-sidebar__content"},T={__name:"Sidebar",setup(t){const o="all-in-one-seo-pack",{currentPost:e}=q(f()),s={headerTitle:Z(R("%1$s Settings",o),"AIOSEO")};return(i,h)=>(d(),u("div",ft,[r("div",_t,[r("div",bt,D(s.headerTitle),1),n(e).seo_score&&n(O)()?(d(),G(n(F),{key:0,score:n(e).seo_score,class:"aioseo-score-button--active"},null,8,["score"])):L("",!0)]),r("div",gt,[v(n(ot))])]))}},St=()=>{const t=U({history:z(),routes:[{path:"/",component:T}]});let o=B({name:"Standalone/Avada",data(){return{tableContext:window.aioseo.currentPost.context,screenContext:"sidebar"}},render:()=>$(T)});o=k(o),o=x(o),o.use(t),t.app=o,M(o,t),o.mount("#fusion-builder-aioseo-sidebar")},ht=()=>{const{FusionEvents:t}=window;typeof t>"u"||t.on("fusion-app-setup",()=>{document.documentElement.setAttribute("dir",tt()?"rtl":"ltr"),vt(),St(),lt()})},I=()=>{ht(),nt()};let W=!1;const wt=window.FusionEvents||window.FusionPageBuilderEvents||{};wt.on("fusion-builder-loaded",()=>{setTimeout(I),W=!0});document.addEventListener("DOMContentLoaded",()=>{W||setTimeout(I)});