"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("lodash-unified"),g=require("vue"),p=require("../../context.js"),m=require("../../utils/get.js");require("../../../config-provider/index.js");const h=require("../../../config-provider/hooks/use-global-config.js");function r(e){if(e==null)return!1;if(typeof e=="string")return e.trim()!=="";if(i.isArray(e))return e.some(o=>r(o));if(i.isObject(e)){const t=Object.keys(e);if(t.length===0)return!1;for(const o of t)if(r(e[o]))return!0;return!1}return!0}function f(e){return i.isFunction(e.type)?e.type():e}const y=e=>{const{model:t}=p.useInjectForm(),o=h.useGlobalConfig("searchForm");return{count:g.computed(()=>{let l=0;return e.value.forEach(d=>{const n=f(d.node),F=[n.props.name].flat(1),s=m.getModelValue(t?.value,F),c=n.props.customFilled||n.props["custom-filled"],u=o.value?.customFilled;!c&&u?u?.(n,s)&&(l+=1):(c||r)(s)&&(l+=1)}),l})}};exports.defaultFilled=r;exports.getTargetNode=f;exports.useCollapseInputCount=y;
