"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),i=require("../../_util/hooks/useState.js");require("../../vc-select/BaseSelect.js");require("../../vc-select/OptGroup.js");require("../../vc-select/Option.js");require("../../vc-select/Select.js");const a=require("../../vc-select/hooks/useBaseProps.js"),o=require("../context.js"),c=()=>{const e=a.default(),{values:u}=o.useInjectCascader(),[r,t]=i.default([]);return l.watch(()=>e.open,()=>{if(e.open&&!e.multiple){const s=u.value[0];t(s||[])}},{immediate:!0}),[r,t]};exports.default=c;
