Liferay.Loader.define("dynamic-data-mapping-form-web@4.0.84/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=i(r("@frontend-taglib-clay$clayui/alert")),l=i(r("@frontend-taglib-clay$clayui/button")),n=i(r("liferay!frontend-js-react-web$classnames")),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=u();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 u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}r("./ShowPartialResultsAlert.scss");var s=({dismissible:e,showPartialResultsToRespondents:t})=>{const[r,u]=(0,o.useState)(!t);return o.default.createElement("div",{className:(0,n.default)("lfr-ddm__show-partial-results-alert",{"lfr-ddm__show-partial-results-alert--hidden":r})},o.default.createElement(a.default,{displayType:"info",onClose:e?()=>u(!0):void 0,title:"Info"},Liferay.Language.get("your-responses-will-be-visible-to-all-form-respondents"),e&&o.default.createElement(a.default.Footer,null,o.default.createElement(l.default.Group,null,o.default.createElement(l.default,{alert:!0,onClick:()=>u(!0)},Liferay.Language.get("understood"))))))};t.default=s}}));
//# sourceMappingURL=ShowPartialResultsAlert.js.map