관리-도구
편집 파일: divi.f9awkq02.js
import{g as C,o as b,c as f,a as u,E,C as k,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.mwhkjjlr.js";import{e as $,l as D}from"./js/index.nd8elblc.js";import{l as P}from"./js/index.h076fivy.js";import{b as I,i as G,C as H,l as q}from"./js/index.nsvc8vqf.js";import{d as m,a as Q}from"./js/Caret.hnvbzqgq.js";import{s as g,a as Y,m as J}from"./js/postSlug.cemx0kwk.js";import{i as K}from"./js/isEqual.gulmggc8.js";import"./js/translations.lf9cwm9a.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.kenum10g.js";import"./js/_plugin-vue_export-helper.oebm7xum.js";import"./js/helpers.fdpg7vgg.js";import"./js/metabox.ncz5ucbq.js";import"./js/cleanForSlug.ncex5ar8.js";import"./js/toString.g0kcp64r.js";import"./js/_baseTrim.ohbpllmu.js";import"./js/_stringToArray.mpukyt2g.js";import"./js/_baseSet.lqwmtpeb.js";import"./js/_baseIsEqual.hstd7xe6.js";import"./js/_getTag.h6v5trhq.js";import"./js/ScoreButton.br7jqlck.js";import"./js/App.b2imjdmx.js";/* empty css */import"./js/LicenseKeyBar.n8bctwdg.js";import"./js/ScrollTo.ntqtkazp.js";import"./js/params.k8e95b6q.js";import"./js/LogoGear.gxsz2m6s.js";import"./js/allowed.kmy7i7t2.js";import"./js/constants.fxxegv78.js";import"./js/SettingsRow.1l1umqn0.js";import"./js/Row.o0q8mn7y.js";import"./js/Checkbox.fww0datn.js";import"./js/Checkmark.d5kkjaf5.js";import"./js/Tabs.4r8l6r8o.js";import"./js/TruSeoScore.oj10wjxw.js";import"./js/ProBadge.ab6jhp8x.js";import"./js/Information.djrr3pec.js";import"./js/Ellipse.mhzh8c2h.js";import"./js/Slide.dop8j51m.js";import"./js/Index.fywmukpg.js";import"./js/MaxCounts.dcyuh1uu.js";import"./js/Tags.oypvqhpf.js";import"./js/debounce.paenkskr.js";import"./js/toNumber.lmnvj60l.js";import"./js/toFinite.cbuzojxe.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.o1cj6y7p.js";import"./js/HtmlTagsEditor.k0zlm7pg.js";import"./js/Editor.k6y9ox0q.js";import"./js/_baseClone.nbrz7zdx.js";import"./js/_arrayEach.n8ou32wp.js";import"./js/UnfilteredHtml.erapx69a.js";import"./js/popup.by9shv56.js";import"./js/license.bcd45a0t.js";import"./js/upperFirst.mzmrvvb6.js";import"./js/Mobile.livanyta.js";import"./js/vue3-apexcharts.n0h2b4pa.js";import"./js/ConnectCta.fpg4jfxp.js";import"./js/GoogleSearchConsole.fwntzjjl.js";import"./js/Index.lvccx76i.js";import"./js/Blur.f3nyx4yc.js";import"./js/Graph.dm4w1ra9.js";import"./js/numbers.busvl4mt.js";import"./js/WpTable.qh17xjl6.js";import"./js/Table.jd7cflkg.js";import"./js/RequiredPlans.e7ak5151.js";import"./js/addons.foby19s7.js";import"./js/PostTypes.d1dx9z99.js";import"./js/External.lyui8nzf.js";import"./js/InternalOutbound.gq4sspcu.js";import"./js/Image.g0jgwvuo.js";import"./js/FacebookPreview.mpw3lfil.js";import"./js/Img.iuunu5c1.js";import"./js/Profile.t9aiulue.js";import"./js/ImageUploader.j9of4s9e.js";import"./js/TwitterPreview.nwjqs262.js";import"./js/Book.f6lktglp.js";import"./js/Settings.cshbxeez.js";import"./js/Build.mjaxpub4.js";import"./js/Redirects.ngf9mprt.js";import"./js/Index.liespbtj.js";import"./js/JsonValues.g6ep3o3z.js";import"./js/External.h5te4wqm.js";import"./js/escapeRegExp.cd9ew2v1.js";import"./js/Exclamation.f0pmbpi9.js";import"./js/Gear.dx9icaxx.js";import"./js/date.ecds9xx3.js";import"./js/DatePicker.odhs29tp.js";import"./js/Calendar.fbofsn3b.js";import"./js/pick.dywdbgah.js";import"./js/Card.n68aovsj.js";import"./js/Upsell.j5qfjr6p.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=C(!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"]))},[k(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=C(!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,[k(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()});