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