"use strict";(globalThis.webpackChunk_clerk_ui=globalThis.webpackChunk_clerk_ui||[]).push([["394"],{7396:function(e,t,o){o.d(t,{n:()=>n});var i=o(1564);o(5074);var l=o(6705);let n=({modalRoot:e,containerSx:t,...o})=>(0,i.Y)(l.Modal,{...o,portalRoot:e,containerSx:[[{alignItems:"center"},e?e=>({position:"absolute",insetInlineEnd:0,bottom:0,backgroundColor:"inherit",backdropFilter:`blur(${e.sizes.$2})`,display:"flex",justifyContent:"center",minHeight:"100%",height:"100%",width:"100%",borderRadius:e.radii.$lg}):{}],t]})},8169:function(e,t,o){o.d(t,{CopyAPIKeyModal:()=>C});var i=o(1564),l=o(8920),n=o(2513),r=o(6088),a=o(5559),s=o(2454),d=o(1475),p=o(3549),c=o(7782),u=o(7630),h=o(2405),y=o(2861),m=o(8640),b=o(7396);let C=({isOpen:e,onOpen:t,onClose:o,apiKeyName:C,apiKeySecret:$,modalRoot:g})=>{let f=(0,m.tJ)("apiKeySecret",$,{type:"text",label:(0,y.G)("formFieldLabel__apiKey"),isRequired:!1}),{onCopy:K}=(0,c.i)($),{close:Y}=(0,n.D5)();return e?(0,i.Y)(b.n,{handleOpen:t,handleClose:o,canCloseModal:!1,modalRoot:g,children:(0,i.Y)(r.Z.Root,{role:"alertdialog",elementDescriptor:l.$z.apiKeysCopyModal,children:(0,i.Y)(r.Z.Content,{sx:e=>({textAlign:"start",padding:`${e.sizes.$4} ${e.sizes.$5} ${e.sizes.$4} ${e.sizes.$6}`}),children:(0,i.Y)(p.M,{headerTitle:(0,y.G)("apiKeys.copySecret.formTitle",{name:C}),headerSubtitle:(0,y.G)("apiKeys.copySecret.formHint"),children:(0,i.FD)(s.l.Root,{onSubmit:()=>{K(),o(),setTimeout(()=>{Y()},100)},children:[(0,i.Y)(s.l.ControlRow,{elementDescriptor:l.$z.apiKeysCopyModalInput,sx:{flex:1},children:(0,i.Y)(s.l.CommonInputWrapper,{...f.props,children:(0,i.Y)(a.r,{value:$,readOnly:!0,sx:{width:"100%"},copyIcon:u.A,copiedIcon:h.A})})}),(0,i.Y)(d.G,{submitLabel:(0,y.G)("apiKeys.copySecret.formButtonPrimary__copyAndClose"),hideReset:!0,elementDescriptor:l.$z.apiKeysCopyModalSubmitButton})]})})})})}):null}}}]);