"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),u=require("lodash"),s=(e,n,l,o)=>{const a=t=>{if(e.option.isDefaultSelect){if(!t&&o.value.length>0){l.value=o.value[0].value;return}l.value=t}else l.value=""};i.watch(()=>e.sources,()=>{e.sources&&e.sources.length>0&&n(e.option)},{deep:!0}),i.watch(()=>u.cloneDeep(e.option.value),(t,c)=>{u.isEqual(t,c)||a(t)},{deep:!0}),i.watch(()=>u.cloneDeep(e.option.isDefaultSelect),(t,c)=>{u.isEqual(t,c)||a(e.option.value)},{deep:!0})};exports.useTabsWatch=s;
