| 1 |
import{g as $,i as x,aH as F,u as S,W as j,a as C,cF as b,j as o,_ as v,f as P,bG as _}from"./main-294.js";import{F as p}from"./bf-821-385.js";import{S as L}from"./bf-908-241.js";import"./bf-176-80.js";import"./bf-764-245.js";import"./bf-5-86.js";import"./bf-487-72.js";import"./bf-867-113.js";function R(){var i,l,r;const{fieldKey:s}=$(),[c,d]=x(F),y=S(j),{css:a}=C();if(!s)return null;const e=c[s],n=b((e==null?void 0:e.typ)||""),g=(i=e==null?void 0:e.payIntegID)!=null?i:"",f=(r=(l=e==null?void 0:e.lbl)!=null?l:e==null?void 0:e.adminLbl)!=null?r:"",I=()=>y.filter(t=>t.type.toLowerCase()===n.toLowerCase()).map(t=>o.jsx("option",{value:t.id,children:t.name},t.id)),h=u=>{const{value:t}=u.target,m=P(c,A=>{A[s].payIntegID=t});d(m),_({event:`${n} Account Changed to "${t}": ${f||s}`,type:"payment_account_change",state:{fields:m,fldKey:s}})};return o.jsx(L,{id:"slct-cnfg-stng",title:`${n} Accounts`,className:`${a(p.fieldSection)}`,open:!0,children:o.jsxs("select",{"data-testid":"slct-cnfg-slct",name:"payIntegID",id:"payIntegID",onChange:h,className:a(p.input),value:g,"aria-label":`Select ${n} Account`,children:[o.jsx("option",{value:"",children:v("Select Account")}),I()]})})}export{R as default}; |