1import{t as h,m as x,r as p,j as e,S as d,T as l,z as c,C as u,M as g,B as o,e as f,D as j,E as b,F as y,H as w,q as C}from"./index-Ece0SzLF.js";import{D as k}from"./index-Ccdvv-Ym.js";import{C as A,M as D}from"./CreateAPIKeyDialog-BH2KEwzh.js";import{A as v}from"./ApiEndPointsContainer-DYh6Nh5s.js";import{S as E}from"./index-Bt85QxWQ.js";import"./Divider-Bs8bn83h.js";import"./constants-B3KI1w04.js";import"./DialogHeader-Bfgcxt23.js";import"./DialogContent-CXY4PECt.js";import"./index-DlssC2RQ.js";import"./index-xtp0spi8.js";import"./TextField-BfNPitYc.js";import"./InputAdornment-jm20PLMy.js";import"./DialogActions-BQQjYYyh.js";import"./PlayArrowRounded-Bchmioqc.js";import"./Tooltip-qdTI5Uu7.js";import"./Popper-BtfpxQmG.js";import"./Skeleton-yr-xJnZm.js";import"./index-DZJ5gjct.js";import"./misc-BH7W-5h-.js";import"./Collapse-4Rms8Wb5.js";const P=()=>{const{trackMixpanelEvent:r}=h(),{activeApiKeys:s}=x(t=>t.workspace),[a,i]=p.useState(!1);return e.jsxs(e.Fragment,{children:[e.jsxs(d,{gap:3,sx:t=>({borderRadius:4,border:"1px solid",padding:"16px",borderColor:"divider",flexDirection:"row",width:"100%",justifyContent:"space-between",[t.breakpoints.down("sm")]:{flexDirection:"column"}}),children:[e.jsxs(d,{gap:1,px:2,flexDirection:"column",justifyContent:"center",sx:t=>({width:"50%",[t.breakpoints.down("sm")]:{width:"100%"}}),children:[e.jsx(l,{variant:"h4",sx:{backgroundImage:c,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",width:"fit-content"},children:"Generate Key"}),e.jsx(l,{variant:"body1",color:"text.secondary",children:"Create a Key to get started with Murf API"})]}),e.jsxs(u,{elevation:0,component:d,gap:1,sx:t=>({borderRadius:2,border:"1px solid",borderColor:"divider",py:3,justifyContent:"center",width:"50%",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:"rgba(197, 192, 209, 0.12)"},[t.breakpoints.down("sm")]:{width:"100%"}}),onClick:()=>{i(!0),r(g.GENERATE_KEY_START,{"Key Type":s.length>0?"additional":"new",entryPoint:"Dashboard"})},children:[e.jsx(o,{sx:{backgroundImage:c,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"},children:e.jsx("img",{src:f({imageNameWithExtension:"AddRounded.svg"}),alt:"Generate Key",style:{width:64,height:64,transition:"filter 0.3s ease"}})}),e.jsx(l,{variant:"body1",children:"Generate an API Key"})]})]}),e.jsx(j,{open:a,fullWidth:!0,maxWidth:"sm",children:e.jsx(A,{onClose:()=>i(!1),keyCreationEntryPoint:"Dashboard"})})]})},X=()=>{const[r,s]=p.useState(!1),{promoCodeDetails:a}=x(n=>n.workspace),{showSuccess:i}=b();p.useEffect(()=>{const n=y();if(a?.couponApplied||n!==null){const m=a?.creditAmount||n;i(e.jsxs("div",{children:[e.jsx("span",{children:"Congratulations!"}),e.jsx("br",{}),e.jsxs("span",{children:["You have received $",m," in your account!"]})]}),{horizontal:"right",vertical:"top"}),w()}},[]);const t=C();return e.jsxs(e.Fragment,{children:[e.jsx(k,{onMenuClick:()=>s(!r),mobileDrawerOpen:r}),e.jsx(D,{children:e.jsxs(o,{sx:{display:"flex",width:"100%"},children:[e.jsx(E,{mobileDrawerOpen:r,setMobileDrawerOpen:s}),e.jsx(o,{sx:{flex:1,display:"flex",justifyContent:"center",alignItems:"flex-start",pt:4,marginTop:"66px"},children:e.jsxs(o,{sx:{display:"grid",gridTemplateColumns:"minmax(315px, 1fr)",gap:2.25,maxWidth:"960px",width:"100%"},children:[e.jsx(o,{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:.5,children:e.jsx(l,{variant:"h4",fontWeight:700,sx:{wordBreak:"break-word",overflowWrap:"break-word"},children:`Welcome ${t?.displayName??""}!`})}),e.jsx(P,{}),e.jsx(v,{isUsagePage:!1})]})})]})})]})};export{X as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.