(window.webpackJsonp_stax=window.webpackJsonp_stax||[]).push([[7],{44:function(e,t,n){"use strict";n.r(t);var r=n(3),o=n(2),a=n(4),i=n.n(a),c=n(1),l=n(0),u=n.n(l);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],_n=!0,i=!1;try{for(n=n.call(e);!(_n=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);_n=!0);}catch(e){i=!0,o=e}finally{try{_n||null==n.return||n.return()}finally{if(i)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var p=function(e){var t=e.onIconChoice,n=e.setVisible,a=e.icons,l=s(Object(c.useState)(""),2),u=l[0],f=l[1],p=function(e){return Object.entries(e).map((function(e){var o=s(e,2),a=o[0],c=o[1];return i.a.createElement(r.Tooltip,{className:"tooltip",text:a,key:a},i.a.createElement(r.Button,{className:"icon-button",onClick:function(){t(a),n(!1),f("")}},c))}))}(function(){for(var e={},t=0,n=Object.entries(a);t<n.length;t++){var r=s(n[t],2),o=r[0],i=r[1];o.indexOf(u)>-1&&(e[o]=i)}return e}());return i.a.createElement("div",{className:"icons-popover-content"},i.a.createElement(r.TextControl,{placeholder:Object(o.__)("Search","stax"),value:u,type:"search",onChange:f,className:"icons-popover-header"}),i.a.createElement("div",{className:"icons-container"},p))};p.propTypes={onIconChoice:u.a.func.isRequired,setVisible:u.a.func.isRequired,icons:u.a.object.isRequired},t.default=p}}]);