PageSourceSearch

https://book.tez-tour.ro/_nuxt/C7KbMHG1.js

js tez-tour.ro collected 2026-10-02 22:01:08 UTC 11,104 bytes, 4 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d8644412-ee8c-519d-b492-bd343abe7494")}catch(e){}}();
3import{$t as e,Bn as t,Bt as n,E as r,Gt as i,H as a,Ht as o,Jt as s,Kt as c,Mt as l,Nn as u,On as d,Q as f,Tn as p,Vt as m,Y as h,Z as g,_r as _,b as v,br as y,gn as b,gt as x,h as S,hr as C,in as w,it as T,kn as ee,pn as E,qn as D,rn as O,tr as k,yn as A,zt as j}from"./CRN0ZWjI.js";import{n as te}from"./jD4CS3Jy.js";import{t as M}from"#entry";import{t as N}from"./CVUfgejn.js";import{i as P}from"./DrojGgfk.js";import{t as F}from"./DWGgP-ld.js";import{t as I}from"./D9HeLGdF.js";import{t as L}from"./Dqo-Dlw4.js";import{t as R}from"./CQNF0tcI.js";e(),k();var z={class:`d-flex align-start w-100`},B={class:`d-flex align-start w-100 ms-3`},V={class:`d-flex align-center text-body-medium`},H={class:`me-auto ms-1 font-weight-medium`},U={class:`font-weight-medium`},W={class:`d-flex align-start mt-4`},G={class:`text-start`},K={class:`text-headline-small text-md-body-large text-gray-2 font-weight-medium`},q={class:`text-body-small text-gray-3 font-weight-medium`},J={class:`text-body-small text-gray-3 font-weight-medium text-no-wrap`},Y={class:`flex-1-1-100 mx-md-6 mx-4`},X={class:`d-flex align-center justify-space-between`},Z={class:`text-body-small text-gray-3 font-weight-medium`},Q={class:`mt-2 d-flex align-center justify-space-between`},ne={class:`flex-1-1`},re={class:`d-flex align-center justify-space-between`},ie={class:`mt-1 text-body-small font-weight-medium text-primary`},ae={class:`mt-1 text-body-small font-weight-medium text-primary`},oe={class:`text-end`},se={class:`text-headline-small text-gray-2 font-weight-medium`},ce={class:`text-body-small text-gray-3 font-weight-medium`},le={class:`text-body-small text-gray-3 font-weight-medium text-no-wrap`},ue=s({__name:`Card`,props:{segment:{}},setup(e){let t=(e,t)=>{let[n,r]=e.split(`:`).map(Number),[i,a]=t.split(`:`).map(Number),o=n*60+r,s=i*60+a-o;return`${Math.floor(s/60)}ч ${s%60}м`};return(o,s)=>(E(),n(r,{variant:`flat`,class:`custom-elevation pa-md-6 pa-3`},{default:d(()=>[j(`div`,null,[j(`div`,z,[c(x,{location:`top`},{activator:d(({props:t})=>[c(F,O({name:e.segment.airline.short_name},t,{height:`42`,width:`42`}),null,16,[`name`])]),default:d(()=>[j(`span`,null,y(e.segment.airline.name),1)]),_:1}),j(`div`,B,[j(`div`,null,[j(`div`,V,[j(`span`,{style:_({color:e.segment.airline.color}),class:`font-weight-bold`},y(e.segment.flight.prefix),5),j(`span`,H,y(e.segment.flight.number),1)]),c(a,{color:e.segment.has_tickets?`green`:`red`,variant:`tonal`,class:`d-flex align-center w-100 mt-1`,size:`x-small`},{default:d(()=>[c(f,{start:``,icon:e.segment.has_tickets?`uil-check-circle`:`uil-times-circle`,size:`16`},null,8,[`icon`]),j(`span`,U,y(e.segment.has_tickets?`Есть`:`Нет`),1)]),_:1},8,[`color`])]),c(S),c(I,{item:e.segment},null,8,[`item`])])]),j(`div`,W,[j(`div`,G,[j(`div`,K,y(e.segment.time[0]),1),j(`div`,q,y(e.segment.direction.from.name),1),j(`div`,J,y(e.segment.date[0])+`, `+y(e.segment.date[1]),1)]),j(`div`,Y,[j(`div`,X,[c(f,{class:`text-gray-3`,size:`20`},{default:d(()=>[...s[0]||=[i(`uil-plane-fly`,-1)]]),_:1}),j(`span`,Z,[s[1]||=j(`span`,{class:`hidden-sm-and-down`},`В пути:`,-1),i(` `+y(t(e.segment.time[0],e.segment.time[1])),1)]),c(f,{class:`text-gray-3`,size:`20`},{default:d(()=>[...s[2]||=[i(`uil-plane-arrival`,-1)]]),_:1})]),j(`div`,Q,[j(`div`,ne,[c(r,{height:`4`,color:`gray-4`,variant:`flat`}),j(`div`,re,[j(`div`,ie,y(e.segment.direction.from.prefix),1),j(`div`,ae,y(e.segment.direction.to.prefix),1)])])])]),j(`div`,oe,[j(`div`,se,y(e.segment.time[1]),1),j(`div`,ce,y(e.segment.direction.to.name),1),j(`div`,le,y(e.segment.date[0])+`, `+y(e.segment.date[1]),1)])])])]),_:1}))}});u(),e(),k();var de={key:0,class:`search`},fe={key:0},pe={class:`d-flex align-center justify-space-between text-white px-3 py-2 mb-3`},me={class:`me-2 text-body-medium font-weight-medium`},he={class:`text-body-medium font-weight-bold`},ge={class:`mt-2`},_e={class:`d-flex align-center`},ve={key:0,class:`text-body-small mb-1 font-weight-semibold`},ye={key:1},be={class:`font-weight-bold text-button-color flight-result-price`},xe={class:`text-button-color ms-1`},Se={class:`text-uppercase text-gray-3 font-weight-bold text-body-small`},Ce={colspan:`3`},we={class:`disable-hover`},Te={class:`bg-surface text-start font-weight-bold text-center`},Ee={class:`bg-surface`},De={class:`font-weight-bold`},Oe={class:`text-gray-3 ms-1`},ke={class:`bg-surface`},Ae={class:`d-flex align-center`},je={class:`me-auto ms-1 font-weight-medium`},Me={class:`font-weight-medium bg-surface`},Ne={class:`bg-surface`},Pe={class:`font-weight-medium`},Fe={class:`text-primary font-weight-medium ms-1`},Ie={class:`bg-surface`},Le={style:{width:`50px`},class:`text-center`},Re={class:`bg-surface`},ze={class:`font-weight-medium`},Be={class:`text-gray-4 ms-1 font-weight-medium`},Ve={class:`bg-surface`},$={class:`d-flex justify-end`},He={class:`font-weight-medium`},Ue=[`rowspan`],We={key:0,class:`text-body-small font-weight-bold`},Ge={key:1},Ke={class:`font-weight-bold text-button-color`},qe={class:`text-button-color ms-1`},Je={key:0,class:`disable-hover`},Ye={key:1,class:`pa-6 d-flex align-center justify-center`},Xe={class:`text-center`},Ze={class:`text-gray-3 font-size-18px font-weight-medium`},Qe=M(s({__name:`Results`,props:{items:{},loading:{type:Boolean}},setup(e){let i=e,{t:s}=te(),u=t(null),S=R(),k=N(),M=e=>
3e.every(({has_tickets:e})=>e),z=e=>e===``?s(`search.results.has_seats`):e===0?s(`search.results.no_seats`):String(e),B=e=>e===``?`text-success`:e===0?`text-error`:typeof e==`number`&&e>0&&e<10?`text-warning`:`text-success`,V=async(e,{data:t,segments:n})=>{if(!(!n[0].has_tickets||e===u.value||!M(n))){u.value=e;try{let{hash:e}=await S.getAirTicketHash(t);setTimeout(()=>{window.open(`/orders/flight/${e}/book`,``)})}catch(e){await k.show({text:e.message,type:`error`})}u.value=null}};return p(()=>i.items,e=>{e.length>0&&w(()=>{window.scrollTo({top:window.innerHeight,behavior:`smooth`})})},{immediate:!0,deep:!0}),(t,i)=>{let s=A(`handle-scroll`);return E(),n(r,{color:t.$vuetify.display.smAndDown?`transparent`:`surface`},{default:d(()=>[c(T,{mode:`out-in`},{default:d(()=>[e.items.length?(E(),o(`div`,de,[t.$vuetify.display.smAndDown?(E(),o(`div`,fe,[j(`div`,pe,[j(`span`,me,y(t.$t(`search.results.found_results`)),1),j(`span`,he,y(e.items.flatMap(e=>e.segments).length),1)]),j(`div`,null,[(E(!0),o(l,null,b(e.items,(e,i)=>(E(),n(r,{key:i,variant:`flat`,class:`mb-2 px-2 pb-2`},{default:d(()=>[(E(!0),o(l,null,b(e.segments,(e,t)=>(E(),n(ue,{key:t,segment:e,class:`mt-2`},null,8,[`segment`]))),128)),j(`div`,ge,[j(`div`,_e,[c(h,{disabled:!e.segments[0].has_tickets||i===D(u)||!M(e.segments),color:!e.segments[0].has_tickets||!M(e.segments)?`error`:`primary-2`,variant:`flat`,class:C([`flex-grow-1`,{"text-primary":M(e.segments)&&e.segments[0].has_tickets}]),loading:i===D(u),onClick:t=>V(i,e)},{default:d(()=>[i===D(u)?(E(),n(g,{key:0,indeterminate:``,size:`20`})):(E(),o(l,{key:1},[!e.segments[0].has_tickets||!M(e.segments)?(E(),o(`div`,ve,y(t.$t(`search.results.no_seats`)),1)):m(``,!0),M(e.segments)?(E(),o(`div`,ye,[j(`span`,be,y(D(P)(e.price.amount)),1),j(`span`,xe,y(t.$t(`global.currency.${e.price.currency}`)),1)])):m(``,!0)],64))]),_:2},1032,[`disabled`,`color`,`class`,`loading`,`onClick`]),c(L,{item:e,placement:`top`,disabled:!M(e.segments)},{handler:d(()=>[c(h,{variant:`plain`,color:`primary`,class:`d-flex align-center justify-center ms-2 d-lg-none`,icon:`uil-info-circle`,size:`small`})]),_:1},8,[`item`,`disabled`])])])]),_:2},1024))),128))])])):ee((E(),n(v,{key:1,"fixed-header":``},{default:d(()=>[j(`thead`,null,[j(`tr`,Se,[j(`th`,null,y(t.$t(`search.results.airline`)),1),j(`th`,null,y(t.$t(`search.results.departure_date`)),1),j(`th`,null,y(t.$t(`search.results.flight`)),1),j(`th`,null,y(t.$t(`search.results.time`)),1),j(`th`,Ce,y(t.$t(`search.results.direction`)),1),j(`th`,null,y(t.$t(`search.results.seats`)),1),j(`th`,null,y(t.$t(`search.results.price`)),1)])]),j(`tbody`,we,[(E(!0),o(l,null,b(e.items,(r,s)=>(E(),o(l,{key:s},[(E(!0),o(l,null,b(r.segments,({date:[e,p],time:[v,b],...S},w)=>(E(),o(`tr`,{key:String(Math.random()+w),class:C([{"first-row":!w,"last-row":w+1===r.segments.length},`text-body-medium text-gray-2 disable-hover`])},[j(`td`,Te,[c(x,{location:`top`},{activator:d(({props:e})=>[c(F,O({ref_for:!0},e,{name:S.airline.short_name,height:`24`,width:`24`}),null,16,[`name`])]),default:d(()=>[j(`span`,null,y(S.airline.name),1)]),_:2},1024)]),j(`td`,Ee,[j(`span`,De,y(e),1),j(`span`,Oe,y(p),1)]),j(`td`,ke,[j(`div`,Ae,[j(`span`,{style:_({color:S.airline.color}),class:`font-weight-bold`},y(S.flight.prefix),5),j(`span`,je,y(S.flight.number),1),c(I,{item:S},null,8,[`item`])])]),j(`td`,Me,[j(`span`,null,y(v),1),i[0]||=j(`span`,null,` - `,-1),j(`span`,null,y(b),1)]),j(`td`,Ne,[j(`span`,Pe,y(S.direction.from.name),1),j(`span`,Fe,y(S.direction.from.prefix),1)]),j(`td`,Ie,[j(`div`,Le,[c(x,{location:`top`},{activator:d(({props:e})=>[c(f,O({ref_for:!0},e,{class:B(S.tickets),size:`18`,style:{transform:`rotate(90deg)`},icon:`uil-plane`}),null,16,[`class`])]),default:d(()=>[j(`span`,null,y(z(S.tickets)),1)]),_:2},1024)])]),j(`td`,Re,[j(`span`,ze,y(S.direction.to.name),1),j(`span`,Be,y(S.direction.to.prefix),1)]),j(`td`,Ve,[j(`div`,$,[c(a,{color:S.has_tickets?`green`:`red`,variant:`tonal`,class:`d-flex align-center w-100`},{default:d(()=>[c(f,{start:``,icon:S.has_tickets?`uil-check-circle`:`uil-times-circle`,size:`18`},null,8,[`icon`]),j(`span`,He,y(S.has_tickets?t.$t(`search.results.available`):t.$t(`search.results.not_available`)),1)]),_:2},1032,[`color`])])]),w?m(``,!0):(E(),o(`td`,{key:0,rowspan:r.segments.length,class:`bg-surface vertical-align-top`},[c(L,{item:r,placement:`top`,disabled:!M(r.segments)},{handler:d(()=>[c(h,{disabled:!S.has_tickets||s===D(u)||!M(r.segments),color:!S.has_tickets||!M(r.segments)?`error`:`primary-2`,width:`100%`,class:C([`mt-1`,{"text-primary":M(r.segments)&&S.has_tickets}]),variant:`flat`,"min-width":`130`,loading:s===D(u),onClick:e=>V(s,r)},{default:d(()=>[s===D(u)?(E(),n(g,{key:0,indeterminate:``,size:`20`})):(E(),o(l,{key:1},[!S.has_tickets||!M(r.segments)?(E(),o(`div`,We,y(t.$t(`search.results.no_seats`)),1)):m(``,!0),M(r.segments)?(E(),o(`div`,Ge,[j(`span`,Ke,y(D(P)(r.price.amount)),1),j(`span`,qe,y(t.$t(`global.currency.${r.price.currency}`)),1)])):m(``,!0)],64))]),_:2},1032,[`disabled`,`color`,`class`,`loading`,`onClick`])]),_:2},1032,[`item`,`disabled`])],8,Ue))],2))),128)),s+1<e.items.length?(E(),o(`tr`,Je,[...i[1]||=[j(`td`,{colspan:9,class:`bg-surface`,style:{height:`16px`}},null,-1)]])):m(``,!0)],64))),128))])]),_:1})),[[s]])])):e.loading?m(``,!0):(E(),o(`div`,Ye,[j(`div`,Xe,[j(`p`,Ze,y(t.$t(`search.results.no_results`)),1)])]))]),_:1})]),_:1},8,[`color`])}}}),[[`__scopeId`,`data-v-ece0cf01`]]);export{Qe as default};
4//# debugId=d8644412-ee8c-519d-b492-bd343abe7494

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.