(function(e,a){typeof exports=="object"&&typeof module<"u"?module.exports=a(require("vue")):typeof define=="function"&&define.amd?define(["vue"],a):(e=typeof globalThis<"u"?globalThis:e||self,e.domain_change=a(e.Vue))})(this,function(e){"use strict";function a(t){return App.request({url:"addons/domain_change/Domain/setting_detail",method:"post",data:t})}function p(t){return App.request({url:"addons/domain_change/Domain/setting",method:"post",data:t})}const c=(t,o)=>{const l=t.__vccOpts||t;for(const[m,n]of o)l[m]=n;return l},f={name:"DomainChangeIndex",components:{},data(){return{activeName:"first",form:{before_domain:"",after_domain:""},rules:{before_domain:[{required:!0,trigger:"blur",message:"更换前域名不能为空"}],after_domain:[{required:!0,trigger:"blur",message:"更换后域名不能为空"}]}}},created(){a().then(t=>{this.form.after_domain=t.data.curr_domain,window.App.util.EventBus.emit("App-Page-Show")})},methods:{domainSubmit(){this.$refs.form.validate(async t=>{if(t)p(this.form).then(o=>{this.$message({showClose:!0,message:"操作成功！",type:"success"})});else return!1})}}},_={class:"userManagement-container"},u={style:{"font-size":"13px",color:"#67757c"}};function h(t,o,l,m,n,b){const d=e.resolveComponent("el-input"),i=e.resolveComponent("el-form-item"),V=e.resolveComponent("el-button"),C=e.resolveComponent("el-form"),w=e.resolveComponent("el-tab-pane"),N=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",_,[e.createVNode(N,{modelValue:n.activeName,"onUpdate:modelValue":o[2]||(o[2]=r=>n.activeName=r)},{default:e.withCtx(()=>[e.createVNode(w,{label:t.translateI18n("域名迁移"),name:"first"},{default:e.withCtx(()=>[e.createVNode(C,{ref:"form",model:n.form,rules:n.rules,"label-width":"120px"},{default:e.withCtx(()=>[e.createVNode(i,{label:t.translateI18n("现有域名"),prop:"before_domain"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:n.form.before_domain,"onUpdate:modelValue":o[0]||(o[0]=r=>n.form.before_domain=r),class:"input",placeholder:t.translateI18n("现有域名")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(i,{label:t.translateI18n("新域名"),prop:"after_domain"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:n.form.after_domain,"onUpdate:modelValue":o[1]||(o[1]=r=>n.form.after_domain=r),placeholder:t.translateI18n("新域名"),class:"input"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(i,{label:"",prop:"afterName"},{default:e.withCtx(()=>[e.createElementVNode("div",u,e.toDisplayString(t.translateI18n("注：此处更换是整个站点所有图片路径，配置云存储无需操作域名更换，请谨慎使用此功能。")),1)]),_:1}),e.createVNode(V,{type:"primary",class:"btn",onClick:b.domainSubmit},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.translateI18n("确定")),1)]),_:1},8,["onClick"])]),_:1},8,["model","rules"])]),_:1},8,["label"])]),_:1},8,["modelValue"])])}const g=c(f,[["render",h],["__scopeId","data-v-3fe06861"]]);function s(t){const o=[{path:"/domain_change",name:"domain_change",component:t.Layout,meta:{title:"域名迁移"},children:[{path:"domain_change_index",component:g,meta:{title:"域名迁移"}}]}];t.registerPlugin("domain_change",{routes:o})}return window.App&&s(window.App),s});
window.Yibai.pluginManage && window.Yibai.pluginManage.importCss && window.Yibai.pluginManage.importCss('domain_change', '["style.DuSEmlTc.css"]');