System.register(["./index-legacy.a084919e.js"],(function(e,t){"use strict";var a,r=document.createElement("style");return r.textContent=".el-input .el-input__inner{height:40px}.el-checkbox .el-checkbox__label{font-size:14px;line-height:20px}.me-create-doc[data-v-54d95bc0]{width:440px;height:300px;padding:30px;background:var(--color-white);box-shadow:2px 2px 10px rgba(25,25,25,.2);border-radius:16px;margin:240px auto;text-align:center}.me-create-doc .form[data-v-54d95bc0]{margin-top:21px}.me-create-doc .button[data-v-54d95bc0]{display:flex;justify-content:space-between;align-items:center;margin-top:30px}.me-create-doc .button .el-button[data-v-54d95bc0]{width:62px;height:36px;font-size:14px;color:var(--color-black);border:1px solid #F1F1F5;background:#F1F1F5;border-radius:19px}.el-form .el-form-item.name[data-v-54d95bc0]{margin-bottom:15px}\n",document.head.appendChild(r),{setters:[function(e){a=e.n}],execute:function(){e("default",a({name:"me-create-doc",data:function(){return{form:{data:{name:"",is_private:!1},rules:{name:[{required:!0,trigger:"blur"}]}}}},methods:{onSubmit:function(){var e=this,t=this.form.data,a=t.name,r=t.is_private,o=this.$t("common.failure");this.$refs.form.validate((function(t){t&&e.$axios.post("/api/folder/add_folder",{name:a,is_private:r?1:0,type:e.type}).then((function(t){var a=t.data,r=a.code,i=a.msg,n=void 0===i?o:i;0==r?(e.$message.success(n),e.$router.push({path:"/me/profile"})):e.$message.error(n||o)})).catch((function(){e.$message.error(o)}))}))}},computed:{type:function(){var e=this.$route.query.type;return parseInt(e)},disabled:function(){return!this.form.data.name}}},(function(){var e=this,t=e._self._c;return t("div",{staticClass:"me-create-doc"},[t("b",[e._v(e._s(e.$t("me.profile.createDocTitle")))]),t("div",{staticClass:"form"},[t("el-form",{ref:"form",attrs:{model:e.form.data,rules:e.form.rules}},[t("el-form-item",{staticClass:"name",attrs:{prop:"name",label:e.$t("common.title")}},[t("el-input",{attrs:{clearable:""},model:{value:e.form.data.name,callback:function(t){e.$set(e.form.data,"name",t)},expression:"form.data.name"}})],1),t("el-form-item",[t("el-checkbox",{model:{value:e.form.data.is_private,callback:function(t){e.$set(e.form.data,"is_private",t)},expression:"form.data.is_private"}},[e._v(" "+e._s(e.$t("me.profile.createDoc.secretTip1"))+" "),t("br"),e._v(" "+e._s(e.$t("me.profile.createDoc.secretTip2"))+" ")])],1)],1)],1),t("div",{staticClass:"button"},[t("router-link",{attrs:{to:"/me/profile"}},[t("el-button",{staticClass:"cancel",attrs:{type:"primary",round:""}},[e._v(e._s(e.$t("common.cancel")))])],1),t("el-button",{staticClass:"create",attrs:{type:"primary",disabled:e.disabled,round:""},on:{click:e.onSubmit}},[e._v(e._s(e.$t("common.create")))])],1)])}),[],!1,null,"54d95bc0",null,null).exports)}}}));
