!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t,i,o){return(i=function(t){var i=function(t,i){if("object"!==e(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,i||"default");if("object"!==e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"===e(i)?i:String(i)}(i))in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o,t}System.register(["./index-legacy.a084919e.js"],(function(e,i){"use strict";var o,r,a=document.createElement("style");return a.textContent=".me-move-file[data-v-387fbfcc]{position:relative;width:440px;height:571px;padding:30px 25px 25px;background:var(--color-white);box-shadow:2px 2px 10px rgba(25,25,25,.2);border-radius:16px;margin:120px auto 206px;text-align:center;display:flex;flex-direction:column}.me-move-file .top[data-v-387fbfcc]{height:40px}.me-move-file .top .back[data-v-387fbfcc]{position:absolute;top:28px;left:28px;cursor:pointer}.me-move-file .top .back img[data-v-387fbfcc]{width:46px;height:46px;border-radius:50%;box-shadow:0 0 6px rgba(0,0,0,.16)}.me-move-file .files[data-v-387fbfcc]{flex:1;margin:22px 0;overflow:auto}.me-move-file .files[data-v-387fbfcc]::-webkit-scrollbar{width:0}.me-move-file .files .file-item[data-v-387fbfcc]{color:#1a1311;font-size:15px;line-height:21px;margin-bottom:6px;display:flex;align-items:center;cursor:pointer}.me-move-file .files .file-item[data-v-387fbfcc]:last-child{margin-bottom:0}.me-move-file .files .file-item img[data-v-387fbfcc],.me-move-file .files .file-item .default-images[data-v-387fbfcc]{width:60px;height:60px;margin-right:20px;border-radius:6px}.me-move-file .files .file-item .default-images[data-v-387fbfcc]{background:#DBDBDB;border-radius:6px}.me-move-file .button[data-v-387fbfcc]{height:60px}.me-move-file .button a[data-v-387fbfcc]{color:#1a1311;font-size:15px;line-height:21px;display:flex;align-items:center}.button .icon-plus[data-v-387fbfcc]{width:60px;height:60px;color:#1a1311;font-size:21px;font-weight:700;background:#DBDBDB;margin-right:20px;border-radius:6px;display:flex;align-items:center;justify-content:center}\n",document.head.appendChild(a),{setters:[function(e){o=e.n,r=e._}],execute:function(){var i,a=(t(i={name:"me-move-file",data:function(){return{folders:[]}},methods:{goBack:function(){this.$router.go(-1)}},mounted:function(){var e=this,t=this.$t("common.failure");this.$axios.get("/api/folder/folder_list",{params:{type:this.type}}).then((function(i){var o=i.data,r=o.code,a=o.msg,n=o.data,s=void 0===n?[]:n;0==r?e.folders=s:e.$message.error(a||t)})).catch((function(){e.$message.error(t)}))}},"methods",{goBack:function(){this.$router.go(-1)},moveFile:function(e){var t=this,i=e.id,o=this.$t("common.failure");this.$axios.post("/api/folder/move_file",{folder_id:i,product_ids:this.ids}).then((function(e){var i=e.data,r=i.code,a=i.msg;0==r?(t.$message.success(a),t.goBack()):t.$message.error(a||o)})).catch((function(){t.$message.error(o)}))}}),t(i,"computed",{ids:function(){var e=this.$route.query.ids;return e},type:function(){var e=this.$route.query.type;return parseInt(e)}}),i);e("default",o(a,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"me-move-file"},[t("div",{staticClass:"top"},[t("div",{staticClass:"back",on:{click:e.goBack}},[t("img",{attrs:{src:r,alt:"back icon"}})]),t("b",[e._v(e._s(e.$t("me.profile.moveFile.title")))])]),t("div",{staticClass:"files"},[t("ul",e._l(e.folders,(function(i){return t("li",{staticClass:"file-item",on:{click:function(t){return e.moveFile(i)}}},[i.images&&i.images.length?t("img",{attrs:{src:i.images[0]}}):t("div",{staticClass:"default-images"}),t("b",[e._v(e._s(i.name))])])})),0)]),t("div",{staticClass:"button"},[t("router-link",{attrs:{to:{path:"/me/createDoc",query:{type:e.type}}}},[t("div",{staticClass:"icon-plus"},[t("i",{staticClass:"el-icon-plus"})]),t("b",[e._v(e._s(e.$t("me.profile.createDocTitle")))])])],1)])}),[],!1,null,"387fbfcc",null,null).exports)}}}))}();
