adp-web-components 0.0.89 → 0.0.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (408) hide show
  1. package/dist/cjs/cn-BHnqYtun.js +2597 -0
  2. package/dist/cjs/contact-us-form.cjs.entry.js +11 -22
  3. package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +15 -32
  4. package/dist/cjs/flexible-container.cjs.entry.js +134 -0
  5. package/dist/cjs/form-dialog_8.cjs.entry.js +44 -100
  6. package/dist/cjs/{get-local-language-e539cfdc.js → get-local-language-XsAJEAsO.js} +338 -295
  7. package/dist/cjs/{index-a8de3655.js → index-BjyafrBw.js} +525 -288
  8. package/dist/cjs/information-table.cjs.entry.js +40 -0
  9. package/dist/cjs/loader.cjs.js +3 -6
  10. package/dist/cjs/loading-spinner.cjs.entry.js +6 -10
  11. package/dist/cjs/part-lookup.cjs.entry.js +14 -21
  12. package/dist/cjs/service-booking-form.cjs.entry.js +10 -21
  13. package/dist/cjs/shift-accordion.cjs.entry.js +29 -0
  14. package/dist/cjs/shift-components.cjs.js +7 -8
  15. package/dist/cjs/shift-slider.cjs.entry.js +70 -0
  16. package/dist/cjs/shift-tab-content_7.cjs.entry.js +1487 -0
  17. package/dist/cjs/shift-tabs_2.cjs.entry.js +301 -0
  18. package/dist/cjs/{type-3183db65.js → type-BAD2dFzP.js} +32 -123
  19. package/dist/cjs/{type-87edb16d.js → type-CCsnwaKp.js} +11 -8
  20. package/dist/cjs/{type-c576b922.js → type-DT5vXP0E.js} +4 -4
  21. package/dist/cjs/{type-3d22f1fc.js → vehicle-info-layout-BSAeLW7e.js} +11 -1
  22. package/dist/cjs/vehicle-lookup.cjs.entry.js +60 -50
  23. package/dist/cjs/vin-extractor.cjs.entry.js +22 -32
  24. package/dist/collection/collection-manifest.json +19 -13
  25. package/dist/collection/components/components/card-content.js +7 -0
  26. package/dist/collection/components/components/flexible-container.css +1 -0
  27. package/dist/collection/components/components/flexible-container.js +317 -0
  28. package/dist/collection/components/components/information-table.css +1 -0
  29. package/dist/collection/components/components/information-table.js +137 -0
  30. package/dist/collection/components/components/loading-spinner.css +1 -1
  31. package/dist/collection/components/components/loading-spinner.js +4 -5
  32. package/dist/collection/components/components/material-card.js +34 -0
  33. package/dist/collection/components/{vehicle-lookup/service-history.css → components/shift-accordion.css} +1 -1
  34. package/dist/collection/components/components/shift-accordion.js +102 -0
  35. package/dist/collection/components/components/shift-slider.css +1 -0
  36. package/dist/collection/components/components/shift-slider.js +95 -0
  37. package/dist/collection/components/components/shift-tab-content.css +1 -0
  38. package/dist/collection/components/components/shift-tab-content.js +98 -0
  39. package/dist/collection/components/components/shift-tabs.css +1 -0
  40. package/dist/collection/components/components/shift-tabs.js +140 -0
  41. package/dist/collection/components/components/vehicle-info-layout.js +7 -0
  42. package/dist/collection/components/form-elements/form-dialog.css +1 -1
  43. package/dist/collection/components/form-elements/form-dialog.js +13 -9
  44. package/dist/collection/components/form-elements/form-input.css +1 -1
  45. package/dist/collection/components/form-elements/form-input.js +42 -26
  46. package/dist/collection/components/form-elements/form-select.css +1 -1
  47. package/dist/collection/components/form-elements/form-select.js +54 -38
  48. package/dist/collection/components/form-elements/form-shadow-input.css +1 -1
  49. package/dist/collection/components/form-elements/form-shadow-input.js +11 -9
  50. package/dist/collection/components/form-elements/form-structure-error.css +1 -1
  51. package/dist/collection/components/form-elements/form-structure-error.js +4 -2
  52. package/dist/collection/components/form-elements/form-structure.css +1 -1
  53. package/dist/collection/components/form-elements/form-structure.js +29 -13
  54. package/dist/collection/components/form-elements/form-submit.css +1 -1
  55. package/dist/collection/components/form-elements/form-submit.js +15 -7
  56. package/dist/collection/components/form-elements/form-text-area.css +1 -1
  57. package/dist/collection/components/form-elements/form-text-area.js +33 -20
  58. package/dist/collection/components/forms/contact-us/form.css +1 -1
  59. package/dist/collection/components/forms/contact-us-form.js +37 -22
  60. package/dist/collection/components/forms/service-booking-form.js +37 -22
  61. package/dist/collection/components/part-lookup/dead-stock-lookup.js +40 -27
  62. package/dist/collection/components/part-lookup/distributor-lookup.js +46 -29
  63. package/dist/collection/components/part-lookup/manufacturer-lookup.js +54 -35
  64. package/dist/collection/components/part-lookup/part-lookup.js +39 -23
  65. package/dist/collection/components/vehicle-lookup/components/CardsContainer.js +5 -5
  66. package/dist/collection/components/vehicle-lookup/components/StatusCard.js +2 -2
  67. package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +1 -1
  68. package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +99 -47
  69. package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.css +1 -0
  70. package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +959 -0
  71. package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.css +1 -0
  72. package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.js +590 -0
  73. package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -1
  74. package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +123 -53
  75. package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.css +1 -0
  76. package/dist/collection/components/vehicle-lookup/{paint-thickness.js → vehicle-paint-thickness.js} +99 -43
  77. package/dist/collection/components/vehicle-lookup/vehicle-service-history.css +3 -0
  78. package/dist/collection/components/vehicle-lookup/{service-history.js → vehicle-service-history.js} +101 -38
  79. package/dist/collection/components/vehicle-lookup/vehicle-specification.css +3 -1
  80. package/dist/collection/components/vehicle-lookup/vehicle-specification.js +66 -38
  81. package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.css +3 -0
  82. package/dist/collection/components/vehicle-lookup/{warranty-details.js → vehicle-warranty-details.js} +168 -54
  83. package/dist/collection/components/vin-extractor/vin-extractor.js +60 -39
  84. package/dist/collection/global/lib/children-with-tag.js +24 -0
  85. package/dist/collection/global/lib/container-has-tag.js +28 -0
  86. package/dist/collection/global/lib/get-local-language.js +15 -5
  87. package/dist/collection/global/lib/scroll-into-container-view.js +16 -0
  88. package/dist/collection/global/types/generated/part/dead-stock-dto.js +1 -0
  89. package/dist/collection/global/types/generated/part/hs-code-dto.js +1 -0
  90. package/dist/collection/global/types/generated/part/part-lookup-dto.js +1 -0
  91. package/dist/collection/global/types/generated/part/part-price-dto.js +1 -0
  92. package/dist/collection/global/types/generated/part/price-dto.js +1 -0
  93. package/dist/collection/global/types/generated/part/stock-part-dto.js +1 -0
  94. package/dist/collection/global/types/generated/vehicle-lookup/accessory-dto.js +1 -0
  95. package/dist/collection/global/types/generated/vehicle-lookup/paint-thickness-dto.js +1 -0
  96. package/dist/collection/global/types/generated/vehicle-lookup/paint-thickness-image-dto.js +1 -0
  97. package/dist/collection/global/types/generated/vehicle-lookup/paint-thickness-part-dto.js +1 -0
  98. package/dist/collection/global/types/generated/vehicle-lookup/ssc-dto.js +1 -0
  99. package/dist/collection/global/types/generated/vehicle-lookup/ssc-labor-dto.js +1 -0
  100. package/dist/collection/global/types/generated/vehicle-lookup/ssc-part-dto.js +1 -0
  101. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-broker-sale-information.js +1 -0
  102. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-identifiers-dto.js +1 -0
  103. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-labor-dto.js +1 -0
  104. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-lookup-dto.js +1 -0
  105. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-part-dto.js +1 -0
  106. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-sale-information.js +1 -0
  107. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-service-history-dto.js +1 -0
  108. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-service-item-dto.js +1 -0
  109. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-service-item-group.js +1 -0
  110. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-specification-dto.js +1 -0
  111. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-variant-info-dto.js +1 -0
  112. package/dist/collection/global/types/generated/vehicle-lookup/vehicle-warranty-dto.js +1 -0
  113. package/dist/collection/locale-mapper.js +3 -3
  114. package/dist/collection/locales/partLookup/manufacturer/type.js +3 -3
  115. package/dist/collection/locales/vehicleLookup/{dynamicClaim → claimableItems}/type.js +9 -6
  116. package/dist/collection/locales/vehicleLookup/warranty/type.js +1 -0
  117. package/dist/collection/locales/vehicleLookup/wrapper-type.js +2 -2
  118. package/dist/collection/templates/part-lookup/mock-data.js +14 -14
  119. package/dist/collection/templates/vehicle-lookup/mock-data.js +228 -191
  120. package/dist/collection/templates/vehicle-lookup/warranty-mock-data.js +45 -27
  121. package/dist/components/contact-us-form.js +1 -1
  122. package/dist/components/dead-stock-lookup.js +1 -1
  123. package/dist/components/distributor-lookup.js +1 -1
  124. package/dist/components/flexible-container.d.ts +11 -0
  125. package/dist/components/flexible-container.js +5 -0
  126. package/dist/components/form-dialog.js +1 -1
  127. package/dist/components/form-input.js +1 -1
  128. package/dist/components/form-select.js +1 -1
  129. package/dist/components/form-shadow-input.js +1 -1
  130. package/dist/components/form-structure-error.js +1 -1
  131. package/dist/components/form-structure.js +1 -1
  132. package/dist/components/form-submit.js +1 -1
  133. package/dist/components/form-text-area.js +1 -1
  134. package/dist/components/index.js +1 -1
  135. package/dist/components/{paint-thickness.d.ts → information-table.d.ts} +4 -4
  136. package/dist/components/information-table.js +5 -0
  137. package/dist/components/loading-spinner.js +1 -1
  138. package/dist/components/manufacturer-lookup.js +1 -1
  139. package/dist/components/p-1vy-Ba6r.js +5 -0
  140. package/dist/components/p-B6QhQCZi.js +5 -0
  141. package/dist/components/p-BDkK65_1.js +5 -0
  142. package/dist/components/p-BK16Cn81.js +5 -0
  143. package/dist/components/{p-c981ee34.js → p-BaJpYztb.js} +1 -1
  144. package/dist/components/p-C-4kx8qU.js +5 -0
  145. package/dist/components/p-C1F_f1WE.js +5 -0
  146. package/dist/components/p-CACnUI7c.js +5 -0
  147. package/dist/components/p-CDOvd2iD.js +5 -0
  148. package/dist/components/p-CGzOJT7g.js +5 -0
  149. package/dist/components/p-CINfIgzX.js +5 -0
  150. package/dist/components/p-CJpwqpuQ.js +5 -0
  151. package/dist/components/p-CK4E5G0i.js +5 -0
  152. package/dist/components/p-CUqXnLyM.js +5 -0
  153. package/dist/components/p-CjWDXQ_q.js +5 -0
  154. package/dist/components/p-Cl9ct-bZ.js +5 -0
  155. package/dist/components/p-CqGVdvFp.js +5 -0
  156. package/dist/components/p-D2bxjSGr.js +5 -0
  157. package/dist/components/p-D63WC2_Y.js +5 -0
  158. package/dist/components/p-D7yku_Qi.js +5 -0
  159. package/dist/components/p-DXHx6lre.js +5 -0
  160. package/dist/components/p-DXj5zsQK.js +5 -0
  161. package/dist/components/p-DsCtgcZn.js +5 -0
  162. package/dist/components/p-DxjQlmaz.js +5 -0
  163. package/dist/components/p-JtBlsz4j.js +5 -0
  164. package/dist/components/p-P3fAKtye.js +5 -0
  165. package/dist/components/p-nxlqujKv.js +5 -0
  166. package/dist/components/p-vvHN2Olh.js +5 -0
  167. package/dist/components/p-yQ70lKV2.js +5 -0
  168. package/dist/components/part-lookup.js +1 -1
  169. package/dist/components/service-booking-form.js +1 -1
  170. package/dist/components/{service-history.d.ts → shift-accordion.d.ts} +4 -4
  171. package/dist/components/shift-accordion.js +5 -0
  172. package/dist/components/{dynamic-claim.d.ts → shift-slider.d.ts} +4 -4
  173. package/dist/components/shift-slider.js +5 -0
  174. package/dist/components/{warranty-details.d.ts → shift-tab-content.d.ts} +4 -4
  175. package/dist/components/shift-tab-content.js +5 -0
  176. package/dist/components/{dynamic-redeem.d.ts → shift-tabs.d.ts} +4 -4
  177. package/dist/components/shift-tabs.js +5 -0
  178. package/dist/components/vehicle-accessories.js +1 -1
  179. package/dist/components/vehicle-claimable-items.d.ts +11 -0
  180. package/dist/components/vehicle-claimable-items.js +5 -0
  181. package/dist/components/vehicle-item-claim-form.d.ts +11 -0
  182. package/dist/components/vehicle-item-claim-form.js +5 -0
  183. package/dist/components/vehicle-lookup.js +1 -1
  184. package/dist/components/vehicle-paint-thickness.d.ts +11 -0
  185. package/dist/components/vehicle-paint-thickness.js +5 -0
  186. package/dist/components/vehicle-service-history.d.ts +11 -0
  187. package/dist/components/vehicle-service-history.js +5 -0
  188. package/dist/components/vehicle-specification.js +1 -1
  189. package/dist/components/vehicle-warranty-details.d.ts +11 -0
  190. package/dist/components/vehicle-warranty-details.js +5 -0
  191. package/dist/components/vin-extractor.js +1 -1
  192. package/dist/esm/cn-BK16Cn81.js +2595 -0
  193. package/dist/esm/contact-us-form.entry.js +11 -20
  194. package/dist/esm/dead-stock-lookup_3.entry.js +15 -30
  195. package/dist/esm/flexible-container.entry.js +132 -0
  196. package/dist/esm/form-dialog_8.entry.js +44 -98
  197. package/dist/esm/{get-local-language-e286080a.js → get-local-language-BPo-xYwK.js} +339 -296
  198. package/dist/esm/{index-3a623f7c.js → index-CikEOqe0.js} +524 -268
  199. package/dist/esm/information-table.entry.js +38 -0
  200. package/dist/esm/loader.js +3 -4
  201. package/dist/esm/loading-spinner.entry.js +6 -8
  202. package/dist/esm/part-lookup.entry.js +14 -19
  203. package/dist/esm/service-booking-form.entry.js +10 -19
  204. package/dist/esm/shift-accordion.entry.js +27 -0
  205. package/dist/esm/shift-components.js +5 -5
  206. package/dist/esm/shift-slider.entry.js +68 -0
  207. package/dist/esm/shift-tab-content_7.entry.js +1479 -0
  208. package/dist/esm/shift-tabs_2.entry.js +298 -0
  209. package/dist/esm/{type-dc3e60a4.js → type-CfLRnI1J.js} +10 -7
  210. package/dist/esm/{type-1d1a2052.js → type-D9Rd8Kcd.js} +5 -5
  211. package/dist/esm/{type-68307857.js → type-DHujxJVp.js} +32 -123
  212. package/dist/esm/vehicle-info-layout-D1bvY1nt.js +43 -0
  213. package/dist/esm/vehicle-lookup.entry.js +55 -43
  214. package/dist/esm/vin-extractor.entry.js +22 -30
  215. package/dist/locales/errors/ru.json +10 -10
  216. package/dist/locales/partLookup/deadStock/ru.json +3 -3
  217. package/dist/locales/partLookup/distributor/ru.json +14 -14
  218. package/dist/locales/partLookup/manufacturer/ar.json +3 -3
  219. package/dist/locales/partLookup/manufacturer/en.json +3 -3
  220. package/dist/locales/partLookup/manufacturer/ku.json +3 -3
  221. package/dist/locales/partLookup/manufacturer/ru.json +15 -15
  222. package/dist/locales/partLookup/manufacturer/type.ts +3 -3
  223. package/dist/locales/vehicleLookup/accessories/ru.json +6 -6
  224. package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/ar.json +6 -3
  225. package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/en.json +4 -1
  226. package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/ku.json +6 -3
  227. package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/ru.json +10 -7
  228. package/dist/locales/vehicleLookup/{dynamicClaim → claimableItems}/type.ts +10 -7
  229. package/dist/locales/vehicleLookup/paintThickness/ru.json +7 -7
  230. package/dist/locales/vehicleLookup/serviceHistory/ru.json +8 -8
  231. package/dist/locales/vehicleLookup/specification/ru.json +8 -8
  232. package/dist/locales/vehicleLookup/warranty/ar.json +1 -0
  233. package/dist/locales/vehicleLookup/warranty/en.json +1 -0
  234. package/dist/locales/vehicleLookup/warranty/ku.json +1 -0
  235. package/dist/locales/vehicleLookup/warranty/ru.json +17 -16
  236. package/dist/locales/vehicleLookup/warranty/type.ts +1 -0
  237. package/dist/locales/vehicleLookup/wrapper-type.ts +2 -2
  238. package/dist/shift-components/p-0c8bbdd0.entry.js +5 -0
  239. package/dist/shift-components/p-238f5df0.entry.js +5 -0
  240. package/dist/shift-components/p-389f444c.entry.js +5 -0
  241. package/dist/shift-components/p-5dd208de.entry.js +5 -0
  242. package/dist/shift-components/p-5f91eb5f.entry.js +5 -0
  243. package/dist/shift-components/p-76dd44e9.entry.js +5 -0
  244. package/dist/shift-components/p-9a51dae0.entry.js +5 -0
  245. package/dist/shift-components/p-BAMA88Mr.js +5 -0
  246. package/dist/shift-components/p-BK16Cn81.js +5 -0
  247. package/dist/shift-components/p-Br0JD1CD.js +5 -0
  248. package/dist/shift-components/p-CIU9c3pi.js +5 -0
  249. package/dist/shift-components/p-CikEOqe0.js +6 -0
  250. package/dist/shift-components/p-CuQ84qxe.js +5 -0
  251. package/dist/shift-components/p-DHb8KxaG.js +5 -0
  252. package/dist/shift-components/p-af44ca99.entry.js +5 -0
  253. package/dist/shift-components/p-b6497f63.entry.js +5 -0
  254. package/dist/shift-components/p-d0e6cd78.entry.js +5 -0
  255. package/dist/shift-components/p-f1225504.entry.js +5 -0
  256. package/dist/shift-components/p-f282c740.entry.js +5 -0
  257. package/dist/shift-components/p-faabbd23.entry.js +5 -0
  258. package/dist/shift-components/p-ff0fec09.entry.js +5 -0
  259. package/dist/shift-components/shift-components.esm.js +1 -1
  260. package/dist/types/components/components/card-content.d.ts +10 -0
  261. package/dist/types/components/components/flexible-container.d.ts +30 -0
  262. package/dist/types/components/components/information-table.d.ts +20 -0
  263. package/dist/types/components/components/material-card.d.ts +16 -0
  264. package/dist/types/components/components/shift-accordion.d.ts +13 -0
  265. package/dist/types/components/components/shift-slider.d.ts +11 -0
  266. package/dist/types/components/components/shift-tab-content.d.ts +12 -0
  267. package/dist/types/components/components/shift-tabs.d.ts +12 -0
  268. package/dist/types/components/components/vehicle-info-layout.d.ts +11 -0
  269. package/dist/types/components/part-lookup/dead-stock-lookup.d.ts +5 -5
  270. package/dist/types/components/part-lookup/distributor-lookup.d.ts +5 -5
  271. package/dist/types/components/part-lookup/manufacturer-lookup.d.ts +5 -5
  272. package/dist/types/components/vehicle-lookup/components/CardsContainer.d.ts +5 -4
  273. package/dist/types/components/vehicle-lookup/components/StatusCard.d.ts +4 -2
  274. package/dist/types/components/vehicle-lookup/vehicle-accessories.d.ts +6 -5
  275. package/dist/types/components/vehicle-lookup/{dynamic-claim.d.ts → vehicle-claimable-items.d.ts} +31 -22
  276. package/dist/types/components/vehicle-lookup/{dynamic-redeem.d.ts → vehicle-item-claim-form.d.ts} +34 -10
  277. package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +20 -16
  278. package/dist/types/components/vehicle-lookup/{paint-thickness.d.ts → vehicle-paint-thickness.d.ts} +8 -6
  279. package/dist/types/components/vehicle-lookup/{service-history.d.ts → vehicle-service-history.d.ts} +7 -6
  280. package/dist/types/components/vehicle-lookup/vehicle-specification.d.ts +6 -5
  281. package/dist/types/components/vehicle-lookup/{warranty-details.d.ts → vehicle-warranty-details.d.ts} +9 -8
  282. package/dist/types/components.d.ts +1060 -195
  283. package/dist/types/global/api/partInformation.d.ts +5 -5
  284. package/dist/types/global/api/vehicleInformation.d.ts +4 -4
  285. package/dist/types/global/lib/children-with-tag.d.ts +1 -0
  286. package/dist/types/global/lib/container-has-tag.d.ts +1 -0
  287. package/dist/types/global/lib/scroll-into-container-view.d.ts +1 -0
  288. package/dist/types/global/types/generated/part/branch-dead-stock-dto.d.ts +5 -0
  289. package/dist/types/global/types/generated/part/dead-stock-dto.d.ts +6 -0
  290. package/dist/types/global/types/generated/part/hs-code-dto.d.ts +5 -0
  291. package/dist/types/global/types/generated/part/part-lookup-dto.d.ts +27 -0
  292. package/dist/types/global/types/generated/part/part-price-dto.d.ts +10 -0
  293. package/dist/types/global/types/generated/part/price-dto.d.ts +6 -0
  294. package/dist/types/global/types/generated/part/stock-part-dto.d.ts +5 -0
  295. package/dist/types/global/types/generated/vehicle-lookup/accessory-dto.d.ts +5 -0
  296. package/dist/types/global/types/generated/vehicle-lookup/paint-thickness-dto.d.ts +6 -0
  297. package/dist/types/global/types/generated/vehicle-lookup/paint-thickness-image-dto.d.ts +4 -0
  298. package/dist/types/global/types/generated/vehicle-lookup/paint-thickness-part-dto.d.ts +5 -0
  299. package/dist/types/global/types/generated/vehicle-lookup/ssc-dto.d.ts +10 -0
  300. package/dist/types/global/types/generated/vehicle-lookup/ssc-labor-dto.d.ts +5 -0
  301. package/dist/types/global/types/generated/vehicle-lookup/ssc-part-dto.d.ts +5 -0
  302. package/dist/types/global/types/generated/vehicle-lookup/vehicle-broker-sale-information.d.ts +7 -0
  303. package/dist/types/global/types/generated/vehicle-lookup/vehicle-identifiers-dto.d.ts +9 -0
  304. package/dist/types/global/types/generated/vehicle-lookup/vehicle-labor-dto.d.ts +6 -0
  305. package/dist/types/global/types/generated/vehicle-lookup/vehicle-lookup-dto.d.ts +27 -0
  306. package/dist/types/global/types/generated/vehicle-lookup/vehicle-part-dto.d.ts +6 -0
  307. package/dist/types/global/types/generated/vehicle-lookup/vehicle-sale-information.d.ts +16 -0
  308. package/dist/types/global/types/generated/vehicle-lookup/vehicle-service-history-dto.d.ts +16 -0
  309. package/dist/types/global/types/generated/vehicle-lookup/vehicle-service-item-dto.d.ts +34 -0
  310. package/dist/types/global/types/generated/vehicle-lookup/vehicle-service-item-group.d.ts +6 -0
  311. package/dist/types/global/types/generated/vehicle-lookup/vehicle-specification-dto.d.ts +22 -0
  312. package/dist/types/global/types/generated/vehicle-lookup/vehicle-variant-info-dto.d.ts +5 -0
  313. package/dist/types/global/types/generated/vehicle-lookup/vehicle-warranty-dto.d.ts +8 -0
  314. package/dist/types/locale-mapper.d.ts +2 -2
  315. package/dist/types/locales/partLookup/distributor/type.d.ts +2 -2
  316. package/dist/types/locales/partLookup/manufacturer/type.d.ts +6 -6
  317. package/dist/types/locales/partLookup/wrapper-type.d.ts +8 -8
  318. package/dist/types/locales/vehicleLookup/accessories/type.d.ts +2 -2
  319. package/dist/types/locales/vehicleLookup/{dynamicClaim → claimableItems}/type.d.ts +28 -16
  320. package/dist/types/locales/vehicleLookup/paintThickness/type.d.ts +4 -4
  321. package/dist/types/locales/vehicleLookup/serviceHistory/type.d.ts +4 -4
  322. package/dist/types/locales/vehicleLookup/warranty/type.d.ts +2 -0
  323. package/dist/types/locales/vehicleLookup/wrapper-type.d.ts +52 -44
  324. package/dist/types/stencil-public-runtime.d.ts +23 -1
  325. package/package.json +10 -8
  326. package/LICENSE +0 -21
  327. package/dist/cjs/app-globals-4aa8f46f.js +0 -46
  328. package/dist/cjs/cn-f559f9e5.js +0 -2588
  329. package/dist/cjs/dynamic-claim_6.cjs.entry.js +0 -1224
  330. package/dist/cjs/dynamic-redeem.cjs.entry.js +0 -210
  331. package/dist/collection/components/vehicle-lookup/components/SSCTable.js +0 -18
  332. package/dist/collection/components/vehicle-lookup/dynamic-claim.css +0 -1
  333. package/dist/collection/components/vehicle-lookup/dynamic-claim.js +0 -756
  334. package/dist/collection/components/vehicle-lookup/dynamic-redeem.css +0 -1
  335. package/dist/collection/components/vehicle-lookup/dynamic-redeem.js +0 -444
  336. package/dist/collection/components/vehicle-lookup/paint-thickness.css +0 -1
  337. package/dist/collection/components/vehicle-lookup/warranty-details.css +0 -1
  338. package/dist/collection/global/types/vehicle-information.js +0 -5
  339. package/dist/collection/templates/vehicle-lookup/vehicle-lookup.js +0 -285
  340. package/dist/components/dynamic-claim.js +0 -5
  341. package/dist/components/dynamic-redeem.js +0 -5
  342. package/dist/components/p-0aea36b4.js +0 -5
  343. package/dist/components/p-0fa9085a.js +0 -5
  344. package/dist/components/p-1c45c079.js +0 -5
  345. package/dist/components/p-28cf4dbe.js +0 -5
  346. package/dist/components/p-29a57e34.js +0 -5
  347. package/dist/components/p-2c893802.js +0 -5
  348. package/dist/components/p-3a216a1c.js +0 -5
  349. package/dist/components/p-48a28736.js +0 -5
  350. package/dist/components/p-48a9b8e5.js +0 -5
  351. package/dist/components/p-4ddb3435.js +0 -5
  352. package/dist/components/p-5709db05.js +0 -5
  353. package/dist/components/p-5afcb14f.js +0 -5
  354. package/dist/components/p-7a1dd4fc.js +0 -5
  355. package/dist/components/p-7d3dd7c2.js +0 -5
  356. package/dist/components/p-8b1d90d7.js +0 -5
  357. package/dist/components/p-8cd53e18.js +0 -5
  358. package/dist/components/p-98d9e7ab.js +0 -5
  359. package/dist/components/p-aacd560d.js +0 -5
  360. package/dist/components/p-c4f620e9.js +0 -5
  361. package/dist/components/p-ca0bda87.js +0 -5
  362. package/dist/components/p-d3f029ed.js +0 -5
  363. package/dist/components/p-dfb3925b.js +0 -5
  364. package/dist/components/p-ec493f9b.js +0 -5
  365. package/dist/components/p-f437e795.js +0 -5
  366. package/dist/components/p-ffad35ad.js +0 -5
  367. package/dist/components/paint-thickness.js +0 -5
  368. package/dist/components/service-history.js +0 -5
  369. package/dist/components/warranty-details.js +0 -5
  370. package/dist/esm/app-globals-68faa233.js +0 -44
  371. package/dist/esm/cn-cc419b94.js +0 -2586
  372. package/dist/esm/dynamic-claim_6.entry.js +0 -1215
  373. package/dist/esm/dynamic-redeem.entry.js +0 -206
  374. package/dist/esm/type-885c56ae.js +0 -34
  375. package/dist/shift-components/p-025b3a45.entry.js +0 -5
  376. package/dist/shift-components/p-07ee30c6.js +0 -5
  377. package/dist/shift-components/p-232a8be0.entry.js +0 -5
  378. package/dist/shift-components/p-40e52936.entry.js +0 -5
  379. package/dist/shift-components/p-446d908d.js +0 -5
  380. package/dist/shift-components/p-50d68cc4.entry.js +0 -5
  381. package/dist/shift-components/p-67d3532e.js +0 -5
  382. package/dist/shift-components/p-69f1a7ff.entry.js +0 -5
  383. package/dist/shift-components/p-6b3651bd.js +0 -5
  384. package/dist/shift-components/p-6ec0650f.js +0 -5
  385. package/dist/shift-components/p-83b755da.entry.js +0 -5
  386. package/dist/shift-components/p-90bf4148.entry.js +0 -5
  387. package/dist/shift-components/p-9474a4da.js +0 -6
  388. package/dist/shift-components/p-98d9e7ab.js +0 -5
  389. package/dist/shift-components/p-997b9bfb.entry.js +0 -5
  390. package/dist/shift-components/p-9e11eb3e.entry.js +0 -5
  391. package/dist/shift-components/p-ab79b6e8.entry.js +0 -5
  392. package/dist/shift-components/p-c802d527.js +0 -5
  393. package/dist/types/components/vehicle-lookup/components/SSCTable.d.ts +0 -9
  394. package/dist/types/global/types/part-information.d.ts +0 -53
  395. package/dist/types/global/types/vehicle-information.d.ts +0 -182
  396. package/loader/package.json +0 -11
  397. package/readme.md +0 -15
  398. /package/dist/cjs/{loader-baf2418b.js → loader-jtAYWeFG.js} +0 -0
  399. /package/dist/cjs/{validate-vin-32e95695.js → validate-vin-CJDIXpJO.js} +0 -0
  400. /package/dist/collection/global/types/{part-information.js → generated/part/branch-dead-stock-dto.js} +0 -0
  401. /package/dist/components/{p-00a27a58.js → p-B5YdqGVm.js} +0 -0
  402. /package/dist/components/{p-fab97ac7.js → p-BT4rhLRL.js} +0 -0
  403. /package/dist/components/{p-a21e2e2e.js → p-C-EQDloC.js} +0 -0
  404. /package/dist/components/{p-383b4ddf.js → p-CUREVASG.js} +0 -0
  405. /package/dist/esm/{loader-027b88af.js → loader-C-EQDloC.js} +0 -0
  406. /package/dist/esm/{validate-vin-f4d23a44.js → validate-vin-CUREVASG.js} +0 -0
  407. /package/dist/shift-components/{p-a21e2e2e.js → p-C-EQDloC.js} +0 -0
  408. /package/dist/shift-components/{p-383b4ddf.js → p-CUREVASG.js} +0 -0
