1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4014],{98169:(t,s,i)=>{i.d(s,{Z:()=>d});var e=i(20629),a=i(88720),o=i(94549),l=i(6322),n=i(11592),r={name:"ClassifiedHotel",components:{Button:a.Z,ClassifiedModalContainer:o.Z,ContentCard:l.Z},props:{masterPage:{type:Boolean,default:!1},isShowNotification:{type:Boolean,default:!1}},data:()=>({currentClassified:{}}),computed:{...(0,e.rn)("hotel",["currentHotelId"]),...(0,e.rn)("classified",["classified"]),...(0,e.rn)("auth",["serverTimeDate"]),...(0,e.Se)("hotel",["currentShortHotel"]),recordLink(){return`https://tourism.fsa.gov.ru/ru/resorts/hotels/${this.currentClassified?.inner_id}/about-resort`},statusNameText(){return this.currentClassified?.end_date?"ÐейÑÑвÑеÑ":this.currentClassified.status_name},statusNameTextColor(){return this.classifiedEndDateText?"orange":""},classifiedEndDateText(){let t="";if(this.currentClassified?.end_date){let s=new Date(this.currentClassified?.end_date.split(".").reverse().join("-"));t=Math.round((s-new Date(this.serverTimeDate))/864e5)}return!!(t&&t<60)&&(t>=1?`СÑок дейÑÑÐ²Ð¸Ñ ÐºÐ»Ð°ÑÑиÑикаÑии заканÑиваеÑÑÑ ÑеÑез ${t} ${(0,n.Ak)(t,["денÑ","днÑ","дней"])}`:"СÑок дейÑÑÐ²Ð¸Ñ ÐºÐ»Ð°ÑÑиÑикаÑии законÑилÑÑ")},showClassificationBlock(){return Object.hasOwn(this.currentShortHotel,"classified_status")&&-1!==this.currentShortHotel.classified_status},statusClasses(){return{"hotel-info__number-status":!0,"hotel-info__number-status--error":!this.currentClassified?.end_date}}},mounted(){this.fetchClassified(this.currentHotelId).then((()=>{this.setCurrentClassified()}))},mounted(){this.fetchClassified(this.currentHotelId).then((()=>{this.setCurrentClassified()}))},methods:{...(0,e.nv)("classified",["fetchClassified"]),...(0,e.nv)("hotel",["fetchShortHotels"]),showModal(){this.$refs.classified?.restart(),this.$refs.classified?.showModal()},onSubmitModal(t){this.fetchShortHotels(),this.fetchClassified(this.currentHotelId).then((()=>{this.setCurrentClassified()})),this.$refs.classified?.closeModal()},setCurrentClassified(){this.currentClassified=this.classified[this.currentHotelId]},goToRecord(){window.open(this.recordLink,"_blank")}}},d=(0,i(51900).Z)(r,(function(){var t=this,s=t._self._c;return t.showClassificationBlock?s("ContentCard",{staticClass:"classified",scopedSlots:t._u([{key:"title",fn:function(){return[0!==t.currentShortHotel.classified_status&&-2!==t.currentShortHotel.classified_status?s("span",{staticClass:"classified__title"},[t._v("ÐлаÑÑиÑикаÑÐ¸Ñ Ð¾Ð±ÑекÑа")]):t._e()]},proxy:!0}],null,!1,3052866255)},[t._v(" "),0!==t.currentShortHotel.classified_status&&-2!==t.currentShortHotel.classified_status?s("div",[s("div",{staticClass:"hotel-info"},[s("div",{staticClass:"hotel-info__number"},[s("div",{staticClass:"hotel-info__number-info"},[s("div",{staticClass:"hotel-info__number-info-label"},[t._v("\n ÐÐ¾Ð¼ÐµÑ ÑееÑÑÑовой запиÑи\n "),s("Button",{attrs:{"only-icon":"",size:"xs",color:"black",hierarchy:t.masterPage?"primary":"tertiary","start-icon":"new-tab"},on:{action:t.goToRecord}})],1),t._v(" "),s("div",{staticClass:"hotel-info__number-value"},[t._v("\n "+t._s(t.currentClassified.register_record)+"\n "),s("span",{class:t.statusClasses},[t._v(t._s(t.statusNameText))])])]),t._v(" "),s("Button",{staticClass:"hotel-info__number-edit-button",attrs:{hierarchy:t.masterPage?"primary":"tertiary","start-icon":"edit",size:"s",color:"black",text:t.masterPage?"ÐаполниÑÑ":"РедакÑиÑоваÑÑ"},on:{action:t.showModal}})],1),t._v(" "),s("div",{staticClass:"hotel-info__additional"},[s("div",{staticClass:"hotel-info__additional-block hotel-info__additional-block--full-width"},[s("span",{staticClass:"hotel-info__additional-label"},[t._v("Ðаименование обÑекÑа")]),t._v(" "),s("span",{staticClass:"hotel-info__additional-value"},[t._v(t._s(t.currentClassified.full_name))])]),t._v(" "),s("div",{staticClass:"hotel-info__additional-block"},[s("span",{staticClass:"hotel-info__additional-label"},[t._v("ÐвездноÑÑÑ")]),t._v(" "),s("span",{staticClass:"hotel-info__additional-value"},[t._v(t._s(t.currentClassified.stars_name))])]),t._v(" "),s("div",{staticClass:"hotel-info__additional-block"},[s("span",{staticClass:"hotel-info__additional-label"},[t._v("ÐдÑÐµÑ Ð¾Ð±ÑекÑа")]),t._v(" "),s("span",{staticClass:"hotel-info__additional-value"},[t._v(t._s(t.currentClassified.address))])])]),t._v(" "),t.classifiedEndDateText?s("div",{staticClass:"hotel-info__notification hotel-info__notification--warning"},[s("div",{staticClass:"hotel-info__notification-icon"},[s("icon",{attrs:{data:i(56369)}})],1),t._v(" "),s("div",{staticClass:"hotel-info__notification-text"},[t._v("\n "+t._s(t.classifiedEndDateText)+"\n ")])]):t._e(),t._v(" "),3===t.currentClassified.status?s("div",{staticClass:"hotel-info__notification hotel-info__notification--warning"},[s("div",{staticClass:"hotel-info__notification-icon"},[s("icon",{attrs:{data:i(4902),width:"24",color:"#FF6900",height:"24"}})],1),t._v(" "),s("div",{staticClass:"hotel-info__notification-text"},[t._v("\n Ðа ÑазмеÑении: даннÑе обновÑÑÑÑ Ð² ÑеÑении 2-3 дней\n ")])]):t._e()])]):s("div",[s("div",{staticClass:"empty-block"},[s("div",{staticClass:"empty-block__image"}),t._v(" "),s("div",{staticClass:"empty-block__text"},[s("div",{staticClass:"empty-block__title"},[t._v("\n ÐлаÑÑиÑикаÑÐ¸Ñ Ð¾Ð±ÑекÑа\n ")]),t._v(" "),s("div",{staticClass:"empty-block__sub-title"},[t._v("\n Ðам необÑ
одимо пÑедоÑÑавиÑÑ Ð½Ð¾Ð¼ÐµÑ Ð¸Ð· "),s("a",{staticClass:"empty-block__sub-title empty-block__sub-title--link",attrs:{href:"https://tourism.fsa.gov.ru/ru/resorts/showcase/hotels"}},[t._v("ÑееÑÑÑа клаÑÑиÑиÑиÑованнÑÑ
обÑекÑов")]),t._v(", в пÑоÑивном ÑлÑÑае Ð²Ñ Ð½Ðµ ÑможеÑе наÑаÑÑ Ð¿Ñодажи\n ")]),t._v(" "),s("Button",{staticClass:"empty-block__button",attrs:{text:"ÐаполниÑÑ"},on:{action:t.showModal}})],1)])]),t._v(" "),s("ClassifiedModalContainer",{ref:"classified",attrs:{"current-id":t.currentHotelId},on:{submitModal:t.onSubmitModal}})],1):t._e()}),[],!1,null,"0158bb6c",null).exports},94014:(t,s,i)=>{i.r(s),i.d(s,{default:()=>o});var e=i(20629),a={name:"ClassifiedInfo",components:{ClassifiedHotel:i(98169).Z}
1,computed:{...(0,e.rn)("hotel",["currentHotelId"]),...(0,e.rn)("layout",["title"])},mounted(){Promise.all([this.fetchClassified(this.currentHotelId)]).then((()=>{this.$emit("loaded"),this.scrollToTop()}))},methods:{...(0,e.nv)("classified",["fetchClassified"])}},o=(0,i(51900).Z)(a,(function(){return(0,this._self._c)("ClassifiedHotel")}),[],!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.