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=23)}({"./assets/js/component_list_admin.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($){function listActions(){$("#component_list").on("click",".js-dt-edit",function(){var id=$(this).data("id");window.location.href="/pages/admin/components/"+id}),$("#component_list").on("click",".js-dt-delete",function(){var id=$(this).data("id");return window.confirm(lmsg("pages.admin.custom_delete_confirm"))&&$.ajax({url:"/api/pages/v0/admin/custom/"+id+"/delete",type:"DELETE",success:function(d){$("#component_list table").DataTable().draw()}}),!1}),$("#component_list").on("click",".js-dt-view",function(){var id=$(this).data("id"),$glyph_dom=$(this).find("ion-icon"),$glyph_link=$(this);return $.ajax({url:"/api/pages/v0/admin/custom/"+id+"/setviewable",type:"post",success:function(d){1==d.viewable?($glyph_dom.removeAttr("name").attr("name","eye-outline"),$glyph_link.attr({"data-original-title":lmsg("pages.admin.custom_viewable")})):($glyph_dom.removeAttr("name").attr("name","eye-off-outline"),$glyph_link.attr({"data-original-title":lmsg("pages.admin.custom_hidden")}))}}),!1})}return function(){listActions()}}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},1:function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE_1__},23:function(module,exports,__webpack_require__){module.exports=__webpack_require__("./assets/js/component_list_admin.js")}})});
//# sourceMappingURL=component_list_admin.js.map