/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
import{b as i}from"./JCTU3MST.js";export default $arcgis.t(([{watch:y}])=>{function l(e,a){return i((n,d)=>(d.onLifecycle(()=>y(()=>({layerId:e.mapLayerId,viewReady:e.view?.ready}),({layerId:r,viewReady:o})=>{if(!o)return;let t=e.view;if(!r){a(void 0);return}a(t?.map?.findLayerById(r))},{initial:!0})),e.mapLayerId))}return l},"core/reactiveUtils")