1import{l as T,j as e,a4 as $,w as y,a5 as x,S as j,T as h,aa as te,ar as k,ac as O,ad as C,aw as re,M as D,J as ne,x as ae,D as W,v as ie,K as se}from"./vendor-mui-BhcdUMHY.js";import{g as S,r as m,u as oe,h as le,d as z,L as ce,O as de}from"./vendor-react-9_80szc8.js";import{ae as ue,aa as A,M as X,ac as U,a9 as fe,a3 as E,v as pe,I as he,a6 as xe,w as me,af as ve,ag as ge,ah as je,u as ye,ai as be}from"./index-DcmnhvKq.js";import{r as _e}from"./vendor-charts-DytGfyBM.js";import{C as we}from"./CreditCardOutlined-Dm6jt6Z5.js";import{L as Fe}from"./LockOutlined-fcwFKpuS.js";import{S as ke}from"./SettingOutlined-Dc_i9XAc.js";import{C as Oe}from"./CameraOutlined-qlNIRD2l.js";import"./vendor-firebase-gcvaeGOS.js";function Ce(){const r=T();return e.jsx("svg",{width:"333",height:"61",viewBox:"0 0 333 61",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{opacity:"0.4",d:"M-0.322477 0.641086L-0.418408 0.55164L-9.20939 59.4297L23.6588 106.206L154.575 130.423C236.759 117.931 383.93 93.3326 315.142 94.879C246.355 96.4253 215.362 64.2785 215.362 64.2785C215.362 64.2785 185.497 26.9117 117.864 33.4279C42.6115 40.6783 10.6143 10.8399 -0.322477 0.641086Z",fill:$(r.palette.primary.light,.4)})})}function Re(){const r=T();return e.jsx("svg",{width:"447",height:"116",viewBox:"0 0 447 116",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{opacity:"0.4",d:"M55.2678 22.3777C-49.5465 -14.1611 7.16534 -48.8529 136.242 -34.0647L214.579 -30.0724L448.26 -8.82579L459.956 104.858C396.401 148.386 406.862 51.7166 297.501 67.1292C188.139 82.5419 225.278 33.322 176.928 20.0906C128.579 6.8592 91.4243 34.9821 55.2678 22.3777Z",fill:$(r.palette.primary.light,.4)})})}var qe=_e();const Pe=S(qe),Ie={chart:{background:"transparent"},plotOptions:{radialBar:{hollow:{margin:0,size:"75%"},track:{margin:0},dataLabels:{name:{show:!1},value:{offsetY:5}}}},labels:["Vimeo"]};function Me(){const r=T(),{mode:n}=ue(),[d]=m.useState([30]),[c,l]=m.useState(Ie);return m.useEffect(()=>{l(i=>({...i,colors:[r.palette.primary.main],plotOptions:{radialBar:{track:{background:n===A.DARK?r.palette.grey[200]:r.palette.grey[0]},dataLabels:{value:{fontSize:"1rem",fontWeight:600,offsetY:5,color:r.palette.text.primary}}}},theme:{mode:n===A.DARK?"dark":"light"}}))},[n,r]),e.jsx(y,{id:"profile-radial-chart",children:e.jsx(Pe,{options:c,series:d,type:"radialBar",width:112,height:112})})}function Le(){return e.jsxs(X,{border:!1,content:!1,sx:{bgcolor:"primary.lighter",position:"relative"},children:[e.jsx(y,{sx:r=>({position:"absolute",bottom:-7,left:0,zIndex:1,...r.direction===U.RTL&&{transform:"rotate(180deg)",top:-7,bottom:"unset"}}),children:e.jsx(Ce,{})}),e.jsx(x,{container:!0,justifyContent:"space-between",alignItems:"center",sx:{position:"relative",zIndex:5},children:e.jsx(x,{children:e.jsxs(j,{direction:"row",sx:{gap:{xs:1,sm:2},alignItems:"center"},children:[e.jsx(y,{sx:{ml:{xs:0,sm:1.75}},children:e.jsx(Me,{})}),e.jsxs(j,{sx:{gap:.75},children:[e.jsx(h,{variant:"h5",children:"Edit Your Profile"}),e.jsx(h,{variant:"body2",color:"secondary",children:"Complete your profile to unlock all features"})]})]})})}),e.jsx(y,{sx:r=>({position:"absolute",top:0,right:0,zIndex:1,...r.direction===U.RTL&&{transform:"rotate(180deg)",top:-10,bottom:"unset"}}),children:e.jsx(Re,{})})]})}function B(r){let n=0;switch(r){case"/apps/profiles/user/payment":n=1;break;case"/apps/profiles/user/password":n=2;break;case"/apps/profiles/user/settings":n=3;break;case"/apps/profiles/user/personal":default:n=0}return n}function Se(){const r=oe(),{pathname:n}=le(),[d,c]=m.useState(B(n)),l=(i,f)=>{c(i),r(f)};return m.useEffect(()=>{c(B(n))},[n]),e.jsxs(te,{component:"nav",sx:{p:0,"& .MuiListItemIcon-root":{minWidth:32,color:"grey.500"}},children:[e.jsxs(k,{selected:d===0,onClick:()=>l(0,"/apps/profiles/user/personal"),children:[e.jsx(O,{children:e.jsx(fe,{})}),e.jsx(C,{primary:"Personal Information"})]}),e.jsxs(k,{selected:d===1,onClick:()=>l(1,"/apps/profiles/user/payment"),children:[e.jsx(O,{children:e.jsx(we,{})}),e.jsx(C,{primary:"Payment"})]}),e.jsxs(k,{selected:d===2,onClick:()=>l(2,"/apps/profiles/user/password"),children:[e.jsx(O,{children:e.jsx(Fe,{})}),e.jsx(C,{primary:"Change Password"})]}),e.jsxs(k,{selected:d===3,onClick:()=>l(3,"/apps/profiles/user/settings"),children:[e.jsx(O,{children:e.jsx(ke,{})}),e.jsx(C,{primary:"Settings"})]})]})}var R={exports:{}},_={},q={},N;function Te(){if(N)return q;
1N=1,Object.defineProperty(q,"__esModule",{value:!0});var r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-92.4 233.5h-63.9c-50.1 0-59.8 23.8-59.8 58.8v77.1h119.6l-15.6 120.7h-104V912H539.2V602.2H434.9V481.4h104.3v-89c0-103.3 63.1-159.6 155.3-159.6 44.2 0 82.1 3.3 93.2 4.8v107.9z"}}]},name:"facebook",theme:"filled"};return q.default=r,q}var V;function $e(){if(V)return _;V=1,Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var r=i(z()),n=c(Te()),d=c(E());function c(t){return t&&t.__esModule?t:{default:t}}function l(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,a=new WeakMap;return(l=function(s){return s?a:o})(t)}function i(t,o){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var a=l(o);if(a&&a.has(t))return a.get(t);var s={__proto__:null},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if(u!=="default"&&Object.prototype.hasOwnProperty.call(t,u)){var p=b?Object.getOwnPropertyDescriptor(t,u):null;p&&(p.get||p.set)?Object.defineProperty(s,u,p):s[u]=t[u]}return s.default=t,a&&a.set(t,s),s}function f(){return f=Object.assign?Object.assign.bind():function(t){for(var o=1;o<arguments.length;o++){var a=arguments[o];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])}return t},f.apply(this,arguments)}const v=(t,o)=>r.createElement(d.default,f({},t,{ref:o,icon:n.default})),g=r.forwardRef(v);return _.default=g,_}var H;function ze(){return H||(H=1,function(r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;const d=c($e());function c(i){return i&&i.__esModule?i:{default:i}}const l=d;n.default=l,r.exports=l}(R,R.exports)),R.exports}var Ee=ze();const De=S(Ee);var P={exports:{}},w={},I={},K;function We(){if(K)return I;K=1,Object.defineProperty(I,"__esModule",{value:!0});var r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM349.3 793.7H230.6V411.9h118.7v381.8zm-59.3-434a68.8 68.8 0 1168.8-68.8c-.1 38-30.9 68.8-68.8 68.8zm503.7 434H675.1V608c0-44.3-.8-101.2-61.7-101.2-61.7 0-71.2 48.2-71.2 98v188.9H423.7V411.9h113.8v52.2h1.6c15.8-30 54.5-61.7 112.3-61.7 120.2 0 142.3 79.1 142.3 181.9v209.4z"}}]},name:"linkedin",theme:"filled"};return I.default=r,I}var Y;function Ae(){if(Y)return w;Y=1,Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var r=i(z()),n=c(We()),d=c(E());function c(t){return t&&t.__esModule?t:{default:t}}function l(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,a=new WeakMap;return(l=function(s){return s?a:o})(t)}function i(t,o){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var a=l(o);if(a&&a.has(t))return a.get(t);var s={__proto__:null},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if(u!=="default"&&Object.prototype.hasOwnProperty.call(t,u)){var p=b?Object.getOwnPropertyDescriptor(t,u):null;p&&(p.get||p.set)?Object.defineProperty(s,u,p):s[u]=t[u]}return s.default=t,a&&a.set(t,s),s}function f(){return f=Object.assign?Object.assign.bind():function(t){for(var o=1;o<arguments.length;o++){var a=arguments[o];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])}return t},f.apply(this,arguments)}const v=(t,o)=>r.createElement(d.default,f({},t,{ref:o,icon:n.default})),g=r.forwardRef(v);return w.default=g,w}var G;function Ue(){return G||(G=1,function(r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;const d=c(Ae());function c(i){return i&&i.__esModule?i:{default:i}}const l=d;n.default=l,r.exports=l}(P,P.exports)),P.exports}var Be=Ue();const Ne=S(Be);var M={exports:{}},F={},L={},J;function Ve(){if(J)return L;J=1,Object.defineProperty(L,"__esModule",{value:!0});var r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM727.3 401.7c.3 4.7.3 9.6.3 14.4 0 146.8-111.8 315.9-316.1 315.9-63 0-121.4-18.3-170.6-49.8 9 1 17.6 1.4 26.8 1.4 52 0 99.8-17.6 137.9-47.4-48.8-1-89.8-33-103.8-77 17.1 2.5 32.5 2.5 50.1-2a111 111 0 01-88.9-109v-1.4c14.7 8.3 32
113.4 50.1 14.1a111.13 111.13 0 01-49.5-92.4c0-20.7 5.4-39.6 15.1-56a315.28 315.28 0 00229 116.1C492 353.1 548.4 292 616.2 292c32 0 60.8 13.4 81.1 35 25.1-4.7 49.1-14.1 70.5-26.7-8.3 25.7-25.7 47.4-48.8 61.1 22.4-2.4 44-8.6 64-17.3-15.1 22.2-34 41.9-55.7 57.6z"}}]},name:"twitter-square",theme:"filled"};return L.default=r,L}var Q;function He(){if(Q)return F;Q=1,Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var r=i(z()),n=c(Ve()),d=c(E());function c(t){return t&&t.__esModule?t:{default:t}}function l(t){if(typeof WeakMap!="function")return null;var o=new WeakMap,a=new WeakMap;return(l=function(s){return s?a:o})(t)}function i(t,o){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var a=l(o);if(a&&a.has(t))return a.get(t);var s={__proto__:null},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if(u!=="default"&&Object.prototype.hasOwnProperty.call(t,u)){var p=b?Object.getOwnPropertyDescriptor(t,u):null;p&&(p.get||p.set)?Object.defineProperty(s,u,p):s[u]=t[u]}return s.default=t,a&&a.set(t,s),s}function f(){return f=Object.assign?Object.assign.bind():function(t){for(var o=1;o<arguments.length;o++){var a=arguments[o];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])}return t},f.apply(this,arguments)}const v=(t,o)=>r.createElement(d.default,f({},t,{ref:o,icon:n.default})),g=r.forwardRef(v);return F.default=g,F}var Z;function Ke(){return Z||(Z=1,function(r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;const d=c(He());function c(i){return i&&i.__esModule?i:{default:i}}const l=d;n.default=l,r.exports=l}(M,M.exports)),M.exports}var Ye=Ke();const Ge=S(Ye);function ee({focusInput:r}){const[n,d]=m.useState(void 0),[c,l]=m.useState(""),{userProfile:i}=pe();m.useEffect(()=>{n?l(URL.createObjectURL(n)):i?.avatarUrl?l(i.avatarUrl):l("")},[n,i?.avatarUrl]);const[f,v]=m.useState(null),g=!!f,t=a=>{v(a?.currentTarget)},o=()=>{v(null)};return e.jsx(X,{children:e.jsxs(x,{container:!0,spacing:6,children:[e.jsxs(x,{size:12,children:[e.jsxs(j,{direction:"row",sx:{justifyContent:"flex-end"},children:[e.jsx(he,{variant:"light",color:"secondary",id:"basic-button","aria-controls":g?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":g?"true":void 0,onClick:t,children:e.jsx(xe,{})}),e.jsxs(re,{id:"basic-menu",anchorEl:f,open:g,onClose:o,slotProps:{list:{"aria-labelledby":"basic-button"}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[e.jsx(D,{component:ce,to:"/apps/profiles/user/personal",onClick:()=>{o(),setTimeout(()=>{r()})},children:"Edit"}),e.jsx(D,{onClick:o,disabled:!0,children:"Delete"})]})]}),e.jsxs(j,{sx:{gap:2.5,alignItems:"center"},children:[e.jsxs(ne,{htmlFor:"change-avtar",sx:{position:"relative",borderRadius:"50%",overflow:"hidden","&:hover .MuiBox-root":{opacity:1},cursor:"pointer"},children:[c?e.jsx(me,{alt:"Avatar 1",src:c,sx:{width:124,height:124,border:"1px dashed"}}):e.jsx(y,{sx:{width:124,height:124,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"primary.main",color:"primary.contrastText",fontSize:"3rem",fontWeight:"bold",border:"1px dashed"},children:i?.firstName&&i?.lastName?`${i.firstName.charAt(0)}${i.lastName.charAt(0)}`.toUpperCase():i?.name?.charAt(0)?.toUpperCase()||"U"}),e.jsx(y,{sx:a=>({position:"absolute",top:0,left:0,bgcolor:$(a.palette.secondary.dark,.75),width:"100%",height:"100%",opacity:0,display:"flex",alignItems:"center",justifyContent:"center",color:"secondary.lighter"}),children:e.jsxs(j,{sx:{gap:.5,alignItems:"center"},children:[e.jsx(Oe,{style:{fontSize:"2rem"}}),e.jsx(h,{children:"Upload"})]})})]}),e.jsx(ae,{type:"file",id:"change-avtar",placeholder:"Outlined",variant:"outlined",sx:{display:"none"},onChange:a=>d(a.target.files?.[0])}),e.jsxs(j,{sx:{gap:.5,alignItems:"center"},children:[e.jsx(h,{variant:"h5",children:i?.firstName&&i?.lastName?`${i.firstName} ${i.lastName}`:"User Name"}),e.jsx(h,{color:"secondary",children:i?.JobPosition||"Position not specified"})]}),e.jsxs(j,{direction:"row",sx:{gap:3,"& svg":{fontSize:"1.15rem",cursor:"pointer"}},children:[e.jsx(Ge,{style:{color:ve}}),e.jsx(De,{style:{color:ge}}),e.jsx(Ne,{style:{color:je}})]})]})]}),e.jsx(x,{sx:{display:{sm:"block",md:"none"}},size:{sm:3}}),e.jsx(x,{size:{xs:12,sm:6,md:12},children:e.jsxs(j,{direction:"row",sx:{alignItems:"center",justifyContent:"space-around"},children:[e.jsxs(j,{sx:{gap:.5,alignItems:"center"},children:[e.jsx(h,{variant:"h5",children:"86"}),e.jsx(h,{color:"secondary",children:"Post"})]}),e.jsx(W,{orientation:"vertical",flexItem:!0}),e.jsxs(j,{sx:{gap:.5,alignItems:"center"},children:[e.jsx(h,{variant:"h5",children:"40"}),e.jsx(h,{color:"secondary",children:"Project"})]}),e.jsx(W,{orientation:"vertical",flexItem:!0}),e.jsxs(j,{sx:{gap:.5,alignItems:"center"},children:[e.jsx(h,{variant:"h5",children:"4.5K"}),e.jsx(h,{color:"secondary",children:"Members"})]})]})}),e.jsx(x,{size:12,children:e.jsx(Se,{})})]})})}ee.propTypes={focusInput:ie.func};const Je=()=>{const[r,n]=m.useState("Testing..."),{user:d,firebase:c}=ye();return m.useEffect(()=>{(async()=>{try{if(!d){n("â Error: Not authenticated. Please log in first.");return}if(!c){n("â Error: Firebase not initialized");return}const f=c.firestore().collection("invitations"),v=await f.get(),g=[];v.forEach(s=>{g.push({id:s.id,...s.data()})}),n(`â
SUCCESS: Found ${v.size} invitations`);const t=d.email,a=await f.where("email","==",t).get();if(a.empty)n(`â ï¸ WARNING: No invitation found for ${t}`);else{const s=a.docs[0].data();n(`â
SUCCESS: Found user data - ${s.firstName} ${s.lastName}`)}}catch(i){n(`â Error: ${i.message}`)}})()},[d,c]),e.jsxs(se,{sx:{p:2,m:2,bgcolor:"info.light"},children:[e.jsx(h,{variant:"h6",children:"Firestore Connection Test"}),e.jsx(h,{children:r})]})};function st(){const r=m.useRef(null),n=()=>{r.current?.focus()};return e.jsxs(x,{container:!0,spacing:3,children:[e.jsx(x,{size:12,children:e.jsx(be,{})}),e.jsx(x,{size:12,children:e.jsx(Je,{})}),e.jsx(x,{size:12,children:e.jsx(Le,{})}),e.jsx(x,{size:{xs:12,md:3},children:e.jsx(ee,{focusInput:n})}),e.jsx(x,{size:{xs:12,md:9},children:e.jsx(de,{context:r})})]})}export{st 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.