PageSourceSearch

https://app.courier.com/_next/static/chunks/5564.8f8de666dd97d909.js

js courier.com collected 2026-09-24 09:01:03 UTC 2,092 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5564],{5564:function(e,a,t){t.r(a);var n=t(98788),s=t(70865),i=t(96670),r=t(87394),l=t(22970),c=t(52322),u=t(2784),o=t(33477),d=t(33379),m=t(3337),h=t(81797),f=t(19557),p=t(22063),y=t(63955),x=t(5632),b=t(17276);a.default=function(e){var a,t,N=e.id,g=e.name,v=e.mutationType,j=e.onClose,k=(0,x.useRouter)(),A=(0,b.V$)(),w=(0,r.Z)((0,d.D)(o.Pg),1)[0],K=(0,r.Z)((0,d.D)(o.lY),1)[0],Z=(0,y.cI)({defaultValues:{matchingApiKeyName:""}}),_=Z.register,C=Z.handleSubmit,P=Z.formState,T=(0,u.useState)(!1),q=T[0],I=T[1],S=function(){var e=(0,n.Z)((function(e){return(0,l.__generator)(this,(function(a){switch(a.label){case 0:return I(!0),e.matchingApiKeyName!==g?[2]:"delete"!==v?[3,2]:[4,w({variables:{id:N},refetchQueries:[{query:o.TJ}]})];case 1:a.sent(),k.push(A.settings.apiKeys.index),a.label=2;case 2:return"rotate"!==v?[3,4]:[4,K({variables:{id:N},refetchQueries:[{query:o.TJ}]})];case 3:a.sent(),j(),a.label=4;case 4:return I(!1),[2]}}))}));return function(a){return e.apply(this,arguments)}}();return(0,c.jsx)("form",{onSubmit:C(S),children:(0,c.jsxs)(m.ZP,{className:"w-[500px]",children:[(0,c.jsx)(m.MM,{title:"Are you sure you want to ".concat(v," your API key?")}),(0,c.jsxs)(m.R3,{className:"flex-col gap-4 text-left",children:[""!==g&&(0,c.jsx)(h.default,(0,i.Z)((0,s.Z)({},_("matchingApiKeyName",{required:"Required",maxLength:64,validate:function(e){return e===g||"Name doesn't match"}})),{className:"max-w-xl",disabled:q,label:"Type the API key name to ".concat(v),placeholder:"API Key Name",error:null===P||void 0===P||null===(a=P.errors)||void 0===a||null===(t=a.matchingApiKeyName)||void 0===t?void 0:t.message})),(0,c.jsx)(f.default,{variant:"semibold-sm",className:"text-red",children:"This action cannot be undone."}),(0,c.jsxs)("div",{className:"flex items-center gap-4",children:[(0,c.jsx)(p.default,{type:"button",disabled:q,onClick:j,children:"Cancel"}),(0,c.jsx)(p.default,{disabled:q,type:"submit",variant:"cancel",className:"capitalize",children:q?"Loading...":"".concat(v," key")})]})]})]})})}}}]);

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.