@flarehr/apollo-benefits 1.2.97 → 1.3.52

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 (375) hide show
  1. package/README.md +19 -0
  2. package/dist/assets/@splitsoftware-3446d8d5.js +18 -0
  3. package/dist/assets/all_tab_color-548783b9.svg +21 -0
  4. package/dist/assets/all_tab_gray-a5051313.svg +6 -0
  5. package/dist/assets/check-57fe1dcb.svg +15 -0
  6. package/dist/assets/datadog-2dfc069e.js +5 -0
  7. package/dist/assets/date-fns-cebe152d.js +1 -0
  8. package/dist/assets/default_backdrop-fdd955b8.png +0 -0
  9. package/dist/assets/external_link-599a0aec.svg +3 -0
  10. package/dist/assets/framer-motion-a9ae3803.js +1 -0
  11. package/dist/assets/index-3f57257b.js +35 -0
  12. package/dist/assets/index-9148df21.js +5 -0
  13. package/dist/assets/index-ed3c23ba.css +1 -0
  14. package/dist/assets/lodash-5d893f8c.js +1 -0
  15. package/dist/assets/logo-a34e9b4b.png +0 -0
  16. package/dist/assets/oidc-client-6f6e47c2.js +101 -0
  17. package/dist/assets/padlock-8c081120.svg +26 -0
  18. package/dist/assets/suitcase-6471ad05.svg +17 -0
  19. package/dist/assets/vendor-00105f87.js +792 -0
  20. package/dist/assets/warning-a7f1af23.svg +14 -0
  21. package/dist/assets/welcome_image_mobile-dbde6c80.png +0 -0
  22. package/dist/assets/welcome_image_v2-869c59e4.png +0 -0
  23. package/dist/assets/wellbeing_banner-6903d615.png +0 -0
  24. package/dist/assets/workplace_link_banner_mobile-6ebaa24b.png +0 -0
  25. package/dist/assets/workplace_link_banner_v2-c81ed849.png +0 -0
  26. package/dist/config.json +14 -0
  27. package/dist/favicon.ico +0 -0
  28. package/dist/icons/android-chrome-192x192.png +0 -0
  29. package/dist/icons/android-chrome-512x512.png +0 -0
  30. package/dist/icons/apple-touch-icon.png +0 -0
  31. package/dist/icons/favicon-16x16.png +0 -0
  32. package/dist/icons/favicon-32x32.png +0 -0
  33. package/dist/index.html +115 -0
  34. package/dist/manifest.json +21 -0
  35. package/dist/sw-esm.js +16 -0
  36. package/package.json +127 -69
  37. package/LICENSE +0 -21
  38. package/dist/lib/apollo-benefits/apollo-benefits.esm.js +0 -1
  39. package/dist/lib/apollo-benefits/assets/Hero_Background.png +0 -0
  40. package/dist/lib/apollo-benefits/assets/car-placeholder.svg +0 -5
  41. package/dist/lib/apollo-benefits/assets/check.svg +0 -13
  42. package/dist/lib/apollo-benefits/common-assets/icon-info.svg +0 -4
  43. package/dist/lib/apollo-benefits/index.esm.js +0 -0
  44. package/dist/lib/apollo-benefits/p-054d1471.js +0 -1
  45. package/dist/lib/apollo-benefits/p-066d8e7b.js +0 -15
  46. package/dist/lib/apollo-benefits/p-08376428.entry.js +0 -1
  47. package/dist/lib/apollo-benefits/p-1d7ab1b9.entry.js +0 -1
  48. package/dist/lib/apollo-benefits/p-25a89275.entry.js +0 -1
  49. package/dist/lib/apollo-benefits/p-26d363c9.entry.js +0 -1
  50. package/dist/lib/apollo-benefits/p-337ce3df.js +0 -1
  51. package/dist/lib/apollo-benefits/p-3dc9a379.js +0 -1
  52. package/dist/lib/apollo-benefits/p-4376366b.js +0 -46
  53. package/dist/lib/apollo-benefits/p-4e2d34f4.entry.js +0 -1
  54. package/dist/lib/apollo-benefits/p-50bbf713.js +0 -1
  55. package/dist/lib/apollo-benefits/p-53c5e861.entry.js +0 -1
  56. package/dist/lib/apollo-benefits/p-556fdb43.js +0 -1
  57. package/dist/lib/apollo-benefits/p-57d4702d.entry.js +0 -1
  58. package/dist/lib/apollo-benefits/p-58ee670f.js +0 -1
  59. package/dist/lib/apollo-benefits/p-6a54654f.entry.js +0 -11
  60. package/dist/lib/apollo-benefits/p-6bd33850.js +0 -1
  61. package/dist/lib/apollo-benefits/p-79c3b633.entry.js +0 -1
  62. package/dist/lib/apollo-benefits/p-7f3a2f3b.entry.js +0 -1
  63. package/dist/lib/apollo-benefits/p-82d42c2b.js +0 -1
  64. package/dist/lib/apollo-benefits/p-9b3e978e.js +0 -1
  65. package/dist/lib/apollo-benefits/p-a1dd0cba.entry.js +0 -1
  66. package/dist/lib/apollo-benefits/p-aa379cfe.entry.js +0 -1
  67. package/dist/lib/apollo-benefits/p-aaf0e527.entry.js +0 -1
  68. package/dist/lib/apollo-benefits/p-b0b9425b.js +0 -1
  69. package/dist/lib/apollo-benefits/p-d0ef83f8.entry.js +0 -1
  70. package/dist/lib/apollo-benefits/p-db4a65f0.entry.js +0 -1
  71. package/dist/lib/apollo-benefits/p-dc67f942.entry.js +0 -1
  72. package/dist/lib/apollo-benefits/p-e1fd79bb.entry.js +0 -1
  73. package/dist/lib/apollo-benefits/p-ea120e31.js +0 -1
  74. package/dist/lib/apollo-benefits/p-ef5f33ca.js +0 -1
  75. package/dist/lib/apollo-benefits/p-f5254031.js +0 -1
  76. package/dist/lib/apollo-benefits/p-f63d9d89.js +0 -1
  77. package/dist/lib/apollo-benefits/p-fcfa5255.entry.js +0 -1
  78. package/dist/lib/cjs/Option-98dab0b8.js +0 -1988
  79. package/dist/lib/cjs/active-router-90429847.js +0 -75
  80. package/dist/lib/cjs/ap-ben-asset_5.cjs.entry.js +0 -1856
  81. package/dist/lib/cjs/ap-ben-benefit-card.cjs.entry.js +0 -45
  82. package/dist/lib/cjs/ap-ben-benefit-list-item.cjs.entry.js +0 -56
  83. package/dist/lib/cjs/ap-ben-benefit-url_27.cjs.entry.js +0 -48767
  84. package/dist/lib/cjs/ap-ben-benefits-list_3.cjs.entry.js +0 -55
  85. package/dist/lib/cjs/ap-ben-benefits-page.cjs.entry.js +0 -55
  86. package/dist/lib/cjs/ap-ben-choose-vehicle-section_4.cjs.entry.js +0 -2779
  87. package/dist/lib/cjs/ap-ben-notifications-section.cjs.entry.js +0 -243
  88. package/dist/lib/cjs/ap-ben-oidc-callback-page.cjs.entry.js +0 -40
  89. package/dist/lib/cjs/apollo-benefits.cjs.js +0 -25
  90. package/dist/lib/cjs/app-globals-e04ab04b.js +0 -12
  91. package/dist/lib/cjs/authentication.service-11c30071.js +0 -237
  92. package/dist/lib/cjs/benefits.api-b46ee2ea.js +0 -35
  93. package/dist/lib/cjs/cars-calculator-app.cjs.entry.js +0 -60
  94. package/dist/lib/cjs/cars-calculator.service-a8beab79.js +0 -166
  95. package/dist/lib/cjs/context-consumer.cjs.entry.js +0 -29
  96. package/dist/lib/cjs/datorama-akita-792b4d1d.js +0 -2553
  97. package/dist/lib/cjs/delay-e91dba76.js +0 -206
  98. package/dist/lib/cjs/event-tracking.service-6f723d9c.js +0 -155
  99. package/dist/lib/cjs/event-tracking.service-d6f9a51c.js +0 -259
  100. package/dist/lib/cjs/filter-c38164e6.js +0 -378
  101. package/dist/lib/cjs/fl-dropdown-async.cjs.entry.js +0 -422
  102. package/dist/lib/cjs/fl-dropdown.cjs.entry.js +0 -232
  103. package/dist/lib/cjs/fl-style-guide.cjs.entry.js +0 -91
  104. package/dist/lib/cjs/index-4f00f593.js +0 -994
  105. package/dist/lib/cjs/index-6e643fec.js +0 -1734
  106. package/dist/lib/cjs/index-889ce6c6.js +0 -27
  107. package/dist/lib/cjs/index.cjs.js +0 -2
  108. package/dist/lib/cjs/loader.cjs.js +0 -27
  109. package/dist/lib/cjs/scheduleArray-0ba3d6f8.js +0 -753
  110. package/dist/lib/cjs/stencil-async-content.cjs.entry.js +0 -32
  111. package/dist/lib/cjs/stencil-route-title.cjs.entry.js +0 -32
  112. package/dist/lib/cjs/stencil-router-prompt.cjs.entry.js +0 -59
  113. package/dist/lib/cjs/stencil-router-redirect.cjs.entry.js +0 -32
  114. package/dist/lib/cjs/view.service-ec43dea6.js +0 -21
  115. package/dist/lib/collection/assets/image/complete.svg +0 -122
  116. package/dist/lib/collection/collection-manifest.json +0 -81
  117. package/dist/lib/collection/components/benefits-app/apis/api-client.js +0 -16
  118. package/dist/lib/collection/components/benefits-app/apis/benefits-api/benefits-api.dto.js +0 -16
  119. package/dist/lib/collection/components/benefits-app/apis/benefits-api/benefits.api.js +0 -30
  120. package/dist/lib/collection/components/benefits-app/apis/event-tracking-api/event-tracking-api.dto.js +0 -1
  121. package/dist/lib/collection/components/benefits-app/apis/event-tracking-api/event-tracking-api.js +0 -7
  122. package/dist/lib/collection/components/benefits-app/apis/user-api/user-api.dto.js +0 -8
  123. package/dist/lib/collection/components/benefits-app/apis/user-api/user.api.js +0 -16
  124. package/dist/lib/collection/components/benefits-app/benefits-app.css +0 -399
  125. package/dist/lib/collection/components/benefits-app/benefits-app.js +0 -216
  126. package/dist/lib/collection/components/benefits-app/pages/benefits-page/benefits-list/benefit-list-item.css +0 -23
  127. package/dist/lib/collection/components/benefits-app/pages/benefits-page/benefits-list/benefits-list-item.js +0 -80
  128. package/dist/lib/collection/components/benefits-app/pages/benefits-page/benefits-list/benefits-list.js +0 -32
  129. package/dist/lib/collection/components/benefits-app/pages/benefits-page/benefits-page.js +0 -47
  130. package/dist/lib/collection/components/benefits-app/pages/benefits-page/hero-banner/assets/Hero_Background.png +0 -0
  131. package/dist/lib/collection/components/benefits-app/pages/benefits-page/hero-banner/hero-banner.css +0 -8
  132. package/dist/lib/collection/components/benefits-app/pages/benefits-page/hero-banner/hero-banner.js +0 -53
  133. package/dist/lib/collection/components/benefits-app/pages/benefits-page/promoted-benefits/benefit-card.css +0 -3
  134. package/dist/lib/collection/components/benefits-app/pages/benefits-page/promoted-benefits/benefit-card.js +0 -62
  135. package/dist/lib/collection/components/benefits-app/pages/benefits-page/promoted-benefits/promoted-benefits.js +0 -33
  136. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/api/manage-benefits-api.dto.js +0 -36
  137. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/api/manage-benefits.api.js +0 -23
  138. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/confirm-dialog.js +0 -158
  139. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/benefit-url.css +0 -8
  140. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/benefit-url.js +0 -126
  141. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/edit-benefit-form.js +0 -138
  142. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/upload-benefit-icon.css +0 -24
  143. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/upload-benefit-icon.js +0 -102
  144. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/upload-file.css +0 -18
  145. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/upload-file.js +0 -120
  146. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-page.js +0 -154
  147. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit.query.js +0 -18
  148. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit.service.js +0 -155
  149. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/empty-benefits.js +0 -36
  150. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/manage-benefits-header-row.js +0 -13
  151. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/manage-benefits-page.css +0 -3
  152. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/manage-benefits-page.js +0 -88
  153. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/manage-benefits-page.routes.js +0 -24
  154. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/manage-benefits.service.js +0 -37
  155. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/managed-benefit-item/managed-benefit-item.css +0 -10
  156. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/managed-benefit-item/managed-benefit-item.js +0 -89
  157. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/store/manage-benefits.query.js +0 -11
  158. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/store/manage-benefits.store.js +0 -51
  159. package/dist/lib/collection/components/benefits-app/pages/role-management-page/api/role-management.api.js +0 -21
  160. package/dist/lib/collection/components/benefits-app/pages/role-management-page/role-editors-section/role-editors-section.js +0 -104
  161. package/dist/lib/collection/components/benefits-app/pages/role-management-page/role-management-page.js +0 -50
  162. package/dist/lib/collection/components/benefits-app/pages/role-management-page/role-management.service.js +0 -44
  163. package/dist/lib/collection/components/benefits-app/pages/role-management-page/role-owner-section/role-owner-section.js +0 -40
  164. package/dist/lib/collection/components/benefits-app/pages/role-management-page/store/role-management.query.js +0 -13
  165. package/dist/lib/collection/components/benefits-app/pages/role-management-page/store/role-management.store.js +0 -42
  166. package/dist/lib/collection/components/benefits-app/services/benefits-app.service.js +0 -36
  167. package/dist/lib/collection/components/benefits-app/services/benefits.service.js +0 -11
  168. package/dist/lib/collection/components/benefits-app/services/event-tracking.service.js +0 -40
  169. package/dist/lib/collection/components/benefits-app/services/navigation.service.js +0 -34
  170. package/dist/lib/collection/components/benefits-app/store/benefits-app.query.js +0 -13
  171. package/dist/lib/collection/components/benefits-app/store/benefits-app.store.js +0 -24
  172. package/dist/lib/collection/components/benefits-app-host/benefits-app-host.js +0 -48
  173. package/dist/lib/collection/components/benefits-app-host/loading-page.js +0 -9
  174. package/dist/lib/collection/components/benefits-app-host/oidc-callback-page/oidc-callback-page.js +0 -65
  175. package/dist/lib/collection/components/benefits-app-host/oidc-callback-page/oidc-callback-page.routes.js +0 -11
  176. package/dist/lib/collection/components/benefits-app-host/services/app-configuration.query.js +0 -18
  177. package/dist/lib/collection/components/benefits-app-host/services/app-configuration.service.js +0 -23
  178. package/dist/lib/collection/components/benefits-app-host/services/authentication.query.js +0 -21
  179. package/dist/lib/collection/components/benefits-app-host/services/authentication.service.js +0 -96
  180. package/dist/lib/collection/components/benefits-app-host/services/session.store.js +0 -33
  181. package/dist/lib/collection/components/cars-calculator-app/api/api-client.js +0 -5
  182. package/dist/lib/collection/components/cars-calculator-app/api/cars-calculator-events.model.js +0 -1
  183. package/dist/lib/collection/components/cars-calculator-app/api/cars-calculator.api.js +0 -45
  184. package/dist/lib/collection/components/cars-calculator-app/api/event-tracking.api.js +0 -7
  185. package/dist/lib/collection/components/cars-calculator-app/cars-calculator-app.css +0 -22
  186. package/dist/lib/collection/components/cars-calculator-app/cars-calculator-app.js +0 -97
  187. package/dist/lib/collection/components/cars-calculator-app/notifications-section/notifications-section.js +0 -25
  188. package/dist/lib/collection/components/cars-calculator-app/pages/asset.component.js +0 -27
  189. package/dist/lib/collection/components/cars-calculator-app/pages/assets/car-placeholder.svg +0 -5
  190. package/dist/lib/collection/components/cars-calculator-app/pages/assets/check.svg +0 -13
  191. package/dist/lib/collection/components/cars-calculator-app/pages/choose-vehicle-section.component.js +0 -234
  192. package/dist/lib/collection/components/cars-calculator-app/pages/common-assets/icon-info.svg +0 -4
  193. package/dist/lib/collection/components/cars-calculator-app/pages/complete-section.component.js +0 -38
  194. package/dist/lib/collection/components/cars-calculator-app/pages/cost-breakdown-section.component.js +0 -45
  195. package/dist/lib/collection/components/cars-calculator-app/pages/model-variants-section.component.css +0 -34
  196. package/dist/lib/collection/components/cars-calculator-app/pages/model-variants-section.component.js +0 -93
  197. package/dist/lib/collection/components/cars-calculator-app/pages/personal-info-section.component.js +0 -71
  198. package/dist/lib/collection/components/cars-calculator-app/pages/quote-result-section.component.js +0 -117
  199. package/dist/lib/collection/components/cars-calculator-app/pages/submit-quote-section.component.js +0 -87
  200. package/dist/lib/collection/components/cars-calculator-app/services/app-configuration.service.js +0 -13
  201. package/dist/lib/collection/components/cars-calculator-app/services/cars-calculator.service.js +0 -117
  202. package/dist/lib/collection/components/cars-calculator-app/services/event-tracking.service.js +0 -37
  203. package/dist/lib/collection/components/cars-calculator-app/services/notifications.service.js +0 -37
  204. package/dist/lib/collection/components/cars-calculator-app/services/notifications.store.js +0 -3
  205. package/dist/lib/collection/components/cars-calculator-app/services/session.query.js +0 -38
  206. package/dist/lib/collection/components/cars-calculator-app/services/session.store.js +0 -80
  207. package/dist/lib/collection/components/cars-calculator-app/services/view.service.js +0 -16
  208. package/dist/lib/collection/components/shared/file-icon/file-icon.css +0 -15
  209. package/dist/lib/collection/components/shared/file-icon/file-icon.js +0 -84
  210. package/dist/lib/collection/components/shared/icon.js +0 -77
  211. package/dist/lib/collection/components/shared/icons-library.js +0 -11
  212. package/dist/lib/collection/components/shared/modal-section.js +0 -138
  213. package/dist/lib/collection/components/shared/tooltip.css +0 -3
  214. package/dist/lib/collection/components/shared/tooltip.js +0 -115
  215. package/dist/lib/collection/components/shared/ui-container/ui-container.css +0 -39
  216. package/dist/lib/collection/components/shared/ui-container/ui-container.js +0 -27
  217. package/dist/lib/collection/global/config.js +0 -2
  218. package/dist/lib/collection/global/main.dev.js +0 -31
  219. package/dist/lib/collection/global/main.js +0 -5
  220. package/dist/lib/collection/index.js +0 -2
  221. package/dist/lib/collection/utils/config.js +0 -2
  222. package/dist/lib/collection/utils/index.js +0 -28
  223. package/dist/lib/collection/utils/lazy.js +0 -29
  224. package/dist/lib/collection/utils/promise.js +0 -7
  225. package/dist/lib/esm/Option-53ef163a.js +0 -1982
  226. package/dist/lib/esm/active-router-134fe07f.js +0 -73
  227. package/dist/lib/esm/ap-ben-asset_5.entry.js +0 -1848
  228. package/dist/lib/esm/ap-ben-benefit-card.entry.js +0 -41
  229. package/dist/lib/esm/ap-ben-benefit-list-item.entry.js +0 -52
  230. package/dist/lib/esm/ap-ben-benefit-url_27.entry.js +0 -48737
  231. package/dist/lib/esm/ap-ben-benefits-list_3.entry.js +0 -49
  232. package/dist/lib/esm/ap-ben-benefits-page.entry.js +0 -51
  233. package/dist/lib/esm/ap-ben-choose-vehicle-section_4.entry.js +0 -2772
  234. package/dist/lib/esm/ap-ben-notifications-section.entry.js +0 -239
  235. package/dist/lib/esm/ap-ben-oidc-callback-page.entry.js +0 -36
  236. package/dist/lib/esm/apollo-benefits.js +0 -23
  237. package/dist/lib/esm/app-globals-ff43b669.js +0 -10
  238. package/dist/lib/esm/authentication.service-4dbff8a5.js +0 -232
  239. package/dist/lib/esm/benefits.api-5a0c5fa7.js +0 -33
  240. package/dist/lib/esm/cars-calculator-app.entry.js +0 -56
  241. package/dist/lib/esm/cars-calculator.service-1278f563.js +0 -163
  242. package/dist/lib/esm/context-consumer.entry.js +0 -25
  243. package/dist/lib/esm/datorama-akita-e42d9911.js +0 -2547
  244. package/dist/lib/esm/delay-d08c267f.js +0 -200
  245. package/dist/lib/esm/event-tracking.service-27d79066.js +0 -253
  246. package/dist/lib/esm/event-tracking.service-429d997c.js +0 -146
  247. package/dist/lib/esm/filter-aeb65cac.js +0 -370
  248. package/dist/lib/esm/fl-dropdown-async.entry.js +0 -418
  249. package/dist/lib/esm/fl-dropdown.entry.js +0 -228
  250. package/dist/lib/esm/fl-style-guide.entry.js +0 -87
  251. package/dist/lib/esm/index-1351f893.js +0 -979
  252. package/dist/lib/esm/index-8676bf1e.js +0 -22
  253. package/dist/lib/esm/index-d4b319a7.js +0 -1702
  254. package/dist/lib/esm/index.js +0 -1
  255. package/dist/lib/esm/loader.js +0 -23
  256. package/dist/lib/esm/polyfills/core-js.js +0 -11
  257. package/dist/lib/esm/polyfills/css-shim.js +0 -1
  258. package/dist/lib/esm/polyfills/dom.js +0 -79
  259. package/dist/lib/esm/polyfills/es5-html-element.js +0 -1
  260. package/dist/lib/esm/polyfills/index.js +0 -34
  261. package/dist/lib/esm/polyfills/system.js +0 -6
  262. package/dist/lib/esm/scheduleArray-b9669898.js +0 -738
  263. package/dist/lib/esm/stencil-async-content.entry.js +0 -28
  264. package/dist/lib/esm/stencil-route-title.entry.js +0 -28
  265. package/dist/lib/esm/stencil-router-prompt.entry.js +0 -55
  266. package/dist/lib/esm/stencil-router-redirect.entry.js +0 -28
  267. package/dist/lib/esm/view.service-6adbec31.js +0 -19
  268. package/dist/lib/index.cjs.js +0 -1
  269. package/dist/lib/index.js +0 -1
  270. package/dist/lib/loader/cdn.js +0 -3
  271. package/dist/lib/loader/index.cjs.js +0 -3
  272. package/dist/lib/loader/index.d.ts +0 -13
  273. package/dist/lib/loader/index.es2017.js +0 -3
  274. package/dist/lib/loader/index.js +0 -4
  275. package/dist/lib/loader/package.json +0 -10
  276. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/button/button.css +0 -118
  277. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown/dropdown.css +0 -9
  278. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown-async/dropdown-async.css +0 -9
  279. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/loading-indicator/loading-indicator.css +0 -141
  280. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/promise-button/promise-button.css +0 -5
  281. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/style-guide/style-guide.css +0 -0
  282. package/dist/lib/node_modules/@stencil/router/dist/collection/components/route/route.css +0 -3
  283. package/dist/lib/types/components/benefits-app/apis/api-client.d.ts +0 -7
  284. package/dist/lib/types/components/benefits-app/apis/benefits-api/benefits-api.dto.d.ts +0 -44
  285. package/dist/lib/types/components/benefits-app/apis/benefits-api/benefits.api.d.ts +0 -9
  286. package/dist/lib/types/components/benefits-app/apis/event-tracking-api/event-tracking-api.d.ts +0 -6
  287. package/dist/lib/types/components/benefits-app/apis/event-tracking-api/event-tracking-api.dto.d.ts +0 -18
  288. package/dist/lib/types/components/benefits-app/apis/user-api/user-api.dto.d.ts +0 -30
  289. package/dist/lib/types/components/benefits-app/apis/user-api/user.api.d.ts +0 -8
  290. package/dist/lib/types/components/benefits-app/benefits-app.d.ts +0 -22
  291. package/dist/lib/types/components/benefits-app/pages/benefits-page/benefits-list/benefits-list-item.d.ts +0 -10
  292. package/dist/lib/types/components/benefits-app/pages/benefits-page/benefits-list/benefits-list.d.ts +0 -5
  293. package/dist/lib/types/components/benefits-app/pages/benefits-page/benefits-page.d.ts +0 -10
  294. package/dist/lib/types/components/benefits-app/pages/benefits-page/hero-banner/hero-banner.d.ts +0 -5
  295. package/dist/lib/types/components/benefits-app/pages/benefits-page/promoted-benefits/benefit-card.d.ts +0 -8
  296. package/dist/lib/types/components/benefits-app/pages/benefits-page/promoted-benefits/promoted-benefits.d.ts +0 -5
  297. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/api/manage-benefits-api.dto.d.ts +0 -39
  298. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/api/manage-benefits.api.d.ts +0 -9
  299. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/confirm-dialog.d.ts +0 -16
  300. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/benefit-url.d.ts +0 -21
  301. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/edit-benefit-form.d.ts +0 -12
  302. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/upload-benefit-icon.d.ts +0 -16
  303. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/upload-file.d.ts +0 -17
  304. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-page.d.ts +0 -24
  305. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit.query.d.ts +0 -16
  306. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit.service.d.ts +0 -20
  307. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/empty-benefits.d.ts +0 -5
  308. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/manage-benefits-header-row.d.ts +0 -3
  309. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/manage-benefits-page.d.ts +0 -16
  310. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/manage-benefits-page.routes.d.ts +0 -6
  311. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/manage-benefits.service.d.ts +0 -8
  312. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/managed-benefit-item/managed-benefit-item.d.ts +0 -11
  313. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/store/manage-benefits.query.d.ts +0 -10
  314. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/store/manage-benefits.store.d.ts +0 -51
  315. package/dist/lib/types/components/benefits-app/pages/role-management-page/api/role-management.api.d.ts +0 -7
  316. package/dist/lib/types/components/benefits-app/pages/role-management-page/role-editors-section/role-editors-section.d.ts +0 -15
  317. package/dist/lib/types/components/benefits-app/pages/role-management-page/role-management-page.d.ts +0 -9
  318. package/dist/lib/types/components/benefits-app/pages/role-management-page/role-management.service.d.ts +0 -11
  319. package/dist/lib/types/components/benefits-app/pages/role-management-page/role-owner-section/role-owner-section.d.ts +0 -5
  320. package/dist/lib/types/components/benefits-app/pages/role-management-page/store/role-management.query.d.ts +0 -12
  321. package/dist/lib/types/components/benefits-app/pages/role-management-page/store/role-management.store.d.ts +0 -17
  322. package/dist/lib/types/components/benefits-app/services/benefits-app.service.d.ts +0 -13
  323. package/dist/lib/types/components/benefits-app/services/benefits.service.d.ts +0 -8
  324. package/dist/lib/types/components/benefits-app/services/event-tracking.service.d.ts +0 -11
  325. package/dist/lib/types/components/benefits-app/services/navigation.service.d.ts +0 -14
  326. package/dist/lib/types/components/benefits-app/store/benefits-app.query.d.ts +0 -12
  327. package/dist/lib/types/components/benefits-app/store/benefits-app.store.d.ts +0 -31
  328. package/dist/lib/types/components/benefits-app-host/benefits-app-host.d.ts +0 -9
  329. package/dist/lib/types/components/benefits-app-host/loading-page.d.ts +0 -3
  330. package/dist/lib/types/components/benefits-app-host/oidc-callback-page/oidc-callback-page.d.ts +0 -8
  331. package/dist/lib/types/components/benefits-app-host/oidc-callback-page/oidc-callback-page.routes.d.ts +0 -1
  332. package/dist/lib/types/components/benefits-app-host/services/app-configuration.query.d.ts +0 -11
  333. package/dist/lib/types/components/benefits-app-host/services/app-configuration.service.d.ts +0 -9
  334. package/dist/lib/types/components/benefits-app-host/services/authentication.query.d.ts +0 -13
  335. package/dist/lib/types/components/benefits-app-host/services/authentication.service.d.ts +0 -25
  336. package/dist/lib/types/components/benefits-app-host/services/session.store.d.ts +0 -25
  337. package/dist/lib/types/components/cars-calculator-app/api/api-client.d.ts +0 -2
  338. package/dist/lib/types/components/cars-calculator-app/api/cars-calculator-events.model.d.ts +0 -39
  339. package/dist/lib/types/components/cars-calculator-app/api/cars-calculator.api.d.ts +0 -100
  340. package/dist/lib/types/components/cars-calculator-app/api/event-tracking.api.d.ts +0 -6
  341. package/dist/lib/types/components/cars-calculator-app/cars-calculator-app.d.ts +0 -18
  342. package/dist/lib/types/components/cars-calculator-app/notifications-section/notifications-section.d.ts +0 -5
  343. package/dist/lib/types/components/cars-calculator-app/pages/asset.component.d.ts +0 -4
  344. package/dist/lib/types/components/cars-calculator-app/pages/choose-vehicle-section.component.d.ts +0 -23
  345. package/dist/lib/types/components/cars-calculator-app/pages/complete-section.component.d.ts +0 -5
  346. package/dist/lib/types/components/cars-calculator-app/pages/cost-breakdown-section.component.d.ts +0 -6
  347. package/dist/lib/types/components/cars-calculator-app/pages/model-variants-section.component.d.ts +0 -12
  348. package/dist/lib/types/components/cars-calculator-app/pages/personal-info-section.component.d.ts +0 -10
  349. package/dist/lib/types/components/cars-calculator-app/pages/quote-result-section.component.d.ts +0 -16
  350. package/dist/lib/types/components/cars-calculator-app/pages/submit-quote-section.component.d.ts +0 -12
  351. package/dist/lib/types/components/cars-calculator-app/services/app-configuration.service.d.ts +0 -7
  352. package/dist/lib/types/components/cars-calculator-app/services/cars-calculator.service.d.ts +0 -11
  353. package/dist/lib/types/components/cars-calculator-app/services/event-tracking.service.d.ts +0 -13
  354. package/dist/lib/types/components/cars-calculator-app/services/notifications.service.d.ts +0 -15
  355. package/dist/lib/types/components/cars-calculator-app/services/notifications.store.d.ts +0 -14
  356. package/dist/lib/types/components/cars-calculator-app/services/session.query.d.ts +0 -26
  357. package/dist/lib/types/components/cars-calculator-app/services/session.store.d.ts +0 -78
  358. package/dist/lib/types/components/cars-calculator-app/services/view.service.d.ts +0 -8
  359. package/dist/lib/types/components/shared/file-icon/file-icon.d.ts +0 -11
  360. package/dist/lib/types/components/shared/icon.d.ts +0 -7
  361. package/dist/lib/types/components/shared/icons-library.d.ts +0 -1
  362. package/dist/lib/types/components/shared/modal-section.d.ts +0 -16
  363. package/dist/lib/types/components/shared/tooltip.d.ts +0 -13
  364. package/dist/lib/types/components/shared/ui-container/ui-container.d.ts +0 -5
  365. package/dist/lib/types/components.d.ts +0 -606
  366. package/dist/lib/types/global/config.d.ts +0 -2
  367. package/dist/lib/types/global/main.d.ts +0 -1
  368. package/dist/lib/types/global/main.dev.d.ts +0 -1
  369. package/dist/lib/types/index.d.ts +0 -2
  370. package/dist/lib/types/stencil-public-runtime.d.ts +0 -1555
  371. package/dist/lib/types/utils/config.d.ts +0 -2
  372. package/dist/lib/types/utils/index.d.ts +0 -10
  373. package/dist/lib/types/utils/lazy.d.ts +0 -12
  374. package/dist/lib/types/utils/promise.d.ts +0 -1
  375. package/readme.md +0 -1
