var KTSelect2={init:function(){$("#kt_select2_1, #kt_select2_1_validate").select2({placeholder:"Select a state"}),$("#kt_select2_2, #kt_select2_2_validate").select2({placeholder:"Select a state"}),$("#kt_select2_3, #kt_select2_3_validate").select2({placeholder:"Select a state"}),$("#kt_select2_4").select2({placeholder:"Select a state",allowClear:!0}),$("#kt_select2_5").select2({placeholder:"Select a value",data:[{id:0,text:"Enhancement"},{id:1,text:"Bug"},{id:2,text:"Duplicate"},{id:3,text:"Invalid"},{id:4,text:"Wontfix"}]}),$("#kt_select2_6").select2({placeholder:"Search for git repositories",allowClear:!0,ajax:{url:"https://api.github.com/search/repositories",dataType:"json",delay:250,data:function(e){return{q:e.term,page:e.page}},processResults:function(e,t){return t.page=t.page||1,{results:e.items,pagination:{more:30*t.page";return e.description&&(t+="
"+e.description+"
"),t+="
"+e.forks_count+" Forks
"+e.stargazers_count+" Stars
"+e.watchers_count+" Watchers
"},templateSelection:function(e){return e.full_name||e.text}}),$("#kt_select2_12_1, #kt_select2_12_2, #kt_select2_12_3, #kt_select2_12_4").select2({placeholder:"Select an option"}),$("#kt_select2_7").select2({placeholder:"Select an option"}),$("#kt_select2_8").select2({placeholder:"Select an option"}),$("#kt_select2_9").select2({placeholder:"Select an option",maximumSelectionLength:2}),$("#kt_select2_10").select2({placeholder:"Select an option",minimumResultsForSearch:1/0}),$("#kt_select2_11").select2({placeholder:"Add a tag",tags:!0}),$(".kt-select2-general").select2({placeholder:"Select an option"}),$("#kt_select2_modal").on("shown.bs.modal",function(){$("#kt_select2_1_modal").select2({placeholder:"Select a state"}),$("#kt_select2_2_modal").select2({placeholder:"Select a state"}),$("#kt_select2_3_modal").select2({placeholder:"Select a state"}),$("#kt_select2_4_modal").select2({placeholder:"Select a state",allowClear:!0})})}};jQuery(document).ready(function(){KTSelect2.init()});