adp-web-components 0.0.90 → 0.0.91

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 (333) hide show
  1. package/dist/cjs/activation-icon-DEYW0itX.js +16 -0
  2. package/dist/cjs/contact-us-form.cjs.entry.js +4 -4
  3. package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +282 -325
  4. package/dist/cjs/empty-table-icon-PdTX6gpI.js +16 -0
  5. package/dist/cjs/flexible-container.cjs.entry.js +43 -46
  6. package/dist/cjs/form-dialog_8.cjs.entry.js +12 -12
  7. package/dist/cjs/{get-local-language-XsAJEAsO.js → get-local-language-AedNCS4v.js} +38 -38
  8. package/dist/cjs/information-table.cjs.entry.js +6 -3
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/loading-spinner.cjs.entry.js +1 -1
  11. package/dist/cjs/material-card-Cd0L1Get.js +43 -0
  12. package/dist/cjs/part-lookup.cjs.entry.js +32 -11
  13. package/dist/cjs/service-booking-form.cjs.entry.js +4 -4
  14. package/dist/cjs/shift-components.cjs.js +1 -1
  15. package/dist/cjs/shift-tab-content.cjs.entry.js +42 -0
  16. package/dist/cjs/shift-tabs_2.cjs.entry.js +266 -235
  17. package/dist/cjs/{vehicle-info-layout-BSAeLW7e.js → type-A-Wi_ktA.js} +48 -9
  18. package/dist/cjs/{type-BAD2dFzP.js → type-Dm3JBAef.js} +1 -1
  19. package/dist/cjs/{type-DT5vXP0E.js → type-ooYU2cCM.js} +1 -1
  20. package/dist/cjs/vehicle-accessories_6.cjs.entry.js +1206 -0
  21. package/dist/cjs/vehicle-info-layout-Dp2Po_uc.js +16 -0
  22. package/dist/cjs/vehicle-lookup.cjs.entry.js +19 -16
  23. package/dist/cjs/vin-extractor.cjs.entry.js +3 -3
  24. package/dist/collection/components/components/flexible-container.css +1 -1
  25. package/dist/collection/components/components/flexible-container.js +34 -36
  26. package/dist/collection/components/components/information-table.css +1 -1
  27. package/dist/collection/components/components/information-table.js +45 -2
  28. package/dist/collection/components/components/loading-spinner.css +1 -1
  29. package/dist/collection/components/components/material-card.js +2 -2
  30. package/dist/collection/components/components/shift-tab-content.css +1 -1
  31. package/dist/collection/components/components/shift-tab-content.js +1 -1
  32. package/dist/collection/components/components/shift-tabs.css +1 -1
  33. package/dist/collection/components/form-elements/form-dialog.js +6 -6
  34. package/dist/collection/components/form-elements/form-input.js +4 -4
  35. package/dist/collection/components/form-elements/form-select.js +6 -6
  36. package/dist/collection/components/form-elements/form-structure-error.js +4 -4
  37. package/dist/collection/components/form-elements/form-structure.js +3 -3
  38. package/dist/collection/components/form-elements/form-submit.js +5 -5
  39. package/dist/collection/components/form-elements/form-text-area.js +4 -4
  40. package/dist/collection/components/forms/contact-us/element-mapper.js +1 -1
  41. package/dist/collection/components/forms/contact-us-form.js +4 -4
  42. package/dist/collection/components/forms/service-booking/element-mapper.js +1 -1
  43. package/dist/collection/components/forms/service-booking-form.js +4 -4
  44. package/dist/collection/components/part-lookup/components/dead-stock-item.js +15 -0
  45. package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -1
  46. package/dist/collection/components/part-lookup/dead-stock-lookup.js +153 -175
  47. package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
  48. package/dist/collection/components/part-lookup/distributor-lookup.js +192 -224
  49. package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
  50. package/dist/collection/components/part-lookup/manufacturer-lookup.js +165 -224
  51. package/dist/collection/components/part-lookup/part-lookup.css +1 -1
  52. package/dist/collection/components/part-lookup/part-lookup.js +127 -57
  53. package/dist/collection/components/vehicle-lookup/components/CardsContainer.js +1 -1
  54. package/dist/collection/components/vehicle-lookup/components/StatusCard.js +2 -2
  55. package/dist/collection/components/vehicle-lookup/components/claimable-item-popover.js +73 -0
  56. package/dist/collection/components/vehicle-lookup/components/claimable-item.js +27 -0
  57. package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +1 -1
  58. package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +108 -187
  59. package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.css +1 -1
  60. package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +371 -504
  61. package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.css +1 -1
  62. package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.js +271 -319
  63. package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -1
  64. package/dist/collection/components/vehicle-lookup/vehicle-lookup.js +59 -56
  65. package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.css +1 -1
  66. package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.js +106 -192
  67. package/dist/collection/components/vehicle-lookup/vehicle-service-history.css +1 -3
  68. package/dist/collection/components/vehicle-lookup/vehicle-service-history.js +106 -176
  69. package/dist/collection/components/vehicle-lookup/vehicle-specification.css +1 -3
  70. package/dist/collection/components/vehicle-lookup/vehicle-specification.js +104 -168
  71. package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.css +1 -3
  72. package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.js +198 -274
  73. package/dist/collection/components/vin-extractor/vin-extractor.js +13 -4
  74. package/dist/collection/{global/lib/image-expansion.js → features/image-viewer/image-viewer-logic.js} +15 -11
  75. package/dist/collection/features/image-viewer/image-viewer.js +9 -0
  76. package/dist/collection/features/image-viewer/index.js +7 -0
  77. package/dist/collection/features/image-viewer/interface.js +1 -0
  78. package/dist/collection/{global/lib → features/multi-lingual}/get-local-language.js +1 -5
  79. package/dist/collection/features/multi-lingual/index.js +7 -0
  80. package/dist/collection/features/multi-lingual/interface.js +1 -0
  81. package/dist/collection/{global/types/locale.js → features/multi-lingual/types.js} +6 -0
  82. package/dist/collection/features/part-lookup-components/index.js +7 -0
  83. package/dist/collection/features/part-lookup-components/interface.js +1 -0
  84. package/dist/collection/features/part-lookup-components/part-lookup-api-integration.js +84 -0
  85. package/dist/collection/features/part-lookup-components/types.js +1 -0
  86. package/dist/collection/features/vehicle-info-layout/index.js +6 -0
  87. package/dist/collection/features/vehicle-info-layout/interface.js +1 -0
  88. package/dist/collection/{components/components → features/vehicle-info-layout}/vehicle-info-layout.js +1 -1
  89. package/dist/collection/features/vehicle-lookup-component/index.js +7 -0
  90. package/dist/collection/features/vehicle-lookup-component/interface.js +1 -0
  91. package/dist/collection/features/vehicle-lookup-component/types.js +17 -0
  92. package/dist/collection/features/vehicle-lookup-component/vehicle-lookup-api-integration.js +87 -0
  93. package/dist/collection/global/assets/activation-icon.js +6 -0
  94. package/dist/collection/global/assets/add-icon.js +6 -0
  95. package/dist/collection/global/assets/alert-icon.js +6 -0
  96. package/dist/collection/global/assets/arrow-up-icon.js +6 -0
  97. package/dist/collection/global/assets/attach-icon.js +6 -0
  98. package/dist/collection/global/assets/check-icon.js +6 -0
  99. package/dist/collection/global/assets/empty-table-icon.js +6 -0
  100. package/dist/collection/global/assets/form-submit-svg.js +6 -0
  101. package/dist/collection/global/assets/print-icon.js +6 -0
  102. package/dist/collection/global/assets/triangle-icon.js +6 -0
  103. package/dist/collection/global/lib/parents-with-tag.js +22 -0
  104. package/dist/collection/locales/vehicleLookup/claimableItems/type.js +2 -1
  105. package/dist/collection/templates/part-lookup/mock-data.js +85 -2
  106. package/dist/components/contact-us-form.js +1 -1
  107. package/dist/components/dead-stock-lookup.js +1 -1
  108. package/dist/components/distributor-lookup.js +1 -1
  109. package/dist/components/flexible-container.js +1 -1
  110. package/dist/components/form-dialog.js +1 -1
  111. package/dist/components/form-input.js +1 -1
  112. package/dist/components/form-select.js +1 -1
  113. package/dist/components/form-structure-error.js +1 -1
  114. package/dist/components/form-structure.js +1 -1
  115. package/dist/components/form-submit.js +1 -1
  116. package/dist/components/form-text-area.js +1 -1
  117. package/dist/components/information-table.js +1 -1
  118. package/dist/components/loading-spinner.js +1 -1
  119. package/dist/components/manufacturer-lookup.js +1 -1
  120. package/dist/components/p-B1fdQNyr.js +5 -0
  121. package/dist/components/{p-C-4kx8qU.js → p-BkfCVIF9.js} +1 -1
  122. package/dist/components/{p-B6QhQCZi.js → p-BsHunqQT.js} +1 -1
  123. package/dist/components/p-BwUMwWdE.js +5 -0
  124. package/dist/components/p-C4zpDhOi.js +5 -0
  125. package/dist/components/p-CHE0gMDU.js +5 -0
  126. package/dist/components/p-CRB_syll.js +5 -0
  127. package/dist/components/{p-D7yku_Qi.js → p-CV6-hCEd.js} +1 -1
  128. package/dist/components/p-CYfVWbdE.js +5 -0
  129. package/dist/components/{p-BaJpYztb.js → p-CYs-Cfbz.js} +1 -1
  130. package/dist/components/p-Ce4X3l8Z.js +5 -0
  131. package/dist/components/p-CffGxxO4.js +5 -0
  132. package/dist/components/p-CgP_rdz5.js +5 -0
  133. package/dist/components/p-CmuF1zVa.js +5 -0
  134. package/dist/components/p-DPxUsrGL.js +5 -0
  135. package/dist/components/{p-CK4E5G0i.js → p-DSIG_p-W.js} +1 -1
  136. package/dist/components/p-DXHFdZX_.js +5 -0
  137. package/dist/components/p-Dkva9a7P.js +5 -0
  138. package/dist/components/p-DrFf_ORZ.js +5 -0
  139. package/dist/components/p-DsfktPnM.js +5 -0
  140. package/dist/components/{p-CjWDXQ_q.js → p-DyWp9Iox.js} +1 -1
  141. package/dist/components/{p-JtBlsz4j.js → p-Fudjizxb.js} +1 -1
  142. package/dist/components/p-QtVWfPMe.js +5 -0
  143. package/dist/components/p-THNpWs_W.js +5 -0
  144. package/dist/components/p-gwgMa4kM.js +5 -0
  145. package/dist/components/p-iCYlD4i9.js +5 -0
  146. package/dist/components/p-kp6CyIhI.js +5 -0
  147. package/dist/components/{p-D63WC2_Y.js → p-nBbuIowK.js} +1 -1
  148. package/dist/components/p-piZ41_ho.js +5 -0
  149. package/dist/components/p-qw7FLuM-.js +5 -0
  150. package/dist/components/p-vhsj8wEw.js +5 -0
  151. package/dist/components/p-zDS3r6-j.js +5 -0
  152. package/dist/components/part-lookup.js +1 -1
  153. package/dist/components/service-booking-form.js +1 -1
  154. package/dist/components/shift-accordion.js +1 -1
  155. package/dist/components/shift-slider.js +1 -1
  156. package/dist/components/shift-tab-content.js +1 -1
  157. package/dist/components/shift-tabs.js +1 -1
  158. package/dist/components/vehicle-accessories.js +1 -1
  159. package/dist/components/vehicle-claimable-items.js +1 -1
  160. package/dist/components/vehicle-item-claim-form.js +1 -1
  161. package/dist/components/vehicle-lookup.js +1 -1
  162. package/dist/components/vehicle-paint-thickness.js +1 -1
  163. package/dist/components/vehicle-service-history.js +1 -1
  164. package/dist/components/vehicle-specification.js +1 -1
  165. package/dist/components/vehicle-warranty-details.js +1 -1
  166. package/dist/components/vin-extractor.js +1 -1
  167. package/dist/esm/activation-icon-7GJaxZ20.js +14 -0
  168. package/dist/esm/contact-us-form.entry.js +4 -4
  169. package/dist/esm/dead-stock-lookup_3.entry.js +283 -326
  170. package/dist/esm/empty-table-icon-DvQk12N9.js +14 -0
  171. package/dist/esm/flexible-container.entry.js +43 -46
  172. package/dist/esm/form-dialog_8.entry.js +12 -12
  173. package/dist/esm/{get-local-language-BPo-xYwK.js → get-local-language-DuHpVAu5.js} +38 -38
  174. package/dist/esm/information-table.entry.js +6 -3
  175. package/dist/esm/loader.js +1 -1
  176. package/dist/esm/loading-spinner.entry.js +1 -1
  177. package/dist/esm/material-card-DiAl-884.js +40 -0
  178. package/dist/esm/part-lookup.entry.js +32 -11
  179. package/dist/esm/service-booking-form.entry.js +4 -4
  180. package/dist/esm/shift-components.js +1 -1
  181. package/dist/esm/shift-tab-content.entry.js +40 -0
  182. package/dist/esm/shift-tabs_2.entry.js +266 -235
  183. package/dist/esm/{type-DHujxJVp.js → type-B6613elJ.js} +1 -1
  184. package/dist/esm/{type-D9Rd8Kcd.js → type-CFBDfJID.js} +1 -1
  185. package/dist/esm/type-CnAEgqjH.js +82 -0
  186. package/dist/esm/vehicle-accessories_6.entry.js +1199 -0
  187. package/dist/esm/vehicle-info-layout-CNGGKAia.js +14 -0
  188. package/dist/esm/vehicle-lookup.entry.js +14 -11
  189. package/dist/esm/vin-extractor.entry.js +3 -3
  190. package/dist/locales/vehicleLookup/claimableItems/ar.json +2 -1
  191. package/dist/locales/vehicleLookup/claimableItems/en.json +2 -1
  192. package/dist/locales/vehicleLookup/claimableItems/ku.json +2 -1
  193. package/dist/locales/vehicleLookup/claimableItems/ru.json +2 -1
  194. package/dist/locales/vehicleLookup/claimableItems/type.ts +2 -1
  195. package/dist/shift-components/p-010b5793.entry.js +5 -0
  196. package/dist/shift-components/{p-b6497f63.entry.js → p-03483842.entry.js} +1 -1
  197. package/dist/shift-components/p-0a55771f.entry.js +5 -0
  198. package/dist/shift-components/p-20bdbcb5.entry.js +5 -0
  199. package/dist/shift-components/p-42218765.entry.js +5 -0
  200. package/dist/shift-components/p-526a4ff7.entry.js +5 -0
  201. package/dist/shift-components/p-701e3fb0.entry.js +5 -0
  202. package/dist/shift-components/p-7225e52b.entry.js +5 -0
  203. package/dist/shift-components/p-BSpTbUWi.js +5 -0
  204. package/dist/shift-components/{p-DHb8KxaG.js → p-CC-dsMaG.js} +1 -1
  205. package/dist/shift-components/{p-CIU9c3pi.js → p-CsAICJSF.js} +1 -1
  206. package/dist/shift-components/p-CxstRFDI.js +5 -0
  207. package/dist/shift-components/{p-CuQ84qxe.js → p-DF2jCW4D.js} +1 -1
  208. package/dist/shift-components/p-DdH9nNoC.js +5 -0
  209. package/dist/shift-components/p-Wtw8qj6x.js +5 -0
  210. package/dist/shift-components/p-a76db330.entry.js +5 -0
  211. package/dist/shift-components/{p-f282c740.entry.js → p-d46b0857.entry.js} +1 -1
  212. package/dist/shift-components/p-d843769d.entry.js +5 -0
  213. package/dist/shift-components/p-ebc23eef.entry.js +5 -0
  214. package/dist/shift-components/p-ef9ad340.entry.js +5 -0
  215. package/dist/shift-components/p-fyqwD4fB.js +5 -0
  216. package/dist/shift-components/shift-components.esm.js +1 -1
  217. package/dist/types/components/components/flexible-container.d.ts +2 -5
  218. package/dist/types/components/components/information-table.d.ts +2 -0
  219. package/dist/types/components/components/material-card.d.ts +1 -1
  220. package/dist/types/components/form-elements/form-dialog.d.ts +1 -2
  221. package/dist/types/components/form-elements/form-input.d.ts +1 -2
  222. package/dist/types/components/form-elements/form-select.d.ts +1 -2
  223. package/dist/types/components/form-elements/form-structure-error.d.ts +1 -2
  224. package/dist/types/components/form-elements/form-structure.d.ts +2 -3
  225. package/dist/types/components/form-elements/form-submit.d.ts +1 -1
  226. package/dist/types/components/form-elements/form-text-area.d.ts +1 -1
  227. package/dist/types/components/forms/contact-us-form.d.ts +1 -1
  228. package/dist/types/components/forms/service-booking-form.d.ts +1 -1
  229. package/dist/types/components/part-lookup/components/dead-stock-item.d.ts +14 -0
  230. package/dist/types/components/part-lookup/dead-stock-lookup.d.ts +25 -23
  231. package/dist/types/components/part-lookup/distributor-lookup.d.ts +23 -24
  232. package/dist/types/components/part-lookup/manufacturer-lookup.d.ts +23 -25
  233. package/dist/types/components/part-lookup/part-lookup.d.ts +17 -12
  234. package/dist/types/components/vehicle-lookup/components/claimable-item-popover.d.ts +17 -0
  235. package/dist/types/components/vehicle-lookup/components/claimable-item.d.ts +12 -0
  236. package/dist/types/components/vehicle-lookup/vehicle-accessories.d.ts +23 -28
  237. package/dist/types/components/vehicle-lookup/vehicle-claimable-items.d.ts +53 -55
  238. package/dist/types/components/vehicle-lookup/vehicle-item-claim-form.d.ts +35 -53
  239. package/dist/types/components/vehicle-lookup/vehicle-lookup.d.ts +8 -9
  240. package/dist/types/components/vehicle-lookup/vehicle-paint-thickness.d.ts +23 -29
  241. package/dist/types/components/vehicle-lookup/vehicle-service-history.d.ts +20 -23
  242. package/dist/types/components/vehicle-lookup/vehicle-specification.d.ts +20 -22
  243. package/dist/types/components/vehicle-lookup/vehicle-warranty-details.d.ts +27 -31
  244. package/dist/types/components/vin-extractor/vin-extractor.d.ts +2 -2
  245. package/dist/types/components.d.ts +145 -161
  246. package/dist/types/features/image-viewer/image-viewer-logic.d.ts +3 -0
  247. package/dist/types/features/image-viewer/image-viewer.d.ts +7 -0
  248. package/dist/types/features/image-viewer/index.d.ts +3 -0
  249. package/dist/types/features/image-viewer/interface.d.ts +5 -0
  250. package/dist/types/features/multi-lingual/get-local-language.d.ts +4 -0
  251. package/dist/types/features/multi-lingual/index.d.ts +3 -0
  252. package/dist/types/features/multi-lingual/interface.d.ts +8 -0
  253. package/dist/types/{global/lib/get-local-language.d.ts → features/multi-lingual/types.d.ts} +17 -6
  254. package/dist/types/features/part-lookup-components/index.d.ts +3 -0
  255. package/dist/types/features/part-lookup-components/interface.d.ts +25 -0
  256. package/dist/types/features/part-lookup-components/part-lookup-api-integration.d.ts +14 -0
  257. package/dist/types/features/part-lookup-components/types.d.ts +3 -0
  258. package/dist/types/features/vehicle-info-layout/index.d.ts +2 -0
  259. package/dist/types/features/vehicle-info-layout/interface.d.ts +3 -0
  260. package/dist/types/{components/components → features/vehicle-info-layout}/vehicle-info-layout.d.ts +3 -3
  261. package/dist/types/features/vehicle-lookup-component/index.d.ts +3 -0
  262. package/dist/types/features/vehicle-lookup-component/interface.d.ts +24 -0
  263. package/dist/types/features/vehicle-lookup-component/types.d.ts +17 -0
  264. package/dist/types/features/vehicle-lookup-component/vehicle-lookup-api-integration.d.ts +15 -0
  265. package/dist/types/global/assets/activation-icon.d.ts +6 -0
  266. package/dist/types/global/assets/add-icon.d.ts +6 -0
  267. package/dist/types/global/assets/alert-icon.d.ts +6 -0
  268. package/dist/types/global/assets/arrow-up-icon.d.ts +6 -0
  269. package/dist/types/global/assets/attach-icon.d.ts +6 -0
  270. package/dist/types/global/assets/check-icon.d.ts +6 -0
  271. package/dist/types/global/assets/empty-table-icon.d.ts +6 -0
  272. package/dist/types/global/assets/form-submit-svg.d.ts +6 -0
  273. package/dist/types/global/assets/print-icon.d.ts +6 -0
  274. package/dist/types/global/assets/triangle-icon.d.ts +6 -0
  275. package/dist/types/global/lib/parents-with-tag.d.ts +1 -0
  276. package/dist/types/global/lib/recaptcha.d.ts +1 -1
  277. package/dist/types/global/types/components.d.ts +0 -1
  278. package/dist/types/global/types/forms.d.ts +1 -1
  279. package/dist/types/locales/vehicleLookup/accessories/type.d.ts +2 -2
  280. package/dist/types/locales/vehicleLookup/claimableItems/type.d.ts +8 -4
  281. package/dist/types/locales/vehicleLookup/wrapper-type.d.ts +6 -4
  282. package/package.json +1 -2
  283. package/dist/cjs/shift-tab-content_7.cjs.entry.js +0 -1487
  284. package/dist/cjs/type-CCsnwaKp.js +0 -56
  285. package/dist/collection/global/api/partInformation.js +0 -32
  286. package/dist/collection/global/api/vehicleInformation.js +0 -48
  287. package/dist/components/p-1vy-Ba6r.js +0 -5
  288. package/dist/components/p-B5YdqGVm.js +0 -5
  289. package/dist/components/p-BDkK65_1.js +0 -5
  290. package/dist/components/p-BT4rhLRL.js +0 -5
  291. package/dist/components/p-C1F_f1WE.js +0 -5
  292. package/dist/components/p-CACnUI7c.js +0 -5
  293. package/dist/components/p-CDOvd2iD.js +0 -5
  294. package/dist/components/p-CGzOJT7g.js +0 -5
  295. package/dist/components/p-CINfIgzX.js +0 -5
  296. package/dist/components/p-CJpwqpuQ.js +0 -5
  297. package/dist/components/p-CUqXnLyM.js +0 -5
  298. package/dist/components/p-Cl9ct-bZ.js +0 -5
  299. package/dist/components/p-CqGVdvFp.js +0 -5
  300. package/dist/components/p-D2bxjSGr.js +0 -5
  301. package/dist/components/p-DXHx6lre.js +0 -5
  302. package/dist/components/p-DXj5zsQK.js +0 -5
  303. package/dist/components/p-DsCtgcZn.js +0 -5
  304. package/dist/components/p-DxjQlmaz.js +0 -5
  305. package/dist/components/p-nxlqujKv.js +0 -5
  306. package/dist/components/p-vvHN2Olh.js +0 -5
  307. package/dist/components/p-yQ70lKV2.js +0 -5
  308. package/dist/esm/shift-tab-content_7.entry.js +0 -1479
  309. package/dist/esm/type-CfLRnI1J.js +0 -53
  310. package/dist/esm/vehicle-info-layout-D1bvY1nt.js +0 -43
  311. package/dist/shift-components/p-389f444c.entry.js +0 -5
  312. package/dist/shift-components/p-5dd208de.entry.js +0 -5
  313. package/dist/shift-components/p-5f91eb5f.entry.js +0 -5
  314. package/dist/shift-components/p-76dd44e9.entry.js +0 -5
  315. package/dist/shift-components/p-9a51dae0.entry.js +0 -5
  316. package/dist/shift-components/p-BAMA88Mr.js +0 -5
  317. package/dist/shift-components/p-Br0JD1CD.js +0 -5
  318. package/dist/shift-components/p-af44ca99.entry.js +0 -5
  319. package/dist/shift-components/p-d0e6cd78.entry.js +0 -5
  320. package/dist/shift-components/p-f1225504.entry.js +0 -5
  321. package/dist/shift-components/p-faabbd23.entry.js +0 -5
  322. package/dist/shift-components/p-ff0fec09.entry.js +0 -5
  323. package/dist/types/global/api/partInformation.d.ts +0 -19
  324. package/dist/types/global/api/vehicleInformation.d.ts +0 -33
  325. package/dist/types/global/lib/image-expansion.d.ts +0 -9
  326. package/dist/types/global/types/locale.d.ts +0 -11
  327. /package/dist/collection/{components/vehicle-lookup → global}/assets/activationRequired.svg +0 -0
  328. /package/dist/collection/{components/vehicle-lookup → global}/assets/cancelled.svg +0 -0
  329. /package/dist/collection/{components/vehicle-lookup → global}/assets/check.svg +0 -0
  330. /package/dist/collection/{components/vehicle-lookup → global}/assets/expired.svg +0 -0
  331. /package/dist/collection/{components/vehicle-lookup → global}/assets/pending.svg +0 -0
  332. /package/dist/collection/{components/vehicle-lookup → global}/assets/processed.svg +0 -0
  333. /package/dist/collection/{components/vehicle-lookup → global}/assets/x-mark.svg +0 -0
