관리-도구
편집 파일: Url.gcfjtds7.js
import{u as a,j as b}from"./index.nsvc8vqf.js";import{g as f}from"./runtime-dom.esm-bundler.h3clfjuw.js";const $=()=>{const g=f(!1),h=f(!1),d=t=>{if(!t)return"";let r=t;if(e(t)){const o=t.split("#")[1].split(":");r=a().aioseo.urls.aio.dashboard.replace("page=aioseo",`page=${o[0]}#/${o[1]}`)}return r},m=t=>e(t)?null:"_blank",e=t=>t.startsWith("http://route#")||t.startsWith("https://route#"),i=t=>t.startsWith("http://action#")||t.startsWith("https://action#"),_=t=>i(t)?"button":"a",w=(t,r)=>{if(i(t))return c(t);if(e(t))return u(t)},c=(t,r)=>{const s=/[^#?]*/gm,o=t.match(s),n=o[2];b().processButtonAction(n).then(()=>{if(o[4]&&o[4].startsWith("redirect=")){const A=a(),l=o[4].replace("redirect=","").split(":"),p=A.aioseo.urls.aio.dashboard.replace("page=aioseo",`page=${l[0]}#/${l[1]}`);if(p===window.location.href){window.location.reload();return}window.location.href=p}else o[4]&&o[4].startsWith("refresh")&&window.location.reload()})},u=t=>{const r=a(),s=/[^#?]*/gm,n=t.match(s)[2].split(":");r.aioseo.urls.aio.dashboard.replace("page=aioseo",`page=${n[0]}#/${n[1]}`)===window.location.href&&window.location.reload()};return{button1Loading:g,button2Loading:h,getHref:d,getTagType:_,getTarget:m,processAction:c,processButtonClick:w,processRoute:u}};export{$ as u};