var WPZincAutocompleterControl=function(e){const t=window.wp.element.createElement;const{TextControl:n}=window.wp.components;var o=[];for(var r in e.options){o.push(t("option",{value:e.options[r]},e.options[r]))}delete e.options;return[t(n,e),t("datalist",{id:e.list},o)]};function wp_zinc_auto_complete_gutenberg_register(e,t){wpzinc_autocomplete_gutenberg.forEach(function(t,n){t.triggers.forEach(function(t,n){if("url"in t){return}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}})})});return e}if(typeof wp!=="undefined"&&typeof wp.hooks!=="undefined"&&typeof wpzinc_autocomplete_gutenberg!=="undefined"){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)})})}