(function(){"use strict";page.using={types:["QuerySelector"]};page.onLoad=function(){var e={parent:this,link:this.url.getLinkUid(),isDefault:true,mode:this.url.get("mode"),autoSearch:this.url.getBoolean("autoSearch",true),onCreate:function(){var e=page.popup;if(e){e.autoSizeAndPosition()}},onExecute:function(){var e=page.popup;if(e){e.autoSizeAndPosition()}},onSelect:function(e,i){if(e.mode=="Select"){var t=page.popup;if(t){t.selection=i;t.close({ok:true})}return}var u={query:i.uri,scope:i.isPrivate?"Private":"Public"};var o=e.link;if(u8.isValidRecordUid(o)){$.extend(u,{link:u8.recordUidToString(o)})}var n;if(!i.isQuickQuery){n=u8.session.webConfigValues.get("Query.DefaultAction","A_QueryEdit")}else{n=u8.session.webConfigValues.get("Query.DefaultActionQuick","A_QuickQueryEdit")}u8.services.actions.execute(n,{arguments:u})}};$("#content").widget("QuerySelector",e)}})();