System.register(["./index-legacy.a084919e.js","./index-legacy.dc002958.js"],(function(e,t){"use strict";var a,i,o,n,s=document.createElement("style");return s.textContent=".el-input .el-input__inner{height:40px}.el-checkbox .el-checkbox__label{font-size:14px;line-height:20px}.me-change-cover[data-v-73048a58]{position:relative;width:700px;height:625px;padding:40px 20px 20px;background:var(--color-white);box-shadow:2px 2px 10px rgba(25,25,25,.2);border-radius:16px;margin:120px auto 206px;text-align:center}.me-change-cover .pictures[data-v-73048a58]{margin:30px 0;display:flex;overflow:auto}.me-change-cover .top .back[data-v-73048a58]{position:absolute;top:28px;left:20px;cursor:pointer}.me-change-cover .top .back img[data-v-73048a58]{width:46px;height:46px;border-radius:50%;box-shadow:0 0 6px rgba(0,0,0,.16)}.pictures .column-item[data-v-73048a58]{width:122px;margin-right:12px}.pictures .column-item[data-v-73048a58]:nth-child(5){margin-right:0}.column-item .list-item[data-v-73048a58]{position:relative;margin-bottom:12px}.column-item .list-item img.image[data-v-73048a58]{width:100%;height:auto;border-radius:8px}.column-item .list-item img.select[data-v-73048a58]{position:absolute;top:10px;left:10px;width:26px;height:26px}\n",document.head.appendChild(s),{setters:[function(e){a=e.n,i=e.r,o=e._},function(e){n=e.W}],execute:function(){var t={name:"me-change-cover",components:{Waterfall:n},data:function(){return{images:[],limit:5,page:1,totalPage:1}},mounted:function(){this.getImages()},methods:{goBack:function(){this.$router.go(-1)},onSelected:function(e){var t=this,a=e[0].image,i=this.$t("common.failure");this.$axios.post("/api/folder/edit_folder",{images:[a],id:this.id}).then((function(e){var a=e.data,o=a.code,n=a.msg;0==o?(t.$message.success(n),t.$router.push({path:"/me/docSetting",query:{id:t.id}})):t.$message.error(n||i)})).catch((function(){t.$message.error(i)}))},loadData:function(e){this.getImages({page:e,newload:!1})},getImages:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.page,o=void 0===a?this.page:a,n=t.newload,s=void 0===n||n,r=this.$t("common.failure");this.$axios.get("/api/folder/image_list",{params:{page:o,limit:this.limit,folder_id:this.id,go:4}}).then((function(t){var a=t.data,o=a.code,n=a.msg,c=a.data,l=void 0===c?{}:c;if(0==o){var d=l.items,g=void 0===d?[]:d,m=l.page,p=l.totalPage;e.page=m,e.images=s?g:i(e.images,g),e.totalPage=p}else e.$message.error(n||r)})).catch((function(){e.$message.error(r)}))}},computed:{id:function(){var e=this.$route.query.id;return parseInt(e)}}};e("default",a(t,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"me-change-cover"},[t("div",{staticClass:"top"},[t("div",{staticClass:"back",on:{click:e.goBack}},[t("img",{attrs:{src:o,alt:"back icon"}})]),t("b",[e._v(e._s(e.$t("me.profile.changeCover.title")))])]),t("div",{staticClass:"pictures"},[e.images.length?t("Waterfall",{attrs:{data:e.images,page:e.page,totalPage:e.totalPage},on:{loadData:e.loadData,selected:e.onSelected}}):e._e()],1)])}),[],!1,null,"73048a58",null,null).exports)}}}));