@@ -0,0 +1,959 @@
1
+ /*!
2
+ * Built by ShiftSoftware
3
+ * Copyright (c)
4
+ */
5
+ var __rest = (this && this.__rest) || function (s, e) {
6
+ var t = {};
7
+ for (var p in s)
8
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
9
+ t[p] = s[p];
10
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
11
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
12
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
13
+ t[p[i]] = s[p[i]];
14
+ }
15
+ return t;
16
+ };
17
+ import { Host, h } from "@stencil/core";
18
+ import cn from "../../global/lib/cn";
19
+ import { scrollIntoContainerView } from "../../global/lib/scroll-into-container-view";
20
+ import { getLocaleLanguage, getSharedLocal, sharedLocalesSchema } from "../../global/lib/get-local-language";
21
+ import expiredIcon from "./assets/expired.svg";
22
+ import pendingIcon from "./assets/pending.svg";
23
+ import cancelledIcon from "./assets/cancelled.svg";
24
+ import processedIcon from "./assets/processed.svg";
25
+ import activationRequiredIcon from "./assets/activationRequired.svg";
26
+ import { getVehicleInformation } from "../../global/api/vehicleInformation";
27
+ import dynamicClaimSchema from "../../locales/vehicleLookup/claimableItems/type";
28
+ import { VehicleInfoLayout } from "../components/vehicle-info-layout";
29
+ let mockData = {};
30
+ const icons = {
31
+ expired: expiredIcon,
32
+ pending: pendingIcon,
33
+ processed: processedIcon,
34
+ cancelled: cancelledIcon,
35
+ activationRequired: activationRequiredIcon,
36
+ };
37
+ export class VehicleClaimableItems {
38
+ constructor() {
39
+ this.headers = {};
40
+ this.isDev = false;
41
+ this.queryString = '';
42
+ this.coreOnly = false;
43
+ this.language = 'en';
44
+ this.maximumDocumentFileSizeInMb = 30;
45
+ this.claimEndPoint = 'api/vehicle/swift-claim';
46
+ this.sharedLocales = sharedLocalesSchema.getDefault();
47
+ this.locale = dynamicClaimSchema.getDefault();
48
+ this.activeTab = '';
49
+ this.isError = false;
50
+ this.showPopup = false;
51
+ this.isLoading = false;
52
+ this.externalVin = null;
53
+ this.showPrintBox = false;
54
+ this.errorMessage = null;
55
+ this.tabAnimationLoading = false;
56
+ this.activePopupIndex = null;
57
+ this.tabs = [];
58
+ this.lastSuccessfulClaimResponse = null;
59
+ this.pendingItemHighlighted = false;
60
+ this.onMouseLeave = () => {
61
+ clearTimeout(this.timeoutRef);
62
+ this.showPopup = false;
63
+ this.timeoutRef = setTimeout(() => {
64
+ this.activePopupIndex = null;
65
+ }, 400);
66
+ };
67
+ this.onMouseEnter = (dynamicClaimItemHeader, idx) => {
68
+ clearTimeout(this.timeoutRef);
69
+ this.activePopupIndex = idx;
70
+ this.timeoutRef = setTimeout(() => {
71
+ const positionRef = dynamicClaimItemHeader.querySelector('.popup-ref');
72
+ this.popupPositionRef = positionRef;
73
+ this.calculatePopupPos(this.el.shadowRoot);
74
+ this.showPopup = true;
75
+ }, 50);
76
+ };
77
+ this.getServiceItems = () => {
78
+ var _a, _b, _c, _d, _e;
79
+ if (!((_b = (_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceItems) === null || _b === void 0 ? void 0 : _b.length))
80
+ return [];
81
+ if (!((_c = this.tabs) === null || _c === void 0 ? void 0 : _c.length))
82
+ return (_d = this.vehicleInformation) === null || _d === void 0 ? void 0 : _d.serviceItems;
83
+ return (_e = this.vehicleInformation) === null || _e === void 0 ? void 0 : _e.serviceItems.filter(serviceItem => { var _a; return ((_a = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.group) === null || _a === void 0 ? void 0 : _a.name) === this.activeTab; });
84
+ };
85
+ this.onActiveTabChange = ({ label }) => {
86
+ this.tabAnimationLoading = true;
87
+ clearTimeout(this.tabAnimationTimeoutRef);
88
+ this.tabAnimationTimeoutRef = setTimeout(() => {
89
+ this.activeTab = label;
90
+ this.claimableContentWrapper.scrollLeft = 0;
91
+ setTimeout(() => {
92
+ this.tabAnimationLoading = false;
93
+ this.updateProgressBar();
94
+ }, 100);
95
+ }, 500);
96
+ };
97
+ }
98
+ async componentWillLoad() {
99
+ await this.changeLanguage(this.language);
100
+ }
101
+ async changeLanguage(newLanguage) {
102
+ const localeResponses = await Promise.all([getLocaleLanguage(newLanguage, 'vehicleLookup.claimableItems', dynamicClaimSchema), getSharedLocal(newLanguage)]);
103
+ this.locale = localeResponses[0];
104
+ this.sharedLocales = localeResponses[1];
105
+ }
106
+ async componentDidLoad() {
107
+ this.claimableContentWrapper = this.el.shadowRoot.querySelector('.claimable-content-wrapper');
108
+ this.claimForm = this.el.shadowRoot.getElementById('vehicle-item-claim-form');
109
+ this.progressBar = this.el.shadowRoot.querySelector('.progress-bar');
110
+ }
111
+ async setMockData(newMockData) {
112
+ mockData = newMockData;
113
+ }
114
+ async setData(newData, headers = {}) {
115
+ var _a;
116
+ clearTimeout(this.networkTimeoutRef);
117
+ if (this.abortController)
118
+ this.abortController.abort();
119
+ this.abortController = new AbortController();
120
+ let scopedTimeoutRef;
121
+ const isVinRequest = typeof newData === 'string';
122
+ const vin = isVinRequest ? newData : newData === null || newData === void 0 ? void 0 : newData.vin;
123
+ this.externalVin = vin;
124
+ try {
125
+ if (!vin || vin.trim().length === 0) {
126
+ this.isError = false;
127
+ this.vehicleInformation = null;
128
+ return;
129
+ }
130
+ this.isLoading = true;
131
+ this.showPrintBox = false;
132
+ await new Promise(r => {
133
+ scopedTimeoutRef = setTimeout(r, 1000);
134
+ this.networkTimeoutRef = scopedTimeoutRef;
135
+ });
136
+ this.claimableContentWrapper.scrollLeft = 0;
137
+ const vehicleResponse = isVinRequest ? await getVehicleInformation(this, { scopedTimeoutRef, vin, mockData }, headers) : newData;
138
+ if (this.networkTimeoutRef === scopedTimeoutRef) {
139
+ if (!vehicleResponse)
140
+ throw new Error('wrongResponseFormat');
141
+ if (!Array.isArray(vehicleResponse.serviceItems))
142
+ throw new Error('noServiceAvailable');
143
+ this.vehicleInformation = vehicleResponse;
144
+ if ((_a = vehicleResponse === null || vehicleResponse === void 0 ? void 0 : vehicleResponse.serviceItems) === null || _a === void 0 ? void 0 : _a.length) {
145
+ let orderedGroups = [];
146
+ const unOrderedGroups = [];
147
+ vehicleResponse.serviceItems.forEach(({ group }) => {
148
+ if (!(group === null || group === void 0 ? void 0 : group.name))
149
+ return;
150
+ if ([...orderedGroups, ...unOrderedGroups].find(g => (g === null || g === void 0 ? void 0 : g.name) === (group === null || group === void 0 ? void 0 : group.name)))
151
+ return;
152
+ if (group === null || group === void 0 ? void 0 : group.isDefault)
153
+ this.activeTab = group === null || group === void 0 ? void 0 : group.name;
154
+ if (typeof (group === null || group === void 0 ? void 0 : group.tabOrder) === 'number')
155
+ orderedGroups.push(group);
156
+ else
157
+ unOrderedGroups.push(group);
158
+ });
159
+ if (!!unOrderedGroups.length || !!orderedGroups.length) {
160
+ orderedGroups = orderedGroups.sort((a, b) => a.tabOrder - b.tabOrder);
161
+ this.tabs = [...orderedGroups, ...unOrderedGroups];
162
+ if (!this.activeTab)
163
+ this.activeTab = this.tabs[0].name;
164
+ }
165
+ else {
166
+ this.tabs = [];
167
+ this.activeTab = '';
168
+ }
169
+ }
170
+ else {
171
+ this.tabs = [];
172
+ this.activeTab = '';
173
+ }
174
+ }
175
+ this.errorMessage = null;
176
+ this.isLoading = false;
177
+ this.isError = false;
178
+ }
179
+ catch (error) {
180
+ if (error && (error === null || error === void 0 ? void 0 : error.name) === 'AbortError')
181
+ return;
182
+ if (this.errorCallback)
183
+ this.errorCallback(error.message);
184
+ console.error(error);
185
+ this.setErrorMessage(error.message);
186
+ }
187
+ }
188
+ async setErrorMessage(message) {
189
+ this.isError = true;
190
+ this.isLoading = false;
191
+ this.vehicleInformation = null;
192
+ this.errorMessage = message;
193
+ }
194
+ async fetchData(requestedVin = this.externalVin, headers = {}) {
195
+ await this.setData(requestedVin, headers);
196
+ }
197
+ onLoadingChange(newValue) {
198
+ if (this.loadingStateChange)
199
+ this.loadingStateChange(newValue);
200
+ this.setLoadingUi(newValue);
201
+ }
202
+ async setLoadingUi(isLoading) {
203
+ if (!isLoading) {
204
+ this.progressBar.style.width = '0';
205
+ this.progressBar.style.opacity = '0';
206
+ await new Promise(r => setTimeout(r, 200));
207
+ this.updateProgressBar();
208
+ }
209
+ }
210
+ updateProgressBar() {
211
+ var _a, _b;
212
+ const serviceItems = this.getServiceItems();
213
+ if (!!((_a = this.tabs) === null || _a === void 0 ? void 0 : _a.length) && this.tabs.find(tab => tab.name === this.activeTab) && !((_b = this.tabs.find(tab => tab.name === this.activeTab)) === null || _b === void 0 ? void 0 : _b.isSequential)) {
214
+ this.progressBar.style.width = '0%';
215
+ this.progressBar.style.opacity = '0';
216
+ return;
217
+ }
218
+ if (serviceItems.filter(x => x.status === 'pending').length === 0) {
219
+ if (serviceItems.length === 0 || serviceItems.filter(x => x.status === 'activationRequired').length === serviceItems.length) {
220
+ this.progressBar.style.width = '0%';
221
+ this.progressBar.style.opacity = '0';
222
+ }
223
+ else {
224
+ this.progressBar.style.width = '100%';
225
+ this.progressBar.style.opacity = '1';
226
+ const claimableItems = this.claimableContentWrapper.getElementsByClassName('claimable-item');
227
+ scrollIntoContainerView(claimableItems[claimableItems.length - 1], this.claimableContentWrapper);
228
+ }
229
+ }
230
+ else {
231
+ const firstPendingItem = serviceItems.find(x => x.status === 'pending');
232
+ const firstPendingItemIndex = serviceItems.indexOf(firstPendingItem) + 1;
233
+ const firstPendingItemRef = this.claimableContentWrapper.getElementsByClassName('claimable-item')[firstPendingItemIndex - 1];
234
+ this.progressBar.style.width = (firstPendingItemIndex / serviceItems.length - 1 / (serviceItems.length * 2)) * 100 + '%';
235
+ this.progressBar.style.opacity = this.progressBar.style.width === '0%' ? '0' : '1';
236
+ scrollIntoContainerView(firstPendingItemRef, this.claimableContentWrapper);
237
+ }
238
+ }
239
+ resetProgressBar() {
240
+ setTimeout(() => {
241
+ this.updateProgressBar();
242
+ }, 100);
243
+ }
244
+ windowScrollListener(newValue) {
245
+ if (newValue) {
246
+ this.scrollListenerRef = () => this.calculatePopupPos(this.el.shadowRoot);
247
+ window.addEventListener('scroll', this.scrollListenerRef);
248
+ this.claimableContentWrapper.addEventListener('scroll', this.scrollListenerRef);
249
+ }
250
+ else {
251
+ window.removeEventListener('scroll', this.scrollListenerRef);
252
+ this.claimableContentWrapper.removeEventListener('scroll', this.scrollListenerRef);
253
+ }
254
+ }
255
+ calculatePopupPos(root) {
256
+ const popupPositionRef = root.querySelector('.popup-ref');
257
+ let { x, y } = popupPositionRef.getBoundingClientRect();
258
+ const popupContainer = popupPositionRef.querySelector('.popup-container');
259
+ const { width } = popupContainer.getBoundingClientRect();
260
+ const popupInfo = popupContainer.querySelector('.popup-info');
261
+ const windowWidth = window.innerWidth; // Get the viewport's width
262
+ popupContainer.style.top = `${y}px`;
263
+ popupContainer.style.left = `${x - width / 2}px`;
264
+ const offsetFromLeft = x - width / 2; // Distance from left side of the viewport
265
+ const offsetFromRight = windowWidth - (x + width / 2); // Distance from right side of the viewport
266
+ let movingNeeded = 0;
267
+ let horizontalMargin = 16;
268
+ if (offsetFromRight < horizontalMargin)
269
+ movingNeeded = offsetFromRight - horizontalMargin;
270
+ else if (offsetFromLeft < horizontalMargin)
271
+ movingNeeded = Math.abs(offsetFromLeft - horizontalMargin);
272
+ popupInfo.style.transform = `translateX(${movingNeeded}px)`;
273
+ }
274
+ removeLoadAnimationClass(event) {
275
+ const component = event.target;
276
+ component.classList.remove('load-animation');
277
+ }
278
+ async completeClaim(response) {
279
+ const serviceItems = this.getServiceItems();
280
+ const item = this.cachedClaimItem;
281
+ const serviceDataClone = JSON.parse(JSON.stringify(serviceItems));
282
+ const index = serviceItems.indexOf(item);
283
+ const pendingItemsBefore = serviceDataClone.slice(0, index).filter(x => x.status === 'pending');
284
+ serviceDataClone[index].claimable = false;
285
+ serviceDataClone[index].status = 'processed';
286
+ pendingItemsBefore.forEach(function (otherItem) {
287
+ otherItem.status = 'cancelled';
288
+ });
289
+ this.pendingItemHighlighted = false;
290
+ const vehicleDataClone = JSON.parse(JSON.stringify(this.vehicleInformation));
291
+ vehicleDataClone.serviceItems = serviceDataClone;
292
+ this.vehicleInformation = JSON.parse(JSON.stringify(vehicleDataClone));
293
+ this.showPrintBox = true;
294
+ this.lastSuccessfulClaimResponse = response;
295
+ }
296
+ async claim(item) {
297
+ const serviceItems = this.getServiceItems();
298
+ const vinDataClone = JSON.parse(JSON.stringify(serviceItems));
299
+ const index = serviceItems.indexOf(item);
300
+ //Find other items before this item that have status 'pending'
301
+ let pendingItemsBefore = vinDataClone.slice(0, index).filter(x => x.status === 'pending');
302
+ this.cachedClaimItem = item;
303
+ if (item.maximumMileage === null) {
304
+ pendingItemsBefore = [];
305
+ }
306
+ this.onMouseLeave();
307
+ this.openRedeem(item, pendingItemsBefore);
308
+ }
309
+ async handleClaiming() {
310
+ if (this.isDev) {
311
+ this.claimForm.handleClaiming = async ({ document }) => {
312
+ if (document) {
313
+ this.claimForm.uploadProgress = 0;
314
+ let uploadChunks = 20;
315
+ for (let index = 0; index < uploadChunks; index++) {
316
+ const uploadPercentage = Math.round(((index + 1) / uploadChunks) * 100);
317
+ await new Promise(r => setTimeout(r, 200));
318
+ this.claimForm.setFileUploadProgression(uploadPercentage);
319
+ }
320
+ }
321
+ this.claimForm.quite();
322
+ this.completeClaim({ Success: true, ID: '11223344', PrintURL: 'http://localhost/test/print/1122' });
323
+ this.claimForm.handleClaiming = null;
324
+ };
325
+ }
326
+ else {
327
+ this.claimForm.handleClaiming = async (_a) => {
328
+ var { document } = _a, payload = __rest(_a, ["document"]);
329
+ try {
330
+ const formData = new FormData();
331
+ formData.append('payload', JSON.stringify(Object.assign(Object.assign({}, payload), { vin: this.vehicleInformation.vin, saleInformation: this.vehicleInformation.saleInformation, serviceItem: this.claimForm.item, cancelledServiceItems: this.claimForm.canceledItems })));
332
+ if (document)
333
+ formData.append('document', document);
334
+ await new Promise((resolve, reject) => {
335
+ const xhr = new XMLHttpRequest();
336
+ xhr.open('POST', this.claimEndPoint);
337
+ Object.entries(this.headers || {}).forEach(([key, value]) => {
338
+ xhr.setRequestHeader(key, value);
339
+ });
340
+ xhr.upload.onprogress = e => {
341
+ if (e.lengthComputable)
342
+ this.claimForm.setFileUploadProgression(Math.round((e.loaded / e.total) * 100));
343
+ };
344
+ xhr.onload = () => {
345
+ this.claimForm.quite();
346
+ this.claimForm.handleClaiming = null;
347
+ if (xhr.status === 200) {
348
+ try {
349
+ const responseData = JSON.parse(xhr.responseText);
350
+ this.completeClaim(responseData);
351
+ resolve();
352
+ }
353
+ catch (parseError) {
354
+ console.error('Response is not valid JSON', {
355
+ rawResponse: xhr.responseText,
356
+ error: parseError,
357
+ });
358
+ reject(new Error('Upload succeeded but response is not valid JSON'));
359
+ }
360
+ resolve();
361
+ }
362
+ else {
363
+ try {
364
+ const responseData = JSON.parse(xhr.responseText);
365
+ alert(responseData.Message);
366
+ }
367
+ catch (_a) {
368
+ reject(new Error(`Upload failed with status ${xhr.status}`));
369
+ }
370
+ }
371
+ };
372
+ xhr.onerror = e => {
373
+ console.log(e);
374
+ this.claimForm.quite();
375
+ this.claimForm.handleClaiming = null;
376
+ reject(new Error('Network error'));
377
+ };
378
+ xhr.send(formData);
379
+ });
380
+ }
381
+ catch (error) {
382
+ console.error(error);
383
+ alert(this.sharedLocales.errors.requestFailedPleaseTryAgainLater);
384
+ this.claimForm.quite();
385
+ this.claimForm.handleClaiming = null;
386
+ }
387
+ };
388
+ }
389
+ }
390
+ openRedeem(item, oldItems) {
391
+ var _a, _b, _c, _d, _e;
392
+ const vehicleInformation = this.vehicleInformation;
393
+ this.claimForm.vin = vehicleInformation === null || vehicleInformation === void 0 ? void 0 : vehicleInformation.vin;
394
+ this.claimForm.item = item;
395
+ this.claimForm.canceledItems = oldItems;
396
+ if (((_a = vehicleInformation === null || vehicleInformation === void 0 ? void 0 : vehicleInformation.saleInformation) === null || _a === void 0 ? void 0 : _a.broker) !== null && ((_c = (_b = vehicleInformation === null || vehicleInformation === void 0 ? void 0 : vehicleInformation.saleInformation) === null || _b === void 0 ? void 0 : _b.broker) === null || _c === void 0 ? void 0 : _c.invoiceDate) === null)
397
+ this.claimForm.unInvoicedByBrokerName = (_e = (_d = vehicleInformation === null || vehicleInformation === void 0 ? void 0 : vehicleInformation.saleInformation) === null || _d === void 0 ? void 0 : _d.broker) === null || _e === void 0 ? void 0 : _e.brokerName;
398
+ else
399
+ this.claimForm.unInvoicedByBrokerName = null;
400
+ this.handleClaiming();
401
+ }
402
+ createPopup(item) {
403
+ const texts = this.locale;
404
+ return (h("div", { dir: this.sharedLocales.direction, class: "popup-ref w-0 h-0 bottom-0 flex absolute justify-center" }, h("div", { class: "popup-container fixed z-[100]" }, h("div", { class: cn('opacity-0 w-full z-[101] flex transition-all duration-[0.4s] relative invisible justify-center translate-y-[-9px]', {
405
+ '!opacity-100 !visible': this.showPopup,
406
+ }) }, h("div", { class: "absolute w-0 h-0 border-[10px] border-t-0 !border-b-[#dddddd] border-transparent" }), h("div", { class: "mt-[1px] absolute w-0 h-0 border-[10px] border-t-0 !border-b-[#f9f9f9] border-transparent" })), h("div", { class: cn('popup-info bg-[#f9f9f9] border border-[#ddd] w-auto p-[20px] rounded-[5px] transition-all duration-[0.4s] text-[#282828] opacity-0 invisible', {
407
+ '!opacity-100 !visible': this.showPopup,
408
+ }) }, h("table", { class: cn('w-full border-collapse', '[&_th]:border-b [&_th]:border-[#ddd] [&_th]:p-[10px] [&_th]:pe-[50px] [&_th]:text-start [&_th]:whitespace-nowrap', '[&_td]:border-b [&_td]:border-[#ddd] [&_td]:p-[10px] [&_td]:pe-[50px] [&_td]:text-start [&_td]:whitespace-nowrap') }, h("tbody", null, h("tr", null, h("th", null, texts.serviceType), h("td", null, item.type.charAt(0).toUpperCase() + item.type.slice(1))), h("tr", null, h("th", null, texts.activationDate), h("td", null, item.activatedAt)), h("tr", null, h("th", null, texts.expireDate), h("td", null, item.expiresAt)), h("tr", null, h("th", null, texts.claimAt), h("td", null, item.claimDate)), h("tr", null, h("th", null, texts.claimingCompany), h("td", null, item.companyName)), h("tr", null, h("th", null, texts.invoiceNumber), h("td", null, item.invoiceNumber)), h("tr", null, h("th", null, texts.jobNumber), h("td", null, item.jobNumber)), h("tr", null, h("th", null, texts.packageCode), h("td", null, item.packageCode)))), item.claimable && (h("button", { onClick: () => this.claim(item), class: "claim-button m-auto mt-[15px] w-[80%] justify-center" }, h("svg", { class: "size-[30px] duration-200", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { "stroke-width": "0" }), h("g", { "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", null, h("circle", { cx: "12", cy: "12", r: "8", "fill-opacity": "0.24" }), h("path", { d: "M8.5 11L11.3939 13.8939C11.4525 13.9525 11.5475 13.9525 11.6061 13.8939L19.5 6", "stroke-width": "1.2" }))), h("span", null, texts.claim)))))));
409
+ }
410
+ render() {
411
+ var _a;
412
+ const serviceItems = this.getServiceItems();
413
+ const texts = this.locale;
414
+ const hasInactiveItems = serviceItems.filter(x => x.status === 'activationRequired').length > 0;
415
+ const hideTabs = this.isLoading || this.isError || !this.tabs.length || !serviceItems.length;
416
+ const tabs = this.tabs.map(group => group.name);
417
+ return (h(Host, { key: '650300d8b2495485e104a8450e6849111f45a843' }, h("vehicle-item-claim-form", { key: '205514a455cab1507e9798c66924d10b6b10e09c', locale: texts.claimForm, language: this.language, id: "vehicle-item-claim-form", maximumDocumentFileSizeInMb: this.maximumDocumentFileSizeInMb }), h(VehicleInfoLayout, { key: '24bcc50ed3fd697fe0e1bd536b04300572905519', isError: this.isError, coreOnly: this.coreOnly, isLoading: this.isLoading, vin: (_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.vin, direction: this.sharedLocales.direction, errorMessage: this.sharedLocales.errors[this.errorMessage] || this.sharedLocales.errors.wildCard }, h("div", { key: 'a133d8beadb9dfc21efc4ea3f3eca8f9c97643e5', class: "absolute z-10 w-full pt-[16px]" }, h("div", { key: '3e27fb454add0e0a7a103bddecafaa98fdf39fea', class: cn('duration-300', { 'translate-y-[-50%] opacity-0': hideTabs }) }, h("shift-tabs", { key: 'a71888699a3189bef9f8391b811c0ab2bbbe82d3', activeTabLabel: this.activeTab, changeActiveTab: this.onActiveTabChange, tabs: tabs }))), h("div", { key: 'f879a081b412cf82ff15592034aa8a190edd5964', class: "relative" }, h("div", { key: 'ce6e960144465d725acf883b14a723835bec1292', class: "flex px-[30px] absolute w-full h-[320px] items-center" }, h("div", { key: 'bf3a6cd026eae91abcd895ae4550098f14648273', class: "h-[10px] translate-y-[-5px] relative bg-[#f2f2f2] border border-[#ddd] rounded-[10px] w-[calc(100%-62px)] items-center justify-around" }, h("div", { key: '0bd1d257ab6a49da3dfb15fda773e0ee7a7b951e', class: "w-full h-full rounded-[4px] overflow-x-hidden absolute left-0 top-0" }, h("div", { key: '73b1ab665d109c6f4e77c975ced5c7f8ff587495', class: "absolute opacity-0 bg-[#1a1a1a] w-[150%] h-full" }), h("div", { key: 'cdce5de783b1c1eec2b50d3775f07997af209bff', class: "absolute h-full bg-[linear-gradient(to_bottom,_#428bca_0%,_#3071a9_100%)] lane-inc" }), h("div", { key: 'c34ecca02274697dd705f522e06d194747e94c76', class: "absolute h-full bg-[linear-gradient(to_bottom,_#428bca_0%,_#3071a9_100%)] lane-dec" })))), h("div", { key: '4230dfc62c4398edb5277c884e2641260ff736d4', dir: "ltr", class: cn('flex overflow-x-scroll px-[30px] relative h-[320px] items-center transition-all duration-300 claimable-content-wrapper', {
418
+ 'hide-scroll': this.tabAnimationLoading,
419
+ }) }, h("div", { key: 'caa65ad50775e49b88d082409ece04b9a2e20b6a', class: cn('h-[10px] bg-[#f2f2f2] border flex-1 border-[#ddd] rounded-[10px] flex items-center justify-around relative', {
420
+ 'bg-transparent border-transparent': this.isLoading || this.tabAnimationLoading || !serviceItems.length,
421
+ }) }, serviceItems.map((item, idx) => {
422
+ let statusClass = '';
423
+ if (item.status === 'pending') {
424
+ if (serviceItems.findIndex(i => i.status === 'pending') === idx)
425
+ statusClass = item.status;
426
+ }
427
+ else
428
+ statusClass = item.status;
429
+ return (h("div", { key: item.name, class: cn('claimable-item flex flex-col items-center gap-[5px] font-[14px] min-w-[250px]', statusClass), onMouseLeave: this.onMouseLeave }, h("div", { onAnimationEnd: this.removeLoadAnimationClass, class: cn('claimable-item-header load-animation hover:[&>img]:rotate-[360deg] hover:[&>img]:scale-[125%] relative duration-[0.4s] py-[10px] leading-[1em] h-[3em] flex flex-col items-center cursor-pointer', {
430
+ '!opacity-0 !translate-y-[-5px] !scale-[70%]': this.isLoading || this.tabAnimationLoading,
431
+ }), onMouseEnter: event => this.onMouseEnter(event.target, idx) }, h("img", { class: "duration-[0.4s]", src: icons[item.status], alt: "status icon" }), h("span", { dir: this.sharedLocales.direction, class: "font-bold" }, texts[item.status]), this.activePopupIndex === idx && this.createPopup(item)), h("div", { onAnimationEnd: this.removeLoadAnimationClass, class: cn('claimable-item-circle load-animation w-[18px] translate-y-[2px] h-[18px] rounded-[50%] bg-[#a1a1a1] border-[5px] border-double border-[#ececec] transition-all duration-[0.4s] z-[1]', {
432
+ '!opacity-0 !scale-[150%]': this.isLoading || this.tabAnimationLoading,
433
+ }) }), h("p", { onAnimationEnd: this.removeLoadAnimationClass, class: cn('claimable-item-footer load-animation transition-all duration-[0.4s] px-[20px] text-center leading-[1.5em] h-[4.5em] overflow-hidden text-ellipsis m-0', {
434
+ '!opacity-0 !translate-y-[10px] !scale-[70%]': this.isLoading || this.tabAnimationLoading,
435
+ }) }, item.name)));
436
+ }), h("div", { key: 'bde59a64354da72d443fe00d4f5e655e17f4010b', class: cn('progress-bar h-[10px] opacity-0 bg-[linear-gradient(to_bottom,_#428bca_0%,_#3071a9_100%)] border border-[#ddd] rounded-[10px] w-0 absolute left-0 transition-all duration-500 z-0', {
437
+ '!w-0 !opacity-0': this.isLoading || this.tabAnimationLoading,
438
+ }) })), h("div", { key: '0d26706af93683381eeb154d660e30888a55ef57', class: cn('absolute w-[90%] left-1/2 ml-[-45%] bottom-[40px] z-[1]', { '!z-[-1]': !(this.vehicleInformation && hasInactiveItems) }) }, h("div", { key: '65f407d2ead8a828ba8cbd85f745286ed7c182a4', class: cn('card warning-card span-entire-1st-row activation-panel', {
439
+ loading: this.isLoading || this.tabAnimationLoading,
440
+ visible: hasInactiveItems,
441
+ }), onAnimationEnd: this.removeLoadAnimationClass }, h("p", { key: '3bc24cddfff666c5e5d6151128e5556246f4191c', class: "no-padding flex gap-2" }, h("span", { key: '97ec53465789ac41c60ba78476865c526516f28d', class: "font-semibold" }, texts.warrantyAndServicesNotActivated)), h("button", { key: '3559fbedb98d0d66a018448b47a0c5ae22181e13', onClick: () => {
442
+ if (this.activate) {
443
+ this.activate(this.vehicleInformation);
444
+ }
445
+ }, class: "claim-button" }, h("svg", { key: 'afaad252b24ef036246d7ea4e5dfa0e586072286', class: "size-[30px] duration-200", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: '29417f41b50310c2a3196aa09f9ec8356f444b2b', "stroke-width": "0" }), h("g", { key: '337ff662f389278eb4252e67d7297b8104b58ad9', "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", { key: '69055decd90dbf005e604c49e1b8758766b4e59d' }, h("circle", { key: '0e241fa0f14d0363201609a701bf1fe5d09c611f', cx: "12", cy: "12", r: "8", "fill-opacity": "0.24" }), h("path", { key: 'cdc48fe47ee90b76cb94f6db6fbd2b66170c4fdd', d: "M8.5 11L11.3939 13.8939C11.4525 13.9525 11.5475 13.9525 11.6061 13.8939L19.5 6", "stroke-width": "1.2" }))), h("span", { key: '5cfe67e43afa0342e680e9f195dd37c95f0d2dbb' }, texts.activateNow)))), h("div", { key: '2ecd71e4bd4f8e096473b74e330de8f50272f6c5', class: cn('absolute w-[90%] left-1/2 ml-[-45%] bottom-[40px] z-[1]', { '!z-[-1]': !this.showPrintBox }) }, h("div", { key: 'bda52bd244b2af92b3c6c0501e8f85eded6c56c5', class: cn('card warning-card span-entire-1st-row activation-panel', {
446
+ loading: this.isLoading,
447
+ visible: this.showPrintBox,
448
+ }), onAnimationEnd: this.removeLoadAnimationClass }, h("p", { key: '77be3dfd74e1271f4a6c8799feed44d611733604', class: "no-padding flex gap-2" }, h("span", { key: '7cb43c7a81f928396fe932385955bdbe9543a487', class: "font-semibold" }, texts.successFulClaimMessage)), h("button", { key: 'ea9a839303813a7177b66023cc1f961954f4f91b', onClick: () => {
449
+ if (this.print) {
450
+ this.print(this.lastSuccessfulClaimResponse);
451
+ }
452
+ else {
453
+ if (this.lastSuccessfulClaimResponse.PrintURL) {
454
+ window.open(this.lastSuccessfulClaimResponse.PrintURL, '_blank').focus();
455
+ }
456
+ }
457
+ }, class: "claim-button dynamic-claim-button" }, h("svg", { key: 'fec1b6e0cf6615788bcf9ef246a3e9259ae694f9', width: "30px", height: "30px", viewBox: "-5 -5 36 36", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'f2348cb0d49cb586e28111952f6b0620948b7d25', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M17 7H7V6h10v1zm0 12H7v-6h10v6zm2-12V3H5v4H1v8.996C1 17.103 1.897 18 3.004 18H5v3h14v-3h1.996A2.004 2.004 0 0 0 23 15.996V7h-4z", fill: "rgb(252, 248, 227)" })), h("span", { key: 'cf58fe2d58d553130b8281d28c3057b5a89097e3' }, texts.print)))))))));
458
+ }
459
+ static get is() { return "vehicle-claimable-items"; }
460
+ static get encapsulation() { return "shadow"; }
461
+ static get originalStyleUrls() {
462
+ return {
463
+ "$": ["vehicle-claimable-items.css"]
464
+ };
465
+ }
466
+ static get styleUrls() {
467
+ return {
468
+ "$": ["vehicle-claimable-items.css"]
469
+ };
470
+ }
471
+ static get properties() {
472
+ return {
473
+ "baseUrl": {
474
+ "type": "string",
475
+ "attribute": "base-url",
476
+ "mutable": false,
477
+ "complexType": {
478
+ "original": "string",
479
+ "resolved": "string",
480
+ "references": {}
481
+ },
482
+ "required": false,
483
+ "optional": false,
484
+ "docs": {
485
+ "tags": [],
486
+ "text": ""
487
+ },
488
+ "getter": false,
489
+ "setter": false,
490
+ "reflect": false
491
+ },
492
+ "headers": {
493
+ "type": "any",
494
+ "attribute": "headers",
495
+ "mutable": false,
496
+ "complexType": {
497
+ "original": "any",
498
+ "resolved": "any",
499
+ "references": {}
500
+ },
501
+ "required": false,
502
+ "optional": false,
503
+ "docs": {
504
+ "tags": [],
505
+ "text": ""
506
+ },
507
+ "getter": false,
508
+ "setter": false,
509
+ "reflect": false,
510
+ "defaultValue": "{}"
511
+ },
512
+ "isDev": {
513
+ "type": "boolean",
514
+ "attribute": "is-dev",
515
+ "mutable": false,
516
+ "complexType": {
517
+ "original": "boolean",
518
+ "resolved": "boolean",
519
+ "references": {}
520
+ },
521
+ "required": false,
522
+ "optional": false,
523
+ "docs": {
524
+ "tags": [],
525
+ "text": ""
526
+ },
527
+ "getter": false,
528
+ "setter": false,
529
+ "reflect": false,
530
+ "defaultValue": "false"
531
+ },
532
+ "queryString": {
533
+ "type": "string",
534
+ "attribute": "query-string",
535
+ "mutable": false,
536
+ "complexType": {
537
+ "original": "string",
538
+ "resolved": "string",
539
+ "references": {}
540
+ },
541
+ "required": false,
542
+ "optional": false,
543
+ "docs": {
544
+ "tags": [],
545
+ "text": ""
546
+ },
547
+ "getter": false,
548
+ "setter": false,
549
+ "reflect": false,
550
+ "defaultValue": "''"
551
+ },
552
+ "coreOnly": {
553
+ "type": "boolean",
554
+ "attribute": "core-only",
555
+ "mutable": false,
556
+ "complexType": {
557
+ "original": "boolean",
558
+ "resolved": "boolean",
559
+ "references": {}
560
+ },
561
+ "required": false,
562
+ "optional": false,
563
+ "docs": {
564
+ "tags": [],
565
+ "text": ""
566
+ },
567
+ "getter": false,
568
+ "setter": false,
569
+ "reflect": false,
570
+ "defaultValue": "false"
571
+ },
572
+ "language": {
573
+ "type": "string",
574
+ "attribute": "language",
575
+ "mutable": false,
576
+ "complexType": {
577
+ "original": "LanguageKeys",
578
+ "resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
579
+ "references": {
580
+ "LanguageKeys": {
581
+ "location": "import",
582
+ "path": "~types/locale",
583
+ "id": "src/global/types/locale.ts::LanguageKeys"
584
+ }
585
+ }
586
+ },
587
+ "required": false,
588
+ "optional": false,
589
+ "docs": {
590
+ "tags": [],
591
+ "text": ""
592
+ },
593
+ "getter": false,
594
+ "setter": false,
595
+ "reflect": false,
596
+ "defaultValue": "'en'"
597
+ },
598
+ "print": {
599
+ "type": "unknown",
600
+ "attribute": "print",
601
+ "mutable": false,
602
+ "complexType": {
603
+ "original": "(claimResponse: any) => void",
604
+ "resolved": "(claimResponse: any) => void",
605
+ "references": {}
606
+ },
607
+ "required": false,
608
+ "optional": true,
609
+ "docs": {
610
+ "tags": [],
611
+ "text": ""
612
+ },
613
+ "getter": false,
614
+ "setter": false
615
+ },
616
+ "maximumDocumentFileSizeInMb": {
617
+ "type": "number",
618
+ "attribute": "maximum-document-file-size-in-mb",
619
+ "mutable": false,
620
+ "complexType": {
621
+ "original": "number",
622
+ "resolved": "number",
623
+ "references": {}
624
+ },
625
+ "required": false,
626
+ "optional": false,
627
+ "docs": {
628
+ "tags": [],
629
+ "text": ""
630
+ },
631
+ "getter": false,
632
+ "setter": false,
633
+ "reflect": false,
634
+ "defaultValue": "30"
635
+ },
636
+ "claimEndPoint": {
637
+ "type": "string",
638
+ "attribute": "claim-end-point",
639
+ "mutable": false,
640
+ "complexType": {
641
+ "original": "string",
642
+ "resolved": "string",
643
+ "references": {}
644
+ },
645
+ "required": false,
646
+ "optional": false,
647
+ "docs": {
648
+ "tags": [],
649
+ "text": ""
650
+ },
651
+ "getter": false,
652
+ "setter": false,
653
+ "reflect": false,
654
+ "defaultValue": "'api/vehicle/swift-claim'"
655
+ },
656
+ "errorCallback": {
657
+ "type": "unknown",
658
+ "attribute": "error-callback",
659
+ "mutable": false,
660
+ "complexType": {
661
+ "original": "(errorMessage: ErrorKeys) => void",
662
+ "resolved": "(errorMessage: OptionalKeys<{ noBaseUrl: string; invalidVin: string; vinNumberRequired: string; partNumberRequired: string; wrongResponseFormat: string; noPartsFound: string; noServiceAvailable: string; wrongFormStructure: string; wildCard: string; requestFailedPleaseTryAgainLater: string; }>) => void",
663
+ "references": {
664
+ "ErrorKeys": {
665
+ "location": "import",
666
+ "path": "~lib/get-local-language",
667
+ "id": "src/global/lib/get-local-language.ts::ErrorKeys"
668
+ }
669
+ }
670
+ },
671
+ "required": false,
672
+ "optional": false,
673
+ "docs": {
674
+ "tags": [],
675
+ "text": ""
676
+ },
677
+ "getter": false,
678
+ "setter": false
679
+ },
680
+ "loadingStateChange": {
681
+ "type": "unknown",
682
+ "attribute": "loading-state-change",
683
+ "mutable": false,
684
+ "complexType": {
685
+ "original": "(isLoading: boolean) => void",
686
+ "resolved": "(isLoading: boolean) => void",
687
+ "references": {}
688
+ },
689
+ "required": false,
690
+ "optional": true,
691
+ "docs": {
692
+ "tags": [],
693
+ "text": ""
694
+ },
695
+ "getter": false,
696
+ "setter": false
697
+ },
698
+ "loadedResponse": {
699
+ "type": "unknown",
700
+ "attribute": "loaded-response",
701
+ "mutable": false,
702
+ "complexType": {
703
+ "original": "(response: VehicleLookupDTO) => void",
704
+ "resolved": "(response: VehicleLookupDTO) => void",
705
+ "references": {
706
+ "VehicleLookupDTO": {
707
+ "location": "import",
708
+ "path": "~types/generated/vehicle-lookup/vehicle-lookup-dto",
709
+ "id": "src/global/types/generated/vehicle-lookup/vehicle-lookup-dto.ts::VehicleLookupDTO"
710
+ }
711
+ }
712
+ },
713
+ "required": false,
714
+ "optional": true,
715
+ "docs": {
716
+ "tags": [],
717
+ "text": ""
718
+ },
719
+ "getter": false,
720
+ "setter": false
721
+ },
722
+ "activate": {
723
+ "type": "unknown",
724
+ "attribute": "activate",
725
+ "mutable": false,
726
+ "complexType": {
727
+ "original": "(vehicleInformation: VehicleLookupDTO) => void",
728
+ "resolved": "(vehicleInformation: VehicleLookupDTO) => void",
729
+ "references": {
730
+ "VehicleLookupDTO": {
731
+ "location": "import",
732
+ "path": "~types/generated/vehicle-lookup/vehicle-lookup-dto",
733
+ "id": "src/global/types/generated/vehicle-lookup/vehicle-lookup-dto.ts::VehicleLookupDTO"
734
+ }
735
+ }
736
+ },
737
+ "required": false,
738
+ "optional": true,
739
+ "docs": {
740
+ "tags": [],
741
+ "text": ""
742
+ },
743
+ "getter": false,
744
+ "setter": false
745
+ }
746
+ };
747
+ }
748
+ static get states() {
749
+ return {
750
+ "sharedLocales": {},
751
+ "locale": {},
752
+ "activeTab": {},
753
+ "isError": {},
754
+ "showPopup": {},
755
+ "isLoading": {},
756
+ "externalVin": {},
757
+ "showPrintBox": {},
758
+ "errorMessage": {},
759
+ "tabAnimationLoading": {},
760
+ "activePopupIndex": {},
761
+ "tabs": {},
762
+ "lastSuccessfulClaimResponse": {},
763
+ "vehicleInformation": {}
764
+ };
765
+ }
766
+ static get methods() {
767
+ return {
768
+ "setMockData": {
769
+ "complexType": {
770
+ "signature": "(newMockData: MockJson<VehicleLookupDTO>) => Promise<void>",
771
+ "parameters": [{
772
+ "name": "newMockData",
773
+ "type": "{ [key: string]: VehicleLookupDTO; }",
774
+ "docs": ""
775
+ }],
776
+ "references": {
777
+ "Promise": {
778
+ "location": "global",
779
+ "id": "global::Promise"
780
+ },
781
+ "MockJson": {
782
+ "location": "import",
783
+ "path": "~types/components",
784
+ "id": "src/global/types/components.ts::MockJson"
785
+ },
786
+ "VehicleLookupDTO": {
787
+ "location": "import",
788
+ "path": "~types/generated/vehicle-lookup/vehicle-lookup-dto",
789
+ "id": "src/global/types/generated/vehicle-lookup/vehicle-lookup-dto.ts::VehicleLookupDTO"
790
+ }
791
+ },
792
+ "return": "Promise<void>"
793
+ },
794
+ "docs": {
795
+ "text": "",
796
+ "tags": []
797
+ }
798
+ },
799
+ "setData": {
800
+ "complexType": {
801
+ "signature": "(newData: VehicleLookupDTO | string, headers?: any) => Promise<void>",
802
+ "parameters": [{
803
+ "name": "newData",
804
+ "type": "string | VehicleLookupDTO",
805
+ "docs": ""
806
+ }, {
807
+ "name": "headers",
808
+ "type": "any",
809
+ "docs": ""
810
+ }],
811
+ "references": {
812
+ "Promise": {
813
+ "location": "global",
814
+ "id": "global::Promise"
815
+ },
816
+ "VehicleLookupDTO": {
817
+ "location": "import",
818
+ "path": "~types/generated/vehicle-lookup/vehicle-lookup-dto",
819
+ "id": "src/global/types/generated/vehicle-lookup/vehicle-lookup-dto.ts::VehicleLookupDTO"
820
+ },
821
+ "ReturnType": {
822
+ "location": "global",
823
+ "id": "global::ReturnType"
824
+ },
825
+ "VehicleServiceItemDTO": {
826
+ "location": "import",
827
+ "path": "~types/generated/vehicle-lookup/vehicle-service-item-dto",
828
+ "id": "src/global/types/generated/vehicle-lookup/vehicle-service-item-dto.ts::VehicleServiceItemDTO"
829
+ }
830
+ },
831
+ "return": "Promise<void>"
832
+ },
833
+ "docs": {
834
+ "text": "",
835
+ "tags": []
836
+ }
837
+ },
838
+ "setErrorMessage": {
839
+ "complexType": {
840
+ "signature": "(message: ErrorKeys) => Promise<void>",
841
+ "parameters": [{
842
+ "name": "message",
843
+ "type": "\"noBaseUrl\" | \"invalidVin\" | \"vinNumberRequired\" | \"partNumberRequired\" | \"wrongResponseFormat\" | \"noPartsFound\" | \"noServiceAvailable\" | \"wrongFormStructure\" | \"wildCard\" | \"requestFailedPleaseTryAgainLater\"",
844
+ "docs": ""
845
+ }],
846
+ "references": {
847
+ "Promise": {
848
+ "location": "global",
849
+ "id": "global::Promise"
850
+ },
851
+ "ErrorKeys": {
852
+ "location": "import",
853
+ "path": "~lib/get-local-language",
854
+ "id": "src/global/lib/get-local-language.ts::ErrorKeys"
855
+ }
856
+ },
857
+ "return": "Promise<void>"
858
+ },
859
+ "docs": {
860
+ "text": "",
861
+ "tags": []
862
+ }
863
+ },
864
+ "fetchData": {
865
+ "complexType": {
866
+ "signature": "(requestedVin?: string, headers?: any) => Promise<void>",
867
+ "parameters": [{
868
+ "name": "requestedVin",
869
+ "type": "string",
870
+ "docs": ""
871
+ }, {
872
+ "name": "headers",
873
+ "type": "any",
874
+ "docs": ""
875
+ }],
876
+ "references": {
877
+ "Promise": {
878
+ "location": "global",
879
+ "id": "global::Promise"
880
+ }
881
+ },
882
+ "return": "Promise<void>"
883
+ },
884
+ "docs": {
885
+ "text": "",
886
+ "tags": []
887
+ }
888
+ },
889
+ "completeClaim": {
890
+ "complexType": {
891
+ "signature": "(response: any) => Promise<void>",
892
+ "parameters": [{
893
+ "name": "response",
894
+ "type": "any",
895
+ "docs": ""
896
+ }],
897
+ "references": {
898
+ "Promise": {
899
+ "location": "global",
900
+ "id": "global::Promise"
901
+ },
902
+ "VehicleLookupDTO": {
903
+ "location": "import",
904
+ "path": "~types/generated/vehicle-lookup/vehicle-lookup-dto",
905
+ "id": "src/global/types/generated/vehicle-lookup/vehicle-lookup-dto.ts::VehicleLookupDTO"
906
+ }
907
+ },
908
+ "return": "Promise<void>"
909
+ },
910
+ "docs": {
911
+ "text": "",
912
+ "tags": []
913
+ }
914
+ },
915
+ "claim": {
916
+ "complexType": {
917
+ "signature": "(item: VehicleServiceItemDTO) => Promise<void>",
918
+ "parameters": [{
919
+ "name": "item",
920
+ "type": "{ group: VehicleServiceItemGroup; showDocumentUploader: boolean; documentUploaderIsRequired: boolean; name: string; description: string; title: string; image: string; type: string; typeEnum: \"Free\" | \"Paid\"; activatedAt: string; expiresAt?: string; status: string; statusEnum: \"Processed\" | \"Expired\" | \"Pending\" | \"Cancelled\" | \"ActivationRequired\"; campaignID?: number; campaignUniqueReference: string; packageCode: string; cost?: number; claimDate?: string; modelCostID?: number; serviceItemID: number; paidServiceInvoiceLineID?: number; companyID: string; companyName: string; invoiceNumber: string; jobNumber: string; maximumMileage?: number; claimable: boolean; claimingMethodEnum: \"ClaimByScanningQRCode\" | \"ClaimByEnteringInvoiceAndJobNumber\"; vehicleInspectionID: string; signature: string; signatureExpiry: string; }",
921
+ "docs": ""
922
+ }],
923
+ "references": {
924
+ "Promise": {
925
+ "location": "global",
926
+ "id": "global::Promise"
927
+ },
928
+ "VehicleServiceItemDTO": {
929
+ "location": "import",
930
+ "path": "~types/generated/vehicle-lookup/vehicle-service-item-dto",
931
+ "id": "src/global/types/generated/vehicle-lookup/vehicle-service-item-dto.ts::VehicleServiceItemDTO"
932
+ }
933
+ },
934
+ "return": "Promise<void>"
935
+ },
936
+ "docs": {
937
+ "text": "",
938
+ "tags": []
939
+ }
940
+ }
941
+ };
942
+ }
943
+ static get elementRef() { return "el"; }
944
+ static get watchers() {
945
+ return [{
946
+ "propName": "language",
947
+ "methodName": "changeLanguage"
948
+ }, {
949
+ "propName": "isLoading",
950
+ "methodName": "onLoadingChange"
951
+ }, {
952
+ "propName": "vehicleInformation",
953
+ "methodName": "resetProgressBar"
954
+ }, {
955
+ "propName": "popupClasses",
956
+ "methodName": "windowScrollListener"
957
+ }];
958
+ }
959
+ }