(()=>{"use strict";const e=window.React,t=window.wp.data,o=window.wp.element,r=(0,window.wp.compose.createHigherOrderComponent)((r=>i=>{const{setSelectedBlockName:n,setSelectedBlock:c}=(0,t.useDispatch)("wprio-framework"),{attributes:s,name:d,isSelected:l}=i;return(0,o.useEffect)((()=>{l&&(n(d),d.includes("rioforms")&&c(s.id))})),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r,{key:"edit",...i}))}),"withMyPluginControls");wp.hooks.addFilter("editor.BlockEdit","rioforms/rioform",r)})();