1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9322],{87329:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var s=n(50676);var r=n(82961);function c(e){return function(e){if(Array.isArray(e))return(0,s.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||(0,r.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},5522:function(e,t,n){"use strict";n.r(t),n.d(t,{addToWatchlist:function(){return h}});var s=n(87757),r=n.n(s),c=n(92137),l=n(9669),i=n.n(l),a=n(79195),o=n(40627);function u(e,t){return d.apply(this,arguments)}function d(){return(d=(0,c.Z)(r().mark((function e(t,n){var s,c,l;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=t.token.replace("Bearer ",""),e.prev=1,e.next=4,i().post("".concat("https://api.digitalcoinprice.net/api","/v1/user/watchlist/subscribe?userId=").concat(t.userId,"&coinId=").concat(t.coinId,"&subscribeType=").concat(t.subscribeType),undefined,{headers:{authorization:"Bearer "+s,"Access-Control-Allow-Origin":"*","Access-Control-Allow-Credentials":!0}}).then((function(e){if(200==e.status)return console.log("done"),!0}));case 4:e.next=15;break;case 6:return e.prev=6,e.t0=e.catch(1),console.log(e.t0),c={message:e.t0.message,pageUrl:"Watchlist Helper Function",priority:2,tag:"Watchlist Helper Function"},e.next=12,(0,o.O)(c);case 12:l=e.sent,(0,a.Y)(l),alert("Failed to Add Coin to the Watchlist");case 15:case"end":return e.stop()}}),e,null,[[1,6]])})))).apply(this,arguments)}function h(e,t,n){return x.apply(this,arguments)}function x(){return(x=(0,c.Z)(r().mark((function e(t,n,s){var c,l,i,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!s.usr||!s.usr.id){e.next=25;break}if(c=s.usr,!n){e.next=18;break}if(!n.includes(t)){e.next=11;break}return l={token:c.token,userId:c.id,coinId:t,subscribeType:"UNSUBSCRIBE"},e.next=7,u(l,"");case 7:return e.sent,e.abrupt("return","UNSUBSCRIBED");case 11:return i={token:c.token,userId:c.id,coinId:t,subscribeType:"SUBSCRIBE"},e.next=14,u(i,"");case 14:return e.sent,e.abrupt("return","SUBSCRIBED");case 16:e.next=23;break;case 18:return a={token:c.token,userId:c.id,coinId:t,subscribeType:"UNSUBSCRIBE"},e.next=21,u(a,"");case 21:return e.sent,e.abrupt("return","UNSUBSCRIBED");case 23:e.next=26;break;case 25:return e.abrupt("return","0");case 26:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},96221:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return F},default:function(){return U}});var s=n(85893),r=n(67294),c=n(19675),l=n(56541),i=n(34699),a=n(87565),o=n(86893),u=n(10682),d=n(34051),h=n(31555),x=n(20682),p=n(44391),m=n(6645),g=n(58785),j=n(23216),v=n(87757),y=n.n(v),f=n(87329),b=n(92137),N=n(41664),C=n(8193),A=n(63750),T=n(64232),k=n(61666),S=n(29341),Z=n(66926).PriceConvert,D=n(5522).addToWatchlist;function w(e){var t=(0,m.Z)("currencyType"),n=(0,i.Z)(t,2),c=n[0],l=(n[1],(0,m.Z)("currencyFlag")),u=(0,i.Z)(l,2),d=u[0],h=(u[1],(0,m.Z)("currencySymbol")),x=(0,i.Z)(h,2),p=x[0],g=(x[1],(0,r.useState)(p.currencySymbol?p.currencySymbol:"$")),j=(g[0],g[1],(0,r.useState)(c.currencyType?c.currencyType:"fiat")),v=(j[0],j[1],(0,r.useState)(d.currencyFlag?d.currencyFlag:"USD")),w=(v[0],v[1],e.watchlistData),H=(0,r.useState)(w||[]),F=H[0],U=H[1],P=(0,m.Z)(["usr"]),B=(0,i.Z)(P,2),I=B[0],G=(B[1],(0,r.useState)("24h")),M=G[0],R=(G[1],(0,r.useState)("7d")),E=R[0],_=(R[1],(0,r.useState)("30d")),W=_[0],O=(_[1],(0,r.useState)("")),V=O[0],K=O[1],L=[],Y=[],Q=function(e){return F?F.includes(e)?(0,s.jsx)(a.ZP,{content:(0,s.jsx)("small",{className:"black m-0 font-weight-bold",children:"Remove from Watchlist"}),children:(0,s.jsx)("span",{children:(0,s.jsx)(C.pHD,{className:"is-selected"})})}):V===e?(0,s.jsx)("span",{className:"spinner-border spinner-border-sm black",role:"status","aria-hidden":"true"}):(0,s.jsx)(a.ZP,{content:(0,s.jsx)("small",{className:"black m-0 font-weight-bold",children:"Add to Watchlist"}),children:(0,s.jsx)("span",{children:(0,s.jsx)(C.y5j,{})})}):(0,s.jsx)(a.ZP,{content:(0,s.jsx)("small",{className:"black m-0 font-weight-bold",children:"Add to Watchlist"}),children:(0,s.jsx)("span",{children:(0,s.jsx)(C.y5j,{})})})},q=function(){var t=(0,b.Z)(y().mark((function t(n){var s;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return K(n),t.next=3,D(n,F,I);case 3:"SUBSCRIBED"==(s=t.sent)?(U((function(e){return[].concat((0,f.Z)(e),[n])})),K("")):"UNSUBSCRIBED"==s?(U((function(e){return e.filter((function(e){return e!==n}))})),K("")):"0"==s?(K(""),e.loginModel()):console.log("something went wrong!");case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),X=function(e){return(0,s.jsx)("div",{className:"moreOpt-drop",children:(0,s.jsxs)("div",{className:"menuList",children:[(0,s.jsx)("div",{className:"list-item",children:(0,s.jsx)(N.default,{href:"/coins/".concat(e,"/exchanges"),children:(0,s.jsx)("a",{className:"link-item",children:"View Mar
1kets"})})}),(0,s.jsx)("div",{className:"list-item",children:(0,s.jsx)(N.default,{href:"/coins/".concat(e),children:(0,s.jsx)("a",{className:"link-item",children:"View Historical Price Chart"})})}),(0,s.jsx)("div",{className:"list-item",children:(0,s.jsx)(N.default,{href:"/coins/".concat(e,"/historical-data"),children:(0,s.jsx)("a",{className:"link-item",children:"View Historical Data"})})}),(0,s.jsx)("div",{className:"list-item",children:(0,s.jsx)(N.default,{href:"/forecast/".concat(e),children:(0,s.jsx)("a",{className:"link-item",children:"View Forecast"})})})]})})};function $(e,t,n){e&&"30d"===t?(n.map((function(e,t){var n={name:e.name,slug:e.slug,symbol:e.symbol},r={col1:(0,s.jsxs)("span",{className:"CoinFav",onClick:function(){return q(e.slug)},children:[Q(e.slug),(0,s.jsx)("span",{className:"coinFav-num",children:t+1})]}),col2:t+1,col3:n,col4:e.price,col5:e.percentChange24h,col6:e.percentChange7d,col7:e.percentChange30d,col8:e.marketCapUsd,col9:e.volume24h,col10:(0,s.jsx)("div",{className:"comTd text-center",children:e.percentChange7d>0?(0,s.jsx)("div",{className:"priceChart chartUp",children:(0,s.jsx)(T.Z,{layout:"fill",objectFit:"contain",src:"/images/7days/"+e.slug+".png",fallbackSrc:"/images/7days/bitcoin.png",includeWidth:!1,alt:"price chart image"})}):(0,s.jsx)("div",{className:"priceChart chartDown",children:(0,s.jsx)(T.Z,{layout:"fill",objectFit:"contain",src:"/images/7days/"+e.slug+".png",fallbackSrc:"/images/7days/bitcoin.png",includeWidth:!1,alt:"price chart image"})})}),col11:(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(a.ZP,{trigger:"click",placement:"left-start",interactive:"true",animation:"fade",content:X(e.slug),children:(0,s.jsx)("button",{className:"moreOpt-btn btn-blank",children:(0,s.jsx)(A.FQA,{})})})})};L.push(r)})),Y.push({Header:function(){return(0,s.jsx)("div",{style:{textAlign:"center"}})},accessor:"col1",Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"center"},children:t})}}),Y.push({Header:function(){return(0,s.jsx)("div",{className:"numColumn",style:{textAlign:"center"},children:"#"})},accessor:"col2",style:{textAlign:"center"},Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{className:"numColumn",style:{textAlign:"center"},children:t})}}),Y.push({Header:"Name",accessor:"col3",Cell:function(e){var t=e.cell.value;return(0,s.jsx)(S.Y,{values:t})}}),Y.push({Header:"Price",accessor:"col4",style:{textAlign:"right"},Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"right"},children:t&&""!==t?Z(t):"N/A"})},sortType:"basic"}),Y.push({Header:"24h%",accessor:"col5",style:{textAlign:"right"},Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"right"},children:t>0?(0,s.jsxs)("span",{className:"price-perc green",children:[(0,s.jsx)(o.TKU,{}),t,"%"]}):t<0?(0,s.jsxs)("span",{className:"price-perc red",children:[(0,s.jsx)(o.Gx,{}),t,"%"]}):(0,s.jsxs)("span",{className:"price-perc",children:[(0,s.jsx)(o.Gx,{}),t,"%"]})})},sortType:"basic"}),Y.push({Header:"7d%",accessor:"col6",style:{textAlign:"right"},Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"right"},children:t>0?(0,s.jsxs)("span",{className:"price-perc green",children:[(0,s.jsx)(o.TKU,{}),t,"%"]}):t<0?(0,s.jsxs)("span",{className:"price-perc red",children:[(0,s.jsx)(o.Gx,{}),t,"%"]}):(0,s.jsxs)("span",{className:"price-perc",children:[(0,s.jsx)(o.Gx,{}),t,"%"]})})},sortType:"basic"}),Y.push({Header:"30d%",accessor:"col7",style:{textAlign:"right"},Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"right"},children:t>0?(0,s.jsxs)("span",{className:"price-perc green",children:[(0,s.jsx)(o.TKU,{}),t,"%"]}):t<0?(0,s.jsxs)("span",{className:"price-perc red",children:[(0,s.jsx)(o.Gx,{}),t,"%"]}):(0,s.jsxs)("span",{className:"price-perc",children:[(0,s.jsx)(o.Gx,{}),t,"%"]})})},sortType:"basic"}),Y.push({Header:function(){return(0,s.jsxs)("div",{children:["Market Cap",(0,s.jsx)(a.ZP,{placement:"top",content:J(),interactive:"true",animation:"fade",children:(0,s.jsx)("div",{className:"infoicon",children:(0,s.jsx)(A.FPm,{})})})]})},style:{textAlign:"right"},accessor:"col8",Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"right"},children:t&&""!==t?Z(t):"N/A"})},sortType:"basic"}),Y.push({Header:function(){return(0,s.jsxs)("div",{children:["Volume24h",(0,s.jsx)(a.ZP,{placement:"top",content:J(),interactive:"true",animation:"fade",children:(0,s.jsx)("div",{className:"infoicon",children:(0,s.jsx)(A.FPm,{})})})]})},accessor:"col9",style:{textAlign:"right"},Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"right"},children:t&&""!==t?Z(t):"N/A"})},sortType:"basic"}),Y.push({Header:"7d Chart",accessor:"col10",style:{textAlign:"right"},Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"right"},children:t})},sortType:"basic"}),Y.push({Header:function(){return(0,s.jsx)("div",{style:{textAlign:"center"}})},accessor:"col11",Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"center"},children:t})}})):e&&"24h"===t?(n.map((function(e,t){var n={name:e.name,slug:e.slug,symbol
1:e.symbol},r={col1:(0,s.jsxs)("span",{className:"CoinFav",onClick:function(){return q(e.slug)},children:[Q(e.slug),(0,s.jsx)("span",{className:"coinFav-num",children:t+1})]}),col2:t+1,col3:n,col4:e.price,col5:e.percentChange24h,col6:e.percentChange7d,col7:e.percentChange30d,col8:e.marketCapUsd,col9:e.volume24h,col10:(0,s.jsx)("div",{className:"comTd text-center",children:e.percentChange7d>0?(0,s.jsx)("div",{className:"priceChart chartUp",children:(0,s.jsx)(T.Z,{layout:"fill",objectFit:"contain",src:"/images/7days/"+e.slug+".png",fallbackSrc:"/images/7days/bitcoin.png",includeWidth:!1,alt:"price chart image"})}):(0,s.jsx)("div",{className:"priceChart chartDown",children:(0,s.jsx)(T.Z,{layout:"fill",objectFit:"contain",src:"/images/7days/"+e.slug+".png",fallbackSrc:"/images/7days/bitcoin.png",includeWidth:!1,alt:"price chart image"})})}),col11:(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(a.ZP,{trigger:"click",placement:"left-start",interactive:"true",animation:"fade",content:X(e.slug),children:(0,s.jsx)("button",{className:"moreOpt-btn btn-blank",children:(0,s.jsx)(A.FQA,{})})})})};L.push(r)})),Y.push({Header:function(){return(0,s.jsx)("div",{style:{textAlign:"center"}})},accessor:"col1",Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"center"},children:t})}}),Y.push({Header:function(){return(0,s.jsx)("div",{className:"numColumn",style:{textAlign:"center"},children:"#"})},accessor:"col2",style:{textAlign:"center"},Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{className:"numColumn",style:{textAlign:"center"},children:t})}}),Y.push({Header:"Name",accessor:"col3",Cell:function(e){var t=e.cell.value;return(0,s.jsx)(S.Y,{values:t})}}),Y.push({Header:"Price",accessor:"col4",style:{textAlign:"right"},Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"right"},children:t&&""!==t?Z(t):"N/A"})},sortType:"basic"}),Y.push({Header:"24h%",accessor:"col5",style:{textAlign:"right"},Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"right"},children:t>0?(0,s.jsxs)("span",{className:"price-perc green",children:[(0,s.jsx)(o.TKU,{}),t,"%"]}):t<0?(0,s.jsxs)("span",{className:"price-perc red",children:[(0,s.jsx)(o.Gx,{}),t,"%"]}):(0,s.jsxs)("span",{className:"price-perc",children:[(0,s.jsx)(o.Gx,{}),t,"%"]})})},sortType:"basic"}),Y.push({Header:"7d%",accessor:"col6",style:{textAlign:"right"},Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"right"},children:t>0?(0,s.jsxs)("span",{className:"price-perc green",children:[(0,s.jsx)(o.TKU,{}),t,"%"]}):t<0?(0,s.jsxs)("span",{className:"price-perc red",children:[(0,s.jsx)(o.Gx,{}),t,"%"]}):(0,s.jsxs)("span",{className:"price-perc",children:[(0,s.jsx)(o.Gx,{}),t,"%"]})})},sortType:"basic"}),Y.push({Header:"30d%",accessor:"col7",style:{textAlign:"right"},Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"right"},children:t>0?(0,s.jsxs)("span",{className:"price-perc green",children:[(0,s.jsx)(o.TKU,{}),t,"%"]}):t<0?(0,s.jsxs)("span",{className:"price-perc red",children:[(0,s.jsx)(o.Gx,{}),t,"%"]}):(0,s.jsxs)("span",{className:"price-perc",children:[(0,s.jsx)(o.Gx,{}),t,"%"]})})},sortType:"basic"}),Y.push({Header:function(){return(0,s.jsxs)("div",{children:["Market Cap",(0,s.jsx)(a.ZP,{placement:"top",content:J(),interactive:"true",animation:"fade",children:(0,s.jsx)("div",{className:"infoicon",children:(0,s.jsx)(A.FPm,{})})})]})},style:{textAlign:"right"},accessor:"col8",Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"right"},children:t&&""!==t?Z(t):"N/A"})},sortType:"basic"}),Y.push({Header:function(){return(0,s.jsxs)("div",{children:["Volume24h",(0,s.jsx)(a.ZP,{placement:"top",content:J(),interactive:"true",animation:"fade",children:(0,s.jsx)("div",{className:"infoicon",children:(0,s.jsx)(A.FPm,{})})})]})},accessor:"col9",style:{textAlign:"right"},Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"right"},children:t&&""!==t?Z(t):"N/A"})},sortType:"basic"}),Y.push({Header:"7d Chart",accessor:"col10",style:{textAlign:"right"},Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"right"},children:t})},sortType:"basic"}),Y.push({Header:function(){return(0,s.jsx)("div",{style:{textAlign:"center"}})},accessor:"col11",Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"center"},children:t})}})):e&&"7d"===t&&(n.map((function(e,t){var n={name:e.name,slug:e.slug,symbol
1:e.symbol},r={col1:(0,s.jsxs)("span",{className:"CoinFav",onClick:function(){return q(e.slug)},children:[Q(e.slug),(0,s.jsx)("span",{className:"coinFav-num",children:t+1})]}),col2:t+1,col3:n,col4:e.price,col5:e.percentChange24h,col6:e.percentChange7d,col7:e.percentChange30d,col8:e.marketCapUsd,col9:e.volume24h,col10:(0,s.jsx)("div",{className:"comTd text-center",children:e.percentChange7d>0?(0,s.jsx)("div",{className:"priceChart chartUp",children:(0,s.jsx)(T.Z,{layout:"fill",objectFit:"contain",src:"/images/7days/"+e.slug+".png",fallbackSrc:"/images/7days/bitcoin.png",includeWidth:!1,alt:"price chart image"})}):(0,s.jsx)("div",{className:"priceChart chartDown",children:(0,s.jsx)(T.Z,{layout:"fill",objectFit:"contain",src:"/images/7days/"+e.slug+".png",fallbackSrc:"/images/7days/bitcoin.png",includeWidth:!1,alt:"price chart image"})})}),col11:(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(a.ZP,{trigger:"click",placement:"left-start",interactive:"true",animation:"fade",content:X(e.slug),children:(0,s.jsx)("button",{className:"moreOpt-btn btn-blank",children:(0,s.jsx)(A.FQA,{})})})})};L.push(r)})),Y.push({Header:function(){return(0,s.jsx)("div",{style:{textAlign:"center"}})},accessor:"col1",Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"center"},children:t})}}),Y.push({Header:function(){return(0,s.jsx)("div",{className:"numColumn",style:{textAlign:"center"},children:"#"})},accessor:"col2",style:{textAlign:"center"},Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{className:"numColumn",style:{textAlign:"center"},children:t})}}),Y.push({Header:"Name",accessor:"col3",Cell:function(e){var t=e.cell.value;return(0,s.jsx)(S.Y,{values:t})}}),Y.push({Header:"Price",accessor:"col4",style:{textAlign:"right"},Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"right"},children:t&&""!==t?Z(t):"N/A"})},sortType:"basic"}),Y.push({Header:"24h%",accessor:"col5",style:{textAlign:"right"},Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"right"},children:t>0?(0,s.jsxs)("span",{className:"price-perc green",children:[(0,s.jsx)(o.TKU,{}),t,"%"]}):t<0?(0,s.jsxs)("span",{className:"price-perc red",children:[(0,s.jsx)(o.Gx,{}),t,"%"]}):(0,s.jsxs)("span",{className:"price-perc",children:[(0,s.jsx)(o.Gx,{}),t,"%"]})})},sortType:"basic"}),Y.push({Header:"7d%",accessor:"col6",style:{textAlign:"right"},Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"right"},children:t>0?(0,s.jsxs)("span",{className:"price-perc green",children:[(0,s.jsx)(o.TKU,{}),t,"%"]}):t<0?(0,s.jsxs)("span",{className:"price-perc red",children:[(0,s.jsx)(o.Gx,{}),t,"%"]}):(0,s.jsxs)("span",{className:"price-perc",children:[(0,s.jsx)(o.Gx,{}),t,"%"]})})},sortType:"basic"}),Y.push({Header:"30d%",accessor:"col7",style:{textAlign:"right"},Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"right"},children:t>0?(0,s.jsxs)("span",{className:"price-perc green",children:[(0,s.jsx)(o.TKU,{}),t,"%"]}):t<0?(0,s.jsxs)("span",{className:"price-perc red",children:[(0,s.jsx)(o.Gx,{}),t,"%"]}):(0,s.jsxs)("span",{className:"price-perc",children:[(0,s.jsx)(o.Gx,{}),t,"%"]})})},sortType:"basic"}),Y.push({Header:function(){return(0,s.jsxs)("div",{children:["Market Cap",(0,s.jsx)(a.ZP,{placement:"top",content:J(),interactive:"true",animation:"fade",children:(0,s.jsx)("div",{className:"infoicon",children:(0,s.jsx)(A.FPm,{})})})]})},style:{textAlign:"right"},accessor:"col8",Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"right"},children:t&&""!==t?Z(t):"N/A"})},sortType:"basic"}),Y.push({Header:function(){return(0,s.jsxs)("div",{children:["Volume24h",(0,s.jsx)(a.ZP,{placement:"top",content:J(),interactive:"true",animation:"fade",children:(0,s.jsx)("div",{className:"infoicon",children:(0,s.jsx)(A.FPm,{})})})]})},accessor:"col9",style:{textAlign:"right"},Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"right"},children:t&&""!==t?Z(t):"N/A"})},sortType:"basic"}),Y.push({Header:"7d Chart",accessor:"col10",style:{textAlign:"right"},Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"right"},children:t})},sortType:"basic"}),Y.push({Header:function(){return(0,s.jsx)("div",{style:{textAlign:"center"}})},accessor:"col11",Cell:function(e){var t=e.cell.value;return(0,s.jsx)("div",{style:{textAlign:"center"},children:t})}}))}
1e.setThirtyDayData?$(e.setThirtyDayData,W,e.thirtyDayResult["30d"]):e.setTwentyfourHourData?$(e.setTwentyfourHourData,M,e.twentyFourHourResult["24h"]):e.setSevenDayData&&$(e.setSevenDayData,E,e.sevenDayResult["7d"]);var z=r.useMemo((function(){return Y})),J=function(){return(0,s.jsx)("div",{className:"infoOpt-drop",children:(0,s.jsx)("p",{className:"m-0",children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis porro placeat eius iusto, sequi corrupti pariatur voluptatibus accusamus repellat fuga modi dolorum perferendis fugit aspernatur commodi laudantium unde quas deserunt."})})};return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"comShadow",children:(0,s.jsx)("div",{className:"table-responsive",children:(0,s.jsx)(k.Z,{columns:z,data:L})})})})}var H=function(e){var t=e.trendingCoinsData,n=e.globalData,c=e.watchlistData,l=e.loginModel,v=e.loginModelVisibility,y=(0,m.Z)("currencyType"),f=(0,i.Z)(y,2),b=f[0],N=(f[1],(0,m.Z)("currencyFlag")),C=(0,i.Z)(N,2),A=C[0],T=(C[1],(0,m.Z)("currencySymbol")),k=(0,i.Z)(T,2),S=k[0],Z=(k[1],(0,r.useState)(S.currencySymbol?S.currencySymbol:"$")),D=(Z[0],Z[1]),H=(0,r.useState)(b.currencyType?b.currencyType:"fiat"),F=(H[0],H[1]),U=(0,r.useState)(A.currencyFlag?A.currencyFlag:"USD"),P=(U[0],U[1]),B=(0,r.useState)(!1),I=B[0],G=B[1],M=(0,r.useState)(!0),R=M[0],E=M[1],_=(0,r.useState)(!1),W=_[0],O=_[1],V=(0,r.useState)("24h"),K=V[0],L=V[1],Y=function(){l()};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x.Z,{rerenderParentCallback:function(e){e&&Object.keys(e).length>0&&(D(e.currencySymbol),F(e.currencyType),P(e.currencyFlag))},globalDetails:n,loginModelVisibility:v}),(0,s.jsx)("div",{className:"topMover-wrap",children:(0,s.jsxs)(u.Z,{children:[(0,s.jsx)(j.Z,{name:"Trending Coins",PageURL:""}),(0,s.jsx)(d.Z,{children:(0,s.jsx)(h.Z,{xs:12,children:(0,s.jsx)("div",{className:"flexBtn-title",children:(0,s.jsx)("h1",{className:"h1-title",children:"Trending Cryptocurrencies in market."})})})}),(0,s.jsxs)("div",{className:"boxTab-wrap",children:[(0,s.jsx)(g.Z,{activePage:"trending"}),(0,s.jsx)("div",{className:"btn-grp",children:(0,s.jsx)(a.ZP,{trigger:"mouseenter",interactive:"true",placement:"bottom",animation:"fade",allowHTML:"true",content:(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"menuList",children:[(0,s.jsx)("div",{className:"list-item",children:(0,s.jsx)("button",{className:"link-btn",onClick:function(){return L("24h"),G(!1),E(!0),void O(!1)},children:"24h"})}),(0,s.jsx)("div",{className:"list-item",onClick:function(){return L("7d"),G(!1),E(!1),void O(!0)},children:(0,s.jsx)("button",{className:"link-btn",children:"7d"})}),(0,s.jsx)("div",{className:"list-item",onClick:function(){return L("30d"),G(!0),E(!1),void O(!1)},children:(0,s.jsx)("button",{className:"link-btn",children:"30d"})})]})}),children:(0,s.jsxs)("button",{className:"secBtn blueBtn",id:"timeButton",children:["Time: ",K,(0,s.jsx)(o.bTu,{className:"append-icon"})]})})})]}),(0,s.jsxs)("div",{className:"homeTable",children:[I&&(0,s.jsx)(w,{thirtyDayResult:t,setThirtyDayData:I,watchlistData:c,loginModel:Y}),R&&(0,s.jsx)(w,{twentyFourHourResult:t,setTwentyfourHourData:R,watchlistData:c,loginModel:Y}),W&&(0,s.jsx)(w,{sevenDayResult:t,setSevenDayData:W,watchlistData:c,loginModel:Y})]})]})}),(0,s.jsx)(p.Z,{})]})},F=!0,U=function(e){var t=e.trendingCoinsData,n=e.globalData,i=e.statusCode,a=e.curPageUrl,o=e.watchlistData,u=(0,r.useState)(""),d=u[0],h=u[1];return(0,r.useEffect)((function(){if(200!==i)return(0,s.jsx)(c.Z,{statusCode:i});h("")}),[a]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Z,{title:"Trending",description:"Trending - Digital coin price, view coin market cap, cryptocurrency price graph - DigitalCoinPrice",curPageUrl:a}),(0,s.jsx)(H,{trendingCoinsData:t,globalData:n,watchlistData:o,loginModel:function(){h(0==d?1:0)},loginModelVisibility:d})]})}},64309:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/trending-cryptocurrencies",function(){return n(96221)}])}},function(e){e.O(0,[9774,5445,260,4617,3874,1228,6556,3415,5937,9866,3609,994,2013,2963,456,6893,7831,3947,2334,2888,179],(function(){return t=64309,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.