adp-web-components 0.0.26 → 0.0.28

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.
Files changed (130) hide show
  1. package/dist/cjs/{Loading-20e4ef35.js → Loading-df2a9144.js} +1 -1
  2. package/dist/cjs/dead-stock-lookup.cjs.entry.js +3 -3
  3. package/dist/cjs/distributor-lookup.cjs.entry.js +10 -8
  4. package/dist/cjs/dynamic-claim_6.cjs.entry.js +48 -15
  5. package/dist/cjs/dynamic-redeem.cjs.entry.js +4 -4
  6. package/dist/cjs/form-input.cjs.entry.js +1 -1
  7. package/dist/cjs/general-inquiry-form.cjs.entry.js +5 -2131
  8. package/dist/cjs/{index-97b8da6d.js → index-d2dc29e0.js} +13 -1
  9. package/dist/cjs/index.esm-c628daeb.js +2135 -0
  10. package/dist/cjs/loader.cjs.js +2 -2
  11. package/dist/cjs/manufacturer-lookup.cjs.entry.js +11 -9
  12. package/dist/cjs/shift-components.cjs.js +2 -2
  13. package/dist/cjs/vehicle-lookup.cjs.entry.js +2 -2
  14. package/dist/collection/collection-manifest.json +7 -7
  15. package/dist/collection/components/part-lookup/dead-stock-lookup.js +2 -2
  16. package/dist/collection/components/part-lookup/distributor-lookup.js +45 -7
  17. package/dist/collection/components/part-lookup/manufacturer-lookup.js +46 -8
  18. package/dist/collection/components/{dynamic-claim → vehicle-lookup}/dynamic-claim.js +6 -6
  19. package/dist/collection/components/{dynamic-redeem → vehicle-lookup}/dynamic-redeem.js +3 -3
  20. package/dist/collection/components/{paint-thickness → vehicle-lookup}/paint-thickness.js +4 -4
  21. package/dist/collection/components/{service-history → vehicle-lookup}/service-history.js +2 -2
  22. package/dist/collection/components/{vehicle-accessories → vehicle-lookup}/vehicle-accessories.js +4 -4
  23. package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +1 -1
  24. package/dist/collection/components/{vehicle-specification → vehicle-lookup}/vehicle-specification.js +2 -2
  25. package/dist/collection/components/{warranty-details → vehicle-lookup}/warranty-details.js +68 -30
  26. package/dist/collection/global/types/locale-schema.js +30 -0
  27. package/dist/components/dead-stock-lookup.js +1 -1
  28. package/dist/components/distributor-lookup.js +1 -1
  29. package/dist/components/dynamic-claim.js +1 -1
  30. package/dist/components/dynamic-redeem.js +1 -1
  31. package/dist/components/form-input.js +1 -1
  32. package/dist/components/general-inquiry-form.js +1 -1
  33. package/dist/components/index.js +1 -1
  34. package/dist/components/manufacturer-lookup.js +1 -1
  35. package/dist/components/p-0be9e62f.js +5 -0
  36. package/dist/components/p-0e4c747d.js +5 -0
  37. package/dist/components/{p-044025a6.js → p-5f03cbe9.js} +1 -1
  38. package/dist/components/p-719499ff.js +5 -0
  39. package/dist/components/{p-325b6857.js → p-7aec104e.js} +1 -1
  40. package/dist/components/{p-da533bd7.js → p-a3d447f9.js} +1 -1
  41. package/dist/components/{p-be0a5ab5.js → p-b2051f01.js} +1 -1
  42. package/dist/components/{p-84427fef.js → p-c2815a66.js} +1 -1
  43. package/dist/components/{p-05871c28.js → p-d07331eb.js} +1 -1
  44. package/dist/components/p-e446fb9d.js +5 -0
  45. package/dist/components/{p-f1ffc23d.js → p-ec05b4cd.js} +1 -1
  46. package/dist/components/{p-b90fd51c.js → p-f001d15b.js} +1 -1
  47. package/dist/components/paint-thickness.js +1 -1
  48. package/dist/components/service-history.js +1 -1
  49. package/dist/components/vehicle-accessories.js +1 -1
  50. package/dist/components/vehicle-lookup.js +1 -1
  51. package/dist/components/vehicle-specification.js +1 -1
  52. package/dist/components/warranty-details.js +1 -1
  53. package/dist/esm/{Loading-d050617c.js → Loading-3a10eb05.js} +1 -1
  54. package/dist/esm/dead-stock-lookup.entry.js +3 -3
  55. package/dist/esm/distributor-lookup.entry.js +10 -8
  56. package/dist/esm/dynamic-claim_6.entry.js +48 -15
  57. package/dist/esm/dynamic-redeem.entry.js +4 -4
  58. package/dist/esm/form-input.entry.js +1 -1
  59. package/dist/esm/general-inquiry-form.entry.js +2 -2128
  60. package/dist/esm/{index-ff1dab22.js → index-c3d67367.js} +13 -2
  61. package/dist/esm/index.esm-46e0cdad.js +2132 -0
  62. package/dist/esm/loader.js +3 -3
  63. package/dist/esm/manufacturer-lookup.entry.js +11 -9
  64. package/dist/esm/shift-components.js +3 -3
  65. package/dist/esm/vehicle-lookup.entry.js +2 -2
  66. package/dist/locales/ar.json +5 -0
  67. package/dist/locales/en.json +5 -0
  68. package/dist/locales/ku.json +5 -0
  69. package/dist/shift-components/{p-fad254c9.entry.js → p-02ec4905.entry.js} +1 -1
  70. package/dist/shift-components/p-0394e29f.entry.js +5 -0
  71. package/dist/shift-components/p-1265a8ec.entry.js +5 -0
  72. package/dist/shift-components/p-1f46b4d0.entry.js +5 -0
  73. package/dist/shift-components/p-7a17c535.entry.js +5 -0
  74. package/dist/shift-components/{p-65939a2f.js → p-89d232e9.js} +1 -1
  75. package/dist/shift-components/{p-73fa9b86.entry.js → p-9d6b2cfb.entry.js} +1 -1
  76. package/dist/shift-components/{p-2bb4415e.entry.js → p-bf83fa95.entry.js} +1 -1
  77. package/dist/shift-components/{p-2f7785d3.entry.js → p-d0683e92.entry.js} +1 -1
  78. package/dist/shift-components/p-dbaab71c.js +6 -0
  79. package/dist/shift-components/p-e446fb9d.js +5 -0
  80. package/dist/shift-components/shift-components.esm.js +1 -1
  81. package/dist/types/components/part-lookup/distributor-lookup.d.ts +2 -0
  82. package/dist/types/components/part-lookup/manufacturer-lookup.d.ts +2 -0
  83. package/dist/types/components/{dynamic-claim → vehicle-lookup}/dynamic-claim.d.ts +1 -1
  84. package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +6 -6
  85. package/dist/types/components/{warranty-details → vehicle-lookup}/warranty-details.d.ts +7 -2
  86. package/dist/types/components.d.ts +12 -0
  87. package/dist/types/global/types/locale-schema.d.ts +21 -0
  88. package/dist/types/global/types/part-information.d.ts +0 -3
  89. package/package.json +9 -4
  90. package/dist/components/p-442f4eff.js +0 -5
  91. package/dist/components/p-514c4736.js +0 -5
  92. package/dist/components/p-8385e385.js +0 -5
  93. package/dist/shift-components/p-2872727e.entry.js +0 -5
  94. package/dist/shift-components/p-48efd004.entry.js +0 -5
  95. package/dist/shift-components/p-8065a7e3.entry.js +0 -5
  96. package/dist/shift-components/p-9f58a33b.entry.js +0 -5
  97. package/dist/shift-components/p-f37b60d5.js +0 -6
  98. /package/dist/collection/components/{parts → components}/Loading.js +0 -0
  99. /package/dist/collection/components/{dynamic-claim/icons → vehicle-lookup/assets}/cancelled.svg +0 -0
  100. /package/dist/collection/components/{warranty-details → vehicle-lookup}/assets/check.svg +0 -0
  101. /package/dist/collection/components/{dynamic-claim/icons → vehicle-lookup/assets}/expired.svg +0 -0
  102. /package/dist/collection/components/{warranty-details → vehicle-lookup}/assets/loader.svg +0 -0
  103. /package/dist/collection/components/{dynamic-claim/icons → vehicle-lookup/assets}/pending.svg +0 -0
  104. /package/dist/collection/components/{dynamic-claim/icons → vehicle-lookup/assets}/processed.svg +0 -0
  105. /package/dist/collection/components/{warranty-details → vehicle-lookup}/assets/x-mark.svg +0 -0
  106. /package/dist/collection/components/{warranty-details → vehicle-lookup}/components/CardsContainer.js +0 -0
  107. /package/dist/collection/components/{warranty-details → vehicle-lookup}/components/Loading.js +0 -0
  108. /package/dist/collection/components/{warranty-details → vehicle-lookup}/components/SSCTable.js +0 -0
  109. /package/dist/collection/components/{warranty-details → vehicle-lookup}/components/StatusCard.js +0 -0
  110. /package/dist/collection/components/{dynamic-claim → vehicle-lookup}/dynamic-claim.css +0 -0
  111. /package/dist/collection/components/{dynamic-redeem → vehicle-lookup}/dynamic-redeem.css +0 -0
  112. /package/dist/collection/components/{paint-thickness → vehicle-lookup}/paint-thickness.css +0 -0
  113. /package/dist/collection/components/{service-history → vehicle-lookup}/service-history.css +0 -0
  114. /package/dist/collection/components/{vehicle-accessories → vehicle-lookup}/vehicle-accessories.css +0 -0
  115. /package/dist/collection/components/{vehicle-specification → vehicle-lookup}/vehicle-specification.css +0 -0
  116. /package/dist/collection/components/{warranty-details → vehicle-lookup}/warranty-details.css +0 -0
  117. /package/dist/collection/templates/{parts-lookup → part-lookup}/mock-data.js +0 -0
  118. /package/dist/collection/templates/{mock-data.js → vehicle-lookup/mock-data.js} +0 -0
  119. /package/dist/collection/templates/{vehicle-lookup.js → vehicle-lookup/vehicle-lookup.js} +0 -0
  120. /package/dist/collection/templates/{warranty-mock-data.js → vehicle-lookup/warranty-mock-data.js} +0 -0
  121. /package/dist/types/components/{parts → components}/Loading.d.ts +0 -0
  122. /package/dist/types/components/{warranty-details → vehicle-lookup}/components/CardsContainer.d.ts +0 -0
  123. /package/dist/types/components/{warranty-details → vehicle-lookup}/components/Loading.d.ts +0 -0
  124. /package/dist/types/components/{warranty-details → vehicle-lookup}/components/SSCTable.d.ts +0 -0
  125. /package/dist/types/components/{warranty-details → vehicle-lookup}/components/StatusCard.d.ts +0 -0
  126. /package/dist/types/components/{dynamic-redeem → vehicle-lookup}/dynamic-redeem.d.ts +0 -0
  127. /package/dist/types/components/{paint-thickness → vehicle-lookup}/paint-thickness.d.ts +0 -0
  128. /package/dist/types/components/{service-history → vehicle-lookup}/service-history.d.ts +0 -0
  129. /package/dist/types/components/{vehicle-accessories → vehicle-lookup}/vehicle-accessories.d.ts +0 -0
  130. /package/dist/types/components/{vehicle-specification → vehicle-lookup}/vehicle-specification.d.ts +0 -0
