1
0
Fork 0
forked from Simnation/Main
Main/resources/[carscripts]/jg-dealerships/web/dist/assets/index-90aa1eef.js

78 lines
506 KiB
JavaScript
Raw Normal View History

2025-08-04 20:32:58 +02:00
var Hb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var EL=Hb((pn,hn)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var jf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wb(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Mg={exports:{}},pu={},$g={exports:{}},je={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var vs=Symbol.for("react.element"),Ub=Symbol.for("react.portal"),Gb=Symbol.for("react.fragment"),qb=Symbol.for("react.strict_mode"),Kb=Symbol.for("react.profiler"),Zb=Symbol.for("react.provider"),Yb=Symbol.for("react.context"),Qb=Symbol.for("react.forward_ref"),Xb=Symbol.for("react.suspense"),Jb=Symbol.for("react.memo"),eE=Symbol.for("react.lazy"),Dm=Symbol.iterator;function tE(e){return e===null||typeof e!="object"?null:(e=Dm&&e[Dm]||e["@@iterator"],typeof e=="function"?e:null)}var Ig={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fg=Object.assign,Dg={};function qo(e,t,n){this.props=e,this.context=t,this.refs=Dg,this.updater=n||Ig}qo.prototype.isReactComponent={};qo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};qo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ag(){}Ag.prototype=qo.prototype;function Bf(e,t,n){this.props=e,this.context=t,this.refs=Dg,this.updater=n||Ig}var zf=Bf.prototype=new Ag;zf.constructor=Bf;Fg(zf,qo.prototype);zf.isPureReactComponent=!0;var Am=Array.isArray,Lg=Object.prototype.hasOwnProperty,Vf={current:null},jg={key:!0,ref:!0,__self:!0,__source:!0};function Bg(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Lg.call(t,r)&&!jg.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var u=Array(s),l=0;l<s;l++)u[l]=arguments[l+2];i.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:vs,type:e,key:o,ref:a,props:i,_owner:Vf.current}}function nE(e,t){return{$$typeof:vs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Hf(e){return typeof e=="object"&&e!==null&&e.$$typeof===vs}function rE(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Lm=/\/+/g;function yc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?rE(""+e.key):t.toString(36)}function pl(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case vs:case Ub:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+yc(a,0):r,Am(i)?(n="",e!=null&&(n=e.replace(Lm,"$&/")+"/"),pl(i,t,n,"",function(l){return l})):i!=null&&(Hf(i)&&(i=nE(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(Lm,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",Am(e))for(var s=0;s<e.length;s++){o=e[s];var u=r+yc(o,s);a+=pl(o,t,n,u,i)}else if(u=tE(e),typeof u=="function")for(e=u.call(e),s=0;!(o=e.next()).done;)o=o.value,u=r+yc(o,s++),a+=pl(o,t,n,u,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function js(e,t,n){if(e==null)return e;var r=[],i=0;return pl(e,r,"","",function(o){return t.call(n,o,i++)}),r}function iE(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Jt={current:null},hl={transition:null},oE={ReactCurrentDispatcher:Jt,ReactCurrentBatchConfig:hl,ReactCurrentOwner:Vf};je.Children={map:js,forEach:function(e,t,n){js(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return js(e,function(){t++}),t},toArray:function(e){return js(e,function(t){return t})||[]},only:function(e){if(!Hf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};je.Component=qo;je.Fragment=Gb;je.Profiler=Kb;je
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var aE=m,sE=Symbol.for("react.element"),lE=Symbol.for("react.fragment"),uE=Object.prototype.hasOwnProperty,cE=aE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,dE={key:!0,ref:!0,__self:!0,__source:!0};function zg(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)uE.call(t,r)&&!dE.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:sE,type:e,key:o,ref:a,props:i,_owner:cE.current}}pu.Fragment=lE;pu.jsx=zg;pu.jsxs=zg;Mg.exports=pu;var Wf=Mg.exports;const Wt=Wf.Fragment,c=Wf.jsx,g=Wf.jsxs;var md={},Vg={exports:{}},Sn={},Hg={exports:{}},Wg={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(U,re){var ne=U.length;U.push(re);e:for(;0<ne;){var ke=ne-1>>>1,_e=U[ke];if(0<i(_e,re))U[ke]=re,U[ne]=_e,ne=ke;else break e}}function n(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var re=U[0],ne=U.pop();if(ne!==re){U[0]=ne;e:for(var ke=0,_e=U.length,Je=_e>>>1;ke<Je;){var rt=2*(ke+1)-1,ht=U[rt],ct=rt+1,Ot=U[ct];if(0>i(ht,ne))ct<_e&&0>i(Ot,ht)?(U[ke]=Ot,U[ct]=ne,ke=ct):(U[ke]=ht,U[rt]=ne,ke=rt);else if(ct<_e&&0>i(Ot,ne))U[ke]=Ot,U[ct]=ne,ke=ct;else break e}}return re}function i(U,re){var ne=U.sortIndex-re.sortIndex;return ne!==0?ne:U.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var u=[],l=[],f=1,h=null,p=3,y=!1,C=!1,x=!1,N=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(U){for(var re=n(l);re!==null;){if(re.callback===null)r(l);else if(re.startTime<=U)r(l),re.sortIndex=re.expirationTime,t(u,re);else break;re=n(l)}}function T(U){if(x=!1,b(U),!C)if(n(u)!==null)C=!0,ge(R);else{var re=n(l);re!==null&&xe(T,re.startTime-U)}}function R(U,re){C=!1,x&&(x=!1,w(A),A=-1),y=!0;var ne=p;try{for(b(re),h=n(u);h!==null&&(!(h.expirationTime>re)||U&&!W());){var ke=h.callback;if(typeof ke=="function"){h.callback=null,p=h.priorityLevel;var _e=ke(h.expirationTime<=re);re=e.unstable_now(),typeof _e=="function"?h.callback=_e:h===n(u)&&r(u),b(re)}else r(u);h=n(u)}if(h!==null)var Je=!0;else{var rt=n(l);rt!==null&&xe(T,rt.startTime-re),Je=!1}return Je}finally{h=null,p=ne,y=!1}}var M=!1,F=null,A=-1,I=5,$=-1;function W(){return!(e.unstable_now()-$<I)}function Z(){if(F!==null){var U=e.unstable_now();$=U;var re=!0;try{re=F(!0,U)}finally{re?G():(M=!1,F=null)}}else M=!1}var G;if(typeof E=="function")G=function(){E(Z)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,Oe=te.port2;te.port1.onmessage=Z,G=function(){Oe.postMessage(null)}}else G=function(){N(Z,0)};function ge(U){F=U,M||(M=!0,G())}function xe(U,re){A=N(function(){U(e.unstable_now())},re)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(U){U.callback=null},e.unstable_continueExecution=function(){C||y||(C=!0,ge(R))},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(U){switch(p){case 1:case 2:case 3:var re=3;break;default:re=p}var ne=p;p=re;try{return U()}finally{p=ne}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(U,re){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var ne=p;p=U;try{return re()}finally{p=ne}},e.unstable_scheduleCallback=function(U,re,ne){var ke=e.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?ke+ne:ke):ne=ke,U){case 1:var _e=-1;break;case 2:_e=250;break;case 5:_e=1073741823;break;case 4:_e=1e4;break;default:_e=5e3}return _e=ne+_e,U={id:f++,callback:re,priorityLevel:U,startTime:ne,expirationTime:_e,sortIndex:-1},ne>ke?(U.sortIndex=ne,t(l,U),n(u)===null&&U===n(l)&&(x?(w(A),A=-1):x=!0,xe(T,ne-ke))):(U.sortIndex=_e,t(u,U),C||y||(C=!0,ge(R))),U},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(U){var re=p;return function(){var ne=p;p=re;try{return U.apply(this,arguments)}finally{p=ne}}}})(Wg);Hg.exports=Wg;var fE=Hg.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ug=m,gn=fE;function q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Gg=new Set,Ka={};function Ki(e,t){$o(e,t),$o(e+"Capture",t)}function $o(e,t){for(Ka[e]=t,e=0;e<t.length;e++)Gg.add(t[e])}var kr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vd=Object.prototype.hasOwnProperty,pE=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,jm={},Bm={};function hE(e){return vd.call(Bm,e)?!0:vd.call(jm,e)?!1:pE.test(e)?Bm[e]=!0:(jm[e]=!0,!1)}function mE(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function vE(e,t,n,r){if(t===null||typeof t>"u"||mE(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function en(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Lt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lt[e]=new en(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Lt[t]=new en(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lt[e]=new en(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lt[e]=new en(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Lt[e]=new en(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Lt[e]=new en(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Lt[e]=new en(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Lt[e]=new en(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Lt[e]=new en(e,5,!1,e.toLowerCase(),null,!1,!1)});var Uf=/[\-:]([a-z])/g;function Gf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-
`+gc+e}var wc=!1;function Sc(e,t){if(!e||wc)return"";wc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&typeof l.stack=="string"){for(var i=l.stack.split(`
`),o=r.stack.split(`
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var u=`
`+i[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=a&&0<=s);break}}}finally{wc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ta(e):""}function yE(e){switch(e.tag){case 5:return Ta(e.type);case 16:return Ta("Lazy");case 13:return Ta("Suspense");case 19:return Ta("SuspenseList");case 0:case 2:case 15:return e=Sc(e.type,!1),e;case 11:return e=Sc(e.type.render,!1),e;case 1:return e=Sc(e.type,!0),e;default:return""}}function Sd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case po:return"Fragment";case fo:return"Portal";case yd:return"Profiler";case Kf:return"StrictMode";case gd:return"Suspense";case wd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Kg:return(e.displayName||"Context")+".Consumer";case qg:return(e._context.displayName||"Context")+".Provider";case Zf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Yf:return t=e.displayName||null,t!==null?t:Sd(e.type)||"Memo";case Vr:t=e._payload,e=e._init;try{return Sd(e(t))}catch{}}return null}function gE(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Sd(t);case 8:return t===Kf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function li(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wE(e){var t=Yg(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zs(e){e._valueTracker||(e._valueTracker=wE(e))}function Qg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Yg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ml(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function xd(e,t){var n=t.checked;return pt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Vm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=li(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Xg(e,t){t=t.checked,t!=null&&qf(e,"checked",t,!1)}function Cd(e,t){Xg(e,t);var n=li(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?bd(e,t.type,n):t.hasOwnProperty("defaultValue")&&bd(e,t.type,li(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Hm(e,t,n){if(t.hasOwnProperty("val
`).replace(Rk,"")}function Zs(e,t,n){if(t=fv(t),fv(e)!==t&&n)throw Error(q(425))}function Bl(){}var Ad=null,Ld=null;function jd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Bd=typeof setTimeout=="function"?setTimeout:void 0,_k=typeof clearTimeout=="function"?clearTimeout:void 0,pv=typeof Promise=="function"?Promise:void 0,Pk=typeof queueMicrotask=="function"?queueMicrotask:typeof pv<"u"?function(e){return pv.resolve(null).then(e).catch(Mk)}:Bd;function Mk(e){setTimeout(function(){throw e})}function $c(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Ja(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ja(t)}function ni(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function hv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Zo=Math.random().toString(36).slice(2),ir="__reactFiber$"+Zo,is="__reactProps$"+Zo,Tr="__reactContainer$"+Zo,zd="__reactEvents$"+Zo,$k="__reactListeners$"+Zo,Ik="__reactHandles$"+Zo;function Ri(e){var t=e[ir];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tr]||n[ir]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hv(e);e!==null;){if(n=e[ir])return n;e=hv(e)}return t}e=n,n=e.parentNode}return null}function ws(e){return e=e[ir]||e[Tr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function yo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(q(33))}function gu(e){return e[is]||null}var Vd=[],go=-1;function hi(e){return{current:e}}function st(e){0>go||(e.current=Vd[go],Vd[go]=null,go--)}function nt(e,t){go++,Vd[go]=e.current,e.current=t}var ui={},Ut=hi(ui),on=hi(!1),ji=ui;function Io(e,t){var n=e.type.contextTypes;if(!n)return ui;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function an(e){return e=e.childContextTypes,e!=null}function zl(){st(on),st(Ut)}function mv(e,t,n){if(Ut.current!==ui)throw Error(q(168));nt(Ut,t),nt(on,n)}function B0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(q(108,gE(e)||"Unknown",i));return pt({},n,r)}function Vl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ui,ji=Ut.current,nt(Ut,e),nt(on,on.current),!0}function vv(e,t,n){var r=e.stateNode;if(!r)throw Error(q(169));n?(e=B0(e,t,ji),r.__reactInternalMemoizedMergedChildContext=e,st(on),st(Ut),nt(Ut,e)):st(on),nt(on,n)}var yr=null,wu=!1,Ic=!1;function z0(e){yr===null?yr=[e]:yr.push(e)}function Fk(e){wu=!0,z0(e)}function mi(){if(!Ic&&yr!==null){Ic=!0;var e=0,t=Ze;try{var n=yr;for(Ze=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}yr=null,wu=!1}catch(i){throw yr!==null&&(yr=yr.slice(e+1)),f0(Xf,mi),i}finally{Ze=t,Ic=!1}}return null}var wo=[],So=0,Hl=null,Wl=0,On=[],Rn=0,Bi=null,Sr=1,xr="";function bi(e,t){wo[So++]=Wl,wo[So++]=Hl,Hl=e,Wl=t}function V0(e,t,n){On[Rn++]=Sr,On[Rn++]=xr,On[Rn++]=Bi,Bi=e;var r=Sr;e=xr;var i=32-Yn(r)-1;r&=~(1<<i),n+=1;var o=32-Yn(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Sr=1<<32-Yn(t)+i|n<<i|r,xr=o+e}else Sr=1<<o|n<<i|r,xr=e}function sp(e){e.return!==null&&(bi(e,1),V0(e,1,0))}function lp(e){for(;e===Hl;)Hl=wo[--So],wo[So]=null,Wl=wo[--So],wo[So]=null;for(;e===Bi;)Bi=On[--Rn],On[Rn]=null,xr=On[--Rn],On[Rn]=null,Sr=On[--Rn],On[Rn]=null}var mn=null,fn=null,ut=!1,qn=null;function H0(e,t){var n=Pn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletio
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function jc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Kd(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Wk=typeof WeakMap=="function"?WeakMap:Map;function yw(e,t,n){n=br(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xl||(Xl=!0,of=r),Kd(e,t)},n}function gw(e,t,n){n=br(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Kd(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Kd(e,t),typeof r!="function"&&(ii===null?ii=new Set([this]):ii.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Tv(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Wk;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=iT.bind(null,e,t,n),t.then(e,e))}function Nv(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ov(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=br(-1,1),t.tag=2,ri(n,t,1))),n.lanes|=1),e)}var Uk=$r.ReactCurrentOwner,rn=!1;function Yt(e,t,n,r){t.child=e===null?Y0(t,null,n,r):Do(t,e.child,n,r)}function Rv(e,t,n,r,i){n=n.render;var o=t.ref;return _o(t,i),r=wp(e,t,n,r,o,i),n=Sp(),e!==null&&!rn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Or(e,t,i)):(ut&&n&&sp(t),t.flags|=1,Yt(e,t,r,i),t.child)}function _v(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!_p(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,ww(e,t,o,r,i)):(e=El(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:ts,n(a,r)&&e.ref===t.ref)return Or(e,t,i)}return t.flags|=1,e=ai(o,r),e.ref=t.ref,e.return=t,t.child=e}function ww(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(ts(o,r)&&e.ref===t.ref)if(rn=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(rn=!0);else return t.lanes=e.lanes,Or(e,t,i)}return Zd(e,t,n,r,i)}function Sw(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},nt(bo,cn),cn|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,nt(bo,cn),cn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,nt(bo,cn),cn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,nt(bo,cn),cn|=r;return Yt(e,t,i,n),t.child}function xw(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Zd(e,t,n,r,i){var o=an(n)?ji:Ut.current;return o=Io(t,o),_o(t,i),n=wp(e,t,n,r,o,i),r=Sp(),e!==null&&!rn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Or(e,t,i)):(ut&&r&&sp(t),t.flags|=1,Yt(e,t,n,i),t.child)}function Pv(e,t,n,r,i){if(an(n)){var o=!0;Vl(t)}else o=!1;if(_o(t,i),t.stateNode===null)xl(e,t),K0(t,n,r),qd(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;typeof l=="object"&&l!==null?l=Fn(l):(l=an(n)?ji:Ut.current,l=Io(t,l));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||u!==l)&&Cv(t,a,r,l),Hr=!1;var p=t.memoizedState;a.state=p,ql(t,r,a,i),u=t.memoizedState,s!==r||p!==u||on.current||Hr?(typeof f=="function"&&(Gd(t,n,f,r),u=t.memoizedState),(s=Hr||xv(t,n,s,r,p,u,l))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var a=typeof o;if(a==="string"||a==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var s=n.apply(null,o);s&&r.push(s)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var u in o)t.call(o,u)&&o[u]&&r.push(u)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Gw);var mT=Gw.exports;const be=fi(mT);function uf(){return uf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uf.apply(null,arguments)}function qw(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Uv(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function vT(e){var t=yT(e,"string");return typeof t=="symbol"?t:String(t)}function yT(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fp(e,t,n){var r=m.useRef(e!==void 0),i=m.useState(t),o=i[0],a=i[1],s=e!==void 0,u=r.current;return r.current=s,!s&&u&&o!==t&&a(t),[s?e:o,m.useCallback(function(l){for(var f=arguments.length,h=new Array(f>1?f-1:0),p=1;p<f;p++)h[p-1]=arguments[p];n&&n.apply(void 0,[l].concat(h)),a(l)},[n])]}function xs(e,t){return Object.keys(t).reduce(function(n,r){var i,o=n,a=o[Uv(r)],s=o[r],u=qw(o,[Uv(r),r].map(vT)),l=t[r],f=Fp(s,a,e[l]),h=f[0],p=f[1];return uf({},u,(i={},i[r]=h,i[l]=p,i))},e)}function cf(e,t){return cf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},cf(e,t)}function gT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cf(e,t)}const wT=["xxl","xl","lg","md","sm","xs"],ST="xs",Ru=m.createContext({prefixes:{},breakpoints:wT,minBreakpoint:ST});function $e(e,t){const{prefixes:n}=m.useContext(Ru);return e||n[t]||t}function Kw(){const{breakpoints:e}=m.useContext(Ru);return e}function Zw(){const{minBreakpoint:e}=m.useContext(Ru);return e}function Yw(){const{dir:e}=m.useContext(Ru);return e==="rtl"}function Cs(e){return e&&e.ownerDocument||document}function xT(e){var t=Cs(e);return t&&t.defaultView||window}function CT(e,t){return xT(e).getComputedStyle(e,t)}var bT=/([A-Z])/g;function ET(e){return e.replace(bT,"-$1").toLowerCase()}var kT=/^ms-/;function nl(e){return ET(e).replace(kT,"-ms-")}var TT=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function NT(e){return!!(e&&TT.test(e))}function Er(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(nl(t))||CT(e).getPropertyValue(nl(t));Object.keys(t).forEach(function(i){var o=t[i];!o&&o!==0?e.style.removeProperty(nl(i)):NT(i)?r+=i+"("+o+") ":n+=nl(i)+": "+o+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}var Hc={exports:{}},Wc,Gv;function OT(){if(Gv)return Wc;Gv=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Wc=e,Wc}var Uc,qv;function RT(){if(qv)return Uc;qv=1;var e=OT();function t(){}function n(){}return n.resetWarningCache=t,Uc=function(){function r(a,s,u,l,f,h){if(h!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Uc}var Kv;function Qw(){return Kv||(Kv=1,Hc.exports=RT()()),Hc.exports}var _T=Qw();const De=fi(_T),Zv={disabled:!1},Xw=Kn.createContext(null);var PT=
linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4)),
linear-gradient(${I}, ${I})
`}},$))})]}),(n.enablePurchase||n.enableTestDrive)&&g(z.Footer,{className:"d-flex justify-content-between",children:[n.enablePurchase&&c(ee,{variant:"success",onClick:()=>a(!0),disabled:n.shopType==="owned"&&!e.stock,children:n.shopType==="self-service"||e.stock>0?i.purchase:i.outOfStock}),n.enableTestDrive&&c(ee,{variant:"secondary",onClick:F,disabled:R,children:i.testDrive})]})]}),c(I_,{show:o,onHide:()=>a(!1),vehicle:e,activeColor:l,calcFinancePayment:A,toggleFinanceBreakdown:()=>u(!0),onPurchase:()=>t(void 0)})]})},ta=()=>c(vn,{bg:"secondary",text:"dark",children:"JG Scripts"}),A_="/web/dist/assets/loading-f9361a1d.gif",na=()=>c("div",{className:"p-5 text-center",children:c("img",{src:A_,width:40})}),L_=({show:e})=>(ye(),e?c("div",{className:"loading-model",children:c(na,{})}):null),j_=({activeVehicle:e,setActiveVehicle:t})=>{const n=m.useRef(null),{event:r,config:i,locale:o}=ye(),a={[o.sortByName]:(T,R)=>`${T.brand} ${T.model}`.localeCompare(`${R.brand} ${R.model}`),[o.sortByAvailability]:(T,R)=>R.stock-T.stock,[o.sortByCheapest]:(T,R)=>T.price-R.price,[o.sortByMostExpensive]:(T,R)=>R.price-T.price},[s,u]=m.useState(""),[l,f]=m.useState(Object.keys(a)[0]),[h,p]=m.useState(!1),[y,C]=m.useState([]),[x,N]=m.useState([]),[w,E]=m.useState(!1);m.useEffect(()=>{r.defaultVehicle&&u(r.defaultVehicle)},[r.defaultVehicle]),m.useEffect(()=>{(async()=>{if(e){try{E(!0),await Ne("switch-vehicle",{spawnCode:e.spawn_code})}catch{}E(!1)}})()},[e]),m.useEffect(()=>{var T,R;s.length>0?C(r.vehicles):C(h?(T=r.vehicles)==null?void 0:T.filter(M=>h&&M.category===h):[]),(R=n.current)==null||R.scrollTo(0,0)},[s.length>0,h]),m.useEffect(()=>{N(y.filter(({brand:T,model:R,spawn_code:M})=>{const F=s.toLocaleLowerCase().split(" ").filter(A=>A).map(A=>A.trim());return F.filter(A=>`${T} ${R} ${M}`.toLocaleLowerCase().includes(A)).length===F.length}).sort(a[l]))},[y,s,l]);const b=()=>{p(!1)};return g(Wt,{children:[c(L_,{show:w}),g(z.Dialog,{scrollable:!0,size:"sm",className:"modal vehicles-list-modal",children:[g(z.Header,{className:"position-relative d-flex justify-content-center gap-3",children:[h&&!s&&c("button",{className:"showroom-back-btn",onClick:b,children:c("i",{className:"bi-arrow-left"})}),c(z.Title,{as:"h5",children:s.length?o.search:h?i.Categories[h]:o.allCategories}),!!s.length&&g(ee,{size:"sm",className:"ms-auto",variant:"outline-light",onClick:()=>u(""),children:[c("i",{className:"bi-x me-1"})," ",o.clear]})]}),g(z.Body,{className:"showroom-modal-body",ref:n,children:[c("div",{className:"search-and-filter p-3",children:g(Gt,{children:[c(j.Control,{type:"text",placeholder:o.search,value:s,onChange:T=>u(T.target.value)}),c(uh,{variant:"dark",title:c("i",{className:"bi-filter"}),id:"input-group-dropdown-2",align:"end",menuVariant:"dark",children:Object.keys(a).map((T,R)=>c(si.Item,{onClick:()=>f(T),active:l===T,children:T},R))})]})}),!h&&!s?c("div",{className:"p-3",children:r.categories.map(T=>g(Ue,{className:"showroom-category-btn mb-3",bg:"darker",onClick:()=>p(T),children:[c(Ue.Body,{className:"h5 mb-0 text-white",children:i.Categories[T]}),c(Ue.Footer,{children:g("small",{className:"text-muted",children:[r.vehicles.filter(R=>R.category===T).length," ",o.vehiclesCount]})})]},T))}):c("div",{children:x.length?x.map((T,R)=>c(B_,{vehicle:T,setActiveVehicle:t,isActive:(e==null?void 0:e.spawn_code)===T.spawn_code},R)):c("div",{className:"showroom-vehicle",children:o.noVehicles})})]}),!i.HideWatermark&&c(z.Footer,{className:"d-flex justify-content-between text-muted",children:c(ta,{})})]})]})},B_=({vehicle:e,setActiveVehicle:t,isActive:n})=>{const{event:r,locale:i,config:o}=ye(),a=m.useMemo(()=>`
url(https://cfx-nui-jg-advancedgarages/vehicle_images/${e.spawn_code}.png),
url(https://cfx-nui-jg-dealerships/vehicle_images/${e.spawn_code}.png),
url(https://docs.fivem.net/vehicles/${e.spawn_code}.webp)
`,[e]);return g("button",{className:`showroom-vehicle ${n?"active":""}`,onClick:()=>t(e),children:[g("div",{className:"showroom-vehicle-name-stock",children:[g("div",{children:[c("small",{className:"text-muted",children:e.brand}),c("p",{children:e.model})]}),c(vn,{bg:e.stock>0?"success":"danger",text:"white",pill:!0,children:r.shopType==="owned"&&(e.stock>0?i.inStock:i.outOfStock)})]}),g("div",{className:"d-flex align-items-end justify-content-between",children:[c("h4",{children:Le(e.price,o)}),c("div",{children:o.ShowVehicleImages&&c("div",{className:"vehicle-image flex-shrink-0",style:{backgroundImage:a}})})]})]})},z_=()=>{const{event:e,onCloseModal:t,locale:n}=ye(),[r,i]=m.useState();m.useEffect(()=>{if(e.defaultVehicle){const a=e.vehicles.find(({spawn_code:s})=>s===e.defaultVehicle);i(a)}},[e.type,e.defaultVehicle]);const o=async()=>{t(),i(void 0),await Ne("exit-showroom")};return e.type!=="showShowroom"?null:g("div",{className:"vehicle-showroom",children:[c("div",{className:"showroom-column",children:g("div",{className:"showroom-column-vehicles-list",children:[g(ee,{size:"lg",variant:"dark",className:"leave-showroom-btn",onClick:o,children:[c("i",{className:"bi-box-arrow-left"}),"   ",n.leaveShowroom]}),c(j_,{activeVehicle:r,setActiveVehicle:i})]})}),c($_,{}),c("div",{className:"showroom-column",children:r?c(D_,{vehicle:r,setActiveVehicle:i}):c("div",{})})]})};class Qi extends Error{}class V_ extends Qi{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class H_ extends Qi{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class W_ extends Qi{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Pa extends Qi{}class zS extends Qi{constructor(t){super(`Invalid unit ${t}`)}}class _n extends Qi{}class jr extends Qi{constructor(){super("Zone is an abstract class")}}const oe="numeric",Jn="short",yn="long",au={year:oe,month:oe,day:oe},VS={year:oe,month:Jn,day:oe},U_={year:oe,month:Jn,day:oe,weekday:Jn},HS={year:oe,month:yn,day:oe},WS={year:oe,month:yn,day:oe,weekday:yn},US={hour:oe,minute:oe},GS={hour:oe,minute:oe,second:oe},qS={hour:oe,minute:oe,second:oe,timeZoneName:Jn},KS={hour:oe,minute:oe,second:oe,timeZoneName:yn},ZS={hour:oe,minute:oe,hourCycle:"h23"},YS={hour:oe,minute:oe,second:oe,hourCycle:"h23"},QS={hour:oe,minute:oe,second:oe,hourCycle:"h23",timeZoneName:Jn},XS={hour:oe,minute:oe,second:oe,hourCycle:"h23",timeZoneName:yn},JS={year:oe,month:oe,day:oe,hour:oe,minute:oe},ex={year:oe,month:oe,day:oe,hour:oe,minute:oe,second:oe},tx={year:oe,month:Jn,day:oe,hour:oe,minute:oe},nx={year:oe,month:Jn,day:oe,hour:oe,minute:oe,second:oe},G_={year:oe,month:Jn,day:oe,weekday:Jn,hour:oe,minute:oe},rx={year:oe,month:yn,day:oe,hour:oe,minute:oe,timeZoneName:Jn},ix={year:oe,month:yn,day:oe,hour:oe,minute:oe,second:oe,timeZoneName:Jn},ox={year:oe,month:yn,day:oe,weekday:yn,hour:oe,minute:oe,timeZoneName:yn},ax={year:oe,month:yn,day:oe,weekday:yn,hour:oe,minute:oe,second:oe,timeZoneName:yn};class Ts{get type(){throw new jr}get name(){throw new jr}get ianaName(){return this.name}get isUniversal(){throw new jr}offsetName(t,n){throw new jr}formatOffset(t,n){throw new jr}offset(t){throw new jr}equals(t){throw new jr}get isValid(){throw new jr}}let ed=null;class Au extends Ts{static get instance(){return ed===null&&(ed=new Au),ed}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return lx(t,n,r)}formatOffset(t,n){return Ga(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let Nl={};function q_(e){return Nl[e]||(Nl[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Nl[e]}const K_={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Z_(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,o,a,s,u,l,f]=r;return[a,i,o,s,u,l,f]}function Y_(e,t)
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var $t=typeof Symbol=="function"&&Symbol.for,Bh=$t?Symbol.for("react.element"):60103,zh=$t?Symbol.for("react.portal"):60106,Wu=$t?Symbol.for("react.fragment"):60107,Uu=$t?Symbol.for("react.strict_mode"):60108,Gu=$t?Symbol.for("react.profiler"):60114,qu=$t?Symbol.for("react.provider"):60109,Ku=$t?Symbol.for("react.context"):60110,Vh=$t?Symbol.for("react.async_mode"):60111,Zu=$t?Symbol.for("react.concurrent_mode"):60111,Yu=$t?Symbol.for("react.forward_ref"):60112,Qu=$t?Symbol.for("react.suspense"):60113,LD=$t?Symbol.for("react.suspense_list"):60120,Xu=$t?Symbol.for("react.memo"):60115,Ju=$t?Symbol.for("react.lazy"):60116,jD=$t?Symbol.for("react.block"):60121,BD=$t?Symbol.for("react.fundamental"):60117,zD=$t?Symbol.for("react.responder"):60118,VD=$t?Symbol.for("react.scope"):60119;function Cn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Bh:switch(e=e.type,e){case Vh:case Zu:case Wu:case Gu:case Uu:case Qu:return e;default:switch(e=e&&e.$$typeof,e){case Ku:case Yu:case Ju:case Xu:case qu:return e;default:return t}}case zh:return t}}}function vC(e){return Cn(e)===Zu}Ye.AsyncMode=Vh;Ye.ConcurrentMode=Zu;Ye.ContextConsumer=Ku;Ye.ContextProvider=qu;Ye.Element=Bh;Ye.ForwardRef=Yu;Ye.Fragment=Wu;Ye.Lazy=Ju;Ye.Memo=Xu;Ye.Portal=zh;Ye.Profiler=Gu;Ye.StrictMode=Uu;Ye.Suspense=Qu;Ye.isAsyncMode=function(e){return vC(e)||Cn(e)===Vh};Ye.isConcurrentMode=vC;Ye.isContextConsumer=function(e){return Cn(e)===Ku};Ye.isContextProvider=function(e){return Cn(e)===qu};Ye.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Bh};Ye.isForwardRef=function(e){return Cn(e)===Yu};Ye.isFragment=function(e){return Cn(e)===Wu};Ye.isLazy=function(e){return Cn(e)===Ju};Ye.isMemo=function(e){return Cn(e)===Xu};Ye.isPortal=function(e){return Cn(e)===zh};Ye.isProfiler=function(e){return Cn(e)===Gu};Ye.isStrictMode=function(e){return Cn(e)===Uu};Ye.isSuspense=function(e){return Cn(e)===Qu};Ye.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Wu||e===Zu||e===Gu||e===Uu||e===Qu||e===LD||typeof e=="object"&&e!==null&&(e.$$typeof===Ju||e.$$typeof===Xu||e.$$typeof===qu||e.$$typeof===Ku||e.$$typeof===Yu||e.$$typeof===BD||e.$$typeof===zD||e.$$typeof===VD||e.$$typeof===jD)};Ye.typeOf=Cn;mC.exports=Ye;var HD=mC.exports,yC=HD,WD={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},UD={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},gC={};gC[yC.ForwardRef]=WD;gC[yC.Memo]=UD;function Ft(){return Ft=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ft.apply(this,arguments)}function wC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Tn=function(t){return typeof t=="function"},ec=function(t){return t!==null&&typeof t=="object"},GD=function(t){return String(Math.floor(Number(t)))===t},ud=function(t){return Object.prototype.toString.call(t)==="[object String]"},qD=function(t){return m.Children.count(t)===0},cd=function(t){return ec(t)&&Tn(t.then)};function Nn(e,t,n,r){r===void 0&&(r=0);for(var i=hC(t);e&&r<i.length;)e=e[i[r++]];return e===void 0?n:e}function Di(e,t,n){for(var r=Sg(e),i=r,o=0,a=hC(t);o<a.length-1;o++){var s=a[o],u=Nn(e,a.slice(0,o+1));if(u&&(ec(u)||Array.isArray(u)))i=i[s]=Sg(u);else{var l=a[o+1];i=i[s]=GD(l)&&Number(l)>=0?[]:{}}}return(o===0?e:i)[a[o]]===n?e:(n===void 0?delete i[a[o]]:i[a[o]]=n,o===0&&n===void 0&&delete r[a[o]],r)}function SC(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var i=0,o=Object.keys(e);i<o.length;i++){var a=o[i],s=e[a];ec(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},SC(s,t,n,r[a])):r[a]=t}return r}var tc=m.createContext(void 0);tc.displayName="FormikContext";var KD=tc.Provider;tc.Consumer;function ZD(){var e=m.useContext(tc);return e||AD(!1),e}function YD(e,t){switch(t.type){case"SET_VALUES":return Ft({},e,{values:t.payload});case"SET_TOUCHED":return Ft({},e,{touched:t.payload});case"SET_ERRORS":return
attempted value: ${a}
`+(s!==a?`result of cast: ${s}`:""))}return o}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,o)=>o.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault()),r}_validate(t,n={},r,i){let{path:o,originalValue:a=t,strict:s=this.spec.strict}=n,u=t;s||(u=this._cast(u,Object.assign({assert:!1},n)));let l=[];for(let f of Object.values(this.internalTests))f&&l.push(f);this.runTests({path:o,value:u,originalValue:a,options:n,tests:l},r,f=>{if(f.length)return i(f,u);this.runTests({path:o,value:u,originalValue:a,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:o,value:a,originalValue:s,path:u,options:l}=t,f=x=>{i||(i=!0,n(x,a))},h=x=>{i||(i=!0,r(x,a))},p=o.length,y=[];if(!p)return h([]);let C={value:a,originalValue:s,path:u,options:l,schema:this};for(let x=0;x<o.length;x++){const N=o[x];N(C,f,function(E){E&&(y=y.concat(E)),--p<=0&&h(y)})}}asNestedTest({key:t,index:n,parent:r,parentPath:i,originalParent:o,options:a}){const s=t??n;if(s==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof s=="number";let l=r[s];const f=Object.assign({},a,{strict:!0,parent:r,value:l,originalValue:o[s],key:void 0,[u?"index":"key"]:s,path:u||s.includes(".")?`${i||""}[${l?s:`"${s}"`}]`:(i?`${i}.`:"")+t});return(h,p,y)=>this.resolve(f)._validate(l,f,p,y)}validate(t,n){let r=this.resolve(Object.assign({},n,{value:t}));return new Promise((i,o)=>r._validate(t,n,(a,s)=>{dn.isError(a)&&(a.value=s),o(a)},(a,s)=>{a.length?o(new dn(a,s)):i(s)}))}validateSync(t,n){let r=this.resolve(Object.assign({},n,{value:t})),i;return r._validate(t,Object.assign({},n,{sync:!0}),(o,a)=>{throw dn.isError(o)&&(o.value=a),o},(o,a)=>{if(o.length)throw new dn(o,t);i=a}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(dn.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(dn.isError(r))return!1;throw r}}_getDefault(){let t=this.spec.default;return t==null?t:typeof t=="function"?t.call(this):ko(t)}getDefault(t){return this.resolve(t||{})._getDefault()}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=co({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=co({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=vr.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=vr.notNull){return this.nullability(!1,t)}required(t=vr.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=vr.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=co(n),o=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(o||a.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=kC(t).map(o=>new ro(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new du(i,n):du.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=co({message:t,name:"typeError",test(r){return!$n(r)&&!this.schema._typeCheck(r)?this.createError({params:{type:this.schema.type}}):!0}}),n}oneOf(t,n=vr.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blackl
* Signature Pad v2.3.2
* https://github.com/szimek/signature_pad
*
* Copyright 2017 Szymon Nowak
* Released under the MIT license
*
* The main idea and some parts of the code (e.g. drawing variable width Bézier curve) are taken from:
* http://corner.squareup.com/2012/07/smoother-signatures.html
*
* Implementation of interpolation using cubic Bézier curves is taken from:
* http://benknowscode.wordpress.com/2012/09/14/path-interpolation-using-cubic-bezier-and-control-point-estimation-in-javascript
*
* Algorithm for approximated length of a Bézier curve is taken from:
* http://www.lemoda.net/maths/bezier-length/index.html
*
*/function qi(e,t,n){this.x=e,this.y=t,this.time=n||new Date().getTime()}qi.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1};qi.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))};qi.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time};function Zh(e,t,n,r){this.startPoint=e,this.control1=t,this.control2=n,this.endPoint=r}Zh.prototype.length=function(){for(var e=10,t=0,n=void 0,r=void 0,i=0;i<=e;i+=1){var o=i/e,a=this._point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),s=this._point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(i>0){var u=a-n,l=s-r;t+=Math.sqrt(u*u+l*l)}n=a,r=s}return t};Zh.prototype._point=function(e,t,n,r,i){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*r*(1-e)*e*e+i*e*e*e};function cL(e,t,n){var r,i,o,a=null,s=0;n||(n={});var u=function(){s=n.leading===!1?0:Date.now(),a=null,o=e.apply(r,i),a||(r=i=null)};return function(){var l=Date.now();!s&&n.leading===!1&&(s=l);var f=t-(l-s);return r=this,i=arguments,f<=0||f>t?(a&&(clearTimeout(a),a=null),s=l,o=e.apply(r,i),a||(r=i=null)):!a&&n.trailing!==!1&&(a=setTimeout(u,f)),o}}function et(e,t){var n=this,r=t||{};this.velocityFilterWeight=r.velocityFilterWeight||.7,this.minWidth=r.minWidth||.5,this.maxWidth=r.maxWidth||2.5,this.throttle="throttle"in r?r.throttle:16,this.minDistance="minDistance"in r?r.minDistance:5,this.throttle?this._strokeMoveUpdate=cL(et.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=et.prototype._strokeUpdate,this.dotSize=r.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=r.penColor||"black",this.backgroundColor=r.backgroundColor||"rgba(0,0,0,0)",this.onBegin=r.onBegin,this.onEnd=r.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(i){i.which===1&&(n._mouseButtonDown=!0,n._strokeBegin(i))},this._handleMouseMove=function(i){n._mouseButtonDown&&n._strokeMoveUpdate(i)},this._handleMouseUp=function(i){i.which===1&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(i))},this._handleTouchStart=function(i){if(i.targetTouches.length===1){var o=i.changedTouches[0];n._strokeBegin(o)}},this._handleTouchMove=function(i){i.preventDefault();var o=i.targetTouches[0];n._strokeMoveUpdate(o)},this._handleTouchEnd=function(i){var o=i.target===n._canvas;o&&(i.preventDefault(),n._strokeEnd(i))},this.on()}et.prototype.clear=function(){var e=this._ctx,t=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0};et.prototype.fromDataURL=function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new Image,i=n.ratio||window.devicePixelRatio||1,o=n.width||this._canvas.width/i,a=n.height||this._canvas.height/i;this._reset(),r.src=e,r.onload=function(){t._ctx.drawImage(r,0,0,o,a)},this._isEmpty=!1};et.prototype.toDataURL=function(e){var t;switch(e){case"image/svg+xml":return this._toSVG();default:for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(t=this._canvas).toDataURL.apply(t,[e].concat(r))}};et.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()};et.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)};et.prototype.isEmpty=function(){return this._isEmpty};et.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),typeof this.onBegin=="function"&&this.onBegin(e)};et.prototype._strokeUpdate=function(e){var t=e.clientX,n=e.clientY,r=this._createPoint(t,n),i=this._data[this._data.length-1],o=i&&i[i.length-1],a=o&&r.distanceT