/*!
Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
@license Proprietary

This software is the confidential and proprietary property of Lenovo SSG BASD.
You shall not disclose such Confidential Information and shall use it only in
accordance with the terms of the license agreement.

--- Build Info ---
Version: 1.1.1
Build Time: 2026/2/26 17:21:00
Build Commit: 81e556ed827e2f043668506dae6fae8dbb9ef395
*/
import{FormApi as t}from"../../../form-core/dist/esm/FormApi.js";import{useStore as e}from"../../../vue-store/dist/esm/index.js";import{defineComponent as r,h as s,onMounted as o}from"vue";import{Field as i,useField as m}from"./useField.js";function n(n){const u=(()=>{const o=new t(n),u=o;return u.Field=r((t,e)=>()=>s(i,{...t,...e.attrs,form:o},e.slots),{name:"APIField",inheritAttrs:!1}),u.useField=t=>m({...t,form:o}),u.useStore=t=>e(o.store,t),u.Subscribe=r((t,r)=>{const s={...t,...r.attrs}.selector??(t=>t),i=e(o.store,s);return()=>r.slots.default(i.value)},{name:"Subscribe",inheritAttrs:!1}),u})();return o(u.mount),u.update(n),u}export{n as useForm};