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AOhC,EAAoBS,EAAEnS,EAC9B,EAEIgU,EAAqBnM,KAAsB,gBAAIA,KAAsB,iBAAK,GAC9EmM,EAAmBC,QAAQN,EAAqBO,KAAK,KAAM,IAC3DF,EAAmBxJ,KAAOmJ,EAAqBO,KAAK,KAAMF,EAAmBxJ,KAAK0J,KAAKF,G,IClDvFtC,EAAoByC,QAAKnV,ECGzB,IAAIoV,EAAsB1C,EAAoBS,OAAEnT,EAAW,CAAC,KAAK,KAAK,KAAK,OAAO,WAAa,OAAO0S,EAAoB,MAAQ,IAClI0C,EAAsB1C,EAAoBS,EAAEiC,G","sources":["webpack://App/webpack/runtime/chunk loaded","webpack://App/./Client/include/jquery-components/bootstrap-select/index.js","webpack://App/./Client/include/utils.ts","webpack://App/./Client/include/network/utils.js","webpack://App/./Client/include/network/network.ts","webpack://App/./Client/include/common.js","webpack://App/./Client/include/appI18n.ts","webpack://App/./Client/include/jquery-components/number-range-picker/index.js","webpack://App/./Client/src/Tour/tour.js","webpack://App/webpack/bootstrap","webpack://App/webpack/runtime/amd options","webpack://App/webpack/runtime/compat get default export","webpack://App/webpack/runtime/define property getters","webpack://App/webpack/runtime/harmony module decorator","webpack://App/webpack/runtime/hasOwnProperty shorthand","webpack://App/webpack/runtime/make namespace object","webpack://App/webpack/runtime/node module decorator","webpack://App/webpack/runtime/jsonp chunk loading","webpack://App/webpack/runtime/nonce","webpack://App/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","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};","import { readCsrfToken } from \"./network/network\";\r\nconst pluralizeAutoSplit = (count, pattern) => pluralize(count, ...pattern.split(',', 3));\r\nfunction pluralize(count, word, two, five) {\r\n const forms = [five, word, two, two, two, five, five, five, five, five];\r\n const mod100 = count % 100;\r\n if (mod100 <= 10 || mod100 >= 20)\r\n return forms[count % 10];\r\n else if (mod100 && mod100 < 20)\r\n return five;\r\n}\r\nfunction formatMoney(value, options) {\r\n var _a, _b, _c;\r\n if (isNaN(value))\r\n return \"?\";\r\n var sign = RoundSignForCurrency(options === null || options === void 0 ? void 0 : options.currency);\r\n if (options === null || options === void 0 ? void 0 : options.localeAware) {\r\n return new Intl.NumberFormat(window.language || undefined, {\r\n minimumFractionDigits: (_a = options === null || options === void 0 ? void 0 : options.precision) !== null && _a !== void 0 ? _a : sign,\r\n maximumFractionDigits: (_b = options === null || options === void 0 ? void 0 : options.precision) !== null && _b !== void 0 ? _b : sign,\r\n }).format(value);\r\n }\r\n else {\r\n return value.toFixed((_c = options === null || options === void 0 ? void 0 : options.precision) !== null && _c !== void 0 ? _c : sign);\r\n }\r\n}\r\nfunction RoundSignForCurrency(currency) {\r\n if ((currency === null || currency === void 0 ? void 0 : currency.toUpperCase()) == 'RUB')\r\n return 0;\r\n return 2;\r\n}\r\nfunction appUrl(url, searchParams) {\r\n let result = baseUrl(url);\r\n if (!searchParams || Object.keys(searchParams).length == 0)\r\n return result;\r\n const urlSearchParams = toURLSearchParams(searchParams);\r\n return result + (result.indexOf('?') == -1 ? \"?\" : \"&\") + urlSearchParams.toString();\r\n}\r\nfunction baseUrl(url) {\r\n if (url.startsWith('/')) {\r\n const baseUrl = window.appBase;\r\n if (!baseUrl)\r\n return url;\r\n if (baseUrl.endsWith('/'))\r\n return baseUrl.replace(/\\/+$/, '') + url;\r\n else\r\n return baseUrl + url;\r\n }\r\n else {\r\n return url;\r\n }\r\n}\r\nfunction toURLSearchParams(obj) {\r\n const searchParams = new URLSearchParams();\r\n toURLSearchParamsInner(searchParams, obj);\r\n return searchParams;\r\n}\r\nfunction toURLSearchParamsInner(searchParams, obj, prefix = undefined) {\r\n for (const [k, v] of Object.entries(obj).filter(([_, v]) => v !== null && v !== undefined)) {\r\n if (Array.isArray(v)) {\r\n for (let i = 0; i < v.length; i++) {\r\n const arrayVal = v[i];\r\n if (typeof arrayVal == \"object\")\r\n toURLSearchParamsInner(searchParams, arrayVal, `${prefix || ''}${k}[${i}].`);\r\n else\r\n searchParams.append(`${prefix || ''}${k}[${i}]`, arrayVal);\r\n }\r\n }\r\n else if (typeof v == \"object\") {\r\n toURLSearchParamsInner(searchParams, v, `${prefix || ''}${k}.`);\r\n }\r\n else {\r\n searchParams.append(`${prefix || ''}${k}`, v);\r\n }\r\n }\r\n return searchParams;\r\n}\r\nfunction isValidEmail(email) {\r\n return !!email.match(/^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.?$/gi);\r\n}\r\nconst getWeekDays = () => window.weekDays;\r\nconst getCurrency = () => window.currency;\r\nconst getCurrencies = () => window.currencies;\r\nconst openPaymentUrl = (function () {\r\n function redirect(targetUrl) {\r\n window.location.href = targetUrl;\r\n }\r\n function redirectBlank(targetUrl) {\r\n window.open(targetUrl, '_blank');\r\n }\r\n function submitForm(targetUrl, params, isBlank) {\r\n var _a, _b;\r\n let form = document.createElement('form');\r\n form.setAttribute('action', targetUrl);\r\n form.setAttribute('method', 'POST');\r\n if (isBlank)\r\n form.setAttribute('target', '_blank');\r\n if (params) {\r\n if (!params[\"csrfToken\"])\r\n params[\"csrfToken\"] = readCsrfToken();\r\n let paramEntries = Object.entries(params);\r\n for (var i = 0; i < paramEntries.length; i++) {\r\n let name = paramEntries[i][0];\r\n let val = (_a = paramEntries[i][1]) !== null && _a !== void 0 ? _a : ((_b = paramEntries[i][1]) !== null && _b !== void 0 ? _b : '').toString();\r\n let el = document.createElement('input');\r\n el.setAttribute('type', 'hidden');\r\n el.setAttribute('name', name);\r\n el.setAttribute('value', val);\r\n form.appendChild(el);\r\n }\r\n }\r\n document.body.appendChild(form);\r\n form.submit();\r\n }\r\n return function (paymentUrl) {\r\n if (paymentUrl.httpVerb == 'post' && paymentUrl.contentType == 'form') {\r\n submitForm(paymentUrl.targetUrl, paymentUrl.params, paymentUrl.isBlank);\r\n }\r\n else if (paymentUrl.httpVerb == 'get' && !paymentUrl.isBlank) {\r\n redirect(paymentUrl.targetUrl);\r\n }\r\n else if (paymentUrl.httpVerb == 'get' && paymentUrl.isBlank) {\r\n redirectBlank(paymentUrl.targetUrl);\r\n }\r\n else {\r\n console.error('Don\\'t know how to handle payment URL', paymentUrl);\r\n throw new Error('Unsupported payment URL');\r\n }\r\n };\r\n})();\r\nfunction removeEmptyFields(value, removableValues = [null, undefined, NaN]) {\r\n //function removeEmptyFields>(value: T, removableValues: any[] = [null, undefined, NaN]): Partial {\r\n return Object.fromEntries(Object.keys(value).filter(key => !removableValues.find(r => r === value[key])).map(key => [key, value[key]]));\r\n}\r\nexport { appUrl, pluralize, pluralizeAutoSplit, formatMoney, toURLSearchParams, toURLSearchParamsInner, isValidEmail, getWeekDays, getCurrency, getCurrencies, openPaymentUrl, removeEmptyFields, };\r\n","// Проверка того, что сервер вернул страницу входа. \"Грязный хак\", зато просто.\nfunction checkSessionEnd(p) {\n if (p && typeof p == \"string\") {\n if (p.match(/ disablePage(false));\r\n });\r\n}\r\n/**\r\n * Парсит ответ сервера и возвращает объект { data: [...], errors: [...] }.\r\n * Если ответ содержит ошибки, errors будет содержать непустой список со строками ошибок,\r\n * в противном случае - errors содержит пустой список.\r\n *\r\n * @param {Promise} r Promise содержащий ответ сервера\r\n */\r\nfunction parseJson(r) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n let json = null;\r\n let response;\r\n try {\r\n response = yield r;\r\n // Проверка на вылет из системы.\r\n if (response.headers.get('Content-Type') == 'text/html') {\r\n var text = yield response.text();\r\n checkSessionEnd(text);\r\n console.warn('Expected application/json but got text/html instead');\r\n return { response: undefined, errors: ['Logged out'] };\r\n }\r\n json = yield response.json();\r\n }\r\n catch (err) {\r\n console.error(\"Error while reading JSON response\", err);\r\n return { response: undefined, errors: ['Error while parsing server response'] };\r\n }\r\n if (typeof json == 'object' && ('errors' in json || 'data' in json)) {\r\n if (Array.isArray(json.errors) && json.errors.length > 0) {\r\n return { response: json.data, errors: json.errors };\r\n }\r\n else {\r\n return { response: json.data, errors: null };\r\n }\r\n }\r\n else {\r\n return { response: json, errors: null };\r\n }\r\n });\r\n}\r\nfunction readCsrfToken() {\r\n return window.csrfToken || null;\r\n}\r\nexport { api, apiS, readCsrfToken, };\r\n","import moment from 'moment';\r\nimport $ from 'jquery';\r\nimport { ajaxPost } from 'network/network-old.js';\r\nimport 'jquery-components/js-offcanvas';\r\nimport 'jquery-components/bootstrap-modal';\r\nimport 'jquery-components/bootstrap-select';\r\nimport { readCsrfToken } from 'network/network';\r\nimport { formatString } from './appI18n';\r\nimport { appUrl } from './utils';\r\n\r\n// Установка локали в зависимости от выбранного языка для moment.js.\r\nmoment.locale(language);\r\n\r\n// Общие настройки\r\n$(function () {\r\n\r\n jQuery.ajaxSettings.traditional = true; // Чтобы массивы сериализовались без []\r\n rebindExpand();\r\n // Ссылки плавного перемещения\r\n $(\"a[data-smooth-scroll]\").click(function (evt) {\r\n evt.preventDefault();\r\n var hash = $(this).attr(\"href\");\r\n $(\"html, body\").animate({ scrollTop: $(hash).offset().top }, 300);\r\n });\r\n});\r\n\r\nfunction rebindExpand() {\r\n // Ссылки раскрытия области\r\n $(\".expand-link\").off(\"click\", expandLink);\r\n $(\".expand-link\").on(\"click\", expandLink);\r\n}\r\n\r\nfunction expandLink(evt) {\r\n evt.preventDefault();\r\n var link = $(this);\r\n var srcClass = link.attr(\"data-src-class\");\r\n var toggleClass = link.attr(\"data-class\");\r\n $(\".\" + srcClass).toggleClass(toggleClass);\r\n link.toggleClass(\"expanded\");\r\n\r\n}\r\n\r\n// https://stackoverflow.com/questions/563406/add-days-to-javascript-date\r\nDate.prototype.addDays = function (days) {\r\n var dat = new Date(this.valueOf());\r\n dat.setDate(dat.getDate() + days);\r\n return dat;\r\n}\r\n\r\n// Отображает значок загрузки\r\nfunction showLoader() {\r\n $(\".wait-loading\").addClass(\"loading\");\r\n}\r\n\r\n// Скрывает значок загрузки\r\nfunction hideLoader() {\r\n $(\".wait-loading\").removeClass(\"loading\");\r\n}\r\n\r\n// Преобразование числа в строку https://stackoverflow.com/questions/5314237/is-there-a-functionality-in-javascript-to-convert-values-into-specific-locale-fo\r\nfunction numberToString(number, decimalPlaces) {\r\n var decimalCharacter = (language == \"ru\" ? \",\" : \".\"), thousandsCharacter = (language == \"ru\" ? \" \" : \",\");\r\n var symbolLocation = (symbolLocation == undefined || symbolLocation < 1 || symbolLocation == \"begin\") ? \"begin\" : \"end\";\r\n var decimalPlaces = isNaN(decimalPlaces = Math.abs(decimalPlaces)) ? 2 : decimalPlaces;\r\n var thisNumber = parseFloat(number.toFixed(decimalPlaces));\r\n var decimalCharacter = decimalCharacter == undefined ? \".\" : decimalCharacter;\r\n var thousandsCharacter = thousandsCharacter == undefined ? \",\" : thousandsCharacter;\r\n var pmB = thisNumber < 0 ? \"-\" : \"\";\r\n var i = parseInt(thisNumber = Math.abs(+thisNumber || 0)) + \"\";\r\n var j = (j = i.length) > 3 ? j % 3 : 0;\r\n var retString = pmB;\r\n retString += (j ? i.substr(0, j) + thousandsCharacter : \"\")\r\n retString += i.substr(j).replace(/(\\d{3})(?=\\d)/g, \"$1\" + thousandsCharacter);\r\n retString += (decimalPlaces ? decimalCharacter + (Math.floor(parseFloat(Math.abs(thisNumber - i).toFixed(6)) * Math.pow(10, decimalPlaces)) / Math.pow(10, decimalPlaces)).toFixed(decimalPlaces).slice(decimalPlaces) : \"\");\r\n return retString;\r\n};\r\n\r\n// Настройка страницы входа\r\nfunction setupLoginPage() {\r\n setupLoginControl(function (data) {\r\n if (data.redirectTo)\r\n window.location.href = data.redirectTo;\r\n });\r\n}\r\n\r\n\r\n// Настройка страницы регистрации\r\nfunction setupRegistrationPage() {\r\n $('.registration-form .tab-switcher input[name=\"tab-chooser\"]').on('change', function () {\r\n $(this).closest('[data-active-tab]').attr('data-active-tab', $(this).val());\r\n });\r\n $(\".registration-form .reg-data\").submit(function (evt) {\r\n evt.preventDefault();\r\n $(this).validator(\"validate\");\r\n if ($(\".has-error\", this).length)\r\n return;\r\n $(\".form-error\", this).text(\"\");\r\n\r\n switch (parseInt($('input[name=\"userType\"]', this).val())) {\r\n case 0:\r\n var submitUrl = appBase + \"Home/Registration\";\r\n break;\r\n case 1:\r\n var submitUrl = appBase + \"Home/ClientRegistration\";\r\n break;\r\n default:\r\n return;\r\n }\r\n var form = this;\r\n ajaxPost(submitUrl, $(this).serialize(), function (data) {\r\n if (data.Error) {\r\n showErrorDialog(data.Error);\r\n } else {\r\n $(form).addClass(\"dont-show\");\r\n $(\".tab-switcher\").addClass(\"dont-show\");\r\n $(\"~ .register-success\", form).removeClass(\"dont-show\");\r\n }\r\n });\r\n });\r\n\r\n if ($('[name=\"countryId\"]')) {\r\n ajaxGet(appBase + \"Home/GetCountries\", {}, function (data) {\r\n if (Array.isArray(data.data)) {\r\n updateBootstrapSelect($('[name=\"countryId\"]'), undefined, data.data.map(x => ([x.id, x.name])));\r\n }\r\n });\r\n $('[name=\"countryId\"]').change(function (evt) {\r\n var value = evt.target.value;\r\n ajaxGet(appBase + \"Home/GetCities\", { countryId: value }, function (data) {\r\n if (Array.isArray(data.data)) {\r\n updateBootstrapSelect($('[name=\"cityId\"]'), undefined, data.data.map(x => ([x.id, x.name])));\r\n }\r\n });\r\n })\r\n };\r\n}\r\n\r\nfunction updateBootstrapSelect($el, value, optionList) {\r\n // Убрать все дочерние