vendor: 3,691 bytes, lines 1-88
1/******/ (function(modules) { // webpackBootstrap 2/******/ // The module cache 3/******/ var installedModules = {}; 4/******/ 5/******/ // The require function 6/******/ function __webpack_require__(moduleId) { 7/******/ 8/******/ // Check if module is in cache 9/******/ if(installedModules[moduleId]) { 10/******/ return installedModules[moduleId].exports; 11/******/ } 12/******/ // Create a new module (and put it into the cache) 13/******/ var module = installedModules[moduleId] = { 14/******/ i: moduleId, 15/******/ l: false, 16/******/ exports: {} 17/******/ }; 18/******/ 19/******/ // Execute the module function 20/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21/******/ 22/******/ // Flag the module as loaded 23/******/ module.l = true; 24/******/ 25/******/ // Return the exports of the module 26/******/ return module.exports; 27/******/ } 28/******/ 29/******/ 30/******/ // expose the modules object (__webpack_modules__) 31/******/ __webpack_require__.m = modules; 32/******/ 33/******/ // expose the module cache 34/******/ __webpack_require__.c = installedModules; 35/******/ 36/******/ // define getter function for harmony exports 37/******/ __webpack_require__.d = function(exports, name, getter) { 38/******/ if(!__webpack_require__.o(exports, name)) { 39/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 40/******/ } 41/******/ }; 42/******/ 43/******/ // define __esModule on exports 44/******/ __webpack_require__.r = function(exports) { 45/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 46/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 47/******/ } 48/******/ Object.defineProperty(exports, '__esModule', { value: true }); 49/******/ }; 50/******/ 51/******/ // create a fake namespace object 52/******/ // mode & 1: value is a module id, require it 53/******/ // mode & 2: merge all properties of value into the ns 54/******/ // mode & 4: return value when already ns object 55/******/ // mode & 8|1: behave like require 56/******/ __webpack_require__.t = function(value, mode) { 57/******/ if(mode & 1) value = __webpack_require__(value); 58/******/ if(mode & 8) return value; 59/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 60/******/ var ns = Object.create(null); 61/******/ __webpack_require__.r(ns); 62/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 63/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 64/******/ return ns; 65/******/ }; 66/******/ 67/******/ // getDefaultExport function for compatibility with non-harmony modules 68/******/ __webpack_require__.n = function(module) { 69/******/ var getter = module && module.__esModule ? 70/******/ function getDefault() { return module['default']; } : 71/******/ function getModuleExports() { return module; }; 72/******/ __webpack_require__.d(getter, 'a', getter); 73/******/ return getter; 74/******/ }; 75/******/ 76/******/ // Object.prototype.hasOwnProperty.call 77/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 78/******/ 79/******/ // __webpack_public_path__ 80/******/ __webpack_require__.p = ""; 81/******/ 82/******/ 83/******/ // Load entry module and return exports 84/******/ return __webpack_require__(__webpack_require__.s = "../autobahn_client_core/cartridges/autobahn_client_core/cartridge/client/default/js/backstage.js"); 85/******/ }) 86/************************************************************************/ 87/******/ ({ 88
89/***/ "../autobahn_client_core/cartridges/autobahn_client_core/cartridge/client/default/js/backstage.js": 90/*!********************************************************************************************************!*\ 91 !*** ../autobahn_client_core/cartridges/autobahn_client_core/cartridge/client/default/js/backstage.js ***! 92 \********************************************************************************************************/ 93/*! no static exports found */ 94/***/ (function(module, exports) { 95 96$(document).ready(function () { 97 var urlParams = new URLSearchParams(window.location.search); 98 99 if (urlParams.get('modal') === 'success') { 100 successModal(); 101 $('#backstage-modal').modal('show'); 102 } 103 104 if ($('#modalShow').val() == 'confirm') { 105 $('#confirmationModal').modal('show'); 106 } 107 108 var freeLink = $('#backstage-modal').data('link-free'); 109 var blogLink = $('#backstage-modal').data('link-blog'); 110 var premiumLink = $('#backstage-modal').data('link-premium'); 111 $('body').on('click', 'a[href="#blog"]', function () { 112 $('#backstage-modal .success-message').addClass('d-none'); 113 $.ajax({ 114 url: blogLink, 115 data: { 116 redirect: $(this).data('redirect') 117 }, 118 success: function success(data) { 119 $('#backstage-modal .survey-content').html(data); 120 $('#backstage-modal').modal('show'); 121 } 122 }); 123 }); 124 $('#join-now-free, a[href="#free"]').click(function () { 125 $('#backstage-modal .success-message').addClass('d-none'); 126 $.ajax({ 127 url: freeLink, 128 success: function success(data) { 129 $('#backstage-modal .survey-content').html(data); 130 $('#backstage-modal').modal('show'); 131 } 132 }); 133 }); 134 $('#join-now-premium, a[href="#premium"]').click(function () { 135 $('#backstage-modal .success-message').addClass('d-none'); 136 $.ajax({ 137 url: premiumLink, 138 success: function success(data) { 139 $('#backstage-modal .survey-content').html(data); 140 $('#backstage-modal').modal('show'); 141 } 142 }); 143 }); 144 $('body').on('click', 'button#backstage-signup', function (e) { 145 e.preventDefault(); // Form validation 146 147 var error = false; 148 $('#backstage-form select').each(function (index) { 149 var select = $('#backstage-form select')[index]; 150 var value = $(select).find('option:selected').val(); 151 152 if (!value) { 153 $(select).addClass('is-invalid'); 154 error = true; 155 } else { 156 $(select).removeClass('is-invalid'); 157 } 158 }); 159 160 if (error) { 161 return; 162 } // Serialize form, grab AJAX URL 163 164 165 var queryString = $('#backstage-form').serialize(); 166 var url = $(this).attr('ajax-url'); // Make AJAX call 167 168 $.ajax({ 169 url: url, 170 data: queryString, 171 success: function success(data) { 172 if (data.successMessage) { 173 successModal(data.redirectUrl); 174 } else if (data.success) { 175 var _window$CachedData; 176 177 if ((_window$CachedData = window.CachedData) !== null && _window$CachedData !== void 0 && _window$CachedData.flyoutFlyoutCreateAccountUrl && data.redirectUrl.startsWith(window.CachedData.flyoutLoginShowUrl)) { 178 $('#backstage-modal').modal('hide'); 179 $('body').trigger('initFlyout', { 180 url: window.CachedData.flyoutFlyoutCreateAccountUrl 181 }); 182 } else { 183 window.location = data.redirectUrl; 184 } 185 } else { 186 console.log(data.errors); 187 } 188 } 189 }); 190 return; 191 }); 192}); 193 194function successModal(redirectUrl) { 195 $('#backstage-modal .success-message').removeClass('d-none'); 196 $('#backstage-modal .survey-content').html(''); 197 $('#backstage-modal').on('hidden.bs.modal', function () { 198 if (redirectUrl) { 199 window.location = redirectUrl; 200 } 201 }); 202} 203 204/***/ })
204 205 206/******/ }); 207//# sourceMappingURL=backstage.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.