1import{b as A,j as t,B as r,S as s,C as p,x as F,m as I,y as l,t as T}from"./task-spreadsheet-D5k0iGrQ.js";import{M as j}from"./Modal-aJIEr64l.js";import{F as B}from"./Form-CJbhDv8J.js";var D=l('<span class="text-error ml-1"aria-hidden=true>*'),E=l('<button type=button><i class="ms-1 fa-solid fa-circle-info text-blue-800 hover:text-blue-600 cursor-pointer">'),H=l('<fieldset class=fieldset><legend class="text-xs font-semibold tracking-wide flex items-center gap-2 text-base-content/80"><span></span></legend><div class="label gap-2 w-full">'),L=l("<div class=space-y-2>"),O=l('<span class="text-error text-sm">'),P=l('<div class="w-full grid grid-rows-1 gap-2 "><input>');function J({form:x,name:d,type:v,readonly:_,tooltip:a,label:g,placeholder:w,value:b,required:m,maxLength:y}){const C=x,[S,h]=A(!1),f=`err-${String(d).replace(/\./g,"-")}`;return[t(s,{get when(){return!!a&&S()},get children(){return t(j,{title:`Help for ${g}`,description:"",get content(){return(()=>{var n=L();return r(n,a),n})()},onCancel:()=>h(!1),onConfirm:()=>{},hideActions:!0})}}),(()=>{var n=H(),i=n.firstChild,$=i.firstChild,k=i.nextSibling;return r($,g,null),r($,t(s,{when:m,get children(){return D()}}),null),r(i,t(s,{when:a,get children(){var e=E();return e.$$click=()=>h(!0),e}}),null),r(k,t(B,{of:C,name:d,type:v??"string",children:(e,M)=>(()=>{var o=P(),u=o.firstChild;return p(u,"aria-required",m),p(u,"maxlength",y),F(u,I(M,{get value(){return e.value??b??""},type:"text",placeholder:w,get classList(){return{"text-black input input-neutral input-sm w-full text-bold":!0,"input-error input-sm w-full":!!e.error,"input-success input-sm w-full":!e.error&&e.touched}},readOnly:_,get"aria-invalid"(){return!!e.error},get"aria-describedby"(){return e.error?f:void 0}}),!1,!1),r(o,t(s,{get when(){return e.error},get children(){var c=O();return p(c,"id",f),r(c,()=>e.error),c}}),null),o})()})),n})()]}T(["click"]);export{J as T};
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.