import{a as x,u as b,J as j,j as o,s as v,_ as i,W as C}from"./main-343.js";import{e as A,P as z}from"./bf-649-79.js";import{z as f,w as N,c as Z,i as k,d as I,p as S,e as w,g as M,m as T,f as W,h as P,j as _,k as B,l as F,n as $,o as D,t as R,q as H,r as L,A as E,u as G,v as O,x as J,y as U,B as V,D as q,F as K,G as Q,H as X,I as Y,J as oo,K as eo,L as to,M as ao,N as so,O as lo,P as io,Q as no,R as go,S as ro,T as po,U as co,V as mo,W as yo,X as ho,Y as uo,Z as xo,_ as bo,$ as jo,a0 as vo,a1 as Co,a2 as Ao,a3 as zo,a}from"./bf-659-81.js";const n=[{type:"Zoho CRM",logo:f},{type:"Web Hooks",logo:N},{type:"Zapier",logo:Z},{type:"Integromat",logo:k,title:"Make(Ingegromat)"},{type:"Integrately",logo:I},{type:"Pabbly",logo:S},{type:"Zoho Flow",logo:w},{type:"Google Sheet",logo:M},{type:"Mail Chimp",logo:T},{type:"ACF",logo:W},{type:"MetaBox",logo:P},{type:"Pods",logo:_},{type:"Mail Poet",logo:B},{type:"Brevo(SendinBlue)",logo:F,title:"Brevo(SendinBlue)"},{type:"WooCommerce",logo:$},{type:"ActiveCampaign",logo:D},{type:"Telegram",logo:R},{type:"Fluent CRM",logo:H},{type:"Autonami",logo:L},{type:"Acumbamail",logo:E},{type:"OneDrive",logo:G},{type:"Dropbox",logo:O},{type:"Encharge",logo:J},{type:"Rapidmail",logo:U},{type:"Hubspot",logo:V},{type:"Getgist",logo:q},{type:"ElasticEmail",logo:K},{type:"Groundhogg",logo:Q},{type:"SendFox",logo:X},{type:"Zoho Recruit",logo:Y},{type:"Zoho Analytics",logo:oo},{type:"Zoho Campaigns",logo:eo},{type:"Zoho WorkDrive",logo:to},{type:"Zoho Desk",logo:ao},{type:"Zoho Mail",logo:so},{type:"Zoho Sheet",logo:lo},{type:"Zoho Projects",logo:io},{type:"Zoho Sign",logo:no},{type:"Zoho Marketing Hub",logo:go},{type:"Zoho Creator",logo:ro},{type:"Zoho Bigin",logo:po},{type:"MailerLite",logo:co},{type:"Twilio",logo:mo},{type:"FlowMattic",logo:yo},{type:"AutomatorWP",logo:ho},{type:"Uncanny Automator",logo:uo},{type:"Automate Hub SperseIO",logo:xo},{type:"Thrive Automator",logo:bo},{type:"WP Webhooks",logo:jo},{type:"Advanced Form Integration",logo:vo},{type:"IFTTT",logo:Co},{type:"N8NIO",logo:Ao},{type:"SureTriggers",logo:zo}],Io=({allIntegURL:c,specificTypes:g=[],onClickAction:m=()=>{},allowAddNew:y,addNewAction:h=()=>{},deleteAction:r})=>{const{css:t}=x(),p=b(j),d=["WooCommerce"],l=g.length?p.filter(e=>g.includes(e.integration_type)):p,u=e=>{for(let s=0;s<n.length;s+=1)if(n[s].type===e)return o.jsx("img",{tabIndex:-1,className:t(a.integLogo),alt:e||"bitform integration logo",loading:"lazy",src:n[s].logo});return null};return o.jsxs("div",{className:`flx flx-center flx-wrp pb-3 mt-2 ${t({gp:10})}`,children:[l==null?void 0:l.map((e,s)=>o.jsxs("div",{role:"button",onClick:fo=>m(e,s),className:t(a.itegCard),children:[o.jsx("div",{children:u(e.integration_type)}),o.jsxs("div",{className:"py-1",title:`${e.integration_name} | ${e.integration_type}`,children:[d.includes(e.integration_type)?o.jsx("p",{className:t(a.integTitle),children:e.inte.integration_name}):o.jsx(v,{to:`${c}/app-info/${e.id}`,className:t(a.integTitle),children:e.integration_name}),o.jsx("small",{className:t(a.integSubtitle),children:e.integration_type})]}),o.jsx("div",{className:`${t(a.actionWrp)} action-wrp`,children:r&&o.jsx(A,{msg:i("Delete"),children:o.jsx("button",{className:`${t(a.actionBtn)}`,onClick:()=>r(e),type:"button","aria-label":"App Delete Button",children:o.jsx(C,{size:18})})})})]},`inte-${s+3}`)),y&&o.jsxs("div",{role:"button",onClick:h,className:t(a.itegCard),children:[o.jsx("div",{children:o.jsx(z,{size:40})}),o.jsxs("div",{className:"py-1",children:[o.jsx("p",{className:t(a.integTitle),children:i("Add New")}),o.jsx("small",{className:t(a.integSubtitle),children:i("App")})]})]})]})};export{Io as C,n as i};
