import{h as d,g as h,$ as j,k as S,i as b,j as t,_ as i}from"./main.2.9.0.js";import{u as _,b as p}from"./react-router.DMwpH23k.js";import{S as w}from"./SnackMsg.DYSD96P4.js";import{S as C,I,s as v}from"./Integrations.DL8wqGct.js";import{h as y,S as N,c}from"./SeoPressIntegLayout.CJXBp5Lh.js";import"./react-vendor.P7K3d6op.js";import"./Note.NSUdvR3c.js";import"./CopyIcn.CEA_lFLo.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:l}){const f=_(),[e,a]=d(h),[o,k]=d(j),n=S(b),[r,m]=p.useState(!1),[g,s]=p.useState({show:!1}),x=()=>{if(!c(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:!c(e),isLoading:r,dataConf:e,setDataConf:a,formFields:n}),t.jsx("br",{})]})}export{H as default};
