관리-도구
편집 파일: siteorigin.jv7fth7k.js
import{d as h,S as M,a as O}from"./js/Caret.dwp6xpza.js";import{o as j,m as T}from"./js/postSlug.ms4f44w2.js";import{i as W}from"./js/isEqual.dwjbg1yu.js";import{g as P,y as I,o as _,c as f,C as c,l as N,u as n,G as $,E as C,a as m,t as k,b as R,Y as U,h as V}from"./js/runtime-dom.esm-bundler.h3clfjuw.js";import{c as z,b as G}from"./js/vue-router.eypfdvl5.js";import{e as A,l as H}from"./js/index.nd8elblc.js";import{l as Q}from"./js/index.kaabvvzj.js";import{I as Y,e as L,B as F,c as J}from"./js/index.ba51ghj9.js";import{_ as K}from"./js/ScoreButton.erl7ixj3.js";import{S as X}from"./js/LogoGear.gxsz2m6s.js";import{_ as Z}from"./js/App.levbhvl8.js";import"./js/translations.b896ab1m.js";import{a as oo,_ as q}from"./js/default-i18n.hohxoesu.js";import"./js/_plugin-vue_export-helper.oebm7xum.js";import"./js/metabox.y83zoorm.js";import"./js/cleanForSlug.dzbbaoug.js";import"./js/toString.oppn28a8.js";import"./js/helpers.lwqbledo.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 E={};const b=()=>{const o={...E},t=j();W(o,t)||(E=t,T())},to=o=>{b(),o.on("content_change",()=>{h(b,1e3)}),o.$(document).on("ajaxComplete",function(t,e,r){new URLSearchParams(r.data).get("action")==="so_panels_builder_content_json"&&h(b,1e3)})},eo={class:"aioseo-site-origin-integration"},io={__name:"Button",setup(o){const t=P(!1),{currentPost:e}=Y(L()),r=()=>{t.value=!t.value,document.body.classList.toggle("aioseo-site-origin-sidebar--active",t.value)};return I(()=>{t.value=document.body.classList.contains("aioseo-site-origin-sidebar--active"),A.on("siteOriginAioseoClosed",()=>{t.value=!1,document.body.classList.remove("aioseo-site-origin-sidebar--active")})}),(s,a)=>(_(),f("div",eo,[c(n(K),{score:n(e).seo_score,class:$([t.value?"aioseo-score-button--active":""]),onClick:C(r,["prevent"])},{icon:N(()=>[c(n(X))]),_:1},8,["score","class"])]))}},ro={class:"edit-post-sidebar editor-sidebar aioseo-site-origin-sidebar"},so={class:"aioseo-site-origin-sidebar__header"},no={class:"aioseo-site-origin-sidebar__header-title"},ao={class:"aioseo-site-origin-sidebar__content"},mo={__name:"Sidebar",setup(o){const e={headerTitle:oo(q("%1$s Settings","all-in-one-seo-pack"),"AIOSEO")};return(r,s)=>(_(),f("div",ro,[m("div",so,[m("div",no,k(e.headerTitle),1),m("div",{class:"aioseo-site-origin-sidebar__header-close",onClick:s[0]||(s[0]=a=>n(A).emit("siteOriginAioseoClosed",!1))},[c(n(M))])]),m("div",ao,[c(n(Z))])]))}},co={class:"aioseo-site-origin-lmd"},po={__name:"LimitModifiedDate",setup(o){const t="all-in-one-seo-pack",e=P(!1),r=L(),s=()=>{e.value=!e.value},a=()=>{var v;e.value=!1,r.currentPost.limit_modified_date=!0,r.savePostState(),F()&&window.wp.data.dispatch("core/editor").editPost({aioseo_limit_modified_date:r.currentPost.limit_modified_date}),(v=document.querySelector(".live-editor-save"))==null||v.click()},i={option:q("Don't update the modified date",t)};return(v,fo)=>(_(),f("div",co,[m("button",{class:"aioseo-site-origin-lmd__button button-primary",onClick:C(s,["prevent"])},[c(n(O),{class:$({rotated:e.value})},null,8,["class"])]),e.value?(_(),f("div",{key:0,class:"aioseo-site-origin-lmd__options",onClick:C(a,["prevent"])},k(i.option),1)):R("",!0)]))}};let p=null,l=null,d=null;const g="#so-live-editor-aioseo-button",y="#so-live-editor-aioseo-sidebar",S="#so-live-editor-aioseo-lmd",w=({id:o,component:t,name:e,rootProps:r,data:s})=>{const a=z({history:G(),routes:[{path:"/",component:t}]});let i=U({name:`Standalone/SiteOrigin/${e}`,render:()=>V(t),data:()=>s||{}},r||{});return i=H(i),i=Q(i),i.use(a),a.app=i,J(i),i.mount(o),i},x=o=>{const t=document.createElement("div");return t.id=o.replace("#",""),t.className="aioseo-live-editor-item",t},lo=o=>{o.querySelector(g)||(o.querySelector(".so-builder-toolbar").insertAdjacentElement("beforeend",x(g)),p==null||p.unmount(),p=w({id:g,component:io,name:"Button"})),o.querySelector(y)||(o.querySelector(".so-rows-container").insertAdjacentElement("beforeend",x(y)),l==null||l.unmount(),l=w({id:y,component:mo,name:"Sidebar",data:{tableContext:window.aioseo.currentPost.context,screenContext:"sidebar"}}))},uo=()=>{const o=document.querySelector(".so-sidebar-tools");!o||o.querySelector(S)||(o.insertAdjacentElement("afterbegin",x(S)),d==null||d.unmount(),d=w({id:S,component:po,name:"LimitModifiedDate",data:{tableContext:window.aioseo.currentPost.context,screenContext:"limitModifiedDate"}}))},_o=o=>{const t=document.querySelector(".siteorigin-panels-builder");!t||t.querySelector(".aioseo-live-editor-item")||(lo(t),o.on("builder_resize",()=>{h(uo,500)}))},D=o=>{_o(o),to(o)};let B=!1;const{soPanelsBuilderView:u}=window;if(u!==void 0){const o=Array.isArray(u)?u[0]:u;setTimeout(()=>{D(o)}),B=!0}(function(o){B||o(document).on("panels_setup",(t,e)=>{setTimeout(()=>{D(e)})})})(window.jQuery);