import{openBlock as c,createElementBlock as d,Fragment as k,renderList as I,normalizeClass as g,createElementVNode as s,toDisplayString as l,withModifiers as H,createTextVNode as f,createBlock as U,Transition as V,withCtx as E,renderSlot as K,ref as J,reactive as M,watch as Y,createVNode as C,withDirectives as A,vShow as G,resolveComponent as O,createCommentVNode as _,createApp as b,createStaticVNode as R}from "/js/vue.esm-browser.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const h of i)if(h.type==="childList")for(const e of h.addedNodes)e.tagName==="LINK"&&e.rel==="modulepreload"&&n(e)}).observe(document,{childList:!0,subtree:!0});function a(i){const h={};return i.integrity&&(h.integrity=i.integrity),i.referrerPolicy&&(h.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?h.credentials="include":i.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function n(i){if(i.ep)return;i.ep=!0;const h=a(i);fetch(i.href,h)}})();var j=["id","cityId","countryId","operatorId","roomSizeId","departure","arrival","duration","ticket","price","currency","priceIsApprox","priceOrig","currencyOrig","prevPriceOrig","priceDiffPercent","adults","children","ch1From","ch1Till","ch2From","ch2Till","ch3From","ch3Till","allspo","resortId","resortPlaceId","allocationId","allocCatId","mealId","roomTypeId","roomViewId","isStop","isStopAllocation","isStopFlight","operatorTourId","directFlight","priceSource","isComboData","isFortuna","extraInformId","onlineSeatsState","onlineSeatStateLastUpdated","offlineSeatsState","flags","offerFlags","thRoomId","assoc","extraInfo","tourSearchKey","currencyId","currencyOrigId","geo","isRegularFlight","isDirectFlight","isIndirectFlight","tickets","onlRoomType"],q={s:"Доплата за аэропортовый сбор",p:"Доплата за багаж",l:"Доплата за посадочный талон",z:"Доплата за ранний вылет",u:"Доплата за экскурсию",g:"Доплата за топливный сбор",x:"Доплата за топливынй сбор в прямом направлении",w:"Доплата за топливный сбор в обратном направлении",ac:"Доплата за праздничный ужин",k:"Доплата за страховку",t:"Доплата за страховку от невыезда",aa:"Доплата за поздний вылет",y:"Доплата за облет",h:"Доплата за курортный сбор",r:"Доплата за сервисный сбор",v:"Допдата за трансфер",i:"Доплата за визу",j:"Доплата за визовый риск"};const Z={props:{app:null},watch:{req(){}},data(){return{req:0,caches:{tourId:{},toursByDepart:{},toursByOperator:{},toursByAlloc:{},existsIds:{},tours:[],operators:[]}}},computed:{tours(){return this.caches.tours},minByOperator(){let t=this,o=t.caches.minByOperator?Object.values(t.caches.minByOperator):[];return(window.libSortFunction?window.libSortFunction:lsfw.lib.sort)(o,"price","number","asc")},minByDepart(){let t=this,o=t.caches.minByDepart?Object.values(t.caches.minByDepart):[];return(window.libSortFunction?window.libSortFunction:lsfw.lib.sort)(o,"price","number","asc")},minByAlloc(){let t=this,o=t.caches.minByAlloc?Object.values(t.caches.minByAlloc):[];return(window.libSortFunction?window.libSortFunction:lsfw.lib.sort)(o,"price","number","asc")},toursByDepart(){return this.caches.toursByDepart},toursByOperator(){let o=this.caches.toursByOperator;for(let a in o)o.hasOwnProperty(a)&&(window.libSortFunction?window.libSortFunction:lsfw.lib.sort)(o[a],"price","number","asc");return o},toursByAlloc(){let o=this.caches.toursByAlloc;for(let a in o)o.hasOwnProperty(a)&&(window.libSortFunction?window.libSortFunction:lsfw.lib.sort)(o[a],"price","number","asc");return o},countByDepart(){return Object.keys(this.caches.toursByDepart).length},countByOperator(){return Object.keys(this.caches.toursByOperator).length},countByAlloc(){return Object.keys(this.caches.toursByAlloc).length}},methods:{getCacheAllocIds(){return Object.keys(this.caches.toursByAlloc)},fixCurrency(t){switch(t){case 1:case"1":case"USD":return 1;case 2:case"2":case"EUR":return 2;case 3:case"3":case"RUB":return 3;case 4:case"4":case"UAH":return 4;case 5:case"5":case"BYR":case"BYN":return 5;case 6:case"6":case"KZT":return 6;case 7:case"7":case"TRY":return 7}},clear(){let t=this;t.caches={tourId:{},toursByDepart:{},toursByOperator:{},toursByAlloc:{},minByDepart:{},minByOperator:{},minByAlloc:{},tours:[],existsIds:{}},t.req++},add(t,o,a){let n=this,i=n.caches;if(i.existsIds[t[0]]||!o.allocation[t[27]])return;i.existsIds[t[0]]=!0;let h=null,e={};e.logKey=a,e.tourSearchKey=a;for(let u in j)j.hasOwnProperty(u)&&(h=j[u],e[h]=t[u]);e.currency=n.fixCurrency(e.currency),e.currencyId=e.currency,e.currencyOrig=n.fixCurrency(e.currencyOrig),e.currencyOrigId=e.currencyOrig,e.operatorName=o.operator[e.operatorId],e.allocationName=o.allocation[e.allocationId].name,e.allocTypeName=o.allocation[e.allocationId].type_name,e.allocPlaceTypeName=o.allocation[e.allocationId].place_type_name,e.allocPlaceName=o.allocation[e.allocationId].place_name,e.roomCount=o.allocation[e.allocationId].roomCount,e.villaCount=o.allocation[e.allocationId].villaCount,e.photoCount=o.allocation[e.allocationId].photoCount,e.recommendCount=o.allocation[e.allocationId].recommendCount,e.recommendPercent=o.allocation[e.allocationId].recommendPercent,e.touristPast=o.allocation[e.allocationId].touristPast,e.touristNow=o.allocation[e.allocationId].touristNow,e.touristFuture=o.allocation[e.allocationId].touristFuture,e.stars=o.allocation[e.allocationId].stars,e.thLikeCount=o.allocation[e.allocationId].thLikeCount,e.thRate=parseFloat(o.allocation[e.allocationId].rate).toFixed(2),e.categoryName=o.allocation[e.allocationId].allocat_name,e.allocCatName=o.allocation[e.allocationId].allocat_name,e.isCatCertified=o.allocation[e.allocationId].isCatCertified,e.thGroupRecommend=o.allocation[e.allocationId].thGroupRecommend,e.geoJson=o.allocation[e.allocationId].geoJson,e.topService=o.allocation[e.allocationId].topService,e.ratehotel=parseFloat(o.allocation[e.allocationId].ratehotel).toFixed(2),e.ratemeal=parseFloat(o.allocation[e.allocationId].ratemeal).toFixed(2),e.rateservice=parseFloat(o.allocation[e.allocationId].rateservice).toFixed(2),e.cityName=o.city,e.countryName=o.country,e.resortName=o.allocation[e.allocationId].resort_name,e.latitude=o.allocation[e.allocationId].lat,e.longitude=o.allocation[e.allocationId].lng,e.geoCityOrRegion=null,e.geoJson=JSON.parse(e.geoJson),e.buildingName="",o.building[e.building]&&(e.buildingName=o.building[e.building].name);for(let u in e.geoJson)if(e.geoJson.hasOwnProperty(u)){if(e.geoJson[u].geo_type==20){e.geoCityOrRegion=e.geoJson[u];break}e.geoCityOrRegion=e.geoJson[u]}switch(e.latitude=e.latitude>0?parseFloat(e.latitude):0,e.longitude=e.longitude>0?parseFloat(e.longitude):0,e.resortPlaceName="",e.lineNumber=0,!0){case o.allocation[e.allocationId].place_name.indexOf("1-")===0:e.lineNumber=1;break;case o.allocation[e.allocationId].place_name.indexOf("2-")===0:case o.allocation[e.allocationId].place_name.indexOf("дорогу")>=-1:e.lineNumber=2;break;case o.allocation[e.allocationId].place_name.indexOf("3-")===0:e.lineNumber=3;break}if(o.roomView[e.roomViewId]?(e.roomViewName=o.roomView[e.roomViewId].name,e.roomViewDesc=o.roomView[e.roomViewId].description,e.roomViewName===""&&(e.roomViewName="ROH",e.roomViewDesc="Без особого вида")):(e.roomViewName="ROH",e.roomViewDesc="Без особого вида"),o.roomType[e.roomTypeId]?e.roomTypeName=o.roomType[e.roomTypeId].name:e.roomTypeName="Standard",e.roomSizeName=o.roomSize[e.roomSizeId].name,e.mealName=o.meal[e.mealId].name,e.mealNameFull=o.meal[e.mealId].name_rus,o.photo[e.allocationId]?e.thPhoto=o.photo[e.allocationId]:e.thPhoto="/i/hotel_menu_nophoto241x241.jpg",e.votes=o.rates[e.allocationId],e.geoJson&&typeof e.geoJson=="string"&&(e.geoJson=JSON.parse(e.geoJson)),e.topServiceJson&&typeof e.topServiceJson=="string"&&(e.topServiceJson=JSON.parse(e.topServiceJson)),e.extraPaySum=0,e.extraPays=[],e.extraInfo)for(let u in q)e.extraInfo[u]&&(e.extraPaySum+=parseInt(e.extraInfo[u][e.currency]),e.extraPays.push({name:q[u],val:parseInt(e.extraInfo[u][e.currency])}));i.tours.push(e),i.toursByDepart[e.departure]||(i.toursByDepart[e.departure]={}),i.toursByDepart[e.departure][e.allocationId]||(i.toursByDepart[e.departure][e.allocationId]={info:e,nights:{}}),i.toursByDepart[e.departure][e.allocationId].nights[e.duration]||(i.toursByDepart[e.departure][e.allocationId].nights[e.duration]=e),i.toursByDepart[e.departure][e.allocationId].nights[e.duration].price>e.price&&(i.toursByDepart[e.departure][e.allocationId].nights[e.duration]=e),i.toursByOperator[e.operatorId]||(i.toursByOperator[e.operatorId]=[]),i.toursByAlloc[e.allocationId]||(i.toursByAlloc[e.allocationId]=[]),(!i.minByDepart[e.departure]||i.minByDepart[e.departure].price>e.price)&&(i.minByDepart[e.departure]=e),(!i.minByOperator[e.operatorId]||i.minByOperator[e.operatorId].price>e.price)&&(i.minByOperator[e.operatorId]=e),(!i.minByAlloc[e.allocationId]||i.minByAlloc[e.allocationId].price>e.price)&&(i.minByAlloc[e.allocationId]=e),i.toursByOperator[e.operatorId].push(e),i.toursByAlloc[e.allocationId].push(e)}}};var P=null,B=null;const X={props:{app:null,caches:null},watch:{"status.dataCount"(){let t=this,o=t.app.getFinalRequest(),a=t.startTime-new Date().getTime()/1e3;t.status&&t.status.dataCount>0&&(t.status.inProgress?((!o.al||o.al.length!==1)&&t.refreshDebounced({limit:1e3,offset:0,groupBy:"allocation"}),t.refresh({limit:a<5?500:100,offset:0,groupBy:"none"})):((!o.al||o.al.length!==1)&&(t.refresh({limit:500,offset:0,groupBy:"allocation"}),t.refresh({limit:500,offset:500,groupBy:"allocation"}),t.refresh({limit:500,offset:1e3,groupBy:"allocation"})),t.refresh({limit:500,offset:0,groupBy:"none"}),t.refresh({limit:500,offset:500,groupBy:"none"}),t.refresh({limit:500,offset:1e3,groupBy:"none"})))},"status.inProgress"(){let t=this,o=t.app.getFinalRequest();t.status&&t.status.dataCount>0&&((!o.al||o.al.length!==1)&&(t.refresh({limit:500,offset:0,groupBy:"allocation"}),t.refresh({limit:500,offset:500,groupBy:"allocation"}),t.refresh({limit:500,offset:1e3,groupBy:"allocation"})),t.refresh({limit:500,offset:0,groupBy:"none"}),t.refresh({limit:500,offset:500,groupBy:"none"}),t.refresh({limit:500,offset:1e3,groupBy:"none"}))}},data(){return{tixHost:this.app.tixHost,dict:null,logKey:null,reqKey:null,status:null,portion:0,startTime:new Date().getTime()/1e3}},methods:{searchStatus(){let t=this;return new Promise(function(o,a){P=jQuery.ajax({async:!0,url:t.tixHost+"/search/status",data:{key:t.reqKey,grp:null,userId:window.__tkv_uid_},type:"GET"}).done(function(n){let i=n.indexOf("{")===0?JSON.parse(n):null;if(!i||i.error){setTimeout(function(){t.searchStatus()},1e3);return}t.status=i.status,o(!0)}).fail(function(){o(!1)})}).then(function(){B&&clearTimeout(B),t.status&&t.status.inProgress&&(B=setTimeout(t.searchStatus,3e3))},function(){})},start(){let t=this;t.caches.clear(),t.startTime=new Date().getTime()/1e3;let o=t.app.getFinalRequest();return o.from=location.hostname,o.userId=window.__tkv_uid_,o.groupBy="allocation",o.rs=1,o.onlineRoomType=0,new Promise(function(a,n){P=jQuery.ajax({async:!0,url:t.tixHost+"/search/tours-onl/v4",data:o,type:"POST"}).done(function(i){let h=i.indexOf("{")===0?JSON.parse(i):null;if(h){t.logKey=h.logKey,t.reqKey=h.reqKey,t.dict=h.dict,t.status=h.status,t.searchStatus();for(let e in h.tours)h.tours.hasOwnProperty(e)&&t.caches.add(h.tours[e],h.dict,h.logKey);t.caches.$.data.req++,a(!0)}}).fail(function(){n(!1)})})},refresh(t){let o=this,a=o.app.getFinalRequest();return a.from=location.hostname,a.userId=window.__tkv_uid_,a.rs=1,a.onlineRoomType=0,a.key=o.reqKey,t&&(a.offset=t.offset,a.limit=t.limit,a.groupBy=t.groupBy),a.hasDictAl=o.caches.getCacheAllocIds(),a.hasDictAl=a.hasDictAl?a.hasDictAl.join("_"):"0",new Promise(function(n,i){P=jQuery.ajax({async:!0,url:o.tixHost+"/search/cache/v4",data:a,type:"POST"}).done(function(h){let e=h.indexOf("{")===0?JSON.parse(h):null;if(e){o.dict||(o.dict={allocation:{},photo:{}});for(let u in e.dict.allocation)e.dict.allocation.hasOwnProperty(u)&&(o.dict.allocation[u]=e.dict.allocation[u]);o.dict.photo||(o.dict.photo={});for(let u in e.dict.photo)e.dict.photo.hasOwnProperty(u)&&(o.dict.photo[u]=e.dict.photo[u]);o.dict.building=e.dict.building,o.dict.city=e.dict.city,o.dict.country=e.dict.country,o.dict.meal=e.dict.meal,o.dict.operator=e.dict.operator,o.dict.rates=e.dict.rates,o.dict.roomSize=e.dict.roomSize,o.dict.roomType=e.dict.roomType,o.dict.roomView=e.dict.roomView,o.status=e.status;for(let u in e.tours)e.tours.hasOwnProperty(u)&&o.caches.add(e.tours[u],o.dict,e.logKey);o.caches.$.data.req++,o.portion++,n(!0)}}).fail(function(){i(!1)})})},refreshDebounced:invDebounce(function(t){this.refresh(t)},1500),loadMoreByReq(t){let o=this,a=o.app.getFinalRequest();return a.from=location.hostname,a.userId=window.__tkv_uid_,a.groupBy="none",a.rs=1,a.onlineRoomType=0,a.key=null,a.f="search",t&&(a.al=t.al,a.offset=t.offset,a.limit=t.limit,a.groupBy=t.groupBy),new Promise(function(n,i){P=jQuery.ajax({async:!0,url:o.tixHost+"/search/tours-db/v4",data:a,type:"POST"}).done(function(h){let e=h.indexOf("{")===0?JSON.parse(h):null;if(e){e.status.inProgress&&setTimeout(function(){o.loadMoreByReq(a)},1500),o.dict=e.dict;for(let u in e.tours)e.tours.hasOwnProperty(u)&&o.caches.add(e.tours[u],e.dict,e.logKey);o.caches.$.data.req++,n(!0)}}).fail(function(){i(!1)})})},stop(){P&&P.abort(),B&&clearTimeout(B)}}},T=(t,o)=>{const a=t.__vccOpts||t;for(const[n,i]of o)a[n]=i;return a},W={props:{app:null,items:null},watch:{"app.likeUp"(){}}},tt={class:"tours__left"},et=["onClick","data-id"],ot={class:"hint hint--top hint--right"},at=["href","data-plc","data-al","data-id"],st={key:0,class:"tours__price"},it={class:"fz16 pr5"},nt={key:1,class:"tours__price"},rt={class:"hint-parent"},lt={class:"fz16 pr5"},ct=s("span",{class:"hint hint--t35-right"},[f("Цена тура может значительно измениться при оформлении"),s("br"),f("из-за тарифов авиакомпании")],-1),dt={key:2,class:"tours__to"},ut=["src"],pt={class:"hint hint--top"},ht={key:3,class:"tours__to"},_t={class:"tours__date"},ft={class:"tours__ticket"},mt={class:"hint hint--top"},wt={class:"hint hint--top"},gt={class:"tours__nights"},yt={class:"tours__room"},bt={class:"hint hint--top"},vt={class:"tours__cut"},kt={class:"tours__view"},It={key:0},xt={key:1},Ct={class:"tours__eat"},Tt={class:"hint-parent"},Pt={class:"hint hint--t20-right"},Ot=s("div",{class:"tour__mobile"},null,-1),St=s("span",{class:"bth__btn bth__btn--blue-countr bth__btn--28"},"подробнее",-1);function Bt(t,o,a,n,i,h){return c(!0),d(k,null,I(a.items,e=>(c(),d("section",{class:g(["tours",{active:a.app.isTourFav(e.id)}])},[s("div",tt,[s("div",{onClick:u=>a.app.likeTourToggle(e.id),"data-id":e.id,class:g([{"active orange":a.app.isTourFav(e.id)},"fas fa-star tours__act hint-parent"])},[s("span",ot,l(a.app.isTourFav(e.id)?"Удалить из избранного":"В избранное"),1)],10,et)]),s("a",{target:"_blank",href:a.app.alTourLink(e.allocationId,e.id,e.logKey),"data-stat":"tour","data-plc":e.price,"data-al":e.allocationId,"data-id":e.id,class:"tours__right"},[e.flags&&!e.flags.isRegularFlight?(c(),d("b",st,[s("span",it,l(a.app.currency(e.currencyId)),1),s("span",null,l(a.app.nfmt(e.price)),1)])):(c(),d("b",nt,[s("span",rt,[s("span",lt,l(a.app.currency(e.currencyId)),1),s("span",null,l(a.app.nfmt(e.price)),1),s("i",{onClick:o[0]||(o[0]=H(()=>{},["prevent"])),class:"red fas fa-info-circle pl5 fz11 flr"}),ct])])),a.app.isOperatorDisabled?(c(),d("div",ht)):(c(),d("div",dt,[s("img",{src:"https://toursales.ru/i/operator/"+e.operatorId+".png",onerror:"this.src='/i/operator/unknown.png'",width:"15",height:"15"},null,8,ut),s("span",pt,l(e.operatorName),1)])),s("div",_t,l(new Date(e.departure).format("d.m.y weekDayShort")),1),s("div",ft,[s("div",{class:g(["tours__i fas fa-plane","tours__i--"+a.app.ticketCLR(e.tickets.flightThereEco)])},[s("span",mt,"Эконом туда - "+l(a.app.ticketText(e.tickets.flightThereEco)),1)],2),s("div",{class:g(["tours__i fas fa-plane left","tours__i--"+a.app.ticketCLR(e.tickets.flightBackEco)])},[s("span",wt,"Эконом обратно - "+l(a.app.ticketText(e.tickets.flightBackEco)),1)],2)]),s("div",gt,l(e.duration)+" нч",1),s("div",yt,[s("div",{class:g(["tours__i fas fa-home","tours__i--"+a.app.ticketCLR(e.tickets.allocation)])},[s("span",bt,l(a.app.alAvailText(e.tickets.allocation)),1)],2),s("span",vt,l(e.roomTypeName),1)]),s("div",kt,[!e.roomViewName||e.roomViewName.trim().length<1?(c(),d("div",It," ROH ")):(c(),d("div",xt,l(e.roomViewName),1))]),s("div",Ct,[s("div",Tt,[f(l(e.mealName)+" ",1),s("span",Pt,l(e.mealDescription),1)])]),Ot,St],8,at)],2))),256)}const Nt=T(W,[["render",Bt]]),Dt={};function jt(t,o){return c(),U(V,{name:"fade"},{default:E(()=>[K(t.$slots,"default")]),_:3})}const z=T(Dt,[["render",jt]]),Ft={class:"bth__img bth__imgs--loader"},Lt=["src"],Et={__name:"FadeImg",props:{imgUrl:String},setup(t){const o=t,a=J(),n=M({showing:!1}),i=function(){n.showing=!0},h=function(){o.imgUrl="/images/no-signal-blur.jpg"};return Y(()=>o.imgUrl,()=>{a.value=o.imgUrl,n.showing=!1},{immediate:!0}),(e,u)=>(c(),d(k,null,[C(z,null,{default:E(()=>[A(s("div",Ft,null,512),[[G,!n.showing]])]),_:1}),C(z,null,{default:E(()=>[A(s("img",{class:"bth__img",src:a.value,onLoad:u[0]||(u[0]=r=>i()),onError:u[1]||(u[1]=r=>h())},null,40,Lt),[[G,n.showing]])]),_:1})],64))}},At={components:{UiTourAllocMini:Nt,FadeImg:Et},props:{app:null,items:null},watch:{"app.openedAllocations"(){},"app.likeUp"(){}}},Gt={class:"hotel"},Qt={class:"hotel__info"},qt={class:"hotel__img-wrap"},zt=["onTouchmove"],Rt=["onClick"],$t=["onClick"],Ht=["onClick"],Ut={class:"hotel__img-icons"},Vt=s("a",{href:"#",class:"d-ib hotel__img-icon hotel__img-icon--map hidden"},null,-1),Kt=["href","data-al"],Jt={class:"hotel__img-icon hotel__img-icon--img"},Mt={class:"hotel__actions"},Yt=["data-al"],Zt=s("span",{class:"hint hint--top"},"Добавить отель в любимое",-1),Xt={class:"hotel__menu"},Wt=["data-al","data-al-name","data-al-cat"],te=s("span",{class:"hint hint--right hint--top"},"Скринап со всеми действиями",-1),ee=[te],oe=["data-al"],ae=s("span",{class:"hint hint--right hint--top"},"Скринап меню отеля",-1),se=[ae],ie=["data-lat","data-lng","data-al","data-name"],ne=s("span",{class:"hint hint--right hint--top"},"Отель на карте",-1),re=[ne],le=["href"],ce={key:0},de={key:1,class:"fa fa-star hotel-star"},ue={key:2,class:"fa fa-star hotel-star"},pe={key:3,class:"fa fa-star hotel-star"},he={key:4,class:"fa fa-star hotel-star"},_e={key:5,class:"fa fa-star hotel-star"},fe={class:"hotel__rate"},me=["href"],we=["href"],ge={class:"fz9"},ye=["href"],be={class:"hotel__name-cut pr5"},ve={class:"hotel__type"},ke={class:"uppercase"},Ie={class:"hotel__location grey"},xe={key:0,class:"hotel__recommends"},Ce={key:0,class:"hotel__recommend hotel__recommend--friends"},Te={class:"hotel__reviews"},Pe={key:1,class:"hotel__empty-txt"},Oe=s("br",null,null,-1),Se=s("br",null,null,-1),Be=["href"],Ne={class:"hotel__btns"},De=["href","data-al","data-log"],je=s("span",{class:"hide-1023"},"смотреть",-1),Fe=["onClick"],Le={key:0},Ee={key:0,class:"tours-wrap block"},Ae={class:"tours__btns"},Ge=["href"],Qe=s("span",{"data-item":"tour-size"},null,-1),qe=["onClick"];function ze(t,o,a,n,i,h){const e=O("FadeImg"),u=O("UiTourAllocMini");return c(!0),d(k,null,I(a.items,r=>(c(),d("section",Gt,[s("div",Qt,[s("div",qt,[s("div",{onTouchmove:w=>a.app.photoSlide(r.allocationId,1,r.thPhoto),class:"hotel__img"},[r.photoCount>1?(c(),d("span",{key:0,onClick:w=>a.app.photoSlide(r.allocationId,-1,r.thPhoto),class:"hotel__slider-arrow prev"},null,8,Rt)):_("",!0),s("span",{onClick:w=>a.app.photoSlide(r.allocationId,1,r.thPhoto),class:"hotel__img-link"},[C(e,{imgUrl:a.app.$.data.hotelPhotoExtra[r.allocationId]?a.app.$.data.hotelPhotoExtra[r.allocationId].src:r.thPhoto},null,8,["imgUrl"])],8,$t),r.photoCount>1?(c(),d("span",{key:1,onClick:w=>a.app.photoSlide(r.allocationId,1,r.thPhoto),class:"hotel__slider-arrow next"},null,8,Ht)):_("",!0),s("div",Ut,[Vt,r.photoCount>0?(c(),d("a",{key:0,target:"_blank",href:"https://tophotels.ru/hotel/al"+r.allocationId+"/media?k="+r.logKey,"data-al":r.allocationId,class:"d-ib pointer"},[s("span",Jt,l(a.app.nfmt(r.photoCount)),1)],8,Kt)):_("",!0)])],40,zt),s("div",Mt,[s("div",{"data-al":r.allocationId,"data-item":"likehts",class:g(["hotel__action hint-parent hearts",{active:a.app.alLikePower(r.allocationId)>0}])},[s("i",{"data-action":"like","data-pwr":"1",class:g(["fas fa-heart",{"active selected":a.app.alLikePower(r.allocationId)>0}])},null,2),s("i",{"data-action":"like","data-pwr":"2",class:g(["fas fa-heart",{"active selected":a.app.alLikePower(r.allocationId)>1}])},null,2),s("i",{"data-action":"like","data-pwr":"3",class:g(["fas fa-heart",{"active selected":a.app.alLikePower(r.allocationId)>2}])},null,2),s("i",{"data-action":"like","data-pwr":"4",class:g(["fas fa-heart",{"active selected":a.app.alLikePower(r.allocationId)>3}])},null,2),s("i",{"data-action":"like","data-pwr":"5",class:g(["fas fa-heart",{"active selected":a.app.alLikePower(r.allocationId)>4}])},null,2),Zt],10,Yt)]),s("div",Xt,[s("button",{"data-al":r.allocationId,"data-al-name":r.allocationName,"data-al-cat":r.allocCatName,type:"button","data-action":"al-act-pp",class:"hotel__menu-btn fas fa-bookmark hint-parent"},ee,8,Wt),s("button",{"data-al":r.allocationId,type:"button","data-action":"al-nav-pp",class:"hotel__menu-btn hotel__menu-squares hint-parent"},se,8,oe),r.latitude!=null&&r.longitude!=null?(c(),d("button",{key:0,type:"button","data-action":"map","data-lat":r.latitude,"data-lng":r.longitude,"data-al":r.allocationId,"data-name":r.allocationName+" "+r.allocCatName,class:"hotel__menu-btn fas fa-map-marker-alt hint-parent"},re,8,ie)):_("",!0)])]),s("div",{class:g(["hotel__ratings","hotel__ratings-"+a.app.rateColor(r.thRate)])},[s("a",{target:"_blank",href:"https://tophotels.ru/hotel/al"+r.allocationId+"/reviews?k="+r.logKey,class:"hotel__stars"},[r.stars<1?(c(),d("span",ce,"NO CATEGORY")):(c(),d("i",de)),r.stars>1?(c(),d("i",ue)):_("",!0),r.stars>2?(c(),d("i",pe)):_("",!0),r.stars>3?(c(),d("i",he)):_("",!0),r.stars>4?(c(),d("i",_e)):_("",!0)],8,le),s("span",fe,[s("a",{target:"_blank",href:"https://tophotels.ru/hotel/al"+r.allocationId+"/reviews?k="+r.logKey,class:"bold"},l(r.thRate),9,me),s("a",{target:"_blank",href:"https://tophotels.ru/hotel/al"+r.allocationId+"/reviews/list?k="+r.logKey,class:"fz12"},[s("span",null,l(a.app.nfmt(r.votes?r.votes:0)),1),f(),s("span",ge,l(a.app.t(r.votes?r.votes:0,"отзыв|отзыва|отзывов")),1)],8,we)])],2),s("a",{target:"_blank",href:a.app.alNameLink(r.allocationId,r.logKey),class:"hotel__name"},[s("span",be,l(r.allocationName),1),s("span",null,l(r.allocCatName),1)],8,ye),s("div",ve,[s("span",ke,l(r.allocTypeName),1)]),s("div",Ie,l([r.geoCityOrRegion.name,r.allocPlaceTypeName,r.allocPlaceName].filter(function(w){return!!w&&w.length>0}).join(" • ")),1),r.thRate>0?(c(),d("div",xe,[r.thGroupRecommend?(c(),d("div",Ce,[s("b",null,l(parseInt(r.thGroupRecommend.percent*100))+"%",1),s("div",null,l(r.thGroupRecommend.name),1)])):_("",!0),s("ul",Te,[s("li",{class:g(a.app.rateColor(r.ratehotel))},[s("b",null,l(r.ratehotel),1),f("Размещение")],2),s("li",{class:g(a.app.rateColor(r.rateservice))},[s("b",null,l(r.rateservice),1),f("Сервис")],2),s("li",{class:g(a.app.rateColor(r.ratemeal))},[s("b",null,l(r.ratemeal),1),f("Питание")],2),(c(!0),d(k,null,I(r.topService,w=>(c(),d("li",{class:g(a.app.rateColor(w.rate))},[s("b",null,l(parseFloat(w.rate).toFixed(2)),1),f(" "+l(w.name),1)],2))),256))])])):(c(),d("p",Pe,[f(" Отель мало изучен"),Oe,f(" Вам есть что рассказать ?"),Se,s("a",{target:"_blank",href:"https://tophotels.ru/hotel/al"+r.allocationId+"/review/add"}," Напишите отзыв",8,Be),f(" и будьте первыми! ")])),s("div",Ne,[s("a",{target:"_blank",href:a.app.alSearchLink(r.allocationId,r.logKey),"data-al":r.allocationId,"data-log":r.logKey,"data-stat":"goto-al",class:"hotel__price hotel__price--fill"},[je,f(" туры в отель ")],8,De),s("button",{onClick:w=>a.app.searchMoreByAlloc(r.allocationId),class:"hotel__price"}," от "+l(a.app.nfmt(r.price))+" "+l(a.app.currency(r.currency)),9,Fe),s("b",null,[f(" за "+l(a.app.t(r.adults,"# взрослого|# взрослых|# взрослых"))+" ",1),r.children>0?(c(),d("span",Le,l(a.app.t(r.children,"с ребёнком|и # детей|и # детей")),1)):_("",!0)])])]),a.app.openedAllocations[r.allocationId]?(c(),d("div",Ee,[C(u,{app:a.app,items:a.app.$.data.caches.toursByAlloc[r.allocationId].slice(0,15)},null,8,["app","items"]),s("div",Ae,[s("a",{target:"_blank",href:a.app.alSearchLink(r.allocationId,r.logKey),class:"bth__btn bth__btn--28 bth__btn--fill"},[f(" ПОКАЗАТЬ БОЛЬШЕ ТУРОВ "),Qe],8,Ge),s("button",{onClick:w=>a.app.openedAllocations[r.allocationId]=!1,class:"bth__btn bth__btn--160 bth__btn--28 bth__btn--grey-dark"}," ЗАКРЫТЬ ",8,qe)])])):_("",!0)]))),256)}const Re=T(At,[["render",ze]]),$e={props:{app:null,items:null},watch:{"app.likeUp"(){}}},He={class:"tours-min-prices"},Ue=["onClick","data-id"],Ve={class:"hint hint--right hint--top"},Ke={class:"tours-min-prices__white"},Je=["href","data-plc","data-al","data-id"],Me={class:"fz18 pr5"},Ye={class:"tours-min-prices__currency tours-min-prices__inline"},Ze={class:"fz13 pr5"},Xe={key:0,class:"fz13 mt5"},We={key:1,class:"tours-min-prices__to"},to=["src"],eo=["href"],oo=["src"],ao={class:"tours-min-prices__col"},so={class:"tours-min-prices__dates"},io=s("span",{class:"mr5 ml5"},"-",-1),no={class:"tours-min-prices__ticket-txt"},ro={key:0},lo={key:1,class:"red"},co=s("i",{class:"red fas fa-info-circle pr5 fz11"},null,-1),uo={key:2,class:"red hint-parent"},po=s("i",{class:"red fas fa-info-circle pr5 fz11"},null,-1),ho=s("span",{class:"hint hint--top hint--right"},"Перелёт выполняется регулярными рейсами авиакомпаний. Цена тура может быть сильно изменена при оформлении бронирования у туроператора из-за динамического изменения тарифов авиакомпаний.",-1),_o={key:3},fo={key:4,class:"red hint-parent"},mo=s("span",{class:"hint hint--top hint--right"},"Тур с проживанием в нескольких отелях",-1),wo={class:"tours-min-prices__ticket"},go=s("div",{class:"tours-min-prices__ticket-word hint-parent"},[s("b",null,"Э"),s("span",{class:"hint hint--top hint--right"},"Наличие мест в экономе ")],-1),yo={class:"hint hint--top hint--right"},bo={class:"hint hint--top hint--right"},vo={class:"tours-min-prices__ticket"},ko=s("div",{class:"tours-min-prices__ticket-word hint-parent"},[s("b",null,"Б"),s("span",{class:"hint hint--top hint--right"},"Наличие мест в бизнес-классе ")],-1),Io={class:"hint hint--top hint--right"},xo={class:"hint hint--top hint--right"},Co={class:"tours-min-prices__col center"},To={class:"tours-min-prices__nights"},Po=s("span",{class:"fz14"},"НЧ",-1),Oo={class:"hint hint--top"},So={class:"tours-min-prices__actions"},Bo=["data-al","data-al-name","data-al-cat"],No=s("span",{class:"hint hint--top"},"Действия",-1),Do=[No],jo=["data-lat","data-lng","data-al","data-name"],Fo=s("span",{class:"hint hint--top"},"Отель на карте",-1),Lo=[Fo],Eo=["data-al"],Ao=s("span",{class:"hint hint--top"},"Меню отеля",-1),Go=[Ao],Qo={class:"tours-min-prices__col"},qo=["href","data-plc","data-al","data-id"],zo={class:"pr5"},Ro={class:"mt5 fz11 uppercase"},$o={href:"#",class:"tours-min-prices__inline"},Ho={href:"#",class:"tours-min-prices__inline"},Uo=s("a",{href:"#",class:"tours-min-prices__inline"},null,-1),Vo={class:"mt5 fz14"},Ko={class:"mt5 fz13 uppercase bold"},Jo={href:"#",class:"tours-min-prices__inline"},Mo={href:"#",class:"tours-min-prices__inline"},Yo=s("a",{href:"#",class:"tours-min-prices__inline"},null,-1),Zo={href:"#",class:"tours-min-prices__inline"},Xo={class:"tours-min-prices__col"},Wo=["href"],ta=["href"];function ea(t,o,a,n,i,h){return c(!0),d(k,null,I(a.items,e=>(c(),d("section",He,[s("button",{onClick:u=>a.app.likeTourToggle(e.id),"data-id":e.id,class:g([{"active orange":a.app.isTourFav(e.id)},"tours-min-prices__bb35 fas fa-star hint-parent"])},[s("span",Ve,l(a.app.isTourFav(e.id)?"Удалить из избранного":"В избранное"),1)],10,Ue),s("div",Ke,[s("a",{target:"_blank",href:a.app.alTourLink(e.allocationId,e.id,e.logKey),"data-stat":"tour","data-plc":e.price,"data-al":e.allocationId,"data-id":e.id,class:"tours-min-prices__price tours-min-prices__inline"},[s("span",Me,l(a.app.currency(e.currency)),1),f(),s("span",null,l(a.app.nfmt(e.price)),1)],8,Je),s("div",Ye,[s("span",Ze,l(a.app.currency(e.currencyOrig)),1),f(),s("span",null,l(a.app.nfmt(e.priceOrig)),1)]),e.extraPaySum>0?(c(),d("div",Xe," + "+l(a.app.nfmt(e.extraPaySum))+" "+l(a.app.currency(e.currency))+" доплаты ",1)):_("",!0),!a.app.isOperatorDisabled&&!(a.app.isOperatorLinkEnabled&&!a.app.isTourSales||t.isTourAgent)?(c(),d("span",We,[s("img",{src:"https://toursales.ru/i/operator/"+e.operatorId+".png",onerror:"this.src='/i/operator/unknown.png'",width:"15",height:"15",class:"middle mr5"},null,8,to),s("span",null,l(e.operatorName),1)])):_("",!0),!a.app.isOperatorDisabled&&(a.app.isOperatorLinkEnabled&&!a.app.isTourSales||t.isTourAgent)?(c(),d("a",{key:2,target:"_blank",href:"https://tourindex.ru/redirect/operator_tour/?tour="+e.id+"&op="+e.operatorId,class:"tours-min-prices__to"},[s("img",{src:"https://toursales.ru/i/operator/"+e.operatorId+".png",onerror:"this.src='/i/operator/unknown.png'",width:"15",height:"15",class:"middle mr5"},null,8,oo),s("span",null,l(e.operatorName),1)],8,eo)):_("",!0)]),s("div",ao,[s("div",so,[s("b",null,l(new Date(e.departure).format("d.m.y")),1),s("span",null,l(new Date(e.departure).format("weekDayShort")),1),io,s("b",null,l(new Date(e.arrival).format("d.m.y")),1),s("span",null,l(new Date(e.arrival).format("weekDayShort")),1)]),s("div",no,[e.flags.isDirectFlight?(c(),d("span",ro,"прямой рейс")):_("",!0),e.flags.isIdirectFlight?(c(),d("span",lo,[co,f(" с пересадками ")])):_("",!0),f(" "+l(e.flags.isDirectFlight||e.flags.isIdirectFlight?", ":"")+" ",1),e.flags.isRegularFlight?(c(),d("span",uo,[po,f(" регулярный "),ho])):(c(),d("span",_o,"чартер")),f(" "+l(" ")+" "),e.flags.isCombo?(c(),d("span",fo,[f(l(", ")+" комбо "),mo])):_("",!0)]),s("div",wo,[go,f(" "+l(" ")+" "),s("i",{class:g(["tours-min-prices__bb25 hint-parent fas fa-plane","tours-min-prices__"+a.app.ticketCLR(e.tickets.flightThereEco)])},[s("span",yo,"Билет туда "+l(a.app.ticketText(e.tickets.flightThereEco)),1)],2),f(" "+l(" ")+" "),s("i",{class:g(["tours-min-prices__bb25 hint-parent fas fa-plane left","tours-min-prices__"+a.app.ticketCLR(e.tickets.flightBackEco)])},[s("span",bo,"Билет обратно "+l(a.app.ticketText(e.tickets.flightBackEco)),1)],2)]),s("div",vo,[ko,f(" "+l(" ")+" "),s("i",{class:g(["tours-min-prices__bb25 hint-parent fas fa-plane","tours-min-prices__"+a.app.ticketCLR(e.tickets.flightThereBus)])},[s("span",Io,"Билет туда "+l(a.app.ticketText(e.tickets.flightThereBus)),1)],2),f(" "+l(" ")+" "),s("i",{class:g(["tours-min-prices__bb25 hint-parent fas fa-plane left","tours-min-prices__"+a.app.ticketCLR(e.tickets.flightBackBus)])},[s("span",xo,"Билет обратно "+l(a.app.ticketText(e.tickets.flightBackBus)),1)],2)])]),s("div",Co,[s("b",To,[s("span",null,l(e.duration),1),f(),Po]),s("i",{class:g(["tours-min-prices__bb25 hint-parent fas fa-home","tours-min-prices__"+a.app.ticketCLR(e.tickets.allocation)])},[s("span",Oo,l(a.app.alAvailText(e.tickets.allocation)),1)],2)]),s("div",So,[s("button",{"data-al":e.allocationId,"data-al-name":e.allocationName,"data-al-cat":e.allocCatName,type:"button","data-action":"al-act-pp",class:"tours-min-prices__action hint-parent fas fa-bookmark"},Do,8,Bo),e.latitude!=null&&e.longitude!=null?(c(),d("button",{key:0,"data-action":"map","data-lat":e.latitude,"data-lng":e.longitude,"data-al":e.allocationId,"data-name":e.allocationName+" "+e.allocCatName,class:"js-show-pp-map-hotel tours-min-prices__action hint-parent fas fa-map-marker-alt"},Lo,8,jo)):_("",!0),s("button",{"data-al":e.allocationId,type:"button","data-action":"al-nav-pp",class:"tours-min-prices__action hint-parent fas fa-squares"},Go,8,Eo)]),s("div",Qo,[s("a",{target:"_blank",href:a.app.alTourLink(e.allocationId,e.id,e.logKey),"data-stat":"tour","data-plc":e.price,"data-al":e.allocationId,"data-id":e.id,class:"tours-min-prices__hotel"},[s("span",zo,l(e.allocationName),1),f(" "+l(e.allocCatName),1)],8,qo),s("div",Ro,[s("a",$o,l(e.allocPlaceTypeName),1),s("a",Ho,l(e.allocPlaceName),1),Uo]),s("div",Vo,l(e.geoCityOrRegion.name),1),s("div",Ko,[s("a",Jo,l(e.roomTypeName),1),s("a",Mo,l(e.roomViewName),1),Yo,s("a",Zo,l(e.mealName),1)])]),s("div",Xo,[s("a",{target:"_blank",href:"https://tophotels.ru/hotel/al"+e.allocationId+"/reviews/list?k="+e.logKey,class:"tours-min-prices__review"},l(a.app.nfmt(e.votes?e.votes:0))+" отз.",9,Wo),s("a",{target:"_blank",href:"https://tophotels.ru/hotel/al"+e.allocationId+"/reviews?k="+e.logKey,class:g(["tours-min-prices__rate","tours-min-prices__"+a.app.rateColor(e.thRate)])},l(parseFloat(e.thRate).toFixed(2)),11,ta)])]))),256)}const oa=T($e,[["render",ea]]),aa={props:{app:null,items:null},data(){return{isOperatorLinkEnabled:window.isOperatorLinkEnabled,isTourAgent:window.isTourAgent}}},sa={class:""},ia={class:"lsfw-fill-tbl tours-to"},na=s("thead",null,[s("tr",null,[s("th",{class:"lsfw-fill-tbl__40"},"№"),s("th",null,"Оператор"),s("th",{class:"lsfw-fill-tbl__230"},"Мин цена"),s("th",{class:"lsfw-fill-tbl__230"},"Характеристики тура"),s("th",{class:"lsfw-fill-tbl__230"}),s("th",{class:"lsfw-fill-tbl__230"}),s("th",{class:"lsfw-fill-tbl__230 right"},"Статус")])],-1),ra={class:"block"},la=["src"],ca=["href"],da={key:1,class:"bold fz14"},ua={class:"price-block green"},pa=["href"],ha={class:"fz13"},_a={class:"bold fz13",colspan:"3"},fa={class:"lsfw-fill-tbl__70 d-ib fz14"},ma={class:"lsfw-fill-tbl__70 d-ib fz14"},wa=s("span",{class:"normal fz10"},"нч",-1),ga={class:"lsfw-fill-tbl__70 d-ib"},ya={class:"lsfw-fill-tbl__150 lsfw-fill-tbl__cut mr15"},ba={class:"d-ib"},va=s("td",{class:"right"},[s("div",{class:"lsfw-fill-tbl__bubble-white lsfw-fill-tbl__bubble-white--green fas fa-check"},[s("span",{class:"hint hint--tm40"},"Есть туры")])],-1);function ka(t,o,a,n,i,h){return c(),d("section",sa,[s("table",ia,[na,s("tbody",null,[(c(!0),d(k,null,I(a.items,(e,u)=>(c(),d("tr",null,[s("td",null,l(u+1),1),s("td",null,[s("span",ra,[s("img",{src:"https://toursales.ru/i/operator/"+e.operatorId+".png",width:"15",height:"15",class:"mr5 middle"},null,8,la),i.isOperatorLinkEnabled&&!a.app.isTourSales||i.isTourAgent?(c(),d("a",{key:0,target:"_blank",href:"https://tourindex.ru/redirect/operator_tour/?tour="+e.id+"&op="+ +e.operatorId+"&req="+e.logKey,class:"bold fz14"},l(e.operatorName),9,ca)):(c(),d("span",da,l(e.operatorName),1))])]),s("td",null,[s("div",ua,[s("a",{target:"_blank",href:a.app.alTourLink(e.allocationId,e.id,e.logKey),class:"block"},[s("span",ha,l(a.app.currency(e.currency)),1),f(" "+l(a.app.nfmt(e.price)),1)],8,pa)])]),s("td",_a,[s("span",fa,l(new Date(e.departure).format("d.m")),1),s("span",ma,[f(l(e.duration)+" ",1),wa]),s("span",ga,l(e.mealName),1),s("span",ya,l(e.roomTypeName),1),s("span",ba,l(e.roomViewName),1)]),va]))),256))])])])}const Ia=T(aa,[["render",ka]]),xa={props:{app:null,items:null}},Ca={class:""},Ta={class:"tours-departures lsfw-fill-tbl"},Pa={class:"bardo"},Oa=s("i",{class:"fas fa-plane mr10 lsfw-fill-tbl__inline"},null,-1),Sa={class:"fz20 pr5"},Ba={class:"lsfw-fill-tbl__hide767 lsfw-fill-tbl__250"},Na={class:"fz10 grey"},Da=s("div",{class:"lsfw-fill-tbl__cbx hidden"},[s("input",{type:"checkbox",id:"dd-cbx1"}),s("label",{for:"dd-cbx1"})],-1),ja=["href"],Fa={class:"lsfw-fill-tbl__cut250"},La={class:"lsfw-fill-tbl__only767"},Ea={class:"fz10 grey"},Aa={key:0,class:"price-block grey"},Ga=["href"],Qa={key:0,class:"price-block__img"},qa=["src"],za={class:"hint"},Ra={class:"fz13"};function $a(t,o,a,n,i,h){return c(),d("section",Ca,[(c(!0),d(k,null,I(a.items,(e,u)=>(c(),d("table",Ta,[s("thead",null,[s("tr",null,[s("th",Pa,[Oa,s("b",Sa,l(new Date(u).format("d.m.y")),1),s("span",null,l(new Date(u).format("weekDayShort")),1)]),(c(),d(k,null,I(4,r=>s("th",Ba,[s("div",null,l(a.app.req.nf+r-1)+" ночей",1),s("div",Na,l(new Date(a.app.req.df).addDays(r).format("d.m.y"))+" "+l(new Date(a.app.req.df).addDays(r).format("weekDayShort")),1)])),64))])]),s("tbody",null,[(c(!0),d(k,null,I(e,r=>(c(),d("tr",null,[s("td",null,[Da,s("a",{href:a.app.alSearchLink(r.info.allocationId,r.info.logKey),class:"bold fz16 lsfw-fill-tbl__inline"},[s("span",Fa,l(r.info.allocationName),1),f(" "+l(r.info.allocCatName),1)],8,ja)]),(c(),d(k,null,I(4,w=>s("td",null,[s("div",La,[s("div",null,l(a.app.req.nf+w-1)+" ночей",1),s("div",Ea,l(new Date(u).addDays(w).format("d.m.y"))+" "+l(new Date(u).addDays(w).format("weekDayShort")),1)]),r.nights[a.app.req.nf+w-1]?(c(),d("a",{key:1,target:"_blank",href:a.app.alTourLink(r.nights[a.app.req.nf+w-1].allocationId,r.nights[a.app.req.nf+w-1].id,r.nights[a.app.req.nf+w-1].logKey),class:"price-block green"},[a.app.isOperatorDisabled?_("",!0):(c(),d("span",Qa,[s("img",{src:"https://toursales.ru/i/operator/"+r.nights[a.app.req.nf+w-1].operatorId+".png",width:"15",height:"15"},null,8,qa),s("span",za,l(r.nights[a.app.req.nf+w-1].operatorName),1)])),s("span",Ra,l(a.app.currency(r.nights[a.app.req.nf+w-1].currency)),1),f(" "+l(a.app.nfmt(r.nights[a.app.req.nf+w-1].price)),1)],8,Ga)):(c(),d("span",Aa,"-"))])),64))]))),256))])]))),256))])}const Ha=T(xa,[["render",$a]]),p={dictToCountries:{1:"в Россию",2:"в Германию",3:"в Финляндию",4:"в Зимбабву",6:"в Австралию",7:"в Новой Зеландию",8:"на Кука о.",9:"на Фиджи",11:"в Ботсвану",12:"в Египет",14:"в Камерун",15:"в Кению",16:"в Марокко",17:"в Намибию",19:"в Свазиленд",20:"в Танзанию",21:"в Тунис",22:"в Уганду",23:"в ЮАР",24:"в Бруней",25:"во Вьетнам",26:"в Индонезию",27:"в Малайзию",28:"в Папуа Новая Гвинея",29:"в Сингапур",30:"в Таиланд",31:"на Филиппины",32:"в ОАЭ",34:"в Израиль",35:"в Индию",36:"в Иорданию",37:"в Китай",38:"в Непал",39:"на Тайвань",40:"в Японию",41:"на Маврикию",42:"на Мадагаскар",43:"на Мальдивы",44:"в Реюньон",45:"на Сейшелы",46:"на Шри-Ланку",47:"в Аргентину",48:"в Антарктиду",49:"в Бразилию",50:"в Венесуэлу",51:"в Перу",52:"в Чили",53:"в Эквадор",54:"в Аруба",55:"на Багамы",56:"на Барбадос",57:"на Гваделуп",58:"на Доминикану",59:"на Коста-Рику",60:"на Кубу",61:"на Мартинику",62:"в Мексику",63:"в Сент-Люсию",64:"в США",65:"в Ямайку",66:"в Австрию",67:"в Андорру",68:"в Бельгию",69:"в Великобританию",70:"в Венгрию",71:"в Грецию",72:"в Данию",73:"в Исландию",74:"в Испанию",75:"в Италию",76:"на Кипр",77:"на Мальту",78:"в Монако",79:"в Нидерланды",80:"в Норвегию",81:"в Португалию",82:"в Словакию",83:"в Турцию",84:"во Францию",85:"в Хорватию",86:"в Черногорию",87:"в Чехию",89:"в Швейцарию",90:"в Швецию",93:"в Ирландию",96:"в Словению",100:"в Болгарию",103:"в Латвию",107:"в Оман",109:"в Бахрейн",110:"в Катар",113:"в Ливан",114:"в Украину",116:"в Камбоджу",117:"в Мьянму (Бирму)",118:"в Эстонию",119:"в Южной Корею",120:"в Сирию",122:"в Литву",123:"в Румынию",124:"в Абхазию",126:"в Антигуа и Барбуда",127:"в Каймановы о-ва",128:"в Колумбию",129:"в Никарагуа",130:"в Панаму",132:"во Французскую Полинезию",133:"в Гватемалу",134:"в Уругвай",135:"в Боливию",136:"в Гондурас",137:"в Парагвай",139:"в Люксембург",140:"в Польшу",141:"в Канаду",142:"в Узбекистан",143:"в Иран",144:"в Афганистан",145:"в Замбию",146:"в Грузию",147:"в Туркменистан",148:"в Саудовскоя Аравию",149:"в Казахстан",150:"в Азербайджан",151:"в Молдову",152:"в Ливию",153:"в Пакистан",155:"в Белиз",156:"в Мозамбик",157:"в Армению",158:"в Беларусь",159:"в Албанию",160:"в Алжир",161:"в Ангол",162:"в Ангилью",163:"в Бангладеш",164:"в Бенин",165:"на Бермудские о-ва",166:"в Бутан",167:"в Боснию и Герцеговину",168:"в Буркина-Фасо",169:"в Бурунди",170:"в Центрально-Африканскую Республику",171:"в Чад",172:"на Коморские о-ва",173:"в Кот-д’Ивуар",174:"в Конго",175:"в Ирак",176:"на Гаити",177:"на Гайану",178:"в Гвинею",179:"в Гвинею Бисау",180:"на Гренаду",182:"в Гибралтар",183:"в Гану",184:"в Йемен",185:"в Ватикан",186:"в Пуэрто-Рико",187:"в Джибути",188:"на Доминику",189:"в Сальвадор",190:"в Экваториальную Гвинею",191:"в Эритрею",192:"в Эфиопию",193:"в Габон",194:"в Северную Корею",195:"в Кувейт",196:"во Французскую Гвиану",197:"в Гамбию",198:"в Королевство Тонга",200:"в Лаос",201:"в Лесото",202:"в Либерию",203:"в Лихтенштейн",204:"в Малави",205:"в Македонию",206:"в Мали",207:"в Мавританию",208:"в Микронезию (ФШМ)",209:"в Монголию",210:"в Новая Каледонию",211:"в Нигерию",212:"в Нигер",213:"в Сенегал",214:"в Сомали",215:"в Судан",216:"в Суринам",217:"в Таджикистан",218:"на Тринидад и Тобаго",219:"в Того",220:"на Теркс и Кайкос",222:"в Сербию",242:"в Кабо-Верде",247:"на Марианские о-ва",248:"на Брит. Виргинские о-ва",252:"в Кыргызстан",255:"на Антильские о-ва",256:"в Палестину",257:"в Руанду",259:"на Сен-Бартельми",260:"на Сен-Мартен",261:"на Сент-Винсент и Гренадины",267:"на Маршалловы о-ва",269:"в Сьерра-Леон",270:"на Вануату",271:"в Республику Кирибати",272:"в Ниуэ",273:"в Республика Палау",274:"в Независимое Государство Самоа",275:"на Сан-Томе и Принсипи",282:"в Западную Сахару",284:"в Восточный Тимор",285:"в Тувалу",288:"на Сент-Китс и Невис",289:"в Американское (Восточное) Самоа",290:"в Сан-Марино",291:"на Кюрасао о.",292:"на Америк. Виргинские о-ва",293:"на Соломоновы о-ва",294:"в Республику Косово",295:"на Сен-Пьер и Микелон",296:"на Кокосовые (Килинг) о-ва",297:"в Южный Судан",298:"в Южную Осетию",303:"на Северный Кипр"},dictGeo:{region:{},"city-arrival":{},city:{},district:{}},dictGeoIds:{region:[],"city-arrival":[],city:[],district:[]},relRegionCityIds:{},relCityDistrictIds:{},dictItemsPopular:{1e3:!0,669:!0,18:!0,15:!0,14:!0,17:!0,3270:!0},dictItemsTour:[18,4591,14,131,16,13,12,103,975,11,17,688,2467,4,5011,9,643,7,2473,642,987,1688,1697,2610,880,2290,3311,1677,1173,1455,600,882,1188,1011,881,2491,770,1690,1714,1715,12235,12248,12385,12241],dictPopDistrict:{83:[10039,10049]},dictPopRegion:{83:[34361,34368]}};var N={ct:castIntOrNull,co:castIntOrNull,ad:castIntOrNull,ch:castIntOrNull,dsf:castIntOrNull,dst:castIntOrNull,nf:castIntOrNull,nt:castIntOrNull,pf:castIntOrNull,pt:castIntOrNull,pc:castIntOrNull,cur:castIntOrNull,ti:castIntOrNull,op:tkIntArray,al:tkIntArray,ac:tkIntArray,re:tkIntArray,geo:tkIntArray,rpl:tkIntArray,me:tkIntArray,rt:tkIntArray,rv:tkIntArray,rat:tkIntArray,rvt:tkIntArray,alt:castIntOrNull,alpt:castIntOrNull,alpv:tkIntArray,ch1:castIntOrNull,ch2:castIntOrNull,ch3:castIntOrNull,alr:castFloatOrNull},F=function(t){var o=t;for(var a in o)if(o.hasOwnProperty(a)){if(N[a]===null||N[a]===""||typeof N[a]>"u")continue;N.hasOwnProperty(a)&&(o[a]=N[a](o[a]))}return o},Ua=function(t){return["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":""},Va={ct:1e3,co:83,df:new Date().addDays(14).format("Y-m-d"),dt:new Date().addDays(28).format("Y-m-d"),nf:7,nt:9,geo:[],ac:[],alts:[],alpt:null,alpv:[],me:[],al:[],alr:0,rat:[],rvt:[],op:[],ad:2,ch:0,ch1:0,ch2:0,ch3:0,pf:0,pt:0,pc:0,cur:3,lang:"ru",groupBy:"allocation",ctav:null,avct:null,ti:1,nti:0,fl:[]};const Ka={components:{UiTourAllocation:Re,UiTour:oa,UiOperator:Ia,UiDepartures:Ha},data(){return{tixHost:Ua(),isIndex:!0,isSarchLoader:!1,req:Va,limit:20,page:1,searchCountryName:"",isGeoLoaded:!1,lastLoadedCo:null,isDefault:!0,isSearching:!1,caches:null,tixEngine:null,ppExcel:!1,ppSharing:!1,tourParamsId:0,itemsCount:0,items:[],tags:[],openedAllocations:{},hotelPhotoExtra:{},readyToInit:!1,isProVersion:window.isProVersion,isTophotels:window.location.hostname.indexOf("tophotels.ru")>-1,isRT:window.location.hostname.indexOf("rutraveller.ru")>-1,isTi:window.location.hostname.indexOf("tourindex")>-1,isOperatorDisabled:window.isOperatorDisabled,isOperatorLinkEnabled:window.isOperatorLinkEnabled,likeTours:window.lsfw.conf.like.tours,likeAl:window.lsfw.conf.like.allocation,ignAl:lsfw.conf.ignore.allocation,likeUp:0,immediateRender:0,ppSaveSearch:!1}},watch:{ppSaveSearch(){},likeUp(){},readyToInit(){let t=this;window.app.forms.city=b(window.form3City,{app:t,version:"big"}).mount("#lsfcity"),window.app.forms.date=b(window.form3Date,{app:t,version:"big"}).mount("#lsfdate"),window.app.forms.night=b(window.form3Night,{app:t,version:"big"}).mount("#lsfnight"),window.app.forms.guest=b(window.form3Guest,{app:t,version:"big"}).mount("#lsfppl"),window.app.forms.price=b(window.form3Price,{app:t,version:"big"}).mount("#lsfprc"),window.app.forms.country=b(window.form3Country,{app:t,version:"big"}).mount("#lsfcountry"),window.app.forms.cityArrival=b(window.form3CityArrival,{app:t,version:"big"}).mount("#lsfcityarrival"),window.app.forms.region=b(window.form3Region,{app:t,version:"big"}).mount("#lsfregion"),window.app.forms.geo=b(window.form3Geo,{app:t,version:"big"}).mount("#lsfgeo"),window.app.forms.district=b(window.form3District,{app:t,version:"big"}).mount("#lsfdistrict"),window.app.forms.cat=b(window.form3Cat,{app:t,version:"big"}).mount("#lsfcat"),window.app.forms.placement=b(window.form3Placement,{app:t,version:"big"}).mount("#lsfplacement"),window.app.forms.meal=b(window.form3Meal,{app:t,version:"big"}).mount("#lsfmeal"),window.app.forms.allocation=b(window.form3Allocation,{app:t,version:"big"}).mount("#lsfallocation"),window.app.forms.room=b(window.form3Room,{app:t,version:"big"}).mount("#lsfroom"),window.app.forms.operator=b(window.form3Operator,{app:t,version:"big"}).mount("#lsfoperator"),window.app.forms.settings=b(window.form3Settings,{app:t,version:"big"}).mount("#lsfsettings"),window.app.forms.allocType=b(window.form3AllocType,{app:t,version:"big"}).mount("#lsfalloctype"),setTimeout(function(){t.isGeoLoaded=!1,setTimeout(function(){t.isGeoLoaded=!0,window.jQuery(".lsfw-tour-search--loader").removeClass("lsfw-tour-search--loader")},111)},1111)},tags(){},isDefault(){},isSearching(){},isSearchEmpty(){},isGeoLoaded(){},groupBy(){this.reloadItems()},page(){this.reloadItems()},limit(){this.reloadItems()},ppExcel(){},items(){},"req.co"(){this.loadDictGeo()},"req.geo"(){},"tixEngine.portion":invDebounce(function(){this.reloadItems()},250),"tixEngine.status.dataCount":invDebounce(function(){let t=this,o=this.tixEngine.status;o&&(!o.inProgress||o.dataCount>0)&&(t.isSearching=!1),o&&o.dataCount>0&&t.reloadItems();let a=document.getElementById("btnHCatMap2");a&&(o&&o.dataCount>0?a.classList.remove("hidden"):a.classList.add("hidden"));let n=document.getElementById("btnMtSearch");n&&o&&!o.inProgress&&(n.classList.remove("bth__loader--animate"),setTimeout(function(){t.reloadItems()},1500),setTimeout(function(){t.reloadItems()},3500))},300),"tixEngine.status.inProgress":function(){let t=this,o=this.tixEngine.status;o&&(!o.inProgress||o.dataCount>0)&&(t.isSearching=!1),o&&o.dataCount>0&&setTimeout(function(){t.reloadItems()},500);let a=document.getElementById("btnHCatMap2");a&&(o&&o.dataCount>0?a.classList.remove("hidden"):a.classList.add("hidden"));let n=document.getElementById("btnMtSearch");n&&o&&!o.inProgress&&(n.classList.remove("bth__loader--animate"),setTimeout(function(){t.reloadItems()},1500),setTimeout(function(){t.reloadItems()},3500))},"req.groupBy"(){this.reloadItems()},immediateRender:{handler(){},immediate:!0}},created:function(){let t=this;t.dictGeo=p.dictGeo,t.dictGeoIds=p.dictGeoIds,t.relRegionCityIds=p.relRegionCityIds,t.relCityDistrictIds=p.relCityDistrictIds,t.caches=b(Z,{app:t}).mount("#__lsfwttxcaches"),t.tixEngine=b(X,{app:t,caches:t.caches}).mount("#__lsfwttxengine"),window.app||(window.app={}),window.app.forms={},t.loadDictGeo().finally(function(){var o=!1,a=window.TixSearchId;if(a>0||a&&(""+a).length>=5)window.jQuery.ajax({method:"GET",url:t.tixHost+"/json/user/load-request-params",data:{id:a}}).done(function(x){if(!(!x||x.v<2)){var S,v=JSON.parse(JSON.stringify(t.req)),Q=F(x.request);for(S in v)v.hasOwnProperty(S)&&Q[S]&&(v[S]=Q[S]);(v.nti==="true"||v.nti=="1")&&(v.nti=!0,v.ti=0),(v.nti==="false"||v.nti=="0")&&(v.nti=!1,v.ti=1),t.readyToInit=!0,t.req=v,t.search()}});else if(location.href.indexOf("?")>-1){var n=location.href.replace(/^(.+)\?(.+)$/,"$2").split("&"),i,h,e={};for(i in n)n.hasOwnProperty(i)&&(h=n[i].split("="),e[h[0]]=h[1]);if(e=F(e),e.re&&e.re==="any"&&(e.re=[]),e.re=e.re?e.re.filter(function(x){return!!x&&!isNaN(x)}):[],e.df&&(e.df=e.df.replace(/(\d{2}).(\d{2}).(\d{4})/g,"$3-$2-$1")),e.dt&&(e.dt=e.dt.replace(/(\d{2}).(\d{2}).(\d{4})/g,"$3-$2-$1")),e.met){var u={1:[12],4:[14,4,32,30,29,22],2:[3,34,27,26],3:[8,2,31,28,25,17],5:[6,1,33,19,15]};e.me=[],e.met=e.met.split("_");for(var r in e.met)e.met.hasOwnProperty(r)&&e.me.push(u[parseInt(e.met[r].replace(/\D/g,""))]);e.me=e.me.filter(function(x){return!!x&&!isNaN(x)})}e=F(e);var w=!1,y=JSON.parse(JSON.stringify(t.req));for(var D in e)e.hasOwnProperty(D)&&(w=!0,y[D]=e[D]);t.req=y,(e.rs=="1"||w)&&(o=!0),t.readyToInit=!0}else t.readyToInit=!0;t.setGroupBy(t.req.groupBy),o&&t.search()}),setTimeout(function(){t.readyToInit=!0},5e3)},computed:{getReqGeoRegions(){return this.req.geo.intersect(p.dictGeoIds.region)},getReqGeoCities(){return this.req.geo.intersect(p.dictGeoIds.city)},getReqGeoDistrict(){return this.req.geo.intersect(p.dictGeoIds.district)},showMoreItemsCount(){let t=this.itemsCount-this.page*this.limit;return t>this.limit?this.limit:t}},methods:{ex(){return p},nfmt(t){return priceFormatSpaced(t)},currency(t){return lsfw.currency.getChar(t)},setGroupBy(t){let o=this;switch(o.req.groupBy=t,t){case"none":o.limit=50;break;case"allocation":o.limit=25;break;case"departure":o.limit=1e3;break;case"operator":o.limit=1e3;break}},reloadItems(){let t=this;switch(t.req.groupBy){default:t.items=t.caches.minByAlloc.slice(0,t.page*t.limit),t.itemsCount=t.caches.countByAlloc,t.immediateRender++;break;case"none":(window.libSortFunction?window.libSortFunction:lsfw.lib.sort)(t.caches.tours,"price","number","asc"),t.items=t.caches.tours.slice(0,t.page*t.limit),t.itemsCount=t.caches.tours.length,t.immediateRender++;break;case"operator":t.items=t.caches.minByOperator.slice(0,t.page*t.limit),t.itemsCount=t.caches.countByOperator,t.immediateRender++;break;case"departure":t.items=t.caches.toursByDepart,t.itemsCount=t.caches.countByDepart,t.immediateRender++;break}},search(){let t=this;t.page=1,t.isDefault=!1,t.isSearchEmpty=!1,t.isSearching=!0,t.itemsCount=0,t.items=[],t.searchCountryName=p.dictToCountries[t.req.co],t.loadTags(),t.tixEngine.stop(),t.tixEngine.start().then(function(){let a=t.tixEngine.status;a&&(!a.inProgress||a.dataCount>0)&&(t.isSearching=!1),a&&!a.inProgress&&(t.tixEngine.refresh({limit:1e3,offset:0,groupBy:"allocation"}).then(function(){t.reloadItems()}),setTimeout(function(){t.tixEngine.refresh({limit:1e3,offset:0,groupBy:"none"}).then(function(){t.reloadItems()})},1e3)),t.reloadItems()},function(){}),window.jQuery.ajax({async:!0,url:t.tixHost+"/json/user/save-request-params",data:{req:t.getFinalRequest(),directions:{}},type:"POST"}).done(function(a){var n="";switch(t.tourParamsId=a,!0){case location.hostname.indexOf("tophotels")>-1:n="https://"+location.hostname+"/tours/"+a;break;case location.hostname.indexOf("rutraveller")>-1:n="https://"+location.hostname+"/tours/"+a;break;case location.hostname.indexOf("turpoisk")>-1:n="https://"+location.hostname+"/tours/"+a;break;case location.hostname.indexOf("travelbooking")>-1:n="https://"+location.hostname+"/tours/"+a;break;case location.hostname.indexOf("tourindex")>-1:n="https://"+location.hostname+"/tours/"+a;break;default:case location.hostname.indexOf("toursales")>-1:n="https://"+location.hostname+"/ts/"+a;break}history.replaceState({},document.title,n)});var o=document.getElementById("btnMtSearch");o&&o.classList.add("bth__loader--animate")},searchMoreByAlloc(t){let o=this;if(!o.openedAllocations[t])o.openedAllocations[t]=!0;else{o.openedAllocations[t]=!1;return}o.tixEngine.stop(),o.tixEngine.loadMoreByReq({limit:50,offset:0,groupBy:"none",al:[t]}).then(function(){o.reloadItems()},function(){})},photoSlide(t,o,a){let n=this;n.hotelPhotoExtra[t]?(n.hotelPhotoExtra[t].index+=o,n.hotelPhotoExtra[t].index<0&&(n.hotelPhotoExtra[t].index=n.hotelPhotoExtra[t].it.length-1),n.hotelPhotoExtra[t].index>=n.hotelPhotoExtra[t].it.length&&(n.hotelPhotoExtra[t].index=0),n.hotelPhotoExtra[t].src=n.hotelPhotoExtra[t].it[n.hotelPhotoExtra[t].index]):(n.hotelPhotoExtra[t]={src:a,id:t,index:0,it:[a],loading:!0},window.jQuery.ajax({async:!0,url:"https://toursales.ru/hotel/"+t,data:{loadhotelPhoto:1,_csrf:window.jQuery('meta[name="csrf-token"]').attr("content")},type:"POST"}).done(function(i){n.hotelPhotoExtra[t].loading=!1,n.hotelPhotoExtra[t].it=i,n.hotelPhotoExtra[t].index+=o,n.hotelPhotoExtra[t].index<0&&(n.hotelPhotoExtra[t].index=n.hotelPhotoExtra[t].it.length-1),n.hotelPhotoExtra[t].index>=n.hotelPhotoExtra[t].it.length&&(n.hotelPhotoExtra[t].index=0),n.hotelPhotoExtra[t].src=n.hotelPhotoExtra[t].it[n.hotelPhotoExtra[t].index]}))},onTagClick(t){if(["co","ti"].indexOf(t.param)>-1)return;let o=this,a=JSON.parse(JSON.stringify(o.req));switch(t.type){case"single":a[t.param]=null;break;case"array":if(typeof t.value=="object")a[t.param]=a[t.param].diffNotIn(t.value);else{var n=[];for(let i in a[t.param])a[t.param].hasOwnProperty(i)&&t.value!==a[t.param][i]&&n.push(a[t.param][i]);a[t.param]=n}break}o.req=a,o.search()},loadTags(){let t=this;t.tags=[],window.jQuery.ajax({method:"POST",async:!0,url:t.tixHost+"/json/fast/tags",data:{req:t.getFinalRequest()}}).done(function(o){for(let a in o)if(o.hasOwnProperty(a))for(let n in o[a]){if(!o[a].hasOwnProperty(n))continue;let i=o[a][n];t.tags.push(i)}}).fail(function(){setTimeout(function(){t.loadTags()},2555)})},loadDictGeo(){let t=this;if(t.lastLoadedCo!=t.req.co)return t.lastLoadedCo=t.req.co,t.isGeoLoaded=!1,axios.get("https://toursales.ru/ui-filter-lz/geoV0?t=006&country="+t.req.co+"&lang="+t.req.lang).then(function(o){p.dictGeo=null,p.dictGeo={region:{},"city-arrival":{},city:{},district:{}},p.dictGeoIds=null,p.dictGeoIds={region:[],"city-arrival":[],city:[],district:[]},p.relRegionCityIds=null,p.relRegionCityIds={},p.relCityDistrictIds=null,p.relCityDistrictIds={},t.dictGeo=p.dictGeo,t.dictGeoIds=p.dictGeoIds,t.relRegionCityIds=p.relRegionCityIds,t.relCityDistrictIds=p.relCityDistrictIds;for(let a in o.data.geoRegion)o.data.geoRegion.hasOwnProperty(a)&&(a=Number(a),p.dictGeo.region[a]=o.data.geoRegion[a],p.dictGeo.region[a].id=a,p.dictGeo.region[a].nameIndex=p.dictGeo.region[a].name.trim().toLocaleLowerCase(),p.dictGeo.region[a].isPopular=p.dictPopRegion[t.req.co]&&p.dictPopRegion[t.req.co].indexOf(a)>-1,p.dictGeoIds.region.push(a),p.relRegionCityIds[a]||(p.relRegionCityIds[a]=[]));for(let a in o.data.geo)o.data.geo.hasOwnProperty(a)&&(a=Number(a),p.dictGeo.city[a]=o.data.geo[a],p.dictGeo.city[a].id=a,p.dictGeo.city[a].nameIndex=p.dictGeo.city[a].name.trim().toLocaleLowerCase(),p.dictGeo.city[a].regionId=Number(p.dictGeo.city[a].parent_id),p.dictGeoIds.city.push(a),p.relRegionCityIds[p.dictGeo.city[a].regionId]||(p.relRegionCityIds[p.dictGeo.city[a].regionId]=[]),p.relRegionCityIds[p.dictGeo.city[a].regionId].push(a),p.relCityDistrictIds[a]||(p.relCityDistrictIds[a]=[]));for(let a in o.data.geoPlace)if(o.data.geoPlace.hasOwnProperty(a)){for(let n in o.data.geoPlace[a])if(o.data.geoPlace[a].hasOwnProperty(n))try{let i=o.data.geoPlace[a][n];i.geo_place_id=Number(i.geo_place_id),p.dictGeo.district[i.geo_place_id]=i,p.dictGeo.district[i.geo_place_id].id=i.geo_place_id,p.dictGeo.district[i.geo_place_id].nameIndex=p.dictGeo.district[i.geo_place_id].name.trim().toLocaleLowerCase(),p.dictGeo.district[i.geo_place_id].isPopular=p.dictPopDistrict[t.req.co]&&p.dictPopDistrict[t.req.co].indexOf(i.geo_place_id)>-1,p.dictGeo.district[i.geo_place_id].cityId=Number(i.geo),p.dictGeo.district[i.geo_place_id].cityName=p.dictGeo.city[p.dictGeo.district[i.geo_place_id].cityId]?p.dictGeo.city[p.dictGeo.district[i.geo_place_id].cityId].name:"-",p.dictGeoIds.district.push(i.geo_place_id),p.relCityDistrictIds[p.dictGeo.district[i.geo_place_id].cityId]||(p.relCityDistrictIds[p.dictGeo.district[i.geo_place_id].cityId]=[]),p.relCityDistrictIds[p.dictGeo.district[i.geo_place_id].cityId].push(i.geo_place_id)}catch(i){console.warn(i)}}o.data=null,o=null}).catch(function(o){}).finally(function(){t.isGeoLoaded=!0})},ptrackMonitoring(){let t=this;window.app.confirm("Укажите название подписки",'<div class="bg-grey mb20 mt5 pt5 pl5 pr5 pb5 pl5">  <input value="'+window.jQuery('[data-item="mtCountryDat"]:first').parent().text().trim()+'" class="w100p bth__inp" style="border: 1px solid #ddd"></input></div>',[{id:"ok",text:"Сохранить"}],"","",!1,"").then(function(o){o!==null&&o.button==="ok"&&$.ajax({method:"POST",url:t.tixHost+"/interests/price-subscribes/subscribe",data:{name:o.block.find("input").val(),req:t.getFinalRequest(),_csrf:window.jQuery('meta[name="csrf-token"]').attr("content")}})})},getFinalRequest(){let o=JSON.parse(JSON.stringify(this.req)),a=o.geo.intersect(p.dictGeoIds.district),n=o.geo.intersect(p.dictGeoIds.city);switch(!0){case a.length>0:o.geo=a;break;case n.length>0:o.geo=n;break;case(o.avct>1||!!o.ctav):o.geo=[];break}return o},alLikePower(t){return window.mytour&&window.mytour.models&&window.mytour.models.FavHotel?window.mytour.models.FavHotel.getHotelScore(t):window.lsfw.conf.like.allocation[t]?window.lsfw.conf.like.allocation[t]:0},alLikePowerSet(t,o){var a=window.mytour&&window.mytour.models&&window.mytour.models.FavHotel?mytour.models.FavHotel.getHotelScore(t):window.lsfw.conf.like.allocation[t],n=o!=a;window.lsfw&&window.lsfw.models&&window.lsfw.models.UserAllocation?window.lsfw.models.UserAllocation.setAllocationIgnore(t,!1).done(function(){window.jQuery('[data-al="'+t+'"][data-action="ignore"]').removeClass("active"),window.lsfw.models.UserAllocation.setAllocationLike(t,o)}):window.mytour&&window.mytour.models&&window.mytour.models.FavHotel&&(n?mytour.models.FavHotel.add(t,o):mytour.models.FavHotel.remove(t)),n?(window.lsfw.conf.like.allocation[t].score=o,m.likeAl[t].score=o):(window.lsfw.conf.like.allocation[t].score=0,m.likeAl[t].score=0),window.lsfwTourForm&&window.lsfwTourForm.$.data.likeUp++},rateColor(t){t=parseFloat(t);var o="grey";switch(!0){case t<1:o="grey";break;case(t>0&&t<3):o="red";break;case(t>=3&&t<4):o="orange";break;case t>=4:o="green";break}return o},ticketCLR(t){if(t==0)return"grey ";if(t==1)return"green ";if(t==2)return"red ";if(t==3)return"orange ";if(t==4)return"grey "},ticketText(t){if(t==0)return"наличие неизвестно";if(t==1)return"в наличии";if(t==2)return"закончились";if(t==3)return"под запрос";if(t==4)return"наличие неизвестно"},alAvailText(t){if(t==0)return"Наличие номеров неизвестно";if(t==1)return"Есть места";if(t==2)return"Мест нет";if(t==3)return"Места под запрос";if(t==4)return"Наличие номеров неизвестно"},isTourFav(t){return this.likeTours.indexOf(t)>-1},alNameLink(t,o){var a="";switch(!0){case location.hostname.indexOf("tophotels")>-1:a="https://"+location.hostname+"/hotel/al"+t+"/tours"+(o?"?k="+o:"");break;case location.hostname.indexOf("rutraveller")>-1:a="https://"+location.hostname+"/hotel/"+t+(o?"/t"+o:"");break;case location.hostname.indexOf("turpoisk")>-1:a="https://"+location.hostname+"/al/"+t+(o?"/t"+o:"");break;case location.hostname.indexOf("tourindex")>-1:a="https://"+location.hostname+"/al/"+t+(o?"/t"+o:"");break;default:case location.hostname.indexOf("toursales")>-1:a="https://"+location.hostname+"/hotel/"+t+(o?"/t"+o:"");break}return a},alSearchLink(t,o){var a="";switch(!0){case location.hostname.indexOf("tophotels")>-1:a="https://"+location.hostname+"/hotel/al"+t+"/tours"+(o?"?k="+o:"");break;case location.hostname.indexOf("rutraveller")>-1:a="https://"+location.hostname+"/hotel/"+t+(o?"/t"+o:"");break;case location.hostname.indexOf("turpoisk")>-1:a="https://"+location.hostname+"/al/"+t+(o?"/t"+o:"");break;case location.hostname.indexOf("tourindex")>-1:a="https://"+location.hostname+"/al/"+t+(o?"/t"+o:"");break;default:case location.hostname.indexOf("toursales")>-1:a="https://"+location.hostname+"/hotel/"+t+(o?"/t"+o:"");break}return a},alTourLink(t,o,a){var n="";switch(!0){case location.hostname.indexOf("tophotels")>-1:n="https://"+location.hostname+"/hotel/"+t+"/"+o+(a?"/t"+a:"")+"?wf=th.prc";break;case location.hostname.indexOf("rutraveller")>-1:n="https://"+location.hostname+"/hotel/"+t+"/"+o+(a?"/t"+a:"")+"?wf=rt.prc";break;case location.hostname.indexOf("turpoisk")>-1:n="https://"+location.hostname+"/al/"+t+"/"+o+(a?"/t"+a:"")+"?wf=tp.prc";break;case location.hostname.indexOf("tourindex")>-1:n="https://"+location.hostname+"/al/"+t+"/"+o+(a?"/t"+a:"")+"?wf=ti.prc";break;default:case location.hostname.indexOf("toursales")>-1:n="https://"+location.hostname+"/hotel/"+t+"/"+o+(a?"/t"+a:"");break}return n},likeTourToggle(t){this.likeTours||(this.likeTours=[]),this.likeTours.indexOf(t)<0?(this.likeTours.push(t),mytour.models.FavTour.add(t)):(this.likeTours=this.likeTours.diffNotIn([t]),mytour.models.FavTour.remove(t))},t(t,o){return lsfw.t(t,o)},download(){let t=this,o=null;switch(t.ppExcel=!1,t.req.groupBy){default:o=t.caches.minByAlloc.slice(0,1e4);break;case"none":lsfw.lib.sort(t.caches.tours,"price","number","asc"),o=t.caches.tours.slice(0,1e4);break;case"operator":o=t.caches.minByOperator.slice(0,1e4);break;case"departure":o=t.caches.toursByDepart;break}let a=[];a.push("Дата вылета;Ночи;Отель;Тип размещения;Питание;Тип номера;Вид из номера;Оператор;Цена;"),a.push("");for(let e in o){if(!o.hasOwnProperty(e))continue;let u=o[e];a.push(new Date(u.departure).format("d.m.y weekDayShort")+";"+u.duration+" НЧ;"+u.allocationName+" "+u.allocCatName+";"+u.allocPlaceTypeName+" "+u.allocPlaceName+";"+u.mealName+" - "+u.mealNameFull+";"+u.roomTypeName+";"+u.roomViewName+";"+u.operatorName+";"+this.nfmt(u.price)+" "+this.currency(u.currency)+";https://tourindex.ru/al/"+u.allocationId+"/"+u.id)}a.push(""),a.push(""),a.push(""),a=a.join(`
`);let n=new Blob([a],{type:"text/csv"}),i=document.createElement("a");i.download="TourindexResults.csv";let h=window.URL.createObjectURL(n);i.href=h,i.style.display="none",document.body.appendChild(i),i.click(),document.body.removeChild(i)},saveSearchPP(){let t=this;t.ppSaveSearch=1}}};let Ja=document.getElementById("btnMtSearch");Ja&&document.getElementById("btnMtSearch").addEventListener("click",function(){window.lsfwTourForm.search();let t=document.getElementById("pricesMinPromo");t&&t.classList.add("hidden")});setTimeout(function(){document.getElementById("loadingForm").classList.remove("tour-selection-wrap--loader")},600);new function(){var t=this;t.mapYandex=null,t.isMapYandexInit=!1,t.mapMarker=null,t.mapYandexIcons=[];var o=L.markerClusterGroup();window.jQuery(document).on("click","#btnHCatMap2",function(){window.jQuery("#mapPP").removeClass("hidden"),o.clearLayers(),window.jQuery("#mapName").parent().hide(),window.jQuery('[data-item="yamap"]').addClass("hidden"),window.jQuery('[data-item="gmap"]').addClass("hidden"),t.mapSettings={cords:[0,0],zoom:4,id:0},t.mapIcons={},setTimeout(function(){t.map||(t.map=L.map("mapContainer").setView([0,0],t.mapSettings.zoom),t.mapIcons=[],L.tileLayer("https://travelmaps.ru/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(t.map),t.map.addLayer(o));for(let a in window.lsfwTourForm.$.data.caches.minByAlloc){if(!window.lsfwTourForm.$.data.caches.minByAlloc.hasOwnProperty(a))continue;let n=window.lsfwTourForm.$.data.caches.minByAlloc[a],i=n.id,h=n.latitude,e=n.longitude;if(!h||!e)continue;t.map.setView([h,e],t.mapSettings.zoom);let u=n.allocationName+" "+n.allocCatName,r=priceFormat(n.price),w=lsfw.currency.getChar(n.currency);if(!t.mapIcons[i]){t.mapIcons[i]=L.icon({iconUrl:"/i/marker/ico-map-marker-hotel.png",iconSize:[26,27],shadowSize:[0,0],iconAnchor:[10,27],popupAnchor:[0,0]}),t.mapIcons[i]=new L.DivIcon({iconSize:[26,27],shadowSize:[0,0],iconAnchor:[10,27],popupAnchor:[0,0],className:"lff--tbook-map-icon",html:'<img class="lff--tbook-map-marker" src="/i/marker/ico-map-marker-hotel.png"/><span class="lff--tbook-map-price">'+r+"&nbsp;р </span>"});let y=L.marker(new L.LatLng(h,e),{title:u,icon:t.mapIcons[i]});y.bindPopup('<a target="_blank" href="https://toursales.ru/hotel/'+n.allocationId+"/"+i+"/t"+n.logKey+'" class="link-blue fz24 bold uppercase block">'+u+'</a><a target="_blank" href="https://toursales.ru/hotel/'+n.allocationId+"/"+i+"/t"+n.logKey+'" style="min-width:220px" class="mt10 w100p block"><img src="'+n.thPhoto+'" class="bth__img"></a><div class="mt20 fz22 bold super-grey">от '+r+"&nbsp;"+w+"</div>"),o.addLayer(y)}}},500)}),window.jQuery(document).on("click",'[data-action="map"]',function(){o.clearLayers(),window.jQuery("#mapName").parent().show(),window.jQuery("#mapPP").removeClass("hidden");var a=window.jQuery(this).data("lat"),n=window.jQuery(this).data("lng"),i=window.jQuery(this).data("al"),h=window.jQuery(this).data("name");window.jQuery('[data-item="yamap"]').removeClass("hidden").prop("href","https://yandex.ru/maps?ll="+n+","+a+"&z=15"),window.jQuery('[data-item="gmap"]').removeClass("hidden").prop("href","https://www.google.ru/maps/@"+a+","+n+",664m/data=!3m1!1e3?entry=ttu"),!(a===0&&n===0)&&(window.jQuery("#mapName").text(h),window.jQuery("#map-googleMapUrl").attr("href",window.jQuery(this).data("google-map-url")),t.mapSettings={cords:[a,n],zoom:15,id:i},setTimeout(function(){t.map?t.map.setView(t.mapSettings.cords,t.mapSettings.zoom):(t.map=L.map("mapContainer").setView(t.mapSettings.cords,t.mapSettings.zoom),t.mapIcons=[],L.tileLayer("https://travelmaps.ru/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(t.map),t.map.addLayer(o)),t.mapIcons[i]||(t.mapIcons[i]=L.icon({iconUrl:"/i/marker/ico-map-marker-hotel.png",iconSize:[52,54],shadowSize:[0,0],iconAnchor:[20,54],popupAnchor:[0,0]}));let e=L.marker([a,n],{icon:t.mapIcons[i]});e.bindPopup(window.jQuery("#mapName").text().trim()),o.addLayer(e)},500))}),window.jQuery("#mapPPX").click(function(){window.jQuery("#mapPP").addClass("hidden"),window.jQuery(".js-show-street-map-button").click()})};(function(){window.jQuery(document).on("click",'[data-action="al-nav-pp"]',function(){var t=window.jQuery(this).data("al"),o=window.jQuery("#navPPHotel").show();o.find("a").each(function(){var a=window.jQuery(this);a.attr("href",a.data("href").replace("{ID}",t))})}),window.jQuery(document).on("click",'[data-action="navPPHotelClose"]',function(){window.jQuery("#navPPHotel").hide()})})();(function(){window.jQuery(document).on("click",'[data-action="al-act-pp"]',function(){var t=window.jQuery("#actPPHotel").show(),o=window.jQuery(this).data("al");t.find('[data-item="apph-al-name"]').text(window.jQuery(this).data("al-name")).attr("href","https://tophotels.ru/hotel/al"+o),t.find('[data-item="apph-al-cat"]').text(window.jQuery(this).data("al-cat")).attr("href","https://tophotels.ru/hotel/al"+o),t.find('[data-item="likehts"]').data("al",o),t.find('[data-action="ignore"]').data("al",o),t.find('[data-item="nreview"]').attr("href","https://tophotels.ru/hotel/al"+o+"/review/add")}),window.jQuery(document).on("click",'[data-action="actPPHotelClose"]',function(){window.jQuery("#actPPHotel").hide()})})();window.jQuery(document).on("click",'[data-action="like"]',function(t){t.preventDefault();var o=window.jQuery(this),a=o.parent().data("al"),n=o.data("pwr"),i=window.mytour&&window.mytour.models&&window.mytour.models.FavHotel?mytour.models.FavHotel.getHotelScore(a):window.lsfw.conf.like.allocation[a],h=n!=i;h?window.jQuery(this).parent().addClass("active"):(n=0,window.jQuery(this).parent().removeClass("active")),window.mytour&&window.mytour.models&&window.mytour.models.FavHotel?mytour.models.FavHotel.userFav[a]?mytour.models.FavHotel.userFav[a].score=n:mytour.models.FavHotel.userFav[a]={score:n}:window.lsfw.conf.like.allocation[a]=n,window.jQuery(this).parent().find("i").each(function(){var u=window.jQuery(this);u.data("pwr")<=n?u.addClass("selected"):u.removeClass("selected")});var e=window.jQuery('[data-item="like-count"]');e&&e.each(function(){var u=window.jQuery(this),r=parseInt(u.text().replace(/[()]/g,"").trim());u.text(r+(h?1:-1))}),window.lsfwTourForm.alLikePowerSet(a,n)});window.jQuery(document).on("click",'[data-action="ignore"]',function(t){t.preventDefault();var o=window.jQuery(this),a=o.data("al"),n=window.lsfw.conf.like.ign.indexOf(a)===-1;n?(window.lsfw.conf.like.ign.push(a),o.addClass("active")):o.removeClass("active"),window.lsfwTourForm.alLikePowerSet(a,0)});(function(){window.jQuery(document).on("click",'[data-action="al-nav-pp"]',function(){var t=window.jQuery(this).data("al"),o=window.jQuery("#navPPHotel").show();o.find("a").each(function(){var a=window.jQuery(this);a.attr("href",a.data("href").replace("{ID}",t))})}),window.jQuery(document).on("click",'[data-action="navPPHotelClose"]',function(){window.jQuery("#navPPHotel").hide()})})();(function(){window.jQuery(document).on("click",'[data-action="al-act-pp"]',function(){var t=window.jQuery("#actPPHotel").show(),o=window.jQuery(this).data("al");t.find('[data-item="apph-al-name"]').text(window.jQuery(this).data("al-name")).attr("href","https://tophotels.ru/hotel/al"+o),t.find('[data-item="apph-al-cat"]').text(window.jQuery(this).data("al-cat")).attr("href","https://tophotels.ru/hotel/al"+o),t.find('[data-item="likehts"]').data("al",o),t.find('[data-action="ignore"]').data("al",o),t.find('[data-item="nreview"]').attr("href","https://tophotels.ru/hotel/al"+o+"/review/add")}),window.jQuery(document).on("click",'[data-action="actPPHotelClose"]',function(){window.jQuery("#actPPHotel").hide()})})();(function(){new ClipboardJS("#ppSharingOpen",{text:function(t){return location.href}})})();(function(){var t=document.getElementById("btnMtSave");t&&t.addEventListener("click",function(){window.lsfwTourForm.saveSearchPP()});var o=document.getElementById("uiFilterTogg");o&&o.addEventListener("click",function(){let a=window.lsfwTourForm;window.jQuery.ajax({async:!0,url:a.tixHost+"/json/user/save-request-params",data:{req:a.getFinalRequest(),directions:{}},type:"POST"}).done(function(n){location.href.indexOf("/tours2")>-1?location.href="/tours/"+n:location.href="/tours2/"+n})})})();(function(){window.jQuery(document).on("click",".js-anchor-link",function(){window.jQuery("body,html").animate({scrollTop:0},300)})})();const Ma={key:0},Ya={key:0,class:"lsfw-tags no-select-text mt25"},Za=["onClick"],Xa={class:"bth__ttl-h2 mb20 mt30"},Wa={class:"title-flex"},ts={class:"bth__ttl-h2"},es={key:0},os={key:0},as={key:1},ss={key:1},is={key:0},ns={key:1},rs=s("a",{href:"","data-item":"mtCountryDat",class:"super-grey"},null,-1),ls={key:2,class:"fz13 grey ml20"},cs={class:"lsfw-filter-actions"},ds=s("span",{class:"mr5"},"включить мониторинг",-1),us=s("svg",{class:"middle",width:"23",height:"21",id:"Слой_1","data-name":"Слой 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 229.47 148.48"},[s("path",{d:"M702.1,494.47c-2.7,11-5.31,21.27-7.67,31.54-3.42,14.88-6.79,29.77-9.9,44.71-.76,3.63-1,7.33-2.43,10.86a11.1,11.1,0,0,1-4,5c-3.17,2.25-7.39-.1-8.66-4.67-2-7.22-2.51-14.7-3.66-22.06-.89-5.72-2-11.4-3-17.1-1.19-6.76-2.43-13.52-3.57-20.29-1.08-6.39-2-12.81-3.09-19.2-1.14-6.87-2.34-13.73-3.54-20.59-.2-1.12-.51-2.21-.87-3.73-3.08,8-4.8,15.91-6.9,23.74-1.67,6.23-3.3,12.47-4.76,18.75-1.73,7.44-3.25,14.93-4.88,22.39-.61,2.81-2,5.45-4.47,6.68-4.05,2-7,.75-9.27-4.61-1.7-4.08-2.5-8.44-3.76-12.65-1.45-4.87-3.37-9.6-5.06-14.41-.84-2.4-1.74-4.79-2.39-7.24-.6-2.27-1.64-2-2.73-.59a93.68,93.68,0,0,0-5.71,8.22,6.35,6.35,0,0,1-6.08,3.37q-32.7-.09-65.4,0c-2.42,0-3.46-.49-3.17-3.08a26.56,26.56,0,0,0,0-6c-.32-2.81.5-3.69,3.51-3.66,19.2.16,38.4-.06,57.6.19,4.37.06,6.65-1.9,8.68-5.21,2.72-4.43,4.8-9.23,8.15-13.33,4-4.86,9.49-4.6,12.39,1,3.42,6.61,4.52,13.92,6.37,21a21.72,21.72,0,0,0,3,7.48c1.86-6.58,3.68-12.64,5.28-18.75,2.34-8.9,4.56-17.84,6.77-26.77s4.34-17.88,6.52-26.82a19.67,19.67,0,0,1,3.59-7.95c2.43-3,7.26-2.1,9,1.35,2,4,2.46,8.42,3,12.76.85,6.93,1.52,13.85,2.87,20.73,2.35,12,4.1,24.19,6.21,36.27,1.23,7.05,2.68,14.06,4,21.1.8,4.4,1.48,8.82,2.68,13.33,1-3.42,2-6.81,2.88-10.25q2.11-8.55,4-17.16c1.94-8.9,3.72-17.84,5.68-26.74,1.45-6.58,2.44-13.29,4.77-19.66a16.32,16.32,0,0,1,2-3.91c2.15-3,4.93-3.37,7.69-.82,3.3,3,5.07,7,6.24,11.2,1.78,6.37,4.68,12.26,7.13,18.34,1.07,2.64,2.32,5.2,3.27,7.88,2,5.56,4.11,6.58,9.87,5,3-.84,5-3,7.48-4.59,6.38-4.12,15.67-1.77,18.21,4.82,1.86,4.82-.47,12.67-4.27,15.7-6.76,5.39-11,5-17.18-1.22a5.33,5.33,0,0,0-4.16-1.76,90.36,90.36,0,0,1-12.8-.43,5.56,5.56,0,0,1-4.71-3.45c-3-6.8-5.75-13.71-8.62-20.56C703.68,497.54,703.07,496.44,702.1,494.47Z",transform:"translate(-527.09 -438.99)"})],-1),ps=[ds,us],hs={class:"lsfw-grouping"},_s=s("span",{class:"hint hint--top"},"Поделиться",-1),fs=[_s],ms=s("span",{class:"hint hint--top"},"Скачать в excel",-1),ws=[ms],gs=["href"],ys=s("span",{class:"hint hint--top"},"Распечатать",-1),bs=[ys],vs={key:1,class:"bth__txt mb20"},ks={key:0},Is={key:1},xs={key:2},Cs={key:3},Ts={key:4},Ps={key:2,class:"bth__txt mb20"},Os={key:3,class:"texts-block fz24 bold mt20 pt20 pb20 pl20 pr20 red",style:{border:"3px solid #ddd","border-radius":"3px"}},Ss=s("br",null,null,-1),Bs={key:4},Ns=R('<div class="hotel-loader"></div><div class="hotel-loader"></div><div class="hotel-loader"></div><div class="hotel-loader"></div><div class="hotel-loader"></div><div class="hotel-loader"></div><div class="hotel-loader"></div><div class="hotel-loader"></div><div class="hotel-loader"></div><div class="hotel-loader"></div><div class="hotel-loader"></div><div class="hotel-loader"></div><div class="hotel-loader"></div>',13),Ds=[Ns],js={key:5,class:"hotel-cards"},Fs={key:6,class:"hotel-cards"},Ls={key:7,class:"hotel-cards"},Es={key:8,class:"hotel-cards"},As={key:9,class:"lsfw-pager"},Gs={class:"lsfw-pager__col no-scrollbar"},Qs=s("span",null,"Показать еще",-1),qs=s("div",{class:"bth__loader-spin"},[s("i",{class:"fas fa-circle"}),f(l(" ")+" "),s("i",{class:"fas fa-circle"}),f(l(" ")+" "),s("i",{class:"fas fa-circle"})],-1),zs=[Qs,qs],Rs={class:"lsfw-pager__list"},$s=s("div",null,[s("a",{href:"#loadingForm",class:"js-anchor-link bth__btn bth__btn--lower bth__btn--400 mt40"}," изменить настройки фильтра поиска туров ")],-1),Hs=s("a",{id:"orderFormHead"},null,-1),Us={key:1,class:"lsfw-popup-wrap lsfw-popup-wrap--sm-mobile"},Vs={class:"lsfw-popup lsfw-popup--500 bg-white"},Ks={class:"lsfw-popup__top no-border"},Js=s("div",{class:"bth__ttl-h2"},"Сообщение",-1),Ms={class:"lsfw-popup__white pt0 pb0"},Ys=s("p",{class:"bth__txt"},"Скачивание туров в формате excel.",-1),Zs=s("div",{class:"bth__loader-spin"},[s("i",{class:"fas fa-circle"}),s("i",{class:"fas fa-circle"}),s("i",{class:"fas fa-circle"})],-1),Xs={key:2,class:"lsfw-popup-wrap lsfw-popup-wrap--sm-mobile"},Ws={class:"lsfw-popup lsfw-popup--small bg-white"},ti=s("h2",{class:"bth__ttl-h2 mb15"},"ГОТОВО!",-1),ei=s("p",{class:"bth__txt"},"Ссылка на результаты поиска ",-1),oi=s("p",{class:"bth__txt mb20"},[f(" скопирована в буфер обмена, "),s("br",{class:"hide-639"}),f(" для вставки нажмите "),s("span",{class:"bold fz18 uppercase"},"ctrl + v"),f(" на компьютере или долгий тап по экрану на мобильных устройствах. ")],-1),ai={key:3,class:"lsfw-popup-wrap lsfw-popup-wrap--sm-mobile"},si={class:"lsfw-popup lsfw-popup--500"},ii={class:"lsfw-popup__top no-border"},ni=s("div",{class:"bth__ttl-h2"},"СОХРАНИТЬ ПОИСК",-1),ri={key:0,class:"js-pp-step1 lsfw-popup__grey pt0 pb0"},li=R('<label for="name-srch" class="block fz13 mb10">НАЗВАНИЕ ПОИСКА (МАКC 64 СИМВОЛА)</label><div class="js-add-error bth__inp-block w100p"><input id="name-srch" type="text" class="bth__inp"><div class="hint-block hint-block--abs"><i class="fa fa-question-circle question-error"></i><div class="hint">Поле обязательно для заполнения</div></div></div><label for="order" class="block fz13 mb10 mt15">№ ЗАЯВКИ КЛИЕНТА TRAVELCRM (НЕОБЯЗАТЕЛЬНО)</label><div class="bth__inp-block w100p"><input id="order" type="text" class="bth__inp"></div><label for="comment" class="block fz13 mb10 mt15"> КОММЕНТАРИЙ (НЕОБЯЗАТЕЛЬНО)</label><div class="bth__inp-block w100p"><input id="comment" type="text" class="bth__inp"></div>',6),ci=s("div",{class:"bth__loader-spin"},[s("i",{class:"fas fa-circle"}),s("i",{class:"fas fa-circle"}),s("i",{class:"fas fa-circle"})],-1),di={key:1,class:"js-pp-step2 lsfw-popup__grey pt0 pb0"},ui=s("p",{class:"bth__txt"},"Ваш поиск тура успешно сохранен!",-1),pi=s("a",{href:"/interests/saved-search",target:"_blank",class:"bth__btn bth__btn--320 bth__btn--28 bth__btn--blue mt15"},"перейти в раздел мои интересы ",-1),hi=[ui,pi];function _i(t,o,a,n,i,h){const e=O("UiTourAllocation"),u=O("UiTour"),r=O("UiOperator"),w=O("UiDepartures");return c(),d(k,null,[i.isDefault?(c(),d("div",Ma)):_("",!0),A(s("div",null,[i.tags.length>0?(c(),d("div",Ya,[(c(!0),d(k,null,I(i.tags,y=>(c(),d("div",{onClick:D=>h.onTagClick(y),class:"lsfw-tag"},[s("span",null,l(y.name),1)],8,Za))),256))])):_("",!0),s("div",Xa,[s("div",Wa,[s("h1",ts,[i.req.groupBy==="allocation"?(c(),d("span",es,[i.isSearching?(c(),d("span",os,"ИДЕТ ПОИСК ТУРОВ "+l(i.searchCountryName),1)):(c(),d("span",as,"ТУРЫ "+l(i.searchCountryName),1))])):(c(),d("span",ss,[i.isSearching?(c(),d("span",is,"ИДЕТ ПОИСК ТУРОВ "+l(i.searchCountryName),1)):(c(),d("span",ns,"ТУРЫ "+l(i.searchCountryName),1))])),rs,i.tixEngine.$.data.logKey?(c(),d("span",ls,"код поиска - "+l(i.tixEngine.$.data.logKey),1)):_("",!0)]),s("div",cs,[i.isProVersion&&!i.isTophotels&&!i.isRT?(c(),d("button",{key:0,id:"ptrackSearch",onClick:o[0]||(o[0]=y=>h.ptrackMonitoring()),class:"lsfw-filter-action lsfw-filter-action--orange pr15"},ps)):_("",!0)])])]),s("section",hs,[s("span",{onClick:o[1]||(o[1]=y=>h.setGroupBy("none")),class:g(["lsfw-grouping__link",{active:i.req.groupBy==="none"}])}," по мин цене ",2),s("span",{onClick:o[2]||(o[2]=y=>h.setGroupBy("allocation")),class:g(["lsfw-grouping__link",{active:i.req.groupBy==="allocation"}])}," ОТЕЛЯМ ",2),i.isProVersion?(c(),d("span",{key:0,onClick:o[3]||(o[3]=y=>h.setGroupBy("departure")),class:g(["lsfw-grouping__link",{active:i.req.groupBy==="departure"}])}," ДАТАМ / ОТЕЛЯМ ",2)):_("",!0),i.isOperatorDisabled?_("",!0):(c(),d("span",{key:1,onClick:o[4]||(o[4]=y=>h.setGroupBy("operator")),class:g(["lsfw-grouping__link",{active:i.req.groupBy==="operator"}])},"ОПЕРАТОРАМ ",2)),i.isProVersion&&!i.isTophotels&&!i.isRT?(c(),d("button",{key:2,id:"ppSharingOpen",onClick:o[5]||(o[5]=y=>i.ppSharing=!0),class:"lsfw-grouping__link ml-auto fas fa-share-alt"},fs)):_("",!0),i.isProVersion&&!i.isTophotels&&!i.isRT&&i.tixEngine&&i.tixEngine.$.data.logKey&&i.req.groupBy!=="departure"?(c(),d("button",{key:3,onClick:o[6]||(o[6]=y=>i.ppExcel=!0),class:"lsfw-grouping__link fas fa-file-excel"},ws)):_("",!0),i.isTi&&i.tixEngine&&i.tixEngine.$.data.logKey&&i.req.groupBy!=="departure"?(c(),d("a",{key:4,target:"_blank",href:"/tours/prepare/"+i.tixEngine.$.data.logKey+"?g="+i.req.groupBy,class:"lsfw-grouping__link fas fa-print"},bs,8,gs)):_("",!0)]),i.itemsCount>0?(c(),d("p",vs,[i.req.groupBy==="allocation"?(c(),d("span",ks,"Найдено отелей")):_("",!0),i.req.groupBy==="none"?(c(),d("span",Is,"Найдено туров")):_("",!0),i.req.groupBy==="operator"?(c(),d("span",xs,"Запрошено операторов")):_("",!0),i.req.groupBy==="rooms"?(c(),d("span",Cs,"Найдено номеров")):_("",!0),i.req.groupBy==="departure"?(c(),d("span",Ts,"Найдено дат")):_("",!0),f(" - "+l(h.nfmt(i.itemsCount)),1)])):(c(),d("p",Ps)),!i.isSearching&&i.tixEngine.status&&i.tixEngine.status.inProgress&&i.tixEngine.status.dataCount<1?(c(),d("div",Os,[f(" По вашему запросу туры не найдены "),Ss,f(" Попробуйте выбрать другие параметры ")])):_("",!0),i.isSearching?(c(),d("div",Bs,Ds)):_("",!0),!i.isSearching&&i.req.groupBy==="allocation"&&i.items&&Object.keys(i.items).length>0?(c(),d("div",js,[C(e,{app:this,items:i.items},null,8,["items"])])):_("",!0),!i.isSearching&&i.req.groupBy==="none"&&i.items&&Object.keys(i.items).length>0?(c(),d("div",Fs,[C(u,{app:this,items:i.items},null,8,["items"])])):_("",!0),!i.isSearching&&i.req.groupBy==="operator"&&i.items&&Object.keys(i.items).length>0?(c(),d("div",Ls,[C(r,{app:this,items:i.items},null,8,["items"])])):_("",!0),!i.isSearching&&i.req.groupBy==="departure"&&i.items&&Object.keys(i.items).length>0?(c(),d("div",Es,[C(w,{app:this,items:i.items},null,8,["items"])])):_("",!0),!i.isDefault&&!i.isSearching&&i.req.groupBy!=="departure"&&i.req.groupBy!=="operator"&&i.itemsCount-i.page*i.limit>0&&i.page*i.limit<i.itemsCount?(c(),d("section",As,[s("div",Gs,[s("button",{onClick:o[7]||(o[7]=y=>i.page++),class:"lsfw-pager__button bth__loader"},zs)]),s("div",Rs,[s("span",{onClick:o[8]||(o[8]=y=>{i.limit=25,i.page=1}),class:g(["pointer lsfw-pager__list-link",{active:i.limit==25}])}," 25",2),s("span",{onClick:o[9]||(o[9]=y=>{i.limit=50,i.page=1}),class:g(["pointer lsfw-pager__list-link",{active:i.limit==50}])}," 50",2),s("span",{onClick:o[10]||(o[10]=y=>{i.limit=100,i.page=1}),class:g(["pointer lsfw-pager__list-link",{active:i.limit==100}])}," 100",2),s("span",{onClick:o[11]||(o[11]=y=>{i.limit=200,i.page=1}),class:g(["pointer lsfw-pager__list-link",{active:i.limit==200}])}," 200",2)])])):_("",!0),$s],512),[[G,!i.isDefault]]),Hs,i.ppExcel?(c(),d("section",Us,[s("div",Vs,[s("div",Ks,[Js,s("i",{onClick:o[12]||(o[12]=y=>i.ppExcel=!1),class:"js-close-lsfw-popup lsfw-popup__btn-cross fas fa-times-circle"})]),s("div",Ms,[Ys,s("button",{onClick:o[13]||(o[13]=y=>h.download()),type:"button",class:"bth__btn bth__btn--210 bth__btn--lower bth__btn--blue bth__loader mt15"},[f(" начать скачивание "),Zs])])])])):_("",!0),i.ppSharing?(c(),d("section",Xs,[s("div",Ws,[ti,s("i",{onClick:o[14]||(o[14]=y=>i.ppSharing=!1),class:"lsfw-popup__btn-cross fas fa-times-circle"}),ei,oi,s("button",{onClick:o[15]||(o[15]=y=>i.ppSharing=!1),class:"bth__btn--28 bth__btn bth__btn--200 sm-btn-mobile bth__btn--grey-dark m0"}," Закрыть ")])])):_("",!0),i.ppSaveSearch>0?(c(),d("section",ai,[s("div",si,[s("div",ii,[ni,s("i",{onClick:o[16]||(o[16]=y=>i.ppSaveSearch=!1),class:"lsfw-popup__btn-cross fas fa-times-circle"})]),i.ppSaveSearch==1?(c(),d("div",ri,[li,s("button",{onClick:o[17]||(o[17]=y=>i.ppSaveSearch=2),type:"button",class:"js-pp-show-step2 bth__btn bth__btn--300 bth__btn--lower bth__btn--fill bth__loader mt15"},[f(" Сохранить фильтр "),ci])])):_("",!0),i.ppSaveSearch==2?(c(),d("div",di,hi)):_("",!0)])])):_("",!0)],64)}const fi=T(Ka,[["render",_i]]);window.lsfw||(window.lsfw={});window.form3Base=fi;
