관리-도구
편집 파일: divi.2f14340e.js
import{g as C,o as b,c as f,a as u,E as y,C as w,G as N,u as M,t as U,b as V,Y as $,y as W,O as F,h as j}from"./js/runtime-dom.esm-bundler.5c3c7d72.js";import{c as z,b as I}from"./js/vue-router.2f910c93.js";import{e as D,l as P}from"./js/index.7c01c5f2.js";import{l as q}from"./js/index.8c70464a.js";import{e as G,m as H,y as Q,c as A}from"./js/index.ae2b6956.js";import{d as l,a as Y}from"./js/Caret.d9cc70ba.js";import{s as g,b as J,m as K}from"./js/helpers.979ce6ae.js";import{i as X}from"./js/isEqual.4981d166.js";import"./js/translations.d159963e.js";import{l as Z}from"./js/index.d80c2c2c.js";import{_ as tt}from"./js/default-i18n.20001971.js";import{M as et}from"./js/Modal.e3935254.js";import"./js/_plugin-vue_export-helper.eefbdd86.js";import"./js/helpers.c7282833.js";import"./js/metabox.870afb5f.js";import"./js/cleanForSlug.c4a9e111.js";import"./js/toString.a2dfb892.js";import"./js/_baseTrim.11b89ad9.js";import"./js/_stringToArray.f9ddb970.js";import"./js/_baseSet.ab668497.js";import"./js/regex.8a6101c0.js";import"./js/_baseIsEqual.44a599a3.js";import"./js/_getTag.805e37e1.js";import"./js/ScoreButton.78818232.js";import"./js/App.c699cb5e.js";/* empty css */import"./js/LicenseKeyBar.e89a3a57.js";import"./js/ScrollTo.81bea8a7.js";import"./js/params.af7ed354.js";import"./js/LogoGear.cb664d3b.js";import"./js/allowed.97bad57f.js";import"./js/constants.24c44c43.js";import"./js/SettingsRow.9f92e269.js";import"./js/Row.df38a5f6.js";import"./js/Checkbox.6db0b9ed.js";import"./js/Checkmark.e40641dd.js";import"./js/Url.e2d414d9.js";import"./js/Tabs.b7a0989c.js";import"./js/ProBadge.751e0b85.js";import"./js/Information.13e8cece.js";import"./js/Slide.39c07c03.js";import"./js/Index.4b4d1967.js";import"./js/MaxCounts.7c38e980.js";import"./js/Tags.36fc4b35.js";import"./js/Tooltip.73441134.js";import"./js/Ellipse.e3ae0692.js";import"./js/Eye.8dc261a7.js";import"./js/debounce.d28a679a.js";import"./js/toNumber.9174f39a.js";import"./js/toFinite.a7fa1cc6.js";import"./js/TruSeoScore.9c887755.js";import"./js/Statistics.2cff8c0a.js";import"./js/Plus.426117bd.js";import"./js/RadioToggle.333e7750.js";import"./js/GoogleSearchPreview.c38187f9.js";import"./js/HtmlTagsEditor.48d4a46c.js";import"./js/Editor.cf7b5e9d.js";import"./js/_baseClone.6a6e57fd.js";import"./js/_arrayEach.6af5abac.js";import"./js/UnfilteredHtml.e8ff6232.js";import"./js/popup.a0c1a9c9.js";import"./js/SetupWizardStore.5cece966.js";import"./js/datetime.f197aeae.js";import"./js/license.306f6adb.js";import"./js/upperFirst.eac3a366.js";import"./js/Mobile.ada2591a.js";import"./js/Settings.9f4c4ffc.js";import"./js/TableOfContentsStore.c4730d49.js";import"./js/vue3-apexcharts.57b6886c.js";import"./js/ConnectCta.e7aee71e.js";import"./js/GoogleSearchConsole.33614a4b.js";import"./js/Index.0e872043.js";import"./js/Blur.edde4939.js";import"./js/Graph.30801e76.js";import"./js/numbers.9fc174f3.js";import"./js/WpTable.3bd76eb9.js";import"./js/Table.dec4729d.js";import"./js/Download.17eb5e1f.js";import"./js/RequiredPlans.78e071b4.js";import"./js/addons.2e54f461.js";import"./js/PostTypes.dafa8837.js";import"./js/External.3b8c2917.js";import"./js/InternalOutbound.8d129cbf.js";import"./js/Image.6aea48d8.js";import"./js/FacebookPreview.eab372cf.js";import"./js/Img.90c4fd14.js";import"./js/Profile.ad607616.js";import"./js/ImageUploader.4861085d.js";import"./js/TwitterPreview.e775ca55.js";import"./js/Book.74a13fcd.js";import"./js/Build.b598c742.js";import"./js/Redirects.d05ac054.js";import"./js/Index.cb87b583.js";import"./js/JsonValues.3fcfec97.js";import"./js/External.c9d4f255.js";import"./js/escapeRegExp.622432b4.js";import"./js/Exclamation.22e53a8b.js";import"./js/Gear.bd4e1565.js";import"./js/date.a32abd75.js";import"./js/DatePicker.558480ed.js";import"./js/Calendar.b69b61c4.js";import"./js/pick.aeb091b6.js";import"./js/Card.109b77eb.js";import"./js/Upsell.ca03707b.js";const T=e=>e.parentElement.removeChild(e),x=()=>{const e=S();document.body.classList.toggle("aioseo-settings-bar-is-active",e),document.body.classList.toggle("aioseo-settings-bar-is-inactive",!e)},ot=()=>{const e=_();m(document.body,"aioseo-settings-bar-is"),document.body.classList.add(`aioseo-settings-bar-is-${e}`),v(e)},it=e=>{const t=document.getElementById(e);return t.contentWindow?t.contentWindow.document:t.contentDocument},st=()=>{d.addEventListener("change",()=>{O(),v(_())}),mt.observe(document.querySelector(".et-fb-page-settings-bar"),{attributeFilter:["class"]}),document.addEventListener("click",B),it("et-fb-app-frame").addEventListener("click",B),s.addEventListener("click",()=>{const e=new Event("aioseo-pagebuilder-toggle-modal");document.dispatchEvent(e)})},nt=()=>{const e=_();m(document.body,"aioseo-settings-bar-is"),document.body.classList.add(`aioseo-settings-bar-is-${e}`),x(),O(),ct()||v(e)},O=()=>{R()&&(s=T(s))},v=e=>{if(R())return;const t=document.querySelector(".et-fb-page-settings-bar"),o=t.querySelector(".et-fb-page-settings-bar__toggle-button"),i=t.querySelectorAll(".et-fb-page-settings-bar__column");if(rt(e),S())if(d.matches){const n=[...i].filter(r=>r.classList.contains("et-fb-page-settings-bar__column--main"));n.length&&n[0].appendChild(s)}else{const n=[...i].filter(r=>r.classList.contains("et-fb-page-settings-bar__column--left"));n.length&&n[0].insertBefore(s)}else o.insertAdjacentElement("afterend",s)},rt=e=>{m(s,"aioseo-settings-bar-root"),s.classList.add(`aioseo-settings-bar-root-${e}`),m(s,"aioseo-settings-bar-root-is-mobile"),["aioseo-settings-bar-root-is-mobile",`aioseo-settings-bar-root-is-mobile-${e}`].forEach(i=>{s.classList.toggle(i,!d.matches)}),m(s,"aioseo-settings-bar-root-is-desktop"),["aioseo-settings-bar-root-is-desktop",`aioseo-settings-bar-root-is-desktop-${e}`].forEach(i=>{s.classList.toggle(i,d.matches)})},m=(e,t)=>{const o=[`${t}-left`,`${t}-right`,`${t}-top`,`${t}-top-left`,`${t}-top-right`,`${t}-bottom`,`${t}-bottom-left`,`${t}-bottom-right`];e.classList.remove(...o)},_=()=>{const e=document.querySelector(".et-fb-page-settings-bar").classList;return e.contains("et-fb-page-settings-bar--horizontal")&&!e.contains("et-fb-page-settings-bar--top")?"bottom":e.contains("et-fb-page-settings-bar--top")&&!e.contains("et-fb-page-settings-bar--corner")?"top":e.contains("et-fb-page-settings-bar--bottom-corner")?e.contains("et-fb-page-settings-bar--left-corner")?"bottom-left":"bottom-right":e.contains("et-fb-page-settings-bar--top-corner")?e.contains("et-fb-page-settings-bar--left-corner")?"top-left":"top-right":e.contains("et-fb-page-settings-bar--vertical--right")?"right":e.contains("et-fb-page-settings-bar--vertical--left")?"left":""},B=e=>{if(!at())return;const t=e.target,o=".aioseo-pagebuilder-modal";if(!t.closest(o)&&!t.closest(".aioseo-app.aioseo-post-settings-modal")&&!t.closest(".el-popper")&&!t.closest(".media-modal")&&!(t!==document.querySelector(o)&&t.contains(document.querySelector(o)))&&t.getAttribute("class")&&!t.getAttribute("class").includes("aioseo")&&t!==s){const E=new Event("aioseo-pagebuilder-toggle-modal",{open:!1});document.dispatchEvent(E)}},at=()=>!document.querySelector(".aioseo-pagebuilder-modal").classList.contains("aioseo-pagebuilder-modal-is-closed"),R=()=>document.documentElement!==s&&document.documentElement.contains(s),S=()=>document.querySelector(".et-fb-page-settings-bar").classList.contains("et-fb-page-settings-bar--active"),ct=()=>document.querySelector(".et-fb-page-settings-bar").classList.contains("et-fb-page-settings-bar--dragged")&&!S(),d=window.matchMedia("(min-width: 768px)"),mt=new MutationObserver(nt),lt="#aioseo-settings";let s=document.querySelector(lt);s=T(s);const pt=()=>{x(),ot(),st()};let L={};const c=()=>{if(document.documentElement.classList.contains("et-fb-preview--wireframe"))return;const e={...L},t=J();X(e,t)||(L=t,K())},dt=()=>{const e=G();e.saveCurrentPost(e.currentPost).then(()=>{const t=H(),o=Q();t.isUnlicensed||o.fetch()})},ut=({wp:e,addEventListener:t})=>{var o;c(),t("message",i=>{i.data.eventType==="et_fb_section_content_change"&&l(c,1e3)}),(o=e==null?void 0:e.hooks)==null||o.addFilter("et.builder.store.setting.update","aioseo",(i,n)=>{switch(n){case"et_pb_post_settings_title":g(ETBuilderBackendDynamic,"postTitle",i),l(c,1e3);break;case"et_pb_post_settings_excerpt":g(ETBuilderBackendDynamic,"postMeta.post_excerpt",i),l(c,1e3);break;case"et_pb_post_settings_image":g(ETBuilderBackendDynamic,"currentPage.thumbnailId",i),l(c,1e3);break}return i}),document.querySelector(".et-fb-button--save-draft, .et-fb-button--publish").addEventListener("click",dt)},gt={class:"aioseo-limit-modified-date-divi"},bt={class:"et-fb-button-group"},ft={key:0,class:"aioseo-limit-modified-date-divi__options et-fb-button-group"},vt={__name:"App",props:{buttonTitle:String,buttonEvent:String},setup(e){const t=C(!1),o=e,i=()=>{t.value=!1,D.emit(o.buttonEvent)};return(n,r)=>(b(),f("div",gt,[u("div",bt,[u("button",{class:"aioseo-limit-modified-date-divi__button-toggle et-fb-button et-fb-button--elevate et-fb-button--success",onClick:r[0]||(r[0]=y(E=>t.value=!t.value,["prevent"]))},[w(M(Y),{class:N({rotated:!t.value})},null,8,["class"])])]),t.value?(b(),f("div",ft,[u("button",{class:"et-fb-button et-fb-button--elevate et-fb-button--success",onClick:y(i,["prevent"])},U(o.buttonTitle),1)])):V("",!0)]))}},a={id:"aioseo-limit-modified-date-divi",param:"aioseo_limit_modified_date",event:"save-limit-modified-date",title:tt("Save (Don't Modify Date)","all-in-one-seo-pack")},h=()=>document.querySelector(".et-fb-button--publish"),_t=()=>{const e=document.createElement("div");e.id=a.id,h().insertAdjacentElement("afterend",e);let t=$({...vt,name:"Standalone/Divi/LimitModifiedDate"},{buttonTitle:a.title,buttonEvent:a.event});t=P(t),t=q(t),t=Z(t),A(t),t.mount(`#${a.id}`)},St=({ET_Builder:e})=>{D.on(a.event,()=>{const{conditionalTags:t}=e.Frames.app.frameElement.contentWindow.ETBuilderBackend;t[a.param]=!0,h().click(),delete t[a.param]})},ht=e=>{h()&&(_t(),St(e))},k={__name:"App",setup(e){const t=C(!1),o=()=>{t.value=!t.value};return W(()=>{document.addEventListener("aioseo-pagebuilder-toggle-modal",o)}),F(()=>{document.removeEventListener("aioseo-pagebuilder-toggle-modal",o)}),(i,n)=>(b(),f("div",null,[w(M(et),{"is-open":t.value,"onUpdate:isOpen":n[0]||(n[0]=r=>t.value=r)},null,8,["is-open"])]))}};let p=null;const Et=()=>{const e=z({history:I(),routes:[{path:"/",component:k}]});let t=$({name:"Standalone/Divi",data(){return{tableContext:window.aioseo.currentPost.context,screenContext:"sidebar"}},render:()=>j(k)});return t=P(t),t=q(t),t.use(e),e.app=t,A(t,e),t.mount("#aioseo-app-modal > div"),t},yt=()=>{pt(),p==null||p.unmount(),p=Et(),ut(window),ht(window)};window.addEventListener("message",function(e){e.data.eventType==="et_builder_api_ready"&&yt()});