"use strict";$((function(){$("#jstree-1").jstree({plugins:["types"],core:{themes:{ellipsis:!0}},types:{default:{icon:"mdi mdi-folder-open"},file:{icon:"mdi mdi-file-outline"}}}),$("#jstree-2").jstree({plugins:["types"],core:{themes:{ellipsis:!0},data:[{text:"Root node 1",children:[{text:"initially selected",state:{selected:!0}},{text:"Custom icon",icon:"mdi mdi-briefcase-variant-outline"},{text:"Initially open",state:{opened:!0},children:[{text:"Disabled node",state:{disabled:!0}},{text:"Another node",type:"file"}]},{text:"Sub nodes",children:[{text:"Item 1",type:"file"},{text:"Item 2",type:"file"},{text:"Sub nodes",children:[{text:"Item 1",type:"file"},{text:"Item 2",type:"file"}]},{text:"Item 3",type:"file"}]},{text:"Custom color icon",icon:"mdi mdi-star text-success"}]},{text:"Clickable link node",icon:"mdi mdi-link-variant",a_attr:{href:"//google.com"}}]},types:{default:{icon:"mdi mdi-folder-open"},file:{icon:"mdi mdi-file-outline"}}}),$("#jstree-4").jstree({plugins:["dnd","state","types"],core:{themes:{ellipsis:!0},check_callback:!0},types:{default:{icon:"mdi mdi-folder-open"},file:{icon:"mdi mdi-file-outline"}},state:{key:"demo2"}}),$("#jstree-5").jstree({plugins:["contextmenu","types"],core:{themes:{ellipsis:!0},check_callback:!0},contextmenu:{items:function(e){return{create:{separator_before:!1,separator_after:!0,label:"Create",icon:"mdi mdi-pencil",action:!1,submenu:{file:{seperator_before:!1,seperator_after:!1,icon:"mdi mdi-file-outline",label:"File",action:function(e){var t=$.jstree.reference(e.reference);e=t.get_node(e.reference);t.create_node(e,{text:"New File",type:"file",icon:"mdi mdi-file-outline"},"last",(function(e){setTimeout((function(){t.edit(e)}),0)}))}},folder:{seperator_before:!1,seperator_after:!1,icon:"mdi mdi-folder",label:"Folder",action:function(e){var t=$.jstree.reference(e.reference);e=t.get_node(e.reference);t.create_node(e,{text:"New Folder",type:"default"},"last",(function(e){setTimeout((function(){t.edit(e)}),0)}))}}}},rename:{separator_before:!1,separator_after:!1,label:"Rename",icon:"mdi mdi-cursor-text",action:function(e){var t=$.jstree.reference(e.reference);e=t.get_node(e.reference);t.edit(e)}},remove:{separator_before:!1,separator_after:!1,label:"Remove",icon:"mdi mdi-delete-empty",action:function(e){var t=$.jstree.reference(e.reference);e=t.get_node(e.reference);t.delete_node(e)}},cpp:{separator_before:!1,separator_after:!1,label:"Edit",icon:"mdi mdi-dots-vertical",action:!1,submenu:{cut:{seperator_before:!1,seperator_after:!1,label:"Cut",icon:"mdi mdi-content-cut",action:function(e){var t=$.jstree.reference(e.reference);e=t.get_node(e.reference);t.is_selected(e)?t.cut(t.get_top_selected()):t.cut(e)}},copy:{seperator_before:!1,seperator_after:!1,label:"Copy",icon:"mdi mdi-content-copy",action:function(e){var t=$.jstree.reference(e.reference);e=t.get_node(e.reference);t.is_selected(e)?t.copy(t.get_top_selected()):t.copy(e)}},paste:{seperator_before:!1,seperator_after:!1,label:"Paste",icon:"mdi mdi-content-paste",action:function(e){var t=$.jstree.reference(e.reference);e=t.get_node(e.reference);t.paste(e)}}}}}}},types:{default:{icon:"mdi mdi-folder-open"},file:{icon:"mdi mdi-file-outline"}}});var e=$("#jstree-6").jstree({plugins:["search","types"],core:{themes:{ellipsis:!0},check_callback:!0},types:{default:{icon:"mdi mdi-folder-open"},file:{icon:"mdi mdi-file-outline"}}});$("#jstree-6-input").keyup((function(){var t=$(this).val();e.jstree(!0).search(t)}))}));