(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{161:function(e,t,c){},170:function(e,t,c){"use strict";c.r(t),c.d(t,"default",(function(){return _}));var a=c(7),r=c.n(a),n=c(0),l=c(145),s=c(2),p=c(39),o=c(129),u=c(5),i=c(15),b=c(130),d=c(21);c(161);function _(e){var t=e.id,c=Object(n.useState)(null),a=r()(c,2),_=a[0],m=a[1],g=Object(n.useState)(null),O=r()(g,2),j=O[0],E=O[1],w=Object(b.b)("items",{id:t}),h=r()(w,1)[0],f=h.done,N=h.isError,v=h.isLoading,y=h.payload,S=Object(s.sprintf)(Object(s.__)("Premium %s","bluehost-wordpress-plugin"),j),D=S;if(Object(n.useEffect)((function(){m(Object(i.a)(["items",0],y))}),[y]),Object(n.useEffect)((function(){_&&E(Object(l.ucFirst)(_.type))}),[_]),!f||v)return Object(n.createElement)(u.f,null);if(N)return Object(n.createElement)("div",null,Object(n.createElement)(d.a,null),Object(n.createElement)("p",null,Object(s.__)("Oops! Something went wrong.","bluehost-wordpress-plugin")),";");var k=_.buy_url,F=_.created,I=_.images.preview_url,J=_.modified,M=_.name,L=_.prices.single_domain_license,A=_.sales_count,C=_.description,P=new Date(F),T=new Date(J),U=[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")],Y=parseInt(L,10),B=parseInt(A,10).toLocaleString({useGrouping:!0});return Object(n.createElement)(o.a,{className:"page-product"},Object(n.createElement)("header",{className:"page-product__header"},Object(n.createElement)("h1",null,S)),Object(n.createElement)("div",{className:"page-product__breadcrumbs"},Object(n.createElement)("button",{className:"page-product__breadcrumbs-root",onClick:function(){return window.history.back()}},D),Object(n.createElement)("span",null," / "),Object(n.createElement)("span",null,Object(p.decodeEntities)(M))),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(p.decodeEntities)(M)),Object(n.createElement)("div",{className:"page-product__image"},Object(n.createElement)("img",{src:I,alt:M})),Object(n.createElement)("div",{className:"page-product__description",dangerouslySetInnerHTML:{__html:C}})),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"},"$",Y),Object(n.createElement)("div",{className:"page-product__pricing-panel-currency"},"USD"),Object(n.createElement)(u.a,{className:"page-product__pricing-panel-call-to-action",href:k,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(U[P.getMonth()]," ").concat(P.getDate(),", ").concat(P.getFullYear())),Object(n.createElement)("div",{className:"page-product__info-panel-updated"},Object(n.createElement)("strong",null,Object(s.__)("Updated: ","bluehost-wordpress-plugin")),"".concat(U[T.getMonth()]," ").concat(T.getDate(),", ").concat(T.getFullYear())),Object(n.createElement)("div",{className:"page-product__info-panel-sales"},Object(n.createElement)("strong",null,Object(s.__)("Sales: ","bluehost-wordpress-plugin")),B))))))}}}]);