@@ -6,13 +6,13 @@
6
6
 
7
7
  Object.defineProperty(exports, '__esModule', { value: true });
8
8
 
9
- const index = require('./index-97b8da6d.js');
9
+ const index = require('./index-d2dc29e0.js');
10
10
  const appGlobals = require('./app-globals-6d543be0.js');
11
11
 
12
12
  const defineCustomElements = async (win, options) => {
13
13
  if (typeof window === 'undefined') return undefined;
14
14
  await appGlobals.globalScripts();
15
- 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);
15
+ 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"],"isDev":[4,"is-dev"],"showSsc":[4,"show-ssc"],"queryString":[1,"query-string"],"recaptchaKey":[1,"recaptcha-key"],"language":[1],"showWarranty":[4,"show-warranty"],"unauthorizedSscLookupBaseUrl":[1,"unauthorized-ssc-lookup-base-url"],"unauthorizedSscLookupQueryString":[1,"unauthorized-ssc-lookup-query-string"],"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],"locale":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"language":["changeLanguage"],"state":["loadingListener"]}]]]], options);
16
16
  };
17
17
 
18
18
  exports.setNonce = index.setNonce;
@@ -6,8 +6,8 @@
6
6
 
7
7
  Object.defineProperty(exports, '__esModule', { value: true });
