adp-web-components 0.0.65 → 0.0.67

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 (317) hide show
  1. package/dist/cjs/app-globals-4aa8f46f.js +46 -0
  2. package/dist/cjs/cn-f559f9e5.js +2588 -0
  3. package/dist/cjs/contact-us-form.cjs.entry.js +209 -0
  4. package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +445 -0
  5. package/dist/cjs/dynamic-claim_6.cjs.entry.js +1180 -0
  6. package/dist/cjs/dynamic-redeem.cjs.entry.js +156 -0
  7. package/dist/cjs/form-dialog_8.cjs.entry.js +503 -0
  8. package/dist/cjs/get-local-language-ec0e41e0.js +2381 -0
  9. package/dist/cjs/index-603d8f32.js +1610 -0
  10. package/dist/cjs/index.cjs.js +6 -0
  11. package/dist/cjs/loader-baf2418b.js +9 -0
  12. package/dist/cjs/loader.cjs.js +19 -0
  13. package/dist/cjs/loading-spinner.cjs.entry.js +27 -0
  14. package/dist/cjs/part-lookup.cjs.entry.js +129 -0
  15. package/dist/cjs/service-booking-form.cjs.entry.js +209 -0
  16. package/dist/cjs/shift-components.cjs.js +29 -0
  17. package/dist/cjs/urls-9077b31c.js +4874 -0
  18. package/dist/cjs/vehicle-lookup.cjs.entry.js +203 -0
  19. package/dist/collection/collection-manifest.json +35 -0
  20. package/dist/collection/components/components/loading-spinner.css +1 -0
  21. package/dist/collection/components/components/loading-spinner.js +47 -0
  22. package/dist/collection/components/form-elements/form-dialog.css +1 -0
  23. package/dist/collection/components/form-elements/form-dialog.js +137 -0
  24. package/dist/collection/components/form-elements/form-input.css +1 -0
  25. package/dist/collection/components/form-elements/form-input.js +323 -0
  26. package/dist/collection/components/form-elements/form-select.css +1 -0
  27. package/dist/collection/components/form-elements/form-select.js +400 -0
  28. package/dist/collection/components/form-elements/form-shadow-input.css +1 -0
  29. package/dist/collection/components/form-elements/form-shadow-input.js +100 -0
  30. package/dist/collection/components/form-elements/form-structure-error.css +1 -0
  31. package/dist/collection/components/form-elements/form-structure-error.js +72 -0
  32. package/dist/collection/components/form-elements/form-structure.css +1 -0
  33. package/dist/collection/components/form-elements/form-structure.js +269 -0
  34. package/dist/collection/components/form-elements/form-submit.css +1 -0
  35. package/dist/collection/components/form-elements/form-submit.js +140 -0
  36. package/dist/collection/components/form-elements/form-text-area.css +1 -0
  37. package/dist/collection/components/form-elements/form-text-area.js +264 -0
  38. package/dist/collection/components/forms/contact-us/element-mapper.js +87 -0
  39. package/dist/collection/components/forms/contact-us/form.css +1 -0
  40. package/dist/collection/components/forms/contact-us/validations.js +19 -0
  41. package/dist/collection/components/forms/contact-us-form.js +280 -0
  42. package/dist/collection/components/forms/service-booking/element-mapper.js +87 -0
  43. package/dist/collection/components/forms/service-booking/form.css +1 -0
  44. package/dist/collection/components/forms/service-booking/validations.js +19 -0
  45. package/dist/collection/components/forms/service-booking-form.js +280 -0
  46. package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -0
  47. package/dist/collection/components/part-lookup/dead-stock-lookup.js +405 -0
  48. package/dist/collection/components/part-lookup/distributor-lookup.css +1 -0
  49. package/dist/collection/components/part-lookup/distributor-lookup.js +470 -0
  50. package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -0
  51. package/dist/collection/components/part-lookup/manufacturer-lookup.js +468 -0
  52. package/dist/collection/components/part-lookup/part-lookup.css +1 -0
  53. package/dist/collection/components/part-lookup/part-lookup.js +376 -0
  54. package/dist/collection/components/vehicle-lookup/assets/cancelled.svg +8 -0
  55. package/dist/collection/components/vehicle-lookup/assets/check.svg +4 -0
  56. package/dist/collection/components/vehicle-lookup/assets/expired.svg +9 -0
  57. package/dist/collection/components/vehicle-lookup/assets/loader.svg +11 -0
  58. package/dist/collection/components/vehicle-lookup/assets/pending.svg +9 -0
  59. package/dist/collection/components/vehicle-lookup/assets/processed.svg +9 -0
  60. package/dist/collection/components/vehicle-lookup/assets/x-mark.svg +4 -0
  61. package/dist/collection/components/vehicle-lookup/components/CardsContainer.js +13 -0
  62. package/dist/collection/components/vehicle-lookup/components/Loading.js +10 -0
  63. package/dist/collection/components/vehicle-lookup/components/SSCTable.js +16 -0
  64. package/dist/collection/components/vehicle-lookup/components/StatusCard.js +11 -0
  65. package/dist/collection/components/vehicle-lookup/dynamic-claim.css +1 -0
  66. package/dist/collection/components/vehicle-lookup/dynamic-claim.js +662 -0
  67. package/dist/collection/components/vehicle-lookup/dynamic-redeem.css +1 -0
  68. package/dist/collection/components/vehicle-lookup/dynamic-redeem.js +373 -0
  69. package/dist/collection/components/vehicle-lookup/paint-thickness.css +1 -0
  70. package/dist/collection/components/vehicle-lookup/paint-thickness.js +410 -0
  71. package/dist/collection/components/vehicle-lookup/service-history.css +1 -0
  72. package/dist/collection/components/vehicle-lookup/service-history.js +393 -0
  73. package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +1 -0
  74. package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +414 -0
  75. package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -0
  76. package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +406 -0
  77. package/dist/collection/components/vehicle-lookup/vehicle-specification.css +1 -0
  78. package/dist/collection/components/vehicle-lookup/vehicle-specification.js +405 -0
  79. package/dist/collection/components/vehicle-lookup/warranty-details.css +1 -0
  80. package/dist/collection/components/vehicle-lookup/warranty-details.js +780 -0
  81. package/dist/collection/global/api/partInformation.js +32 -0
  82. package/dist/collection/global/api/urls.js +6 -0
  83. package/dist/collection/global/api/vehicleInformation.js +48 -0
  84. package/dist/collection/global/assets/eye.svg +5 -0
  85. package/dist/collection/global/assets/loader.svg +11 -0
  86. package/dist/collection/global/assets/white-loader.svg +11 -0
  87. package/dist/collection/global/lib/cn.js +9 -0
  88. package/dist/collection/global/lib/form-hook.js +162 -0
  89. package/dist/collection/global/lib/general.js +9 -0
  90. package/dist/collection/global/lib/get-local-language.js +20 -0
  91. package/dist/collection/global/lib/image-expansion.js +69 -0
  92. package/dist/collection/global/lib/middleware.js +39 -0
  93. package/dist/collection/global/lib/recaptcha.js +25 -0
  94. package/dist/collection/global/lib/utils.js +7 -0
  95. package/dist/collection/global/lib/validate-form-structure.js +47 -0
  96. package/dist/collection/global/lib/validate-vin.js +62 -0
  97. package/dist/collection/global/types/components.js +1 -0
  98. package/dist/collection/global/types/forms.js +1 -0
  99. package/dist/collection/global/types/general.js +1 -0
  100. package/dist/collection/global/types/locales/error-schema.js +17 -0
  101. package/dist/collection/global/types/locales/forms/contact-us-schema.js +24 -0
  102. package/dist/collection/global/types/locales/forms/index.js +11 -0
  103. package/dist/collection/global/types/locales/general.js +11 -0
  104. package/dist/collection/global/types/locales/index.js +33 -0
  105. package/dist/collection/global/types/locales/inquiryTypes.js +15 -0
  106. package/dist/collection/global/types/locales/part-lookup/dead-stock-schema.js +10 -0
  107. package/dist/collection/global/types/locales/part-lookup/distributor-schema.js +21 -0
  108. package/dist/collection/global/types/locales/part-lookup/index.js +13 -0
  109. package/dist/collection/global/types/locales/part-lookup/manufacturer-schema.js +22 -0
  110. package/dist/collection/global/types/locales/vehicle-lookup/accessories-schema.js +13 -0
  111. package/dist/collection/global/types/locales/vehicle-lookup/dynamic-claim-schema.js +21 -0
  112. package/dist/collection/global/types/locales/vehicle-lookup/dynamic-redeem-schema.js +19 -0
  113. package/dist/collection/global/types/locales/vehicle-lookup/index.js +21 -0
  114. package/dist/collection/global/types/locales/vehicle-lookup/paint-thickness-schema.js +14 -0
  115. package/dist/collection/global/types/locales/vehicle-lookup/service-history-schema.js +15 -0
  116. package/dist/collection/global/types/locales/vehicle-lookup/specification-schema.js +15 -0
  117. package/dist/collection/global/types/locales/vehicle-lookup/warranty-schema.js +23 -0
  118. package/dist/collection/global/types/part-information.js +1 -0
  119. package/dist/collection/global/types/vehicle-information.js +5 -0
  120. package/dist/collection/index.js +1 -0
  121. package/dist/collection/templates/part-lookup/mock-data.js +199 -0
  122. package/dist/collection/templates/vehicle-lookup/mock-data.js +4165 -0
  123. package/dist/collection/templates/vehicle-lookup/vehicle-lookup.js +285 -0
  124. package/dist/collection/templates/vehicle-lookup/warranty-mock-data.js +3064 -0
  125. package/dist/components/contact-us-form.d.ts +11 -0
  126. package/dist/components/contact-us-form.js +5 -0
  127. package/dist/components/dead-stock-lookup.d.ts +11 -0
  128. package/dist/components/dead-stock-lookup.js +5 -0
  129. package/dist/components/distributor-lookup.d.ts +11 -0
  130. package/dist/components/distributor-lookup.js +5 -0
  131. package/dist/components/dynamic-claim.d.ts +11 -0
  132. package/dist/components/dynamic-claim.js +5 -0
  133. package/dist/components/dynamic-redeem.d.ts +11 -0
  134. package/dist/components/dynamic-redeem.js +5 -0
  135. package/dist/components/form-dialog.d.ts +11 -0
  136. package/dist/components/form-dialog.js +5 -0
  137. package/dist/components/form-input.d.ts +11 -0
  138. package/dist/components/form-input.js +5 -0
  139. package/dist/components/form-select.d.ts +11 -0
  140. package/dist/components/form-select.js +5 -0
  141. package/dist/components/form-shadow-input.d.ts +11 -0
  142. package/dist/components/form-shadow-input.js +5 -0
  143. package/dist/components/form-structure-error.d.ts +11 -0
  144. package/dist/components/form-structure-error.js +5 -0
  145. package/dist/components/form-structure.d.ts +11 -0
  146. package/dist/components/form-structure.js +5 -0
  147. package/dist/components/form-submit.d.ts +11 -0
  148. package/dist/components/form-submit.js +5 -0
  149. package/dist/components/form-text-area.d.ts +11 -0
  150. package/dist/components/form-text-area.js +5 -0
  151. package/dist/components/index.d.ts +33 -0
  152. package/dist/components/index.js +5 -0
  153. package/dist/components/loading-spinner.d.ts +11 -0
  154. package/dist/components/loading-spinner.js +5 -0
  155. package/dist/components/manufacturer-lookup.d.ts +11 -0
  156. package/dist/components/manufacturer-lookup.js +5 -0
  157. package/dist/components/p-00d97183.js +5 -0
  158. package/dist/components/p-1e9e4abd.js +5 -0
  159. package/dist/components/p-1f001d39.js +5 -0
  160. package/dist/components/p-1fe65d6e.js +5 -0
  161. package/dist/components/p-3f19382d.js +5 -0
  162. package/dist/components/p-5b4b3060.js +5 -0
  163. package/dist/components/p-5d3cc3c1.js +5 -0
  164. package/dist/components/p-6055174a.js +5 -0
  165. package/dist/components/p-6e3ab655.js +5 -0
  166. package/dist/components/p-73a5d441.js +5 -0
  167. package/dist/components/p-75476014.js +5 -0
  168. package/dist/components/p-810e84ab.js +5 -0
  169. package/dist/components/p-8b1d90d7.js +5 -0
  170. package/dist/components/p-927296bb.js +5 -0
  171. package/dist/components/p-932ff922.js +5 -0
  172. package/dist/components/p-98d9e7ab.js +5 -0
  173. package/dist/components/p-a21e2e2e.js +5 -0
  174. package/dist/components/p-a2c14be5.js +5 -0
  175. package/dist/components/p-a57338da.js +5 -0
  176. package/dist/components/p-bacd1638.js +5 -0
  177. package/dist/components/p-c526513b.js +5 -0
  178. package/dist/components/p-cb600b18.js +5 -0
  179. package/dist/components/p-ceea200f.js +5 -0
  180. package/dist/components/p-cefc0575.js +5 -0
  181. package/dist/components/p-d5ff7544.js +5 -0
  182. package/dist/components/p-e2158fc6.js +5 -0
  183. package/dist/components/p-fab97ac7.js +5 -0
  184. package/dist/components/paint-thickness.d.ts +11 -0
  185. package/dist/components/paint-thickness.js +5 -0
  186. package/dist/components/part-lookup.d.ts +11 -0
  187. package/dist/components/part-lookup.js +5 -0
  188. package/dist/components/service-booking-form.d.ts +11 -0
  189. package/dist/components/service-booking-form.js +5 -0
  190. package/dist/components/service-history.d.ts +11 -0
  191. package/dist/components/service-history.js +5 -0
  192. package/dist/components/vehicle-accessories.d.ts +11 -0
  193. package/dist/components/vehicle-accessories.js +5 -0
  194. package/dist/components/vehicle-lookup.d.ts +11 -0
  195. package/dist/components/vehicle-lookup.js +5 -0
  196. package/dist/components/vehicle-specification.d.ts +11 -0
  197. package/dist/components/vehicle-specification.js +5 -0
  198. package/dist/components/warranty-details.d.ts +11 -0
  199. package/dist/components/warranty-details.js +5 -0
  200. package/dist/esm/app-globals-68faa233.js +44 -0
  201. package/dist/esm/cn-cc419b94.js +2586 -0
  202. package/dist/esm/contact-us-form.entry.js +205 -0
  203. package/dist/esm/dead-stock-lookup_3.entry.js +439 -0
  204. package/dist/esm/dynamic-claim_6.entry.js +1171 -0
  205. package/dist/esm/dynamic-redeem.entry.js +152 -0
  206. package/dist/esm/form-dialog_8.entry.js +492 -0
  207. package/dist/esm/get-local-language-98c26a89.js +2376 -0
  208. package/dist/esm/index-cac905b0.js +1581 -0
  209. package/dist/esm/index.js +4 -0
  210. package/dist/esm/loader-027b88af.js +7 -0
  211. package/dist/esm/loader.js +15 -0
  212. package/dist/esm/loading-spinner.entry.js +23 -0
  213. package/dist/esm/part-lookup.entry.js +125 -0
  214. package/dist/esm/service-booking-form.entry.js +205 -0
  215. package/dist/esm/shift-components.js +24 -0
  216. package/dist/esm/urls-e22234f9.js +4870 -0
  217. package/dist/esm/vehicle-lookup.entry.js +199 -0
  218. package/dist/index.cjs.js +1 -0
  219. package/dist/index.js +1 -0
  220. package/dist/locales/ar.json +185 -0
  221. package/dist/locales/en.json +185 -0
  222. package/dist/locales/ku.json +185 -0
  223. package/dist/locales/ru.json +185 -0
  224. package/dist/shift-components/index.esm.js +4 -0
  225. package/dist/shift-components/p-014f3fba.entry.js +5 -0
  226. package/dist/shift-components/p-0739b7d7.entry.js +5 -0
  227. package/dist/shift-components/p-446d908d.js +5 -0
  228. package/dist/shift-components/p-46878289.entry.js +5 -0
  229. package/dist/shift-components/p-62c8eed3.entry.js +5 -0
  230. package/dist/shift-components/p-65102e7a.js +6 -0
  231. package/dist/shift-components/p-65a5ebdf.entry.js +5 -0
  232. package/dist/shift-components/p-87f8fbb3.entry.js +5 -0
  233. package/dist/shift-components/p-8830682d.entry.js +5 -0
  234. package/dist/shift-components/p-932ff922.js +5 -0
  235. package/dist/shift-components/p-98d9e7ab.js +5 -0
  236. package/dist/shift-components/p-a21e2e2e.js +5 -0
  237. package/dist/shift-components/p-c06844c1.js +5 -0
  238. package/dist/shift-components/p-da1511a0.entry.js +5 -0
  239. package/dist/shift-components/p-f68052c1.entry.js +5 -0
  240. package/dist/shift-components/shift-components.esm.js +5 -0
  241. package/dist/types/components/components/loading-spinner.d.ts +4 -0
  242. package/dist/types/components/form-elements/form-dialog.d.ts +13 -0
  243. package/dist/types/components/form-elements/form-input.d.ts +28 -0
  244. package/dist/types/components/form-elements/form-select.d.ts +39 -0
  245. package/dist/types/components/form-elements/form-shadow-input.d.ts +9 -0
  246. package/dist/types/components/form-elements/form-structure-error.d.ts +8 -0
  247. package/dist/types/components/form-elements/form-structure.d.ts +23 -0
  248. package/dist/types/components/form-elements/form-submit.d.ts +12 -0
  249. package/dist/types/components/form-elements/form-text-area.d.ts +24 -0
  250. package/dist/types/components/forms/contact-us/element-mapper.d.ts +3 -0
  251. package/dist/types/components/forms/contact-us/validations.d.ts +26 -0
  252. package/dist/types/components/forms/contact-us-form.d.ts +32 -0
  253. package/dist/types/components/forms/service-booking/element-mapper.d.ts +3 -0
  254. package/dist/types/components/forms/service-booking/validations.d.ts +26 -0
  255. package/dist/types/components/forms/service-booking-form.d.ts +32 -0
  256. package/dist/types/components/part-lookup/dead-stock-lookup.d.ts +31 -0
  257. package/dist/types/components/part-lookup/distributor-lookup.d.ts +32 -0
  258. package/dist/types/components/part-lookup/manufacturer-lookup.d.ts +33 -0
  259. package/dist/types/components/part-lookup/part-lookup.d.ts +43 -0
  260. package/dist/types/components/vehicle-lookup/components/CardsContainer.d.ts +10 -0
  261. package/dist/types/components/vehicle-lookup/components/Loading.d.ts +5 -0
  262. package/dist/types/components/vehicle-lookup/components/SSCTable.d.ts +8 -0
  263. package/dist/types/components/vehicle-lookup/components/StatusCard.d.ts +12 -0
  264. package/dist/types/components/vehicle-lookup/dynamic-claim.d.ts +57 -0
  265. package/dist/types/components/vehicle-lookup/dynamic-redeem.d.ts +39 -0
  266. package/dist/types/components/vehicle-lookup/paint-thickness.d.ts +35 -0
  267. package/dist/types/components/vehicle-lookup/service-history.d.ts +30 -0
  268. package/dist/types/components/vehicle-lookup/vehicle-accessories.d.ts +35 -0
  269. package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +53 -0
  270. package/dist/types/components/vehicle-lookup/vehicle-specification.d.ts +29 -0
  271. package/dist/types/components/vehicle-lookup/warranty-details.d.ts +57 -0
  272. package/dist/types/components.d.ts +764 -0
  273. package/dist/types/global/api/partInformation.d.ts +19 -0
  274. package/dist/types/global/api/urls.d.ts +2 -0
  275. package/dist/types/global/api/vehicleInformation.d.ts +33 -0
  276. package/dist/types/global/lib/cn.d.ts +2 -0
  277. package/dist/types/global/lib/form-hook.d.ts +47 -0
  278. package/dist/types/global/lib/general.d.ts +1 -0
  279. package/dist/types/global/lib/get-local-language.d.ts +2 -0
  280. package/dist/types/global/lib/image-expansion.d.ts +9 -0
  281. package/dist/types/global/lib/middleware.d.ts +0 -0
  282. package/dist/types/global/lib/recaptcha.d.ts +16 -0
  283. package/dist/types/global/lib/utils.d.ts +1 -0
  284. package/dist/types/global/lib/validate-form-structure.d.ts +3 -0
  285. package/dist/types/global/lib/validate-vin.d.ts +1 -0
  286. package/dist/types/global/types/components.d.ts +7 -0
  287. package/dist/types/global/types/forms.d.ts +63 -0
  288. package/dist/types/global/types/general.d.ts +23 -0
  289. package/dist/types/global/types/locales/error-schema.d.ts +23 -0
  290. package/dist/types/global/types/locales/forms/contact-us-schema.d.ts +37 -0
  291. package/dist/types/global/types/locales/forms/index.d.ts +45 -0
  292. package/dist/types/global/types/locales/general.d.ts +11 -0
  293. package/dist/types/global/types/locales/index.d.ts +382 -0
  294. package/dist/types/global/types/locales/inquiryTypes.d.ts +19 -0
  295. package/dist/types/global/types/locales/part-lookup/dead-stock-schema.d.ts +9 -0
  296. package/dist/types/global/types/locales/part-lookup/distributor-schema.d.ts +31 -0
  297. package/dist/types/global/types/locales/part-lookup/index.d.ts +79 -0
  298. package/dist/types/global/types/locales/part-lookup/manufacturer-schema.d.ts +33 -0
  299. package/dist/types/global/types/locales/vehicle-lookup/accessories-schema.d.ts +15 -0
  300. package/dist/types/global/types/locales/vehicle-lookup/dynamic-claim-schema.d.ts +31 -0
  301. package/dist/types/global/types/locales/vehicle-lookup/dynamic-redeem-schema.d.ts +27 -0
  302. package/dist/types/global/types/locales/vehicle-lookup/index.d.ts +173 -0
  303. package/dist/types/global/types/locales/vehicle-lookup/paint-thickness-schema.d.ts +17 -0
  304. package/dist/types/global/types/locales/vehicle-lookup/service-history-schema.d.ts +19 -0
  305. package/dist/types/global/types/locales/vehicle-lookup/specification-schema.d.ts +19 -0
  306. package/dist/types/global/types/locales/vehicle-lookup/warranty-schema.d.ts +35 -0
  307. package/dist/types/global/types/part-information.d.ts +53 -0
  308. package/dist/types/global/types/vehicle-information.d.ts +172 -0
  309. package/dist/types/index.d.ts +10 -0
  310. package/dist/types/stencil-public-runtime.d.ts +1680 -0
  311. package/loader/cdn.js +5 -0
  312. package/loader/index.cjs.js +5 -0
  313. package/loader/index.d.ts +24 -0
  314. package/loader/index.es2017.js +5 -0
  315. package/loader/index.js +6 -0
  316. package/loader/package.json +11 -0
  317. package/package.json +1 -1
