CINXE.COM
Самолетни билети до Бургас - Дестинации - Авиокомпания България Еър
<!DOCTYPE html> <!--[if IE 8 ]> <html class="oldie ie8 no-js"> <![endif]--> <!--[if IE 9 ]> <html class="ie9 no-js"> <![endif]--> <!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js"><!--<![endif]--> <head> <title>Самолетни билети до Бургас - Дестинации - Авиокомпания България Еър</title> <meta name="title" content="Самолетни билети до Бургас - Дестинации - Авиокомпания България Еър"> <meta name="description" content="Вижте най-добрите цени на България Еър за полети до Бургас - Вижте най-добрите цени на България Еър за директни полети до повече от 20 дестинации"> <meta name="keywords" content=""> <meta property="og:image" content="https://www.air.bg/web/images/layout/og-image-bg.jpg"> <meta property="og:type" content="article"> <meta property="og:title" content="Самолетни билети до Бургас - Дестинации - Авиокомпания България Еър"> <meta property="og:description" content="Вижте най-добрите цени на България Еър за полети до Бургас - Вижте най-добрите цени на България Еър за директни полети до повече от 20 дестинации"> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:site" content="@BulgariaAir"> <meta name="twitter:creator" content="@BulgariaAir"> <meta name="twitter:image" content="https://www.air.bg/web/images/layout/og-image-bg.jpg"> <meta name="twitter:title" content="Самолетни билети до Бургас - Дестинации - Авиокомпания България Еър"> <meta name="twitter:description" content="Вижте най-добрите цени на България Еър за полети до Бургас - Вижте най-добрите цени на България Еър за директни полети до повече от 20 дестинации"> <meta name="robots" content="index,follow"> <link rel="canonical" href="https://www.air.bg/bg/destinacii/burgas" /> <link rel="alternate" hreflang="bg" href="https://www.air.bg/bg/destinacii/burgas" /><link rel="alternate" hreflang="en" href="https://www.air.bg/en/destinations/burgas" /> <meta property="og:url" content="https://www.air.bg/bg/destinacii/burgas" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <meta charset="UTF-8"> <meta http-equiv="cleartype" content="on"/> <meta http-equiv="expires" content="0"/> <meta name="audience" content="all"/> <meta name="author" content="Studio X Creative / Web Design / Development"/> <meta name="copyright" content="Studio X Creative / Web Design / Development"/> <meta name="publisher" content="Studio X Creative / Web Design / Development"/> <!-- MOBILE ANDROID --> <meta name="application-name" content="Авиокомпания България Еър - Дестинации - Бургас"/> <meta name="mobile-web-app-capable" content="yes"/> <meta name="theme-color" content="#2a8cc1"/> <!-- MOBILE IOS --> <meta name="apple-mobile-web-app-title" content="Авиокомпания България Еър - Дестинации - Бургас"/> <meta name="apple-mobile-web-app-capable" content="yes"/> <meta name="apple-mobile-web-app-status-bar-style" content="black"/> <!-- MOBILE GLOBAL --> <meta name="HandheldFriendly" content="true"/> <meta name="msapplication-tap-highlight" content="no"/> <meta name="format-detection" content="telephone=yes"/> <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, user-scalable=0"/> <meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE"/> <meta name="facebook-domain-verification" content="2uzofyxa18nn660380bsq28ynnh0an" /> <meta property="fb:app_id" content="441245439545706"/> <meta property="og:site_name" content="Авиокомпания България Еър"/> <meta property="og:type" content="website"/> <!-- <meta property="og:url" content="/bg" /> --> <link rel="shortcut icon" href="/web/images/layout/favicon.ico"/> <link href="//fonts.googleapis.com" rel="dns-prefetch"/> <link href="//maps.google.com" rel="dns-prefetch"/> <link href="//fonts.googleapis.com/css?family=Arimo:400,700&subset=cyrillic-ext" rel="stylesheet"/> <link href="/web/css/flatpickr.css" rel="stylesheet" media="all"/> <link rel="stylesheet" href="/web/css/default.css?ver=3"> <link rel="stylesheet" href="/web/css/loader.css?ver=3"> <!--[if (gte IE 9) | (!IE)]><!--> <script src="/web/js/jquery-2.1.4.min.js"></script> <!--<![endif]--> <!--[if lt IE 9]> <script src="/web/js/jquery-1.11.1.min.js"></script> <script src="/web/js/html5shiv.min.js"></script> <script src="/web/js/backgroundSize.js"></script> <script type="text/javascript"> document.write('<div id="upgrade-browser">\ <a href="http://windows.microsoft.com/en-us/internet-explorer/download-ie" class="ie" target="_blank">Internet Explorer</a>\ <a href="http://www.getfirefox.com" class="firefox" target="_blank">Firefox</a>\ <a href="http://www.google.com/chrome" class="chrome" target="_blank">Chrome</a>\ <a href="http://www.opera.com/download" class="opera" target="_blank">Opera</a>\За по-добро качество и функционалност на сайта, моля обновете вашия браузър или изтеглете нов.\ <div class="close-warning" onclick="hideWarning()"></div>\ </div>'); function hideWarning() { document.getElementById('upgrade-browser').style.display = 'none'; } window.onload = function () { $('.image, .destination-image').css({ backgroundSize: 'cover' }); } </script> <link href="/web/css/ie8.css" rel="stylesheet" media="all"/> <![endif]--> <script type="text/javascript"> var _root = '/'; var _public = '/web/'; var xhr_url = '/bg/destinations/xhr'; </script> <script src="https://book.air.bg/plnext/bulgarianNew/Preload.action?LANGUAGE=BG&SITE=5ANS5NEW"></script> <script> document.addEventListener('DOMContentLoaded', function () { dx.preload(); }, false); </script> <script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" async=""></script> <script> var OneSignal = window.OneSignal || []; OneSignal.push(function () { OneSignal.init({ appId: "4f6b2268-afa6-418a-8347-d85dc44f600a", autoRegister: true, notifyButton: { enable: true, }, welcomeNotification: { "title": "AirBG", "message": "Благодарим ви, че се абонирахте!", }, }); OneSignal.sendTag("language", "bulgarian"); }); </script> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-FBTSNQY33K"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-FBTSNQY33K'); </script> <!-- Meta Pixel Code --> <script> !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window, document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '471722851231932'); fbq('track', 'PageView'); </script> <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=471722851231932&ev=PageView&noscript=1"/></noscript> <!-- End Meta Pixel Code --> </head> <body class=" lang-bg "> <!-- Social networks semantic mark + logo / microformat /--> <script type="application/ld+json"> { "@context" : "http://schema.org", "@type" : "Organization", "name" : "България Еър", "url" : "https://www.air.bg/", "logo": "https://www.air.bg/web/images/layout/bulgaria_air_bg.svg", "sameAs" : [ "https://www.facebook.com/bgair", "https://twitter.com/#!/bulgariaair", "https://plus.google.com/113126356516876045098/posts", "https://www.linkedin.com/company/bulgaria-air" ] } </script> <div class="site-table"> <div class="cookie-message" style="display:none"> <div class="wrapper"> <p>Ние използваме бисквитки, за да ви гарантираме добрата работа на нашия уебсайт, като спазваме всички правила и добри практики за поверителност на личните Ви данни. <a href="/bg/flymore/politika-za-poveritelnost">Вижте Политиката ни за поверителност.</a></p> <a href="javascript:;" class="accept" id="cookie-btn-agree">Разбрах</a> </div> </div> <!-- HEADER: START --> <div class="message"> <inf>Внимание</inf> <a href="/bg/novini/anulirat-se-poletite-ot-do-izrael-do-23-dekemvri-vklyuchitelno-po-preporyki-za-bezopasnost">Анулират се полетите от/до Израел до 23 декември включително по препоръки за безопасност</a> </div> <header id="header" > <div class="wrapper"> <div class="logo"> <a href="/bg/"> <img src="/web/images/layout/bulgaria_air_bg.png" data-image="/web/images/layout/bulgaria_air_bg.png" width="306" height="90" alt="България Еър - Национален превозвач" /> <strong class="sr">България Еър - Национален превозвач</strong> </a> </div> <div class="menu clearfix"> <button id="toggle-menu" type="button">Меню<span></span></button> <button id="toggle-search" type="button"><span>Tърси</span></button> <nav> <ul class="clearfix"> <li class="item-1"> <a href="/bg/destinacii" title="Дестинации" class="active">Дестинации</a> </li> <li class="item-2"> <a href="/bg/flymore/za-fly-more" target="_self" title="FLY MORE" >FLY MORE</a> <div class="dropdown"> <ul> <li> <a href="/bg/flymore/za-fly-more" target="_self" title="За FLY MORE">За FLY MORE</a> </li> <li> <a href="/bg/fly-more/fly-more-youth" title="FLY MORE YOUTH">FLY MORE YOUTH</a> </li> <li> <a href="/bg/flymore/tochkova-sistema" title="Точкова система">Точкова система</a> </li> <li> <a href="https://flymore.air.bg/reg/" target="_blank" title="Регистрация">Регистрация</a> </li> <li> <a href="https://flymore.air.bg/pts/" target="_blank" title="Моите точки">Моите точки</a> </li> <li> <a href="/bg/flymore/povishavane-na-fly-more-nivo" title="Повишаване на FLY MORE ниво">Повишаване на FLY MORE ниво</a> </li> <li> <a href="/bg/flymore/tochki-s-partniori" title="Точки с партньори">Точки с партньори</a> </li> <li> <a href="/bg/flymore/bonus-bilet" title="Бонус билет">Бонус билет</a> </li> <li> <a href="/bg/fly-more/UPGRADE" title="UPGRADE до бизнес класа">UPGRADE до бизнес класа</a> </li> <li> <a href="/bg/fly-more/bonus-bagaj" target="_self" title="Бонус багаж">Бонус багаж</a> </li> <li> <a href="/bg/fly-more/izbor-na-myasto-sreshtu-bonus-tochki" title="Избор на място срещу бонус точки">Избор на място срещу бонус точки</a> </li> <li> <a href="/bg/flymore/vaucher-za-rojden-den" title="Ваучер за Рожден ден">Ваучер за Рожден ден</a> </li> <li> <a href="/bg/flymore/kobrandirana-kreditna-karta" title="Кобрандирана кредитна карта">Кобрандирана кредитна карта</a> </li> <li> <a href="/bg/flymore/kreditna-karta-visa-platinum" title="Кредитна карта Visa Platinum">Кредитна карта Visa Platinum</a> </li> <li> <a href="/bg/flymore/politika-za-poveritelnost" title="Политика за поверителност">Политика за поверителност</a> </li> <li> <a href="/bg/flymore/chesto-zadavani-vyprosi" title="Често задавани въпроси">Често задавани въпроси</a> </li> </ul> </div> </li> <li class="item-3"> <a href="/bg/pomosht-za-klienta/obshta-informacija" title="Помощ за клиента" >Помощ за клиента</a> <div class="dropdown"> <ul> <li> <a href="/bg/pomosht-za-klienta/obshta-informacija" title="Обща информация">Обща информация</a> </li> <li> <a href="/bg/pomosht-za-klienta/obshti-uslovija-za-prevoz" title="Общи условия за превоз">Общи условия за превоз</a> </li> <li> <a href="/bg/pomosht-za-klienta/zashtita-na-lichnite-danni" title="Защита на личните данни">Защита на личните данни</a> </li> <li> <a href="/bg/pomosht-za-klienta/prava-na-pytnicite" title="Права на пътниците">Права на пътниците</a> </li> <li> <a href="/bg/pomosht-za-klienta/rezervacii-i-zakupuvane" title="Резервации и закупуване">Резервации и закупуване</a> </li> <li> <a href="/bg/pomosht-za-klienta/vashijat-bagaj" title="Вашият багаж">Вашият багаж</a> </li> <li> <a href="/bg/pomosht-za-klienta/biznes-saloni" target="_self" title="Бизнес салони">Бизнес салони</a> </li> <li> <a href="/bg/pomosht-za-klienta/online-check-in-upgrade" title="Online check-in/ Upgrade">Online check-in/ Upgrade</a> </li> <li> <a href="/bg/pomosht-za-klienta/pytnici-sys-specialni-nujdi" title="Пътници със специални нужди">Пътници със специални нужди</a> </li> <li> <a href="/bg/pomosht-za-klienta/na-borda" title="На борда">На борда</a> </li> <li> <a href="/bg/pomosht-za-klienta/iziskvanija-za-sigurnost" title="Изисквания за сигурност">Изисквания за сигурност</a> </li> <li> <a href="/bg/pomosht-za-klienta/jalbi-i-reklamacii" title="Жалби и рекламации">Жалби и рекламации</a> </li> <li> <a href="/bg/pomosht-za-klienta/chartyri-i-lizing" title="Чартъри и лизинг">Чартъри и лизинг</a> </li> <li> <a href="/bg/pomosht-za-klienta/kargo" title="Карго">Карго</a> </li> <li> <a href="/bg/pomosht-za-klienta/turisticheski-agencii" title="Туристически агенции">Туристически агенции</a> </li> <li> <a href="/bg/pomosht-za-klienta/grupovi-pytuvanija" title="Групови пътувания">Групови пътувания</a> </li> </ul> </div> </li> <li class="item-4"> <a href="/bg/za-bylgarija-er/za-nas" title="За нас" >За нас</a> <div class="dropdown"> <ul> <li> <a href="/bg/za-bylgarija-er/za-nas" title="За нас">За нас</a> </li> <li> <a href="/bg/za-bylgarija-er/flot" title="Флот">Флот</a> </li> <li> <a href="/bg/za-bylgarija-er/partniori" title="Партньори">Партньори</a> </li> <li> <a href="/bg/za-bylgarija-er/karieri" title="Кариери">Кариери</a> </li> <li> <a href="/bg/za-bylgarija-er/spisanieto" title="Списанието">Списанието</a> </li> <li> <a href="/bg/za-bylgarija-er/medija" title="Медия">Медия</a> </li> </ul> </div> </li> <li class="item-5"> <a href="/bg/uslugi" target="_self" title="Услуги" >Услуги</a> <div class="dropdown"> <ul> <li> <a href="/bg/uslugi/upgrade-do-biznes-klasa" title="Upgrade до бизнес класа">Upgrade до бизнес класа</a> </li> <li> <a href="/bg/uslugi/pytuvaj-po-komfortno" title="Пътувай по-комфортно">Пътувай по-комфортно</a> </li> <li> <a href="/bg/uslugi/nepridrujeni-lica" title="Непридружени деца">Непридружени деца</a> </li> <li> <a href="/bg/uslugi/prevoz-na-domashni-lubimci" title="Превоз на домашни любимци">Превоз на домашни любимци</a> </li> <li> <a href="//armeec.bg/bg/insurances/categories" target="_blank" title="Застраховки">Застраховки</a> </li> <li> <a href="/bg/uslugi/hoteli" title="Хотели">Хотели</a> </li> <li> <a href="https://www.sixt.com/bulgaria-air" target="_blank" title="Rent-a-car">Rent-a-car</a> </li> </ul> </div> </li> <li class="item-6"> <a href="/bg/pochivki" target="_self" title="Почивки" >Почивки</a> </li> </ul> </nav> <div class="search-form form"> <form name="search" action="/bg/tyrsene" method="get"> <fieldset> <div class="input"> <input type="text" name="q" id="keyword" placeholder="Tърси..." /> </div> <button type="submit"><span>Tърси</span></button> </fieldset> </form> </div> </div> <ul class="header-nav"> <li><a href="tel:+359024020400" data-tooltip="Телефон" class="has-text"><i class="icon tel"></i> +359 (0) 2 402 04 00</a></li> <li><a href="/bg/kontakti" data-tooltip="Свържете се с нас" class="has-text"><i class="icon contacts">Свържете се с нас</i> Контакти</a></li> <li><a href="/bg/user/sign" data-tooltip="Вход за клиенти"><i class="icon login">Вход</i></a></li> <li><a href="https://www.facebook.com/bgair" target="_blank" data-tooltip="Посети ни във Facebook"><i class="icon facebook">Facebook</i></a></li> <li><a href="/en/destinations/burgas" data-tooltip="EN" class="has-text"><i class="icon language">Език</i> EN</a></li> </ul> <h1 >Самолетни билети до Бургас</h1> </div> <div class="image default"></div> </header> <!-- HEADER: END --> <!-- CONTENT: START --> <main> <div class="wrapper"> <ul id="breadcrumb"> <li class="home"> <a href="/bg">Начало</a> </li> <li class=""> <a href="/bg/destinacii">Дестинации</a> </li> <li class="last"> <span>Бургас</span> </li> </ul> </div> <style> .destination-image.large{ background-image: url('/web/files/cities/24/main_image/thumb_1366x500_BG_Air_destinacii_sait_1366x750px_Burgas.jpg'); } .destination-image.medium{ background-image: url('/web/files/cities/24/main_image/thumb_900x495_BG_Air_destinacii_sait_1366x750px_Burgas.jpg'); } .destination-image.small{ background-image: url('/web/files/cities/24/main_image/thumb_600x330_BG_Air_destinacii_sait_1366x750px_Burgas.jpg'); } </style> <section class="block block-destination" data-city="24"> <div class="wrapper no-margin"> <div class="row"> <div class="col"> <h2><i class="ico ico-location"></i>България</h2> <!--<p>Виж: <a href="javascript:;" target="_blank">Arrival Guide</a></p>--> </div> <div class="col"> <h2> <i class="ico ico-airport"></i>Летище <a href="https://www.google.bg/maps/search/BOJ%20Airport" data-map target="_blank">виж на карта</a> </h2> <p>Бургас </p> <p>Адрес: Burgas Airport, Burgas, Bulgaria</p> </div> </div> <div id="flights_schedule"> <h2>Разписание на полети до Бургас</h2> <div class='uil-ring-css loader-ring' style='margin: 0 auto; transform:scale(0.45);'><div></div></div> <div id="flights_schedule_calendar"></div> </div> </div> <div> <div id="destination_image" class="destination-image large"></div> <div class="wrapper"> <p><b>Бургас</b> е един от най-големите градове в България, отправна точка и дестинация за почивка на българското Южно Черноморие</p> <p>Разположен на брега на Черно море в Бургаския залив, той е и административен център на едноименната област.</p> <p>Наред с добрите си транспортни връзки, излаза на море, развита промишленост и едновременно с това – съхранена история, Бургас днес е и привлекателна дестинация за туристите. Градът и регионът предлагат разнообразни възможности за морски и културен туризъм с множеството музеи и културни обекти, балнео и СПА, орнитоложки, винен туризъм. Сред забележителностите, които да не пропускате по време на престоя си, са: Морската градина, Регионалният исторически музей, художествена галерия „Петко Задгорски“, къща-музей "Петя Дубарова", Паметникът на освободителите, Етнографският музей и др.</p> <p>Вижте и Атанасовското езеро, разходете се по пътеката на солта и пътеката на саблеклюна, насладете се на красивата гледка и наблюдавайте птиците, обитаващи територията на езерото и едноименния резерват.</p> <p>А ако решите да посетите Бургас в периода между юли и септември – задължително отидете и на Фестивала на пясъчните фигури и се потопете в магията на нестандартното изкуство. През годините на вълшебното събитие са гостували и творили скулптори от Европа, Северна Америка, Азия и Австралия.</p> <p> </p> <p><b>Официален език:</b> български</p> <p><b>Официална валута:</b> лев (BGN)</p> <p><b>Часова зона:</b> GMT +2</p> <p><b>Транспорт:</b> Авиокомпания „България Еър“ предлага изгодни самолетни билети до Бургас. От летище Бургас до центъра на града може да се придвижите с автобус или такси. Градът е отправна точка към цялото Южно Черноморие, както и към известните курорти Несебър и Слънчев бряг.</p> <p>Разгледайте директните полети на „България Еър“ и до други градове в България - София и Варна.</p> <br /><br /> <p class="text-center"> <a href="javascript:;" class="button" data-book="true" style="color: #fff;" onclick="bookTicket(null, 'BOJ', '23.11.2024');">Резервирай билет</a> </p> </div> </div> </section> <section class="block"> <h6 class="sr">Банери</h6> <div class="wrapper"> <div class="highlight"> <a href="https://www.air.bg/bg/novini/bylgariya-eyr-s-dopylnitelni-uslugi-onlajn" target="_blank"> <img src="/web/files/highlights/77/main_image/thumb_1200x320_1BGAir_Banner_Ancillary_1200x320px_BG.jpg" alt="Допълнителни услуги 2022" /> </a> </div> </div> </section> <section class="block"> <h6 class="sr">Банери</h6> <div class="wrapper"> <div class="highlight"> <a href="https://www.air.bg/bg/flymore/za-fly-more/" target="_blank"> <img src="/web/files/highlights/53/main_image/thumb_1200x320_Banner_Fly_More_BG_1200x320.jpg" alt="FLY MORE" /> </a> </div> </div> </section> <section class="block"> <h6 class="sr">Банери</h6> <div class="wrapper"> <div class="scrollable-highlights"> <div class="highlights"> <div class="highlight-item " style="background:#2a8bbf"> <div class="image" style="background-image: url('/web/files/highlights/1/main_image/thumb_330x275_02_baner_330x275.jpg');"></div> <h4>RENT-A-CAR</h4> <p>Резервирай Sixt автомобил и пътувай мобилно, комфортно и качествено до над 4000 локации за автомобили под наем в повече от 105 страни. Членовете на лоялната програмата FLY MORE вече могат да получат 500 бонус точки за всеки нает автомобил от всяка локация.</p> <a href="https://bit.ly/2YHYsmw" class="details" target="_blank">Виж повече</a> </div> <div class="highlight-item highlight-item-2" style="background:#016499"> <div class="image" style="background-image: url('/web/files/highlights/2/main_image/thumb_330x275_Charturi-i-lizing.jpg');"></div> <h4>ЧАРТЪРИ И ЛИЗИНГ</h4> <p>Ангажирай чартърен полет, чартърни вериги и отдаване на самолети на краткосрочен и дългосрочен лизинг.</p> <a href="/bg/pomosht-za-klienta/chartyri-i-lizing/" class="details" target="_blank">Виж повече</a> </div> <div class="highlight-item highlight-item-3" style="background:#2a8bbf"> <div class="image" style="background-image: url('/web/files/highlights/4/main_image/thumb_330x275_ccb-banner_330x275.jpg');"></div> <p>Може да изберете и платите своя самолетен билет в офисите на Централна кооперативна банка.</p> <p><img src="/web/files/richeditor/logoccbbg-3.png" alt="" /></p> <a href="http://www.ccbank.bg/" class="details" target="_blank">Виж повече</a> </div> </div> </div> </div> </section> </main> <!-- CONTENT: END --> <!-- FOOTER: START --> <!-- FOOTER NAV: START --> <footer id="footer"> <div class="wrapper clearfix"> <div class="pull-left"> Copyright © 2024 България Еър. Всички права запазени. </div> <div class="pull-right"> <div class="social"> <a href="https://appgallery.huawei.com/#/app/C102816101" target="_blank" class="app"> <img src="/web/images/layout/appgallery-button.svg" alt="" /> </a> <a href="https://apps.apple.com/bg/app/bulgaria-air/id1439907151" target="_blank" class="app"><img src="/web/images/layout/appstore-button.svg" alt=""/></a> <a href="https://play.google.com/store/apps/details?id=bg.air.mobile&hl=en_US" target="_blank" class="app"><img src="/web/images/layout/googleplay-button.svg" alt=""/></a> <span class="social-split"></span> <a href="https://www.facebook.com/bgair" target="_blank" class="fb">Следвай ни в Facebook</a> <a href="https://twitter.com/#!/bulgariaair" target="_blank" class="tw">Следвай ни в Twitter</a> <a href="https://www.linkedin.com/company/bulgaria-air" target="_blank" class="in">Следвай ни в LinkedIn</a> <a href="https://www.instagram.com/bulgariaairairlines/?hl=bg" target="_blank" class="inst">Следвай ни в Instagram</a> <a href="https://www.youtube.com/channel/UCg2f-lOXvlIJlXCb8OlkFYw" target="_blank" class="yt">Следвай ни в YouTube</a> </div> </div> </div> </footer> <div id="fixed-line"> <div class="line"> <div class="wrapper"> <div class="pull-left"> <a href="javascript:;" class="arrow blue" data-submenu="#site-map">Карта на сайта</a> </div> <div class="pull-right"> <div class="promo-subscribe form"> <form name="subscribe" action="/bg/subscription/subscribe" method="post" id="subscribe-form"> <fieldset> <div class="input"> <input type="email" id="subscribe-email" name="subscribe-email" placeholder="Получи нови промоции на Еmail" data-error="Невалиден e-mail"/> </div> <label for="subscribe_agree" class="checkbox"> <input type="checkbox" required name="subscribe_agree" id="subscribe_agree" value="1" /> <var>Запознах се с <a target="_blank" href="/bg/flymore/politika-za-poveritelnost">политиката</a> за поверителност</var> </label> <button type="submit"><span>Запиши се</span></button> </fieldset> </form> </div> <a href="javascript:;" class="toggle-promo-subscribe">Бюлетин</a> </div> <nav> <a href="javascript:;" class="s1" data-submenu="submenu-1" title="Резервации">Резервации</a> <a href="javascript:;" class="s3" data-submenu="submenu-3" title="Проверка на резервация">Проверка на резервация</a> <a href="javascript:;" class="s2" data-submenu="submenu-2" title="Web Check-in">Web Check-in</a> <a href="javascript:;" class="s4 blue" data-submenu="submenu-4" title="Информация">Информация</a> <a href="javascript:;" class="s5 blue" data-submenu="submenu-5" title="Услуги">Услуги</a> </nav> </div> </div> <div class="sub-menu blue" id="site-map"> <div class="wrapper columns"> <h6> <a href="/bg/destinacii" title="Дестинации" class="active">Дестинации</a> </h6> <h6> <a href="/bg/flymore/za-fly-more" title="FLY MORE" >FLY MORE</a> </h6> <ol> <li> <a href="/bg/flymore/za-fly-more" title="За FLY MORE">За FLY MORE</a> </li> <li> <a href="/bg/flymore/tochkova-sistema" title="Точкова система">Точкова система</a> </li> <li> <a href="/bg/flymore/tochki-s-partniori" title="Точки с партньори">Точки с партньори</a> </li> <li> <a href="/bg/flymore/bonus-bilet" title="Бонус билет">Бонус билет</a> </li> <li> <a href="/bg/fly-more/UPGRADE" title="Пътуване в бизнес класа">Пътуване в бизнес класа</a> </li> <li> <a href="/bg/fly-more/bonus-bagaj" title="Бонус багаж">Бонус багаж</a> </li> <li> <a href="/bg/flymore/vaucher-za-rojden-den" title="Ваучер за Рожден ден">Ваучер за Рожден ден</a> </li> <li> <a href="/bg/flymore/povishavane-na-fly-more-nivo" title="Повишаване на Flymore ниво">Повишаване на Flymore ниво</a> </li> <li> <a href="https://flymore.air.bg/reg/" title="Регистрация">Регистрация</a> </li> <li> <a href="https://flymore.air.bg/update.html" title="Моите точки">Моите точки</a> </li> <li> <a href="" title="Кобрандирана кредитна карта">Кобрандирана кредитна карта</a> </li> <li> <a href="/bg/flymore/kreditna-karta-visa-platinum" title="Кредитна карта Visa Platinum">Кредитна карта Visa Platinum</a> </li> <li> <a href="/bg/flymore/politika-za-poveritelnost" title="Политика за поверителност">Политика за поверителност</a> </li> <li> <a href="/bg/flymore/chesto-zadavani-vyprosi" title="Често задавани въпроси">Често задавани въпроси</a> </li> </ol> <h6> <a href="/bg/pomosht-za-klienta/rezervacii-i-zakupuvane" title="Помощ за клиента" >Помощ за клиента</a> </h6> <ol> <li> <a href="/bg/pomosht-za-klienta/obshta-informacija" title="Обща информация">Обща информация</a> </li> <li> <a href="/bg/pomosht-za-klienta/obshti-uslovija-za-prevoz" title="Общи условия за превоз">Общи условия за превоз</a> </li> <li> <a href="/bg/pomosht-za-klienta/prava-na-pytnicite" title="Права на пътниците">Права на пътниците</a> </li> <li> <a href="/bg/pomosht-za-klienta/rezervacii-i-zakupuvane" title="Резервации и закупуване">Резервации и закупуване</a> </li> <li> <a href="/bg/pomosht-za-klienta/online-check-in-upgrade" title="Online check-in/ Upgrade">Online check-in/ Upgrade</a> </li> <li> <a href="/bg/pomosht-za-klienta/vashijat-bagaj" title="Вашият багаж">Вашият багаж</a> </li> <li> <a href="/bg/pomosht-za-klienta/pytnici-sys-specialni-nujdi" title="Пътници със специални нужди">Пътници със специални нужди</a> </li> <li> <a href="/bg/pomosht-za-klienta/na-borda" title="На борда">На борда</a> </li> <li> <a href="/bg/pomosht-za-klienta/iziskvanija-za-sigurnost" title="Изисквания за сигурност">Изисквания за сигурност</a> </li> <li> <a href="/bg/pomosht-za-klienta/jalbi-i-reklamacii" title="Жалби и рекламации">Жалби и рекламации</a> </li> <li> <a href="/bg/pomosht-za-klienta/chartyri-i-lizing" title="Чартъри и лизинг">Чартъри и лизинг</a> </li> <li> <a href="/bg/pomosht-za-klienta/kargo" title="Карго">Карго</a> </li> <li> <a href="/bg/pomosht-za-klienta/turisticheski-agencii" title="Туристически агенции">Туристически агенции</a> </li> <li> <a href="/bg/pomosht-za-klienta/grupovi-pytuvanija" title="Групови пътувания">Групови пътувания</a> </li> </ol> <h6> <a href="/bg/za-bylgarija-er/za-nas" title="За нас" >За нас</a> </h6> <ol> <li> <a href="/bg/za-bylgarija-er/za-nas" title="За нас">За нас</a> </li> <li> <a href="/bg/za-bylgarija-er/flot" title="Флот">Флот</a> </li> <li> <a href="/bg/za-bylgarija-er/partniori" title="Партньори">Партньори</a> </li> <li> <a href="/bg/za-bylgarija-er/karieri" title="Кариери">Кариери</a> </li> <li> <a href="/bg/za-bylgarija-er/spisanieto" title="Списанието">Списанието</a> </li> <li> <a href="/bg/za-bylgarija-er/medija" title="Медия">Медия</a> </li> </ol> <h6> <a href="/bg/uslugi" title="Услуги" >Услуги</a> </h6> <ol> <li> <a href="/bg/uslugi/sky-shop" title="Sky shop">Sky shop</a> </li> <li> <a href="/bg/uslugi/hoteli" title="Хотели">Хотели</a> </li> <li> <a href="http://armeec.bg/bg/insurances/categories" title="Застраховки">Застраховки</a> </li> <li> <a href="https://www.sixt.com/bulgaria-air" title="Rent-a-car">Rent-a-car</a> </li> </ol> </div> <ul> <li><a href="/bg/promocii" class="">Промоции</a></li> <li><a href="/bg/novini" class="">Новини</a></li> <li><a href="/bg/uslugi/hoteli" class="">Хотели</a></li> <li><a href="/bg/kontakti" class="">Контакти</a></li> </ul> </div> <div class="sub-menu" id="submenu-1"> <div class="wrapper"> <div class="sub-menu-title icon-flight"> Резервации <button type="button" class="close-submenu">x</button> </div> <div class="form-search custom-form-search"> <form name="AIR_ENTRY_FORM" id="amadeus_book_bottom" action="/bg/outgoing" method="post" class="custom-flight-form"> <div class="custom-form-errors"></div> <ol class="custom-form custom-form-flex"> <li class="young-discount-item"> <div class="item-inner"> <div class="young-discount young-discount--top"> <header class="young-discount__header"> <div class="young-discount__header-item"> <p><strong>Отстъпки за младежи</strong> <span class="young-discount__label">НОВО</span></p> <p><small>12-26 години</small></p> </div> <div class="young-discount__header-item"> <label for="young_bottom" class="switch-checkbox"> <input type="checkbox" class="switch-checkbox__input js-young__discount" name="young" id="young_bottom" value="STU"> <span class="switch-checkbox__element"></span> </label> </div> </header> <div class="young-discount__body young-discount__body--top"> <div class="young-discount__body-inner"> <ul class="circle-check"> <li class="circle-check__item">2 безплатни багажа</li> <li class="circle-check__item">1 промяна на дата без такса</li> <li class="circle-check__item">Условията важат за двупосочно пътуване по международни полети на България Еър в Economy YOUTH тарифа</li> </ul> </div> <button type="button" class="young-discount__body-expand js-expand__young-discount"> <span class="sr">Виж повече</span> </button> </div> </div> </div> </li> <li class="item-destination item-destination-from"> <div class="item-inner"> <div class="custom-form-label">Начална дестинация:</div> <div class="group-select" data-field="group-select-destination_1"> <div class="group-select-item"> <select name="B_LOCATION_1" data-select="B_LOCATION_1" class="custom-select2"></select> <input type="hidden" data-input="B_LOCATION_1"/> </div> </div> <div class="custom-error" data-field-error="group-select-destination_1"></div> </div> </li> <li class="item-destination-switch"> <div class="item-inner"> <button type="button" class="select-switch horizontal-switch relative-switch" data-input="switch-locations"><span>Switch</span></button> </div> </li> <li class="item-destination item-destination-to"> <div class="item-inner"> <div class="custom-form-label">Крайна дестинация:</div> <div class="group-select" data-field="group-select-destination_2"> <div class="group-select-item"> <select name="E_LOCATION_1" data-select="E_LOCATION_1" class="custom-select2"></select> <input type="hidden" data-input="E_LOCATION_1"/> </div> </div> <div class="custom-error" data-field-error="group-select-destination_2"></div> </div> </li> <li class="item-datepicker"> <div class="item-inner"> <div class="custom-form-label custom-form-label-options"> <div class="pull-left"> Дати на полетите </div> <div class="pull-right"> <label for="TRIP_TYPE_BOTTOM" class="custom-switch"> <input type="checkbox" name="TRIP_TYPE" id="TRIP_TYPE_BOTTOM" data-checked="R" data-unchecked="O" value="R" checked/> <div class="switch-indicator"></div> <div class="switch-type left">Двупосочен</div> <div class="switch-type right">Еднопосочен</div> </label> </div> </div> <div class="group-datepicker clearfix" data-field="datepicker"> <div class="custom-datepicker datepicker-departure datepicker-left"> <div class="input placeholder" data-datepicker="B_DATE_1_INLINE_PICKER">Заминаване</div> </div> <div class="custom-datepicker datepicker-return datepicker-right"> <div class="input placeholder" data-datepicker="B_DATE_2_INLINE_PICKER">Връщане</div> </div> <input type="text" class="cover-input" name="from_date" data-datepicker="B_DATE_1_PICKER" data-placement="picker-container-bottom" readonly/> <div id="picker-container-bottom" class="picker-container"></div> <input type="hidden" name="B_DATE_1" data-datepicker="B_DATE_1"/> <input type="hidden" name="B_DATE_2" data-datepicker="B_DATE_2"/> </div> <div class="custom-error" data-field-error="datepicker"></div> </li> <li class="item-dropdown"> <div class="item-inner"> <div class="custom-form-label">Пътници:</div> <div class="custom-input-dropdown full-width-button js-select__travellers"> <input type="text" name="travellers" id="travellers" class="custom-input" readonly value="1 пасажер" data-field="travellers"/> <div class="input-dropdown"> <div class="input-dropdown-body"> <ul class="passengers-list"> <li class="list-item"> <div class="table"> <div class="cell"> <p> <span class="passenger-type">Възрастни</span> </p> <p> <span class="passenger-age">12-99 години</span> </p> </div> <div class="cell"> <div class="item-quantity"> <button type="button" class="inc"><span>+</span> </button> <input type="text" class="q" name="ADTPAX" id="ADTPAX" value="1" readonly data-min="0" data-max="9"/> <button type="button" class="dec"><span>-</span> </button> </div> <div class="item-quantity-error">Съобщение за възрастни </div> </div> </div> </li> <li class="list-item"> <div class="table"> <div class="cell"> <p> <span class="passenger-type">Деца</span> </p> <p> <span class="passenger-age">2-11 години</span> </p> </div> <div class="cell"> <div class="item-quantity"> <button type="button" class="inc"><span>+</span> </button> <input type="text" class="q" name="CHDPAX" id="CHDPAX" value="0" readonly data-min="0" data-max="9"/> <button type="button" class="dec" disabled> <span>-</span></button> </div> <div class="item-quantity-error">Съобщение за деца</div> </div> </div> </li> <li class="list-item"> <div class="table"> <div class="cell"> <p> <span class="passenger-type">Бебета</span> </p> <p> <span class="passenger-age">0-2 години</span> </p> </div> <div class="cell"> <div class="item-quantity infant-item-quantity"> <button type="button" class="inc"><span>+</span> </button> <input type="text" class="q" name="InfantPAX" id="InfantPAX" value="0" readonly data-min="0" data-max="1"/> <button type="button" class="dec" disabled> <span>-</span></button> </div> <div class="item-quantity-error">Съобщение за бебета </div> </div> </div> </li> </ul> <div class="input-dropdown-error"></div> </div> <div class="input-dropdown-footer"> <button type="button" class="button-close-dropdown js-passengers-close"> Готово </button> </div> </div> <div class="input-dropdown-mask"></div> <button type="button" class="toggle-input-dropdown"><span>+</span></button> </div> <div class="custom-input-dropdown full-width-button js-select__passengers"> <input type="text" name="passengers" id="passengers" class="custom-input" readonly value="1 пътник (12-26 години)" data-field="passengers" /> <div class="input-dropdown"> <div class="input-dropdown-body"> <ul class="passengers-list"> <li class="list-item"> <div class="table"> <div class="cell"> <p><span class="passenger-type">Младежи</span></p> <p><span class="passenger-age">12-26 години <span class="passenger-required">*</span></span></p> </div> <div class="cell"> <div class="item-quantity"> <button type="button" class="inc"><span>+</span></button> <input type="text" class="q" name="STU" id="STU" value="1" readonly data-min="0" data-max="5" /> <button type="button" class="dec"><span>-</span></button> </div> <div class="item-quantity-error">Съобщение за пътници ...</div> </div> </div> </li> </ul> <div class="input-dropdown-error input-dropdown-error--passengers">*задължително условие</div> </div> <div class="input-dropdown-footer"> <button type="button" class="button-close-dropdown js-passengers-close">Готово</button> </div> </div> <div class="input-dropdown-mask"></div> <button type="button" class="toggle-input-dropdown"><span>+</span></button> </div> <div class="custom-error" data-field-error="travellers"></div> </div> </li> <li class="item-button"> <div class="item-inner"> <div class="custom-form-label custom-form-label-empty"> </div> <button type="submit" class="search"><span>Tърси</span></button> </div> </li> </ol> <div class="travellers el-hide"> <input type="hidden" name="TRAVELLER_TYPE_1" value="ADT" /> </div> <input type="hidden" name="B_LOCATION_1" data-input="B_LOCATION_1" /> <input type="hidden" name="E_LOCATION_1" data-input="E_LOCATION_1" /> <input type="hidden" name="TRIP_TYPE" value="R" data-input="TRIP_TYPE" /> <input type="hidden" id="FIELD_STU_NUMBER" name="FIELD_STU_NUMBER" value="0"> <input type="hidden" id="FIELD_YTH_NUMBER" name="FIELD_YTH_NUMBER" value="0"> <input type="hidden" id="SO_SITE_USER_CURRENCY_CODE" name="SO_SITE_USER_CURRENCY_CODE" value="EUR"> <input type="hidden" id="EMBEDDED_TRANSACTION" name="EMBEDDED_TRANSACTION" value="FlexPricerAvailability"> <input type="hidden" id="EXTERNAL_ID" name="EXTERNAL_ID" value="BOOKING"> <input type="hidden" id="LANGUAGE" name="LANGUAGE" value="BG"> <input type="hidden" id="SEARCH_BY" name="SEARCH_BY" value="1"> <input type="hidden" id="SITE" name="SITE" value="5ANS5NEW"> <input type="hidden" id="RESULT_LANGUAGE" name="RESULT_LANGUAGE" value="EN"> <input type="hidden" id="SO_SITE_QUEUE_OFFICE_ID" name="SO_SITE_QUEUE_OFFICE_ID" value="SOFFB08AB"> <input type="hidden" id="SO_QUEUE_NUMBER" name="SO_QUEUE_NUMBER" value="0"> <input type="hidden" id="SO_QUEUE_CATEGORY" name="SO_QUEUE_CATEGORY" value="0"> <input type="hidden" id="SO_FAILURE_QUEUE_OFFICE_ID" name="SO_FAILURE_QUEUE_OFFICE_ID" value="SOFFB08AB"> <input type="hidden" id="SO_FAILURE_QUEUE_NUMBER" name="SO_FAILURE_QUEUE_NUMBER" value="13"> <input type="hidden" id="SO_FAILURE_QUEUE_CATEGORY" name="SO_FAILURE_QUEUE_CATEGORY" value="0"> <input type="hidden" id="TR_FLIGHTS" name="TR_FLIGHTS" value="TRUE"> <input type="hidden" id="SHUTTLE_FLIGHTS" name="SHUTTLE_FLIGHTS" value="TRUE"> <input type="hidden" id="SCHEDULE" name="SCHEDULE" value="TRUE"> <input type="hidden" id="SEVEN_DAY_SEARCH" name="SEVEN_DAY_SEARCH" value="TRUE"> <input type="hidden" id="SO_SITE_SD_AIRL_FILTER_ACTIV" name="SO_SITE_SD_AIRL_FILTER_ACTIV" value="TRUE"> <input type="hidden" id="SO_SITE_REST_AIRLINES_LST" name="SO_SITE_REST_AIRLINES_LST" value="FB;VS;9W;US;AB;SN;OK;MK"> <input type="hidden" id="TRIP_FLOW" name="TRIP_FLOW" value="YES"> <input type="hidden" id="BOOKING_FLOW" name="BOOKING_FLOW" value="REVENUE"> <input type="hidden" id="PRICING_TYPE" name="PRICING_TYPE" value="O"> <input type="hidden" id="DISPLAY_TYPE" name="DISPLAY_TYPE" value="2"> <input type="hidden" id="SO_SITE_FP_PRICING_TYPE" name="SO_SITE_FP_PRICING_TYPE" value="O"> <input type="hidden" id="ARRANGE_BY" name="ARRANGE_BY" value="E"> <input type="hidden" id="SO_SITE_CRNCY_CONV_DISPLAY" name="SO_SITE_CRNCY_CONV_DISPLAY" value="FALSE"> <input type="hidden" id="REFRESH" name="REFRESH" value="0"> <input type="hidden" id="COMMERCIAL_FARE_FAMILY_1" name="COMMERCIAL_FARE_FAMILY_1" value="ECONOMY"> <input type="hidden" id="COMMERCIAL_FARE_FAMILY_2" name="COMMERCIAL_FARE_FAMILY_2" value="BUSINESS"> <input type="hidden" id="DATE_RANGE_QUALIFIER_1" name="DATE_RANGE_QUALIFIER_1" value="C"> <input type="hidden" id="DATE_RANGE_QUALIFIER_2" name="DATE_RANGE_QUALIFIER_2" value="C"> <input type="hidden" id="SO_SITE_ALLOW_SERVICE_FEE" name="SO_SITE_ALLOW_SERVICE_FEE" value="1"> <input type="hidden" id="ALLOW_PRIMARY_YTH" name="ALLOW_PRIMARY_YTH" value="Y"> <input type="hidden" id="ALLOW_PRIMARY_STU" name="ALLOW_PRIMARY_STU" value="Y"> <input type="hidden" id="E_TIME" name="E_TIME" value="0000"> <input type="hidden" id="B_TIME" name="B_TIME" value="0000"> <input type="hidden" id="B_ANY_TIME_1" name="B_ANY_TIME_1" value="TRUE"> <input type="hidden" id="B_ANY_TIME_2" name="B_ANY_TIME_2" value="TRUE"> <input type="hidden" id="SO_GL" name="SO_GL" value=""> <input type="hidden" id="SO_SITE_USE_ETCKT_DOCUMENT" name="SO_SITE_USE_ETCKT_DOCUMENT" value="FALSE"> <input type="hidden" id="SO_SITE_RUI_CAL_AVAI_NO_RECO" name="SO_SITE_RUI_CAL_AVAI_NO_RECO" value="TRUE"> <input type="hidden" id="SO_SITE_EXT_SESSION_NO_NODES" name="SO_SITE_EXT_SESSION_NO_NODES" value="TRUE"> <input type="hidden" id="PASSWORD_1" name="PASSWORD_1" value="00000"> <input type="hidden" id="PASSWORD_2" name="PASSWORD_2" value="00000"> <input type="hidden" id="PAYMENT_TYPE" name="PAYMENT_TYPE" value="CC1"> <input type="hidden" id="DELIVERY_TYPE" name="DELIVERY_TYPE" value="ETCKT"> <input type="hidden" id="NUMBER_OF_PROFILES" name="NUMBER_OF_PROFILES" value="1"> <input type="hidden" id="TYPE_1" name="TYPE_1" value="ADT"> <input type="hidden" id="TITLE_1" name="TITLE_1" value=""> <input type="hidden" id="PREF_AIR_FREQ_AIRLINE_1_1" name="PREF_AIR_FREQ_AIRLINE_1_1" value="FB"> <input type="hidden" id="PREF_AIR_FREQ_LEVEL_1_1" name="PREF_AIR_FREQ_LEVEL_1_1" value=""> <input type="hidden" id="PREF_AIR_FREQ_LEVEL_NAME_1_1" name="PREF_AIR_FREQ_LEVEL_NAME_1_1" value=""> <input type="hidden" id="PREF_AIR_FREQ_MILES_1_1" name="PREF_AIR_FREQ_MILES_1_1" value="0"> <input type="hidden" id="CONTACT_POINT_HOME_PHONE_1" name="CONTACT_POINT_HOME_PHONE_1" value=""> <input type="hidden" id="CONTACT_POINT_BUSINESS_PHONE_1" name="CONTACT_POINT_BUSINESS_PHONE_1" value=""> <input type="hidden" id="CONTACT_POINT_HOME_PHONE_OC" name="CONTACT_POINT_HOME_PHONE_OC" value=""> <input type="hidden" id="CONTACT_POINT_HOME_PHONE" name="CONTACT_POINT_HOME_PHONE" value=""> <input type="hidden" id="PREF_AIR_MEAL_1" name="PREF_AIR_MEAL_1" value=""> <input type="hidden" id="IDENTITY_DOCUMENT_NUMBER_1_VISA_BK_GLOBAL_DEFAULT_1" name="IDENTITY_DOCUMENT_NUMBER_1_VISA_BK_GLOBAL_DEFAULT_1" value=""> <input type="hidden" id="IDENTITY_DOCUMENT_PLACE_OF_ISSUING_1_VISA_BK_GLOBAL_DEFAULT_1" name="IDENTITY_DOCUMENT_PLACE_OF_ISSUING_1_VISA_BK_GLOBAL_DEFAULT_1" value=""> <input type="hidden" id="IDENTITY_DOCUMENT_ISSUE_DATE_1_VISA_BK_GLOBAL_DEFAULT_1" name="IDENTITY_DOCUMENT_ISSUE_DATE_1_VISA_BK_GLOBAL_DEFAULT_1" value=""> <input type="hidden" id="IDENTITY_DOCUMENT_PLACE_OF_BIRTH_1_VISA_BK_GLOBAL_DEFAULT_1" name="IDENTITY_DOCUMENT_PLACE_OF_BIRTH_1_VISA_BK_GLOBAL_DEFAULT_1" value=""> <input type="hidden" id="IDENTITY_DOCUMENT_APPLICABLE_COUNTRY_1_VISA_BK_GLOBAL_DEFAULT_1" name="IDENTITY_DOCUMENT_APPLICABLE_COUNTRY_1_VISA_BK_GLOBAL_DEFAULT_1" value=""> <input type="hidden" id="IDENTITY_DOCUMENT_ISSUE_DATE_1_PSPT_BK_GLOBAL_DEFAULT_1" name="IDENTITY_DOCUMENT_ISSUE_DATE_1_PSPT_BK_GLOBAL_DEFAULT_1" value=""> <input type="hidden" id="AIR_CC_ADDRESS_FIRSTLINE" name="AIR_CC_ADDRESS_FIRSTLINE" value="Brussels 1 blvd."> <input type="hidden" id="AIR_CC_ADDRESS_SECONDLINE" name="AIR_CC_ADDRESS_SECONDLINE" value=""> <input type="hidden" id="AIR_CC_ADDRESS_CITY" name="AIR_CC_ADDRESS_CITY" value="Sofia"> <input type="hidden" id="AIR_CC_ADDRESS_STATE" name="AIR_CC_ADDRESS_STATE" value="Sofia"> <input type="hidden" id="AIR_CC_ADDRESS_ZIPCODE" name="AIR_CC_ADDRESS_ZIPCODE" value="1540"> <input type="hidden" id="AIR_CC_ADDRESS_COUNTRY" name="AIR_CC_ADDRESS_COUNTRY" value="Bulgaria"> <input type="hidden" id="CONTACT_1_ADDRESS_INFORMATION_NAME" name="CONTACT_1_ADDRESS_INFORMATION_NAME" value="Bulgaria Air - Customer Service Center"> <input type="hidden" id="CONTACT_1_ADDRESS_INFORMATION_COMPANY_NAME" name="CONTACT_1_ADDRESS_INFORMATION_COMPANY_NAME" value="Bulgaria Air"> <input type="hidden" id="CONTACT_1_ADDRESS_INFORMATION_EMAIL" name="CONTACT_1_ADDRESS_INFORMATION_EMAIL" value="callFB@air.bg "> <input type="hidden" id="CONTACT_1_ADDRESS_INFORMATION_FIRST_ADDRESS_LINE" name="CONTACT_1_ADDRESS_INFORMATION_FIRST_ADDRESS_LINE" value="Brussels 1 blvd."> <input type="hidden" id="CONTACT_1_ADDRESS_INFORMATION_CITY" name="CONTACT_1_ADDRESS_INFORMATION_CITY" value="Sofia"> <input type="hidden" id="CONTACT_1_ADDRESS_INFORMATION_ZIP_CODE" name="CONTACT_1_ADDRESS_INFORMATION_ZIP_CODE" value="1540"> <input type="hidden" id="CONTACT_1_ADDRESS_INFORMATION_COUNTRY" name="CONTACT_1_ADDRESS_INFORMATION_COUNTRY" value="Bulgaria"> <input type="hidden" id="DIRECT_LOGIN" name="DIRECT_LOGIN" value="NO"> <input type="hidden" id="SO_SITE_MULTI_DIRECT_LOGIN" name="SO_SITE_MULTI_DIRECT_LOGIN" value="FALSE"> <input type="hidden" id="SO_SITE_DIRECT_LOGIN" name="SO_SITE_DIRECT_LOGIN" value="FALSE"> <input type="hidden" id="SO_SITE_APIM_AUTOPREFIL" name="SO_SITE_MULTI_DIRECT_LOGIN" value="FALSE"> </form> </div> </div> </div> <div class="sub-menu" id="submenu-2"> <div class="wrapper"> <div class="sub-menu-title icon-web-checkin"> Online check-in <button type="button" class="close-submenu">x</button> </div> <div class="form-search custom-form-search"> <form action="/bg/outgoing/checkindirect" target="_blank" method="get" class="custom-online-form"> <input type="hidden" name="ln" value="en" /> <div class="custom-form-errors"></div> <ol class="custom-form custom-form-flex"> <li class="item-field"> <div class="item-inner"> <div class="custom-form-label custom-form-label-options" data-field="checkin-type"> Номер на: <label class="custom-radio-checkbox" for="PNR_bottom"> <input type="radio" name="IIdentificationType" id="PNR_bottom" value="PNR" checked/> <div class="custom-radio-checkbox-element">Резервация</div> </label> <label class="custom-radio-checkbox" for="ETKT_bottom"> <input type="radio" name="IIdentificationType" id="ETKT_bottom" value="ETKT"/> <div class="custom-radio-checkbox-element">Електронен билет</div> </label> </div> <input type="text" name="identifier" id="identifier" class="custom-input" autocomplete="off" placeholder="НОМЕР НА РЕЗЕРВАЦИЯ" data-field="checkin-type"/> <div class="custom-error" data-field-error="checkin-type"></div> </div> </li> <li class="item-field"> <div class="item-inner"> <label class="custom-form-label" for="ISurname_bottom">Фамилия :</label> <input type="text" name="lastName" id="lastName" class="custom-input" autocomplete="off" placeholder="Например: Ivanov" data-field="last-name"/> <div class="custom-error" data-field-error="last-name"></div> </div> </li> <input type="hidden" id="lang" name="lang" value="bg-BG"> <li class="item-button"> <div class="item-inner"> <div class="custom-form-label custom-form-label-empty"> </div> <button type="submit" class="search"><span>Tърси</span></button> </div> </li> </ol> </form> </div> </div> </div> <div class="sub-menu" id="submenu-3"> <div class="wrapper"> <div class="sub-menu-title icon-reservation"> Проверка на резервация <button type="button" class="close-submenu">x</button> </div> <div class="form-search custom-form-search"> <form method="post" action="/bg/outgoing/check-reservation" target="_blank" class="custom-reservation-form"> <div class="custom-form-errors"></div> <ol class="custom-form custom-form-flex"> <li class="item-field"> <div class="item-inner"> <label class="custom-form-label" for="REC_LOC_bottom">Номер на резервация:</label> <input type="text" name="REC_LOC" id="REC_LOC_bottom" class="custom-input" autocomplete="off" placeholder="Например: 6YFB0A" data-field="reservation-code"/> <div class="custom-error" data-field-error="reservation-code"></div> </div> </li> <li class="item-field"> <div class="item-inner"> <label class="custom-form-label" for="DIRECT_RETRIEVE_LASTNAME_bottom">Фамилия:</label> <input type="text" name="DIRECT_RETRIEVE_LASTNAME" id="DIRECT_RETRIEVE_LASTNAME_bottom" class="custom-input" autocomplete="off" placeholder="Например: Ivanov" data-field="last-name"/> <div class="custom-error" data-field-error="last-name"></div> </div> </li> <li class="el-hide"> <input type="hidden" value="RetrievePNR" name="EMBEDDED_TRANSACTION" id="EMBEDDED_TRANSACTION"> <input type="hidden" value="5ANS5NEW" name="SITE" id="SITE"> <input type="hidden" id="LANGUAGE" name="LANGUAGE" value="BG"> <input type="hidden" value="YES" name="TRIP_FLOW" id="TRIP_FLOW"> <input type="hidden" value="TRUE" name="DIRECT_RETRIEVE" id="DIRECT_RETRIEVE"> <input type="hidden" value="YES" name="SO_SITE_ALLOW_PNR_SERV" id="SO_SITE_ALLOW_PNR_SERV"> <input type="hidden" value="NO" name="SO_SITE_PNR_SERV_REQ_LOGIN" id="SO_SITE_PNR_SERV_REQ_LOGIN"> <input type="hidden" value="TRUE" name="SO_SITE_ALLOW_DIRECT_RT" id="SO_SITE_ALLOW_DIRECT_RT"> <input type="hidden" value="TRUE" name="SO_SITE_RT_SHOW_PRICES" id="SO_SITE_RT_SHOW_PRICES"> <input type="hidden" value="Y" name="SO_SITE_ALLOW_PNR_MODIF" id="SO_SITE_ALLOW_PNR_MODIF"> <input type="hidden" value="Y" name="SO_SITE_ALLOW_TKT_PNR_MODIF" id="SO_SITE_ALLOW_TKT_PNR_MODIF"> <input type="hidden" value="TRUE" name="SO_SITE_ETKT_VIEW_ENABLED" id="SO_SITE_ETKT_VIEW_ENABLED"> <input type="hidden" value="TRUE" name="SO_SITE_BOOL_RK_ETKT_FAIL" id="SO_SITE_BOOL_RK_ETKT_FAIL"> <input type="hidden" value="TRUE" name="SO_SITE_DISPL_SPECIAL_REQS" id="SO_SITE_DISPL_SPECIAL_REQS"> <input type="hidden" value="TRUE" name="SO_SITE_RT_PRICE_FROM_TST" id="SO_SITE_RT_PRICE_FROM_TST"> <input type="hidden" value="TRUE" name="SO_SITE_NEW_UI_ENABLED" id="SO_SITE_NEW_UI_ENABLED"> <input type="hidden" id="EXTERNAL_ID" name="EXTERNAL_ID" value="MANAGEBOOKING"> </li> <li class="item-button"> <div class="item-inner"> <div class="custom-form-label custom-form-label-empty"> </div> <button type="submit" class="search"><span>Покажи</span></button> </div> </li> </ol> </form> </div> </div> </div> <div class="sub-menu blue" id="submenu-4"> <div class="wrapper"> <ul class="larger"> <li><a href="/bg/uslugi/poletna-informacija" class="">Полетна информация</a></li> <li><a href="/bg/kontakti" class="">Контакти</a></li> <li><a href="/bg/promocii" class="">Промоции</a></li> <li><a href="/bg/novini" class="">Новини</a></li> </ul> </div> </div> <div class="sub-menu blue" id="submenu-5"> <div class="wrapper"> <ul class="larger"> <li><a href="https://armeec.bg/" class="">Застраховки</a></li> <li><a href="/bg/uslugi/hoteli" class="">Хотели</a></li> <li><a href="https://www.sixt.com/bulgaria-air" class="">Rent-a-car</a></li> <li><a href="https://www.air.bg/bg/uslugi/poletna-informaciya" class="">Полетна информация</a></li> </ul> </div> </div> </div> <div class="popup" id="popup_subscribe" data-popup="popup_subscribe"> <div class="popup-content"> <strong class="title"></strong> </div> <span class="close">x</span> </div> <div class="overlay"></div> <script> $(function () { if ($('body').hasClass('lang-bg')) { flight_form_texts = { select_placeholder: 'Търси по летище, град, държава', destinations: 'Дестинации', select_destination: 'Изберете дестинация', no_results: 'Няма намерени резултати.', passenger: 'пътник', passengers: 'пътника', passenger_2: 'пътник', passengers_2: 'пътника', passenger_2_years: '(12-26 години)', flight_date: 'Дата на полет', flight_dates: 'Дати на полетите', departure: 'Заминаване', arrival: 'Връщане', two_way: 'Двупосочен', one_way: 'Еднопосочен', ready: 'Готово', invalid_destinations: 'Изберете дестинации.', invalid_destination: 'Изберете дестинация.', invalid_arrival_airport: 'Изберете летище за връщане.', invalid_dates: 'Изберете дати.', invalid_date: 'Изберете дата.', invalid_departure_date: 'Изберете дата за заминаване.', invalid_arrival_date: 'Изберете дата за връщане.', invalid_passengers: 'Изберете брой пътници.', invalid_children: 'Необходим е поне един възрастен.', invalid_infants: 'Броят на бебетата трябва да е по-малък или равен на броя на възрастните. ', // limit_passengers: 'За повече от 9 пътника, моля <a href="javascript:;">свържете се</a> с нас.', limit_passengers: 'За резервации за повече от 9 пътника моля използвайте формата за <a target="_blank" href="/bg/kontakti">контакт</a>.', limit_passengers_2: 'За повече от 4 пътника, моля <a target="_blank" href="/bg/kontakti">свържете се с нас</a>.', airports: 'летища', mandatory_condition: '*задължително условие' }; } else { flight_form_texts = { select_placeholder: 'Search by airport, city, country', destinations: 'Destinations', select_destination: 'Select destination', no_results: 'No results found.', passenger: 'passenger', passengers: 'passengers', passenger_2: 'passenger', passengers_2: 'passengers', passenger_2_years: '(12-26 years)', flight_date: 'Flight date', flight_dates: 'Flight dates', departure: 'Departure', arrival: 'Return', two_way: 'Round trip', one_way: 'One way', ready: 'Ready', invalid_dates: 'Choose dates.', invalid_date: 'Choose date.', invalid_destinations: 'Select destinations.', invalid_destination: 'Select destination.', invalid_departure_date: 'Select departure date.', invalid_arrival_date: 'Select arrival date.', invalid_passengers: 'Select number of passengers.', invalid_children: 'At least one adult is mandatory.', invalid_infants: 'Тhe number of infants should be less than or equal to the number of adults.', // limit_passengers: 'For more than 9 passengers, please <a href="javascript:;">contact us</a>.', limit_passengers: 'For reservations for more than 9 passengers, please use the <a target="_blank" href="/en/contacts">contact</a> form.', limit_passengers_2: 'For more than 4 passengers, please <a target="_blank" href="/en/contacts">contact us</a>.', airports: 'airports', mandatory_condition: '*mandatory condition' }; } var selected_code; var selected_id; var locations = []; var young = 0; var inited = 0; $('.js-young__discount').prop( "checked", false ); $.getJSON(xhr_url + '?method=get_available_airports&youth=' + young, function (data) { locations = data.locations; $.each(locations, function (i, location) { if (location.active == true) { selected_id = location.id; selected_code = location.code; } if (typeof (location.children) != 'undefined') { $.each(location.children, function (j, child) { if (child.active == true) { selected_id = child.id; selected_code = child.code; } }); } }); }); function get_airports() { $('.loader').css('display', 'block'); $.getJSON(xhr_url + '?method=get_available_airports&youth=' + young, function (data) { locations = data.locations; $.each(locations, function (i, location) { if (location.active == true) { selected_id = location.id; selected_code = location.code; } if (typeof (location.children) != 'undefined') { $.each(location.children, function (j, child) { if (child.active == true) { selected_id = child.id; selected_code = child.code; } }); } }); $('.custom-flight-form').each(function () { var flight_form = $(this); $('[data-select="B_LOCATION_1"]', flight_form).empty(); $('[data-input="E_LOCATION_1"]', flight_form).val(''); $('[data-select="E_LOCATION_1"]', flight_form).val(''); $('[data-select="B_LOCATION_1"]', flight_form).select2({ dropdownParent: $('[data-select="B_LOCATION_1"]', flight_form).parent(), containerCssClass: 'custom-select2 custom-select2-top icon-location', dropdownCssClass: 'custom-select2-dropdown', templateResult: formatData, templateSelection: formatDataSelection, placeholder: flight_form_texts.select_destination, data: locations, 'language': { 'noResults': function () { return flight_form_texts.no_results; } }, escapeMarkup: function (location_markup) { return location_markup; } }); $('[data-input="B_LOCATION_1"]', flight_form).val(selected_code); $('[data-select="B_LOCATION_1"]', flight_form).val(selected_id).trigger('change'); if($('.custom-form', flight_form[0]).hasClass('unhide-fields')){ $('.custom-form', flight_form[0]).removeClass('unhide-fields swap-fields'); } $('.custom-form .start-location label', flight_form[0]).html('Начална дестинация:'); $.getJSON(xhr_url + '?method=get_available_airports_arrival&code=' + selected_code + '&youth=' + young, function (data) { $('[data-select="E_LOCATION_1"]', flight_form).empty(); $('[data-select="E_LOCATION_1"]', flight_form).select2({ data: data.locations, dropdownParent: $('[data-select="E_LOCATION_1"]', flight_form).parent(), containerCssClass: 'custom-select2 custom-select2-bottom icon-location', dropdownCssClass: 'custom-select2-dropdown', templateResult: formatData, templateSelection: formatDataSelection, placeholder: flight_form_texts.select_destination, 'language': { 'noResults': function () { return flight_form_texts.no_results; } }, escapeMarkup: function (location_markup) { return location_markup; } }); $('[data-select="E_LOCATION_1"]', flight_form) .val(selected_id) .trigger('change'); if($('.custom-form', flight_form[0]).hasClass('unhide-fields')){ $('.custom-form', flight_form[0]).removeClass('unhide-fields swap-fields'); } $('.custom-form .start-location label', flight_form[0]).html('Начална дестинация:'); $('.loader').css('display', 'none'); }); }); }); } // get_airports(); var B_LOCATION_1 = 'B_LOCATION_1', E_LOCATION_1 = 'E_LOCATION_1', B_DATE_1 = 'B_DATE_1', B_DATE_2 = 'B_DATE_2', B_DATE_1_INLINE_PICKER = 'B_DATE_1_INLINE_PICKER', B_DATE_1_PICKER = 'B_DATE_1_PICKER', B_DATE_2_INLINE_PICKER = 'B_DATE_2_INLINE_PICKER'; B_DATE_2_PICKER = 'B_DATE_2_PICKER', B_LOCATION_1_ERROR = 'B_LOCATION_1_ERROR'; // Pick locations function formatData(data) { var type = data.type || '', name = data.name || data.text, code = data.code || '', distance = data.distance || '', country = data.country || '', airports = data.airports || ''; var location_markup = "<div class='select2-result' data-type=" + type + ">"; if (airports) { location_markup += "<div class='head'>" + "<strong class='location-title'>" + name + "</strong>" + " " + "<span class='location-airports'>" + airports + "</span>" + "</div>"; } else { location_markup += "<div class='head'>" + "<strong class='location-title'>" + name + "</strong>" + " " + "<span class='location-code'>" + code + "</span>" + "</div>"; } location_markup += "<div class='body'>" + "<div class='location-distance'>" + distance + "</div>" + "<div class='location-country'>" + country + "</div>" + "</div>"; location_markup += "</div>"; return location_markup; } function formatDataSelection(data) { var type = data.type || '', name = data.name || data.text, code = data.code || ''; return "<strong class='location-title' data-type='" + type + "'>" + name + "</strong>" + "<span class='location-code'>" + code + "</span>"; } // New $(function () { $('.custom-flight-form').each(function () { var flight_form = $(this); $('[data-select="' + E_LOCATION_1 + '"]', flight_form).val(2).trigger('change'); // From $('[data-select="B_LOCATION_1"]', flight_form).select2({ dropdownParent: $('[data-select="B_LOCATION_1"]', flight_form).parent(), containerCssClass: 'custom-select2 custom-select2-top icon-location', dropdownCssClass: 'custom-select2-dropdown', templateResult: formatData, templateSelection: formatDataSelection, placeholder: flight_form_texts.select_destination, //searchInputPlaceholder: flight_form_texts.select_placeholder, 'language': { 'noResults': function () { return flight_form_texts.no_results; } }, escapeMarkup: function (location_markup) { return location_markup; } }).on('select2:open', function () { $('html').addClass('selection-open'); }).on('select2:close', function () { $('html').removeClass('selection-open'); }); // To $('[data-select="' + E_LOCATION_1 + '"]', flight_form).select2({ dropdownParent: $('[data-select="E_LOCATION_1"]', flight_form).parent(), containerCssClass: 'custom-select2 custom-select2-bottom icon-location', dropdownCssClass: 'custom-select2-dropdown', templateResult: formatData, templateSelection: formatDataSelection, placeholder: flight_form_texts.select_destination, //searchInputPlaceholder: flight_form_texts.select_placeholder, 'language': { 'noResults': function () { return flight_form_texts.no_results; } }, escapeMarkup: function (location_markup) { return location_markup; } }).on('select2:open', function () { $('html').addClass('selection-open'); }).on('select2:close', function () { $('html').removeClass('selection-open'); }); var checkLocations = setTimeout(function () { if (locations.length > 0) { $('[data-select="B_LOCATION_1"]', flight_form).select2({ data: locations, dropdownParent: $('[data-select="B_LOCATION_1"]', flight_form).parent(), containerCssClass: 'custom-select2 custom-select2-top icon-location', dropdownCssClass: 'custom-select2-dropdown', templateResult: formatData, templateSelection: formatDataSelection, placeholder: flight_form_texts.select_destination, //searchInputPlaceholder: flight_form_texts.select_placeholder, 'language': { 'noResults': function () { return flight_form_texts.no_results; } }, escapeMarkup: function (location_markup) { return location_markup; } }).on('select2:open', function (e) { // // var b_element = $('[data-select="'+ B_LOCATION_1 +'"]', flight_form), // b_select = $('[data-select="'+ B_LOCATION_1 +'"]', flight_form).next('.select2'), // b_text = $('.select2-selection__rendered strong', b_select).text(); // // setTimeout(function(){ // $('[id*=select2-'+ $(b_element).attr('name') + '] .select2-results__option').removeClass('select2-results__option--highlighted').attr('aria-selected', false); // $('[id*=select2-'+ $(b_element).attr('name') + '] .location-title:contains(' + b_text + ')').parents('.select2-results__option').addClass('select2-results__option--highlighted').attr('aria-selected', true); // }, 1); $('.custom-input-dropdown').removeClass('dropdown-open'); start_date_picker.close(); // New setTimeout(function () { $('[role="group"]').each(function (i, e) { $(e).removeAttr('aria-selected'); }); }, 100); // New $('.select2-search__field').attr('placeholder', flight_form_texts.select_placeholder).blur().focus(); setTimeout(function () { $('.select2-search__field').trigger('blur').focus(); }, 10); }).on('select2:select', function (e) { //Loader Init $('.loader').css('display', 'block'); $('[data-input="' + B_LOCATION_1 + '"]', flight_form).val($(e.delegateTarget).select2('data')[0].code); if (this.value != '-1') { $('[data-field="group-select-destinations"]').removeClass('custom-field-error'); $('[data-field-error="group-select-destinations"]').html(''); } $('[data-input="' + E_LOCATION_1 + '"]', flight_form).val(''); // Get the code from selected location selected_code = $(e.delegateTarget).select2('data')[0].code; $.getJSON(xhr_url + '?method=get_available_airports_arrival&code=' + selected_code + '&youth=' + young , function (data) { if (typeof (location.children) != 'undefined') { // location.children.sort((a, b) => (a.id) + (b.id)); location.children.sort(function (a, b) { return (a.id) + (b.id) }); } $('[data-select="' + E_LOCATION_1 + '"]', flight_form).empty(); $('[data-select="' + E_LOCATION_1 + '"]', flight_form).select2({ data: data.locations, dropdownParent: $('[data-select="E_LOCATION_1"]', flight_form).parent(), containerCssClass: 'custom-select2 custom-select2-bottom icon-location', dropdownCssClass: 'custom-select2-dropdown', templateResult: formatData, templateSelection: formatDataSelection, placeholder: flight_form_texts.select_destination, //searchInputPlaceholder: flight_form_texts.select_placeholder, 'language': { 'noResults': function () { return flight_form_texts.no_results; } }, escapeMarkup: function (location_markup) { return location_markup; } }).on('select2:open', function (e) { var e_element = $('[data-select="' + E_LOCATION_1 + '"]', flight_form), e_select = $('[data-select="' + E_LOCATION_1 + '"]', flight_form).next('.select2'), e_text = $('.select2-selection__rendered strong', e_select).text(); setTimeout(function () { $('[id*=select2-' + $(e_element).attr('name') + '] .select2-results__option').removeClass('select2-results__option--highlighted').attr('aria-selected', false); $('[id*=select2-' + $(e_element).attr('name') + '] .location-title:contains(' + e_text + ')').parents('.select2-results__option').addClass('select2-results__option--highlighted').attr('aria-selected', true); }, 1); $('.custom-input-dropdown', flight_form).removeClass('dropdown-open'); start_date_picker.close(); // New setTimeout(function () { $('[role="group"]').each(function (i, e) { $(e).removeAttr('aria-selected'); }); }, 100); // New $('.select2-search__field').attr('placeholder', flight_form_texts.select_placeholder).blur().focus(); setTimeout(function () { $('.select2-search__field').trigger('blur').focus(); }, 10); }).on('select2:select', function (e) { $('[data-input="' + E_LOCATION_1 + '"]', flight_form).val($(e.delegateTarget).select2('data')[0].code); if (this.value != '-1') { $('[data-field="group-select-destinations"]', flight_form).removeClass('custom-field-error'); $('[data-field-error="group-select-destinations"]', flight_form).html(''); } }); $('.loader').css('display', 'none'); }); }); $('[data-select="' + E_LOCATION_1 + '"]', flight_form).select2({ data: locations, dropdownParent: $('[data-select="E_LOCATION_1"]', flight_form).parent(), containerCssClass: 'custom-select2 custom-select2-bottom icon-location', dropdownCssClass: 'custom-select2-dropdown', templateResult: formatData, templateSelection: formatDataSelection, placeholder: flight_form_texts.select_destination, //searchInputPlaceholder: flight_form_texts.select_placeholder, 'language': { 'noResults': function () { return flight_form_texts.no_results; } }, escapeMarkup: function (location_markup) { return location_markup; } }).on('select2:open', function (e) { var e_element = $('[data-select="' + E_LOCATION_1 + '"]', flight_form), e_select = $('[data-select="' + E_LOCATION_1 + '"]', flight_form).next('.select2'), e_text = $('.select2-selection__rendered strong', e_select).text(); setTimeout(function () { $('[id*=select2-' + $(e_element).attr('name') + '] .select2-results__option').removeClass('select2-results__option--highlighted').attr('aria-selected', false); $('[id*=select2-' + $(e_element).attr('name') + '] .location-title:contains(' + e_text + ')').parents('.select2-results__option').addClass('select2-results__option--highlighted').attr('aria-selected', true); }, 1); $('.custom-input-dropdown', flight_form).removeClass('dropdown-open'); start_date_picker.close(); // New setTimeout(function () { $('[role="group"]').each(function (i, e) { $(e).removeAttr('aria-selected'); }); }, 100); // New $('.select2-search__field').attr('placeholder', flight_form_texts.select_placeholder); setTimeout(function () { $('.select2-search__field').trigger('blur').focus(); }, 10); }).on('select2:select', function (e) { $('[data-input="' + E_LOCATION_1 + '"]', flight_form).val($(e.delegateTarget).select2('data')[0].code); if (this.value != '-1') { $('[data-field="group-select-destinations"], .group-select-item', flight_form).removeClass('custom-field-error'); $('[data-field-error="group-select-destinations"]', flight_form).html(''); $('[data-field-error="arrival-destination"]', flight_form).html(''); } }); //Selected by default // $('[data-select="'+ B_LOCATION_1 +'"]', flight_form).val(selected_id).trigger('change'); //$('[data-input="'+ E_LOCATION_1 +'"]', flight_form).val( $(e.delegateTarget).select2('data')[0].code ); if (selected_id) { $('.loader').css('display', 'block'); // console.log(selected_id, selected_code); $('[data-select="' + B_LOCATION_1 + '"]', flight_form).val(selected_id).trigger('change'); $('[data-select="B_LOCATION_1"]', flight_form).trigger('change').promise().done(function () { $.getJSON(xhr_url + '?method=get_available_airports_arrival&code=' + $('[data-select="' + B_LOCATION_1 + '"]', flight_form).select2('data')[0].code + '&youth=' + young, function (data) { $('[data-select="' + E_LOCATION_1 + '"]', flight_form).empty(); $('[data-select="' + E_LOCATION_1 + '"]', flight_form).select2({ data: data.locations, dropdownParent: $('[data-select="E_LOCATION_1"]', flight_form).parent(), containerCssClass: 'custom-select2 custom-select2-bottom icon-location', dropdownCssClass: 'custom-select2-dropdown', templateResult: formatData, templateSelection: formatDataSelection, placeholder: flight_form_texts.select_destination, //searchInputPlaceholder: flight_form_texts.select_placeholder, 'language': { 'noResults': function () { return flight_form_texts.no_results; } }, escapeMarkup: function (location_markup) { return location_markup; } }).on('select2:open', function (e) { var e_element = $('[data-select="' + E_LOCATION_1 + '"]', flight_form), e_select = $('[data-select="' + E_LOCATION_1 + '"]', flight_form).next('.select2'), e_text = $('.select2-selection__rendered strong', e_select).text(); setTimeout(function () { $('[id*=select2-' + $(e_element).attr('name') + '] .select2-results__option').removeClass('select2-results__option--highlighted').attr('aria-selected', false); $('[id*=select2-' + $(e_element).attr('name') + '] .location-title:contains(' + e_text + ')').parents('.select2-results__option').addClass('select2-results__option--highlighted').attr('aria-selected', true); }, 1); $('.custom-input-dropdown', flight_form).removeClass('dropdown-open'); start_date_picker.close(); }).on('select2:select', function (e) { $('[data-input="' + E_LOCATION_1 + '"]', flight_form).val($(e.delegateTarget).select2('data')[0].code); if (this.value != '-1') { $('[data-field="group-select-destinations"], .group-select-item', flight_form).removeClass('custom-field-error'); $('[data-field-error="group-select-destinations"]', flight_form).html(''); $('[data-field-error="arrival-destination"]', flight_form).html(''); } }); $('[name="E_LOCATION_1"]', flight_form).val(25).trigger('change'); $('.loader').css('display', 'none'); }); }); $('[name="B_LOCATION_1"]').val(selected_id); } // edit $('[data-input="'+ B_LOCATION_1 +'"]', flight_form).val( $('[data-select="'+ B_LOCATION_1 +'"]', flight_form).select2('data')[0].code ); // edit $('[data-input="'+ E_LOCATION_1 +'"]', flight_form).val( $('[data-select="'+ E_LOCATION_1 +'"]', flight_form).select2('data')[0].code ); // Young discount $('.js-young__discount', flight_form).on('change', function () { if (this.checked) { young = 1; $(this).parents('.custom-form').addClass('young-discount-active'); $('.travellers', flight_form).html('<input type="hidden" name="TRAVELLER_TYPE_1" value="STU">'); $('[name="ADTPAX"]', flight_form).val('0'); $('[name="STU"]', flight_form).val('1'); $('[name="passengers"]', flight_form).val('1 ' + flight_form_texts.passenger_2 + ' ' + flight_form_texts.passenger_2_years); $('.input-dropdown-error--passengers', flight_form).html(flight_form_texts.mandatory_condition); } else { young = 0; $(this).parents('.custom-form').removeClass('young-discount-active young-discount-expanded'); $('.travellers', flight_form).html('<input type="hidden" name="TRAVELLER_TYPE_1" value="ADT" />'); $('[name="ADTPAX"]', flight_form).val('1'); $('[name="travellers"]', flight_form).val('1 ' + flight_form_texts.passenger); } if (inited == 1) { get_airports(); } // $('#young_bottom').prop('checked', true); start_date_picker.set('mode', 'range'); $('.flatpickr-calendar', flight_form).addClass('two-fields').removeClass('one-field'); $('.custom-datepicker', flight_form).parents('li').removeClass('expanded-datepicker'); $('[name="TRIP_TYPE"]', flight_form).prop('checked', true).val($('[name="TRIP_TYPE"]').data('checked')); $('[name="CHDPAX"], [name="InfantPAX"]', flight_form).val('0'); }) inited = 1; } else { setTimeout(arguments.callee, 10); } }, 10); $('[name="' + B_LOCATION_1 + '"], [name="' + E_LOCATION_1 + '"]', flight_form[0]).on('change', function () { if ($('[name="' + B_LOCATION_1 + '"]', flight_form[0]).val() != 0 && $('[name="' + E_LOCATION_1 + '"]', flight_form[0]).val() != 0) { $('.custom-form', flight_form[0]).addClass('unhide-fields swap-fields'); $('.custom-form .start-location label', flight_form[0]).html(flight_form_texts.destinations + ':'); } }); // Switch locations var swap = 0; $(document).on('click', '[data-input="switch-locations"]', function (e) { $('.loader').css('display', 'block'); e.stopImmediatePropagation(); var form_flight = $(this).parents('.custom-flight-form'), b_element = $('[data-select="' + B_LOCATION_1 + '"]', form_flight), e_element = $('[data-select="' + E_LOCATION_1 + '"]', form_flight), b_select = $(b_element).next('.select2', form_flight), e_select = $(e_element).next('.select2', form_flight), b_text = $('.select2-selection__rendered', b_select).html(), e_text = $('.select2-selection__rendered', e_select).html(); var current_b_location = b_element.val(); var current_e_location = e_element.val(); $('.select2-selection__rendered', b_select).html(e_text); $('.select2-selection__rendered', e_select).html(b_text); // New if (typeof($(b_text)[1]) != 'undefined' && typeof($(e_text)[1]) != 'undefined') { $('[data-input="' + B_LOCATION_1 + '"]', form_flight).val($(e_text)[1].innerText); $('[data-input="' + E_LOCATION_1 + '"]', form_flight).val($(b_text)[1].innerText); } $('[data-field="group-select-destination_1"], [data-field="group-select-destination_2"]', flight_form[1]).removeClass('custom-field-error'); $('[data-field-error="group-select-destination_1"], [data-field-error="group-select-destination_2"]', flight_form[1]).html(''); var E_CODE = $(e_text)[1].innerText; var B_CODE = $(b_text)[1].innerText; // $.getJSON(xhr_url + '?method=get_available_airports&code='+E_CODE); // $.getJSON(xhr_url + '?method=get_available_airports_arrival&code='+B_CODE); $('[data-input="' + B_LOCATION_1 + '"]', form_flight); $('[data-input="' + E_LOCATION_1 + '"]', form_flight); $.getJSON(xhr_url + '?method=get_available_airports_arrival&code=' + E_CODE + '&youth=' + young, function (data) { $('[data-select="' + E_LOCATION_1 + '"]', form_flight).empty(); $('[data-select="' + E_LOCATION_1 + '"]', form_flight).select2({ data: data.locations, dropdownParent: $('[data-select="E_LOCATION_1"]', form_flight).parent(), containerCssClass: 'custom-select2 custom-select2-bottom icon-location', dropdownCssClass: 'custom-select2-dropdown', templateResult: formatData, templateSelection: formatDataSelection, placeholder: flight_form_texts.select_destination, 'language': { 'noResults': function () { return flight_form_texts.no_results; } }, escapeMarkup: function (location_markup) { return location_markup; } }); $('[data-select="' + E_LOCATION_1 + '"]', form_flight) .val(current_b_location) .trigger('change'); $('[data-select="' + B_LOCATION_1 + '"]', form_flight) .val(current_e_location) .trigger('change'); $('.loader').css('display', 'none'); }); }); // Datepicker var start_date_picker_element = $('[data-datepicker="' + B_DATE_1_PICKER + '"]', flight_form).data('placement'); var max_date = new (Date); max_date.setDate(max_date.getDate() + 330); var start_date_picker = $('[data-datepicker="' + B_DATE_1_PICKER + '"]', flight_form).flatpickr({ mode: 'range', showMonths: 2, dateFormat: 'd M Y', minDate: new (Date), maxDate: max_date, appendTo: document.getElementById(start_date_picker_element), //closeOnSelect: false, animate: false, onOpen: function () { $('.custom-input-dropdown', flight_form).removeClass('dropdown-open'); }, onChange: function (selectedDates, instance) { if ($('body').hasClass('lang-bg')) { $('[data-datepicker="' + B_DATE_1_INLINE_PICKER + '"]', flight_form).text(moment(selectedDates[0]).locale('bg').format('D MMM YYYY')); } else { $('[data-datepicker="' + B_DATE_1_INLINE_PICKER + '"]', flight_form).text(moment(selectedDates[0]).locale('en').format('D MMM YYYY')); } $('[data-datepicker="' + B_DATE_1 + '"]').val(moment(selectedDates[0]).format(moment(selectedDates[0]).format('YYYYMMDD'))).removeClass('placeholder'); $('[data-datepicker="' + B_DATE_2_INLINE_PICKER + '"]').html(flight_form_texts.arrival); $('[data-datepicker="' + B_DATE_2 + '"]', flight_form).val(''); if (selectedDates[1] != undefined) { if ($('body').hasClass('lang-bg')) { $('[data-datepicker="' + B_DATE_2_INLINE_PICKER + '"]', flight_form).text(moment(selectedDates[1]).locale('bg').format('D MMM YYYY')); } else { $('[data-datepicker="' + B_DATE_2_INLINE_PICKER + '"]', flight_form).text(moment(selectedDates[1]).locale('en').format('D MMM YYYY')); } $('[data-datepicker="' + B_DATE_2 + '"]', flight_form).val(moment(selectedDates[1]).format(moment(selectedDates[1]).format('YYYYMMDD'))); } switch (start_date_picker.config.mode) { case 'range': if (selectedDates[0] != undefined) { $('[data-datepicker="' + B_DATE_1_INLINE_PICKER + '"]', flight_form).removeClass('selected'); $('[data-datepicker="' + B_DATE_2_INLINE_PICKER + '"]', flight_form).addClass('selected'); setTimeout(function () { $('[data-datepicker="' + B_DATE_1_INLINE_PICKER + '"]', flight_form).removeClass('placeholder'); }, 1); } if (selectedDates[1] != undefined) { $('.flatpickr-footer', flight_form).removeClass('el-hide'); $('[data-datepicker="' + B_DATE_2_INLINE_PICKER + '"]', flight_form).removeClass('selected placeholder'); setTimeout(function () { $('[data-datepicker="' + B_DATE_2_INLINE_PICKER + '"]', flight_form).removeClass('placeholder'); }, 1); } else { $('.flatpickr-footer', flight_form).addClass('el-hide'); } break; case 'single': if (selectedDates[0] != undefined) { $('.flatpickr-footer', flight_form).removeClass('el-hide'); } break; } $('[data-field="datepicker"]', flight_form).removeClass('custom-field-error'); $('[data-field-error="datepicker"]', flight_form).html(''); $('[data-datepicker="' + B_DATE_1_INLINE_PICKER + '"], [data-datepicker="' + B_DATE_2_INLINE_PICKER + '"]', flight_form).addClass('placeholder'); }, onReady: function (selectedDates, dateStr, instance) { $("<div class='flatpickr-header clearfix'><div class='pull-left clearfix'><div class='flatpickr-header-title single'>" + flight_form_texts.flight_date + "</div><div class='flatpickr-header-title multiple'>" + flight_form_texts.flight_dates + "</div></div><div class='pull-right clearfix'><div class='datepicker-field start-field'><div class='input selected placeholder' data-datepicker='" + B_DATE_1_INLINE_PICKER + "'>" + flight_form_texts.departure + "</div></div><div class='datepicker-field end-field'><div class='input placeholder' data-datepicker='" + B_DATE_2_INLINE_PICKER + "'>" + flight_form_texts.arrival + "</div></div></div><div class='flatpickr-dropdown-holder'><div class='flatpickr-dropdown'><div class='dropdown-head'><div class='selected'>" + flight_form_texts.two_way + "</div></div><div class='dropdown-body'><ul><li><button type='button' data-flight-type='two_way'>" + flight_form_texts.two_way + "</button></li><li><button type='button' data-flight-type='one_way'>" + flight_form_texts.one_way + "</button></li></ul></div></div></div></div>").insertBefore(instance.monthNav); //$("<div class='flatpickr-footer el-hide'>\ // '<button type='button' class='button-close-flatpickr' data-close-datepicker>"+ flight_form_texts.ready +"</button>\ //</div>").insertAfter(instance.innerContainer); $("<div class='flatpickr-footer el-hide'>\ '<button type='button' class='button-close-flatpickr' data-close-datepicker>"+ flight_form_texts.ready +"</button>\ </div>").insertAfter(instance.innerContainer); $(instance.innerContainer).parents('.flatpickr-calendar').addClass('two-fields'); $("<div class='flatpickr-mask' />").insertAfter($(instance.innerContainer).parent('.flatpickr-calendar')); $(document).on('click', '[data-close-datepicker]', function () { start_date_picker.close(); }); } }); enquire.register('screen and (max-width: 47.9em)', { match : function(){ start_date_picker.set('showMonths', '1'); }, unmatch : function(){ start_date_picker.set('showMonths', '2'); }, deferSetup : true }, true); $('#fixed-line [data-submenu]').on('click', function (e) { start_date_picker.close(); }); if ($('body').hasClass('lang-bg')) { start_date_picker.set('locale', 'bg'); } // Input quantity $('.item-quantity:not(.infant-item-quantity) button', flight_form).on('click', function (e) { e.stopImmediatePropagation(); var inc_element = $(this).parents('.item-quantity'), inc_dec = $(this).attr('class'), input_element = $('.q', inc_element), input_value = input_element.val(), inc_min = $(input_element).attr('data-min'), inc_max = $(input_element).attr('data-max'); if (inc_dec == 'inc') { input_value++; } else { input_value--; } if (input_value > inc_min) { $('.dec', inc_element).prop('disabled', false); } else { $('.dec', inc_element).prop('disabled', true); } if (input_value < inc_min) { input_value = inc_min; } if (input_value >= inc_max) { input_value = inc_max; $('.inc', inc_element).prop('disabled', true); // New //inc_element.addClass('invalid'); } else { $('.inc', inc_element).prop('disabled', false); inc_element.removeClass('invalid'); } input_element.val(input_value).trigger('change'); $('[data-field="travellers"]', flight_form).removeClass('custom-field-error'); $('[data-field-error="travellers"]', flight_form).html(''); }); $('.infant-item-quantity button', flight_form).on('click', function (e) { e.stopImmediatePropagation(); var inc_element = $(this).parents('.infant-item-quantity'), inc_dec = $(this).attr('class'), input_element = $('.q', inc_element), input_value = input_element.val(), inc_min = $(input_element).attr('data-min'), inc_max = $(input_element).attr('data-max'); if (inc_dec == 'inc') { input_value++; } else { input_value--; } if (input_value > inc_min) { $('.dec', inc_element).prop('disabled', false); } else { $('.dec', inc_element).prop('disabled', true); } if (input_value < inc_min) { input_value = inc_min; } // $('.input-dropdown-error', flight_form).html(''); if (input_value > $('[name="ADTPAX"]', flight_form).val()) { input_value = $('[name="ADTPAX"]', flight_form).val(); $('.inc', inc_element).prop('disabled', true); // New //inc_element.addClass('invalid'); $('.input-dropdown-error', flight_form).html('<div class="dropdown-error">' + flight_form_texts.invalid_infants + '</div>'); $('.input-dropdown-footer', flight_form).addClass('el-hide'); } else { $('.inc', inc_element).prop('disabled', false); inc_element.removeClass('invalid'); } input_element.val(input_value).trigger('change'); $('*', flight_form).removeClass('custom-field-error'); $('.custom-error', flight_form).html(''); // if ($('.dropdown-error').length > 0) { // $('#search_flight_form').attr('disabled','disabled'); // $('#search_flight_form').css({ // 'opacity': 0.5, // 'cursor': 'not-allowed' // }); // } else { // $('#search_flight_form').removeAttr('disabled'); // $('#search_flight_form').css({ // 'opacity': 1, // 'cursor': 'pointer' // }); // } }); //Input $('[name=ADTPAX], [name=CHDPAX], [name=InfantPAX]', flight_form).on('change', function (e) { var adults = $('[name=ADTPAX]', flight_form); var children = $('[name=CHDPAX]', flight_form); var infants = $('[name=InfantPAX]', flight_form); var travellers = $('.travellers', flight_form); var adultsNum = adults.val() * 1; var childrenNum = (children.val() * 1 > 0) ? children.val() * 1 : 0; var travellersNum = Number(adultsNum + childrenNum); travellers.html(''); for (var i = 1; i <= travellersNum; i += 1) { var travellerVal = (i <= adultsNum) ? 'ADT' : 'CHD'; console.log(travellerVal) travellers.append('<input type="hidden" name="TRAVELLER_TYPE_' + i + '" value="' + travellerVal + '">'); } var infantsNum = (infants.val() * 1 > 0) ? infants.val() * 1 : 0; for (var b = 1; b <= infantsNum; b += 1) { travellers.append('<input type="hidden" name="HAS_INFANT_' + b + '" value="TRUE">'); } }); function sumTravellers() { var adults = $('[name=ADTPAX]', flight_form), children = $('[name=CHDPAX]', flight_form), infants = $('[name=InfantPAX]', flight_form), travellers = $('[name="travellers"]', flight_form), adultsNum = adults.val() * 1, childrenNum = children.val() * 1, infantsNum = infants.val() * 1, travellersNum = Number(adultsNum + childrenNum + infantsNum); if (travellersNum != 1) { travellers.val(travellersNum + ' ' + flight_form_texts.passengers); } else { travellers.val(travellersNum + ' ' + flight_form_texts.passenger); } if (travellersNum === 0) { $('.input-dropdown-error', flight_form).html('<div class="dropdown-error">' + flight_form_texts.invalid_passengers + '</div>'); $('.input-dropdown-footer', flight_form).addClass('el-hide'); } if (adultsNum + childrenNum > 9) { $('.input-dropdown-error', flight_form).html('<div class="dropdown-error">' + flight_form_texts.limit_passengers + '</div>'); $('.input-dropdown-footer', flight_form).addClass('el-hide'); } } sumTravellers(); //Travellers $('[name=ADTPAX], [name=CHDPAX], [name=InfantPAX]', flight_form).on('change', function (e) { var flight_form = $(this).parents('form'), adults = $('[name=ADTPAX]', flight_form), children = $('[name=CHDPAX]', flight_form), infants = $('[name=InfantPAX]', flight_form), travellers = $('[name="travellers"]', flight_form), adultsNum = adults.val() * 1, childrenNum = children.val() * 1, infantsNum = infants.val() * 1; var travellersNum = Number(adultsNum + childrenNum); $('[name=InfantPAX]', flight_form).parents('.item-quantity infant-item-quantity').find('button').prop('disabled', true); if (travellersNum >= 9) { $('[name=ADTPAX]', flight_form).parents('.item-quantity').find('.inc').prop('disabled', true); $('[name=CHDPAX]', flight_form).parents('.item-quantity').find('.inc').prop('disabled', true); $('[name=InfantPAX]', flight_form).parents('.item-quantity infant-item-quantity').find('.inc').prop('disabled', true); } else { $('[name=ADTPAX]', flight_form).parents('.item-quantity').find('.inc').prop('disabled', false); $('[name=CHDPAX]', flight_form).parents('.item-quantity').find('.inc').prop('disabled', false); $('[name=InfantPAX]', flight_form).parents('.item-quantity infant-item-quantity').find('.inc').prop('disabled', false); } if (adultsNum >= 9) { $('[name=ADTPAX]', flight_form).parents('.item-quantity').find('.inc').prop('disabled', true); $('[name=CHDPAX]', flight_form).parents('.item-quantity').find('.inc').prop('disabled', true); $('[name=InfantPAX]', flight_form).parents('.item-quantity infant-item-quantity').find('.inc').prop('disabled', true); } if (childrenNum >= 9) { $('[name=ADTPAX]', flight_form).parents('.item-quantity').find('.inc').prop('disabled', true); $('[name=CHDPAX]', flight_form).parents('.item-quantity').find('.inc').prop('disabled', true); $('[name=InfantPAX]', flight_form).parents('.item-quantity infant-item-quantity').find('.inc').prop('disabled', true); } if (adultsNum == infantsNum) { $('[name=InfantPAX]', flight_form).parents('.item-quantity').find('.inc').prop('disabled', true); } }); $('[name=ADTPAX]', flight_form).on('change', function (e) { var flight_form = $(this).parents('form'), adults = $('[name=ADTPAX]', flight_form), children = $('[name=CHDPAX]', flight_form), infants = $('[name=InfantPAX]', flight_form), travellers = $('[name="travellers"]', flight_form), adultsNum = adults.val() * 1, childrenNum = children.val() * 1; if (adultsNum != 0) { $('[name=InfantPAX]', flight_form).attr('data-max', adultsNum); $('[name=InfantPAX]', flight_form).parents('.item-quantity').find('.inc').prop('disabled', false); $('#search_flight_form').removeAttr('disabled'); $('#search_flight_form').css({ 'opacity': 1, 'cursor': 'pointer' }); } else { $('[name=InfantPAX]', flight_form).attr('data-max', 0); $('[name=InfantPAX]', flight_form).parents('.item-quantity').find('button').prop('disabled', true); $('#search_flight_form').attr('disabled', 'disabled'); $('#search_flight_form').css({ 'opacity': 0.5, 'cursor': 'not-allowed' }); } $('[name=InfantPAX]', flight_form).val('0'); var infantsNum = infants.val() * 1, travellersNum = Number(adultsNum + childrenNum + infantsNum); if (travellersNum != 1) { travellers.val(travellersNum + ' ' + flight_form_texts.passengers); } else { travellers.val(travellersNum + ' ' + flight_form_texts.passenger); } $('.input-dropdown-error', flight_form).html(''); $('.input-dropdown-footer', flight_form).removeClass('el-hide'); if (travellersNum === 0) { $('.input-dropdown-error', flight_form).html('<div class="dropdown-error">' + flight_form_texts.invalid_passengers + '</div>'); // $('.input-dropdown-footer', flight_form).addClass('el-hide'); } // New if (adultsNum + childrenNum >= 9) { $('.input-dropdown-error', flight_form).html('<div class="dropdown-error">' + flight_form_texts.limit_passengers + '</div>'); // $('.input-dropdown-footer', flight_form).addClass('el-hide'); $('#search_flight_form').removeAttr('disabled'); $('#search_flight_form').css({ 'opacity': 1, 'cursor': 'pointer' }); } if (adultsNum === 0 && childrenNum > 0) { $('.input-dropdown-error', flight_form).html('<div class="dropdown-error4">' + flight_form_texts.invalid_children + '</div>'); // $('.input-dropdown-footer', flight_form).addClass('el-hide'); } if (adultsNum >= 9) { $('.input-dropdown-error', flight_form).html('<div class="dropdown-error">' + flight_form_texts.limit_passengers + '</div>'); // $('.input-dropdown-footer', flight_form).addClass('el-hide'); } }); $('[name=CHDPAX]', flight_form).on('change', function (e) { var stop_error; var flight_form = $(this).parents('form'), adults = $('[name=ADTPAX]', flight_form), children = $('[name=CHDPAX]', flight_form), infants = $('[name=InfantPAX]', flight_form), travellers = $('[name="travellers"]', flight_form), adultsNum = adults.val() * 1, childrenNum = children.val() * 1, infantsNum = infants.val() * 1, travellersNum = Number(adultsNum + childrenNum + infantsNum); if (travellersNum != 1) { travellers.val(travellersNum + ' ' + flight_form_texts.passengers); } else { travellers.val(travellersNum + ' ' + flight_form_texts.passenger); } $('.input-dropdown-error', flight_form).html(''); $('.input-dropdown-footer', flight_form).removeClass('el-hide'); if (travellersNum === 0) { $('.input-dropdown-error', flight_form).html('<div class="dropdown-error">' + flight_form_texts.invalid_passengers + '</div>'); // $('.input-dropdown-footer', flight_form).addClass('el-hide'); } // New if (adultsNum + childrenNum >= 9) { $('.input-dropdown-error', flight_form).html('<div class="dropdown-error">' + flight_form_texts.limit_passengers + '</div>'); // $('.input-dropdown-footer', flight_form).addClass('el-hide'); stop_error = 1; } if (adultsNum === 0) { $('.input-dropdown-error', flight_form).html('<div class="dropdown-error">' + flight_form_texts.invalid_children + '</div>'); // $('.input-dropdown-footer', flight_form).addClass('el-hide'); } // if(stop_error != 1){ // if ($('.dropdown-error').length > 0) { // $('#search_flight_form').attr('disabled','disabled'); // $('#search_flight_form').css({ // 'opacity': 0.5, // 'cursor': 'not-allowed' // }); // } else { // $('#search_flight_form').removeAttr('disabled'); // $('#search_flight_form').css({ // 'opacity': 1, // 'cursor': 'pointer' // }); // } // } }); $('[name=InfantPAX]', flight_form).on('change', function (e) { var flight_form = $(this).parents('form'), adults = $('[name=ADTPAX]', flight_form), children = $('[name=CHDPAX]', flight_form), infants = $('[name=InfantPAX]', flight_form), travellers = $('[name="travellers"]', flight_form), adultsNum = adults.val() * 1, childrenNum = children.val() * 1, infantsNum = infants.val() * 1, travellersNum = Number(adultsNum + childrenNum); if (travellersNum != 1) { travellers.val(travellersNum + ' ' + flight_form_texts.passengers); } else { travellers.val(travellersNum + ' ' + flight_form_texts.passenger); } }); // Custom switch $('.custom-switch input', flight_form).on('change', function () { if ($(this).is(':checked')) { $(this).val($(this).data('checked')); $('.custom-datepicker', flight_form).parents('li').removeClass('expanded-datepicker'); start_date_picker.set('mode', 'range'); $('.flatpickr-calendar', flight_form).addClass('two-fields').removeClass('one-field'); enquire.register('screen and (max-width: 47.9em)', { deferSetup: true, match : function(){ start_date_picker.set('showMonths', '1'); }, unmatch : function(){ start_date_picker.set('showMonths', '2'); } }, true); $('.flatpickr-dropdown .selected', flight_form).html(flight_form_texts.two_way); $('[name="TRIP_TYPE"]', flight_form).prop('checked', true).val($('[name="TRIP_TYPE"]').data('checked')); } else { $(this).val($(this).data('unchecked')); $('.custom-datepicker', flight_form).parents('li').addClass('expanded-datepicker'); start_date_picker.set('mode', 'single'); $('.flatpickr-calendar', flight_form).addClass('one-field').removeClass('two-fields'); $('.flatpickr-dropdown .selected', flight_form).html(flight_form_texts.one_way); $('[name="TRIP_TYPE"]', flight_form).prop('checked', false).val($('[name="TRIP_TYPE"]').data('unchecked')); } //start_date_picker.setDate(new(Date)); //start_date_picker.clear(); //$('[data-datepicker="'+ B_DATE_1_INLINE_PICKER +'"]', flight_form).html(flight_form_texts.departure).addClass('selected placeholder'); $('[data-datepicker="' + B_DATE_2_INLINE_PICKER + '"]', flight_form).html(flight_form_texts.arrival).removeClass('selected').addClass('placeholder'); setTimeout(function () { start_date_picker.setDate(new Date(moment($('[data-datepicker="' + B_DATE_1 + '"]', flight_form).val()).format('Y/MM/D'))); $('[data-datepicker="' + B_DATE_2 + '"]', flight_form).val(''); }, 100); $('.flatpickr-day').removeClass('selected startRange'); $('.flatpickr-footer', flight_form).addClass('el-hide'); }); $('[data-flight-type]').on('click', function (e) { e.stopImmediatePropagation(); var that = $(this); switch ($(this).data('flight-type')) { case 'two_way': start_date_picker.set('mode', 'range'); enquire.register('screen and (max-width: 47.9em)', { deferSetup: true, match : function(){ start_date_picker.set('showMonths', '1'); }, unmatch : function(){ start_date_picker.set('showMonths', '2'); } }, true); $('.flatpickr-calendar', flight_form).addClass('two-fields').removeClass('one-field'); $('.custom-datepicker', flight_form).parents('li').removeClass('expanded-datepicker'); $('.flatpickr-dropdown .selected', flight_form).html(flight_form_texts.two_way); $('[name="TRIP_TYPE"]', flight_form).prop('checked', true).val($('[name="TRIP_TYPE"]').data('checked')); break; case 'one_way': start_date_picker.set('mode', 'single'); $('.flatpickr-calendar', flight_form).addClass('one-field').removeClass('two-fields'); $('.custom-datepicker', flight_form).parents('li').addClass('expanded-datepicker'); $('.flatpickr-dropdown .selected', flight_form).html(flight_form_texts.one_way); $('[name="TRIP_TYPE"]', flight_form).prop('checked', false).val($('[name="TRIP_TYPE"]').data('unchecked')); break; } //start_date_picker.setDate(new(Date)); //start_date_picker.clear(); //$('[data-datepicker="'+ B_DATE_1_INLINE_PICKER +'"]', flight_form).html(flight_form_texts.departure).addClass('selected placeholder'); $('[data-datepicker="' + B_DATE_2_INLINE_PICKER + '"]', flight_form).html(flight_form_texts.arrival).removeClass('selected').addClass('placeholder'); setTimeout(function () { start_date_picker.setDate(new Date(moment($('[data-datepicker="' + B_DATE_1 + '"]', flight_form).val()).format('Y/MM/D'))); $('[data-datepicker="' + B_DATE_2 + '"]', flight_form).val(''); }, 100); $('.flatpickr-day').removeClass('selected startRange'); $('[data-flight-type]').removeClass('active'); that.addClass('active'); $(this).parents('.flatpickr-dropdown').removeClass('dropdown-open'); $('.flatpickr-footer', flight_form).addClass('el-hide'); }); // Custom dropdown $('.toggle-input-dropdown').off('click').on('click', function () { if (!$('.custom-input-dropdown').hasClass('dropdown-open')) { $(this).parents('.custom-input-dropdown').addClass('dropdown-open'); } else { $(this).parents('.custom-input-dropdown').removeClass('dropdown-open'); } }); $('.button-close-dropdown').off('click').on('click', function (e) { $(this).parents('.custom-input-dropdown').removeClass('dropdown-open'); }); $(document).on('click', function (e) { if ($(e.target).closest($('.custom-input-dropdown')).length == 0) { $('.custom-input-dropdown').removeClass('dropdown-open'); } }); $('.flatpickr-dropdown .dropdown-head').on('click', function () { $(this).parents('.flatpickr-dropdown').addClass('dropdown-open'); }); $('[name="TRIP_TYPE"]', flight_form).prop('checked', 'true'); $('[data-datepicker="' + B_DATE_1 + '"]', flight_form).val(''); $('[data-datepicker="' + B_DATE_2 + '"]', flight_form).val(''); // Young discount $('[name="STU"]', flight_form).on('change', function(e){ var flight_form = $(this).parents('form'), students = $('[name="STU"]', flight_form), studentsNum = students.val() * 1, travellers = $('.travellers', flight_form); students.val(studentsNum); if( studentsNum === 0 ){ $('.input-dropdown-error--passengers', flight_form).html('<div class="dropdown-error">'+ flight_form_texts.invalid_passengers +'</div>'); $('.js-passengers-close', flight_form).parents('.input-dropdown-footer').addClass('el-hide'); } else { if( studentsNum === students.data('max') ) { $('.input-dropdown-error--passengers', flight_form).html('<div class="dropdown-error">'+ flight_form_texts.limit_passengers_2 +'</div>'); $('.js-passengers-close', flight_form).parents('.input-dropdown-footer').addClass('el-hide'); } else { $('.input-dropdown-error--passengers').html(flight_form_texts.mandatory_condition); $('.js-passengers-close', flight_form).parents('.input-dropdown-footer').removeClass('el-hide'); } } if( studentsNum === 1 ) { $('[name="passengers"]').val('1 ' + flight_form_texts.passenger_2 + ' ' + flight_form_texts.passenger_2_years ); } else { $('[name="passengers"]').val( studentsNum + ' ' + flight_form_texts.passengers_2 + ' ' + flight_form_texts.passenger_2_years ); } travellers.html(''); for(var i = 1; i <= studentsNum; i += 1) { travellers.append('<input type="hidden" name="TRAVELLER_TYPE_'+i+'" value="STU" />'); } }); }); $(document).on('submit', '#header [name="AIR_ENTRY_FORM"]', function (e) { var flight_form = $(this), flight_form_errors_top = []; $('*', flight_form).removeClass('custom-field-error'); $('.custom-error', flight_form).html(''); if ( $('[data-select="' + B_LOCATION_1 + '"]', flight_form).val() === '0' || $('[data-select="' + B_LOCATION_1 + '"]', flight_form).val() === null || $('[data-select="' + B_LOCATION_1 + '"]', flight_form).val() == '' ) { flight_form_errors_top.push({ 'field': 'departure-destination', 'message': flight_form_texts.invalid_destination }); } if ( $('[data-select="' + E_LOCATION_1 + '"]', flight_form).val() === '0' || $('[data-select="' + E_LOCATION_1 + '"]', flight_form).val() === null || $('[data-select="' + E_LOCATION_1 + '"]', flight_form).val() == '' ) { flight_form_errors_top.push({ 'field': 'arrival-destination', 'message': flight_form_texts.invalid_destination }); } if ($('#picker-container-top .flatpickr-calendar').hasClass('two-fields')) { if ($('[data-datepicker="' + B_DATE_1 + '"]', flight_form).val() == '' && $('[data-datepicker="' + B_DATE_2 + '"]', flight_form).val() == '') { flight_form_errors_top.push({ 'field': 'datepicker', 'message': flight_form_texts.invalid_dates }); } else if ($('[data-datepicker="' + B_DATE_1 + '"]', flight_form).val() != '' && $('[data-datepicker="' + B_DATE_2 + '"]', flight_form).val() == '') { flight_form_errors_top.push({ 'field': 'datepicker', 'message': flight_form_texts.invalid_arrival_date }); } } if ($('#picker-container-top .flatpickr-calendar').hasClass('one-field')) { if ($('[data-datepicker="' + B_DATE_1 + '"]', flight_form).val() == '') { flight_form_errors_top.push({ 'field': 'datepicker', 'message': flight_form_texts.invalid_date }); } } if ($('[name="travellers"]', flight_form).val().indexOf('0') > -1) { flight_form_errors_top.push({ 'field': 'travellers', 'message': flight_form_texts.invalid_passengers }); } if (flight_form_errors_top.length > 0) { for (var i = 0; i < flight_form_errors_top.length; i++) { $('[data-field="' + flight_form_errors_top[i].field + '"]', flight_form).addClass('custom-field-error'); $('[data-field-error="' + flight_form_errors_top[i].field + '"]', flight_form).html(flight_form_errors_top[i].message); } e.preventDefault(); } }); }); // Submit footer form $(document).on('submit', '#fixed-line [name="AIR_ENTRY_FORM"]', function (e) { var flight_form = $(this), flight_form_errors_bottom = []; $('*', flight_form).removeClass('custom-field-error'); $('.custom-error', flight_form).html(''); if ( $('[data-select="' + B_LOCATION_1 + '"]', flight_form).val() === '0' || $('[data-select="' + B_LOCATION_1 + '"]', flight_form).val() === null || $('[data-select="' + B_LOCATION_1 + '"]', flight_form).val() == '' ) { flight_form_errors_bottom.push({ 'field': 'group-select-destination_1', 'message': flight_form_texts.invalid_destination }); } if ( $('[data-select="' + E_LOCATION_1 + '"]', flight_form).val() === '0' || $('[data-select="' + E_LOCATION_1 + '"]', flight_form).val() === null || $('[data-select="' + E_LOCATION_1 + '"]', flight_form).val() == '' ) { flight_form_errors_bottom.push({ 'field': 'group-select-destination_2', 'message': flight_form_texts.invalid_destination }); } if ($('#picker-container-bottom .flatpickr-calendar').hasClass('two-fields')) { if ($('[data-datepicker="' + B_DATE_1 + '"]', flight_form).val() == '' && $('[data-datepicker="' + B_DATE_2 + '"]', flight_form).val() == '') { flight_form_errors_bottom.push({ 'field': 'datepicker', 'message': flight_form_texts.invalid_dates }); } else if ($('[data-datepicker="' + B_DATE_1 + '"]', flight_form).val() != '' && $('[data-datepicker="' + B_DATE_2 + '"]', flight_form).val() == '') { flight_form_errors_bottom.push({ 'field': 'datepicker', 'message': flight_form_texts.invalid_arrival_date }); } } if ($('#picker-container-bottom .flatpickr-calendar').hasClass('one-field')) { if ($('[data-datepicker="' + B_DATE_1 + '"]', flight_form).val() == '') { flight_form_errors_bottom.push({ 'field': 'datepicker', 'message': flight_form_texts.invalid_date }); } } if ($('[name="travellers"]', flight_form).val().indexOf('0') > -1) { flight_form_errors_bottom.push({ 'field': 'travellers', 'message': flight_form_texts.invalid_passengers }); } if (flight_form_errors_bottom.length > 0) { for (var i = 0; i < flight_form_errors_bottom.length; i++) { $('[data-field="' + flight_form_errors_bottom[i].field + '"]', flight_form).addClass('custom-field-error'); $('[data-field-error="' + flight_form_errors_bottom[i].field + '"]', flight_form).html(flight_form_errors_bottom[i].message); } e.preventDefault(); } }); $('#fixed-line select[data-select="' + B_LOCATION_1 + '"]').on('change', function () { $(this).parents('.group-select').removeClass('custom-field-error'); $('[data-field-error="group-select-destination_1"]').html(''); }); $('#fixed-line select[data-select="' + E_LOCATION_1 + '"]').on('change', function () { $(this).parents('.group-select').removeClass('custom-field-error'); $('[data-field-error="group-select-destination_2"]').html(''); }); $('#header select[data-select="' + B_LOCATION_1 + '"]').on('change', function () { $(this).parents('.group-select-item').removeClass('custom-field-error'); }); $('#header select[data-select="' + E_LOCATION_1 + '"]').on('change', function () { $(this).parents('.group-select-item').removeClass('custom-field-error'); $('[data-field-error="arrival-destination"]').html(''); }); // Young discount $('.js-expand__young-discount').on('click', function () { if (!$(this).parents('.custom-form').hasClass('young-discount-expanded')) { $(this).parents('.custom-form').addClass('young-discount-expanded'); } else { $(this).parents('.custom-form').removeClass('young-discount-expanded'); } }); }); </script> <!-- FOOTER NAV: END --> </div> <script type="text/javascript" src="/web/js/plugins.js?ver=3"></script> <script type="text/javascript" src="/web/js/default.js?ver=3"></script> <script type="text/javascript" src="/web/js/forms.js?ver=3"></script> <script type="text/javascript" src="/web/js/extra.js?ver=3"></script> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "BreadcrumbList", "itemListElement": [ { "@type": "ListItem", "position": 1, "item": { "@id": "https://www.air.bg/bg", "name": "Начало" } }, { "@type": "ListItem", "position": 2, "item": { "@id": "https://www.air.bg/destinacii", "name": "Дестинации" } }, { "@type": "ListItem", "position": 3, "item": { "@id": "https://www.air.bg/destinacii/burgas", "name": "Бургас" } } ] } </script> </body> </html> <!-- FOOTER: END -->