text: _N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[78],{"+Xit":function(e,t,c){"use strict";var s=c("nKUr"),a=(c("q1tI"),function(){return Object(s.jsxs)("aside",{className:"widget widget_product widget_features",children:[Object(s.jsxs)("p",{children:[Object(s.jsx)("i",{className:"icon-network"})," Shipping worldwide"]}),Object(s.jsxs)("p",{children:[Object(s.jsx)("i",{className:"icon-3d-rotate"})," Free 7-day return if eligible, so easy"]}),Object(s.jsxs)("p",{children:[Object(s.jsx)("i",{className:"icon-receipt"})," Supplier give bills for this product."]}),Object(s.jsxs)("p",{children:[Object(s.jsx)("i",{className:"icon-credit-card"})," Pay online or when receiving goods"]})]})}),r=c("YFqc"),i=c.n(r),n=function(){return Object(s.jsx)("aside",{className:"widget widget_sell-on-site",children:Object(s.jsxs)("p",{children:[Object(s.jsx)("i",{className:"icon-store"})," Sell on Martfury?",Object(s.jsx)(i.a,{href:"/account/register",children:Object(s.jsx)("a",{children:" Register Now !"})})]})})},j=c("3AqC"),d=function(){return Object(s.jsx)("aside",{className:"widget widget_ads",children:Object(s.jsx)(i.a,{href:"/shop",children:Object(s.jsx)("a",{children:Object(s.jsx)("img",{src:"/static/img/ads/product-ads.png",alt:"martfury"})})})})};t.a=function(){return Object(s.jsxs)("section",{children:[Object(s.jsx)(a,{}),Object(s.jsx)(n,{}),Object(s.jsx)(d,{}),Object(s.jsx)(j.a,{collectionSlug:"shop-same-brand"})]})}},"42gE":function(e,t,c){"use strict";var s=c("nKUr"),a=(c("q1tI"),c("JTMZ")),r=c("R04y"),i=c("JdbH"),n=c("npkp"),j=c("I+XA"),d=c("mJh6"),l=c("hWwc"),o=c("BUgW");t.a=function(e){var t=e.product;return Object(s.jsxs)("div",{className:"ps-product--detail ps-product--fullwidth",children:[Object(s.jsxs)("div",{className:"ps-product__header",children:[Object(s.jsx)(a.a,{product:t}),Object(s.jsxs)("div",{className:"ps-product__info",children:[Object(s.jsx)(o.a,{product:t}),Object(s.jsx)(i.a,{product:t}),Object(s.jsx)(n.a,{product:t}),Object(s.jsx)(j.a,{}),Object(s.jsx)(d.a,{}),Object(s.jsx)(l.a,{})]})]}),Object(s.jsx)(r.a,{})]})}},"4r0F":function(e,t,c){"use strict";var s=c("nKUr"),a=c("q1tI"),r=c("g4pe"),i=c.n(r),n=c("JNwe"),j=c("lSLZ"),d=c("Sz8t"),l=c("YFqc"),o=c.n(l),b=(c("4lSd"),function(){var e=function(){var e=window.pageXOffset||document.documentElement.scrollTop||document.body.scrollTop||0,t=document.getElementById("header-mobile");null!==t&&(e>=300?t.classList.add("header--sticky"):t.classList.remove("header--sticky"))};return Object(a.useEffect)((function(){window.addEventListener("scroll",e)}),[]),Object(s.jsx)("header",{className:"header header--mobile header--mobile-product",id:"header-mobile","data-sticky":"true",children:Object(s.jsxs)("div",{className:"navigation--mobile",children:[Object(s.jsx)("div",{className:"navigation__left",children:Object(s.jsx)(o.a,{href:"/shop",children:Object(s.jsxs)("a",{href:"/",className:"header__back",children:[Object(s.jsx)("i",{className:"icon-chevron-left"}),Object(s.jsx)("strong",{children:"Back to previous"})]})})}),Object(s.jsx)("div",{className:"navigation__right",children:Object(s.jsx)(d.a,{})})]})})});t.a=function(e){var t,c=e.children,a=e.title;return t=null!==a?"Martfury | "+a:"Martfury | Multipurpose Marketplace React Ecommerce Template",Object(s.jsxs)("div",{className:"martfury",children:[Object(s.jsx)(i.a,{children:Object(s.jsx)("title",{children:t})}),Object(s.jsx)(b,{}),Object(s.jsx)("main",{children:c}),Object(s.jsx)(n.a,{}),Object(s.jsx)(j.a,{})]})}},"H+Dg":function(e,t,c){"use strict";var s=c("nKUr"),a=(c("q1tI"),c("y2E8")),r=c("w957");t.a=function(){return Object(s.jsx)(r.a,{source:a.product_categories,className:"menu--dropdown"})}},R04y:function(e,t,c){"use strict";var s=c("nKUr"),a=(c("q1tI"),c("ZTPi")),r=c("1paz"),i=c("YkpD"),n=c("tbPW"),j=c("ocpb"),d=c("9rTc"),l=a.a.TabPane;t.a=function(){return Object(s.jsx)("div",{className:"ps-product__content ps-tab-root",children:Object(s.jsxs)(a.a,{defaultActiveKey:"1",children:[Object(s.jsx)(l,{tab:"Description",children:Object(s.jsx)(r.a,{})},"1"),Object(s.jsx)(l,{tab:"Specification",children:Object(s.jsx)(i.a,{})},"2"),Object(s.jsx)(l,{tab:"Vendor",children:Object(s.jsx)(n.a,{})},"3"),Object(s.jsx)(l,{tab:"Reviews (1)",children:Object(s.jsx)(j.a,{})},"4"),Object(s.jsx)(l,{tab:"Questions and Answers",children:"Content of Tab Pane 3"},"5"),Object(s.jsx)(l,{tab:"More Offers",children:Object(s.jsx)(d.a,{})},"6")]})})}},Vdsu:function(e,t,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/product/[pid]",function(){return c("bRoi")}])},bRoi:function(e,t,c){"use strict";c.r(t);var s=c("vJKn"),a=c.n(s),r=c("nKUr"),i=c("rg98"),n=c("q1tI"),j=c("/MKj"),d=c("20a2"),l=c("4r0F"),o=c("Gq6B"),b=c("fvck"),u=c("24c+"),O=c("+Xit"),h=c("42gE"),p=c("jgJj"),x=c("2bTU"),m=(c("u+A/"),c("H+Dg")),f=c("coPK"),v=c("rUi8"),_=c("e0C1"),g=c("YFqc"),N=c.n(g),w=c("OqP1"),y=c("0wdU"),k=function(e){var t=e.product,c=Object(w.b)(t),s=Object(w.d)(t),a=Object(j.c)();return Object(r.jsxs)("div",{className:"ps-product--header-sticky",children:[Object(r.jsx)("div",{className:"ps-product__thumbnail",children:s}),Object(r.jsxs)("div",{className:"ps-product__wrapper",children:[Object(r.jsx)("div",{className:"ps-product__content",children:Object(r.jsx)(N.a,{href:"/product/[pid]",as:"/product/".concat(t.id),children:Object(r.jsx)("a",{className:"ps-product__title",children:t.title})})}),Object(r.jsxs)("div",{className:"ps-product__shopping",children:[c,Object(r.jsx)("a",{className:"ps-btn",href:"#",onClick:function(e){return function(e){e.preventDefault(),a(Object(y.b)(t))}(e)},children:"Add to Cart"})]})]})]})},E=c("4lSd"),S=c("MbC5"),q=function(e){var t=e.product;return Object(n.useEffect)((function(){window.addEventListener("scroll",E.b)}),[]),Object(r.jsxs)("header",{className:"header header--1 header--product","data-sticky":"true",id:"headerSticky",children:[Object(r.jsx)("div",{className:"header__top",children:Object(r.jsxs)("div",{className:"ps-container",children:[Object(r.jsxs)("div",{className:"header__left",children:[Object(r.jsx)(S.a,{}),Object(r.jsxs)("div",{className:"menu--product-categories",children:[Object(r.jsxs)("div",{className:"menu__toggle",children:[Object(r.jsx)("i",{className:"icon-menu"}),Object(r.jsx)("span",{children:" Shop by Department"})]}),Object(r.jsx)("div",{className:"menu__content",children:Object(r.jsx)(m.a,{})})]})]}),Object(r.jsx)("div",{className:"header__center",children:Object(r.jsx)(f.a,{})}),Object(r.jsx)("div",{className:"header__right",children:Object(r.jsx)(v.a,{})})]})}),Object(r.jsx)(_.a,{}),Object(r.jsx)("nav",{className:"navigation navigation--product",children:Object(r.jsx)("div",{className:"container",children:Object(r.jsx)(k,{product:t})})})]})},T=c("Tt/Y");t.default=function(){var e=Object(d.useRouter)().query.pid,t=Object(n.useState)(null),c=t[0],s=t[1],j=Object(n.useState)(!1),m=j[0],f=j[1];function v(){return(v=Object(i.a)(a.a.mark((function e(t){var c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f(!0),e.next=3,o.a.getProductsById(t);case 3:(c=e.sent)&&(s(c),setTimeout(function(){f(!1)}.bind(this),250));case 5:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}Object(n.useEffect)((function(){!function(e){v.apply(this,arguments)}(e)}),[e]);var _,g,N=[{text:"Home",url:"/"},{text:"Shop",url:"/shop"},{text:c?c.title:"Loading..."}];return m?_=Object(r.jsx)(b.a,{}):c?(_=Object(r.jsx)(h.a,{product:c}),g=Object(r.jsx)(q,{product:c})):g=Object(r.jsx)(T.a,{}),Object(r.jsxs)(l.a,{title:c?c.title:"Loading...",children:[g,Object(r.jsx)(u.a,{breacrumb:N,layout:"fullwidth"}),Object(r.jsx)("div",{className:"ps-page--product",children:Object(r.jsxs)("div",{className:"ps-container",children:[Object(r.jsxs)("div",{className:"ps-page__container",children:[Object(r.jsx)("div",{className:"ps-page__left",children:_}),Object(r.jsx)("div",{className:"ps-page__right",children:Object(r.jsx)(O.a,{})})]}),Object(r.jsx)(p.a,{layout:"fullwidth",collectionSlug:"deal-of-the-day"}),Object(r.jsx)(x.a,{collectionSlug:"shop-recommend-items"})]})})]})}}},[["Vdsu",1,2,0,3,4,5,6,7,8,9,10,13,14]]]);