import{b as f,h,$ as j,k as I,i as b,j as t,_ as m}from"./main.2.8.1.js";import{u as C,h as w,d as l}from"./react-router-dom.9mCuUg3q.js";import{S}from"./SnackMsg.S8DrwLlT.js";import"./Note.BeM7sN-p.js";import{S as _,I as v,s as N}from"./Integrations.D2bgBas2.js";import{h as c,A as k,c as y}from"./AffiliateIntegLayout.DfuYkaxn.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";import"./TagifyInput.Cu0YIRbG.js";import"./tagify.YxUZd8Ix.js";function B({allIntegURL:p}){const x=C(),{formID:g}=w(),[e,s]=f(h),[o,A]=f(j),r=I(b),[i,d]=l.useState(!1),[u,a]=l.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(S,{snack:u,setSnackbar:a}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:m("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:n=>c(n,e,s),name:"name",value:e.name,type:"text",placeholder:m("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(_,{entity:o.triggered_entity,setSnackbar:a}),t.jsx(k,{formID:g,formFields:r,handleInput:n=>c(n,e,s),affiliateConf:e,setAffiliateConf:s,isLoading:i,setIsLoading:d,setSnackbar:a}),t.jsx(v,{edit:!0,saveConfig:()=>N({flow:o,allIntegURL:p,conf:e,navigate:x,edit:1,setIsLoading:d,setSnackbar:a}),disabled:!y(e)||!e.statusId||!e.referralId||i,isLoading:i,dataConf:e,setDataConf:s,formFields:r}),t.jsx("br",{})]})}export{B as default};
