adp-web-components 0.3.18 → 0.3.19

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 (302) hide show
  1. package/dist/cjs/branch-slot-dropdown_15.cjs.entry.js +31 -31
  2. package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +9 -9
  3. package/dist/cjs/flexible-container.cjs.entry.js +3 -3
  4. package/dist/cjs/form-checkbox.cjs.entry.js +2 -2
  5. package/dist/cjs/form-date-picker.cjs.entry.js +5 -5
  6. package/dist/cjs/form-input_7.cjs.entry.js +17 -17
  7. package/dist/cjs/form-switch.cjs.entry.js +2 -2
  8. package/dist/cjs/form-time-picker.cjs.entry.js +6 -6
  9. package/dist/cjs/{functions-C9XsBzrL.js → functions-DL7oNhTD.js} +1 -1
  10. package/dist/cjs/general-form.cjs.entry.js +4 -4
  11. package/dist/cjs/general-inquiry-form.cjs.entry.js +4 -4
  12. package/dist/cjs/{get-local-language-BnUadlVY.js → get-local-language-BuK1vyX4.js} +1 -1
  13. package/dist/cjs/{get-mock-files-Dr5dpq1N.js → get-mock-files-D0TNQtTV.js} +1 -1
  14. package/dist/cjs/information-table.cjs.entry.js +1 -1
  15. package/dist/cjs/loader.cjs.js +1 -1
  16. package/dist/cjs/loading-spinner.cjs.entry.js +2 -2
  17. package/dist/cjs/manufacturer-part-lookup.cjs.entry.js +3 -3
  18. package/dist/cjs/part-lookup.cjs.entry.js +2 -2
  19. package/dist/cjs/service-booking-form.cjs.entry.js +4 -4
  20. package/dist/cjs/shift-accordion.cjs.entry.js +1 -1
  21. package/dist/cjs/shift-checkbox.cjs.entry.js +1 -1
  22. package/dist/cjs/shift-components.cjs.js +1 -1
  23. package/dist/cjs/shift-slider.cjs.entry.js +2 -2
  24. package/dist/cjs/shift-switch.cjs.entry.js +1 -1
  25. package/dist/cjs/shift-tab-content.cjs.entry.js +2 -2
  26. package/dist/cjs/shift-tabs_2.cjs.entry.js +92 -34
  27. package/dist/cjs/ssc-lookup-form.cjs.entry.js +4 -4
  28. package/dist/cjs/test-drive-form.cjs.entry.js +4 -4
  29. package/dist/cjs/triangle-alert-CTvU1eGY.js +248 -0
  30. package/dist/cjs/vehicle-accessories_8.cjs.entry.js +177 -117
  31. package/dist/cjs/vehicle-lookup.cjs.entry.js +3 -3
  32. package/dist/cjs/vehicle-quotation-form.cjs.entry.js +4 -4
  33. package/dist/collection/components/components/flexible-container.css +1 -1
  34. package/dist/collection/components/components/flexible-container.js +2 -2
  35. package/dist/collection/components/components/information-table.css +1 -1
  36. package/dist/collection/components/components/loading-spinner.css +1 -1
  37. package/dist/collection/components/components/loading-spinner.js +1 -1
  38. package/dist/collection/components/components/shift-accordion.js +1 -1
  39. package/dist/collection/components/components/shift-checkbox.js +1 -1
  40. package/dist/collection/components/components/shift-portal.css +1 -1
  41. package/dist/collection/components/components/shift-select-dropdown.css +1 -1
  42. package/dist/collection/components/components/shift-select-dropdown.js +2 -2
  43. package/dist/collection/components/components/shift-select.css +1 -1
  44. package/dist/collection/components/components/shift-select.js +3 -3
  45. package/dist/collection/components/components/shift-slider.css +1 -1
  46. package/dist/collection/components/components/shift-slider.js +1 -1
  47. package/dist/collection/components/components/shift-switch.js +1 -1
  48. package/dist/collection/components/components/shift-tab-content.css +1 -1
  49. package/dist/collection/components/components/shift-tab-content.js +1 -1
  50. package/dist/collection/components/components/shift-tabs.css +1 -1
  51. package/dist/collection/components/components/shift-tabs.js +2 -2
  52. package/dist/collection/components/form-elements/branch-slot-dropdown.js +1 -1
  53. package/dist/collection/components/form-elements/branch-slot-picker.js +2 -2
  54. package/dist/collection/components/form-elements/form-checkbox.js +1 -1
  55. package/dist/collection/components/form-elements/form-date-picker-legacy.js +4 -4
  56. package/dist/collection/components/form-elements/form-dialog.js +1 -1
  57. package/dist/collection/components/form-elements/form-file.js +2 -2
  58. package/dist/collection/components/form-elements/form-input.js +2 -2
  59. package/dist/collection/components/form-elements/form-inputs.css +1 -1
  60. package/dist/collection/components/form-elements/form-picker-input.js +2 -2
  61. package/dist/collection/components/form-elements/form-shadow-input.js +1 -1
  62. package/dist/collection/components/form-elements/form-stepper-control.js +2 -2
  63. package/dist/collection/components/form-elements/form-stepper-submit.js +2 -2
  64. package/dist/collection/components/form-elements/form-stepper.js +1 -1
  65. package/dist/collection/components/form-elements/form-structure-error.js +1 -1
  66. package/dist/collection/components/form-elements/form-submit.js +2 -2
  67. package/dist/collection/components/form-elements/form-switch.js +1 -1
  68. package/dist/collection/components/form-elements/form-text-area.js +2 -2
  69. package/dist/collection/components/form-elements/form-time-picker-legacy.js +5 -5
  70. package/dist/collection/components/form-elements/form-vin-input.js +2 -2
  71. package/dist/collection/components/forms/general-form.js +2 -2
  72. package/dist/collection/components/forms/general-inquiry.js +2 -2
  73. package/dist/collection/components/forms/service-booking.js +2 -2
  74. package/dist/collection/components/forms/ssc-lookup.js +2 -2
  75. package/dist/collection/components/forms/test-drive.js +2 -2
  76. package/dist/collection/components/forms/vehicle-quotation.js +2 -2
  77. package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -1
  78. package/dist/collection/components/part-lookup/dead-stock-lookup.js +2 -2
  79. package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
  80. package/dist/collection/components/part-lookup/distributor-lookup.js +2 -2
  81. package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
  82. package/dist/collection/components/part-lookup/manufacturer-part-lookup.css +1 -1
  83. package/dist/collection/components/part-lookup/manufacturer-part-lookup.js +1 -1
  84. package/dist/collection/components/part-lookup/part-lookup.css +1 -1
  85. package/dist/collection/components/vehicle-lookup/components/claimable-item-popover.js +37 -29
  86. package/dist/collection/components/vehicle-lookup/components/claimable-trace-modal.js +6 -2
  87. package/dist/collection/components/vehicle-lookup/components/service-history-sub-row.js +3 -3
  88. package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +1 -1
  89. package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +2 -2
  90. package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.css +1 -1
  91. package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +121 -70
  92. package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.css +1 -1
  93. package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.js +89 -29
  94. package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -1
  95. package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.css +1 -1
  96. package/dist/collection/components/vehicle-lookup/vehicle-sale-information.css +1 -1
  97. package/dist/collection/components/vehicle-lookup/vehicle-sale-information.js +2 -2
  98. package/dist/collection/components/vehicle-lookup/vehicle-service-history.css +1 -1
  99. package/dist/collection/components/vehicle-lookup/vehicle-service-history.js +1 -1
  100. package/dist/collection/components/vehicle-lookup/vehicle-specification.css +1 -1
  101. package/dist/collection/components/vehicle-lookup/vehicle-specification.js +1 -1
  102. package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.css +1 -1
  103. package/dist/collection/components/vehicle-lookup/vehicle-warranty-timeline.css +1 -1
  104. package/dist/collection/components/vehicle-lookup/vehicle-warranty-timeline.js +1 -1
  105. package/dist/collection/components/vin-extractor/vin-extractor.js +1 -1
  106. package/dist/collection/global/lib/overlay.js +154 -0
  107. package/dist/collection/templates/assets/adp-wordmark.svg +1 -0
  108. package/dist/collection/templates/harness-theme.js +44 -0
  109. package/dist/collection/templates/harness.js +264 -0
  110. package/dist/components/branch-slot-dropdown.js +1 -1
  111. package/dist/components/branch-slot-picker.js +1 -1
  112. package/dist/components/dead-stock-lookup.js +1 -1
  113. package/dist/components/distributor-lookup.js +1 -1
  114. package/dist/components/flexible-container.js +1 -1
  115. package/dist/components/form-checkbox.js +1 -1
  116. package/dist/components/form-date-picker.js +1 -1
  117. package/dist/components/form-dialog.js +1 -1
  118. package/dist/components/form-file.js +1 -1
  119. package/dist/components/form-input-preview.js +1 -1
  120. package/dist/components/form-input.js +1 -1
  121. package/dist/components/form-phone-number.js +1 -1
  122. package/dist/components/form-picker-input.js +1 -1
  123. package/dist/components/form-select.js +1 -1
  124. package/dist/components/form-shadow-input.js +1 -1
  125. package/dist/components/form-stepper-control.js +1 -1
  126. package/dist/components/form-stepper-submit.js +1 -1
  127. package/dist/components/form-stepper.js +1 -1
  128. package/dist/components/form-structure-error.js +1 -1
  129. package/dist/components/form-structure.js +1 -1
  130. package/dist/components/form-submit.js +1 -1
  131. package/dist/components/form-switch.js +1 -1
  132. package/dist/components/form-text-area.js +1 -1
  133. package/dist/components/form-time-picker.js +1 -1
  134. package/dist/components/form-vin-input.js +1 -1
  135. package/dist/components/general-form.js +1 -1
  136. package/dist/components/general-inquiry-form.js +1 -1
  137. package/dist/components/information-table.js +1 -1
  138. package/dist/components/loading-spinner.js +1 -1
  139. package/dist/components/manufacturer-lookup.js +1 -1
  140. package/dist/components/manufacturer-part-lookup.js +1 -1
  141. package/dist/components/{p-Dseg250d.js → p-1fzw9lBq.js} +1 -1
  142. package/dist/components/{p-BVdlf8rx.js → p-6RmAcc2q.js} +1 -1
  143. package/dist/components/p-7Gq_FyNj.js +5 -0
  144. package/dist/components/p-8jIkK-Kb.js +5 -0
  145. package/dist/components/{p-DG-IgRFW.js → p-B2w49gNR.js} +1 -1
  146. package/dist/components/{p-B0lK-5c_.js → p-B7G2HjX0.js} +1 -1
  147. package/dist/components/{p-BMnQwtNn.js → p-B8hl68AM.js} +1 -1
  148. package/dist/components/{p-TtDq4UV5.js → p-B9xLzbPr.js} +1 -1
  149. package/dist/components/{p-Bs5AIefE.js → p-BKzXBxxc.js} +1 -1
  150. package/dist/components/{p-Cg4l7ICV.js → p-BUepGDZV.js} +1 -1
  151. package/dist/components/{p-Ci6LbIzY.js → p-B__72-PA.js} +1 -1
  152. package/dist/components/{p-DgJ9CCPI.js → p-BaZAgTxG.js} +1 -1
  153. package/dist/components/p-Bb2xDuqh.js +5 -0
  154. package/dist/components/{p-DTdm5I7a.js → p-BbQAkWw4.js} +1 -1
  155. package/dist/components/{p-BmQrqnnJ.js → p-BdPZ7u2w.js} +1 -1
  156. package/dist/components/{p-k8G1hnHC.js → p-Bj3cvdzl.js} +1 -1
  157. package/dist/components/{p-Bb4mauUH.js → p-BvMcY9Sk.js} +1 -1
  158. package/dist/components/p-C-yTwaAA.js +5 -0
  159. package/dist/components/{p-C31A3MHr.js → p-C6U9Fs9H.js} +1 -1
  160. package/dist/components/{p-CNqcMKLv.js → p-C8B9jarP.js} +1 -1
  161. package/dist/components/p-C8S2P4sw.js +5 -0
  162. package/dist/components/{p-B6EgLMus.js → p-CC16uGpN.js} +1 -1
  163. package/dist/components/p-CCounVqq.js +5 -0
  164. package/dist/components/{p-Dhi7g1w3.js → p-CIPh05sT.js} +1 -1
  165. package/dist/components/{p-CCuYl9VQ.js → p-CKwgX_v0.js} +1 -1
  166. package/dist/components/{p-Be01Kv65.js → p-CL5G_ZDE.js} +1 -1
  167. package/dist/components/{p-C2trAVtF.js → p-CPBmhspv.js} +1 -1
  168. package/dist/components/p-ClT5CzCZ.js +5 -0
  169. package/dist/components/{p-gzdpekMI.js → p-Cm94OAx9.js} +1 -1
  170. package/dist/components/{p-l738xIxs.js → p-CwbJMZVZ.js} +1 -1
  171. package/dist/components/{p-oZMLGlUq.js → p-D7Sj02XY.js} +1 -1
  172. package/dist/components/{p-BogCz_yJ.js → p-DWjIts4C.js} +1 -1
  173. package/dist/components/p-DbnN292R.js +5 -0
  174. package/dist/components/{p-D9pKibY5.js → p-DcMgXNpe.js} +1 -1
  175. package/dist/components/{p-B_jDD5xI.js → p-Dd_Xnn2b.js} +1 -1
  176. package/dist/components/{p-CuTemmgW.js → p-DeipsN8N.js} +1 -1
  177. package/dist/components/{p-Bl_BMBad.js → p-DkagL-e-.js} +1 -1
  178. package/dist/components/{p-DlqfD7uh.js → p-DpXLfNHS.js} +1 -1
  179. package/dist/components/{p-BiaT4YFg.js → p-Dsk1SNut.js} +1 -1
  180. package/dist/components/{p-uPiGNvhQ.js → p-DtZM3yHS.js} +1 -1
  181. package/dist/components/p-G7teNuSi.js +5 -0
  182. package/dist/components/{p-Ci6k5mSb.js → p-LkNhSGDO.js} +1 -1
  183. package/dist/components/{p-B0tcNl8W.js → p-Qh1y1RV2.js} +1 -1
  184. package/dist/components/{p-DcB3e3j1.js → p-R_rAJ4hF.js} +1 -1
  185. package/dist/components/p-_apNp6J3.js +5 -0
  186. package/dist/components/{p-D7wRHBb3.js → p-l2FHTMzv.js} +1 -1
  187. package/dist/components/part-lookup.js +1 -1
  188. package/dist/components/service-booking-form.js +1 -1
  189. package/dist/components/shift-accordion.js +1 -1
  190. package/dist/components/shift-checkbox.js +1 -1
  191. package/dist/components/shift-portal.js +1 -1
  192. package/dist/components/shift-select-dropdown.js +1 -1
  193. package/dist/components/shift-select.js +1 -1
  194. package/dist/components/shift-slider.js +1 -1
  195. package/dist/components/shift-switch.js +1 -1
  196. package/dist/components/shift-tab-content.js +1 -1
  197. package/dist/components/shift-tabs.js +1 -1
  198. package/dist/components/ssc-lookup-form.js +1 -1
  199. package/dist/components/test-drive-form.js +1 -1
  200. package/dist/components/vehicle-accessories.js +1 -1
  201. package/dist/components/vehicle-claimable-items.js +1 -1
  202. package/dist/components/vehicle-item-claim-form.js +1 -1
  203. package/dist/components/vehicle-lookup.js +1 -1
  204. package/dist/components/vehicle-paint-thickness.js +1 -1
  205. package/dist/components/vehicle-quotation-form.js +1 -1
  206. package/dist/components/vehicle-sale-information.js +1 -1
  207. package/dist/components/vehicle-service-history.js +1 -1
  208. package/dist/components/vehicle-specification.js +1 -1
  209. package/dist/components/vehicle-warranty-details.js +1 -1
  210. package/dist/components/vehicle-warranty-timeline.js +1 -1
  211. package/dist/components/vin-extractor.js +1 -1
  212. package/dist/esm/branch-slot-dropdown_15.entry.js +31 -31
  213. package/dist/esm/dead-stock-lookup_3.entry.js +9 -9
  214. package/dist/esm/flexible-container.entry.js +3 -3
  215. package/dist/esm/form-checkbox.entry.js +2 -2
  216. package/dist/esm/form-date-picker.entry.js +5 -5
  217. package/dist/esm/form-input_7.entry.js +17 -17
  218. package/dist/esm/form-switch.entry.js +2 -2
  219. package/dist/esm/form-time-picker.entry.js +6 -6
  220. package/dist/esm/{functions-COLiDjnd.js → functions-Ccrile_u.js} +1 -1
  221. package/dist/esm/general-form.entry.js +4 -4
  222. package/dist/esm/general-inquiry-form.entry.js +4 -4
  223. package/dist/esm/{get-local-language-CACck9dv.js → get-local-language-oNw84Rsz.js} +1 -1
  224. package/dist/esm/{get-mock-files-BEIYZlS_.js → get-mock-files-C26lznN1.js} +1 -1
  225. package/dist/esm/information-table.entry.js +1 -1
  226. package/dist/esm/loader.js +1 -1
  227. package/dist/esm/loading-spinner.entry.js +2 -2
  228. package/dist/esm/manufacturer-part-lookup.entry.js +3 -3
  229. package/dist/esm/part-lookup.entry.js +2 -2
  230. package/dist/esm/service-booking-form.entry.js +4 -4
  231. package/dist/esm/shift-accordion.entry.js +1 -1
  232. package/dist/esm/shift-checkbox.entry.js +1 -1
  233. package/dist/esm/shift-components.js +1 -1
  234. package/dist/esm/shift-slider.entry.js +2 -2
  235. package/dist/esm/shift-switch.entry.js +1 -1
  236. package/dist/esm/shift-tab-content.entry.js +2 -2
  237. package/dist/esm/shift-tabs_2.entry.js +92 -34
  238. package/dist/esm/ssc-lookup-form.entry.js +4 -4
  239. package/dist/esm/test-drive-form.entry.js +4 -4
  240. package/dist/esm/triangle-alert-BlnfPzWh.js +237 -0
  241. package/dist/esm/vehicle-accessories_8.entry.js +177 -117
  242. package/dist/esm/vehicle-lookup.entry.js +3 -3
  243. package/dist/esm/vehicle-quotation-form.entry.js +4 -4
  244. package/dist/integration-manifest.json +1 -1
  245. package/dist/locales/vehicleLookup/serviceHistory/en.json +2 -2
  246. package/dist/shift-components/{p-65aad39b.entry.js → p-09a0fd99.entry.js} +1 -1
  247. package/dist/shift-components/{p-6263bc0c.entry.js → p-0da97a29.entry.js} +1 -1
  248. package/dist/shift-components/{p-782fe0e1.entry.js → p-12e295ba.entry.js} +1 -1
  249. package/dist/shift-components/{p-48a9feb9.entry.js → p-1355934b.entry.js} +1 -1
  250. package/dist/shift-components/{p-e7a99998.entry.js → p-138af7f3.entry.js} +1 -1
  251. package/dist/shift-components/{p-bb172fc4.entry.js → p-30e84a3b.entry.js} +1 -1
  252. package/dist/shift-components/{p-829f24b9.entry.js → p-31718ec2.entry.js} +1 -1
  253. package/dist/shift-components/p-323ffb6e.entry.js +5 -0
  254. package/dist/shift-components/{p-c66b18c9.entry.js → p-327fddd8.entry.js} +1 -1
  255. package/dist/shift-components/p-34e9053b.entry.js +5 -0
  256. package/dist/shift-components/{p-a0d13479.entry.js → p-3aad8840.entry.js} +1 -1
  257. package/dist/shift-components/{p-cfcfdb20.entry.js → p-53cd54e8.entry.js} +1 -1
  258. package/dist/shift-components/{p-ec2a7d65.entry.js → p-63713eae.entry.js} +1 -1
  259. package/dist/shift-components/{p-fdf94f65.entry.js → p-68722c7b.entry.js} +1 -1
  260. package/dist/shift-components/{p-c4cf0a18.entry.js → p-729d8d4b.entry.js} +1 -1
  261. package/dist/shift-components/p-8374f629.entry.js +5 -0
  262. package/dist/shift-components/p-9b13a82b.entry.js +5 -0
  263. package/dist/shift-components/p-BkVfhjgg.js +5 -0
  264. package/dist/shift-components/{p-jmNTa9tM.js → p-BugYpTL6.js} +1 -1
  265. package/dist/shift-components/{p-f2b86186.entry.js → p-a15fdf1e.entry.js} +1 -1
  266. package/dist/shift-components/{p-D0Md1Xf7.js → p-awXOnuq1.js} +1 -1
  267. package/dist/shift-components/p-c25a6c0d.entry.js +5 -0
  268. package/dist/shift-components/{p-b1270d98.entry.js → p-c9ba7fd5.entry.js} +1 -1
  269. package/dist/shift-components/{p-537507ee.entry.js → p-d58404bd.entry.js} +1 -1
  270. package/dist/shift-components/{p-1923fdb9.entry.js → p-d59276b6.entry.js} +1 -1
  271. package/dist/shift-components/p-dacdff2a.entry.js +5 -0
  272. package/dist/shift-components/{p-853f1b8b.entry.js → p-e90c354a.entry.js} +1 -1
  273. package/dist/shift-components/{p-ac91d4ce.entry.js → p-eb265a3e.entry.js} +1 -1
  274. package/dist/shift-components/{p-b2048d87.entry.js → p-f2a546db.entry.js} +1 -1
  275. package/dist/shift-components/{p--JyU3LyU.js → p-urLq-GEs.js} +1 -1
  276. package/dist/shift-components/shift-components.esm.js +1 -1
  277. package/dist/stencil-docs.json +1 -1
  278. package/dist/types/components/vehicle-lookup/components/claimable-item-popover.d.ts +10 -1
  279. package/dist/types/components/vehicle-lookup/components/claimable-trace-modal.d.ts +3 -0
  280. package/dist/types/components/vehicle-lookup/vehicle-claimable-items.d.ts +14 -4
  281. package/dist/types/components/vehicle-lookup/vehicle-item-claim-form.d.ts +23 -3
  282. package/dist/types/global/lib/overlay.d.ts +61 -0
  283. package/package.json +10 -3
  284. package/dist/cjs/triangle-alert-BjQBwsRv.js +0 -92
  285. package/dist/components/p-BQHywBX6.js +0 -5
  286. package/dist/components/p-BUczNscD.js +0 -5
  287. package/dist/components/p-BvFDjUZZ.js +0 -5
  288. package/dist/components/p-CZWmJ1vV.js +0 -5
  289. package/dist/components/p-D0oXezbg.js +0 -5
  290. package/dist/components/p-DBKG_o1-.js +0 -5
  291. package/dist/components/p-Dlm9wHfQ.js +0 -5
  292. package/dist/components/p-DsMy6H9e.js +0 -5
  293. package/dist/components/p-EVz84xxv.js +0 -5
  294. package/dist/components/p-SnXklPq9.js +0 -5
  295. package/dist/esm/triangle-alert-Brtqhx2d.js +0 -86
  296. package/dist/shift-components/p-34dffc00.entry.js +0 -5
  297. package/dist/shift-components/p-6fa1121c.entry.js +0 -5
  298. package/dist/shift-components/p-9a6450f6.entry.js +0 -5
  299. package/dist/shift-components/p-B9kqtQjS.js +0 -5
  300. package/dist/shift-components/p-a91ed0fc.entry.js +0 -5
  301. package/dist/shift-components/p-c9a7e5ab.entry.js +0 -5
  302. package/dist/shift-components/p-fa7a961c.entry.js +0 -5
