PageSourceSearch

https://www.marhabaservices.com/on/demandware.static/Sites-dnata-U…/v1790906479569/js/app/global/Alert.js

js marhabaservices.com collected 2026-10-02 11:30:00 UTC 4,250 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp_dnata=self.webpackChunkapp_dnata||[]).push([[8805],{73899:function(t,e,n){n.r(e),n.d(e,{default:function(){return b}});var o=n(70491),r=n(20058),i=n(4008);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,a(o.key),o)}}function a(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=l(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}function u(t,e,n){return e=f(e),function(t,e){if(e&&("object"==l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,s()?Reflect.construct(e,n||[],f(t).constructor):e.apply(t,n))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var b=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,(o=[{key:"initCache",value:function(){}},{key:"initState",value:function(){}},{key:"bindEvents",value:function(){i.Event.on("global.alert.show",this.showAlert,this)}},{key:"afterInit",value:function(){}},{key:"showAlert",value:function(t){t&&(this.reloadOnClose=t.reloadOnClose,this.redirectOnClose=t.redirectOnClose||!1,this.buttonActionUrl=t.continueButtonElementUrl,this.alertHTML=t.alertHTML,this.modifier=t.modifier,this.continueButtonElementLabel=t.continueButtonElementLabel,this.cancelButtonElementLabel=t.cancelButtonElementLabel,this.cancelButtonElementUrl=t.cancelButtonElementUrl,this.showButtons=t.showButtons,this.reloadOnClose||(this.selfCloseTime=t.selfCloseTime||5e3),this.createBlock())}},{key:"createBlock",value:function(){var t,e=this,n=document.body.querySelector(".js-alert-block"),o=this.modifier||"";if(n?(n.classList.add("m-active"),t=n.querySelector(".js-alert-content")):((n=document.createElement("div")).className="m-active js-alert-block modal-alert ".concat(o),(t=document.createElement("div")).className="modal-alert-content js-alert-content",n.appendChild(t)),t.innerHTML=this.alertHTML,this.showButtons){var r=document.createElement("div");r.classList.add("global_alert");var i=document.createElement("button");i.textContent=this.continueButtonElementLabel,i.classList.add("global_alert-continue","btn","btn-primary"),i.addEventListener("click",function(){e.closeAlert(),window.location.href=e.buttonActionUrl}),r.append(i);var l=document.createElement("button");l.textContent=this.cancelButtonElementLabel,l.classList.add("global_alert-cancel","btn","btn-secondary"),l.addEventListener("click",function(){e.closeAlert()}),r.append(l),t.append(r)}this.selfCloseTime&&setTimeout(function(){e.closeAlert()},this.selfCloseTime),document.body.appendChild(n)}},{key:"closeAlert",value:function(){var t=document.body.querySelector(".js-alert-block");t&&t.classList.remove("m-active")}},{key:"destroy",value:function(){(0,r.AU)("click",this.selectors.updateBookingButton)}}])&&c(n.prototype,o),l&&c(n,l),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,l}(o.A)}}]);

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.