import{a as x,u as b,G as j,j as o,s as v,_ as i,Q as C,cb as A}from"./main-634.js";import{z,w as f,c as N,i as Z,d as k,p as I,e as S,g as w,m as M,f as T,h as W,j as _,k as P,l as B,n as F,o as $,t as D,q as R,r as H,A as L,u as G,v as E,x as O,y as Q,B as U,D as V,F as q,G as J,H as K,I as X,J as Y,K as oo,L as eo,M as to,N as ao,O as so,P as lo,Q as io,R as no,S as go,T as ro,U as po,V as co,W as mo,X as yo,Y as ho,Z as uo,_ as xo,$ as bo,a0 as jo,a1 as vo,a2 as Co,a3 as Ao,a}from"./bf-746-82.js";import{e as zo}from"./bf-25-81.js";const n=[{type:"Zoho CRM",logo:z},{type:"Web Hooks",logo:f},{type:"Zapier",logo:N},{type:"Integromat",logo:Z,title:"Make(Ingegromat)"},{type:"Integrately",logo:k},{type:"Pabbly",logo:I},{type:"Zoho Flow",logo:S},{type:"Google Sheet",logo:w},{type:"Mail Chimp",logo:M},{type:"ACF",logo:T},{type:"MetaBox",logo:W},{type:"Pods",logo:_},{type:"Mail Poet",logo:P},{type:"Brevo(SendinBlue)",logo:B,title:"Brevo(SendinBlue)"},{type:"WooCommerce",logo:F},{type:"ActiveCampaign",logo:$},{type:"Telegram",logo:D},{type:"Fluent CRM",logo:R},{type:"Autonami",logo:H},{type:"Acumbamail",logo:L},{type:"OneDrive",logo:G},{type:"Dropbox",logo:E},{type:"Encharge",logo:O},{type:"Rapidmail",logo:Q},{type:"Hubspot",logo:U},{type:"Getgist",logo:V},{type:"ElasticEmail",logo:q},{type:"Groundhogg",logo:J},{type:"SendFox",logo:K},{type:"Zoho Recruit",logo:X},{type:"Zoho Analytics",logo:Y},{type:"Zoho Campaigns",logo:oo},{type:"Zoho WorkDrive",logo:eo},{type:"Zoho Desk",logo:to},{type:"Zoho Mail",logo:ao},{type:"Zoho Sheet",logo:so},{type:"Zoho Projects",logo:lo},{type:"Zoho Sign",logo:io},{type:"Zoho Marketing Hub",logo:no},{type:"Zoho Creator",logo:go},{type:"Zoho Bigin",logo:ro},{type:"MailerLite",logo:po},{type:"Twilio",logo:co},{type:"FlowMattic",logo:mo},{type:"AutomatorWP",logo:yo},{type:"Uncanny Automator",logo:ho},{type:"Automate Hub SperseIO",logo:uo},{type:"Thrive Automator",logo:xo},{type:"WP Webhooks",logo:bo},{type:"Advanced Form Integration",logo:jo},{type:"IFTTT",logo:vo},{type:"N8NIO",logo:Co},{type:"SureTriggers",logo:Ao}],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(zo,{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(A,{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};
