(function(){"use strict";var e=1e3;page.disableAutoBuild=true;page.using={texts:["button_text","xsel_text","XSelDefineText"],types:["QueryParameterForm"]};var t=null;var o;page.commandBindings=$.extend(page.commandBindings,{run:a,cancel:r});page.onLoad=function(){t=u8.Base.Widgets.Popup.getFromElement(document.body);t.setTitle($t("TXT_xsel_text_23"));o=t.tag;$assert(o,"Missing property 'tag' on popup object!");if(!o.options){o.options={}}s(n(),function(){$("body").css("visibility","inherit");t.autoSizeAndPosition();t.show()})};function n(){var t=i();var n=u8.services.queries.getMaxRowsOptions({max:o.options.maxRows||t.maxRows||e});return{maxRowItems:n.items,maxRowValue:n.value,showParametersForm:o.options.showParametersForm,queryParametersForm:{parent:page,query:o.query,formName:"QueryEditorParametersTemplate",executeButton:null}}}function s(e,t){$("#contents").utml({itemOptions:{parent:page},data:e},function(){u8.tools.ready(page.children,t)})}function a(){t.close({options:u()})}function r(){t.close({cancel:true})}function i(){return u8.services.settings.get("QueryExport",{maxRows:e})}function u(){var e=o.options;e.maxRows=parseInt($v("maxRows"));u8.services.settings.extend("QueryExport",{maxRows:e.maxRows});return e}})();