{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///../demo7/src/js/pages/features/miscellaneous/treeview.js"],"names":[],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFa;;AAEb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,aAAa;AACb;AACA,SAAS;;AAET;AACA;AACA;AACA,8EAA8E;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA,yBAAyB;AACzB;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB,qBAAqB;AACrB;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA,iCAAiC;AACjC;AACA,yBAAyB;AACzB;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA,iCAAiC,oDAAoD;AACrF,iCAAiC,qDAAqD;AACtF,iCAAiC,qDAAqD;AACtF,iCAAiC,oDAAoD;AACrF,iCAAiC;AACjC;AACA,yBAAyB;AACzB,qBAAqB;AACrB;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,aAAa;AACb,uBAAuB,kBAAkB;AACzC;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA,iCAAiC;AACjC;AACA,yBAAyB;AACzB;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA,iCAAiC,oDAAoD;AACrF,iCAAiC,qDAAqD;AACtF,iCAAiC,qDAAqD;AACtF,iCAAiC,oDAAoD;AACrF,iCAAiC;AACjC;AACA,yBAAyB;AACzB,qBAAqB;AACrB;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,aAAa;AACb,uBAAuB,kBAAkB;AACzC;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA,CAAC","file":"js/pages/features/miscellaneous/treeview.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"../demo7/src/js/pages/features/miscellaneous/treeview.js\");\n","\"use strict\";\r\n\r\nvar KTTreeview = function () {\r\n\r\n var _demo1 = function () {\r\n $('#kt_tree_1').jstree({\r\n \"core\" : {\r\n \"themes\" : {\r\n \"responsive\": false\r\n }\r\n },\r\n \"types\" : {\r\n \"default\" : {\r\n \"icon\" : \"fa fa-folder\"\r\n },\r\n \"file\" : {\r\n \"icon\" : \"fa fa-file\"\r\n }\r\n },\r\n \"plugins\": [\"types\"]\r\n });\r\n }\r\n\r\n var _demo2 = function () {\r\n $('#kt_tree_2').jstree({\r\n \"core\" : {\r\n \"themes\" : {\r\n \"responsive\": false\r\n }\r\n },\r\n \"types\" : {\r\n \"default\" : {\r\n \"icon\" : \"fa fa-folder text-warning\"\r\n },\r\n \"file\" : {\r\n \"icon\" : \"fa fa-file text-warning\"\r\n }\r\n },\r\n \"plugins\": [\"types\"]\r\n });\r\n\r\n // handle link clicks in tree nodes(support target=\"_blank\" as well)\r\n $('#kt_tree_2').on('select_node.jstree', function(e,data) {\r\n var link = $('#' + data.selected).find('a');\r\n if (link.attr(\"href\") != \"#\" && link.attr(\"href\") != \"javascript:;\" && link.attr(\"href\") != \"\") {\r\n if (link.attr(\"target\") == \"_blank\") {\r\n link.attr(\"href\").target = \"_blank\";\r\n }\r\n document.location.href = link.attr(\"href\");\r\n return false;\r\n }\r\n });\r\n }\r\n\r\n var _demo3 = function () {\r\n $('#kt_tree_3').jstree({\r\n 'plugins': [\"wholerow\", \"checkbox\", \"types\"],\r\n 'core': {\r\n \"themes\" : {\r\n \"responsive\": false\r\n },\r\n 'data': [{\r\n \"text\": \"Same but with checkboxes\",\r\n \"children\": [{\r\n \"text\": \"initially selected\",\r\n \"state\": {\r\n \"selected\": true\r\n }\r\n }, {\r\n \"text\": \"custom icon\",\r\n \"icon\": \"fa fa-warning text-danger\"\r\n }, {\r\n \"text\": \"initially open\",\r\n \"icon\" : \"fa fa-folder text-default\",\r\n \"state\": {\r\n \"opened\": true\r\n },\r\n \"children\": [\"Another node\"]\r\n }, {\r\n \"text\": \"custom icon\",\r\n \"icon\": \"fa fa-warning text-waring\"\r\n }, {\r\n \"text\": \"disabled node\",\r\n \"icon\": \"fa fa-check text-success\",\r\n \"state\": {\r\n \"disabled\": true\r\n }\r\n }]\r\n },\r\n \"And wholerow selection\"\r\n ]\r\n },\r\n \"types\" : {\r\n \"default\" : {\r\n \"icon\" : \"fa fa-folder text-warning\"\r\n },\r\n \"file\" : {\r\n \"icon\" : \"fa fa-file text-warning\"\r\n }\r\n },\r\n });\r\n }\r\n\r\n var _demo4 = function() {\r\n $(\"#kt_tree_4\").jstree({\r\n \"core\" : {\r\n \"themes\" : {\r\n \"responsive\": false\r\n },\r\n // so that create works\r\n \"check_callback\" : true,\r\n 'data': [{\r\n \"text\": \"Parent Node\",\r\n \"children\": [{\r\n \"text\": \"Initially selected\",\r\n \"state\": {\r\n \"selected\": true\r\n }\r\n }, {\r\n \"text\": \"Custom Icon\",\r\n \"icon\": \"flaticon2-hourglass-1 text-danger\"\r\n }, {\r\n \"text\": \"Initially open\",\r\n \"icon\" : \"fa fa-folder text-success\",\r\n \"state\": {\r\n \"opened\": true\r\n },\r\n \"children\": [\r\n {\"text\": \"Another node\", \"icon\" : \"fa fa-file text-waring\"}\r\n ]\r\n }, {\r\n \"text\": \"Another Custom Icon\",\r\n \"icon\": \"flaticon2-drop text-waring\"\r\n }, {\r\n \"text\": \"Disabled Node\",\r\n \"icon\": \"fa fa-check text-success\",\r\n \"state\": {\r\n \"disabled\": true\r\n }\r\n }, {\r\n \"text\": \"Sub Nodes\",\r\n \"icon\": \"fa fa-folder text-danger\",\r\n \"children\": [\r\n {\"text\": \"Item 1\", \"icon\" : \"fa fa-file text-waring\"},\r\n {\"text\": \"Item 2\", \"icon\" : \"fa fa-file text-success\"},\r\n {\"text\": \"Item 3\", \"icon\" : \"fa fa-file text-default\"},\r\n {\"text\": \"Item 4\", \"icon\" : \"fa fa-file text-danger\"},\r\n {\"text\": \"Item 5\", \"icon\" : \"fa fa-file text-info\"}\r\n ]\r\n }]\r\n },\r\n \"Another Node\"\r\n ]\r\n },\r\n \"types\" : {\r\n \"default\" : {\r\n \"icon\" : \"fa fa-folder text-primary\"\r\n },\r\n \"file\" : {\r\n \"icon\" : \"fa fa-file text-primary\"\r\n }\r\n },\r\n \"state\" : { \"key\" : \"demo2\" },\r\n \"plugins\" : [ \"contextmenu\", \"state\", \"types\" ]\r\n });\r\n }\r\n\r\n var _demo5 = function() {\r\n $(\"#kt_tree_5\").jstree({\r\n \"core\" : {\r\n \"themes\" : {\r\n \"responsive\": false\r\n },\r\n // so that create works\r\n \"check_callback\" : true,\r\n 'data': [{\r\n \"text\": \"Parent Node\",\r\n \"children\": [{\r\n \"text\": \"Initially selected\",\r\n \"state\": {\r\n \"selected\": true\r\n }\r\n }, {\r\n \"text\": \"Custom Icon\",\r\n \"icon\": \"flaticon2-warning text-danger\"\r\n }, {\r\n \"text\": \"Initially open\",\r\n \"icon\" : \"fa fa-folder text-success\",\r\n \"state\": {\r\n \"opened\": true\r\n },\r\n \"children\": [\r\n {\"text\": \"Another node\", \"icon\" : \"fa fa-file text-waring\"}\r\n ]\r\n }, {\r\n \"text\": \"Another Custom Icon\",\r\n \"icon\": \"flaticon2-bell-5 text-waring\"\r\n }, {\r\n \"text\": \"Disabled Node\",\r\n \"icon\": \"fa fa-check text-success\",\r\n \"state\": {\r\n \"disabled\": true\r\n }\r\n }, {\r\n \"text\": \"Sub Nodes\",\r\n \"icon\": \"fa fa-folder text-danger\",\r\n \"children\": [\r\n {\"text\": \"Item 1\", \"icon\" : \"fa fa-file text-waring\"},\r\n {\"text\": \"Item 2\", \"icon\" : \"fa fa-file text-success\"},\r\n {\"text\": \"Item 3\", \"icon\" : \"fa fa-file text-default\"},\r\n {\"text\": \"Item 4\", \"icon\" : \"fa fa-file text-danger\"},\r\n {\"text\": \"Item 5\", \"icon\" : \"fa fa-file text-info\"}\r\n ]\r\n }]\r\n },\r\n \"Another Node\"\r\n ]\r\n },\r\n \"types\" : {\r\n \"default\" : {\r\n \"icon\" : \"fa fa-folder text-success\"\r\n },\r\n \"file\" : {\r\n \"icon\" : \"fa fa-file text-success\"\r\n }\r\n },\r\n \"state\" : { \"key\" : \"demo2\" },\r\n \"plugins\" : [ \"dnd\", \"state\", \"types\" ]\r\n });\r\n }\r\n\r\n var _demo6 = function() {\r\n $(\"#kt_tree_6\").jstree({\r\n \"core\": {\r\n \"themes\": {\r\n \"responsive\": false\r\n },\r\n // so that create works\r\n \"check_callback\": true,\r\n 'data': {\r\n 'url': function(node) {\r\n return HOST_URL + '/api//jstree/ajax_data.php';\r\n },\r\n 'data': function(node) {\r\n return {\r\n 'parent': node.id\r\n };\r\n }\r\n }\r\n },\r\n \"types\": {\r\n \"default\": {\r\n \"icon\": \"fa fa-folder text-primary\"\r\n },\r\n \"file\": {\r\n \"icon\": \"fa fa-file text-primary\"\r\n }\r\n },\r\n \"state\": {\r\n \"key\": \"demo3\"\r\n },\r\n \"plugins\": [\"dnd\", \"state\", \"types\"]\r\n });\r\n }\r\n\r\n return {\r\n //main function to initiate the module\r\n init: function () {\r\n _demo1();\r\n _demo2();\r\n _demo3();\r\n _demo4();\r\n _demo5();\r\n _demo6();\r\n }\r\n };\r\n}();\r\n\r\njQuery(document).ready(function() {\r\n KTTreeview.init();\r\n});\r\n"],"sourceRoot":""}