import{w as S,j as t,a as g,h as y,r as F,q as b,B as T,_ as x,aL as v,bV as w,g as c,ab as E}from"./main-40.js";import{F as l}from"./bf-350-158.js";import{F as O,a as q,S as N,A,b as C,H,c as K}from"./bf-543-94.js";import{F as U}from"./bf-517-325.js";import{F as k}from"./bf-279-326.js";import{a as s}from"./bf-541-191.js";import{P as M}from"./bf-937-330.js";import{R as P}from"./bf-247-327.js";import{U as R}from"./bf-426-332.js";import{E as _}from"./bf-137-331.js";import"./bf-95-84.js";import"./bf-586-70.js";import"./bf-141-80.js";import"./bf-613-108.js";import"./bf-755-109.js";import"./bf-142-111.js";import"./bf-376-112.js";import"./bf-547-83.js";import"./bf-683-113.js";import"./bf-175-110.js";import"./bf-928-114.js";import"./bf-232-115.js";import"./bf-236-125.js";import"./bf-642-124.js";import"./bf-829-79.js";import"./bf-285-116.js";import"./bf-695-117.js";import"./bf-866-72.js";/* empty css          */import"./bf-955-157.js";import"./bf-497-146.js";import"./bf-988-194.js";import"./bf-807-328.js";import"./bf-884-118.js";import"./bf-200-122.js";import"./bf-866-74.js";import"./bf-620-81.js";import"./bf-528-128.js";import"./bf-853-156.js";import"./bf-860-126.js";function Et(){const{fieldKey:e}=S();if(!e)return t.jsx(t.Fragment,{children:"No field exist with this field key"});const{css:o}=g(),[j,p]=y(E),[n,d]=F.useState(!1),r=b(j[e]),u=r.opt,f=i=>{p(a=>c(a,m=>{m[e].opt=i}))},h=i=>{p(a=>c(a,m=>{m[e].customType=i}))};return t.jsxs(t.Fragment,{children:[t.jsx(O,{title:"Field Settings",subtitle:r.typ,fieldKey:e}),t.jsx(q,{}),t.jsx(s,{}),t.jsx(N,{}),t.jsx(s,{}),t.jsx(A,{}),t.jsx(s,{}),t.jsx(C,{}),t.jsx(s,{}),t.jsx(M,{}),t.jsx(s,{}),t.jsx(H,{}),t.jsx(s,{}),t.jsx(P,{}),t.jsx(s,{}),t.jsx(K,{}),t.jsx(s,{}),t.jsx(k,{}),t.jsx(s,{}),t.jsx(U,{}),t.jsx(s,{}),t.jsx("div",{className:o(l.fieldSection),children:t.jsxs(T,{dataTestId:"edt-opt-stng",variant:"primary-outline",size:"sm",className:o({mt:10}),onClick:()=>d(!0),children:[x("Add/Edit Options"),t.jsx("span",{className:o({ml:3,mt:3,tm:"rotate(45deg)"}),children:t.jsx(v,{size:"13",stroke:"3"})})]})}),t.jsx(s,{}),t.jsx(R,{type:"entryUnique",title:"Validate as Entry Unique",tipTitle:"Enabling this option will check from the entry database whether its value is duplicate.",className:o(l.fieldSection,l.hover_tip),isUnique:"show"}),t.jsx(s,{}),t.jsx(w,{md:!0,autoHeight:!0,show:n,setModal:()=>d(!1),className:"o-v",title:x("Options"),width:"730px",children:t.jsx(_,{optionMdl:n,options:u,setOptions:i=>f(i),lblKey:"lbl",valKey:"val",type:"radio",hasGroup:!0,customType:r.customType,setCustomType:h})})]})}export{Et as default};
