var WPZincAutocompleterControl=function(e){const t=window.wp.element.createElement,{TextControl:o}=window.wp.components;var n=[];for(var i in e.options)n.push(t("option",{value:e.options[i],key:e.id+"_"+i},e.options[i]));return delete e.options,[t(o,e),t("datalist",{id:e.list},n)]};function wp_zinc_auto_complete_gutenberg_register(e,t){return wpzinc_autocomplete_gutenberg.forEach((function(t,o){t.triggers.forEach((function(t,o){"url"in t||e.push({name:t.name,triggerPrefix:t.trigger,options:t.values,getOptionKeywords:function(e){return e.value},getOptionLabel:function(e){return e.value},getOptionCompletion:function(e){return e.key}})}))})),e}"undefined"!=typeof wp&&void 0!==wp.hooks&&"undefined"!=typeof wpzinc_autocomplete_gutenberg&&wpzinc_autocomplete_gutenberg.forEach((function(e,t){e.triggers.forEach((function(e,t){wp.hooks.addFilter("editor.Autocomplete.completers","wp-zinc/autocompleters/"+e.name,wp_zinc_auto_complete_gutenberg_register)}))}));