1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[638],{8034:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/payment/success",function(){return r(7173)}])},2422:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return createAsyncLocalStorage}});let r=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");let FakeAsyncLocalStorage=class FakeAsyncLocalStorage{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}};let n=globalThis.AsyncLocalStorage;function createAsyncLocalStorage(){return n?new n:new FakeAsyncLocalStorage}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8427:function(e,t,r){"use strict";function clientHookInServerComponentError(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return clientHookInServerComponentError}}),r(8754),r(7294),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},636:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return ReadonlyURLSearchParams},useSearchParams:function(){return useSearchParams},usePathname:function(){return usePathname},ServerInsertedHTMLContext:function(){return l.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return l.useServerInsertedHTML},useRouter:function(){return useRouter},useParams:function(){return useParams},useSelectedLayoutSegments:function(){return useSelectedLayoutSegments},useSelectedLayoutSegment:function(){return useSelectedLayoutSegment},redirect:function(){return u.redirect},permanentRedirect:function(){return u.permanentRedirect},RedirectType:function(){return u.RedirectType},notFound:function(){return c.notFound}});let n=r(7294),o=r(9031),a=r(1593),s=r(8427),i=r(6160),l=r(252),u=r(7866),c=r(9363),d=Symbol("internal for urlsearchparams readonly");function readonlyURLSearchParamsError(){return Error("ReadonlyURLSearchParams cannot be modified")}let ReadonlyURLSearchParams=class ReadonlyURLSearchParams{[Symbol.iterator](){return this[d][Symbol.iterator]()}append(){throw readonlyURLSearchParamsError()}delete(){throw readonlyURLSearchParamsError()}set(){throw readonlyURLSearchParamsError()}sort(){throw readonlyURLSearchParamsError()}constructor(e){this[d]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}};function useSearchParams(){(0,s.clientHookInServerComponentError)("useSearchParams");let e=(0,n.useContext)(a.SearchParamsContext),t=(0,n.useMemo)(()=>e?new ReadonlyURLSearchParams(e):null,[e]);return t}function usePathname(){return(0,s.clientHookInServerComponentError)("usePathname"),(0,n.useContext)(a.PathnameContext)}function useRouter(){(0,s.clientHookInServerComponentError)("useRouter");let e=(0,n.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function useParams(){(0,s.clientHookInServerComponentError)("useParams");let e=(0,n.useContext)(o.GlobalLayoutRouterContext),t=(0,n.useContext)(a.PathParamsContext);return(0,n.useMemo)(()=>(null==e?void 0:e.tree)?function getSelectedParams(e,t){void 0===t&&(t={});let r=e[1];for(let e of Object.values(r)){let r=e[0],n=Array.isArray(r),o=n?r[1]:r;if(!o||o.startsWith("__PAGE__"))continue;let a=n&&("c"===r[2]||"oc"===r[2]);a?t[r[0]]=r[1].split("/"):n&&(t[r[0]]=r[1]),t=getSelectedParams(e,t)}return t}(e.tree):t,[null==e?void 0:e.tree,t])}function useSelectedLayoutSegments(e){void 0===e&&(e="children"),(0,s.clientHookInServerComponentError)("use
1SelectedLayoutSegments");let{tree:t}=(0,n.useContext)(o.LayoutRouterContext);return function getSelectedLayoutSegmentPath(e,t,r,n){let o;if(void 0===r&&(r=!0),void 0===n&&(n=[]),r)o=e[1][t];else{var a;let t=e[1];o=null!=(a=t.children)?a:Object.values(t)[0]}if(!o)return n;let s=o[0],l=(0,i.getSegmentValue)(s);return!l||l.startsWith("__PAGE__")?n:(n.push(l),getSelectedLayoutSegmentPath(o,t,!1,n))}(t,e)}function useSelectedLayoutSegment(e){void 0===e&&(e="children"),(0,s.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=useSelectedLayoutSegments(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9363:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{notFound:function(){return notFound},isNotFoundError:function(){return isNotFoundError}});let r="NEXT_NOT_FOUND";function notFound(){let e=Error(r);throw e.digest=r,e}function isNotFoundError(e){return(null==e?void 0:e.digest)===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7866:function(e,t,r){"use strict";var n,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return n},getRedirectError:function(){return getRedirectError},redirect:function(){return redirect},permanentRedirect:function(){return permanentRedirect},isRedirectError:function(){return isRedirectError},getURLFromRedirectError:function(){return getURLFromRedirectError},getRedirectTypeFromError:function(){return getRedirectTypeFromError}});let a=r(3743),s="NEXT_REDIRECT";function getRedirectError(e,t,r){void 0===r&&(r=!1);let n=Error(s);n.digest=s+";"+t+";"+e+";"+r;let o=a.requestAsyncStorage.getStore();return o&&(n.mutableCookies=o.mutableCookies),n}function redirect(e,t){throw void 0===t&&(t="replace"),getRedirectError(e,t,!1)}function permanentRedirect(e,t){throw void 0===t&&(t="replace"),getRedirectError(e,t,!0)}function isRedirectError(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,r,n,o]=e.digest.split(";",4);return t===s&&("replace"===r||"push"===r)&&"string"==typeof n&&("true"===o||"false"===o)}function getURLFromRedirectError(e){return isRedirectError(e)?e.digest.split(";",3)[2]:null}function getRedirectTypeFromError(e){if(!isRedirectError(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(o=n||(n={})).push="push",o.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3743:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return o}});let n=r(2422),o=(0,n.createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6160:function(e,t){"use strict";function getSegmentValue(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return getSegmentValue}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},252:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return a}
1,useServerInsertedHTML:function(){return useServerInsertedHTML}});let n=r(1757),o=n._(r(7294)),a=o.default.createContext(null);function useServerInsertedHTML(e){let t=(0,o.useContext)(a);t&&t(e)}},6336:function(e,t,r){"use strict";r.d(t,{Z:function(){return Layout}});var n=r(5893),o=r(9008),a=r.n(o),s=r(1784),i=r(6582),l=r(7851),components_Button=e=>{let{children:t,className:r,secondary:o=!1,...a}=e;return(0,n.jsx)("button",{className:(0,l.m)("rounded-full ".concat(o?"bg-transparent":"bg-[#1F4C6D]"," px-8 py-3 font-semibold ").concat(o?"text-[#7e5ae8]":"text-white"," ").concat(o?"border-2 border-[#7e5ae8]":"border-none"," transition duration-200 ease-in-out ").concat(o?"":"hover:shadow-md","}"),r),...a,children:t})},u=r(7294),c=r(6286),d=r(7814),f=r(6492),m=r(5059),h=r.n(m),p=r(5675),x=r.n(p),y=r(1664),b=r.n(y),g=r(1163),v=r(3413),j=r(9420),S=r(9357),w=r(9417),Sidebar=e=>{let{isSubscribed:t,hasPremiumSubscription:r,isTestTrial:o,isPublic:a=!1,onItemClick:s}=e,{pathname:i,push:l}=(0,g.useRouter)(),{user:m}=(0,c.aF)(),p=null==m?void 0:m.id,[y,_]=(0,u.useState)(1),{data:N}=(0,v.N)();null==N||N.isTrialing;let{data:E}=(0,f.a)(["surveyStatus",p],async()=>{if(p){let e=await fetch("".concat("https://sustained-rhino-401521.uc.r.appspot.com/api","/checkSurveyFilled?userId=").concat(p)),t=await e.json();return t.surveyFilled}return!1},{enabled:!!p,staleTime:6e5,cacheTime:18e5}),{data:P}=(0,f.a)(["conversationStatus",p],async()=>{if(!p)return null;let e=await S.Z.get("/user/conversation-status",{params:{userId:p}});return e.data},{enabled:!!p,staleTime:3e5,cacheTime:6e5,onSuccess:e=>{e&&void 0!==e.currentStep&&_(e.currentStep)}}),R=[{title:"Dashboard",href:"/Dashboard",icon:w.J9Y}],handleItemClick=(e,t)=>{a&&s?s(e):"_blank"===t?window.open(e,"_blank"):l(e)};return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("header",{className:"fixed top-0 left-0 right-0 z-[999] bg-white shadow-md",children:(0,n.jsxs)("div",{className:"flex items-center justify-between px-6 py-4",children:[(0,n.jsx)(b(),{href:"/",className:"block",children:(0,n.jsx)(x(),{width:140,height:40,src:"/images/getpantom_logo.png",alt:"getpantom logo",className:"h-10 w-auto"})}),(0,n.jsxs)("nav",{className:"flex items-center",children:[R.map((e,t)=>(0,n.jsxs)("div",{className:h()("group relative cursor-pointer",{"ml-6":0!==t}),onClick:()=>handleItemClick(e.href,e.target),children:[(0,n.jsxs)("span",{className:h()("text-sm font-medium transition-colors duration-200 ease-in-out",{"text-black":i===e.href,"text-gray-600 hover:text-black":i!==e.href}),children:[e.title,e.premium&&(0,n.jsx)("span",{className:"ml-1 text-yellow-500",children:(0,n.jsx)(d.G,{icon:w.Tab,className:"h-3 w-3"})})]}),(0,n.jsx)("span",{className:"absolute bottom-0 left-0 h-0.5 w-full scale-x-0 bg-black transition-transform duration-200 ease-in-out group-hover:scale-x-100"})]},e.href)),!a&&(0,n.jsx)("div",{className:"ml-6",children:(0,n.jsx)(j.Z,{})})]})]})})})};function Layout(e){var t;let{children:r,disableMaxWidth:o=!1}=e,{data:l}=(0,v.N)(),u=null==l?void 0:null===(t=l.subscriptions)||void 0===t?void 0:t.filter(e=>"active"===e.status||"trialing"===e.status),c=!!(null==u?void 0:u.length),d=(null==l?void 0:l.hasPremiumSubscription)||c,f=(null==l?void 0:l.isTrialing)||!1;return console.log("Subscription Status:",c?"Subscribed":"Not Subscribed"),u?u.forEach((e,t)=>{console.log("Subscription ".concat(t+1," ID:"),e.id)}):console.log("No Active Subscriptions"),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a(),{children:[(0,n.jsx)("title",{children:"getpantom"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsx)(s.k,{children:e=>{let{reset:t}=e;return(0,n.jsx)(i.SV,{fallbackRender:e=>{let{error:t,resetErrorBoundary:r}=e;return(0,n.jsxs)("div",{className:"font-albertus",children:["There was an error!"," ",(0,n.jsx)(components_Button,{onClick:()=>r(),children:"Try again"}),(0,n.jsx)("pre",{style:{whiteSpace:"normal"},children:t.message})]})},onReset:t,children:(0,n.jsxs)("div",{className:"flex h-screen overflow-hidden bg-gray-100 font-albertus",children:[(0,n.jsx)(Sidebar,{isSubscribed:c,hasPremiumSubscription:d,isTestTrial:f}),(0,n.jsx)("main",{className:"flex-1 overflow-auto bg-gray-100",children:(0,n.jsx)("div",{className:"h-full bg-gray-100",children:r})})]})})}})]})}},7173:function(e,t,r){"use strict";r.r(t);
1var n=r(5893),o=r(7294),a=r(6286),s=r(6336),i=r(8226),l=r(9332),u=r(2086);t.default=()=>{let{userId:e}=(0,a.aC)(),t=(0,l.useRouter)(),[r,c]=(0,o.useState)(null),[d,f]=(0,o.useState)(!0);(0,o.useEffect)(()=>{e&&loadCreditBalance()},[e]);let loadCreditBalance=async()=>{if(e)try{let t=await (0,u.vC)(e);c(t)}catch(e){console.error("Error loading credit balance:",e)}finally{f(!1)}};return(0,n.jsx)(s.Z,{children:(0,n.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-green-50 to-blue-50 flex items-center justify-center px-4 py-12",children:(0,n.jsx)(i.E.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.5},className:"max-w-2xl w-full",children:(0,n.jsxs)("div",{className:"bg-white rounded-3xl shadow-2xl overflow-hidden",children:[(0,n.jsxs)("div",{className:"bg-gradient-to-r from-green-500 to-green-600 px-8 py-12 text-center",children:[(0,n.jsx)(i.E.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.2,type:"spring",stiffness:200},className:"w-24 h-24 bg-white rounded-full flex items-center justify-center mx-auto mb-6",children:(0,n.jsx)("svg",{className:"w-12 h-12 text-green-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})})}),(0,n.jsx)("h1",{className:"text-4xl font-bold text-white mb-3",children:"Payment Successful! \uD83C\uDF89"}),(0,n.jsx)("p",{className:"text-xl text-green-50",children:"Your payment has been processed successfully"})]}),(0,n.jsx)("div",{className:"px-8 py-12",children:d?(0,n.jsx)("div",{className:"flex justify-center py-8",children:(0,n.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary"})}):(0,n.jsxs)("div",{className:"space-y-8",children:[null!==r&&(0,n.jsxs)(i.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"bg-gradient-to-br from-primary to-primary-hover rounded-2xl p-8 text-white text-center",children:[(0,n.jsx)("p",{className:"text-lg font-medium text-white/90 mb-2",children:"Your New Balance"}),(0,n.jsxs)("div",{className:"flex items-baseline justify-center gap-2",children:[(0,n.jsx)("span",{className:"text-6xl font-bold",children:r}),(0,n.jsx)("span",{className:"text-2xl font-medium text-white/90",children:"credits"})]})]}),(0,n.jsxs)(i.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},children:[(0,n.jsx)("h3",{className:"text-2xl font-bold text-gray-900 mb-4 text-center",children:"What's Next?"}),(0,n.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mb-8",children:[(0,n.jsxs)("div",{className:"bg-gray-50 rounded-xl p-6",children:[(0,n.jsx)("div",{className:"w-12 h-12 bg-primary rounded-full flex items-center justify-center mb-4",children:(0,n.jsx)("svg",{className:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),(0,n.jsx)("h4",{className:"font-bold text-gray-900 mb-2",children:"Find Investors"}),(0,n.jsx)("p",{className:"text-sm text-gray-600",children:"Use our AI-powered matching to discover investors that align with your startup"})]}),(0,n.jsxs)("div",{className:"bg-gray-50 rounded-xl p-6",children:[(0,n.jsx)("div",{className:"w-12 h-12 bg-primary rounded-full flex items-center justify-center mb-4",children:(0,n.jsx)("svg",{className:"w-6 h-6 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})})}),(0,n.jsx)("h4",{className:"font-bold text-gray-900 mb-2",children:"Research & Analyze"}),(0,n.jsx)("p",{className:"text-sm text-gray-600",children:"Get deep insights on each investor including portfolio, preferences, and contact info"})]})]})]}),(0,n.jsxs)(i.E.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},className:"flex flex-col sm:flex-row gap-4",children:[(0,n.jsx)("button",{onClick:()=>t.push("/shortlist"),className:"flex-1 py-4 px-6 bg-primary hover:bg-primary-hover text-white font-bold text-lg rounded-xl shadow-lg hover:shadow-xl transition-all",children:"Start Researching Investors"}),(0,n.jsx)("button",{onClick:()=>t.push("/ProfileSettings"),className:"flex-1 py-4 px-6 bg-gray-100 hover:bg-gray-200 text-gray-900 font-bold text-lg rounded-xl transition-all",children:"View Credit Dashboard"})]}),(0,n.jsx)(i.E.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{delay:.6},className:"bg-blue-50 border border-blue-200 rounded-xl p-4 text-center",children:(0,n.jsxs)("p",{className:"text-sm text-blue-800",children:[(0,n.jsx)("span",{className:"font-semibold",children:"\uD83D\uDCE7 Confirmation email sent!"}),(0,n.jsx)("br",{}),"Check your inbox for payment details and receipt"]})})]})})]})})})})}},3413:function(e,t,r){"use strict";r.d(t,{N:function(){return useSubscriptionQuery}});var n=r(6492),o=r(2086),a=r(6286);let s=["subscription"],useSubscriptionQuery=()=>{let{userId:e}=(0,a.aC)();return(0,n.a)({queryKey:[...s,e],queryFn:async()=>{if(!e)return{subscriptions:[],hasPremiumSubscription:!1,isTrialing:!1};try{let t=await (0,o.ku)(e);return console.log("[useSubscriptionQuery] Fetched data:",t),t}catch(e){return console.warn("[SUBSCRIPTION QUERY] Error fetching subscription data:",e),{subscriptions:[],hasPremiumSubscription:!1,isTrialing:!1,message:"Subscription data temporarily unavailable"}}},suspense:!1,staleTime:3e5,cacheTime:6e5,refetchOnWindowFocus:!0})}},9332:function(e,t,r){e.exports=r(636)}},function(e){e.O(0,[976,61,753,727,226,631,774,888,179],function(){return e(e.s=8034)}),_N_E=e.O()}]);
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.