관리-도구
편집 파일: elementor.mm1gkb8r.js
import{Y as k,h as v}from"./js/runtime-dom.esm-bundler.h3clfjuw.js";import{c as _,b as E}from"./js/vue-router.eypfdvl5.js";import{e as S,l as I}from"./js/index.nd8elblc.js";import{l as C}from"./js/index.npoectbv.js";import{l as D}from"./js/index.moogjen0.js";import{b as x,j as A,C as L,l as P}from"./js/index.jlplx4ex.js";import{g as O,m as h}from"./js/postSlug.iva7u65b.js";import{i as B}from"./js/isEqual.czpd1uhn.js";import{i as U}from"./js/isEmpty.ll3qkphz.js";import"./js/translations.b896ab1m.js";import{a as m,_ as s}from"./js/default-i18n.hohxoesu.js";import{_ as p}from"./js/App.fk02nb60.js";import"./js/Caret.hnvbzqgq.js";import"./js/_plugin-vue_export-helper.oebm7xum.js";import"./js/helpers.cti0cl6i.js";import"./js/metabox.imp54zfh.js";import"./js/cleanForSlug.i05mvw2m.js";import"./js/toString.fflnj7pf.js";import"./js/_baseTrim.ohbpllmu.js";import"./js/_stringToArray.mpukyt2g.js";import"./js/_baseSet.c1i96bqt.js";import"./js/_baseIsEqual.h4qr0q1d.js";import"./js/_getTag.fj45ivwn.js";/* empty css */import"./js/LicenseKeyBar.hjx3oj2j.js";import"./js/ScrollTo.ntqtkazp.js";import"./js/params.k8e95b6q.js";import"./js/LogoGear.gxsz2m6s.js";import"./js/allowed.oev11igf.js";import"./js/constants.hcfrsngk.js";import"./js/SettingsRow.1l1umqn0.js";import"./js/Row.o0q8mn7y.js";import"./js/Checkbox.fww0datn.js";import"./js/Checkmark.d5kkjaf5.js";import"./js/Tabs.jvzsqe7o.js";import"./js/TruSeoScore.kirz7zix.js";import"./js/ProBadge.ab6jhp8x.js";import"./js/Information.djrr3pec.js";import"./js/Ellipse.mhzh8c2h.js";import"./js/Slide.dop8j51m.js";import"./js/Index.lexckf3q.js";import"./js/MaxCounts.h4dewttr.js";import"./js/Tags.bchklxw9.js";import"./js/debounce.nun852aa.js";import"./js/toNumber.j7ix6obd.js";import"./js/toFinite.m12yy0up.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.j1gqkkrz.js";import"./js/HtmlTagsEditor.lf2fbwqe.js";import"./js/Editor.fji40euo.js";import"./js/_baseClone.j5qc2kco.js";import"./js/_arrayEach.n8ou32wp.js";import"./js/UnfilteredHtml.d5n2qgzt.js";import"./js/popup.by9shv56.js";import"./js/license.d8rszxb2.js";import"./js/upperFirst.c4ega9c0.js";import"./js/Mobile.livanyta.js";import"./js/vue3-apexcharts.n0h2b4pa.js";import"./js/ConnectCta.dramn71a.js";import"./js/GoogleSearchConsole.gxgbuztl.js";import"./js/Index.h6ka6vtn.js";import"./js/Blur.f3nyx4yc.js";import"./js/Graph.nl8drpov.js";import"./js/numbers.busvl4mt.js";import"./js/WpTable.iid7bkmr.js";import"./js/Table.dpnj7vzp.js";import"./js/RequiredPlans.kyt85n6a.js";import"./js/addons.b0mmvdz0.js";import"./js/PostTypes.pd67gy5m.js";import"./js/External.lyui8nzf.js";import"./js/InternalOutbound.gq4sspcu.js";import"./js/Image.es2mqda0.js";import"./js/FacebookPreview.jawxccqo.js";import"./js/Img.iuunu5c1.js";import"./js/Profile.t9aiulue.js";import"./js/ImageUploader.lcptj1on.js";import"./js/TwitterPreview.vqtawrbw.js";import"./js/Book.f6lktglp.js";import"./js/Settings.cshbxeez.js";import"./js/Build.mjaxpub4.js";import"./js/Redirects.gg0zdho6.js";import"./js/Index.gz5681uw.js";import"./js/JsonValues.g6ep3o3z.js";import"./js/Url.ejc0l7wu.js";import"./js/External.h5te4wqm.js";import"./js/escapeRegExp.745lls71.js";import"./js/Exclamation.f0pmbpi9.js";import"./js/Gear.dx9icaxx.js";import"./js/date.hhdpx3z9.js";import"./js/DatePicker.o51dzq1p.js";import"./js/Calendar.fbofsn3b.js";import"./js/pick.i0imowk1.js";import"./js/Card.m3lmtg1o.js";import"./js/Upsell.niv97kks.js";class $ extends window.$e.modules.hookUI.Base{constructor(t,i,o){super(),this.hook=t,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(t,i,o){super(),this.hook=t,this.id=i,this.callback=o}getCommand(){return this.hook}getId(){return this.id}apply(){return this.callback()}}function c(e,t,i){window.$e.hooks.registerUIAfter(new $(e,t,i))}function M(e,t,i){window.$e.hooks.registerDataAfter(new H(e,t,i))}let d={},l=!1;const u=()=>{const e=window.elementor.documents.getCurrent();if(!["wp-post","wp-page"].includes(e.config.type))return;const t={...d},i=O();B(t,i)||(d=i,h())},R=()=>{const e=x();U(e.currentPost)||window.elementor.config.document.id===window.elementor.config.document.revisions.current_id&&e.saveCurrentPost(e.currentPost).then(()=>{const t=A(),i=L();t.isUnlicensed||i.fetch()})},T=()=>{window.$e.internal("document/save/set-is-modified",{status:!0})},j=()=>{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))},q=({elementor:e,elementorModules:t})=>{if(e.config.user.introduction["aioseo-introduction"]===!0)return;const i=new t.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=e=>{const t=document.getElementById(`elementor-panel-footer-sub-menu-item-${r.name}`);t&&(t.classList.remove("elementor-disabled"),e||t.classList.add("elementor-disabled"))},V=({elementor:e,elementorCommon:t,$e:i})=>{e.once("preview:loaded",function(){e.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")||(t.ajax.requestConstants[r.param]=!0,i.run("document/save/default"))}})}),e.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 t.ajax.requestConstants[r.param];break}})};let n=null,w=!1;const W=()=>{let e=window.elementor.getPreferences("ui_theme")||"auto";e==="auto"&&(e=matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),document.body.classList.forEach(t=>{t.startsWith("aioseo-elementor-")&&document.body.classList.remove(t)}),document.body.classList.add("aioseo-elementor-"+e)},Y=({elementor:e,$e:t,Marionette:i})=>{t.routes.on("run:after",function(o,a){W(),a==="panel/page-settings/aioseo"&&(n==null||n.unmount(),n=g("#elementor-panel-page-settings-controls"))}),e.modules.layouts.panel.pages.menu.Menu.addItem({name:"aioseo",icon:"aioseo aioseo-element-menu-icon aioseo-element-menu-icon-"+e.getPreferences("ui_theme"),title:"All in One SEO",type:"page",callback:()=>{try{t.routes.run("panel/page-settings/aioseo")}catch{t.routes.run("panel/page-settings/settings"),t.routes.run("panel/page-settings/aioseo")}}},"more"),e.once("preview:loaded",function(){t.components.get("panel/elements").addTab("aioseo",{title:"AIOSEO"})}),e.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=e=>{const t=document.querySelector(e);t.classList.add("edit-post-sidebar","editor-sidebar","aioseo-elementor-panel"),t.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),j(),o.mount(`${e} > div`),h(),o},y=()=>{Y(window),q(window),V(window)};window.elementor&&(setTimeout(y),w=!0);(function(e){w||e(window).on("elementor:init",()=>{window.elementor.on("panel:init",()=>{setTimeout(y)})})})(window.jQuery);