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AAM9B,KAAuBL,IAAmBO,GACrM,EAAAvE,GAAGsK,gBACH,WAChC,C","sources":["webpack://App/./Client/include/jquery-common/popovers.js","webpack://App/./Client/include/jquery-components/bootstrap-select/index.js","webpack://App/./Client/include/react-common/theme.tsx","webpack://App/./Client/include/react-components/ErrorBoundary/ErrorBoundary.tsx","webpack://App/./Client/src/Frame/types/Frame.ts","webpack://App/./Client/src/Payment/components/PaymentForm.tsx"],"sourcesContent":["import $ from 'jquery.js';\nimport 'jquery-components/bootstrap-popover';\n\n// Настраивает всплывающие окна\nfunction setupPopovers(query, pars) {\n if (pars)\n pars.trigger = \"manual\";\n // Ручное открытие окна\n $(query).off(\"click\")\n $(query).on(\"click\", function (evt) {\n evt.preventDefault();\n var $this = $(this);\n var thisNode = this;\n $(\"[data-toggle='popover'][aria-describedby]\").each(function (idx, elt) {\n if (elt != thisNode)\n $(elt).popover(\"hide\");\n });\n $this.popover(\"toggle\");\n }).popover(pars);\n // Закрытие по клику где угодно\n $(document).off(\"mousedown\", closePopover);\n $(document).on(\"mousedown\", closePopover);\n}\n\n/**\r\n * \n * @param {MouseEvent} e\r\n * @returns\r\n */\r\nfunction closePopover (e) {\n var target = $(e.target);\n if (target.attr(\"data-toggle\") == \"popover\" || target.closest(\"[data-toggle='popover']\").length)\n return;\n if (!target.closest(\".popover\").length || target.is(\".popover .close\"))\n $(\"[data-toggle='popover']\").popover(\"hide\");\n}\n\nexport { setupPopovers }","import 'jquery.js';\nimport 'bootstrap/js/dropdown.js';\nimport 'bootstrap-select';\n//import 'bootstrap-select/dist/css/bootstrap-select.css';\nimport './bootstrap-select.css'\nimport { fillBootstrapSelectWithAjax, setSelectpickerVal } from './bootstrap-select-utils.js';\n\n(function (root, factory) {\r\n if (root === undefined && window !== undefined) root = window;\r\n if (typeof define === 'function' && define.amd) {\r\n // AMD. Register as an anonymous module unless amdModuleId is set\r\n define([\"jquery\"], function (a0) {\r\n return (factory(a0));\r\n });\r\n } else if (typeof module === 'object' && module.exports) {\r\n // Node. Does not work with strict CommonJS, but\r\n // only CommonJS-like environments that support module.exports,\r\n // like Node.\r\n module.exports = factory(require(\"jquery\"));\r\n } else {\r\n factory(root[\"jQuery\"]);\r\n }\n}(this,\n /**\r\n * \n * @param {JQueryStatic} jQuery\r\n * @returns\r\n */\r\n function (jQuery) {\r\n (function ($) {\n let sp = $.fn.selectpicker//.Constructor\n $.fn.selectpicker.Constructor.prototype.checkRequired = function () {\r\n var that = this;\n if (this.$element[0].required) {\n this.$element.on('invalid.bs.select', function () {\n that.$button[0].classList.add('bs-invalid');\n\n that.$element\n .on('shown.bs.select' + '.invalid', function () {\n that.$element\n .val(that.$element.val()) // set the value to hide the validation message in Chrome when menu is opened\n .off('shown.bs.select' + '.invalid');\n })\n .on('rendered.bs.select', function () {\n // if select is no longer invalid, remove the bs-invalid class\n if (this.validity.valid) that.$button[0].classList.remove('bs-invalid');\n that.$element.off('rendered.bs.select');\n });\n\n that.$button.on('blur.bs.select', function () {\n that.$element.trigger('focus').trigger('blur');\n that.$button.off('blur.bs.select');\n });\n });\n } else {\n this.$element.off('invalid.bs.select');\n }\n }\n $.fn.selectpicker.Constructor.prototype.refresh = function () {\n // update options if data attributes have been changed\n var config = $.extend({}, this.options, this.$element.data());\n this.options = config;\n\n this.checkRequired();\n this.checkDisabled();\n this.buildData();\n this.setStyle();\n this.render();\n this.buildList();\n this.setWidth();\n\n this.setSize(true);\n\n this.$element.trigger('refreshed.bs.select');\n }\n\n return sp\n })(jQuery);\r\n\n }))\n\nexport {\n fillBootstrapSelectWithAjax,\n setSelectpickerVal,\n};","var _a, _b;\r\nimport createTheme from '@material-ui/core/styles/createTheme';\r\nvar root = document.querySelector(':root');\r\nvar rootStyles = root ? getComputedStyle(root) : null;\r\nexport default createTheme({\r\n typography: {\r\n fontFamily: [\r\n 'OpenSans',\r\n 'Roboto',\r\n '\"Helvetica Neue\"',\r\n 'Arial',\r\n 'sans-serif'\r\n ].join(','),\r\n h6: { fontWeight: 600 },\r\n overline: { lineHeight: 1.175 },\r\n subtitle1: { lineHeight: 1.5 }\r\n },\r\n palette: {\r\n primary: { main: ((_a = rootStyles === null || rootStyles === void 0 ? void 0 : rootStyles.getPropertyValue('--color-primary')) === null || _a === void 0 ? void 0 : _a.trim()) || '#f15623' },\r\n secondary: { main: ((_b = rootStyles === null || rootStyles === void 0 ? void 0 : rootStyles.getPropertyValue('--color-secondary')) === null || _b === void 0 ? void 0 : _b.trim()) || '#375b7d' },\r\n //primary: { main: '#f15623' },\r\n //secondary: { main: '#375b7d' },\r\n }\r\n});\r\n","import React from 'react';\r\nimport Alert from '@material-ui/lab/Alert';\r\nimport AlertTitle from '@material-ui/lab/AlertTitle';\r\nimport { _T } from 'appI18n';\r\nimport { GlobalSpinnerContext } from '../GlobalSpinnerProvider';\r\nexport default class ErrorBoundary extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = { hasError: false };\r\n }\r\n static getDerivedStateFromError(error) {\r\n // Update state so the next render will show the fallback UI.\r\n return { hasError: true };\r\n }\r\n componentDidCatch(error, errorInfo) {\r\n // You can also log the error to an error reporting service\r\n console.error(error, errorInfo);\r\n this.context.hide();\r\n }\r\n render() {\r\n var _a, _b;\r\n if (this.state.hasError) {\r\n return (React.createElement(Alert, { severity: \"error\", variant: \"filled\" },\r\n React.createElement(AlertTitle, null, (_a = _T === null || _T === void 0 ? void 0 : _T.COMMON_CRITICAL_ERROR_TITLE) !== null && _a !== void 0 ? _a : 'COMMON_CRITICAL_ERROR_TITLE'), (_b = _T === null || _T === void 0 ? void 0 : _T.COMMON_CRITICAL_ERROR_BODY) !== null && _b !== void 0 ? _b : 'COMMON_CRITICAL_ERROR_BODY'));\r\n }\r\n return this.props.children;\r\n }\r\n}\r\nErrorBoundary.contextType = GlobalSpinnerContext;\r\n","import { formatString, _T } from '../../../include/appI18n';\r\nexport const _ParentFrame = () => window.parentIFrame;\r\nexport const autocompleteLocalizationProps = {\r\n clearText: _T.AUTOCOMPLETE_CLEAR,\r\n closeText: _T.AUTOCOMPLETE_CLOSE,\r\n getLimitTagsText: (num) => formatString(_T.AUTOCOMPLETE_LIMIT_TAGS, [num]),\r\n loadingText: _T.AUTOCOMPLETE_LOADING,\r\n noOptionsText: _T.AUTOCOMPLETE_NO_OPTIONS,\r\n openText: _T.AUTOCOMPLETE_OPEN,\r\n};\r\nexport const iconClasses = { root: 'MuiSvgIcon-root-widget' };\r\n","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n};\r\nimport React, { useEffect, useMemo, useRef, useState } from 'react';\r\nimport { Box, Button, Card, FormControlLabel, Grid, IconButton, makeStyles, Radio, TextField, ThemeProvider, Typography } from '@material-ui/core';\r\n//import ImageList from '@material-ui/core/ImageList';\r\n//import ImageListItem from '@material-ui/core/ImageListItem';\r\nimport { api } from '../../../include/network/network';\r\nimport { clamp } from '../../../include/common';\r\nimport Theme from 'react-common/theme';\r\nimport MomentUtils from '@date-io/moment';\r\nimport { BrowserRouter as Router } from 'react-router-dom';\r\nimport ErrorBoundary from '../../../include/react-components/ErrorBoundary';\r\nimport { BackdropProvider } from '../../../include/react-components/BackdropProvider';\r\nimport { GlobalSpinnerProvider } from '../../../include/react-components/GlobalSpinnerProvider';\r\nimport { MuiPickersUtilsProvider } from '@material-ui/pickers';\r\nimport { _T } from '../../../include/appI18n';\r\nconst useStyles = makeStyles(theme => ({\r\n paymentContainer: {\r\n '& h3': {\r\n marginTop: 0,\r\n paddingTop: 0,\r\n },\r\n },\r\n paymentMethods: {},\r\n prepaymentTypes: {},\r\n paymentMethod: {},\r\n paymentMethodRadio: {},\r\n paymentMethodDescription: {},\r\n paymentEditorOpener: {},\r\n paymentAmount: {},\r\n paymentButtons: {},\r\n paymentButton: {},\r\n selected: {},\r\n disabled: {},\r\n paymentImgContainer: {},\r\n label: {\r\n //marginTop: '2px !important',\r\n //marginBottom: '2px !important ',\r\n width: '100%',\r\n '& .MuiTypography-root.MuiFormControlLabel-label.MuiTypography-body1': {\r\n width: '100%',\r\n }\r\n }\r\n}));\r\nexport function PaymentFormContainer(props) {\r\n return (React.createElement(BackdropProvider, null,\r\n React.createElement(GlobalSpinnerProvider, null,\r\n React.createElement(ErrorBoundary, null,\r\n React.createElement(ThemeProvider, { theme: Theme },\r\n React.createElement(MuiPickersUtilsProvider, { utils: MomentUtils },\r\n React.createElement(Router, null,\r\n React.createElement(PaymentForm, Object.assign({}, props)))))))));\r\n}\r\nexport function PaymentForm(props) {\r\n const classes = useStyles();\r\n const [paymentMethods, setPaymentMethods] = useState();\r\n const allowPartialPayment = useMemo(() => props.allowPartialPayment && props.paymentAmount > props.prepaymentAmount && (paymentMethods === null || paymentMethods === void 0 ? void 0 : paymentMethods.prepaymentEnabled), [props, paymentMethods === null || paymentMethods === void 0 ? void 0 : paymentMethods.prepaymentEnabled]);\r\n const userIsAgent = useMemo(() => props.userType == 'agent', [props]);\r\n const editorRef = useRef(null);\r\n const [prepaymentType, setPrepaymentType_] = useState(props.allowPayingLater || allowPartialPayment ? 'partial' : 'full');\r\n const setPrepaymentType = (newValue) => {\r\n if (!allowSetPayAmount)\r\n return;\r\n setPreviousPrepaymentType(prepaymentType);\r\n setPrepaymentType_((newValue == 'partial' && !allowPartialPayment) ? 'full' : newValue);\r\n if (paymentInfo)\r\n setPaymentInfo(paymentInfo);\r\n };\r\n const currentPaymentMethods = useMemo(() => (paymentMethods === null || paymentMethods === void 0 ? void 0 : paymentMethods.full) || [], [paymentMethods]);\r\n //const currentPaymentMethods = useMemo(() => (prepaymentType == 'partial' ? paymentMethods?.prepay : paymentMethods?.full) || [], [paymentMethods, prepaymentType]);\r\n //const [currentPaymentMethods, setCurrentPaymentMethods] = useState([]);\r\n const [paymentInfo, setPaymentInfo_] = useState();\r\n const setPaymentInfo = (newValue) => {\r\n var _a, _b, _c, _d, _e, _f;\r\n if (newValue) {\r\n let oldValue = paymentInfo;\r\n let pm = (_a = currentPaymentMethods.find(p => p.paymentSystem == newValue.paymentSystem)) !== null && _a !== void 0 ? _a : currentPaymentMethods.find(p => !p.paymentSystem);\r\n let exists = pm ? pm.paymentMethods.find(p => p.name == newValue.name && p.paymentSystem == newValue.paymentSystem) : undefined;\r\n if (newValue != oldValue && !(exists === null || exists === void 0 ? void 0 : exists.allowSetPayAmount)) {\r\n setPrepaymentType('none');\r\n }\r\n setPaymentInfo_(exists ? exists : (_b = currentPaymentMethods[0]) === null || _b === void 0 ? void 0 : _b.paymentMethods[0]);\r\n setPaymentMethod(exists ? exists.paymentMethod : (_d = (_c = currentPaymentMethods[0]) === null || _c === void 0 ? void 0 : _c.paymentMethods[0]) === null || _d === void 0 ? void 0 : _d.paymentMethod);\r\n setPaymentSystem(exists ? exists.paymentSystem : (_f = (_e = currentPaymentMethods[0]) === null || _e === void 0 ? void 0 : _e.paymentMethods[0]) === null || _f === void 0 ? void 0 : _f.paymentSystem);\r\n if (newValue != oldValue && !prepaymentType) {\r\n setPrepaymentType_(previousPrepaymentType);\r\n }\r\n }\r\n else {\r\n setPaymentInfo_(newValue);\r\n }\r\n };\r\n const allowSetPayAmount = useMemo(() => !paymentInfo || paymentInfo.allowSetPayAmount, [paymentInfo]);\r\n const [previousPrepaymentType, setPreviousPrepaymentType] = useState(prepaymentType);\r\n const [paymentSystem, setPaymentSystem] = useState();\r\n const [paymentMethod, setPaymentMethod] = useState();\r\n const [paymentEditorOpen, setPaymentEditorOpen] = useState(false);\r\n const [fullPaymentAmount, setFullPaymentAmount] = useState(props.paymentAmount);\r\n const [partialPaymentAmount, setPartialPaymentAmount_] = useState(props.prepaymentAmount);\r\n const [partialPaymentAmountTemp, setPartialPaymentAmountTemp] = useState(props.prepaymentAmount);\r\n const setPartialPaymentAmount = (newValue) => {\r\n setPartialPaymentAmount_(clamp(newValue, props.prepaymentAmount, props.paymentAmount));\r\n };\r\n const totalPaymentAmount = useMemo(() => {\r\n switch (prepaymentType) {\r\n case 'none':\r\n return 0;\r\n case 'partial':\r\n return partialPaymentAmount;\r\n case 'full':\r\n return fullPaymentAmount;\r\n default:\r\n return -1;\r\n }\r\n }, [prepaymentType, partialPaymentAmount, fullPaymentAmount]);\r\n const percent = useMemo(() => props.userType == 'agent' ? paymentMethod == 'CreditCard' ? props.agentAcquiringPercentByCard : paymentMethod == 'Sbp' ? props.agentAcquiringPercentBySbp : 0 : 0, [paymentMethod, props.userType]);\r\n const presentmentAmount = useMemo(() => Math.ceil(totalPaymentAmount * (100 + percent)) / 100, [totalPaymentAmount, percent]);\r\n //const presentmentAmount = useMemo(() => Math.ceil(totalPaymentAmount * (100 + percent) / 100), [totalPaymentAmount, percent]);\r\n useEffect(() => {\r\n (() => __awaiter(this, void 0, void 0, function* () {\r\n const response = yield api('get', `/payment/PaymentSystems/${props.location}`, {});\r\n if (response === null || response === void 0 ? void 0 : response.response) {\r\n setPaymentMethods(response.response);\r\n setPrepaymentType('partial');\r\n //setTimeout(() => setPaymentInfo(response.response.full[0].paymentMethods[0]), 100);\r\n }\r\n }))()\r\n .finally(() => {\r\n if (props.onInitialized)\r\n props.onInitialized();\r\n });\r\n }, []);\r\n useEffect(() => {\r\n var _a;\r\n setPaymentInfo(paymentInfo !== null && paymentInfo !== void 0 ? paymentInfo : (_a = currentPaymentMethods.find(_ => true)) === null || _a === void 0 ? void 0 : _a.paymentMethods.find(_ => true));\r\n }, [currentPaymentMethods]);\r\n const reportSuccess = () => {\r\n let willingToPay = prepaymentType != 'none';\r\n let result = {\r\n willingToPay: willingToPay,\r\n paymentSystem: willingToPay ? paymentSystem : undefined,\r\n paymentMethod: willingToPay ? paymentMethod : undefined,\r\n paymentAmount: willingToPay ? totalPaymentAmount : 0,\r\n };\r\n props.onSuccess(result);\r\n };\r\n const reportCancelled = () => {\r\n if (props.onCancel)\r\n props.onCancel();\r\n };\r\n return (React.createElement(Grid, { container: true, spacing: 2 },\r\n React.createElement(Grid, { item: true, xs: 12 },\r\n React.createElement(\"h5\", { className: \"payment-form-caption\" }, _T.BOOKING_PAYORDER)),\r\n React.createElement(Grid, { item: true, xs: 12 },\r\n React.createElement(Grid, { container: true, spacing: 2 },\r\n React.createElement(Grid, { item: true, xs: 12, className: \"payment-container\" },\r\n React.createElement(Box, { className: \"payment-methods prepayment-types\" },\r\n React.createElement(\"h6\", { className: \"payment-form-subheader payment-methods-section-caption\" }, _T.BOOKING_PAY_OPTIONS),\r\n props.allowPayingLater && props.prepaymentAmount > 0 ?\r\n React.createElement(Card, { className: `payment-method${(prepaymentType == 'none' ? ` selected` : ``)}${(!allowSetPayAmount ? ` disabled` : ``)}`, onClick: () => setPrepaymentType('none') },\r\n React.createElement(FormControlLabel, { className: classes.label, disabled: !allowSetPayAmount, control: React.createElement(Radio, { checked: prepaymentType == 'none', value: 'none', readOnly: true, tabIndex: -1 }), label: React.createElement(Grid, { container: true, justify: \"space-between\", className: \"payment-method-description ml-1\", alignItems: \"center\" },\r\n React.createElement(Grid, { item: true, xs: 'auto' },\r\n React.createElement(Typography, { variant: \"subtitle1\" }, _T.BOOKING_CONTINUE_WITHOUT_PAY))) })) : React.createElement(React.Fragment, null),\r\n allowPartialPayment ?\r\n React.createElement(Card, { className: `payment-method${(prepaymentType == 'partial' ? ` selected` : ``)}${(!allowSetPayAmount ? ` disabled` : ``)}`, onClick: () => setPrepaymentType('partial') },\r\n React.createElement(FormControlLabel, { className: classes.label, disabled: !allowSetPayAmount, control: React.createElement(Radio, { checked: prepaymentType == 'partial', value: 'partial', readOnly: true, tabIndex: -1 }), label: React.createElement(Grid, { container: true, justify: \"space-between\", className: \"payment-method-description ml-1\", alignItems: \"center\" },\r\n React.createElement(Grid, { item: true, xs: 'auto' },\r\n React.createElement(Typography, { variant: \"subtitle1\" }, !props.allowPayingLater || props.prepaymentAmount > 0 ? _T.BOOKING_PAY_PARTIAL : _T.BOOKING_PAY_PARTIAL_OR_CONTINUE)),\r\n React.createElement(Grid, { item: true, xs: 'auto' },\r\n React.createElement(Typography, { variant: \"body1\", className: \"payment-amount\" }, !paymentEditorOpen ?\r\n React.createElement(React.Fragment, null,\r\n React.createElement(IconButton, { className: `mr-3 payment-editor-opener`, id: \"payment-editor-opener\", onClick: () => {\r\n setPaymentEditorOpen(true);\r\n setTimeout(() => {\r\n var _a;\r\n (_a = editorRef.current) === null || _a === void 0 ? void 0 : _a.focus();\r\n }, 100);\r\n }, style: { visibility: allowSetPayAmount ? 'visible' : 'collapse' } },\r\n React.createElement(\"span\", { className: \"fa fa-pencil\" })),\r\n partialPaymentAmount,\r\n \" \",\r\n props.currency.name) :\r\n React.createElement(React.Fragment, null,\r\n React.createElement(TextField, { variant: \"standard\", type: \"number\", value: partialPaymentAmountTemp, onChange: (e) => {\r\n setPartialPaymentAmountTemp(Number.parseFloat(e.target.value));\r\n }, inputProps: {\r\n onKeyDown: (e) => {\r\n if (e.code == 'Escape') {\r\n e.stopPropagation();\r\n setPartialPaymentAmountTemp(partialPaymentAmount);\r\n setPaymentEditorOpen(false);\r\n }\r\n if (e.code == 'Enter') {\r\n e.stopPropagation();\r\n setPartialPaymentAmount(Number.parseFloat(e.currentTarget.value));\r\n setPaymentEditorOpen(false);\r\n }\r\n }\r\n }, onBlur: (e) => {\r\n setPartialPaymentAmount(Number.parseFloat(e.target.value));\r\n setPaymentEditorOpen(false);\r\n }, inputRef: editorRef }),\r\n \" \",\r\n props.currency.name)))) })) : React.createElement(React.Fragment, null),\r\n React.createElement(Card, { className: `payment-method${(prepaymentType == 'full' ? ` selected` : ``)}${(!allowSetPayAmount ? ` disabled` : ``)}`, onClick: () => setPrepaymentType('full') },\r\n React.createElement(FormControlLabel, { className: classes.label, disabled: !allowSetPayAmount, control: React.createElement(Radio, { checked: prepaymentType == 'full', value: 'full', readOnly: true, tabIndex: -1 }), label: React.createElement(Grid, { container: true, justify: \"space-between\", className: \"payment-method-description ml-1\", alignItems: \"center\" },\r\n React.createElement(Grid, { item: true, xs: 'auto' },\r\n React.createElement(Typography, { variant: \"subtitle1\" }, _T.BOOKING_PAY_FULL)),\r\n React.createElement(Grid, { item: true, xs: 'auto' },\r\n React.createElement(Typography, { variant: \"body1\" },\r\n fullPaymentAmount,\r\n \" \",\r\n props.currency.name))) }))),\r\n React.createElement(Box, { className: \"payment-methods\" },\r\n React.createElement(\"h6\", { className: \"payment-form-subheader payment-methods-section-caption\" }, _T.BOOKING_PAY_METHODS),\r\n (currentPaymentMethods === null || currentPaymentMethods === void 0 ? void 0 : currentPaymentMethods.length) ?\r\n React.createElement(React.Fragment, null, currentPaymentMethods.map((methodInfo, i) => (React.createElement(React.Fragment, null, methodInfo.paymentMethods.map((method, j) => (React.createElement(Card, { key: i * 10 + j, className: `payment-method${(paymentInfo == method ? ` selected` : ``)}`, onClick: () => setPaymentInfo(method) },\r\n React.createElement(FormControlLabel, { className: classes.label, control: React.createElement(Radio, { checked: paymentInfo == method, value: method, readOnly: true, tabIndex: -1 }), label: React.createElement(Grid, { container: true, className: \"payment-method-description ml-1\", alignItems: \"center\", spacing: 2 },\r\n React.createElement(Grid, { item: true, xs: 'auto', style: { alignSelf: 'center' } },\r\n React.createElement(Typography, { variant: \"subtitle1\" }, method.description)),\r\n React.createElement(Grid, { item: true, xs: 'auto' },\r\n React.createElement(\"div\", { className: \"payment-img-container\" }, method.imgUrls.map((img, k) => (React.createElement(\"img\", { key: k, className: \"img-responsive\", style: { paddingTop: method.paymentSystem == 'GpWebPay' ? '8px' : undefined }, src: img }))))),\r\n props.userType == \"agent\" && (method.name == 'CreditCard' || method.name == 'Sbp')\r\n ? React.createElement(React.Fragment, null,\r\n React.createElement(\"h4\", { className: \"payment-amount ml-auto\" },\r\n \" + \",\r\n React.createElement(\"span\", null, method.name == 'CreditCard' ? props.agentAcquiringPercentByCard : props.agentAcquiringPercentBySbp),\r\n \"%\"))\r\n : null) })))))))) :\r\n React.createElement(React.Fragment, null)),\r\n allowSetPayAmount ? React.createElement(\"h6\", { className: \"payment-form-subheader payment-form-total-to-pay-caption\" },\r\n \"\\u0418\\u0442\\u043E\\u0433\\u043E \\u043A \\u043E\\u043F\\u043B\\u0430\\u0442\\u0435: \",\r\n presentmentAmount,\r\n \" \",\r\n props.currency.name) : null,\r\n React.createElement(Box, { className: \"payment-buttons\" },\r\n React.createElement(Box, { className: \"payment-button payment-button-cancel\" },\r\n React.createElement(Button, { variant: \"outlined\", color: \"default\", onClick: reportCancelled }, _T.COMMON_CANCEL_2)),\r\n React.createElement(Box, { className: \"payment-button payment-button-confirm\" },\r\n React.createElement(Button, { variant: \"contained\", color: \"primary\", onClick: reportSuccess, disabled: !(props.allowPayingLater || totalPaymentAmount > 0 || !allowSetPayAmount) || !prepaymentType || !paymentInfo },\r\n _T.COMMON_CONTINUE,\r\n \" \\u00BB\"))))))));\r\n}\r\n"],"names":["setupPopovers","query","pars","trigger","$","off","on","evt","preventDefault","$this","this","thisNode","each","idx","elt","popover","document","closePopover","e","target","attr","closest","length","is","root","factory","jQuery","fn","selectpicker","Constructor","prototype","checkRequired","that","$element","required","$button","classList","add","val","validity","valid","remove","refresh","config","extend","options","data","checkDisabled","buildData","setStyle","render","buildList","setWidth","setSize","undefined","window","define","a0","module","exports","require","_a","_b","querySelector","rootStyles","getComputedStyle","typography","fontFamily","join","h6","fontWeight","overline","lineHeight","subtitle1","palette","primary","main","getPropertyValue","trim","secondary","ErrorBoundary","constructor","props","super","state","hasError","getDerivedStateFromError","error","componentDidCatch","errorInfo","console","context","hide","Alert","severity","variant","AlertTitle","_T","COMMON_CRITICAL_ERROR_TITLE","COMMON_CRITICAL_ERROR_BODY","children","contextType","_ParentFrame","parentIFrame","AUTOCOMPLETE_CLEAR","AUTOCOMPLETE_CLOSE","AUTOCOMPLETE_LOADING","AUTOCOMPLETE_NO_OPTIONS","AUTOCOMPLETE_OPEN","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","value","step","next","rejected","result","done","then","apply","useStyles","theme","paymentContainer","marginTop","paddingTop","paymentMethods","prepaymentTypes","paymentMethod","paymentMethodRadio","paymentMethodDescription","paymentEditorOpener","paymentAmount","paymentButtons","paymentButton","selected","disabled","paymentImgContainer","label","width","PaymentFormContainer","M","utils","PaymentForm","Object","assign","classes","setPaymentMethods","useState","allowPartialPayment","useMemo","prepaymentAmount","prepaymentEnabled","editorRef","userType","useRef","prepaymentType","setPrepaymentType_","allowPayingLater","setPrepaymentType","newValue","allowSetPayAmount","setPreviousPrepaymentType","paymentInfo","setPaymentInfo","currentPaymentMethods","full","setPaymentInfo_","_c","_d","_e","_f","oldValue","pm","find","p","paymentSystem","exists","name","setPaymentMethod","setPaymentSystem","previousPrepaymentType","paymentEditorOpen","setPaymentEditorOpen","fullPaymentAmount","setFullPaymentAmount","partialPaymentAmount","setPartialPaymentAmount_","partialPaymentAmountTemp","setPartialPaymentAmountTemp","setPartialPaymentAmount","totalPaymentAmount","percent","agentAcquiringPercentByCard","agentAcquiringPercentBySbp","presentmentAmount","Math","ceil","useEffect","response","location","finally","onInitialized","_","container","spacing","item","xs","className","BOOKING_PAYORDER","BOOKING_PAY_OPTIONS","onClick","control","checked","readOnly","tabIndex","justify","alignItems","BOOKING_CONTINUE_WITHOUT_PAY","BOOKING_PAY_PARTIAL","BOOKING_PAY_PARTIAL_OR_CONTINUE","type","onChange","Number","parseFloat","inputProps","onKeyDown","code","stopPropagation","currentTarget","onBlur","inputRef","currency","id","setTimeout","current","focus","style","visibility","BOOKING_PAY_FULL","BOOKING_PAY_METHODS","map","methodInfo","i","method","j","key","alignSelf","description","imgUrls","img","k","src","color","onCancel","COMMON_CANCEL_2","willingToPay","onSuccess","COMMON_CONTINUE"],"sourceRoot":""}