1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2065],{10261:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/cancel-profile",function(){return t(64768)}])},21731:function(e,r,t){"use strict";t.d(r,{u:function(){return c}});var n=t(85893),s=t(11355),a=t(42545),i=t(67294),l=t(5434),o=t(13243),c=function(e){var r=e.isOpen,t=e.onClose,c=e.children,d=e.title,u=e.size;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s.u,{appear:!0,show:r,as:i.Fragment,children:(0,n.jsxs)(a.V,{as:"div",className:"relative z-40",onClose:t,children:[(0,n.jsx)(s.u.Child,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,n.jsx)("div",{className:"fixed inset-0 bg-black/25 backdrop-blur-sm"})}),(0,n.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,n.jsx)("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:(0,n.jsx)(s.u.Child,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,n.jsx)(a.V.Panel,{className:"w-full ".concat(void 0===u?"max-w-lg":u),children:(0,n.jsx)("div",{children:(0,n.jsxs)("div",{className:"bg relative w-full transform rounded-3xl border border-border bg-card p-6 shadow-xl backdrop-blur transition-all",children:[(0,n.jsxs)("div",{className:" flex w-full items-center justify-between gap-2 ".concat(d&&"mb-5 border-b-2 border-card-light pb-3"),children:[(0,n.jsx)("h3",{className:"text-xl font-bold dark:text-gray-200",children:d}),(0,n.jsx)(o.Z,{onClick:t,children:(0,n.jsx)(l.lTq,{})})]}),c]})})})})})})]})})})}},73890:function(e,r,t){"use strict";t.d(r,{Z:function(){return d}});var n=t(85893),s=t(92484),a=t(56707),i=t(39590),l=t(11163),o=t(5434),c=t(84193);function d(e){var r=e.user;e.children;var t=(0,l.useRouter)(),d=(null==r?void 0:r.advisor_profile)!=null?[{name:"Profile",href:"/settings/profile",icon:s.Z,current:"/settings/profile"===t.asPath},{name:"Advisor Profile",href:"/settings/advisor-profile",icon:s.Z,current:"/settings/advisor-profile"===t.asPath},{name:"Plan & Billing",href:"/settings/billing",icon:a.Z,current:"/settings/billing"===t.asPath||"/settings/cancel-profile"===t.asPath||"/settings/request-refund"===t.asPath},]:[{name:"Profile",href:"/settings/profile",icon:s.Z,current:"/settings/profile"===t.asPath},{name:"Password",href:"/settings/password",icon:i.Z,current:"/settings/password"===t.asPath},{name:"Deactivate Account",href:"/settings/cancel-profile",icon:o.wTw,current:"/settings/cancel-profile"===t.asPath||"/settings/request-refund"===t.asPath},{name:"Plan & Billing",href:"/settings/billing",icon:a.Z,current:"/settings/billing"===t.asPath||"/settings/request-refund"===t.asPath},];return(0,n.jsx)("nav",{className:"bg-muted-v2/50 p-[6px] rounded-xl grid grid-cols-2 md:grid-cols-4 gap-2",children:d.map(function(e){return(0,n.jsx)(c.Z,{href:e.href,className:"".concat(e.current?"bg-card-v2 rounded-xl":"text-foreground-v2/50"," p-2 text-center text-sm"),"aria-current":e.current?"page":void 0,children:(0,n.jsx)("span",{className:"",children:e.name})},e.name)})})}},13243:function(e,r,t){"use strict";var n=t(26042),s=t(69396),a=t(99534),i=t(85893);t(67294);var l=t(1451),o=t(97200),c=function(e){var r=e.children,t=e.className,c=e.isLoading,d=(0,a.Z)(e,["children","className","isLoading"]);return(0,i.jsx)("button",(0,s.Z)((0,n.Z)({className:(0,o.AK)("inline-flex items-center justify-center rounded-full p-1 disabled:opacity-90 border border-gray-150 hover:border-blue-600",t),disabled:c},d),{children:c?(0,i.jsx)(l.WUS,{className:"animate-spin",size:18}):r}))};r.Z=c},64768:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return v}});var n=t(85893),s=t(27148),a=t(47568),i=t(828),l=t(20414),o=t(67294),c=t(60155),d=t(84513),u=t(73890),m=t(54984),x=t(59967),g=t(21731),h=t(34636);function f(){var e,r,t=(0,o.useState)(!1),s=t[0],f=t[1],v=(0,o.useState)(!1),p=v[0],j=v[1],b=(0,o.useState)(""),N=b[0],y=b[1],k=(0,d.Z)().user,w=(0,i.Z)((0,m.N_)(),2),Z=w[0],C=w[1].isLoading,P=(0,i.Z)((0,m.nW)(),2),_=P[0],q=P[1].isLoading,D=(0,m.vs)({}),L=D.data,F=D.isLoading,R=D.isFetching,A=D.refetch,z=F||R,E=null==L?void 0:L.data,O=(e=(0,a.Z)(function(){var e,r,t,n;return(0,l.__generator)(this,function(s){switch(s.label){case 0:if(!N.trim())return(0,x._N)("Please provide feedback before requesting deleti
1on"),[2];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,Z({reason:N})];case 2:if(null==(e=s.sent())?void 0:e.error)return(0,x._N)((null==e?void 0:null===(r=e.error)||void 0===r?void 0:null===(t=r.data)||void 0===t?void 0:t.message)||"Failed to request account deletion"),[2];return setTimeout(function(){A()},1e3),(0,x.x9)("Account deletion request submitted successfully"),[3,4];case 3:return n=s.sent(),(0,x._N)(n.message||"Failed to request account deletion"),[3,4];case 4:return f(!1),y(""),[2]}})}),function(){return e.apply(this,arguments)}),T=(r=(0,a.Z)(function(){var e,r,t,n;return(0,l.__generator)(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,_({})];case 1:if(null==(e=s.sent())?void 0:e.error)return(0,x._N)((null==e?void 0:null===(r=e.error)||void 0===r?void 0:null===(t=r.data)||void 0===t?void 0:t.message)||"Failed to cancel deletion request"),[2];return setTimeout(function(){A()},1e3),(0,x.x9)("Deletion request cancelled successfully"),[3,3];case 2:return n=s.sent(),(0,x._N)(n.message||"Failed to cancel deletion request"),[3,3];case 3:return j(!1),[2]}})}),function(){return r.apply(this,arguments)});return(0,n.jsxs)("div",{className:"mx-auto max-w-4xl",children:[(0,n.jsx)(u.Z,{user:k}),(0,n.jsx)("div",{className:"mt-6 space-y-6",children:z?(0,n.jsxs)("div",{className:"animate-pulse space-y-3",children:[(0,n.jsx)("div",{className:"h-20 w-full rounded-lg border border-gray-600 bg-gray-200 p-4 dark:bg-gray-700"}),(0,n.jsx)("div",{className:"h-14 w-full rounded-lg border border-gray-600 bg-gray-200 dark:bg-gray-700"})]}):(0,n.jsxs)(n.Fragment,{children:[function(){if(!E)return null;var e=E||{},r=e.status,t=e.createdAt,s=e.updatedAt,a=e.adminMessage;return"pending"===r?(0,n.jsx)("div",{className:"mb-6 rounded-lg border border-orange-200 bg-orange-50 p-4 dark:border-orange-800 dark:bg-orange-900/20",children:(0,n.jsxs)("div",{className:"flex items-start",children:[(0,n.jsx)(c.EuD,{className:"h-5 w-5 text-orange-600 dark:text-orange-400"}),(0,n.jsxs)("div",{className:"ml-3",children:[(0,n.jsx)("h3",{className:"text-sm font-medium text-orange-800 dark:text-orange-200",children:"Deletion Request Received"}),(0,n.jsx)("p",{className:"mt-2 text-sm text-orange-700 dark:text-orange-300",children:"Your account deletion request has been received and will be processed soon."}),t&&(0,n.jsxs)("p",{className:"mt-1 text-xs",children:["Requested on: ",new Date(t).toLocaleDateString()]}),(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(h.Z,{variant:"warning",size:"sm",onClick:function(){return j(!0)},className:"rounded-md",children:"Cancel Deletion Request"})})]})]})}):"rejected"===r?(0,n.jsx)("div",{className:"mb-6 rounded-lg border border-red-200 bg-red-50 p-4 dark:border-red-800 dark:bg-red-900/20",children:(0,n.jsxs)("div",{className:"flex items-start",children:[(0,n.jsx)(c.OvZ,{className:"h-5 w-5 text-red-600 dark:text-red-400"}),(0,n.jsxs)("div",{className:"ml-3",children:[(0,n.jsx)("h3",{className:"text-sm font-medium text-red-800 dark:text-red-200",children:"Deletion Request Rejected"}),(0,n.jsx)("p",{className:"mt-2 text-sm text-red-700 dark:text-red-300",children:a||"Your account deletion request has been rejected."}),s&&(0,n.jsxs)("p",{className:"mt-1 text-xs",children:["Rejected on: ",new Date(s).toLocaleDateString()]})]})]})}):null}(),(null==E?void 0:E.status)!=="pending"&&(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"px-6 py-4",children:[(0,n.jsx)("h2",{className:"text-lg font-medium text-gray-900 dark:text-gray-100",children:"Deactivate Account"}),(0,n.jsx)("p",{className:"mt-2 text-sm text-gray-600 dark:text-gray-400",children:"Once you deactivate your account, there is no going back. Please be certain."})]}),(0,n.jsx)("div",{className:"px-6 py-3",children:(0,n.jsx)(h.Z,{variant:"error",size:"sm",onClick:function(){return f(!0)},className:"rounded-xl bg-error-v2 hover:bg-error-v2/80",children:(0,n.jsx)("div",{className:"flex items-center gap-1",children:(null==E?void 0:E.status)==="pending"?"Deletion Pending":(null==E?void 0:E.status)==="approved"?"Account Deleted":"Deactivate Account"})})})]})]})}),(0,n.jsx)(g.u,{isOpen:s,onClose:function(){return f(!1)},children:(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(c.OvZ,{className:"h-6 w-6 text-red-600 dark:text-red-400"}),(0,n.jsx)("h3",{className:"ml-3 text-lg font-medium leading-6 text-gray-900 dark:text-gray-100",children:"Delete Account"})]}),(0,n.jsx)("p",{className:"mt-4 text-sm text-gray-500 dark:text-gray-400",children:"Deleting your account is permanent. Please let us know why you are requesting this action."}),(0,n.jsxs)("div",{className:"mt-4 text-left",children:[(0,n.jsx)("label",{htmlFor:"feedback",className:"block text-sm font-medium text-gray-700 dark:text-gray-300",children:"Reason for deleti
1on"}),(0,n.jsx)("textarea",{id:"feedback",rows:4,className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-red-500 focus:ring-red-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white sm:text-sm",placeholder:"Please share your feedback...",value:N,onChange:function(e){return y(e.target.value)}})]}),(0,n.jsx)("div",{className:"mt-6 flex justify-end space-x-3",children:(0,n.jsx)(h.Z,{variant:"error",size:"sm",isLoading:C,disabled:!N.trim()||z,onClick:O,loadingText:"Confirming Deletion",children:"Confirm Deletion"})})]})}),(0,n.jsx)(g.u,{isOpen:p,onClose:function(){return j(!1)},children:(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(c.OvZ,{className:"h-6 w-6 text-orange-600 dark:text-orange-400"}),(0,n.jsx)("h3",{className:"ml-3 text-lg font-medium leading-6 text-gray-900 dark:text-gray-100",children:"Cancel Deletion Request"})]}),(0,n.jsx)("p",{className:"mt-4 text-sm text-gray-500 dark:text-gray-400",children:"Are you sure you want to cancel your account deletion request?"}),(0,n.jsxs)("div",{className:"mt-6 flex justify-end space-x-3",children:[(0,n.jsx)(h.Z,{variant:"primary-outline",size:"sm",onClick:function(){return j(!1)},children:"No, Keep Request"}),(0,n.jsx)(h.Z,{variant:"primary",size:"sm",isLoading:q,onClick:T,loadingText:"Cancelling Request",children:"Yes, Cancel Request"})]})]})})]})}function v(){return(0,n.jsx)(s.cl,{meta:(0,n.jsx)(s.h_,{title:"Cancel Profile - CoFoundersLab",description:"Cancel Profile on CoFoundersLab, the leading entrepreneurial network where like-minded entrepreneurs connect, meet and collaborate."}),children:(0,n.jsx)("div",{className:"bg-card-v2 p-6 rounded-xl border border-border-v2/20 mb-8",children:(0,n.jsx)(f,{})})})}},56707:function(e,r,t){"use strict";var n=t(67294);let s=n.forwardRef(function(e,r){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:r},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z"}))});r.Z=s},39590:function(e,r,t){"use strict";var n=t(67294);let s=n.forwardRef(function(e,r){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:r},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"}))});r.Z=s},92484:function(e,r,t){"use strict";var n=t(67294);let s=n.forwardRef(function(e,r){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:r},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.121 17.804A13.937 13.937 0 0112 16c2.5 0 4.847.655 6.879 1.804M15 10a3 3 0 11-6 0 3 3 0 016 0zm6 2a9 9 0 11-18 0 9 9 0 0118 0z"}))});r.Z=s}},function(e){e.O(0,[9570,1228,4617,1827,2876,6556,260,1664,2892,2499,1130,1098,7148,9774,2888,179],function(){return e(e.s=10261)}),_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.