Liferay.Loader.define("depot-web@2.0.70/dynamic_include/StagingIndicator",["module","exports","require","@frontend-taglib-clay$clayui/drop-down","@frontend-taglib-clay$clayui/icon","frontend-js-web","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function _default(e){return i.default.createElement(Component,e)};var n=r("@frontend-taglib-clay$clayui/drop-down"),o=_interopRequireDefault(r("@frontend-taglib-clay$clayui/icon")),a=r("frontend-js-web"),i=(_interopRequireDefault(r("liferay!frontend-js-react-web$prop-types")),_interopRequireDefault(r("liferay!frontend-js-react-web$react")));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Component=({iconClass:e,iconName:t,items:r,title:l})=>{const c=r.map((e=>e.action&&"publishToLive"===e.action?_objectSpread(_objectSpread({},e),{},{onClick(){(0,a.openModal)({title:e.label,url:e.publishURL})}}):e));return i.default.createElement(n.ClayDropDownWithItems,{alignmentPosition:n.Align.BottomCenter,items:c,trigger:i.default.createElement("button",{className:"staging-indicator-button"},i.default.createElement(o.default,{className:e,symbol:t}),i.default.createElement("span",{className:"staging-indicator-title"},l),i.default.createElement(o.default,{symbol:"caret-bottom"}))})}}}));
//# sourceMappingURL=StagingIndicator.js.map