(function(e){define(["scripts/upfront/inline-panels/item-multi"],function(t){var n=t.extend({events:{click:"clicked","click .upfront-inline-panel-item":"selectItem"},render:function(){t.prototype.render.call(this,arguments)},clicked:function(t){var n=this.$el.children(".upfront-inline-panel-subitem");if(e(t.target).closest(n).length>0)return;this.trigger("click",t),this.toggle_subitem()},get_selected_item:function(){return this.selected},selectItem:function(t){var n=!1,r=e(t.target).is("i")?e(t.target):e(t.target).find("i");_.each(this.sub_items,function(e,t){r.hasClass("upfront-icon-region-"+e.icon)&&(n=t)}),n&&(this.selected=n,this.render(),this.trigger("select",n))}});return n})})(jQuery);