@@ -2,267 +2,241 @@
2
2
  * Built by ShiftSoftware
3
3
  * Copyright (c)
4
4
  */
5
- import { Host, h } from "@stencil/core";
6
5
  import cn from "../../global/lib/cn";
7
- import { getSharedLocal, sharedLocalesSchema } from "../../global/lib/get-local-language";
8
- import { claimFormSchema } from "../../locales/vehicleLookup/claimableItems/type";
6
+ import { Host, h } from "@stencil/core";
7
+ import { MaterialCard } from "../components/material-card";
8
+ import { AddIcon } from "../../global/assets/add-icon";
9
+ import { AlertIcon } from "../../global/assets/alert-icon";
10
+ import { CheckIcon } from "../../global/assets/check-icon";
11
+ import { AttachIcon } from "../../global/assets/attach-icon";
12
+ import { FormSubmitSVG } from "../../global/assets/form-submit-svg";
13
+ import { ActivationIcon } from "../../global/assets/activation-icon";
9
14
  export class VehicleItemClaimForm {
10
15
  constructor() {
11
- this.vin = '';
12
- this.language = 'en';
13
- this.item = null;
14
- this.unInvoicedByBrokerName = null;
15
- this.canceledItems = null;
16
- this.locale = claimFormSchema.getDefault();
17
- this.claimViaBarcodeScanner = false;
18
- this.sharedLocales = sharedLocalesSchema.getDefault();
19
- this.internalVin = '';
16
+ this.uploadMultipleDocuments = true;
17
+ this.canceledItems = [];
20
18
  this.uploadProgress = 0;
21
- this.isLoading = false;
22
19
  this.isOpened = false;
23
- this.isDocumentError = false;
24
- this.selectedFile = null;
25
- this.internalItem = null;
26
- this.confirmServiceCancellation = false;
27
- this.confirmUnInvoicedTBPVehicles = false;
28
- this.internalCanceledItem = null;
29
- this.documentError = 'documentRequiredError';
30
- this.readyToClaim = false;
31
- this.qrCode = null;
32
- this.invoice = null;
33
- this.job = null;
34
- this.closeModal = async () => {
35
- this.isOpened = false;
36
- this.item = null;
37
- await new Promise(r => setTimeout(r, 500));
38
- this.canceledItems = [];
39
- this.unInvoicedByBrokerName = null;
40
- if (this.claimViaBarcodeScanner) {
41
- this.qrInput.value = '';
42
- this.qrInput.readOnly = false;
20
+ this.isLoading = false;
21
+ this.confirmationStates = {};
22
+ this.errors = {};
23
+ this.inputs = {
24
+ documents: [],
25
+ };
26
+ this.setErrorValue = (errorName, value) => {
27
+ const previousError = (this.errors[errorName] || {});
28
+ this.errors = Object.assign(Object.assign({}, this.errors), { [errorName]: Object.assign(Object.assign({}, previousError), value) });
29
+ };
30
+ this.setInputValue = (inputName, value) => {
31
+ this.inputs = Object.assign(Object.assign({}, this.inputs), { [inputName]: value });
32
+ };
33
+ this.onFileUploaderChange = (event) => {
34
+ var _a, _b, _c, _d, _e;
35
+ const input = event.target;
36
+ if (!input.files)
37
+ return;
38
+ const maxSize = parseInt(input.dataset.maxSize || '0', 10);
39
+ const newFiles = this.uploadMultipleDocuments ? Array.from(input.files) : [input.files[0]];
40
+ input.value = '';
41
+ let anyFileExceedsMaxSize = false;
42
+ const filteredNewFiles = newFiles.filter(newFile => {
43
+ var _a, _b;
44
+ const isFileSizeValid = newFile.size <= maxSize;
45
+ if (!isFileSizeValid) {
46
+ anyFileExceedsMaxSize = true;
47
+ return false;
48
+ }
49
+ const isFileAlreadyExists = (_b = (_a = this.inputs) === null || _a === void 0 ? void 0 : _a.documents) === null || _b === void 0 ? void 0 : _b.some(existingFile => existingFile.name === newFile.name && existingFile.size === newFile.size && existingFile.lastModified === newFile.lastModified);
50
+ return !isFileAlreadyExists;
51
+ });
52
+ this.setInputValue('documents', this.uploadMultipleDocuments ? [...(((_a = this.inputs) === null || _a === void 0 ? void 0 : _a.documents) || []), ...filteredNewFiles] : filteredNewFiles);
53
+ if (anyFileExceedsMaxSize) {
54
+ this.setErrorValue('documents', {
55
+ show: true,
56
+ text: 'documentLimitError',
57
+ });
58
+ return;
43
59
  }
44
- else {
45
- this.invoiceInput.value = '';
46
- this.invoiceInput.readOnly = false;
47
- this.jobInput.value = '';
48
- this.jobInput.readOnly = false;
60
+ else if ((_b = this.errors) === null || _b === void 0 ? void 0 : _b.documents)
61
+ this.setErrorValue('documents', { text: (_c = this.errors.documents) === null || _c === void 0 ? void 0 : _c.text, show: false });
62
+ if (((_d = this.item) === null || _d === void 0 ? void 0 : _d.claimingMethodEnum) === 'ClaimByScanningQRCode') {
63
+ if ((_e = this.inputs) === null || _e === void 0 ? void 0 : _e.qrCode)
64
+ this.submit();
49
65
  }
50
- this.qrCode = null;
51
- this.invoice = null;
52
- this.job = null;
53
- this.readyToClaim = false;
54
- this.isLoading = false;
66
+ else
67
+ this.focusInputs();
68
+ };
69
+ this.onDocumentButtonClicked = () => {
70
+ const documentUploader = this.el.shadowRoot.querySelector('.document-uploader');
71
+ if (documentUploader)
72
+ documentUploader.click();
55
73
  };
56
- this.inputKeyDown = async (event) => {
74
+ this.focusInputs = () => {
75
+ setTimeout(() => {
76
+ const inputs = this.el.shadowRoot.querySelectorAll('input[type="text"]');
77
+ const firstEnabled = Array.from(inputs).find(input => !input.disabled && !input.readOnly);
78
+ if (firstEnabled)
79
+ firstEnabled.focus();
80
+ }, 50);
81
+ };
82
+ this.focusEmptyInputs = () => {
57
83
  var _a, _b;
58
- if (event === null || event.key === 'Enter') {
59
- if (!this.confirmServiceCancellation || !this.confirmUnInvoicedTBPVehicles)
60
- return;
61
- if (event !== null)
62
- event === null || event === void 0 ? void 0 : event.preventDefault();
63
- if (!(this === null || this === void 0 ? void 0 : this.handleClaiming))
64
- return;
65
- if (!this.readyToClaim)
84
+ const inputs = this.el.shadowRoot.querySelectorAll('input[type="text"]');
85
+ const firstEmptyInput = Array.from(inputs).find(input => { var _a; return !((_a = input.value) === null || _a === void 0 ? void 0 : _a.trim()); });
86
+ if (firstEmptyInput)
87
+ firstEmptyInput.focus();
88
+ if (((_a = this.item) === null || _a === void 0 ? void 0 : _a.documentUploaderIsRequired) && !((_b = this.inputs) === null || _b === void 0 ? void 0 : _b.documents.length)) {
89
+ this.setErrorValue('documents', {
90
+ show: true,
91
+ text: 'documentRequiredError',
92
+ });
93
+ }
94
+ };
95
+ this.submit = async () => {
96
+ var _a, _b, _c, _d, _e, _f, _g, _h;
97
+ if (!this.getIsFormValid())
98
+ return this.focusEmptyInputs();
99
+ if (!this.getIsFormConfirmed())
100
+ return;
101
+ if ((_a = this.item) === null || _a === void 0 ? void 0 : _a.showDocumentUploader) {
102
+ if (((_b = this.item) === null || _b === void 0 ? void 0 : _b.documentUploaderIsRequired) && !((_d = (_c = this.inputs) === null || _c === void 0 ? void 0 : _c.documents) === null || _d === void 0 ? void 0 : _d.length)) {
103
+ this.setErrorValue('documents', {
104
+ show: true,
105
+ text: 'documentRequiredError',
106
+ });
66
107
  return;
67
- if ((_a = this.item) === null || _a === void 0 ? void 0 : _a.showDocumentUploader) {
68
- if (this.selectedFile && this.selectedFile.size > this.maximumDocumentFileSizeInMb * 1024 * 1024) {
69
- this.documentError = 'documentLimitError';
70
- this.isDocumentError = true;
71
- return;
72
- }
73
- if (((_b = this.item) === null || _b === void 0 ? void 0 : _b.documentUploaderIsRequired) && !this.selectedFile) {
74
- this.documentError = 'documentRequiredError';
75
- this.isDocumentError = true;
76
- return;
77
- }
78
- }
79
- this.readyToClaim = false;
80
- if (this.claimViaBarcodeScanner) {
81
- this.qrInput.readOnly = true;
82
108
  }
83
- else {
84
- this.invoiceInput.readOnly = true;
85
- this.jobInput.readOnly = true;
86
- }
87
- this.isLoading = true;
88
- await this.handleClaiming({ jobNumber: this.job, invoice: this.invoice, qrCode: this.qrCode, document: this.selectedFile });
89
- this.isLoading = false;
90
- this.readyToClaim = true;
91
109
  }
110
+ this.isLoading = true;
111
+ if (this.handleClaiming)
112
+ await this.handleClaiming({
113
+ qrCode: (_e = this.inputs) === null || _e === void 0 ? void 0 : _e.qrCode,
114
+ invoice: (_f = this.inputs) === null || _f === void 0 ? void 0 : _f.invoice,
115
+ documents: (_g = this.inputs) === null || _g === void 0 ? void 0 : _g.documents,
116
+ jobNumber: (_h = this.inputs) === null || _h === void 0 ? void 0 : _h.jobNumber,
117
+ });
118
+ this.close(true);
92
119
  };
93
- this.registerFileUploader = () => {
94
- var _a, _b;
95
- (_a = this.documentButton) === null || _a === void 0 ? void 0 : _a.removeEventListener('click', this.onFileUploaderClick);
96
- (_b = this.documentUploader) === null || _b === void 0 ? void 0 : _b.removeEventListener('change', this.onFileUploaderChange);
97
- this.documentButton = this.el.shadowRoot.querySelector('.document-button');
98
- this.documentUploader = this.el.shadowRoot.querySelector('.document-uploader');
99
- if (!this.documentButton || !this.documentUploader)
100
- return;
101
- this.documentButton.addEventListener('click', this.onFileUploaderClick);
102
- this.documentUploader.addEventListener('change', this.onFileUploaderChange);
120
+ this.onConfirmCheckboxChange = (confirmationName) => (event) => {
121
+ const target = event.target;
122
+ this.confirmationStates = Object.assign(Object.assign({}, this.confirmationStates), { [confirmationName]: target.checked });
123
+ if (this.getIsFormConfirmed)
124
+ this.focusInputs();
103
125
  };
104
- this.onFileUploaderClick = () => {
105
- this.documentUploader.click();
126
+ this.getIsFormConfirmed = () => {
127
+ var _a, _b, _c;
128
+ if (!!((_a = this.canceledItems) === null || _a === void 0 ? void 0 : _a.length) && !((_b = this.confirmationStates) === null || _b === void 0 ? void 0 : _b.canceledItems))
129
+ return false;
130
+ if (!!this.unInvoicedByBrokerName && !((_c = this.confirmationStates) === null || _c === void 0 ? void 0 : _c.unInvoicedByBrokerName))
131
+ return false;
132
+ return true;
106
133
  };
107
- this.onFileUploaderChange = (event) => {
108
- var _a;
109
- const input = event.target;
110
- const file = (_a = input.files) === null || _a === void 0 ? void 0 : _a[0];
111
- this.documentUploader.value = '';
112
- if (!file)
113
- return;
114
- this.selectedFile = file;
115
- if (this.selectedFile.size > this.maximumDocumentFileSizeInMb * 1024 * 1024) {
116
- this.documentError = 'documentLimitError';
117
- this.isDocumentError = true;
118
- return;
134
+ this.getIsFormValid = () => {
135
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
136
+ if (((_a = this.item) === null || _a === void 0 ? void 0 : _a.claimingMethodEnum) === 'ClaimByScanningQRCode') {
137
+ if (!((_c = (_b = this.inputs) === null || _b === void 0 ? void 0 : _b.qrCode) === null || _c === void 0 ? void 0 : _c.trim().length))
138
+ return false;
119
139
  }
120
140
  else {
121
- this.isDocumentError = false;
122
- if (this.claimViaBarcodeScanner) {
123
- // @ts-ignore
124
- this.inputKeyDown({ key: 'Enter', preventDefault: () => { } });
125
- }
141
+ if (!((_e = (_d = this.inputs) === null || _d === void 0 ? void 0 : _d.invoice) === null || _e === void 0 ? void 0 : _e.trim().length))
142
+ return false;
143
+ if (!((_g = (_f = this.inputs) === null || _f === void 0 ? void 0 : _f.jobNumber) === null || _g === void 0 ? void 0 : _g.trim().length))
144
+ return false;
126
145
  }
146
+ if (((_h = this.item) === null || _h === void 0 ? void 0 : _h.documentUploaderIsRequired) && !((_j = this.inputs) === null || _j === void 0 ? void 0 : _j.documents.length))
147
+ return false;
148
+ return true;
149
+ };
150
+ this.resetState = () => {
151
+ this.item = null;
152
+ this.errors = {};
153
+ this.inputs = {
154
+ documents: [],
155
+ };
156
+ this.isLoading = false;
157
+ this.canceledItems = [];
158
+ this.confirmationStates = {};
159
+ this.unInvoicedByBrokerName = null;
127
160
  };
128
161
  this.clearFile = (event) => {
129
- event.stopPropagation();
130
- this.selectedFile = null;
131
- this.isDocumentError = false;
162
+ var _a, _b, _c;
163
+ if (typeof event === 'number') {
164
+ const newDocuments = this.inputs.documents.filter((_, idx) => idx !== event);
165
+ this.setInputValue('documents', newDocuments);
166
+ if (((_a = this === null || this === void 0 ? void 0 : this.item) === null || _a === void 0 ? void 0 : _a.documentUploaderIsRequired) && !newDocuments.length) {
167
+ this.setErrorValue('documents', {
168
+ show: true,
169
+ text: 'documentRequiredError',
170
+ });
171
+ }
172
+ }
173
+ else {
174
+ event.stopPropagation();
175
+ this.setInputValue('documents', []);
176
+ if ((_b = this.errors) === null || _b === void 0 ? void 0 : _b.documents)
177
+ this.setErrorValue('documents', { text: (_c = this.errors.documents) === null || _c === void 0 ? void 0 : _c.text, show: false });
178
+ }
179
+ };
180
+ this.onKeyDown = (event) => {
181
+ if (event.key === 'Enter')
182
+ this.submit();
132
183
  };
133
184
  }
134
- async componentWillLoad() {
135
- await this.changeLanguage(this.language);
136
- }
137
- async changeLanguage(newLanguage) {
138
- this.sharedLocales = await getSharedLocal(newLanguage);
185
+ async open() {
186
+ this.isOpened = true;
187
+ document.body.style.overflow = 'hidden';
188
+ this.focusInputs();
189
+ window.removeEventListener('keydown', this.closeModalListenerRef);
190
+ this.closeModalListenerRef = (event) => event.key === 'Escape' && this.close();
191
+ window.addEventListener('keydown', this.closeModalListenerRef);
139
192
  }
140
193
  onIsLoadingChange(newValue) {
141
194
  if (this.loadingStateChange)
142
195
  this.loadingStateChange(newValue);
143
196
  }
144
- async componentDidLoad() {
145
- this.dynamicClaimProcessor = this.el.shadowRoot.querySelector('.dynamic-claim-processor');
146
- if (this.unInvoicedByBrokerName === null)
147
- this.confirmUnInvoicedTBPVehicles = true;
148
- else
149
- this.confirmUnInvoicedTBPVehicles = false;
150
- }
151
- async componentDidRender() {
152
- this.qrInput = this.el.shadowRoot.querySelector('.dynamic-claim-processor #qr-input');
153
- this.invoiceInput = this.el.shadowRoot.querySelector('.dynamic-claim-processor #invoice-input');
154
- this.jobInput = this.el.shadowRoot.querySelector('.dynamic-claim-processor #job-input');
155
- this.registerFileUploader();
156
- }
157
- async changeInternalCanceledItem(newInternalCanceledItem) {
158
- this.internalCanceledItem = newInternalCanceledItem;
159
- if (this.internalCanceledItem.length > 0) {
160
- this.confirmServiceCancellation = false;
161
- }
162
- else {
163
- this.confirmServiceCancellation = true;
164
- }
165
- }
166
- async changeConfirmUnInvoicedTBPVehicles(newUnInvoicedByBrokerName) {
167
- if (newUnInvoicedByBrokerName === null) {
168
- this.confirmUnInvoicedTBPVehicles = true;
169
- }
170
- else {
171
- this.confirmUnInvoicedTBPVehicles = false;
172
- }
173
- }
174
- async changeInternalVin(newInternalVin) {
175
- this.internalVin = newInternalVin;
176
- }
177
- async changeInternalItem(newItem) {
178
- var _a;
179
- this.isOpened = !!newItem;
180
- if (newItem)
181
- this.internalItem = newItem;
182
- this.claimViaBarcodeScanner = ((_a = this.item) === null || _a === void 0 ? void 0 : _a.claimingMethodEnum) === 'ClaimByScanningQRCode';
183
- if (newItem) {
184
- this.closeModalListenerRef = (event) => event.key === 'Escape' && this.quite();
185
- window.addEventListener('keydown', this.closeModalListenerRef);
186
- await new Promise(r => setTimeout(r, 300));
187
- if (this.qrInput)
188
- this.qrInput.focus();
189
- if (this.invoiceInput)
190
- this.invoiceInput.focus();
191
- }
192
- else {
193
- window.removeEventListener('keydown', this.closeModalListenerRef);
194
- this.quite();
195
- }
196
- }
197
- async quite() {
198
- this.closeModal();
199
- }
200
- async getQrValue() {
201
- return this.invoiceInput.value;
202
- }
203
- updateReadyToClaim() {
204
- var _a, _b, _c;
205
- this.readyToClaim = false;
206
- if (this.claimViaBarcodeScanner) {
207
- if (((_a = this.qrCode) === null || _a === void 0 ? void 0 : _a.trim().length) > 0)
208
- this.readyToClaim = true;
209
- }
210
- else {
211
- if (((_b = this.invoice) === null || _b === void 0 ? void 0 : _b.trim().length) > 0 && ((_c = this.job) === null || _c === void 0 ? void 0 : _c.trim().length) > 0)
212
- this.readyToClaim = true;
213
- }
214
- }
215
- async onOpenChange(newOpenState) {
216
- document.body.style.overflow = newOpenState ? 'hidden' : 'auto';
217
- if (newOpenState) {
218
- this.uploadProgress = 0;
219
- this.selectedFile = null;
220
- this.isDocumentError = false;
221
- }
197
+ async close(forceClose = false) {
198
+ if (this.isLoading && !forceClose)
199
+ return;
200
+ this.isOpened = false;
201
+ document.body.style.overflow = 'auto';
202
+ await new Promise(r => setTimeout(r, 500));
203
+ this.resetState();
204
+ window.removeEventListener('keydown', this.closeModalListenerRef);
222
205
  }
223
206
  async setFileUploadProgression(uploadPercentage) {
224
207
  this.uploadProgress = uploadPercentage;
225
208
  }
209
+ // ====== End Component Logic
226
210
  render() {
227
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
228
- const texts = this.locale;
229
- const disableInput = !this.confirmServiceCancellation || !this.confirmUnInvoicedTBPVehicles || this.isLoading;
230
- return (h(Host, { key: '68c9d9074bf07f9a2a881752c09a7ba2e64be92f' }, h("div", { key: '34a8a7642e036533a19c12c1c1f53e9d0318b032', dir: this.sharedLocales.direction, class: cn('dynamic-claim-processor min-w-[100dvw] h-[100dvh] flex flex-col justify-between p-[50px] box-border overflow-auto', (this === null || this === void 0 ? void 0 : this.isOpened) && 'active') }, h("svg", { key: '4627dac1932c7fc0b80de8048c1ad9e3e62109da', id: "dynamic-claim-processor-close-icon", onClick: this.closeModal, viewBox: "-0.5 0 25 25", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: 'ffb23a77a473a16cc7b206ffbe3f89ffbf922673', id: "SVGRepo_bgCarrier", "stroke-width": "0" }), h("g", { key: '2ba466a2fc2d6e1f642c2aac75d9886fdceec68b', id: "SVGRepo_tracerCarrier", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", { key: '3de8270e7c20b6da4bb7843075824ffddff114b1', id: "SVGRepo_iconCarrier" }, h("path", { key: '6eeb76fcce519e4f9dedca1fea8b4566a47495ff', d: "M3 21.32L21 3.32001", stroke: "#000000", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { key: '261b6766db7a35b9fc0e2cded0426233388f2ce4', d: "M3 3.32001L21 21.32", stroke: "#000000", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), h("div", { key: 'a511c03d8adb06768cb326aa8913bcbf877f037a', class: "p-0 border border-[#dcdcdc] dynamic-claim-processor-info-box box-border" }, h("div", { key: 'c9e23b62e8bd27da57dc5d6ad11b726a3ac4bac7', class: "dynamic-claim-processor-info-box-header" }, h("strong", { key: '669782259fabb99a515f4b860a55971313ebef79', class: "dynamic-claim-header-vin" }, this === null || this === void 0 ? void 0 : this.internalVin)), h("div", { key: '92965a57eb7e8025077a881b4f9ff0377935522a', class: "dynamic-claim-processor-info-box-body" }, h("table", { key: '8a0bb605ef0c420369805954f95e4191ee2933b1', class: "border-separate" }, h("tr", { key: '5fea41900ad8de7ad0c39b012f5980156c08fc3c' }, h("th", { key: '78d467d8a54a4f836cd850485c2a095735388bf1' }, texts.serviceType), h("td", { key: 'ea27693cba300fa26653d25648eea367d10a5273' }, (_a = this === null || this === void 0 ? void 0 : this.internalItem) === null || _a === void 0 ? void 0 : _a.type), h("th", { key: '639450d7a2359a4de0cee8300b70f2a27c1b3a89' }, texts.name), h("td", { key: '3014be4d7deda07a7dd289e9a00a481524807e77' }, (_b = this === null || this === void 0 ? void 0 : this.internalItem) === null || _b === void 0 ? void 0 : _b.name)), h("tr", { key: '27ae532bab8417c10d724e5a64e64ef8894671b4' }, h("th", { key: 'b9bc6c432402cbf0473a7ab5e06cdf74d1f9c0d5' }, texts.activationDate), h("td", { key: '5b047e3eca4889bf571800d2b89c7bf69acf83c8' }, (_c = this === null || this === void 0 ? void 0 : this.internalItem) === null || _c === void 0 ? void 0 : _c.activatedAt), h("th", { key: '85d172b2be9e0a8faa4c45fbfb0702a5f3af72da' }, texts.expireDate), h("td", { key: '52d3b4453d1bd2cfce90bbf7a62475047ca44c7f' }, (_d = this === null || this === void 0 ? void 0 : this.internalItem) === null || _d === void 0 ? void 0 : _d.expiresAt)), h("tr", { key: '55eef0c232a7c2a5759fe0489878a732472ec5ab' }, h("th", { key: '1d8a9e465e381f70ee1c1e44c1188bc3a80f0441' }, texts.packageCode), h("td", { key: '90f7f04e74f5f3395c9aac095879e7887cead8ed' }, (_e = this === null || this === void 0 ? void 0 : this.internalItem) === null || _e === void 0 ? void 0 : _e.packageCode))))), h("div", { key: 'a69991bba649fd839a62bc441e7579b56cd74c43', style: { flex: '1', width: '100%', display: 'flex', flexDirection: 'column', justifyContent: 'space-evenly' } }, (this === null || this === void 0 ? void 0 : this.internalCanceledItem) && Array.isArray(this.internalCanceledItem) && !!this.internalCanceledItem.length && (h("div", { key: '1f2c413c6384a7297d84ca29d032ec73454f5ade', class: "admonition warning" }, h("p", { key: 'a94d82d025bb2427ea0e5d8b4b2fedd9962bdcd3', class: "admonition-title" }, texts.warning), h("div", { key: 'c2a69729ab2e054fc8e778f033301493432a96f9', style: { padding: '0 30px' } }, h("p", { key: 'f06f0232b58f2a4c0c476923551159ac3e85edee', class: "my-4" }, texts.skipServicesWarning), h("ul", { key: 'cd43b8e60c0f8e464f5852fc37dc961afcf78868', class: "dynamic-claim-processor-to-be-cancelled-list warning-ul my-4 list-disc" }, this.internalCanceledItem.map(({ name }) => (h("li", { id: name }, name)))), h("div", { key: 'a2b0e4a8e4692441f259039719d18045f78eda23', class: cn('cancel-confirmation-box transition duration-300', { 'pointer-events-none select-none opacity-50': this.isLoading }) }, h("label", { key: 'af3d3127cade63b49b91079a1e2554093b5c2ed5' }, h("input", { key: 'cd8a6cdc6d1b7fe959e458aac83778bf16887406', type: "checkbox", disabled: this.isLoading, class: "confirm-cancellation-input m-[3px] ml-1", onChange: () => {
231
- this.confirmServiceCancellation = !this.confirmServiceCancellation;
232
- setTimeout(() => {
233
- this.qrInput.focus();
234
- }, 100);
235
- } }), texts.confirmSkipServices))))), true && this.unInvoicedByBrokerName && (h("div", { key: '904e60f232c8c4040e15d0fff1285342024144ff', class: "admonition warning" }, h("p", { key: '2ffee3a33822761e703b4e3a2f9839659c6c9c73', class: "admonition-title" }, texts.warning), h("div", { key: '589a77167d0406d1c510241be7eebb9d9e1baa3f', style: { padding: '0 30px' } }, h("p", { key: 'a71561df3f5ff56946fad869ebd593523dbdd6a2', class: "my-4" }, texts.notInvoiced), h("div", { key: '87ae05d04059a1193101195684c59b1d7d5cfaf5' }, h("strong", { key: '88a95c3c07916d2295d50538111504f1d8afa34b' }, this.unInvoicedByBrokerName)), h("div", { key: 'f3192eb0857e63217fff60e7ef38006127fe4c19', class: cn('cancel-confirmation-box transition duration-300', { 'pointer-events-none select-none opacity-50': this.isLoading }) }, h("label", { key: '7b59ec73d0f4c3a36fb021be178ffafcf0cf723c' }, h("input", { key: '812dd79a73dfb1c9ffe5f156eac4802c68eb2a18', type: "checkbox", disabled: this.isLoading, class: "confirm-cancellation-input m-[3px] ml-1", onChange: () => {
236
- this.confirmUnInvoicedTBPVehicles = !this.confirmUnInvoicedTBPVehicles;
237
- setTimeout(() => {
238
- this.qrInput.focus();
239
- }, 100);
240
- } }), texts.confirmNotInvoiced))))), h("div", { key: 'a66d49b4f53bb1e590cff1578b0df52b3bf17b63', class: cn('dynamic-claim-processor-progress', disableInput && 'disabled') }, h("div", { key: '6c1ad07105b5885b0a53f5e32e40d2f734607821', id: "scan-invoice-step", class: cn('dynamic-claim-processor-progress-step', this.isLoading && 'processing') }, h("div", { key: '06fae64a5eb0fd06a4c3789aa37dd38e9a91460c', class: "relative size-[130px] m-auto mt-[15px] flex justify-center" }, h("div", { key: 'a5a67606641200e34460bb32825b410ee794ac55', class: "absolute scan-invoice-wrapper flex flex-col gap-[4px] justify-center items-center" }, h("svg", { key: '27b1a85ad8c72cf0bb88ea69c45b7ef04219b852', class: "size-[100px]", fill: "#3071a9", version: "1.1", id: "Layer_1", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", stroke: "#ffffff" }, h("g", { key: '52350aa4858c1824cff211835fb0f836de5a29a3', id: "SVGRepo_bgCarrier", "stroke-width": "0" }), h("g", { key: '3d75a21222790b234bbad2441ac33b7c83a46549', id: "SVGRepo_tracerCarrier", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", { key: 'eb2ee054f685ac661c643c8ea3b0dddcaf6b77d9', id: "SVGRepo_iconCarrier" }, h("g", { key: '7534e0c97c9b24079aa9670d780ecdd21282bd53' }, h("g", { key: 'bcd7b85fb38b015b78fea769c0b0c5f715f2a8b2' }, h("path", { key: '97b7f3ae9a72ec35a6cf8ff683c6734fda4c410e', d: "M354.338,34.205h-61.71c-3.354-9.93-12.752-17.102-23.8-17.102h-17.547C243.359,6.451,230.813,0,217.521,0 s-25.839,6.451-33.76,17.102h-17.547c-11.048,0-20.446,7.172-23.8,17.102H80.701c-18.566,0-33.67,15.105-33.67,33.67v359.148 c0,18.566,15.105,33.67,33.67,33.67h171.023c4.427,0,8.017-3.589,8.017-8.017c0-4.427-3.589-8.017-8.017-8.017H80.701 c-9.725,0-17.637-7.912-17.637-17.637V67.875c0-9.725,7.912-17.637,17.637-17.637h60.394v26.188c0,4.427,3.589,8.017,8.017,8.017 H285.93c4.427,0,8.017-3.589,8.017-8.017V50.238h60.391c9.725,0,17.637,7.912,17.637,17.637v230.881 c0,4.427,3.589,8.017,8.017,8.017c4.427,0,8.017-3.589,8.017-8.017V67.875C388.008,49.309,372.904,34.205,354.338,34.205z M277.914,68.409H157.129V42.252c0-0.011,0.001-0.02,0.001-0.031c0-0.005-0.001-0.011-0.001-0.015 c0.009-5.004,4.08-9.071,9.085-9.071h21.846c2.854,0,5.493-1.517,6.929-3.985c4.781-8.213,13.204-13.117,22.532-13.117 s17.751,4.904,22.532,13.117c1.435,2.467,4.075,3.985,6.929,3.985h21.846c4.999,0,9.067,4.059,9.085,9.055 c0,0.011-0.001,0.02-0.001,0.031c0,0.021,0.003,0.041,0.003,0.062V68.409z" }))), h("g", { key: 'efb74c8efdecb67d81605303cfb8c6bcbec6dbf3' }, h("g", { key: '066bd75b457609225923dd633b414b3e91402fa9' }, h("path", { key: 'd760e3598cbe2128b0775ead8d8e688ffc9314a2', d: "M251.722,410.455H97.269V84.443h17.64c4.427,0,8.017-3.589,8.017-8.017s-3.589-8.017-8.017-8.017H89.253 c-4.427,0-8.017,3.589-8.017,8.017v342.046c0,4.427,3.589,8.017,8.017,8.017h162.47c4.427,0,8.017-3.589,8.017-8.017 C259.739,414.044,256.15,410.455,251.722,410.455z" }))), h("g", { key: 'aab0fa7508721b68fc2c7b3b68e715895b3458cf' }, h("g", { key: '4a43204e700d1bc841e5baef5e2dc595ec20caed' }, h("path", { key: 'c33532bf58411ef44949ef9d4564ed6c8003e3ab', d: "M345.787,68.409h-25.653c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h17.637v214.311 c0,4.427,3.589,8.017,8.017,8.017s8.017-3.589,8.017-8.017V76.426C353.804,71.999,350.214,68.409,345.787,68.409z" }))), h("g", { key: 'dd3071605b5debe1a79bd2ae5f40bc48fdd7e9be' }, h("g", { key: '3ff3474f54eb29f9110ad5065685d3ba2ef4b4fe' }, h("path", { key: '6dec15e24b60605909198eccb7b57247dcb2a834', d: "M371.44,324.944c-51.572,0-93.528,41.956-93.528,93.528S319.869,512,371.44,512s93.528-41.956,93.528-93.528 S423.012,324.944,371.44,324.944z M371.44,495.967c-42.731,0-77.495-34.764-77.495-77.495s34.764-77.495,77.495-77.495 s77.495,34.764,77.495,77.495S414.172,495.967,371.44,495.967z" }))), h("g", { key: '2ad2cc2657d29f0b8a96d7da23cccf90c69fd6fc' }, h("g", { key: 'f276ca6db90f01a7d852729dbaaed1778e5760c4' }, h("path", { key: '5b9d5ef408dd896886f6d9ca036226d659abe3d5', d: "M217.607,34.205h-0.086c-4.427,0-7.974,3.589-7.974,8.017c0,4.427,3.631,8.017,8.059,8.017 c4.427,0,8.017-3.589,8.017-8.017C225.624,37.794,222.035,34.205,217.607,34.205z" }))), h("g", { key: '054e5fc9d1cc0583b98902aeef39cda66b084f32' }, h("g", { key: 'bcfe15c6bf1d3042d9c6372d8e9ba54c21ecf76e' }, h("path", { key: 'aa8792e2aa38be93e9ae2e30cc81729c23a45da2', d: "M419.865,387.15c-3.13-3.131-8.207-3.131-11.337,0l-54.19,54.19l-28.536-28.536c-3.131-3.131-8.207-3.131-11.337,0 c-3.131,3.131-3.131,8.207,0,11.337l34.205,34.205c1.565,1.565,3.617,2.348,5.668,2.348s4.103-0.782,5.668-2.348l59.858-59.858 C422.995,395.356,422.995,390.28,419.865,387.15z" }))), h("g", { key: 'd68d6c58038ea3052bfac3d82338929e70aa3097' }, h("g", { key: '08af492daf3daaa098c0f72e2da940fa44dbdd9c' }, h("path", { key: '40367fae5ff977de6810d1c9e678012d709d1551', d: "M182.781,177.309v-32.338c11.295,1.934,18.171,7.688,18.171,11.889c0,4.427,3.589,8.017,8.017,8.017 s8.017-3.589,8.017-8.017c0-14.171-14.492-25.621-34.205-28.092v-1.036c0-4.427-3.589-8.017-8.017-8.017s-8.017,3.589-8.017,8.017 v1.036c-19.713,2.47-34.205,13.92-34.205,28.092c0,20.074,18.829,27.788,34.205,32.461v32.338 c-11.295-1.934-18.171-7.688-18.171-11.889c0-4.427-3.589-8.017-8.017-8.017s-8.017,3.589-8.017,8.017 c0,14.171,14.492,25.621,34.205,28.092v1.036c0,4.427,3.589,8.017,8.017,8.017s8.017-3.589,8.017-8.017v-1.036 c19.713-2.47,34.205-13.92,34.205-28.092C216.985,189.697,198.157,181.982,182.781,177.309z M166.747,172.411 c-13.524-4.713-18.171-8.963-18.171-15.551c0-2.535,2.236-5.335,6.134-7.68c3.294-1.982,7.473-3.415,12.037-4.198V172.411z M194.818,217.45c-3.294,1.982-7.473,3.415-12.037,4.198v-27.429c13.524,4.713,18.171,8.963,18.171,15.551 C200.952,212.306,198.716,215.105,194.818,217.45z" }))), h("g", { key: 'cf8927f3294bbe3c3dee974eb6eedd35a64af7f9' }, h("g", { key: '1d6da1c5f329b1d307be9b0d8b1eece5ab224820' }, h("path", { key: 'd073e7fd4d94c5498bffce70c1a0ed270caa82a2', d: "M294.48,136.818h-42.756c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h42.756 c4.427,0,8.017-3.589,8.017-8.017S298.908,136.818,294.48,136.818z" }))), h("g", { key: '8e11a207b42e1b1f428371430ad3227982d7fc27' }, h("g", { key: 'ea3779641ca29f16eab99e4dceaddfa749089431' }, h("path", { key: 'e690ddeb9dd1ddb3e7c68a48e3224e31a47f1194', d: "M277.378,171.023h-25.653c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h25.653 c4.427,0,8.017-3.589,8.017-8.017S281.805,171.023,277.378,171.023z" }))), h("g", { key: '9f534377d19c2e792d3b1e1832dc5662b1deeb8b' }, h("g", { key: 'ce70ca0518ee32b505924c327a939ec674650ddc' }, h("path", { key: 'dedb50496128b75b2db69f27adc74bc8c25ed502', d: "M294.48,205.228h-42.756c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h42.756 c4.427,0,8.017-3.589,8.017-8.017S298.908,205.228,294.48,205.228z" }))), h("g", { key: 'd52a212dbd5b5655397ebb9419e24270571785a1' }, h("g", { key: '22fec222015c5197ea5889087b9daac943a07091' }, h("path", { key: '0f113b43716fb9dbc8d2d7a02c931552e3e237aa', d: "M157.662,282.188H140.56c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h17.102 c4.427,0,8.017-3.589,8.017-8.017S162.089,282.188,157.662,282.188z" }))), h("g", { key: '98080cc467d4ff86edd1ee502d69d7c29890f59f' }, h("g", { key: 'fcf6ec7ed882cfae55f4edc285aebe2e187446cc' }, h("path", { key: '867ae2e0e6de0390b48165d5bbff27d64b70d169', d: "M157.662,350.597H140.56c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h17.102 c4.427,0,8.017-3.589,8.017-8.017S162.089,350.597,157.662,350.597z" }))), h("g", { key: 'fb9a41c4496e15f642d0c499b1df54bcd2b223f4' }, h("g", { key: '9b2ca7a88af51a951a63c38c3e8a91b804c53bc8' }, h("path", { key: '1d991c71467a7fb5cdd4016cdabbc740edc9623e', d: "M157.662,316.393H140.56c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h17.102 c4.427,0,8.017-3.589,8.017-8.017S162.089,316.393,157.662,316.393z" }))), h("g", { key: '0784c45256bfdd109af8981e68a62b64d5f4bb2d' }, h("g", { key: 'a0cf56ced4d7e2b42722418575110c599ac9e783' }, h("path", { key: '5bd017b9528946e06a3f130e42b1c9a1ceb38e4d', d: "M294.48,282.188H191.866c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017H294.48 c4.427,0,8.017-3.589,8.017-8.017S298.908,282.188,294.48,282.188z" }))), h("g", { key: 'f6e378dab20b36c0faf85aabf934c7a1372611bf' }, h("g", { key: '05bfb5e03d3267d0dece25b3457a8902eae790c3' }, h("path", { key: '6b7413cf3261cbb3cb8c38b9dd317217ea6efeee', d: "M268.827,350.597h-76.96c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017h76.96 c4.427,0,8.017-3.589,8.017-8.017S273.254,350.597,268.827,350.597z" }))), h("g", { key: 'c0ca6d6f8a4f31f7602a7e038cc39e9d63f8100a' }, h("g", { key: '3527da0fed57f1846e9f91f07e6fc9e3c0381b76' }, h("path", { key: 'bf9cb5feedc3578c9681a2950ae89c8dc586b83a', d: "M294.48,316.393H191.866c-4.427,0-8.017,3.589-8.017,8.017s3.589,8.017,8.017,8.017H294.48 c4.427,0,8.017-3.589,8.017-8.017S298.908,316.393,294.48,316.393z" }))))), h("div", { key: 'd31bd96b6c620ccf7f9392da180d8e5119a99f55' }, this.claimViaBarcodeScanner ? texts.scanTheVoucher : texts.enterServiceInfo)), h("div", { key: '54cab888dd7662695bd60818875717a0e4806dc5', class: "loading-wrapper flex flex-col gap-[4px] items-center justify-center absolute" }, h("div", { key: 'be869e51d9b9ce421badf9f33f9e06f7d6dc41d1', class: cn('lds-ripple relative size-[100px] flex items-center justify-center', this.isLoading && 'active') }, h("div", { key: 'c335eea4689184ef09e07789205d245511a7c3de' }), h("div", { key: 'e8aa257e10d9bdae87d1604a4051e3741d94ee18' })), ((_f = this.item) === null || _f === void 0 ? void 0 : _f.showDocumentUploader) && this.selectedFile ? (h("div", { class: "relative border-[#3071a9] w-[300px] border-[2px] font-semibold h-[30px] overflow-hidden rounded-full flex items-center justify-center" }, texts.processing, " ", `${this.uploadProgress}%`, h("div", { style: {
211
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
212
+ const isQRScannerForm = ((_a = this.item) === null || _a === void 0 ? void 0 : _a.claimingMethodEnum) === 'ClaimByScanningQRCode';
213
+ const disableInputs = !this.getIsFormConfirmed() || this.isLoading;
214
+ const isFormValid = this.getIsFormValid();
215
+ return (h(Host, { key: '01755a3288d30acda3d401a2c7b16fc1792f3b5d' }, h("div", { key: '951904bb433ec341d5ee5ae1cdbc5f72525ec32c', dir: this.locale.sharedLocales.direction, class: cn('min-w-[100dvw] pointer-events-none h-[100dvh] bg-white fixed top-0 left-0 z-[999] flex flex-col transition duration-500 scale-[110%] opacity-0 justify-between p-[50px] box-border overflow-auto', {
216
+ 'opacity-1 scale-100 pointer-events-auto': this.isOpened,
217
+ }) }, h("button", { key: 'fc390c01240c3325b320ca92158fe85c0b846d10', disabled: this.isLoading, onClick: this.close.bind(this), class: "disabled:opacity-50 transition absolute right-[50px] duration-500 rounded-full enabled:hover:bg-red-200 enabled:hover:text-red-400 text-black enabled:hover:scale-[150%] enabled:hover:rotate-[135deg] size-[35px] rotate-[45deg]" }, h(AddIcon, { key: 'a2cbdb917e0b1f716f34100dbe0405278cf12e9a', class: "stroke-[1.5px]" })), h("div", { key: 'b2ba37b199d2b8d04d59fc7208445c0e38166ee8', class: "flex flex-col h-full gap-[32px] justify-between" }, h("div", { key: '21d8788b5f2b24c46e271302ed6184efe00199f3', class: "flex mt-[50px] flex-col shrink-0 gap-[20px]" }, h("div", { key: '6cb912223bf83dc13dbd850e80993ca4ecd2bd15', class: "border overflow-hidden rounded-[6px] border-[#dcdcdc] box-border" }, h("div", { key: 'acc7df86b6aba9a47aa686a4855e9250b4333840', class: "text-[16px] h-[50px] font-semibold flex items-center justify-center bg-[#f6f6f6]" }, this.vin), h("div", { key: '6299ddf15e3681fb947070ffc527ad822a2050dc', class: "overflow-hidden flex p-[22px] [&_div]:min-w-[200px] gap-[32px] flex-wrap justify-center" }, h(MaterialCard, { key: '6cf096a18efc47796799312a7787993309031a52', title: this.locale.serviceType }, (_b = this.item) === null || _b === void 0 ? void 0 : _b.type), h(MaterialCard, { key: 'b7935f543fff167a6f352b2b30630d51f641c92f', title: this.locale.name }, (_c = this.item) === null || _c === void 0 ? void 0 : _c.name), h(MaterialCard, { key: 'ce4b153a2c2fe003cbad078563ed6a3396fccc20', title: this.locale.activationDate }, (_d = this.item) === null || _d === void 0 ? void 0 : _d.activatedAt), h(MaterialCard, { key: '6f4536a7c8cec5c87a357a0f575c403c172a81de', title: this.locale.expireDate }, (_e = this.item) === null || _e === void 0 ? void 0 : _e.expiresAt), h(MaterialCard, { key: '939125c9b3675beceb5c816dbce1fadd5d074365', title: this.locale.packageCode }, (_f = this.item) === null || _f === void 0 ? void 0 : _f.packageCode))), h("div", { key: '730f5df5253b82845e1453b4c2293422417093a7', class: cn('border overflow-hidden rounded-[6px] border-[#ff9100] box-border', { hidden: !this.canceledItems.length }) }, h("div", { key: 'd7d8f56e654003700a8ae1a678917cf1a97f098d', class: "text-[16px] px-[22px] h-[50px] font-semibold flex items-center gap-[8px] bg-[#ff91001a]" }, h(AlertIcon, { key: '65560a937f3eaf872af618732587b728a7ff3c48', class: "size-[25px] text-[#ff9100]" }), " ", this.locale.warning), h("div", { key: 'ef846cbd6805246dea3b4f779b61ef78b15f3522', class: "p-[16px]" }, h("div", { key: 'b656831212615c0a954542d7e092d9730cdaa66f', class: "text-[16px]" }, this.locale.skipServicesWarning), h("ul", { key: '7064e446d61785b3e3027364327718a0255afa10', class: "list-disc mt-[16px]" }, this.canceledItems.map(({ name }) => (h("li", { class: "ms-[50px] text-[16px] mt-[4px]" }, name)))), h("label", { key: '131afb6bef974e6f3290669c844b7081497eb0e8', class: cn('select-none text-[16px] flex font-semibold group items-center px-[16px] gap-[10px] mt-[20px] h-[36px] transition duration-300 rounded-[6px] cursor-pointer text-[#663c00] bg-[#ff91001a] border border-[#ffd28f]', {
218
+ 'hover:bg-[#fff8e1]': !this.isLoading,
219
+ 'opacity-50 pointer-events-none': this.isLoading,
220
+ }) }, h("input", { key: '88a3fab854bd79fa08f431a274e45e3f1f4affc6', type: "checkbox", class: "peer sr-only", disabled: this.isLoading, checked: !!this.confirmationStates.canceledItems, onChange: this.onConfirmCheckboxChange('canceledItems') }), h("div", { key: '0ad2d733c7dfe6c3b58e8e87b9046b73d90880f8', class: "size-[20px] rounded border border-[#ffb74d] transition duration-300 text-transparent peer-checked:text-white peer-checked:bg-[#ff9100] peer-checked:border-[#ff9100] flex items-center justify-center" }, h(CheckIcon, { key: '282c7c217770df254d7d038ae75ab5b772fb8b6d', class: "size-[18px]" })), this.locale.confirmSkipServices))), h("div", { key: 'ce1acea29c6d44f9f9bf5c5a42586ab27c40a9bc', class: cn('border overflow-hidden rounded-[6px] border-[#ff9100] box-border', { hidden: !this.unInvoicedByBrokerName }) }, h("div", { key: '864cc25efe5c5fd5ebb5da9f7353b9df909310d1', class: "text-[16px] px-[22px] h-[50px] font-semibold flex items-center gap-[8px] bg-[#ff91001a]" }, h(AlertIcon, { key: '6e5564f54f14ea31cee1c10ac053519a07acacb3', class: "size-[25px] text-[#ff9100]" }), " ", this.locale.warning), h("div", { key: '6f6919e0b57e31bf73944090806ddc5854ba9131', class: "p-[16px]" }, h("div", { key: '648723969cd87d409d2999d9cd0bbc7b8b8509b0', class: "flex gap-[8px] text-[16px]" }, this.locale.notInvoiced, " ", h("b", { key: 'e9976ce87542b7978f5637b19a0ac272489c44ba' }, this.unInvoicedByBrokerName)), h("label", { key: 'cfc7e6c41dc1972ae5494106f1cfc364f9cfc220', class: cn('select-none text-[16px] flex font-semibold group items-center px-[16px] gap-[10px] mt-[20px] h-[36px] transition duration-300 rounded-[6px] cursor-pointer text-[#663c00] bg-[#ff91001a] border border-[#ffd28f]', {
221
+ 'hover:bg-[#fff8e1]': !this.isLoading,
222
+ 'opacity-50 pointer-events-none': this.isLoading,
223
+ }) }, h("input", { key: '91a3a038e244c2b0056a6b1cac6a26d27871d3e0', type: "checkbox", class: "peer sr-only", disabled: this.isLoading, checked: !!this.confirmationStates.unInvoicedByBrokerName, onChange: this.onConfirmCheckboxChange('unInvoicedByBrokerName') }), h("div", { key: '044a72bd401c618d1d3406b3e7c45a39b381a686', class: "size-[20px] rounded border border-[#ffb74d] transition duration-300 text-transparent peer-checked:text-white peer-checked:bg-[#ff9100] peer-checked:border-[#ff9100] flex items-center justify-center" }, h(CheckIcon, { key: 'c2c094f7542c327715ea17a65811089afd4ea2ee', class: "size-[18px]" })), this.locale.confirmNotInvoiced)))), h("div", { key: '3a0f0c12721a0acaf5d6d987334d29f2682b37aa', class: cn('flex flex-col shrink-0 my-auto gap-[20px] h-fit p-[50px] border-[2px] border-[#3071a9] transition duration-500 items-center rounded-[8px] shadow-lg bg-[#f4f4f4]', {
224
+ 'border-[#f4f4f4]': this.isLoading,
225
+ }) }, h("div", { key: '8f7bc1953165a1c660096a847c3395c855a64410', class: "relative w-[200px] h-[140px]" }, h("div", { key: '32682e831575ac66a0a058c8df3487f8abf942bf', class: cn('absolute size-full transition-all duration-500 flex flex-col items-center gap-[12px] left-0 top-0', { 'left-full opacity-0': this.isLoading }) }, h(FormSubmitSVG, { key: '5236d94682b282f329da7655454f235485854043', class: "size-[100px] fill-[#3071a9] text-[#3071a9]" }), h("div", { key: '7cd1674a6d77297b0394b6c87dda25f013f6b7c3', class: "text-[16px] text-[#3071a9] font-semibold" }, isQRScannerForm ? this.locale.scanTheVoucher : this.locale.enterServiceInfo)), h("div", { key: 'fe848f07f7502845a37c17fe7899de772cc89b66', class: cn('absolute size-full opacity-0 transition-all duration-500 -left-full flex flex-col gap-[12px] items-center', { 'left-0 opacity-100': this.isLoading }) }, h("div", { key: '566d2561ca96694049629588688b5e468519b6ae', class: cn('relative size-[100px] flex items-center justify-center') }, h("div", { key: '8ddaaa926509f5f4253395bb904d1704d53b97da', class: "lds-ripple" }), h("div", { key: 'd30c4c54957fed290a7d654aa15f05e17f1edfba', class: "lds-ripple" })), ((_g = this.item) === null || _g === void 0 ? void 0 : _g.showDocumentUploader) && !!this.inputs['documents'].length ? (h("div", { class: "relative border-[#3071a9] text-[#3071a9] text-[16px] w-[300px] border-[2px] font-semibold h-[30px] overflow-hidden rounded-full flex items-center justify-center" }, h("span", { class: "relative z-20" }, this.locale.processing, " ", `${this.uploadProgress}%`), h("div", { style: {
241
226
  width: `${this.uploadProgress}%`,
242
227
  background: `linear-gradient(to right, rgba(219, 234, 254, ${Math.min(0.1 + this.uploadProgress / 100, 1)}), rgba(191, 219, 254, ${Math.min(0.15 + this.uploadProgress / 100, 1)}), rgba(147, 197, 253, ${Math.min(0.2 + this.uploadProgress / 100, 1)}))`,
243
- }, class: "absolute left-0 top-0 h-full -z-10 transition-[width] duration-700 ease-out" }))) : (h("div", { class: cn('lds-ripple-loading', this.isLoading && 'active') }, texts.processing)))), h("div", { key: '4f47ef68bfcc7a2f32de7b145effdba9e5384414', class: cn('transition-opacity duration-300 ', { 'opacity-50': this.isLoading }) }, this.claimViaBarcodeScanner && (h("div", { key: '9ebe76e081b30f0da7c9013a1dd4084091951722', class: "flex flex-col mt-[50px] px-[75px] gap-[16px]" }, ((_g = this.item) === null || _g === void 0 ? void 0 : _g.showDocumentUploader) && (h("div", { key: '000d1a2f04c450bdc20f830c6993687f045c7995', class: "flex mb-[12px] flex-col" }, h("input", { key: 'bc24f703d27499f55411660e5245f1d6c5d09634', class: "document-uploader", disabled: this.isLoading, type: "file", accept: "image/*,application/pdf", hidden: true }), h("div", { key: '0a2845bc6c47ee45b036f703a066ceaffdf60c11', class: cn('document-button overflow-hidden flex items-center w-fit mx-auto cursor-pointer gap-[16px] ps-[8px] h-[32px] transition duration-300 text-white bg-[#275e8f] active:bg-[#223f57] hover:bg-[#3071a9] rounded-[5px]', { 'pointer-events-none bg-[#d5d5d5] cursor-default': disableInput }) }, h("div", { key: '02ac6449f4f7c6e19bfffe6056c6c89a9799145f', title: ((_h = this.selectedFile) === null || _h === void 0 ? void 0 : _h.name) || texts.document, class: "max-w-[200px] truncate whitespace-nowrap overflow-hidden text-ellipsis" }, ((_j = this.selectedFile) === null || _j === void 0 ? void 0 : _j.name) || texts.document, ((_k = this === null || this === void 0 ? void 0 : this.item) === null || _k === void 0 ? void 0 : _k.documentUploaderIsRequired) && !this.selectedFile && h("span", { key: '43b0c4f31ff30123cf6698492d14755e1b2c1491', class: cn('ps-[4px] text-red-500', { 'text-white': disableInput }) }, "*")), h("button", { key: '857001af21a4e425126b03412fed5aebfc8158f3', onClick: this.clearFile, class: cn('overflow-hidden transition duration-300 hover:bg-red-600 relative cursor-pointer flex items-center justify-center size-[32px]', {
244
- 'pointer-events-none cursor-default': !this.selectedFile,
245
- }) }, h("svg", { key: 'd96a3944a833276f977e92cf2e4ebd0eadc93dcd', fill: "none", "stroke-width": "2", viewBox: "0 0 24 24", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", xmlns: "http://www.w3.org/2000/svg", class: cn('size-[24px] absolute transition duration-500', { '-translate-y-[32px]': !!this.selectedFile }) }, h("path", { key: '1a6e2b06a86ccfc10c0f40e77e932931ff47497c', d: "m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551" })), h("svg", { key: '0e3f6fca1de9473cc9e14e01f987327d30283cec', fill: "none", "stroke-width": "2", viewBox: "0 0 24 24", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", xmlns: "http://www.w3.org/2000/svg", class: cn('size-[24px] absolute transition translate-y-[32px] duration-500', { 'translate-y-0': !!this.selectedFile }) }, h("path", { key: 'f824d624de4d0555558bf007eaac4b549d3d12e2', d: "M18 6 6 18" }), h("path", { key: 'fe4a57efa8ca6dc6a7ccec24d7a0cf53909556cf', d: "m6 6 12 12" })))), h("flexible-container", { key: 'd175450892190f55da5d065e84c700f528dfe698', isOpened: this.isDocumentError }, h("div", { key: 'fba9c58b27ec0bca5eaaffc0037f159dfddd20ec', class: "text-red-700 w-fit mx-auto pt-[8px]" }, this.documentError === 'documentLimitError'
246
- ? texts.documentLimitError + `${this.maximumDocumentFileSizeInMb}Mb`
247
- : texts.documentRequiredError || this.sharedLocales.errors.wildCard)))), h("input", { key: '785e3068bffe0ea93bf402cefdac4264878a60fc', id: "qr-input", dir: "ltr", class: "dynamic-redeem-input", spellcheck: "false", onInput: e => {
248
- this.qrCode = e.target.value;
249
- this.updateReadyToClaim();
250
- }, onKeyDown: this.inputKeyDown, onBlur: () => {
251
- var _a;
252
- (_a = this.qrInput) === null || _a === void 0 ? void 0 : _a.focus();
253
- }, autocomplete: "off", disabled: disableInput, placeholder: texts.qrCode, autofocus: true, style: { marginTop: '20px', padding: '10px 0px', fontSize: '16px' } }))), !this.claimViaBarcodeScanner && (h("div", { key: 'e85757dbdfe4b1d02789ea2b5c46116f4567dfb9' }, h("div", { key: '91462a93e3bfaeb62f2712768e5dc98d69317061', style: { display: 'flex', flexDirection: 'row', gap: '50px', padding: '0 75px' } }, h("input", { key: 'f8ded36b8a1806639c96af1f3b8e36a3d65e23d8', id: "invoice-input", dir: "ltr", class: "dynamic-redeem-input", spellcheck: "false", onInput: e => {
254
- this.invoice = e.target.value;
255
- this.updateReadyToClaim();
256
- }, onKeyDown: this.inputKeyDown, autocomplete: "off", disabled: disableInput, placeholder: texts.invoice, autofocus: true, style: { marginTop: '20px', padding: '10px 0px', fontSize: '16px' } }), h("input", { key: '5a01b31453e8327e4311f83371e9d7a390148b30', id: "job-input", dir: "ltr", class: "dynamic-redeem-input", spellcheck: "false", onInput: e => {
257
- this.job = e.target.value;
258
- this.updateReadyToClaim();
259
- }, onKeyDown: this.inputKeyDown, autocomplete: "off", disabled: disableInput, placeholder: texts.jobNumber, style: { marginTop: '20px', padding: '10px 0px', fontSize: '16px' } })), h("div", { key: 'a7624ccbd379c9edb947633424bca66dcbd80328', class: "mt-[55px]" }, ((_l = this.item) === null || _l === void 0 ? void 0 : _l.showDocumentUploader) && (h("div", { key: '9c9c03064d48b36d72db1047dcd1e9c2a6067829', class: "flex mb-[12px] flex-col" }, h("input", { key: '395549c0430ba0d15a77ad8ed9217e64d41db35d', class: "document-uploader", disabled: this.isLoading, type: "file", accept: "image/*,application/pdf", hidden: true }), h("div", { key: '5822f068ed2fa2999f3899ad00217ca7f12194a3', class: cn('document-button overflow-hidden flex items-center w-fit mx-auto cursor-pointer gap-[16px] ps-[8px] h-[32px] transition duration-300 text-white bg-[#275e8f] active:bg-[#223f57] hover:bg-[#3071a9] rounded-[5px]', { 'pointer-events-none bg-[#d5d5d5] cursor-default': disableInput }) }, h("div", { key: '2cdddf5dad95185aa2476df8cfefc2012f6f03fc', title: ((_m = this.selectedFile) === null || _m === void 0 ? void 0 : _m.name) || texts.document, class: "max-w-[200px] truncate whitespace-nowrap overflow-hidden text-ellipsis" }, ((_o = this.selectedFile) === null || _o === void 0 ? void 0 : _o.name) || texts.document, ((_p = this === null || this === void 0 ? void 0 : this.item) === null || _p === void 0 ? void 0 : _p.documentUploaderIsRequired) && !this.selectedFile && h("span", { key: 'b7474a8e0c0f3bc05aedd8a6df88e103efaf57f1', class: cn('ps-[4px] text-red-500', { 'text-white': disableInput }) }, "*")), h("button", { key: '9097a209bbba8ac1cba8bfe6f45ca316af97124d', onClick: this.clearFile, class: cn('overflow-hidden transition duration-300 hover:bg-red-600 relative cursor-pointer flex items-center justify-center size-[32px]', {
260
- 'pointer-events-none cursor-default': !this.selectedFile,
261
- }) }, h("svg", { key: 'acf7be70e4e2c2eedbf0cfcbad84870e581e3293', fill: "none", "stroke-width": "2", viewBox: "0 0 24 24", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", xmlns: "http://www.w3.org/2000/svg", class: cn('size-[24px] absolute transition duration-500', { '-translate-y-[32px]': !!this.selectedFile }) }, h("path", { key: '58e0fd59dbb2be4055248d852c63c65884c4dce6', d: "m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551" })), h("svg", { key: 'b6d2d4838093fd109b7c55f972e7ad5aaf308cf9', fill: "none", "stroke-width": "2", viewBox: "0 0 24 24", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", xmlns: "http://www.w3.org/2000/svg", class: cn('size-[24px] absolute transition translate-y-[32px] duration-500', { 'translate-y-0': !!this.selectedFile }) }, h("path", { key: '03144a7be6cdcd9683b65241094e1750a71b8d66', d: "M18 6 6 18" }), h("path", { key: '5096ab5d1f47c757da5dc820635c03879c4fe7ca', d: "m6 6 12 12" })))), h("flexible-container", { key: '050348034f7143a7fc2ed617d5bda8a93e1f5c6c', isOpened: this.isDocumentError }, h("div", { key: 'f80d151c8cfa856964bf38f613cfc12a171ca101', class: "text-red-700 w-fit mx-auto pt-[8px]" }, this.documentError === 'documentLimitError'
262
- ? texts.documentLimitError + `${this.maximumDocumentFileSizeInMb}Mb`
263
- : texts.documentRequiredError || this.sharedLocales.errors.wildCard)))), h("button", { key: 'b8714b8aa98e55a5a2fabd6ef1edb14e9fba8be0', onClick: () => {
264
- this.inputKeyDown(null);
265
- }, class: cn('claim-button', 'dynamic-claim-button', (!(this === null || this === void 0 ? void 0 : this.readyToClaim) || disableInput) && 'disabled') }, h("svg", { key: '5f901fcf4a0c64c900f7dcd255feb080f8fe665b', width: "30px", height: "30px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: '8cf3f4d55bb5873ab7a6a87f720aae238da8b04c', "stroke-width": "0" }), h("g", { key: 'ecc6484402aacc974b80a5fcc2a9aeb595af90f0', "stroke-linecap": "round", "stroke-linejoin": "round" }), h("g", { key: 'b658cee1493b7dc7c8b5bf507eaf1f61865aa98f' }, h("circle", { key: '5dc79f07d82ef4a4970aa5d5284bc26e41d7b55b', cx: "12", cy: "12", r: "8", "fill-opacity": "0.24" }), h("path", { key: 'b3e6054499769d491397a54a53bc214f5e40d76a', 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: '50eb43fc0b8fa9b18aecbcf200ee1e0b456d3709' }, texts.claim))))))))))));
228
+ }, class: "absolute left-0 z-10 top-0 h-full transition-[width] duration-700 ease-out" }))) : (h("div", { class: "text-[16px] text-[#3071a9] font-semibold" }, this.locale.processing)))), ((_h = this.item) === null || _h === void 0 ? void 0 : _h.showDocumentUploader) && (h("div", { key: 'bc2c9954e1ebd3e9a21767538b1a6a3f22a48d97', class: "flex mb-[16px] w-full flex-col" }, h("input", { key: '5b74ca55cdd9a876f6ada2c98b77d594ef27cbfc', hidden: true, type: "file", class: "document-uploader", disabled: this.isLoading, accept: "image/*,application/pdf", onChange: this.onFileUploaderChange, multiple: this.uploadMultipleDocuments, "data-max-size": this.maximumDocumentFileSizeInMb * 1024 * 1024 }), h("div", { key: '1b70aa2d0f0f6318ed9f0313ec549b8f165be927', onClick: this.onDocumentButtonClicked, class: cn('overflow-hidden flex items-center w-fit mx-auto cursor-pointer gap-[16px] ps-[8px] h-[32px] transition duration-300 text-white bg-[#275e8f] active:bg-[#223f57] hover:bg-[#3071a9] rounded-[5px]', { 'pointer-events-none bg-[#d5d5d5] cursor-default': disableInputs }) }, h("div", { key: '6702769b71de05c9ac02b3c732422f19c9c12e28', title: this.uploadMultipleDocuments ? this.locale.uploadMultipleDocument : this.locale.uploadSingleDocument, class: "max-w-[200px] truncate whitespace-nowrap overflow-hidden text-ellipsis" }, this.uploadMultipleDocuments ? this.locale.uploadMultipleDocument : this.locale.uploadSingleDocument, ((_j = this === null || this === void 0 ? void 0 : this.item) === null || _j === void 0 ? void 0 : _j.documentUploaderIsRequired) && !((_k = this.inputs) === null || _k === void 0 ? void 0 : _k.documents.length) && (h("span", { key: 'e8c9622b2b33609877c60cd753b1968c5b1d247e', class: cn('ps-[4px] text-red-500', { 'text-white': disableInputs }) }, "*"))), h("button", { key: 'cd72045d2940cf27d399cf162d92e4da25ec623a', onClick: this.clearFile, class: cn('overflow-hidden transition duration-300 hover:bg-red-600 relative cursor-pointer flex items-center justify-center size-[32px]', {
229
+ 'pointer-events-none cursor-default': !((_l = this.inputs) === null || _l === void 0 ? void 0 : _l.documents.length),
230
+ }) }, h(AttachIcon, { key: '83cd82664420061719092cba423512a0d6446299', class: cn('size-[24px] absolute transition duration-500', { '-translate-y-[32px]': !!((_m = this.inputs) === null || _m === void 0 ? void 0 : _m.documents.length) }) }), h(AddIcon, { key: 'e3c14be569ee4a36b5ccb7611b73d271b7a5f018', class: cn('size-[24px] rotate-[45deg] absolute transition translate-y-[32px] duration-500', { 'translate-y-0': !!((_o = this.inputs) === null || _o === void 0 ? void 0 : _o.documents.length) }) }))), h("flexible-container", { key: 'a50ff7ac9c92e8b55ee286795ce39018b2ebf37a', isOpened: !!((_q = (_p = this.errors) === null || _p === void 0 ? void 0 : _p.documents) === null || _q === void 0 ? void 0 : _q.show) }, h("div", { key: '48b5f136f9d1ae3b9487b01d2bdafed1e0816be8', class: "text-red-700 w-fit mx-auto pt-[8px]" }, ((_s = (_r = this.errors) === null || _r === void 0 ? void 0 : _r.documents) === null || _s === void 0 ? void 0 : _s.text) === 'documentLimitError'
231
+ ? this.locale.documentLimitError + `${this.maximumDocumentFileSizeInMb}Mb`
232
+ : this.locale.documentRequiredError || this.locale.sharedLocales.errors.wildCard)), h("flexible-container", { key: '38e81cf16955af66a3cb1bbced4850c2ec895384', isOpened: !!((_u = (_t = this.inputs) === null || _t === void 0 ? void 0 : _t.documents) === null || _u === void 0 ? void 0 : _u.length), containerClasses: "" }, h("div", { key: '880c1c7f6a234ffbd37c7681ad70d2f5db94dcec', class: "flex w-full pt-[16px] flex-wrap justify-center gap-[16px]" }, (_w = (_v = this.inputs) === null || _v === void 0 ? void 0 : _v.documents) === null || _w === void 0 ? void 0 : _w.map((doc, idx) => {
233
+ var _a;
234
+ return (h("div", { class: cn('flex relative overflow-hidden max-w-[400px] items-center justify-between gap-[20px] bg-slate-400 rounded-[4px] text-white text-[14px]', {
235
+ 'pointer-events-none bg-[#d5d5d5] cursor-default': disableInputs,
236
+ }) }, h("span", { title: doc.name, class: "truncate ps-[16px] py-[8px]" }, doc.name), h("button", { disabled: disableInputs, onClick: () => this.clearFile(idx), class: cn('overflow-hidden transition duration-300 hover:bg-red-600 relative cursor-pointer flex items-center justify-center size-[32px]', {
237
+ 'pointer-events-none cursor-default': !((_a = this.inputs) === null || _a === void 0 ? void 0 : _a.documents.length),
238
+ }) }, h(AddIcon, { class: "size-[24px] rotate-[45deg]" }))));
239
+ }))))), isQRScannerForm && (h("div", { key: '081764f7cc6bd8bdc3549497d2060cff07e78933', class: "overflow-hidden w-full" }, h("input", { key: 'cc451df06f591279484845f182d25f58df938d3d', dir: "ltr", autofocus: true, type: "text", spellcheck: "false", autocomplete: "off", disabled: disableInputs, onBlur: this.focusInputs, onKeyDown: this.onKeyDown, value: (_x = this.inputs) === null || _x === void 0 ? void 0 : _x.qrCode, placeholder: this.locale.qrCode, onInput: event => this.setInputValue('qrCode', event.target.value), class: "bg-transparent flex-1 outline-none border-b border-[#ddd] text-[#424242] w-full text-center p-[7px] text-[16px] transition-all duration-300 focus:border-[#3071a9] focus:scale-110 focus:-translate-y-[8px]" }))), !isQRScannerForm && (h("div", { key: '69f7e1f1dd88c18319267bf0c8549d64d605deea', class: "flex w-full overflow-hidden gap-[75px]" }, h("input", { key: '28ddca943dc7fa97f8068b41089ae6283ab9d7ac', dir: "ltr", autofocus: true, type: "text", spellcheck: "false", autocomplete: "off", disabled: disableInputs, onKeyDown: this.onKeyDown, value: (_y = this.inputs) === null || _y === void 0 ? void 0 : _y.invoice, placeholder: this.locale.invoice, onInput: event => this.setInputValue('invoice', event.target.value), class: "bg-transparent flex-1 outline-none border-b border-[#ddd] text-[#424242] w-full text-center p-[7px] text-[16px] transition-all duration-300 focus:border-[#3071a9] focus:scale-110 focus:-translate-y-[8px]" }), h("input", { key: 'a78a00bfc36730def5c2c97494db8904ae9505ea', dir: "ltr", type: "text", spellcheck: "false", autocomplete: "off", disabled: disableInputs, onKeyDown: this.onKeyDown, value: (_z = this.inputs) === null || _z === void 0 ? void 0 : _z.jobNumber, placeholder: this.locale.jobNumber, onInput: event => this.setInputValue('jobNumber', event.target.value), class: "bg-transparent flex-1 outline-none border-b border-[#ddd] text-[#424242] w-full text-center p-[7px] text-[16px] transition-all duration-300 focus:border-[#3071a9] focus:scale-110 focus:-translate-y-[8px]" }))), h("button", { key: 'bb0a32bddd012dd5759c4c52e57a2675dc9aedb6', onClick: this.submit, disabled: !isFormValid || disableInputs, class: "text-[22px] transition duration-500 hover: mt-[16px] disabled:opacity-50 text-white w-full max-w-[250px] px-[8px] h-[40px] enabled:hover:scale-110 flex gap-[8px] border rounded-[4px] enabled:shadow items-center justify-center border-[#27ae60] bg-[#32b267] enabled:hover:border-[#27ae5fc1] enabled:hover:bg-[#32b267c7]" }, h(ActivationIcon, { key: 'df809962fb53f68bd8dcc4cca05230c9fca0ad0d', class: "size-[30px] [&_circle]:fill-white stroke-white text-red-300" }), h("span", { key: '38d7ce5b9c19c49ce6dac353a8ccf95a2bcbd700' }, this.locale.claim))), h("div", { key: '430759dc1a5a0ea34f6fd02f37acf11fe38998c1', class: "shrink-0 h-[16px]" })))));
266
240
  }
267
241
  static get is() { return "vehicle-item-claim-form"; }
268
242
  static get encapsulation() { return "shadow"; }
@@ -295,49 +269,40 @@ export class VehicleItemClaimForm {
295
269
  },
296
270
  "getter": false,
297
271
  "setter": false,
298
- "reflect": false,
299
- "defaultValue": "''"
272
+ "reflect": false
300
273
  },
301
- "language": {
302
- "type": "string",
303
- "attribute": "language",
274
+ "item": {
275
+ "type": "unknown",
276
+ "attribute": "item",
304
277
  "mutable": false,
305
278
  "complexType": {
306
- "original": "LanguageKeys",
307
- "resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
279
+ "original": "VehicleServiceItemDTO",
280
+ "resolved": "{ 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; }",
308
281
  "references": {
309
- "LanguageKeys": {
282
+ "VehicleServiceItemDTO": {
310
283
  "location": "import",
311
- "path": "~types/locale",
312
- "id": "src/global/types/locale.ts::LanguageKeys"
284
+ "path": "~types/generated/vehicle-lookup/vehicle-service-item-dto",
285
+ "id": "src/global/types/generated/vehicle-lookup/vehicle-service-item-dto.ts::VehicleServiceItemDTO"
313
286
  }
314
287
  }
315
288
  },
316
289
  "required": false,
317
- "optional": false,
290
+ "optional": true,
318
291
  "docs": {
319
292
  "tags": [],
320
293
  "text": ""
321
294
  },
322
295
  "getter": false,
323
- "setter": false,
324
- "reflect": false,
325
- "defaultValue": "'en'"
296
+ "setter": false
326
297
  },
327
- "item": {
328
- "type": "unknown",
329
- "attribute": "item",
298
+ "unInvoicedByBrokerName": {
299
+ "type": "string",
300
+ "attribute": "un-invoiced-by-broker-name",
330
301
  "mutable": false,
331
302
  "complexType": {
332
- "original": "VehicleServiceItemDTO",
333
- "resolved": "{ 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; }",
334
- "references": {
335
- "VehicleServiceItemDTO": {
336
- "location": "import",
337
- "path": "~types/generated/vehicle-lookup/vehicle-service-item-dto",
338
- "id": "src/global/types/generated/vehicle-lookup/vehicle-service-item-dto.ts::VehicleServiceItemDTO"
339
- }
340
- }
303
+ "original": "string",
304
+ "resolved": "string",
305
+ "references": {}
341
306
  },
342
307
  "required": false,
343
308
  "optional": true,
@@ -347,7 +312,7 @@ export class VehicleItemClaimForm {
347
312
  },
348
313
  "getter": false,
349
314
  "setter": false,
350
- "defaultValue": "null"
315
+ "reflect": false
351
316
  },
352
317
  "maximumDocumentFileSizeInMb": {
353
318
  "type": "number",
@@ -368,13 +333,13 @@ export class VehicleItemClaimForm {
368
333
  "setter": false,
369
334
  "reflect": false
370
335
  },
371
- "unInvoicedByBrokerName": {
372
- "type": "string",
373
- "attribute": "un-invoiced-by-broker-name",
336
+ "uploadMultipleDocuments": {
337
+ "type": "boolean",
338
+ "attribute": "upload-multiple-documents",
374
339
  "mutable": false,
375
340
  "complexType": {
376
- "original": "string",
377
- "resolved": "string",
341
+ "original": "boolean",
342
+ "resolved": "boolean",
378
343
  "references": {}
379
344
  },
380
345
  "required": false,
@@ -386,7 +351,7 @@ export class VehicleItemClaimForm {
386
351
  "getter": false,
387
352
  "setter": false,
388
353
  "reflect": false,
389
- "defaultValue": "null"
354
+ "defaultValue": "true"
390
355
  },
391
356
  "canceledItems": {
392
357
  "type": "unknown",
@@ -411,7 +376,7 @@ export class VehicleItemClaimForm {
411
376
  },
412
377
  "getter": false,
413
378
  "setter": false,
414
- "defaultValue": "null"
379
+ "defaultValue": "[]"
415
380
  },
416
381
  "loadingStateChange": {
417
382
  "type": "unknown",
@@ -431,23 +396,28 @@ export class VehicleItemClaimForm {
431
396
  "getter": false,
432
397
  "setter": false
433
398
  },
434
- "handleClaiming": {
399
+ "locale": {
435
400
  "type": "unknown",
436
- "attribute": "handle-claiming",
401
+ "attribute": "locale",
437
402
  "mutable": false,
438
403
  "complexType": {
439
- "original": "(payload: ClaimFormPayload) => void",
440
- "resolved": "(payload: ClaimFormPayload) => void",
404
+ "original": "{ sharedLocales: SharedLocales } & ClaimFormType",
405
+ "resolved": "{ sharedLocales: { lang?: string; direction?: string; language?: string; noData?: string; errors?: { noBaseUrl?: string; invalidVin?: string; vinNumberRequired?: string; partNumberRequired?: string; wrongResponseFormat?: string; noPartsFound?: string; noServiceAvailable?: string; wrongFormStructure?: string; wildCard?: string; requestFailedPleaseTryAgainLater?: string; }; }; } & { name?: string; uploadSingleDocument?: string; uploadMultipleDocument?: string; serviceType?: string; documentLimitError?: string; documentRequiredError?: string; activationDate?: string; expireDate?: string; packageCode?: string; scanTheVoucher?: string; qrCode?: string; processing?: string; warning?: string; skipServicesWarning?: string; confirmSkipServices?: string; notInvoiced?: string; confirmNotInvoiced?: string; enterServiceInfo?: string; invoice?: string; jobNumber?: string; claim?: string; }",
441
406
  "references": {
442
- "ClaimFormPayload": {
443
- "location": "local",
444
- "path": "/home/vsts/work/1/s/ADP.WebComponents/adp-web-components/src/components/vehicle-lookup/vehicle-item-claim-form.tsx",
445
- "id": "src/components/vehicle-lookup/vehicle-item-claim-form.tsx::ClaimFormPayload"
407
+ "SharedLocales": {
408
+ "location": "import",
409
+ "path": "~features/multi-lingual",
410
+ "id": "src/features/multi-lingual/index.ts::SharedLocales"
411
+ },
412
+ "ClaimFormType": {
413
+ "location": "import",
414
+ "path": "~locales/vehicleLookup/claimableItems/type",
415
+ "id": "src/locales/vehicleLookup/claimableItems/type.ts::ClaimFormType"
446
416
  }
447
417
  }
448
418
  },
449
419
  "required": false,
450
- "optional": true,
420
+ "optional": false,
451
421
  "docs": {
452
422
  "tags": [],
453
423
  "text": ""
@@ -455,57 +425,49 @@ export class VehicleItemClaimForm {
455
425
  "getter": false,
456
426
  "setter": false
457
427
  },
458
- "locale": {
428
+ "handleClaiming": {
459
429
  "type": "unknown",
460
- "attribute": "locale",
430
+ "attribute": "handle-claiming",
461
431
  "mutable": false,
462
432
  "complexType": {
463
- "original": "ClaimFormType",
464
- "resolved": "{ document?: string; name?: string; serviceType?: string; documentLimitError?: string; documentRequiredError?: string; activationDate?: string; expireDate?: string; packageCode?: string; scanTheVoucher?: string; qrCode?: string; processing?: string; warning?: string; skipServicesWarning?: string; confirmSkipServices?: string; notInvoiced?: string; confirmNotInvoiced?: string; enterServiceInfo?: string; invoice?: string; jobNumber?: string; claim?: string; }",
433
+ "original": "(payload: ClaimFormPayload) => Promise<void>",
434
+ "resolved": "(payload: ClaimFormPayload) => Promise<void>",
465
435
  "references": {
466
- "ClaimFormType": {
467
- "location": "import",
468
- "path": "~locales/vehicleLookup/claimableItems/type",
469
- "id": "src/locales/vehicleLookup/claimableItems/type.ts::ClaimFormType"
436
+ "ClaimFormPayload": {
437
+ "location": "local",
438
+ "path": "/home/vsts/work/1/s/ADP.WebComponents/adp-web-components/src/components/vehicle-lookup/vehicle-item-claim-form.tsx",
439
+ "id": "src/components/vehicle-lookup/vehicle-item-claim-form.tsx::ClaimFormPayload"
440
+ },
441
+ "Promise": {
442
+ "location": "global",
443
+ "id": "global::Promise"
470
444
  }
471
445
  }
472
446
  },
473
447
  "required": false,
474
- "optional": false,
448
+ "optional": true,
475
449
  "docs": {
476
450
  "tags": [],
477
451
  "text": ""
478
452
  },
479
453
  "getter": false,
480
- "setter": false,
481
- "defaultValue": "claimFormSchema.getDefault()"
454
+ "setter": false
482
455
  }
483
456
  };
484
457
  }
485
458
  static get states() {
486
459
  return {
487
- "claimViaBarcodeScanner": {},
488
- "sharedLocales": {},
489
- "internalVin": {},
490
460
  "uploadProgress": {},
491
- "isLoading": {},
492
461
  "isOpened": {},
493
- "isDocumentError": {},
494
- "selectedFile": {},
495
- "internalItem": {},
496
- "confirmServiceCancellation": {},
497
- "confirmUnInvoicedTBPVehicles": {},
498
- "internalCanceledItem": {},
499
- "documentError": {},
500
- "readyToClaim": {},
501
- "qrCode": {},
502
- "invoice": {},
503
- "job": {}
462
+ "isLoading": {},
463
+ "confirmationStates": {},
464
+ "errors": {},
465
+ "inputs": {}
504
466
  };
505
467
  }
506
468
  static get methods() {
507
469
  return {
508
- "quite": {
470
+ "open": {
509
471
  "complexType": {
510
472
  "signature": "() => Promise<void>",
511
473
  "parameters": [],
@@ -513,6 +475,10 @@ export class VehicleItemClaimForm {
513
475
  "Promise": {
514
476
  "location": "global",
515
477
  "id": "global::Promise"
478
+ },
479
+ "KeyboardEvent": {
480
+ "location": "global",
481
+ "id": "global::KeyboardEvent"
516
482
  }
517
483
  },
518
484
  "return": "Promise<void>"
@@ -522,17 +488,21 @@ export class VehicleItemClaimForm {
522
488
  "tags": []
523
489
  }
524
490
  },
525
- "getQrValue": {
491
+ "close": {
526
492
  "complexType": {
527
- "signature": "() => Promise<string>",
528
- "parameters": [],
493
+ "signature": "(forceClose?: boolean) => Promise<void>",
494
+ "parameters": [{
495
+ "name": "forceClose",
496
+ "type": "boolean",
497
+ "docs": ""
498
+ }],
529
499
  "references": {
530
500
  "Promise": {
531
501
  "location": "global",
532
502
  "id": "global::Promise"
533
503
  }
534
504
  },
535
- "return": "Promise<string>"
505
+ "return": "Promise<void>"
536
506
  },
537
507
  "docs": {
538
508
  "text": "",
@@ -565,26 +535,8 @@ export class VehicleItemClaimForm {
565
535
  static get elementRef() { return "el"; }
566
536
  static get watchers() {
567
537
  return [{
568
- "propName": "language",
569
- "methodName": "changeLanguage"
570
- }, {
571
538
  "propName": "isLoading",
572
539
  "methodName": "onIsLoadingChange"
573
- }, {
574
- "propName": "canceledItems",
575
- "methodName": "changeInternalCanceledItem"
576
- }, {
577
- "propName": "unInvoicedByBrokerName",
578
- "methodName": "changeConfirmUnInvoicedTBPVehicles"
579
- }, {
580
- "propName": "vin",
581
- "methodName": "changeInternalVin"
582
- }, {
583
- "propName": "item",
584
- "methodName": "changeInternalItem"
585
- }, {
586
- "propName": "isOpened",
587
- "methodName": "onOpenChange"
588
540
  }];
589
541
  }
590
542
  }