Liferay.Loader.define("@liferay/search-experiences-web@3.0.7/sxp_blueprint_admin/js/shared/SubmitWarningModal",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/modal","liferay!frontend-js-react-web$react","./ErrorListItem"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(r("@frontend-taglib-clay$clayui/button")),n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var l=a?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(r,n,l):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r("@frontend-taglib-clay$clayui/modal")),l=i(r("liferay!frontend-js-react-web$react")),u=i(r("./ErrorListItem"));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}var f=({errors:e,isSubmitting:t,message:r,onClose:o=(()=>{}),onSubmit:i=(()=>{}),visible:f})=>{const{observer:d,onClose:c}=(0,n.useModal)({onClose:o});return f?l.default.createElement(n.default,{observer:d,size:"md",status:"warning"},l.default.createElement(n.default.Header,null,Liferay.Language.get("warning")),l.default.createElement(n.default.Body,null,l.default.createElement("p",null,r),e.map(((e,t)=>l.default.createElement(u.default,{error:e,key:t})))),l.default.createElement(n.default.Footer,{last:l.default.createElement(a.default.Group,{spaced:!0},l.default.createElement(a.default,{displayType:"secondary",onClick:c},Liferay.Language.get("cancel")),l.default.createElement(a.default,{disabled:t,onClick:i},Liferay.Language.get("continue-to-save")))})):null};t.default=f}}));
//# sourceMappingURL=SubmitWarningModal.js.map