관리-도구
편집 파일: avada.c7aqtlxq.js
import"./js/translations.e22mvhfh.js";import{g as A,y as I,o as d,c as p,C as v,l as N,u as n,G as g,E as S,a,t as D,b as L,Y as B,h as $,k as j}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.njux2kgl.js";import{l as x}from"./js/index.cw7tfyil.js";import{d as w,C as f,P as H,G as Y,F as J,a6 as q,W as F,o as M}from"./js/index.lqcu3hi3.js";import{i as K}from"./js/isEqual.izz0yjhb.js";import{_ as O}from"./js/ScoreButton.erl7ixj3.js";import{S as Q}from"./js/LogoGear.gxsz2m6s.js";import{a as X}from"./js/Caret.g6s6s7gs.js";import{_ as R,s as Z,i as tt}from"./js/default-i18n.bz7purh4.js";import{_ as ot}from"./js/App.i3mx0zbv.js";import"./js/_plugin-vue_export-helper.oebm7xum.js";import"./js/cleanForSlug.etvx808q.js";import"./js/_baseIsEqual.btyep0ht.js";import"./js/_getTag.k19irihw.js";/* empty css */import"./js/LicenseKeyBar.hoq3y8n1.js";import"./js/ScrollTo.ntqtkazp.js";import"./js/params.k8e95b6q.js";import"./js/allowed.cnz2h8ma.js";import"./js/constants.dnzd2kuo.js";import"./js/SettingsRow.d9u0swi1.js";import"./js/Row.h4gujlzc.js";import"./js/Checkbox.cv4w58s0.js";import"./js/Checkmark.d5kkjaf5.js";import"./js/Tabs.nyi4b4w1.js";import"./js/ProBadge.e32os6n3.js";import"./js/Information.djrr3pec.js";import"./js/Slide.dop8j51m.js";import"./js/Index.gtlvh3ar.js";import"./js/MaxCounts.bdkgkiti.js";import"./js/Tags.lgcgntse.js";import"./js/Ellipse.mhzh8c2h.js";import"./js/debounce.lmahs4m3.js";import"./js/toNumber.o3a8s20t.js";import"./js/toFinite.j57ptoa1.js";import"./js/TruSeoScore.he4e4jdf.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.iw4vtoyb.js";import"./js/HtmlTagsEditor.b5rm37z5.js";import"./js/Editor.i8px02kg.js";import"./js/_baseClone.memmt1nf.js";import"./js/_arrayEach.n8ou32wp.js";import"./js/UnfilteredHtml.gvs5qb56.js";import"./js/popup.by9shv56.js";import"./js/license.md0nmssw.js";import"./js/upperFirst.d9alxexs.js";import"./js/Mobile.livanyta.js";import"./js/vue3-apexcharts.cwogygg0.js";import"./js/ConnectCta.oy9zv6h9.js";import"./js/GoogleSearchConsole.mrngyubh.js";import"./js/Index.bojstwek.js";import"./js/Blur.mu93d3e2.js";import"./js/Graph.bw9skznb.js";import"./js/numbers.oc93q9ut.js";import"./js/WpTable.ku0ajsnd.js";import"./js/Table.fw94frzs.js";import"./js/Download.cmimu09k.js";import"./js/RequiredPlans.l7pjpdqj.js";import"./js/addons.ds3c4v6r.js";import"./js/PostTypes.k189gg5t.js";import"./js/External.lyui8nzf.js";import"./js/InternalOutbound.gq4sspcu.js";import"./js/Image.mh6vskkn.js";import"./js/FacebookPreview.pblvb2yr.js";import"./js/Img.b8ktdwdi.js";import"./js/Profile.t9aiulue.js";import"./js/ImageUploader.ljgurrx5.js";import"./js/TwitterPreview.gaoeyz1f.js";import"./js/Book.f6lktglp.js";import"./js/Settings.cshbxeez.js";import"./js/Build.mjaxpub4.js";import"./js/Redirects.b9owhewb.js";import"./js/Index.mnx6c8l5.js";import"./js/JsonValues.g6ep3o3z.js";import"./js/Url.mx7n0tnd.js";import"./js/External.h5te4wqm.js";import"./js/escapeRegExp.n8evpyq8.js";import"./js/Exclamation.f0pmbpi9.js";import"./js/Gear.dx9icaxx.js";import"./js/date.cp76fgkd.js";import"./js/DatePicker.ns06gy6o.js";import"./js/Calendar.fbofsn3b.js";import"./js/pick.gnbqgz74.js";import"./js/Card.nubn9etl.js";import"./js/Upsell.ouqs5sgm.js";let y={};const et=()=>{const t={...y},o=H();K(t,o)||(y=o,Y())},it=()=>{const t=f();t.saveCurrentPost(t.currentPost).then(()=>{J().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 I(()=>{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(),p("div",at,[v(n(O),{"show-score":n(F)(),score:n(e).seo_score,class:g([o.value?"aioseo-score-button--active":""]),onClick:S(s,["prevent"])},{icon:N(()=>[v(n(Q))]),_: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(),p("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(X),{class:g({rotated:o.value})},null,8,["class"])],2),o.value?(d(),p("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]})},ut=()=>{lt()};let m=null,l=null,u=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&&(u==null||u.disconnect(),u=pt())},pt=()=>{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(),p("div",ft,[a("div",_t,[a("div",bt,D(s.headerTitle),1),n(e).seo_score&&n(F)()?(d(),j(n(O),{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(),ut()})},W=()=>{ht(),nt()};let G=!1;const wt=window.FusionEvents||window.FusionPageBuilderEvents||{};wt.on("fusion-builder-loaded",()=>{setTimeout(W),G=!0});document.addEventListener("DOMContentLoaded",()=>{G||setTimeout(W)});