adp-web-components 0.0.89 → 0.0.90
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/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 +15 -32
- package/dist/cjs/flexible-container.cjs.entry.js +134 -0
- package/dist/cjs/form-dialog_8.cjs.entry.js +44 -100
- package/dist/cjs/{get-local-language-e539cfdc.js → get-local-language-XsAJEAsO.js} +338 -295
- package/dist/cjs/{index-a8de3655.js → index-BjyafrBw.js} +525 -288
- package/dist/cjs/information-table.cjs.entry.js +40 -0
- package/dist/cjs/loader.cjs.js +3 -6
- package/dist/cjs/loading-spinner.cjs.entry.js +6 -10
- package/dist/cjs/part-lookup.cjs.entry.js +14 -21
- 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_7.cjs.entry.js +1487 -0
- package/dist/cjs/shift-tabs_2.cjs.entry.js +301 -0
- package/dist/cjs/{type-3183db65.js → type-BAD2dFzP.js} +32 -123
- package/dist/cjs/{type-87edb16d.js → type-CCsnwaKp.js} +11 -8
- package/dist/cjs/{type-c576b922.js → type-DT5vXP0E.js} +4 -4
- package/dist/cjs/{type-3d22f1fc.js → vehicle-info-layout-BSAeLW7e.js} +11 -1
- package/dist/cjs/vehicle-lookup.cjs.entry.js +60 -50
- package/dist/cjs/vin-extractor.cjs.entry.js +22 -32
- 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 +317 -0
- package/dist/collection/components/components/information-table.css +1 -0
- package/dist/collection/components/components/information-table.js +137 -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/components/vehicle-info-layout.js +7 -0
- package/dist/collection/components/form-elements/form-dialog.css +1 -1
- package/dist/collection/components/form-elements/form-dialog.js +13 -9
- package/dist/collection/components/form-elements/form-input.css +1 -1
- package/dist/collection/components/form-elements/form-input.js +42 -26
- package/dist/collection/components/form-elements/form-select.css +1 -1
- package/dist/collection/components/form-elements/form-select.js +54 -38
- 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 +4 -2
- package/dist/collection/components/form-elements/form-structure.css +1 -1
- package/dist/collection/components/form-elements/form-structure.js +29 -13
- package/dist/collection/components/form-elements/form-submit.css +1 -1
- package/dist/collection/components/form-elements/form-submit.js +15 -7
- package/dist/collection/components/form-elements/form-text-area.css +1 -1
- package/dist/collection/components/form-elements/form-text-area.js +33 -20
- package/dist/collection/components/forms/contact-us/form.css +1 -1
- package/dist/collection/components/forms/contact-us-form.js +37 -22
- package/dist/collection/components/forms/service-booking-form.js +37 -22
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +40 -27
- package/dist/collection/components/part-lookup/distributor-lookup.js +46 -29
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +54 -35
- package/dist/collection/components/part-lookup/part-lookup.js +39 -23
- package/dist/collection/components/vehicle-lookup/components/CardsContainer.js +5 -5
- package/dist/collection/components/vehicle-lookup/components/StatusCard.js +2 -2
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +99 -47
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.css +1 -0
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +959 -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 +590 -0
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +123 -53
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.css +1 -0
- package/dist/collection/components/vehicle-lookup/{paint-thickness.js → vehicle-paint-thickness.js} +99 -43
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.css +3 -0
- package/dist/collection/components/vehicle-lookup/{service-history.js → vehicle-service-history.js} +101 -38
- package/dist/collection/components/vehicle-lookup/vehicle-specification.css +3 -1
- package/dist/collection/components/vehicle-lookup/vehicle-specification.js +66 -38
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.css +3 -0
- package/dist/collection/components/vehicle-lookup/{warranty-details.js → vehicle-warranty-details.js} +168 -54
- package/dist/collection/components/vin-extractor/vin-extractor.js +60 -39
- 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/get-local-language.js +15 -5
- package/dist/collection/global/lib/scroll-into-container-view.js +16 -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 +9 -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 +14 -14
- 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-1vy-Ba6r.js +5 -0
- package/dist/components/p-B6QhQCZi.js +5 -0
- package/dist/components/p-BDkK65_1.js +5 -0
- package/dist/components/p-BK16Cn81.js +5 -0
- package/dist/components/{p-c981ee34.js → p-BaJpYztb.js} +1 -1
- package/dist/components/p-C-4kx8qU.js +5 -0
- package/dist/components/p-C1F_f1WE.js +5 -0
- package/dist/components/p-CACnUI7c.js +5 -0
- package/dist/components/p-CDOvd2iD.js +5 -0
- package/dist/components/p-CGzOJT7g.js +5 -0
- package/dist/components/p-CINfIgzX.js +5 -0
- package/dist/components/p-CJpwqpuQ.js +5 -0
- package/dist/components/p-CK4E5G0i.js +5 -0
- package/dist/components/p-CUqXnLyM.js +5 -0
- package/dist/components/p-CjWDXQ_q.js +5 -0
- package/dist/components/p-Cl9ct-bZ.js +5 -0
- package/dist/components/p-CqGVdvFp.js +5 -0
- package/dist/components/p-D2bxjSGr.js +5 -0
- package/dist/components/p-D63WC2_Y.js +5 -0
- package/dist/components/p-D7yku_Qi.js +5 -0
- package/dist/components/p-DXHx6lre.js +5 -0
- package/dist/components/p-DXj5zsQK.js +5 -0
- package/dist/components/p-DsCtgcZn.js +5 -0
- package/dist/components/p-DxjQlmaz.js +5 -0
- package/dist/components/p-JtBlsz4j.js +5 -0
- package/dist/components/p-P3fAKtye.js +5 -0
- package/dist/components/p-nxlqujKv.js +5 -0
- package/dist/components/p-vvHN2Olh.js +5 -0
- package/dist/components/p-yQ70lKV2.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/cn-BK16Cn81.js +2595 -0
- package/dist/esm/contact-us-form.entry.js +11 -20
- package/dist/esm/dead-stock-lookup_3.entry.js +15 -30
- package/dist/esm/flexible-container.entry.js +132 -0
- package/dist/esm/form-dialog_8.entry.js +44 -98
- package/dist/esm/{get-local-language-e286080a.js → get-local-language-BPo-xYwK.js} +339 -296
- package/dist/esm/{index-3a623f7c.js → index-CikEOqe0.js} +524 -268
- package/dist/esm/information-table.entry.js +38 -0
- package/dist/esm/loader.js +3 -4
- package/dist/esm/loading-spinner.entry.js +6 -8
- package/dist/esm/part-lookup.entry.js +14 -19
- 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_7.entry.js +1479 -0
- package/dist/esm/shift-tabs_2.entry.js +298 -0
- package/dist/esm/{type-dc3e60a4.js → type-CfLRnI1J.js} +10 -7
- package/dist/esm/{type-1d1a2052.js → type-D9Rd8Kcd.js} +5 -5
- package/dist/esm/{type-68307857.js → type-DHujxJVp.js} +32 -123
- package/dist/esm/vehicle-info-layout-D1bvY1nt.js +43 -0
- package/dist/esm/vehicle-lookup.entry.js +55 -43
- package/dist/esm/vin-extractor.entry.js +22 -30
- 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 +6 -3
- package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/en.json +4 -1
- package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/ku.json +6 -3
- package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/ru.json +10 -7
- package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/type.ts +10 -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-0c8bbdd0.entry.js +5 -0
- package/dist/shift-components/p-238f5df0.entry.js +5 -0
- package/dist/shift-components/p-389f444c.entry.js +5 -0
- package/dist/shift-components/p-5dd208de.entry.js +5 -0
- package/dist/shift-components/p-5f91eb5f.entry.js +5 -0
- package/dist/shift-components/p-76dd44e9.entry.js +5 -0
- package/dist/shift-components/p-9a51dae0.entry.js +5 -0
- package/dist/shift-components/p-BAMA88Mr.js +5 -0
- package/dist/shift-components/p-BK16Cn81.js +5 -0
- package/dist/shift-components/p-Br0JD1CD.js +5 -0
- package/dist/shift-components/p-CIU9c3pi.js +5 -0
- package/dist/shift-components/p-CikEOqe0.js +6 -0
- package/dist/shift-components/p-CuQ84qxe.js +5 -0
- package/dist/shift-components/p-DHb8KxaG.js +5 -0
- package/dist/shift-components/p-af44ca99.entry.js +5 -0
- package/dist/shift-components/p-b6497f63.entry.js +5 -0
- package/dist/shift-components/p-d0e6cd78.entry.js +5 -0
- package/dist/shift-components/p-f1225504.entry.js +5 -0
- package/dist/shift-components/p-f282c740.entry.js +5 -0
- package/dist/shift-components/p-faabbd23.entry.js +5 -0
- package/dist/shift-components/p-ff0fec09.entry.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 +30 -0
- package/dist/types/components/components/information-table.d.ts +20 -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/components/vehicle-info-layout.d.ts +11 -0
- package/dist/types/components/part-lookup/dead-stock-lookup.d.ts +5 -5
- package/dist/types/components/part-lookup/distributor-lookup.d.ts +5 -5
- package/dist/types/components/part-lookup/manufacturer-lookup.d.ts +5 -5
- 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/vehicle-accessories.d.ts +6 -5
- package/dist/types/components/vehicle-lookup/{dynamic-claim.d.ts → vehicle-claimable-items.d.ts} +31 -22
- package/dist/types/components/vehicle-lookup/{dynamic-redeem.d.ts → vehicle-item-claim-form.d.ts} +34 -10
- package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +20 -16
- package/dist/types/components/vehicle-lookup/{paint-thickness.d.ts → vehicle-paint-thickness.d.ts} +8 -6
- package/dist/types/components/vehicle-lookup/{service-history.d.ts → vehicle-service-history.d.ts} +7 -6
- package/dist/types/components/vehicle-lookup/vehicle-specification.d.ts +6 -5
- package/dist/types/components/vehicle-lookup/{warranty-details.d.ts → vehicle-warranty-details.d.ts} +9 -8
- package/dist/types/components.d.ts +1060 -195
- package/dist/types/global/api/partInformation.d.ts +5 -5
- package/dist/types/global/api/vehicleInformation.d.ts +4 -4
- 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/scroll-into-container-view.d.ts +1 -0
- 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 +2 -2
- package/dist/types/locales/vehicleLookup/{dynamicClaim → claimableItems}/type.d.ts +28 -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 +52 -44
- package/dist/types/stencil-public-runtime.d.ts +23 -1
- package/package.json +10 -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/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/warranty-details.css +0 -1
- 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-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-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/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/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 → generated/part/branch-dead-stock-dto.js} +0 -0
- /package/dist/components/{p-00a27a58.js → p-B5YdqGVm.js} +0 -0
- /package/dist/components/{p-fab97ac7.js → p-BT4rhLRL.js} +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
|
@@ -0,0 +1,590 @@
|
|
|
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 { getSharedLocal, sharedLocalesSchema } from "../../global/lib/get-local-language";
|
|
8
|
+
import { claimFormSchema } from "../../locales/vehicleLookup/claimableItems/type";
|
|
9
|
+
export class VehicleItemClaimForm {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.vin = '';
|
|
12
|
+
this.language = 'en';
|
|
13
|
+
this.item = null;
|
|
14
|
+
this.unInvoicedByBrokerName = null;
|
|
15
|
+
this.canceledItems = null;
|
|
16
|
+
this.locale = claimFormSchema.getDefault();
|
|
17
|
+
this.claimViaBarcodeScanner = false;
|
|
18
|
+
this.sharedLocales = sharedLocalesSchema.getDefault();
|
|
19
|
+
this.internalVin = '';
|
|
20
|
+
this.uploadProgress = 0;
|
|
21
|
+
this.isLoading = false;
|
|
22
|
+
this.isOpened = false;
|
|
23
|
+
this.isDocumentError = false;
|
|
24
|
+
this.selectedFile = null;
|
|
25
|
+
this.internalItem = null;
|
|
26
|
+
this.confirmServiceCancellation = false;
|
|
27
|
+
this.confirmUnInvoicedTBPVehicles = false;
|
|
28
|
+
this.internalCanceledItem = null;
|
|
29
|
+
this.documentError = 'documentRequiredError';
|
|
30
|
+
this.readyToClaim = false;
|
|
31
|
+
this.qrCode = null;
|
|
32
|
+
this.invoice = null;
|
|
33
|
+
this.job = null;
|
|
34
|
+
this.closeModal = async () => {
|
|
35
|
+
this.isOpened = false;
|
|
36
|
+
this.item = null;
|
|
37
|
+
await new Promise(r => setTimeout(r, 500));
|
|
38
|
+
this.canceledItems = [];
|
|
39
|
+
this.unInvoicedByBrokerName = null;
|
|
40
|
+
if (this.claimViaBarcodeScanner) {
|
|
41
|
+
this.qrInput.value = '';
|
|
42
|
+
this.qrInput.readOnly = false;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
this.invoiceInput.value = '';
|
|
46
|
+
this.invoiceInput.readOnly = false;
|
|
47
|
+
this.jobInput.value = '';
|
|
48
|
+
this.jobInput.readOnly = false;
|
|
49
|
+
}
|
|
50
|
+
this.qrCode = null;
|
|
51
|
+
this.invoice = null;
|
|
52
|
+
this.job = null;
|
|
53
|
+
this.readyToClaim = false;
|
|
54
|
+
this.isLoading = false;
|
|
55
|
+
};
|
|
56
|
+
this.inputKeyDown = async (event) => {
|
|
57
|
+
var _a, _b;
|
|
58
|
+
if (event === null || event.key === 'Enter') {
|
|
59
|
+
if (!this.confirmServiceCancellation || !this.confirmUnInvoicedTBPVehicles)
|
|
60
|
+
return;
|
|
61
|
+
if (event !== null)
|
|
62
|
+
event === null || event === void 0 ? void 0 : event.preventDefault();
|
|
63
|
+
if (!(this === null || this === void 0 ? void 0 : this.handleClaiming))
|
|
64
|
+
return;
|
|
65
|
+
if (!this.readyToClaim)
|
|
66
|
+
return;
|
|
67
|
+
if ((_a = this.item) === null || _a === void 0 ? void 0 : _a.showDocumentUploader) {
|
|
68
|
+
if (this.selectedFile && this.selectedFile.size > this.maximumDocumentFileSizeInMb * 1024 * 1024) {
|
|
69
|
+
this.documentError = 'documentLimitError';
|
|
70
|
+
this.isDocumentError = true;
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
if (((_b = this.item) === null || _b === void 0 ? void 0 : _b.documentUploaderIsRequired) && !this.selectedFile) {
|
|
74
|
+
this.documentError = 'documentRequiredError';
|
|
75
|
+
this.isDocumentError = true;
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
this.readyToClaim = false;
|
|
80
|
+
if (this.claimViaBarcodeScanner) {
|
|
81
|
+
this.qrInput.readOnly = true;
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
this.invoiceInput.readOnly = true;
|
|
85
|
+
this.jobInput.readOnly = true;
|
|
86
|
+
}
|
|
87
|
+
this.isLoading = true;
|
|
88
|
+
await this.handleClaiming({ jobNumber: this.job, invoice: this.invoice, qrCode: this.qrCode, document: this.selectedFile });
|
|
89
|
+
this.isLoading = false;
|
|
90
|
+
this.readyToClaim = true;
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
this.registerFileUploader = () => {
|
|
94
|
+
var _a, _b;
|
|
95
|
+
(_a = this.documentButton) === null || _a === void 0 ? void 0 : _a.removeEventListener('click', this.onFileUploaderClick);
|
|
96
|
+
(_b = this.documentUploader) === null || _b === void 0 ? void 0 : _b.removeEventListener('change', this.onFileUploaderChange);
|
|
97
|
+
this.documentButton = this.el.shadowRoot.querySelector('.document-button');
|
|
98
|
+
this.documentUploader = this.el.shadowRoot.querySelector('.document-uploader');
|
|
99
|
+
if (!this.documentButton || !this.documentUploader)
|
|
100
|
+
return;
|
|
101
|
+
this.documentButton.addEventListener('click', this.onFileUploaderClick);
|
|
102
|
+
this.documentUploader.addEventListener('change', this.onFileUploaderChange);
|
|
103
|
+
};
|
|
104
|
+
this.onFileUploaderClick = () => {
|
|
105
|
+
this.documentUploader.click();
|
|
106
|
+
};
|
|
107
|
+
this.onFileUploaderChange = (event) => {
|
|
108
|
+
var _a;
|
|
109
|
+
const input = event.target;
|
|
110
|
+
const file = (_a = input.files) === null || _a === void 0 ? void 0 : _a[0];
|
|
111
|
+
this.documentUploader.value = '';
|
|
112
|
+
if (!file)
|
|
113
|
+
return;
|
|
114
|
+
this.selectedFile = file;
|
|
115
|
+
if (this.selectedFile.size > this.maximumDocumentFileSizeInMb * 1024 * 1024) {
|
|
116
|
+
this.documentError = 'documentLimitError';
|
|
117
|
+
this.isDocumentError = true;
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
this.isDocumentError = false;
|
|
122
|
+
if (this.claimViaBarcodeScanner) {
|
|
123
|
+
// @ts-ignore
|
|
124
|
+
this.inputKeyDown({ key: 'Enter', preventDefault: () => { } });
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
this.clearFile = (event) => {
|
|
129
|
+
event.stopPropagation();
|
|
130
|
+
this.selectedFile = null;
|
|
131
|
+
this.isDocumentError = false;
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
async componentWillLoad() {
|
|
135
|
+
await this.changeLanguage(this.language);
|
|
136
|
+
}
|
|
137
|
+
async changeLanguage(newLanguage) {
|
|
138
|
+
this.sharedLocales = await getSharedLocal(newLanguage);
|
|
139
|
+
}
|
|
140
|
+
onIsLoadingChange(newValue) {
|
|
141
|
+
if (this.loadingStateChange)
|
|
142
|
+
this.loadingStateChange(newValue);
|
|
143
|
+
}
|
|
144
|
+
async componentDidLoad() {
|
|
145
|
+
this.dynamicClaimProcessor = this.el.shadowRoot.querySelector('.dynamic-claim-processor');
|
|
146
|
+
if (this.unInvoicedByBrokerName === null)
|
|
147
|
+
this.confirmUnInvoicedTBPVehicles = true;
|
|
148
|
+
else
|
|
149
|
+
this.confirmUnInvoicedTBPVehicles = false;
|
|
150
|
+
}
|
|
151
|
+
async componentDidRender() {
|
|
152
|
+
this.qrInput = this.el.shadowRoot.querySelector('.dynamic-claim-processor #qr-input');
|
|
153
|
+
this.invoiceInput = this.el.shadowRoot.querySelector('.dynamic-claim-processor #invoice-input');
|
|
154
|
+
this.jobInput = this.el.shadowRoot.querySelector('.dynamic-claim-processor #job-input');
|
|
155
|
+
this.registerFileUploader();
|
|
156
|
+
}
|
|
157
|
+
async changeInternalCanceledItem(newInternalCanceledItem) {
|
|
158
|
+
this.internalCanceledItem = newInternalCanceledItem;
|
|
159
|
+
if (this.internalCanceledItem.length > 0) {
|
|
160
|
+
this.confirmServiceCancellation = false;
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
this.confirmServiceCancellation = true;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
async changeConfirmUnInvoicedTBPVehicles(newUnInvoicedByBrokerName) {
|
|
167
|
+
if (newUnInvoicedByBrokerName === null) {
|
|
168
|
+
this.confirmUnInvoicedTBPVehicles = true;
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
this.confirmUnInvoicedTBPVehicles = false;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
async changeInternalVin(newInternalVin) {
|
|
175
|
+
this.internalVin = newInternalVin;
|
|
176
|
+
}
|
|
177
|
+
async changeInternalItem(newItem) {
|
|
178
|
+
var _a;
|
|
179
|
+
this.isOpened = !!newItem;
|
|
180
|
+
if (newItem)
|
|
181
|
+
this.internalItem = newItem;
|
|
182
|
+
this.claimViaBarcodeScanner = ((_a = this.item) === null || _a === void 0 ? void 0 : _a.claimingMethodEnum) === 'ClaimByScanningQRCode';
|
|
183
|
+
if (newItem) {
|
|
184
|
+
this.closeModalListenerRef = (event) => event.key === 'Escape' && this.quite();
|
|
185
|
+
window.addEventListener('keydown', this.closeModalListenerRef);
|
|
186
|
+
await new Promise(r => setTimeout(r, 300));
|
|
187
|
+
if (this.qrInput)
|
|
188
|
+
this.qrInput.focus();
|
|
189
|
+
if (this.invoiceInput)
|
|
190
|
+
this.invoiceInput.focus();
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
window.removeEventListener('keydown', this.closeModalListenerRef);
|
|
194
|
+
this.quite();
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
async quite() {
|
|
198
|
+
this.closeModal();
|
|
199
|
+
}
|
|
200
|
+
async getQrValue() {
|
|
201
|
+
return this.invoiceInput.value;
|
|
202
|
+
}
|
|
203
|
+
updateReadyToClaim() {
|
|
204
|
+
var _a, _b, _c;
|
|
205
|
+
this.readyToClaim = false;
|
|
206
|
+
if (this.claimViaBarcodeScanner) {
|
|
207
|
+
if (((_a = this.qrCode) === null || _a === void 0 ? void 0 : _a.trim().length) > 0)
|
|
208
|
+
this.readyToClaim = true;
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
if (((_b = this.invoice) === null || _b === void 0 ? void 0 : _b.trim().length) > 0 && ((_c = this.job) === null || _c === void 0 ? void 0 : _c.trim().length) > 0)
|
|
212
|
+
this.readyToClaim = true;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
async onOpenChange(newOpenState) {
|
|
216
|
+
document.body.style.overflow = newOpenState ? 'hidden' : 'auto';
|
|
217
|
+
if (newOpenState) {
|
|
218
|
+
this.uploadProgress = 0;
|
|
219
|
+
this.selectedFile = null;
|
|
220
|
+
this.isDocumentError = false;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
async setFileUploadProgression(uploadPercentage) {
|
|
224
|
+
this.uploadProgress = uploadPercentage;
|
|
225
|
+
}
|
|
226
|
+
render() {
|
|
227
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
228
|
+
const texts = this.locale;
|
|
229
|
+
const disableInput = !this.confirmServiceCancellation || !this.confirmUnInvoicedTBPVehicles || this.isLoading;
|
|
230
|
+
return (h(Host, { key: '68c9d9074bf07f9a2a881752c09a7ba2e64be92f' }, h("div", { key: '34a8a7642e036533a19c12c1c1f53e9d0318b032', dir: this.sharedLocales.direction, class: cn('dynamic-claim-processor min-w-[100dvw] h-[100dvh] flex flex-col justify-between p-[50px] box-border overflow-auto', (this === null || this === void 0 ? void 0 : this.isOpened) && 'active') }, h("svg", { key: '4627dac1932c7fc0b80de8048c1ad9e3e62109da', id: "dynamic-claim-processor-close-icon", onClick: this.closeModal, viewBox: "-0.5 0 25 25", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: 'ffb23a77a473a16cc7b206ffbe3f89ffbf922673', id: "SVGRepo_bgCarrier", "stroke-width": "0" }), h("g", { key: '2ba466a2fc2d6e1f642c2aac75d9886fdceec68b', id: "SVGRepo_tracerCarrier", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", { key: '3de8270e7c20b6da4bb7843075824ffddff114b1', id: "SVGRepo_iconCarrier" }, h("path", { key: '6eeb76fcce519e4f9dedca1fea8b4566a47495ff', d: "M3 21.32L21 3.32001", stroke: "#000000", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { key: '261b6766db7a35b9fc0e2cded0426233388f2ce4', d: "M3 3.32001L21 21.32", stroke: "#000000", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), h("div", { key: 'a511c03d8adb06768cb326aa8913bcbf877f037a', class: "p-0 border border-[#dcdcdc] dynamic-claim-processor-info-box box-border" }, h("div", { key: 'c9e23b62e8bd27da57dc5d6ad11b726a3ac4bac7', class: "dynamic-claim-processor-info-box-header" }, h("strong", { key: '669782259fabb99a515f4b860a55971313ebef79', class: "dynamic-claim-header-vin" }, this === null || this === void 0 ? void 0 : this.internalVin)), h("div", { key: '92965a57eb7e8025077a881b4f9ff0377935522a', class: "dynamic-claim-processor-info-box-body" }, h("table", { key: '8a0bb605ef0c420369805954f95e4191ee2933b1', class: "border-separate" }, h("tr", { key: '5fea41900ad8de7ad0c39b012f5980156c08fc3c' }, h("th", { key: '78d467d8a54a4f836cd850485c2a095735388bf1' }, texts.serviceType), h("td", { key: 'ea27693cba300fa26653d25648eea367d10a5273' }, (_a = this === null || this === void 0 ? void 0 : this.internalItem) === null || _a === void 0 ? void 0 : _a.type), h("th", { key: '639450d7a2359a4de0cee8300b70f2a27c1b3a89' }, texts.name), h("td", { key: '3014be4d7deda07a7dd289e9a00a481524807e77' }, (_b = this === null || this === void 0 ? void 0 : this.internalItem) === null || _b === void 0 ? void 0 : _b.name)), h("tr", { key: '27ae532bab8417c10d724e5a64e64ef8894671b4' }, h("th", { key: 'b9bc6c432402cbf0473a7ab5e06cdf74d1f9c0d5' }, texts.activationDate), h("td", { key: '5b047e3eca4889bf571800d2b89c7bf69acf83c8' }, (_c = this === null || this === void 0 ? void 0 : this.internalItem) === null || _c === void 0 ? void 0 : _c.activatedAt), h("th", { key: '85d172b2be9e0a8faa4c45fbfb0702a5f3af72da' }, texts.expireDate), h("td", { key: '52d3b4453d1bd2cfce90bbf7a62475047ca44c7f' }, (_d = this === null || this === void 0 ? void 0 : this.internalItem) === null || _d === void 0 ? void 0 : _d.expiresAt)), h("tr", { key: '55eef0c232a7c2a5759fe0489878a732472ec5ab' }, h("th", { key: '1d8a9e465e381f70ee1c1e44c1188bc3a80f0441' }, texts.packageCode), h("td", { key: '90f7f04e74f5f3395c9aac095879e7887cead8ed' }, (_e = this === null || this === void 0 ? void 0 : this.internalItem) === null || _e === void 0 ? void 0 : _e.packageCode))))), h("div", { key: 'a69991bba649fd839a62bc441e7579b56cd74c43', style: { flex: '1', width: '100%', display: 'flex', flexDirection: 'column', justifyContent: 'space-evenly' } }, (this === null || this === void 0 ? void 0 : this.internalCanceledItem) && Array.isArray(this.internalCanceledItem) && !!this.internalCanceledItem.length && (h("div", { key: '1f2c413c6384a7297d84ca29d032ec73454f5ade', class: "admonition warning" }, h("p", { key: 'a94d82d025bb2427ea0e5d8b4b2fedd9962bdcd3', class: "admonition-title" }, texts.warning), h("div", { key: 'c2a69729ab2e054fc8e778f033301493432a96f9', style: { padding: '0 30px' } }, h("p", { key: 'f06f0232b58f2a4c0c476923551159ac3e85edee', class: "my-4" }, texts.skipServicesWarning), h("ul", { key: 'cd43b8e60c0f8e464f5852fc37dc961afcf78868', class: "dynamic-claim-processor-to-be-cancelled-list warning-ul my-4 list-disc" }, this.internalCanceledItem.map(({ name }) => (h("li", { id: name }, name)))), h("div", { key: 'a2b0e4a8e4692441f259039719d18045f78eda23', class: cn('cancel-confirmation-box transition duration-300', { 'pointer-events-none select-none opacity-50': this.isLoading }) }, h("label", { key: 'af3d3127cade63b49b91079a1e2554093b5c2ed5' }, h("input", { key: 'cd8a6cdc6d1b7fe959e458aac83778bf16887406', type: "checkbox", disabled: this.isLoading, class: "confirm-cancellation-input m-[3px] ml-1", onChange: () => {
|
|
231
|
+
this.confirmServiceCancellation = !this.confirmServiceCancellation;
|
|
232
|
+
setTimeout(() => {
|
|
233
|
+
this.qrInput.focus();
|
|
234
|
+
}, 100);
|
|
235
|
+
} }), texts.confirmSkipServices))))), true && this.unInvoicedByBrokerName && (h("div", { key: '904e60f232c8c4040e15d0fff1285342024144ff', class: "admonition warning" }, h("p", { key: '2ffee3a33822761e703b4e3a2f9839659c6c9c73', class: "admonition-title" }, texts.warning), h("div", { key: '589a77167d0406d1c510241be7eebb9d9e1baa3f', style: { padding: '0 30px' } }, h("p", { key: 'a71561df3f5ff56946fad869ebd593523dbdd6a2', class: "my-4" }, texts.notInvoiced), h("div", { key: '87ae05d04059a1193101195684c59b1d7d5cfaf5' }, h("strong", { key: '88a95c3c07916d2295d50538111504f1d8afa34b' }, this.unInvoicedByBrokerName)), h("div", { key: 'f3192eb0857e63217fff60e7ef38006127fe4c19', class: cn('cancel-confirmation-box transition duration-300', { 'pointer-events-none select-none opacity-50': this.isLoading }) }, h("label", { key: '7b59ec73d0f4c3a36fb021be178ffafcf0cf723c' }, h("input", { key: '812dd79a73dfb1c9ffe5f156eac4802c68eb2a18', type: "checkbox", disabled: this.isLoading, class: "confirm-cancellation-input m-[3px] ml-1", onChange: () => {
|
|
236
|
+
this.confirmUnInvoicedTBPVehicles = !this.confirmUnInvoicedTBPVehicles;
|
|
237
|
+
setTimeout(() => {
|
|
238
|
+
this.qrInput.focus();
|
|
239
|
+
}, 100);
|
|
240
|
+
} }), texts.confirmNotInvoiced))))), h("div", { key: 'a66d49b4f53bb1e590cff1578b0df52b3bf17b63', class: cn('dynamic-claim-processor-progress', disableInput && 'disabled') }, h("div", { key: '6c1ad07105b5885b0a53f5e32e40d2f734607821', id: "scan-invoice-step", class: cn('dynamic-claim-processor-progress-step', this.isLoading && 'processing') }, h("div", { key: '06fae64a5eb0fd06a4c3789aa37dd38e9a91460c', class: "relative size-[130px] m-auto mt-[15px] flex justify-center" }, h("div", { key: 'a5a67606641200e34460bb32825b410ee794ac55', class: "absolute scan-invoice-wrapper flex flex-col gap-[4px] justify-center items-center" }, h("svg", { key: '27b1a85ad8c72cf0bb88ea69c45b7ef04219b852', class: "size-[100px]", fill: "#3071a9", version: "1.1", id: "Layer_1", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", stroke: "#ffffff" }, h("g", { key: '52350aa4858c1824cff211835fb0f836de5a29a3', id: "SVGRepo_bgCarrier", "stroke-width": "0" }), h("g", { key: '3d75a21222790b234bbad2441ac33b7c83a46549', id: "SVGRepo_tracerCarrier", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", { key: 'eb2ee054f685ac661c643c8ea3b0dddcaf6b77d9', id: "SVGRepo_iconCarrier" }, h("g", { key: '7534e0c97c9b24079aa9670d780ecdd21282bd53' }, h("g", { key: 'bcd7b85fb38b015b78fea769c0b0c5f715f2a8b2' }, h("path", { key: '97b7f3ae9a72ec35a6cf8ff683c6734fda4c410e', d: "M354.338,34.205h-61.71c-3.354-9.93-12.752-17.102-23.8-17.102h-17.547C243.359,6.451,230.813,0,217.521,0 s-25.839,6.451-33.76,17.102h-17.547c-11.048,0-20.446,7.172-23.8,17.102H80.701c-18.566,0-33.67,15.105-33.67,33.67v359.148 c0,18.566,15.105,33.67,33.67,33.67h171.023c4.427,0,8.017-3.589,8.017-8.017c0-4.427-3.589-8.017-8.017-8.017H80.701 c-9.725,0-17.637-7.912-17.637-17.637V67.875c0-9.725,7.912-17.637,17.637-17.637h60.394v26.188c0,4.427,3.589,8.017,8.017,8.017 H285.93c4.427,0,8.017-3.589,8.017-8.017V50.238h60.391c9.725,0,17.637,7.912,17.637,17.637v230.881 c0,4.427,3.589,8.017,8.017,8.017c4.427,0,8.017-3.589,8.017-8.017V67.875C388.008,49.309,372.904,34.205,354.338,34.205z M277.914,68.409H157.129V42.252c0-0.011,0.001-0.02,0.001-0.031c0-0.005-0.001-0.011-0.001-0.015 c0.009-5.004,4.08-9.071,9.085-9.071h21.846c2.854,0,5.493-1.517,6.929-3.985c4.781-8.213,13.204-13.117,22.532-13.117 s17.751,4.904,22.532,13.117c1.435,2.467,4.075,3.985,6.929,3.985h21.846c4.999,0,9.067,4.059,9.085,9.055 c0,0.011-0.001,0.02-0.001,0.031c0,0.021,0.003,0.041,0.003,0.062V68.409z" }))), h("g", { key: 'efb74c8efdecb67d81605303cfb8c6bcbec6dbf3' }, h("g", { key: '066bd75b457609225923dd633b414b3e91402fa9' }, h("path", { key: 'd760e3598cbe2128b0775ead8d8e688ffc9314a2', d: "M251.722,410.455H97.269V84.443h17.64c4.427,0,8.017-3.589,8.017-8.017s-3.589-8.017-8.017-8.017H89.253 c-4.427,0-8.017,3.589-8.017,8.017v342.046c0,4.427,3.589,8.017,8.017,8.017h162.47c4.427,0,8.017-3.589,8.017-8.017 C259.739,414.044,256.15,410.455,251.722,410.455z" }))), h("g", { key: 'aab0fa7508721b68fc2c7b3b68e715895b3458cf' }, h("g", { key: '4a43204e700d1bc841e5baef5e2dc595ec20caed' }, h("path", { key: 'c33532bf58411ef44949ef9d4564ed6c8003e3ab', d: "M345.787,68.409h-25.653c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h17.637v214.311 c0,4.427,3.589,8.017,8.017,8.017s8.017-3.589,8.017-8.017V76.426C353.804,71.999,350.214,68.409,345.787,68.409z" }))), h("g", { key: 'dd3071605b5debe1a79bd2ae5f40bc48fdd7e9be' }, h("g", { key: '3ff3474f54eb29f9110ad5065685d3ba2ef4b4fe' }, h("path", { key: '6dec15e24b60605909198eccb7b57247dcb2a834', d: "M371.44,324.944c-51.572,0-93.528,41.956-93.528,93.528S319.869,512,371.44,512s93.528-41.956,93.528-93.528 S423.012,324.944,371.44,324.944z M371.44,495.967c-42.731,0-77.495-34.764-77.495-77.495s34.764-77.495,77.495-77.495 s77.495,34.764,77.495,77.495S414.172,495.967,371.44,495.967z" }))), h("g", { key: '2ad2cc2657d29f0b8a96d7da23cccf90c69fd6fc' }, h("g", { key: 'f276ca6db90f01a7d852729dbaaed1778e5760c4' }, h("path", { key: '5b9d5ef408dd896886f6d9ca036226d659abe3d5', d: "M217.607,34.205h-0.086c-4.427,0-7.974,3.589-7.974,8.017c0,4.427,3.631,8.017,8.059,8.017 c4.427,0,8.017-3.589,8.017-8.017C225.624,37.794,222.035,34.205,217.607,34.205z" }))), h("g", { key: '054e5fc9d1cc0583b98902aeef39cda66b084f32' }, h("g", { key: 'bcfe15c6bf1d3042d9c6372d8e9ba54c21ecf76e' }, h("path", { key: 'aa8792e2aa38be93e9ae2e30cc81729c23a45da2', d: "M419.865,387.15c-3.13-3.131-8.207-3.131-11.337,0l-54.19,54.19l-28.536-28.536c-3.131-3.131-8.207-3.131-11.337,0 c-3.131,3.131-3.131,8.207,0,11.337l34.205,34.205c1.565,1.565,3.617,2.348,5.668,2.348s4.103-0.782,5.668-2.348l59.858-59.858 C422.995,395.356,422.995,390.28,419.865,387.15z" }))), h("g", { key: 'd68d6c58038ea3052bfac3d82338929e70aa3097' }, h("g", { key: '08af492daf3daaa098c0f72e2da940fa44dbdd9c' }, h("path", { key: '40367fae5ff977de6810d1c9e678012d709d1551', d: "M182.781,177.309v-32.338c11.295,1.934,18.171,7.688,18.171,11.889c0,4.427,3.589,8.017,8.017,8.017 s8.017-3.589,8.017-8.017c0-14.171-14.492-25.621-34.205-28.092v-1.036c0-4.427-3.589-8.017-8.017-8.017s-8.017,3.589-8.017,8.017 v1.036c-19.713,2.47-34.205,13.92-34.205,28.092c0,20.074,18.829,27.788,34.205,32.461v32.338 c-11.295-1.934-18.171-7.688-18.171-11.889c0-4.427-3.589-8.017-8.017-8.017s-8.017,3.589-8.017,8.017 c0,14.171,14.492,25.621,34.205,28.092v1.036c0,4.427,3.589,8.017,8.017,8.017s8.017-3.589,8.017-8.017v-1.036 c19.713-2.47,34.205-13.92,34.205-28.092C216.985,189.697,198.157,181.982,182.781,177.309z M166.747,172.411 c-13.524-4.713-18.171-8.963-18.171-15.551c0-2.535,2.236-5.335,6.134-7.68c3.294-1.982,7.473-3.415,12.037-4.198V172.411z M194.818,217.45c-3.294,1.982-7.473,3.415-12.037,4.198v-27.429c13.524,4.713,18.171,8.963,18.171,15.551 C200.952,212.306,198.716,215.105,194.818,217.45z" }))), h("g", { key: 'cf8927f3294bbe3c3dee974eb6eedd35a64af7f9' }, h("g", { key: '1d6da1c5f329b1d307be9b0d8b1eece5ab224820' }, h("path", { key: 'd073e7fd4d94c5498bffce70c1a0ed270caa82a2', d: "M294.48,136.818h-42.756c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h42.756 c4.427,0,8.017-3.589,8.017-8.017S298.908,136.818,294.48,136.818z" }))), h("g", { key: '8e11a207b42e1b1f428371430ad3227982d7fc27' }, h("g", { key: 'ea3779641ca29f16eab99e4dceaddfa749089431' }, h("path", { key: 'e690ddeb9dd1ddb3e7c68a48e3224e31a47f1194', d: "M277.378,171.023h-25.653c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h25.653 c4.427,0,8.017-3.589,8.017-8.017S281.805,171.023,277.378,171.023z" }))), h("g", { key: '9f534377d19c2e792d3b1e1832dc5662b1deeb8b' }, h("g", { key: 'ce70ca0518ee32b505924c327a939ec674650ddc' }, h("path", { key: 'dedb50496128b75b2db69f27adc74bc8c25ed502', d: "M294.48,205.228h-42.756c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h42.756 c4.427,0,8.017-3.589,8.017-8.017S298.908,205.228,294.48,205.228z" }))), h("g", { key: 'd52a212dbd5b5655397ebb9419e24270571785a1' }, h("g", { key: '22fec222015c5197ea5889087b9daac943a07091' }, h("path", { key: '0f113b43716fb9dbc8d2d7a02c931552e3e237aa', d: "M157.662,282.188H140.56c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h17.102 c4.427,0,8.017-3.589,8.017-8.017S162.089,282.188,157.662,282.188z" }))), h("g", { key: '98080cc467d4ff86edd1ee502d69d7c29890f59f' }, h("g", { key: 'fcf6ec7ed882cfae55f4edc285aebe2e187446cc' }, h("path", { key: '867ae2e0e6de0390b48165d5bbff27d64b70d169', d: "M157.662,350.597H140.56c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h17.102 c4.427,0,8.017-3.589,8.017-8.017S162.089,350.597,157.662,350.597z" }))), h("g", { key: 'fb9a41c4496e15f642d0c499b1df54bcd2b223f4' }, h("g", { key: '9b2ca7a88af51a951a63c38c3e8a91b804c53bc8' }, h("path", { key: '1d991c71467a7fb5cdd4016cdabbc740edc9623e', d: "M157.662,316.393H140.56c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h17.102 c4.427,0,8.017-3.589,8.017-8.017S162.089,316.393,157.662,316.393z" }))), h("g", { key: '0784c45256bfdd109af8981e68a62b64d5f4bb2d' }, h("g", { key: 'a0cf56ced4d7e2b42722418575110c599ac9e783' }, h("path", { key: '5bd017b9528946e06a3f130e42b1c9a1ceb38e4d', d: "M294.48,282.188H191.866c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017H294.48 c4.427,0,8.017-3.589,8.017-8.017S298.908,282.188,294.48,282.188z" }))), h("g", { key: 'f6e378dab20b36c0faf85aabf934c7a1372611bf' }, h("g", { key: '05bfb5e03d3267d0dece25b3457a8902eae790c3' }, h("path", { key: '6b7413cf3261cbb3cb8c38b9dd317217ea6efeee', d: "M268.827,350.597h-76.96c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h76.96 c4.427,0,8.017-3.589,8.017-8.017S273.254,350.597,268.827,350.597z" }))), h("g", { key: 'c0ca6d6f8a4f31f7602a7e038cc39e9d63f8100a' }, h("g", { key: '3527da0fed57f1846e9f91f07e6fc9e3c0381b76' }, h("path", { key: 'bf9cb5feedc3578c9681a2950ae89c8dc586b83a', d: "M294.48,316.393H191.866c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017H294.48 c4.427,0,8.017-3.589,8.017-8.017S298.908,316.393,294.48,316.393z" }))))), h("div", { key: 'd31bd96b6c620ccf7f9392da180d8e5119a99f55' }, this.claimViaBarcodeScanner ? texts.scanTheVoucher : texts.enterServiceInfo)), h("div", { key: '54cab888dd7662695bd60818875717a0e4806dc5', class: "loading-wrapper flex flex-col gap-[4px] items-center justify-center absolute" }, h("div", { key: 'be869e51d9b9ce421badf9f33f9e06f7d6dc41d1', class: cn('lds-ripple relative size-[100px] flex items-center justify-center', this.isLoading && 'active') }, h("div", { key: 'c335eea4689184ef09e07789205d245511a7c3de' }), h("div", { key: 'e8aa257e10d9bdae87d1604a4051e3741d94ee18' })), ((_f = this.item) === null || _f === void 0 ? void 0 : _f.showDocumentUploader) && this.selectedFile ? (h("div", { class: "relative border-[#3071a9] w-[300px] border-[2px] font-semibold h-[30px] overflow-hidden rounded-full flex items-center justify-center" }, texts.processing, " ", `${this.uploadProgress}%`, h("div", { style: {
|
|
241
|
+
width: `${this.uploadProgress}%`,
|
|
242
|
+
background: `linear-gradient(to right, rgba(219, 234, 254, ${Math.min(0.1 + this.uploadProgress / 100, 1)}), rgba(191, 219, 254, ${Math.min(0.15 + this.uploadProgress / 100, 1)}), rgba(147, 197, 253, ${Math.min(0.2 + this.uploadProgress / 100, 1)}))`,
|
|
243
|
+
}, class: "absolute left-0 top-0 h-full -z-10 transition-[width] duration-700 ease-out" }))) : (h("div", { class: cn('lds-ripple-loading', this.isLoading && 'active') }, texts.processing)))), h("div", { key: '4f47ef68bfcc7a2f32de7b145effdba9e5384414', class: cn('transition-opacity duration-300 ', { 'opacity-50': this.isLoading }) }, this.claimViaBarcodeScanner && (h("div", { key: '9ebe76e081b30f0da7c9013a1dd4084091951722', class: "flex flex-col mt-[50px] px-[75px] gap-[16px]" }, ((_g = this.item) === null || _g === void 0 ? void 0 : _g.showDocumentUploader) && (h("div", { key: '000d1a2f04c450bdc20f830c6993687f045c7995', class: "flex mb-[12px] flex-col" }, h("input", { key: 'bc24f703d27499f55411660e5245f1d6c5d09634', class: "document-uploader", disabled: this.isLoading, type: "file", accept: "image/*,application/pdf", hidden: true }), h("div", { key: '0a2845bc6c47ee45b036f703a066ceaffdf60c11', class: cn('document-button overflow-hidden flex items-center w-fit mx-auto cursor-pointer gap-[16px] ps-[8px] h-[32px] transition duration-300 text-white bg-[#275e8f] active:bg-[#223f57] hover:bg-[#3071a9] rounded-[5px]', { 'pointer-events-none bg-[#d5d5d5] cursor-default': disableInput }) }, h("div", { key: '02ac6449f4f7c6e19bfffe6056c6c89a9799145f', title: ((_h = this.selectedFile) === null || _h === void 0 ? void 0 : _h.name) || texts.document, class: "max-w-[200px] truncate whitespace-nowrap overflow-hidden text-ellipsis" }, ((_j = this.selectedFile) === null || _j === void 0 ? void 0 : _j.name) || texts.document, ((_k = this === null || this === void 0 ? void 0 : this.item) === null || _k === void 0 ? void 0 : _k.documentUploaderIsRequired) && !this.selectedFile && h("span", { key: '43b0c4f31ff30123cf6698492d14755e1b2c1491', class: cn('ps-[4px] text-red-500', { 'text-white': disableInput }) }, "*")), h("button", { key: '857001af21a4e425126b03412fed5aebfc8158f3', onClick: this.clearFile, class: cn('overflow-hidden transition duration-300 hover:bg-red-600 relative cursor-pointer flex items-center justify-center size-[32px]', {
|
|
244
|
+
'pointer-events-none cursor-default': !this.selectedFile,
|
|
245
|
+
}) }, h("svg", { key: 'd96a3944a833276f977e92cf2e4ebd0eadc93dcd', 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: cn('size-[24px] absolute transition duration-500', { '-translate-y-[32px]': !!this.selectedFile }) }, h("path", { key: '1a6e2b06a86ccfc10c0f40e77e932931ff47497c', d: "m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551" })), h("svg", { key: '0e3f6fca1de9473cc9e14e01f987327d30283cec', 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: cn('size-[24px] absolute transition translate-y-[32px] duration-500', { 'translate-y-0': !!this.selectedFile }) }, h("path", { key: 'f824d624de4d0555558bf007eaac4b549d3d12e2', d: "M18 6 6 18" }), h("path", { key: 'fe4a57efa8ca6dc6a7ccec24d7a0cf53909556cf', d: "m6 6 12 12" })))), h("flexible-container", { key: 'd175450892190f55da5d065e84c700f528dfe698', isOpened: this.isDocumentError }, h("div", { key: 'fba9c58b27ec0bca5eaaffc0037f159dfddd20ec', class: "text-red-700 w-fit mx-auto pt-[8px]" }, this.documentError === 'documentLimitError'
|
|
246
|
+
? texts.documentLimitError + `${this.maximumDocumentFileSizeInMb}Mb`
|
|
247
|
+
: texts.documentRequiredError || this.sharedLocales.errors.wildCard)))), h("input", { key: '785e3068bffe0ea93bf402cefdac4264878a60fc', id: "qr-input", dir: "ltr", class: "dynamic-redeem-input", spellcheck: "false", onInput: e => {
|
|
248
|
+
this.qrCode = e.target.value;
|
|
249
|
+
this.updateReadyToClaim();
|
|
250
|
+
}, onKeyDown: this.inputKeyDown, onBlur: () => {
|
|
251
|
+
var _a;
|
|
252
|
+
(_a = this.qrInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
253
|
+
}, autocomplete: "off", disabled: disableInput, placeholder: texts.qrCode, autofocus: true, style: { marginTop: '20px', padding: '10px 0px', fontSize: '16px' } }))), !this.claimViaBarcodeScanner && (h("div", { key: 'e85757dbdfe4b1d02789ea2b5c46116f4567dfb9' }, h("div", { key: '91462a93e3bfaeb62f2712768e5dc98d69317061', style: { display: 'flex', flexDirection: 'row', gap: '50px', padding: '0 75px' } }, h("input", { key: 'f8ded36b8a1806639c96af1f3b8e36a3d65e23d8', id: "invoice-input", dir: "ltr", class: "dynamic-redeem-input", spellcheck: "false", onInput: e => {
|
|
254
|
+
this.invoice = e.target.value;
|
|
255
|
+
this.updateReadyToClaim();
|
|
256
|
+
}, onKeyDown: this.inputKeyDown, autocomplete: "off", disabled: disableInput, placeholder: texts.invoice, autofocus: true, style: { marginTop: '20px', padding: '10px 0px', fontSize: '16px' } }), h("input", { key: '5a01b31453e8327e4311f83371e9d7a390148b30', id: "job-input", dir: "ltr", class: "dynamic-redeem-input", spellcheck: "false", onInput: e => {
|
|
257
|
+
this.job = e.target.value;
|
|
258
|
+
this.updateReadyToClaim();
|
|
259
|
+
}, onKeyDown: this.inputKeyDown, autocomplete: "off", disabled: disableInput, placeholder: texts.jobNumber, style: { marginTop: '20px', padding: '10px 0px', fontSize: '16px' } })), h("div", { key: 'a7624ccbd379c9edb947633424bca66dcbd80328', class: "mt-[55px]" }, ((_l = this.item) === null || _l === void 0 ? void 0 : _l.showDocumentUploader) && (h("div", { key: '9c9c03064d48b36d72db1047dcd1e9c2a6067829', class: "flex mb-[12px] flex-col" }, h("input", { key: '395549c0430ba0d15a77ad8ed9217e64d41db35d', class: "document-uploader", disabled: this.isLoading, type: "file", accept: "image/*,application/pdf", hidden: true }), h("div", { key: '5822f068ed2fa2999f3899ad00217ca7f12194a3', class: cn('document-button overflow-hidden flex items-center w-fit mx-auto cursor-pointer gap-[16px] ps-[8px] h-[32px] transition duration-300 text-white bg-[#275e8f] active:bg-[#223f57] hover:bg-[#3071a9] rounded-[5px]', { 'pointer-events-none bg-[#d5d5d5] cursor-default': disableInput }) }, h("div", { key: '2cdddf5dad95185aa2476df8cfefc2012f6f03fc', title: ((_m = this.selectedFile) === null || _m === void 0 ? void 0 : _m.name) || texts.document, class: "max-w-[200px] truncate whitespace-nowrap overflow-hidden text-ellipsis" }, ((_o = this.selectedFile) === null || _o === void 0 ? void 0 : _o.name) || texts.document, ((_p = this === null || this === void 0 ? void 0 : this.item) === null || _p === void 0 ? void 0 : _p.documentUploaderIsRequired) && !this.selectedFile && h("span", { key: 'b7474a8e0c0f3bc05aedd8a6df88e103efaf57f1', class: cn('ps-[4px] text-red-500', { 'text-white': disableInput }) }, "*")), h("button", { key: '9097a209bbba8ac1cba8bfe6f45ca316af97124d', onClick: this.clearFile, class: cn('overflow-hidden transition duration-300 hover:bg-red-600 relative cursor-pointer flex items-center justify-center size-[32px]', {
|
|
260
|
+
'pointer-events-none cursor-default': !this.selectedFile,
|
|
261
|
+
}) }, h("svg", { key: 'acf7be70e4e2c2eedbf0cfcbad84870e581e3293', 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: cn('size-[24px] absolute transition duration-500', { '-translate-y-[32px]': !!this.selectedFile }) }, h("path", { key: '58e0fd59dbb2be4055248d852c63c65884c4dce6', d: "m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551" })), h("svg", { key: 'b6d2d4838093fd109b7c55f972e7ad5aaf308cf9', 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: cn('size-[24px] absolute transition translate-y-[32px] duration-500', { 'translate-y-0': !!this.selectedFile }) }, h("path", { key: '03144a7be6cdcd9683b65241094e1750a71b8d66', d: "M18 6 6 18" }), h("path", { key: '5096ab5d1f47c757da5dc820635c03879c4fe7ca', d: "m6 6 12 12" })))), h("flexible-container", { key: '050348034f7143a7fc2ed617d5bda8a93e1f5c6c', isOpened: this.isDocumentError }, h("div", { key: 'f80d151c8cfa856964bf38f613cfc12a171ca101', class: "text-red-700 w-fit mx-auto pt-[8px]" }, this.documentError === 'documentLimitError'
|
|
262
|
+
? texts.documentLimitError + `${this.maximumDocumentFileSizeInMb}Mb`
|
|
263
|
+
: texts.documentRequiredError || this.sharedLocales.errors.wildCard)))), h("button", { key: 'b8714b8aa98e55a5a2fabd6ef1edb14e9fba8be0', onClick: () => {
|
|
264
|
+
this.inputKeyDown(null);
|
|
265
|
+
}, class: cn('claim-button', 'dynamic-claim-button', (!(this === null || this === void 0 ? void 0 : this.readyToClaim) || disableInput) && 'disabled') }, h("svg", { key: '5f901fcf4a0c64c900f7dcd255feb080f8fe665b', width: "30px", height: "30px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: '8cf3f4d55bb5873ab7a6a87f720aae238da8b04c', "stroke-width": "0" }), h("g", { key: 'ecc6484402aacc974b80a5fcc2a9aeb595af90f0', "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", { key: 'b658cee1493b7dc7c8b5bf507eaf1f61865aa98f' }, h("circle", { key: '5dc79f07d82ef4a4970aa5d5284bc26e41d7b55b', cx: "12", cy: "12", r: "8", "fill-opacity": "0.24" }), h("path", { key: 'b3e6054499769d491397a54a53bc214f5e40d76a', 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: '50eb43fc0b8fa9b18aecbcf200ee1e0b456d3709' }, texts.claim))))))))))));
|
|
266
|
+
}
|
|
267
|
+
static get is() { return "vehicle-item-claim-form"; }
|
|
268
|
+
static get encapsulation() { return "shadow"; }
|
|
269
|
+
static get originalStyleUrls() {
|
|
270
|
+
return {
|
|
271
|
+
"$": ["vehicle-item-claim-form.css"]
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
static get styleUrls() {
|
|
275
|
+
return {
|
|
276
|
+
"$": ["vehicle-item-claim-form.css"]
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
static get properties() {
|
|
280
|
+
return {
|
|
281
|
+
"vin": {
|
|
282
|
+
"type": "string",
|
|
283
|
+
"attribute": "vin",
|
|
284
|
+
"mutable": false,
|
|
285
|
+
"complexType": {
|
|
286
|
+
"original": "string",
|
|
287
|
+
"resolved": "string",
|
|
288
|
+
"references": {}
|
|
289
|
+
},
|
|
290
|
+
"required": false,
|
|
291
|
+
"optional": true,
|
|
292
|
+
"docs": {
|
|
293
|
+
"tags": [],
|
|
294
|
+
"text": ""
|
|
295
|
+
},
|
|
296
|
+
"getter": false,
|
|
297
|
+
"setter": false,
|
|
298
|
+
"reflect": false,
|
|
299
|
+
"defaultValue": "''"
|
|
300
|
+
},
|
|
301
|
+
"language": {
|
|
302
|
+
"type": "string",
|
|
303
|
+
"attribute": "language",
|
|
304
|
+
"mutable": false,
|
|
305
|
+
"complexType": {
|
|
306
|
+
"original": "LanguageKeys",
|
|
307
|
+
"resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
|
|
308
|
+
"references": {
|
|
309
|
+
"LanguageKeys": {
|
|
310
|
+
"location": "import",
|
|
311
|
+
"path": "~types/locale",
|
|
312
|
+
"id": "src/global/types/locale.ts::LanguageKeys"
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
"required": false,
|
|
317
|
+
"optional": false,
|
|
318
|
+
"docs": {
|
|
319
|
+
"tags": [],
|
|
320
|
+
"text": ""
|
|
321
|
+
},
|
|
322
|
+
"getter": false,
|
|
323
|
+
"setter": false,
|
|
324
|
+
"reflect": false,
|
|
325
|
+
"defaultValue": "'en'"
|
|
326
|
+
},
|
|
327
|
+
"item": {
|
|
328
|
+
"type": "unknown",
|
|
329
|
+
"attribute": "item",
|
|
330
|
+
"mutable": false,
|
|
331
|
+
"complexType": {
|
|
332
|
+
"original": "VehicleServiceItemDTO",
|
|
333
|
+
"resolved": "{ group: VehicleServiceItemGroup; showDocumentUploader: boolean; documentUploaderIsRequired: boolean; name: string; description: string; title: string; image: string; type: string; typeEnum: \"Free\" | \"Paid\"; activatedAt: string; expiresAt?: string; status: string; statusEnum: \"Processed\" | \"Expired\" | \"Pending\" | \"Cancelled\" | \"ActivationRequired\"; campaignID?: number; campaignUniqueReference: string; packageCode: string; cost?: number; claimDate?: string; modelCostID?: number; serviceItemID: number; paidServiceInvoiceLineID?: number; companyID: string; companyName: string; invoiceNumber: string; jobNumber: string; maximumMileage?: number; claimable: boolean; claimingMethodEnum: \"ClaimByScanningQRCode\" | \"ClaimByEnteringInvoiceAndJobNumber\"; vehicleInspectionID: string; signature: string; signatureExpiry: string; }",
|
|
334
|
+
"references": {
|
|
335
|
+
"VehicleServiceItemDTO": {
|
|
336
|
+
"location": "import",
|
|
337
|
+
"path": "~types/generated/vehicle-lookup/vehicle-service-item-dto",
|
|
338
|
+
"id": "src/global/types/generated/vehicle-lookup/vehicle-service-item-dto.ts::VehicleServiceItemDTO"
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
"required": false,
|
|
343
|
+
"optional": true,
|
|
344
|
+
"docs": {
|
|
345
|
+
"tags": [],
|
|
346
|
+
"text": ""
|
|
347
|
+
},
|
|
348
|
+
"getter": false,
|
|
349
|
+
"setter": false,
|
|
350
|
+
"defaultValue": "null"
|
|
351
|
+
},
|
|
352
|
+
"maximumDocumentFileSizeInMb": {
|
|
353
|
+
"type": "number",
|
|
354
|
+
"attribute": "maximum-document-file-size-in-mb",
|
|
355
|
+
"mutable": false,
|
|
356
|
+
"complexType": {
|
|
357
|
+
"original": "number",
|
|
358
|
+
"resolved": "number",
|
|
359
|
+
"references": {}
|
|
360
|
+
},
|
|
361
|
+
"required": false,
|
|
362
|
+
"optional": false,
|
|
363
|
+
"docs": {
|
|
364
|
+
"tags": [],
|
|
365
|
+
"text": ""
|
|
366
|
+
},
|
|
367
|
+
"getter": false,
|
|
368
|
+
"setter": false,
|
|
369
|
+
"reflect": false
|
|
370
|
+
},
|
|
371
|
+
"unInvoicedByBrokerName": {
|
|
372
|
+
"type": "string",
|
|
373
|
+
"attribute": "un-invoiced-by-broker-name",
|
|
374
|
+
"mutable": false,
|
|
375
|
+
"complexType": {
|
|
376
|
+
"original": "string",
|
|
377
|
+
"resolved": "string",
|
|
378
|
+
"references": {}
|
|
379
|
+
},
|
|
380
|
+
"required": false,
|
|
381
|
+
"optional": true,
|
|
382
|
+
"docs": {
|
|
383
|
+
"tags": [],
|
|
384
|
+
"text": ""
|
|
385
|
+
},
|
|
386
|
+
"getter": false,
|
|
387
|
+
"setter": false,
|
|
388
|
+
"reflect": false,
|
|
389
|
+
"defaultValue": "null"
|
|
390
|
+
},
|
|
391
|
+
"canceledItems": {
|
|
392
|
+
"type": "unknown",
|
|
393
|
+
"attribute": "canceled-items",
|
|
394
|
+
"mutable": false,
|
|
395
|
+
"complexType": {
|
|
396
|
+
"original": "VehicleServiceItemDTO[]",
|
|
397
|
+
"resolved": "VehicleServiceItemDTO[]",
|
|
398
|
+
"references": {
|
|
399
|
+
"VehicleServiceItemDTO": {
|
|
400
|
+
"location": "import",
|
|
401
|
+
"path": "~types/generated/vehicle-lookup/vehicle-service-item-dto",
|
|
402
|
+
"id": "src/global/types/generated/vehicle-lookup/vehicle-service-item-dto.ts::VehicleServiceItemDTO"
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
"required": false,
|
|
407
|
+
"optional": true,
|
|
408
|
+
"docs": {
|
|
409
|
+
"tags": [],
|
|
410
|
+
"text": ""
|
|
411
|
+
},
|
|
412
|
+
"getter": false,
|
|
413
|
+
"setter": false,
|
|
414
|
+
"defaultValue": "null"
|
|
415
|
+
},
|
|
416
|
+
"loadingStateChange": {
|
|
417
|
+
"type": "unknown",
|
|
418
|
+
"attribute": "loading-state-change",
|
|
419
|
+
"mutable": false,
|
|
420
|
+
"complexType": {
|
|
421
|
+
"original": "(isLoading: boolean) => void",
|
|
422
|
+
"resolved": "(isLoading: boolean) => void",
|
|
423
|
+
"references": {}
|
|
424
|
+
},
|
|
425
|
+
"required": false,
|
|
426
|
+
"optional": true,
|
|
427
|
+
"docs": {
|
|
428
|
+
"tags": [],
|
|
429
|
+
"text": ""
|
|
430
|
+
},
|
|
431
|
+
"getter": false,
|
|
432
|
+
"setter": false
|
|
433
|
+
},
|
|
434
|
+
"handleClaiming": {
|
|
435
|
+
"type": "unknown",
|
|
436
|
+
"attribute": "handle-claiming",
|
|
437
|
+
"mutable": false,
|
|
438
|
+
"complexType": {
|
|
439
|
+
"original": "(payload: ClaimFormPayload) => void",
|
|
440
|
+
"resolved": "(payload: ClaimFormPayload) => void",
|
|
441
|
+
"references": {
|
|
442
|
+
"ClaimFormPayload": {
|
|
443
|
+
"location": "local",
|
|
444
|
+
"path": "/home/vsts/work/1/s/ADP.WebComponents/adp-web-components/src/components/vehicle-lookup/vehicle-item-claim-form.tsx",
|
|
445
|
+
"id": "src/components/vehicle-lookup/vehicle-item-claim-form.tsx::ClaimFormPayload"
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
"required": false,
|
|
450
|
+
"optional": true,
|
|
451
|
+
"docs": {
|
|
452
|
+
"tags": [],
|
|
453
|
+
"text": ""
|
|
454
|
+
},
|
|
455
|
+
"getter": false,
|
|
456
|
+
"setter": false
|
|
457
|
+
},
|
|
458
|
+
"locale": {
|
|
459
|
+
"type": "unknown",
|
|
460
|
+
"attribute": "locale",
|
|
461
|
+
"mutable": false,
|
|
462
|
+
"complexType": {
|
|
463
|
+
"original": "ClaimFormType",
|
|
464
|
+
"resolved": "{ document?: string; name?: string; serviceType?: string; documentLimitError?: string; documentRequiredError?: string; activationDate?: string; expireDate?: string; packageCode?: string; scanTheVoucher?: string; qrCode?: string; processing?: string; warning?: string; skipServicesWarning?: string; confirmSkipServices?: string; notInvoiced?: string; confirmNotInvoiced?: string; enterServiceInfo?: string; invoice?: string; jobNumber?: string; claim?: string; }",
|
|
465
|
+
"references": {
|
|
466
|
+
"ClaimFormType": {
|
|
467
|
+
"location": "import",
|
|
468
|
+
"path": "~locales/vehicleLookup/claimableItems/type",
|
|
469
|
+
"id": "src/locales/vehicleLookup/claimableItems/type.ts::ClaimFormType"
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
"required": false,
|
|
474
|
+
"optional": false,
|
|
475
|
+
"docs": {
|
|
476
|
+
"tags": [],
|
|
477
|
+
"text": ""
|
|
478
|
+
},
|
|
479
|
+
"getter": false,
|
|
480
|
+
"setter": false,
|
|
481
|
+
"defaultValue": "claimFormSchema.getDefault()"
|
|
482
|
+
}
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
static get states() {
|
|
486
|
+
return {
|
|
487
|
+
"claimViaBarcodeScanner": {},
|
|
488
|
+
"sharedLocales": {},
|
|
489
|
+
"internalVin": {},
|
|
490
|
+
"uploadProgress": {},
|
|
491
|
+
"isLoading": {},
|
|
492
|
+
"isOpened": {},
|
|
493
|
+
"isDocumentError": {},
|
|
494
|
+
"selectedFile": {},
|
|
495
|
+
"internalItem": {},
|
|
496
|
+
"confirmServiceCancellation": {},
|
|
497
|
+
"confirmUnInvoicedTBPVehicles": {},
|
|
498
|
+
"internalCanceledItem": {},
|
|
499
|
+
"documentError": {},
|
|
500
|
+
"readyToClaim": {},
|
|
501
|
+
"qrCode": {},
|
|
502
|
+
"invoice": {},
|
|
503
|
+
"job": {}
|
|
504
|
+
};
|
|
505
|
+
}
|
|
506
|
+
static get methods() {
|
|
507
|
+
return {
|
|
508
|
+
"quite": {
|
|
509
|
+
"complexType": {
|
|
510
|
+
"signature": "() => Promise<void>",
|
|
511
|
+
"parameters": [],
|
|
512
|
+
"references": {
|
|
513
|
+
"Promise": {
|
|
514
|
+
"location": "global",
|
|
515
|
+
"id": "global::Promise"
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
"return": "Promise<void>"
|
|
519
|
+
},
|
|
520
|
+
"docs": {
|
|
521
|
+
"text": "",
|
|
522
|
+
"tags": []
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
"getQrValue": {
|
|
526
|
+
"complexType": {
|
|
527
|
+
"signature": "() => Promise<string>",
|
|
528
|
+
"parameters": [],
|
|
529
|
+
"references": {
|
|
530
|
+
"Promise": {
|
|
531
|
+
"location": "global",
|
|
532
|
+
"id": "global::Promise"
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
"return": "Promise<string>"
|
|
536
|
+
},
|
|
537
|
+
"docs": {
|
|
538
|
+
"text": "",
|
|
539
|
+
"tags": []
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
"setFileUploadProgression": {
|
|
543
|
+
"complexType": {
|
|
544
|
+
"signature": "(uploadPercentage: number) => Promise<void>",
|
|
545
|
+
"parameters": [{
|
|
546
|
+
"name": "uploadPercentage",
|
|
547
|
+
"type": "number",
|
|
548
|
+
"docs": ""
|
|
549
|
+
}],
|
|
550
|
+
"references": {
|
|
551
|
+
"Promise": {
|
|
552
|
+
"location": "global",
|
|
553
|
+
"id": "global::Promise"
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
"return": "Promise<void>"
|
|
557
|
+
},
|
|
558
|
+
"docs": {
|
|
559
|
+
"text": "",
|
|
560
|
+
"tags": []
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
static get elementRef() { return "el"; }
|
|
566
|
+
static get watchers() {
|
|
567
|
+
return [{
|
|
568
|
+
"propName": "language",
|
|
569
|
+
"methodName": "changeLanguage"
|
|
570
|
+
}, {
|
|
571
|
+
"propName": "isLoading",
|
|
572
|
+
"methodName": "onIsLoadingChange"
|
|
573
|
+
}, {
|
|
574
|
+
"propName": "canceledItems",
|
|
575
|
+
"methodName": "changeInternalCanceledItem"
|
|
576
|
+
}, {
|
|
577
|
+
"propName": "unInvoicedByBrokerName",
|
|
578
|
+
"methodName": "changeConfirmUnInvoicedTBPVehicles"
|
|
579
|
+
}, {
|
|
580
|
+
"propName": "vin",
|
|
581
|
+
"methodName": "changeInternalVin"
|
|
582
|
+
}, {
|
|
583
|
+
"propName": "item",
|
|
584
|
+
"methodName": "changeInternalItem"
|
|
585
|
+
}, {
|
|
586
|
+
"propName": "isOpened",
|
|
587
|
+
"methodName": "onOpenChange"
|
|
588
|
+
}];
|
|
589
|
+
}
|
|
590
|
+
}
|