PageSourceSearch

https://cowsoncloud.com/assets/index-Cki5xrdI.js

js cowsoncloud.com collected 2026-09-25 03:40:32 UTC 4,772 bytes, 1 lines download raw bytes

1import{r as o,J as j,N as y,o as e,a3 as n,a4 as d,a7 as S,a9 as N,a5 as r,a1 as f}from"./index-H9jDX13W.js";import{u as w}from"./index.esm-Chi1hlV1.js";import{A as h}from"./api-DeoU_h2t.js";import{d as C,e as v,b as R,p as k}from"./App-C8DENdgd.js";const I=({data:z})=>{const g=C(),[m,l]=o.useState(""),[s,b]=o.useState([]),[W,a]=o.useState(!1),x=v(),u={lastName:"",firstName:""},{control:$,setError:F,handleSubmit:B,formState:{errors:P}}=w({defaultValues:u});return o.useEffect(()=>{let i=R().id;i&&a(!0);const c=new FormData;c.append("user_id",i),i&&k(h.userList,c).then(t=>{var p;console.log(t),t&&t.data&&(b(t.data[0]),((p=t.data[0])==null?void 0:p.isProfileUploaded)==1?l(`${h.getMedia}${i}/user_data/profile.jpg?t=${Date.now()}`):l(new URL("/assets/avatar-blank-BS9QgUNq.png",import.meta.url).href)),a(!1)}).catch(t=>{t==="jwt expired"&&g(j()),y.error("Failed to fetch user details"),console.log(t),a(!1)})},[]),e.jsx("div",{style:{backgroundColor:"#f4f6f9",minHeight:"100vh",paddingBottom:"40px"},children:e.jsx(n,{className:"justify-content-start",children:e.jsx(d,{md:"11",lg:"10",xl:"9",children:e.jsxs(S,{style:{borderRadius:"8px",overflow:"hidden",border:"none",boxShadow:"0 10px 30px rgba(0,0,0,0.08)"},children:[e.jsx("div",{style:{padding:"20px 30px"},children:e.jsx("h3",{style:{fontWeight:700,margin:0},children:"User Profile"})}),e.jsx("div",{style:{background:"linear-gradient(135deg, #8B82F9, #7367F0)",padding:"25px 20px 30px 20px"},children:e.jsxs(n,{className:"align-items-center text-center text-md-start",children:[e.jsx(d,{xs:"12",md:"4",className:"text-center text-md-end",children:e.jsx("div",{style:{width:"180px",height:"180px",borderRadius:"50%",backgroundColor:"#ffffff",padding:"8px",boxShadow:"0 10px 30px rgba(0,0,0,0.25)",margin:"0 auto"},children:e.jsx("img",{src:m,alt:"profile",style:{width:"100%",height:"100%",borderRadius:"50%",objectFit:"contain"}})})}),e.jsxs(d,{xs:"12",md:"8",children:[e.jsx("h2",{style:{color:"white",fontWeight:"800",fontSize:"30px",marginBottom:"12px",lineHeight:"1.2"},children:s==null?void 0:s.name}),e.jsx("div",{style:{backgroundColor:"#ffffff",color:"#000000",padding:"6px 18px",fontWeight:700,borderRadius:"6px",fontSize:"13px",display:"inline-block"},children:(s==null?void 0:s.userType)||""})]})]})}),e.jsxs(N,{style:{padding:"30px"},children:[e.jsxs(n,{children:[e.jsxs(d,{xs:"12",md:"6",className:"mb-2",children:[e.jsx(r,{className:"fw-bold",style:{fontSize:"14px"},children:"User ID"}),e.jsx("div",{style:{border:"1px solid #e5e7eb",borderRadius:"6px",padding:"12px 14px",backgroundColor:"#f8f9fa",fontWeight:400,fontSize:"16px"},children:(s==null?void 0:s.id)||""})]}),e.jsxs(d,{xs:"12",md:"6",className:"mb-2",children:[e.jsx(r,{className:"fw-bold",style:{fontSize:"14px"},children:"Name"}),e.jsx("div",{style:{border:"1px solid #e5e7eb",borderRadius:"6px",padding:"12px 14px",backgroundColor:"#f8f9fa",fontWeight:400,fontSize:"16px"},children:(s==null?void 0:s.name)||""})]}),e.jsxs(d,{xs:"12",md:"6",className:"mb-2",children:[e.jsx(r,{className:"fw-bold",style:{fontSize:"14px"},children:"Mobile"}),e.jsx("div",{style:{border:"1px solid #e5e7eb",borderRadius:"6px",padding:"12px 14px",backgroundColor:"#f8f9fa",fontWeight:400,fontSize:"16px"},children:(s==null?void 0:s.phone)||""})]}),e.jsxs(d,{xs:"12",md:"6",className:"mb-2",children:[e.jsx(r,{className:"fw-bold",style:{fontSize:"14px"},children:"Address"}),e.jsx("div",{style:{border:"1px solid #e5e7eb",borderRadius:"6px",padding:"12px 14px",backgroundColor:"#f8f9fa",fontWeight:400,fontSize:"16px"},children:(s==null?void 0:s.address)||""})]}),e.jsxs(d,{xs:"12",md:"6",className:"mb-2",children:[e.jsx(r,{className:"fw-bold",style:{fontSize:"14px"},children:"Pincode"}),e.jsx("div",{style:{border:"1px solid #e5e7eb",borderRadius:"6px",padding:"12px 14px",backgroundColor:"#f8f9fa",fontWeight:400,fontSize:"16px"},children:(s==null?void 0:s.pincode)||""})]}),e.jsxs(d,{xs:"12",md:"6",className:"mb-2",children:[e.jsx(r,{className:"fw-bold",style:{fontSize:"14px"},children:"Registered On"}),e.jsx("div",{style:{border:"1px solid #e5e7eb",borderRadius:"6px",padding:"12px 14px",backgroundColor:"#f8f9fa",fontWeight:400,fontSize:"16px"},children:s!=null&&s.created?s.created.replace("T"," ").replace(".000Z",""):""})]})]}),e.jsxs("div",{className:"text-center mt-4",children:[e.jsx(f,{style:{background:"linear-gradient(135deg, #8B82F9, #7367F0)",border:"none",padding:"8px 26px",marginRight:"12px",borderRadius:"6px",fontWeight:"00"},onClick:()=>x.push("/apps/profile/edit"),children:"Edit Profile"}),e.jsx(f,{outline:!0,style:{borderColor:"#224e69",color:"#093048",padding:"8px 26px",borderRadius:"6px",fontWeight:"500"},onClick:()=>x.push("/apps/passwordChange"),children:"Change Password"})]})]})]})})})})};export{I as default};

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.