1import{j as a}from"./jsx-runtime-D_zvdyIk.js";import{r as A}from"./createLucideIcon-CiWnlb16.js";import"./loginCallback-DUlVA6A0.js";const J=({text:r,label:o,fields:i,fieldValue:l="",fieldToChange:p,setField:u,type:s,placeholder:t,checked:h=!1,className:j,nested:e,nestedItems:N,nestedField:f,files:B,setShowList:k,onSearch:b,show:w,required:v,disabled:$,onChange:x,onInput:R,trigger:m,id:c})=>{l===null&&(l="");const E=n=>{k(n!==""),b(n),u(e?{...i,[f]:{...N,[p]:n}}:{...i,[p]:n})},I=n=>{e?(m&&m(),u({...i,[f]:{...N,[p]:n}})):(m&&m(),u({...i,[p]:n}),s==="search"&&n===""&&w(!1))};if(s==="checkbox")return a.jsx("div",{className:`checkbox-wrapper ${j}`,children:a.jsxs("label",{className:"container",children:[a.jsx("span",{className:"title",children:r}),a.jsx("input",{type:s,onChange:()=>u({...i,[p]:!h}),checked:h}),a.jsx("span",{className:"checkmark"})]})});if(s==="autocomplete")return a.jsxs("div",{className:"input-wrapper",children:[o?a.jsx("label",{htmlFor:`input-${c||"data"}`,children:r}):null,a.jsx("input",{value:l,type:s,onChange:n=>E(n.target.value),id:`input-${c||"data"}`,className:"data-input",placeholder:t||r})]});if(s==="file"){const n=A.useRef(void 0),z=()=>{n.current.click()};return a.jsxs("div",{className:"input-wrapper",children:[o?a.jsx("label",{htmlFor:"input-filedata",children:r}):null,a.jsxs("div",{className:"input-file",children:[a.jsx("input",{value:l,type:s,ref:n,onChange:x,id:"input-filedata",className:"data-input",placeholder:t||r,required:v,disabled:$,multiple:!0}),a.jsx("span",{className:"input-file-btn",onClick:z,children:"ÐÑбеÑиÑе Ñайл"})]})]})}return a.jsxs("div",{className:"input-wrapper",children:[o?a.jsx("label",{htmlFor:`input-${c||"data"}`,className:`${j||""}-input-label`,children:r}):null,a.jsx("input",{value:l,type:s,onChange:x||(n=>I(n.target.value)),onInput:R,id:`input-${c||"data"}`,className:"data-input",placeholder:t||r,required:v,disabled:$})]})};export{J as I};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.