import{h as m,g as h,$ as u,k as b,i as j,j as e,_ as c}from"./main.2.9.0.js";import{u as C,e as _,b as d}from"./react-router.DMwpH23k.js";import{S as F}from"./SnackMsg.DYSD96P4.js";import"./Note.NSUdvR3c.js";import"./CopyIcn.CEA_lFLo.js";import{S as I,I as w,s as S}from"./Integrations.DL8wqGct.js";import{h as v,T as y,c as N}from"./TeamsForWooCommerceMembershipsIntegLayout.Bi6wDp6i.js";import"./react-vendor.P7K3d6op.js";import"./Table.BfF8RYFZ.js";import"./index.DpWdl9V1.js";import"./ProUtilHelpers.CHf_DzPf.js";import"./TagifyInput.KPPRQJ1B.js";import"./lodash.DCvQBX3r.js";import"./GlobalIntegrationHelper.B6YI8w_n.js";function H({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{H as default};
