1import{a as e}from"./chunk-CsjQdrqi.js";import{n as t,t as n}from"./jsx-runtime-Bcvu2gyL.js";import{t as r}from"./esm-C6GY4HdN.js";import{t as i}from"./compiler-runtime-DczOaqDG.js";import{t as a}from"./button-BRUIY1n8.js";import{n as o}from"./toast-utils-CmvlxtJT.js";var s=i(),c=e(t(),1),l=e(n(),1);function u(e){let t=new Set;for(let n of e.state.errors)for(let e of Object.keys(n))t.add(e);for(let[n,r]of Object.entries(e.state.fieldMeta))(r?.errors.length||0)>0&&t.add(n);return t}function d(e){let t=(0,s.c)(17),n,i,a;t[0]===e?(n=t[1],i=t[2],a=t[3]):({children:n,form:i,...a}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=a);let d=(0,c.useRef)(null),{isValid:p,isSubmitting:m}=r(i.store,f),h;t[4]!==i||t[5]!==m||t[6]!==p?(h=()=>{if(!p&&m){let e=u(i),t=e.size;o({message:`Failed to submit. ${t} field${t===1?``:`s`} contain${t===1?`s`:``} invalid values.`,tone:`critical`}),d.current?.querySelector(`[data-field-name="${e.values().next().value}"]`)?.scrollIntoView({behavior:`smooth`,block:`center`})}},t[4]=i,t[5]=m,t[6]=p,t[7]=h):h=t[7];let g;t[8]!==m||t[9]!==p?(g=[d,p,m],t[8]=m,t[9]=p,t[10]=g):g=t[10],(0,c.useEffect)(h,g);let _;t[11]===i?_=t[12]:(_=e=>{e.preventDefault(),e.stopPropagation(),i.handleSubmit()},t[11]=i,t[12]=_);let v;return t[13]!==n||t[14]!==a||t[15]!==_?(v=(0,l.jsx)(`form`,{ref:d,method:`post`,onSubmit:_,...a,children:n}),t[13]=n,t[14]=a,t[15]=_,t[16]=v):v=t[16],v}function f(e){return{isValid:e.isValid,isSubmitting:e.isSubmitting}}function p(e){let t=(0,s.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({form:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let o;t[4]===r?o=t[5]:(o=e=>{e.preventDefault(),e.stopPropagation(),r.handleSubmit()},t[4]=r,t[5]=o);let c=o,u;return t[6]!==n||t[7]!==c||t[8]!==i?(u=(0,l.jsx)(a,{type:`submit`,...i,onClick:c,children:n}),t[6]=n,t[7]=c,t[8]=i,t[9]=u):u=t[9],u}export{p as n,d 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.