@@ -0,0 +1,662 @@
1
+ /*!
2
+ * Built by ShiftSoftware
3
+ * Copyright (c)
4
+ */
5
+ import { Host, h } from "@stencil/core";
6
+ import cn from "../../global/lib/cn";
7
+ import { getLocaleLanguage } from "../../global/lib/get-local-language";
8
+ import expiredIcon from "./assets/expired.svg";
9
+ import pendingIcon from "./assets/pending.svg";
10
+ import cancelledIcon from "./assets/cancelled.svg";
11
+ import processedIcon from "./assets/processed.svg";
12
+ import { localeSchema } from "../../global/types/locales/index";
13
+ import { getVehicleInformation } from "../../global/api/vehicleInformation";
14
+ let mockData = {};
15
+ const icons = {
16
+ expired: expiredIcon,
17
+ pending: pendingIcon,
18
+ processed: processedIcon,
19
+ cancelled: cancelledIcon,
20
+ };
21
+ export class DynamicClaim {
22
+ constructor() {
23
+ this.pendingItemHighlighted = false;
24
+ this.onMouseLeave = () => {
25
+ clearTimeout(this.timeoutRef);
26
+ this.popupClasses = '';
27
+ this.timeoutRef = setTimeout(() => {
28
+ this.activePopupIndex = null;
29
+ }, 400);
30
+ };
31
+ this.onMouseEnter = (dynamicClaimItemHeader, idx) => {
32
+ clearTimeout(this.timeoutRef);
33
+ this.activePopupIndex = idx;
34
+ this.timeoutRef = setTimeout(() => {
35
+ const positionRef = dynamicClaimItemHeader.querySelector('.popup-position-ref');
36
+ this.popupPositionRef = positionRef;
37
+ this.calculatePopupPos(this.el.shadowRoot);
38
+ this.popupClasses = 'show';
39
+ }, 50);
40
+ };
41
+ this.baseUrl = undefined;
42
+ this.isDev = false;
43
+ this.queryString = '';
44
+ this.claimEndPoint = 'api/vehicle/swift-claim';
45
+ this.headers = {};
46
+ this.language = 'en';
47
+ this.errorCallback = undefined;
48
+ this.loadingStateChange = undefined;
49
+ this.loadedResponse = undefined;
50
+ this.locale = localeSchema.getDefault();
51
+ this.isIdle = true;
52
+ this.popupClasses = '';
53
+ this.isLoading = false;
54
+ this.externalVin = null;
55
+ this.errorMessage = null;
56
+ this.activePopupIndex = null;
57
+ this.vehicleInformation = undefined;
58
+ }
59
+ async componentWillLoad() {
60
+ await this.changeLanguage(this.language);
61
+ }
62
+ async changeLanguage(newLanguage) {
63
+ this.locale = await getLocaleLanguage(newLanguage);
64
+ }
65
+ async componentDidLoad() {
66
+ this.dynamicClaimBody = this.el.shadowRoot.querySelector('.dynamic-claim-body');
67
+ this.dynamicRedeem = this.el.shadowRoot.getElementById('dynamic-redeem');
68
+ this.dynamicClaimProgressBar = this.el.shadowRoot.querySelector('.dynamic-claim-progress-bar');
69
+ }
70
+ async setMockData(newMockData) {
71
+ mockData = newMockData;
72
+ }
73
+ async setData(newData, headers = {}) {
74
+ clearTimeout(this.networkTimeoutRef);
75
+ if (this.abortController)
76
+ this.abortController.abort();
77
+ this.abortController = new AbortController();
78
+ let scopedTimeoutRef;
79
+ const isVinRequest = typeof newData === 'string';
80
+ const vin = isVinRequest ? newData : newData === null || newData === void 0 ? void 0 : newData.vin;
81
+ this.externalVin = vin;
82
+ try {
83
+ if (!vin || vin.trim().length === 0) {
84
+ this.isIdle = true;
85
+ return;
86
+ }
87
+ this.isLoading = true;
88
+ this.isIdle = false;
89
+ await new Promise(r => {
90
+ scopedTimeoutRef = setTimeout(r, 1000);
91
+ this.networkTimeoutRef = scopedTimeoutRef;
92
+ });
93
+ const vehicleResponse = isVinRequest ? await getVehicleInformation(this, { scopedTimeoutRef, vin, mockData }, headers) : newData;
94
+ if (this.networkTimeoutRef === scopedTimeoutRef) {
95
+ if (!vehicleResponse)
96
+ throw new Error('wrongResponseFormat');
97
+ if (!Array.isArray(vehicleResponse.serviceItems))
98
+ throw new Error('noServiceAvailable');
99
+ this.vehicleInformation = vehicleResponse;
100
+ }
101
+ this.errorMessage = null;
102
+ this.isLoading = false;
103
+ }
104
+ catch (error) {
105
+ if (error && (error === null || error === void 0 ? void 0 : error.name) === 'AbortError')
106
+ return;
107
+ if (this.errorCallback)
108
+ this.errorCallback(error.message);
109
+ console.error(error);
110
+ this.setErrorMessage(error.message);
111
+ }
112
+ }
113
+ async setErrorMessage(message) {
114
+ this.isIdle = false;
115
+ this.isLoading = false;
116
+ this.vehicleInformation = null;
117
+ this.errorMessage = message;
118
+ }
119
+ async fetchData(requestedVin = this.externalVin, headers = {}) {
120
+ await this.setData(requestedVin, headers);
121
+ }
122
+ onLoadingChange(newValue) {
123
+ if (this.loadingStateChange)
124
+ this.loadingStateChange(newValue);
125
+ this.setLoadingUi(newValue);
126
+ }
127
+ async setLoadingUi(isLoading) {
128
+ if (!isLoading) {
129
+ this.dynamicClaimProgressBar.style.width = '0';
130
+ await new Promise(r => setTimeout(r, 200));
131
+ this.updateProgressBar();
132
+ }
133
+ }
134
+ updateProgressBar() {
135
+ var _a;
136
+ const serviceItems = ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceItems) || [];
137
+ if (serviceItems.filter(x => x.status === 'pending').length === 0) {
138
+ if (serviceItems.length === 0)
139
+ this.dynamicClaimProgressBar.style.width = '0%';
140
+ else
141
+ this.dynamicClaimProgressBar.style.width = '100%';
142
+ this.dynamicClaimBody.scrollTo({
143
+ left: this.dynamicClaimBody.scrollWidth,
144
+ behavior: 'smooth',
145
+ });
146
+ }
147
+ else {
148
+ const firstPendingItem = serviceItems.find(x => x.status === 'pending');
149
+ const firstPendingItemIndex = serviceItems.indexOf(firstPendingItem) + 1;
150
+ const firstPendingItemRef = this.dynamicClaimBody.getElementsByClassName('dynamic-claim-item')[firstPendingItemIndex - 1];
151
+ this.dynamicClaimProgressBar.style.width = (firstPendingItemIndex / serviceItems.length - 1 / (serviceItems.length * 2)) * 100 + '%';
152
+ this.dynamicClaimBody.scrollTo({
153
+ left: firstPendingItemRef.offsetLeft - firstPendingItemRef.clientWidth * 3,
154
+ behavior: 'smooth',
155
+ });
156
+ }
157
+ }
158
+ resetProgressBar() {
159
+ setTimeout(() => {
160
+ this.updateProgressBar();
161
+ }, 100);
162
+ }
163
+ windowScrollListener(newValue) {
164
+ if (newValue) {
165
+ this.scrollListenerRef = () => this.calculatePopupPos(this.el.shadowRoot);
166
+ window.addEventListener('scroll', this.scrollListenerRef);
167
+ this.dynamicClaimBody.addEventListener('scroll', this.scrollListenerRef);
168
+ }
169
+ else {
170
+ window.removeEventListener('scroll', this.scrollListenerRef);
171
+ this.dynamicClaimBody.removeEventListener('scroll', this.scrollListenerRef);
172
+ }
173
+ }
174
+ calculatePopupPos(root) {
175
+ const popupPositionRef = root.querySelector('.popup-position-ref');
176
+ let { x, y } = popupPositionRef.getBoundingClientRect();
177
+ const popupContainer = popupPositionRef.querySelector('.popup-container');
178
+ const { width } = popupContainer.getBoundingClientRect();
179
+ const popupInfo = popupContainer.querySelector('.dynamic-claim-item-popup-info');
180
+ const windowWidth = window.innerWidth; // Get the viewport's width
181
+ popupContainer.style.top = `${y}px`;
182
+ popupContainer.style.left = `${x - width / 2}px`;
183
+ const offsetFromLeft = x - width / 2; // Distance from left side of the viewport
184
+ const offsetFromRight = windowWidth - (x + width / 2); // Distance from right side of the viewport
185
+ let movingNeeded = 0;
186
+ let horizontalMargin = 16;
187
+ if (offsetFromRight < horizontalMargin)
188
+ movingNeeded = offsetFromRight - horizontalMargin;
189
+ else if (offsetFromLeft < horizontalMargin)
190
+ movingNeeded = Math.abs(offsetFromLeft - horizontalMargin);
191
+ popupInfo.style.transform = `translateX(${movingNeeded}px)`;
192
+ }
193
+ removeLoadAnimationClass(event) {
194
+ const component = event.target;
195
+ component.classList.remove('load-animation');
196
+ }
197
+ async completeClaim() {
198
+ var _a;
199
+ const serviceItems = ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceItems) || [];
200
+ const item = this.cachedClaimItem;
201
+ const serviceDataClone = JSON.parse(JSON.stringify(serviceItems));
202
+ const index = serviceItems.indexOf(item);
203
+ const pendingItemsBefore = serviceDataClone.slice(0, index).filter(x => x.status === 'pending');
204
+ serviceDataClone[index].status = 'processed';
205
+ pendingItemsBefore.forEach(function (otherItem) {
206
+ otherItem.status = 'cancelled';
207
+ });
208
+ this.pendingItemHighlighted = false;
209
+ const vehicleDataClone = JSON.parse(JSON.stringify(this.vehicleInformation));
210
+ vehicleDataClone.serviceItems = serviceDataClone;
211
+ this.vehicleInformation = JSON.parse(JSON.stringify(vehicleDataClone));
212
+ }
213
+ claim(item) {
214
+ var _a;
215
+ const serviceItems = ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceItems) || [];
216
+ const vinDataClone = JSON.parse(JSON.stringify(serviceItems));
217
+ const index = serviceItems.indexOf(item);
218
+ //Find other items before this item that have status 'pending'
219
+ let pendingItemsBefore = vinDataClone.slice(0, index).filter(x => x.status === 'pending');
220
+ this.cachedClaimItem = item;
221
+ if (item.maximumMileage === null) {
222
+ pendingItemsBefore = [];
223
+ }
224
+ this.onMouseLeave();
225
+ this.openRedeem(item, pendingItemsBefore);
226
+ }
227
+ async handleRedeemScanner() {
228
+ if (this.isDev) {
229
+ this.dynamicRedeem.handleScanner = async (_) => {
230
+ await new Promise(r => setTimeout(r, 500));
231
+ this.dynamicRedeem.quite();
232
+ this.completeClaim();
233
+ this.dynamicRedeem.handleScanner = null;
234
+ };
235
+ }
236
+ else {
237
+ this.dynamicRedeem.handleScanner = async (code, jobNumber) => {
238
+ try {
239
+ const vehicleInformation = this.vehicleInformation;
240
+ const payload = {
241
+ vin: vehicleInformation.vin,
242
+ brandIntegrationID: vehicleInformation.identifiers.brandIntegrationID,
243
+ invoice: code,
244
+ jobNumber: jobNumber,
245
+ saleInformation: vehicleInformation.saleInformation,
246
+ serviceItem: this.dynamicRedeem.item,
247
+ cancelledServiceItems: this.dynamicRedeem.canceledItems,
248
+ };
249
+ const response = await fetch(this.claimEndPoint, {
250
+ method: 'POST',
251
+ headers: Object.assign({ 'Content-Type': 'application/json' }, this.headers),
252
+ body: JSON.stringify(payload),
253
+ });
254
+ const data = await response.json();
255
+ if (!data.Success) {
256
+ alert(data.Message);
257
+ this.dynamicRedeem.quite();
258
+ this.dynamicRedeem.handleScanner = null;
259
+ return;
260
+ }
261
+ this.dynamicRedeem.quite();
262
+ this.completeClaim();
263
+ this.dynamicRedeem.handleScanner = null;
264
+ }
265
+ catch (error) {
266
+ console.error(error);
267
+ alert(this.locale.errors.requestFailedPleaseTryAgainLater);
268
+ this.dynamicRedeem.quite();
269
+ this.dynamicRedeem.handleScanner = null;
270
+ }
271
+ };
272
+ }
273
+ }
274
+ openRedeem(item, oldItems) {
275
+ var _a, _b, _c, _d, _e;
276
+ const vehicleInformation = this.vehicleInformation;
277
+ this.dynamicRedeem.vin = vehicleInformation === null || vehicleInformation === void 0 ? void 0 : vehicleInformation.vin;
278
+ this.dynamicRedeem.item = item;
279
+ this.dynamicRedeem.canceledItems = oldItems;
280
+ 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)
281
+ this.dynamicRedeem.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;
282
+ else
283
+ this.dynamicRedeem.unInvoicedByBrokerName = null;
284
+ this.handleRedeemScanner();
285
+ }
286
+ createPopup(item) {
287
+ const texts = this.locale.vehicleLookup.dynamicClaim;
288
+ return (h("div", { dir: this.locale.direction, class: "popup-position-ref" }, h("div", { class: "popup-container" }, h("div", { class: cn('dynamic-claim-item-popup-info-triangle', this.popupClasses) }, h("div", { class: "dynamic-claim-item-popup-info-triangle-up" }), h("div", { class: "dynamic-claim-item-popup-info-triangle-up2" })), h("div", { class: cn('dynamic-claim-item-popup-info', this.popupClasses) }, h("table", null, 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.redeemDate)), h("tr", null, h("th", null, texts.redeemingDealer), 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.status === 'pending' && (h("button", { onClick: () => this.claim(item), class: "claim-button dynamic-claim-button" }, h("svg", { width: "30px", height: "30px", 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)))))));
289
+ }
290
+ render() {
291
+ var _a, _b;
292
+ const serviceItems = ((_a = this.vehicleInformation) === null || _a === void 0 ? void 0 : _a.serviceItems) || [];
293
+ const texts = this.locale.vehicleLookup.dynamicClaim;
294
+ console.log(this.errorMessage);
295
+ return (h(Host, { key: 'a393433eb4e9c57895fc8126fc0b8d5d629913a3' }, h("dynamic-redeem", { key: 'f93a0c9ff9d39ac4aaf893b2efce6f05afeaf9f7', language: this.language, id: "dynamic-redeem" }), h("div", { key: 'a0c1f1f5959f038f4a55060ad4279d763a58f064', class: cn('dynamic-claim-wrapper', { loading: this.isLoading, idle: this.isIdle }) }, h("div", { key: '44366a30268e2d6a8fb92dba274c3fb689b6bd58', class: "dynamic-claim-header" }, h("strong", { key: 'db752956f94b83fb324478b6fd938c6ac0de5045', onAnimationEnd: this.removeLoadAnimationClass, class: "dynamic-claim-header-vin load-animation" }, this.errorMessage && (h("span", { key: '212a0a4dfb8952e1a65815deb9d523ea6ee2fe4a', dir: this.locale.direction, style: { color: 'red' } }, this.locale.errors[this.errorMessage] || this.locale.errors.wildCard)), !this.errorMessage && ((_b = this.vehicleInformation) === null || _b === void 0 ? void 0 : _b.vin))), h("div", { key: '778a2fa41e7e8472204d54c0d5ed9c9e052fff90', class: "dynamic-claim-body" }, h("div", { key: '203165e4821b2ecfb5dc4c504d8fd09aadf87c10', class: "loading-lane" }, h("div", { key: '511c255ad2a48a0feec5fabfcdf9f2a5cc4e8243', class: "dynamic-claim-loading-slider" }, h("div", { key: 'eb5f120b80782c08f6df830950acf5ccb5068561', class: "dynamic-claim-loading-slider-line" }), h("div", { key: 'a93d1cc4422b74faf31b4092d08f9b3f68eb2f8a', class: "dynamic-claim-loading-slider-subline dynamic-claim-inc" }), h("div", { key: '4f943ced058d86ab17309dc6f8a639a7ac35a3f0', class: "dynamic-claim-loading-slider-subline dynamic-claim-dec" }))), h("div", { key: 'd5c041fad9204aaa0b46cb6b50767346c6b3a1f1', class: "dynamic-claim-progress-lane" }, serviceItems.map((item, idx) => {
296
+ let statusClass = '';
297
+ if (item.status === 'pending') {
298
+ if (serviceItems.findIndex(i => i.status === 'pending') === idx)
299
+ statusClass = item.status;
300
+ }
301
+ else
302
+ statusClass = item.status;
303
+ 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, texts[item.status]), 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)));
304
+ }), h("div", { key: '38e694a400929bc65503f58be5d66ee63e4f36b7', class: "dynamic-claim-progress-bar" }))))));
305
+ }
306
+ static get is() { return "dynamic-claim"; }
307
+ static get encapsulation() { return "shadow"; }
308
+ static get originalStyleUrls() {
309
+ return {
310
+ "$": ["dynamic-claim.css"]
311
+ };
312
+ }
313
+ static get styleUrls() {
314
+ return {
315
+ "$": ["dynamic-claim.css"]
316
+ };
317
+ }
318
+ static get properties() {
319
+ return {
320
+ "baseUrl": {
321
+ "type": "string",
322
+ "mutable": false,
323
+ "complexType": {
324
+ "original": "string",
325
+ "resolved": "string",
326
+ "references": {}
327
+ },
328
+ "required": false,
329
+ "optional": false,
330
+ "docs": {
331
+ "tags": [],
332
+ "text": ""
333
+ },
334
+ "attribute": "base-url",
335
+ "reflect": false
336
+ },
337
+ "isDev": {
338
+ "type": "boolean",
339
+ "mutable": false,
340
+ "complexType": {
341
+ "original": "boolean",
342
+ "resolved": "boolean",
343
+ "references": {}
344
+ },
345
+ "required": false,
346
+ "optional": false,
347
+ "docs": {
348
+ "tags": [],
349
+ "text": ""
350
+ },
351
+ "attribute": "is-dev",
352
+ "reflect": false,
353
+ "defaultValue": "false"
354
+ },
355
+ "queryString": {
356
+ "type": "string",
357
+ "mutable": false,
358
+ "complexType": {
359
+ "original": "string",
360
+ "resolved": "string",
361
+ "references": {}
362
+ },
363
+ "required": false,
364
+ "optional": false,
365
+ "docs": {
366
+ "tags": [],
367
+ "text": ""
368
+ },
369
+ "attribute": "query-string",
370
+ "reflect": false,
371
+ "defaultValue": "''"
372
+ },
373
+ "claimEndPoint": {
374
+ "type": "string",
375
+ "mutable": false,
376
+ "complexType": {
377
+ "original": "string",
378
+ "resolved": "string",
379
+ "references": {}
380
+ },
381
+ "required": false,
382
+ "optional": false,
383
+ "docs": {
384
+ "tags": [],
385
+ "text": ""
386
+ },
387
+ "attribute": "claim-end-point",
388
+ "reflect": false,
389
+ "defaultValue": "'api/vehicle/swift-claim'"
390
+ },
391
+ "headers": {
392
+ "type": "any",
393
+ "mutable": false,
394
+ "complexType": {
395
+ "original": "any",
396
+ "resolved": "any",
397
+ "references": {}
398
+ },
399
+ "required": false,
400
+ "optional": false,
401
+ "docs": {
402
+ "tags": [],
403
+ "text": ""
404
+ },
405
+ "attribute": "headers",
406
+ "reflect": false,
407
+ "defaultValue": "{}"
408
+ },
409
+ "language": {
410
+ "type": "string",
411
+ "mutable": false,
412
+ "complexType": {
413
+ "original": "LanguageKeys",
414
+ "resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
415
+ "references": {
416
+ "LanguageKeys": {
417
+ "location": "import",
418
+ "path": "~types/locales",
419
+ "id": "src/global/types/locales/index.ts::LanguageKeys"
420
+ }
421
+ }
422
+ },
423
+ "required": false,
424
+ "optional": false,
425
+ "docs": {
426
+ "tags": [],
427
+ "text": ""
428
+ },
429
+ "attribute": "language",
430
+ "reflect": false,
431
+ "defaultValue": "'en'"
432
+ },
433
+ "errorCallback": {
434
+ "type": "unknown",
435
+ "mutable": false,
436
+ "complexType": {
437
+ "original": "(errorMessage: ErrorKeys) => void",
438
+ "resolved": "(errorMessage: ErrorKeys) => void",
439
+ "references": {
440
+ "ErrorKeys": {
441
+ "location": "import",
442
+ "path": "~types/locales",
443
+ "id": "src/global/types/locales/index.ts::ErrorKeys"
444
+ }
445
+ }
446
+ },
447
+ "required": false,
448
+ "optional": false,
449
+ "docs": {
450
+ "tags": [],
451
+ "text": ""
452
+ }
453
+ },
454
+ "loadingStateChange": {
455
+ "type": "unknown",
456
+ "mutable": false,
457
+ "complexType": {
458
+ "original": "(isLoading: boolean) => void",
459
+ "resolved": "(isLoading: boolean) => void",
460
+ "references": {}
461
+ },
462
+ "required": false,
463
+ "optional": true,
464
+ "docs": {
465
+ "tags": [],
466
+ "text": ""
467
+ }
468
+ },
469
+ "loadedResponse": {
470
+ "type": "unknown",
471
+ "mutable": false,
472
+ "complexType": {
473
+ "original": "(response: VehicleInformation) => void",
474
+ "resolved": "(response: VehicleInformation) => void",
475
+ "references": {
476
+ "VehicleInformation": {
477
+ "location": "import",
478
+ "path": "~types/vehicle-information",
479
+ "id": "src/global/types/vehicle-information.ts::VehicleInformation"
480
+ }
481
+ }
482
+ },
483
+ "required": false,
484
+ "optional": true,
485
+ "docs": {
486
+ "tags": [],
487
+ "text": ""
488
+ }
489
+ }
490
+ };
491
+ }
492
+ static get states() {
493
+ return {
494
+ "locale": {},
495
+ "isIdle": {},
496
+ "popupClasses": {},
497
+ "isLoading": {},
498
+ "externalVin": {},
499
+ "errorMessage": {},
500
+ "activePopupIndex": {},
501
+ "vehicleInformation": {}
502
+ };
503
+ }
504
+ static get methods() {
505
+ return {
506
+ "setMockData": {
507
+ "complexType": {
508
+ "signature": "(newMockData: MockJson<VehicleInformation>) => Promise<void>",
509
+ "parameters": [{
510
+ "name": "newMockData",
511
+ "type": "{ [key: string]: VehicleInformation; }",
512
+ "docs": ""
513
+ }],
514
+ "references": {
515
+ "Promise": {
516
+ "location": "global",
517
+ "id": "global::Promise"
518
+ },
519
+ "MockJson": {
520
+ "location": "import",
521
+ "path": "~types/components",
522
+ "id": "src/global/types/components.ts::MockJson"
523
+ },
524
+ "VehicleInformation": {
525
+ "location": "import",
526
+ "path": "~types/vehicle-information",
527
+ "id": "src/global/types/vehicle-information.ts::VehicleInformation"
528
+ }
529
+ },
530
+ "return": "Promise<void>"
531
+ },
532
+ "docs": {
533
+ "text": "",
534
+ "tags": []
535
+ }
536
+ },
537
+ "setData": {
538
+ "complexType": {
539
+ "signature": "(newData: VehicleInformation | string, headers?: any) => Promise<void>",
540
+ "parameters": [{
541
+ "name": "newData",
542
+ "type": "string | VehicleInformation",
543
+ "docs": ""
544
+ }, {
545
+ "name": "headers",
546
+ "type": "any",
547
+ "docs": ""
548
+ }],
549
+ "references": {
550
+ "Promise": {
551
+ "location": "global",
552
+ "id": "global::Promise"
553
+ },
554
+ "VehicleInformation": {
555
+ "location": "import",
556
+ "path": "~types/vehicle-information",
557
+ "id": "src/global/types/vehicle-information.ts::VehicleInformation"
558
+ },
559
+ "ReturnType": {
560
+ "location": "global",
561
+ "id": "global::ReturnType"
562
+ }
563
+ },
564
+ "return": "Promise<void>"
565
+ },
566
+ "docs": {
567
+ "text": "",
568
+ "tags": []
569
+ }
570
+ },
571
+ "setErrorMessage": {
572
+ "complexType": {
573
+ "signature": "(message: ErrorKeys) => Promise<void>",
574
+ "parameters": [{
575
+ "name": "message",
576
+ "type": "OptionalKeys<{ wildCard: string; noBaseUrl: string; invalidVin: string; noPartsFound: string; vinNumberRequired: string; wrongFormStructure: string; partNumberRequired: string; noServiceAvailable: string; wrongResponseFormat: string; requestFailedPleaseTryAgainLater: string; }>",
577
+ "docs": ""
578
+ }],
579
+ "references": {
580
+ "Promise": {
581
+ "location": "global",
582
+ "id": "global::Promise"
583
+ },
584
+ "ErrorKeys": {
585
+ "location": "import",
586
+ "path": "~types/locales",
587
+ "id": "src/global/types/locales/index.ts::ErrorKeys"
588
+ }
589
+ },
590
+ "return": "Promise<void>"
591
+ },
592
+ "docs": {
593
+ "text": "",
594
+ "tags": []
595
+ }
596
+ },
597
+ "fetchData": {
598
+ "complexType": {
599
+ "signature": "(requestedVin?: string, headers?: any) => Promise<void>",
600
+ "parameters": [{
601
+ "name": "requestedVin",
602
+ "type": "string",
603
+ "docs": ""
604
+ }, {
605
+ "name": "headers",
606
+ "type": "any",
607
+ "docs": ""
608
+ }],
609
+ "references": {
610
+ "Promise": {
611
+ "location": "global",
612
+ "id": "global::Promise"
613
+ }
614
+ },
615
+ "return": "Promise<void>"
616
+ },
617
+ "docs": {
618
+ "text": "",
619
+ "tags": []
620
+ }
621
+ },
622
+ "completeClaim": {
623
+ "complexType": {
624
+ "signature": "() => Promise<void>",
625
+ "parameters": [],
626
+ "references": {
627
+ "Promise": {
628
+ "location": "global",
629
+ "id": "global::Promise"
630
+ },
631
+ "VehicleInformation": {
632
+ "location": "import",
633
+ "path": "~types/vehicle-information",
634
+ "id": "src/global/types/vehicle-information.ts::VehicleInformation"
635
+ }
636
+ },
637
+ "return": "Promise<void>"
638
+ },
639
+ "docs": {
640
+ "text": "",
641
+ "tags": []
642
+ }
643
+ }
644
+ };
645
+ }
646
+ static get elementRef() { return "el"; }
647
+ static get watchers() {
648
+ return [{
649
+ "propName": "language",
650
+ "methodName": "changeLanguage"
651
+ }, {
652
+ "propName": "isLoading",
653
+ "methodName": "onLoadingChange"
654
+ }, {
655
+ "propName": "vehicleInformation",
656
+ "methodName": "resetProgressBar"
657
+ }, {
658
+ "propName": "popupClasses",
659
+ "methodName": "windowScrollListener"
660
+ }];
661
+ }
662
+ }