8
8
 
9
- const index = require('./index-97b8da6d.js');
10
- const Loading = require('./Loading-20e4ef35.js');
9
+ const index = require('./index-d2dc29e0.js');
10
+ const Loading = require('./Loading-df2a9144.js');
11
11
  const cn = require('./cn-f559f9e5.js');
12
12
  const partInformation = require('./partInformation-07651204.js');
13
13
  const general = require('./general-a1e72036.js');
@@ -22,6 +22,8 @@ const ManufacturerLookup = class {
22
22
  this.baseUrl = '';
23
23
  this.isDev = false;
24
24
  this.queryString = '';
25
+ this.hiddenFields = '';
26
+ this.localizationName = '';
25
27
  this.headerTitle = 'Manufacturer';
26
28
  this.loadingStateChange = undefined;
27
29
  this.loadedResponse = undefined;
@@ -84,15 +86,15 @@ const ManufacturerLookup = class {
84
86
  mockData = newMockData;
85
87
  }
86
88
  render() {
87
- var _a, _b, _c, _d, _e;
88
- const localName = this.partInformation ? ((_a = this.partInformation) === null || _a === void 0 ? void 0 : _a.localName) || 'russian' : 'russian';
89
- const hiddenFields = this.partInformation ? ((_b = this.partInformation.tmcPart) === null || _b === void 0 ? void 0 : _b.hiddenFields) || [] : [];
89
+ var _a, _b, _c;
90
+ const localName = this.partInformation ? this.localizationName || 'russian' : 'russian';
91
+ const hiddenFields = this.partInformation ? this.hiddenFields.split(',').map(field => field.trim()) || [] : [];
90
92
  const manufacturerData = this.partInformation
91
93
  ? [
92
94
  { label: 'Origin', key: 'origin', value: this.partInformation.tmcPart.origin },
93
- { label: 'Warranty Price', key: 'warrantyPrice', value: (_c = this.partInformation.tmcPart.warrantyPrice) === null || _c === void 0 ? void 0 : _c.toFixed(2) },
94
- { label: 'Special Price', key: 'specialPrice', value: (_d = this.partInformation.tmcPart.specialPrice) === null || _d === void 0 ? void 0 : _d.toFixed(2) },
95
- { label: 'Wholesales Price', key: 'salesPrice', value: (_e = this.partInformation.tmcPart.salesPrice) === null || _e === void 0 ? void 0 : _e.toFixed(2) },
95
+ { label: 'Warranty Price', key: 'warrantyPrice', value: (_a = this.partInformation.tmcPart.warrantyPrice) === null || _a === void 0 ? void 0 : _a.toFixed(2) },
96
+ { label: 'Special Price', key: 'specialPrice', value: (_b = this.partInformation.tmcPart.specialPrice) === null || _b === void 0 ? void 0 : _b.toFixed(2) },
97
+ { label: 'Wholesales Price', key: 'salesPrice', value: (_c = this.partInformation.tmcPart.salesPrice) === null || _c === void 0 ? void 0 : _c.toFixed(2) },
96
98
  { label: 'PNC', key: 'pnc', value: this.partInformation.tmcPart.pnc },
97
99
  { label: `PNC ${general.capitalize(localName)} Name`, key: 'pncLocalName', value: this.partInformation.tmcPart.pncLocalName },
98
100
  { label: 'Bin Code', key: 'binCode', value: this.partInformation.tmcPart.binCode },
@@ -107,7 +109,7 @@ const ManufacturerLookup = class {
107
109
  ]
108
110
  : [];
109
111
  const displayedManufacturerData = manufacturerData.filter(part => !hiddenFields.includes(part.key));
110
- return (index.h(index.Host, { key: '87e9cab3e4a31d7ae4f5111dc9c2084005611dda' }, index.h("div", { key: '18d25225ec6816c736d7e83b400242ff7bc79689', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, index.h("div", { key: '33f32bf2c16a9816ece826e15d36f30033995c36' }, index.h(Loading.Loading, { key: '12428ed032543b7a2eadedb98f3c6d038fcb718f', isLoading: this.state.includes('loading') }), index.h("div", { key: '2395b76829cf167bd0c2dc90fc673d4f377de245', class: cn.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) && (index.h("div", { key: '1312772acaf6d2ca7cec5362a68d1a7381022be1', class: "py-[16px]" }, index.h("div", { key: '742f76a23e9b2b3a5d29e6d5ab3026a793669d85', class: " px-[16px] py-[8px] border reject-card text-[20px] rounded-[8px] w-fit mx-auto" }, this.errorMessage))), ['data', 'data-loading'].includes(this.state) && (index.h("div", { key: 'b2d639d00ca896a1dacc58357223ef8b69eafd43' }, index.h("div", { key: '3a63a5357fcab91410199ee9eb0e3775b67266c7', class: "flex mt-[12px] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, index.h("div", { key: 'bb82e17a98e1175fb0933bc51ee446af98619039', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, this.headerTitle), index.h("div", { key: '73a9c933212b7b20886a55fb40be31ed44dfb59d', class: "px-[30px] py-[10px] flex flex-col gap-[15px]" }, index.h("div", { key: 'f882dbf62c5271fc5818f444f69bb3f2b4480e46', class: "grid grid-cols-3 gap-[50px]" }, displayedManufacturerData.map(({ label, value, key }) => (index.h("div", { key: key, class: "flex flex-col flex-1" }, index.h("strong", { class: "py-[10px] px-0 border-b-[gray] border-b" }, label), index.h("div", { class: "py-[10px] px-0" }, value))))))))))))));
112
+ return (index.h(index.Host, { key: '1ad38e17ff3255b89145ba040254f198974deb53' }, index.h("div", { key: 'b0c5cc452c93236ad41e2431bf18541db67827d0', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, index.h("div", { key: 'ceffa481201dc0b881fa583f43c7da445f8e9cc8' }, index.h(Loading.Loading, { key: '16bdf498e39fe381050ea33dac6d00df4b3ae05f', isLoading: this.state.includes('loading') }), index.h("div", { key: '51222801ac0728fcde2472ec74022c16e1157ce9', class: cn.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) && (index.h("div", { key: 'cc6965c0ade12609bb6f9a61c250a550f4d70007', class: "py-[16px]" }, index.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) && (index.h("div", { key: '985204509c072b21dc94b2a3005fea81d712b30d' }, index.h("div", { key: '42ce83c26e55f8d6eb00455820f67670f44b712d', class: "flex mt-[12px] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, index.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), index.h("div", { key: '8f825747cb1ccce7575ea097a34dfb4944993a9a', class: "px-[30px] py-[10px] flex flex-col gap-[15px]" }, index.h("div", { key: '94ced9aec06e6c09e942366e3271a6d895f4b68b', class: "grid grid-cols-3 gap-[50px]" }, displayedManufacturerData.map(({ label, value, key }) => (index.h("div", { key: key, class: "flex flex-col flex-1" }, index.h("strong", { class: "py-[10px] px-0 border-b-[gray] border-b" }, label), index.h("div", { class: "py-[10px] px-0" }, value))))))))))))));
111
113
  }
112
114
  get el() { return index.getElement(this); }
113
115
  static get watchers() { return {
@@ -6,7 +6,7 @@
6
6
 
7
7
  Object.defineProperty(exports, '__esModule', { value: true });
8
8
 
9
- const index = require('./index-97b8da6d.js');
9
+ const index = require('./index-d2dc29e0.js');
10
10
  const appGlobals = require('./app-globals-6d543be0.js');
11
11
 
12
12
  /*
@@ -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"],"isDev":[4,"is-dev"],"showSsc":[4,"show-ssc"],"queryString":[1,"query-string"],"recaptchaKey":[1,"recaptcha-key"],"language":[1],"showWarranty":[4,"show-warranty"],"unauthorizedSscLookupBaseUrl":[1,"unauthorized-ssc-lookup-base-url"],"unauthorizedSscLookupQueryString":[1,"unauthorized-ssc-lookup-query-string"],"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],"locale":[32],"setData":[64],"fetchData":[64],"setMockData":[64]},null,{"language":["changeLanguage"],"state":["loadingListener"]}]]]], options);
27
27
  });
28
28
 
29
29
  exports.setNonce = index.setNonce;
@@ -6,7 +6,7 @@
6
6
 
7
7
  Object.defineProperty(exports, '__esModule', { value: true });
8
8
 
9
- const index = require('./index-97b8da6d.js');
9
+ const index = require('./index-d2dc29e0.js');
10
10
  const cn = require('./cn-f559f9e5.js');
11
11
 
12
12
  function validateVin(vin) {
@@ -161,7 +161,7 @@ const VehicleLookup = class {
161
161
  });
162
162
  }
163
163
  render() {
164
- return (index.h(index.Host, { key: '915de37781baebae7789ef128265b621552ea367' }, index.h("div", { key: '28c7621a5614d64a760e338afec183f80e3e4292', class: cn.cn('w-full', { hidden: this.activeElement !== 'vehicle-specification' }) }, index.h("vehicle-specification", { key: '3e02c7a30048634186044f763653a1d93ae2392d', isDev: this.isDev, "base-url": this.baseUrl, "query-string": this.queryString })), index.h("div", { key: '55672a129b9fb6e9d2d1b44ae79bc0e8f829f2c9', class: cn.cn('w-full', { hidden: this.activeElement !== 'vehicle-accessories' }) }, index.h("vehicle-accessories", { key: 'e9d16fc4f81221a890d8853da14f2b80ce774c13', isDev: this.isDev, "base-url": this.baseUrl, "query-string": this.queryString })), index.h("div", { key: '88fa2420a94db307dd8900972b137dbfbc6be79d', class: cn.cn('w-full', { hidden: this.activeElement !== 'warranty-details' }) }, index.h("warranty-details", { key: 'bb6cdb852a4deed8819b471c65047a623f5e6d6b', "show-ssc": "true", "show-warranty": "true", isDev: this.isDev, "base-url": this.baseUrl, "query-string": this.queryString }, index.h("slot", { key: '7a00495c356c566c1643ee4246c7887924529ddf' }))), index.h("div", { key: '74acc9254ac994fd708858e9089b58f58da20952', class: cn.cn('w-full', { hidden: this.activeElement !== 'service-history' }) }, index.h("service-history", { key: '6959bdd34fadac6a36d61f4b2ac1c5c3f8bd9a34', isDev: this.isDev, "base-url": this.baseUrl, "query-string": this.queryString })), index.h("div", { key: '71748aefc8a90526c5ec78ee353bd011fbe069b1', class: cn.cn('w-full', { hidden: this.activeElement !== 'paint-thickness' }) }, index.h("paint-thickness", { key: '71da10b78a94011bedca1d5bbf7e351968d53e52', isDev: this.isDev, "base-url": this.baseUrl, "query-string": this.queryString })), index.h("div", { key: 'b786c15b52fb6f663848c6c4cdc27e163f579652', class: cn.cn('w-full', { hidden: this.activeElement !== 'dynamic-claim' }) }, index.h("dynamic-claim", { key: '8dc4bf0c1dc249a42a3ee1ae50d82e9d3357bf8e', isDev: this.isDev, "base-url": this.baseUrl, "query-string": this.queryString }))));
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/warranty-details/warranty-details.js",
4
- "components/vehicle-accessories/vehicle-accessories.js",
5
- "components/vehicle-specification/vehicle-specification.js",
6
- "components/service-history/service-history.js",
7
- "components/paint-thickness/paint-thickness.js",
8
- "components/dynamic-redeem/dynamic-redeem.js",
9
- "components/dynamic-claim/dynamic-claim.js",
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 "../parts/Loading";
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: '03372a6f91fd6291de7e6fc51ab5012bc5ab2b98' }, h("div", { key: 'e926503adba0274834ab8b06ce370faace79447b', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: 'f3883fc0b09366baf94ed65f8b13590ac1adb975' }, h(Loading, { key: 'd01c5df2db30920852b35a6e6d6cb06cde76f395', isLoading: this.state.includes('loading') }), h("div", { key: 'de52273e824e9499aa77b3763871d010184232b8', 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: '4995acd3f10a212d93838e2d5e89693829fbb10a', class: "py-[16px]" }, h("div", { key: '38064e79243ba14260cbaea211b6d82cbd299f5e', 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: '156cbe984af29e94d697eac435226a8d69c05545' }, h("div", { key: '573d44fd10f287903f04de74c78302cc0ffe90f1', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '93f6aa85947fb2fa924478fa5167a0e894188958', 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 :
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 "../parts/Loading";
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, _d, _e;
78
- const localName = this.partInformation ? ((_a = this.partInformation) === null || _a === void 0 ? void 0 : _a.localName) || 'russian' : 'russian';
79
- const hiddenFields = this.partInformation ? ((_b = this.partInformation.stockParts[0]) === null || _b === void 0 ? void 0 : _b.hiddenFields) || [] : [];
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: (_c = this.partInformation.stockParts[0].fob) === null || _c === void 0 ? void 0 : _c.toFixed(2) },
86
- { label: 'Recommended Retail price', key: 'price', value: (_d = this.partInformation.stockParts[0].price) === null || _d === void 0 ? void 0 : _d.toFixed(2) },
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: '2d5325fe5c9de1a091b026c47f2cff9ea395c819' }, h("div", { key: '4a59866ed5ff95e2737d56dbf446ba9435c44665', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: 'cb98c5441b5a402b1a88ca68c48bf2deee662a32' }, h(Loading, { key: '39e40484976ad5804d04424f7049e83d845114d9', isLoading: this.state.includes('loading') }), h("div", { key: '27c0ceb663e66b16028b7fb1c32277a39745be07', 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: '640b12bc46933ae8cadae07d92290b16a3228a1d', class: "py-[16px]" }, h("div", { key: 'c9aefd71f32e36f28b3388d1ad7aed636bc26b59', 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: 'e9a73eb2d8841effe26dd7eb15feb456dc8540ec' }, h("div", { key: '8f30a901633ff6ccce7721e773201f4934a69f23', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: '8aa933eb7ec7fa687e74f7492fc4fc442e1937ca', class: "w-full h-[40px] flex shrink-0 justify-center text-[18px] items-center text-[#383c43] text-center bg-[#e1e3e5]" }, "Info"), h("div", { key: 'e65a07ca60cb81b1770211c832c813a49197e577', class: "py-[10px] px-[30px] flex flex-col gap-[15px]" }, h("div", { key: 'dc21d61f0998a6a41a27b380143b5fbfa4bcc794', 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: '5e99f34240027ed1945f6dd2d991640d13460521', class: "flex mt-[12px] max-h-[70dvh] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: 'aba50f7957b0a8d8bc7152c94184d9cfcb91078f', 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: '08867b8035baa06558f13ab719a371468d95b6c7', class: "flex flex-col gap-[15px]" }, h("table", { key: 'a2e56371be24bc625b551520cdecc344651c6042', class: "w-full overflow-auto relative border-collapse" }, h("thead", { key: 'da5c40f1e778a6edd56ec5722ef8f97ee3db7585', class: "top-0 font-bold sticky bg-white" }, h("tr", { key: '662ac441024e2afba028365c19f42680774c6301' }, ['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: 'e637cc0a5636ddf73c6d9709ce0ad90c15a34fdc' }, (_e = this.partInformation) === null || _e === void 0 ? void 0 : _e.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]', {
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 "../parts/Loading";
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, _d, _e;
79
- const localName = this.partInformation ? ((_a = this.partInformation) === null || _a === void 0 ? void 0 : _a.localName) || 'russian' : 'russian';
80
- const hiddenFields = this.partInformation ? ((_b = this.partInformation.tmcPart) === null || _b === void 0 ? void 0 : _b.hiddenFields) || [] : [];
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: (_c = this.partInformation.tmcPart.warrantyPrice) === null || _c === void 0 ? void 0 : _c.toFixed(2) },
85
- { label: 'Special Price', key: 'specialPrice', value: (_d = this.partInformation.tmcPart.specialPrice) === null || _d === void 0 ? void 0 : _d.toFixed(2) },
86
- { label: 'Wholesales Price', key: 'salesPrice', value: (_e = this.partInformation.tmcPart.salesPrice) === null || _e === void 0 ? void 0 : _e.toFixed(2) },
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: '87e9cab3e4a31d7ae4f5111dc9c2084005611dda' }, h("div", { key: '18d25225ec6816c736d7e83b400242ff7bc79689', class: "min-h-[100px] relative transition-all duration-300 overflow-hidden" }, h("div", { key: '33f32bf2c16a9816ece826e15d36f30033995c36' }, h(Loading, { key: '12428ed032543b7a2eadedb98f3c6d038fcb718f', isLoading: this.state.includes('loading') }), h("div", { key: '2395b76829cf167bd0c2dc90fc673d4f377de245', 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: '1312772acaf6d2ca7cec5362a68d1a7381022be1', class: "py-[16px]" }, h("div", { key: '742f76a23e9b2b3a5d29e6d5ab3026a793669d85', 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: 'b2d639d00ca896a1dacc58357223ef8b69eafd43' }, h("div", { key: '3a63a5357fcab91410199ee9eb0e3775b67266c7', class: "flex mt-[12px] overflow-hidden rounded-[4px] flex-col border border-[#d6d8dc]" }, h("div", { key: 'bb82e17a98e1175fb0933bc51ee446af98619039', 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: '73a9c933212b7b20886a55fb40be31ed44dfb59d', class: "px-[30px] py-[10px] flex flex-col gap-[15px]" }, h("div", { key: 'f882dbf62c5271fc5818f444f69bb3f2b4480e46', 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))))))))))))));
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 "./icons/expired.svg";
8
- import pendingIcon from "./icons/pending.svg";
9
- import cancelledIcon from "./icons/cancelled.svg";
10
- import processedIcon from "./icons/processed.svg";
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: '541c3dd78435e13a8d8bbd9d9e1bdd3e421ff700' }, h("dynamic-redeem", { key: '98a8918ed4ee9b3c65eb76c6d219c397dc038938', id: "dynamic-redeem" }), h("div", { key: '21b931d1ac7ff57a75cc235e5a9d7383a60bcce9', class: cn('dynamic-claim-wrapper', { loading: this.isLoading, idle: this.isIdle }) }, h("div", { key: '7a11a3db11737b27f570b7722c84c264a9927cb5', class: "dynamic-claim-header" }, h("strong", { key: '90134387cef16786e348a6cee3949113c6b789cc', onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-header-vin load-animation" }, this.errorMessage && h("span", { key: '848036da3b9fe9ef737e2a461dc6475651ee9b3c', style: { color: 'red' } }, this.errorMessage), !this.errorMessage && ((_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.vin))), h("div", { key: '046d01dbbf1c91fc735ce41c6f2ffaa41000f7ad', class: "dynamic-claim-body" }, h("div", { key: '83bc44663ebdf506306b04c7cee43d3051bc52b8', class: "loading-lane" }, h("div", { key: '4b7c8ac724afdc40379d58c7d77810bc1a10704b', class: "dynamic-claim-loading-slider" }, h("div", { key: '8404f36fd0afc3f0d052c5144b5698e19a8f25bb', class: "dynamic-claim-loading-slider-line" }), h("div", { key: '0c0b553b1139c65ce4261ef7382791931f9558ac', class: "dynamic-claim-loading-slider-subline dynamic-claim-inc" }), h("div", { key: 'afcad75d078227301ffc7738a536cd765f5696b8', class: "dynamic-claim-loading-slider-subline dynamic-claim-dec" }))), h("div", { key: '4885864414ed5efe3928e331cf8fbd46ba705467', class: "dynamic-claim-progress-lane" }, serviceItems.map((item, idx) => {
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: '1bc2d25dae363c03425128ea08be4b076ae11c66', class: "dynamic-claim-progress-bar" }))))));
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"; }