adp-web-components 0.0.90 → 0.0.92
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/contact-us-form.cjs.entry.js +4 -4
- package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +282 -325
- package/dist/cjs/empty-table-icon-PdTX6gpI.js +16 -0
- package/dist/cjs/flexible-container.cjs.entry.js +43 -46
- package/dist/cjs/form-dialog_8.cjs.entry.js +12 -12
- package/dist/cjs/{get-local-language-XsAJEAsO.js → get-local-language-Ch7javM0.js} +38 -38
- package/dist/cjs/information-table.cjs.entry.js +6 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/material-card-Cd0L1Get.js +43 -0
- package/dist/cjs/part-lookup.cjs.entry.js +32 -11
- package/dist/cjs/print-icon-C4ASnhAO.js +106 -0
- package/dist/cjs/service-booking-form.cjs.entry.js +4 -4
- package/dist/cjs/shift-components.cjs.js +1 -1
- package/dist/cjs/shift-tab-content.cjs.entry.js +42 -0
- package/dist/cjs/shift-tabs_2.cjs.entry.js +277 -234
- package/dist/cjs/{vehicle-info-layout-BSAeLW7e.js → type-BG4jir8r.js} +45 -9
- package/dist/cjs/{type-BAD2dFzP.js → type-BpPQE0Ww.js} +1 -1
- package/dist/cjs/{type-DT5vXP0E.js → type-DB__lcA9.js} +1 -1
- package/dist/cjs/vehicle-accessories_6.cjs.entry.js +1115 -0
- package/dist/cjs/vehicle-info-layout-Dp2Po_uc.js +16 -0
- package/dist/cjs/vehicle-lookup.cjs.entry.js +19 -16
- package/dist/cjs/vin-extractor.cjs.entry.js +3 -3
- package/dist/collection/components/components/flexible-container.css +1 -1
- package/dist/collection/components/components/flexible-container.js +34 -36
- package/dist/collection/components/components/information-table.css +1 -1
- package/dist/collection/components/components/information-table.js +45 -2
- package/dist/collection/components/components/loading-spinner.css +1 -1
- package/dist/collection/components/components/material-card.js +2 -2
- package/dist/collection/components/components/shift-tab-content.css +1 -1
- package/dist/collection/components/components/shift-tab-content.js +1 -1
- package/dist/collection/components/components/shift-tabs.css +1 -1
- package/dist/collection/components/form-elements/form-dialog.js +6 -6
- package/dist/collection/components/form-elements/form-input.js +4 -4
- package/dist/collection/components/form-elements/form-select.js +6 -6
- package/dist/collection/components/form-elements/form-structure-error.js +4 -4
- package/dist/collection/components/form-elements/form-structure.js +3 -3
- package/dist/collection/components/form-elements/form-submit.js +5 -5
- package/dist/collection/components/form-elements/form-text-area.js +4 -4
- package/dist/collection/components/forms/contact-us/element-mapper.js +1 -1
- package/dist/collection/components/forms/contact-us-form.js +4 -4
- package/dist/collection/components/forms/service-booking/element-mapper.js +1 -1
- package/dist/collection/components/forms/service-booking-form.js +4 -4
- 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 +153 -175
- package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.js +192 -224
- package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +165 -224
- package/dist/collection/components/part-lookup/part-lookup.css +1 -1
- package/dist/collection/components/part-lookup/part-lookup.js +127 -57
- package/dist/collection/components/vehicle-lookup/components/CardsContainer.js +1 -1
- package/dist/collection/components/vehicle-lookup/components/StatusCard.js +2 -2
- 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 +108 -187
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +369 -507
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.js +271 -345
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +59 -56
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.js +106 -192
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.css +1 -3
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.js +106 -176
- package/dist/collection/components/vehicle-lookup/vehicle-specification.css +1 -3
- package/dist/collection/components/vehicle-lookup/vehicle-specification.js +104 -168
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.css +1 -3
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.js +198 -274
- package/dist/collection/components/vin-extractor/vin-extractor.js +13 -4
- 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/features/image-viewer/interface.js +1 -0
- package/dist/collection/{global/lib → features/multi-lingual}/get-local-language.js +1 -5
- 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/{components/components → features/vehicle-info-layout}/vehicle-info-layout.js +1 -1
- 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/question-mark.js +6 -0
- package/dist/collection/global/assets/triangle-icon.js +6 -0
- package/dist/collection/global/lib/parents-with-tag.js +22 -0
- package/dist/collection/global/types/generated/vehicle-lookup/vehicle-item-warning.js +1 -0
- package/dist/collection/locales/vehicleLookup/claimableItems/type.js +4 -6
- package/dist/collection/templates/part-lookup/mock-data.js +85 -2
- package/dist/collection/templates/vehicle-lookup/mock-data.js +39 -0
- 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.js +1 -1
- 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-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/information-table.js +1 -1
- package/dist/components/loading-spinner.js +1 -1
- package/dist/components/manufacturer-lookup.js +1 -1
- package/dist/components/p-4O0gfpsm.js +5 -0
- package/dist/components/p-8hUwcL5D.js +5 -0
- package/dist/components/p-9BQXTBdQ.js +5 -0
- package/dist/components/p-B1fdQNyr.js +5 -0
- package/dist/components/p-B2EAhWbD.js +5 -0
- package/dist/components/p-B9RSECb0.js +5 -0
- package/dist/components/p-BDCoLRVe.js +5 -0
- package/dist/components/p-BG8YXzND.js +5 -0
- package/dist/components/p-BNhO80aE.js +5 -0
- package/dist/components/p-Be1vlY8X.js +5 -0
- package/dist/components/p-BhjL0HMA.js +5 -0
- package/dist/components/p-C4zpDhOi.js +5 -0
- package/dist/components/p-CHE0gMDU.js +5 -0
- package/dist/components/p-CMweaUDZ.js +5 -0
- package/dist/components/p-COU68JDH.js +5 -0
- package/dist/components/p-Ce4X3l8Z.js +5 -0
- package/dist/components/p-CeUz_77J.js +5 -0
- package/dist/components/{p-D7yku_Qi.js → p-CgRbul8P.js} +1 -1
- package/dist/components/{p-JtBlsz4j.js → p-CiosiH6q.js} +1 -1
- package/dist/components/p-CnCnKZ25.js +5 -0
- package/dist/components/{p-C-4kx8qU.js → p-CqvK2B_Z.js} +1 -1
- package/dist/components/{p-B6QhQCZi.js → p-D6AC01Wg.js} +1 -1
- package/dist/components/p-DOoqf10k.js +5 -0
- package/dist/components/{p-BaJpYztb.js → p-DRdEUWsa.js} +1 -1
- package/dist/components/p-DSNyMvnc.js +5 -0
- package/dist/components/{p-CjWDXQ_q.js → p-DhxirzfQ.js} +1 -1
- package/dist/components/p-DiG3vhi6.js +5 -0
- package/dist/{shift-components/p-CIU9c3pi.js → components/p-DnMCq3Mw.js} +1 -1
- package/dist/components/p-Dt-24vpn.js +5 -0
- package/dist/components/p-DxBcoZIg.js +5 -0
- package/dist/components/{p-D63WC2_Y.js → p-pYVYeitk.js} +1 -1
- package/dist/components/p-piZ41_ho.js +5 -0
- package/dist/components/part-lookup.js +1 -1
- package/dist/components/service-booking-form.js +1 -1
- package/dist/components/shift-accordion.js +1 -1
- package/dist/components/shift-slider.js +1 -1
- package/dist/components/shift-tab-content.js +1 -1
- package/dist/components/shift-tabs.js +1 -1
- package/dist/components/vehicle-accessories.js +1 -1
- package/dist/components/vehicle-claimable-items.js +1 -1
- package/dist/components/vehicle-item-claim-form.js +1 -1
- package/dist/components/vehicle-lookup.js +1 -1
- package/dist/components/vehicle-paint-thickness.js +1 -1
- package/dist/components/vehicle-service-history.js +1 -1
- package/dist/components/vehicle-specification.js +1 -1
- package/dist/components/vehicle-warranty-details.js +1 -1
- package/dist/components/vin-extractor.js +1 -1
- package/dist/esm/contact-us-form.entry.js +4 -4
- package/dist/esm/dead-stock-lookup_3.entry.js +283 -326
- package/dist/esm/empty-table-icon-DvQk12N9.js +14 -0
- package/dist/esm/flexible-container.entry.js +43 -46
- package/dist/esm/form-dialog_8.entry.js +12 -12
- package/dist/esm/{get-local-language-BPo-xYwK.js → get-local-language-KsoLM3LI.js} +38 -38
- package/dist/esm/information-table.entry.js +6 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/loading-spinner.entry.js +1 -1
- package/dist/esm/material-card-DiAl-884.js +40 -0
- package/dist/esm/part-lookup.entry.js +32 -11
- package/dist/esm/print-icon-Dn5kQmLo.js +99 -0
- package/dist/esm/service-booking-form.entry.js +4 -4
- package/dist/esm/shift-components.js +1 -1
- package/dist/esm/shift-tab-content.entry.js +40 -0
- package/dist/esm/shift-tabs_2.entry.js +277 -234
- package/dist/esm/type-BAXhU7Vq.js +79 -0
- package/dist/esm/{type-DHujxJVp.js → type-CAfIkrCW.js} +1 -1
- package/dist/esm/{type-D9Rd8Kcd.js → type-CoXoa4w8.js} +1 -1
- package/dist/esm/vehicle-accessories_6.entry.js +1108 -0
- package/dist/esm/vehicle-info-layout-CNGGKAia.js +14 -0
- package/dist/esm/vehicle-lookup.entry.js +14 -11
- package/dist/esm/vin-extractor.entry.js +3 -3
- package/dist/locales/vehicleLookup/claimableItems/ar.json +5 -6
- package/dist/locales/vehicleLookup/claimableItems/en.json +5 -6
- package/dist/locales/vehicleLookup/claimableItems/ku.json +5 -6
- package/dist/locales/vehicleLookup/claimableItems/ru.json +5 -6
- package/dist/locales/vehicleLookup/claimableItems/type.ts +4 -6
- package/dist/shift-components/p-03f093e0.entry.js +5 -0
- package/dist/shift-components/p-277c8a5b.entry.js +5 -0
- package/dist/shift-components/p-42218765.entry.js +5 -0
- package/dist/shift-components/p-55c5a5ea.entry.js +5 -0
- package/dist/shift-components/p-5906834e.entry.js +5 -0
- package/dist/shift-components/p-5bd460db.entry.js +5 -0
- package/dist/shift-components/p-701e3fb0.entry.js +5 -0
- package/dist/shift-components/p-98cb9ff7.entry.js +5 -0
- package/dist/{components/p-CK4E5G0i.js → shift-components/p-BBKhY55u.js} +1 -1
- package/dist/shift-components/{p-DHb8KxaG.js → p-BGyVhGdx.js} +1 -1
- package/dist/shift-components/p-BSpTbUWi.js +5 -0
- package/dist/shift-components/p-BnTnweSV.js +5 -0
- package/dist/shift-components/{p-CuQ84qxe.js → p-D7OEt6rC.js} +1 -1
- package/dist/shift-components/p-DzSZ47FV.js +5 -0
- package/dist/shift-components/p-Wtw8qj6x.js +5 -0
- package/dist/shift-components/p-a137e4bb.entry.js +5 -0
- package/dist/shift-components/{p-f282c740.entry.js → p-c4c88519.entry.js} +1 -1
- package/dist/shift-components/{p-b6497f63.entry.js → p-dee5dd04.entry.js} +1 -1
- package/dist/shift-components/p-e428aabb.entry.js +5 -0
- package/dist/shift-components/p-ff79b92b.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/flexible-container.d.ts +2 -5
- package/dist/types/components/components/information-table.d.ts +2 -0
- package/dist/types/components/components/material-card.d.ts +1 -1
- 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 +25 -23
- package/dist/types/components/part-lookup/distributor-lookup.d.ts +23 -24
- package/dist/types/components/part-lookup/manufacturer-lookup.d.ts +23 -25
- package/dist/types/components/part-lookup/part-lookup.d.ts +17 -12
- 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 +23 -28
- package/dist/types/components/vehicle-lookup/vehicle-claimable-items.d.ts +53 -55
- package/dist/types/components/vehicle-lookup/vehicle-item-claim-form.d.ts +39 -55
- package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +8 -9
- package/dist/types/components/vehicle-lookup/vehicle-paint-thickness.d.ts +23 -29
- package/dist/types/components/vehicle-lookup/vehicle-service-history.d.ts +20 -23
- package/dist/types/components/vehicle-lookup/vehicle-specification.d.ts +20 -22
- package/dist/types/components/vehicle-lookup/vehicle-warranty-details.d.ts +27 -31
- package/dist/types/components/vin-extractor/vin-extractor.d.ts +2 -2
- package/dist/types/components.d.ts +143 -169
- package/dist/types/features/image-viewer/image-viewer-logic.d.ts +3 -0
- package/dist/types/features/image-viewer/image-viewer.d.ts +10 -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/{components/components → features/vehicle-info-layout}/vehicle-info-layout.d.ts +3 -3
- 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/question-mark.d.ts +6 -0
- package/dist/types/global/assets/triangle-icon.d.ts +6 -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/types/components.d.ts +0 -1
- package/dist/types/global/types/forms.d.ts +1 -1
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-item-warning.d.ts +7 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-service-item-dto.d.ts +3 -0
- package/dist/types/locales/vehicleLookup/accessories/type.d.ts +2 -2
- package/dist/types/locales/vehicleLookup/claimableItems/type.d.ts +18 -26
- package/dist/types/locales/vehicleLookup/warranty/type.d.ts +2 -2
- package/dist/types/locales/vehicleLookup/wrapper-type.d.ts +14 -18
- package/package.json +1 -2
- package/dist/cjs/shift-tab-content_7.cjs.entry.js +0 -1487
- package/dist/cjs/type-CCsnwaKp.js +0 -56
- package/dist/collection/global/api/partInformation.js +0 -32
- package/dist/collection/global/api/vehicleInformation.js +0 -48
- package/dist/components/p-1vy-Ba6r.js +0 -5
- package/dist/components/p-B5YdqGVm.js +0 -5
- package/dist/components/p-BDkK65_1.js +0 -5
- package/dist/components/p-BT4rhLRL.js +0 -5
- package/dist/components/p-C1F_f1WE.js +0 -5
- package/dist/components/p-CACnUI7c.js +0 -5
- package/dist/components/p-CDOvd2iD.js +0 -5
- package/dist/components/p-CGzOJT7g.js +0 -5
- package/dist/components/p-CINfIgzX.js +0 -5
- package/dist/components/p-CJpwqpuQ.js +0 -5
- package/dist/components/p-CUqXnLyM.js +0 -5
- package/dist/components/p-Cl9ct-bZ.js +0 -5
- package/dist/components/p-CqGVdvFp.js +0 -5
- package/dist/components/p-D2bxjSGr.js +0 -5
- package/dist/components/p-DXHx6lre.js +0 -5
- package/dist/components/p-DXj5zsQK.js +0 -5
- package/dist/components/p-DsCtgcZn.js +0 -5
- package/dist/components/p-DxjQlmaz.js +0 -5
- package/dist/components/p-nxlqujKv.js +0 -5
- package/dist/components/p-vvHN2Olh.js +0 -5
- package/dist/components/p-yQ70lKV2.js +0 -5
- package/dist/esm/shift-tab-content_7.entry.js +0 -1479
- package/dist/esm/type-CfLRnI1J.js +0 -53
- package/dist/esm/vehicle-info-layout-D1bvY1nt.js +0 -43
- package/dist/shift-components/p-389f444c.entry.js +0 -5
- package/dist/shift-components/p-5dd208de.entry.js +0 -5
- package/dist/shift-components/p-5f91eb5f.entry.js +0 -5
- package/dist/shift-components/p-76dd44e9.entry.js +0 -5
- package/dist/shift-components/p-9a51dae0.entry.js +0 -5
- package/dist/shift-components/p-BAMA88Mr.js +0 -5
- package/dist/shift-components/p-Br0JD1CD.js +0 -5
- package/dist/shift-components/p-af44ca99.entry.js +0 -5
- package/dist/shift-components/p-d0e6cd78.entry.js +0 -5
- package/dist/shift-components/p-f1225504.entry.js +0 -5
- package/dist/shift-components/p-faabbd23.entry.js +0 -5
- package/dist/shift-components/p-ff0fec09.entry.js +0 -5
- 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/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
|
@@ -2,267 +2,255 @@
|
|
|
2
2
|
* Built by ShiftSoftware
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
|
-
import { Host, h } from "@stencil/core";
|
|
6
5
|
import cn from "../../global/lib/cn";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { Host, h } from "@stencil/core";
|
|
7
|
+
import { MaterialCard } from "../components/material-card";
|
|
8
|
+
import { closeImageViewer, ImageViewer, openImageViewer } from "../../features/image-viewer/index";
|
|
9
|
+
import { AddIcon } from "../../global/assets/add-icon";
|
|
10
|
+
import { AlertIcon } from "../../global/assets/alert-icon";
|
|
11
|
+
import { CheckIcon } from "../../global/assets/check-icon";
|
|
12
|
+
import { AttachIcon } from "../../global/assets/attach-icon";
|
|
13
|
+
import { FormSubmitSVG } from "../../global/assets/form-submit-svg";
|
|
14
|
+
import { ActivationIcon } from "../../global/assets/activation-icon";
|
|
15
|
+
import { PrintIcon } from "../../global/assets/print-icon";
|
|
16
|
+
import Eye from "~assets/eye.svg";
|
|
9
17
|
export class VehicleItemClaimForm {
|
|
10
18
|
constructor() {
|
|
11
|
-
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
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 = '';
|
|
19
|
+
// ====== Start Image Viewer Logic
|
|
20
|
+
this.expandedImage = '';
|
|
21
|
+
this.uploadMultipleDocuments = true;
|
|
20
22
|
this.uploadProgress = 0;
|
|
21
|
-
this.isLoading = false;
|
|
22
23
|
this.isOpened = false;
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
25
|
-
this.
|
|
26
|
-
this.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
this.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
this.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
24
|
+
this.isLoading = false;
|
|
25
|
+
this.confirmationStates = {};
|
|
26
|
+
this.errors = {};
|
|
27
|
+
this.inputs = {
|
|
28
|
+
documents: [],
|
|
29
|
+
};
|
|
30
|
+
this.setErrorValue = (errorName, value) => {
|
|
31
|
+
const previousError = (this.errors[errorName] || {});
|
|
32
|
+
this.errors = Object.assign(Object.assign({}, this.errors), { [errorName]: Object.assign(Object.assign({}, previousError), value) });
|
|
33
|
+
};
|
|
34
|
+
this.setInputValue = (inputName, value) => {
|
|
35
|
+
this.inputs = Object.assign(Object.assign({}, this.inputs), { [inputName]: value });
|
|
36
|
+
};
|
|
37
|
+
this.onFileUploaderChange = (event) => {
|
|
38
|
+
var _a, _b, _c, _d, _e;
|
|
39
|
+
const input = event.target;
|
|
40
|
+
if (!input.files)
|
|
41
|
+
return;
|
|
42
|
+
const maxSize = parseInt(input.dataset.maxSize || '0', 10);
|
|
43
|
+
const newFiles = this.uploadMultipleDocuments ? Array.from(input.files) : [input.files[0]];
|
|
44
|
+
input.value = '';
|
|
45
|
+
let anyFileExceedsMaxSize = false;
|
|
46
|
+
const filteredNewFiles = newFiles.filter(newFile => {
|
|
47
|
+
var _a, _b;
|
|
48
|
+
const isFileSizeValid = newFile.size <= maxSize;
|
|
49
|
+
if (!isFileSizeValid) {
|
|
50
|
+
anyFileExceedsMaxSize = true;
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
const isFileAlreadyExists = (_b = (_a = this.inputs) === null || _a === void 0 ? void 0 : _a.documents) === null || _b === void 0 ? void 0 : _b.some(existingFile => existingFile.name === newFile.name && existingFile.size === newFile.size && existingFile.lastModified === newFile.lastModified);
|
|
54
|
+
return !isFileAlreadyExists;
|
|
55
|
+
});
|
|
56
|
+
this.setInputValue('documents', this.uploadMultipleDocuments ? [...(((_a = this.inputs) === null || _a === void 0 ? void 0 : _a.documents) || []), ...filteredNewFiles] : filteredNewFiles);
|
|
57
|
+
if (anyFileExceedsMaxSize) {
|
|
58
|
+
this.setErrorValue('documents', {
|
|
59
|
+
show: true,
|
|
60
|
+
text: 'documentLimitError',
|
|
61
|
+
});
|
|
62
|
+
return;
|
|
43
63
|
}
|
|
44
|
-
else
|
|
45
|
-
this.
|
|
46
|
-
|
|
47
|
-
this.
|
|
48
|
-
|
|
64
|
+
else if ((_b = this.errors) === null || _b === void 0 ? void 0 : _b.documents)
|
|
65
|
+
this.setErrorValue('documents', { text: (_c = this.errors.documents) === null || _c === void 0 ? void 0 : _c.text, show: false });
|
|
66
|
+
if (((_d = this.item) === null || _d === void 0 ? void 0 : _d.claimingMethodEnum) === 'ClaimByScanningQRCode') {
|
|
67
|
+
if ((_e = this.inputs) === null || _e === void 0 ? void 0 : _e.qrCode)
|
|
68
|
+
this.submit();
|
|
49
69
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
this.job = null;
|
|
53
|
-
this.readyToClaim = false;
|
|
54
|
-
this.isLoading = false;
|
|
70
|
+
else
|
|
71
|
+
this.focusInputs();
|
|
55
72
|
};
|
|
56
|
-
this.
|
|
73
|
+
this.onDocumentButtonClicked = () => {
|
|
74
|
+
const documentUploader = this.el.shadowRoot.querySelector('.document-uploader');
|
|
75
|
+
if (documentUploader)
|
|
76
|
+
documentUploader.click();
|
|
77
|
+
};
|
|
78
|
+
this.focusInputs = () => {
|
|
79
|
+
setTimeout(() => {
|
|
80
|
+
const inputs = this.el.shadowRoot.querySelectorAll('input[type="text"]');
|
|
81
|
+
const firstEnabled = Array.from(inputs).find(input => !input.disabled && !input.readOnly);
|
|
82
|
+
if (firstEnabled)
|
|
83
|
+
firstEnabled.focus();
|
|
84
|
+
}, 50);
|
|
85
|
+
};
|
|
86
|
+
this.focusEmptyInputs = () => {
|
|
57
87
|
var _a, _b;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
88
|
+
const inputs = this.el.shadowRoot.querySelectorAll('input[type="text"]');
|
|
89
|
+
const firstEmptyInput = Array.from(inputs).find(input => { var _a; return !((_a = input.value) === null || _a === void 0 ? void 0 : _a.trim()); });
|
|
90
|
+
if (firstEmptyInput)
|
|
91
|
+
firstEmptyInput.focus();
|
|
92
|
+
if (((_a = this.item) === null || _a === void 0 ? void 0 : _a.documentUploaderIsRequired) && !((_b = this.inputs) === null || _b === void 0 ? void 0 : _b.documents.length)) {
|
|
93
|
+
this.setErrorValue('documents', {
|
|
94
|
+
show: true,
|
|
95
|
+
text: 'documentRequiredError',
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
this.submit = async () => {
|
|
100
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
101
|
+
if (!this.getIsFormValid())
|
|
102
|
+
return this.focusEmptyInputs();
|
|
103
|
+
if (!this.getIsFormConfirmed())
|
|
104
|
+
return;
|
|
105
|
+
if ((_a = this.item) === null || _a === void 0 ? void 0 : _a.showDocumentUploader) {
|
|
106
|
+
if (((_b = this.item) === null || _b === void 0 ? void 0 : _b.documentUploaderIsRequired) && !((_d = (_c = this.inputs) === null || _c === void 0 ? void 0 : _c.documents) === null || _d === void 0 ? void 0 : _d.length)) {
|
|
107
|
+
this.setErrorValue('documents', {
|
|
108
|
+
show: true,
|
|
109
|
+
text: 'documentRequiredError',
|
|
110
|
+
});
|
|
66
111
|
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
112
|
}
|
|
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
113
|
}
|
|
114
|
+
this.isLoading = true;
|
|
115
|
+
if (this.handleClaiming)
|
|
116
|
+
await this.handleClaiming({
|
|
117
|
+
qrCode: (_e = this.inputs) === null || _e === void 0 ? void 0 : _e.qrCode,
|
|
118
|
+
invoice: (_f = this.inputs) === null || _f === void 0 ? void 0 : _f.invoice,
|
|
119
|
+
documents: (_g = this.inputs) === null || _g === void 0 ? void 0 : _g.documents,
|
|
120
|
+
jobNumber: (_h = this.inputs) === null || _h === void 0 ? void 0 : _h.jobNumber,
|
|
121
|
+
});
|
|
122
|
+
this.close(true);
|
|
92
123
|
};
|
|
93
|
-
this.
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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);
|
|
124
|
+
this.onConfirmCheckboxChange = (confirmationName) => (event) => {
|
|
125
|
+
const target = event.target;
|
|
126
|
+
this.confirmationStates = Object.assign(Object.assign({}, this.confirmationStates), { [confirmationName]: target.checked });
|
|
127
|
+
if (this.getIsFormConfirmed)
|
|
128
|
+
this.focusInputs();
|
|
103
129
|
};
|
|
104
|
-
this.
|
|
105
|
-
|
|
130
|
+
this.getIsFormConfirmed = () => {
|
|
131
|
+
var _a, _b;
|
|
132
|
+
if (Array.isArray((_a = this.item) === null || _a === void 0 ? void 0 : _a.warnings)) {
|
|
133
|
+
for (let idx = 0; idx < ((_b = this.item) === null || _b === void 0 ? void 0 : _b.warnings.length); idx++) {
|
|
134
|
+
const warning = this.item.warnings[idx];
|
|
135
|
+
if (!!(warning === null || warning === void 0 ? void 0 : warning.confirmationText) && !this.confirmationStates[warning.key])
|
|
136
|
+
return false;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
return true;
|
|
106
140
|
};
|
|
107
|
-
this.
|
|
108
|
-
var _a;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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;
|
|
141
|
+
this.getIsFormValid = () => {
|
|
142
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
143
|
+
if (((_a = this.item) === null || _a === void 0 ? void 0 : _a.claimingMethodEnum) === 'ClaimByScanningQRCode') {
|
|
144
|
+
if (!((_c = (_b = this.inputs) === null || _b === void 0 ? void 0 : _b.qrCode) === null || _c === void 0 ? void 0 : _c.trim().length))
|
|
145
|
+
return false;
|
|
119
146
|
}
|
|
120
147
|
else {
|
|
121
|
-
this.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
148
|
+
if (!((_e = (_d = this.inputs) === null || _d === void 0 ? void 0 : _d.invoice) === null || _e === void 0 ? void 0 : _e.trim().length))
|
|
149
|
+
return false;
|
|
150
|
+
if (!((_g = (_f = this.inputs) === null || _f === void 0 ? void 0 : _f.jobNumber) === null || _g === void 0 ? void 0 : _g.trim().length))
|
|
151
|
+
return false;
|
|
126
152
|
}
|
|
153
|
+
if (((_h = this.item) === null || _h === void 0 ? void 0 : _h.documentUploaderIsRequired) && !((_j = this.inputs) === null || _j === void 0 ? void 0 : _j.documents.length))
|
|
154
|
+
return false;
|
|
155
|
+
return true;
|
|
156
|
+
};
|
|
157
|
+
this.resetState = () => {
|
|
158
|
+
this.item = null;
|
|
159
|
+
this.errors = {};
|
|
160
|
+
this.inputs = {
|
|
161
|
+
documents: [],
|
|
162
|
+
};
|
|
163
|
+
this.isLoading = false;
|
|
164
|
+
this.confirmationStates = {};
|
|
127
165
|
};
|
|
128
166
|
this.clearFile = (event) => {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
167
|
+
var _a, _b, _c;
|
|
168
|
+
if (typeof event === 'number') {
|
|
169
|
+
const newDocuments = this.inputs.documents.filter((_, idx) => idx !== event);
|
|
170
|
+
this.setInputValue('documents', newDocuments);
|
|
171
|
+
if (((_a = this === null || this === void 0 ? void 0 : this.item) === null || _a === void 0 ? void 0 : _a.documentUploaderIsRequired) && !newDocuments.length) {
|
|
172
|
+
this.setErrorValue('documents', {
|
|
173
|
+
show: true,
|
|
174
|
+
text: 'documentRequiredError',
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
event.stopPropagation();
|
|
180
|
+
this.setInputValue('documents', []);
|
|
181
|
+
if ((_b = this.errors) === null || _b === void 0 ? void 0 : _b.documents)
|
|
182
|
+
this.setErrorValue('documents', { text: (_c = this.errors.documents) === null || _c === void 0 ? void 0 : _c.text, show: false });
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
this.onKeyDown = (event) => {
|
|
186
|
+
if (event.key === 'Enter')
|
|
187
|
+
this.submit();
|
|
132
188
|
};
|
|
133
189
|
}
|
|
134
|
-
|
|
135
|
-
|
|
190
|
+
onImageViewerToggles(newValue) {
|
|
191
|
+
window.removeEventListener('keydown', this.closeModalListenerRef);
|
|
192
|
+
console.log(newValue);
|
|
193
|
+
if (newValue === null) {
|
|
194
|
+
setTimeout(() => {
|
|
195
|
+
this.closeModalListenerRef = (event) => event.key === 'Escape' && this.close();
|
|
196
|
+
window.addEventListener('keydown', this.closeModalListenerRef);
|
|
197
|
+
}, 200);
|
|
198
|
+
}
|
|
136
199
|
}
|
|
137
|
-
async
|
|
138
|
-
this.
|
|
200
|
+
async open() {
|
|
201
|
+
this.isOpened = true;
|
|
202
|
+
document.body.style.overflow = 'hidden';
|
|
203
|
+
this.focusInputs();
|
|
204
|
+
window.removeEventListener('keydown', this.closeModalListenerRef);
|
|
205
|
+
this.closeModalListenerRef = (event) => event.key === 'Escape' && this.close();
|
|
206
|
+
window.addEventListener('keydown', this.closeModalListenerRef);
|
|
139
207
|
}
|
|
140
208
|
onIsLoadingChange(newValue) {
|
|
141
209
|
if (this.loadingStateChange)
|
|
142
210
|
this.loadingStateChange(newValue);
|
|
143
211
|
}
|
|
144
|
-
async
|
|
145
|
-
this.
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
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
|
-
}
|
|
212
|
+
async close(forceClose = false) {
|
|
213
|
+
if (this.isLoading && !forceClose)
|
|
214
|
+
return;
|
|
215
|
+
this.isOpened = false;
|
|
216
|
+
document.body.style.overflow = 'auto';
|
|
217
|
+
await new Promise(r => setTimeout(r, 500));
|
|
218
|
+
this.resetState();
|
|
219
|
+
window.removeEventListener('keydown', this.closeModalListenerRef);
|
|
222
220
|
}
|
|
223
221
|
async setFileUploadProgression(uploadPercentage) {
|
|
224
222
|
this.uploadProgress = uploadPercentage;
|
|
225
223
|
}
|
|
224
|
+
// ====== End Component Logic
|
|
226
225
|
render() {
|
|
227
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
228
|
-
const
|
|
229
|
-
const
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
}
|
|
226
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
|
|
227
|
+
const isQRScannerForm = ((_a = this.item) === null || _a === void 0 ? void 0 : _a.claimingMethodEnum) === 'ClaimByScanningQRCode';
|
|
228
|
+
const disableInputs = !this.getIsFormConfirmed() || this.isLoading;
|
|
229
|
+
const isFormValid = this.getIsFormValid();
|
|
230
|
+
return (h(Host, { key: '68bf42046badf6483d96a3d0d246997f78afc837' }, h(ImageViewer, { key: '1c3b053514955c9926d0dff574515d9c91721ba3', style: { 'z-index': '99999999' }, expandedImage: this.expandedImage, imageStyle: { 'z-index': '999999999' }, closeImageViewer: () => closeImageViewer.bind(this)() }), h("div", { key: '5a3e4dd1652450520791a871ad0afadd0d5a1f2c', dir: this.locale.sharedLocales.direction, class: cn('min-w-[100dvw] pointer-events-none h-[100dvh] bg-white fixed top-0 left-0 z-[999] flex flex-col transition duration-500 scale-[110%] opacity-0 justify-between p-[50px] box-border overflow-auto', {
|
|
231
|
+
'opacity-1 scale-100 pointer-events-auto': this.isOpened,
|
|
232
|
+
}) }, h("button", { key: 'd11ef680cbf3e0eed7c18257547bc6584188a8d0', disabled: this.isLoading, onClick: this.close.bind(this), class: "disabled:opacity-50 transition absolute right-[50px] duration-500 rounded-full enabled:hover:bg-red-200 enabled:hover:text-red-400 text-black enabled:hover:scale-[150%] enabled:hover:rotate-[135deg] size-[35px] rotate-[45deg]" }, h(AddIcon, { key: 'bb82189a466165e3679366500ecee1cbc6eea49b', class: "stroke-[1.5px]" })), h("div", { key: '376be70e1bf25a40ba04529dc8e7c094610dc179', class: "flex flex-col h-full gap-[32px] justify-between" }, h("div", { key: 'adfda45afa90a773ba53e5c09d4a2bc38c992974', class: "flex mt-[50px] flex-col shrink-0 gap-[20px]" }, h("div", { key: 'bdc0e739e70f362f3b186df490b28a271d19eb9b', class: "border overflow-hidden rounded-[6px] border-[#dcdcdc] box-border" }, h("div", { key: '0e8ec265b6364ec1e76b162e258ac84fceddd4bc', class: "relative text-[16px] h-[50px] font-semibold flex items-center justify-center bg-[#f6f6f6]" }, this.vin, !!((_b = this.item) === null || _b === void 0 ? void 0 : _b.printUrl) && (h("button", { key: 'cc5ebfbb4fde8a4b9858a7804beeac53eee65c27', class: "outline-button absolute end-[16px]", onClick: () => window.open(this.item.printUrl, '_blank').focus() }, h(PrintIcon, { key: 'fdac2505adaba1430443d33050d0fc7455cf1d93', class: "size-[30px] duration-200" }), h("span", { key: '32f48945b8912f4b909f7826ce9f6c098f7a4176' }, this.locale.print)))), h("div", { key: 'f2b0ce9cd68dda03b202dcba31acd54bf9dfc2fb', class: "overflow-hidden flex p-[22px] [&_div]:min-w-[200px] gap-[32px] flex-wrap justify-center" }, h(MaterialCard, { key: 'b8ed2882ccc70f95d5dd141d64efc8c20a34922c', title: this.locale.serviceType }, (_c = this.item) === null || _c === void 0 ? void 0 : _c.type), h(MaterialCard, { key: 'f0c9bd861be008a94dfb9de30cced23812459307', title: this.locale.name }, (_d = this.item) === null || _d === void 0 ? void 0 : _d.name), h(MaterialCard, { key: '46fdf7c4d4873c8473b48097d59b5bec5bed8ec9', title: this.locale.activationDate }, (_e = this.item) === null || _e === void 0 ? void 0 : _e.activatedAt), h(MaterialCard, { key: 'f43414b58f77fd1861ef542ea398fef88cd16735', title: this.locale.expireDate }, (_f = this.item) === null || _f === void 0 ? void 0 : _f.expiresAt), h(MaterialCard, { key: '0eab1ed8fb785e3b80a51f174e0849a11490544c', title: this.locale.packageCode }, (_g = this.item) === null || _g === void 0 ? void 0 : _g.packageCode))), Array.isArray((_h = this.item) === null || _h === void 0 ? void 0 : _h.warnings) &&
|
|
233
|
+
this.item.warnings.map(warning => (h("div", { key: warning.key, class: "border overflow-hidden rounded-[6px] border-[#ff9100] box-border" }, h("div", { class: "text-[16px] px-[22px] h-[50px] font-semibold flex items-center gap-[8px] bg-[#ff91001a]" }, h(AlertIcon, { class: "size-[25px] text-[#ff9100]" }), " ", warning.title), h("div", { class: "p-[16px]" }, h("div", { class: "text-[16px] flex-col items-center md:flex-row flex gap-[16px]" }, h("div", { class: "flex-1", innerHTML: warning.bodyContent }), (warning === null || warning === void 0 ? void 0 : warning.imageUrl) && (h("button", { onClick: ({ target }) => openImageViewer.bind(this)(target, warning === null || warning === void 0 ? void 0 : warning.imageUrl), class: "shrink-0 relative ring-0 outline-none w-fit mx-auto [&_img]:hover:shadow-lg [&_div]:hover:!opacity-100 cursor-pointer" }, h("div", { class: "absolute flex-col justify-center gap-[4px] size-full flex items-center pointer-events-none hover:opacity-100 rounded-lg opacity-0 bg-black/40 transition-all duration-300" }, h("img", { src: Eye }), h("span", { class: "text-white" }, this.locale.expand)), h("img", { class: "w-auto h-auto max-w-[200px] max-h-[200px] cursor-pointer shadow-sm rounded-lg transition-all duration-300", src: warning === null || warning === void 0 ? void 0 : warning.imageUrl })))), (warning === null || warning === void 0 ? void 0 : warning.confirmationText) && (h("label", { class: cn('select-none text-[16px] flex font-semibold group items-center px-[16px] gap-[10px] mt-[20px] h-[36px] transition duration-300 rounded-[6px] cursor-pointer text-[#663c00] bg-[#ff91001a] border border-[#ffd28f]', {
|
|
234
|
+
'hover:bg-[#fff8e1]': !this.isLoading,
|
|
235
|
+
'opacity-50 pointer-events-none': this.isLoading,
|
|
236
|
+
}) }, h("input", { type: "checkbox", class: "peer sr-only", disabled: this.isLoading, checked: !!this.confirmationStates[warning.key], onChange: this.onConfirmCheckboxChange(warning.key) }), h("div", { class: "size-[20px] rounded border border-[#ffb74d] transition duration-300 text-transparent peer-checked:text-white peer-checked:bg-[#ff9100] peer-checked:border-[#ff9100] flex items-center justify-center" }, h(CheckIcon, { class: "size-[18px]" })), warning === null || warning === void 0 ? void 0 :
|
|
237
|
+
warning.confirmationText))))))), h("div", { key: '720375915cd8759c3876c6e29eb891d7a95db7b6', class: cn('flex flex-col shrink-0 my-auto gap-[20px] h-fit p-[50px] border-[2px] border-[#3071a9] transition duration-500 items-center rounded-[8px] shadow-lg bg-[#f4f4f4]', {
|
|
238
|
+
'border-[#f4f4f4]': this.isLoading,
|
|
239
|
+
}) }, h("div", { key: 'df0317422a3bf7a4f4959051ca0b6775e6f97195', class: "relative w-[200px] h-[140px]" }, h("div", { key: 'f2fffeb225253711875ae9dd18e5dc2373cf4edd', class: cn('absolute size-full transition-all duration-500 flex flex-col items-center gap-[12px] left-0 top-0', { 'left-full opacity-0': this.isLoading }) }, h(FormSubmitSVG, { key: 'e62acf3c9105801311b513f811c519d4d9ec6d7e', class: "size-[100px] fill-[#3071a9] text-[#3071a9]" }), h("div", { key: '83b70c98685c2e0a61276aa9d49c53b317ae2fa4', class: "text-[16px] text-[#3071a9] font-semibold" }, isQRScannerForm ? this.locale.scanTheVoucher : this.locale.enterServiceInfo)), h("div", { key: '821c19a531e2fc90eb844055ffbea8aeddd5d9c6', class: cn('absolute size-full opacity-0 transition-all duration-500 -left-full flex flex-col gap-[12px] items-center', { 'left-0 opacity-100': this.isLoading }) }, h("div", { key: '346408e4c016fbfc03ab9ed174c90f39c8fc3b1a', class: cn('relative size-[100px] flex items-center justify-center') }, h("div", { key: 'c18f5bd47ade67c034a3f94eb0e6097dd96d16d7', class: "lds-ripple" }), h("div", { key: '1a57578950e817dea2ba60ca64bd0b4b64d77cdf', class: "lds-ripple" })), ((_j = this.item) === null || _j === void 0 ? void 0 : _j.showDocumentUploader) && !!this.inputs['documents'].length ? (h("div", { class: "relative border-[#3071a9] text-[#3071a9] text-[16px] w-[300px] border-[2px] font-semibold h-[30px] overflow-hidden rounded-full flex items-center justify-center" }, h("span", { class: "relative z-20" }, this.locale.processing, " ", `${this.uploadProgress}%`), h("div", { style: {
|
|
241
240
|
width: `${this.uploadProgress}%`,
|
|
242
241
|
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
|
|
244
|
-
'pointer-events-none cursor-default': !this.
|
|
245
|
-
}) }, h(
|
|
246
|
-
?
|
|
247
|
-
:
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
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))))))))))));
|
|
242
|
+
}, class: "absolute left-0 z-10 top-0 h-full transition-[width] duration-700 ease-out" }))) : (h("div", { class: "text-[16px] text-[#3071a9] font-semibold" }, this.locale.processing)))), ((_k = this.item) === null || _k === void 0 ? void 0 : _k.showDocumentUploader) && (h("div", { key: '3ce09c1b7eeb5d06f7d4f62f2e13a99e9e2a2832', class: "flex mb-[16px] w-full flex-col" }, h("input", { key: '4711e3ad8c4c844fdc4aeea2b822afb6c959f35e', hidden: true, type: "file", class: "document-uploader", disabled: this.isLoading, accept: "image/*,application/pdf", onChange: this.onFileUploaderChange, multiple: this.uploadMultipleDocuments, "data-max-size": this.maximumDocumentFileSizeInMb * 1024 * 1024 }), h("div", { key: 'c6cfa5ff09f3b9a7fa850778cc1a8406b1470ffb', onClick: this.onDocumentButtonClicked, class: cn('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': disableInputs }) }, h("div", { key: '762740b15f1a1969a00f3c731655b2b1e19664fa', title: this.uploadMultipleDocuments ? this.locale.uploadMultipleDocument : this.locale.uploadSingleDocument, class: "max-w-[200px] truncate whitespace-nowrap overflow-hidden text-ellipsis" }, this.uploadMultipleDocuments ? this.locale.uploadMultipleDocument : this.locale.uploadSingleDocument, ((_l = this === null || this === void 0 ? void 0 : this.item) === null || _l === void 0 ? void 0 : _l.documentUploaderIsRequired) && !((_m = this.inputs) === null || _m === void 0 ? void 0 : _m.documents.length) && (h("span", { key: '4d94c48440cf1d230da3b913d2f6b580ec288c61', class: cn('ps-[4px] text-red-500', { 'text-white': disableInputs }) }, "*"))), h("button", { key: '6f243a97f7cf5d451baf94c326f55d405be24535', onClick: this.clearFile, class: cn('overflow-hidden transition duration-300 hover:bg-red-600 relative cursor-pointer flex items-center justify-center size-[32px]', {
|
|
243
|
+
'pointer-events-none cursor-default': !((_o = this.inputs) === null || _o === void 0 ? void 0 : _o.documents.length),
|
|
244
|
+
}) }, h(AttachIcon, { key: '69ba9c0fce73213affef7c226a27c8fab4e168f1', class: cn('size-[24px] absolute transition duration-500', { '-translate-y-[32px]': !!((_p = this.inputs) === null || _p === void 0 ? void 0 : _p.documents.length) }) }), h(AddIcon, { key: '3fb8beb241965d6c7978aedb8162c05e23a0fbbc', class: cn('size-[24px] rotate-[45deg] absolute transition translate-y-[32px] duration-500', { 'translate-y-0': !!((_q = this.inputs) === null || _q === void 0 ? void 0 : _q.documents.length) }) }))), h("flexible-container", { key: '35a261615caa5d8b1298aedd18041cd1938d78e2', isOpened: !!((_s = (_r = this.errors) === null || _r === void 0 ? void 0 : _r.documents) === null || _s === void 0 ? void 0 : _s.show) }, h("div", { key: 'a550ee88124dd9dac42676537043001dc8eebf09', class: "text-red-700 w-fit mx-auto pt-[8px]" }, ((_u = (_t = this.errors) === null || _t === void 0 ? void 0 : _t.documents) === null || _u === void 0 ? void 0 : _u.text) === 'documentLimitError'
|
|
245
|
+
? this.locale.documentLimitError + `${this.maximumDocumentFileSizeInMb}Mb`
|
|
246
|
+
: this.locale.documentRequiredError || this.locale.sharedLocales.errors.wildCard)), h("flexible-container", { key: 'eea0f00692335fe33a28d249f74702072ffbdfd3', isOpened: !!((_w = (_v = this.inputs) === null || _v === void 0 ? void 0 : _v.documents) === null || _w === void 0 ? void 0 : _w.length), containerClasses: "" }, h("div", { key: 'eee5774648c156c8e7f71803b861fa64bf169346', class: "flex w-full pt-[16px] flex-wrap justify-center gap-[16px]" }, (_y = (_x = this.inputs) === null || _x === void 0 ? void 0 : _x.documents) === null || _y === void 0 ? void 0 : _y.map((doc, idx) => {
|
|
247
|
+
var _a;
|
|
248
|
+
return (h("div", { class: cn('flex relative overflow-hidden max-w-[400px] items-center justify-between gap-[20px] bg-slate-400 rounded-[4px] text-white text-[14px]', {
|
|
249
|
+
'pointer-events-none bg-[#d5d5d5] cursor-default': disableInputs,
|
|
250
|
+
}) }, h("span", { title: doc.name, class: "truncate ps-[16px] py-[8px]" }, doc.name), h("button", { disabled: disableInputs, onClick: () => this.clearFile(idx), class: cn('overflow-hidden transition duration-300 hover:bg-red-600 relative cursor-pointer flex items-center justify-center size-[32px]', {
|
|
251
|
+
'pointer-events-none cursor-default': !((_a = this.inputs) === null || _a === void 0 ? void 0 : _a.documents.length),
|
|
252
|
+
}) }, h(AddIcon, { class: "size-[24px] rotate-[45deg]" }))));
|
|
253
|
+
}))))), isQRScannerForm && (h("div", { key: '26d98b8f4214d2ec2df7dcc360ba39af29f8bc40', class: "overflow-hidden w-full" }, h("input", { key: 'f1f00cff8e82845ddcc138e232b72525091854c6', dir: "ltr", autofocus: true, type: "text", spellcheck: "false", autocomplete: "off", disabled: disableInputs, onBlur: this.focusInputs, onKeyDown: this.onKeyDown, value: (_z = this.inputs) === null || _z === void 0 ? void 0 : _z.qrCode, placeholder: this.locale.qrCode, onInput: event => this.setInputValue('qrCode', event.target.value), class: "bg-transparent flex-1 outline-none border-b border-[#ddd] text-[#424242] w-full text-center p-[7px] text-[16px] transition-all duration-300 focus:border-[#3071a9] focus:scale-110 focus:-translate-y-[8px]" }))), !isQRScannerForm && (h("div", { key: 'ebdb3667b0d0785ff7f226e189f0ce8a86af97a0', class: "flex w-full overflow-hidden gap-[75px]" }, h("input", { key: 'eb25f844d143e5c1e2c21070fabd2502adba2861', dir: "ltr", autofocus: true, type: "text", spellcheck: "false", autocomplete: "off", disabled: disableInputs, onKeyDown: this.onKeyDown, value: (_0 = this.inputs) === null || _0 === void 0 ? void 0 : _0.invoice, placeholder: this.locale.invoice, onInput: event => this.setInputValue('invoice', event.target.value), class: "bg-transparent flex-1 outline-none border-b border-[#ddd] text-[#424242] w-full text-center p-[7px] text-[16px] transition-all duration-300 focus:border-[#3071a9] focus:scale-110 focus:-translate-y-[8px]" }), h("input", { key: 'f6979a7700afcf58e43d6a8f2c040790553c4ddf', dir: "ltr", type: "text", spellcheck: "false", autocomplete: "off", disabled: disableInputs, onKeyDown: this.onKeyDown, value: (_1 = this.inputs) === null || _1 === void 0 ? void 0 : _1.jobNumber, placeholder: this.locale.jobNumber, onInput: event => this.setInputValue('jobNumber', event.target.value), class: "bg-transparent flex-1 outline-none border-b border-[#ddd] text-[#424242] w-full text-center p-[7px] text-[16px] transition-all duration-300 focus:border-[#3071a9] focus:scale-110 focus:-translate-y-[8px]" }))), h("button", { key: 'bf285fd6413dcc8cde6d527813db1e16307468d0', onClick: this.submit, disabled: !isFormValid || disableInputs, class: "text-[22px] transition duration-500 hover: mt-[16px] disabled:opacity-50 text-white w-full max-w-[250px] px-[8px] h-[40px] enabled:hover:scale-110 flex gap-[8px] border rounded-[4px] enabled:shadow items-center justify-center border-[#27ae60] bg-[#32b267] enabled:hover:border-[#27ae5fc1] enabled:hover:bg-[#32b267c7]" }, h(ActivationIcon, { key: 'ad380f096290a206a19449928f42efb5550adc30', class: "size-[30px] [&_circle]:fill-white stroke-white text-red-300" }), h("span", { key: '5d6ffb12f5c2ebe79d483141e3eb5c012d185e11' }, this.locale.claim))), h("div", { key: 'f30065ad52e07d019c196e7ad36e0b25d8ec23e1', class: "shrink-0 h-[16px]" })))));
|
|
266
254
|
}
|
|
267
255
|
static get is() { return "vehicle-item-claim-form"; }
|
|
268
256
|
static get encapsulation() { return "shadow"; }
|
|
@@ -295,34 +283,7 @@ export class VehicleItemClaimForm {
|
|
|
295
283
|
},
|
|
296
284
|
"getter": false,
|
|
297
285
|
"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'"
|
|
286
|
+
"reflect": false
|
|
326
287
|
},
|
|
327
288
|
"item": {
|
|
328
289
|
"type": "unknown",
|
|
@@ -330,7 +291,7 @@ export class VehicleItemClaimForm {
|
|
|
330
291
|
"mutable": false,
|
|
331
292
|
"complexType": {
|
|
332
293
|
"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; }",
|
|
294
|
+
"resolved": "{ group: VehicleServiceItemGroup; showDocumentUploader: boolean; warnings?: VehicleItemWarning[]; printUrl?: string; 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
295
|
"references": {
|
|
335
296
|
"VehicleServiceItemDTO": {
|
|
336
297
|
"location": "import",
|
|
@@ -346,8 +307,7 @@ export class VehicleItemClaimForm {
|
|
|
346
307
|
"text": ""
|
|
347
308
|
},
|
|
348
309
|
"getter": false,
|
|
349
|
-
"setter": false
|
|
350
|
-
"defaultValue": "null"
|
|
310
|
+
"setter": false
|
|
351
311
|
},
|
|
352
312
|
"maximumDocumentFileSizeInMb": {
|
|
353
313
|
"type": "number",
|
|
@@ -368,13 +328,13 @@ export class VehicleItemClaimForm {
|
|
|
368
328
|
"setter": false,
|
|
369
329
|
"reflect": false
|
|
370
330
|
},
|
|
371
|
-
"
|
|
372
|
-
"type": "
|
|
373
|
-
"attribute": "
|
|
331
|
+
"uploadMultipleDocuments": {
|
|
332
|
+
"type": "boolean",
|
|
333
|
+
"attribute": "upload-multiple-documents",
|
|
374
334
|
"mutable": false,
|
|
375
335
|
"complexType": {
|
|
376
|
-
"original": "
|
|
377
|
-
"resolved": "
|
|
336
|
+
"original": "boolean",
|
|
337
|
+
"resolved": "boolean",
|
|
378
338
|
"references": {}
|
|
379
339
|
},
|
|
380
340
|
"required": false,
|
|
@@ -386,32 +346,7 @@ export class VehicleItemClaimForm {
|
|
|
386
346
|
"getter": false,
|
|
387
347
|
"setter": false,
|
|
388
348
|
"reflect": false,
|
|
389
|
-
"defaultValue": "
|
|
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"
|
|
349
|
+
"defaultValue": "true"
|
|
415
350
|
},
|
|
416
351
|
"loadingStateChange": {
|
|
417
352
|
"type": "unknown",
|
|
@@ -431,23 +366,28 @@ export class VehicleItemClaimForm {
|
|
|
431
366
|
"getter": false,
|
|
432
367
|
"setter": false
|
|
433
368
|
},
|
|
434
|
-
"
|
|
369
|
+
"locale": {
|
|
435
370
|
"type": "unknown",
|
|
436
|
-
"attribute": "
|
|
371
|
+
"attribute": "locale",
|
|
437
372
|
"mutable": false,
|
|
438
373
|
"complexType": {
|
|
439
|
-
"original": "
|
|
440
|
-
"resolved": "
|
|
374
|
+
"original": "{ sharedLocales: SharedLocales } & ClaimFormType",
|
|
375
|
+
"resolved": "{ sharedLocales: { lang?: string; direction?: string; language?: string; noData?: string; errors?: { noBaseUrl?: string; invalidVin?: string; vinNumberRequired?: string; partNumberRequired?: string; wrongResponseFormat?: string; noPartsFound?: string; noServiceAvailable?: string; wrongFormStructure?: string; wildCard?: string; requestFailedPleaseTryAgainLater?: string; }; }; } & { name?: string; print?: string; expand?: string; uploadSingleDocument?: string; uploadMultipleDocument?: string; serviceType?: string; documentLimitError?: string; documentRequiredError?: string; activationDate?: string; expireDate?: string; packageCode?: string; scanTheVoucher?: string; qrCode?: string; processing?: string; enterServiceInfo?: string; invoice?: string; jobNumber?: string; claim?: string; }",
|
|
441
376
|
"references": {
|
|
442
|
-
"
|
|
443
|
-
"location": "
|
|
444
|
-
"path": "/
|
|
445
|
-
"id": "src/
|
|
377
|
+
"SharedLocales": {
|
|
378
|
+
"location": "import",
|
|
379
|
+
"path": "~features/multi-lingual",
|
|
380
|
+
"id": "src/features/multi-lingual/index.ts::SharedLocales"
|
|
381
|
+
},
|
|
382
|
+
"ClaimFormType": {
|
|
383
|
+
"location": "import",
|
|
384
|
+
"path": "~locales/vehicleLookup/claimableItems/type",
|
|
385
|
+
"id": "src/locales/vehicleLookup/claimableItems/type.ts::ClaimFormType"
|
|
446
386
|
}
|
|
447
387
|
}
|
|
448
388
|
},
|
|
449
389
|
"required": false,
|
|
450
|
-
"optional":
|
|
390
|
+
"optional": false,
|
|
451
391
|
"docs": {
|
|
452
392
|
"tags": [],
|
|
453
393
|
"text": ""
|
|
@@ -455,57 +395,50 @@ export class VehicleItemClaimForm {
|
|
|
455
395
|
"getter": false,
|
|
456
396
|
"setter": false
|
|
457
397
|
},
|
|
458
|
-
"
|
|
398
|
+
"handleClaiming": {
|
|
459
399
|
"type": "unknown",
|
|
460
|
-
"attribute": "
|
|
400
|
+
"attribute": "handle-claiming",
|
|
461
401
|
"mutable": false,
|
|
462
402
|
"complexType": {
|
|
463
|
-
"original": "
|
|
464
|
-
"resolved": "
|
|
403
|
+
"original": "(payload: ClaimFormPayload) => Promise<void>",
|
|
404
|
+
"resolved": "(payload: ClaimFormPayload) => Promise<void>",
|
|
465
405
|
"references": {
|
|
466
|
-
"
|
|
467
|
-
"location": "
|
|
468
|
-
"path": "
|
|
469
|
-
"id": "src/
|
|
406
|
+
"ClaimFormPayload": {
|
|
407
|
+
"location": "local",
|
|
408
|
+
"path": "/home/vsts/work/1/s/ADP.WebComponents/adp-web-components/src/components/vehicle-lookup/vehicle-item-claim-form.tsx",
|
|
409
|
+
"id": "src/components/vehicle-lookup/vehicle-item-claim-form.tsx::ClaimFormPayload"
|
|
410
|
+
},
|
|
411
|
+
"Promise": {
|
|
412
|
+
"location": "global",
|
|
413
|
+
"id": "global::Promise"
|
|
470
414
|
}
|
|
471
415
|
}
|
|
472
416
|
},
|
|
473
417
|
"required": false,
|
|
474
|
-
"optional":
|
|
418
|
+
"optional": true,
|
|
475
419
|
"docs": {
|
|
476
420
|
"tags": [],
|
|
477
421
|
"text": ""
|
|
478
422
|
},
|
|
479
423
|
"getter": false,
|
|
480
|
-
"setter": false
|
|
481
|
-
"defaultValue": "claimFormSchema.getDefault()"
|
|
424
|
+
"setter": false
|
|
482
425
|
}
|
|
483
426
|
};
|
|
484
427
|
}
|
|
485
428
|
static get states() {
|
|
486
429
|
return {
|
|
487
|
-
"
|
|
488
|
-
"sharedLocales": {},
|
|
489
|
-
"internalVin": {},
|
|
430
|
+
"expandedImage": {},
|
|
490
431
|
"uploadProgress": {},
|
|
491
|
-
"isLoading": {},
|
|
492
432
|
"isOpened": {},
|
|
493
|
-
"
|
|
494
|
-
"
|
|
495
|
-
"
|
|
496
|
-
"
|
|
497
|
-
"confirmUnInvoicedTBPVehicles": {},
|
|
498
|
-
"internalCanceledItem": {},
|
|
499
|
-
"documentError": {},
|
|
500
|
-
"readyToClaim": {},
|
|
501
|
-
"qrCode": {},
|
|
502
|
-
"invoice": {},
|
|
503
|
-
"job": {}
|
|
433
|
+
"isLoading": {},
|
|
434
|
+
"confirmationStates": {},
|
|
435
|
+
"errors": {},
|
|
436
|
+
"inputs": {}
|
|
504
437
|
};
|
|
505
438
|
}
|
|
506
439
|
static get methods() {
|
|
507
440
|
return {
|
|
508
|
-
"
|
|
441
|
+
"open": {
|
|
509
442
|
"complexType": {
|
|
510
443
|
"signature": "() => Promise<void>",
|
|
511
444
|
"parameters": [],
|
|
@@ -513,6 +446,10 @@ export class VehicleItemClaimForm {
|
|
|
513
446
|
"Promise": {
|
|
514
447
|
"location": "global",
|
|
515
448
|
"id": "global::Promise"
|
|
449
|
+
},
|
|
450
|
+
"KeyboardEvent": {
|
|
451
|
+
"location": "global",
|
|
452
|
+
"id": "global::KeyboardEvent"
|
|
516
453
|
}
|
|
517
454
|
},
|
|
518
455
|
"return": "Promise<void>"
|
|
@@ -522,17 +459,21 @@ export class VehicleItemClaimForm {
|
|
|
522
459
|
"tags": []
|
|
523
460
|
}
|
|
524
461
|
},
|
|
525
|
-
"
|
|
462
|
+
"close": {
|
|
526
463
|
"complexType": {
|
|
527
|
-
"signature": "() => Promise<
|
|
528
|
-
"parameters": [
|
|
464
|
+
"signature": "(forceClose?: boolean) => Promise<void>",
|
|
465
|
+
"parameters": [{
|
|
466
|
+
"name": "forceClose",
|
|
467
|
+
"type": "boolean",
|
|
468
|
+
"docs": ""
|
|
469
|
+
}],
|
|
529
470
|
"references": {
|
|
530
471
|
"Promise": {
|
|
531
472
|
"location": "global",
|
|
532
473
|
"id": "global::Promise"
|
|
533
474
|
}
|
|
534
475
|
},
|
|
535
|
-
"return": "Promise<
|
|
476
|
+
"return": "Promise<void>"
|
|
536
477
|
},
|
|
537
478
|
"docs": {
|
|
538
479
|
"text": "",
|
|
@@ -565,26 +506,11 @@ export class VehicleItemClaimForm {
|
|
|
565
506
|
static get elementRef() { return "el"; }
|
|
566
507
|
static get watchers() {
|
|
567
508
|
return [{
|
|
568
|
-
"propName": "
|
|
569
|
-
"methodName": "
|
|
509
|
+
"propName": "expandedImage",
|
|
510
|
+
"methodName": "onImageViewerToggles"
|
|
570
511
|
}, {
|
|
571
512
|
"propName": "isLoading",
|
|
572
513
|
"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
514
|
}];
|
|
589
515
|
}
|
|
590
516
|
}
|