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/components/inputs/custom-inputs-models.js","webpack://hm/./wwwroot/js/components/login.js","webpack://hm/./wwwroot/js/components/side-menu.js","webpack://hm/./wwwroot/js/components/socials/socials-init.js","webpack://hm/./wwwroot/js/shared/globalize/globalize-formatters.js","webpack://hm/./wwwroot/js/store/advert-actions.js"],"sourcesContent":["import axios from 'axios';\nimport {globalActions} from '../../store/global-actions';\nimport {advertActions} from '../../store/advert-actions';\nimport utils from '../../shared/utils';\nimport {formValidationMixin} from '../mixins/component-mixins';\nimport {defineRule, Field, Form} from 'vee-validate';\nimport {max, min} from '@vee-validate/rules';\n\ndefineRule('min', min);\ndefineRule('max', max);\n\nconst buttonCardActionTemplateName = '#button-card-action';\nconst primaryTextAction = '#primary-text-action';\n\nconst cardActionBase = {\n props: {\n modelValue: {},\n buttonClass: {},\n isEngageAction: {},\n isMobile: {\n type: Boolean,\n required: false,\n },\n },\n data() {\n return Object.assign(this.modelValue, {isMobileDevice: this.isMobile});\n },\n emits: ['set-primary', 'change'],\n methods: {\n setPrimary() {\n this.$emit('set-primary', this.modelValue);\n },\n change() {\n this.modelValue.state = this.state;\n this.$emit('change', this.modelValue);\n },\n },\n};\n\nconst buttonCardAction = {\n extends: cardActionBase,\n template: buttonCardActionTemplateName,\n};\n\nconst stateCardActionMixin = {\n data() {\n return {state: this.modelValue.state};\n },\n computed: {\n currentState() {\n return this.state;\n },\n },\n methods: {\n sendChangeStateRequest() {\n return axios.post(this.url)\n .then((result) => {\n this.state = result.data;\n this.change();\n })\n .catch((result) => globalActions.handleAjaxErrors(result.response));\n },\n\n changeState() {\n this.sendChangeStateRequest();\n },\n },\n};\n\nconst primaryTextActionBase = {\n extends: cardActionBase,\n template: primaryTextAction,\n mixins: [formValidationMixin],\n components: {\n ValidationField: Field,\n VeeValidationFormContext: Form,\n },\n props: {\n forceFocus: {},\n },\n data() {\n return {\n uniqueId: utils.genUid(),\n validationExpression: null,\n message: null,\n showErrors: false,\n };\n },\n computed: {\n validationModel() {\n return this.message || {};\n },\n },\n watch: {\n forceFocus(value) {\n if (value) {\n this.focusTextarea();\n }\n },\n },\n methods: {\n focusTextarea() {\n this.$refs.textarea.focus();\n },\n clearTextarea() {\n this.$refs.textarea.clear();\n },\n },\n};\n\nfunction initCardActionComponents(app) {\n app.component('card-action', {\n extends: cardActionBase,\n template: '#card-action',\n });\n\n app.component('state-card-action', {\n extends: cardActionBase,\n template: '#state-card-action',\n mixins: [stateCardActionMixin],\n });\n\n app.component('visibility-card-action', {\n extends: cardActionBase,\n template: '#state-card-action',\n mixins: [stateCardActionMixin],\n methods: {\n changeState() {\n if (this.state === false) {\n this.sendChangeStateRequest();\n } else {\n advertActions.openHideModal(() => {\n this.sendChangeStateRequest();\n this.state = false;\n this.change();\n });\n }\n },\n },\n });\n\n app.component('fullscreen-card-action', {\n extends: buttonCardAction,\n props: {\n isAdvert: {\n type: Boolean,\n default: true,\n },\n },\n methods: {\n onActionClick() {\n globalActions.openFullscreenModal(this.url, this.isAdvert);\n },\n },\n });\n\n app.component('share-card-action', {\n extends: cardActionBase,\n template: '#share-card-action',\n });\n\n app.component('message-card-action', {\n extends: buttonCardAction,\n template: buttonCardActionTemplateName,\n methods: {\n onActionClick() {\n this.setPrimary();\n },\n },\n });\n\n app.component('rate-card-action', {\n extends: cardActionBase,\n template: '#rate-card-action',\n });\n\n app.component('message-primary-action', {\n extends: primaryTextActionBase,\n template: primaryTextAction,\n methods: {\n async onSubmit(message) {\n const chat = window.chat;\n if (chat) {\n chat.onConversationOpening = async (convId) => {\n chat.currentMessage = message;\n await chat.sendMessage(convId, false, false);\n chat.currentConversation = null;\n chat.onConversationOpening = async () => {\n };\n };\n\n await chat.initiateConversation(this.targetId, this.targetType);\n this.clearTextarea();\n }\n },\n },\n });\n\n app.component('comment-primary-action', {\n extends: primaryTextActionBase,\n template: primaryTextAction,\n data() {\n return {\n validationExpression: `min: 3, max: 500`,\n };\n },\n methods: {\n async onSubmit(message) {\n const validator = this.$refs.validator;\n const result = await validator.validate();\n if (!result.valid) {\n this.showErrors = true;\n return;\n }\n\n try {\n await axios.post(this.url, {body: message, targetId: this.targetId, commentType: this.targetType});\n if (this.successHeader && this.successMessage) {\n globalActions.openInfoModal(this.successHeader, this.successMessage);\n this.clearTextarea();\n }\n } catch (err) {\n console.error(err);\n globalActions.handleAjaxErrors(err);\n }\n },\n },\n });\n\n app.component('link-card-action', {\n extends: buttonCardAction,\n template: buttonCardActionTemplateName,\n methods: {\n onActionClick() {\n window.location = this.url;\n },\n },\n });\n\n app.component('post-card-action', {\n extends: buttonCardAction,\n template: buttonCardActionTemplateName,\n methods: {\n onActionClick() {\n axios.post(this.url, this.data)\n .then((response) => {\n window.location = `${response.data}`;\n })\n .catch((result) => globalActions.handleAjaxErrors(result.response));\n },\n },\n });\n\n app.component('dealcompleted-card-action', {\n extends: buttonCardAction,\n template: buttonCardActionTemplateName,\n methods: {\n onActionClick() {\n if (this.modelValue.isSale) {\n advertActions.openSoldModal(this.modelValue);\n } else {\n advertActions.openRentedModal(this.modelValue);\n }\n },\n },\n });\n\n app.component('copyas-card-action', {\n extends: cardActionBase,\n template: '#copyas-card-action',\n methods: {\n onActionClick() {\n advertActions.openCopyAsModal(this.modelValue);\n },\n },\n });\n\n app.component('delete-card-action', {\n extends: buttonCardAction,\n template: buttonCardActionTemplateName,\n methods: {\n onActionClick() {\n if (this.modelValue.hasActiveOrders) {\n advertActions.openConfirmAdvertDeleteModal(this.modelValue);\n } else {\n advertActions.openDeleteModal(this.modelValue);\n }\n },\n },\n });\n\n app.component('raiserelevance-card-action', {\n extends: buttonCardAction,\n template: buttonCardActionTemplateName,\n methods: {\n onActionClick() {\n axios.post(this.modelValue.url)\n .then(() => {\n this.$root.showUpdatedModal = true;\n this.$root.createOrderUrl = this.modelValue.createOrderUrl;\n })\n .catch((result) => globalActions.handleAjaxErrors(result.response));\n },\n },\n });\n}\n\nexport default initCardActionComponents;\n","import {store} from '../../store/global-store';\nimport _get from 'lodash/get';\nimport _u from '../../shared/utils';\n\nclass InputMeta {\n constructor(type, params) {\n this.type = type;\n this.label = params.label;\n this.options = params.options;\n this._filterKey = params.filterKey;\n }\n\n get id() {\n return this._filterKey;\n }\n\n get value() {\n return this.filterValue;\n }\n\n set value(newValue) {\n this.applyFilter({key: this._filterKey, value: newValue});\n }\n\n get filterKey() {\n return this._filterKey;\n }\n\n get filterValue() {\n return this._getFilterValue(this._filterKey);\n }\n\n _getFilterValue(filterKey) {\n return _get(store.getters.filter, filterKey);\n }\n\n isValueSet() {\n return this.value != null;\n }\n\n applyFilter(keyValue) {\n store.dispatch('applyFilter', keyValue);\n }\n\n getSummaryLabel(noValueLabel, withPrefix) {\n let summaryLabel = this._getSummaryLabel() || noValueLabel;\n\n if (summaryLabel && withPrefix) {\n summaryLabel = `${this.label}: ${summaryLabel}`;\n }\n\n return summaryLabel || this.label;\n }\n\n getTags() {\n return [\n {\n label: this.getSummaryLabel('', true),\n value: this.value,\n input: this,\n },\n ];\n }\n\n clear() {\n // overriden in inherited classes\n }\n\n _getSummaryLabel() {\n return '';\n }\n}\n\nclass CheckboxInputMeta extends InputMeta {\n constructor(params) {\n super('check-input', params);\n }\n\n isValueSet() {\n return this.value;\n }\n\n clear() {\n this.value = false;\n }\n\n _getSummaryLabel() {\n return this.value ? this.value.label : null;\n }\n}\n\nclass SelectInputMeta extends InputMeta {\n constructor(params) {\n super('select-input', params);\n this._hasPrefix = params.hasPrefix ?? true;\n }\n\n get value() {\n const selectedValue = this.filterValue;\n return this.options.find((option) => option.value === selectedValue);\n }\n\n set value(selectedOption) {\n this.applyFilter({key: this._filterKey, value: selectedOption ? selectedOption.value : null});\n }\n\n isValueSet() {\n return this.value && this.value.value != null;\n }\n\n clear() {\n this.value = null;\n }\n\n _getSummaryLabel() {\n return this.value ? this.value.label : null;\n }\n\n getTags() {\n return [\n {\n label: this.getSummaryLabel('', this._hasPrefix),\n value: this.value,\n input: this,\n },\n ];\n }\n}\n\nclass NoInputMeta extends InputMeta {\n constructor(params) {\n super('filter-without-input', params);\n }\n\n clear() {\n this.value = null;\n }\n}\n\nclass MultiselectInputMeta extends InputMeta {\n constructor(params) {\n super('multiselect-input', params);\n }\n\n get value() {\n const selectedValues = this.filterValue;\n\n if (!selectedValues) {\n return [];\n }\n\n return this.options.filter((option) => selectedValues.includes(option.value));\n }\n\n set value(selectedOptions) {\n const selectedValues = selectedOptions.map((option) => option.value);\n this.applyFilter({key: this._filterKey, value: selectedValues});\n }\n\n isValueSet() {\n return this.value && this.value.length > 0;\n }\n\n clear(option) {\n if (option) {\n this.value = this.value.filter((v) => v.value !== option.value);\n } else {\n this.value = [];\n }\n }\n\n getTags() {\n return this.value.map((option) => {\n return {\n label: option.label,\n value: option,\n input: this,\n };\n });\n }\n\n _getSummaryLabel() {\n return this.value && this.value.length > 0 ? this.value.map((v) => v.label).join(', ') : null;\n }\n}\n\nclass RangeInputMeta extends InputMeta {\n constructor(params) {\n super('range-input', params);\n this._filterKey = params.filterKey;\n this._filterMinKey = params.filterMinKey;\n this._filterMaxKey = params.filterMaxKey;\n this._toLabel = params.toLabel;\n this._fromLabel = params.fromLabel;\n this.formatter = params.formatter;\n }\n\n get id() {\n return this._filterKey ? this._filterKey : this._filterMinKey;\n }\n\n get value() {\n const minSelected = this.options.find((option) => option.value === this.minValue);\n const maxSelected = this.options.find((option) => option.value === this.maxValue);\n return {min: minSelected, max: maxSelected};\n }\n\n set value(newValue) {\n const min = newValue && newValue.min ? newValue.min.value : null;\n const max = newValue && newValue.max ? newValue.max.value : null;\n this.applyFilter({key: this._filterMinKey, value: min});\n this.applyFilter({key: this._filterMaxKey, value: max});\n }\n\n get minValue() {\n return this._getFilterValue(this._filterMinKey);\n }\n\n get maxValue() {\n return this._getFilterValue(this._filterMaxKey);\n }\n\n get filterMinKey() {\n return this._filterMinKey;\n }\n\n get filterMaxKey() {\n return this._filterMaxKey;\n }\n\n isValueSet() {\n return this.minValue != null || this.maxValue != null;\n }\n\n clear() {\n this.value = null;\n }\n\n _formatRange(min, max) {\n let result = null;\n\n if (min && max) {\n if (min === max) {\n result = `${min.label}`;\n } else if (!min.value) {\n result = `${this._toLabel} ${max.label}`;\n } else if (!max.value) {\n result = `${this._fromLabel} ${min.label}`;\n } else {\n result = `${min.label} - ${max.label}`;\n }\n } else if (min) {\n result = min.label.includes('+') ? min.label : `${min.label}+`;\n } else if (max) {\n result = !max.value ? max.label : `${this._fromLabel} ${max.label}`;\n }\n\n if (this.formatter) {\n result = this.formatter(result);\n }\n\n return result;\n }\n\n _getSummaryLabel() {\n return this._formatRange(this.value.min, this.value.max);\n }\n}\n\nclass TwoSidesRangeInputMeta extends InputMeta {\n constructor(params) {\n super('range-input', params);\n this._filterKey = params.filterKey;\n this._filterMinKey = params.filterMinKey;\n this._filterMaxKey = params.filterMaxKey;\n this._leftSideLabel = params.leftSideLabel;\n this._rightSideLabel = params.rightSideLabel;\n }\n\n get minValue() {\n return this._getFilterValue(this._filterMinKey);\n }\n\n get maxValue() {\n return this._getFilterValue(this._filterMaxKey);\n }\n\n get value() {\n return {min: this.minValue, max: this.maxValue};\n }\n\n set value(newValue) {\n if (!newValue) {\n this.applyFilter({key: this._filterKey, value: null});\n return;\n }\n\n const min = newValue && newValue.min ? newValue.min.value : null;\n const max = newValue && newValue.max ? newValue.max.value : null;\n this.applyFilter({key: this._filterMinKey, value: min});\n this.applyFilter({key: this._filterMaxKey, value: max});\n }\n\n isValueSet() {\n return this.minValue != null || this.maxValue != null;\n }\n\n clear() {\n this.value = null;\n }\n\n _getSummaryLabel() {\n if (this.minValue) {\n return this._rightSideLabel;\n } else {\n return this._leftSideLabel;\n }\n }\n\n getTags() {\n return [\n {\n label: this.getSummaryLabel('', false),\n value: this.value,\n input: this,\n },\n ];\n }\n}\n\nclass CheckGroupInputMeta extends InputMeta {\n constructor(params) {\n super('check-group-input', params);\n }\n\n get value() {\n return this.filterValue;\n }\n\n set value(newValue) {\n this.applyFilter({key: this._filterKey, value: newValue});\n }\n\n isValueSet() {\n return this.value && Object.values(this.value).find((v) => v);\n }\n\n getTags() {\n return Object.keys(this.value)\n .filter((key) => this.value[key])\n .map((key) => {\n return {\n label: this.options[key],\n value: key,\n input: this,\n };\n });\n }\n\n clear(key) {\n if (key) {\n this.value[key] = false;\n } else {\n Object.keys(this.value).map((k) => this.value[k] = false);\n }\n }\n\n _getSummaryLabel() {\n const selected = Object.keys(this.value).filter((key) => this.value[key]);\n return selected.length > 0 ? `(${selected.length})` : null;\n }\n}\n\nclass AddressInputMeta extends InputMeta {\n constructor(params) {\n super('address-input', params);\n this.error = params.error;\n }\n\n get value() {\n return this.filterValue;\n }\n\n set value(newValue) {\n // do nothing, filter will be set in autocomplete callback\n }\n\n isValueSet() {\n return false;\n }\n}\n\nconst dynamicMetaMapping = {\n 'Input': InputMeta,\n 'Checkbox': CheckboxInputMeta,\n 'Dropdown': SelectInputMeta,\n 'Range': RangeInputMeta,\n};\n\nconst DynamicInputMetaFactory = {\n createInputMeta(uiControl, params) {\n const MetaClass = dynamicMetaMapping[uiControl];\n\n if (!MetaClass) {\n console.error(`Unsupported uiControl '${uiControl}'. Unable to create input meta.`);\n return;\n }\n\n if (MetaClass == RangeInputMeta) {\n const propertyName = _u.capitalizeFirstLetter(params.filterKey);\n params.filterMinKey = `${params.filterKeyPrefix}.min${propertyName}`;\n params.filterMaxKey = `${params.filterKeyPrefix}.max${propertyName}`;\n } else if (params.filterKeyPrefix) {\n params.filterKey = `${params.filterKeyPrefix}.${params.filterKey}`;\n }\n\n return new MetaClass(params);\n },\n};\n\n\nexport {AddressInputMeta, SelectInputMeta, MultiselectInputMeta, CheckGroupInputMeta, RangeInputMeta,\n InputMeta, CheckboxInputMeta, DynamicInputMetaFactory, NoInputMeta, TwoSidesRangeInputMeta};\n\n","import {nextTick} from 'vue';\nimport shared from '../shared';\nimport {modal} from './modals/modals';\nimport _u from '../shared/utils';\nimport {store} from '../store/global-store';\nimport {formValidationMixin} from './mixins/component-mixins';\nimport {defineRule, Field, Form} from 'vee-validate';\nimport {min, regex, required} from '@vee-validate/rules';\nimport axios from 'axios';\n\ndefineRule('required', required);\ndefineRule('regex', regex);\ndefineRule('min', min);\n\nconst loginControl = {\n data() {\n return {\n loginMode: false,\n returnUrl: null,\n registrationTrigger: null,\n rememberMe: true,\n invitationId: null,\n password: null,\n isAgent: false,\n referencedUserEmail: null,\n enteredEmail: null,\n // true when login in modal\n // false for static pages - Login and Register\n isNeedToUpdateReturnUrl: true,\n isValidationVisible: false,\n submitting: false,\n authErrors: null,\n };\n },\n components: {\n VeeValidationFormContext: Form,\n ValidationField: Field,\n },\n computed: {\n validationModel() {\n return this.referencedUserEmail || {};\n },\n authErrorKeys() {\n return Object.keys(this.authErrors);\n },\n errorVisibility() {\n return this.authErrors;\n },\n userEmail() {\n return this.referencedUserEmail ? this.referencedUserEmail : this.enteredEmail;\n },\n },\n methods: {\n startFormSubmit() {\n this.submitting = true;\n },\n\n stopFormSubmit() {\n this.submitting = false;\n },\n\n switchMode() {\n this.loginMode = !this.loginMode;\n this.isValidationVisible = false;\n this.clearErrorState();\n },\n showValidation() {\n this.isValidationVisible = true;\n },\n beforeSubmit() {\n this.startFormSubmit();\n this.showValidation();\n },\n async _validate() {\n const validator = this.$refs.validator;\n const result = await validator.validate();\n\n return result.valid;\n },\n async submitForm() {\n this.beforeSubmit();\n\n if (await this._validate()) {\n this.clearErrorState();\n this._updateReturnUrl(this.$refs.form);\n this._deleteReferencedUserData();\n await this.sendDataAction();\n } else {\n this._handleSubmitError();\n this.stopFormSubmit();\n }\n },\n clearErrorState() {\n this.authErrors = null;\n },\n\n getFormRequestConfig() {\n const loginAntiforgeryTokenIndex = 7;\n const antiforgeryToken = this.$refs.form[loginAntiforgeryTokenIndex]?._value;\n return _u.createFormRequestConfig(antiforgeryToken);\n },\n async sendDataAction() {\n const requestConfig = this.getFormRequestConfig();\n const authForm = this.$refs.form;\n\n try {\n const response = await axios.post(authForm.action, authForm, requestConfig);\n\n this.handleSuccessResult(response);\n } catch (error) {\n this.handleErrorResult(error);\n }\n\n this.afterRequestSendingActions();\n },\n handleSuccessResult(response) {\n this.stopFormSubmit();\n if (response && response.status === 200) {\n if (response.data?.redirectUrl) {\n const currentUrl = window.location.href.replace(window.location.origin, '');\n\n if (currentUrl === response.data?.redirectUrl) {\n window.location.reload();\n } else {\n window.location.href = response.data?.redirectUrl;\n }\n }\n }\n },\n handleErrorResult(error) {\n this.stopFormSubmit();\n this.authErrors = error.response?.data?.errors;\n\n if (error.response.data?.email) {\n this.enteredEmail = error.response.data?.email;\n }\n },\n afterRequestSendingActions() {\n },\n async forceSubmitForm() {\n await this.sendDataAction();\n },\n submitSocialForm(formId) {\n const form = this.$refs[formId];\n if (form) {\n this.startFormSubmit(true);\n this._updateReturnUrl(form);\n this._deleteReferencedUserData();\n\n form.submit();\n }\n },\n _subscribeModeSwitch() {\n store.subscribe((mutation) => {\n if (mutation.type === 'loginModeSwitch') {\n this.switchMode();\n }\n });\n },\n _setReferencedUserData() {\n nextTick(() => {\n this.invitationId = localStorage.getItem('invitationId');\n this.referencedUserEmail = localStorage.getItem('referencedUserEmail');\n });\n },\n _deleteReferencedUserData() {\n localStorage.removeItem('invitationId');\n localStorage.removeItem('referencedUserEmail');\n },\n _updateReturnUrl(form) {\n if (this.isNeedToUpdateReturnUrl) {\n const currentUrl = _u.getCurrentUrl();\n const homeUrl = '/';\n\n if (!this.returnUrl && !form.action.includes(currentUrl)) {\n this.returnUrl = currentUrl;\n }\n\n // form action always includes / (slash)onCompleteCode\n // so if currentUrl is home url we should also assign it to returnUrl\n if (!this.returnUrl && currentUrl === homeUrl) {\n this.returnUrl = currentUrl;\n }\n\n if (this.returnUrl && !form.action.includes('returnUrl')) {\n form.action = _u.addQueryParamForUrl(form.action, 'returnUrl', this.returnUrl);\n }\n }\n },\n _subscribeChangePreselectRegistrationReasonStore() {\n store.subscribe((mutation) => {\n if (mutation.type === 'changePreselectRegistrationReason' && mutation.payload) {\n this.registrationTrigger = mutation.payload;\n }\n });\n },\n _handleSubmitError() {\n\n },\n },\n mounted() {\n this._subscribeModeSwitch();\n this._subscribeChangePreselectRegistrationReasonStore();\n this._setReferencedUserData();\n if (this.authErrors) {\n this.showValidation();\n }\n },\n};\n\nfunction initLoginComponents(app) {\n app.component('login-modal', {\n mixins: [modal, formValidationMixin, loginControl],\n template: '#login-modal',\n computed: {\n loginModalOpened: {\n get() {\n return store.state.shared.loginModalOpened;\n },\n set(value) {\n if (value === false) {\n store.commit('closeLoginModal');\n }\n },\n },\n },\n methods: {\n close() {\n this.loginModalOpened = false;\n },\n },\n });\n\n return {shared, loginControl};\n}\n\nexport {\n initLoginComponents,\n loginControl,\n};\n","function initSideMenuComponents(app) {\n app.component('side-menu', {\n template: '#side-menu-template',\n });\n\n app.component('side-menu-item', {\n template: '#side-menu-item-template',\n props: {\n isActive: {},\n },\n methods: {\n select() {\n this.$emit('selected');\n },\n },\n });\n}\n\nexport default initSideMenuComponents;\n","import $ from 'jquery';\nimport 'jssocials';\nimport ClipboardJS from 'clipboard';\nimport utils from '../../shared/utils';\n\nconst jsSocials = window.jsSocials;\n\nfunction initSocials(settings) {\n const {referrerId, descriptionText} = settings;\n\n const cssDefaults = {\n elementClass: 'js-scls',\n sharesClass: 'js-scls-shares',\n shareClass: 'js-scls-share',\n shareButtonClass: 'js-scls-share-button',\n shareLinkClass: 'js-scls-share-link',\n shareLogoClass: 'js-scls-share-logo',\n shareLabelClass: 'js-scls-share-label',\n shareLinkCountClass: 'js-scls-share-link-count',\n shareCountBoxClass: 'js-scls-share-count-box',\n shareCountClass: 'js-scls-share-count',\n shareZeroCountClass: 'js-scls-share-no-count',\n };\n\n jsSocials.setDefaults(cssDefaults);\n\n jsSocials.Socials.prototype._renderShare = function(share) {\n let $share;\n\n if ($.isFunction(share.renderer)) {\n $share = $(share.renderer());\n } else {\n $share = this._createShare(share);\n }\n\n $share.addClass(this.shareClass)\n .addClass(share.share ? `js-scls-share-${share.share}` : '')\n .addClass(share.css)\n .appendTo(this._$shares);\n\n const id = `${settings.shareActionButtonPrefix}${utils.genUid()}`;\n $share[0].setAttribute('id', id);\n };\n\n jsSocials.shares.facebook = {\n share: 'facebook',\n descriptionText,\n shareUrl: 'https://facebook.com/sharer/sharer.php?u={url}{referrerSource}{referrerId}"e={descriptionText}',\n referrerSource: '?rs=fb',\n referrerId,\n logo: 'fab fa-facebook',\n countUrl: 'https://graph.facebook.com/?id={url}{referrerSource}{referrerId}',\n getCount(data) {\n return data.count;\n },\n };\n jsSocials.shares.twitter = {\n share: 'twitter',\n shareUrl: 'https://twitter.com/share?url={url}{referrerSource}{referrerId}&text={text}&via={via}&hashtags={hashtags}',\n referrerSource: '?rs=tw',\n referrerId,\n logo: 'fab fa-twitter',\n countUrl: '',\n getCount(data) {\n return data.count;\n },\n };\n jsSocials.shares.email = {\n share: 'email',\n shareUrl: 'mailto:{to}?subject={text}&body={url}{referrerSource}{referrerId}',\n referrerSource: '?rs=eml',\n referrerId,\n logo: 'fa fa-envelope',\n countUrl: '',\n getCount(data) {\n return data.count;\n },\n };\n jsSocials.shares.vkontakte = {\n label: 'vkontakte',\n logo: 'fab fa-vk',\n descriptionText,\n shareUrl: 'https://vk.com/share.php?url={url}{referrerSource}{referrerId}&image={imageUrl}&title={text}&description={descriptionText}',\n referrerSource: '?rs=vk',\n referrerId,\n countUrl: '',\n getCount(data) {\n return data.count;\n },\n };\n jsSocials.shares.odnoklassniki = {\n label: 'odnoklassniki',\n logo: 'fab fa-odnoklassniki',\n descriptionText,\n shareUrl: 'https://connect.ok.ru/offer?url={url}{referrerSource}{referrerId}&imageUrl={imageUrl}&title={text}&description={descriptionText}',\n referrerSource: '?rs=ok',\n referrerId,\n countUrl: '',\n getCount(data) {\n return data.count;\n },\n };\n\n jsSocials.shares.copy = {\n label: 'Copy link',\n logo: 'fa fa-link',\n shareUrl: 'javascript: (function(){ })()',\n countUrl: '',\n shareIn: 'self',\n };\n}\n\nfunction initCopyToClipboard(shareUrl, container, linkCopiedMessage, shareDropdown, referrerId = '') {\n const referrerSource = '?rs=lnk';\n const copyLinkClass = 'js-scls-share-copy';\n const copyContainerClass = 'js-scl__copy-url';\n const copyUrlContainer = `.${copyContainerClass}`;\n\n const shareUrlCopy = `${shareUrl}${referrerSource}${referrerId}`;\n\n const copyUrlLayout = `
\n \n
`;\n const urlCopiedAlertLayout = `
\n \n ${linkCopiedMessage}\n
`;\n\n const shareContainer = $(container);\n const selector = shareContainer[0].classList.length ? `.${Array.from(shareContainer[0].classList).join('.')}` : '';\n const clickSelector = shareDropdown ? `.${copyLinkClass}` : `${selector} .${copyLinkClass}`;\n\n function appendCopyInfo(copySelector) {\n new ClipboardJS(document.querySelectorAll('.js-scls-share-copy i'), {text: () => shareUrlCopy}); // NOSONAR\n\n $(copySelector).click((e) => {\n // stopPropagation() to prevent dropdown close\n e.stopPropagation();\n\n shareContainer.find(copyUrlContainer).remove();\n shareContainer.append(copyUrlLayout);\n shareContainer.find(copyUrlContainer).prepend(urlCopiedAlertLayout);\n shareContainer.find('.js-scl__copy-url-input').select();\n });\n }\n\n if (shareDropdown) {\n $(shareDropdown).click(() => {\n appendCopyInfo(clickSelector);\n });\n\n $(shareDropdown).on('hidden.bs.dropdown',\n () => {\n shareContainer.find(copyUrlContainer).remove();\n });\n } else {\n $(document).ready(() => {\n appendCopyInfo(clickSelector);\n });\n\n $(document).click(function(e) {\n const targets = $(e.target).parents().addBack();\n const isLinkOrDropdownClicked = targets\n .filter((index, el) => $(el).hasClass(copyLinkClass) || $(el).hasClass(copyContainerClass)).length;\n if (!isLinkOrDropdownClicked) {\n shareContainer.find(copyUrlContainer).remove();\n }\n });\n }\n}\n\nexport {initCopyToClipboard, initSocials};\n","import Globalize from 'globalize';\n\nconst currencyShortFormatter = (currency) => Globalize.currencyFormatter(currency, {\n compact: 'short',\n minimumFractionDigits: 0,\n maximumFractionDigits: 1,\n});\n\nconst currencyMediumFormatter = (currency) => Globalize.currencyFormatter(currency, {\n compact: 'short',\n minimumFractionDigits: 0,\n maximumFractionDigits: 2,\n});\n\nconst currencyRoundFormatter = (currency) => Globalize.currencyFormatter(currency, {\n round: 'round',\n maximumFractionDigits: 0,\n});\n\nconst currencyLongFormatter = (currency) => Globalize.currencyFormatter(currency);\n\nconst numberShortFormatter = (locale) => Globalize(locale).numberFormatter({\n compact: 'short',\n minimumSignificantDigits: 3,\n maximumSignificantDigits: 3,\n});\n\nconst numberShortRoundFormatter = (locale) => Globalize(locale).numberFormatter({\n compact: 'short',\n minimumSignificantDigits: 1,\n maximumSignificantDigits: 3,\n});\n\nconst numberLongFormatter = (locale) => Globalize(locale).numberFormatter({\n minimumSignificantDigits: 1,\n maximumSignificantDigits: 3,\n});\n\nexport {currencyShortFormatter, currencyMediumFormatter, currencyLongFormatter, currencyRoundFormatter, numberShortFormatter, numberShortRoundFormatter, numberLongFormatter};\n","import {store} from '../store/global-store';\n\nexport const advertActions = {\n openCopyAsModal(model) {\n store.commit('openCopyAsModal', model);\n },\n closeCopyAsModal() {\n store.commit('closeCopyAsModal');\n },\n openDeleteModal(model) {\n store.commit('openDeleteModal', model);\n },\n openConfirmAdvertDeleteModal(model) {\n store.commit('openConfirmAdvertDeleteModal', model);\n },\n openSoldModal(model) {\n store.commit('openSoldModal', model);\n },\n closeSoldModal() {\n store.commit('closeSoldModal');\n },\n openRentedModal(model) {\n store.commit('openRentedModal', model);\n },\n closeRentedModal() {\n store.commit('closeRentedModal');\n },\n openHideModal(acceptAction, cancelAction) {\n store.commit('openHideModal', {acceptAction, cancelAction});\n },\n};\n"],"names":["defineRule","min","max","cardActionBase","props","modelValue","buttonClass","isEngageAction","isMobile","type","Boolean","required","data","Object","assign","this","isMobileDevice","emits","methods","setPrimary","$emit","change","state","formValidationMixin","Field","Form","InputMeta","params","_classCallCheck","label","options","_filterKey","filterKey","_createClass","key","value","_get","store","keyValue","noValueLabel","withPrefix","summaryLabel","_getSummaryLabel","concat","getSummaryLabel","input","get","filterValue","set","newValue","applyFilter","_getFilterValue","regex","loginControl","loginMode","returnUrl","registrationTrigger","rememberMe","invitationId","password","isAgent","referencedUserEmail","enteredEmail","isNeedToUpdateReturnUrl","isValidationVisible","submitting","authErrors","components","VeeValidationFormContext","ValidationField","computed","validationModel","authErrorKeys","keys","errorVisibility","userEmail","startFormSubmit","stopFormSubmit","switchMode","clearErrorState","showValidation","beforeSubmit","_validate","_this","_asyncToGenerator","regeneratorRuntime","mark","_callee","validator","result","wrap","_context","prev","next","$refs","validate","sent","abrupt","valid","stop","submitForm","_this2","_callee2","_context2","_updateReturnUrl","form","_deleteReferencedUserData","sendDataAction","_handleSubmitError","getFormRequestConfig","antiforgeryToken","_value","_u","_this3","_callee3","requestConfig","authForm","response","_context3","axios","action","handleSuccessResult","t0","handleErrorResult","afterRequestSendingActions","status","redirectUrl","window","location","href","replace","origin","reload","error","errors","email","forceSubmitForm","_this4","_callee4","_context4","submitSocialForm","formId","submit","_subscribeModeSwitch","_this5","mutation","_setReferencedUserData","_this6","nextTick","localStorage","getItem","removeItem","currentUrl","includes","_subscribeChangePreselectRegistrationReasonStore","_this7","payload","mounted","initLoginComponents","app","component","mixins","modal","template","loginModalOpened","close","shared","isActive","select","jsSocials","initSocials","settings","referrerId","descriptionText","setDefaults","elementClass","sharesClass","shareClass","shareButtonClass","shareLinkClass","shareLogoClass","shareLabelClass","shareLinkCountClass","shareCountBoxClass","shareCountClass","shareZeroCountClass","Socials","prototype","_renderShare","share","$share","$","renderer","_createShare","addClass","css","appendTo","_$shares","id","shareActionButtonPrefix","utils","setAttribute","shares","facebook","shareUrl","referrerSource","logo","countUrl","getCount","count","twitter","vkontakte","odnoklassniki","copy","shareIn","initCopyToClipboard","container","linkCopiedMessage","shareDropdown","arguments","length","undefined","copyLinkClass","copyContainerClass","copyUrlContainer","shareUrlCopy","copyUrlLayout","urlCopiedAlertLayout","shareContainer","selector","classList","Array","from","join","clickSelector","appendCopyInfo","copySelector","ClipboardJS","document","querySelectorAll","text","click","e","stopPropagation","find","remove","append","prepend","on","ready","target","parents","addBack","filter","index","el","hasClass","currencyShortFormatter","currency","Globalize","compact","minimumFractionDigits","maximumFractionDigits","currencyMediumFormatter","currencyRoundFormatter","round","currencyLongFormatter","numberShortFormatter","locale","numberFormatter","minimumSignificantDigits","maximumSignificantDigits","numberShortRoundFormatter","numberLongFormatter","advertActions","openCopyAsModal","model","closeCopyAsModal","openDeleteModal","openConfirmAdvertDeleteModal","openSoldModal","closeSoldModal","openRentedModal","closeRentedModal","openHideModal","acceptAction","cancelAction"],"sourceRoot":""}