1"use strict";(self["webpackChunkvue_front_shop"]=self["webpackChunkvue_front_shop"]||[]).push([[86239],{74410:function(t,e,i){i.r(e),i.d(e,{default:function(){return u}});var o=function(){var t=this,e=t._self._c;return t.filterShowPage&&t.showIcon?e("div",[e("div",{staticClass:"common-fave-caption-fixed",class:{"hidden-caption":t.drawer,"is-prodviewed":t.isShowProdviewed}},[e("div",{staticClass:"common-fave-caption",style:t.sideStyleColor,on:{click:t.clickShowDrawer}},[t._m(0),e("div",{staticClass:"text"},[t._v(t._s(t.$L("base_wishlist")))])])]),e("el-drawer",{staticClass:"common-fave-caption-drawer",attrs:{direction:"ltr","append-to-body":!0,visible:t.drawer,size:"320px","with-header":!1},on:{"update:visible":function(e){t.drawer=e},closed:t.hiddenDrawer}},[e("div",{staticClass:"fave-side-bar-content",style:t.sideDrawerStyleColor,on:{click:t.barContentClick}},[e("div",{staticClass:"fave-side-bar-header"},[e("i",{staticClass:"el-icon-close",on:{click:t.clickShowDrawer}}),e("div",{staticClass:"wishlist-number"},[e("div",{staticClass:"icon-box"},[e("i",{staticClass:"iconfont icon-shoucangxin"})]),e("div",{staticClass:"uppercase"},[t._v(t._s(t.$L("base_wishlist"))+" "),e("span",{staticClass:"number"},[t._v(t._s(t.favoriteCount||"0"))])])]),e("div",{staticClass:"wishlist-share"},[e("div",{staticClass:"share-title"},[t._v(" "+t._s(t.$L("base_share"))+"ï¼ ")]),e("ul",{staticClass:"wishlist-share-list"},t._l(t.shareList,(function(i,o){return e("li",{key:o,staticClass:"wishlist-share-item",style:{"--share-item-color":i.hoverColor},on:{click:function(e){return t.clickShareItem(i)}}},[e("i",{class:i.icon})])})),0),e("div",{staticClass:"wishlist-link uppercase",on:{click:t.clickToPage}},[t._v(" "+t._s(t.$L("go_to_wishlist"))+" ")])])]),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.getLoading,expression:"getLoading"}],staticClass:"fave-side-bar-body"},[e("div",{staticClass:"add-new-button-box"},[t.isAddNewInputStatus?e("div",{staticClass:"add-new-input"},[e("el-input",{attrs:{placeholder:t.$L("favorites_name")},model:{value:t.addNewInputText,callback:function(e){t.addNewInputText=e},expression:"addNewInputText"}}),e("div",{staticClass:"add-new-input-button"},[e("div",{staticClass:"cancel",on:{click:t.cancelAddInput}},[t._v(t._s(t.$L("base_cancel")))]),e("div",{staticClass:"confirm",on:{click:t.confirmAddInput}},[t._v(t._s(t.$L("base_confirm")))])])],1):e("div",{staticClass:"add-new-button",on:{click:t.clickAddButton}},[e("i",{staticClass:"el-icon-plus"}),t._v(" "+t._s(t.$L("add_new_list"))+" ")])]),t._l(t.favoriteList,(function(i,o){return[e("div",{key:o,staticClass:"fave-side-list"},[e("div",{staticClass:"products-title-box"},[e("div",{staticClass:"left-icon",on:{click:function(e){return t.clickItemProducts(i)}}},[e("i",{staticClass:"el-icon-arrow-down",class:{up:t.downItemArr.includes(i.id)}})]),e("div",{staticClass:"center-name",on:{click:function(e){return t.clickItemProducts(i)}}},[t.editItemID==i.id?e("el-input",{ref:"centerEditName",refInFor:!0,on:{blur:t.inputBlur},model:{value:t.editItemName,callback:function(e){t.editItemName=e},expression:"editItemName"}}):e("span",[t._v(t._s(i.name)+" "),i.products.length?e("i",{staticClass:"number"},[t._v(" "+t._s(i.products.length))]):t._e()])],1),e("div",{staticClass:"right-icon",on:{click:function(e){return e.stopPropagation(),t.clickShowDropdown(o)}}},[e("i",{staticClass:"el-icon-more"}),o===t.showDropdownIndex&&1==t.showDropdownType?e("div",{ref:"right-icon-dropdown",refInFor:!0,staticClass:"right-icon-dropdown"},[e("div",{staticClass:"dropdown-item uppercase",on:{click:function(e){return e.stopPropagation(),t.clickEditName(i)}}},[t._v(" "+t._s(t.$L("edit_name"))+" ")]),e("div",{staticClass:"dropdown-item uppercase",on:{click:function(e){return e.stopPropagation(),t.clickShareFavorite(i)}}},[t._v(" "+t._s(t.$L("base_share"))+" ")]),e("div",{staticClass:"dropdown-item uppercase",on:{click:function(e){return e.stopPropagation(),t.deleteItemFavorite(i)}}},[t._v(" "+t._s(t.$L("base_delete"))+" ")])]):t._e(),o===t.showDropdownIndex&&3==t.showDropdownType?e("div",{ref:"right-icon-dropdown",refInFor:!0,staticClass:"right-icon-dropdown",staticStyle:{width:"auto"}},[e("ul",{staticClass:"dropdown-wishlist-share-list"},t._l(t.shareList,(function(o,s){return e("li",{key:s,staticClass:"wishlist-share-item",style:{"--share-item-color":o.hoverColor},on:{click:function(e){return t.clickShareItem(o,i)}}},[e("i",{class:o.icon})])})),0)]):t._e()])]),e("div",{staticClass:"fave-side-item",class:{hide:t.downItemArr.includes(i.id)}},[i.products.length?t.showDropdownIndex===o&&2==t.showDropdownType&&t.deleteItemID==i.id?e("div",{staticClass:"delete-content"},[e("div",{staticClass:"delete-title uppercase"},[t._v(t._s(t.$L("delete_this_list")))]),e("div",{staticClass:"delete-button-box"},[e("div",{staticClass:"cancel",on:{click:t.cancelDelete}},[t._v(t._s(t.$L("base_cancel")))]),e("div",{staticClass:"delete",on:{click:function(e){return e.stopPropagation(),t.clickDelete(i)}}},[t._v(t._s(t.$L("base_delete"))+" ")])])]):t._l(i.products,(function(i,s){return e("a",{key:s,staticClass:"product-item",style:{left:`${i.translatex||0}
1px`},attrs:{href:t.$baseUrl+`/products/${i.info.handle}`},on:{touchstart:function(e){return t.handleTouchStart(e,o,s)},touchmove:function(e){return t.handleTouchMove(e,o,s)},touchend:function(e){return t.handleTouchEnd(o,s)}}},[e("div",{staticClass:"top-info"},[e("div",{staticClass:"c-product",on:{click:function(e){return e.stopPropagation(),t.toProductInfo(i.info)}}},[e("div",{staticClass:"img-border"},[e("el-image",{staticClass:"common-img-hover pointer",staticStyle:{width:"50px",height:"50px"},attrs:{src:t.$media(i.info.image.src),alt:i.info.title,lazy:"",fit:"contain"}},[e("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"}),e("div",{staticClass:"image-placeholder",attrs:{slot:"placeholder"},slot:"placeholder"})])],1)]),e("div",{staticClass:"c-info"},[e("div",{staticClass:"c-item.info title pointer line-2"},[t._v(" "+t._s(i.info.title)+" ")]),i.info&&i.info.variant_title?e("div",{staticClass:"c-item variant"},[t._v(" "+t._s(i.info.variant_title)+" ")]):t._e(),e("div",{staticClass:"c-item"},[e("div",{staticClass:"mt-10 flex flex-align-center"},[e("div",{staticClass:"flex item-bottom-box"},[e("div",{staticClass:"c-item price"},[e("span",{domProps:{innerHTML:t._s(t.$currencyConversion(t.$money,t.$Price(i.info.price)))}})]),i.info&&i.info.compare_at_price&&i.info.compare_at_price>i.info.price?e("div",{staticClass:"price t-o-price ml-2-rem line-through"},[e("span",{domProps:{innerHTML:t._s(t.$currencyConversion(t.$money,t.$Price(i.info.compare_at_price)))}})]):t._e()])])])]),e("div",{staticClass:"remove-btn uppercase",on:{click:function(e){return t.removeItem(e,i.info,o)}}},[e("i",{staticClass:"el-icon-more"}),t.showSonDropdownID===i.product_id?e("div",{ref:"remove-btn-list",refInFor:!0,staticClass:"remove-btn-list",on:{mouseleave:t.leaveBox}},[1==t.showSonDropdownType?e("div",[e("div",{staticClass:"dropdown-item uppercase",on:{click:function(e){return e.stopPropagation(),t.clickMove(e,i)}}},[t._v(" "+t._s(t.$L("base_move"))+" ")]),e("div",{staticClass:"dropdown-item uppercase",on:{click:function(e){return e.stopPropagation(),t.deleteItemProduct(e,i)}}},[t._v(" "+t._s(t.$L("base_delete"))+" ")])]):t._e(),2==t.showSonDropdownType?e("div",t._l(t.favoriteList,(function(o,s){return e("div",{key:s,staticClass:"dropdown-item uppercase",class:{active:i.favorite_id===o.id},on:{click:function(e){return t.clickMoveItem(e,i,o)}}},[t._v(" "+t._s(o.name)+" "),e("i",{staticClass:"el-icon-check"})])})),0):t._e()]):t._e()])]),t.draggingIndex2===o+"-"+s?e("div",{staticClass:"wap-bottom-button-box",on:{click:function(e){return e.stopPropagation(),t.clickWapBottom(e)}}},[e("div",{staticClass:"wap-button move uppercase",on:{click:function(e){return e.stopPropagation(),t.clickMove2(e,i)}}},[t._v(" "+t._s(t.$L("base_move"))+" ")]),e("div",{staticClass:"wap-button delete uppercase",on:{click:function(e){return e.stopPropagation(),t.deleteItemProduct2(e,i)}}},[t._v(" "+t._s(t.$L("base_delete"))+" ")])]):t._e()])})):e("div",{staticClass:"uppercase"},[t._v(" "+t._s(t.$L("list_is_empty"))+" ")])],2)])]}))],2)])])],1):t._e()},s=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"icon-box"},[e("i",{staticClass:"iconfont icon-shoucangxin"})])}],a=i(48902),r=i(90408),n=i(85444),c=i(13306),d={name:"prodfavoriteSideFixed",data(){return{showIcon:!1,draggingIndex:null,draggingIndex2:null,startX:0,translateX:0,isDragging:!1,isAddNewInputStatus:!1,addNewInputText:"",showDropdownIndex:-1,showDropdownType:1,showSonDropdownID:-1,showSonDropdownType:1,deleteItemID:"",getLoading:!1,drawer:!1,favoriteCount:"",favoriteList:[],share_url:"",editItemID:"",editItemName:"",downItemArr:[],shareList:[{hoverColor:"#E1B9AE",icon:"el-icon-link",url:"",type:"copy-link",text:this.$L("copy_share_link")},{hoverColor:"#4C69A2",url:"https://www.facebook.com/sharer/sharer.php?u=",icon:"iconfont icon-facebook",text:this.$L("share_to_facebook"),type:"facebook"},{hoverColor:"#000000",url:"https://twitter.com/intent/tweet?url=",icon:"iconfont icon-c8ke-icon-x-twiter",text:this.$L("share_to_x"),type:"twiter"},{hoverColor:"#CB2027",url:"https://pinterest.com/pin/create/button/?url=",icon:"iconfont icon-pinterest",text:this.$L("share_to_pinterest"),type:"pinterest"},{hoverColor:"#F0A82B",icon:"iconfont icon-youjian",text:this.$L("share_to_email"),type:"email"},{hoverColor:"#54D368",type:"whatsapp",icon:"iconfont icon-whatsapp2",text:this.$L("share_to_whatsapp"),url:"https://api.whatsapp.com/se
1nd?text="}]}},created(){},mounted(){setTimeout((()=>{this.showIcon=!0}),1200)},computed:{isShowProdviewed(){var t;let e=(null===(t=window)||void 0===t?void 0:t.baseData)||this.$store.state.decorate.baseData||{};return!(!e.prodviewed||!e.prodviewed.hasOwnProperty("diy_config"))},...(0,r.rn)("shopInfo",{wishlistNumber:t=>t.wishlistNumber}),sideBarInfo(){var t,e,i;let o=(null===(t=window)||void 0===t?void 0:t.baseData)||this.$store.state.decorate.baseData||{},s=(null===o||void 0===o||null===(e=o.diy_config)||void 0===e||null===(i=e.global_config)||void 0===i?void 0:i.sideBar)||{};return s},filterShowPage(){let t=!1;if(this.$route.name){let e=this.$route.name;switch(e){case"product":case"home":case"collection-all":case"collection":case"review":case"review-all":case"blog_article":case"blog_collection":case"search":case"coupon":case"rebate":case"seckill":case"cart":case"page":t=!0;break}}return t},sideStyleColor(){var t,e,i,o;let s=(null===(t=window)||void 0===t?void 0:t.baseData)||this.$store.state.decorate.baseData||{},a="theme_b2c_grey"===s.default_theme.theme_identity,r=(null===(e=window)||void 0===e||null===(i=e.baseData)||void 0===i||null===(o=i.diy_config)||void 0===o?void 0:o.global_config)||c.Z.state.decorate.global_config||{},n=!1;return r.themeStyleName&&"dark"===r.themeStyleName&&(n=!0),n?{"--side_fave_bg_color":getComputedStyle(document.documentElement).getPropertyValue("--color_other_module_background"),"--side_fave_text_color":getComputedStyle(document.documentElement).getPropertyValue("--color_title")}:a?{"--side_fave_bg_color":"#363636","--side_fave_text_color":"#EBE9D2"}:{"--side_fave_bg_color":"#ffffff","--side_fave_text_color":"#000"}},sideDrawerStyleColor(){var t;let e=(null===(t=window)||void 0===t?void 0:t.baseData)||this.$store.state.decorate.baseData||{},i="theme_b2c_grey"===e.default_theme.theme_identity;return i?{"--side_drawer_bg_color":"#181818","--side_drawer_text_color":"#EBE9D2","--side_drawer_share_text_color":"#EBE9D2","--side_drawer_share_border_color":"#bdbdbd","--side_drawer_menu_bg_color":"#363636"}:{"--side_drawer_bg_color":"#ffffff","--side_drawer_text_color":"#000","--side_drawer_share_text_color":"#888888","--side_drawer_share_border_color":"#ebeef0","--side_drawer_menu_bg_color":"#ffffff"}}},methods:{handleTouchStart(t,e,i){this.startX=t.touches[0].clientX,this.draggingIndex=e+"-"+i},handleTouchMove(t,e,i){if(null===this.draggingIndex)return;const o=t.touches[0].clientX;let s=o-this.startX;s<-90&&(s=-90),s=Math.min(0,s),this.$set(this.favoriteList[e].products[i],"translatex",s),this.draggingIndex2=e+"-"+i},handleTouchEnd(t,e){null!==this.draggingIndex&&(this.$set(this.favoriteList[t].products[e],"translatex",0),this.draggingIndex=null)},clickToPage(){this.$href("./account/favorite-products")},cancelDelete(){this.showDropdownIndex=-1,this.showDropdownType=1},clickDelete(t){(0,a.nq)({favorite_id:t.id}).then((t=>{let e=1;this.getFavoriteInfo(e),this.cancelDelete()}))},barContentClick(t){this.showDropdownIndex>-1&&(this.showDropdownIndex=-1,this.showDropdownType=1,this.deleteItemID="",this.showDropdownType=1,this.addNewInputText="",this.showDropdownIndex=-1,this.showDropdownType=1,this.showSonDropdownID=-1,this.showSonDropdownType=1,this.deleteItemID="",this.showSonDropdownID="")},inputBlur(){this.editItemName?(0,a.lw)({id:this.editItemID,name:this.editItemName}).then((t=>{let e=1;this.getFavoriteInfo(e),this.editItemID="",this.editItemName=""})):(this.editItemID="",this.editItemName="")},clickEditName(t){this.editItemID=t.id,this.editItemName=t.name,this.showDropdownIndex=-1,this.$nextTick((()=>{this.$refs["centerEditName"],this.$refs["centerEditName"][0].focus()})),this.editItemName},clickShareFavorite(t){this.showDropdownType=3},clickWapBottom(t){t.preventDefault(),this.showSonDropdownID=""},deleteItemFavorite(t){this.showDropdownType=2,this.deleteItemID=t.id},deleteItemProduct2(t,e){this.draggingIndex2="",this.showSonDropdownID="",t.preventDefault();let i=e.product_id,o=e.favorite_id;(0,a.UW)({favorite_id:o,product_id:i}).then((t=>{let e=1;this.getFavoriteInfo(e),this.$store.dispatch("shopInfo/getWishlistNumber")}))},deleteItemProduct(t,e){t.preventDefault();let i=e.product_id,o=e.favorite_id;(0,a.UW)({favorite_id:o,product_id:i}).then((t=>{let e=1;this.getFavoriteInfo(e),this.$store.dispatch("shopInfo/getWishlistNumber"),this.draggingIndex2=""}))},clickMoveItem(t,e,i){t.preventDefault();let o=e.product_id,s=e.favorite_id,r=i.id;(0,a.EO)({origin_favorite_id:s,new_favorite_id:r,product_id:o}).then((t=>{let e=1;this.getFavoriteInfo(e),this.draggingIndex2="",this.showSonDropdownID=""}))},clickShowDropdown(t){this.deleteItemID="",this.showDropdownType=1,t===this.showDropdownIndex?this.showDropdownIndex=-1:this.showDropdownIndex=t},clickItemProducts(t){let e=t.id;const i=this.downItemArr.indexOf(e);-1!==i?this.downItemArr.splice(i,1):this.downItemArr.push(e)},clickAddButton(){this.isAddNewInputStatus=!0},cancelAddInput(){this.isAddNewInputStatus=!1,this.addNewInputText=""},confirmAddInput(){(0,a.Kr)({name:this.addNewInputText}).then((t=>{this.isAddNewInputStatus=!1,this.addNewInputText="";let e=1;this.getFavoriteInfo(e)}))},leaveBox(){this.showSonDropdownID="",this.showSonDropdownType=1},removeItem(t,e,i){t.preventDefault(),this.showSonDropdownID=e.id},clickMove(t,e){t.preventDefault(),this.showSonDropdownType=2},clickMove2(t,e){t.preventDefault(),this.showSonDropdownID=e.product_id,this.showSonDropdownType=2},toProductInfo(t){this.$href({path:"products/"+t.handle})},async clickShareItem(t,e){var i,o,s,a;if(await this.getFavoriteShareUrl(e),"email"===t.type)null===(i=this.sideBarInfo)||void 0===i||null===(o=i.params)||void 0===o||o.email_value,window.open(`mailto:${null===(s=this.sideBarInfo)||void 0===s||null===(a=s.params)||void 0===a?void 0:a.email_value}`);else if("whatsapp"===t.type){let e=t.url+this.$L("check_out_my_lovely_items")+" "+this.share_url;window.open(e)}else"copy-link"!=t.type?window.open(t.url+this.share_url):n.zp.call(this,this.share_url).then((()=>{this.$toast.success(this.$L("base_copy_link_success"))}))},clickShowDrawer(){this.drawer=!this.drawer,this.drawer&&this.getFavoriteInfo()},getFavoriteShareUrl(t){return new Promise((e=>{let i={favorite_id:""};t&&t.id&&(i.favorite_id=t.id),(0,a.yN)(i).then((t=>{this.share_url=t.data.share_url,e()})).catch((()=>{e()}))}))},getFavoriteInfo(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;this.favoriteCount,this.wishlistNumber,1!=t&&this.favoriteCount&&this.wishlistNumber==this.favoriteCount||(this.getLoading=!0,(0,a.BB)().then((t=>{var e,i,o,s;this.getLoading=!1;let a=(null===(e=t.data)||void 0===e||null===(i=e.info)||void 0===i?void 0:i.favorites)||[];a.forEach((t=>
1{t.products&&Array.isArray(t.products)&&t.products.forEach((t=>{t.translatex=0,t.isdDragging=!1}))})),this.favoriteList=a,this.favoriteCount=(null===(o=t.data)||void 0===o||null===(s=o.info)||void 0===s?void 0:s.favorite_count)||"0"})).catch((()=>{this.getLoading=!1})))},hiddenDrawer(){this.editItemID="",this.editItemName="",this.showDropdownIndex=-1}}},l=d,h=i(1001),p=(0,h.Z)(l,o,s,!1,null,"2e1239e9",null),u=p.exports}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.