관리-도구
편집 파일: avada.dc76f3df.js
import"./js/translations.d159963e.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.5c3c7d72.js";import{c as U,b as z}from"./js/vue-router.2f910c93.js";import{e as c,l as k}from"./js/index.7c01c5f2.js";import{l as x}from"./js/index.8c70464a.js";import{e as f,y as H,J as q,c as M}from"./js/index.ae2b6956.js";import{d as w,a as J}from"./js/Caret.d9cc70ba.js";import{d as Y,m as K,i as O}from"./js/helpers.979ce6ae.js";import{i as Q}from"./js/isEqual.4981d166.js";import{_ as F}from"./js/ScoreButton.78818232.js";import{S as X}from"./js/LogoGear.cb664d3b.js";import{_ as R,s as Z,i as tt}from"./js/default-i18n.20001971.js";import{_ as ot}from"./js/App.c699cb5e.js";import"./js/_plugin-vue_export-helper.eefbdd86.js";import"./js/helpers.c7282833.js";import"./js/metabox.870afb5f.js";import"./js/cleanForSlug.c4a9e111.js";import"./js/toString.a2dfb892.js";import"./js/_baseTrim.11b89ad9.js";import"./js/_stringToArray.f9ddb970.js";import"./js/_baseSet.ab668497.js";import"./js/regex.8a6101c0.js";import"./js/_baseIsEqual.44a599a3.js";import"./js/_getTag.805e37e1.js";/* empty css */import"./js/LicenseKeyBar.e89a3a57.js";import"./js/ScrollTo.81bea8a7.js";import"./js/params.af7ed354.js";import"./js/allowed.97bad57f.js";import"./js/constants.24c44c43.js";import"./js/SettingsRow.9f92e269.js";import"./js/Row.df38a5f6.js";import"./js/Checkbox.6db0b9ed.js";import"./js/Checkmark.e40641dd.js";import"./js/Url.e2d414d9.js";import"./js/Tabs.b7a0989c.js";import"./js/ProBadge.751e0b85.js";import"./js/Information.13e8cece.js";import"./js/Slide.39c07c03.js";import"./js/Index.4b4d1967.js";import"./js/MaxCounts.7c38e980.js";import"./js/Tags.36fc4b35.js";import"./js/Tooltip.73441134.js";import"./js/Ellipse.e3ae0692.js";import"./js/Eye.8dc261a7.js";import"./js/debounce.d28a679a.js";import"./js/toNumber.9174f39a.js";import"./js/toFinite.a7fa1cc6.js";import"./js/TruSeoScore.9c887755.js";import"./js/Statistics.2cff8c0a.js";import"./js/Plus.426117bd.js";import"./js/RadioToggle.333e7750.js";import"./js/GoogleSearchPreview.c38187f9.js";import"./js/HtmlTagsEditor.48d4a46c.js";import"./js/Editor.cf7b5e9d.js";import"./js/_baseClone.6a6e57fd.js";import"./js/_arrayEach.6af5abac.js";import"./js/UnfilteredHtml.e8ff6232.js";import"./js/popup.a0c1a9c9.js";import"./js/SetupWizardStore.5cece966.js";import"./js/datetime.f197aeae.js";import"./js/license.306f6adb.js";import"./js/upperFirst.eac3a366.js";import"./js/Mobile.ada2591a.js";import"./js/Settings.9f4c4ffc.js";import"./js/TableOfContentsStore.c4730d49.js";import"./js/vue3-apexcharts.57b6886c.js";import"./js/ConnectCta.e7aee71e.js";import"./js/GoogleSearchConsole.33614a4b.js";import"./js/Index.0e872043.js";import"./js/Blur.edde4939.js";import"./js/Graph.30801e76.js";import"./js/numbers.9fc174f3.js";import"./js/WpTable.3bd76eb9.js";import"./js/Table.dec4729d.js";import"./js/Download.17eb5e1f.js";import"./js/RequiredPlans.78e071b4.js";import"./js/addons.2e54f461.js";import"./js/PostTypes.dafa8837.js";import"./js/External.3b8c2917.js";import"./js/InternalOutbound.8d129cbf.js";import"./js/Image.6aea48d8.js";import"./js/FacebookPreview.eab372cf.js";import"./js/Img.90c4fd14.js";import"./js/Profile.ad607616.js";import"./js/ImageUploader.4861085d.js";import"./js/TwitterPreview.e775ca55.js";import"./js/Book.74a13fcd.js";import"./js/Build.b598c742.js";import"./js/Redirects.d05ac054.js";import"./js/Index.cb87b583.js";import"./js/JsonValues.3fcfec97.js";import"./js/External.c9d4f255.js";import"./js/escapeRegExp.622432b4.js";import"./js/Exclamation.22e53a8b.js";import"./js/Gear.bd4e1565.js";import"./js/date.a32abd75.js";import"./js/DatePicker.558480ed.js";import"./js/Calendar.b69b61c4.js";import"./js/pick.aeb091b6.js";import"./js/Card.109b77eb.js";import"./js/Upsell.ca03707b.js";let y={};const et=()=>{const t={...y},o=Y();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(J),{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()})},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)});