/*!
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
*/
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../form-core/dist/esm/FormApi.js"),t=require("../../../vue-store/dist/esm/index.js"),r=require("vue"),s=require("./useField.js");exports.useForm=function(o){const i=(()=>{const i=new e.FormApi(o),u=i;return u.Field=r.defineComponent((e,t)=>()=>r.h(s.Field,{...e,...t.attrs,form:i},t.slots),{name:"APIField",inheritAttrs:!1}),u.useField=e=>s.useField({...e,form:i}),u.useStore=e=>t.useStore(i.store,e),u.Subscribe=r.defineComponent((e,r)=>{const s={...e,...r.attrs}.selector??(e=>e),o=t.useStore(i.store,s);return()=>r.slots.default(o.value)},{name:"Subscribe",inheritAttrs:!1}),u})();return r.onMounted(i.mount),i.update(o),i};