import{b as d,h,$ as j,k as S,i as b,j as t,_ as i}from"./main.2.8.1.js";import{u as _,d as c}from"./react-router-dom.9mCuUg3q.js";import{S as w}from"./SnackMsg.S8DrwLlT.js";import{S as C,I,s as v}from"./Integrations.D2bgBas2.js";import{h as y,S as N,c as p}from"./SeoPressIntegLayout.Dogrb8A5.js";import"./Note.BeM7sN-p.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:l}){const f=_(),[e,a]=d(h),[o,k]=d(j),n=S(b),[r,m]=c.useState(!1),[g,s]=c.useState({show:!1}),x=()=>{if(!p(e)){s({show:!0,msg:i("Please map mandatory fields","bit-integrations")});return}v({flow:o,allIntegURL:l,conf:e,navigate:f,edit:1,setIsLoading:m,setSnackbar:s})};return t.jsxs("div",{style:{width:900},children:[t.jsx(w,{snack:g,setSnackbar:s}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:i("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:u=>y(u,e,a),name:"name",value:e.name,type:"text",placeholder:i("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(C,{entity:o.triggered_entity_id}),t.jsx(N,{formID:o.triggered_entity_id,formFields:n,seoPressConf:e,setSeoPressConf:a,isLoading:r,setIsLoading:m,setSnackbar:s}),t.jsx(I,{edit:!0,saveConfig:x,disabled:!p(e),isLoading:r,dataConf:e,setDataConf:a,formFields:n}),t.jsx("br",{})]})}export{G as default};
