import{openBlock as i,createElementBlock as p,Fragment as d,createElementVNode as s,normalizeClass as u,toDisplayString as c,createCommentVNode as f,withDirectives as o,vModelText as h}from "/js/vue.esm-browser.js?v=2";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))_(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const a of r.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&_(a)}).observe(document,{childList:!0,subtree:!0});function e(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function _(n){if(n.ep)return;n.ep=!0;const r=e(n);fetch(n.href,r)}})();const q=(l,t)=>{const e=l.__vccOpts||l;for(const[_,n]of t)e[_]=n;return e},m={props:{app:null,width:null,version:null,disablePrice:null,posLeft:null,posRight:null,posCenter:null},data(){return{CUR_MATRIX:{12:1,13:100,15:3,16:500,21:1,23:100,25:3,26:500,31:.01,32:.01,35:1/30.003,36:5,51:3,52:3,53:30.003,56:150,61:.002,62:.002,63:.2,65:1/150},V_STEP:5e3,V_LIMIT_MAX:1e6,V_MAX_INPUT_NUM:1e7,dictMainIcon:{1:"lsfw-form-control__usd-icon",2:"lsfw-form-control__eur-icon",3:"lsfw-form-control__rub-icon",4:"lsfw-form-control__byr-icon",5:"lsfw-form-control__uah-icon",6:"lsfw-form-control__kzt-icon"},enabledCurrency:[1,2,3,4,5,6],opened:!1,percentMax:15,inpPriceFrom:"",inpPriceTo:""}},watch:{enabledCurrency(l,t){},opened(l,t){},percentMax(l,t){this.app.req.pt=Math.round(this.app.req.pf*this.percentMaxToMod),this.inpPriceTo=this.app.req.pt>1?this.nfmt(this.app.req.pt):""},"app.req.pf"(l,t){this.app.req.pt=Math.round(this.app.req.pf*this.percentMaxToMod),this.inpPriceTo=this.app.req.pt>1?this.nfmt(this.app.req.pt):""},"app.req.pt"(l,t){},"app.req.cur"(l,t){}},created:function(){this.app.req.pf||(this.app.req.pf=0),!this.app.req.pt&&this.app.req.pt!==0&&(this.app.req.pt=this.V_LIMIT_MAX);let l=parseInt(window.tiUserConf.ticf_defcur);(!l||isNaN(l))&&(l=3),this.app.req.cur||(this.app.req.cur=l);let t=window.tiUserConf.ticf_encur;t&&(t=tkIntArray(JSON.parse(t)),t&&(this.enabledCurrency=t)),this.updateInputLabels()},computed:{percentMaxToMod(){return parseFloat(100+this.percentMax).toFixed(0)/100},isEmpty:function(){return this.app.req.pf<1&&(this.app.req.pt<1||this.app.req.pt>=this.V_LIMIT_MAX)}},methods:{updateInputLabels(){this.app.req.pf<1?this.inpPriceFrom="":this.inpPriceFrom=this.nfmt(this.app.req.pf),this.app.req.pt<1?this.inpPriceTo="":this.inpPriceTo=this.nfmt(this.app.req.pt)},priceFix(){this.app.req.pt<this.app.req.pf&&(this.app.req.pf=this.app.req.pt,this.updateInputLabels())},priceKeyup:invDebounce(function(l,t){var e=parseInt((this[l]+"").replace(/\D+/g,""));(isNaN(e)||e<1)&&(e=0),this[l]=this.nfmt(e),this.app.req[t]=e,t=="pt"&&this.priceFix(),this.app.req.pf>this.V_MAX_INPUT_NUM&&(this.app.req.pf=this.V_MAX_INPUT_NUM),this.app.req.pt>this.V_MAX_INPUT_NUM&&(this.app.req.pt=this.V_MAX_INPUT_NUM),this.updateInputLabels()},300),priceSlide(l,t){var e=parseInt((this.app.req[t]+"").replace(/\D+/g,""));(isNaN(e)||e<1)&&(e=0),this[l]=this.nfmt(e),this.app.req[t]=e,this.priceFix(),this.updateInputLabels()},priceSet(l,t,e){var _=parseInt((e+"").replace(/\D+/g,""));(isNaN(_)||_<1)&&(_=0),this[l]=this.nfmt(_),this.app.req[t]=_,this.priceFix(),this.updateInputLabels()},nfmt:function(l){return(l+"").split(/(?=(?:\d{3})+$)/).join(" ")},reset(){this.app.req.pf=0,this.app.req.pt=0,this.percentMax=15,this.switchCurrency(3),this.app.req.cur=3,this.priceFix(),this.updateInputLabels()},currencyName(){return lsfw.currency.getName(this.app.req.cur)},currencyDesc(){return lsfw.currency.getDescription(this.app.req.cur)},currencyChar(){return lsfw.currency.getChar(this.app.req.cur)},switchCurrency(l,t){switch(this.app.req.cur=t,this.app.req.cur){case 1:case 2:this.V_STEP=50,this.V_LIMIT_MAX=1e4,this.V_MAX_INPUT_NUM=1e6;break;case 5:this.V_STEP=200,this.V_LIMIT_MAX=4e4,this.V_MAX_INPUT_NUM=4e5;break;case 6:this.V_STEP=25e3,this.V_LIMIT_MAX=25e5,this.V_MAX_INPUT_NUM=25e6;break;default:this.V_STEP=5e3,this.V_LIMIT_MAX=1e6,this.V_MAX_INPUT_NUM=1e7;break}let e=this.CUR_MATRIX[l+""+t];e&&(this.app.req.pt=Math.round(this.app.req.pt*e),this.app.req.pf=Math.round(this.app.req.pf*e)),this.app.req.pf>this.V_MAX_INPUT_NUM&&(this.app.req.pf=this.V_MAX_INPUT_NUM),this.app.req.pt>this.V_MAX_INPUT_NUM&&(this.app.req.pt=this.V_MAX_INPUT_NUM),this.updateInputLabels(),this.disablePrice&&(this.opened=!1)},addPercent(l){if(l<1&&this.percentMax<=-l){this.percentMax=0;return}if(l>0&&this.percentMax>25){this.percentMax=30;return}this.percentMax+=l}}},y={key:0,class:"bth__inp-block"},M={key:0,class:"bth__inp uppercase"},b={key:1,class:"bth__inp uppercase"},w={key:2,class:"bth__inp uppercase"},v={key:3,class:"bth__inp uppercase"},I={key:4,class:"bth__inp uppercase"},k={key:1,class:"bth__inp-block"},T={class:"bth__inp uppercase"},P={class:"lsfw-filter__drop"},V={class:"lsfw-filter__drop-currency"},C={key:0,class:"fz12 uppercase"},A={key:1,class:"fz12 uppercase"},L={key:2,class:"fz12 uppercase"},N={key:3,class:"fz12 uppercase"},X={key:4,class:"fz12 uppercase"},x={class:"bth__inp-block"},U={key:0,class:"bth__inp uppercase"},g={key:1,class:"bth__inp uppercase"},F={key:2,class:"bth__inp uppercase"},S={key:3,class:"bth__inp uppercase"},O={key:4,class:"bth__inp uppercase"},E={class:"lsfw-tour-search__input"},D={class:"pr10"},z={key:0,class:""},K={key:1,class:""},R={key:2,class:""},B={key:3,class:""},j={key:4,class:""},J={class:"bth__inp-block"},G={key:0,class:"bth__inp-lbl"},H={key:0,class:"bth__inp uppercase"},Q={key:1,class:"bth__inp uppercase"},W={key:2,class:"bth__inp uppercase"},Y={key:3,class:"bth__inp uppercase"},Z={key:4,class:"bth__inp uppercase"},$={key:2,class:"bth__inp uppercase"},ee={class:"lsfw-form-control"},te={class:"lsfw-form-control__head lsfw-form-control__head-flex"},re={key:0,class:"lsfw-form-control__ttl"},ne={key:1,class:"lsfw-form-control__ttl"},ie={class:"lsfw-form-control__body"},pe={key:0,class:"lsfw-form-control__currency lsfw-form-control__rub-icon"},se=["checked"],ce={key:1,class:"lsfw-form-control__currency lsfw-form-control__eur-icon"},le=["checked"],ae={key:2,class:"lsfw-form-control__currency lsfw-form-control__usd-icon"},fe=["checked"],_e={key:3,class:"lsfw-form-control__currency lsfw-form-control__kzt-icon"},ue=["checked"],oe={key:4,class:"lsfw-form-control__currency lsfw-form-control__byn-icon"},he=["checked"],de={key:0,class:"lsfw-form-control__price"},qe={key:1,class:"lsfw-form-control__price"},me={class:"lsfw-form-control__price-limit hint-parent"},ye={class:"lsfw-form-control__price-limit-val"},Me=["max","step"],be={key:0,class:"lsfw-form-control__footer"};function we(l,t,e,_,n,r){return i(),p(d,null,[e.version=="big"?(i(),p("div",{key:0,onClick:t[0]||(t[0]=a=>n.opened=!0),class:"pointer relative"},[s("b",{class:u(["tour-selection-field__icon40",{active:!r.isEmpty}])},c(r.currencyChar()),3),e.disablePrice?(i(),p("div",k,[t[25]||(t[25]=s("span",{class:"bth__inp-lbl"},"Валюта",-1)),s("span",T,c(r.currencyName()),1)])):(i(),p("div",y,[t[24]||(t[24]=s("span",{class:"bth__inp-lbl"},"Ваш бюджет",-1)),e.app.req.pf<1&&(e.app.req.pt<1||e.app.req.pt>=n.V_LIMIT_MAX)?(i(),p("span",M," не ограничен ")):e.app.req.pf<1&&e.app.req.pt>0&&e.app.req.pt<n.V_LIMIT_MAX?(i(),p("span",b," < "+c(r.nfmt(e.app.req.pt)),1)):e.app.req.pf>0&&(e.app.req.pt<1||e.app.req.pt>=n.V_LIMIT_MAX)?(i(),p("span",w," > "+c(r.nfmt(e.app.req.pf)),1)):e.app.req.pf>0&&e.app.req.pf==e.app.req.pt?(i(),p("span",v," = "+c(r.nfmt(e.app.req.pf)),1)):e.app.req.pf>0&&(e.app.req.pt>0||e.app.req.pt>=n.V_LIMIT_MAX)?(i(),p("span",I,c(r.nfmt(e.app.req.pf))+" - "+c(r.nfmt(e.app.req.pt)),1)):f("",!0)]))])):f("",!0),e.version=="small"?(i(),p("div",{key:1,onClick:t[1]||(t[1]=a=>n.opened=!0),class:"lsfw-filter__drop-wrap"},[s("div",P,[s("b",V,c(r.currencyChar()),1),e.app.req.pf<1&&(e.app.req.pt<1||e.app.req.pt>=n.V_LIMIT_MAX)?(i(),p("span",C," - "+c(r.currencyName()),1)):e.app.req.pf<1&&e.app.req.pt>0&&e.app.req.pt<n.V_LIMIT_MAX?(i(),p("span",A," < "+c(r.nfmt(e.app.req.pt)),1)):e.app.req.pf>0&&(e.app.req.pt<1||e.app.req.pt>=n.V_LIMIT_MAX)?(i(),p("span",L," > "+c(r.nfmt(e.app.req.pf)),1)):e.app.req.pf>0&&e.app.req.pf==e.app.req.pt?(i(),p("span",N," = "+c(r.nfmt(e.app.req.pf)),1)):e.app.req.pf>0&&(e.app.req.pt>0||e.app.req.pt>=n.V_LIMIT_MAX)?(i(),p("span",X,c(r.nfmt(e.app.req.pf))+" - "+c(r.nfmt(e.app.req.pt)),1)):f("",!0)])])):f("",!0),e.version=="admin"?(i(),p("div",{key:2,onClick:t[2]||(t[2]=a=>n.opened=!0),class:u(["lsfw-form__cell",e.width?e.width:"w20p"])},[s("div",x,[t[26]||(t[26]=s("span",{class:"bth__inp-lbl w115px"},"Ваш бюджет ",-1)),e.app.req.pf<1&&(e.app.req.pt<1||e.app.req.pt>=n.V_LIMIT_MAX)?(i(),p("span",U,c(r.currencyChar())+" - "+c(r.currencyName()),1)):e.app.req.pf<1&&e.app.req.pt>0&&e.app.req.pt<n.V_LIMIT_MAX?(i(),p("span",g,c(r.currencyChar())+" - < "+c(r.nfmt(e.app.req.pt)),1)):e.app.req.pf>0&&(e.app.req.pt<1||e.app.req.pt>=n.V_LIMIT_MAX)?(i(),p("span",F,c(r.currencyChar())+" - > "+c(r.nfmt(e.app.req.pf)),1)):e.app.req.pf>0&&e.app.req.pf==e.app.req.pt?(i(),p("span",S,c(r.currencyChar())+" - = "+c(r.nfmt(e.app.req.pf)),1)):e.app.req.pf>0&&(e.app.req.pt>0||e.app.req.pt>=n.V_LIMIT_MAX)?(i(),p("span",O,c(r.currencyChar())+" - "+c(r.nfmt(e.app.req.pf))+" - "+c(r.nfmt(e.app.req.pt)),1)):f("",!0)])],2)):f("",!0),e.version=="ti"?(i(),p("div",{key:3,onClick:t[3]||(t[3]=a=>n.opened=!0),class:"lsfw-tour-search__w90px"},[s("div",E,[s("span",D,c(r.currencyChar()),1),e.app.req.pf<1&&(e.app.req.pt<1||e.app.req.pt>=n.V_LIMIT_MAX)?(i(),p("span",z," ∞ ")):e.app.req.pf<1&&e.app.req.pt>0&&e.app.req.pt<n.V_LIMIT_MAX?(i(),p("span",K," < "+c(r.nfmt(e.app.req.pt)),1)):e.app.req.pf>0&&(e.app.req.pt<1||e.app.req.pt>=n.V_LIMIT_MAX)?(i(),p("span",R," > "+c(r.nfmt(e.app.req.pf)),1)):e.app.req.pf>0&&e.app.req.pf==e.app.req.pt?(i(),p("span",B," = "+c(r.nfmt(e.app.req.pf)),1)):e.app.req.pf>0&&(e.app.req.pt>0||e.app.req.pt>=n.V_LIMIT_MAX)?(i(),p("span",j,c(r.nfmt(e.app.req.pf))+" - "+c(r.nfmt(e.app.req.pt)),1)):f("",!0)])])):f("",!0),e.version=="small-ti"?(i(),p("div",{key:4,onClick:t[4]||(t[4]=a=>n.opened=!0),class:"pointer relative"},[s("b",{class:u(["tour-selection-field__icon40",{active:!r.isEmpty}])},c(r.currencyChar()),3),s("div",J,[e.disablePrice?f("",!0):(i(),p("span",G,"Ваш бюджет")),e.disablePrice?(i(),p("span",$,c(r.currencyDesc()),1)):(i(),p(d,{key:1},[e.app.req.pf<1&&(e.app.req.pt<1||e.app.req.pt>=n.V_LIMIT_MAX)?(i(),p("span",H," бюджет ")):e.app.req.pf<1&&e.app.req.pt>0&&e.app.req.pt<n.V_LIMIT_MAX?(i(),p("span",Q," < "+c(r.nfmt(e.app.req.pt)),1)):e.app.req.pf>0&&(e.app.req.pt<1||e.app.req.pt>=n.V_LIMIT_MAX)?(i(),p("span",W," > "+c(r.nfmt(e.app.req.pf)),1)):e.app.req.pf>0&&e.app.req.pf==e.app.req.pt?(i(),p("span",Y," = "+c(r.nfmt(e.app.req.pf)),1)):e.app.req.pf>0&&(e.app.req.pt>0||e.app.req.pt>=n.V_LIMIT_MAX)?(i(),p("span",Z,c(r.nfmt(e.app.req.pf))+" - "+c(r.nfmt(e.app.req.pt)),1)):f("",!0)],64))])])):f("",!0),n.opened?(i(),p("section",{key:5,class:u(["lsfw-form-control-wrap lsfw-anim-fade-in",{"lsfw-form-control-wrap--right":e.version!="ti","lsfw-form-control-wrap--left":e.version=="ti","lsfw-form-control-wrap--right":e.posRight,"lsfw-form-control-wrap--left":e.posLeft}])},[s("div",ee,[s("div",te,[e.disablePrice?(i(),p("div",ne,"Выберите валюту")):(i(),p("div",re,"Ваш бюджет на покупку тура")),s("i",{onClick:t[5]||(t[5]=a=>n.opened=!1),class:"lsfw-form-control__close-square fas fa-times-circle"})]),s("div",ie,[s("ul",{class:u(["lsfw-form-control__currencies no-scrollbar",{"lsfw-form-control__currencies--mini":!e.disablePrice}])},[n.enabledCurrency.indexOf(3)>-1?(i(),p("li",pe,[s("input",{id:"currency1-2",name:"currency-2",type:"radio",value:3,checked:e.app.req.cur==3,onChange:t[6]||(t[6]=a=>r.switchCurrency(e.app.req.cur,3))},null,40,se),t[27]||(t[27]=s("label",{for:"currency1-2"},[s("b",null,"₽"),s("span",null,"Рубль")],-1))])):f("",!0),n.enabledCurrency.indexOf(2)>-1?(i(),p("li",ce,[s("input",{id:"currency2-2",name:"currency-2",type:"radio",value:2,checked:e.app.req.cur==2,onChange:t[7]||(t[7]=a=>r.switchCurrency(e.app.req.cur,2))},null,40,le),t[28]||(t[28]=s("label",{for:"currency2-2"},[s("b",null,"€"),s("span",null,"Евро")],-1))])):f("",!0),n.enabledCurrency.indexOf(1)>-1?(i(),p("li",ae,[s("input",{id:"currency3-2",name:"currency-2",type:"radio",value:1,checked:e.app.req.cur==1,onChange:t[8]||(t[8]=a=>r.switchCurrency(e.app.req.cur,1))},null,40,fe),t[29]||(t[29]=s("label",{for:"currency3-2"},[s("b",null,"$"),s("span",null,"Доллар")],-1))])):f("",!0),n.enabledCurrency.indexOf(6)>-1?(i(),p("li",_e,[s("input",{id:"currency4-2",name:"currency-2",type:"radio",value:6,checked:e.app.req.cur==6,onChange:t[9]||(t[9]=a=>r.switchCurrency(e.app.req.cur,6))},null,40,ue),t[30]||(t[30]=s("label",{for:"currency4-2"},[s("b",null," ₸ "),s("span",null,"Тенге")],-1))])):f("",!0),n.enabledCurrency.indexOf(5)>-1?(i(),p("li",oe,[s("input",{id:"currency5-2",name:"currency-2",type:"radio",value:5,checked:e.app.req.cur==5,onChange:t[10]||(t[10]=a=>r.switchCurrency(e.app.req.cur,5))},null,40,he),t[31]||(t[31]=s("label",{for:"currency5-2"},[s("b",null,"Б"),s("span",null," Бел. рубль")],-1))])):f("",!0)],2),e.disablePrice?f("",!0):(i(),p("div",de,[t[32]||(t[32]=s("label",{for:"opt-price2",class:"lsfw-form-control__ttl-sm"},"Комфортный бюджет",-1)),s("div",{class:u(["lsfw-form-control__inp-block","lsfw-form-control-prc-border--"+e.app.req.cur])},[o(s("input",{"onUpdate:modelValue":t[11]||(t[11]=a=>n.inpPriceFrom=a),onKeyup:t[12]||(t[12]=a=>r.priceKeyup("inpPriceFrom","pf")),onFocus:t[13]||(t[13]=a=>n.inpPriceFrom=e.app.req.pf==0?"":n.inpPriceFrom),placeholder:"не ограничен",id:"opt-price2"},null,544),[[h,n.inpPriceFrom]])],2)])),e.disablePrice?f("",!0):(i(),p("div",qe,[t[33]||(t[33]=s("label",{for:"max-price2",class:"lsfw-form-control__ttl-sm"},"Максимальный бюджет",-1)),s("div",{class:u(["lsfw-form-control__inp-block","lsfw-form-control-prc-border--"+e.app.req.cur])},[o(s("input",{"onUpdate:modelValue":t[14]||(t[14]=a=>n.inpPriceTo=a),onKeyup:t[15]||(t[15]=a=>r.priceKeyup("inpPriceTo","pt")),onFocus:t[16]||(t[16]=a=>n.inpPriceTo=e.app.req.pt==0?"":n.inpPriceTo),placeholder:"не ограничен",id:"max-price2"},null,544),[[h,n.inpPriceTo]]),s("div",me,[s("span",ye,"+"+c(n.percentMax)+"%",1),s("i",{onClick:t[17]||(t[17]=a=>r.addPercent(5)),class:"lsfw-form-control__price-limit-up fas fa-chevron-up"}),s("i",{onClick:t[18]||(t[18]=a=>r.addPercent(-5)),class:"lsfw-form-control__price-limit-down fas fa-chevron-down"})])],2)])),e.disablePrice?f("",!0):(i(),p("section",{key:2,class:u(["lsfw-form-control__ranges","lsfw-form-control__ranges-"+e.app.req.cur])},[o(s("input",{"onUpdate:modelValue":t[19]||(t[19]=a=>e.app.req.pf=a),min:"0",max:n.V_LIMIT_MAX,step:n.V_STEP,type:"range",onInput:t[20]||(t[20]=a=>r.priceSlide("inpPriceFrom","pf")),onChange:t[21]||(t[21]=a=>r.priceSlide("inpPriceFrom","pf"))},null,40,Me),[[h,e.app.req.pf]])],2))]),e.disablePrice?f("",!0):(i(),p("div",be,[s("button",{onClick:t[22]||(t[22]=a=>n.opened=!1),class:"lsfw-form-control__btn"},"Применить"),e.app.req.pf>0||e.app.req.pt>0?(i(),p("button",{key:0,onClick:t[23]||(t[23]=a=>r.reset()),class:"lsfw-form-control__btn lsfw-form-control__btn--grey"}," Сбросить ")):f("",!0)]))])],2)):f("",!0)],64)}const ve=q(m,[["render",we]]);window.lsfw||(window.lsfw={});window.form3Price=ve;
