define(["jquery"],function(__WEBPACK_EXTERNAL_MODULE_1__){return function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}var installedModules={};return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.i=function(value){return value},__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{configurable:!1,enumerable:!0,get:getter})},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="/intranet/pages/build/js/",__webpack_require__(__webpack_require__.s=32)}({"./assets/js/recently_deleted.js":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(1)],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function($){var RecentlyDeleted=function(){var self=this;$(".deleted_type_tab").on("click",function(){var viewTypes=["myItems","allItems"];setTimeout(function(){for(var oldView=self.view,i=0;i<viewTypes.length;i++)$('.deleted_type_tab[name="'+viewTypes[i]+'"]').hasClass("active")&&(self.view=viewTypes[i]);self.view!==oldView&&self.updateView()},0)}),$("#deleted_items_container").on("change",".deleted_items_check_everything",function(){$(this).prop("checked")?$(this).closest("table").find(".js-checkbox").prop("checked",!0):$(this).closest("table").find(".js-checkbox").prop("checked",!1)}),$("#deleted_items_container").on("change",".js-checkbox",function(){for(var table=$(this).closest("table"),boxes=table.find(".js-checkbox"),numChecked=0,numBoxes=boxes.length,i=0;i<boxes.length;i++)$(boxes[i]).prop("checked")&&numChecked++;numBoxes>numChecked?table.find(".deleted_items_check_everything").prop("checked",!1):table.find(".deleted_items_check_everything").prop("checked",!0)})};return RecentlyDeleted.prototype.view="myItems",RecentlyDeleted}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},1:function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE_1__},32:function(module,exports,__webpack_require__){module.exports=__webpack_require__("./assets/js/recently_deleted.js")}})});
//# sourceMappingURL=recently_deleted.js.map