import{u as h,k as j,d as l,h as I,r as f,j as t}from"./main-406.js";import{g as b,$ as C,h as w,d as _,_ as c,i as v,I as N,s as S}from"./bi.394.85.js";import{h as m,A as k,c as y}from"./bi.19.805.js";import"./bi.704.707.js";import"./bi.701.708.js";function D({allIntegURL:p}){const x=h(),{formID:g}=j(),[e,s]=l(b),[o,A]=l(C),r=I(w),[n,d]=f.useState(!1),[u,a]=f.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(_,{snack:u,setSnackbar:a}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:c("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:i=>m(i,e,s),name:"name",value:e.name,type:"text",placeholder:c("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(v,{entity:o.triggered_entity,setSnackbar:a}),t.jsx(k,{formID:g,formFields:r,handleInput:i=>m(i,e,s),affiliateConf:e,setAffiliateConf:s,isLoading:n,setIsLoading:d,setSnackbar:a}),t.jsx(N,{edit:!0,saveConfig:()=>S({flow:o,allIntegURL:p,conf:e,navigate:x,edit:1,setIsLoading:d,setSnackbar:a}),disabled:!y(e)||!e.statusId||!e.referralId||n,isLoading:n,dataConf:e,setDataConf:s,formFields:r}),t.jsx("br",{})]})}export{D as default};
