관리-도구
편집 파일: elementor.896a9bef.js
import{Y as k,h as v}from"./js/runtime-dom.esm-bundler.6789c400.js";import{c as _,b as E}from"./js/vue-router.fc4966b9.js";import{e as S,l as I}from"./js/index.3eb8f806.js";import{l as C}from"./js/index.ee8124c6.js";import{l as D}from"./js/index.1ca84f0e.js";import{e as x,m as A,y as L,c as P}from"./js/index.5a710757.js";import{a as O,m as h}from"./js/helpers.b97d7047.js";import{i as B}from"./js/isEqual.51bf23f5.js";import{i as U}from"./js/isEmpty.8f6a6fb1.js";import"./js/translations.12335a6a.js";import{s as m,_ as s}from"./js/default-i18n.54b5d8cd.js";import{_ as p}from"./js/App.d867d60c.js";import"./js/Caret.662da1f3.js";import"./js/_plugin-vue_export-helper.249dac1d.js";import"./js/helpers.f95d5840.js";import"./js/metabox.1128ddb8.js";import"./js/cleanForSlug.f9ffe7db.js";import"./js/toString.1401d490.js";import"./js/_baseTrim.940c51cf.js";import"./js/_stringToArray.08127ca9.js";import"./js/_baseSet.32e7a763.js";import"./js/regex.f8017116.js";import"./js/_baseIsEqual.6bc92395.js";import"./js/_getTag.8dc22eac.js";/* empty css */import"./js/LicenseKeyBar.116709fd.js";import"./js/ScrollTo.97c9805f.js";import"./js/params.764403f6.js";import"./js/LogoGear.29bd352d.js";import"./js/allowed.b971be4c.js";import"./js/constants.2019bcb3.js";import"./js/SettingsRow.1934f141.js";import"./js/Row.f01f32cd.js";import"./js/Checkbox.e983780b.js";import"./js/Checkmark.32f79576.js";import"./js/Url.cc9d8d5e.js";import"./js/Tabs.08a4fd23.js";import"./js/ProBadge.7733ac87.js";import"./js/Information.82968754.js";import"./js/Slide.d0517fb0.js";import"./js/Index.c4d148bc.js";import"./js/MaxCounts.d28a6cb7.js";import"./js/Tags.3157574f.js";import"./js/Ellipse.c57f22ea.js";import"./js/debounce.40834200.js";import"./js/toNumber.30f8b529.js";import"./js/toFinite.bbcc0565.js";import"./js/TruSeoScore.13b74a09.js";import"./js/Tooltip.b6b45c85.js";import"./js/Statistics.324b239a.js";import"./js/Plus.c3a1a43f.js";import"./js/Eye.902c8763.js";import"./js/RadioToggle.64619d6b.js";import"./js/GoogleSearchPreview.805aa110.js";import"./js/HtmlTagsEditor.b85e0cfa.js";import"./js/Editor.e5877fb8.js";import"./js/_baseClone.50c6045c.js";import"./js/_arrayEach.f4f00336.js";import"./js/UnfilteredHtml.559aa5ad.js";import"./js/popup.189dc215.js";import"./js/SetupWizardStore.f2a8f9f3.js";import"./js/datetime.cb3980ce.js";import"./js/license.03044dbc.js";import"./js/upperFirst.96c04516.js";import"./js/Mobile.3fcac169.js";import"./js/Settings.d1d930e5.js";import"./js/TableOfContentsStore.564030c3.js";import"./js/vue3-apexcharts.8b5abfad.js";import"./js/ConnectCta.5056f139.js";import"./js/GoogleSearchConsole.c9d25148.js";import"./js/Index.c0a0a208.js";import"./js/Blur.31bfcf06.js";import"./js/Graph.4f83fda6.js";import"./js/numbers.b55b32c5.js";import"./js/WpTable.40f759ac.js";import"./js/Table.0a6a3fdb.js";import"./js/Download.6a0d8455.js";import"./js/RequiredPlans.7723218f.js";import"./js/addons.ef42f038.js";import"./js/PostTypes.d6c1987b.js";import"./js/External.b3b0805d.js";import"./js/InternalOutbound.b4a71286.js";import"./js/Image.72fb04c2.js";import"./js/FacebookPreview.e03b069d.js";import"./js/Img.2fc40874.js";import"./js/Profile.19fffd1c.js";import"./js/ImageUploader.82ab8ffd.js";import"./js/TwitterPreview.4c191e49.js";import"./js/Book.e7bb6a80.js";import"./js/Build.828bd995.js";import"./js/Redirects.31560156.js";import"./js/Index.2a80ac06.js";import"./js/JsonValues.892a7505.js";import"./js/External.c84e4310.js";import"./js/escapeRegExp.d673186c.js";import"./js/Exclamation.bf79561a.js";import"./js/Gear.1433c8c3.js";import"./js/date.839db266.js";import"./js/DatePicker.b0d8c799.js";import"./js/Calendar.4686ac3f.js";import"./js/pick.231724a9.js";import"./js/Card.5b602127.js";import"./js/Upsell.3b19b12e.js";class $ extends window.$e.modules.hookUI.Base{constructor(e,i,o){super(),this.hook=e,this.id=i,this.callback=o}getCommand(){return this.hook}getId(){return this.id}apply(){return this.callback()}}class H extends window.$e.modules.hookData.Base{constructor(e,i,o){super(),this.hook=e,this.id=i,this.callback=o}getCommand(){return this.hook}getId(){return this.id}apply(){return this.callback()}}function c(t,e,i){window.$e.hooks.registerUIAfter(new $(t,e,i))}function M(t,e,i){window.$e.hooks.registerDataAfter(new H(t,e,i))}let d={},l=!1;const u=()=>{const t=window.elementor.documents.getCurrent();if(!["wp-post","wp-page"].includes(t.config.type))return;const e={...d},i=O();B(e,i)||(d=i,h())},R=()=>{const t=x();U(t.currentPost)||window.elementor.config.document.id===window.elementor.config.document.revisions.current_id&&t.saveCurrentPost(t.currentPost).then(()=>{const e=A(),i=L();e.isUnlicensed||i.fetch()})},T=()=>{window.$e.internal("document/save/set-is-modified",{status:!0})},q=()=>{l||(l=!0,c("editor/documents/attach-preview","aioseo-content-scraper-attach-preview",u),c("document/save/set-is-modified","aioseo-content-scraper-on-modified",u),M("document/save/save","aioseo-save",R),S.on("postSettingsUpdated",T))},V=({elementor:t,elementorModules:e})=>{if(t.config.user.introduction["aioseo-introduction"]===!0)return;const i=new e.editor.utils.Introduction({introductionKey:"aioseo-introduction",dialogType:"alert",dialogOptions:{id:"aioseo-introduction",headerMessage:m(s("New: %1$s %2$s integration","all-in-one-seo-pack"),"AIOSEO","Elementor"),message:m(s("You can now manage your SEO settings inside of %1$s via %2$s before you publish your post!","all-in-one-seo-pack"),"Elementor","All in One SEO"),position:{my:"center center",at:"center center"},strings:{confirm:s("Got It!","all-in-one-seo-pack")},hide:{onButtonClick:!1},onConfirm:()=>{i.setViewed(),i.getDialog().hide()}}});i.show()},r={icon:"eicon-calendar",name:"aioseo-limit-modified-date",param:"aioseo_limit_modified_date",title:s("Save (Don't Modify Date)","all-in-one-seo-pack")},f=t=>{const e=document.getElementById(`elementor-panel-footer-sub-menu-item-${r.name}`);e&&(e.classList.remove("elementor-disabled"),t||e.classList.add("elementor-disabled"))},j=({elementor:t,elementorCommon:e,$e:i})=>{t.once("preview:loaded",function(){t.getRegion("panel").currentView.footer.currentView.addSubMenuItem("saver-options",{icon:r.icon,name:r.name,title:r.title,callback:o=>{o.currentTarget.classList.contains("elementor-disabled")||(e.ajax.requestConstants[r.param]=!0,i.run("document/save/default"))}})}),t.on("document:loaded",o=>{f(o.container.settings.get("post_status")==="draft")}),i.commandsInternal.on("run:after",(o,a,b)=>{switch(a){case"document/save/set-is-modified":f(b.status);break;case"document/save/save":case"document/save/default":delete e.ajax.requestConstants[r.param];break}})};let n=null,w=!1;const W=()=>{let t=window.elementor.getPreferences("ui_theme")||"auto";t==="auto"&&(t=matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),document.body.classList.forEach(e=>{e.startsWith("aioseo-elementor-")&&document.body.classList.remove(e)}),document.body.classList.add("aioseo-elementor-"+t)},Y=({elementor:t,$e:e,Marionette:i})=>{e.routes.on("run:after",function(o,a){W(),a==="panel/page-settings/aioseo"&&(n==null||n.unmount(),n=g("#elementor-panel-page-settings-controls"))}),t.modules.layouts.panel.pages.menu.Menu.addItem({name:"aioseo",icon:"aioseo aioseo-element-menu-icon aioseo-element-menu-icon-"+t.getPreferences("ui_theme"),title:"All in One SEO",type:"page",callback:()=>{try{e.routes.run("panel/page-settings/aioseo")}catch{e.routes.run("panel/page-settings/settings"),e.routes.run("panel/page-settings/aioseo")}}},"more"),t.once("preview:loaded",function(){e.components.get("panel/elements").addTab("aioseo",{title:"AIOSEO"})}),t.hooks.addFilter("panel/elements/regionViews",o=>(o.aioseo={region:o.global.region,view:i.ItemView.extend({template:!1,id:"elementor-panel-aioseo",className:"aioseo-elementor aioseo-sidebar-panel",initialize(){document.getElementById("elementor-panel-elements-search-area").hidden=!0},onShow(){n==null||n.unmount(),n=g("#elementor-panel-aioseo")},onDestroy(){document.getElementById("elementor-panel-elements-search-area").hidden=!1}}),options:{}},o))},g=t=>{const e=document.querySelector(t);e.classList.add("edit-post-sidebar","editor-sidebar","aioseo-elementor-panel"),e.appendChild(document.createElement("div"));const i=_({history:E(),routes:[{path:"/",component:p}]});let o=k({name:"Standalone/Elementor",data(){return{tableContext:window.aioseo.currentPost.context,screenContext:"sidebar"}},render:()=>v(p)});return o=I(o),o=C(o),o=D(o),o.use(i),i.app=o,P(o,i),q(),o.mount(`${t} > div`),h(),o},y=()=>{Y(window),V(window),j(window)};window.elementor&&(setTimeout(y),w=!0);(function(t){w||t(window).on("elementor:init",()=>{window.elementor.on("panel:init",()=>{setTimeout(y)})})})(window.jQuery);