adp-web-components 0.0.26 → 0.0.27
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/dead-stock-lookup.cjs.entry.js +2 -2
- package/dist/cjs/distributor-lookup.cjs.entry.js +9 -7
- package/dist/cjs/dynamic-claim_6.cjs.entry.js +12 -12
- package/dist/cjs/dynamic-redeem.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/manufacturer-lookup.cjs.entry.js +10 -8
- package/dist/cjs/shift-components.cjs.js +1 -1
- package/dist/cjs/vehicle-lookup.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +7 -7
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +2 -2
- package/dist/collection/components/part-lookup/distributor-lookup.js +45 -7
- package/dist/collection/components/part-lookup/manufacturer-lookup.js +46 -8
- package/dist/collection/components/{dynamic-claim → vehicle-lookup}/dynamic-claim.js +6 -6
- package/dist/collection/components/{dynamic-redeem → vehicle-lookup}/dynamic-redeem.js +3 -3
- package/dist/collection/components/{paint-thickness → vehicle-lookup}/paint-thickness.js +4 -4
- package/dist/collection/components/{service-history → vehicle-lookup}/service-history.js +2 -2
- package/dist/collection/components/{vehicle-accessories → vehicle-lookup}/vehicle-accessories.js +4 -4
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +1 -1
- package/dist/collection/components/{vehicle-specification → vehicle-lookup}/vehicle-specification.js +2 -2
- package/dist/collection/components/{warranty-details → vehicle-lookup}/warranty-details.js +1 -1
- package/dist/components/dead-stock-lookup.js +1 -1
- package/dist/components/distributor-lookup.js +1 -1
- package/dist/components/dynamic-claim.js +1 -1
- package/dist/components/dynamic-redeem.js +1 -1
- package/dist/components/manufacturer-lookup.js +1 -1
- package/dist/components/{p-325b6857.js → p-2741b156.js} +1 -1
- package/dist/components/{p-f1ffc23d.js → p-2ea90585.js} +1 -1
- package/dist/components/{p-84427fef.js → p-4bf4435e.js} +1 -1
- package/dist/components/{p-da533bd7.js → p-6ffb4e5d.js} +1 -1
- package/dist/components/{p-044025a6.js → p-9245caae.js} +1 -1
- package/dist/components/{p-442f4eff.js → p-d4718f3b.js} +1 -1
- package/dist/components/{p-05871c28.js → p-d999f3c4.js} +1 -1
- package/dist/components/paint-thickness.js +1 -1
- package/dist/components/service-history.js +1 -1
- package/dist/components/vehicle-accessories.js +1 -1
- package/dist/components/vehicle-lookup.js +1 -1
- package/dist/components/vehicle-specification.js +1 -1
- package/dist/components/warranty-details.js +1 -1
- package/dist/esm/dead-stock-lookup.entry.js +2 -2
- package/dist/esm/distributor-lookup.entry.js +9 -7
- package/dist/esm/dynamic-claim_6.entry.js +12 -12
- package/dist/esm/dynamic-redeem.entry.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/manufacturer-lookup.entry.js +10 -8
- package/dist/esm/shift-components.js +1 -1
- package/dist/esm/vehicle-lookup.entry.js +1 -1
- package/dist/shift-components/{p-2f7785d3.entry.js → p-1719e164.entry.js} +1 -1
- package/dist/shift-components/{p-73fa9b86.entry.js → p-26b9d31a.entry.js} +1 -1
- package/dist/shift-components/p-33e4c335.entry.js +5 -0
- package/dist/shift-components/{p-2bb4415e.entry.js → p-d03dade1.entry.js} +1 -1
- package/dist/shift-components/{p-48efd004.entry.js → p-d1ffe0eb.entry.js} +1 -1
- package/dist/shift-components/p-f6764fb5.entry.js +5 -0
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/part-lookup/distributor-lookup.d.ts +2 -0
- package/dist/types/components/part-lookup/manufacturer-lookup.d.ts +2 -0
- package/dist/types/components/{dynamic-claim → vehicle-lookup}/dynamic-claim.d.ts +1 -1
- package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +6 -6
- package/dist/types/components.d.ts +8 -0
- package/dist/types/global/types/part-information.d.ts +0 -3
- package/package.json +1 -1
- package/dist/shift-components/p-2872727e.entry.js +0 -5
- package/dist/shift-components/p-8065a7e3.entry.js +0 -5
- /package/dist/cjs/{Loading-20e4ef35.js → Loading-14fca13b.js} +0 -0
- /package/dist/collection/components/{parts → components}/Loading.js +0 -0
- /package/dist/collection/components/{dynamic-claim/icons → vehicle-lookup/assets}/cancelled.svg +0 -0
- /package/dist/collection/components/{warranty-details → vehicle-lookup}/assets/check.svg +0 -0
- /package/dist/collection/components/{dynamic-claim/icons → vehicle-lookup/assets}/expired.svg +0 -0
- /package/dist/collection/components/{warranty-details → vehicle-lookup}/assets/loader.svg +0 -0
- /package/dist/collection/components/{dynamic-claim/icons → vehicle-lookup/assets}/pending.svg +0 -0
- /package/dist/collection/components/{dynamic-claim/icons → vehicle-lookup/assets}/processed.svg +0 -0
- /package/dist/collection/components/{warranty-details → vehicle-lookup}/assets/x-mark.svg +0 -0
- /package/dist/collection/components/{warranty-details → vehicle-lookup}/components/CardsContainer.js +0 -0
- /package/dist/collection/components/{warranty-details → vehicle-lookup}/components/Loading.js +0 -0
- /package/dist/collection/components/{warranty-details → vehicle-lookup}/components/SSCTable.js +0 -0
- /package/dist/collection/components/{warranty-details → vehicle-lookup}/components/StatusCard.js +0 -0
- /package/dist/collection/components/{dynamic-claim → vehicle-lookup}/dynamic-claim.css +0 -0
- /package/dist/collection/components/{dynamic-redeem → vehicle-lookup}/dynamic-redeem.css +0 -0
- /package/dist/collection/components/{paint-thickness → vehicle-lookup}/paint-thickness.css +0 -0
- /package/dist/collection/components/{service-history → vehicle-lookup}/service-history.css +0 -0
- /package/dist/collection/components/{vehicle-accessories → vehicle-lookup}/vehicle-accessories.css +0 -0
- /package/dist/collection/components/{vehicle-specification → vehicle-lookup}/vehicle-specification.css +0 -0
- /package/dist/collection/components/{warranty-details → vehicle-lookup}/warranty-details.css +0 -0
- /package/dist/collection/templates/{parts-lookup → part-lookup}/mock-data.js +0 -0
- /package/dist/collection/templates/{mock-data.js → vehicle-lookup/mock-data.js} +0 -0
- /package/dist/collection/templates/{vehicle-lookup.js → vehicle-lookup/vehicle-lookup.js} +0 -0
- /package/dist/collection/templates/{warranty-mock-data.js → vehicle-lookup/warranty-mock-data.js} +0 -0
- /package/dist/components/{p-8385e385.js → p-c62be897.js} +0 -0
- /package/dist/esm/{Loading-d050617c.js → Loading-2b8a745c.js} +0 -0
- /package/dist/shift-components/{p-65939a2f.js → p-e35e44a4.js} +0 -0
- /package/dist/types/components/{parts → components}/Loading.d.ts +0 -0
- /package/dist/types/components/{warranty-details → vehicle-lookup}/components/CardsContainer.d.ts +0 -0
- /package/dist/types/components/{warranty-details → vehicle-lookup}/components/Loading.d.ts +0 -0
- /package/dist/types/components/{warranty-details → vehicle-lookup}/components/SSCTable.d.ts +0 -0
- /package/dist/types/components/{warranty-details → vehicle-lookup}/components/StatusCard.d.ts +0 -0
- /package/dist/types/components/{dynamic-redeem → vehicle-lookup}/dynamic-redeem.d.ts +0 -0
- /package/dist/types/components/{paint-thickness → vehicle-lookup}/paint-thickness.d.ts +0 -0
- /package/dist/types/components/{service-history → vehicle-lookup}/service-history.d.ts +0 -0
- /package/dist/types/components/{vehicle-accessories → vehicle-lookup}/vehicle-accessories.d.ts +0 -0
- /package/dist/types/components/{vehicle-specification → vehicle-lookup}/vehicle-specification.d.ts +0 -0
- /package/dist/types/components/{warranty-details → vehicle-lookup}/warranty-details.d.ts +0 -0
|
@@ -23,7 +23,7 @@ var patchBrowser = () => {
|
|
|
23
23
|
|
|
24
24
|
patchBrowser().then(async (options) => {
|
|
25
25
|
await appGlobals.globalScripts();
|
|
26
|
-
return index.bootstrapLazy([["vehicle-lookup.cjs",[[4,"vehicle-lookup",{"activeElement":[1,"active-element"],"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChanged":[16],"blazorOnLoadingStateChange":[1,"blazor-on-loading-state-change"],"errorStateListener":[16],"blazorErrorStateListener":[1,"blazor-error-state-listener"],"wrapperErrorState":[32],"blazorRef":[32],"setBlazorRef":[64],"fetchVin":[64],"getPageContext":[64]},null,{"wrapperErrorState":["errorListener"],"onLoadingStateChanged":["handleLoadingListenerPropChange"],"blazorOnLoadingStateChange":["handleBlazorLoadingRefChange"]}]]],["general-inquiry-form.cjs",[[1,"general-inquiry-form",{"isLoading":[32],"renderControl":[32]}]]],["dead-stock-lookup.cjs",[[1,"dead-stock-lookup",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalPartNumber":[32],"errorMessage":[32],"partInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}]]],["distributor-lookup.cjs",[[1,"distributor-lookup",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalPartNumber":[32],"errorMessage":[32],"partInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}]]],["manufacturer-lookup.cjs",[[1,"manufacturer-lookup",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"headerTitle":[1,"header-title"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalPartNumber":[32],"errorMessage":[32],"partInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}]]],["form-input.cjs",[[0,"form-input",{"name":[1],"label":[1],"class":[1],"isError":[4,"is-error"],"disabled":[4],"labelClass":[1,"label-class"],"errorClass":[1,"error-class"],"errorMessage":[1,"error-message"],"containerClass":[1,"container-class"]}]]],["dynamic-redeem.cjs",[[1,"dynamic-redeem",{"vin":[1],"item":[16],"canceledItems":[16],"unInvoicedByBrokerName":[1,"un-invoiced-by-broker-name"],"handleScanner":[16],"handleQrChanges":[16],"loadingStateChange":[16],"confirmServiceCancellation":[32],"confirmUnInvoicedTBPVehicles":[32],"internalVin":[32],"isOpened":[32],"internalItem":[32],"internalCanceledItem":[32],"isLoading":[32],"quite":[64],"getQrValue":[64]},null,{"isLoading":["onIsLoadingChange"],"canceledItems":["changeInternalCanceledItem"],"unInvoicedByBrokerName":["changeConfirmUnInvoicedTBPVehicles"],"vin":["changeInternalVin"],"item":["changeInternalItem"]}]]],["dynamic-claim_6.cjs",[[1,"dynamic-claim",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"isIdle":[32],"popupClasses":[32],"externalVin":[32],"activePopupIndex":[32],"vehicleInformation":[32],"errorMessage":[32],"isLoading":[32],"setMockData":[64],"setData":[64],"fetchData":[64],"completeClaim":[64]},null,{"isLoading":["onLoadingChange"],"vehicleInformation":["resetProgressBar"],"popupClasses":["windowScrollListener"]}],[1,"paint-thickness",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalVin":[32],"errorMessage":[32],"expandedImage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}],[1,"service-history",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalVin":[32],"errorMessage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}],[1,"vehicle-accessories",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalVin":[32],"errorMessage":[32],"expandedImage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}],[1,"vehicle-specification",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalVin":[32],"errorMessage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}],[1,"warranty-details",{"baseUrl":[1,"base-url"],"unauthorizedSscLookupBaseUrl":[1,"unauthorized-ssc-lookup-base-url"],"isDev":[4,"is-dev"],"showSsc":[4,"show-ssc"],"queryString":[1,"query-string"],"unauthorizedSscLookupQueryString":[1,"unauthorized-ssc-lookup-query-string"],"recaptchaKey":[1,"recaptcha-key"],"showWarranty":[4,"show-warranty"],"cityId":[1,"city-id"],"cityIntegrationId":[1,"city-integration-id"],"companyId":[1,"company-id"],"companyIntegrationId":[1,"company-integration-id"],"companyBranchId":[1,"company-branch-id"],"companyBranchIntegrationId":[1,"company-branch-integration-id"],"userId":[1,"user-id"],"brandIntegrationId":[1,"brand-integration-id"],"customerName":[1,"customer-name"],"customerPhone":[1,"customer-phone"],"customerEmail":[1,"customer-email"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalVin":[32],"errorMessage":[32],"showRecaptcha":[32],"unInvoicedByBrokerName":[32],"vehicleInformation":[32],"checkingUnauthorizedSSC":[32],"recaptchaRes":[32],"headers":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}]]]], options);
|
|
26
|
+
return index.bootstrapLazy([["vehicle-lookup.cjs",[[4,"vehicle-lookup",{"activeElement":[1,"active-element"],"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChanged":[16],"blazorOnLoadingStateChange":[1,"blazor-on-loading-state-change"],"errorStateListener":[16],"blazorErrorStateListener":[1,"blazor-error-state-listener"],"wrapperErrorState":[32],"blazorRef":[32],"setBlazorRef":[64],"fetchVin":[64],"getPageContext":[64]},null,{"wrapperErrorState":["errorListener"],"onLoadingStateChanged":["handleLoadingListenerPropChange"],"blazorOnLoadingStateChange":["handleBlazorLoadingRefChange"]}]]],["general-inquiry-form.cjs",[[1,"general-inquiry-form",{"isLoading":[32],"renderControl":[32]}]]],["dead-stock-lookup.cjs",[[1,"dead-stock-lookup",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalPartNumber":[32],"errorMessage":[32],"partInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}]]],["distributor-lookup.cjs",[[1,"distributor-lookup",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"hiddenFields":[1,"hidden-fields"],"localizationName":[1,"localization-name"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalPartNumber":[32],"errorMessage":[32],"partInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}]]],["manufacturer-lookup.cjs",[[1,"manufacturer-lookup",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"hiddenFields":[1,"hidden-fields"],"localizationName":[1,"localization-name"],"headerTitle":[1,"header-title"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalPartNumber":[32],"errorMessage":[32],"partInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}]]],["form-input.cjs",[[0,"form-input",{"name":[1],"label":[1],"class":[1],"isError":[4,"is-error"],"disabled":[4],"labelClass":[1,"label-class"],"errorClass":[1,"error-class"],"errorMessage":[1,"error-message"],"containerClass":[1,"container-class"]}]]],["dynamic-redeem.cjs",[[1,"dynamic-redeem",{"vin":[1],"item":[16],"canceledItems":[16],"unInvoicedByBrokerName":[1,"un-invoiced-by-broker-name"],"handleScanner":[16],"handleQrChanges":[16],"loadingStateChange":[16],"confirmServiceCancellation":[32],"confirmUnInvoicedTBPVehicles":[32],"internalVin":[32],"isOpened":[32],"internalItem":[32],"internalCanceledItem":[32],"isLoading":[32],"quite":[64],"getQrValue":[64]},null,{"isLoading":["onIsLoadingChange"],"canceledItems":["changeInternalCanceledItem"],"unInvoicedByBrokerName":["changeConfirmUnInvoicedTBPVehicles"],"vin":["changeInternalVin"],"item":["changeInternalItem"]}]]],["dynamic-claim_6.cjs",[[1,"dynamic-claim",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"isIdle":[32],"popupClasses":[32],"externalVin":[32],"activePopupIndex":[32],"vehicleInformation":[32],"errorMessage":[32],"isLoading":[32],"setMockData":[64],"setData":[64],"fetchData":[64],"completeClaim":[64]},null,{"isLoading":["onLoadingChange"],"vehicleInformation":["resetProgressBar"],"popupClasses":["windowScrollListener"]}],[1,"paint-thickness",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalVin":[32],"errorMessage":[32],"expandedImage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}],[1,"service-history",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalVin":[32],"errorMessage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}],[1,"vehicle-accessories",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalVin":[32],"errorMessage":[32],"expandedImage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}],[1,"vehicle-specification",{"baseUrl":[1,"base-url"],"isDev":[4,"is-dev"],"queryString":[1,"query-string"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalVin":[32],"errorMessage":[32],"vehicleInformation":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}],[1,"warranty-details",{"baseUrl":[1,"base-url"],"unauthorizedSscLookupBaseUrl":[1,"unauthorized-ssc-lookup-base-url"],"isDev":[4,"is-dev"],"showSsc":[4,"show-ssc"],"queryString":[1,"query-string"],"unauthorizedSscLookupQueryString":[1,"unauthorized-ssc-lookup-query-string"],"recaptchaKey":[1,"recaptcha-key"],"showWarranty":[4,"show-warranty"],"cityId":[1,"city-id"],"cityIntegrationId":[1,"city-integration-id"],"companyId":[1,"company-id"],"companyIntegrationId":[1,"company-integration-id"],"companyBranchId":[1,"company-branch-id"],"companyBranchIntegrationId":[1,"company-branch-integration-id"],"userId":[1,"user-id"],"brandIntegrationId":[1,"brand-integration-id"],"customerName":[1,"customer-name"],"customerPhone":[1,"customer-phone"],"customerEmail":[1,"customer-email"],"loadingStateChange":[16],"loadedResponse":[16],"state":[32],"externalVin":[32],"errorMessage":[32],"showRecaptcha":[32],"unInvoicedByBrokerName":[32],"vehicleInformation":[32],"checkingUnauthorizedSSC":[32],"recaptchaRes":[32],"headers":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"state":["loadingListener"]}]]]], options);
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
exports.setNonce = index.setNonce;
|
|
@@ -161,7 +161,7 @@ const VehicleLookup = class {
|
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
render() {
|
|
164
|
-
return (index.h(index.Host, { key: '
|
|
164
|
+
return (index.h(index.Host, { key: 'c0ae0086435cd2bfc4a4838223c29796960bbbf6' }, index.h("div", { key: 'c989c8199a556448887c2018cae79eed02813f46', class: cn.cn('w-full', { hidden: this.activeElement !== 'vehicle-specification' }) }, index.h("vehicle-specification", { key: 'dc99a0489d6a8c0306cb7aaef7749997553e023b', isDev: this.isDev, "base-url": this.baseUrl, "query-string": this.queryString })), index.h("div", { key: 'c8a8a7eec552f9fd0234dab9d85df14e43102041', class: cn.cn('w-full', { hidden: this.activeElement !== 'vehicle-accessories' }) }, index.h("vehicle-accessories", { key: '624acb4beb19b22e82d79250594e350a21e7f8bf', isDev: this.isDev, "base-url": this.baseUrl, "query-string": this.queryString })), index.h("div", { key: '834807eace640d41d904f7511003ede16b2bfc95', class: cn.cn('w-full', { hidden: this.activeElement !== 'warranty-details' }) }, index.h("warranty-details", { key: 'a74777497db827ce84dcea65823f467af80fa5fa', "show-ssc": "true", "show-warranty": "true", isDev: this.isDev, "base-url": this.baseUrl, "query-string": this.queryString }, index.h("slot", { key: 'c4f0f9387d20481c503d6fe9c38532ede6f71a95' }))), index.h("div", { key: '33b0b26eb268027789d8d8cecc00247f073a333a', class: cn.cn('w-full', { hidden: this.activeElement !== 'service-history' }) }, index.h("service-history", { key: '2d4315c0e2091666e4514ce3b24c8f9f3120850c', isDev: this.isDev, "base-url": this.baseUrl, "query-string": this.queryString })), index.h("div", { key: '21620c7e04ade2da21a8d4aee3c28eb1f8d1e8fa', class: cn.cn('w-full', { hidden: this.activeElement !== 'paint-thickness' }) }, index.h("paint-thickness", { key: '93e0597fbf83490189fa448fd9765b6fa76cf214', isDev: this.isDev, "base-url": this.baseUrl, "query-string": this.queryString })), index.h("div", { key: 'd5b2313cb8faac74fc9304c1e4c311b766c57259', class: cn.cn('w-full', { hidden: this.activeElement !== 'dynamic-claim' }) }, index.h("dynamic-claim", { key: '10e9015d5288618f10fd92e5a72774ac0d8a7f59', isDev: this.isDev, "base-url": this.baseUrl, "query-string": this.queryString }))));
|
|
165
165
|
}
|
|
166
166
|
get el() { return index.getElement(this); }
|
|
167
167
|
static get watchers() { return {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
|
-
"components/
|
|
4
|
-
"components/vehicle-
|
|
5
|
-
"components/vehicle-
|
|
6
|
-
"components/
|
|
7
|
-
"components/
|
|
8
|
-
"components/
|
|
9
|
-
"components/
|
|
3
|
+
"components/vehicle-lookup/dynamic-redeem.js",
|
|
4
|
+
"components/vehicle-lookup/dynamic-claim.js",
|
|
5
|
+
"components/vehicle-lookup/paint-thickness.js",
|
|
6
|
+
"components/vehicle-lookup/service-history.js",
|
|
7
|
+
"components/vehicle-lookup/warranty-details.js",
|
|
8
|
+
"components/vehicle-lookup/vehicle-accessories.js",
|
|
9
|
+
"components/vehicle-lookup/vehicle-specification.js",
|
|
10
10
|
"components/vehicle-lookup/vehicle-lookup.js",
|
|
11
11
|
"components/form-input/form-input.js",
|
|
12
12
|
"components/general-inquiry-form/general-inquiry-form.js",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Host, h } from "@stencil/core";
|
|
6
6
|
import { getPartInformation } from "../../global/api/partInformation";
|
|
7
|
-
import Loading from "../
|
|
7
|
+
import Loading from "../components/Loading";
|
|
8
8
|
import cn from "../../global/lib/cn";
|
|
9
9
|
let mockData = {};
|
|
10
10
|
const closedAccordionHeight = '46px';
|
|
@@ -92,7 +92,7 @@ export class DeadStockLookup {
|
|
|
92
92
|
}
|
|
93
93
|
render() {
|
|
94
94
|
var _a, _b;
|
|
95
|
-
return (h(Host, { key: '
|
|
95
|
+
return (h(Host, { key: '28085ac7a954bfdf05ea5d3724530c9d62100bb7' }, h("div", { key: 'f9f5e65102e89847011cd931c2b9acd7a2389335', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: '9fcc43106e15147a6bad64ac597133c0809eee00' }, h(Loading, { key: '9a33038473f140166debf1bc2fa11299e10ebfcd', isLoading: this.state.includes('loading') }), h("div", { key: '3462deafa07da32d76a1ea6b194ba728fbb12335', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, ['error', 'error-loading'].includes(this.state) && (h("div", { key: 'ff6d5801bca6a1dab34ff99ac4e2e211e47f4a13', class: "py-[16px]" }, h("div", { key: '4c9221e53ebecc13e3a51d4976c83acf9cf204fd', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '4f4bd9eea235444cf091070303ca29c5f2ed4320' }, h("div", { key: '03c29418532b04da39db959c6698cbd6f8e3b178', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: 'b489e74211486b2ead5eb4163e0e5492af13e1a0', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Dead stock"), (_b = (_a = this.partInformation) === null || _a === void 0 ? void 0 : _a.deadStock) === null || _b === void 0 ? void 0 :
|
|
96
96
|
_b.map(deadStock => (h("div", { key: deadStock.companyIntegrationID, class: "py-[10px] px-[20px]" }, h("div", { "aria-expanded": "false", style: { height: closedAccordionHeight }, class: "border shadow transition-all duration-500 overflow-hidden rounded-md mb-[10px] border-[#d6d8dc]" }, h("button", { onClick: this.toggleAccordion, style: { height: closedAccordionHeight }, class: "w-full flex px-[10px] justify-between items-center text-slate-800" }, h("strong", null, deadStock.companyName), h("span", { class: "icon text-slate-800 transition-transform duration-500" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "currentColor", class: "size-[22px]" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.78 9.78a.75.75 0 0 1-1.06 0L8 7.06 5.28 9.78a.75.75 0 0 1-1.06-1.06l3.25-3.25a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1 0 1.06Z" })))), h("div", { class: "content" }, h("table", { class: "w-full overflow-auto relative border-collapse" }, h("thead", null, h("tr", null, h("th", { class: "py-[20px] px-[10px] text-left whitespace-nowrap border-b border-[#d6d8dc]" }, "Branch"), h("th", { class: "py-[20px] px-[10px] text-left whitespace-nowrap border-b border-[#d6d8dc]" }, "Available Qty"))), h("tbody", null, deadStock === null || deadStock === void 0 ? void 0 : deadStock.branchDeadStock.map(branchDeadStock => (h("tr", { class: "transition-colors border-b border-[#d6d8dc] last:border-none duration-100 hover:bg-slate-100", key: branchDeadStock.companyBranchIntegrationID }, h("td", { class: cn('py-[20px] px-[10px] text-left whitespace-nowrap') }, branchDeadStock.companyBranchName), h("td", { class: cn('py-[20px] px-[10px] text-left whitespace-nowrap') }, h("strong", null, branchDeadStock.quantity))))))))))))))))))));
|
|
97
97
|
}
|
|
98
98
|
static get is() { return "dead-stock-lookup"; }
|
|
@@ -6,13 +6,15 @@ import { Host, h } from "@stencil/core";
|
|
|
6
6
|
import cn from "../../global/lib/cn";
|
|
7
7
|
import { capitalize } from "../../global/lib/general";
|
|
8
8
|
import { getPartInformation } from "../../global/api/partInformation";
|
|
9
|
-
import Loading from "../
|
|
9
|
+
import Loading from "../components/Loading";
|
|
10
10
|
let mockData = {};
|
|
11
11
|
export class DistributorLookup {
|
|
12
12
|
constructor() {
|
|
13
13
|
this.baseUrl = '';
|
|
14
14
|
this.isDev = false;
|
|
15
15
|
this.queryString = '';
|
|
16
|
+
this.hiddenFields = '';
|
|
17
|
+
this.localizationName = '';
|
|
16
18
|
this.loadingStateChange = undefined;
|
|
17
19
|
this.loadedResponse = undefined;
|
|
18
20
|
this.state = 'idle';
|
|
@@ -74,16 +76,16 @@ export class DistributorLookup {
|
|
|
74
76
|
mockData = newMockData;
|
|
75
77
|
}
|
|
76
78
|
render() {
|
|
77
|
-
var _a, _b, _c
|
|
78
|
-
const localName = this.partInformation ?
|
|
79
|
-
const hiddenFields = this.partInformation ?
|
|
79
|
+
var _a, _b, _c;
|
|
80
|
+
const localName = this.partInformation ? this.localizationName || 'russian' : 'russian';
|
|
81
|
+
const hiddenFields = this.partInformation ? this.hiddenFields.split(',').map(field => field.trim()) || [] : [];
|
|
80
82
|
const partsInformation = this.partInformation
|
|
81
83
|
? [
|
|
82
84
|
{ label: 'Description', key: 'partDescription', value: this.partInformation.stockParts[0].partDescription },
|
|
83
85
|
{ label: 'Product Group', key: 'group', value: this.partInformation.stockParts[0].group },
|
|
84
86
|
{ label: `${capitalize(localName)} Description`, key: 'localDescription', value: this.partInformation.stockParts[0].localDescription },
|
|
85
|
-
{ label: 'Dealer Purchase price', key: 'fob', value: (
|
|
86
|
-
{ label: 'Recommended Retail price', key: 'price', value: (
|
|
87
|
+
{ label: 'Dealer Purchase price', key: 'fob', value: (_a = this.partInformation.stockParts[0].fob) === null || _a === void 0 ? void 0 : _a.toFixed(2) },
|
|
88
|
+
{ label: 'Recommended Retail price', key: 'price', value: (_b = this.partInformation.stockParts[0].price) === null || _b === void 0 ? void 0 : _b.toFixed(2) },
|
|
87
89
|
{ label: 'Superseded From', key: 'supersededFrom', value: this.partInformation.stockParts[0].supersededFrom },
|
|
88
90
|
{ label: 'Superseded To', key: 'supersededTo', value: this.partInformation.stockParts[0].supersededTo },
|
|
89
91
|
]
|
|
@@ -92,7 +94,7 @@ export class DistributorLookup {
|
|
|
92
94
|
const displayDistributer = this.partInformation
|
|
93
95
|
? !this.partInformation.stockParts.some(({ quantityLookUpResult }) => quantityLookUpResult === 'LookupIsSkipped' || quantityLookUpResult === 'QuantityNotWithinLookupThreshold')
|
|
94
96
|
: false;
|
|
95
|
-
return (h(Host, { key: '
|
|
97
|
+
return (h(Host, { key: 'fa76bb6b6dab895fc0ff1c05e495c67b1e786ea8' }, h("div", { key: 'e0c11116a2ebc7f728284dbe11c18d014e7cc36e', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: '9bcfd5c07807eb536562ce2384e3541ed3fcdab3' }, h(Loading, { key: '3b5fec76b359d7b0f55933e5729bad6f0d9c3f4a', isLoading: this.state.includes('loading') }), h("div", { key: '1c610d9d994938b0769e4a963e8221681fd813fc', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, ['error', 'error-loading'].includes(this.state) && (h("div", { key: '7052616da32a34c981ef66145edbe2ab67afa50a', class: "py-[16px]" }, h("div", { key: 'dc1e12e4a947f49ff1555a3370b9485d9027ab13', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '067b10f736c0997ee89dde521d6347e502df1efb' }, h("div", { key: '2e68ffd0e757ed385d6b4c1821a274905a859736', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '5d2acdf14db3c2e9d2d629235ab2c19889eda284', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Info"), h("div", { key: 'fe366d9127cc75bc7a3cd65f875fd54b69f53e56', class: "py-[10px] px-[30px] flex flex-col gap-[15px]" }, h("div", { key: '537a4941c4987dc8a2bd1a70fe81c690f7036b63', class: "grid grid-cols-3 gap-[50px]" }, displayedFields.map(({ label, value, key }) => (h("div", { key: key, class: "flex flex-col flex-1" }, h("strong", { class: "py-[10px] px-0 border-b-[gray] border-b" }, label), h("div", { class: "py-[10px] px-0" }, value))))))), displayDistributer && (h("div", { key: '1281450dd7b8aba827ccb50268a03b0a95c6e1f9', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: 'ac7f771f521828a2ce26132e37157e233ca0e784', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Distributor Stock"), h("div", { key: 'fae623ee5b973ce06b0d6bdf4374661d9d3797e3', class: "flex flex-col gap-[15px]" }, h("table", { key: 'de70dc69228c6289ffb5e6b403da955e9c1a4393', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: '4ce5f815c60a6f32b04ed5472d0ff694d19b6d87', class: "top-0 font-bold sticky bg-white" }, h("tr", { key: '48b6674d15b88588147756aeced1518a06746041' }, ['Location', 'Availability'].map(title => (h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, title))))), h("tbody", { key: 'f80cb4732d9ce25e6b5b6162d6d8ebf08f7525a4' }, (_c = this.partInformation) === null || _c === void 0 ? void 0 : _c.stockParts.map(stock => (h("tr", { class: "transition-colors duration-100 border-b border-[#d6d8dc] last:border-none hover:bg-slate-100", key: stock.locationID }, h("td", { class: cn('px-[10px] py-[20px] text-center whitespace-nowrap') }, stock.locationName), h("td", { class: cn('px-[10px] py-[20px] text-center whitespace-nowrap') }, h("div", { class: cn('text-[red]', {
|
|
96
98
|
'text-[green]': stock.quantityLookUpResult === 'Available',
|
|
97
99
|
'text-[orange]': stock.quantityLookUpResult === 'PartiallyAvailable',
|
|
98
100
|
}) }, h("strong", null, stock.quantityLookUpResult === 'Available'
|
|
@@ -169,6 +171,42 @@ export class DistributorLookup {
|
|
|
169
171
|
"reflect": false,
|
|
170
172
|
"defaultValue": "''"
|
|
171
173
|
},
|
|
174
|
+
"hiddenFields": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"mutable": false,
|
|
177
|
+
"complexType": {
|
|
178
|
+
"original": "string",
|
|
179
|
+
"resolved": "string",
|
|
180
|
+
"references": {}
|
|
181
|
+
},
|
|
182
|
+
"required": false,
|
|
183
|
+
"optional": true,
|
|
184
|
+
"docs": {
|
|
185
|
+
"tags": [],
|
|
186
|
+
"text": ""
|
|
187
|
+
},
|
|
188
|
+
"attribute": "hidden-fields",
|
|
189
|
+
"reflect": false,
|
|
190
|
+
"defaultValue": "''"
|
|
191
|
+
},
|
|
192
|
+
"localizationName": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"mutable": false,
|
|
195
|
+
"complexType": {
|
|
196
|
+
"original": "string",
|
|
197
|
+
"resolved": "string",
|
|
198
|
+
"references": {}
|
|
199
|
+
},
|
|
200
|
+
"required": false,
|
|
201
|
+
"optional": true,
|
|
202
|
+
"docs": {
|
|
203
|
+
"tags": [],
|
|
204
|
+
"text": ""
|
|
205
|
+
},
|
|
206
|
+
"attribute": "localization-name",
|
|
207
|
+
"reflect": false,
|
|
208
|
+
"defaultValue": "''"
|
|
209
|
+
},
|
|
172
210
|
"loadingStateChange": {
|
|
173
211
|
"type": "unknown",
|
|
174
212
|
"mutable": false,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
5
|
import { Host, h } from "@stencil/core";
|
|
6
|
-
import Loading from "../
|
|
6
|
+
import Loading from "../components/Loading";
|
|
7
7
|
import cn from "../../global/lib/cn";
|
|
8
8
|
import { getPartInformation } from "../../global/api/partInformation";
|
|
9
9
|
import { capitalize } from "../../global/lib/general";
|
|
@@ -13,6 +13,8 @@ export class ManufacturerLookup {
|
|
|
13
13
|
this.baseUrl = '';
|
|
14
14
|
this.isDev = false;
|
|
15
15
|
this.queryString = '';
|
|
16
|
+
this.hiddenFields = '';
|
|
17
|
+
this.localizationName = '';
|
|
16
18
|
this.headerTitle = 'Manufacturer';
|
|
17
19
|
this.loadingStateChange = undefined;
|
|
18
20
|
this.loadedResponse = undefined;
|
|
@@ -75,15 +77,15 @@ export class ManufacturerLookup {
|
|
|
75
77
|
mockData = newMockData;
|
|
76
78
|
}
|
|
77
79
|
render() {
|
|
78
|
-
var _a, _b, _c
|
|
79
|
-
const localName = this.partInformation ?
|
|
80
|
-
const hiddenFields = this.partInformation ?
|
|
80
|
+
var _a, _b, _c;
|
|
81
|
+
const localName = this.partInformation ? this.localizationName || 'russian' : 'russian';
|
|
82
|
+
const hiddenFields = this.partInformation ? this.hiddenFields.split(',').map(field => field.trim()) || [] : [];
|
|
81
83
|
const manufacturerData = this.partInformation
|
|
82
84
|
? [
|
|
83
85
|
{ label: 'Origin', key: 'origin', value: this.partInformation.tmcPart.origin },
|
|
84
|
-
{ label: 'Warranty Price', key: 'warrantyPrice', value: (
|
|
85
|
-
{ label: 'Special Price', key: 'specialPrice', value: (
|
|
86
|
-
{ label: 'Wholesales Price', key: 'salesPrice', value: (
|
|
86
|
+
{ label: 'Warranty Price', key: 'warrantyPrice', value: (_a = this.partInformation.tmcPart.warrantyPrice) === null || _a === void 0 ? void 0 : _a.toFixed(2) },
|
|
87
|
+
{ label: 'Special Price', key: 'specialPrice', value: (_b = this.partInformation.tmcPart.specialPrice) === null || _b === void 0 ? void 0 : _b.toFixed(2) },
|
|
88
|
+
{ label: 'Wholesales Price', key: 'salesPrice', value: (_c = this.partInformation.tmcPart.salesPrice) === null || _c === void 0 ? void 0 : _c.toFixed(2) },
|
|
87
89
|
{ label: 'PNC', key: 'pnc', value: this.partInformation.tmcPart.pnc },
|
|
88
90
|
{ label: `PNC ${capitalize(localName)} Name`, key: 'pncLocalName', value: this.partInformation.tmcPart.pncLocalName },
|
|
89
91
|
{ label: 'Bin Code', key: 'binCode', value: this.partInformation.tmcPart.binCode },
|
|
@@ -98,7 +100,7 @@ export class ManufacturerLookup {
|
|
|
98
100
|
]
|
|
99
101
|
: [];
|
|
100
102
|
const displayedManufacturerData = manufacturerData.filter(part => !hiddenFields.includes(part.key));
|
|
101
|
-
return (h(Host, { key: '
|
|
103
|
+
return (h(Host, { key: '1ad38e17ff3255b89145ba040254f198974deb53' }, h("div", { key: 'b0c5cc452c93236ad41e2431bf18541db67827d0', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: 'ceffa481201dc0b881fa583f43c7da445f8e9cc8' }, h(Loading, { key: '16bdf498e39fe381050ea33dac6d00df4b3ae05f', isLoading: this.state.includes('loading') }), h("div", { key: '51222801ac0728fcde2472ec74022c16e1157ce9', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, ['error', 'error-loading'].includes(this.state) && (h("div", { key: 'cc6965c0ade12609bb6f9a61c250a550f4d70007', class: "py-[16px]" }, h("div", { key: 'fc6558de2bc351f09a04b7547dd690fcfcfc7ec3', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '985204509c072b21dc94b2a3005fea81d712b30d' }, h("div", { key: '42ce83c26e55f8d6eb00455820f67670f44b712d', class: "flex mt-[12px] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '35ff95092d996eda5d81e68e5d80db32588b77ea', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, this.headerTitle), h("div", { key: '8f825747cb1ccce7575ea097a34dfb4944993a9a', class: "px-[30px] py-[10px] flex flex-col gap-[15px]" }, h("div", { key: '94ced9aec06e6c09e942366e3271a6d895f4b68b', class: "grid grid-cols-3 gap-[50px]" }, displayedManufacturerData.map(({ label, value, key }) => (h("div", { key: key, class: "flex flex-col flex-1" }, h("strong", { class: "py-[10px] px-0 border-b-[gray] border-b" }, label), h("div", { class: "py-[10px] px-0" }, value))))))))))))));
|
|
102
104
|
}
|
|
103
105
|
static get is() { return "manufacturer-lookup"; }
|
|
104
106
|
static get encapsulation() { return "shadow"; }
|
|
@@ -168,6 +170,42 @@ export class ManufacturerLookup {
|
|
|
168
170
|
"reflect": false,
|
|
169
171
|
"defaultValue": "''"
|
|
170
172
|
},
|
|
173
|
+
"hiddenFields": {
|
|
174
|
+
"type": "string",
|
|
175
|
+
"mutable": false,
|
|
176
|
+
"complexType": {
|
|
177
|
+
"original": "string",
|
|
178
|
+
"resolved": "string",
|
|
179
|
+
"references": {}
|
|
180
|
+
},
|
|
181
|
+
"required": false,
|
|
182
|
+
"optional": false,
|
|
183
|
+
"docs": {
|
|
184
|
+
"tags": [],
|
|
185
|
+
"text": ""
|
|
186
|
+
},
|
|
187
|
+
"attribute": "hidden-fields",
|
|
188
|
+
"reflect": false,
|
|
189
|
+
"defaultValue": "''"
|
|
190
|
+
},
|
|
191
|
+
"localizationName": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"mutable": false,
|
|
194
|
+
"complexType": {
|
|
195
|
+
"original": "string",
|
|
196
|
+
"resolved": "string",
|
|
197
|
+
"references": {}
|
|
198
|
+
},
|
|
199
|
+
"required": false,
|
|
200
|
+
"optional": true,
|
|
201
|
+
"docs": {
|
|
202
|
+
"tags": [],
|
|
203
|
+
"text": ""
|
|
204
|
+
},
|
|
205
|
+
"attribute": "localization-name",
|
|
206
|
+
"reflect": false,
|
|
207
|
+
"defaultValue": "''"
|
|
208
|
+
},
|
|
171
209
|
"headerTitle": {
|
|
172
210
|
"type": "string",
|
|
173
211
|
"mutable": false,
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Host, h } from "@stencil/core";
|
|
6
6
|
import cn from "../../global/lib/cn";
|
|
7
|
-
import expiredIcon from "./
|
|
8
|
-
import pendingIcon from "./
|
|
9
|
-
import cancelledIcon from "./
|
|
10
|
-
import processedIcon from "./
|
|
7
|
+
import expiredIcon from "./assets/expired.svg";
|
|
8
|
+
import pendingIcon from "./assets/pending.svg";
|
|
9
|
+
import cancelledIcon from "./assets/cancelled.svg";
|
|
10
|
+
import processedIcon from "./assets/processed.svg";
|
|
11
11
|
import { getVehicleInformation } from "../../global/api/vehicleInformation";
|
|
12
12
|
let mockData = {};
|
|
13
13
|
const icons = {
|
|
@@ -270,7 +270,7 @@ export class DynamicClaim {
|
|
|
270
270
|
render() {
|
|
271
271
|
var _a, _b;
|
|
272
272
|
const serviceItems = ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceItems) || [];
|
|
273
|
-
return (h(Host, { key: '
|
|
273
|
+
return (h(Host, { key: '6e978e300bae2dd76b153421a56180adac9b0181' }, h("dynamic-redeem", { key: '98762e62d38fedf77d328e8dc2da6c832b927f0c', id: "dynamic-redeem" }), h("div", { key: '46b817f023ce25c860c79c4fafe7c963b9acd6be', class: cn('dynamic-claim-wrapper', { loading: this.isLoading, idle: this.isIdle }) }, h("div", { key: '3e93ee7b596ab9d4fb338e5a7c5973d102d6db2b', class: "dynamic-claim-header" }, h("strong", { key: '037bbee7e1aa4c3cf36d93fdc20c01959f194fca', onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-header-vin load-animation" }, this.errorMessage && h("span", { key: 'd68269004e338abd8d08c8bb840e5084a3b428a7', style: { color: 'red' } }, this.errorMessage), !this.errorMessage && ((_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.vin))), h("div", { key: '7cc8f93760c08f55af3d56515c928c2a888c8f18', class: "dynamic-claim-body" }, h("div", { key: '471ede9a4acb83195d9b0f78a36d00364abd99cf', class: "loading-lane" }, h("div", { key: 'f734fcaca3e8653870e76a3e72c45a1cbb2bd320', class: "dynamic-claim-loading-slider" }, h("div", { key: '747118edb9777ee3833bcb27c01d3f8b19cef6c6', class: "dynamic-claim-loading-slider-line" }), h("div", { key: '3e65f85d83ba6aaa062e83989683675ad0ec5b7c', class: "dynamic-claim-loading-slider-subline dynamic-claim-inc" }), h("div", { key: '48a3aa105f30e70ff0bdb1f335a404e0a88fd791', class: "dynamic-claim-loading-slider-subline dynamic-claim-dec" }))), h("div", { key: '9009de9a5e02782908f0b4d79fa89aaf43dbba2d', class: "dynamic-claim-progress-lane" }, serviceItems.map((item, idx) => {
|
|
274
274
|
let statusClass = '';
|
|
275
275
|
if (item.status === 'pending') {
|
|
276
276
|
if (serviceItems.findIndex(i => i.status === 'pending') === idx)
|
|
@@ -279,7 +279,7 @@ export class DynamicClaim {
|
|
|
279
279
|
else
|
|
280
280
|
statusClass = item.status;
|
|
281
281
|
return (h("div", { key: item.name, class: cn('dynamic-claim-item', statusClass), onMouseLeave: this.onMouseLeave }, h("div", { onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-item-header load-animation", onMouseEnter: event => this.onMouseEnter(event.target, idx) }, h("img", { src: icons[item.status], alt: "status icon" }), h("span", null, item.status.charAt(0).toUpperCase() + item.status.slice(1)), this.activePopupIndex === idx && this.createPopup(item)), h("div", { onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-item-circle load-animation" }), h("p", { onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-item-footer load-animation" }, item.name)));
|
|
282
|
-
}), h("div", { key: '
|
|
282
|
+
}), h("div", { key: '1e05a3af9851d7418c31e4fd16d9ec4836930bdc', class: "dynamic-claim-progress-bar" }))))));
|
|
283
283
|
}
|
|
284
284
|
static get is() { return "dynamic-claim"; }
|
|
285
285
|
static get encapsulation() { return "shadow"; }
|
|
@@ -116,11 +116,11 @@ export class DynamicRedeem {
|
|
|
116
116
|
const disableInput = !this.confirmServiceCancellation || !this.confirmUnInvoicedTBPVehicles;
|
|
117
117
|
if (!disableInput)
|
|
118
118
|
this.focusInput();
|
|
119
|
-
return (h(Host, { key: '
|
|
119
|
+
return (h(Host, { key: '7ea18e4fadefc9890b6346a56c29a2057ff4dae5' }, h("div", { key: 'facbf1dcacb0f5bf7ced03c1d71173144c8a4e60', class: cn('dynamic-claim-processor', (this === null || this === void 0 ? void 0 : this.isOpened) && 'active') }, h("svg", { key: 'efab69b4fd0fc8bda536a4a723a8db6e445fdb2a', id: "dynamic-claim-processor-close-icon", onClick: this.closeModal, viewBox: "-0.5 0 25 25", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: 'd0a0ac68fcd60f48d4300a174990b122dd9868fb', id: "SVGRepo_bgCarrier", "stroke-width": "0" }), h("g", { key: 'eca5bf7b0719fc86ac0f886e90260463624b07b9', id: "SVGRepo_tracerCarrier", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", { key: 'f34e7075df7ba0fa672831e0de3ba9d024633982', id: "SVGRepo_iconCarrier" }, h("path", { key: 'c24ef4a14d9ecc07e29b9196fc8f13caf9c9bf7c', d: "M3 21.32L21 3.32001", stroke: "#000000", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { key: '2be1d7b1a861a3ffc7dbe158f4791719b1cd8d72', d: "M3 3.32001L21 21.32", stroke: "#000000", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), h("div", { key: 'b9a4abea36a13d0e796ce95e89bd2bccfe6d47b0', class: "dynamic-claim-processor-wrapper" }, h("div", { key: '720c7b9b1de4b22fd0928d6b5eb79a38193c8468', class: "dynamic-claim-processor-info-box" }, h("div", { key: 'cb5e4a0b8596c5c782aafb78228e31728c6f1a55', class: "dynamic-claim-processor-info-box-header" }, h("strong", { key: '62a593462b321dcea73c093e415d0dbd8b9d6bd5', class: "dynamic-claim-header-vin" }, this === null || this === void 0 ? void 0 : this.internalVin)), h("div", { key: '1a5ff709581b8f18971379f30314fe835a31eb3b', class: "dynamic-claim-processor-info-box-body" }, h("table", { key: '6d61ff99ccba84dc53b59b8564c4ad035b95372b', class: "border-separate" }, h("tr", { key: '990674c386c2d9cec2f5122caa0b09ef96a44523' }, h("th", { key: '1002adc8b12ddeea1e8032f1da12b5af21c83e8b' }, "Service Type"), h("td", { key: '89b9426749a50067df55db904e78fc6521e2e09e' }, (_a = this === null || this === void 0 ? void 0 : this.internalItem) === null || _a === void 0 ? void 0 : _a.type), h("th", { key: '4f74393f4ee9f5a367cbef81aadcbbf61c690a0d' }, "Name"), h("td", { key: 'c789f80b5aeefd3e979d16e7a0f4ea2fdce93ed1' }, (_b = this === null || this === void 0 ? void 0 : this.internalItem) === null || _b === void 0 ? void 0 : _b.name)), h("tr", { key: 'b54cd591800861e59da162b88b6a244b379bacd6' }, h("th", { key: 'a434d8772d60bff1f576163c2858b93ae03fce46' }, "Activation Date"), h("td", { key: '5e8650d609cc9c8c2b3d0331ba3bf864be344e38' }, (_c = this === null || this === void 0 ? void 0 : this.internalItem) === null || _c === void 0 ? void 0 : _c.activatedAt), h("th", { key: '981e8ae49a3ac15f4a9541f014f2f20ae619d87d' }, "Expiry Date"), h("td", { key: '1b75bce9817ca071211029622e6315ff6c95363a' }, (_d = this === null || this === void 0 ? void 0 : this.internalItem) === null || _d === void 0 ? void 0 : _d.expiresAt)), h("tr", { key: '7b92c9d3f1cde8bfe98315bde7e0b7954d341cb7' }, h("th", { key: '624e7be8fcd535a702e1ec182224fdd1cb129d36' }, "Menu Code"), h("td", { key: '24ee026cc9cfb1700d0842a12e30cbf56fa57608' }, (_e = this === null || this === void 0 ? void 0 : this.internalItem) === null || _e === void 0 ? void 0 : _e.menuCode))))), h("div", { key: '76c5666102384f3d11d0c584ee5c101d9e6888a2', style: { flex: '1', width: '100%', display: 'flex', flexDirection: 'column', justifyContent: 'space-evenly' } }, (this === null || this === void 0 ? void 0 : this.internalCanceledItem) && Array.isArray(this.internalCanceledItem) && !!this.internalCanceledItem.length && (h("div", { key: '1ca55d23fe8e2bfc4102532df847e4ddda998acc', class: "admonition warning" }, h("p", { key: '7851d8d8b29cec199ee0466aa6963323ac245d1d', class: "admonition-title" }, "Warning"), h("div", { key: '086e2d19996bb9cec86fbc1c3a6d508cb2d87b1a', style: { padding: '0 30px' } }, h("p", { key: '3645a5f3a7caa44370a9ca68e2fd7771490eb66f', class: "my-4" }, "the following Services Are still 'Pending' and they will be marked as 'Cancelled'"), h("ul", { key: '3184c6806f652ff1e18f5060fc7c529f52e42644', class: "dynamic-claim-processor-to-be-cancelled-list my-4 pl-10 list-disc" }, this.internalCanceledItem.map(({ name }) => (h("li", { id: name }, name)))), h("div", { key: 'b16e20211bbdf3655d2b6baba0479024aef04c86', class: "cancel-confirmation-box" }, h("label", { key: '6107738c56955193fe9ff0b20d9d13a1d63359a4' }, h("input", { key: '6487d57080dfe0fdc6330a2100a10451a5db417c', type: "checkbox", class: "confirm-cancellation-input m-[3px] ml-1", onChange: () => {
|
|
120
120
|
this.confirmServiceCancellation = !this.confirmServiceCancellation;
|
|
121
|
-
} }), ' ', "Confirm Marking the above services as 'Cancelled'"))))), true && this.unInvoicedByBrokerName && (h("div", { key: '
|
|
121
|
+
} }), ' ', "Confirm Marking the above services as 'Cancelled'"))))), true && this.unInvoicedByBrokerName && (h("div", { key: 'da07af777aa9bb41a431a937784c973e90ca2fc4', class: "admonition warning" }, h("p", { key: '94f42d9732ab343fd81dc5ba5c67570ee5a503be', class: "admonition-title" }, "Warning"), h("div", { key: '03add06584426d108d3a7827ffefde6905cea542', style: { padding: '0 30px' } }, h("p", { key: 'faa3390b9483ffcf1813cb98d0c6b30d6116562e', class: "my-4" }, "This Vehicle is not yet invoiced by the following Trusted Business Partner:"), h("div", { key: '11d799db5ac38c1400fbe6d144f9f7279d61c22b' }, h("strong", { key: '9a22678bc79691244974f316d7fc8a197583f905' }, this.unInvoicedByBrokerName)), h("div", { key: 'a13f1c55bf8c3bed0ba5a76ef787ea93c39c375e', class: "cancel-confirmation-box" }, h("label", { key: '9ae25e9d5dbfa9f1b1390bf8c22d3f67d2c89209' }, h("input", { key: '719b0152957d6d4e6dffbfdc1ce4ef8796c53f88', type: "checkbox", class: "confirm-cancellation-input m-[3px] ml-1", onChange: () => {
|
|
122
122
|
this.confirmUnInvoicedTBPVehicles = !this.confirmUnInvoicedTBPVehicles;
|
|
123
|
-
} }), ' ', "Confirm Claiming without Trusted Business Partner Invoice"))))), h("div", { key: '
|
|
123
|
+
} }), ' ', "Confirm Claiming without Trusted Business Partner Invoice"))))), h("div", { key: '951942abe6995ed155f2d9800bb572e8a19c4068', class: cn('dynamic-claim-processor-progress', (!this.confirmServiceCancellation || !this.confirmUnInvoicedTBPVehicles) && 'disabled') }, h("div", { key: '997c6a843683801155f88e8d8c64318e1f87f5ca', id: "scan-invoice-step", class: cn('dynamic-claim-processor-progress-step', this.isLoading && 'processing') }, h("div", { key: 'ecaea7fa9458d6800f97f289723b3609b0b7b728', style: { position: 'relative', width: '130px', height: '130px', display: 'block', margin: 'auto', marginTop: '15px' } }, h("div", { key: '7e6454f31cb82c63a4bbb10a8b7dc1be6d7fac6b', style: { position: 'absolute' }, class: "scan-invoice-wrapper flex flex-col gap-1 justify-center items-center" }, h("svg", { key: '333521e33e644e25d3e1f28949fab5f2a6c0e5b0', fill: "#3071a9", height: "100px", width: "100px", version: "1.1", id: "Layer_1", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", stroke: "#ffffff" }, h("g", { key: '95eaad08a062318e9f9db4317b96306b86642139', id: "SVGRepo_bgCarrier", "stroke-width": "0" }), h("g", { key: 'f78e536c8cc0d32a16a0424cc7f098d73286b479', id: "SVGRepo_tracerCarrier", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", { key: 'b65a4b29d75d883532f86634d9bd531f09cf7ead', id: "SVGRepo_iconCarrier" }, h("g", { key: 'd9410f0ce81c453360349412cf2f8b62f762ba11' }, h("g", { key: 'c7c64f4dc942e2de8fb851e6bdcf45022e672510' }, h("path", { key: '4f4b628c4255d179519e2b953e59a17c6a924c1a', d: "M354.338,34.205h-61.71c-3.354-9.93-12.752-17.102-23.8-17.102h-17.547C243.359,6.451,230.813,0,217.521,0 s-25.839,6.451-33.76,17.102h-17.547c-11.048,0-20.446,7.172-23.8,17.102H80.701c-18.566,0-33.67,15.105-33.67,33.67v359.148 c0,18.566,15.105,33.67,33.67,33.67h171.023c4.427,0,8.017-3.589,8.017-8.017c0-4.427-3.589-8.017-8.017-8.017H80.701 c-9.725,0-17.637-7.912-17.637-17.637V67.875c0-9.725,7.912-17.637,17.637-17.637h60.394v26.188c0,4.427,3.589,8.017,8.017,8.017 H285.93c4.427,0,8.017-3.589,8.017-8.017V50.238h60.391c9.725,0,17.637,7.912,17.637,17.637v230.881 c0,4.427,3.589,8.017,8.017,8.017c4.427,0,8.017-3.589,8.017-8.017V67.875C388.008,49.309,372.904,34.205,354.338,34.205z M277.914,68.409H157.129V42.252c0-0.011,0.001-0.02,0.001-0.031c0-0.005-0.001-0.011-0.001-0.015 c0.009-5.004,4.08-9.071,9.085-9.071h21.846c2.854,0,5.493-1.517,6.929-3.985c4.781-8.213,13.204-13.117,22.532-13.117 s17.751,4.904,22.532,13.117c1.435,2.467,4.075,3.985,6.929,3.985h21.846c4.999,0,9.067,4.059,9.085,9.055 c0,0.011-0.001,0.02-0.001,0.031c0,0.021,0.003,0.041,0.003,0.062V68.409z" }))), h("g", { key: 'd8dfaa272dc038f9a409a07f20a376872e2c49d6' }, h("g", { key: '92a785053a4a484d4cfa3dcba2d6501f4d95bd63' }, h("path", { key: '98f1da5fa072e2208f083f8bf6780e6dea4608e6', d: "M251.722,410.455H97.269V84.443h17.64c4.427,0,8.017-3.589,8.017-8.017s-3.589-8.017-8.017-8.017H89.253 c-4.427,0-8.017,3.589-8.017,8.017v342.046c0,4.427,3.589,8.017,8.017,8.017h162.47c4.427,0,8.017-3.589,8.017-8.017 C259.739,414.044,256.15,410.455,251.722,410.455z" }))), h("g", { key: 'f3dca4bd971490fedd8a3b12046ef4bc0920215e' }, h("g", { key: '0218794dd99ca2f80f474ff0c9e1371a14011a54' }, h("path", { key: '5664c682ebf85609e55fb91ae9150ec0b790282d', d: "M345.787,68.409h-25.653c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h17.637v214.311 c0,4.427,3.589,8.017,8.017,8.017s8.017-3.589,8.017-8.017V76.426C353.804,71.999,350.214,68.409,345.787,68.409z" }))), h("g", { key: '0ff24162a3500fcfbe933af6b7954fc1a7c4116d' }, h("g", { key: '780cb9811d541c8a662f7e6328a0caeb294b23e1' }, h("path", { key: '8144a520d72cdcbe909f81abee08e811b112a793', d: "M371.44,324.944c-51.572,0-93.528,41.956-93.528,93.528S319.869,512,371.44,512s93.528-41.956,93.528-93.528 S423.012,324.944,371.44,324.944z M371.44,495.967c-42.731,0-77.495-34.764-77.495-77.495s34.764-77.495,77.495-77.495 s77.495,34.764,77.495,77.495S414.172,495.967,371.44,495.967z" }))), h("g", { key: '3b908924f2df6e7025a3913c7998a1a13290a6b9' }, h("g", { key: 'efa92cfff7cf13fbba841173d6f24a3632d56c40' }, h("path", { key: '11b0a430b9558b213e2c018245d199a7b4f71a26', d: "M217.607,34.205h-0.086c-4.427,0-7.974,3.589-7.974,8.017c0,4.427,3.631,8.017,8.059,8.017 c4.427,0,8.017-3.589,8.017-8.017C225.624,37.794,222.035,34.205,217.607,34.205z" }))), h("g", { key: 'b4701864f89c78d3b34ad264058f90ffb355a57d' }, h("g", { key: '112007561eda64334264db3140b2b9d1a171ae05' }, h("path", { key: 'bdc48e97205b19f455f2567a1e21ef2791f082f8', d: "M419.865,387.15c-3.13-3.131-8.207-3.131-11.337,0l-54.19,54.19l-28.536-28.536c-3.131-3.131-8.207-3.131-11.337,0 c-3.131,3.131-3.131,8.207,0,11.337l34.205,34.205c1.565,1.565,3.617,2.348,5.668,2.348s4.103-0.782,5.668-2.348l59.858-59.858 C422.995,395.356,422.995,390.28,419.865,387.15z" }))), h("g", { key: 'cc19dded6610b3c38df00eb86690ef5da6646311' }, h("g", { key: '38f73ff945164d99ba4ca5572eea6e3da41ab83e' }, h("path", { key: '31f531ce112abddd9155c612347a550133dccbbe', d: "M182.781,177.309v-32.338c11.295,1.934,18.171,7.688,18.171,11.889c0,4.427,3.589,8.017,8.017,8.017 s8.017-3.589,8.017-8.017c0-14.171-14.492-25.621-34.205-28.092v-1.036c0-4.427-3.589-8.017-8.017-8.017s-8.017,3.589-8.017,8.017 v1.036c-19.713,2.47-34.205,13.92-34.205,28.092c0,20.074,18.829,27.788,34.205,32.461v32.338 c-11.295-1.934-18.171-7.688-18.171-11.889c0-4.427-3.589-8.017-8.017-8.017s-8.017,3.589-8.017,8.017 c0,14.171,14.492,25.621,34.205,28.092v1.036c0,4.427,3.589,8.017,8.017,8.017s8.017-3.589,8.017-8.017v-1.036 c19.713-2.47,34.205-13.92,34.205-28.092C216.985,189.697,198.157,181.982,182.781,177.309z M166.747,172.411 c-13.524-4.713-18.171-8.963-18.171-15.551c0-2.535,2.236-5.335,6.134-7.68c3.294-1.982,7.473-3.415,12.037-4.198V172.411z M194.818,217.45c-3.294,1.982-7.473,3.415-12.037,4.198v-27.429c13.524,4.713,18.171,8.963,18.171,15.551 C200.952,212.306,198.716,215.105,194.818,217.45z" }))), h("g", { key: 'a11875702a3fc98e0acfbbcb4af12eb4493af258' }, h("g", { key: '10d753a00196f287b6afc85869870c8a762b8015' }, h("path", { key: 'c095ad4acfeaaea83205afdb5c3c482ec9d772ac', d: "M294.48,136.818h-42.756c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h42.756 c4.427,0,8.017-3.589,8.017-8.017S298.908,136.818,294.48,136.818z" }))), h("g", { key: 'd4445fed4d88d0442843a878bcac6e69fe9b74d3' }, h("g", { key: '64d604d7670df1e7508bcde262d4077504081522' }, h("path", { key: 'e96d7331677e226f88e751233077a4c272acde8f', d: "M277.378,171.023h-25.653c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h25.653 c4.427,0,8.017-3.589,8.017-8.017S281.805,171.023,277.378,171.023z" }))), h("g", { key: 'ed7b2e50d6ba9a1300d6acf05043f3fa0181703c' }, h("g", { key: 'e25d13f88c01cf40a2d6986d8a7c91f9cbdf880f' }, h("path", { key: '4a62c6e4880d9554a88d2dcf2b9da4c72f91ad61', d: "M294.48,205.228h-42.756c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h42.756 c4.427,0,8.017-3.589,8.017-8.017S298.908,205.228,294.48,205.228z" }))), h("g", { key: '9031c38f7ad634a20d16d46bee109910605ada47' }, h("g", { key: '9151c7dea666703b37d470f11c4a27790da99bca' }, h("path", { key: 'b36cf4ac3fad4be56317a2605be087a46212d9bb', d: "M157.662,282.188H140.56c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h17.102 c4.427,0,8.017-3.589,8.017-8.017S162.089,282.188,157.662,282.188z" }))), h("g", { key: '6ce2c120f503b02241a11803ee643df17be742bf' }, h("g", { key: '5342f6b2940cb61841045992b398410344cbe771' }, h("path", { key: '6a11df9eea892fbb3fa4540e63745d2e65644e7f', d: "M157.662,350.597H140.56c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h17.102 c4.427,0,8.017-3.589,8.017-8.017S162.089,350.597,157.662,350.597z" }))), h("g", { key: '9bd5c72fc4972da0eb431165939082b6b9918320' }, h("g", { key: '01f2799a580fa6ff6837f24c0c45841b0ae80133' }, h("path", { key: '281da0da97a271db4c8e1439ed889fdab1e41e89', d: "M157.662,316.393H140.56c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h17.102 c4.427,0,8.017-3.589,8.017-8.017S162.089,316.393,157.662,316.393z" }))), h("g", { key: 'eeab8100ba66288719c9bd25daf4dccddca387ef' }, h("g", { key: '1502a6ebd3c6fbe19a033e68ca784230313ecd2e' }, h("path", { key: '15f0c1e838090236060dbc44c88ff80b4a5be707', d: "M294.48,282.188H191.866c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017H294.48 c4.427,0,8.017-3.589,8.017-8.017S298.908,282.188,294.48,282.188z" }))), h("g", { key: '670e313fe53a0daf241bccc62713f98e13a0eaea' }, h("g", { key: 'db5b79634178045e411db9e17e98c3f1705422f3' }, h("path", { key: '3e0cf63bb723b972a46ac206657425e5c5f03228', d: "M268.827,350.597h-76.96c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h76.96 c4.427,0,8.017-3.589,8.017-8.017S273.254,350.597,268.827,350.597z" }))), h("g", { key: 'b24cb217593c420ad1ac7e387e803582b0690a0f' }, h("g", { key: 'cf67f96250fddb8c8392701dba0d4867d2d551a5' }, h("path", { key: 'b7e3b2da13a756848cf0b951fbf0b8a79d78efba', d: "M294.48,316.393H191.866c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017H294.48 c4.427,0,8.017-3.589,8.017-8.017S298.908,316.393,294.48,316.393z" }))))), h("div", { key: '08e454bab5a674a9ace140604e6f6defe3a057df' }, "Scan the Invoice")), h("div", { key: '173d145e54f7b549428fc380acc545fc9a427fd6', style: { position: 'absolute' }, class: "loading-wrapper" }, h("div", { key: 'c799a9adecb8bcadc046109048de438125b6f90d', class: cn('lds-ripple', this.isLoading && 'active') }, h("div", { key: '46c014c57c7b7aaf6f91cf6987f0aa8c16689b42' }), h("div", { key: 'a85c595f48215b5f400c6f69dd84447649c2c693' })), h("div", { key: 'b74cb5e6630b1b4abdee266fc1341392da488ecb', class: cn('lds-ripple-loading', this.isLoading && 'active') }, "Processing ..."))), h("input", { key: '39add573de99d4e402f1d0fa887ad5755cbcf1d1', class: "qr-input", spellcheck: "false", onInput: this.onValueChanges, onKeyDown: this.qrCodeKeyDown, onBlur: () => this.input.focus(), autocomplete: "off", disabled: disableInput, placeholder: "", autofocus: true, style: { marginTop: '20px', padding: '10px 0px', fontSize: '16px' } }))))))));
|
|
124
124
|
}
|
|
125
125
|
static get is() { return "dynamic-redeem"; }
|
|
126
126
|
static get encapsulation() { return "shadow"; }
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
5
|
import { Host, h } from "@stencil/core";
|
|
6
|
-
import Loading from "../
|
|
6
|
+
import Loading from "../components/Loading";
|
|
7
7
|
import { getVehicleInformation } from "../../global/api/vehicleInformation";
|
|
8
8
|
import Eye from "~assets/eye.svg";
|
|
9
9
|
import cn from "../../global/lib/cn";
|
|
@@ -93,11 +93,11 @@ export class PaintThickness {
|
|
|
93
93
|
render() {
|
|
94
94
|
var _a, _b;
|
|
95
95
|
const { imageGroups, parts } = (this === null || this === void 0 ? void 0 : this.vehicleInformation) ? (_a = this === null || this === void 0 ? void 0 : this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.paintThickness : { imageGroups: [], parts: [] };
|
|
96
|
-
return (h(Host, { key: '
|
|
96
|
+
return (h(Host, { key: '355f2df0a3e80a89c0fdcb8aabb0e40ccc700bf6' }, h("div", { key: '5aeb480a0b710ceb13d0bffcf6b71cc75b833143', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: '63cd6f54659b1cf4431fdf625993b3fa7a29bd39' }, h(Loading, { key: '012fb79e5ffbb120046a6ce2827f36406a0b048f', isLoading: this.state.includes('loading') }), h("div", { key: '1adcc025c0aec78f5c49898f8aa3aa7254692ade', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, h("div", { key: '73c09edaee5d53821c5ccbf664b939417138eb1b', class: cn('text-center pt-[4px] text-[20px]', { 'text-red-600': !!this.errorMessage }) }, (_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.vin), ['error', 'error-loading'].includes(this.state) && (h("div", { key: '24c95b96da8bf0281f8651933bf52de6c09159e7', class: "py-[16px]" }, h("div", { key: '0f93d0e593172c81f9e9793385fcb41ba442708e', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '253e4eae86844769ef81f278f87583fbab791dea', class: "flex mt-[12px] w-full max-h-[70dvh] overflow-hidden mx-auto rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '30ea8fa499edecc4d9a5f389d1b801041f3f8b41', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Paint Thickeness"), h("div", { key: '43bc2a9e95f73d028eee8c0b1d4ab07c3a54527b', class: "h-0 overflow-auto flex-1" }, !parts.length && h("div", { key: 'e5e6e8c3baa2f98df7d800a791d3c686013e357f', class: "h-[50px] px-[30px] flex items-center justify-center text-[18px]" }, "No parts are available."), !!parts.length && (h("table", { key: '17065cf14a8db4cddad1972deb0bdb36d826be04', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: '118e8822d316131999b936404afeafd495f10c8a', class: "top-0 font-bold sticky bg-white" }, h("tr", { key: '2823f3b683e6c7416ea5a6754b63fd49f2df03ac' }, ['Part', 'Left', 'Right'].map(title => (h("th", { key: title, class: "px-[15px] min-w-[100px] py-[15px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, title))))), h("tbody", { key: 'c5574301b73756700ff5ec867e31e379e573d96d' }, parts.map((part, idx) => (h("tr", { class: "transition-colors duration-100 hover:bg-slate-100", key: part.part }, ['part', 'left', 'right'].map(key => (h("td", { key: part.part + key, class: cn('px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]', {
|
|
97
97
|
'!border-none': idx === parts.length - 1,
|
|
98
|
-
}) }, part[key] || '...')))))))))))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '
|
|
98
|
+
}) }, part[key] || '...')))))))))))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '07a2c492c12647c16ac2b6e494056d9ccdb1ea55' }, !imageGroups.length && h("div", { key: '3c96acc6216c2523c1f2ea3d5d32f39072ccdc68', class: "h-[40px] px-[30px] flex text-red-500 items-center justify-center text-[18px]" }, "No image groups are available."), !!imageGroups.length && (h("div", { key: 'b3179fc893a9f8b92395a1bedafd6955d7f5b664', class: "py-[16px] gap-[16px] justify-center flex flex-wrap px-[24px] w-full" }, imageGroups.map(imageGroup => (h("div", { class: "shrink-0 rounded-lg shadow-sm border overflow-hidden flex flex-col", key: imageGroup.name }, h("h1", { class: "text-center border-b bg-slate-200 font-semibold p-[6px]" }, imageGroup.name), h("div", { class: "flex p-[12px] gap-[8px]" }, imageGroup.images.map(image => (h("div", { class: "flex gap-[8px]", key: image }, h("button", { onClick: ({ target }) => this.openImage(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" }, "Expand")), h("img", { class: "w-auto h-[150px] cursor-pointer shadow-sm rounded-lg transition-all duration-300", src: image }))))))))), h("div", { key: 'a727d06966fd3aac08d5c5f8bd16f4fe00040db2', onClick: () => this.closeImage(), style: { backdropFilter: this.expandedImage ? 'blur(3px)' : 'blur(0px)' }, class: cn('pointer-events-none w-[100dvw] h-[100dvh] fixed top-0 z-10 left-0 opacity-0 bg-black/40 transition-all duration-400', {
|
|
99
99
|
'pointer-events-auto opacity-100 delay-200': this.expandedImage,
|
|
100
|
-
}) }, h("button", { key: '
|
|
100
|
+
}) }, h("button", { key: 'dc3da2c8ac67e1c62db2958e29079b52ca514213', class: "flex flex-col mt-[16px] items-center justify-center size-12 float-right mr-[16px]", onClick: () => this.closeImage() }, h("div", { key: 'abfc5c11a56825803a3b87ee0e36f2e5a47f2953', class: "h-1 w-12 rounded-full rotate-45 absolute bg-white" }), h("div", { key: 'a37fa84c8e51ea026a2869c246645bf816effd1d', class: "h-1 w-12 rounded-full -rotate-45 absolute bg-white" }))), h("img", { key: '062421c196e4ffb107c5b0c1aa93d117bad3a18d', alt: "", id: "expanded-image", class: "fixed opacity-0 z-40 transition-all rounded-lg" }))))))))));
|
|
101
101
|
}
|
|
102
102
|
static get is() { return "paint-thickness"; }
|
|
103
103
|
static get encapsulation() { return "shadow"; }
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
5
|
import { Host, h } from "@stencil/core";
|
|
6
|
-
import Loading from "../
|
|
6
|
+
import Loading from "../components/Loading";
|
|
7
7
|
import cn from "../../global/lib/cn";
|
|
8
8
|
import { getVehicleInformation } from "../../global/api/vehicleInformation";
|
|
9
9
|
let mockData = {};
|
|
@@ -76,7 +76,7 @@ export class ServiceHistory {
|
|
|
76
76
|
}
|
|
77
77
|
render() {
|
|
78
78
|
var _a, _b, _c, _d;
|
|
79
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: '1b058ba5baea7e3249a66e5b7a040a673b140345' }, h("div", { key: '414432d67e85b8ad11a0f9a3bf9cf6336e06c8ce', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: 'd4129e8101efd34c820d64661c90c5d81a65a90c' }, h(Loading, { key: 'ff1d26799aceb06a1c7b22c556cc1391e3585481', isLoading: this.state.includes('loading') }), h("div", { key: '09a740c1f863f0bd90ea52e6f94c8c9add2901f4', class: cn('transition-all duration-700', { 'scale-0': this.state.includes('loading') || this.state === 'idle', 'opacity-0': this.state.includes('loading') }) }, h("div", { key: '1e40aeba7672c94cb70479d8cf4ca28e217a1ac2', class: cn('text-center pt-[4px] text-[20px]', { 'text-red-600': !!this.errorMessage }) }, (_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.vin), ['error', 'error-loading'].includes(this.state) && (h("div", { key: '4b2102507916ecdd06ce0fbc8fe5b82cf9463fe3', class: "py-[16px]" }, h("div", { key: '89a48cf522a860d2840e772ca0a2750ffd6f6652', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (h("div", { key: '42b2403fae1685bf6a49f756ac3a6aae31a6423d', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '462678b7179bb278d9a51845fda8c98deff3a790', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Service History"), h("div", { key: 'a3a484027fa040a6f80b94cdd3c8fcaf5d36a977', class: "h-0 overflow-auto flex-1" }, !((_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.serviceHistory.length) && h("div", { key: '4562aaa28b8941799d7203c49d0a457feb881616', class: "h-[80px] flex items-center justify-center text-[18px]" }, "No data is available."), !!((_c = this.vehicleInformation) === null || _c === void 0 ? void 0 : _c.serviceHistory.length) && (h("table", { key: 'cbb4515b99b33e65536d2f577439bf5c4bd19c61', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: 'a6829bbcb8578d51a4be89b02b4095b21966ed9f', class: "top-0 font-bold sticky bg-white" }, h("tr", { key: 'd6bfa489b6797e499173b8e67b28f0eb519e70ac' }, ['Branch', 'Dealer', 'Invoice No.', 'Date', 'Service Type', 'Odometer'].map(title => (h("th", { key: title, class: "px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]" }, title))))), h("tbody", { key: '27f91e98246790262d844c68290f12abdad7ba74' }, (_d = this.vehicleInformation) === null || _d === void 0 ? void 0 : _d.serviceHistory.map((service, idx) => (h("tr", { class: "transition-colors duration-100 hover:bg-slate-100", key: service.invoiceNumber }, ['branchName', 'companyName', 'invoiceNumber', 'serviceDate', 'serviceType', 'mileage'].map(serviceType => {
|
|
80
80
|
var _a;
|
|
81
81
|
return (h("td", { key: service.invoiceNumber + serviceType, class: cn('px-[10px] py-[20px] text-center whitespace-nowrap border-b border-[#d6d8dc]', {
|
|
82
82
|
'!border-none': idx === ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceHistory.length) - 1,
|