관리-도구
편집 파일: avada.qxadq7se.js
import"./js/translations.lf9cwm9a.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,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.mwhkjjlr.js";import{e as c,l as k}from"./js/index.nd8elblc.js";import{l as x}from"./js/index.h076fivy.js";import{b as f,C as H,P as q,l as M}from"./js/index.nsvc8vqf.js";import{d as w,a as Y}from"./js/Caret.hnvbzqgq.js";import{b as J,m as K,t as O}from"./js/postSlug.cemx0kwk.js";import{i as Q}from"./js/isEqual.gulmggc8.js";import{_ as F}from"./js/ScoreButton.br7jqlck.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.b2imjdmx.js";import"./js/_plugin-vue_export-helper.oebm7xum.js";import"./js/helpers.fdpg7vgg.js";import"./js/metabox.ncz5ucbq.js";import"./js/cleanForSlug.ncex5ar8.js";import"./js/toString.g0kcp64r.js";import"./js/_baseTrim.ohbpllmu.js";import"./js/_stringToArray.mpukyt2g.js";import"./js/_baseSet.lqwmtpeb.js";import"./js/_baseIsEqual.hstd7xe6.js";import"./js/_getTag.h6v5trhq.js";/* empty css */import"./js/LicenseKeyBar.n8bctwdg.js";import"./js/ScrollTo.ntqtkazp.js";import"./js/params.k8e95b6q.js";import"./js/allowed.kmy7i7t2.js";import"./js/constants.fxxegv78.js";import"./js/SettingsRow.1l1umqn0.js";import"./js/Row.o0q8mn7y.js";import"./js/Checkbox.fww0datn.js";import"./js/Checkmark.d5kkjaf5.js";import"./js/Tabs.4r8l6r8o.js";import"./js/TruSeoScore.oj10wjxw.js";import"./js/ProBadge.ab6jhp8x.js";import"./js/Information.djrr3pec.js";import"./js/Ellipse.mhzh8c2h.js";import"./js/Slide.dop8j51m.js";import"./js/Index.fywmukpg.js";import"./js/MaxCounts.dcyuh1uu.js";import"./js/Tags.oypvqhpf.js";import"./js/debounce.paenkskr.js";import"./js/toNumber.lmnvj60l.js";import"./js/toFinite.cbuzojxe.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.o1cj6y7p.js";import"./js/HtmlTagsEditor.k0zlm7pg.js";import"./js/Editor.k6y9ox0q.js";import"./js/_baseClone.nbrz7zdx.js";import"./js/_arrayEach.n8ou32wp.js";import"./js/UnfilteredHtml.erapx69a.js";import"./js/popup.by9shv56.js";import"./js/license.bcd45a0t.js";import"./js/upperFirst.mzmrvvb6.js";import"./js/Mobile.livanyta.js";import"./js/vue3-apexcharts.n0h2b4pa.js";import"./js/ConnectCta.fpg4jfxp.js";import"./js/GoogleSearchConsole.fwntzjjl.js";import"./js/Index.lvccx76i.js";import"./js/Blur.f3nyx4yc.js";import"./js/Graph.dm4w1ra9.js";import"./js/numbers.busvl4mt.js";import"./js/WpTable.qh17xjl6.js";import"./js/Table.jd7cflkg.js";import"./js/RequiredPlans.e7ak5151.js";import"./js/addons.foby19s7.js";import"./js/PostTypes.d1dx9z99.js";import"./js/External.lyui8nzf.js";import"./js/InternalOutbound.gq4sspcu.js";import"./js/Image.g0jgwvuo.js";import"./js/FacebookPreview.mpw3lfil.js";import"./js/Img.iuunu5c1.js";import"./js/Profile.t9aiulue.js";import"./js/ImageUploader.j9of4s9e.js";import"./js/TwitterPreview.nwjqs262.js";import"./js/Book.f6lktglp.js";import"./js/Settings.cshbxeez.js";import"./js/Build.mjaxpub4.js";import"./js/Redirects.ngf9mprt.js";import"./js/Index.liespbtj.js";import"./js/JsonValues.g6ep3o3z.js";import"./js/External.h5te4wqm.js";import"./js/escapeRegExp.cd9ew2v1.js";import"./js/Exclamation.f0pmbpi9.js";import"./js/Gear.dx9icaxx.js";import"./js/date.ecds9xx3.js";import"./js/DatePicker.odhs29tp.js";import"./js/Calendar.fbofsn3b.js";import"./js/pick.dywdbgah.js";import"./js/Card.n68aovsj.js";import"./js/Upsell.j5qfjr6p.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)},at={class:"aioseo-avada-integration"},rt={__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",at,[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,[a("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,[a("div",{class:"aioseo-limit-modified-date-avada__option",onClick:S(i,["prevent"])},D(e.buttonTitle),1)])):L("",!0)]))}},r={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")},lt=()=>{const{FusionApp:t}=window;c.on(r.event,()=>{t.data.query[r.param]=!0,t.savePostContent(),delete t.data.query[r.param]})},pt=()=>{lt()};let m=null,l=null,p=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:rt,name:"Button"})),!t.querySelector(b)){const e=t.querySelector(".fusion-builder-save-page");e.insertAdjacentElement("afterend",P(b)),l==null||l.unmount(),l=C({id:b,component:mt,name:"LimitModifiedDate",data:{buttonTitle:r.title,buttonEvent:r.event,buttonDisabled:e.getAttribute("data-disabled")==="true"}})}o&&(p==null||p.disconnect(),p=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,[a("div",_t,[a("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)]),a("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(),pt()})},W=()=>{ht(),nt()};let I=!1;const wt=window.FusionEvents||window.FusionPageBuilderEvents||{};wt.on("fusion-builder-loaded",()=>{setTimeout(W),I=!0});document.addEventListener("DOMContentLoaded",()=>{I||setTimeout(W)});