PageSourceSearch

https://extranet.101hotels.com/build/2188.67d965f8188a9339920d.1789476845338.js

js 101hotels.com collected 2026-09-24 18:12:49 UTC 56,411 bytes, 1 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([[2188],{25807:(t,e,s)=>{"use strict";s.d(e,{Bk:()=>a,Ey:()=>c,SD:()=>l});var r=s(45853),i=s(49546),n=s(14137),o=s(11592);const a=t=>{if(t.date&&0!==t.status){const e=(0,r.Z)(t.date,n.He.reportTable,new Date),s=(0,i.Z)(e,n.He.base);return`№${t.number} от ${s}`}return"№ ---"},l=(t,e)=>{const s=h(t,e);setTimeout((()=>(0,o.$3)(s)))},c=(t,e,s)=>{const r=h(t,e);(0,o.Sv)(r,s)},h=(t,e)=>{if(!["act","bill","report","upd"].includes(e))throw new TypeError("Неверный тип файла");return"/api"+t[e+"_url"]}},23855:(t,e,s)=>{"use strict";s.d(e,{Z:()=>h});var r=s(83946),i=s(13882),n=36e5,o={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},a=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,l=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,c=/^([+-])(\d{2})(?::?(\d{2}))?$/;function h(t,e){(0,i.Z)(1,arguments);var s=e||{},n=null==s.additionalDigits?2:(0,r.Z)(s.additionalDigits);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var o,a=u(t);if(a.date){var l=d(a.date,n);o=_(l.restDateString,l.year)}if(isNaN(o)||!o)return new Date(NaN);var c,h=o.getTime(),p=0;if(a.time&&(p=v(a.time),isNaN(p)||null===p))return new Date(NaN);if(!a.timezone){var m=new Date(h+p),f=new Date(m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate(),m.getUTCHours(),m.getUTCMinutes(),m.getUTCSeconds(),m.getUTCMilliseconds());return f.setFullYear(m.getUTCFullYear()),f}return c=g(a.timezone),isNaN(c)?new Date(NaN):new Date(h+p+c)}function u(t){var e,s={},r=t.split(o.dateTimeDelimiter);if(r.length>2)return s;if(/:/.test(r[0])?(s.date=null,e=r[0]):(s.date=r[0],e=r[1],o.timeZoneDelimiter.test(s.date)&&(s.date=t.split(o.timeZoneDelimiter)[0],e=t.substr(s.date.length,t.length))),e){var i=o.timezone.exec(e);i?(s.time=e.replace(i[1],""),s.timezone=i[1]):s.time=e}return s}function d(t,e){var s=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(s);if(!r)return{year:null};var i=r[1]&&parseInt(r[1]),n=r[2]&&parseInt(r[2]);return{year:null==n?i:100*n,restDateString:t.slice((r[1]||r[2]).length)}}function _(t,e){if(null===e)return null;var s=t.match(a);if(!s)return null;var r=!!s[4],i=p(s[1]),n=p(s[2])-1,o=p(s[3]),l=p(s[4]),c=p(s[5])-1;if(r)return function(t,e,s){return e>=1&&e<=53&&s>=0&&s<=6}(0,l,c)?function(t,e,s){var r=new Date(0);r.setUTCFullYear(t,0,4);var i=r.getUTCDay()||7,n=7*(e-1)+s+1-i;return r.setUTCDate(r.getUTCDate()+n),r}(e,l,c):new Date(NaN);var h=new Date(0);return function(t,e,s){return e>=0&&e<=11&&s>=1&&s<=(f[e]||(C(t)?29:28))}(e,n,o)&&function(t,e){return e>=1&&e<=(C(t)?366:365)}(e,i)?(h.setUTCFullYear(e,n,Math.max(i,o)),h):new Date(NaN)}function p(t){return t?parseInt(t):1}function v(t){var e=t.match(l);if(!e)return null;var s=m(e[1]),r=m(e[2]),i=m(e[3]);return function(t,e,s){if(24===t)return 0===e&&0===s;return s>=0&&s<60&&e>=0&&e<60&&t>=0&&t<25}(s,r,i)?s*n+6e4*r+1e3*i:NaN}function m(t){return t&&parseFloat(t.replace(",","."))||0}function g(t){if("Z"===t)return 0;var e=t.match(c);if(!e)return 0;var s="+"===e[1]?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return function(t,e){return e>=0&&e<=59}(0,i)?s*(r*n+6e4*i):NaN}var f=[31,null,31,30,31,30,31,31,30,31,30,31];function C(t){return t%400==0||t%4==0&&t%100}},73803:(t,e,s)=>{t.exports=s.p+"images/classification-negative-img-full.png"},52418:(t,e,s)=>{"use strict";s.d(e,{Z:()=>i});var r={name:"Item",components:{Button:s(88720).Z},props:{item:{type:Object,required:!0},bordered:{type:Boolean,default:!0}},computed:{iconClass(){return{[this.item.route.name]:!0,"completeness-item__title_icon":!0}},iconColor(){return this.item.filled?"#00C950":"#344054"},iconWrapperClasses(){return{"completeness-item__icon-wrapper":!0,"completeness-item__icon-wrapper--filled":this.item.filled}},itemClasses(){return{"completeness-item":!0,"completeness-item--bordered":this.bordered}}},methods:{goToLink(){this.$router.push(this.item.route)}}},i=(0,s(51900).Z)(r,(function(){var t=this,e=t._self._c;return e("div",{class:t.itemClasses,on:{click:t.goToLink}},[e("div",{staticClass:"completeness-item__desc"},[e("div",{class:t.iconWrapperClasses},[e("icon",{staticClass:"completeness-item__icon",attrs:{width:"20",height:"20",color:t.iconColor,data:t.item.icon}})],1),t._v(" "),e("div",{staticClass:"completeness-item__title"},[t._v("\n            "+t._s(t.item.name)+"\n            "),t.mMD?e("div",{staticClass:"completeness-item__subtitle"},[t._v("\n                "+t._s(t.item.text)+"\n                "),t.item.subtext?e("span",{staticClass:"completeness-item__subtitle-subtext"},[t._v(t._s(t.item.subtext))]):t._e()]):t._e()])]),t._v(" "),t.lMD?e("div",{staticClass:"completeness-item__subtitle"},[t._v("\n        "+t._s(t.item.text)+"\n        "),t.item.subtext?e("span",{staticClass:"completeness-item__subtitle-subtext"},[t._v(t._s(t.item.subtext))]):t._e()]):t._e(),t._v(" "),t.item.filled?t._e():e("Button",{class:{"w-100":t.lMD},attrs:{hierarchy:"secondary",text:t.item.button},on:{action:t.goToLink}})],1)}),[],!1,null,"6b84dbad",null).exports},8201:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});
1var r=s(20629),i=s(88720),n=s(25807),o={name:"Offset",components:{Button:i.Z},props:{offset:{type:Object,required:!0}},computed:{...(0,r.Se)("hotel",["currentShortHotel"]),offsetsPageUrl(){return{name:"offsets-detail",params:{hotelId:this.currentShortHotel.id,offsetId:this.offset.id}}}},methods:{...(0,r.nv)("offsets",["confirmOffset"]),toOffsetsPage(){this.$router.push(this.offsetsPageUrl)},getOffsetNumber:t=>(0,n.Bk)(t),confirmOffsetWrapper(t){this.confirmOffset({hotelId:this.currentShortHotel.id,offsetId:t.id}).then((()=>{this.toOffsetsPage()}))}}},a=(0,s(51900).Z)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"offset"},[e("icon",{staticClass:"offset__icon",attrs:{data:s(57998)}}),t._v(" "),e("div",{staticClass:"offset__headings"},[e("router-link",{staticClass:"offset__title",attrs:{to:t.offsetsPageUrl}},[t._v("\n            Взаимозачет №"+t._s(t.offset.number)+" от "+t._s(t.offset.date)+"\n        ")]),t._v(" "),e("p",{staticClass:"offset__subtitle"},[t._v("\n            Согласуйте взаимозачет для получения незачтенной суммы на ваш счет\n        ")])],1),t._v(" "),e("div",{staticClass:"offset__actions"},[e("Button",{staticClass:"offset__button",attrs:{color:"black",size:"m",text:"Подробнее",hierarchy:"tertiary"},on:{action:t.toOffsetsPage}}),t._v(" "),e("Button",{staticClass:"offset__button",attrs:{color:"black",size:"m",text:"Согласовать",hierarchy:"primary"},on:{action:t.confirmOffsetWrapper}})],1)],1)}),[],!1,null,"88cc19c2",null).exports},60232:(t,e,s)=>{"use strict";s.d(e,{Z:()=>n});var r=s(6322),i={name:"TelegramBotWarning",components:{Button:s(88720).Z,ContentCard:r.Z},props:{hideButtons:{type:Boolean,default:!1}},computed:{iconData(){return{width:this.mMD?"32":"24",height:this.mMD?"32":"24",color:"#F2821A"}}},methods:{hideWarning(){this.$emit("telegramBotWarningHide")},goToIntegration(){this.$router.push({name:"integration-bot"})}}},n=(0,s(51900).Z)(i,(function(){var t=this,e=t._self._c;return e("ContentCard",[e("div",{staticClass:"telegram-bot-warning"},[e("div",{staticClass:"telegram-bot-warning__text"},[e("div",{staticClass:"telegram-bot-warning__title"},[e("div",{staticClass:"telegram-bot-warning__icon"},[e("icon",t._b({attrs:{data:s(21873)}},"icon",t.iconData,!1))],1),t._v("\n                Важно: о работе Telegram-бота для уведомлений\n            ")]),t._v("\n            По не зависящим от нас техническим причинам уведомления о новых бронированиях в Telegram могут приходить с задержками или временно не доставляться. Чтобы не пропустить ни одного бронирования, настоятельно рекомендуем следить за уведомлениями на электронной почте и регулярно проверять раздел бронирований в личном кабинете.\n        ")]),t._v(" "),t.hideButtons?t._e():e("div",{staticClass:"telegram-bot-warning__buttons"},[e("Button",{attrs:{theme:"green",block:!1},on:{action:t.goToIntegration}},[t._v("\n                Перейти к интеграции\n            ")]),t._v(" "),e("Button",{staticClass:"telegram-bot-warning__buttons_black",attrs:{color:"black",hierarchy:"tertiary",block:!1},on:{action:t.hideWarning}},[t._v("\n                Больше не показывать\n            ")])],1)])])}),[],!1,null,"68a514d9",null).exports},42188:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>it});var r=s(49546),i=s(77349),n=s(20629),o=s(75365),a=s(59131),l=s(6322),c={name:"ModStatus",components:{ContentCard:l.Z,Badge:a.Z}},h=s(51900),u=(0,h.Z)(c,(function(){var t=this,e=t._self._c;return e("ContentCard",{staticClass:"mod-status",scopedSlots:t._u([{key:"header",fn:function(){return[e("h3",{staticClass:"mod-status__title"},[t._v("\n            Статус размещения\n            "),e("Badge",{staticClass:"Header-hotel__badge mx-5 d-inline-block",attrs:{title:"WAIT",size:"l",color:"orange",inline:!0}})],1)]},proxy:!0}])},[t._v(" "),e("div",{staticClass:"mod-status__text"},[t._v("\n        Изменения, которые вы внесли в информацию об объекте размещения находятся в ожидании размещения. Как только оранжевый значок исчезнет — это будет свидетельствовать о том, что внесенные изменения были размещены и отображаются на сайте.\n    ")])])}),[],!1,null,"83d36138",null).exports,d=s(90579),_=s(64207),p=s(
152418),v=s(88720),m=s(1288),g={name:"CompletenessBlock",components:{ContentCard:l.Z,Button:v.Z,Item:p.Z,HalfCircleProgress:m.Z},mixins:[d.Z,_.Z],props:{cityId:{type:Number,required:!0}},data:()=>({itemsToShowCount:3}),computed:{...(0,n.rn)("hotel",["currentHotelId"]),...(0,n.rn)("auth",["serverTimeDate"]),...(0,n.Se)("hotel",["usePlacements","completenessBlocks","getCompleteness","currentShortHotel"]),notFilled(){let t=structuredClone(this.completenessBlocks),e=Object.keys(t);for(let s=0;s<e.length;s+=1)"contacts"===e[s]&&(t[e[s]].button="Добавить"),"cards"===e[s]&&(t[e[s]].button="Указать"),t[e[s]].route&&t[e[s]].route.query&&t[e[s]].route.query.back&&(t[e[s]].route.query.back="main");const s=[],r=Object.keys(this.getCompleteness);for(let e=0;e<r.length;e+=1)"percentage"===r[e]||!t[r[e]]||this.getCompleteness[r[e]]||t[r[e]].disabled||(t[r[e]].icon=this.getRouteIcon(t[r[e]].icon),s.push(t[r[e]]));return s},textPercent(){return`Средняя по городу ${this.regionalAverage}%`},regionalAverage(){const t=new Date(this.serverTimeDate),e=t.getFullYear()%10+t.getMonth()%10;let s=((this.currentShortHotel&&this.currentShortHotel.city_id?+this.currentShortHotel.city_id:95).toString().split("").reduce((function(t,e){return+t+ +e}))+e)%10/10*8;return Math.ceil(s+90)},notFilledToShowList(){return structuredClone(this.notFilled).splice(0,this.itemsToShowCount)},completenessPercentClasses(){return{"completeness-block__percent":!0,"completeness-block__percent--mobile":this.lSM,"completeness-block__percent--with-margin-bottom":!this.lSM&&this.notFilled.length>0}}},methods:{goToDetail(t){t&&(t.preventDefault(),t.stopPropagation()),this.$router.push({name:"completeness",params:{hotelId:this.currentHotelId}})}}},f=(0,h.Z)(g,(function(){var t=this,e=t._self._c;return t.getCompleteness?e("ContentCard",{staticClass:"completeness-block",attrs:{"mobile-column-reverse":""},scopedSlots:t._u([{key:"header",fn:function(){return[e("div",{staticClass:"completeness-block__header-wrapper"},[e("div",{staticClass:"completeness-block__header-text"},[e("h4",{staticClass:"completeness-block__title"},[t._v("\n                    Уровень наполнения страницы\n                ")]),t._v(" "),e("p",{staticClass:"completeness-block__subtitle"},[t._v("\n                    Используйте все возможности Extranet на своей странице: подробно расскажите гостям об особенностях вашего объекта и добавьте как можно больше фото!\n                ")])]),t._v(" "),e("div",{staticClass:"completeness-block__progress"},[e("HalfCircleProgress",{attrs:{progress:t.getCompleteness.percentage,subtext:t.textPercent}})],1)])]},proxy:!0}],null,!1,2912533939)},[t._v(" "),t.notFilled.length>0?e("div",[e("h5",{staticClass:"completeness-block__list-title"},[t._v("\n            Можно улучшить\n        ")]),t._v(" "),e("div",{staticClass:"completeness-block__list"},t._l(t.notFilledToShowList,(function(t,s){return e("Item",{key:s,attrs:{item:t,compact:!0}})})),1),t._v(" "),e("div",{staticClass:"completeness-block__all-btn"},[e("Button",{attrs:{hierarchy:"tertiary",text:"Смотреть все"},on:{action:t.goToDetail}})],1)]):t._e()]):t._e()}),[],!1,null,"843ce4e8",null).exports,C=s(14137),w={name:"ChannelManager",components:{Button:v.Z,ContentCard:l.Z},methods:{submit(){this.$emit("openPopup")}}},b=(0,h.Z)(w,(function(){var t=this._self._c;return t("ContentCard",{staticClass:"channel-manager",attrs:{title:"Вы используете устаревшую версию интеграции с системой Channel Manager в рамках канала AllHotelsMarket. Выполните переход на новую версию канала."}},[t("div",{staticClass:"d-flex justify-content-center mt-10"},[t("Button",{staticClass:"text-uppercase",attrs:{color:"black",hierarchy:"tertiary",text:"Подробнее"},on:{action:this.submit}})],1)])}),[],!1,null,null,null).exports,y=s(58944),k={name:"ChannelManagerPopup",components:{Button:v.Z,Modal:y.Z},props:{show:{type:Boolean,default:!1}},watch:{show(t){t?this.$refs.modal.show():this.$refs.modal.hide()}},methods:{hideModal(){this.$emit("submit")}}},x=(0,h.Z)(k,(function(){var t=this,e=t._self._c;
1return e("Modal",{ref:"modal",attrs:{title:"Требуется переход на новую версию канала"},on:{submit:t.hideModal,hide:t.hideModal},scopedSlots:t._u([{key:"default",fn:function(){return[e("div",{staticClass:"modal-edit_gray__content channel-manager-modal__wrapper"},[e("div",{staticClass:"channel-manager-modal"},[e("div",{staticClass:"channel-manager-modal__block"},[e("p",{staticClass:"channel-manager-modal__text text-left"},[t._v("\n                        В данный момент вы используете устаревшую версию интеграции с системой Channel Manager в рамках канала AllHotelsMarket.\n                    ")]),t._v(" "),e("p",{staticClass:"channel-manager-modal__text text-left"},[t._v("\n                        Поэтому вам необходимо как можно скорее перейти на использование в Channel Manager нашего актуального\n                        одноименного канала "),e("a",{staticClass:"link",attrs:{href:"https://101hotels.com"}},[t._v("“101hotels.com”")]),t._v(" .\n                    ")]),t._v(" "),e("p",{staticClass:"channel-manager-modal__text text-left"},[t._v("\n                        Рекомендуем произвести переход именно сейчас – в низкий сезон загруженности,\n                        чтобы быть готовыми встречать гостей, используя удобную и усовершенствованную платформу.\n                    ")]),t._v(" "),e("p",{staticClass:"channel-manager-modal__text text-left"},[t._v("\n                        Для перехода вам необходимо обратиться в службу поддержки, которая выполнит все необходимые\n                        операции по переключению вашего объекта на новую версию интеграции.\n                    ")]),t._v(" "),e("p",{staticClass:"channel-manager-modal__text text-left"},[t._v("\n                        Позвоните нам по номеру "),e("a",{staticClass:"link",attrs:{href:"tel:+74997556634"}},[t._v("+7 (499) 755-66-34")]),t._v("\n                        или "),e("a",{staticClass:"link",attrs:{href:"tel:+79252719699"}},[t._v("+7 925-271-96-99")]),t._v(".\n                        Также вы можете отправить нам запрос на почту по адресу\n                        "),e("a",{staticClass:"link",attrs:{href:"mailto: [email protected]"}},[t._v("[email protected]")]),t._v(" – не забудьте указать ID вашего объекта.\n                    ")])])])])]},proxy:!0},{key:"buttons",fn:function(){return[e("Button",{attrs:{color:"green",hierarchy:"tertiary",text:"Понятно"},on:{action:t.hideModal}})]},proxy:!0}])})}),[],!1,null,null,null).exports,B=s(57003),S=s(88989),T={name:"ReservationMini",components:{Button:v.Z,Badge:a.Z,Badge:a.Z},props:{reservation:{type:Object,required:!0}},computed:{...(0,n.rn)("hotel",["currentHotelId"])},methods:{getBadgeColor(t){let e="gray";switch(t){case 10:e="gray";break;case 1:e="orange";break;case 2:case 7:e="red";break;default:e="green"}return e},toReservation(){this.$router.push({name:"ReservationDetail",params:{reservationId:+this.reservation.id,hotelId:+this.currentHotelId}})}}},M=(0,h.Z)(T,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"reservation-mini",on:{click:t.toReservation}},[e("div",{staticClass:"reservation-mini__block reservation-mini__block_status"},[e("Badge",{staticClass:"reservation-mini__badge",attrs:{color:t.getBadgeColor(t.reservation.state),"no-text-transform":"",inline:"",title:t.reservation.state_name}}),t._v(" "),e("div",{staticClass:"reservation-mini__title",on:{click:t.toReservation}},[t._v("\n            #"+t._s(t.reservation.id)+"\n        ")])],1),t._v(" "),e("div",{staticClass:"reservation-mini__block reservation-mini__block--mid"},[e("div",{staticClass:"reservation-mini__text"},[""!==t.reservation.contact_name||""!==t.reservation.contact_phone?[e("div",{staticClass:"text-break"},[t._v("\n                    "+t._s(t.reservation.contact_name)+"\n                ")]),t._v(" "),e("div",{staticClass:"text-break"},[t._v("\n                    "+t._s(t.reservation.contact_phone)+"\n                ")])]:t._e(),t._v(" "),""===t.reservation.contact_name&&""===t.reservation.contact_phone?[e("span",{staticClass:"reservation-mini__text reservation-mini__text--blank"},[t._v("Контакты доступны в деталях брони")])]:t._e()],2)]),t._v(" "),t.mMD?e("div",{staticClass:"reservation-mini__block"},[e("Button",{staticClass:"w-auto",attrs:{color:"black","only-icon":"","start-icon":"chevron-right",hierarchy:"tertiary"},on:{action:t.toReservation}})],1):t._e()])}),[],!1,null,null,null).exports,R=s(11592),H={name:"InfoCards",components:{Button:v.Z,ReservationMini:M,ContentCard:l.Z,Badge:a.Z},computed:{...(0,n.rn)("hotel",["currentHotelId"]),...(0,n.Se)("reservation",["getReservationsToday","getReservationsTodayCount","getReservationsTomorrow","getReservationsTomorrowCount"])},methods:{goToReservations(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$router.push({name:"reservations",params:{hotelId:this.currentHotelId,tabToSelect:t}})}}},I=(0,h.Z)(H,(function(){var t=this,e=t._self._c;return e("ContentCard",{attrs:{title:"Ближайшие заезды",subtitle:"Отслеживайте заезды по ближайшим бронированиям"},scopedSlots:t._u([{key:"rightSide",fn:function(){return[t.mMD?e("Button",{attrs:{color:"green",text:"Все бронирования"},on:{action:function(e){return t.goToReservations("todayTab")}}}):t._e()]},proxy:!0}])},[t._v(" "),e("div",{staticClass:"check-in"},[e("div",{staticClass:"check-in__today"},[e("h4",{staticClass:"check-in__title"},[t._v("\n                Сегодня\n                "),t.getReservationsTodayCount>0?e("Badge",{staticClass:"check-in__badge",attrs:{color:"gray",inline:"",title:t.getReservationsTodayCount}}):t._e()],1),t._v(" "),t.getReservationsTodayCount>0?e("div",{staticClass:"check-in__item-list"},[t._l(t.getReservationsToday.slice(0,5),(function(t){return e("ReservationMini",{key:t.id,attrs:{reservation:t}})})),t._v(" "),t.getReservationsTodayCount>5?e("Button",{attrs:{hierarchy:"link",color:"black",text:"Смотреть ещё "+(t.getReservationsTodayCount-5)},on:{action:function(e){return t.goToReservations("todayTab")}}}):t._e()],2):e("span",{staticClass:"check-in__item check-in__item--blank"},[t._v("Нет запланированных заездов")])]),t._v(" "),e("div",{staticClass:"check-in__tomorrow"},[e("h4",{staticClass:"check-in__title"},[t._v("\n                Завтра\n                "),t.getReservationsTomorrowCount>0?e("Badge",{staticClass:"check-in__badge",attrs:{color:"gray",inline:"",title:t.getReservationsTomorrowCount}}):t._e()],1),t._v(" "),t.getReservationsTomorrowCount>0?e("div",{staticClass:"check-in__item-list"},[t._l(t.getReservationsTomorrow.slice(0,5),(function(t){return e("ReservationMini",{key:t.id,staticClass:"check-in__item",attrs:{reservation:t}})})),t._v(" "),t.getReservationsTomorrowCount>5?e("Button",{attrs:{hierarchy:"link",color:"black",text:"Смотреть ещё "+(t.getReservationsTomorrowCount-5)},on:{action:function(e){return t.goToReservations("tomorrowTab")}}}):t._e()],2):e("div",{staticClass:"check-in__item check-in__item--blank"},[t._v("\n                Нет запланированных заездов\n            ")])]),t._v(" "),t.lMD?e("Button",{attrs:{color:"green",text:"Все бронирования"},on:{action:t.goToReservations}}):t._e()],1)])}),[],!1,null,"bd847700",null).exports,Z={name:"ChannelManagerBlock",components:{ContentCard:l.Z},computed:{...(0,n.Se)("hotel",["currentShortHotel"]),iconData(){return{width:this.mMD?"32":"24",height:this.mMD?"32":"24",color:"#F2821A"}}}},D=(0,h.Z)(Z,(function(){var t=this,e=t._self._c;return e("ContentCard",[e("div",{staticClass:"chm-warning"},[e("h4",{staticClass:"chm-warning__heading"},[e("div",{staticClass:"chm-warning__icon"},[e("icon",t._b({attrs:{data:s(21873)}},"icon",t.iconData,!1))],1),t._v(" "),e("span",[t._v("Важные изменения в правилах и порядке работы с менеджером Ð
1ºÐ°Ð½Ð°Ð»Ð¾Ð² "+t._s(t.currentShortHotel.channel_manager.name))])]),t._v(" "),e("p",{staticClass:"chm-warning__text"},[t._v('\n            Система бронирования 101hotels.com является оператором персональных данных и обязана соблюдать требования Федерального закона № 152-ФЗ "О персональных данных" при обработке данных гостей, в том числе при передаче их нашим партнёрам.\n        ')]),t._v(" "),e("p",{staticClass:"chm-warning__text"},[t._v("\n            Правовые основы взаимодействия между 101hotels.com и системами управления каналами продаж (channel manager), связанные с обменом персональными данными, были приведены в соответствие с законодательными требованиями с учетом всех последних изменений в этой области.\n        ")]),t._v(" "),e("p",{staticClass:"chm-warning__text"},[t._v("\n            До настоящего времени со стороны channel manager "+t._s(t.currentShortHotel.channel_manager.name)+' не подписано соглашение о конфиденциальности и дополнения к нему по безопасной обработке получаемых от 101hotels.com данных гостей (ФИО и номера телефона) в соответствии с Федеральным законом № 152-ФЗ "О персональных данных".\n        ')]),t._v(" "),e("p",{staticClass:"chm-warning__text_highlight"},[t._v("\n            В связи с этим и в целях обеспечения законной обработки персональных данных гостей, передача ФИО и телефона гостя в "+t._s(t.currentShortHotel.channel_manager.name)+" будет временно ограничена.\n        ")]),t._v(" "),e("p",{staticClass:"chm-warning__text"},[t._v("\n            Прямые контакты гостей по прежнему остаются доступными вам в Экстранете.\n        ")])])])}),[],!1,null,"419e58e8",null).exports,P={name:"ImagesNew",components:{Button:v.Z,ContentCard:l.Z},props:{currentHotelId:{type:Number,default:null}},computed:{iconData(){return{width:this.mMD?"32":"24",height:this.mMD?"32":"24",color:"#F2821A"}}},methods:{setCookie(){this.$emit("imagesNewBlockHide")},getImagesPage(){this.$router.push({name:"images",params:{hotelId:this.currentHotelId,scroll:"images_new"},query:{scroll:"images_new"}})}}},$=(0,h.Z)(P,(function(){var t=this,e=t._self._c;return e("ContentCard",[e("div",{staticClass:"images-new-block"},[e("div",{staticClass:"images-new-block__text"},[e("div",{staticClass:"images-new-block__title"},[e("div",{staticClass:"images-new-block__icon"},[e("icon",t._b({attrs:{data:s(21873)}},"icon",t.iconData,!1))],1),t._v("\n                Пора обновить фото объекта размещения\n            ")]),t._v("\n            Объекты с актуальными и хорошими фотографиями бронируют на 24% чаще, а еще такие объекты получают более высокие оценки в отзывах. Чтобы увеличить приток новых гостей и количество бронирований обновляйте фотографии хотя бы раз в 12 месяцев.\n            "),e("span",{staticClass:"mt-2"},[t._v("Мы рекомендуем регулярно проверять актуальность текущих фотографий и загружать новые.")])]),t._v(" "),e("div",{staticClass:"images-new-block__buttons"},[e("Button",{attrs:{theme:"green",block:!1},on:{action:t.getImagesPage}},[t._v("\n                Обновить фотографии\n            ")]),t._v(" "),e("Button",{staticClass:"images-new-block__buttons_black",attrs:{color:"black",hierarchy:"tertiary",block:!1},on:{action:t.setCookie}},[t._v("\n                Больше не показывать\n            ")])],1)])])}),[],!1,null,"13d89794",null).exports,N=s(60232),O=s(94549),A={name:"ErrorInnBlock",components:{ContentCard:l.Z,Button:v.Z,ClassifiedModalContainer:O.Z},data:()=>({stepStart:1}),computed:{...(0,n.rn)("hotel",["currentHotelId"]),...(0,n.Se)("hotel",["currentShortHotel"]),...(0,n.rn)("classified",["classified"]),paramLegalInfo(){return{name:"legal-info",params:{hotelId:this.currentHotelId}}}},mounted(){this.getClassified()},methods:{...(0,n.nv)("classified",["fetchClassified"]),...(0,n.nv)("hotel",["fetchShortHotels"]),openModal(){this.$nextTick((()=>{this.$refs.classified?.showModal()}))},routeLegalInfo(){this.$router.push(this.paramLegalInfo)},onSubmitModal(t){this.fetchShortHotels(),this.fetchClassified(this.currentHotelId),this.$refs.classified?.closeModal()},getClassified(){return this.fetchClassified(this.currentHotelId)}}},L=(0,h.Z)(A,(function(){var t=this,e=t._self._c;return e("ContentCard",[e("div",{staticClass:"error-inn-block"},[e("div",{staticClass:"error-inn-block__title"},[e("div",{staticClass:"error-inn-block__title-icon"},[e("icon",{attrs:{data:s(21873)}})],1),t._v(" "),e("div",{staticClass:"error-inn-block__title-text"},[t._v("\n                Несовпадение юридического лица\n            ")])]),t._v(" "),e("div",{staticClass:"error-inn-block__text"},[e("p",{staticClass:"error-inn-block__text-wrapper"},[t._v("\n                Мы обнаружили, что юридические данные вашего объекта размещения указанные в договоре, не совпадают с данными\n                объекта из "),e("a",{staticClass:"green-text",attrs:{href:"https://tourism.fsa.gov.ru/ru/resorts/showcase/hotels",target:"_blank"}},[t._v("реестра классифицированных объектов размещения")])]),t._v(" "),e("p",{staticClass:"error-inn-block__text-wrapper"},[t._v("\n                Приведите в соответствие согласно требованием ФЗ N 436-ФЗ от 30.11.2024. Во избежание юридических рисков, связанных с расхождением данных, мы рекомендуем вам выбрать одно из решений:\n                "),e("ul",[e("li",[e("router-link",{staticClass:"green-text",attrs:{to:t.paramLegalInfo}},[t._v("\n                            Перезаключить договор\n                        ")]),t._v(" с использованием актуальных реквизитов, или\n                    ")],1),t._v(" "),e("li",[e("span",{staticClass:"green-text",on:{click:t.openModal}},[t._v("\n                            Предоставить новый номер\n                        ")]),t._v(" из реестра классифицированных объектов, соответствующий данным договора\n                    ")])])]),t._v(" "),e("p",{staticClass:"error-inn-block__text-wrapper"},[t._v("\n                Обновите данные о вашем объекте "),e("span",{staticClass:"red-text text-semi-bold"},[t._v("до 1 сентября 2025 года")]),t._v(" — это позволит вам сохранить статус классифицированного объекта, избежать закрытия продаж и потери прибыли\n            ")])]),t._v(" "),e("div",{staticClass:"error-inn-block__btns"},[e("Button",{attrs:{color:"black",hierarchy:"tertiary",text:"Перезаключить договор"},on:{action:t.routeLegalInfo}}),t._v(" "),e("Button",{attrs:{color:"black",hierarchy:"tertiary",text:"Изменить номер классификации"},on:{action:t.openModal}})],1)]),t._v(" "),e("ClassifiedModalContainer",{ref:"classified",attrs:{"current-id":t.currentHotelId,"start-step":t.stepStart,"is-edit-page":!1},on:{submitModal:t.onSubmitModal}})],1)}),[],!1,null,"26d3a0f9",null).exports,U=s(31955),E=s(69133),z=s(25807),W={name:"Report",components:{Button:v.Z,Badge:a.Z},mixins:[E.Z],props:{type:{type:String,required:!0,validator:t=>["reconciliation","sales_closed","unpaid"].includes(t)},report:{type:Object,required:!0}},data:()=>({disablePayment:!1,months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"]}),computed:{...(0,n.Se)("hotel",["currentShortHotel"]),reportItem(
1){return this.report},reportNumber(){return(0,z.Bk)(this.report)},reportParams(){return{hotelId:this.currentShortHotel.id,year:this.report.year,month:this.report.month}},reportPaymentExists(){return!!this.report.payment},reportPaymentUrlExists(){return!!this.report.payment_url},reportBillExists(){return this.report.bill_url&&this.report.bill},reportUrlExists(){return!!this.report.report_url},reportActExists(){return this.report.act_url&&this.report.act},reportUpdExists(){return this.report.upd_url&&this.report.upd},reportShowOffsetAgreement(){return this.report.in_offset&&5!==this.report.status},reportStatusCapitalized(){return this.report.status_name.charAt(0).toUpperCase()+this.report.status_name.slice(1)},detailReportUrl(){return{name:"financial-reports-detail",params:this.reportParams}},subtitleText(){const t=`${this.months[Number(this.report.date.split("-")[1])-1]} ${this.report.date.split("-")[0]}`;switch(this.type){case"unpaid":return`Оплатите счет за ${t}, чтобы избежать закрытия продаж`;case"sales_closed":return`Оплатите счет за ${t}, чтобы возобновить продажи`;case"reconciliation":return`Сверьте отчет за ${t}`;default:return""}},firstStatusColor(){return[1,6].includes(this.report.status)?"green":"gray"},hasSecondBadge(){return[3,4].includes(this.report.status)&&1===this.report.payment}},methods:{...(0,n.nv)("report",["fetchPaymentGateWay"]),toDetailReport(){this.$router.push(this.detailReportUrl)},openReport(){(0,z.SD)(this.report,"report")},openBill(){(0,z.SD)(this.report,"bill")},openAct(){(0,z.SD)(this.report,"act")},openUpd(){(0,z.SD)(this.report,"upd")},fetchPaymentReport(){this.disablePayment=!0,this.fetchPaymentGateWay(this.report).then((()=>{void 0!==this.report.payment_gateway_url&&(window.location.href=this.report.payment_gateway_url,this.disablePayment=!1)}))},normalizePrice:t=>(0,R.MM)(t)}},F=(0,h.Z)(W,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"report"},[e("div",{staticClass:"report-header"},[e("icon",{staticClass:"report-header__icon",attrs:{data:s(65899)}}),t._v(" "),e("div",{staticClass:"report-header__content"},[e("router-link",{staticClass:"report-header__title",attrs:{to:t.detailReportUrl}},[t._v("\n                Отчет "+t._s(t.reportNumber)+"\n            ")]),t._v(" "),e("p",{staticClass:"report-header__subtitle report-header__subtitle_mobile"},[t._v("\n                "+t._s(t.subtitleText)+"\n            ")]),t._v(" "),e("div",{staticClass:"report-header__badges"},[e("Badge",{attrs:{size:"l",color:t.firstStatusColor,title:t.reportStatusCapitalized}}),t._v(" "),t.hasSecondBadge?e("Badge",{attrs:{size:"l",color:"red",title:"Не оплачен"}}):t._e()],1),t._v(" "),e("div",{staticClass:"report-header__download-actions"},[t.reportActExists?e("Button",{attrs:{color:"black",size:"s","start-icon":"download",text:"Акт",hierarchy:"tertiary"},on:{action:t.openAct}}):t._e(),t._v(" "),t.reportUpdExists?e("Button",{attrs:{color:"black",size:"s","start-icon":"download",text:"УПД",hierarchy:"tertiary"},on:{action:t.openUpd}}):t._e(),t._v(" "),t.reportUrlExists?e("Button",{attrs:{color:"black",size:"s","start-icon":"download",text:"Отчет",hierarchy:"tertiary"},on:{action:t.openReport}}):t._e()],1)],1),t._v(" "),e("p",{staticClass:"report-header__subtitle report-header__subtitle_desktop"},[t._v("\n            "+t._s(t.subtitleText)+"\n        ")])],1),t._v(" "),e("div",{staticClass:"report-content"},[e("div",{staticClass:"report-content__info-list"},[e("div",{staticClass:"report-content__info-block"},[e("p",{staticClass:"report-content__title"},[t._v("\n                    Сумма\n                ")]),t._v(" "),e("p",{staticClass:"report-content__sum"},[t._v("\n                    "+t._s(t.normalizePrice(t.report.sum))+" ₽\n                ")])]),t._v(" "),e("div",{staticClass:"report-content__info-block"},[e("p",{staticClass:"report-content__title"},[t._v("\n                    Вознаграждение\n                ")]),t._v(" "),e("p",{staticClass:"report-content__sum"},[t._v("\n                    "+t._s(t.normalizePrice(t.report.fee_sum))+" ₽\n                ")])])]),t._v(" "),e("div",{staticClass:"report-content__actions"},[e("div",{staticClass:"report-content__download-actions"},[t.reportActExists?e("Button",{staticClass:"report-content__button report-content__button_short",attrs:{color:"black",size:"s","start-icon":"download",text:"Акт",hierarchy:"tertiary"},on:{action:t.openAct}}):t._e(),t._v(" "),t.reportUpdExists?e("Button",{staticClass:"report-content__button report-content__button_short",attrs:{color:"black",size:"s","start-icon":"download",text:"УПД",hierarchy:"tertiary"},on:{action:t.openUpd}}):t._e(),t._v(" "),t.reportUrlExists?e("Button",{staticClass:"report-content__button report-content__button_short",attrs:{color:"black",size:"s","start-icon":"download",text:"Отчет",hierarchy:"tertiary"},on:{action:t.openReport}}):t._e()],1),t._v(" "),t.reportPaymentExists?t._e():e("Button",{staticClass:"report-content__button",attrs:{color:"green",size:"m",text:"Подробнее",hierarchy:"secondary"},on:{action:t.toDetailReport}}),t._v(" "),t.reportPaymentExists&&t.reportPaymentUrlExists&&!t.reportShowOffsetAgreement?e("Button",{staticClass:"report-content__button report-content__button_other-payments",attrs:{color:"black",hierarchy:"tertiary",size:"m",text:"Другие способы оплаты",disabled:t.disablePayment},on:{action:t.fetchPaymentReport}}):t._e(),t._v(" "),t.reportBillExists&&!t.reportShowOffsetAgreement?e("Button",{staticClass:"report-content__button",attrs:{color:"red",hierarchy:"primary",size:"m",text:"Оплатить счет"},on:{action:t.openBill}}):t._e()],1)])])}),[],!1,null,"83f7663a",null).exports,q=s(8201),j={name:"Reports",components:{Button:v.Z,ContentCard:l.Z,Report:F,Offset:q.Z},props:{type:{type:String,required:!0,validator:t=>["reconciliation","sales_closed","unpaid"].includes(t)},reports:{type:Array,required:!0}},computed:{...(0,n.rn)("offsets",["offsets"]),...(0,n.Se)("hotel",["currentShortHotel"]),reportConfig(){switch(this.type){case"unpaid":return{title:"Неоплаченный отчет",subtitle:"Необходимо оплатить счет, чтобы избежать закрытия продаж",waring:!1,showReopenText:!1};case"sales_closed":return{title:"Продажи закрыты из-за задолженности",subt
1itle:"Необходимо оплатить счет, чтобы возобновить продажи",waring:!0,showReopenText:!0};case"reconciliation":return{title:"Началась сверка",subtitle:"Сверьте и примите список бронирований в отчете",waring:!1,showReopenText:!1};default:return{}}},reportTitleClasses(){return{reports__title:!0,reports__title_warning:this.reportConfig.waring}},offsetsLoaded(){return this.offsets.length>0},activeOffsets(){return this.offsets.filter((t=>1===t.status))},hasReportsInOffsets(){return this.reports.some((t=>t.in_offset))}},mounted(){this.offsetsLoaded&&!this.hasReportsInOffsets||this.fetchOffsets(this.currentShortHotel.id)},methods:{...(0,n.nv)("offsets",["fetchOffsets"]),toAllReports(){this.$router.push({name:"financial-reports",params:{hotelId:this.currentShortHotel.id}})}}},Y={name:"ReportsLists",components:{Reports:(0,h.Z)(j,(function(){var t=this,e=t._self._c;return e("ContentCard",{staticClass:"reports",attrs:{"body-class":"reports__wrapper"}},[e("div",{staticClass:"reports__header"},[e("div",{staticClass:"reports__headings"},[e("h3",{class:t.reportTitleClasses},[t._v("\n                "+t._s(t.reportConfig.title)+"\n            ")]),t._v(" "),e("h4",{staticClass:"reports__subtitle"},[t._v("\n                "+t._s(t.reportConfig.subtitle)+"\n            ")])]),t._v(" "),e("Button",{staticClass:"reports__redirect reports__redirect_desktop",attrs:{color:"black",size:"m","start-icon":"new-tab",text:"Перейти к отчетам",hierarchy:"tertiary"},on:{action:t.toAllReports}})],1),t._v(" "),t.reportConfig.showReopenText?e("div",{staticClass:"reports-reopen"},[e("p",{staticClass:"reports-reopen__title"},[t._v("\n            Продажи будут открыты "),e("span",{staticClass:"reports-reopen__title-highlight"},[t._v("автоматически")]),t._v(" после оплаты счета одним из способов:\n        ")]),t._v(" "),e("ul",{staticClass:"reports-reopen__list"},[e("li",{staticClass:"reports-reopen__item"},[t._v("\n                «Оплатить счет»  – объект станет доступным для бронирования автоматически в день получения Агентом банковской выписки.\n            ")]),t._v(" "),e("li",{staticClass:"reports-reopen__item"},[t._v("\n                «Другие способы оплаты» -  объект станет доступным для бронирования автоматически в течение дня с момента оплаты.\n            ")])])]):t._e(),t._v(" "),e("div",{staticClass:"reports__content"},t._l(t.reports,(function(s){return e("Report",{key:s.id,attrs:{type:t.type,report:s}})})),1),t._v(" "),t.hasReportsInOffsets&&t.activeOffsets.length?e("div",{staticClass:"reports__content"},t._l(t.activeOffsets,(function(t){return e("Offset",{key:t.id,attrs:{offset:t}})})),1):t._e(),t._v(" "),e("Button",{staticClass:"reports__redirect reports__redirect_mobile",attrs:{color:"black",size:"m","start-icon":"new-tab",text:"Перейти к отчетам",hierarchy:"tertiary"},on:{action:t.toAllReports}})],1)}),[],!1,null,"3f899b44",null).exports},props:{reportsLists:{type:Object,required:!0}}},G=(0,h.Z)(Y,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"reports-list"},[t._l(t.reportsLists,(function(s,r){return[s.length?e("Reports",{key:r,attrs:{type:r,reports:s}}):t._e()]}))],2)}),[],!1,null,"3b01374b",null).exports,Q={name:"ClassificationBlock",components:{ContentCard:l.Z,Button:v.Z,ClassifiedModalContainer:O.Z},data:()=>({stepStart:1}),computed:{...(0,n.rn)("hotel",["currentHotelId"]),...(0,n.Se)("hotel",["currentShortHotel"])},methods:{...(0,n.nv)("classified",["fetchClassified"]),...(0,n.nv)("hotel",["fetchShortHotels"]),showModalPrimary(){this.stepStart=1,this.showModal()},showModalMore(){this.stepStart=2,this.showModal()},showModal(){this.$nextTick((()=>{this.$refs.classified?.restart(),this.$refs.classified?.showModal()}))},onHideModal(){this.$refs.classified?.closeModal()},onSubmitModal(){this.fetchShortHotels(),this.fetchClassified(this.currentHotelId),this.$refs.classified?.closeModal()},getClassified(){return this.fetchClassified(this.currentHotelId)}}},V=(0,h.Z)(Q,(function(){var t=this,e=t._self._c;return e("ContentCard",{staticClass:"classification-block"},[e("div",{staticClass:"classification-block__wrapper"},[e("div",{staticClass:"classification-block__img"},[e("img",{attrs:{src:s(73803),alt:"Пройдите обязательную классификацию"}})]),t._v(" "),e("div",{staticClass:"classification-block__info"},[e("div",{staticClass:"classification-block__info-title"},[t._v("\n                Пройдите обязательную классификацию\n            ")]),t._v(" "),e("div",{staticClass:"classification-block__info-subtitle"},[t._v("\n                Укажите и подтвердите данные о классификации, чтобы мы могли присвоить статус вашему объекту\n                "),e("div",{staticClass:"classification-block__info-subtitle__link"},[t._v("\n                    Если ваш объект не подлежит классификации или у вас есть другие вопросы –\n                    "),e("router-link",{staticClass:"link",attrs:{to:{name:"support",query:{classificationForm:"1"},params:{hotelId:t.currentHotelId}}}}
1,[t._v("\n                        обратитесь в техническую поддержку\n                    ")])],1)]),t._v(" "),e("div",{staticClass:"classification-block__info-btns"},[e("Button",{attrs:{color:"red",text:"Указать данные"},on:{action:function(e){return t.showModalPrimary()}}}),t._v(" "),e("Button",{attrs:{color:"black",hierarchy:"tertiary",text:"Подробнее"},on:{action:function(e){return t.showModalMore()}}})],1)])]),t._v(" "),e("ClassifiedModalContainer",{ref:"classified",attrs:{"current-id":t.currentHotelId,"start-step":t.stepStart,"is-edit-page":!1},on:{submitModal:t.onSubmitModal}})],1)}),[],!1,null,"636adc2f",null).exports,J=s(23855),K=s(28523),X={name:"ReviewMini",components:{ContentCard:l.Z,Badge:a.Z,Button:v.Z},props:{review:{type:Object,required:!0}},data:()=>({isTextLineClamped:!1}),computed:{...(0,n.rn)("hotel",["currentHotelId"]),isReviewPositive(){return this.review.valuation>=5},badgeColor(){return this.isReviewPositive?"green":"red"},getReviewClass(){return{"review-mini_red":!this.isReviewPositive}},getNegativeReviewText(){return this.review.negative_text?`Из недостатков: ${this.review.negative_text}`:""},getPositiveReviewText(){return this.review.positive_text}},mounted(){this.$refs?.reviewText?.scrollHeight&&this.$nextTick((()=>{this.isTextLineClamped=this.$refs.reviewText.scrollHeight>this.$refs.reviewText.clientHeight}))},methods:{getConvertedDate(t){const e=(0,J.Z)(t);return(0,r.Z)(e,"dd MMM yyyy",{locale:K.Z})},goToReview(){this.$router.push({name:"reviews",params:{reviewId:this.review.id,hotelId:this.currentHotelId}})}}},tt=(0,h.Z)(X,(function(){var t=this,e=t._self._c;return e("ContentCard",{staticClass:"review-mini selectable-text",class:t.getReviewClass,attrs:{type:"mini"},on:{click:function(e){return t.goToReview()}}},[e("div",{staticClass:"review-mini__content"},[e("div",{staticClass:"review-mini__left"},[e("div",{staticClass:"review-mini__title text-break"},[t._v("\n                "+t._s(t.review.user_name)+"\n            ")]),t._v(" "),e("div",{staticClass:"review-mini__date"},[t._v("\n                "+t._s(t.getConvertedDate(t.review.datetime))+"\n            ")])]),t._v(" "),e("div",{staticClass:"review-mini__mid"},[0!==t.getNegativeReviewText.length||0!==t.getPositiveReviewText.length?e("div",{staticClass:"d-flex"},[e("div",{ref:"reviewText",staticClass:"review-mini__text allow-selection"},[e("span",[t._v(t._s(t.getPositiveReviewText))]),t._v(" "),t.getPositiveReviewText&&t.getNegativeReviewText.length>0&&!t.isTextLineClamped?e("br"):t._e(),t._v(" "),t.getPositiveReviewText&&t.getNegativeReviewText?e("br"):t._e(),t._v("\n                    "+t._s(t.getNegativeReviewText)+"\n                ")])]):t._e(),t._v(" "),0===t.getNegativeReviewText.length&&0===t.getPositiveReviewText.length?e("div",{staticClass:"d-flex"},[e("div",{staticClass:"review-mini__text review-mini__text--blank-review allow-selection"},[t._v("\n                    Гость не оставил развернутый отзыв, но дал оценку проживания в вашем объекте\n                ")])]):t._e(),t._v(" "),t.isTextLineClamped?e("Button",{staticClass:"mt-1",attrs:{size:"xs",color:"green",hierarchy:"link",text:"Читать полностью"},on:{action:t.goToReview}}):t._e()],1),t._v(" "),e("div",{staticClass:"review-mini__right"},[e("Badge",{staticClass:"review-mini__badge",attrs:{title:t.review.valuation,color:t.badgeColor,size:"s"}})],1)])])}),[],!1,null,"2e8af438",null).exports,et={name:"ReviewsBlock",components:{Button:v.Z,ReviewMini:tt,ContentCard:l.Z},computed:{...(0,n.rn)("hotel",["currentHotelId"]),...(0,n.rn)("review",["reviews"]),...(0,n.Se)("review",["getReviewsCount"]),limitReviewsList(){return this.reviews.slice(0,this.limitReviews)}},methods:{goToReviews(){this.$router.push({name:"reviews",params:{hotelId:this.currentHotelId}})}}},st=(0,h.Z)(et,(function(){var t=this,e=t._self._c;return e("ContentCard",{attrs:{title:"Новые отзывы",subtitle:"Отслеживайте свежие отзывы о вашем объекте размещения"},scopedSlots:t._u([{key:"rightSide",fn:function(){return[t.mMD?e("Button",{attrs:{color:"green",text:"Все отзывы"},on:{action:t.goToReviews}}):t._e()]},proxy:!0}])},[t._v(" "),t._l(t.limitReviewsList,(function(t){return e("ReviewMini",{key:t.id,attrs:{review:t}})})),t._v(" "),0===t.getReviewsCount?e("div",{staticClass:"blank-state"},[t._v("\n        Об объекте размещения нет ни одного отзыва\n    ")]):t._e(),t._v(" "),t.lMD?e("Button",{staticClass:"w-100",attrs:{color:"green",text:"Все отзывы"},on:{action:t.goToReviews}}):t._e()],2)}),[],!1,null,"c75b492e",null).exports,rt={name:"MainPage",components:{ChannelManagerBlock:D,ImagesNew:$,TelegramBotWarning:N.Z,BookingStatistics:S.Z,ErrorInnBlock:L,InfoCards:I,CreateAppeal:B.Z,ChannelManager:b,ChannelManagerPopup:x,ModStatus:u,ClassificationBlock:V,ReportsLists:G,CompletenessBlock:f,ReviewsBlock:st},directives:{tooltip:o.ZP},data:()=>({inDate:[(0,r.Z)(new Date,"dd.MM.yyyy"),(0,r.Z)((0,i.Z)(new Date,1),"dd.MM.yyyy")],limitReviews:3,showMobilePopup:!1,imagesNewBlockHide:!1,telegramBotWarningHide:!1}),computed:{...(0,n.rn)("hotel",["currentHotelId","hotelChanging","completeness","shortHotels","textBlocks","currentShortHotel","showBookingDateLimitPopup","showPriceParityBlock"]),...(0,n.Se)("hotel",["currentShortHotel","advHotel","getCompleteness"]),...(0,n.rn)("report",["reports"]),...(0,n.rn)("auth",["isAuthenticated","isBlocked","serverTimeDate"]),...(0,n.rn)("layout",["loading","isClosedMainPagePopup","fromLogin"]),...(0,n.rn)("ui",["isShowChannelManagerPopup"]),...(0,n.rn)("integration",["chatBots"]),...(0,n.Se)("report",["getIsPossibleToCreateOffset"]),...(0,n.Se)("hotel",["usePlacements"]),unpaidReports(){return this.isSalesClosedByDebt?[]:this.reports.filter((t=>!([0,1,5].includes(t.status)||[3,4].includes(t.status)&&0===t.payment)))},checkingReports(){return this.reports.filter((t=>1===t.status))},salesClosedReports(){return this.isSalesClosedByDebt?this.reports.filter((t=>!([0,1,5].includes(t.status)||[3,4].includes(t.status)&&0===t.payment))):[]},reportsLists(){return this.unpaidReports.length||this.checkingReports.length||this.salesClosedReports.length?{sales_closed:this.salesClosedReports,unpaid:this.unpaidReports,reconciliation:this.checkingReports}:null},showWarningChannelManager(){return[34,36].includes(this.currentShortHotel?.channel_manager?.id)},isSalesClosedByDebt(){return this.currentShortHotel&&this.currentShortHotel.sales_closed&&this.currentShortHotel.sales_closed_code===C.QM.SALES_CLOSED_DEBT.code},showMod(){return void 0!==this.currentShortHotel&&null!==this.currentShortHotel&&-1===["yes","no"].indexOf(this.currentShortHotel.moderation)},currentCityId(){return void 0!==this.currentShortHotel&&null!==this.currentShortHotel&&void 0!==this.currentShortHotel.city_id?+this.currentShortHotel.city_id:95},isBookingsAvailable(){return void 0!==this.currentShortHotel&&null!==this.currentShortHotel&&this.currentShortHotel.permissions.bookings_editing},isErrorInnBlock(){return 10===this.currentShortHotel?.classified_status&&!this.hotelChanging},osBrowser(){const t=navigator.userAgent.toLowerCase(),e=!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0,s=t.indexOf("edge")>-1,r=t.indexOf("msie ")>-1||t.indexOf("trident/")>-1,i=/yabrowser/i.test(t),n=!(!window.chrome||e||s||i),o=/^((?!chrome|android|crios|yabrowser|fxios|gsa).)*safari/i.test(t),a=/iPad|iPhone|iPod/.test(navigator.platform),l="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,c=function(){const t=new Audio;return t.volume=.5,1===t.volume}(),h=t.indexOf("android")>-1;let u=0;u+=(!window.MSStream&&(a||l||c)&&this.isTouchDevice?1:0)+(h&&this.isTouchDevice?2:0);const d=["Desktop","iOS","Android"][u],_={opera:e,ie:r,edge:s,yandex:i,chrome:n,safari:o},p=Object.keys(_);let v=[];for(const t of p)_[t]&&v.push(t);return 0===v.length&&v.push("unknown"),v=v.join(", "),`${d}-${v}`},os(){return this.osBrowser.split("-")[0]},browser(){return this.osBrowser.split("-")[1]},isTouchDevice:()=>"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,showChannelManagerBlock(){return null!==this.currentShortHotel&&void 0!==this.currentShortHotel&&(null!==this.currentShortHotel.channel_manager&&void 0!==this.currentShortHotel&&C._b.includes(this.currentShortHotel.channel_manager.id))},isShowCompleteness(){return!this.advHotel&&100!==this.getCompleteness?.percentage}},watch:{currentHotelId(){this.toggleLoading(!0),this.getData().then((()=>{this.$emit("loaded")}))}},created(){this.inDate=[(0,r.Z)(new Date(this.serverTimeDate),"dd.MM.yyyy"),(0,r.Z)((0,i.Z)(new Date(this.serverTimeDate),1),"dd.MM.yyyy")]},mounted(){this.imagesNewBlockHide=U.Z.get(`imagesNewBlockHide[${this.currentHotelId}]`)||!1,this.telegramBotWarningHide=U.Z.get(`telegramBotWarningHide[${this.currentHotelId}]`)||!1,this.getData().then((()=>{this.$emit("loaded")})),this.$nextTick((()=>{setTimeout((()=>
1{if(this.showMobilePopup=!0,"iOS"===this.os&&"safari"===this.browser||"Android"===this.os&&"chrome"===this.browser){if(null===new URLSearchParams(window.location.search).get("from-popup")){let t=window.location.search,e=(-1!==t.indexOf("?")?"&":"?")+"from-popup=true";t+=e,window.history.replaceState&&window.history.replaceState({},"",t)}else(1===window.history.length||2===window.history.length&&this.fromLogin)&&(this.showMobilePopup=!1,this.toggleFromLogin(!1),this.$gtag.event("home_page",{event_category:"m.added",event_label:this.browser.charAt(0).toUpperCase()+this.browser.slice(1)}))}}),1e3)}))},methods:{...(0,n.nv)("layout",["toggleLoading"]),...(0,n.nv)("reservation",["fetchReservations"]),...(0,n.nv)("review",["fetchReviews"]),...(0,n.nv)("report",["fetchReports","fetchDebts"]),...(0,n.nv)("layout",["toggleFromLogin"]),...(0,n.nv)("ui",["enableChannelManagerPopup","disableChannelManagerPopup"]),...(0,n.nv)("integration",["fetchChatBots"]),...(0,n.nv)("hotel",["fetchTextBlocks"]),...(0,n.nv)("contract",["getCompaniesVat"]),getData(){if(this.isAuthenticated){let t=[this.fetchReports(this.currentHotelId),this.fetchChatBots(this.currentHotelId),this.fetchDebts(this.currentHotelId)];if(this.isBookingsAvailable){const e={in:this.inDate},s=new URLSearchParams;for(let t in e)if(e.hasOwnProperty(t)&&e[t]&&e[t].length>1){let r=e[t];Array.isArray(r)?(s.append(t+"[]",r[0]),s.append(t+"[]",r[1])):s.append(t,r)}const r=s.toString();t.push(this.fetchReservations(r)),t.push(this.fetchReviews({limit:this.limitReviews}))}return 97!==this.currentShortHotel.type_id||this.textBlocks.length||t.push(this.fetchTextBlocks(this.currentHotelId)),Promise.all(t)}return Promise.resolve()},hidePopup(){this.showMobilePopup=!1},hideImagesNew(){this.imagesNewBlockHide=!0,U.Z.set(`imagesNewBlockHide[${this.currentHotelId}]`,"true",{expires:30})},hideTelegramBotWarning(){this.telegramBotWarningHide=!0,U.Z.set(`telegramBotWarningHide[${this.currentHotelId}]`,"true",{expires:30})},showChannelManagerPopup(){this.$gtag.event("click",{event_category:"old_cm",event_label:this.currentHotelId}),this.enableChannelManagerPopup()},hideChannelManagerPopup(){this.disableChannelManagerPopup()}}},it=(0,h.Z)(rt,(function(){var t=this,e=t._self._c;return t.loading?t._e():e("div",[t.chatBots.length&&!t.telegramBotWarningHide?e("TelegramBotWarning",{on:{telegramBotWarningHide:t.hideTelegramBotWarning}}):t._e(),t._v(" "),t.isErrorInnBlock?e("ErrorInnBlock"):t._e(),t._v(" "),t.showWarningChannelManager?e("ChannelManagerBlock"):t._e(),t._v(" "),t.reportsLists?e("ReportsLists",{attrs:{"reports-lists":t.reportsLists}}):t._e(),t._v(" "),0===t.currentShortHotel.classified_status?e("ClassificationBlock"):t._e(),t._v(" "),t.getIsPossibleToCreateOffset?e("CreateAppeal",{attrs:{"use-card-margin":""}}):t._e(),t._v(" "),e("BookingStatistics"),t._v(" "),t.imagesNewBlockHide||t.completeness.images_new?t._e():e("ImagesNew",{attrs:{"current-hotel-id":t.currentHotelId},on:{imagesNewBlockHide:t.hideImagesNew}}),t._v(" "),t.showChannelManagerBlock?e("ChannelManager",{on:{openPopup:t.showChannelManagerPopup}}):t._e(),t._v(" "),t.showMod?e("ModStatus"):t._e(),t._v(" "),t.isShowCompleteness?e("CompletenessBlock",{attrs:{"city-id":t.currentCityId}}):t._e(),t._v(" "),e("ChannelManagerPopup",{attrs:{show:t.isShowChannelManagerPopup},on:{submit:t.hideChannelManagerPopup}}),t._v(" "),t.isBookingsAvailable?e("InfoCards"):t._e(),t._v(" "),t.isBookingsAvailable?e("ReviewsBlock"):t._e()],1)}),[],!1,null,null,null).exports}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.