관리-도구
편집 파일: siteorigin.irch82u5.js
import{d as h,a8 as M,G as O,a6 as j,C as P,J as T,o as W}from"./js/index.lqcu3hi3.js";import{i as I}from"./js/isEqual.izz0yjhb.js";import{g as $,y as N,o as _,c as f,C as c,l as R,u as n,G as k,E as C,a as m,t as A,b as G,Y as U,h as V}from"./js/runtime-dom.esm-bundler.h3clfjuw.js";import{c as z,b as H}from"./js/vue-router.eypfdvl5.js";import{e as L,l as J}from"./js/index.njux2kgl.js";import{l as Q}from"./js/index.cw7tfyil.js";import{_ as Y}from"./js/ScoreButton.erl7ixj3.js";import{S as F}from"./js/LogoGear.gxsz2m6s.js";import{_ as K}from"./js/App.i3mx0zbv.js";import{S as X,a as Z}from"./js/Caret.g6s6s7gs.js";import"./js/translations.e22mvhfh.js";import{s as tt,_ as q}from"./js/default-i18n.bz7purh4.js";import"./js/cleanForSlug.etvx808q.js";import"./js/_baseIsEqual.btyep0ht.js";import"./js/_getTag.k19irihw.js";import"./js/_plugin-vue_export-helper.oebm7xum.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 E={};const b=()=>{const t={...E},o=M();I(t,o)||(E=o,O())},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=$(!1),{currentPost:e}=j(P()),r=()=>{o.value=!o.value,document.body.classList.toggle("aioseo-site-origin-sidebar--active",o.value)};return N(()=>{o.value=document.body.classList.contains("aioseo-site-origin-sidebar--active"),L.on("siteOriginAioseoClosed",()=>{o.value=!1,document.body.classList.remove("aioseo-site-origin-sidebar--active")})}),(s,a)=>(_(),f("div",et,[c(n(Y),{score:n(e).seo_score,class:k([o.value?"aioseo-score-button--active":""]),onClick:C(r,["prevent"])},{icon:R(()=>[c(n(F))]),_: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,A(e.headerTitle),1),m("div",{class:"aioseo-site-origin-sidebar__header-close",onClick:s[0]||(s[0]=a=>n(L).emit("siteOriginAioseoClosed",!1))},[c(n(X))])]),m("div",at,[c(n(K))])]))}},ct={class:"aioseo-site-origin-lmd"},pt={__name:"LimitModifiedDate",setup(t){const o="all-in-one-seo-pack",e=$(!1),r=P(),s=()=>{e.value=!e.value},a=()=>{var v;e.value=!1,r.currentPost.limit_modified_date=!0,r.savePostState(),T()&&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(Z),{class:k({rotated:e.value})},null,8,["class"])]),e.value?(_(),f("div",{key:0,class:"aioseo-site-origin-lmd__options",onClick:C(a,["prevent"])},A(i.option),1)):G("",!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=z({history:H(),routes:[{path:"/",component:o}]});let i=U({name:`Standalone/SiteOrigin/${e}`,render:()=>V(o),data:()=>s||{}},r||{});return i=J(i),i=Q(i),i.use(a),a.app=i,W(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);