HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-172-31-4-197 6.8.0-1036-aws #38~22.04.1-Ubuntu SMP Fri Aug 22 15:44:33 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wordpress/wp-content/plugins/bit-integrations/assets/bi.829.907.js
var w=Object.defineProperty;var y=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var _=(i,s,t)=>s in i?w(i,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[s]=t,o=(i,s)=>{for(var t in s||(s={}))L.call(s,t)&&_(i,t,s[t]);if(y)for(var t of y(s))M.call(s,t)&&_(i,t,s[t]);return i};import{f as R,j as e,L as k}from"./main-685.js";import{d as O,_ as n}from"./bi.878.0.js";import{a as S,M as T,b as D}from"./bi.776.3.js";import{r as P,a as $}from"./bi.617.906.js";import{T as E}from"./bi.601.11.js";function G({i,formFields:s,field:t,directIqConf:a,setDirectIqConf:u}){var g,v,N,F;const r=t.required,x=((g=a==null?void 0:a.default)==null?void 0:g.fields)&&Object.values((v=a==null?void 0:a.default)==null?void 0:v.fields).filter(l=>!l.required),j=R(O),{isPro:h}=j,d=l=>{const m=o({},a);m.field_map.splice(l,0,{}),u(m)},p=l=>{const m=o({},a);m.field_map.length>1&&m.field_map.splice(l,1),u(m)},c=(l,m)=>{const b=o({},a);b.field_map[m][l.target.name]=l.target.value,l.target.value==="custom"&&(b.field_map[m].customValue=""),u(b)},V=(l,m)=>{const b=o({},a);b.field_map[m].customValue=l.target.value,u(b)};return e.jsxs("div",{className:"flx mt-2 mb-2 btcbi-field-map",children:[e.jsxs("div",{className:"flx integ-fld-wrp",children:[e.jsxs("select",{className:"btcd-paper-inp mr-2",name:"formField",value:t.formField||"",onChange:l=>c(l,i),children:[e.jsx("option",{value:"",children:n("Select Field","bit-integrations")}),e.jsx("optgroup",{label:n("List Fields","bit-integrations"),children:s==null?void 0:s.map(l=>e.jsx("option",{value:l.name,children:l.label},`ff-rm-${l.name}`))}),e.jsx("option",{value:"custom",children:n("Custom...","bit-integrations")}),e.jsx("optgroup",{label:`${n("General Smart Codes","bit-integrations")} ${h?"":`(${n("Pro","bit-integrations")})`}`,children:h&&((N=S)==null?void 0:N.map(l=>e.jsx("option",{value:l.name,children:l.label},`ff-rm-${l.name}`)))})]}),t.formField==="custom"&&e.jsx(T,{onChange:l=>V(l,i),label:n("Custom Value","bit-integrations"),className:"mr-2",type:"text",value:t.customValue,placeholder:n("Custom Value","bit-integrations")}),e.jsxs("select",{className:"btcd-paper-inp",name:"directIqField",value:t.directIqField,onChange:l=>c(l,i),disabled:r,children:[e.jsx("option",{value:"",children:n("Select Field","bit-integrations")}),r?((F=a==null?void 0:a.default)==null?void 0:F.fields)&&Object.values(a.default.fields).map(l=>e.jsx("option",{value:l.fieldValue,children:l.fieldName},`${l.fieldValue}`)):x&&x.map(l=>e.jsx("option",{value:l.fieldValue,children:l.fieldName},`${l.fieldValue}`))]})]}),!r&&e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:()=>d(i),className:"icn-btn sh-sm ml-2",type:"button",children:"+"}),e.jsx("button",{onClick:()=>p(i),className:"icn-btn sh-sm ml-2",type:"button","aria-label":"btn",children:e.jsx(E,{})})]})]})}function Q({formFields:i,directIqConf:s,setDirectIqConf:t,isLoading:a,setIsLoading:u,setSnackbar:r}){var j,h;const x=d=>{const p=d.target.value,c=o({},s);p?c.listId=p:delete c.listId,$(c,t,u,r)};return e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx("b",{className:"wdt-200 d-in-b",children:n("List:","bit-integrations")}),e.jsxs("select",{value:s==null?void 0:s.listId,name:"listId",id:"",className:"btcd-paper-inp w-5",onChange:x,children:[e.jsx("option",{value:"",children:n("Select List","bit-integrations")}),((j=s==null?void 0:s.default)==null?void 0:j.directIqLists)&&Object.keys(s.default.directIqLists).map(d=>e.jsx("option",{value:s.default.directIqLists[d].listId,children:s.default.directIqLists[d].listName},`${d+1}`))]}),e.jsx("button",{onClick:()=>P(s,t,u,r),className:"icn-btn sh-sm ml-2 mr-2 tooltip",style:{"--tooltip-txt":'"Refresh DirectIq list"'},type:"button",disabled:a,children:"↻"}),e.jsx("br",{}),e.jsx("br",{}),a&&e.jsx(k,{style:{display:"flex",justifyContent:"center",alignItems:"center",height:100,translist:"scale(0.7)"}}),e.jsxs("div",{className:"mt-4",children:[e.jsx("b",{className:"wdt-100",children:n("Map Fields","bit-integrations")}),e.jsx("button",{onClick:()=>$(s,t,u,r),className:"icn-btn sh-sm ml-2 mr-2 tooltip",style:{"--tooltip-txt":`'${n("Refresh DirectIq Field","bit-integrations")}'`},type:"button",disabled:a,children:"↻"})]}),((s==null?void 0:s.listId)||((h=s==null?void 0:s.default)==null?void 0:h.fields))&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"btcd-hr mt-1"}),e.jsxs("div",{className:"flx flx-around mt-2 mb-2 btcbi-field-map-label",children:[e.jsx("div",{className:"txt-dp",children:e.jsx("b",{children:n("List Fields","bit-integrations")})}),e.jsx("div",{className:"txt-dp",children:e.jsx("b",{children:n("DirectIq Fields","bit-integrations")})})]}),s.field_map.map((d,p)=>e.jsx(G,{i:p,field:d,directIqConf:s,formFields:i,setDirectIqConf:t},`DirectIq-m-${p+9}`)),e.jsx("div",{className:"txt-center btcbi-field-map-button mt-2",children:e.jsx("button",{onClick:()=>D(s.field_map.length,s,t),className:"icn-btn sh-sm",type:"button",children:"+"})}),e.jsx("br",{})]})]})}export{Q as D};