(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{381:function(e,t,c){},442:function(e,t,c){"use strict";c.r(t),c.d(t,"default",(function(){return m}));var r=c(7),a=c.n(r),n=c(1),l=(c(381),c(8)),s=c(3),o=c(323),p=c(4),u=c(105),i=c(5),b=c(382),d=c(6),_=c(334);function m(e){var t=e.id,c=e.redirect,r=void 0!==c&&c,m=Object(n.useState)(null),g=a()(m,2),O=g[0],j=g[1],E=Object(n.useState)(null),h=a()(E,2),w=h[0],f=h[1],N=Object(_.b)("items",{id:t}),v=a()(N,1)[0],y=v.done,S=v.isError,k=v.isLoading,D=v.payload,F=(Object(d.useLocation)(),Object(s.sprintf)(Object(s.__)("Premium %s","bluehost-wordpress-plugin"),w)),I=F;if(Object(n.useEffect)((function(){j(Object(i.b)(["items",0],D))}),[D]),Object(n.useEffect)((function(){O&&f(Object(b.ucFirst)(O.type))}),[O]),!y||k)return Object(n.createElement)(l.h,null);if(S)return Object(n.createElement)("div",null,Object(n.createElement)(p.n,null),Object(n.createElement)("p",null,Object(s.__)("Oops! Something went wrong.","bluehost-wordpress-plugin")),";");var J=O.buy_url,L=O.created,M=O.images.preview_url,A=O.modified,C=O.name,P=O.prices.single_domain_license,T=O.sales_count,U=O.description,Y=new Date(L),B=new Date(A),G=[Object(s.__)("January","bluehost-wordpress-plugin"),Object(s.__)("February","bluehost-wordpress-plugin"),Object(s.__)("March","bluehost-wordpress-plugin"),Object(s.__)("April","bluehost-wordpress-plugin"),Object(s.__)("May","bluehost-wordpress-plugin"),Object(s.__)("June","bluehost-wordpress-plugin"),Object(s.__)("July","bluehost-wordpress-plugin"),Object(s.__)("August","bluehost-wordpress-plugin"),Object(s.__)("September","bluehost-wordpress-plugin"),Object(s.__)("October","bluehost-wordpress-plugin"),Object(s.__)("November","bluehost-wordpress-plugin"),Object(s.__)("December","bluehost-wordpress-plugin")],H=parseInt(P,10),$=parseInt(T,10).toLocaleString({useGrouping:!0});return r?Object(n.createElement)(l.g,{to:"/marketplace/"+O.type+"/"+t,currentLocation:{state:{redirect:"legacy-single-product-route"}}}):Object(n.createElement)(o.b,{type:"marketplace",className:"page-product"},Object(n.createElement)("header",{className:"page-product__header"},Object(n.createElement)("h1",null,F)),Object(n.createElement)("div",{className:"page-product__breadcrumbs"},Object(n.createElement)("button",{className:"page-product__breadcrumbs-root",onClick:function(){return window.history.back()}},I),Object(n.createElement)("span",null," / "),Object(n.createElement)("span",null,Object(u.decodeEntities)(C))),Object(n.createElement)("div",{className:"page-product__main"},Object(n.createElement)("div",{className:"page-product__main"},Object(n.createElement)("div",{className:"page-product__content"},Object(n.createElement)("h2",{className:"page-product__title"},Object(u.decodeEntities)(C)),Object(n.createElement)("div",{className:"page-product__image"},Object(n.createElement)("img",{src:M,alt:C})),Object(n.createElement)("div",{className:"page-product__description",dangerouslySetInnerHTML:{__html:U}})),Object(n.createElement)("div",{className:"page-product__sidebar"},Object(n.createElement)("div",{className:"page-product__pricing-panel"},Object(n.createElement)("div",{className:"page-product__pricing-panel-price"},"$",H),Object(n.createElement)("div",{className:"page-product__pricing-panel-currency"},"USD"),Object(n.createElement)(l.a,{className:"page-product__pricing-panel-call-to-action",href:J,target:"_blank",isPrimary:!0},Object(s.__)("Buy Now","bluehost-wordpress-plugin")),Object(n.createElement)("div",{className:"page-product__pricing-panel-terms"},Object(s.__)("One Time Fee","bluehost-wordpress-plugin"))),Object(n.createElement)("div",{className:"page-product__info-panel"},Object(n.createElement)("h3",{className:"page-product__info-panel-title"},Object(s.__)("Item Information","bluehost-wordpress-plugin")),Object(n.createElement)("div",{className:"page-product__info-panel-created"},Object(n.createElement)("strong",null,Object(s.__)("Created: ","bluehost-wordpress-plugin")),"".concat(G[Y.getMonth()]," ").concat(Y.getDate(),", ").concat(Y.getFullYear())),Object(n.createElement)("div",{className:"page-product__info-panel-updated"},Object(n.createElement)("strong",null,Object(s.__)("Updated: ","bluehost-wordpress-plugin")),"".concat(G[B.getMonth()]," ").concat(B.getDate(),", ").concat(B.getFullYear())),Object(n.createElement)("div",{className:"page-product__info-panel-sales"},Object(n.createElement)("strong",null,Object(s.__)("Sales: ","bluehost-wordpress-plugin")),$))))))}}}]);