1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([["components-vehicleavailability-sections-vehicleavailability-section-js","src_main_webpack_components_uikit_DxCPlayer_DxCPlayer_ts-src_main_webpack_components_uikit_Dx-1136f8"],{78777:function(t,e,n){n.d(e,{A:function(){return p}});var r=n(2048),o=n(56094),i=n(61799),a=["frame","vehicle","scale","scaleToFit"];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 s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach(function(e){d(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,f(r.key),r)}}function d(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}var p=function(){return t=function t(e,n){var r;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),d(this,"rootElement",void 0),d(this,"apiKey",void 0),d(this,"activeCplayer",void 0),d(this,"outgoingCplayer",void 0),d(this,"cplayerInstance",void 0),d(this,"emitter",new i.n),d(this,"pendingActiveFrame",void 0),this.rootElement=e,null!==(r=this.rootElement)&&void 0!==r&&r.cplayer)return this.rootElement.cplayer;this.rootElement.classList.add("DxCPlayer"),this.apiKey=n.apiKey,this.activeCplayer=this.rootElement.querySelector(".DxCPlayer__active"),this.outgoingCplayer=this.rootElement.querySelector(".DxCPlayer__outgoing"),this.rootElement.cplayer=this},e=[{key:"render",value:function(t){var e=u({view:"exterior",useBackground:!1},t);this.outgoingCplayer||(this.outgoingCplayer=this.createElementWithClass("DxCPlayer__outgoing",!!e.useBackground)),this.activeCplayer||(this.activeCplayer=this.createElementWithClass("DxCPlayer__active",!!e.useBackground)),this.renderCplayer(e)}},{key:"on",value:function(t,e){return this.emitter.on(t,e),this}},{key:"off",value:function(t,e){return this.emitter.off(t,e),this}},{key:"removePreviousCplayer",value:function(){this.activeCplayer&&this.activeCplayer.querySelectorAll(".CPlayer__innerdiv").forEach(function(t,e){0!==e&&t.remove()})}},{key:"handleCPlayerRenderComplete",value:function(){this.outgoingCplayer&&this.activeCplayer&&(this.outgoingCplayer.style.removeProperty("transition"),this.activeCplayer.style.opacity="1",this.outgoingCplayer.style.opacity="0",this.setContainerActiveFrame(this.activeCplayer,this.pendingActiveFrame),this.removePreviousCplayer())}},{key:"handleCPlayerImageChange",value:function(){this.activeCplayer&&this.outgoingCplayer&&((0,o.eN)(this.activeCplayer,this.outgoingCplayer),this.setContainerActiveFrame(this.outgoingCplayer,this.activeCplayer.getAttribute("data-active-frame")),this.activeCplayer.style.opacity="0",this.outgoingCplayer.style.transition="none",this.outgoingCplayer.style.opacity="1")}},{key:"renderCplayer",value:function(t){var e=this,n=t.frame,o=t.vehicle,i=t.scale,l=t.scaleToFit,s=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,a);this.pendingActiveFrame=this.getActiveFrame(t);var c=u({currentFrame:n,frames:[n],frame:n+1,layout:"desktop",rcDoc:o},s),d={apiKey:this.apiKey,onRenderCompleteCallback:function(){var n;e.handleCPlayerRenderComplete(),e.emitter.emit("renderComplete",{cplayer:e}),null===(n=t.onRenderCompleteCallback)||void 0===n||n.call(t)}};void 0===i||Number.isNaN(i)||(d.scale=i),void 0!==l&&(d.scaleToFit=l),this.handleCPlayerImageChange(),this.cplayerInstance=this.cplayerInstance||new r.A(this.activeCplayer,d),this.cplayerInstance.renderFrame(c)}},{key:"getActiveFrame",value:function(t){var e=t.frame,n=t.view;return"".concat(void 0===n?"exterior":n,"-").concat(e)}},{key:"setContainerActiveFrame",value:function(t,e){e?t.setAttribute("data-active-frame",e):t.removeAttribute("data-active-frame")}},{key:"createElementWithClass",value:function(t,e){var n=document.createElement("div");return n.classList.add(t),e&&n.classList.add("".concat(t,"--withBackgroun
1d")),this.rootElement.prepend(n),n}}],e&&c(t.prototype,e),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},79145:function(t,e,n){n.d(e,{A:function(){return d}});var r=n(87253),o=n(12285);function i(t){return i="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},i(t)}function a(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c(r.key),r)}}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var d=function(){return t=function t(e,n){var o,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,"_element",void 0),u(this,"_infoOverlayCopy",void 0),u(this,"_label",void 0),u(this,"_closeLabel",void 0),u(this,"_placeholder",void 0),u(this,"_fontSize",void 0),u(this,"_size",void 0),u(this,"_buttonClasses",void 0),u(this,"_bodyClasses",void 0),u(this,"modal",void 0),this._element=e,this._infoOverlayCopy=n.infoOverlayCopy,this._label=n.label,this._closeLabel=n.closeLabel,this._placeholder=null!==(o=n.placeholder)&&void 0!==o?o:"{{info}}",this._fontSize=n.fontSize,this._size=n.size,this._buttonClasses=["DxInfoModal__header-info","".concat(n.classPrefix,"__header-info")].concat(a(n.buttonClass?[n.buttonClass]:[])),this._bodyClasses=["DxInfoModal__modal-body","".concat(n.classPrefix,"__modal-body")].concat(a(n.bodyClass?[n.bodyClass]:[]));var l=null!==(i=n.modalName)&&void 0!==i?i:"".concat(n.classPrefix,"__info");this.modal=new r.A(l,{closeButtonLabel:this._closeLabel}),this.modal.modal.classList.add("DxInfoModal"),this._buildInfoCta()},e=[{key:"_buildInfoCta",value:function(){var t,e,n=this;if(-1!==(null===(t=this._element)||void 0===t||null===(t=t.textContent)||void 0===t?void 0:t.indexOf(this._placeholder))){var r=this._element.innerHTML,i=(0,o.Kp)("button",[].concat(a(this._buttonClasses),["icon-Info-icon"]),{ariaLabel:this._label});this._fontSize&&i.style.setProperty("--dx-info-button-font-size",this._fontSize),this._size&&i.style.setProperty("--dx-info-button-size",this._size);var l=new RegExp(this._placeholder,"g");return r=r.replace(l,i.outerHTML),this._element.innerHTML=r,null===(e=this._element.querySelector(".DxInfoModal__header-info"))||void 0===e||e.addEventListener("click",function(t){t.stopPropagation();var e=(0,o.Kp)("div",n._bodyClasses);e.innerHTML=n._infoOverlayCopy,n.modal.clearBody(),n.modal.addToBody(e),n.modal.showModal()}),i}}}],e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},8943:function(t,e,n){n.d(e,{A:function(){return s}});var r=n(12285);function o(t){return o="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},o(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function a(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==o(e)?e:e+""}var s=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,"_options",void 0),a(this,"_wrapper",void 0),a(this,"_inputElement",void 0),a(this,"_errorMsg",void 0),this._options=e,this._wrapper=this._buildInputField()},(e=[{key:"inputElement",get:function(){return this._inputElement}},{key:"wrapper",get:function(){return this._wrapper}},{key:"_buildInputField",value:function(){var t=this,e=(0,r.Kp)("div",["DxInputField"]);if(this._options.label){var n=(0,r.Kp)("label",["DxInputField__label"],{for:this._options.id});n.innerHTML=this._options.label,e.appendChild(n)}switch(this._inputElement=(0,r.Kp)("input",["DxInputField__input"],{id:this._options.id,name:this._options.name,type:this._options.type||"text",placeholder:this._options.placeholder||"",value:this._options.value||""}),this._options.required&&(this._inputElement.required=!0),this._options.disabled&&(this._inputElement.disabled=!0),this._inputElement.type){case"number":this._inputElement.min="0";break;case"url":this._inputElement.pattern="https?://.+"}return this._errorMsg=(0,r.Kp)("div",["DxInputField__error"],{id:"".concat(this._options.id,"-error")}),this._options.errorMessage&&this.setError(this._options.errorMessage),this._options.validate&&(this._inputElement.addEventListener("blur",function(){return t._runValidationWithError()}),this._inputElement.addEventListener("input",function(){t._runValidation(),t.clearError()})),e.append(this._inputElement,this._errorMsg),this._inputElement.addEventListener("input",this.onInput.bind(this)),this._inputElement.addEventListener("keydown",this.onEnterKeyPress.bind(this)),e}},{key:"on",value:function(t,e,n){this._inputElement.addEventListener("DxInputField::".concat(t),e,n)}},{key:"onInput",value:function(t){this._inputElement.dispatchEvent(new CustomEvent("DxInputField::input",{detail:{value:t.target.value}}))}},{key:"onEnterKeyPress",value:function(t){if("Enter"===t.key){this._runValidationWithError();var e=""===this._errorMsg.innerHTML;this._inputElement.dispatchEvent(new CustomEvent("DxInputField::enterkeypress",{detail:{valid:e}}))}}},{key:"_runValidation",value:function(){var t,e;if(!this._inputElement.disabled){var n=this._inputElement.value,r=null===(t=(e=this._options).validate)||void 0===t?void 0:t.call(e,n);return this._inputElement.dispatchEvent(new CustomEvent("DxInputField::validation",{detail:{valid:!r}})),r}}},{key:"_runValidationWithError",value:function(){if(this._inputElement.disabled)return!0;var t=this._runValidation();return t?(this.setError(t),!1):(this.clearError(),!0)}},{key:"element",get:function(){return this._wrapper}},{key:"setError",value:function(t){this._inputElement.setAttribute("aria-invalid","true"),this._inputElement.setAttribute("aria-describedby",this._errorMsg.id),this._errorMsg.innerHTML=t,this._errorMsg.classList.add("DxInputField__error--show")}},{key:"clearError",value:function(){this._inputElement.removeAttribute("aria-invalid"),this._inputElement.removeAttribute("aria-describedby"),this._errorMsg.classList.remove("DxInputField__error--show"),this._errorMsg.innerHTML=""}},{key:"getValue",value:function(){return this._inputElement.value.trim()}},{key:"setValue",value:function(t){return this._inputElement.value=t,this._runValidationWithError()}}])&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},87253:function(t,e,n){n.d(e,{A:function(){return w}});var r=n(43305),o=n(12285);function i(t){return i="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},i(t)}function a(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var a=r&&r.prototype instanceof u?r:u,c=Object.create(a.prototype);return l(c,"_invoke",function(n,r,o){var i,a,l,u=0,c=o||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return i=e,a=0,l=t,f.n=n,s}};function p(n,r){for(a=n,l=r,e=0;!d&&u&&!o&&e<c.length;e++){var o,i=c[e],p=f.p,y=i[2];n>3?(o=y===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=n<2&&p<i[1])?(a=0,f.v=r,f.n=i[1]):p<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,f.n=y,a=0))}if(o||n>1)return s;throw d=!0,r}
1return function(o,c,y){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,y),a=c,l=y;(e=a<2?t:l)||!d;){i||(a?a<3?(a>1&&(f.n=-1),p(a,l)):f.n=l:f.v=l);try{if(u=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,a<2&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(d=f.n<0)?l:n.call(r,f))!==s)break}catch(e){i=t,a=1,l=e}finally{u=1}}return{value:e,done:d}}}(n,o,i),!0),c}var s={};function u(){}function c(){}function d(){}e=Object.getPrototypeOf;var f=[][r]?e(e([][r]())):(l(e={},r,function(){return this}),e),p=d.prototype=u.prototype=Object.create(f);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,o,"GeneratorFunction")),t.prototype=Object.create(p),t}return c.prototype=d,l(p,"constructor",d),l(d,"constructor",c),c.displayName="GeneratorFunction",l(d,o,"GeneratorFunction"),l(p),l(p,o,"Generator"),l(p,r,function(){return this}),l(p,"toString",function(){return"[object Generator]"}),(a=function(){return{w:i,m:y}})()}function l(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}l=function(t,e,n,r){if(e)o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n;else{var i=function(e,n){l(t,e,function(t){return this._invoke(e,n,t)})};i("next",0),i("throw",1),i("return",2)}},l(t,e,n,r)}function s(t,e,n,r,o,i,a){try{var l=t[i](a),s=l.value}catch(t){return void n(t)}l.done?e(s):Promise.resolve(s).then(r,o)}function u(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(t){s(i,r,o,a,l,"next",t)}function l(t){s(i,r,o,a,l,"throw",t)}a(void 0)})}}function c(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach(function(e){g(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,E(r.key),r)}}function v(t,e,n){return e=_(e),function(t,e){if(e&&("object"==i(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,h()?Reflect.construct(e,n||[],_(t).constructor):e.apply(t,n))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(h=function(){return!!t})()}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function b(){return b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=_(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},b.apply(null,arguments)}function _(t){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_(t)}function g(t,e,n){return(e=E(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function E(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==i(e)?e:e+""}var C={backdropStyle:"default",justifyContent:"left",stickyCloseButton:!1,showCloseButton:!0,stickyHeader:!1,stickyFooter:!1,size:"default",closeButtonLabel:"",timeout:0,disableFooter:!1},w=function(t){function e(t,n){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i,a,l,s,u,c=p(p({},C),n);return g(r=v(this,e,[c]),"options",void 0),g(r,"modal",void 0),g(r,"modalHeader",void 0),g(r,"modalBody",void 0),g(r,"modalFooter",void 0),g(r,"modalTimeout",void 0),g(r,"modalHost",null),r.options=c,r.modal=(0,o.Kp)("dialog",["DxModal"]),"left"!==r.options.justifyContent&&r.modal.classList.add("DxModal--".concat(r.options.justifyContent)),"default"!==c.size&&r.modal.setAttribute("data-size",c.size),t&&r.modal.setAttribute("data-".concat(t,"-modal"),""),r.buildModal(),(i=e,a="init",l=r,u=b(_(1&(s=3)?i.prototype:i),a,l),2&s&&"function"==typeof u?function(t){return u.apply(l,t)}:u)([r.modal]),r}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&&m(t,e)}(e,t),n=e,r=[{key:"buildModal",value:function(){var t,e=this,n=(0,o.Kp)("div",["DxModal__content"]);this.modalHeader=(0,o.Kp)("div",["DxModal__header"]),n.appendChild(this.modalHeader),this.modal.classList.toggle("DxModal--frosted-backdrop","frosted"===this.options.backdropStyle),this.modal.classList.toggle("DxModal--no-backdrop","none"===this.options.backdropStyle);var r=(0,o.Kp)("button",["DxModal__close-button"],{type:"button",ariaLabel:null!==(t=this.options.closeButtonLabel)&&void 0!==t?t:""});this.options.stickyCloseButton&&r.classList.add("DxModal__close-button--sticky"),r.autofocus=!0,r.addEventListener("click",function(){return e.closeModal()}),n.prepend(r),this.options.stickyHeader&&this.modalHeader.classList.add("DxModal__header--sticky"),this.modalBody=(0,o.Kp)("div",["DxModal__body"]),n.appendChild(this.modalBody),this.options.disableFooter||(this.modalFooter=(0,o.Kp)("div",["DxModal__footer"]),this.options.stickyFooter&&this.modalFooter.classList.add("DxModal__footer--sticky"),n.appendChild(this.modalFooter)),this.modal.appendChild(n)}},{key:"getElement",value:function(){return this.modal}},{key:"checkExistingElement",value:function(t,e){var n=t.querySelector(".".concat(e)),r=null!=n?n:(0,o.Kp)("div");return r.classList.toggle(e,!0),{isExisting:Boolean(n),element:r}}},{key:"setTitle",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.modalHeader.querySelector(".DxModal__title"),r=null!=n?n:(0,o.Kp)("h1",["DxModal__title"].concat(c(e)));r.textContent=t,n||this.modalHeader.appendChild(r)}},{key:"addToBody",value:function(t){if("string"==typeof t){var e=document.createElement("div");e.innerHTML=t,e.firstChild?this.modalBody.appendChild(e.firstChild):this.modalBody.appendChild(e)}else t instanceof Element&&this.modalBody.appendChild(t)}},{key:"clearBody",value:function(){this.modalBody.innerHTML=""}},{key:"addToFooter",value:function(t){this.options.disableFooter||("string"==typeof t&&(this.modalFooter.innerHTML=t),t instanceof Element&&this.modalFooter.appendChild(t))}},{key:"addButton",value:function(t,e){var n=this;if(!this.options.disableFooter){var r=this.checkExistingElement(this.modalFooter,"DxModal__footer-ctas");r.isExisting||this.modalFooter.appendChild(r.element);var i=(0,o.Kp)("button",[],{type:"button"});i.classList.add("".concat(t.type,"-cta")),i.textContent=t.text,i.setAttribute("aria-label",t.ariaLabel),i.addEventListener("click",u(a().m(function t(){var r,o;return a().w(function(t){for(;;)switch(t.n){case 0:if(t.p=0,!e){t.n=1;break}if(!((r=e())instanceof Promise)){t.n=1;break}return t.n=1,r;case 1:n.closeModal(),t.n=3;break;case 2:t.p=2,o=t.v,console.error("An error occurred:",o);case 3:return t.a(2)}},t,null,[[0,2]])}))),r.element.appendChild(i)}}},{key:"showModal",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;this.modal.parentElement!==e&&e.appendChild(this.modal),this.modalHost=e,this.modal.showModal(),this.emitter.emit("DxModal::shown");var n=function(e){var n=e.target;n instanceof Element&&"DIALOG"===n.nodeName&&t.closeModal()};this.modal.addEventListener("click",n,{once:!1}),this.options.timeout>0&&(this.modalTimeout&&clearTimeout(this.modalTimeout),this.modalTimeout=window.setTimeout(function(){t.closeModal()},1e3*this.options.timeout));var r=function(){var e;t.modal.removeEventListener("click",n);var o=null!==(e=t.modal.parentElement)&&void 0!==e?e:t.modalHost;null!=o&&o.contains(t.modal)&&o.removeChild(t.modal),t.options.timeout&&clearTimeout(t.modalTimeout),t.modalHost=null,t.modal.removeEventListener("close",r),t.emitter.emit("DxModal::hidden")};this.modal.addEventListener("close",r)}},{key:"closeModal",value:function(){var t=this;this.modal.setAttribute("closing",""),this.modal.addEventListener("animationend",function(){t.modal.removeAttribute("closing"),t.modal.close()},{once:!0})}},{key:"isModalOpen",value:function(){return this.modal.open}}],r&&y(n.prototype,r),i&&y(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(r.A)},61799:function(t,e,n){function r(t){return r="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},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function i(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==r(e)?e:e+""}n.d(e,{n:function(){return a}});var a=function(){return t=function t(){var e,n,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n="events",r=new Map,(n=i(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r},(e=[{key:"on",value:function(t,e){this.events.has(t)||this.events.set(t,new Set);var n=this.events.get(t);return n&&n.add(e),this}},{key:"off",value:function(t,e){if(!this.events.has(t))return this;var n=this.events.get(t);return e?null==n||n.delete(e):null==n||n.clear(),0===(null==n?void 0:n.size)&&this.events.delete(t),this}},{key:"emit",value:function(t,e){if(this.events.has(t)){var n=this.events.get(t);null==n||n.forEach(function(n){try{n(e)}catch(e){console.error("Error in event handler for ".concat(t),e)}})}}},{key:"hasEvent",value:function(t){var e=this.events.get(t);return!(!this.events.has(t)||!e)&&e.size>0}},{key:"getEventCount",value:function(t){var e,n;return null!==(e=null===(n=this.events.get(t))||void 0===n?void 0:n.size)&&void 0!==e?e:0}},{key:"removeAllListeners",value:function(){this.events.clear()}}])&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},70963:function(t,e,n){n.d(e,{QH:function(){return r},Uc:function(){return i},Ve:function(){return o},r_:function(){return a},w2:function(){return l}});var r={lrdx:"lr",rrdx:"lr",jdx:"jag"},o=function(t){var e;return null!==(e=r[t])&&void 0!==e?e:t},i={lrdx:"Land Rover",rrdx:"Range Rover",jdx:"Jaguar"},a={range_rover:"rangeRover",defender:"defender",discovery:"discovery",jaguar:"jaguarAll"},l={rangeRover:"range-rover",defender:"defender",discovery:"discovery",jaguarAll:"jaguar"}},56094:function(t,e,n){n.d(e,{eN:function(){return r}});var r=function(t,e){if(t&&t.querySelector){var n="string"==typeof e?document.querySelector(e):e,r=t.querySelector("canvas");if(r){var o=t.cloneNode(!0);n.innerHTML=o.innerHTML;var i=n.querySelectorAll("canvas");i&&0!==i.length&&i.forEach(function(t,e){t.width=r.width,t.height=r.height;var n=t.getContext("2d");n?n.drawImage(r,0,0):console.error("Could not get 2D context for canvas element:",t)})}}}}}]);
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.