1(self.webpackChunk=self.webpackChunk||[]).push([[802,6201],{68785:(t,e,i)=>{"use strict";var s=i(20629),o=i(45853),a=i(49474);e.Z={computed:{...(0,s.Se)("hotel",["currentShortHotel"])},methods:{isUnavailableTariffWithPrepaymentParams(t,e){return!this.currentShortHotel.cancellation_fees.includes(t)||!this.currentShortHotel.prepayments.includes(e)},isLimitValid(){if(this.availableLimitNeed){let t,e,i;if(t=(0,o.Z)(this.workperiod[1],"d.MM.yyyy",new Date(this.serverTimeDate)).setHours(0,0,0),e=(0,o.Z)(this.availableLimitDate[0],"d.MM.yyyy",new Date(this.serverTimeDate)).setHours(0,0,0),i=(0,o.Z)(this.availableLimitDate[1],"d.MM.yyyy",new Date(this.serverTimeDate)).setHours(0,0,0),1===(0,a.Z)(e,t)||1===(0,a.Z)(i,t))return!1}return!0}}}},22274:(t,e,i)=>{t.exports=i.p+"images/tariff-no-rooms-small.png"},16201:(t,e,i)=>{"use strict";i.d(e,{Z:()=>n});var s=i(11592),o=i(62570),a=i(6210),r=i(12954),l={name:"SelectField",components:{Dropdown:i(27227).Z,ValidationProvider:r.d_,ValidationWatcher:a.Z},props:{id:{type:[Number,String],default:()=>(0,s.k$)()},value:{type:[String,Number,Object],default:""},options:{type:Array,default:()=>[]},rules:{type:String,default:null},activeFunc:{type:Function,default:void 0},immediate:{type:Boolean,default:!1},modalPriority:{type:Number,default:100},mobileNoModal:{type:Boolean,default:!1},hideCancelButton:{type:Boolean,default:!1},validationName:{type:String,default:""},startIcon:{type:String,default:()=>""},label:{type:String,default:""},readOnly:{type:Boolean,default:()=>!1},disabled:{type:Boolean,default:()=>!1},titleDrop:{type:String,default:()=>""},grouped:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},groupedList:{type:String,default:()=>""},groupedTitle:{type:String,default:()=>""},prefix:{type:String,default:()=>""},hint:{type:String,default:()=>""},suffix:{type:String,default:()=>""},stackLabel:{type:Boolean,default:()=>!1},optionLabel:{type:String,default:""},optionValue:{type:String,default:""}},data:()=>({isFocused:!1,maxHeight:320,position:"bottom",transitionSelectDrop:"select-dropdown",hasErrors:!1,localIn
1put:"",errorsItems:[]}),computed:{currentOption(){return this.mapOptions.get(this.value)||{}},mapOptions(){return(0,s.Mv)(this.options,this.optionValue,this.groupedList)},isModalDrop(){return this.lLG&&!this.mobileNoModal},localOptions(){return this.searchable&&this.localInput?this.grouped?this.options.map((t=>{const e=this.arraySearchFilter(t[this.groupedList]);return{...t,[this.groupedList]:e}})).filter((t=>t[this.groupedList].length>0)):this.arraySearchFilter(this.options):this.options},isSlotLabel(){return this.$slots.label||this.$scopedSlots.label},isSlotItemDrop(){return this.$slots.itemDrop||this.$scopedSlots.itemDrop},isHint(){return!this.hasErrors&&this.hint},isBottom(){return this.hasErrors||this.hint},isSlotEmptyDrop(){return this.$slots.emptyDrop||this.$scopedSlots.emptyDrop},hasLabel(){return this.optionLabel?this.currentOption[this.optionLabel]:this.currentOption},hasValue(){return!(!this.value&&0!==this.value)&&("string"==typeof this.value?this.value.trim().length>0:"object"!=typeof this.value||Object.keys(this.value).length>0)},hasSelectStacked(){return this.stackLabel||this.searchable&&this.isFocused},selectClass(){return{select:!0,"select--focused":this.isFocused,"select--selected":this.hasValue,"select--no-label":!this.label,"select--stacked":this.hasSelectStacked,"select--readonly":this.readOnly,"select--disabled":this.disabled,"select--error":this.hasErrors}},hasPrefix(){return(this.currentOption||this.stackLabel)&&this.prefix},hasSuffix(){return this.currentOption&&this.suffix},titleDropFinal(){return this.titleDrop||this.label||"ÐÑбеÑиÑе ваÑианÑ"},startIconSource(){return i(20116)("./"+this.startIcon+".svg")}},methods:{updateErrors(t){this.errorsItems=t,this.hasErrors=t.length>0},handleFocus(){this.disabled||this.readOnly||(this.$emit("focus"),this.isFocused=!0,(0,o.X)("select-field-"+this.id),this.updateDropdownPosition(),this.$nextTick((()=>
1{this.searchable&&this.isFocused&&(this.localInput="",this.$refs.input.focus())})))},updateDropdownPosition(){if(!this.$refs.selectField)return;const t=this.$refs.selectField.getBoundingClientRect(),e=window.innerHeight,i=e-t.bottom,s=t.top,o=i<320&&s>i;this.transitionSelectDrop=o?"select-dropdown-top":"select-dropdown";const a=Math.max(i,s)-40;this.maxHeight=Math.min(a,320),this.dropdownStyles={position:"fixed",top:o?"auto":`${t.bottom+4}px`,bottom:o?e-t.top+4+"px":"auto",left:`${t.left}px`,width:`${t.width}px`,zIndex:1007}},highlightText(t,e){if(!t||!e)return this.escapeHtml(t||"");const i=this.escapeHtml(t.toString()),s=this.escapeHtml(e),o=new RegExp(`(${s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"gi");return i.replace(o,'<span class="highlight">$1</span>')},escapeHtml(t){if(!t)return"";const e=document.createElement("div");return e.textContent=t,e.innerHTML},arraySearchFilter(t){const e=this.localInput.toLowerCase();return t.filter((t=>t[this.optionLabel]?.toLowerCase().includes(e))).map((t=>({...t,[this.optionLabel]:this.highlightText(t[this.optionLabel],e)})))},handleBlur(){this.$nextTick((()=>{this.isFocused=!1,(0,o.K)("select-field-"+this.id),this.dropdownStyles={},this.$emit("blur")}))},getOptionValue(t){return this.optionValue?t[this.optionValue]:t},selectOption(t,e){this.$emit("input",this.getOptionValue(t)),this.$emit("select",t),this.handleBlur()},clearSelect(){this.$emit("input",""),this.$emit("select","")},closeMiddleware(){return this.isDesktop},handleInput:(0,s.Ds)((function(t){this.localInput=t.target.value}),300)}},n=(0,i(51900).Z)(l,(function(){var t=this,e=t._self._c;return e("div",{class:t.selectClass},[e("ValidationProvider",{ref:"provider",attrs:{tag:"div",name:t.validationName||t.label,immediate:t.immediate,rules:t.rules},scopedSlots:t._u([{key:"default",fn:function(i){let{errors:s}=i;return[e("ValidationWatcher",{attrs:{errors:s},on:{change:t.updateErrors}}),t._v(" "),e("input",{attrs:{type:"hidden"},domProps:{value:t.value}})]}}])}),t._v(" "),e("div",{staticClass:"select__wrapper"},[e("div",{ref:"selectField",staticClass:"select__field",on:{click:t.handleFocus}},[t.startIcon?e("div",{staticClass:"select__icon"},[e("icon",{attrs:{data:t.startIconSource}})],1):t._e(),t._v(" "),e("div",{staticClass:"select__content"},[t.isSlotLabel?t._t("label",null,{prefix:t.prefix,label:t.label,isFocused:t.isFocused,selected:t.currentOption,suffix:t.suffix}):[t.label?e("div",{staticClass:"select__label"},[t._v("\n "+t._s(t.label)+"\n ")]):t._e(),t._v(" "),e("div",{staticClass:"select__container"},[t.hasPrefix?e("div",{staticClass:"select__prefix"},[t._v("\n "+t._s(t.prefix)+"\n ")]):t._e(),t._v(" "),t.isFocused&&t.searchable?e("div",{staticClass:"select__value"},[e("input",{ref:"input",staticClass:"select__input",attrs:{name:"selectInput",type:"text"},on:{input:t.handleInput}})]):t.hasLabel?e("div",{staticClass:"select__value"},[t._v("\n "+t._s(t.hasLabel)+"\n ")]):t._e(),t._v(" "),t.hasSuffix?e("div",{staticClass:"select__suffix"},[t._v("\n "+t._s(t.suffix)+"\n ")]):t._e()])]],2),t._v(" "),e("div",{staticClass:"select__control"},[e("icon",{attrs:{data:i(96789)}})],1)]),t._v(" "),t.isBottom?e("div",{staticClass:"select__bottom"},[t.hasErrors?e("div",{staticClass:"select__error"},[e("icon",{attrs:{data:i(56369)}}),t._v(" "),e("span",[t._v(t._s(t.errorsItems[0]))])],1):t.isHint?e("span",{staticClass:"select__hint"},[t._v("\n "+t._s(t.hint)+"\n ")]):t._e()]):t._e()]),t._v(" "),t.isFocused?e("div",{staticClass:"select-dropdown"},[e("div",{staticClass:"select-dropdown-back"}),t._v(" "),e("Dropdown",{ref:"options",style:t.dropdownStyles,attrs:{"show-empty":!0,show:t.isFocused,"modal-priority":t.modalPriority,"max-height":t.maxHeight,"mobile-no-modal":t.mobileNoModal,"click-outside-close":"","active-func":t.activeFunc,transition:t.transitionSelectDrop,active:t.value,"item-field":t.optionLabel,"active-field":t.optionValue,title:t.titleDropFinal,grouped:t.grouped,"grouped-list":t.groupedList,"grouped-title":t.groupedTitle,tabindex:"-1",list:t.localOptions},on:{close:t.handleBlur,select:t.selectOption},scopedSlots:t._u([t.isSlotItemDrop?{key:"itemDrop",fn:function(e){let{item:i,activeItem:s}=e;return[t._t("item",null,{item:i,activeItem:s})]}}:null,t.isSlotEmptyDrop?{key:"empty",fn:function(){return[t._t("empty")]},proxy:!0}:null],null,!0)})],1):t._e()],1)}),[],!1,null,null,null).exports},11837:(t,e,i)=>{"use strict";i.d(e,{Z:()=>a});var s=i(79454),o={name:"SliderField",components:{VueSlider:i.n(s)()},props:{value:{type:[Number,Array],default:0},disabled:{type:Boolean,default:!1},marks:{type:Boolean,default:!1},interval:{type:Number,default:1},max:{type:Number,default:100},min:{type:Number,default:0},background:{type:Boolean,default:!0},different:{type:Boolean,default:!1},useRedTheme:{type:Boolean,default:!1},height:{type:Number,default:1},dotSize:{type:Array,default:()=>[18,18]},width:{type:String,default:"100%"}},data(){return{className:"slider-field",localValue:this.value}},computed:{getClass(){return[this.className,{"slider-field_marks":this.marks},{"slider-field_background":this.background},{"slider-field_disabled":this.disabled}]},vueSliderClass(){return{"vue-slider--red":this.useRedTheme}}},watch:{localValue(t){this.$emit("input",t)},value(t){this.localValue=t}}},a=(0,i(51900).Z)(o,(function(){var t=this,e=t._self._c;return e("div",{class:t.getClass},[e("div",{class:`${t.className}__header`},[e("div",{class:`${t.className}__label ${t.className}__label-top-left`},[t._t("top-left",null,{value:t.localValue})],2),t._v(" "),e("div",{class:`${t.className}__label ${t.className}__label-top-right`},[t._t("top-right",null,{value:t.localValue})],2)]),t._v(" "),e("div",{class:`${t.className}__content`},[e("div",{class:`${t.className}__label ${t.className}__label-center-left`},[t._t("center-left",null,{value:t.localValue})],2),t._v(" "),e("div",{class:`${t.className}__inner`},[e("div",{class:`${t.className}__label ${t.className}__label-top`},[t._t("top",null,{value:t.localValue,differentValues:t.different})],2),t._v(" "),e("vue-slider",{class:t.vueSliderClass,style:{padding:0,width:t.width},attrs:{disabled:t.disabled,"dot-size":t.dotSize,height:t.height,max:t.max,min:t.min,interval:t.interval,marks:t.marks,tooltip:"none",contained:!0},model:{value:t.localValue,callback:function(e){t.localValue=e},expression:"localValue"}})],1),t._v(" "),e("div",{class:`${t.className}__label ${t.className}__label-center-right`},[t._t("center-right",null,{value:t.localValue})],2)])])}),[],!1,null,null,null).exports}
1,11236:(t,e,i)=>{"use strict";i.d(e,{Z:()=>n});var s=i(58944),o=i(88720),a=i(14978),r=i(20629),l={name:"AddRoomsToTariffModal",components:{RoomCategory:a.Z,Button:o.Z,Modal:s.Z},props:{currentTariff:{type:Object,required:!0}},data:()=>({availableRoomCategories:[],unavailableRoomCategories:[],unavailableRoomsListShowed:!0}),computed:{...(0,r.rn)("room",["rooms"]),...(0,r.rn)("hotel",["currentHotelId"]),specificList(){return[{text:this.currentTariff.meal_type_name,icon:this.mealTypeIcon},{text:this.prepaymentText,icon:this.prepaymentIcon},{text:0===this.currentTariff.nonrefundable?"ÐеÑплаÑÐ½Ð°Ñ Ð¾Ñмена":"ÐлаÑÐ½Ð°Ñ Ð¾Ñмена",icon:this.nonrefundableIcon}]},activeRoomCategoriesIds(){return this.availableRoomCategories.filter((t=>2===t.status)).map((t=>t.id))},prepaymentText(){return"NO"===this.currentTariff.prepayment&&1===this.currentTariff.force_prepayment?"ÐÑедоплаÑа / ÐплаÑа в оÑеле":"NO"===this.currentTariff.prepayment?"ÐплаÑа в оÑеле":["FIRST","FULL"].includes(this.currentTariff.prepayment)?"ÐÑедоплаÑа":""},mealTypeIcon(){return 0===this.currentTariff.meal_type_id?i(64483):i(25043)},nonrefundableIcon(){return this.currentTariff.nonrefundable?i(46930):i(37640)},prepaymentIcon(){return["FULL","FIRST"].includes(this.currentTariff.prepayment)||"NO"===this.currentTariff.prepayment&&1===this.currentTariff.force_prepayment?i(23938):"NO"===this.currentTariff.prepayment?i(33854):i(23938)},isTariffActive(){return 2===this.currentTariff.active||2===this.currentTariff.status},serviceIconColor(){return this.isTariffActive?"#00C950":"#D0D5DD"},unavailableRoomsIconClasses(){return{"add-rooms-modal__rooms__unavailable-title__arrow":!0,"add-rooms-modal__rooms__unavailable-title__arrow_active":this.unavailableRoomsListShowed}}},mounted(){this.prepareRooms()},methods:{...(0,r.nv)("room",["fetchRooms"]),...(0,r.nv)("prices",["updateTariff"]),submit(){const t={id:this.currentTariff.id,hotel_id:this.currentHotelId,room_ids:this.activeRoomCategoriesIds};this.updateTariff(t).then((()=>{this.hide(),this.$emit("submit")}))},changeStatus(t){this.availableRoomCategories=this.availableRoomCategories.map((e=>({...e,status:e.id===t.id?t.state:e.status})))},hideHandler(){},enableAllRooms(){this.availableRoomCategories=this.availableRoomCategories.map((t=>({...t,status:2})))},disableAllRooms(){this.availableRoomCategories=this.availableRoomCategories.map((t=>({...t,status:1})))},show(){this.$refs.modal.show()},hide(){this.$refs.modal&&this.$refs.modal.hide()},prepareRooms(){this.availableRoomCategories=[],this.rooms.forEach((t=>{const e=this.currentTariff.rooms.find((e=>t.id===e.id)),i={id:t.id,name:`${t.name} (${t.type_name})`,status:e?.active?2:1,hasChildrenExtras:t.children_extras.length>0};2===t.status?this.availableRoomCategories.push(i):1===t.status&&this.unavailableRoomCategories.push(i)}))},toRoomCreation(){this.$router.push({name:"room-create",params:{hotelId:this.currentHotelId}})},toTariffRooms(){0===this.availableRoomCategories.length?this.$router.push({name:"rooms",params:{hotelId:this.currentHotelId}}):this.$router.push({name:"tariff-edit",params:{priceId:this.currentTariff.id,hotelId:this.currentHotelId}})},toggleUnavailableRoomsList(){this.unavailableRoomsListShowed=!this.unavailableRoomsListShowed}}},n=(0,i(51900).Z)(l,(function(){var t=this,e=t._self._c;return e("Modal",{ref:"modal",staticClass:"add-rooms-modal",attrs:{"data-gtm":"ÐÑикÑепление номеÑа к ÑаÑиÑÑ","width-type":"middle"},on:{submit:t.submit,hide:t.hideHandler},scopedSlots:t._u([{key:"title",fn:function(){return[e("span",{staticClass:"add-rooms-modal__title"},[t._v("ÐÑикÑепиÑÑ Ð½Ð¾Ð¼ÐµÑа")])]},proxy:!0},{key:"buttons",fn:function(){return[e("Button",{attrs:{color:"black",hierarchy:"tertiary",block:!1,text:"ÐÑмена"},on:{action:t.hide}}),t._v(" "),e("Button",{attrs:{color:"green",hierarchy:"primary",block:!1,text:"СоÑ
ÑаниÑÑ"},on:{action:t.submit}})]},proxy:!0}])},[t._v(" "),e("div",{staticClass:"add-rooms-modal__current-tariff"},[t.isTariffActive?e("label",{staticClass:"add-rooms-modal__current-tariff__label add-rooms-modal__current-tariff__label_active"},[t._v("ÐкÑивнÑй ÑаÑиÑ")]):e("label",{staticClass:"add-rooms-modal__current-tariff__label add-rooms-modal__current-tariff__label_nonactive"},[t._v("ÐеакÑивнÑй ÑаÑиÑ")]),t._v(" "),e("span",{staticClass:"add-rooms-modal__current-tariff__name"},[t._v(t._s(t.currentTariff.name))]),t._v(" "),e("div",{staticClass:"add-rooms-modal__current-tariff__additionals"},t._l(t.specificList,(function(i,s){return e("div",{key:s,staticClass:"add-rooms-modal__current-tariff__additionals__additional"},[e("icon",{attrs:{data:i.icon,color:t.serviceIconColor,width:"16",height:"16"}}),t._v("\n "+t._s(i.text)+"\n ")],1)})),0)]),t._v(" "),e("div",{staticClass:"add-rooms-modal__rooms"},[e("div",{staticClass:"add-rooms-modal__rooms__header"},[e("h4",{staticClass:"add-rooms-modal__rooms__header__title"},[t._v("\n ÐаÑегоÑии номеÑов\n ")]),t._v(" "),0!==t.availableRoomCategories.length?e("div",{staticClass:"add-rooms-modal__rooms__header__buttons"},[e("Button",{staticClass:"add-rooms-modal__rooms__header__buttons__button",attrs:{"visual-styles":"flat",hierarchy:"tertiary",size:"s",color:"black"},on:{action:t.disableAllRooms}},[t._v("\n ÐÑклÑÑиÑÑ Ð²Ñе\n ")]),t._v(" "),e("Button",{staticClass:"add-rooms-modal__rooms__header__buttons__button",attrs:{"visual-styles":"flat",hierarchy:"tertiary",size:"s",color:"green"},on:{action:t.enableAllRooms}},[t._v("\n ÐклÑÑиÑÑ Ð²Ñе\n ")])],1):t._e()]),t._v(" "),t._l(t.availableRoomCategories,(function(i,s){return e("RoomCategory",{key:s,staticClass:"add-rooms-modal__rooms__category",attrs:{"additional-classes":"add-rooms-modal__rooms__category",disabled:i.status,"category-id":i.id,"checkbox-size":"medium","use-ellipsis-text":"",name:i.name},on:{changeState:t.changeStatus}})})),t._v(" "),t.availableRoomCategories.length?e("div",{staticClass:"add-rooms-modal__rooms__unavailable-title",on:{click:t.toggleUnavailableRoomsList}},[t._v("\n ÐеакÑивнÑе каÑегоÑии номеÑов\n "),e("icon",{staticClass:"add-rooms-modal__rooms__unavailable-title__arrow",class:{"add-rooms-modal__rooms__unavailable-title__arrow_active":t.unavailableRoomsListShowed},attrs:{width:"20",height:"20",color:"#101828",data:i(96789)}})],1):t._e(),t._v(" "),e("Transition",{attrs:{name:"fade"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.unavailableRoomsListShowed&&0!==t.availableRoomCategories.length,expression:"unavailableRoomsListShowed && availableRoomCategories.length !== 0"}]},t._l(t.unavailableRoomCategories,(function(t,i){return e("RoomCategory",{key:i,attrs:{"unchanged-disable":"","use-ellipsis-text":"","additional-classes":"add-rooms-modal__rooms__category "+(i>0?"mt-3":"mt-0"),disabled:t.status,"category-id":t.id,"checkbox-size":"medium",name:t.name}})})),1)]),t._v(" "),0===t.availableRoomCategories.length?e("div",{staticClass:"add-rooms-modal__rooms__blank-state"},[e("img",{staticClass:"add-rooms-modal__rooms__blank-state__image",attrs:{src:i(22274),alt:"ÐÐµÑ ÐºÐ¾Ð¼Ð½Ð°Ñ"}}),t._v(" "),e("span",{staticClass:"add-rooms-modal__rooms__blank-state__title"},[t._v("ÐÐµÑ Ð°ÐºÑивнÑÑ
каÑегоÑий номеÑов")]),t._v(" "),e("p",{staticClass:"add-rooms-modal__rooms__blank-state__subtitle"},[t._v("\n ÐÐ»Ñ Ð¾Ð±ÑекÑа не Ð½Ð°Ð¹Ð´ÐµÐ½Ñ Ð°ÐºÑивнÑе каÑегоÑии номеÑов,\n ÑекомендÑем\n "),e("span",{staticClass:"add-rooms-modal__rooms__blank-state__subtitle_accent",on:{click:t.toRoomCreation}},[t._v("\n cоздаÑÑ\n ")]),t._v("\n или\n "),e("span",{staticClass:"add-rooms-modal__rooms__blank-state__subtitle_accent",on:{click:t.toTariffRooms}},[t._v("акÑивиÑоваÑÑ Ð½Ð¾Ð¼ÐµÑа")])])]):t._e()],2)])}),[],!1,null,"27cfb447",null).exports},3943:(t,e,i)=>{"use strict";i.d(e,{Z:()=>o});var s={name:"PriceDropdown",props:{active:{type:[String,Number,Boolean],default:""}}},o=(0,i(51900).Z)(s,(function(){return(0,this._self._c)("div",{staticClass:"dropdown"},[this._t("default")],2)}),[],!1,null,null,null).exports},66340:(t,e,i)=>{"use strict";i.d(e,{Z:()=>l});var s=i(58944),o=i(88720),a=i(20629),r={name:"PriceModalConfirm",components:{Button:o.Z,Modal:s.Z},computed:{...(0,a.rn)("hotel",["hotel"]),...(0,a.Se)("hotel",["currentShortHotel","isRubleCurrency","currencySymbol"]),priceTooltipContent(){return this.isRubleCurrency?"ÐÑ Ñказали вÑÑокÑÑ ÑÑоимоÑÑÑ Ð·Ð° ÑÑÑки. ÐожалÑйÑÑа, пÑовеÑÑÑе ÑенÑ, ÑÑÐ¾Ð±Ñ Ð¸Ð·Ð±ÐµÐ¶Ð°ÑÑ Ð¾Ñибок в ÑазмеÑении.":`Цена пÑÐ¾Ð¶Ð¸Ð²Ð°Ð½Ð¸Ñ Ð·Ð°Ð´Ð°ÐµÑÑÑ Ð² ${this.hotel.currency.charcode}. ÐÑ Ñами пеÑеведÑм ÐµÑ Ð² валÑÑÑ Ð²Ð°Ñего гоÑÑÑ. ÐÑовеÑÑÑе, ÑÑо ÑÑмма Ñказана коÑÑекÑно.`}},methods:{submit(){this.$emit("submit")},hide(){this.$refs.modal.hide()},show(){this.$refs.modal.show()}}},l=(0,i(51900).Z)(r,(function(){var t=this,e=t._self._c;
1return e("Modal",{ref:"modal",attrs:{title:"ÐÑовеÑÑÑе ÑенÑ"},on:{submit:t.submit},scopedSlots:t._u([{key:"buttons",fn:function(i){let{functions:s}=i;return[e("Button",{attrs:{color:"black",hierarchy:"tertiary",text:"ÐзмениÑÑ"},on:{action:s.hide}}),t._v(" "),e("Button",{attrs:{text:"СоÑ
ÑаниÑÑ"},on:{action:s.submit}})]}}])},[e("div",{staticClass:"price-modal-confirm"},[e("div",{staticClass:"price-modal-confirm__icon"},[e("icon",{attrs:{data:i(21873)}})],1),t._v(" "),e("div",{staticClass:"price-modal-confirm__text"},[t._v("\n "+t._s(t.priceTooltipContent)+"\n ")])])])}),[],!1,null,null,null).exports},72140:(t,e,i)=>{"use strict";i.d(e,{Z:()=>p});var s={name:"RestrictionGroupSelectItem",directives:{tooltip:i(75365).ZP},props:{title:{type:String,default:""},active:{type:Boolean,default:!1},opened:{type:Boolean,default:!1},gap:{type:Boolean,default:!1},partly:{type:Boolean,default:!1},code:{type:String,default:""},disabled:{type:Boolean,default:!1},static:{type:Boolean,default:!1},buttonCounter:{type:Number,default:0},isSelected:{type:Boolean,default:!1}},data(){return{class:"restriction-group-select-item",buttonCounterClone:structuredClone(this.buttonCounter)}},computed:{getClass(){return[this.class,{"restriction-group-select-item_gap":this.gap},{"restriction-group-select-item_active":this.active&&!this.partly},{"restriction-group-select-item_active-partly":this.partly},{"restriction-group-select-item_disabled":this.disabled},{"restriction-group-select-item_opened":this.opened}]},colorClass(){return{closed:"restriction-group-select-item_red",min_stay:"restriction-group-select-item_blue",min_stay_through:"restriction-group-select-item_blue-light",max_adv:"restriction-group-select-item_orange",min_adv:"restriction-group-select-item_purple",closed_to_arrival:"restriction-group-select-item_red",closed_to_departure:"restriction-group-select-item_red"}[this.code]??""},tooltipTitles:()=>({closed:'<span style="font-weight: 600;">ÐÑодажи закÑÑÑÑ</span>',min_stay:'<span style="font-weight: 600;">ÐинималÑнÑй ÑÑок пÑÐ¾Ð¶Ð¸Ð²Ð°Ð½Ð¸Ñ Ñ Ð´Ð°ÑÑ Ð·Ð°ÐµÐ·Ð´Ð°</span>',min_stay_through:'<span style="font-weight: 600;">ÐинималÑнÑй ÑÑок пÑоживаниÑ, вклÑÑаÑÑего даннÑÑ Ð´Ð°ÑÑ</span>',max_adv:'<span style="font-weight: 600;">ÐакÑималÑнÑй пеÑиод до заезда</span>',min_adv:'<span style="font-weight: 600;">ÐинималÑнÑй пеÑиод до заезда</span>',closed_to_arrival:'<span style="font-weight: 600;">ÐапÑÐµÑ Ð·Ð°ÐµÐ·Ð´Ð°</span>',closed_to_departure:'<span style="font-weight: 600;">ÐапÑÐµÑ Ð²Ñезда</span>'}),tooltip(){return{closed:`<span style="${this.tooltipTextStyles}">${this.tooltipTitles.closed}<br>${this.tooltipUsePeriodText}</span>`,min_stay:`<span style="${this.tooltipTextStyles}">${this.tooltipTitles.min_stay}<br>${this.tooltipUsePeriodText}</span>`,min_stay_through:`<span style="${this.tooltipTextStyles}">${this.tooltipTitles.min_stay_through}<br>${this.tooltipUsePeriodText}</span>`,max_adv:`<span style="${this.tooltipTextStyles}">${this.tooltipTitles.max_adv}<br>${this.tooltipUsePeriodText}</span>`,min_adv:`<span style="${this.tooltipTextStyles}">${this.tooltipTitles.min_adv}<br>${this.tooltipUsePeriodText}</span>`,closed_to_arrival:`<span style="${this.tooltipTextStyles}">${this.tooltipTitles.closed_to_arrival}<br>${this.tooltipUsePeriodText}</span>`,closed_to_departure:`<span style="${this.tooltipTextStyles}">${this.tooltipTitles.closed_to_departure}<br>${this.tooltipUsePeriodText}</span>`}[this.code]??""},tooltipUsePeriodText(){return this.isSelected?"":"ÐÑбеÑиÑе пеÑиод Ð´Ð»Ñ Ð¸ÑполÑÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¾Ð³ÑаниÑений"},tooltipTextStyles:()=>"white-space: nowrap; font-size: 12px; line-height: 16px; font-weight: 300;",icon(){return i(20116)(`./${{closed:"cancel",min_stay:"price-MinLOSArrival",min_stay_through:"price-MinStayThrough",max_adv:"price-MaxAdvBooking",min_adv:"price-MinAdvBooking",closed_to_arrival:"arrow-downward",closed_to_departure:"arrow-upward"}[this.code]}.svg`)??""},iconColor(){return{closed:"#fff",min_stay:"",min_stay_through:"",max_adv:"",min_adv:"",closed_to_arrival:"#fff",closed_to_departure:"#fff"}[this.code]},iconSize(){return{closed:{width:"16px",height:"16px"},min_stay:{width:"8px",height:"8px"},min_stay_through:{width:"8px",height:"8px"},max_adv:{width:"8px",height:"8px"},min_adv:{width:"8px",height:"8px"},closed_to_arrival:{width:"16px",height:"16px"},closed_to_departure:{width:"16px",height:"16px"}}[this.code]},isTooltipDisabled(){return""===this.tooltip||this.lMD},iconClasses(){return{"icon-closed":"closed"===this.code,closed_to_arrival:"closed_to_arrival"===this.code,closed_to_departure:"closed_to_departure"===this.code}}},watch:{buttonCounter(t){this.buttonCounterClone=t}},methods:{toggle(t){t.target.closest(".close-icon")||this.disabled||this.static||this.$emit("toggle",t)}}},o=i(51900),a=(0,o.Z)(s,(function(){var t=this,e=t._self._c;return e("div",{class:[t.getClass,t.colorClass]},[e("div",{staticClass:"restriction-group-select-item__button",on:{click:t.toggle}},[e("icon",{class:t.iconClasses,attrs:{data:t.icon,width:t.iconSize.width,height:t.iconSize.height,color:t.iconColor}}),t._v(" "),e("span",{directives:[{name:"tooltip",rawName:"v-tooltip:[isTooltipDisabled]",value:{placement:"top",content:t.tooltip,allowHTML:!0,arrow:!1,maxWidth:"unset"},expression:"{\n placement: 'top',\n content: tooltip,\n allowHTML: true,\n arrow: fal
1se,\n maxWidth: 'unset',\n }",arg:t.isTooltipDisabled}],staticClass:"ml-2"},[t._v(t._s(t.title))]),t._v(" "),t.buttonCounterClone?e("span",{staticClass:"ml-5"},[t._v("\n ("+t._s(t.buttonCounterClone)+")\n ")]):t._e(),t._v(" "),t._t("closeControl")],2),t._v(" "),t._t("default")],2)}),[],!1,null,"86ade234",null).exports,r=i(3943),l=i(11837),n=i(11592),d=i(88720),c=i(20629),u=i(91546),h={name:"RestrictionGroup",components:{Button:d.Z,SliderField:l.Z,PriceDropdown:r.Z,RestrictionGroupSelectItem:a},mixins:[u.Z],props:{restriction:{type:Object,required:!0},isRestrictionSet:{type:Boolean,required:!0},isRestrictionSetPartly:{type:Boolean,default:!1},isRestrictionDisabled:{type:Boolean,default:!1},buttonCounter:{type:Number,default:0},isSelected:{type:Boolean,default:!1},useSliderTopPositioning:{type:Boolean,default:!1},scrolledLeft:{type:Number,default:0}},data:()=>({quantity:0,showDropdown:!1,delayInterval:null,delayTimeout:null,preventClickOutside:!1}),computed:{...(0,c.rn)("ui",["isToggleLeftMenu"]),hasDropdown(){return["min_stay","max_adv","min_adv","min_stay_through"].includes(this.restriction.code)},submittedQuantity(){return this.restriction.current},availableValues(){if(!("min"in this.restriction)||!("max"in this.restriction))return[];const t=Array.from(new Array(this.restriction.max+1-this.restriction.min),((t,e)=>e+this.restriction.min));return this.restriction.validate?t.filter((t=>this.restriction.validate(t))):t},currentAvailableValueIndex(){return this.availableValues.findIndex((t=>t===this.quantity))},sliderDotSize:()=>[20,20],closeIconColor(){return this.isRestrictionDisabled?"#D0D5DD":this.showDropdown&&!this.isRestrictionSetPartly||this.isRestrictionSet&&!this.isRestrictionSetPartly?"#fff":"#101828"},priceDropdownClasses(){return{"price-item-dropdown":!0,"price-item-dropdown_full-width":this.lMD||this.isLandscapeMode&&this.isTouchDevice}}},watch:{showDropdown(t,e){t&&!e&&(this.quantity=this.restriction.current),this.$emit("dropdownChanged",this.showDropdown)},restriction(t){this.quantity=t.current},isToggleLeftMenu(){setTimeout(this.setPriceDropdownCords,405)},scrolledLeft(){this.setPriceDropdownCords()}},mounted(){window.addEventListener("keyup",this.onKeyUp),window.addEventListener("mousedown",this.onMouseDown)},beforeDestroy(){window.removeEventListener("keyup",this.onKeyUp),window.removeEventListener("mousedown",this.onMouseDown)},methods:{toggle(t){if(!this.hasDropdown)return this.toggleQuantityWithoutDropdown();this.showDropdown||(this.$emit("toggle",{code:this.restriction.code,isOpen:!this.showDropdown,e:t}),setTimeout((()=>{this.showDropdown=!this.showDropdown,this.setPriceDropdownCords()}),300),this.showDropdown&&this.emitOpenEvent())},hideDropdown(t){this.preventClickOutside?this.preventClickOutside=!1:t&&t.target.closest(".price-item-dropdown")&&!t.target.closest(".price-item-dropdown__close")||this.showDropdown&&(this.$emit("handleClose"),this.showDropdown=!1)},onMouseDown(t){this.preventClickOutside=!!t.target.closest(".price-item-dropdown")&&!t.target.closest(".price-item-dropdown__save-range")&&!t.target.closest(".price-item-dropdown__close")},onSliderValueChange(t){null===this.restriction.validate||this.restriction.validate(t)?this.quantity=t:this.quantity=this.submittedQuantity},toggleQuantityWithoutDropdown(){this.quantity=+!this.quantity,this.submitQuantity(),this.quantity&&this.emitOpenEvent()},emitOpenEvent(){this.$emit("handleOpen",{code:this.restriction.code,isRestrictionSet:this.isRestrictionSet})},prepareQuantityBeforeSubmit(){const t=this.restriction.code;if(1===this.restriction.current)switch(t){case"min_stay":case"min_stay_through":case"closed":case"closed_to_departure":case"closed_to_arrival":this.quantity=0}},submitQuantity(){this.prepareQuantityBeforeSubmit(),this.$emit("updateRestriction",{...this.restriction,current:this.quantity}),this.hideDropdown()},resetRestriction(){this.hideDropdown(),this.$emit("resetRestriction",this.restriction.code),this.quantity=this.restriction.current},startDelayedQuantityChange(t){this.delayTimeout||(this.delayTimeout=setTimeout((()=>{this.delayInterval=setInterval((()=>
1{"decrement"===t?this.decrement():this.increment()}),80)}),800))},endDelayedQuantityChange(t){this.delayTimeout&&!this.delayInterval&&("decrement"===t?this.decrement():this.increment()),this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null),this.delayInterval&&(clearInterval(this.delayInterval),this.delayInterval=null)},decrement(){void 0!==this.availableValues[this.currentAvailableValueIndex-1]&&(this.quantity=this.availableValues[this.currentAvailableValueIndex-1])},increment(){void 0!==this.availableValues[this.currentAvailableValueIndex+1]&&(this.quantity=this.availableValues[this.currentAvailableValueIndex+1])},daysString:t=>(0,n.Ak)(t,["денÑ","днÑ","дней"]),setPriceDropdownCords(){if(this.$refs.selectItem.$el&&this.showDropdown&&this.mMD&&!this.isTouchDevice){let t=this.$refs.selectItem.$el.offsetLeft;this.$refs.priceDropdown.$el.style.width=`min(${this.$refs.selectItem.$el.offsetWidth}, 175px)`,this.$refs.priceDropdown.$el.style.left=t-this.scrolledLeft+"px"}if(this.useSliderTopPositioning&&this.showDropdown){let t=this.$refs.selectItem.$el.offsetTop+48;this.$refs.priceDropdown.$el.style.top=t+"px"}}}},p=(0,o.Z)(h,(function(){var t=this,e=t._self._c;return e("RestrictionGroupSelectItem",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hideDropdown,expression:"hideDropdown"},{name:"touch",rawName:"v-touch:start",value:t.hideDropdown,expression:"hideDropdown",arg:"start"}],ref:"selectItem",attrs:{"is-selected":t.isSelected,active:t.showDropdown||t.isRestrictionSet,opened:t.showDropdown,title:t.restriction.name,code:t.restriction.code,partly:t.isRestrictionSetPartly,disabled:t.isRestrictionDisabled,"button-counter":t.buttonCounter},on:{toggle:t.toggle},scopedSlots:t._u([t.restriction.useCloseControl&&t.quantity?{key:"closeControl",fn:function(){return[e("icon",{staticClass:"close-icon ml-2",attrs:{data:i(50347),width:"16",height:"16",color:t.closeIconColor},on:{click:t.resetRestriction}})]},proxy:!0}:null],null,!0)},[t._v(" "),t.hasDropdown?[e("PriceDropdown",{directives:[{name:"show",rawName:"v-show",value:t.showDropdown,expression:"showDropdown"}],ref:"priceDropdown",class:t.priceDropdownClasses},[e("SliderField",{attrs:{width:"95%",min:t.restriction.min,max:t.restriction.max,height:4,"dot-size":t.sliderDotSize},on:{input:t.onSliderValueChange},scopedSlots:t._u([{key:"top",fn:function(i){let{value:s}=i;return[e("div",{staticClass:"w-100 d-flex align-items-center justify-content-between"},[e("Button",{staticClass:"slider-button",attrs:{color:"black",hierarchy:"tertiary","start-icon":"minus",size:"s","only-icon":"",disabled:t.restriction.min===s},nativeOn:{touchstart:function(e){t.lMD&&t.startDelayedQuantityChange("decrement")},touchend:function(e){t.lMD&&t.endDelayedQuantityChange("decrement")},mousedown:function(e){t.mMD&&t.startDelayedQuantityChange("decrement")},mouseup:function(e){t.mMD&&t.endDelayedQuantityChange("decrement")},mouseleave:function(e){t.mMD&&t.endDelayedQuantityChange("decrement")}}}),t._v(" "),e("span",[e("span",{staticClass:"slider-field__label_accent"},[t._v(t._s(null===s?"...":s))]),t._v(" "+t._s(t.daysString(s))+"\n ")]),t._v(" "),e("Button",{staticClass:"slider-button",attrs:{color:"black",hierarchy:"tertiary",size:"s","start-icon":"plus","only-icon":"",disabled:t.restriction.max===s},nativeOn:{touchstart:function(e){t.lMD&&t.startDelayedQuantityChange("increment")},touchend:function(e){t.lMD&&t.endDelayedQuantityChange("increment")},mousedown:function(e){t.mMD&&t.startDelayedQuantityChange("increment")},mouseup:function(e){t.mMD&&t.endDelayedQuantityChange("increment")},mouseleave:function(e){t.mMD&&t.endDelayedQuantityChange("increment")}}})],1)]}},{key:"center-right",fn:function(){return[t.lMD?e("Button",{staticClass:"price-item-dropdown__close",attrs:{color:"black",hierarchy:"tertiary",size:"s",text:"ÐакÑÑÑÑ"},on:{action:t.hideDropdown}}):t._e(),t._v(" "),e("Button",{staticClass:"price-item-dropdown__save-range",attrs:{color:"green",hierarchy:"tertiary",size:"s",text:"СоÑ
ÑаниÑÑ",block:!1},on:{action:t.submitQuantity}})]},proxy:!0}],null,!1,1160434600),model:{value:t.quantity,callback:function(e){t.quantity=e},expression:"quantity"}})],1)]:t._e()],2)}),[],!1,null,"dda30dda",null).exports},14978:(t,e,i)=>{"use strict";i.d(e,{Z:()=>o});var s={name:"RoomCategory",components:{SwitchCheckboxText:i(74300).Z},props:{name:{type:String,required:!0},disabled:{type:[Boolean,Number],required:!0},masterPage:{type:Boolean,default:!1},categoryId:{type:[String,Number],default:""},unchangedDisable:{type:Boolean,default:!1},showButton:{type:Boolean,default:!1},switchSize:{type:String,default:"medium"}},data(){return{disabledLocal:this.disabled}},computed:{switchValue(){return 1!==this.disabledLocal&&(2===this.disabledLocal||this.disabledLocal)},showBlockButton(){return this.showButton&&!this.masterPage}},watch:{disabled:function(t){!1!==t&&this.updateCategory(this.disabled)}},methods:{updateCategory(t){this.disabledLocal=t,"boolean"==typeof this.disabledLocal&&(this.disabledLocal=t?2:1),this.$emit("changeState",{id:this.categoryId,state:this.disabledLocal})},goToRoomEdit(t){t.preventDefault(),this.$emit("roomLinkClicked",{id:this.categoryId})}}},o=(0,i(51900).Z)(s,(function(){var t=this;return(0,t._self._c)("SwitchCheckboxText",{staticClass:"room-category",attrs:{value:t.switchValue,title:t.name,disabled:t.unchangedDisable,bordered:"",size:t.switchSize,"show-block-button":t.showBlockButton,"block-button-end-icon":"info","block-button-text":"Ð
1ÐµÑ Ð¼ÐµÑÑ Ð´Ð»Ñ Ð´ÐµÑей"},on:{blockButtonClicked:t.goToRoomEdit,input:t.updateCategory}})}),[],!1,null,"0f1fbfa6",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.