import{u as h,k as u,d as c,h as j,r as d,j as s}from"./main-333.js";import{g as _,$ as b,h as F,d as w,_ as l,i as I,I as v,s as S}from"./bi.636.93.js";import{F as k}from"./bi.536.803.js";import{h as y,c as C,a as N}from"./bi.123.804.js";import"./bi.535.730.js";import"./bi.286.731.js";function P({allIntegURL:m}){const p=h(),{formID:x}=u(),[t,a]=c(_),[i,E]=c(b),o=j(F),[n,r]=d.useState(!1),[g,e]=d.useState({show:!1});return s.jsxs("div",{style:{width:900},children:[s.jsx(w,{snack:g,setSnackbar:e}),s.jsxs("div",{className:"flx mt-3",children:[s.jsx("b",{className:"wdt-200 d-in-b",children:l("Integration Name:","bit-integrations")}),s.jsx("input",{className:"btcd-paper-inp w-5",onChange:f=>y(f,t,a),name:"name",value:t.name,type:"text",placeholder:l("Integration Name...","bit-integrations")})]}),s.jsx("br",{}),s.jsx("br",{}),s.jsx(I,{entity:i.triggered_entity,setSnackbar:e}),s.jsx(k,{formID:x,formFields:o,freshdeskConf:t,setFreshdeskConf:a,isLoading:n,setIsLoading:r,setSnackbar:e}),s.jsx(v,{edit:!0,saveConfig:()=>S({flow:i,allIntegURL:m,conf:t,navigate:p,edit:1,setIsLoading:r,setSnackbar:e}),disabled:!t.priority||!t.status||!C(t==null?void 0:t.field_map)||t.contactShow&&!N(t==null?void 0:t.field_map_contact)||n,isLoading:n,dataConf:t,setDataConf:a,formFields:o}),s.jsx("br",{})]})}export{P as default};
