adp-web-components 0.0.89 → 0.0.91
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/activation-icon-DEYW0itX.js +16 -0
- package/dist/cjs/cn-BHnqYtun.js +2597 -0
- package/dist/cjs/contact-us-form.cjs.entry.js +11 -22
- package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +287 -347
- package/dist/cjs/empty-table-icon-PdTX6gpI.js +16 -0
- package/dist/cjs/flexible-container.cjs.entry.js +131 -0
- package/dist/cjs/form-dialog_8.cjs.entry.js +44 -100
- package/dist/cjs/{get-local-language-e539cfdc.js → get-local-language-AedNCS4v.js} +375 -332
- package/dist/cjs/{index-a8de3655.js → index-BjyafrBw.js} +525 -288
- package/dist/cjs/information-table.cjs.entry.js +43 -0
- package/dist/cjs/loader.cjs.js +3 -6
- package/dist/cjs/loading-spinner.cjs.entry.js +6 -10
- package/dist/cjs/material-card-Cd0L1Get.js +43 -0
- package/dist/cjs/part-lookup.cjs.entry.js +39 -25
- package/dist/cjs/service-booking-form.cjs.entry.js +10 -21
- package/dist/cjs/shift-accordion.cjs.entry.js +29 -0
- package/dist/cjs/shift-components.cjs.js +7 -8
- package/dist/cjs/shift-slider.cjs.entry.js +70 -0
- package/dist/cjs/shift-tab-content.cjs.entry.js +42 -0
- package/dist/cjs/shift-tabs_2.cjs.entry.js +332 -0
- package/dist/cjs/{type-3d22f1fc.js → type-A-Wi_ktA.js} +50 -1
- package/dist/cjs/{type-3183db65.js → type-Dm3JBAef.js} +32 -123
- package/dist/cjs/{type-c576b922.js → type-ooYU2cCM.js} +4 -4
- package/dist/cjs/vehicle-accessories_6.cjs.entry.js +1206 -0
- package/dist/cjs/vehicle-info-layout-Dp2Po_uc.js +16 -0
- package/dist/cjs/vehicle-lookup.cjs.entry.js +62 -49
- package/dist/cjs/vin-extractor.cjs.entry.js +24 -34
- package/dist/collection/collection-manifest.json +19 -13
- package/dist/collection/components/components/card-content.js +7 -0
- package/dist/collection/components/components/flexible-container.css +1 -0
- package/dist/collection/components/components/flexible-container.js +315 -0
- package/dist/collection/components/components/information-table.css +1 -0
- package/dist/collection/components/components/information-table.js +180 -0
- package/dist/collection/components/components/loading-spinner.css +1 -1
- package/dist/collection/components/components/loading-spinner.js +4 -5
- package/dist/collection/components/components/material-card.js +34 -0
- package/dist/collection/components/{vehicle-lookup/service-history.css → components/shift-accordion.css} +1 -1
- package/dist/collection/components/components/shift-accordion.js +102 -0
- package/dist/collection/components/components/shift-slider.css +1 -0
- package/dist/collection/components/components/shift-slider.js +95 -0
- package/dist/collection/components/components/shift-tab-content.css +1 -0
- package/dist/collection/components/components/shift-tab-content.js +98 -0
- package/dist/collection/components/components/shift-tabs.css +1 -0
- package/dist/collection/components/components/shift-tabs.js +140 -0
- package/dist/collection/components/form-elements/form-dialog.css +1 -1
- package/dist/collection/components/form-elements/form-dialog.js +16 -12
- package/dist/collection/components/form-elements/form-input.css +1 -1
- package/dist/collection/components/form-elements/form-input.js +45 -29
- package/dist/collection/components/form-elements/form-select.css +1 -1
- package/dist/collection/components/form-elements/form-select.js +57 -41
- package/dist/collection/components/form-elements/form-shadow-input.css +1 -1
- package/dist/collection/components/form-elements/form-shadow-input.js +11 -9
- package/dist/collection/components/form-elements/form-structure-error.css +1 -1
- package/dist/collection/components/form-elements/form-structure-error.js +7 -5
- package/dist/collection/components/form-elements/form-structure.css +1 -1
- package/dist/collection/components/form-elements/form-structure.js +32 -16
- package/dist/collection/components/form-elements/form-submit.css +1 -1
- package/dist/collection/components/form-elements/form-submit.js +18 -10
- package/dist/collection/components/form-elements/form-text-area.css +1 -1
- package/dist/collection/components/form-elements/form-text-area.js +36 -23
- package/dist/collection/components/forms/contact-us/element-mapper.js +1 -1
- package/dist/collection/components/forms/contact-us/form.css +1 -1
- package/dist/collection/components/forms/contact-us-form.js +39 -24
- package/dist/collection/components/forms/service-booking/element-mapper.js +1 -1
- package/dist/collection/components/forms/service-booking-form.js +39 -24
- package/dist/collection/components/part-lookup/components/dead-stock-item.js +15 -0
- package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -1
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +179 -188
- package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.js +221 -236
- package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +194 -234
- package/dist/collection/components/part-lookup/part-lookup.css +1 -1
- package/dist/collection/components/part-lookup/part-lookup.js +152 -66
- package/dist/collection/components/vehicle-lookup/components/CardsContainer.js +5 -5
- package/dist/collection/components/vehicle-lookup/components/StatusCard.js +4 -4
- package/dist/collection/components/vehicle-lookup/components/claimable-item-popover.js +73 -0
- package/dist/collection/components/vehicle-lookup/components/claimable-item.js +27 -0
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +170 -197
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.css +1 -0
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +826 -0
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.css +1 -0
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.js +542 -0
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +171 -98
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.css +1 -0
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.js +384 -0
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.css +1 -0
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.js +390 -0
- package/dist/collection/components/vehicle-lookup/vehicle-specification.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-specification.js +145 -181
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.css +1 -0
- package/dist/collection/components/vehicle-lookup/{warranty-details.js → vehicle-warranty-details.js} +315 -277
- package/dist/collection/components/vin-extractor/vin-extractor.js +72 -42
- package/dist/collection/{global/lib/image-expansion.js → features/image-viewer/image-viewer-logic.js} +15 -11
- package/dist/collection/features/image-viewer/image-viewer.js +9 -0
- package/dist/collection/features/image-viewer/index.js +7 -0
- package/dist/collection/{global/lib → features/multi-lingual}/get-local-language.js +16 -10
- package/dist/collection/features/multi-lingual/index.js +7 -0
- package/dist/collection/features/multi-lingual/interface.js +1 -0
- package/dist/collection/{global/types/locale.js → features/multi-lingual/types.js} +6 -0
- package/dist/collection/features/part-lookup-components/index.js +7 -0
- package/dist/collection/features/part-lookup-components/interface.js +1 -0
- package/dist/collection/features/part-lookup-components/part-lookup-api-integration.js +84 -0
- package/dist/collection/features/part-lookup-components/types.js +1 -0
- package/dist/collection/features/vehicle-info-layout/index.js +6 -0
- package/dist/collection/features/vehicle-info-layout/interface.js +1 -0
- package/dist/collection/features/vehicle-info-layout/vehicle-info-layout.js +7 -0
- package/dist/collection/features/vehicle-lookup-component/index.js +7 -0
- package/dist/collection/features/vehicle-lookup-component/interface.js +1 -0
- package/dist/collection/features/vehicle-lookup-component/types.js +17 -0
- package/dist/collection/features/vehicle-lookup-component/vehicle-lookup-api-integration.js +87 -0
- package/dist/collection/global/assets/activation-icon.js +6 -0
- package/dist/collection/global/assets/add-icon.js +6 -0
- package/dist/collection/global/assets/alert-icon.js +6 -0
- package/dist/collection/global/assets/arrow-up-icon.js +6 -0
- package/dist/collection/global/assets/attach-icon.js +6 -0
- package/dist/collection/global/assets/check-icon.js +6 -0
- package/dist/collection/global/assets/empty-table-icon.js +6 -0
- package/dist/collection/global/assets/form-submit-svg.js +6 -0
- package/dist/collection/global/assets/print-icon.js +6 -0
- package/dist/collection/global/assets/triangle-icon.js +6 -0
- package/dist/collection/global/lib/children-with-tag.js +24 -0
- package/dist/collection/global/lib/container-has-tag.js +28 -0
- package/dist/collection/global/lib/parents-with-tag.js +22 -0
- package/dist/collection/global/lib/scroll-into-container-view.js +16 -0
- package/dist/collection/global/types/generated/part/branch-dead-stock-dto.js +1 -0
- package/dist/collection/global/types/generated/part/dead-stock-dto.js +1 -0
- package/dist/collection/global/types/generated/part/hs-code-dto.js +1 -0
- package/dist/collection/global/types/generated/part/part-lookup-dto.js +1 -0
- package/dist/collection/global/types/generated/part/part-price-dto.js +1 -0
- package/dist/collection/global/types/generated/part/price-dto.js +1 -0
- package/dist/collection/global/types/generated/part/stock-part-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/accessory-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/paint-thickness-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/paint-thickness-image-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/paint-thickness-part-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/ssc-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/ssc-labor-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/ssc-part-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-broker-sale-information.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-identifiers-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-labor-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-lookup-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-part-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-sale-information.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-service-history-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-service-item-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-service-item-group.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-specification-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-variant-info-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-warranty-dto.js +1 -0
- package/dist/collection/locale-mapper.js +3 -3
- package/dist/collection/locales/partLookup/manufacturer/type.js +3 -3
- package/dist/collection/locales/vehicleLookup/{dynamicClaim → claimableItems}/type.js +10 -6
- package/dist/collection/locales/vehicleLookup/warranty/type.js +1 -0
- package/dist/collection/locales/vehicleLookup/wrapper-type.js +2 -2
- package/dist/collection/templates/part-lookup/mock-data.js +99 -16
- package/dist/collection/templates/vehicle-lookup/mock-data.js +228 -191
- package/dist/collection/templates/vehicle-lookup/warranty-mock-data.js +45 -27
- package/dist/components/contact-us-form.js +1 -1
- package/dist/components/dead-stock-lookup.js +1 -1
- package/dist/components/distributor-lookup.js +1 -1
- package/dist/components/flexible-container.d.ts +11 -0
- package/dist/components/flexible-container.js +5 -0
- package/dist/components/form-dialog.js +1 -1
- package/dist/components/form-input.js +1 -1
- package/dist/components/form-select.js +1 -1
- package/dist/components/form-shadow-input.js +1 -1
- package/dist/components/form-structure-error.js +1 -1
- package/dist/components/form-structure.js +1 -1
- package/dist/components/form-submit.js +1 -1
- package/dist/components/form-text-area.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{paint-thickness.d.ts → information-table.d.ts} +4 -4
- package/dist/components/information-table.js +5 -0
- package/dist/components/loading-spinner.js +1 -1
- package/dist/components/manufacturer-lookup.js +1 -1
- package/dist/components/p-B1fdQNyr.js +5 -0
- package/dist/components/p-BK16Cn81.js +5 -0
- package/dist/components/p-BkfCVIF9.js +5 -0
- package/dist/components/p-BsHunqQT.js +5 -0
- package/dist/components/p-BwUMwWdE.js +5 -0
- package/dist/components/p-C4zpDhOi.js +5 -0
- package/dist/components/p-CHE0gMDU.js +5 -0
- package/dist/components/p-CRB_syll.js +5 -0
- package/dist/components/p-CV6-hCEd.js +5 -0
- package/dist/components/p-CYfVWbdE.js +5 -0
- package/dist/components/{p-c981ee34.js → p-CYs-Cfbz.js} +1 -1
- package/dist/components/p-Ce4X3l8Z.js +5 -0
- package/dist/components/p-CffGxxO4.js +5 -0
- package/dist/components/p-CgP_rdz5.js +5 -0
- package/dist/components/p-CmuF1zVa.js +5 -0
- package/dist/components/p-DPxUsrGL.js +5 -0
- package/dist/components/p-DSIG_p-W.js +5 -0
- package/dist/components/p-DXHFdZX_.js +5 -0
- package/dist/components/p-Dkva9a7P.js +5 -0
- package/dist/components/p-DrFf_ORZ.js +5 -0
- package/dist/components/p-DsfktPnM.js +5 -0
- package/dist/components/p-DyWp9Iox.js +5 -0
- package/dist/components/p-Fudjizxb.js +5 -0
- package/dist/components/p-P3fAKtye.js +5 -0
- package/dist/components/p-QtVWfPMe.js +5 -0
- package/dist/components/p-THNpWs_W.js +5 -0
- package/dist/components/p-gwgMa4kM.js +5 -0
- package/dist/components/p-iCYlD4i9.js +5 -0
- package/dist/components/p-kp6CyIhI.js +5 -0
- package/dist/components/p-nBbuIowK.js +5 -0
- package/dist/components/p-piZ41_ho.js +5 -0
- package/dist/components/p-qw7FLuM-.js +5 -0
- package/dist/components/p-vhsj8wEw.js +5 -0
- package/dist/components/p-zDS3r6-j.js +5 -0
- package/dist/components/part-lookup.js +1 -1
- package/dist/components/service-booking-form.js +1 -1
- package/dist/components/{service-history.d.ts → shift-accordion.d.ts} +4 -4
- package/dist/components/shift-accordion.js +5 -0
- package/dist/components/{dynamic-claim.d.ts → shift-slider.d.ts} +4 -4
- package/dist/components/shift-slider.js +5 -0
- package/dist/components/{warranty-details.d.ts → shift-tab-content.d.ts} +4 -4
- package/dist/components/shift-tab-content.js +5 -0
- package/dist/components/{dynamic-redeem.d.ts → shift-tabs.d.ts} +4 -4
- package/dist/components/shift-tabs.js +5 -0
- package/dist/components/vehicle-accessories.js +1 -1
- package/dist/components/vehicle-claimable-items.d.ts +11 -0
- package/dist/components/vehicle-claimable-items.js +5 -0
- package/dist/components/vehicle-item-claim-form.d.ts +11 -0
- package/dist/components/vehicle-item-claim-form.js +5 -0
- package/dist/components/vehicle-lookup.js +1 -1
- package/dist/components/vehicle-paint-thickness.d.ts +11 -0
- package/dist/components/vehicle-paint-thickness.js +5 -0
- package/dist/components/vehicle-service-history.d.ts +11 -0
- package/dist/components/vehicle-service-history.js +5 -0
- package/dist/components/vehicle-specification.js +1 -1
- package/dist/components/vehicle-warranty-details.d.ts +11 -0
- package/dist/components/vehicle-warranty-details.js +5 -0
- package/dist/components/vin-extractor.js +1 -1
- package/dist/esm/activation-icon-7GJaxZ20.js +14 -0
- package/dist/esm/cn-BK16Cn81.js +2595 -0
- package/dist/esm/contact-us-form.entry.js +11 -20
- package/dist/esm/dead-stock-lookup_3.entry.js +287 -345
- package/dist/esm/empty-table-icon-DvQk12N9.js +14 -0
- package/dist/esm/flexible-container.entry.js +129 -0
- package/dist/esm/form-dialog_8.entry.js +44 -98
- package/dist/esm/{get-local-language-e286080a.js → get-local-language-DuHpVAu5.js} +376 -333
- package/dist/esm/{index-3a623f7c.js → index-CikEOqe0.js} +524 -268
- package/dist/esm/information-table.entry.js +41 -0
- package/dist/esm/loader.js +3 -4
- package/dist/esm/loading-spinner.entry.js +6 -8
- package/dist/esm/material-card-DiAl-884.js +40 -0
- package/dist/esm/part-lookup.entry.js +39 -23
- package/dist/esm/service-booking-form.entry.js +10 -19
- package/dist/esm/shift-accordion.entry.js +27 -0
- package/dist/esm/shift-components.js +5 -5
- package/dist/esm/shift-slider.entry.js +68 -0
- package/dist/esm/shift-tab-content.entry.js +40 -0
- package/dist/esm/shift-tabs_2.entry.js +329 -0
- package/dist/esm/{type-68307857.js → type-B6613elJ.js} +32 -123
- package/dist/esm/{type-1d1a2052.js → type-CFBDfJID.js} +5 -5
- package/dist/esm/type-CnAEgqjH.js +82 -0
- package/dist/esm/vehicle-accessories_6.entry.js +1199 -0
- package/dist/esm/vehicle-info-layout-CNGGKAia.js +14 -0
- package/dist/esm/vehicle-lookup.entry.js +62 -47
- package/dist/esm/vin-extractor.entry.js +24 -32
- package/dist/locales/errors/ru.json +10 -10
- package/dist/locales/partLookup/deadStock/ru.json +3 -3
- package/dist/locales/partLookup/distributor/ru.json +14 -14
- package/dist/locales/partLookup/manufacturer/ar.json +3 -3
- package/dist/locales/partLookup/manufacturer/en.json +3 -3
- package/dist/locales/partLookup/manufacturer/ku.json +3 -3
- package/dist/locales/partLookup/manufacturer/ru.json +15 -15
- package/dist/locales/partLookup/manufacturer/type.ts +3 -3
- package/dist/locales/vehicleLookup/accessories/ru.json +6 -6
- package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/ar.json +7 -3
- package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/en.json +5 -1
- package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/ku.json +7 -3
- package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/ru.json +11 -7
- package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/type.ts +11 -7
- package/dist/locales/vehicleLookup/paintThickness/ru.json +7 -7
- package/dist/locales/vehicleLookup/serviceHistory/ru.json +8 -8
- package/dist/locales/vehicleLookup/specification/ru.json +8 -8
- package/dist/locales/vehicleLookup/warranty/ar.json +1 -0
- package/dist/locales/vehicleLookup/warranty/en.json +1 -0
- package/dist/locales/vehicleLookup/warranty/ku.json +1 -0
- package/dist/locales/vehicleLookup/warranty/ru.json +17 -16
- package/dist/locales/vehicleLookup/warranty/type.ts +1 -0
- package/dist/locales/vehicleLookup/wrapper-type.ts +2 -2
- package/dist/shift-components/p-010b5793.entry.js +5 -0
- package/dist/shift-components/p-03483842.entry.js +5 -0
- package/dist/shift-components/p-0a55771f.entry.js +5 -0
- package/dist/shift-components/p-0c8bbdd0.entry.js +5 -0
- package/dist/shift-components/p-20bdbcb5.entry.js +5 -0
- package/dist/shift-components/p-238f5df0.entry.js +5 -0
- package/dist/shift-components/p-42218765.entry.js +5 -0
- package/dist/shift-components/p-526a4ff7.entry.js +5 -0
- package/dist/shift-components/p-701e3fb0.entry.js +5 -0
- package/dist/shift-components/p-7225e52b.entry.js +5 -0
- package/dist/shift-components/p-BK16Cn81.js +5 -0
- package/dist/shift-components/p-BSpTbUWi.js +5 -0
- package/dist/shift-components/p-CC-dsMaG.js +5 -0
- package/dist/shift-components/p-CikEOqe0.js +6 -0
- package/dist/shift-components/p-CsAICJSF.js +5 -0
- package/dist/shift-components/p-CxstRFDI.js +5 -0
- package/dist/shift-components/p-DF2jCW4D.js +5 -0
- package/dist/shift-components/p-DdH9nNoC.js +5 -0
- package/dist/shift-components/p-Wtw8qj6x.js +5 -0
- package/dist/shift-components/p-a76db330.entry.js +5 -0
- package/dist/shift-components/p-d46b0857.entry.js +5 -0
- package/dist/shift-components/p-d843769d.entry.js +5 -0
- package/dist/shift-components/p-ebc23eef.entry.js +5 -0
- package/dist/shift-components/p-ef9ad340.entry.js +5 -0
- package/dist/shift-components/p-fyqwD4fB.js +5 -0
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/components/card-content.d.ts +10 -0
- package/dist/types/components/components/flexible-container.d.ts +27 -0
- package/dist/types/components/components/information-table.d.ts +22 -0
- package/dist/types/components/components/material-card.d.ts +16 -0
- package/dist/types/components/components/shift-accordion.d.ts +13 -0
- package/dist/types/components/components/shift-slider.d.ts +11 -0
- package/dist/types/components/components/shift-tab-content.d.ts +12 -0
- package/dist/types/components/components/shift-tabs.d.ts +12 -0
- package/dist/types/components/form-elements/form-dialog.d.ts +1 -2
- package/dist/types/components/form-elements/form-input.d.ts +1 -2
- package/dist/types/components/form-elements/form-select.d.ts +1 -2
- package/dist/types/components/form-elements/form-structure-error.d.ts +1 -2
- package/dist/types/components/form-elements/form-structure.d.ts +2 -3
- package/dist/types/components/form-elements/form-submit.d.ts +1 -1
- package/dist/types/components/form-elements/form-text-area.d.ts +1 -1
- package/dist/types/components/forms/contact-us-form.d.ts +1 -1
- package/dist/types/components/forms/service-booking-form.d.ts +1 -1
- package/dist/types/components/part-lookup/components/dead-stock-item.d.ts +14 -0
- package/dist/types/components/part-lookup/dead-stock-lookup.d.ts +26 -24
- package/dist/types/components/part-lookup/distributor-lookup.d.ts +25 -26
- package/dist/types/components/part-lookup/manufacturer-lookup.d.ts +25 -27
- package/dist/types/components/part-lookup/part-lookup.d.ts +17 -12
- package/dist/types/components/vehicle-lookup/components/CardsContainer.d.ts +5 -4
- package/dist/types/components/vehicle-lookup/components/StatusCard.d.ts +4 -2
- package/dist/types/components/vehicle-lookup/components/claimable-item-popover.d.ts +17 -0
- package/dist/types/components/vehicle-lookup/components/claimable-item.d.ts +12 -0
- package/dist/types/components/vehicle-lookup/vehicle-accessories.d.ts +25 -29
- package/dist/types/components/vehicle-lookup/vehicle-claimable-items.d.ts +72 -0
- package/dist/types/components/vehicle-lookup/vehicle-item-claim-form.d.ts +54 -0
- package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +27 -24
- package/dist/types/components/vehicle-lookup/vehicle-paint-thickness.d.ts +35 -0
- package/dist/types/components/vehicle-lookup/vehicle-service-history.d.ts +32 -0
- package/dist/types/components/vehicle-lookup/vehicle-specification.d.ts +22 -23
- package/dist/types/components/vehicle-lookup/{warranty-details.d.ts → vehicle-warranty-details.d.ts} +28 -31
- package/dist/types/components/vin-extractor/vin-extractor.d.ts +2 -2
- package/dist/types/components.d.ts +1068 -219
- package/dist/types/features/image-viewer/image-viewer-logic.d.ts +3 -0
- package/dist/types/features/image-viewer/image-viewer.d.ts +7 -0
- package/dist/types/features/image-viewer/index.d.ts +3 -0
- package/dist/types/features/image-viewer/interface.d.ts +5 -0
- package/dist/types/features/multi-lingual/get-local-language.d.ts +4 -0
- package/dist/types/features/multi-lingual/index.d.ts +3 -0
- package/dist/types/features/multi-lingual/interface.d.ts +8 -0
- package/dist/types/{global/lib/get-local-language.d.ts → features/multi-lingual/types.d.ts} +17 -6
- package/dist/types/features/part-lookup-components/index.d.ts +3 -0
- package/dist/types/features/part-lookup-components/interface.d.ts +25 -0
- package/dist/types/features/part-lookup-components/part-lookup-api-integration.d.ts +14 -0
- package/dist/types/features/part-lookup-components/types.d.ts +3 -0
- package/dist/types/features/vehicle-info-layout/index.d.ts +2 -0
- package/dist/types/features/vehicle-info-layout/interface.d.ts +3 -0
- package/dist/types/features/vehicle-info-layout/vehicle-info-layout.d.ts +11 -0
- package/dist/types/features/vehicle-lookup-component/index.d.ts +3 -0
- package/dist/types/features/vehicle-lookup-component/interface.d.ts +24 -0
- package/dist/types/features/vehicle-lookup-component/types.d.ts +17 -0
- package/dist/types/features/vehicle-lookup-component/vehicle-lookup-api-integration.d.ts +15 -0
- package/dist/types/global/assets/activation-icon.d.ts +6 -0
- package/dist/types/global/assets/add-icon.d.ts +6 -0
- package/dist/types/global/assets/alert-icon.d.ts +6 -0
- package/dist/types/global/assets/arrow-up-icon.d.ts +6 -0
- package/dist/types/global/assets/attach-icon.d.ts +6 -0
- package/dist/types/global/assets/check-icon.d.ts +6 -0
- package/dist/types/global/assets/empty-table-icon.d.ts +6 -0
- package/dist/types/global/assets/form-submit-svg.d.ts +6 -0
- package/dist/types/global/assets/print-icon.d.ts +6 -0
- package/dist/types/global/assets/triangle-icon.d.ts +6 -0
- package/dist/types/global/lib/children-with-tag.d.ts +1 -0
- package/dist/types/global/lib/container-has-tag.d.ts +1 -0
- package/dist/types/global/lib/parents-with-tag.d.ts +1 -0
- package/dist/types/global/lib/recaptcha.d.ts +1 -1
- package/dist/types/global/lib/scroll-into-container-view.d.ts +1 -0
- package/dist/types/global/types/components.d.ts +0 -1
- package/dist/types/global/types/forms.d.ts +1 -1
- package/dist/types/global/types/generated/part/branch-dead-stock-dto.d.ts +5 -0
- package/dist/types/global/types/generated/part/dead-stock-dto.d.ts +6 -0
- package/dist/types/global/types/generated/part/hs-code-dto.d.ts +5 -0
- package/dist/types/global/types/generated/part/part-lookup-dto.d.ts +27 -0
- package/dist/types/global/types/generated/part/part-price-dto.d.ts +10 -0
- package/dist/types/global/types/generated/part/price-dto.d.ts +6 -0
- package/dist/types/global/types/generated/part/stock-part-dto.d.ts +5 -0
- package/dist/types/global/types/generated/vehicle-lookup/accessory-dto.d.ts +5 -0
- package/dist/types/global/types/generated/vehicle-lookup/paint-thickness-dto.d.ts +6 -0
- package/dist/types/global/types/generated/vehicle-lookup/paint-thickness-image-dto.d.ts +4 -0
- package/dist/types/global/types/generated/vehicle-lookup/paint-thickness-part-dto.d.ts +5 -0
- package/dist/types/global/types/generated/vehicle-lookup/ssc-dto.d.ts +10 -0
- package/dist/types/global/types/generated/vehicle-lookup/ssc-labor-dto.d.ts +5 -0
- package/dist/types/global/types/generated/vehicle-lookup/ssc-part-dto.d.ts +5 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-broker-sale-information.d.ts +7 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-identifiers-dto.d.ts +9 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-labor-dto.d.ts +6 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-lookup-dto.d.ts +27 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-part-dto.d.ts +6 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-sale-information.d.ts +16 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-service-history-dto.d.ts +16 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-service-item-dto.d.ts +34 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-service-item-group.d.ts +6 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-specification-dto.d.ts +22 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-variant-info-dto.d.ts +5 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-warranty-dto.d.ts +8 -0
- package/dist/types/locale-mapper.d.ts +2 -2
- package/dist/types/locales/partLookup/distributor/type.d.ts +2 -2
- package/dist/types/locales/partLookup/manufacturer/type.d.ts +6 -6
- package/dist/types/locales/partLookup/wrapper-type.d.ts +8 -8
- package/dist/types/locales/vehicleLookup/accessories/type.d.ts +4 -4
- package/dist/types/locales/vehicleLookup/{dynamicClaim → claimableItems}/type.d.ts +32 -16
- package/dist/types/locales/vehicleLookup/paintThickness/type.d.ts +4 -4
- package/dist/types/locales/vehicleLookup/serviceHistory/type.d.ts +4 -4
- package/dist/types/locales/vehicleLookup/warranty/type.d.ts +2 -0
- package/dist/types/locales/vehicleLookup/wrapper-type.d.ts +56 -46
- package/dist/types/stencil-public-runtime.d.ts +23 -1
- package/package.json +9 -8
- package/LICENSE +0 -21
- package/dist/cjs/app-globals-4aa8f46f.js +0 -46
- package/dist/cjs/cn-f559f9e5.js +0 -2588
- package/dist/cjs/dynamic-claim_6.cjs.entry.js +0 -1224
- package/dist/cjs/dynamic-redeem.cjs.entry.js +0 -210
- package/dist/cjs/type-87edb16d.js +0 -53
- package/dist/collection/components/vehicle-lookup/components/SSCTable.js +0 -18
- package/dist/collection/components/vehicle-lookup/dynamic-claim.css +0 -1
- package/dist/collection/components/vehicle-lookup/dynamic-claim.js +0 -756
- package/dist/collection/components/vehicle-lookup/dynamic-redeem.css +0 -1
- package/dist/collection/components/vehicle-lookup/dynamic-redeem.js +0 -444
- package/dist/collection/components/vehicle-lookup/paint-thickness.css +0 -1
- package/dist/collection/components/vehicle-lookup/paint-thickness.js +0 -414
- package/dist/collection/components/vehicle-lookup/service-history.js +0 -397
- package/dist/collection/components/vehicle-lookup/warranty-details.css +0 -1
- package/dist/collection/global/api/partInformation.js +0 -32
- package/dist/collection/global/api/vehicleInformation.js +0 -48
- package/dist/collection/global/types/vehicle-information.js +0 -5
- package/dist/collection/templates/vehicle-lookup/vehicle-lookup.js +0 -285
- package/dist/components/dynamic-claim.js +0 -5
- package/dist/components/dynamic-redeem.js +0 -5
- package/dist/components/p-00a27a58.js +0 -5
- package/dist/components/p-0aea36b4.js +0 -5
- package/dist/components/p-0fa9085a.js +0 -5
- package/dist/components/p-1c45c079.js +0 -5
- package/dist/components/p-28cf4dbe.js +0 -5
- package/dist/components/p-29a57e34.js +0 -5
- package/dist/components/p-2c893802.js +0 -5
- package/dist/components/p-3a216a1c.js +0 -5
- package/dist/components/p-48a28736.js +0 -5
- package/dist/components/p-48a9b8e5.js +0 -5
- package/dist/components/p-4ddb3435.js +0 -5
- package/dist/components/p-5709db05.js +0 -5
- package/dist/components/p-5afcb14f.js +0 -5
- package/dist/components/p-7a1dd4fc.js +0 -5
- package/dist/components/p-7d3dd7c2.js +0 -5
- package/dist/components/p-8b1d90d7.js +0 -5
- package/dist/components/p-8cd53e18.js +0 -5
- package/dist/components/p-98d9e7ab.js +0 -5
- package/dist/components/p-aacd560d.js +0 -5
- package/dist/components/p-c4f620e9.js +0 -5
- package/dist/components/p-ca0bda87.js +0 -5
- package/dist/components/p-d3f029ed.js +0 -5
- package/dist/components/p-dfb3925b.js +0 -5
- package/dist/components/p-ec493f9b.js +0 -5
- package/dist/components/p-f437e795.js +0 -5
- package/dist/components/p-fab97ac7.js +0 -5
- package/dist/components/p-ffad35ad.js +0 -5
- package/dist/components/paint-thickness.js +0 -5
- package/dist/components/service-history.js +0 -5
- 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/dynamic-claim_6.entry.js +0 -1215
- package/dist/esm/dynamic-redeem.entry.js +0 -206
- package/dist/esm/type-885c56ae.js +0 -34
- package/dist/esm/type-dc3e60a4.js +0 -50
- package/dist/shift-components/p-025b3a45.entry.js +0 -5
- package/dist/shift-components/p-07ee30c6.js +0 -5
- package/dist/shift-components/p-232a8be0.entry.js +0 -5
- package/dist/shift-components/p-40e52936.entry.js +0 -5
- package/dist/shift-components/p-446d908d.js +0 -5
- package/dist/shift-components/p-50d68cc4.entry.js +0 -5
- package/dist/shift-components/p-67d3532e.js +0 -5
- package/dist/shift-components/p-69f1a7ff.entry.js +0 -5
- package/dist/shift-components/p-6b3651bd.js +0 -5
- package/dist/shift-components/p-6ec0650f.js +0 -5
- package/dist/shift-components/p-83b755da.entry.js +0 -5
- package/dist/shift-components/p-90bf4148.entry.js +0 -5
- package/dist/shift-components/p-9474a4da.js +0 -6
- package/dist/shift-components/p-98d9e7ab.js +0 -5
- package/dist/shift-components/p-997b9bfb.entry.js +0 -5
- package/dist/shift-components/p-9e11eb3e.entry.js +0 -5
- package/dist/shift-components/p-ab79b6e8.entry.js +0 -5
- package/dist/shift-components/p-c802d527.js +0 -5
- package/dist/types/components/vehicle-lookup/components/SSCTable.d.ts +0 -9
- package/dist/types/components/vehicle-lookup/dynamic-claim.d.ts +0 -65
- package/dist/types/components/vehicle-lookup/dynamic-redeem.d.ts +0 -48
- package/dist/types/components/vehicle-lookup/paint-thickness.d.ts +0 -39
- package/dist/types/components/vehicle-lookup/service-history.d.ts +0 -34
- package/dist/types/global/api/partInformation.d.ts +0 -19
- package/dist/types/global/api/vehicleInformation.d.ts +0 -33
- package/dist/types/global/lib/image-expansion.d.ts +0 -9
- package/dist/types/global/types/locale.d.ts +0 -11
- package/dist/types/global/types/part-information.d.ts +0 -53
- package/dist/types/global/types/vehicle-information.d.ts +0 -182
- package/loader/package.json +0 -11
- package/readme.md +0 -15
- /package/dist/cjs/{loader-baf2418b.js → loader-jtAYWeFG.js} +0 -0
- /package/dist/cjs/{validate-vin-32e95695.js → validate-vin-CJDIXpJO.js} +0 -0
- /package/dist/collection/{global/types/part-information.js → features/image-viewer/interface.js} +0 -0
- /package/dist/collection/{components/vehicle-lookup → global}/assets/activationRequired.svg +0 -0
- /package/dist/collection/{components/vehicle-lookup → global}/assets/cancelled.svg +0 -0
- /package/dist/collection/{components/vehicle-lookup → global}/assets/check.svg +0 -0
- /package/dist/collection/{components/vehicle-lookup → global}/assets/expired.svg +0 -0
- /package/dist/collection/{components/vehicle-lookup → global}/assets/pending.svg +0 -0
- /package/dist/collection/{components/vehicle-lookup → global}/assets/processed.svg +0 -0
- /package/dist/collection/{components/vehicle-lookup → global}/assets/x-mark.svg +0 -0
- /package/dist/components/{p-a21e2e2e.js → p-C-EQDloC.js} +0 -0
- /package/dist/components/{p-383b4ddf.js → p-CUREVASG.js} +0 -0
- /package/dist/esm/{loader-027b88af.js → loader-C-EQDloC.js} +0 -0
- /package/dist/esm/{validate-vin-f4d23a44.js → validate-vin-CUREVASG.js} +0 -0
- /package/dist/shift-components/{p-a21e2e2e.js → p-C-EQDloC.js} +0 -0
- /package/dist/shift-components/{p-383b4ddf.js → p-CUREVASG.js} +0 -0
|
@@ -3,22 +3,30 @@
|
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
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
6
|
import cn from "../../global/lib/cn";
|
|
10
|
-
import { getLocaleLanguage, getSharedLocal, sharedLocalesSchema } from "../../global/lib/get-local-language";
|
|
11
|
-
import { getVehicleInformation } from "../../global/api/vehicleInformation";
|
|
12
7
|
import warrantySchema from "../../locales/vehicleLookup/warranty/type";
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
import CardsContainer from "./components/CardsContainer";
|
|
9
|
+
import XIcon from "~assets/x-mark.svg";
|
|
10
|
+
import CheckIcon from "~assets/check.svg";
|
|
11
|
+
import { VehicleInfoLayout } from "../../features/vehicle-info-layout/index";
|
|
12
|
+
import { setVehicleLookupData, setVehicleLookupErrorState } from "../../features/vehicle-lookup-component/vehicle-lookup-api-integration";
|
|
13
|
+
import { getLocaleLanguage, getSharedLocal, sharedLocalesSchema } from "../../features/multi-lingual/index";
|
|
14
|
+
export class VehicleWarrantyDetails {
|
|
15
15
|
constructor() {
|
|
16
|
-
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
16
|
+
// ====== Start Localization
|
|
17
|
+
this.language = 'en';
|
|
18
|
+
this.locale = Object.assign({ sharedLocales: sharedLocalesSchema.getDefault() }, warrantySchema.getDefault());
|
|
19
|
+
// ====== End Localization
|
|
20
|
+
// ====== Start Vehicle info layout prop
|
|
21
|
+
this.coreOnly = false;
|
|
22
|
+
this.headers = {};
|
|
19
23
|
this.queryString = '';
|
|
24
|
+
this.isError = false;
|
|
25
|
+
this.isLoading = false;
|
|
26
|
+
// ====== End Vehicle Lookup Component Shared Logic
|
|
27
|
+
// ====== Start Component Logic
|
|
28
|
+
this.showSsc = false;
|
|
20
29
|
this.recaptchaKey = '';
|
|
21
|
-
this.language = 'en';
|
|
22
30
|
this.showWarranty = false;
|
|
23
31
|
this.unauthorizedSscLookupBaseUrl = '';
|
|
24
32
|
this.unauthorizedSscLookupQueryString = '';
|
|
@@ -33,54 +41,48 @@ export class WarrantyDetails {
|
|
|
33
41
|
this.customerName = null;
|
|
34
42
|
this.customerPhone = null;
|
|
35
43
|
this.customerEmail = null;
|
|
36
|
-
this.errorCallback = undefined;
|
|
37
|
-
this.loadingStateChange = undefined;
|
|
38
|
-
this.loadedResponse = undefined;
|
|
39
|
-
this.state = 'idle';
|
|
40
|
-
this.externalVin = null;
|
|
41
44
|
this.showRecaptcha = false;
|
|
42
|
-
this.errorMessage = null;
|
|
43
45
|
this.unInvoicedByBrokerName = null;
|
|
44
|
-
this.vehicleInformation = undefined;
|
|
45
46
|
this.checkingUnauthorizedSSC = false;
|
|
46
47
|
this.recaptchaRes = null;
|
|
47
|
-
this.headers = {};
|
|
48
|
-
this.sharedLocales = sharedLocalesSchema.getDefault();
|
|
49
|
-
this.locale = warrantySchema.getDefault();
|
|
50
48
|
}
|
|
51
49
|
async componentWillLoad() {
|
|
52
50
|
await this.changeLanguage(this.language);
|
|
53
51
|
}
|
|
54
52
|
async changeLanguage(newLanguage) {
|
|
55
|
-
const
|
|
56
|
-
this.locale =
|
|
57
|
-
this.sharedLocales = localeResponses[1];
|
|
53
|
+
const [sharedLocales, locale] = await Promise.all([getSharedLocal(newLanguage), getLocaleLanguage(newLanguage, 'vehicleLookup.warranty', warrantySchema)]);
|
|
54
|
+
this.locale = Object.assign({ sharedLocales }, locale);
|
|
58
55
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
56
|
+
async setMockData(newMockData) {
|
|
57
|
+
this.mockData = newMockData;
|
|
58
|
+
}
|
|
59
|
+
async fetchData(newData, headers = {}) {
|
|
60
|
+
this.recaptchaRes = null;
|
|
61
|
+
clearInterval(this.recaptchaIntervalRef);
|
|
62
|
+
await setVehicleLookupData(this, newData, headers, {
|
|
63
|
+
beforeAssignment: async (response, { scopedTimeoutRef }) => {
|
|
64
|
+
var _a, _b, _c;
|
|
65
|
+
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)
|
|
66
|
+
this.unInvoicedByBrokerName = response.saleInformation.broker.brokerName;
|
|
67
|
+
else
|
|
68
|
+
this.unInvoicedByBrokerName = null;
|
|
69
|
+
await this.handleInitializingRecaptcha(response, scopedTimeoutRef);
|
|
70
|
+
return response;
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
async setErrorMessage(message) {
|
|
75
|
+
setVehicleLookupErrorState(this, message);
|
|
76
|
+
}
|
|
77
|
+
onLoadingChange(newValue) {
|
|
78
|
+
if (this.loadingStateChange)
|
|
79
|
+
this.loadingStateChange(newValue);
|
|
76
80
|
}
|
|
77
|
-
async handleInitializingRecaptcha(
|
|
78
|
-
|
|
79
|
-
if (((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.isAuthorized) === false && this.showSsc && this.recaptchaKey !== '') {
|
|
81
|
+
async handleInitializingRecaptcha(newVehicleLookup, scopedTimeoutRef) {
|
|
82
|
+
if ((newVehicleLookup === null || newVehicleLookup === void 0 ? void 0 : newVehicleLookup.isAuthorized) === false && this.showSsc && this.recaptchaKey !== '') {
|
|
80
83
|
grecaptcha.reset();
|
|
81
|
-
await new Promise(r => setTimeout(r, 400));
|
|
84
|
+
// await new Promise(r => setTimeout(r, 400));
|
|
82
85
|
this.recaptchaIntervalRef = setInterval(async () => {
|
|
83
|
-
var _a;
|
|
84
86
|
const recaptchaResponse = grecaptcha.getResponse();
|
|
85
87
|
if (recaptchaResponse) {
|
|
86
88
|
clearInterval(this.recaptchaIntervalRef);
|
|
@@ -98,8 +100,7 @@ export class WarrantyDetails {
|
|
|
98
100
|
else {
|
|
99
101
|
this.checkingUnauthorizedSSC = true;
|
|
100
102
|
this.showRecaptcha = false;
|
|
101
|
-
|
|
102
|
-
const response = await fetch(`${this.unauthorizedSscLookupBaseUrl}${vin}/${(_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.sscLogId}?${this.unauthorizedSscLookupQueryString}`, {
|
|
103
|
+
const response = await fetch(`${this.unauthorizedSscLookupBaseUrl}${newVehicleLookup === null || newVehicleLookup === void 0 ? void 0 : newVehicleLookup.vin}/${newVehicleLookup === null || newVehicleLookup === void 0 ? void 0 : newVehicleLookup.sscLogId}?${this.unauthorizedSscLookupQueryString}`, {
|
|
103
104
|
signal: this.abortController.signal,
|
|
104
105
|
headers: Object.assign(Object.assign({}, this.headers), { 'Ssc-Recaptcha-Token': recaptchaResponse }),
|
|
105
106
|
});
|
|
@@ -123,59 +124,6 @@ export class WarrantyDetails {
|
|
|
123
124
|
this.showRecaptcha = false;
|
|
124
125
|
}
|
|
125
126
|
}
|
|
126
|
-
async setData(newData, headers = {}) {
|
|
127
|
-
this.recaptchaRes = null;
|
|
128
|
-
this.headers = headers;
|
|
129
|
-
clearTimeout(this.networkTimeoutRef);
|
|
130
|
-
clearInterval(this.recaptchaIntervalRef);
|
|
131
|
-
if (this.abortController)
|
|
132
|
-
this.abortController.abort();
|
|
133
|
-
this.abortController = new AbortController();
|
|
134
|
-
let scopedTimeoutRef;
|
|
135
|
-
const isVinRequest = typeof newData === 'string';
|
|
136
|
-
const vin = isVinRequest ? newData : newData === null || newData === void 0 ? void 0 : newData.vin;
|
|
137
|
-
this.externalVin = vin;
|
|
138
|
-
try {
|
|
139
|
-
if (!vin || vin.trim().length === 0) {
|
|
140
|
-
this.state = 'idle';
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
if (this.state === 'data' || this.state === 'error') {
|
|
144
|
-
this.state = (this.state + '-loading');
|
|
145
|
-
}
|
|
146
|
-
else
|
|
147
|
-
this.state = 'loading';
|
|
148
|
-
await new Promise(r => {
|
|
149
|
-
scopedTimeoutRef = setTimeout(r, 600);
|
|
150
|
-
this.networkTimeoutRef = scopedTimeoutRef;
|
|
151
|
-
});
|
|
152
|
-
const vehicleResponse = isVinRequest ? await getVehicleInformation(this, { scopedTimeoutRef, vin, mockData }, headers) : newData;
|
|
153
|
-
if (this.networkTimeoutRef === scopedTimeoutRef) {
|
|
154
|
-
if (!vehicleResponse)
|
|
155
|
-
throw new Error('wrongResponseFormat');
|
|
156
|
-
this.handleSettingData(vehicleResponse);
|
|
157
|
-
this.handleInitializingRecaptcha(vin, scopedTimeoutRef);
|
|
158
|
-
}
|
|
159
|
-
this.errorMessage = null;
|
|
160
|
-
this.state = 'data';
|
|
161
|
-
}
|
|
162
|
-
catch (error) {
|
|
163
|
-
if (error && (error === null || error === void 0 ? void 0 : error.name) === 'AbortError')
|
|
164
|
-
return;
|
|
165
|
-
if (this.errorCallback)
|
|
166
|
-
this.errorCallback(error.message);
|
|
167
|
-
console.error(error);
|
|
168
|
-
this.setErrorMessage(error.message);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
async setErrorMessage(message) {
|
|
172
|
-
this.state = 'error';
|
|
173
|
-
this.vehicleInformation = null;
|
|
174
|
-
this.errorMessage = message;
|
|
175
|
-
}
|
|
176
|
-
async fetchData(requestedVin = this.externalVin, headers = {}) {
|
|
177
|
-
await this.setData(requestedVin, headers);
|
|
178
|
-
}
|
|
179
127
|
async componentDidLoad() {
|
|
180
128
|
if (this.recaptchaKey !== '') {
|
|
181
129
|
const script = document.createElement('script');
|
|
@@ -186,38 +134,85 @@ export class WarrantyDetails {
|
|
|
186
134
|
document.head.appendChild(script);
|
|
187
135
|
}
|
|
188
136
|
}
|
|
189
|
-
|
|
190
|
-
mockData = newMockData;
|
|
191
|
-
}
|
|
192
|
-
async loadingListener() {
|
|
193
|
-
if (this.loadingStateChange)
|
|
194
|
-
this.loadingStateChange(this.state.includes('loading'));
|
|
195
|
-
}
|
|
137
|
+
// ====== End Component Logic
|
|
196
138
|
render() {
|
|
197
|
-
var _a, _b, _c, _d, _e;
|
|
198
|
-
|
|
139
|
+
var _a, _b, _c, _d, _e, _f;
|
|
140
|
+
const tableHeaders = [
|
|
141
|
+
{
|
|
142
|
+
width: 200,
|
|
143
|
+
key: 'sscTableCode',
|
|
144
|
+
label: this.locale.sscTableCode,
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
width: 400,
|
|
148
|
+
key: 'sscTableDescription',
|
|
149
|
+
label: this.locale.sscTableDescription,
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
width: 200,
|
|
153
|
+
key: 'sscTableRepairStatus',
|
|
154
|
+
label: this.locale.sscTableRepairStatus,
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
width: 200,
|
|
158
|
+
key: 'sscTableOPCode',
|
|
159
|
+
label: this.locale.sscTableOPCode,
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
width: 200,
|
|
163
|
+
key: 'sscTablePartNumber',
|
|
164
|
+
label: this.locale.sscTablePartNumber,
|
|
165
|
+
},
|
|
166
|
+
];
|
|
167
|
+
const rows = !((_a = this.vehicleLookup) === null || _a === void 0 ? void 0 : _a.ssc)
|
|
168
|
+
? []
|
|
169
|
+
: (_b = this.vehicleLookup) === null || _b === void 0 ? void 0 : _b.ssc.map(sscItem => ({
|
|
170
|
+
sscTableCode: sscItem === null || sscItem === void 0 ? void 0 : sscItem.sscCode,
|
|
171
|
+
sscTableDescription: sscItem === null || sscItem === void 0 ? void 0 : sscItem.description,
|
|
172
|
+
sscTableRepairStatus: () => (h("div", { class: "table-cell-container" }, h("img", { class: "table-status-icon", src: (sscItem === null || sscItem === void 0 ? void 0 : sscItem.repaired) ? CheckIcon : XIcon }), " ", sscItem === null || sscItem === void 0 ? void 0 :
|
|
173
|
+
sscItem.repairDate)),
|
|
174
|
+
sscTableOPCode: () => (h("div", { class: "table-cell-container table-cell-labors-container" }, !!(sscItem === null || sscItem === void 0 ? void 0 : sscItem.labors.length)
|
|
175
|
+
? sscItem === null || sscItem === void 0 ? void 0 : sscItem.labors.map(labor => (h("div", { key: labor === null || labor === void 0 ? void 0 : labor.laborCode, class: "success" }, labor === null || labor === void 0 ? void 0 : labor.laborCode)))
|
|
176
|
+
: '...')),
|
|
177
|
+
sscTablePartNumber: () => (h("div", { class: "table-cell-container table-cell-parts-container" }, !!(sscItem === null || sscItem === void 0 ? void 0 : sscItem.parts.length)
|
|
178
|
+
? sscItem === null || sscItem === void 0 ? void 0 : sscItem.parts.map(part => (h("div", { key: part === null || part === void 0 ? void 0 : part.partNumber, class: (part === null || part === void 0 ? void 0 : part.isAvailable) ? 'success' : 'reject' }, part === null || part === void 0 ? void 0 : part.partNumber)))
|
|
179
|
+
: '...')),
|
|
180
|
+
}));
|
|
181
|
+
const templateRow = {
|
|
182
|
+
sscTableOPCode: () => h("div", { key: '2bf9883223f556cade2096a4a65301b150c07519', class: "h-[25px]" }),
|
|
183
|
+
sscTablePartNumber: () => h("div", { key: 'b565fc2b9099e4466d0d125888ec560194b7075f', class: "h-[25px]" }),
|
|
184
|
+
sscTableRepairStatus: () => h("div", { key: '111268a1f665d8d8d7233123bac0ec7fd526ccb4', class: "h-[25px]" }),
|
|
185
|
+
};
|
|
186
|
+
return (h(Host, { key: 'af4f7f264e7683b9436340a36a3262ecb001c921' }, h(VehicleInfoLayout, { key: 'f37e2908aa9656fedeac6442ca8286ce9a9976e6', isError: this.isError, coreOnly: this.coreOnly, isLoading: this.isLoading, header: (_c = this.vehicleLookup) === null || _c === void 0 ? void 0 : _c.vin, direction: this.locale.sharedLocales.direction, errorMessage: this.locale.sharedLocales.errors[this.errorMessage] || this.locale.sharedLocales.errors.wildCard }, h("div", { key: 'b0015df327ff5673695ced677cde2d95fade6c93', class: "p-[16px]" }, this.showWarranty && (h(CardsContainer, { key: 'c9e5d546d9f9f6e01b187dfd9c5c02d1073303d6', isLoading: this.isLoading, warrantyLocale: this.locale, vehicleInformation: this.vehicleLookup, isAuthorized: (_d = this.vehicleLookup) === null || _d === void 0 ? void 0 : _d.isAuthorized, unInvoicedByBrokerName: this.unInvoicedByBrokerName })), h("div", { key: 'f2132df8863b519ebdbd59ef99f2ee6a22d9e0c7', class: "h-[8px]" }), h("flexible-container", { key: '609efd9db96dfe055890e4e04ff623b345e1de90', isOpened: this.showRecaptcha, classes: cn('w-fit mx-auto shift-skeleton', { loading: !this.showRecaptcha || this.isLoading }) }, h("div", { key: '2735b5323442a39bbb0de0bfbee3e0a3fead21df', style: { height: 'auto' }, class: "recaptcha-container" }, h("slot", { key: '023c78bd79b515e541d0a0e973e2b46870db26c8' })), this.recaptchaRes && (h("div", { key: '2dddeaed43b4929feec4751d162a29a3caf8ea6e', class: cn('recaptcha-response', !((_e = this.recaptchaRes) === null || _e === void 0 ? void 0 : _e.hasSSC) ? 'success-card' : 'reject-card ') }, this.locale[(_f = this.recaptchaRes) === null || _f === void 0 ? void 0 : _f.message])))), h("flexible-container", { key: 'dec279857eb74e870c6b2c42f2791fd870ecf933', isOpened: this.checkingUnauthorizedSSC, classes: "w-fit mx-auto" }, h("div", { key: '555873f6a881158e284edb0f3e5300e6b34d1c5f', class: "pt-[16px]" }, h("div", { key: '834c14261475bf3712ddddb35f009615fc84ab3e', class: "flex shift-skeleton flex-col gap-[8px]" }, h("strong", { key: '1d36783f3c926fe06825b0eb4ab8b3c27a026a08' }, this.locale.checkingTMC), h("div", { key: 'fd212eeedcc50149bdd41c76318a38b1a766ee63', class: "relative pt-[40px]" }, h("loading-spinner", { key: '7d9ace19a08b0eedd48663e462de823aba4a420e', isLoading: this.checkingUnauthorizedSSC }))))), h("div", { key: 'ec08b847e156a8a0ea2f9d599835c3e77d612ad6', class: "mt-[32px] mx-auto w-fit max-w-full" }, h("div", { key: '849df6df9a3c11af46446b3ae16a61c19665a7fe', class: "bg-[#f6f6f6] h-[50px] flex items-center justify-center px-[16px] font-bold text-[18px]" }, this.locale.sscCampings), h("div", { key: 'e1f0c2091342d28f598076802966fd23d7354a1e', class: "overflow-x-auto" }, h("information-table", { key: '0ef1792b51ed62f5b0ab280d9805b27739a0d120', isLoading: this.isLoading, templateRow: templateRow, rows: rows, headers: tableHeaders }))))));
|
|
199
187
|
}
|
|
200
|
-
static get is() { return "warranty-details"; }
|
|
188
|
+
static get is() { return "vehicle-warranty-details"; }
|
|
201
189
|
static get encapsulation() { return "shadow"; }
|
|
202
190
|
static get originalStyleUrls() {
|
|
203
191
|
return {
|
|
204
|
-
"$": ["warranty-details.css"]
|
|
192
|
+
"$": ["vehicle-warranty-details.css"]
|
|
205
193
|
};
|
|
206
194
|
}
|
|
207
195
|
static get styleUrls() {
|
|
208
196
|
return {
|
|
209
|
-
"$": ["warranty-details.css"]
|
|
197
|
+
"$": ["vehicle-warranty-details.css"]
|
|
210
198
|
};
|
|
211
199
|
}
|
|
212
200
|
static get properties() {
|
|
213
201
|
return {
|
|
214
|
-
"
|
|
202
|
+
"language": {
|
|
215
203
|
"type": "string",
|
|
204
|
+
"attribute": "language",
|
|
216
205
|
"mutable": false,
|
|
217
206
|
"complexType": {
|
|
218
|
-
"original": "
|
|
219
|
-
"resolved": "
|
|
220
|
-
"references": {
|
|
207
|
+
"original": "LanguageKeys",
|
|
208
|
+
"resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
|
|
209
|
+
"references": {
|
|
210
|
+
"LanguageKeys": {
|
|
211
|
+
"location": "import",
|
|
212
|
+
"path": "~features/multi-lingual",
|
|
213
|
+
"id": "src/features/multi-lingual/index.ts::LanguageKeys"
|
|
214
|
+
}
|
|
215
|
+
}
|
|
221
216
|
},
|
|
222
217
|
"required": false,
|
|
223
218
|
"optional": false,
|
|
@@ -225,12 +220,14 @@ export class WarrantyDetails {
|
|
|
225
220
|
"tags": [],
|
|
226
221
|
"text": ""
|
|
227
222
|
},
|
|
228
|
-
"
|
|
223
|
+
"getter": false,
|
|
224
|
+
"setter": false,
|
|
229
225
|
"reflect": false,
|
|
230
|
-
"defaultValue": "''"
|
|
226
|
+
"defaultValue": "'en'"
|
|
231
227
|
},
|
|
232
|
-
"
|
|
228
|
+
"coreOnly": {
|
|
233
229
|
"type": "boolean",
|
|
230
|
+
"attribute": "core-only",
|
|
234
231
|
"mutable": false,
|
|
235
232
|
"complexType": {
|
|
236
233
|
"original": "boolean",
|
|
@@ -243,12 +240,14 @@ export class WarrantyDetails {
|
|
|
243
240
|
"tags": [],
|
|
244
241
|
"text": ""
|
|
245
242
|
},
|
|
246
|
-
"
|
|
243
|
+
"getter": false,
|
|
244
|
+
"setter": false,
|
|
247
245
|
"reflect": false,
|
|
248
246
|
"defaultValue": "false"
|
|
249
247
|
},
|
|
250
|
-
"
|
|
248
|
+
"isDev": {
|
|
251
249
|
"type": "boolean",
|
|
250
|
+
"attribute": "is-dev",
|
|
252
251
|
"mutable": false,
|
|
253
252
|
"complexType": {
|
|
254
253
|
"original": "boolean",
|
|
@@ -261,12 +260,13 @@ export class WarrantyDetails {
|
|
|
261
260
|
"tags": [],
|
|
262
261
|
"text": ""
|
|
263
262
|
},
|
|
264
|
-
"
|
|
265
|
-
"
|
|
266
|
-
"
|
|
263
|
+
"getter": false,
|
|
264
|
+
"setter": false,
|
|
265
|
+
"reflect": false
|
|
267
266
|
},
|
|
268
|
-
"
|
|
267
|
+
"baseUrl": {
|
|
269
268
|
"type": "string",
|
|
269
|
+
"attribute": "base-url",
|
|
270
270
|
"mutable": false,
|
|
271
271
|
"complexType": {
|
|
272
272
|
"original": "string",
|
|
@@ -279,12 +279,32 @@ export class WarrantyDetails {
|
|
|
279
279
|
"tags": [],
|
|
280
280
|
"text": ""
|
|
281
281
|
},
|
|
282
|
-
"
|
|
283
|
-
"
|
|
284
|
-
"
|
|
282
|
+
"getter": false,
|
|
283
|
+
"setter": false,
|
|
284
|
+
"reflect": false
|
|
285
285
|
},
|
|
286
|
-
"
|
|
286
|
+
"headers": {
|
|
287
|
+
"type": "unknown",
|
|
288
|
+
"attribute": "headers",
|
|
289
|
+
"mutable": false,
|
|
290
|
+
"complexType": {
|
|
291
|
+
"original": "object",
|
|
292
|
+
"resolved": "object",
|
|
293
|
+
"references": {}
|
|
294
|
+
},
|
|
295
|
+
"required": false,
|
|
296
|
+
"optional": false,
|
|
297
|
+
"docs": {
|
|
298
|
+
"tags": [],
|
|
299
|
+
"text": ""
|
|
300
|
+
},
|
|
301
|
+
"getter": false,
|
|
302
|
+
"setter": false,
|
|
303
|
+
"defaultValue": "{}"
|
|
304
|
+
},
|
|
305
|
+
"queryString": {
|
|
287
306
|
"type": "string",
|
|
307
|
+
"attribute": "query-string",
|
|
288
308
|
"mutable": false,
|
|
289
309
|
"complexType": {
|
|
290
310
|
"original": "string",
|
|
@@ -297,36 +317,120 @@ export class WarrantyDetails {
|
|
|
297
317
|
"tags": [],
|
|
298
318
|
"text": ""
|
|
299
319
|
},
|
|
300
|
-
"
|
|
320
|
+
"getter": false,
|
|
321
|
+
"setter": false,
|
|
301
322
|
"reflect": false,
|
|
302
323
|
"defaultValue": "''"
|
|
303
324
|
},
|
|
304
|
-
"
|
|
305
|
-
"type": "
|
|
325
|
+
"errorCallback": {
|
|
326
|
+
"type": "unknown",
|
|
327
|
+
"attribute": "error-callback",
|
|
306
328
|
"mutable": false,
|
|
307
329
|
"complexType": {
|
|
308
|
-
"original": "
|
|
309
|
-
"resolved": "
|
|
330
|
+
"original": "(errorMessage: ErrorKeys) => void",
|
|
331
|
+
"resolved": "(errorMessage: OptionalKeys<{ noBaseUrl: string; invalidVin: string; vinNumberRequired: string; partNumberRequired: string; wrongResponseFormat: string; noPartsFound: string; noServiceAvailable: string; wrongFormStructure: string; wildCard: string; requestFailedPleaseTryAgainLater: string; }>) => void",
|
|
310
332
|
"references": {
|
|
311
|
-
"
|
|
333
|
+
"ErrorKeys": {
|
|
334
|
+
"location": "import",
|
|
335
|
+
"path": "~features/multi-lingual",
|
|
336
|
+
"id": "src/features/multi-lingual/index.ts::ErrorKeys"
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"required": false,
|
|
341
|
+
"optional": true,
|
|
342
|
+
"docs": {
|
|
343
|
+
"tags": [],
|
|
344
|
+
"text": ""
|
|
345
|
+
},
|
|
346
|
+
"getter": false,
|
|
347
|
+
"setter": false
|
|
348
|
+
},
|
|
349
|
+
"loadingStateChange": {
|
|
350
|
+
"type": "unknown",
|
|
351
|
+
"attribute": "loading-state-change",
|
|
352
|
+
"mutable": false,
|
|
353
|
+
"complexType": {
|
|
354
|
+
"original": "(isLoading: boolean) => void",
|
|
355
|
+
"resolved": "(isLoading: boolean) => void",
|
|
356
|
+
"references": {}
|
|
357
|
+
},
|
|
358
|
+
"required": false,
|
|
359
|
+
"optional": true,
|
|
360
|
+
"docs": {
|
|
361
|
+
"tags": [],
|
|
362
|
+
"text": ""
|
|
363
|
+
},
|
|
364
|
+
"getter": false,
|
|
365
|
+
"setter": false
|
|
366
|
+
},
|
|
367
|
+
"loadedResponse": {
|
|
368
|
+
"type": "unknown",
|
|
369
|
+
"attribute": "loaded-response",
|
|
370
|
+
"mutable": false,
|
|
371
|
+
"complexType": {
|
|
372
|
+
"original": "(response: VehicleLookupDTO) => void",
|
|
373
|
+
"resolved": "(response: VehicleLookupDTO) => void",
|
|
374
|
+
"references": {
|
|
375
|
+
"VehicleLookupDTO": {
|
|
312
376
|
"location": "import",
|
|
313
|
-
"path": "~types/
|
|
314
|
-
"id": "src/global/types/
|
|
377
|
+
"path": "~types/generated/vehicle-lookup/vehicle-lookup-dto",
|
|
378
|
+
"id": "src/global/types/generated/vehicle-lookup/vehicle-lookup-dto.ts::VehicleLookupDTO"
|
|
315
379
|
}
|
|
316
380
|
}
|
|
317
381
|
},
|
|
318
382
|
"required": false,
|
|
383
|
+
"optional": true,
|
|
384
|
+
"docs": {
|
|
385
|
+
"tags": [],
|
|
386
|
+
"text": ""
|
|
387
|
+
},
|
|
388
|
+
"getter": false,
|
|
389
|
+
"setter": false
|
|
390
|
+
},
|
|
391
|
+
"showSsc": {
|
|
392
|
+
"type": "boolean",
|
|
393
|
+
"attribute": "show-ssc",
|
|
394
|
+
"mutable": false,
|
|
395
|
+
"complexType": {
|
|
396
|
+
"original": "boolean",
|
|
397
|
+
"resolved": "boolean",
|
|
398
|
+
"references": {}
|
|
399
|
+
},
|
|
400
|
+
"required": false,
|
|
319
401
|
"optional": false,
|
|
320
402
|
"docs": {
|
|
321
403
|
"tags": [],
|
|
322
404
|
"text": ""
|
|
323
405
|
},
|
|
324
|
-
"
|
|
406
|
+
"getter": false,
|
|
407
|
+
"setter": false,
|
|
325
408
|
"reflect": false,
|
|
326
|
-
"defaultValue": "
|
|
409
|
+
"defaultValue": "false"
|
|
410
|
+
},
|
|
411
|
+
"recaptchaKey": {
|
|
412
|
+
"type": "string",
|
|
413
|
+
"attribute": "recaptcha-key",
|
|
414
|
+
"mutable": false,
|
|
415
|
+
"complexType": {
|
|
416
|
+
"original": "string",
|
|
417
|
+
"resolved": "string",
|
|
418
|
+
"references": {}
|
|
419
|
+
},
|
|
420
|
+
"required": false,
|
|
421
|
+
"optional": false,
|
|
422
|
+
"docs": {
|
|
423
|
+
"tags": [],
|
|
424
|
+
"text": ""
|
|
425
|
+
},
|
|
426
|
+
"getter": false,
|
|
427
|
+
"setter": false,
|
|
428
|
+
"reflect": false,
|
|
429
|
+
"defaultValue": "''"
|
|
327
430
|
},
|
|
328
431
|
"showWarranty": {
|
|
329
432
|
"type": "boolean",
|
|
433
|
+
"attribute": "show-warranty",
|
|
330
434
|
"mutable": false,
|
|
331
435
|
"complexType": {
|
|
332
436
|
"original": "boolean",
|
|
@@ -339,12 +443,14 @@ export class WarrantyDetails {
|
|
|
339
443
|
"tags": [],
|
|
340
444
|
"text": ""
|
|
341
445
|
},
|
|
342
|
-
"
|
|
446
|
+
"getter": false,
|
|
447
|
+
"setter": false,
|
|
343
448
|
"reflect": false,
|
|
344
449
|
"defaultValue": "false"
|
|
345
450
|
},
|
|
346
451
|
"unauthorizedSscLookupBaseUrl": {
|
|
347
452
|
"type": "string",
|
|
453
|
+
"attribute": "unauthorized-ssc-lookup-base-url",
|
|
348
454
|
"mutable": false,
|
|
349
455
|
"complexType": {
|
|
350
456
|
"original": "string",
|
|
@@ -357,12 +463,14 @@ export class WarrantyDetails {
|
|
|
357
463
|
"tags": [],
|
|
358
464
|
"text": ""
|
|
359
465
|
},
|
|
360
|
-
"
|
|
466
|
+
"getter": false,
|
|
467
|
+
"setter": false,
|
|
361
468
|
"reflect": false,
|
|
362
469
|
"defaultValue": "''"
|
|
363
470
|
},
|
|
364
471
|
"unauthorizedSscLookupQueryString": {
|
|
365
472
|
"type": "string",
|
|
473
|
+
"attribute": "unauthorized-ssc-lookup-query-string",
|
|
366
474
|
"mutable": false,
|
|
367
475
|
"complexType": {
|
|
368
476
|
"original": "string",
|
|
@@ -375,12 +483,14 @@ export class WarrantyDetails {
|
|
|
375
483
|
"tags": [],
|
|
376
484
|
"text": ""
|
|
377
485
|
},
|
|
378
|
-
"
|
|
486
|
+
"getter": false,
|
|
487
|
+
"setter": false,
|
|
379
488
|
"reflect": false,
|
|
380
489
|
"defaultValue": "''"
|
|
381
490
|
},
|
|
382
491
|
"cityId": {
|
|
383
492
|
"type": "string",
|
|
493
|
+
"attribute": "city-id",
|
|
384
494
|
"mutable": false,
|
|
385
495
|
"complexType": {
|
|
386
496
|
"original": "string",
|
|
@@ -393,12 +503,14 @@ export class WarrantyDetails {
|
|
|
393
503
|
"tags": [],
|
|
394
504
|
"text": ""
|
|
395
505
|
},
|
|
396
|
-
"
|
|
506
|
+
"getter": false,
|
|
507
|
+
"setter": false,
|
|
397
508
|
"reflect": false,
|
|
398
509
|
"defaultValue": "null"
|
|
399
510
|
},
|
|
400
511
|
"cityIntegrationId": {
|
|
401
512
|
"type": "string",
|
|
513
|
+
"attribute": "city-integration-id",
|
|
402
514
|
"mutable": false,
|
|
403
515
|
"complexType": {
|
|
404
516
|
"original": "string",
|
|
@@ -411,12 +523,14 @@ export class WarrantyDetails {
|
|
|
411
523
|
"tags": [],
|
|
412
524
|
"text": ""
|
|
413
525
|
},
|
|
414
|
-
"
|
|
526
|
+
"getter": false,
|
|
527
|
+
"setter": false,
|
|
415
528
|
"reflect": false,
|
|
416
529
|
"defaultValue": "null"
|
|
417
530
|
},
|
|
418
531
|
"companyId": {
|
|
419
532
|
"type": "string",
|
|
533
|
+
"attribute": "company-id",
|
|
420
534
|
"mutable": false,
|
|
421
535
|
"complexType": {
|
|
422
536
|
"original": "string",
|
|
@@ -429,12 +543,14 @@ export class WarrantyDetails {
|
|
|
429
543
|
"tags": [],
|
|
430
544
|
"text": ""
|
|
431
545
|
},
|
|
432
|
-
"
|
|
546
|
+
"getter": false,
|
|
547
|
+
"setter": false,
|
|
433
548
|
"reflect": false,
|
|
434
549
|
"defaultValue": "null"
|
|
435
550
|
},
|
|
436
551
|
"companyIntegrationId": {
|
|
437
552
|
"type": "string",
|
|
553
|
+
"attribute": "company-integration-id",
|
|
438
554
|
"mutable": false,
|
|
439
555
|
"complexType": {
|
|
440
556
|
"original": "string",
|
|
@@ -447,12 +563,14 @@ export class WarrantyDetails {
|
|
|
447
563
|
"tags": [],
|
|
448
564
|
"text": ""
|
|
449
565
|
},
|
|
450
|
-
"
|
|
566
|
+
"getter": false,
|
|
567
|
+
"setter": false,
|
|
451
568
|
"reflect": false,
|
|
452
569
|
"defaultValue": "null"
|
|
453
570
|
},
|
|
454
571
|
"companyBranchId": {
|
|
455
572
|
"type": "string",
|
|
573
|
+
"attribute": "company-branch-id",
|
|
456
574
|
"mutable": false,
|
|
457
575
|
"complexType": {
|
|
458
576
|
"original": "string",
|
|
@@ -465,12 +583,14 @@ export class WarrantyDetails {
|
|
|
465
583
|
"tags": [],
|
|
466
584
|
"text": ""
|
|
467
585
|
},
|
|
468
|
-
"
|
|
586
|
+
"getter": false,
|
|
587
|
+
"setter": false,
|
|
469
588
|
"reflect": false,
|
|
470
589
|
"defaultValue": "null"
|
|
471
590
|
},
|
|
472
591
|
"companyBranchIntegrationId": {
|
|
473
592
|
"type": "string",
|
|
593
|
+
"attribute": "company-branch-integration-id",
|
|
474
594
|
"mutable": false,
|
|
475
595
|
"complexType": {
|
|
476
596
|
"original": "string",
|
|
@@ -483,12 +603,14 @@ export class WarrantyDetails {
|
|
|
483
603
|
"tags": [],
|
|
484
604
|
"text": ""
|
|
485
605
|
},
|
|
486
|
-
"
|
|
606
|
+
"getter": false,
|
|
607
|
+
"setter": false,
|
|
487
608
|
"reflect": false,
|
|
488
609
|
"defaultValue": "null"
|
|
489
610
|
},
|
|
490
611
|
"userId": {
|
|
491
612
|
"type": "string",
|
|
613
|
+
"attribute": "user-id",
|
|
492
614
|
"mutable": false,
|
|
493
615
|
"complexType": {
|
|
494
616
|
"original": "string",
|
|
@@ -501,12 +623,14 @@ export class WarrantyDetails {
|
|
|
501
623
|
"tags": [],
|
|
502
624
|
"text": ""
|
|
503
625
|
},
|
|
504
|
-
"
|
|
626
|
+
"getter": false,
|
|
627
|
+
"setter": false,
|
|
505
628
|
"reflect": false,
|
|
506
629
|
"defaultValue": "null"
|
|
507
630
|
},
|
|
508
631
|
"brandIntegrationId": {
|
|
509
632
|
"type": "string",
|
|
633
|
+
"attribute": "brand-integration-id",
|
|
510
634
|
"mutable": false,
|
|
511
635
|
"complexType": {
|
|
512
636
|
"original": "string",
|
|
@@ -519,12 +643,14 @@ export class WarrantyDetails {
|
|
|
519
643
|
"tags": [],
|
|
520
644
|
"text": ""
|
|
521
645
|
},
|
|
522
|
-
"
|
|
646
|
+
"getter": false,
|
|
647
|
+
"setter": false,
|
|
523
648
|
"reflect": false,
|
|
524
649
|
"defaultValue": "null"
|
|
525
650
|
},
|
|
526
651
|
"customerName": {
|
|
527
652
|
"type": "string",
|
|
653
|
+
"attribute": "customer-name",
|
|
528
654
|
"mutable": false,
|
|
529
655
|
"complexType": {
|
|
530
656
|
"original": "string",
|
|
@@ -537,12 +663,14 @@ export class WarrantyDetails {
|
|
|
537
663
|
"tags": [],
|
|
538
664
|
"text": ""
|
|
539
665
|
},
|
|
540
|
-
"
|
|
666
|
+
"getter": false,
|
|
667
|
+
"setter": false,
|
|
541
668
|
"reflect": false,
|
|
542
669
|
"defaultValue": "null"
|
|
543
670
|
},
|
|
544
671
|
"customerPhone": {
|
|
545
672
|
"type": "string",
|
|
673
|
+
"attribute": "customer-phone",
|
|
546
674
|
"mutable": false,
|
|
547
675
|
"complexType": {
|
|
548
676
|
"original": "string",
|
|
@@ -555,12 +683,14 @@ export class WarrantyDetails {
|
|
|
555
683
|
"tags": [],
|
|
556
684
|
"text": ""
|
|
557
685
|
},
|
|
558
|
-
"
|
|
686
|
+
"getter": false,
|
|
687
|
+
"setter": false,
|
|
559
688
|
"reflect": false,
|
|
560
689
|
"defaultValue": "null"
|
|
561
690
|
},
|
|
562
691
|
"customerEmail": {
|
|
563
692
|
"type": "string",
|
|
693
|
+
"attribute": "customer-email",
|
|
564
694
|
"mutable": false,
|
|
565
695
|
"complexType": {
|
|
566
696
|
"original": "string",
|
|
@@ -573,126 +703,34 @@ export class WarrantyDetails {
|
|
|
573
703
|
"tags": [],
|
|
574
704
|
"text": ""
|
|
575
705
|
},
|
|
576
|
-
"
|
|
706
|
+
"getter": false,
|
|
707
|
+
"setter": false,
|
|
577
708
|
"reflect": false,
|
|
578
709
|
"defaultValue": "null"
|
|
579
|
-
},
|
|
580
|
-
"errorCallback": {
|
|
581
|
-
"type": "unknown",
|
|
582
|
-
"mutable": false,
|
|
583
|
-
"complexType": {
|
|
584
|
-
"original": "(errorMessage: ErrorKeys) => void",
|
|
585
|
-
"resolved": "(errorMessage: OptionalKeys<{ noBaseUrl: string; invalidVin: string; vinNumberRequired: string; partNumberRequired: string; wrongResponseFormat: string; noPartsFound: string; noServiceAvailable: string; wrongFormStructure: string; wildCard: string; requestFailedPleaseTryAgainLater: string; }>) => void",
|
|
586
|
-
"references": {
|
|
587
|
-
"ErrorKeys": {
|
|
588
|
-
"location": "import",
|
|
589
|
-
"path": "~lib/get-local-language",
|
|
590
|
-
"id": "src/global/lib/get-local-language.ts::ErrorKeys"
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
},
|
|
594
|
-
"required": false,
|
|
595
|
-
"optional": false,
|
|
596
|
-
"docs": {
|
|
597
|
-
"tags": [],
|
|
598
|
-
"text": ""
|
|
599
|
-
}
|
|
600
|
-
},
|
|
601
|
-
"loadingStateChange": {
|
|
602
|
-
"type": "unknown",
|
|
603
|
-
"mutable": false,
|
|
604
|
-
"complexType": {
|
|
605
|
-
"original": "(isLoading: boolean) => void",
|
|
606
|
-
"resolved": "(isLoading: boolean) => void",
|
|
607
|
-
"references": {}
|
|
608
|
-
},
|
|
609
|
-
"required": false,
|
|
610
|
-
"optional": true,
|
|
611
|
-
"docs": {
|
|
612
|
-
"tags": [],
|
|
613
|
-
"text": ""
|
|
614
|
-
}
|
|
615
|
-
},
|
|
616
|
-
"loadedResponse": {
|
|
617
|
-
"type": "unknown",
|
|
618
|
-
"mutable": false,
|
|
619
|
-
"complexType": {
|
|
620
|
-
"original": "(response: VehicleInformation) => void",
|
|
621
|
-
"resolved": "(response: VehicleInformation) => void",
|
|
622
|
-
"references": {
|
|
623
|
-
"VehicleInformation": {
|
|
624
|
-
"location": "import",
|
|
625
|
-
"path": "~types/vehicle-information",
|
|
626
|
-
"id": "src/global/types/vehicle-information.ts::VehicleInformation"
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
},
|
|
630
|
-
"required": false,
|
|
631
|
-
"optional": true,
|
|
632
|
-
"docs": {
|
|
633
|
-
"tags": [],
|
|
634
|
-
"text": ""
|
|
635
|
-
}
|
|
636
710
|
}
|
|
637
711
|
};
|
|
638
712
|
}
|
|
639
713
|
static get states() {
|
|
640
714
|
return {
|
|
641
|
-
"
|
|
642
|
-
"
|
|
643
|
-
"showRecaptcha": {},
|
|
715
|
+
"locale": {},
|
|
716
|
+
"isError": {},
|
|
644
717
|
"errorMessage": {},
|
|
718
|
+
"isLoading": {},
|
|
719
|
+
"vehicleLookup": {},
|
|
720
|
+
"showRecaptcha": {},
|
|
645
721
|
"unInvoicedByBrokerName": {},
|
|
646
|
-
"vehicleInformation": {},
|
|
647
722
|
"checkingUnauthorizedSSC": {},
|
|
648
|
-
"recaptchaRes": {}
|
|
649
|
-
"headers": {},
|
|
650
|
-
"sharedLocales": {},
|
|
651
|
-
"locale": {}
|
|
723
|
+
"recaptchaRes": {}
|
|
652
724
|
};
|
|
653
725
|
}
|
|
654
726
|
static get methods() {
|
|
655
727
|
return {
|
|
656
|
-
"
|
|
657
|
-
"complexType": {
|
|
658
|
-
"signature": "(newData: VehicleInformation | string, headers?: any) => Promise<void>",
|
|
659
|
-
"parameters": [{
|
|
660
|
-
"name": "newData",
|
|
661
|
-
"type": "string | VehicleInformation",
|
|
662
|
-
"docs": ""
|
|
663
|
-
}, {
|
|
664
|
-
"name": "headers",
|
|
665
|
-
"type": "any",
|
|
666
|
-
"docs": ""
|
|
667
|
-
}],
|
|
668
|
-
"references": {
|
|
669
|
-
"Promise": {
|
|
670
|
-
"location": "global",
|
|
671
|
-
"id": "global::Promise"
|
|
672
|
-
},
|
|
673
|
-
"VehicleInformation": {
|
|
674
|
-
"location": "import",
|
|
675
|
-
"path": "~types/vehicle-information",
|
|
676
|
-
"id": "src/global/types/vehicle-information.ts::VehicleInformation"
|
|
677
|
-
},
|
|
678
|
-
"ReturnType": {
|
|
679
|
-
"location": "global",
|
|
680
|
-
"id": "global::ReturnType"
|
|
681
|
-
}
|
|
682
|
-
},
|
|
683
|
-
"return": "Promise<void>"
|
|
684
|
-
},
|
|
685
|
-
"docs": {
|
|
686
|
-
"text": "",
|
|
687
|
-
"tags": []
|
|
688
|
-
}
|
|
689
|
-
},
|
|
690
|
-
"setErrorMessage": {
|
|
728
|
+
"setMockData": {
|
|
691
729
|
"complexType": {
|
|
692
|
-
"signature": "(
|
|
730
|
+
"signature": "(newMockData: VehicleLookupMock) => Promise<void>",
|
|
693
731
|
"parameters": [{
|
|
694
|
-
"name": "
|
|
695
|
-
"type": "
|
|
732
|
+
"name": "newMockData",
|
|
733
|
+
"type": "{ [key: string]: VehicleLookupDTO; }",
|
|
696
734
|
"docs": ""
|
|
697
735
|
}],
|
|
698
736
|
"references": {
|
|
@@ -700,10 +738,10 @@ export class WarrantyDetails {
|
|
|
700
738
|
"location": "global",
|
|
701
739
|
"id": "global::Promise"
|
|
702
740
|
},
|
|
703
|
-
"
|
|
741
|
+
"VehicleLookupMock": {
|
|
704
742
|
"location": "import",
|
|
705
|
-
"path": "~
|
|
706
|
-
"id": "src/
|
|
743
|
+
"path": "~features/vehicle-lookup-component",
|
|
744
|
+
"id": "src/features/vehicle-lookup-component/index.ts::VehicleLookupMock"
|
|
707
745
|
}
|
|
708
746
|
},
|
|
709
747
|
"return": "Promise<void>"
|
|
@@ -715,10 +753,10 @@ export class WarrantyDetails {
|
|
|
715
753
|
},
|
|
716
754
|
"fetchData": {
|
|
717
755
|
"complexType": {
|
|
718
|
-
"signature": "(
|
|
756
|
+
"signature": "(newData: VehicleLookupDTO | string, headers?: any) => Promise<void>",
|
|
719
757
|
"parameters": [{
|
|
720
|
-
"name": "
|
|
721
|
-
"type": "string",
|
|
758
|
+
"name": "newData",
|
|
759
|
+
"type": "string | VehicleLookupDTO",
|
|
722
760
|
"docs": ""
|
|
723
761
|
}, {
|
|
724
762
|
"name": "headers",
|
|
@@ -729,6 +767,11 @@ export class WarrantyDetails {
|
|
|
729
767
|
"Promise": {
|
|
730
768
|
"location": "global",
|
|
731
769
|
"id": "global::Promise"
|
|
770
|
+
},
|
|
771
|
+
"VehicleLookupDTO": {
|
|
772
|
+
"location": "import",
|
|
773
|
+
"path": "~types/generated/vehicle-lookup/vehicle-lookup-dto",
|
|
774
|
+
"id": "src/global/types/generated/vehicle-lookup/vehicle-lookup-dto.ts::VehicleLookupDTO"
|
|
732
775
|
}
|
|
733
776
|
},
|
|
734
777
|
"return": "Promise<void>"
|
|
@@ -738,12 +781,12 @@ export class WarrantyDetails {
|
|
|
738
781
|
"tags": []
|
|
739
782
|
}
|
|
740
783
|
},
|
|
741
|
-
"
|
|
784
|
+
"setErrorMessage": {
|
|
742
785
|
"complexType": {
|
|
743
|
-
"signature": "(
|
|
786
|
+
"signature": "(message: ErrorKeys) => Promise<void>",
|
|
744
787
|
"parameters": [{
|
|
745
|
-
"name": "
|
|
746
|
-
"type": "
|
|
788
|
+
"name": "message",
|
|
789
|
+
"type": "\"noBaseUrl\" | \"invalidVin\" | \"vinNumberRequired\" | \"partNumberRequired\" | \"wrongResponseFormat\" | \"noPartsFound\" | \"noServiceAvailable\" | \"wrongFormStructure\" | \"wildCard\" | \"requestFailedPleaseTryAgainLater\"",
|
|
747
790
|
"docs": ""
|
|
748
791
|
}],
|
|
749
792
|
"references": {
|
|
@@ -751,15 +794,10 @@ export class WarrantyDetails {
|
|
|
751
794
|
"location": "global",
|
|
752
795
|
"id": "global::Promise"
|
|
753
796
|
},
|
|
754
|
-
"
|
|
755
|
-
"location": "import",
|
|
756
|
-
"path": "~types/components",
|
|
757
|
-
"id": "src/global/types/components.ts::MockJson"
|
|
758
|
-
},
|
|
759
|
-
"VehicleInformation": {
|
|
797
|
+
"ErrorKeys": {
|
|
760
798
|
"location": "import",
|
|
761
|
-
"path": "~
|
|
762
|
-
"id": "src/
|
|
799
|
+
"path": "~features/multi-lingual",
|
|
800
|
+
"id": "src/features/multi-lingual/index.ts::ErrorKeys"
|
|
763
801
|
}
|
|
764
802
|
},
|
|
765
803
|
"return": "Promise<void>"
|
|
@@ -777,8 +815,8 @@ export class WarrantyDetails {
|
|
|
777
815
|
"propName": "language",
|
|
778
816
|
"methodName": "changeLanguage"
|
|
779
817
|
}, {
|
|
780
|
-
"propName": "
|
|
781
|
-
"methodName": "
|
|
818
|
+
"propName": "isLoading",
|
|
819
|
+
"methodName": "onLoadingChange"
|
|
782
820
|
}];
|
|
783
821
|
}
|
|
784
822
|
}
|