(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c718263e"],{"0782":function(t,e,i){},1635:function(t,e,i){"use strict";var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"mockups"},[i("my-img",{staticClass:"mockups-left",attrs:{src:t.value,alt:"product image"}}),i("div",{staticClass:"mockups-right"},[i("div",{staticClass:"mockups-title"},[t._v("Select title image view")]),i("div",{staticClass:"mockups-list"},t._l(t.images,(function(e,s){return i("div",{key:s,staticClass:"mockups-item"},[i("div",{class:["mockups-item-img-box","div-hover",{"div-select tag":e.url===t.value}],on:{click:function(i){return t.onSelectImg(e.url)}}},[i("my-img",{staticClass:"mockups-item-img",attrs:{src:e.url}})],1)])})),0)])],1)},o=[],a={name:"Mockups",props:{images:{type:Array,default:()=>[]},value:{type:String,default:null}},data(){return{currentIndex:0}},watch:{currentIndex(t){this.$emit("change",this.images[t].url)}},methods:{onSelectImg(t){this.$emit("input",t)}}},n=a,r=(i("4d60"),i("2877")),l=Object(r["a"])(n,s,o,!1,null,"8c70ad8e",null);e["a"]=l.exports},1802:function(t,e,i){},"43da":function(t,e,i){"use strict";i("55db")},"48c2":function(t,e,i){"use strict";var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"variants-box"},[i("div",{staticClass:"variants-title"},[t._v("Pricing")]),i("div",{staticClass:"variants-button-box"},[i("el-button",{attrs:{disabled:!t.skuIds.length},on:{click:function(e){return t.showEdit("retailPrice")}}},[t._v("Edit price")]),i("el-button",{attrs:{disabled:!t.skuIds.length},on:{click:function(e){return t.showEdit("profit")}}},[t._v("Edit profit")]),i("el-button",{attrs:{disabled:!t.skuIds.length},on:{click:function(e){return t.showEdit("compareAtPrice")}}},[t._v("Edit compare at price")]),i("el-button",{attrs:{disabled:!t.skuIds.length},on:{click:function(e){return t.showEdit("profitMargin")}}},[t._v("Edit profit margin")])],1),i("el-form-item",{attrs:{prop:"variantList"}},[i("el-table",{staticClass:"variants-table",attrs:{data:t.variantList,"row-style":t.tableRowStyle},on:{"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),t._l(t.variantList[0].skuList,(function(e,s){return[i("el-table-column",{key:s,attrs:{label:e.label},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.skuList&&e.row.skuList.length?i("div",[t._v(t._s(e.row.skuList[s].value))]):t._e()]}}],null,!0)})]})),i("el-table-column",{attrs:{prop:"costs",label:"Cost"}}),i("el-table-column",{attrs:{prop:"retailPrice",label:"Retail Price"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"input-box"},[i("div",{staticClass:"input-tag"},[t._v("USD")]),i("el-input-number",{staticClass:"input-content",staticStyle:{width:"100%"},attrs:{precision:2,controls:!1},on:{input:function(i){return t.retailPriceComputed(e.row)}},model:{value:e.row.retailPrice,callback:function(i){t.$set(e.row,"retailPrice",i)},expression:"scope.row.retailPrice"}})],1)]}}])}),i("el-table-column",{attrs:{prop:"profit",label:"Profit"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"input-box"},[i("div",{staticClass:"input-tag"},[t._v("USD")]),i("el-input-number",{staticClass:"input-content",staticStyle:{width:"100%"},attrs:{precision:2,controls:!1},on:{input:function(i){return t.profitComputed(e.row)}},model:{value:e.row.profit,callback:function(i){t.$set(e.row,"profit",i)},expression:"scope.row.profit"}})],1)]}}])}),i("el-table-column",{attrs:{prop:"compareAtPrice",label:"Compare at price"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"input-box"},[i("div",{staticClass:"input-tag"},[t._v("USD")]),i("el-input-number",{staticClass:"input-content",staticStyle:{width:"100%"},attrs:{precision:2,min:e.row.retailPrice,controls:!1},model:{value:e.row.compareAtPrice,callback:function(i){t.$set(e.row,"compareAtPrice",i)},expression:"scope.row.compareAtPrice"}})],1)]}}])}),i("el-table-column",{attrs:{prop:"profitMargin",label:"Profit margin"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"input-box"},[i("el-input-number",{staticClass:"input-content",staticStyle:{width:"100%"},attrs:{precision:2,max:9999,min:-9999,controls:!1},on:{input:function(i){return t.profitMarginComputed(e.row)}},model:{value:e.row.profitMargin,callback:function(i){t.$set(e.row,"profitMargin",i)},expression:"scope.row.profitMargin"}}),i("div",{staticClass:"input-tag"},[t._v("%")])],1)]}}])})],2)],1),i("el-dialog",{attrs:{visible:t.dialogVisible,"close-on-click-modal":!1,"append-to-body":"",width:"30%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("div",{staticClass:"dialog-title",attrs:{slot:"title"},slot:"title"},[t._v("edit")]),i("el-form",{ref:"editForm",attrs:{model:t.editForm,rules:t.editRules,"label-width":"100px","label-position":"top"},nativeOn:{submit:function(e){return e.preventDefault(),t.editPrice("editForm")}}},["profitMargin"===t.currentKey?i("div",{staticClass:"input-box"},[i("el-form-item",{attrs:{prop:"num"}},[i("el-input-number",{staticClass:"input-content",staticStyle:{width:"100%"},attrs:{precision:2,max:9999,min:-9999,controls:!1},model:{value:t.editForm.num,callback:function(e){t.$set(t.editForm,"num",e)},expression:"editForm.num"}})],1),i("div",{staticClass:"input-tag"},[t._v("%")])],1):i("div",{staticClass:"input-box"},[i("div",{staticClass:"input-tag"},[t._v("USD")]),i("el-form-item",{attrs:{prop:"num"}},[i("el-input-number",{staticClass:"input-content",staticStyle:{width:"100%"},attrs:{precision:2,max:9999,min:-9999,controls:!1},model:{value:t.editForm.num,callback:function(e){t.$set(t.editForm,"num",e)},expression:"editForm.num"}})],1)],1)]),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.close}},[t._v("close")]),i("el-button",{attrs:{loading:t.editLoading,type:"primary"},on:{click:function(e){return t.editPrice("editForm")}}},[t._v("Edit")])],1)],1)],1)},o=[],a={name:"Variants",props:{variantList:{type:Array,default:()=>[]},customProductInfo:{type:Object,default:()=>({})}},data(){return{skuIds:[],dialogVisible:!1,currentKey:"",editLoading:!1,editForm:{num:0},editRules:{num:[{required:!0,message:"The Num field is required",trigger:"blur"}]}}},computed:{skuType(){return(t,e)=>this.customProductInfo.option1Name===t?e.option1Value:this.customProductInfo.option2Name===t?e.option2Value:this.customProductInfo.option3Name===t?e.option3Value:""},skuList(){return t=>{const e=[];return t.option1Value&&e.push({label:this.customProductInfo.option1Name,value:t.option1Value}),t.option2Value&&e.push({label:this.customProductInfo.option2Name,value:t.option2Value}),t.option3Value&&e.push({label:this.customProductInfo.option3Name,value:t.option3Value}),e}},profitComputed(){return t=>(t.retailPrice=Number(t.profit)+Number(t.costs),t.profitMargin=Number(t.profit)/Number(t.costs)*100,t.profit)},retailPriceComputed(){return t=>(t.profit=Number(t.retailPrice)-Number(t.costs),t.profitMargin=Number(t.profit)/Number(t.costs)*100,t.retailPrice)},profitMarginComputed(){return t=>(t.profit=Number(t.profitMargin)/100*Number(t.costs),t.retailPrice=Number(t.profit)+Number(t.costs),t.profitMargin)},haveDropshipped(){return this.customProductInfo&&this.customProductInfo.id}},watch:{variantList:{handler(t){t.forEach(t=>(t.skuList=this.skuList(t),t)),this.changeForm()},deep:!0,immediate:!1},skuIds:{handler(){this.changeForm()},deep:!0}},methods:{handleSelectionChange(t){this.skuIds=t.map(t=>t.skuId)},tableRowStyle({row:t,rowIndex:e}){return t.checked?{}:{background:"#faf9f9 !important",color:"gray","text-decoration":"line-through","font-weight":"lighter"}},close(){this.editLoading=!1,this.dialogVisible=!1,this.editForm.num=0},showEdit(t){this.dialogVisible=!0,this.currentKey=t},editPrice(t){this.$refs[t].validate(async t=>{t&&(this.editLoading=!0,this.variantList.forEach(t=>{this.skuIds.forEach(e=>{t.skuId===e&&(t[this.currentKey]=this.editForm.num)})}),this.close())})},changeForm(){const t=this.variantList.map(t=>{const e={skuId:t.skuId,retailPrice:t.retailPrice,compareAtPrice:t.compareAtPrice,costs:t.costs,checked:t.checked};return e});this.$emit("change",t)}}},n=a,r=(i("43da"),i("2877")),l=Object(r["a"])(n,s,o,!1,null,"fc5babf6",null);e["a"]=l.exports},"4d60":function(t,e,i){"use strict";i("e782")},"522c":function(t,e){t.exports="data:image/webp;base64,UklGRswBAABXRUJQVlA4WAoAAAAQAAAAGwAAJwAAQUxQSH4BAAABkGzbtmk7M9YzY9u2bdu2bZvllFm0bVsPsW3n3vtGcM65K38QERMgSfEzzr/23V/XQJIarLvve31+Rrych7zHeXvWrLtxfj/EYQVsb5szouSC99y+zfsFJSNytt0OKyT14HNXOeY8DsdzyrHrZ3oo4j095Rpx+XqMXDvyOmIMm2W8mTH7aWnVlP2PCbHKyGOQOXz/H59vE2MVw+3tNLVqyPY5LLBawIyKXLe6TkUl0MCmAQnSGA7bHGaElPE+XSy6cD+jpLa8zhtc3te01b/rOB8STMh51skx5DLHQ7yFHOdyiJOy3ud0Vi9ZT3M7q9zzJvC4hluNxyTkldesx/GtifgnYo2Pw1nlPe0SH6+nREdMeI5vSVoFXfE4jscrynQt+Ha3lHEC22VeEFraVYWSdiGfOV3GTEOA4wOijdT1OeDbVMRGGbvu9sHnBjaSYia85raZatzmsVWDzeBra5JjSgJwu66CT9tjP0BC37QyHAN839RQtk2/7+8boiABVlA4ICgAAADwAgCdASocACgAPm02l0ikIyIhJWgAgA2JaQAAKUNt8AD++5zAAAAA"},"55db":function(t,e,i){},"5dc2":function(t,e,i){},"686c":function(t,e,i){"use strict";i("1802")},7095:function(t,e,i){},"937d":function(t,e,i){"use strict";i("7095")},a3c1:function(t,e){t.exports="data:image/webp;base64,UklGRl4FAABXRUJQVlA4WAoAAAAQAAAAdwAAdwAAQUxQSKwDAAABoC0AjNo4UqDOOoylpdibOOu6Y8ejP2iPmZmZmZmZ6ZvwC5iZma80ydqS5p4jAoIbSYqkiM7l7d49aPwB0Fusdrd5QRipROtERWHgbetWiyDchYGvMKPKHyxIpdjzE8xp7PeK8mgOUyQxHTZl/VoXYyRULS5IwR1qJFYPRdyojzQyqNdq3FTWkM21Cuu/zmKKjKaLRTa6CplVHR42BSjAoMzRUSQowrhJzq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H59If66rP2Idi7gpRUMf7IXm70puwGh3Bb87yqXpzjUZ/0AwbZsf2sB0VarmIYI7aRSffLGc8m4LWYlBr+pad+Zuer/zwf0x6RexSohW6Y8Cm8e36TZtZqncfIY/ZH5t5yaiUWjL22DYAEn/03ubv+MPcyl1ZsKLdKDvh483v7xmojD4ugAAAAA="},afad:function(t,e,i){"use strict";var s=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"upgrade-box"},[t.showPackage&&t.levelFittings&&t.levelFittings.length?s("div",{staticClass:"fittings-box"},[s("div",{staticClass:"fittings-box-title"},[t._v("Package")]),s("el-radio-group",{staticClass:"upgrade-list",attrs:{value:t.fittingsId},on:{input:t.onBlankFittingsChange}},t._l(t.levelFittings,(function(e){return s("div",{key:e.id,staticClass:"upgrade-item"},[s("HoverImg",{staticClass:"upgrade-item-img div-hover",attrs:{"main-img":e.showImageUrls?e.showImageUrls[0]:"","hover-img":e.suspendImageUrl},on:{click:function(i){return i.preventDefault(),t.showStoreDetailsDialogFn(e.showImageUrls,e.level)}}}),s("el-radio",{staticClass:"upgrade-item-detail",attrs:{label:e.id}},[t._v(" "+t._s(e.name)+" "),e.salePrice?s("span",[t._v(" ("+t._s("+"+e.salePrice+"$")+") ")]):t._e(),s("span",{staticStyle:{"text-decoration":"line-through"}},[t._v(t._s(e.originalPrice?e.originalPrice+"$":""))]),2!==t.currentShop.shopType&&2===e.level&&e.customizeInfos&&e.customizeInfos.length?s("div",{staticClass:"fittings-logo-tip"},[t.fittingsLogoUrl&&t.fittingsLevel>=2?s("div",{on:{click:function(i){return i.preventDefault(),t.showFittingsImgWithLogo(e)}}},[s("span",[t._v("The logo has been uploaded")]),s("p",[t._v(" the jewelry will be packed and shipped"),s("br"),t._v(" in a jewelry box with your logo ")])]):t.fittingsLogoUrl&&1===t.fittingsLevel?s("span",{staticStyle:{"text-decoration":"underline",color:"red"},on:{click:function(e){return e.preventDefault(),t.toPaySubscribe.apply(null,arguments)}}},[t._v(" Subscription has passed ")]):s("span",{on:{click:t.toSetLogo}},[t._v(" Support printing logo ")])]):t._e()])],1)})),0)],1):t._e(),t.showBlankGreetingCard&&t.greetingCards&&t.greetingCards.length?s("div",{staticClass:"fittings-box"},[s("div",{staticClass:"fittings-box-title"},[t._v("Greeting Card")]),s("el-radio-group",{staticClass:"upgrade-list",attrs:{value:t.blankGreetingCardId},on:{input:t.onBlankGreetingCardChange}},[s("div",{staticClass:"upgrade-item"},[s("div",{staticClass:"upgrade-item-img"}),s("el-radio",{staticClass:"upgrade-item-detail",attrs:{label:null}},[t._v(" No required ")])],1),t._l(t.greetingCards,(function(e){return s("div",{key:e.id,staticClass:"upgrade-item"},[s("HoverImg",{staticClass:"upgrade-item-img div-hover",attrs:{"main-img":e.showImageUrls?e.showImageUrls[0]:"","hover-img":e.knifeImageUrl},on:{click:function(i){return i.preventDefault(),t.showStoreDetailsDialogFn(e.showImageUrls,2)}}}),s("el-radio",{staticClass:"upgrade-item-detail",attrs:{label:e.id}},[t._v(" "+t._s(e.name)+" "),e.salePrice?s("span",[t._v(" ("+t._s("+"+e.salePrice+"$")+") ")]):t._e(),s("span",{staticStyle:{"text-decoration":"line-through"}},[t._v(t._s(e.originalPrice?e.originalPrice+"$":""))])])],1)}))],2)],1):t._e(),1===t.fittingsLevel?s("div",{staticClass:"upgrade-info"},[s("div",{staticClass:"upgrade-tip-top"},[s("div",{staticStyle:{"align-items":"baseline"}},[s("img",{staticClass:"upgrade-tip-icon",attrs:{src:i("522c"),alt:"tip"}})]),s("div",{staticClass:"upgrade-tip-text"},[t._v("The artshiney provides you with a free jewelry box,and you can also subscribe to the upgrade service to get more advanced jewelry packaging at a lower price than the market so that you can better serve your customers")])]),s("el-button",{staticClass:"upgrade-tip-button",on:{click:function(e){return t.callNewPage("/Subscription")}}},[t._v("Check")])],1):t._e(),t.showStoreInfo?s("div",{staticClass:"store-info"},[s("div",{staticClass:"store-title"},[t._v("Shopify collections")]),s("div",{staticClass:"store-sub-title"},[t._v("Select one or multiple collections to publish your product")]),s("el-select",{staticClass:"customCollection-list",attrs:{value:t.collectionId,placeholder:"",clearable:""},on:{change:t.onCollectionIdChange}},t._l(t.customCollectionList,(function(t){return s("el-option",{key:t.id,attrs:{label:t.title,value:t.id}})})),1),s("div",{staticClass:"store-title"},[t._v("Product visibility in store")]),s("el-checkbox",{staticClass:"hidden-in-store",attrs:{value:t.hiddenInStore},on:{change:t.onHiddenInStoreChange}},[t._v("Hide in store")])],1):t._e(),s("StoreDetailsDialog",{attrs:{"fittings-level":t.storeDetailsDialog.fittingsLevel,"image-urls":t.storeDetailsDialog.imageUrls},model:{value:t.storeDetailsDialog.show,callback:function(e){t.$set(t.storeDetailsDialog,"show",e)},expression:"storeDetailsDialog.show"}}),s("fittings-img-dialog",{attrs:{show:t.fittingsImgDialog.show,"logo-url":t.fittingsImgDialog.logoUrl,fittings:t.fittingsImgDialog.fittings},on:{"update:show":function(e){return t.$set(t.fittingsImgDialog,"show",e)}}}),s("subscription-action",{ref:"SubscriptionAction"})],1)},o=[],a=i("2f69"),n=i("2f62"),r=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-dialog",{attrs:{visible:t.dialogVisible,"append-to-body":"",top:"5vh",width:"810px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[t.fittingsLevel>=2&&1===t.currentFittingsLevel?s("div",{staticClass:"upgrade-tip-top-box"},[s("div",{staticClass:"upgrade-tip-top"},[s("div",{staticStyle:{"align-items":"baseline"}},[s("img",{staticClass:"upgrade-tip-icon",attrs:{src:i("522c"),alt:"tip"}})]),s("div",{staticClass:"upgrade-tip-text"},[t._v("This jewelry box needs to subscribe to the premium service, you can get more advanced jewelry packaging at a lower price than the market, so as to better serve your customers, which will be more beneficial to promote your brand")])])]):t._e(),s("div",{staticClass:"upgrade-img-box"},[s("img",{staticClass:"upgrade-img-icon div-hover last",attrs:{src:i("a3c1")},on:{click:function(e){return t.moveFn("last")}}}),s("my-img",{staticClass:"upgrade-img",attrs:{src:t.showImg}}),s("img",{staticClass:"upgrade-img-icon div-hover next",attrs:{src:i("a8ad")},on:{click:function(e){return t.moveFn("next")}}})],1),t.fittingsLevel>=2&&1===t.currentFittingsLevel?s("div",{staticClass:"upgrade-btns"},[s("el-button",{on:{click:t.toSubcriptionDetail}},[t._v("Details")]),s("el-button",{attrs:{type:"primary"},on:{click:t.toSubcription}},[t._v("Subscription")])],1):t._e(),s("subscription-action",{ref:"SubscriptionAction"})],1)},l=[],c=i("7f5a"),u={name:"StoreDetailsDialog",components:{SubscriptionAction:c["a"]},props:{value:{type:Boolean,default:!1},imageUrls:{type:Array,default:()=>[]},fittingsLevel:{type:Number,default:null}},data(){return{dialogVisible:!1,imgIndex:0}},computed:{showImg(){var t;return(null===(t=this.imageUrls)||void 0===t?void 0:t[this.imgIndex])||""},...Object(n["b"])("user",{currentFittingsLevel:"getFittingsLevel"})},watch:{value(t){this.dialogVisible=t},dialogVisible(t){this.$emit("input",t)}},methods:{moveFn(t){"next"===t?this.imgIndex[]},greetingCards:{type:Array,default:()=>[]},fittingsId:{type:Number,default:null},blankGreetingCardId:{type:Number,default:null},blankFittingsLevel:{type:Number,default:null},hiddenInStore:{type:Boolean,default:!1},collectionId:{type:String,default:""},showStoreInfo:{type:Boolean,default:!0},showBlankGreetingCard:{type:Boolean,default:!0},showPackage:{type:Boolean,default:!0}},data(){return{customCollectionList:[],fittingsImgDialog:{show:!1,logoUrl:null,fittings:null},showStoreDetailsDialog:!1,storeDetailsDialog:{show:!1,imageUrls:[],fittingsLevel:null}}},computed:{...Object(n["b"])("user",{currentShop:"getCurrentShop",fittingsLevel:"getFittingsLevel",fittingsLogoUrl:"getFittingsLogoUrl"})},created(){this.getCustomCollectionList()},methods:{async getCustomCollectionList(){const t=await Object(a["b"])();this.customCollectionList=t.data.items},showStoreDetailsDialogFn(t,e){this.storeDetailsDialog.imageUrls=t,this.storeDetailsDialog.fittingsLevel=e,this.storeDetailsDialog.show=!0},showFittingsImgWithLogo(t){this.fittingsImgDialog.logoUrl=this.fittingsLogoUrl,this.fittingsImgDialog.fittings=t,this.fittingsImgDialog.show=!0},async toSetLogo(){this.callNewPage("/SetShopLogo")},toPaySubscribe(){this.$refs.SubscriptionAction.SelectSubscription(2)},onBlankFittingsChange(t){if(this.$emit("update:fittingsId",t),t){var e=this.levelFittings.filter(e=>e.id===t)[0],i=e.level;if(i>this.fittingsLevel)return this.showStoreDetailsDialogFn(e.showImageUrls,e.level),this.$emit("update:blankFittingsLevel",this.levelFittings[0].level),void this.$emit("update:fittingsId",this.levelFittings[0].id);this.$emit("update:blankFittingsLevel",i)}else this.$emit("update:blankFittingsLevel",null)},onBlankGreetingCardChange(t){if(t)if(1===this.fittingsLevel){const e=this.greetingCards.filter(e=>e.id===t)[0];this.showStoreDetailsDialogFn(e.showImageUrls,2),this.$emit("update:blankGreetingCardId",null)}else this.$emit("update:blankGreetingCardId",t);else this.$emit("update:blankGreetingCardId",null)},onCollectionIdChange(t){this.$emit("update:collectionId",t)},onHiddenInStoreChange(t){this.$emit("update:hiddenInStore",t)}}},b=f,I=(i("e7ff"),Object(p["a"])(b,s,o,!1,null,"3b109135",null));e["a"]=I.exports},b492:function(t,e,i){"use strict";var s=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"img-container",on:{mouseenter:function(e){t.isHover=!0},mouseleave:function(e){t.isHover=!1}}},[s("Transition",[s("my-img",t._b({directives:[{name:"show",rawName:"v-show",value:t.isHover&&t.hoverImg,expression:"isHover && hoverImg"}],staticClass:"i-img",attrs:{src:t.hoverImg,"image-style":{height:"100%"},onerror:"this.src='"+i("e803")+"'"}},"my-img",t.$attrs,!1))],1),s("Transition",[s("my-img",t._b({directives:[{name:"show",rawName:"v-show",value:!(t.isHover&&t.hoverImg),expression:"!(isHover && hoverImg)"}],staticClass:"i-img",attrs:{src:t.mainImg,"image-style":{height:"100%"},onerror:"this.src='"+i("e803")+"'"}},"my-img",t.$attrs,!1))],1)],1)},o=[],a={name:"HoverImg",props:{mainImg:{type:String,default:null},hoverImg:{type:String,default:null}},data(){return{isHover:!1}},computed:{imgSrc(){return this.hoverImg&&this.isHover?this.hoverImg:this.mainImg}}},n=a,r=(i("686c"),i("2877")),l=Object(r["a"])(n,s,o,!1,null,"850380da",null);e["a"]=l.exports},b5a3:function(t,e,i){"use strict";i("0782")},cd9e:function(t,e,i){"use strict";var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"description-box"},[i("div",{staticClass:"description-title"},[t._v("Product description")]),i("el-form-item",{staticStyle:{"margin-top":"24px"},attrs:{label:"title",prop:"title"}},[i("el-input",{model:{value:t.customProductInfo.title,callback:function(e){t.$set(t.customProductInfo,"title",e)},expression:"customProductInfo.title"}})],1),i("el-form-item",{attrs:{label:"description",prop:"description"}},[t.currentShop.shopType===t.enums.shopTypeEnum.ETSY.value?i("el-input",{attrs:{autosize:{minRows:2,maxRows:8},type:"textarea"},model:{value:t.customProductInfo.description,callback:function(e){t.$set(t.customProductInfo,"description",e)},expression:"customProductInfo.description"}}):i("Wangeditor",{model:{value:t.customProductInfo.description,callback:function(e){t.$set(t.customProductInfo,"description",e)},expression:"customProductInfo.description"}})],1),i("div",{staticClass:"description-title"},[t._v("Tags")]),i("el-input",{staticClass:"tag-input",attrs:{placeholder:"Add tag"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.addTag.apply(null,arguments)}},model:{value:t.tempDescriptionForm.tag,callback:function(e){t.$set(t.tempDescriptionForm,"tag",e)},expression:"tempDescriptionForm.tag"}}),i("div",{staticClass:"tag-box"},t._l(t.customProductInfo.tags,(function(e,s){return i("div",{key:s,staticClass:"tag-item"},[i("div",[t._v(t._s(e))]),i("i",{staticClass:"el-icon-close del-tag div-hover",on:{click:function(e){return t.delTag(s)}}})])})),0)],1)},o=[],a=i("448e"),n=i("e661"),r=i("2f62"),l={name:"Description",components:{Wangeditor:a["a"]},props:{customProductInfo:{type:Object,default:()=>({})}},data(){return{tempDescriptionForm:{tag:""},enums:{shopTypeEnum:n["a"]}}},computed:{...Object(r["b"])("user",{currentShop:"getCurrentShop"})},watch:{customProductInfo:{handler(t){this.$emit("change",t)},deep:!0}},methods:{addTag(){const t=this.tempDescriptionForm.tag;this.customProductInfo.tags.push(t),this.tempDescriptionForm.tag=""},delTag(t){this.customProductInfo.tags.splice(t,1)}}},c=l,u=(i("937d"),i("2877")),d=Object(u["a"])(c,s,o,!1,null,"07410067",null);e["a"]=d.exports},e782:function(t,e,i){},e7ff:function(t,e,i){"use strict";i("5dc2")}}]);