adp-web-components 0.1.4 → 0.1.6
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/{add-icon-Bk1zynZV.js → add-icon-DSBO_equ.js} +1 -1
- package/dist/cjs/{app-globals-D2j2HjfX.js → app-globals-B_ikgUD_.js} +1 -1
- package/dist/cjs/{arrow-up-icon-CuxjXmYk.js → arrow-up-icon-BtMHdVU9.js} +1 -1
- package/dist/cjs/{check-icon-gbrTPAKV.js → check-icon-C4YBlzih.js} +1 -1
- package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +18 -89
- package/dist/cjs/demo-form.cjs.entry.js +4 -4
- package/dist/cjs/{empty-table-icon-Ber3bkkX.js → empty-table-icon-8ixSFWVS.js} +1 -1
- package/dist/cjs/fetch-json-Xx5WEmmj.js +16 -0
- package/dist/cjs/flexible-container.cjs.entry.js +2 -2
- package/dist/cjs/form-checkbox_3.cjs.entry.js +5 -5
- package/dist/cjs/form-dialog_4.cjs.entry.js +207 -0
- package/dist/cjs/{form-hook-nx-e-Fqg.js → form-hook-C2tmdNg8.js} +6 -1
- package/dist/cjs/{form-input-label-l-zo2Iq8.js → form-input-label-BNgN7COG.js} +1 -1
- package/dist/cjs/form-input-prefix-RFgXEC1Q.js +18 -0
- package/dist/cjs/{form-dialog_7.cjs.entry.js → form-input_4.cjs.entry.js} +49 -206
- package/dist/cjs/{fetch-json-DMRYFcWH.js → get-language-from-url-DX6LNcV1.js} +0 -11
- package/dist/cjs/{get-local-language-S7SgXpIo.js → get-local-language-CGf0L4_E.js} +124 -2
- package/dist/cjs/{index-CW-dkZVH.js → index-CmK48vN3.js} +8 -0
- package/dist/cjs/information-table.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/loading-spinner.cjs.entry.js +2 -2
- package/dist/cjs/{material-card-DFd5SQVC.js → material-card-CaO7lBGp.js} +1 -1
- package/dist/cjs/part-lookup.cjs.entry.js +8 -7
- package/dist/cjs/{print-icon-CeXvXhF8.js → print-icon-P6vVSQ4C.js} +1 -1
- package/dist/cjs/shift-accordion.cjs.entry.js +2 -2
- package/dist/cjs/shift-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/shift-components.cjs.js +3 -3
- package/dist/cjs/shift-slider.cjs.entry.js +1 -1
- package/dist/cjs/shift-switch.cjs.entry.js +1 -1
- package/dist/cjs/shift-tab-content.cjs.entry.js +2 -2
- package/dist/cjs/shift-tabs_2.cjs.entry.js +14 -14
- package/dist/cjs/test-drive-demo-form.cjs.entry.js +7 -6
- package/dist/cjs/tmc-lookup.cjs.entry.js +126 -0
- package/dist/cjs/type--DKPSEwd.js +30 -0
- package/dist/cjs/{type-Dp9RJnza.js → type-CpkGyb7Q.js} +1 -1
- package/dist/cjs/type-sFGYAaSG.js +36 -0
- package/dist/cjs/vehicle-accessories_6.cjs.entry.js +21 -21
- package/dist/cjs/{vehicle-info-layout-CvgBHkXb.js → vehicle-info-layout-D0rI_Rfz.js} +1 -1
- package/dist/cjs/vehicle-lookup.cjs.entry.js +4 -4
- package/dist/cjs/vehicle-quotation-form.cjs.entry.js +21 -20
- package/dist/cjs/vin-extractor.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/components/flexible-container.css +1 -1
- package/dist/collection/components/components/information-table.css +1 -1
- package/dist/collection/components/components/loading-spinner.css +1 -1
- package/dist/collection/components/components/shift-accordion.css +1 -1
- package/dist/collection/components/components/shift-tab-content.css +1 -1
- package/dist/collection/components/components/shift-tabs.css +1 -1
- package/dist/collection/components/form-elements/form-input.js +53 -13
- package/dist/collection/components/form-elements/form-inputs.css +1 -1
- package/dist/collection/components/form-elements/form-select.js +3 -1
- package/dist/collection/components/forms/demo/themes.css +1 -1
- package/dist/collection/components/forms/test-drive-demo/themes.css +1 -1
- package/dist/collection/components/forms/vehicle-quotation.js +15 -15
- package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.js +27 -191
- package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
- package/dist/collection/components/part-lookup/part-lookup.css +1 -1
- package/dist/collection/components/part-lookup/part-lookup.js +1 -1
- package/dist/collection/components/part-lookup/tmc-lookup.css +1 -0
- package/dist/collection/components/part-lookup/tmc-lookup.js +260 -0
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +2 -2
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +4 -4
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.js +8 -8
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.js +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.js +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-specification.js +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.js +4 -4
- package/dist/collection/components/vin-extractor/vin-extractor.js +1 -1
- package/dist/collection/features/form-hook/form-hook.js +5 -0
- package/dist/collection/global/assets/cloud-alert-icon.js +6 -0
- package/dist/collection/global/assets/info-icon.js +6 -0
- package/dist/collection/global/assets/laptop-minimal-check.js +6 -0
- package/dist/collection/global/assets/octagon-x.js +6 -0
- package/dist/collection/global/lib/get-language-from-url.js +0 -1
- package/dist/collection/global/lib/middleware.js +8 -0
- package/dist/collection/locales/partLookup/distributor/type.js +5 -1
- package/dist/components/dead-stock-lookup.js +1 -1
- package/dist/components/demo-form.js +1 -1
- package/dist/components/distributor-lookup.js +1 -1
- package/dist/components/flexible-container.js +1 -1
- package/dist/components/form-checkbox.js +1 -1
- package/dist/components/form-dialog.js +1 -1
- package/dist/components/form-input.js +1 -1
- package/dist/components/form-phone-number.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-switch.js +1 -1
- package/dist/components/form-text-area.js +1 -1
- package/dist/components/index.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-D18Wp-YQ.js → p-4Hnj5zJw.js} +1 -1
- package/dist/components/p-65KJgvpG.js +5 -0
- package/dist/components/{p-1TYnOnEk.js → p-B9tG6t3A.js} +1 -1
- package/dist/components/{p-DEiKiFjK.js → p-BDDIESLY.js} +1 -1
- package/dist/components/p-BNyKpXY5.js +5 -0
- package/dist/components/{p-B184dpeb.js → p-BfTk_H7B.js} +1 -1
- package/dist/components/{p-BBJE2z_i.js → p-BqdwvrOC.js} +1 -1
- package/dist/components/{p-DvAqba_i.js → p-C7rYhGyU.js} +1 -1
- package/dist/components/{p-B4kafcwn.js → p-C9SvOQaT.js} +1 -1
- package/dist/components/p-CA_XX3RF.js +5 -0
- package/dist/components/{p-BDWgdbgV.js → p-CDFO1mzT.js} +1 -1
- package/dist/components/{p-DgmcZgrl.js → p-CLGo_jgB.js} +1 -1
- package/dist/components/p-CLwXqgat.js +5 -0
- package/dist/components/{p-DWWHkL66.js → p-CPYCzULt.js} +1 -1
- package/dist/components/{p-DJkud4NC.js → p-CQnGszy6.js} +1 -1
- package/dist/components/p-CRKmYVbh.js +5 -0
- package/dist/components/{p-Dd9vSUuk.js → p-CxpC-yuA.js} +1 -1
- package/dist/components/{p-YU4sQmX2.js → p-Cyr3U-cD.js} +1 -1
- package/dist/components/{p-CSxOUlV8.js → p-DFfChm_W.js} +1 -1
- package/dist/components/{p-BvbTOU7i.js → p-DKy9AOmL.js} +1 -1
- package/dist/components/{p-B8Gqtbt1.js → p-DP81UrjW.js} +1 -1
- package/dist/components/{p-D3qXG9mU.js → p-DR_FD2Ax.js} +1 -1
- package/dist/components/{p-C3t0G8Vu.js → p-D_kiwcr8.js} +1 -1
- package/dist/components/p-DfSEYXa-.js +5 -0
- package/dist/components/p-MuYWMA8_.js +5 -0
- package/dist/components/p-Qbd6RJ7M.js +5 -0
- package/dist/components/{p-BwUWF7vZ.js → p-cK3AK6Cx.js} +1 -1
- package/dist/components/p-gngdJAtL.js +5 -0
- package/dist/components/p-hDOB7lrq.js +5 -0
- package/dist/components/{p-BIqxshUK.js → p-pVmhnwLZ.js} +1 -1
- package/dist/components/p-rxB5cBtk.js +5 -0
- package/dist/components/p-viayFvwA.js +5 -0
- package/dist/components/part-lookup.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/test-drive-demo-form.js +1 -1
- package/dist/components/tmc-lookup.d.ts +11 -0
- package/dist/components/tmc-lookup.js +5 -0
- 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-quotation-form.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/{add-icon-2x-eDSCu.js → add-icon-TpYP6ekN.js} +1 -1
- package/dist/esm/{app-globals-FlE3HjBb.js → app-globals-C0dTcw9R.js} +1 -1
- package/dist/esm/{arrow-up-icon-DFtOXHBU.js → arrow-up-icon-BnhXy8_q.js} +1 -1
- package/dist/esm/{check-icon-DVWsrBK6.js → check-icon-CkoSpg2T.js} +1 -1
- package/dist/esm/dead-stock-lookup_3.entry.js +16 -87
- package/dist/esm/demo-form.entry.js +4 -4
- package/dist/esm/{empty-table-icon-DjcAwaVy.js → empty-table-icon-C0LMRK83.js} +1 -1
- package/dist/esm/fetch-json-CLwXqgat.js +14 -0
- package/dist/esm/flexible-container.entry.js +2 -2
- package/dist/esm/form-checkbox_3.entry.js +5 -5
- package/dist/esm/form-dialog_4.entry.js +202 -0
- package/dist/esm/{form-hook-DKF4babX.js → form-hook-V_wAGCBC.js} +6 -1
- package/dist/esm/{form-input-label-D-Gb7ais.js → form-input-label-Vu_oKEHz.js} +1 -1
- package/dist/esm/form-input-prefix-C48SfAOK.js +16 -0
- package/dist/esm/{form-dialog_7.entry.js → form-input_4.entry.js} +48 -202
- package/dist/esm/{fetch-json-CTvgPjUE.js → get-language-from-url-Qbd6RJ7M.js} +1 -11
- package/dist/esm/{get-local-language-B3GxBlUP.js → get-local-language-JJe36s4E.js} +124 -3
- package/dist/esm/{index-BnEa9hGL.js → index-Bf4Ol6Qt.js} +8 -0
- package/dist/esm/information-table.entry.js +2 -2
- package/dist/esm/loader.js +4 -4
- package/dist/esm/loading-spinner.entry.js +2 -2
- package/dist/esm/{material-card-KRdYdM6Z.js → material-card-xVey6i1G.js} +1 -1
- package/dist/esm/part-lookup.entry.js +7 -6
- package/dist/esm/{print-icon-FGeHkj8F.js → print-icon-Dg0IO5IH.js} +1 -1
- package/dist/esm/shift-accordion.entry.js +2 -2
- package/dist/esm/shift-checkbox.entry.js +2 -2
- package/dist/esm/shift-components.js +4 -4
- package/dist/esm/shift-slider.entry.js +1 -1
- package/dist/esm/shift-switch.entry.js +1 -1
- package/dist/esm/shift-tab-content.entry.js +2 -2
- package/dist/esm/shift-tabs_2.entry.js +14 -14
- package/dist/esm/test-drive-demo-form.entry.js +6 -5
- package/dist/esm/tmc-lookup.entry.js +124 -0
- package/dist/esm/{type-DuG2kEj0.js → type-BNGFswT9.js} +1 -1
- package/dist/esm/type-DRJV397b.js +27 -0
- package/dist/esm/type-DoFJYJNi.js +34 -0
- package/dist/esm/vehicle-accessories_6.entry.js +21 -21
- package/dist/esm/{vehicle-info-layout-gB294hFH.js → vehicle-info-layout-BLfwnoQD.js} +1 -1
- package/dist/esm/vehicle-lookup.entry.js +4 -4
- package/dist/esm/vehicle-quotation-form.entry.js +20 -19
- package/dist/esm/vin-extractor.entry.js +2 -2
- package/dist/locales/partLookup/distributor/ar.json +6 -2
- package/dist/locales/partLookup/distributor/en.json +6 -2
- package/dist/locales/partLookup/distributor/ku.json +6 -2
- package/dist/locales/partLookup/distributor/ru.json +6 -2
- package/dist/locales/partLookup/distributor/type.ts +5 -1
- package/dist/shift-components/{p-B5CbaSJc.js → p-1bxwCWnY.js} +1 -1
- package/dist/shift-components/{p-997a7f2f.entry.js → p-1c4645ca.entry.js} +1 -1
- package/dist/shift-components/{p-16903096.entry.js → p-1db32ec8.entry.js} +1 -1
- package/dist/shift-components/p-1e53accd.entry.js +5 -0
- package/dist/shift-components/{p-de18e09d.entry.js → p-2fe3538e.entry.js} +1 -1
- package/dist/shift-components/p-51153487.entry.js +5 -0
- package/dist/shift-components/p-58300764.entry.js +5 -0
- package/dist/shift-components/{p-495b04b5.entry.js → p-66314c83.entry.js} +1 -1
- package/dist/shift-components/{p-BgOCEEEC.js → p-6WVDXyCu.js} +1 -1
- package/dist/shift-components/p-6a2fc4f5.entry.js +5 -0
- package/dist/shift-components/p-6a688fc5.entry.js +5 -0
- package/dist/shift-components/p-7277883c.entry.js +5 -0
- package/dist/shift-components/p-796062ba.entry.js +5 -0
- package/dist/shift-components/{p-e67ec123.entry.js → p-82f7d648.entry.js} +1 -1
- package/dist/shift-components/{p-411c08bb.entry.js → p-996742c4.entry.js} +1 -1
- package/dist/shift-components/p-B4z_KaqI.js +5 -0
- package/dist/shift-components/{p-d0eR5ExX.js → p-BLHH8HBD.js} +1 -1
- package/dist/shift-components/p-BSMLca0I.js +5 -0
- package/dist/shift-components/p-Bf4Ol6Qt.js +6 -0
- package/dist/shift-components/{p-BK6OxaNt.js → p-Bv1XxjKW.js} +1 -1
- package/dist/shift-components/p-CLwXqgat.js +5 -0
- package/dist/shift-components/{p-BVTXPYZh.js → p-CMylBV2b.js} +1 -1
- package/dist/shift-components/p-CjeeeCNe.js +5 -0
- package/dist/shift-components/p-Cq3dhEJd.js +5 -0
- package/dist/shift-components/p-DFSDlqbo.js +5 -0
- package/dist/shift-components/p-DXZTo2xz.js +5 -0
- package/dist/shift-components/{p-DuZTyKgz.js → p-DdRt2YOt.js} +1 -1
- package/dist/shift-components/{p-Bzq1Jrq5.js → p-DtMv8M_j.js} +1 -1
- package/dist/shift-components/p-DuCSwrTa.js +5 -0
- package/dist/shift-components/p-DvXLk0ZA.js +5 -0
- package/dist/shift-components/p-Qbd6RJ7M.js +5 -0
- package/dist/shift-components/{p-184a8654.entry.js → p-a0581024.entry.js} +1 -1
- package/dist/shift-components/{p-f04b6541.entry.js → p-ac8ab114.entry.js} +1 -1
- package/dist/shift-components/p-ca9f63ad.entry.js +5 -0
- package/dist/shift-components/p-dfdde690.entry.js +5 -0
- package/dist/shift-components/p-e490a622.entry.js +5 -0
- package/dist/shift-components/{p-664dc1cc.entry.js → p-ee03eda3.entry.js} +1 -1
- package/dist/shift-components/{p-087fef54.entry.js → p-f406dc14.entry.js} +1 -1
- package/dist/shift-components/{p-2dced6b3.entry.js → p-f4914abc.entry.js} +1 -1
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/form-elements/form-input.d.ts +4 -2
- package/dist/types/components/part-lookup/distributor-lookup.d.ts +5 -23
- package/dist/types/components/part-lookup/tmc-lookup.d.ts +41 -0
- package/dist/types/components.d.ts +45 -20
- package/dist/types/features/form-hook/form-hook.d.ts +3 -3
- package/dist/types/features/form-hook/interface.d.ts +7 -6
- package/dist/types/global/assets/cloud-alert-icon.d.ts +6 -0
- package/dist/types/global/assets/info-icon.d.ts +6 -0
- package/dist/types/global/assets/laptop-minimal-check.d.ts +6 -0
- package/dist/types/global/assets/octagon-x.d.ts +6 -0
- package/dist/types/global/types/components.d.ts +6 -0
- package/dist/types/locales/partLookup/distributor/type.d.ts +10 -2
- package/dist/types/locales/partLookup/wrapper-type.d.ts +10 -2
- package/package.json +1 -1
- package/dist/cjs/form-shadow-input.cjs.entry.js +0 -33
- package/dist/cjs/type-Iwl4doHC.js +0 -54
- package/dist/components/p-8fVyOSYt.js +0 -5
- package/dist/components/p-BMPzn04G.js +0 -5
- package/dist/components/p-C4EeT3-I.js +0 -5
- package/dist/components/p-CKNoBo4v.js +0 -5
- package/dist/components/p-CTvgPjUE.js +0 -5
- package/dist/components/p-CoJMaOp6.js +0 -5
- package/dist/components/p-DCWG_Evk.js +0 -5
- package/dist/components/p-DuM0iiEw.js +0 -5
- package/dist/components/p-jFUgBj3q.js +0 -5
- package/dist/components/p-oJtZMdzH.js +0 -5
- package/dist/esm/form-shadow-input.entry.js +0 -31
- package/dist/esm/type-DRNgzrt3.js +0 -50
- package/dist/shift-components/p-09e4eca9.entry.js +0 -5
- package/dist/shift-components/p-0ceae355.entry.js +0 -5
- package/dist/shift-components/p-29f4a875.entry.js +0 -5
- package/dist/shift-components/p-6a1caea9.entry.js +0 -5
- package/dist/shift-components/p-937a40d4.entry.js +0 -5
- package/dist/shift-components/p-9da1f531.entry.js +0 -5
- package/dist/shift-components/p-BnEa9hGL.js +0 -6
- package/dist/shift-components/p-BoYd9or0.js +0 -5
- package/dist/shift-components/p-BpV7wV1m.js +0 -5
- package/dist/shift-components/p-CTvgPjUE.js +0 -5
- package/dist/shift-components/p-Cv0TXrrV.js +0 -5
- package/dist/shift-components/p-DB9dXavJ.js +0 -5
- package/dist/shift-components/p-DL_G203I.js +0 -5
- package/dist/shift-components/p-c04e6727.entry.js +0 -5
- package/dist/shift-components/p-d6c08311.entry.js +0 -5
- package/dist/shift-components/p-f008498f.entry.js +0 -5
- package/dist/shift-components/p-jtkSIgt7.js +0 -5
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built by ShiftSoftware
|
|
3
|
+
* Copyright (c)
|
|
4
|
+
*/
|
|
5
|
+
import { Host, h } from "@stencil/core";
|
|
6
|
+
import distributerSchema from "../../locales/partLookup/distributor/type";
|
|
7
|
+
import { getLocaleLanguage, getSharedLocal, sharedLocalesSchema } from "../../features/multi-lingual/index";
|
|
8
|
+
import { FormHook } from "../../features/form-hook/index";
|
|
9
|
+
import { number, object, string } from "yup";
|
|
10
|
+
import getLanguageFromUrl from "../../global/lib/get-language-from-url";
|
|
11
|
+
import { CloudAlertIcon } from "../../global/assets/cloud-alert-icon";
|
|
12
|
+
import { InfoIcon } from "../../global/assets/info-icon";
|
|
13
|
+
import { LaptopMinimalCheckIcon } from "../../global/assets/laptop-minimal-check";
|
|
14
|
+
import { OctagonXIcon } from "../../global/assets/octagon-x";
|
|
15
|
+
const tmcOrderTypesFetcher = async ({}) => {
|
|
16
|
+
return [
|
|
17
|
+
{
|
|
18
|
+
value: 'V',
|
|
19
|
+
label: 'V',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
value: 'A',
|
|
23
|
+
label: 'A ',
|
|
24
|
+
},
|
|
25
|
+
];
|
|
26
|
+
};
|
|
27
|
+
const tmcLookupValidation = object({
|
|
28
|
+
orderType: string()
|
|
29
|
+
.meta({ label: 'Order Type', placeholder: 'Order Type' })
|
|
30
|
+
.required('This field is required.'),
|
|
31
|
+
quantity: number()
|
|
32
|
+
.meta({ label: 'quantity', placeholder: 'quantity' })
|
|
33
|
+
.required('This field is required.')
|
|
34
|
+
.typeError('This field is required.')
|
|
35
|
+
.min(1, 'This field is required.'),
|
|
36
|
+
partNumber: string()
|
|
37
|
+
.meta({ label: 'Part Number', placeholder: 'Part Number' })
|
|
38
|
+
.required('This field is required.'),
|
|
39
|
+
});
|
|
40
|
+
const tmcResponses = ['Available', 'NotAvailable', 'PartiallyAvailable', 'RequestFailed'];
|
|
41
|
+
export class TmcLookup {
|
|
42
|
+
constructor() {
|
|
43
|
+
this.locale = Object.assign({ sharedLocales: sharedLocalesSchema.getDefault() }, distributerSchema.getDefault());
|
|
44
|
+
// #endregion
|
|
45
|
+
// #region Form Hook logic
|
|
46
|
+
this.isLoading = false;
|
|
47
|
+
this.formSubmit = async (payload) => {
|
|
48
|
+
try {
|
|
49
|
+
if (this.isDev) {
|
|
50
|
+
await new Promise(r => setTimeout(r, 2000));
|
|
51
|
+
this.tmcResponse = tmcResponses[Math.floor(Math.random() * tmcResponses.length)];
|
|
52
|
+
this.form.reset();
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
let tmcEndpoint = typeof this.tmcLookupEndpoint === 'string' ? JSON.parse(this.tmcLookupEndpoint) : this.tmcLookupEndpoint;
|
|
56
|
+
const defaultHeaders = {
|
|
57
|
+
'Content-Type': 'application/json',
|
|
58
|
+
'Accept': 'application/json',
|
|
59
|
+
};
|
|
60
|
+
const config = {
|
|
61
|
+
method: (tmcEndpoint === null || tmcEndpoint === void 0 ? void 0 : tmcEndpoint.method) || 'POST',
|
|
62
|
+
headers: Object.assign(Object.assign({}, defaultHeaders), ((tmcEndpoint === null || tmcEndpoint === void 0 ? void 0 : tmcEndpoint.headers) || {})),
|
|
63
|
+
body: JSON.stringify(Object.assign(Object.assign({}, payload), ((tmcEndpoint === null || tmcEndpoint === void 0 ? void 0 : tmcEndpoint.body) || {}))),
|
|
64
|
+
};
|
|
65
|
+
const response = await fetch(tmcEndpoint.url, config);
|
|
66
|
+
if (!response.ok) {
|
|
67
|
+
throw new Error(`Request failed with status ${response.status}`);
|
|
68
|
+
}
|
|
69
|
+
const responseType = (await response.json()); // 'Available' | 'NotAvailable' | 'PartiallyAvailable' | 'RequestFailed'
|
|
70
|
+
this.form.reset();
|
|
71
|
+
this.tmcResponse = responseType;
|
|
72
|
+
}
|
|
73
|
+
catch (error) {
|
|
74
|
+
console.error('❌ TMC Lookup request failed:', error);
|
|
75
|
+
this.tmcResponse = 'RequestFailed';
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
this.standAlone = true;
|
|
79
|
+
this.form = new FormHook(this, tmcLookupValidation);
|
|
80
|
+
}
|
|
81
|
+
async componentWillLoad() {
|
|
82
|
+
if (!this.language)
|
|
83
|
+
this.language = getLanguageFromUrl();
|
|
84
|
+
await Promise.all([this.changeLanguage(this.language)]);
|
|
85
|
+
}
|
|
86
|
+
async changeLanguage(newLanguage) {
|
|
87
|
+
const [sharedLocales, locale] = await Promise.all([getSharedLocal(newLanguage), getLocaleLanguage(newLanguage, 'partLookup.distributor', distributerSchema)]);
|
|
88
|
+
this.locale = Object.assign({ sharedLocales }, locale);
|
|
89
|
+
}
|
|
90
|
+
// #endregion
|
|
91
|
+
render() {
|
|
92
|
+
var _a, _b;
|
|
93
|
+
const { formController } = this.form;
|
|
94
|
+
return (h(Host, { key: '97d190057e06498182f8f4bf791bf3b751aa573b' }, h("flexible-container", { key: 'fa9d8af768c94038586eff2f4e73992644b925d9',
|
|
95
|
+
// @ts-ignore
|
|
96
|
+
isOpened: (!!((_a = this === null || this === void 0 ? void 0 : this.partLookup) === null || _a === void 0 ? void 0 : _a.showTMCPartLookup) && !this.closeTmcLookup) || this.standAlone }, h("div", { key: '9c64a84e70680e1c9e81b97e8294961d3b7f529d', class: "w-full max-w-[96vw] mx-auto pt-[32px]" }, h("div", { key: 'f798116cfd8203c8c80b4e96a38b9b1c612f40dd', class: "bg-[#f6f6f6] rounded-md p-[16px]" }, h("div", { key: 'f72368d687a666d3614cea4a1395106aa437a4d8', class: "flex items-center mb-[12px] justify-center px-[16px] font-bold text-[18px]" }, this.locale.TMCLookup), h("form", Object.assign({ key: '8bb6c019855bf12ace54b27542e14913f587e015', class: "relative tmc-form flex flex-col items-center gap-[32px] pt-[8px] pb-[16px]", dir: this.locale.sharedLocales.direction }, formController), h("div", { key: '875f42b761edbdfc4f7d7b03f9d33df15b04e30f', class: "flex gap-2" }, h("form-input", { form: this.form, name: "partNumber", isLoading: this.isLoading, key: this.locale.sharedLocales.lang, staticValue: ((_b = this.partLookup) === null || _b === void 0 ? void 0 : _b.partNumber) || undefined }), h("form-input", { inputProps: { type: 'number', min: 1 }, name: "quantity", isLoading: this.isLoading, key: this.locale.sharedLocales.lang, form: this.form }), h("form-select", { clearable: true, forceOpenUpwards: true, form: this.form, name: "orderType", isLoading: this.isLoading, fetcher: tmcOrderTypesFetcher, key: this.locale.sharedLocales.lang, language: this.locale.sharedLocales.language })), h("form-submit", { key: this.locale.sharedLocales.lang, isLoading: this.isLoading, form: this.form })), h("flexible-container", { key: 'f8e36db5b992405f5d3d3fa6d41cd1d7d299cded', isOpened: !!this.tmcResponse && !this.isLoading }, h("div", { key: 'ddf373363044a9809b76bb5993af4f243f67e520', class: "flex flex-col items-center pt-[22px]" }, this.tmcResponse === 'Available' && h(LaptopMinimalCheckIcon, { key: '80e0e4279553c1f00839e4467571f57073bea0bc', class: "size-[100px] fill-transparent stroke-green-600" }), this.tmcResponse === 'PartiallyAvailable' && h(InfoIcon, { key: '5009d6f5aa85c9e464209e60b0649276c816f7ef', class: "size-[100px] fill-transparent stroke-blue-600" }), this.tmcResponse === 'NotAvailable' && h(OctagonXIcon, { key: '1431ad523a471ed8e4c0512c9d1477ef2d9d2110', class: "size-[100px] fill-transparent stroke-yellow-600" }), !['Available', 'NotAvailable', 'PartiallyAvailable'].includes(this.tmcResponse || '') && h(CloudAlertIcon, { key: '9697498146eb458bd330cc0f3bde561d3aa5f90c', class: "size-[100px] fill-transparent stroke-red-600" }), h("div", { key: 'a5455cacb14e29fab0f0c89766ba494238d5c4c4', class: "text-center text-[20px] font-semibold py-[12px]" }, this.locale[this.tmcResponse] || this.tmcResponse))))))));
|
|
97
|
+
}
|
|
98
|
+
static get is() { return "tmc-lookup"; }
|
|
99
|
+
static get encapsulation() { return "shadow"; }
|
|
100
|
+
static get originalStyleUrls() {
|
|
101
|
+
return {
|
|
102
|
+
"$": ["tmc-lookup.css"]
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
static get styleUrls() {
|
|
106
|
+
return {
|
|
107
|
+
"$": ["tmc-lookup.css"]
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
static get properties() {
|
|
111
|
+
return {
|
|
112
|
+
"language": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"attribute": "language",
|
|
115
|
+
"mutable": true,
|
|
116
|
+
"complexType": {
|
|
117
|
+
"original": "LanguageKeys",
|
|
118
|
+
"resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
|
|
119
|
+
"references": {
|
|
120
|
+
"LanguageKeys": {
|
|
121
|
+
"location": "import",
|
|
122
|
+
"path": "~features/multi-lingual",
|
|
123
|
+
"id": "src/features/multi-lingual/index.ts::LanguageKeys"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"required": false,
|
|
128
|
+
"optional": false,
|
|
129
|
+
"docs": {
|
|
130
|
+
"tags": [],
|
|
131
|
+
"text": ""
|
|
132
|
+
},
|
|
133
|
+
"getter": false,
|
|
134
|
+
"setter": false,
|
|
135
|
+
"reflect": false
|
|
136
|
+
},
|
|
137
|
+
"isDev": {
|
|
138
|
+
"type": "boolean",
|
|
139
|
+
"attribute": "is-dev",
|
|
140
|
+
"mutable": false,
|
|
141
|
+
"complexType": {
|
|
142
|
+
"original": "boolean",
|
|
143
|
+
"resolved": "boolean",
|
|
144
|
+
"references": {}
|
|
145
|
+
},
|
|
146
|
+
"required": false,
|
|
147
|
+
"optional": true,
|
|
148
|
+
"docs": {
|
|
149
|
+
"tags": [],
|
|
150
|
+
"text": ""
|
|
151
|
+
},
|
|
152
|
+
"getter": false,
|
|
153
|
+
"setter": false,
|
|
154
|
+
"reflect": false
|
|
155
|
+
},
|
|
156
|
+
"standAlone": {
|
|
157
|
+
"type": "boolean",
|
|
158
|
+
"attribute": "stand-alone",
|
|
159
|
+
"mutable": false,
|
|
160
|
+
"complexType": {
|
|
161
|
+
"original": "boolean",
|
|
162
|
+
"resolved": "boolean",
|
|
163
|
+
"references": {}
|
|
164
|
+
},
|
|
165
|
+
"required": false,
|
|
166
|
+
"optional": true,
|
|
167
|
+
"docs": {
|
|
168
|
+
"tags": [],
|
|
169
|
+
"text": ""
|
|
170
|
+
},
|
|
171
|
+
"getter": false,
|
|
172
|
+
"setter": false,
|
|
173
|
+
"reflect": false,
|
|
174
|
+
"defaultValue": "true"
|
|
175
|
+
},
|
|
176
|
+
"partLookup": {
|
|
177
|
+
"type": "unknown",
|
|
178
|
+
"attribute": "part-lookup",
|
|
179
|
+
"mutable": false,
|
|
180
|
+
"complexType": {
|
|
181
|
+
"original": "PartLookupDTO",
|
|
182
|
+
"resolved": "{ partNumber: string; partDescription: string; localDescription: string; productGroup: string; pnc: string; binType: string; distributorPurchasePrice?: number; length?: number; width?: number; height?: number; netWeight?: number; grossWeight?: number; cubicMeasure?: number; hsCode: string; origin: string; supersededTo: string[]; stockParts: StockPartDTO[]; prices: PartPriceDTO[]; hsCodes: HSCodeDTO[]; deadStock: DeadStockDTO[]; logId?: string; }",
|
|
183
|
+
"references": {
|
|
184
|
+
"PartLookupDTO": {
|
|
185
|
+
"location": "import",
|
|
186
|
+
"path": "~types/generated/part/part-lookup-dto",
|
|
187
|
+
"id": "src/global/types/generated/part/part-lookup-dto.ts::PartLookupDTO"
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"required": false,
|
|
192
|
+
"optional": true,
|
|
193
|
+
"docs": {
|
|
194
|
+
"tags": [],
|
|
195
|
+
"text": ""
|
|
196
|
+
},
|
|
197
|
+
"getter": false,
|
|
198
|
+
"setter": false
|
|
199
|
+
},
|
|
200
|
+
"closeTmcLookup": {
|
|
201
|
+
"type": "boolean",
|
|
202
|
+
"attribute": "close-tmc-lookup",
|
|
203
|
+
"mutable": false,
|
|
204
|
+
"complexType": {
|
|
205
|
+
"original": "boolean",
|
|
206
|
+
"resolved": "boolean",
|
|
207
|
+
"references": {}
|
|
208
|
+
},
|
|
209
|
+
"required": false,
|
|
210
|
+
"optional": true,
|
|
211
|
+
"docs": {
|
|
212
|
+
"tags": [],
|
|
213
|
+
"text": ""
|
|
214
|
+
},
|
|
215
|
+
"getter": false,
|
|
216
|
+
"setter": false,
|
|
217
|
+
"reflect": false
|
|
218
|
+
},
|
|
219
|
+
"tmcLookupEndpoint": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"attribute": "tmc-lookup-endpoint",
|
|
222
|
+
"mutable": false,
|
|
223
|
+
"complexType": {
|
|
224
|
+
"original": "EndPoint | string",
|
|
225
|
+
"resolved": "string | { url: string; body?: object; headers?: object; method?: string; }",
|
|
226
|
+
"references": {
|
|
227
|
+
"EndPoint": {
|
|
228
|
+
"location": "import",
|
|
229
|
+
"path": "~types/components",
|
|
230
|
+
"id": "src/global/types/components.ts::EndPoint"
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"required": false,
|
|
235
|
+
"optional": false,
|
|
236
|
+
"docs": {
|
|
237
|
+
"tags": [],
|
|
238
|
+
"text": ""
|
|
239
|
+
},
|
|
240
|
+
"getter": false,
|
|
241
|
+
"setter": false,
|
|
242
|
+
"reflect": false
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
static get states() {
|
|
247
|
+
return {
|
|
248
|
+
"locale": {},
|
|
249
|
+
"isLoading": {},
|
|
250
|
+
"tmcResponse": {}
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
static get elementRef() { return "el"; }
|
|
254
|
+
static get watchers() {
|
|
255
|
+
return [{
|
|
256
|
+
"propName": "language",
|
|
257
|
+
"methodName": "changeLanguage"
|
|
258
|
+
}];
|
|
259
|
+
}
|
|
260
|
+
}
|
|
@@ -76,9 +76,9 @@ export class VehicleAccessories {
|
|
|
76
76
|
image: () => (h("div", { class: "size-[100px] flex mx-auto items-center justify-center" }, h("button", { onClick: ({ target }) => openImageViewer.bind(this)(target, accessory === null || accessory === void 0 ? void 0 : accessory.image), 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" }, texts.expand)), h("img", { class: "w-auto h-auto max-w-[100px] max-h-[100px] cursor-pointer shadow-sm rounded-lg transition-all duration-300", src: accessory === null || accessory === void 0 ? void 0 : accessory.image })))),
|
|
77
77
|
}));
|
|
78
78
|
const templateRow = {
|
|
79
|
-
image: () => h("div", { key: '
|
|
79
|
+
image: () => h("div", { key: 'b2b967f85ccace2ae6ffe16897c0d9e87364a335', class: "size-[100px] flex mx-auto items-center justify-center" }, "\u00A0"),
|
|
80
80
|
};
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: 'a44a0914bf1946f887f94cd10497c4a4e012c800' }, h(ImageViewer, { key: '971f153c9abb65aaa80a378e1ee86957ebfd1630', closeImageViewer: () => closeImageViewer.bind(this)(), expandedImage: this.expandedImage }), h(VehicleInfoLayout, { key: 'bdb7e2afcafa46bf4a0aff1014a6a2e5dca3947a', isError: this.isError, isLoading: this.isLoading, coreOnly: this.coreOnly, header: (_c = this.vehicleLookup) === null || _c === void 0 ? void 0 : _c.vin, direction: this.locale.sharedLocales.direction, errorMessage: this.locale.sharedLocales.errors[this.errorMessage] || this.locale.sharedLocales.errors.wildCard }, h("div", { key: '40e3ed3669fb7c698bc1ffb585bea3a8b3c616ca', class: "overflow-x-auto" }, h("information-table", { key: '7e326c2cf3688c57d16b5865fdc11b2040953289', templateRow: templateRow, rows: rows, headers: tableHeaders, isLoading: this.isLoading })))));
|
|
82
82
|
}
|
|
83
83
|
static get is() { return "vehicle-accessories"; }
|
|
84
84
|
static get encapsulation() { return "shadow"; }
|
|
@@ -332,13 +332,13 @@ export class VehicleClaimableItems {
|
|
|
332
332
|
const hideTabs = this.isLoading || this.isError || !this.tabs.length || !serviceItems.length;
|
|
333
333
|
const tabs = this.tabs.map(group => group.name);
|
|
334
334
|
const hasInactiveItems = serviceItems.filter(x => x.status === 'activationRequired').length > 0;
|
|
335
|
-
return (h(Host, { key: '
|
|
335
|
+
return (h(Host, { key: 'a5e022cca6352d79ea154f809bfb508d63eaa245' }, h("vehicle-item-claim-form", { key: '9e3cc2fde1a318e72cfcfd9cbe7b662d6a9eda2a', class: "vehicle-item-claim-form", maximumDocumentFileSizeInMb: this.maximumDocumentFileSizeInMb, uploadMultipleDocuments: this.uploadMultipleDocumentsAtTheForm, locale: Object.assign({ sharedLocales: this.locale.sharedLocales }, this.locale.claimForm) }), h(ClaimableItemPopover, { key: '553ddb7cbe25c47e6802cfc3464254337ddf01e1', locale: this.locale, claim: this.claim.bind(this), item: this.selectedClaimItem, showPopover: this.showClaimableItemPopover, targetLocation: this.popoverTargetLocation }), h(VehicleInfoLayout, { key: '5c68086adfdcc8cd5ae7977a1f9e2db6ee77cc6a', isError: this.isError, coreOnly: this.coreOnly, header: (_a = this.vehicleLookup) === null || _a === void 0 ? void 0 : _a.vin, direction: this.locale.sharedLocales.direction, isLoading: this.isLoading || this.tabAnimationLoading, errorMessage: this.locale.sharedLocales.errors[this.errorMessage] || this.locale.sharedLocales.errors.wildCard }, h("div", { key: '1bb209c75384bb842128168a384bf17b27bd71b1', dir: "ltr", class: cn('relative flex items-center h-[320px] transition-all duration-300', { loading: this.isLoading || this.tabAnimationLoading }) }, h("div", { key: 'bbdb5c0e0f05165cc281b611cad4719fe25d4992', dir: this.locale.sharedLocales.direction, class: "absolute top-0 z-10 w-full pt-[16px]" }, h("div", { key: 'f7e986355862b763d4f207408303ea1fbbdd0689', class: cn('duration-300', { 'translate-y-[-50%] opacity-0': hideTabs }) }, h("shift-tabs", { key: '3499335575b5a76693d63a2a5e7bc6dfb3c83801', activeTabLabel: this.activeTab, changeActiveTab: this.onActiveTabChange, tabs: tabs }))), h("div", { key: 'cb1dba8b51413ca68c165ecc74868a3a965ec574', class: cn('absolute w-[calc(100%-60px)] left-[30px] progress-container-style opacity-0', { 'opacity-100': this.isLoading || this.tabAnimationLoading }) }, h("div", { key: '2926913b4c946ddc8b41a26265b10a782feddd0b', class: "w-full h-full rounded-[4px] overflow-x-hidden absolute left-0 top-0" }, h("div", { key: 'e2fe4fbf64cb8f87f367eb0e187b00862ee3ec9c', class: "absolute opacity-0 bg-[#1a1a1a] w-[150%] h-full" }), h("div", { key: 'a32f62f0baf5cba25f442c00bd8d46d16314f228', class: "absolute h-full bg-[linear-gradient(to_bottom,_#428bca_0%,_#3071a9_100%)] lane-inc" }), h("div", { key: 'a9bb369b38642b5fecdb5261c99f009f10d12177', class: "absolute h-full bg-[linear-gradient(to_bottom,_#428bca_0%,_#3071a9_100%)] lane-dec" }))), h("div", { key: 'd02b0960f73322386260fa63d4b8b9f5bf17bc3d', dir: this.locale.sharedLocales.direction, class: cn('absolute w-[90%] z-10 pointer-events-none border opacity-0 translate-y-[-5px] scale-[70%] text-[#8a6d3b] bg-[#fcf8e3] border-[#faebcc] p-[25px] text-[16px] rounded-[6px] flex items-center justify-between left-1/2 -translate-x-1/2 h-10 bottom-[40px] transition duration-500', {
|
|
336
336
|
'opacity-100 pointer-events-auto translate-y-0 scale-100': !this.isLoading && this.vehicleLookup && !this.tabAnimationLoading && (hasInactiveItems || this.showPrintBox),
|
|
337
|
-
}) }, h("span", { key: '
|
|
337
|
+
}) }, h("span", { key: 'd848f4b536dfad6f0972d65e78827569c877a560', class: "font-semibold" }, this.showPrintBox ? this.locale.successFulClaimMessage : this.locale.warrantyAndServicesNotActivated), h("button", { key: '4590502bd00dbb202a51fda5d86ccad12f799d3a', class: "claim-button", onClick: this.showPrintBox ? this.printLastClaimResponse : this.activateClaimItem }, this.showPrintBox ? h(PrintIcon, { class: "size-[30px] duration-200" }) : h(ActivationIcon, { class: "size-[30px] duration-200" }), h("span", { key: 'f2f81bcac3d935dcc30e73cac7d597298489d021' }, this.showPrintBox ? this.locale.print : this.locale.activateNow))), h("div", { key: '8f5d41d331945dcd399f3bc11018f586978013f8', class: "claimable-items-box px-[30px] min-w-full relative overflow-x-scroll h-full overflow-y-hidden" }, h("div", { key: 'a86dd231c7e792a0708d75f54d0f28ddbc5c7053', class: "flex relative w-fit min-w-full items-center h-full [&_*]:shrink-0 gap-[250px] justify-between" }, h("div", { key: '5e7ebb391682164dc89d8fb361f437ccbfc809cc', class: cn('progress-container-style progress-lane absolute overflow-hidden w-[calc(100%-0px)] translate-y-0 opacity-100', {
|
|
338
338
|
'opacity-0': this.isLoading || this.tabAnimationLoading || isNoServicesAvailable || !this.vehicleLookup,
|
|
339
|
-
}) }, h("div", { key: '
|
|
339
|
+
}) }, h("div", { key: '08d91c93a97dc159b06795878357148ac53592e1', part: "progress-bar", class: "progress-bar transition-all w-1/2 h-full bg-[linear-gradient(to_bottom,_#428bca_0%,_#3071a9_100%)]" })), h("div", { key: 'f7e0366cd9767b86f378ff98cc9f452ea8aa68a6', class: "ml-[-125px]" }), serviceItems.map((item, idx) => (h(ClaimableItem, { item: item, locale: this.locale, setClaimableItemPopover: this.setClaimableItemPopover, addStatusClass: item.status !== 'pending' || serviceItems.findIndex(i => i.status === 'pending') === idx }))), h("div", { key: '2446dc724361b766305428f7333d8981565648d4', class: "ml-[-125px]" })), h("div", { key: '13922a351ab19fb443e3ba40efda74d697b3bb44', dir: this.locale.sharedLocales.direction, class: cn('absolute top-0 left-0 pointer-events-none size-full box-content flex flex-col justify-center opacity-0 transition duration-500 items-center text-slate-700', {
|
|
340
340
|
'opacity-100 scale-100': isNoServicesAvailable,
|
|
341
|
-
}) }, h(EmptyTableIcon, { key: '
|
|
341
|
+
}) }, h(EmptyTableIcon, { key: '4aea5434b271d11ec74483ed3ea2de298a2c1b34', class: "size-[90px]" }), h("div", { key: 'b19fb1574af099058acbeab24e855563bd9d0ff1', class: "text-[22px]" }, this.locale.sharedLocales.errors.noServiceAvailable)))))));
|
|
342
342
|
}
|
|
343
343
|
static get is() { return "vehicle-claimable-items"; }
|
|
344
344
|
static get encapsulation() { return "shadow"; }
|
|
@@ -227,30 +227,30 @@ export class VehicleItemClaimForm {
|
|
|
227
227
|
const isQRScannerForm = ((_a = this.item) === null || _a === void 0 ? void 0 : _a.claimingMethodEnum) === 'ClaimByScanningQRCode';
|
|
228
228
|
const disableInputs = !this.getIsFormConfirmed() || this.isLoading;
|
|
229
229
|
const isFormValid = this.getIsFormValid();
|
|
230
|
-
return (h(Host, { key: '
|
|
230
|
+
return (h(Host, { key: '8a191d491584a7e644325151225904a9b40ed264' }, h(ImageViewer, { key: '334ae04e2e1ad6bb64b38a5cd5d76743ba0bb84c', style: { 'z-index': '99999999' }, expandedImage: this.expandedImage, imageStyle: { 'z-index': '999999999' }, closeImageViewer: () => closeImageViewer.bind(this)() }), h("div", { key: 'd754dd677d4b4696cf683dd4d7844a538d43e379', 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
231
|
'opacity-1 scale-100 pointer-events-auto': this.isOpened,
|
|
232
|
-
}) }, h("button", { key: '
|
|
232
|
+
}) }, h("button", { key: '0f298412840a6e2dad9ed9e921e1d8c51648d430', 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: '6c6e1df22684859542aff85033ebc9d478c479f5', class: "stroke-[1.5px]" })), h("div", { key: 'bb1d15758ed0d9b5dbf89ba220266ce8d98ba752', class: "flex flex-col h-full gap-[32px] justify-between" }, h("div", { key: '85c44a4593094896984136aaa7af39a6f920c241', class: "flex mt-[50px] flex-col shrink-0 gap-[20px]" }, h("div", { key: 'b181799bd97301bd1f12eaaedf19467ec1f57cec', class: "border overflow-hidden rounded-[6px] border-[#dcdcdc] box-border" }, h("div", { key: '0b7bf9650d330829d40aaeb2e74a28b4eceac346', 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: '7d203ca94c3eaec1d4d9c4197d8036be0ef8cdb5', class: "outline-button absolute end-[16px]", onClick: () => window.open(this.item.printUrl, '_blank').focus() }, h(PrintIcon, { key: '47c645359b00f6d63deee1c32b688366d57e7423', class: "size-[30px] duration-200" }), h("span", { key: '8f79c70c334d87244d76af6da43e9a343e3ab579' }, this.locale.print)))), h("div", { key: '73691b3f8e3ec08f8196b58addaa3baaa629acd9', class: "overflow-hidden flex p-[22px] [&_div]:min-w-[200px] gap-[32px] flex-wrap justify-center" }, h(MaterialCard, { key: 'a8f9fcbd8458d46f2cae1abd041919b06d56988c', title: this.locale.serviceType }, (_c = this.item) === null || _c === void 0 ? void 0 : _c.type), h(MaterialCard, { key: '3b11ad53c02008b0506aabe415c06e1261ae72ba', title: this.locale.name }, (_d = this.item) === null || _d === void 0 ? void 0 : _d.name), h(MaterialCard, { key: 'c4ea633d419e879bbcc4270f48c6d1abcd81bd61', title: this.locale.activationDate }, (_e = this.item) === null || _e === void 0 ? void 0 : _e.activatedAt), h(MaterialCard, { key: 'b548eb3bacf9a4177ff2e5981bf9fa1864cdd4af', title: this.locale.expireDate }, (_f = this.item) === null || _f === void 0 ? void 0 : _f.expiresAt), h(MaterialCard, { key: '214bc9eeb49212ea236d325de276acb1c760f994', 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
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
234
|
'hover:bg-[#fff8e1]': !this.isLoading,
|
|
235
235
|
'opacity-50 pointer-events-none': this.isLoading,
|
|
236
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: '
|
|
237
|
+
warning.confirmationText))))))), h("div", { key: 'f1fd7be6c8072aee1042852e88fe053555c6fcb3', 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
238
|
'border-[#f4f4f4]': this.isLoading,
|
|
239
|
-
}) }, h("div", { key: '
|
|
239
|
+
}) }, h("div", { key: '8c4341d012acfb790c42bca7abc6cc92ba51f07d', class: "relative w-[200px] h-[140px]" }, h("div", { key: '6f166a735b4888579f548f7d935d8ace1b89ed0f', 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: 'fede8e205afc39bbbeeb25083a25d519a372d69c', class: "size-[100px] fill-[#3071a9] text-[#3071a9]" }), h("div", { key: '3e99de07ed0c186fcaea0ddafc03514cc5717080', class: "text-[16px] text-[#3071a9] font-semibold" }, isQRScannerForm ? this.locale.scanTheVoucher : this.locale.enterServiceInfo)), h("div", { key: '65b6ee94528e4315281ccc5389c95baf59007cdf', 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: 'c47d0ecd49b2d0ce23a6f8f5e204ff2b6d7213fd', class: cn('relative size-[100px] flex items-center justify-center') }, h("div", { key: '4b35a867f7d5260035010df5e871a880727ada97', class: "lds-ripple" }), h("div", { key: '2300b173717534203e9ef79096078c7723531bc7', 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: {
|
|
240
240
|
width: `${this.uploadProgress}%`,
|
|
241
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)}))`,
|
|
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: '
|
|
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: 'f2d37821e682757ad9ed5b44a6a2a100c1c65f32', class: "flex mb-[16px] w-full flex-col" }, h("input", { key: '0008d074d3bb436d9aebf4fd7334c33c66e37ada', 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: 'e962c896329058307797ecac011a6940f467e558', 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: '25752b55378684972f9de5e47e6568760f9d88db', 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: '21c6c8a3ae263db4906f674ec1c6d56dc077f7eb', class: cn('ps-[4px] text-red-500', { 'text-white': disableInputs }) }, "*"))), h("button", { key: 'b2aec05abcbf1f1d6289b4654ad8a3e2efa69804', 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
243
|
'pointer-events-none cursor-default': !((_o = this.inputs) === null || _o === void 0 ? void 0 : _o.documents.length),
|
|
244
|
-
}) }, h(AttachIcon, { key: '
|
|
244
|
+
}) }, h(AttachIcon, { key: '01eb004ef68f43ae7d78fc5a17a8cc8ce468864a', 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: '6fa59fec6609c834ea0f96b7c5d6178d3aaafcee', 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: '67d748b80d4b70a42f2e2196792ae71563642f82', isOpened: !!((_s = (_r = this.errors) === null || _r === void 0 ? void 0 : _r.documents) === null || _s === void 0 ? void 0 : _s.show) }, h("div", { key: '7039ca9b858e67192b649135356110705204f9c0', 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
245
|
? this.locale.documentLimitError + `${this.maximumDocumentFileSizeInMb}Mb`
|
|
246
|
-
: this.locale.documentRequiredError || this.locale.sharedLocales.errors.wildCard)), h("flexible-container", { key: '
|
|
246
|
+
: this.locale.documentRequiredError || this.locale.sharedLocales.errors.wildCard)), h("flexible-container", { key: '1f9906678bf1800ae16cb7e2c03467851722255a', 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: '7ce390fc63ccb1b5d5c735fc10e5dc0442b2bec9', 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
247
|
var _a;
|
|
248
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
249
|
'pointer-events-none bg-[#d5d5d5] cursor-default': disableInputs,
|
|
250
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
251
|
'pointer-events-none cursor-default': !((_a = this.inputs) === null || _a === void 0 ? void 0 : _a.documents.length),
|
|
252
252
|
}) }, h(AddIcon, { class: "size-[24px] rotate-[45deg]" }))));
|
|
253
|
-
}))))), isQRScannerForm && (h("div", { key: '
|
|
253
|
+
}))))), isQRScannerForm && (h("div", { key: '3e3814d233fe3af3db3b7338f6798dc122d74672', class: "overflow-hidden w-full" }, h("input", { key: '8c42ce7870080ca45b12eab9d73ad2c57ecb1cfd', 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: '981f1d450709cc4498853d26a41f6700f6c50f7c', class: "flex w-full overflow-hidden gap-[75px]" }, h("input", { key: 'f57542ca541b3678e081afc9ba967988b1dc635b', 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: 'a8e63bbba951f51793dd8eeaea20ab532018f32d', 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: '0291b8f10f572826d677f538b3139c4587f95382', 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: 'f91b6e31c99ac7b69ce3f35188bcc1488b09c187', class: "size-[30px] [&_circle]:fill-white stroke-white text-red-300" }), h("span", { key: '4423c32f089aea7637fe6f11f45d4cc6f033217c' }, this.locale.claim))), h("div", { key: 'a2aab198b329381bedb1d39b3ed5b368a1fce212', class: "shrink-0 h-[16px]" })))));
|
|
254
254
|
}
|
|
255
255
|
static get is() { return "vehicle-item-claim-form"; }
|
|
256
256
|
static get encapsulation() { return "shadow"; }
|
|
@@ -73,7 +73,7 @@ export class VehiclePaintThickness {
|
|
|
73
73
|
label: texts.right,
|
|
74
74
|
},
|
|
75
75
|
];
|
|
76
|
-
return (h(Host, { key: '
|
|
76
|
+
return (h(Host, { key: '8a5a759613b28960919f253b4a779e782671ff27' }, h(ImageViewer, { key: 'a445f7ed897f4583b01e677c7edfd60d50dd8ec9', closeImageViewer: () => closeImageViewer.bind(this)(), expandedImage: this.expandedImage }), h(VehicleInfoLayout, { key: '286716bfee9670c9bd2a1b1fa8f36c25c80601eb', isError: this.isError, coreOnly: this.coreOnly, isLoading: this.isLoading, header: (_a = this.vehicleLookup) === null || _a === void 0 ? void 0 : _a.vin, direction: this.locale.sharedLocales.direction, errorMessage: this.locale.sharedLocales.errors[this.errorMessage] || this.locale.sharedLocales.errors.wildCard }, h("div", { key: 'b359ce536cf473320fc554bb6549acf0f1a8d8cb', class: "overflow-x-auto" }, h("information-table", { key: '93aaf1994d0f8930455de2ff2f04f34a86db46dd', rows: parts, headers: tableHeaders, isLoading: this.isLoading })), h("flexible-container", { key: 'f40440e125397466e3fe2001c35ee5bb0da00c08', isOpened: !this.isLoading && !!(imageGroups === null || imageGroups === void 0 ? void 0 : imageGroups.length) }, h("div", { key: 'bbe9283d376138d09ffc928be1aeb1527c23f70d', class: "py-[16px] gap-[16px] justify-center flex flex-wrap px-[24px] w-full" }, imageGroups === null || imageGroups === void 0 ? void 0 : imageGroups.map((imageGroup, index) => (h("div", { class: "shrink-0 rounded-lg shadow-sm border overflow-hidden flex flex-col", key: (imageGroup === null || imageGroup === void 0 ? void 0 : imageGroup.name) + index }, h("h1", { class: "text-center border-b bg-slate-50 font-semibold p-[6px]" }, h("span", { class: "shift-skeleton" }, imageGroup === null || imageGroup === void 0 ? void 0 : imageGroup.name)), h("div", { class: "flex max-w-full flex-wrap p-[12px] gap-[8px]" }, imageGroup === null || imageGroup === void 0 ? void 0 : imageGroup.images.map((image, idx) => (h("div", { class: cn('flex shift-skeleton gap-[8px]', { loading: !image }), key: image + idx }, h("button", { onClick: ({ target }) => openImageViewer.bind(this)(target, image), 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" }, texts.expand)), h("img", { src: image, class: "h-[150px] cursor-pointer shadow-sm rounded-lg w-[84px] transition-all duration-300" }))))))))))))));
|
|
77
77
|
}
|
|
78
78
|
static get is() { return "vehicle-paint-thickness"; }
|
|
79
79
|
static get encapsulation() { return "shadow"; }
|
|
@@ -78,7 +78,7 @@ export class VehicleServiceHistory {
|
|
|
78
78
|
label: this.locale.odometer,
|
|
79
79
|
},
|
|
80
80
|
];
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: 'e5c7bd5a44773a3a72eb3efec1cc20351ae76b34' }, h(VehicleInfoLayout, { key: '2a811cd90be7eed2934e2d97030f1bf7e1f7b2d7', isError: this.isError, coreOnly: this.coreOnly, isLoading: this.isLoading, header: (_a = this.vehicleLookup) === null || _a === void 0 ? void 0 : _a.vin, direction: this.locale.sharedLocales.direction, errorMessage: this.locale.sharedLocales.errors[this.errorMessage] || this.locale.sharedLocales.errors.wildCard }, h("div", { key: '744d47eba2b26c891a659e41189fae1c7178a17f', class: "overflow-x-auto" }, h("information-table", { key: '735784965946720830ac2d7007e011a1e43c317c', rows: ((_b = this.vehicleLookup) === null || _b === void 0 ? void 0 : _b.serviceHistory) || [], headers: tableHeaders, isLoading: this.isLoading })))));
|
|
82
82
|
}
|
|
83
83
|
static get is() { return "vehicle-service-history"; }
|
|
84
84
|
static get encapsulation() { return "shadow"; }
|
|
@@ -61,7 +61,7 @@ export class VehicleSpecification {
|
|
|
61
61
|
catch (error) {
|
|
62
62
|
productionDate = null;
|
|
63
63
|
}
|
|
64
|
-
return (h(Host, { key: '
|
|
64
|
+
return (h(Host, { key: 'e2ef2d7c36f50fb80bf1c953410d5b454b8baba9' }, h(VehicleInfoLayout, { key: 'f0533a833f6310a93599fdd673ec48d38ef36839', isError: this.isError, coreOnly: this.coreOnly, isLoading: this.isLoading, header: (_e = this.vehicleLookup) === null || _e === void 0 ? void 0 : _e.vin, direction: this.locale.sharedLocales.direction, errorMessage: this.locale.sharedLocales.errors[this.errorMessage] || this.locale.sharedLocales.errors.wildCard }, h("flexible-container", { key: '4c63874fcf89b144e8370c3537df8a61075ec6a3' }, h("div", { key: '746eda09de4bf8c4f755ade0c32bbbdc19271c4b', class: "flex p-[16px] [&>div]:grow overflow-auto gap-[16px] items-stretch justify-center md:justify-between flex-wrap" }, h(MaterialCard, { key: '191c8c8fd4bef29cb11c2963893459b0deb3a33b', class: "grow", title: texts === null || texts === void 0 ? void 0 : texts.model, minWidth: "300px" }, h(MaterialCardChildren, { key: 'd55c2bf0a933f3d6aabf5221785b746c4c7e5463', class: "text-center", hidden: !((_h = (_g = (_f = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _f === void 0 ? void 0 : _f.vehicleVariantInfo) === null || _g === void 0 ? void 0 : _g.modelCode) === null || _h === void 0 ? void 0 : _h.trim()) && !((_l = (_k = (_j = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _j === void 0 ? void 0 : _j.vehicleSpecification) === null || _k === void 0 ? void 0 : _k.modelDescription) === null || _l === void 0 ? void 0 : _l.trim()) }, ((_p = (_o = (_m = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _m === void 0 ? void 0 : _m.vehicleVariantInfo) === null || _o === void 0 ? void 0 : _o.modelCode) === null || _p === void 0 ? void 0 : _p.trim()) || '', " ", h("br", { key: '5831fb0ba4ebd4860b79cdc18d38a94c5c1336ce', class: "my-2" }), ((_s = (_r = (_q = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _q === void 0 ? void 0 : _q.vehicleSpecification) === null || _r === void 0 ? void 0 : _r.modelDescription) === null || _s === void 0 ? void 0 : _s.trim()) || '')), h(MaterialCard, { key: '4bf4bd3e78a4fa82ab77033b804356fbd417d267', class: "grow", title: texts === null || texts === void 0 ? void 0 : texts.variant, minWidth: "300px" }, h(MaterialCardChildren, { key: 'b98e71165c87b1a8ba4b89d8211e29188ebab4b9', class: "text-center", hidden: !((_v = (_u = (_t = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _t === void 0 ? void 0 : _t.identifiers) === null || _u === void 0 ? void 0 : _u.variant) === null || _v === void 0 ? void 0 : _v.trim()) && !((_y = (_x = (_w = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _w === void 0 ? void 0 : _w.vehicleSpecification) === null || _x === void 0 ? void 0 : _x.variantDescription) === null || _y === void 0 ? void 0 : _y.trim()) }, ((_1 = (_0 = (_z = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _z === void 0 ? void 0 : _z.identifiers) === null || _0 === void 0 ? void 0 : _0.variant) === null || _1 === void 0 ? void 0 : _1.trim()) || '', " ", h("br", { key: '3c602164c00f3ca02cddf4b8b4e851827086feb1' }), ((_4 = (_3 = (_2 = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _2 === void 0 ? void 0 : _2.vehicleSpecification) === null || _3 === void 0 ? void 0 : _3.variantDescription) === null || _4 === void 0 ? void 0 : _4.trim()) || '')), h(MaterialCard, { key: 'ed858ec9d4308ab2b4699d3e13c176d3dd226875', desc: ((_7 = (_6 = (_5 = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _5 === void 0 ? void 0 : _5.identifiers) === null || _6 === void 0 ? void 0 : _6.katashiki) === null || _7 === void 0 ? void 0 : _7.trim()) || '', title: texts === null || texts === void 0 ? void 0 : texts.katashiki, minWidth: "250px" }), h(MaterialCard, { key: '30cafe2d9569f2e65ba5ef2c09fdb839e919850c', desc: ((_11 = (_10 = (_9 = (_8 = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _8 === void 0 ? void 0 : _8.vehicleVariantInfo) === null || _9 === void 0 ? void 0 : _9.modelYear) === null || _10 === void 0 ? void 0 : _10.toString()) === null || _11 === void 0 ? void 0 : _11.trim()) || '', title: texts === null || texts === void 0 ? void 0 : texts.modelYear, minWidth: "250px" }), h(MaterialCard, { key: '3a573cef0957d783549a5b412b69ba95e848dc03', desc: !!productionDate ? productionDate : '', title: texts === null || texts === void 0 ? void 0 : texts.productionDate, minWidth: "250px" }), h(MaterialCard, { key: '7d0edae4179593984a7245c80c7bc9b99744040a', desc: ((_14 = (_13 = (_12 = this === null || this === void 0 ? void 0 : this.vehicleLookup) === null || _12 === void 0 ? void 0 : _12.vehicleVariantInfo) === null || _13 === void 0 ? void 0 : _13.sfx) === null || _14 === void 0 ? void 0 : _14.trim()) || '', title: texts === null || texts === void 0 ? void 0 : texts.sfx, minWidth: "250px" }))))));
|
|
65
65
|
}
|
|
66
66
|
static get is() { return "vehicle-specification"; }
|
|
67
67
|
static get encapsulation() { return "shadow"; }
|