adp-web-components 0.0.30 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/dead-stock-lookup.cjs.entry.js +16 -4
- package/dist/cjs/distributor-lookup.cjs.entry.js +15 -3
- package/dist/cjs/dynamic-claim_6.cjs.entry.js +19 -13
- package/dist/cjs/dynamic-redeem.cjs.entry.js +1 -1
- package/dist/cjs/{get-local-language-42973450.js → get-local-language-6b6b182f.js} +2 -9
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/manufacturer-lookup.cjs.entry.js +16 -4
- package/dist/cjs/{partInformation-2b4e0593.js → partInformation-16ea1f8e.js} +1 -1
- package/dist/cjs/shift-components.cjs.js +1 -1
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +45 -6
- package/dist/collection/components/part-lookup/distributor-lookup.js +43 -4
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +45 -6
- package/dist/collection/components/vehicle-lookup/dynamic-claim.js +3 -2
- package/dist/collection/components/vehicle-lookup/paint-thickness.js +4 -3
- package/dist/collection/components/vehicle-lookup/service-history.js +2 -1
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +4 -3
- package/dist/collection/components/vehicle-lookup/vehicle-specification.js +2 -1
- package/dist/collection/components/vehicle-lookup/warranty-details.js +2 -1
- package/dist/collection/global/api/partInformation.js +1 -1
- package/dist/collection/global/api/vehicleInformation.js +1 -1
- package/dist/collection/global/types/locales/error-schema.js +2 -0
- package/dist/collection/global/types/locales/vehicle-lookup/dynamic-redeem-schema.js +0 -9
- package/dist/components/dead-stock-lookup.js +1 -1
- package/dist/components/distributor-lookup.js +1 -1
- package/dist/components/dynamic-claim.js +1 -1
- package/dist/components/dynamic-redeem.js +1 -1
- package/dist/components/manufacturer-lookup.js +1 -1
- package/dist/components/p-27603946.js +5 -0
- package/dist/components/p-41d63f74.js +5 -0
- package/dist/components/p-5d492eec.js +5 -0
- package/dist/components/p-6c720036.js +5 -0
- package/dist/components/p-8b1d90d7.js +5 -0
- package/dist/components/{p-0ae60f32.js → p-9b821a7e.js} +1 -1
- package/dist/components/p-a83ffeb1.js +5 -0
- package/dist/components/p-b8f9bf61.js +5 -0
- package/dist/components/p-c76ffad2.js +5 -0
- package/dist/components/{p-6c064413.js → p-e30d8e8f.js} +1 -1
- package/dist/components/p-f99c8b2f.js +5 -0
- package/dist/components/paint-thickness.js +1 -1
- package/dist/components/service-history.js +1 -1
- package/dist/components/vehicle-accessories.js +1 -1
- package/dist/components/vehicle-lookup.js +1 -1
- package/dist/components/vehicle-specification.js +1 -1
- package/dist/components/warranty-details.js +1 -1
- package/dist/esm/dead-stock-lookup.entry.js +16 -4
- package/dist/esm/distributor-lookup.entry.js +15 -3
- package/dist/esm/dynamic-claim_6.entry.js +19 -13
- package/dist/esm/dynamic-redeem.entry.js +1 -1
- package/dist/esm/{get-local-language-85ed0b3b.js → get-local-language-554f1f34.js} +2 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/manufacturer-lookup.entry.js +16 -4
- package/dist/esm/{partInformation-f40b1fe6.js → partInformation-ba1470e1.js} +1 -1
- package/dist/esm/shift-components.js +1 -1
- package/dist/locales/ar.json +4 -12
- package/dist/locales/en.json +4 -12
- package/dist/locales/ku.json +4 -12
- package/dist/shift-components/p-4a5ba0d7.entry.js +5 -0
- package/dist/shift-components/p-60c334c8.entry.js +5 -0
- package/dist/shift-components/p-6b51b757.entry.js +5 -0
- package/dist/shift-components/p-962897dc.js +5 -0
- package/dist/shift-components/p-9cf24b05.entry.js +5 -0
- package/dist/shift-components/{p-1de8531d.entry.js → p-d075be6d.entry.js} +1 -1
- package/dist/shift-components/p-f99c8b2f.js +5 -0
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/part-lookup/dead-stock-lookup.d.ts +8 -3
- package/dist/types/components/part-lookup/distributor-lookup.d.ts +7 -2
- package/dist/types/components/part-lookup/manufacturer-lookup.d.ts +7 -2
- package/dist/types/components.d.ts +8 -2
- package/dist/types/global/types/locales/error-schema.d.ts +4 -0
- package/dist/types/global/types/locales/index.d.ts +4 -18
- package/dist/types/global/types/locales/vehicle-lookup/dynamic-redeem-schema.d.ts +0 -18
- package/dist/types/global/types/locales/vehicle-lookup/index.d.ts +0 -18
- package/package.json +1 -1
- package/dist/components/p-1d80419b.js +0 -5
- package/dist/components/p-1ea3089a.js +0 -5
- package/dist/components/p-2e747eb3.js +0 -5
- package/dist/components/p-4f99745c.js +0 -5
- package/dist/components/p-609c2470.js +0 -5
- package/dist/components/p-7360f9b1.js +0 -5
- package/dist/components/p-79ea7639.js +0 -5
- package/dist/components/p-d466b65f.js +0 -5
- package/dist/components/p-eb89583a.js +0 -5
- package/dist/components/p-f691e103.js +0 -5
- package/dist/shift-components/p-062cd94b.entry.js +0 -5
- package/dist/shift-components/p-0e0b69a1.entry.js +0 -5
- package/dist/shift-components/p-2e747eb3.js +0 -5
- package/dist/shift-components/p-c4efbdc3.js +0 -5
- package/dist/shift-components/p-d49f73db.entry.js +0 -5
- package/dist/shift-components/p-e36c54d0.entry.js +0 -5
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-33ae6859.js';
|
|
6
6
|
import { c as cn } from './cn-cc419b94.js';
|
|
7
|
-
import { l as localeSchema, g as getLocaleLanguage } from './get-local-language-
|
|
7
|
+
import { l as localeSchema, g as getLocaleLanguage } from './get-local-language-554f1f34.js';
|
|
8
8
|
import { L as Loading$1, l as loaderSvg$1 } from './Loading-f4d666ee.js';
|
|
9
9
|
import './index.esm-46e0cdad.js';
|
|
10
10
|
|
|
@@ -49,7 +49,7 @@ const getVehicleInformation = async (component, generalProps, headers = {}) => {
|
|
|
49
49
|
}
|
|
50
50
|
else {
|
|
51
51
|
if (!baseUrl)
|
|
52
|
-
throw new Error('
|
|
52
|
+
throw new Error('noBaseUrl');
|
|
53
53
|
const componentHeaders = Object.assign({}, headers);
|
|
54
54
|
Object.entries(vehicleRequestHeaders).forEach(([componentHeaderKey, headerField]) => {
|
|
55
55
|
if (component[componentHeaderKey])
|
|
@@ -155,6 +155,7 @@ const DynamicClaim = class {
|
|
|
155
155
|
catch (error) {
|
|
156
156
|
if (error && (error === null || error === void 0 ? void 0 : error.name) === 'AbortError')
|
|
157
157
|
return;
|
|
158
|
+
console.error(error);
|
|
158
159
|
this.isLoading = false;
|
|
159
160
|
this.vehicleInformation = null;
|
|
160
161
|
this.errorMessage = error.message;
|
|
@@ -336,7 +337,7 @@ const DynamicClaim = class {
|
|
|
336
337
|
var _a, _b;
|
|
337
338
|
const serviceItems = ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceItems) || [];
|
|
338
339
|
const texts = this.locale.vehicleLookup.dynamicClaim;
|
|
339
|
-
return (h(Host, { key: '
|
|
340
|
+
return (h(Host, { key: 'eae03b35a7067f0df313d4d36c1c610a51cb59e6' }, h("dynamic-redeem", { key: '4dca53c053a437120a488fea07f85794dd471031', language: this.language, id: "dynamic-redeem" }), h("div", { key: '4293fcc2195e751d4118a9064b30a835f76b5fa7', class: cn('dynamic-claim-wrapper', { loading: this.isLoading, idle: this.isIdle }) }, h("div", { key: '64b1e5073886f1b96ebaf6bccca921d468b81a1a', class: "dynamic-claim-header" }, h("strong", { key: '8d652b2ba5b658d633596b3cb67badd0adfcca4f', onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-header-vin load-animation" }, this.errorMessage && (h("span", { key: 'd43a32b705fb761ccdc990e502aa5b614cc0c37e', dir: this.locale.direction, style: { color: 'red' } }, this.locale.errors[this.errorMessage] || this.locale.errors.wildCard)), !this.errorMessage && ((_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.vin))), h("div", { key: '774e18ad9e0bdce66813cca712bd152f96f3ba29', class: "dynamic-claim-body" }, h("div", { key: 'c8ccffc4f5fa61cb0f620530e5b25db5465b04e9', class: "loading-lane" }, h("div", { key: 'c8231fcb02ce2f708c2bbf60e5a812c384b42a80', class: "dynamic-claim-loading-slider" }, h("div", { key: 'e333b516efe3e89dcb6411b1ca3770812df4fc4f', class: "dynamic-claim-loading-slider-line" }), h("div", { key: '659b9698f22a73127bc3c81f18191a799f6d7303', class: "dynamic-claim-loading-slider-subline dynamic-claim-inc" }), h("div", { key: 'b4eb0acb6402db195ff118eb7457fa2efd3f2f6c', class: "dynamic-claim-loading-slider-subline dynamic-claim-dec" }))), h("div", { key: '1ddbadcb901e64352ac23f9ed272ddb066836a50', class: "dynamic-claim-progress-lane" }, serviceItems.map((item, idx) => {
|
|
340
341
|
let statusClass = '';
|
|
341
342
|
if (item.status === 'pending') {
|
|
342
343
|
if (serviceItems.findIndex(i => i.status === 'pending') === idx)
|
|
@@ -345,7 +346,7 @@ const DynamicClaim = class {
|
|
|
345
346
|
else
|
|
346
347
|
statusClass = item.status;
|
|
347
348
|
return (h("div", { key: item.name, class: cn('dynamic-claim-item', statusClass), onMouseLeave: this.onMouseLeave }, h("div", { onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-item-header load-animation", onMouseEnter: event => this.onMouseEnter(event.target, idx) }, h("img", { src: icons[item.status], alt: "status icon" }), h("span", null, texts[item.status]), this.activePopupIndex === idx && this.createPopup(item)), h("div", { onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-item-circle load-animation" }), h("p", { onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-item-footer load-animation" }, item.name)));
|
|
348
|
-
}), h("div", { key: '
|
|
349
|
+
}), h("div", { key: 'ce4a02398dcde7edb5435837e7830c0bef2266fd', class: "dynamic-claim-progress-bar" }))))));
|
|
349
350
|
}
|
|
350
351
|
get el() { return getElement(this); }
|
|
351
352
|
static get watchers() { return {
|
|
@@ -504,6 +505,7 @@ const PaintThickness = class {
|
|
|
504
505
|
catch (error) {
|
|
505
506
|
if (error && (error === null || error === void 0 ? void 0 : error.name) === 'AbortError')
|
|
506
507
|
return;
|
|
508
|
+
console.error(error);
|
|
507
509
|
this.state = 'error';
|
|
508
510
|
this.vehicleInformation = null;
|
|
509
511
|
this.errorMessage = error.message;
|
|
@@ -523,11 +525,11 @@ const PaintThickness = class {
|
|
|
523
525
|
var _a, _b;
|
|
524
526
|
const texts = this.locale.vehicleLookup.paintThickness;
|
|
525
527
|
const { imageGroups, parts } = (this === null || this === void 0 ? void 0 : this.vehicleInformation) ? (_a = this === null || this === void 0 ? void 0 : this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.paintThickness : { imageGroups: [], parts: [] };
|
|
526
|
-
return (h(Host, { key: '
|
|
528
|
+
return (h(Host, { key: '63c26e93dfd02ecf3dedb8c02b90c53217ebac74' }, h("div", { key: '1afca3004303df017df436308db4f265f86f73c5', dir: this.locale.direction, class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: 'a13c70ca9d772e7e344db801e12c119698934dcb' }, h(Loading$1, { key: '8e0ec05cb31af7afd60b5d39c58474d081423c0c', isLoading: this.state.includes('loading') }), h("div", { key: '8e26c7228bae3709ec604aa76069023a928d5315', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, h("div", { key: 'fbbad92f671914f1de952cb9cf3e3a8d987d3170', class: cn('text-center pt-[4px] text-[20px]', { 'text-red-600': !!this.errorMessage }) }, (_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.vin), ['error', 'error-loading'].includes(this.state) && (h("div", { key: '2e86c841565522c2221084fff77787d36af5f0c9', class: "py-[16px]" }, h("div", { key: '73c67505be7dfe19ab2dc833ea6fde5d50a118cc', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.locale.errors[this.errorMessage] || this.locale.errors.wildCard))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '00ef9f81a04ce61409ef0fe2d05c5e53c54e8ec9', class: "flex mt-[12px] w-full max-h-[70dvh] overflow-hidden mx-auto rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: 'a5b578f25ed757ec44575e842b8dcccbe1c6f852', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, texts.paintThickness), h("div", { key: '6312fc77ad4169509bd184f38a78fca84c826a55', class: "h-0 overflow-auto flex-1" }, !parts.length && h("div", { key: '6effdd6539fb90f4945352c03de92aefda585735', class: "h-[50px] px-[30px] flex items-center justify-center text-[18px]" }, texts.noData), !!parts.length && (h("table", { key: '7b873c31bca0834899609894e901efc871ca3bdc', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: 'e7525470ad10cbb85e2a648a272fb5e33dde9aee', class: "top-0 font-bold sticky bg-white" }, h("tr", { key: 'ae4518825cf0588211b4a8f22056404aa79aab9a' }, ['part', 'left', 'right'].map(title => (h("th", { key: title, class: "px-[15px] min-w-[100px] py-[15px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, texts[title]))))), h("tbody", { key: '68b428b4be79e61ecac8024bc763b69dbae763e2' }, parts.map((part, idx) => (h("tr", { class: "transition-colors duration-100 hover:bg-slate-100", key: part.part }, ['part', 'left', 'right'].map(key => (h("td", { key: part.part + key, class: cn('px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]', {
|
|
527
529
|
'!border-none': idx === parts.length - 1,
|
|
528
|
-
}) }, part[key] || '...')))))))))))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '
|
|
530
|
+
}) }, part[key] || '...')))))))))))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '8960617e47afdc6db66912cca04729e05b7c0c4f' }, !imageGroups.length && h("div", { key: 'ff88633f24dab1ab3e1571b95a285b758d9607c9', class: "h-[40px] px-[30px] flex text-red-500 items-center justify-center text-[18px]" }, texts.noImageGroups), !!imageGroups.length && (h("div", { key: '838e0f573b5452a5154a92f5f97f613d610c7bf1', class: "py-[16px] gap-[16px] justify-center flex flex-wrap px-[24px] w-full" }, imageGroups.map(imageGroup => (h("div", { class: "shrink-0 rounded-lg shadow-sm border overflow-hidden flex flex-col", key: imageGroup.name }, h("h1", { class: "text-center border-b bg-slate-200 font-semibold p-[6px]" }, imageGroup.name), h("div", { class: "flex p-[12px] gap-[8px]" }, imageGroup.images.map(image => (h("div", { class: "flex gap-[8px]", key: image }, h("button", { onClick: ({ target }) => this.openImage(target, image), class: "shrink-0 relative ring-0 outline-none w-fit mx-auto [&_img]:hover:shadow-lg [&_div]:hover:!opacity-100 cursor-pointer" }, h("div", { class: "absolute flex-col justify-center gap-[4px] size-full flex items-center pointer-events-none hover:opacity-100 rounded-lg opacity-0 bg-black/40 transition-all duration-300" }, h("img", { src: eyeSvg }), h("span", { class: "text-white" }, texts.expand)), h("img", { class: "w-auto h-[150px] cursor-pointer shadow-sm rounded-lg transition-all duration-300", src: image }))))))))), h("div", { key: '788024dce16b13c1509ae49fe69b5e48e1afc8ba', onClick: () => this.closeImage(), style: { backdropFilter: this.expandedImage ? 'blur(3px)' : 'blur(0px)' }, class: cn('pointer-events-none w-[100dvw] h-[100dvh] fixed top-0 z-10 left-0 opacity-0 bg-black/40 transition-all duration-400', {
|
|
529
531
|
'pointer-events-auto opacity-100 delay-200': this.expandedImage,
|
|
530
|
-
}) }, h("button", { key: '
|
|
532
|
+
}) }, h("button", { key: 'f3b66783393492c980e76f875aa8e15dd34467cb', class: "flex flex-col mt-[16px] items-center justify-center size-12 float-right mr-[16px]", onClick: () => this.closeImage() }, h("div", { key: '96729fd9b6be1cb392e5e0e990606dc49ec2bdbc', class: "h-1 w-12 rounded-full rotate-45 absolute bg-white" }), h("div", { key: 'ba4e7211b3cdb19195855eb353f1e12259039bff', class: "h-1 w-12 rounded-full -rotate-45 absolute bg-white" }))), h("img", { key: '7ea590ea5d9783fad22238ccbe5380424dd0c685', alt: "", id: "expanded-image", class: "fixed opacity-0 z-40 transition-all rounded-lg" }))))))))));
|
|
531
533
|
}
|
|
532
534
|
get el() { return getElement(this); }
|
|
533
535
|
static get watchers() { return {
|
|
@@ -602,6 +604,7 @@ const ServiceHistory = class {
|
|
|
602
604
|
catch (error) {
|
|
603
605
|
if (error && (error === null || error === void 0 ? void 0 : error.name) === 'AbortError')
|
|
604
606
|
return;
|
|
607
|
+
console.error(error);
|
|
605
608
|
this.state = 'error';
|
|
606
609
|
this.vehicleInformation = null;
|
|
607
610
|
this.errorMessage = error.message;
|
|
@@ -620,7 +623,7 @@ const ServiceHistory = class {
|
|
|
620
623
|
render() {
|
|
621
624
|
var _a, _b, _c, _d;
|
|
622
625
|
const texts = this.locale.vehicleLookup.serviceHistory;
|
|
623
|
-
return (h(Host, { key: '
|
|
626
|
+
return (h(Host, { key: 'f89ce7f17b78c775cbcee6a4db109ef3c00e6d29' }, h("div", { key: 'd6b942daf06542e542a04d3bb72068c5758c80e9', dir: this.locale.direction, class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: 'acf33e3e253eb114c443a7d987db2b5e5db1468e' }, h(Loading$1, { key: '74d21f31cf67f9b5959e6ba4af3ebaea10bb6b04', isLoading: this.state.includes('loading') }), h("div", { key: '803d65860d980d5bac019b749d75a5692b5dfa06', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, h("div", { key: '1e9672450bd13031d6079a2ed33e06a40e36a6bc', class: cn('text-center pt-[4px] text-[20px]', { 'text-red-600': !!this.errorMessage }) }, (_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.vin), ['error', 'error-loading'].includes(this.state) && (h("div", { key: 'b8b5edb12f6e38919945160d446e004cbc7ad6ba', class: "py-[16px]" }, h("div", { key: '9836f3fdca8b2b7307b95305bd26343d177ce52b', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.locale.errors[this.errorMessage] || this.locale.errors.wildCard))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: 'e591ba63512e82b6550aa9aee55a8fa406227b85', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: 'd0fb2a760d372b9d1bff0470bbd05541a0214d9f', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, texts.serviceHistory), h("div", { key: '9d9972cb39d1921b7bb4e4c5bd264c13b62ac0c2', class: "h-0 overflow-auto flex-1" }, !((_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.serviceHistory.length) && h("div", { key: '5c200eb45535a3e310d6aec7eee854a527b379fd', class: "h-[80px] flex items-center justify-center text-[18px]" }, texts.noData), !!((_c = this.vehicleInformation) === null || _c === void 0 ? void 0 : _c.serviceHistory.length) && (h("table", { key: '5d93b0cd99ca7f38631c36259c9d019b4b5234fd', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: 'bdd4ccde39e53fcbd15d4ccf27f0d504e1ba9d21', class: "top-0 font-bold sticky bg-white" }, h("tr", { key: '83d5b447ef3f5ee92314cb9be124ae316d196c22' }, ['branch', 'dealer', 'invoiceNumber', 'date', 'serviceType', 'odometer'].map(title => (h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, texts[title]))))), h("tbody", { key: 'f32901ca2350c6fadf44972681f909c2b27b7707' }, (_d = this.vehicleInformation) === null || _d === void 0 ? void 0 : _d.serviceHistory.map((service, idx) => (h("tr", { class: "transition-colors duration-100 hover:bg-slate-100", key: service.invoiceNumber }, ['branchName', 'companyName', 'invoiceNumber', 'serviceDate', 'serviceType', 'mileage'].map(serviceType => {
|
|
624
627
|
var _a;
|
|
625
628
|
return (h("td", { key: service.invoiceNumber + serviceType, class: cn('px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]', {
|
|
626
629
|
'!border-none': idx === ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceHistory.length) - 1,
|
|
@@ -710,6 +713,7 @@ const VehicleAccessories = class {
|
|
|
710
713
|
catch (error) {
|
|
711
714
|
if (error && (error === null || error === void 0 ? void 0 : error.name) === 'AbortError')
|
|
712
715
|
return;
|
|
716
|
+
console.error(error);
|
|
713
717
|
this.state = 'error';
|
|
714
718
|
this.vehicleInformation = null;
|
|
715
719
|
this.errorMessage = error.message;
|
|
@@ -729,7 +733,7 @@ const VehicleAccessories = class {
|
|
|
729
733
|
var _a, _b;
|
|
730
734
|
const texts = this.locale.vehicleLookup.accessories;
|
|
731
735
|
const accessories = (this === null || this === void 0 ? void 0 : this.vehicleInformation) ? (_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.accessories : [];
|
|
732
|
-
return (h(Host, { key: '
|
|
736
|
+
return (h(Host, { key: '8387f8bf62bbb81766edf77d7ba3d574fd2e9a80' }, h("div", { key: '72db4edce06518b167c149244dbc4355484723cb', dir: this.locale.direction, class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: 'da38d3c66b219e5b8dfa3ac34ccbf68433f2a8b6' }, h(Loading$1, { key: '38d5e442c8d3874ed9ed4d6b87719529764c5475', isLoading: this.state.includes('loading') }), h("div", { key: 'ffd385f36cd49de490da307944d16a8e83bb0287', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, h("div", { key: '5692dc7da65d0508d6a863af6f9a7a0bb8460727', class: cn('text-center pt-[4px] text-[20px]', { 'text-red-600': !!this.errorMessage }) }, (_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.vin), ['error', 'error-loading'].includes(this.state) && (h("div", { key: 'c8b4189075e8240a9ff2059e307dc3c61de705ee', class: "py-[16px]" }, h("div", { key: '3c5a383bec835b3f063d958070176e213caa2c15', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.locale.errors[this.errorMessage] || this.locale.errors.wildCard))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '8b0b46c3a428ed30b9c1e70064ca3b5eb36cabff', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '3905912ad4256df37fc7f7cf28b4cdf0ff2a7278', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, texts.vehicleAccessories), h("div", { key: '49b423073265bf472bdb596b90a745393220584f', class: "h-0 overflow-auto flex-1" }, !accessories.length && h("div", { key: 'c464443ec49ae9cff52e8fed7fad1816105bc64b', class: "h-[80px] flex items-center justify-center text-[18px]" }, texts.noData), !!accessories.length && (h("table", { key: 'd1ccae2f834f037567d49896a4afcd87d1d3b30b', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: '3374f38dd5e063d4a00f7fab248f542f8274f689', class: "top-0 font-bold z-40 sticky bg-white" }, h("tr", { key: '01df1c074f587759cd19f9dbe3076a69f4f577b7' }, ['partNumber', 'description', 'image'].map(title => (h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, texts[title]))))), h("tbody", { key: '0d7cc7b256753295febea408f45f2ba148773796' }, accessories.map((accessory, idx) => {
|
|
733
737
|
var _a;
|
|
734
738
|
return (h("tr", { class: "transition-colors duration-100 hover:bg-slate-100", key: accessory.partNumber }, ['partNumber', 'description'].map(key => {
|
|
735
739
|
var _a;
|
|
@@ -739,9 +743,9 @@ const VehicleAccessories = class {
|
|
|
739
743
|
}), h("td", { class: cn('px-[10px] py-[10px] text-center whitespace-nowrap border-b border-[#d6d8dc]', {
|
|
740
744
|
'!border-none': idx === ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceHistory.length) - 1,
|
|
741
745
|
}) }, h("button", { onClick: ({ target }) => this.openImage(target, accessory.image), class: "shrink-0 relative ring-0 outline-none w-fit mx-auto [&_img]:hover:shadow-lg [&_div]:hover:!opacity-100 cursor-pointer" }, h("div", { class: "absolute flex-col justify-center gap-[4px] size-full flex items-center pointer-events-none hover:opacity-100 rounded-lg opacity-0 bg-black/40 transition-all duration-300" }, h("img", { src: eyeSvg }), h("span", { class: "text-white" }, texts.expand)), h("img", { class: "w-auto h-auto max-w-[133px] max-h-[133px] cursor-pointer shadow-sm rounded-lg transition-all duration-300", src: accessory.image })))));
|
|
742
|
-
})), h("div", { key: '
|
|
746
|
+
})), h("div", { key: '6f489e2175f6421e29e476881a417849eb153efe', onClick: () => this.closeImage(), style: { backdropFilter: this.expandedImage ? 'blur(3px)' : 'blur(0px)' }, class: cn('pointer-events-none w-[100dvw] h-[100dvh] fixed top-0 z-50 left-0 opacity-0 bg-black/40 transition-all duration-400', {
|
|
743
747
|
'pointer-events-auto opacity-100 delay-200': this.expandedImage,
|
|
744
|
-
}) }, h("button", { key: '
|
|
748
|
+
}) }, h("button", { key: 'a23d0da4f403adba26d021a8b5d70f445b003652', class: "flex flex-col mt-[16px] items-center justify-center size-12 float-right mr-[16px]", onClick: () => this.closeImage() }, h("div", { key: '52eaf817c47086baea1b3fabbe9b7918adcb689d', class: "h-1 w-12 rounded-full rotate-45 absolute bg-white" }), h("div", { key: '8fb82fd07a285f22f01ba5750f12ca21ee754fec', class: "h-1 w-12 rounded-full -rotate-45 absolute bg-white" }))), h("img", { key: '8d5b69444d9a4243af0979b9dfdf1c4891f4ee29', alt: "", id: "expanded-image", class: "fixed opacity-0 z-50 transition-all rounded-lg" })))))))))));
|
|
745
749
|
}
|
|
746
750
|
get el() { return getElement(this); }
|
|
747
751
|
static get watchers() { return {
|
|
@@ -811,6 +815,7 @@ const VehicleSpecification = class {
|
|
|
811
815
|
catch (error) {
|
|
812
816
|
if (error && (error === null || error === void 0 ? void 0 : error.name) === 'AbortError')
|
|
813
817
|
return;
|
|
818
|
+
console.error(error);
|
|
814
819
|
this.state = 'error';
|
|
815
820
|
this.vehicleInformation = null;
|
|
816
821
|
this.errorMessage = error.message;
|
|
@@ -829,7 +834,7 @@ const VehicleSpecification = class {
|
|
|
829
834
|
render() {
|
|
830
835
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
831
836
|
const texts = this.locale.vehicleLookup.specification;
|
|
832
|
-
return (h(Host, { key: '
|
|
837
|
+
return (h(Host, { key: 'e07b775ec5cfa843d747c2f7168c894931454dfc' }, h("div", { key: '888fb6d5ab386f44010329577b241f4b2d578183', dir: this.locale.direction, class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: '78354d91ffdf6a8210ef2e97b3559f9af85b299b' }, h(Loading$1, { key: 'c2a46f1c8dc0a446dd256a4e8234e54002409d51', isLoading: this.state.includes('loading') }), h("div", { key: '6d883c2cfc2aea0abf3b93c9645a4627c70f2e4e', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, h("div", { key: 'da2d92b2700f3584f01489f612dfd0e9d426b6f1', class: cn('text-center pt-[4px] text-[20px]', { 'text-red-600': !!this.errorMessage }) }, (_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.vin), ['error', 'error-loading'].includes(this.state) && (h("div", { key: 'fdc4e5a9351e3580c3bb7714d3ada1ba97da677e', class: "py-4" }, h("div", { key: 'd6f874e928704a0d919c007f1e88260e81501459', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.locale.errors[this.errorMessage] || this.locale.errors.wildCard))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '44c3e07e4020a1d480caefc1b429a73838eb8fbb', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '91997da0337b997fc15da5755d66efec46b38509', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, texts.vehicleSpecification), h("div", { key: '1e83d54b556c8e60c4ef9846c636836557b3416f', class: "h-0 overflow-auto flex-1" }, !((_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.vehicleSpecification) && h("div", { key: '5eb1fee6e6061fba56f415dc28bea5584a9640f3', class: "h-[80px] flex items-center justify-center text-[18px]" }, texts.noData), !!((_c = this.vehicleInformation) === null || _c === void 0 ? void 0 : _c.vehicleSpecification) && (h("table", { key: 'a376e17bd4ace9e5c1de809ad0da3da536bb4ea0', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: '859b13d80f6203285d64596317d4f8b015d4c0ce', class: "top-0 font-bold sticky bg-white" }, h("tr", { key: '9c7fd478ffe867dbc63c661b2a33eccaafefbd74' }, ['model', 'variant', 'katashiki', 'modelYear', 'sfx'].map(title => (h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, texts[title]))))), h("tbody", { key: '3fa98aeda541f947740ef46d512a0ddf25c2a8bf' }, h("tr", { key: 'bdd03c3a08f46f5d38b44e435fc33305f3b7b6d7' }, h("td", { key: '5f36a604990bf71038081fd8945de7bdc24f0066', class: "px-[10px] py-[20px] text-center whitespace-nowrap" }, ((_e = (_d = this === null || this === void 0 ? void 0 : this.vehicleInformation) === null || _d === void 0 ? void 0 : _d.vehicleVariantInfo) === null || _e === void 0 ? void 0 : _e.modelCode) || '...', " ", h("br", { key: 'f08b559ed05bcd0b23ca6c487901af580468402f', class: "my-2" }), ((_g = (_f = this === null || this === void 0 ? void 0 : this.vehicleInformation) === null || _f === void 0 ? void 0 : _f.vehicleSpecification) === null || _g === void 0 ? void 0 : _g.modelDesc) || '...'), h("td", { key: '58835cc186f08ced40ee22698650660678240c5d', class: "px-[10px] py-[20px] text-center whitespace-nowrap" }, ((_j = (_h = this === null || this === void 0 ? void 0 : this.vehicleInformation) === null || _h === void 0 ? void 0 : _h.identifiers) === null || _j === void 0 ? void 0 : _j.variant) || '...', " ", h("br", { key: 'ab2e9c6e77c165b8b9bcc96675967b5ebee1f22b' }), ((_l = (_k = this === null || this === void 0 ? void 0 : this.vehicleInformation) === null || _k === void 0 ? void 0 : _k.vehicleSpecification) === null || _l === void 0 ? void 0 : _l.variantDesc) || '...'), ['identifiers.katashiki', 'vehicleVariantInfo.modelYear', 'vehicleVariantInfo.sfx'].map(infoPath => {
|
|
833
838
|
var _a;
|
|
834
839
|
const [place, field] = infoPath.split('.');
|
|
835
840
|
const cellValue = (_a = this === null || this === void 0 ? void 0 : this.vehicleInformation) === null || _a === void 0 ? void 0 : _a[place][field].toString();
|
|
@@ -1065,6 +1070,7 @@ const WarrantyDetails = class {
|
|
|
1065
1070
|
catch (error) {
|
|
1066
1071
|
if (error && (error === null || error === void 0 ? void 0 : error.name) === 'AbortError')
|
|
1067
1072
|
return;
|
|
1073
|
+
console.error(error);
|
|
1068
1074
|
this.state = 'error';
|
|
1069
1075
|
this.vehicleInformation = null;
|
|
1070
1076
|
this.errorMessage = error.message;
|
|
@@ -1092,7 +1098,7 @@ const WarrantyDetails = class {
|
|
|
1092
1098
|
}
|
|
1093
1099
|
render() {
|
|
1094
1100
|
var _a, _b, _c, _d, _e;
|
|
1095
|
-
return (h(Host, { key: '
|
|
1101
|
+
return (h(Host, { key: 'c5ef9e5c12c299a79cc8e5ab41795f2a82cfd328' }, h("div", { key: 'c269f8934ec54b941bbee7a4846ff426d9da19cd', dir: this.locale.direction, class: "min-h-[100px] warranty" }, h("div", { key: '0bfc48e298bcbbb952bccb009c572c0d2eea84ce' }, h(Loading, { key: 'e8ff8312212ae2a4adc9248133f49afacbd38e48', isLoading: this.state.includes('loading') }), h("div", { key: '03032dc7be0b51a92b9e927d667c209e58abc4eb', class: "transition duration-700", style: { transform: this.state.includes('loading') || this.state === 'idle' ? 'scale(0)' : 'scale(1)', opacity: this.state.includes('loading') ? '0' : '1' } }, (this.showSsc || this.showWarranty) && (h("div", { key: 'da11c7d0aad6113e17a6caabce029f1deb8c195e', style: { color: !!this.errorMessage ? 'red' : 'black' }, class: "warranty-vin" }, (_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.vin)), ['error', 'error-loading'].includes(this.state) && (h("div", { key: 'fd2ce5726df86b13b495fc6f3fe48a9f5bb87486', class: "py-4" }, h(StatusCard, { key: 'b3fd8f89d2742bb25d12b7773e1361c8b65c9a4e', desc: this.locale.errors[this.errorMessage] || this.locale.errors.wildCard, className: "mx-auto reject-card max-w-500" }), ' ')), this.showWarranty && ['data', 'data-loading'].includes(this.state) && (h(CardsContainer, { key: '405411582449ff40db0aeeacffd49b90e7d6e585', locale: this.locale, isAuthorized: (_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.isAuthorized, unInvoicedByBrokerName: this.unInvoicedByBrokerName, warranty: (_c = this.vehicleInformation) === null || _c === void 0 ? void 0 : _c.warranty })), h("div", { key: '64dac3098fdab7b30439ad14f939e10d2b43ebb5', style: Object.assign({}, (this.showRecaptcha ? { height: 'auto', padding: '16px 16px 0px 16px' } : { height: '0px' })), class: "recaptcha-container" }, h("slot", { key: 'f0a25a1ab0ba02c661697a2b986db1f5f60fb012' })), ['data', 'data-loading'].includes(this.state) && this.recaptchaRes && (h("div", { key: '260ba78d40cb35bc7afe8afd246fc0ff93b919b4', class: cn('recaptcha-response', !this.recaptchaRes.hasSSC ? 'success-card' : 'reject-card ') }, this.locale.vehicleLookup.warranty[this.recaptchaRes.message])), this.checkingUnauthorizedSSC && (h("div", { key: 'e071d2810629426872ae35665e637d5c5190fbe8', class: "loading-spinner", style: { marginTop: '20px', flexDirection: 'column' } }, h("div", { key: '3c49a6a0b2fcf56222071faeb372af2ea9107065' }, h("strong", { key: 'f699fa9760ce4485a131b57f37513446531cd563' }, this.locale.vehicleLookup.warranty.checkingTMC)), h("img", { key: '9466f185766ad803779bc0d1f6e0cdd3e177ee96', class: "spin", src: loaderSvg$1 }))), this.showSsc && ['data', 'data-loading'].includes(this.state) && ((_d = this.vehicleInformation) === null || _d === void 0 ? void 0 : _d.ssc) !== null && !!((_e = this.vehicleInformation) === null || _e === void 0 ? void 0 : _e.ssc.length) && (h(SSCTable, { key: 'f42276f6576fabaa984925b023516a4049b4ec37', locale: this.locale, ssc: this.vehicleInformation.ssc })))))));
|
|
1096
1102
|
}
|
|
1097
1103
|
get el() { return getElement(this); }
|
|
1098
1104
|
static get watchers() { return {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-33ae6859.js';
|
|
6
6
|
import { c as cn } from './cn-cc419b94.js';
|
|
7
|
-
import { l as localeSchema, g as getLocaleLanguage } from './get-local-language-
|
|
7
|
+
import { l as localeSchema, g as getLocaleLanguage } from './get-local-language-554f1f34.js';
|
|
8
8
|
import './index.esm-46e0cdad.js';
|
|
9
9
|
|
|
10
10
|
const dynamicRedeemCss = "*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:\"\"}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.block{display:block}.flex{display:flex}.table{display:table}.hidden{display:none}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.border{border-width:1px}.outline{outline-style:solid}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}:host{all:initial!important;display:block}*{box-sizing:content-box;margin:revert;padding:revert}.dynamic-claim-processor{align-items:center;background:#fff;display:flex;flex-direction:row;font-family:Arial;height:100%;justify-content:center;left:0;opacity:0;position:fixed;top:0;transform:translateY(0) scale(110%);transition:.4s;visibility:hidden;width:100%;z-index:999999999999999}.dynamic-claim-processor.active{opacity:1;transform:translateY(0) scale(100%);visibility:visible}.dynamic-claim-processor-wrapper{align-items:center;display:flex;flex:1;flex-direction:column;height:100%;justify-content:space-between;overflow:auto;padding:50px}.dynamic-claim-processor .qr-input{background:none;border:none;border-bottom:1px solid #ddd;color:#424242;font-size:14px;outline:none;padding:7px;text-align:center;width:100%}.dynamic-claim-processor-info-box{background:#fdfdfd;border:1px solid #dcdcdc;border-radius:5px;box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 hsla(0,0%,100%,.1);color:#424242;font-size:14px;margin-top:50px;padding:0;width:100%}.dynamic-claim-processor-info-box-header{background:#f6f6f6;border:1px solid #ededed;padding:7px 0;text-align:center}.dynamic-claim-processor-info-box table{width:100%}.dynamic-claim-processor-info-box table td,.dynamic-claim-processor-info-box table th{border-bottom:1px solid #ededed;padding:5px;text-align:start}.dynamic-claim-processor-progress{align-items:center;display:flex;flex-direction:row;gap:30px;justify-content:space-evenly;margin-bottom:16px;margin-top:10px;width:100%}.dynamic-claim-processor-progress .dynamic-claim-processor-progress-step{background:#f4f4f4;border:1px solid #d4d4d4;border-bottom:5px double #3071a9;border-radius:5px;box-shadow:0 0 4px 2px #eee;color:#3071a9;flex:1;margin-top:0;padding:15px;text-align:center}.lds-ripple{display:inline-block;height:80px;left:50%;left:0;margin-left:12px;position:relative;top:55px;top:0;width:80px}.lds-ripple,.lds-ripple div{box-sizing:border-box}.lds-ripple-loading.active,.lds-ripple.active{opacity:1!important;visibility:visible!important}.lds-ripple div{animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite;border:4px solid #3071a9;border-radius:50%;opacity:1;position:absolute;z-index:10}.lds-ripple div:nth-child(2){animation-delay:-.5s}.loading-wrapper,.scan-invoice-wrapper{transition:.4s}.dynamic-claim-processor-progress-step.processing .scan-invoice-wrapper,.loading-wrapper{opacity:0;transform:scale(70%)}.dynamic-claim-processor-progress-step.processing .loading-wrapper{opacity:1;transform:scale(100%)}@keyframes lds-ripple{0%{height:8px;left:36px;opacity:0;top:36px;width:8px}4.9%{height:8px;left:36px;opacity:0;top:36px;width:8px}5%{height:8px;left:36px;opacity:1;top:36px;width:8px}to{height:80px;left:0;opacity:0;top:0;width:80px}}#dynamic-claim-processor-close-icon{cursor:pointer;height:20px;position:absolute;right:50px;top:20px;transition:.5s;width:20px}#dynamic-claim-processor-close-icon:hover{transform:rotate(180deg) scale(150%)}.admonition-title{background-color:#ff91001a;font-size:13px;font-weight:700;margin:0;padding:10px 5px}.admonition-title:before{background-color:#ff9100;content:\"\";display:inline-block;height:20px;margin-inline-end:5px;-webkit-mask-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M13 14h-2V9h2m0 9h-2v-2h2M1 21h22L12 2z\"/></svg>');vertical-align:sub;width:20px}.admonition{background-color:var(--md-admonition-bg-color);border:.075rem solid #ff9100;border-radius:.2rem;box-shadow:0 .2rem .5rem #0000000d,0 0 .05rem #0000001a;color:var(--md-admonition-fg-color);display:flow-root;margin:15px 0 0;padding:0;page-break-inside:avoid;transition:box-shadow 125ms;width:100%}.cancel-confirmation-box{background:#f8f8f8;border:1px solid #e1e1e1;border-radius:5px;font-weight:700;margin-bottom:10px;padding:10px 25px}.dynamic-claim-processor-progress.disabled{opacity:.6}.warning-ul{padding-inline-start:2.5rem}.static{position:static}.w-full{width:100%}.sticky{position:sticky}.top-0{top:0}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-bottom:.5rem;margin-top:.5rem}.mt-\\[12px\\]{margin-top:12px}.h-0{height:0}.h-\\[40px\\]{height:40px}.h-\\[80px\\]{height:80px}.max-h-\\[70dvh\\]{max-height:70dvh}.min-h-\\[100px\\]{min-height:100px}.w-fit{width:fit-content}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.scale-0{--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[8px\\]{border-radius:8px}.border-b{border-bottom-width:1px}.border-\\[\\#d6d8dc\\]{--tw-border-opacity:1;border-color:rgb(214 216 220/var(--tw-border-opacity,1))}.bg-\\[\\#e1e3e5\\]{--tw-bg-opacity:1;background-color:rgb(225 227 229/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.px-\\[10px\\]{padding-left:10px;padding-right:10px}.px-\\[16px\\]{padding-left:16px;padding-right:16px}.py-4{padding-bottom:1rem;padding-top:1rem}.py-\\[20px\\]{padding-bottom:20px;padding-top:20px}.py-\\[8px\\]{padding-bottom:8px;padding-top:8px}.pt-\\[4px\\]{padding-top:4px}.text-center{text-align:center}.text-\\[18px\\]{font-size:18px}.text-\\[20px\\]{font-size:20px}.font-bold{font-weight:700}.text-\\[\\#383c43\\]{--tw-text-opacity:1;color:rgb(56 60 67/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.reject-card{background-color:#f7d7d8;border-color:#f2aeb5;color:#58151c}.success-card{background-color:#d0e7de;border-color:#a2d0bb;color:#0b3521}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.m-\\[3px\\]{margin:3px}.my-4{margin-bottom:1rem;margin-top:1rem}.ml-1{margin-left:.25rem}.border-separate{border-collapse:separate}.list-disc{list-style-type:disc}.gap-1{gap:.25rem}";
|
|
@@ -6,6 +6,8 @@ import './index-33ae6859.js';
|
|
|
6
6
|
import { c as create$3, a as create$6 } from './index.esm-46e0cdad.js';
|
|
7
7
|
|
|
8
8
|
const errorsSchema = create$3({
|
|
9
|
+
wildCard: create$6().required(),
|
|
10
|
+
noBaseUrl: create$6().required(),
|
|
9
11
|
noServiceAvailable: create$6().required(),
|
|
10
12
|
wrongResponseFormat: create$6().required(),
|
|
11
13
|
});
|
|
@@ -78,15 +80,6 @@ const dynamicRedeemSchema = create$3({
|
|
|
78
80
|
confirmSkipServices: create$6().required(),
|
|
79
81
|
notInvoiced: create$6().required(),
|
|
80
82
|
confirmNotInvoiced: create$6().required(),
|
|
81
|
-
claimAt: create$6().required(),
|
|
82
|
-
redeemingDealer: create$6().required(),
|
|
83
|
-
invoiceNumber: create$6().required(),
|
|
84
|
-
wip: create$6().required(),
|
|
85
|
-
claim: create$6().required(),
|
|
86
|
-
processed: create$6().required(),
|
|
87
|
-
expired: create$6().required(),
|
|
88
|
-
cancelled: create$6().required(),
|
|
89
|
-
pending: create$6().required(),
|
|
90
83
|
});
|
|
91
84
|
|
|
92
85
|
const ServiceHistorySchema = create$3({
|
package/dist/esm/loader.js
CHANGED
|
@@ -9,7 +9,7 @@ import { g as globalScripts } from './app-globals-e6576027.js';
|
|
|
9
9
|
const defineCustomElements = async (win, options) => {
|
|
10
10
|
if (typeof window === 'undefined') return undefined;
|
|
11
11
|
await globalScripts();
|
|
12
|
-
return bootstrapLazy([["vehicle-lookup",[[4,"vehicle-lookup",{"activeElement":[1,"active-element"],"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"language":[1],"blazorErrorStateListener":[1,"blazor-error-state-listener"],"blazorOnLoadingStateChange":[1,"blazor-on-loading-state-change"],"errorStateListener":[16],"loadingStateChanged":[16],"wrapperErrorState":[32],"blazorRef":[32],"setBlazorRef":[64],"fetchVin":[64],"getPageContext":[64]},null,{"wrapperErrorState":["errorListener"],"onLoadingStateChanged":["handleLoadingListenerPropChange"],"blazorOnLoadingStateChange":["handleBlazorLoadingRefChange"]}]]],["general-inquiry-form",[[1,"general-inquiry-form",{"isLoading":[32],"renderControl":[32]}]]],["dead-stock-lookup",[[1,"dead-stock-lookup",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"
|
|
12
|
+
return bootstrapLazy([["vehicle-lookup",[[4,"vehicle-lookup",{"activeElement":[1,"active-element"],"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"language":[1],"blazorErrorStateListener":[1,"blazor-error-state-listener"],"blazorOnLoadingStateChange":[1,"blazor-on-loading-state-change"],"errorStateListener":[16],"loadingStateChanged":[16],"wrapperErrorState":[32],"blazorRef":[32],"setBlazorRef":[64],"fetchVin":[64],"getPageContext":[64]},null,{"wrapperErrorState":["errorListener"],"onLoadingStateChanged":["handleLoadingListenerPropChange"],"blazorOnLoadingStateChange":["handleBlazorLoadingRefChange"]}]]],["general-inquiry-form",[[1,"general-inquiry-form",{"isLoading":[32],"renderControl":[32]}]]],["dead-stock-lookup",[[1,"dead-stock-lookup",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"language":[1],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"errorMessage":[32],"partInformation":[32],"externalPartNumber":[32],"locale":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"language":["changeLanguage"],"state":["loadingListener"]}]]],["distributor-lookup",[[1,"distributor-lookup",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"hiddenFields":[1,"hidden-fields"],"language":[1],"localizationName":[1,"localization-name"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"errorMessage":[32],"partInformation":[32],"externalPartNumber":[32],"locale":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"language":["changeLanguage"],"state":["loadingListener"]}]]],["manufacturer-lookup",[[1,"manufacturer-lookup",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"hiddenFields":[1,"hidden-fields"],"language":[1],"localizationName":[1,"localization-name"],"headerTitle":[1,"header-title"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"errorMessage":[32],"partInformation":[32],"externalPartNumber":[32],"locale":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"language":["changeLanguage"],"state":["loadingListener"]}]]],["form-input",[[0,"form-input",{"name":[1],"label":[1],"class":[1],"isError":[4,"is-error"],"disabled":[4],"labelClass":[1,"label-class"],"errorClass":[1,"error-class"],"errorMessage":[1,"error-message"],"containerClass":[1,"container-class"]}]]],["dynamic-redeem",[[1,"dynamic-redeem",{"vin":[1],"item":[16],"language":[1],"canceledItems":[16],"unInvoicedByBrokerName":[1,"un-invoiced-by-broker-name"],"handleScanner":[16],"handleQrChanges":[16],"loadingStateChange":[16],"locale":[32],"isLoading":[32],"internalVin":[32],"isOpened":[32],"internalItem":[32],"confirmServiceCancellation":[32],"internalCanceledItem":[32],"confirmUnInvoicedTBPVehicles":[32],"quite":[64],"getQrValue":[64]},null,{"language":["changeLanguage"],"isLoading":["onIsLoadingChange"],"canceledItems":["changeInternalCanceledItem"],"unInvoicedByBrokerName":["changeConfirmUnInvoicedTBPVehicles"],"vin":["changeInternalVin"],"item":["changeInternalItem"]}]]],["dynamic-claim_6",[[1,"dynamic-claim",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"language":[1],"loadingStateChange":[16],"loadedResponse":[16],"locale":[32],"isIdle":[32],"popupClasses":[32],"isLoading":[32],"externalVin":[32],"errorMessage":[32],"activePopupIndex":[32],"vehicleInformation":[32],"setMockData":[64],"setData":[64],"fetchData":[64],"completeClaim":[64]},null,{"language":["changeLanguage"],"isLoading":["onLoadingChange"],"vehicleInformation":["resetProgressBar"],"popupClasses":["windowScrollListener"]}],[1,"paint-thickness",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"language":[1],"loadingStateChange":[16],"loadedResponse":[16],"locale":[32],"state":[32],"externalVin":[32],"expandedImage":[32],"errorMessage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"language":["changeLanguage"],"state":["loadingListener"]}],[1,"service-history",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"language":[1],"loadingStateChange":[16],"loadedResponse":[16],"locale":[32],"state":[32],"externalVin":[32],"errorMessage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"language":["changeLanguage"],"state":["loadingListener"]}],[1,"vehicle-accessories",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"language":[1],"loadingStateChange":[16],"loadedResponse":[16],"locale":[32],"state":[32],"externalVin":[32],"expandedImage":[32],"errorMessage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"language":["changeLanguage"],"state":["loadingListener"]}],[1,"vehicle-specification",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"language":[1],"loadingStateChange":[16],"loadedResponse":[16],"locale":[32],"state":[32],"externalVin":[32],"errorMessage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"language":["changeLanguage"],"state":["loadingListener"]}],[1,"warranty-details",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"showSsc":[4,"show-ssc"],"queryString":[1,"query-string"],"recaptchaKey":[1,"recaptcha-key"],"language":[1],"showWarranty":[4,"show-warranty"],"unauthorizedSscLookupBaseUrl":[1,"unauthorized-ssc-lookup-base-url"],"unauthorizedSscLookupQueryString":[1,"unauthorized-ssc-lookup-query-string"],"cityId":[1,"city-id"],"cityIntegrationId":[1,"city-integration-id"],"companyId":[1,"company-id"],"companyIntegrationId":[1,"company-integration-id"],"companyBranchId":[1,"company-branch-id"],"companyBranchIntegrationId":[1,"company-branch-integration-id"],"userId":[1,"user-id"],"brandIntegrationId":[1,"brand-integration-id"],"customerName":[1,"customer-name"],"customerPhone":[1,"customer-phone"],"customerEmail":[1,"customer-email"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalVin":[32],"showRecaptcha":[32],"errorMessage":[32],"unInvoicedByBrokerName":[32],"vehicleInformation":[32],"checkingUnauthorizedSSC":[32],"recaptchaRes":[32],"headers":[32],"locale":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"language":["changeLanguage"],"state":["loadingListener"]}]]]], options);
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export { defineCustomElements };
|
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
5
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-33ae6859.js';
|
|
6
|
-
import { L as Loading } from './Loading-f4d666ee.js';
|
|
7
6
|
import { c as cn } from './cn-cc419b94.js';
|
|
8
|
-
import { g as getPartInformation } from './partInformation-f40b1fe6.js';
|
|
9
7
|
import { c as capitalize } from './general-b630a7db.js';
|
|
8
|
+
import { l as localeSchema, g as getLocaleLanguage } from './get-local-language-554f1f34.js';
|
|
9
|
+
import { L as Loading } from './Loading-f4d666ee.js';
|
|
10
|
+
import { g as getPartInformation } from './partInformation-ba1470e1.js';
|
|
11
|
+
import './index.esm-46e0cdad.js';
|
|
10
12
|
|
|
11
13
|
const manufacturerLookupCss = "*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:\"\"}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}:host{all:initial!important;display:block}*{font-family:Arial}.static{position:static}.relative{position:relative}.mx-auto{margin-left:auto;margin-right:auto}.mt-\\[12px\\]{margin-top:12px}.flex{display:flex}.grid{display:grid}.h-\\[40px\\]{height:40px}.min-h-\\[100px\\]{min-height:100px}.w-fit{width:fit-content}.w-full{width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.scale-0{--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-\\[15px\\]{gap:15px}.gap-\\[50px\\]{gap:50px}.overflow-hidden{overflow:hidden}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[8px\\]{border-radius:8px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-\\[\\#d6d8dc\\]{--tw-border-opacity:1;border-color:rgb(214 216 220/var(--tw-border-opacity,1))}.border-b-\\[gray\\]{--tw-border-opacity:1;border-bottom-color:rgb(128 128 128/var(--tw-border-opacity,1))}.bg-\\[\\#e1e3e5\\]{--tw-bg-opacity:1;background-color:rgb(225 227 229/var(--tw-bg-opacity,1))}.px-0{padding-left:0;padding-right:0}.px-\\[16px\\]{padding-left:16px;padding-right:16px}.px-\\[30px\\]{padding-left:30px;padding-right:30px}.py-\\[10px\\]{padding-bottom:10px;padding-top:10px}.py-\\[16px\\]{padding-bottom:16px;padding-top:16px}.py-\\[8px\\]{padding-bottom:8px;padding-top:8px}.text-center{text-align:center}.text-\\[18px\\]{font-size:18px}.text-\\[20px\\]{font-size:20px}.capitalize{text-transform:capitalize}.text-\\[\\#383c43\\]{--tw-text-opacity:1;color:rgb(56 60 67/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.reject-card{background-color:#f7d7d8;border-color:#f2aeb5;color:#58151c}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.z-50{z-index:50}.size-\\[40px\\]{height:40px;width:40px}.size-full{height:100%;width:100%}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin-2s{animation:spin 2s linear infinite}.duration-100{transition-duration:.1s}";
|
|
12
14
|
const ManufacturerLookupStyle0 = manufacturerLookupCss;
|
|
@@ -19,14 +21,22 @@ const ManufacturerLookup = class {
|
|
|
19
21
|
this.isDev = false;
|
|
20
22
|
this.queryString = '';
|
|
21
23
|
this.hiddenFields = '';
|
|
24
|
+
this.language = 'en';
|
|
22
25
|
this.localizationName = '';
|
|
23
26
|
this.headerTitle = 'Manufacturer';
|
|
24
27
|
this.loadingStateChange = undefined;
|
|
25
28
|
this.loadedResponse = undefined;
|
|
26
29
|
this.state = 'idle';
|
|
27
|
-
this.externalPartNumber = null;
|
|
28
30
|
this.errorMessage = null;
|
|
29
31
|
this.partInformation = undefined;
|
|
32
|
+
this.externalPartNumber = null;
|
|
33
|
+
this.locale = localeSchema.getDefault();
|
|
34
|
+
}
|
|
35
|
+
async componentWillLoad() {
|
|
36
|
+
await this.changeLanguage(this.language);
|
|
37
|
+
}
|
|
38
|
+
async changeLanguage(newLanguage) {
|
|
39
|
+
this.locale = await getLocaleLanguage(newLanguage);
|
|
30
40
|
}
|
|
31
41
|
handleSettingData(response) {
|
|
32
42
|
this.partInformation = response;
|
|
@@ -66,6 +76,7 @@ const ManufacturerLookup = class {
|
|
|
66
76
|
catch (error) {
|
|
67
77
|
if (error && (error === null || error === void 0 ? void 0 : error.name) === 'AbortError')
|
|
68
78
|
return;
|
|
79
|
+
console.error(error);
|
|
69
80
|
this.state = 'error';
|
|
70
81
|
this.partInformation = null;
|
|
71
82
|
this.errorMessage = error.message;
|
|
@@ -105,10 +116,11 @@ const ManufacturerLookup = class {
|
|
|
105
116
|
]
|
|
106
117
|
: [];
|
|
107
118
|
const displayedManufacturerData = manufacturerData.filter(part => !hiddenFields.includes(part.key));
|
|
108
|
-
return (h(Host, { key: '
|
|
119
|
+
return (h(Host, { key: '240952c91ef587f359edb5a4d1a56bf460c73802' }, h("div", { key: '8e59a7dfcc2f4b04d113c0a865d35e679a68d9ea', dir: this.locale.direction, class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: '4996dad1f8281e707cb7bfbc4dbb63b12504e48e' }, h(Loading, { key: 'b22faa9d2e6b31a8225a03725ffe101200c0dd0a', isLoading: this.state.includes('loading') }), h("div", { key: '499e795f1721619a42a316d0400ff02a218f6958', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, ['error', 'error-loading'].includes(this.state) && (h("div", { key: 'ac7386925ffff92a1c8e3936ff0c817046c1968d', class: "py-[16px]" }, h("div", { key: '90510c25179ef9d852b6e5f3ccc641c0bf7ebd30', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.locale.errors[this.errorMessage] || this.locale.errors.wildCard))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '02d9d4409ec8bb3cab30d91bf42789c59a11bb99' }, h("div", { key: '52e64a6ae5be9a057f823aa7390392d9bae84d5b', class: "flex mt-[12px] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: 'f9f2ec608d422b7ad8c69b5bcb3ce733aaf42e83', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, this.headerTitle), h("div", { key: '71fab2926dffdf7272544f82522fcec45cf2139a', class: "px-[30px] py-[10px] flex flex-col gap-[15px]" }, h("div", { key: 'ad48f4d4df7207f04b03cb8c7c10445246852230', class: "grid grid-cols-3 gap-[50px]" }, displayedManufacturerData.map(({ label, value, key }) => (h("div", { key: key, class: "flex flex-col flex-1" }, h("strong", { class: "py-[10px] px-0 border-b-[gray] border-b" }, label), h("div", { class: "py-[10px] px-0" }, value))))))))))))));
|
|
109
120
|
}
|
|
110
121
|
get el() { return getElement(this); }
|
|
111
122
|
static get watchers() { return {
|
|
123
|
+
"language": ["changeLanguage"],
|
|
112
124
|
"state": ["loadingListener"]
|
|
113
125
|
}; }
|
|
114
126
|
};
|
|
@@ -22,7 +22,7 @@ const getPartInformation = async (component, generalProps, headers = {}) => {
|
|
|
22
22
|
}
|
|
23
23
|
else {
|
|
24
24
|
if (!baseUrl)
|
|
25
|
-
throw new Error('
|
|
25
|
+
throw new Error('noBaseUrl');
|
|
26
26
|
const response = await fetch(`${baseUrl}${partNumber}?${queryString}`, { signal: abortController.signal, headers: headers });
|
|
27
27
|
const newData = (await response.json());
|
|
28
28
|
return handleResult(newData);
|
|
@@ -20,5 +20,5 @@ var patchBrowser = () => {
|
|
|
20
20
|
|
|
21
21
|
patchBrowser().then(async (options) => {
|
|
22
22
|
await globalScripts();
|
|
23
|
-
return bootstrapLazy([["vehicle-lookup",[[4,"vehicle-lookup",{"activeElement":[1,"active-element"],"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"language":[1],"blazorErrorStateListener":[1,"blazor-error-state-listener"],"blazorOnLoadingStateChange":[1,"blazor-on-loading-state-change"],"errorStateListener":[16],"loadingStateChanged":[16],"wrapperErrorState":[32],"blazorRef":[32],"setBlazorRef":[64],"fetchVin":[64],"getPageContext":[64]},null,{"wrapperErrorState":["errorListener"],"onLoadingStateChanged":["handleLoadingListenerPropChange"],"blazorOnLoadingStateChange":["handleBlazorLoadingRefChange"]}]]],["general-inquiry-form",[[1,"general-inquiry-form",{"isLoading":[32],"renderControl":[32]}]]],["dead-stock-lookup",[[1,"dead-stock-lookup",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"
|
|
23
|
+
return bootstrapLazy([["vehicle-lookup",[[4,"vehicle-lookup",{"activeElement":[1,"active-element"],"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"language":[1],"blazorErrorStateListener":[1,"blazor-error-state-listener"],"blazorOnLoadingStateChange":[1,"blazor-on-loading-state-change"],"errorStateListener":[16],"loadingStateChanged":[16],"wrapperErrorState":[32],"blazorRef":[32],"setBlazorRef":[64],"fetchVin":[64],"getPageContext":[64]},null,{"wrapperErrorState":["errorListener"],"onLoadingStateChanged":["handleLoadingListenerPropChange"],"blazorOnLoadingStateChange":["handleBlazorLoadingRefChange"]}]]],["general-inquiry-form",[[1,"general-inquiry-form",{"isLoading":[32],"renderControl":[32]}]]],["dead-stock-lookup",[[1,"dead-stock-lookup",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"language":[1],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"errorMessage":[32],"partInformation":[32],"externalPartNumber":[32],"locale":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"language":["changeLanguage"],"state":["loadingListener"]}]]],["distributor-lookup",[[1,"distributor-lookup",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"hiddenFields":[1,"hidden-fields"],"language":[1],"localizationName":[1,"localization-name"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"errorMessage":[32],"partInformation":[32],"externalPartNumber":[32],"locale":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"language":["changeLanguage"],"state":["loadingListener"]}]]],["manufacturer-lookup",[[1,"manufacturer-lookup",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"hiddenFields":[1,"hidden-fields"],"language":[1],"localizationName":[1,"localization-name"],"headerTitle":[1,"header-title"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"errorMessage":[32],"partInformation":[32],"externalPartNumber":[32],"locale":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"language":["changeLanguage"],"state":["loadingListener"]}]]],["form-input",[[0,"form-input",{"name":[1],"label":[1],"class":[1],"isError":[4,"is-error"],"disabled":[4],"labelClass":[1,"label-class"],"errorClass":[1,"error-class"],"errorMessage":[1,"error-message"],"containerClass":[1,"container-class"]}]]],["dynamic-redeem",[[1,"dynamic-redeem",{"vin":[1],"item":[16],"language":[1],"canceledItems":[16],"unInvoicedByBrokerName":[1,"un-invoiced-by-broker-name"],"handleScanner":[16],"handleQrChanges":[16],"loadingStateChange":[16],"locale":[32],"isLoading":[32],"internalVin":[32],"isOpened":[32],"internalItem":[32],"confirmServiceCancellation":[32],"internalCanceledItem":[32],"confirmUnInvoicedTBPVehicles":[32],"quite":[64],"getQrValue":[64]},null,{"language":["changeLanguage"],"isLoading":["onIsLoadingChange"],"canceledItems":["changeInternalCanceledItem"],"unInvoicedByBrokerName":["changeConfirmUnInvoicedTBPVehicles"],"vin":["changeInternalVin"],"item":["changeInternalItem"]}]]],["dynamic-claim_6",[[1,"dynamic-claim",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"language":[1],"loadingStateChange":[16],"loadedResponse":[16],"locale":[32],"isIdle":[32],"popupClasses":[32],"isLoading":[32],"externalVin":[32],"errorMessage":[32],"activePopupIndex":[32],"vehicleInformation":[32],"setMockData":[64],"setData":[64],"fetchData":[64],"completeClaim":[64]},null,{"language":["changeLanguage"],"isLoading":["onLoadingChange"],"vehicleInformation":["resetProgressBar"],"popupClasses":["windowScrollListener"]}],[1,"paint-thickness",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"language":[1],"loadingStateChange":[16],"loadedResponse":[16],"locale":[32],"state":[32],"externalVin":[32],"expandedImage":[32],"errorMessage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"language":["changeLanguage"],"state":["loadingListener"]}],[1,"service-history",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"language":[1],"loadingStateChange":[16],"loadedResponse":[16],"locale":[32],"state":[32],"externalVin":[32],"errorMessage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"language":["changeLanguage"],"state":["loadingListener"]}],[1,"vehicle-accessories",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"language":[1],"loadingStateChange":[16],"loadedResponse":[16],"locale":[32],"state":[32],"externalVin":[32],"expandedImage":[32],"errorMessage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"language":["changeLanguage"],"state":["loadingListener"]}],[1,"vehicle-specification",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"language":[1],"loadingStateChange":[16],"loadedResponse":[16],"locale":[32],"state":[32],"externalVin":[32],"errorMessage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"language":["changeLanguage"],"state":["loadingListener"]}],[1,"warranty-details",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"showSsc":[4,"show-ssc"],"queryString":[1,"query-string"],"recaptchaKey":[1,"recaptcha-key"],"language":[1],"showWarranty":[4,"show-warranty"],"unauthorizedSscLookupBaseUrl":[1,"unauthorized-ssc-lookup-base-url"],"unauthorizedSscLookupQueryString":[1,"unauthorized-ssc-lookup-query-string"],"cityId":[1,"city-id"],"cityIntegrationId":[1,"city-integration-id"],"companyId":[1,"company-id"],"companyIntegrationId":[1,"company-integration-id"],"companyBranchId":[1,"company-branch-id"],"companyBranchIntegrationId":[1,"company-branch-integration-id"],"userId":[1,"user-id"],"brandIntegrationId":[1,"brand-integration-id"],"customerName":[1,"customer-name"],"customerPhone":[1,"customer-phone"],"customerEmail":[1,"customer-email"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalVin":[32],"showRecaptcha":[32],"errorMessage":[32],"unInvoicedByBrokerName":[32],"vehicleInformation":[32],"checkingUnauthorizedSSC":[32],"recaptchaRes":[32],"headers":[32],"locale":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"language":["changeLanguage"],"state":["loadingListener"]}]]]], options);
|
|
24
24
|
});
|
package/dist/locales/ar.json
CHANGED
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
"direction": "rtl",
|
|
4
4
|
"language": "arabic",
|
|
5
5
|
"errors": {
|
|
6
|
+
"noBaseUrl": "من فضلك قدم base-url",
|
|
6
7
|
"wrongResponseFormat": "تنسيق الرد خاطئ",
|
|
7
|
-
"noServiceAvailable": "لا توجد خدمة متاحة"
|
|
8
|
+
"noServiceAvailable": "لا توجد خدمة متاحة",
|
|
9
|
+
"wildCard": "حدث خطأ غير متوقع، يرجى المحاولة مرة أخرى لاحقًا."
|
|
8
10
|
},
|
|
9
11
|
"vehicleLookup": {
|
|
10
12
|
"warranty": {
|
|
@@ -89,17 +91,7 @@
|
|
|
89
91
|
"skipServicesWarning": "الخدمات التالية لا تزال 'معلقة' وسيتم وضع علامة 'ملغاة' عليها.",
|
|
90
92
|
"confirmSkipServices": "تأكيد وضع علامة 'ملغاة' على الخدمات المذكورة أعلاه.",
|
|
91
93
|
"notInvoiced": "لم يتم إصدار فاتورة لهذه المركبة بعد من قبل شريك الأعمال الموثوق به التالي:",
|
|
92
|
-
"confirmNotInvoiced": "تأكيد المطالبة دون فاتورة شريك الأعمال الموثوق به"
|
|
93
|
-
|
|
94
|
-
"claimAt": "Claimed At",
|
|
95
|
-
"redeemingDealer": "Redeeming Dealer",
|
|
96
|
-
"invoiceNumber": "Invoice Number",
|
|
97
|
-
"wip": "WIP",
|
|
98
|
-
"claim": "Claim",
|
|
99
|
-
"processed": "Processed",
|
|
100
|
-
"expired": "Expired",
|
|
101
|
-
"cancelled": "Cancelled",
|
|
102
|
-
"pending": "Pending"
|
|
94
|
+
"confirmNotInvoiced": "تأكيد المطالبة دون فاتورة شريك الأعمال الموثوق به"
|
|
103
95
|
}
|
|
104
96
|
}
|
|
105
97
|
}
|
package/dist/locales/en.json
CHANGED
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
"direction": "ltr",
|
|
4
4
|
"language": "english",
|
|
5
5
|
"errors": {
|
|
6
|
+
"noBaseUrl": "Please provide base-url",
|
|
7
|
+
"noServiceAvailable": "No Service Available",
|
|
6
8
|
"wrongResponseFormat": "Wrong response format",
|
|
7
|
-
"
|
|
9
|
+
"wildCard": "An unexpected error occurred please try again later."
|
|
8
10
|
},
|
|
9
11
|
"vehicleLookup": {
|
|
10
12
|
"warranty": {
|
|
@@ -89,17 +91,7 @@
|
|
|
89
91
|
"skipServicesWarning": "the following Services Are still 'Pending' and they will be marked as 'Cancelled'.",
|
|
90
92
|
"confirmSkipServices": "Confirm Marking the above services as 'Cancelled'.",
|
|
91
93
|
"notInvoiced": "This Vehicle is not yet invoiced by the following Trusted Business Partner:",
|
|
92
|
-
"confirmNotInvoiced": "Confirm Claiming without Trusted Business Partner Invoice"
|
|
93
|
-
|
|
94
|
-
"claimAt": "Claimed At",
|
|
95
|
-
"redeemingDealer": "Redeeming Dealer",
|
|
96
|
-
"invoiceNumber": "Invoice Number",
|
|
97
|
-
"wip": "WIP",
|
|
98
|
-
"claim": "Claim",
|
|
99
|
-
"processed": "Processed",
|
|
100
|
-
"expired": "Expired",
|
|
101
|
-
"cancelled": "Cancelled",
|
|
102
|
-
"pending": "Pending"
|
|
94
|
+
"confirmNotInvoiced": "Confirm Claiming without Trusted Business Partner Invoice"
|
|
103
95
|
}
|
|
104
96
|
}
|
|
105
97
|
}
|
package/dist/locales/ku.json
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
"direction": "rtl",
|
|
4
4
|
"language": "kurdish",
|
|
5
5
|
"errors": {
|
|
6
|
+
"wildCard": "کێشەیەکی چاوەڕواننەکراو ڕویدا تکایە دواتر هەوڵبدەوە.",
|
|
7
|
+
"noBaseUrl": "تکایە base-url دابین بکە",
|
|
6
8
|
"wrongResponseFormat": "فۆرماتی وەڵامدانەوە هەڵەیە",
|
|
7
9
|
"noServiceAvailable": "هیچ خزمەتگوزارییەک بەردەست نییە"
|
|
8
10
|
},
|
|
@@ -12,7 +14,7 @@
|
|
|
12
14
|
"unauthorized": "بێ مۆڵەت",
|
|
13
15
|
"activeWarranty": "گەرەنتی چالاکی هەیە",
|
|
14
16
|
"notActiveWarranty": "گەرەنتی چالاکی نییە",
|
|
15
|
-
"notInvoiced": "گەرەنتی چالاک نییە چونکە ئەم ئۆتۆمبێلە لەلایەن ئەم هاوبەشە بازرگانییە متمانەپێکراوەی خوارەوە
|
|
17
|
+
"notInvoiced": "گەرەنتی چالاک نییە چونکە ئەم ئۆتۆمبێلە لەلایەن ئەم هاوبەشە بازرگانییە متمانەپێکراوەی خوارەوە فاتورەی بۆ نەکراوە: ",
|
|
16
18
|
"from": "لە",
|
|
17
19
|
"to": "بۆ",
|
|
18
20
|
"pendingSSC": "ئەم ئۆتۆمبێلە هەڵمەتێکی خزمەتگوزاری تایبەتی چاوەڕوانکراوی هەیە",
|
|
@@ -89,17 +91,7 @@
|
|
|
89
91
|
"skipServicesWarning": "ئەم خزمەتگوزاریانەی خوارەوە هێشتا 'هەڵپەسێردراون' و بە 'هەڵوەشاوە' نیشانە دەکرێن.",
|
|
90
92
|
"confirmSkipServices": "پشتڕاست بکەرەوە نیشانەکردنی خزمەتگوزارییەکانی سەرەوە وەک 'هەڵوەشاوە'.",
|
|
91
93
|
"notInvoiced": "ئەم ئۆتۆمبێلە هێشتا لەلایەن ئەم هاوبەشە بازرگانییە متمانەپێکراوەی خوارەوە فاتورەی بۆ نەکراوە:",
|
|
92
|
-
"confirmNotInvoiced": "داواکاری پشتڕاست بکەرەوە بەبێ فاتورەی هاوبەشی بازرگانی متمانەپێکراو"
|
|
93
|
-
|
|
94
|
-
"claimAt": "Claimed At",
|
|
95
|
-
"redeemingDealer": "Redeeming Dealer",
|
|
96
|
-
"invoiceNumber": "Invoice Number",
|
|
97
|
-
"wip": "WIP",
|
|
98
|
-
"claim": "Claim",
|
|
99
|
-
"processed": "Processed",
|
|
100
|
-
"expired": "Expired",
|
|
101
|
-
"cancelled": "Cancelled",
|
|
102
|
-
"pending": "Pending"
|
|
94
|
+
"confirmNotInvoiced": "داواکاری پشتڕاست بکەرەوە بەبێ فاتورەی هاوبەشی بازرگانی متمانەپێکراو"
|
|
103
95
|
}
|
|
104
96
|
}
|
|
105
97
|
}
|