"use strict";(globalThis.webpackChunk_clerk_ui=globalThis.webpackChunk_clerk_ui||[]).push([["394"],{17396:function(e,t,o){o.d(t,{n:()=>n});var i=o(61564);o(35074);var l=o(86705);let n=e=>{let{modalRoot:t,containerSx:o,...n}=e;return(0,i.Y)(l.Modal,{...n,portalRoot:t,containerSx:[[{alignItems:"center"},t?e=>({position:"absolute",insetInlineEnd:0,bottom:0,backgroundColor:"inherit",backdropFilter:"blur(".concat(e.sizes.$2,")"),display:"flex",justifyContent:"center",minHeight:"100%",height:"100%",width:"100%",borderRadius:e.radii.$lg}):{}],o]})}},28169:function(e,t,o){o.d(t,{CopyAPIKeyModal:()=>C});var i=o(61564),l=o(58920),n=o(92513),r=o(23707),a=o(95559),c=o(52454),s=o(11475),d=o(23549),p=o(27782),u=o(17630),h=o(92405),y=o(22861),m=o(8640),b=o(17396);let C=e=>{let{isOpen:t,onOpen:o,onClose:C,apiKeyName:g,apiKeySecret:f,modalRoot:K}=e,Y=(0,m.tJ)("apiKeySecret",f,{type:"text",label:(0,y.G)("formFieldLabel__apiKey"),isRequired:!1}),{onCopy:$}=(0,p.i)(f),{close:k}=(0,n.D5)();return t?(0,i.Y)(b.n,{handleOpen:o,handleClose:C,canCloseModal:!1,modalRoot:K,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:"".concat(e.sizes.$4," ").concat(e.sizes.$5," ").concat(e.sizes.$4," ").concat(e.sizes.$6)}),children:(0,i.Y)(d.M,{headerTitle:(0,y.G)("apiKeys.copySecret.formTitle",{name:g}),headerSubtitle:(0,y.G)("apiKeys.copySecret.formHint"),children:(0,i.FD)(c.l.Root,{onSubmit:()=>{$(),C(),setTimeout(()=>{k()},100)},children:[(0,i.Y)(c.l.ControlRow,{elementDescriptor:l.$z.apiKeysCopyModalInput,sx:{flex:1},children:(0,i.Y)(c.l.CommonInputWrapper,{...Y.props,children:(0,i.Y)(a.r,{value:f,readOnly:!0,sx:{width:"100%"},copyIcon:u.A,copiedIcon:h.A})})}),(0,i.Y)(s.G,{submitLabel:(0,y.G)("apiKeys.copySecret.formButtonPrimary__copyAndClose"),hideReset:!0,elementDescriptor:l.$z.apiKeysCopyModalSubmitButton})]})})})})}):null}}}]);