import{getElement as t,store as e}from"@wordpress/interactivity";e("gateway/route",{state:{get isActive(){const{ref:e}=t();return e&&"none"!==e.style.display},get params(){const{ref:e}=t();if(e&&e.dataset.matchedParams)try{return JSON.parse(e.dataset.matchedParams)}catch(t){return console.error("Route: Failed to parse matched params",t),{}}return{}},get path(){const{ref:e}=t();return e?e.getAttribute("data-router-path"):"/"},get label(){const{ref:e}=t();return e?e.getAttribute("data-router-label"):""}}});