import{pushScopeId as me,popScopeId as pe,nextTick as ne,openBlock as c,createBlock as D,withScopeId as ve,markRaw as ge,shallowReactive as ye,resolveComponent as oe,resolveDirective as be,withDirectives as M,createElementBlock as d,normalizeClass as G,renderSlot as P,createCommentVNode as v,resolveDynamicComponent as ee,normalizeStyle as _e,withCtx as F,Fragment as j,renderList as ae,mergeProps as we,toHandlers as ke,createVNode as Ie,createElementVNode as f,toDisplayString as I,vModelText as qe,vModelCheckbox as te}from "/js/vue.esm-browser.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))l(r);new MutationObserver(r=>{for(const n of r)if(n.type==="childList")for(const a of n.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&l(a)}).observe(document,{childList:!0,subtree:!0});function t(r){const n={};return r.integrity&&(n.integrity=r.integrity),r.referrerPolicy&&(n.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?n.credentials="include":r.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function l(r){if(r.ep)return;r.ep=!0;const n=t(r);fetch(r.href,n)}})();function Se(){var i=window.navigator.userAgent,e=i.indexOf("MSIE ");if(e>0)return parseInt(i.substring(e+5,i.indexOf(".",e)),10);var t=i.indexOf("Trident/");if(t>0){var l=i.indexOf("rv:");return parseInt(i.substring(l+3,i.indexOf(".",l)),10)}var r=i.indexOf("Edge/");return r>0?parseInt(i.substring(r+5,i.indexOf(".",r)),10):-1}let E;function K(){K.init||(K.init=!0,E=Se()!==-1)}var U={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){K(),ne(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const i=document.createElement("object");this._resizeObject=i,i.setAttribute("aria-hidden","true"),i.setAttribute("tabindex",-1),i.onload=this.addResizeHandlers,i.type="text/html",E&&this.$el.appendChild(i),i.data="about:blank",E||this.$el.appendChild(i)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!E&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const xe=ve("data-v-b329ee4c");me("data-v-b329ee4c");const ze={class:"resize-observer",tabindex:"-1"};pe();const Oe=xe((i,e,t,l,r,n)=>(c(),D("div",ze)));U.render=Oe;U.__scopeId="data-v-b329ee4c";U.__file="src/components/ResizeObserver.vue";function H(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?H=function(e){return typeof e}:H=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H(i)}function Ce(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function ie(i,e){for(var t=0;t<e.length;t++){var l=e[t];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(i,l.key,l)}}function Te(i,e,t){return e&&ie(i.prototype,e),t&&ie(i,t),i}function re(i){return Re(i)||Ne(i)||Ae(i)||Ve()}function Re(i){if(Array.isArray(i))return W(i)}function Ne(i){if(typeof Symbol<"u"&&Symbol.iterator in Object(i))return Array.from(i)}function Ae(i,e){if(i){if(typeof i=="string")return W(i,e);var t=Object.prototype.toString.call(i).slice(8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return Array.from(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return W(i,e)}}function W(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,l=new Array(e);t<e;t++)l[t]=i[t];return l}function Ve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Le(i){var e;return typeof i=="function"?e={callback:i}:e=i,e}function Pe(i,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l,r,n,a=function(o){for(var p=arguments.length,b=new Array(p>1?p-1:0),m=1;m<p;m++)b[m-1]=arguments[m];if(n=b,!(l&&o===r)){var x=t.leading;typeof x=="function"&&(x=x(o,r)),(!l||o!==r)&&x&&i.apply(void 0,[o].concat(re(n))),r=o,clearTimeout(l),l=setTimeout(function(){i.apply(void 0,[o].concat(re(n))),l=0},e)}};return a._clear=function(){clearTimeout(l),l=null},a}function ce(i,e){if(i===e)return!0;if(H(i)==="object"){for(var t in i)if(!ce(i[t],e[t]))return!1;return!0}return!1}var Me=function(){function i(e,t,l){Ce(this,i),this.el=e,this.observer=null,this.frozen=!1,this.createObserver(t,l)}return Te(i,[{key:"createObserver",value:function(t,l){var r=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=Le(t),this.callback=function(s,o){r.options.callback(s,o),s&&r.options.once&&(r.frozen=!0,r.destroyObserver())},this.callback&&this.options.throttle){var n=this.options.throttleOptions||{},a=n.leading;this.callback=Pe(this.callback,this.options.throttle,{leading:function(o){return a==="both"||a==="visible"&&o||a==="hidden"&&!o}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(s){var o=s[0];if(s.length>1){var p=s.find(function(m){return m.isIntersecting});p&&(o=p)}if(r.callback){var b=o.isIntersecting&&o.intersectionRatio>=r.threshold;if(b===r.oldResult)return;r.oldResult=b,r.callback(b,o)}},this.options.intersection),ne(function(){r.observer&&r.observer.observe(r.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),i}();function fe(i,e,t){var l=e.value;if(l)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var r=new Me(i,l,t);i._vue_visibilityState=r}}function Ee(i,e,t){var l=e.value,r=e.oldValue;if(!ce(l,r)){var n=i._vue_visibilityState;if(!l){de(i);return}n?n.createObserver(l,t):fe(i,{value:l},t)}}function de(i){var e=i._vue_visibilityState;e&&(e.destroyObserver(),delete i._vue_visibilityState)}var He={beforeMount:fe,updated:Ee,unmounted:de},De={itemsLimit:1e3},Ge=/(auto|scroll)/;function ue(i,e){return i.parentNode===null?e:ue(i.parentNode,e.concat([i]))}var B=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},Fe=function(e){return B(e,"overflow")+B(e,"overflow-y")+B(e,"overflow-x")},Ue=function(e){return Ge.test(Fe(e))};function le(i){if(i instanceof HTMLElement||i instanceof SVGElement){for(var e=ue(i.parentNode,[]),t=0;t<e.length;t+=1)if(Ue(e[t]))return e[t];return document.scrollingElement||document.documentElement}}function Y(i){"@babel/helpers - typeof";return Y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(i)}var Be={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(e){return["vertical","horizontal"].includes(e)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function je(){return this.items.length&&Y(this.items[0])!=="object"}var X=!1;if(typeof window<"u"){X=!1;try{var Ke=Object.defineProperty({},"passive",{get:function(){X=!0}});window.addEventListener("test",null,Ke)}catch{}}let We=0;var J={name:"RecycleScroller",components:{ResizeObserver:U},directives:{ObserveVisibility:He},props:{...Be,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const i={"-1":{accumulator:0}},e=this.items,t=this.sizeField,l=this.minItemSize;let r=1e4,n=0,a;for(let s=0,o=e.length;s<o;s++)a=e[s][t]||l,a<r&&(r=a),n+=a,i[s]={accumulator:n,size:a};return this.$_computedMinItemSize=r,i}return[]},simpleArray:je,itemIndexByKey(){const{keyField:i,items:e}=this,t={};for(let l=0,r=e.length;l<r;l++)t[e[l][i]]=l;return t}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const i=this.$_lastUpdateScrollPosition;typeof i=="number"&&this.$nextTick(()=>{this.scrollToPosition(i)})},beforeUnmount(){this.removeListeners()},methods:{addView(i,e,t,l,r){const n=ge({id:We++,index:e,used:!0,key:l,type:r}),a=ye({item:t,position:0,nr:n});return i.push(a),a},unuseView(i,e=!1){const t=this.$_unusedViews,l=i.nr.type;let r=t.get(l);r||(r=[],t.set(l,r)),r.push(i),e||(i.nr.used=!1,i.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(i){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const e=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:t}=this.updateVisibleItems(!1,!0);t||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});e(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&e()},this.updateInterval))}},handleVisibilityChange(i,e){this.ready&&(i||e.boundingClientRect.width!==0||e.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(i,e=!1){const t=this.itemSize,l=this.gridItems||1,r=this.itemSecondarySize||t,n=this.$_computedMinItemSize,a=this.typeField,s=this.simpleArray?null:this.keyField,o=this.items,p=o.length,b=this.sizes,m=this.$_views,x=this.$_unusedViews,A=this.pool,he=this.itemIndexByKey;let k,y,R,z,O;if(!p)k=y=z=O=R=0;else if(this.$_prerender)k=z=0,y=O=Math.min(this.prerender,o.length),R=null;else{const u=this.getScroll();if(e){let w=u.start-this.$_lastUpdateScrollPosition;if(w<0&&(w=-w),t===null&&w<n||w<t)return{continuous:!0}}this.$_lastUpdateScrollPosition=u.start;const q=this.buffer;u.start-=q,u.end+=q;let _=0;if(this.$refs.before&&(_=this.$refs.before.scrollHeight,u.start-=_),this.$refs.after){const w=this.$refs.after.scrollHeight;u.end+=w}if(t===null){let w,N=0,Z=p-1,S=~~(p/2),$;do $=S,w=b[S].accumulator,w<u.start?N=S:S<p-1&&b[S+1].accumulator>u.start&&(Z=S),S=~~((N+Z)/2);while(S!==$);for(S<0&&(S=0),k=S,R=b[p-1].accumulator,y=S;y<p&&b[y].accumulator<u.end;y++);for(y===-1?y=o.length-1:(y++,y>p&&(y=p)),z=k;z<p&&_+b[z].accumulator<u.start;z++);for(O=z;O<p&&_+b[O].accumulator<u.end;O++);}else{k=~~(u.start/t*l);const w=k%l;k-=w,y=Math.ceil(u.end/t*l),z=Math.max(0,Math.floor((u.start-_)/t*l)),O=Math.floor((u.end-_)/t*l),k<0&&(k=0),y>p&&(y=p),z<0&&(z=0),O>p&&(O=p),R=Math.ceil(p/l)*t}}y-k>De.itemsLimit&&this.itemsLimitError(),this.totalSize=R;let h;const V=k<=this.$_endIndex&&y>=this.$_startIndex;if(V)for(let u=0,q=A.length;u<q;u++)h=A[u],h.nr.used&&(i&&(h.nr.index=he[h.item[s]]),(h.nr.index==null||h.nr.index<k||h.nr.index>=y)&&this.unuseView(h));const Q=V?null:new Map;let T,C,L;for(let u=k;u<y;u++){T=o[u];const q=s?T[s]:T;if(q==null)throw new Error(`Key is ${q} on item (keyField is '${s}')`);if(h=m.get(q),!t&&!b[u].size){h&&this.unuseView(h);continue}C=T[a];let _=x.get(C),w=!1;if(!h)V?_&&_.length?h=_.pop():h=this.addView(A,u,T,q,C):(L=Q.get(C)||0,(!_||L>=_.length)&&(h=this.addView(A,u,T,q,C),this.unuseView(h,!0),_=x.get(C)),h=_[L],Q.set(C,L+1)),m.delete(h.nr.key),h.nr.used=!0,h.nr.index=u,h.nr.key=q,h.nr.type=C,m.set(q,h),w=!0;else if(!h.nr.used&&(h.nr.used=!0,w=!0,_)){const N=_.indexOf(h);N!==-1&&_.splice(N,1)}h.item=T,w&&(u===o.length-1&&this.$emit("scroll-end"),u===0&&this.$emit("scroll-start")),t===null?(h.position=b[u-1].accumulator,h.offset=0):(h.position=Math.floor(u/l)*t,h.offset=u%l*r)}return this.$_startIndex=k,this.$_endIndex=y,this.emitUpdate&&this.$emit("update",k,y,z,O),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:V}},getListenerTarget(){let i=le(this.$el);return window.document&&(i===window.document.documentElement||i===window.document.body)&&(i=window),i},getScroll(){const{$el:i,direction:e}=this,t=e==="vertical";let l;if(this.pageMode){const r=i.getBoundingClientRect(),n=t?r.height:r.width;let a=-(t?r.top:r.left),s=t?window.innerHeight:window.innerWidth;a<0&&(s+=a,a=0),a+s>n&&(s=n-a),l={start:a,end:a+s}}else t?l={start:i.scrollTop,end:i.scrollTop+i.clientHeight}:l={start:i.scrollLeft,end:i.scrollLeft+i.clientWidth};return l},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,X?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(i){let e;const t=this.gridItems||1;this.itemSize===null?e=i>0?this.sizes[i-1].accumulator:0:e=Math.floor(i/t)*this.itemSize,this.scrollToPosition(e)},scrollToPosition(i){const e=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let t,l,r;if(this.pageMode){const n=le(this.$el),a=n.tagName==="HTML"?0:n[e.scroll],s=n.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[e.start]-s[e.start];t=n,l=e.scroll,r=i+a+p}else t=this.$el,l=e.scroll,r=i;t[l]=r},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((i,e)=>i.nr.index-e.nr.index)}}};const Ye={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Xe={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Je(i,e,t,l,r,n){const a=oe("ResizeObserver"),s=be("observe-visibility");return M((c(),d("div",{class:G(["vue-recycle-scroller",{ready:r.ready,"page-mode":t.pageMode,[`direction-${i.direction}`]:!0}]),onScrollPassive:e[0]||(e[0]=(...o)=>n.handleScroll&&n.handleScroll(...o))},[i.$slots.before?(c(),d("div",Ye,[P(i.$slots,"before")],512)):v("v-if",!0),(c(),D(ee(t.listTag),{ref:"wrapper",style:_e({[i.direction==="vertical"?"minHeight":"minWidth"]:r.totalSize+"px"}),class:G(["vue-recycle-scroller__item-wrapper",t.listClass])},{default:F(()=>[(c(!0),d(j,null,ae(r.pool,o=>(c(),D(ee(t.itemTag),we({key:o.nr.id,style:r.ready?{transform:`translate${i.direction==="vertical"?"Y":"X"}(${o.position}px) translate${i.direction==="vertical"?"X":"Y"}(${o.offset}px)`,width:t.gridItems?`${i.direction==="vertical"&&t.itemSecondarySize||t.itemSize}px`:void 0,height:t.gridItems?`${i.direction==="horizontal"&&t.itemSecondarySize||t.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[t.itemClass,{hover:!t.skipHover&&r.hoverKey===o.nr.key}]]},ke(t.skipHover?{}:{mouseenter:()=>{r.hoverKey=o.nr.key},mouseleave:()=>{r.hoverKey=null}})),{default:F(()=>[P(i.$slots,"default",{item:o.item,index:o.nr.index,active:o.nr.used})]),_:2},1040,["style","class"]))),128)),P(i.$slots,"empty")]),_:3},8,["style","class"])),i.$slots.after?(c(),d("div",Xe,[P(i.$slots,"after")],512)):v("v-if",!0),Ie(a,{onNotify:n.handleResize},null,8,["onNotify"])],34)),[[s,n.handleVisibilityChange]])}J.render=Je;J.__file="src/components/RecycleScroller.vue";const Qe=(i,e)=>{const t=i.__vccOpts||i;for(const[l,r]of e)t[l]=r;return t};var g={},se={};const Ze={props:{app:null,version:"big"},components:{RecycleScroller:J},data(){return{tixHost:["tourindex.ru","turpoisk.ru","rutraveler.ru","rutraveller.ru","tophotels.ru","travelbooking.ru","tp.mzls.ru","tb.mzls.ru","th.mzls.ru","new.toursales.ru","new.tourindex.ru","new.turpoisk.ru","new.turpoisk.ru","tourindex.mzls.ru","tourindex-stb.mzls.ru","travelbooking.mzls.ru","rutraveller.mzls.ru","upth-index.mzls.ru","upth-tours.mzls.ru"].indexOf(location.hostname)>-1?"https://toursales.ru":"",search:"",rendering:0,opened:!1,isLoadCalled:!1,loading:!0,bigAirports:!1,checkedAll:!1,activeIds:[],items:[],allocTypeParents:{341:640,61:640,648:640,201:640,3:640,1:640,161:640,2:640,25:640,581:640,121:640,281:640,442:640,443:636,282:636,65:636,202:636,627:641,647:641,301:641,62:641,381:637,24:637,21:637,63:638,182:638,141:638,221:638,656:639,41:639,626:642,649:642,650:642}}},watch:{opened(i,e){this.search=""},rendering(i,e){},loading(i,e){},itemsToRender(i,e){},"app.req.al"(i,e){(this.app.req.al===null||this.app.req.al===!1)&&(this.app.req.al=[])},countryId(i,e){this.isLoadCalled=!1,this.load()},catIds(i,e){this.filterItems()},rate(i,e){this.filterItems()},"app.req.ac"(i,e){this.filterItems()},"app.req.alr"(i,e){this.filterItems()},"app.req.alts"(i,e){this.filterItems()},"app.req.geo"(i,e){this.filterItems()},"app.req.alpt"(i,e){this.filterItems()},"app.req.alpv"(i,e){this.filterItems()}},created:function(){let i=this;i.app.req.al||(i.app.req.al=[]),i.app.req.ac||(i.app.req.ac=[]),this.load()},computed:{isEmpty:function(){return!this.app.req.al||this.app.req.al.length<1},rate:function(){return this.app.req.alr},catIds:function(){return this.app.req.ac},countryId:function(){return this.app.req.co},itemsToRender(){return this.items}},methods:{async load(){let i=this;i.isLoadCalled||(i.isLoadCalled=!0,axios.post(i.tixHost+"/ui-filter-lz/allocationList",{country:i.countryId},{headers:{"Content-Type":"multipart/form-data"}}).then(function(e){let t=null;g={},se=[];for(let l in e.data.al){if(!e.data.al.hasOwnProperty(l))continue;let r=e.data.al[l];switch(t={},t.id=r[0],t.name=r[1],t.cat=r[2],t.rate=r[3],t.geo=r[4],t.type=r[5],t.placeType=r[6],t.placeValue=r[7],t.nameIndex=t.name.toLocaleLowerCase(),t.resortName=e.data.re[t.geo[0]],t.country=e.data.co.id,t.countryName=e.data.co.name,t.catName=e.data.cat[t.cat],t.name=t.name.replace(/\(ex.([\S]{1,12}).*\)/g,"(ex.$1 ...)").replace(t.catName,"").trim(),!0){case t.rate===0:t.rateColor="grey ";break;case t.rate>=4:t.rateColor="green ";break;case(t.rate>=3&&t.rate<4):t.rateColor="orange ";break;case t.rate<3:t.rateColor="red ";break}g[t.id]=t,se.push(parseInt(t.id))}i.loading=!1,i.filterItems(),setTimeout(function(){i.rendering++},1500)}).catch(function(e){}).finally(function(){}))},filterItems(){let i=this,e=i.app,t=i.search.trim().toLocaleLowerCase(),l=ReverseLocale.convertEnToRu(t),r=ReverseLocale.convertRuToEn(t),n=t.length>0,a=e.req.ac&&e.req.ac.length>0,s=e.req.alr>0,o=e.req.geo&&e.req.geo.length>0,p=e.req.alpv&&e.req.alpv.length>0,b=e.req.alts&&e.req.alts.length>0;i.items=[],i.activeIds=[];for(let m in g)if(g.hasOwnProperty(m)&&!(a&&e.req.ac.indexOf(g[m].cat)<0)&&!(s&&e.req.alr>g[m].rate)&&!(o&&e.req.geo.intersect(g[m].geo).length<1)&&!(p&&e.req.alpv.indexOf(g[m].placeValue)===-1)&&!(b&&e.req.alts.indexOf(g[m].type)===-1&&e.req.alts.indexOf(i.allocTypeParents[g[m].type])===-1)){if(n){if(t.length<4){if(g[m].nameIndex.indexOf(t)!==0&&g[m].nameIndex.indexOf(l)!==0&&g[m].nameIndex.indexOf(r)!==0)continue}else if(g[m].nameIndex.indexOf(t)<0&&g[m].nameIndex.indexOf(l)<0&&g[m].nameIndex.indexOf(r)<0)continue}i.activeIds.push(g[m].id),i.items.push(g[m])}i.items.sort(function(m,x){return m.is_big&&!x.is_big?-1:!m.is_big&&x.is_big?1:m.name.localeCompare(x.name)}),i.rendering++},searchItemsByText:invDebounce(function(){this.filterItems()},150),checkAll(){let i=this;i.checkedAll?i.app.req.al=i.activeIds.map(Number):i.app.req.al=[],i.rendering++},filteredRegion(){return window.app.forms.region?window.app.forms.region.getSelectedGeoId():null},filteredRegionName(){return window.app.forms.region.getSelectedGeoName()},getCountryNameGen(){return window.app.forms.country.getCountryNameGen()},getApplocPlaceTypeName(){return window.app.forms.placement.getAllocPlaceTypeName()},getAllocTypeName(i){return window.app.forms.allocType.$.data.dictFlat[i]},getAllocLink(i){var e="";switch(!0){case location.hostname.indexOf("tophotels")>-1:e="https://"+location.hostname+"/hotel/al"+i;break;case location.hostname.indexOf("rutraveller")>-1:e="https://toursales.ru/hotel/"+i;break;case location.hostname.indexOf("turpoisk")>-1:e="https://turpoisk.ru/al/"+i;break;case location.hostname.indexOf("tourindex")>-1:e="https://tourindex.ru/al/"+i;break;default:case location.hostname.indexOf("toursales")>-1:e="https://"+location.hostname+"/hotel/"+i;break}return e},getLabel(){return this.isEmpty?this.version!=="small-ti"?"ВСЕ ВАРИАНТЫ":"Поиск по названию отеля":this.app.req.al.length==1&&g[this.app.req.al[0]]?g[this.app.req.al[0]].name+" "+g[this.app.req.al[0]].catName:(this.version!=="small-ti"?"ВЫБРАНО ":"ОТЕЛИ - ")+this.app.req.al.length},closeUi(){this.checkedAll=!1,this.opened=!1,this.search="",this.filterItems()}}},$e={class:"lsfw-form-control-suggest-wrap"},et={class:"bth__inp-block"},tt=["data-ii"],it={class:"lsfw-form-control-suggest-acts"},rt=f("i",{class:"lsfw-form-control-suggest__load",style:{display:"none"}},null,-1),lt={key:0,class:"lsfw-form-control-wrap lsfw-form-control-hotels"},st={class:"lsfw-form-control"},nt={class:"lsfw-form-control__head lsfw-form-control__head-flex"},ot={class:"lsfw-form-control__ttl"},at={key:0,class:"lsfw-form-control__tags"},ct=["onClick"],ft={class:"lsfw-form-control__filter"},dt={class:"lsfw-form-control__search"},ut=f("div",{class:"lsfw-form-control__filter-row no-scrollbar hidden"},[f("div",{class:"lsfw-cbx d-ib"},[f("input",{type:"checkbox",id:"hotels-fav"}),f("label",{class:"fz14 bold",for:"hotels-fav"}," избранные отели")])],-1),ht={key:1,class:"lsfw-form-control__body p0"},mt=f("div",{class:"lsfw-form-control__fill-line bg-white mb15"},[f("div",{class:"lsfw-form-control__ul-li-loader"}," Идёт загрузка отелей ... ")],-1),pt=[mt],vt={key:0,class:"lsfw-form-control__ul pb10 pt10 bold"},gt={class:"lsfw-form-control__ul-li"},yt={class:"lsfw-cbx lsfw-cbx--green-check"},bt={key:0,for:"hotels-all"},_t={key:1,for:"hotels-all"},wt={key:1,class:"lsfw-form-control__fill-line"},kt={key:2,class:"lsfw-form-control__fill-line"},It={key:3,class:"lsfw-form-control__fill-line grey"},qt={class:"lsfw-cbx lsfw-cbx--green-check"},St=["id","value"],xt=["for"],zt={class:"lsfw-form-control__cut"},Ot=["href"],Ct=f("i",{class:"fas fa-heart hidden"},null,-1),Tt={class:"lsfw-form-control-hotels__loc"},Rt=["href"],Nt={class:"lsfw-form-control__footer"};function At(i,e,t,l,r,n){const a=oe("RecycleScroller");return c(),d(j,null,[f("div",$e,[f("i",{onClick:e[0]||(e[0]=s=>r.opened=!0),class:G(["tour-selection-field__icon40 fas fa-search",{active:!n.isEmpty}])},null,2),f("div",et,[f("span",{onClick:e[1]||(e[1]=s=>r.opened=!0),id:"lsfw-hsugg",class:"bth__inp uppercase"},I(n.getLabel()),1),f("label",{"data-ii":r.rendering,for:"lsfw-hsugg",class:"bth__inp-lbl"},"Поиск по названию отеля",8,tt)]),f("div",it,[r.opened?(c(),d("i",{key:0,onClick:e[2]||(e[2]=s=>n.closeUi()),class:"lsfw-form-control-suggest__close"})):v("",!0),rt])]),r.opened?(c(),d("section",lt,[f("div",st,[f("div",nt,[f("div",ot," СПИСОК ОТЕЛЕЙ В "+I(n.getCountryNameGen())+" - ОГРАНИЧЕН ФИЛЬТРАМИ ",1),f("i",{onClick:e[3]||(e[3]=s=>n.closeUi()),class:"lsfw-form-control__close-square fas fa-times-circle"})]),t.app.req.ac.length>0||t.app.req.alr>0||t.app.req.alpt>0||t.app.req.geo.length>0||t.app.req.alts.length>0?(c(),d("div",at,[n.filteredRegion()>0?(c(),d("div",{key:0,onClick:e[4]||(e[4]=s=>t.app.req.geo=t.app.req.geo.diffNotIn([n.filteredRegion()])),class:"lsfw-form-control__tag"},I(n.filteredRegionName()),1)):v("",!0),t.app.getReqGeoCities.length===1?(c(),d("div",{key:1,onClick:e[5]||(e[5]=s=>t.app.req.geo=t.app.req.geo.diffNotIn(t.app.getReqGeoCities)),class:"lsfw-form-control__tag"},I(t.app.dictGeo.city[t.app.getReqGeoCities[0]].name),1)):v("",!0),t.app.getReqGeoCities.length>1?(c(),d("div",{key:2,onClick:e[6]||(e[6]=s=>t.app.req.geo=t.app.req.geo.diffNotIn(t.app.getReqGeoCities)),class:"lsfw-form-control__tag"},"города - "+I(t.app.getReqGeoCities.length),1)):v("",!0),t.app.getReqGeoDistrict.length===1?(c(),d("div",{key:3,onClick:e[7]||(e[7]=s=>t.app.req.geo=t.app.req.geo.diffNotIn(t.app.getReqGeoDistrict)),class:"lsfw-form-control__tag"},I(t.app.dictGeo.district[t.app.getReqGeoDistrict[0]].name),1)):v("",!0),t.app.getReqGeoDistrict.length>1?(c(),d("div",{key:4,onClick:e[8]||(e[8]=s=>t.app.req.geo=t.app.req.geo.diffNotIn(t.app.getReqGeoDistrict)),class:"lsfw-form-control__tag"},"районы - "+I(t.app.getReqGeoDistrict.length),1)):v("",!0),t.app.req.ac.indexOf(10)>-1?(c(),d("div",{key:5,onClick:e[9]||(e[9]=s=>t.app.req.ac=t.app.req.ac.diffNotIn([10])),class:"lsfw-form-control__tag"}," 5* ")):v("",!0),t.app.req.ac.indexOf(9)>-1?(c(),d("div",{key:6,onClick:e[10]||(e[10]=s=>t.app.req.ac=t.app.req.ac.diffNotIn([9])),class:"lsfw-form-control__tag"}," 4* ")):v("",!0),t.app.req.ac.indexOf(8)>-1?(c(),d("div",{key:7,onClick:e[11]||(e[11]=s=>t.app.req.ac=t.app.req.ac.diffNotIn([8])),class:"lsfw-form-control__tag"}," 3* ")):v("",!0),t.app.req.ac.indexOf(7)>-1?(c(),d("div",{key:8,onClick:e[12]||(e[12]=s=>t.app.req.ac=t.app.req.ac.diffNotIn([7])),class:"lsfw-form-control__tag"}," 2* ")):v("",!0),t.app.req.ac.indexOf(6)>-1?(c(),d("div",{key:9,onClick:e[13]||(e[13]=s=>t.app.req.ac=t.app.req.ac.diffNotIn([6])),class:"lsfw-form-control__tag"}," 1* ")):v("",!0),t.app.req.ac.indexOf(19)>-1?(c(),d("div",{key:10,onClick:e[14]||(e[14]=s=>t.app.req.ac=t.app.req.ac.diffNotIn([19])),class:"lsfw-form-control__tag"}," HV-2 ")):v("",!0),t.app.req.ac.indexOf(11)>-1?(c(),d("div",{key:11,onClick:e[15]||(e[15]=s=>t.app.req.ac=t.app.req.ac.diffNotIn([11])),class:"lsfw-form-control__tag"}," HV-1 ")):v("",!0),t.app.req.ac.indexOf(66)>-1?(c(),d("div",{key:12,onClick:e[16]||(e[16]=s=>t.app.req.ac=t.app.req.ac.diffNotIn([66])),class:"lsfw-form-control__tag"}," Без категории ")):v("",!0),t.app.req.alr>0?(c(),d("div",{key:13,onClick:e[17]||(e[17]=s=>{t.app.req.alr=0}),class:"lsfw-form-control__tag"}," Рейтинг > "+I(parseFloat(t.app.req.alr).toFixed(2)),1)):v("",!0),t.app.req.alts?(c(!0),d(j,{key:14},ae(t.app.req.alts,s=>(c(),d("div",{onClick:o=>{t.app.req.alts=t.app.req.alts.diffNotIn(s)},class:"lsfw-form-control__tag"},I(n.getAllocTypeName(s)),9,ct))),256)):v("",!0),t.app.req.alpt>0?(c(),d("div",{key:15,onClick:e[18]||(e[18]=s=>{t.app.req.alpt=null,t.app.req.alpv=[]}),class:"lsfw-form-control__tag"},I(n.getApplocPlaceTypeName()),1)):v("",!0)])):v("",!0),f("div",ft,[f("div",dt,[f("i",{onClick:e[19]||(e[19]=s=>r.search=""),class:"pointer lsfw-form-control__search-cross"}),M(f("input",{"onUpdate:modelValue":e[20]||(e[20]=s=>r.search=s),onKeyup:e[21]||(e[21]=s=>n.searchItemsByText()),type:"text",placeholder:"Поиск по названию отеля",class:"red uppercase"},null,544),[[qe,r.search]])]),ut]),r.loading?(c(),d("div",ht,pt)):v("",!0),r.loading?v("",!0):(c(),D(a,{key:2,class:"lsfw-form-control__body lsfw-form-control__body--scroll p0",items:n.itemsToRender,"item-size":32,listTag:"ul",itemTag:"li",listClass:" lsfw-form-control__ul pb10 pt10 bold",itemClass:" lsfw-form-control__ul-li ","key-field":"id",style:{"max-height":"500px !important","overflow-y":"scroll"}},{before:F(()=>[r.items.length>0?(c(),d("ul",vt,[f("li",gt,[f("div",yt,[M(f("input",{type:"checkbox",id:"hotels-all","onUpdate:modelValue":e[22]||(e[22]=s=>r.checkedAll=s),onChange:e[23]||(e[23]=s=>n.checkAll())},null,544),[[te,r.checkedAll]]),r.search&&r.search.length>0?(c(),d("label",bt,"выбрать найденные отели")):(c(),d("label",_t,"выбрать все отели"))])])])):v("",!0),r.items.length>0&&(!r.search||!r.search.length)?(c(),d("div",wt,"все отели "+I(n.getCountryNameGen()),1)):r.items.length>0&&r.search&&r.search.length?(c(),d("div",kt," результаты поиска ")):r.items.length==0?(c(),d("div",It," По вашему запросу ничего не найдено ")):v("",!0)]),default:F(({item:s})=>[f("div",qt,[M(f("input",{type:"checkbox",id:"lsfwgeo-ct-"+s.id,value:s.id,"onUpdate:modelValue":e[24]||(e[24]=o=>t.app.req.al=o)},null,8,St),[[te,t.app.req.al]]),f("label",{for:"lsfwgeo-ct-"+s.id},[f("span",zt,I(s.name),1),f("span",null,I(s.catName),1)],8,xt)]),f("a",{href:n.getAllocLink(s.id),target:"_blank",class:G(["lsfw-form-control__rating",s.rateColor])},I(s.rate<1?"-":parseFloat(s.rate).toFixed(2)),11,Ot),Ct,f("div",Tt,[f("span",null,I(s.resortName),1)]),f("a",{href:n.getAllocLink(s.id),target:"_blank",class:"lsfw-form-control__bb fas fa-external-link-alt"},null,8,Rt)]),_:1},8,["items"])),f("div",Nt,[f("button",{onClick:e[25]||(e[25]=s=>n.closeUi()),class:"lsfw-form-control__btn"}," сохранить выбор отелей "),t.app.req.al&&t.app.req.al.length>0?(c(),d("button",{key:0,onClick:e[26]||(e[26]=s=>{t.app.req.al=[],r.checkedAll=!1}),class:"lsfw-form-control__btn lsfw-form-control__btn--grey"}," Сбросить ")):v("",!0)])])])):v("",!0)],64)}const Vt=Qe(Ze,[["render",At]]);window.lsfw||(window.lsfw={});window.form3Allocation=Vt;
