import{h as m,g,$ as j,k as C,i as h,j as t,_ as c}from"./main.2.8.10.js";import{u as S,e as b,b as d}from"./react-router.DMwpH23k.js";import{S as I}from"./SnackMsg.7BjcJK1j.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.js";import{S as _,I as w,s as v}from"./Integrations.BFhED4ck.js";import{S as N}from"./SureCartIntegLayout.Cp3NnZnu.js";import{h as k,c as y}from"./SureCartCommonFunc.BMCUv7ZG.js";import"./react-vendor.P7K3d6op.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";import"./TagifyInput.C4ilRm4k.js";import"./lodash.DCvQBX3r.js";function H({allIntegURL:p}){const l=S(),{formID:f}=b(),[e,a]=m(g),[n,F]=m(j),i=C(h),[o,r]=d.useState(!1),[x,s]=d.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(I,{snack:x,setSnackbar:s}),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:u=>k(u,e,a),name:"name",value:e.name,type:"text",placeholder:c("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(_,{entity:n.triggered_entity,setSnackbar:s}),t.jsx(N,{formID:f,formFields:i,sureCartConf:e,setSureCartConf:a,isLoading:o,setIsLoading:r,setSnackbar:s}),t.jsx(w,{edit:!0,saveConfig:()=>v({flow:n,allIntegURL:p,conf:e,navigate:l,edit:1,setIsLoading:r,setSnackbar:s}),disabled:!e.mainAction||o||!y(e.field_map),isLoading:o,dataConf:e,setDataConf:a,formFields:i}),t.jsx("br",{})]})}export{H as default};
