관리-도구
편집 파일: divi.b2n249c1.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.h3clfjuw.js";import{c as j,b as z}from"./js/vue-router.eypfdvl5.js";import{e as $,l as D}from"./js/index.nd8elblc.js";import{l as P}from"./js/index.kaabvvzj.js";import{e as I,m as G,y as H,c as q}from"./js/index.ba51ghj9.js";import{d as m,a as Q}from"./js/Caret.dwp6xpza.js";import{s as g,b as Y,m as J}from"./js/postSlug.ms4f44w2.js";import{i as K}from"./js/isEqual.dwjbg1yu.js";import"./js/translations.b896ab1m.js";import{l as X}from"./js/index.moogjen0.js";import{_ as Z}from"./js/default-i18n.hohxoesu.js";import{M as tt}from"./js/Modal.o0a6nlic.js";import"./js/_plugin-vue_export-helper.oebm7xum.js";import"./js/helpers.lwqbledo.js";import"./js/metabox.y83zoorm.js";import"./js/cleanForSlug.dzbbaoug.js";import"./js/toString.oppn28a8.js";import"./js/_baseTrim.ohbpllmu.js";import"./js/_stringToArray.mpukyt2g.js";import"./js/_baseSet.ipousrvi.js";import"./js/regex.bekpgw04.js";import"./js/_baseIsEqual.j7gru8tk.js";import"./js/_getTag.fx9iqlmr.js";import"./js/ScoreButton.erl7ixj3.js";import"./js/App.levbhvl8.js";/* empty css */import"./js/LicenseKeyBar.gh3b5rkr.js";import"./js/ScrollTo.ntqtkazp.js";import"./js/params.k8e95b6q.js";import"./js/LogoGear.gxsz2m6s.js";import"./js/allowed.o46uhc7o.js";import"./js/constants.hcfrsngk.js";import"./js/SettingsRow.d9u0swi1.js";import"./js/Row.h4gujlzc.js";import"./js/Checkbox.cv4w58s0.js";import"./js/Checkmark.d5kkjaf5.js";import"./js/Tabs.opo0ypfq.js";import"./js/TruSeoScore.das28gz4.js";import"./js/ProBadge.e32os6n3.js";import"./js/Information.djrr3pec.js";import"./js/Ellipse.mhzh8c2h.js";import"./js/Slide.dop8j51m.js";import"./js/Index.kqt70nj0.js";import"./js/MaxCounts.h4dewttr.js";import"./js/Tags.mkuonlme.js";import"./js/debounce.mrkkoh0r.js";import"./js/toNumber.i3xpxrn8.js";import"./js/toFinite.fa15x3ow.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.mmblg2b4.js";import"./js/HtmlTagsEditor.irue4ytl.js";import"./js/Editor.ipgvvrs0.js";import"./js/_baseClone.n1l9l19s.js";import"./js/_arrayEach.n8ou32wp.js";import"./js/UnfilteredHtml.o4azp64h.js";import"./js/popup.dv3t4x6w.js";import"./js/SetupWizardStore.hjajzbq0.js";import"./js/datetime.hyfm7zez.js";import"./js/license.ij9c7ra4.js";import"./js/upperFirst.bgyeasim.js";import"./js/Mobile.livanyta.js";import"./js/Settings.m4k6ojy4.js";import"./js/TableOfContentsStore.hhb2k7dx.js";import"./js/vue3-apexcharts.n0h2b4pa.js";import"./js/ConnectCta.kd4ryk1u.js";import"./js/GoogleSearchConsole.gq5vl5zt.js";import"./js/Index.jq0lth54.js";import"./js/Blur.mu93d3e2.js";import"./js/Graph.chc9u9ci.js";import"./js/numbers.busvl4mt.js";import"./js/WpTable.i82lv9f1.js";import"./js/Table.bzjzsap0.js";import"./js/RequiredPlans.fcb8z72b.js";import"./js/addons.eq04tz3m.js";import"./js/PostTypes.pd67gy5m.js";import"./js/External.lyui8nzf.js";import"./js/InternalOutbound.gq4sspcu.js";import"./js/Image.j9h9tyqk.js";import"./js/FacebookPreview.gt9tcl43.js";import"./js/Img.cncschi2.js";import"./js/Profile.t9aiulue.js";import"./js/ImageUploader.l2gqgn6z.js";import"./js/TwitterPreview.liy9u0my.js";import"./js/Book.f6lktglp.js";import"./js/Build.mjaxpub4.js";import"./js/Redirects.nw8rq81b.js";import"./js/Index.j04s6syt.js";import"./js/JsonValues.g6ep3o3z.js";import"./js/Url.e5jo61ge.js";import"./js/External.h5te4wqm.js";import"./js/escapeRegExp.o0mkkk5c.js";import"./js/Exclamation.f0pmbpi9.js";import"./js/Gear.dx9icaxx.js";import"./js/date.ozs95ujh.js";import"./js/DatePicker.hz9n2i3u.js";import"./js/Calendar.fbofsn3b.js";import"./js/pick.e9wcosvf.js";import"./js/Card.0q0mr1wq.js";import"./js/Upsell.l3r393es.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=_();l(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=_();l(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=>{l(s,"aioseo-settings-bar-root"),s.classList.add(`aioseo-settings-bar-root-${e}`),l(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)}),l(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)})},l=(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),lt="#aioseo-settings";let s=document.querySelector(lt);s=A(s);const mt=()=>{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"&&m(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),m(c,1e3);break;case"et_pb_post_settings_excerpt":g(ETBuilderBackendDynamic,"postMeta.post_excerpt",i),m(c,1e3);break;case"et_pb_post_settings_image":g(ETBuilderBackendDynamic,"currentPage.thumbnailId",i),m(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=()=>{mt(),p==null||p.unmount(),p=ht(),dt(window),St(window)};window.addEventListener("message",function(e){e.data.eventType==="et_builder_api_ready"&&Et()});