!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function i(t){for(var i=1;it.length)&&(e=t.length);for(var i=0,a=new Array(e);i=0;e--)t[e]||(t[e]={type:"empty"});return t},rebuildContainers:function(t){var e=v[this.id];e=e[this.containerId];var n=t.map((function(t){var n=e[t.id];return i(i({},t),{},{type:n,image:new URL(Object.assign({"../../../../assets/images/base/filter/containers/cover/flip.png":a,"../../../../assets/images/base/filter/containers/cover/one.png":s,"../../../../assets/images/base/filter/containers/cover/three.png":r,"../../../../assets/images/base/filter/containers/cover/two.png":o})["../../../../assets/images/base/filter/containers/cover/".concat(n,".png")],self.location).href})}));return this.fillEmpty(n)},rebuildShapes:function(t){var e=v[parseInt(this.id)];e=e[this.shapeId];var a=t.map((function(t){var a=e[t.id];return i(i({},t),{},{type:a,image:new URL(Object.assign({"../../../../assets/images/base/filter/shapes/cover/oval.png":c,"../../../../assets/images/base/filter/shapes/cover/polygon.png":l,"../../../../assets/images/base/filter/shapes/cover/quadrangle.png":d,"../../../../assets/images/base/filter/shapes/cover/rectangle.png":p,"../../../../assets/images/base/filter/shapes/cover/round.png":u})["../../../../assets/images/base/filter/shapes/cover/".concat(a,".png")],self.location).href})}));return this.fillEmpty(a)},getContainers:function(t){var e=this,i=t.id,a=this.$t("common.failure");this.$axios.get("/api/upload_type_list",{params:{pid:i}}).then((function(t){var i=t.data,n=i.code,s=i.msg,r=void 0===s?a:s,o=i.data,c=void 0===o?[]:o;0==n?e.containers=e.rebuildContainers(c):e.$message.error(r||a)}))},getShapes:function(t){var e=this,i=t.id,a=this.$t("common.failure");this.$axios.get("/api/upload_type_list",{params:{pid:i}}).then((function(t){var i=t.data,n=i.code,s=i.msg,r=void 0===s?a:s,o=i.data,c=void 0===o?[]:o;0==n?e.shapes=e.rebuildShapes(c):e.$message.error(r||a)}))}},computed:{id:function(){return g[y.mode].cover},containerAll:function(){return this.containerIds.length===this.containers.filter((function(t){return"empty"!==t.type})).length},shapeAll:function(){return this.shapeIds.length===this.shapes.filter((function(t){return"empty"!==t.type})).length},containerId:function(){return b[this.id]},shapeId:function(){return x[this.id]},disabled:function(){return!(this.containerIds.length&&this.shapeIds.length)},nameKey:function(){return this.$store.state.nameKey}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"base-filter-cover"},[e("div",{staticClass:"filter-content"},[e("Header",{attrs:{type:"cover"}}),e("div",{staticClass:"filter-container"},[e("div",{staticClass:"row"},[e("div",{class:["column-item",t.containerAll?"selected":""],on:{click:t.toggleContainers}},[t._m(0),e("div",{staticClass:"content"},[e("div",{staticClass:"top"},[e("b",[t._v(t._s(t.$t("common.filter.all")))])]),e("div",{staticClass:"bottom"},[t._v(" "+t._s(t.$t("common.filter.container"))+" ")])])]),t._l(t.containers,(function(i){return e("div",{key:i.id,class:["column-item",i.type,"other"===i.type?"vh-center":"","empty"===i.type?"filter":"",t.containerIds.includes(i.id)?"selected":""],on:{click:function(e){return t.changeContainer(i)}}},["empty"===i.type?void 0:[t._m(1,!0),e("div",{staticClass:"content"},[e("div",{staticClass:"top"},["other"===i.type?e("span",[t._v(t._s(i[t.nameKey]))]):e("img",{attrs:{src:i.image,alt:"plastic"}})]),"other"===i.type?e("div",{staticClass:"bottom"}):e("div",{staticClass:"bottom"},[t._v(" "+t._s(i[t.nameKey])+" ")])])]],2)}))],2),e("div",{staticClass:"row"},[e("div",{class:["column-item",t.shapeAll?"selected":""],on:{click:t.toggleShapes}},[t._m(2),e("div",{staticClass:"content"},[e("div",{staticClass:"top"},[e("b",[t._v(t._s(t.$t("common.filter.all")))])]),e("div",{staticClass:"bottom"},[t._v(" "+t._s(t.$t("common.filter.shape"))+" ")])])]),t._l(t.shapes,(function(i){return e("div",{key:i.id,class:["column-item",i.type,"other"===i.type?"vh-center":"","empty"===i.type?"filter":"",t.shapeIds.includes(i.id)?"selected":""],on:{click:function(e){return t.changeShape(i)}}},["empty"===i.type?void 0:[t._m(3,!0),e("div",{staticClass:"content"},[e("div",{staticClass:"top"},["other"===i.type?e("span",[t._v(t._s(i[t.nameKey]))]):e("img",{attrs:{src:i.image,alt:"plastic"}})]),"other"===i.type?e("div",{staticClass:"bottom"}):e("div",{staticClass:"bottom"},[t._v(" "+t._s(i[t.nameKey])+" ")])])]],2)}))],2)]),e("div",{staticClass:"upload-makeup-footer"},[e("div",{staticClass:"footer-count"},[e("ul",[e("li",[t._v(" "+t._s(t.$t("header.navs.nav1"))+" "+t._s(t.level1Count)+" ")]),t._v("    >    "),e("li",[t._v(" "+t._s(t.$t("base.nav.cover"))+" "+t._s(t.level2Count)+" ")])])]),e("el-button",{attrs:{type:"primary",disabled:t.disabled,round:""},on:{click:t.toBase}},[t._v(t._s(t.$t("common.resume")))])],1)],1)])}),[function(){var t=this._self._c;return t("div",{staticClass:"selection"},[t("i",{staticClass:"el-icon-success"})])},function(){var t=this._self._c;return t("div",{staticClass:"selection"},[t("i",{staticClass:"el-icon-success"})])},function(){var t=this._self._c;return t("div",{staticClass:"selection"},[t("i",{staticClass:"el-icon-success"})])},function(){var t=this._self._c;return t("div",{staticClass:"selection"},[t("i",{staticClass:"el-icon-success"})])}],!1,null,"ea7e092d",null,null).exports)}}}))}();