PageSourceSearch

https://traveling.by/build/assets/init-DsFIjHAA.js

js traveling.by collected 2026-09-24 19:15:00 UTC 51,346 bytes, 1 lines download raw bytes

1import{_ as F,e as v,c as m,o as a,b as o,t as i,a as d,i as y,n as u,g as I,w as k,d as w,j as A,v as C,k as f,H,p as O,F as T,r as M,T as S,q as U}from"./index-BzbCybz5.js";import{C as L,_ as D}from"./app-BfBD8WFV.js";import{A as B}from"./AgencyOrderForms-BZE9RRO8.js";import{_ as P}from"./phone-BIlu4Tlm.js";import{_ as N}from"./check-DAYf0oA9.js";import{I as j}from"./Items-BQYTYfY-.js";import"./info-ZLzv0oOL.js";import"./check_black-MBtnOAfc.js";const E={shadowRoot:!1,components:{CheckList:L},computed:{model:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},classIcon(){var e;return((e=this.model)==null?void 0:e.classIcon)??""},title(){var e;return((e=this.model)==null?void 0:e.title)??""},checkedItemsCount(){var e,t;return(((t=(e=this.model)==null?void 0:e.checkedItems)==null?void 0:t.length)??0)-1}},methods:{getCheckedItemName(){var e,t;return(e=this.model)!=null&&e.checkedItems&&this.model.checkedItems[0]?this.model.checkedItems[0].name:((t=this.model)==null?void 0:t.emptyTitle)??""},toggleFilterModal(){this.$emit("trigger-filter",this.model.name)},parseCheck(){this.model.items&&(this.model.checkedItems=this.model.items.filter(e=>e.isChecked),this.$emit("trigger-update-items"))}},props:{modelValue:{type:Object,required:!0},variant:{type:String,default:"desktop"}},emits:["update:modelValue","trigger-filter","trigger-update-items"]},Z={class:"w-os-from__searchInner"},z={class:"w-os-from__searchTitle"},J={class:"w-os-from__searchTextInner"},q={class:"w-os-from__searchText"},W={key:0,class:"w-os-from__pluse"},Y={key:1,class:"w-os-from__mark"},G={class:"w-os-from__modal"},K={class:"w-os-from__modal_body"},Q={class:"w-os-from__searchInner"},X={class:"w-os-from__searchTitle"},$={class:"w-os-from__searchTextInner"},ee={class:"w-os-from__searchText"},te={key:0,class:"w-os-from__pluse"},se={key:1,class:"w-os-from__mark"},oe={class:"w-os-from__section"},re={key:0},le={class:"w-os-form_mobile_filter__modal"},ie={class:"w-os-from__modal_body"},ne={class:"w-os-from__modal_header_title"},ae={class:"w-os-from__searchInner"},de={class:"w-os-from__searchTextInner"},me={class:"w-os-from__searchText"},ce={key:0,class:"w-os-from__pluse"},he={key:1,class:"w-os-from__mark"},_e={class:"w-os-from__section"},ue={class:"w-os-where__modal_body_btns"};function pe(e,t,l,c,r,s){const h=v("CheckList");return l.variant==="desktop"?(a(),m("div",{key:0,class:u(["w-os-from row_filter",{"w-os-from--open":s.model.isOpen}])},[o("div",{class:u(["w-os-row",s.classIcon]),onClick:t[0]||(t[0]=y((..._)=>s.toggleFilterModal&&s.toggleFilterModal(..._),["stop"]))},[o("div",Z,[o("div",z,i(s.title),1),o("div",J,[o("span",q,i(s.getCheckedItemName()),1),s.checkedItemsCount>0?(a(),m("span",W," +"+i(s.checkedItemsCount),1)):d("",!0),s.checkedItemsCount>=0?(a(),m("span",Y)):d("",!0)])])],2),o("div",G,[o("div",K,[o("div",{class:u(["w-os-from__search w-os-row",s.classIcon])},[o("div",Q,[o("div",X,i(s.title),1),o("div",$,[o("span",ee,i(s.getCheckedItemName()),1),s.checkedItemsCount>0?(a(),m("span",te," +"+i(s.checkedItemsCount),1)):d("",!0),s.checkedItemsCount>=0?(a(),m("span",se)):d("",!0)])])],2),o("div",oe,[I(h,{modelValue:this.model,"onUpdate:modelValue":t[1]||(t[1]=_=>this.model=_),onTriggerCheck:s.parseCheck,type:"sendChecked"},null,8,["modelValue","onTriggerCheck"])])])])],2)):(a(),m("div",{key:1,class:u(["w-os-form_mobile_filter",{"w-os-form_mobile_filter--open":s.model.isOpen}])},[o("div",{class:"w-os-form_mobile_filter_row",onClick:t[2]||(t[2]=y((..._)=>s.toggleFilterModal&&s.toggleFilterModal(..._),["stop"]))},[o("span",null,i(s.getCheckedItemName()),1),s.checkedItemsCount>0?(a(),m("span",re," +"+i(s.checkedItemsCount),1)):d("",!0),t[7]||(t[7]=o("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o("path",{d:"M14 5L8 11L2 5",stroke:"#A3A3A3","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1))]),o("div",le,[o("div",ie,[o("div",{class:"w-os-from__modal_header",onClick:t[4]||(t[4]=_=>this.model.isOpen=!1)},[t[8]||(t[8]=o("span",{class:"b-btn--modal-back"},null,-1)),o("div",ne,i(s.title),1),o("span",{class:"b-btn--modal-close",onClick:t[3]||(t[3]=_=>this.model.isOpen=!1)})]),o("div",{class:u(["w-os-from__search w-os-row",s.classIcon]),onClick:y(_=>!0,["stop","prevent"])},[o("div",ae,[o("div",de,[o("span",me,i(s.getCheckedItemName()),1),s.checkedItemsCount>0?(a(),m("span",ce," +"+i(s.checkedItemsCount),1)):d("",!0),s.checkedItemsCount>=0?(a(),m("span",he)):d("",!0)])])],2),o("div",_e,[I(h,{modelValue:this.model,"onUpdate:modelValue":t[5]||(t[5]=_=>this.model=_),onTriggerCheck:s.parseCheck,type:"sendChecked"},null,8,["modelValue","onTriggerCheck"])]),o("div",ue,[o("span",{class:"w-os-where__submit",onClick:t[6]||(t[6]=_=>this.model.isOpen=!1)},i(s.model.submit_title),1)])])])],2))}const fe=F(E,[["render",pe]]),we={shadowRoot:!1,beforeMount(){},data(){return{}},computed:{model:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},classIcon(){var t,l;let e=((t=this.model)==null?void 0:t.classIcon)??"";return(l=this.model)!=null&&l.disabled?e+" w-os-row--disabled":e},title(){var e;return((e=this.model)==null?void 0:e.title)??""},isChoose(){var e;
1return((e=this.model)==null?void 0:e.isChoose)??!1}},methods:{triggerModal(){var e;if((e=this.model)!=null&&e.disabled)return!0;this.$emit("trigger-modal")}},props:{modelValue:{type:Object,required:!0}},emits:["update:modelValue"]},ge={class:"w-os-from"},be={class:"w-os-from__searchInner"},ke={class:"w-os-from__searchTextInner"},Ce={class:"w-os-from__searchText"},ve={key:0,class:"w-os-from__mark"};function ye(e,t,l,c,r,s){return a(),m("div",ge,[o("div",{class:u(["w-os-row",s.classIcon]),onClick:t[0]||(t[0]=(...h)=>s.triggerModal&&s.triggerModal(...h))},[o("div",be,[o("div",ke,[o("span",Ce,i(s.title),1),s.isChoose?(a(),m("span",ve)):d("",!0)])])],2)])}const Ie=F(we,[["render",ye]]),Fe={shadowRoot:!1,components:{CheckList:L},beforeMount(){},data(){return{isOpen:!1}},computed:{model:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},classIcon(){var t,l;let e=((t=this.model)==null?void 0:t.classIcon)??"";return(l=this.model)!=null&&l.disabled?e+" w-os-row--disabled":e},checkedItems(){var e;return((e=this.model)==null?void 0:e.checkedItems)??null},checkedItem(){var e;return((e=this.model)==null?void 0:e.checkedItems[0])??null},checkedItemsCount(){var e,t;return((t=(e=this.model)==null?void 0:e.checkedItems)==null?void 0:t.length)-1},items(){var e;return((e=this.model)==null?void 0:e.items)??null},title(){var e;return((e=this.model)==null?void 0:e.title)??""},i(){var e;return((e=this.model)==null?void 0:e.i)??null},activeTransport(){var e;return((e=this.model)==null?void 0:e.activeTransport)??null},type(){var e;return((e=this.model)==null?void 0:e.type)??null}},methods:{getCheckedItemName(){var e,t,l,c;return(e=this.model)!=null&&e.checkedItems&&((t=this.model)!=null&&t.checkedItems[0])?(l=this.model)==null?void 0:l.checkedItems[0].name:(c=this.model)!=null&&c.emptyTitle?this.model.emptyTitle:""},toggleFilterModal(){var e;(e=this.model)!=null&&e.disabled||this.$emit("trigger-filter",this.model.name)},parseCheck(){if(this.model.items){let e=[];this.model.items.forEach(t=>{t.isChecked&&e.push(t)}),this.model.checkedItems=e,this.$emit("trigger-update-items")}},setActiveTransport(e){var t;this.model.activeTransport=e,this.model.emptyTitle=(t=this.model)==null?void 0:t.i[e],e==="own"&&(this.model.items.forEach(l=>{l.isChecked=!1}),this.model.checkedItems=[]),this.$emit("set-transport",e,!0)}},props:{modelValue:{type:Object,required:!0}},emits:["update:modelValue"]},Te={class:"w-os-from__searchInner"},Ve={class:"w-os-from__searchTitle"},Le={class:"w-os-from__searchTextInner"},xe={class:"w-os-from__searchText"},Me={key:0,class:"w-os-from__pluse"},Ae={key:1,class:"w-os-from__mark"},Oe={class:"w-os-from__modal"},Se={class:"w-os-from__modal_body"},Ue={class:"w-os-from__searchInner"},De={class:"w-os-from__searchTitle"},Pe={class:"w-os-from__searchTextInner"},Ne={class:"w-os-from__searchText"},Re={key:0,class:"w-os-from__pluse"},He={key:1,class:"w-os-from__mark"},Be={class:"w-os-from__section"},je={key:0,class:"w-os-from__transport"};function Ee(e,t,l,c,r,s){var _,g,b;const h=v("CheckList");return a(),m("div",{class:u(["w-os-from row_filter",{"w-os-from--open":this.model.isOpen}])},[o("div",{class:u(["w-os-row",s.classIcon]),onClick:t[0]||(t[0]=y((...p)=>s.toggleFilterModal&&s.toggleFilterModal(...p),["stop"]))},[o("div",Te,[o("div",Ve,i(s.title),1),o("div",Le,[o("span",xe,i(s.getCheckedItemName()),1),s.checkedItemsCount>0?(a(),m("span",Me,"  +"+i(s.checkedItemsCount),1)):d("",!0),s.checkedItemsCount>=0?(a(),m("span",Ae)):d("",!0)])])],2),o("div",Oe,[o("div",Se,[o("div",{class:u(["w-os-from__search w-os-row",s.classIcon])},[o("div",Ue,[o("div",De,i(s.title),1),o("div",Pe,[o("span",Ne,i(s.getCheckedItemName()),1),s.checkedItemsCount>0?(a(),m("span",Re,"  +"+i(s.checkedItemsCount),1)):d("",!0),s.checkedItemsCount>=0?(a(),m("span",He)):d("",!0)])])],2),o("div",Be,[s.type==="transport"?(a(),m("div",je,[o("div",{class:u(["w-os-from__transport_item",{"w-os-from__transport_item--active":s.activeTransport==="plane"}]),onClick:t[1]||(t[1]=p=>s.setActiveTransport("plane"))},[t[5]||(t[5]=o("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21.8695 28C21.7687 28 21.6678 27.9836 21.5717 27.9495C21.3489 27.872 21.1636 27.7076 21.0651 27.4985L17.1121 19.5915L12.3841 23.6161L12.4251 26.1022C12.4286 26.3077 12.3243 26.5015 12.1484 26.6107L10.8491 27.4199C10.6193 27.5643 10.3191 27.5303 10.1256 27.3365L5.00472 22.208C4.8124 22.0154 4.7784 21.7159 4.92146 21.4834L5.7294 20.181C5.83611 20.0049 6.01083 19.8875 6.23715 19.9039L8.71844 19.9462L12.73 15.2029L4.82413 11.2406C4.62596 11.
11466 4.46179 10.9611 4.38439 10.7356C4.30583 10.5113 4.31873 10.2647 4.41957 10.0568L5.31429 8.2659C5.49136 7.91476 5.89709 7.72216 6.28054 7.79497L17.6926 10.0838C19.088 8.60999 21.5552 6.22014 21.8472 5.93712C22.8486 4.94008 26.1731 3.02586 27.7397 4.59716C29.3063 6.16377 27.3926 9.425 26.3665 10.4596C26.0828 10.7532 23.6953 13.2253 22.2236 14.6216L24.5091 26.0494C24.5877 26.4334 24.3918 26.8409 24.0412 27.0171L22.2553 27.9119C22.1345 27.9706 22.002 28 21.8695 28V28Z",stroke:"#525252","stroke-width":"1.5"})],-1)),w(" "+i((_=s.i)==null?void 0:_.plane),1)],2),o("div",{class:u(["w-os-from__transport_item",{"w-os-from__transport_item--active":s.activeTransport==="bus"}]),onClick:t[2]||(t[2]=p=>s.setActiveTransport("bus"))},[t[6]||(t[6]=A('<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="6" y="3" width="20" height="23" rx="2" stroke="#525252" stroke-width="1.5"></rect><circle cx="22" cy="22" r="2" stroke="#525252" stroke-width="1.5"></circle><path d="M26 18H6" stroke="#525252" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><circle cx="10" cy="22" r="2" stroke="#525252" stroke-width="1.5"></circle><path d="M21 26H24V28C24 28.5523 23.5523 29 23 29H22C21.4477 29 21 28.5523 21 28V26Z" stroke="#525252" stroke-width="1.5"></path><path d="M8 26H11V28C11 28.5523 10.5523 29 10 29H9C8.44772 29 8 28.5523 8 28V26Z" stroke="#525252" stroke-width="1.5"></path><rect x="26" y="7" width="3" height="6" rx="1" stroke="#525252" stroke-width="1.5"></rect><rect x="3" y="7" width="3" height="6" rx="1" stroke="#525252" stroke-width="1.5"></rect></svg>',1)),w(" "+i((g=s.i)==null?void 0:g.bus),1)],2),o("div",{class:u(["w-os-from__transport_item",{"w-os-from__transport_item--active":s.activeTransport==="own"}]),onClick:t[3]||(t[3]=p=>s.setActiveTransport("own"))},[t[7]||(t[7]=A('<svg width="33" height="32" viewBox="0 0 33 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.66699 17C4.66699 14.7909 6.45785 13 8.66699 13H24.667C26.8761 13 28.667 14.7909 28.667 17V21C28.667 21.5523 28.2193 22 27.667 22H5.66699C5.11471 22 4.66699 21.5523 4.66699 21V17Z" stroke="#525252" stroke-width="1.5"></path><circle cx="24.667" cy="18" r="2" stroke="#525252" stroke-width="1.5"></circle><circle cx="8.66699" cy="18" r="2" stroke="#525252" stroke-width="1.5"></circle><path d="M23.667 22H26.667V25C26.667 25.5523 26.2193 26 25.667 26H24.667C24.1147 26 23.667 25.5523 23.667 25V22Z" stroke="#525252" stroke-width="1.5"></path><path d="M6.66699 22H9.66699V25C9.66699 25.5523 9.21928 26 8.66699 26H7.66699C7.11471 26 6.66699 25.5523 6.66699 25V22Z" stroke="#525252" stroke-width="1.5"></path><path d="M7.14333 8.79285C7.46097 7.09881 8.75833 5.75748 10.4408 5.38359V5.38359C14.5416 4.47231 18.7924 4.47231 22.8931 5.38359V5.38359C24.5757 5.75748 25.873 7.09881 26.1907 8.79285L27.167 14V14C26.8606 13.3871 26.2342 13 25.549 13H7.78503C7.09982 13 6.47343 13.3871 6.16699 14V14L7.14333 8.79285Z" stroke="#525252" stroke-width="1.5" stroke-linejoin="round"></path></svg>',1)),w(" "+i((b=s.i)==null?void 0:b.own),1)],2)])):d("",!0),k(I(h,{modelValue:this.model,"onUpdate:modelValue":t[4]||(t[4]=p=>this.model=p),onTriggerCheck:s.parseCheck,type:"sendChecked"},null,8,["modelValue","onTriggerCheck"]),[[C,s.activeTransport!=="own"]])])])])],2)}const Ze=F(Fe,[["render",Ee]]),ze={shadowRoot:!1,components:{CheckList:L},beforeMount(){},data(){return{isOpen:!1}},computed:{model:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},classIcon(){var t,l;let e=((t=this.model)==null?void 0:t.classIcon)??"";return(l=this.model)!=null&&l.disabled?e+" w-os-row--disabled":e},checkedItems(){var e;return((e=this.model)==null?void 0:e.checkedItems)??null},checkedItem(){var e;return((e=this.model)==null?void 0:e.checkedItems[0])??null},checkedItemsCount(){var e,t;return((t=(e=this.model)==null?void 0:e.checkedItems)==null?void 0:t.length)-1},items(){var e;return((e=this.model)==null?void 0:e.items)??null},title(){var e;return((e=this.model)==null?void 0:e.title)??""},i(){var e;return((e=this.model)==null?void 0:e.i)??null}
1,activeTransport(){var e;return((e=this.model)==null?void 0:e.activeTransport)??null},type(){var e;return((e=this.model)==null?void 0:e.type)??null}},methods:{getCheckedItemName(){var e,t,l,c;return(e=this.model)!=null&&e.checkedItems&&((t=this.model)!=null&&t.checkedItems[0])?(l=this.model)==null?void 0:l.checkedItems[0].name:(c=this.model)!=null&&c.emptyTitle?this.model.emptyTitle:""},toggleFilterModal(){var e;(e=this.model)!=null&&e.disabled||this.$emit("trigger-filter",this.model.name)},parseCheck(){if(this.model.items){let e=[];this.model.items.forEach(t=>{t.isChecked&&e.push(t)}),this.model.checkedItems=e,this.$emit("trigger-update-items")}},setActiveTransport(e){var t;this.model.activeTransport=e,this.model.emptyTitle=(t=this.model)==null?void 0:t.i[e],e==="own"&&(this.model.items.forEach(l=>{l.isChecked=!1}),this.model.checkedItems=[]),this.$emit("set-transport",e,!0)}},props:{modelValue:{type:Object,required:!0}},emits:["update:modelValue"]},Je={key:0},qe={class:"w-os-from__modal_body"},We={class:"w-os-from__modal_header_title"},Ye={class:"w-os-from__searchInner"},Ge={class:"w-os-from__searchTextInner"},Ke={class:"w-os-from__searchText"},Qe={key:0,class:"w-os-from__pluse"},Xe={key:1,class:"w-os-from__mark"},$e={class:"w-os-from__section"},et={key:0,class:"w-os-from__transport"},tt={class:"w-os-where__modal_body_btns"};function st(e,t,l,c,r,s){var _,g,b;const h=v("CheckList");return a(),m("div",{class:u(["w-os-form_mobile_filter",{"w-os-form_mobile_filter--open":this.model.isOpen,"w-os-form_mobile_filter--disabled":this.model.disabled}])},[o("div",{class:"w-os-form_mobile_filter_row",onClick:t[0]||(t[0]=y((...p)=>s.toggleFilterModal&&s.toggleFilterModal(...p),["stop"]))},[o("span",null,i(s.getCheckedItemName()),1),s.checkedItemsCount>0?(a(),m("span",Je,"  +"+i(s.checkedItemsCount),1)):d("",!0),t[8]||(t[8]=o("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o("path",{id:"Vector 577",d:"M14 5L8 11L2 5",stroke:"#A3A3A3","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1))]),(a(),f(H,{to:"body"},[o("div",{class:u(["w-os-form_mobile_filter__modal",{"w-os-form_mobile_filter__modal--open":s.model.isOpen}])},[o("div",qe,[o("div",{class:"w-os-from__modal_header",onClick:t[2]||(t[2]=p=>this.model.isOpen=!1)},[t[9]||(t[9]=o("span",{class:"b-btn--modal-back"},null,-1)),o("div",We,i(s.title),1),o("span",{class:"b-btn--modal-close",onClick:t[1]||(t[1]=p=>this.model.isOpen=!1)})]),o("div",{class:u(["w-os-from__search w-os-row",s.classIcon]),onClick:y(p=>!0,["stop","prevent"])},[o("div",Ye,[o("div",Ge,[o("span",Ke,i(s.getCheckedItemName()),1),s.checkedItemsCount>0?(a(),m("span",Qe,"  +"+i(s.checkedItemsCount),1)):d("",!0),s.checkedItemsCount>=0?(a(),m("span",Xe)):d("",!0)])])],2),o("div",$e,[s.type==="transport"?(a(),m("div",et,[o("div",{class:u(["w-os-from__transport_item",{"w-os-from__transport_item--active":s.activeTransport==="plane"}]),onClick:t[3]||(t[3]=p=>s.setActiveTransport("plane"))},[t[10]||(t[10]=o("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21.8695 28C21.7687 28 21.6678 27.9836 21.5717 27.9495C21.3489 27.872 21.1636 27.7076 21.0651 27.4985L17.1121 19.5915L12.3841 23.6161L12.4251 26.1022C12.4286 26.3077 12.3243 26.5015 12.1484 26.6107L10.8491 27.4199C10.6193 27.5643 10.3191 27.5303 10.1256 27.3365L5.00472 22.208C4.8124 22.0154 4.7784 21.7159 4.92146 21.4834L5.7294 20.181C5.83611 20.0049 6.01083 19.8875 6.23715 19.9039L8.71844 19.9462L12.73 15.2029L4.82413 11.2406C4.62596 11.1466 4.46179 10.9611 4.38439 10.7356C4.30583 10.5113 4.31873 10.2647 4.41957 10.0568L5.31429 8.2659C5.49136 7.91476 5.89709 7.72216 6.28054 7.79497L17.6926 10.0838C19.088 8.60999 21.5552 6.22014 21.8472 5.93712C22.8486 4.94008 26.1731 3.02586 27.7397 4.59716C29.3063 6.16377 27.3926 9.425 26.3665 10.4596C26.0828 10.7532 23.6953 13.2253 22.2236 14.6216L24.5091 26.0494C24.5877 26.4334 24.3918 26.8409 24.0412 27.0171L22.2553 27.9119C22.1345 27.9706 22.002 28 21.8695 28V28Z",stroke:"#525252","stroke-width":"1.5"})],-1)),w(" "+i((_=s.i)==null?void 0:_.plane),1)],2),o("div",{class:u(["w-os-from__transport_item",{"w-os-from__transport_item--active":s.activeTrans
1port==="bus"}]),onClick:t[4]||(t[4]=p=>s.setActiveTransport("bus"))},[t[11]||(t[11]=o("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o("rect",{x:"6",y:"3",width:"20",height:"23",rx:"2",stroke:"#525252","stroke-width":"1.5"}),o("circle",{cx:"22",cy:"22",r:"2",stroke:"#525252","stroke-width":"1.5"}),o("path",{d:"M26 18H6",stroke:"#525252","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),o("circle",{cx:"10",cy:"22",r:"2",stroke:"#525252","stroke-width":"1.5"}),o("path",{d:"M21 26H24V28C24 28.5523 23.5523 29 23 29H22C21.4477 29 21 28.5523 21 28V26Z",stroke:"#525252","stroke-width":"1.5"}),o("path",{d:"M8 26H11V28C11 28.5523 10.5523 29 10 29H9C8.44772 29 8 28.5523 8 28V26Z",stroke:"#525252","stroke-width":"1.5"}),o("rect",{x:"26",y:"7",width:"3",height:"6",rx:"1",stroke:"#525252","stroke-width":"1.5"}),o("rect",{x:"3",y:"7",width:"3",height:"6",rx:"1",stroke:"#525252","stroke-width":"1.5"})],-1)),w(" "+i((g=s.i)==null?void 0:g.bus),1)],2),o("div",{class:u(["w-os-from__transport_item",{"w-os-from__transport_item--active":s.activeTransport==="own"}]),onClick:t[5]||(t[5]=p=>s.setActiveTransport("own"))},[t[12]||(t[12]=o("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o("path",{d:"M4.66699 17C4.66699 14.7909 6.45785 13 8.66699 13H24.667C26.8761 13 28.667 14.7909 28.667 17V21C28.667 21.5523 28.2193 22 27.667 22H5.66699C5.11471 22 4.66699 21.5523 4.66699 21V17Z",stroke:"#525252","stroke-width":"1.5"}),o("circle",{cx:"24.667",cy:"18",r:"2",stroke:"#525252","stroke-width":"1.5"}),o("circle",{cx:"8.66699",cy:"18",r:"2",stroke:"#525252","stroke-width":"1.5"}),o("path",{d:"M23.667 22H26.667V25C26.667 25.5523 26.2193 26 25.667 26H24.667C24.1147 26 23.667 25.5523 23.667 25V22Z",stroke:"#525252","stroke-width":"1.5"}),o("path",{d:"M6.66699 22H9.66699V25C9.66699 25.5523 9.21928 26 8.66699 26H7.66699C7.11471 26 6.66699 25.5523 6.66699 25V22Z",stroke:"#525252","stroke-width":"1.5"}),o("path",{d:"M7.14333 8.79285C7.46097 7.09881 8.75833 5.75748 10.4408 5.38359V5.38359C14.5416 4.47231 18.7924 4.47231 22.8931 5.38359V5.38359C24.5757 5.75748 25.873 7.09881 26.1907 8.79285L27.167 14V14C26.8606 13.3871 26.2342 13 25.549 13H7.78503C7.09982 13 6.47343 13.3871 6.16699 14V14L7.14333 8.79285Z",stroke:"#525252","stroke-width":"1.5","stroke-linejoin":"round"})],-1)),w(" "+i((b=s.i)==null?void 0:b.own),1)],2)])):d("",!0),k(I(h,{modelValue:this.model,"onUpdate:modelValue":t[6]||(t[6]=p=>this.model=p),onTriggerCheck:s.parseCheck,type:"sendChecked"},null,8,["modelValue","onTriggerCheck"]),[[C,s.activeTransport!=="own"]])]),o("div",tt,[o("span",{class:"w-os-where__submit",onClick:t[7]||(t[7]=p=>this.model.isOpen===!1)},i(this.model.submit_title),1)])])],2)]))],2)}const ot=F(ze,[["render",st]]),rt={shadowRoot:!1,props:{modelValue:{type:[Number,Object],required:!0},label:{type:String,default:""},submitLabel:{type:String,default:""},clearLabel:{type:String,default:"Очистить"},adultLabel:{type:String,default:"Взрослые"},childLabel:{type:String,default:"Дети"},min:{type:Number,default:1},max:{type:Number,default:6}},emits:["update:modelValue"],data(){return{isOpen:!1}},computed:{title(){return[this.plural(this.adults,["взрослый","взрослых","взрослых"]),this.childrenTitle].filter(Boolean).join(" + ")},adults(){var e;return Math.min(this.max,this.normalizeCount(((e=this.modelValue)==null?void 0:e.adults)??this.modelValue,this.min))},children(){var e;return Math.min(Math.max(0,this.max-this.adults),this.normalizeCount(((e=this.modelValue)==null?void 0:e.children)??0,0))},total(){return this.adults+this.children},childrenTitle(){return this.children>0?this.plural(this.children,["ребенок","ребенка","детей"]):""},canDecreaseAdults(){return this.adults>this.min},canDecreaseChildren(){return this.children>0},canIncrease(){return this.total<this.max}},methods:{open(){this.isOpen=!0},close(){this.isOpen=!1},clearSelected(){this.updateCount(this.min,0)},decreaseAdults(){this.canDecreaseAdults&&this.updateCount(this.adults-1,this.children)},increaseAdults(){this.canIncrease&&this.updateCount(this.adults+1,this.children)},decreaseChildren(){this.canDecreaseChildren&&this.updateCount(this.adults,this.children-1)},increaseChildren(){this.canIncrease&&this.updateCount(this.adults,this.children+1)},updateCount(e,t){const l=Math.min(this.max,this.normalizeCount(e,this.min)),c=Math.min(Math.max(0,this.max-l),this.normalizeCount(t,0)
1);this.$emit("update:modelValue",{adults:l,children:c})},normalizeCount(e,t){const l=Number(e);return Number.isFinite(l)?Math.max(t,Math.floor(l)):t},plural(e,t){const l=Math.abs(e)%100,c=l%10;return l>10&&l<20?e+" "+t[2]:c>1&&c<5?e+" "+t[1]:c===1?e+" "+t[0]:e+" "+t[2]}}},lt={class:"w-os-from__searchInner"},it={class:"w-os-from__searchTextInner"},nt={class:"w-os-from__searchText"},at={class:"w-os-peoples__modal"},dt={class:"w-os-peoples__modal_body"},mt={class:"w-os-from__modal_header"},ct={class:"w-os-from__modal_header_title"},ht={class:"w-os-peoples__section"},_t={class:"w-os-peoples__adult"},ut={class:"w-os-peoples__adultLeft"},pt={class:"w-os-peoples__adultCount"},ft={class:"w-os-peoples__section"},wt={class:"w-os-peoples__adult"},gt={class:"w-os-peoples__adultLeft"},bt={class:"w-os-peoples__adultCount"},kt={class:"w-os-peoples__modal_body_btns"};function Ct(e,t,l,c,r,s){return a(),m("div",{class:u(["w-os-peoples",{"w-os-peoples--open":r.isOpen}])},[o("div",{class:"w-os-peoples__in",onClick:t[0]||(t[0]=(...h)=>s.open&&s.open(...h))},[o("div",lt,[o("div",it,[o("span",nt,i(s.title),1),t[10]||(t[10]=o("span",{class:"w-os-from__mark"},null,-1))])])]),o("div",{class:"w-os-peoples__wrap",onClick:t[1]||(t[1]=(...h)=>s.close&&s.close(...h))}),o("div",at,[o("div",dt,[o("div",mt,[o("span",{class:"b-btn--modal-back",onClick:t[2]||(t[2]=(...h)=>s.close&&s.close(...h))}),o("div",ct,i(l.label),1),o("span",{class:"b-btn--modal-close",onClick:t[3]||(t[3]=(...h)=>s.close&&s.close(...h))})]),o("div",ht,[o("div",_t,[o("div",null,i(l.adultLabel),1),o("div",ut,[o("span",{class:u(["w-os-peoples__minus",{"w-os-peoples__btn_disable":!s.canDecreaseAdults}]),onClick:t[4]||(t[4]=(...h)=>s.decreaseAdults&&s.decreaseAdults(...h))},"-",2),o("span",pt,i(s.adults),1),o("span",{class:u(["w-os-peoples__plus",{"w-os-peoples__btn_disable":!s.canIncrease}]),onClick:t[5]||(t[5]=(...h)=>s.increaseAdults&&s.increaseAdults(...h))},"+",2)])])]),o("div",ft,[o("div",wt,[o("div",null,i(l.childLabel),1),o("div",gt,[o("span",{class:u(["w-os-peoples__minus",{"w-os-peoples__btn_disable":!s.canDecreaseChildren}]),onClick:t[6]||(t[6]=(...h)=>s.decreaseChildren&&s.decreaseChildren(...h))},"-",2),o("span",bt,i(s.children),1),o("span",{class:u(["w-os-peoples__plus",{"w-os-peoples__btn_disable":!s.canIncrease}]),onClick:t[7]||(t[7]=(...h)=>s.increaseChildren&&s.increaseChildren(...h))},"+",2)])])]),o("div",kt,[o("span",{class:"w-os-peoples__clear",onClick:t[8]||(t[8]=(...h)=>s.clearSelected&&s.clearSelected(...h))},i(l.clearLabel),1),o("span",{class:"w-os-peoples__submit",onClick:t[9]||(t[9]=(...h)=>s.close&&s.close(...h))},i(l.submitLabel),1)])])])],2)}const vt=F(rt,[["render",Ct]]),yt={shadowRoot:!1,components:{CheckList:L,Accommodation:fe,Row:Ie,RowFilter:Ze,RowFilterMobile:ot,PeopleCount:vt,AgencyOrderForms:B},beforeMount(){var c;const e=document.getElementById("tour-form-data"),t=e?JSON.parse(e.textContent):{};this.i=t.i18n||{},this.tourId=t.tour_id??null,this.isProgram=!!t.is_program,this.departureLabel=t.departure_label||"",this.departureCity=t.departure_city||"",this.transportLabel=t.transport_label||"",this.transportIcon=t.transport_icon||"",this.priceService=t.price_service??0,this.priceServiceSymbol=t.price_service_symbol||"",this.agency=t.agency||null,this.dates=Array.isArray(t.dates)?t.dates:[],this.hasInitialDates=this.dates.length>0,this.summary=t.summary||{};const l=t.main_id??((c=this.dates[0])==null?void 0:c.id)??null;this.mainId=this.getRelevantDateId(this.dates)??l,this.selectedId=this.mainId,this.checkId=this.mainId,this.buildFilters(t.accommodations,t.foods,t.nights,t.months)},data(){return{i:{},tourId:null,isProgram:!1,departureLabel:"",departureCity:"",transportLabel:"",transportIcon:"",priceService:0,priceServiceSymbol:"",agency:null,dates:[],hasInitialDates:!1,summary:{},mainId:null,selectedId:null,checkId:null,peopleCount:{adults:1,children:0},datesFilter:{name:"dates",title:"",emptyTitle:"",classIcon:"",items:[],checkedItems:[],isOpen:!1,submit_title:""},departureFilter:{name:"departure",title:"",emptyTitle:"",classIcon:"",items:[],checkedItems:[],isOpen:!1,disabled:!0,submit_title:""},accFilter:{name:"accommodation",title:"",emptyTitle:"",classIcon:"",items:[],checkedItems:[],isOpen:!1,submit_title:""}
1,foodFilter:{name:"food",title:"",emptyTitle:"",classIcon:"",items:[],checkedItems:[],isOpen:!1,submit_title:""},nightsFilter:{name:"nights",title:"",emptyTitle:"",classIcon:"",items:[],checkedItems:[],isOpen:!1,submit_title:""},isOpen:!1,isPriceOpen:!1,isLoadingSearch:!0,showContacts:!1,orderForm:!1}},computed:{selected(){return this.dates.find(e=>e.id===this.selectedId)??this.dates[0]??null},sortedDates(){return[...this.dates].sort((e,t)=>(e.date_from||"").localeCompare(t.date_from||""))},agencyName(){var e;return((e=this.agency)==null?void 0:e.name)||"Traveling"},agencyPhones(){var e;return((e=this.agency)==null?void 0:e.phones)??[]},agencyAddress(){var e;return((e=this.agency)==null?void 0:e.address)||""},agencyWorktime(){var e;return((e=this.agency)==null?void 0:e.worktime)||""},manager(){var e;return((e=this.agency)==null?void 0:e.manager)??null},hasContacts(){return this.agencyPhones.length>0||!!this.manager||!!this.agencyAddress||!!this.agencyWorktime},tourTitleSuffix(){return this.tourId?"№"+this.tourId:""},agencyLogoUrl(){var e;return((e=this.agency)==null?void 0:e.logo_url)||""},agencyLogoAlt(){var e;return((e=this.agency)==null?void 0:e.name)||"Туроператор"},commissionLabel(){var e;return((e=this.selected)==null?void 0:e.commission_label)||""},showCommission(){return this.commissionLabel!==""},priceServiceLabel(){return this.serviceAmountLabel(1)},programAdults(){var e;return Math.max(1,Number((e=this.peopleCount)==null?void 0:e.adults)||1)},programChildren(){var e;return Math.max(0,Number((e=this.peopleCount)==null?void 0:e.children)||0)},programPeopleTotal(){return this.programAdults+this.programChildren},effectivePersons(){var e;return this.isProgram?this.programPeopleTotal:Number((e=this.selected)==null?void 0:e.persons)||0},totalPrice(){const e=this.selected;if(!e)return null;const t=this.effectivePersons,l=Number(e.price_person)||0,c=Number(this.priceService)||0;return this.isProgram?(l+c)*t:l*t+c},totalPriceLabel(){var e;return this.totalPrice===null?"":this.formatPrice(this.totalPrice,(e=this.selected)==null?void 0:e.currency_symbol)},priceRows(){const e=this.selected;if(!e)return[];const t=[],l=this.effectivePersons;if(this.isProgram){for(let r=1;r<=this.programAdults;r++)t.push({title:(this.i.adult||"Взрослый")+" "+r,value:e.price_person_label});for(let r=1;r<=this.programChildren;r++)t.push({title:(this.i.children||"Ребенок")+" "+r,value:e.price_person_label})}else for(let r=1;r<=l;r++)t.push({title:(this.i.adult||"Взрослый")+" "+r,value:e.price_person_label});const c=this.serviceAmountLabel(this.isProgram?l:1);return c&&t.push({title:this.i.tour_service||"Туруслуга",value:c}),t},showAccommodation(){var e;return!!((e=this.selected)!=null&&e.accommodation_id)||this.accFilter.items.length>0},showRoomRow(){var e;return this.showAccommodation||!!((e=this.selected)!=null&&e.stay_label)},showFood(){var e;return!!((e=this.selected)!=null&&e.food_title)||this.foodFilter.items.length>0},showNights(){return this.nightsFilter.items.length>0},showDates(){return this.datesFilter.items.length>0},showDeparture(){return!!this.departureLabel},showTransport(){return!!this.departureLabel||!!this.transportIcon},modalDepartureLabel(){const e=this.departureLabel.trim(),t=(this.i.from||"").trim(),l=e.toLowerCase().replace(/\s+/g," "),c=t.toLowerCase();return!e||!t||l===c||l.startsWith(c+" ")?e:`${t} ${e}`.trim()},transportIconClass(){return this.transportIcon?"w-os-form_modal_data_item_block__icon w-os-form_modal_data_item_block__icon--"+this.transportIcon:""},rowPeoples(){var e;return{classIcon:"w-os-peoples__in",title:((e=this.selected)==null?void 0:e.peoples_label)||this.i.room_title||"",isChoose:!!this.selected}},rowDate(){const e=this.selected;return{classIcon:"w-os-where__in",title:e?e.date_label+(e.nights_label?" / "+e.nights_label:""):"",isCh
1oose:!!e}},rowDeparture(){return{classIcon:"w-os-from__in",title:this.departureLabel,isChoose:!!this.departureLabel,disabled:!0}},rowFood(){var e,t;return{classIcon:"w-os-where__in w-os-where__food",title:((e=this.selected)==null?void 0:e.food_title)||this.i.any_food||"",isChoose:!!((t=this.selected)!=null&&t.food_title)}},rowRoom(){var t,l;const e=[(t=this.selected)==null?void 0:t.room_label,(l=this.selected)==null?void 0:l.stay_label].filter(Boolean).join(", ");return{classIcon:"w-os-where__in w-os-where__room",title:e||this.i.any_room||"",isChoose:!!e}}},methods:{parseDateParam(e){const t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e||"");if(!t)return null;const l=Number(t[1]),c=Number(t[2]),r=Number(t[3]),s=Date.UTC(l,c-1,r),h=new Date(s);return h.getUTCFullYear()!==l||h.getUTCMonth()!==c-1||h.getUTCDate()!==r?null:s},getRelevantDateId(e){var s;if(!Array.isArray(e)||!e.length)return null;const t=new URLSearchParams(window.location.search);let l=this.parseDateParam(t.get("date_from")),c=this.parseDateParam(t.get("date_to"));if(l===null&&c===null)return null;l??(l=c),c??(c=l),l>c&&([l,c]=[c,l]);const r=e.map(h=>({date:h,timestamp:this.parseDateParam(h==null?void 0:h.date_from)})).filter(h=>{var _;return((_=h.date)==null?void 0:_.id)!=null&&h.timestamp!==null}).sort((h,_)=>h.timestamp-_.timestamp);return r.length?l===c?r.reduce((h,_)=>{const g=Math.abs(_.timestamp-l);return g<h.distance?{id:_.date.id,distance:g}:h},{id:r[0].date.id,distance:Math.abs(r[0].timestamp-l)}).id:((s=r.find(h=>h.timestamp>=l&&h.timestamp<=c))==null?void 0:s.date.id)??null:null},formatPrice(e,t){return Math.round(Number(e)||0).toLocaleString("ru-RU")+" "+(t||"")},serviceAmountLabel(e){const t=Number(this.priceService)*e;return!Number.isFinite(t)||t<=0?"":this.formatPrice(t,this.priceServiceSymbol)},buildFilters(e,t,l,c){this.datesFilter={name:"dates",title:this.i.dates_title||"Даты",emptyTitle:this.i.any_dates||"Любой месяц",classIcon:"w-os-where__in",items:(c||[]).map(r=>({id:r.value,name:r.label,isChecked:!1,isHide:!1})),checkedItems:[],isOpen:!1,submit_title:this.i.choose||"Выбрать"},this.departureFilter={name:"departure",title:this.i.departure_title||"Город отправления",emptyTitle:this.departureCity||this.departureLabel||"",classIcon:"w-os-from__in",items:[],checkedItems:[],isOpen:!1,disabled:!0,submit_title:this.i.choose||"Выбрать"},this.accFilter={name:"accommodation",title:this.i.room_title||"Размещение",emptyTitle:this.i.any_room||"Любой номер",classIcon:"w-os-where__in w-os-where__room",items:(e||[]).map(r=>({id:r.id,name:this.accName(r),isChecked:!1,isHide:!1})),checkedItems:[],isOpen:!1,submit_title:this.i.choose||"Выбрать"},this.foodFilter={name:"food",title:this.i.food_title||"Питание",emptyTitle:this.i.any_food||"Любое питание",classIcon:"w-os-where__in w-os-where__food",items:(t||[]).map(r=>({id:r.id,name:r.title,isChecked:!1,isHide:!1})),checkedItems:[],isOpen:!1,submit_title:this.i.choose||"Выбрать"},this.nightsFilter={name:"nights",title:this.i.nights_title||"Число ночей",emptyTitle:this.i.any_nights||"Любое",classIcon:"w-os-where__in w-os-where__nights",items:(l||[]).map(r=>({id:r.value,name:r.label,isChecked:!1,isHide:!1})),checkedItems:[],isOpen:!1,submit_title:this.i.choose||"Выбрать"}},accName(e){return e.short_name&&e.peoples_label?e.short_name+" · "+e.peoples_label:e.title||e.short_name||""},toggleModal(){this.isOpen=!this.isOpen,document.body.style.overflow=this.isOpen?"hidden":"",this.isOpen&&(this.checkId=this.selectedId)},toggleFilter(e){[this.datesFilter,this.accFilter,this.foodFilter,this.nightsFilter].forEach(t=>{t.isOpen=t.name===e?!t.isOpen:!1})},closeFilters(){[this.datesFilter,this.accFilter,this.foodFilter,this.nightsFilter].forEach(e=>{e.isOpen=!1})},checkItem(e){e!=null&&e.id&&(this.checkId=e.id)},applySelection(){this.checkId&&(this.selectedId=this.checkId),this.toggleModal()},onFilterChange(){this.applyFilters(!0)},applyFilters(e){this.isLoadingSearch=!1;
1const t={accommodation_ids:this.accFilter.checkedItems.map(l=>l.id),food_ids:this.foodFilter.checkedItems.map(l=>l.id),nights:this.nightsFilter.checkedItems.map(l=>l.id),months:this.datesFilter.checkedItems.map(l=>l.id)};axios.post("/api/tour/"+this.tourId+"/dates",{filters:t,refresh_filters:e}).then(l=>{l!=null&&l.data&&this.applyServerResponse(l.data),this.isLoadingSearch=!0}).catch(()=>{this.isLoadingSearch=!0})},applyServerResponse(e){var t;e.filters&&(this.mergeFilterItems(this.datesFilter,(e.filters.months||[]).map(l=>({id:l.value,name:l.label}))),this.mergeFilterItems(this.accFilter,(e.filters.accommodations||[]).map(l=>({id:l.id,name:this.accName(l)}))),this.mergeFilterItems(this.foodFilter,(e.filters.foods||[]).map(l=>({id:l.id,name:l.title}))),this.mergeFilterItems(this.nightsFilter,(e.filters.nights||[]).map(l=>({id:l.value,name:l.label})))),this.dates=Array.isArray(e.dates)?e.dates:[],this.dates.some(l=>l.id===this.selectedId)||(this.selectedId=e.main_id??((t=this.dates[0])==null?void 0:t.id)??null),this.dates.some(l=>l.id===this.checkId)||(this.checkId=this.selectedId)},mergeFilterItems(e,t){const l=new Set((e.checkedItems||[]).map(c=>c.id));e.items=t.map(c=>({...c,isChecked:l.has(c.id),isHide:!1})),e.checkedItems=e.items.filter(c=>c.isChecked)},stayHotelLine(e){return e.hotel_info||this.stayRoomText(e)},stayRoomLine(e){return e.hotel_info?this.stayRoomText(e):""},stayRoomText(e){return[e.room_label,e.room_info].filter(Boolean).join(", ")},showContactForm(){this.orderForm=!0},buildOrderData(){const e=this.selected;if(!e)return{id:this.tourId};const t=this.effectivePersons,l=this.isProgram?this.programAdults:e.adults,c=this.isProgram?this.programChildren:e.children;return{id:this.tourId,tour_date_id:e.id,date_from:e.date_from,date_to:e.date_to,date_label:e.date_label,nights:e.nights,accommodation:{id:e.accommodation_id,short_name:e.accommodation_short,title:e.accommodation_title,persons:e.persons},food:{id:e.food_id,title:e.food_title},departure:this.departureLabel,transport:this.transportLabel,price_person:e.price_person,price_total:this.isProgram?(Number(e.price_person)||0)*t:e.price_total,currency:e.currency,adult_count:l,child_count:c}}}},It={class:"b-offers__form_content"},Ft={key:0,class:"b-offers__form_title"},Tt={class:"b-offers__form_title--title b-offers__form_title--price"},Vt={key:0,class:"b-offers__form_title--desc"},Lt={key:1,class:"b-offers__form_body"},xt={class:"w-os-form_rows"},Mt={class:"w-os-form_price w-os-form_price--tour"},At={class:"w-os-form_price_container"},Ot={class:"w-os-form_price_value"},St={class:"w-os-form_price_secondary w-os-form_price_secondary--open"},Ut={key:0,class:"b-tour__form_commission"},Dt={class:"b-tour__form_commission--title"},Pt={class:"b-tour__form_commission--value"},Nt={key:1,class:"b-tour__form_operator"},Rt=["src","alt"],Ht={class:"w-os-form_btns"},Bt={key:2,class:"b-tour__card"},jt={class:"b-tour__facts"},Et={key:0},Zt={key:1},zt={key:2},Jt={key:3},qt={key:4},Wt={key:5},Yt={class:"w-os-form_btns"},Gt={class:"w-os-form_modal_container"},Kt={class:"w-os-form_modal_title"},Qt={class:"w-os-form_modal_body"},Xt={class:"b-offersSearch__inner"},$t={class:"w-os-form_modal_filt w-os-form_modal_filt--tour"},es={class:"w-os-form_modal_data"},ts=["onClick"],ss={class:"w-os-form_modal_data_item_block"},os={class:"w-os-form_modal_data_item_block"},rs={class:"w-os-form_modal_data_item_block w-os-form_modal_data_item_block--col"},ls={key:0,class:"w-os-form_modal_data_item_stay--hotel"},is={key:1,class:"w-os-form_modal_data_item_stay--room"},ns={class:"w-os-form_modal_data_item_block"},as={class:"w-os-form_modal_data_item_block"},ds={class:"w-os-form_modal_data"},ms={class:"w-os-form_modal_mobile"},cs={class:"w-os-form_modal_mobile_filt"},hs={class:"w-os-form_modal_data"},_s=["onClick"],us={class:"w-os-form_modal_mobile_item_container"},ps={class:"w-os-form_modal_mobile_item_title"},fs={key:0,class:"w-os-form_modal_mobile_item_text"},ws={key:1,class:"w-os-form_modal_mobile_item_stay"},gs={class:"w-os-form_modal_mobile_item_stay--hotel"},bs={key:0,class:"w-os-form_modal_mobile_item_stay--room"},ks={key:3,class:"w-os-form_modal_mobile_item_text"},Cs={class:"w-os-form_modal_mobile_item_price"},vs={class:"w-os-form_modal_data"},ys={class:"w-os-form_modal_btns"};function Is(e,t,l,c,r,s){const h=v("PeopleCount"),_=v("Row"),g=v("AgencyOrderForms"),b=v("RowFilter"),p=v("Accommodation"),V=v("RowFilterMobile");return a(),m(T,null,[k(o("div",It,[r.hasInitialDates?(a(),m("div",Ft,[o("p",Tt,[o("span",null,i(s.selected?s.selected.price_person_label:""),1),w(" "+i(r.i.per_person),1)]),s.priceServiceLabel?(a(),m("p",Vt,"+ туруслуга: "+i(s.priceServiceLabel),1)):d("",!0)])):d("",!0),r.hasInitialDates?(a(),m("div",Lt,[o("form",{name:"tour_form",class:"w-os-form",onSubmit:t[9]||(t[9]=y(()=>{},["prevent"]))},[o("div",xt,[r.isProgram?(a(),f(h,{key:0,modelValue:r.peopleCount,"onUpdate:modelValue":t[0]||(t[0]=n=>r.peopleCount=n),label:r.i.people_count_modal_title||"Отдыхающие","adult-label":r.i.people_count_adults_title||"Взрослые","child-label":r.i.people_count_children_title||r.i.children||"Дети","clear-label":r.i.clearAll||"Очистить","
1submit-label":r.i.choose||"Выбрать"},null,8,["modelValue","label","adult-label","child-label","clear-label","submit-label"])):s.showAccommodation?(a(),f(_,{key:1,modelValue:s.rowPeoples,"onUpdate:modelValue":t[1]||(t[1]=n=>s.rowPeoples=n),onTriggerModal:s.toggleModal},null,8,["modelValue","onTriggerModal"])):d("",!0),I(_,{modelValue:s.rowDate,"onUpdate:modelValue":t[2]||(t[2]=n=>s.rowDate=n),onTriggerModal:s.toggleModal},null,8,["modelValue","onTriggerModal"]),r.departureLabel?(a(),f(_,{key:2,modelValue:s.rowDeparture,"onUpdate:modelValue":t[3]||(t[3]=n=>s.rowDeparture=n),onTriggerModal:s.toggleModal},null,8,["modelValue","onTriggerModal"])):d("",!0),s.showFood?(a(),f(_,{key:3,modelValue:s.rowFood,"onUpdate:modelValue":t[4]||(t[4]=n=>s.rowFood=n),onTriggerModal:s.toggleModal},null,8,["modelValue","onTriggerModal"])):d("",!0),s.showRoomRow?(a(),f(_,{key:4,modelValue:s.rowRoom,"onUpdate:modelValue":t[5]||(t[5]=n=>s.rowRoom=n),onTriggerModal:s.toggleModal},null,8,["modelValue","onTriggerModal"])):d("",!0)]),o("div",Mt,[o("div",At,[o("span",{class:u(["w-os-form_price_title",{"w-os-form_price_title--active":r.isPriceOpen}]),onClick:t[6]||(t[6]=n=>r.isPriceOpen=!r.isPriceOpen)},[w(i(r.i.total)+" ",1),t[27]||(t[27]=o("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o("path",{d:"M14 5L8 11L2 5",stroke:"#525252","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],2),o("span",Ot,i(s.totalPriceLabel),1),s.priceRows.length?(a(),f(S,{key:0,name:"fade"},{default:O(()=>[k(o("div",St,[(a(!0),m(T,null,M(s.priceRows,(n,x)=>(a(),m("div",{key:x,class:"w-os-form_price_secondary_row"},[o("span",null,i(n.title),1),o("span",null,i(n.value),1)]))),128))],512),[[C,r.isPriceOpen]])]),_:1})):d("",!0)]),s.showCommission?(a(),m("div",Ut,[o("span",Dt,i(r.i.agent_c
1ommission_title),1),o("span",Pt,i(s.commissionLabel),1)])):d("",!0),s.agencyLogoUrl?(a(),m("div",Nt,[o("img",{src:s.agencyLogoUrl,alt:s.agencyLogoAlt,class:"b-tour__form_operator--img",height:"64",loading:"lazy"},null,8,Rt)])):d("",!0),o("div",Ht,[o("button",{type:"button",class:"b-btn b-btn--big b-btn--full b-btn--center",onClick:t[7]||(t[7]=(...n)=>s.showContactForm&&s.showContactForm(...n))},i(r.i.send_request),1),s.hasContacts?(a(),m("button",{key:0,type:"button",class:"b-btn b-btn--big b-btn--grey b-btn--full b-btn--center",onClick:t[8]||(t[8]=n=>r.showContacts=!0)},[t[28]||(t[28]=o("img",{src:P,alt:"контакты тура",width:"24",height:"24"},null,-1)),w(" "+i(r.i.show_contacts),1)])):d("",!0)])])],32)])):d("",!0),r.hasInitialDates?d("",!0):(a(),m("div",Bt,[o("ul",jt,[r.summary.departure?(a(),m("li",Et,[o("span",null,i(r.i.summary_departure),1),o("b",null,i(r.summary.departure),1)])):d("",!0),r.summary.transport?(a(),m("li",Zt,[o("span",null,i(r.i.summary_transport),1),o("b",null,i(r.summary.transport),1)])):d("",!0),r.summary.nights?(a(),m("li",zt,[o("span",null,i(r.i.summary_nights),1),o("b",null,i(r.summary.nights),1)])):d("",!0),r.summary.food?(a(),m("li",Jt,[o("span",null,i(r.i.summary_food),1),o("b",null,i(r.summary.food),1)])):d("",!0),r.summary.accommodation?(a(),m("li",qt,[o("span",null,i(r.i.summary_accommodation),1),o("b",null,i(r.summary.accommodation),1)])):d("",!0),r.summary.buy_before?(a(),m("li",Wt,[o("span",null,i(r.i.summary_buy_before),1),o("b",null,i(r.summary.buy_before),1)])):d("",!0)]),o("div",Yt,[o("button",{type:"button",class:"b-btn b-btn--big b-btn--full b-btn--center",onClick:t[10]||(t[10]=(...n)=>s.showContactForm&&s.showContactForm(...n))},i(r.i.send_request),1),s.hasContacts?(a(),m("button",{key:0,type:"button",class:"b-btn b-btn--big b-btn--grey b-btn--full b-btn--center",onClick:t[11]||(t[11]=n=>r.showContacts=!0)},[t[29]||(t[29]=o("img",{src:P,alt:"контакты тура",width:"24",height:"24"},null,-1)),w(" "+i(r.i.show_contacts),1)])):d("",!0)])]))],512),[[C,!r.orderForm&&!r.showContacts]]),I(g,{"visible-contacts":r.showContacts,"onUpdate:visibleContacts":t[12]||(t[12]=n=>r.showContacts=n),"visible-order":r.orderForm,"onUpdate:visibleOrder":t[13]||(t[13]=n=>r.orderForm=n),agency:r.agency,i18n:r.i,"title-suffix":s.tourTitleSuffix,"build-order-data":s.buildOrderData},null,8,["visible-contacts","visible-order","agency","i18n","title-suffix","build-order-data"]),(a(),f(H,{to:"body"},[I(S,{name:"modal-fade"},{default:O(()=>[r.hasInitialDates&&r.isOpen?(a(),m("div",{key:0,class:"w-os-form_modal",onClick:t[26]||(t[26]=(...n)=>s.closeFilters&&s.closeFilters(...n))},[o("div",Gt,[o("span",{class:"b-btn--modal-close",onClick:t[14]||(t[14]=(...n)=>s.toggleModal&&s.toggleModal(...n))}),o("p",Kt,i(r.i.modal_title),1),o("div",Qt,[o("div",Xt,[o("div",$t,[s.showDates?(a(),f(b,{key:0,modelValue:r.datesFilter,"onUpdate:modelValue":t[15]||(t[15]=n=>r.datesFilter=n),onTriggerFilter:s.toggleFilter,onTriggerUpdateItems:s.onFilterChange},null,8,["modelValue","onTriggerFilter","onTriggerUpdateItems"])):d("",!0),s.showNights?(a(),f(b,{key:1,modelValue:r.nightsFilter,"onUpdate:modelValue":t[16]||(t[16]=n=>r.nightsFilter=n),onTriggerFilter:s.toggleFilter,onTriggerUpdateItems:s.onFilterChange},null,8,["modelValue","onTriggerFilter","onTriggerUpdateItems"])):d("",!0),s.showDeparture?(a(),f(b,{key:2,modelValue:r.departureFilter,"onUpdate:modelValue":t[17]||(t[17]=n=>r.departureFilter=n)},null,8,["modelValue"])):d("",!0),s.showFood?(a(),f(b,{key:3,modelValue:r.foodFilter,"onUpdate:modelValue":t[18]||(t[18]=n=>r.foodFilter=n),onTriggerFilter:s.toggleFilter,onTriggerUpdateItems:s.onFilterChange},null,8,["modelValue","onTriggerFilter","onTriggerUpdateItems"])):d("",!0),s.showAccommodation?(a(),f(p,{key:4,modelValue:r.accFilter,"onUpdate:modelValue":t[19]||(t[19]=n=>r.accFilter=n),variant:"desktop",onTriggerFilter:s.toggleFilter,onTriggerUpdateItems:s.onFilterChange},null,8,["modelValue","onTriggerFilter","onTriggerUpdateItems"])):d("",!0)])]),k(o("div",es,[(a(!0),m(T,null,M(s.sortedDates,n=>(a(),m("div",{key:n.id,class:u(["w-os-form_modal_data_item",{"w-os-form_modal_data_item--active":n.id===r.checkId,"w-os-form_modal_data_item--no-transport":!s.showTransport}]),onClick:y(x=>s.checkItem(n),["stop"])},[o("div",ss,[t[30]||(t[30]=o("img",{src:N,class:"w-os-form_check",alt:""},null,-1)),w(" "+i(n.date_label),1)]),o("div",os,[o("span",null,i(n.nights_label),1)]),o("div",rs,[s.stayHotelLine(n)?(a(),m("div",ls,i(s.stayHotelLine(n)),1)):d("",!0),s.stayRoomLine(n)?(a(),m("div",is,i(s.stayRoomLine(n)),1)):d("",!0)]),s.showTransport?(a(),m("div",{key:0,class:u(["w-os-form_modal_data_item_block",s.transportIconClass])},i(s.modalDepartureLabel),3)):d("",!0),o("div",ns,i(n.food_title),
11),o("div",as,[o("span",null,i(n.price_person_label),1),w(" / "+i(r.i.per_person_short),1)])],10,ts))),128))],512),[[C,r.isLoadingSearch]]),k(o("div",ds,t[31]||(t[31]=[o("div",{class:"w-os-form_modal_data__loader"},[o("img",{src:D,width:"90",height:"90",class:"w-os-form_modal_data__loader--img",alt:"loader items modal"})],-1)]),512),[[C,!r.isLoadingSearch]]),k(o("div",{class:"w-os-form_modal_data--error"},i(r.i.no_dates),513),[[C,r.isLoadingSearch&&!s.sortedDates.length]])]),o("div",ms,[o("div",cs,[s.showDates?(a(),f(V,{key:0,modelValue:r.datesFilter,"onUpdate:modelValue":t[20]||(t[20]=n=>r.datesFilter=n),onTriggerFilter:s.toggleFilter,onTriggerUpdateItems:s.onFilterChange},null,8,["modelValue","onTriggerFilter","onTriggerUpdateItems"])):d("",!0),s.showNights?(a(),f(V,{key:1,modelValue:r.nightsFilter,"onUpdate:modelValue":t[21]||(t[21]=n=>r.nightsFilter=n),onTriggerFilter:s.toggleFilter,onTriggerUpdateItems:s.onFilterChange},null,8,["modelValue","onTriggerFilter","onTriggerUpdateItems"])):d("",!0),s.showDeparture?(a(),f(V,{key:2,modelValue:r.departureFilter,"onUpdate:modelValue":t[22]||(t[22]=n=>r.departureFilter=n)},null,8,["modelValue"])):d("",!0),s.showFood?(a(),f(V,{key:3,modelValue:r.foodFilter,"onUpdate:modelValue":t[23]||(t[23]=n=>r.foodFilter=n),onTriggerFilter:s.toggleFilter,onTriggerUpdateItems:s.onFilterChange},null,8,["modelValue","onTriggerFilter","onTriggerUpdateItems"])):d("",!0),s.showAccommodation?(a(),f(p,{key:4,modelValue:r.accFilter,"onUpdate:modelValue":t[24]||(t[24]=n=>r.accFilter=n),variant:"mobile",onTriggerFilter:s.toggleFilter,onTriggerUpdateItems:s.onFilterChange},null,8,["modelValue","onTriggerFilter","onTriggerUpdateItems"])):d("",!0)]),k(o("div",hs,[(a(!0),m(T,null,M(s.sortedDates,n=>(a(),m("div",{key:n.id,class:u(["w-os-form_modal_mobile_item",{"w-os-form_modal_mobile_item--active":n.id===r.checkId}]),onClick:y(x=>s.checkItem(n),["stop"])},[t[32]||(t[32]=o("div",{class:"w-os-form_modal_mobile_item_check"},[o("img",{src:N,class:"w-os-form_check",alt:""})],-1)),o("div",us,[o("div",ps,i(n.date_label),1),n.nights_label?(a(),m("div",fs,[o("span",null,i(n.nights_label),1)])):d("",!0),s.stayHotelLine(n)?(a(),m("div",ws,[o("div",gs,i(s.stayHotelLine(n)),1),s.stayRoomLine(n)?(a(),m("div",bs,i(s.stayRoomLine(n)),1)):d("",!0)])):d("",!0),s.showTransport?(a(),m("div",{key:2,class:u(["w-os-form_modal_mobile_item_text w-os-form_modal_mobile_item_transport",s.transportIconClass])},i(r.departureLabel),3)):d("",!0),n.food_title?(a(),m("div",ks,i(n.food_title),1)):d("",!0),o("div",Cs,[o("span",null,i(n.price_person_label),1),w(" / "+i(r.i.per_person_short),1)])])],10,_s))),128))],512),[[C,r.isLoadingSearch]]),k(o("div",vs,t[33]||(t[33]=[o("div",{class:"w-os-form_modal_data__loader"},[o("img",{src:D,width:"90",height:"90",class:"w-os-form_modal_data__loader--img",alt:"loader items modal"})],-1)]),512),[[C,!r.isLoadingSearch]]),k(o("div",{class:"w-os-form_modal_data--error"},i(r.i.no_dates),513),[[C,r.isLoadingSearch&&!s.sortedDates.length]])]),o("div",ys,[o("button",{type:"button",class:"b-btn b-btn--big b-btn--center",onClick:t[25]||(t[25]=y((...n)=>s.applySelection&&s.applySelection(...n),["stop"]))},i(r.i.choose),1)])])])):d("",!0)]),_:1})]))],64)}const Fs=F(yt,[["render",Is]]),R=3,Ts={name:"TourVariants",shadowRoot:!1,components:{Items:j},data(){return{tours:[],expanded:!1,i:{},i18nJson:"{}"}},computed:{visibleTours(){return this.expanded?this.tours:this.tours.slice(0,R)},hasMore(){return!this.expanded&&this.tours.length>R}},created(){const e=this.readJson("tour-variants-data");this.tours=Array.isArray(e)?e:[],this.i=this.readJson("tour-variants-i18n")??{},this.i18nJson=JSON.stringify(this.i)},methods:{showAll(){this.expanded=!0},readJson(e){const t=document.getElementById(e);if(!(t!=null&&t.textContent))return null;try{return JSON.parse(t.textContent)}catch{return null}}}},Vs={key:0,class:"b-tour__variants_more"};function Ls(e,t,l,c,r,s){const h=v("Items");return s.visibleTours.length?(a(),m(T,{key:0},[I(h,{"model-value":s.visibleTours,i18n:r.i18nJson,"card-class":"b-offersItem--compact"},null,8,["model-value","i18n"]),s.hasMore?(a(),m("div",Vs,[o("button",{type:"button",class:"b-btn b-btn--alt",onClick:t[0]||(t[0]=(..._)=>s.showAll&&s.showAll(..._))},i(r.i.more_options||"Больше вариантов"),1)])):d("",!0)],64)):d("",!0)}const xs=F(Ts,[["render",Ls]]);customElements.get("tour-form")||customElements.define("tour-form",U(Fs)),customElements.get("tour-variants")||customElements.define("tour-variants",U(xs));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.