(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3468],{27517:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return O}});var s=t(67294),i=t(94051),r=t(36355),a=t(14416),o=t(7401),c=t(71823),l=t(32429),f=t(30903),_=t(48769),u=t(61705),m=t(54994),d=t(11457),g=t.n(d),v=t(9350),N=t(85893),x=function(e){var n=e.metaData,t=e.tokenName,s=e.description,i=e.pageLink,r=e.isMarket,a=(0,o.ql)(),c=n.symbol,l=n.offeringPrice,d=n.tokenOffered,x=n.minInvest,h=n.status,p=n.backgroundImageUrl,I=r?"trucpal":void 0;return(0,N.jsxs)(u.t,{href:i,className:g().root,children:[(0,N.jsxs)("div",{className:g().top,style:{backgroundImage:"url(".concat(p,")")},children:[(0,N.jsxs)("div",{className:g().information,children:[(0,N.jsx)(m.N,{status:h,isTradable:r}),r?null:(0,N.jsx)(m.N,{price:l})]}),(0,N.jsx)("div",{className:g().hex}),I?(0,N.jsx)(f.InxIcon,{name:"inx-hexagon",className:g().logo}):(0,N.jsx)(_.i,{className:g().logo,size:45,src:n.iconUrl})]}),(0,N.jsxs)("div",{className:g().content,children:[(0,N.jsxs)("div",{className:g().title,children:[(0,N.jsx)("div",{className:g().title__name,children:t}),(0,N.jsx)("div",{className:g().title__sign,children:c})]}),(0,N.jsx)("div",{className:g().description,children:s}),(0,N.jsxs)("div",{className:g().field,children:[a("invest.minInvest"),":",(0,N.jsxs)("span",{className:g().value,children:["$",v.R.formatNumber(x)]})]}),(0,N.jsxs)("div",{className:g().field,children:[a("invest.tokensOffered"),":",(0,N.jsx)("span",{className:g().value,children:v.R.formatNumber(d)})]})]}),(0,N.jsx)(f.InxIcon,{name:"link-arrow",className:g().arrow})]})},h=t(45392),p=t.n(h),I=t(56886),b=t(67172),j=function(){var e=(0,o.ql)(),n=(0,a.I0)(),t=(0,b.M)((function(e){return e.offering.items||[]}));return(0,s.useEffect)((function(){n(I.P.getOfferingItemsRequest())}),[]),(0,N.jsxs)(l.Z,{staticSidebar:!0,isContentPage:!0,showMobileLogo:!0,fixedHeader:!0,children:[(0,N.jsx)(r.d,{className:p().main,light:e("invest.primary"),white:e("invest.offering")}),(0,N.jsx)("div",{className:p().sub,children:e("invest.subtitle")}),(0,N.jsx)("div",{className:p().container,children:t.map((function(e){return(0,N.jsx)(x,{tokenName:e.assetName,description:e.summary,isMarket:e.isTradeable,metaData:e,pageLink:e.isTradeable?c.t.tradingMarket.build({market:e.marketName}):c.t.invest.build({suffix:e.suffix})},e.symbol)}))})]})},O=function(){var e=(0,o.ql)();return(0,N.jsx)(i.M,{title:e("primaryOffering.title"),multiTheme:!0,children:(0,N.jsx)(j,{})})}},54994:function(e,n,t){"use strict";t.d(n,{N:function(){return d}});var s=t(59499),i=t(67294),r=t(94184),a=t.n(r),o=t(92077),c=t.n(o),l=t(7401),f=t(77228),_=t(39745),u=t.n(_),m=t(85893),d=function(e){var n,t=e.status,r=e.className,o=e.price,_=e.isTradable,d=(0,l.ql)(),g=(0,i.useMemo)((function(){if(o)return"$".concat(c()(o).format("0.00"));if(_)return d("offering.status.tradeable");switch(t){case f.U.OPEN:return d("offering.status.open");case f.U.SOON:return d("offering.status.soon");case f.U.CLOSED:return d("offering.status.closed");default:return""}}),[t,d,o,_]);return(0,m.jsx)("div",{className:a()(u().root,r,(n={},(0,s.Z)(n,u().open,t===f.U.OPEN),(0,s.Z)(n,u().soon,t===f.U.SOON),(0,s.Z)(n,u().closed,t===f.U.CLOSED),(0,s.Z)(n,u().tradeable,_),n)),children:g})}},77228:function(e,n,t){"use strict";var s;t.d(n,{U:function(){return s}}),function(e){e.SOON="SOON",e.OPEN="OPEN",e.CLOSED="CLOSED"}(s||(s={}))},38352:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/invest",function(){return t(27517)}])},39745:function(e){e.exports={root:"investStatusTag_root__2P199",open:"investStatusTag_open__WW3Sc",closed:"investStatusTag_closed__XmbYk",tradeable:"investStatusTag_tradeable__csofy"}},45392:function(e){e.exports={root:"invest_root__bFIIE",main:"invest_main__52A8k",sub:"invest_sub__viJdr",container:"invest_container__Xw1Po"}},11457:function(e){e.exports={root:"offeringItem_root__qxUIr",top:"offeringItem_top__afgEQ",information:"offeringItem_information__oQYu_",content:"offeringItem_content__E4R18",hex:"offeringItem_hex__bq733",logo:"offeringItem_logo__hElDR",title:"offeringItem_title__XQDz7",title__name:"offeringItem_title__name__n_V9n",title__sign:"offeringItem_title__sign___eFIz",description:"offeringItem_description__Ia0BE",field:"offeringItem_field__YizDC",value:"offeringItem_value__nZH67",arrow:"offeringItem_arrow__xnnr_"}}},function(e){e.O(0,[3769,9033,5084,7348,9774,2888,179],(function(){return n=38352,e(e.s=n);var n}));var n=e.O();_N_E=n}]);