@tempoxyz/id 0.0.0-pr-291.sha-e374832 → 0.0.0-pr-291.sha-9bed768
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/client/assets/{Approval-LWSnwt4w.js → Approval-apXAp509.js} +1 -1
- package/dist/app/client/assets/{DeviceApproval-bEQihpQj.js → DeviceApproval-B8FJvDgi.js} +1 -1
- package/dist/app/client/assets/{Grant-D9J5rWQc.js → Grant-CcsQ97_x.js} +1 -1
- package/dist/app/client/assets/{Permissions-DKVvn7Ad.js → Permissions-DarZiAbo.js} +1 -1
- package/dist/app/client/assets/{SignIn-DUnb3q23.js → SignIn-DVummdCe.js} +1 -1
- package/dist/app/client/assets/{WalletUpgrade-SI3A-rNw.js → WalletUpgrade-DacY_fRQ.js} +1 -1
- package/dist/app/client/assets/{___.flows-BkcgSyuv.js → ___.flows-BjC86keH.js} +1 -1
- package/dist/app/client/assets/{authorize-BQ8HRHbX.js → authorize-DQynBh3b.js} +1 -1
- package/dist/app/client/assets/{choose-account-C0-i1c6t.js → choose-account-C6bXkibT.js} +1 -1
- package/dist/app/client/assets/{deposit-B9GMtWe6.js → deposit-CatENYgr.js} +1 -1
- package/dist/app/client/assets/{device-ZxDZDA0_.js → device-CAPCYkwO.js} +1 -1
- package/dist/app/client/assets/{devices-BxLKxSff.js → devices-CpmQaGVj.js} +1 -1
- package/dist/app/client/assets/embed-BbNi5iN9.js +2 -0
- package/dist/app/client/assets/{error-DvF1vnD_.js → error-BZiLzALZ.js} +1 -1
- package/dist/app/client/assets/{index-BCTnLwp1.js → index-Cmkt-N9A.js} +2 -2
- package/dist/app/client/assets/{login-CLU_MHp8.js → login-7u9p2i1t.js} +1 -1
- package/dist/app/client/assets/{permissions-YdmwE84S.js → permissions-CJXTxjyy.js} +1 -1
- package/dist/app/client/assets/{routes-BPQ3SFmZ.js → routes-3_0eDNVK.js} +1 -1
- package/dist/app/client/assets/{sign-out-everywhere-CrT4wa5X.js → sign-out-everywhere-CDya4qHV.js} +1 -1
- package/dist/app/server/.vite/manifest.json +8 -8
- package/dist/app/server/assets/Grant-Bo5B1BLy.js.map +1 -1
- package/dist/app/server/assets/{_tanstack-start-manifest_v-BOBrAnhb.js → _tanstack-start-manifest_v-Cvla4UUV.js} +1 -1
- package/dist/app/server/assets/{embed-BIqJSPBA.js → embed-DDSWVV-h.js} +2 -2
- package/dist/app/server/assets/embed-DDSWVV-h.js.map +1 -0
- package/dist/app/server/assets/embed-PKS6R_vC.js +2 -0
- package/dist/app/server/assets/embed-PKS6R_vC.js.map +1 -0
- package/dist/app/server/assets/{router-DqgS2T0j.js → router-BnpcG3TJ.js} +2 -2
- package/dist/app/server/assets/{router-DqgS2T0j.js.map → router-BnpcG3TJ.js.map} +1 -1
- package/dist/app/server/assets/{server-C-GdmEGt.js → server-CbfXdF5-.js} +2 -2
- package/dist/app/server/assets/{server-C-GdmEGt.js.map → server-CbfXdF5-.js.map} +1 -1
- package/dist/app/server/index.js +1 -1
- package/package.json +1 -1
- package/src/app/lib/Frame.ts +16 -0
- package/src/app/routes/embed.tsx +1 -7
- package/dist/app/client/assets/embed-DnPZ16i3.js +0 -2
- package/dist/app/server/assets/embed-BIqJSPBA.js.map +0 -1
- package/dist/app/server/assets/embed-BkoDdVtn.js +0 -2
- package/dist/app/server/assets/embed-BkoDdVtn.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{X as e,n as t}from"./zyzz.config-B1viQ4-F.js";import{n}from"./Hex-D6Nt_Ctw.js";import{t as r}from"./Alert-C3aAPp1-.js";import{t as i}from"./Tooltip-CfX-udM0.js";import{n as a}from"./Grant-
|
|
1
|
+
import{X as e,n as t}from"./zyzz.config-B1viQ4-F.js";import{n}from"./Hex-D6Nt_Ctw.js";import{t as r}from"./Alert-C3aAPp1-.js";import{t as i}from"./Tooltip-CfX-udM0.js";import{n as a}from"./Grant-CcsQ97_x.js";import{t as o}from"./IconTile-U61I4u7J.js";import{n as s}from"./StatusChip-DZmt1RJH.js";import{t as c}from"./Stack-BOcRBVsr.js";import{n as l,t as u}from"./Fingerprint-DIqTuY88.js";import{t as d}from"./Cloud-DcLiPGhr.js";import{t as f}from"./Globe-DrYXTJaM.js";import{T as p}from"./index-Cmkt-N9A.js";var m=e();function h(e){let p=e.heading??`h1`,h=e.approving||e.denying,g=e.refusal??e.keyAuthorization?.refusal,_=e.keyAuthorization?.chain;return(0,m.jsxs)(c,{className:x.column?`z_tempo_2d_id-kV7-rJ12 z_tempo_2d_id-kV7-rJ13`:x.column().className,gap:e.compact?`24`:`32`,children:[(0,m.jsxs)(c,{...e.compact?x.headerCompact?{className:`z_tempo_2d_id-kV7-rJ1i z_tempo_2d_id-kV7-rJ1j`}:x.headerCompact():x.header?{className:`z_tempo_2d_id-kV7-rJ1h`}:x.header(),align:e.compact?`start`:`center`,gap:`8`,render:(0,m.jsx)(`header`,{}),children:[e.compact?null:(0,m.jsx)(o,{className:x.avatar?`z_tempo_2d_id-kV7-rJc z_tempo_2d_id-kV7-rJd z_tempo_2d_id-kV7-rJe z_tempo_2d_id-kV7-rJf z_tempo_2d_id-kV7-rJg`:x.avatar().className,children:e.logo?(0,m.jsx)(`img`,{className:x.logo?`z_tempo_2d_id-kV7-rJ1k z_tempo_2d_id-kV7-rJ1l z_tempo_2d_id-kV7-rJ1m z_tempo_2d_id-kV7-rJ1n`:x.logo().className,alt:``,src:e.logo}):(0,m.jsx)(f,{})}),(0,m.jsx)(p,{...e.compact?x.titleCompact?{className:`z_tempo_2d_id-kV7-rJ2a z_tempo_2d_id-kV7-rJ2g z_tempo_2d_id-kV7-rJ2h z_tempo_2d_id-kV7-rJ2i z_tempo_2d_id-kV7-rJ2j z_tempo_2d_id-kV7-rJ2k`}:x.titleCompact():x.title?{className:`z_tempo_2d_id-kV7-rJ2a z_tempo_2d_id-kV7-rJ2b z_tempo_2d_id-kV7-rJ2c z_tempo_2d_id-kV7-rJ2d z_tempo_2d_id-kV7-rJ2e z_tempo_2d_id-kV7-rJ2f`}:x.title(),children:`Authorize this app`}),(0,m.jsxs)(`p`,{className:x.description?`z_tempo_2d_id-kV7-rJ14 z_tempo_2d_id-kV7-rJ15 z_tempo_2d_id-kV7-rJ16 z_tempo_2d_id-kV7-rJ17 z_tempo_2d_id-kV7-rJ18 z_tempo_2d_id-kV7-rJ19 z_tempo_2d_id-kV7-rJ1a z_tempo_2d_id-kV7-rJ1b z_tempo_2d_id-kV7-rJ1c z_tempo_2d_id-kV7-rJ1d z_tempo_2d_id-kV7-rJ1e z_tempo_2d_id-kV7-rJ1f z_tempo_2d_id-kV7-rJ1g`:x.description().className,children:[`Approve to let`,` `,(0,m.jsxs)(`span`,{className:x.app?`z_tempo_2d_id-kV7-rJb`:x.app().className,children:[e.verified?(0,m.jsx)(`strong`,{children:e.app}):(0,m.jsx)(`bdi`,{children:e.app}),e.verified?(0,m.jsxs)(m.Fragment,{children:[` `,(0,m.jsxs)(i.Root,{children:[(0,m.jsx)(i.Trigger,{delay:150,render:(0,m.jsx)(l,{className:x.badge?`z_tempo_2d_id-kV7-rJh z_tempo_2d_id-kV7-rJi z_tempo_2d_id-kV7-rJj z_tempo_2d_id-kV7-rJk z_tempo_2d_id-kV7-rJl z_tempo_2d_id-kV7-rJm z_tempo_2d_id-kV7-rJn z_tempo_2d_id-kV7-rJo`:x.badge().className,"aria-label":`Verified`,role:`img`,tabIndex:0})}),(0,m.jsx)(i.Popup,{children:`Verified app`})]})]}):null]}),!e.verified&&e.app!==e.destination?` (${e.destination})`:null,` `,`use your Tempo Account.`]})]}),(0,m.jsxs)(c,{gap:`16`,children:[e.account?(0,m.jsxs)(s,{className:x.account?`z_tempo_2d_id-kV7-rJ0 z_tempo_2d_id-kV7-rJ1 z_tempo_2d_id-kV7-rJ2 z_tempo_2d_id-kV7-rJ3 z_tempo_2d_id-kV7-rJ4`:x.account().className,"aria-label":`Tempo Account`,gap:`12`,role:`group`,children:[(0,m.jsx)(o,{className:x.chip?`z_tempo_2d_id-kV7-rJc z_tempo_2d_id-kV7-rJ10 z_tempo_2d_id-kV7-rJ11`:x.chip().className,"aria-hidden":!0,children:e.account.owner===`webAuthn`?(0,m.jsx)(u,{}):(0,m.jsx)(d,{})}),(0,m.jsxs)(c,{className:x.text?`z_tempo_2d_id-kV7-rJ29`:x.text().className,gap:`4`,render:(0,m.jsx)(`span`,{}),children:[(0,m.jsx)(`span`,{className:x.kind?`z_tempo_2d_id-kV7-rJq z_tempo_2d_id-kV7-rJr z_tempo_2d_id-kV7-rJs z_tempo_2d_id-kV7-rJt z_tempo_2d_id-kV7-rJu`:x.kind().className,children:e.account.owner===`webAuthn`?`Passkey`:`Cloud`}),(0,m.jsx)(`span`,{className:x.address?`z_tempo_2d_id-kV7-rJ5 z_tempo_2d_id-kV7-rJ6 z_tempo_2d_id-kV7-rJ7 z_tempo_2d_id-kV7-rJ8 z_tempo_2d_id-kV7-rJ9 z_tempo_2d_id-kV7-rJa`:x.address().className,children:n(e.account.address)})]})]}):null,e.keyAuthorization?(0,m.jsx)(a,{chain:_&&_.id!==y?b(_):void 0,heading:e.heading===`h4`?`h5`:`h2`,keyAuthorization:e.keyAuthorization}):null,e.keyAuthorization?.challenge?(0,m.jsxs)(r,{intent:`warning`,role:`note`,children:[(0,m.jsx)(r.Icon,{}),(0,m.jsx)(r.Content,{children:(0,m.jsxs)(c,{gap:`8`,children:[(0,m.jsx)(`p`,{className:x.challengeTitle?`z_tempo_2d_id-nr-Vm71t z_tempo_2d_id-nr-Vm71u z_tempo_2d_id-nr-Vm71v z_tempo_2d_id-nr-Vm71w z_tempo_2d_id-nr-Vm71x`:x.challengeTitle().className,children:`This sign-in also signs a message`}),(0,m.jsx)(`p`,{className:x.challengeText?`z_tempo_2d_id-nr-Vm71y z_tempo_2d_id-kV7-rJq z_tempo_2d_id-kV7-rJr z_tempo_2d_id-kV7-rJs z_tempo_2d_id-kV7-rJt z_tempo_2d_id-kV7-rJu`:x.challengeText().className,children:`Approve only if you started this sign-in and expect this message.`}),(0,m.jsx)(`pre`,{className:x.message?`z_tempo_2d_id-nr-Vm71y z_tempo_2d_id-kV7-rJ1o z_tempo_2d_id-nr-Vm71s z_tempo_2d_id-kV7-rJ6 z_tempo_2d_id-kV7-rJ7 z_tempo_2d_id-kV7-rJ8 z_tempo_2d_id-kV7-rJ9 z_tempo_2d_id-kV7-rJa z_tempo_2d_id-kV7-rJ1q`:x.message().className,children:e.keyAuthorization.challenge})]})})]}):null,(0,m.jsx)(t,{disabled:e.checking||e.denying||!!g,loading:e.approving||e.checking,onClick:e.onApprove,children:`Approve`}),(0,m.jsx)(t,{disabled:e.approving,loading:e.denying,onClick:e.onDeny,variant:`tertiary`,children:`Deny`}),(0,m.jsxs)(`p`,{className:x.note?`z_tempo_2d_id-kV7-rJ1r z_tempo_2d_id-kV7-rJ1s z_tempo_2d_id-kV7-rJ1t z_tempo_2d_id-kV7-rJ1u z_tempo_2d_id-kV7-rJ1v z_tempo_2d_id-kV7-rJ1w z_tempo_2d_id-kV7-rJ1x z_tempo_2d_id-kV7-rJ1y z_tempo_2d_id-kV7-rJ1z z_tempo_2d_id-kV7-rJ20 z_tempo_2d_id-kV7-rJ21 z_tempo_2d_id-kV7-rJ22 z_tempo_2d_id-kV7-rJ23`:x.note().className,children:[`Signed in as `,(0,m.jsx)(`strong`,{children:e.email}),`.`]}),(0,m.jsx)(`p`,{className:x.status?`z_tempo_2d_id-kV7-rJ24 z_tempo_2d_id-kV7-rJ25 z_tempo_2d_id-kV7-rJ26 z_tempo_2d_id-kV7-rJ27 z_tempo_2d_id-kV7-rJb z_tempo_2d_id-kV7-rJ28`:x.status().className,"aria-live":`polite`,role:`status`,children:(()=>{if(h)return`Returning to ${e.destination}.`;if(e.checking)return`Checking your account…`})()})]}),(()=>{let t=e.error??(g?v[g]:void 0);return t?(0,m.jsxs)(r,{intent:`negative`,children:[(0,m.jsx)(r.Icon,{}),(0,m.jsx)(r.Content,{children:t})]}):null})()]})}function g(e){let t=e.heading??`h1`,n=_[e.reason??`request`];return(0,m.jsx)(c,{className:x.column?`z_tempo_2d_id-kV7-rJ12 z_tempo_2d_id-kV7-rJ13`:x.column().className,gap:e.compact?`24`:`32`,children:(0,m.jsxs)(c,{...e.compact?x.headerCompact?{className:`z_tempo_2d_id-kV7-rJ1i z_tempo_2d_id-kV7-rJ1j`}:x.headerCompact():x.header?{className:`z_tempo_2d_id-kV7-rJ1h`}:x.header(),align:e.compact?`start`:`center`,gap:`8`,render:(0,m.jsx)(`header`,{}),children:[e.compact?null:(0,m.jsx)(o,{className:x.warning?`z_tempo_2d_id-kV7-rJc z_tempo_2d_id-kV7-rJ2l z_tempo_2d_id-kV7-rJ2m z_tempo_2d_id-kV7-rJf z_tempo_2d_id-kV7-rJ2n`:x.warning().className,"aria-hidden":!0,intent:`warning`,children:(0,m.jsx)(p,{})}),(0,m.jsx)(t,{...e.compact?x.titleCompact?{className:`z_tempo_2d_id-kV7-rJ2a z_tempo_2d_id-kV7-rJ2g z_tempo_2d_id-kV7-rJ2h z_tempo_2d_id-kV7-rJ2i z_tempo_2d_id-kV7-rJ2j z_tempo_2d_id-kV7-rJ2k`}:x.titleCompact():x.title?{className:`z_tempo_2d_id-kV7-rJ2a z_tempo_2d_id-kV7-rJ2b z_tempo_2d_id-kV7-rJ2c z_tempo_2d_id-kV7-rJ2d z_tempo_2d_id-kV7-rJ2e z_tempo_2d_id-kV7-rJ2f`}:x.title(),children:n.title}),(0,m.jsx)(`p`,{className:x.description?`z_tempo_2d_id-kV7-rJ14 z_tempo_2d_id-kV7-rJ15 z_tempo_2d_id-kV7-rJ16 z_tempo_2d_id-kV7-rJ17 z_tempo_2d_id-kV7-rJ18 z_tempo_2d_id-kV7-rJ19 z_tempo_2d_id-kV7-rJ1a z_tempo_2d_id-kV7-rJ1b z_tempo_2d_id-kV7-rJ1c z_tempo_2d_id-kV7-rJ1d z_tempo_2d_id-kV7-rJ1e z_tempo_2d_id-kV7-rJ1f z_tempo_2d_id-kV7-rJ1g`:x.description().className,children:n.description})]})})}var _={client:{description:`The app that sent you here is not registered with Tempo ID, or it is turned off. Return to the app, and contact its developer if the problem continues.`,title:`This app is not recognized`},redirect:{description:`The app asked to return you to an address that it has not registered, so Tempo ID stopped the sign-in. Return to the app, and contact its developer if the problem continues.`,title:`This app’s return address is not registered`},request:{description:`The app sent a request Tempo ID cannot complete. Return to the app and try again.`,title:`This sign-in request is invalid`}},v={foreign_account:`The app requests a key for a Tempo Account that you do not hold. Deny the request, and sign in to the app again as that account's owner.`,no_account:`You have no Tempo Account for this app yet, so no account can approve the key. Deny the request, create an account in the app, and try again.`,passkey:`This Tempo Account signs with a passkey that this page cannot use. Deny the request, and return to the app.`,unavailable:`Tempo ID cannot read your Tempo Account right now. Reload the page in a minute, or deny the request.`,upgrade:`This Tempo Account must upgrade to a configurable wallet on this chain before it approves keys. Deny the request, upgrade the wallet on your account page, and try again.`},y=4217;function b(e){return e.name===`mainnet`?`Mainnet`:e.name===`testnet`?`Testnet`:e.name??`Chain ${e.id}`}var x;(function(e){e.account=1,e.address=1,e.app=1,e.avatar=1,e.badge=1,e.challengeText=1,e.challengeTitle=1,e.chip=1,e.column=1,e.description=1,e.header=1,e.headerCompact=1,e.kind=1,e.logo=1,e.message=1,e.note=1,e.status=1,e.text=1,e.title=1,e.titleCompact=1,e.warning=1})(x||={});export{h as Approval,g as InvalidRequest};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{X as t,Y as n,Z as r,n as i}from"./zyzz.config-B1viQ4-F.js";import{t as a}from"./Check-Dzncy3Z6.js";import{t as o}from"./Alert-C3aAPp1-.js";import{t as s}from"./Tooltip-CfX-udM0.js";import{n as c,r as l}from"./WalletUpgrade-SI3A-rNw.js";import{t as u}from"./RowDisabled-CvLj65HH.js";import{n as d}from"./Grant-D9J5rWQc.js";import{t as f}from"./IconTile-U61I4u7J.js";import{n as p}from"./StatusChip-DZmt1RJH.js";import{t as m}from"./CodeInput-B7AuFJOf.js";import{t as h}from"./Stack-BOcRBVsr.js";import{n as g}from"./Fingerprint-DIqTuY88.js";import{t as _}from"./Laptop-CD8ECCIM.js";import{T as v}from"./index-BCTnLwp1.js";var y=e(r(),1),b=t();function x(e){return(0,b.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,b.jsx)(`path`,{d:`M13.5 7.5C13.7761 7.5 14 7.72386 14 8C14 8.27614 13.7761 8.5 13.5 8.5H2.5C2.22386 8.5 2 8.27614 2 8C2 7.72386 2.22386 7.5 2.5 7.5H13.5Z`,fill:`currentColor`})})}function S(e){let{className:t,size:n,vars:r,...i}=e,o=(0,y.useContext)(u);return(0,b.jsx)(l,{...i,disabled:i.disabled||o,...C.checkbox({className:t,size:n,style:e.style,vars:r}),children:(0,b.jsxs)(c,{...C.indicator(),children:[(0,b.jsx)(a,{...C.check()}),(0,b.jsx)(x,{...C.minus()})]})})}var C;(function(e){e.check=n({className:`z_tds_2f_web-9Fm8U20`}),e.checkbox=((e={})=>{let t=e.className,n=e.style,r=e.vars,i=r?{...r,...n}:n,a=t?`z_tds_2f_web-9Fm8U21 z_tds_2f_web-9Fm8U22 z_tds_2f_web-9Fm8U23 z_tds_2f_web-9Fm8U24 z_tds_2f_web-9Fm8U25 z_tds_2f_web-9Fm8U26 z_tds_2f_web-9Fm8U27 z_tds_2f_web-9Fm8U28 z_tds_2f_web-9Fm8U29 z_tds_2f_web-9Fm8U2a z_tds_2f_web-9Fm8U2b z_tds_2f_web-9Fm8U2c z_tds_2f_web-9Fm8U2d z_tds_2f_web-9Fm8U2e z_tds_2f_web-9Fm8U2f z_tds_2f_web-9Fm8U2g z_tds_2f_web-9Fm8U2h z_tds_2f_web-9Fm8U2i z_tds_2f_web-9Fm8U2j z_tds_2f_web-9Fm8U2k z_tds_2f_web-9Fm8U2l z_tds_2f_web-9Fm8U2m z_tds_2f_web-9Fm8U2n z_tds_2f_web-9Fm8U2o z_tds_2f_web-9Fm8U2p z_tds_2f_web-9Fm8U2q z_tds_2f_web-9Fm8U2r z_tds_2f_web-9Fm8U2s z_tds_2f_web-9Fm8U2t z_tds_2f_web-9Fm8U2u z_tds_2f_web-9Fm8U2v z_tds_2f_web-9Fm8U2w z_tds_2f_web-9Fm8U2x z_tds_2f_web-9Fm8U2y z_tds_2f_web-9Fm8U2z z_tds_2f_web-9Fm8U210 z_tds_2f_web-9Fm8U211 z_tds_2f_web-9Fm8U212 z_tds_2f_web-9Fm8U213 z_tds_2f_web-9Fm8U214 z_tds_2f_web-9Fm8U215 z_tds_2f_web-9Fm8U216 z_tds_2f_web-9Fm8U217 z_tds_2f_web-9Fm8U218 z_tds_2f_web-9Fm8U219 z_tds_2f_web-9Fm8U21a `+t:`z_tds_2f_web-9Fm8U21 z_tds_2f_web-9Fm8U22 z_tds_2f_web-9Fm8U23 z_tds_2f_web-9Fm8U24 z_tds_2f_web-9Fm8U25 z_tds_2f_web-9Fm8U26 z_tds_2f_web-9Fm8U27 z_tds_2f_web-9Fm8U28 z_tds_2f_web-9Fm8U29 z_tds_2f_web-9Fm8U2a z_tds_2f_web-9Fm8U2b z_tds_2f_web-9Fm8U2c z_tds_2f_web-9Fm8U2d z_tds_2f_web-9Fm8U2e z_tds_2f_web-9Fm8U2f z_tds_2f_web-9Fm8U2g z_tds_2f_web-9Fm8U2h z_tds_2f_web-9Fm8U2i z_tds_2f_web-9Fm8U2j z_tds_2f_web-9Fm8U2k z_tds_2f_web-9Fm8U2l z_tds_2f_web-9Fm8U2m z_tds_2f_web-9Fm8U2n z_tds_2f_web-9Fm8U2o z_tds_2f_web-9Fm8U2p z_tds_2f_web-9Fm8U2q z_tds_2f_web-9Fm8U2r z_tds_2f_web-9Fm8U2s z_tds_2f_web-9Fm8U2t z_tds_2f_web-9Fm8U2u z_tds_2f_web-9Fm8U2v z_tds_2f_web-9Fm8U2w z_tds_2f_web-9Fm8U2x z_tds_2f_web-9Fm8U2y z_tds_2f_web-9Fm8U2z z_tds_2f_web-9Fm8U210 z_tds_2f_web-9Fm8U211 z_tds_2f_web-9Fm8U212 z_tds_2f_web-9Fm8U213 z_tds_2f_web-9Fm8U214 z_tds_2f_web-9Fm8U215 z_tds_2f_web-9Fm8U216 z_tds_2f_web-9Fm8U217 z_tds_2f_web-9Fm8U218 z_tds_2f_web-9Fm8U219 z_tds_2f_web-9Fm8U21a`,o=i?{className:a,style:i}:{className:a},s;return s=Object.hasOwn(e,`size`)?e.size:void 0,s===void 0&&(s=`medium`),s!=null&&(o[`data-size`]=String(s)),o}),e.indicator=n({className:`z_tds_2f_web-9Fm8U21b z_tds_2f_web-9Fm8U21c z_tds_2f_web-9Fm8U21d z_tds_2f_web-9Fm8U21e z_tds_2f_web-9Fm8U21f z_tds_2f_web-9Fm8U21g z_tds_2f_web-9Fm8U21h z_tds_2f_web-9Fm8U21i`}),e.minus=n({className:`z_tds_2f_web-9Fm8U21j z_tds_2f_web-9Fm8U21k`})})(C||={});function w(e){return(0,b.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,b.jsx)(`path`,{d:`M8.00098 4.66602C8.27653 4.66645 8.50062 4.89045 8.50098 5.16602V7.79297L10.1875 9.47949C10.3825 9.67462 10.3823 9.99125 10.1875 10.1865C9.99226 10.3818 9.67574 10.3817 9.48047 10.1865L7.64746 8.35352C7.55377 8.25982 7.50106 8.13249 7.50098 8V5.16602C7.50133 4.89018 7.72505 4.66602 8.00098 4.66602Z`,fill:`currentColor`}),(0,b.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.00098 1.33301C11.6824 1.33345 14.6668 4.31853 14.667 8C14.6668 11.6815 11.6824 14.6656 8.00098 14.666C4.31919 14.666 1.33318 11.6817 1.33301 8C1.33319 4.31826 4.31919 1.33301 8.00098 1.33301ZM8.00098 2.33301C4.87148 2.33301 2.33417 4.87054 2.33398 8C2.33416 11.1294 4.87147 13.666 8.00098 13.666C11.1301 13.6656 13.6668 11.1292 13.667 8C13.6668 4.87082 11.1301 2.33345 8.00098 2.33301Z`,fill:`currentColor`})]})}function T(e){return(0,b.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,b.jsx)(`path`,{d:`M10.0693 8.80616C11.3199 8.97992 12.4268 9.31057 13.2363 9.76222C14.0167 10.1977 14.6668 10.8347 14.667 11.6665C14.667 12.1908 14.4026 12.6417 14.0283 13.0005C13.6553 13.358 13.1419 13.6575 12.5488 13.898C11.3599 14.3799 9.75149 14.6664 8.00098 14.6665C6.25029 14.6665 4.64122 14.3799 3.45215 13.898C2.8591 13.6575 2.34566 13.3579 1.97266 13.0005C1.59839 12.6417 1.33303 12.1908 1.33301 11.6665C1.33316 10.8345 1.98414 10.1978 2.76465 9.76222C3.5742 9.31057 4.68102 8.97991 5.93164 8.80616C6.20498 8.76845 6.45812 8.95956 6.49609 9.23292C6.53371 9.50605 6.3424 9.75821 6.06934 9.7964C4.89651 9.95932 3.9196 10.2628 3.25195 10.6353C2.55551 11.0239 2.33415 11.4018 2.33398 11.6665C2.33401 11.8324 2.41535 12.0395 2.66504 12.2788C2.9161 12.5193 3.30576 12.7594 3.82812 12.9712C4.87088 13.3938 6.34642 13.6665 8.00098 13.6665C9.65529 13.6664 11.1303 13.3938 12.1729 12.9712C12.6953 12.7593 13.0859 12.5194 13.3369 12.2788C13.5863 12.0397 13.667 11.8323 13.667 11.6665C13.6668 11.4018 13.4452 11.0238 12.749 10.6353C12.0814 10.2628 11.1043 9.95934 9.93164 9.7964C9.65837 9.75831 9.4681 9.50621 9.50586 9.23292C9.54385 8.95943 9.79585 8.76822 10.0693 8.80616Z`,fill:`currentColor`}),(0,b.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M6.11426 2.11475C7.15559 1.07435 8.84294 1.07287 9.88477 2.11475C10.9263 3.15634 10.9267 4.84526 9.88477 5.88624C9.49213 6.2783 9.00732 6.52222 8.5 6.61866V11.4995C8.5 11.7757 8.27614 11.9995 8 11.9995C7.72386 11.9995 7.5 11.7757 7.5 11.4995V6.61866C6.99206 6.52234 6.50626 6.27863 6.11328 5.88526C5.07366 4.84407 5.07276 3.15585 6.11426 2.11475ZM9.17773 2.82179C8.52695 2.17094 7.47264 2.17121 6.82129 2.82179C6.17108 3.4718 6.17058 4.52781 6.82129 5.17921C7.47111 5.82948 8.52635 5.82864 9.17773 5.17823C9.82854 4.52804 9.82894 3.47304 9.17773 2.82179Z`,fill:`currentColor`})]})}function E(e){let t=e.heading??`h1`,n=(0,y.useId)(),[r,c]=(0,y.useState)(!1),l=e.request?.app,u=e.refusal??e.request?.key_authorization?.refusal,x=!!e.request?.country_mismatch,C=!x||r,E=e.status===`denied`?`Denied. The device was not signed in.`:e.request?l?(0,b.jsxs)(b.Fragment,{children:[`Make sure this code matches the one on your device, then approve to grant `,(0,b.jsx)(`strong`,{children:l.name}),` `,(0,b.jsxs)(s.Root,{children:[(0,b.jsx)(s.Trigger,{delay:150,render:(0,b.jsx)(g,{className:j.verified?`z_tempo_2d_id-tpVtLR2y z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR2z z_tempo_2d_id-tpVtLR30 z_tempo_2d_id-tpVtLR1o z_tempo_2d_id-tpVtLR31 z_tempo_2d_id-tpVtLR32 z_tempo_2d_id-tpVtLR33`:j.verified().className,"aria-label":`Verified`,role:`img`,tabIndex:0})}),(0,b.jsx)(s.Popup,{children:`Verified app`})]}),` `,`access to your account.`]}):(0,b.jsxs)(b.Fragment,{children:[`Make sure this code matches the one on your device, then approve to grant`,` `,(0,b.jsxs)(s.Root,{children:[(0,b.jsx)(s.Trigger,{delay:150,render:(0,b.jsxs)(`span`,{className:j.unverified?`z_tempo_2d_id-tpVtLR2n z_tempo_2d_id-tpVtLRg z_tempo_2d_id-tpVtLR2o z_tempo_2d_id-tpVtLR2p z_tempo_2d_id-tpVtLR2q z_tempo_2d_id-tpVtLR2r z_tempo_2d_id-tpVtLR2s z_tempo_2d_id-tpVtLR2t z_tempo_2d_id-tpVtLR2u z_tempo_2d_id-tpVtLR2v z_tempo_2d_id-tpVtLR2w z_tempo_2d_id-3w2jki4`:j.unverified().className,tabIndex:0,children:[(0,b.jsx)(v,{className:j.warning?`z_tempo_2d_id-tpVtLR2y z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR34 z_tempo_2d_id-tpVtLR30 z_tempo_2d_id-tpVtLR1o`:j.warning().className}),`an unverified app`]})}),(0,b.jsx)(s.Popup,{children:`Unverified app`})]}),` `,`access to your account.`]}):`Enter the code shown in your terminal.`;return e.status===`approved`?(0,b.jsx)(h,{className:j.column?`z_tempo_2d_id-tpVtLRq z_tempo_2d_id-tpVtLRr`:j.column().className,gap:`32`,children:(0,b.jsxs)(h,{className:j.header?`z_tempo_2d_id-tpVtLR1j`:j.header().className,align:`center`,gap:`8`,render:(0,b.jsx)(`header`,{}),children:[(0,b.jsx)(f,{className:j.avatar?`z_tempo_2d_id-tpVtLR0 z_tempo_2d_id-tpVtLR1 z_tempo_2d_id-tpVtLR2 z_tempo_2d_id-tpVtLR3 z_tempo_2d_id-tpVtLR4`:j.avatar().className,"aria-hidden":!0,children:(0,b.jsx)(a,{})}),(0,b.jsx)(t,{className:j.title?`z_tempo_2d_id-tpVtLR2h z_tempo_2d_id-tpVtLR2i z_tempo_2d_id-tpVtLR2j z_tempo_2d_id-tpVtLR2k z_tempo_2d_id-tpVtLR2l z_tempo_2d_id-tpVtLR2m`:j.title().className,children:`Authorization successful`}),(0,b.jsxs)(p,{className:j.success?`z_tempo_2d_id-tpVtLR2c z_tempo_2d_id-tpVtLR2d z_tempo_2d_id-tpVtLR2e z_tempo_2d_id-tpVtLR2f z_tempo_2d_id-tpVtLR2g`:j.success().className,"aria-live":`polite`,gap:`8`,justify:`center`,render:(0,b.jsx)(`p`,{}),role:`status`,children:[(0,b.jsx)(`span`,{className:j.check?`z_tempo_2d_id-tpVtLRh z_tempo_2d_id-tpVtLRi z_tempo_2d_id-tpVtLRj z_tempo_2d_id-tpVtLRk z_tempo_2d_id-tpVtLRl z_tempo_2d_id-3w2jki9 z_tempo_2d_id-tpVtLRn z_tempo_2d_id-tpVtLRo z_tempo_2d_id-tpVtLRp`:j.check().className,children:(0,b.jsx)(a,{})}),`You can close this tab.`]})]})}):(0,b.jsxs)(h,{className:j.column?`z_tempo_2d_id-tpVtLRq z_tempo_2d_id-tpVtLRr`:j.column().className,gap:`32`,children:[(0,b.jsxs)(h,{className:j.header?`z_tempo_2d_id-tpVtLR1j`:j.header().className,align:`center`,gap:`8`,render:(0,b.jsx)(`header`,{}),children:[(0,b.jsx)(f,{className:j.avatar?`z_tempo_2d_id-tpVtLR0 z_tempo_2d_id-tpVtLR1 z_tempo_2d_id-tpVtLR2 z_tempo_2d_id-tpVtLR3 z_tempo_2d_id-tpVtLR4`:j.avatar().className,intent:!e.request||l?`neutral`:`warning`,children:!e.request||l?(0,b.jsx)(_,{}):(0,b.jsx)(v,{})}),(0,b.jsx)(t,{className:j.title?`z_tempo_2d_id-tpVtLR2h z_tempo_2d_id-tpVtLR2i z_tempo_2d_id-tpVtLR2j z_tempo_2d_id-tpVtLR2k z_tempo_2d_id-tpVtLR2l z_tempo_2d_id-tpVtLR2m`:j.title().className,children:`Authorize a device`}),(0,b.jsx)(`p`,{className:j.description?`z_tempo_2d_id-tpVtLRy z_tempo_2d_id-tpVtLRz z_tempo_2d_id-tpVtLR10 z_tempo_2d_id-tpVtLR11 z_tempo_2d_id-tpVtLR12 z_tempo_2d_id-tpVtLR13 z_tempo_2d_id-tpVtLR14 z_tempo_2d_id-tpVtLR15 z_tempo_2d_id-tpVtLR16 z_tempo_2d_id-tpVtLR17 z_tempo_2d_id-tpVtLR18 z_tempo_2d_id-tpVtLR19 z_tempo_2d_id-tpVtLR1a z_tempo_2d_id-tpVtLR1b`:j.description().className,children:E})]}),e.status===`denied`?null:e.request?(0,b.jsxs)(h,{gap:`16`,children:[(0,b.jsx)(m,{"aria-label":`Code`,defaultValue:e.request.user_code,length:8,readOnly:!0,separator:4},e.request.user_code),e.request.key_authorization?(0,b.jsx)(d,{heading:e.heading===`h4`?`h5`:`h2`,keyAuthorization:e.request.key_authorization}):null,e.request.challenge?(0,b.jsxs)(`div`,{className:j.challenge?`z_tempo_2d_id-tpVtLR5 z_tempo_2d_id-tpVtLR6 z_tempo_2d_id-tpVtLR7 z_tempo_2d_id-tpVtLR8 z_tempo_2d_id-tpVtLR9`:j.challenge().className,role:`note`,children:[(0,b.jsx)(`p`,{className:j.challengeTitle?`z_tempo_2d_id-tpVtLRg z_tempo_2d_id-tpVtLRb z_tempo_2d_id-tpVtLRc z_tempo_2d_id-tpVtLRd z_tempo_2d_id-tpVtLRe z_tempo_2d_id-tpVtLRf`:j.challengeTitle().className,children:`This sign-in also signs a message`}),(0,b.jsx)(`p`,{className:j.challengeText?`z_tempo_2d_id-nr-Vm71y z_tempo_2d_id-tpVtLRb z_tempo_2d_id-tpVtLRc z_tempo_2d_id-tpVtLRd z_tempo_2d_id-tpVtLRe z_tempo_2d_id-tpVtLRf`:j.challengeText().className,children:`Approve only if you started this sign-in in your own terminal and expect this message.`}),(0,b.jsx)(`pre`,{className:j.message?`z_tempo_2d_id-tpVtLR1i z_tempo_2d_id-nr-Vm71s z_tempo_2d_id-tpVtLR1q z_tempo_2d_id-tpVtLR1r z_tempo_2d_id-tpVtLR1s z_tempo_2d_id-tpVtLR1t z_tempo_2d_id-tpVtLR1u z_tempo_2d_id-tpVtLR1v`:j.message().className,children:e.request.challenge})]}):null,(0,b.jsxs)(`dl`,{className:j.details?`z_tempo_2d_id-tpVtLR1h z_tempo_2d_id-tpVtLR6 z_tempo_2d_id-tpVtLR7 z_tempo_2d_id-tpVtLR8 z_tempo_2d_id-tpVtLR1i z_tempo_2d_id-tpVtLR9 z_tempo_2d_id-tpVtLRb z_tempo_2d_id-tpVtLRc z_tempo_2d_id-tpVtLRd z_tempo_2d_id-tpVtLRe z_tempo_2d_id-tpVtLRf`:j.details().className,children:[e.request.device?(0,b.jsxs)(p,{className:j.row?`z_tempo_2d_id-tpVtLR29 z_tempo_2d_id-tpVtLR2a`:j.row().className,gap:`12`,children:[(0,b.jsx)(`dt`,{children:(0,b.jsx)(_,{className:j.icon?`z_tempo_2d_id-tpVtLR1k z_tempo_2d_id-tpVtLR1l z_tempo_2d_id-tpVtLR1m z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR1o`:j.icon().className,"aria-label":`Device name`,role:`img`})}),(0,b.jsxs)(`dd`,{children:[(0,b.jsx)(`bdi`,{className:j.device?`z_tempo_2d_id-nr-Vm71t z_tempo_2d_id-nr-Vm71u z_tempo_2d_id-nr-Vm71v z_tempo_2d_id-nr-Vm71w z_tempo_2d_id-nr-Vm71x`:j.device().className,children:e.request.device.slice(0,64)}),` `,(0,b.jsx)(`span`,{className:j.source?`z_tempo_2d_id-tpVtLR2b`:j.source().className,children:`(as the device reports it)`})]})]}):null,(0,b.jsxs)(p,{className:j.row?`z_tempo_2d_id-tpVtLR29 z_tempo_2d_id-tpVtLR2a`:j.row().className,gap:`12`,children:[(0,b.jsx)(`dt`,{children:(0,b.jsx)(T,{className:j.icon?`z_tempo_2d_id-tpVtLR1k z_tempo_2d_id-tpVtLR1l z_tempo_2d_id-tpVtLR1m z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR1o`:j.icon().className,"aria-label":`Location`,role:`img`})}),(0,b.jsxs)(`dd`,{children:[`Requested from`,` `,e.request.location??`an unknown location`]})]}),(0,b.jsxs)(p,{className:j.row?`z_tempo_2d_id-tpVtLR29 z_tempo_2d_id-tpVtLR2a`:j.row().className,gap:`12`,children:[(0,b.jsx)(`dt`,{children:(0,b.jsx)(w,{className:j.icon?`z_tempo_2d_id-tpVtLR1k z_tempo_2d_id-tpVtLR1l z_tempo_2d_id-tpVtLR1m z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR1o`:j.icon().className,"aria-label":`Requested`,role:`img`})}),(0,b.jsxs)(`dd`,{children:[O(e.now/1e3-e.request.created_at),` (`,A.format(e.request.created_at*1e3),` UTC)`]})]})]}),x?(0,b.jsxs)(o,{intent:`negative`,children:[(0,b.jsx)(o.Icon,{}),(0,b.jsx)(o.Content,{children:e.request.country?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o.Title,{children:`Requested from another country`}),`This code was requested from `,e.request.location,`, not from where you are now. If you did not start it on your own device, deny it.`]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o.Title,{children:`Requested from an unknown location`}),`The device that requested this code hides its location, such as through Tor. If you did not start it on your own device, deny it.`]})})]}):null,x?(0,b.jsxs)(p,{className:j.confirmation?`z_tempo_2d_id-tpVtLRs z_tempo_2d_id-tpVtLRt z_tempo_2d_id-tpVtLRu z_tempo_2d_id-tpVtLRv z_tempo_2d_id-tpVtLRw z_tempo_2d_id-tpVtLRx`:j.confirmation().className,gap:`12`,render:(0,b.jsx)(`label`,{}),children:[(0,b.jsx)(S,{checked:r,onCheckedChange:c}),`I started this sign-in on my own device`]}):null,(0,b.jsx)(i,{disabled:e.denying||!!u||!C,loading:e.approving,onClick:e.onApprove,children:`Approve`}),(0,b.jsx)(i,{disabled:e.approving,loading:e.denying,onClick:e.onDeny,variant:`tertiary`,children:`Deny`}),e.email?(0,b.jsxs)(`p`,{className:j.note?`z_tempo_2d_id-tpVtLR1w z_tempo_2d_id-tpVtLR1x z_tempo_2d_id-tpVtLR1y z_tempo_2d_id-tpVtLR1z z_tempo_2d_id-tpVtLR20 z_tempo_2d_id-tpVtLR21 z_tempo_2d_id-tpVtLR22 z_tempo_2d_id-tpVtLR23 z_tempo_2d_id-tpVtLR24 z_tempo_2d_id-tpVtLR25 z_tempo_2d_id-tpVtLR26 z_tempo_2d_id-tpVtLR27 z_tempo_2d_id-tpVtLR28`:j.note().className,children:[`Signed in as `,(0,b.jsx)(`strong`,{children:e.email}),`.`]}):null]}):(0,b.jsxs)(h,{gap:`32`,render:(0,b.jsx)(`form`,{onSubmit:e.onSubmitCode}),children:[(0,b.jsx)(m,{"aria-describedby":`${n}-error`,"aria-label":`Code shown in your terminal`,autoComplete:`off`,autoFocus:e.autoFocus,defaultValue:e.code,invalid:e.invalid,length:8,name:`code`,readOnly:e.fetching,required:!0,separator:4}),(0,b.jsx)(i,{loading:e.fetching,type:`submit`,children:`Continue`})]}),(()=>{let t=e.error??(u?D[u]:void 0);return t?(0,b.jsxs)(o,{id:`${n}-error`,intent:`negative`,children:[(0,b.jsx)(o.Icon,{}),(0,b.jsx)(o.Content,{children:t})]}):null})()]})}var D={foreign_account:`The terminal requests a key for a Tempo Account that you do not hold. Deny the request, and start the sign-in again in the terminal as that account's owner.`,no_account:`You have no Tempo Account for this app yet, so no account can approve the key. Deny the request, create an account, and try again.`,passkey:`This Tempo Account signs with a passkey that this page cannot use. Deny the request, and return to the terminal.`,unavailable:`Tempo ID cannot read your Tempo Account right now. Reload the page in a minute, or deny the request.`,upgrade:`This Tempo Account must upgrade to a configurable wallet on this chain before it approves keys. Deny the request, upgrade the wallet on your account page, and try again.`};function O(e){if(e<60)return`Less than a minute ago`;let t=Math.floor(e/60);return t<60?k.format(-t,`minute`):k.format(-Math.floor(t/60),`hour`)}var k=new Intl.RelativeTimeFormat(`en-US`,{numeric:`always`}),A=new Intl.DateTimeFormat(`en-US`,{dateStyle:`medium`,timeStyle:`short`,timeZone:`UTC`}),j;(function(e){e.avatar=1,e.challenge=1,e.challengeText=1,e.challengeTitle=1,e.check=1,e.column=1,e.confirmation=1,e.description=1,e.device=1,e.details=1,e.header=1,e.icon=1,e.message=1,e.note=1,e.row=1,e.source=1,e.success=1,e.title=1,e.unverified=1,e.verified=1,e.warning=1})(j||={});export{E as t};
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{X as t,Y as n,Z as r,n as i}from"./zyzz.config-B1viQ4-F.js";import{t as a}from"./Check-Dzncy3Z6.js";import{t as o}from"./Alert-C3aAPp1-.js";import{t as s}from"./Tooltip-CfX-udM0.js";import{n as c,r as l}from"./WalletUpgrade-DacY_fRQ.js";import{t as u}from"./RowDisabled-CvLj65HH.js";import{n as d}from"./Grant-CcsQ97_x.js";import{t as f}from"./IconTile-U61I4u7J.js";import{n as p}from"./StatusChip-DZmt1RJH.js";import{t as m}from"./CodeInput-B7AuFJOf.js";import{t as h}from"./Stack-BOcRBVsr.js";import{n as g}from"./Fingerprint-DIqTuY88.js";import{t as _}from"./Laptop-CD8ECCIM.js";import{T as v}from"./index-Cmkt-N9A.js";var y=e(r(),1),b=t();function x(e){return(0,b.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,b.jsx)(`path`,{d:`M13.5 7.5C13.7761 7.5 14 7.72386 14 8C14 8.27614 13.7761 8.5 13.5 8.5H2.5C2.22386 8.5 2 8.27614 2 8C2 7.72386 2.22386 7.5 2.5 7.5H13.5Z`,fill:`currentColor`})})}function S(e){let{className:t,size:n,vars:r,...i}=e,o=(0,y.useContext)(u);return(0,b.jsx)(l,{...i,disabled:i.disabled||o,...C.checkbox({className:t,size:n,style:e.style,vars:r}),children:(0,b.jsxs)(c,{...C.indicator(),children:[(0,b.jsx)(a,{...C.check()}),(0,b.jsx)(x,{...C.minus()})]})})}var C;(function(e){e.check=n({className:`z_tds_2f_web-9Fm8U20`}),e.checkbox=((e={})=>{let t=e.className,n=e.style,r=e.vars,i=r?{...r,...n}:n,a=t?`z_tds_2f_web-9Fm8U21 z_tds_2f_web-9Fm8U22 z_tds_2f_web-9Fm8U23 z_tds_2f_web-9Fm8U24 z_tds_2f_web-9Fm8U25 z_tds_2f_web-9Fm8U26 z_tds_2f_web-9Fm8U27 z_tds_2f_web-9Fm8U28 z_tds_2f_web-9Fm8U29 z_tds_2f_web-9Fm8U2a z_tds_2f_web-9Fm8U2b z_tds_2f_web-9Fm8U2c z_tds_2f_web-9Fm8U2d z_tds_2f_web-9Fm8U2e z_tds_2f_web-9Fm8U2f z_tds_2f_web-9Fm8U2g z_tds_2f_web-9Fm8U2h z_tds_2f_web-9Fm8U2i z_tds_2f_web-9Fm8U2j z_tds_2f_web-9Fm8U2k z_tds_2f_web-9Fm8U2l z_tds_2f_web-9Fm8U2m z_tds_2f_web-9Fm8U2n z_tds_2f_web-9Fm8U2o z_tds_2f_web-9Fm8U2p z_tds_2f_web-9Fm8U2q z_tds_2f_web-9Fm8U2r z_tds_2f_web-9Fm8U2s z_tds_2f_web-9Fm8U2t z_tds_2f_web-9Fm8U2u z_tds_2f_web-9Fm8U2v z_tds_2f_web-9Fm8U2w z_tds_2f_web-9Fm8U2x z_tds_2f_web-9Fm8U2y z_tds_2f_web-9Fm8U2z z_tds_2f_web-9Fm8U210 z_tds_2f_web-9Fm8U211 z_tds_2f_web-9Fm8U212 z_tds_2f_web-9Fm8U213 z_tds_2f_web-9Fm8U214 z_tds_2f_web-9Fm8U215 z_tds_2f_web-9Fm8U216 z_tds_2f_web-9Fm8U217 z_tds_2f_web-9Fm8U218 z_tds_2f_web-9Fm8U219 z_tds_2f_web-9Fm8U21a `+t:`z_tds_2f_web-9Fm8U21 z_tds_2f_web-9Fm8U22 z_tds_2f_web-9Fm8U23 z_tds_2f_web-9Fm8U24 z_tds_2f_web-9Fm8U25 z_tds_2f_web-9Fm8U26 z_tds_2f_web-9Fm8U27 z_tds_2f_web-9Fm8U28 z_tds_2f_web-9Fm8U29 z_tds_2f_web-9Fm8U2a z_tds_2f_web-9Fm8U2b z_tds_2f_web-9Fm8U2c z_tds_2f_web-9Fm8U2d z_tds_2f_web-9Fm8U2e z_tds_2f_web-9Fm8U2f z_tds_2f_web-9Fm8U2g z_tds_2f_web-9Fm8U2h z_tds_2f_web-9Fm8U2i z_tds_2f_web-9Fm8U2j z_tds_2f_web-9Fm8U2k z_tds_2f_web-9Fm8U2l z_tds_2f_web-9Fm8U2m z_tds_2f_web-9Fm8U2n z_tds_2f_web-9Fm8U2o z_tds_2f_web-9Fm8U2p z_tds_2f_web-9Fm8U2q z_tds_2f_web-9Fm8U2r z_tds_2f_web-9Fm8U2s z_tds_2f_web-9Fm8U2t z_tds_2f_web-9Fm8U2u z_tds_2f_web-9Fm8U2v z_tds_2f_web-9Fm8U2w z_tds_2f_web-9Fm8U2x z_tds_2f_web-9Fm8U2y z_tds_2f_web-9Fm8U2z z_tds_2f_web-9Fm8U210 z_tds_2f_web-9Fm8U211 z_tds_2f_web-9Fm8U212 z_tds_2f_web-9Fm8U213 z_tds_2f_web-9Fm8U214 z_tds_2f_web-9Fm8U215 z_tds_2f_web-9Fm8U216 z_tds_2f_web-9Fm8U217 z_tds_2f_web-9Fm8U218 z_tds_2f_web-9Fm8U219 z_tds_2f_web-9Fm8U21a`,o=i?{className:a,style:i}:{className:a},s;return s=Object.hasOwn(e,`size`)?e.size:void 0,s===void 0&&(s=`medium`),s!=null&&(o[`data-size`]=String(s)),o}),e.indicator=n({className:`z_tds_2f_web-9Fm8U21b z_tds_2f_web-9Fm8U21c z_tds_2f_web-9Fm8U21d z_tds_2f_web-9Fm8U21e z_tds_2f_web-9Fm8U21f z_tds_2f_web-9Fm8U21g z_tds_2f_web-9Fm8U21h z_tds_2f_web-9Fm8U21i`}),e.minus=n({className:`z_tds_2f_web-9Fm8U21j z_tds_2f_web-9Fm8U21k`})})(C||={});function w(e){return(0,b.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,b.jsx)(`path`,{d:`M8.00098 4.66602C8.27653 4.66645 8.50062 4.89045 8.50098 5.16602V7.79297L10.1875 9.47949C10.3825 9.67462 10.3823 9.99125 10.1875 10.1865C9.99226 10.3818 9.67574 10.3817 9.48047 10.1865L7.64746 8.35352C7.55377 8.25982 7.50106 8.13249 7.50098 8V5.16602C7.50133 4.89018 7.72505 4.66602 8.00098 4.66602Z`,fill:`currentColor`}),(0,b.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.00098 1.33301C11.6824 1.33345 14.6668 4.31853 14.667 8C14.6668 11.6815 11.6824 14.6656 8.00098 14.666C4.31919 14.666 1.33318 11.6817 1.33301 8C1.33319 4.31826 4.31919 1.33301 8.00098 1.33301ZM8.00098 2.33301C4.87148 2.33301 2.33417 4.87054 2.33398 8C2.33416 11.1294 4.87147 13.666 8.00098 13.666C11.1301 13.6656 13.6668 11.1292 13.667 8C13.6668 4.87082 11.1301 2.33345 8.00098 2.33301Z`,fill:`currentColor`})]})}function T(e){return(0,b.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,b.jsx)(`path`,{d:`M10.0693 8.80616C11.3199 8.97992 12.4268 9.31057 13.2363 9.76222C14.0167 10.1977 14.6668 10.8347 14.667 11.6665C14.667 12.1908 14.4026 12.6417 14.0283 13.0005C13.6553 13.358 13.1419 13.6575 12.5488 13.898C11.3599 14.3799 9.75149 14.6664 8.00098 14.6665C6.25029 14.6665 4.64122 14.3799 3.45215 13.898C2.8591 13.6575 2.34566 13.3579 1.97266 13.0005C1.59839 12.6417 1.33303 12.1908 1.33301 11.6665C1.33316 10.8345 1.98414 10.1978 2.76465 9.76222C3.5742 9.31057 4.68102 8.97991 5.93164 8.80616C6.20498 8.76845 6.45812 8.95956 6.49609 9.23292C6.53371 9.50605 6.3424 9.75821 6.06934 9.7964C4.89651 9.95932 3.9196 10.2628 3.25195 10.6353C2.55551 11.0239 2.33415 11.4018 2.33398 11.6665C2.33401 11.8324 2.41535 12.0395 2.66504 12.2788C2.9161 12.5193 3.30576 12.7594 3.82812 12.9712C4.87088 13.3938 6.34642 13.6665 8.00098 13.6665C9.65529 13.6664 11.1303 13.3938 12.1729 12.9712C12.6953 12.7593 13.0859 12.5194 13.3369 12.2788C13.5863 12.0397 13.667 11.8323 13.667 11.6665C13.6668 11.4018 13.4452 11.0238 12.749 10.6353C12.0814 10.2628 11.1043 9.95934 9.93164 9.7964C9.65837 9.75831 9.4681 9.50621 9.50586 9.23292C9.54385 8.95943 9.79585 8.76822 10.0693 8.80616Z`,fill:`currentColor`}),(0,b.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M6.11426 2.11475C7.15559 1.07435 8.84294 1.07287 9.88477 2.11475C10.9263 3.15634 10.9267 4.84526 9.88477 5.88624C9.49213 6.2783 9.00732 6.52222 8.5 6.61866V11.4995C8.5 11.7757 8.27614 11.9995 8 11.9995C7.72386 11.9995 7.5 11.7757 7.5 11.4995V6.61866C6.99206 6.52234 6.50626 6.27863 6.11328 5.88526C5.07366 4.84407 5.07276 3.15585 6.11426 2.11475ZM9.17773 2.82179C8.52695 2.17094 7.47264 2.17121 6.82129 2.82179C6.17108 3.4718 6.17058 4.52781 6.82129 5.17921C7.47111 5.82948 8.52635 5.82864 9.17773 5.17823C9.82854 4.52804 9.82894 3.47304 9.17773 2.82179Z`,fill:`currentColor`})]})}function E(e){let t=e.heading??`h1`,n=(0,y.useId)(),[r,c]=(0,y.useState)(!1),l=e.request?.app,u=e.refusal??e.request?.key_authorization?.refusal,x=!!e.request?.country_mismatch,C=!x||r,E=e.status===`denied`?`Denied. The device was not signed in.`:e.request?l?(0,b.jsxs)(b.Fragment,{children:[`Make sure this code matches the one on your device, then approve to grant `,(0,b.jsx)(`strong`,{children:l.name}),` `,(0,b.jsxs)(s.Root,{children:[(0,b.jsx)(s.Trigger,{delay:150,render:(0,b.jsx)(g,{className:j.verified?`z_tempo_2d_id-tpVtLR2y z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR2z z_tempo_2d_id-tpVtLR30 z_tempo_2d_id-tpVtLR1o z_tempo_2d_id-tpVtLR31 z_tempo_2d_id-tpVtLR32 z_tempo_2d_id-tpVtLR33`:j.verified().className,"aria-label":`Verified`,role:`img`,tabIndex:0})}),(0,b.jsx)(s.Popup,{children:`Verified app`})]}),` `,`access to your account.`]}):(0,b.jsxs)(b.Fragment,{children:[`Make sure this code matches the one on your device, then approve to grant`,` `,(0,b.jsxs)(s.Root,{children:[(0,b.jsx)(s.Trigger,{delay:150,render:(0,b.jsxs)(`span`,{className:j.unverified?`z_tempo_2d_id-tpVtLR2n z_tempo_2d_id-tpVtLRg z_tempo_2d_id-tpVtLR2o z_tempo_2d_id-tpVtLR2p z_tempo_2d_id-tpVtLR2q z_tempo_2d_id-tpVtLR2r z_tempo_2d_id-tpVtLR2s z_tempo_2d_id-tpVtLR2t z_tempo_2d_id-tpVtLR2u z_tempo_2d_id-tpVtLR2v z_tempo_2d_id-tpVtLR2w z_tempo_2d_id-3w2jki4`:j.unverified().className,tabIndex:0,children:[(0,b.jsx)(v,{className:j.warning?`z_tempo_2d_id-tpVtLR2y z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR34 z_tempo_2d_id-tpVtLR30 z_tempo_2d_id-tpVtLR1o`:j.warning().className}),`an unverified app`]})}),(0,b.jsx)(s.Popup,{children:`Unverified app`})]}),` `,`access to your account.`]}):`Enter the code shown in your terminal.`;return e.status===`approved`?(0,b.jsx)(h,{className:j.column?`z_tempo_2d_id-tpVtLRq z_tempo_2d_id-tpVtLRr`:j.column().className,gap:`32`,children:(0,b.jsxs)(h,{className:j.header?`z_tempo_2d_id-tpVtLR1j`:j.header().className,align:`center`,gap:`8`,render:(0,b.jsx)(`header`,{}),children:[(0,b.jsx)(f,{className:j.avatar?`z_tempo_2d_id-tpVtLR0 z_tempo_2d_id-tpVtLR1 z_tempo_2d_id-tpVtLR2 z_tempo_2d_id-tpVtLR3 z_tempo_2d_id-tpVtLR4`:j.avatar().className,"aria-hidden":!0,children:(0,b.jsx)(a,{})}),(0,b.jsx)(t,{className:j.title?`z_tempo_2d_id-tpVtLR2h z_tempo_2d_id-tpVtLR2i z_tempo_2d_id-tpVtLR2j z_tempo_2d_id-tpVtLR2k z_tempo_2d_id-tpVtLR2l z_tempo_2d_id-tpVtLR2m`:j.title().className,children:`Authorization successful`}),(0,b.jsxs)(p,{className:j.success?`z_tempo_2d_id-tpVtLR2c z_tempo_2d_id-tpVtLR2d z_tempo_2d_id-tpVtLR2e z_tempo_2d_id-tpVtLR2f z_tempo_2d_id-tpVtLR2g`:j.success().className,"aria-live":`polite`,gap:`8`,justify:`center`,render:(0,b.jsx)(`p`,{}),role:`status`,children:[(0,b.jsx)(`span`,{className:j.check?`z_tempo_2d_id-tpVtLRh z_tempo_2d_id-tpVtLRi z_tempo_2d_id-tpVtLRj z_tempo_2d_id-tpVtLRk z_tempo_2d_id-tpVtLRl z_tempo_2d_id-3w2jki9 z_tempo_2d_id-tpVtLRn z_tempo_2d_id-tpVtLRo z_tempo_2d_id-tpVtLRp`:j.check().className,children:(0,b.jsx)(a,{})}),`You can close this tab.`]})]})}):(0,b.jsxs)(h,{className:j.column?`z_tempo_2d_id-tpVtLRq z_tempo_2d_id-tpVtLRr`:j.column().className,gap:`32`,children:[(0,b.jsxs)(h,{className:j.header?`z_tempo_2d_id-tpVtLR1j`:j.header().className,align:`center`,gap:`8`,render:(0,b.jsx)(`header`,{}),children:[(0,b.jsx)(f,{className:j.avatar?`z_tempo_2d_id-tpVtLR0 z_tempo_2d_id-tpVtLR1 z_tempo_2d_id-tpVtLR2 z_tempo_2d_id-tpVtLR3 z_tempo_2d_id-tpVtLR4`:j.avatar().className,intent:!e.request||l?`neutral`:`warning`,children:!e.request||l?(0,b.jsx)(_,{}):(0,b.jsx)(v,{})}),(0,b.jsx)(t,{className:j.title?`z_tempo_2d_id-tpVtLR2h z_tempo_2d_id-tpVtLR2i z_tempo_2d_id-tpVtLR2j z_tempo_2d_id-tpVtLR2k z_tempo_2d_id-tpVtLR2l z_tempo_2d_id-tpVtLR2m`:j.title().className,children:`Authorize a device`}),(0,b.jsx)(`p`,{className:j.description?`z_tempo_2d_id-tpVtLRy z_tempo_2d_id-tpVtLRz z_tempo_2d_id-tpVtLR10 z_tempo_2d_id-tpVtLR11 z_tempo_2d_id-tpVtLR12 z_tempo_2d_id-tpVtLR13 z_tempo_2d_id-tpVtLR14 z_tempo_2d_id-tpVtLR15 z_tempo_2d_id-tpVtLR16 z_tempo_2d_id-tpVtLR17 z_tempo_2d_id-tpVtLR18 z_tempo_2d_id-tpVtLR19 z_tempo_2d_id-tpVtLR1a z_tempo_2d_id-tpVtLR1b`:j.description().className,children:E})]}),e.status===`denied`?null:e.request?(0,b.jsxs)(h,{gap:`16`,children:[(0,b.jsx)(m,{"aria-label":`Code`,defaultValue:e.request.user_code,length:8,readOnly:!0,separator:4},e.request.user_code),e.request.key_authorization?(0,b.jsx)(d,{heading:e.heading===`h4`?`h5`:`h2`,keyAuthorization:e.request.key_authorization}):null,e.request.challenge?(0,b.jsxs)(`div`,{className:j.challenge?`z_tempo_2d_id-tpVtLR5 z_tempo_2d_id-tpVtLR6 z_tempo_2d_id-tpVtLR7 z_tempo_2d_id-tpVtLR8 z_tempo_2d_id-tpVtLR9`:j.challenge().className,role:`note`,children:[(0,b.jsx)(`p`,{className:j.challengeTitle?`z_tempo_2d_id-tpVtLRg z_tempo_2d_id-tpVtLRb z_tempo_2d_id-tpVtLRc z_tempo_2d_id-tpVtLRd z_tempo_2d_id-tpVtLRe z_tempo_2d_id-tpVtLRf`:j.challengeTitle().className,children:`This sign-in also signs a message`}),(0,b.jsx)(`p`,{className:j.challengeText?`z_tempo_2d_id-nr-Vm71y z_tempo_2d_id-tpVtLRb z_tempo_2d_id-tpVtLRc z_tempo_2d_id-tpVtLRd z_tempo_2d_id-tpVtLRe z_tempo_2d_id-tpVtLRf`:j.challengeText().className,children:`Approve only if you started this sign-in in your own terminal and expect this message.`}),(0,b.jsx)(`pre`,{className:j.message?`z_tempo_2d_id-tpVtLR1i z_tempo_2d_id-nr-Vm71s z_tempo_2d_id-tpVtLR1q z_tempo_2d_id-tpVtLR1r z_tempo_2d_id-tpVtLR1s z_tempo_2d_id-tpVtLR1t z_tempo_2d_id-tpVtLR1u z_tempo_2d_id-tpVtLR1v`:j.message().className,children:e.request.challenge})]}):null,(0,b.jsxs)(`dl`,{className:j.details?`z_tempo_2d_id-tpVtLR1h z_tempo_2d_id-tpVtLR6 z_tempo_2d_id-tpVtLR7 z_tempo_2d_id-tpVtLR8 z_tempo_2d_id-tpVtLR1i z_tempo_2d_id-tpVtLR9 z_tempo_2d_id-tpVtLRb z_tempo_2d_id-tpVtLRc z_tempo_2d_id-tpVtLRd z_tempo_2d_id-tpVtLRe z_tempo_2d_id-tpVtLRf`:j.details().className,children:[e.request.device?(0,b.jsxs)(p,{className:j.row?`z_tempo_2d_id-tpVtLR29 z_tempo_2d_id-tpVtLR2a`:j.row().className,gap:`12`,children:[(0,b.jsx)(`dt`,{children:(0,b.jsx)(_,{className:j.icon?`z_tempo_2d_id-tpVtLR1k z_tempo_2d_id-tpVtLR1l z_tempo_2d_id-tpVtLR1m z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR1o`:j.icon().className,"aria-label":`Device name`,role:`img`})}),(0,b.jsxs)(`dd`,{children:[(0,b.jsx)(`bdi`,{className:j.device?`z_tempo_2d_id-nr-Vm71t z_tempo_2d_id-nr-Vm71u z_tempo_2d_id-nr-Vm71v z_tempo_2d_id-nr-Vm71w z_tempo_2d_id-nr-Vm71x`:j.device().className,children:e.request.device.slice(0,64)}),` `,(0,b.jsx)(`span`,{className:j.source?`z_tempo_2d_id-tpVtLR2b`:j.source().className,children:`(as the device reports it)`})]})]}):null,(0,b.jsxs)(p,{className:j.row?`z_tempo_2d_id-tpVtLR29 z_tempo_2d_id-tpVtLR2a`:j.row().className,gap:`12`,children:[(0,b.jsx)(`dt`,{children:(0,b.jsx)(T,{className:j.icon?`z_tempo_2d_id-tpVtLR1k z_tempo_2d_id-tpVtLR1l z_tempo_2d_id-tpVtLR1m z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR1o`:j.icon().className,"aria-label":`Location`,role:`img`})}),(0,b.jsxs)(`dd`,{children:[`Requested from`,` `,e.request.location??`an unknown location`]})]}),(0,b.jsxs)(p,{className:j.row?`z_tempo_2d_id-tpVtLR29 z_tempo_2d_id-tpVtLR2a`:j.row().className,gap:`12`,children:[(0,b.jsx)(`dt`,{children:(0,b.jsx)(w,{className:j.icon?`z_tempo_2d_id-tpVtLR1k z_tempo_2d_id-tpVtLR1l z_tempo_2d_id-tpVtLR1m z_tempo_2d_id-tpVtLR1n z_tempo_2d_id-tpVtLR1o`:j.icon().className,"aria-label":`Requested`,role:`img`})}),(0,b.jsxs)(`dd`,{children:[O(e.now/1e3-e.request.created_at),` (`,A.format(e.request.created_at*1e3),` UTC)`]})]})]}),x?(0,b.jsxs)(o,{intent:`negative`,children:[(0,b.jsx)(o.Icon,{}),(0,b.jsx)(o.Content,{children:e.request.country?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o.Title,{children:`Requested from another country`}),`This code was requested from `,e.request.location,`, not from where you are now. If you did not start it on your own device, deny it.`]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o.Title,{children:`Requested from an unknown location`}),`The device that requested this code hides its location, such as through Tor. If you did not start it on your own device, deny it.`]})})]}):null,x?(0,b.jsxs)(p,{className:j.confirmation?`z_tempo_2d_id-tpVtLRs z_tempo_2d_id-tpVtLRt z_tempo_2d_id-tpVtLRu z_tempo_2d_id-tpVtLRv z_tempo_2d_id-tpVtLRw z_tempo_2d_id-tpVtLRx`:j.confirmation().className,gap:`12`,render:(0,b.jsx)(`label`,{}),children:[(0,b.jsx)(S,{checked:r,onCheckedChange:c}),`I started this sign-in on my own device`]}):null,(0,b.jsx)(i,{disabled:e.denying||!!u||!C,loading:e.approving,onClick:e.onApprove,children:`Approve`}),(0,b.jsx)(i,{disabled:e.approving,loading:e.denying,onClick:e.onDeny,variant:`tertiary`,children:`Deny`}),e.email?(0,b.jsxs)(`p`,{className:j.note?`z_tempo_2d_id-tpVtLR1w z_tempo_2d_id-tpVtLR1x z_tempo_2d_id-tpVtLR1y z_tempo_2d_id-tpVtLR1z z_tempo_2d_id-tpVtLR20 z_tempo_2d_id-tpVtLR21 z_tempo_2d_id-tpVtLR22 z_tempo_2d_id-tpVtLR23 z_tempo_2d_id-tpVtLR24 z_tempo_2d_id-tpVtLR25 z_tempo_2d_id-tpVtLR26 z_tempo_2d_id-tpVtLR27 z_tempo_2d_id-tpVtLR28`:j.note().className,children:[`Signed in as `,(0,b.jsx)(`strong`,{children:e.email}),`.`]}):null]}):(0,b.jsxs)(h,{gap:`32`,render:(0,b.jsx)(`form`,{onSubmit:e.onSubmitCode}),children:[(0,b.jsx)(m,{"aria-describedby":`${n}-error`,"aria-label":`Code shown in your terminal`,autoComplete:`off`,autoFocus:e.autoFocus,defaultValue:e.code,invalid:e.invalid,length:8,name:`code`,readOnly:e.fetching,required:!0,separator:4}),(0,b.jsx)(i,{loading:e.fetching,type:`submit`,children:`Continue`})]}),(()=>{let t=e.error??(u?D[u]:void 0);return t?(0,b.jsxs)(o,{id:`${n}-error`,intent:`negative`,children:[(0,b.jsx)(o.Icon,{}),(0,b.jsx)(o.Content,{children:t})]}):null})()]})}var D={foreign_account:`The terminal requests a key for a Tempo Account that you do not hold. Deny the request, and start the sign-in again in the terminal as that account's owner.`,no_account:`You have no Tempo Account for this app yet, so no account can approve the key. Deny the request, create an account, and try again.`,passkey:`This Tempo Account signs with a passkey that this page cannot use. Deny the request, and return to the terminal.`,unavailable:`Tempo ID cannot read your Tempo Account right now. Reload the page in a minute, or deny the request.`,upgrade:`This Tempo Account must upgrade to a configurable wallet on this chain before it approves keys. Deny the request, upgrade the wallet on your account page, and try again.`};function O(e){if(e<60)return`Less than a minute ago`;let t=Math.floor(e/60);return t<60?k.format(-t,`minute`):k.format(-Math.floor(t/60),`hour`)}var k=new Intl.RelativeTimeFormat(`en-US`,{numeric:`always`}),A=new Intl.DateTimeFormat(`en-US`,{dateStyle:`medium`,timeStyle:`short`,timeZone:`UTC`}),j;(function(e){e.avatar=1,e.challenge=1,e.challengeText=1,e.challengeTitle=1,e.check=1,e.column=1,e.confirmation=1,e.description=1,e.device=1,e.details=1,e.header=1,e.icon=1,e.message=1,e.note=1,e.row=1,e.source=1,e.success=1,e.title=1,e.unverified=1,e.verified=1,e.warning=1})(j||={});export{E as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{F as t,X as n,Y as r,Z as i,d as a}from"./zyzz.config-B1viQ4-F.js";import{P as o,g as s}from"./composite-BROYFUD6.js";import{$ as c,z as l}from"./useValueChanged-DTX7LKFt.js";import{t as u}from"./Alert-C3aAPp1-.js";import{t as d}from"./Tooltip-CfX-udM0.js";import{c as f,d as p,i as m,n as ee,o as h,s as te,t as g,u as ne}from"./PopoverPopup-DgI1B5ej.js";import{n as _,t as v}from"./StatusChip-DZmt1RJH.js";import{t as y}from"./Stack-BOcRBVsr.js";import{C as b,w as x}from"./index-BCTnLwp1.js";var S=e(i(),1),re=S.forwardRef(function(e,n){let{render:r,className:i,style:a,...o}=e,s=p().useState(`open`),{arrowRef:c,side:u,align:d,arrowUncentered:f,arrowStyles:m}=h();return t(`div`,e,{state:{open:s,side:u,align:d,uncentered:f},ref:[n,c],props:[{style:m,"aria-hidden":!0},o],stateAttributesMapping:l})}),ie=S.forwardRef(function(e,n){let{render:r,className:i,style:a,...o}=e,s=p(),l=c(o.id);return s.useSyncedValueWithCleanup(`titleElementId`,l),t(`h2`,e,{ref:n,props:[{id:l},o]})}),ae=S.forwardRef(function(e,n){let{render:r,className:i,style:a,...o}=e,s=p(),l=c(o.id);return s.useSyncedValueWithCleanup(`descriptionElementId`,l),t(`p`,e,{ref:n,props:[{id:l},o]})}),oe=S.forwardRef(function(e,n){let{render:r,className:i,style:c,disabled:l=!1,nativeButton:u=!0,...d}=e,{buttonRef:f,getButtonProps:m}=a({disabled:l,focusableWhenDisabled:!1,native:u}),h=p();return ee(),t(`button`,e,{ref:[n,f],props:[{onClick(e){h.setOpen(!1,o(s,e.nativeEvent))}},d,m]})}),C=n(),w;(function(e){e.Close=oe,e.Root=ne,e.Trigger=f;function t(e){let{className:t,vars:n,...r}=e;return(0,C.jsx)(re,{...r,...T.arrow({className:t,style:e.style,vars:n}),children:(0,C.jsx)(`svg`,{"aria-hidden":`true`,fill:`currentColor`,height:`10`,viewBox:`0 0 20 10`,width:`20`,children:(0,C.jsx)(`path`,{d:`M0 10C4 10 7 7 8.6 4.6a2 2 0 0 1 2.8 0C13 7 16 10 20 10Z`})})})}e.Arrow=t;function n(e){let{className:t,vars:n,...r}=e;return(0,C.jsx)(ae,{...r,...T.description({className:t,style:e.style,vars:n})})}e.Description=n;function r(e){let{align:t,alignOffset:n,anchor:r,className:i,collisionPadding:a,side:o,sideOffset:s=8,vars:c,...l}=e;return(0,C.jsx)(te,{children:(0,C.jsx)(m,{...T.positioner(),align:t,alignOffset:n,anchor:r,collisionPadding:a,side:o,sideOffset:s,children:(0,C.jsx)(g,{...l,...T.popup({className:i,style:e.style,vars:c})})})})}e.Popup=r;function i(e){let{className:t,vars:n,...r}=e;return(0,C.jsx)(ie,{...r,...T.title({className:t,style:e.style,vars:n})})}e.Title=i})(w||={});var T;(function(e){e.arrow=r({className:`z_tds_2f_web-WYxykg0 z_tds_2f_web-WYxykg1 z_tds_2f_web-WYxykg2 z_tds_2f_web-WYxykg3 z_tds_2f_web-WYxykg4 z_tds_2f_web-WYxykg5 z_tds_2f_web-WYxykg6 z_tds_2f_web-WYxykg7 z_tds_2f_web-WYxykg8`}),e.description=r({className:`z_tds_2f_web-WYxykg9 z_tds_2f_web-WYxykga z_tds_2f_web-WYxykgb z_tds_2f_web-WYxykgc z_tds_2f_web-WYxykgd z_tds_2f_web-WYxykge z_tds_2f_web-WYxykgf`}),e.popup=r({className:`z_tds_2f_web-WYxykgg z_tds_2f_web-WYxykgh z_tds_2f_web-WYxykgi z_tds_2f_web-WYxykgj z_tds_2f_web-WYxykgk z_tds_2f_web-WYxykgl z_tds_2f_web-WYxykgm z_tds_2f_web-WYxykgn z_tds_2f_web-WYxykgo z_tds_2f_web-WYxykgp z_tds_2f_web-WYxykgq z_tds_2f_web-WYxykgr z_tds_2f_web-WYxykgb z_tds_2f_web-WYxykgc z_tds_2f_web-WYxykgd z_tds_2f_web-WYxykge z_tds_2f_web-WYxykgf z_tds_2f_web-WYxykgs z_tds_2f_web-WYxykgt z_tds_2f_web-WYxykgu z_tds_2f_web-WYxykgv z_tds_2f_web-WYxykgw z_tds_2f_web-WYxykgx z_tds_2f_web-WYxykgy z_tds_2f_web-WYxykgz`}),e.positioner=r({className:`z_tds_2f_web-WYxykg10`}),e.title=r({className:`z_tds_2f_web-WYxykg11 z_tds_2f_web-WYxykg12 z_tds_2f_web-WYxykg13 z_tds_2f_web-WYxykg14 z_tds_2f_web-WYxykg15 z_tds_2f_web-WYxykg16 z_tds_2f_web-WYxykg17`})})(T||={});var E=`/assets/BRLA-CZvVDNYr.png`,D=`/assets/BRZ-Cn3jEi9t.svg`,O=`/assets/CHFAU-DCedc4aH.png`,k=`/assets/DLUSD-BnRXm3EI.png`,A=`/assets/EURAU-sjieTTB9.svg`,j=`/assets/EURC.e-CxYiiwkz.svg`,M=`/assets/GBPA-DI_25xSG.svg`,N=`/assets/GUSD-BDEP2Qb-.svg`,P=`/assets/MACH-sK0r79kQ.svg`,F=`/assets/OUSD-BFXgVo-Z.svg`,I=`/assets/PRIME-CiFp2-3e.svg`,L=`/assets/SBC-BTYkbkiD.svg`,R=`/assets/SEKAU-CB5Fc6o8.svg`,z=`/assets/USD1-COVcO_PB.svg`,B=`/assets/USDB-Ckwb6UQw.svg`,V=`/assets/USDC.e-3nMsKAMC.svg`,H=`/assets/USDT0-ia60Dw0e.svg`,U=`/assets/USDY-CB4iet2q.svg`,W=`/assets/USDe-BXHQCd92.svg`,G=`/assets/YLDS-CRh8Zw0g.svg`,K=`/assets/alphaUSD-CpCFoVuh.svg`,q=`/assets/betaUSD-9A8AjgYg.svg`,se=`/assets/cUSD-WsQfa-iC.svg`,ce=`/assets/cbBTC-DvUDqrDi.svg`,le=`/assets/frxUSD-n9pTpinR.svg`,ue=`/assets/goUSD-D9kUvHsF.svg`,de=`/assets/iUSD-CWCJAq9X.svg`,fe=`/assets/pathUSD-BvaO6ooS.svg`,pe=`/assets/rUSD-B-xuFS7T.svg`,me=`/assets/reUSD-CkIUs0Lx.svg`,he=`/assets/sUSDe-j9GOnH7I.svg`,ge=`/assets/siUSD-C10QUNYS.svg`,_e=`/assets/stcUSD-DIntDJeh.svg`,ve=`/assets/syrupUSDC-DhYwZqdM.svg`,ye=`/assets/thetaUSD-Dgmksf6G.svg`,be=`/assets/wYLDS-CaCKDrO-.svg`,xe=`/assets/wsrUSD-B2Ey0bDQ.svg`,Se=`/assets/OUSD.dark-BbbjMvA1.svg`,Ce=`/assets/OUSD.light-B_zpSz_c.svg`,we=Object.fromEntries(Object.entries(Object.assign({"./icons/BRLA.png":E,"./icons/BRZ.svg":D,"./icons/CHFAU.png":O,"./icons/DLUSD.png":k,"./icons/EURAU.svg":A,"./icons/EURC.e.svg":j,"./icons/GBPA.svg":M,"./icons/GUSD.svg":N,"./icons/MACH.svg":P,"./icons/OUSD.svg":F,"./icons/PRIME.svg":I,"./icons/SBC.svg":L,"./icons/SEKAU.svg":R,"./icons/USD1.svg":z,"./icons/USDB.svg":B,"./icons/USDC.e.svg":V,"./icons/USDT0.svg":H,"./icons/USDY.svg":U,"./icons/USDe.svg":W,"./icons/YLDS.svg":G,"./icons/alphaUSD.svg":K,"./icons/betaUSD.svg":q,"./icons/cUSD.svg":se,"./icons/cbBTC.svg":ce,"./icons/frxUSD.svg":le,"./icons/goUSD.svg":ue,"./icons/iUSD.svg":de,"./icons/pathUSD.svg":fe,"./icons/rUSD.svg":pe,"./icons/reUSD.svg":me,"./icons/sUSDe.svg":he,"./icons/siUSD.svg":ge,"./icons/stcUSD.svg":_e,"./icons/syrupUSDC.svg":ve,"./icons/thetaUSD.svg":ye,"./icons/wYLDS.svg":be,"./icons/wsrUSD.svg":xe})).map(([e,t])=>[e.slice(8,e.lastIndexOf(`.`)),t])),Te=Object.entries(Object.assign({"./logos/OUSD.dark.svg":Se,"./logos/OUSD.light.svg":Ce})).reduce((e,[t,n])=>{let[,r,i]=t.match(/^\.\/logos\/(.+)\.(light|dark)\.\w+$/);return e[r]={...e[r],[i]:n},e},{});function J(e){let{calls:t,limits:n}=e.keyAuthorization,r=(()=>{let e=t.some(e=>e.call===`open`),n=t.some(e=>e.call===`topUp`);if(e)return`Hold funds for services`;if(n)return`Add to funds it holds for services`})();return(0,C.jsxs)(y,{className:$.list?`z_tempo_2d_id-nr-Vm7w z_tempo_2d_id-nr-Vm77 z_tempo_2d_id-nr-Vm7x z_tempo_2d_id-nr-Vm7y z_tempo_2d_id-nr-Vm7z z_tempo_2d_id-nr-Vm710 z_tempo_2d_id-nr-Vm711 z_tempo_2d_id-nr-Vm712`:$.list().className,"aria-labelledby":e[`aria-labelledby`],gap:`8`,render:(0,C.jsx)(`ul`,{}),children:[(0,C.jsxs)(_,{gap:`8`,render:(0,C.jsx)(`li`,{}),children:[(0,C.jsx)(x,{className:$.allowed?`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm73`:$.allowed().className}),(0,C.jsx)(`span`,{children:`View your balance and activity`})]}),n.map(e=>(0,C.jsxs)(_,{gap:`8`,render:(0,C.jsx)(`li`,{}),children:[(0,C.jsx)(x,{className:$.allowed?`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm73`:$.allowed().className}),(0,C.jsxs)(`span`,{children:[`Spend`,` `,e.period?`${Q(e)} ${Oe(e.period)}`:Q(e)]}),(0,C.jsx)(`span`,{className:$.icons?`z_tempo_2d_id-nr-Vm7i z_tempo_2d_id-nr-Vm7j z_tempo_2d_id-nr-Vm7k z_tempo_2d_id-nr-Vm7l z_tempo_2d_id-nr-Vm7m z_tempo_2d_id-nr-Vm7n`:$.icons().className,children:e.tokens.map(t=>{let n=`${t.symbol}: ${Q({amount:t.amount,currency:e.currency})}`,r=Te[t.symbol],i=r?.light??we[t.symbol];return(0,C.jsxs)(d.Root,{children:[(0,C.jsx)(d.Trigger,{delay:150,render:(0,C.jsx)(`span`,{className:$.token?`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm71k z_tempo_2d_id-nr-Vm71l z_tempo_2d_id-nr-Vm71m z_tempo_2d_id-nr-Vm71n z_tempo_2d_id-nr-Vm71o z_tempo_2d_id-nr-Vm71p z_tempo_2d_id-nr-Vm71q`:$.token().className,tabIndex:0,children:i?(0,C.jsxs)(`picture`,{children:[r?.dark?(0,C.jsx)(`source`,{media:`(prefers-color-scheme: dark)`,srcSet:r.dark}):null,(0,C.jsx)(`img`,{className:$.icon?`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm7f z_tempo_2d_id-nr-Vm7g z_tempo_2d_id-nr-Vm7h`:$.icon().className,alt:n,height:20,src:i,width:20})]}):(0,C.jsx)(`span`,{className:$.placeholder?`z_tempo_2d_id-nr-Vm714 z_tempo_2d_id-nr-Vm715 z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm716 z_tempo_2d_id-nr-Vm7i z_tempo_2d_id-nr-Vm7g z_tempo_2d_id-nr-Vm717 z_tempo_2d_id-nr-Vm718 z_tempo_2d_id-nr-Vm719 z_tempo_2d_id-nr-Vm71a z_tempo_2d_id-nr-Vm71b z_tempo_2d_id-nr-Vm71c z_tempo_2d_id-nr-Vm7h`:$.placeholder().className,"aria-label":n,role:`img`,children:t.symbol[0]})})}),(0,C.jsx)(d.Popup,{children:n})]},t.symbol)})})]},`${e.currency}:${e.period??0}`)),r?(0,C.jsxs)(_,{gap:`8`,render:(0,C.jsx)(`li`,{}),children:[(0,C.jsx)(x,{className:$.allowed?`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm73`:$.allowed().className}),(0,C.jsxs)(`span`,{children:[r.slice(0,r.lastIndexOf(` `)+1),(0,C.jsxs)(`span`,{className:$.nowrap?`z_tempo_2d_id-nr-Vm713`:$.nowrap().className,children:[r.slice(r.lastIndexOf(` `)+1),` `,(0,C.jsxs)(w.Root,{children:[(0,C.jsx)(w.Trigger,{"aria-label":`About funds for services`,nativeButton:!1,openOnHover:!0,render:(0,C.jsx)(b,{className:$.info?`z_tempo_2d_id-nr-Vm7d z_tempo_2d_id-nr-Vm7o z_tempo_2d_id-nr-Vm7p z_tempo_2d_id-nr-Vm7q z_tempo_2d_id-nr-Vm7r z_tempo_2d_id-nr-Vm7s z_tempo_2d_id-nr-Vm7t z_tempo_2d_id-nr-Vm7u z_tempo_2d_id-nr-Vm7v`:$.info().className,tabIndex:0})}),(0,C.jsx)(w.Popup,{className:$.popup?`z_tempo_2d_id-nr-Vm71d`:$.popup().className,"aria-label":`Funds for services`,children:(0,C.jsxs)(w.Description,{children:[`Set aside for pay-as-you-go services that use`,` `,(0,C.jsx)(`a`,{className:$.popupLink?`z_tempo_2d_id-nr-Vm71e`:$.popupLink().className,href:`https://mpp.dev`,rel:`noreferrer`,target:`_blank`,children:`MPP`}),`. They take only what you use, and you get the rest back.`]})})]})]})]})]}):null,e.children]})}function Ee(e){let t=(0,S.useId)(),n=(0,S.useId)(),[r,i]=(0,S.useState)(!1),{expiry:a,unrecognized:o}=e.keyAuthorization,s=e.heading??`h2`;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(y,{className:$.section?`z_tempo_2d_id-nr-Vm71f z_tempo_2d_id-nr-Vm71g z_tempo_2d_id-nr-Vm77 z_tempo_2d_id-nr-Vm71h z_tempo_2d_id-nr-Vm71i`:$.section().className,"aria-labelledby":t,"data-grant":``,gap:`16`,render:(0,C.jsx)(`section`,{}),children:[e.chain?(0,C.jsx)(v,{className:$.chain?`z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm75 z_tempo_2d_id-nr-Vm76`:$.chain().className,"aria-label":`Chain: ${e.chain}`,network:!0,size:`small`,children:e.chain}):null,(0,C.jsxs)(y,{gap:`12`,children:[(0,C.jsx)(s,{className:$.heading?`z_tempo_2d_id-nr-Vm7d z_tempo_2d_id-nr-Vm77 z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-nr-Vm7a z_tempo_2d_id-nr-Vm7b z_tempo_2d_id-nr-Vm7c`:$.heading().className,id:t,children:`This app will be able to:`}),(0,C.jsx)(J,{"aria-labelledby":t,keyAuthorization:e.keyAuthorization})]}),(0,C.jsx)(y,{className:$.details?`z_tempo_2d_id-nr-Vm77 z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-nr-Vm7a z_tempo_2d_id-nr-Vm7b z_tempo_2d_id-nr-Vm7c`:$.details().className,gap:`8`,render:(0,C.jsx)(`dl`,{}),children:(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`dt`,{className:$.term?`z_tempo_2d_id-nr-Vm716 z_tempo_2d_id-nr-Vm71j`:$.term().className,children:`Expires`}),` `,(0,C.jsxs)(`dd`,{className:$.value?`z_tempo_2d_id-nr-Vm71j z_tempo_2d_id-nr-Vm71r z_tempo_2d_id-nr-Vm71s z_tempo_2d_id-nr-Vm71t z_tempo_2d_id-nr-Vm71u z_tempo_2d_id-nr-Vm71v z_tempo_2d_id-nr-Vm71w z_tempo_2d_id-nr-Vm71x`:$.value().className,children:[(0,C.jsx)(`span`,{suppressHydrationWarning:!0,children:ke(a)}),` `,(0,C.jsxs)(d.Root,{children:[(0,C.jsx)(d.Trigger,{delay:150,render:(0,C.jsx)(b,{className:$.info?`z_tempo_2d_id-nr-Vm7d z_tempo_2d_id-nr-Vm7o z_tempo_2d_id-nr-Vm7p z_tempo_2d_id-nr-Vm7q z_tempo_2d_id-nr-Vm7r z_tempo_2d_id-nr-Vm7s z_tempo_2d_id-nr-Vm7t z_tempo_2d_id-nr-Vm7u z_tempo_2d_id-nr-Vm7v`:$.info().className,"aria-label":`Expiry date`,role:`img`,tabIndex:0})}),(0,C.jsx)(d.Popup,{children:new Date(a*1e3).toLocaleString(void 0,{day:`numeric`,hour:`numeric`,minute:`2-digit`,month:`short`,timeZoneName:`short`,year:`numeric`})})]})]})]})})]}),o.length?(0,C.jsxs)(u,{intent:`warning`,role:`note`,children:[(0,C.jsx)(u.Icon,{}),(0,C.jsx)(u.Content,{children:(0,C.jsxs)(y,{gap:`8`,children:[(0,C.jsx)(`p`,{className:$.warningTitle?`z_tempo_2d_id-nr-Vm71z z_tempo_2d_id-nr-Vm720 z_tempo_2d_id-nr-Vm721 z_tempo_2d_id-nr-Vm722 z_tempo_2d_id-nr-Vm723`:$.warningTitle().className,children:`This app can take other actions`}),r?(0,C.jsx)(y,{gap:`8`,id:n,children:(0,C.jsx)(`p`,{className:$.warningText?`z_tempo_2d_id-nr-Vm71y`:$.warningText().className,children:`Tempo ID can’t tell you what these actions do. Approve only if you trust this app.`})}):null]})}),(0,C.jsx)(u.Action,{"aria-controls":n,"aria-expanded":r,onClick:()=>i(e=>!e),children:r?`Hide`:`Show`})]}):null]})}var Y,X,Z=[[`year`,31536e3],[`month`,2592e3],[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60]],De=[[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60],[`second`,1]];function Oe(e){let[t,n]=De.find(t=>e%t[1]===0),r=e/n;return r===1?`per ${t}`:`every ${r} ${t}s`}function Q(e){let t=e.amount;try{return new Intl.NumberFormat(`en-US`,{currency:e.currency,maximumFractionDigits:6,style:`currency`,trailingZeroDisplay:`stripIfInteger`}).format(t)}catch{return Y??=new Intl.NumberFormat(`en-US`,{maximumFractionDigits:20}),`${Y.format(t)} ${e.currency}`}}function ke(e){let t=e-Date.now()/1e3,[n,r]=Z.find(e=>t+60>=e[1])??Z.at(-1);return X??=new Intl.RelativeTimeFormat(`en-US`,{numeric:`always`}),X.format(Math.max(1,Math.round(t/r)),n)}var $;(function(e){e.allowed=1,e.chain=1,e.details=1,e.heading=1,e.icon=1,e.icons=1,e.info=1,e.list=1,e.nowrap=1,e.placeholder=1,e.popup=1,e.popupLink=1,e.section=1,e.term=1,e.token=1,e.value=1,e.warningText=1,e.warningTitle=1})($||={});export{Ee as n,w as r,J as t};
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{F as t,X as n,Y as r,Z as i,d as a}from"./zyzz.config-B1viQ4-F.js";import{P as o,g as s}from"./composite-BROYFUD6.js";import{$ as c,z as l}from"./useValueChanged-DTX7LKFt.js";import{t as u}from"./Alert-C3aAPp1-.js";import{t as d}from"./Tooltip-CfX-udM0.js";import{c as f,d as p,i as m,n as ee,o as h,s as te,t as g,u as ne}from"./PopoverPopup-DgI1B5ej.js";import{n as _,t as v}from"./StatusChip-DZmt1RJH.js";import{t as y}from"./Stack-BOcRBVsr.js";import{C as b,w as x}from"./index-Cmkt-N9A.js";var S=e(i(),1),re=S.forwardRef(function(e,n){let{render:r,className:i,style:a,...o}=e,s=p().useState(`open`),{arrowRef:c,side:u,align:d,arrowUncentered:f,arrowStyles:m}=h();return t(`div`,e,{state:{open:s,side:u,align:d,uncentered:f},ref:[n,c],props:[{style:m,"aria-hidden":!0},o],stateAttributesMapping:l})}),ie=S.forwardRef(function(e,n){let{render:r,className:i,style:a,...o}=e,s=p(),l=c(o.id);return s.useSyncedValueWithCleanup(`titleElementId`,l),t(`h2`,e,{ref:n,props:[{id:l},o]})}),ae=S.forwardRef(function(e,n){let{render:r,className:i,style:a,...o}=e,s=p(),l=c(o.id);return s.useSyncedValueWithCleanup(`descriptionElementId`,l),t(`p`,e,{ref:n,props:[{id:l},o]})}),oe=S.forwardRef(function(e,n){let{render:r,className:i,style:c,disabled:l=!1,nativeButton:u=!0,...d}=e,{buttonRef:f,getButtonProps:m}=a({disabled:l,focusableWhenDisabled:!1,native:u}),h=p();return ee(),t(`button`,e,{ref:[n,f],props:[{onClick(e){h.setOpen(!1,o(s,e.nativeEvent))}},d,m]})}),C=n(),w;(function(e){e.Close=oe,e.Root=ne,e.Trigger=f;function t(e){let{className:t,vars:n,...r}=e;return(0,C.jsx)(re,{...r,...T.arrow({className:t,style:e.style,vars:n}),children:(0,C.jsx)(`svg`,{"aria-hidden":`true`,fill:`currentColor`,height:`10`,viewBox:`0 0 20 10`,width:`20`,children:(0,C.jsx)(`path`,{d:`M0 10C4 10 7 7 8.6 4.6a2 2 0 0 1 2.8 0C13 7 16 10 20 10Z`})})})}e.Arrow=t;function n(e){let{className:t,vars:n,...r}=e;return(0,C.jsx)(ae,{...r,...T.description({className:t,style:e.style,vars:n})})}e.Description=n;function r(e){let{align:t,alignOffset:n,anchor:r,className:i,collisionPadding:a,side:o,sideOffset:s=8,vars:c,...l}=e;return(0,C.jsx)(te,{children:(0,C.jsx)(m,{...T.positioner(),align:t,alignOffset:n,anchor:r,collisionPadding:a,side:o,sideOffset:s,children:(0,C.jsx)(g,{...l,...T.popup({className:i,style:e.style,vars:c})})})})}e.Popup=r;function i(e){let{className:t,vars:n,...r}=e;return(0,C.jsx)(ie,{...r,...T.title({className:t,style:e.style,vars:n})})}e.Title=i})(w||={});var T;(function(e){e.arrow=r({className:`z_tds_2f_web-WYxykg0 z_tds_2f_web-WYxykg1 z_tds_2f_web-WYxykg2 z_tds_2f_web-WYxykg3 z_tds_2f_web-WYxykg4 z_tds_2f_web-WYxykg5 z_tds_2f_web-WYxykg6 z_tds_2f_web-WYxykg7 z_tds_2f_web-WYxykg8`}),e.description=r({className:`z_tds_2f_web-WYxykg9 z_tds_2f_web-WYxykga z_tds_2f_web-WYxykgb z_tds_2f_web-WYxykgc z_tds_2f_web-WYxykgd z_tds_2f_web-WYxykge z_tds_2f_web-WYxykgf`}),e.popup=r({className:`z_tds_2f_web-WYxykgg z_tds_2f_web-WYxykgh z_tds_2f_web-WYxykgi z_tds_2f_web-WYxykgj z_tds_2f_web-WYxykgk z_tds_2f_web-WYxykgl z_tds_2f_web-WYxykgm z_tds_2f_web-WYxykgn z_tds_2f_web-WYxykgo z_tds_2f_web-WYxykgp z_tds_2f_web-WYxykgq z_tds_2f_web-WYxykgr z_tds_2f_web-WYxykgb z_tds_2f_web-WYxykgc z_tds_2f_web-WYxykgd z_tds_2f_web-WYxykge z_tds_2f_web-WYxykgf z_tds_2f_web-WYxykgs z_tds_2f_web-WYxykgt z_tds_2f_web-WYxykgu z_tds_2f_web-WYxykgv z_tds_2f_web-WYxykgw z_tds_2f_web-WYxykgx z_tds_2f_web-WYxykgy z_tds_2f_web-WYxykgz`}),e.positioner=r({className:`z_tds_2f_web-WYxykg10`}),e.title=r({className:`z_tds_2f_web-WYxykg11 z_tds_2f_web-WYxykg12 z_tds_2f_web-WYxykg13 z_tds_2f_web-WYxykg14 z_tds_2f_web-WYxykg15 z_tds_2f_web-WYxykg16 z_tds_2f_web-WYxykg17`})})(T||={});var E=`/assets/BRLA-CZvVDNYr.png`,D=`/assets/BRZ-Cn3jEi9t.svg`,O=`/assets/CHFAU-DCedc4aH.png`,k=`/assets/DLUSD-BnRXm3EI.png`,A=`/assets/EURAU-sjieTTB9.svg`,j=`/assets/EURC.e-CxYiiwkz.svg`,M=`/assets/GBPA-DI_25xSG.svg`,N=`/assets/GUSD-BDEP2Qb-.svg`,P=`/assets/MACH-sK0r79kQ.svg`,F=`/assets/OUSD-BFXgVo-Z.svg`,I=`/assets/PRIME-CiFp2-3e.svg`,L=`/assets/SBC-BTYkbkiD.svg`,R=`/assets/SEKAU-CB5Fc6o8.svg`,z=`/assets/USD1-COVcO_PB.svg`,B=`/assets/USDB-Ckwb6UQw.svg`,V=`/assets/USDC.e-3nMsKAMC.svg`,H=`/assets/USDT0-ia60Dw0e.svg`,U=`/assets/USDY-CB4iet2q.svg`,W=`/assets/USDe-BXHQCd92.svg`,G=`/assets/YLDS-CRh8Zw0g.svg`,K=`/assets/alphaUSD-CpCFoVuh.svg`,q=`/assets/betaUSD-9A8AjgYg.svg`,se=`/assets/cUSD-WsQfa-iC.svg`,ce=`/assets/cbBTC-DvUDqrDi.svg`,le=`/assets/frxUSD-n9pTpinR.svg`,ue=`/assets/goUSD-D9kUvHsF.svg`,de=`/assets/iUSD-CWCJAq9X.svg`,fe=`/assets/pathUSD-BvaO6ooS.svg`,pe=`/assets/rUSD-B-xuFS7T.svg`,me=`/assets/reUSD-CkIUs0Lx.svg`,he=`/assets/sUSDe-j9GOnH7I.svg`,ge=`/assets/siUSD-C10QUNYS.svg`,_e=`/assets/stcUSD-DIntDJeh.svg`,ve=`/assets/syrupUSDC-DhYwZqdM.svg`,ye=`/assets/thetaUSD-Dgmksf6G.svg`,be=`/assets/wYLDS-CaCKDrO-.svg`,xe=`/assets/wsrUSD-B2Ey0bDQ.svg`,Se=`/assets/OUSD.dark-BbbjMvA1.svg`,Ce=`/assets/OUSD.light-B_zpSz_c.svg`,we=Object.fromEntries(Object.entries(Object.assign({"./icons/BRLA.png":E,"./icons/BRZ.svg":D,"./icons/CHFAU.png":O,"./icons/DLUSD.png":k,"./icons/EURAU.svg":A,"./icons/EURC.e.svg":j,"./icons/GBPA.svg":M,"./icons/GUSD.svg":N,"./icons/MACH.svg":P,"./icons/OUSD.svg":F,"./icons/PRIME.svg":I,"./icons/SBC.svg":L,"./icons/SEKAU.svg":R,"./icons/USD1.svg":z,"./icons/USDB.svg":B,"./icons/USDC.e.svg":V,"./icons/USDT0.svg":H,"./icons/USDY.svg":U,"./icons/USDe.svg":W,"./icons/YLDS.svg":G,"./icons/alphaUSD.svg":K,"./icons/betaUSD.svg":q,"./icons/cUSD.svg":se,"./icons/cbBTC.svg":ce,"./icons/frxUSD.svg":le,"./icons/goUSD.svg":ue,"./icons/iUSD.svg":de,"./icons/pathUSD.svg":fe,"./icons/rUSD.svg":pe,"./icons/reUSD.svg":me,"./icons/sUSDe.svg":he,"./icons/siUSD.svg":ge,"./icons/stcUSD.svg":_e,"./icons/syrupUSDC.svg":ve,"./icons/thetaUSD.svg":ye,"./icons/wYLDS.svg":be,"./icons/wsrUSD.svg":xe})).map(([e,t])=>[e.slice(8,e.lastIndexOf(`.`)),t])),Te=Object.entries(Object.assign({"./logos/OUSD.dark.svg":Se,"./logos/OUSD.light.svg":Ce})).reduce((e,[t,n])=>{let[,r,i]=t.match(/^\.\/logos\/(.+)\.(light|dark)\.\w+$/);return e[r]={...e[r],[i]:n},e},{});function J(e){let{calls:t,limits:n}=e.keyAuthorization,r=(()=>{let e=t.some(e=>e.call===`open`),n=t.some(e=>e.call===`topUp`);if(e)return`Hold funds for services`;if(n)return`Add to funds it holds for services`})();return(0,C.jsxs)(y,{className:$.list?`z_tempo_2d_id-nr-Vm7w z_tempo_2d_id-nr-Vm77 z_tempo_2d_id-nr-Vm7x z_tempo_2d_id-nr-Vm7y z_tempo_2d_id-nr-Vm7z z_tempo_2d_id-nr-Vm710 z_tempo_2d_id-nr-Vm711 z_tempo_2d_id-nr-Vm712`:$.list().className,"aria-labelledby":e[`aria-labelledby`],gap:`8`,render:(0,C.jsx)(`ul`,{}),children:[(0,C.jsxs)(_,{gap:`8`,render:(0,C.jsx)(`li`,{}),children:[(0,C.jsx)(x,{className:$.allowed?`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm73`:$.allowed().className}),(0,C.jsx)(`span`,{children:`View your balance and activity`})]}),n.map(e=>(0,C.jsxs)(_,{gap:`8`,render:(0,C.jsx)(`li`,{}),children:[(0,C.jsx)(x,{className:$.allowed?`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm73`:$.allowed().className}),(0,C.jsxs)(`span`,{children:[`Spend`,` `,e.period?`${Q(e)} ${Oe(e.period)}`:Q(e)]}),(0,C.jsx)(`span`,{className:$.icons?`z_tempo_2d_id-nr-Vm7i z_tempo_2d_id-nr-Vm7j z_tempo_2d_id-nr-Vm7k z_tempo_2d_id-nr-Vm7l z_tempo_2d_id-nr-Vm7m z_tempo_2d_id-nr-Vm7n`:$.icons().className,children:e.tokens.map(t=>{let n=`${t.symbol}: ${Q({amount:t.amount,currency:e.currency})}`,r=Te[t.symbol],i=r?.light??we[t.symbol];return(0,C.jsxs)(d.Root,{children:[(0,C.jsx)(d.Trigger,{delay:150,render:(0,C.jsx)(`span`,{className:$.token?`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm71k z_tempo_2d_id-nr-Vm71l z_tempo_2d_id-nr-Vm71m z_tempo_2d_id-nr-Vm71n z_tempo_2d_id-nr-Vm71o z_tempo_2d_id-nr-Vm71p z_tempo_2d_id-nr-Vm71q`:$.token().className,tabIndex:0,children:i?(0,C.jsxs)(`picture`,{children:[r?.dark?(0,C.jsx)(`source`,{media:`(prefers-color-scheme: dark)`,srcSet:r.dark}):null,(0,C.jsx)(`img`,{className:$.icon?`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm7f z_tempo_2d_id-nr-Vm7g z_tempo_2d_id-nr-Vm7h`:$.icon().className,alt:n,height:20,src:i,width:20})]}):(0,C.jsx)(`span`,{className:$.placeholder?`z_tempo_2d_id-nr-Vm714 z_tempo_2d_id-nr-Vm715 z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm716 z_tempo_2d_id-nr-Vm7i z_tempo_2d_id-nr-Vm7g z_tempo_2d_id-nr-Vm717 z_tempo_2d_id-nr-Vm718 z_tempo_2d_id-nr-Vm719 z_tempo_2d_id-nr-Vm71a z_tempo_2d_id-nr-Vm71b z_tempo_2d_id-nr-Vm71c z_tempo_2d_id-nr-Vm7h`:$.placeholder().className,"aria-label":n,role:`img`,children:t.symbol[0]})})}),(0,C.jsx)(d.Popup,{children:n})]},t.symbol)})})]},`${e.currency}:${e.period??0}`)),r?(0,C.jsxs)(_,{gap:`8`,render:(0,C.jsx)(`li`,{}),children:[(0,C.jsx)(x,{className:$.allowed?`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm73`:$.allowed().className}),(0,C.jsxs)(`span`,{children:[r.slice(0,r.lastIndexOf(` `)+1),(0,C.jsxs)(`span`,{className:$.nowrap?`z_tempo_2d_id-nr-Vm713`:$.nowrap().className,children:[r.slice(r.lastIndexOf(` `)+1),` `,(0,C.jsxs)(w.Root,{children:[(0,C.jsx)(w.Trigger,{"aria-label":`About funds for services`,nativeButton:!1,openOnHover:!0,render:(0,C.jsx)(b,{className:$.info?`z_tempo_2d_id-nr-Vm7d z_tempo_2d_id-nr-Vm7o z_tempo_2d_id-nr-Vm7p z_tempo_2d_id-nr-Vm7q z_tempo_2d_id-nr-Vm7r z_tempo_2d_id-nr-Vm7s z_tempo_2d_id-nr-Vm7t z_tempo_2d_id-nr-Vm7u z_tempo_2d_id-nr-Vm7v`:$.info().className,tabIndex:0})}),(0,C.jsx)(w.Popup,{className:$.popup?`z_tempo_2d_id-nr-Vm71d`:$.popup().className,"aria-label":`Funds for services`,children:(0,C.jsxs)(w.Description,{children:[`Set aside for pay-as-you-go services that use`,` `,(0,C.jsx)(`a`,{className:$.popupLink?`z_tempo_2d_id-nr-Vm71e`:$.popupLink().className,href:`https://mpp.dev`,rel:`noreferrer`,target:`_blank`,children:`MPP`}),`. They take only what you use, and you get the rest back.`]})})]})]})]})]}):null,e.children]})}function Ee(e){let t=(0,S.useId)(),n=(0,S.useId)(),[r,i]=(0,S.useState)(!1),{expiry:a,unrecognized:o}=e.keyAuthorization,s=e.heading??`h2`;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(y,{className:$.section?`z_tempo_2d_id-nr-Vm71f z_tempo_2d_id-nr-Vm71g z_tempo_2d_id-nr-Vm77 z_tempo_2d_id-nr-Vm71h z_tempo_2d_id-nr-Vm71i`:$.section().className,"aria-labelledby":t,"data-grant":``,gap:`16`,render:(0,C.jsx)(`section`,{}),children:[e.chain?(0,C.jsx)(v,{className:$.chain?`z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm75 z_tempo_2d_id-nr-Vm76`:$.chain().className,"aria-label":`Chain: ${e.chain}`,network:!0,size:`small`,children:e.chain}):null,(0,C.jsxs)(y,{gap:`12`,children:[(0,C.jsx)(s,{className:$.heading?`z_tempo_2d_id-nr-Vm7d z_tempo_2d_id-nr-Vm77 z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-nr-Vm7a z_tempo_2d_id-nr-Vm7b z_tempo_2d_id-nr-Vm7c`:$.heading().className,id:t,children:`This app will be able to:`}),(0,C.jsx)(J,{"aria-labelledby":t,keyAuthorization:e.keyAuthorization})]}),(0,C.jsx)(y,{className:$.details?`z_tempo_2d_id-nr-Vm77 z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-nr-Vm7a z_tempo_2d_id-nr-Vm7b z_tempo_2d_id-nr-Vm7c`:$.details().className,gap:`8`,render:(0,C.jsx)(`dl`,{}),children:(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`dt`,{className:$.term?`z_tempo_2d_id-nr-Vm716 z_tempo_2d_id-nr-Vm71j`:$.term().className,children:`Expires`}),` `,(0,C.jsxs)(`dd`,{className:$.value?`z_tempo_2d_id-nr-Vm71j z_tempo_2d_id-nr-Vm71r z_tempo_2d_id-nr-Vm71s z_tempo_2d_id-nr-Vm71t z_tempo_2d_id-nr-Vm71u z_tempo_2d_id-nr-Vm71v z_tempo_2d_id-nr-Vm71w z_tempo_2d_id-nr-Vm71x`:$.value().className,children:[(0,C.jsx)(`span`,{suppressHydrationWarning:!0,children:ke(a)}),` `,(0,C.jsxs)(d.Root,{children:[(0,C.jsx)(d.Trigger,{delay:150,render:(0,C.jsx)(b,{className:$.info?`z_tempo_2d_id-nr-Vm7d z_tempo_2d_id-nr-Vm7o z_tempo_2d_id-nr-Vm7p z_tempo_2d_id-nr-Vm7q z_tempo_2d_id-nr-Vm7r z_tempo_2d_id-nr-Vm7s z_tempo_2d_id-nr-Vm7t z_tempo_2d_id-nr-Vm7u z_tempo_2d_id-nr-Vm7v`:$.info().className,"aria-label":`Expiry date`,role:`img`,tabIndex:0})}),(0,C.jsx)(d.Popup,{children:new Date(a*1e3).toLocaleString(void 0,{day:`numeric`,hour:`numeric`,minute:`2-digit`,month:`short`,timeZoneName:`short`,year:`numeric`})})]})]})]})})]}),o.length?(0,C.jsxs)(u,{intent:`warning`,role:`note`,children:[(0,C.jsx)(u.Icon,{}),(0,C.jsx)(u.Content,{children:(0,C.jsxs)(y,{gap:`8`,children:[(0,C.jsx)(`p`,{className:$.warningTitle?`z_tempo_2d_id-nr-Vm71z z_tempo_2d_id-nr-Vm720 z_tempo_2d_id-nr-Vm721 z_tempo_2d_id-nr-Vm722 z_tempo_2d_id-nr-Vm723`:$.warningTitle().className,children:`This app can take other actions`}),r?(0,C.jsx)(y,{gap:`8`,id:n,children:(0,C.jsx)(`p`,{className:$.warningText?`z_tempo_2d_id-nr-Vm71y`:$.warningText().className,children:`Tempo ID can’t tell you what these actions do. Approve only if you trust this app.`})}):null]})}),(0,C.jsx)(u.Action,{"aria-controls":n,"aria-expanded":r,onClick:()=>i(e=>!e),children:r?`Hide`:`Show`})]}):null]})}var Y,X,Z=[[`year`,31536e3],[`month`,2592e3],[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60]],De=[[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60],[`second`,1]];function Oe(e){let[t,n]=De.find(t=>e%t[1]===0),r=e/n;return r===1?`per ${t}`:`every ${r} ${t}s`}function Q(e){let t=e.amount;try{return new Intl.NumberFormat(`en-US`,{currency:e.currency,maximumFractionDigits:6,style:`currency`,trailingZeroDisplay:`stripIfInteger`}).format(t)}catch{return Y??=new Intl.NumberFormat(`en-US`,{maximumFractionDigits:20}),`${Y.format(t)} ${e.currency}`}}function ke(e){let t=e-Date.now()/1e3,[n,r]=Z.find(e=>t+60>=e[1])??Z.at(-1);return X??=new Intl.RelativeTimeFormat(`en-US`,{numeric:`always`}),X.format(Math.max(1,Math.round(t/r)),n)}var $;(function(e){e.allowed=1,e.chain=1,e.details=1,e.heading=1,e.icon=1,e.icons=1,e.info=1,e.list=1,e.nowrap=1,e.placeholder=1,e.popup=1,e.popupLink=1,e.section=1,e.term=1,e.token=1,e.value=1,e.warningText=1,e.warningTitle=1})($||={});export{Ee as n,w as r,J as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{X as t,Y as n,Z as r,n as i}from"./zyzz.config-B1viQ4-F.js";import{t as a}from"./link-B484zceo.js";import{n as o,t as s}from"./Hex-D6Nt_Ctw.js";import{t as c}from"./Alert-C3aAPp1-.js";import{n as l,t as u}from"./ButtonGroup-1GQbYug4.js";import{t as d}from"./ArrowLeft-BGqtLtfP.js";import{n as f,t as p}from"./Key-1rTsyCdD.js";import{r as m,t as h}from"./Grant-D9J5rWQc.js";import{n as g}from"./StatusChip-DZmt1RJH.js";import{t as _}from"./Stack-BOcRBVsr.js";import{C as v,E as y}from"./index-BCTnLwp1.js";var b=t(),x;(function(e){function t(e){let{className:t,vars:n,...r}=e;return(0,b.jsx)(`div`,{...r,...S.actions({className:t,style:e.style,vars:n})})}e.Actions=t;function n(e){let{className:t,vars:n,...r}=e;return(0,b.jsx)(`p`,{...r,...S.description({className:t,style:e.style,vars:n})})}e.Description=n;function r(e){let{className:t,vars:n,...r}=e;return(0,b.jsx)(`div`,{"aria-hidden":`true`,...r,...S.icon({className:t,style:e.style,vars:n})})}e.Icon=r;function i(e){let{className:t,vars:n,...r}=e;return(0,b.jsx)(`div`,{...r,...S.root({className:t,style:e.style,vars:n})})}e.Root=i;function a(e){let{className:t,vars:n,...r}=e;return(0,b.jsx)(`h3`,{...r,...S.title({className:t,style:e.style,vars:n})})}e.Title=a})(x||={});var S;(function(e){e.actions=n({className:`z_tds_2f_web-agS1R40 z_tds_2f_web-agS1R41 z_tds_2f_web-agS1R42 z_tds_2f_web-agS1R43 z_tds_2f_web-agS1R44 z_tds_2f_web-agS1R45`}),e.description=n({className:`z_tds_2f_web-agS1R46 z_tds_2f_web-agS1R47 z_tds_2f_web-agS1R48 z_tds_2f_web-agS1R49 z_tds_2f_web-agS1R4a z_tds_2f_web-agS1R4b z_tds_2f_web-agS1R4c z_tds_2f_web-agS1R4d`}),e.icon=n({className:`z_tds_2f_web-agS1R40 z_tds_2f_web-agS1R4e z_tds_2f_web-agS1R4f z_tds_2f_web-agS1R46 z_tds_2f_web-agS1R4g z_tds_2f_web-agS1R42 z_tds_2f_web-agS1R4h z_tds_2f_web-agS1R4i z_tds_2f_web-agS1R44 z_tds_2f_web-agS1R4j z_tds_2f_web-agS1R4k`}),e.root=n({className:`z_tds_2f_web-agS1R40 z_tds_2f_web-agS1R4l z_tds_2f_web-agS1R42 z_tds_2f_web-agS1R4m z_tds_2f_web-agS1R4n z_tds_2f_web-agS1R4o z_tds_2f_web-agS1R4p z_tds_2f_web-agS1R4q z_tds_2f_web-agS1R4r`}),e.title=n({className:`z_tds_2f_web-agS1R4s z_tds_2f_web-agS1R4t z_tds_2f_web-agS1R4u z_tds_2f_web-agS1R4v z_tds_2f_web-agS1R4w z_tds_2f_web-agS1R4x z_tds_2f_web-agS1R4y`})})(S||={});var C=e(r(),1);function w(e){let t=e.heading??`h1`,n=e.heading===`h4`?`h5`:`h2`,r=A(e.keys??[]);return(0,b.jsxs)(_,{className:N.column?`z_tempo_2d_id-yOQXdil z_tempo_2d_id-yOQXdim`:N.column().className,gap:`24`,children:[(0,b.jsxs)(_,{gap:`8`,children:[(0,b.jsxs)(`header`,{className:N.header?`z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdi11 z_tempo_2d_id-yOQXdi12`:N.header().className,children:[(0,b.jsx)(`span`,{className:N.back?`z_tempo_2d_id-yOQXdid z_tempo_2d_id-yOQXdie z_tempo_2d_id-yOQXdif z_tempo_2d_id-yOQXdig z_tempo_2d_id-yOQXdih z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdi3`:N.back().className,children:(0,b.jsx)(i.Link,{"aria-label":`Back`,render:(0,b.jsx)(a,{to:`/`}),shape:`icon`,variant:`tertiary`,children:(0,b.jsx)(d,{className:N.backIcon?`z_tempo_2d_id-yOQXdij z_tempo_2d_id-yOQXdik`:N.backIcon().className})})}),(0,b.jsx)(t,{className:N.title?`z_tempo_2d_id-yOQXdi1j z_tempo_2d_id-yOQXdi1k z_tempo_2d_id-yOQXdi1l z_tempo_2d_id-yOQXdi1m z_tempo_2d_id-yOQXdi1n z_tempo_2d_id-yOQXdi1o`:N.title().className,children:`Permissions`})]}),(0,b.jsx)(`p`,{className:N.description?`z_tempo_2d_id-yOQXdin z_tempo_2d_id-yOQXdio z_tempo_2d_id-yOQXdip z_tempo_2d_id-yOQXdiq z_tempo_2d_id-yOQXdir z_tempo_2d_id-yOQXdis z_tempo_2d_id-yOQXdit z_tempo_2d_id-yOQXdiu`:N.description().className,children:`Apps you approved can spend from your wallet within these limits. Revoke a key to stop an app at once.`})]}),e.stale?(0,b.jsxs)(c,{intent:`warning`,children:[(0,b.jsx)(c.Icon,{}),(0,b.jsx)(c.Content,{children:`To revoke a key, sign in again. Revoking needs a sign-in within the last 10 minutes.`}),e.onSignIn?(0,b.jsx)(c.Action,{onClick:e.onSignIn,children:`Sign in again`}):null]}):e.error?(0,b.jsxs)(c,{intent:`negative`,children:[(0,b.jsx)(c.Icon,{}),(0,b.jsx)(c.Content,{children:e.error})]}):null,e.keys?r.length?r.map(t=>(0,b.jsxs)(_,{"aria-label":O(t.app),gap:`8`,render:(0,b.jsx)(`section`,{}),children:[(0,b.jsxs)(g,{align:`center`,gap:`8`,children:[(0,b.jsxs)(f,{className:N.logo?`z_tempo_2d_id-yOQXdi1c`:N.logo().className,"aria-hidden":!0,size:`24`,children:[t.app.logo?(0,b.jsx)(f.Image,{src:t.app.logo}):null,(0,b.jsx)(f.Fallback,{children:O(t.app).charAt(0)})]}),(0,b.jsx)(n,{className:N.appName?`z_tempo_2d_id-yOQXdi6 z_tempo_2d_id-yOQXdi7 z_tempo_2d_id-yOQXdi8 z_tempo_2d_id-yOQXdi9 z_tempo_2d_id-yOQXdia z_tempo_2d_id-yOQXdib z_tempo_2d_id-yOQXdic`:N.appName().className,children:O(t.app)})]}),(0,b.jsx)(`ul`,{className:N.list?`z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdiy z_tempo_2d_id-yOQXdi18 z_tempo_2d_id-yOQXdi19 z_tempo_2d_id-yOQXdi1a z_tempo_2d_id-yOQXdi1b`:N.list().className,"aria-label":`Keys of ${O(t.app)}`,children:t.keys.map(t=>(0,b.jsx)(T,{entry:t,holds:e.revoking!==void 0&&e.revoking!==t.address,onRevoke:e.onRevoke,revoking:e.revoking===t.address},`${t.chainId}:${t.account}:${t.address}`))})]},t.app.clientId)):(0,b.jsxs)(x.Root,{children:[(0,b.jsx)(x.Icon,{children:(0,b.jsx)(p,{})}),(0,b.jsx)(x.Title,{children:`No app permissions`}),(0,b.jsx)(x.Description,{children:`Apps that you approve to spend from your wallet appear here.`})]}):null,(0,b.jsx)(`p`,{className:N.announcement?`z_tempo_2d_id-yOQXdi0 z_tempo_2d_id-yOQXdi1 z_tempo_2d_id-yOQXdi2 z_tempo_2d_id-yOQXdi3 z_tempo_2d_id-yOQXdi4 z_tempo_2d_id-yOQXdi5`:N.announcement().className,"aria-live":`polite`,role:`status`,children:e.revoking?`Revoking the key.`:void 0})]})}function T(e){let{entry:t}=e,[n,r]=(0,C.useState)(!1),a=O(t.app),s=o(t.address);return(0,b.jsxs)(`li`,{className:N.row?`z_tempo_2d_id-yOQXdi1f z_tempo_2d_id-yOQXdi1g z_tempo_2d_id-yOQXdi1h z_tempo_2d_id-yOQXdi12`:N.row().className,children:[(0,b.jsxs)(_,{gap:`24`,children:[(0,b.jsxs)(h,{keyAuthorization:t.description,children:[t.unrestricted.includes(`limits`)?(0,b.jsxs)(g,{gap:`8`,render:(0,b.jsx)(`li`,{}),children:[(0,b.jsx)(y,{className:N.warning?`z_tempo_2d_id-yOQXdi1t z_tempo_2d_id-yOQXdi1c z_tempo_2d_id-yOQXdi1u z_tempo_2d_id-yOQXdi1v`:N.warning().className}),(0,b.jsx)(`span`,{children:`Spend any amount`})]}):null,(()=>{let e=(()=>{if(t.unrestricted.includes(`calls`))return`Take any action`;if(t.description.unrecognized.length)return`Take other actions`})();return e?(0,b.jsxs)(g,{gap:`8`,render:(0,b.jsx)(`li`,{}),children:[(0,b.jsx)(y,{className:N.warning?`z_tempo_2d_id-yOQXdi1t z_tempo_2d_id-yOQXdi1c z_tempo_2d_id-yOQXdi1u z_tempo_2d_id-yOQXdi1v`:N.warning().className}),(0,b.jsx)(`span`,{children:e})]}):null})()]}),(0,b.jsxs)(g,{align:`center`,gap:`8`,justify:`between`,children:[(0,b.jsxs)(`span`,{className:N.secondary?`z_tempo_2d_id-yOQXdin z_tempo_2d_id-yOQXdiq z_tempo_2d_id-yOQXdir z_tempo_2d_id-yOQXdis z_tempo_2d_id-yOQXdit z_tempo_2d_id-yOQXdiu`:N.secondary().className,children:[t.unrestricted.includes(`expiry`)?`Never expires`:`Expires ${M(t.description.expiry)}`,t.chain===null?`. Its network is unavailable.`:null]}),(0,b.jsxs)(l.Root,{onOpenChange:r,open:n,children:[(0,b.jsx)(l.Trigger,{render:(0,b.jsx)(i,{"aria-label":`Revoke ${a} key ${s}`,disabled:e.holds||t.chain===null,loading:e.revoking,size:`small`,variant:`secondary`}),children:`Revoke`}),(0,b.jsxs)(l.Popup,{children:[(0,b.jsxs)(l.Header,{children:[(0,b.jsx)(l.Title,{children:`Revoke this key?`}),(0,b.jsxs)(l.Description,{children:[a,` can no longer spend from your wallet with this key. The app asks you again before it can spend.`]})]}),(0,b.jsxs)(u,{children:[(0,b.jsx)(l.Close,{render:(0,b.jsx)(i,{size:`large`,variant:`secondary`}),children:`Cancel`}),(0,b.jsx)(i,{onClick:()=>{r(!1),e.onRevoke(t)},size:`large`,variant:`danger`,children:`Revoke key`})]})]})]})]})]}),(0,b.jsx)(`span`,{className:N.info?`z_tempo_2d_id-yOQXdi15 z_tempo_2d_id-yOQXdi3`:N.info().className,children:(0,b.jsx)(E,{entry:t})})]})}function E(e){let{entry:t}=e,n=t.remaining.map(e=>`${e.amount} ${e.symbol}`),r=[[`Key`,(0,b.jsxs)(s.Root,{className:N.hex?`z_tempo_2d_id-yOQXdi13 z_tempo_2d_id-yOQXdi14`:N.hex().className,value:t.address,children:[(0,b.jsx)(`span`,{"aria-hidden":`true`,children:o(t.address)}),(0,b.jsx)(`span`,{className:N.announcement?`z_tempo_2d_id-yOQXdi0 z_tempo_2d_id-yOQXdi1 z_tempo_2d_id-yOQXdi2 z_tempo_2d_id-yOQXdi3 z_tempo_2d_id-yOQXdi4 z_tempo_2d_id-yOQXdi5`:N.announcement().className,children:t.address}),(0,b.jsx)(s.Copy,{"aria-label":`Copy key address`})]})],[`Wallet`,(0,b.jsxs)(s.Root,{className:N.hex?`z_tempo_2d_id-yOQXdi13 z_tempo_2d_id-yOQXdi14`:N.hex().className,value:t.account,children:[(0,b.jsx)(`span`,{"aria-hidden":`true`,children:o(t.account)}),(0,b.jsx)(`span`,{className:N.announcement?`z_tempo_2d_id-yOQXdi0 z_tempo_2d_id-yOQXdi1 z_tempo_2d_id-yOQXdi2 z_tempo_2d_id-yOQXdi3 z_tempo_2d_id-yOQXdi4 z_tempo_2d_id-yOQXdi5`:N.announcement().className,children:t.account}),(0,b.jsx)(s.Copy,{"aria-label":`Copy wallet address`})]})],[`Network`,t.chain??`Chain ${t.chainId}`],[`Created`,k(t.createdAt)],[`Expires`,t.unrestricted.includes(`expiry`)?`Never`:k(t.description.expiry)],[`Status`,j(t.status)],...n.length?[[`Left to spend`,n.join(`, `)]]:[]];return(0,b.jsxs)(m.Root,{children:[(0,b.jsx)(m.Trigger,{"aria-label":`Details of key ${o(t.address)}`,openOnHover:!0,render:(0,b.jsx)(i,{shape:`icon`,size:`small`,variant:`text`}),children:(0,b.jsx)(v,{className:N.infoIcon?`z_tempo_2d_id-yOQXdi16 z_tempo_2d_id-yOQXdi17`:N.infoIcon().className})}),(0,b.jsxs)(m.Popup,{className:N.popup?`z_tempo_2d_id-yOQXdi1d z_tempo_2d_id-yOQXdi1e`:N.popup().className,children:[(0,b.jsx)(m.Title,{children:`Key details`}),(0,b.jsx)(`dl`,{className:N.details?`z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdiy z_tempo_2d_id-yOQXdiz z_tempo_2d_id-yOQXdi10 z_tempo_2d_id-yOQXdiq z_tempo_2d_id-yOQXdir z_tempo_2d_id-yOQXdis z_tempo_2d_id-yOQXdit z_tempo_2d_id-yOQXdiu`:N.details().className,children:r.map(e=>(0,b.jsxs)(`div`,{className:N.detail?`z_tempo_2d_id-yOQXdid z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdiv z_tempo_2d_id-yOQXdiw z_tempo_2d_id-yOQXdix`:N.detail().className,children:[(0,b.jsx)(`dt`,{className:N.term?`z_tempo_2d_id-yOQXdin z_tempo_2d_id-yOQXdi1i`:N.term().className,children:e[0]}),(0,b.jsx)(`dd`,{className:N.value?`z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdi1p z_tempo_2d_id-yOQXdi1q z_tempo_2d_id-yOQXdi1a z_tempo_2d_id-yOQXdi1r z_tempo_2d_id-yOQXdi1s`:N.value().className,children:e[1]})]},e[0]))})]})]})}var D=[[`year`,31536e3],[`month`,2592e3],[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60]];function O(e){return e.name||e.clientId}function k(e){return new Date(e*1e3).toLocaleDateString(void 0,{day:`numeric`,month:`short`,year:`numeric`})}function A(e){let t=new Map;for(let n of e){let e=t.get(n.app.clientId);e?e.keys.push(n):t.set(n.app.clientId,{app:n.app,keys:[n]})}return[...t.values()]}function j(e){return e===`active`?`In use`:e===`pending`?`Not used yet`:`Unknown`}function M(e){let t=e-Date.now()/1e3,[n,r]=D.find(e=>t+60>=e[1])??D.at(-1);return new Intl.RelativeTimeFormat(`en-US`,{numeric:`always`}).format(Math.max(1,Math.round(t/r)),n)}var N;(function(e){e.announcement=1,e.appName=1,e.back=1,e.backIcon=1,e.column=1,e.description=1,e.detail=1,e.details=1,e.header=1,e.hex=1,e.info=1,e.infoIcon=1,e.list=1,e.logo=1,e.popup=1,e.row=1,e.secondary=1,e.term=1,e.title=1,e.value=1,e.warning=1})(N||={});export{w as t};
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{X as t,Y as n,Z as r,n as i}from"./zyzz.config-B1viQ4-F.js";import{t as a}from"./link-B484zceo.js";import{n as o,t as s}from"./Hex-D6Nt_Ctw.js";import{t as c}from"./Alert-C3aAPp1-.js";import{n as l,t as u}from"./ButtonGroup-1GQbYug4.js";import{t as d}from"./ArrowLeft-BGqtLtfP.js";import{n as f,t as p}from"./Key-1rTsyCdD.js";import{r as m,t as h}from"./Grant-CcsQ97_x.js";import{n as g}from"./StatusChip-DZmt1RJH.js";import{t as _}from"./Stack-BOcRBVsr.js";import{C as v,E as y}from"./index-Cmkt-N9A.js";var b=t(),x;(function(e){function t(e){let{className:t,vars:n,...r}=e;return(0,b.jsx)(`div`,{...r,...S.actions({className:t,style:e.style,vars:n})})}e.Actions=t;function n(e){let{className:t,vars:n,...r}=e;return(0,b.jsx)(`p`,{...r,...S.description({className:t,style:e.style,vars:n})})}e.Description=n;function r(e){let{className:t,vars:n,...r}=e;return(0,b.jsx)(`div`,{"aria-hidden":`true`,...r,...S.icon({className:t,style:e.style,vars:n})})}e.Icon=r;function i(e){let{className:t,vars:n,...r}=e;return(0,b.jsx)(`div`,{...r,...S.root({className:t,style:e.style,vars:n})})}e.Root=i;function a(e){let{className:t,vars:n,...r}=e;return(0,b.jsx)(`h3`,{...r,...S.title({className:t,style:e.style,vars:n})})}e.Title=a})(x||={});var S;(function(e){e.actions=n({className:`z_tds_2f_web-agS1R40 z_tds_2f_web-agS1R41 z_tds_2f_web-agS1R42 z_tds_2f_web-agS1R43 z_tds_2f_web-agS1R44 z_tds_2f_web-agS1R45`}),e.description=n({className:`z_tds_2f_web-agS1R46 z_tds_2f_web-agS1R47 z_tds_2f_web-agS1R48 z_tds_2f_web-agS1R49 z_tds_2f_web-agS1R4a z_tds_2f_web-agS1R4b z_tds_2f_web-agS1R4c z_tds_2f_web-agS1R4d`}),e.icon=n({className:`z_tds_2f_web-agS1R40 z_tds_2f_web-agS1R4e z_tds_2f_web-agS1R4f z_tds_2f_web-agS1R46 z_tds_2f_web-agS1R4g z_tds_2f_web-agS1R42 z_tds_2f_web-agS1R4h z_tds_2f_web-agS1R4i z_tds_2f_web-agS1R44 z_tds_2f_web-agS1R4j z_tds_2f_web-agS1R4k`}),e.root=n({className:`z_tds_2f_web-agS1R40 z_tds_2f_web-agS1R4l z_tds_2f_web-agS1R42 z_tds_2f_web-agS1R4m z_tds_2f_web-agS1R4n z_tds_2f_web-agS1R4o z_tds_2f_web-agS1R4p z_tds_2f_web-agS1R4q z_tds_2f_web-agS1R4r`}),e.title=n({className:`z_tds_2f_web-agS1R4s z_tds_2f_web-agS1R4t z_tds_2f_web-agS1R4u z_tds_2f_web-agS1R4v z_tds_2f_web-agS1R4w z_tds_2f_web-agS1R4x z_tds_2f_web-agS1R4y`})})(S||={});var C=e(r(),1);function w(e){let t=e.heading??`h1`,n=e.heading===`h4`?`h5`:`h2`,r=A(e.keys??[]);return(0,b.jsxs)(_,{className:N.column?`z_tempo_2d_id-yOQXdil z_tempo_2d_id-yOQXdim`:N.column().className,gap:`24`,children:[(0,b.jsxs)(_,{gap:`8`,children:[(0,b.jsxs)(`header`,{className:N.header?`z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdi11 z_tempo_2d_id-yOQXdi12`:N.header().className,children:[(0,b.jsx)(`span`,{className:N.back?`z_tempo_2d_id-yOQXdid z_tempo_2d_id-yOQXdie z_tempo_2d_id-yOQXdif z_tempo_2d_id-yOQXdig z_tempo_2d_id-yOQXdih z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdi3`:N.back().className,children:(0,b.jsx)(i.Link,{"aria-label":`Back`,render:(0,b.jsx)(a,{to:`/`}),shape:`icon`,variant:`tertiary`,children:(0,b.jsx)(d,{className:N.backIcon?`z_tempo_2d_id-yOQXdij z_tempo_2d_id-yOQXdik`:N.backIcon().className})})}),(0,b.jsx)(t,{className:N.title?`z_tempo_2d_id-yOQXdi1j z_tempo_2d_id-yOQXdi1k z_tempo_2d_id-yOQXdi1l z_tempo_2d_id-yOQXdi1m z_tempo_2d_id-yOQXdi1n z_tempo_2d_id-yOQXdi1o`:N.title().className,children:`Permissions`})]}),(0,b.jsx)(`p`,{className:N.description?`z_tempo_2d_id-yOQXdin z_tempo_2d_id-yOQXdio z_tempo_2d_id-yOQXdip z_tempo_2d_id-yOQXdiq z_tempo_2d_id-yOQXdir z_tempo_2d_id-yOQXdis z_tempo_2d_id-yOQXdit z_tempo_2d_id-yOQXdiu`:N.description().className,children:`Apps you approved can spend from your wallet within these limits. Revoke a key to stop an app at once.`})]}),e.stale?(0,b.jsxs)(c,{intent:`warning`,children:[(0,b.jsx)(c.Icon,{}),(0,b.jsx)(c.Content,{children:`To revoke a key, sign in again. Revoking needs a sign-in within the last 10 minutes.`}),e.onSignIn?(0,b.jsx)(c.Action,{onClick:e.onSignIn,children:`Sign in again`}):null]}):e.error?(0,b.jsxs)(c,{intent:`negative`,children:[(0,b.jsx)(c.Icon,{}),(0,b.jsx)(c.Content,{children:e.error})]}):null,e.keys?r.length?r.map(t=>(0,b.jsxs)(_,{"aria-label":O(t.app),gap:`8`,render:(0,b.jsx)(`section`,{}),children:[(0,b.jsxs)(g,{align:`center`,gap:`8`,children:[(0,b.jsxs)(f,{className:N.logo?`z_tempo_2d_id-yOQXdi1c`:N.logo().className,"aria-hidden":!0,size:`24`,children:[t.app.logo?(0,b.jsx)(f.Image,{src:t.app.logo}):null,(0,b.jsx)(f.Fallback,{children:O(t.app).charAt(0)})]}),(0,b.jsx)(n,{className:N.appName?`z_tempo_2d_id-yOQXdi6 z_tempo_2d_id-yOQXdi7 z_tempo_2d_id-yOQXdi8 z_tempo_2d_id-yOQXdi9 z_tempo_2d_id-yOQXdia z_tempo_2d_id-yOQXdib z_tempo_2d_id-yOQXdic`:N.appName().className,children:O(t.app)})]}),(0,b.jsx)(`ul`,{className:N.list?`z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdiy z_tempo_2d_id-yOQXdi18 z_tempo_2d_id-yOQXdi19 z_tempo_2d_id-yOQXdi1a z_tempo_2d_id-yOQXdi1b`:N.list().className,"aria-label":`Keys of ${O(t.app)}`,children:t.keys.map(t=>(0,b.jsx)(T,{entry:t,holds:e.revoking!==void 0&&e.revoking!==t.address,onRevoke:e.onRevoke,revoking:e.revoking===t.address},`${t.chainId}:${t.account}:${t.address}`))})]},t.app.clientId)):(0,b.jsxs)(x.Root,{children:[(0,b.jsx)(x.Icon,{children:(0,b.jsx)(p,{})}),(0,b.jsx)(x.Title,{children:`No app permissions`}),(0,b.jsx)(x.Description,{children:`Apps that you approve to spend from your wallet appear here.`})]}):null,(0,b.jsx)(`p`,{className:N.announcement?`z_tempo_2d_id-yOQXdi0 z_tempo_2d_id-yOQXdi1 z_tempo_2d_id-yOQXdi2 z_tempo_2d_id-yOQXdi3 z_tempo_2d_id-yOQXdi4 z_tempo_2d_id-yOQXdi5`:N.announcement().className,"aria-live":`polite`,role:`status`,children:e.revoking?`Revoking the key.`:void 0})]})}function T(e){let{entry:t}=e,[n,r]=(0,C.useState)(!1),a=O(t.app),s=o(t.address);return(0,b.jsxs)(`li`,{className:N.row?`z_tempo_2d_id-yOQXdi1f z_tempo_2d_id-yOQXdi1g z_tempo_2d_id-yOQXdi1h z_tempo_2d_id-yOQXdi12`:N.row().className,children:[(0,b.jsxs)(_,{gap:`24`,children:[(0,b.jsxs)(h,{keyAuthorization:t.description,children:[t.unrestricted.includes(`limits`)?(0,b.jsxs)(g,{gap:`8`,render:(0,b.jsx)(`li`,{}),children:[(0,b.jsx)(y,{className:N.warning?`z_tempo_2d_id-yOQXdi1t z_tempo_2d_id-yOQXdi1c z_tempo_2d_id-yOQXdi1u z_tempo_2d_id-yOQXdi1v`:N.warning().className}),(0,b.jsx)(`span`,{children:`Spend any amount`})]}):null,(()=>{let e=(()=>{if(t.unrestricted.includes(`calls`))return`Take any action`;if(t.description.unrecognized.length)return`Take other actions`})();return e?(0,b.jsxs)(g,{gap:`8`,render:(0,b.jsx)(`li`,{}),children:[(0,b.jsx)(y,{className:N.warning?`z_tempo_2d_id-yOQXdi1t z_tempo_2d_id-yOQXdi1c z_tempo_2d_id-yOQXdi1u z_tempo_2d_id-yOQXdi1v`:N.warning().className}),(0,b.jsx)(`span`,{children:e})]}):null})()]}),(0,b.jsxs)(g,{align:`center`,gap:`8`,justify:`between`,children:[(0,b.jsxs)(`span`,{className:N.secondary?`z_tempo_2d_id-yOQXdin z_tempo_2d_id-yOQXdiq z_tempo_2d_id-yOQXdir z_tempo_2d_id-yOQXdis z_tempo_2d_id-yOQXdit z_tempo_2d_id-yOQXdiu`:N.secondary().className,children:[t.unrestricted.includes(`expiry`)?`Never expires`:`Expires ${M(t.description.expiry)}`,t.chain===null?`. Its network is unavailable.`:null]}),(0,b.jsxs)(l.Root,{onOpenChange:r,open:n,children:[(0,b.jsx)(l.Trigger,{render:(0,b.jsx)(i,{"aria-label":`Revoke ${a} key ${s}`,disabled:e.holds||t.chain===null,loading:e.revoking,size:`small`,variant:`secondary`}),children:`Revoke`}),(0,b.jsxs)(l.Popup,{children:[(0,b.jsxs)(l.Header,{children:[(0,b.jsx)(l.Title,{children:`Revoke this key?`}),(0,b.jsxs)(l.Description,{children:[a,` can no longer spend from your wallet with this key. The app asks you again before it can spend.`]})]}),(0,b.jsxs)(u,{children:[(0,b.jsx)(l.Close,{render:(0,b.jsx)(i,{size:`large`,variant:`secondary`}),children:`Cancel`}),(0,b.jsx)(i,{onClick:()=>{r(!1),e.onRevoke(t)},size:`large`,variant:`danger`,children:`Revoke key`})]})]})]})]})]}),(0,b.jsx)(`span`,{className:N.info?`z_tempo_2d_id-yOQXdi15 z_tempo_2d_id-yOQXdi3`:N.info().className,children:(0,b.jsx)(E,{entry:t})})]})}function E(e){let{entry:t}=e,n=t.remaining.map(e=>`${e.amount} ${e.symbol}`),r=[[`Key`,(0,b.jsxs)(s.Root,{className:N.hex?`z_tempo_2d_id-yOQXdi13 z_tempo_2d_id-yOQXdi14`:N.hex().className,value:t.address,children:[(0,b.jsx)(`span`,{"aria-hidden":`true`,children:o(t.address)}),(0,b.jsx)(`span`,{className:N.announcement?`z_tempo_2d_id-yOQXdi0 z_tempo_2d_id-yOQXdi1 z_tempo_2d_id-yOQXdi2 z_tempo_2d_id-yOQXdi3 z_tempo_2d_id-yOQXdi4 z_tempo_2d_id-yOQXdi5`:N.announcement().className,children:t.address}),(0,b.jsx)(s.Copy,{"aria-label":`Copy key address`})]})],[`Wallet`,(0,b.jsxs)(s.Root,{className:N.hex?`z_tempo_2d_id-yOQXdi13 z_tempo_2d_id-yOQXdi14`:N.hex().className,value:t.account,children:[(0,b.jsx)(`span`,{"aria-hidden":`true`,children:o(t.account)}),(0,b.jsx)(`span`,{className:N.announcement?`z_tempo_2d_id-yOQXdi0 z_tempo_2d_id-yOQXdi1 z_tempo_2d_id-yOQXdi2 z_tempo_2d_id-yOQXdi3 z_tempo_2d_id-yOQXdi4 z_tempo_2d_id-yOQXdi5`:N.announcement().className,children:t.account}),(0,b.jsx)(s.Copy,{"aria-label":`Copy wallet address`})]})],[`Network`,t.chain??`Chain ${t.chainId}`],[`Created`,k(t.createdAt)],[`Expires`,t.unrestricted.includes(`expiry`)?`Never`:k(t.description.expiry)],[`Status`,j(t.status)],...n.length?[[`Left to spend`,n.join(`, `)]]:[]];return(0,b.jsxs)(m.Root,{children:[(0,b.jsx)(m.Trigger,{"aria-label":`Details of key ${o(t.address)}`,openOnHover:!0,render:(0,b.jsx)(i,{shape:`icon`,size:`small`,variant:`text`}),children:(0,b.jsx)(v,{className:N.infoIcon?`z_tempo_2d_id-yOQXdi16 z_tempo_2d_id-yOQXdi17`:N.infoIcon().className})}),(0,b.jsxs)(m.Popup,{className:N.popup?`z_tempo_2d_id-yOQXdi1d z_tempo_2d_id-yOQXdi1e`:N.popup().className,children:[(0,b.jsx)(m.Title,{children:`Key details`}),(0,b.jsx)(`dl`,{className:N.details?`z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdiy z_tempo_2d_id-yOQXdiz z_tempo_2d_id-yOQXdi10 z_tempo_2d_id-yOQXdiq z_tempo_2d_id-yOQXdir z_tempo_2d_id-yOQXdis z_tempo_2d_id-yOQXdit z_tempo_2d_id-yOQXdiu`:N.details().className,children:r.map(e=>(0,b.jsxs)(`div`,{className:N.detail?`z_tempo_2d_id-yOQXdid z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdiv z_tempo_2d_id-yOQXdiw z_tempo_2d_id-yOQXdix`:N.detail().className,children:[(0,b.jsx)(`dt`,{className:N.term?`z_tempo_2d_id-yOQXdin z_tempo_2d_id-yOQXdi1i`:N.term().className,children:e[0]}),(0,b.jsx)(`dd`,{className:N.value?`z_tempo_2d_id-yOQXdii z_tempo_2d_id-yOQXdi1p z_tempo_2d_id-yOQXdi1q z_tempo_2d_id-yOQXdi1a z_tempo_2d_id-yOQXdi1r z_tempo_2d_id-yOQXdi1s`:N.value().className,children:e[1]})]},e[0]))})]})]})}var D=[[`year`,31536e3],[`month`,2592e3],[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60]];function O(e){return e.name||e.clientId}function k(e){return new Date(e*1e3).toLocaleDateString(void 0,{day:`numeric`,month:`short`,year:`numeric`})}function A(e){let t=new Map;for(let n of e){let e=t.get(n.app.clientId);e?e.keys.push(n):t.set(n.app.clientId,{app:n.app,keys:[n]})}return[...t.values()]}function j(e){return e===`active`?`In use`:e===`pending`?`Not used yet`:`Unknown`}function M(e){let t=e-Date.now()/1e3,[n,r]=D.find(e=>t+60>=e[1])??D.at(-1);return new Intl.RelativeTimeFormat(`en-US`,{numeric:`always`}).format(Math.max(1,Math.round(t/r)),n)}var N;(function(e){e.announcement=1,e.appName=1,e.back=1,e.backIcon=1,e.column=1,e.description=1,e.detail=1,e.details=1,e.header=1,e.hex=1,e.info=1,e.infoIcon=1,e.list=1,e.logo=1,e.popup=1,e.row=1,e.secondary=1,e.term=1,e.title=1,e.value=1,e.warning=1})(N||={});export{w as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{F as t,G as n,V as r,X as i,Y as a,Z as o,n as s,u as c}from"./zyzz.config-B1viQ4-F.js";import{Y as l}from"./FloatingPortalLite-Bvx243kr.js";import{c as u,n as d,o as f,r as p,s as m,t as h,u as g}from"./useRegisterFieldControl-Df7pkCLY.js";import{D as _,P as v}from"./composite-BROYFUD6.js";import{t as y}from"./useValueChanged-DTX7LKFt.js";import{t as b}from"./Alert-C3aAPp1-.js";import{t as x}from"./Tooltip-CfX-udM0.js";import{n as S}from"./Grant-D9J5rWQc.js";import{t as C}from"./IconTile-U61I4u7J.js";import{n as w,t as T}from"./CodeInput-B7AuFJOf.js";import{t as E}from"./Stack-BOcRBVsr.js";import{n as D,t as O}from"./Fingerprint-DIqTuY88.js";var k=e(o(),1),A=k.forwardRef(function(e,i){let{render:a,className:o,id:s,name:c,value:b,disabled:x=!1,onValueChange:S,defaultValue:C,autoFocus:w=!1,style:T,...E}=e,{state:D,name:O,disabled:A,setTouched:j,setDirty:M,validityData:N,setFilled:P,validationMode:F,validation:I}=u(),{clearErrors:L,elementRef:R,submitCountRef:z}=m(),B=A||x,V=O??c,H={...D,disabled:B},{labelId:U}=f(),W=p({id:s}),G=b!==void 0,K=b==null?void 0:String(b),q=n(()=>I.inputRef.current?.value);h(I.inputRef,W,K,q,!B,c),r(()=>{let e=K??I.inputRef.current?.value;e!==void 0&&P(e!==``)},[K,C,I.inputRef,P]),y(K,()=>{K!==void 0&&(L(V),M(K!==(N.initialValue??``)),I.change(K))});let J=k.useRef(null),Y=d(B,J),X=l();return t(`input`,e,{ref:[i,J],state:H,props:[{id:W,disabled:B,name:V,ref:I.inputRef,"aria-labelledby":U,autoFocus:w,...G?{value:b}:{defaultValue:C},onChange(e){let t=e.currentTarget.value,n=v(_,e.nativeEvent);S?.(t,n),!G&&(M(t!==(N.initialValue??``)),P(t!==``),!e.nativeEvent.defaultPrevented&&!n.isCanceled&&(L(V),I.change(t)))},onFocus(){Y(!0)},onBlur(e){if(j(!0),Y(!1),F===`onBlur`){let t=e.currentTarget.value;I.commit(t),G&&queueMicrotask(()=>{let e=I.inputRef.current?.value;e!==void 0&&e!==t&&e!==(N.initialValue??``)&&I.commit(e)})}},onKeyDown(e){if(e.currentTarget.tagName===`INPUT`&&e.key===`Enter`){j(!0);let t=e.currentTarget.value,n=e.currentTarget.form;if(n&&n===R.current&&!e.defaultPrevented){let t=e.currentTarget,n=z.current;X.start(0,()=>{z.current===n&&I.commit(t.value)})}else I.commit(t)}}},E,e=>I.getValidationProps(B,e)],stateAttributesMapping:g})}),j=i(),M=k.forwardRef(function(e,t){return(0,j.jsx)(A,{ref:t,...e})}),N=(0,k.createContext)(void 0);function P(e){let t=(0,k.useRef)(void 0);(0,k.useLayoutEffect)(()=>{let n=e.current;if(!n)return;let r=n;function i(){let e=r.matches(`[data-invalid], [data-invalid] *, :has([aria-invalid="true"])`)?`invalid`:r.matches(`[data-success], [data-success] *`)?`success`:`none`,n=t.current;t.current=e,n!==void 0&&n!==e&&e!==`none`&&(r.removeAttribute(`data-entered`),r.offsetWidth,r.setAttribute(`data-entered`,e))}function a(e){e.target===r&&r.removeAttribute(`data-entered`)}i();let o=new MutationObserver(i);return o.observe(r,{attributeFilter:[`aria-invalid`,`data-invalid`,`data-success`],attributes:!0,subtree:!0}),r.addEventListener(`animationend`,a),()=>{o.disconnect(),r.removeEventListener(`animationend`,a)}})}var F;(function(e){e.group=((e={})=>{let t=e.className,n=e.style,r=e.vars,i=r?{...r,...n}:n,a=t?`z_tds_2f_web-9hq2xM0 z_tds_2f_web-9hq2xM1 z_tds_2f_web-9hq2xM2 z_tds_2f_web-9hq2xM3 z_tds_2f_web-9hq2xM4 z_tds_2f_web-9hq2xM5 z_tds_2f_web-9hq2xM6 z_tds_2f_web-9hq2xM7 z_tds_2f_web-9hq2xM8 z_tds_2f_web-9hq2xM9 z_tds_2f_web-9hq2xMa z_tds_2f_web-9hq2xMb z_tds_2f_web-9hq2xMc z_tds_2f_web-9hq2xMd z_tds_2f_web-9hq2xMe z_tds_2f_web-9hq2xMf z_tds_2f_web-9hq2xMg z_tds_2f_web-9hq2xMh z_tds_2f_web-9hq2xMi z_tds_2f_web-9hq2xMj z_tds_2f_web-9hq2xMk z_tds_2f_web-9hq2xMl z_tds_2f_web-9hq2xMm z_tds_2f_web-9hq2xMn z_tds_2f_web-9hq2xMo z_tds_2f_web-9hq2xMp z_tds_2f_web-9hq2xMq z_tds_2f_web-9hq2xMr z_tds_2f_web-9hq2xMs z_tds_2f_web-9hq2xMt z_tds_2f_web-9hq2xMu z_tds_2f_web-9hq2xMv z_tds_2f_web-9hq2xMw z_tds_2f_web-9hq2xMx z_tds_2f_web-9hq2xMy z_tds_2f_web-9hq2xMz z_tds_2f_web-9hq2xM10 z_tds_2f_web-9hq2xM11 z_tds_2f_web-9hq2xM12 z_tds_2f_web-9hq2xM13 z_tds_2f_web-9hq2xM14 z_tds_2f_web-9hq2xM15 z_tds_2f_web-9hq2xM16 z_tds_2f_web-9hq2xM17 z_tds_2f_web-9hq2xM18 z_tds_2f_web-9hq2xM19 z_tds_2f_web-9hq2xM1a z_tds_2f_web-9hq2xM1b z_tds_2f_web-9hq2xM1c z_tds_2f_web-9hq2xM1d z_tds_2f_web-9hq2xM1e z_tds_2f_web-9hq2xM1f z_tds_2f_web-9hq2xM1g z_tds_2f_web-9hq2xM1h z_tds_2f_web-9hq2xM1i z_tds_2f_web-9hq2xM1j z_tds_2f_web-9hq2xM1k z_tds_2f_web-9hq2xM1l z_tds_2f_web-9hq2xM1m z_tds_2f_web-9hq2xM1n z_tds_2f_web-9hq2xM1o z_tds_2f_web-9hq2xM1p z_tds_2f_web-9hq2xM1q z_tds_2f_web-9hq2xM1r z_tds_2f_web-9hq2xM1s `+t:`z_tds_2f_web-9hq2xM0 z_tds_2f_web-9hq2xM1 z_tds_2f_web-9hq2xM2 z_tds_2f_web-9hq2xM3 z_tds_2f_web-9hq2xM4 z_tds_2f_web-9hq2xM5 z_tds_2f_web-9hq2xM6 z_tds_2f_web-9hq2xM7 z_tds_2f_web-9hq2xM8 z_tds_2f_web-9hq2xM9 z_tds_2f_web-9hq2xMa z_tds_2f_web-9hq2xMb z_tds_2f_web-9hq2xMc z_tds_2f_web-9hq2xMd z_tds_2f_web-9hq2xMe z_tds_2f_web-9hq2xMf z_tds_2f_web-9hq2xMg z_tds_2f_web-9hq2xMh z_tds_2f_web-9hq2xMi z_tds_2f_web-9hq2xMj z_tds_2f_web-9hq2xMk z_tds_2f_web-9hq2xMl z_tds_2f_web-9hq2xMm z_tds_2f_web-9hq2xMn z_tds_2f_web-9hq2xMo z_tds_2f_web-9hq2xMp z_tds_2f_web-9hq2xMq z_tds_2f_web-9hq2xMr z_tds_2f_web-9hq2xMs z_tds_2f_web-9hq2xMt z_tds_2f_web-9hq2xMu z_tds_2f_web-9hq2xMv z_tds_2f_web-9hq2xMw z_tds_2f_web-9hq2xMx z_tds_2f_web-9hq2xMy z_tds_2f_web-9hq2xMz z_tds_2f_web-9hq2xM10 z_tds_2f_web-9hq2xM11 z_tds_2f_web-9hq2xM12 z_tds_2f_web-9hq2xM13 z_tds_2f_web-9hq2xM14 z_tds_2f_web-9hq2xM15 z_tds_2f_web-9hq2xM16 z_tds_2f_web-9hq2xM17 z_tds_2f_web-9hq2xM18 z_tds_2f_web-9hq2xM19 z_tds_2f_web-9hq2xM1a z_tds_2f_web-9hq2xM1b z_tds_2f_web-9hq2xM1c z_tds_2f_web-9hq2xM1d z_tds_2f_web-9hq2xM1e z_tds_2f_web-9hq2xM1f z_tds_2f_web-9hq2xM1g z_tds_2f_web-9hq2xM1h z_tds_2f_web-9hq2xM1i z_tds_2f_web-9hq2xM1j z_tds_2f_web-9hq2xM1k z_tds_2f_web-9hq2xM1l z_tds_2f_web-9hq2xM1m z_tds_2f_web-9hq2xM1n z_tds_2f_web-9hq2xM1o z_tds_2f_web-9hq2xM1p z_tds_2f_web-9hq2xM1q z_tds_2f_web-9hq2xM1r z_tds_2f_web-9hq2xM1s`,o=i?{className:a,style:i}:{className:a},s;return s=Object.hasOwn(e,`variant`)?e.variant:void 0,s===void 0&&(s=`default`),s!=null&&(o[`data-variant`]=String(s)),o})})(F||={});var I;(function(e){function t(e){let{appearance:t,className:n,invalid:r=!1,ref:i,size:a,success:o=!1,variant:s,vars:c,...l}=e,u=(0,k.useRef)(null),d=(0,k.useRef)(null),f=R.group({appearance:t,className:n,size:a}),p=(0,k.useMemo)(()=>({control:u,invalid:r}),[r]);return P(d),(0,j.jsx)(N.Provider,{value:p,children:(0,j.jsx)(`div`,{...l,...f,...F.group({className:f.className,style:e.style,variant:s,vars:c}),"data-invalid":r||void 0,"data-success":o||void 0,ref:e=>{d.current=e,typeof i==`function`?i(e):i&&(i.current=e)}})})}e.Group=t;function n(e){let{className:t,onKeyDown:n,ref:r,vars:i,...a}=e,o=(0,k.useContext)(N);return(0,j.jsx)(M,{"aria-invalid":o?.invalid||void 0,...a,...R.control({className:t,style:e.style,vars:i}),onKeyDown:e=>{n?.(e);let t=e.currentTarget;!e.defaultPrevented&&e.key===`Escape`&&t.value&&(t.readOnly||t.parentElement?.querySelector(`:scope > [data-input-clear]:enabled`)&&(L(t),e.preventDefault(),e.stopPropagation()))},ref:e=>{o&&(o.control.current=e),typeof r==`function`?r(e):r&&(r.current=e)}})}e.Control=n;function r(e){let{className:t,vars:n,...r}=e;return(0,j.jsx)(`span`,{...r,...R.prefix({className:t,style:e.style,vars:n})})}e.Prefix=r;function i(e){let{className:t,vars:n,...r}=e;return(0,j.jsx)(`span`,{...r,...R.suffix({className:t,style:e.style,vars:n})})}e.Suffix=i;function a(e){let{children:t,className:n,onClick:r,vars:i,...a}=e,o=(0,k.useContext)(N);return(0,j.jsx)(`button`,{"aria-label":`Clear`,type:`button`,...a,...R.clear({className:n,style:e.style,vars:i}),"data-input-clear":``,onClick:e=>{r?.(e);let t=o?.control.current;!e.defaultPrevented&&t&&(L(t),t.focus())},children:t??(0,j.jsxs)(`svg`,{"aria-hidden":!0,fill:`none`,height:`1em`,viewBox:`0 0 16 16`,width:`1em`,children:[(0,j.jsx)(`path`,{clipRule:`evenodd`,d:`M8 1.33301C11.6817 1.33318 14.666 4.31919 14.666 8.00098C14.6656 11.6824 11.6815 14.6668 8 14.667C4.31837 14.667 1.33345 11.6825 1.33301 8.00098C1.33301 4.31908 4.3181 1.33301 8 1.33301ZM8 2.33398C4.87039 2.33398 2.33301 4.87137 2.33301 8.00098C2.33345 11.1302 4.87066 13.667 8 13.667C11.1292 13.6668 13.6656 11.1301 13.666 8.00098C13.666 4.87147 11.1294 2.33416 8 2.33398Z`,fill:`currentColor`,fillRule:`evenodd`}),(0,j.jsx)(`path`,{d:`M10 6 6 10M6 6l4 4`,stroke:`currentColor`,strokeLinecap:`round`})]})})}e.Clear=a})(I||={});function L(e){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,`value`)?.set?.call(e,``),e.dispatchEvent(new Event(`input`,{bubbles:!0}))}var R;(function(e){e.clear=a({className:`z_tds_2f_web-rmhAEq0 z_tds_2f_web-rmhAEq1 z_tds_2f_web-rmhAEq2 z_tds_2f_web-rmhAEq3 z_tds_2f_web-rmhAEq4 z_tds_2f_web-rmhAEq5 z_tds_2f_web-rmhAEq6 z_tds_2f_web-rmhAEq7 z_tds_2f_web-rmhAEq8 z_tds_2f_web-rmhAEq9 z_tds_2f_web-rmhAEqa z_tds_2f_web-rmhAEqb z_tds_2f_web-rmhAEqc z_tds_2f_web-rmhAEqd z_tds_2f_web-rmhAEqe z_tds_2f_web-rmhAEqf z_tds_2f_web-rmhAEqg z_tds_2f_web-rmhAEqh z_tds_2f_web-rmhAEqi z_tds_2f_web-rmhAEqj z_tds_2f_web-rmhAEqk z_tds_2f_web-rmhAEql z_tds_2f_web-rmhAEqm z_tds_2f_web-rmhAEqn z_tds_2f_web-rmhAEqo z_tds_2f_web-rmhAEqp z_tds_2f_web-rmhAEqq z_tds_2f_web-rmhAEqr z_tds_2f_web-rmhAEqs z_tds_2f_web-rmhAEqt z_tds_2f_web-rmhAEqu z_tds_2f_web-rmhAEqv z_tds_2f_web-rmhAEqw z_tds_2f_web-rmhAEqx z_tds_2f_web-rmhAEqy z_tds_2f_web-rmhAEqz z_tds_2f_web-rmhAEq10 z_tds_2f_web-rmhAEq11 z_tds_2f_web-rmhAEq12 z_tds_2f_web-rmhAEq13 z_tds_2f_web-rmhAEq14 z_tds_2f_web-rmhAEq15`}),e.group=((e={})=>{let t=e.className,n=e.style,r=e.vars,i=r?{...r,...n}:n,a=t?`z_tds_2f_web-rmhAEq16 z_tds_2f_web-rmhAEq17 z_tds_2f_web-rmhAEq18 z_tds_2f_web-rmhAEq19 z_tds_2f_web-rmhAEq1a z_tds_2f_web-rmhAEq1b z_tds_2f_web-rmhAEq1c z_tds_2f_web-rmhAEq1d z_tds_2f_web-rmhAEq1e z_tds_2f_web-rmhAEq1f `+t:`z_tds_2f_web-rmhAEq16 z_tds_2f_web-rmhAEq17 z_tds_2f_web-rmhAEq18 z_tds_2f_web-rmhAEq19 z_tds_2f_web-rmhAEq1a z_tds_2f_web-rmhAEq1b z_tds_2f_web-rmhAEq1c z_tds_2f_web-rmhAEq1d z_tds_2f_web-rmhAEq1e z_tds_2f_web-rmhAEq1f`,o=i?{className:a,style:i}:{className:a},s;return s=Object.hasOwn(e,`appearance`)?e.appearance:void 0,s===void 0&&(s=`base`),s!=null&&(o[`data-appearance`]=String(s)),s=Object.hasOwn(e,`size`)?e.size:void 0,s===void 0&&(s=`medium`),s!=null&&(o[`data-size`]=String(s)),o}),e.control=a({className:`z_tds_2f_web-rmhAEq1g z_tds_2f_web-rmhAEq1h z_tds_2f_web-rmhAEq1i z_tds_2f_web-rmhAEq1j z_tds_2f_web-rmhAEq1k z_tds_2f_web-rmhAEq1l z_tds_2f_web-rmhAEq1m z_tds_2f_web-rmhAEq1n z_tds_2f_web-rmhAEq1o z_tds_2f_web-rmhAEq1p z_tds_2f_web-rmhAEq1q z_tds_2f_web-rmhAEq1r z_tds_2f_web-rmhAEq1s z_tds_2f_web-rmhAEq1t z_tds_2f_web-rmhAEq1u`}),e.prefix=a({className:`z_tds_2f_web-rmhAEq0 z_tds_2f_web-rmhAEq1v z_tds_2f_web-rmhAEq1w z_tds_2f_web-rmhAEq1x z_tds_2f_web-rmhAEq1y z_tds_2f_web-rmhAEq1z z_tds_2f_web-rmhAEq20 z_tds_2f_web-rmhAEq21`}),e.suffix=a({className:`z_tds_2f_web-rmhAEq0 z_tds_2f_web-rmhAEq1v z_tds_2f_web-rmhAEq1y z_tds_2f_web-rmhAEq21 z_tds_2f_web-rmhAEq1w z_tds_2f_web-rmhAEq1x z_tds_2f_web-rmhAEq1z z_tds_2f_web-rmhAEq20`})})(R||={});function z(e){let{children:t,className:n,orientation:r,render:i,vars:a,...o}=e;return t!=null&&typeof t!=`boolean`&&t!==``&&r!==`vertical`?(0,j.jsx)(B,{...e}):(0,j.jsx)(w,{...o,...V.separator({className:n,style:e.style,vars:a}),orientation:r,render:i})}function B(e){let{children:t,className:n,orientation:r,ref:i,render:a,vars:o,...s}=e;return c({defaultTagName:`div`,props:{...s,...V.labeled({className:n,style:e.style,vars:o}),children:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{"aria-hidden":`true`,...V.rule()}),(0,j.jsx)(`span`,{...V.label(),children:t}),(0,j.jsx)(`span`,{"aria-hidden":`true`,...V.rule()})]})},ref:i,render:a,state:{orientation:`horizontal`}})}var V;(function(e){e.label=a({className:`z_tds_2f_web-3KCWGI0 z_tds_2f_web-3KCWGI1 z_tds_2f_web-3KCWGI2 z_tds_2f_web-3KCWGI3 z_tds_2f_web-3KCWGI4 z_tds_2f_web-3KCWGI5 z_tds_2f_web-3KCWGI6`}),e.labeled=a({className:`z_tds_2f_web-3KCWGI7 z_tds_2f_web-3KCWGI8 z_tds_2f_web-3KCWGI9 z_tds_2f_web-3KCWGIa z_tds_2f_web-3KCWGI1 z_tds_2f_web-3KCWGIb`}),e.rule=a({className:`z_tds_2f_web-3KCWGIc z_tds_2f_web-3KCWGId z_tds_2f_web-3KCWGIe`}),e.separator=a({className:`z_tds_2f_web-3KCWGI8 z_tds_2f_web-3KCWGIf z_tds_2f_web-3KCWGI1 z_tds_2f_web-3KCWGIg z_tds_2f_web-3KCWGIh z_tds_2f_web-3KCWGIi z_tds_2f_web-3KCWGIj z_tds_2f_web-3KCWGIk z_tds_2f_web-3KCWGIl z_tds_2f_web-3KCWGIm z_tds_2f_web-3KCWGIn z_tds_2f_web-3KCWGIo z_tds_2f_web-3KCWGIp z_tds_2f_web-3KCWGIq z_tds_2f_web-3KCWGIr z_tds_2f_web-3KCWGIs`})})(V||={});function H(e){return(0,j.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,j.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M14.667 11.7666C14.667 11.945 14.6674 12.1089 14.6563 12.2451C14.6447 12.3871 14.6182 12.5428 14.54 12.6963C14.4282 12.9157 14.2496 13.0942 14.0303 13.2061C13.8769 13.2842 13.7211 13.3107 13.5791 13.3223C13.4429 13.3334 13.2789 13.333 13.1006 13.333H2.90039C2.72207 13.333 2.55808 13.3334 2.42188 13.3223C2.27982 13.3107 2.12421 13.2842 1.9707 13.2061C1.75121 13.0942 1.5728 12.9158 1.46094 12.6963C1.38271 12.5428 1.35633 12.3872 1.34473 12.2451C1.3336 12.1089 1.33399 11.945 1.33399 11.7666V4.2334C1.33399 4.05501 1.3336 3.89112 1.34473 3.75488C1.35633 3.6128 1.38271 3.45725 1.46094 3.30371C1.5728 3.08422 1.75121 2.90579 1.9707 2.79395C2.12421 2.71575 2.27982 2.68934 2.42188 2.67774C2.55808 2.66662 2.72207 2.66699 2.90039 2.66699H13.1006C13.2789 2.66699 13.4429 2.66661 13.5791 2.67774C13.7211 2.68936 13.8769 2.71578 14.0303 2.79395C14.2496 2.90581 14.4282 3.08432 14.54 3.30371C14.6182 3.45719 14.6447 3.61285 14.6563 3.75488C14.6674 3.89111 14.667 4.05503 14.667 4.2334V11.7666ZM13.667 4.67578L8.73926 8.70801C8.30949 9.05959 7.69152 9.05954 7.26172 8.70801L2.33399 4.67578V11.7666C2.33399 11.9615 2.33379 12.078 2.34082 12.1641C2.34738 12.2441 2.35712 12.2531 2.35156 12.2422C2.36754 12.2735 2.39345 12.2994 2.42481 12.3154C2.41388 12.3098 2.42274 12.3196 2.50293 12.3262C2.58901 12.3332 2.70546 12.333 2.90039 12.333H13.1006C13.2951 12.333 13.4111 12.3331 13.4971 12.3262C13.5769 12.3196 13.5868 12.31 13.5762 12.3154C13.6074 12.2994 13.6325 12.2735 13.6484 12.2422C13.6507 12.2339 13.6553 12.2113 13.6592 12.1641C13.6662 12.078 13.667 11.9615 13.667 11.7666V4.67578ZM2.6836 3.66992L7.89453 7.93457C7.95583 7.98468 8.04411 7.98458 8.10547 7.93457L13.3154 3.66992C13.2562 3.66925 13.186 3.66699 13.1006 3.66699H2.90039C2.81419 3.66699 2.7432 3.66923 2.6836 3.66992Z`,fill:`currentColor`})})}function U(e){let t=e.heading??`h1`,{email:n}=e,r=(0,k.useId)();return(0,j.jsxs)(E,{className:G.column?`z_tempo_2d_id-gSRY5ue z_tempo_2d_id-gSRY5uf`:G.column().className,gap:e.compact?`24`:`32`,children:[(0,j.jsxs)(E,{...e.compact?G.headerCompact?{className:`z_tempo_2d_id-gSRY5uu z_tempo_2d_id-gSRY5uv`}:G.headerCompact():G.header?{className:`z_tempo_2d_id-gSRY5ut`}:G.header(),align:e.compact?`start`:`center`,gap:`8`,render:(0,j.jsx)(`header`,{}),children:[e.compact?null:(0,j.jsx)(C,{className:G.avatar?`z_tempo_2d_id-gSRY5u1 z_tempo_2d_id-gSRY5u2 z_tempo_2d_id-gSRY5u3 z_tempo_2d_id-gSRY5u4 z_tempo_2d_id-gSRY5u5`:G.avatar().className,"aria-hidden":!0,children:n?(0,j.jsx)(H,{}):e.confirm?(0,j.jsx)(O,{}):(0,j.jsx)(W,{})}),(0,j.jsx)(t,{...e.compact?G.titleCompact?{className:`z_tempo_2d_id-gSRY5u13 z_tempo_2d_id-gSRY5u19 z_tempo_2d_id-gSRY5u1a z_tempo_2d_id-gSRY5u1b z_tempo_2d_id-gSRY5u1c z_tempo_2d_id-gSRY5u1d`}:G.titleCompact():G.title?{className:`z_tempo_2d_id-gSRY5u13 z_tempo_2d_id-gSRY5u14 z_tempo_2d_id-gSRY5u15 z_tempo_2d_id-gSRY5u16 z_tempo_2d_id-gSRY5u17 z_tempo_2d_id-gSRY5u18`}:G.title(),children:n?`Check your email`:e.confirm?`Confirm it’s you`:e.linking?`Verify your email`:`Welcome to Tempo`}),(()=>{if(n)return(0,j.jsxs)(`p`,{className:G.description?`z_tempo_2d_id-gSRY5ug z_tempo_2d_id-gSRY5uh z_tempo_2d_id-gSRY5ui z_tempo_2d_id-gSRY5uj z_tempo_2d_id-gSRY5uk z_tempo_2d_id-gSRY5ul z_tempo_2d_id-gSRY5um z_tempo_2d_id-gSRY5un z_tempo_2d_id-gSRY5uo z_tempo_2d_id-gSRY5up z_tempo_2d_id-gSRY5uq z_tempo_2d_id-gSRY5ur z_tempo_2d_id-gSRY5us`:G.description().className,children:[`Enter the 6-digit code sent to `,(0,j.jsx)(`strong`,{children:n}),`.`,e.linking?` Your passkey then confirms the sign-in.`:null]});if(e.confirm)return(0,j.jsxs)(`p`,{className:G.description?`z_tempo_2d_id-gSRY5ug z_tempo_2d_id-gSRY5uh z_tempo_2d_id-gSRY5ui z_tempo_2d_id-gSRY5uj z_tempo_2d_id-gSRY5uk z_tempo_2d_id-gSRY5ul z_tempo_2d_id-gSRY5um z_tempo_2d_id-gSRY5un z_tempo_2d_id-gSRY5uo z_tempo_2d_id-gSRY5up z_tempo_2d_id-gSRY5uq z_tempo_2d_id-gSRY5ur z_tempo_2d_id-gSRY5us`:G.description().className,children:[`This step needs a recent sign-in. Confirm the sign-in of`,` `,(0,j.jsx)(`strong`,{children:e.confirm}),` to continue.`]});if(e.linking)return(0,j.jsx)(`p`,{className:G.description?`z_tempo_2d_id-gSRY5ug z_tempo_2d_id-gSRY5uh z_tempo_2d_id-gSRY5ui z_tempo_2d_id-gSRY5uj z_tempo_2d_id-gSRY5uk z_tempo_2d_id-gSRY5ul z_tempo_2d_id-gSRY5um z_tempo_2d_id-gSRY5un z_tempo_2d_id-gSRY5uo z_tempo_2d_id-gSRY5up z_tempo_2d_id-gSRY5uq z_tempo_2d_id-gSRY5ur z_tempo_2d_id-gSRY5us`:G.description().className,children:`Enter your email to finish signing in with your passkey.`});if(!e.request)return e.device?(0,j.jsx)(`p`,{className:G.description?`z_tempo_2d_id-gSRY5ug z_tempo_2d_id-gSRY5uh z_tempo_2d_id-gSRY5ui z_tempo_2d_id-gSRY5uj z_tempo_2d_id-gSRY5uk z_tempo_2d_id-gSRY5ul z_tempo_2d_id-gSRY5um z_tempo_2d_id-gSRY5un z_tempo_2d_id-gSRY5uo z_tempo_2d_id-gSRY5up z_tempo_2d_id-gSRY5uq z_tempo_2d_id-gSRY5ur z_tempo_2d_id-gSRY5us`:G.description().className,children:`Sign in to approve a device.`}):(0,j.jsx)(`p`,{className:G.description?`z_tempo_2d_id-gSRY5ug z_tempo_2d_id-gSRY5uh z_tempo_2d_id-gSRY5ui z_tempo_2d_id-gSRY5uj z_tempo_2d_id-gSRY5uk z_tempo_2d_id-gSRY5ul z_tempo_2d_id-gSRY5um z_tempo_2d_id-gSRY5un z_tempo_2d_id-gSRY5uo z_tempo_2d_id-gSRY5up z_tempo_2d_id-gSRY5uq z_tempo_2d_id-gSRY5ur z_tempo_2d_id-gSRY5us`:G.description().className,children:`Log in or sign up to get started.`});let{host:t}=e.request,r=(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(`span`,{className:G.app?`z_tempo_2d_id-3w2jki4`:G.app().className,children:[e.request.verified?(0,j.jsx)(`strong`,{children:e.request.app}):(0,j.jsx)(`bdi`,{children:e.request.app}),e.request.verified?(0,j.jsxs)(j.Fragment,{children:[` `,(0,j.jsxs)(x.Root,{children:[(0,j.jsx)(x.Trigger,{delay:150,render:(0,j.jsx)(D,{className:G.badge?`z_tempo_2d_id-gSRY5u6 z_tempo_2d_id-gSRY5u7 z_tempo_2d_id-gSRY5u8 z_tempo_2d_id-gSRY5u9 z_tempo_2d_id-gSRY5ua z_tempo_2d_id-gSRY5ub z_tempo_2d_id-gSRY5uc z_tempo_2d_id-gSRY5ud`:G.badge().className,"aria-label":`Verified`,role:`img`,tabIndex:0})}),(0,j.jsx)(x.Popup,{children:`Verified app`})]})]}):null]}),t&&t!==e.request.app?` (${t})`:null]});return e.request.key?(0,j.jsxs)(`p`,{className:G.description?`z_tempo_2d_id-gSRY5ug z_tempo_2d_id-gSRY5uh z_tempo_2d_id-gSRY5ui z_tempo_2d_id-gSRY5uj z_tempo_2d_id-gSRY5uk z_tempo_2d_id-gSRY5ul z_tempo_2d_id-gSRY5um z_tempo_2d_id-gSRY5un z_tempo_2d_id-gSRY5uo z_tempo_2d_id-gSRY5up z_tempo_2d_id-gSRY5uq z_tempo_2d_id-gSRY5ur z_tempo_2d_id-gSRY5us`:G.description().className,children:[`Continue to let `,r,` use your Tempo Account.`]}):(0,j.jsxs)(`p`,{className:G.description?`z_tempo_2d_id-gSRY5ug z_tempo_2d_id-gSRY5uh z_tempo_2d_id-gSRY5ui z_tempo_2d_id-gSRY5uj z_tempo_2d_id-gSRY5uk z_tempo_2d_id-gSRY5ul z_tempo_2d_id-gSRY5um z_tempo_2d_id-gSRY5un z_tempo_2d_id-gSRY5uo z_tempo_2d_id-gSRY5up z_tempo_2d_id-gSRY5uq z_tempo_2d_id-gSRY5ur z_tempo_2d_id-gSRY5us`:G.description().className,children:[`Sign in to continue to `,r,`.`]})})()]}),e.request?.key&&!n&&!e.linking&&!e.confirm?(0,j.jsx)(S,{heading:e.heading===`h4`?`h5`:`h2`,keyAuthorization:e.request.key}):null,n?(0,j.jsxs)(E,{gap:`24`,render:(0,j.jsx)(`form`,{method:`post`,onSubmit:e.onSubmitCode}),children:[(0,j.jsx)(T,{"aria-describedby":`${r}-error`,"aria-label":`Code`,autoFocus:e.autoFocus,autoSubmit:!0,characters:`digits`,invalid:e.invalid,length:6,name:`code`,readOnly:e.verifying||e.verified,required:!0,success:e.verified}),e.error?(0,j.jsxs)(b,{id:`${r}-error`,intent:`negative`,children:[(0,j.jsx)(b.Icon,{}),(0,j.jsx)(b.Content,{children:e.error})]}):null,(0,j.jsxs)(E,{align:`center`,gap:`4`,children:[(0,j.jsx)(s,{disabled:e.resend!==`idle`||e.verifying||e.verified,onClick:e.onResend,variant:`tertiary`,children:e.resend===`pending`?`Sending…`:e.resend===`sent`?`Code sent`:`Resend code`}),(0,j.jsx)(s,{disabled:e.verifying||e.verified,onClick:e.onChangeEmail,variant:`tertiary`,children:e.confirm?`Back`:`Use a different email`}),(0,j.jsx)(`p`,{className:G.status?`z_tempo_2d_id-3w2jki0 z_tempo_2d_id-3w2jki1 z_tempo_2d_id-3w2jki2 z_tempo_2d_id-3w2jki3 z_tempo_2d_id-3w2jki4 z_tempo_2d_id-3w2jki5`:G.status().className,"aria-live":`polite`,role:`status`,children:(()=>{if(e.resend===`pending`)return`Sending a new code.`;if(e.resend===`sent`)return`A new code was sent to ${n}.`})()})]})]}):e.confirm?(0,j.jsxs)(E,{gap:`12`,children:[e.error?(0,j.jsxs)(b,{id:`${r}-error`,intent:`negative`,children:[(0,j.jsx)(b.Icon,{}),(0,j.jsx)(b.Content,{children:e.error})]}):null,e.onPasskey?(0,j.jsxs)(s,{size:`medium`,disabled:e.sending,loading:e.passkeyPending,onClick:e.onPasskey,children:[(0,j.jsx)(O,{}),`Confirm with passkey`]}):null,(0,j.jsxs)(E,{render:(0,j.jsx)(`form`,{method:`post`,onSubmit:e.onSubmitEmail}),children:[(0,j.jsx)(`input`,{name:`email`,type:`hidden`,value:e.confirm}),(0,j.jsxs)(s,{size:`medium`,disabled:e.passkeyPending,loading:e.sending,type:`submit`,variant:e.onPasskey?`secondary`:`primary`,children:[(0,j.jsx)(H,{}),`Email me a code`]})]}),e.onCancel?(0,j.jsx)(s,{className:G.startOver?`z_tempo_2d_id-gSRY5ux`:G.startOver().className,onClick:e.onCancel,variant:`tertiary`,children:`Cancel`}):null]}):e.signedIn?(0,j.jsxs)(E,{gap:`12`,children:[e.error?(0,j.jsxs)(b,{id:`${r}-error`,intent:`negative`,children:[(0,j.jsx)(b.Icon,{}),(0,j.jsx)(b.Content,{children:e.error})]}):null,(0,j.jsxs)(s,{loading:e.signedIn.continuing,onClick:e.signedIn.onContinue,size:`medium`,children:[`Continue as `,e.signedIn.email]}),(0,j.jsx)(s,{disabled:e.signedIn.continuing,onClick:e.signedIn.onSwitch,size:`medium`,variant:`secondary`,children:`Use another account`})]}):(0,j.jsxs)(E,{gap:`12`,children:[(0,j.jsxs)(E,{gap:`12`,render:(0,j.jsx)(`form`,{method:`post`,onSubmit:e.onSubmitEmail}),children:[(0,j.jsx)(I.Group,{invalid:e.invalid,children:(0,j.jsx)(I.Control,{"aria-describedby":`${r}-error`,"aria-label":`Email`,autoComplete:`email`,"data-1p-ignore":!0,id:`${r}-email`,name:`email`,placeholder:`Email address`,required:!0,type:`email`})}),e.error?(0,j.jsxs)(b,{id:`${r}-error`,intent:`negative`,children:[(0,j.jsx)(b.Icon,{}),(0,j.jsx)(b.Content,{children:e.error})]}):null,(0,j.jsx)(s,{size:`medium`,disabled:e.passkeyPending,loading:e.sending,type:`submit`,children:`Continue with email`})]}),e.onPasskey&&!e.linking?(0,j.jsx)(z,{className:G.rule?`z_tempo_2d_id-gSRY5uw`:G.rule().className}):null,e.onPasskey&&!e.linking?(0,j.jsxs)(s,{size:`medium`,disabled:e.sending,loading:e.passkeyPending,onClick:e.onPasskey,variant:`secondary`,children:[(0,j.jsx)(O,{}),`Continue with passkey`]}):null,e.linking&&e.onStartOver?(0,j.jsx)(s,{className:G.startOver?`z_tempo_2d_id-gSRY5ux`:G.startOver().className,onClick:e.onStartOver,variant:`tertiary`,children:`Start over`}):null]})]})}function W(){return(0,j.jsx)(`svg`,{fill:`none`,height:`1em`,viewBox:`15.4 14.5 33 33`,width:`1em`,children:(0,j.jsx)(`path`,{d:`M29.689 47H22.3877L29.1548 26.12H20.5L22.3877 20H46.5L44.6123 26.12H36.4205L29.689 47Z`,fill:`currentColor`})})}var G;(function(e){e.app=1,e.avatar=1,e.badge=1,e.column=1,e.description=1,e.header=1,e.headerCompact=1,e.rule=1,e.startOver=1,e.status=1,e.title=1,e.titleCompact=1})(G||={});export{H as n,U as t};
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{F as t,G as n,V as r,X as i,Y as a,Z as o,n as s,u as c}from"./zyzz.config-B1viQ4-F.js";import{Y as l}from"./FloatingPortalLite-Bvx243kr.js";import{c as u,n as d,o as f,r as p,s as m,t as h,u as g}from"./useRegisterFieldControl-Df7pkCLY.js";import{D as _,P as v}from"./composite-BROYFUD6.js";import{t as y}from"./useValueChanged-DTX7LKFt.js";import{t as b}from"./Alert-C3aAPp1-.js";import{t as x}from"./Tooltip-CfX-udM0.js";import{n as S}from"./Grant-CcsQ97_x.js";import{t as C}from"./IconTile-U61I4u7J.js";import{n as w,t as T}from"./CodeInput-B7AuFJOf.js";import{t as E}from"./Stack-BOcRBVsr.js";import{n as D,t as O}from"./Fingerprint-DIqTuY88.js";var k=e(o(),1),A=k.forwardRef(function(e,i){let{render:a,className:o,id:s,name:c,value:b,disabled:x=!1,onValueChange:S,defaultValue:C,autoFocus:w=!1,style:T,...E}=e,{state:D,name:O,disabled:A,setTouched:j,setDirty:M,validityData:N,setFilled:P,validationMode:F,validation:I}=u(),{clearErrors:L,elementRef:R,submitCountRef:z}=m(),B=A||x,V=O??c,H={...D,disabled:B},{labelId:U}=f(),W=p({id:s}),G=b!==void 0,K=b==null?void 0:String(b),q=n(()=>I.inputRef.current?.value);h(I.inputRef,W,K,q,!B,c),r(()=>{let e=K??I.inputRef.current?.value;e!==void 0&&P(e!==``)},[K,C,I.inputRef,P]),y(K,()=>{K!==void 0&&(L(V),M(K!==(N.initialValue??``)),I.change(K))});let J=k.useRef(null),Y=d(B,J),X=l();return t(`input`,e,{ref:[i,J],state:H,props:[{id:W,disabled:B,name:V,ref:I.inputRef,"aria-labelledby":U,autoFocus:w,...G?{value:b}:{defaultValue:C},onChange(e){let t=e.currentTarget.value,n=v(_,e.nativeEvent);S?.(t,n),!G&&(M(t!==(N.initialValue??``)),P(t!==``),!e.nativeEvent.defaultPrevented&&!n.isCanceled&&(L(V),I.change(t)))},onFocus(){Y(!0)},onBlur(e){if(j(!0),Y(!1),F===`onBlur`){let t=e.currentTarget.value;I.commit(t),G&&queueMicrotask(()=>{let e=I.inputRef.current?.value;e!==void 0&&e!==t&&e!==(N.initialValue??``)&&I.commit(e)})}},onKeyDown(e){if(e.currentTarget.tagName===`INPUT`&&e.key===`Enter`){j(!0);let t=e.currentTarget.value,n=e.currentTarget.form;if(n&&n===R.current&&!e.defaultPrevented){let t=e.currentTarget,n=z.current;X.start(0,()=>{z.current===n&&I.commit(t.value)})}else I.commit(t)}}},E,e=>I.getValidationProps(B,e)],stateAttributesMapping:g})}),j=i(),M=k.forwardRef(function(e,t){return(0,j.jsx)(A,{ref:t,...e})}),N=(0,k.createContext)(void 0);function P(e){let t=(0,k.useRef)(void 0);(0,k.useLayoutEffect)(()=>{let n=e.current;if(!n)return;let r=n;function i(){let e=r.matches(`[data-invalid], [data-invalid] *, :has([aria-invalid="true"])`)?`invalid`:r.matches(`[data-success], [data-success] *`)?`success`:`none`,n=t.current;t.current=e,n!==void 0&&n!==e&&e!==`none`&&(r.removeAttribute(`data-entered`),r.offsetWidth,r.setAttribute(`data-entered`,e))}function a(e){e.target===r&&r.removeAttribute(`data-entered`)}i();let o=new MutationObserver(i);return o.observe(r,{attributeFilter:[`aria-invalid`,`data-invalid`,`data-success`],attributes:!0,subtree:!0}),r.addEventListener(`animationend`,a),()=>{o.disconnect(),r.removeEventListener(`animationend`,a)}})}var F;(function(e){e.group=((e={})=>{let t=e.className,n=e.style,r=e.vars,i=r?{...r,...n}:n,a=t?`z_tds_2f_web-9hq2xM0 z_tds_2f_web-9hq2xM1 z_tds_2f_web-9hq2xM2 z_tds_2f_web-9hq2xM3 z_tds_2f_web-9hq2xM4 z_tds_2f_web-9hq2xM5 z_tds_2f_web-9hq2xM6 z_tds_2f_web-9hq2xM7 z_tds_2f_web-9hq2xM8 z_tds_2f_web-9hq2xM9 z_tds_2f_web-9hq2xMa z_tds_2f_web-9hq2xMb z_tds_2f_web-9hq2xMc z_tds_2f_web-9hq2xMd z_tds_2f_web-9hq2xMe z_tds_2f_web-9hq2xMf z_tds_2f_web-9hq2xMg z_tds_2f_web-9hq2xMh z_tds_2f_web-9hq2xMi z_tds_2f_web-9hq2xMj z_tds_2f_web-9hq2xMk z_tds_2f_web-9hq2xMl z_tds_2f_web-9hq2xMm z_tds_2f_web-9hq2xMn z_tds_2f_web-9hq2xMo z_tds_2f_web-9hq2xMp z_tds_2f_web-9hq2xMq z_tds_2f_web-9hq2xMr z_tds_2f_web-9hq2xMs z_tds_2f_web-9hq2xMt z_tds_2f_web-9hq2xMu z_tds_2f_web-9hq2xMv z_tds_2f_web-9hq2xMw z_tds_2f_web-9hq2xMx z_tds_2f_web-9hq2xMy z_tds_2f_web-9hq2xMz z_tds_2f_web-9hq2xM10 z_tds_2f_web-9hq2xM11 z_tds_2f_web-9hq2xM12 z_tds_2f_web-9hq2xM13 z_tds_2f_web-9hq2xM14 z_tds_2f_web-9hq2xM15 z_tds_2f_web-9hq2xM16 z_tds_2f_web-9hq2xM17 z_tds_2f_web-9hq2xM18 z_tds_2f_web-9hq2xM19 z_tds_2f_web-9hq2xM1a z_tds_2f_web-9hq2xM1b z_tds_2f_web-9hq2xM1c z_tds_2f_web-9hq2xM1d z_tds_2f_web-9hq2xM1e z_tds_2f_web-9hq2xM1f z_tds_2f_web-9hq2xM1g z_tds_2f_web-9hq2xM1h z_tds_2f_web-9hq2xM1i z_tds_2f_web-9hq2xM1j z_tds_2f_web-9hq2xM1k z_tds_2f_web-9hq2xM1l z_tds_2f_web-9hq2xM1m z_tds_2f_web-9hq2xM1n z_tds_2f_web-9hq2xM1o z_tds_2f_web-9hq2xM1p z_tds_2f_web-9hq2xM1q z_tds_2f_web-9hq2xM1r z_tds_2f_web-9hq2xM1s `+t:`z_tds_2f_web-9hq2xM0 z_tds_2f_web-9hq2xM1 z_tds_2f_web-9hq2xM2 z_tds_2f_web-9hq2xM3 z_tds_2f_web-9hq2xM4 z_tds_2f_web-9hq2xM5 z_tds_2f_web-9hq2xM6 z_tds_2f_web-9hq2xM7 z_tds_2f_web-9hq2xM8 z_tds_2f_web-9hq2xM9 z_tds_2f_web-9hq2xMa z_tds_2f_web-9hq2xMb z_tds_2f_web-9hq2xMc z_tds_2f_web-9hq2xMd z_tds_2f_web-9hq2xMe z_tds_2f_web-9hq2xMf z_tds_2f_web-9hq2xMg z_tds_2f_web-9hq2xMh z_tds_2f_web-9hq2xMi z_tds_2f_web-9hq2xMj z_tds_2f_web-9hq2xMk z_tds_2f_web-9hq2xMl z_tds_2f_web-9hq2xMm z_tds_2f_web-9hq2xMn z_tds_2f_web-9hq2xMo z_tds_2f_web-9hq2xMp z_tds_2f_web-9hq2xMq z_tds_2f_web-9hq2xMr z_tds_2f_web-9hq2xMs z_tds_2f_web-9hq2xMt z_tds_2f_web-9hq2xMu z_tds_2f_web-9hq2xMv z_tds_2f_web-9hq2xMw z_tds_2f_web-9hq2xMx z_tds_2f_web-9hq2xMy z_tds_2f_web-9hq2xMz z_tds_2f_web-9hq2xM10 z_tds_2f_web-9hq2xM11 z_tds_2f_web-9hq2xM12 z_tds_2f_web-9hq2xM13 z_tds_2f_web-9hq2xM14 z_tds_2f_web-9hq2xM15 z_tds_2f_web-9hq2xM16 z_tds_2f_web-9hq2xM17 z_tds_2f_web-9hq2xM18 z_tds_2f_web-9hq2xM19 z_tds_2f_web-9hq2xM1a z_tds_2f_web-9hq2xM1b z_tds_2f_web-9hq2xM1c z_tds_2f_web-9hq2xM1d z_tds_2f_web-9hq2xM1e z_tds_2f_web-9hq2xM1f z_tds_2f_web-9hq2xM1g z_tds_2f_web-9hq2xM1h z_tds_2f_web-9hq2xM1i z_tds_2f_web-9hq2xM1j z_tds_2f_web-9hq2xM1k z_tds_2f_web-9hq2xM1l z_tds_2f_web-9hq2xM1m z_tds_2f_web-9hq2xM1n z_tds_2f_web-9hq2xM1o z_tds_2f_web-9hq2xM1p z_tds_2f_web-9hq2xM1q z_tds_2f_web-9hq2xM1r z_tds_2f_web-9hq2xM1s`,o=i?{className:a,style:i}:{className:a},s;return s=Object.hasOwn(e,`variant`)?e.variant:void 0,s===void 0&&(s=`default`),s!=null&&(o[`data-variant`]=String(s)),o})})(F||={});var I;(function(e){function t(e){let{appearance:t,className:n,invalid:r=!1,ref:i,size:a,success:o=!1,variant:s,vars:c,...l}=e,u=(0,k.useRef)(null),d=(0,k.useRef)(null),f=R.group({appearance:t,className:n,size:a}),p=(0,k.useMemo)(()=>({control:u,invalid:r}),[r]);return P(d),(0,j.jsx)(N.Provider,{value:p,children:(0,j.jsx)(`div`,{...l,...f,...F.group({className:f.className,style:e.style,variant:s,vars:c}),"data-invalid":r||void 0,"data-success":o||void 0,ref:e=>{d.current=e,typeof i==`function`?i(e):i&&(i.current=e)}})})}e.Group=t;function n(e){let{className:t,onKeyDown:n,ref:r,vars:i,...a}=e,o=(0,k.useContext)(N);return(0,j.jsx)(M,{"aria-invalid":o?.invalid||void 0,...a,...R.control({className:t,style:e.style,vars:i}),onKeyDown:e=>{n?.(e);let t=e.currentTarget;!e.defaultPrevented&&e.key===`Escape`&&t.value&&(t.readOnly||t.parentElement?.querySelector(`:scope > [data-input-clear]:enabled`)&&(L(t),e.preventDefault(),e.stopPropagation()))},ref:e=>{o&&(o.control.current=e),typeof r==`function`?r(e):r&&(r.current=e)}})}e.Control=n;function r(e){let{className:t,vars:n,...r}=e;return(0,j.jsx)(`span`,{...r,...R.prefix({className:t,style:e.style,vars:n})})}e.Prefix=r;function i(e){let{className:t,vars:n,...r}=e;return(0,j.jsx)(`span`,{...r,...R.suffix({className:t,style:e.style,vars:n})})}e.Suffix=i;function a(e){let{children:t,className:n,onClick:r,vars:i,...a}=e,o=(0,k.useContext)(N);return(0,j.jsx)(`button`,{"aria-label":`Clear`,type:`button`,...a,...R.clear({className:n,style:e.style,vars:i}),"data-input-clear":``,onClick:e=>{r?.(e);let t=o?.control.current;!e.defaultPrevented&&t&&(L(t),t.focus())},children:t??(0,j.jsxs)(`svg`,{"aria-hidden":!0,fill:`none`,height:`1em`,viewBox:`0 0 16 16`,width:`1em`,children:[(0,j.jsx)(`path`,{clipRule:`evenodd`,d:`M8 1.33301C11.6817 1.33318 14.666 4.31919 14.666 8.00098C14.6656 11.6824 11.6815 14.6668 8 14.667C4.31837 14.667 1.33345 11.6825 1.33301 8.00098C1.33301 4.31908 4.3181 1.33301 8 1.33301ZM8 2.33398C4.87039 2.33398 2.33301 4.87137 2.33301 8.00098C2.33345 11.1302 4.87066 13.667 8 13.667C11.1292 13.6668 13.6656 11.1301 13.666 8.00098C13.666 4.87147 11.1294 2.33416 8 2.33398Z`,fill:`currentColor`,fillRule:`evenodd`}),(0,j.jsx)(`path`,{d:`M10 6 6 10M6 6l4 4`,stroke:`currentColor`,strokeLinecap:`round`})]})})}e.Clear=a})(I||={});function L(e){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,`value`)?.set?.call(e,``),e.dispatchEvent(new Event(`input`,{bubbles:!0}))}var R;(function(e){e.clear=a({className:`z_tds_2f_web-rmhAEq0 z_tds_2f_web-rmhAEq1 z_tds_2f_web-rmhAEq2 z_tds_2f_web-rmhAEq3 z_tds_2f_web-rmhAEq4 z_tds_2f_web-rmhAEq5 z_tds_2f_web-rmhAEq6 z_tds_2f_web-rmhAEq7 z_tds_2f_web-rmhAEq8 z_tds_2f_web-rmhAEq9 z_tds_2f_web-rmhAEqa z_tds_2f_web-rmhAEqb z_tds_2f_web-rmhAEqc z_tds_2f_web-rmhAEqd z_tds_2f_web-rmhAEqe z_tds_2f_web-rmhAEqf z_tds_2f_web-rmhAEqg z_tds_2f_web-rmhAEqh z_tds_2f_web-rmhAEqi z_tds_2f_web-rmhAEqj z_tds_2f_web-rmhAEqk z_tds_2f_web-rmhAEql z_tds_2f_web-rmhAEqm z_tds_2f_web-rmhAEqn z_tds_2f_web-rmhAEqo z_tds_2f_web-rmhAEqp z_tds_2f_web-rmhAEqq z_tds_2f_web-rmhAEqr z_tds_2f_web-rmhAEqs z_tds_2f_web-rmhAEqt z_tds_2f_web-rmhAEqu z_tds_2f_web-rmhAEqv z_tds_2f_web-rmhAEqw z_tds_2f_web-rmhAEqx z_tds_2f_web-rmhAEqy z_tds_2f_web-rmhAEqz z_tds_2f_web-rmhAEq10 z_tds_2f_web-rmhAEq11 z_tds_2f_web-rmhAEq12 z_tds_2f_web-rmhAEq13 z_tds_2f_web-rmhAEq14 z_tds_2f_web-rmhAEq15`}),e.group=((e={})=>{let t=e.className,n=e.style,r=e.vars,i=r?{...r,...n}:n,a=t?`z_tds_2f_web-rmhAEq16 z_tds_2f_web-rmhAEq17 z_tds_2f_web-rmhAEq18 z_tds_2f_web-rmhAEq19 z_tds_2f_web-rmhAEq1a z_tds_2f_web-rmhAEq1b z_tds_2f_web-rmhAEq1c z_tds_2f_web-rmhAEq1d z_tds_2f_web-rmhAEq1e z_tds_2f_web-rmhAEq1f `+t:`z_tds_2f_web-rmhAEq16 z_tds_2f_web-rmhAEq17 z_tds_2f_web-rmhAEq18 z_tds_2f_web-rmhAEq19 z_tds_2f_web-rmhAEq1a z_tds_2f_web-rmhAEq1b z_tds_2f_web-rmhAEq1c z_tds_2f_web-rmhAEq1d z_tds_2f_web-rmhAEq1e z_tds_2f_web-rmhAEq1f`,o=i?{className:a,style:i}:{className:a},s;return s=Object.hasOwn(e,`appearance`)?e.appearance:void 0,s===void 0&&(s=`base`),s!=null&&(o[`data-appearance`]=String(s)),s=Object.hasOwn(e,`size`)?e.size:void 0,s===void 0&&(s=`medium`),s!=null&&(o[`data-size`]=String(s)),o}),e.control=a({className:`z_tds_2f_web-rmhAEq1g z_tds_2f_web-rmhAEq1h z_tds_2f_web-rmhAEq1i z_tds_2f_web-rmhAEq1j z_tds_2f_web-rmhAEq1k z_tds_2f_web-rmhAEq1l z_tds_2f_web-rmhAEq1m z_tds_2f_web-rmhAEq1n z_tds_2f_web-rmhAEq1o z_tds_2f_web-rmhAEq1p z_tds_2f_web-rmhAEq1q z_tds_2f_web-rmhAEq1r z_tds_2f_web-rmhAEq1s z_tds_2f_web-rmhAEq1t z_tds_2f_web-rmhAEq1u`}),e.prefix=a({className:`z_tds_2f_web-rmhAEq0 z_tds_2f_web-rmhAEq1v z_tds_2f_web-rmhAEq1w z_tds_2f_web-rmhAEq1x z_tds_2f_web-rmhAEq1y z_tds_2f_web-rmhAEq1z z_tds_2f_web-rmhAEq20 z_tds_2f_web-rmhAEq21`}),e.suffix=a({className:`z_tds_2f_web-rmhAEq0 z_tds_2f_web-rmhAEq1v z_tds_2f_web-rmhAEq1y z_tds_2f_web-rmhAEq21 z_tds_2f_web-rmhAEq1w z_tds_2f_web-rmhAEq1x z_tds_2f_web-rmhAEq1z z_tds_2f_web-rmhAEq20`})})(R||={});function z(e){let{children:t,className:n,orientation:r,render:i,vars:a,...o}=e;return t!=null&&typeof t!=`boolean`&&t!==``&&r!==`vertical`?(0,j.jsx)(B,{...e}):(0,j.jsx)(w,{...o,...V.separator({className:n,style:e.style,vars:a}),orientation:r,render:i})}function B(e){let{children:t,className:n,orientation:r,ref:i,render:a,vars:o,...s}=e;return c({defaultTagName:`div`,props:{...s,...V.labeled({className:n,style:e.style,vars:o}),children:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{"aria-hidden":`true`,...V.rule()}),(0,j.jsx)(`span`,{...V.label(),children:t}),(0,j.jsx)(`span`,{"aria-hidden":`true`,...V.rule()})]})},ref:i,render:a,state:{orientation:`horizontal`}})}var V;(function(e){e.label=a({className:`z_tds_2f_web-3KCWGI0 z_tds_2f_web-3KCWGI1 z_tds_2f_web-3KCWGI2 z_tds_2f_web-3KCWGI3 z_tds_2f_web-3KCWGI4 z_tds_2f_web-3KCWGI5 z_tds_2f_web-3KCWGI6`}),e.labeled=a({className:`z_tds_2f_web-3KCWGI7 z_tds_2f_web-3KCWGI8 z_tds_2f_web-3KCWGI9 z_tds_2f_web-3KCWGIa z_tds_2f_web-3KCWGI1 z_tds_2f_web-3KCWGIb`}),e.rule=a({className:`z_tds_2f_web-3KCWGIc z_tds_2f_web-3KCWGId z_tds_2f_web-3KCWGIe`}),e.separator=a({className:`z_tds_2f_web-3KCWGI8 z_tds_2f_web-3KCWGIf z_tds_2f_web-3KCWGI1 z_tds_2f_web-3KCWGIg z_tds_2f_web-3KCWGIh z_tds_2f_web-3KCWGIi z_tds_2f_web-3KCWGIj z_tds_2f_web-3KCWGIk z_tds_2f_web-3KCWGIl z_tds_2f_web-3KCWGIm z_tds_2f_web-3KCWGIn z_tds_2f_web-3KCWGIo z_tds_2f_web-3KCWGIp z_tds_2f_web-3KCWGIq z_tds_2f_web-3KCWGIr z_tds_2f_web-3KCWGIs`})})(V||={});function H(e){return(0,j.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,j.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M14.667 11.7666C14.667 11.945 14.6674 12.1089 14.6563 12.2451C14.6447 12.3871 14.6182 12.5428 14.54 12.6963C14.4282 12.9157 14.2496 13.0942 14.0303 13.2061C13.8769 13.2842 13.7211 13.3107 13.5791 13.3223C13.4429 13.3334 13.2789 13.333 13.1006 13.333H2.90039C2.72207 13.333 2.55808 13.3334 2.42188 13.3223C2.27982 13.3107 2.12421 13.2842 1.9707 13.2061C1.75121 13.0942 1.5728 12.9158 1.46094 12.6963C1.38271 12.5428 1.35633 12.3872 1.34473 12.2451C1.3336 12.1089 1.33399 11.945 1.33399 11.7666V4.2334C1.33399 4.05501 1.3336 3.89112 1.34473 3.75488C1.35633 3.6128 1.38271 3.45725 1.46094 3.30371C1.5728 3.08422 1.75121 2.90579 1.9707 2.79395C2.12421 2.71575 2.27982 2.68934 2.42188 2.67774C2.55808 2.66662 2.72207 2.66699 2.90039 2.66699H13.1006C13.2789 2.66699 13.4429 2.66661 13.5791 2.67774C13.7211 2.68936 13.8769 2.71578 14.0303 2.79395C14.2496 2.90581 14.4282 3.08432 14.54 3.30371C14.6182 3.45719 14.6447 3.61285 14.6563 3.75488C14.6674 3.89111 14.667 4.05503 14.667 4.2334V11.7666ZM13.667 4.67578L8.73926 8.70801C8.30949 9.05959 7.69152 9.05954 7.26172 8.70801L2.33399 4.67578V11.7666C2.33399 11.9615 2.33379 12.078 2.34082 12.1641C2.34738 12.2441 2.35712 12.2531 2.35156 12.2422C2.36754 12.2735 2.39345 12.2994 2.42481 12.3154C2.41388 12.3098 2.42274 12.3196 2.50293 12.3262C2.58901 12.3332 2.70546 12.333 2.90039 12.333H13.1006C13.2951 12.333 13.4111 12.3331 13.4971 12.3262C13.5769 12.3196 13.5868 12.31 13.5762 12.3154C13.6074 12.2994 13.6325 12.2735 13.6484 12.2422C13.6507 12.2339 13.6553 12.2113 13.6592 12.1641C13.6662 12.078 13.667 11.9615 13.667 11.7666V4.67578ZM2.6836 3.66992L7.89453 7.93457C7.95583 7.98468 8.04411 7.98458 8.10547 7.93457L13.3154 3.66992C13.2562 3.66925 13.186 3.66699 13.1006 3.66699H2.90039C2.81419 3.66699 2.7432 3.66923 2.6836 3.66992Z`,fill:`currentColor`})})}function U(e){let t=e.heading??`h1`,{email:n}=e,r=(0,k.useId)();return(0,j.jsxs)(E,{className:G.column?`z_tempo_2d_id-gSRY5ue z_tempo_2d_id-gSRY5uf`:G.column().className,gap:e.compact?`24`:`32`,children:[(0,j.jsxs)(E,{...e.compact?G.headerCompact?{className:`z_tempo_2d_id-gSRY5uu z_tempo_2d_id-gSRY5uv`}:G.headerCompact():G.header?{className:`z_tempo_2d_id-gSRY5ut`}:G.header(),align:e.compact?`start`:`center`,gap:`8`,render:(0,j.jsx)(`header`,{}),children:[e.compact?null:(0,j.jsx)(C,{className:G.avatar?`z_tempo_2d_id-gSRY5u1 z_tempo_2d_id-gSRY5u2 z_tempo_2d_id-gSRY5u3 z_tempo_2d_id-gSRY5u4 z_tempo_2d_id-gSRY5u5`:G.avatar().className,"aria-hidden":!0,children:n?(0,j.jsx)(H,{}):e.confirm?(0,j.jsx)(O,{}):(0,j.jsx)(W,{})}),(0,j.jsx)(t,{...e.compact?G.titleCompact?{className:`z_tempo_2d_id-gSRY5u13 z_tempo_2d_id-gSRY5u19 z_tempo_2d_id-gSRY5u1a z_tempo_2d_id-gSRY5u1b z_tempo_2d_id-gSRY5u1c z_tempo_2d_id-gSRY5u1d`}:G.titleCompact():G.title?{className:`z_tempo_2d_id-gSRY5u13 z_tempo_2d_id-gSRY5u14 z_tempo_2d_id-gSRY5u15 z_tempo_2d_id-gSRY5u16 z_tempo_2d_id-gSRY5u17 z_tempo_2d_id-gSRY5u18`}:G.title(),children:n?`Check your email`:e.confirm?`Confirm it’s you`:e.linking?`Verify your email`:`Welcome to Tempo`}),(()=>{if(n)return(0,j.jsxs)(`p`,{className:G.description?`z_tempo_2d_id-gSRY5ug z_tempo_2d_id-gSRY5uh z_tempo_2d_id-gSRY5ui z_tempo_2d_id-gSRY5uj z_tempo_2d_id-gSRY5uk z_tempo_2d_id-gSRY5ul z_tempo_2d_id-gSRY5um z_tempo_2d_id-gSRY5un z_tempo_2d_id-gSRY5uo z_tempo_2d_id-gSRY5up z_tempo_2d_id-gSRY5uq z_tempo_2d_id-gSRY5ur z_tempo_2d_id-gSRY5us`:G.description().className,children:[`Enter the 6-digit code sent to `,(0,j.jsx)(`strong`,{children:n}),`.`,e.linking?` Your passkey then confirms the sign-in.`:null]});if(e.confirm)return(0,j.jsxs)(`p`,{className:G.description?`z_tempo_2d_id-gSRY5ug z_tempo_2d_id-gSRY5uh z_tempo_2d_id-gSRY5ui z_tempo_2d_id-gSRY5uj z_tempo_2d_id-gSRY5uk z_tempo_2d_id-gSRY5ul z_tempo_2d_id-gSRY5um z_tempo_2d_id-gSRY5un z_tempo_2d_id-gSRY5uo z_tempo_2d_id-gSRY5up z_tempo_2d_id-gSRY5uq z_tempo_2d_id-gSRY5ur z_tempo_2d_id-gSRY5us`:G.description().className,children:[`This step needs a recent sign-in. Confirm the sign-in of`,` `,(0,j.jsx)(`strong`,{children:e.confirm}),` to continue.`]});if(e.linking)return(0,j.jsx)(`p`,{className:G.description?`z_tempo_2d_id-gSRY5ug z_tempo_2d_id-gSRY5uh z_tempo_2d_id-gSRY5ui z_tempo_2d_id-gSRY5uj z_tempo_2d_id-gSRY5uk z_tempo_2d_id-gSRY5ul z_tempo_2d_id-gSRY5um z_tempo_2d_id-gSRY5un z_tempo_2d_id-gSRY5uo z_tempo_2d_id-gSRY5up z_tempo_2d_id-gSRY5uq z_tempo_2d_id-gSRY5ur z_tempo_2d_id-gSRY5us`:G.description().className,children:`Enter your email to finish signing in with your passkey.`});if(!e.request)return e.device?(0,j.jsx)(`p`,{className:G.description?`z_tempo_2d_id-gSRY5ug z_tempo_2d_id-gSRY5uh z_tempo_2d_id-gSRY5ui z_tempo_2d_id-gSRY5uj z_tempo_2d_id-gSRY5uk z_tempo_2d_id-gSRY5ul z_tempo_2d_id-gSRY5um z_tempo_2d_id-gSRY5un z_tempo_2d_id-gSRY5uo z_tempo_2d_id-gSRY5up z_tempo_2d_id-gSRY5uq z_tempo_2d_id-gSRY5ur z_tempo_2d_id-gSRY5us`:G.description().className,children:`Sign in to approve a device.`}):(0,j.jsx)(`p`,{className:G.description?`z_tempo_2d_id-gSRY5ug z_tempo_2d_id-gSRY5uh z_tempo_2d_id-gSRY5ui z_tempo_2d_id-gSRY5uj z_tempo_2d_id-gSRY5uk z_tempo_2d_id-gSRY5ul z_tempo_2d_id-gSRY5um z_tempo_2d_id-gSRY5un z_tempo_2d_id-gSRY5uo z_tempo_2d_id-gSRY5up z_tempo_2d_id-gSRY5uq z_tempo_2d_id-gSRY5ur z_tempo_2d_id-gSRY5us`:G.description().className,children:`Log in or sign up to get started.`});let{host:t}=e.request,r=(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(`span`,{className:G.app?`z_tempo_2d_id-3w2jki4`:G.app().className,children:[e.request.verified?(0,j.jsx)(`strong`,{children:e.request.app}):(0,j.jsx)(`bdi`,{children:e.request.app}),e.request.verified?(0,j.jsxs)(j.Fragment,{children:[` `,(0,j.jsxs)(x.Root,{children:[(0,j.jsx)(x.Trigger,{delay:150,render:(0,j.jsx)(D,{className:G.badge?`z_tempo_2d_id-gSRY5u6 z_tempo_2d_id-gSRY5u7 z_tempo_2d_id-gSRY5u8 z_tempo_2d_id-gSRY5u9 z_tempo_2d_id-gSRY5ua z_tempo_2d_id-gSRY5ub z_tempo_2d_id-gSRY5uc z_tempo_2d_id-gSRY5ud`:G.badge().className,"aria-label":`Verified`,role:`img`,tabIndex:0})}),(0,j.jsx)(x.Popup,{children:`Verified app`})]})]}):null]}),t&&t!==e.request.app?` (${t})`:null]});return e.request.key?(0,j.jsxs)(`p`,{className:G.description?`z_tempo_2d_id-gSRY5ug z_tempo_2d_id-gSRY5uh z_tempo_2d_id-gSRY5ui z_tempo_2d_id-gSRY5uj z_tempo_2d_id-gSRY5uk z_tempo_2d_id-gSRY5ul z_tempo_2d_id-gSRY5um z_tempo_2d_id-gSRY5un z_tempo_2d_id-gSRY5uo z_tempo_2d_id-gSRY5up z_tempo_2d_id-gSRY5uq z_tempo_2d_id-gSRY5ur z_tempo_2d_id-gSRY5us`:G.description().className,children:[`Continue to let `,r,` use your Tempo Account.`]}):(0,j.jsxs)(`p`,{className:G.description?`z_tempo_2d_id-gSRY5ug z_tempo_2d_id-gSRY5uh z_tempo_2d_id-gSRY5ui z_tempo_2d_id-gSRY5uj z_tempo_2d_id-gSRY5uk z_tempo_2d_id-gSRY5ul z_tempo_2d_id-gSRY5um z_tempo_2d_id-gSRY5un z_tempo_2d_id-gSRY5uo z_tempo_2d_id-gSRY5up z_tempo_2d_id-gSRY5uq z_tempo_2d_id-gSRY5ur z_tempo_2d_id-gSRY5us`:G.description().className,children:[`Sign in to continue to `,r,`.`]})})()]}),e.request?.key&&!n&&!e.linking&&!e.confirm?(0,j.jsx)(S,{heading:e.heading===`h4`?`h5`:`h2`,keyAuthorization:e.request.key}):null,n?(0,j.jsxs)(E,{gap:`24`,render:(0,j.jsx)(`form`,{method:`post`,onSubmit:e.onSubmitCode}),children:[(0,j.jsx)(T,{"aria-describedby":`${r}-error`,"aria-label":`Code`,autoFocus:e.autoFocus,autoSubmit:!0,characters:`digits`,invalid:e.invalid,length:6,name:`code`,readOnly:e.verifying||e.verified,required:!0,success:e.verified}),e.error?(0,j.jsxs)(b,{id:`${r}-error`,intent:`negative`,children:[(0,j.jsx)(b.Icon,{}),(0,j.jsx)(b.Content,{children:e.error})]}):null,(0,j.jsxs)(E,{align:`center`,gap:`4`,children:[(0,j.jsx)(s,{disabled:e.resend!==`idle`||e.verifying||e.verified,onClick:e.onResend,variant:`tertiary`,children:e.resend===`pending`?`Sending…`:e.resend===`sent`?`Code sent`:`Resend code`}),(0,j.jsx)(s,{disabled:e.verifying||e.verified,onClick:e.onChangeEmail,variant:`tertiary`,children:e.confirm?`Back`:`Use a different email`}),(0,j.jsx)(`p`,{className:G.status?`z_tempo_2d_id-3w2jki0 z_tempo_2d_id-3w2jki1 z_tempo_2d_id-3w2jki2 z_tempo_2d_id-3w2jki3 z_tempo_2d_id-3w2jki4 z_tempo_2d_id-3w2jki5`:G.status().className,"aria-live":`polite`,role:`status`,children:(()=>{if(e.resend===`pending`)return`Sending a new code.`;if(e.resend===`sent`)return`A new code was sent to ${n}.`})()})]})]}):e.confirm?(0,j.jsxs)(E,{gap:`12`,children:[e.error?(0,j.jsxs)(b,{id:`${r}-error`,intent:`negative`,children:[(0,j.jsx)(b.Icon,{}),(0,j.jsx)(b.Content,{children:e.error})]}):null,e.onPasskey?(0,j.jsxs)(s,{size:`medium`,disabled:e.sending,loading:e.passkeyPending,onClick:e.onPasskey,children:[(0,j.jsx)(O,{}),`Confirm with passkey`]}):null,(0,j.jsxs)(E,{render:(0,j.jsx)(`form`,{method:`post`,onSubmit:e.onSubmitEmail}),children:[(0,j.jsx)(`input`,{name:`email`,type:`hidden`,value:e.confirm}),(0,j.jsxs)(s,{size:`medium`,disabled:e.passkeyPending,loading:e.sending,type:`submit`,variant:e.onPasskey?`secondary`:`primary`,children:[(0,j.jsx)(H,{}),`Email me a code`]})]}),e.onCancel?(0,j.jsx)(s,{className:G.startOver?`z_tempo_2d_id-gSRY5ux`:G.startOver().className,onClick:e.onCancel,variant:`tertiary`,children:`Cancel`}):null]}):e.signedIn?(0,j.jsxs)(E,{gap:`12`,children:[e.error?(0,j.jsxs)(b,{id:`${r}-error`,intent:`negative`,children:[(0,j.jsx)(b.Icon,{}),(0,j.jsx)(b.Content,{children:e.error})]}):null,(0,j.jsxs)(s,{loading:e.signedIn.continuing,onClick:e.signedIn.onContinue,size:`medium`,children:[`Continue as `,e.signedIn.email]}),(0,j.jsx)(s,{disabled:e.signedIn.continuing,onClick:e.signedIn.onSwitch,size:`medium`,variant:`secondary`,children:`Use another account`})]}):(0,j.jsxs)(E,{gap:`12`,children:[(0,j.jsxs)(E,{gap:`12`,render:(0,j.jsx)(`form`,{method:`post`,onSubmit:e.onSubmitEmail}),children:[(0,j.jsx)(I.Group,{invalid:e.invalid,children:(0,j.jsx)(I.Control,{"aria-describedby":`${r}-error`,"aria-label":`Email`,autoComplete:`email`,"data-1p-ignore":!0,id:`${r}-email`,name:`email`,placeholder:`Email address`,required:!0,type:`email`})}),e.error?(0,j.jsxs)(b,{id:`${r}-error`,intent:`negative`,children:[(0,j.jsx)(b.Icon,{}),(0,j.jsx)(b.Content,{children:e.error})]}):null,(0,j.jsx)(s,{size:`medium`,disabled:e.passkeyPending,loading:e.sending,type:`submit`,children:`Continue with email`})]}),e.onPasskey&&!e.linking?(0,j.jsx)(z,{className:G.rule?`z_tempo_2d_id-gSRY5uw`:G.rule().className}):null,e.onPasskey&&!e.linking?(0,j.jsxs)(s,{size:`medium`,disabled:e.sending,loading:e.passkeyPending,onClick:e.onPasskey,variant:`secondary`,children:[(0,j.jsx)(O,{}),`Continue with passkey`]}):null,e.linking&&e.onStartOver?(0,j.jsx)(s,{className:G.startOver?`z_tempo_2d_id-gSRY5ux`:G.startOver().className,onClick:e.onStartOver,variant:`tertiary`,children:`Start over`}):null]})]})}function W(){return(0,j.jsx)(`svg`,{fill:`none`,height:`1em`,viewBox:`15.4 14.5 33 33`,width:`1em`,children:(0,j.jsx)(`path`,{d:`M29.689 47H22.3877L29.1548 26.12H20.5L22.3877 20H46.5L44.6123 26.12H36.4205L29.689 47Z`,fill:`currentColor`})})}var G;(function(e){e.app=1,e.avatar=1,e.badge=1,e.column=1,e.description=1,e.header=1,e.headerCompact=1,e.rule=1,e.startOver=1,e.status=1,e.title=1,e.titleCompact=1})(G||={});export{H as n,U as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{B as t,C as n,F as r,G as i,H as a,I as o,U as s,V as c,X as l,Y as u,Z as d,c as f,d as p,f as m,n as h,s as g,z as _}from"./zyzz.config-B1viQ4-F.js";import{G as v}from"./FloatingPortalLite-Bvx243kr.js";import{c as ee,i as y,n as te,o as ne,p as re,r as ie,s as ae,t as oe,u as b}from"./useRegisterFieldControl-Df7pkCLY.js";import{D as se,P as x,f as ce}from"./composite-BROYFUD6.js";import{$ as le,Q as S,t as ue}from"./useValueChanged-DTX7LKFt.js";import{t as de}from"./Check-Dzncy3Z6.js";import{t as C}from"./Alert-C3aAPp1-.js";import{a as fe,i as w,n as T,o as E,r as D,t as O}from"./RadioGroup-D9W7CX7k.js";import{n as k}from"./SignIn-DUnb3q23.js";import{t as pe}from"./IconTile-U61I4u7J.js";import{t as A}from"./Stack-BOcRBVsr.js";import{t as me}from"./ArrowUp-BRcRtTj_.js";import{t as he}from"./Fingerprint-DIqTuY88.js";var j=e(d(),1),M=l();function ge(e,t,n=Object.is){let{length:r}=e;if(r!==t.length)return!1;for(let i=0;i<r;i+=1)if(!n(e[i],t[i]))return!1;return!0}function _e(e){if(!e)return null;for(let t of e.elements){let e=t.tagName;if(e===`BUTTON`||e===`INPUT`){let e=t;if(e.type===`submit`)return e}}return null}var N=`data-checked`,P=`data-unchecked`;function ve(e){return{checked(t){return e.indeterminate?{}:t?{[N]:``}:{[P]:``}},...b}}var F=j.createContext(void 0);function ye(){return j.useContext(F)}var be=j.createContext(void 0);function I(){let e=j.useContext(be);if(e===void 0)throw Error(t(14));return e}var xe=`data-parent`,L=j.forwardRef(function(e,t){let{checked:i,className:a,defaultChecked:l=!1,"aria-labelledby":u,disabled:d=!1,form:h,id:v,indeterminate:b=!1,inputRef:ce,name:S,onCheckedChange:de,parent:C=!1,readOnly:w=!1,render:T,required:E=!1,uncheckedValue:D,value:O,nativeButton:k=!1,style:pe,...A}=e,{clearErrors:me}=ae(),{disabled:he,name:ge,setDirty:N,setFilled:P,setTouched:F,state:I,validationMode:L,validityData:R,validation:Se}=ee(),Ce=fe(),{labelId:we,registerControlId:z,getDescriptionProps:B}=ne(),V=ye(),H=V?.allValues===void 0?void 0:V.parent,U=H!==void 0,W=he||Ce.disabled||V?.disabled||d,G=ge??S,K=O??G,Te=le(),Ee=V?.registerControlId!==z,De=ie({id:v||void 0,enabled:Ee}),Oe=k?De:Te,ke={};U&&(C?ke=H.getParentProps():K!==void 0&&(ke=H.getChildProps(K)));let{checked:Ae=i,indeterminate:je=b,onCheckedChange:Me,...Ne}=ke,Pe=V?.value,q=j.useRef(null),Fe=te(W,q),{getButtonProps:Ie,buttonRef:Le}=p({disabled:W,native:k}),J=V?.validation??Se,[Y,Re]=re({controlled:K!==void 0&&Pe!==void 0&&!C?Pe.includes(K):Ae,default:l,name:`Checkbox`,state:`checked`}),ze=U?!!Ae:Y,X=U&&je||b;oe(q,Te,Y,void 0,!V&&!W,S);let Z=H?.registerChildId,Q=j.useRef(null),Be=J.registerInput,Ve=V?K:void 0,He=j.useCallback(e=>Be(e,{controlRef:q,value:Ve}),[Be,Ve]),Ue=_(ce,Q,C?void 0:He),We=y(u,we,Q,!k,De,A[`aria-label`]);c(()=>{Q.current&&(Q.current.indeterminate=X),V||P(Y)},[Y,X,V,P]),ue(Y,()=>{V||(me(G),N(Y!==R.initialValue),J.change(Y))});let Ge=o({checked:Y,disabled:W,form:h,name:C?void 0:G,id:k?void 0:De,required:E,ref:Ue,style:G?f:g,tabIndex:-1,type:`checkbox`,"aria-hidden":!0,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(w){e.preventDefault();return}let t=e.currentTarget.checked,n=x(se,e.nativeEvent);if(de?.(t,n),!n.isCanceled&&(Me?.(t,n),!n.isCanceled&&(Re(t),K!==void 0&&V!==void 0&&!C&&!U))){let e=t?[...V.value,K]:V.value.filter(e=>e!==K);V.setValue(e,n)}},onClick(e){e.stopPropagation()},onFocus(){q.current?.focus()}},O===void 0?s:{value:(V?Y&&O:O)||``},B,e=>J.getValidationProps(W,e));j.useEffect(()=>{if(!H||K===void 0)return;let e=H.disabledStatesRef.current;return e.set(K,W),()=>{e.delete(K)}},[H,W,K]);let Ke=j.useMemo(()=>({...I,checked:ze,disabled:W,readOnly:w,required:E,indeterminate:X}),[I,ze,W,w,E,X]),qe=ve(Ke),Je=r(`span`,e,{state:Ke,ref:[Le,q,t],props:[{id:Oe,role:`checkbox`,"aria-checked":X?`mixed`:ze,"aria-readonly":w||void 0,"aria-required":E||void 0,"aria-labelledby":We,[xe]:C?``:void 0,onFocus(){Fe(!0)},onBlur(){let e=Q.current;e&&(F(!0),Fe(!1),L===`onBlur`&&J.commit(V?Pe:e.checked))},onKeyDown(e){if(e.key!==`Enter`||(e.preventBaseUIHandler(),e.defaultPrevented))return;let t=Q.current?.form??null,r=e.currentTarget,i=e.nativeEvent,a=e.preventDefault,o=i.preventDefault,s=!1;e.preventDefault=()=>{s=!0,a.call(e)},i.preventDefault=()=>{s=!0,o.call(i)},o.call(i),n(r).queueMicrotask(()=>{e.preventDefault=a,i.preventDefault=o,s||_e(t)?.click()})},onClick(e){if(w||W)return;e.preventDefault();let t=Q.current;t&&m(t,e)}},A,Ne,Ie,B,e=>J.getValidationProps(W,e)],stateAttributesMapping:qe}),$=Je.props.id;return c(()=>{if(Z&&!C&&K!==void 0&&$!==void 0)return Z(K,$)},[Z,C,K,$]),(0,M.jsxs)(be.Provider,{value:Ke,children:[Je,!Y&&!V&&G&&!C&&D!==void 0&&(0,M.jsx)(`input`,{type:`hidden`,form:h,name:G,value:D,disabled:W}),(0,M.jsx)(`input`,{...Ge,suppressHydrationWarning:!0})]})}),R=j.forwardRef(function(e,t){let{render:n,className:i,style:a,keepMounted:o=!1,...s}=e,c=I(),l=c.checked||c.indeterminate,{mounted:u,transitionStatus:d,setMounted:f}=S(l),p=j.useRef(null),m={...c,transitionStatus:d};v({batch:!0,enabled:!l,open:l,ref:p,onComplete(){l||f(!1)}});let h={...ve(c),...ce},g=o||u,_=r(`span`,e,{ref:[t,p],state:m,stateAttributesMapping:h,props:s});return g?_:null});function Se(e){let{allValues:t=a,value:n,onValueChange:r}=e,o=j.useRef(n),s=j.useRef(new Map),[c,l]=j.useState(`mixed`),[u,d]=j.useState(()=>({registry:new Map})),f=n.length===t.length,p=n.length!==t.length&&n.length>0,m=i(r),h=i((e,t)=>{let n=u.registry;return n.set(e,(n.get(e)??a).concat(t)),d({registry:n}),()=>{let r=(n.get(e)??a).filter(e=>e!==t);r.length===0?n.delete(e):n.set(e,r),d({registry:n})}}),g=j.useCallback(()=>({indeterminate:p,checked:f,"aria-controls":t.flatMap(e=>u.registry.get(e)??a).join(` `)||void 0,onCheckedChange(e,r){let i=o.current,a=t.filter(e=>s.current.get(e)&&i.includes(e)),u=t.filter(e=>!s.current.get(e)||i.includes(e));if(i.length===u.length||i.length===0){n.length===u.length?m(a,r):m(u,r);return}let d=`mixed`,f=i;c===`mixed`?(d=`on`,f=u):c===`on`&&(d=`off`,f=a),m(f,r),r.isCanceled||l(d)}}),[t,f,u,p,m,c,n.length]),_=j.useCallback(e=>({checked:n.includes(e),onCheckedChange(t,r){let i=n.slice();t?i.push(e):i.splice(i.indexOf(e),1),m(i,r),r.isCanceled||(o.current=i,l(`mixed`))}}),[m,n]);return j.useMemo(()=>({getParentProps:g,getChildProps:_,registerChildId:h,disabledStatesRef:s}),[g,_,h])}var Ce=j.forwardRef(function(e,t){let{allValues:n,className:o,defaultValue:s,disabled:l=!1,id:u,onValueChange:d,render:f,value:p,style:m,...h}=e,{disabled:g,name:_,state:v,validation:y,setFilled:te,setDirty:se,validityData:x}=ee(),{labelId:ce,registerControlId:S,getDescriptionProps:de}=ne(),{clearErrors:C,elementRef:fe}=ae(),w=g||l,[T,D]=re({controlled:p,default:s??a,name:`CheckboxGroup`,state:`value`}),O=i((e,t)=>{d?.(e,t),!t.isCanceled&&D(e)}),k=Se({allValues:n,value:T,onValueChange:O});ie({id:null});let pe=le(u),A=y.getInputControl,me=j.useMemo(()=>({get current(){return A()}}),[A]),he=i(()=>{let e=fe.current;if(!e)return T;let t=new Set;for(let[n,r]of y.registeredInputs)r.value!==void 0&&n.checked&&E(n,e)&&t.add(r.value);return T.filter(e=>t.has(e))});oe(me,pe,T,he,!!_&&!w,_),c(()=>{te(T.length>0)},[T,te]),ue(T,()=>{_&&C(_);let e=Array.isArray(x.initialValue)?x.initialValue:a;se(!ge(T,e)),y.change(T)});let _e={...v,disabled:w},N=j.useMemo(()=>({allValues:n,value:T,setValue:O,parent:k,disabled:w,validation:y,registerControlId:S}),[n,T,O,k,w,y,S]),P=r(`div`,e,{state:_e,ref:t,props:[{id:u,role:`group`,"aria-labelledby":ce},h,de],stateAttributesMapping:b});return(0,M.jsx)(F.Provider,{value:N,children:P})}),we=j.forwardRef(function(e,t){let{render:n,className:i,style:a,keepMounted:o=!1,...s}=e,c=D(),l=c.checked,{mounted:u,transitionStatus:d,setMounted:f}=S(l),p={...c,transitionStatus:d},m=j.useRef(null),h=o||u,g=r(`span`,e,{ref:[t,m],state:p,props:s,stateAttributesMapping:w});return v({batch:!0,enabled:!l,open:l,ref:m,onComplete(){l||f(!1)}}),h?g:null}),z;(function(e){function t(e){let{children:t,className:n,vars:r,...i}=e;return(0,M.jsx)(`button`,{type:`button`,...i,...B.tile({className:n,style:e.style,vars:r}),children:(0,M.jsx)(`span`,{...B.content(),children:t})})}e.Button=t;function n(e){let{className:t,size:n,vars:r,...i}=e;return(0,M.jsx)(`div`,{role:`group`,...i,...B.group({className:t,size:n,style:e.style,vars:r})})}e.ButtonGroup=n;function r(e){let{checked:t,children:n,className:r,defaultChecked:i,disabled:a,inputRef:o,name:s,onCheckedChange:c,readOnly:l,required:u,value:d,vars:f,...p}=e;return(0,M.jsxs)(`label`,{...p,...B.tile({className:r,style:e.style,vars:f}),children:[(0,M.jsx)(`span`,{...B.content(),children:n}),(0,M.jsx)(L,{checked:t,defaultChecked:i,disabled:a,inputRef:o,name:s,onCheckedChange:c,readOnly:l,required:u,value:d,...B.checkbox(),children:(0,M.jsx)(R,{...B.check(),children:(0,M.jsx)(de,{})})})]})}e.Checkbox=r;function i(e){let{className:t,size:n,vars:r,...i}=e;return(0,M.jsx)(Ce,{...i,...B.group({className:t,size:n,style:e.style,vars:r})})}e.CheckboxGroup=i;function a(e){let{className:t,vars:n,...r}=e;return(0,M.jsx)(`span`,{...r,"data-choicebox-description":``,...B.description({className:t,style:e.style,vars:n})})}e.Description=a;function o(e){let{className:t,vars:n,...r}=e;return(0,M.jsx)(`span`,{"aria-hidden":`true`,...r,"data-choicebox-icon":``,...B.icon({className:t,style:e.style,vars:n})})}e.Icon=o;function s(e){let{children:t,className:n,disabled:r,inputRef:i,readOnly:a,required:o,value:s,vars:c,...l}=e;return(0,M.jsxs)(`label`,{...l,...B.tile({className:n,style:e.style,vars:c}),children:[(0,M.jsx)(`span`,{...B.content(),children:t}),(0,M.jsx)(T,{disabled:r,inputRef:i,readOnly:a,required:o,value:s,...B.radio(),children:(0,M.jsx)(we,{...B.dot()})})]})}e.Radio=s;function c(e){let{className:t,size:n,vars:r,...i}=e;return(0,M.jsx)(O,{...i,...B.group({className:t,size:n,style:e.style,vars:r})})}e.RadioGroup=c;function l(e){let{className:t,vars:n,...r}=e;return(0,M.jsx)(`span`,{...r,"data-choicebox-title":``,...B.title({className:t,style:e.style,vars:n})})}e.Title=l})(z||={});var B;(function(e){e.check=u({className:`z_tds_2f_web-l2ZjSL0 z_tds_2f_web-l2ZjSL1 z_tds_2f_web-l2ZjSL2 z_tds_2f_web-l2ZjSL3 z_tds_2f_web-l2ZjSL4 z_tds_2f_web-l2ZjSL5 z_tds_2f_web-l2ZjSL6 z_tds_2f_web-l2ZjSL7 z_tds_2f_web-l2ZjSL8 z_tds_2f_web-l2ZjSL9 z_tds_2f_web-l2ZjSLa z_tds_2f_web-l2ZjSLb`}),e.checkbox=u({className:`z_tds_2f_web-l2ZjSLc z_tds_2f_web-l2ZjSLd z_tds_2f_web-l2ZjSLe z_tds_2f_web-l2ZjSLf z_tds_2f_web-l2ZjSLg z_tds_2f_web-l2ZjSLh z_tds_2f_web-l2ZjSLi z_tds_2f_web-l2ZjSL0 z_tds_2f_web-l2ZjSLj z_tds_2f_web-l2ZjSLk z_tds_2f_web-l2ZjSLl z_tds_2f_web-l2ZjSLm z_tds_2f_web-l2ZjSLn z_tds_2f_web-l2ZjSLo z_tds_2f_web-l2ZjSLp z_tds_2f_web-l2ZjSLq z_tds_2f_web-l2ZjSLr z_tds_2f_web-l2ZjSLs z_tds_2f_web-l2ZjSLt`}),e.content=u({className:`z_tds_2f_web-l2ZjSLu z_tds_2f_web-l2ZjSLv z_tds_2f_web-l2ZjSLw z_tds_2f_web-l2ZjSLx z_tds_2f_web-l2ZjSLy z_tds_2f_web-l2ZjSLz z_tds_2f_web-l2ZjSL10 z_tds_2f_web-l2ZjSL11 z_tds_2f_web-l2ZjSL12 z_tds_2f_web-l2ZjSL13`}),e.description=u({className:`z_tds_2f_web-l2ZjSL14 z_tds_2f_web-l2ZjSL15 z_tds_2f_web-l2ZjSL16 z_tds_2f_web-l2ZjSL17 z_tds_2f_web-l2ZjSL18 z_tds_2f_web-l2ZjSL19`}),e.dot=u({className:`z_tds_2f_web-l2ZjSL1a z_tds_2f_web-l2ZjSL1b z_tds_2f_web-l2ZjSL1c z_tds_2f_web-l2ZjSL1d z_tds_2f_web-l2ZjSL1e z_tds_2f_web-l2ZjSL1f z_tds_2f_web-l2ZjSL1g z_tds_2f_web-l2ZjSL1h z_tds_2f_web-l2ZjSL8 z_tds_2f_web-l2ZjSL9 z_tds_2f_web-l2ZjSLb z_tds_2f_web-l2ZjSL1i`}),e.icon=((e={})=>{let t=e.className,n=e.style,r=e.vars,i=r?{...r,...n}:n,a=t?`z_tds_2f_web-l2ZjSL1j z_tds_2f_web-l2ZjSL1k z_tds_2f_web-l2ZjSL1l z_tds_2f_web-l2ZjSL1m z_tds_2f_web-l2ZjSL1n z_tds_2f_web-l2ZjSLl z_tds_2f_web-l2ZjSL1o `+t:`z_tds_2f_web-l2ZjSL1j z_tds_2f_web-l2ZjSL1k z_tds_2f_web-l2ZjSL1l z_tds_2f_web-l2ZjSL1m z_tds_2f_web-l2ZjSL1n z_tds_2f_web-l2ZjSLl z_tds_2f_web-l2ZjSL1o`;return i?{className:a,style:i}:{className:a}}),e.group=((e={})=>{let t=e.className,n=e.style,r=e.vars,i=r?{...r,...n}:n,a=t?`z_tds_2f_web-l2ZjSL1p z_tds_2f_web-l2ZjSLv z_tds_2f_web-l2ZjSL1q z_tds_2f_web-l2ZjSL1r z_tds_2f_web-l2ZjSL1s z_tds_2f_web-l2ZjSL1t z_tds_2f_web-l2ZjSL1u z_tds_2f_web-l2ZjSL1v z_tds_2f_web-l2ZjSL1w z_tds_2f_web-l2ZjSL1x z_tds_2f_web-l2ZjSL1y z_tds_2f_web-l2ZjSL1z z_tds_2f_web-l2ZjSL20 z_tds_2f_web-l2ZjSL21 z_tds_2f_web-l2ZjSL22 z_tds_2f_web-l2ZjSL23 z_tds_2f_web-l2ZjSL24 z_tds_2f_web-l2ZjSL25 z_tds_2f_web-l2ZjSL26 z_tds_2f_web-l2ZjSL27 z_tds_2f_web-l2ZjSL28 z_tds_2f_web-l2ZjSL29 z_tds_2f_web-l2ZjSL2a z_tds_2f_web-l2ZjSL2b z_tds_2f_web-l2ZjSL2c z_tds_2f_web-l2ZjSL2d z_tds_2f_web-l2ZjSL2e z_tds_2f_web-l2ZjSL2f z_tds_2f_web-l2ZjSL2g z_tds_2f_web-l2ZjSL2h z_tds_2f_web-l2ZjSL2i z_tds_2f_web-l2ZjSL2j z_tds_2f_web-l2ZjSL2k z_tds_2f_web-l2ZjSL2l z_tds_2f_web-l2ZjSL2m z_tds_2f_web-l2ZjSL2n z_tds_2f_web-l2ZjSL2o z_tds_2f_web-l2ZjSL2p z_tds_2f_web-l2ZjSL2q z_tds_2f_web-l2ZjSL2r z_tds_2f_web-l2ZjSL2s z_tds_2f_web-l2ZjSL2t z_tds_2f_web-l2ZjSL2u `+t:`z_tds_2f_web-l2ZjSL1p z_tds_2f_web-l2ZjSLv z_tds_2f_web-l2ZjSL1q z_tds_2f_web-l2ZjSL1r z_tds_2f_web-l2ZjSL1s z_tds_2f_web-l2ZjSL1t z_tds_2f_web-l2ZjSL1u z_tds_2f_web-l2ZjSL1v z_tds_2f_web-l2ZjSL1w z_tds_2f_web-l2ZjSL1x z_tds_2f_web-l2ZjSL1y z_tds_2f_web-l2ZjSL1z z_tds_2f_web-l2ZjSL20 z_tds_2f_web-l2ZjSL21 z_tds_2f_web-l2ZjSL22 z_tds_2f_web-l2ZjSL23 z_tds_2f_web-l2ZjSL24 z_tds_2f_web-l2ZjSL25 z_tds_2f_web-l2ZjSL26 z_tds_2f_web-l2ZjSL27 z_tds_2f_web-l2ZjSL28 z_tds_2f_web-l2ZjSL29 z_tds_2f_web-l2ZjSL2a z_tds_2f_web-l2ZjSL2b z_tds_2f_web-l2ZjSL2c z_tds_2f_web-l2ZjSL2d z_tds_2f_web-l2ZjSL2e z_tds_2f_web-l2ZjSL2f z_tds_2f_web-l2ZjSL2g z_tds_2f_web-l2ZjSL2h z_tds_2f_web-l2ZjSL2i z_tds_2f_web-l2ZjSL2j z_tds_2f_web-l2ZjSL2k z_tds_2f_web-l2ZjSL2l z_tds_2f_web-l2ZjSL2m z_tds_2f_web-l2ZjSL2n z_tds_2f_web-l2ZjSL2o z_tds_2f_web-l2ZjSL2p z_tds_2f_web-l2ZjSL2q z_tds_2f_web-l2ZjSL2r z_tds_2f_web-l2ZjSL2s z_tds_2f_web-l2ZjSL2t z_tds_2f_web-l2ZjSL2u`,o=i?{className:a,style:i}:{className:a},s;return s=Object.hasOwn(e,`size`)?e.size:void 0,s===void 0&&(s=`medium`),s!=null&&(o[`data-size`]=String(s)),o}),e.radio=u({className:`z_tds_2f_web-l2ZjSL1j z_tds_2f_web-l2ZjSL2v z_tds_2f_web-l2ZjSL2w z_tds_2f_web-l2ZjSL2x z_tds_2f_web-l2ZjSL2y z_tds_2f_web-l2ZjSLh z_tds_2f_web-l2ZjSL2z z_tds_2f_web-l2ZjSL1c z_tds_2f_web-l2ZjSL30 z_tds_2f_web-l2ZjSLj z_tds_2f_web-l2ZjSL31 z_tds_2f_web-l2ZjSLl z_tds_2f_web-l2ZjSL32 z_tds_2f_web-l2ZjSL33 z_tds_2f_web-l2ZjSL34 z_tds_2f_web-l2ZjSL35 z_tds_2f_web-l2ZjSL36 z_tds_2f_web-l2ZjSL37 z_tds_2f_web-l2ZjSL38 z_tds_2f_web-l2ZjSL39`}),e.tile=u({className:`z_tds_2f_web-l2ZjSL3a z_tds_2f_web-l2ZjSL3b z_tds_2f_web-l2ZjSL3c z_tds_2f_web-l2ZjSLh z_tds_2f_web-l2ZjSL3d z_tds_2f_web-l2ZjSL3e z_tds_2f_web-l2ZjSL3f z_tds_2f_web-l2ZjSL3g z_tds_2f_web-l2ZjSL3h z_tds_2f_web-l2ZjSL3i z_tds_2f_web-l2ZjSL3j z_tds_2f_web-l2ZjSL3k z_tds_2f_web-l2ZjSL3l z_tds_2f_web-l2ZjSL33 z_tds_2f_web-l2ZjSL3m z_tds_2f_web-l2ZjSL35 z_tds_2f_web-l2ZjSL3n z_tds_2f_web-l2ZjSL3o z_tds_2f_web-l2ZjSL3p z_tds_2f_web-l2ZjSL3q z_tds_2f_web-l2ZjSL3r z_tds_2f_web-l2ZjSL3s z_tds_2f_web-l2ZjSL3t z_tds_2f_web-l2ZjSL3u z_tds_2f_web-l2ZjSL3v z_tds_2f_web-l2ZjSL3w z_tds_2f_web-l2ZjSL3x z_tds_2f_web-l2ZjSL3y z_tds_2f_web-l2ZjSL3z z_tds_2f_web-l2ZjSL40 z_tds_2f_web-l2ZjSL41 z_tds_2f_web-l2ZjSL42 z_tds_2f_web-l2ZjSL43 z_tds_2f_web-l2ZjSL44 z_tds_2f_web-l2ZjSL45 z_tds_2f_web-l2ZjSL46 z_tds_2f_web-l2ZjSL47 z_tds_2f_web-l2ZjSL48 z_tds_2f_web-l2ZjSL49 z_tds_2f_web-l2ZjSL4a z_tds_2f_web-l2ZjSL4b`}),e.title=u({className:`z_tds_2f_web-l2ZjSL4c z_tds_2f_web-l2ZjSL4d z_tds_2f_web-l2ZjSL4e z_tds_2f_web-l2ZjSL4f z_tds_2f_web-l2ZjSL4g`})})(B||={});function V(e){let t=e.heading??`h1`;return(0,M.jsxs)(A,{className:H.column?`z_tempo_2d_id-ccGdat5 z_tempo_2d_id-ccGdat6`:H.column().className,gap:e.compact?`24`:`32`,children:[(0,M.jsxs)(A,{...e.compact?H.headerCompact?{className:`z_tempo_2d_id-ccGdatf z_tempo_2d_id-ccGdatg`}:H.headerCompact():H.header?{className:`z_tempo_2d_id-ccGdate`}:H.header(),align:e.compact?`start`:`center`,gap:`8`,render:(0,M.jsx)(`header`,{}),children:[e.compact?null:(0,M.jsx)(pe,{className:H.avatar?`z_tempo_2d_id-ccGdat0 z_tempo_2d_id-ccGdat1 z_tempo_2d_id-ccGdat2 z_tempo_2d_id-ccGdat3 z_tempo_2d_id-ccGdat4`:H.avatar().className,"aria-hidden":!0,children:(0,M.jsx)(me,{})}),(0,M.jsx)(t,{...e.compact?H.titleCompact?{className:`z_tempo_2d_id-ccGdatn z_tempo_2d_id-ccGdatt z_tempo_2d_id-ccGdatu z_tempo_2d_id-ccGdatv z_tempo_2d_id-ccGdatw z_tempo_2d_id-ccGdatx`}:H.titleCompact():H.title?{className:`z_tempo_2d_id-ccGdatn z_tempo_2d_id-ccGdato z_tempo_2d_id-ccGdatp z_tempo_2d_id-ccGdatq z_tempo_2d_id-ccGdatr z_tempo_2d_id-ccGdats`}:H.title(),children:`Upgrade your wallet`}),(0,M.jsxs)(`p`,{className:H.description?`z_tempo_2d_id-ccGdat7 z_tempo_2d_id-ccGdat8 z_tempo_2d_id-ccGdat9 z_tempo_2d_id-ccGdata z_tempo_2d_id-ccGdatb z_tempo_2d_id-ccGdatc z_tempo_2d_id-ccGdatd`:H.description().className,children:[`Your wallet needs to be upgraded to continue. Choose how you access it.`,e.onSignIn?` The upgrade needs a sign-in within the last 10 minutes, so confirm the sign-in first.`:null]})]}),(0,M.jsxs)(z.RadioGroup,{"aria-label":`How do you want to access your wallet?`,disabled:e.upgrading||e.skipping,onValueChange:t=>e.onChoice(t),value:e.choice,children:[(0,M.jsxs)(z.Radio,{value:`passkey`,children:[(0,M.jsx)(z.Icon,{children:(0,M.jsx)(he,{})}),(0,M.jsx)(z.Title,{children:`Passkey only (current)`}),(0,M.jsx)(z.Description,{children:`Access with passkey only`})]}),(0,M.jsxs)(z.Radio,{disabled:e.emailUnavailable,value:`email`,children:[(0,M.jsx)(z.Icon,{children:(0,M.jsx)(k,{})}),(0,M.jsx)(z.Title,{children:`Email or passkey`}),(0,M.jsx)(z.Description,{children:e.emailUnavailable?`Not available for this wallet`:`Access with email or passkey`})]})]}),(0,M.jsxs)(A,{gap:`12`,children:[(0,M.jsx)(h,{disabled:e.skipping,loading:e.upgrading||e.preparing&&!e.onSignIn,onClick:e.onSignIn??e.onContinue,children:e.onSignIn?`Confirm sign-in`:`Continue`}),(0,M.jsx)(h,{disabled:e.upgrading,loading:e.skipping,onClick:e.onSkip,variant:`tertiary`,children:`Not now`}),(0,M.jsx)(`p`,{className:H.status?`z_tempo_2d_id-ccGdath z_tempo_2d_id-ccGdati z_tempo_2d_id-ccGdatj z_tempo_2d_id-ccGdatk z_tempo_2d_id-ccGdatl z_tempo_2d_id-ccGdatm`:H.status().className,"aria-live":`polite`,role:`status`,children:e.upgrading?`Upgrading your wallet.`:void 0})]}),e.error?(0,M.jsxs)(C,{intent:`negative`,children:[(0,M.jsx)(C.Icon,{}),(0,M.jsx)(C.Content,{children:e.error})]}):null]})}var H;(function(e){e.avatar=1,e.column=1,e.description=1,e.header=1,e.headerCompact=1,e.status=1,e.title=1,e.titleCompact=1})(H||={});export{R as n,L as r,V as t};
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{B as t,C as n,F as r,G as i,H as a,I as o,U as s,V as c,X as l,Y as u,Z as d,c as f,d as p,f as m,n as h,s as g,z as _}from"./zyzz.config-B1viQ4-F.js";import{G as v}from"./FloatingPortalLite-Bvx243kr.js";import{c as ee,i as y,n as te,o as ne,p as re,r as ie,s as ae,t as oe,u as b}from"./useRegisterFieldControl-Df7pkCLY.js";import{D as se,P as x,f as ce}from"./composite-BROYFUD6.js";import{$ as le,Q as S,t as ue}from"./useValueChanged-DTX7LKFt.js";import{t as de}from"./Check-Dzncy3Z6.js";import{t as C}from"./Alert-C3aAPp1-.js";import{a as fe,i as w,n as T,o as E,r as D,t as O}from"./RadioGroup-D9W7CX7k.js";import{n as k}from"./SignIn-DVummdCe.js";import{t as pe}from"./IconTile-U61I4u7J.js";import{t as A}from"./Stack-BOcRBVsr.js";import{t as me}from"./ArrowUp-BRcRtTj_.js";import{t as he}from"./Fingerprint-DIqTuY88.js";var j=e(d(),1),M=l();function ge(e,t,n=Object.is){let{length:r}=e;if(r!==t.length)return!1;for(let i=0;i<r;i+=1)if(!n(e[i],t[i]))return!1;return!0}function _e(e){if(!e)return null;for(let t of e.elements){let e=t.tagName;if(e===`BUTTON`||e===`INPUT`){let e=t;if(e.type===`submit`)return e}}return null}var N=`data-checked`,P=`data-unchecked`;function ve(e){return{checked(t){return e.indeterminate?{}:t?{[N]:``}:{[P]:``}},...b}}var F=j.createContext(void 0);function ye(){return j.useContext(F)}var be=j.createContext(void 0);function I(){let e=j.useContext(be);if(e===void 0)throw Error(t(14));return e}var xe=`data-parent`,L=j.forwardRef(function(e,t){let{checked:i,className:a,defaultChecked:l=!1,"aria-labelledby":u,disabled:d=!1,form:h,id:v,indeterminate:b=!1,inputRef:ce,name:S,onCheckedChange:de,parent:C=!1,readOnly:w=!1,render:T,required:E=!1,uncheckedValue:D,value:O,nativeButton:k=!1,style:pe,...A}=e,{clearErrors:me}=ae(),{disabled:he,name:ge,setDirty:N,setFilled:P,setTouched:F,state:I,validationMode:L,validityData:R,validation:Se}=ee(),Ce=fe(),{labelId:we,registerControlId:z,getDescriptionProps:B}=ne(),V=ye(),H=V?.allValues===void 0?void 0:V.parent,U=H!==void 0,W=he||Ce.disabled||V?.disabled||d,G=ge??S,K=O??G,Te=le(),Ee=V?.registerControlId!==z,De=ie({id:v||void 0,enabled:Ee}),Oe=k?De:Te,ke={};U&&(C?ke=H.getParentProps():K!==void 0&&(ke=H.getChildProps(K)));let{checked:Ae=i,indeterminate:je=b,onCheckedChange:Me,...Ne}=ke,Pe=V?.value,q=j.useRef(null),Fe=te(W,q),{getButtonProps:Ie,buttonRef:Le}=p({disabled:W,native:k}),J=V?.validation??Se,[Y,Re]=re({controlled:K!==void 0&&Pe!==void 0&&!C?Pe.includes(K):Ae,default:l,name:`Checkbox`,state:`checked`}),ze=U?!!Ae:Y,X=U&&je||b;oe(q,Te,Y,void 0,!V&&!W,S);let Z=H?.registerChildId,Q=j.useRef(null),Be=J.registerInput,Ve=V?K:void 0,He=j.useCallback(e=>Be(e,{controlRef:q,value:Ve}),[Be,Ve]),Ue=_(ce,Q,C?void 0:He),We=y(u,we,Q,!k,De,A[`aria-label`]);c(()=>{Q.current&&(Q.current.indeterminate=X),V||P(Y)},[Y,X,V,P]),ue(Y,()=>{V||(me(G),N(Y!==R.initialValue),J.change(Y))});let Ge=o({checked:Y,disabled:W,form:h,name:C?void 0:G,id:k?void 0:De,required:E,ref:Ue,style:G?f:g,tabIndex:-1,type:`checkbox`,"aria-hidden":!0,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(w){e.preventDefault();return}let t=e.currentTarget.checked,n=x(se,e.nativeEvent);if(de?.(t,n),!n.isCanceled&&(Me?.(t,n),!n.isCanceled&&(Re(t),K!==void 0&&V!==void 0&&!C&&!U))){let e=t?[...V.value,K]:V.value.filter(e=>e!==K);V.setValue(e,n)}},onClick(e){e.stopPropagation()},onFocus(){q.current?.focus()}},O===void 0?s:{value:(V?Y&&O:O)||``},B,e=>J.getValidationProps(W,e));j.useEffect(()=>{if(!H||K===void 0)return;let e=H.disabledStatesRef.current;return e.set(K,W),()=>{e.delete(K)}},[H,W,K]);let Ke=j.useMemo(()=>({...I,checked:ze,disabled:W,readOnly:w,required:E,indeterminate:X}),[I,ze,W,w,E,X]),qe=ve(Ke),Je=r(`span`,e,{state:Ke,ref:[Le,q,t],props:[{id:Oe,role:`checkbox`,"aria-checked":X?`mixed`:ze,"aria-readonly":w||void 0,"aria-required":E||void 0,"aria-labelledby":We,[xe]:C?``:void 0,onFocus(){Fe(!0)},onBlur(){let e=Q.current;e&&(F(!0),Fe(!1),L===`onBlur`&&J.commit(V?Pe:e.checked))},onKeyDown(e){if(e.key!==`Enter`||(e.preventBaseUIHandler(),e.defaultPrevented))return;let t=Q.current?.form??null,r=e.currentTarget,i=e.nativeEvent,a=e.preventDefault,o=i.preventDefault,s=!1;e.preventDefault=()=>{s=!0,a.call(e)},i.preventDefault=()=>{s=!0,o.call(i)},o.call(i),n(r).queueMicrotask(()=>{e.preventDefault=a,i.preventDefault=o,s||_e(t)?.click()})},onClick(e){if(w||W)return;e.preventDefault();let t=Q.current;t&&m(t,e)}},A,Ne,Ie,B,e=>J.getValidationProps(W,e)],stateAttributesMapping:qe}),$=Je.props.id;return c(()=>{if(Z&&!C&&K!==void 0&&$!==void 0)return Z(K,$)},[Z,C,K,$]),(0,M.jsxs)(be.Provider,{value:Ke,children:[Je,!Y&&!V&&G&&!C&&D!==void 0&&(0,M.jsx)(`input`,{type:`hidden`,form:h,name:G,value:D,disabled:W}),(0,M.jsx)(`input`,{...Ge,suppressHydrationWarning:!0})]})}),R=j.forwardRef(function(e,t){let{render:n,className:i,style:a,keepMounted:o=!1,...s}=e,c=I(),l=c.checked||c.indeterminate,{mounted:u,transitionStatus:d,setMounted:f}=S(l),p=j.useRef(null),m={...c,transitionStatus:d};v({batch:!0,enabled:!l,open:l,ref:p,onComplete(){l||f(!1)}});let h={...ve(c),...ce},g=o||u,_=r(`span`,e,{ref:[t,p],state:m,stateAttributesMapping:h,props:s});return g?_:null});function Se(e){let{allValues:t=a,value:n,onValueChange:r}=e,o=j.useRef(n),s=j.useRef(new Map),[c,l]=j.useState(`mixed`),[u,d]=j.useState(()=>({registry:new Map})),f=n.length===t.length,p=n.length!==t.length&&n.length>0,m=i(r),h=i((e,t)=>{let n=u.registry;return n.set(e,(n.get(e)??a).concat(t)),d({registry:n}),()=>{let r=(n.get(e)??a).filter(e=>e!==t);r.length===0?n.delete(e):n.set(e,r),d({registry:n})}}),g=j.useCallback(()=>({indeterminate:p,checked:f,"aria-controls":t.flatMap(e=>u.registry.get(e)??a).join(` `)||void 0,onCheckedChange(e,r){let i=o.current,a=t.filter(e=>s.current.get(e)&&i.includes(e)),u=t.filter(e=>!s.current.get(e)||i.includes(e));if(i.length===u.length||i.length===0){n.length===u.length?m(a,r):m(u,r);return}let d=`mixed`,f=i;c===`mixed`?(d=`on`,f=u):c===`on`&&(d=`off`,f=a),m(f,r),r.isCanceled||l(d)}}),[t,f,u,p,m,c,n.length]),_=j.useCallback(e=>({checked:n.includes(e),onCheckedChange(t,r){let i=n.slice();t?i.push(e):i.splice(i.indexOf(e),1),m(i,r),r.isCanceled||(o.current=i,l(`mixed`))}}),[m,n]);return j.useMemo(()=>({getParentProps:g,getChildProps:_,registerChildId:h,disabledStatesRef:s}),[g,_,h])}var Ce=j.forwardRef(function(e,t){let{allValues:n,className:o,defaultValue:s,disabled:l=!1,id:u,onValueChange:d,render:f,value:p,style:m,...h}=e,{disabled:g,name:_,state:v,validation:y,setFilled:te,setDirty:se,validityData:x}=ee(),{labelId:ce,registerControlId:S,getDescriptionProps:de}=ne(),{clearErrors:C,elementRef:fe}=ae(),w=g||l,[T,D]=re({controlled:p,default:s??a,name:`CheckboxGroup`,state:`value`}),O=i((e,t)=>{d?.(e,t),!t.isCanceled&&D(e)}),k=Se({allValues:n,value:T,onValueChange:O});ie({id:null});let pe=le(u),A=y.getInputControl,me=j.useMemo(()=>({get current(){return A()}}),[A]),he=i(()=>{let e=fe.current;if(!e)return T;let t=new Set;for(let[n,r]of y.registeredInputs)r.value!==void 0&&n.checked&&E(n,e)&&t.add(r.value);return T.filter(e=>t.has(e))});oe(me,pe,T,he,!!_&&!w,_),c(()=>{te(T.length>0)},[T,te]),ue(T,()=>{_&&C(_);let e=Array.isArray(x.initialValue)?x.initialValue:a;se(!ge(T,e)),y.change(T)});let _e={...v,disabled:w},N=j.useMemo(()=>({allValues:n,value:T,setValue:O,parent:k,disabled:w,validation:y,registerControlId:S}),[n,T,O,k,w,y,S]),P=r(`div`,e,{state:_e,ref:t,props:[{id:u,role:`group`,"aria-labelledby":ce},h,de],stateAttributesMapping:b});return(0,M.jsx)(F.Provider,{value:N,children:P})}),we=j.forwardRef(function(e,t){let{render:n,className:i,style:a,keepMounted:o=!1,...s}=e,c=D(),l=c.checked,{mounted:u,transitionStatus:d,setMounted:f}=S(l),p={...c,transitionStatus:d},m=j.useRef(null),h=o||u,g=r(`span`,e,{ref:[t,m],state:p,props:s,stateAttributesMapping:w});return v({batch:!0,enabled:!l,open:l,ref:m,onComplete(){l||f(!1)}}),h?g:null}),z;(function(e){function t(e){let{children:t,className:n,vars:r,...i}=e;return(0,M.jsx)(`button`,{type:`button`,...i,...B.tile({className:n,style:e.style,vars:r}),children:(0,M.jsx)(`span`,{...B.content(),children:t})})}e.Button=t;function n(e){let{className:t,size:n,vars:r,...i}=e;return(0,M.jsx)(`div`,{role:`group`,...i,...B.group({className:t,size:n,style:e.style,vars:r})})}e.ButtonGroup=n;function r(e){let{checked:t,children:n,className:r,defaultChecked:i,disabled:a,inputRef:o,name:s,onCheckedChange:c,readOnly:l,required:u,value:d,vars:f,...p}=e;return(0,M.jsxs)(`label`,{...p,...B.tile({className:r,style:e.style,vars:f}),children:[(0,M.jsx)(`span`,{...B.content(),children:n}),(0,M.jsx)(L,{checked:t,defaultChecked:i,disabled:a,inputRef:o,name:s,onCheckedChange:c,readOnly:l,required:u,value:d,...B.checkbox(),children:(0,M.jsx)(R,{...B.check(),children:(0,M.jsx)(de,{})})})]})}e.Checkbox=r;function i(e){let{className:t,size:n,vars:r,...i}=e;return(0,M.jsx)(Ce,{...i,...B.group({className:t,size:n,style:e.style,vars:r})})}e.CheckboxGroup=i;function a(e){let{className:t,vars:n,...r}=e;return(0,M.jsx)(`span`,{...r,"data-choicebox-description":``,...B.description({className:t,style:e.style,vars:n})})}e.Description=a;function o(e){let{className:t,vars:n,...r}=e;return(0,M.jsx)(`span`,{"aria-hidden":`true`,...r,"data-choicebox-icon":``,...B.icon({className:t,style:e.style,vars:n})})}e.Icon=o;function s(e){let{children:t,className:n,disabled:r,inputRef:i,readOnly:a,required:o,value:s,vars:c,...l}=e;return(0,M.jsxs)(`label`,{...l,...B.tile({className:n,style:e.style,vars:c}),children:[(0,M.jsx)(`span`,{...B.content(),children:t}),(0,M.jsx)(T,{disabled:r,inputRef:i,readOnly:a,required:o,value:s,...B.radio(),children:(0,M.jsx)(we,{...B.dot()})})]})}e.Radio=s;function c(e){let{className:t,size:n,vars:r,...i}=e;return(0,M.jsx)(O,{...i,...B.group({className:t,size:n,style:e.style,vars:r})})}e.RadioGroup=c;function l(e){let{className:t,vars:n,...r}=e;return(0,M.jsx)(`span`,{...r,"data-choicebox-title":``,...B.title({className:t,style:e.style,vars:n})})}e.Title=l})(z||={});var B;(function(e){e.check=u({className:`z_tds_2f_web-l2ZjSL0 z_tds_2f_web-l2ZjSL1 z_tds_2f_web-l2ZjSL2 z_tds_2f_web-l2ZjSL3 z_tds_2f_web-l2ZjSL4 z_tds_2f_web-l2ZjSL5 z_tds_2f_web-l2ZjSL6 z_tds_2f_web-l2ZjSL7 z_tds_2f_web-l2ZjSL8 z_tds_2f_web-l2ZjSL9 z_tds_2f_web-l2ZjSLa z_tds_2f_web-l2ZjSLb`}),e.checkbox=u({className:`z_tds_2f_web-l2ZjSLc z_tds_2f_web-l2ZjSLd z_tds_2f_web-l2ZjSLe z_tds_2f_web-l2ZjSLf z_tds_2f_web-l2ZjSLg z_tds_2f_web-l2ZjSLh z_tds_2f_web-l2ZjSLi z_tds_2f_web-l2ZjSL0 z_tds_2f_web-l2ZjSLj z_tds_2f_web-l2ZjSLk z_tds_2f_web-l2ZjSLl z_tds_2f_web-l2ZjSLm z_tds_2f_web-l2ZjSLn z_tds_2f_web-l2ZjSLo z_tds_2f_web-l2ZjSLp z_tds_2f_web-l2ZjSLq z_tds_2f_web-l2ZjSLr z_tds_2f_web-l2ZjSLs z_tds_2f_web-l2ZjSLt`}),e.content=u({className:`z_tds_2f_web-l2ZjSLu z_tds_2f_web-l2ZjSLv z_tds_2f_web-l2ZjSLw z_tds_2f_web-l2ZjSLx z_tds_2f_web-l2ZjSLy z_tds_2f_web-l2ZjSLz z_tds_2f_web-l2ZjSL10 z_tds_2f_web-l2ZjSL11 z_tds_2f_web-l2ZjSL12 z_tds_2f_web-l2ZjSL13`}),e.description=u({className:`z_tds_2f_web-l2ZjSL14 z_tds_2f_web-l2ZjSL15 z_tds_2f_web-l2ZjSL16 z_tds_2f_web-l2ZjSL17 z_tds_2f_web-l2ZjSL18 z_tds_2f_web-l2ZjSL19`}),e.dot=u({className:`z_tds_2f_web-l2ZjSL1a z_tds_2f_web-l2ZjSL1b z_tds_2f_web-l2ZjSL1c z_tds_2f_web-l2ZjSL1d z_tds_2f_web-l2ZjSL1e z_tds_2f_web-l2ZjSL1f z_tds_2f_web-l2ZjSL1g z_tds_2f_web-l2ZjSL1h z_tds_2f_web-l2ZjSL8 z_tds_2f_web-l2ZjSL9 z_tds_2f_web-l2ZjSLb z_tds_2f_web-l2ZjSL1i`}),e.icon=((e={})=>{let t=e.className,n=e.style,r=e.vars,i=r?{...r,...n}:n,a=t?`z_tds_2f_web-l2ZjSL1j z_tds_2f_web-l2ZjSL1k z_tds_2f_web-l2ZjSL1l z_tds_2f_web-l2ZjSL1m z_tds_2f_web-l2ZjSL1n z_tds_2f_web-l2ZjSLl z_tds_2f_web-l2ZjSL1o `+t:`z_tds_2f_web-l2ZjSL1j z_tds_2f_web-l2ZjSL1k z_tds_2f_web-l2ZjSL1l z_tds_2f_web-l2ZjSL1m z_tds_2f_web-l2ZjSL1n z_tds_2f_web-l2ZjSLl z_tds_2f_web-l2ZjSL1o`;return i?{className:a,style:i}:{className:a}}),e.group=((e={})=>{let t=e.className,n=e.style,r=e.vars,i=r?{...r,...n}:n,a=t?`z_tds_2f_web-l2ZjSL1p z_tds_2f_web-l2ZjSLv z_tds_2f_web-l2ZjSL1q z_tds_2f_web-l2ZjSL1r z_tds_2f_web-l2ZjSL1s z_tds_2f_web-l2ZjSL1t z_tds_2f_web-l2ZjSL1u z_tds_2f_web-l2ZjSL1v z_tds_2f_web-l2ZjSL1w z_tds_2f_web-l2ZjSL1x z_tds_2f_web-l2ZjSL1y z_tds_2f_web-l2ZjSL1z z_tds_2f_web-l2ZjSL20 z_tds_2f_web-l2ZjSL21 z_tds_2f_web-l2ZjSL22 z_tds_2f_web-l2ZjSL23 z_tds_2f_web-l2ZjSL24 z_tds_2f_web-l2ZjSL25 z_tds_2f_web-l2ZjSL26 z_tds_2f_web-l2ZjSL27 z_tds_2f_web-l2ZjSL28 z_tds_2f_web-l2ZjSL29 z_tds_2f_web-l2ZjSL2a z_tds_2f_web-l2ZjSL2b z_tds_2f_web-l2ZjSL2c z_tds_2f_web-l2ZjSL2d z_tds_2f_web-l2ZjSL2e z_tds_2f_web-l2ZjSL2f z_tds_2f_web-l2ZjSL2g z_tds_2f_web-l2ZjSL2h z_tds_2f_web-l2ZjSL2i z_tds_2f_web-l2ZjSL2j z_tds_2f_web-l2ZjSL2k z_tds_2f_web-l2ZjSL2l z_tds_2f_web-l2ZjSL2m z_tds_2f_web-l2ZjSL2n z_tds_2f_web-l2ZjSL2o z_tds_2f_web-l2ZjSL2p z_tds_2f_web-l2ZjSL2q z_tds_2f_web-l2ZjSL2r z_tds_2f_web-l2ZjSL2s z_tds_2f_web-l2ZjSL2t z_tds_2f_web-l2ZjSL2u `+t:`z_tds_2f_web-l2ZjSL1p z_tds_2f_web-l2ZjSLv z_tds_2f_web-l2ZjSL1q z_tds_2f_web-l2ZjSL1r z_tds_2f_web-l2ZjSL1s z_tds_2f_web-l2ZjSL1t z_tds_2f_web-l2ZjSL1u z_tds_2f_web-l2ZjSL1v z_tds_2f_web-l2ZjSL1w z_tds_2f_web-l2ZjSL1x z_tds_2f_web-l2ZjSL1y z_tds_2f_web-l2ZjSL1z z_tds_2f_web-l2ZjSL20 z_tds_2f_web-l2ZjSL21 z_tds_2f_web-l2ZjSL22 z_tds_2f_web-l2ZjSL23 z_tds_2f_web-l2ZjSL24 z_tds_2f_web-l2ZjSL25 z_tds_2f_web-l2ZjSL26 z_tds_2f_web-l2ZjSL27 z_tds_2f_web-l2ZjSL28 z_tds_2f_web-l2ZjSL29 z_tds_2f_web-l2ZjSL2a z_tds_2f_web-l2ZjSL2b z_tds_2f_web-l2ZjSL2c z_tds_2f_web-l2ZjSL2d z_tds_2f_web-l2ZjSL2e z_tds_2f_web-l2ZjSL2f z_tds_2f_web-l2ZjSL2g z_tds_2f_web-l2ZjSL2h z_tds_2f_web-l2ZjSL2i z_tds_2f_web-l2ZjSL2j z_tds_2f_web-l2ZjSL2k z_tds_2f_web-l2ZjSL2l z_tds_2f_web-l2ZjSL2m z_tds_2f_web-l2ZjSL2n z_tds_2f_web-l2ZjSL2o z_tds_2f_web-l2ZjSL2p z_tds_2f_web-l2ZjSL2q z_tds_2f_web-l2ZjSL2r z_tds_2f_web-l2ZjSL2s z_tds_2f_web-l2ZjSL2t z_tds_2f_web-l2ZjSL2u`,o=i?{className:a,style:i}:{className:a},s;return s=Object.hasOwn(e,`size`)?e.size:void 0,s===void 0&&(s=`medium`),s!=null&&(o[`data-size`]=String(s)),o}),e.radio=u({className:`z_tds_2f_web-l2ZjSL1j z_tds_2f_web-l2ZjSL2v z_tds_2f_web-l2ZjSL2w z_tds_2f_web-l2ZjSL2x z_tds_2f_web-l2ZjSL2y z_tds_2f_web-l2ZjSLh z_tds_2f_web-l2ZjSL2z z_tds_2f_web-l2ZjSL1c z_tds_2f_web-l2ZjSL30 z_tds_2f_web-l2ZjSLj z_tds_2f_web-l2ZjSL31 z_tds_2f_web-l2ZjSLl z_tds_2f_web-l2ZjSL32 z_tds_2f_web-l2ZjSL33 z_tds_2f_web-l2ZjSL34 z_tds_2f_web-l2ZjSL35 z_tds_2f_web-l2ZjSL36 z_tds_2f_web-l2ZjSL37 z_tds_2f_web-l2ZjSL38 z_tds_2f_web-l2ZjSL39`}),e.tile=u({className:`z_tds_2f_web-l2ZjSL3a z_tds_2f_web-l2ZjSL3b z_tds_2f_web-l2ZjSL3c z_tds_2f_web-l2ZjSLh z_tds_2f_web-l2ZjSL3d z_tds_2f_web-l2ZjSL3e z_tds_2f_web-l2ZjSL3f z_tds_2f_web-l2ZjSL3g z_tds_2f_web-l2ZjSL3h z_tds_2f_web-l2ZjSL3i z_tds_2f_web-l2ZjSL3j z_tds_2f_web-l2ZjSL3k z_tds_2f_web-l2ZjSL3l z_tds_2f_web-l2ZjSL33 z_tds_2f_web-l2ZjSL3m z_tds_2f_web-l2ZjSL35 z_tds_2f_web-l2ZjSL3n z_tds_2f_web-l2ZjSL3o z_tds_2f_web-l2ZjSL3p z_tds_2f_web-l2ZjSL3q z_tds_2f_web-l2ZjSL3r z_tds_2f_web-l2ZjSL3s z_tds_2f_web-l2ZjSL3t z_tds_2f_web-l2ZjSL3u z_tds_2f_web-l2ZjSL3v z_tds_2f_web-l2ZjSL3w z_tds_2f_web-l2ZjSL3x z_tds_2f_web-l2ZjSL3y z_tds_2f_web-l2ZjSL3z z_tds_2f_web-l2ZjSL40 z_tds_2f_web-l2ZjSL41 z_tds_2f_web-l2ZjSL42 z_tds_2f_web-l2ZjSL43 z_tds_2f_web-l2ZjSL44 z_tds_2f_web-l2ZjSL45 z_tds_2f_web-l2ZjSL46 z_tds_2f_web-l2ZjSL47 z_tds_2f_web-l2ZjSL48 z_tds_2f_web-l2ZjSL49 z_tds_2f_web-l2ZjSL4a z_tds_2f_web-l2ZjSL4b`}),e.title=u({className:`z_tds_2f_web-l2ZjSL4c z_tds_2f_web-l2ZjSL4d z_tds_2f_web-l2ZjSL4e z_tds_2f_web-l2ZjSL4f z_tds_2f_web-l2ZjSL4g`})})(B||={});function V(e){let t=e.heading??`h1`;return(0,M.jsxs)(A,{className:H.column?`z_tempo_2d_id-ccGdat5 z_tempo_2d_id-ccGdat6`:H.column().className,gap:e.compact?`24`:`32`,children:[(0,M.jsxs)(A,{...e.compact?H.headerCompact?{className:`z_tempo_2d_id-ccGdatf z_tempo_2d_id-ccGdatg`}:H.headerCompact():H.header?{className:`z_tempo_2d_id-ccGdate`}:H.header(),align:e.compact?`start`:`center`,gap:`8`,render:(0,M.jsx)(`header`,{}),children:[e.compact?null:(0,M.jsx)(pe,{className:H.avatar?`z_tempo_2d_id-ccGdat0 z_tempo_2d_id-ccGdat1 z_tempo_2d_id-ccGdat2 z_tempo_2d_id-ccGdat3 z_tempo_2d_id-ccGdat4`:H.avatar().className,"aria-hidden":!0,children:(0,M.jsx)(me,{})}),(0,M.jsx)(t,{...e.compact?H.titleCompact?{className:`z_tempo_2d_id-ccGdatn z_tempo_2d_id-ccGdatt z_tempo_2d_id-ccGdatu z_tempo_2d_id-ccGdatv z_tempo_2d_id-ccGdatw z_tempo_2d_id-ccGdatx`}:H.titleCompact():H.title?{className:`z_tempo_2d_id-ccGdatn z_tempo_2d_id-ccGdato z_tempo_2d_id-ccGdatp z_tempo_2d_id-ccGdatq z_tempo_2d_id-ccGdatr z_tempo_2d_id-ccGdats`}:H.title(),children:`Upgrade your wallet`}),(0,M.jsxs)(`p`,{className:H.description?`z_tempo_2d_id-ccGdat7 z_tempo_2d_id-ccGdat8 z_tempo_2d_id-ccGdat9 z_tempo_2d_id-ccGdata z_tempo_2d_id-ccGdatb z_tempo_2d_id-ccGdatc z_tempo_2d_id-ccGdatd`:H.description().className,children:[`Your wallet needs to be upgraded to continue. Choose how you access it.`,e.onSignIn?` The upgrade needs a sign-in within the last 10 minutes, so confirm the sign-in first.`:null]})]}),(0,M.jsxs)(z.RadioGroup,{"aria-label":`How do you want to access your wallet?`,disabled:e.upgrading||e.skipping,onValueChange:t=>e.onChoice(t),value:e.choice,children:[(0,M.jsxs)(z.Radio,{value:`passkey`,children:[(0,M.jsx)(z.Icon,{children:(0,M.jsx)(he,{})}),(0,M.jsx)(z.Title,{children:`Passkey only (current)`}),(0,M.jsx)(z.Description,{children:`Access with passkey only`})]}),(0,M.jsxs)(z.Radio,{disabled:e.emailUnavailable,value:`email`,children:[(0,M.jsx)(z.Icon,{children:(0,M.jsx)(k,{})}),(0,M.jsx)(z.Title,{children:`Email or passkey`}),(0,M.jsx)(z.Description,{children:e.emailUnavailable?`Not available for this wallet`:`Access with email or passkey`})]})]}),(0,M.jsxs)(A,{gap:`12`,children:[(0,M.jsx)(h,{disabled:e.skipping,loading:e.upgrading||e.preparing&&!e.onSignIn,onClick:e.onSignIn??e.onContinue,children:e.onSignIn?`Confirm sign-in`:`Continue`}),(0,M.jsx)(h,{disabled:e.upgrading,loading:e.skipping,onClick:e.onSkip,variant:`tertiary`,children:`Not now`}),(0,M.jsx)(`p`,{className:H.status?`z_tempo_2d_id-ccGdath z_tempo_2d_id-ccGdati z_tempo_2d_id-ccGdatj z_tempo_2d_id-ccGdatk z_tempo_2d_id-ccGdatl z_tempo_2d_id-ccGdatm`:H.status().className,"aria-live":`polite`,role:`status`,children:e.upgrading?`Upgrading your wallet.`:void 0})]}),e.error?(0,M.jsxs)(C,{intent:`negative`,children:[(0,M.jsx)(C.Icon,{}),(0,M.jsx)(C.Content,{children:e.error})]}):null]})}var H;(function(e){e.avatar=1,e.column=1,e.description=1,e.header=1,e.headerCompact=1,e.status=1,e.title=1,e.titleCompact=1})(H||={});export{R as n,L as r,V as t};
|