관리-도구
편집 파일: siteorigin.ji7ze345.js
import{d as h,S as M,a as O}from"./js/Caret.hnvbzqgq.js";import{l as j,m as T}from"./js/postSlug.cemx0kwk.js";import{i as W}from"./js/isEqual.gulmggc8.js";import{g as E,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 G,h as U}from"./js/runtime-dom.esm-bundler.h3clfjuw.js";import{c as V,b as z}from"./js/vue-router.mwhkjjlr.js";import{e as A,l as H}from"./js/index.nd8elblc.js";import{l as Q}from"./js/index.h076fivy.js";import{P as Y,b as L,G as F,l as J}from"./js/index.nsvc8vqf.js";import{_ as K}from"./js/ScoreButton.br7jqlck.js";import{S as X}from"./js/LogoGear.gxsz2m6s.js";import{_ as Z}from"./js/App.b2imjdmx.js";import"./js/translations.lf9cwm9a.js";import{a as tt,_ as q}from"./js/default-i18n.hohxoesu.js";import"./js/_plugin-vue_export-helper.oebm7xum.js";import"./js/metabox.ncz5ucbq.js";import"./js/cleanForSlug.ncex5ar8.js";import"./js/toString.g0kcp64r.js";import"./js/helpers.fdpg7vgg.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 P={};const b=()=>{const t={...P},o=j();W(t,o)||(P=o,T())},ot=t=>{b(),t.on("content_change",()=>{h(b,1e3)}),t.$(document).on("ajaxComplete",function(o,e,r){new URLSearchParams(r.data).get("action")==="so_panels_builder_content_json"&&h(b,1e3)})},et={class:"aioseo-site-origin-integration"},it={__name:"Button",setup(t){const o=E(!1),{currentPost:e}=Y(L()),r=()=>{o.value=!o.value,document.body.classList.toggle("aioseo-site-origin-sidebar--active",o.value)};return I(()=>{o.value=document.body.classList.contains("aioseo-site-origin-sidebar--active"),A.on("siteOriginAioseoClosed",()=>{o.value=!1,document.body.classList.remove("aioseo-site-origin-sidebar--active")})}),(s,a)=>(_(),f("div",et,[c(n(K),{score:n(e).seo_score,class:$([o.value?"aioseo-score-button--active":""]),onClick:C(r,["prevent"])},{icon:N(()=>[c(n(X))]),_:1},8,["score","class"])]))}},rt={class:"edit-post-sidebar editor-sidebar aioseo-site-origin-sidebar"},st={class:"aioseo-site-origin-sidebar__header"},nt={class:"aioseo-site-origin-sidebar__header-title"},at={class:"aioseo-site-origin-sidebar__content"},mt={__name:"Sidebar",setup(t){const e={headerTitle:tt(q("%1$s Settings","all-in-one-seo-pack"),"AIOSEO")};return(r,s)=>(_(),f("div",rt,[m("div",st,[m("div",nt,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",at,[c(n(Z))])]))}},ct={class:"aioseo-site-origin-lmd"},pt={__name:"LimitModifiedDate",setup(t){const o="all-in-one-seo-pack",e=E(!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",o)};return(v,_t)=>(_(),f("div",ct,[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:t,component:o,name:e,rootProps:r,data:s})=>{const a=V({history:z(),routes:[{path:"/",component:o}]});let i=G({name:`Standalone/SiteOrigin/${e}`,render:()=>U(o),data:()=>s||{}},r||{});return i=H(i),i=Q(i),i.use(a),a.app=i,J(i),i.mount(t),i},x=t=>{const o=document.createElement("div");return o.id=t.replace("#",""),o.className="aioseo-live-editor-item",o},lt=t=>{t.querySelector(g)||(t.querySelector(".so-builder-toolbar").insertAdjacentElement("beforeend",x(g)),p==null||p.unmount(),p=w({id:g,component:it,name:"Button"})),t.querySelector(y)||(t.querySelector(".so-rows-container").insertAdjacentElement("beforeend",x(y)),l==null||l.unmount(),l=w({id:y,component:mt,name:"Sidebar",data:{tableContext:window.aioseo.currentPost.context,screenContext:"sidebar"}}))},dt=()=>{const t=document.querySelector(".so-sidebar-tools");!t||t.querySelector(S)||(t.insertAdjacentElement("afterbegin",x(S)),d==null||d.unmount(),d=w({id:S,component:pt,name:"LimitModifiedDate",data:{tableContext:window.aioseo.currentPost.context,screenContext:"limitModifiedDate"}}))},ut=t=>{const o=document.querySelector(".siteorigin-panels-builder");!o||o.querySelector(".aioseo-live-editor-item")||(lt(o),t.on("builder_resize",()=>{h(dt,500)}))},D=t=>{ut(t),ot(t)};let B=!1;const{soPanelsBuilderView:u}=window;if(u!==void 0){const t=Array.isArray(u)?u[0]:u;setTimeout(()=>{D(t)}),B=!0}(function(t){B||t(document).on("panels_setup",(o,e)=>{setTimeout(()=>{D(e)})})})(window.jQuery);