관리-도구
편집 파일: thrive-architect.h77qa26m.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.eypfdvl5.js";import{l as v}from"./js/index.nd8elblc.js";import{l as E}from"./js/index.kaabvvzj.js";import{e as T,y as w,I as k,c as $}from"./js/index.ba51ghj9.js";import{d as m}from"./js/Caret.dwp6xpza.js";import{e as A,m as B}from"./js/postSlug.ms4f44w2.js";import{i as R}from"./js/isEqual.dwjbg1yu.js";import"./js/translations.b896ab1m.js";import{i as D,_ as V,a as L}from"./js/default-i18n.hohxoesu.js";import{_ as N}from"./js/App.levbhvl8.js";import{_ as O}from"./js/ScoreButton.erl7ixj3.js";import{S as M}from"./js/LogoGear.gxsz2m6s.js";import"./js/_plugin-vue_export-helper.oebm7xum.js";import"./js/helpers.lwqbledo.js";import"./js/metabox.y83zoorm.js";import"./js/cleanForSlug.dzbbaoug.js";import"./js/toString.oppn28a8.js";import"./js/_baseTrim.ohbpllmu.js";import"./js/_stringToArray.mpukyt2g.js";import"./js/_baseSet.ipousrvi.js";import"./js/regex.bekpgw04.js";import"./js/_baseIsEqual.j7gru8tk.js";import"./js/_getTag.fx9iqlmr.js";/* empty css */import"./js/LicenseKeyBar.gh3b5rkr.js";import"./js/ScrollTo.ntqtkazp.js";import"./js/params.k8e95b6q.js";import"./js/allowed.o46uhc7o.js";import"./js/constants.hcfrsngk.js";import"./js/SettingsRow.d9u0swi1.js";import"./js/Row.h4gujlzc.js";import"./js/Checkbox.cv4w58s0.js";import"./js/Checkmark.d5kkjaf5.js";import"./js/Tabs.opo0ypfq.js";import"./js/TruSeoScore.das28gz4.js";import"./js/ProBadge.e32os6n3.js";import"./js/Information.djrr3pec.js";import"./js/Ellipse.mhzh8c2h.js";import"./js/Slide.dop8j51m.js";import"./js/Index.kqt70nj0.js";import"./js/MaxCounts.h4dewttr.js";import"./js/Tags.mkuonlme.js";import"./js/debounce.mrkkoh0r.js";import"./js/toNumber.i3xpxrn8.js";import"./js/toFinite.fa15x3ow.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.mmblg2b4.js";import"./js/HtmlTagsEditor.irue4ytl.js";import"./js/Editor.ipgvvrs0.js";import"./js/_baseClone.n1l9l19s.js";import"./js/_arrayEach.n8ou32wp.js";import"./js/UnfilteredHtml.o4azp64h.js";import"./js/popup.dv3t4x6w.js";import"./js/SetupWizardStore.hjajzbq0.js";import"./js/datetime.hyfm7zez.js";import"./js/license.ij9c7ra4.js";import"./js/upperFirst.bgyeasim.js";import"./js/Mobile.livanyta.js";import"./js/Settings.m4k6ojy4.js";import"./js/TableOfContentsStore.hhb2k7dx.js";import"./js/vue3-apexcharts.n0h2b4pa.js";import"./js/ConnectCta.kd4ryk1u.js";import"./js/GoogleSearchConsole.gq5vl5zt.js";import"./js/Index.jq0lth54.js";import"./js/Blur.mu93d3e2.js";import"./js/Graph.chc9u9ci.js";import"./js/numbers.busvl4mt.js";import"./js/WpTable.i82lv9f1.js";import"./js/Table.bzjzsap0.js";import"./js/RequiredPlans.fcb8z72b.js";import"./js/addons.eq04tz3m.js";import"./js/PostTypes.pd67gy5m.js";import"./js/External.lyui8nzf.js";import"./js/InternalOutbound.gq4sspcu.js";import"./js/Image.j9h9tyqk.js";import"./js/FacebookPreview.gt9tcl43.js";import"./js/Img.cncschi2.js";import"./js/Profile.t9aiulue.js";import"./js/ImageUploader.l2gqgn6z.js";import"./js/TwitterPreview.liy9u0my.js";import"./js/Book.f6lktglp.js";import"./js/Build.mjaxpub4.js";import"./js/Redirects.nw8rq81b.js";import"./js/Index.j04s6syt.js";import"./js/JsonValues.g6ep3o3z.js";import"./js/Url.e5jo61ge.js";import"./js/External.h5te4wqm.js";import"./js/escapeRegExp.o0mkkk5c.js";import"./js/Exclamation.f0pmbpi9.js";import"./js/Gear.dx9icaxx.js";import"./js/date.ozs95ujh.js";import"./js/DatePicker.hz9n2i3u.js";import"./js/Calendar.fbofsn3b.js";import"./js/pick.e9wcosvf.js";import"./js/Card.0q0mr1wq.js";import"./js/Upsell.l3r393es.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},I=()=>{TVE.$("#tve-save-dash-return").after(` <a href="javascript:void(0)" id="${s.id}" title="${s.title}" > ${s.title} </a> `)},Y=()=>{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()})},F=()=>{I(),Y()},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(),F(),j()};it();