/
home
/
henzagold
/
site
/
.nuxt
/
dist
/
client
/
File Upload :
llllll
Current File: /home/henzagold/site/.nuxt/dist/client/d4f0f33.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{473:function(t,e,n){"use strict";var r=n(13),o=n(8),c=n(7),l=n(123),d=n(21),h=n(15),f=n(359),m=n(53),v=n(89),y=n(358),_=n(6),x=n(90).f,w=n(46).f,C=n(20).f,k=n(475),S=n(489).trim,I="Number",L=o.Number,$=L.prototype,N=o.TypeError,T=c("".slice),E=c("".charCodeAt),V=function(t){var e=y(t,"number");return"bigint"==typeof e?e:B(e)},B=function(t){var e,n,r,o,c,l,d,code,h=y(t,"number");if(v(h))throw N("Cannot convert a Symbol value to a number");if("string"==typeof h&&h.length>2)if(h=S(h),43===(e=E(h,0))||45===e){if(88===(n=E(h,2))||120===n)return NaN}else if(48===e){switch(E(h,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+h}for(l=(c=T(h,2)).length,d=0;d<l;d++)if((code=E(c,d))<48||code>o)return NaN;return parseInt(c,r)}return+h};if(l(I,!L(" 0o1")||!L("0b1")||L("+0x1"))){for(var j,A=function(t){var e=arguments.length<1?0:L(V(t)),n=this;return m($,n)&&_((function(){k(n)}))?f(Object(e),n,A):e},M=r?x(L):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),z=0;M.length>z;z++)h(L,j=M[z])&&!h(A,j)&&C(A,j,w(L,j));A.prototype=$,$.constructor=A,d(o,I,A,{constructor:!0})}},474:function(t,e,n){"use strict";var r=n(483),o=n(481),c={name:"Product",components:{Rating:r.a},mixins:[o.a]},l=(n(487),n(5)),component=Object(l.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["product",t.list?"product-list":null],staticStyle:{position:"relative"}},[t.showBeforePrice?n("div",{staticClass:"border-[1.3px] border-solid border-red-600 rounded-[6px] h-[27px] w-[60px] flex items-center justify-center text-red-600 absolute left-[30px] \x3c!--top-[42px]--\x3e z-10 text-[12px]"},[t._v("تخفیف\n ")]):t._e(),t._v(" "),n("div",{staticClass:"product-thumbnail _product-hover",staticStyle:{"text-align":"center"}},[n("a",{staticClass:"no-back",attrs:{href:t.link,target:"_blank"}},[n("img",{directives:[{name:"lazy-load",rawName:"v-lazy-load"}],class:["_product-img left-0 right-0",null!=t.secendrayImage?"_primary-image":""],attrs:{"data-src":t.thumb,alt:t.title}}),t._v(" "),t.secendrayImage?n("img",{directives:[{name:"lazy-load",rawName:"v-lazy-load"}],staticClass:"_product-img _secondary-img",attrs:{alt:t.title,"data-src":t.secendrayImage}}):t._e()]),t._v(" "),n("div",{staticClass:"product-badges"}),t._v(" "),t.wishList?n("div",{staticClass:"product-controls"},[n("a",{staticClass:"favorite",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.pin.apply(null,arguments)}}},[t.isInWishList?n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px"}},[n("path",{attrs:{fill:"currentColor",d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"}})]):n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px"}},[n("path",{attrs:{fill:"currentColor",d:"M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"}})])])]):t._e()]),t._v(" "),n("div",{staticClass:"product-body"},[n("div",{staticClass:"row center"},[n("h5",{staticClass:"product-title col-lg-12 col-xs-12 ",staticStyle:{display:"inline-block"}},[n("a",{attrs:{href:t.link,target:"_blank",title:t.title}},[t._v(t._s(t.title))])]),t._v(" "),n("div",{staticClass:"acr-rating col-lg-12 col-xs-12",staticStyle:{float:"left"}},[n("rating")],1)]),t._v(" "),n("div",{staticClass:"row center"},[t.showBeforePrice?n("div",{staticClass:"col-lg-12 col-md-12"},[n("span",{staticStyle:{"text-decoration":"line-through"}},[n("span",{staticClass:"product-price-discount"},[t._v(t._s(t._f("priceUnit")(t.mainPrice)))])])]):n("div",{staticClass:"col-lg-12 col-md-12"},[t._v(" ")]),t._v(" "),n("div",{staticClass:"col-lg-12 col-md-12"},[n("span",{staticClass:"product-price"},[t._v(t._s(t._f("priceUnit")(t.price)))])]),t._v(" "),n("div",{staticClass:"col-lg-12 col-md-12"})]),t._v(" "),n("div",{staticClass:"product-gallery-wrapper center",staticStyle:{"margin-top":"1rem"}},[n("a",{staticClass:"btn-custom btn-sm secondary",attrs:{href:t.link,target:"_blank"}},[t._v("مشاهده محصول")])])])])}),[],!1,null,"6c7c5b3f",null);e.a=component.exports},475:function(t,e,n){var r=n(7);t.exports=r(1..valueOf)},480:function(t,e,n){"use strict";var r={props:{maxWidth:{required:!1,type:String},closable:{required:!1,type:Boolean,default:!0},model:{type:Boolean,default:!1}},model:{prop:"model",event:"change"},data:function(){return{display:"none"}},watch:{model:function(t){this.display=this.model?"block":"none";var html=document.getElementsByTagName("html");html&&html[0].classList.toggle("overflow-hidden"),t||this.$emit("close")}},computed:{m:{get:function(){return this.model},set:function(t){this.$emit("change",t)}}},methods:{toggle:function(t){this.$emit("change",t)}}},o=n(5),component=Object(o.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal quick-view-modal",class:t.m?"fade-in show":"fade",style:{display:t.display},attrs:{role:"dialog"}},[n("div",{staticClass:"vs-sidebar--background",on:{click:function(e){return t.toggle(!1)}}}),t._v(" "),n("div",{staticClass:"modal-dialog modal-lg modal-dialog-centered",staticStyle:{height:"80vh","max-height":"80vh",display:"flex","align-items":"center","justify-content":"center"},style:{maxWidth:t.maxWidth},attrs:{role:"document"}},[n("div",{staticClass:"modal-content h-full",staticStyle:{"z-index":"20001"}},[n("div",{staticClass:"modal-body h-full"},[t.closable?n("div",{staticClass:"close-btn close-dark",on:{click:function(e){return t.toggle(!1)}}},[n("span"),t._v(" "),n("span")]):t._e(),t._v(" "),n("h3",{staticClass:"related-title text-center hp1",staticStyle:{padding:"8px","margin-bottom":"0","text-align":"center"}},[t._t("header")],2),t._v(" "),t._t("body")],2)])])])}),[],!1,null,null,null);e.a=component.exports},481:function(t,e,n){"use strict";var r=n(4),o=(n(19),n(12),n(73),n(59),n(122),n(43),n(150),n(16),n(120),n(124),n(151)),c=n.n(o),l=n(57);e.a={props:{product:{type:Object,required:!1,default:function(){return{}}},list:{type:Boolean,default:!1},model:{required:!1,type:Boolean,default:!1}},model:{prop:"model",event:"change"},data:function(){return{item:this.product,indexSelectVarint:0}},methods:{addToCart:function(){this.$store.dispatch("cart/add",{product:this.item,pid:this.id,vid:this.selectVariant.id,qty:1,promotion_id:this.promotions?this.promotions.id:null}),this.$vs.notify({title:"",text:"محصول به سبد خرید اضافه شد",color:"var(--secondary-color)",position:"bottom-left"})},pin:function(){this.isLogin?this.isInWishList?this.removeFromWishList():this.addToWishList():this.$emit("change",!0)},addToWishList:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(l.a)({method:"post",url:"https://henzagold.com/oapi/cu/fav",data:{product_id:t.id},headers:{"Content-Type":"application/json",Authorization:"Bearer "+localStorage.getItem("accessToken")}}).then((function(){t.$store.dispatch("wishlist/add",t.id)})).catch((function(e){t.$vs.notify({color:"danger",title:"خطا",text:e,time:3e3})})).finally((function(){t.$vs.notify({color:"var(--secondary-color)",text:"محصول به لیست علاقه مندی ها اضافه شد",time:3e3})}));case 2:case"end":return e.stop()}}),e)})))()},removeFromWishList:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(l.a)({method:"delete",url:"https://henzagold.com/oapi/cu/fav/".concat(t.id),data:{},headers:{"Content-Type":"application/json",Authorization:"Bearer "+localStorage.getItem("accessToken")}}).then((function(){t.$store.dispatch("wishlist/remove",t.id)})).catch((function(e){t.$vs.notify({color:"danger",title:"خطا",text:e,time:3e3})})).finally((function(){t.$vs.notify({color:"var(--secondary-color)",text:"محصول از لیست علاقه مندی ها حذف شد",time:3e3})}));case 2:case"end":return e.stop()}}),e)})))()}},computed:{promotions:function(){return this.item.promotion},secendrayImage:function(){return this.item.gallery&&this.item.gallery.length>0?this.item.gallery[0].image:null},thumb:function(){return c.a.get(this.item,"image.image","/img/no-image.png")},title:function(){return c.a.get(this.item,"title","")},link:function(){return"/product/".concat(this.$witheSpaceToDash(this.title),"/").concat(this.id)},price:function(){var t=c.a.get(this.variants,"[".concat(this.indexSelectVarint,"].price")),e=c.a.get(this.variants,"[".concat(this.indexSelectVarint,"].price_with_discount"));return t===e?t:e},mainPrice:function(){return c.a.get(this.variants,"[".concat(this.indexSelectVarint,"].price"))},discountedPrice:function(){return c.a.get(this.variants,"[".concat(this.indexSelectVarint,"].price_with_discount"))},showBeforePrice:function(){return!(c.a.get(this.variants,"[".concat(this.indexSelectVarint,"].price"))===c.a.get(this.variants,"[".concat(this.indexSelectVarint,"].price_with_discount")))},discountPrice:function(){return c.a.get(this.variants,"[".concat(this.indexSelectVarint,"].price_with_discount"))},brand:function(){return c.a.get(this.item,"brand.val")},wishList:function(){return this.$store.state.wishlist.itemsId},isLogin:function(){return this.$store.state.wishlist.isLogin},isInWishList:function(){return!!this.wishList.includes(this.id)},id:function(){return this.item.id||this.$route.params.id},variants:function(){return c.a.get(this.item,"variants",[])},file:function(){return c.a.get(this.item,"file",void 0)},goldPrice:function(){return c.a.get(this.item,"goldPrice",void 0)},desk_note:function(){return c.a.get(this.item,"desk_note",void 0)},collects:function(){var t=c.a.get(this.item,"collect",[]);return t.filter((function(e,n){return t.findIndex((function(t){return t&&t.collection&&e&&e.collection&&t.collection.title===e.collection.title}))==n}))},tags:function(){return c.a.get(this.item,"tags",[])},related:function(){return c.a.get(this.item,"related",[])},selectVariant:function(){return c.a.get(this.variants,"[".concat(this.indexSelectVarint,"]"),{})},color:function(){var t=c.a.get(this.selectVariant,"color_str","").split("/");return{name:"#"!==t[0][0]?t[0]:t[1],color:"#"==t[0][0]?t[0]:t[1]}},gallery:function(){var t=c.a.get(this.item,"gallery",[]),image=c.a.get(this.item,"image",void 0);return image&&t.splice(0,0,image),(t=t.filter((function(e,n){return t.findIndex((function(t){return t.id===e.id}))==n})))||[]},fullLink:function(){return"".concat("https://henzagold.com/","product/").concat(this.$witheSpaceToDash(this.title),"/").concat(this.id)}}}},482:function(t,e,n){var content=n(488);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(37).default)("a535cf30",content,!0,{sourceMap:!1})},483:function(t,e,n){"use strict";var r={name:"Rating"},o=n(5),component=Object(o.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"flex"},t._l(3,(function(i){return n("svg",{staticStyle:{width:"20px",height:"20px"},attrs:{viewBox:"0 0 24 24"}},[n("path",{attrs:{fill:"#ffa80a",d:"M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z"}})])})),0)}),[],!1,null,"5d9edbba",null);e.a=component.exports},487:function(t,e,n){"use strict";n(482)},488:function(t,e,n){var r=n(36)((function(i){return i[1]}));r.push([t.i,"._product-img[data-v-6c7c5b3f]{width:190px;height:190px;-o-object-fit:scale-down;object-fit:scale-down}._product-hover:hover>a img._primary-image[data-v-6c7c5b3f]{opacity:0;transition:all .5s ease-in-out}._product-hover:hover>a img._secondary-img[data-v-6c7c5b3f]{opacity:1;transition:all 1.5s ease-in-out}._primary-image[data-v-6c7c5b3f]{position:absolute;opacity:1;transition:all 1s ease-in-out}._secondary-img[data-v-6c7c5b3f]{opacity:0;transition:all 2s ease-in-out}.no-back[data-v-6c7c5b3f]{background:none!important}",""]),r.locals={},t.exports=r},489:function(t,e,n){var r=n(7),o=n(35),c=n(17),l=n(490),d=r("".replace),h="["+l+"]",f=RegExp("^"+h+h+"*"),m=RegExp(h+h+"*$"),v=function(t){return function(e){var n=c(o(e));return 1&t&&(n=d(n,f,"")),2&t&&(n=d(n,m,"")),n}};t.exports={start:v(1),end:v(2),trim:v(3)}},490:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},497:function(t,e,n){var content=n(519);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(37).default)("c5ac4f78",content,!0,{sourceMap:!1})},504:function(t,e,n){"use strict";n(473);var r={name:"slick",props:{container:{type:String,default:"products-slider",required:!1},prevArrow:{type:String,default:".products .slider-prev",required:!1},nextArrow:{type:String,default:".products .slider-next",required:!1},slidesToShow:{type:Number,default:3,required:!1},slidesToScroll:{type:Number,default:1,required:!1},arrows:{type:Boolean,default:!0,required:!1},rtl:{type:Boolean,default:!0,required:!1},dots:{type:Boolean,default:!1,required:!1},autoplay:{type:Boolean,default:!1,required:!1},responsive:{type:Array,default:function(){return[{breakpoint:991,settings:{slidesToShow:2}},{breakpoint:768,settings:{slidesToShow:1}}]},required:!1}},mounted:function(){$("#"+this.container).slick({slidesToShow:this.slidesToShow,rtl:this.rtl,slidesToScroll:this.slidesToScroll,arrows:this.arrows,prevArrow:$(this.prevArrow),nextArrow:$(this.nextArrow),dots:this.dots,autoplay:this.autoplay,responsive:this.responsive})}},o=(n(518),n(5)),component=Object(o.a)(r,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{attrs:{id:t.container}},[t._t("default")],2)}),[],!1,null,null,null);e.a=component.exports},505:function(t,e,n){"use strict";var r={name:"Modal",data:function(){return{}},props:{value:{type:Boolean}},methods:{close:function(){this.$emit("input",!1)}},watch:{value:function(t){t?$("#quickViewModal").modal({show:!0}):$("#quickViewModal").modal({show:!1})}},mounted:function(){this.value&&$("#quickViewModal").modal({show:!0})}},o=n(5),component=Object(o.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade quick-view-modal",attrs:{id:"quickViewModal",role:"dialog","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-lg modal-dialog-centered",attrs:{role:"document"}},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-body"},[n("div",{staticClass:"close-btn close-dark close",attrs:{"data-dismiss":"modal"},on:{click:function(e){return t.close()}}},[n("span"),t._v(" "),n("span")]),t._v(" "),n("div",{staticClass:"container-fluid"},[t._t("content")],2)])])])])}),[],!1,null,"1bf6d081",null);e.a=component.exports},518:function(t,e,n){"use strict";n(497)},519:function(t,e,n){var r=n(36)((function(i){return i[1]}));r.push([t.i,".slick-track{padding:20px 0}",""]),r.locals={},t.exports=r}}]);
Copyright ©2k19 -
Hexid
|
Tex7ure