import{a as H,g as N,i as x,aH as C,aX as E,H as _,u as A,b2 as P,r as S,j as t,_ as y,M as R,f as g,eg as j,bG as w,ea as G,eb as K,d5 as L,e9 as V,ec as k}from"./main-634.js";import{F as r}from"./bf-767-388.js";import{I as z}from"./bf-457-387.js";import{F}from"./bf-676-386.js";import{S as B}from"./bf-982-242.js";import"./bf-534-247.js";import"./bf-25-81.js";import"./bf-299-245.js";import"./bf-638-271.js";import"./bf-247-269.js";import"./bf-497-246.js";import"./bf-641-107.js";import"./bf-400-72.js";import"./bf-438-114.js";function os(){const{css:a}=H(),{fieldKey:i}=N(),[d,$]=x(C),[n,h]=x(E),e=_(d[i]),o=A(P),[v,c]=S.useState(!1),[M,b]=S.useState(""),f=s=>{if(e[s]){delete e[s];const m=g(d,l=>{l[i]=e});$(m);const u=g(n,l=>{const{padding:I}=n.fields[o].classes[`.${o}-fld`];s==="prefixIcn"&&(l.fields[o].classes[`.${o}-fld`].padding=j(I,"left",!1)),s==="suffixIcn"&&(l.fields[o].classes[`.${o}-fld`].padding=j(I,"",!1))});h(u),w({event:`${G[s]} Icon Deleted`,type:`delete_${s}`,state:{fldKey:i,fields:m,styles:u}})}},p=s=>{K(n,i,L[s])||V(o,s),k(s,i),b(s),c(!0)};return t.jsxs(B,{id:"inp-icn-stng",title:y("Input Icons"),className:a(r.fieldSection),toggleChecked:!0,proProperty:"inputIcons",children:[t.jsxs("div",{className:a(r.iconLayoutHorizontal),children:[t.jsx(F,{label:"Prefix Icon",iconSrc:e==null?void 0:e.prefixIcn,styleRoute:"pre-i",setIcon:()=>p("prefixIcn"),removeIcon:()=>f("prefixIcn"),position:"prefix"}),t.jsx("span",{className:a(r.iconSeparator),children:"|"}),t.jsx(F,{label:"Suffix Icon",iconSrc:e==null?void 0:e.suffixIcn,styleRoute:"suf-i",setIcon:()=>p("suffixIcn"),removeIcon:()=>f("suffixIcn"),position:"suffix"})]}),t.jsxs(R,{md:!0,autoHeight:!0,show:v,setModal:c,className:"o-v",title:y("Icons"),children:[t.jsx("div",{className:"pos-rel"}),t.jsx(z,{iconType:M,setModal:c})]})]})}export{os as default};
