define("document_picker",["jquery"],function(e){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/components/",t(t.s="./assets/js/document_picker.js")}({"./assets/js/document_picker.js":function(e,t,n){var o,r;o=[n(0)],void 0!==(r=function(e){function t(e,t){this.element_id=e,this.button_element_id=t}return t.prototype.init=function(){this.$el=e("#"+this.button_element_id);var t=this;this.$el.on("click",function(){t.document_select_show(t.element_id,!0)})},t.prototype.document_selected_callback=function(e,t,n,o){var r=document.getElementById(o),c=document.getElementById("document_id");return null!=r&&null!=c&&(c.value=e,r.value=n,!0)},t.prototype.document_selected_callback_option=function(e,t,n,o){var r=document.getElementById(o);return null!=r&&(r.options[0]=new Option(n,e,!0,!0),!0)},t.prototype.document_select_show=function(e,t,n){if(null==n&&(n="document_selected_callback"),!document.getElementById(e))return!1;var o;return o=1==t?1:0,window.open("/intranet/common/folderstree_popup.php?selector_name="+e+"&document_select=1&marker_select="+o+"&folder_select=0&class_select=0&callback="+n,"doc_select_win","dependent=yes,width=500,height=430,screenX=200,screenY=300,titlebar=yes, scrollbars=yes,status=yes,resizable=yes"),window.document_picker_obj=this,!1},t}.apply(t,o))&&(e.exports=r)},0:function(t,n){t.exports=e}})});
//# sourceMappingURL=document_picker.js.map