adp-web-components 0.0.63 → 0.0.65
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/package.json +1 -1
- package/dist/cjs/app-globals-4aa8f46f.js +0 -46
- package/dist/cjs/cn-f559f9e5.js +0 -2588
- package/dist/cjs/contact-us-form.cjs.entry.js +0 -209
- package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +0 -445
- package/dist/cjs/dynamic-claim_6.cjs.entry.js +0 -1154
- package/dist/cjs/dynamic-redeem.cjs.entry.js +0 -156
- package/dist/cjs/form-dialog_8.cjs.entry.js +0 -503
- package/dist/cjs/get-local-language-18a7ccf5.js +0 -2380
- package/dist/cjs/index-603d8f32.js +0 -1610
- package/dist/cjs/index.cjs.js +0 -6
- package/dist/cjs/loader-baf2418b.js +0 -9
- package/dist/cjs/loader.cjs.js +0 -19
- package/dist/cjs/loading-spinner.cjs.entry.js +0 -27
- package/dist/cjs/part-lookup.cjs.entry.js +0 -129
- package/dist/cjs/service-booking-form.cjs.entry.js +0 -209
- package/dist/cjs/shift-components.cjs.js +0 -29
- package/dist/cjs/urls-9077b31c.js +0 -4874
- package/dist/cjs/vehicle-lookup.cjs.entry.js +0 -202
- package/dist/collection/collection-manifest.json +0 -35
- package/dist/collection/components/components/loading-spinner.css +0 -1
- package/dist/collection/components/components/loading-spinner.js +0 -47
- package/dist/collection/components/form-elements/form-dialog.css +0 -1
- package/dist/collection/components/form-elements/form-dialog.js +0 -137
- package/dist/collection/components/form-elements/form-input.css +0 -1
- package/dist/collection/components/form-elements/form-input.js +0 -323
- package/dist/collection/components/form-elements/form-select.css +0 -1
- package/dist/collection/components/form-elements/form-select.js +0 -400
- package/dist/collection/components/form-elements/form-shadow-input.css +0 -1
- package/dist/collection/components/form-elements/form-shadow-input.js +0 -100
- package/dist/collection/components/form-elements/form-structure-error.css +0 -1
- package/dist/collection/components/form-elements/form-structure-error.js +0 -72
- package/dist/collection/components/form-elements/form-structure.css +0 -1
- package/dist/collection/components/form-elements/form-structure.js +0 -269
- package/dist/collection/components/form-elements/form-submit.css +0 -1
- package/dist/collection/components/form-elements/form-submit.js +0 -140
- package/dist/collection/components/form-elements/form-text-area.css +0 -1
- package/dist/collection/components/form-elements/form-text-area.js +0 -264
- package/dist/collection/components/forms/contact-us/element-mapper.js +0 -87
- package/dist/collection/components/forms/contact-us/form.css +0 -1
- package/dist/collection/components/forms/contact-us/validations.js +0 -19
- package/dist/collection/components/forms/contact-us-form.js +0 -280
- package/dist/collection/components/forms/service-booking/element-mapper.js +0 -87
- package/dist/collection/components/forms/service-booking/form.css +0 -1
- package/dist/collection/components/forms/service-booking/validations.js +0 -19
- package/dist/collection/components/forms/service-booking-form.js +0 -280
- package/dist/collection/components/part-lookup/dead-stock-lookup.css +0 -1
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +0 -405
- package/dist/collection/components/part-lookup/distributor-lookup.css +0 -1
- package/dist/collection/components/part-lookup/distributor-lookup.js +0 -470
- package/dist/collection/components/part-lookup/manufacturer-lookup.css +0 -1
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +0 -468
- package/dist/collection/components/part-lookup/part-lookup.css +0 -1
- package/dist/collection/components/part-lookup/part-lookup.js +0 -376
- package/dist/collection/components/vehicle-lookup/assets/cancelled.svg +0 -8
- package/dist/collection/components/vehicle-lookup/assets/check.svg +0 -4
- package/dist/collection/components/vehicle-lookup/assets/expired.svg +0 -9
- package/dist/collection/components/vehicle-lookup/assets/loader.svg +0 -11
- package/dist/collection/components/vehicle-lookup/assets/pending.svg +0 -9
- package/dist/collection/components/vehicle-lookup/assets/processed.svg +0 -9
- package/dist/collection/components/vehicle-lookup/assets/x-mark.svg +0 -4
- package/dist/collection/components/vehicle-lookup/components/CardsContainer.js +0 -10
- package/dist/collection/components/vehicle-lookup/components/Loading.js +0 -10
- package/dist/collection/components/vehicle-lookup/components/SSCTable.js +0 -16
- package/dist/collection/components/vehicle-lookup/components/StatusCard.js +0 -11
- package/dist/collection/components/vehicle-lookup/dynamic-claim.css +0 -1
- package/dist/collection/components/vehicle-lookup/dynamic-claim.js +0 -625
- package/dist/collection/components/vehicle-lookup/dynamic-redeem.css +0 -1
- package/dist/collection/components/vehicle-lookup/dynamic-redeem.js +0 -373
- package/dist/collection/components/vehicle-lookup/paint-thickness.css +0 -1
- package/dist/collection/components/vehicle-lookup/paint-thickness.js +0 -410
- package/dist/collection/components/vehicle-lookup/service-history.css +0 -1
- package/dist/collection/components/vehicle-lookup/service-history.js +0 -393
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +0 -1
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +0 -414
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +0 -1
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +0 -405
- package/dist/collection/components/vehicle-lookup/vehicle-specification.css +0 -1
- package/dist/collection/components/vehicle-lookup/vehicle-specification.js +0 -389
- package/dist/collection/components/vehicle-lookup/warranty-details.css +0 -1
- package/dist/collection/components/vehicle-lookup/warranty-details.js +0 -780
- package/dist/collection/global/api/partInformation.js +0 -32
- package/dist/collection/global/api/urls.js +0 -6
- package/dist/collection/global/api/vehicleInformation.js +0 -48
- package/dist/collection/global/assets/eye.svg +0 -5
- package/dist/collection/global/assets/loader.svg +0 -11
- package/dist/collection/global/assets/white-loader.svg +0 -11
- package/dist/collection/global/lib/cn.js +0 -9
- package/dist/collection/global/lib/form-hook.js +0 -162
- package/dist/collection/global/lib/general.js +0 -9
- package/dist/collection/global/lib/get-local-language.js +0 -20
- package/dist/collection/global/lib/image-expansion.js +0 -69
- package/dist/collection/global/lib/middleware.js +0 -39
- package/dist/collection/global/lib/recaptcha.js +0 -25
- package/dist/collection/global/lib/utils.js +0 -7
- package/dist/collection/global/lib/validate-form-structure.js +0 -47
- package/dist/collection/global/lib/validate-vin.js +0 -62
- package/dist/collection/global/types/components.js +0 -1
- package/dist/collection/global/types/forms.js +0 -1
- package/dist/collection/global/types/general.js +0 -1
- package/dist/collection/global/types/locales/error-schema.js +0 -17
- package/dist/collection/global/types/locales/forms/contact-us-schema.js +0 -24
- package/dist/collection/global/types/locales/forms/index.js +0 -11
- package/dist/collection/global/types/locales/general.js +0 -11
- package/dist/collection/global/types/locales/index.js +0 -33
- package/dist/collection/global/types/locales/inquiryTypes.js +0 -15
- package/dist/collection/global/types/locales/part-lookup/dead-stock-schema.js +0 -10
- package/dist/collection/global/types/locales/part-lookup/distributor-schema.js +0 -21
- package/dist/collection/global/types/locales/part-lookup/index.js +0 -13
- package/dist/collection/global/types/locales/part-lookup/manufacturer-schema.js +0 -22
- package/dist/collection/global/types/locales/vehicle-lookup/accessories-schema.js +0 -13
- package/dist/collection/global/types/locales/vehicle-lookup/dynamic-claim-schema.js +0 -21
- package/dist/collection/global/types/locales/vehicle-lookup/dynamic-redeem-schema.js +0 -19
- package/dist/collection/global/types/locales/vehicle-lookup/index.js +0 -21
- package/dist/collection/global/types/locales/vehicle-lookup/paint-thickness-schema.js +0 -14
- package/dist/collection/global/types/locales/vehicle-lookup/service-history-schema.js +0 -15
- package/dist/collection/global/types/locales/vehicle-lookup/specification-schema.js +0 -14
- package/dist/collection/global/types/locales/vehicle-lookup/warranty-schema.js +0 -23
- package/dist/collection/global/types/part-information.js +0 -1
- package/dist/collection/global/types/vehicle-information.js +0 -5
- package/dist/collection/index.js +0 -1
- package/dist/collection/templates/part-lookup/mock-data.js +0 -199
- package/dist/collection/templates/vehicle-lookup/mock-data.js +0 -4146
- package/dist/collection/templates/vehicle-lookup/vehicle-lookup.js +0 -285
- package/dist/collection/templates/vehicle-lookup/warranty-mock-data.js +0 -3000
- package/dist/components/contact-us-form.d.ts +0 -11
- package/dist/components/contact-us-form.js +0 -5
- package/dist/components/dead-stock-lookup.d.ts +0 -11
- package/dist/components/dead-stock-lookup.js +0 -5
- package/dist/components/distributor-lookup.d.ts +0 -11
- package/dist/components/distributor-lookup.js +0 -5
- package/dist/components/dynamic-claim.d.ts +0 -11
- package/dist/components/dynamic-claim.js +0 -5
- package/dist/components/dynamic-redeem.d.ts +0 -11
- package/dist/components/dynamic-redeem.js +0 -5
- package/dist/components/form-dialog.d.ts +0 -11
- package/dist/components/form-dialog.js +0 -5
- package/dist/components/form-input.d.ts +0 -11
- package/dist/components/form-input.js +0 -5
- package/dist/components/form-select.d.ts +0 -11
- package/dist/components/form-select.js +0 -5
- package/dist/components/form-shadow-input.d.ts +0 -11
- package/dist/components/form-shadow-input.js +0 -5
- package/dist/components/form-structure-error.d.ts +0 -11
- package/dist/components/form-structure-error.js +0 -5
- package/dist/components/form-structure.d.ts +0 -11
- package/dist/components/form-structure.js +0 -5
- package/dist/components/form-submit.d.ts +0 -11
- package/dist/components/form-submit.js +0 -5
- package/dist/components/form-text-area.d.ts +0 -11
- package/dist/components/form-text-area.js +0 -5
- package/dist/components/index.d.ts +0 -33
- package/dist/components/index.js +0 -5
- package/dist/components/loading-spinner.d.ts +0 -11
- package/dist/components/loading-spinner.js +0 -5
- package/dist/components/manufacturer-lookup.d.ts +0 -11
- package/dist/components/manufacturer-lookup.js +0 -5
- package/dist/components/p-0470fc51.js +0 -5
- package/dist/components/p-0cdfba30.js +0 -5
- package/dist/components/p-389eed80.js +0 -5
- package/dist/components/p-478117f0.js +0 -5
- package/dist/components/p-59e10e25.js +0 -5
- package/dist/components/p-69d1c33e.js +0 -5
- package/dist/components/p-6ec80da4.js +0 -5
- package/dist/components/p-6f732895.js +0 -5
- package/dist/components/p-75476014.js +0 -5
- package/dist/components/p-8b1d90d7.js +0 -5
- package/dist/components/p-8fa24168.js +0 -5
- package/dist/components/p-91129e05.js +0 -5
- package/dist/components/p-932ff922.js +0 -5
- package/dist/components/p-98d9e7ab.js +0 -5
- package/dist/components/p-a21e2e2e.js +0 -5
- package/dist/components/p-a793dc44.js +0 -5
- package/dist/components/p-aa673a70.js +0 -5
- package/dist/components/p-bf73c370.js +0 -5
- package/dist/components/p-c603ac5e.js +0 -5
- package/dist/components/p-cbaa5de0.js +0 -5
- package/dist/components/p-d0546e1e.js +0 -5
- package/dist/components/p-d43ef8c9.js +0 -5
- package/dist/components/p-d5ff7544.js +0 -5
- package/dist/components/p-d65dfa98.js +0 -5
- package/dist/components/p-d74f3ad8.js +0 -5
- package/dist/components/p-eec2a223.js +0 -5
- package/dist/components/p-fab97ac7.js +0 -5
- package/dist/components/paint-thickness.d.ts +0 -11
- package/dist/components/paint-thickness.js +0 -5
- package/dist/components/part-lookup.d.ts +0 -11
- package/dist/components/part-lookup.js +0 -5
- package/dist/components/service-booking-form.d.ts +0 -11
- package/dist/components/service-booking-form.js +0 -5
- package/dist/components/service-history.d.ts +0 -11
- package/dist/components/service-history.js +0 -5
- package/dist/components/vehicle-accessories.d.ts +0 -11
- package/dist/components/vehicle-accessories.js +0 -5
- package/dist/components/vehicle-lookup.d.ts +0 -11
- package/dist/components/vehicle-lookup.js +0 -5
- package/dist/components/vehicle-specification.d.ts +0 -11
- package/dist/components/vehicle-specification.js +0 -5
- package/dist/components/warranty-details.d.ts +0 -11
- package/dist/components/warranty-details.js +0 -5
- package/dist/esm/app-globals-68faa233.js +0 -44
- package/dist/esm/cn-cc419b94.js +0 -2586
- package/dist/esm/contact-us-form.entry.js +0 -205
- package/dist/esm/dead-stock-lookup_3.entry.js +0 -439
- package/dist/esm/dynamic-claim_6.entry.js +0 -1145
- package/dist/esm/dynamic-redeem.entry.js +0 -152
- package/dist/esm/form-dialog_8.entry.js +0 -492
- package/dist/esm/get-local-language-40614e53.js +0 -2375
- package/dist/esm/index-cac905b0.js +0 -1581
- package/dist/esm/index.js +0 -4
- package/dist/esm/loader-027b88af.js +0 -7
- package/dist/esm/loader.js +0 -15
- package/dist/esm/loading-spinner.entry.js +0 -23
- package/dist/esm/part-lookup.entry.js +0 -125
- package/dist/esm/service-booking-form.entry.js +0 -205
- package/dist/esm/shift-components.js +0 -24
- package/dist/esm/urls-e22234f9.js +0 -4870
- package/dist/esm/vehicle-lookup.entry.js +0 -198
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/locales/ar.json +0 -184
- package/dist/locales/en.json +0 -184
- package/dist/locales/ku.json +0 -184
- package/dist/locales/ru.json +0 -184
- package/dist/shift-components/index.esm.js +0 -4
- package/dist/shift-components/p-116b1698.entry.js +0 -5
- package/dist/shift-components/p-227d01ce.entry.js +0 -5
- package/dist/shift-components/p-2cf52456.entry.js +0 -5
- package/dist/shift-components/p-33561513.entry.js +0 -5
- package/dist/shift-components/p-446d908d.js +0 -5
- package/dist/shift-components/p-5bbbff4a.entry.js +0 -5
- package/dist/shift-components/p-65102e7a.js +0 -6
- package/dist/shift-components/p-777ff030.entry.js +0 -5
- package/dist/shift-components/p-932ff922.js +0 -5
- package/dist/shift-components/p-98d9e7ab.js +0 -5
- package/dist/shift-components/p-a21e2e2e.js +0 -5
- package/dist/shift-components/p-b131a56e.entry.js +0 -5
- package/dist/shift-components/p-c7d01b2c.entry.js +0 -5
- package/dist/shift-components/p-eab3606c.js +0 -5
- package/dist/shift-components/p-fda56efb.entry.js +0 -5
- package/dist/shift-components/shift-components.esm.js +0 -5
- package/dist/types/components/components/loading-spinner.d.ts +0 -4
- package/dist/types/components/form-elements/form-dialog.d.ts +0 -13
- package/dist/types/components/form-elements/form-input.d.ts +0 -28
- package/dist/types/components/form-elements/form-select.d.ts +0 -39
- package/dist/types/components/form-elements/form-shadow-input.d.ts +0 -9
- package/dist/types/components/form-elements/form-structure-error.d.ts +0 -8
- package/dist/types/components/form-elements/form-structure.d.ts +0 -23
- package/dist/types/components/form-elements/form-submit.d.ts +0 -12
- package/dist/types/components/form-elements/form-text-area.d.ts +0 -24
- package/dist/types/components/forms/contact-us/element-mapper.d.ts +0 -3
- package/dist/types/components/forms/contact-us/validations.d.ts +0 -26
- package/dist/types/components/forms/contact-us-form.d.ts +0 -32
- package/dist/types/components/forms/service-booking/element-mapper.d.ts +0 -3
- package/dist/types/components/forms/service-booking/validations.d.ts +0 -26
- package/dist/types/components/forms/service-booking-form.d.ts +0 -32
- package/dist/types/components/part-lookup/dead-stock-lookup.d.ts +0 -31
- package/dist/types/components/part-lookup/distributor-lookup.d.ts +0 -32
- package/dist/types/components/part-lookup/manufacturer-lookup.d.ts +0 -33
- package/dist/types/components/part-lookup/part-lookup.d.ts +0 -43
- package/dist/types/components/vehicle-lookup/components/CardsContainer.d.ts +0 -10
- package/dist/types/components/vehicle-lookup/components/Loading.d.ts +0 -5
- package/dist/types/components/vehicle-lookup/components/SSCTable.d.ts +0 -8
- package/dist/types/components/vehicle-lookup/components/StatusCard.d.ts +0 -12
- package/dist/types/components/vehicle-lookup/dynamic-claim.d.ts +0 -55
- package/dist/types/components/vehicle-lookup/dynamic-redeem.d.ts +0 -39
- package/dist/types/components/vehicle-lookup/paint-thickness.d.ts +0 -35
- package/dist/types/components/vehicle-lookup/service-history.d.ts +0 -30
- package/dist/types/components/vehicle-lookup/vehicle-accessories.d.ts +0 -35
- package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +0 -53
- package/dist/types/components/vehicle-lookup/vehicle-specification.d.ts +0 -29
- package/dist/types/components/vehicle-lookup/warranty-details.d.ts +0 -57
- package/dist/types/components.d.ts +0 -760
- package/dist/types/global/api/partInformation.d.ts +0 -19
- package/dist/types/global/api/urls.d.ts +0 -2
- package/dist/types/global/api/vehicleInformation.d.ts +0 -33
- package/dist/types/global/lib/cn.d.ts +0 -2
- package/dist/types/global/lib/form-hook.d.ts +0 -47
- package/dist/types/global/lib/general.d.ts +0 -1
- package/dist/types/global/lib/get-local-language.d.ts +0 -2
- package/dist/types/global/lib/image-expansion.d.ts +0 -9
- package/dist/types/global/lib/middleware.d.ts +0 -0
- package/dist/types/global/lib/recaptcha.d.ts +0 -16
- package/dist/types/global/lib/utils.d.ts +0 -1
- package/dist/types/global/lib/validate-form-structure.d.ts +0 -3
- package/dist/types/global/lib/validate-vin.d.ts +0 -1
- package/dist/types/global/types/components.d.ts +0 -7
- package/dist/types/global/types/forms.d.ts +0 -63
- package/dist/types/global/types/general.d.ts +0 -23
- package/dist/types/global/types/locales/error-schema.d.ts +0 -23
- package/dist/types/global/types/locales/forms/contact-us-schema.d.ts +0 -37
- package/dist/types/global/types/locales/forms/index.d.ts +0 -45
- package/dist/types/global/types/locales/general.d.ts +0 -11
- package/dist/types/global/types/locales/index.d.ts +0 -380
- package/dist/types/global/types/locales/inquiryTypes.d.ts +0 -19
- package/dist/types/global/types/locales/part-lookup/dead-stock-schema.d.ts +0 -9
- package/dist/types/global/types/locales/part-lookup/distributor-schema.d.ts +0 -31
- package/dist/types/global/types/locales/part-lookup/index.d.ts +0 -79
- package/dist/types/global/types/locales/part-lookup/manufacturer-schema.d.ts +0 -33
- package/dist/types/global/types/locales/vehicle-lookup/accessories-schema.d.ts +0 -15
- package/dist/types/global/types/locales/vehicle-lookup/dynamic-claim-schema.d.ts +0 -31
- package/dist/types/global/types/locales/vehicle-lookup/dynamic-redeem-schema.d.ts +0 -27
- package/dist/types/global/types/locales/vehicle-lookup/index.d.ts +0 -171
- package/dist/types/global/types/locales/vehicle-lookup/paint-thickness-schema.d.ts +0 -17
- package/dist/types/global/types/locales/vehicle-lookup/service-history-schema.d.ts +0 -19
- package/dist/types/global/types/locales/vehicle-lookup/specification-schema.d.ts +0 -17
- package/dist/types/global/types/locales/vehicle-lookup/warranty-schema.d.ts +0 -35
- package/dist/types/global/types/part-information.d.ts +0 -53
- package/dist/types/global/types/vehicle-information.d.ts +0 -167
- package/dist/types/index.d.ts +0 -10
- package/dist/types/stencil-public-runtime.d.ts +0 -1680
- package/loader/cdn.js +0 -5
- package/loader/index.cjs.js +0 -5
- package/loader/index.d.ts +0 -24
- package/loader/index.es2017.js +0 -5
- package/loader/index.js +0 -6
- package/loader/package.json +0 -11
|
@@ -1,780 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built by ShiftSoftware
|
|
3
|
-
* Copyright (c)
|
|
4
|
-
*/
|
|
5
|
-
import { Host, h } from "@stencil/core";
|
|
6
|
-
import Loader from "~assets/loader.svg";
|
|
7
|
-
import SSCTable from "./components/SSCTable";
|
|
8
|
-
import CardsContainer from "./components/CardsContainer";
|
|
9
|
-
import cn from "../../global/lib/cn";
|
|
10
|
-
import { getLocaleLanguage } from "../../global/lib/get-local-language";
|
|
11
|
-
import { localeSchema } from "../../global/types/locales/index";
|
|
12
|
-
import { getVehicleInformation } from "../../global/api/vehicleInformation";
|
|
13
|
-
let mockData = {};
|
|
14
|
-
export class WarrantyDetails {
|
|
15
|
-
constructor() {
|
|
16
|
-
this.baseUrl = '';
|
|
17
|
-
this.isDev = false;
|
|
18
|
-
this.showSsc = false;
|
|
19
|
-
this.queryString = '';
|
|
20
|
-
this.recaptchaKey = '';
|
|
21
|
-
this.language = 'en';
|
|
22
|
-
this.showWarranty = false;
|
|
23
|
-
this.unauthorizedSscLookupBaseUrl = '';
|
|
24
|
-
this.unauthorizedSscLookupQueryString = '';
|
|
25
|
-
this.cityId = null;
|
|
26
|
-
this.cityIntegrationId = null;
|
|
27
|
-
this.companyId = null;
|
|
28
|
-
this.companyIntegrationId = null;
|
|
29
|
-
this.companyBranchId = null;
|
|
30
|
-
this.companyBranchIntegrationId = null;
|
|
31
|
-
this.userId = null;
|
|
32
|
-
this.brandIntegrationId = null;
|
|
33
|
-
this.customerName = null;
|
|
34
|
-
this.customerPhone = null;
|
|
35
|
-
this.customerEmail = null;
|
|
36
|
-
this.errorCallback = undefined;
|
|
37
|
-
this.loadingStateChange = undefined;
|
|
38
|
-
this.loadedResponse = undefined;
|
|
39
|
-
this.state = 'idle';
|
|
40
|
-
this.externalVin = null;
|
|
41
|
-
this.showRecaptcha = false;
|
|
42
|
-
this.errorMessage = null;
|
|
43
|
-
this.unInvoicedByBrokerName = null;
|
|
44
|
-
this.vehicleInformation = undefined;
|
|
45
|
-
this.checkingUnauthorizedSSC = false;
|
|
46
|
-
this.recaptchaRes = null;
|
|
47
|
-
this.headers = {};
|
|
48
|
-
this.locale = localeSchema.getDefault();
|
|
49
|
-
}
|
|
50
|
-
async componentWillLoad() {
|
|
51
|
-
await this.changeLanguage(this.language);
|
|
52
|
-
}
|
|
53
|
-
async changeLanguage(newLanguage) {
|
|
54
|
-
this.locale = await getLocaleLanguage(newLanguage);
|
|
55
|
-
}
|
|
56
|
-
handleSettingData(response) {
|
|
57
|
-
var _a, _b, _c;
|
|
58
|
-
if (response.warranty === null)
|
|
59
|
-
response.warranty = {
|
|
60
|
-
warrantyEndDate: '',
|
|
61
|
-
warrantyStartDate: '',
|
|
62
|
-
hasActiveWarranty: false,
|
|
63
|
-
hasExtendedWarranty: false,
|
|
64
|
-
extendedWarrantyEndDate: '',
|
|
65
|
-
extendedWarrantyStartDate: '',
|
|
66
|
-
};
|
|
67
|
-
if (response.ssc === null)
|
|
68
|
-
response.ssc = [];
|
|
69
|
-
this.unInvoicedByBrokerName = null;
|
|
70
|
-
if (((_a = response === null || response === void 0 ? void 0 : response.saleInformation) === null || _a === void 0 ? void 0 : _a.broker) !== null && ((_c = (_b = response === null || response === void 0 ? void 0 : response.saleInformation) === null || _b === void 0 ? void 0 : _b.broker) === null || _c === void 0 ? void 0 : _c.invoiceDate) === null)
|
|
71
|
-
this.unInvoicedByBrokerName = response.saleInformation.broker.brokerName;
|
|
72
|
-
this.vehicleInformation = response;
|
|
73
|
-
}
|
|
74
|
-
async handleInitializingRecaptcha(vin, scopedTimeoutRef) {
|
|
75
|
-
var _a;
|
|
76
|
-
if (((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.isAuthorized) === false && this.showSsc && this.recaptchaKey !== '') {
|
|
77
|
-
grecaptcha.reset();
|
|
78
|
-
await new Promise(r => setTimeout(r, 400));
|
|
79
|
-
this.recaptchaIntervalRef = setInterval(async () => {
|
|
80
|
-
var _a;
|
|
81
|
-
const recaptchaResponse = grecaptcha.getResponse();
|
|
82
|
-
if (recaptchaResponse) {
|
|
83
|
-
clearInterval(this.recaptchaIntervalRef);
|
|
84
|
-
if (this.isDev) {
|
|
85
|
-
this.checkingUnauthorizedSSC = true;
|
|
86
|
-
this.showRecaptcha = false;
|
|
87
|
-
await new Promise(r => setTimeout(r, 3000));
|
|
88
|
-
this.checkingUnauthorizedSSC = false;
|
|
89
|
-
const hasPendingSSC = Math.random() < 0.5 ? false : true;
|
|
90
|
-
this.recaptchaRes = {
|
|
91
|
-
hasSSC: hasPendingSSC,
|
|
92
|
-
message: hasPendingSSC ? 'pendingSSC' : 'noPendingSSC',
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
this.checkingUnauthorizedSSC = true;
|
|
97
|
-
this.showRecaptcha = false;
|
|
98
|
-
///
|
|
99
|
-
const response = await fetch(`${this.unauthorizedSscLookupBaseUrl}${vin}/${(_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.sscLogId}?${this.unauthorizedSscLookupQueryString}`, {
|
|
100
|
-
signal: this.abortController.signal,
|
|
101
|
-
headers: Object.assign(Object.assign({}, this.headers), { 'Ssc-Recaptcha-Token': recaptchaResponse }),
|
|
102
|
-
});
|
|
103
|
-
const vinResponse = await response.json();
|
|
104
|
-
if (vinResponse && this.networkTimeoutRef === scopedTimeoutRef) {
|
|
105
|
-
this.checkingUnauthorizedSSC = false;
|
|
106
|
-
const hasPendingSSC = vinResponse.sscLookupStatus === 1;
|
|
107
|
-
this.recaptchaRes = {
|
|
108
|
-
hasSSC: hasPendingSSC,
|
|
109
|
-
message: hasPendingSSC ? 'pendingSSC' : 'noPendingSSC',
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
else
|
|
113
|
-
throw new Error('wrongResponseFormat');
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}, 500);
|
|
117
|
-
this.showRecaptcha = true;
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
this.showRecaptcha = false;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
async setData(newData, headers = {}) {
|
|
124
|
-
this.recaptchaRes = null;
|
|
125
|
-
this.headers = headers;
|
|
126
|
-
clearTimeout(this.networkTimeoutRef);
|
|
127
|
-
clearInterval(this.recaptchaIntervalRef);
|
|
128
|
-
if (this.abortController)
|
|
129
|
-
this.abortController.abort();
|
|
130
|
-
this.abortController = new AbortController();
|
|
131
|
-
let scopedTimeoutRef;
|
|
132
|
-
const isVinRequest = typeof newData === 'string';
|
|
133
|
-
const vin = isVinRequest ? newData : newData === null || newData === void 0 ? void 0 : newData.vin;
|
|
134
|
-
this.externalVin = vin;
|
|
135
|
-
try {
|
|
136
|
-
if (!vin || vin.trim().length === 0) {
|
|
137
|
-
this.state = 'idle';
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
if (this.state === 'data' || this.state === 'error') {
|
|
141
|
-
this.state = (this.state + '-loading');
|
|
142
|
-
}
|
|
143
|
-
else
|
|
144
|
-
this.state = 'loading';
|
|
145
|
-
await new Promise(r => {
|
|
146
|
-
scopedTimeoutRef = setTimeout(r, 600);
|
|
147
|
-
this.networkTimeoutRef = scopedTimeoutRef;
|
|
148
|
-
});
|
|
149
|
-
const vehicleResponse = isVinRequest ? await getVehicleInformation(this, { scopedTimeoutRef, vin, mockData }, headers) : newData;
|
|
150
|
-
if (this.networkTimeoutRef === scopedTimeoutRef) {
|
|
151
|
-
if (!vehicleResponse)
|
|
152
|
-
throw new Error('wrongResponseFormat');
|
|
153
|
-
this.handleSettingData(vehicleResponse);
|
|
154
|
-
this.handleInitializingRecaptcha(vin, scopedTimeoutRef);
|
|
155
|
-
}
|
|
156
|
-
this.errorMessage = null;
|
|
157
|
-
this.state = 'data';
|
|
158
|
-
}
|
|
159
|
-
catch (error) {
|
|
160
|
-
if (error && (error === null || error === void 0 ? void 0 : error.name) === 'AbortError')
|
|
161
|
-
return;
|
|
162
|
-
if (this.errorCallback)
|
|
163
|
-
this.errorCallback(error.message);
|
|
164
|
-
console.error(error);
|
|
165
|
-
this.setErrorMessage(error.message);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
async setErrorMessage(message) {
|
|
169
|
-
this.state = 'error';
|
|
170
|
-
this.vehicleInformation = null;
|
|
171
|
-
this.errorMessage = message;
|
|
172
|
-
}
|
|
173
|
-
async fetchData(requestedVin = this.externalVin, headers = {}) {
|
|
174
|
-
await this.setData(requestedVin, headers);
|
|
175
|
-
}
|
|
176
|
-
async componentDidLoad() {
|
|
177
|
-
if (this.recaptchaKey !== '') {
|
|
178
|
-
const script = document.createElement('script');
|
|
179
|
-
script.src = 'https://www.google.com/recaptcha/api.js';
|
|
180
|
-
script.async = true;
|
|
181
|
-
script.defer = true;
|
|
182
|
-
script.onload = () => console.log('reCAPTCHA script loaded');
|
|
183
|
-
document.head.appendChild(script);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
async setMockData(newMockData) {
|
|
187
|
-
mockData = newMockData;
|
|
188
|
-
}
|
|
189
|
-
async loadingListener() {
|
|
190
|
-
if (this.loadingStateChange)
|
|
191
|
-
this.loadingStateChange(this.state.includes('loading'));
|
|
192
|
-
}
|
|
193
|
-
render() {
|
|
194
|
-
var _a, _b, _c, _d, _e;
|
|
195
|
-
return (h(Host, { key: '8a54ab74f9c9282ac77e5e1e8efa862d32806929' }, h("div", { key: 'f62f8d7e44da8369ebccf18357200e232c641e6e', dir: this.locale.direction, class: "min-h-[100px] warranty" }, h("div", { key: '6b65fb28f1a41bbcb65117d3cd748779827a6692' }, h("loading-spinner", { key: 'ad9d8fa792075417393a6d54beeeb126499d30dd', isLoading: this.state.includes('loading') }), h("div", { key: 'a2df5088999081ec112a059547f58f9e129cdf0d', class: "transition-all !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: '936e754a9fdf7072c09e25b07dd7bf8a8f6fc13e', 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: '364233aa583fee4518f48172e7facd9b40a5b00e', class: "py-[16px] min-h-[100px] flex items-center" }, h("div", { key: '3eb25a151fcaecf26edef5147fc16a51087ab9b9', 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))), this.showWarranty && ['data', 'data-loading'].includes(this.state) && (h(CardsContainer, { key: '4b8204ef0cb5d76e164a7ed6ae19d8c41da761f1', 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: 'ad8527b09f7aa3c7559dd901e5ade3499303d3b8', style: Object.assign({}, (this.showRecaptcha ? { height: 'auto', padding: '16px 16px 0px 16px' } : { height: '0px' })), class: "recaptcha-container" }, h("slot", { key: 'b1b0b08c2663eb26a3bc67b9cc356c40d35abafa' })), ['data', 'data-loading'].includes(this.state) && this.recaptchaRes && (h("div", { key: '86db3700946862964e9dc4cd2cc5312cf430762b', class: cn('recaptcha-response', !this.recaptchaRes.hasSSC ? 'success-card' : 'reject-card ') }, this.locale.vehicleLookup.warranty[this.recaptchaRes.message])), this.checkingUnauthorizedSSC && (h("div", { key: 'ab168a7bd0c77054a7594cdb0b0741abe8d4cac6', class: "loading-spinner", style: { marginTop: '20px', flexDirection: 'column' } }, h("div", { key: '7ea9363eb62ce4a93cdc2b52db12f54d7e811981' }, h("strong", { key: 'b76260bd00b7c786a5846e83beea40d13d89bf45' }, this.locale.vehicleLookup.warranty.checkingTMC)), h("img", { key: 'b25c6dcc9351c700ac41a6400413c99091392d3b', class: "spin", src: Loader }))), 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: 'baa08e19b3274ee99bfd3ae2756a20b7dde59501', locale: this.locale, ssc: this.vehicleInformation.ssc })))))));
|
|
196
|
-
}
|
|
197
|
-
static get is() { return "warranty-details"; }
|
|
198
|
-
static get encapsulation() { return "shadow"; }
|
|
199
|
-
static get originalStyleUrls() {
|
|
200
|
-
return {
|
|
201
|
-
"$": ["warranty-details.css"]
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
static get styleUrls() {
|
|
205
|
-
return {
|
|
206
|
-
"$": ["warranty-details.css"]
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
static get properties() {
|
|
210
|
-
return {
|
|
211
|
-
"baseUrl": {
|
|
212
|
-
"type": "string",
|
|
213
|
-
"mutable": false,
|
|
214
|
-
"complexType": {
|
|
215
|
-
"original": "string",
|
|
216
|
-
"resolved": "string",
|
|
217
|
-
"references": {}
|
|
218
|
-
},
|
|
219
|
-
"required": false,
|
|
220
|
-
"optional": false,
|
|
221
|
-
"docs": {
|
|
222
|
-
"tags": [],
|
|
223
|
-
"text": ""
|
|
224
|
-
},
|
|
225
|
-
"attribute": "base-url",
|
|
226
|
-
"reflect": false,
|
|
227
|
-
"defaultValue": "''"
|
|
228
|
-
},
|
|
229
|
-
"isDev": {
|
|
230
|
-
"type": "boolean",
|
|
231
|
-
"mutable": false,
|
|
232
|
-
"complexType": {
|
|
233
|
-
"original": "boolean",
|
|
234
|
-
"resolved": "boolean",
|
|
235
|
-
"references": {}
|
|
236
|
-
},
|
|
237
|
-
"required": false,
|
|
238
|
-
"optional": false,
|
|
239
|
-
"docs": {
|
|
240
|
-
"tags": [],
|
|
241
|
-
"text": ""
|
|
242
|
-
},
|
|
243
|
-
"attribute": "is-dev",
|
|
244
|
-
"reflect": false,
|
|
245
|
-
"defaultValue": "false"
|
|
246
|
-
},
|
|
247
|
-
"showSsc": {
|
|
248
|
-
"type": "boolean",
|
|
249
|
-
"mutable": false,
|
|
250
|
-
"complexType": {
|
|
251
|
-
"original": "boolean",
|
|
252
|
-
"resolved": "boolean",
|
|
253
|
-
"references": {}
|
|
254
|
-
},
|
|
255
|
-
"required": false,
|
|
256
|
-
"optional": false,
|
|
257
|
-
"docs": {
|
|
258
|
-
"tags": [],
|
|
259
|
-
"text": ""
|
|
260
|
-
},
|
|
261
|
-
"attribute": "show-ssc",
|
|
262
|
-
"reflect": false,
|
|
263
|
-
"defaultValue": "false"
|
|
264
|
-
},
|
|
265
|
-
"queryString": {
|
|
266
|
-
"type": "string",
|
|
267
|
-
"mutable": false,
|
|
268
|
-
"complexType": {
|
|
269
|
-
"original": "string",
|
|
270
|
-
"resolved": "string",
|
|
271
|
-
"references": {}
|
|
272
|
-
},
|
|
273
|
-
"required": false,
|
|
274
|
-
"optional": false,
|
|
275
|
-
"docs": {
|
|
276
|
-
"tags": [],
|
|
277
|
-
"text": ""
|
|
278
|
-
},
|
|
279
|
-
"attribute": "query-string",
|
|
280
|
-
"reflect": false,
|
|
281
|
-
"defaultValue": "''"
|
|
282
|
-
},
|
|
283
|
-
"recaptchaKey": {
|
|
284
|
-
"type": "string",
|
|
285
|
-
"mutable": false,
|
|
286
|
-
"complexType": {
|
|
287
|
-
"original": "string",
|
|
288
|
-
"resolved": "string",
|
|
289
|
-
"references": {}
|
|
290
|
-
},
|
|
291
|
-
"required": false,
|
|
292
|
-
"optional": false,
|
|
293
|
-
"docs": {
|
|
294
|
-
"tags": [],
|
|
295
|
-
"text": ""
|
|
296
|
-
},
|
|
297
|
-
"attribute": "recaptcha-key",
|
|
298
|
-
"reflect": false,
|
|
299
|
-
"defaultValue": "''"
|
|
300
|
-
},
|
|
301
|
-
"language": {
|
|
302
|
-
"type": "string",
|
|
303
|
-
"mutable": false,
|
|
304
|
-
"complexType": {
|
|
305
|
-
"original": "LanguageKeys",
|
|
306
|
-
"resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
|
|
307
|
-
"references": {
|
|
308
|
-
"LanguageKeys": {
|
|
309
|
-
"location": "import",
|
|
310
|
-
"path": "~types/locales",
|
|
311
|
-
"id": "src/global/types/locales/index.ts::LanguageKeys"
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
},
|
|
315
|
-
"required": false,
|
|
316
|
-
"optional": false,
|
|
317
|
-
"docs": {
|
|
318
|
-
"tags": [],
|
|
319
|
-
"text": ""
|
|
320
|
-
},
|
|
321
|
-
"attribute": "language",
|
|
322
|
-
"reflect": false,
|
|
323
|
-
"defaultValue": "'en'"
|
|
324
|
-
},
|
|
325
|
-
"showWarranty": {
|
|
326
|
-
"type": "boolean",
|
|
327
|
-
"mutable": false,
|
|
328
|
-
"complexType": {
|
|
329
|
-
"original": "boolean",
|
|
330
|
-
"resolved": "boolean",
|
|
331
|
-
"references": {}
|
|
332
|
-
},
|
|
333
|
-
"required": false,
|
|
334
|
-
"optional": false,
|
|
335
|
-
"docs": {
|
|
336
|
-
"tags": [],
|
|
337
|
-
"text": ""
|
|
338
|
-
},
|
|
339
|
-
"attribute": "show-warranty",
|
|
340
|
-
"reflect": false,
|
|
341
|
-
"defaultValue": "false"
|
|
342
|
-
},
|
|
343
|
-
"unauthorizedSscLookupBaseUrl": {
|
|
344
|
-
"type": "string",
|
|
345
|
-
"mutable": false,
|
|
346
|
-
"complexType": {
|
|
347
|
-
"original": "string",
|
|
348
|
-
"resolved": "string",
|
|
349
|
-
"references": {}
|
|
350
|
-
},
|
|
351
|
-
"required": false,
|
|
352
|
-
"optional": false,
|
|
353
|
-
"docs": {
|
|
354
|
-
"tags": [],
|
|
355
|
-
"text": ""
|
|
356
|
-
},
|
|
357
|
-
"attribute": "unauthorized-ssc-lookup-base-url",
|
|
358
|
-
"reflect": false,
|
|
359
|
-
"defaultValue": "''"
|
|
360
|
-
},
|
|
361
|
-
"unauthorizedSscLookupQueryString": {
|
|
362
|
-
"type": "string",
|
|
363
|
-
"mutable": false,
|
|
364
|
-
"complexType": {
|
|
365
|
-
"original": "string",
|
|
366
|
-
"resolved": "string",
|
|
367
|
-
"references": {}
|
|
368
|
-
},
|
|
369
|
-
"required": false,
|
|
370
|
-
"optional": false,
|
|
371
|
-
"docs": {
|
|
372
|
-
"tags": [],
|
|
373
|
-
"text": ""
|
|
374
|
-
},
|
|
375
|
-
"attribute": "unauthorized-ssc-lookup-query-string",
|
|
376
|
-
"reflect": false,
|
|
377
|
-
"defaultValue": "''"
|
|
378
|
-
},
|
|
379
|
-
"cityId": {
|
|
380
|
-
"type": "string",
|
|
381
|
-
"mutable": false,
|
|
382
|
-
"complexType": {
|
|
383
|
-
"original": "string",
|
|
384
|
-
"resolved": "string",
|
|
385
|
-
"references": {}
|
|
386
|
-
},
|
|
387
|
-
"required": false,
|
|
388
|
-
"optional": true,
|
|
389
|
-
"docs": {
|
|
390
|
-
"tags": [],
|
|
391
|
-
"text": ""
|
|
392
|
-
},
|
|
393
|
-
"attribute": "city-id",
|
|
394
|
-
"reflect": false,
|
|
395
|
-
"defaultValue": "null"
|
|
396
|
-
},
|
|
397
|
-
"cityIntegrationId": {
|
|
398
|
-
"type": "string",
|
|
399
|
-
"mutable": false,
|
|
400
|
-
"complexType": {
|
|
401
|
-
"original": "string",
|
|
402
|
-
"resolved": "string",
|
|
403
|
-
"references": {}
|
|
404
|
-
},
|
|
405
|
-
"required": false,
|
|
406
|
-
"optional": true,
|
|
407
|
-
"docs": {
|
|
408
|
-
"tags": [],
|
|
409
|
-
"text": ""
|
|
410
|
-
},
|
|
411
|
-
"attribute": "city-integration-id",
|
|
412
|
-
"reflect": false,
|
|
413
|
-
"defaultValue": "null"
|
|
414
|
-
},
|
|
415
|
-
"companyId": {
|
|
416
|
-
"type": "string",
|
|
417
|
-
"mutable": false,
|
|
418
|
-
"complexType": {
|
|
419
|
-
"original": "string",
|
|
420
|
-
"resolved": "string",
|
|
421
|
-
"references": {}
|
|
422
|
-
},
|
|
423
|
-
"required": false,
|
|
424
|
-
"optional": true,
|
|
425
|
-
"docs": {
|
|
426
|
-
"tags": [],
|
|
427
|
-
"text": ""
|
|
428
|
-
},
|
|
429
|
-
"attribute": "company-id",
|
|
430
|
-
"reflect": false,
|
|
431
|
-
"defaultValue": "null"
|
|
432
|
-
},
|
|
433
|
-
"companyIntegrationId": {
|
|
434
|
-
"type": "string",
|
|
435
|
-
"mutable": false,
|
|
436
|
-
"complexType": {
|
|
437
|
-
"original": "string",
|
|
438
|
-
"resolved": "string",
|
|
439
|
-
"references": {}
|
|
440
|
-
},
|
|
441
|
-
"required": false,
|
|
442
|
-
"optional": true,
|
|
443
|
-
"docs": {
|
|
444
|
-
"tags": [],
|
|
445
|
-
"text": ""
|
|
446
|
-
},
|
|
447
|
-
"attribute": "company-integration-id",
|
|
448
|
-
"reflect": false,
|
|
449
|
-
"defaultValue": "null"
|
|
450
|
-
},
|
|
451
|
-
"companyBranchId": {
|
|
452
|
-
"type": "string",
|
|
453
|
-
"mutable": false,
|
|
454
|
-
"complexType": {
|
|
455
|
-
"original": "string",
|
|
456
|
-
"resolved": "string",
|
|
457
|
-
"references": {}
|
|
458
|
-
},
|
|
459
|
-
"required": false,
|
|
460
|
-
"optional": true,
|
|
461
|
-
"docs": {
|
|
462
|
-
"tags": [],
|
|
463
|
-
"text": ""
|
|
464
|
-
},
|
|
465
|
-
"attribute": "company-branch-id",
|
|
466
|
-
"reflect": false,
|
|
467
|
-
"defaultValue": "null"
|
|
468
|
-
},
|
|
469
|
-
"companyBranchIntegrationId": {
|
|
470
|
-
"type": "string",
|
|
471
|
-
"mutable": false,
|
|
472
|
-
"complexType": {
|
|
473
|
-
"original": "string",
|
|
474
|
-
"resolved": "string",
|
|
475
|
-
"references": {}
|
|
476
|
-
},
|
|
477
|
-
"required": false,
|
|
478
|
-
"optional": true,
|
|
479
|
-
"docs": {
|
|
480
|
-
"tags": [],
|
|
481
|
-
"text": ""
|
|
482
|
-
},
|
|
483
|
-
"attribute": "company-branch-integration-id",
|
|
484
|
-
"reflect": false,
|
|
485
|
-
"defaultValue": "null"
|
|
486
|
-
},
|
|
487
|
-
"userId": {
|
|
488
|
-
"type": "string",
|
|
489
|
-
"mutable": false,
|
|
490
|
-
"complexType": {
|
|
491
|
-
"original": "string",
|
|
492
|
-
"resolved": "string",
|
|
493
|
-
"references": {}
|
|
494
|
-
},
|
|
495
|
-
"required": false,
|
|
496
|
-
"optional": true,
|
|
497
|
-
"docs": {
|
|
498
|
-
"tags": [],
|
|
499
|
-
"text": ""
|
|
500
|
-
},
|
|
501
|
-
"attribute": "user-id",
|
|
502
|
-
"reflect": false,
|
|
503
|
-
"defaultValue": "null"
|
|
504
|
-
},
|
|
505
|
-
"brandIntegrationId": {
|
|
506
|
-
"type": "string",
|
|
507
|
-
"mutable": false,
|
|
508
|
-
"complexType": {
|
|
509
|
-
"original": "string",
|
|
510
|
-
"resolved": "string",
|
|
511
|
-
"references": {}
|
|
512
|
-
},
|
|
513
|
-
"required": false,
|
|
514
|
-
"optional": false,
|
|
515
|
-
"docs": {
|
|
516
|
-
"tags": [],
|
|
517
|
-
"text": ""
|
|
518
|
-
},
|
|
519
|
-
"attribute": "brand-integration-id",
|
|
520
|
-
"reflect": false,
|
|
521
|
-
"defaultValue": "null"
|
|
522
|
-
},
|
|
523
|
-
"customerName": {
|
|
524
|
-
"type": "string",
|
|
525
|
-
"mutable": false,
|
|
526
|
-
"complexType": {
|
|
527
|
-
"original": "string",
|
|
528
|
-
"resolved": "string",
|
|
529
|
-
"references": {}
|
|
530
|
-
},
|
|
531
|
-
"required": false,
|
|
532
|
-
"optional": true,
|
|
533
|
-
"docs": {
|
|
534
|
-
"tags": [],
|
|
535
|
-
"text": ""
|
|
536
|
-
},
|
|
537
|
-
"attribute": "customer-name",
|
|
538
|
-
"reflect": false,
|
|
539
|
-
"defaultValue": "null"
|
|
540
|
-
},
|
|
541
|
-
"customerPhone": {
|
|
542
|
-
"type": "string",
|
|
543
|
-
"mutable": false,
|
|
544
|
-
"complexType": {
|
|
545
|
-
"original": "string",
|
|
546
|
-
"resolved": "string",
|
|
547
|
-
"references": {}
|
|
548
|
-
},
|
|
549
|
-
"required": false,
|
|
550
|
-
"optional": true,
|
|
551
|
-
"docs": {
|
|
552
|
-
"tags": [],
|
|
553
|
-
"text": ""
|
|
554
|
-
},
|
|
555
|
-
"attribute": "customer-phone",
|
|
556
|
-
"reflect": false,
|
|
557
|
-
"defaultValue": "null"
|
|
558
|
-
},
|
|
559
|
-
"customerEmail": {
|
|
560
|
-
"type": "string",
|
|
561
|
-
"mutable": false,
|
|
562
|
-
"complexType": {
|
|
563
|
-
"original": "string",
|
|
564
|
-
"resolved": "string",
|
|
565
|
-
"references": {}
|
|
566
|
-
},
|
|
567
|
-
"required": false,
|
|
568
|
-
"optional": true,
|
|
569
|
-
"docs": {
|
|
570
|
-
"tags": [],
|
|
571
|
-
"text": ""
|
|
572
|
-
},
|
|
573
|
-
"attribute": "customer-email",
|
|
574
|
-
"reflect": false,
|
|
575
|
-
"defaultValue": "null"
|
|
576
|
-
},
|
|
577
|
-
"errorCallback": {
|
|
578
|
-
"type": "unknown",
|
|
579
|
-
"mutable": false,
|
|
580
|
-
"complexType": {
|
|
581
|
-
"original": "(errorMessage: ErrorKeys) => void",
|
|
582
|
-
"resolved": "(errorMessage: ErrorKeys) => void",
|
|
583
|
-
"references": {
|
|
584
|
-
"ErrorKeys": {
|
|
585
|
-
"location": "import",
|
|
586
|
-
"path": "~types/locales",
|
|
587
|
-
"id": "src/global/types/locales/index.ts::ErrorKeys"
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
},
|
|
591
|
-
"required": false,
|
|
592
|
-
"optional": false,
|
|
593
|
-
"docs": {
|
|
594
|
-
"tags": [],
|
|
595
|
-
"text": ""
|
|
596
|
-
}
|
|
597
|
-
},
|
|
598
|
-
"loadingStateChange": {
|
|
599
|
-
"type": "unknown",
|
|
600
|
-
"mutable": false,
|
|
601
|
-
"complexType": {
|
|
602
|
-
"original": "(isLoading: boolean) => void",
|
|
603
|
-
"resolved": "(isLoading: boolean) => void",
|
|
604
|
-
"references": {}
|
|
605
|
-
},
|
|
606
|
-
"required": false,
|
|
607
|
-
"optional": true,
|
|
608
|
-
"docs": {
|
|
609
|
-
"tags": [],
|
|
610
|
-
"text": ""
|
|
611
|
-
}
|
|
612
|
-
},
|
|
613
|
-
"loadedResponse": {
|
|
614
|
-
"type": "unknown",
|
|
615
|
-
"mutable": false,
|
|
616
|
-
"complexType": {
|
|
617
|
-
"original": "(response: VehicleInformation) => void",
|
|
618
|
-
"resolved": "(response: VehicleInformation) => void",
|
|
619
|
-
"references": {
|
|
620
|
-
"VehicleInformation": {
|
|
621
|
-
"location": "import",
|
|
622
|
-
"path": "~types/vehicle-information",
|
|
623
|
-
"id": "src/global/types/vehicle-information.ts::VehicleInformation"
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
},
|
|
627
|
-
"required": false,
|
|
628
|
-
"optional": true,
|
|
629
|
-
"docs": {
|
|
630
|
-
"tags": [],
|
|
631
|
-
"text": ""
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
};
|
|
635
|
-
}
|
|
636
|
-
static get states() {
|
|
637
|
-
return {
|
|
638
|
-
"state": {},
|
|
639
|
-
"externalVin": {},
|
|
640
|
-
"showRecaptcha": {},
|
|
641
|
-
"errorMessage": {},
|
|
642
|
-
"unInvoicedByBrokerName": {},
|
|
643
|
-
"vehicleInformation": {},
|
|
644
|
-
"checkingUnauthorizedSSC": {},
|
|
645
|
-
"recaptchaRes": {},
|
|
646
|
-
"headers": {},
|
|
647
|
-
"locale": {}
|
|
648
|
-
};
|
|
649
|
-
}
|
|
650
|
-
static get methods() {
|
|
651
|
-
return {
|
|
652
|
-
"setData": {
|
|
653
|
-
"complexType": {
|
|
654
|
-
"signature": "(newData: VehicleInformation | string, headers?: any) => Promise<void>",
|
|
655
|
-
"parameters": [{
|
|
656
|
-
"name": "newData",
|
|
657
|
-
"type": "string | VehicleInformation",
|
|
658
|
-
"docs": ""
|
|
659
|
-
}, {
|
|
660
|
-
"name": "headers",
|
|
661
|
-
"type": "any",
|
|
662
|
-
"docs": ""
|
|
663
|
-
}],
|
|
664
|
-
"references": {
|
|
665
|
-
"Promise": {
|
|
666
|
-
"location": "global",
|
|
667
|
-
"id": "global::Promise"
|
|
668
|
-
},
|
|
669
|
-
"VehicleInformation": {
|
|
670
|
-
"location": "import",
|
|
671
|
-
"path": "~types/vehicle-information",
|
|
672
|
-
"id": "src/global/types/vehicle-information.ts::VehicleInformation"
|
|
673
|
-
},
|
|
674
|
-
"ReturnType": {
|
|
675
|
-
"location": "global",
|
|
676
|
-
"id": "global::ReturnType"
|
|
677
|
-
}
|
|
678
|
-
},
|
|
679
|
-
"return": "Promise<void>"
|
|
680
|
-
},
|
|
681
|
-
"docs": {
|
|
682
|
-
"text": "",
|
|
683
|
-
"tags": []
|
|
684
|
-
}
|
|
685
|
-
},
|
|
686
|
-
"setErrorMessage": {
|
|
687
|
-
"complexType": {
|
|
688
|
-
"signature": "(message: ErrorKeys) => Promise<void>",
|
|
689
|
-
"parameters": [{
|
|
690
|
-
"name": "message",
|
|
691
|
-
"type": "OptionalKeys<{ wildCard: string; noBaseUrl: string; invalidVin: string; noPartsFound: string; vinNumberRequired: string; wrongFormStructure: string; partNumberRequired: string; noServiceAvailable: string; wrongResponseFormat: string; requestFailedPleaseTryAgainLater: string; }>",
|
|
692
|
-
"docs": ""
|
|
693
|
-
}],
|
|
694
|
-
"references": {
|
|
695
|
-
"Promise": {
|
|
696
|
-
"location": "global",
|
|
697
|
-
"id": "global::Promise"
|
|
698
|
-
},
|
|
699
|
-
"ErrorKeys": {
|
|
700
|
-
"location": "import",
|
|
701
|
-
"path": "~types/locales",
|
|
702
|
-
"id": "src/global/types/locales/index.ts::ErrorKeys"
|
|
703
|
-
}
|
|
704
|
-
},
|
|
705
|
-
"return": "Promise<void>"
|
|
706
|
-
},
|
|
707
|
-
"docs": {
|
|
708
|
-
"text": "",
|
|
709
|
-
"tags": []
|
|
710
|
-
}
|
|
711
|
-
},
|
|
712
|
-
"fetchData": {
|
|
713
|
-
"complexType": {
|
|
714
|
-
"signature": "(requestedVin?: string, headers?: any) => Promise<void>",
|
|
715
|
-
"parameters": [{
|
|
716
|
-
"name": "requestedVin",
|
|
717
|
-
"type": "string",
|
|
718
|
-
"docs": ""
|
|
719
|
-
}, {
|
|
720
|
-
"name": "headers",
|
|
721
|
-
"type": "any",
|
|
722
|
-
"docs": ""
|
|
723
|
-
}],
|
|
724
|
-
"references": {
|
|
725
|
-
"Promise": {
|
|
726
|
-
"location": "global",
|
|
727
|
-
"id": "global::Promise"
|
|
728
|
-
}
|
|
729
|
-
},
|
|
730
|
-
"return": "Promise<void>"
|
|
731
|
-
},
|
|
732
|
-
"docs": {
|
|
733
|
-
"text": "",
|
|
734
|
-
"tags": []
|
|
735
|
-
}
|
|
736
|
-
},
|
|
737
|
-
"setMockData": {
|
|
738
|
-
"complexType": {
|
|
739
|
-
"signature": "(newMockData: MockJson<VehicleInformation>) => Promise<void>",
|
|
740
|
-
"parameters": [{
|
|
741
|
-
"name": "newMockData",
|
|
742
|
-
"type": "{ [key: string]: VehicleInformation; }",
|
|
743
|
-
"docs": ""
|
|
744
|
-
}],
|
|
745
|
-
"references": {
|
|
746
|
-
"Promise": {
|
|
747
|
-
"location": "global",
|
|
748
|
-
"id": "global::Promise"
|
|
749
|
-
},
|
|
750
|
-
"MockJson": {
|
|
751
|
-
"location": "import",
|
|
752
|
-
"path": "~types/components",
|
|
753
|
-
"id": "src/global/types/components.ts::MockJson"
|
|
754
|
-
},
|
|
755
|
-
"VehicleInformation": {
|
|
756
|
-
"location": "import",
|
|
757
|
-
"path": "~types/vehicle-information",
|
|
758
|
-
"id": "src/global/types/vehicle-information.ts::VehicleInformation"
|
|
759
|
-
}
|
|
760
|
-
},
|
|
761
|
-
"return": "Promise<void>"
|
|
762
|
-
},
|
|
763
|
-
"docs": {
|
|
764
|
-
"text": "",
|
|
765
|
-
"tags": []
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
};
|
|
769
|
-
}
|
|
770
|
-
static get elementRef() { return "el"; }
|
|
771
|
-
static get watchers() {
|
|
772
|
-
return [{
|
|
773
|
-
"propName": "language",
|
|
774
|
-
"methodName": "changeLanguage"
|
|
775
|
-
}, {
|
|
776
|
-
"propName": "state",
|
|
777
|
-
"methodName": "loadingListener"
|
|
778
|
-
}];
|
|
779
|
-
}
|
|
780
|
-
}
|