1import"./dropdown-BfOYPEPg.js";import{C as n}from"./index-DnVtRDJT.js";import"./jquery-B2HoIvm_.js";class s extends n{connect(){$(this.element).uidropdown(this.config()),$(this.element.parentElement).has("optgroup").each(function(){const t=$("<div/>").addClass("menu");return t.append('<div class="item hidden"></div>'),$(this).find("optgroup").each(function(){const e=this.label;return t.append('<div class="header m-0 p-2 bg-gray-100 bordered border-l-0 border-r-0">'.concat(e,"</div>")),$(this).children().each(function(){return t.append('<div class="item" data-value="'.concat(this.value,'" data-header="').concat(e,'">').concat(this.innerHTML,"</div>"))})}),$(this).find(".menu").html(t.html())})}config(){const t={keys:{delimiter:13},forceSelection:!1,message:{addResult:"Ajouter <b>{term}</b>",count:"{count} selectionné",maxSelections:"Vous ne pouvez pas sélectionner plus de {maxCount} compétences.",noResults:"Aucun résultat n'a été trouvé"},fullTextSearch:!0},e=$(this.element).data();return typeof e.maxLength<"u"&&e.maxLength!==""&&(t.maxSelections=e.maxLength),typeof e.placeholder<"u"&&e.placeholder!==""&&(t.placeholder=e.placeholder),typeof e.allowAdditions<"u"&&e.allowAdditions!==""&&(t.allowAdditions=e.allowAdditions,t.fullTextSearch="exact",t.match="text",t.hideAdditions=!1),typeof e.maxSelections<"u"&&e.maxSelections!==""&&(t.message.maxSelections=e.maxSelections),{...t,...e.autocomplete==="on"&&{showOnFocus:!1,minCharacters:1,action:"activate_and_hide"}}}}export{s as default}; 2//# sourceMappingURL=dropdown_ui_controller-BImC4BuT.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.