{"id":667,"date":"2019-11-14T01:45:12","date_gmt":"2019-11-14T01:45:12","guid":{"rendered":"https:\/\/lebas.com\/air-charter-worldwide\/?page_id=667"},"modified":"2025-03-26T16:32:24","modified_gmt":"2025-03-26T23:32:24","slug":"get-a-quote","status":"publish","type":"page","link":"https:\/\/lebas.com\/air-charter-worldwide\/get-a-quote\/","title":{"rendered":"Get a Quote"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; fullwidth=&#8221;on&#8221; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; background_image=&#8221;https:\/\/lebas.com\/air-charter-worldwide\/wp-content\/uploads\/2024\/12\/20241216_get-a-quote-1920&#215;1229-1.jpg&#8221; module_alignment=&#8221;center&#8221; custom_margin=&#8221;0px||0px||false|false&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_fullwidth_code disabled_on=&#8221;off|off|off&#8221; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; text_orientation=&#8221;center&#8221; module_alignment=&#8221;center&#8221; min_height=&#8221;1000px&#8221; min_height_tablet=&#8221;800px&#8221; min_height_phone=&#8221;800px&#8221; min_height_last_edited=&#8221;on|phone&#8221; custom_margin=&#8221;0px|10%|0px|10%|false|false&#8221; custom_margin_tablet=&#8221;0%|5%|0%|5%|false|false&#8221; custom_margin_phone=&#8221;0%|2%|0%|2%|false|false&#8221; custom_margin_last_edited=&#8221;on|phone&#8221; custom_padding=&#8221;70px||||false|false&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; sticky_enabled=&#8221;0&#8243;]<script src=\"https:\/\/lebas.my.site.com\/lightning\/lightning.out.js\"><\/script><!-- [et_pb_line_break_holder] --><\/p>\n<div id=\"tripform\"><\/div>\n<p><!-- [et_pb_line_break_holder] --><script><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->function getValueFromQueryOrCookie(paramName, cookieName) {<!-- [et_pb_line_break_holder] -->    \/\/ Check for query string value<!-- [et_pb_line_break_holder] -->    const urlParams = new URLSearchParams(window.location.search);<!-- [et_pb_line_break_holder] -->    const queryValue = urlParams.get(paramName);<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    if (queryValue) {<!-- [et_pb_line_break_holder] -->        console.log(`Query string value for ${paramName}:`, queryValue);<!-- [et_pb_line_break_holder] -->        return queryValue; \/\/ Return the query string value if found<!-- [et_pb_line_break_holder] -->    }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    \/\/ Fallback: Check for session cookie value<!-- [et_pb_line_break_holder] -->    const cookies = document.cookie.split(';');<!-- [et_pb_line_break_holder] -->    for (let i = 0; i < cookies.length; i++) {<!-- [et_pb_line_break_holder] -->        const cookie = cookies[i].trim();<!-- [et_pb_line_break_holder] -->        if (cookie.startsWith(`${cookieName}=`)) {<!-- [et_pb_line_break_holder] -->            const cookieValue = cookie.split('=')[1];<!-- [et_pb_line_break_holder] -->            console.log(`Cookie value for ${cookieName}:`, cookieValue);<!-- [et_pb_line_break_holder] -->            return cookieValue; \/\/ Return the cookie value if found<!-- [et_pb_line_break_holder] -->        }<!-- [et_pb_line_break_holder] -->    }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    \/\/ If neither is found<!-- [et_pb_line_break_holder] -->    console.error(`No value found for ${paramName} (query string) or ${cookieName} (cookie).`);<!-- [et_pb_line_break_holder] -->    return 'Value not found';<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->\/\/ Example usage<!-- [et_pb_line_break_holder] -->const value = getValueFromQueryOrCookie('lb_source', 'lb_source');<!-- [et_pb_line_break_holder] -->console.log('Final value:', value);<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->\/\/ Retrieve the value of the \"lb_source\" cookie<!-- [et_pb_line_break_holder] -->const lbSourceValue = getValueFromQueryOrCookie('lb_source');<!-- [et_pb_line_break_holder] -->const lbMediumValue = getValueFromQueryOrCookie('lb_medium');<!-- [et_pb_line_break_holder] -->const lbCampaignValue = getValueFromQueryOrCookie('lb_campaign');<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->\/\/ Insert the value into an element in the DOM (e.g., a Divi Code Module)<!-- [et_pb_line_break_holder] -->document.addEventListener('DOMContentLoaded', () => {<!-- [et_pb_line_break_holder] -->    const targetElement = document.getElementById('cookie-lb_source'); \/\/ Replace with your element ID<!-- [et_pb_line_break_holder] -->    if (targetElement) {<!-- [et_pb_line_break_holder] -->        targetElement.textContent = lbSourceValue;<!-- [et_pb_line_break_holder] -->    }<!-- [et_pb_line_break_holder] -->});<!-- [et_pb_line_break_holder] -->  <!-- [et_pb_line_break_holder] -->    const appName = 'c:LebasWebformsBOS';<!-- [et_pb_line_break_holder] -->    const componentName = 'stackng:quoteRequestWebform';<!-- [et_pb_line_break_holder] -->    const lightningEndpoint = 'https:\/\/lebas.my.site.com';<!-- [et_pb_line_break_holder] -->    const targetElement = document.querySelector(\"#tripform\");<!-- [et_pb_line_break_holder] -->    const componentAttributes = {<!-- [et_pb_line_break_holder] -->    \t\"displayLabels\": true,<!-- [et_pb_line_break_holder] -->      \"redirectURL\": \"https:\/\/lebas.com\/air-charter-worldwide\/get-a-quote-thank-you\/\",<!-- [et_pb_line_break_holder] -->      \"redirectTarget\": \"_parent\",<!-- [et_pb_line_break_holder] -->    \t\"fromLabel\": \"From\",<!-- [et_pb_line_break_holder] -->\t    \"toLabel\": \"To\",<!-- [et_pb_line_break_holder] -->\t    \"paxLabel\": \"Pax\",<!-- [et_pb_line_break_holder] -->\t    \"departDateLabel\": \"Depart\",<!-- [et_pb_line_break_holder] -->\t    \"returnLabel\": \"Return\",<!-- [et_pb_line_break_holder] -->\t    \"firstNameLabel\": \"First Name\",<!-- [et_pb_line_break_holder] -->\t    \"lastNameLabel\": \"Last Name\",<!-- [et_pb_line_break_holder] -->\t    \"emailLabel\": \"Email\",<!-- [et_pb_line_break_holder] -->\t    \"phoneLabel\": \"Phone\",<!-- [et_pb_line_break_holder] -->\t    \"commentsLabel\": \"Comments\",<!-- [et_pb_line_break_holder] -->\t    \"modelLabel\": \"Aircraft\",<!-- [et_pb_line_break_holder] -->\t    \"travelOptionsLabel\": \"Travel Options\",<!-- [et_pb_line_break_holder] -->\t    \"borderRadius\": \"0px\",<!-- [et_pb_line_break_holder] -->\t    \"borderColor\": \"transparent\",<!-- [et_pb_line_break_holder] -->      \"background\": \"transparent\",<!-- [et_pb_line_break_holder] -->\t    \"travelOptions\": \"Non-stop Required, Ski Equipment, Golf Clubs, Children, Infant in Arms, Pets, Smoking Allowed, Wi-Fi\",<!-- [et_pb_line_break_holder] -->\t\t\t\"utm_source\": lbSourceValue,<!-- [et_pb_line_break_holder] -->      \"utm_medium\": lbMediumValue,<!-- [et_pb_line_break_holder] -->\t    \"utm_campaign\": lbCampaignValue<!-- [et_pb_line_break_holder] -->      <!-- [et_pb_line_break_holder] -->    };<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  \/\/ Display the componentAttributes object inside the <\/p>\n<div id=\"attributes-display\"><!-- [et_pb_line_break_holder] -->    document.addEventListener('DOMContentLoaded', () => {<!-- [et_pb_line_break_holder] -->        const attributesElement = document.getElementById('attributes-display');<!-- [et_pb_line_break_holder] -->        if (attributesElement) {<!-- [et_pb_line_break_holder] -->            attributesElement.textContent = `Component Attributes: ${JSON.stringify(componentAttributes)}`;<!-- [et_pb_line_break_holder] -->        }<!-- [et_pb_line_break_holder] -->    });<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    $Lightning.use(<!-- [et_pb_line_break_holder] -->        appName,<!-- [et_pb_line_break_holder] -->        function() {<!-- [et_pb_line_break_holder] -->            $Lightning.createComponent(<!-- [et_pb_line_break_holder] -->                componentName,<!-- [et_pb_line_break_holder] -->                componentAttributes,<!-- [et_pb_line_break_holder] -->                targetElement,<!-- [et_pb_line_break_holder] -->                function (cmp) {<!-- [et_pb_line_break_holder] -->                    \/\/console.log('lightning component created.');<!-- [et_pb_line_break_holder] -->                }<!-- [et_pb_line_break_holder] -->            );<!-- [et_pb_line_break_holder] -->        },<!-- [et_pb_line_break_holder] -->        lightningEndpoint<!-- [et_pb_line_break_holder] -->    );<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><\/script>[\/et_pb_fullwidth_code][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-667","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/lebas.com\/air-charter-worldwide\/wp-json\/wp\/v2\/pages\/667","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lebas.com\/air-charter-worldwide\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lebas.com\/air-charter-worldwide\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lebas.com\/air-charter-worldwide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lebas.com\/air-charter-worldwide\/wp-json\/wp\/v2\/comments?post=667"}],"version-history":[{"count":21,"href":"https:\/\/lebas.com\/air-charter-worldwide\/wp-json\/wp\/v2\/pages\/667\/revisions"}],"predecessor-version":[{"id":25238,"href":"https:\/\/lebas.com\/air-charter-worldwide\/wp-json\/wp\/v2\/pages\/667\/revisions\/25238"}],"wp:attachment":[{"href":"https:\/\/lebas.com\/air-charter-worldwide\/wp-json\/wp\/v2\/media?parent=667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}