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
|
@@ -9,6 +9,23 @@ const CAPTURE_INTERVAL = 2000;
|
|
|
9
9
|
const ACTIVE_CAMERA_ID_KEY = 'activeCameraId';
|
|
10
10
|
export class VinExtractor {
|
|
11
11
|
constructor() {
|
|
12
|
+
this.title = '';
|
|
13
|
+
this.captureInterval = CAPTURE_INTERVAL;
|
|
14
|
+
this.verbose = false;
|
|
15
|
+
this.useOcr = false;
|
|
16
|
+
this.readSticker = false;
|
|
17
|
+
// to explicitly opening camera instead of letting choose from files or new image from camera
|
|
18
|
+
this.captureEnvironment = false;
|
|
19
|
+
this.manualCapture = false;
|
|
20
|
+
this.skipValidation = false;
|
|
21
|
+
this.isOpen = false;
|
|
22
|
+
this.isAnimating = false;
|
|
23
|
+
this.isCameraReady = false;
|
|
24
|
+
this.switchRotateDegree = 0;
|
|
25
|
+
this.containerAnimation = '';
|
|
26
|
+
this.videoInputs = [];
|
|
27
|
+
this.manualCaptureLoading = false;
|
|
28
|
+
this.activeCameraId = localStorage.getItem(ACTIVE_CAMERA_ID_KEY) || '';
|
|
12
29
|
this.registerFileUploader = () => {
|
|
13
30
|
if (this.readSticker && !this.codeReader) {
|
|
14
31
|
setTimeout(() => {
|
|
@@ -236,30 +253,6 @@ export class VinExtractor {
|
|
|
236
253
|
this.switchRotateDegree += 90;
|
|
237
254
|
}
|
|
238
255
|
};
|
|
239
|
-
this.title = '';
|
|
240
|
-
this.captureInterval = CAPTURE_INTERVAL;
|
|
241
|
-
this.verbose = false;
|
|
242
|
-
this.useOcr = false;
|
|
243
|
-
this.readSticker = false;
|
|
244
|
-
this.uploaderButtonId = undefined;
|
|
245
|
-
this.captureEnvironment = false;
|
|
246
|
-
this.manualCapture = false;
|
|
247
|
-
this.skipValidation = false;
|
|
248
|
-
this.ocrEndpoint = undefined;
|
|
249
|
-
this.onExtract = undefined;
|
|
250
|
-
this.onError = undefined;
|
|
251
|
-
this.onProcessing = undefined;
|
|
252
|
-
this.onOpenChange = undefined;
|
|
253
|
-
this.streamRef = undefined;
|
|
254
|
-
this.isOpen = false;
|
|
255
|
-
this.isAnimating = false;
|
|
256
|
-
this.isCameraReady = false;
|
|
257
|
-
this.switchRotateDegree = 0;
|
|
258
|
-
this.containerAnimation = '';
|
|
259
|
-
this.blazorRef = undefined;
|
|
260
|
-
this.videoInputs = [];
|
|
261
|
-
this.manualCaptureLoading = false;
|
|
262
|
-
this.activeCameraId = localStorage.getItem(ACTIVE_CAMERA_ID_KEY) || '';
|
|
263
256
|
}
|
|
264
257
|
async componentDidLoad() {
|
|
265
258
|
this.videoPlayer = this.el.shadowRoot.querySelector('.video-player');
|
|
@@ -297,7 +290,7 @@ export class VinExtractor {
|
|
|
297
290
|
}
|
|
298
291
|
}
|
|
299
292
|
}
|
|
300
|
-
setBlazorRef(newBlazorRef) {
|
|
293
|
+
async setBlazorRef(newBlazorRef) {
|
|
301
294
|
this.blazorRef = newBlazorRef;
|
|
302
295
|
}
|
|
303
296
|
async processCanvasFromSource(source, canvas, maxSize = 400) {
|
|
@@ -323,7 +316,7 @@ export class VinExtractor {
|
|
|
323
316
|
return '';
|
|
324
317
|
}
|
|
325
318
|
}
|
|
326
|
-
open() {
|
|
319
|
+
async open() {
|
|
327
320
|
this.isOpen = true;
|
|
328
321
|
}
|
|
329
322
|
async close() {
|
|
@@ -346,7 +339,7 @@ export class VinExtractor {
|
|
|
346
339
|
}
|
|
347
340
|
render() {
|
|
348
341
|
const ariaExpanded = this.isOpen && this.isCameraReady && (this.useOcr || this.readSticker);
|
|
349
|
-
return (h(Host, { key: '
|
|
342
|
+
return (h(Host, { key: '03cce1bb83748bfa847f8a1746a459a8540bba99' }, h("slot", { key: '6a9f32187d63d7c4522fd4c57c28db02265d09e2' }), h("input", Object.assign({ key: '2222f50cf3f3ea64b4710412e60e3a26f4b72120', class: "vin-extractor-input", type: "file", accept: "image/*" }, (this.captureEnvironment ? { capture: 'environment' } : {}), { hidden: true })), h("canvas", { key: 'aa1c301c7df4d0087f331dc39b79076d029e3326', class: "video-canvas hidden" }), !this.uploaderButtonId && (h("div", { key: '4f5f59f2ac97028499618953e990932e9e96ac04', onClick: () => (this.isOpen = false), "aria-expanded": ariaExpanded.toString(), class: "vin-extractor-background md:transition-all md:duration-300 fixed flex items-center justify-center w-[100dvw] h-[100dvh] top-0 left-0 z-[9999]" }, h("div", { key: '23df66d4cebc2d7e4112b9b18f0df25988f5bb40', onClick: e => e.stopPropagation(), "aria-expanded": ariaExpanded.toString(), onAnimationEnd: () => (this.isAnimating = false), onAnimationStart: () => (this.isAnimating = true), class: cn('vin-extractor-container md:w-[600px] md:rounded-lg md:overflow-hidden opacity-0 md:h-auto w-full h-full relative transition-all duration-500', this.containerAnimation) }, h("div", { key: 'f136cd98eb71d7a61d8dd2324080e21337661a0f', class: "vin-extractor-heading items-center md:py-[8px] w-full md:!opacity-100 md:!translate-x-0 p-[16px] md:bg-white bg-black/30 shadow-md z-10 md:relative absolute top-0 left-0 flex justify-between" }, this.videoInputs.length > 1 ? (h("button", { type: "button", onClick: this.switchCamera, class: "size-[32px] md:border-none md:bg-white md:hover:bg-slate-100 bg-slate-100 rounded-lg p-1 hover:text-slate-700 border transition-colors duration-300 hover:bg-slate-300 border-slate-600 text-slate-600 hover:border-slate-700" }, h("svg", { width: "24", height: "24", fill: "none", "stroke-width": "2", viewBox: "0 0 24 24", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", xmlns: "http://www.w3.org/2000/svg", class: "size-full transition-all duration-300", style: { rotate: `${this.switchRotateDegree}deg` } }, h("path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" }), h("path", { d: "M21 3v5h-5" }), h("path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" }), h("path", { d: "M8 16H3v5" })))) : (h("div", { class: "size-8" })), h("h1", { key: '2be7e16adae3374d980e16d3df7a412689f7844d', class: "text-center md:text-3xl md:text-black text-slate-100 text-xl" }, this.title), h("button", { key: '36e2cfc2a4084480e380bb0a956e6f16b54db85b', type: "button", onClick: () => (this.isOpen = false), class: "size-[32px] md:border-none md:bg-white md:hover:bg-slate-100 bg-slate-100 rounded-lg p-1 hover:text-slate-700 border transition-colors duration-300 hover:bg-slate-300 border-slate-600 text-slate-600 hover:border-slate-700" }, h("svg", { key: '6c35c1dfeb0900bbd080d3bb47477a273bb6daf2', fill: "none", "stroke-width": "2", class: "size-full", viewBox: "0 0 24 24", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '8dbf2fe729be30fc7810617bbadc349c52356ae6', d: "M18 6 6 18" }), h("path", { key: '11f2ff22067d07784a152acafd7e7d1870211d00', d: "m6 6 12 12" })))), this.manualCapture && (h("button", { key: 'e1e46bde2bb478b1a2c2e4eda0338dc9fa679334', type: "button", disabled: this.manualCaptureLoading, onClick: this.captureFrame.bind(this, true), class: "absolute disabled:bg-white/75 outline-none cursor-pointer left-1/2 -translate-x-1/2 flex justify-center items-center h-[60px] py-[10px] w-[100px] rounded-full shadow-lg border border-slate-500 text-slate-500 z-10 bg-white bottom-4" }, this.manualCaptureLoading ? (h("svg", { fill: "none", "stroke-width": "2", viewBox: "0 0 24 24", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", class: "size-full animate-spin", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }))) : (h("svg", { fill: "none", "stroke-width": "2", class: "size-full", viewBox: "0 0 24 24", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z" }), h("circle", { cx: "12", cy: "13", r: "3" }))))), h("video", { key: '9d9ede6584f25879b7eb530133eebe193338552a', id: "video", autoPlay: true, playsInline: true, class: "video-player md:aspect-auto bg-black min-w-full min-h-full object-cover object-center" }))))));
|
|
350
343
|
}
|
|
351
344
|
static get is() { return "vin-extractor"; }
|
|
352
345
|
static get encapsulation() { return "shadow"; }
|
|
@@ -364,6 +357,7 @@ export class VinExtractor {
|
|
|
364
357
|
return {
|
|
365
358
|
"title": {
|
|
366
359
|
"type": "string",
|
|
360
|
+
"attribute": "title",
|
|
367
361
|
"mutable": false,
|
|
368
362
|
"complexType": {
|
|
369
363
|
"original": "string",
|
|
@@ -376,12 +370,14 @@ export class VinExtractor {
|
|
|
376
370
|
"tags": [],
|
|
377
371
|
"text": ""
|
|
378
372
|
},
|
|
379
|
-
"
|
|
373
|
+
"getter": false,
|
|
374
|
+
"setter": false,
|
|
380
375
|
"reflect": false,
|
|
381
376
|
"defaultValue": "''"
|
|
382
377
|
},
|
|
383
378
|
"captureInterval": {
|
|
384
379
|
"type": "number",
|
|
380
|
+
"attribute": "capture-interval",
|
|
385
381
|
"mutable": false,
|
|
386
382
|
"complexType": {
|
|
387
383
|
"original": "number",
|
|
@@ -394,12 +390,14 @@ export class VinExtractor {
|
|
|
394
390
|
"tags": [],
|
|
395
391
|
"text": ""
|
|
396
392
|
},
|
|
397
|
-
"
|
|
393
|
+
"getter": false,
|
|
394
|
+
"setter": false,
|
|
398
395
|
"reflect": false,
|
|
399
396
|
"defaultValue": "CAPTURE_INTERVAL"
|
|
400
397
|
},
|
|
401
398
|
"verbose": {
|
|
402
399
|
"type": "boolean",
|
|
400
|
+
"attribute": "verbose",
|
|
403
401
|
"mutable": false,
|
|
404
402
|
"complexType": {
|
|
405
403
|
"original": "boolean",
|
|
@@ -412,12 +410,14 @@ export class VinExtractor {
|
|
|
412
410
|
"tags": [],
|
|
413
411
|
"text": ""
|
|
414
412
|
},
|
|
415
|
-
"
|
|
413
|
+
"getter": false,
|
|
414
|
+
"setter": false,
|
|
416
415
|
"reflect": false,
|
|
417
416
|
"defaultValue": "false"
|
|
418
417
|
},
|
|
419
418
|
"useOcr": {
|
|
420
419
|
"type": "boolean",
|
|
420
|
+
"attribute": "use-ocr",
|
|
421
421
|
"mutable": false,
|
|
422
422
|
"complexType": {
|
|
423
423
|
"original": "boolean",
|
|
@@ -430,12 +430,14 @@ export class VinExtractor {
|
|
|
430
430
|
"tags": [],
|
|
431
431
|
"text": ""
|
|
432
432
|
},
|
|
433
|
-
"
|
|
433
|
+
"getter": false,
|
|
434
|
+
"setter": false,
|
|
434
435
|
"reflect": false,
|
|
435
436
|
"defaultValue": "false"
|
|
436
437
|
},
|
|
437
438
|
"readSticker": {
|
|
438
439
|
"type": "boolean",
|
|
440
|
+
"attribute": "read-sticker",
|
|
439
441
|
"mutable": false,
|
|
440
442
|
"complexType": {
|
|
441
443
|
"original": "boolean",
|
|
@@ -448,12 +450,14 @@ export class VinExtractor {
|
|
|
448
450
|
"tags": [],
|
|
449
451
|
"text": ""
|
|
450
452
|
},
|
|
451
|
-
"
|
|
453
|
+
"getter": false,
|
|
454
|
+
"setter": false,
|
|
452
455
|
"reflect": false,
|
|
453
456
|
"defaultValue": "false"
|
|
454
457
|
},
|
|
455
458
|
"uploaderButtonId": {
|
|
456
459
|
"type": "string",
|
|
460
|
+
"attribute": "uploader-button-id",
|
|
457
461
|
"mutable": false,
|
|
458
462
|
"complexType": {
|
|
459
463
|
"original": "string",
|
|
@@ -466,11 +470,13 @@ export class VinExtractor {
|
|
|
466
470
|
"tags": [],
|
|
467
471
|
"text": ""
|
|
468
472
|
},
|
|
469
|
-
"
|
|
473
|
+
"getter": false,
|
|
474
|
+
"setter": false,
|
|
470
475
|
"reflect": false
|
|
471
476
|
},
|
|
472
477
|
"captureEnvironment": {
|
|
473
478
|
"type": "boolean",
|
|
479
|
+
"attribute": "capture-environment",
|
|
474
480
|
"mutable": false,
|
|
475
481
|
"complexType": {
|
|
476
482
|
"original": "boolean",
|
|
@@ -483,12 +489,14 @@ export class VinExtractor {
|
|
|
483
489
|
"tags": [],
|
|
484
490
|
"text": ""
|
|
485
491
|
},
|
|
486
|
-
"
|
|
492
|
+
"getter": false,
|
|
493
|
+
"setter": false,
|
|
487
494
|
"reflect": false,
|
|
488
495
|
"defaultValue": "false"
|
|
489
496
|
},
|
|
490
497
|
"manualCapture": {
|
|
491
498
|
"type": "boolean",
|
|
499
|
+
"attribute": "manual-capture",
|
|
492
500
|
"mutable": false,
|
|
493
501
|
"complexType": {
|
|
494
502
|
"original": "boolean",
|
|
@@ -501,12 +509,14 @@ export class VinExtractor {
|
|
|
501
509
|
"tags": [],
|
|
502
510
|
"text": ""
|
|
503
511
|
},
|
|
504
|
-
"
|
|
512
|
+
"getter": false,
|
|
513
|
+
"setter": false,
|
|
505
514
|
"reflect": false,
|
|
506
515
|
"defaultValue": "false"
|
|
507
516
|
},
|
|
508
517
|
"skipValidation": {
|
|
509
518
|
"type": "boolean",
|
|
519
|
+
"attribute": "skip-validation",
|
|
510
520
|
"mutable": false,
|
|
511
521
|
"complexType": {
|
|
512
522
|
"original": "boolean",
|
|
@@ -519,12 +529,14 @@ export class VinExtractor {
|
|
|
519
529
|
"tags": [],
|
|
520
530
|
"text": ""
|
|
521
531
|
},
|
|
522
|
-
"
|
|
532
|
+
"getter": false,
|
|
533
|
+
"setter": false,
|
|
523
534
|
"reflect": false,
|
|
524
535
|
"defaultValue": "false"
|
|
525
536
|
},
|
|
526
537
|
"ocrEndpoint": {
|
|
527
538
|
"type": "string",
|
|
539
|
+
"attribute": "ocr-endpoint",
|
|
528
540
|
"mutable": false,
|
|
529
541
|
"complexType": {
|
|
530
542
|
"original": "string",
|
|
@@ -537,11 +549,13 @@ export class VinExtractor {
|
|
|
537
549
|
"tags": [],
|
|
538
550
|
"text": ""
|
|
539
551
|
},
|
|
540
|
-
"
|
|
552
|
+
"getter": false,
|
|
553
|
+
"setter": false,
|
|
541
554
|
"reflect": false
|
|
542
555
|
},
|
|
543
556
|
"onExtract": {
|
|
544
557
|
"type": "string",
|
|
558
|
+
"attribute": "on-extract",
|
|
545
559
|
"mutable": false,
|
|
546
560
|
"complexType": {
|
|
547
561
|
"original": "((vin: string) => void) | string",
|
|
@@ -554,11 +568,13 @@ export class VinExtractor {
|
|
|
554
568
|
"tags": [],
|
|
555
569
|
"text": ""
|
|
556
570
|
},
|
|
557
|
-
"
|
|
571
|
+
"getter": false,
|
|
572
|
+
"setter": false,
|
|
558
573
|
"reflect": false
|
|
559
574
|
},
|
|
560
575
|
"onError": {
|
|
561
576
|
"type": "string",
|
|
577
|
+
"attribute": "on-error",
|
|
562
578
|
"mutable": false,
|
|
563
579
|
"complexType": {
|
|
564
580
|
"original": "((newError: Error) => void) | string",
|
|
@@ -576,11 +592,13 @@ export class VinExtractor {
|
|
|
576
592
|
"tags": [],
|
|
577
593
|
"text": ""
|
|
578
594
|
},
|
|
579
|
-
"
|
|
595
|
+
"getter": false,
|
|
596
|
+
"setter": false,
|
|
580
597
|
"reflect": false
|
|
581
598
|
},
|
|
582
599
|
"onProcessing": {
|
|
583
600
|
"type": "string",
|
|
601
|
+
"attribute": "on-processing",
|
|
584
602
|
"mutable": false,
|
|
585
603
|
"complexType": {
|
|
586
604
|
"original": "((vin: string) => void) | string",
|
|
@@ -593,11 +611,13 @@ export class VinExtractor {
|
|
|
593
611
|
"tags": [],
|
|
594
612
|
"text": ""
|
|
595
613
|
},
|
|
596
|
-
"
|
|
614
|
+
"getter": false,
|
|
615
|
+
"setter": false,
|
|
597
616
|
"reflect": false
|
|
598
617
|
},
|
|
599
618
|
"onOpenChange": {
|
|
600
619
|
"type": "string",
|
|
620
|
+
"attribute": "on-open-change",
|
|
601
621
|
"mutable": false,
|
|
602
622
|
"complexType": {
|
|
603
623
|
"original": "((newError: boolean) => void) | string",
|
|
@@ -610,7 +630,8 @@ export class VinExtractor {
|
|
|
610
630
|
"tags": [],
|
|
611
631
|
"text": ""
|
|
612
632
|
},
|
|
613
|
-
"
|
|
633
|
+
"getter": false,
|
|
634
|
+
"setter": false,
|
|
614
635
|
"reflect": false
|
|
615
636
|
}
|
|
616
637
|
};
|
|
@@ -640,6 +661,10 @@ export class VinExtractor {
|
|
|
640
661
|
"docs": ""
|
|
641
662
|
}],
|
|
642
663
|
"references": {
|
|
664
|
+
"Promise": {
|
|
665
|
+
"location": "global",
|
|
666
|
+
"id": "global::Promise"
|
|
667
|
+
},
|
|
643
668
|
"DotNetObjectReference": {
|
|
644
669
|
"location": "import",
|
|
645
670
|
"path": "~types/components",
|
|
@@ -657,7 +682,12 @@ export class VinExtractor {
|
|
|
657
682
|
"complexType": {
|
|
658
683
|
"signature": "() => Promise<void>",
|
|
659
684
|
"parameters": [],
|
|
660
|
-
"references": {
|
|
685
|
+
"references": {
|
|
686
|
+
"Promise": {
|
|
687
|
+
"location": "global",
|
|
688
|
+
"id": "global::Promise"
|
|
689
|
+
}
|
|
690
|
+
},
|
|
661
691
|
"return": "Promise<void>"
|
|
662
692
|
},
|
|
663
693
|
"docs": {
|
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
* Built by ShiftSoftware
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
let closeImageListener;
|
|
6
|
+
export function openImageViewer(target, imageSrc) {
|
|
7
|
+
if (this.expandedImage === imageSrc)
|
|
7
8
|
return;
|
|
8
|
-
|
|
9
|
-
const expandedImageRef =
|
|
9
|
+
this.originalImage = target;
|
|
10
|
+
const expandedImageRef = this.el.shadowRoot.querySelector('.image-viewer-expanded-image');
|
|
10
11
|
expandedImageRef.src = target.src;
|
|
11
|
-
document.
|
|
12
|
+
document.removeEventListener('keydown', closeImageListener);
|
|
13
|
+
closeImageListener = () => closeImageViewer.bind(this)();
|
|
14
|
+
document.addEventListener('keydown', closeImageListener);
|
|
12
15
|
const rect = target.getBoundingClientRect();
|
|
13
16
|
document.body.style.overflow = 'hidden';
|
|
14
17
|
Object.assign(expandedImageRef.style, {
|
|
@@ -42,15 +45,16 @@ export function openImageViewer(context, target, imageSrc) {
|
|
|
42
45
|
top: `${(window.innerHeight - height) / 2}px`,
|
|
43
46
|
left: `${(window.innerWidth - width) / 2}px`,
|
|
44
47
|
});
|
|
45
|
-
|
|
48
|
+
this.expandedImage = imageSrc;
|
|
46
49
|
}, 200);
|
|
47
50
|
}
|
|
48
|
-
export function closeImageViewer(
|
|
51
|
+
export function closeImageViewer(event) {
|
|
52
|
+
event === null || event === void 0 ? void 0 : event.preventDefault();
|
|
49
53
|
if (event && event.key !== 'Escape')
|
|
50
54
|
return;
|
|
51
|
-
document.removeEventListener('keydown',
|
|
52
|
-
const expandedImageRef =
|
|
53
|
-
const rect =
|
|
55
|
+
document.removeEventListener('keydown', closeImageListener);
|
|
56
|
+
const expandedImageRef = this.el.shadowRoot.querySelector('.image-viewer-expanded-image');
|
|
57
|
+
const rect = this.originalImage.getBoundingClientRect();
|
|
54
58
|
Object.assign(expandedImageRef.style, {
|
|
55
59
|
top: `${rect.top}px`,
|
|
56
60
|
pointerEvents: 'none',
|
|
@@ -65,5 +69,5 @@ export function closeImageViewer(context, event) {
|
|
|
65
69
|
expandedImageRef.style.transitionDuration = '0s';
|
|
66
70
|
}, 300);
|
|
67
71
|
document.body.style.overflow = '';
|
|
68
|
-
|
|
72
|
+
this.expandedImage = null;
|
|
69
73
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import { h } from "@stencil/core";
|
|
6
|
+
import cn from "../../global/lib/cn";
|
|
7
|
+
export const ImageViewer = ({ expandedImage, closeImageViewer }) => {
|
|
8
|
+
return (h("div", null, h("div", { onClick: closeImageViewer, class: cn('image-viewer-overlay', { active: expandedImage }), style: { backdropFilter: expandedImage ? 'blur(3px)' : 'blur(0px)' } }, h("button", { class: "image-viewer-close-btn" }, h("div", { class: "image-viewer-close-line first" }), h("div", { class: "image-viewer-close-line second" }))), h("img", { alt: "", class: "image-viewer-expanded-image" })));
|
|
9
|
+
};
|
|
@@ -3,15 +3,11 @@
|
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
5
|
import { Build } from "@stencil/core";
|
|
6
|
-
import { object } from "yup";
|
|
7
6
|
import { version } from "../../../package.json";
|
|
8
7
|
import localeNetworkMapper from "../../locale-mapper";
|
|
9
|
-
import { languageMapper } from "../types/locale";
|
|
10
8
|
import globalSchema from "../../locales/type";
|
|
11
9
|
import errorsSchema from "../../locales/errors/type";
|
|
12
|
-
|
|
13
|
-
errors: errorsSchema,
|
|
14
|
-
}).concat(globalSchema);
|
|
10
|
+
import { languageMapper } from "./types";
|
|
15
11
|
const cachedLocales = {};
|
|
16
12
|
export async function getSharedLocal(languageKey) {
|
|
17
13
|
const [errors, globalKeys] = await Promise.all([getLocaleLanguage(languageKey, 'errors', errorsSchema), getLocaleLanguage(languageKey, '-', globalSchema)]);
|
|
@@ -82,9 +78,19 @@ function recursiveParser(parents, bluePrint, parsedResponseMapper, languageFile)
|
|
|
82
78
|
async function requestLocaleFile(localeFile) {
|
|
83
79
|
if (cachedLocales[localeFile])
|
|
84
80
|
return await cachedLocales[localeFile];
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
81
|
+
try {
|
|
82
|
+
const fetchPromise = (Build.isDev ? fetch('http://localhost:3000/' + localeFile) : fetch(`https://cdn.jsdelivr.net/npm/adp-web-components@${version}/dist/${localeFile}`)).then(res => {
|
|
83
|
+
if (!res.ok)
|
|
84
|
+
delete cachedLocales[localeFile];
|
|
85
|
+
return res.json();
|
|
86
|
+
});
|
|
87
|
+
cachedLocales[localeFile] = fetchPromise;
|
|
88
|
+
const result = await fetchPromise;
|
|
89
|
+
cachedLocales[localeFile] = result;
|
|
90
|
+
return result;
|
|
91
|
+
}
|
|
92
|
+
catch (error) {
|
|
93
|
+
delete cachedLocales[localeFile];
|
|
94
|
+
return {};
|
|
95
|
+
}
|
|
90
96
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
* Built by ShiftSoftware
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
|
+
import { object } from "yup";
|
|
6
|
+
import globalSchema from "../../locales/type";
|
|
7
|
+
import errorsSchema from "../../locales/errors/type";
|
|
8
|
+
export const sharedLocalesSchema = object({
|
|
9
|
+
errors: errorsSchema,
|
|
10
|
+
}).concat(globalSchema);
|
|
5
11
|
export const ARABIC_JSON_FILE = 'ar.json';
|
|
6
12
|
export const ENGLISH_JSON_FILE = 'en.json';
|
|
7
13
|
export const KURDISH_JSON_FILE = 'ku.json';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
export const setPartLookupData = async (context, newData, headers = {}, { beforeAssignment } = {}) => {
|
|
6
|
+
if (newData === null || newData === undefined)
|
|
7
|
+
newData = (context === null || context === void 0 ? void 0 : context.searchString) || '';
|
|
8
|
+
// clears network timeoutRef which serves as await for animation
|
|
9
|
+
clearTimeout(context.networkTimeoutRef);
|
|
10
|
+
// handles request spam by canceling the previous ones
|
|
11
|
+
if (context.abortController)
|
|
12
|
+
context.abortController.abort();
|
|
13
|
+
context.abortController = new AbortController();
|
|
14
|
+
// syncing the internal timeout ref with external network ref
|
|
15
|
+
let scopedTimeoutRef;
|
|
16
|
+
const isSearchRequest = typeof newData === 'string';
|
|
17
|
+
const searchString = typeof newData === 'string' ? newData : newData === null || newData === void 0 ? void 0 : newData.partNumber;
|
|
18
|
+
try {
|
|
19
|
+
if (!searchString || searchString.trim().length === 0) {
|
|
20
|
+
context.isError = false;
|
|
21
|
+
context.isLoading = false;
|
|
22
|
+
context.searchString = '';
|
|
23
|
+
context.partLookup = undefined;
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
context.isLoading = true;
|
|
27
|
+
await new Promise(r => {
|
|
28
|
+
scopedTimeoutRef = setTimeout(r, 1000);
|
|
29
|
+
context.networkTimeoutRef = scopedTimeoutRef;
|
|
30
|
+
});
|
|
31
|
+
context.searchString = searchString;
|
|
32
|
+
const partResponse = isSearchRequest ? await getPartLookup(context, { scopedTimeoutRef }, headers) : newData;
|
|
33
|
+
if (context.networkTimeoutRef === scopedTimeoutRef) {
|
|
34
|
+
if (!partResponse)
|
|
35
|
+
throw new Error('wrongResponseFormat');
|
|
36
|
+
if (beforeAssignment)
|
|
37
|
+
context.partLookup = await beforeAssignment(partResponse, { scopedTimeoutRef });
|
|
38
|
+
else
|
|
39
|
+
context.partLookup = partResponse;
|
|
40
|
+
}
|
|
41
|
+
context.errorMessage = null;
|
|
42
|
+
context.isLoading = false;
|
|
43
|
+
context.isError = false;
|
|
44
|
+
}
|
|
45
|
+
catch (error) {
|
|
46
|
+
if (error && (error === null || error === void 0 ? void 0 : error.name) === 'AbortError')
|
|
47
|
+
return;
|
|
48
|
+
if (context.errorCallback)
|
|
49
|
+
context.errorCallback(error.message);
|
|
50
|
+
console.error(error);
|
|
51
|
+
context.setErrorMessage(error.message);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
export const setPartLookupErrorState = (context, message) => {
|
|
55
|
+
context.isError = true;
|
|
56
|
+
context.isLoading = false;
|
|
57
|
+
context.errorMessage = message;
|
|
58
|
+
context.partLookup = undefined;
|
|
59
|
+
};
|
|
60
|
+
export async function getPartLookup(context, generalProps, headers = {}) {
|
|
61
|
+
const { scopedTimeoutRef } = generalProps;
|
|
62
|
+
const handleResult = (newPartLookup) => {
|
|
63
|
+
if ((context === null || context === void 0 ? void 0 : context.networkTimeoutRef) === scopedTimeoutRef) {
|
|
64
|
+
if (!newPartLookup && (context === null || context === void 0 ? void 0 : context.searchString))
|
|
65
|
+
throw new Error('wrongResponseFormat');
|
|
66
|
+
if (context === null || context === void 0 ? void 0 : context.loadedResponse)
|
|
67
|
+
context === null || context === void 0 ? void 0 : context.loadedResponse(newPartLookup);
|
|
68
|
+
return newPartLookup;
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
if (context === null || context === void 0 ? void 0 : context.isDev) {
|
|
72
|
+
const newData = context === null || context === void 0 ? void 0 : context.mockData[context === null || context === void 0 ? void 0 : context.searchString];
|
|
73
|
+
return handleResult(newData);
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
if (!(context === null || context === void 0 ? void 0 : context.baseUrl))
|
|
77
|
+
throw new Error('noBaseUrl');
|
|
78
|
+
const response = await fetch(`${context === null || context === void 0 ? void 0 : context.baseUrl}${context === null || context === void 0 ? void 0 : context.searchString}?${context === null || context === void 0 ? void 0 : context.queryString}`, { signal: context === null || context === void 0 ? void 0 : context.abortController.signal, headers: headers });
|
|
79
|
+
if (response.status === 204)
|
|
80
|
+
throw new Error('noPartsFound');
|
|
81
|
+
const newData = (await response.json());
|
|
82
|
+
return handleResult(newData);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import { h } from "@stencil/core";
|
|
6
|
+
import cn from "../../global/lib/cn";
|
|
7
|
+
export const VehicleInfoLayout = (props, children) => props.coreOnly ? (h("div", { class: cn({ loading: props.isLoading }) }, children)) : (h("div", { dir: props.direction, part: "vehicle-info-container", class: cn('vehicle-info-container', { loading: props.isLoading }) }, h("div", { part: "vehicle-info-header", class: "vehicle-info-header" }, h("strong", { part: "vehicle-info-header-vin", class: "vehicle-info-header-vin load-animation" }, props.isError ? (h("span", { dir: props.direction, style: { color: 'red' } }, props.errorMessage)) : (props.header))), h("div", { part: "vehicle-info-body", class: "vehicle-info-body" }, h("div", { part: "vehicle-info-content", class: "vehicle-info-content" }, children))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
export const vehicleRequestHeaders = {
|
|
6
|
+
cityId: 'City-Id',
|
|
7
|
+
userId: 'User-Id',
|
|
8
|
+
companyId: 'Company-Id',
|
|
9
|
+
customerName: 'Customer-Name',
|
|
10
|
+
customerPhone: 'Customer-Phone',
|
|
11
|
+
customerEmail: 'Customer-Email',
|
|
12
|
+
companyBranchId: 'Company-Branch-Id',
|
|
13
|
+
cityIntegrationId: 'City-Integration-Id',
|
|
14
|
+
brandIntegrationId: 'Brand-Integration-Id',
|
|
15
|
+
companyIntegrationId: 'Company-Integration-Id',
|
|
16
|
+
companyBranchIntegrationId: 'Company-Branch-Integration-Id',
|
|
17
|
+
};
|