{"version":3,"file":"static/js/825.9830571f.chunk.js","mappings":"oZAgBMA,GAAW,QAAe,CAC5BC,mBAAoB,CAChBC,GAAI,qBACJC,eAAgB,iBAwBxB,IApBkE,SAACC,GAO/D,OACI,2BAASC,UAAU,gBACf,sBAAIA,UAAU,wBAAuB,gBAAC,IAAgB,KAAKL,EAASC,sBACnEG,EAAME,SAAW,qBAAGD,UAAU,yBAAwB,gBAAC,IAAgB,KAAKD,EAAME,WACnF,qBAAGD,UAAU,6BAA4B,gBAAC,IAAgB,KAAKD,EAAMG,eACrE,uBAAKF,UAAU,yBACVD,EAAMI,YAAc,gBAAC,IAAe,CAACH,UAAU,uBAAuBI,QAAS,IAAeC,OAAQC,QAASP,EAAMI,aACtH,gBAAC,IAAa,CAACH,UAAU,uBAAuBO,UAAWR,EAAMQ,UAAWD,QAZvE,WACTP,EAAMI,YAAcJ,EAAMI,aAC9BJ,EAAMS,mBACV,EAS2GJ,QAASL,EAAMU,sBAI9H,C","sources":["components/Confirmation/Confirmation.tsx"],"sourcesContent":["import React from 'react';\r\nimport { defineMessages, FormattedMessage, MessageDescriptor } from 'react-intl';\r\nimport PrimaryButton from '../form-components/PrimaryButton/PrimaryButton';\r\nimport SecondaryButton from '../form-components/SecondaryButton/SecondaryButton';\r\nimport { IPopupable } from '../Popup/Popup';\r\nimport globalMessages from 'src/services/globalMessages';\r\n\r\n\r\ninterface IConfirmationProps extends IPopupable {\r\n description: MessageDescriptor;\r\n affirmativeAction: () => void;\r\n affirmativeCaption: MessageDescriptor;\r\n dangerous?: boolean;\r\n warning?: MessageDescriptor;\r\n}\r\n\r\nconst messages = defineMessages({\r\n confirmationHeader: {\r\n id: 'confirmationHeader',\r\n defaultMessage: 'Megerősítés'\r\n },\r\n});\r\n\r\nconst Confirmation: React.FunctionComponent = (props) => {\r\n\r\n const handleOk = () => {\r\n if (props.closePopup) { props.closePopup(); }\r\n props.affirmativeAction();\r\n }\r\n\r\n return (\r\n
\r\n

\r\n {props.warning &&

}\r\n

\r\n
\r\n {props.closePopup && }\r\n \r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default Confirmation;\r\n"],"names":["messages","confirmationHeader","id","defaultMessage","props","className","warning","description","closePopup","caption","cancel","onClick","dangerous","affirmativeAction","affirmativeCaption"],"sourceRoot":""}