관리-도구
편집 파일: avada.c47np9h4.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,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.npoectbv.js";import{b as f,C as H,P as q,l as M}from"./js/index.jlplx4ex.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.iva7u65b.js";import{i as Q}from"./js/isEqual.czpd1uhn.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.fk02nb60.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";/* 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 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)});