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
|
@@ -1,756 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built by ShiftSoftware
|
|
3
|
-
* Copyright (c)
|
|
4
|
-
*/
|
|
5
|
-
import { Host, h } from "@stencil/core";
|
|
6
|
-
import cn from "../../global/lib/cn";
|
|
7
|
-
import { getLocaleLanguage, getSharedLocal, sharedLocalesSchema } from "../../global/lib/get-local-language";
|
|
8
|
-
import expiredIcon from "./assets/expired.svg";
|
|
9
|
-
import pendingIcon from "./assets/pending.svg";
|
|
10
|
-
import cancelledIcon from "./assets/cancelled.svg";
|
|
11
|
-
import processedIcon from "./assets/processed.svg";
|
|
12
|
-
import activationRequiredIcon from "./assets/activationRequired.svg";
|
|
13
|
-
import { getVehicleInformation } from "../../global/api/vehicleInformation";
|
|
14
|
-
import dynamicClaimSchema from "../../locales/vehicleLookup/dynamicClaim/type";
|
|
15
|
-
let mockData = {};
|
|
16
|
-
const icons = {
|
|
17
|
-
expired: expiredIcon,
|
|
18
|
-
pending: pendingIcon,
|
|
19
|
-
processed: processedIcon,
|
|
20
|
-
cancelled: cancelledIcon,
|
|
21
|
-
activationRequired: activationRequiredIcon,
|
|
22
|
-
};
|
|
23
|
-
export class DynamicClaim {
|
|
24
|
-
constructor() {
|
|
25
|
-
this.pendingItemHighlighted = false;
|
|
26
|
-
this.onMouseLeave = () => {
|
|
27
|
-
clearTimeout(this.timeoutRef);
|
|
28
|
-
this.popupClasses = '';
|
|
29
|
-
this.timeoutRef = setTimeout(() => {
|
|
30
|
-
this.activePopupIndex = null;
|
|
31
|
-
}, 400);
|
|
32
|
-
};
|
|
33
|
-
this.onMouseEnter = (dynamicClaimItemHeader, idx) => {
|
|
34
|
-
clearTimeout(this.timeoutRef);
|
|
35
|
-
this.activePopupIndex = idx;
|
|
36
|
-
this.timeoutRef = setTimeout(() => {
|
|
37
|
-
const positionRef = dynamicClaimItemHeader.querySelector('.popup-position-ref');
|
|
38
|
-
this.popupPositionRef = positionRef;
|
|
39
|
-
this.calculatePopupPos(this.el.shadowRoot);
|
|
40
|
-
this.popupClasses = 'show';
|
|
41
|
-
}, 50);
|
|
42
|
-
};
|
|
43
|
-
this.baseUrl = undefined;
|
|
44
|
-
this.isDev = false;
|
|
45
|
-
this.queryString = '';
|
|
46
|
-
this.claimEndPoint = 'api/vehicle/swift-claim';
|
|
47
|
-
this.headers = {};
|
|
48
|
-
this.language = 'en';
|
|
49
|
-
this.errorCallback = undefined;
|
|
50
|
-
this.loadingStateChange = undefined;
|
|
51
|
-
this.loadedResponse = undefined;
|
|
52
|
-
this.activate = undefined;
|
|
53
|
-
this.print = undefined;
|
|
54
|
-
this.sharedLocales = sharedLocalesSchema.getDefault();
|
|
55
|
-
this.locale = dynamicClaimSchema.getDefault();
|
|
56
|
-
this.isIdle = true;
|
|
57
|
-
this.popupClasses = '';
|
|
58
|
-
this.isLoading = false;
|
|
59
|
-
this.showPrintBox = false;
|
|
60
|
-
this.lastSuccessfullClaimResponse = null;
|
|
61
|
-
this.externalVin = null;
|
|
62
|
-
this.errorMessage = null;
|
|
63
|
-
this.activePopupIndex = null;
|
|
64
|
-
this.vehicleInformation = undefined;
|
|
65
|
-
}
|
|
66
|
-
async componentWillLoad() {
|
|
67
|
-
await this.changeLanguage(this.language);
|
|
68
|
-
}
|
|
69
|
-
async changeLanguage(newLanguage) {
|
|
70
|
-
const localeResponses = await Promise.all([getLocaleLanguage(newLanguage, 'vehicleLookup.dynamicClaim', dynamicClaimSchema), getSharedLocal(newLanguage)]);
|
|
71
|
-
this.locale = localeResponses[0];
|
|
72
|
-
this.sharedLocales = localeResponses[1];
|
|
73
|
-
}
|
|
74
|
-
async componentDidLoad() {
|
|
75
|
-
this.dynamicClaimBody = this.el.shadowRoot.querySelector('.dynamic-claim-body');
|
|
76
|
-
this.dynamicRedeem = this.el.shadowRoot.getElementById('dynamic-redeem');
|
|
77
|
-
this.dynamicClaimProgressBar = this.el.shadowRoot.querySelector('.dynamic-claim-progress-bar');
|
|
78
|
-
}
|
|
79
|
-
async setMockData(newMockData) {
|
|
80
|
-
mockData = newMockData;
|
|
81
|
-
}
|
|
82
|
-
async setData(newData, headers = {}) {
|
|
83
|
-
clearTimeout(this.networkTimeoutRef);
|
|
84
|
-
if (this.abortController)
|
|
85
|
-
this.abortController.abort();
|
|
86
|
-
this.abortController = new AbortController();
|
|
87
|
-
let scopedTimeoutRef;
|
|
88
|
-
const isVinRequest = typeof newData === 'string';
|
|
89
|
-
const vin = isVinRequest ? newData : newData === null || newData === void 0 ? void 0 : newData.vin;
|
|
90
|
-
this.externalVin = vin;
|
|
91
|
-
try {
|
|
92
|
-
if (!vin || vin.trim().length === 0) {
|
|
93
|
-
this.isIdle = true;
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
this.isLoading = true;
|
|
97
|
-
this.showPrintBox = false;
|
|
98
|
-
this.isIdle = false;
|
|
99
|
-
await new Promise(r => {
|
|
100
|
-
scopedTimeoutRef = setTimeout(r, 1000);
|
|
101
|
-
this.networkTimeoutRef = scopedTimeoutRef;
|
|
102
|
-
});
|
|
103
|
-
const vehicleResponse = isVinRequest ? await getVehicleInformation(this, { scopedTimeoutRef, vin, mockData }, headers) : newData;
|
|
104
|
-
if (this.networkTimeoutRef === scopedTimeoutRef) {
|
|
105
|
-
if (!vehicleResponse)
|
|
106
|
-
throw new Error('wrongResponseFormat');
|
|
107
|
-
if (!Array.isArray(vehicleResponse.serviceItems))
|
|
108
|
-
throw new Error('noServiceAvailable');
|
|
109
|
-
this.vehicleInformation = vehicleResponse;
|
|
110
|
-
}
|
|
111
|
-
this.errorMessage = null;
|
|
112
|
-
this.isLoading = false;
|
|
113
|
-
}
|
|
114
|
-
catch (error) {
|
|
115
|
-
if (error && (error === null || error === void 0 ? void 0 : error.name) === 'AbortError')
|
|
116
|
-
return;
|
|
117
|
-
if (this.errorCallback)
|
|
118
|
-
this.errorCallback(error.message);
|
|
119
|
-
console.error(error);
|
|
120
|
-
this.setErrorMessage(error.message);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
async setErrorMessage(message) {
|
|
124
|
-
this.isIdle = false;
|
|
125
|
-
this.isLoading = false;
|
|
126
|
-
this.vehicleInformation = null;
|
|
127
|
-
this.errorMessage = message;
|
|
128
|
-
}
|
|
129
|
-
async fetchData(requestedVin = this.externalVin, headers = {}) {
|
|
130
|
-
await this.setData(requestedVin, headers);
|
|
131
|
-
}
|
|
132
|
-
onLoadingChange(newValue) {
|
|
133
|
-
if (this.loadingStateChange)
|
|
134
|
-
this.loadingStateChange(newValue);
|
|
135
|
-
this.setLoadingUi(newValue);
|
|
136
|
-
}
|
|
137
|
-
async setLoadingUi(isLoading) {
|
|
138
|
-
if (!isLoading) {
|
|
139
|
-
this.dynamicClaimProgressBar.style.width = '0';
|
|
140
|
-
await new Promise(r => setTimeout(r, 200));
|
|
141
|
-
this.updateProgressBar();
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
updateProgressBar() {
|
|
145
|
-
var _a;
|
|
146
|
-
const serviceItems = ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceItems) || [];
|
|
147
|
-
if (serviceItems.filter(x => x.status === 'pending').length === 0) {
|
|
148
|
-
if (serviceItems.length === 0 || serviceItems.filter(x => x.status === 'activationRequired').length === serviceItems.length)
|
|
149
|
-
this.dynamicClaimProgressBar.style.width = '0%';
|
|
150
|
-
else
|
|
151
|
-
this.dynamicClaimProgressBar.style.width = '100%';
|
|
152
|
-
this.dynamicClaimBody.scrollTo({
|
|
153
|
-
left: this.dynamicClaimBody.scrollWidth,
|
|
154
|
-
behavior: 'smooth',
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
const firstPendingItem = serviceItems.find(x => x.status === 'pending');
|
|
159
|
-
const firstPendingItemIndex = serviceItems.indexOf(firstPendingItem) + 1;
|
|
160
|
-
const firstPendingItemRef = this.dynamicClaimBody.getElementsByClassName('dynamic-claim-item')[firstPendingItemIndex - 1];
|
|
161
|
-
this.dynamicClaimProgressBar.style.width = (firstPendingItemIndex / serviceItems.length - 1 / (serviceItems.length * 2)) * 100 + '%';
|
|
162
|
-
this.dynamicClaimBody.scrollTo({
|
|
163
|
-
left: firstPendingItemRef.offsetLeft - firstPendingItemRef.clientWidth * 3,
|
|
164
|
-
behavior: 'smooth',
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
resetProgressBar() {
|
|
169
|
-
setTimeout(() => {
|
|
170
|
-
this.updateProgressBar();
|
|
171
|
-
}, 100);
|
|
172
|
-
}
|
|
173
|
-
windowScrollListener(newValue) {
|
|
174
|
-
if (newValue) {
|
|
175
|
-
this.scrollListenerRef = () => this.calculatePopupPos(this.el.shadowRoot);
|
|
176
|
-
window.addEventListener('scroll', this.scrollListenerRef);
|
|
177
|
-
this.dynamicClaimBody.addEventListener('scroll', this.scrollListenerRef);
|
|
178
|
-
}
|
|
179
|
-
else {
|
|
180
|
-
window.removeEventListener('scroll', this.scrollListenerRef);
|
|
181
|
-
this.dynamicClaimBody.removeEventListener('scroll', this.scrollListenerRef);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
calculatePopupPos(root) {
|
|
185
|
-
const popupPositionRef = root.querySelector('.popup-position-ref');
|
|
186
|
-
let { x, y } = popupPositionRef.getBoundingClientRect();
|
|
187
|
-
const popupContainer = popupPositionRef.querySelector('.popup-container');
|
|
188
|
-
const { width } = popupContainer.getBoundingClientRect();
|
|
189
|
-
const popupInfo = popupContainer.querySelector('.dynamic-claim-item-popup-info');
|
|
190
|
-
const windowWidth = window.innerWidth; // Get the viewport's width
|
|
191
|
-
popupContainer.style.top = `${y}px`;
|
|
192
|
-
popupContainer.style.left = `${x - width / 2}px`;
|
|
193
|
-
const offsetFromLeft = x - width / 2; // Distance from left side of the viewport
|
|
194
|
-
const offsetFromRight = windowWidth - (x + width / 2); // Distance from right side of the viewport
|
|
195
|
-
let movingNeeded = 0;
|
|
196
|
-
let horizontalMargin = 16;
|
|
197
|
-
if (offsetFromRight < horizontalMargin)
|
|
198
|
-
movingNeeded = offsetFromRight - horizontalMargin;
|
|
199
|
-
else if (offsetFromLeft < horizontalMargin)
|
|
200
|
-
movingNeeded = Math.abs(offsetFromLeft - horizontalMargin);
|
|
201
|
-
popupInfo.style.transform = `translateX(${movingNeeded}px)`;
|
|
202
|
-
}
|
|
203
|
-
removeLoadAnimationClass(event) {
|
|
204
|
-
const component = event.target;
|
|
205
|
-
component.classList.remove('load-animation');
|
|
206
|
-
}
|
|
207
|
-
async completeClaim(response) {
|
|
208
|
-
var _a;
|
|
209
|
-
const serviceItems = ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceItems) || [];
|
|
210
|
-
const item = this.cachedClaimItem;
|
|
211
|
-
const serviceDataClone = JSON.parse(JSON.stringify(serviceItems));
|
|
212
|
-
const index = serviceItems.indexOf(item);
|
|
213
|
-
const pendingItemsBefore = serviceDataClone.slice(0, index).filter(x => x.status === 'pending');
|
|
214
|
-
serviceDataClone[index].claimable = false;
|
|
215
|
-
serviceDataClone[index].status = 'processed';
|
|
216
|
-
pendingItemsBefore.forEach(function (otherItem) {
|
|
217
|
-
otherItem.status = 'cancelled';
|
|
218
|
-
});
|
|
219
|
-
this.pendingItemHighlighted = false;
|
|
220
|
-
const vehicleDataClone = JSON.parse(JSON.stringify(this.vehicleInformation));
|
|
221
|
-
vehicleDataClone.serviceItems = serviceDataClone;
|
|
222
|
-
this.vehicleInformation = JSON.parse(JSON.stringify(vehicleDataClone));
|
|
223
|
-
this.showPrintBox = true;
|
|
224
|
-
this.lastSuccessfullClaimResponse = response;
|
|
225
|
-
}
|
|
226
|
-
async claim(item) {
|
|
227
|
-
var _a;
|
|
228
|
-
const serviceItems = ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceItems) || [];
|
|
229
|
-
const vinDataClone = JSON.parse(JSON.stringify(serviceItems));
|
|
230
|
-
const index = serviceItems.indexOf(item);
|
|
231
|
-
//Find other items before this item that have status 'pending'
|
|
232
|
-
let pendingItemsBefore = vinDataClone.slice(0, index).filter(x => x.status === 'pending');
|
|
233
|
-
this.cachedClaimItem = item;
|
|
234
|
-
if (item.maximumMileage === null) {
|
|
235
|
-
pendingItemsBefore = [];
|
|
236
|
-
}
|
|
237
|
-
this.onMouseLeave();
|
|
238
|
-
this.openRedeem(item, pendingItemsBefore);
|
|
239
|
-
}
|
|
240
|
-
async handleClaiming() {
|
|
241
|
-
if (this.isDev) {
|
|
242
|
-
this.dynamicRedeem.handleClaiming = async (payload) => {
|
|
243
|
-
await new Promise(r => setTimeout(r, 500));
|
|
244
|
-
console.log(Object.assign(Object.assign({}, payload), { vin: this.vehicleInformation.vin, saleInformation: this.vehicleInformation.saleInformation, serviceItem: this.dynamicRedeem.item, cancelledServiceItems: this.dynamicRedeem.canceledItems }));
|
|
245
|
-
this.dynamicRedeem.quite();
|
|
246
|
-
this.completeClaim({ Success: true, ID: '11223344', PrintURL: 'http://localhost/test/print/1122' });
|
|
247
|
-
this.dynamicRedeem.handleClaiming = null;
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
|
-
else {
|
|
251
|
-
this.dynamicRedeem.handleClaiming = async (payload) => {
|
|
252
|
-
try {
|
|
253
|
-
const response = await fetch(this.claimEndPoint, {
|
|
254
|
-
method: 'POST',
|
|
255
|
-
headers: Object.assign({ 'Content-Type': 'application/json' }, this.headers),
|
|
256
|
-
body: JSON.stringify(Object.assign(Object.assign({}, payload), { vin: this.vehicleInformation.vin, saleInformation: this.vehicleInformation.saleInformation, serviceItem: this.dynamicRedeem.item, cancelledServiceItems: this.dynamicRedeem.canceledItems })),
|
|
257
|
-
});
|
|
258
|
-
const data = await response.json();
|
|
259
|
-
if (!data.Success) {
|
|
260
|
-
alert(data.Message);
|
|
261
|
-
this.dynamicRedeem.quite();
|
|
262
|
-
this.dynamicRedeem.handleClaiming = null;
|
|
263
|
-
return;
|
|
264
|
-
}
|
|
265
|
-
this.dynamicRedeem.quite();
|
|
266
|
-
this.completeClaim(data);
|
|
267
|
-
this.dynamicRedeem.handleClaiming = null;
|
|
268
|
-
}
|
|
269
|
-
catch (error) {
|
|
270
|
-
console.error(error);
|
|
271
|
-
alert(this.sharedLocales.errors.requestFailedPleaseTryAgainLater);
|
|
272
|
-
this.dynamicRedeem.quite();
|
|
273
|
-
this.dynamicRedeem.handleClaiming = null;
|
|
274
|
-
}
|
|
275
|
-
};
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
openRedeem(item, oldItems) {
|
|
279
|
-
var _a, _b, _c, _d, _e;
|
|
280
|
-
const vehicleInformation = this.vehicleInformation;
|
|
281
|
-
this.dynamicRedeem.vin = vehicleInformation === null || vehicleInformation === void 0 ? void 0 : vehicleInformation.vin;
|
|
282
|
-
this.dynamicRedeem.item = item;
|
|
283
|
-
this.dynamicRedeem.canceledItems = oldItems;
|
|
284
|
-
if (((_a = vehicleInformation === null || vehicleInformation === void 0 ? void 0 : vehicleInformation.saleInformation) === null || _a === void 0 ? void 0 : _a.broker) !== null && ((_c = (_b = vehicleInformation === null || vehicleInformation === void 0 ? void 0 : vehicleInformation.saleInformation) === null || _b === void 0 ? void 0 : _b.broker) === null || _c === void 0 ? void 0 : _c.invoiceDate) === null)
|
|
285
|
-
this.dynamicRedeem.unInvoicedByBrokerName = (_e = (_d = vehicleInformation === null || vehicleInformation === void 0 ? void 0 : vehicleInformation.saleInformation) === null || _d === void 0 ? void 0 : _d.broker) === null || _e === void 0 ? void 0 : _e.brokerName;
|
|
286
|
-
else
|
|
287
|
-
this.dynamicRedeem.unInvoicedByBrokerName = null;
|
|
288
|
-
this.handleClaiming();
|
|
289
|
-
}
|
|
290
|
-
createPopup(item) {
|
|
291
|
-
const texts = this.locale;
|
|
292
|
-
return (h("div", { dir: this.sharedLocales.direction, class: "popup-position-ref" }, h("div", { class: "popup-container" }, h("div", { class: cn('dynamic-claim-item-popup-info-triangle', this.popupClasses) }, h("div", { class: "dynamic-claim-item-popup-info-triangle-up" }), h("div", { class: "dynamic-claim-item-popup-info-triangle-up2" })), h("div", { class: cn('dynamic-claim-item-popup-info', this.popupClasses) }, h("table", null, h("tbody", null, h("tr", null, h("th", null, texts.serviceType), h("td", null, item.type.charAt(0).toUpperCase() + item.type.slice(1))), h("tr", null, h("th", null, texts.activationDate), h("td", null, item.activatedAt)), h("tr", null, h("th", null, texts.expireDate), h("td", null, item.expiresAt)), h("tr", null, h("th", null, texts.claimAt), h("td", null, item.claimDate)), h("tr", null, h("th", null, texts.claimingCompany), h("td", null, item.companyName)), h("tr", null, h("th", null, texts.invoiceNumber), h("td", null, item.invoiceNumber)), h("tr", null, h("th", null, texts.jobNumber), h("td", null, item.jobNumber)), h("tr", null, h("th", null, texts.packageCode), h("td", null, item.packageCode)))), item.claimable && (h("button", { onClick: () => this.claim(item), class: "claim-button dynamic-claim-button" }, h("svg", { width: "30px", height: "30px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { "stroke-width": "0" }), h("g", { "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", null, h("circle", { cx: "12", cy: "12", r: "8", "fill-opacity": "0.24" }), h("path", { d: "M8.5 11L11.3939 13.8939C11.4525 13.9525 11.5475 13.9525 11.6061 13.8939L19.5 6", "stroke-width": "1.2" }))), h("span", null, texts.claim)))))));
|
|
293
|
-
}
|
|
294
|
-
render() {
|
|
295
|
-
var _a, _b;
|
|
296
|
-
const serviceItems = ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceItems) || [];
|
|
297
|
-
const texts = this.locale;
|
|
298
|
-
console.log(this.errorMessage);
|
|
299
|
-
return (h(Host, { key: '9d13955aa4b86915d66dd148cdb792b77e160913' }, h("dynamic-redeem", { key: 'ae4347ecb2dff9d356d54e5f74b1e41a8f913dd3', locale: texts.dynamicRedeem, language: this.language, id: "dynamic-redeem" }), h("div", { key: '7b34dcde293f0afd4c725218043aa7553cb21849', class: cn('dynamic-claim-wrapper', { loading: this.isLoading, idle: this.isIdle }) }, h("div", { key: 'bfe97aa0f5e0493e0a601be6225d71b50bbbf3f3', class: "dynamic-claim-header" }, h("strong", { key: '454d564a081455faee7610b57d481668c18b389a', onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-header-vin load-animation" }, this.errorMessage && (h("span", { key: '221069a9f75b249a3ca5713bee0346d1a86c3ffc', dir: this.sharedLocales.direction, style: { color: 'red' } }, this.sharedLocales.errors[this.errorMessage] || this.sharedLocales.errors.wildCard)), !this.errorMessage && ((_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.vin))), h("div", { key: '6efeeb51330123a005b9acf77ccb71370a9e6bff', class: cn('dynamic-claim-body', {
|
|
300
|
-
'has-footer-box': (this.vehicleInformation && this.vehicleInformation.serviceItems.filter(x => x.status === 'activationRequired').length > 0) || this.showPrintBox,
|
|
301
|
-
}) }, h("div", { key: '28186523f43fa68978cb54225b9645144c001bd4', class: "loading-lane" }, h("div", { key: 'ba4eaad729d14b0bb7a3691a7518728be013c2bf', class: "dynamic-claim-loading-slider" }, h("div", { key: 'a7946a63258105cddd7d81d1bd70c8997a07d772', class: "dynamic-claim-loading-slider-line" }), h("div", { key: 'd93a6212bddef490710dd276f61007b6d66992f1', class: "dynamic-claim-loading-slider-subline dynamic-claim-inc" }), h("div", { key: 'a5998fd503962f6f118dc108ca6f85944ff4ef65', class: "dynamic-claim-loading-slider-subline dynamic-claim-dec" }))), h("div", { key: 'dabf1a5e38b198610c87b6f3be2b61dce87f42fe', class: "dynamic-claim-progress-lane" }, serviceItems.map((item, idx) => {
|
|
302
|
-
let statusClass = '';
|
|
303
|
-
if (item.status === 'pending') {
|
|
304
|
-
if (serviceItems.findIndex(i => i.status === 'pending') === idx)
|
|
305
|
-
statusClass = item.status;
|
|
306
|
-
}
|
|
307
|
-
else
|
|
308
|
-
statusClass = item.status;
|
|
309
|
-
return (h("div", { key: item.name, class: cn('dynamic-claim-item', statusClass), onMouseLeave: this.onMouseLeave }, h("div", { onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-item-header load-animation", onMouseEnter: event => this.onMouseEnter(event.target, idx) }, h("img", { src: icons[item.status], alt: "status icon" }), h("span", null, texts[item.status]), this.activePopupIndex === idx && this.createPopup(item)), h("div", { onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-item-circle load-animation" }), h("p", { onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-item-footer load-animation" }, item.name)));
|
|
310
|
-
}), h("div", { key: 'f8c7002b1d01169d6e2f843d6f6681186f4094c0', class: "dynamic-claim-progress-bar" })), h("div", { key: '4cb3e451478987c1023744c7d8e706d7ee2a02b7', class: "dynamic-claim-activation-box", style: { zIndex: this.vehicleInformation && this.vehicleInformation.serviceItems.filter(x => x.status === 'activationRequired').length > 0 ? '1' : '-1' } }, h("div", { key: 'e5d0d01794b6830135c7c36c627205b4b97e8cbe', class: cn('card warning-card span-entire-1st-row activation-panel', {
|
|
311
|
-
loading: this.isLoading,
|
|
312
|
-
visible: this.vehicleInformation && this.vehicleInformation.serviceItems.filter(x => x.status === 'activationRequired').length > 0,
|
|
313
|
-
}), onAnimationEnd: this.removeLoadAnimationClass }, h("p", { key: 'd1cb715325d3f209638898568cb95a8bde2f22bd', class: "no-padding flex gap-2" }, h("span", { key: '122a1cddc7392061fc37a561ac5761d7642f33f1', class: "font-semibold" }, texts.warrantyAndServicesNotActivated)), h("button", { key: 'f8e1ed23714f265b7774b2fded1f7477a4d5928f', onClick: () => {
|
|
314
|
-
if (this.activate) {
|
|
315
|
-
this.activate(this.vehicleInformation);
|
|
316
|
-
}
|
|
317
|
-
}, class: "claim-button dynamic-claim-button" }, h("svg", { key: 'e9e0b81f8374ece0bc8154f1e8af4fae0b9169e3', width: "30px", height: "30px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: '676da398fa2160888a1785506eaa2e8e7a1784e3', "stroke-width": "0" }), h("g", { key: 'b93acbb3fcfd8f3ac3988974fc1943db9768af57', "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", { key: 'd92ee117a6f155e3657f9714ddeeeadba69e8165' }, h("circle", { key: '4cd80893c63809ecd986231b5dbf856745627c50', cx: "12", cy: "12", r: "8", "fill-opacity": "0.24" }), h("path", { key: '070d17ec2429d1402771c7ada512b18484dca781', d: "M8.5 11L11.3939 13.8939C11.4525 13.9525 11.5475 13.9525 11.6061 13.8939L19.5 6", "stroke-width": "1.2" }))), h("span", { key: 'c3101c31243bf0747c427b8f878f82c929db91a8' }, texts.activateNow)))), h("div", { key: '249f76c045f13253ed897a2bee6e397f7addb993', class: "dynamic-claim-activation-box", style: { zIndex: this.showPrintBox ? '1' : '-1' } }, h("div", { key: '7af7150afa558d6aae6c3b08a5a07fa931cb55b4', class: cn('card warning-card span-entire-1st-row activation-panel', {
|
|
318
|
-
loading: this.isLoading,
|
|
319
|
-
visible: this.showPrintBox,
|
|
320
|
-
}), onAnimationEnd: this.removeLoadAnimationClass }, h("p", { key: '4c7f311229649da0959474402970a460101159ae', class: "no-padding flex gap-2" }, h("span", { key: 'adb1a993318639db4e977199a7640fb18a2d661c', class: "font-semibold" }, texts.successFulClaimMessage)), h("button", { key: '1d8337d2a8f2d0682043c5f0aeee4cd5ef54918c', onClick: () => {
|
|
321
|
-
if (this.print) {
|
|
322
|
-
this.print(this.lastSuccessfullClaimResponse);
|
|
323
|
-
}
|
|
324
|
-
else {
|
|
325
|
-
if (this.lastSuccessfullClaimResponse.PrintURL) {
|
|
326
|
-
window.open(this.lastSuccessfullClaimResponse.PrintURL, '_blank').focus();
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
}, class: "claim-button dynamic-claim-button" }, h("svg", { key: '341e91c89f3082b4b70d75aa9b64bf9955f2435f', width: "30px", height: "30px", viewBox: "-5 -5 36 36", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '538c5154a85b853e18a7b28314278088a8ba4ac9', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M17 7H7V6h10v1zm0 12H7v-6h10v6zm2-12V3H5v4H1v8.996C1 17.103 1.897 18 3.004 18H5v3h14v-3h1.996A2.004 2.004 0 0 0 23 15.996V7h-4z", fill: "rgb(252, 248, 227)" })), h("span", { key: '31aca8b5e9722bcd1e9349f954b6320ea62cd388' }, texts.print))))))));
|
|
330
|
-
}
|
|
331
|
-
static get is() { return "dynamic-claim"; }
|
|
332
|
-
static get encapsulation() { return "shadow"; }
|
|
333
|
-
static get originalStyleUrls() {
|
|
334
|
-
return {
|
|
335
|
-
"$": ["dynamic-claim.css"]
|
|
336
|
-
};
|
|
337
|
-
}
|
|
338
|
-
static get styleUrls() {
|
|
339
|
-
return {
|
|
340
|
-
"$": ["dynamic-claim.css"]
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
static get properties() {
|
|
344
|
-
return {
|
|
345
|
-
"baseUrl": {
|
|
346
|
-
"type": "string",
|
|
347
|
-
"mutable": false,
|
|
348
|
-
"complexType": {
|
|
349
|
-
"original": "string",
|
|
350
|
-
"resolved": "string",
|
|
351
|
-
"references": {}
|
|
352
|
-
},
|
|
353
|
-
"required": false,
|
|
354
|
-
"optional": false,
|
|
355
|
-
"docs": {
|
|
356
|
-
"tags": [],
|
|
357
|
-
"text": ""
|
|
358
|
-
},
|
|
359
|
-
"attribute": "base-url",
|
|
360
|
-
"reflect": false
|
|
361
|
-
},
|
|
362
|
-
"isDev": {
|
|
363
|
-
"type": "boolean",
|
|
364
|
-
"mutable": false,
|
|
365
|
-
"complexType": {
|
|
366
|
-
"original": "boolean",
|
|
367
|
-
"resolved": "boolean",
|
|
368
|
-
"references": {}
|
|
369
|
-
},
|
|
370
|
-
"required": false,
|
|
371
|
-
"optional": false,
|
|
372
|
-
"docs": {
|
|
373
|
-
"tags": [],
|
|
374
|
-
"text": ""
|
|
375
|
-
},
|
|
376
|
-
"attribute": "is-dev",
|
|
377
|
-
"reflect": false,
|
|
378
|
-
"defaultValue": "false"
|
|
379
|
-
},
|
|
380
|
-
"queryString": {
|
|
381
|
-
"type": "string",
|
|
382
|
-
"mutable": false,
|
|
383
|
-
"complexType": {
|
|
384
|
-
"original": "string",
|
|
385
|
-
"resolved": "string",
|
|
386
|
-
"references": {}
|
|
387
|
-
},
|
|
388
|
-
"required": false,
|
|
389
|
-
"optional": false,
|
|
390
|
-
"docs": {
|
|
391
|
-
"tags": [],
|
|
392
|
-
"text": ""
|
|
393
|
-
},
|
|
394
|
-
"attribute": "query-string",
|
|
395
|
-
"reflect": false,
|
|
396
|
-
"defaultValue": "''"
|
|
397
|
-
},
|
|
398
|
-
"claimEndPoint": {
|
|
399
|
-
"type": "string",
|
|
400
|
-
"mutable": false,
|
|
401
|
-
"complexType": {
|
|
402
|
-
"original": "string",
|
|
403
|
-
"resolved": "string",
|
|
404
|
-
"references": {}
|
|
405
|
-
},
|
|
406
|
-
"required": false,
|
|
407
|
-
"optional": false,
|
|
408
|
-
"docs": {
|
|
409
|
-
"tags": [],
|
|
410
|
-
"text": ""
|
|
411
|
-
},
|
|
412
|
-
"attribute": "claim-end-point",
|
|
413
|
-
"reflect": false,
|
|
414
|
-
"defaultValue": "'api/vehicle/swift-claim'"
|
|
415
|
-
},
|
|
416
|
-
"headers": {
|
|
417
|
-
"type": "any",
|
|
418
|
-
"mutable": false,
|
|
419
|
-
"complexType": {
|
|
420
|
-
"original": "any",
|
|
421
|
-
"resolved": "any",
|
|
422
|
-
"references": {}
|
|
423
|
-
},
|
|
424
|
-
"required": false,
|
|
425
|
-
"optional": false,
|
|
426
|
-
"docs": {
|
|
427
|
-
"tags": [],
|
|
428
|
-
"text": ""
|
|
429
|
-
},
|
|
430
|
-
"attribute": "headers",
|
|
431
|
-
"reflect": false,
|
|
432
|
-
"defaultValue": "{}"
|
|
433
|
-
},
|
|
434
|
-
"language": {
|
|
435
|
-
"type": "string",
|
|
436
|
-
"mutable": false,
|
|
437
|
-
"complexType": {
|
|
438
|
-
"original": "LanguageKeys",
|
|
439
|
-
"resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
|
|
440
|
-
"references": {
|
|
441
|
-
"LanguageKeys": {
|
|
442
|
-
"location": "import",
|
|
443
|
-
"path": "~types/locale",
|
|
444
|
-
"id": "src/global/types/locale.ts::LanguageKeys"
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
},
|
|
448
|
-
"required": false,
|
|
449
|
-
"optional": false,
|
|
450
|
-
"docs": {
|
|
451
|
-
"tags": [],
|
|
452
|
-
"text": ""
|
|
453
|
-
},
|
|
454
|
-
"attribute": "language",
|
|
455
|
-
"reflect": false,
|
|
456
|
-
"defaultValue": "'en'"
|
|
457
|
-
},
|
|
458
|
-
"errorCallback": {
|
|
459
|
-
"type": "unknown",
|
|
460
|
-
"mutable": false,
|
|
461
|
-
"complexType": {
|
|
462
|
-
"original": "(errorMessage: ErrorKeys) => void",
|
|
463
|
-
"resolved": "(errorMessage: OptionalKeys<{ noBaseUrl: string; invalidVin: string; vinNumberRequired: string; partNumberRequired: string; wrongResponseFormat: string; noPartsFound: string; noServiceAvailable: string; wrongFormStructure: string; wildCard: string; requestFailedPleaseTryAgainLater: string; }>) => void",
|
|
464
|
-
"references": {
|
|
465
|
-
"ErrorKeys": {
|
|
466
|
-
"location": "import",
|
|
467
|
-
"path": "~lib/get-local-language",
|
|
468
|
-
"id": "src/global/lib/get-local-language.ts::ErrorKeys"
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
},
|
|
472
|
-
"required": false,
|
|
473
|
-
"optional": false,
|
|
474
|
-
"docs": {
|
|
475
|
-
"tags": [],
|
|
476
|
-
"text": ""
|
|
477
|
-
}
|
|
478
|
-
},
|
|
479
|
-
"loadingStateChange": {
|
|
480
|
-
"type": "unknown",
|
|
481
|
-
"mutable": false,
|
|
482
|
-
"complexType": {
|
|
483
|
-
"original": "(isLoading: boolean) => void",
|
|
484
|
-
"resolved": "(isLoading: boolean) => void",
|
|
485
|
-
"references": {}
|
|
486
|
-
},
|
|
487
|
-
"required": false,
|
|
488
|
-
"optional": true,
|
|
489
|
-
"docs": {
|
|
490
|
-
"tags": [],
|
|
491
|
-
"text": ""
|
|
492
|
-
}
|
|
493
|
-
},
|
|
494
|
-
"loadedResponse": {
|
|
495
|
-
"type": "unknown",
|
|
496
|
-
"mutable": false,
|
|
497
|
-
"complexType": {
|
|
498
|
-
"original": "(response: VehicleInformation) => void",
|
|
499
|
-
"resolved": "(response: VehicleInformation) => void",
|
|
500
|
-
"references": {
|
|
501
|
-
"VehicleInformation": {
|
|
502
|
-
"location": "import",
|
|
503
|
-
"path": "~types/vehicle-information",
|
|
504
|
-
"id": "src/global/types/vehicle-information.ts::VehicleInformation"
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
},
|
|
508
|
-
"required": false,
|
|
509
|
-
"optional": true,
|
|
510
|
-
"docs": {
|
|
511
|
-
"tags": [],
|
|
512
|
-
"text": ""
|
|
513
|
-
}
|
|
514
|
-
},
|
|
515
|
-
"activate": {
|
|
516
|
-
"type": "unknown",
|
|
517
|
-
"mutable": false,
|
|
518
|
-
"complexType": {
|
|
519
|
-
"original": "(vehicleInformation: VehicleInformation) => void",
|
|
520
|
-
"resolved": "(vehicleInformation: VehicleInformation) => void",
|
|
521
|
-
"references": {
|
|
522
|
-
"VehicleInformation": {
|
|
523
|
-
"location": "import",
|
|
524
|
-
"path": "~types/vehicle-information",
|
|
525
|
-
"id": "src/global/types/vehicle-information.ts::VehicleInformation"
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
},
|
|
529
|
-
"required": false,
|
|
530
|
-
"optional": true,
|
|
531
|
-
"docs": {
|
|
532
|
-
"tags": [],
|
|
533
|
-
"text": ""
|
|
534
|
-
}
|
|
535
|
-
},
|
|
536
|
-
"print": {
|
|
537
|
-
"type": "unknown",
|
|
538
|
-
"mutable": false,
|
|
539
|
-
"complexType": {
|
|
540
|
-
"original": "(claimResponse: any) => void",
|
|
541
|
-
"resolved": "(claimResponse: any) => void",
|
|
542
|
-
"references": {}
|
|
543
|
-
},
|
|
544
|
-
"required": false,
|
|
545
|
-
"optional": true,
|
|
546
|
-
"docs": {
|
|
547
|
-
"tags": [],
|
|
548
|
-
"text": ""
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
};
|
|
552
|
-
}
|
|
553
|
-
static get states() {
|
|
554
|
-
return {
|
|
555
|
-
"sharedLocales": {},
|
|
556
|
-
"locale": {},
|
|
557
|
-
"isIdle": {},
|
|
558
|
-
"popupClasses": {},
|
|
559
|
-
"isLoading": {},
|
|
560
|
-
"showPrintBox": {},
|
|
561
|
-
"lastSuccessfullClaimResponse": {},
|
|
562
|
-
"externalVin": {},
|
|
563
|
-
"errorMessage": {},
|
|
564
|
-
"activePopupIndex": {},
|
|
565
|
-
"vehicleInformation": {}
|
|
566
|
-
};
|
|
567
|
-
}
|
|
568
|
-
static get methods() {
|
|
569
|
-
return {
|
|
570
|
-
"setMockData": {
|
|
571
|
-
"complexType": {
|
|
572
|
-
"signature": "(newMockData: MockJson<VehicleInformation>) => Promise<void>",
|
|
573
|
-
"parameters": [{
|
|
574
|
-
"name": "newMockData",
|
|
575
|
-
"type": "{ [key: string]: VehicleInformation; }",
|
|
576
|
-
"docs": ""
|
|
577
|
-
}],
|
|
578
|
-
"references": {
|
|
579
|
-
"Promise": {
|
|
580
|
-
"location": "global",
|
|
581
|
-
"id": "global::Promise"
|
|
582
|
-
},
|
|
583
|
-
"MockJson": {
|
|
584
|
-
"location": "import",
|
|
585
|
-
"path": "~types/components",
|
|
586
|
-
"id": "src/global/types/components.ts::MockJson"
|
|
587
|
-
},
|
|
588
|
-
"VehicleInformation": {
|
|
589
|
-
"location": "import",
|
|
590
|
-
"path": "~types/vehicle-information",
|
|
591
|
-
"id": "src/global/types/vehicle-information.ts::VehicleInformation"
|
|
592
|
-
}
|
|
593
|
-
},
|
|
594
|
-
"return": "Promise<void>"
|
|
595
|
-
},
|
|
596
|
-
"docs": {
|
|
597
|
-
"text": "",
|
|
598
|
-
"tags": []
|
|
599
|
-
}
|
|
600
|
-
},
|
|
601
|
-
"setData": {
|
|
602
|
-
"complexType": {
|
|
603
|
-
"signature": "(newData: VehicleInformation | string, headers?: any) => Promise<void>",
|
|
604
|
-
"parameters": [{
|
|
605
|
-
"name": "newData",
|
|
606
|
-
"type": "string | VehicleInformation",
|
|
607
|
-
"docs": ""
|
|
608
|
-
}, {
|
|
609
|
-
"name": "headers",
|
|
610
|
-
"type": "any",
|
|
611
|
-
"docs": ""
|
|
612
|
-
}],
|
|
613
|
-
"references": {
|
|
614
|
-
"Promise": {
|
|
615
|
-
"location": "global",
|
|
616
|
-
"id": "global::Promise"
|
|
617
|
-
},
|
|
618
|
-
"VehicleInformation": {
|
|
619
|
-
"location": "import",
|
|
620
|
-
"path": "~types/vehicle-information",
|
|
621
|
-
"id": "src/global/types/vehicle-information.ts::VehicleInformation"
|
|
622
|
-
},
|
|
623
|
-
"ReturnType": {
|
|
624
|
-
"location": "global",
|
|
625
|
-
"id": "global::ReturnType"
|
|
626
|
-
}
|
|
627
|
-
},
|
|
628
|
-
"return": "Promise<void>"
|
|
629
|
-
},
|
|
630
|
-
"docs": {
|
|
631
|
-
"text": "",
|
|
632
|
-
"tags": []
|
|
633
|
-
}
|
|
634
|
-
},
|
|
635
|
-
"setErrorMessage": {
|
|
636
|
-
"complexType": {
|
|
637
|
-
"signature": "(message: ErrorKeys) => Promise<void>",
|
|
638
|
-
"parameters": [{
|
|
639
|
-
"name": "message",
|
|
640
|
-
"type": "\"noBaseUrl\" | \"invalidVin\" | \"vinNumberRequired\" | \"partNumberRequired\" | \"wrongResponseFormat\" | \"noPartsFound\" | \"noServiceAvailable\" | \"wrongFormStructure\" | \"wildCard\" | \"requestFailedPleaseTryAgainLater\"",
|
|
641
|
-
"docs": ""
|
|
642
|
-
}],
|
|
643
|
-
"references": {
|
|
644
|
-
"Promise": {
|
|
645
|
-
"location": "global",
|
|
646
|
-
"id": "global::Promise"
|
|
647
|
-
},
|
|
648
|
-
"ErrorKeys": {
|
|
649
|
-
"location": "import",
|
|
650
|
-
"path": "~lib/get-local-language",
|
|
651
|
-
"id": "src/global/lib/get-local-language.ts::ErrorKeys"
|
|
652
|
-
}
|
|
653
|
-
},
|
|
654
|
-
"return": "Promise<void>"
|
|
655
|
-
},
|
|
656
|
-
"docs": {
|
|
657
|
-
"text": "",
|
|
658
|
-
"tags": []
|
|
659
|
-
}
|
|
660
|
-
},
|
|
661
|
-
"fetchData": {
|
|
662
|
-
"complexType": {
|
|
663
|
-
"signature": "(requestedVin?: string, headers?: any) => Promise<void>",
|
|
664
|
-
"parameters": [{
|
|
665
|
-
"name": "requestedVin",
|
|
666
|
-
"type": "string",
|
|
667
|
-
"docs": ""
|
|
668
|
-
}, {
|
|
669
|
-
"name": "headers",
|
|
670
|
-
"type": "any",
|
|
671
|
-
"docs": ""
|
|
672
|
-
}],
|
|
673
|
-
"references": {
|
|
674
|
-
"Promise": {
|
|
675
|
-
"location": "global",
|
|
676
|
-
"id": "global::Promise"
|
|
677
|
-
}
|
|
678
|
-
},
|
|
679
|
-
"return": "Promise<void>"
|
|
680
|
-
},
|
|
681
|
-
"docs": {
|
|
682
|
-
"text": "",
|
|
683
|
-
"tags": []
|
|
684
|
-
}
|
|
685
|
-
},
|
|
686
|
-
"completeClaim": {
|
|
687
|
-
"complexType": {
|
|
688
|
-
"signature": "(response: any) => Promise<void>",
|
|
689
|
-
"parameters": [{
|
|
690
|
-
"name": "response",
|
|
691
|
-
"type": "any",
|
|
692
|
-
"docs": ""
|
|
693
|
-
}],
|
|
694
|
-
"references": {
|
|
695
|
-
"Promise": {
|
|
696
|
-
"location": "global",
|
|
697
|
-
"id": "global::Promise"
|
|
698
|
-
},
|
|
699
|
-
"VehicleInformation": {
|
|
700
|
-
"location": "import",
|
|
701
|
-
"path": "~types/vehicle-information",
|
|
702
|
-
"id": "src/global/types/vehicle-information.ts::VehicleInformation"
|
|
703
|
-
}
|
|
704
|
-
},
|
|
705
|
-
"return": "Promise<void>"
|
|
706
|
-
},
|
|
707
|
-
"docs": {
|
|
708
|
-
"text": "",
|
|
709
|
-
"tags": []
|
|
710
|
-
}
|
|
711
|
-
},
|
|
712
|
-
"claim": {
|
|
713
|
-
"complexType": {
|
|
714
|
-
"signature": "(item: ServiceItem) => Promise<void>",
|
|
715
|
-
"parameters": [{
|
|
716
|
-
"name": "item",
|
|
717
|
-
"type": "{ activatedAt?: string; activeFor: number; activeForInterval: string; campaignCode?: string; companyID?: string; companyName?: string; description?: string; expiresAt?: string; image?: string; invoiceNumber?: string; jobNumber?: string; maximumMileage?: string; modelCostID?: string; name?: string; packageCode?: string; paidServiceInvoiceLineID?: string; claimDate?: string; serviceItemID?: string; skipZeroTrust?: string; status: \"processed\" | \"expired\" | \"cancelled\" | \"pending\" | \"activationRequired\"; claimable: boolean; statusEnum?: string; title?: string; type?: string; typeEnum?: string; claimingMethodEnum?: number; }",
|
|
718
|
-
"docs": ""
|
|
719
|
-
}],
|
|
720
|
-
"references": {
|
|
721
|
-
"Promise": {
|
|
722
|
-
"location": "global",
|
|
723
|
-
"id": "global::Promise"
|
|
724
|
-
},
|
|
725
|
-
"ServiceItem": {
|
|
726
|
-
"location": "import",
|
|
727
|
-
"path": "~types/vehicle-information",
|
|
728
|
-
"id": "src/global/types/vehicle-information.ts::ServiceItem"
|
|
729
|
-
}
|
|
730
|
-
},
|
|
731
|
-
"return": "Promise<void>"
|
|
732
|
-
},
|
|
733
|
-
"docs": {
|
|
734
|
-
"text": "",
|
|
735
|
-
"tags": []
|
|
736
|
-
}
|
|
737
|
-
}
|
|
738
|
-
};
|
|
739
|
-
}
|
|
740
|
-
static get elementRef() { return "el"; }
|
|
741
|
-
static get watchers() {
|
|
742
|
-
return [{
|
|
743
|
-
"propName": "language",
|
|
744
|
-
"methodName": "changeLanguage"
|
|
745
|
-
}, {
|
|
746
|
-
"propName": "isLoading",
|
|
747
|
-
"methodName": "onLoadingChange"
|
|
748
|
-
}, {
|
|
749
|
-
"propName": "vehicleInformation",
|
|
750
|
-
"methodName": "resetProgressBar"
|
|
751
|
-
}, {
|
|
752
|
-
"propName": "popupClasses",
|
|
753
|
-
"methodName": "windowScrollListener"
|
|
754
|
-
}];
|
|
755
|
-
}
|
|
756
|
-
}
|