define("document_picker",["jquery"],function(e){return function(e){function t(o){if(n[o])return n[o].exports;var c=n[o]={i:o,l:!1,exports:{}};return e[o].call(c.exports,c,c.exports,t),c.l=!0,c.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,c;o=[n(0)],void 0!==(c=function(e){function t(e,t,n){this.element_id=e,this.button_element_id=t,void 0===n&&(n="document_id"),this.hidden_element_id=n}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 c=document.getElementById(o),r=document.getElementById(this.hidden_element_id);return null!=c&&null!=r&&(r.value=e,c.value=n,r.dispatchEvent(new Event("change")),!0)},t.prototype.document_selected_callback_option=function(e,t,n,o){var c=document.getElementById(o);return null!=c&&(c.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=c)},0:function(t,n){t.exports=e}})});
//# sourceMappingURL=document_picker.js.map