"use strict";var KTDualListbox={init:function(){$(".kt-dual-listbox").each(function(){var t=$(this),a="#"+t.attr("id"),e=null!=t.attr("data-available-title")?t.attr("data-available-title"):"Available options",l=null!=t.attr("data-selected-title")?t.attr("data-selected-title"):"Selected options",d=null!=t.attr("data-add")?t.attr("data-add"):"Add",i=null!=t.attr("data-remove")?t.attr("data-remove"):"Remove",o=null!=t.attr("data-add-all")?t.attr("data-add-all"):"Add All",n=null!=t.attr("data-remove-all")?t.attr("data-remove-all"):"Remove All",r=[];t.children("option").each(function(){var t=$(this).val(),a=$(this).text(),e=!!$(this).is(":selected");r.push({text:a,value:t,selected:e})});var s=null!=t.attr("data-search")?t.attr("data-search"):"",u=new DualListbox(a,{addEvent:function(t){console.log(t)},removeEvent:function(t){console.log(t)},availableTitle:e,selectedTitle:l,addButtonText:d,removeButtonText:i,addAllButtonText:o,removeAllButtonText:n,options:r});"false"==s&&u.search.classList.add("dual-listbox__search--hidden")})}};KTUtil.ready(function(){KTDualListbox.init()});