@@ -1,33 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { Store, StoreConfig } from '@datorama/akita';
8
- import * as O from 'fp-ts/Option';
9
- export var AuthenticationState;
10
- (function (AuthenticationState) {
11
- AuthenticationState[AuthenticationState["Unauthorized"] = 0] = "Unauthorized";
12
- AuthenticationState[AuthenticationState["SignInPending"] = 1] = "SignInPending";
13
- AuthenticationState[AuthenticationState["Authenticated"] = 2] = "Authenticated";
14
- AuthenticationState[AuthenticationState["SignOutPending"] = 3] = "SignOutPending";
15
- AuthenticationState[AuthenticationState["Error"] = 4] = "Error";
16
- })(AuthenticationState || (AuthenticationState = {}));
17
- export function createInitialState() {
18
- return {
19
- authenticationState: AuthenticationState.Unauthorized,
20
- jwt: O.none,
21
- appConfiguration: O.none
22
- };
23
- }
24
- let SessionStore = class SessionStore extends Store {
25
- constructor() {
26
- super(createInitialState());
27
- }
28
- };
29
- SessionStore = __decorate([
30
- StoreConfig({ name: 'benefits-host', resettable: true })
31
- ], SessionStore);
32
- export { SessionStore };
33
- export default new SessionStore();
@@ -1,5 +0,0 @@
1
- import wretch from 'wretch';
2
- import appConfigurationService from '../services/app-configuration.service';
3
- export function backendApiClient() {
4
- return wretch(appConfigurationService.apiBaseUrl);
5
- }
@@ -1,45 +0,0 @@
1
- import { backendApiClient } from './api-client';
2
- export class CarsCalculatorApi {
3
- async getCarsMakes() {
4
- const res = (await backendApiClient().url('/makes').get().json());
5
- return res.qt_makes;
6
- }
7
- async getCarsModels(makeId) {
8
- const res = (await backendApiClient()
9
- .url(`/makes/${makeId}/models`)
10
- .get()
11
- .json());
12
- return res.qt_models;
13
- }
14
- async getCarsModelYears(modelId) {
15
- return backendApiClient().url(`/models/${modelId}/years`).get().json();
16
- }
17
- async getCarsModelBodyTypes(modelId, year) {
18
- const res = (await backendApiClient()
19
- .url(`/models/${modelId}/years/${year}/body-types`)
20
- .get()
21
- .json());
22
- return res.qt_body_types;
23
- }
24
- async getCarsModelVariant(modelId, year, bodyTypeId) {
25
- const res = (await backendApiClient()
26
- .url(`/models/${modelId}/years/${year}/body-types/${bodyTypeId}/variants`)
27
- .get()
28
- .json());
29
- return res.qt_variants;
30
- }
31
- async getCarsVariantPhotos(variantId) {
32
- const res = (await backendApiClient()
33
- .url(`/variants/${variantId}/photos`)
34
- .get()
35
- .json());
36
- return res.qt_variant_photos;
37
- }
38
- async postCarsQuoteResult(req) {
39
- return (await backendApiClient().url(`/quote`).post(req).json());
40
- }
41
- async postQuoteInfoAsync(req) {
42
- return backendApiClient().url(`/enquiry`).post(req).text();
43
- }
44
- }
45
- export default new CarsCalculatorApi();
@@ -1,7 +0,0 @@
1
- import { backendApiClient } from './api-client';
2
- export class EventTrackingApi {
3
- async postAnalyticsEventAsync(event) {
4
- return backendApiClient().url('/analytics-events').post(event).res();
5
- }
6
- }
7
- export default new EventTrackingApi();
@@ -1,22 +0,0 @@
1
- .abe-app-container {
2
- --fl-color-primary: #3a6cc8;
3
- --fl-color-primary-light: #517ccc;
4
- --fl-color-primary-dark: #3a6cc8;
5
- --fl-color-primary-disabled: #517ccc;
6
- --fl-color-primary-hover: #3a6cc8;
7
- --fl-color-primary-focus: #3a6cc8;
8
- --fl-color-primary-text: white;
9
- --fl-color-secondary: #e5e5e5;
10
- --fl-color-secondary-hover: #b3b3b3;
11
- --fl-color-secondary-focus: #b3b3b3;
12
- font-size: 0.9rem;
13
- line-height: 1.7;
14
- }
15
-
16
- @media screen and (-webkit-min-device-pixel-ratio: 0) {
17
- select,
18
- textarea,
19
- input {
20
- font-size: 16px;
21
- }
22
- }
@@ -1,97 +0,0 @@
1
- import '@flarehr/beacon';
2
- import { Component, h, Host, Prop, State } from '@stencil/core';
3
- import * as O from 'fp-ts/Option';
4
- import appConfigurationService from './services/app-configuration.service';
5
- import eventTrackingService from './services/event-tracking.service';
6
- import sessionQuery from './services/session.query';
7
- import viewService from './services/view.service';
8
- export class CarsCalculatorApp {
9
- constructor() {
10
- this.areStylesLoaded = false;
11
- this.isModelSelected = false;
12
- this.isVariantSelected = false;
13
- this.isQuoteCalculated = false;
14
- this.renderVariantsList = () => (h("div", { class: "row" },
15
- h("div", { class: "col" },
16
- h("ap-ben-model-variants-section", null))));
17
- this.renderModelSelection = () => (h("div", { class: "row mt-4" },
18
- h("div", { class: "col" },
19
- h("ap-ben-choose-vehicle-section", null))));
20
- this.renderQuoteCalculation = () => [
21
- h("div", { class: "row mt-4" },
22
- h("div", { class: "col-12 col-md-6 col-lg-7 d-flex flex-column justify-content-between" },
23
- h("ap-ben-personal-info-section", null),
24
- h("div", { class: "mt-4 d-none d-lg-block" },
25
- h(this.disclaimer, null))),
26
- h("div", { class: "col-12 col-md-6 col-lg-5 mt-4 mt-md-0" }, this.isQuoteCalculated && h("ap-ben-quote-result-section", null))),
27
- h("div", { class: "row my-4 d-lg-none" },
28
- h("div", { class: "col-12" },
29
- h(this.disclaimer, null)))
30
- ];
31
- this.disclaimer = () => (h("div", { class: "bg-light p-4" }, "Figures shown are estimates only and are based on an estimated driveaway price of the vehicle which includes dealer delivery, CTP, Rego and Stamp duty."));
32
- }
33
- componentDidLoad() {
34
- appConfigurationService.apiBaseUrl = this.apiBaseUrl;
35
- viewService.topElement = this.hostElement;
36
- return eventTrackingService.trackAppLoadedAsync();
37
- }
38
- componentWillLoad() {
39
- sessionQuery.vehicle$.subscribe((vehicle) => {
40
- this.isVariantSelected = O.isSome(vehicle.selectedVariant);
41
- this.isModelSelected = O.isSome(vehicle.bodyType);
42
- });
43
- sessionQuery.quote$.subscribe((quote) => {
44
- this.isQuoteCalculated = quote.quoteState !== 'Not calculated';
45
- });
46
- }
47
- render() {
48
- return (h(Host, { class: "d-flex flex-column flex-fill justify-content-between", ref: (el) => (this.hostElement = el) },
49
- this.fetchStyles(),
50
- this.areStylesLoaded && this.renderAppContent()));
51
- }
52
- fetchStyles() {
53
- return [
54
- h("link", { rel: "stylesheet", href: "https://npm-cdn.flarehr.com/@flarehr/beacon@dev/dist/beacon/beacon.css", media: "all", onLoad: () => (this.areStylesLoaded = true) })
55
- ];
56
- }
57
- renderAppContent() {
58
- return (h("div", { class: "abe-app-container d-flex flex-grow-1 justify-content-center" },
59
- h("div", { class: "container my-0 my-lg-4" },
60
- !this.isVariantSelected && this.renderModelSelection(),
61
- this.isModelSelected && this.renderVariantsList(),
62
- this.isVariantSelected && this.renderQuoteCalculation())));
63
- }
64
- static get is() { return "cars-calculator-app"; }
65
- static get encapsulation() { return "shadow"; }
66
- static get originalStyleUrls() { return {
67
- "$": ["cars-calculator-app.scss"]
68
- }; }
69
- static get styleUrls() { return {
70
- "$": ["cars-calculator-app.css"]
71
- }; }
72
- static get properties() { return {
73
- "apiBaseUrl": {
74
- "type": "string",
75
- "mutable": false,
76
- "complexType": {
77
- "original": "string",
78
- "resolved": "string",
79
- "references": {}
80
- },
81
- "required": false,
82
- "optional": false,
83
- "docs": {
84
- "tags": [],
85
- "text": ""
86
- },
87
- "attribute": "api-base-url",
88
- "reflect": false
89
- }
90
- }; }
91
- static get states() { return {
92
- "areStylesLoaded": {},
93
- "isModelSelected": {},
94
- "isVariantSelected": {},
95
- "isQuoteCalculated": {}
96
- }; }
97
- }
@@ -1,25 +0,0 @@
1
- import { Component, h, Host } from '@stencil/core';
2
- import notificationsService from '../services/notifications.service';
3
- export class NotificationsSection {
4
- disconnectedCallback() {
5
- notificationsService.clearNotifications();
6
- }
7
- render() {
8
- const { items } = notificationsService.state;
9
- if (items.length <= 0)
10
- return h(Host, null);
11
- const firstAlert = items[0];
12
- const className = `alert alert-${firstAlert.type}`;
13
- return (h("div", { class: className, role: "alert" },
14
- h("div", { class: "d-flex" },
15
- h("p", { class: "mb-0 flex-grow-1" },
16
- h("strong", null, items[0].details.title)),
17
- h("button", { onClick: this.handleClose, type: "button", class: "close pb-1", "aria-label": "Close" },
18
- h("span", { "aria-hidden": "true" }, "\u00D7"))),
19
- h("p", { class: "mb-0 mt-1" }, items[0].details.description)));
20
- }
21
- handleClose() {
22
- notificationsService.closeCurrent();
23
- }
24
- static get is() { return "ap-ben-notifications-section"; }
25
- }
@@ -1,27 +0,0 @@
1
- import { Component, getAssetPath, h, Prop } from '@stencil/core';
2
- export class Asset {
3
- render() {
4
- return h("img", { src: getAssetPath(`./common-assets/${this.image}`) });
5
- }
6
- static get is() { return "ap-ben-asset"; }
7
- static get assetsDirs() { return ["common-assets"]; }
8
- static get properties() { return {
9
- "image": {
10
- "type": "string",
11
- "mutable": false,
12
- "complexType": {
13
- "original": "string",
14
- "resolved": "string",
15
- "references": {}
16
- },
17
- "required": false,
18
- "optional": false,
19
- "docs": {
20
- "tags": [],
21
- "text": ""
22
- },
23
- "attribute": "image",
24
- "reflect": false
25
- }
26
- }; }
27
- }
@@ -1,5 +0,0 @@
1
- <svg width="150" height="50" viewBox="0 0 150 50" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M147.859 27.2664C147.859 27.2664 147.49 21.3963 146.743 19.2433C145.999 17.0924 146.546 17.6277 146.053 16.1782C146.053 16.1782 143.395 15.9454 142.648 16.0886C134.017 16.4473 114.222 1.89957 98.524 0.393849C98.524 0.393849 67.4955 -0.642153 61.8405 0.64636C56.1856 1.9366 43.3008 14.0127 41.2199 14.5146C30.5077 14.9425 3.2471 24.7294 3.2471 24.7294C2.50302 25.2314 1.90757 29.1369 1.90757 29.1369L2.27984 30.1407C-0.771056 32.8674 0.121669 38.603 0.121669 38.603L0.986842 42.5865L2.27984 41.1099C-0.247905 42.2569 1.61029 43.2612 1.61029 43.2612L7.26526 43.6934C9.01838 44.2178 14.8966 44.4013 19.0306 44.4307C18.4495 43.0167 18.119 41.4824 18.119 39.8711C18.119 33.0175 23.9042 27.4434 31.0173 27.4434C38.1277 27.4434 43.9156 33.0175 43.9156 39.8711C43.9156 41.3587 43.6273 42.7818 43.1275 44.1079L109.348 44.0006C108.874 42.7052 108.602 41.321 108.602 39.8711C108.602 33.0175 114.388 27.4434 121.501 27.4434C128.611 27.4434 134.399 33.0175 134.399 39.8711C134.399 41.1458 134.197 42.3781 133.825 43.5368C140.415 42.0691 148.091 41.0407 148.091 41.0407L149.504 39.2481C149.504 39.2481 150.62 31.5772 149.504 30.3579C148.387 29.1416 147.859 27.2664 147.859 27.2664Z" fill="#D0D0D0"/>
3
- <path d="M31.0143 49.9995C35.2439 49.9995 38.8669 47.5773 40.5365 44.1073C41.1571 42.8144 41.5294 41.3875 41.5294 39.8657C41.5294 34.269 36.8206 29.7324 31.0125 29.7324C25.2039 29.7324 20.4951 34.2669 20.4951 39.8657C20.4951 41.5129 20.9415 43.0476 21.6672 44.4205C23.4059 47.7188 26.9148 49.9995 31.0143 49.9995Z" fill="#D0D0D0"/>
4
- <path d="M121.495 49.9995C125.676 49.9995 129.257 47.6288 130.95 44.2237C131.611 42.9014 132.01 41.432 132.01 39.8657C132.01 34.269 127.301 29.7324 121.493 29.7324C115.684 29.7324 110.976 34.2669 110.976 39.8657C110.976 41.3377 111.317 42.7292 111.903 43.9904C113.55 47.5263 117.217 49.9995 121.495 49.9995Z" fill="#D0D0D0"/>
5
- </svg>
@@ -1,13 +0,0 @@
1
- <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g clip-path="url(#clip0)">
3
- <path d="M19.6095 10C19.6095 15.3072 15.3072 19.6095 10 19.6095C4.69284 19.6095 0.390625 15.3072 0.390625 10C0.390625 4.69284 4.69284 0.390625 10 0.390625C15.3072 0.390625 19.6095 4.69284 19.6095 10Z" fill="white"/>
4
- <path d="M13.3468 5.46326L8.69177 10.1183L6.65411 8.0806L4.44434 10.2904L6.48199 12.328L8.69177 14.5377L15.5564 7.67303L13.3468 5.46326Z" fill="#FDBD00"/>
5
- <path d="M8.69177 14.9283C8.58817 14.9283 8.48883 14.8871 8.41559 14.8138L4.16815 10.5666C4.01556 10.414 4.01556 10.1666 4.16815 10.014L6.37778 7.80441C6.53036 7.65182 6.77771 7.65182 6.9303 7.80441L8.69177 9.56589L13.0704 5.18707C13.1437 5.11383 13.2432 5.07263 13.3468 5.07263C13.4502 5.07263 13.5497 5.11383 13.623 5.18707L15.8326 7.39685C15.9852 7.54929 15.9852 7.79663 15.8326 7.94922L8.96796 14.814C8.89471 14.8872 8.79538 14.9283 8.69177 14.9283ZM4.99686 10.2904L8.69177 13.9853L15.004 7.67303L13.3468 6.01562L8.96796 10.3944C8.81537 10.547 8.56802 10.547 8.41559 10.3944L6.65411 8.63297L4.99686 10.2904Z" fill="black"/>
6
- <path d="M9.99756 20C9.74243 20 9.487 19.9902 9.23111 19.9707C6.85471 19.7885 4.61655 18.7587 2.92892 17.0712C1.04019 15.1823 0 12.6712 0 10C0 7.32895 1.04019 4.81766 2.92892 2.92892C4.81766 1.04019 7.32895 0 10 0C12.6712 0 15.1823 1.04019 17.0712 2.92892C18.7587 4.61655 19.7885 6.85471 19.9707 9.23111C20.1509 11.5817 19.4963 13.9247 18.1276 15.8287C18.0017 16.0039 15.4883 18.9844 15.2539 18.1276C15.2539 18.0078 17.3674 15.5478 17.4933 15.3726C20.1389 11.6927 19.729 6.69174 16.5187 3.48129C12.9243 -0.113068 7.07581 -0.113068 3.48145 3.48129C-0.113068 7.07581 -0.113068 12.9242 3.48145 16.5187C6.69174 19.7289 11.6928 20.1389 15.3728 17.4931C15.5479 17.3672 18.4961 14.5703 16.6992 16.9183C17.4414 16.9183 15.9961 18.0114 15.8287 18.1276C14.1319 19.3474 12.0863 20 9.99756 20Z" fill="black"/>
7
- </g>
8
- <defs>
9
- <clipPath id="clip0">
10
- <rect width="20" height="20" fill="white"/>
11
- </clipPath>
12
- </defs>
13
- </svg>
@@ -1,234 +0,0 @@
1
- var __asyncValues = (this && this.__asyncValues) || function (o) {
2
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
3
- var m = o[Symbol.asyncIterator], i;
4
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
5
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
6
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
7
- };
8
- import { Component, h, Host, State } from '@stencil/core';
9
- import { pipe } from 'fp-ts/function';
10
- import * as O from 'fp-ts/Option';
11
- import { getOrDefault, getOrError } from '../../../utils';
12
- import carsCalculatorApi from '../api/cars-calculator.api';
13
- import eventTrackingService from '../services/event-tracking.service';
14
- import sessionQuery from '../services/session.query';
15
- import sessionStore from '../services/session.store';
16
- export class ChooseVehicleSection {
17
- constructor() {
18
- this.toCapitalCase = (str) => str === null || str === void 0 ? void 0 : str.split(' ').map((part) => part.charAt(0).toUpperCase() + part.slice(1).toLowerCase()).join(' ');
19
- sessionQuery.vehicle$.subscribe((state) => (this.vehicleInfo = state));
20
- sessionQuery.makeList$.subscribe((state) => (this.makeList = getOrDefault(state, [])));
21
- sessionQuery.modelList$.subscribe((state) => (this.modelList = getOrDefault(state, [])));
22
- sessionQuery.yearList$.subscribe((state) => (this.yearList = getOrDefault(state, [])));
23
- sessionQuery.bodyTypeList$.subscribe((state) => (this.bodyTypeList = getOrDefault(state, [])));
24
- }
25
- render() {
26
- return (h(Host, null,
27
- h("div", { class: "d-flex flex-column flex-wrap flex-md-row align-items-center justify-content-center h4" },
28
- h("div", { class: "d-flex align-items-center" }, "I'm looking to buy a"),
29
- h("div", { class: "d-flex mx-2 my-2 my-md-0" },
30
- h("div", { class: "btn-group", role: "group", "aria-label": "New or used vehicle" },
31
- h("button", { type: "button", class: {
32
- 'btn btn-outline-dark px-5': true,
33
- active: !this.isUsedCarSelected()
34
- }, onClick: (_event) => {
35
- sessionStore.setVehicleState('isUsedCarRequested', false);
36
- eventTrackingService.trackInputChangedAsync({
37
- key: 'isUsedCar',
38
- value: 'false'
39
- });
40
- } }, "New"),
41
- h("button", { type: "button", class: {
42
- 'btn btn-outline-dark px-5': true,
43
- active: this.isUsedCarSelected()
44
- }, onClick: (_event) => {
45
- sessionStore.setVehicleState('isUsedCarRequested', true);
46
- eventTrackingService.trackInputChangedAsync({
47
- key: 'isUsedCar',
48
- value: 'true'
49
- });
50
- } }, "Used"))),
51
- this.isUsedCarSelected() ? (h("div", { class: "d-flex flex-column flex-md-row align-items-center justify-content-center my-0 my-md-2 my-xl-0" },
52
- h("span", { class: "pr-0 pr-sm-2 d-flex text-center" }, "vehicle, with a purchase price of"),
53
- h("input", { placeholder: "25000", type: "text", class: "form-control d-flex w-auto mt-2 mt-md-0", value: '$' + this.getVehicleInfo('approximatePrice'), onInput: (e) => {
54
- const el = e.target;
55
- el.value = el.value.replace(/\D/g, '');
56
- }, onFocus: (e) => {
57
- const el = e.target;
58
- el.value = el.value.replace('$', '');
59
- }, onBlur: (e) => {
60
- const el = e.target;
61
- el.value = '$' + el.value;
62
- }, onChange: (e) => {
63
- const elmValue = e.target.value;
64
- const newValue = (elmValue === null || elmValue === void 0 ? void 0 : elmValue.length) > 0 ? parseFloat(elmValue) : null;
65
- sessionStore.setVehicleState('approximatePrice', newValue);
66
- eventTrackingService.trackInputChangedAsync({
67
- key: 'approximatePrice',
68
- value: String(newValue)
69
- });
70
- } }))) : (h("div", { class: "d-flex align-items-center" }, "vehicle"))),
71
- h("div", { class: "d-flex flex-wrap flex-column flex-md-row align-items-center justify-content-center mt-5 h4" },
72
- h("div", { class: "d-flex align-items-center" }, "I'm interested in a"),
73
- h("div", { class: "d-flex mx-2 my-2 my-md-0" },
74
- h("fl-dropdown", { options: this.makeList, requiredValidationMessage: "Select an option", placeholder: "select make", value: this.getVehicleInfo('makeId'), onValueChanged: (e) => this.chooseMake(e.detail.label, e.detail.value) })),
75
- h("div", { class: "d-flex mx-2 my-2 my-md-0" },
76
- h("fl-dropdown", { options: this.modelList, requiredValidationMessage: "Select an option", placeholder: "select model", value: this.getVehicleInfo('modelId'), disabled: O.isNone(this.vehicleInfo.makeId), onValueChanged: (e) => this.chooseModel(e.detail.label, e.detail.value) })),
77
- h("div", { class: "d-flex mx-2 my-2 my-xl-0" },
78
- h("fl-dropdown", { options: this.yearList, requiredValidationMessage: "Select an option", placeholder: "select year", value: this.getVehicleInfo('year'), disabled: O.isNone(this.vehicleInfo.modelId), onValueChanged: (e) => this.chooseYear(e.detail.value) }))),
79
- h("div", { class: "d-flex align-items-center justify-content-center justify-content-md-start mt-5" },
80
- h("div", { class: "btn-group flex-wrap", role: "group", "aria-label": "Body types" }, this.bodyTypeList.map((bodyType) => (h("button", { type: "button", class: {
81
- 'btn btn-sm btn-outline-dark px-5': true,
82
- active: this.isBodyTypeSelected(bodyType.value)
83
- }, onClick: (_event) => this.chooseBodyType(bodyType.label, bodyType.value) }, bodyType.label)))))));
84
- }
85
- async componentDidLoad() {
86
- var _a;
87
- if (((_a = this.makeList) === null || _a === void 0 ? void 0 : _a.length) > 0)
88
- return;
89
- const carsMakes = await carsCalculatorApi.getCarsMakes();
90
- sessionStore.updateList('makeList', carsMakes.map((make) => ({
91
- label: this.toCapitalCase(make.name),
92
- value: make.make_id
93
- })));
94
- eventTrackingService.trackStepProgressedAsync({ stepName: 'carSelection' });
95
- }
96
- async chooseMake(make, makeId) {
97
- var _a;
98
- this.clearModelStates();
99
- this.clearYearStates();
100
- this.clearBodyTypeStates();
101
- this.clearVariantsList();
102
- if (((_a = this.modelList) === null || _a === void 0 ? void 0 : _a.length) === 0) {
103
- sessionStore.updateList('modelList', (await carsCalculatorApi.getCarsModels(makeId)).map((model) => ({
104
- label: this.toCapitalCase(model.model_code),
105
- value: model.model_id
106
- })));
107
- }
108
- sessionStore.setVehicleState('make', make);
109
- sessionStore.setVehicleState('makeId', makeId);
110
- eventTrackingService.trackInputChangedAsync({
111
- key: 'make',
112
- value: make
113
- });
114
- }
115
- async chooseModel(model, modelId) {
116
- var _a;
117
- this.clearYearStates();
118
- this.clearBodyTypeStates();
119
- this.clearVariantsList();
120
- if (((_a = this.yearList) === null || _a === void 0 ? void 0 : _a.length) === 0) {
121
- sessionStore.updateList('yearList', (await carsCalculatorApi.getCarsModelYears(modelId))
122
- .sort()
123
- .reverse()
124
- .map((year) => ({
125
- label: year.toString(),
126
- value: year
127
- })));
128
- }
129
- sessionStore.setVehicleState('model', model);
130
- sessionStore.setVehicleState('modelId', modelId);
131
- eventTrackingService.trackInputChangedAsync({
132
- key: 'model',
133
- value: model
134
- });
135
- }
136
- async chooseYear(year) {
137
- var _a;
138
- this.clearBodyTypeStates();
139
- this.clearVariantsList();
140
- const modelId = getOrError(this.vehicleInfo.modelId);
141
- if (((_a = this.bodyTypeList) === null || _a === void 0 ? void 0 : _a.length) === 0) {
142
- sessionStore.updateList('bodyTypeList', (await carsCalculatorApi.getCarsModelBodyTypes(modelId, year)).map((bodyType) => ({
143
- label: bodyType.body_type,
144
- value: bodyType.body_type_id
145
- })));
146
- }
147
- sessionStore.setVehicleState('year', year);
148
- this.chooseBodyType(this.bodyTypeList[0].label, this.bodyTypeList[0].value);
149
- eventTrackingService.trackInputChangedAsync({
150
- key: 'year',
151
- value: year.toString()
152
- });
153
- }
154
- async chooseBodyType(bodyType, bodyTypeId) {
155
- var e_1, _a;
156
- this.clearVariantsList();
157
- sessionStore.setVehicleState('bodyType', bodyType);
158
- sessionStore.setVehicleState('bodyTypeId', bodyTypeId);
159
- const modelId = getOrError(this.vehicleInfo.modelId);
160
- const year = getOrError(this.vehicleInfo.year);
161
- const variantPromises = (await carsCalculatorApi.getCarsModelVariant(modelId, year, bodyTypeId)).map(async (variant) => {
162
- var _a;
163
- const photoUri = await carsCalculatorApi.getCarsVariantPhotos(variant.variant_id);
164
- return {
165
- variantId: variant.variant_id,
166
- description: variant.short_description,
167
- buildYear: variant.build_year,
168
- modelMonth: variant.model_month,
169
- listPriceGross: variant.list_price_gross,
170
- engineLitres: variant.engine_litres,
171
- transmission: variant.transmission,
172
- fuelTypeId: variant.fuel_type_translation_id,
173
- photoUri: O.fromNullable((_a = photoUri === null || photoUri === void 0 ? void 0 : photoUri[0]) === null || _a === void 0 ? void 0 : _a.photo_uri)
174
- };
175
- });
176
- const variantList = [];
177
- try {
178
- for (var variantPromises_1 = __asyncValues(variantPromises), variantPromises_1_1; variantPromises_1_1 = await variantPromises_1.next(), !variantPromises_1_1.done;) {
179
- const variant = variantPromises_1_1.value;
180
- variantList.push(variant);
181
- }
182
- }
183
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
184
- finally {
185
- try {
186
- if (variantPromises_1_1 && !variantPromises_1_1.done && (_a = variantPromises_1.return)) await _a.call(variantPromises_1);
187
- }
188
- finally { if (e_1) throw e_1.error; }
189
- }
190
- sessionStore.updateList('modelVariantsList', variantList);
191
- eventTrackingService.trackStepProgressedAsync({ stepName: 'variantSelection' });
192
- eventTrackingService.trackInputChangedAsync({
193
- key: 'bodyType',
194
- value: bodyType
195
- });
196
- }
197
- clearModelStates() {
198
- this.modelList = [];
199
- this.clearVehicleState('model');
200
- this.clearVehicleState('modelId');
201
- }
202
- clearYearStates() {
203
- this.yearList = [];
204
- this.clearVehicleState('year');
205
- }
206
- clearBodyTypeStates() {
207
- this.bodyTypeList = [];
208
- this.clearVehicleState('bodyType');
209
- this.clearVehicleState('bodyTypeId');
210
- }
211
- clearVariantsList() {
212
- sessionStore.updateList('modelVariantsList', []);
213
- }
214
- clearVehicleState(key) {
215
- sessionStore.setVehicleState(key, null);
216
- }
217
- getVehicleInfo(key) {
218
- return pipe(this.vehicleInfo[key], O.getOrElse(() => ''));
219
- }
220
- isBodyTypeSelected(bodyTypeId) {
221
- return pipe(this.vehicleInfo.bodyTypeId, O.fold(() => false, (selectedBodyTypeId) => selectedBodyTypeId === bodyTypeId));
222
- }
223
- isUsedCarSelected() {
224
- return pipe(this.vehicleInfo.isUsedCarRequested, O.getOrElse(() => false));
225
- }
226
- static get is() { return "ap-ben-choose-vehicle-section"; }
227
- static get states() { return {
228
- "makeList": {},
229
- "modelList": {},
230
- "yearList": {},
231
- "bodyTypeList": {},
232
- "vehicleInfo": {}
233
- }; }
234
- }
@@ -1,4 +0,0 @@
1
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M8 16C3.58863 16 0 12.4114 0 8C0 3.58893 3.58893 0 8 0C12.4111 0 16 3.58893 16 8C16 12.4114 12.4114 16 8 16ZM8 0.615379C3.92798 0.615379 0.615379 3.92829 0.615379 8C0.615379 12.0717 3.92829 15.3846 8 15.3846C12.0717 15.3846 15.3846 12.0717 15.3846 8C15.3846 3.92829 12.0717 0.615379 8 0.615379Z" fill="#202020"/>
3
- <path d="M8.77817 3.96101C8.79202 4.38962 8.47784 4.73208 7.97817 4.73208C7.5357 4.73208 7.22125 4.38932 7.22125 3.96101C7.22125 3.51854 7.54986 3.17578 8.00649 3.17578C8.47818 3.17578 8.77817 3.51854 8.77817 3.96101ZM7.37876 12.8143V5.90318H8.63508V12.8143H7.37876Z" fill="#202020"/>
4
- </svg>
@@ -1,38 +0,0 @@
1
- import { Component, Event, h, Host } from '@stencil/core';
2
- import completeImage from '../../../assets/image/complete.svg';
3
- export class CompleteSection {
4
- render() {
5
- return (h(Host, null,
6
- h("div", { class: "container" },
7
- h("div", { class: "row" },
8
- h("div", { class: "col" },
9
- h("h3", null, "What happens next?"))),
10
- h("div", { class: "row" },
11
- h("div", { class: "col" },
12
- h("div", { class: "d-flex justify-content-center p-4" },
13
- h("img", { class: "img-fluid", src: completeImage, alt: "" })))),
14
- h("div", { class: "row" },
15
- h("div", { class: "col text-center" },
16
- h("p", null, "Thanks! We\u2019ll contact you within the next business day to discuss your quote in more detail."))),
17
- h("div", { class: "row" },
18
- h("div", { class: "col text-center" },
19
- h("fl-button", { class: "font-weight-bold", onClick: () => { var _a; return (_a = this.closed) === null || _a === void 0 ? void 0 : _a.emit(); } }, "Close"))))));
20
- }
21
- static get is() { return "ap-ben-complete-section"; }
22
- static get events() { return [{
23
- "method": "closed",
24
- "name": "closed",
25
- "bubbles": true,
26
- "cancelable": true,
27
- "composed": true,
28
- "docs": {
29
- "tags": [],
30
- "text": ""
31
- },
32
- "complexType": {
33
- "original": "void",
34
- "resolved": "void",
35
- "references": {}
36
- }
37
- }]; }
38
- }
@@ -1,45 +0,0 @@
1
- import { Component, h, Host, Prop } from '@stencil/core';
2
- import { getOrDefault } from '../../../utils';
3
- export class CostBreakdownSection {
4
- render() {
5
- return (h(Host, { class: "d-flex flex-column justify-content-between text-left mb-3" },
6
- h("span", { class: "pb-2" }, "Here\u2019s an estimate based on your kms:"),
7
- h("span", { class: "text-muted text-right" }, "(per pay)"),
8
- this.generateLine('Finance', this.quote.financedAmount),
9
- this.generateLine('Fuel', this.quote.fuel),
10
- this.generateLine('Servicing and maintenance', this.quote.serviceAndMaintenance),
11
- this.generateLine('Registration and CTP', this.quote.registrationAndCtp),
12
- this.generateLine('Comprehensive insurance', this.quote.comprehensiveInsurance),
13
- this.generateLine('Management fee', this.quote.managementFee)));
14
- }
15
- generateLine(name, value) {
16
- return (h("div", { class: "d-flex flex-row" },
17
- h("span", { class: "d-flex-inline flex-grow-1 text-left" }, name),
18
- h("span", { class: "d-flex-inline text-right" },
19
- "$",
20
- getOrDefault(value, null))));
21
- }
22
- static get is() { return "ap-ben-cost-breakdown-section"; }
23
- static get properties() { return {
24
- "quote": {
25
- "type": "unknown",
26
- "mutable": false,
27
- "complexType": {
28
- "original": "QuoteResult",
29
- "resolved": "{ afterTaxEffectPerPayCycle: Option<number>; taxSaving: Option<number>; residualValue: Option<number>; financedAmount: Option<number>; fuel: Option<number>; serviceAndMaintenance: Option<number>; registrationAndCtp: Option<number>; comprehensiveInsurance: Option<number>; managementFee: Option<number>; quoteState: \"Not calculated\" | \"Calculation pending\" | \"Calculated\"; }",
30
- "references": {
31
- "QuoteResult": {
32
- "location": "import",
33
- "path": "../services/session.store"
34
- }
35
- }
36
- },
37
- "required": false,
38
- "optional": false,
39
- "docs": {
40
- "tags": [],
41
- "text": ""
42
- }
43
- }
44
- }; }
45
- }
@@ -1,34 +0,0 @@
1
- .abe-car-icon {
2
- max-width: 120px;
3
- height: 80px;
4
- object-fit: contain;
5
- }
6
-
7
- .abe-fade-in-bottom {
8
- -webkit-animation: fade-in-bottom 0.3s cubic-bezier(0.39, 0.575, 0.565, 1) both;
9
- animation: fade-in-bottom 0.3s cubic-bezier(0.39, 0.575, 0.565, 1) both;
10
- }
11
- @-webkit-keyframes fade-in-bottom {
12
- 0% {
13
- -webkit-transform: translateY(50px);
14
- transform: translateY(50px);
15
- opacity: 0;
16
- }
17
- 100% {
18
- -webkit-transform: translateY(0);
19
- transform: translateY(0);
20
- opacity: 1;
21
- }
22
- }
23
- @keyframes fade-in-bottom {
24
- 0% {
25
- -webkit-transform: translateY(50px);
26
- transform: translateY(50px);
27
- opacity: 0;
28
- }
29
- 100% {
30
- -webkit-transform: translateY(0);
31
- transform: translateY(0);
32
- opacity: 1;
33
- }
34
- }