/*!
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/FieldApi.js"),t=require("../../../vue-store/dist/esm/index.js"),r=require("vue");function o(o){const s=(()=>{const t=new e.FieldApi({...o,form:o.form,name:o.name});return t.Field=n,t})(),i=t.useStore(s.store,e=>e);let u;return r.onMounted(()=>{u=s.mount()}),r.onUnmounted(()=>{u()}),r.watch(()=>o,()=>{s.update({...o,form:o.form})}),{api:s,state:i}}const n=r.defineComponent((e,t)=>{const r=o({...e,...t.attrs});return()=>t.slots.default({field:r.api,state:r.state.value})},{name:"Field",inheritAttrs:!1});exports.Field=n,exports.useField=o;