(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[28],{1271:function(t,e,r){t.exports={slideshow:"styles__slideshow___KTrxE",slide:"styles__slide___Hc4j5",arrow:"styles__arrow___bAB79","arrow-right":"styles__arrow-right___3hlDq styles__arrow___bAB79",arrowRight:"styles__arrow-right___3hlDq styles__arrow___bAB79","arrow-left":"styles__arrow-left___3tdcj styles__arrow___bAB79",arrowLeft:"styles__arrow-left___3tdcj styles__arrow___bAB79","slide-link":"styles__slide-link___1qWTm",slideLink:"styles__slide-link___1qWTm",info:"styles__info___20G5n","info-right":"styles__info-right___3N16Q styles__info___20G5n",infoRight:"styles__info-right___3N16Q styles__info___20G5n","info-center":"styles__info-center___104Jo styles__info___20G5n",infoCenter:"styles__info-center___104Jo styles__info___20G5n","info-left":"styles__info-left___1q-91 styles__info___20G5n",infoLeft:"styles__info-left___1q-91 styles__info___20G5n","slide-sub-title":"styles__slide-sub-title___3xRpH",slideSubTitle:"styles__slide-sub-title___3xRpH","slide-title":"styles__slide-title___20XJh",slideTitle:"styles__slide-title___20XJh","slide-title-center":"styles__slide-title-center___3iYQj",slideTitleCenter:"styles__slide-title-center___3iYQj","slide-button":"styles__slide-button___3mQlV",slideButton:"styles__slide-button___3mQlV","sub-title-light":"styles__sub-title-light___aZP_g styles__slide-sub-title___3xRpH",subTitleLight:"styles__sub-title-light___aZP_g styles__slide-sub-title___3xRpH","sub-title-dark":"styles__sub-title-dark___3XumK styles__slide-sub-title___3xRpH",subTitleDark:"styles__sub-title-dark___3XumK styles__slide-sub-title___3xRpH","title-light":"styles__title-light___3O1Gl",titleLight:"styles__title-light___3O1Gl","title-dark":"styles__title-dark___LuMK4",titleDark:"styles__title-dark___LuMK4","button-light":"styles__button-light___13XTP",buttonLight:"styles__button-light___13XTP","button-dark":"styles__button-dark___2WIq9",buttonDark:"styles__button-dark___2WIq9",topLeft:"styles__topLeft___cRALj",topCenter:"styles__topCenter___Vq55V",topRight:"styles__topRight___QgH_7",centerLeft:"styles__centerLeft___2xLb9",centerCenter:"styles__centerCenter___qS7BG",centerRight:"styles__centerRight___3_Qut",bottomLeft:"styles__bottomLeft___3tYod",bottomCenter:"styles__bottomCenter___1LuqM",bottomRight:"styles__bottomRight___3jtHL",fixed:"styles__fixed___3NKiP",smallHeight:"styles__smallHeight___3RUVK",mediumHeight:"styles__mediumHeight___2govg",largeHeight:"styles__largeHeight___IM7Vf",fullHeight:"styles__fullHeight___2Gm9l",full:"styles__full___3g2D8","margin-bottom":"styles__margin-bottom___9VRM5",marginBottom:"styles__margin-bottom___9VRM5","slick-arrow":"styles__slick-arrow___19frm",slickArrow:"styles__slick-arrow___19frm","slick-hidden":"styles__slick-hidden___1kEdY",slickHidden:"styles__slick-hidden___1kEdY",thumbnails:"styles__thumbnails___1qNS9"}},1309:function(t,e,r){t.exports=r.p+"722a2019ac066d0851ff782266bfe1b7.jpg"},1310:function(t,e,r){t.exports=r.p+"8b40cbaa63ccabe490250e1965f4a6f6.jpg"},670:function(B,t,e){"use strict";e.r(t);function y(t){var e=t.children,r=t.className;return(t=t.linkUrl)?b.a.createElement("a",{href:t,className:r},e):b.a.createElement("div",{className:r},e)}var r=e(0),b=e.n(r),o=e(2),o=e.n(o),n=e(334),i=e.n(n),n=e(1271),d=e.n(n),n=e(72),l=e.n(n);function s(t){return(s="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)}var h=["src","textDirection","color","buttonColor","caption","header","linkUrl","linkText","activeSlide","isDefault","position","index","aspectRatio"];function m(){return(m=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r,o=arguments[e];for(r in o)!{}.hasOwnProperty.call(o,r)||(t[r]=o[r])}return t}).apply(null,arguments)}function g(t,e){if(null==t)return{};var r,o=function(t,e){if(null==t)return{};var r,o={};for(r in t)if({}.hasOwnProperty.call(t,r)){if(0<=e.indexOf(r))continue;o[r]=t[r]}return o}(t,e);if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(t),i=0;i<n.length;i++)r=n[i],0<=e.indexOf(r)||{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r]);return o}function a(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,function(t){t=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);r=r.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string");return"symbol"==s(t)?t:t+""}(o.key),o)}}function _(t,e,r){e=u(e);var o=t,e=c()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r);if(e&&("object"==s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");t=o;if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var n=function(t){function r(t){var e;if(this instanceof r)return(e=_(this,r,[t])).importantKeys=Object.keys(t).filter(function(t){return"onClick"!=t}),e;throw new TypeError("Cannot call a class as a function")}var e,o=r;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),t&&f(o,t),o=r,(t=[{key:"shouldComponentUpdate",value:function(t,e){for(var r=0;r<this.importantKeys.length;r++){var o=!l()(t[this.importantKeys[r]],this.props[this.importantKeys[r]]);if("style"!=this.importantKeys[r]){if(o)return!0}else if(o)return!!t[this.importantKeys[r]].width}return!1}},{key:"render",value:function(){var t=this.props,e=t.src,r=t.textDirection,o=t.color,n=t.buttonColor,i=t.caption,l=t.header,s=t.linkUrl,a=t.linkText,_=t.activeSlide,c=t.isDefault,u=t.position,f=(t.index,t.aspectRatio),t=g(t,h),p="undefind"==this.props.index?0:this.props.index;return b.a.createElement("div",t,b.a.createElement(y,{linkUrl:s,className:d.a.slideLink},b.a.createElement("div",{className:[d.a["info-".concat(r)],_==p?d.a.activedInfo:""].join(" ")},i&&b.a.createElement("span",{className:[d.a.slideSubTitle,d.a["sub-title-".concat(o)]].join(" ")},i),l&&b.a.createElement("h4",{className:[d.a.slideTitle,d.a["title-".concat(o)],"center"==r?d.a.slideTitleCenter:""].join(" ")},l),a&&b.a.createElement("div",{className:[d.a.slideButton,d.a["button-".concat(n)]].join(" ")},a)),b.a.createElement("img",m({className:[d.a.slide,{"top-left":(t=d.a).topLeft,"top-center":t.topCenter,"top-right":t.topRight,"center-left":t.centerLeft,"center-center":t.centerCenter,"center-right":t.centerRight,"bottom-left":t.bottomLeft,"bottom-center":t.bottomCenter,"bottom-right":t.bottomRight}[u]].join(" ")},f&&{style:{aspectRatio:f}},{src:c?e:"".concat(e,"?w=1400&h=1000"),alt:l,srcSet:c?"".concat(e," 2x, ").concat(e," 1x"):"".concat(e,"?w=2000&h=2000&q=90 2x, ").concat(e,"?w=1400&h=1000&q=90 1x")}))))}}])&&a(o.prototype,t),e&&a(o,e),Object.defineProperty(o,"prototype",{writable:!1}),o}(r.Component),p=(n.propTypes={src:o.a.string,textDirection:o.a.string,color:o.a.string,buttonColor:o.a.string},n),n=(e(462),e(14)),A=e.n(n);function v(t){return(v="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)}function w(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,function(t){t=function(t,e){if("object"!=v(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);r=r.call(t,e||"default");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string");return"symbol"==v(t)?t:t+""}(o.key),o)}}function K(t,e,r){e=j(e);var o=t,e=O()?Reflect.construct(e,r||[],j(t).constructor):e.apply(t,r);if(e&&("object"==v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");t=o;if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(O=function(){return!!t})()}function j(t){return(j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function k(t,e){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var n=function(t){function e(t){if(this instanceof e)return K(this,e,[t]);throw new TypeError("Cannot call a class as a function")}var r,o=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),t&&k(o,t),o=e,(t=[{key:"render",value:function(){var t=this.props,e=t.direction,t=t.onClick;return b.a.createElement("span",{onClick:t,className:[d.a["arrow-".concat(e)],A.a["icon-arrow-".concat(e)]].join(" ")})}}])&&w(o.prototype,t),r&&w(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(r.Component),S=(n.propTypes={direction:o.a.string,onClick:o.a.func},n),n=e(8),q=e.n(n),n=e(335),T=e(1309),T=e.n(T),P=e(1310),P=e.n(P),T={type:"fixed",slides:[{url:T.a,linkUrl:"",preview:T.a,linkTitle:"مشاهده و خرید",imageTitle:"به‌روزترین گوشی‌های هوشمند جهان",imageCaption:"گوشی‌های هوشمند",slideTextColor:"dark",slideButtonColor:"dark",slideTextDirection:"left",isDefault:!0},{url:P.a,linkUrl:"",preview:P.a,linkTitle:"مشاهده و خرید",imageTitle:"فروش ویژه تمامی محصولات برند اپل",imageCaption:"",slideTextColor:"dark",slideButtonColor:"dark",slideTextDirection:"right",isDefault:!0}]},P=e(277);function C(t){return(C="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)}function x(e,t){var r,o=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)),o}function E(o){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){var e,r;e=o,r=n[t=t],(t=D(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(n,t))})}return o}function R(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,D(o.key),o)}}function D(t){t=function(t,e){if("object"!=C(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);r=r.call(t,e||"default");if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string");return"symbol"==C(t)?t:t+""}function U(t,e,r){e=H(e);var o=t,e=L()?Reflect.construct(e,r||[],H(t).constructor):e.apply(t,r);if(e&&("object"==C(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");t=o;if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function L(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(L=function(){return!!t})()}function H(t){return(H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function N(t,e){return(N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}e=function(t){function s(t){var e;if(!(this instanceof s))throw new TypeError("Cannot call a class as a function");(e=U(this,s,[t])).rightArrow=b.a.createElement(S,{direction:"right"}),e.leftArrow=b.a.createElement(S,{direction:"left"}),e.beforeSlideChange=e.beforeSlideChange.bind(e);var r=t.slideshowAdaptiveHeight,o=t.autoplay,n=t.autoplaySpeed,i=t.type,l=t.noBottomMargin,t=t.rootClassNames,r={adaptiveHeight:!!r,lazyLoad:!1,dots:!1,infinite:!0,speed:500,fade:!0,slidesToShow:1,slidesToScroll:1,autoplay:!!o,rtl:!1,autoplaySpeed:n,draggable:!1,pauseOnHover:!0,arrows:!1,className:[d.a.slideshow,d.a[i],l?"":d.a.marginBottom,t].join(" "),nextArrow:e.rightArrow,prevArrow:e.leftArrow,afterChange:function(t){e.setState({activeSlide:t})}};return e.state={slidesToShow:1,settings:r,activeSlide:0},e}var e,r=s;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&N(r,t),r=s,(t=[{key:"beforeSlideChange",value:function(){var t=this.props,e=t.slides,t=t.autoplay;this.setState({slidesToShow:null==e?void 0:e.length,settings:E(E({},this.state.settings),{},{infinite:!0,arrows:1<(null==e?void 0:e.length),autoplay:1<(null==e?void 0:e.length)&&!!t})})}},{key:"UNSAFE_componentWillMount",value:function(){this.setState({slidesToShow:1})}},{key:"componentDidMount",value:function(){this.beforeSlideChange()}},{key:"render",value:function(){var r=this,t=this.props,e=t.slides,o=t.slideshowHeight;return b.a.createElement(i.a,this.state.settings,!q()(e)&&e.slice(0,this.state.slidesToShow).map(function(t,e){return b.a.createElement(p,{key:e,className:o&&{small:(e=d.a).smallHeight,medium:e.mediumHeight,large:e.largeHeight,full:e.fullHeight}[o],aspectRatio:(null==t?void 0:t.width)&&"".concat(null==t?void 0:t.width," / ").concat(null==t?void 0:t.height),src:encodeURI(t.url)||"",textDirection:t.slideTextDirection||"right",color:t.slideTextColor||"light",buttonColor:t.slideButtonColor||"light",caption:t.imageCaption,header:t.imageTitle,linkUrl:t.linkUrl,position:t.position,linkText:t.linkTitle,activeSlide:r.state.activeSlide,isDefault:t.isDefault})}))}}])&&R(r.prototype,t),e&&R(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(r.Component),e.propTypes={type:o.a.string},r=Object(n.a)(e);t.default=Object(P.a)(r,T)}}]);