/
home
/
henzagold
/
oldsite
/
.nuxt
/
dist
/
client
/
File Upload :
llllll
Current File: /home/henzagold/oldsite/.nuxt/dist/client/1db6295.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{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),x=n(358),_=n(6),y=n(90).f,w=n(46).f,L=n(20).f,C=n(475),k=n(489).trim,P="Number",S=o.Number,$=S.prototype,I=o.TypeError,N=c("".slice),z=c("".charCodeAt),M=function(t){var e=x(t,"number");return"bigint"==typeof e?e:B(e)},B=function(t){var e,n,r,o,c,l,d,code,h=x(t,"number");if(v(h))throw I("Cannot convert a Symbol value to a number");if("string"==typeof h&&h.length>2)if(h=k(h),43===(e=z(h,0))||45===e){if(88===(n=z(h,2))||120===n)return NaN}else if(48===e){switch(z(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=N(h,2)).length,d=0;d<l;d++)if((code=z(c,d))<48||code>o)return NaN;return parseInt(c,r)}return+h};if(l(P,!S(" 0o1")||!S("0b1")||S("+0x1"))){for(var E,V=function(t){var e=arguments.length<1?0:S(M(t)),n=this;return m($,n)&&_((function(){C(n)}))?f(Object(e),n,V):e},j=r?y(S):"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(","),T=0;j.length>T;T++)h(S,E=j[T])&&!h(V,E)&&L(V,E,w(S,E));V.prototype=$,$.constructor=V,d(o,P,V,{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},485:function(t,e,n){"use strict";n(473);var r={data:function(){return{}},props:{maxVisibleButtons:{type:Object,required:!1,default:function(){return{sm:3,md:5,lg:7}}},totalPages:{type:Number,required:!0},value:{type:Number,required:!0}},watch:{},computed:{pageSize:function(){return this.$store.state.windowWidth>=1080?this.maxVisibleButtons.lg:this.$store.state.windowWidth>768?this.maxVisibleButtons.md:this.maxVisibleButtons.sm},mode:function(){return this.pageSize%2==0?this.pageSize/2-1:(this.pageSize-1)/2},startPage:function(){return 1===this.value?1:this.value===this.totalPages?Math.max(this.value-(this.pageSize-1),1):this.mode+this.value>this.totalPages?Math.max(this.totalPages-(this.pageSize-1),1):Math.max(this.value-this.mode,1)},endPage:function(){return this.mode+this.value>this.totalPages?this.totalPages:Math.min(this.startPage+(this.pageSize-1),this.totalPages)},pages:function(){for(var t=[],i=this.startPage;i<=this.endPage;i+=1)t.push({name:i,isDisabled:i===this.value});return t}},methods:{onClickFirstPage:function(){this.$emit("input",1),this.$emit("pagechanged",1)},onClickPreviousPage:function(){this.value>1&&this.$emit("input",this.value-1),this.$emit("pagechanged",this.value-1)},onClickPage:function(t){this.$emit("input",t),this.$emit("pagechanged",t)},onClickNextPage:function(){this.value<this.totalPages&&(this.$emit("input",this.value+1),this.$emit("pagechanged",this.value+1))},onClickLastPage:function(){this.$emit("input",this.totalPages),this.$emit("pagechanged",this.totalPages)},isPageActive:function(t){return this.value===t}},mounted:function(){}},o=(n(506),n(5)),component=Object(o.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"pagination"},[n("li",{staticClass:"page-item page-first page-controller"},[t.totalPages>1?n("a",{staticClass:"page-link",on:{click:t.onClickFirstPage}},[n("svg",{attrs:{viewBox:"0 0 24 24"}},[n("path",{attrs:{fill:"currentColor",d:"M5.59,7.41L7,6L13,12L7,18L5.59,16.59L10.17,12L5.59,7.41M11.59,7.41L13,6L19,12L13,18L11.59,16.59L16.17,12L11.59,7.41Z"}})])]):t._e()]),t._v(" "),n("li",{staticClass:"page-item page-increment page-controller"},[t.totalPages>1?n("a",{staticClass:"page-link",on:{click:t.onClickPreviousPage}},[n("svg",{attrs:{viewBox:"0 0 24 24"}},[n("path",{attrs:{fill:"currentColor",d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"}})])]):t._e()]),t._v(" "),t._l(t.pages,(function(e){return n("li",{class:["page-item",t.isPageActive(e.name)?"active":null]},[n("a",{staticClass:"page-link",attrs:{disabled:e.isDisabled},on:{click:function(n){return t.onClickPage(e.name)}}},[t._v(t._s(e.name))])])})),t._v(" "),n("li",{staticClass:"page-item page-append page-controller"},[t.totalPages>1?n("a",{staticClass:"page-link",on:{click:t.onClickNextPage}},[n("svg",{attrs:{viewBox:"0 0 24 24"}},[n("path",{attrs:{fill:"currentColor",d:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"}})])]):t._e()]),t._v(" "),n("li",{staticClass:"page-item page-last page-controller"},[t.totalPages>1?n("a",{staticClass:"page-link",on:{click:t.onClickLastPage}},[n("svg",{attrs:{viewBox:"0 0 24 24"}},[n("path",{attrs:{fill:"currentColor",d:"M18.41,7.41L17,6L11,12L17,18L18.41,16.59L13.83,12L18.41,7.41M12.41,7.41L11,6L5,12L11,18L12.41,16.59L7.83,12L12.41,7.41Z"}})])]):t._e()])],2)}),[],!1,null,null,null);e.a=component.exports},486:function(t,e,n){"use strict";var r=n(70),o={name:"Loading",props:{spinning:{type:Boolean,default:!1}},components:{logo:r.a}},c=(n(508),n(5)),component=Object(c.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.spinning?n("div",{staticClass:"acr-preloader"},[n("logo",{attrs:{width:"170px",height:"120px"}}),t._v(" "),t._m(0)],1):t._e()}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"acr-preloader-inner"},[n("div",{staticClass:"lds-grid"},[n("div"),t._v(" "),n("div"),t._v(" "),n("div")])])}],!1,null,"6857b890",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"},491:function(t,e,n){var content=n(507);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(37).default)("ac387a3c",content,!0,{sourceMap:!1})},492:function(t,e,n){var content=n(509);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(37).default)("3d293fc6",content,!0,{sourceMap:!1})},506:function(t,e,n){"use strict";n(491)},507:function(t,e,n){var r=n(36)((function(i){return i[1]}));r.push([t.i,"li{cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.page-item:first-child .page-link{margin-left:15px!important}@media (max-width:1199.98px){.page-append,.page-increment{display:none}}.page-controller .page-link{padding:12px}.page-controller .page-link svg{width:24px;height:24px}@media (max-width:575px){.page-controller .page-link{padding:10px}.page-controller .page-link svg{width:14px;height:14px}}",""]),r.locals={},t.exports=r},508:function(t,e,n){"use strict";n(492)},509:function(t,e,n){var r=n(36)((function(i){return i[1]}));r.push([t.i,".acr-preloader[data-v-6857b890]{position:absolute!important;z-index:2!important;flex-direction:column;opacity:.8!important}",""]),r.locals={},t.exports=r}}]);
Copyright ©2k19 -
Hexid
|
Tex7ure