관리-도구
편집 파일: divi.nruin16g.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.eypfdvl5.js";import{e as $,l as D}from"./js/index.njux2kgl.js";import{l as P}from"./js/index.cw7tfyil.js";import{d as m,a4 as g,N as G,G as I,C as H,i as Q,F as Y,o as q}from"./js/index.lqcu3hi3.js";import{i as J}from"./js/isEqual.izz0yjhb.js";import"./js/translations.e22mvhfh.js";import{l as K}from"./js/index.moogjen0.js";import{a as X}from"./js/Caret.g6s6s7gs.js";import{_ as Z}from"./js/default-i18n.bz7purh4.js";import{M as tt}from"./js/Modal.jbeyzisz.js";import"./js/_plugin-vue_export-helper.oebm7xum.js";import"./js/cleanForSlug.etvx808q.js";import"./js/_baseIsEqual.btyep0ht.js";import"./js/_getTag.k19irihw.js";import"./js/ScoreButton.erl7ixj3.js";import"./js/App.i3mx0zbv.js";/* empty css */import"./js/LicenseKeyBar.hoq3y8n1.js";import"./js/ScrollTo.ntqtkazp.js";import"./js/params.k8e95b6q.js";import"./js/LogoGear.gxsz2m6s.js";import"./js/allowed.cnz2h8ma.js";import"./js/constants.dnzd2kuo.js";import"./js/SettingsRow.d9u0swi1.js";import"./js/Row.h4gujlzc.js";import"./js/Checkbox.cv4w58s0.js";import"./js/Checkmark.d5kkjaf5.js";import"./js/Tabs.nyi4b4w1.js";import"./js/ProBadge.e32os6n3.js";import"./js/Information.djrr3pec.js";import"./js/Slide.dop8j51m.js";import"./js/Index.gtlvh3ar.js";import"./js/MaxCounts.bdkgkiti.js";import"./js/Tags.lgcgntse.js";import"./js/Ellipse.mhzh8c2h.js";import"./js/debounce.lmahs4m3.js";import"./js/toNumber.o3a8s20t.js";import"./js/toFinite.j57ptoa1.js";import"./js/TruSeoScore.he4e4jdf.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.iw4vtoyb.js";import"./js/HtmlTagsEditor.b5rm37z5.js";import"./js/Editor.i8px02kg.js";import"./js/_baseClone.memmt1nf.js";import"./js/_arrayEach.n8ou32wp.js";import"./js/UnfilteredHtml.gvs5qb56.js";import"./js/popup.by9shv56.js";import"./js/license.md0nmssw.js";import"./js/upperFirst.d9alxexs.js";import"./js/Mobile.livanyta.js";import"./js/vue3-apexcharts.cwogygg0.js";import"./js/ConnectCta.oy9zv6h9.js";import"./js/GoogleSearchConsole.mrngyubh.js";import"./js/Index.bojstwek.js";import"./js/Blur.mu93d3e2.js";import"./js/Graph.bw9skznb.js";import"./js/numbers.oc93q9ut.js";import"./js/WpTable.ku0ajsnd.js";import"./js/Table.fw94frzs.js";import"./js/Download.cmimu09k.js";import"./js/RequiredPlans.l7pjpdqj.js";import"./js/addons.ds3c4v6r.js";import"./js/PostTypes.k189gg5t.js";import"./js/External.lyui8nzf.js";import"./js/InternalOutbound.gq4sspcu.js";import"./js/Image.mh6vskkn.js";import"./js/FacebookPreview.pblvb2yr.js";import"./js/Img.b8ktdwdi.js";import"./js/Profile.t9aiulue.js";import"./js/ImageUploader.ljgurrx5.js";import"./js/TwitterPreview.gaoeyz1f.js";import"./js/Book.f6lktglp.js";import"./js/Settings.cshbxeez.js";import"./js/Build.mjaxpub4.js";import"./js/Redirects.b9owhewb.js";import"./js/Index.mnx6c8l5.js";import"./js/JsonValues.g6ep3o3z.js";import"./js/Url.mx7n0tnd.js";import"./js/External.h5te4wqm.js";import"./js/escapeRegExp.n8evpyq8.js";import"./js/Exclamation.f0pmbpi9.js";import"./js/Gear.dx9icaxx.js";import"./js/date.cp76fgkd.js";import"./js/DatePicker.ns06gy6o.js";import"./js/Calendar.fbofsn3b.js";import"./js/pick.gnbqgz74.js";import"./js/Card.nubn9etl.js";import"./js/Upsell.ouqs5sgm.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=G();J(e,t)||(B=t,I())},pt=()=>{const e=H();e.saveCurrentPost(e.currentPost).then(()=>{const t=Q(),o=Y();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(X),{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=K(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()});