48ea61cdcc
- Product documentation in docs/products/ - Updated MEMORY.md with product info - quiXzoom Auth Core as AAMOS Identity product
38 lines
38 KiB
JavaScript
38 lines
38 KiB
JavaScript
import{x as A,r as c,j as e,P as Y,c as ze,O as je,d as Be,aa as Fe,ab as Ve,g as Ue,i as D,ac as $e,a as z,ad as ye,ae as qe,p as v,S as Ke,af as W,v as C,G as J,o as Ne,a9 as le,y as k,z as S,ag as E,ah as T,T as He,F as Q,a8 as Ge,C as ve,H as be,w as M,ai as de,aj as Xe,u as We,a2 as Ze,k as Je,n as Qe,U as Ye,ak as _,q as w,I as me,al as es,M as ss,am as ts,an as as,a7 as rs,B as is}from"./index-CZD3_4lD.js";import{D as ns,a as cs,b as os,c as ls,u as ds,S as I}from"./dropdown-menu-CFWQzY9-.js";import{B as q}from"./badge-D3Mn__J4.js";import{u as ms,A as ue}from"./useIdentityVerification-Cb6XYb0B.js";import{C as us}from"./check-CCL32zXH.js";import{P as ps}from"./progress-BVXi0hgU.js";import{R as xs}from"./refresh-cw-CCL0Gd2i.js";import{C as we}from"./clock-CHYQgZWG.js";import{T as hs}from"./trending-up-CVyK6WFK.js";import{E as fs}from"./eye-IKrhkOAd.js";import{L as gs}from"./leaf-BV-5O-4e.js";import{Z as js}from"./zap-DA9vuiyP.js";import{S as ys,a as Ns,b as vs,c as bs,d as ws}from"./select-Dcsz1esX.js";import{M as ks}from"./mail-C8_RqWpe.js";import{S as pe}from"./shield-DIM7u0gp.js";import{C as Ss}from"./circle-alert-DFiBooaQ.js";import{B as K}from"./building-2-BpMHggJ8.js";import{C as xe}from"./credit-card-C9X53A_j.js";import{P as Cs}from"./palette-BI1sulb6.js";import{S as Ps}from"./save-CMkrLPh2.js";import"./index-C6sfL5Wv.js";import"./chevron-right-Dvw0FPw3.js";import"./circle-CNf9xg3I.js";import"./chevron-down-DA--jGG2.js";/**
|
||
* @license lucide-react v0.462.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Es=A("BellOff",[["path",{d:"M8.7 3A6 6 0 0 1 18 8a21.3 21.3 0 0 0 .6 5",key:"o7mx20"}],["path",{d:"M17 17H3s3-2 3-9a4.67 4.67 0 0 1 .3-1.7",key:"16f1lm"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
||
* @license lucide-react v0.462.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const he=A("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]);/**
|
||
* @license lucide-react v0.462.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ts=A("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
|
||
* @license lucide-react v0.462.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ke=A("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
||
* @license lucide-react v0.462.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ls=A("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
||
* @license lucide-react v0.462.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _s=A("Radar",[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]]);/**
|
||
* @license lucide-react v0.462.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ds=A("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);var H="Switch",[Ms]=Ue(H),[Rs,ee]=Ms(H);function As(t){const{__scopeSwitch:s,checked:a,children:x,defaultChecked:n,disabled:r,form:i,name:u,onCheckedChange:d,required:m,value:j="on",internal_do_not_use_render:h}=t,[l,f]=ze({prop:a,defaultProp:n??!1,onChange:d,caller:H}),[o,g]=c.useState(null),[y,N]=c.useState(null),P=c.useRef(!1),L=o?!!i||!!o.closest("form"):!0,R={checked:l,setChecked:f,disabled:r,control:o,setControl:g,name:u,form:i,value:j,hasConsumerStoppedPropagationRef:P,required:m,defaultChecked:n,isFormControl:L,bubbleInput:y,setBubbleInput:N};return e.jsx(Rs,{scope:s,...R,children:Is(h)?h(R):x})}var Se="SwitchTrigger",Ce=c.forwardRef(({__scopeSwitch:t,onClick:s,...a},x)=>{const{value:n,disabled:r,checked:i,required:u,setControl:d,setChecked:m,hasConsumerStoppedPropagationRef:j,isFormControl:h,bubbleInput:l}=ee(Se,t),f=je(x,d);return e.jsx(Y.button,{type:"button",role:"switch","aria-checked":i,"aria-required":u,"data-state":_e(i),"data-disabled":r?"":void 0,disabled:r,value:n,...a,ref:f,onClick:Be(s,o=>{m(g=>!g),l&&h&&(j.current=o.isPropagationStopped(),j.current||o.stopPropagation())})})});Ce.displayName=Se;var se=c.forwardRef((t,s)=>{const{__scopeSwitch:a,name:x,checked:n,defaultChecked:r,required:i,disabled:u,value:d,onCheckedChange:m,form:j,...h}=t;return e.jsx(As,{__scopeSwitch:a,checked:n,defaultChecked:r,disabled:u,required:i,onCheckedChange:m,name:x,form:j,value:d,internal_do_not_use_render:({isFormControl:l})=>e.jsxs(e.Fragment,{children:[e.jsx(Ce,{...h,ref:s,__scopeSwitch:a}),l&&e.jsx(Le,{__scopeSwitch:a})]})})});se.displayName=H;var Pe="SwitchThumb",Ee=c.forwardRef((t,s)=>{const{__scopeSwitch:a,...x}=t,n=ee(Pe,a);return e.jsx(Y.span,{"data-state":_e(n.checked),"data-disabled":n.disabled?"":void 0,...x,ref:s})});Ee.displayName=Pe;var Te="SwitchBubbleInput",Le=c.forwardRef(({__scopeSwitch:t,...s},a)=>{const{control:x,hasConsumerStoppedPropagationRef:n,checked:r,defaultChecked:i,required:u,disabled:d,name:m,value:j,form:h,bubbleInput:l,setBubbleInput:f}=ee(Te,t),o=je(a,f),g=Fe(r),y=Ve(x);c.useEffect(()=>{const P=l;if(!P)return;const L=window.HTMLInputElement.prototype,B=Object.getOwnPropertyDescriptor(L,"checked").set,G=!n.current;if(g!==r&&B){const V=new Event("click",{bubbles:G});B.call(P,r),P.dispatchEvent(V)}},[l,g,r,n]);const N=c.useRef(r);return e.jsx(Y.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??N.current,required:u,disabled:d,name:m,value:j,form:h,...s,tabIndex:-1,ref:o,style:{...s.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Le.displayName=Te;function Is(t){return typeof t=="function"}function _e(t){return t?"checked":"unchecked"}const O=c.forwardRef(({className:t,...s},a)=>e.jsx(se,{className:D("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",t),...s,ref:a,children:e.jsx(Ee,{className:D("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));O.displayName=se.displayName;const Os=[{id:"light",icon:ye},{id:"dark",icon:ke},{id:"auto",icon:qe}];function zs(){const{theme:t,setTheme:s,resolvedTheme:a,lightLevel:x}=$e(),{t:n}=z(),r=Math.round(x/60*100);return e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"grid grid-cols-3 gap-2",children:Os.map(({id:i,icon:u})=>{const d=t===i;return e.jsxs("button",{onClick:()=>s(i),className:D("relative flex flex-col items-center gap-2 p-4 rounded-xl border-2 transition-all duration-200",d?"border-primary bg-primary/10":"border-border hover:border-primary/50 hover:bg-muted/50"),children:[d&&e.jsx(v.div,{layoutId:"theme-indicator",className:"absolute inset-0 rounded-xl bg-primary/5 border-2 border-primary",transition:{type:"spring",bounce:.2,duration:.4}}),e.jsx("div",{className:D("relative z-10 w-10 h-10 rounded-full flex items-center justify-center transition-colors",d?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground"),children:e.jsx(u,{className:"w-5 h-5"})}),e.jsxs("div",{className:"relative z-10 text-center",children:[e.jsx("p",{className:D("text-sm font-medium transition-colors",d?"text-primary":"text-foreground"),children:n(`themeSelector.${i}.label`)}),e.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:n(`themeSelector.${i}.description`)})]})]},i)})}),t==="auto"&&e.jsxs(v.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-muted/50 text-sm",children:[e.jsx(Ke,{className:"w-4 h-4 text-primary flex-shrink-0"}),e.jsxs("span",{className:"text-muted-foreground",children:[n("themeSelector.currentMode")," ",e.jsx("span",{className:"text-foreground font-medium",children:n(a==="dark"?"themeSelector.darkMode":"themeSelector.lightMode")})]})]}),e.jsxs("div",{className:"px-3 py-3 rounded-lg bg-muted/30 space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsxs("span",{className:"text-muted-foreground flex items-center gap-1.5",children:[e.jsx(ke,{className:"w-3 h-3"}),n("themeSelector.lightLevelDark")]}),e.jsxs("span",{className:"text-foreground font-mono font-medium",children:[n("themeSelector.lightLevel")," ",x,"/60"]}),e.jsxs("span",{className:"text-muted-foreground flex items-center gap-1.5",children:[n("themeSelector.lightLevelLight"),e.jsx(ye,{className:"w-3 h-3"})]})]}),e.jsx("div",{className:"relative h-2 rounded-full overflow-hidden bg-gradient-to-r from-slate-800 via-slate-500 to-amber-100",children:e.jsx(v.div,{className:"absolute top-0 bottom-0 w-1 bg-primary shadow-lg shadow-primary/50",initial:{left:"0%"},animate:{left:`${r}%`},transition:{type:"spring",bounce:.3,duration:.6},style:{transform:"translateX(-50%)"}})}),e.jsx("p",{className:"text-xs text-muted-foreground text-center",children:n("themeSelector.autoDescription")})]})]})]})}function Bs(){const{i18n:t}=z(),[s,a]=c.useState(!1),x=W.find(r=>r.code===t.language)||W[0],n=r=>{t.changeLanguage(r),a(!1)};return e.jsxs(ns,{open:s,onOpenChange:a,children:[e.jsx(cs,{asChild:!0,children:e.jsxs(C,{variant:"outline",size:"sm",className:"gap-2",children:[e.jsx(J,{className:"w-4 h-4"}),e.jsx("span",{className:"hidden sm:inline",children:x.name}),e.jsx("span",{className:"sm:hidden",children:x.flag})]})}),e.jsx(os,{align:"end",children:W.map(r=>e.jsxs(ls,{onClick:()=>n(r.code),className:"gap-2 cursor-pointer",children:[e.jsx("span",{children:r.flag}),e.jsx("span",{className:"flex-1",children:r.name}),t.language===r.code&&e.jsx(us,{className:"w-4 h-4 text-primary"})]},r.code))})]})}const Z="https://api.quixzoom.com/api/qz",Fs=()=>{const{user:t}=Ne(),[s,a]=c.useState(null),[x,n]=c.useState(null),[r,i]=c.useState(!0),[u,d]=c.useState(!1),m=c.useCallback(async()=>{if(!t){a(null),i(!1);return}const l=le.getToken();if(!l){i(!1);return}try{(await fetch(`${Z}/auth/wallet`,{headers:{Authorization:`Bearer ${l}`}})).ok}catch{}try{const f=await fetch(`${Z}/missions/stats`,{headers:{Authorization:`Bearer ${l}`}});if(f.ok){const o=await f.json();o&&o.user_id&&a(o)}}catch{}i(!1)},[t]),j=c.useCallback(async()=>{if(!t)return null;d(!0);try{const l=le.getToken();if(!l)return null;const f=await fetch(`${Z}/missions/calculate-priority`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${l}`}});if(!f.ok)throw new Error("Failed to calculate priority");const o=await f.json();return n({priorityScore:o.priorityScore,visibilityDelay:o.visibilityDelay,totalCompleted:o.stats.totalCompleted,totalClaimed:o.stats.totalClaimed,totalExpired:o.stats.totalExpired,approvalRate:o.stats.approvalRate,avgCompletionTime:o.stats.avgCompletionTime,streakDays:o.stats.streakDays,recentCompletions:o.stats.recentCompletions}),await m(),o}catch(l){return console.error("Error calculating score:",l),null}finally{d(!1)}},[t,m]);c.useEffect(()=>{m()},[m]);const h=c.useCallback(l=>l>=90?{name:"Elite",color:"text-yellow-400",icon:"🔥"}:l>=70?{name:"Pro",color:"text-purple-400",icon:"⚡"}:l>=50?{name:"Aktiv",color:"text-blue-400",icon:"📸"}:l>=30?{name:"Rookie",color:"text-green-400",icon:"🌱"}:{name:"Ny",color:"text-muted-foreground",icon:"👋"},[]);return{performance:s,stats:x,loading:r,calculating:u,calculateScore:j,fetchPerformance:m,getTier:h}},Vs=()=>{const{t}=z(),{performance:s,stats:a,loading:x,calculating:n,calculateScore:r,getTier:i}=Fs();if(x)return e.jsx(k,{className:"bg-card/50 backdrop-blur-sm border-border/50",children:e.jsx(S,{className:"p-6",children:e.jsxs("div",{className:"animate-pulse space-y-4",children:[e.jsx("div",{className:"h-4 bg-muted rounded w-1/3"}),e.jsx("div",{className:"h-8 bg-muted rounded w-2/3"}),e.jsx("div",{className:"h-2 bg-muted rounded"})]})})});const u=(s==null?void 0:s.priority_score)||(a==null?void 0:a.priorityScore)||50,d=i(u),m=(s==null?void 0:s.visibility_delay_seconds)||(a==null?void 0:a.visibilityDelay)||60,j={Elite:e.jsx(he,{className:"h-5 w-5"}),Pro:e.jsx(js,{className:"h-5 w-5"}),Active:e.jsx(ve,{className:"h-5 w-5"}),Rookie:e.jsx(gs,{className:"h-5 w-5"}),New:e.jsx(fs,{className:"h-5 w-5"})},h=l=>({Elite:t("performance.tierElite"),Pro:t("performance.tierPro"),Aktiv:t("performance.tierActive"),Active:t("performance.tierActive"),Rookie:t("performance.tierRookie"),Ny:t("performance.tierNew"),New:t("performance.tierNew")})[l]||l;return e.jsx(v.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},children:e.jsxs(k,{className:"bg-gradient-to-br from-card via-card to-primary/5 border-border/50 overflow-hidden",children:[e.jsx(E,{className:"pb-2",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs(T,{className:"text-lg flex items-center gap-2",children:[e.jsx(He,{className:"h-5 w-5 text-primary"}),t("performance.title")]}),e.jsx(C,{variant:"ghost",size:"sm",onClick:r,disabled:n,className:"h-8",children:e.jsx(xs,{className:D("h-4 w-4",n&&"animate-spin")})})]})}),e.jsxs(S,{className:"space-y-4",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:D("p-2 rounded-full",u>=90?"bg-yellow-500/20":u>=70?"bg-purple-500/20":u>=50?"bg-blue-500/20":u>=30?"bg-green-500/20":"bg-muted"),children:e.jsx("span",{className:d.color,children:j[d.name]||j.Active})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:t("performance.level")}),e.jsxs("p",{className:D("font-bold text-lg",d.color),children:[d.icon," ",h(d.name)]})]})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:t("performance.score")}),e.jsx("p",{className:"font-bold text-2xl",children:Math.round(u)})]})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(ps,{value:u,className:"h-2"}),e.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground",children:[e.jsx("span",{children:"0"}),e.jsx("span",{children:"50"}),e.jsx("span",{children:"100"})]})]}),e.jsx("div",{className:D("p-3 rounded-lg",m===0?"bg-yellow-500/10 border border-yellow-500/20":m<=15?"bg-purple-500/10 border border-purple-500/20":m<=30?"bg-blue-500/10 border border-blue-500/20":"bg-muted/50 border border-border/50"),children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(we,{className:"h-4 w-4"}),e.jsx("span",{className:"text-sm font-medium",children:m===0?`⚡ ${t("performance.seeMissionsFirst")}`:m<=15?`⚡ ${t("performance.headStart",{seconds:m})}`:m<=30?t("performance.headStart",{seconds:m}):t("performance.delay",{seconds:m})})]})}),(a||s)&&e.jsxs("div",{className:"grid grid-cols-3 gap-2 pt-2",children:[e.jsxs("div",{className:"text-center p-2 bg-muted/30 rounded-lg",children:[e.jsx(Q,{className:"h-4 w-4 mx-auto text-green-500 mb-1"}),e.jsx("p",{className:"text-lg font-bold",children:(a==null?void 0:a.totalCompleted)??(s==null?void 0:s.total_missions_completed)??0}),e.jsx("p",{className:"text-xs text-muted-foreground",children:t("performance.completed")})]}),e.jsxs("div",{className:"text-center p-2 bg-muted/30 rounded-lg",children:[e.jsx(hs,{className:"h-4 w-4 mx-auto text-primary mb-1"}),e.jsxs("p",{className:"text-lg font-bold",children:[(a==null?void 0:a.approvalRate)??Math.round((s==null?void 0:s.approval_rate)??0),"%"]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:t("performance.approved")})]}),e.jsxs("div",{className:"text-center p-2 bg-muted/30 rounded-lg",children:[e.jsx(he,{className:"h-4 w-4 mx-auto text-orange-500 mb-1"}),e.jsx("p",{className:"text-lg font-bold",children:(a==null?void 0:a.streakDays)??(s==null?void 0:s.streak_days)??0}),e.jsx("p",{className:"text-xs text-muted-foreground",children:t("performance.streak")})]})]}),((a==null?void 0:a.totalExpired)||0)>0&&e.jsxs("div",{className:"flex items-center gap-2 p-2 bg-destructive/10 rounded-lg text-sm",children:[e.jsx(Ge,{className:"h-4 w-4 text-destructive"}),e.jsx("span",{className:"text-destructive",children:t("performance.expiredAffectScore",{count:a==null?void 0:a.totalExpired})})]})]})]})})},F=[{id:"JBFqnCBsd6RMkjVDRZzb",name:"George",descriptionKey:"voiceDescriptions.george"},{id:"EXAVITQu4vr4xnSDxMaL",name:"Sarah",descriptionKey:"voiceDescriptions.sarah"},{id:"TX3LPaxmHKxFdv7VOQHJ",name:"Liam",descriptionKey:"voiceDescriptions.liam"},{id:"XrExE9yKIg1WjnnlVkGX",name:"Matilda",descriptionKey:"voiceDescriptions.matilda"},{id:"onwK4e9ZLuTAKqWW03F9",name:"Daniel",descriptionKey:"voiceDescriptions.daniel"}];function Us({value:t,onChange:s,disabled:a}){const{t:x,i18n:n}=z(),[r,i]=c.useState(!1),[u,d]=c.useState(null),m=F.find(h=>h.id===t)||F[0],j=async()=>{if(u){u.pause(),u.src="",d(null),i(!1);return}i(!0);try{const h=x("voiceSample",{name:m.name}),l=await fetch("undefined/functions/v1/elevenlabs-tts",{method:"POST",headers:{"Content-Type":"application/json",apikey:void 0,Authorization:"Bearer undefined"},body:JSON.stringify({text:h,voiceId:m.id})});if(!l.ok)throw new Error("Failed to generate audio");const f=await l.blob(),o=URL.createObjectURL(f),g=new Audio(o);g.onended=()=>{i(!1),d(null),URL.revokeObjectURL(o)},g.onerror=()=>{i(!1),d(null),M.error(x("voicePreviewError"))},d(g),await g.play()}catch(h){console.error("Voice preview error:",h),M.error(x("voicePreviewError")),i(!1)}};return e.jsxs("div",{className:"flex gap-2",children:[e.jsxs(ys,{value:t,onValueChange:s,disabled:a,children:[e.jsx(Ns,{className:"flex-1",children:e.jsx(vs,{children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(be,{className:"h-4 w-4 text-muted-foreground"}),e.jsx("span",{children:m.name}),e.jsxs("span",{className:"text-muted-foreground text-xs",children:["- ",x(m.descriptionKey)]})]})})}),e.jsx(bs,{children:F.map(h=>e.jsx(ws,{value:h.id,children:e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"font-medium",children:h.name}),e.jsx("span",{className:"text-xs text-muted-foreground",children:x(h.descriptionKey)})]})},h.id))})]}),e.jsx(C,{type:"button",variant:"outline",size:"icon",className:"shrink-0",onClick:j,disabled:a,title:x("voicePreviewButton"),children:r?e.jsx(Ds,{className:"h-4 w-4 fill-current"}):e.jsx(Ls,{className:"h-4 w-4"})})]})}const $s=({latitude:t,longitude:s,reachMeters:a})=>{const{t:x}=z(),n=c.useRef(null),r=c.useRef(null),[i,u]=c.useState(!1),[d,m]=c.useState(null),[j,h]=c.useState(null),l=c.useRef(a);c.useEffect(()=>{l.current=a},[a]),c.useEffect(()=>{(async()=>{try{const N=await Xe();N&&m(N)}catch(N){console.error("Failed to fetch Mapbox token:",N)}})()},[]);const f=t??59.3293,o=s??18.0686,g=c.useCallback(()=>{if(!r.current||!n.current)return;const y=r.current.getCenter(),N=l.current,P=y.lat+N/111320,L=r.current.project([y.lng,y.lat]),R=r.current.project([y.lng,P]),B=Math.max(0,Math.abs(R.y-L.y));h({cx:L.x,cy:L.y,r:B})},[]);return c.useEffect(()=>{if(!d||!n.current||r.current)return;de.accessToken=d,r.current=new de.Map({container:n.current,style:"mapbox://styles/mapbox/dark-v11",center:[o,f],zoom:ge(a),interactive:!1,attributionControl:!1,logoPosition:"bottom-right"});const y=n.current.querySelector(".mapboxgl-ctrl-logo");return y&&(y.style.display="none"),r.current.on("load",()=>{r.current&&(r.current.addSource("reach-circle",{type:"geojson",data:fe(f,o,a)}),r.current.addLayer({id:"reach-circle-fill",type:"fill",source:"reach-circle",paint:{"fill-color":"rgba(255, 255, 255, 0.15)","fill-opacity":1}}),r.current.addLayer({id:"reach-circle-outline",type:"line",source:"reach-circle",paint:{"line-color":"#E07850","line-width":6,"line-opacity":1}}),r.current.addSource("center-point",{type:"geojson",data:{type:"Feature",properties:{},geometry:{type:"Point",coordinates:[o,f]}}}),r.current.addLayer({id:"center-point",type:"circle",source:"center-point",paint:{"circle-radius":8,"circle-color":"hsl(185, 70%, 50%)","circle-stroke-width":3,"circle-stroke-color":"#ffffff"}}),u(!0),g(),r.current.on("move",g),r.current.on("zoom",g),r.current.on("resize",g))}),()=>{r.current&&(r.current.off("move",g),r.current.off("zoom",g),r.current.off("resize",g),r.current.remove(),r.current=null,u(!1))}},[d,f,o]),c.useEffect(()=>{if(!r.current||!i)return;const y=r.current.getSource("reach-circle");y&&y.setData(fe(f,o,a));const N=ge(a);r.current.flyTo({center:[o,f],zoom:N,duration:500}),g(),r.current.once("moveend",g)},[a,f,o,i,g]),c.useEffect(()=>{if(!r.current||!i)return;const y=r.current.getSource("center-point");y&&y.setData({type:"Feature",properties:{},geometry:{type:"Point",coordinates:[o,f]}})},[f,o,i]),d?e.jsxs("div",{className:"relative aspect-square rounded-xl overflow-hidden border border-border/50",children:[e.jsx("div",{ref:n,className:"absolute inset-0 [&_.mapboxgl-ctrl-logo]:!hidden [&_.mapboxgl-ctrl-attrib]:!hidden"}),j&&j.r>0&&e.jsx("svg",{className:"absolute inset-0 pointer-events-none",width:"100%",height:"100%","aria-hidden":"true",children:e.jsx("circle",{cx:j.cx,cy:j.cy,r:j.r,vectorEffect:"non-scaling-stroke",style:{fill:"hsl(var(--background) / 0.35)",stroke:"hsl(var(--destructive))",strokeWidth:4,opacity:.95}})}),e.jsx("div",{className:"absolute inset-0 pointer-events-none bg-gradient-to-t from-background/20 via-transparent to-background/20"})]}):e.jsx("div",{className:"aspect-square rounded-xl bg-muted/50 flex items-center justify-center",children:e.jsx("div",{className:"animate-pulse text-sm text-muted-foreground",children:x("map.loadingMap")})})};function fe(t,s,a){const n=[];for(let r=0;r<=64;r++){const i=r/64*2*Math.PI,u=a*Math.cos(i),m=a*Math.sin(i)/111320,j=u/(111320*Math.cos(t*Math.PI/180));n.push([s+j,t+m])}return{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[n]}}}function ge(t){return t<=500?12.8:t<=1e3?11.8:t<=2e3?10.8:t<=3e3?10.3:t<=5e3?9.8:t<=7500?9.3:t<=1e4?8.8:t<=15e3?8.3:t<=2e4?7.8:t<=3e4?7.3:t<=4e4?6.8:t<=5e4?6.3:5.8}const xt=()=>{const t=We(),{t:s}=z(),{user:a,signOut:x}=Ne(),{wallet:n,isLoading:r}=ds(),{profile:i,isLoading:u,updateProfile:d}=Ze(),{error:m,requestPosition:j}=Je(),{ordererProfile:h,isActiveOrderer:l,isPendingOrderer:f}=Qe(),{isVerified:o}=ms(a==null?void 0:a.id),[g,y]=c.useState(""),[N,P]=c.useState(5e3),[L,R]=c.useState(""),[B,G]=c.useState(!1),[V,te]=c.useState(!1),[ae,re]=c.useState(F[0].id),[U,$]=c.useState({newMissions:!0,claimUpdates:!0,rewards:!0,marketing:!1}),[ie,ne]=c.useState(!1),[X,ce]=c.useState(null),oe=p=>{if(!p.trim())return null;if(p.length<2)return s("profile.nicknameMinChars");if(p.length>20)return s("profile.nicknameMaxChars");const b=[/sex/i,/fuck/i,/shit/i,/ass(?:hole)?/i,/dick/i,/cock/i,/pussy/i,/nazi/i,/hitler/i,/kuk/i,/fitta/i,/hora/i,/bög/i,/neger/i,/jävel/i,/skit/i,/fan(?:s)?$/i,/helvete/i,/död/i,/kill/i,/hate/i];for(const Oe of b)if(Oe.test(p))return s("profile.nicknameOffensive");return/^[\p{L}\p{N}\s\-_.*!?♥★☆⭐🎮🎯🎲💎🔥⚡🌟🏆]+$/u.test(p)?null:s("profile.nicknameInvalidChars")},De=p=>{y(p),ce(oe(p))};c.useEffect(()=>{i&&(y(i.display_name||""),P(i.reach_meters||5e3),R(i.phone_number||""),G(i.sms_notifications_enabled||!1),te(i.self_accounting||!1),re(i.voice_id||F[0].id))},[i]),c.useEffect(()=>{!a&&!u&&t("/auth")},[a,u,t]);const Me=async()=>{const p=await j();if(p){const{error:b}=await d({latitude:p.latitude,longitude:p.longitude});b?M.error(s("profile.couldNotUpdateLocation")):M.success(s("profile.locationUpdated"))}},Re=async()=>{const p=oe(g);if(p){ce(p),M.error(p);return}ne(!0);const{error:b}=await d({display_name:g.trim()||null,reach_meters:N,phone_number:L||null,self_accounting:V,voice_id:ae});ne(!1),b?M.error(s("profile.couldNotSave")):M.success(s("profile.profileSaved"))},Ae=async()=>{await x(),M.success(s("profile.loggedOut")),t("/")},Ie=p=>p>=1e3?`${(p/1e3).toFixed(1)} ${s("common.km")}`:`${p} m`;return u?e.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:e.jsx("div",{className:"animate-pulse text-muted-foreground",children:s("profile.loadingProfile")})}):e.jsxs("div",{className:"min-h-screen bg-background text-foreground pb-24",children:[e.jsxs("main",{className:"p-4 space-y-6 pt-[calc(env(safe-area-inset-top)+1.5rem)]",children:[e.jsxs(v.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.4},className:"relative overflow-hidden rounded-3xl bg-gradient-to-br from-primary/20 via-primary/10 to-accent/10 border border-primary/20 p-6",children:[e.jsx("div",{className:"absolute top-0 right-0 w-40 h-40 bg-gradient-to-bl from-primary/30 to-transparent rounded-full blur-3xl"}),e.jsxs("div",{className:"relative z-10",children:[e.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:s("profile.totalEarned")}),e.jsx("div",{className:"flex items-baseline gap-2",children:r?e.jsx("div",{className:"h-12 w-32 bg-muted/50 animate-pulse rounded-lg"}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-5xl font-bold text-foreground tracking-tight",children:((n==null?void 0:n.total_earned)||0).toLocaleString("sv-SE")}),e.jsx("span",{className:"text-2xl font-medium text-muted-foreground",children:s("common.sek")})]})}),e.jsx("div",{className:"flex items-center gap-4 mt-4 text-sm text-muted-foreground",children:e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("div",{className:"w-2 h-2 rounded-full bg-success animate-pulse"}),e.jsxs("span",{children:[s("profile.available"),": ",((n==null?void 0:n.balance)||0).toLocaleString("sv-SE")," ",s("common.sek")]})]})})]})]}),e.jsx(Vs,{}),e.jsx(v.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},children:e.jsxs(k,{className:"glass-card",children:[e.jsxs(E,{children:[e.jsxs(T,{className:"flex items-center gap-2",children:[e.jsx(Ye,{className:"w-5 h-5 text-primary"}),s("profile.accountInfo")]}),e.jsx(_,{children:s("profile.accountInfoDesc")})]}),e.jsxs(S,{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs(w,{htmlFor:"email",className:"flex items-center gap-2",children:[e.jsx(ks,{className:"w-4 h-4"}),s("profile.email")]}),e.jsx(me,{id:"email",value:(a==null?void 0:a.email)||"",disabled:!0,className:"bg-muted/50"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(w,{htmlFor:"displayName",className:"flex items-center gap-2",children:s("profile.nickname")}),e.jsx(me,{id:"displayName",value:g,onChange:p=>De(p.target.value),placeholder:s("profile.nicknamePlaceholder"),maxLength:20,className:X?"border-destructive":""}),X?e.jsx("p",{className:"text-xs text-destructive",children:X}):e.jsx("p",{className:"text-xs text-muted-foreground",children:s("profile.nicknameHint")})]})]})]})}),e.jsx(v.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,delay:.12},children:e.jsxs(k,{className:`glass-card ${o?"border-green-500/30":"border-amber-500/30"}`,children:[e.jsxs(E,{children:[e.jsxs(T,{className:"flex items-center gap-2",children:[e.jsx(pe,{className:"w-5 h-5 text-primary"}),s("profile.identity","Identitetsverifiering"),o?e.jsxs(q,{variant:"default",className:"text-xs gap-1 bg-green-600 ml-auto",children:[e.jsx(Q,{className:"w-3 h-3"}),s("profile.verified","Verifierad")]}):e.jsxs(q,{variant:"outline",className:"text-xs gap-1 text-amber-500 border-amber-500 ml-auto",children:[e.jsx(Ss,{className:"w-3 h-3"}),s("profile.notVerified","Ej verifierad")]})]}),e.jsx(_,{children:o?s("profile.identityVerifiedDesc","Din identitet är verifierad. Du kan ta uppdrag."):s("profile.identityNotVerifiedDesc","Verifiera din identitet med pass eller nationellt ID för att kunna ta uppdrag.")})]}),!o&&e.jsx(S,{children:e.jsxs(C,{onClick:()=>t("/verify-identity"),className:"w-full",children:[e.jsx(pe,{className:"w-4 h-4 mr-2"}),s("profile.verifyNow","Verifiera nu"),e.jsx(ue,{className:"w-4 h-4 ml-2"})]})})]})}),e.jsx(v.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,delay:.13},children:e.jsxs(k,{className:`glass-card ${l?"border-green-500/30":"border-border"}`,children:[e.jsxs(E,{children:[e.jsxs(T,{className:"flex items-center gap-2",children:[e.jsx(K,{className:"w-5 h-5 text-primary"}),s("profile.orderer"),l&&e.jsxs(q,{variant:"default",className:"text-xs gap-1 bg-green-600 ml-auto",children:[e.jsx(Q,{className:"w-3 h-3"}),s("profile.ordererActive")]}),f&&e.jsxs(q,{variant:"outline",className:"text-xs gap-1 text-amber-500 border-amber-500 ml-auto",children:[e.jsx(we,{className:"w-3 h-3"}),s("profile.ordererPending")]})]}),e.jsx(_,{children:l?s("profile.ordererAsOrg",{org:h==null?void 0:h.organization_name}):s(f?"profile.ordererApplicationPending":"profile.ordererDesc")})]}),e.jsxs(S,{className:"space-y-3",children:[l&&e.jsxs(e.Fragment,{children:[e.jsxs(C,{onClick:()=>t("/orderer/dashboard"),className:"w-full",children:[e.jsx(K,{className:"w-4 h-4 mr-2"}),s("profile.openOrdererDashboard")]}),e.jsxs(C,{variant:"outline",onClick:()=>t("/orderer/create-mission"),className:"w-full",children:[e.jsx(ve,{className:"w-4 h-4 mr-2"}),s("profile.createNewMission")]})]}),h?e.jsxs(C,{variant:"outline",onClick:()=>t("/orderer/register"),className:"w-full",children:[e.jsx(K,{className:"w-4 h-4 mr-2"}),s("profile.viewOrdererProfile")]}):e.jsxs(C,{onClick:()=>t("/orderer/register"),className:"w-full",children:[e.jsx(K,{className:"w-4 h-4 mr-2"}),s("profile.becomeOrderer"),e.jsx(ue,{className:"w-4 h-4 ml-2"})]})]})]})}),e.jsx(v.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,delay:.15},children:e.jsxs(k,{className:"glass-card",children:[e.jsxs(E,{children:[e.jsxs(T,{className:"flex items-center gap-2",children:[e.jsx(xe,{className:"w-5 h-5 text-primary"}),s("profile.paymentMethod")]}),e.jsx(_,{children:"Koppla ditt Stripe-konto för att ta emot utbetalningar"})]}),e.jsx(S,{className:"space-y-4",children:e.jsxs("div",{className:"space-y-2",children:[e.jsx(w,{htmlFor:"stripeConnect",className:"flex items-center gap-2",children:"Stripe Connect"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Utbetalningar hanteras via Stripe Connect. Koppla ditt konto i Stripe-dashboarden."}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Utbetalningar sker automatiskt via Stripe Connect."})]})})]})}),e.jsx(v.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,delay:.2},children:e.jsxs(k,{className:"glass-card",children:[e.jsxs(E,{children:[e.jsxs(T,{className:"flex items-center gap-2",children:[e.jsx(_s,{className:"w-5 h-5 text-primary"}),s("profile.reachTitle")]}),e.jsx(_,{children:s("profile.reachDesc")})]}),e.jsxs(S,{className:"space-y-6",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:s("profile.reach")}),e.jsx("span",{className:"text-lg font-mono font-semibold text-primary",children:Ie(N)})]}),e.jsx(es,{value:[N],onValueChange:p=>P(p[0]),min:500,max:5e4,step:500,className:"w-full"}),e.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground",children:[e.jsx("span",{children:"500m"}),e.jsxs("span",{children:["50",s("common.km")]})]})]}),e.jsx($s,{latitude:(i==null?void 0:i.latitude)??null,longitude:(i==null?void 0:i.longitude)??null,reachMeters:N})]})]})}),e.jsx(v.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,delay:.2},children:e.jsxs(k,{className:"glass-card",children:[e.jsxs(E,{children:[e.jsxs(T,{className:"flex items-center gap-2",children:[e.jsx(ss,{className:"w-5 h-5 text-primary"}),s("profile.locationTitle")]}),e.jsx(_,{children:s("profile.locationDesc")})]}),e.jsxs(S,{className:"space-y-4",children:[i!=null&&i.latitude&&(i!=null&&i.longitude)?e.jsxs("div",{className:"p-3 bg-muted/50 rounded-lg font-mono text-sm",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsxs("span",{className:"text-muted-foreground",children:[s("profile.lat"),":"]}),e.jsx("span",{children:i.latitude.toFixed(6)})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsxs("span",{className:"text-muted-foreground",children:[s("profile.long"),":"]}),e.jsx("span",{children:i.longitude.toFixed(6)})]})]}):e.jsx("p",{className:"text-sm text-muted-foreground",children:s("profile.noLocationSaved")}),e.jsxs(C,{onClick:Me,variant:"outline",className:"w-full",children:[e.jsx(ts,{className:"w-4 h-4 mr-2"}),s("profile.updateToCurrentLocation")]}),m&&e.jsx("p",{className:"text-sm text-destructive",children:m})]})]})}),e.jsx(v.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,delay:.3},children:e.jsxs(k,{className:"glass-card",children:[e.jsxs(E,{children:[e.jsxs(T,{className:"flex items-center gap-2",children:[e.jsx(as,{className:"w-5 h-5 text-primary"}),s("profile.notificationsTitle")]}),e.jsx(_,{children:s("profile.notificationsDesc")})]}),e.jsxs(S,{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(w,{children:s("profile.newMissions")}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("profile.newMissionsDesc")})]}),e.jsx(O,{checked:U.newMissions,onCheckedChange:p=>$(b=>({...b,newMissions:p}))})]}),e.jsx(I,{}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(w,{children:s("profile.missionUpdates")}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("profile.missionUpdatesDesc")})]}),e.jsx(O,{checked:U.claimUpdates,onCheckedChange:p=>$(b=>({...b,claimUpdates:p}))})]}),e.jsx(I,{}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(w,{children:s("profile.rewards")}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("profile.rewardsDesc")})]}),e.jsx(O,{checked:U.rewards,onCheckedChange:p=>$(b=>({...b,rewards:p}))})]}),e.jsx(I,{}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs(w,{className:"flex items-center gap-2",children:[s("profile.marketing"),e.jsx(Es,{className:"w-3 h-3 text-muted-foreground"})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("profile.marketingDesc")})]}),e.jsx(O,{checked:U.marketing,onCheckedChange:p=>$(b=>({...b,marketing:p}))})]})]})]})}),e.jsx(v.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,delay:.32},children:e.jsxs(k,{className:"glass-card",children:[e.jsxs(E,{children:[e.jsxs(T,{className:"flex items-center gap-2",children:[e.jsx(J,{className:"w-5 h-5 text-primary"}),s("profile.countryTax")]}),e.jsx(_,{children:s("profile.countryTaxDesc")})]}),e.jsxs(S,{className:"space-y-4",children:[e.jsxs("div",{className:"p-3 bg-muted/50 rounded-lg flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-lg",children:"🇸🇪"}),e.jsx("div",{children:e.jsx("span",{className:"font-medium",children:s("profile.sweden")})})]}),e.jsx(rs,{className:"w-5 h-5 text-primary"})]}),e.jsx(I,{}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs(w,{className:"flex items-center gap-2",children:[e.jsx(xe,{className:"w-4 h-4"}),s("profile.selfAccountingLabel")]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("profile.selfAccountingDescription")})]}),e.jsx(O,{checked:V,onCheckedChange:te})]}),e.jsx("div",{className:"p-3 bg-green-500/10 border border-green-500/30 rounded-lg",children:e.jsxs("p",{className:"text-xs text-green-400",children:["✓ ",e.jsx("strong",{children:s("profile.weHandleTax")})," – ",s("profile.taxAutoDeducted")]})})]})]})}),e.jsx(v.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,delay:.35},children:e.jsxs(k,{className:"glass-card",children:[e.jsxs(E,{children:[e.jsxs(T,{className:"flex items-center gap-2",children:[e.jsx(Cs,{className:"w-5 h-5 text-primary"}),s("profile.appearanceTitle")]}),e.jsx(_,{children:s("profile.appearanceDesc")})]}),e.jsxs(S,{className:"space-y-6",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsxs(w,{className:"flex items-center gap-2",children:[e.jsx(J,{className:"w-4 h-4"}),s("profile.language")]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("profile.languageDesc")}),e.jsx(Bs,{})]}),e.jsx(I,{}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(w,{children:s("profile.theme")}),e.jsx(zs,{})]}),e.jsx(I,{}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs(w,{className:"flex items-center gap-2",children:[e.jsx(be,{className:"w-4 h-4"}),s("profile.voiceGuide","Instruktionsröst")]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("profile.voiceGuideDesc","Välj vilken röst som ska användas för navigering och fotoinstruktioner")}),e.jsx(Us,{value:ae,onChange:re})]})]})]})}),e.jsx(v.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,delay:.4},children:e.jsxs(C,{onClick:Re,className:"w-full",size:"lg",disabled:ie,children:[e.jsx(Ps,{className:"w-4 h-4 mr-2"}),s(ie?"profile.saving":"profile.saveChanges")]})}),e.jsx(v.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,delay:.5},children:e.jsxs(C,{onClick:Ae,variant:"outline",className:"w-full text-destructive hover:text-destructive",children:[e.jsx(Ts,{className:"w-4 h-4 mr-2"}),s("profile.logOut")]})})]}),e.jsx(is,{})]})};export{xt as default};
|
||
//# sourceMappingURL=Profile-Bs_7SKke.js.map
|