Joywork/complexes/js/9a9e3c7c85ff1ccf.js

32 lines
40 KiB
JavaScript
Raw Permalink Normal View History

2026-05-22 20:21:54 +02:00
"use strict";
/*
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file in the browser devtools.
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
* or disable the default devtool with "devtool: false".
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
(self["webpackChunkcomplexes"] = self["webpackChunkcomplexes"] || []).push([["src_shared_utils_util_js"],{
/***/ "./src/app/store/fields.js":
/*!*********************************!*\
!*** ./src/app/store/fields.js ***!
\*********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ useFieldsStore: function() { return /* binding */ useFieldsStore; }\n/* harmony export */ });\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/core-js/modules/es.array.push.js\");\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var pinia__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! pinia */ \"./node_modules/pinia/dist/pinia.mjs\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm-bundler.js\");\n/* harmony import */ var _shared_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/shared/api */ \"./src/shared/api.js\");\n/* harmony import */ var vue_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-router */ \"./node_modules/vue-router/dist/vue-router.mjs\");\n\n\n\n\n\nconst useFieldsStore = (0,pinia__WEBPACK_IMPORTED_MODULE_3__.defineStore)(\"fields\", () => {\n const route = (0,vue_router__WEBPACK_IMPORTED_MODULE_4__.useRoute)();\n const decorations = (0,vue__WEBPACK_IMPORTED_MODULE_1__.reactive)([]);\n const paymentTypes = (0,vue__WEBPACK_IMPORTED_MODULE_1__.reactive)([]);\n const complexes_types = (0,vue__WEBPACK_IMPORTED_MODULE_1__.reactive)([]);\n const complex_suggestions = (0,vue__WEBPACK_IMPORTED_MODULE_1__.reactive)([]);\n const countries = (0,vue__WEBPACK_IMPORTED_MODULE_1__.reactive)([]);\n const metros = (0,vue__WEBPACK_IMPORTED_MODULE_1__.reactive)([]);\n const windowsPlacements = (0,vue__WEBPACK_IMPORTED_MODULE_1__.reactive)([]);\n const rf_regions = (0,vue__WEBPACK_IMPORTED_MODULE_1__.reactive)([]);\n const rayons = (0,vue__WEBPACK_IMPORTED_MODULE_1__.reactive)([]);\n const currentRegionInfo = (0,vue__WEBPACK_IMPORTED_MODULE_1__.reactive)({\n region_id: null,\n region_id_user: null,\n kladr: null,\n label: null\n });\n const regionsInfo = (0,vue__WEBPACK_IMPORTED_MODULE_1__.reactive)({\n regions: [],\n regions_list: {}\n });\n const complex_status = [];\n const builders = (0,vue__WEBPACK_IMPORTED_MODULE_1__.reactive)({\n list: [],\n options: []\n });\n const installmentPrograms = (0,vue__WEBPACK_IMPORTED_MODULE_1__.ref)([]);\n const fetchComplexStatuses = () => {\n _shared_api__WEBPACK_IMPORTED_MODULE_2__[\"default\"].getComplexStatus().then(response => {\n if (response.data) {\n complex_status.push(...response.data);\n }\n });\n };\n const refetchDecorationsList = () => {\n _shared_api__WEBPACK_IMPORTED_MODULE_2__[\"default\"].getDecorations().then(response => {\n decorations.splice(0);\n decorations.push(...response.data);\n });\n };\n const fetchInstallmentPrograms = async (houseId = null, complexId = null) => {\n try {\n installmentPrograms.value = [];\n let response;\n if (houseId) {\n response = await _shared_api__WEBPACK_IMPORTED_MODULE_2__[\"default\"].getInstallmentProgramsByHouseId(houseId);\n } else if (complexId) {\n response = await _shared_api__WEBPACK_IMPORTED_MODULE_2__[\"default\"].getInstallmentProgramsByComplexId(complexId);\n } else {\n response = await _shared_api__WEBPACK_IMPORTED_MODULE_2__[\"default\"].getInstallments();\n }\n if (response?.data) {\n installmentPrograms.value.push(...response.data);\n }\n } catch (e) {\n console.error('Ошибка загрузки программ рассрочек:', e);\n }\n };\n const fetchComplexSuggestions = isViewPage => _shared_api__WEBPACK_IMPORTED_MODULE_2__[\"default\"].getComplexSuggestions(isViewPage).then(response => {\n complex_suggestions.push(...response.data);\n });\n (0,vue__WEBPACK_IMPORTED_MODULE_1__.onMounted)(()
/***/ }),
/***/ "./src/shared/utils/util.js":
/*!**********************************!*\
!*** ./src/shared/utils/util.js ***!
\**********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ INITIAL_COMPLEX: function() { return /* binding */ INITIAL_COMPLEX; },\n/* harmony export */ adsStates: function() { return /* binding */ adsStates; },\n/* harmony export */ adsTargets: function() { return /* binding */ adsTargets; },\n/* harmony export */ avitoStateCheck: function() { return /* binding */ avitoStateCheck; },\n/* harmony export */ calculateInstallmentPrice: function() { return /* binding */ calculateInstallmentPrice; },\n/* harmony export */ cianStateCheck: function() { return /* binding */ cianStateCheck; },\n/* harmony export */ confirmpopupStyle: function() { return /* binding */ confirmpopupStyle; },\n/* harmony export */ containsNumber: function() { return /* binding */ containsNumber; },\n/* harmony export */ copyObject: function() { return /* binding */ copyObject; },\n/* harmony export */ domclickStateCheck: function() { return /* binding */ domclickStateCheck; },\n/* harmony export */ fixRoomVisible: function() { return /* binding */ fixRoomVisible; },\n/* harmony export */ formatDate: function() { return /* binding */ formatDate; },\n/* harmony export */ formatNumber: function() { return /* binding */ formatNumber; },\n/* harmony export */ generateAlphabetSequence: function() { return /* binding */ generateAlphabetSequence; },\n/* harmony export */ getConstraints: function() { return /* binding */ getConstraints; },\n/* harmony export */ getStatusText: function() { return /* binding */ getStatusText; },\n/* harmony export */ isActiveStatus: function() { return /* binding */ isActiveStatus; },\n/* harmony export */ isEmpty: function() { return /* binding */ isEmpty; },\n/* harmony export */ isErrorStatus: function() { return /* binding */ isErrorStatus; },\n/* harmony export */ isSendToAds: function() { return /* binding */ isSendToAds; },\n/* harmony export */ isWaitStatus: function() { return /* binding */ isWaitStatus; },\n/* harmony export */ join: function() { return /* binding */ join; },\n/* harmony export */ layout_futures: function() { return /* binding */ layout_futures; },\n/* harmony export */ multiSelectStyle: function() { return /* binding */ multiSelectStyle; },\n/* harmony export */ onlyStateCheck: function() { return /* binding */ onlyStateCheck; },\n/* harmony export */ photoToObjectUrl: function() { return /* binding */ photoToObjectUrl; },\n/* harmony export */ room_types: function() { return /* binding */ room_types; },\n/* harmony export */ room_types_which_has_rooms: function() { return /* binding */ room_types_which_has_rooms; },\n/* harmony export */ stateError: function() { return /* binding */ stateError; },\n/* harmony export */ stateWait: function() { return /* binding */ stateWait; },\n/* harmony export */ typeRooms: function() { return /* binding */ typeRooms; },\n/* harmony export */ yandexStateCheck: function() { return /* binding */ yandexStateCheck; }\n/* harmony export */ });\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/core-js/modules/es.array.push.js\");\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.url-search-params.delete.js */ \"./node_modules/core-js/modules/web.url-search-params.delete.js\");\n/* harmony import */ var core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_url_search_params_delete_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_web_url_search_params_has_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*!
/***/ })
}]);