관리-도구
편집 파일: divi.e30f0bbe.js
import{g as k,o as b,c as f,a as u,E,C,G as R,u as w,t as N,b as U,Y as M,y as V,O as W,h as F}from"./js/runtime-dom.esm-bundler.6789c400.js";import{c as j,b as z}from"./js/vue-router.fc4966b9.js";import{e as $,l as D}from"./js/index.3eb8f806.js";import{l as P}from"./js/index.ee8124c6.js";import{e as I,m as G,y as H,c as q}from"./js/index.20192476.js";import{d as l,a as Q}from"./js/Caret.662da1f3.js";import{s as g,b as Y,m as J}from"./js/postTitle.d67eb903.js";import{i as K}from"./js/isEqual.51bf23f5.js";import"./js/translations.12335a6a.js";import{l as X}from"./js/index.1ca84f0e.js";import{_ as Z}from"./js/default-i18n.54b5d8cd.js";import{M as tt}from"./js/Modal.40f1581a.js";import"./js/_plugin-vue_export-helper.249dac1d.js";import"./js/helpers.f95d5840.js";import"./js/metabox.dc73facf.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";import"./js/ScoreButton.e2a31604.js";import"./js/App.01f2e941.js";/* empty css */import"./js/LicenseKeyBar.4ba21094.js";import"./js/ScrollTo.97c9805f.js";import"./js/params.764403f6.js";import"./js/LogoGear.29bd352d.js";import"./js/allowed.f428d9c9.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/Tabs.2fd33524.js";import"./js/ProBadge.7733ac87.js";import"./js/Information.82968754.js";import"./js/Slide.d0517fb0.js";import"./js/Index.de83b4aa.js";import"./js/MaxCounts.d28a6cb7.js";import"./js/Tags.45075d79.js";import"./js/Ellipse.c57f22ea.js";import"./js/debounce.40834200.js";import"./js/toNumber.30f8b529.js";import"./js/toFinite.bbcc0565.js";import"./js/TruSeoScore.c8bdf339.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.2f81905c.js";import"./js/HtmlTagsEditor.4c8f78eb.js";import"./js/Editor.5a453aa4.js";import"./js/_baseClone.e959332d.js";import"./js/_arrayEach.f4f00336.js";import"./js/UnfilteredHtml.4ebe3c5f.js";import"./js/popup.001b1125.js";import"./js/SetupWizardStore.f902c357.js";import"./js/datetime.cb3980ce.js";import"./js/license.37048367.js";import"./js/upperFirst.96c04516.js";import"./js/Mobile.3fcac169.js";import"./js/Settings.0254ae9c.js";import"./js/TableOfContentsStore.62cf580e.js";import"./js/vue3-apexcharts.8b5abfad.js";import"./js/ConnectCta.444a26a5.js";import"./js/GoogleSearchConsole.9e8ca525.js";import"./js/Index.c0a0a208.js";import"./js/Blur.31bfcf06.js";import"./js/Graph.266090de.js";import"./js/numbers.b55b32c5.js";import"./js/WpTable.46584896.js";import"./js/Table.963c11c7.js";import"./js/Download.6a0d8455.js";import"./js/RequiredPlans.7629fd28.js";import"./js/addons.9d0af6ad.js";import"./js/PostTypes.d6c1987b.js";import"./js/External.b3b0805d.js";import"./js/InternalOutbound.b4a71286.js";import"./js/Image.47bc8de9.js";import"./js/FacebookPreview.8edcde79.js";import"./js/Img.2fc40874.js";import"./js/Profile.19fffd1c.js";import"./js/ImageUploader.82ab8ffd.js";import"./js/TwitterPreview.09956aa1.js";import"./js/Book.e7bb6a80.js";import"./js/Build.828bd995.js";import"./js/Redirects.921e33df.js";import"./js/Index.4759371c.js";import"./js/JsonValues.892a7505.js";import"./js/Url.0ccd8549.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.fd6399b7.js";import"./js/Calendar.4686ac3f.js";import"./js/pick.231724a9.js";import"./js/Card.46af096e.js";import"./js/Upsell.beb53fd9.js";const A=e=>e.parentElement.removeChild(e),T=()=>{const e=S();document.body.classList.toggle("aioseo-settings-bar-is-active",e),document.body.classList.toggle("aioseo-settings-bar-is-inactive",!e)},et=()=>{const e=_();m(document.body,"aioseo-settings-bar-is"),document.body.classList.add(`aioseo-settings-bar-is-${e}`),v(e)},ot=e=>{const t=document.getElementById(e);return t.contentWindow?t.contentWindow.document:t.contentDocument},it=()=>{d.addEventListener("change",()=>{x(),v(_())}),ct.observe(document.querySelector(".et-fb-page-settings-bar"),{attributeFilter:["class"]}),document.addEventListener("click",y),ot("et-fb-app-frame").addEventListener("click",y),s.addEventListener("click",()=>{const e=new Event("aioseo-pagebuilder-toggle-modal");document.dispatchEvent(e)})},st=()=>{const e=_();m(document.body,"aioseo-settings-bar-is"),document.body.classList.add(`aioseo-settings-bar-is-${e}`),T(),x(),at()||v(e)},x=()=>{O()&&(s=A(s))},v=e=>{if(O())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(nt(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)},nt=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":""},y=e=>{if(!rt())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!==document.querySelector(o)&&t.contains(document.querySelector(o)))&&t.getAttribute("class")&&!t.getAttribute("class").includes("aioseo")&&t!==s){const r=new Event("aioseo-pagebuilder-toggle-modal",{open:!1});document.dispatchEvent(r)}},rt=()=>!document.querySelector(".aioseo-pagebuilder-modal").classList.contains("aioseo-pagebuilder-modal-is-closed"),O=()=>document.documentElement!==s&&document.documentElement.contains(s),S=()=>document.querySelector(".et-fb-page-settings-bar").classList.contains("et-fb-page-settings-bar--active"),at=()=>document.querySelector(".et-fb-page-settings-bar").classList.contains("et-fb-page-settings-bar--dragged")&&!S(),d=window.matchMedia("(min-width: 768px)"),ct=new MutationObserver(st),mt="#aioseo-settings";let s=document.querySelector(mt);s=A(s);const lt=()=>{T(),et(),it()};let B={};const c=()=>{if(document.documentElement.classList.contains("et-fb-preview--wireframe"))return;const e={...B},t=Y();K(e,t)||(B=t,J())},pt=()=>{const e=I();e.saveCurrentPost(e.currentPost).then(()=>{const t=G(),o=H();t.isUnlicensed||o.fetch()})},dt=({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",pt)},ut={class:"aioseo-limit-modified-date-divi"},gt={class:"et-fb-button-group"},bt={key:0,class:"aioseo-limit-modified-date-divi__options et-fb-button-group"},ft={__name:"App",props:{buttonTitle:String,buttonEvent:String},setup(e){const t=k(!1),o=e,i=()=>{t.value=!1,$.emit(o.buttonEvent)};return(n,r)=>(b(),f("div",ut,[u("div",gt,[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]=E(yt=>t.value=!t.value,["prevent"]))},[C(w(Q),{class:R({rotated:!t.value})},null,8,["class"])])]),t.value?(b(),f("div",bt,[u("button",{class:"et-fb-button et-fb-button--elevate et-fb-button--success",onClick:E(i,["prevent"])},N(o.buttonTitle),1)])):U("",!0)]))}},a={id:"aioseo-limit-modified-date-divi",param:"aioseo_limit_modified_date",event:"save-limit-modified-date",title:Z("Save (Don't Modify Date)","all-in-one-seo-pack")},h=()=>document.querySelector(".et-fb-button--publish"),vt=()=>{const e=document.createElement("div");e.id=a.id,h().insertAdjacentElement("afterend",e);let t=M({...ft,name:"Standalone/Divi/LimitModifiedDate"},{buttonTitle:a.title,buttonEvent:a.event});t=D(t),t=P(t),t=X(t),q(t),t.mount(`#${a.id}`)},_t=({ET_Builder:e})=>{$.on(a.event,()=>{const{conditionalTags:t}=e.Frames.app.frameElement.contentWindow.ETBuilderBackend;t[a.param]=!0,h().click(),delete t[a.param]})},St=e=>{h()&&(vt(),_t(e))},L={__name:"App",setup(e){const t=k(!1),o=()=>{t.value=!t.value};return V(()=>{document.addEventListener("aioseo-pagebuilder-toggle-modal",o)}),W(()=>{document.removeEventListener("aioseo-pagebuilder-toggle-modal",o)}),(i,n)=>(b(),f("div",null,[C(w(tt),{"is-open":t.value,"onUpdate:isOpen":n[0]||(n[0]=r=>t.value=r)},null,8,["is-open"])]))}};let p=null;const ht=()=>{const e=j({history:z(),routes:[{path:"/",component:L}]});let t=M({name:"Standalone/Divi",data(){return{tableContext:window.aioseo.currentPost.context,screenContext:"sidebar"}},render:()=>F(L)});return t=D(t),t=P(t),t.use(e),e.app=t,q(t,e),t.mount("#aioseo-app-modal > div"),t},Et=()=>{lt(),p==null||p.unmount(),p=ht(),dt(window),St(window)};window.addEventListener("message",function(e){e.data.eventType==="et_builder_api_ready"&&Et()});