PageSourceSearch

https://talospioneers.com/_nuxt/BUR2u24z.js

js talospioneers.com collected 2026-10-08 06:32:00 UTC 3,739 bytes, 1 lines download raw bytes

1import{aH as w,aI as E,aV as V,aS as I,aJ as C,aK as N,aW as T,aM as i,aX as D,aY as m,aG as e,aZ as o,a_ as n,a$ as P,aN as l,aO as _,b0 as x,aP as d}from"./DVF5nq-Z.js";import{_ as B}from"./D7ja9mrt.js";import{u as F,_ as j}from"./DThbKxkQ.js";import{_ as v}from"./v2mu8N4z.js";import{u as A}from"./Dum80xkT.js";import"./BpEQLgb9.js";import"./COiZ9hVG.js";import"./KlWhGmVl.js";import"./CqKA95fJ.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"cedec4e72c707051492cafe38cb06638eefaff72"}}catch{}})();try{(function(){var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="049fa518-2cfc-4785-bb9c-87a412434f54",t._sentryDebugIdIdentifier="sentry-dbid-049fa518-2cfc-4785-bb9c-87a412434f54")})()}catch{}const M={key:0},O={class:"space-y-2"},L={key:0,class:"text-xs text-destructive"},R={class:"space-y-2"},Y=["value","placeholder"],z={class:"text-xs text-muted-foreground"},G={key:0,class:"text-sm text-green-600"},H={class:"flex justify-end pt-4"},J={key:0},K={key:1},U=w({__name:"ProfileEdit",async setup(t){let s,u;const{t:a}=E();V();const c=I(null),r=F("put","/api/v1/profile",{username:""}),p=r.fields,{data:h,status:b,error:te,refresh:k}=([s,u]=C(()=>A("/api/v1/profile")),s=await s,u(),s),y=N(()=>h.value?.user??null);T(()=>{b.value==="success"&&(p.username=h.value?.user?.username??"")});const $=async()=>{c.value=null;try{await r.submit(),Object.keys(r.errors).length>0||(c.value=a("components.auth.profileEdit.success"),k())}catch(f){console.error("Failed to update profile:",f)}};return(f,g)=>(d(),i("form",{onSubmit:D($,["prevent"]),class:"space-y-6"},[e(b)==="pending"?(d(),i("div",M,[o("p",null,n(e(a)("components.auth.profileEdit.loading")),1)])):e(y)?(d(),i(P,{key:1},[o("div",O,[l(e(v),{for:"username"},{default:_(()=>[x(n(e(a)("components.auth.profileEdit.username.label")),1)]),_:1}),l(e(B),{id:"username",modelValue:e(p).username,"onUpdate:modelValue":g[0]||(g[0]=S=>e(p).username=S),placeholder:e(a)("components.auth.profileEdit.username.placeholder"),"aria-invalid":!!e(r).errors.username},null,8,["modelValue","placeholder","aria-invalid"]),e(r).errors.username?(d(),i("p",L,n(e(r).errors.username[0]),1)):m("",!0)]),o("div",R,[l(e(v),{for:"email"},{default:_(()=>[x(n(e(a)("components.auth.profileEdit.email.label")),1)]),_:1}),o("input",{id:"email",type:"email",value:e(y).email,disabled:"",placeholder:e(a)("components.auth.profileEdit.email.placeholder"),class:"w-full rounded-md border border-input bg-background px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 h-12 md:text-sm"},null,8,Y),o("p",z,n(e(a)("components.auth.profileEdit.email.cannotChange")),1)]),e(c)?(d(),i("div",G,n(e(c)),1)):m("",!0),o("div",H,[l(e(j),{type:"submit",disabled:e(r).processing,class:"min-w-[120px]"},{default:_(()=>[e(r).processing?(d(),i("span",J,n(e(a)("components.auth.profileEdit.updating")),1)):(d(),i("span",K,n(e(a)("components.auth.profileEdit.updateButton")),1))]),_:1},8,["disabled"])])],64)):m("",!0)],32))}}),W=Object.assign(U,{__name:"AuthProfileEdit"}),X={class:"wave-bg bg-(--wave-bg) min-h-screen"},Z={class:"container mx-auto px-4 py-6"},q={class:"max-w-4xl mx-auto"},Q={class:"bg-card rounded-lg border border-border p-6 space-y-6"},ee={class:"font-bold text-3xl"},ue=w({__name:"index",setup(t){const{t:s}=E();return(u,a)=>(d(),i("div",X,[o("div",Z,[o("div",q,[o("div",Q,[o("h1",ee,n(e(s)("pages.profile.edit.title")),1),l(W)])])])]))}});export{ue 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.