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.
1 lines
4.1 KiB
1 lines
4.1 KiB
var w=Object.defineProperty;var x=(t,e,o)=>e in t?w(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o;var d=(t,e,o)=>x(t,typeof e!="symbol"?e+"":e,o);import{V as b,a6 as v,f as h,A as k,C as y,_,g as A,h as p,j as s,i as m,k as u,l as f,x as c}from"./index-BLqts8WY.js";import{G as N,az as S}from"./index-MyY_xqVN.js";import"./index-CsfPLOYu.js";var C=Object.defineProperty,$=Object.getOwnPropertyDescriptor,E=(t,e,o,i)=>{for(var n=i>1?void 0:i?$(e,o):e,a=t.length-1,r;a>=0;a--)(r=t[a])&&(n=(i?r(e,o,n):r(n))||n);return i&&n&&C(e,o,n),n};let g=class extends b{constructor(){super(...arguments);d(this,"PASSKEYS_ENABLED",v);d(this,"givenName","");d(this,"numAccounts",0)}async mounted(){const o=await h();this.givenName=o.firstName||"",this.numAccounts=await N()}onClickNewSeed(){this.$router.push({name:"new-identifier"})}async onClickNewPasskey(){const o=k.APP_NAME+(this.givenName?" - "+this.givenName:"");await S(o),this.$router.push({name:"account"})}onClickNo(){this.$router.push({name:"import-account"})}onClickDerive(){this.$router.push({name:"import-derive"})}};g=E([y({components:{}})],g);const P={id:"Content",class:"p-6 pb-24 min-h-screen flex flex-col justify-center"},V={class:"text-lg text-center font-light relative px-7"},D={id:"start-question",class:"mt-8"},B={class:"max-w-3xl mx-auto"},Y={key:0,class:"text-center font-light mt-6"},O={href:"https://www.perplexity.ai/search/what-are-passkeys-v2SHV3yLQlyA2CYH6.Nvhg",target:"_blank"},K={class:"text-center font-light mt-4"},L={href:"https://www.perplexity.ai/search/what-is-a-seed-phrase-OqiP9foVRXidr_2le5OFKA",target:"_blank"},j={class:"grid grid-cols-1 sm:grid-cols-2 gap-2 mt-4"},G={class:"grid grid-cols-1 sm:grid-cols-2 gap-2 mt-2"};function H(t,e,o,i,n,a){const r=A("fa");return c(),p("section",P,[s("div",null,[s("div",V,[s("h1",{class:"text-lg text-center px-2 py-1 absolute -left-2 -top-1",onClick:e[0]||(e[0]=l=>t.$router.back())},[m(r,{icon:"chevron-left",class:"fa-fw"})])]),e[5]||(e[5]=s("h1",{id:"ViewHeading",class:"text-4xl text-center font-light pt-4 mb-8"}," Generate an Identity ",-1))]),s("div",D,[s("div",B,[e[12]||(e[12]=s("p",{class:"text-center text-xl font-light"}," How do you want to create this identifier? ",-1)),t.PASSKEYS_ENABLED?(c(),p("p",Y,[e[6]||(e[6]=u(" A ")),e[7]||(e[7]=s("strong",null,"passkey",-1)),e[8]||(e[8]=u(" is easy to manage, though it is less interoperable with other systems for advanced uses. ")),s("a",O,[m(r,{icon:"info-circle",class:"fa-fw text-blue-500"})])])):f("",!0),s("p",K,[e[9]||(e[9]=u(" A ")),e[10]||(e[10]=s("strong",null,"new seed",-1)),e[11]||(e[11]=u(" allows you full control over the keys, though you are responsible for backups. ")),s("a",L,[m(r,{icon:"info-circle",class:"fa-fw text-blue-500"})])]),s("div",j,[t.PASSKEYS_ENABLED?(c(),p("a",{key:0,onClick:e[1]||(e[1]=l=>t.onClickNewPasskey()),class:"block w-full text-center text-lg 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 cursor-pointer"}," Generate one with a passkey ")):f("",!0),s("a",{onClick:e[2]||(e[2]=l=>t.onClickNewSeed()),class:"block w-full text-center text-lg 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 cursor-pointer","data-testId":"newSeed"}," Generate one with a new seed ")]),e[13]||(e[13]=s("p",{class:"text-center font-light mt-4"}," You can also import an existing seed or derive a new address from an existing seed. ",-1)),s("div",G,[s("a",{onClick:e[3]||(e[3]=l=>t.onClickNo()),class:"block w-full text-center text-md 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-1.5 py-2 rounded-md cursor-pointer"}," You have a seed "),t.numAccounts>0?(c(),p("a",{key:0,onClick:e[4]||(e[4]=l=>t.onClickDerive()),class:"block w-full text-center text-md 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-1.5 py-2 rounded-md cursor-pointer"}," Derive new address from existing seed ")):f("",!0)])])])])}const Q=_(g,[["render",H]]);export{Q as default};
|
|
|