!function(){"use strict";var n={45:function(n,t,r){r.d(t,{A:function(){return o}});var e=r(8587);function o(n,t){if(null==n)return{};var r,o,u=(0,e.A)(n,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(o=0;o<i.length;o++)r=i[o],t.includes(r)||{}.propertyIsEnumerable.call(n,r)&&(u[r]=n[r])}return u}},1609:function(n){n.exports=window.React},3145:function(n,t,r){function e(n,t){(null==t||t>n.length)&&(t=n.length);for(var r=0,e=Array(t);r<t;r++)e[r]=n[r];return e}r.d(t,{A:function(){return e}})},3453:function(n,t,r){r.d(t,{A:function(){return c}});var e=r(6369),o=r(6986),u=r(7800),i=r(6562);function c(n,t){return(0,e.A)(n)||(0,o.A)(n,t)||(0,u.A)(n,t)||(0,i.A)()}},4164:function(n,t,r){function e(n){var t,r,o="";if("string"==typeof n||"number"==typeof n)o+=n;else if("object"==typeof n)if(Array.isArray(n)){var u=n.length;for(t=0;t<u;t++)n[t]&&(r=e(n[t]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}t.A=function(){for(var n,t,r=0,o="",u=arguments.length;r<u;r++)(n=arguments[r])&&(t=e(n))&&(o&&(o+=" "),o+=t);return o}},4268:function(n,t){t.A={dropdownMenu:"SPGTBbvePU6CUwTswTz3","is-selected":"Yco2UYs5yfVpH5THiZW9"}},6087:function(n){n.exports=window.wp.element},6369:function(n,t,r){function e(n){if(Array.isArray(n))return n}r.d(t,{A:function(){return e}})},6562:function(n,t,r){function e(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{A:function(){return e}})},6986:function(n,t,r){function e(n,t){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var e,o,u,i,c=[],f=!0,a=!1;try{if(u=(r=r.call(n)).next,0===t){if(Object(r)!==r)return;f=!1}else for(;!(f=(e=u.call(r)).done)&&(c.push(e.value),c.length!==t);f=!0);}catch(n){a=!0,o=n}finally{try{if(!f&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(a)throw o}}return c}}r.d(t,{A:function(){return e}})},7800:function(n,t,r){r.d(t,{A:function(){return o}});var e=r(3145);function o(n,t){if(n){if("string"==typeof n)return(0,e.A)(n,t);var r={}.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,e.A)(n,t):void 0}}},8587:function(n,t,r){function e(n,t){if(null==n)return{};var r={};for(var e in n)if({}.hasOwnProperty.call(n,e)){if(t.includes(e))continue;r[e]=n[e]}return r}r.d(t,{A:function(){return e}})}},t={};function r(e){var o=t[e];if(void 0!==o)return o.exports;var u=t[e]={exports:{}};return n[e](u,u.exports,r),u.exports}r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,{a:t}),t},r.d=function(n,t){for(var e in t)r.o(t,e)&&!r.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)};var e=r(3453),o=r(45),u=r(6087),i=r(1609),c=r(4164),f=r(4268),a=["items","command","visible"];(0,i.forwardRef)(function(n,t){var r=n.items,l=void 0===r?[]:r,s=n.command,d=n.visible,v=((0,o.A)(n,a),(0,i.useState)(0)),y=(0,e.A)(v,2),m=y[0],p=y[1],A=function(n){var t=l[n];t&&s({id:"".concat(t,"}")})};return(0,i.useEffect)(function(){return p(0)},[l]),(0,i.useImperativeHandle)(t,function(){return{onKeyDown:function(n){var t=n.event;return"ArrowUp"===t.key?(p((m+l.length-1)%l.length),!0):"ArrowDown"===t.key?(p((m+1)%l.length),!0):"Enter"===t.key&&(A(m),!0)}}}),d?(0,u.createElement)("div",{className:f.A.dropdownMenu},l.length?l.map(function(n,t){return(0,u.createElement)("button",{className:(0,c.A)(t===m?"is-selected":""),key:t,onMouseDown:function(n){n.preventDefault(),A(t)}},n)}):(0,u.createElement)("div",{className:"item"},"No result")):(0,u.createElement)(u.Fragment,null)})}();