@tapflowio/relay 0.29.0 → 0.31.0
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/RelayServer.d.ts +6 -0
- package/dist/RelayServer.d.ts.map +1 -1
- package/dist/RelayServer.js +48 -3
- package/dist/RelayServer.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/config.d.ts +14 -0
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +98 -0
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/launchDefaults.d.ts +25 -0
- package/dist/lib/launchDefaults.d.ts.map +1 -0
- package/dist/lib/launchDefaults.js +41 -0
- package/dist/lib/launchDefaults.js.map +1 -0
- package/dist/server.js +2 -2
- package/dist/server.js.map +1 -1
- package/package.json +4 -4
- package/public/assets/{AISessionWatch-BSBkpTom.js → AISessionWatch-DMfOAt_U.js} +7 -7
- package/public/assets/AISessionWatch-DMfOAt_U.js.br +0 -0
- package/public/assets/AISessionWatch-DMfOAt_U.js.gz +0 -0
- package/public/assets/AndroidDeviceScreen-1RaPu10r.js +35 -0
- package/public/assets/AndroidDeviceScreen-1RaPu10r.js.br +0 -0
- package/public/assets/AndroidDeviceScreen-1RaPu10r.js.gz +0 -0
- package/public/assets/{AppCenter-DD_6LQx-.js → AppCenter-BWgstOJH.js} +6 -6
- package/public/assets/AppCenter-BWgstOJH.js.br +0 -0
- package/public/assets/AppCenter-BWgstOJH.js.gz +0 -0
- package/public/assets/{Default-CQ3Ae2mK.js → Default-Obywi6hR.js} +1 -1
- package/public/assets/Default-Obywi6hR.js.br +0 -0
- package/public/assets/Default-Obywi6hR.js.gz +0 -0
- package/public/assets/{Invite-D1uNMm0-.js → Invite-BVRKLYJu.js} +1 -1
- package/public/assets/Invite-BVRKLYJu.js.br +0 -0
- package/public/assets/Invite-BVRKLYJu.js.gz +0 -0
- package/public/assets/{MacResources-D2UeRbKL.js → MacResources-B6_Es8ye.js} +1 -1
- package/public/assets/MacResources-B6_Es8ye.js.br +0 -0
- package/public/assets/MacResources-B6_Es8ye.js.gz +0 -0
- package/public/assets/QASession-BuQdx-pq.js +81 -0
- package/public/assets/QASession-BuQdx-pq.js.br +0 -0
- package/public/assets/QASession-BuQdx-pq.js.gz +0 -0
- package/public/assets/{ResetPassword-B-4Uyfwr.js → ResetPassword-DU97TnMC.js} +1 -1
- package/public/assets/ResetPassword-DU97TnMC.js.br +0 -0
- package/public/assets/ResetPassword-DU97TnMC.js.gz +0 -0
- package/public/assets/{RunDetail-C50RjsuM.js → RunDetail-BspFUFg2.js} +4 -4
- package/public/assets/RunDetail-BspFUFg2.js.br +0 -0
- package/public/assets/RunDetail-BspFUFg2.js.gz +0 -0
- package/public/assets/{Runs-A7RcDLgO.js → Runs-BdCnN_dH.js} +2 -2
- package/public/assets/Runs-BdCnN_dH.js.br +0 -0
- package/public/assets/Runs-BdCnN_dH.js.gz +0 -0
- package/public/assets/{Setup-DK6TZbwh.js → Setup-D4DsciMG.js} +1 -1
- package/public/assets/Setup-D4DsciMG.js.br +0 -0
- package/public/assets/Setup-D4DsciMG.js.gz +0 -0
- package/public/assets/{Team-VoGput2p.js → Team-B2Txvi0a.js} +2 -2
- package/public/assets/Team-B2Txvi0a.js.br +0 -0
- package/public/assets/Team-B2Txvi0a.js.gz +0 -0
- package/public/assets/{Tokens-qkcJgunR.js → Tokens-D-ekP8kU.js} +1 -1
- package/public/assets/Tokens-D-ekP8kU.js.br +0 -0
- package/public/assets/Tokens-D-ekP8kU.js.gz +0 -0
- package/public/assets/WatchedDevice-D-SfDxp8.js +1 -0
- package/public/assets/WatchedDevice-D-SfDxp8.js.br +0 -0
- package/public/assets/WatchedDevice-D-SfDxp8.js.gz +0 -0
- package/public/assets/{aiSession-U7UqgdSb.js → aiSession-p7Uu2swu.js} +6 -6
- package/public/assets/aiSession-p7Uu2swu.js.br +0 -0
- package/public/assets/aiSession-p7Uu2swu.js.gz +0 -0
- package/public/assets/{alert-dialog-C0mRms8g.js → alert-dialog-DPNbpxqG.js} +1 -1
- package/public/assets/alert-dialog-DPNbpxqG.js.br +0 -0
- package/public/assets/alert-dialog-DPNbpxqG.js.gz +0 -0
- package/public/assets/{badge-BjEnOmb0.js → badge-Bjwwchrt.js} +1 -1
- package/public/assets/badge-Bjwwchrt.js.br +0 -0
- package/public/assets/badge-Bjwwchrt.js.gz +0 -0
- package/public/assets/{dialog-Cugbp1C4.js → dialog-CrzZQwxn.js} +1 -1
- package/public/assets/dialog-CrzZQwxn.js.br +0 -0
- package/public/assets/dialog-CrzZQwxn.js.gz +0 -0
- package/public/assets/{field-hint-qmBa0qqN.js → field-hint-CIJmSABE.js} +1 -1
- package/public/assets/field-hint-CIJmSABE.js.br +2 -0
- package/public/assets/field-hint-CIJmSABE.js.gz +0 -0
- package/public/assets/index-CiJwpDAf.js +248 -0
- package/public/assets/index-CiJwpDAf.js.br +0 -0
- package/public/assets/index-CiJwpDAf.js.gz +0 -0
- package/public/assets/index-DKKkUgNI.css +1 -0
- package/public/assets/index-DKKkUgNI.css.br +0 -0
- package/public/assets/index-DKKkUgNI.css.gz +0 -0
- package/public/assets/{list-view-CyM0QUaH.js → list-view-DpnCsTM-.js} +1 -1
- package/public/assets/list-view-DpnCsTM-.js.br +0 -0
- package/public/assets/list-view-DpnCsTM-.js.gz +0 -0
- package/public/assets/{pencil-DUZRZB3S.js → pencil-CE5LnE8i.js} +2 -2
- package/public/assets/pencil-CE5LnE8i.js.br +0 -0
- package/public/assets/pencil-CE5LnE8i.js.gz +0 -0
- package/public/assets/{play-Z1L2Eb91.js → play-BR_CdQzZ.js} +2 -2
- package/public/assets/play-BR_CdQzZ.js.br +0 -0
- package/public/assets/play-BR_CdQzZ.js.gz +0 -0
- package/public/assets/{search-input-B0s9mzRt.js → search-input-2MuvmbBR.js} +2 -2
- package/public/assets/search-input-2MuvmbBR.js.br +0 -0
- package/public/assets/search-input-2MuvmbBR.js.gz +0 -0
- package/public/assets/{select-CHbE6M4S.js → select-7EkQtxVy.js} +3 -3
- package/public/assets/select-7EkQtxVy.js.br +0 -0
- package/public/assets/select-7EkQtxVy.js.gz +0 -0
- package/public/assets/{slider-tyb3JvL2.js → slider-ifEFgQFt.js} +1 -1
- package/public/assets/slider-ifEFgQFt.js.br +0 -0
- package/public/assets/slider-ifEFgQFt.js.gz +0 -0
- package/public/assets/{tabs-Bf7ou-eS.js → tabs-SLpwFQLx.js} +1 -1
- package/public/assets/tabs-SLpwFQLx.js.br +0 -0
- package/public/assets/tabs-SLpwFQLx.js.gz +0 -0
- package/public/assets/{tech-label-KAwM5qZ_.js → tech-label-DpVGqU2Y.js} +1 -1
- package/public/assets/tech-label-DpVGqU2Y.js.br +0 -0
- package/public/assets/tech-label-DpVGqU2Y.js.gz +0 -0
- package/public/assets/{trash-HEJmY7DQ.js → trash-DFsQhdZ1.js} +3 -3
- package/public/assets/trash-DFsQhdZ1.js.br +0 -0
- package/public/assets/trash-DFsQhdZ1.js.gz +0 -0
- package/public/assets/{video-DdHH0Q0l.js → video-D1ajuM3p.js} +2 -2
- package/public/assets/video-D1ajuM3p.js.br +0 -0
- package/public/assets/video-D1ajuM3p.js.gz +0 -0
- package/public/index.html +2 -2
- package/public/index.html.br +0 -0
- package/public/index.html.gz +0 -0
- package/public/assets/AISessionWatch-BSBkpTom.js.br +0 -0
- package/public/assets/AISessionWatch-BSBkpTom.js.gz +0 -0
- package/public/assets/AndroidDeviceScreen-C55msKfh.js +0 -35
- package/public/assets/AndroidDeviceScreen-C55msKfh.js.br +0 -0
- package/public/assets/AndroidDeviceScreen-C55msKfh.js.gz +0 -0
- package/public/assets/AppCenter-DD_6LQx-.js.br +0 -0
- package/public/assets/AppCenter-DD_6LQx-.js.gz +0 -0
- package/public/assets/Default-CQ3Ae2mK.js.br +0 -0
- package/public/assets/Default-CQ3Ae2mK.js.gz +0 -0
- package/public/assets/Invite-D1uNMm0-.js.br +0 -0
- package/public/assets/Invite-D1uNMm0-.js.gz +0 -0
- package/public/assets/MacResources-D2UeRbKL.js.br +0 -0
- package/public/assets/MacResources-D2UeRbKL.js.gz +0 -0
- package/public/assets/QASession-d0eOjXXo.js +0 -81
- package/public/assets/QASession-d0eOjXXo.js.br +0 -0
- package/public/assets/QASession-d0eOjXXo.js.gz +0 -0
- package/public/assets/ResetPassword-B-4Uyfwr.js.br +0 -0
- package/public/assets/ResetPassword-B-4Uyfwr.js.gz +0 -0
- package/public/assets/RunDetail-C50RjsuM.js.br +0 -0
- package/public/assets/RunDetail-C50RjsuM.js.gz +0 -0
- package/public/assets/Runs-A7RcDLgO.js.br +0 -0
- package/public/assets/Runs-A7RcDLgO.js.gz +0 -0
- package/public/assets/Setup-DK6TZbwh.js.br +0 -0
- package/public/assets/Setup-DK6TZbwh.js.gz +0 -0
- package/public/assets/Team-VoGput2p.js.br +0 -0
- package/public/assets/Team-VoGput2p.js.gz +0 -0
- package/public/assets/Tokens-qkcJgunR.js.br +0 -0
- package/public/assets/Tokens-qkcJgunR.js.gz +0 -0
- package/public/assets/WatchedDevice-CpaKHa1x.js +0 -1
- package/public/assets/WatchedDevice-CpaKHa1x.js.br +0 -0
- package/public/assets/WatchedDevice-CpaKHa1x.js.gz +0 -0
- package/public/assets/aiSession-U7UqgdSb.js.br +0 -0
- package/public/assets/aiSession-U7UqgdSb.js.gz +0 -0
- package/public/assets/alert-dialog-C0mRms8g.js.br +0 -0
- package/public/assets/alert-dialog-C0mRms8g.js.gz +0 -0
- package/public/assets/badge-BjEnOmb0.js.br +0 -0
- package/public/assets/badge-BjEnOmb0.js.gz +0 -0
- package/public/assets/dialog-Cugbp1C4.js.br +0 -0
- package/public/assets/dialog-Cugbp1C4.js.gz +0 -0
- package/public/assets/field-hint-qmBa0qqN.js.br +0 -0
- package/public/assets/field-hint-qmBa0qqN.js.gz +0 -0
- package/public/assets/index-C_3Q51YJ.js +0 -248
- package/public/assets/index-C_3Q51YJ.js.br +0 -0
- package/public/assets/index-C_3Q51YJ.js.gz +0 -0
- package/public/assets/index-h2hiZ2OM.css +0 -1
- package/public/assets/index-h2hiZ2OM.css.br +0 -0
- package/public/assets/index-h2hiZ2OM.css.gz +0 -0
- package/public/assets/list-view-CyM0QUaH.js.br +0 -0
- package/public/assets/list-view-CyM0QUaH.js.gz +0 -0
- package/public/assets/pencil-DUZRZB3S.js.br +0 -0
- package/public/assets/pencil-DUZRZB3S.js.gz +0 -0
- package/public/assets/play-Z1L2Eb91.js.br +0 -0
- package/public/assets/play-Z1L2Eb91.js.gz +0 -0
- package/public/assets/search-input-B0s9mzRt.js.br +0 -0
- package/public/assets/search-input-B0s9mzRt.js.gz +0 -0
- package/public/assets/select-CHbE6M4S.js.br +0 -0
- package/public/assets/select-CHbE6M4S.js.gz +0 -0
- package/public/assets/slider-tyb3JvL2.js.br +0 -0
- package/public/assets/slider-tyb3JvL2.js.gz +0 -0
- package/public/assets/tabs-Bf7ou-eS.js.br +0 -0
- package/public/assets/tabs-Bf7ou-eS.js.gz +0 -0
- package/public/assets/tech-label-KAwM5qZ_.js.br +0 -0
- package/public/assets/tech-label-KAwM5qZ_.js.gz +0 -0
- package/public/assets/trash-HEJmY7DQ.js.br +0 -0
- package/public/assets/trash-HEJmY7DQ.js.gz +0 -0
- package/public/assets/video-DdHH0Q0l.js.br +0 -0
- package/public/assets/video-DdHH0Q0l.js.gz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,j as e}from"./vendor-react-DTSdA8m-.js";import{b as ce,R as de,c as xe,u as ue,a as me,l as pe,B as u,I as j,H as n,L as y,F as Q,n as he,h as je,C as ye,d as ge,e as fe,m as ve,f as ke,o as be,aL as Ne,s as z,q as K,aM as we}from"./index-
|
|
1
|
+
import{r as a,j as e}from"./vendor-react-DTSdA8m-.js";import{b as ce,R as de,c as xe,u as ue,a as me,l as pe,B as u,I as j,H as n,L as y,F as Q,n as he,h as je,C as ye,d as ge,e as fe,m as ve,f as ke,o as be,aL as Ne,s as z,q as K,aM as we}from"./index-CiJwpDAf.js";import{B as N}from"./badge-Bjwwchrt.js";import{g as Ce,d as Te,A as De,a as Se,b as Ae,e as Fe,c as Ie}from"./alert-dialog-DPNbpxqG.js";import{d as Re,D as Ee,c as Be,a as Le,b as Pe}from"./dialog-CrzZQwxn.js";import{d as M,S as $,a as G,b as J,c as m}from"./select-7EkQtxVy.js";import{l as qe,T as Oe,c as He,d as U,e as p,a as Ve,L as We,b as h}from"./list-view-DpnCsTM-.js";import{l as _e}from"./publicLink-D6zKS_wu.js";import{u as Qe}from"./useFocusAfterSwap-BdItkQCu.js";import{P as ze,T as Ke}from"./trash-DFsQhdZ1.js";import"./vendor-router-B1pQim9Z.js";import"./index-D17hSi50.js";import"./useShownAfter-By1Yxysz.js";const X=["7","30","60","90"],Me=be({name:z().min(1,"Give the token a name"),expiry:Ne([...X,"custom","never"]),expiresDays:z()}).superRefine((r,g)=>{if(r.expiry!=="custom")return;const o=Number(r.expiresDays);(!Number.isInteger(o)||o<1||o>365)&&g.addIssue({code:"custom",path:["expiresDays"],message:"Must be between 1 and 365"})});function $e(r){if(r.expiry!=="never")return Number(r.expiry==="custom"?r.expiresDays:r.expiry)}function is(){var V,W,_;const r=ce(),g=((V=de().user)==null?void 0:V.role)==="Admin",o=xe({queryKey:K.tokens,queryFn:we}),Y=o.data??[],w=qe(o),C=a.useRef(null),Z=Qe(w,C),[ee,se]=a.useState(!1),[l,T]=a.useState(""),[x,D]=a.useState("api"),[S,A]=a.useState(""),[f,v]=a.useState(null),F=a.useId(),I=a.useId(),k=a.useRef(null),[ae,c]=a.useState(""),R=a.useId(),{register:E,control:B,handleSubmit:re,reset:te,formState:{errors:i,isSubmitting:L,submitCount:ne}}=ue({shouldFocusError:!1,resolver:me(Me),defaultValues:{name:"",expiry:"30",expiresDays:"30"}}),P=pe({control:B,name:"expiry"}),q=()=>{r.invalidateQueries({queryKey:K.tokens})};a.useEffect(()=>{var s;l&&((s=k.current)==null||s.focus())},[l]);async function oe(s){c("");try{const t=$e(s),b=await fetch("/api/v1/tokens",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:s.name,...t!==void 0?{expires_in_days:t}:{},...x==="agent"?{scope:"agent"}:{}})});if(!b.ok){const d=await b.json().catch(()=>null);n.error((d==null?void 0:d.error)??"Failed to create token"),c((d==null?void 0:d.error)??"Failed to create token");return}const le=await b.json();x==="agent"&&A((await _e()).agentWsBase),n.success("Token created"),T(le.token),q()}catch{n.error("Network error"),c("Network error")}}function O(s){se(s),s&&(T(""),D("api"),A(""),c(""),te())}async function ie(s){try{return(await fetch(`/api/v1/tokens/${s}`,{method:"DELETE",credentials:"include"})).ok?(n.success("Token revoked"),q(),!0):(n.error("Failed to revoke token"),!1)}catch{return n.error("Network error"),!1}}function H(s){return s.expires_at&&new Date(s.expires_at)<new Date}return e.jsxs("div",{className:"flex flex-col gap-6 max-w-[900px] mx-auto w-full p-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h1",{className:"text-xl font-semibold",children:"Personal Access Tokens"}),e.jsxs(Re,{open:ee,onOpenChange:O,children:[e.jsx(Ee,{asChild:!0,children:e.jsxs(u,{ref:C,size:"sm",children:[e.jsx(ze,{className:"mr-2 h-4 w-4"}),"New token"]})}),e.jsxs(Be,{className:"sm:max-w-md",children:[e.jsx(Le,{children:e.jsx(Pe,{children:"Create token"})}),e.jsx("p",{role:"status",className:"sr-only",children:ae}),l?e.jsxs("div",{className:"flex flex-col gap-3 pt-2",children:[e.jsx("p",{id:F,className:"text-sm text-muted-foreground",children:"Copy this token now — it won't be shown again."}),e.jsx(j,{ref:k,readOnly:!0,value:l,"aria-labelledby":F,onFocus:s=>s.currentTarget.select(),className:"font-mono"}),x==="agent"&&S&&e.jsxs(e.Fragment,{children:[e.jsx("p",{id:I,className:"text-sm text-muted-foreground",children:"Run this on the agent Mac to connect it to this relay:"}),e.jsx(j,{readOnly:!0,value:`tapflow agent start --relay ${S} --token ${l}`,"aria-labelledby":I,onFocus:s=>s.currentTarget.select(),className:"font-mono"})]}),e.jsx(u,{onClick:()=>{c(""),(navigator.clipboard?navigator.clipboard.writeText(l):Promise.reject(new Error("no clipboard"))).then(()=>{n.success("Token copied to clipboard"),O(!1)}).catch(()=>{var s;n.error("Failed to copy — copy manually"),c("Could not copy the token. Select it and copy it by hand."),(s=k.current)==null||s.focus()})},children:"Copy & close"})]}):e.jsxs("form",{onSubmit:re(oe),className:"flex flex-col gap-4 pt-2",children:[e.jsxs("div",{className:"grid gap-2",children:[e.jsx(y,{htmlFor:"token-name",children:"Name"}),e.jsx(j,{id:"token-name",placeholder:"e.g. ci-deploy","aria-required":"true","aria-invalid":!!i.name,"aria-describedby":i.name?"name-error":void 0,...E("name")}),e.jsx(Q,{id:"name-error",message:(W=i.name)==null?void 0:W.message})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(y,{htmlFor:"token-expiry",children:"Expiration"}),e.jsx(he,{control:B,name:"expiry",render:({field:s})=>e.jsxs(M,{value:s.value,onValueChange:t=>s.onChange(t),children:[e.jsx($,{id:"token-expiry",ref:s.ref,onBlur:s.onBlur,"aria-describedby":s.value==="never"?R:void 0,children:e.jsx(G,{})}),e.jsxs(J,{children:[X.map(t=>e.jsxs(m,{value:t,children:[t," days"]},t)),e.jsx(m,{value:"custom",children:"Custom…"}),e.jsx(m,{value:"never",children:"No expiration"})]})]})}),P==="never"&&e.jsx("p",{id:R,className:"text-sm text-amber-700 dark:text-amber-300",children:"A token without an expiry stays valid until you revoke it. For CI, 90 days or less is recommended."})]}),P==="custom"&&e.jsxs("div",{className:"grid gap-2",children:[e.jsx(y,{htmlFor:"expires",children:"Expires in (days)"}),e.jsx(j,{id:"expires",type:"number","aria-required":"true","aria-invalid":!!i.expiresDays,"aria-describedby":i.expiresDays?"expiresDays-error":void 0,...E("expiresDays")}),e.jsx(Q,{id:"expiresDays-error",message:(_=i.expiresDays)==null?void 0:_.message})]}),e.jsxs("div",{className:"grid gap-2",children:[e.jsx(y,{htmlFor:"token-type",children:"Type"}),e.jsxs(M,{value:x,onValueChange:s=>D(s),children:[e.jsx($,{id:"token-type",children:e.jsx(G,{})}),e.jsxs(J,{children:[e.jsx(m,{value:"api",children:"API — CI uploads & API access"}),g&&e.jsx(m,{value:"agent",children:"Agent — connect remote device agents (Admin only)"})]})]})]}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:["Scope: ",e.jsx(N,{variant:"secondary",children:x==="agent"?"agent":"view, builds:write"})]}),e.jsx(u,{type:"submit",disabled:L,children:L?"Creating…":"Create token"}),e.jsx(je,{errors:i,submitCount:ne})]})]})]})]}),e.jsxs(ye,{children:[e.jsxs(ge,{children:[e.jsx(fe,{children:"Active tokens"}),e.jsxs(ve,{children:["Use these tokens with ",e.jsx("code",{className:"text-xs",children:"Authorization: Bearer <token>"})," for API deployments."]})]}),e.jsx(ke,{className:"px-4 pt-0 pb-2",children:e.jsxs(Oe,{children:[e.jsx(He,{children:e.jsxs(U,{children:[e.jsx(p,{children:"Name"}),e.jsx(p,{children:"Scope"}),e.jsx(p,{children:"Last used"}),e.jsx(p,{children:"Expires"}),e.jsx(p,{className:"w-10"})]})}),e.jsxs(Ve,{...Z,children:[e.jsx(We,{view:w,colSpan:5,noun:"tokens",emptyText:"No tokens yet.",onRetry:()=>{o.refetch()}}),Y.map(s=>e.jsxs(U,{className:"hover:bg-transparent",children:[e.jsx(h,{className:"font-medium",children:s.name}),e.jsx(h,{children:e.jsx(N,{variant:"secondary",children:s.scope})}),e.jsx(h,{className:"text-muted-foreground text-sm",children:s.last_used_at?new Date(s.last_used_at).toLocaleDateString():"Never"}),e.jsx(h,{children:s.expires_at?e.jsx("span",{className:H(s)?"text-destructive text-sm":"text-muted-foreground text-sm",children:H(s)?"Expired":new Date(s.expires_at).toLocaleDateString()}):e.jsx(N,{variant:"outline",children:"No expiration"})}),e.jsx(h,{children:e.jsx(u,{variant:"destructive",size:"icon",className:"h-7 w-7","aria-label":"Revoke token",onClick:()=>v(s.id),children:e.jsx(Ke,{className:"h-4 w-4"})})})]},s.id))]})]})})]}),e.jsx(Ce,{open:f!==null,onOpenChange:s=>{s||v(null)},children:e.jsxs(Te,{children:[e.jsxs(De,{children:[e.jsx(Se,{children:"Revoke token?"}),e.jsx(Ae,{children:"Any active API calls using this token will immediately fail."})]}),e.jsxs(Fe,{children:[e.jsx(Ie,{children:"Cancel"}),e.jsx(u,{variant:"destructive",onClick:async()=>{if(f===null)return;await ie(f)&&v(null)},children:"Revoke"})]})]})})]})}export{is as TokenSettings};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as _,j as u,r as $}from"./vendor-react-DTSdA8m-.js";import{l as z,s as j,u as g,a as W,b as M,i as P,h as T,I as F,j as I,A as N}from"./AndroidDeviceScreen-1RaPu10r.js";const O="rgb(59 130 246)";function v(s){const e=_.c(14),{marks:t,place:r}=s;let p;e[0]!==t.cursor||e[1]!==r?(p=t.cursor&&r(t.cursor.x,t.cursor.y),e[0]=t.cursor,e[1]=r,e[2]=p):p=e[2];const o=p,l=A;let h;e[3]===Symbol.for("react.memo_cache_sentinel")?(h={zIndex:5},e[3]=h):h=e[3];let a;if(e[4]!==t.trails||e[5]!==r){let c;e[7]!==r?(c=d=>{const m=r(...d.to),f=d.from&&r(...d.from);return u.jsxs("span",{children:[f&&u.jsx("svg",{"data-testid":"trail",className:"absolute inset-0 size-full overflow-visible motion-safe:animate-[swipe-mark_0.8s_ease-out_forwards]",children:u.jsx("line",{x1:l(f.left),y1:l(f.top),x2:l(m.left),y2:l(m.top),stroke:O,strokeOpacity:d.kind==="swipe"?.7:.45,strokeWidth:d.kind==="swipe"?6:3,strokeLinecap:"round",...d.kind==="tap"?{strokeDasharray:"1 7"}:{}})}),u.jsx("span",{"data-testid":"ripple",className:"absolute size-10 rounded-full border-2 border-blue-500 opacity-0 motion-safe:animate-[tap-mark_0.7s_ease-out_0.2s_forwards]",style:{left:l(m.left),top:l(m.top),transform:"translate(-50%, -50%)"}})]},d.id)},e[7]=r,e[8]=c):c=e[8],a=t.trails.map(c),e[4]=t.trails,e[5]=r,e[6]=a}else a=e[6];let n;e[9]!==o?(n=o&&u.jsx("span",{"data-testid":"tap-cursor",className:"absolute size-7 rounded-full border-2 border-blue-500 bg-blue-500/35 shadow-[0_0_0_2px_rgba(255,255,255,0.85),0_2px_8px_rgba(0,0,0,0.3)] motion-safe:transition-[left,top] motion-safe:duration-300 motion-safe:ease-out",style:{left:l(o.left),top:l(o.top),transform:"translate(-50%, -50%)"}}),e[9]=o,e[10]=n):n=e[10];let i;return e[11]!==a||e[12]!==n?(i=u.jsxs("div",{"aria-hidden":"true","data-testid":"tap-marks",className:"pointer-events-none absolute inset-0",style:h,children:[a,n]}),e[11]=a,e[12]=n,e[13]=i):i=e[13],i}function A(s){return`${s*100}%`}const E=100,B=900,X={cursor:null,trails:[]};function q(s,e,t){return e.kind==="tap"?{id:s,kind:"tap",from:t?[t.x,t.y]:null,to:[e.x,e.y]}:{id:s,kind:"swipe",from:e.from,to:e.to}}function G(s){const e=t=>`${Math.round(t*100)}%`;switch(s.kind){case"label":return s.label;case"tap":return`Tap at ${e(s.x)}, ${e(s.y)}`;case"swipe":return`Swipe ${H(s.from,s.to)}`;case"key":return s.key==="character"?"Key (a character)":`Key ${s.key}`;case"button":return`Button ${s.button}`;case"type":return`Typed ${s.chars} ${s.chars===1?"character":"characters"}`;case"pinch":return"Pinch";case"launch":return"Launched the app";case"install":return"Installed a build";case"clear-state":return"Cleared the app's data";case"open-url":return"Opened a link"}}function H(s,e){const t=e[0]-s[0],r=e[1]-s[1];return Math.abs(t)>Math.abs(r)?t>0?"right":"left":r>0?"down":"up"}function J(s){return s.kind==="tap"||s.kind==="swipe"}function U(s){return(e,t)=>({left:(s.screenPctLeft+e*s.screenPctW)/100,top:(s.screenPctTop+t*s.screenPctH)/100})}function Q(s){const e=_.c(27),{chrome:t,deviceReady:r,platform:p,formFactor:o,binaryFrameHandlerRef:l,replay:h,screenKey:a,marks:n}=s,i=h===void 0?!1:h,[c,d]=$.useState(null),m=t!==null&&"framePng"in t?t:null,f=t!==null&&!("framePng"in t)?t:null;let k;e[0]!==f||e[1]!==r||e[2]!==o||e[3]!==p||e[4]!==i||e[5]!==m||e[6]!==c?(k=m??(r&&p==="ios"&&!f?z(c??j(o,p),i?0:void 0):null),e[0]=f,e[1]=r,e[2]=o,e[3]=p,e[4]=i,e[5]=m,e[6]=c,e[7]=k):k=e[7];const x=k;if(x){let S;return e[8]!==l||e[9]!==o||e[10]!==x||e[11]!==n||e[12]!==i||e[13]!==a?(S=u.jsx(C,{chrome:x,formFactor:o,binaryFrameHandlerRef:l,onStreamSize:d,replay:i,marks:n},a),e[8]=l,e[9]=o,e[10]=x,e[11]=n,e[12]=i,e[13]=a,e[14]=S):S=e[14],S}if(f){let S;return e[15]!==f||e[16]!==l||e[17]!==r||e[18]!==n||e[19]!==a?(S=u.jsx(L,{chrome:f,deviceReady:r,binaryFrameHandlerRef:l,marks:n},a),e[15]=f,e[16]=l,e[17]=r,e[18]=n,e[19]=a,e[20]=S):S=e[20],S}let y;e[21]===Symbol.for("react.memo_cache_sentinel")?(y={background:"#1c1c1e",borderRadius:"34px",padding:"12px"},e[21]=y):y=e[21];let b;e[22]!==o||e[23]!==p?(b=j(o,p),e[22]=o,e[23]=p,e[24]=b):b=e[24];let R;return e[25]!==b?(R=u.jsx("div",{"aria-hidden":"true",style:y,children:u.jsx("div",{"data-testid":"watch-skeleton",className:"animate-pulse bg-zinc-700",style:{...b,borderRadius:"22px"}})}),e[25]=b,e[26]=R):R=e[26],R}function C(s){const e=_.c(26),{chrome:t,formFactor:r,binaryFrameHandlerRef:p,onStreamSize:o,replay:l,marks:h}=s,{fps:a,frameCount:n}=g();let i;e[0]!==p||e[1]!==t||e[2]!==a||e[3]!==n||e[4]!==o?(i={chrome:t,binaryFrameHandlerRef:p,fps:a,frameCount:n,onCanvasResize:o},e[0]=p,e[1]=t,e[2]=a,e[3]=n,e[4]=o,e[5]=i):i=e[5];const c=W(i);let d;e[6]!==t?(d=U(M(t)),e[6]=t,e[7]=d):d=e[7];const m=d;let f;e[8]!==t.streamRotation?(f=P(t.streamRotation,!1),e[8]=t.streamRotation,e[9]=f):f=e[9];const k=!l;let x;e[10]!==h||e[11]!==m?(x=h?u.jsx(v,{marks:h,place:m}):void 0,e[10]=h,e[11]=m,e[12]=x):x=e[12];let y;e[13]!==t||e[14]!==r||e[15]!==a||e[16]!==c||e[17]!==f||e[18]!==k||e[19]!==x?(y=u.jsx(F,{screen:c,chrome:t,formFactor:r,turn:f,joined:k,fps:a,overlay:x}),e[13]=t,e[14]=r,e[15]=a,e[16]=c,e[17]=f,e[18]=k,e[19]=x,e[20]=y):y=e[20];let b;e[21]!==c.decoderUnsupported?(b=c.decoderUnsupported&&u.jsx(w,{}),e[21]=c.decoderUnsupported,e[22]=b):b=e[22];let R;return e[23]!==y||e[24]!==b?(R=u.jsxs(u.Fragment,{children:[y,b]}),e[23]=y,e[24]=b,e[25]=R):R=e[25],R}function L(s){const e=_.c(20),{chrome:t,deviceReady:r,binaryFrameHandlerRef:p,marks:o}=s,{frameCount:l}=g(),h=t.streamRotation??0;let a;e[0]!==p||e[1]!==t.bodyRotation||e[2]!==t.cornerRadius||e[3]!==t.screenHeight||e[4]!==t.screenWidth||e[5]!==l||e[6]!==h?(a={binaryFrameHandlerRef:p,frameCount:l,screenWidth:t.screenWidth,screenHeight:t.screenHeight,streamRotation:h,cornerRadius:t.cornerRadius,userWantsLandscape:!1,rotatePending:!1,bodyRotation:t.bodyRotation},e[0]=p,e[1]=t.bodyRotation,e[2]=t.cornerRadius,e[3]=t.screenHeight,e[4]=t.screenWidth,e[5]=l,e[6]=h,e[7]=a):a=e[7];const n=T(a);let i;e[8]!==o||e[9]!==n.screenTurn?(i=o?u.jsx(v,{marks:o,place:(f,k)=>{const x=I({x:f,y:k},(360-n.screenTurn)%360);return{left:x.x,top:x.y}}}):void 0,e[8]=o,e[9]=n.screenTurn,e[10]=i):i=e[10];let c;e[11]!==r||e[12]!==n||e[13]!==i?(c=u.jsx(N,{screen:n,deviceReady:r,posturePending:!1,overlay:i}),e[11]=r,e[12]=n,e[13]=i,e[14]=c):c=e[14];let d;e[15]!==n.decoderUnsupported?(d=n.decoderUnsupported&&u.jsx(w,{}),e[15]=n.decoderUnsupported,e[16]=d):d=e[16];let m;return e[17]!==c||e[18]!==d?(m=u.jsxs(u.Fragment,{children:[c,d]}),e[17]=c,e[18]=d,e[19]=m):m=e[19],m}function w(){const s=_.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=u.jsx("p",{role:"status",className:"max-w-xs text-sm text-muted-foreground",children:"Streaming is not supported in this environment."}),s[0]=e):e=s[0],e}export{E as M,X as N,Q as W,B as a,G as b,J as i,q as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import{G as a}from"./index-
|
|
2
|
-
* @license lucide-react v1.
|
|
1
|
+
import{G as a}from"./index-CiJwpDAf.js";/**
|
|
2
|
+
* @license lucide-react v1.61.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/const n={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};n.node;const i=a(n);/**
|
|
7
|
-
* @license lucide-react v1.
|
|
7
|
+
* @license lucide-react v1.61.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/const t={name:"download",size:24,node:[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]};t.node;const c=a(t);/**
|
|
12
|
-
* @license lucide-react v1.
|
|
12
|
+
* @license lucide-react v1.61.0 - ISC
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/const s={name:"house",size:24,node:[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],aliases:["home"]};s.node;const r=a(s);/**
|
|
17
|
-
* @license lucide-react v1.
|
|
17
|
+
* @license lucide-react v1.61.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
21
|
*/const o={name:"keyboard",size:24,node:[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]};o.node;const y=a(o);/**
|
|
22
|
-
* @license lucide-react v1.
|
|
22
|
+
* @license lucide-react v1.61.0 - ISC
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
25
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,j as i,c as d}from"./vendor-react-DTSdA8m-.js";import{aQ as S,a5 as u,aR as O,ad as T,aS as b,aT as E,aV as x,b7 as N,a8 as h,aO as z,aP as F,aU as H,a2 as f,aG as v}from"./index-
|
|
1
|
+
import{r as n,j as i,c as d}from"./vendor-react-DTSdA8m-.js";import{aQ as S,a5 as u,aR as O,ad as T,aS as b,aT as E,aV as x,b7 as N,a8 as h,aO as z,aP as F,aU as H,a2 as f,aG as v}from"./index-CiJwpDAf.js";var M=Object.defineProperty,c=(s,t)=>M(s,"name",{value:t,configurable:!0}),k="AlertDialog",[V,oe]=h(k,[N]),p=N(),G=c(s=>{const{__scopeAlertDialog:t,...e}=s,a=p(t);return i.jsx(z,{...a,...e,modal:!0})},"AlertDialog"),I=n.forwardRef(c(function(t,e){const{__scopeAlertDialog:a,...l}=t,o=p(a);return i.jsx(F,{...o,...l,ref:e})},"AlertDialogTrigger")),L=c(s=>{const{__scopeAlertDialog:t,...e}=s,a=p(t);return i.jsx(S,{...a,...e})},"AlertDialogPortal"),_=n.forwardRef(c(function(t,e){const{__scopeAlertDialog:a,...l}=t,o=p(a);return i.jsx(H,{...o,...l,ref:e})},"AlertDialogOverlay")),Q="AlertDialogContent",[U,q]=V(Q),y=n.forwardRef(c(function(t,e){const{__scopeAlertDialog:a,children:l,...o}=t,r=p(a),g=n.useRef(null),$=u(e,g),m=n.useRef(null);return i.jsx(U,{scope:a,cancelRef:m,children:i.jsx(O,{role:"alertdialog",...r,...o,ref:$,onOpenAutoFocus:T(o.onOpenAutoFocus,D=>{var A;D.preventDefault(),(A=m.current)==null||A.focus({preventScroll:!0})}),onPointerDownOutside:D=>D.preventDefault(),onInteractOutside:D=>D.preventDefault(),children:l})})},"AlertDialogContent")),j=n.forwardRef(c(function(t,e){const{__scopeAlertDialog:a,...l}=t,o=p(a);return i.jsx(b,{...o,...l,ref:e})},"AlertDialogTitle")),R=n.forwardRef(c(function(t,e){const{__scopeAlertDialog:a,...l}=t,o=p(a);return i.jsx(E,{...o,...l,ref:e})},"AlertDialogDescription")),C=n.forwardRef(c(function(t,e){const{__scopeAlertDialog:a,...l}=t,o=p(a);return i.jsx(x,{...o,...l,ref:e})},"AlertDialogAction")),B="AlertDialogCancel",w=n.forwardRef(c(function(t,e){const{__scopeAlertDialog:a,...l}=t,{cancelRef:o}=q(B,a),r=p(a),g=u(e,o);return i.jsx(x,{...r,...l,ref:g})},"AlertDialogCancel"));const se=G,re=I,J=L,P=n.forwardRef((s,t)=>{const e=d.c(9);let a,l;e[0]!==s?({className:a,...l}=s,e[0]=s,e[1]=a,e[2]=l):(a=e[1],l=e[2]);let o;e[3]!==a?(o=f("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),e[3]=a,e[4]=o):o=e[4];let r;return e[5]!==l||e[6]!==t||e[7]!==o?(r=i.jsx(_,{className:o,...l,ref:t}),e[5]=l,e[6]=t,e[7]=o,e[8]=r):r=e[8],r});P.displayName=_.displayName;const K=n.forwardRef((s,t)=>{const e=d.c(10);let a,l;e[0]!==s?({className:a,...l}=s,e[0]=s,e[1]=a,e[2]=l):(a=e[1],l=e[2]);let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsx(P,{}),e[3]=o):o=e[3];let r;e[4]!==a?(r=f("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/2 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/2 sm:rounded-lg",a),e[4]=a,e[5]=r):r=e[5];let g;return e[6]!==l||e[7]!==t||e[8]!==r?(g=i.jsxs(J,{children:[o,i.jsx(y,{ref:t,className:r,...l})]}),e[6]=l,e[7]=t,e[8]=r,e[9]=g):g=e[9],g});K.displayName=y.displayName;const W=s=>{const t=d.c(8);let e,a;t[0]!==s?({className:e,...a}=s,t[0]=s,t[1]=e,t[2]=a):(e=t[1],a=t[2]);let l;t[3]!==e?(l=f("flex flex-col space-y-2 text-center sm:text-left",e),t[3]=e,t[4]=l):l=t[4];let o;return t[5]!==a||t[6]!==l?(o=i.jsx("div",{className:l,...a}),t[5]=a,t[6]=l,t[7]=o):o=t[7],o};W.displayName="AlertDialogHeader";const X=s=>{const t=d.c(8);let e,a;t[0]!==s?({className:e,...a}=s,t[0]=s,t[1]=e,t[2]=a):(e=t[1],a=t[2]);let l;t[3]!==e?(l=f("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),t[3]=e,t[4]=l):l=t[4];let o;return t[5]!==a||t[6]!==l?(o=i.jsx("div",{className:l,...a}),t[5]=a,t[6]=l,t[7]=o):o=t[7],o};X.displayName="AlertDialogFooter";const Y=n.forwardRef((s,t)=>{const e=d.c(9);let a,l;e[0]!==s?({className:a,...l}=s,e[0]=s,e[1]=a,e[2]=l):(a=e[1],l=e[2]);let o;e[3]!==a?(o=f("text-lg font-semibold",a),e[3]=a,e[4]=o):o=e[4];let r;return e[5]!==l||e[6]!==t||e[7]!==o?(r=i.jsx(j,{ref:t,className:o,...l}),e[5]=l,e[6]=t,e[7]=o,e[8]=r):r=e[8],r});Y.displayName=j.displayName;const Z=n.forwardRef((s,t)=>{const e=d.c(9);let a,l;e[0]!==s?({className:a,...l}=s,e[0]=s,e[1]=a,e[2]=l):(a=e[1],l=e[2]);let o;e[3]!==a?(o=f("text-sm text-muted-foreground",a),e[3]=a,e[4]=o):o=e[4];let r;return e[5]!==l||e[6]!==t||e[7]!==o?(r=i.jsx(R,{ref:t,className:o,...l}),e[5]=l,e[6]=t,e[7]=o,e[8]=r):r=e[8],r});Z.displayName=R.displayName;const ee=n.forwardRef((s,t)=>{const e=d.c(9);let a,l;e[0]!==s?({className:a,...l}=s,e[0]=s,e[1]=a,e[2]=l):(a=e[1],l=e[2]);let o;e[3]!==a?(o=f(v(),a),e[3]=a,e[4]=o):o=e[4];let r;return e[5]!==l||e[6]!==t||e[7]!==o?(r=i.jsx(C,{ref:t,className:o,...l}),e[5]=l,e[6]=t,e[7]=o,e[8]=r):r=e[8],r});ee.displayName=C.displayName;const te=n.forwardRef((s,t)=>{const e=d.c(9);let a,l;e[0]!==s?({className:a,...l}=s,e[0]=s,e[1]=a,e[2]=l):(a=e[1],l=e[2]);let o;e[3]!==a?(o=f(v({variant:"outline"}),"mt-2 sm:mt-0",a),e[3]=a,e[4]=o):o=e[4];let r;return e[5]!==l||e[6]!==t||e[7]!==o?(r=i.jsx(w,{ref:t,className:o,...l}),e[5]=l,e[6]=t,e[7]=o,e[8]=r):r=e[8],r});te.displayName=w.displayName;export{W as A,Y as a,Z as b,te as c,K as d,X as e,ee as f,se as g,re as h};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as i,j as b}from"./vendor-react-DTSdA8m-.js";import{a2 as l,aN as g}from"./index-
|
|
1
|
+
import{c as i,j as b}from"./vendor-react-DTSdA8m-.js";import{a2 as l,aN as g}from"./index-CiJwpDAf.js";const x=g("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"text-foreground"},tone:{backlog:"border-transparent bg-zinc-100 text-zinc-600 dark:bg-zinc-800 dark:text-zinc-400",progress:"border-transparent bg-blue-50 text-blue-700 dark:bg-blue-950 dark:text-blue-300",done:"border-transparent bg-green-50 text-green-700 dark:bg-green-950 dark:text-green-300",rejected:"border-transparent bg-red-50 text-red-700 dark:bg-red-950 dark:text-red-300",ios:"border-transparent bg-sky-50 text-sky-700 dark:bg-sky-950 dark:text-sky-300",android:"border-transparent bg-emerald-50 text-emerald-700 dark:bg-emerald-950 dark:text-emerald-300"}},defaultVariants:{variant:"default"}});function u(o){const e=i.c(12);let r,t,a,n;e[0]!==o?({className:r,variant:n,tone:a,...t}=o,e[0]=o,e[1]=r,e[2]=t,e[3]=a,e[4]=n):(r=e[1],t=e[2],a=e[3],n=e[4]);let d;e[5]!==r||e[6]!==a||e[7]!==n?(d=l(x({variant:n,tone:a}),r),e[5]=r,e[6]=a,e[7]=n,e[8]=d):d=e[8];let s;return e[9]!==t||e[10]!==d?(s=b.jsx("div",{className:d,...t}),e[9]=t,e[10]=d,e[11]=s):s=e[11],s}export{u as B};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as p,c,j as n}from"./vendor-react-DTSdA8m-.js";import{aO as y,aP as j,a2 as d,aQ as $,aR as g,aS as x,aT as u,aU as N,aV as h,am as b}from"./index-
|
|
1
|
+
import{r as p,c,j as n}from"./vendor-react-DTSdA8m-.js";import{aO as y,aP as j,a2 as d,aQ as $,aR as g,aS as x,aT as u,aU as N,aV as h,am as b}from"./index-CiJwpDAf.js";const E=y,O=j,w=$,D=p.forwardRef((o,a)=>{const e=c.c(9);let s,t;e[0]!==o?({className:s,...t}=o,e[0]=o,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=d("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==t||e[6]!==a||e[7]!==l?(i=n.jsx(N,{ref:a,className:l,...t}),e[5]=t,e[6]=a,e[7]=l,e[8]=i):i=e[8],i});D.displayName=N.displayName;const R=p.forwardRef((o,a)=>{const e=c.c(13);let s,t,l;e[0]!==o?({className:t,children:s,...l}=o,e[0]=o,e[1]=s,e[2]=t,e[3]=l):(s=e[1],t=e[2],l=e[3]);let i;e[4]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(D,{}),e[4]=i):i=e[4];let r;e[5]!==t?(r=d("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/2 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/2 sm:rounded-lg",t),e[5]=t,e[6]=r):r=e[6];let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsxs(h,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",children:[n.jsx(b,{className:"h-4 w-4"}),n.jsx("span",{className:"sr-only",children:"Close"})]}),e[7]=m):m=e[7];let f;return e[8]!==s||e[9]!==l||e[10]!==a||e[11]!==r?(f=n.jsxs(w,{children:[i,n.jsxs(g,{ref:a,className:r,...l,children:[s,m]})]}),e[8]=s,e[9]=l,e[10]=a,e[11]=r,e[12]=f):f=e[12],f});R.displayName=g.displayName;const v=o=>{const a=c.c(8);let e,s;a[0]!==o?({className:e,...s}=o,a[0]=o,a[1]=e,a[2]=s):(e=a[1],s=a[2]);let t;a[3]!==e?(t=d("flex flex-col space-y-1.5 text-center sm:text-left",e),a[3]=e,a[4]=t):t=a[4];let l;return a[5]!==s||a[6]!==t?(l=n.jsx("div",{className:t,...s}),a[5]=s,a[6]=t,a[7]=l):l=a[7],l};v.displayName="DialogHeader";const T=o=>{const a=c.c(8);let e,s;a[0]!==o?({className:e,...s}=o,a[0]=o,a[1]=e,a[2]=s):(e=a[1],s=a[2]);let t;a[3]!==e?(t=d("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),a[3]=e,a[4]=t):t=a[4];let l;return a[5]!==s||a[6]!==t?(l=n.jsx("div",{className:t,...s}),a[5]=s,a[6]=t,a[7]=l):l=a[7],l};T.displayName="DialogFooter";const k=p.forwardRef((o,a)=>{const e=c.c(9);let s,t;e[0]!==o?({className:s,...t}=o,e[0]=o,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=d("text-lg font-semibold leading-none tracking-tight",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==t||e[6]!==a||e[7]!==l?(i=n.jsx(x,{ref:a,className:l,...t}),e[5]=t,e[6]=a,e[7]=l,e[8]=i):i=e[8],i});k.displayName=x.displayName;const z=p.forwardRef((o,a)=>{const e=c.c(9);let s,t;e[0]!==o?({className:s,...t}=o,e[0]=o,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=d("text-sm text-muted-foreground",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==t||e[6]!==a||e[7]!==l?(i=n.jsx(u,{ref:a,className:l,...t}),e[5]=t,e[6]=a,e[7]=l,e[8]=i):i=e[8],i});z.displayName=u.displayName;export{O as D,v as a,k as b,R as c,E as d,z as e,T as f};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,j as c}from"./vendor-react-DTSdA8m-.js";import{a2 as a}from"./index-
|
|
1
|
+
import{c as n,j as c}from"./vendor-react-DTSdA8m-.js";import{a2 as a}from"./index-CiJwpDAf.js";function x(m){const t=n.c(6),{id:o,children:r,className:i}=m;let e;t[0]!==i?(e=a("text-sm text-muted-foreground",i),t[0]=i,t[1]=e):e=t[1];let s;return t[2]!==r||t[3]!==o||t[4]!==e?(s=c.jsx("p",{id:o,className:e,children:r}),t[2]=r,t[3]=o,t[4]=e,t[5]=s):s=t[5],s}export{x as F};
|
|
Binary file
|