PageSourceSearch

https://jobtolk.vercel.app/assets/Settings-C4BOXbPo.js

js jobtolk.vercel.app collected 2026-10-03 07:09:14 UTC 6,949 bytes, 1 lines download raw bytes

1import{j as e,a8 as s,aj as r,ak as a,al as i,w as t,v as d,I as n,am as o,an as l,ao as c}from"./ui-vendor-CEtDzZva.js";import{f as m,r as x}from"./react-vendor-DEfURMYH.js";import{u,m as p,n as h,B as f,t as j}from"./index-CYcoPiiM.js";import{S as g}from"./switch-s-3HBRFK.js";import"./supabase-cZ-WULkb.js";import"./query-Bc83NeIp.js";import"./index-CUFDmhc5.js";const b=()=>{const b=m(),{user:N,signOut:v}=u(),{theme:y,setTheme:w}=p(),{soundEnabled:k,setSoundEnabled:C,permissionGranted:S}=h(),[P,E]=x.useState(!1),[G,M]=x.useState(S);return e.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-background via-primary/5 to-accent/5",children:[e.jsx("div",{className:"fixed top-0 left-0 right-0 bg-background/80 backdrop-blur-xl border-b border-primary/15 shadow-glass z-40 py-2",children:e.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 max-w-md mx-auto",children:[e.jsx("button",{onClick:()=>b(-1),className:"w-9 h-9 rounded-lg bg-background/40 backdrop-blur-sm hover:bg-muted/70 transition-all duration-300 flex items-center justify-center border border-primary/15 hover:border-primary/30 hover:shadow-soft active:scale-95 group",children:e.jsx(s,{className:"w-5 h-5 text-foreground group-hover:text-primary transition-colors"})}),e.jsx("h1",{className:"text-lg font-bold bg-gradient-to-r from-primary via-accent to-primary bg-clip-text text-transparent",children:"Settings"})]})}),e.jsx("main",{className:"pt-20 pb-20 px-4 max-w-md mx-auto animate-fade-in",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx("h2",{className:"text-sm font-semibold text-muted-foreground uppercase tracking-wider",children:"Appearance"}),e.jsx("div",{className:"glass-card-premium p-4 rounded-xl border border-primary/20 hover:border-primary/30 transition-all duration-300",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-primary/10",children:"dark"===y?e.jsx(r,{className:"w-5 h-5 text-primary"}):e.jsx(a,{className:"w-5 h-5 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground",children:"Dark Mode"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Toggle dark theme"})]})]}),e.jsx(g,{checked:"dark"===y,onCheckedChange:e=>w(e?"dark":"light")})]})})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("h2",{className:"text-sm font-semibold text-muted-foreground uppercase tracking-wider",children:"Notifications"}),e.jsx("div",{className:"glass-card-premium p-4 rounded-xl border border-primary/20 hover:border-primary/30 transition-all duration-300",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-primary/10",children:e.jsx(i,{className:"w-5 h-5 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground",children:"Desktop Notifications"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Get notified about activity"})]})]}),e.jsx(g,{checked:G,onCheckedChange:async()=>{if(G)M(!1),j({title:"Notifications disabled",description:"You can re-enable them anytime"});else if("undefined"!=typeof Notification&&"granted"!==Notification.permission){"granted"===await Notification.requestPermission()?(M(!0),j({title:"🔔 Notifications enabled",description:"You will now receive desktop notifications"})):j({title:"Permission denied",description:"Please enable notifications in your browser settings",variant:"destructive"})}}})]})}),e.jsx("div",{className:"glass-card-premium p-4 rounded-xl border border-primary/20 hover:border-primary/30 transition-all duration-300",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-primary/10",children:k?e.jsx(t,{className:"w-5 h-5 text-primary"}):e.jsx(d,{className:"w-5 h-5 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground",children:"Notification Sounds"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Play sounds for notifications"})]})]}),e.jsx(g,{checked:k,onCheckedChange:()=>{const e=!k;C(e),j({title:e?"🔊 Sounds enabled":"🔇 Sounds disabled",description:e?"You will hear notification sounds":"Notification sounds are muted"})}})]})})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("h2",{className:"text-sm font-semibold text-muted-foreground uppercase tracking-wider",children:"Account"}),e.jsx("button",{onClick:()=>b("/profile-settings"),className:"w-full glass-card-premium p-4 rounded-xl border border-primary/20 hover:border-primary/30 transition-all duration-300 text-left group",children:e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-primary/10",children:e.jsx(n,{className:"w-5 h-5 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground",children:"Edit Profile"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Manage your account"})]})]})})}),e.jsx("button",{className:"w-full glass-card-premium p-4 rounded-xl border border-primary/20 hover:border-primary/30 transition-all duration-300 text-left group",children:e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-primary/10",children:e.jsx(o,{className:"w-5 h-5 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground",children:"Privacy & Security"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Manage your data"})]})]})})}),e.jsx("button",{className:"w-full glass-card-premium p-4 rounded-xl border border-primary/20 hover:border-primary/30 transition-all duration-300 text-left group",children:e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-primary/10",children:e.jsx(l,{className:"w-5 h-5 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground",children:"Help & Support"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Get help and feedback"})]})]})})})]}),e.jsx("div",{className:"pt-4",children:e.jsxs(f,{onClick:async()=>{E(!0);try{await v(),b("/auth")}catch(e){}finally{E(!1)}},disabled:P,variant:"destructive",className:"w-full h-12 rounded-xl font-semibold hover:shadow-soft transition-all duration-300 hover:scale-[1.02] active:scale-100",children:[e.jsx(c,{className:"w-5 h-5 mr-2"}),P?"Logging out...":"Log Out"]})})]})})]})};export{b 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.