import{u as c,I as a,a as g,e as m}from"./useMessage-Cbhfk7Nk.js";import{g as E}from"./vendor-core-BKehvho7.js";const T=(s,o)=>{const{sendMessageToTargetIframe:r,messageListener:t}=m(),{addListener:i}=t(),_=c(!1,window.__GLOBAL_CONFIG__.subPort);i(a.SEARCH_KEYWORD_GET,()=>{const{triggerCallback:n,stopWatch:u}=g(E(()=>s.value),()=>{o.value?.sendMessageToTargetIframeByCompId(e=>{e?r(e,a.SEARCH_KEYWORD_SET,s.value,_):u()})});n()})};export{T as u};
