!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],t):"object"==typeof exports?exports["openstack-uicore-foundation"]=t():e["openstack-uicore-foundation"]=t()}(this,(()=>(()=>{"use strict";var e={4656:e=>{e.exports=require("i18n-react/dist/i18n-react")},6689:e=>{e.exports=require("react")}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,o),a.exports}(()=>{o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t}})(),(()=>{o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var n={};return(()=>{o.r(n),o.d(n,{default:()=>s});var e=o(6689),t=o.n(e),r=o(4656),a=o.n(r);class l extends t().Component{onPerformBulkAction(){let e=this.actionTypeSelect.value;""!==e&&this.props.onSelectedBulkAction(e)}render(){let{onSelectAll:e,bulkOptions:o,show:n}=this.props;return t().createElement("div",{className:"bulk-actions-selector-container"},n&&t().createElement("div",{className:"row"},t().createElement("div",{className:"col-md-8"},t().createElement("input",{type:"checkbox",onClick:e}),t().createElement("select",{ref:e=>{this.actionTypeSelect=e}},t().createElement("option",{value:""},a().translate("published_bulk_actions_selector.options.default")),o.map(((e,o)=>t().createElement("option",{key:o,value:e.value},e.label))))),t().createElement("div",{className:"col-md-4"},t().createElement("button",{onClick:this.onPerformBulkAction.bind(this),title:a().translate("published_bulk_actions_selector.titles.go"),className:"btn btn-default btn-sm"},t().createElement("i",{className:"fa fa-play"}," ",a().translate("published_bulk_actions_selector.buttons.go"))))))}}const s=l})(),n})()));
//# sourceMappingURL=bulk-actions-selector.js.map