@@ -0,0 +1,248 @@
1
+ /*!
2
+ * Built by ShiftSoftware
3
+ * Copyright (c)
4
+ */
5
+ 'use strict';
6
+
7
+ var index = require('./index-BdHAYIvO.js');
8
+ var cn = require('./cn-BHnqYtun.js');
9
+
10
+ const eyeSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IndoaXRlIgogICAgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWV5ZSI+CiAgICA8cGF0aCBkPSJNMi4wNjIgMTIuMzQ4YTEgMSAwIDAgMSAwLS42OTYgMTAuNzUgMTAuNzUgMCAwIDEgMTkuODc2IDAgMSAxIDAgMCAxIDAgLjY5NiAxMC43NSAxMC43NSAwIDAgMS0xOS44NzYgMCIgLz4KICAgIDxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjMiIC8+Cjwvc3ZnPg==';
11
+
12
+ const ImageViewer = ({ expandedImage, style = {}, imageStyle = {}, closeImageViewer }) => {
13
+ return (index.h("div", null, index.h("div", { onClick: closeImageViewer, class: cn.cn('image-viewer-overlay', { active: expandedImage }), style: Object.assign({ backdropFilter: expandedImage ? 'blur(3px)' : 'blur(0px)' }, style) }, index.h("button", { class: "image-viewer-close-btn" }, index.h("div", { class: "image-viewer-close-line first" }), index.h("div", { class: "image-viewer-close-line second" }))), index.h("img", { style: imageStyle, alt: "", class: "image-viewer-expanded-image" })));
14
+ };
15
+
16
+ let closeImageListener;
17
+ function openImageViewer(target, imageSrc) {
18
+ if (this.expandedImage === imageSrc)
19
+ return;
20
+ this.originalImage = target;
21
+ const expandedImageRef = this.el.shadowRoot.querySelector('.image-viewer-expanded-image');
22
+ expandedImageRef.src = target.src;
23
+ document.removeEventListener('keydown', closeImageListener);
24
+ closeImageListener = () => closeImageViewer.bind(this)();
25
+ document.addEventListener('keydown', closeImageListener);
26
+ const rect = target.getBoundingClientRect();
27
+ document.body.style.overflow = 'hidden';
28
+ Object.assign(expandedImageRef.style, {
29
+ top: `${rect.top}px`,
30
+ pointerEvents: 'auto',
31
+ left: `${rect.left}px`,
32
+ transitionDuration: '0s',
33
+ width: `${rect.width}px`,
34
+ height: `${rect.height}px`,
35
+ });
36
+ setTimeout(() => {
37
+ const naturalWidth = target.naturalWidth;
38
+ const naturalHeight = target.naturalHeight;
39
+ const maxWidth = window.innerWidth - 160;
40
+ const maxHeight = window.innerHeight - 32;
41
+ const aspectRatio = naturalWidth / naturalHeight;
42
+ let width, height;
43
+ if (maxWidth / aspectRatio <= maxHeight) {
44
+ width = maxWidth;
45
+ height = maxWidth / aspectRatio;
46
+ }
47
+ else {
48
+ height = maxHeight;
49
+ width = maxHeight * aspectRatio;
50
+ }
51
+ expandedImageRef.style.transitionDuration = '0.3s';
52
+ Object.assign(expandedImageRef.style, {
53
+ opacity: '1',
54
+ width: `${width}px`,
55
+ height: `${height}px`,
56
+ top: `${(window.innerHeight - height) / 2}px`,
57
+ left: `${(window.innerWidth - width) / 2}px`,
58
+ });
59
+ this.expandedImage = imageSrc;
60
+ }, 200);
61
+ }
62
+ function closeImageViewer(event) {
63
+ event === null || event === void 0 ? void 0 : event.preventDefault();
64
+ if (event && event.key !== 'Escape')
65
+ return;
66
+ document.removeEventListener('keydown', closeImageListener);
67
+ const expandedImageRef = this.el.shadowRoot.querySelector('.image-viewer-expanded-image');
68
+ const rect = this.originalImage.getBoundingClientRect();
69
+ Object.assign(expandedImageRef.style, {
70
+ top: `${rect.top}px`,
71
+ pointerEvents: 'none',
72
+ left: `${rect.left}px`,
73
+ width: `${rect.width}px`,
74
+ height: `${rect.height}px`,
75
+ transitionDuration: '0.3s',
76
+ });
77
+ setTimeout(() => {
78
+ expandedImageRef.src = '';
79
+ expandedImageRef.style.opacity = '0';
80
+ expandedImageRef.style.transitionDuration = '0s';
81
+ }, 300);
82
+ document.body.style.overflow = '';
83
+ this.expandedImage = null;
84
+ }
85
+
86
+ /**
87
+ * Getting an overlay out of whatever container the host page put this component in.
88
+ *
89
+ * These components are published to unknown hosts, so an overlay can end up nested in an animated
90
+ * modal, a slide-up footer, an accordion mid-transition or a virtualised list. Any ancestor with a
91
+ * `transform`, `filter`, `backdrop-filter`, `perspective`, `contain` or a `will-change` naming one
92
+ * of them becomes the containing block for `position: fixed`, and the overlay is laid out and
93
+ * clipped inside that ancestor instead of against the viewport.
94
+ *
95
+ * The browser's top layer is the only way out that does not move the element: it paints above every
96
+ * stacking context, is clipped by no ancestor, and ignores caging ancestors entirely — while the
97
+ * element stays in its shadow root, so scoped styles, refs and measurements keep working.
98
+ *
99
+ * The two flavours are not interchangeable:
100
+ *
101
+ * - `modal` (dialog.showModal) inerts the rest of the page. Right for a claim form, fatal for a
102
+ * hover card — it would make every other card unhoverable.
103
+ * - `popover` (popover="manual" + showPopover) is non-modal, so the page stays interactive.
104
+ *
105
+ * Promotion is not free: the top layer cannot be overridden by a host's z-index, so a host can no
106
+ * longer place its own toast or nav above us. A modal should outrank those anyway, so it always
107
+ * promotes. A hover card should not, so it promotes only when staying put would actually clip it.
108
+ */
109
+ var _a, _b;
110
+ const cagingWillChange = /\b(transform|perspective|filter|backdrop-filter|contain)\b/;
111
+ const cagingContain = /\b(paint|layout|strict|content)\b/;
112
+ const isCagingStyle = (style) => {
113
+ if (!style)
114
+ return false;
115
+ if (style.transform && style.transform !== 'none')
116
+ return true;
117
+ if (style.perspective && style.perspective !== 'none')
118
+ return true;
119
+ if (style.filter && style.filter !== 'none')
120
+ return true;
121
+ const backdropFilter = style.backdropFilter || style.webkitBackdropFilter;
122
+ if (backdropFilter && backdropFilter !== 'none')
123
+ return true;
124
+ if (style.contain && cagingContain.test(style.contain))
125
+ return true;
126
+ if (style.willChange && cagingWillChange.test(style.willChange))
127
+ return true;
128
+ return false;
129
+ };
130
+ /**
131
+ * Walks up from the element, stepping out of every shadow root on the way, looking for an ancestor
132
+ * that would become the containing block for a `position: fixed` child.
133
+ */
134
+ const isCaged = (element) => {
135
+ var _a, _b;
136
+ if (!element || typeof getComputedStyle !== 'function')
137
+ return false;
138
+ let current = element.parentElement;
139
+ let root = (_a = element.getRootNode) === null || _a === void 0 ? void 0 : _a.call(element);
140
+ while (true) {
141
+ if (!current) {
142
+ // Out of parents: hop through the shadow boundary and keep going up the host's tree.
143
+ if (!(root instanceof ShadowRoot))
144
+ return false;
145
+ current = root.host;
146
+ root = (_b = current === null || current === void 0 ? void 0 : current.getRootNode) === null || _b === void 0 ? void 0 : _b.call(current);
147
+ if (!current)
148
+ return false;
149
+ }
150
+ if (isCagingStyle(getComputedStyle(current)))
151
+ return true;
152
+ current = current.parentElement;
153
+ }
154
+ };
155
+ const supportsModalDialog = typeof HTMLDialogElement !== 'undefined' && typeof ((_a = HTMLDialogElement.prototype) === null || _a === void 0 ? void 0 : _a.showModal) === 'function';
156
+ const supportsPopover = typeof HTMLElement !== 'undefined' && typeof ((_b = HTMLElement.prototype) === null || _b === void 0 ? void 0 : _b.showPopover) === 'function';
157
+ /**
158
+ * Shows a modal overlay in the top layer, falling back to the `open` attribute where <dialog> is
159
+ * unimplemented — WebKit only shipped it in 15.4, which on iOS means Safari, every WKWebView and
160
+ * every installed PWA on the device. There the overlay renders in place exactly as it did before
161
+ * the top layer existed: correct, just clippable.
162
+ *
163
+ * Returns whether the top layer was actually used, so callers can supply what it would have given
164
+ * them for free (page inerting, Escape) on the path where it did not.
165
+ */
166
+ const openModalOverlay = (dialog) => {
167
+ if (!dialog || dialog.open)
168
+ return supportsModalDialog;
169
+ if (supportsModalDialog) {
170
+ dialog.showModal();
171
+ return true;
172
+ }
173
+ dialog.setAttribute('open', '');
174
+ return false;
175
+ };
176
+ const closeModalOverlay = (dialog) => {
177
+ if (!dialog)
178
+ return;
179
+ if (supportsModalDialog && dialog.open)
180
+ dialog.close();
181
+ else
182
+ dialog.removeAttribute('open');
183
+ };
184
+ /**
185
+ * Promotes a non-modal overlay, but only when an ancestor would otherwise cage it — so in the
186
+ * ordinary case the host keeps the ability to stack its own UI above ours.
187
+ *
188
+ * The `popover` attribute is added here rather than in markup on purpose: it carries
189
+ * `[popover]:not(:popover-open) { display: none }`, which would hide an overlay that never gets
190
+ * promoted, and a set of UA box styles that only need overriding while it is applied.
191
+ */
192
+ const promoteOverlayIfCaged = (element) => {
193
+ if (!element || !supportsPopover || element.hasAttribute('popover'))
194
+ return false;
195
+ if (!isCaged(element))
196
+ return false;
197
+ element.setAttribute('popover', 'manual');
198
+ try {
199
+ element.showPopover();
200
+ return true;
201
+ }
202
+ catch (_a) {
203
+ // Not connected, or already shown by something else — leave it laid out normally.
204
+ element.removeAttribute('popover');
205
+ return false;
206
+ }
207
+ };
208
+ const demoteOverlay = (element) => {
209
+ if (!element || !element.hasAttribute('popover'))
210
+ return;
211
+ try {
212
+ element.hidePopover();
213
+ }
214
+ catch (_a) {
215
+ /* already hidden */
216
+ }
217
+ element.removeAttribute('popover');
218
+ };
219
+ /**
220
+ * Escape handling for the fallback path only. A modal dialog reports Escape as a `cancel` event;
221
+ * without `showModal` there is no such event, so the key has to be watched directly.
222
+ *
223
+ * Capture, deliberately: an overlay that stacks something of its own on top (the claim form's image
224
+ * viewer) listens on `document`, and a bubble-phase listener on `window` would run *after* that one
225
+ * had already dismissed it and cleared the state this handler checks — closing both at once.
226
+ * Capture at `window` runs first, so the inner overlay still owns the key.
227
+ */
228
+ const bindEscapeFallback = (handler) => {
229
+ const listener = (event) => {
230
+ if (event.key === 'Escape')
231
+ handler(event);
232
+ };
233
+ window.addEventListener('keydown', listener, true);
234
+ return () => window.removeEventListener('keydown', listener, true);
235
+ };
236
+
237
+ const TriangleAlertIcon = props => (index.h("svg", Object.assign({ fill: "none" }, props, { "stroke-width": "2", viewBox: "0 0 24 24", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", xmlns: "http://www.w3.org/2000/svg" }), index.h("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }), index.h("path", { d: "M12 9v4" }), index.h("path", { d: "M12 17h.01" })));
238
+
239
+ exports.ImageViewer = ImageViewer;
240
+ exports.TriangleAlertIcon = TriangleAlertIcon;
241
+ exports.bindEscapeFallback = bindEscapeFallback;
242
+ exports.closeImageViewer = closeImageViewer;
243
+ exports.closeModalOverlay = closeModalOverlay;
244
+ exports.demoteOverlay = demoteOverlay;
245
+ exports.eyeSvg = eyeSvg;
246
+ exports.openImageViewer = openImageViewer;
247
+ exports.openModalOverlay = openModalOverlay;
248
+ exports.promoteOverlayIfCaged = promoteOverlayIfCaged;