Liferay.Loader.define("dynamic-data-mapping-form-web@4.0.150/admin/js/util/ShowPartialResultsAlert",["module","exports","require","@frontend-taglib-clay$clayui/alert","@frontend-taglib-clay$clayui/button","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$react","./ShowPartialResultsAlert.scss"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=_interopRequireDefault(r("@frontend-taglib-clay$clayui/alert")),l=_interopRequireDefault(r("@frontend-taglib-clay$clayui/button")),n=_interopRequireDefault(r("liferay!frontend-js-react-web$classnames")),i=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var n=a?Object.getOwnPropertyDescriptor(e,l):null;n&&(n.get||n.set)?Object.defineProperty(r,l,n):r[l]=e[l]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}r("./ShowPartialResultsAlert.scss");var _default=({dismissible:e,showPartialResultsToRespondents:t})=>{const[r,u]=(0,i.useState)(!t),o=e?Liferay.Language.get("your-responses-will-be-visible-to-all-form-respondents"):Liferay.Language.get("respondents-can-see-all-submitted-form-data");return i.default.createElement("div",{className:(0,n.default)("lfr-ddm__show-partial-results-alert",{"lfr-ddm__show-partial-results-alert--hidden":r})},i.default.createElement(a.default,{displayType:"info",onClose:e?()=>u(!0):void 0,title:"Info"},o,e&&i.default.createElement(a.default.Footer,null,i.default.createElement(l.default.Group,null,i.default.createElement(l.default,{alert:!0,onClick:()=>u(!0)},Liferay.Language.get("understood"))))))};t.default=_default}}));
//# sourceMappingURL=ShowPartialResultsAlert.js.map