var o=Object.defineProperty;var d=Object.getOwnPropertySymbols;var c=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var n=(e,r,t)=>r in e?o(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,s=(e,r)=>{for(var t in r||(r={}))c.call(r,t)&&n(e,t,r[t]);if(d)for(var t of d(r))F.call(r,t)&&n(e,t,r[t]);return e};import{_ as a}from"./bi.394.85.js";const f=(e,r,t)=>{const l=s({},r),{name:i}=e.target;e.target.value!==""?l[i]=e.target.value:delete l[i],t(s({},l))},h=(e,r,t,l,i,u)=>{if(!e.numberID||!e.businessAccountID||!e.token){t({clientId:e.clientId?"":a("Number Id, Bussness Id and Access Token can't be empty or invalid","bit-integrations")});return}t({}),i(!0),l(!0),u({show:!0,msg:a("Authorized Successfully","bit-integrations")}),i(!1)},p=e=>{const r=e==null?void 0:e.whatsAppFields.filter(t=>t.required===!0);return r.length>0?r.map(t=>({formField:"",whatsAppFormField:t.key})):[{formField:"",whatsAppFormField:""}]},b=e=>!((e.field_map?e.field_map.filter(t=>t.formField&&t.whatsAppFormField):[]).length>0);export{h as a,b as c,p as g,f as h};
