1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7876],{32174:function(s,e,m){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/shareListings/[id]",function(){return m(60506)}])},60506:function(s,e,m){"use strict";m.r(e);var d=m(97458),i=m(64568),l=m(63436),t=m(13924),a=m(52983),r=m(67278),n=m(97369),c=m(54268);e.default=()=>{var s,e,m,o,x,p,u,g,h,v,y,N,j,f,w,b,S,_,z,A,C;let E=(0,t.useRouter)(),{id:P}=E.query,[T,k]=(0,a.useState)(!0),[R,q]=(0,a.useState)(),D=c.Z.getAllCountries();return(0,a.useEffect)(()=>{E.isReady&&l.Z.get("https://api.marketxventures.com"+"/admin/shareListings/".concat(P)).then(s=>{q(s.data),k(!1)}).catch(s=>{k(!1)})},[E.isReady,P]),(0,d.jsxs)(i.lq,{children:[T&&(0,d.jsx)(r.Mb,{}),(0,d.jsxs)("div",{className:"".concat(T?"opacity-0":""," mt-8 overflow-hidden bg-white shadow sm:rounded-lg"),children:[(0,d.jsx)("div",{className:"bg-primary px-4 py-5 sm:px-6",children:(0,d.jsx)("h3",{className:"text-lg font-medium leading-6 text-white",children:"Share Listing Information"})}),(0,d.jsx)("div",{className:"border-t border-gray-200 px-4 py-5 sm:p-0",children:(0,d.jsxs)("dl",{className:"sm:divide-y sm:divide-gray-200",children:[(0,d.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5",children:[(0,d.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"Company name"}),(0,d.jsx)("dd",{className:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0",children:(null==R?void 0:R.companyName)?null==R?void 0:R.companyName:"--"})]}),(0,d.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5",children:[(0,d.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"Share price"}),(0,d.jsx)("dd",{className:"mt-1 text-sm capitalize text-gray-900 sm:col-span-2 sm:mt-0",children:(null==R?void 0:R.sharePrice)?(0,n.xG)(Number(null==R?void 0:R.sharePrice)):"--"})]}),(0,d.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5",children:[(0,d.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"Number of shares"}),(0,d.jsx)("dd",{className:"mt-1 text-sm capitalize text-gray-900 sm:col-span-2 sm:mt-0",children:(null==R?void 0:R.numberOfShares)?null==R?void 0:R.numberOfShares:"--"})]}),(0,d.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5",children:[(0,d.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"Last funding round share price"}),(0,d.jsx)("dd",{className:"mt-1 text-sm capitalize text-gray-900 sm:col-span-2 sm:mt-0",children:(null==R?void 0:R.lastFundingRoundSharePrice)?(0,n.xG)(Number(null==R?void 0:R.lastFundingRoundSharePrice)):"--"})]}),(0,d.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5",children:[(0,d.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"Share type"}),(0,d.jsx)("dd",{className:"mt-1 text-sm capitalize text-gray-900 sm:col-span-2 sm:mt-0",children:(null==R?void 0:R.shareType)?null==R?void 0:R.shareType:"--"})]}),(0,d.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5",children:[(0,d.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"Deadline at"}),(0,d.jsx)("dd",{className:"mt-1 text-sm capitalize text-gray-900 sm:col-span-2 sm:mt-0",children:(null==R?void 0:R.deadlineAt)?(0,n.x6)(new Date(R.deadlineAt)):"--"})]}),(0,d.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5",children:[(0,d.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"How did you acquire your shares"}),(0,d.jsx)("dd",{className:"mt-1 text-sm capitalize text-gray-900 sm:col-span-2 sm:mt-0",children:(null==R?void 0:R.howAcquireShares)?null==R?void 0:R.howAcquireShares:"--"})]}),(0,d.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5",children:[(0,d.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"Is vested shares"}),(0,d.jsx)("dd",{className:"mt-1 text-sm capitalize text-gray-900 sm:col-span-2 sm:mt-0",children:(null==R?void 0:R.isVestedShares)===!0?"Yes":"No"})]}),(0,d.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5",children:[(0,d.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"Any restriction to sell your shares"}),(0,d.jsx)("dd",{className:"mt-1 text-sm capitalize text-gray-900 sm:col-span-2 sm:mt-0",children:(null==R?void 0:R.isAnyRestrictionsToSellYourShares)===!0?"Yes":"No"})]}),(0,d.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5",children:[(0,d.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"Notes"}),(0,d.jsx)("dd",{className:"mt-1 text-sm capitalize text-gray-900 sm:col-span-2 sm:mt-0",children:(null==R?void 0:R.notes)?null==R?void 0:R.notes:"--"})]})]})})]}),(null==R?void 0:R.documents)&&(null==R?void 0:null===(s=R.documents)||void 0===s?void 0:s.length)>0&&(0,d.jsxs)("div",{className:"".concat(T?"opacity-0":""," mt-16 overflow-hidden bg-white shadow sm:rounded-lg"),children:[(0,d.jsx)("div",{className:"bg-primary",children:(0,d.jsx)("dl",{className:"sm:divide-y sm:divide-gray-200",children:(0,d.jsxs)("div",{className:"grid grid-cols-3 py-4 sm:gap-4 sm:px-6 sm:py-5 md:grid-cols-3",children:[(0,d.jsx)("dt",{className:"text-lg font-medium leading-6 text-white",children:"Document name"}),(0,d.jsx)("dt",{className:"text-lg font-medium leading-6 text-white",children:"Document type"}),(0,d.jsx)("dt",{className:"text-lg font-medium leading-6 text-white"})]})})}),(0,d.jsx)("div",{className:"border-t border-gray-200 px-4 py-5 sm:p-0",children:(0,d.jsx)("dl",{className:"sm:divide-y sm:divide-gray-200",children:(null==R?void 0:R.documents)?null==R?void 0:null===(e=R.documents)||void 0===e?void 0:e.map((s,e)=>(0,d.jsxs)("div",{className:"grid-cols-3 py-4 sm:grid sm:gap-4 sm:px-6 sm:py-5 md:grid-cols-3",children:[(0,d.jsx)("dt",{className:"text-sm font-medium uppercase text-gray-500",children:s.name?s.name:"--"}),(0,d.jsx)("dt",{className:"text-sm font-medium uppercase text-gray-500",children:s.documentType?s.documentType.replace(/([a-z0-9])([A-Z])/g,"$1 $2"):"--"}),(0,d.jsx)("dt",{className:"text-sm font-medium uppercase text-gray-500",children:s.url?(0,d.jsx)("a",{className:"cursor-pointer text-primary hover:text-primary-light",onClick:()=>(0,n.x9)(s.id,{admin:!0}
1),children:"view"}):"--"})]},e)):(0,d.jsx)(d.Fragment,{})})})]}),(0,d.jsxs)("div",{className:"".concat(T?"opacity-0":""," mt-8 overflow-hidden bg-white shadow sm:rounded-lg"),children:[(0,d.jsx)("div",{className:"bg-primary px-4 py-5 sm:px-6",children:(0,d.jsx)("h3",{className:"text-lg font-medium leading-6 text-white",children:"User Details"})}),(0,d.jsx)("div",{className:"border-t border-gray-200 px-4 py-5 sm:p-0",children:(0,d.jsxs)("dl",{className:"sm:divide-y sm:divide-gray-200",children:[(0,d.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5",children:[(0,d.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"User Email"}),(0,d.jsx)("dd",{className:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0",children:(null==R?void 0:null===(o=R.profile)||void 0===o?void 0:null===(m=o.user)||void 0===m?void 0:m.email)?null==R?void 0:null===(p=R.profile)||void 0===p?void 0:null===(x=p.user)||void 0===x?void 0:x.email:"--"})]}),(0,d.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5",children:[(0,d.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"First Name"}),(0,d.jsx)("dd",{className:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0",children:(null==R?void 0:null===(g=R.profile)||void 0===g?void 0:null===(u=g.user)||void 0===u?void 0:u.firstName)?null==R?void 0:null===(v=R.profile)||void 0===v?void 0:null===(h=v.user)||void 0===h?void 0:h.firstName:"--"})]}),(0,d.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5",children:[(0,d.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"Last Name"}),(0,d.jsx)("dd",{className:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0",children:(null==R?void 0:null===(N=R.profile)||void 0===N?void 0:null===(y=N.user)||void 0===y?void 0:y.lastName)?null==R?void 0:null===(f=R.profile)||void 0===f?void 0:null===(j=f.user)||void 0===j?void 0:j.lastName:"--"})]}),(0,d.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5",children:[(0,d.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"Country"}),(0,d.jsx)("dd",{className:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0",children:(null==R?void 0:null===(w=R.profile)||void 0===w?void 0:w.country)?D.find(s=>{var e;return(null==s?void 0:s.isoCode)===(null==R?void 0:null===(e=R.profile)||void 0===e?void 0:e.country)}).name:"--"})]}),(0,d.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5",children:[(0,d.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"State"}),(0,d.jsx)("dd",{className:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0",children:(null==R?void 0:null===(b=R.profile)||void 0===b?void 0:b.state)?null==R?void 0:null===(S=R.profile)||void 0===S?void 0:S.state:"--"})]}),(0,d.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5",children:[(0,d.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"City"}),(0,d.jsx)("dd",{className:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0",children:(null==R?void 0:null===(_=R.profile)||void 0===_?void 0:_.city)?null==R?void 0:null===(z=R.profile)||void 0===z?void 0:z.city:"--"})]}),(0,d.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5",children:[(0,d.jsx)("dt",{className:"text-sm font-medium text-gray-500",children:"Phone number"}),(0,d.jsx)("dd",{className:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0",children:(null==R?void 0:null===(A=R.profile)||void 0===A?void 0:A.phoneNumber)?null==R?void 0:null===(C=R.profile)||void 0===C?void 0:C.phoneNumber:"--"})]})]})})]})]})}}},function(s){s.O(0,[2231,4568,9774,2888,179],function(){return s(s.s=32174)}),_N_E=s.O()}]); 2//# sourceMappingURL=[id]-e1a4e89dcdde51f2.js.map
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.