You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
2.1 KiB

var p=Object.defineProperty;var u=(t,e,s)=>e in t?p(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var d=(t,e,s)=>u(t,typeof e!="symbol"?e+"":e,s);import{V as m,f as b,e as f,M as g,C as v,_ as x,g as _,h as w,j as n,i as C,k as N,m as h,s as $,x as k}from"./index-BLqts8WY.js";var y=Object.defineProperty,V=Object.getOwnPropertyDescriptor,E=(t,e,s,a)=>{for(var o=a>1?void 0:a?V(e,s):e,i=t.length-1,l;i>=0;i--)(l=t[i])&&(o=(a?l(e,s,o):l(o))||o);return a&&o&&y(e,s,o),o};let c=class extends m{constructor(){super(...arguments);d(this,"givenName","")}async created(){const s=await b();this.givenName=(s.firstName||"")+(s.lastName?` ${s.lastName}`:"")}async onClickSaveChanges(){await f.settings.update(g,{firstName:this.givenName,lastName:""}),this.$router.back()}onClickCancel(){this.$router.back()}};c=E([v({components:{}})],c);const S={id:"Content",class:"p-6 pb-24 max-w-3xl mx-auto"},A={id:"ViewBreadcrumb",class:"mb-8"},T={class:"text-lg text-center font-light relative px-7"},B={class:"mt-8"},O={class:"grid grid-cols-1 sm:grid-cols-2 gap-2"};function P(t,e,s,a,o,i){const l=_("fa");return k(),w("section",S,[n("div",A,[n("h1",T,[n("button",{onClick:e[0]||(e[0]=r=>t.$router.go(-1)),class:"text-lg text-center px-2 py-1 absolute -left-2 -top-1"},[C(l,{icon:"chevron-left",class:"fa-fw"})]),e[4]||(e[4]=N(" Edit Identity "))])]),h(n("input",{type:"text",placeholder:"Name",class:"block w-full rounded border border-slate-400 mb-4 px-3 py-2","onUpdate:modelValue":e[1]||(e[1]=r=>t.givenName=r)},null,512),[[$,t.givenName]]),n("div",B,[n("div",O,[n("button",{type:"button",class:"block w-full text-center text-lg font-bold uppercase bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-3 rounded-md mb-2",onClick:e[2]||(e[2]=r=>t.onClickSaveChanges())}," Save Changes "),n("button",{type:"button",class:"block w-full text-center text-md uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-3 rounded-md mb-2",onClick:e[3]||(e[3]=r=>t.onClickCancel())}," Cancel ")])])])}const I=x(c,[["render",P]]);export{I as default};