PageSourceSearch

https://extranet.101hotels.com/build/4082.3d76c12d1380a5335300.1789476845338.js

js 101hotels.com collected 2026-09-24 18:13:14 UTC 16,097 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4082,6201],{78856:(t,e,i)=>{i.d(e,{Z:()=>o});var s={name:"ActionBottom",components:{Button:i(88720).Z},props:{show:{type:Boolean,required:!0},showContent:{type:Boolean,default:!0},submitDisabled:{type:Boolean,default:!1}}},o=(0,i(51900).Z)(s,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"action-bottom",class:{active:t.show}},[t._t("second"),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.showContent,expression:"showContent"}],staticClass:"action-bottom__content"},[t._t("default",(function(){return[e("div",{staticClass:"action_wrapper"},[e("Button",{staticClass:"mr-30 w-172",attrs:{color:"black",hierarchy:"tertiary",text:"Отмена"},on:{action:function(e){return t.$emit("cancel")}}}),t._v(" "),e("Button",{staticClass:"w-172",attrs:{disabled:t.submitDisabled,text:"Сохранить"},on:{action:function(e){return t.$emit("submit")}}})],1)]}))],2)],2)}),[],!1,null,"0cff46e4",null).exports},79503:(t,e,i)=>{i.d(e,{Z:()=>u});var s=i(88720),o=i(75365),a=i(6210),l=i(12954),r=i(64560),n=i(11592),d={name:"CounterField",components:{ModalBottom:r.Z,ValidationProvider:l.d_,ValidationWatcher:a.Z,Button:s.Z},directives:{tooltip:o.ZP},props:{id:{type:String,default:()=>"input-"+(0,n.k$)()},name:{type:String,default:""},value:{type:[Number,String],default:0},max:{type:Number,default:null},tooltipModalTitle:{type:String,default:""},tooltipModalText:{type:String,default:""},min:{type:Number,default:0},validationName:{type:String,default:""},immediate:{type:Boolean,default:!0},tooltip:{type:String,default:""},hint:{type:String,default:""},suffix:{type:String,default:""},disabled:{type:Boolean,default:!1},errorTooltip:{type:Boolean,default:!1},size:{type:String,default:"l",validator:t=>["m","l"].includes(t)},rules:{type:String,default:null},checkExceeding:{type:Boolean,default:!1},maxLimit:{type:Number,default:1/0},exceedingTooltip:{type:Object,default:()=>({})}},data(){return{localValue:this.value,hasErrors:!1,error:""}},computed:{minusIconDisabled(){return Number(this.localValue)<=this.min||this.disabled},plusIconDisabled(){return this.maxAmountExceeded||this.disabled},isBottom(){return this.hint||this.hasErrors},tooltipModalTextFinal(){return this.tooltipModalText?this.tooltipModalText:this.tooltipCounter},tooltipCounter(){return this.tooltip},showTooltip(){return this.errorTooltip?this.mMD&&!!this.tooltip&&this.hasErrors:this.mMD&&!!this.tooltip},showExceedingTooltip(){return this.mMD&&this.isExceeded&&!!this.exceedingTooltipAssigned?.content?.length},showTooltipFinal(){return this.showExceedingTooltip||this.showTooltip},tooltipFinal(){return this.showExceedingTooltip?this.exceedingTooltipAssigned:{placement:"top",allowHTML:!0,content:this.tooltipCounter}},getCounterClass(){return{"counter-field":!0,[`counter-field--${this.size}`]:!0,"counter-field--error":this.hasErrors,"counter-field--exceeded":this.isExceeded,"counter-field--disabled":this.disabled,"field-error":this.hasErrors}},colorButton(){return this.hasErrors?"red":"black"},maxAmountExceeded(){return!!this.max&&this.localValue>=this.max},isExceeded(){return this.checkExceeding&&Number(this.localValue)>Number(this.maxLimit)},exceedingTooltipAssigned(){return Object.assign({placement:"top",content:"",arrow:!0,allowHTML:!0},this.exceedingTooltip)}},watch:{value(t){this.localValue=Number(t)}},methods:{plusCount(){this.localValue++,this.emitChanges()},minusCount(){this.localValue--,this.emitChanges()},handleInput(t){let e=Number(t.target.value.replace(/[^-?\d]/g,""));e<this.min?this.localValue=this.min:this.max&&e>=this.max?this.localValue=this.max:this.localValue=e,this.emitChanges()},updateErrors(t){this.hasErrors=t.length>0,this.error=this.hasErrors?t[0]:""},emitChanges(){this.$emit("input",this.localValue)},hideModalBottom(){this.$refs["modal-bottom"]&&this.$refs["modal-bottom"].hide&&this.$refs["modal-bottom"].hide()}}},u=(0,i(51900).Z)(d,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"tooltip",rawName:"v-tooltip:[!showTooltipFinal]",value:t.tooltipFinal,expression:"tooltipFinal",arg:!t.showTooltipFinal}],class:t.getCounterClass},[e("ValidationProvider",{ref:"provider",staticClass:"counter-field__wrapper",attrs:{tag:"div",name:t.validationName,immediate:t.immediate,rules:t.disabled?"":t.rules},scopedSlots:t._u([{key:"default",fn:function(i){let{errors:s}=i;return[e("Button",{attrs:{color:t.colorButton,hierarchy:"tertiary",size:"s","start-icon":"minus",disabled:t.minusIconDisabled},on:{action:t.minusCount}}),t._v(" "),e("ValidationWatcher",{attrs:{errors:s},on:{change:t.updateErrors}}),t._v(" "),e("span",{staticClass:"counter-field__value"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.localValue,expression:"localValue"}],ref:"quotaInput",staticClass:"counter-field__input",attrs:{id:t.id,name:t.name,hidden:!!t.suffix,type:"number",disabled:t.disabled,"aria-controls":"none"},domProps:{value:t.localValue},on:{change:t.handleInput,input:function(e){e.target.composing||(t.localValue=e.target.value)}}}),t._v(" "),t.suffix?e("span",{staticClass:"counter-field__count"},[t._v(t._s(t.localValue))]):t._e(),t._v(" "),t.suffix?e("span",{staticClass:"counter-field__suffix"},[t._v(t._s(t.suffix))]):t._e()]),t._v(" "),e("Button",{attrs:{color:t.colorButton,hierarchy:"tertiary",size:"s","start-icon":"plus",disabled:t.plusIconDisabled},on:{action:t.plusCount}})]}}])}),t._v(" "),t.isBottom?e("div",{staticClass:"counter-field__bottom"}
1,[t._v("\n        "+t._s(t.hasErrors?t.error:t.hint)+"\n    ")]):t._e(),t._v(" "),t.tooltipModalText?e("ModalBottom",{ref:"modal-bottom",staticClass:"counter-modal-bottom",attrs:{"use-header-paddings":!1,"has-controls":!1},scopedSlots:t._u([{key:"header",fn:function(){return[e("div",{staticClass:"counter-modal-bottom__header"},[e("span",{staticClass:"counter-modal-bottom__header-title"},[t._v(t._s(t.tooltipModalTitle))]),t._v(" "),e("Button",{attrs:{"start-icon":"cancel",size:"s"},on:{action:t.hideModalBottom}})],1)]},proxy:!0}],null,!1,1416060840)},[t._v(" "),e("div",{staticClass:"counter-modal-bottom__body",on:{mousedown:function(t){return t.stopPropagation()},touchend:function(t){return t.stopPropagation()},touchstart:function(t){return t.stopPropagation()},touchmove:function(t){return t.stopPropagation()}}},[e("div",{domProps:{innerHTML:t._s(t.tooltipModalTextFinal)}})])]):t._e()],1)}),[],!1,null,"199c9ab2",null).exports},16201:(t,e,i)=>{i.d(e,{Z:()=>n});var s=i(11592),o=i(62570),a=i(6210),l=i(12954),r={name:"SelectField",components:{Dropdown:i(27227).Z,ValidationProvider:l.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)(r,(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},14978:(t,e,i)=>{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},50769:(t,e,i)=>{i.r(e),i.d(e,{default:()=>o});var s={name:"TariffNew",components:{TariffsCreate:i(33597).Z},props:{isPrepaid:{type:Boolean,default:!1}}},o=(0,i(51900).Z)(s,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"container container-paddings container-paddings_compact-width"},[e("TariffsCreate",{attrs:{"is-prepaid":t.isPrepaid,loaded:t.$emit("loaded")}})],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.