import{g as S,j as t,a as g,i as y,r as F,A as b,_ as r,U as T,bm as O,M as v,f as j,aF as E}from"./main-343.js";import{F as a}from"./bf-838-284.js";import{F as N,a as w,S as A,A as C,b as U,H as k,c as q,E as H}from"./bf-622-233.js";import{F as K}from"./bf-773-387.js";import{F as M}from"./bf-487-388.js";import{F as s}from"./bf-505-323.js";import{P}from"./bf-357-392.js";import{R}from"./bf-276-389.js";import{U as _}from"./bf-798-394.js";import{O as z}from"./bf-731-395.js";import"./bf-697-110.js";import"./bf-90-70.js";import"./bf-649-79.js";import"./bf-594-113.js";import"./bf-983-247.js";import"./bf-810-248.js";import"./bf-603-251.js";import"./bf-453-86.js";import"./bf-190-88.js";import"./bf-914-249.js";import"./bf-870-250.js";import"./bf-411-252.js";import"./bf-711-253.js";import"./bf-519-87.js";import"./bf-901-254.js";import"./bf-656-255.js";import"./bf-806-256.js";import"./bf-318-257.js";import"./bf-437-78.js";import"./bf-689-322.js";import"./bf-123-272.js";import"./bf-772-285.js";import"./bf-209-80.js";import"./bf-529-105.js";import"./bf-730-282.js";import"./bf-623-283.js";import"./bf-498-326.js";import"./bf-794-390.js";function vt(){const{fieldKey:i}=S();if(!i)return t.jsx(t.Fragment,{children:"No field exist with this field key"});const{css:e}=g(),[u,d]=y(E),[x,l]=F.useState(!1),m=b(u[i]),c=m.opt,f=o=>{d(n=>j(n,p=>{p[i].opt=o}))},h=o=>{d(n=>j(n,p=>{p[i].customType=o}))};return t.jsxs(t.Fragment,{children:[t.jsx(N,{title:"Field Settings",subtitle:m.typ,fieldKey:i}),t.jsx(w,{}),t.jsx(s,{}),t.jsx(A,{}),t.jsx(s,{}),t.jsx(C,{}),t.jsx(s,{}),t.jsxs("div",{className:e(a.fieldSection),children:[t.jsx("div",{className:e(a.fieldSectionTitle),children:r("Options")}),t.jsx(z,{options:c,onClick:()=>l(!0)}),t.jsxs(T,{dataTestId:"edt-opt-stng",variant:"primary-outline",size:"sm",className:e({mt:10}),onClick:()=>l(!0),children:[r("Add/Edit Options"),t.jsx("span",{className:e({ml:3,mt:3,tm:"rotate(45deg)"}),children:t.jsx(O,{size:"12",stroke:"4"})})]})]}),t.jsx(s,{}),t.jsx(U,{}),t.jsx(s,{}),t.jsx(P,{}),t.jsx(s,{}),t.jsx(k,{}),t.jsx(s,{}),t.jsx(R,{}),t.jsx(s,{}),t.jsx(q,{}),t.jsx(s,{}),t.jsx(M,{}),t.jsx(s,{}),t.jsx(K,{}),t.jsx(s,{}),t.jsx(_,{type:"entryUnique",title:r("Validate as Entry Unique"),tipTitle:r("Enabling this option will check from the entry database whether its value is duplicate."),className:e(a.fieldSection,a.hover_tip),isUnique:"show"}),t.jsx(s,{}),t.jsx(v,{md:!0,autoHeight:!0,show:x,setModal:()=>l(!1),className:"o-v",title:r("Options"),width:"730px",children:t.jsx(H,{optionMdl:x,options:c,setOptions:o=>f(o),lblKey:"lbl",valKey:"val",type:"radio",hasGroup:!0,customType:m.customType,setCustomType:h})})]})}export{vt as default};
