PageSourceSearch

https://plant4growthuk-production-a1cd.up.railway.app/static/js/9213.a7564af3.chunk.js

js plant4growthuk-production-a1cd.up.railway.app collected 2026-10-03 12:13:52 UTC 6,350 bytes, 3 lines download raw bytes

1/*! For license information please see 9213.a7564af3.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[9213],{2489(e,s,a){a.d(s,{A:()=>l});const l=(0,a(7784).A)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])},5131(e,s,a){a.d(s,{b:()=>x});var l=a(9379),t=a(5043),i=a(3986),d=(a(7950),a(6851)),n=a(579);const r=["asChild"];var c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,s)=>{const a=(0,d.TL)("Primitive.".concat(s)),c=t.forwardRef((e,t)=>{const{asChild:d}=e,c=(0,i.A)(e,r),m=d?a:s;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(m,(0,l.A)((0,l.A)({},c),{},{ref:t}))});return c.displayName="Primitive.".concat(s),(0,l.A)((0,l.A)({},e),{},{[s]:c})},{});var m=t.forwardRef((e,s)=>(0,n.jsx)(c.label,(0,l.A)((0,l.A)({},e),{},{ref:s,onMouseDown:s=>{var a;s.target.closest("button, input, select, textarea")||(null===(a=e.onMouseDown)||void 0===a||a.call(e,s),!s.defaultPrevented&&s.detail>1&&s.preventDefault())}})));m.displayName="Label";var x=m},8693(e,s,a){a.d(s,{A:()=>l});const l=(0,a(7784).A)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},9213(e,s,a){a.r(s),a.d(s,{SettingsPage:()=>j,default:()=>f});a(5043);var l=a(9970),t=a(8729),i=a(1140),d=a(3390),n=a(2264),r=a(9938),c=a(5949),m=a(8646),x=a(5327),o=a(8693),h=a(2489),v=a(4459),u=a(9766),p=a(579);const j=()=>{var e,s,a,j;const{user:f}=(0,t.As)();return(0,p.jsx)(l.NI,{children:(0,p.jsxs)("div",{className:"space-y-8 max-w-2xl","data-testid":"settings-page",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("h1",{className:"text-2xl font-bold text-[#0D1B2A] mb-2",children:"Settings"}),(0,p.jsx)("p",{className:"text-slate-500",children:"Manage your account settings and preferences"})]}),(0,p.jsxs)(i.Zp,{className:"border-slate-100",children:[(0,p.jsx)(i.aR,{children:(0,p.jsxs)(i.ZB,{className:"text-lg flex items-center gap-2",children:[(0,p.jsx)(v.A,{className:"w-5 h-5 text-[#41EAD4]"}),"Profile Information"]})}),(0,p.jsxs)(i.Wu,{className:"space-y-6",children:[(0,p.jsxs)("div",{className:"flex items-center gap-6",children:[(0,p.jsx)("div",{className:"w-20 h-20 bg-[#0D1B2A] rounded-full flex items-center justify-center text-white font-bold text-3xl",children:(null===f||void 0===f||null===(e=f.name)||void 0===e||null===(s=e.charAt(0))||void 0===s?void 0:s.toUpperCase())||"U"}),(0,p.jsxs)("div",{children:[(0,p.jsx)("h3",{className:"text-xl font-semibold text-[#0D1B2A]",children:null===f||void 0===f?void 0:f.name}),(0,p.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[(0,p.jsx)(c.E,{className:(N=null===f||void 0===f?void 0:f.role,{super_admin:"bg-[#D4AF37]/20 text-[#D4AF37]",instructor:"bg-purple-100 text-purple-700",reviewer:"bg-sky-100 text-sky-700",delegate:"bg-slate-100 text-slate-700"}[N]||"bg-slate-100 text-slate-700"),children:null===f||void 0===f||null===(a=f.role)||void 0===a?void 0:a.replace("_"," ")}),(0,p.jsxs)("span",{className:"text-sm text-slate-500",children:["Member since ",(0,u.Yq)(null===f||void 0===f?void 0:f.created_at)]})]})]})]}),(0,p.jsxs)("div",{className:"space-y-4 pt-4 border-t border-slate-100",children:[(0,p.jsxs)("div",{className:"grid md:grid-cols-2 gap-4",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)(r.J,{htmlFor:"name",children:"Full Name"}),(0,p.jsx)(n.p,{id:"name",defaultValue:null===f||void 0===f?void 0:f.name,className:"mt-1","data-testid":"settings-name"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)(r.J,{htmlFor:"email",children:"Email Address"}),(0,p.jsx)(n.p,{id:"email",type:"email",defaultValue:null===f||void 0===f?void 0:f.email,disabled:!0,className:"mt-1 bg-slate-50","data-testid":"settings-email"})]})]}),(0,p.jsxs)(d.$,{className:"bg-[#0D1B2A] hover:bg-[#1B3A4B]","data-testid":"save-profile-btn",children:[(0,p.jsx)(o.A,{className:"w-4 h-4 mr-2"}),"Save Changes"]})]})]})]}),(0,p.jsxs)(i.Zp,{className:"border-slate-100",children:[(0,p.jsx)(i.aR,{children:(0,p.jsxs)(i.ZB,{className:"text-lg flex items-center gap-2",children:[(0,p.jsx)(h.A,{className:"w-5 h-5 text-[#41EAD4]"}),"Account Details"]}
2)}),(0,p.jsx)(i.Wu,{children:(0,p.jsxs)("div",{className:"space-y-4",children:[(0,p.jsx)("div",{className:"flex items-center justify-between p-4 bg-slate-50 rounded-lg",children:(0,p.jsxs)("div",{className:"flex items-center gap-3",children:[(0,p.jsx)(x.A,{className:"w-5 h-5 text-slate-500"}),(0,p.jsxs)("div",{children:[(0,p.jsx)("p",{className:"font-medium text-[#0D1B2A]",children:"Email"}),(0,p.jsx)("p",{className:"text-sm text-slate-500",children:null===f||void 0===f?void 0:f.email})]})]})}),(0,p.jsx)("div",{className:"flex items-center justify-between p-4 bg-slate-50 rounded-lg",children:(0,p.jsxs)("div",{className:"flex items-center gap-3",children:[(0,p.jsx)(h.A,{className:"w-5 h-5 text-slate-500"}),(0,p.jsxs)("div",{children:[(0,p.jsx)("p",{className:"font-medium text-[#0D1B2A]",children:"Role"}),(0,p.jsx)("p",{className:"text-sm text-slate-500 capitalize",children:null===f||void 0===f||null===(j=f.role)||void 0===j?void 0:j.replace("_"," ")})]})]})}),(0,p.jsx)("div",{className:"flex items-center justify-between p-4 bg-slate-50 rounded-lg",children:(0,p.jsxs)("div",{className:"flex items-center gap-3",children:[(0,p.jsx)(m.A,{className:"w-5 h-5 text-slate-500"}),(0,p.jsxs)("div",{children:[(0,p.jsx)("p",{className:"font-medium text-[#0D1B2A]",children:"Member Since"}),(0,p.jsx)("p",{className:"text-sm text-slate-500",children:(0,u.Yq)(null===f||void 0===f?void 0:f.created_at)})]})]})})]})})]})]})});var N},f=j},9938(e,s,a){a.d(s,{J:()=>o});var l=a(9379),t=a(3986),i=a(5043),d=a(5131),n=a(917),r=a(9766),c=a(579);const m=["className"],x=(0,n.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),o=i.forwardRef((e,s)=>{let{className:a}=e,i=(0,t.A)(e,m);return(0,c.jsx)(d.b,(0,l.A)({ref:s,className:(0,r.cn)(x(),a)},i))});o.displayName=d.b.displayName}}]);
3//# sourceMappingURL=9213.a7564af3.chunk.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.