PageSourceSearch

https://simplisticnotes.vercel.app/_next/static/chunks/pages/app/profile-deed9ededd599588.js

js simplisticnotes.vercel.app collected 2026-10-03 07:43:41 UTC 12,067 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[154],{6850:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/app/profile",function(){return n(1096)}])},202:function(e,t,n){"use strict";var r=n(5893),a=n(1664),l=n.n(a);n(7294),t.Z=function(e){let{links:t=[]}=e;return(0,r.jsx)("div",{className:"breadcrumbs -translate-y-6",children:(0,r.jsx)("ul",{children:t.map((e,n)=>n===t.length-1?(0,r.jsx)("li",{children:e.title},n):(0,r.jsx)("li",{children:(0,r.jsx)(l(),{className:"text-blue-500",href:e.href,children:e.title})},n))})})}},3796:function(e,t,n){"use strict";var r=n(5893),a=n(4298),l=n.n(a);let s=()=>(0,r.jsx)(l(),{src:"https://cdn.paddle.com/paddle/paddle.js",onLoad(){console.log("VENDOR ID","10680"),console.log("SANDBOX","true"),Paddle.Environment.set("sandbox"),Paddle.Setup({vendor:Number("10680")})}});t.Z=s},1096:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return v},default:function(){return g}});var r=n(5893),a=n(4053),l=n(7294),s=n(202),i=n(5169);let o=async(e,t)=>{let{data:n,error:r}=await e.auth.updateUser({password:void 0,data:t});return await e.auth.refreshSession(),n};var c=n(468),d=n(6501),u=n(6304),m=n(3901),h=n(1664),f=n.n(h),p=n(3796),x=n(4136),b=function(){let{showCancelSubscriptionModal:e,toggleCancelSubscriptionModal:t}=(0,x.v)(),n=(0,u.K)();return(0,r.jsx)("div",{className:["modal modal-bottom sm:modal-middle",e?"modal-open":null].join(" "),children:(0,r.jsxs)("div",{className:"modal-box",children:[(0,r.jsx)("h3",{className:"mb-2 font-semibold text-2xl",children:"Are you sure you want to cancel your subscription?"}),"active"===n.paymentData.subscriptionStatus&&(0,r.jsxs)("p",{className:"text-lg mb-3",children:["Your subscription will stay active until"," ",(0,r.jsx)("span",{className:"font-semibold",children:n.paymentData.subscriptionEndDate})]}),(0,r.jsxs)("div",{className:"modal-action",children:[(0,r.jsx)("button",{className:"btn btn-outline",onClick:t,children:"Cancel"}),(0,r.jsx)("button",{onClick:n.cancelSubscription,className:"btn btn-error",children:"Confirm"})]})]})})};n(8625);var w=n(8),v=!0,g=function(){var e;let t=(0,a.useUser)(),n=(0,a.useSupabaseClient)(),h=(0,u.K)(),{toggleCancelSubscriptionModal:v}=(0,x.v)(),[g,j]=(0,l.useState)(null===(e=t.user_metadata)||void 0===e?void 0:e.full_name),[k,N]=(0,l.useState)(!1),E=async()=>{N(!0),await o(n,{full_name:g}),N(!1),d.Am.success("Profile updated successfully!")};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w.Z,{title:"Profile - Simplistic Notes",description:"Simplistic Notes offers affordable pricing plans to suit your note-taking needs, including a free plan with no credit card required. Choose the plan that's right for you and start taking notes with peace of mind"}),(0,r.jsx)(p.Z,{}),(0,r.jsxs)(i.Z,{heading:"Notes",children:[(0,r.jsx)(s.Z,{links:[{href:"/app",title:"Dashboard"},{title:"Profile"}]}),(0,r.jsxs)("section",{children:[(0,r.jsx)("h2",{className:"text-2xl font-semibold",children:"Profile"}),(0,r.jsxs)("section",{children:[(0,r.jsx)("h3",{className:"text-xl font-semibold mt-8",children:"Personal Information"}),(0,r.jsx)("p",{className:"text-gray-600",children:"Provide your name and email so we can get in touch with you."}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-8 max-w-2xl mt-4",children:[(0,r.jsxs)("div",{className:"form-control grow",children:[(0,r.jsx)("label",{className:"label",children:(0,r.jsx)("span",{className:"label-text text-lg",children:"Your Name"})}),(0,r.jsx)("input",{type:"text",placeholder:"Type your name...",className:"input input-bordered shadow",value:g,onChange:e=>j(e.target.value)})]}),(0,r.jsxs)("div",{className:"form-control grow",children:[(0,r.jsx)("label",{className:"label",children:(0,r.jsx)("span",{className:"label-text text-lg",children:"Your Email"})}),(0,r.jsx)("input",{type:"email",placeholder:"Type your email...",className:"input input-bordered shadow",value:t.email,disabled:!0})]})]}),(0,r.jsxs)("button",{className:"btn btn-outline btn-primary mt-5 gap-2",onClick:E,disabled:k,children:[k&&(0,r.jsx)(c.Z,{}),"Save Changes"]})]}),(0,r.jsxs)("section",{children:[(0,r.jsx)("h3",{className:"text-xl font-semibold mt-8",children:"Membership Information"}),(0,r.jsxs)("p",{className:"text-lg mt-3",children:["Current Plan:"," ",(0,r.jsx)("span",{className:"font-semibold",children:h.getUserPlan()})]}),"FREE"===h.getUserPlan()?(0,r.jsxs)(f(),{href:"/pricing",className:"btn btn-primary btn-outline gap-2 mt-2",children:[(0,r.jsx)(m.Z,{className:"w-4 -mt-1"})," Upgrade Now"]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("p",{className:"text-lg",children:["Subscription status:"," ",(0,r.jsx)("span",{className:"font-semibold",children:h.paymentData.subscriptionStatus.toUpperCase()})]}),(0,r.jsxs)("p",{className:"text-lg",children:["Next billing date:"," ",(0,r.jsx)("span",{className:"font-semibold",children:h.paymentData.subscriptionEndDate.toUpperCase()})]}),(0,r.jsxs)("div",{className:"flex gap-4 flex-wrap mt-4",children:[(0,r.jsx)("button",{className:"btn btn-primary",onClick:h.updatePaymentMethod,children:"Update Payment Method"}
1),(0,r.jsx)("button",{className:"btn btn-error btn-outline",onClick:v,children:"Cancel Subscription"})]})]})]})]})]}),(0,r.jsx)(b,{})]})}},9008:function(e,t,n){e.exports=n(3121)},4298:function(e,t,n){e.exports=n(3573)},2416:function(e,t,n){"use strict";var r=n(7294);let a=r.forwardRef(function({title:e,titleId:t,...n},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15M12 9l-3 3m0 0l3 3m-3-3h12.75"}))});t.Z=a},3407:function(e,t,n){"use strict";var r=n(7294);let a=r.forwardRef(function({title:e,titleId:t,...n},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))});t.Z=a},9239:function(e,t,n){"use strict";var r=n(7294);let a=r.forwardRef(function({title:e,titleId:t,...n},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25"}))});t.Z=a},3306:function(e,t,n){"use strict";var r=n(7294);let a=r.forwardRef(function({title:e,titleId:t,...n},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.666 3.888A2.25 2.25 0 0013.5 2.25h-3c-1.03 0-1.9.693-2.166 1.638m7.332 0c.055.194.084.4.084.612v0a.75.75 0 01-.75.75H9a.75.75 0 01-.75-.75v0c0-.212.03-.418.084-.612m7.332 0c.646.049 1.288.11 1.927.184 1.1.128 1.907 1.077 1.907 2.185V19.5a2.25 2.25 0 01-2.25 2.25H6.75A2.25 2.25 0 014.5 19.5V6.257c0-1.108.806-2.057 1.907-2.185a48.208 48.208 0 011.927-.184"}))});t.Z=a},8547:function(e,t,n){"use strict";var r=n(7294);let a=r.forwardRef(function({title:e,titleId:t,...n},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"}))});t.Z=a},2237:function(e,t,n){"use strict";var r=n(7294);let a=r.forwardRef(function({title:e,titleId:t,...n},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"}))});t.Z=a},8974:function(e,t,n){"use strict";var r=n(7294);let a=r.forwardRef(function({title:e,titleId:t,...n},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125"}))});t.Z=a},3901:function(e,t,n){"use strict";var r=n(7294);let a=r.forwardRef(function({title:e,titleId:t,...n},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z"}))});t.Z=a},6249:function(e,t,n){"use strict";var r=n(7294);let a=r.forwardRef(function({title:e,titleId:t,...n},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}))});t.Z=a},97:function(e,t,n){"use strict";var r=n(7294);let a=r.forwardRef(function({title:e,titleId:t,...n},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0012 15.75a7.488 7.488 0 00-5.982 2.975m11.963 0a9 9 0 10-11.963 0m11.963 0A8.966 8.966 0 0112 21a8.966 8.966 0 01-5.982-2.275M15 9.75a3 3 0 11-6 0 3 3 0 016 0z"}))});t.Z=a}},function(e){e.O(0,[664,922,774,888,179],function(){return e(e.s=6850)}),_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.