관리-도구
편집 파일: thrive-architect.dgxjdw6j.js
import{o as b,c as g,a as n,t as S,C as c,u as a,l as C,G as y,Y as f,h}from"./js/runtime-dom.esm-bundler.h3clfjuw.js";import{c as P,b as x}from"./js/vue-router.mwhkjjlr.js";import{l as v}from"./js/index.nd8elblc.js";import{l as E}from"./js/index.h076fivy.js";import{b as T,C as w,P as k,l as $}from"./js/index.nsvc8vqf.js";import{d as m}from"./js/Caret.hnvbzqgq.js";import{d as A,m as B}from"./js/postSlug.cemx0kwk.js";import{i as R}from"./js/isEqual.gulmggc8.js";import"./js/translations.lf9cwm9a.js";import{i as D,_ as V,a as L}from"./js/default-i18n.hohxoesu.js";import{_ as N}from"./js/App.b2imjdmx.js";import{_ as O}from"./js/ScoreButton.br7jqlck.js";import{S as M}from"./js/LogoGear.gxsz2m6s.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 d={};const l=()=>{const t={...d},o=A();R(t,o)||(d=o,B())},U=()=>{const t=T();t.saveCurrentPost(t.currentPost).then(()=>{w().fetch()})},j=()=>{TVE.add_action("tcb-ready",l),["tcb.after-insert","tcb.element.remove","tcb.element.duplicate","tcb.froala.focus","tcb.froala.blur","tcb.image.change","after_undo_redo"].forEach(t=>{TVE.add_action(t,()=>{m(l,200)})}),TVE.add_action("tve.save_post.success",()=>{m(U,100)})};let r=!1;const q=()=>{TVE.$("#sidebar-top, #aioseo-score-btn-settings").on("click",".aioseo-score-button",()=>{const t=document.querySelector(".tcb-sidebar-icon-aioseo"),o=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});t==null||t.dispatchEvent(o)}),TVE.$("#settings-action-btn").on("click",()=>{r=!r,TVE.$(".tcb-aioseo #settings-action-btn").toggleClass("active",r),TVE.$body.toggleClass("aioseo-settings-enabled",r),TVE.ajax("update_option","post",{option_name:"is_aioseo_settings_enabled",option_value:r}).done(()=>{})})},G=()=>{TVE.add_action("tcb.drawer.toggle",t=>{t==="settings"&&setTimeout(()=>{const o=TVE.$("#aioseo-panel"),e=TVE.$(".tcb-sidebar-icon-aioseo").hasClass("active");e?o.show():o.hide(),u(e)},100)}),TVE.add_action("tcb.drawer.hide",()=>{setTimeout(()=>{const t=TVE.$(".tcb-sidebar-icon-aioseo").hasClass("active");u(t)},110)})},u=t=>{TVE.$("#aioseo-score-btn-header .aioseo-score-button").toggleClass("aioseo-score-button--active",t),TVE.$body.toggleClass("aioseo-settings-active",t)},H=()=>{if(TVE.$("#aioseo-panel").length)return;const t=TVE.$(".settings"),o=TVE.$("<div>",{id:"aioseo-panel"}).hide();t.append(o)},W=()=>{if(TVE.$("#aioseo-score-btn-header").length)return;const t=TVE.$("#tcb-sidebar-top-right .button-group"),o=TVE.$("<div>",{id:"aioseo-score-btn-header"});t.append(o)},z=()=>{r=TVE.CONST.is_aioseo_settings_enabled==="true"||TVE.CONST.is_aioseo_settings_enabled==="1",r&&(TVE.$(".tcb-aioseo #settings-action-btn").addClass("active"),TVE.$body.addClass("aioseo-settings-enabled")),TVE.$("html").attr("dir",D()?"rtl":"ltr"),TVE.$("body").addClass("wp-core-ui"),H(),W(),G(),q()},s={id:"aioseo-limit-modified-date-thrive",param:"aioseo_limit_modified_date",title:V("Save (Don't Modify Date)","all-in-one-seo-pack"),flag:!1},Y=()=>{TVE.$("#tve-save-dash-return").after(` <a href="javascript:void(0)" id="${s.id}" title="${s.title}" > ${s.title} </a> `)},F=()=>{TVE.add_filter("tcb_save_post_data_before",t=>(t[s.param]=s.flag,t)),TVE.add_action("tve.save_post.success",()=>{s.flag=!1}),TVE.$body.on("click",`#${s.id}`,()=>{s.flag=!0,TVE.main.editor_settings.save()})},I=()=>{Y(),F()},J={class:"edit-post-sidebar editor-sidebar aioseo-thrive-sidebar"},K={class:"aioseo-thrive-sidebar__header"},Q={class:"aioseo-thrive-sidebar__header-title"},X={class:"aioseo-thrive-sidebar__content"},_={__name:"Sidebar",setup(t){const e={headerTitle:L(V("%1$s Settings","all-in-one-seo-pack"),"AIOSEO")};return(i,p)=>(b(),g("div",J,[n("div",K,[n("div",Q,S(e.headerTitle),1)]),n("div",X,[c(a(N))])]))}},Z={class:"aioseo-thrive-score-button"},tt={__name:"Button",props:{buttonContext:{type:String}},setup(t){const{currentPost:o}=k(T());return(e,i)=>(b(),g("div",Z,[c(a(O),{score:a(o).seo_score,class:y([t.buttonContext==="Settings"?"aioseo-score-button--active":""])},{icon:C(()=>[c(a(M))]),_:1},8,["score","class"])]))}},ot=()=>{const t=P({history:x(),routes:[{path:"/",component:_}]});let o=f({name:"Standalone/ThriveArchitect",data(){return{tableContext:window.aioseo.currentPost.context,screenContext:"sidebar"}},render:()=>h(_)});o=v(o),o=E(o),o.use(t),t.app=o,$(o,t),o.mount("#aioseo-panel")},et=()=>{["aioseo-score-btn-settings","aioseo-score-btn-header"].forEach(o=>{const e=o.replace("aioseo-score-btn-","").replace(/^\w/,p=>p.toUpperCase());let i=f({name:`Standalone/ThriveArchitect/Score${e}`,render:()=>h(tt)},{buttonContext:e});i=v(i),i=E(i),$(i),i.mount(`#${o}`)})},it=()=>{z(),ot(),et(),I(),j()};it();