1import{af as e,aC as d}from"./vendor-BgWhiDrf.js";import{aS as g,aT as m,aU as h,b as p,aV as x,D as y,S as j,i as C,aW as k,C as v,aX as D,aY as F,L as P,aZ as S}from"./main-COyT_q74.js";import"./bounded-range-fetch-CggGfMWc.js";import"./vendor-charts-34qQJjVh.js";const L=o=>{const r=g(),{data:t,isLoading:i}=m(void 0,{select:a=>{var s;return(s=a.pagerduty_credentials)==null?void 0:s[0]}}),n=o.onClose||(()=>c("/alerting/recipients")),l=h({onSubmit:async a=>{await r.mutateAsync({api_key:a.api_key}),n()},values:{api_key:""}}),c=p(),u=e.jsx(v,{gap:6,children:e.jsx(D,{label:"PagerDuty API key",description:e.jsxs(e.Fragment,{children:["Don't have an API key?"," ",e.jsxs(P,{isExternal:!0,href:"https://hightouch.com/docs/syncs/pagerduty/",children:["Read the docs ",e.jsx(S,{})]})," ","to learn how to generate one."]}),children:e.jsx(d,{name:"api_key",render:({field:a})=>e.jsx(F,{isHidden:!!(t!=null&&t.id),value:a.value,onChange:a.onChange})})})});return e.jsx(x,{form:l,children:e.jsx(y,{isOpen:!0,variant:"form",width:"lg",title:"Manage PagerDuty credentials",actions:e.jsxs(e.Fragment,{children:[e.jsx(C,{onClick:n,children:"Cancel"}),e.jsx(k,{size:"md"})]}),onClose:n,children:i?e.jsx(j,{size:"lg",m:"auto"}):u})})};export{L as PagerDutyForm}; 2//# sourceMappingURL=pagerduty-form-xpoinzN4.js.map
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.